id
int64
0
458k
file_name
stringlengths
4
119
file_path
stringlengths
14
227
content
stringlengths
24
9.96M
size
int64
24
9.96M
language
stringclasses
1 value
extension
stringclasses
14 values
total_lines
int64
1
219k
avg_line_length
float64
2.52
4.63M
max_line_length
int64
5
9.91M
alphanum_fraction
float64
0
1
repo_name
stringlengths
7
101
repo_stars
int64
100
139k
repo_forks
int64
0
26.4k
repo_open_issues
int64
0
2.27k
repo_license
stringclasses
12 values
repo_extraction_date
stringclasses
433 values
6,900
doc-pypi-links.sh
ilius_pyglossary/scripts/doc-pypi-links.sh
#!/bin/bash grep -roh 'https://pypi.org/project/[^)]*' doc/p/ | sort | uniq --count
85
Python
.py
2
41
71
0.609756
ilius/pyglossary
2,176
238
22
GPL-3.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,901
dump.py
ilius_pyglossary/scripts/dump.py
#!/usr/bin/env python3 import sys from pprint import pformat from pyglossary.glossary import Glossary glos = Glossary() glos.read(sys.argv[1]) for entry in glos: print("Words: " + pformat(entry.l_word)) print("Definitions: " + pformat(entry.defis)) print("-------------------------")
290
Python
.py
10
27.4
46
0.689531
ilius/pyglossary
2,176
238
22
GPL-3.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,902
sort-jsonl.py
ilius_pyglossary/scripts/wiktextract/sort-jsonl.py
#!/usr/bin/env python # read json lines from stdin, # sort them by "word" key and print import operator import sys from json import loads data: "list[tuple[str, str]]" = [] for line in sys.stdin: line = line.strip() # noqa: PLW2901 if not line: continue row = loads(line) data.append((row.get("word"), line)) data.sort(key=operator.itemgetter(0)) for _, line in data: print(line)
394
Python
.py
16
22.8125
37
0.723118
ilius/pyglossary
2,176
238
22
GPL-3.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,903
extract-schema.py
ilius_pyglossary/scripts/wiktextract/extract-schema.py
import json import sys from collections import Counter from collections import OrderedDict as odict from dataclasses import dataclass from typing import Any @dataclass(slots=True) class Node: Type: str = "" Dict: "dict[str, Node] | None" = None KeyScore: "Counter | None" = None ListOf: "Node | None" = None def keyScoreList(self): return [f"{count:.1f}: {key}" for key, count in self.KeyScore.most_common()] @property def __dict__(self): if self.Dict: assert self.ListOf is None keys = [key for key, _ in self.KeyScore.most_common()] try: keys.remove("word") except ValueError: pass else: keys.insert(0, "word") return { "__dict__": odict((key, self.Dict[key].__dict__) for key in keys), # "__key_score__": self.keyScoreList(), } if self.ListOf: return {"__list_of__": self.ListOf.__dict__} return self.Type schema = Node(Type="dict") valueSet: "dict[str, set]" = {} def addToValueSet(value: "str | int | float | bool", path: list[str]): if isinstance(value, str) and "://" in value: return pathStr = ".".join(path) if pathStr in valueSet: valueSet[pathStr].add(value) return valueSet[pathStr] = {value} def getSchemaNode(path: list[str]): node = schema for name in path: if name == "[]": node.Type = "list" if not node.ListOf: node.ListOf = Node() node = node.ListOf continue node.Type = "dict" if not node.Dict: node.Dict = {} node.KeyScore = Counter() if name in node.Dict: node = node.Dict[name] else: newNode = Node() node.Dict[name] = newNode node = newNode return node def updateSchema(_type: str, path: list[str]): node = getSchemaNode(path) prevType = node.Type if prevType and prevType != _type: print( f"mismatch types for path={'.'.join(path)}, {prevType} and {_type}", ) node.Type = _type def parseList(data: list[Any], path: list[str], node: Node): node.Type = "list" if not node.ListOf: node.ListOf = Node() if not data: return itemsPath = path + ["[]"] itemTypes = set() for item in data: itemTypes.add(type(item).__name__) if isinstance(item, dict): parseDict(item, itemsPath, node.ListOf) continue if isinstance(item, list): parseList(item, itemsPath, node.ListOf) continue if isinstance(item, str | int | float | bool): addToValueSet(item, path) itemTypesStr = " | ".join(sorted(itemTypes)) updateSchema(itemTypesStr, path + ["[]"]) def parseDict(data: "dict[str, Any]", path: list[str], node: Node): if not node.Dict: node.Dict = {} node.KeyScore = Counter() for index, (key, value) in enumerate(data.items()): node.KeyScore[key] += min(1, 50 - index) / 50 if key in node.Dict: childNode = node.Dict[key] else: childNode = node.Dict[key] = Node() if isinstance(value, dict): parseDict(value, path + [key], childNode) continue if isinstance(value, list): parseList(value, path + [key], childNode) continue if isinstance(value, str | int | float | bool): updateSchema(type(value).__name__, path + [key]) addToValueSet(value, path + [key]) jsonl_path = sys.argv[1] with open(jsonl_path, encoding="utf-8") as _file: for line in _file: line = line.strip() # noqa: PLW2901 if not line: continue try: data = json.loads(line) except Exception: print(f"bad line: {line}") continue parseDict(data, [], schema) with open(f"{jsonl_path}.schema.json", mode="w", encoding="utf-8") as _file: json.dump( schema.__dict__, _file, indent="\t", ) commonValuesList = [ (key, sorted(values)) for key, values in valueSet.items() if len(values) < 20 and len(str(values)) < 100 ] def commonValuesSortKey(item): _key, values = item return abs(len(values) - 5) commonValuesList.sort(key=commonValuesSortKey) with open(f"{jsonl_path}-common-values.json", mode="w", encoding="utf-8") as _file: json.dump(dict(commonValuesList), _file, indent="\t")
3,917
Python
.py
138
25.384058
83
0.679754
ilius/pyglossary
2,176
238
22
GPL-3.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,904
fix-css.py
ilius_pyglossary/scripts/appledict/fix-css.py
import sys from os.path import dirname, realpath, splitext sys.path.insert(0, dirname(dirname(dirname(realpath(__file__))))) from pyglossary.apple_utils import substituteAppleCSS for fpath in sys.argv[1:]: if fpath.endswith("-fixed.css"): continue fpathNoExt, _ = splitext(fpath) fpathNew = fpathNoExt + "-fixed.css" with open(fpath, "rb") as _file: text = _file.read() text = substituteAppleCSS(text) with open(fpathNew, "wb") as _file: _file.write(text) print("Created", fpathNew) print()
508
Python
.py
16
29.6875
65
0.740286
ilius/pyglossary
2,176
238
22
GPL-3.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,905
doc-pypi-links.sh
ilius_pyglossary/scripts/doc-pypi-links.sh
#!/bin/bash grep -roh 'https://pypi.org/project/[^)]*' doc/p/ | sort | uniq --count
85
Python
.pyp
2
41
71
0.609756
ilius/pyglossary
2,176
238
22
GPL-3.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,906
pyglossary.pyw
ilius_pyglossary/pyglossary.pyw
#!/usr/bin/env python3 import sys from os.path import dirname sys.path.insert(0, dirname(__file__)) from pyglossary.ui.main import main main()
147
Python
.pyw
6
22.833333
37
0.781022
ilius/pyglossary
2,176
238
22
GPL-3.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,907
__main__.py
codespell-project_codespell/codespell_lib/__main__.py
import sys from ._codespell import _script_main if __name__ == "__main__": sys.exit(_script_main())
106
Python
.py
4
24
36
0.65
codespell-project/codespell
1,850
470
225
GPL-2.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,908
_text_util.py
codespell-project_codespell/codespell_lib/_text_util.py
# # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; version 2 of the License. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, see # https://www.gnu.org/licenses/old-licenses/gpl-2.0.html. """ Copyright (C) 2010-2011 Lucas De Marchi <lucas.de.marchi@gmail.com> Copyright (C) 2011 ProFUSION embedded systems """ def fix_case(word: str, fixword: str) -> str: if word == word.capitalize(): return ", ".join(w.strip().capitalize() for w in fixword.split(",")) if word == word.upper(): return fixword.upper() # they are both lower case # or we don't have any idea return fixword
1,038
Python
.py
25
39
76
0.732938
codespell-project/codespell
1,850
470
225
GPL-2.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,909
_codespell.py
codespell-project_codespell/codespell_lib/_codespell.py
# # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; version 2 of the License. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, see # https://www.gnu.org/licenses/old-licenses/gpl-2.0.html. """ Copyright (C) 2010-2011 Lucas De Marchi <lucas.de.marchi@gmail.com> Copyright (C) 2011 ProFUSION embedded systems """ import argparse import configparser import ctypes import fnmatch import itertools import os import re import sys import textwrap from typing import ( Any, Dict, Iterable, List, Match, Optional, Pattern, Sequence, Set, TextIO, Tuple, ) if sys.platform == "win32": from ctypes import wintypes ENABLE_VIRTUAL_TERMINAL_PROCESSING = 0x0004 STD_OUTPUT_HANDLE = wintypes.HANDLE(-11) from ._spellchecker import Misspelling, build_dict from ._text_util import fix_case # autogenerated by setuptools_scm from ._version import ( # type: ignore[import-not-found] __version__ as VERSION, # noqa: N812 ) word_regex_def = r"[\w\-'’]+" # noqa: RUF001 # While we want to treat characters like ( or " as okay for a starting break, # these may occur unescaped in URIs, and so we are more restrictive on the # endpoint. Emails are more restrictive, so the endpoint remains flexible. uri_regex_def = ( "(\\b(?:https?|[ts]?ftp|file|git|smb)://[^\\s]+(?=$|\\s)|" "\\b[\\w.%+-]+@[\\w.-]+\\b)" ) inline_ignore_regex = re.compile(r"[^\w\s]\s?codespell:ignore\b(\s+(?P<words>[\w,]*))?") USAGE = """ \t%prog [OPTIONS] [file1 file2 ... fileN] """ supported_languages_en = ("en", "en_GB", "en_US", "en_CA", "en_AU") supported_languages = supported_languages_en # Users might want to link this file into /usr/local/bin, so we resolve the # symbolic link path to the real path if necessary. _data_root = os.path.join(os.path.dirname(os.path.realpath(__file__)), "data") _builtin_dictionaries = ( # name, desc, name, err in aspell, correction in aspell, \ # err dictionary array, rep dictionary array # The arrays must contain the names of aspell dictionaries # The aspell tests here aren't the ideal state, but the None's are # realistic for obscure words ("clear", "for unambiguous errors", "", False, None, supported_languages_en, None), ( "rare", "for rare (but valid) words that are likely to be errors", "_rare", None, None, None, None, ), ( "informal", "for making informal words more formal", "_informal", True, True, supported_languages_en, supported_languages_en, ), ( "usage", "for replacing phrasing with recommended terms", "_usage", None, None, None, None, ), ( "code", "for words from code and/or mathematics that are likely to be typos in other contexts (such as uint)", # noqa: E501 "_code", None, None, None, None, ), ( "names", "for valid proper names that might be typos", "_names", None, None, None, None, ), ( "en-GB_to_en-US", "for corrections from en-GB to en-US", "_en-GB_to_en-US", True, True, ("en_GB",), ("en_US",), ), ) _builtin_default = "clear,rare" # docs say os.EX_USAGE et al. are only available on Unix systems, so to be safe # we protect and just use the values they are on macOS and Linux EX_OK = 0 EX_USAGE = 64 EX_DATAERR = 65 EX_CONFIG = 78 # OPTIONS: # # ARGUMENTS: # dict_filename The file containing the dictionary of misspellings. # If set to '-', it will be read from stdin # file1 .. fileN Files to check spelling class QuietLevels: NONE = 0 ENCODING = 1 BINARY_FILE = 2 DISABLED_FIXES = 4 NON_AUTOMATIC_FIXES = 8 FIXES = 16 CONFIG_FILES = 32 class GlobMatch: def __init__(self, pattern: List[str]) -> None: self.pattern_list: List[str] = pattern def match(self, filename: str) -> bool: return any(fnmatch.fnmatch(filename, p) for p in self.pattern_list) class TermColors: def __init__(self) -> None: self.FILE = "\033[33m" self.WWORD = "\033[31m" self.FWORD = "\033[32m" self.DISABLE = "\033[0m" def disable(self) -> None: self.FILE = "" self.WWORD = "" self.FWORD = "" self.DISABLE = "" class Summary: def __init__(self) -> None: self.summary: Dict[str, int] = {} def update(self, wrongword: str) -> None: if wrongword in self.summary: self.summary[wrongword] += 1 else: self.summary[wrongword] = 1 def __str__(self) -> str: keys = list(self.summary.keys()) keys.sort() return "\n".join( [f"{key}{self.summary.get(key):{15 - len(key)}}" for key in keys] ) class FileOpener: def __init__( self, use_chardet: bool, quiet_level: int, ignore_multiline_regex: Optional[Pattern[str]], ) -> None: self.use_chardet = use_chardet if use_chardet: self.init_chardet() self.quiet_level = quiet_level self.ignore_multiline_regex = ignore_multiline_regex def init_chardet(self) -> None: try: from chardet.universaldetector import UniversalDetector except ImportError as e: msg = ( "There's no chardet installed to import from. " "Please, install it and check your PYTHONPATH " "environment variable" ) raise ImportError(msg) from e self.encdetector = UniversalDetector() def open(self, filename: str) -> Tuple[List[str], str]: if self.use_chardet: return self.open_with_chardet(filename) return self.open_with_internal(filename) def open_with_chardet(self, filename: str) -> Tuple[List[str], str]: self.encdetector.reset() with open(filename, "rb") as fb: for line in fb: self.encdetector.feed(line) if self.encdetector.done: break self.encdetector.close() encoding = self.encdetector.result["encoding"] try: f = open(filename, encoding=encoding, newline="") except UnicodeDecodeError: print(f"ERROR: Could not detect encoding: {filename}", file=sys.stderr) raise except LookupError: print( f"ERROR: Don't know how to handle encoding {encoding}: {filename}", file=sys.stderr, ) raise else: lines = self.get_lines(f) f.close() return lines, f.encoding def open_with_internal(self, filename: str) -> Tuple[List[str], str]: encoding = None first_try = True for encoding in ("utf-8", "iso-8859-1"): if first_try: first_try = False elif not self.quiet_level & QuietLevels.ENCODING: print(f'WARNING: Trying next encoding "{encoding}"', file=sys.stderr) with open(filename, encoding=encoding, newline="") as f: try: lines = self.get_lines(f) except UnicodeDecodeError: if not self.quiet_level & QuietLevels.ENCODING: print( f'WARNING: Cannot decode file using encoding "{encoding}": ' f"{filename}", file=sys.stderr, ) else: break else: # reading with encoding "iso-8859-1" cannot fail with UnicodeDecodeError msg = "Unknown encoding" raise RuntimeError(msg) # pragma: no cover return lines, encoding def get_lines(self, f: TextIO) -> List[str]: if self.ignore_multiline_regex: text = f.read() pos = 0 text2 = "" for m in re.finditer(self.ignore_multiline_regex, text): text2 += text[pos : m.start()] # Replace with blank lines so line numbers are unchanged. text2 += "\n" * m.group().count("\n") pos = m.end() text2 += text[pos:] lines = text2.split("\n") else: lines = f.readlines() return lines # -.-:-.-:-.-:-.:-.-:-.-:-.-:-.-:-.:-.-:-.-:-.-:-.-:-.:-.-:- # If someday this breaks, we can just switch to using RawTextHelpFormatter, # but it has the disadvantage of not wrapping our long lines. class NewlineHelpFormatter(argparse.HelpFormatter): """Help formatter that preserves newlines and deals with lists.""" def _split_lines(self, text: str, width: int) -> List[str]: parts = text.split("\n") out = [] for part in parts: # Eventually we could allow others... indent_start = "- " offset = len(indent_start) if part.startswith(indent_start) else 0 part = part[offset:] part = self._whitespace_matcher.sub(" ", part).strip() parts = textwrap.wrap(part, width - offset) parts = [" " * offset + p for p in parts] if offset: parts[0] = indent_start + parts[0][offset:] out.extend(parts) return out def _toml_to_parseconfig(toml_dict: Dict[str, Any]) -> Dict[str, Any]: """Convert a dict read from a TOML file to the parseconfig.read_dict() format.""" return { k: "" if v is True else ",".join(v) if isinstance(v, list) else v for k, v in toml_dict.items() if v is not False } def _supports_ansi_colors() -> bool: if sys.platform == "win32": # Windows Terminal enables ANSI escape codes by default. In other cases # it is disabled. # See https://ss64.com/nt/syntax-ansi.html for more information. kernel32 = ctypes.WinDLL("kernel32") # fmt: off kernel32.GetConsoleMode.argtypes = ( wintypes.HANDLE, # _In_ hConsoleHandle wintypes.LPDWORD, # _Out_ lpMode ) # fmt: on kernel32.GetConsoleMode.restype = wintypes.BOOL mode = wintypes.DWORD() handle = kernel32.GetStdHandle(STD_OUTPUT_HANDLE) if not kernel32.GetConsoleMode(handle, ctypes.byref(mode)): # TODO: print a warning with the error message on stderr? return False return (mode.value & ENABLE_VIRTUAL_TERMINAL_PROCESSING) != 0 elif sys.platform == "wasi": # WASI disables ANSI escape codes for security reasons. # See https://github.com/WebAssembly/WASI/issues/162. return False elif sys.stdout.isatty(): return True return False def parse_options( args: Sequence[str], ) -> Tuple[argparse.Namespace, argparse.ArgumentParser, List[str]]: parser = argparse.ArgumentParser(formatter_class=NewlineHelpFormatter) parser.set_defaults(colors=_supports_ansi_colors()) parser.add_argument("--version", action="version", version=VERSION) parser.add_argument( "-d", "--disable-colors", action="store_false", dest="colors", help="disable colors, even when printing to terminal", ) parser.add_argument( "-c", "--enable-colors", action="store_true", dest="colors", help="enable colors, even when not printing to terminal", ) parser.add_argument( "-w", "--write-changes", action="store_true", default=False, help="write changes in place if possible", ) parser.add_argument( "-D", "--dictionary", action="append", help="comma-separated list of custom dictionary files that " "contain spelling corrections. If this flag is not specified " 'or equals "-" then the default dictionary is used.', ) builtin_opts = "\n- ".join( [""] + [f"{d[0]!r} {d[1]}" for d in _builtin_dictionaries] ) parser.add_argument( "--builtin", dest="builtin", default=_builtin_default, metavar="BUILTIN-LIST", help="comma-separated list of builtin dictionaries " 'to include (when "-D -" or no "-D" is passed). ' "Current options are:" + builtin_opts + "\n" "The default is %(default)r.", ) parser.add_argument( "--ignore-regex", action="store", type=str, help="regular expression that is used to find " "patterns to ignore by treating as whitespace. " "When writing regular expressions, consider " "ensuring there are boundary non-word chars, " 'e.g., "\\bmatch\\b". Defaults to ' "empty/disabled.", ) parser.add_argument( "--ignore-multiline-regex", action="store", type=str, help="regular expression that is used to ignore " "text that may span multi-line regions. " "The regex is run with re.DOTALL. For example to " "allow skipping of regions of Python code using " "begin/end comments one could use: " "--ignore-multiline-regex " "'# codespell:ignore-begin *\\n.*# codespell:ignore-end *\\n'. " "Defaults to empty/disabled.", ) parser.add_argument( "-I", "--ignore-words", action="append", metavar="FILES", help="comma-separated list of files that contain " "words to be ignored by codespell. Files must contain " "1 word per line. Words are case sensitive based on " "how they are written in the dictionary file.", ) parser.add_argument( "-L", "--ignore-words-list", action="append", metavar="WORDS", help="comma-separated list of words to be ignored " "by codespell. Words are case sensitive based on " "how they are written in the dictionary file.", ) parser.add_argument( "--uri-ignore-words-list", action="append", metavar="WORDS", help="comma-separated list of words to be ignored " "by codespell in URIs and emails only. Words are " "case sensitive based on how they are written in " 'the dictionary file. If set to "*", all ' "misspelling in URIs and emails will be ignored.", ) parser.add_argument( "-r", "--regex", action="store", type=str, help="regular expression that is used to find words. " "By default any alphanumeric character, the " "underscore, the hyphen, and the apostrophe are " "used to build words. This option cannot be " "specified together with --write-changes.", ) parser.add_argument( "--uri-regex", action="store", type=str, help="regular expression that is used to find URIs " "and emails. A default expression is provided.", ) parser.add_argument( "-s", "--summary", action="store_true", default=False, help="print summary of fixes", ) parser.add_argument( "--count", action="store_true", default=False, help="print the number of errors as the last line of stderr", ) parser.add_argument( "-S", "--skip", action="append", help="comma-separated list of files to skip. It " "accepts globs as well. E.g.: if you want " "codespell to skip .eps and .txt files, " 'you\'d give "*.eps,*.txt" to this option.', ) parser.add_argument( "-x", "--exclude-file", action="append", type=str, metavar="FILES", help="ignore whole lines that match those in " "the comma-separated list of files EXCLUDE. " "The lines in these files should match the " "to-be-excluded lines exactly", ) parser.add_argument( "-i", "--interactive", action="store", type=int, default=0, choices=range(0, 4), help="set interactive mode when writing changes:\n" "- 0: no interactivity.\n" "- 1: ask for confirmation.\n" "- 2: ask user to choose one fix when more than one is available.\n" "- 3: both 1 and 2", metavar="MODE", ) parser.add_argument( "-q", "--quiet-level", action="store", type=int, default=34, choices=range(0, 64), help="bitmask that allows suppressing messages:\n" "- 0: print all messages.\n" "- 1: disable warnings about wrong encoding.\n" "- 2: disable warnings about binary files.\n" "- 4: omit warnings about automatic fixes that were disabled in the dictionary.\n" # noqa: E501 "- 8: don't print anything for non-automatic fixes.\n" "- 16: don't print the list of fixed files.\n" "- 32: don't print configuration files.\n" "As usual with bitmasks, these levels can be " "combined; e.g. use 3 for levels 1+2, 7 for " "1+2+4, 23 for 1+2+4+16, etc. " "The default mask is %(default)s.", metavar="LEVEL", ) parser.add_argument( "-e", "--hard-encoding-detection", action="store_true", default=False, help="use chardet to detect the encoding of each " "file. This can slow down codespell, but is more " "reliable in detecting encodings other than " "utf-8, iso8859-1, and ascii.", ) parser.add_argument( "-f", "--check-filenames", action="store_true", default=False, help="check file names as well", ) parser.add_argument( "-H", "--check-hidden", action="store_true", default=False, help='check hidden files and directories (those starting with ".") as well.', ) parser.add_argument( "-A", "--after-context", type=int, metavar="LINES", help="print LINES of trailing context", ) parser.add_argument( "-B", "--before-context", type=int, metavar="LINES", help="print LINES of leading context", ) parser.add_argument( "-C", "--context", type=int, metavar="LINES", help="print LINES of surrounding context", ) parser.add_argument( "--stdin-single-line", action="store_true", help="output just a single line for each misspelling in stdin mode", ) parser.add_argument("--config", type=str, help="path to config file.") parser.add_argument("--toml", type=str, help="path to a pyproject.toml file.") parser.add_argument("files", nargs="*", help="files or directories to check") # Parse command line options. options = parser.parse_args(list(args)) # Load config files and look for ``codespell`` options. cfg_files = ["setup.cfg", ".codespellrc"] if options.config: cfg_files.append(options.config) config = configparser.ConfigParser(interpolation=None) # Read toml before other config files. toml_files = [] tomllib_raise_error = False if os.path.isfile("pyproject.toml"): toml_files.append("pyproject.toml") if options.toml: toml_files.append(options.toml) tomllib_raise_error = True if toml_files: if sys.version_info >= (3, 11): import tomllib else: try: import tomli as tomllib # type: ignore[no-redef] except ImportError as e: if tomllib_raise_error: msg = ( f"tomllib or tomli are required to read pyproject.toml " f"but could not be imported, got: {e}" ) raise ImportError(msg) from None tomllib = None # type: ignore[assignment] if tomllib is not None: for toml_file in toml_files: with open(toml_file, "rb") as f: data = tomllib.load(f).get("tool", {}) if "codespell" in data: data["codespell"] = _toml_to_parseconfig(data["codespell"]) config.read_dict(data) # Collect which config files are going to be used used_cfg_files = [] for cfg_file in cfg_files: _cfg = configparser.ConfigParser() _cfg.read(cfg_file) if _cfg.has_section("codespell"): used_cfg_files.append(cfg_file) # Use config files config.read(used_cfg_files) if config.has_section("codespell"): # Build a "fake" argv list using option name and value. cfg_args = [] for key in config["codespell"]: # Add option as arg. cfg_args.append(f"--{key}") # If value is blank, skip. val = config["codespell"][key] if val: cfg_args.append(val) # Parse config file options. options = parser.parse_args(cfg_args) # Re-parse command line options to override config. options = parser.parse_args(list(args), namespace=options) if not options.files: options.files.append(".") return options, parser, used_cfg_files def process_ignore_words( words: Iterable[str], ignore_words: Set[str], ignore_words_cased: Set[str] ) -> None: for word in words: word = word.strip() if word == word.lower(): ignore_words.add(word) else: ignore_words_cased.add(word) def parse_ignore_words_option( ignore_words_option: List[str], ) -> Tuple[Set[str], Set[str]]: ignore_words: Set[str] = set() ignore_words_cased: Set[str] = set() if ignore_words_option: for comma_separated_words in ignore_words_option: process_ignore_words( (word.strip() for word in comma_separated_words.split(",")), ignore_words, ignore_words_cased, ) return (ignore_words, ignore_words_cased) def build_exclude_hashes(filename: str, exclude_lines: Set[str]) -> None: with open(filename, encoding="utf-8") as f: exclude_lines.update(line.rstrip() for line in f) def build_ignore_words( filename: str, ignore_words: Set[str], ignore_words_cased: Set[str] ) -> None: with open(filename, encoding="utf-8") as f: process_ignore_words( (line.strip() for line in f), ignore_words, ignore_words_cased ) def is_hidden(filename: str, check_hidden: bool) -> bool: bfilename = os.path.basename(filename) return bfilename not in ("", ".", "..") and ( not check_hidden and bfilename[0] == "." ) def is_text_file(filename: str) -> bool: with open(filename, mode="rb") as f: s = f.read(1024) return b"\x00" not in s def ask_for_word_fix( line: str, match: Match[str], misspelling: Misspelling, interactivity: int, colors: TermColors, ) -> Tuple[bool, str]: wrongword = match.group() if interactivity <= 0: return misspelling.fix, fix_case(wrongword, misspelling.data) line_ui = ( f"{line[:match.start()]}" f"{colors.WWORD}{wrongword}{colors.DISABLE}" f"{line[match.end():]}" ) if misspelling.fix and interactivity & 1: r = "" fixword = fix_case(wrongword, misspelling.data) while not r: print(f"{line_ui}\t{wrongword} ==> {fixword} (Y/n) ", end="", flush=True) r = sys.stdin.readline().strip().upper() if not r: r = "Y" if r not in ("Y", "N"): print("Say 'y' or 'n'") r = "" if r == "N": misspelling.fix = False elif (interactivity & 2) and not misspelling.reason: # if it is not disabled, i.e. it just has more than one possible fix, # we ask the user which word to use r = "" opt = [w.strip() for w in misspelling.data.split(",")] while not r: print(f"{line_ui} Choose an option (blank for none): ", end="") for i, o in enumerate(opt): fixword = fix_case(wrongword, o) print(f" {i}) {fixword}", end="") print(": ", end="", flush=True) n = sys.stdin.readline().strip() if not n: break try: i = int(n) r = opt[i] except (ValueError, IndexError): print("Not a valid option\n") if r: misspelling.fix = True misspelling.data = r return misspelling.fix, fix_case(wrongword, misspelling.data) def print_context( lines: List[str], index: int, context: Tuple[int, int], ) -> None: # context = (context_before, context_after) for i in range(index - context[0], index + context[1] + 1): if 0 <= i < len(lines): print(f"{'>' if i == index else ':'} {lines[i].rstrip()}") def _ignore_word_sub( text: str, ignore_word_regex: Optional[Pattern[str]], ) -> str: if ignore_word_regex: text = ignore_word_regex.sub(" ", text) return text def extract_words( text: str, word_regex: Pattern[str], ignore_word_regex: Optional[Pattern[str]], ) -> List[str]: return word_regex.findall(_ignore_word_sub(text, ignore_word_regex)) def extract_words_iter( text: str, word_regex: Pattern[str], ignore_word_regex: Optional[Pattern[str]], ) -> List[Match[str]]: return list(word_regex.finditer(_ignore_word_sub(text, ignore_word_regex))) def apply_uri_ignore_words( check_matches: List[Match[str]], line: str, word_regex: Pattern[str], ignore_word_regex: Optional[Pattern[str]], uri_regex: Pattern[str], uri_ignore_words: Set[str], ) -> List[Match[str]]: if not uri_ignore_words: return check_matches for uri in uri_regex.findall(line): for uri_word in extract_words(uri, word_regex, ignore_word_regex): if uri_word in uri_ignore_words: # determine/remove only the first among matches for i, match in enumerate(check_matches): if match.group() == uri_word: check_matches = check_matches[:i] + check_matches[i + 1 :] break return check_matches def parse_file( filename: str, colors: TermColors, summary: Optional[Summary], misspellings: Dict[str, Misspelling], ignore_words_cased: Set[str], exclude_lines: Set[str], file_opener: FileOpener, word_regex: Pattern[str], ignore_word_regex: Optional[Pattern[str]], uri_regex: Pattern[str], uri_ignore_words: Set[str], context: Optional[Tuple[int, int]], options: argparse.Namespace, ) -> int: bad_count = 0 lines = None changed = False if filename == "-": f = sys.stdin encoding = "utf-8" lines = f.readlines() else: if options.check_filenames: for word in extract_words(filename, word_regex, ignore_word_regex): if word in ignore_words_cased: continue lword = word.lower() if lword not in misspellings: continue fix = misspellings[lword].fix fixword = fix_case(word, misspellings[lword].data) if summary and fix: summary.update(lword) cfilename = f"{colors.FILE}{filename}{colors.DISABLE}" cwrongword = f"{colors.WWORD}{word}{colors.DISABLE}" crightword = f"{colors.FWORD}{fixword}{colors.DISABLE}" reason = misspellings[lword].reason if reason: if options.quiet_level & QuietLevels.DISABLED_FIXES: continue creason = f" | {colors.FILE}{reason}{colors.DISABLE}" else: if options.quiet_level & QuietLevels.NON_AUTOMATIC_FIXES: continue creason = "" bad_count += 1 print(f"{cfilename}: {cwrongword} ==> {crightword}{creason}") # ignore irregular files if not os.path.isfile(filename): return bad_count try: text = is_text_file(filename) except PermissionError as e: print(f"WARNING: {e.strerror}: {filename}", file=sys.stderr) return bad_count except OSError: return bad_count if not text: if not options.quiet_level & QuietLevels.BINARY_FILE: print(f"WARNING: Binary file: {filename}", file=sys.stderr) return bad_count try: lines, encoding = file_opener.open(filename) except OSError: return bad_count for i, line in enumerate(lines): if line.rstrip() in exclude_lines: continue extra_words_to_ignore = set() match = inline_ignore_regex.search(line) if match: extra_words_to_ignore = set( filter(None, (match.group("words") or "").split(",")) ) if not extra_words_to_ignore: continue fixed_words = set() asked_for = set() # If all URI spelling errors will be ignored, erase any URI before # extracting words. Otherwise, apply ignores after extracting words. # This ensures that if a URI ignore word occurs both inside a URI and # outside, it will still be a spelling error. if "*" in uri_ignore_words: line = uri_regex.sub(" ", line) check_matches = extract_words_iter(line, word_regex, ignore_word_regex) if "*" not in uri_ignore_words: check_matches = apply_uri_ignore_words( check_matches, line, word_regex, ignore_word_regex, uri_regex, uri_ignore_words, ) for match in check_matches: word = match.group() if word in ignore_words_cased: continue lword = word.lower() if lword in misspellings and lword not in extra_words_to_ignore: # Sometimes we find a 'misspelling' which is actually a valid word # preceded by a string escape sequence. Ignore such cases as # they're usually false alarms; see issue #17 among others. char_before_idx = match.start() - 1 if ( char_before_idx >= 0 and line[char_before_idx] == "\\" # bell, backspace, formfeed, newline, carriage-return, tab, vtab. and word.startswith(("a", "b", "f", "n", "r", "t", "v")) and lword[1:] not in misspellings ): continue context_shown = False fix = misspellings[lword].fix fixword = fix_case(word, misspellings[lword].data) if options.interactive and lword not in asked_for: if context is not None: context_shown = True print_context(lines, i, context) fix, fixword = ask_for_word_fix( lines[i], match, misspellings[lword], options.interactive, colors=colors, ) asked_for.add(lword) if summary and fix: summary.update(lword) if word in fixed_words: # can skip because of re.sub below continue if options.write_changes and fix: changed = True lines[i] = re.sub(rf"\b{word}\b", fixword, lines[i]) fixed_words.add(word) continue # otherwise warning was explicitly set by interactive mode if ( options.interactive & 2 and not fix and not misspellings[lword].reason ): continue cfilename = f"{colors.FILE}{filename}{colors.DISABLE}" cline = f"{colors.FILE}{i + 1}{colors.DISABLE}" cwrongword = f"{colors.WWORD}{word}{colors.DISABLE}" crightword = f"{colors.FWORD}{fixword}{colors.DISABLE}" reason = misspellings[lword].reason if reason: if options.quiet_level & QuietLevels.DISABLED_FIXES: continue creason = f" | {colors.FILE}{reason}{colors.DISABLE}" else: if options.quiet_level & QuietLevels.NON_AUTOMATIC_FIXES: continue creason = "" # If we get to this point (uncorrected error) we should change # our bad_count and thus return value bad_count += 1 if (not context_shown) and (context is not None): print_context(lines, i, context) if filename != "-": print( f"{cfilename}:{cline}: {cwrongword} " f"==> {crightword}{creason}" ) elif options.stdin_single_line: print(f"{cline}: {cwrongword} ==> {crightword}{creason}") else: print( f"{cline}: {line.strip()}\n\t{cwrongword} " f"==> {crightword}{creason}" ) if changed: if filename == "-": print("---") for line in lines: print(line, end="") else: if not options.quiet_level & QuietLevels.FIXES: print( f"{colors.FWORD}FIXED:{colors.DISABLE} {filename}", file=sys.stderr, ) with open(filename, "w", encoding=encoding, newline="") as f: f.writelines(lines) return bad_count def flatten_clean_comma_separated_arguments( arguments: Iterable[str], ) -> List[str]: """ >>> flatten_clean_comma_separated_arguments(["a, b ,\n c, d,", "e"]) ['a', 'b', 'c', 'd', 'e'] >>> flatten_clean_comma_separated_arguments([]) [] """ return [ item.strip() for argument in arguments for item in argument.split(",") if item ] def _script_main() -> int: """Wrap to main() for setuptools.""" try: return main(*sys.argv[1:]) except KeyboardInterrupt: # User has typed CTRL+C sys.stdout.write("\n") return 130 def _usage_error(parser: argparse.ArgumentParser, message: str) -> int: parser.print_usage() print(message, file=sys.stderr) return EX_USAGE def main(*args: str) -> int: """Contains flow control""" try: options, parser, used_cfg_files = parse_options(args) except configparser.Error as e: print( f"ERROR: ill-formed config file: {e.message}", file=sys.stderr, ) return EX_CONFIG # Report used config files if not options.quiet_level & QuietLevels.CONFIG_FILES: if len(used_cfg_files) > 0: print("Used config files:") for ifile, cfg_file in enumerate(used_cfg_files, start=1): print(f" {ifile}: {cfg_file}") if options.interactive > 0: options.write_changes = True if options.regex and options.write_changes: return _usage_error( parser, "ERROR: --write-changes cannot be used together with --regex", ) word_regex = options.regex or word_regex_def try: word_regex = re.compile(word_regex) except re.error as e: return _usage_error( parser, f'ERROR: invalid --regex "{word_regex}" ({e})', ) if options.ignore_regex: try: ignore_word_regex = re.compile(options.ignore_regex) except re.error as e: return _usage_error( parser, f'ERROR: invalid --ignore-regex "{options.ignore_regex}" ({e})', ) else: ignore_word_regex = None if options.ignore_multiline_regex: try: ignore_multiline_regex = re.compile( options.ignore_multiline_regex, re.DOTALL ) except re.error as e: return _usage_error( parser, f"ERROR: invalid --ignore-multiline-regex " f'"{options.ignore_multiline_regex}" ({e})', ) else: ignore_multiline_regex = None ignore_words, ignore_words_cased = parse_ignore_words_option( options.ignore_words_list ) if options.ignore_words: ignore_words_files = flatten_clean_comma_separated_arguments( options.ignore_words ) for ignore_words_file in ignore_words_files: if not os.path.isfile(ignore_words_file): return _usage_error( parser, f"ERROR: cannot find ignore-words file: {ignore_words_file}", ) build_ignore_words(ignore_words_file, ignore_words, ignore_words_cased) uri_regex = options.uri_regex or uri_regex_def try: uri_regex = re.compile(uri_regex) except re.error as e: return _usage_error( parser, f'ERROR: invalid --uri-regex "{uri_regex}" ({e})', ) uri_ignore_words = set( itertools.chain(*parse_ignore_words_option(options.uri_ignore_words_list)) ) dictionaries = flatten_clean_comma_separated_arguments(options.dictionary or ["-"]) use_dictionaries = [] for dictionary in dictionaries: if dictionary == "-": # figure out which builtin dictionaries to use use = sorted(set(options.builtin.split(","))) for u in use: for builtin in _builtin_dictionaries: if builtin[0] == u: use_dictionaries.append( os.path.join(_data_root, f"dictionary{builtin[2]}.txt") ) break else: return _usage_error( parser, f"ERROR: Unknown builtin dictionary: {u}", ) else: if not os.path.isfile(dictionary): return _usage_error( parser, f"ERROR: cannot find dictionary file: {dictionary}", ) use_dictionaries.append(dictionary) misspellings: Dict[str, Misspelling] = {} for dictionary in use_dictionaries: build_dict(dictionary, misspellings, ignore_words) colors = TermColors() if not options.colors: colors.disable() summary = Summary() if options.summary else None context = None if options.context is not None: if (options.before_context is not None) or (options.after_context is not None): return _usage_error( parser, "ERROR: --context/-C cannot be used together with " "--context-before/-B or --context-after/-A", ) context_both = max(0, options.context) context = (context_both, context_both) elif (options.before_context is not None) or (options.after_context is not None): context_before = 0 context_after = 0 if options.before_context is not None: context_before = max(0, options.before_context) if options.after_context is not None: context_after = max(0, options.after_context) context = (context_before, context_after) exclude_lines: Set[str] = set() if options.exclude_file: exclude_files = flatten_clean_comma_separated_arguments(options.exclude_file) for exclude_file in exclude_files: build_exclude_hashes(exclude_file, exclude_lines) file_opener = FileOpener( options.hard_encoding_detection, options.quiet_level, ignore_multiline_regex, ) glob_match = GlobMatch( flatten_clean_comma_separated_arguments(options.skip) if options.skip else [] ) try: glob_match.match("/random/path") # does not need a real path except re.error: return _usage_error( parser, "ERROR: --skip/-S has been fed an invalid glob, " "try escaping special characters", ) bad_count = 0 for filename in sorted(options.files): # ignore hidden files if is_hidden(filename, options.check_hidden): continue if os.path.isdir(filename): for root, dirs, files in os.walk(filename): if glob_match.match(root): # skip (absolute) directories dirs.clear() continue if is_hidden(root, options.check_hidden): # dir itself hidden continue for file_ in sorted(files): # ignore hidden files in directories if is_hidden(file_, options.check_hidden): continue if glob_match.match(file_): # skip files continue fname = os.path.join(root, file_) if glob_match.match(fname): # skip paths continue bad_count += parse_file( fname, colors, summary, misspellings, ignore_words_cased, exclude_lines, file_opener, word_regex, ignore_word_regex, uri_regex, uri_ignore_words, context, options, ) # skip (relative) directories dirs[:] = [ dir_ for dir_ in dirs if not glob_match.match(dir_) and not is_hidden(dir_, options.check_hidden) ] elif not glob_match.match(filename): # skip files bad_count += parse_file( filename, colors, summary, misspellings, ignore_words_cased, exclude_lines, file_opener, word_regex, ignore_word_regex, uri_regex, uri_ignore_words, context, options, ) if summary: print("\n-------8<-------\nSUMMARY:") print(summary) if options.count: print(bad_count, file=sys.stderr) return EX_DATAERR if bad_count else EX_OK
44,133
Python
.py
1,191
26.893367
124
0.558973
codespell-project/codespell
1,850
470
225
GPL-2.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,910
__init__.py
codespell-project_codespell/codespell_lib/__init__.py
from ._codespell import _script_main, main from ._version import __version__ # type: ignore[import-not-found] __all__ = ["__version__", "_script_main", "main"]
162
Python
.py
3
52.666667
67
0.664557
codespell-project/codespell
1,850
470
225
GPL-2.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,911
_spellchecker.py
codespell-project_codespell/codespell_lib/_spellchecker.py
# # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; version 2 of the License. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, see # https://www.gnu.org/licenses/old-licenses/gpl-2.0.html. """ Copyright (C) 2010-2011 Lucas De Marchi <lucas.de.marchi@gmail.com> Copyright (C) 2011 ProFUSION embedded systems """ from typing import ( Dict, Set, ) # Pass all misspellings through this translation table to generate # alternative misspellings and fixes. alt_chars = (("'", "’"),) # noqa: RUF001 class Misspelling: def __init__(self, data: str, fix: bool, reason: str) -> None: self.data = data self.fix = fix self.reason = reason def add_misspelling( key: str, data: str, misspellings: Dict[str, Misspelling], ) -> None: data = data.strip() if "," in data: fix = False data, reason = data.rsplit(",", 1) reason = reason.lstrip() else: fix = True reason = "" misspellings[key] = Misspelling(data, fix, reason) def build_dict( filename: str, misspellings: Dict[str, Misspelling], ignore_words: Set[str], ) -> None: with open(filename, encoding="utf-8") as f: translate_tables = [(x, str.maketrans(x, y)) for x, y in alt_chars] for line in f: [key, data] = line.split("->") # TODO: For now, convert both to lower. # Someday we can maybe add support for fixing caps. key = key.lower() data = data.lower() if key not in ignore_words: add_misspelling(key, data, misspellings) # generate alternative misspellings/fixes for x, table in translate_tables: if x in key: alt_key = key.translate(table) alt_data = data.translate(table) if alt_key not in ignore_words: add_misspelling(alt_key, alt_data, misspellings)
2,393
Python
.py
65
30.307692
75
0.635893
codespell-project/codespell
1,850
470
225
GPL-2.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,912
test_basic.py
codespell-project_codespell/codespell_lib/tests/test_basic.py
import contextlib import inspect import os import os.path as op import re import subprocess import sys from io import StringIO from pathlib import Path from shutil import copyfile from typing import Any, Generator, Optional, Tuple, Union from unittest import mock import pytest import codespell_lib as cs_ from codespell_lib._codespell import ( EX_CONFIG, EX_DATAERR, EX_OK, EX_USAGE, uri_regex_def, ) def test_constants() -> None: """Test our EX constants.""" assert EX_OK == 0 assert EX_USAGE == 64 assert EX_DATAERR == 65 assert EX_CONFIG == 78 class MainWrapper: """Compatibility wrapper for when we used to return the count.""" @staticmethod def main( *args: Any, count: bool = True, std: bool = False, ) -> Union[int, Tuple[int, str, str]]: args = tuple(str(arg) for arg in args) if count: args = ("--count", *args) code = cs_.main(*args) frame = inspect.currentframe() assert frame is not None frame = frame.f_back assert frame is not None capsys = frame.f_locals["capsys"] stdout, stderr = capsys.readouterr() assert code in (EX_OK, EX_USAGE, EX_DATAERR, EX_CONFIG) if code == EX_DATAERR: # have some misspellings code = int(stderr.split("\n")[-2]) elif code == EX_OK and count: code = int(stderr.split("\n")[-2]) assert code == 0 if std: return (code, stdout, stderr) return code cs = MainWrapper() def run_codespell( args: Tuple[Any, ...] = (), cwd: Optional[Path] = None, ) -> int: """Run codespell.""" args = tuple(str(arg) for arg in args) proc = subprocess.run( # noqa: S603 ["codespell", "--count", *args], # noqa: S607 cwd=cwd, capture_output=True, encoding="utf-8", check=False, ) return int(proc.stderr.split("\n")[-2]) def test_command(tmp_path: Path) -> None: """Test running the codespell executable.""" # With no arguments does "." assert run_codespell(cwd=tmp_path) == 0 (tmp_path / "bad.txt").write_text("abandonned\nAbandonned\nABANDONNED\nAbAnDoNnEd") assert run_codespell(cwd=tmp_path) == 4 def test_basic( tmp_path: Path, capsys: pytest.CaptureFixture[str], ) -> None: """Test some basic functionality.""" assert cs.main("_does_not_exist_") == 0 fname = tmp_path / "tmp" fname.touch() result = cs.main("-D", "foo", fname, std=True) assert isinstance(result, tuple) code, _, stderr = result assert code == EX_USAGE, "missing dictionary" assert "cannot find dictionary" in stderr assert cs.main(fname) == 0, "empty file" with fname.open("a") as f: f.write("this is a test file\n") assert cs.main(fname) == 0, "good" with fname.open("a") as f: f.write("abandonned\n") assert cs.main(fname) == 1, "bad" with fname.open("a") as f: f.write("abandonned\n") assert cs.main(fname) == 2, "worse" with fname.open("a") as f: f.write("tim\ngonna\n") assert cs.main(fname) == 2, "with a name" assert cs.main("--builtin", "clear,rare,names,informal", fname) == 4 with fname.open("w") as f: # overwrite the file f.write("var = 'nwe must check codespell likes escapes nin strings'\n") assert cs.main(fname) == 1, "checking our string escape test word is bad" # the first one is missed because the apostrophe means its not currently # treated as a word on its own with fname.open("w") as f: # overwrite the file f.write("var = '\\nwe must check codespell likes escapes \\nin strings'\n") assert cs.main(fname) == 0, "with string escape" result = cs.main(fname, "--builtin", "foo", std=True) assert isinstance(result, tuple) code, _, stderr = result assert code == EX_USAGE # bad type assert "Unknown builtin dictionary" in stderr result = cs.main(fname, "-D", tmp_path / "foo", std=True) assert isinstance(result, tuple) code, _, stderr = result assert code == EX_USAGE # bad dict assert "cannot find dictionary" in stderr fname.unlink() with (tmp_path / "bad.txt").open("w", newline="") as f: f.write( "abandonned\nAbandonned\nABANDONNED\nAbAnDoNnEd\nabandonned\rAbandonned\r\nABANDONNED \n AbAnDoNnEd" # noqa: E501 ) assert cs.main(tmp_path) == 8 result = cs.main("-w", tmp_path, std=True) assert isinstance(result, tuple) code, _, stderr = result assert code == 0 assert "FIXED:" in stderr with (tmp_path / "bad.txt").open(newline="") as f: new_content = f.read() assert cs.main(tmp_path) == 0 assert ( new_content == "abandoned\nAbandoned\nABANDONED\nabandoned\nabandoned\rAbandoned\r\nABANDONED \n abandoned" # noqa: E501 ) (tmp_path / "bad.txt").write_text("abandonned abandonned\n") assert cs.main(tmp_path) == 2 result = cs.main("-q", "16", "-w", tmp_path, count=False, std=True) assert isinstance(result, tuple) code, stdout, stderr = result assert code == 0 assert not stdout assert not stderr assert cs.main(tmp_path) == 0 # empty directory (tmp_path / "empty").mkdir() assert cs.main(tmp_path) == 0 def test_default_word_parsing( tmp_path: Path, capsys: pytest.CaptureFixture[str], ) -> None: fname = tmp_path / "backtick" with fname.open("a") as f: f.write("`abandonned`\n") assert cs.main(fname) == 1, "bad" fname = tmp_path / "apostrophe" fname.write_text("woudn't\n", encoding="utf-8") # U+0027 assert cs.main(fname) == 1, "misspelling containing typewriter apostrophe U+0027" fname.write_text("woudn’t\n", encoding="utf-8") # U+2019 # noqa: RUF001 assert cs.main(fname) == 1, "misspelling containing typographic apostrophe U+2019" def test_bad_glob( tmp_path: Path, capsys: pytest.CaptureFixture[str], ) -> None: # disregard invalid globs, properly handle escaped globs g = tmp_path / "glob" g.mkdir() fname = g / "[b-a].txt" fname.write_text("abandonned\n") assert cs.main(g) == 1 # bad glob is invalid result = cs.main("--skip", "[b-a].txt", g, std=True) assert isinstance(result, tuple) code, _, stderr = result if sys.hexversion < 0x030A05F0: # Python < 3.10.5 raises re.error assert code == EX_USAGE, "invalid glob" assert "invalid glob" in stderr else: # Python >= 3.10.5 does not match assert code == 1 # properly escaped glob is valid, and matches glob-like file name assert cs.main("--skip", "[[]b-a[]].txt", g) == 0 @pytest.mark.skipif(sys.platform != "linux", reason="Only supported on Linux") def test_permission_error( tmp_path: Path, capsys: pytest.CaptureFixture[str], ) -> None: """Test permission error handling.""" fname = tmp_path / "unreadable.txt" fname.write_text("abandonned\n") result = cs.main(fname, std=True) assert isinstance(result, tuple) _, _, stderr = result assert "WARNING:" not in stderr fname.chmod(0o000) result = cs.main(fname, std=True) assert isinstance(result, tuple) _, _, stderr = result assert "WARNING:" in stderr def test_interactivity( tmp_path: Path, capsys: pytest.CaptureFixture[str], ) -> None: """Test interaction""" # Windows can't read a currently-opened file, so here we use # NamedTemporaryFile just to get a good name fname = tmp_path / "tmp" fname.touch() try: assert cs.main(fname) == 0, "empty file" fname.write_text("abandonned\n") with mock.patch.object(sys, "argv", ("-i", "-1", fname)): with pytest.raises(SystemExit) as e: cs.main("-i", "-1", fname) assert e.type is SystemExit assert e.value.code != 0 with FakeStdin("n\n"): result = cs.main("-w", "-i", "3", fname, std=True) assert isinstance(result, tuple) code, stdout, _ = result assert code == 0 assert "==>" in stdout with FakeStdin("x\ny\n"): assert cs.main("-w", "-i", "3", fname) == 0 assert cs.main(fname) == 0 finally: fname.unlink() # New example fname = tmp_path / "tmp2" fname.write_text("abandonned\n") try: assert cs.main(fname) == 1 with FakeStdin(" "): # blank input -> Y assert cs.main("-w", "-i", "3", fname) == 0 assert cs.main(fname) == 0 finally: fname.unlink() # multiple options fname = tmp_path / "tmp3" fname.write_text("ackward\n") try: assert cs.main(fname) == 1 with FakeStdin(" \n"): # blank input -> nothing assert cs.main("-w", "-i", "3", fname) == 0 assert cs.main(fname) == 1 with FakeStdin("0\n"): # blank input -> nothing assert cs.main("-w", "-i", "3", fname) == 0 assert cs.main(fname) == 0 assert fname.read_text() == "awkward\n" fname.write_text("ackward\n") assert cs.main(fname) == 1 with FakeStdin("x\n1\n"): # blank input -> nothing result = cs.main("-w", "-i", "3", fname, std=True) assert isinstance(result, tuple) code, stdout, _ = result assert code == 0 assert "a valid option" in stdout assert cs.main(fname) == 0 assert fname.read_text() == "backward\n" finally: fname.unlink() def test_summary( tmp_path: Path, capsys: pytest.CaptureFixture[str], ) -> None: """Test summary functionality.""" fname = tmp_path / "tmp" fname.touch() result = cs.main(fname, std=True, count=False) assert isinstance(result, tuple) code, stdout, stderr = result assert code == 0 assert not stdout assert not stderr, "no output" result = cs.main(fname, "--summary", std=True) assert isinstance(result, tuple) code, stdout, stderr = result assert code == 0 assert stderr == "0\n" assert "SUMMARY" in stdout assert len(stdout.split("\n")) == 5 fname.write_text("abandonned\nabandonned") assert code == 0 result = cs.main(fname, "--summary", std=True) assert isinstance(result, tuple) code, stdout, stderr = result assert stderr == "2\n" assert "SUMMARY" in stdout assert len(stdout.split("\n")) == 7 assert "abandonned" in stdout.split()[-2] def test_ignore_dictionary( tmp_path: Path, capsys: pytest.CaptureFixture[str], ) -> None: """Test ignore dictionary functionality.""" bad_name = tmp_path / "bad.txt" bad_name.write_text( "1 abandonned 1\n" "2 abandonned 2\n" "3 abandonned 3\r\n" "4 abilty 4\n" "5 abilty 5\n" "6 abilty 6\r\n" "7 ackward 7\n" "8 ackward 8\n" "9 ackward 9\r\n" "abondon\n" ) assert cs.main(bad_name) == 10 fname = tmp_path / "ignore.txt" fname.write_text("abandonned\nabilty\r\nackward") assert cs.main("-I", fname, bad_name) == 1 # missing file in ignore list fname_missing = tmp_path / "missing.txt" result = cs.main("-I", fname_missing, bad_name, std=True) assert isinstance(result, tuple) code, _, stderr = result assert code == EX_USAGE assert "ERROR:" in stderr # comma-separated list of files fname_dummy1 = tmp_path / "dummy1.txt" fname_dummy1.touch() fname_dummy2 = tmp_path / "dummy2.txt" fname_dummy2.touch() assert cs.main("-I", fname_dummy1, "-I", fname, "-I", fname_dummy2, bad_name) == 1 assert cs.main("-I", f"{fname_dummy1},{fname},{fname_dummy2}", bad_name) == 1 def test_ignore_words_with_cases( tmp_path: Path, capsys: pytest.CaptureFixture[str], ) -> None: """Test case-sensitivity implemented for -I and -L options in #3272.""" bad_name = tmp_path / "MIS.txt" bad_name.write_text( "1 MIS (Management Information System) 1\n" "2 Les Mis (1980 musical) 2\n" "3 mis 3\n" ) assert cs.main(bad_name) == 3 assert cs.main(bad_name, "-f") == 4 fname = tmp_path / "ignore.txt" fname.write_text("miS") assert cs.main("-I", fname, bad_name) == 3 assert cs.main("-LmiS", bad_name) == 3 assert cs.main("-I", fname, "-f", bad_name) == 4 assert cs.main("-LmiS", "-f", bad_name) == 4 fname.write_text("MIS") assert cs.main("-I", fname, bad_name) == 2 assert cs.main("-LMIS", bad_name) == 2 assert cs.main("-I", fname, "-f", bad_name) == 2 assert cs.main("-LMIS", "-f", bad_name) == 2 fname.write_text("MIS\nMis") assert cs.main("-I", fname, bad_name) == 1 assert cs.main("-LMIS,Mis", bad_name) == 1 assert cs.main("-I", fname, "-f", bad_name) == 1 assert cs.main("-LMIS,Mis", "-f", bad_name) == 1 fname.write_text("mis") assert cs.main("-I", fname, bad_name) == 0 assert cs.main("-Lmis", bad_name) == 0 assert cs.main("-I", fname, "-f", bad_name) == 0 assert cs.main("-Lmis", "-f", bad_name) == 0 def test_ignore_word_list( tmp_path: Path, capsys: pytest.CaptureFixture[str], ) -> None: """Test ignore word list functionality.""" (tmp_path / "bad.txt").write_text("abandonned\nabondon\nabilty\n") assert cs.main(tmp_path) == 3 assert cs.main("-Labandonned,someword", "-Labilty", tmp_path) == 1 @pytest.mark.parametrize( ("content", "expected_error_count"), [ # recommended form ("abandonned abondon abilty # codespell:ignore abondon", 2), ("abandonned abondon abilty // codespell:ignore abondon,abilty", 1), ( "abandonned abondon abilty /* codespell:ignore abandonned,abondon,abilty", 0, ), # ignore unused ignore ("abandonned abondon abilty # codespell:ignore nomenklatur", 3), # wildcard form ("abandonned abondon abilty # codespell:ignore ", 0), ("abandonned abondon abilty # codespell:ignore", 0), ("abandonned abondon abilty # codespell:ignore\n", 0), ("abandonned abondon abilty # codespell:ignore\r\n", 0), ("abandonned abondon abilty # codespell:ignore # noqa: E501\n", 0), ("abandonned abondon abilty # codespell:ignore # noqa: E501\n", 0), ("abandonned abondon abilty # codespell:ignore# noqa: E501\n", 0), ("abandonned abondon abilty # codespell:ignore, noqa: E501\n", 0), ("abandonned abondon abilty #codespell:ignore\n", 0), # ignore these for safety ("abandonned abondon abilty # codespell:ignorenoqa: E501\n", 3), ("abandonned abondon abilty codespell:ignore\n", 3), ("abandonned abondon abilty codespell:ignore\n", 3), # ignore these as they aren't valid ("abandonned abondon abilty # codespell:igore\n", 4), # showcase different comment markers ("abandonned abondon abilty ' codespell:ignore\n", 0), ('abandonned abondon abilty " codespell:ignore\n', 0), ("abandonned abondon abilty ;; codespell:ignore\n", 0), ("abandonned abondon abilty /* codespell:ignore */\n", 0), # prose examples ( "You could also use line based igore ( codespell:ignore ) to igore ", 0, ), ("You could also use line based igore (codespell:ignore) to igore ", 0), ( "You could also use line based igore (codespell:ignore igore) to igore ", 0, ), ( "You could also use line based igore (codespell:ignore igare) to igore ", 2, ), ], ) def test_inline_ignores( tmpdir: pytest.TempPathFactory, capsys: pytest.CaptureFixture[str], content: str, expected_error_count: int, ) -> None: d = str(tmpdir) with open(op.join(d, "bad.txt"), "w", encoding="utf-8") as f: f.write(content) assert cs.main(d) == expected_error_count def test_custom_regex( tmp_path: Path, capsys: pytest.CaptureFixture[str], ) -> None: """Test custom word regex.""" (tmp_path / "bad.txt").write_text("abandonned_abondon\n") assert cs.main(tmp_path) == 0 assert cs.main("-r", "[a-z]+", tmp_path) == 2 result = cs.main("-r", "[a-z]+", "--write-changes", tmp_path, std=True) assert isinstance(result, tuple) code, _, stderr = result assert code == EX_USAGE assert "ERROR:" in stderr def test_exclude_file( tmp_path: Path, capsys: pytest.CaptureFixture[str], ) -> None: """Test exclude file functionality.""" bad_name = tmp_path / "bad.txt" # check all possible combinations of lines to ignore and ignores combinations = "".join( f"{n} abandonned {n}\n" f"{n} abandonned {n}\r\n" f"{n} abandonned {n} \n" f"{n} abandonned {n} \r\n" for n in range(1, 5) ) bad_name.write_bytes( (combinations + "5 abandonned 5\n6 abandonned 6").encode("utf-8") ) assert cs.main(bad_name) == 18 fname = tmp_path / "tmp.txt" fname.write_bytes( b"1 abandonned 1\n" b"2 abandonned 2\r\n" b"3 abandonned 3 \n" b"4 abandonned 4 \r\n" b"6 abandonned 6\n" ) assert cs.main(bad_name) == 18 assert cs.main("-x", fname, bad_name) == 1 # comma-separated list of files fname_dummy1 = tmp_path / "dummy1.txt" fname_dummy1.touch() fname_dummy2 = tmp_path / "dummy2.txt" fname_dummy2.touch() assert cs.main("-x", fname_dummy1, "-x", fname, "-x", fname_dummy2, bad_name) == 1 assert cs.main("-x", f"{fname_dummy1},{fname},{fname_dummy2}", bad_name) == 1 def test_encoding( tmp_path: Path, capsys: pytest.CaptureFixture[str], ) -> None: """Test encoding handling.""" # Some simple Unicode things fname = tmp_path / "tmp" fname.touch() # with CaptureStdout() as sio: assert cs.main(fname) == 0 fname.write_bytes("naïve\n".encode()) assert cs.main(fname) == 0 assert cs.main("-e", fname) == 0 with fname.open("ab") as f: f.write(b"naieve\n") assert cs.main(fname) == 1 # Encoding detection (only try ISO 8859-1 because UTF-8 is the default) fname.write_bytes(b"Speling error, non-ASCII: h\xe9t\xe9rog\xe9n\xe9it\xe9\n") # check warnings about wrong encoding are enabled with "-q 0" result = cs.main("-q", "0", fname, std=True, count=True) assert isinstance(result, tuple) code, stdout, stderr = result assert code == 1 assert "Speling" in stdout assert "iso-8859-1" in stderr # check warnings about wrong encoding are disabled with "-q 1" result = cs.main("-q", "1", fname, std=True, count=True) assert isinstance(result, tuple) code, stdout, stderr = result assert code == 1 assert "Speling" in stdout assert "iso-8859-1" not in stderr # Binary file warning fname.write_bytes(b"\x00\x00naiive\x00\x00") result = cs.main(fname, std=True, count=False) assert isinstance(result, tuple) code, stdout, stderr = result assert code == 0 assert not stdout assert not stderr result = cs.main("-q", "0", fname, std=True, count=False) assert isinstance(result, tuple) code, stdout, stderr = result assert code == 0 assert not stdout assert "WARNING: Binary file" in stderr def test_unknown_encoding_chardet( tmp_path: Path, capsys: pytest.CaptureFixture[str], ) -> None: """Test opening a file with unknown encoding using chardet""" fname = tmp_path / "tmp" fname.touch() assert cs.main("--hard-encoding-detection", fname) == 0 def test_ignore( tmp_path: Path, capsys: pytest.CaptureFixture[str], ) -> None: """Test ignoring of files and directories.""" goodtxt = tmp_path / "good.txt" goodtxt.write_text("this file is okay") assert cs.main(tmp_path) == 0 badtxt = tmp_path / "bad.txt" badtxt.write_text("abandonned") assert cs.main(tmp_path) == 1 assert cs.main("--skip=bad*", tmp_path) == 0 assert cs.main("--skip=bad.txt", tmp_path) == 0 subdir = tmp_path / "ignoredir" subdir.mkdir() (subdir / "bad.txt").write_text("abandonned") assert cs.main(tmp_path) == 2 assert cs.main("--skip=bad*", tmp_path) == 0 assert cs.main("--skip=whatever.txt,bad*,whatelse.txt", tmp_path) == 0 assert cs.main("--skip=whatever.txt,\n bad* ,", tmp_path) == 0 assert cs.main("--skip=*ignoredir*", tmp_path) == 1 assert cs.main("--skip=ignoredir", tmp_path) == 1 assert cs.main("--skip=*ignoredir/bad*", tmp_path) == 1 assert cs.main(f"--skip={tmp_path}", tmp_path) == 0 badjs = tmp_path / "bad.js" copyfile(badtxt, badjs) assert cs.main("--skip=*.js", goodtxt, badtxt, badjs) == 1 def test_check_filename( tmp_path: Path, capsys: pytest.CaptureFixture[str], ) -> None: """Test filename check.""" fname = tmp_path / "abandonned.txt" # Empty file fname.touch() assert cs.main("-f", tmp_path) == 1 # Normal file with contents fname.write_text(".") assert cs.main("-f", tmp_path) == 1 # Normal file with binary contents fname.write_bytes(b"\x00\x00naiive\x00\x00") assert cs.main("-f", tmp_path) == 1 @pytest.mark.skipif( (not hasattr(os, "mkfifo") or not callable(os.mkfifo)), reason="requires os.mkfifo" ) def test_check_filename_irregular_file( tmp_path: Path, capsys: pytest.CaptureFixture[str], ) -> None: """Test irregular file filename check.""" # Irregular file (!isfile()) os.mkfifo(tmp_path / "abandonned") assert cs.main("-f", tmp_path) == 1 def test_check_hidden( tmp_path: Path, capsys: pytest.CaptureFixture[str], ) -> None: """Test ignoring of hidden files.""" # visible file # # tmp_path # └── test.txt # fname = tmp_path / "test.txt" fname.write_text("erorr\n") assert cs.main(fname) == 1 assert cs.main(tmp_path) == 1 # hidden file # # tmp_path # └── .test.txt # hidden_file = tmp_path / ".test.txt" fname.rename(hidden_file) assert cs.main(hidden_file) == 0 assert cs.main(tmp_path) == 0 assert cs.main("--check-hidden", hidden_file) == 1 assert cs.main("--check-hidden", tmp_path) == 1 # hidden file with typo in name # # tmp_path # └── .abandonned.txt # typo_file = tmp_path / ".abandonned.txt" hidden_file.rename(typo_file) assert cs.main(typo_file) == 0 assert cs.main(tmp_path) == 0 assert cs.main("--check-hidden", typo_file) == 1 assert cs.main("--check-hidden", tmp_path) == 1 assert cs.main("--check-hidden", "--check-filenames", typo_file) == 2 assert cs.main("--check-hidden", "--check-filenames", tmp_path) == 2 # hidden directory # # tmp_path # ├── .abandonned # │ ├── .abandonned.txt # │ └── subdir # │ └── .abandonned.txt # └── .abandonned.txt # assert cs.main(tmp_path) == 0 assert cs.main("--check-hidden", tmp_path) == 1 assert cs.main("--check-hidden", "--check-filenames", tmp_path) == 2 hidden = tmp_path / ".abandonned" hidden.mkdir() copyfile(typo_file, hidden / typo_file.name) subdir = hidden / "subdir" subdir.mkdir() copyfile(typo_file, subdir / typo_file.name) assert cs.main(tmp_path) == 0 assert cs.main("--check-hidden", tmp_path) == 3 assert cs.main("--check-hidden", "--check-filenames", tmp_path) == 8 # check again with a relative path try: rel = op.relpath(tmp_path) except ValueError: # Windows: path is on mount 'C:', start on mount 'D:' pass else: assert cs.main(rel) == 0 assert cs.main("--check-hidden", rel) == 3 assert cs.main("--check-hidden", "--check-filenames", rel) == 8 # hidden subdirectory # # tmp_path # ├── .abandonned # │ ├── .abandonned.txt # │ └── subdir # │ └── .abandonned.txt # ├── .abandonned.txt # └── subdir # └── .abandonned # └── .abandonned.txt subdir = tmp_path / "subdir" subdir.mkdir() hidden = subdir / ".abandonned" hidden.mkdir() copyfile(typo_file, hidden / typo_file.name) assert cs.main(tmp_path) == 0 assert cs.main("--check-hidden", tmp_path) == 4 assert cs.main("--check-hidden", "--check-filenames", tmp_path) == 11 def test_case_handling( tmp_path: Path, capsys: pytest.CaptureFixture[str], ) -> None: """Test that capitalized entries get detected properly.""" # Some simple Unicode things fname = tmp_path / "tmp" fname.touch() # with CaptureStdout() as sio: assert cs.main(fname) == 0 fname.write_bytes(b"this has an ACII error") result = cs.main(fname, std=True) assert isinstance(result, tuple) code, stdout, _ = result assert code == 1 assert "ASCII" in stdout result = cs.main("-w", fname, std=True) assert isinstance(result, tuple) code, _, stderr = result assert code == 0 assert "FIXED" in stderr assert fname.read_text(encoding="utf-8") == "this has an ASCII error" def _helper_test_case_handling_in_fixes( tmp_path: Path, capsys: pytest.CaptureFixture[str], reason: bool, ) -> None: dictionary_name = tmp_path / "dictionary.txt" if reason: dictionary_name.write_text("adoptor->adopter, adaptor, reason\n") else: dictionary_name.write_text("adoptor->adopter, adaptor,\n") # the misspelled word is entirely lowercase fname = tmp_path / "bad.txt" fname.write_text("early adoptor\n") result = cs.main("-D", dictionary_name, fname, std=True) assert isinstance(result, tuple) _, stdout, _ = result # all suggested fixes must be lowercase too assert "adopter, adaptor" in stdout # the reason, if any, must not be modified if reason: assert "reason" in stdout # the misspelled word is capitalized fname.write_text("Early Adoptor\n") result = cs.main("-D", dictionary_name, fname, std=True) assert isinstance(result, tuple) _, stdout, _ = result # all suggested fixes must be capitalized too assert "Adopter, Adaptor" in stdout # the reason, if any, must not be modified if reason: assert "reason" in stdout # the misspelled word is entirely uppercase fname.write_text("EARLY ADOPTOR\n") result = cs.main("-D", dictionary_name, fname, std=True) assert isinstance(result, tuple) _, stdout, _ = result # all suggested fixes must be uppercase too assert "ADOPTER, ADAPTOR" in stdout # the reason, if any, must not be modified if reason: assert "reason" in stdout # the misspelled word mixes lowercase and uppercase fname.write_text("EaRlY AdOpToR\n") result = cs.main("-D", dictionary_name, fname, std=True) assert isinstance(result, tuple) _, stdout, _ = result # all suggested fixes should be lowercase assert "adopter, adaptor" in stdout # the reason, if any, must not be modified if reason: assert "reason" in stdout def test_case_handling_in_fixes( tmp_path: Path, capsys: pytest.CaptureFixture[str] ) -> None: """Test that the case of fixes is similar to the misspelled word.""" _helper_test_case_handling_in_fixes(tmp_path, capsys, reason=False) _helper_test_case_handling_in_fixes(tmp_path, capsys, reason=True) def test_context( tmp_path: Path, capsys: pytest.CaptureFixture[str], ) -> None: """Test context options.""" (tmp_path / "context.txt").write_text( "line 1\nline 2\nline 3 abandonned\nline 4\nline 5" ) # symmetric context, fully within file result = cs.main("-C", "1", tmp_path, std=True) assert isinstance(result, tuple) code, stdout, _ = result assert code == 1 lines = stdout.split("\n") assert len(lines) == 5 assert lines[0] == ": line 2" assert lines[1] == "> line 3 abandonned" assert lines[2] == ": line 4" # requested context is bigger than the file result = cs.main("-C", "10", tmp_path, std=True) assert isinstance(result, tuple) code, stdout, _ = result assert code == 1 lines = stdout.split("\n") assert len(lines) == 7 assert lines[0] == ": line 1" assert lines[1] == ": line 2" assert lines[2] == "> line 3 abandonned" assert lines[3] == ": line 4" assert lines[4] == ": line 5" # only before context result = cs.main("-B", "2", tmp_path, std=True) assert isinstance(result, tuple) code, stdout, _ = result assert code == 1 lines = stdout.split("\n") assert len(lines) == 5 assert lines[0] == ": line 1" assert lines[1] == ": line 2" assert lines[2] == "> line 3 abandonned" # only after context result = cs.main("-A", "1", tmp_path, std=True) assert isinstance(result, tuple) code, stdout, _ = result assert code == 1 lines = stdout.split("\n") assert len(lines) == 4 assert lines[0] == "> line 3 abandonned" assert lines[1] == ": line 4" # asymmetric context result = cs.main("-B", "2", "-A", "1", tmp_path, std=True) assert isinstance(result, tuple) code, stdout, _ = result assert code == 1 lines = stdout.split("\n") assert len(lines) == 6 assert lines[0] == ": line 1" assert lines[1] == ": line 2" assert lines[2] == "> line 3 abandonned" assert lines[3] == ": line 4" # both '-C' and '-A' on the command line result = cs.main("-C", "2", "-A", "1", tmp_path, std=True) assert isinstance(result, tuple) code, _, stderr = result assert code == EX_USAGE lines = stderr.split("\n") assert "ERROR" in lines[0] # both '-C' and '-B' on the command line result = cs.main("-C", "2", "-B", "1", tmp_path, std=True) assert isinstance(result, tuple) code, _, stderr = result assert code == EX_USAGE lines = stderr.split("\n") assert "ERROR" in lines[0] def test_ignore_regex_option( tmp_path: Path, capsys: pytest.CaptureFixture[str], ) -> None: """Test ignore regex option functionality.""" # Invalid regex. result = cs.main("--ignore-regex=(", std=True) assert isinstance(result, tuple) code, stdout, _ = result assert code == EX_USAGE assert "usage:" in stdout fname = tmp_path / "flag.txt" fname.write_text("# Please see http://example.com/abandonned for info\n") # Test file has 1 invalid entry, and it's not ignored by default. assert cs.main(fname) == 1 # An empty regex is the default value, and nothing is ignored. assert cs.main(fname, "--ignore-regex=") == 1 assert cs.main(fname, '--ignore-regex=""') == 1 # Non-matching regex results in nothing being ignored. assert cs.main(fname, "--ignore-regex=^$") == 1 # A word can be ignored. assert cs.main(fname, "--ignore-regex=abandonned") == 0 # Ignoring part of the word can result in odd behavior. assert cs.main(fname, "--ignore-regex=nn") == 0 fname.write_text("abandonned donn\n") # Test file has 2 invalid entries. assert cs.main(fname) == 2 # Ignoring donn breaks them both. assert cs.main(fname, "--ignore-regex=donn") == 0 # Adding word breaks causes only one to be ignored. assert cs.main(fname, r"--ignore-regex=\bdonn\b") == 1 def test_ignore_multiline_regex_option( tmp_path: Path, capsys: pytest.CaptureFixture[str], ) -> None: """Test ignore regex option functionality.""" # Invalid regex. result = cs.main("--ignore-multiline-regex=(", std=True) assert isinstance(result, tuple) code, stdout, _ = result assert code == EX_USAGE assert "usage:" in stdout fname = tmp_path / "flag.txt" fname.write_text( """ Please see http://example.com/abandonned for info # codespell:ignore-begin ''' abandonned abandonned ''' # codespell:ignore-end abandonned """ ) assert cs.main(fname) == 4 assert ( cs.main( fname, "--ignore-multiline-regex", "codespell:ignore-begin.*codespell:ignore-end", ) == 2 ) def test_uri_regex_option( tmp_path: Path, capsys: pytest.CaptureFixture[str], ) -> None: """Test --uri-regex option functionality.""" # Invalid regex. result = cs.main("--uri-regex=(", std=True) assert isinstance(result, tuple) code, stdout, _ = result assert code == EX_USAGE assert "usage:" in stdout fname = tmp_path / "flag.txt" fname.write_text("# Please see http://abandonned.com for info\n") # By default, the standard regex is used. assert cs.main(fname) == 1 assert cs.main(fname, "--uri-ignore-words-list=abandonned") == 0 # If empty, nothing matches. assert cs.main(fname, "--uri-regex=", "--uri-ignore-words-list=abandonned") == 0 # Can manually match urls. assert ( cs.main(fname, "--uri-regex=\\bhttp.*\\b", "--uri-ignore-words-list=abandonned") == 0 ) # Can also match arbitrary content. fname.write_text("abandonned") assert cs.main(fname) == 1 assert cs.main(fname, "--uri-ignore-words-list=abandonned") == 1 assert cs.main(fname, "--uri-regex=.*") == 1 assert cs.main(fname, "--uri-regex=.*", "--uri-ignore-words-list=abandonned") == 0 def test_uri_ignore_words_list_option_uri( tmp_path: Path, capsys: pytest.CaptureFixture[str], ) -> None: """Test ignore regex option functionality.""" fname = tmp_path / "flag.txt" fname.write_text("# Please see http://example.com/abandonned for info\n") # Test file has 1 invalid entry, and it's not ignored by default. assert cs.main(fname) == 1 # An empty list is the default value, and nothing is ignored. assert cs.main(fname, "--uri-ignore-words-list=") == 1 # Non-matching regex results in nothing being ignored. assert cs.main(fname, "--uri-ignore-words-list=foo,example") == 1 # A word can be ignored. assert cs.main(fname, "--uri-ignore-words-list=abandonned") == 0 assert cs.main(fname, "--uri-ignore-words-list=foo,abandonned,bar") == 0 assert cs.main(fname, "--uri-ignore-words-list=*") == 0 # The match must be for the complete word. assert cs.main(fname, "--uri-ignore-words-list=abandonn") == 1 fname.write_text("abandonned http://example.com/abandonned\n") # Test file has 2 invalid entries. assert cs.main(fname) == 2 # Ignoring the value in the URI won't ignore the word completely. assert cs.main(fname, "--uri-ignore-words-list=abandonned") == 1 assert cs.main(fname, "--uri-ignore-words-list=*") == 1 # The regular --ignore-words-list will ignore both. assert cs.main(fname, "--ignore-words-list=abandonned") == 0 variation_option = "--uri-ignore-words-list=abandonned" # Variations where an error is ignored. for variation in ( "# Please see http://abandonned for info\n", '# Please see "http://abandonned" for info\n', # This variation could be un-ignored, but it'd require a # more complex regex as " is valid in parts of URIs. '# Please see "http://foo"abandonned for info\n', "# Please see https://abandonned for info\n", "# Please see ftp://abandonned for info\n", "# Please see http://example/abandonned for info\n", "# Please see http://example.com/abandonned for info\n", "# Please see http://exam.com/ple#abandonned for info\n", "# Please see http://exam.com/ple?abandonned for info\n", "# Please see http://127.0.0.1/abandonned for info\n", "# Please see http://[2001:0db8:85a3:0000:0000:8a2e:0370" ":7334]/abandonned for info\n", ): fname.write_text(variation) assert cs.main(fname) == 1, variation assert cs.main(fname, variation_option) == 0, variation # Variations where no error is ignored. for variation in ( "# Please see abandonned/ for info\n", "# Please see http:abandonned for info\n", "# Please see foo/abandonned for info\n", "# Please see http://foo abandonned for info\n", ): fname.write_text(variation) assert cs.main(fname) == 1, variation assert cs.main(fname, variation_option) == 1, variation def test_uri_ignore_words_list_option_email( tmp_path: Path, capsys: pytest.CaptureFixture[str], ) -> None: """Test ignore regex option functionality.""" fname = tmp_path / "flag.txt" fname.write_text("# Please see example@abandonned.com for info\n") # Test file has 1 invalid entry, and it's not ignored by default. assert cs.main(fname) == 1 # An empty list is the default value, and nothing is ignored. assert cs.main(fname, "--uri-ignore-words-list=") == 1 # Non-matching regex results in nothing being ignored. assert cs.main(fname, "--uri-ignore-words-list=foo,example") == 1 # A word can be ignored. assert cs.main(fname, "--uri-ignore-words-list=abandonned") == 0 assert cs.main(fname, "--uri-ignore-words-list=foo,abandonned,bar") == 0 assert cs.main(fname, "--uri-ignore-words-list=*") == 0 # The match must be for the complete word. assert cs.main(fname, "--uri-ignore-words-list=abandonn") == 1 fname.write_text("abandonned example@abandonned.com\n") # Test file has 2 invalid entries. assert cs.main(fname) == 2 # Ignoring the value in the URI won't ignore the word completely. assert cs.main(fname, "--uri-ignore-words-list=abandonned") == 1 assert cs.main(fname, "--uri-ignore-words-list=*") == 1 # The regular --ignore-words-list will ignore both. assert cs.main(fname, "--ignore-words-list=abandonned") == 0 variation_option = "--uri-ignore-words-list=abandonned" # Variations where an error is ignored. for variation in ( "# Please see example@abandonned for info\n", "# Please see abandonned@example for info\n", "# Please see abandonned@example.com for info\n", "# Please see mailto:abandonned@example.com?subject=Test for info\n", ): fname.write_text(variation) assert cs.main(fname) == 1, variation assert cs.main(fname, variation_option) == 0, variation # Variations where no error is ignored. for variation in ( "# Please see example @ abandonned for info\n", "# Please see abandonned@ example for info\n", "# Please see mailto:foo@example.com?subject=Test abandonned for info\n", ): fname.write_text(variation) assert cs.main(fname) == 1, variation assert cs.main(fname, variation_option) == 1, variation def test_uri_regex_def() -> None: uri_regex = re.compile(uri_regex_def) # Tests based on https://mathiasbynens.be/demo/url-regex true_positives = ( "http://foo.com/blah_blah", "http://foo.com/blah_blah/", "http://foo.com/blah_blah_(wikipedia)", "http://foo.com/blah_blah_(wikipedia)_(again)", "http://www.example.com/wpstyle/?p=364", "https://www.example.com/foo/?bar=baz&inga=42&quux", "http://✪df.ws/123", "http://userid:password@example.com:8080", "http://userid:password@example.com:8080/", "http://userid@example.com", "http://userid@example.com/", "http://userid@example.com:8080", "http://userid@example.com:8080/", "http://userid:password@example.com", "http://userid:password@example.com/", "http://142.42.1.1/", "http://142.42.1.1:8080/", "http://➡.ws/䨹", "http://⌘.ws", "http://⌘.ws/", "http://foo.com/blah_(wikipedia)#cite-1", "http://foo.com/blah_(wikipedia)_blah#cite-1", "http://foo.com/unicode_(✪)_in_parens", "http://foo.com/(something)?after=parens", "http://☺.damowmow.com/", "http://code.google.com/events/#&product=browser", "http://j.mp", "ftp://foo.bar/baz", "http://foo.bar/?q=Test%20URL-encoded%20stuff", "http://مثال.إختبار", "http://例子.测试", "http://उदाहरण.परीक्षा", "http://-.~_!$&'()*+,;=:%40:80%2f::::::@example.com", "http://1337.net", "http://a.b-c.de", "http://223.255.255.254", ) true_negatives = ( "http://", "//", "//a", "///a", "///", "foo.com", "rdar://1234", "h://test", "://should.fail", "ftps://foo.bar/", ) false_positives = ( "http://.", "http://..", "http://../", "http://?", "http://??", "http://??/", "http://#", "http://##", "http://##/", "http:///a", "http://-error-.invalid/", "http://a.b--c.de/", "http://-a.b.co", "http://a.b-.co", "http://0.0.0.0", "http://10.1.1.0", "http://10.1.1.255", "http://224.1.1.1", "http://1.1.1.1.1", "http://123.123.123", "http://3628126748", "http://.www.foo.bar/", "http://www.foo.bar./", "http://.www.foo.bar./", "http://10.1.1.1", ) boilerplate = "Surrounding text %s more text" for uri in true_positives + false_positives: assert uri_regex.findall(uri) == [uri], uri assert uri_regex.findall(boilerplate % uri) == [uri], uri for uri in true_negatives: assert not uri_regex.findall(uri), uri assert not uri_regex.findall(boilerplate % uri), uri def test_quiet_level_32( tmp_path: Path, tmpdir: pytest.TempPathFactory, capsys: pytest.CaptureFixture[str], ) -> None: d = tmp_path / "files" d.mkdir() conf = str(tmp_path / "setup.cfg") with open(conf, "w", encoding="utf-8") as f: # It must contain a "codespell" section. f.write("[codespell]\n") args = ("--config", conf) # Config files should NOT be in output. result = cs.main(str(d), *args, "--quiet-level=32", std=True) assert isinstance(result, tuple) code, stdout, _ = result assert code == 0 assert "Used config files:" not in stdout # Config files SHOULD be in output. result = cs.main(str(d), *args, "--quiet-level=2", std=True) assert isinstance(result, tuple) code, stdout, _ = result assert code == 0 assert "Used config files:" in stdout assert "setup.cfg" in stdout def test_ill_formed_ini_config_file( tmp_path: Path, tmpdir: pytest.TempPathFactory, capsys: pytest.CaptureFixture[str], ) -> None: d = tmp_path / "files" d.mkdir() conf = str(tmp_path / "setup.cfg") with open(conf, "w", encoding="utf-8") as f: # It should contain but lacks a section. f.write("foobar =\n") args = ("--config", conf) # Should not raise a configparser.Error exception. result = cs.main(str(d), *args, std=True) assert isinstance(result, tuple) code, _, stderr = result assert code == 78 assert "ill-formed config file" in stderr @pytest.mark.parametrize("kind", ["cfg", "cfg_multiline", "toml", "toml_list"]) def test_config_toml( tmp_path: Path, capsys: pytest.CaptureFixture[str], kind: str, ) -> None: """Test loading options from a config file or toml.""" d = tmp_path / "files" d.mkdir() (d / "bad.txt").write_text("abandonned donn\n") (d / "good.txt").write_text("good") (d / "abandonned.txt").write_text("") # Should fail when checking all files. result = cs.main(d, "--check-filenames", count=True, std=True) assert isinstance(result, tuple) code, stdout, _ = result # Code in this case is not exit code, but count of misspellings. assert code == 3 assert "bad.txt" in stdout assert "abandonned.txt" in stdout if kind.startswith("cfg"): conffile = tmp_path / "setup.cfg" args = ("--config", conffile) if kind == "cfg": text = """\ [codespell] skip = bad.txt, whatever.txt count = """ else: assert kind == "cfg_multiline" text = """\ [codespell] skip = whatever.txt, bad.txt , , count = """ conffile.write_text(text) else: if sys.version_info < (3, 11): pytest.importorskip("tomli") tomlfile = tmp_path / "pyproject.toml" args = ("--toml", tomlfile) if kind == "toml": text = """\ [tool.codespell] skip = 'bad.txt,whatever.txt' check-filenames = false count = true """ else: assert kind == "toml_list" text = """\ [tool.codespell] skip = ['bad.txt', 'whatever.txt'] check-filenames = false count = true """ tomlfile.write_text(text) # Should pass when skipping bad.txt or abandonned.txt result = cs.main(d, *args, std=True) assert isinstance(result, tuple) code, stdout, _ = result assert code == 0 assert "bad.txt" not in stdout assert "abandonned.txt" not in stdout # And both should automatically work if they're in cwd cwd = Path.cwd() try: os.chdir(tmp_path) result = cs.main(d, count=True, std=True) assert isinstance(result, tuple) code, stdout, _ = result finally: os.chdir(cwd) assert code == 0 assert "bad.txt" not in stdout assert "abandonned.txt" not in stdout @contextlib.contextmanager def FakeStdin(text: str) -> Generator[None, None, None]: oldin = sys.stdin try: in_ = StringIO(text) sys.stdin = in_ yield finally: sys.stdin = oldin def run_codespell_stdin( text: str, args: Tuple[Any, ...], cwd: Optional[Path] = None, ) -> int: """Run codespell in stdin mode and return number of lines in output.""" proc = subprocess.run( # noqa: S603 ["codespell", *args, "-"], # noqa: S607 cwd=cwd, input=text, capture_output=True, encoding="utf-8", check=False, ) output = proc.stdout # get number of lines return output.count("\n") def test_stdin(tmp_path: Path) -> None: """Test running the codespell executable.""" input_file_lines = 4 text = "" for _ in range(input_file_lines): text += "abandonned\n" for single_line_per_error in (True, False): args: Tuple[str, ...] = () if single_line_per_error: args = ("--stdin-single-line",) # we expect 'input_file_lines' number of lines with # --stdin-single-line and input_file_lines * 2 lines without it assert run_codespell_stdin( text, args=args, cwd=tmp_path ) == input_file_lines * (2 - int(single_line_per_error))
47,142
Python
.py
1,273
30.933229
126
0.612962
codespell-project/codespell
1,850
470
225
GPL-2.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,913
test_dictionary.py
codespell-project_codespell/codespell_lib/tests/test_dictionary.py
import glob import os import os.path as op import pathlib import re from typing import Any, Dict, Iterable, Optional, Set, Tuple import pytest from codespell_lib._codespell import ( _builtin_dictionaries, supported_languages, word_regex_def, ) spellers = {} root = pathlib.Path(__file__).parent.parent try: import aspell # type: ignore[import] _test_data_dir = op.join(op.dirname(__file__), "..", "tests", "data") for lang in supported_languages: _wordlist = op.join(_test_data_dir, f"{lang}-additional.wordlist") if op.isfile(_wordlist): spellers[lang] = aspell.Speller( ("lang", lang), ("size", "80"), ("wordlists", _wordlist) ) else: spellers[lang] = aspell.Speller(("lang", lang), ("size", "80")) except ImportError as e: if os.getenv("REQUIRE_ASPELL", "false").lower() == "true": msg = ( "Cannot run complete tests without aspell when " f"REQUIRE_ASPELL=true. Got error during import:\n{e}" ) raise RuntimeError(msg) from e global_err_dicts: Dict[str, Dict[str, Any]] = {} global_pairs: Set[Tuple[str, str]] = set() # Filename, should be seen as errors in aspell or not _data_dir = op.join(op.dirname(__file__), "..", "data") _fnames_in_aspell = [ (op.join(_data_dir, f"dictionary{d[2]}.txt"), d[3:5], d[5:7]) for d in _builtin_dictionaries ] fname_params = pytest.mark.parametrize( "fname, in_aspell, in_dictionary", _fnames_in_aspell ) def test_dictionaries_exist() -> None: """Test consistency of dictionaries.""" doc_fnames = {op.basename(f[0]) for f in _fnames_in_aspell} got_fnames = {op.basename(f) for f in glob.glob(op.join(_data_dir, "*.txt"))} assert doc_fnames == got_fnames @fname_params def test_dictionary_formatting( fname: str, in_aspell: Tuple[bool, bool], in_dictionary: Tuple[Iterable[str], Iterable[str]], ) -> None: """Test that all dictionary entries are valid.""" errors = [] with open(fname, encoding="utf-8") as fid: for line in fid: err, rep = line.split("->") err = err.lower() rep = rep.rstrip("\n") try: _check_err_rep(err, rep, in_aspell, fname, in_dictionary) except AssertionError as exp: errors.append(str(exp).split("\n", maxsplit=1)[0]) if errors: msg = "\n" + "\n".join(errors) raise AssertionError(msg) @pytest.mark.parametrize( "filename", [ *(root / "data").rglob("dictionary*.txt"), *(root / "tests/data").rglob("*.wordlist"), ], ) def test_dictionary_sorting(filename: pathlib.Path) -> None: relative_path = filename.relative_to(root) previous_line = None with filename.open(encoding="utf-8") as file: for current_line in file: current_line = current_line.strip().lower() if previous_line is not None: assert previous_line < current_line, f"{relative_path} is not sorted" previous_line = current_line def _check_aspell( phrase: str, msg: str, in_aspell: Optional[bool], fname: str, languages: Iterable[str], ) -> None: if not spellers: # if no spellcheckers exist return # cannot check if in_aspell is None: return # don't check if " " in phrase: for word in phrase.split(): _check_aspell(word, msg, in_aspell, fname, languages) return # stop normal checking as we've done each word above this_in_aspell = any( spellers[lang].check(phrase.encode(spellers[lang].ConfigKeys()["encoding"][1])) for lang in languages ) end = f"be in aspell dictionaries ({', '.join(languages)}) for dictionary {fname}" if in_aspell: # should be an error in aspell assert this_in_aspell, f"{msg} should {end}" else: # shouldn't be assert not this_in_aspell, f"{msg} should not {end}" whitespace = re.compile(r"\s") start_whitespace = re.compile(r"^\s") start_comma = re.compile(r"^,") whitespace_comma = re.compile(r"\s,") comma_whitespaces = re.compile(r",\s\s") comma_without_space = re.compile(r",[^ ]") whitespace_end = re.compile(r"\s+$") single_comma = re.compile(r"^[^,]*,\s*$") def _check_err_rep( err: str, rep: str, in_aspell: Tuple[Optional[bool], Optional[bool]], fname: str, languages: Tuple[Iterable[str], Iterable[str]], ) -> None: assert whitespace.search(err) is None, f"error {err!r} has whitespace" assert "," not in err, f"error {err!r} has a comma" assert len(rep) > 0, f"error {err}: correction {rep!r} must be non-empty" assert not start_whitespace.match( rep ), f"error {err}: correction {rep!r} cannot start with whitespace" _check_aspell(err, f"error {err!r}", in_aspell[0], fname, languages[0]) prefix = f"error {err}: correction {rep!r}" for regex, msg in ( (start_comma, "%s starts with a comma"), ( whitespace_comma, "%s contains a whitespace character followed by a comma", ), ( comma_whitespaces, "%s contains a comma followed by multiple whitespace characters", ), (comma_without_space, "%s contains a comma *not* followed by a space"), (whitespace_end, "%s has a trailing space"), (single_comma, "%s has a single entry but contains a trailing comma"), ): assert not regex.search(rep), msg % (prefix,) del msg if rep.count(","): assert rep.endswith( "," ), f'error {err}: multiple corrections must end with trailing ","' reps = [r.strip() for r in rep.split(",")] reps = [r for r in reps if len(r)] for r in reps: assert err != r.lower(), f"error {err!r} corrects to itself amongst others" _check_aspell( r, f"error {err}: correction {r!r}", in_aspell[1], fname, languages[1], ) # aspell dictionary is case sensitive, so pass the original case into there # we could ignore the case, but that would miss things like days of the # week which we want to be correct reps = [r.lower() for r in reps] assert len(set(reps)) == len( reps ), f'error {err}: corrections "{rep}" are not (lower-case) unique' @pytest.mark.parametrize( ("err", "rep", "match"), [ ("a a", "bar", "has whitespace"), ("a,a", "bar", "has a comma"), ("a", "", "non-empty"), ("a", " bar", "start with whitespace"), ("a", ",bar", "starts with a comma"), ("a", "bar,bat", ".*not.*followed by a space"), ("a", "bar ", "trailing space"), ("a", "b ,ar", "contains a whitespace.*followed by a comma"), ("a", "bar,", "single entry.*comma"), ("a", "bar, bat", 'must end with trailing ","'), ("a", "a, bar,", "corrects to itself amongst others"), ("a", "a", "corrects to itself"), ("a", "bar, Bar,", "unique"), ], ) def test_error_checking(err: str, rep: str, match: str) -> None: """Test that our error checking works.""" with pytest.raises(AssertionError, match=match): _check_err_rep( err, rep, (None, None), "dummy", (supported_languages, supported_languages), ) @pytest.mark.skipif(not spellers, reason="requires aspell-en") @pytest.mark.parametrize( ("err", "rep", "err_aspell", "rep_aspell", "match"), [ # This doesn't raise any exceptions, so skip for now: # pytest.param('a', 'uvw, bar,', None, None, 'should be in aspell'), ("abcdef", "uvwxyz, bar,", True, None, "should be in aspell"), ("a", "uvwxyz, bar,", False, None, "should not be in aspell"), ("a", "abcdef, uvwxyz,", None, True, "should be in aspell"), ("abcdef", "uvwxyz, bar,", True, True, "should be in aspell"), ("abcdef", "uvwxyz, bar,", False, True, "should be in aspell"), ("a", "bar, back,", None, False, "should not be in aspell"), ("a", "bar, back, Wednesday,", None, False, "should not be in aspell"), ("abcdef", "ghijkl, uvwxyz,", True, False, "should be in aspell"), ("abcdef", "uvwxyz, bar,", False, False, "should not be in aspell"), # Multi-word corrections # One multi-word, both parts ("a", "abcdef uvwxyz", None, True, "should be in aspell"), ("a", "bar back", None, False, "should not be in aspell"), ("a", "bar back Wednesday", None, False, "should not be in aspell"), # Second multi-word, both parts ( "a", "bar back, abcdef uvwxyz, bar,", None, True, "should be in aspell", ), ( "a", "abcdef uvwxyz, bar back, ghijkl,", None, False, "should not be in aspell", ), # One multi-word, second part ("a", "bar abcdef", None, True, "should be in aspell"), ("a", "abcdef back", None, False, "should not be in aspell"), ], ) def test_error_checking_in_aspell( err: str, rep: str, err_aspell: Optional[bool], rep_aspell: Optional[bool], match: str, ) -> None: """Test that our error checking works with aspell.""" with pytest.raises(AssertionError, match=match): _check_err_rep( err, rep, (err_aspell, rep_aspell), "dummy", (supported_languages, supported_languages), ) # allow some duplicates, like "m-i-n-i-m-i-s-e", or "c-a-l-c-u-l-a-t-a-b-l-e" # correction in left can appear as typo in right allowed_dups = { ("dictionary.txt", "dictionary_code.txt"), ("dictionary.txt", "dictionary_en-GB_to_en-US.txt"), ("dictionary.txt", "dictionary_names.txt"), ("dictionary.txt", "dictionary_rare.txt"), ("dictionary.txt", "dictionary_usage.txt"), ("dictionary_code.txt", "dictionary_rare.txt"), ("dictionary_rare.txt", "dictionary_en-GB_to_en-US.txt"), ("dictionary_rare.txt", "dictionary_usage.txt"), } @fname_params @pytest.mark.dependency(name="dictionary loop") def test_dictionary_looping( fname: str, in_aspell: Tuple[bool, bool], in_dictionary: Tuple[bool, bool], ) -> None: """Test that all dictionary entries are valid.""" this_err_dict = {} short_fname = op.basename(fname) word_regex = re.compile(word_regex_def) with open(fname, encoding="utf-8") as fid: for line in fid: err, rep = line.split("->") err = err.lower() assert ( err not in this_err_dict ), f"error {err!r} already exists in {short_fname}" rep = rep.rstrip("\n") reps = [r.strip() for r in rep.lower().split(",")] reps = [r for r in reps if len(r)] this_err_dict[err] = reps # 1. check the dict against itself (diagonal) for err, reps in this_err_dict.items(): assert word_regex.fullmatch( err ), f"error {err!r} does not match default word regex '{word_regex_def}'" for r in reps: assert r not in this_err_dict, ( f"error {err}: correction {r} is an error itself " f"in the same dictionary file {short_fname}" ) pair = (short_fname, short_fname) assert pair not in global_pairs global_pairs.add(pair) for other_fname, other_err_dict in global_err_dicts.items(): # error duplication (eventually maybe we should just merge?) for err in this_err_dict: assert err not in other_err_dict, ( f"error {err!r} in dictionary {short_fname} " f"already exists in dictionary {other_fname}" ) # 2. check corrections in this dict against other dicts (upper) pair = (short_fname, other_fname) if pair not in allowed_dups: for err, reps in this_err_dict.items(): assert err not in other_err_dict, ( f"error {err!r} in dictionary {short_fname} " f"already exists in dictionary {other_fname}" ) for r in reps: assert r not in other_err_dict, ( f"error {err}: correction {r} from dictionary {short_fname} " f"is an error itself in dictionary {other_fname}" ) assert pair not in global_pairs global_pairs.add(pair) # 3. check corrections in other dicts against this dict (lower) pair = (other_fname, short_fname) if pair not in allowed_dups: for err in other_err_dict: for r in other_err_dict[err]: assert r not in this_err_dict, ( f"error {err}: correction {r} from dictionary {other_fname} " f"is an error itself in dictionary {short_fname}" ) assert pair not in global_pairs global_pairs.add(pair) global_err_dicts[short_fname] = this_err_dict @pytest.mark.dependency(depends=["dictionary loop"]) def test_ran_all() -> None: """Test that all pairwise tests ran.""" for f1, _, _ in _fnames_in_aspell: f1 = op.basename(f1) for f2, _, _ in _fnames_in_aspell: f2 = op.basename(f2) assert (f1, f2) in global_pairs assert len(global_pairs) == len(_fnames_in_aspell) ** 2
13,590
Python
.py
343
31.708455
87
0.582324
codespell-project/codespell
1,850
470
225
GPL-2.0
9/5/2024, 5:10:09 PM (Europe/Amsterdam)
6,914
setup.py
piskvorky_gensim/setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (C) 2014 Radim Rehurek <radimrehurek@seznam.cz> # Licensed under the GNU LGPL v2.1 - https://www.gnu.org/licenses/old-licenses/lgpl-2.1.en.html """ Run with:: python ./setup.py install """ import itertools import os import platform import shutil import sys from collections import OrderedDict from setuptools import Extension, find_packages, setup, distutils from setuptools.command.build_ext import build_ext c_extensions = OrderedDict([ ('gensim.models.word2vec_inner', 'gensim/models/word2vec_inner.c'), ('gensim.corpora._mmreader', 'gensim/corpora/_mmreader.c'), ('gensim.models.fasttext_inner', 'gensim/models/fasttext_inner.c'), ('gensim._matutils', 'gensim/_matutils.c'), ('gensim.models.nmf_pgd', 'gensim/models/nmf_pgd.c'), ('gensim.similarities.fastss', 'gensim/similarities/fastss.c'), ]) cpp_extensions = OrderedDict([ ('gensim.models.doc2vec_inner', 'gensim/models/doc2vec_inner.cpp'), ('gensim.models.word2vec_corpusfile', 'gensim/models/word2vec_corpusfile.cpp'), ('gensim.models.fasttext_corpusfile', 'gensim/models/fasttext_corpusfile.cpp'), ('gensim.models.doc2vec_corpusfile', 'gensim/models/doc2vec_corpusfile.cpp'), ]) def need_cython(): """Return True if we need Cython to translate any of the extensions. If the extensions have already been translated to C/C++, then we don't need to install Cython and perform the translation. """ expected = list(c_extensions.values()) + list(cpp_extensions.values()) return any([not os.path.isfile(f) for f in expected]) def make_c_ext(use_cython=False): for module, source in c_extensions.items(): if use_cython: source = source.replace('.c', '.pyx') extra_args = [] # extra_args.extend(['-g', '-O0']) # uncomment if optimization limiting crash info yield Extension( module, sources=[source], language='c', extra_compile_args=extra_args, ) def make_cpp_ext(use_cython=False): extra_args = [] system = platform.system() if system == 'Linux': extra_args.append('-std=c++11') elif system == 'Darwin': extra_args.extend(['-stdlib=libc++', '-std=c++11']) # extra_args.extend(['-g', '-O0']) # uncomment if optimization limiting crash info for module, source in cpp_extensions.items(): if use_cython: source = source.replace('.cpp', '.pyx') yield Extension( module, sources=[source], language='c++', extra_compile_args=extra_args, extra_link_args=extra_args, ) # # We use use_cython=False here for two reasons: # # 1. Cython may not be available at this stage # 2. The actual translation from Cython to C/C++ happens inside CustomBuildExt # ext_modules = list(itertools.chain(make_c_ext(use_cython=False), make_cpp_ext(use_cython=False))) class CustomBuildExt(build_ext): """Custom build_ext action with bootstrapping. We need this in order to use numpy and Cython in this script without importing them at module level, because they may not be available at that time. """ def finalize_options(self): build_ext.finalize_options(self) import builtins import numpy # # Prevent numpy from thinking it is still in its setup process # http://stackoverflow.com/questions/19919905/how-to-bootstrap-numpy-installation-in-setup-py # # Newer numpy versions don't support this hack, nor do they need it. # https://github.com/pyvista/pyacvd/pull/23#issue-1298467701 # try: builtins.__NUMPY_SETUP__ = False except Exception as ex: print(f'could not use __NUMPY_SETUP__ hack (numpy version: {numpy.__version__}): {ex}') self.include_dirs.append(numpy.get_include()) if need_cython(): import Cython.Build Cython.Build.cythonize(list(make_c_ext(use_cython=True)), language_level=3) Cython.Build.cythonize(list(make_cpp_ext(use_cython=True)), language_level=3) class CleanExt(distutils.cmd.Command): description = 'Remove C sources, C++ sources and binaries for gensim extensions' user_options = [] def initialize_options(self): pass def finalize_options(self): pass def run(self): for root, dirs, files in os.walk('gensim'): files = [ os.path.join(root, f) for f in files if os.path.splitext(f)[1] in ('.c', '.cpp', '.so') ] for f in files: self.announce('removing %s' % f, level=distutils.log.INFO) os.unlink(f) if os.path.isdir('build'): self.announce('recursively removing build', level=distutils.log.INFO) shutil.rmtree('build') cmdclass = {'build_ext': CustomBuildExt, 'clean_ext': CleanExt} WHEELHOUSE_UPLOADER_COMMANDS = {'fetch_artifacts', 'upload_all'} if WHEELHOUSE_UPLOADER_COMMANDS.intersection(sys.argv): import wheelhouse_uploader.cmd cmdclass.update(vars(wheelhouse_uploader.cmd)) LONG_DESCRIPTION = u""" ============================================== gensim -- Topic Modelling in Python ============================================== |GA|_ |Wheel|_ .. |GA| image:: https://github.com/RaRe-Technologies/gensim/actions/workflows/tests.yml/badge.svg?branch=develop .. |Wheel| image:: https://img.shields.io/pypi/wheel/gensim.svg .. _GA: https://github.com/RaRe-Technologies/gensim/actions .. _Downloads: https://pypi.org/project/gensim/ .. _License: https://radimrehurek.com/gensim/intro.html#licensing .. _Wheel: https://pypi.org/project/gensim/ Gensim is a Python library for *topic modelling*, *document indexing* and *similarity retrieval* with large corpora. Target audience is the *natural language processing* (NLP) and *information retrieval* (IR) community. Features --------- * All algorithms are **memory-independent** w.r.t. the corpus size (can process input larger than RAM, streamed, out-of-core) * **Intuitive interfaces** * easy to plug in your own input corpus/datastream (simple streaming API) * easy to extend with other Vector Space algorithms (simple transformation API) * Efficient multicore implementations of popular algorithms, such as online **Latent Semantic Analysis (LSA/LSI/SVD)**, **Latent Dirichlet Allocation (LDA)**, **Random Projections (RP)**, **Hierarchical Dirichlet Process (HDP)** or **word2vec deep learning**. * **Distributed computing**: can run *Latent Semantic Analysis* and *Latent Dirichlet Allocation* on a cluster of computers. * Extensive `documentation and Jupyter Notebook tutorials <https://github.com/RaRe-Technologies/gensim/#documentation>`_. If this feature list left you scratching your head, you can first read more about the `Vector Space Model <https://en.wikipedia.org/wiki/Vector_space_model>`_ and `unsupervised document analysis <https://en.wikipedia.org/wiki/Latent_semantic_indexing>`_ on Wikipedia. Installation ------------ This software depends on `NumPy and Scipy <https://scipy.org/install/>`_, two Python packages for scientific computing. You must have them installed prior to installing `gensim`. It is also recommended you install a fast BLAS library before installing NumPy. This is optional, but using an optimized BLAS such as MKL, `ATLAS <https://math-atlas.sourceforge.net/>`_ or `OpenBLAS <https://xianyi.github.io/OpenBLAS/>`_ is known to improve performance by as much as an order of magnitude. On OSX, NumPy picks up its vecLib BLAS automatically, so you don't need to do anything special. Install the latest version of gensim:: pip install --upgrade gensim Or, if you have instead downloaded and unzipped the `source tar.gz <https://pypi.org/project/gensim/>`_ package:: python setup.py install For alternative modes of installation, see the `documentation <https://radimrehurek.com/gensim/#install>`_. Gensim is being `continuously tested <https://radimrehurek.com/gensim/#testing>`_ under all `supported Python versions <https://github.com/RaRe-Technologies/gensim/wiki/Gensim-And-Compatibility>`_. Support for Python 2.7 was dropped in gensim 4.0.0 – install gensim 3.8.3 if you must use Python 2.7. How come gensim is so fast and memory efficient? Isn't it pure Python, and isn't Python slow and greedy? -------------------------------------------------------------------------------------------------------- Many scientific algorithms can be expressed in terms of large matrix operations (see the BLAS note above). Gensim taps into these low-level BLAS libraries, by means of its dependency on NumPy. So while gensim-the-top-level-code is pure Python, it actually executes highly optimized Fortran/C under the hood, including multithreading (if your BLAS is so configured). Memory-wise, gensim makes heavy use of Python's built-in generators and iterators for streamed data processing. Memory efficiency was one of gensim's `design goals <https://radimrehurek.com/gensim/intro.html#design-principles>`_, and is a central feature of gensim, rather than something bolted on as an afterthought. Documentation ------------- * `QuickStart`_ * `Tutorials`_ * `Tutorial Videos`_ * `Official Documentation and Walkthrough`_ Citing gensim ------------- When `citing gensim in academic papers and theses <https://scholar.google.cz/citations?view_op=view_citation&hl=en&user=9vG_kV0AAAAJ&citation_for_view=9vG_kV0AAAAJ:u-x6o8ySG0sC>`_, please use this BibTeX entry:: @inproceedings{rehurek_lrec, title = {{Software Framework for Topic Modelling with Large Corpora}}, author = {Radim {\\v R}eh{\\r u}{\\v r}ek and Petr Sojka}, booktitle = {{Proceedings of the LREC 2010 Workshop on New Challenges for NLP Frameworks}}, pages = {45--50}, year = 2010, month = May, day = 22, publisher = {ELRA}, address = {Valletta, Malta}, language={English} } ---------------- Gensim is open source software released under the `GNU LGPLv2.1 license <https://www.gnu.org/licenses/old-licenses/lgpl-2.1.en.html>`_. Copyright (c) 2009-now Radim Rehurek .. _Official Documentation and Walkthrough: https://radimrehurek.com/gensim/ .. _Tutorials: https://github.com/RaRe-Technologies/gensim/blob/develop/tutorials.md#tutorials .. _Tutorial Videos: https://github.com/RaRe-Technologies/gensim/blob/develop/tutorials.md#videos .. _QuickStart: https://radimrehurek.com/gensim/gensim_numfocus/auto_examples/core/run_core_concepts.html """ distributed_env = ['Pyro4 >= 4.27'] visdom_req = ['visdom >= 0.1.8, != 0.1.8.7'] # packages included for build-testing everywhere core_testenv = [ 'pytest', 'pytest-cov', 'testfixtures', ] if not sys.platform.lower().startswith("win") and sys.version_info[:2] < (3, 11): core_testenv.append('POT') if not sys.platform.lower().startswith("win") and sys.version_info[:2] < (3, 10): # # nmslib wheels not available for Python 3.10 and 3.11 as of Dec 2022 # core_testenv.append('nmslib') # Add additional requirements for testing on Linux that are skipped on Windows. linux_testenv = core_testenv[:] + visdom_req # Skip problematic/uninstallable packages (& thus related conditional tests) in Windows builds. # We still test them in Linux via Travis, see linux_testenv above. # See https://github.com/RaRe-Technologies/gensim/pull/2814 win_testenv = core_testenv[:] # # This list partially duplicates requirements_docs.txt. # The main difference is that we don't include version pins here unless # absolutely necessary, whereas requirements_docs.txt includes pins for # everything, by design. # # For more info about the difference between the two: # # https://packaging.python.org/discussions/install-requires-vs-requirements/ # # # We pin the Sphinx-related packages to specific versions here because we want # our documentation builds to be reproducible. Different versions of Sphinx # can generate slightly different output, and because we keep some of the output # under version control, we want to keep these differences to a minimum. # docs_testenv = core_testenv + distributed_env + visdom_req + [ 'sphinx==5.1.1', 'sphinx-gallery==0.11.1', 'sphinxcontrib.programoutput==0.17', 'sphinxcontrib-napoleon==0.7', 'matplotlib', # expected by sphinx-gallery 'memory_profiler', 'annoy', 'Pyro4', 'scikit-learn', 'nltk', 'testfixtures', 'statsmodels', 'pandas', ] # # see https://github.com/piskvorky/gensim/pull/3535 # NUMPY_STR = 'numpy >= 1.18.5, < 2.0' install_requires = [ NUMPY_STR, # # scipy 1.14.0 and onwards removes deprecated sparsetools submodule # 'scipy >= 1.7.0, <1.14.0', 'smart_open >= 1.8.1', ] setup( name='gensim', version='4.3.3', description='Python framework for fast Vector Space Modelling', long_description=LONG_DESCRIPTION, ext_modules=ext_modules, cmdclass=cmdclass, packages=find_packages(), author=u'Radim Rehurek', author_email='me@radimrehurek.com', url='https://radimrehurek.com/gensim/', project_urls={ 'Source': 'https://github.com/RaRe-Technologies/gensim', }, download_url='https://pypi.org/project/gensim/', license='LGPL-2.1-only', keywords='Singular Value Decomposition, SVD, Latent Semantic Indexing, ' 'LSA, LSI, Latent Dirichlet Allocation, LDA, ' 'Hierarchical Dirichlet Process, HDP, Random Projections, ' 'TFIDF, word2vec', platforms='any', zip_safe=False, classifiers=[ # from https://pypi.org/classifiers/ 'Development Status :: 5 - Production/Stable', 'Environment :: Console', 'Intended Audience :: Science/Research', 'Operating System :: OS Independent', 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10', 'Programming Language :: Python :: 3.11', 'Programming Language :: Python :: 3.12', 'Programming Language :: Python :: 3 :: Only', 'Topic :: Scientific/Engineering :: Artificial Intelligence', 'Topic :: Scientific/Engineering :: Information Analysis', 'Topic :: Text Processing :: Linguistic', ], test_suite="gensim.test", python_requires='>=3.8', install_requires=install_requires, tests_require=linux_testenv, extras_require={ 'distributed': distributed_env, 'test-win': win_testenv, 'test': linux_testenv, 'docs': docs_testenv, }, include_package_data=True, )
14,778
Python
.py
311
42.44373
402
0.69066
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,915
gensim Quick Start.ipynb
piskvorky_gensim/gensim Quick Start.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "This tutorial has moved.\n", "\n", "Please see https://radimrehurek.com/gensim/auto_examples/." ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.6.8" } }, "nbformat": 4, "nbformat_minor": 2 }
626
Python
.py
34
14.970588
64
0.559122
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,916
install_wheel.py
piskvorky_gensim/continuous_integration/install_wheel.py
"""Install the built wheel for testing under AppVeyor. Assumes that gensim/dist contains a single wheel to install. """ import os import subprocess curr_dir = os.path.dirname(__file__) dist_path = os.path.join(curr_dir, '..', 'dist') wheels = [ os.path.join(dist_path, f) for f in os.listdir(dist_path) if f.endswith('.whl') ] assert len(wheels) == 1, "wheels = %r" % wheels command = 'pip install --pre --force-reinstall'.split() + [wheels[0]] subprocess.check_call(command)
487
Python
.py
14
33
69
0.708511
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,917
check_wheels.py
piskvorky_gensim/continuous_integration/check_wheels.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (C) 2019 RaRe Technologies s.r.o. # Licensed under the GNU LGPL v2.1 - https://www.gnu.org/licenses/old-licenses/lgpl-2.1.en.html """Print available wheels for a particular Python package.""" import re import sys import requests def to_int(value): value = ''.join((x for x in value if x.isdigit())) try: return int(value) except Exception: return 0 def to_tuple(version): return tuple(to_int(x) for x in version.split('.')) def main(): project = sys.argv[1] json = requests.get('https://pypi.org/pypi/%s/json' % project).json() for version in sorted(json['releases'], key=to_tuple): print(version) wheel_packages = [ p for p in json['releases'][version] if p['packagetype'] == 'bdist_wheel' ] for p in wheel_packages: print(' %(python_version)s %(filename)s' % p) if __name__ == '__main__': main()
985
Python
.py
30
27.7
95
0.620908
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,918
upgrade_pip_py310.py
piskvorky_gensim/continuous_integration/upgrade_pip_py310.py
# This script needs to be able run under both Python 2 and 3 without crashing # It only achieves the desired effect under Py3.10 on Linux and MacOS. import subprocess import sys import tempfile if sys.platform in ('linux', 'darwin') and sys.version_info[:2] == (3, 10): import urllib.request with tempfile.NamedTemporaryFile(suffix='.py') as fout: urllib.request.urlretrieve("https://bootstrap.pypa.io/get-pip.py", fout.name) subprocess.call([sys.executable, fout.name])
495
Python
.py
10
46.1
85
0.742268
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,919
Poincare Evaluation.ipynb
piskvorky_gensim/docs/notebooks/Poincare Evaluation.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Evaluation of Poincare Embeddings" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "This notebook demonstrates how well Poincare embeddings perform on the tasks detailed in the [original paper](https://arxiv.org/pdf/1705.08039.pdf) about the embeddings.\n", "\n", "The following two external, open-source implementations are used - \n", "1. [C++](https://github.com/TatsuyaShirakawa/poincare-embedding)\n", "2. [Numpy](https://github.com/nishnik/poincare_embeddings)\n", "\n", "This is the list of tasks - \n", "1. WordNet reconstruction\n", "2. WordNet link prediction\n", "3. Link prediction in collaboration networks (evaluation incomplete)\n", "4. Lexical entailment on HyperLex\n", "\n", "A more detailed explanation of the tasks and the evaluation methodology is present in the individual evaluation subsections." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## 1. Setup\n", "\n", "The following section performs the following - \n", "1. Imports required python libraries and downloads the wordnet data\n", "2. Clones the repositories containing the C++ and Numpy implementations of the Poincare embeddings\n", "3. Applies patches containing minor changes to the implementations.\n", "4. Compiles the C++ sources to create a binary" ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "/home/misha/git/gensim\n" ] } ], "source": [ "%cd ../.." ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "\u001b[33mYou are using pip version 19.0.1, however version 19.1 is available.\r\n", "You should consider upgrading via the 'pip install --upgrade pip' command.\u001b[0m\r\n" ] } ], "source": [ "# Some libraries need to be installed that are not part of Gensim\n", "! pip install click>=6.7 nltk>=3.2.5 prettytable>=0.7.2 pygtrie>=2.2" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "[nltk_data] Downloading package wordnet to /home/misha/nltk_data...\n", "[nltk_data] Package wordnet is already up-to-date!\n" ] }, { "data": { "text/plain": [ "True" ] }, "execution_count": 3, "metadata": {}, "output_type": "execute_result" } ], "source": [ "import csv\n", "from collections import OrderedDict\n", "from IPython.display import display, HTML\n", "import logging\n", "import os\n", "import pickle\n", "import random\n", "import re\n", "\n", "import click\n", "from gensim.models.poincare import PoincareModel, PoincareRelations, \\\n", " ReconstructionEvaluation, LinkPredictionEvaluation, \\\n", " LexicalEntailmentEvaluation, PoincareKeyedVectors\n", "from gensim.utils import check_output\n", "import nltk\n", "from prettytable import PrettyTable\n", "from smart_open import smart_open\n", "\n", "logging.basicConfig(level=logging.INFO)\n", "nltk.download('wordnet')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Please set the variable `parent_directory` below to change the directory to which the repositories are cloned." ] }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "/home/misha/git/gensim/docs/notebooks\n" ] } ], "source": [ "%cd docs/notebooks/" ] }, { "cell_type": "code", "execution_count": 5, "metadata": {}, "outputs": [], "source": [ "current_directory = os.getcwd()" ] }, { "cell_type": "code", "execution_count": 6, "metadata": {}, "outputs": [], "source": [ "# Change this variable to `False` to not remove and re-download repos for external implementations\n", "force_setup = False\n", "\n", "# The poincare datasets, models and source code for external models are downloaded to this directory\n", "parent_directory = os.path.join(current_directory, 'poincare')\n", "! mkdir -p {parent_directory}" ] }, { "cell_type": "code", "execution_count": 7, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "/home/misha/git/gensim/docs/notebooks/poincare\n" ] } ], "source": [ "%cd {parent_directory}\n", "\n", "# Clone repos\n", "np_repo_name = 'poincare-np-embedding'\n", "if force_setup and os.path.exists(np_repo_name):\n", " ! rm -rf {np_repo_name}\n", "clone_np_repo = not os.path.exists(np_repo_name)\n", "if clone_np_repo:\n", " ! git clone https://github.com/nishnik/poincare_embeddings.git {np_repo_name}\n", "\n", "cpp_repo_name = 'poincare-cpp-embedding'\n", "if force_setup and os.path.exists(cpp_repo_name):\n", " ! rm -rf {cpp_repo_name}\n", "clone_cpp_repo = not os.path.exists(cpp_repo_name)\n", "if clone_cpp_repo:\n", " ! git clone https://github.com/TatsuyaShirakawa/poincare-embedding.git {cpp_repo_name}\n", "\n", "patches_applied = False" ] }, { "cell_type": "code", "execution_count": 8, "metadata": {}, "outputs": [], "source": [ "# Apply patches\n", "if clone_cpp_repo and not patches_applied:\n", " %cd {cpp_repo_name}\n", " ! git apply ../poincare_burn_in_eps.patch\n", "\n", "if clone_np_repo and not patches_applied:\n", " %cd ../{np_repo_name}\n", " ! git apply ../poincare_numpy.patch\n", " \n", "patches_applied = True" ] }, { "cell_type": "code", "execution_count": 9, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "/home/misha/git/gensim/docs/notebooks/poincare/poincare-cpp-embedding\n", "/home/misha/git/gensim/docs/notebooks/poincare/poincare-cpp-embedding/work\n", "-- The C compiler identification is GNU 7.4.0\n", "-- The CXX compiler identification is GNU 7.4.0\n", "-- Check for working C compiler: /usr/bin/cc\n", "-- Check for working C compiler: /usr/bin/cc -- works\n", "-- Detecting C compiler ABI info\n", "-- Detecting C compiler ABI info - done\n", "-- Detecting C compile features\n", "-- Detecting C compile features - done\n", "-- Check for working CXX compiler: /usr/bin/c++\n", "-- Check for working CXX compiler: /usr/bin/c++ -- works\n", "-- Detecting CXX compiler ABI info\n", "-- Detecting CXX compiler ABI info - done\n", "-- Detecting CXX compile features\n", "-- Detecting CXX compile features - done\n", "-- Looking for pthread.h\n", "-- Looking for pthread.h - found\n", "-- Looking for pthread_create\n", "-- Looking for pthread_create - not found\n", "-- Check if compiler accepts -pthread\n", "-- Check if compiler accepts -pthread - yes\n", "-- Found Threads: TRUE \n", "-- Configuring done\n", "-- Generating done\n", "-- Build files have been written to: /home/misha/git/gensim/docs/notebooks/poincare/poincare-cpp-embedding/work\n", "\u001b[35m\u001b[1mScanning dependencies of target poincare_embedding\u001b[0m\n", "[ 50%] \u001b[32mBuilding CXX object CMakeFiles/poincare_embedding.dir/src/poincare_embedding.cpp.o\u001b[0m\n", "[100%] \u001b[32m\u001b[1mLinking CXX executable poincare_embedding\u001b[0m\n", "[100%] Built target poincare_embedding\n", "/home/misha/git/gensim/docs/notebooks\n" ] } ], "source": [ "# Compile the code for the external c++ implementation into a binary\n", "%cd {parent_directory}/{cpp_repo_name}\n", "!mkdir -p work\n", "%cd work\n", "!cmake ..\n", "!make\n", "%cd {current_directory}" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "You might need to install an updated version of `cmake` to be able to compile the source code. Please make sure that the binary `poincare_embedding` has been created before proceeding by verifying the above cell does not raise an error." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "cpp_binary_path = os.path.join(parent_directory, cpp_repo_name, 'work', 'poincare_embedding')\n", "assert(os.path.exists(cpp_binary_path)), 'Binary file doesnt exist at %s' % cpp_binary_path" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## 2. Training\n", "\n", "### 2.1 Create the data" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# These directories are auto created in the current directory for storing poincare datasets and models\n", "data_directory = os.path.join(parent_directory, 'data')\n", "models_directory = os.path.join(parent_directory, 'models')\n", "\n", "# Create directories\n", "! mkdir -p {data_directory}\n", "! mkdir -p {models_directory}" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "82115 nouns\n", "743241 hypernyms\n" ] } ], "source": [ "# Prepare the WordNet data\n", "# Can also be downloaded directly from -\n", "# https://github.com/jayantj/gensim/raw/wordnet_data/docs/notebooks/poincare/data/wordnet_noun_hypernyms.tsv\n", "\n", "wordnet_file = os.path.join(data_directory, 'wordnet_noun_hypernyms.tsv')\n", "if not os.path.exists(wordnet_file):\n", " ! python {parent_directory}/{cpp_repo_name}/scripts/create_wordnet_noun_hierarchy.py {wordnet_file}" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "scrolled": true }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "--2019-05-10 12:18:20-- http://people.ds.cam.ac.uk/iv250/paper/hyperlex/hyperlex-data.zip\n", "Resolving people.ds.cam.ac.uk (people.ds.cam.ac.uk)... 131.111.3.47\n", "Connecting to people.ds.cam.ac.uk (people.ds.cam.ac.uk)|131.111.3.47|:80... connected.\n", "HTTP request sent, awaiting response... 200 OK\n", "Length: 183900 (180K) [application/zip]\n", "Saving to: ‘/home/misha/git/gensim/docs/notebooks/poincare/data/hyperlex-data.zip’\n", "\n", "/home/misha/git/gen 100%[===================>] 179.59K 158KB/s in 1.1s \n", "\n", "2019-05-10 12:18:22 (158 KB/s) - ‘/home/misha/git/gensim/docs/notebooks/poincare/data/hyperlex-data.zip’ saved [183900/183900]\n", "\n", "Archive: /home/misha/git/gensim/docs/notebooks/poincare/data/hyperlex-data.zip\n", " creating: /home/misha/git/gensim/docs/notebooks/poincare/data/hyperlex/nouns-verbs/\n", " inflating: /home/misha/git/gensim/docs/notebooks/poincare/data/hyperlex/nouns-verbs/hyperlex-verbs.txt \n", " inflating: /home/misha/git/gensim/docs/notebooks/poincare/data/hyperlex/nouns-verbs/hyperlex-nouns.txt \n", " creating: /home/misha/git/gensim/docs/notebooks/poincare/data/hyperlex/splits/\n", " creating: /home/misha/git/gensim/docs/notebooks/poincare/data/hyperlex/splits/random/\n", " inflating: /home/misha/git/gensim/docs/notebooks/poincare/data/hyperlex/splits/random/hyperlex_training_all_random.txt \n", " inflating: /home/misha/git/gensim/docs/notebooks/poincare/data/hyperlex/splits/random/hyperlex_test_all_random.txt \n", " inflating: /home/misha/git/gensim/docs/notebooks/poincare/data/hyperlex/splits/random/hyperlex_dev_all_random.txt \n", " creating: /home/misha/git/gensim/docs/notebooks/poincare/data/hyperlex/splits/lexical/\n", " inflating: /home/misha/git/gensim/docs/notebooks/poincare/data/hyperlex/splits/lexical/hyperlex_dev_all_lexical.txt \n", " inflating: /home/misha/git/gensim/docs/notebooks/poincare/data/hyperlex/splits/lexical/hyperlex_test_all_lexical.txt \n", " inflating: /home/misha/git/gensim/docs/notebooks/poincare/data/hyperlex/splits/lexical/hyperlex_training_all_lexical.txt \n", " inflating: /home/misha/git/gensim/docs/notebooks/poincare/data/hyperlex/hyperlex-all.txt \n", " inflating: /home/misha/git/gensim/docs/notebooks/poincare/data/hyperlex/README.txt \n" ] } ], "source": [ "# Prepare the HyperLex data\n", "hyperlex_url = \"http://people.ds.cam.ac.uk/iv250/paper/hyperlex/hyperlex-data.zip\"\n", "! wget {hyperlex_url} -O {data_directory}/hyperlex-data.zip\n", "if os.path.exists(os.path.join(data_directory, 'hyperlex')):\n", " ! rm -r {data_directory}/hyperlex\n", "! unzip {data_directory}/hyperlex-data.zip -d {data_directory}/hyperlex/\n", "hyperlex_file = os.path.join(data_directory, 'hyperlex', 'nouns-verbs', 'hyperlex-nouns.txt')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### 2.2 Training [C++ embeddings](https://github.com/TatsuyaShirakawa/poincare-embedding)" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "def train_cpp_model(\n", " binary_path, data_file, output_file, dim, epochs, neg,\n", " num_threads, epsilon, burn_in, seed=0):\n", " \"\"\"Train a poincare embedding using the c++ implementation\n", " \n", " Args:\n", " binary_path (str): Path to the compiled c++ implementation binary\n", " data_file (str): Path to tsv file containing relation pairs\n", " output_file (str): Path to output file containing model\n", " dim (int): Number of dimensions of the trained model\n", " epochs (int): Number of epochs to use\n", " neg (int): Number of negative samples to use\n", " num_threads (int): Number of threads to use for training the model\n", " epsilon (float): Constant used for clipping below a norm of one\n", " burn_in (int): Number of epochs to use for burn-in init (0 means no burn-in)\n", " \n", " Notes: \n", " If `output_file` already exists, skips training\n", " \"\"\"\n", " if os.path.exists(output_file):\n", " print('File %s exists, skipping' % output_file)\n", " return\n", " args = {\n", " 'dim': dim,\n", " 'max_epoch': epochs,\n", " 'neg_size': neg,\n", " 'num_thread': num_threads,\n", " 'epsilon': epsilon,\n", " 'burn_in': burn_in,\n", " 'learning_rate_init': 0.1,\n", " 'learning_rate_final': 0.0001,\n", " }\n", " cmd = [binary_path, data_file, output_file]\n", " for option, value in args.items():\n", " cmd.append(\"--%s\" % option)\n", " cmd.append(str(value))\n", " \n", " return check_output(args=cmd)" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "model_sizes = [5, 10, 20, 50, 100, 200]\n", "default_params = {\n", " 'neg': 20,\n", " 'epochs': 50,\n", " 'threads': 8,\n", " 'eps': 1e-6,\n", " 'burn_in': 0,\n", " 'batch_size': 10,\n", " 'reg': 0.0\n", "}\n", "\n", "non_default_params = {\n", " 'neg': [10],\n", " 'epochs': [200],\n", " 'burn_in': [10]\n", "}" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "scrolled": true }, "outputs": [], "source": [ "def cpp_model_name_from_params(params, prefix):\n", " param_keys = ['burn_in', 'epochs', 'neg', 'eps', 'threads']\n", " name = ['%s_%s' % (key, params[key]) for key in sorted(param_keys)]\n", " return '%s_%s' % (prefix, '_'.join(name))\n", "\n", "def train_model_with_params(params, train_file, model_sizes, prefix, implementation):\n", " \"\"\"Trains models with given params for multiple model sizes using the given implementation\n", " \n", " Args:\n", " params (dict): parameters to train the model with\n", " train_file (str): Path to tsv file containing relation pairs\n", " model_sizes (list): list of dimension sizes (integer) to train the model with\n", " prefix (str): prefix to use for the saved model filenames\n", " implementation (str): whether to use the numpy or c++ implementation,\n", " allowed values: 'numpy', 'c++'\n", " \n", " Returns:\n", " tuple (model_name, model_files)\n", " model_files is a dict of (size, filename) pairs\n", " Example: ('cpp_model_epochs_50', {5: 'models/cpp_model_epochs_50_dim_5'})\n", " \"\"\"\n", " files = {}\n", " if implementation == 'c++':\n", " model_name = cpp_model_name_from_params(params, prefix)\n", " elif implementation == 'numpy':\n", " model_name = np_model_name_from_params(params, prefix)\n", " elif implementation == 'gensim':\n", " model_name = gensim_model_name_from_params(params, prefix)\n", " else:\n", " raise ValueError('Given implementation %s not found' % implementation)\n", " for model_size in model_sizes:\n", " output_file_name = '%s_dim_%d' % (model_name, model_size)\n", " output_file = os.path.join(models_directory, output_file_name)\n", " print('Training model %s of size %d' % (model_name, model_size))\n", " if implementation == 'c++':\n", " out = train_cpp_model(\n", " cpp_binary_path, train_file, output_file, model_size,\n", " params['epochs'], params['neg'], params['threads'],\n", " params['eps'], params['burn_in'], seed=0)\n", " elif implementation == 'numpy':\n", " train_external_numpy_model(\n", " python_script_path, train_file, output_file, model_size,\n", " params['epochs'], params['neg'], seed=0)\n", " elif implementation == 'gensim':\n", " train_gensim_model(\n", " train_file, output_file, model_size, params['epochs'],\n", " params['neg'], params['burn_in'], params['batch_size'], params['reg'], seed=0)\n", " else:\n", " raise ValueError('Given implementation %s not found' % implementation)\n", " files[model_size] = output_file\n", " return (model_name, files)" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "model_files = {}" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "scrolled": true }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Training model cpp_model_burn_in_0_epochs_50_eps_1e-06_neg_20_threads_8 of size 5\n", "Training model cpp_model_burn_in_0_epochs_50_eps_1e-06_neg_20_threads_8 of size 10\n", "Training model cpp_model_burn_in_0_epochs_50_eps_1e-06_neg_20_threads_8 of size 20\n", "Training model cpp_model_burn_in_0_epochs_50_eps_1e-06_neg_20_threads_8 of size 50\n", "Training model cpp_model_burn_in_0_epochs_50_eps_1e-06_neg_20_threads_8 of size 100\n", "Training model cpp_model_burn_in_0_epochs_50_eps_1e-06_neg_20_threads_8 of size 200\n", "Training model cpp_model_burn_in_0_epochs_50_eps_1e-06_neg_10_threads_8 of size 5\n", "Training model cpp_model_burn_in_0_epochs_50_eps_1e-06_neg_10_threads_8 of size 10\n", "Training model cpp_model_burn_in_0_epochs_50_eps_1e-06_neg_10_threads_8 of size 20\n", "Training model cpp_model_burn_in_0_epochs_50_eps_1e-06_neg_10_threads_8 of size 50\n", "Training model cpp_model_burn_in_0_epochs_50_eps_1e-06_neg_10_threads_8 of size 100\n", "Training model cpp_model_burn_in_0_epochs_50_eps_1e-06_neg_10_threads_8 of size 200\n", "Training model cpp_model_burn_in_0_epochs_200_eps_1e-06_neg_20_threads_8 of size 5\n", "Training model cpp_model_burn_in_0_epochs_200_eps_1e-06_neg_20_threads_8 of size 10\n", "Training model cpp_model_burn_in_0_epochs_200_eps_1e-06_neg_20_threads_8 of size 20\n", "Training model cpp_model_burn_in_0_epochs_200_eps_1e-06_neg_20_threads_8 of size 50\n", "Training model cpp_model_burn_in_0_epochs_200_eps_1e-06_neg_20_threads_8 of size 100\n", "Training model cpp_model_burn_in_0_epochs_200_eps_1e-06_neg_20_threads_8 of size 200\n", "Training model cpp_model_burn_in_10_epochs_50_eps_1e-06_neg_20_threads_8 of size 5\n", "Training model cpp_model_burn_in_10_epochs_50_eps_1e-06_neg_20_threads_8 of size 10\n", "Training model cpp_model_burn_in_10_epochs_50_eps_1e-06_neg_20_threads_8 of size 20\n", "Training model cpp_model_burn_in_10_epochs_50_eps_1e-06_neg_20_threads_8 of size 50\n", "Training model cpp_model_burn_in_10_epochs_50_eps_1e-06_neg_20_threads_8 of size 100\n", "Training model cpp_model_burn_in_10_epochs_50_eps_1e-06_neg_20_threads_8 of size 200\n" ] } ], "source": [ "model_files['c++'] = {}\n", "# Train c++ models with default params\n", "model_name, files = train_model_with_params(default_params, wordnet_file, model_sizes, 'cpp_model', 'c++')\n", "model_files['c++'][model_name] = {}\n", "for dim, filepath in files.items():\n", " model_files['c++'][model_name][dim] = filepath\n", "# Train c++ models with non-default params\n", "for param, values in non_default_params.items():\n", " params = default_params.copy()\n", " for value in values:\n", " params[param] = value\n", " model_name, files = train_model_with_params(params, wordnet_file, model_sizes, 'cpp_model', 'c++')\n", " model_files['c++'][model_name] = {}\n", " for dim, filepath in files.items():\n", " model_files['c++'][model_name][dim] = filepath" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### 2.3 Training [numpy embeddings](https://github.com/nishnik/poincare_embeddings) (non-gensim)" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "python_script_path = os.path.join(parent_directory, np_repo_name, 'poincare.py')" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "def np_model_name_from_params(params, prefix):\n", " param_keys = ['neg', 'epochs']\n", " name = ['%s_%s' % (key, params[key]) for key in sorted(param_keys)]\n", " return '%s_%s' % (prefix, '_'.join(name))\n", "\n", "def train_external_numpy_model(\n", " script_path, data_file, output_file, dim, epochs, neg, seed=0):\n", " \"\"\"Train a poincare embedding using an external numpy implementation\n", " \n", " Args:\n", " script_path (str): Path to the Python training script\n", " data_file (str): Path to tsv file containing relation pairs\n", " output_file (str): Path to output file containing model\n", " dim (int): Number of dimensions of the trained model\n", " epochs (int): Number of epochs to use\n", " neg (int): Number of negative samples to use\n", " \n", " Notes: \n", " If `output_file` already exists, skips training\n", " \"\"\"\n", " if os.path.exists(output_file):\n", " print('File %s exists, skipping' % output_file)\n", " return\n", " args = {\n", " 'input-file': data_file,\n", " 'output-file': output_file,\n", " 'dimensions': dim,\n", " 'epochs': epochs,\n", " 'learning-rate': 0.01,\n", " 'num-negative': neg,\n", " }\n", " cmd = ['python', script_path]\n", " for option, value in args.items():\n", " cmd.append(\"--%s\" % option)\n", " cmd.append(str(value))\n", " \n", " return check_output(args=cmd)" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Training model np_model_epochs_50_neg_20 of size 5\n", "Training model np_model_epochs_50_neg_20 of size 10\n", "Training model np_model_epochs_50_neg_20 of size 20\n", "Training model np_model_epochs_50_neg_20 of size 50\n", "Training model np_model_epochs_50_neg_20 of size 100\n", "Training model np_model_epochs_50_neg_20 of size 200\n" ] } ], "source": [ "model_files['numpy'] = {}\n", "# Train models with default params\n", "model_name, files = train_model_with_params(default_params, wordnet_file, model_sizes, 'np_model', 'numpy')\n", "model_files['numpy'][model_name] = {}\n", "for dim, filepath in files.items():\n", " model_files['numpy'][model_name][dim] = filepath" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### 2.4 Training gensim embeddings" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "def gensim_model_name_from_params(params, prefix):\n", " param_keys = ['neg', 'epochs', 'burn_in', 'batch_size', 'reg']\n", " name = ['%s_%s' % (key, params[key]) for key in sorted(param_keys)]\n", " return '%s_%s' % (prefix, '_'.join(name))\n", "\n", "def train_gensim_model(\n", " data_file, output_file, dim, epochs, neg, burn_in, batch_size, reg, seed=0):\n", " \"\"\"Train a poincare embedding using gensim implementation\n", " \n", " Args:\n", " data_file (str): Path to tsv file containing relation pairs\n", " output_file (str): Path to output file containing model\n", " dim (int): Number of dimensions of the trained model\n", " epochs (int): Number of epochs to use\n", " neg (int): Number of negative samples to use\n", " burn_in (int): Number of epochs to use for burn-in initialization\n", " batch_size (int): Size of batch to use for training\n", " reg (float): Coefficient used for l2-regularization while training\n", " \n", " Notes: \n", " If `output_file` already exists, skips training\n", " \"\"\"\n", " if os.path.exists(output_file):\n", " print('File %s exists, skipping' % output_file)\n", " return\n", " train_data = PoincareRelations(data_file)\n", " model = PoincareModel(train_data, size=dim, negative=neg, burn_in=burn_in, regularization_coeff=reg)\n", " model.train(epochs=epochs, batch_size=batch_size)\n", " model.save(output_file)" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "non_default_params_gensim = [\n", " {'neg': 10,},\n", " {'burn_in': 10,},\n", " {'batch_size': 50,},\n", " {'neg': 10, 'reg': 1, 'burn_in': 10, 'epochs': 200},\n", "]" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "INFO:gensim.models.poincare:loading relations from train data..\n", "WARNING:smart_open.smart_open_lib:this function is deprecated, use smart_open.open instead\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ "Training model gensim_model_batch_size_10_burn_in_0_epochs_50_neg_20_reg_0.0 of size 5\n" ] }, { "name": "stderr", "output_type": "stream", "text": [ "INFO:gensim.models.poincare:loaded 743241 relations from train data, 82114 nodes\n", "INFO:gensim.models.poincare:training model of size 5 with 1 workers on 743241 relations for 50 epochs and 0 burn-in epochs, using lr=0.10000 burn-in lr=0.01000 negative=20\n", "INFO:gensim.models.poincare:starting training (50 epochs)----------------------------------------\n", "INFO:gensim.models.poincare:training on epoch 1, examples #9990-#10000, loss: 30.71\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.11 s, 4749.76 examples / s\n", "INFO:gensim.models.poincare:training on epoch 1, examples #19990-#20000, loss: 30.62\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.04 s, 4909.96 examples / s\n", "INFO:gensim.models.poincare:training on epoch 1, examples #29990-#30000, loss: 30.55\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.06 s, 4855.20 examples / s\n", "INFO:gensim.models.poincare:training on epoch 1, examples #39990-#40000, loss: 30.49\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.04 s, 4912.49 examples / s\n", "INFO:gensim.models.poincare:training on epoch 1, examples #49990-#50000, loss: 30.44\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.05 s, 4887.18 examples / s\n", "INFO:gensim.models.poincare:training on epoch 1, examples #59990-#60000, loss: 30.39\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.13 s, 4700.32 examples / s\n", "INFO:gensim.models.poincare:training on epoch 1, examples #69990-#70000, loss: 30.35\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.07 s, 4834.01 examples / s\n", "INFO:gensim.models.poincare:training on epoch 1, examples #79990-#80000, loss: 30.31\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.08 s, 4806.10 examples / s\n", "INFO:gensim.models.poincare:training on epoch 1, examples #89990-#90000, loss: 30.28\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 1.99 s, 5037.74 examples / s\n", "INFO:gensim.models.poincare:training on epoch 1, examples #99990-#100000, loss: 30.24\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 1.99 s, 5029.46 examples / s\n", "INFO:gensim.models.poincare:training on epoch 1, examples #109990-#110000, loss: 30.22\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 1.96 s, 5111.02 examples / s\n", "INFO:gensim.models.poincare:training on epoch 1, examples #119990-#120000, loss: 30.20\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.03 s, 4915.07 examples / s\n", "INFO:gensim.models.poincare:training on epoch 1, examples #129990-#130000, loss: 30.18\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.28 s, 4383.69 examples / s\n", "INFO:gensim.models.poincare:training on epoch 1, examples #139990-#140000, loss: 30.14\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.16 s, 4619.44 examples / s\n", "INFO:gensim.models.poincare:training on epoch 1, examples #149990-#150000, loss: 30.12\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.23 s, 4489.14 examples / s\n", "INFO:gensim.models.poincare:training on epoch 1, examples #159990-#160000, loss: 30.09\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.07 s, 4831.86 examples / s\n", "INFO:gensim.models.poincare:training on epoch 1, examples #169990-#170000, loss: 30.06\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 1.95 s, 5120.16 examples / s\n", "INFO:gensim.models.poincare:training on epoch 1, examples #179990-#180000, loss: 30.06\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.06 s, 4864.55 examples / s\n", "INFO:gensim.models.poincare:training on epoch 1, examples #189990-#190000, loss: 30.03\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.23 s, 4480.38 examples / s\n", "INFO:gensim.models.poincare:training on epoch 1, examples #199990-#200000, loss: 29.99\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.16 s, 4630.69 examples / s\n", "INFO:gensim.models.poincare:training on epoch 1, examples #209990-#210000, loss: 29.98\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.43 s, 4106.87 examples / s\n", "INFO:gensim.models.poincare:training on epoch 1, examples #219990-#220000, loss: 29.96\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.18 s, 4587.86 examples / s\n", "INFO:gensim.models.poincare:training on epoch 1, examples #229990-#230000, loss: 29.93\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.01 s, 4963.33 examples / s\n", "INFO:gensim.models.poincare:training on epoch 1, examples #239990-#240000, loss: 29.92\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.13 s, 4701.92 examples / s\n", "INFO:gensim.models.poincare:training on epoch 1, examples #249990-#250000, loss: 29.89\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.11 s, 4744.32 examples / s\n", "INFO:gensim.models.poincare:training on epoch 1, examples #259990-#260000, loss: 29.88\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.30 s, 4344.27 examples / s\n", "INFO:gensim.models.poincare:training on epoch 1, examples #269990-#270000, loss: 29.86\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.59 s, 3860.48 examples / s\n", "INFO:gensim.models.poincare:training on epoch 1, examples #279990-#280000, loss: 29.84\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.57 s, 3889.60 examples / s\n", "INFO:gensim.models.poincare:training on epoch 1, examples #289990-#290000, loss: 29.81\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.29 s, 4357.69 examples / s\n", "INFO:gensim.models.poincare:training on epoch 1, examples #299990-#300000, loss: 29.78\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.07 s, 4823.16 examples / s\n", "INFO:gensim.models.poincare:training on epoch 1, examples #309990-#310000, loss: 29.74\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.00 s, 4990.55 examples / s\n", "INFO:gensim.models.poincare:training on epoch 1, examples #319990-#320000, loss: 29.75\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.06 s, 4864.94 examples / s\n", "INFO:gensim.models.poincare:training on epoch 1, examples #329990-#330000, loss: 29.71\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.08 s, 4809.07 examples / s\n", "INFO:gensim.models.poincare:training on epoch 1, examples #339990-#340000, loss: 29.68\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.09 s, 4787.32 examples / s\n", "INFO:gensim.models.poincare:training on epoch 1, examples #349990-#350000, loss: 29.68\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.25 s, 4451.75 examples / s\n", "INFO:gensim.models.poincare:training on epoch 1, examples #359990-#360000, loss: 29.65\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.44 s, 4092.97 examples / s\n", "INFO:gensim.models.poincare:training on epoch 1, examples #369990-#370000, loss: 29.63\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.59 s, 3867.21 examples / s\n", "INFO:gensim.models.poincare:training on epoch 1, examples #379990-#380000, loss: 29.62\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.51 s, 3980.40 examples / s\n", "INFO:gensim.models.poincare:training on epoch 1, examples #389990-#390000, loss: 29.59\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.24 s, 4463.61 examples / s\n", "INFO:gensim.models.poincare:training on epoch 1, examples #399990-#400000, loss: 29.59\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.00 s, 5001.52 examples / s\n", "INFO:gensim.models.poincare:training on epoch 1, examples #409990-#410000, loss: 29.55\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.10 s, 4754.73 examples / s\n", "INFO:gensim.models.poincare:training on epoch 1, examples #419990-#420000, loss: 29.53\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.21 s, 4533.89 examples / s\n", "INFO:gensim.models.poincare:training on epoch 1, examples #429990-#430000, loss: 29.47\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.09 s, 4778.84 examples / s\n", "INFO:gensim.models.poincare:training on epoch 1, examples #439990-#440000, loss: 29.46\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.18 s, 4586.84 examples / s\n", "INFO:gensim.models.poincare:training on epoch 1, examples #449990-#450000, loss: 29.46\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.12 s, 4713.23 examples / s\n" ] }, { "name": "stderr", "output_type": "stream", "text": [ "INFO:gensim.models.poincare:training on epoch 1, examples #459990-#460000, loss: 29.43\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.03 s, 4918.35 examples / s\n", "INFO:gensim.models.poincare:training on epoch 1, examples #469990-#470000, loss: 29.41\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.14 s, 4671.67 examples / s\n", "INFO:gensim.models.poincare:training on epoch 1, examples #479990-#480000, loss: 29.41\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.14 s, 4679.77 examples / s\n", "INFO:gensim.models.poincare:training on epoch 1, examples #489990-#490000, loss: 29.38\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.20 s, 4545.91 examples / s\n", "INFO:gensim.models.poincare:training on epoch 1, examples #499990-#500000, loss: 29.35\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.52 s, 3969.84 examples / s\n", "INFO:gensim.models.poincare:training on epoch 1, examples #509990-#510000, loss: 29.30\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.38 s, 4198.87 examples / s\n", "INFO:gensim.models.poincare:training on epoch 1, examples #519990-#520000, loss: 29.32\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.44 s, 4092.34 examples / s\n", "INFO:gensim.models.poincare:training on epoch 1, examples #529990-#530000, loss: 29.27\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.57 s, 3885.30 examples / s\n", "INFO:gensim.models.poincare:training on epoch 1, examples #539990-#540000, loss: 29.26\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.07 s, 4838.04 examples / s\n", "INFO:gensim.models.poincare:training on epoch 1, examples #549990-#550000, loss: 29.21\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.88 s, 3469.95 examples / s\n", "INFO:gensim.models.poincare:training on epoch 1, examples #559990-#560000, loss: 29.18\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.95 s, 3389.43 examples / s\n", "INFO:gensim.models.poincare:training on epoch 1, examples #569990-#570000, loss: 29.17\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.67 s, 3742.41 examples / s\n", "INFO:gensim.models.poincare:training on epoch 1, examples #579990-#580000, loss: 29.12\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.98 s, 3351.91 examples / s\n", "INFO:gensim.models.poincare:training on epoch 1, examples #589990-#590000, loss: 29.10\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.95 s, 3387.14 examples / s\n", "INFO:gensim.models.poincare:training on epoch 1, examples #599990-#600000, loss: 29.07\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 3.27 s, 3054.74 examples / s\n", "INFO:gensim.models.poincare:training on epoch 1, examples #609990-#610000, loss: 29.04\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.82 s, 3551.59 examples / s\n", "INFO:gensim.models.poincare:training on epoch 1, examples #619990-#620000, loss: 29.00\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.94 s, 3402.01 examples / s\n", "INFO:gensim.models.poincare:training on epoch 1, examples #629990-#630000, loss: 29.00\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.53 s, 3948.00 examples / s\n", "INFO:gensim.models.poincare:training on epoch 1, examples #639990-#640000, loss: 28.97\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 3.26 s, 3068.72 examples / s\n", "INFO:gensim.models.poincare:training on epoch 1, examples #649990-#650000, loss: 28.91\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.73 s, 3663.22 examples / s\n", "INFO:gensim.models.poincare:training on epoch 1, examples #659990-#660000, loss: 28.94\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 3.47 s, 2879.20 examples / s\n", "INFO:gensim.models.poincare:training on epoch 1, examples #669990-#670000, loss: 28.88\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.73 s, 3662.08 examples / s\n", "INFO:gensim.models.poincare:training on epoch 1, examples #679990-#680000, loss: 28.85\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.91 s, 3432.97 examples / s\n", "INFO:gensim.models.poincare:training on epoch 1, examples #689990-#690000, loss: 28.84\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 3.12 s, 3202.25 examples / s\n", "INFO:gensim.models.poincare:training on epoch 1, examples #699990-#700000, loss: 28.77\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 3.52 s, 2837.12 examples / s\n", "INFO:gensim.models.poincare:training on epoch 1, examples #709990-#710000, loss: 28.72\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.91 s, 3437.84 examples / s\n", "INFO:gensim.models.poincare:training on epoch 1, examples #719990-#720000, loss: 28.72\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.34 s, 4277.28 examples / s\n", "INFO:gensim.models.poincare:training on epoch 1, examples #729990-#730000, loss: 28.68\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 3.27 s, 3056.02 examples / s\n", "INFO:gensim.models.poincare:training on epoch 1, examples #739990-#740000, loss: 28.65\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.59 s, 3862.10 examples / s\n", "INFO:gensim.models.poincare:training on epoch 2, examples #9990-#10000, loss: 28.36\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 3.32 s, 3015.39 examples / s\n", "INFO:gensim.models.poincare:training on epoch 2, examples #19990-#20000, loss: 28.38\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.44 s, 4098.29 examples / s\n", "INFO:gensim.models.poincare:training on epoch 2, examples #29990-#30000, loss: 28.33\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 3.24 s, 3082.26 examples / s\n", "INFO:gensim.models.poincare:training on epoch 2, examples #39990-#40000, loss: 28.24\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.37 s, 4215.99 examples / s\n", "INFO:gensim.models.poincare:training on epoch 2, examples #49990-#50000, loss: 28.24\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 3.26 s, 3065.69 examples / s\n", "INFO:gensim.models.poincare:training on epoch 2, examples #59990-#60000, loss: 28.20\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.47 s, 4056.48 examples / s\n", "INFO:gensim.models.poincare:training on epoch 2, examples #69990-#70000, loss: 28.14\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.92 s, 3424.05 examples / s\n", "INFO:gensim.models.poincare:training on epoch 2, examples #79990-#80000, loss: 28.11\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 3.10 s, 3225.82 examples / s\n", "INFO:gensim.models.poincare:training on epoch 2, examples #89990-#90000, loss: 28.12\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.87 s, 3485.15 examples / s\n", "INFO:gensim.models.poincare:training on epoch 2, examples #99990-#100000, loss: 28.07\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 3.04 s, 3290.47 examples / s\n", "INFO:gensim.models.poincare:training on epoch 2, examples #109990-#110000, loss: 28.01\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.30 s, 4350.37 examples / s\n", "INFO:gensim.models.poincare:training on epoch 2, examples #119990-#120000, loss: 27.98\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.93 s, 3410.48 examples / s\n", "INFO:gensim.models.poincare:training on epoch 2, examples #129990-#130000, loss: 27.93\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.88 s, 3476.53 examples / s\n", "INFO:gensim.models.poincare:training on epoch 2, examples #139990-#140000, loss: 27.88\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.85 s, 3509.82 examples / s\n", "INFO:gensim.models.poincare:training on epoch 2, examples #149990-#150000, loss: 27.86\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.89 s, 3455.85 examples / s\n", "INFO:gensim.models.poincare:training on epoch 2, examples #159990-#160000, loss: 27.81\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.47 s, 4049.47 examples / s\n", "INFO:gensim.models.poincare:training on epoch 2, examples #169990-#170000, loss: 27.80\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.89 s, 3462.15 examples / s\n", "INFO:gensim.models.poincare:training on epoch 2, examples #179990-#180000, loss: 27.76\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 3.02 s, 3309.25 examples / s\n" ] }, { "name": "stderr", "output_type": "stream", "text": [ "INFO:gensim.models.poincare:training on epoch 2, examples #189990-#190000, loss: 27.72\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.40 s, 4170.28 examples / s\n", "INFO:gensim.models.poincare:training on epoch 2, examples #199990-#200000, loss: 27.67\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 3.29 s, 3041.13 examples / s\n", "INFO:gensim.models.poincare:training on epoch 2, examples #209990-#210000, loss: 27.59\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.06 s, 4856.18 examples / s\n", "INFO:gensim.models.poincare:training on epoch 2, examples #219990-#220000, loss: 27.52\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 3.05 s, 3280.16 examples / s\n", "INFO:gensim.models.poincare:training on epoch 2, examples #229990-#230000, loss: 27.55\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.67 s, 3743.50 examples / s\n", "INFO:gensim.models.poincare:training on epoch 2, examples #239990-#240000, loss: 27.49\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.74 s, 3646.28 examples / s\n", "INFO:gensim.models.poincare:training on epoch 2, examples #249990-#250000, loss: 27.43\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.97 s, 3371.91 examples / s\n", "INFO:gensim.models.poincare:training on epoch 2, examples #259990-#260000, loss: 27.42\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.14 s, 4667.36 examples / s\n", "INFO:gensim.models.poincare:training on epoch 2, examples #269990-#270000, loss: 27.34\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.97 s, 3368.10 examples / s\n", "INFO:gensim.models.poincare:training on epoch 2, examples #279990-#280000, loss: 27.31\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.79 s, 3580.47 examples / s\n", "INFO:gensim.models.poincare:training on epoch 2, examples #289990-#290000, loss: 27.29\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.61 s, 3830.69 examples / s\n", "INFO:gensim.models.poincare:training on epoch 2, examples #299990-#300000, loss: 27.24\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 3.17 s, 3150.43 examples / s\n", "INFO:gensim.models.poincare:training on epoch 2, examples #309990-#310000, loss: 27.21\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.44 s, 4090.56 examples / s\n", "INFO:gensim.models.poincare:training on epoch 2, examples #319990-#320000, loss: 27.17\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.84 s, 3520.51 examples / s\n", "INFO:gensim.models.poincare:training on epoch 2, examples #329990-#330000, loss: 27.07\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 3.06 s, 3264.34 examples / s\n", "INFO:gensim.models.poincare:training on epoch 2, examples #339990-#340000, loss: 27.06\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.61 s, 3826.93 examples / s\n", "INFO:gensim.models.poincare:training on epoch 2, examples #349990-#350000, loss: 26.97\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 3.00 s, 3328.54 examples / s\n", "INFO:gensim.models.poincare:training on epoch 2, examples #359990-#360000, loss: 26.94\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 3.12 s, 3207.03 examples / s\n", "INFO:gensim.models.poincare:training on epoch 2, examples #369990-#370000, loss: 26.87\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.33 s, 4296.87 examples / s\n", "INFO:gensim.models.poincare:training on epoch 2, examples #379990-#380000, loss: 26.88\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.11 s, 4729.59 examples / s\n", "INFO:gensim.models.poincare:training on epoch 2, examples #389990-#390000, loss: 26.78\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.00 s, 4997.96 examples / s\n", "INFO:gensim.models.poincare:training on epoch 2, examples #399990-#400000, loss: 26.77\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.02 s, 4942.94 examples / s\n", "INFO:gensim.models.poincare:training on epoch 2, examples #409990-#410000, loss: 26.69\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.02 s, 4938.90 examples / s\n", "INFO:gensim.models.poincare:training on epoch 2, examples #419990-#420000, loss: 26.69\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.06 s, 4861.93 examples / s\n", "INFO:gensim.models.poincare:training on epoch 2, examples #429990-#430000, loss: 26.69\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 1.99 s, 5017.22 examples / s\n", "INFO:gensim.models.poincare:training on epoch 2, examples #439990-#440000, loss: 26.55\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 1.99 s, 5031.36 examples / s\n", "INFO:gensim.models.poincare:training on epoch 2, examples #449990-#450000, loss: 26.53\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 1.97 s, 5088.95 examples / s\n", "INFO:gensim.models.poincare:training on epoch 2, examples #459990-#460000, loss: 26.56\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 1.99 s, 5020.40 examples / s\n", "INFO:gensim.models.poincare:training on epoch 2, examples #469990-#470000, loss: 26.41\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 1.99 s, 5017.54 examples / s\n", "INFO:gensim.models.poincare:training on epoch 2, examples #479990-#480000, loss: 26.40\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.04 s, 4909.68 examples / s\n", "INFO:gensim.models.poincare:training on epoch 2, examples #489990-#490000, loss: 26.28\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.02 s, 4943.52 examples / s\n", "INFO:gensim.models.poincare:training on epoch 2, examples #499990-#500000, loss: 26.20\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.09 s, 4794.14 examples / s\n", "INFO:gensim.models.poincare:training on epoch 2, examples #509990-#510000, loss: 26.19\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.05 s, 4875.88 examples / s\n", "INFO:gensim.models.poincare:training on epoch 2, examples #519990-#520000, loss: 26.21\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 1.98 s, 5053.06 examples / s\n", "INFO:gensim.models.poincare:training on epoch 2, examples #529990-#530000, loss: 26.08\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 1.97 s, 5075.26 examples / s\n", "INFO:gensim.models.poincare:training on epoch 2, examples #539990-#540000, loss: 26.09\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.00 s, 4992.10 examples / s\n", "INFO:gensim.models.poincare:training on epoch 2, examples #549990-#550000, loss: 26.09\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.02 s, 4949.35 examples / s\n", "INFO:gensim.models.poincare:training on epoch 2, examples #559990-#560000, loss: 25.96\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.05 s, 4884.55 examples / s\n", "INFO:gensim.models.poincare:training on epoch 2, examples #569990-#570000, loss: 25.94\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.02 s, 4952.91 examples / s\n", "INFO:gensim.models.poincare:training on epoch 2, examples #579990-#580000, loss: 25.85\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.02 s, 4944.52 examples / s\n", "INFO:gensim.models.poincare:training on epoch 2, examples #589990-#590000, loss: 25.86\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.02 s, 4940.39 examples / s\n", "INFO:gensim.models.poincare:training on epoch 2, examples #599990-#600000, loss: 25.77\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 1.99 s, 5019.82 examples / s\n", "INFO:gensim.models.poincare:training on epoch 2, examples #609990-#610000, loss: 25.73\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.03 s, 4921.34 examples / s\n", "INFO:gensim.models.poincare:training on epoch 2, examples #619990-#620000, loss: 25.66\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.01 s, 4970.34 examples / s\n", "INFO:gensim.models.poincare:training on epoch 2, examples #629990-#630000, loss: 25.61\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.00 s, 4992.80 examples / s\n", "INFO:gensim.models.poincare:training on epoch 2, examples #639990-#640000, loss: 25.55\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.01 s, 4969.25 examples / s\n", "INFO:gensim.models.poincare:training on epoch 2, examples #649990-#650000, loss: 25.57\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 1.99 s, 5024.53 examples / s\n" ] }, { "name": "stderr", "output_type": "stream", "text": [ "INFO:gensim.models.poincare:training on epoch 2, examples #659990-#660000, loss: 25.53\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.04 s, 4898.76 examples / s\n", "INFO:gensim.models.poincare:training on epoch 2, examples #669990-#670000, loss: 25.38\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 1.98 s, 5047.43 examples / s\n", "INFO:gensim.models.poincare:training on epoch 2, examples #679990-#680000, loss: 25.42\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.02 s, 4961.59 examples / s\n", "INFO:gensim.models.poincare:training on epoch 2, examples #689990-#690000, loss: 25.30\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.02 s, 4949.78 examples / s\n", "INFO:gensim.models.poincare:training on epoch 2, examples #699990-#700000, loss: 25.27\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.03 s, 4917.41 examples / s\n", "INFO:gensim.models.poincare:training on epoch 2, examples #709990-#710000, loss: 25.24\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.00 s, 5010.41 examples / s\n", "INFO:gensim.models.poincare:training on epoch 2, examples #719990-#720000, loss: 25.14\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.02 s, 4948.47 examples / s\n", "INFO:gensim.models.poincare:training on epoch 2, examples #729990-#730000, loss: 25.10\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 1.99 s, 5015.81 examples / s\n", "INFO:gensim.models.poincare:training on epoch 2, examples #739990-#740000, loss: 25.10\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.00 s, 4997.04 examples / s\n", "INFO:gensim.models.poincare:training on epoch 3, examples #9990-#10000, loss: 24.59\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.01 s, 4983.47 examples / s\n", "INFO:gensim.models.poincare:training on epoch 3, examples #19990-#20000, loss: 24.52\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 1.94 s, 5148.98 examples / s\n", "INFO:gensim.models.poincare:training on epoch 3, examples #29990-#30000, loss: 24.51\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.03 s, 4915.44 examples / s\n", "INFO:gensim.models.poincare:training on epoch 3, examples #39990-#40000, loss: 24.37\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 1.99 s, 5037.22 examples / s\n", "INFO:gensim.models.poincare:training on epoch 3, examples #49990-#50000, loss: 24.37\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.00 s, 4995.40 examples / s\n", "INFO:gensim.models.poincare:training on epoch 3, examples #59990-#60000, loss: 24.29\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 1.97 s, 5063.77 examples / s\n", "INFO:gensim.models.poincare:training on epoch 3, examples #69990-#70000, loss: 24.23\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.04 s, 4906.60 examples / s\n", "INFO:gensim.models.poincare:training on epoch 3, examples #79990-#80000, loss: 24.14\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 1.97 s, 5077.38 examples / s\n", "INFO:gensim.models.poincare:training on epoch 3, examples #89990-#90000, loss: 24.08\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 1.96 s, 5107.00 examples / s\n", "INFO:gensim.models.poincare:training on epoch 3, examples #99990-#100000, loss: 24.04\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 1.99 s, 5035.09 examples / s\n", "INFO:gensim.models.poincare:training on epoch 3, examples #109990-#110000, loss: 24.03\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 1.98 s, 5060.39 examples / s\n", "INFO:gensim.models.poincare:training on epoch 3, examples #119990-#120000, loss: 24.12\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 1.95 s, 5136.46 examples / s\n", "INFO:gensim.models.poincare:training on epoch 3, examples #129990-#130000, loss: 23.92\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.02 s, 4943.59 examples / s\n", "INFO:gensim.models.poincare:training on epoch 3, examples #139990-#140000, loss: 23.88\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.06 s, 4857.96 examples / s\n", "INFO:gensim.models.poincare:training on epoch 3, examples #149990-#150000, loss: 23.83\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.23 s, 4483.37 examples / s\n", "INFO:gensim.models.poincare:training on epoch 3, examples #159990-#160000, loss: 23.79\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.02 s, 4960.81 examples / s\n", "INFO:gensim.models.poincare:training on epoch 3, examples #169990-#170000, loss: 23.77\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.13 s, 4685.71 examples / s\n", "INFO:gensim.models.poincare:training on epoch 3, examples #179990-#180000, loss: 23.65\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.12 s, 4726.91 examples / s\n", "INFO:gensim.models.poincare:training on epoch 3, examples #189990-#190000, loss: 23.64\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.02 s, 4943.85 examples / s\n", "INFO:gensim.models.poincare:training on epoch 3, examples #199990-#200000, loss: 23.56\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.08 s, 4797.30 examples / s\n", "INFO:gensim.models.poincare:training on epoch 3, examples #209990-#210000, loss: 23.51\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.24 s, 4458.22 examples / s\n", "INFO:gensim.models.poincare:training on epoch 3, examples #219990-#220000, loss: 23.47\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.08 s, 4800.01 examples / s\n", "INFO:gensim.models.poincare:training on epoch 3, examples #229990-#230000, loss: 23.41\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.09 s, 4777.22 examples / s\n", "INFO:gensim.models.poincare:training on epoch 3, examples #239990-#240000, loss: 23.37\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 1.98 s, 5039.90 examples / s\n", "INFO:gensim.models.poincare:training on epoch 3, examples #249990-#250000, loss: 23.32\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.00 s, 5003.08 examples / s\n", "INFO:gensim.models.poincare:training on epoch 3, examples #259990-#260000, loss: 23.26\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.04 s, 4905.22 examples / s\n", "INFO:gensim.models.poincare:training on epoch 3, examples #269990-#270000, loss: 23.23\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.59 s, 3856.47 examples / s\n", "INFO:gensim.models.poincare:training on epoch 3, examples #279990-#280000, loss: 23.18\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.83 s, 3532.78 examples / s\n", "INFO:gensim.models.poincare:training on epoch 3, examples #289990-#290000, loss: 23.16\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.45 s, 4085.00 examples / s\n", "INFO:gensim.models.poincare:training on epoch 3, examples #299990-#300000, loss: 23.10\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.26 s, 4422.89 examples / s\n", "INFO:gensim.models.poincare:training on epoch 3, examples #309990-#310000, loss: 22.97\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.32 s, 4316.61 examples / s\n", "INFO:gensim.models.poincare:training on epoch 3, examples #319990-#320000, loss: 22.88\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.14 s, 4681.67 examples / s\n", "INFO:gensim.models.poincare:training on epoch 3, examples #329990-#330000, loss: 22.85\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.14 s, 4678.16 examples / s\n", "INFO:gensim.models.poincare:training on epoch 3, examples #339990-#340000, loss: 22.82\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.12 s, 4718.35 examples / s\n", "INFO:gensim.models.poincare:training on epoch 3, examples #349990-#350000, loss: 22.81\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.05 s, 4889.15 examples / s\n", "INFO:gensim.models.poincare:training on epoch 3, examples #359990-#360000, loss: 22.77\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.03 s, 4915.44 examples / s\n", "INFO:gensim.models.poincare:training on epoch 3, examples #369990-#370000, loss: 22.72\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.04 s, 4908.47 examples / s\n", "INFO:gensim.models.poincare:training on epoch 3, examples #379990-#380000, loss: 22.70\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.01 s, 4965.93 examples / s\n" ] }, { "name": "stderr", "output_type": "stream", "text": [ "INFO:gensim.models.poincare:training on epoch 3, examples #389990-#390000, loss: 22.63\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.14 s, 4671.89 examples / s\n", "INFO:gensim.models.poincare:training on epoch 3, examples #399990-#400000, loss: 22.54\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.07 s, 4838.80 examples / s\n", "INFO:gensim.models.poincare:training on epoch 3, examples #409990-#410000, loss: 22.47\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.06 s, 4848.72 examples / s\n", "INFO:gensim.models.poincare:training on epoch 3, examples #419990-#420000, loss: 22.50\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.16 s, 4627.03 examples / s\n", "INFO:gensim.models.poincare:training on epoch 3, examples #429990-#430000, loss: 22.39\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.13 s, 4696.29 examples / s\n", "INFO:gensim.models.poincare:training on epoch 3, examples #439990-#440000, loss: 22.42\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.06 s, 4847.23 examples / s\n", "INFO:gensim.models.poincare:training on epoch 3, examples #449990-#450000, loss: 22.29\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.05 s, 4871.52 examples / s\n", "INFO:gensim.models.poincare:training on epoch 3, examples #459990-#460000, loss: 22.21\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.01 s, 4969.33 examples / s\n", "INFO:gensim.models.poincare:training on epoch 3, examples #469990-#470000, loss: 22.12\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.03 s, 4919.60 examples / s\n", "INFO:gensim.models.poincare:training on epoch 3, examples #479990-#480000, loss: 22.11\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.09 s, 4782.22 examples / s\n", "INFO:gensim.models.poincare:training on epoch 3, examples #489990-#490000, loss: 22.12\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.05 s, 4882.60 examples / s\n", "INFO:gensim.models.poincare:training on epoch 3, examples #499990-#500000, loss: 22.04\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.20 s, 4542.77 examples / s\n", "INFO:gensim.models.poincare:training on epoch 3, examples #509990-#510000, loss: 22.02\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.18 s, 4593.91 examples / s\n", "INFO:gensim.models.poincare:training on epoch 3, examples #519990-#520000, loss: 21.89\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.26 s, 4420.52 examples / s\n", "INFO:gensim.models.poincare:training on epoch 3, examples #529990-#530000, loss: 21.98\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 1.95 s, 5115.37 examples / s\n", "INFO:gensim.models.poincare:training on epoch 3, examples #539990-#540000, loss: 21.92\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.09 s, 4781.64 examples / s\n", "INFO:gensim.models.poincare:training on epoch 3, examples #549990-#550000, loss: 21.68\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.02 s, 4948.20 examples / s\n", "INFO:gensim.models.poincare:training on epoch 3, examples #559990-#560000, loss: 21.69\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.05 s, 4868.35 examples / s\n", "INFO:gensim.models.poincare:training on epoch 3, examples #569990-#570000, loss: 21.76\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.14 s, 4670.71 examples / s\n", "INFO:gensim.models.poincare:training on epoch 3, examples #579990-#580000, loss: 21.65\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.13 s, 4693.07 examples / s\n", "INFO:gensim.models.poincare:training on epoch 3, examples #589990-#590000, loss: 21.52\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.24 s, 4474.16 examples / s\n", "INFO:gensim.models.poincare:training on epoch 3, examples #599990-#600000, loss: 21.50\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.02 s, 4952.18 examples / s\n", "INFO:gensim.models.poincare:training on epoch 3, examples #609990-#610000, loss: 21.52\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.24 s, 4468.84 examples / s\n", "INFO:gensim.models.poincare:training on epoch 3, examples #619990-#620000, loss: 21.51\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.22 s, 4507.36 examples / s\n", "INFO:gensim.models.poincare:training on epoch 3, examples #629990-#630000, loss: 21.28\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.51 s, 3978.63 examples / s\n", "INFO:gensim.models.poincare:training on epoch 3, examples #639990-#640000, loss: 21.35\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.07 s, 4829.42 examples / s\n", "INFO:gensim.models.poincare:training on epoch 3, examples #649990-#650000, loss: 21.35\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.12 s, 4726.57 examples / s\n", "INFO:gensim.models.poincare:training on epoch 3, examples #659990-#660000, loss: 21.22\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.25 s, 4453.09 examples / s\n", "INFO:gensim.models.poincare:training on epoch 3, examples #669990-#670000, loss: 21.20\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.20 s, 4547.93 examples / s\n", "INFO:gensim.models.poincare:training on epoch 3, examples #679990-#680000, loss: 21.09\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.13 s, 4698.17 examples / s\n", "INFO:gensim.models.poincare:training on epoch 3, examples #689990-#690000, loss: 21.04\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.02 s, 4962.71 examples / s\n", "INFO:gensim.models.poincare:training on epoch 3, examples #699990-#700000, loss: 21.07\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.02 s, 4954.70 examples / s\n", "INFO:gensim.models.poincare:training on epoch 3, examples #709990-#710000, loss: 21.03\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.01 s, 4977.30 examples / s\n", "INFO:gensim.models.poincare:training on epoch 3, examples #719990-#720000, loss: 20.85\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.21 s, 4532.46 examples / s\n", "INFO:gensim.models.poincare:training on epoch 3, examples #729990-#730000, loss: 20.99\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.26 s, 4421.55 examples / s\n", "INFO:gensim.models.poincare:training on epoch 3, examples #739990-#740000, loss: 20.82\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.08 s, 4812.09 examples / s\n", "INFO:gensim.models.poincare:training on epoch 4, examples #9990-#10000, loss: 20.28\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.05 s, 4880.65 examples / s\n", "INFO:gensim.models.poincare:training on epoch 4, examples #19990-#20000, loss: 20.39\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.00 s, 4995.67 examples / s\n", "INFO:gensim.models.poincare:training on epoch 4, examples #29990-#30000, loss: 20.30\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.00 s, 4995.43 examples / s\n", "INFO:gensim.models.poincare:training on epoch 4, examples #39990-#40000, loss: 20.26\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.10 s, 4761.39 examples / s\n", "INFO:gensim.models.poincare:training on epoch 4, examples #49990-#50000, loss: 20.22\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.09 s, 4795.74 examples / s\n", "INFO:gensim.models.poincare:training on epoch 4, examples #59990-#60000, loss: 20.10\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.11 s, 4747.03 examples / s\n", "INFO:gensim.models.poincare:training on epoch 4, examples #69990-#70000, loss: 20.02\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.07 s, 4829.93 examples / s\n", "INFO:gensim.models.poincare:training on epoch 4, examples #79990-#80000, loss: 20.11\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 1.98 s, 5044.28 examples / s\n", "INFO:gensim.models.poincare:training on epoch 4, examples #89990-#90000, loss: 19.95\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.06 s, 4863.30 examples / s\n", "INFO:gensim.models.poincare:training on epoch 4, examples #99990-#100000, loss: 20.04\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.14 s, 4678.92 examples / s\n", "INFO:gensim.models.poincare:training on epoch 4, examples #109990-#110000, loss: 20.00\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.05 s, 4888.53 examples / s\n" ] }, { "name": "stderr", "output_type": "stream", "text": [ "INFO:gensim.models.poincare:training on epoch 4, examples #119990-#120000, loss: 19.85\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.14 s, 4667.48 examples / s\n", "INFO:gensim.models.poincare:training on epoch 4, examples #129990-#130000, loss: 19.87\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.04 s, 4901.64 examples / s\n", "INFO:gensim.models.poincare:training on epoch 4, examples #139990-#140000, loss: 19.87\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.00 s, 5002.31 examples / s\n", "INFO:gensim.models.poincare:training on epoch 4, examples #149990-#150000, loss: 19.85\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.03 s, 4938.18 examples / s\n", "INFO:gensim.models.poincare:training on epoch 4, examples #159990-#160000, loss: 19.76\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 1.97 s, 5070.00 examples / s\n", "INFO:gensim.models.poincare:training on epoch 4, examples #169990-#170000, loss: 19.64\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.00 s, 4995.07 examples / s\n", "INFO:gensim.models.poincare:training on epoch 4, examples #179990-#180000, loss: 19.64\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.12 s, 4716.83 examples / s\n", "INFO:gensim.models.poincare:training on epoch 4, examples #189990-#190000, loss: 19.54\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.06 s, 4864.98 examples / s\n", "INFO:gensim.models.poincare:training on epoch 4, examples #199990-#200000, loss: 19.46\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.13 s, 4698.48 examples / s\n", "INFO:gensim.models.poincare:training on epoch 4, examples #209990-#210000, loss: 19.57\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.19 s, 4563.29 examples / s\n", "INFO:gensim.models.poincare:training on epoch 4, examples #219990-#220000, loss: 19.36\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.02 s, 4943.55 examples / s\n", "INFO:gensim.models.poincare:training on epoch 4, examples #229990-#230000, loss: 19.31\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.05 s, 4871.79 examples / s\n", "INFO:gensim.models.poincare:training on epoch 4, examples #239990-#240000, loss: 19.21\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.01 s, 4982.23 examples / s\n", "INFO:gensim.models.poincare:training on epoch 4, examples #249990-#250000, loss: 19.27\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.10 s, 4763.58 examples / s\n", "INFO:gensim.models.poincare:training on epoch 4, examples #259990-#260000, loss: 19.33\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.09 s, 4789.60 examples / s\n", "INFO:gensim.models.poincare:training on epoch 4, examples #269990-#270000, loss: 19.23\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.01 s, 4979.62 examples / s\n", "INFO:gensim.models.poincare:training on epoch 4, examples #279990-#280000, loss: 19.12\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.06 s, 4865.48 examples / s\n", "INFO:gensim.models.poincare:training on epoch 4, examples #289990-#290000, loss: 19.27\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.06 s, 4861.66 examples / s\n", "INFO:gensim.models.poincare:training on epoch 4, examples #299990-#300000, loss: 19.08\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.01 s, 4968.50 examples / s\n", "INFO:gensim.models.poincare:training on epoch 4, examples #309990-#310000, loss: 19.09\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.02 s, 4944.28 examples / s\n", "INFO:gensim.models.poincare:training on epoch 4, examples #319990-#320000, loss: 18.95\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.02 s, 4959.73 examples / s\n", "INFO:gensim.models.poincare:training on epoch 4, examples #329990-#330000, loss: 18.94\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.01 s, 4985.03 examples / s\n", "INFO:gensim.models.poincare:training on epoch 4, examples #339990-#340000, loss: 18.95\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.00 s, 5007.82 examples / s\n", "INFO:gensim.models.poincare:training on epoch 4, examples #349990-#350000, loss: 18.92\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.10 s, 4756.73 examples / s\n", "INFO:gensim.models.poincare:training on epoch 4, examples #359990-#360000, loss: 18.95\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.07 s, 4833.77 examples / s\n", "INFO:gensim.models.poincare:training on epoch 4, examples #369990-#370000, loss: 18.82\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.01 s, 4968.78 examples / s\n", "INFO:gensim.models.poincare:training on epoch 4, examples #379990-#380000, loss: 18.71\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 1.98 s, 5060.18 examples / s\n", "INFO:gensim.models.poincare:training on epoch 4, examples #389990-#390000, loss: 18.67\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 1.98 s, 5039.61 examples / s\n", "INFO:gensim.models.poincare:training on epoch 4, examples #399990-#400000, loss: 18.61\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 1.98 s, 5059.70 examples / s\n", "INFO:gensim.models.poincare:training on epoch 4, examples #409990-#410000, loss: 18.69\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 1.99 s, 5017.67 examples / s\n", "INFO:gensim.models.poincare:training on epoch 4, examples #419990-#420000, loss: 18.57\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.00 s, 5007.73 examples / s\n", "INFO:gensim.models.poincare:training on epoch 4, examples #429990-#430000, loss: 18.42\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.02 s, 4954.07 examples / s\n", "INFO:gensim.models.poincare:training on epoch 4, examples #439990-#440000, loss: 18.47\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.01 s, 4969.06 examples / s\n", "INFO:gensim.models.poincare:training on epoch 4, examples #449990-#450000, loss: 18.53\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.17 s, 4605.69 examples / s\n", "INFO:gensim.models.poincare:training on epoch 4, examples #459990-#460000, loss: 18.47\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 1.98 s, 5060.19 examples / s\n", "INFO:gensim.models.poincare:training on epoch 4, examples #469990-#470000, loss: 18.33\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.01 s, 4981.71 examples / s\n", "INFO:gensim.models.poincare:training on epoch 4, examples #479990-#480000, loss: 18.37\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.07 s, 4841.89 examples / s\n", "INFO:gensim.models.poincare:training on epoch 4, examples #489990-#490000, loss: 18.26\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.06 s, 4850.45 examples / s\n", "INFO:gensim.models.poincare:training on epoch 4, examples #499990-#500000, loss: 18.28\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.02 s, 4941.40 examples / s\n", "INFO:gensim.models.poincare:training on epoch 4, examples #509990-#510000, loss: 18.35\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.05 s, 4887.96 examples / s\n", "INFO:gensim.models.poincare:training on epoch 4, examples #519990-#520000, loss: 18.12\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.00 s, 5001.63 examples / s\n", "INFO:gensim.models.poincare:training on epoch 4, examples #529990-#530000, loss: 18.17\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.07 s, 4822.19 examples / s\n", "INFO:gensim.models.poincare:training on epoch 4, examples #539990-#540000, loss: 18.16\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.07 s, 4833.48 examples / s\n", "INFO:gensim.models.poincare:training on epoch 4, examples #549990-#550000, loss: 18.18\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.00 s, 5004.34 examples / s\n", "INFO:gensim.models.poincare:training on epoch 4, examples #559990-#560000, loss: 18.10\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.00 s, 5011.97 examples / s\n", "INFO:gensim.models.poincare:training on epoch 4, examples #569990-#570000, loss: 17.88\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.06 s, 4852.27 examples / s\n", "INFO:gensim.models.poincare:training on epoch 4, examples #579990-#580000, loss: 17.93\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.04 s, 4894.56 examples / s\n" ] }, { "name": "stderr", "output_type": "stream", "text": [ "INFO:gensim.models.poincare:training on epoch 4, examples #589990-#590000, loss: 17.89\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.02 s, 4941.00 examples / s\n", "INFO:gensim.models.poincare:training on epoch 4, examples #599990-#600000, loss: 17.77\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 1.98 s, 5038.40 examples / s\n", "INFO:gensim.models.poincare:training on epoch 4, examples #609990-#610000, loss: 17.69\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.02 s, 4938.77 examples / s\n", "INFO:gensim.models.poincare:training on epoch 4, examples #619990-#620000, loss: 17.72\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.08 s, 4813.41 examples / s\n", "INFO:gensim.models.poincare:training on epoch 4, examples #629990-#630000, loss: 17.69\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.02 s, 4943.75 examples / s\n", "INFO:gensim.models.poincare:training on epoch 4, examples #639990-#640000, loss: 17.75\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.02 s, 4949.58 examples / s\n", "INFO:gensim.models.poincare:training on epoch 4, examples #649990-#650000, loss: 17.69\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.01 s, 4986.85 examples / s\n", "INFO:gensim.models.poincare:training on epoch 4, examples #659990-#660000, loss: 17.69\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.01 s, 4977.14 examples / s\n", "INFO:gensim.models.poincare:training on epoch 4, examples #669990-#670000, loss: 17.66\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 1.97 s, 5064.44 examples / s\n", "INFO:gensim.models.poincare:training on epoch 4, examples #679990-#680000, loss: 17.49\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.01 s, 4986.14 examples / s\n", "INFO:gensim.models.poincare:training on epoch 4, examples #689990-#690000, loss: 17.51\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.00 s, 4998.18 examples / s\n", "INFO:gensim.models.poincare:training on epoch 4, examples #699990-#700000, loss: 17.47\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.02 s, 4939.02 examples / s\n", "INFO:gensim.models.poincare:training on epoch 4, examples #709990-#710000, loss: 17.48\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 1.99 s, 5034.09 examples / s\n", "INFO:gensim.models.poincare:training on epoch 4, examples #719990-#720000, loss: 17.35\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.00 s, 4990.34 examples / s\n", "INFO:gensim.models.poincare:training on epoch 4, examples #729990-#730000, loss: 17.43\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.01 s, 4978.69 examples / s\n", "INFO:gensim.models.poincare:training on epoch 4, examples #739990-#740000, loss: 17.44\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.02 s, 4946.35 examples / s\n", "INFO:gensim.models.poincare:training on epoch 5, examples #9990-#10000, loss: 16.98\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.01 s, 4967.11 examples / s\n", "INFO:gensim.models.poincare:training on epoch 5, examples #19990-#20000, loss: 17.01\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.00 s, 5006.20 examples / s\n", "INFO:gensim.models.poincare:training on epoch 5, examples #29990-#30000, loss: 17.03\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.05 s, 4878.62 examples / s\n", "INFO:gensim.models.poincare:training on epoch 5, examples #39990-#40000, loss: 16.97\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.02 s, 4962.48 examples / s\n", "INFO:gensim.models.poincare:training on epoch 5, examples #49990-#50000, loss: 16.87\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.06 s, 4861.49 examples / s\n", "INFO:gensim.models.poincare:training on epoch 5, examples #59990-#60000, loss: 16.80\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.02 s, 4943.24 examples / s\n", "INFO:gensim.models.poincare:training on epoch 5, examples #69990-#70000, loss: 16.74\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 1.98 s, 5053.07 examples / s\n", "INFO:gensim.models.poincare:training on epoch 5, examples #79990-#80000, loss: 16.77\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 1.99 s, 5034.57 examples / s\n", "INFO:gensim.models.poincare:training on epoch 5, examples #89990-#90000, loss: 16.77\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.00 s, 4990.77 examples / s\n", "INFO:gensim.models.poincare:training on epoch 5, examples #99990-#100000, loss: 16.80\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.03 s, 4928.06 examples / s\n", "INFO:gensim.models.poincare:training on epoch 5, examples #109990-#110000, loss: 16.69\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.06 s, 4864.58 examples / s\n", "INFO:gensim.models.poincare:training on epoch 5, examples #119990-#120000, loss: 16.48\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.09 s, 4793.82 examples / s\n", "INFO:gensim.models.poincare:training on epoch 5, examples #129990-#130000, loss: 16.78\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 1.98 s, 5056.86 examples / s\n", "INFO:gensim.models.poincare:training on epoch 5, examples #139990-#140000, loss: 16.55\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.00 s, 4999.35 examples / s\n", "INFO:gensim.models.poincare:training on epoch 5, examples #149990-#150000, loss: 16.46\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.13 s, 4693.17 examples / s\n", "INFO:gensim.models.poincare:training on epoch 5, examples #159990-#160000, loss: 16.58\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.00 s, 5005.50 examples / s\n", "INFO:gensim.models.poincare:training on epoch 5, examples #169990-#170000, loss: 16.43\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 1.97 s, 5064.80 examples / s\n", "INFO:gensim.models.poincare:training on epoch 5, examples #179990-#180000, loss: 16.39\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.00 s, 4995.10 examples / s\n", "INFO:gensim.models.poincare:training on epoch 5, examples #189990-#190000, loss: 16.31\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.08 s, 4815.94 examples / s\n", "INFO:gensim.models.poincare:training on epoch 5, examples #199990-#200000, loss: 16.29\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.04 s, 4911.52 examples / s\n", "INFO:gensim.models.poincare:training on epoch 5, examples #209990-#210000, loss: 16.41\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.06 s, 4846.22 examples / s\n", "INFO:gensim.models.poincare:training on epoch 5, examples #219990-#220000, loss: 16.23\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.00 s, 4998.19 examples / s\n", "INFO:gensim.models.poincare:training on epoch 5, examples #229990-#230000, loss: 16.35\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.09 s, 4779.60 examples / s\n", "INFO:gensim.models.poincare:training on epoch 5, examples #239990-#240000, loss: 16.28\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.10 s, 4753.24 examples / s\n", "INFO:gensim.models.poincare:training on epoch 5, examples #249990-#250000, loss: 16.10\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.00 s, 4993.15 examples / s\n", "INFO:gensim.models.poincare:training on epoch 5, examples #259990-#260000, loss: 16.15\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.07 s, 4828.99 examples / s\n", "INFO:gensim.models.poincare:training on epoch 5, examples #269990-#270000, loss: 16.17\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 1.98 s, 5063.10 examples / s\n", "INFO:gensim.models.poincare:training on epoch 5, examples #279990-#280000, loss: 16.13\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.06 s, 4863.24 examples / s\n", "INFO:gensim.models.poincare:training on epoch 5, examples #289990-#290000, loss: 16.05\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.05 s, 4868.74 examples / s\n", "INFO:gensim.models.poincare:training on epoch 5, examples #299990-#300000, loss: 16.04\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.07 s, 4842.28 examples / s\n", "INFO:gensim.models.poincare:training on epoch 5, examples #309990-#310000, loss: 15.97\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 1.99 s, 5016.07 examples / s\n" ] }, { "name": "stderr", "output_type": "stream", "text": [ "INFO:gensim.models.poincare:training on epoch 5, examples #319990-#320000, loss: 16.04\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.10 s, 4759.84 examples / s\n", "INFO:gensim.models.poincare:training on epoch 5, examples #329990-#330000, loss: 15.98\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.01 s, 4971.92 examples / s\n", "INFO:gensim.models.poincare:training on epoch 5, examples #339990-#340000, loss: 16.00\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.03 s, 4928.27 examples / s\n", "INFO:gensim.models.poincare:training on epoch 5, examples #349990-#350000, loss: 15.84\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 1.98 s, 5048.23 examples / s\n", "INFO:gensim.models.poincare:training on epoch 5, examples #359990-#360000, loss: 15.91\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.01 s, 4976.53 examples / s\n", "INFO:gensim.models.poincare:training on epoch 5, examples #369990-#370000, loss: 15.83\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.02 s, 4948.23 examples / s\n", "INFO:gensim.models.poincare:training on epoch 5, examples #379990-#380000, loss: 15.80\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.02 s, 4957.56 examples / s\n", "INFO:gensim.models.poincare:training on epoch 5, examples #389990-#390000, loss: 15.92\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.04 s, 4904.25 examples / s\n", "INFO:gensim.models.poincare:training on epoch 5, examples #399990-#400000, loss: 15.75\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.00 s, 4995.65 examples / s\n", "INFO:gensim.models.poincare:training on epoch 5, examples #409990-#410000, loss: 15.78\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.01 s, 4963.78 examples / s\n", "INFO:gensim.models.poincare:training on epoch 5, examples #419990-#420000, loss: 15.70\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.05 s, 4888.36 examples / s\n", "INFO:gensim.models.poincare:training on epoch 5, examples #429990-#430000, loss: 15.68\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.04 s, 4911.60 examples / s\n", "INFO:gensim.models.poincare:training on epoch 5, examples #439990-#440000, loss: 15.64\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.02 s, 4952.78 examples / s\n", "INFO:gensim.models.poincare:training on epoch 5, examples #449990-#450000, loss: 15.52\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.12 s, 4718.29 examples / s\n", "INFO:gensim.models.poincare:training on epoch 5, examples #459990-#460000, loss: 15.54\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.01 s, 4987.42 examples / s\n", "INFO:gensim.models.poincare:training on epoch 5, examples #469990-#470000, loss: 15.63\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 1.99 s, 5033.39 examples / s\n", "INFO:gensim.models.poincare:training on epoch 5, examples #479990-#480000, loss: 15.70\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.07 s, 4838.73 examples / s\n", "INFO:gensim.models.poincare:training on epoch 5, examples #489990-#490000, loss: 15.51\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.00 s, 5000.57 examples / s\n", "INFO:gensim.models.poincare:training on epoch 5, examples #499990-#500000, loss: 15.51\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.13 s, 4689.02 examples / s\n", "INFO:gensim.models.poincare:training on epoch 5, examples #509990-#510000, loss: 15.32\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.15 s, 4652.77 examples / s\n", "INFO:gensim.models.poincare:training on epoch 5, examples #519990-#520000, loss: 15.47\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.18 s, 4581.93 examples / s\n", "INFO:gensim.models.poincare:training on epoch 5, examples #529990-#530000, loss: 15.21\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.02 s, 4957.70 examples / s\n", "INFO:gensim.models.poincare:training on epoch 5, examples #539990-#540000, loss: 15.34\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.11 s, 4730.20 examples / s\n", "INFO:gensim.models.poincare:training on epoch 5, examples #549990-#550000, loss: 15.19\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.36 s, 4237.03 examples / s\n", "INFO:gensim.models.poincare:training on epoch 5, examples #559990-#560000, loss: 15.31\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.10 s, 4771.29 examples / s\n", "INFO:gensim.models.poincare:training on epoch 5, examples #569990-#570000, loss: 15.16\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.12 s, 4707.25 examples / s\n", "INFO:gensim.models.poincare:training on epoch 5, examples #579990-#580000, loss: 15.26\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.05 s, 4868.55 examples / s\n", "INFO:gensim.models.poincare:training on epoch 5, examples #589990-#590000, loss: 15.25\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.06 s, 4853.89 examples / s\n", "INFO:gensim.models.poincare:training on epoch 5, examples #599990-#600000, loss: 15.19\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.18 s, 4595.38 examples / s\n", "INFO:gensim.models.poincare:training on epoch 5, examples #609990-#610000, loss: 15.08\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.03 s, 4916.04 examples / s\n", "INFO:gensim.models.poincare:training on epoch 5, examples #619990-#620000, loss: 15.25\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.16 s, 4620.15 examples / s\n", "INFO:gensim.models.poincare:training on epoch 5, examples #629990-#630000, loss: 14.94\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.29 s, 4372.28 examples / s\n", "INFO:gensim.models.poincare:training on epoch 5, examples #639990-#640000, loss: 15.02\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.26 s, 4420.59 examples / s\n", "INFO:gensim.models.poincare:training on epoch 5, examples #649990-#650000, loss: 15.05\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.18 s, 4584.97 examples / s\n", "INFO:gensim.models.poincare:training on epoch 5, examples #659990-#660000, loss: 15.13\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.06 s, 4846.84 examples / s\n", "INFO:gensim.models.poincare:training on epoch 5, examples #669990-#670000, loss: 14.92\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.03 s, 4919.27 examples / s\n", "INFO:gensim.models.poincare:training on epoch 5, examples #679990-#680000, loss: 14.92\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.01 s, 4985.22 examples / s\n", "INFO:gensim.models.poincare:training on epoch 5, examples #689990-#690000, loss: 15.05\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 1.98 s, 5057.07 examples / s\n", "INFO:gensim.models.poincare:training on epoch 5, examples #699990-#700000, loss: 14.92\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.00 s, 5000.94 examples / s\n", "INFO:gensim.models.poincare:training on epoch 5, examples #709990-#710000, loss: 14.95\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.07 s, 4840.27 examples / s\n", "INFO:gensim.models.poincare:training on epoch 5, examples #719990-#720000, loss: 14.87\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.10 s, 4770.30 examples / s\n", "INFO:gensim.models.poincare:training on epoch 5, examples #729990-#730000, loss: 14.76\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.00 s, 5007.93 examples / s\n", "INFO:gensim.models.poincare:training on epoch 5, examples #739990-#740000, loss: 14.70\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 1.94 s, 5149.87 examples / s\n", "INFO:gensim.models.poincare:training on epoch 6, examples #9990-#10000, loss: 14.62\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 1.97 s, 5074.41 examples / s\n", "INFO:gensim.models.poincare:training on epoch 6, examples #19990-#20000, loss: 14.57\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 1.97 s, 5068.34 examples / s\n", "INFO:gensim.models.poincare:training on epoch 6, examples #29990-#30000, loss: 14.56\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.12 s, 4711.80 examples / s\n", "INFO:gensim.models.poincare:training on epoch 6, examples #39990-#40000, loss: 14.53\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.04 s, 4901.93 examples / s\n" ] }, { "name": "stderr", "output_type": "stream", "text": [ "INFO:gensim.models.poincare:training on epoch 6, examples #49990-#50000, loss: 14.38\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.01 s, 4972.95 examples / s\n", "INFO:gensim.models.poincare:training on epoch 6, examples #59990-#60000, loss: 14.40\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.04 s, 4912.06 examples / s\n", "INFO:gensim.models.poincare:training on epoch 6, examples #69990-#70000, loss: 14.48\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.06 s, 4845.06 examples / s\n", "INFO:gensim.models.poincare:training on epoch 6, examples #79990-#80000, loss: 14.47\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.19 s, 4567.18 examples / s\n", "INFO:gensim.models.poincare:training on epoch 6, examples #89990-#90000, loss: 14.46\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.04 s, 4905.89 examples / s\n", "INFO:gensim.models.poincare:training on epoch 6, examples #99990-#100000, loss: 14.27\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.12 s, 4717.66 examples / s\n", "INFO:gensim.models.poincare:training on epoch 6, examples #109990-#110000, loss: 14.32\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.18 s, 4583.40 examples / s\n", "INFO:gensim.models.poincare:training on epoch 6, examples #119990-#120000, loss: 14.38\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.09 s, 4773.44 examples / s\n", "INFO:gensim.models.poincare:training on epoch 6, examples #129990-#130000, loss: 14.30\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.11 s, 4737.11 examples / s\n", "INFO:gensim.models.poincare:training on epoch 6, examples #139990-#140000, loss: 14.29\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.25 s, 4445.51 examples / s\n", "INFO:gensim.models.poincare:training on epoch 6, examples #149990-#150000, loss: 14.21\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 1.98 s, 5039.20 examples / s\n", "INFO:gensim.models.poincare:training on epoch 6, examples #159990-#160000, loss: 14.25\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.04 s, 4890.26 examples / s\n", "INFO:gensim.models.poincare:training on epoch 6, examples #169990-#170000, loss: 14.30\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.02 s, 4938.33 examples / s\n", "INFO:gensim.models.poincare:training on epoch 6, examples #179990-#180000, loss: 14.23\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.16 s, 4632.99 examples / s\n", "INFO:gensim.models.poincare:training on epoch 6, examples #189990-#190000, loss: 14.20\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.01 s, 4979.41 examples / s\n", "INFO:gensim.models.poincare:training on epoch 6, examples #199990-#200000, loss: 14.22\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.10 s, 4762.01 examples / s\n", "INFO:gensim.models.poincare:training on epoch 6, examples #209990-#210000, loss: 14.18\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.19 s, 4567.59 examples / s\n", "INFO:gensim.models.poincare:training on epoch 6, examples #219990-#220000, loss: 14.07\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.24 s, 4461.97 examples / s\n", "INFO:gensim.models.poincare:training on epoch 6, examples #229990-#230000, loss: 14.31\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.22 s, 4504.80 examples / s\n", "INFO:gensim.models.poincare:training on epoch 6, examples #239990-#240000, loss: 14.14\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.20 s, 4535.80 examples / s\n", "INFO:gensim.models.poincare:training on epoch 6, examples #249990-#250000, loss: 14.15\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.57 s, 3890.63 examples / s\n", "INFO:gensim.models.poincare:training on epoch 6, examples #259990-#260000, loss: 13.95\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.19 s, 4569.33 examples / s\n", "INFO:gensim.models.poincare:training on epoch 6, examples #269990-#270000, loss: 14.05\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.06 s, 4844.90 examples / s\n", "INFO:gensim.models.poincare:training on epoch 6, examples #279990-#280000, loss: 14.12\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.14 s, 4676.96 examples / s\n", "INFO:gensim.models.poincare:training on epoch 6, examples #289990-#290000, loss: 14.04\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.08 s, 4810.09 examples / s\n", "INFO:gensim.models.poincare:training on epoch 6, examples #299990-#300000, loss: 13.99\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.21 s, 4519.08 examples / s\n", "INFO:gensim.models.poincare:training on epoch 6, examples #309990-#310000, loss: 13.95\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.16 s, 4638.66 examples / s\n", "INFO:gensim.models.poincare:training on epoch 6, examples #319990-#320000, loss: 13.86\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.18 s, 4585.32 examples / s\n", "INFO:gensim.models.poincare:training on epoch 6, examples #329990-#330000, loss: 13.90\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.24 s, 4468.27 examples / s\n", "INFO:gensim.models.poincare:training on epoch 6, examples #339990-#340000, loss: 13.89\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.01 s, 4983.74 examples / s\n", "INFO:gensim.models.poincare:training on epoch 6, examples #349990-#350000, loss: 13.86\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.15 s, 4658.19 examples / s\n", "INFO:gensim.models.poincare:training on epoch 6, examples #359990-#360000, loss: 13.79\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.14 s, 4673.10 examples / s\n", "INFO:gensim.models.poincare:training on epoch 6, examples #369990-#370000, loss: 13.77\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.17 s, 4613.05 examples / s\n", "INFO:gensim.models.poincare:training on epoch 6, examples #379990-#380000, loss: 13.63\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.00 s, 4992.76 examples / s\n", "INFO:gensim.models.poincare:training on epoch 6, examples #389990-#390000, loss: 13.92\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.00 s, 5000.60 examples / s\n", "INFO:gensim.models.poincare:training on epoch 6, examples #399990-#400000, loss: 13.75\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.12 s, 4716.74 examples / s\n", "INFO:gensim.models.poincare:training on epoch 6, examples #409990-#410000, loss: 13.76\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.10 s, 4762.14 examples / s\n", "INFO:gensim.models.poincare:training on epoch 6, examples #419990-#420000, loss: 13.63\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.06 s, 4856.55 examples / s\n", "INFO:gensim.models.poincare:training on epoch 6, examples #429990-#430000, loss: 13.71\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.43 s, 4115.02 examples / s\n", "INFO:gensim.models.poincare:training on epoch 6, examples #439990-#440000, loss: 13.55\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.30 s, 4340.13 examples / s\n", "INFO:gensim.models.poincare:training on epoch 6, examples #449990-#450000, loss: 13.70\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.35 s, 4255.26 examples / s\n", "INFO:gensim.models.poincare:training on epoch 6, examples #459990-#460000, loss: 13.60\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.00 s, 4991.39 examples / s\n", "INFO:gensim.models.poincare:training on epoch 6, examples #469990-#470000, loss: 13.51\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.01 s, 4979.94 examples / s\n", "INFO:gensim.models.poincare:training on epoch 6, examples #479990-#480000, loss: 13.64\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.13 s, 4703.96 examples / s\n", "INFO:gensim.models.poincare:training on epoch 6, examples #489990-#490000, loss: 13.60\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.21 s, 4524.26 examples / s\n", "INFO:gensim.models.poincare:training on epoch 6, examples #499990-#500000, loss: 13.61\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.08 s, 4815.57 examples / s\n", "INFO:gensim.models.poincare:training on epoch 6, examples #509990-#510000, loss: 13.70\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.08 s, 4812.18 examples / s\n" ] }, { "name": "stderr", "output_type": "stream", "text": [ "INFO:gensim.models.poincare:training on epoch 6, examples #519990-#520000, loss: 13.45\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.00 s, 5008.45 examples / s\n", "INFO:gensim.models.poincare:training on epoch 6, examples #529990-#530000, loss: 13.59\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.08 s, 4808.91 examples / s\n", "INFO:gensim.models.poincare:training on epoch 6, examples #539990-#540000, loss: 13.42\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.05 s, 4886.71 examples / s\n", "INFO:gensim.models.poincare:training on epoch 6, examples #549990-#550000, loss: 13.52\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.09 s, 4789.03 examples / s\n", "INFO:gensim.models.poincare:training on epoch 6, examples #559990-#560000, loss: 13.37\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.02 s, 4941.37 examples / s\n", "INFO:gensim.models.poincare:training on epoch 6, examples #569990-#570000, loss: 13.49\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.17 s, 4612.78 examples / s\n", "INFO:gensim.models.poincare:training on epoch 6, examples #579990-#580000, loss: 13.37\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.06 s, 4864.96 examples / s\n", "INFO:gensim.models.poincare:training on epoch 6, examples #589990-#590000, loss: 13.26\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 1.99 s, 5015.37 examples / s\n", "INFO:gensim.models.poincare:training on epoch 6, examples #599990-#600000, loss: 13.29\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.05 s, 4871.27 examples / s\n", "INFO:gensim.models.poincare:training on epoch 6, examples #609990-#610000, loss: 13.31\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.01 s, 4965.43 examples / s\n", "INFO:gensim.models.poincare:training on epoch 6, examples #619990-#620000, loss: 13.38\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.04 s, 4897.68 examples / s\n", "INFO:gensim.models.poincare:training on epoch 6, examples #629990-#630000, loss: 13.30\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.15 s, 4652.29 examples / s\n", "INFO:gensim.models.poincare:training on epoch 6, examples #639990-#640000, loss: 13.46\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.29 s, 4368.10 examples / s\n", "INFO:gensim.models.poincare:training on epoch 6, examples #649990-#650000, loss: 13.28\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.12 s, 4713.79 examples / s\n", "INFO:gensim.models.poincare:training on epoch 6, examples #659990-#660000, loss: 13.22\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.10 s, 4761.11 examples / s\n", "INFO:gensim.models.poincare:training on epoch 6, examples #669990-#670000, loss: 13.23\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.01 s, 4979.03 examples / s\n", "INFO:gensim.models.poincare:training on epoch 6, examples #679990-#680000, loss: 13.24\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.04 s, 4903.94 examples / s\n", "INFO:gensim.models.poincare:training on epoch 6, examples #689990-#690000, loss: 13.34\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.33 s, 4297.92 examples / s\n", "INFO:gensim.models.poincare:training on epoch 6, examples #699990-#700000, loss: 13.18\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.20 s, 4537.09 examples / s\n", "INFO:gensim.models.poincare:training on epoch 6, examples #709990-#710000, loss: 13.18\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.77 s, 3613.14 examples / s\n", "INFO:gensim.models.poincare:training on epoch 6, examples #719990-#720000, loss: 13.16\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.74 s, 3655.50 examples / s\n", "INFO:gensim.models.poincare:training on epoch 6, examples #729990-#730000, loss: 13.11\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.56 s, 3901.57 examples / s\n", "INFO:gensim.models.poincare:training on epoch 6, examples #739990-#740000, loss: 13.06\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.11 s, 4740.70 examples / s\n", "INFO:gensim.models.poincare:training on epoch 7, examples #9990-#10000, loss: 13.14\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.13 s, 4691.85 examples / s\n", "INFO:gensim.models.poincare:training on epoch 7, examples #19990-#20000, loss: 12.79\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.23 s, 4486.93 examples / s\n", "INFO:gensim.models.poincare:training on epoch 7, examples #29990-#30000, loss: 13.03\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.35 s, 4251.78 examples / s\n", "INFO:gensim.models.poincare:training on epoch 7, examples #39990-#40000, loss: 12.81\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.33 s, 4284.35 examples / s\n", "INFO:gensim.models.poincare:training on epoch 7, examples #49990-#50000, loss: 12.94\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.37 s, 4223.69 examples / s\n", "INFO:gensim.models.poincare:training on epoch 7, examples #59990-#60000, loss: 12.86\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.57 s, 3896.02 examples / s\n", "INFO:gensim.models.poincare:training on epoch 7, examples #69990-#70000, loss: 12.85\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.57 s, 3884.71 examples / s\n", "INFO:gensim.models.poincare:training on epoch 7, examples #79990-#80000, loss: 12.79\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.72 s, 3671.83 examples / s\n", "INFO:gensim.models.poincare:training on epoch 7, examples #89990-#90000, loss: 12.86\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.05 s, 4873.00 examples / s\n", "INFO:gensim.models.poincare:training on epoch 7, examples #99990-#100000, loss: 12.80\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.04 s, 4899.85 examples / s\n", "INFO:gensim.models.poincare:training on epoch 7, examples #109990-#110000, loss: 12.84\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.09 s, 4777.10 examples / s\n", "INFO:gensim.models.poincare:training on epoch 7, examples #119990-#120000, loss: 12.65\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 1.99 s, 5014.45 examples / s\n", "INFO:gensim.models.poincare:training on epoch 7, examples #129990-#130000, loss: 12.83\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.03 s, 4923.53 examples / s\n", "INFO:gensim.models.poincare:training on epoch 7, examples #139990-#140000, loss: 12.74\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.05 s, 4870.12 examples / s\n", "INFO:gensim.models.poincare:training on epoch 7, examples #149990-#150000, loss: 12.75\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.07 s, 4834.36 examples / s\n", "INFO:gensim.models.poincare:training on epoch 7, examples #159990-#160000, loss: 12.73\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.09 s, 4775.92 examples / s\n", "INFO:gensim.models.poincare:training on epoch 7, examples #169990-#170000, loss: 12.68\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.18 s, 4586.59 examples / s\n", "INFO:gensim.models.poincare:training on epoch 7, examples #179990-#180000, loss: 12.81\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.18 s, 4597.17 examples / s\n", "INFO:gensim.models.poincare:training on epoch 7, examples #189990-#190000, loss: 12.60\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.38 s, 4209.51 examples / s\n", "INFO:gensim.models.poincare:training on epoch 7, examples #199990-#200000, loss: 12.73\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.49 s, 4012.02 examples / s\n", "INFO:gensim.models.poincare:training on epoch 7, examples #209990-#210000, loss: 12.65\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.43 s, 4123.05 examples / s\n", "INFO:gensim.models.poincare:training on epoch 7, examples #219990-#220000, loss: 12.82\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.38 s, 4200.99 examples / s\n", "INFO:gensim.models.poincare:training on epoch 7, examples #229990-#230000, loss: 12.62\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.34 s, 4272.35 examples / s\n", "INFO:gensim.models.poincare:training on epoch 7, examples #239990-#240000, loss: 12.67\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.20 s, 4544.30 examples / s\n" ] }, { "name": "stderr", "output_type": "stream", "text": [ "INFO:gensim.models.poincare:training on epoch 7, examples #249990-#250000, loss: 12.55\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.79 s, 3585.54 examples / s\n", "INFO:gensim.models.poincare:training on epoch 7, examples #259990-#260000, loss: 12.61\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 3.22 s, 3108.58 examples / s\n", "INFO:gensim.models.poincare:training on epoch 7, examples #269990-#270000, loss: 12.61\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.80 s, 3573.95 examples / s\n", "INFO:gensim.models.poincare:training on epoch 7, examples #279990-#280000, loss: 12.46\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 3.37 s, 2965.71 examples / s\n", "INFO:gensim.models.poincare:training on epoch 7, examples #289990-#290000, loss: 12.61\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 3.00 s, 3337.80 examples / s\n", "INFO:gensim.models.poincare:training on epoch 7, examples #299990-#300000, loss: 12.54\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 3.23 s, 3092.74 examples / s\n", "INFO:gensim.models.poincare:training on epoch 7, examples #309990-#310000, loss: 12.47\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 3.15 s, 3174.50 examples / s\n", "INFO:gensim.models.poincare:training on epoch 7, examples #319990-#320000, loss: 12.42\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 3.00 s, 3337.83 examples / s\n", "INFO:gensim.models.poincare:training on epoch 7, examples #329990-#330000, loss: 12.35\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.90 s, 3451.59 examples / s\n", "INFO:gensim.models.poincare:training on epoch 7, examples #339990-#340000, loss: 12.54\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.95 s, 3388.02 examples / s\n", "INFO:gensim.models.poincare:training on epoch 7, examples #349990-#350000, loss: 12.46\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 3.03 s, 3298.19 examples / s\n", "INFO:gensim.models.poincare:training on epoch 7, examples #359990-#360000, loss: 12.35\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 3.15 s, 3178.27 examples / s\n", "INFO:gensim.models.poincare:training on epoch 7, examples #369990-#370000, loss: 12.46\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.59 s, 3855.54 examples / s\n", "INFO:gensim.models.poincare:training on epoch 7, examples #379990-#380000, loss: 12.55\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 3.41 s, 2929.58 examples / s\n", "INFO:gensim.models.poincare:training on epoch 7, examples #389990-#390000, loss: 12.32\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.87 s, 3479.64 examples / s\n", "INFO:gensim.models.poincare:training on epoch 7, examples #399990-#400000, loss: 12.38\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 3.25 s, 3076.83 examples / s\n", "INFO:gensim.models.poincare:training on epoch 7, examples #409990-#410000, loss: 12.44\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 3.30 s, 3032.67 examples / s\n", "INFO:gensim.models.poincare:training on epoch 7, examples #419990-#420000, loss: 12.27\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.46 s, 4070.55 examples / s\n", "INFO:gensim.models.poincare:training on epoch 7, examples #429990-#430000, loss: 12.32\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 3.53 s, 2833.03 examples / s\n", "INFO:gensim.models.poincare:training on epoch 7, examples #439990-#440000, loss: 12.39\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.37 s, 4218.68 examples / s\n", "INFO:gensim.models.poincare:training on epoch 7, examples #449990-#450000, loss: 12.31\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 3.58 s, 2794.56 examples / s\n", "INFO:gensim.models.poincare:training on epoch 7, examples #459990-#460000, loss: 12.49\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.74 s, 3653.72 examples / s\n", "INFO:gensim.models.poincare:training on epoch 7, examples #469990-#470000, loss: 12.42\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 4.27 s, 2339.92 examples / s\n", "INFO:gensim.models.poincare:training on epoch 7, examples #479990-#480000, loss: 12.39\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 3.70 s, 2705.51 examples / s\n", "INFO:gensim.models.poincare:training on epoch 7, examples #489990-#490000, loss: 12.39\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 4.18 s, 2390.35 examples / s\n", "INFO:gensim.models.poincare:training on epoch 7, examples #499990-#500000, loss: 12.29\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 4.27 s, 2340.87 examples / s\n", "INFO:gensim.models.poincare:training on epoch 7, examples #509990-#510000, loss: 12.27\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 3.33 s, 2999.75 examples / s\n", "INFO:gensim.models.poincare:training on epoch 7, examples #519990-#520000, loss: 12.16\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 4.92 s, 2033.91 examples / s\n", "INFO:gensim.models.poincare:training on epoch 7, examples #529990-#530000, loss: 12.30\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.98 s, 3354.39 examples / s\n", "INFO:gensim.models.poincare:training on epoch 7, examples #539990-#540000, loss: 12.26\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 3.52 s, 2839.14 examples / s\n", "INFO:gensim.models.poincare:training on epoch 7, examples #549990-#550000, loss: 12.20\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.75 s, 3635.44 examples / s\n", "INFO:gensim.models.poincare:training on epoch 7, examples #559990-#560000, loss: 12.09\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 3.15 s, 3171.62 examples / s\n", "INFO:gensim.models.poincare:training on epoch 7, examples #569990-#570000, loss: 12.35\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 3.63 s, 2754.73 examples / s\n", "INFO:gensim.models.poincare:training on epoch 7, examples #579990-#580000, loss: 12.28\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.97 s, 3369.52 examples / s\n", "INFO:gensim.models.poincare:training on epoch 7, examples #589990-#590000, loss: 12.15\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 3.81 s, 2627.79 examples / s\n", "INFO:gensim.models.poincare:training on epoch 7, examples #599990-#600000, loss: 12.11\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 3.46 s, 2890.72 examples / s\n", "INFO:gensim.models.poincare:training on epoch 7, examples #609990-#610000, loss: 12.08\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 3.26 s, 3068.25 examples / s\n", "INFO:gensim.models.poincare:training on epoch 7, examples #619990-#620000, loss: 11.95\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 3.61 s, 2772.22 examples / s\n", "INFO:gensim.models.poincare:training on epoch 7, examples #629990-#630000, loss: 12.19\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.43 s, 4116.51 examples / s\n", "INFO:gensim.models.poincare:training on epoch 7, examples #639990-#640000, loss: 12.09\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 3.68 s, 2716.18 examples / s\n", "INFO:gensim.models.poincare:training on epoch 7, examples #649990-#650000, loss: 12.01\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 3.22 s, 3106.93 examples / s\n", "INFO:gensim.models.poincare:training on epoch 7, examples #659990-#660000, loss: 12.19\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 3.30 s, 3029.78 examples / s\n", "INFO:gensim.models.poincare:training on epoch 7, examples #669990-#670000, loss: 11.92\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 3.71 s, 2696.68 examples / s\n", "INFO:gensim.models.poincare:training on epoch 7, examples #679990-#680000, loss: 11.89\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.76 s, 3623.31 examples / s\n", "INFO:gensim.models.poincare:training on epoch 7, examples #689990-#690000, loss: 12.04\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 3.66 s, 2734.81 examples / s\n", "INFO:gensim.models.poincare:training on epoch 7, examples #699990-#700000, loss: 12.01\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.80 s, 3570.62 examples / s\n", "INFO:gensim.models.poincare:training on epoch 7, examples #709990-#710000, loss: 11.99\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.94 s, 3395.87 examples / s\n" ] }, { "name": "stderr", "output_type": "stream", "text": [ "INFO:gensim.models.poincare:training on epoch 7, examples #719990-#720000, loss: 12.01\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 3.05 s, 3275.42 examples / s\n", "INFO:gensim.models.poincare:training on epoch 7, examples #729990-#730000, loss: 11.90\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.13 s, 4689.34 examples / s\n", "INFO:gensim.models.poincare:training on epoch 7, examples #739990-#740000, loss: 11.97\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.96 s, 3380.01 examples / s\n", "INFO:gensim.models.poincare:training on epoch 8, examples #9990-#10000, loss: 11.83\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.64 s, 3788.66 examples / s\n", "INFO:gensim.models.poincare:training on epoch 8, examples #19990-#20000, loss: 11.96\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.72 s, 3678.58 examples / s\n", "INFO:gensim.models.poincare:training on epoch 8, examples #29990-#30000, loss: 11.99\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.90 s, 3446.74 examples / s\n", "INFO:gensim.models.poincare:training on epoch 8, examples #39990-#40000, loss: 11.81\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.39 s, 4183.87 examples / s\n", "INFO:gensim.models.poincare:training on epoch 8, examples #49990-#50000, loss: 11.84\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.73 s, 3660.45 examples / s\n", "INFO:gensim.models.poincare:training on epoch 8, examples #59990-#60000, loss: 11.78\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.87 s, 3487.22 examples / s\n", "INFO:gensim.models.poincare:training on epoch 8, examples #69990-#70000, loss: 11.79\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.58 s, 3874.98 examples / s\n", "INFO:gensim.models.poincare:training on epoch 8, examples #79990-#80000, loss: 11.77\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 1.96 s, 5106.28 examples / s\n", "INFO:gensim.models.poincare:training on epoch 8, examples #89990-#90000, loss: 11.50\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.21 s, 4520.77 examples / s\n", "INFO:gensim.models.poincare:training on epoch 8, examples #99990-#100000, loss: 11.84\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.69 s, 3712.38 examples / s\n", "INFO:gensim.models.poincare:training on epoch 8, examples #109990-#110000, loss: 11.68\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.09 s, 4776.22 examples / s\n", "INFO:gensim.models.poincare:training on epoch 8, examples #119990-#120000, loss: 11.71\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 1.92 s, 5221.46 examples / s\n", "INFO:gensim.models.poincare:training on epoch 8, examples #129990-#130000, loss: 11.77\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 1.92 s, 5217.92 examples / s\n", "INFO:gensim.models.poincare:training on epoch 8, examples #139990-#140000, loss: 11.77\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 1.88 s, 5322.30 examples / s\n", "INFO:gensim.models.poincare:training on epoch 8, examples #149990-#150000, loss: 11.68\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 1.98 s, 5061.23 examples / s\n", "INFO:gensim.models.poincare:training on epoch 8, examples #159990-#160000, loss: 11.73\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 1.88 s, 5312.49 examples / s\n", "INFO:gensim.models.poincare:training on epoch 8, examples #169990-#170000, loss: 11.58\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 1.85 s, 5396.36 examples / s\n", "INFO:gensim.models.poincare:training on epoch 8, examples #179990-#180000, loss: 11.64\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 1.89 s, 5283.63 examples / s\n", "INFO:gensim.models.poincare:training on epoch 8, examples #189990-#190000, loss: 11.76\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 1.86 s, 5373.89 examples / s\n", "INFO:gensim.models.poincare:training on epoch 8, examples #199990-#200000, loss: 11.62\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 1.89 s, 5286.74 examples / s\n", "INFO:gensim.models.poincare:training on epoch 8, examples #209990-#210000, loss: 11.66\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 1.93 s, 5171.18 examples / s\n", "INFO:gensim.models.poincare:training on epoch 8, examples #219990-#220000, loss: 11.57\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 1.88 s, 5317.64 examples / s\n", "INFO:gensim.models.poincare:training on epoch 8, examples #229990-#230000, loss: 11.56\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 1.86 s, 5383.91 examples / s\n", "INFO:gensim.models.poincare:training on epoch 8, examples #239990-#240000, loss: 11.70\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 1.91 s, 5238.90 examples / s\n", "INFO:gensim.models.poincare:training on epoch 8, examples #249990-#250000, loss: 11.43\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 1.89 s, 5300.40 examples / s\n", "INFO:gensim.models.poincare:training on epoch 8, examples #259990-#260000, loss: 11.70\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 1.89 s, 5288.47 examples / s\n", "INFO:gensim.models.poincare:training on epoch 8, examples #269990-#270000, loss: 11.60\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 1.97 s, 5083.33 examples / s\n", "INFO:gensim.models.poincare:training on epoch 8, examples #279990-#280000, loss: 11.63\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 1.92 s, 5195.28 examples / s\n", "INFO:gensim.models.poincare:training on epoch 8, examples #289990-#290000, loss: 11.42\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.00 s, 4996.08 examples / s\n", "INFO:gensim.models.poincare:training on epoch 8, examples #299990-#300000, loss: 11.59\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.00 s, 5009.45 examples / s\n", "INFO:gensim.models.poincare:training on epoch 8, examples #309990-#310000, loss: 11.63\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 1.90 s, 5264.10 examples / s\n", "INFO:gensim.models.poincare:training on epoch 8, examples #319990-#320000, loss: 11.56\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 1.88 s, 5316.93 examples / s\n", "INFO:gensim.models.poincare:training on epoch 8, examples #329990-#330000, loss: 11.47\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 1.94 s, 5167.73 examples / s\n", "INFO:gensim.models.poincare:training on epoch 8, examples #339990-#340000, loss: 11.51\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 1.87 s, 5337.89 examples / s\n", "INFO:gensim.models.poincare:training on epoch 8, examples #349990-#350000, loss: 11.54\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 1.86 s, 5389.10 examples / s\n", "INFO:gensim.models.poincare:training on epoch 8, examples #359990-#360000, loss: 11.49\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 1.86 s, 5362.69 examples / s\n", "INFO:gensim.models.poincare:training on epoch 8, examples #369990-#370000, loss: 11.43\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.04 s, 4896.47 examples / s\n", "INFO:gensim.models.poincare:training on epoch 8, examples #379990-#380000, loss: 11.45\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.08 s, 4814.46 examples / s\n", "INFO:gensim.models.poincare:training on epoch 8, examples #389990-#390000, loss: 11.48\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.08 s, 4818.25 examples / s\n", "INFO:gensim.models.poincare:training on epoch 8, examples #399990-#400000, loss: 11.38\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 2.02 s, 4960.60 examples / s\n", "INFO:gensim.models.poincare:training on epoch 8, examples #409990-#410000, loss: 11.45\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 1.86 s, 5365.93 examples / s\n", "INFO:gensim.models.poincare:training on epoch 8, examples #419990-#420000, loss: 11.59\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 1.92 s, 5206.10 examples / s\n", "INFO:gensim.models.poincare:training on epoch 8, examples #429990-#430000, loss: 11.39\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 1.88 s, 5322.43 examples / s\n", "INFO:gensim.models.poincare:training on epoch 8, examples #439990-#440000, loss: 11.45\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 1.89 s, 5301.80 examples / s\n" ] }, { "name": "stderr", "output_type": "stream", "text": [ "INFO:gensim.models.poincare:training on epoch 8, examples #449990-#450000, loss: 11.45\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 1.91 s, 5242.85 examples / s\n", "INFO:gensim.models.poincare:training on epoch 8, examples #459990-#460000, loss: 11.30\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 1.94 s, 5149.58 examples / s\n", "INFO:gensim.models.poincare:training on epoch 8, examples #469990-#470000, loss: 11.45\n", "INFO:gensim.models.poincare:time taken for 10000 examples: 1.92 s, 5211.54 examples / s\n" ] } ], "source": [ "model_files['gensim'] = {}\n", "# Train models with default params\n", "model_name, files = train_model_with_params(default_params, wordnet_file, model_sizes, 'gensim_model', 'gensim')\n", "model_files['gensim'][model_name] = {}\n", "for dim, filepath in files.items():\n", " model_files['gensim'][model_name][dim] = filepath\n", "# Train models with non-default params\n", "for new_params in non_default_params_gensim:\n", " params = default_params.copy()\n", " params.update(new_params)\n", " model_name, files = train_model_with_params(params, wordnet_file, model_sizes, 'gensim_model', 'gensim')\n", " model_files['gensim'][model_name] = {}\n", " for dim, filepath in files.items():\n", " model_files['gensim'][model_name][dim] = filepath" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## 3. Loading the embeddings" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "def transform_cpp_embedding_to_kv(input_file, output_file, encoding='utf8'):\n", " \"\"\"Given a C++ embedding tsv filepath, converts it to a KeyedVector-supported file\"\"\"\n", " with smart_open(input_file, 'rb') as f:\n", " lines = [line.decode(encoding) for line in f]\n", " if not len(lines):\n", " raise ValueError(\"file is empty\")\n", " first_line = lines[0]\n", " parts = first_line.rstrip().split(\"\\t\")\n", " model_size = len(parts) - 1\n", " vocab_size = len(lines)\n", " with smart_open(output_file, 'w') as f:\n", " f.write('%d %d\\n' % (vocab_size, model_size))\n", " for line in lines:\n", " f.write(line.replace('\\t', ' '))\n", "\n", "def transform_numpy_embedding_to_kv(input_file, output_file, encoding='utf8'):\n", " \"\"\"Given a numpy poincare embedding pkl filepath, converts it to a KeyedVector-supported file\"\"\"\n", " np_embeddings = pickle.load(open(input_file, 'rb'))\n", " random_embedding = np_embeddings[list(np_embeddings.keys())[0]]\n", " \n", " model_size = random_embedding.shape[0]\n", " vocab_size = len(np_embeddings)\n", " with smart_open(output_file, 'w') as f:\n", " f.write('%d %d\\n' % (vocab_size, model_size))\n", " for key, vector in np_embeddings.items():\n", " vector_string = ' '.join('%.6f' % value for value in vector)\n", " f.write('%s %s\\n' % (key, vector_string))\n", "\n", "def load_poincare_cpp(input_filename):\n", " \"\"\"Load embedding trained via C++ Poincare model.\n", "\n", " Parameters\n", " ----------\n", " filepath : str\n", " Path to tsv file containing embedding.\n", "\n", " Returns\n", " -------\n", " PoincareKeyedVectors instance.\n", "\n", " \"\"\"\n", " keyed_vectors_filename = input_filename + '.kv'\n", " transform_cpp_embedding_to_kv(input_filename, keyed_vectors_filename)\n", " embedding = PoincareKeyedVectors.load_word2vec_format(keyed_vectors_filename)\n", " os.unlink(keyed_vectors_filename)\n", " return embedding\n", "\n", "def load_poincare_numpy(input_filename):\n", " \"\"\"Load embedding trained via Python numpy Poincare model.\n", "\n", " Parameters\n", " ----------\n", " filepath : str\n", " Path to pkl file containing embedding.\n", "\n", " Returns:\n", " PoincareKeyedVectors instance.\n", "\n", " \"\"\"\n", " keyed_vectors_filename = input_filename + '.kv'\n", " transform_numpy_embedding_to_kv(input_filename, keyed_vectors_filename)\n", " embedding = PoincareKeyedVectors.load_word2vec_format(keyed_vectors_filename)\n", " os.unlink(keyed_vectors_filename)\n", " return embedding\n", "\n", "def load_poincare_gensim(input_filename):\n", " \"\"\"Load embedding trained via Gensim PoincareModel.\n", "\n", " Parameters\n", " ----------\n", " filepath : str\n", " Path to model file.\n", "\n", " Returns:\n", " PoincareKeyedVectors instance.\n", "\n", " \"\"\"\n", " model = PoincareModel.load(input_filename)\n", " return model.kv\n", "\n", "def load_model(implementation, model_file):\n", " \"\"\"Convenience function over functions to load models from different implementations.\n", " \n", " Parameters\n", " ----------\n", " implementation : str\n", " Implementation used to create model file ('c++'/'numpy'/'gensim').\n", " model_file : str\n", " Path to model file.\n", " \n", " Returns\n", " -------\n", " PoincareKeyedVectors instance\n", " \n", " Notes\n", " -----\n", " Raises ValueError in case of invalid value for `implementation`\n", "\n", " \"\"\"\n", " if implementation == 'c++':\n", " return load_poincare_cpp(model_file)\n", " elif implementation == 'numpy':\n", " return load_poincare_numpy(model_file)\n", " elif implementation == 'gensim':\n", " return load_poincare_gensim(model_file)\n", " else:\n", " raise ValueError('Invalid implementation %s' % implementation)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## 4. Evaluation" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "def display_results(task_name, results):\n", " \"\"\"Display evaluation results of multiple embeddings on a single task in a tabular format\n", " \n", " Args:\n", " task_name (str): name the task being evaluated\n", " results (dict): mapping between embeddings and corresponding results\n", " \n", " \"\"\"\n", " result_table = PrettyTable()\n", " result_table.field_names = [\"Model Description\", \"Metric\"] + [str(dim) for dim in sorted(model_sizes)]\n", " for model_name, model_results in results.items():\n", " metrics = [metric for metric in model_results.keys()]\n", " dims = sorted([dim for dim in model_results[metrics[0]].keys()])\n", " description = model_description_from_name(model_name)\n", " row = [description, '\\n'.join(metrics) + '\\n']\n", " for dim in dims:\n", " scores = ['%.2f' % model_results[metric][dim] for metric in metrics]\n", " row.append('\\n'.join(scores))\n", " result_table.add_row(row)\n", " result_table.align = 'r'\n", " result_html = result_table.get_html_string()\n", " search = \"<table>\"\n", " insert_at = result_html.index(search) + len(search)\n", " new_row = \"\"\"\n", " <tr>\n", " <th colspan=\"1\" style=\"text-align:left\">%s</th>\n", " <th colspan=\"1\"></th>\n", " <th colspan=\"%d\" style=\"text-align:center\"> Dimensions</th>\n", " </tr>\"\"\" % (task_name, len(model_sizes))\n", " result_html = result_html[:insert_at] + new_row + result_html[insert_at:]\n", " display(HTML(result_html))\n", " \n", "def model_description_from_name(model_name):\n", " if model_name.startswith('gensim'):\n", " implementation = 'Gensim'\n", " elif model_name.startswith('cpp'):\n", " implementation = 'C++'\n", " elif model_name.startswith('np'):\n", " implementation = 'Numpy'\n", " else:\n", " raise ValueError('Unsupported implementation for model: %s' % model_name)\n", " description = []\n", " for param_key in sorted(default_params.keys()):\n", " pattern = '%s_([^_]*)_?' % param_key\n", " match = re.search(pattern, model_name)\n", " if match:\n", " description.append(\"%s=%s\" % (param_key, match.groups()[0]))\n", " return \"%s: %s\" % (implementation, \", \".join(description))" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### 4.1 WordNet reconstruction" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "For this task, embeddings are learnt using the entire transitive closure of the WordNet noun hypernym hierarchy. Subsequently, for every hypernym pair `(u, v)`, the rank of `v` amongst all nodes that do not have a positive edge with `v` is computed. The final metric `mean_rank` is the average of all these ranks. The `MAP` metric is the mean of the Average Precision of the rankings for all positive nodes for a given node `u`.\n", "\n", "Note that this task tests representation capacity of the learnt embeddings, and not the generalization ability." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "reconstruction_results = OrderedDict()\n", "metrics = ['mean_rank', 'MAP']" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "scrolled": true }, "outputs": [], "source": [ "for implementation, models in sorted(model_files.items()):\n", " for model_name, files in models.items():\n", " if model_name in reconstruction_results:\n", " continue\n", " reconstruction_results[model_name] = OrderedDict()\n", " for metric in metrics:\n", " reconstruction_results[model_name][metric] = {}\n", " for model_size, model_file in files.items():\n", " print('Evaluating model %s of size %d' % (model_name, model_size))\n", " embedding = load_model(implementation, model_file)\n", " eval_instance = ReconstructionEvaluation(wordnet_file, embedding)\n", " eval_result = eval_instance.evaluate(max_n=1000)\n", " for metric in metrics:\n", " reconstruction_results[model_name][metric][model_size] = eval_result[metric]" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "display_results('WordNet Reconstruction', reconstruction_results)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Results from the paper -\n", "![Reconstruction Results](https://raw.githubusercontent.com/RaRe-Technologies/gensim/poincare_model_keyedvectors/docs/notebooks/poincare/reconstruction_paper.png)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The figures above illustrate a few things - \n", "1. The gensim implementation does significantly better for all model sizes and hyperparameters than both the other implementations.\n", "2. The results from the original paper have not been achieved by our implementation. Especially for models with lower dimensions, the paper mentions significantly better mean rank and MAP for the reconstruction task.\n", "3. Using burn-in and regularization leads to much better results with low model sizes, however the results do not improve significantly with increasing model size. This might have to do with tuning the regularization coefficient, which the paper does not mention." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### 4.2 WordNet link prediction" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "This task is similar to the reconstruction task described above, except that the list of relations is split into a training and testing set, and the mean rank reported is for the edges in the test set.\n", "\n", "Therefore, this tests the ability of the model to predict unseen edges between nodes, i.e. generalization ability, as opposed to the representation capacity tested in the Reconstruction task" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "#### 4.2.1 Preparing data" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "def train_test_split(data_file, test_ratio=0.1):\n", " \"\"\"Creates train and test files from given data file, returns train/test file names\n", " \n", " Args:\n", " data_file (str): path to data file for which train/test split is to be created\n", " test_ratio (float): fraction of lines to be used for test data\n", " \n", " Returns\n", " (train_file, test_file): tuple of strings with train file and test file paths\n", " \"\"\"\n", " train_filename = data_file + '.train'\n", " test_filename = data_file + '.test'\n", " if os.path.exists(train_filename) and os.path.exists(test_filename):\n", " print('Train and test files already exist, skipping')\n", " return (train_filename, test_filename)\n", " root_nodes, leaf_nodes = get_root_and_leaf_nodes(data_file)\n", " test_line_candidates = []\n", " line_count = 0\n", " all_nodes = set()\n", " with smart_open(data_file, 'rb') as f:\n", " for i, line in enumerate(f):\n", " node_1, node_2 = line.split()\n", " all_nodes.update([node_1, node_2])\n", " if (\n", " node_1 not in leaf_nodes\n", " and node_2 not in leaf_nodes\n", " and node_1 not in root_nodes\n", " and node_2 not in root_nodes\n", " and node_1 != node_2\n", " ):\n", " test_line_candidates.append(i)\n", " line_count += 1\n", "\n", " num_test_lines = int(test_ratio * line_count)\n", " if num_test_lines > len(test_line_candidates):\n", " raise ValueError('Not enough candidate relations for test set')\n", " print('Choosing %d test lines from %d candidates' % (num_test_lines, len(test_line_candidates)))\n", " test_line_indices = set(random.sample(test_line_candidates, num_test_lines))\n", " train_line_indices = set(l for l in range(line_count) if l not in test_line_indices)\n", " \n", " train_set_nodes = set()\n", " with smart_open(data_file, 'rb') as f:\n", " train_file = smart_open(train_filename, 'wb')\n", " test_file = smart_open(test_filename, 'wb')\n", " for i, line in enumerate(f):\n", " if i in train_line_indices:\n", " train_set_nodes.update(line.split())\n", " train_file.write(line)\n", " elif i in test_line_indices:\n", " test_file.write(line)\n", " else:\n", " raise AssertionError('Line %d not present in either train or test line indices' % i)\n", " train_file.close()\n", " test_file.close()\n", " assert len(train_set_nodes) == len(all_nodes), 'Not all nodes from dataset present in train set relations'\n", " return (train_filename, test_filename)" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "def get_root_and_leaf_nodes(data_file):\n", " \"\"\"Return keys of root and leaf nodes from a file with transitive closure relations\n", " \n", " Args:\n", " data_file(str): file path containing transitive closure relations\n", " \n", " Returns:\n", " (root_nodes, leaf_nodes) - tuple containing keys of root and leaf nodes\n", " \"\"\"\n", " root_candidates = set()\n", " leaf_candidates = set()\n", " with smart_open(data_file, 'rb') as f:\n", " for line in f:\n", " nodes = line.split()\n", " root_candidates.update(nodes)\n", " leaf_candidates.update(nodes)\n", " \n", " with smart_open(data_file, 'rb') as f:\n", " for line in f:\n", " node_1, node_2 = line.split()\n", " if node_1 == node_2:\n", " continue\n", " leaf_candidates.discard(node_1)\n", " root_candidates.discard(node_2)\n", " \n", " return (leaf_candidates, root_candidates)" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "wordnet_train_file, wordnet_test_file = train_test_split(wordnet_file)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "#### 4.2.2 Training models" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# Training models for link prediction\n", "lp_model_files = {}" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "lp_model_files['c++'] = {}\n", "# Train c++ models with default params\n", "model_name, files = train_model_with_params(default_params, wordnet_train_file, model_sizes, 'cpp_lp_model', 'c++')\n", "lp_model_files['c++'][model_name] = {}\n", "for dim, filepath in files.items():\n", " lp_model_files['c++'][model_name][dim] = filepath\n", "# Train c++ models with non-default params\n", "for param, values in non_default_params.items():\n", " params = default_params.copy()\n", " for value in values:\n", " params[param] = value\n", " model_name, files = train_model_with_params(params, wordnet_train_file, model_sizes, 'cpp_lp_model', 'c++')\n", " lp_model_files['c++'][model_name] = {}\n", " for dim, filepath in files.items():\n", " lp_model_files['c++'][model_name][dim] = filepath" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "lp_model_files['numpy'] = {}\n", "# Train numpy models with default params\n", "model_name, files = train_model_with_params(default_params, wordnet_train_file, model_sizes, 'np_lp_model', 'numpy')\n", "lp_model_files['numpy'][model_name] = {}\n", "for dim, filepath in files.items():\n", " lp_model_files['numpy'][model_name][dim] = filepath" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "lp_model_files['gensim'] = {}\n", "# Train models with default params\n", "model_name, files = train_model_with_params(default_params, wordnet_train_file, model_sizes, 'gensim_lp_model', 'gensim')\n", "lp_model_files['gensim'][model_name] = {}\n", "for dim, filepath in files.items():\n", " lp_model_files['gensim'][model_name][dim] = filepath\n", "# Train models with non-default params\n", "for new_params in non_default_params_gensim:\n", " params = default_params.copy()\n", " params.update(new_params)\n", " model_name, files = train_model_with_params(params, wordnet_file, model_sizes, 'gensim_lp_model', 'gensim')\n", " lp_model_files['gensim'][model_name] = {}\n", " for dim, filepath in files.items():\n", " lp_model_files['gensim'][model_name][dim] = filepath" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "#### 4.2.3 Evaluating models" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "lp_results = OrderedDict()\n", "metrics = ['mean_rank', 'MAP']" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "for implementation, models in sorted(lp_model_files.items()):\n", " for model_name, files in models.items():\n", " lp_results[model_name] = OrderedDict()\n", " for metric in metrics:\n", " lp_results[model_name][metric] = {}\n", " for model_size, model_file in files.items():\n", " print('Evaluating model %s of size %d' % (model_name, model_size))\n", " embedding = load_model(implementation, model_file)\n", " eval_instance = LinkPredictionEvaluation(wordnet_train_file, wordnet_test_file, embedding)\n", " eval_result = eval_instance.evaluate(max_n=1000)\n", " for metric in metrics:\n", " lp_results[model_name][metric][model_size] = eval_result[metric]" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "display_results('WordNet Link Prediction', lp_results)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Results from the paper -\n", "![Link Prediction Paper](https://raw.githubusercontent.com/RaRe-Technologies/gensim/poincare_model_keyedvectors/docs/notebooks/poincare/link_prediction_paper.png)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "These results follow similar trends as the reconstruction results. Repeating here for ease of reading - \n", "1. The gensim implementation does significantly better for all model sizes and hyperparameters than both the other implementations.\n", "2. The results from the original paper have not been achieved by our implementation. Especially for models with lower dimensions, the paper mentions significantly better mean rank and MAP for the link prediction task.\n", "4. Using burn-in and regularization leads to better results with low model sizes, however the results do not improve significantly with increasing model size.\n", "\n", "The main difference from the reconstruction results is that mean ranks for link prediction are slightly worse most of the time than the corresponding reconstruction results. This is to be expected, as link prediction is performed on a held-out test set." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### 4.3 HyperLex Lexical Entailment" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The Lexical Entailment task is performed using the HyperLex dataset, a collection of 2163 noun pairs and scores that denote \"To what degree is noun A a type of noun Y\". For example - \n", " \n", "`girl person 9.85`\n", "\n", "These scores are out of 10.\n", "\n", "The [spearman's correlation score](https://en.wikipedia.org/wiki/Spearman%27s_rank_correlation_coefficient) is computed for the predicted and actual similarity scores, with the models trained on the entire WordNet noun hierarchy.\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "entailment_results = OrderedDict()\n", "eval_instance = LexicalEntailmentEvaluation(hyperlex_file)" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "scrolled": true }, "outputs": [], "source": [ "for implementation, models in sorted(model_files.items()):\n", " for model_name, files in models.items():\n", " if model_name in entailment_results:\n", " continue\n", " entailment_results[model_name] = OrderedDict()\n", " entailment_results[model_name]['spearman'] = {}\n", " for model_size, model_file in files.items():\n", " print('Evaluating model %s of size %d' % (model_name, model_size))\n", " embedding = load_model(implementation, model_file)\n", " entailment_results[model_name]['spearman'][model_size] = eval_instance.evaluate_spearman(embedding)" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "display_results('Lexical Entailment (HyperLex)', entailment_results)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Results from paper (for Poincaré Embeddings, as well as other embeddings from previous papers) - \n", "![LE Results](https://raw.githubusercontent.com/RaRe-Technologies/gensim/poincare_model_keyedvectors/docs/notebooks/poincare/entailment_paper.png)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Some observations - \n", "1. We achieve a max spearman score of 0.48, fairly close to the spearman score of 0.512 mentioned in the paper.\n", "2. The best results are obtained with 20 negative examples, a batch size of 10, and no burn-in, however the differences are too low to make a meaningful conclusion.\n", "\n", "However, there are a few ambiguities and caveats - \n", "1. The paper does not mention which hyperparameters and model size have been used for the above mentioned result. Hence it is possible that the results are achieved with a significantly lower model size than the one we use, which would imply that our implementation still has some way to go.\n", "2. The same word can have multiple nodes in the WordNet dataset for different senses of the word, and it is unclear in the paper how to decide which node to pick. For the above results, we have gone with the sane default of picking the particular sense that has the maximum similarity score with the target word.\n", "3. Certain words in the HyperLex dataset seem to be absent from the WordNet data - the paper does not mention any such thing. Pairs containing missing words have been omitted from the evaluation (182/2163).\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### 4.4 Link Prediction on Collaboration Networks\n", "\n", "The paper also describes a variant of the Poincaré model to learn embeddings of nodes in a symmetric graph, unlike the WordNet noun hierarchy, which is directed and asymmetric. The datasets used in the paper for this model are scientific collaboration networks, in which the nodes are researchers and an edge represents that the two researchers have co-authored a paper.\n", "\n", "This variant has not been implemented yet, and is therefore not a part of our experiments." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## 5. Next Steps" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "1. The model can be investigated further to understand why it doesn't produce results as good as the paper. It is possible that this might be due to training details not present in the paper, or due to us incorrectly interpreting some ambiguous parts of the paper. We have not been able to clarify all such ambiguities in communication with the authors.\n", "2. Optimizing the training process further - with a model size of 50 dimensions and a dataset with ~700k relations and ~80k nodes, the Gensim implementation takes around 45 seconds to complete an epoch (~15k relations per second), whereas the open source C++ implementation takes around 1/6th the time (~95k relations per second).\n", "3. Implementing the variant of the model mentioned in the paper for symmetric graphs and evaluating on the scientific collaboration datasets described earlier in the report." ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.7.1" } }, "nbformat": 4, "nbformat_minor": 2 }
169,348
Python
.py
2,654
58.102864
437
0.666603
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,920
WordRank_wrapper_quickstart.ipynb
piskvorky_gensim/docs/notebooks/WordRank_wrapper_quickstart.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": { "collapsed": true }, "source": [ "# WordRank wrapper tutorial on Lee Corpus\n", "\n", "WordRank is a new word embedding algorithm which captures the semantic similarities in a text data well. See this [notebook](Wordrank_comparisons.ipynb) for it's comparisons to other popular embedding models. This tutorial will serve as a guide to use the WordRank wrapper in gensim. You need to install [WordRank](https://bitbucket.org/shihaoji/wordrank) before proceeding with this tutorial.\n", "\n", "\n", "# Train model\n", "\n", "We'll use [Lee corpus](https://github.com/RaRe-Technologies/gensim/blob/develop/gensim/test/test_data/lee.cor) for training which is already available in gensim. Now for Wordrank, two parameters `dump_period` and `iter` needs to be in sync as it dumps the embedding file with the start of next iteration. For example, if you want results after 10 iterations, you need to use `iter=11` and `dump_period` can be anything that gives mod 0 with resulting iteration, in this case 2 or 5.\n" ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [ { "ename": "FileNotFoundError", "evalue": "[Errno 2] No such file or directory: 'wordrank/glove/vocab_count': 'wordrank/glove/vocab_count'", "output_type": "error", "traceback": [ "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", "\u001b[0;31mFileNotFoundError\u001b[0m Traceback (most recent call last)", "\u001b[0;32m<ipython-input-1-a9079683a958>\u001b[0m in \u001b[0;36m<module>\u001b[0;34m\u001b[0m\n\u001b[1;32m 5\u001b[0m \u001b[0mdata\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;34m'../../gensim/test/test_data/lee.cor'\u001b[0m \u001b[0;31m# sample corpus\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 6\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m----> 7\u001b[0;31m \u001b[0mmodel\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mWordrank\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mtrain\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mwr_path\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mdata\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mout_dir\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0miter\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;36m11\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mdump_period\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;36m5\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m", "\u001b[0;32m~/git/gensim/gensim/models/wrappers/wordrank.py\u001b[0m in \u001b[0;36mtrain\u001b[0;34m(cls, wr_path, corpus_file, out_name, size, window, symmetric, min_count, max_vocab_size, sgd_num, lrate, period, iter, epsilon, dump_period, reg, alpha, beta, loss, memory, np, cleanup_files, sorted_vocab, ensemble)\u001b[0m\n\u001b[1;32m 177\u001b[0m \u001b[0;32mwith\u001b[0m \u001b[0msmart_open\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0minput_fname\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m'rb'\u001b[0m\u001b[0;34m)\u001b[0m \u001b[0;32mas\u001b[0m \u001b[0mr\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 178\u001b[0m \u001b[0;32mwith\u001b[0m \u001b[0msmart_open\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0moutput_fname\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m'wb'\u001b[0m\u001b[0;34m)\u001b[0m \u001b[0;32mas\u001b[0m \u001b[0mw\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 179\u001b[0;31m \u001b[0mutils\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mcheck_output\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mw\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0margs\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mcommand\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mstdin\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mr\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 180\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 181\u001b[0m \u001b[0mlogger\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0minfo\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m\"Deleting frequencies from vocab file\"\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", "\u001b[0;32m~/git/gensim/gensim/utils.py\u001b[0m in \u001b[0;36mcheck_output\u001b[0;34m(stdout, *popenargs, **kwargs)\u001b[0m\n\u001b[1;32m 1907\u001b[0m \u001b[0;32mtry\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1908\u001b[0m \u001b[0mlogger\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mdebug\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m\"COMMAND: %s %s\"\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mpopenargs\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mkwargs\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m-> 1909\u001b[0;31m \u001b[0mprocess\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0msubprocess\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mPopen\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mstdout\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mstdout\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m*\u001b[0m\u001b[0mpopenargs\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m**\u001b[0m\u001b[0mkwargs\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 1910\u001b[0m \u001b[0moutput\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0munused_err\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mprocess\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mcommunicate\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1911\u001b[0m \u001b[0mretcode\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mprocess\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mpoll\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", "\u001b[0;32m/usr/lib/python3.7/subprocess.py\u001b[0m in \u001b[0;36m__init__\u001b[0;34m(self, args, bufsize, executable, stdin, stdout, stderr, preexec_fn, close_fds, shell, cwd, env, universal_newlines, startupinfo, creationflags, restore_signals, start_new_session, pass_fds, encoding, errors, text)\u001b[0m\n\u001b[1;32m 773\u001b[0m \u001b[0mc2pread\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mc2pwrite\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 774\u001b[0m \u001b[0merrread\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0merrwrite\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 775\u001b[0;31m restore_signals, start_new_session)\n\u001b[0m\u001b[1;32m 776\u001b[0m \u001b[0;32mexcept\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 777\u001b[0m \u001b[0;31m# Cleanup if the child failed starting.\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", "\u001b[0;32m/usr/lib/python3.7/subprocess.py\u001b[0m in \u001b[0;36m_execute_child\u001b[0;34m(self, args, executable, preexec_fn, close_fds, pass_fds, cwd, env, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, restore_signals, start_new_session)\u001b[0m\n\u001b[1;32m 1520\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0merrno_num\u001b[0m \u001b[0;34m==\u001b[0m \u001b[0merrno\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mENOENT\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1521\u001b[0m \u001b[0merr_msg\u001b[0m \u001b[0;34m+=\u001b[0m \u001b[0;34m': '\u001b[0m \u001b[0;34m+\u001b[0m \u001b[0mrepr\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0merr_filename\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m-> 1522\u001b[0;31m \u001b[0;32mraise\u001b[0m \u001b[0mchild_exception_type\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0merrno_num\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0merr_msg\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0merr_filename\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 1523\u001b[0m \u001b[0;32mraise\u001b[0m \u001b[0mchild_exception_type\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0merr_msg\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1524\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n", "\u001b[0;31mFileNotFoundError\u001b[0m: [Errno 2] No such file or directory: 'wordrank/glove/vocab_count': 'wordrank/glove/vocab_count'" ] } ], "source": [ "from gensim.models.wrappers import Wordrank\n", "\n", "wr_path = 'wordrank' # path to Wordrank directory\n", "out_dir = 'model' # name of output directory to save data to\n", "data = '../../gensim/test/test_data/lee.cor' # sample corpus\n", "\n", "model = Wordrank.train(wr_path, data, out_dir, iter=11, dump_period=5)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Now, you can use any of the Keyed Vector function in gensim, on this model for further tasks. For example," ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "model.most_similar('President')" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "model.similarity('President', 'military')" ] }, { "cell_type": "markdown", "metadata": { "collapsed": true }, "source": [ "As Wordrank provides two sets of embeddings, the word and context embedding, you can obtain their addition by setting ensemble parameter to 1 in the train method.\n", "\n", "# Save and Load models\n", "In case, you have trained the model yourself using demo scripts in Wordrank, you can then simply load the embedding files in gensim. \n", "\n", "Also, Wordrank doesn't return the embeddings sorted according to the word frequency in corpus, so you can use the sorted_vocab parameter in the load method. But for that, you need to provide the vocabulary file generated in the 'matrix.toy' directory(if you used default names in demo) where all the metadata is stored." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "wr_word_embedding = 'wordrank.words'\n", "vocab_file = 'vocab.txt'\n", "\n", "model = Wordrank.load_wordrank_model(wr_word_embedding, vocab_file, sorted_vocab=1)" ] }, { "cell_type": "markdown", "metadata": { "collapsed": true }, "source": [ "If you want to load the ensemble embedding, you similarly need to provide the context embedding file and set ensemble to 1 in `load_wordrank_model` method." ] }, { "cell_type": "code", "execution_count": null, "metadata": { "scrolled": true }, "outputs": [], "source": [ "wr_context_file = 'wordrank.contexts'\n", "model = Wordrank.load_wordrank_model(wr_word_embedding, vocab_file, wr_context_file, sorted_vocab=1, ensemble=1)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "You can save these sorted embeddings using the standard gensim methods." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "from tempfile import mkstemp\n", "\n", "fs, temp_path = mkstemp(\"gensim_temp\") # creates a temp file\n", "model.save(temp_path) # save the model" ] }, { "cell_type": "markdown", "metadata": { "collapsed": true }, "source": [ "# Evaluating models\n", "Now that the embeddings are loaded in Word2Vec format and sorted according to the word frequencies in corpus, you can use the evaluations provided by gensim on this model.\n", "\n", "For example, it can be evaluated on following Word Analogies and Word Similarity benchmarks. " ] }, { "cell_type": "code", "execution_count": null, "metadata": { "scrolled": true }, "outputs": [], "source": [ "word_analogies_file = 'datasets/questions-words.txt'\n", "model.accuracy(word_analogies_file)" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "word_similarity_file = 'datasets/ws-353.txt'\n", "model.evaluate_word_pairs(word_similarity_file)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "These methods take an [optional parameter](https://radimrehurek.com/gensim/models/word2vec.html#gensim.models.word2vec.Word2Vec.accuracy) restrict_vocab which limits which test examples are to be considered.\n", "\n", "The results here don't look good because the training corpus is very small. To get meaningful results one needs to train on 500k+ words.\n", "\n", "# Conclusion\n", "We learned to use Wordrank wrapper on a sample corpus and also how to directly load the Wordrank embedding files in gensim. Once loaded, you can use the standard gensim methods on this embedding." ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.7.1" } }, "nbformat": 4, "nbformat_minor": 2 }
13,859
Python
.py
209
62.110048
1,767
0.678828
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,921
downloader_api_tutorial.ipynb
piskvorky_gensim/docs/notebooks/downloader_api_tutorial.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Tutorial for using Gensim's API for downloading corpuses/models\n", "Let's start by importing the api module." ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "import logging\n", "import gensim.downloader as api\n", "\n", "logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Now, lets download the text8 corpus and load it to memory (automatically)" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "[==================================================] 100.0% 31.6/31.6MB downloaded\n" ] }, { "name": "stderr", "output_type": "stream", "text": [ "2017-11-10 14:49:45,787 : INFO : text8 downloaded\n" ] } ], "source": [ "corpus = api.load('text8')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "As the corpus has been downloaded and loaded, let's create a word2vec model of our corpus." ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "2017-11-10 14:50:02,458 : INFO : collecting all words and their counts\n", "2017-11-10 14:50:02,461 : INFO : PROGRESS: at sentence #0, processed 0 words, keeping 0 word types\n", "2017-11-10 14:50:08,402 : INFO : collected 253854 word types from a corpus of 17005207 raw words and 1701 sentences\n", "2017-11-10 14:50:08,403 : INFO : Loading a fresh vocabulary\n", "2017-11-10 14:50:08,693 : INFO : min_count=5 retains 71290 unique words (28% of original 253854, drops 182564)\n", "2017-11-10 14:50:08,694 : INFO : min_count=5 leaves 16718844 word corpus (98% of original 17005207, drops 286363)\n", "2017-11-10 14:50:08,870 : INFO : deleting the raw counts dictionary of 253854 items\n", "2017-11-10 14:50:08,898 : INFO : sample=0.001 downsamples 38 most-common words\n", "2017-11-10 14:50:08,899 : INFO : downsampling leaves estimated 12506280 word corpus (74.8% of prior 16718844)\n", "2017-11-10 14:50:08,900 : INFO : estimated required memory for 71290 words and 100 dimensions: 92677000 bytes\n", "2017-11-10 14:50:09,115 : INFO : resetting layer weights\n", "2017-11-10 14:50:09,703 : INFO : training model with 3 workers on 71290 vocabulary and 100 features, using sg=0 hs=0 sample=0.001 negative=5 window=5\n", "2017-11-10 14:50:10,718 : INFO : PROGRESS: at 1.66% examples, 1020519 words/s, in_qsize 5, out_qsize 0\n", "2017-11-10 14:50:11,715 : INFO : PROGRESS: at 3.29% examples, 1017921 words/s, in_qsize 0, out_qsize 0\n", "2017-11-10 14:50:12,715 : INFO : PROGRESS: at 4.71% examples, 976739 words/s, in_qsize 4, out_qsize 0\n", "2017-11-10 14:50:13,729 : INFO : PROGRESS: at 6.35% examples, 989118 words/s, in_qsize 4, out_qsize 1\n", "2017-11-10 14:50:14,729 : INFO : PROGRESS: at 8.02% examples, 999982 words/s, in_qsize 0, out_qsize 0\n", "2017-11-10 14:50:15,734 : INFO : PROGRESS: at 9.65% examples, 1003821 words/s, in_qsize 1, out_qsize 1\n", "2017-11-10 14:50:16,740 : INFO : PROGRESS: at 11.41% examples, 1017517 words/s, in_qsize 0, out_qsize 0\n", "2017-11-10 14:50:17,738 : INFO : PROGRESS: at 13.17% examples, 1027943 words/s, in_qsize 0, out_qsize 0\n", "2017-11-10 14:50:18,740 : INFO : PROGRESS: at 14.80% examples, 1027654 words/s, in_qsize 4, out_qsize 0\n", "2017-11-10 14:50:19,744 : INFO : PROGRESS: at 16.53% examples, 1030328 words/s, in_qsize 0, out_qsize 0\n", "2017-11-10 14:50:20,747 : INFO : PROGRESS: at 18.21% examples, 1032126 words/s, in_qsize 0, out_qsize 1\n", "2017-11-10 14:50:21,750 : INFO : PROGRESS: at 19.85% examples, 1030455 words/s, in_qsize 0, out_qsize 0\n", "2017-11-10 14:50:22,755 : INFO : PROGRESS: at 21.54% examples, 1031582 words/s, in_qsize 0, out_qsize 0\n", "2017-11-10 14:50:23,760 : INFO : PROGRESS: at 23.20% examples, 1031237 words/s, in_qsize 0, out_qsize 0\n", "2017-11-10 14:50:24,764 : INFO : PROGRESS: at 24.84% examples, 1031195 words/s, in_qsize 0, out_qsize 0\n", "2017-11-10 14:50:25,769 : INFO : PROGRESS: at 26.56% examples, 1034213 words/s, in_qsize 0, out_qsize 0\n", "2017-11-10 14:50:26,771 : INFO : PROGRESS: at 28.14% examples, 1031534 words/s, in_qsize 0, out_qsize 0\n", "2017-11-10 14:50:27,777 : INFO : PROGRESS: at 29.82% examples, 1032589 words/s, in_qsize 0, out_qsize 0\n", "2017-11-10 14:50:28,780 : INFO : PROGRESS: at 31.42% examples, 1030998 words/s, in_qsize 1, out_qsize 0\n", "2017-11-10 14:50:29,783 : INFO : PROGRESS: at 33.15% examples, 1033447 words/s, in_qsize 0, out_qsize 0\n", "2017-11-10 14:50:30,783 : INFO : PROGRESS: at 34.85% examples, 1035303 words/s, in_qsize 0, out_qsize 0\n", "2017-11-10 14:50:31,789 : INFO : PROGRESS: at 36.50% examples, 1033770 words/s, in_qsize 0, out_qsize 0\n", "2017-11-10 14:50:32,795 : INFO : PROGRESS: at 38.17% examples, 1034073 words/s, in_qsize 0, out_qsize 0\n", "2017-11-10 14:50:33,798 : INFO : PROGRESS: at 39.81% examples, 1033387 words/s, in_qsize 2, out_qsize 0\n", "2017-11-10 14:50:34,800 : INFO : PROGRESS: at 41.33% examples, 1029575 words/s, in_qsize 0, out_qsize 0\n", "2017-11-10 14:50:35,801 : INFO : PROGRESS: at 43.03% examples, 1030736 words/s, in_qsize 0, out_qsize 0\n", "2017-11-10 14:50:36,801 : INFO : PROGRESS: at 44.70% examples, 1031367 words/s, in_qsize 0, out_qsize 1\n", "2017-11-10 14:50:37,802 : INFO : PROGRESS: at 46.41% examples, 1032986 words/s, in_qsize 0, out_qsize 0\n", "2017-11-10 14:50:38,805 : INFO : PROGRESS: at 48.09% examples, 1033731 words/s, in_qsize 0, out_qsize 0\n", "2017-11-10 14:50:39,807 : INFO : PROGRESS: at 49.82% examples, 1035440 words/s, in_qsize 0, out_qsize 0\n", "2017-11-10 14:50:40,817 : INFO : PROGRESS: at 51.49% examples, 1035681 words/s, in_qsize 3, out_qsize 0\n", "2017-11-10 14:50:41,811 : INFO : PROGRESS: at 53.16% examples, 1036024 words/s, in_qsize 0, out_qsize 0\n", "2017-11-10 14:50:42,817 : INFO : PROGRESS: at 54.86% examples, 1036910 words/s, in_qsize 0, out_qsize 0\n", "2017-11-10 14:50:43,820 : INFO : PROGRESS: at 56.51% examples, 1035966 words/s, in_qsize 0, out_qsize 0\n", "2017-11-10 14:50:44,822 : INFO : PROGRESS: at 58.07% examples, 1034360 words/s, in_qsize 0, out_qsize 0\n", "2017-11-10 14:50:45,822 : INFO : PROGRESS: at 59.54% examples, 1030906 words/s, in_qsize 0, out_qsize 0\n", "2017-11-10 14:50:46,823 : INFO : PROGRESS: at 61.12% examples, 1029543 words/s, in_qsize 0, out_qsize 0\n", "2017-11-10 14:50:47,827 : INFO : PROGRESS: at 62.77% examples, 1029390 words/s, in_qsize 0, out_qsize 0\n", "2017-11-10 14:50:48,833 : INFO : PROGRESS: at 64.50% examples, 1030528 words/s, in_qsize 0, out_qsize 0\n", "2017-11-10 14:50:49,833 : INFO : PROGRESS: at 66.15% examples, 1030820 words/s, in_qsize 0, out_qsize 0\n", "2017-11-10 14:50:50,836 : INFO : PROGRESS: at 67.83% examples, 1031459 words/s, in_qsize 0, out_qsize 0\n", "2017-11-10 14:50:51,850 : INFO : PROGRESS: at 69.47% examples, 1030985 words/s, in_qsize 0, out_qsize 0\n", "2017-11-10 14:50:52,857 : INFO : PROGRESS: at 71.18% examples, 1031954 words/s, in_qsize 0, out_qsize 0\n", "2017-11-10 14:50:53,862 : INFO : PROGRESS: at 72.83% examples, 1031823 words/s, in_qsize 0, out_qsize 0\n", "2017-11-10 14:50:54,864 : INFO : PROGRESS: at 74.46% examples, 1031628 words/s, in_qsize 0, out_qsize 0\n", "2017-11-10 14:50:55,866 : INFO : PROGRESS: at 76.17% examples, 1031962 words/s, in_qsize 0, out_qsize 0\n", "2017-11-10 14:50:56,870 : INFO : PROGRESS: at 77.77% examples, 1031167 words/s, in_qsize 0, out_qsize 0\n", "2017-11-10 14:50:57,875 : INFO : PROGRESS: at 79.37% examples, 1030337 words/s, in_qsize 0, out_qsize 0\n", "2017-11-10 14:50:58,880 : INFO : PROGRESS: at 80.99% examples, 1029831 words/s, in_qsize 0, out_qsize 0\n", "2017-11-10 14:50:59,881 : INFO : PROGRESS: at 82.67% examples, 1030029 words/s, in_qsize 0, out_qsize 0\n", "2017-11-10 14:51:00,881 : INFO : PROGRESS: at 84.39% examples, 1030874 words/s, in_qsize 0, out_qsize 0\n", "2017-11-10 14:51:01,886 : INFO : PROGRESS: at 86.03% examples, 1030988 words/s, in_qsize 2, out_qsize 0\n", "2017-11-10 14:51:02,892 : INFO : PROGRESS: at 87.72% examples, 1031570 words/s, in_qsize 0, out_qsize 0\n", "2017-11-10 14:51:03,895 : INFO : PROGRESS: at 89.41% examples, 1031964 words/s, in_qsize 0, out_qsize 0\n", "2017-11-10 14:51:04,902 : INFO : PROGRESS: at 91.09% examples, 1032271 words/s, in_qsize 0, out_qsize 0\n", "2017-11-10 14:51:05,910 : INFO : PROGRESS: at 92.53% examples, 1029888 words/s, in_qsize 0, out_qsize 0\n", "2017-11-10 14:51:06,912 : INFO : PROGRESS: at 94.03% examples, 1028192 words/s, in_qsize 0, out_qsize 0\n", "2017-11-10 14:51:07,916 : INFO : PROGRESS: at 95.74% examples, 1028660 words/s, in_qsize 0, out_qsize 0\n", "2017-11-10 14:51:08,919 : INFO : PROGRESS: at 97.47% examples, 1029434 words/s, in_qsize 0, out_qsize 0\n", "2017-11-10 14:51:09,923 : INFO : PROGRESS: at 99.18% examples, 1029952 words/s, in_qsize 0, out_qsize 0\n", "2017-11-10 14:51:10,409 : INFO : worker thread finished; awaiting finish of 2 more threads\n", "2017-11-10 14:51:10,409 : INFO : worker thread finished; awaiting finish of 1 more threads\n", "2017-11-10 14:51:10,415 : INFO : worker thread finished; awaiting finish of 0 more threads\n", "2017-11-10 14:51:10,416 : INFO : training on 85026035 raw words (62530433 effective words) took 60.7s, 1029968 effective words/s\n" ] } ], "source": [ "from gensim.models.word2vec import Word2Vec\n", "\n", "model = Word2Vec(corpus)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Now that we have our word2vec model, let's find words that are similar to 'tree'" ] }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "2017-11-10 14:51:10,422 : INFO : precomputing L2-norms of word weight vectors\n" ] }, { "data": { "text/plain": [ "[(u'trees', 0.7245415449142456),\n", " (u'leaf', 0.6882676482200623),\n", " (u'bark', 0.645646333694458),\n", " (u'avl', 0.6076173782348633),\n", " (u'cactus', 0.6019535064697266),\n", " (u'flower', 0.6010029315948486),\n", " (u'fruit', 0.5908031463623047),\n", " (u'bird', 0.5886812806129456),\n", " (u'leaves', 0.5771278142929077),\n", " (u'pond', 0.5627825856208801)]" ] }, "execution_count": 4, "metadata": {}, "output_type": "execute_result" } ], "source": [ "model.most_similar('tree')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "You can use the API to download many corpora and models. You can get the list of all the models and corpora that are provided, by using the code below:" ] }, { "cell_type": "code", "execution_count": 5, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "{\n", " \"models\": {\n", " \"glove-twitter-25\": {\n", " \"description\": \"Pre-trained vectors, 2B tweets, 27B tokens, 1.2M vocab, uncased. https://nlp.stanford.edu/projects/glove/\", \n", " \"parameters\": \"dimensions = 25\", \n", " \"file_name\": \"glove-twitter-25.gz\", \n", " \"papers\": \"https://nlp.stanford.edu/pubs/glove.pdf\", \n", " \"parts\": 1, \n", " \"preprocessing\": \"Converted to w2v format with `python -m gensim.scripts.glove2word2vec -i <fname> -o glove-twitter-25.txt`\", \n", " \"checksum\": \"50db0211d7e7a2dcd362c6b774762793\"\n", " }, \n", " \"glove-twitter-100\": {\n", " \"description\": \"Pre-trained vectors, 2B tweets, 27B tokens, 1.2M vocab, uncased. https://nlp.stanford.edu/projects/glove/\", \n", " \"parameters\": \"dimensions = 100\", \n", " \"file_name\": \"glove-twitter-100.gz\", \n", " \"papers\": \"https://nlp.stanford.edu/pubs/glove.pdf\", \n", " \"parts\": 1, \n", " \"preprocessing\": \"Converted to w2v format with `python -m gensim.scripts.glove2word2vec -i <fname> -o glove-twitter-100.txt`\", \n", " \"checksum\": \"b04f7bed38756d64cf55b58ce7e97b15\"\n", " }, \n", " \"glove-wiki-gigaword-100\": {\n", " \"description\": \"Pre-trained vectors ,Wikipedia 2014 + Gigaword 5,6B tokens, 400K vocab, uncased. https://nlp.stanford.edu/projects/glove/\", \n", " \"parameters\": \"dimensions = 100\", \n", " \"file_name\": \"glove-wiki-gigaword-100.gz\", \n", " \"papers\": \"https://nlp.stanford.edu/pubs/glove.pdf\", \n", " \"parts\": 1, \n", " \"preprocessing\": \"Converted to w2v format with `python -m gensim.scripts.glove2word2vec -i <fname> -o glove-wiki-gigaword-100.txt`\", \n", " \"checksum\": \"40ec481866001177b8cd4cb0df92924f\"\n", " }, \n", " \"glove-twitter-200\": {\n", " \"description\": \"Pre-trained vectors, 2B tweets, 27B tokens, 1.2M vocab, uncased. https://nlp.stanford.edu/projects/glove/\", \n", " \"parameters\": \"dimensions = 200\", \n", " \"file_name\": \"glove-twitter-200.gz\", \n", " \"papers\": \"https://nlp.stanford.edu/pubs/glove.pdf\", \n", " \"parts\": 1, \n", " \"preprocessing\": \"Converted to w2v format with `python -m gensim.scripts.glove2word2vec -i <fname> -o glove-twitter-200.txt`\", \n", " \"checksum\": \"e52e8392d1860b95d5308a525817d8f9\"\n", " }, \n", " \"glove-wiki-gigaword-50\": {\n", " \"description\": \"Pre-trained vectors ,Wikipedia 2014 + Gigaword 5,6B tokens, 400K vocab, uncased. https://nlp.stanford.edu/projects/glove/\", \n", " \"parameters\": \"dimension = 50\", \n", " \"file_name\": \"glove-wiki-gigaword-50.gz\", \n", " \"papers\": \"https://nlp.stanford.edu/pubs/glove.pdf\", \n", " \"parts\": 1, \n", " \"preprocessing\": \"Converted to w2v format with `python -m gensim.scripts.glove2word2vec -i <fname> -o glove-wiki-gigaword-50.txt`\", \n", " \"checksum\": \"c289bc5d7f2f02c6dc9f2f9b67641813\"\n", " }, \n", " \"glove-twitter-50\": {\n", " \"description\": \"Pre-trained vectors, 2B tweets, 27B tokens, 1.2M vocab, uncased. https://nlp.stanford.edu/projects/glove/\", \n", " \"parameters\": \"dimensions = 50\", \n", " \"file_name\": \"glove-twitter-50.gz\", \n", " \"papers\": \"https://nlp.stanford.edu/pubs/glove.pdf\", \n", " \"parts\": 1, \n", " \"preprocessing\": \"Converted to w2v format with `python -m gensim.scripts.glove2word2vec -i <fname> -o glove-twitter-50.txt`\", \n", " \"checksum\": \"c168f18641f8c8a00fe30984c4799b2b\"\n", " }, \n", " \"__testing_word2vec-matrix-synopsis\": {\n", " \"description\": \"Word vecrors of the movie matrix\", \n", " \"parameters\": \"dimentions = 50\", \n", " \"file_name\": \"__testing_word2vec-matrix-synopsis.gz\", \n", " \"papers\": \"\", \n", " \"parts\": 1, \n", " \"preprocessing\": \"Converted to w2v using a preprocessed corpus. Converted to w2v format with `python3.5 -m gensim.models.word2vec -train <input_filename> -iter 50 -output <output_filename>`\", \n", " \"checksum\": \"534dcb8b56a360977a269b7bfc62d124\"\n", " }, \n", " \"glove-wiki-gigaword-200\": {\n", " \"description\": \"Pre-trained vectors ,Wikipedia 2014 + Gigaword 5,6B tokens, 400K vocab, uncased. https://nlp.stanford.edu/projects/glove/\", \n", " \"parameters\": \"dimentions = 200\", \n", " \"file_name\": \"glove-wiki-gigaword-200.gz\", \n", " \"papers\": \"https://nlp.stanford.edu/pubs/glove.pdf\", \n", " \"parts\": 1, \n", " \"preprocessing\": \"Converted to w2v format with `python -m gensim.scripts.glove2word2vec -i <fname> -o glove-wiki-gigaword-200.txt`\", \n", " \"checksum\": \"59652db361b7a87ee73834a6c391dfc1\"\n", " }, \n", " \"word2vec-google-news-300\": {\n", " \"description\": \"Pre-trained vectors trained on part of Google News dataset (about 100 billion words). The model contains 300-dimensional vectors for 3 million words and phrases. The phrases were obtained using a simple data-driven approach described in 'Distributed Representations of Words and Phrases and their Compositionality', https://code.google.com/archive/p/word2vec/\", \n", " \"parameters\": \"dimension = 300\", \n", " \"file_name\": \"word2vec-google-news-300.gz\", \n", " \"papers\": \"https://arxiv.org/abs/1301.3781, https://arxiv.org/abs/1310.4546, https://www.microsoft.com/en-us/research/publication/linguistic-regularities-in-continuous-space-word-representations/?from=http%3A%2F%2Fresearch.microsoft.com%2Fpubs%2F189726%2Frvecs.pdf\", \n", " \"parts\": 1, \n", " \"checksum\": \"a5e5354d40acb95f9ec66d5977d140ef\"\n", " }, \n", " \"glove-wiki-gigaword-300\": {\n", " \"description\": \"Pre-trained vectors, Wikipedia 2014 + Gigaword 5, 6B tokens, 400K vocab, uncased. https://nlp.stanford.edu/projects/glove/\", \n", " \"parameters\": \"dimensions = 300\", \n", " \"file_name\": \"glove-wiki-gigaword-300.gz\", \n", " \"papers\": \"https://nlp.stanford.edu/pubs/glove.pdf\", \n", " \"parts\": 1, \n", " \"preprocessing\": \"Converted to w2v format with `python -m gensim.scripts.glove2word2vec -i <fname> -o glove-wiki-gigaword-300.txt`\", \n", " \"checksum\": \"29e9329ac2241937d55b852e8284e89b\"\n", " }\n", " }, \n", " \"corpora\": {\n", " \"__testing_matrix-synopsis\": {\n", " \"source\": \"http://www.imdb.com/title/tt0133093/plotsummary?ref_=ttpl_pl_syn#synopsis\", \n", " \"checksum\": \"1767ac93a089b43899d54944b07d9dc5\", \n", " \"parts\": 1, \n", " \"description\": \"Synopsis of the movie matrix\", \n", " \"file_name\": \"__testing_matrix-synopsis.gz\"\n", " }, \n", " \"fake-news\": {\n", " \"source\": \"Kaggle\", \n", " \"checksum\": \"5e64e942df13219465927f92dcefd5fe\", \n", " \"parts\": 1, \n", " \"description\": \"It contains text and metadata scraped from 244 websites tagged as 'bullshit' here by the BS Detector Chrome Extension by Daniel Sieradski.\", \n", " \"file_name\": \"fake-news.gz\"\n", " }, \n", " \"__testing_multipart-matrix-synopsis\": {\n", " \"description\": \"Synopsis of the movie matrix\", \n", " \"source\": \"http://www.imdb.com/title/tt0133093/plotsummary?ref_=ttpl_pl_syn#synopsis\", \n", " \"file_name\": \"__testing_multipart-matrix-synopsis.gz\", \n", " \"checksum-0\": \"c8b0c7d8cf562b1b632c262a173ac338\", \n", " \"checksum-1\": \"5ff7fc6818e9a5d9bc1cf12c35ed8b96\", \n", " \"checksum-2\": \"966db9d274d125beaac7987202076cba\", \n", " \"parts\": 3\n", " }, \n", " \"text8\": {\n", " \"source\": \"https://mattmahoney.net/dc/text8.zip\", \n", " \"checksum\": \"68799af40b6bda07dfa47a32612e5364\", \n", " \"parts\": 1, \n", " \"description\": \"Cleaned small sample from wikipedia\", \n", " \"file_name\": \"text8.gz\"\n", " }, \n", " \"wiki-en\": {\n", " \"description\": \"Extracted Wikipedia dump from October 2017. Produced by `python -m gensim.scripts.segment_wiki -f enwiki-20171001-pages-articles.xml.bz2 -o wiki-en.gz`\", \n", " \"source\": \"https://dumps.wikimedia.org/enwiki/20171001/\", \n", " \"file_name\": \"wiki-en.gz\", \n", " \"parts\": 4, \n", " \"checksum-0\": \"a7d7d7fd41ea7e2d7fa32ec1bb640d71\", \n", " \"checksum-1\": \"b2683e3356ffbca3b6c2dca6e9801f9f\", \n", " \"checksum-2\": \"c5cde2a9ae77b3c4ebce804f6df542c2\", \n", " \"checksum-3\": \"00b71144ed5e3aeeb885de84f7452b81\"\n", " }, \n", " \"20-newsgroups\": {\n", " \"source\": \"http://qwone.com/~jason/20Newsgroups/\", \n", " \"checksum\": \"c92fd4f6640a86d5ba89eaad818a9891\", \n", " \"parts\": 1, \n", " \"description\": \"The 20 Newsgroups data set is a collection of approximately 20,000 newsgroup documents, partitioned (nearly) evenly across 20 different newsgroups\", \n", " \"file_name\": \"20-newsgroups.gz\"\n", " }\n", " }\n", "}\n" ] } ], "source": [ "import json\n", "data_list = api.info()\n", "print(json.dumps(data_list, indent=4))" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "If you want to get detailed information about the model/corpus, use:" ] }, { "cell_type": "code", "execution_count": 6, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "{\n", " \"source\": \"Kaggle\", \n", " \"checksum\": \"5e64e942df13219465927f92dcefd5fe\", \n", " \"parts\": 1, \n", " \"description\": \"It contains text and metadata scraped from 244 websites tagged as 'bullshit' here by the BS Detector Chrome Extension by Daniel Sieradski.\", \n", " \"file_name\": \"fake-news.gz\"\n", "}\n" ] } ], "source": [ "fake_news_info = api.info('fake-news')\n", "print(json.dumps(fake_news_info, indent=4))" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Sometimes, you do not want to load the model to memory. You would just want to get the path to the model. For that, use :" ] }, { "cell_type": "code", "execution_count": 7, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "/home/ivan/gensim-data/glove-wiki-gigaword-50/glove-wiki-gigaword-50.gz\n" ] } ], "source": [ "print(api.load('glove-wiki-gigaword-50', return_path=True))" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "If you want to load the model to memory, then:" ] }, { "cell_type": "code", "execution_count": 8, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "2017-11-10 14:51:59,199 : INFO : loading projection weights from /home/ivan/gensim-data/glove-wiki-gigaword-50/glove-wiki-gigaword-50.gz\n", "2017-11-10 14:52:18,380 : INFO : loaded (400000, 50) matrix from /home/ivan/gensim-data/glove-wiki-gigaword-50/glove-wiki-gigaword-50.gz\n", "2017-11-10 14:52:18,405 : INFO : precomputing L2-norms of word weight vectors\n" ] }, { "data": { "text/plain": [ "[(u'plastic', 0.7942505478858948),\n", " (u'metal', 0.770871639251709),\n", " (u'walls', 0.7700636386871338),\n", " (u'marble', 0.7638524174690247),\n", " (u'wood', 0.7624281048774719),\n", " (u'ceramic', 0.7602593302726746),\n", " (u'pieces', 0.7589111924171448),\n", " (u'stained', 0.7528817057609558),\n", " (u'tile', 0.748193621635437),\n", " (u'furniture', 0.746385931968689)]" ] }, "execution_count": 8, "metadata": {}, "output_type": "execute_result" } ], "source": [ "model = api.load(\"glove-wiki-gigaword-50\")\n", "model.most_similar(\"glass\")" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "In corpora, the corpus is never loaded to memory, all corpuses wrapped to special class `Dataset` and provide `__iter__` method" ] } ], "metadata": { "kernelspec": { "display_name": "Python 2", "language": "python", "name": "python2" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 2 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython2", "version": "2.7.14" } }, "nbformat": 4, "nbformat_minor": 2 }
25,975
Python
.py
495
46.727273
405
0.568053
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,922
soft_cosine_benchmark.ipynb
piskvorky_gensim/docs/notebooks/soft_cosine_benchmark.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Benchmark: Implement Levenshtein term similarity matrix and fast SCM between corpora ([RaRe-Technologies/gensim PR #2016][#2016])\n", "\n", " [#2016]: https://github.com/RaRe-Technologies/gensim/pull/2016 (Implement Levenshtein term similarity matrix and fast SCM between corpora - Pull Request #2016)" ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "d429fedf094e00c4bb5c27589d5befb53b2e4b13\r\n" ] } ], "source": [ "!git rev-parse HEAD" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [], "source": [ "from copy import deepcopy\n", "from datetime import timedelta\n", "from itertools import product\n", "import logging\n", "from math import floor, ceil, log10\n", "import pickle\n", "from random import sample, seed, shuffle\n", "from time import time\n", "\n", "import numpy as np\n", "import pandas as pd\n", "from tqdm import tqdm_notebook\n", "\n", "def tqdm(iterable, total=None, desc=None):\n", " if total is None:\n", " total = len(iterable)\n", " for num_done, element in enumerate(tqdm_notebook(iterable, total=total)):\n", " logger.info(\"%s: %d / %d\", desc, num_done, total)\n", " yield element\n", "\n", "from gensim.corpora import Dictionary\n", "import gensim.downloader as api\n", "from gensim.similarities.index import AnnoyIndexer\n", "from gensim.similarities import SparseTermSimilarityMatrix\n", "from gensim.similarities import UniformTermSimilarityIndex\n", "from gensim.similarities import LevenshteinSimilarityIndex\n", "from gensim.similarities import WordEmbeddingSimilarityIndex\n", "from gensim.utils import simple_preprocess\n", "\n", "RANDOM_SEED = 12345\n", "\n", "logger = logging.getLogger()\n", "fhandler = logging.FileHandler(filename='matrix_speed.log', mode='a')\n", "formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')\n", "fhandler.setFormatter(formatter)\n", "logger.addHandler(fhandler)\n", "logger.setLevel(logging.INFO)\n", "\n", "pd.set_option('display.max_rows', None, 'display.max_seq_items', None)" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [], "source": [ "\"\"\"Repeatedly run a benchmark callable given various configurations and\n", "get a list of results.\n", "\n", "Return a list of results of repeatedly running a benchmark callable.\n", "\n", "Parameters\n", "----------\n", "benchmark : callable tuple -> dict\n", " A benchmark callable that accepts a configuration and returns results.\n", "configurations : iterable of tuple\n", " An iterable of configurations that are used for calling the benchmark function.\n", "results_filename : str\n", " A filename of a file that will be used to persistently store the results using\n", " pickle. If the file exists, then the function will load the stored results\n", " instead of calling the benchmark callable.\n", "\n", "Returns\n", "-------\n", "iterable of tuple\n", " The return values of the individual invocations of the benchmark callable.\n", "\n", "\"\"\"\n", "def benchmark_results(benchmark, configurations, results_filename):\n", " try:\n", " with open(results_filename, \"rb\") as file:\n", " results = pickle.load(file)\n", " except IOError:\n", " configurations = list(configurations)\n", " shuffle(configurations)\n", " results = list(tqdm(\n", " (benchmark(configuration) for configuration in configurations),\n", " total=len(configurations), desc=\"benchmark\"))\n", " with open(results_filename, \"wb\") as file:\n", " pickle.dump(results, file)\n", " return results" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Implement Levenshtein term similarity matrix\n", "\n", "In Gensim PR [#1827][], we added a base implementation of the soft cosine measure (SCM). The base implementation would create term similarity matrices using a single complex procedure. In the Gensim PR [#2016][], we split the procedure into:\n", "\n", "- **TermSimilarityIndex** builder classes that produce the $k$ most similar terms for a given term $t$ that are distinct from $t$ along with the term similarities, and\n", "- the **SparseTermSimilarityMatrix** director class that constructs term similarity matrices and consumes term similarities produced by **TermSimilarityIndex** instances.\n", "\n", "One of the benefits of this separation is that we can easily measure the speed at which a **TermSimilarityIndex** builder class produces term similarities and compare this speed with the speed at which the **SparseTermSimilarityMatrix** director class consumes term similarities. This allows us to see which of the classes are a bottleneck that slows down the construction of term similarity matrices.\n", "\n", "In this notebook, we measure all the currently available builder and director classes. For the measurements, we use the [Google News word embeddings][word2vec-google-news-300] distributed with the C implementation of Word2Vec. From the word embeddings, we will derive a dictionary of 2.01M terms.\n", "\n", " [word2vec-google-news-300]: https://github.com/mmihaltz/word2vec-GoogleNews-vectors (word2vec-GoogleNews-vectors)\n", " [#1827]: https://github.com/RaRe-Technologies/gensim/pull/1827 (Implement Soft Cosine Measure - Pull Request #1827)\n", " [#2016]: https://github.com/RaRe-Technologies/gensim/pull/2016 (Implement Levenshtein term similarity matrix and fast SCM between corpora - Pull Request #2016)" ] }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [], "source": [ "full_model = api.load(\"word2vec-google-news-300\")\n", "\n", "try:\n", " full_dictionary = Dictionary.load(\"matrix_speed.dictionary\")\n", "except IOError:\n", " full_dictionary = Dictionary([[term] for term in full_model.vocab.keys()])\n", " full_dictionary.save(\"matrix_speed.dictionary\")" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Director class benchmark\n", "#### SparseTermSimilarityMatrix\n", "First, we measure the speed at which the **SparseTermSimilarityMatrix** director class consumes term similarities." ] }, { "cell_type": "code", "execution_count": 5, "metadata": { "scrolled": true }, "outputs": [], "source": [ "def benchmark(configuration):\n", " dictionary, nonzero_limit, symmetric, positive_definite, repetition = configuration\n", " index = UniformTermSimilarityIndex(dictionary)\n", " \n", " start_time = time()\n", " matrix = SparseTermSimilarityMatrix(\n", " index, dictionary, nonzero_limit=nonzero_limit, symmetric=symmetric,\n", " positive_definite=positive_definite, dtype=np.float16).matrix\n", " end_time = time()\n", " \n", " duration = end_time - start_time\n", " return {\n", " \"dictionary_size\": len(dictionary),\n", " \"nonzero_limit\": nonzero_limit,\n", " \"matrix_nonzero\": matrix.nnz,\n", " \"repetition\": repetition,\n", " \"symmetric\": symmetric,\n", " \"positive_definite\": positive_definite,\n", " \"duration\": duration, }" ] }, { "cell_type": "code", "execution_count": 6, "metadata": {}, "outputs": [ { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "4aef903a70e24247ad3c889237ed4c48", "version_major": 2, "version_minor": 0 }, "text/plain": [ "HBox(children=(IntProgress(value=0, max=4), HTML(value='')))" ] }, "metadata": {}, "output_type": "display_data" }, { "name": "stdout", "output_type": "stream", "text": [ "\n" ] } ], "source": [ "dictionary_sizes = [10**k for k in range(3, int(ceil(log10(len(full_dictionary)))))]\n", "seed(RANDOM_SEED)\n", "dictionaries = []\n", "for size in tqdm(dictionary_sizes, desc=\"dictionaries\"):\n", " dictionary = Dictionary([sample(list(full_dictionary.values()), size)])\n", " dictionaries.append(dictionary)\n", "dictionaries.append(full_dictionary)\n", "nonzero_limits = [1, 10, 100]\n", "symmetry = (True, False)\n", "positive_definiteness = (True, False)\n", "repetitions = range(10)\n", "\n", "configurations = product(dictionaries, nonzero_limits, symmetry, positive_definiteness, repetitions)\n", "results = benchmark_results(benchmark, configurations, \"matrix_speed.director_results\")" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The following tables show how long it takes to construct a term similarity matrix (the **duration** column), how many nonzero elements there are in the matrix (the **matrix_nonzero** column) and the mean term similarity consumption speed (the **consumption_speed** column) as we vary the dictionary size (the **dictionary_size** column) the maximum number of nonzero elements outside the diagonal in every column of the matrix (the **nonzero_limit** column), the matrix symmetry constraint (the **symmetric** column), and the matrix positive definiteness constraing (the **positive_definite** column). Ten independendent measurements were taken. The top table shows the mean values and the bottom table shows the standard deviations.\n", "\n", "We can see that the symmetry and positive definiteness constraints severely limit the number of nonzero elements in the resulting matrix. This in turn increases the consumption speed, since we end up throwing away most of the elements that we consume. The effects of the dictionary size on the mean term similarity consumption speed are minor to none." ] }, { "cell_type": "code", "execution_count": 7, "metadata": {}, "outputs": [], "source": [ "df = pd.DataFrame(results)\n", "df[\"consumption_speed\"] = df.dictionary_size * df.nonzero_limit / df.duration\n", "df = df.groupby([\"dictionary_size\", \"nonzero_limit\", \"symmetric\", \"positive_definite\"])\n", "\n", "def display(df):\n", " df[\"duration\"] = [timedelta(0, duration) for duration in df[\"duration\"]]\n", " df[\"matrix_nonzero\"] = [int(nonzero) for nonzero in df[\"matrix_nonzero\"]]\n", " df[\"consumption_speed\"] = [\"%.02f Kword pairs / s\" % (speed / 1000) for speed in df[\"consumption_speed\"]]\n", " return df" ] }, { "cell_type": "code", "execution_count": 8, "metadata": {}, "outputs": [ { "data": { "text/html": [ "<div>\n", "<style scoped>\n", " .dataframe tbody tr th:only-of-type {\n", " vertical-align: middle;\n", " }\n", "\n", " .dataframe tbody tr th {\n", " vertical-align: top;\n", " }\n", "\n", " .dataframe thead th {\n", " text-align: right;\n", " }\n", "</style>\n", "<table border=\"1\" class=\"dataframe\">\n", " <thead>\n", " <tr style=\"text-align: right;\">\n", " <th></th>\n", " <th></th>\n", " <th></th>\n", " <th></th>\n", " <th>duration</th>\n", " <th>matrix_nonzero</th>\n", " <th>consumption_speed</th>\n", " </tr>\n", " <tr>\n", " <th>dictionary_size</th>\n", " <th>nonzero_limit</th>\n", " <th>symmetric</th>\n", " <th>positive_definite</th>\n", " <th></th>\n", " <th></th>\n", " <th></th>\n", " </tr>\n", " </thead>\n", " <tbody>\n", " <tr>\n", " <th rowspan=\"12\" valign=\"top\">10000</th>\n", " <th rowspan=\"4\" valign=\"top\">1</th>\n", " <th rowspan=\"2\" valign=\"top\">False</th>\n", " <th>False</th>\n", " <td>00:00:00.435533</td>\n", " <td>20000</td>\n", " <td>22.96 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:00:00.492606</td>\n", " <td>20000</td>\n", " <td>20.30 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"2\" valign=\"top\">True</th>\n", " <th>False</th>\n", " <td>00:00:00.185563</td>\n", " <td>10002</td>\n", " <td>53.90 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:00:00.240471</td>\n", " <td>10002</td>\n", " <td>41.59 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"4\" valign=\"top\">10</th>\n", " <th rowspan=\"2\" valign=\"top\">False</th>\n", " <th>False</th>\n", " <td>00:00:02.687836</td>\n", " <td>110000</td>\n", " <td>37.21 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:00:00.615492</td>\n", " <td>20000</td>\n", " <td>162.49 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"2\" valign=\"top\">True</th>\n", " <th>False</th>\n", " <td>00:00:00.501188</td>\n", " <td>10118</td>\n", " <td>199.53 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:00:01.380586</td>\n", " <td>10010</td>\n", " <td>72.44 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"4\" valign=\"top\">100</th>\n", " <th rowspan=\"2\" valign=\"top\">False</th>\n", " <th>False</th>\n", " <td>00:00:25.262807</td>\n", " <td>1010000</td>\n", " <td>39.58 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:00:01.132524</td>\n", " <td>20000</td>\n", " <td>883.02 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"2\" valign=\"top\">True</th>\n", " <th>False</th>\n", " <td>00:00:03.595666</td>\n", " <td>20198</td>\n", " <td>278.13 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:00:11.818912</td>\n", " <td>10100</td>\n", " <td>84.61 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"12\" valign=\"top\">2010000</th>\n", " <th rowspan=\"4\" valign=\"top\">1</th>\n", " <th rowspan=\"2\" valign=\"top\">False</th>\n", " <th>False</th>\n", " <td>00:01:31.786585</td>\n", " <td>4020000</td>\n", " <td>21.90 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:01:40.954580</td>\n", " <td>4020000</td>\n", " <td>19.91 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"2\" valign=\"top\">True</th>\n", " <th>False</th>\n", " <td>00:00:39.050064</td>\n", " <td>2010002</td>\n", " <td>51.48 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:00:49.238437</td>\n", " <td>2010002</td>\n", " <td>40.82 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"4\" valign=\"top\">10</th>\n", " <th rowspan=\"2\" valign=\"top\">False</th>\n", " <th>False</th>\n", " <td>00:09:35.470373</td>\n", " <td>22110000</td>\n", " <td>34.93 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:02:02.920334</td>\n", " <td>4020000</td>\n", " <td>163.52 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"2\" valign=\"top\">True</th>\n", " <th>False</th>\n", " <td>00:01:39.576693</td>\n", " <td>2010118</td>\n", " <td>201.88 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:04:35.646501</td>\n", " <td>2010010</td>\n", " <td>72.92 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"4\" valign=\"top\">100</th>\n", " <th rowspan=\"2\" valign=\"top\">False</th>\n", " <th>False</th>\n", " <td>01:42:01.747568</td>\n", " <td>203010000</td>\n", " <td>32.88 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:03:36.420778</td>\n", " <td>4020000</td>\n", " <td>928.75 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"2\" valign=\"top\">True</th>\n", " <th>False</th>\n", " <td>00:10:58.434060</td>\n", " <td>2020198</td>\n", " <td>305.30 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:39:40.319479</td>\n", " <td>2010100</td>\n", " <td>84.44 Kword pairs / s</td>\n", " </tr>\n", " </tbody>\n", "</table>\n", "</div>" ], "text/plain": [ " duration \\\n", "dictionary_size nonzero_limit symmetric positive_definite \n", "10000 1 False False 00:00:00.435533 \n", " True 00:00:00.492606 \n", " True False 00:00:00.185563 \n", " True 00:00:00.240471 \n", " 10 False False 00:00:02.687836 \n", " True 00:00:00.615492 \n", " True False 00:00:00.501188 \n", " True 00:00:01.380586 \n", " 100 False False 00:00:25.262807 \n", " True 00:00:01.132524 \n", " True False 00:00:03.595666 \n", " True 00:00:11.818912 \n", "2010000 1 False False 00:01:31.786585 \n", " True 00:01:40.954580 \n", " True False 00:00:39.050064 \n", " True 00:00:49.238437 \n", " 10 False False 00:09:35.470373 \n", " True 00:02:02.920334 \n", " True False 00:01:39.576693 \n", " True 00:04:35.646501 \n", " 100 False False 01:42:01.747568 \n", " True 00:03:36.420778 \n", " True False 00:10:58.434060 \n", " True 00:39:40.319479 \n", "\n", " matrix_nonzero \\\n", "dictionary_size nonzero_limit symmetric positive_definite \n", "10000 1 False False 20000 \n", " True 20000 \n", " True False 10002 \n", " True 10002 \n", " 10 False False 110000 \n", " True 20000 \n", " True False 10118 \n", " True 10010 \n", " 100 False False 1010000 \n", " True 20000 \n", " True False 20198 \n", " True 10100 \n", "2010000 1 False False 4020000 \n", " True 4020000 \n", " True False 2010002 \n", " True 2010002 \n", " 10 False False 22110000 \n", " True 4020000 \n", " True False 2010118 \n", " True 2010010 \n", " 100 False False 203010000 \n", " True 4020000 \n", " True False 2020198 \n", " True 2010100 \n", "\n", " consumption_speed \n", "dictionary_size nonzero_limit symmetric positive_definite \n", "10000 1 False False 22.96 Kword pairs / s \n", " True 20.30 Kword pairs / s \n", " True False 53.90 Kword pairs / s \n", " True 41.59 Kword pairs / s \n", " 10 False False 37.21 Kword pairs / s \n", " True 162.49 Kword pairs / s \n", " True False 199.53 Kword pairs / s \n", " True 72.44 Kword pairs / s \n", " 100 False False 39.58 Kword pairs / s \n", " True 883.02 Kword pairs / s \n", " True False 278.13 Kword pairs / s \n", " True 84.61 Kword pairs / s \n", "2010000 1 False False 21.90 Kword pairs / s \n", " True 19.91 Kword pairs / s \n", " True False 51.48 Kword pairs / s \n", " True 40.82 Kword pairs / s \n", " 10 False False 34.93 Kword pairs / s \n", " True 163.52 Kword pairs / s \n", " True False 201.88 Kword pairs / s \n", " True 72.92 Kword pairs / s \n", " 100 False False 32.88 Kword pairs / s \n", " True 928.75 Kword pairs / s \n", " True False 305.30 Kword pairs / s \n", " True 84.44 Kword pairs / s " ] }, "execution_count": 8, "metadata": {}, "output_type": "execute_result" } ], "source": [ "display(df.mean()).loc[\n", " [10000, len(full_dictionary)], :, :].loc[\n", " :, [\"duration\", \"matrix_nonzero\", \"consumption_speed\"]]" ] }, { "cell_type": "code", "execution_count": 9, "metadata": {}, "outputs": [ { "data": { "text/html": [ "<div>\n", "<style scoped>\n", " .dataframe tbody tr th:only-of-type {\n", " vertical-align: middle;\n", " }\n", "\n", " .dataframe tbody tr th {\n", " vertical-align: top;\n", " }\n", "\n", " .dataframe thead th {\n", " text-align: right;\n", " }\n", "</style>\n", "<table border=\"1\" class=\"dataframe\">\n", " <thead>\n", " <tr style=\"text-align: right;\">\n", " <th></th>\n", " <th></th>\n", " <th></th>\n", " <th></th>\n", " <th>duration</th>\n", " <th>matrix_nonzero</th>\n", " <th>consumption_speed</th>\n", " </tr>\n", " <tr>\n", " <th>dictionary_size</th>\n", " <th>nonzero_limit</th>\n", " <th>symmetric</th>\n", " <th>positive_definite</th>\n", " <th></th>\n", " <th></th>\n", " <th></th>\n", " </tr>\n", " </thead>\n", " <tbody>\n", " <tr>\n", " <th rowspan=\"12\" valign=\"top\">10000</th>\n", " <th rowspan=\"4\" valign=\"top\">1</th>\n", " <th rowspan=\"2\" valign=\"top\">False</th>\n", " <th>False</th>\n", " <td>00:00:00.005334</td>\n", " <td>0</td>\n", " <td>0.28 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:00:00.004072</td>\n", " <td>0</td>\n", " <td>0.17 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"2\" valign=\"top\">True</th>\n", " <th>False</th>\n", " <td>00:00:00.003124</td>\n", " <td>0</td>\n", " <td>0.90 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:00:00.001797</td>\n", " <td>0</td>\n", " <td>0.31 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"4\" valign=\"top\">10</th>\n", " <th rowspan=\"2\" valign=\"top\">False</th>\n", " <th>False</th>\n", " <td>00:00:00.011986</td>\n", " <td>0</td>\n", " <td>0.17 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:00:00.005972</td>\n", " <td>0</td>\n", " <td>1.59 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"2\" valign=\"top\">True</th>\n", " <th>False</th>\n", " <td>00:00:00.002869</td>\n", " <td>0</td>\n", " <td>1.15 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:00:00.011411</td>\n", " <td>0</td>\n", " <td>0.60 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"4\" valign=\"top\">100</th>\n", " <th rowspan=\"2\" valign=\"top\">False</th>\n", " <th>False</th>\n", " <td>00:00:00.111118</td>\n", " <td>0</td>\n", " <td>0.17 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:00:00.007611</td>\n", " <td>0</td>\n", " <td>5.94 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"2\" valign=\"top\">True</th>\n", " <th>False</th>\n", " <td>00:00:00.030875</td>\n", " <td>0</td>\n", " <td>2.38 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:00:00.050198</td>\n", " <td>0</td>\n", " <td>0.36 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"12\" valign=\"top\">2010000</th>\n", " <th rowspan=\"4\" valign=\"top\">1</th>\n", " <th rowspan=\"2\" valign=\"top\">False</th>\n", " <th>False</th>\n", " <td>00:00:00.767305</td>\n", " <td>0</td>\n", " <td>0.18 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:00:00.172432</td>\n", " <td>0</td>\n", " <td>0.03 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"2\" valign=\"top\">True</th>\n", " <th>False</th>\n", " <td>00:00:00.346239</td>\n", " <td>0</td>\n", " <td>0.46 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:00:00.177075</td>\n", " <td>0</td>\n", " <td>0.15 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"4\" valign=\"top\">10</th>\n", " <th rowspan=\"2\" valign=\"top\">False</th>\n", " <th>False</th>\n", " <td>00:00:05.156655</td>\n", " <td>0</td>\n", " <td>0.31 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:00:00.631676</td>\n", " <td>0</td>\n", " <td>0.83 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"2\" valign=\"top\">True</th>\n", " <th>False</th>\n", " <td>00:00:01.216067</td>\n", " <td>0</td>\n", " <td>2.41 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:00:00.547773</td>\n", " <td>0</td>\n", " <td>0.14 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"4\" valign=\"top\">100</th>\n", " <th rowspan=\"2\" valign=\"top\">False</th>\n", " <th>False</th>\n", " <td>00:04:10.371035</td>\n", " <td>0</td>\n", " <td>1.24 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:00:00.634416</td>\n", " <td>0</td>\n", " <td>2.73 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"2\" valign=\"top\">True</th>\n", " <th>False</th>\n", " <td>00:00:06.586767</td>\n", " <td>0</td>\n", " <td>3.05 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:00:09.030932</td>\n", " <td>0</td>\n", " <td>0.32 Kword pairs / s</td>\n", " </tr>\n", " </tbody>\n", "</table>\n", "</div>" ], "text/plain": [ " duration \\\n", "dictionary_size nonzero_limit symmetric positive_definite \n", "10000 1 False False 00:00:00.005334 \n", " True 00:00:00.004072 \n", " True False 00:00:00.003124 \n", " True 00:00:00.001797 \n", " 10 False False 00:00:00.011986 \n", " True 00:00:00.005972 \n", " True False 00:00:00.002869 \n", " True 00:00:00.011411 \n", " 100 False False 00:00:00.111118 \n", " True 00:00:00.007611 \n", " True False 00:00:00.030875 \n", " True 00:00:00.050198 \n", "2010000 1 False False 00:00:00.767305 \n", " True 00:00:00.172432 \n", " True False 00:00:00.346239 \n", " True 00:00:00.177075 \n", " 10 False False 00:00:05.156655 \n", " True 00:00:00.631676 \n", " True False 00:00:01.216067 \n", " True 00:00:00.547773 \n", " 100 False False 00:04:10.371035 \n", " True 00:00:00.634416 \n", " True False 00:00:06.586767 \n", " True 00:00:09.030932 \n", "\n", " matrix_nonzero \\\n", "dictionary_size nonzero_limit symmetric positive_definite \n", "10000 1 False False 0 \n", " True 0 \n", " True False 0 \n", " True 0 \n", " 10 False False 0 \n", " True 0 \n", " True False 0 \n", " True 0 \n", " 100 False False 0 \n", " True 0 \n", " True False 0 \n", " True 0 \n", "2010000 1 False False 0 \n", " True 0 \n", " True False 0 \n", " True 0 \n", " 10 False False 0 \n", " True 0 \n", " True False 0 \n", " True 0 \n", " 100 False False 0 \n", " True 0 \n", " True False 0 \n", " True 0 \n", "\n", " consumption_speed \n", "dictionary_size nonzero_limit symmetric positive_definite \n", "10000 1 False False 0.28 Kword pairs / s \n", " True 0.17 Kword pairs / s \n", " True False 0.90 Kword pairs / s \n", " True 0.31 Kword pairs / s \n", " 10 False False 0.17 Kword pairs / s \n", " True 1.59 Kword pairs / s \n", " True False 1.15 Kword pairs / s \n", " True 0.60 Kword pairs / s \n", " 100 False False 0.17 Kword pairs / s \n", " True 5.94 Kword pairs / s \n", " True False 2.38 Kword pairs / s \n", " True 0.36 Kword pairs / s \n", "2010000 1 False False 0.18 Kword pairs / s \n", " True 0.03 Kword pairs / s \n", " True False 0.46 Kword pairs / s \n", " True 0.15 Kword pairs / s \n", " 10 False False 0.31 Kword pairs / s \n", " True 0.83 Kword pairs / s \n", " True False 2.41 Kword pairs / s \n", " True 0.14 Kword pairs / s \n", " 100 False False 1.24 Kword pairs / s \n", " True 2.73 Kword pairs / s \n", " True False 3.05 Kword pairs / s \n", " True 0.32 Kword pairs / s " ] }, "execution_count": 9, "metadata": {}, "output_type": "execute_result" } ], "source": [ "display(df.apply(lambda x: (x - x.mean()).std())).loc[\n", " [10000, len(full_dictionary)], :, :].loc[\n", " :, [\"duration\", \"matrix_nonzero\", \"consumption_speed\"]]" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Builder class benchmark\n", "#### UniformTermSimilarityIndex\n", "First, we measure the speed at which the **UniformTermSimilarityIndex** builder class produces term similarities. **UniformTermSimilarityIndex** is a dummy class that just generates a sequence of constants. It produces much more term similarities per second than the **SparseTermSimilarityMatrix** is capable of consuming and its results will serve as an upper limit." ] }, { "cell_type": "code", "execution_count": 10, "metadata": {}, "outputs": [], "source": [ "def benchmark(configuration):\n", " dictionary, nonzero_limit, repetition = configuration\n", " \n", " start_time = time()\n", " index = UniformTermSimilarityIndex(dictionary)\n", " end_time = time()\n", " constructor_duration = end_time - start_time\n", " \n", " start_time = time()\n", " for term in dictionary.values():\n", " for _j, _k in zip(index.most_similar(term, topn=nonzero_limit), range(nonzero_limit)):\n", " pass\n", " end_time = time()\n", " production_duration = end_time - start_time\n", " \n", " return {\n", " \"dictionary_size\": len(dictionary),\n", " \"nonzero_limit\": nonzero_limit,\n", " \"repetition\": repetition,\n", " \"constructor_duration\": constructor_duration,\n", " \"production_duration\": production_duration, }" ] }, { "cell_type": "code", "execution_count": 11, "metadata": {}, "outputs": [], "source": [ "nonzero_limits = [1, 10, 100, 1000]\n", "\n", "configurations = product(dictionaries, nonzero_limits, repetitions)\n", "results = benchmark_results(benchmark, configurations, \"matrix_speed.builder_results.uniform\")" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The following tables show how long it takes to retrieve the most similar terms for all terms in a dictionary (the **production_duration** column) and the mean term similarity production speed (the **production_speed** column) as we vary the dictionary size (the **dictionary_size** column), and the maximum number of most similar terms that will be retrieved (the **nonzero_limit** column). Ten independendent measurements were taken. The top table shows the mean values and the bottom table shows the standard deviations.\n", "\n", "The **production_speed** is proportional to **nonzero_limit**." ] }, { "cell_type": "code", "execution_count": 12, "metadata": {}, "outputs": [], "source": [ "df = pd.DataFrame(results)\n", "df[\"processing_speed\"] = df.dictionary_size ** 2 / df.production_duration\n", "df[\"production_speed\"] = df.dictionary_size * df.nonzero_limit / df.production_duration\n", "df = df.groupby([\"dictionary_size\", \"nonzero_limit\"])\n", "\n", "def display(df):\n", " df[\"constructor_duration\"] = [timedelta(0, duration) for duration in df[\"constructor_duration\"]]\n", " df[\"production_duration\"] = [timedelta(0, duration) for duration in df[\"production_duration\"]]\n", " df[\"processing_speed\"] = [\"%.02f Kword pairs / s\" % (speed / 1000) for speed in df[\"processing_speed\"]]\n", " df[\"production_speed\"] = [\"%.02f Kword pairs / s\" % (speed / 1000) for speed in df[\"production_speed\"]]\n", " return df" ] }, { "cell_type": "code", "execution_count": 13, "metadata": {}, "outputs": [ { "data": { "text/html": [ "<div>\n", "<style scoped>\n", " .dataframe tbody tr th:only-of-type {\n", " vertical-align: middle;\n", " }\n", "\n", " .dataframe tbody tr th {\n", " vertical-align: top;\n", " }\n", "\n", " .dataframe thead th {\n", " text-align: right;\n", " }\n", "</style>\n", "<table border=\"1\" class=\"dataframe\">\n", " <thead>\n", " <tr style=\"text-align: right;\">\n", " <th></th>\n", " <th></th>\n", " <th>production_duration</th>\n", " <th>production_speed</th>\n", " </tr>\n", " <tr>\n", " <th>dictionary_size</th>\n", " <th>nonzero_limit</th>\n", " <th></th>\n", " <th></th>\n", " </tr>\n", " </thead>\n", " <tbody>\n", " <tr>\n", " <th rowspan=\"4\" valign=\"top\">1000</th>\n", " <th>1</th>\n", " <td>00:00:00.002973</td>\n", " <td>336.41 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>10</th>\n", " <td>00:00:00.005372</td>\n", " <td>1861.64 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>100</th>\n", " <td>00:00:00.026752</td>\n", " <td>3738.79 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>1000</th>\n", " <td>00:00:00.290265</td>\n", " <td>3449.16 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"4\" valign=\"top\">2010000</th>\n", " <th>1</th>\n", " <td>00:00:06.318446</td>\n", " <td>318.12 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>10</th>\n", " <td>00:00:10.783611</td>\n", " <td>1863.96 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>100</th>\n", " <td>00:00:53.108644</td>\n", " <td>3785.04 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>1000</th>\n", " <td>00:09:45.103741</td>\n", " <td>3437.36 Kword pairs / s</td>\n", " </tr>\n", " </tbody>\n", "</table>\n", "</div>" ], "text/plain": [ " production_duration production_speed\n", "dictionary_size nonzero_limit \n", "1000 1 00:00:00.002973 336.41 Kword pairs / s\n", " 10 00:00:00.005372 1861.64 Kword pairs / s\n", " 100 00:00:00.026752 3738.79 Kword pairs / s\n", " 1000 00:00:00.290265 3449.16 Kword pairs / s\n", "2010000 1 00:00:06.318446 318.12 Kword pairs / s\n", " 10 00:00:10.783611 1863.96 Kword pairs / s\n", " 100 00:00:53.108644 3785.04 Kword pairs / s\n", " 1000 00:09:45.103741 3437.36 Kword pairs / s" ] }, "execution_count": 13, "metadata": {}, "output_type": "execute_result" } ], "source": [ "display(df.mean()).loc[\n", " [1000, len(full_dictionary)], :, :].loc[\n", " :, [\"production_duration\", \"production_speed\"]]" ] }, { "cell_type": "code", "execution_count": 14, "metadata": {}, "outputs": [ { "data": { "text/html": [ "<div>\n", "<style scoped>\n", " .dataframe tbody tr th:only-of-type {\n", " vertical-align: middle;\n", " }\n", "\n", " .dataframe tbody tr th {\n", " vertical-align: top;\n", " }\n", "\n", " .dataframe thead th {\n", " text-align: right;\n", " }\n", "</style>\n", "<table border=\"1\" class=\"dataframe\">\n", " <thead>\n", " <tr style=\"text-align: right;\">\n", " <th></th>\n", " <th></th>\n", " <th>production_duration</th>\n", " <th>production_speed</th>\n", " </tr>\n", " <tr>\n", " <th>dictionary_size</th>\n", " <th>nonzero_limit</th>\n", " <th></th>\n", " <th></th>\n", " </tr>\n", " </thead>\n", " <tbody>\n", " <tr>\n", " <th rowspan=\"4\" valign=\"top\">1000</th>\n", " <th>1</th>\n", " <td>00:00:00.000017</td>\n", " <td>1.93 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>10</th>\n", " <td>00:00:00.000062</td>\n", " <td>21.50 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>100</th>\n", " <td>00:00:00.000408</td>\n", " <td>56.66 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>1000</th>\n", " <td>00:00:00.010500</td>\n", " <td>123.82 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"4\" valign=\"top\">2010000</th>\n", " <th>1</th>\n", " <td>00:00:00.023495</td>\n", " <td>1.18 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>10</th>\n", " <td>00:00:00.035587</td>\n", " <td>6.16 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>100</th>\n", " <td>00:00:00.535765</td>\n", " <td>37.76 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>1000</th>\n", " <td>00:00:15.037816</td>\n", " <td>89.56 Kword pairs / s</td>\n", " </tr>\n", " </tbody>\n", "</table>\n", "</div>" ], "text/plain": [ " production_duration production_speed\n", "dictionary_size nonzero_limit \n", "1000 1 00:00:00.000017 1.93 Kword pairs / s\n", " 10 00:00:00.000062 21.50 Kword pairs / s\n", " 100 00:00:00.000408 56.66 Kword pairs / s\n", " 1000 00:00:00.010500 123.82 Kword pairs / s\n", "2010000 1 00:00:00.023495 1.18 Kword pairs / s\n", " 10 00:00:00.035587 6.16 Kword pairs / s\n", " 100 00:00:00.535765 37.76 Kword pairs / s\n", " 1000 00:00:15.037816 89.56 Kword pairs / s" ] }, "execution_count": 14, "metadata": {}, "output_type": "execute_result" } ], "source": [ "display(df.apply(lambda x: (x - x.mean()).std())).loc[\n", " [1000, len(full_dictionary)], :, :].loc[\n", " :, [\"production_duration\", \"production_speed\"]]" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "#### LevenshteinSimilarityIndex\n", "Next, we measure the speed at which the **LevenshteinSimilarityIndex** builder class produces term similarities. **LevenshteinSimilarityIndex** is currently just a naïve implementation that produces much fewer term similarities per second than the **SparseTermSimilarityMatrix** class is capable of consuming." ] }, { "cell_type": "code", "execution_count": 15, "metadata": {}, "outputs": [], "source": [ "def benchmark(configuration):\n", " dictionary, nonzero_limit, query_terms, repetition = configuration\n", " \n", " start_time = time()\n", " index = LevenshteinSimilarityIndex(dictionary)\n", " end_time = time()\n", " constructor_duration = end_time - start_time\n", " \n", " start_time = time()\n", " for term in query_terms:\n", " for _j, _k in zip(index.most_similar(term, topn=nonzero_limit), range(nonzero_limit)):\n", " pass\n", " end_time = time()\n", " production_duration = end_time - start_time\n", " \n", " return {\n", " \"dictionary_size\": len(dictionary),\n", " \"mean_query_term_length\": np.mean([len(term) for term in query_terms]),\n", " \"nonzero_limit\": nonzero_limit,\n", " \"repetition\": repetition,\n", " \"constructor_duration\": constructor_duration,\n", " \"production_duration\": production_duration, }" ] }, { "cell_type": "code", "execution_count": 16, "metadata": {}, "outputs": [], "source": [ "nonzero_limits = [1, 10, 100]\n", "seed(RANDOM_SEED)\n", "min_dictionary = sorted((len(dictionary), dictionary) for dictionary in dictionaries)[0][1]\n", "query_terms = sample(list(min_dictionary.values()), 10)\n", "\n", "configurations = product(dictionaries, nonzero_limits, [query_terms], repetitions)\n", "results = benchmark_results(benchmark, configurations, \"matrix_speed.builder_results.levenshtein\")" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The following tables show how long it takes to retrieve the most similar terms for ten randomly sampled terms from a dictionary (the **production_duration** column), the mean term similarity production speed (the **production_speed** column) and the mean term similarity processing speed (the **processing_speed** column) as we vary the dictionary size (the **dictionary_size** column), and the maximum number of most similar terms that will be retrieved (the **nonzero_limit** column). Ten independendent measurements were taken. The top table shows the mean values and the bottom table shows the standard deviations.\n", "\n", "The **production_speed** is proportional to **nonzero_limit / dictionary_size**. The **processing_speed** is constant." ] }, { "cell_type": "code", "execution_count": 17, "metadata": {}, "outputs": [], "source": [ "df = pd.DataFrame(results)\n", "df[\"processing_speed\"] = df.dictionary_size * len(query_terms) / df.production_duration\n", "df[\"production_speed\"] = df.nonzero_limit * len(query_terms) / df.production_duration\n", "df = df.groupby([\"dictionary_size\", \"nonzero_limit\"])\n", "\n", "def display(df):\n", " df[\"constructor_duration\"] = [timedelta(0, duration) for duration in df[\"constructor_duration\"]]\n", " df[\"production_duration\"] = [timedelta(0, duration) for duration in df[\"production_duration\"]]\n", " df[\"processing_speed\"] = [\"%.02f Kword pairs / s\" % (speed / 1000) for speed in df[\"processing_speed\"]]\n", " df[\"production_speed\"] = [\"%.02f word pairs / s\" % speed for speed in df[\"production_speed\"]]\n", " return df" ] }, { "cell_type": "code", "execution_count": 18, "metadata": { "scrolled": false }, "outputs": [ { "data": { "text/html": [ "<div>\n", "<style scoped>\n", " .dataframe tbody tr th:only-of-type {\n", " vertical-align: middle;\n", " }\n", "\n", " .dataframe tbody tr th {\n", " vertical-align: top;\n", " }\n", "\n", " .dataframe thead th {\n", " text-align: right;\n", " }\n", "</style>\n", "<table border=\"1\" class=\"dataframe\">\n", " <thead>\n", " <tr style=\"text-align: right;\">\n", " <th></th>\n", " <th></th>\n", " <th>production_duration</th>\n", " <th>production_speed</th>\n", " <th>processing_speed</th>\n", " </tr>\n", " <tr>\n", " <th>dictionary_size</th>\n", " <th>nonzero_limit</th>\n", " <th></th>\n", " <th></th>\n", " <th></th>\n", " </tr>\n", " </thead>\n", " <tbody>\n", " <tr>\n", " <th rowspan=\"3\" valign=\"top\">1000</th>\n", " <th>1</th>\n", " <td>00:00:00.055994</td>\n", " <td>178.61 word pairs / s</td>\n", " <td>178.61 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>10</th>\n", " <td>00:00:00.056097</td>\n", " <td>1782.70 word pairs / s</td>\n", " <td>178.27 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>100</th>\n", " <td>00:00:00.056212</td>\n", " <td>17791.65 word pairs / s</td>\n", " <td>177.92 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"3\" valign=\"top\">1000000</th>\n", " <th>1</th>\n", " <td>00:01:20.618070</td>\n", " <td>0.12 word pairs / s</td>\n", " <td>124.05 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>10</th>\n", " <td>00:01:20.048238</td>\n", " <td>1.25 word pairs / s</td>\n", " <td>124.92 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>100</th>\n", " <td>00:01:20.064999</td>\n", " <td>12.49 word pairs / s</td>\n", " <td>124.90 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"3\" valign=\"top\">2010000</th>\n", " <th>1</th>\n", " <td>00:02:44.069399</td>\n", " <td>0.06 word pairs / s</td>\n", " <td>122.51 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>10</th>\n", " <td>00:02:43.914601</td>\n", " <td>0.61 word pairs / s</td>\n", " <td>122.63 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>100</th>\n", " <td>00:02:43.892408</td>\n", " <td>6.10 word pairs / s</td>\n", " <td>122.64 Kword pairs / s</td>\n", " </tr>\n", " </tbody>\n", "</table>\n", "</div>" ], "text/plain": [ " production_duration production_speed \\\n", "dictionary_size nonzero_limit \n", "1000 1 00:00:00.055994 178.61 word pairs / s \n", " 10 00:00:00.056097 1782.70 word pairs / s \n", " 100 00:00:00.056212 17791.65 word pairs / s \n", "1000000 1 00:01:20.618070 0.12 word pairs / s \n", " 10 00:01:20.048238 1.25 word pairs / s \n", " 100 00:01:20.064999 12.49 word pairs / s \n", "2010000 1 00:02:44.069399 0.06 word pairs / s \n", " 10 00:02:43.914601 0.61 word pairs / s \n", " 100 00:02:43.892408 6.10 word pairs / s \n", "\n", " processing_speed \n", "dictionary_size nonzero_limit \n", "1000 1 178.61 Kword pairs / s \n", " 10 178.27 Kword pairs / s \n", " 100 177.92 Kword pairs / s \n", "1000000 1 124.05 Kword pairs / s \n", " 10 124.92 Kword pairs / s \n", " 100 124.90 Kword pairs / s \n", "2010000 1 122.51 Kword pairs / s \n", " 10 122.63 Kword pairs / s \n", " 100 122.64 Kword pairs / s " ] }, "execution_count": 18, "metadata": {}, "output_type": "execute_result" } ], "source": [ "display(df.mean()).loc[\n", " [1000, 1000000, len(full_dictionary)], :].loc[\n", " :, [\"production_duration\", \"production_speed\", \"processing_speed\"]]" ] }, { "cell_type": "code", "execution_count": 19, "metadata": { "scrolled": false }, "outputs": [ { "data": { "text/html": [ "<div>\n", "<style scoped>\n", " .dataframe tbody tr th:only-of-type {\n", " vertical-align: middle;\n", " }\n", "\n", " .dataframe tbody tr th {\n", " vertical-align: top;\n", " }\n", "\n", " .dataframe thead th {\n", " text-align: right;\n", " }\n", "</style>\n", "<table border=\"1\" class=\"dataframe\">\n", " <thead>\n", " <tr style=\"text-align: right;\">\n", " <th></th>\n", " <th></th>\n", " <th>production_duration</th>\n", " <th>production_speed</th>\n", " <th>processing_speed</th>\n", " </tr>\n", " <tr>\n", " <th>dictionary_size</th>\n", " <th>nonzero_limit</th>\n", " <th></th>\n", " <th></th>\n", " <th></th>\n", " </tr>\n", " </thead>\n", " <tbody>\n", " <tr>\n", " <th rowspan=\"3\" valign=\"top\">1000</th>\n", " <th>1</th>\n", " <td>00:00:00.000673</td>\n", " <td>2.16 word pairs / s</td>\n", " <td>2.16 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>10</th>\n", " <td>00:00:00.000409</td>\n", " <td>13.06 word pairs / s</td>\n", " <td>1.31 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>100</th>\n", " <td>00:00:00.000621</td>\n", " <td>196.80 word pairs / s</td>\n", " <td>1.97 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"3\" valign=\"top\">1000000</th>\n", " <th>1</th>\n", " <td>00:00:00.810661</td>\n", " <td>0.00 word pairs / s</td>\n", " <td>1.23 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>10</th>\n", " <td>00:00:00.110013</td>\n", " <td>0.00 word pairs / s</td>\n", " <td>0.17 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>100</th>\n", " <td>00:00:00.164959</td>\n", " <td>0.03 word pairs / s</td>\n", " <td>0.26 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"3\" valign=\"top\">2010000</th>\n", " <th>1</th>\n", " <td>00:00:01.159273</td>\n", " <td>0.00 word pairs / s</td>\n", " <td>0.85 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>10</th>\n", " <td>00:00:00.429011</td>\n", " <td>0.00 word pairs / s</td>\n", " <td>0.32 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>100</th>\n", " <td>00:00:00.433687</td>\n", " <td>0.02 word pairs / s</td>\n", " <td>0.32 Kword pairs / s</td>\n", " </tr>\n", " </tbody>\n", "</table>\n", "</div>" ], "text/plain": [ " production_duration production_speed \\\n", "dictionary_size nonzero_limit \n", "1000 1 00:00:00.000673 2.16 word pairs / s \n", " 10 00:00:00.000409 13.06 word pairs / s \n", " 100 00:00:00.000621 196.80 word pairs / s \n", "1000000 1 00:00:00.810661 0.00 word pairs / s \n", " 10 00:00:00.110013 0.00 word pairs / s \n", " 100 00:00:00.164959 0.03 word pairs / s \n", "2010000 1 00:00:01.159273 0.00 word pairs / s \n", " 10 00:00:00.429011 0.00 word pairs / s \n", " 100 00:00:00.433687 0.02 word pairs / s \n", "\n", " processing_speed \n", "dictionary_size nonzero_limit \n", "1000 1 2.16 Kword pairs / s \n", " 10 1.31 Kword pairs / s \n", " 100 1.97 Kword pairs / s \n", "1000000 1 1.23 Kword pairs / s \n", " 10 0.17 Kword pairs / s \n", " 100 0.26 Kword pairs / s \n", "2010000 1 0.85 Kword pairs / s \n", " 10 0.32 Kword pairs / s \n", " 100 0.32 Kword pairs / s " ] }, "execution_count": 19, "metadata": {}, "output_type": "execute_result" } ], "source": [ "display(df.apply(lambda x: (x - x.mean()).std())).loc[\n", " [1000, 1000000, len(full_dictionary)], :].loc[\n", " :, [\"production_duration\", \"production_speed\", \"processing_speed\"]]" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "#### WordEmbeddingSimilarityIndex\n", "Lastly, we measure the speed at which the **WordEmbeddingSimilarityIndex** builder class constructs an instance and produces term similarities. Gensim currently supports slow and precise nearest neighbor search, and also approximate nearest neighbor search using [ANNOY][]. We evaluate both options.\n", "\n", " [ANNOY]: https://github.com/spotify/annoy (Approximate Nearest Neighbors in C++/Python optimized for memory usage and loading/saving to disk)" ] }, { "cell_type": "code", "execution_count": 20, "metadata": {}, "outputs": [], "source": [ "def benchmark(configuration):\n", " (model, dictionary), nonzero_limit, annoy_n_trees, query_terms, repetition = configuration\n", " use_annoy = annoy_n_trees > 0\n", " model.init_sims()\n", " \n", " start_time = time()\n", " if use_annoy:\n", " annoy = AnnoyIndexer(model, annoy_n_trees)\n", " kwargs = {\"indexer\": annoy}\n", " else:\n", " kwargs = {}\n", " index = WordEmbeddingSimilarityIndex(model, kwargs=kwargs)\n", " end_time = time()\n", " constructor_duration = end_time - start_time\n", " \n", " start_time = time()\n", " for term in query_terms:\n", " for _j, _k in zip(index.most_similar(term, topn=nonzero_limit), range(nonzero_limit)):\n", " pass\n", " end_time = time()\n", " production_duration = end_time - start_time\n", " \n", " return {\n", " \"dictionary_size\": len(dictionary),\n", " \"mean_query_term_length\": np.mean([len(term) for term in query_terms]),\n", " \"nonzero_limit\": nonzero_limit,\n", " \"use_annoy\": use_annoy,\n", " \"annoy_n_trees\": annoy_n_trees,\n", " \"repetition\": repetition,\n", " \"constructor_duration\": constructor_duration,\n", " \"production_duration\": production_duration, }" ] }, { "cell_type": "code", "execution_count": 21, "metadata": {}, "outputs": [ { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "842bb1a60f814110a8f20eb44a973397", "version_major": 2, "version_minor": 0 }, "text/plain": [ "HBox(children=(IntProgress(value=0, max=5), HTML(value='')))" ] }, "metadata": {}, "output_type": "display_data" }, { "name": "stdout", "output_type": "stream", "text": [ "\n" ] } ], "source": [ "models = []\n", "for dictionary in tqdm(dictionaries, desc=\"models\"):\n", " if dictionary == full_dictionary:\n", " models.append(full_model)\n", " continue\n", " model = full_model.__class__(full_model.vector_size)\n", " model.vocab = {word: deepcopy(full_model.vocab[word]) for word in dictionary.values()}\n", " model.index2entity = []\n", " vector_indices = []\n", " for index, word in enumerate(full_model.index2entity):\n", " if word in model.vocab.keys():\n", " model.index2entity.append(word)\n", " model.vocab[word].index = len(vector_indices)\n", " vector_indices.append(index)\n", " model.vectors = full_model.vectors[vector_indices]\n", " models.append(model)\n", "annoy_n_trees = [0] + [10**k for k in range(3)]\n", "seed(RANDOM_SEED)\n", "query_terms = sample(list(min_dictionary.values()), 1000)\n", "\n", "configurations = product(zip(models, dictionaries), nonzero_limits, annoy_n_trees, [query_terms], repetitions)\n", "results = benchmark_results(benchmark, configurations, \"matrix_speed.builder_results.wordembeddings\")" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The following tables show how long it takes to construct an ANNOY index and the builder class instance (the **constructor_duration** column), how long it takes to retrieve the most similar terms for 1,000 randomly sampled terms from a dictionary (the **production_duration** column), the mean term similarity production speed (the **production_speed** column) and the mean term similarity processing speed (the **processing_speed** column) as we vary the dictionary size (the **dictionary_size** column), the maximum number of most similar terms that will be retrieved (the **nonzero_limit** column), and the number of constructed ANNOY trees (the **annoy_n_trees** column). Ten independendent measurements were taken. The top table shows the mean values and the bottom table shows the standard deviations.\n", "\n", "If we do not use ANNOY (**annoy_n_trees**${}=0$), then **production_speed** is proportional to **nonzero_limit / dictionary_size**. \n", "If we do use ANNOY (**annoy_n_trees**${}>0$), then **production_speed** is proportional to **nonzero_limit / (annoy_n_trees)**${}^{1/2}$." ] }, { "cell_type": "code", "execution_count": 22, "metadata": {}, "outputs": [], "source": [ "df = pd.DataFrame(results)\n", "df[\"processing_speed\"] = df.dictionary_size * len(query_terms) / df.production_duration\n", "df[\"production_speed\"] = df.nonzero_limit * len(query_terms) / df.production_duration\n", "df = df.groupby([\"dictionary_size\", \"nonzero_limit\", \"annoy_n_trees\"])\n", "\n", "def display(df):\n", " df[\"constructor_duration\"] = [timedelta(0, duration) for duration in df[\"constructor_duration\"]]\n", " df[\"production_duration\"] = [timedelta(0, duration) for duration in df[\"production_duration\"]]\n", " df[\"processing_speed\"] = [\"%.02f Kword pairs / s\" % (speed / 1000) for speed in df[\"processing_speed\"]]\n", " df[\"production_speed\"] = [\"%.02f Kword pairs / s\" % (speed / 1000) for speed in df[\"production_speed\"]]\n", " return df" ] }, { "cell_type": "code", "execution_count": 23, "metadata": {}, "outputs": [ { "data": { "text/html": [ "<div>\n", "<style scoped>\n", " .dataframe tbody tr th:only-of-type {\n", " vertical-align: middle;\n", " }\n", "\n", " .dataframe tbody tr th {\n", " vertical-align: top;\n", " }\n", "\n", " .dataframe thead th {\n", " text-align: right;\n", " }\n", "</style>\n", "<table border=\"1\" class=\"dataframe\">\n", " <thead>\n", " <tr style=\"text-align: right;\">\n", " <th></th>\n", " <th></th>\n", " <th></th>\n", " <th>constructor_duration</th>\n", " <th>production_duration</th>\n", " <th>production_speed</th>\n", " <th>processing_speed</th>\n", " </tr>\n", " <tr>\n", " <th>dictionary_size</th>\n", " <th>nonzero_limit</th>\n", " <th>annoy_n_trees</th>\n", " <th></th>\n", " <th></th>\n", " <th></th>\n", " <th></th>\n", " </tr>\n", " </thead>\n", " <tbody>\n", " <tr>\n", " <th rowspan=\"6\" valign=\"top\">1000000</th>\n", " <th rowspan=\"3\" valign=\"top\">1</th>\n", " <th>0</th>\n", " <td>00:00:00.000007</td>\n", " <td>00:00:19.962977</td>\n", " <td>0.05 Kword pairs / s</td>\n", " <td>50094.22 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>1</th>\n", " <td>00:00:30.268797</td>\n", " <td>00:00:00.097011</td>\n", " <td>10.32 Kword pairs / s</td>\n", " <td>10320061.76 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>100</th>\n", " <td>00:06:23.415982</td>\n", " <td>00:00:00.160870</td>\n", " <td>6.24 Kword pairs / s</td>\n", " <td>6236688.27 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"3\" valign=\"top\">100</th>\n", " <th>0</th>\n", " <td>00:00:00.000008</td>\n", " <td>00:00:22.868372</td>\n", " <td>4.37 Kword pairs / s</td>\n", " <td>43729.34 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>1</th>\n", " <td>00:00:31.154876</td>\n", " <td>00:00:00.156238</td>\n", " <td>641.91 Kword pairs / s</td>\n", " <td>6419086.99 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>100</th>\n", " <td>00:06:23.290572</td>\n", " <td>00:00:01.297445</td>\n", " <td>77.13 Kword pairs / s</td>\n", " <td>771277.71 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"6\" valign=\"top\">2010000</th>\n", " <th rowspan=\"3\" valign=\"top\">1</th>\n", " <th>0</th>\n", " <td>00:00:00.000007</td>\n", " <td>00:01:55.303216</td>\n", " <td>0.01 Kword pairs / s</td>\n", " <td>17432.79 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>1</th>\n", " <td>00:01:34.004196</td>\n", " <td>00:00:00.190463</td>\n", " <td>5.25 Kword pairs / s</td>\n", " <td>10561607.14 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>100</th>\n", " <td>00:23:29.796006</td>\n", " <td>00:00:00.339500</td>\n", " <td>2.96 Kword pairs / s</td>\n", " <td>5954865.50 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"3\" valign=\"top\">100</th>\n", " <th>0</th>\n", " <td>00:00:00.000007</td>\n", " <td>00:02:11.926861</td>\n", " <td>0.76 Kword pairs / s</td>\n", " <td>15236.46 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>1</th>\n", " <td>00:01:35.813414</td>\n", " <td>00:00:00.301120</td>\n", " <td>332.38 Kword pairs / s</td>\n", " <td>6680879.02 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>100</th>\n", " <td>00:23:05.155399</td>\n", " <td>00:00:03.031527</td>\n", " <td>33.42 Kword pairs / s</td>\n", " <td>671683.05 Kword pairs / s</td>\n", " </tr>\n", " </tbody>\n", "</table>\n", "</div>" ], "text/plain": [ " constructor_duration \\\n", "dictionary_size nonzero_limit annoy_n_trees \n", "1000000 1 0 00:00:00.000007 \n", " 1 00:00:30.268797 \n", " 100 00:06:23.415982 \n", " 100 0 00:00:00.000008 \n", " 1 00:00:31.154876 \n", " 100 00:06:23.290572 \n", "2010000 1 0 00:00:00.000007 \n", " 1 00:01:34.004196 \n", " 100 00:23:29.796006 \n", " 100 0 00:00:00.000007 \n", " 1 00:01:35.813414 \n", " 100 00:23:05.155399 \n", "\n", " production_duration \\\n", "dictionary_size nonzero_limit annoy_n_trees \n", "1000000 1 0 00:00:19.962977 \n", " 1 00:00:00.097011 \n", " 100 00:00:00.160870 \n", " 100 0 00:00:22.868372 \n", " 1 00:00:00.156238 \n", " 100 00:00:01.297445 \n", "2010000 1 0 00:01:55.303216 \n", " 1 00:00:00.190463 \n", " 100 00:00:00.339500 \n", " 100 0 00:02:11.926861 \n", " 1 00:00:00.301120 \n", " 100 00:00:03.031527 \n", "\n", " production_speed \\\n", "dictionary_size nonzero_limit annoy_n_trees \n", "1000000 1 0 0.05 Kword pairs / s \n", " 1 10.32 Kword pairs / s \n", " 100 6.24 Kword pairs / s \n", " 100 0 4.37 Kword pairs / s \n", " 1 641.91 Kword pairs / s \n", " 100 77.13 Kword pairs / s \n", "2010000 1 0 0.01 Kword pairs / s \n", " 1 5.25 Kword pairs / s \n", " 100 2.96 Kword pairs / s \n", " 100 0 0.76 Kword pairs / s \n", " 1 332.38 Kword pairs / s \n", " 100 33.42 Kword pairs / s \n", "\n", " processing_speed \n", "dictionary_size nonzero_limit annoy_n_trees \n", "1000000 1 0 50094.22 Kword pairs / s \n", " 1 10320061.76 Kword pairs / s \n", " 100 6236688.27 Kword pairs / s \n", " 100 0 43729.34 Kword pairs / s \n", " 1 6419086.99 Kword pairs / s \n", " 100 771277.71 Kword pairs / s \n", "2010000 1 0 17432.79 Kword pairs / s \n", " 1 10561607.14 Kword pairs / s \n", " 100 5954865.50 Kword pairs / s \n", " 100 0 15236.46 Kword pairs / s \n", " 1 6680879.02 Kword pairs / s \n", " 100 671683.05 Kword pairs / s " ] }, "execution_count": 23, "metadata": {}, "output_type": "execute_result" } ], "source": [ "display(df.mean()).loc[\n", " [1000000, len(full_dictionary)], [1, 100], [0, 1, 100]].loc[\n", " :, [\"constructor_duration\", \"production_duration\", \"production_speed\", \"processing_speed\"]]" ] }, { "cell_type": "code", "execution_count": 24, "metadata": {}, "outputs": [ { "data": { "text/html": [ "<div>\n", "<style scoped>\n", " .dataframe tbody tr th:only-of-type {\n", " vertical-align: middle;\n", " }\n", "\n", " .dataframe tbody tr th {\n", " vertical-align: top;\n", " }\n", "\n", " .dataframe thead th {\n", " text-align: right;\n", " }\n", "</style>\n", "<table border=\"1\" class=\"dataframe\">\n", " <thead>\n", " <tr style=\"text-align: right;\">\n", " <th></th>\n", " <th></th>\n", " <th></th>\n", " <th>constructor_duration</th>\n", " <th>production_duration</th>\n", " <th>production_speed</th>\n", " <th>processing_speed</th>\n", " </tr>\n", " <tr>\n", " <th>dictionary_size</th>\n", " <th>nonzero_limit</th>\n", " <th>annoy_n_trees</th>\n", " <th></th>\n", " <th></th>\n", " <th></th>\n", " <th></th>\n", " </tr>\n", " </thead>\n", " <tbody>\n", " <tr>\n", " <th rowspan=\"6\" valign=\"top\">1000000</th>\n", " <th rowspan=\"3\" valign=\"top\">1</th>\n", " <th>0</th>\n", " <td>00:00:00.000002</td>\n", " <td>00:00:00.115644</td>\n", " <td>0.00 Kword pairs / s</td>\n", " <td>286.27 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>1</th>\n", " <td>00:00:01.854097</td>\n", " <td>00:00:00.003517</td>\n", " <td>0.37 Kword pairs / s</td>\n", " <td>367959.55 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>100</th>\n", " <td>00:00:04.702035</td>\n", " <td>00:00:00.010444</td>\n", " <td>0.35 Kword pairs / s</td>\n", " <td>350506.05 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"3\" valign=\"top\">100</th>\n", " <th>0</th>\n", " <td>00:00:00.000002</td>\n", " <td>00:00:00.104872</td>\n", " <td>0.02 Kword pairs / s</td>\n", " <td>198.86 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>1</th>\n", " <td>00:00:01.163678</td>\n", " <td>00:00:00.008939</td>\n", " <td>36.14 Kword pairs / s</td>\n", " <td>361441.71 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>100</th>\n", " <td>00:00:06.818568</td>\n", " <td>00:00:00.036979</td>\n", " <td>2.07 Kword pairs / s</td>\n", " <td>20741.69 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"6\" valign=\"top\">2010000</th>\n", " <th rowspan=\"3\" valign=\"top\">1</th>\n", " <th>0</th>\n", " <td>00:00:00.000001</td>\n", " <td>00:00:00.653177</td>\n", " <td>0.00 Kword pairs / s</td>\n", " <td>97.50 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>1</th>\n", " <td>00:00:04.677209</td>\n", " <td>00:00:00.005679</td>\n", " <td>0.16 Kword pairs / s</td>\n", " <td>311832.91 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>100</th>\n", " <td>00:01:38.562684</td>\n", " <td>00:00:00.029887</td>\n", " <td>0.22 Kword pairs / s</td>\n", " <td>434681.25 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"3\" valign=\"top\">100</th>\n", " <th>0</th>\n", " <td>00:00:00.000001</td>\n", " <td>00:00:00.979613</td>\n", " <td>0.01 Kword pairs / s</td>\n", " <td>111.85 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>1</th>\n", " <td>00:00:03.207474</td>\n", " <td>00:00:00.009479</td>\n", " <td>10.18 Kword pairs / s</td>\n", " <td>204614.80 Kword pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>100</th>\n", " <td>00:00:55.119595</td>\n", " <td>00:00:00.419531</td>\n", " <td>3.46 Kword pairs / s</td>\n", " <td>69543.35 Kword pairs / s</td>\n", " </tr>\n", " </tbody>\n", "</table>\n", "</div>" ], "text/plain": [ " constructor_duration \\\n", "dictionary_size nonzero_limit annoy_n_trees \n", "1000000 1 0 00:00:00.000002 \n", " 1 00:00:01.854097 \n", " 100 00:00:04.702035 \n", " 100 0 00:00:00.000002 \n", " 1 00:00:01.163678 \n", " 100 00:00:06.818568 \n", "2010000 1 0 00:00:00.000001 \n", " 1 00:00:04.677209 \n", " 100 00:01:38.562684 \n", " 100 0 00:00:00.000001 \n", " 1 00:00:03.207474 \n", " 100 00:00:55.119595 \n", "\n", " production_duration \\\n", "dictionary_size nonzero_limit annoy_n_trees \n", "1000000 1 0 00:00:00.115644 \n", " 1 00:00:00.003517 \n", " 100 00:00:00.010444 \n", " 100 0 00:00:00.104872 \n", " 1 00:00:00.008939 \n", " 100 00:00:00.036979 \n", "2010000 1 0 00:00:00.653177 \n", " 1 00:00:00.005679 \n", " 100 00:00:00.029887 \n", " 100 0 00:00:00.979613 \n", " 1 00:00:00.009479 \n", " 100 00:00:00.419531 \n", "\n", " production_speed \\\n", "dictionary_size nonzero_limit annoy_n_trees \n", "1000000 1 0 0.00 Kword pairs / s \n", " 1 0.37 Kword pairs / s \n", " 100 0.35 Kword pairs / s \n", " 100 0 0.02 Kword pairs / s \n", " 1 36.14 Kword pairs / s \n", " 100 2.07 Kword pairs / s \n", "2010000 1 0 0.00 Kword pairs / s \n", " 1 0.16 Kword pairs / s \n", " 100 0.22 Kword pairs / s \n", " 100 0 0.01 Kword pairs / s \n", " 1 10.18 Kword pairs / s \n", " 100 3.46 Kword pairs / s \n", "\n", " processing_speed \n", "dictionary_size nonzero_limit annoy_n_trees \n", "1000000 1 0 286.27 Kword pairs / s \n", " 1 367959.55 Kword pairs / s \n", " 100 350506.05 Kword pairs / s \n", " 100 0 198.86 Kword pairs / s \n", " 1 361441.71 Kword pairs / s \n", " 100 20741.69 Kword pairs / s \n", "2010000 1 0 97.50 Kword pairs / s \n", " 1 311832.91 Kword pairs / s \n", " 100 434681.25 Kword pairs / s \n", " 100 0 111.85 Kword pairs / s \n", " 1 204614.80 Kword pairs / s \n", " 100 69543.35 Kword pairs / s " ] }, "execution_count": 24, "metadata": {}, "output_type": "execute_result" } ], "source": [ "display(df.apply(lambda x: (x - x.mean()).std())).loc[\n", " [1000000, len(full_dictionary)], [1, 100], [0, 1, 100]].loc[\n", " :, [\"constructor_duration\", \"production_duration\", \"production_speed\", \"processing_speed\"]]" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Implement fast SCM between corpora\n", "\n", "In Gensim PR [#1827][], we added a base implementation of the soft cosine measure (SCM). The base implementation would compute SCM between single documents using the **softcossim** function. In the Gensim PR [#2016][], we intruduced the **SparseTermSimilarityMatrix.inner_product** method, which computes SCM not only between single documents, but also between a document and a corpus, and between two corpora.\n", "\n", "For the measurements, we use the [Google News word embeddings][word2vec-google-news-300] distributed with the C implementation of Word2Vec. From the word embeddings, we will derive a dictionary of 2.01m terms. As a corpus, we will use a random sample of 100K articles from the 4.92m English [Wikipedia articles][enwiki].\n", "\n", " [word2vec-google-news-300]: https://github.com/mmihaltz/word2vec-GoogleNews-vectors (word2vec-GoogleNews-vectors)\n", " [enwiki]: https://github.com/RaRe-Technologies/gensim-data/releases/tag/wiki-english-20171001 (wiki-english-20171001)\n", " [#1827]: https://github.com/RaRe-Technologies/gensim/pull/1827 (Implement Soft Cosine Measure - Pull Request #1827)\n", " [#2016]: https://github.com/RaRe-Technologies/gensim/pull/2016 (Implement Levenshtein term similarity matrix and fast SCM between corpora - Pull Request #2016)" ] }, { "cell_type": "code", "execution_count": 25, "metadata": {}, "outputs": [], "source": [ "full_model = api.load(\"word2vec-google-news-300\")\n", "\n", "try:\n", " with open(\"matrix_speed.corpus\", \"rb\") as file:\n", " full_corpus = pickle.load(file) \n", "except IOError:\n", " original_corpus = list(tqdm(api.load(\"wiki-english-20171001\"), desc=\"original_corpus\", total=4924894))\n", " seed(RANDOM_SEED)\n", " full_corpus = [\n", " simple_preprocess(u'\\n'.join(article[\"section_texts\"]))\n", " for article in tqdm(sample(original_corpus, 10**5), desc=\"full_corpus\", total=10**5)]\n", " del original_corpus\n", " with open(\"matrix_speed.corpus\", \"wb\") as file:\n", " pickle.dump(full_corpus, file)\n", "\n", "try:\n", " full_dictionary = Dictionary.load(\"matrix_speed.dictionary\")\n", "except IOError:\n", " full_dictionary = Dictionary([[term] for term in full_model.vocab.keys()])\n", " full_dictionary.save(\"matrix_speed.dictionary\")" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### SCM between two documents\n", "First, we measure the speed at which the **inner_product** method produces term similarities between single documents." ] }, { "cell_type": "code", "execution_count": 26, "metadata": {}, "outputs": [], "source": [ "def benchmark(configuration):\n", " (matrix, dictionary, nonzero_limit), corpus, normalized, repetition = configuration\n", " corpus_size = len(corpus)\n", " corpus = [dictionary.doc2bow(doc) for doc in corpus]\n", " corpus = [vec for vec in corpus if len(vec) > 0]\n", " \n", " start_time = time()\n", " for vec1 in corpus:\n", " for vec2 in corpus:\n", " matrix.inner_product(vec1, vec2, normalized=normalized)\n", " end_time = time()\n", " duration = end_time - start_time\n", " \n", " return {\n", " \"dictionary_size\": matrix.matrix.shape[0],\n", " \"matrix_nonzero\": matrix.matrix.nnz,\n", " \"nonzero_limit\": nonzero_limit,\n", " \"normalized\": normalized,\n", " \"corpus_size\": corpus_size,\n", " \"corpus_actual_size\": len(corpus),\n", " \"corpus_nonzero\": sum(len(vec) for vec in corpus),\n", " \"mean_document_length\": np.mean([len(doc) for doc in corpus]),\n", " \"repetition\": repetition,\n", " \"duration\": duration, }" ] }, { "cell_type": "code", "execution_count": 27, "metadata": {}, "outputs": [ { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "110675d5552847819754f0dc5b1c19e1", "version_major": 2, "version_minor": 0 }, "text/plain": [ "HBox(children=(IntProgress(value=0, max=2), HTML(value='')))" ] }, "metadata": {}, "output_type": "display_data" }, { "name": "stdout", "output_type": "stream", "text": [ "\n" ] }, { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "744e400d597440f79b5923dafb1974fc", "version_major": 2, "version_minor": 0 }, "text/plain": [ "HBox(children=(IntProgress(value=0, max=2), HTML(value='')))" ] }, "metadata": {}, "output_type": "display_data" }, { "name": "stdout", "output_type": "stream", "text": [ "\n" ] }, { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "0f84efc0c79a4628a9543736fc5f0c9a", "version_major": 2, "version_minor": 0 }, "text/plain": [ "HBox(children=(IntProgress(value=0, max=2), HTML(value='')))" ] }, "metadata": {}, "output_type": "display_data" }, { "name": "stdout", "output_type": "stream", "text": [ "\n" ] }, { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "8a185a8e530e4481b90056222f5f0a1c", "version_major": 2, "version_minor": 0 }, "text/plain": [ "HBox(children=(IntProgress(value=0, max=6), HTML(value='')))" ] }, "metadata": {}, "output_type": "display_data" }, { "name": "stderr", "output_type": "stream", "text": [ "/mnt/storage/home/novotny/.virtualenvs/gensim/lib/python3.4/site-packages/gensim/matutils.py:738: FutureWarning: Conversion of the second argument of issubdtype from `int` to `np.signedinteger` is deprecated. In future, it will be treated as `np.int64 == np.dtype(int).type`.\n", " if np.issubdtype(vec.dtype, np.int):\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ "\n" ] } ], "source": [ "seed(RANDOM_SEED)\n", "dictionary_sizes = [1000, 100000]\n", "dictionaries = []\n", "for size in tqdm(dictionary_sizes, desc=\"dictionaries\"):\n", " dictionary = Dictionary([sample(list(full_dictionary.values()), size)])\n", " dictionaries.append(dictionary)\n", "min_dictionary = sorted((len(dictionary), dictionary) for dictionary in dictionaries)[0][1]\n", "\n", "corpus_sizes = [100, 1000]\n", "corpora = []\n", "for size in tqdm(corpus_sizes, desc=\"corpora\"):\n", " corpus = sample(full_corpus, size)\n", " corpora.append(corpus)\n", "\n", "models = []\n", "for dictionary in tqdm(dictionaries, desc=\"models\"):\n", " if dictionary == full_dictionary:\n", " models.append(full_model)\n", " continue\n", " model = full_model.__class__(full_model.vector_size)\n", " model.vocab = {word: deepcopy(full_model.vocab[word]) for word in dictionary.values()}\n", " model.index2entity = []\n", " vector_indices = []\n", " for index, word in enumerate(full_model.index2entity):\n", " if word in model.vocab.keys():\n", " model.index2entity.append(word)\n", " model.vocab[word].index = len(vector_indices)\n", " vector_indices.append(index)\n", " model.vectors = full_model.vectors[vector_indices]\n", " models.append(model)\n", "\n", "nonzero_limits = [1, 10, 100]\n", "matrices = []\n", "for (model, dictionary), nonzero_limit in tqdm(\n", " list(product(zip(models, dictionaries), nonzero_limits)), desc=\"matrices\"):\n", " annoy = AnnoyIndexer(model, 1)\n", " index = WordEmbeddingSimilarityIndex(model, kwargs={\"indexer\": annoy})\n", " matrix = SparseTermSimilarityMatrix(index, dictionary, nonzero_limit=nonzero_limit)\n", " matrices.append((matrix, dictionary, nonzero_limit))\n", " del annoy\n", "\n", "normalization = (True, False)\n", "repetitions = range(10)" ] }, { "cell_type": "code", "execution_count": 28, "metadata": {}, "outputs": [], "source": [ "configurations = product(matrices, corpora, normalization, repetitions)\n", "results = benchmark_results(benchmark, configurations, \"matrix_speed.inner-product_results.doc_doc\")" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The following tables show how long it takes to compute the **inner_product** method between all document vectors in a corpus (the **duration** column), how many nonzero elements there are in a corpus matrix (the **corpus_nonzero** column), how many nonzero elements there are in a term similarity matrix (the **matrix_nonzero** column) and the mean document similarity production speed (the **speed** column) as we vary the dictionary size (the **dictionary_size** column), the size of the corpus (the **corpus_size** column), the maximum number of nonzero elements in a single column of the matrix (the **nonzero_limit** column), and the matrix symmetry constraint (the **symmetric** column). Ten independendent measurements were taken. The top table shows the mean values and the bottom table shows the standard deviations.\n", "\n", "The **speed** is proportional to the square of the number of unique terms shared by the two document vectors. In our scenario as well as the standard IR scenario, this means **speed** is constant. Computing a normalized inner product (**normalized**${}={}$True) results in a constant speed decrease." ] }, { "cell_type": "code", "execution_count": 29, "metadata": {}, "outputs": [], "source": [ "df = pd.DataFrame(results)\n", "df[\"speed\"] = df.corpus_actual_size**2 / df.duration\n", "del df[\"corpus_actual_size\"]\n", "df = df.groupby([\"dictionary_size\", \"corpus_size\", \"nonzero_limit\", \"normalized\"])\n", "\n", "def display(df):\n", " df[\"duration\"] = [timedelta(0, duration) for duration in df[\"duration\"]]\n", " df[\"speed\"] = [\"%.02f Kdoc pairs / s\" % (speed / 1000) for speed in df[\"speed\"]]\n", " return df" ] }, { "cell_type": "code", "execution_count": 30, "metadata": {}, "outputs": [ { "data": { "text/html": [ "<div>\n", "<style scoped>\n", " .dataframe tbody tr th:only-of-type {\n", " vertical-align: middle;\n", " }\n", "\n", " .dataframe tbody tr th {\n", " vertical-align: top;\n", " }\n", "\n", " .dataframe thead th {\n", " text-align: right;\n", " }\n", "</style>\n", "<table border=\"1\" class=\"dataframe\">\n", " <thead>\n", " <tr style=\"text-align: right;\">\n", " <th></th>\n", " <th></th>\n", " <th></th>\n", " <th></th>\n", " <th>duration</th>\n", " <th>corpus_nonzero</th>\n", " <th>matrix_nonzero</th>\n", " <th>speed</th>\n", " </tr>\n", " <tr>\n", " <th>dictionary_size</th>\n", " <th>corpus_size</th>\n", " <th>nonzero_limit</th>\n", " <th>normalized</th>\n", " <th></th>\n", " <th></th>\n", " <th></th>\n", " <th></th>\n", " </tr>\n", " </thead>\n", " <tbody>\n", " <tr>\n", " <th rowspan=\"8\" valign=\"top\">1000</th>\n", " <th rowspan=\"4\" valign=\"top\">100</th>\n", " <th rowspan=\"2\" valign=\"top\">1</th>\n", " <th>False</th>\n", " <td>00:00:00.007383</td>\n", " <td>3.0</td>\n", " <td>1000.0</td>\n", " <td>1.23 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:00:00.009028</td>\n", " <td>3.0</td>\n", " <td>1000.0</td>\n", " <td>1.01 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"2\" valign=\"top\">100</th>\n", " <th>False</th>\n", " <td>00:00:00.007657</td>\n", " <td>3.0</td>\n", " <td>84944.0</td>\n", " <td>1.19 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:00:00.008238</td>\n", " <td>3.0</td>\n", " <td>84944.0</td>\n", " <td>1.10 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"4\" valign=\"top\">1000</th>\n", " <th rowspan=\"2\" valign=\"top\">1</th>\n", " <th>False</th>\n", " <td>00:00:00.414364</td>\n", " <td>26.0</td>\n", " <td>1000.0</td>\n", " <td>1.39 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:00:00.473789</td>\n", " <td>26.0</td>\n", " <td>1000.0</td>\n", " <td>1.22 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"2\" valign=\"top\">100</th>\n", " <th>False</th>\n", " <td>00:00:00.430833</td>\n", " <td>26.0</td>\n", " <td>84944.0</td>\n", " <td>1.35 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:00:00.453477</td>\n", " <td>26.0</td>\n", " <td>84944.0</td>\n", " <td>1.27 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"8\" valign=\"top\">100000</th>\n", " <th rowspan=\"4\" valign=\"top\">100</th>\n", " <th rowspan=\"2\" valign=\"top\">1</th>\n", " <th>False</th>\n", " <td>00:00:05.236376</td>\n", " <td>423.0</td>\n", " <td>101868.0</td>\n", " <td>1.29 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:00:05.623463</td>\n", " <td>423.0</td>\n", " <td>101868.0</td>\n", " <td>1.20 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"2\" valign=\"top\">100</th>\n", " <th>False</th>\n", " <td>00:00:05.083829</td>\n", " <td>423.0</td>\n", " <td>8202884.0</td>\n", " <td>1.33 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:00:05.576003</td>\n", " <td>423.0</td>\n", " <td>8202884.0</td>\n", " <td>1.21 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"4\" valign=\"top\">1000</th>\n", " <th rowspan=\"2\" valign=\"top\">1</th>\n", " <th>False</th>\n", " <td>00:08:59.285347</td>\n", " <td>5162.0</td>\n", " <td>101868.0</td>\n", " <td>1.26 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:09:57.693219</td>\n", " <td>5162.0</td>\n", " <td>101868.0</td>\n", " <td>1.14 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"2\" valign=\"top\">100</th>\n", " <th>False</th>\n", " <td>00:09:23.213450</td>\n", " <td>5162.0</td>\n", " <td>8202884.0</td>\n", " <td>1.21 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:10:10.612458</td>\n", " <td>5162.0</td>\n", " <td>8202884.0</td>\n", " <td>1.12 Kdoc pairs / s</td>\n", " </tr>\n", " </tbody>\n", "</table>\n", "</div>" ], "text/plain": [ " duration \\\n", "dictionary_size corpus_size nonzero_limit normalized \n", "1000 100 1 False 00:00:00.007383 \n", " True 00:00:00.009028 \n", " 100 False 00:00:00.007657 \n", " True 00:00:00.008238 \n", " 1000 1 False 00:00:00.414364 \n", " True 00:00:00.473789 \n", " 100 False 00:00:00.430833 \n", " True 00:00:00.453477 \n", "100000 100 1 False 00:00:05.236376 \n", " True 00:00:05.623463 \n", " 100 False 00:00:05.083829 \n", " True 00:00:05.576003 \n", " 1000 1 False 00:08:59.285347 \n", " True 00:09:57.693219 \n", " 100 False 00:09:23.213450 \n", " True 00:10:10.612458 \n", "\n", " corpus_nonzero \\\n", "dictionary_size corpus_size nonzero_limit normalized \n", "1000 100 1 False 3.0 \n", " True 3.0 \n", " 100 False 3.0 \n", " True 3.0 \n", " 1000 1 False 26.0 \n", " True 26.0 \n", " 100 False 26.0 \n", " True 26.0 \n", "100000 100 1 False 423.0 \n", " True 423.0 \n", " 100 False 423.0 \n", " True 423.0 \n", " 1000 1 False 5162.0 \n", " True 5162.0 \n", " 100 False 5162.0 \n", " True 5162.0 \n", "\n", " matrix_nonzero \\\n", "dictionary_size corpus_size nonzero_limit normalized \n", "1000 100 1 False 1000.0 \n", " True 1000.0 \n", " 100 False 84944.0 \n", " True 84944.0 \n", " 1000 1 False 1000.0 \n", " True 1000.0 \n", " 100 False 84944.0 \n", " True 84944.0 \n", "100000 100 1 False 101868.0 \n", " True 101868.0 \n", " 100 False 8202884.0 \n", " True 8202884.0 \n", " 1000 1 False 101868.0 \n", " True 101868.0 \n", " 100 False 8202884.0 \n", " True 8202884.0 \n", "\n", " speed \n", "dictionary_size corpus_size nonzero_limit normalized \n", "1000 100 1 False 1.23 Kdoc pairs / s \n", " True 1.01 Kdoc pairs / s \n", " 100 False 1.19 Kdoc pairs / s \n", " True 1.10 Kdoc pairs / s \n", " 1000 1 False 1.39 Kdoc pairs / s \n", " True 1.22 Kdoc pairs / s \n", " 100 False 1.35 Kdoc pairs / s \n", " True 1.27 Kdoc pairs / s \n", "100000 100 1 False 1.29 Kdoc pairs / s \n", " True 1.20 Kdoc pairs / s \n", " 100 False 1.33 Kdoc pairs / s \n", " True 1.21 Kdoc pairs / s \n", " 1000 1 False 1.26 Kdoc pairs / s \n", " True 1.14 Kdoc pairs / s \n", " 100 False 1.21 Kdoc pairs / s \n", " True 1.12 Kdoc pairs / s " ] }, "execution_count": 30, "metadata": {}, "output_type": "execute_result" } ], "source": [ "display(df.mean()).loc[\n", " [1000, 100000], :, [1, 100], :].loc[\n", " :, [\"duration\", \"corpus_nonzero\", \"matrix_nonzero\", \"speed\"]]" ] }, { "cell_type": "code", "execution_count": 31, "metadata": {}, "outputs": [ { "data": { "text/html": [ "<div>\n", "<style scoped>\n", " .dataframe tbody tr th:only-of-type {\n", " vertical-align: middle;\n", " }\n", "\n", " .dataframe tbody tr th {\n", " vertical-align: top;\n", " }\n", "\n", " .dataframe thead th {\n", " text-align: right;\n", " }\n", "</style>\n", "<table border=\"1\" class=\"dataframe\">\n", " <thead>\n", " <tr style=\"text-align: right;\">\n", " <th></th>\n", " <th></th>\n", " <th></th>\n", " <th></th>\n", " <th>duration</th>\n", " <th>corpus_nonzero</th>\n", " <th>matrix_nonzero</th>\n", " <th>speed</th>\n", " </tr>\n", " <tr>\n", " <th>dictionary_size</th>\n", " <th>corpus_size</th>\n", " <th>nonzero_limit</th>\n", " <th>normalized</th>\n", " <th></th>\n", " <th></th>\n", " <th></th>\n", " <th></th>\n", " </tr>\n", " </thead>\n", " <tbody>\n", " <tr>\n", " <th rowspan=\"8\" valign=\"top\">1000</th>\n", " <th rowspan=\"4\" valign=\"top\">100</th>\n", " <th rowspan=\"2\" valign=\"top\">1</th>\n", " <th>False</th>\n", " <td>00:00:00.000871</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.13 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:00:00.001315</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.14 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"2\" valign=\"top\">100</th>\n", " <th>False</th>\n", " <td>00:00:00.000893</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.12 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:00:00.000631</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.08 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"4\" valign=\"top\">1000</th>\n", " <th rowspan=\"2\" valign=\"top\">1</th>\n", " <th>False</th>\n", " <td>00:00:00.014460</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.05 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:00:00.025250</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.07 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"2\" valign=\"top\">100</th>\n", " <th>False</th>\n", " <td>00:00:00.039088</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.11 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:00:00.023602</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.06 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"8\" valign=\"top\">100000</th>\n", " <th rowspan=\"4\" valign=\"top\">100</th>\n", " <th rowspan=\"2\" valign=\"top\">1</th>\n", " <th>False</th>\n", " <td>00:00:00.276359</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.07 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:00:00.278806</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.06 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"2\" valign=\"top\">100</th>\n", " <th>False</th>\n", " <td>00:00:00.286781</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.07 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:00:00.313397</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.06 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"4\" valign=\"top\">1000</th>\n", " <th rowspan=\"2\" valign=\"top\">1</th>\n", " <th>False</th>\n", " <td>00:00:14.321101</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.03 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:00:23.526104</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.05 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"2\" valign=\"top\">100</th>\n", " <th>False</th>\n", " <td>00:00:05.899527</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.01 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:00:24.454422</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.05 Kdoc pairs / s</td>\n", " </tr>\n", " </tbody>\n", "</table>\n", "</div>" ], "text/plain": [ " duration \\\n", "dictionary_size corpus_size nonzero_limit normalized \n", "1000 100 1 False 00:00:00.000871 \n", " True 00:00:00.001315 \n", " 100 False 00:00:00.000893 \n", " True 00:00:00.000631 \n", " 1000 1 False 00:00:00.014460 \n", " True 00:00:00.025250 \n", " 100 False 00:00:00.039088 \n", " True 00:00:00.023602 \n", "100000 100 1 False 00:00:00.276359 \n", " True 00:00:00.278806 \n", " 100 False 00:00:00.286781 \n", " True 00:00:00.313397 \n", " 1000 1 False 00:00:14.321101 \n", " True 00:00:23.526104 \n", " 100 False 00:00:05.899527 \n", " True 00:00:24.454422 \n", "\n", " corpus_nonzero \\\n", "dictionary_size corpus_size nonzero_limit normalized \n", "1000 100 1 False 0.0 \n", " True 0.0 \n", " 100 False 0.0 \n", " True 0.0 \n", " 1000 1 False 0.0 \n", " True 0.0 \n", " 100 False 0.0 \n", " True 0.0 \n", "100000 100 1 False 0.0 \n", " True 0.0 \n", " 100 False 0.0 \n", " True 0.0 \n", " 1000 1 False 0.0 \n", " True 0.0 \n", " 100 False 0.0 \n", " True 0.0 \n", "\n", " matrix_nonzero \\\n", "dictionary_size corpus_size nonzero_limit normalized \n", "1000 100 1 False 0.0 \n", " True 0.0 \n", " 100 False 0.0 \n", " True 0.0 \n", " 1000 1 False 0.0 \n", " True 0.0 \n", " 100 False 0.0 \n", " True 0.0 \n", "100000 100 1 False 0.0 \n", " True 0.0 \n", " 100 False 0.0 \n", " True 0.0 \n", " 1000 1 False 0.0 \n", " True 0.0 \n", " 100 False 0.0 \n", " True 0.0 \n", "\n", " speed \n", "dictionary_size corpus_size nonzero_limit normalized \n", "1000 100 1 False 0.13 Kdoc pairs / s \n", " True 0.14 Kdoc pairs / s \n", " 100 False 0.12 Kdoc pairs / s \n", " True 0.08 Kdoc pairs / s \n", " 1000 1 False 0.05 Kdoc pairs / s \n", " True 0.07 Kdoc pairs / s \n", " 100 False 0.11 Kdoc pairs / s \n", " True 0.06 Kdoc pairs / s \n", "100000 100 1 False 0.07 Kdoc pairs / s \n", " True 0.06 Kdoc pairs / s \n", " 100 False 0.07 Kdoc pairs / s \n", " True 0.06 Kdoc pairs / s \n", " 1000 1 False 0.03 Kdoc pairs / s \n", " True 0.05 Kdoc pairs / s \n", " 100 False 0.01 Kdoc pairs / s \n", " True 0.05 Kdoc pairs / s " ] }, "execution_count": 31, "metadata": {}, "output_type": "execute_result" } ], "source": [ "display(df.apply(lambda x: (x - x.mean()).std())).loc[\n", " [1000, 100000], :, [1, 100], :].loc[\n", " :, [\"duration\", \"corpus_nonzero\", \"matrix_nonzero\", \"speed\"]]" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### SCM between a document and a corpus\n", "Next, we measure the speed at which the **inner_product** method produces term similarities between documents and a corpus." ] }, { "cell_type": "code", "execution_count": 32, "metadata": {}, "outputs": [], "source": [ "def benchmark(configuration):\n", " (matrix, dictionary, nonzero_limit), corpus, normalized, repetition = configuration\n", " corpus_size = len(corpus)\n", " corpus = [dictionary.doc2bow(doc) for doc in corpus if doc]\n", " \n", " start_time = time()\n", " for vec in corpus:\n", " matrix.inner_product(vec, corpus, normalized=normalized)\n", " end_time = time()\n", " duration = end_time - start_time\n", " \n", " return {\n", " \"dictionary_size\": matrix.matrix.shape[0],\n", " \"matrix_nonzero\": matrix.matrix.nnz,\n", " \"nonzero_limit\": nonzero_limit,\n", " \"normalized\": normalized,\n", " \"corpus_size\": corpus_size,\n", " \"corpus_actual_size\": len(corpus),\n", " \"corpus_nonzero\": sum(len(vec) for vec in corpus),\n", " \"mean_document_length\": np.mean([len(doc) for doc in corpus]),\n", " \"repetition\": repetition,\n", " \"duration\": duration, }" ] }, { "cell_type": "code", "execution_count": 33, "metadata": {}, "outputs": [], "source": [ "configurations = product(matrices, corpora, normalization, repetitions)\n", "results = benchmark_results(benchmark, configurations, \"matrix_speed.inner-product_results.doc_corpus\")" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The **speed** is inversely proportional to **matrix_nonzero**. Computing a normalized inner product (**normalized**${}={}$True) results in a constant speed decrease." ] }, { "cell_type": "code", "execution_count": 34, "metadata": {}, "outputs": [], "source": [ "df = pd.DataFrame(results)\n", "df[\"speed\"] = df.corpus_actual_size**2 / df.duration\n", "del df[\"corpus_actual_size\"]\n", "df = df.groupby([\"dictionary_size\", \"corpus_size\", \"nonzero_limit\", \"normalized\"])\n", "\n", "def display(df):\n", " df[\"duration\"] = [timedelta(0, duration) for duration in df[\"duration\"]]\n", " df[\"speed\"] = [\"%.02f Kdoc pairs / s\" % (speed / 1000) for speed in df[\"speed\"]]\n", " return df" ] }, { "cell_type": "code", "execution_count": 35, "metadata": {}, "outputs": [ { "data": { "text/html": [ "<div>\n", "<style scoped>\n", " .dataframe tbody tr th:only-of-type {\n", " vertical-align: middle;\n", " }\n", "\n", " .dataframe tbody tr th {\n", " vertical-align: top;\n", " }\n", "\n", " .dataframe thead th {\n", " text-align: right;\n", " }\n", "</style>\n", "<table border=\"1\" class=\"dataframe\">\n", " <thead>\n", " <tr style=\"text-align: right;\">\n", " <th></th>\n", " <th></th>\n", " <th></th>\n", " <th></th>\n", " <th>duration</th>\n", " <th>corpus_nonzero</th>\n", " <th>matrix_nonzero</th>\n", " <th>speed</th>\n", " </tr>\n", " <tr>\n", " <th>dictionary_size</th>\n", " <th>corpus_size</th>\n", " <th>nonzero_limit</th>\n", " <th>normalized</th>\n", " <th></th>\n", " <th></th>\n", " <th></th>\n", " <th></th>\n", " </tr>\n", " </thead>\n", " <tbody>\n", " <tr>\n", " <th rowspan=\"8\" valign=\"top\">1000</th>\n", " <th rowspan=\"4\" valign=\"top\">100</th>\n", " <th rowspan=\"2\" valign=\"top\">1</th>\n", " <th>False</th>\n", " <td>00:00:00.009363</td>\n", " <td>3.0</td>\n", " <td>1000.0</td>\n", " <td>1117.12 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:00:00.010948</td>\n", " <td>3.0</td>\n", " <td>1000.0</td>\n", " <td>954.13 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"2\" valign=\"top\">100</th>\n", " <th>False</th>\n", " <td>00:00:00.014128</td>\n", " <td>3.0</td>\n", " <td>84944.0</td>\n", " <td>728.91 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:00:00.018164</td>\n", " <td>3.0</td>\n", " <td>84944.0</td>\n", " <td>551.78 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"4\" valign=\"top\">1000</th>\n", " <th rowspan=\"2\" valign=\"top\">1</th>\n", " <th>False</th>\n", " <td>00:00:00.072091</td>\n", " <td>26.0</td>\n", " <td>1000.0</td>\n", " <td>13872.12 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:00:00.079284</td>\n", " <td>26.0</td>\n", " <td>1000.0</td>\n", " <td>12615.36 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"2\" valign=\"top\">100</th>\n", " <th>False</th>\n", " <td>00:00:00.162483</td>\n", " <td>26.0</td>\n", " <td>84944.0</td>\n", " <td>6188.43 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:00:00.203081</td>\n", " <td>26.0</td>\n", " <td>84944.0</td>\n", " <td>4924.48 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"8\" valign=\"top\">100000</th>\n", " <th rowspan=\"4\" valign=\"top\">100</th>\n", " <th rowspan=\"2\" valign=\"top\">1</th>\n", " <th>False</th>\n", " <td>00:00:00.278253</td>\n", " <td>423.0</td>\n", " <td>101868.0</td>\n", " <td>36.05 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:00:00.298519</td>\n", " <td>423.0</td>\n", " <td>101868.0</td>\n", " <td>33.56 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"2\" valign=\"top\">100</th>\n", " <th>False</th>\n", " <td>00:00:36.326167</td>\n", " <td>423.0</td>\n", " <td>8202884.0</td>\n", " <td>0.28 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:00:36.928802</td>\n", " <td>423.0</td>\n", " <td>8202884.0</td>\n", " <td>0.27 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"4\" valign=\"top\">1000</th>\n", " <th rowspan=\"2\" valign=\"top\">1</th>\n", " <th>False</th>\n", " <td>00:00:07.403301</td>\n", " <td>5162.0</td>\n", " <td>101868.0</td>\n", " <td>135.08 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:00:07.794943</td>\n", " <td>5162.0</td>\n", " <td>101868.0</td>\n", " <td>128.29 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"2\" valign=\"top\">100</th>\n", " <th>False</th>\n", " <td>00:05:55.674712</td>\n", " <td>5162.0</td>\n", " <td>8202884.0</td>\n", " <td>2.81 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:06:05.561398</td>\n", " <td>5162.0</td>\n", " <td>8202884.0</td>\n", " <td>2.74 Kdoc pairs / s</td>\n", " </tr>\n", " </tbody>\n", "</table>\n", "</div>" ], "text/plain": [ " duration \\\n", "dictionary_size corpus_size nonzero_limit normalized \n", "1000 100 1 False 00:00:00.009363 \n", " True 00:00:00.010948 \n", " 100 False 00:00:00.014128 \n", " True 00:00:00.018164 \n", " 1000 1 False 00:00:00.072091 \n", " True 00:00:00.079284 \n", " 100 False 00:00:00.162483 \n", " True 00:00:00.203081 \n", "100000 100 1 False 00:00:00.278253 \n", " True 00:00:00.298519 \n", " 100 False 00:00:36.326167 \n", " True 00:00:36.928802 \n", " 1000 1 False 00:00:07.403301 \n", " True 00:00:07.794943 \n", " 100 False 00:05:55.674712 \n", " True 00:06:05.561398 \n", "\n", " corpus_nonzero \\\n", "dictionary_size corpus_size nonzero_limit normalized \n", "1000 100 1 False 3.0 \n", " True 3.0 \n", " 100 False 3.0 \n", " True 3.0 \n", " 1000 1 False 26.0 \n", " True 26.0 \n", " 100 False 26.0 \n", " True 26.0 \n", "100000 100 1 False 423.0 \n", " True 423.0 \n", " 100 False 423.0 \n", " True 423.0 \n", " 1000 1 False 5162.0 \n", " True 5162.0 \n", " 100 False 5162.0 \n", " True 5162.0 \n", "\n", " matrix_nonzero \\\n", "dictionary_size corpus_size nonzero_limit normalized \n", "1000 100 1 False 1000.0 \n", " True 1000.0 \n", " 100 False 84944.0 \n", " True 84944.0 \n", " 1000 1 False 1000.0 \n", " True 1000.0 \n", " 100 False 84944.0 \n", " True 84944.0 \n", "100000 100 1 False 101868.0 \n", " True 101868.0 \n", " 100 False 8202884.0 \n", " True 8202884.0 \n", " 1000 1 False 101868.0 \n", " True 101868.0 \n", " 100 False 8202884.0 \n", " True 8202884.0 \n", "\n", " speed \n", "dictionary_size corpus_size nonzero_limit normalized \n", "1000 100 1 False 1117.12 Kdoc pairs / s \n", " True 954.13 Kdoc pairs / s \n", " 100 False 728.91 Kdoc pairs / s \n", " True 551.78 Kdoc pairs / s \n", " 1000 1 False 13872.12 Kdoc pairs / s \n", " True 12615.36 Kdoc pairs / s \n", " 100 False 6188.43 Kdoc pairs / s \n", " True 4924.48 Kdoc pairs / s \n", "100000 100 1 False 36.05 Kdoc pairs / s \n", " True 33.56 Kdoc pairs / s \n", " 100 False 0.28 Kdoc pairs / s \n", " True 0.27 Kdoc pairs / s \n", " 1000 1 False 135.08 Kdoc pairs / s \n", " True 128.29 Kdoc pairs / s \n", " 100 False 2.81 Kdoc pairs / s \n", " True 2.74 Kdoc pairs / s " ] }, "execution_count": 35, "metadata": {}, "output_type": "execute_result" } ], "source": [ "display(df.mean()).loc[\n", " [1000, 100000], :, [1, 100], :].loc[\n", " :, [\"duration\", \"corpus_nonzero\", \"matrix_nonzero\", \"speed\"]]" ] }, { "cell_type": "code", "execution_count": 36, "metadata": {}, "outputs": [ { "data": { "text/html": [ "<div>\n", "<style scoped>\n", " .dataframe tbody tr th:only-of-type {\n", " vertical-align: middle;\n", " }\n", "\n", " .dataframe tbody tr th {\n", " vertical-align: top;\n", " }\n", "\n", " .dataframe thead th {\n", " text-align: right;\n", " }\n", "</style>\n", "<table border=\"1\" class=\"dataframe\">\n", " <thead>\n", " <tr style=\"text-align: right;\">\n", " <th></th>\n", " <th></th>\n", " <th></th>\n", " <th></th>\n", " <th>duration</th>\n", " <th>corpus_nonzero</th>\n", " <th>matrix_nonzero</th>\n", " <th>speed</th>\n", " </tr>\n", " <tr>\n", " <th>dictionary_size</th>\n", " <th>corpus_size</th>\n", " <th>nonzero_limit</th>\n", " <th>normalized</th>\n", " <th></th>\n", " <th></th>\n", " <th></th>\n", " <th></th>\n", " </tr>\n", " </thead>\n", " <tbody>\n", " <tr>\n", " <th rowspan=\"8\" valign=\"top\">1000</th>\n", " <th rowspan=\"4\" valign=\"top\">100</th>\n", " <th rowspan=\"2\" valign=\"top\">1</th>\n", " <th>False</th>\n", " <td>00:00:00.002120</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>242.09 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:00:00.002387</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>207.64 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"2\" valign=\"top\">100</th>\n", " <th>False</th>\n", " <td>00:00:00.002531</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>130.94 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:00:00.000911</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>27.68 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"4\" valign=\"top\">1000</th>\n", " <th rowspan=\"2\" valign=\"top\">1</th>\n", " <th>False</th>\n", " <td>00:00:00.000587</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>112.92 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:00:00.001191</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>187.31 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"2\" valign=\"top\">100</th>\n", " <th>False</th>\n", " <td>00:00:00.011944</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>513.79 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:00:00.001793</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>43.54 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"8\" valign=\"top\">100000</th>\n", " <th rowspan=\"4\" valign=\"top\">100</th>\n", " <th rowspan=\"2\" valign=\"top\">1</th>\n", " <th>False</th>\n", " <td>00:00:00.016156</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>2.06 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:00:00.013451</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>1.47 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"2\" valign=\"top\">100</th>\n", " <th>False</th>\n", " <td>00:00:01.339787</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.01 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:00:01.617340</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.01 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"4\" valign=\"top\">1000</th>\n", " <th rowspan=\"2\" valign=\"top\">1</th>\n", " <th>False</th>\n", " <td>00:00:00.038961</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.71 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:00:00.024154</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.40 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"2\" valign=\"top\">100</th>\n", " <th>False</th>\n", " <td>00:00:07.604805</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.06 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:00:14.799519</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.10 Kdoc pairs / s</td>\n", " </tr>\n", " </tbody>\n", "</table>\n", "</div>" ], "text/plain": [ " duration \\\n", "dictionary_size corpus_size nonzero_limit normalized \n", "1000 100 1 False 00:00:00.002120 \n", " True 00:00:00.002387 \n", " 100 False 00:00:00.002531 \n", " True 00:00:00.000911 \n", " 1000 1 False 00:00:00.000587 \n", " True 00:00:00.001191 \n", " 100 False 00:00:00.011944 \n", " True 00:00:00.001793 \n", "100000 100 1 False 00:00:00.016156 \n", " True 00:00:00.013451 \n", " 100 False 00:00:01.339787 \n", " True 00:00:01.617340 \n", " 1000 1 False 00:00:00.038961 \n", " True 00:00:00.024154 \n", " 100 False 00:00:07.604805 \n", " True 00:00:14.799519 \n", "\n", " corpus_nonzero \\\n", "dictionary_size corpus_size nonzero_limit normalized \n", "1000 100 1 False 0.0 \n", " True 0.0 \n", " 100 False 0.0 \n", " True 0.0 \n", " 1000 1 False 0.0 \n", " True 0.0 \n", " 100 False 0.0 \n", " True 0.0 \n", "100000 100 1 False 0.0 \n", " True 0.0 \n", " 100 False 0.0 \n", " True 0.0 \n", " 1000 1 False 0.0 \n", " True 0.0 \n", " 100 False 0.0 \n", " True 0.0 \n", "\n", " matrix_nonzero \\\n", "dictionary_size corpus_size nonzero_limit normalized \n", "1000 100 1 False 0.0 \n", " True 0.0 \n", " 100 False 0.0 \n", " True 0.0 \n", " 1000 1 False 0.0 \n", " True 0.0 \n", " 100 False 0.0 \n", " True 0.0 \n", "100000 100 1 False 0.0 \n", " True 0.0 \n", " 100 False 0.0 \n", " True 0.0 \n", " 1000 1 False 0.0 \n", " True 0.0 \n", " 100 False 0.0 \n", " True 0.0 \n", "\n", " speed \n", "dictionary_size corpus_size nonzero_limit normalized \n", "1000 100 1 False 242.09 Kdoc pairs / s \n", " True 207.64 Kdoc pairs / s \n", " 100 False 130.94 Kdoc pairs / s \n", " True 27.68 Kdoc pairs / s \n", " 1000 1 False 112.92 Kdoc pairs / s \n", " True 187.31 Kdoc pairs / s \n", " 100 False 513.79 Kdoc pairs / s \n", " True 43.54 Kdoc pairs / s \n", "100000 100 1 False 2.06 Kdoc pairs / s \n", " True 1.47 Kdoc pairs / s \n", " 100 False 0.01 Kdoc pairs / s \n", " True 0.01 Kdoc pairs / s \n", " 1000 1 False 0.71 Kdoc pairs / s \n", " True 0.40 Kdoc pairs / s \n", " 100 False 0.06 Kdoc pairs / s \n", " True 0.10 Kdoc pairs / s " ] }, "execution_count": 36, "metadata": {}, "output_type": "execute_result" } ], "source": [ "display(df.apply(lambda x: (x - x.mean()).std())).loc[\n", " [1000, 100000], :, [1, 100], :].loc[\n", " :, [\"duration\", \"corpus_nonzero\", \"matrix_nonzero\", \"speed\"]]" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### SCM between two corpora\n", "Lastly, we measure the speed at which the **inner_product** method produces term similarities between entire corpora." ] }, { "cell_type": "code", "execution_count": 37, "metadata": {}, "outputs": [], "source": [ "def benchmark(configuration):\n", " (matrix, dictionary, nonzero_limit), corpus, normalized, repetition = configuration\n", " corpus_size = len(corpus)\n", " corpus = [dictionary.doc2bow(doc) for doc in corpus]\n", " corpus = [vec for vec in corpus if len(vec) > 0]\n", " \n", " start_time = time()\n", " matrix.inner_product(corpus, corpus, normalized=normalized)\n", " end_time = time()\n", " duration = end_time - start_time\n", " \n", " return {\n", " \"dictionary_size\": matrix.matrix.shape[0],\n", " \"matrix_nonzero\": matrix.matrix.nnz,\n", " \"nonzero_limit\": nonzero_limit,\n", " \"normalized\": normalized,\n", " \"corpus_size\": corpus_size,\n", " \"corpus_actual_size\": len(corpus),\n", " \"corpus_nonzero\": sum(len(vec) for vec in corpus),\n", " \"mean_document_length\": np.mean([len(doc) for doc in corpus]),\n", " \"repetition\": repetition,\n", " \"duration\": duration, }" ] }, { "cell_type": "code", "execution_count": 38, "metadata": {}, "outputs": [ { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "84e1344be5d944fa98368e6b3994944a", "version_major": 2, "version_minor": 0 }, "text/plain": [ "HBox(children=(IntProgress(value=0, max=2), HTML(value='')))" ] }, "metadata": {}, "output_type": "display_data" }, { "name": "stderr", "output_type": "stream", "text": [ "/mnt/storage/home/novotny/.virtualenvs/gensim/lib/python3.4/site-packages/gensim/matutils.py:738: FutureWarning: Conversion of the second argument of issubdtype from `int` to `np.signedinteger` is deprecated. In future, it will be treated as `np.int64 == np.dtype(int).type`.\n", " if np.issubdtype(vec.dtype, np.int):\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ "\n" ] } ], "source": [ "nonzero_limits = [1000]\n", "dense_matrices = []\n", "for (model, dictionary), nonzero_limit in tqdm(\n", " list(product(zip(models, dictionaries), nonzero_limits)), desc=\"matrices\"):\n", " annoy = AnnoyIndexer(model, 1)\n", " index = WordEmbeddingSimilarityIndex(model, kwargs={\"indexer\": annoy})\n", " matrix = SparseTermSimilarityMatrix(index, dictionary, nonzero_limit=nonzero_limit)\n", " matrices.append((matrix, dictionary, nonzero_limit))\n", " del annoy" ] }, { "cell_type": "code", "execution_count": 39, "metadata": {}, "outputs": [], "source": [ "configurations = product(matrices + dense_matrices, corpora + [full_corpus], normalization, repetitions)\n", "results = benchmark_results(benchmark, configurations, \"matrix_speed.inner-product_results.corpus_corpus\")" ] }, { "cell_type": "code", "execution_count": 40, "metadata": {}, "outputs": [], "source": [ "df = pd.DataFrame(results)\n", "df[\"speed\"] = df.corpus_actual_size**2 / df.duration\n", "del df[\"corpus_actual_size\"]\n", "df = df.groupby([\"dictionary_size\", \"corpus_size\", \"nonzero_limit\", \"normalized\"])\n", "\n", "def display(df):\n", " df[\"duration\"] = [timedelta(0, duration) for duration in df[\"duration\"]]\n", " df[\"speed\"] = [\"%.02f Kdoc pairs / s\" % (speed / 1000) for speed in df[\"speed\"]]\n", " return df" ] }, { "cell_type": "code", "execution_count": 41, "metadata": {}, "outputs": [ { "data": { "text/html": [ "<div>\n", "<style scoped>\n", " .dataframe tbody tr th:only-of-type {\n", " vertical-align: middle;\n", " }\n", "\n", " .dataframe tbody tr th {\n", " vertical-align: top;\n", " }\n", "\n", " .dataframe thead th {\n", " text-align: right;\n", " }\n", "</style>\n", "<table border=\"1\" class=\"dataframe\">\n", " <thead>\n", " <tr style=\"text-align: right;\">\n", " <th></th>\n", " <th></th>\n", " <th></th>\n", " <th></th>\n", " <th>duration</th>\n", " <th>corpus_nonzero</th>\n", " <th>matrix_nonzero</th>\n", " <th>speed</th>\n", " </tr>\n", " <tr>\n", " <th>dictionary_size</th>\n", " <th>corpus_size</th>\n", " <th>nonzero_limit</th>\n", " <th>normalized</th>\n", " <th></th>\n", " <th></th>\n", " <th></th>\n", " <th></th>\n", " </tr>\n", " </thead>\n", " <tbody>\n", " <tr>\n", " <th rowspan=\"24\" valign=\"top\">1000</th>\n", " <th rowspan=\"8\" valign=\"top\">100</th>\n", " <th rowspan=\"2\" valign=\"top\">1</th>\n", " <th>False</th>\n", " <td>00:00:00.001403</td>\n", " <td>3.0</td>\n", " <td>1000.0</td>\n", " <td>6.69 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:00:00.005313</td>\n", " <td>3.0</td>\n", " <td>1000.0</td>\n", " <td>1.70 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"2\" valign=\"top\">10</th>\n", " <th>False</th>\n", " <td>00:00:00.001565</td>\n", " <td>3.0</td>\n", " <td>8634.0</td>\n", " <td>5.80 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:00:00.005307</td>\n", " <td>3.0</td>\n", " <td>8634.0</td>\n", " <td>1.70 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"2\" valign=\"top\">100</th>\n", " <th>False</th>\n", " <td>00:00:00.003172</td>\n", " <td>3.0</td>\n", " <td>84944.0</td>\n", " <td>3.05 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:00:00.008461</td>\n", " <td>3.0</td>\n", " <td>84944.0</td>\n", " <td>1.07 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"2\" valign=\"top\">1000</th>\n", " <th>False</th>\n", " <td>00:00:00.021377</td>\n", " <td>3.0</td>\n", " <td>838588.0</td>\n", " <td>0.42 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:00:00.055234</td>\n", " <td>3.0</td>\n", " <td>838588.0</td>\n", " <td>0.16 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"8\" valign=\"top\">1000</th>\n", " <th rowspan=\"2\" valign=\"top\">1</th>\n", " <th>False</th>\n", " <td>00:00:00.001376</td>\n", " <td>26.0</td>\n", " <td>1000.0</td>\n", " <td>418.61 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:00:00.005019</td>\n", " <td>26.0</td>\n", " <td>1000.0</td>\n", " <td>114.78 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"2\" valign=\"top\">10</th>\n", " <th>False</th>\n", " <td>00:00:00.001511</td>\n", " <td>26.0</td>\n", " <td>8634.0</td>\n", " <td>381.50 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:00:00.005208</td>\n", " <td>26.0</td>\n", " <td>8634.0</td>\n", " <td>110.60 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"2\" valign=\"top\">100</th>\n", " <th>False</th>\n", " <td>00:00:00.003539</td>\n", " <td>26.0</td>\n", " <td>84944.0</td>\n", " <td>164.03 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:00:00.008502</td>\n", " <td>26.0</td>\n", " <td>84944.0</td>\n", " <td>67.81 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"2\" valign=\"top\">1000</th>\n", " <th>False</th>\n", " <td>00:00:00.021548</td>\n", " <td>26.0</td>\n", " <td>838588.0</td>\n", " <td>26.73 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:00:00.054425</td>\n", " <td>26.0</td>\n", " <td>838588.0</td>\n", " <td>10.59 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"8\" valign=\"top\">100000</th>\n", " <th rowspan=\"2\" valign=\"top\">1</th>\n", " <th>False</th>\n", " <td>00:00:00.019915</td>\n", " <td>2914.0</td>\n", " <td>1000.0</td>\n", " <td>391443.20 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:00:00.026118</td>\n", " <td>2914.0</td>\n", " <td>1000.0</td>\n", " <td>298377.75 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"2\" valign=\"top\">10</th>\n", " <th>False</th>\n", " <td>00:00:00.020152</td>\n", " <td>2914.0</td>\n", " <td>8634.0</td>\n", " <td>386722.55 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:00:00.026998</td>\n", " <td>2914.0</td>\n", " <td>8634.0</td>\n", " <td>288567.14 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"2\" valign=\"top\">100</th>\n", " <th>False</th>\n", " <td>00:00:00.028345</td>\n", " <td>2914.0</td>\n", " <td>84944.0</td>\n", " <td>274905.36 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:00:00.041069</td>\n", " <td>2914.0</td>\n", " <td>84944.0</td>\n", " <td>189709.57 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"2\" valign=\"top\">1000</th>\n", " <th>False</th>\n", " <td>00:00:00.089978</td>\n", " <td>2914.0</td>\n", " <td>838588.0</td>\n", " <td>86598.15 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:00:00.185611</td>\n", " <td>2914.0</td>\n", " <td>838588.0</td>\n", " <td>41971.58 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"24\" valign=\"top\">100000</th>\n", " <th rowspan=\"8\" valign=\"top\">100</th>\n", " <th rowspan=\"2\" valign=\"top\">1</th>\n", " <th>False</th>\n", " <td>00:00:00.003345</td>\n", " <td>423.0</td>\n", " <td>101868.0</td>\n", " <td>2013.92 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:00:00.008857</td>\n", " <td>423.0</td>\n", " <td>101868.0</td>\n", " <td>760.13 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"2\" valign=\"top\">10</th>\n", " <th>False</th>\n", " <td>00:00:00.032639</td>\n", " <td>423.0</td>\n", " <td>814154.0</td>\n", " <td>206.66 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:00:00.080591</td>\n", " <td>423.0</td>\n", " <td>814154.0</td>\n", " <td>83.46 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"2\" valign=\"top\">100</th>\n", " <th>False</th>\n", " <td>00:00:00.488467</td>\n", " <td>423.0</td>\n", " <td>8202884.0</td>\n", " <td>13.77 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:00:01.454507</td>\n", " <td>423.0</td>\n", " <td>8202884.0</td>\n", " <td>4.62 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"2\" valign=\"top\">1000</th>\n", " <th>False</th>\n", " <td>00:00:04.973667</td>\n", " <td>423.0</td>\n", " <td>89912542.0</td>\n", " <td>1.35 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:00:15.035711</td>\n", " <td>423.0</td>\n", " <td>89912542.0</td>\n", " <td>0.45 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"8\" valign=\"top\">1000</th>\n", " <th rowspan=\"2\" valign=\"top\">1</th>\n", " <th>False</th>\n", " <td>00:00:00.010141</td>\n", " <td>5162.0</td>\n", " <td>101868.0</td>\n", " <td>67139.73 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:00:00.016685</td>\n", " <td>5162.0</td>\n", " <td>101868.0</td>\n", " <td>40798.02 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"2\" valign=\"top\">10</th>\n", " <th>False</th>\n", " <td>00:00:00.041392</td>\n", " <td>5162.0</td>\n", " <td>814154.0</td>\n", " <td>16444.18 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:00:00.091686</td>\n", " <td>5162.0</td>\n", " <td>814154.0</td>\n", " <td>7425.08 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"2\" valign=\"top\">100</th>\n", " <th>False</th>\n", " <td>00:00:00.508916</td>\n", " <td>5162.0</td>\n", " <td>8202884.0</td>\n", " <td>1338.94 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:00:01.497556</td>\n", " <td>5162.0</td>\n", " <td>8202884.0</td>\n", " <td>454.49 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"2\" valign=\"top\">1000</th>\n", " <th>False</th>\n", " <td>00:00:05.101489</td>\n", " <td>5162.0</td>\n", " <td>89912542.0</td>\n", " <td>133.44 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:00:15.325415</td>\n", " <td>5162.0</td>\n", " <td>89912542.0</td>\n", " <td>44.42 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"8\" valign=\"top\">100000</th>\n", " <th rowspan=\"2\" valign=\"top\">1</th>\n", " <th>False</th>\n", " <td>00:00:37.145526</td>\n", " <td>525310.0</td>\n", " <td>101868.0</td>\n", " <td>192578.80 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:00:45.729004</td>\n", " <td>525310.0</td>\n", " <td>101868.0</td>\n", " <td>156431.36 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"2\" valign=\"top\">10</th>\n", " <th>False</th>\n", " <td>00:00:44.981806</td>\n", " <td>525310.0</td>\n", " <td>814154.0</td>\n", " <td>159029.88 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:00:54.245450</td>\n", " <td>525310.0</td>\n", " <td>814154.0</td>\n", " <td>131871.88 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"2\" valign=\"top\">100</th>\n", " <th>False</th>\n", " <td>00:01:15.925860</td>\n", " <td>525310.0</td>\n", " <td>8202884.0</td>\n", " <td>94216.21 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:01:29.232076</td>\n", " <td>525310.0</td>\n", " <td>8202884.0</td>\n", " <td>80177.08 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"2\" valign=\"top\">1000</th>\n", " <th>False</th>\n", " <td>00:03:17.140191</td>\n", " <td>525310.0</td>\n", " <td>89912542.0</td>\n", " <td>36286.25 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:04:05.865666</td>\n", " <td>525310.0</td>\n", " <td>89912542.0</td>\n", " <td>29097.14 Kdoc pairs / s</td>\n", " </tr>\n", " </tbody>\n", "</table>\n", "</div>" ], "text/plain": [ " duration \\\n", "dictionary_size corpus_size nonzero_limit normalized \n", "1000 100 1 False 00:00:00.001403 \n", " True 00:00:00.005313 \n", " 10 False 00:00:00.001565 \n", " True 00:00:00.005307 \n", " 100 False 00:00:00.003172 \n", " True 00:00:00.008461 \n", " 1000 False 00:00:00.021377 \n", " True 00:00:00.055234 \n", " 1000 1 False 00:00:00.001376 \n", " True 00:00:00.005019 \n", " 10 False 00:00:00.001511 \n", " True 00:00:00.005208 \n", " 100 False 00:00:00.003539 \n", " True 00:00:00.008502 \n", " 1000 False 00:00:00.021548 \n", " True 00:00:00.054425 \n", " 100000 1 False 00:00:00.019915 \n", " True 00:00:00.026118 \n", " 10 False 00:00:00.020152 \n", " True 00:00:00.026998 \n", " 100 False 00:00:00.028345 \n", " True 00:00:00.041069 \n", " 1000 False 00:00:00.089978 \n", " True 00:00:00.185611 \n", "100000 100 1 False 00:00:00.003345 \n", " True 00:00:00.008857 \n", " 10 False 00:00:00.032639 \n", " True 00:00:00.080591 \n", " 100 False 00:00:00.488467 \n", " True 00:00:01.454507 \n", " 1000 False 00:00:04.973667 \n", " True 00:00:15.035711 \n", " 1000 1 False 00:00:00.010141 \n", " True 00:00:00.016685 \n", " 10 False 00:00:00.041392 \n", " True 00:00:00.091686 \n", " 100 False 00:00:00.508916 \n", " True 00:00:01.497556 \n", " 1000 False 00:00:05.101489 \n", " True 00:00:15.325415 \n", " 100000 1 False 00:00:37.145526 \n", " True 00:00:45.729004 \n", " 10 False 00:00:44.981806 \n", " True 00:00:54.245450 \n", " 100 False 00:01:15.925860 \n", " True 00:01:29.232076 \n", " 1000 False 00:03:17.140191 \n", " True 00:04:05.865666 \n", "\n", " corpus_nonzero \\\n", "dictionary_size corpus_size nonzero_limit normalized \n", "1000 100 1 False 3.0 \n", " True 3.0 \n", " 10 False 3.0 \n", " True 3.0 \n", " 100 False 3.0 \n", " True 3.0 \n", " 1000 False 3.0 \n", " True 3.0 \n", " 1000 1 False 26.0 \n", " True 26.0 \n", " 10 False 26.0 \n", " True 26.0 \n", " 100 False 26.0 \n", " True 26.0 \n", " 1000 False 26.0 \n", " True 26.0 \n", " 100000 1 False 2914.0 \n", " True 2914.0 \n", " 10 False 2914.0 \n", " True 2914.0 \n", " 100 False 2914.0 \n", " True 2914.0 \n", " 1000 False 2914.0 \n", " True 2914.0 \n", "100000 100 1 False 423.0 \n", " True 423.0 \n", " 10 False 423.0 \n", " True 423.0 \n", " 100 False 423.0 \n", " True 423.0 \n", " 1000 False 423.0 \n", " True 423.0 \n", " 1000 1 False 5162.0 \n", " True 5162.0 \n", " 10 False 5162.0 \n", " True 5162.0 \n", " 100 False 5162.0 \n", " True 5162.0 \n", " 1000 False 5162.0 \n", " True 5162.0 \n", " 100000 1 False 525310.0 \n", " True 525310.0 \n", " 10 False 525310.0 \n", " True 525310.0 \n", " 100 False 525310.0 \n", " True 525310.0 \n", " 1000 False 525310.0 \n", " True 525310.0 \n", "\n", " matrix_nonzero \\\n", "dictionary_size corpus_size nonzero_limit normalized \n", "1000 100 1 False 1000.0 \n", " True 1000.0 \n", " 10 False 8634.0 \n", " True 8634.0 \n", " 100 False 84944.0 \n", " True 84944.0 \n", " 1000 False 838588.0 \n", " True 838588.0 \n", " 1000 1 False 1000.0 \n", " True 1000.0 \n", " 10 False 8634.0 \n", " True 8634.0 \n", " 100 False 84944.0 \n", " True 84944.0 \n", " 1000 False 838588.0 \n", " True 838588.0 \n", " 100000 1 False 1000.0 \n", " True 1000.0 \n", " 10 False 8634.0 \n", " True 8634.0 \n", " 100 False 84944.0 \n", " True 84944.0 \n", " 1000 False 838588.0 \n", " True 838588.0 \n", "100000 100 1 False 101868.0 \n", " True 101868.0 \n", " 10 False 814154.0 \n", " True 814154.0 \n", " 100 False 8202884.0 \n", " True 8202884.0 \n", " 1000 False 89912542.0 \n", " True 89912542.0 \n", " 1000 1 False 101868.0 \n", " True 101868.0 \n", " 10 False 814154.0 \n", " True 814154.0 \n", " 100 False 8202884.0 \n", " True 8202884.0 \n", " 1000 False 89912542.0 \n", " True 89912542.0 \n", " 100000 1 False 101868.0 \n", " True 101868.0 \n", " 10 False 814154.0 \n", " True 814154.0 \n", " 100 False 8202884.0 \n", " True 8202884.0 \n", " 1000 False 89912542.0 \n", " True 89912542.0 \n", "\n", " speed \n", "dictionary_size corpus_size nonzero_limit normalized \n", "1000 100 1 False 6.69 Kdoc pairs / s \n", " True 1.70 Kdoc pairs / s \n", " 10 False 5.80 Kdoc pairs / s \n", " True 1.70 Kdoc pairs / s \n", " 100 False 3.05 Kdoc pairs / s \n", " True 1.07 Kdoc pairs / s \n", " 1000 False 0.42 Kdoc pairs / s \n", " True 0.16 Kdoc pairs / s \n", " 1000 1 False 418.61 Kdoc pairs / s \n", " True 114.78 Kdoc pairs / s \n", " 10 False 381.50 Kdoc pairs / s \n", " True 110.60 Kdoc pairs / s \n", " 100 False 164.03 Kdoc pairs / s \n", " True 67.81 Kdoc pairs / s \n", " 1000 False 26.73 Kdoc pairs / s \n", " True 10.59 Kdoc pairs / s \n", " 100000 1 False 391443.20 Kdoc pairs / s \n", " True 298377.75 Kdoc pairs / s \n", " 10 False 386722.55 Kdoc pairs / s \n", " True 288567.14 Kdoc pairs / s \n", " 100 False 274905.36 Kdoc pairs / s \n", " True 189709.57 Kdoc pairs / s \n", " 1000 False 86598.15 Kdoc pairs / s \n", " True 41971.58 Kdoc pairs / s \n", "100000 100 1 False 2013.92 Kdoc pairs / s \n", " True 760.13 Kdoc pairs / s \n", " 10 False 206.66 Kdoc pairs / s \n", " True 83.46 Kdoc pairs / s \n", " 100 False 13.77 Kdoc pairs / s \n", " True 4.62 Kdoc pairs / s \n", " 1000 False 1.35 Kdoc pairs / s \n", " True 0.45 Kdoc pairs / s \n", " 1000 1 False 67139.73 Kdoc pairs / s \n", " True 40798.02 Kdoc pairs / s \n", " 10 False 16444.18 Kdoc pairs / s \n", " True 7425.08 Kdoc pairs / s \n", " 100 False 1338.94 Kdoc pairs / s \n", " True 454.49 Kdoc pairs / s \n", " 1000 False 133.44 Kdoc pairs / s \n", " True 44.42 Kdoc pairs / s \n", " 100000 1 False 192578.80 Kdoc pairs / s \n", " True 156431.36 Kdoc pairs / s \n", " 10 False 159029.88 Kdoc pairs / s \n", " True 131871.88 Kdoc pairs / s \n", " 100 False 94216.21 Kdoc pairs / s \n", " True 80177.08 Kdoc pairs / s \n", " 1000 False 36286.25 Kdoc pairs / s \n", " True 29097.14 Kdoc pairs / s " ] }, "execution_count": 41, "metadata": {}, "output_type": "execute_result" } ], "source": [ "display(df.mean()).loc[\n", " [1000, 100000], :, [1, 10, 100, 1000], :].loc[\n", " :, [\"duration\", \"corpus_nonzero\", \"matrix_nonzero\", \"speed\"]]" ] }, { "cell_type": "code", "execution_count": 42, "metadata": {}, "outputs": [ { "data": { "text/html": [ "<div>\n", "<style scoped>\n", " .dataframe tbody tr th:only-of-type {\n", " vertical-align: middle;\n", " }\n", "\n", " .dataframe tbody tr th {\n", " vertical-align: top;\n", " }\n", "\n", " .dataframe thead th {\n", " text-align: right;\n", " }\n", "</style>\n", "<table border=\"1\" class=\"dataframe\">\n", " <thead>\n", " <tr style=\"text-align: right;\">\n", " <th></th>\n", " <th></th>\n", " <th></th>\n", " <th></th>\n", " <th>duration</th>\n", " <th>corpus_nonzero</th>\n", " <th>matrix_nonzero</th>\n", " <th>speed</th>\n", " </tr>\n", " <tr>\n", " <th>dictionary_size</th>\n", " <th>corpus_size</th>\n", " <th>nonzero_limit</th>\n", " <th>normalized</th>\n", " <th></th>\n", " <th></th>\n", " <th></th>\n", " <th></th>\n", " </tr>\n", " </thead>\n", " <tbody>\n", " <tr>\n", " <th rowspan=\"12\" valign=\"top\">1000</th>\n", " <th rowspan=\"4\" valign=\"top\">100</th>\n", " <th rowspan=\"2\" valign=\"top\">1</th>\n", " <th>False</th>\n", " <td>00:00:00.000292</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>1.48 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:00:00.000225</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.08 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"2\" valign=\"top\">100</th>\n", " <th>False</th>\n", " <td>00:00:00.000747</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>1.02 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:00:00.000488</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.07 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"4\" valign=\"top\">1000</th>\n", " <th rowspan=\"2\" valign=\"top\">1</th>\n", " <th>False</th>\n", " <td>00:00:00.000027</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>8.10 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:00:00.000069</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>1.56 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"2\" valign=\"top\">100</th>\n", " <th>False</th>\n", " <td>00:00:00.000309</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>16.26 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:00:00.000268</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>2.24 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"4\" valign=\"top\">100000</th>\n", " <th rowspan=\"2\" valign=\"top\">1</th>\n", " <th>False</th>\n", " <td>00:00:00.000576</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>11256.03 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:00:00.000574</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>6512.19 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"2\" valign=\"top\">100</th>\n", " <th>False</th>\n", " <td>00:00:00.000562</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>5233.50 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:00:00.000609</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>2743.63 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"12\" valign=\"top\">100000</th>\n", " <th rowspan=\"4\" valign=\"top\">100</th>\n", " <th rowspan=\"2\" valign=\"top\">1</th>\n", " <th>False</th>\n", " <td>00:00:00.000152</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>98.97 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:00:00.000322</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>28.10 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"2\" valign=\"top\">100</th>\n", " <th>False</th>\n", " <td>00:00:00.004997</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.14 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:00:00.022206</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>0.07 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"4\" valign=\"top\">1000</th>\n", " <th rowspan=\"2\" valign=\"top\">1</th>\n", " <th>False</th>\n", " <td>00:00:00.000210</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>1420.00 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:00:00.000192</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>467.23 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"2\" valign=\"top\">100</th>\n", " <th>False</th>\n", " <td>00:00:00.019022</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>45.91 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:00:00.004431</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>1.35 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"4\" valign=\"top\">100000</th>\n", " <th rowspan=\"2\" valign=\"top\">1</th>\n", " <th>False</th>\n", " <td>00:00:00.024466</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>126.77 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:00:00.062447</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>213.64 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th rowspan=\"2\" valign=\"top\">100</th>\n", " <th>False</th>\n", " <td>00:00:00.087692</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>108.55 Kdoc pairs / s</td>\n", " </tr>\n", " <tr>\n", " <th>True</th>\n", " <td>00:00:01.065889</td>\n", " <td>0.0</td>\n", " <td>0.0</td>\n", " <td>968.80 Kdoc pairs / s</td>\n", " </tr>\n", " </tbody>\n", "</table>\n", "</div>" ], "text/plain": [ " duration \\\n", "dictionary_size corpus_size nonzero_limit normalized \n", "1000 100 1 False 00:00:00.000292 \n", " True 00:00:00.000225 \n", " 100 False 00:00:00.000747 \n", " True 00:00:00.000488 \n", " 1000 1 False 00:00:00.000027 \n", " True 00:00:00.000069 \n", " 100 False 00:00:00.000309 \n", " True 00:00:00.000268 \n", " 100000 1 False 00:00:00.000576 \n", " True 00:00:00.000574 \n", " 100 False 00:00:00.000562 \n", " True 00:00:00.000609 \n", "100000 100 1 False 00:00:00.000152 \n", " True 00:00:00.000322 \n", " 100 False 00:00:00.004997 \n", " True 00:00:00.022206 \n", " 1000 1 False 00:00:00.000210 \n", " True 00:00:00.000192 \n", " 100 False 00:00:00.019022 \n", " True 00:00:00.004431 \n", " 100000 1 False 00:00:00.024466 \n", " True 00:00:00.062447 \n", " 100 False 00:00:00.087692 \n", " True 00:00:01.065889 \n", "\n", " corpus_nonzero \\\n", "dictionary_size corpus_size nonzero_limit normalized \n", "1000 100 1 False 0.0 \n", " True 0.0 \n", " 100 False 0.0 \n", " True 0.0 \n", " 1000 1 False 0.0 \n", " True 0.0 \n", " 100 False 0.0 \n", " True 0.0 \n", " 100000 1 False 0.0 \n", " True 0.0 \n", " 100 False 0.0 \n", " True 0.0 \n", "100000 100 1 False 0.0 \n", " True 0.0 \n", " 100 False 0.0 \n", " True 0.0 \n", " 1000 1 False 0.0 \n", " True 0.0 \n", " 100 False 0.0 \n", " True 0.0 \n", " 100000 1 False 0.0 \n", " True 0.0 \n", " 100 False 0.0 \n", " True 0.0 \n", "\n", " matrix_nonzero \\\n", "dictionary_size corpus_size nonzero_limit normalized \n", "1000 100 1 False 0.0 \n", " True 0.0 \n", " 100 False 0.0 \n", " True 0.0 \n", " 1000 1 False 0.0 \n", " True 0.0 \n", " 100 False 0.0 \n", " True 0.0 \n", " 100000 1 False 0.0 \n", " True 0.0 \n", " 100 False 0.0 \n", " True 0.0 \n", "100000 100 1 False 0.0 \n", " True 0.0 \n", " 100 False 0.0 \n", " True 0.0 \n", " 1000 1 False 0.0 \n", " True 0.0 \n", " 100 False 0.0 \n", " True 0.0 \n", " 100000 1 False 0.0 \n", " True 0.0 \n", " 100 False 0.0 \n", " True 0.0 \n", "\n", " speed \n", "dictionary_size corpus_size nonzero_limit normalized \n", "1000 100 1 False 1.48 Kdoc pairs / s \n", " True 0.08 Kdoc pairs / s \n", " 100 False 1.02 Kdoc pairs / s \n", " True 0.07 Kdoc pairs / s \n", " 1000 1 False 8.10 Kdoc pairs / s \n", " True 1.56 Kdoc pairs / s \n", " 100 False 16.26 Kdoc pairs / s \n", " True 2.24 Kdoc pairs / s \n", " 100000 1 False 11256.03 Kdoc pairs / s \n", " True 6512.19 Kdoc pairs / s \n", " 100 False 5233.50 Kdoc pairs / s \n", " True 2743.63 Kdoc pairs / s \n", "100000 100 1 False 98.97 Kdoc pairs / s \n", " True 28.10 Kdoc pairs / s \n", " 100 False 0.14 Kdoc pairs / s \n", " True 0.07 Kdoc pairs / s \n", " 1000 1 False 1420.00 Kdoc pairs / s \n", " True 467.23 Kdoc pairs / s \n", " 100 False 45.91 Kdoc pairs / s \n", " True 1.35 Kdoc pairs / s \n", " 100000 1 False 126.77 Kdoc pairs / s \n", " True 213.64 Kdoc pairs / s \n", " 100 False 108.55 Kdoc pairs / s \n", " True 968.80 Kdoc pairs / s " ] }, "execution_count": 42, "metadata": {}, "output_type": "execute_result" } ], "source": [ "display(df.apply(lambda x: (x - x.mean()).std())).loc[\n", " [1000, 100000], :, [1, 100], :].loc[\n", " :, [\"duration\", \"corpus_nonzero\", \"matrix_nonzero\", \"speed\"]]" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.4.2" } }, "nbformat": 4, "nbformat_minor": 2 }
209,285
Python
.py
4,605
38.368512
834
0.351583
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,923
lda_model_difference.ipynb
piskvorky_gensim/docs/notebooks/lda_model_difference.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Comparison of two LDA models & visualize difference" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## In this notebook, I want to show how you can compare models with itself and with other model and why you need it." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## First, clean up 20 newsgroups dataset. We will use it for fitting LDA." ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "from string import punctuation\n", "from nltk import RegexpTokenizer\n", "from nltk.stem.porter import PorterStemmer\n", "from nltk.corpus import stopwords\n", "from sklearn.datasets import fetch_20newsgroups\n", "\n", "\n", "newsgroups = fetch_20newsgroups()\n", "eng_stopwords = set(stopwords.words('english'))\n", "\n", "tokenizer = RegexpTokenizer('\\s+', gaps=True)\n", "stemmer = PorterStemmer()\n", "translate_tab = {ord(p): u\" \" for p in punctuation}\n", "\n", "def text2tokens(raw_text):\n", " \"\"\"\n", " Convert raw test to list of stemmed tokens\n", " \"\"\"\n", " clean_text = raw_text.lower().translate(translate_tab)\n", " tokens = [token.strip() for token in tokenizer.tokenize(clean_text)]\n", " tokens = [token for token in tokens if token not in eng_stopwords]\n", " stemmed_tokens = [stemmer.stem(token) for token in tokens]\n", " \n", " return [token for token in stemmed_tokens if len(token) > 2] # skip short tokens\n", "\n", "dataset = [text2tokens(txt) for txt in newsgroups['data']] # convert a documents to list of tokens" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [], "source": [ "from gensim.corpora import Dictionary\n", "dictionary = Dictionary(documents=dataset, prune_at=None)\n", "dictionary.filter_extremes(no_below=5, no_above=0.3, keep_n=None) # use Dictionary to remove un-relevant tokens\n", "dictionary.compactify()\n", "\n", "d2b_dataset = [dictionary.doc2bow(doc) for doc in dataset] # convert list of tokens to bag of word representation" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Second, fit two LDA models." ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "CPU times: user 2min 31s, sys: 9.94 s, total: 2min 40s\n", "Wall time: 4min 54s\n" ] } ], "source": [ "%%time\n", "\n", "from gensim.models import LdaMulticore\n", "num_topics = 15\n", "\n", "lda_fst = LdaMulticore(\n", " corpus=d2b_dataset, num_topics=num_topics, id2word=dictionary,\n", " workers=4, eval_every=None, passes=10, batch=True\n", ")\n", "\n", "lda_snd = LdaMulticore(\n", " corpus=d2b_dataset, num_topics=num_topics, id2word=dictionary,\n", " workers=4, eval_every=None, passes=20, batch=True\n", ")" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## It's time to cases with visualisation, Yay!" ] }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [ { "data": { "text/html": [ "<script type=\"text/javascript\">window.PlotlyConfig = {MathJaxConfig: 'local'};</script><script type=\"text/javascript\">if (window.MathJax) {MathJax.Hub.Config({SVG: {font: \"STIX-Web\"}});}</script><script type='text/javascript'>if(!window._Plotly){define('plotly', function(require, exports, module) {/**\n", "* plotly.js v1.42.5\n", "* Copyright 2012-2018, Plotly, Inc.\n", "* All rights reserved.\n", "* Licensed under the MIT license\n", "*/\n", "!function(t){if(\"object\"==typeof exports&&\"undefined\"!=typeof module)module.exports=t();else if(\"function\"==typeof define&&define.amd)define([],t);else{(\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:this).Plotly=t()}}(function(){return function(){return function t(e,r,n){function i(o,s){if(!r[o]){if(!e[o]){var l=\"function\"==typeof require&&require;if(!s&&l)return l(o,!0);if(a)return a(o,!0);var c=new Error(\"Cannot find module '\"+o+\"'\");throw c.code=\"MODULE_NOT_FOUND\",c}var u=r[o]={exports:{}};e[o][0].call(u.exports,function(t){return i(e[o][1][t]||t)},u,u.exports,t,e,r,n)}return r[o].exports}for(var a=\"function\"==typeof require&&require,o=0;o<n.length;o++)i(n[o]);return i}}()({1:[function(t,e,r){\"use strict\";var n=t(\"../src/lib\"),i={\"X,X div\":\"direction:ltr;font-family:'Open Sans', verdana, arial, sans-serif;margin:0;padding:0;\",\"X input,X button\":\"font-family:'Open Sans', verdana, arial, sans-serif;\",\"X input:focus,X button:focus\":\"outline:none;\",\"X a\":\"text-decoration:none;\",\"X a:hover\":\"text-decoration:none;\",\"X .crisp\":\"shape-rendering:crispEdges;\",\"X .user-select-none\":\"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;\",\"X svg\":\"overflow:hidden;\",\"X svg a\":\"fill:#447adb;\",\"X svg a:hover\":\"fill:#3c6dc5;\",\"X .main-svg\":\"position:absolute;top:0;left:0;pointer-events:none;\",\"X .main-svg .draglayer\":\"pointer-events:all;\",\"X .cursor-default\":\"cursor:default;\",\"X .cursor-pointer\":\"cursor:pointer;\",\"X .cursor-crosshair\":\"cursor:crosshair;\",\"X .cursor-move\":\"cursor:move;\",\"X .cursor-col-resize\":\"cursor:col-resize;\",\"X .cursor-row-resize\":\"cursor:row-resize;\",\"X .cursor-ns-resize\":\"cursor:ns-resize;\",\"X .cursor-ew-resize\":\"cursor:ew-resize;\",\"X .cursor-sw-resize\":\"cursor:sw-resize;\",\"X .cursor-s-resize\":\"cursor:s-resize;\",\"X .cursor-se-resize\":\"cursor:se-resize;\",\"X .cursor-w-resize\":\"cursor:w-resize;\",\"X .cursor-e-resize\":\"cursor:e-resize;\",\"X .cursor-nw-resize\":\"cursor:nw-resize;\",\"X .cursor-n-resize\":\"cursor:n-resize;\",\"X .cursor-ne-resize\":\"cursor:ne-resize;\",\"X .cursor-grab\":\"cursor:-webkit-grab;cursor:grab;\",\"X .modebar\":\"position:absolute;top:2px;right:2px;z-index:1001;\",\"X .modebar--hover\":\"opacity:0;-webkit-transition:opacity 0.3s ease 0s;-moz-transition:opacity 0.3s ease 0s;-ms-transition:opacity 0.3s ease 0s;-o-transition:opacity 0.3s ease 0s;transition:opacity 0.3s ease 0s;\",\"X:hover .modebar--hover\":\"opacity:1;\",\"X .modebar-group\":\"float:left;display:inline-block;box-sizing:border-box;margin-left:8px;position:relative;vertical-align:middle;white-space:nowrap;\",\"X .modebar-btn\":\"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;\",\"X .modebar-btn svg\":\"position:relative;top:2px;\",\"X .modebar.vertical\":\"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;\",\"X .modebar.vertical svg\":\"top:-1px;\",\"X .modebar.vertical .modebar-group\":\"display:block;float:none;margin-left:0px;margin-bottom:8px;\",\"X .modebar.vertical .modebar-group .modebar-btn\":\"display:block;text-align:center;\",\"X [data-title]:before,X [data-title]:after\":\"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;\",\"X [data-title]:hover:before,X [data-title]:hover:after\":\"display:block;opacity:1;\",\"X [data-title]:before\":\"content:'';position:absolute;background:transparent;border:6px solid transparent;z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;\",\"X [data-title]:after\":\"content:attr(data-title);background:#69738a;color:white;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;\",\"X .vertical [data-title]:before,X .vertical [data-title]:after\":\"top:0%;right:200%;\",\"X .vertical [data-title]:before\":\"border:6px solid transparent;border-left-color:#69738a;margin-top:8px;margin-right:-30px;\",\"X .select-outline\":\"fill:none;stroke-width:1;shape-rendering:crispEdges;\",\"X .select-outline-1\":\"stroke:white;\",\"X .select-outline-2\":\"stroke:black;stroke-dasharray:2px 2px;\",Y:\"font-family:'Open Sans';position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;\",\"Y p\":\"margin:0;\",\"Y .notifier-note\":\"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,0.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;\",\"Y .notifier-close\":\"color:#fff;opacity:0.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;\",\"Y .notifier-close:hover\":\"color:#444;text-decoration:none;cursor:pointer;\"};for(var a in i){var o=a.replace(/^,/,\" ,\").replace(/X/g,\".js-plotly-plot .plotly\").replace(/Y/g,\".plotly-notifier\");n.addStyleRule(o,i[a])}},{\"../src/lib\":696}],2:[function(t,e,r){\"use strict\";e.exports={undo:{width:857.1,height:1e3,path:\"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z\",transform:\"matrix(1 0 0 -1 0 850)\"},home:{width:928.6,height:1e3,path:\"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z\",transform:\"matrix(1 0 0 -1 0 850)\"},\"camera-retro\":{width:1e3,height:1e3,path:\"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z\",transform:\"matrix(1 0 0 -1 0 850)\"},zoombox:{width:1e3,height:1e3,path:\"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z\",transform:\"matrix(1 0 0 -1 0 850)\"},pan:{width:1e3,height:1e3,path:\"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z\",transform:\"matrix(1 0 0 -1 0 850)\"},zoom_plus:{width:875,height:1e3,path:\"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z\",transform:\"matrix(1 0 0 -1 0 850)\"},zoom_minus:{width:875,height:1e3,path:\"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z\",transform:\"matrix(1 0 0 -1 0 850)\"},autoscale:{width:1e3,height:1e3,path:\"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z\",transform:\"matrix(1 0 0 -1 0 850)\"},tooltip_basic:{width:1500,height:1e3,path:\"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z\",transform:\"matrix(1 0 0 -1 0 850)\"},tooltip_compare:{width:1125,height:1e3,path:\"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z\",transform:\"matrix(1 0 0 -1 0 850)\"},plotlylogo:{width:1542,height:1e3,path:\"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z\",transform:\"matrix(1 0 0 -1 0 850)\"},\"z-axis\":{width:1e3,height:1e3,path:\"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z\",transform:\"matrix(1 0 0 -1 0 850)\"},\"3d_rotate\":{width:1e3,height:1e3,path:\"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z\",transform:\"matrix(1 0 0 -1 0 850)\"},camera:{width:1e3,height:1e3,path:\"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z\",transform:\"matrix(1 0 0 -1 0 850)\"},movie:{width:1e3,height:1e3,path:\"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z\",transform:\"matrix(1 0 0 -1 0 850)\"},question:{width:857.1,height:1e3,path:\"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z\",transform:\"matrix(1 0 0 -1 0 850)\"},disk:{width:857.1,height:1e3,path:\"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z\",transform:\"matrix(1 0 0 -1 0 850)\"},lasso:{width:1031,height:1e3,path:\"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z\",transform:\"matrix(1 0 0 -1 0 850)\"},selectbox:{width:1e3,height:1e3,path:\"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z\",transform:\"matrix(1 0 0 -1 0 850)\"},spikeline:{width:1e3,height:1e3,path:\"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z\",transform:\"matrix(1.5 0 0 -1.5 0 850)\"},newplotlylogo:{name:\"newplotlylogo\",svg:\"<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 132 132'><defs><style>.cls-1 {fill: #119dff;} .cls-2 {fill: #25fefd;} .cls-3 {fill: #fff;}</style></defs><title>plotly-logomark</title><g id='symbol'><rect class='cls-1' width='132' height='132' rx='6' ry='6'/><circle class='cls-2' cx='78' cy='54' r='6'/><circle class='cls-2' cx='102' cy='30' r='6'/><circle class='cls-2' cx='78' cy='30' r='6'/><circle class='cls-2' cx='54' cy='30' r='6'/><circle class='cls-2' cx='30' cy='30' r='6'/><circle class='cls-2' cx='30' cy='54' r='6'/><path class='cls-3' d='M30,72a6,6,0,0,0-6,6v24a6,6,0,0,0,12,0V78A6,6,0,0,0,30,72Z'/><path class='cls-3' d='M78,72a6,6,0,0,0-6,6v24a6,6,0,0,0,12,0V78A6,6,0,0,0,78,72Z'/><path class='cls-3' d='M54,48a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V54A6,6,0,0,0,54,48Z'/><path class='cls-3' d='M102,48a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V54A6,6,0,0,0,102,48Z'/></g></svg>\"}}},{}],3:[function(t,e,r){\"use strict\";e.exports=t(\"../src/transforms/aggregate\")},{\"../src/transforms/aggregate\":1155}],4:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/bar\")},{\"../src/traces/bar\":843}],5:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/barpolar\")},{\"../src/traces/barpolar\":855}],6:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/box\")},{\"../src/traces/box\":865}],7:[function(t,e,r){\"use strict\";e.exports=t(\"../src/components/calendars\")},{\"../src/components/calendars\":568}],8:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/candlestick\")},{\"../src/traces/candlestick\":874}],9:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/carpet\")},{\"../src/traces/carpet\":893}],10:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/choropleth\")},{\"../src/traces/choropleth\":907}],11:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/cone\")},{\"../src/traces/cone\":915}],12:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/contour\")},{\"../src/traces/contour\":930}],13:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/contourcarpet\")},{\"../src/traces/contourcarpet\":941}],14:[function(t,e,r){\"use strict\";e.exports=t(\"../src/core\")},{\"../src/core\":675}],15:[function(t,e,r){\"use strict\";e.exports=t(\"../src/transforms/filter\")},{\"../src/transforms/filter\":1156}],16:[function(t,e,r){\"use strict\";e.exports=t(\"../src/transforms/groupby\")},{\"../src/transforms/groupby\":1157}],17:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/heatmap\")},{\"../src/traces/heatmap\":953}],18:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/heatmapgl\")},{\"../src/traces/heatmapgl\":963}],19:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/histogram\")},{\"../src/traces/histogram\":974}],20:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/histogram2d\")},{\"../src/traces/histogram2d\":981}],21:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/histogram2dcontour\")},{\"../src/traces/histogram2dcontour\":985}],22:[function(t,e,r){\"use strict\";var n=t(\"./core\");n.register([t(\"./bar\"),t(\"./box\"),t(\"./heatmap\"),t(\"./histogram\"),t(\"./histogram2d\"),t(\"./histogram2dcontour\"),t(\"./pie\"),t(\"./contour\"),t(\"./scatterternary\"),t(\"./violin\"),t(\"./scatter3d\"),t(\"./surface\"),t(\"./mesh3d\"),t(\"./cone\"),t(\"./streamtube\"),t(\"./scattergeo\"),t(\"./choropleth\"),t(\"./scattergl\"),t(\"./splom\"),t(\"./pointcloud\"),t(\"./heatmapgl\"),t(\"./parcoords\"),t(\"./parcats\"),t(\"./scattermapbox\"),t(\"./sankey\"),t(\"./table\"),t(\"./carpet\"),t(\"./scattercarpet\"),t(\"./contourcarpet\"),t(\"./ohlc\"),t(\"./candlestick\"),t(\"./scatterpolar\"),t(\"./scatterpolargl\"),t(\"./barpolar\")]),n.register([t(\"./aggregate\"),t(\"./filter\"),t(\"./groupby\"),t(\"./sort\")]),n.register([t(\"./calendars\")]),e.exports=n},{\"./aggregate\":3,\"./bar\":4,\"./barpolar\":5,\"./box\":6,\"./calendars\":7,\"./candlestick\":8,\"./carpet\":9,\"./choropleth\":10,\"./cone\":11,\"./contour\":12,\"./contourcarpet\":13,\"./core\":14,\"./filter\":15,\"./groupby\":16,\"./heatmap\":17,\"./heatmapgl\":18,\"./histogram\":19,\"./histogram2d\":20,\"./histogram2dcontour\":21,\"./mesh3d\":23,\"./ohlc\":24,\"./parcats\":25,\"./parcoords\":26,\"./pie\":27,\"./pointcloud\":28,\"./sankey\":29,\"./scatter3d\":30,\"./scattercarpet\":31,\"./scattergeo\":32,\"./scattergl\":33,\"./scattermapbox\":34,\"./scatterpolar\":35,\"./scatterpolargl\":36,\"./scatterternary\":37,\"./sort\":38,\"./splom\":39,\"./streamtube\":40,\"./surface\":41,\"./table\":42,\"./violin\":43}],23:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/mesh3d\")},{\"../src/traces/mesh3d\":990}],24:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/ohlc\")},{\"../src/traces/ohlc\":995}],25:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/parcats\")},{\"../src/traces/parcats\":1004}],26:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/parcoords\")},{\"../src/traces/parcoords\":1013}],27:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/pie\")},{\"../src/traces/pie\":1024}],28:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/pointcloud\")},{\"../src/traces/pointcloud\":1033}],29:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/sankey\")},{\"../src/traces/sankey\":1039}],30:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/scatter3d\")},{\"../src/traces/scatter3d\":1075}],31:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/scattercarpet\")},{\"../src/traces/scattercarpet\":1081}],32:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/scattergeo\")},{\"../src/traces/scattergeo\":1088}],33:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/scattergl\")},{\"../src/traces/scattergl\":1096}],34:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/scattermapbox\")},{\"../src/traces/scattermapbox\":1102}],35:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/scatterpolar\")},{\"../src/traces/scatterpolar\":1109}],36:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/scatterpolargl\")},{\"../src/traces/scatterpolargl\":1113}],37:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/scatterternary\")},{\"../src/traces/scatterternary\":1119}],38:[function(t,e,r){\"use strict\";e.exports=t(\"../src/transforms/sort\")},{\"../src/transforms/sort\":1159}],39:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/splom\")},{\"../src/traces/splom\":1124}],40:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/streamtube\")},{\"../src/traces/streamtube\":1129}],41:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/surface\")},{\"../src/traces/surface\":1134}],42:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/table\")},{\"../src/traces/table\":1142}],43:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/violin\")},{\"../src/traces/violin\":1150}],44:[function(t,e,r){\"use strict\";e.exports=function(t,e){t=t||document.body,e=e||{};var r=[.01,1/0];\"distanceLimits\"in e&&(r[0]=e.distanceLimits[0],r[1]=e.distanceLimits[1]);\"zoomMin\"in e&&(r[0]=e.zoomMin);\"zoomMax\"in e&&(r[1]=e.zoomMax);var c=i({center:e.center||[0,0,0],up:e.up||[0,1,0],eye:e.eye||[0,0,10],mode:e.mode||\"orbit\",distanceLimits:r}),u=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],f=0,h=t.clientWidth,p=t.clientHeight,d={view:c,element:t,delay:e.delay||16,rotateSpeed:e.rotateSpeed||1,zoomSpeed:e.zoomSpeed||1,translateSpeed:e.translateSpeed||1,flipX:!!e.flipX,flipY:!!e.flipY,modes:c.modes,tick:function(){var e=n(),r=this.delay;c.idle(e-r),c.flush(e-(100+2*r));var i=e-2*r;c.recalcMatrix(i);for(var a=!0,o=c.computedMatrix,s=0;s<16;++s)a=a&&u[s]===o[s],u[s]=o[s];var l=t.clientWidth===h&&t.clientHeight===p;return h=t.clientWidth,p=t.clientHeight,a?!l:(f=Math.exp(c.computedRadius[0]),!0)},lookAt:function(t,e,r){c.lookAt(c.lastT(),t,e,r)},rotate:function(t,e,r){c.rotate(c.lastT(),t,e,r)},pan:function(t,e,r){c.pan(c.lastT(),t,e,r)},translate:function(t,e,r){c.translate(c.lastT(),t,e,r)}};Object.defineProperties(d,{matrix:{get:function(){return c.computedMatrix},set:function(t){return c.setMatrix(c.lastT(),t),c.computedMatrix},enumerable:!0},mode:{get:function(){return c.getMode()},set:function(t){return c.setMode(t),c.getMode()},enumerable:!0},center:{get:function(){return c.computedCenter},set:function(t){return c.lookAt(c.lastT(),t),c.computedCenter},enumerable:!0},eye:{get:function(){return c.computedEye},set:function(t){return c.lookAt(c.lastT(),null,t),c.computedEye},enumerable:!0},up:{get:function(){return c.computedUp},set:function(t){return c.lookAt(c.lastT(),null,null,t),c.computedUp},enumerable:!0},distance:{get:function(){return f},set:function(t){return c.setDistance(c.lastT(),t),t},enumerable:!0},distanceLimits:{get:function(){return c.getDistanceLimits(r)},set:function(t){return c.setDistanceLimits(t),t},enumerable:!0}}),t.addEventListener(\"contextmenu\",function(t){return t.preventDefault(),!1});var g=0,v=0,m={shift:!1,control:!1,alt:!1,meta:!1};function y(e,r,i,a){var o=1/t.clientHeight,s=o*(r-g),l=o*(i-v),u=d.flipX?1:-1,h=d.flipY?1:-1,p=Math.PI*d.rotateSpeed,y=n();if(1&e)a.shift?c.rotate(y,0,0,-s*p):c.rotate(y,u*p*s,-h*p*l,0);else if(2&e)c.pan(y,-d.translateSpeed*s*f,d.translateSpeed*l*f,0);else if(4&e){var x=d.zoomSpeed*l/window.innerHeight*(y-c.lastT())*50;c.pan(y,0,0,f*(Math.exp(x)-1))}g=r,v=i,m=a}return a(t,y),t.addEventListener(\"touchstart\",function(e){var r=s(e.changedTouches[0],t);y(0,r[0],r[1],m),y(1,r[0],r[1],m),e.preventDefault()},!!l&&{passive:!1}),t.addEventListener(\"touchmove\",function(e){var r=s(e.changedTouches[0],t);y(1,r[0],r[1],m),e.preventDefault()},!!l&&{passive:!1}),t.addEventListener(\"touchend\",function(e){s(e.changedTouches[0],t),y(0,g,v,m),e.preventDefault()},!!l&&{passive:!1}),o(t,function(t,e,r){var i=d.flipX?1:-1,a=d.flipY?1:-1,o=n();if(Math.abs(t)>Math.abs(e))c.rotate(o,0,0,-t*i*Math.PI*d.rotateSpeed/window.innerWidth);else{var s=d.zoomSpeed*a*e/window.innerHeight*(o-c.lastT())/100;c.pan(o,0,0,f*(Math.exp(s)-1))}},!0),d};var n=t(\"right-now\"),i=t(\"3d-view\"),a=t(\"mouse-change\"),o=t(\"mouse-wheel\"),s=t(\"mouse-event-offset\"),l=t(\"has-passive-events\")},{\"3d-view\":45,\"has-passive-events\":394,\"mouse-change\":418,\"mouse-event-offset\":419,\"mouse-wheel\":421,\"right-now\":480}],45:[function(t,e,r){\"use strict\";e.exports=function(t){var e=(t=t||{}).eye||[0,0,1],r=t.center||[0,0,0],s=t.up||[0,1,0],l=t.distanceLimits||[0,1/0],c=t.mode||\"turntable\",u=n(),f=i(),h=a();return u.setDistanceLimits(l[0],l[1]),u.lookAt(0,e,r,s),f.setDistanceLimits(l[0],l[1]),f.lookAt(0,e,r,s),h.setDistanceLimits(l[0],l[1]),h.lookAt(0,e,r,s),new o({turntable:u,orbit:f,matrix:h},c)};var n=t(\"turntable-camera-controller\"),i=t(\"orbit-camera-controller\"),a=t(\"matrix-camera-controller\");function o(t,e){this._controllerNames=Object.keys(t),this._controllerList=this._controllerNames.map(function(e){return t[e]}),this._mode=e,this._active=t[e],this._active||(this._mode=\"turntable\",this._active=t.turntable),this.modes=this._controllerNames,this.computedMatrix=this._active.computedMatrix,this.computedEye=this._active.computedEye,this.computedUp=this._active.computedUp,this.computedCenter=this._active.computedCenter,this.computedRadius=this._active.computedRadius}var s=o.prototype;[[\"flush\",1],[\"idle\",1],[\"lookAt\",4],[\"rotate\",4],[\"pan\",4],[\"translate\",4],[\"setMatrix\",2],[\"setDistanceLimits\",2],[\"setDistance\",2]].forEach(function(t){for(var e=t[0],r=[],n=0;n<t[1];++n)r.push(\"a\"+n);var i=\"var cc=this._controllerList;for(var i=0;i<cc.length;++i){cc[i].\"+t[0]+\"(\"+r.join()+\")}\";s[e]=Function.apply(null,r.concat(i))}),s.recalcMatrix=function(t){this._active.recalcMatrix(t)},s.getDistance=function(t){return this._active.getDistance(t)},s.getDistanceLimits=function(t){return this._active.getDistanceLimits(t)},s.lastT=function(){return this._active.lastT()},s.setMode=function(t){if(t!==this._mode){var e=this._controllerNames.indexOf(t);if(!(e<0)){var r=this._active,n=this._controllerList[e],i=Math.max(r.lastT(),n.lastT());r.recalcMatrix(i),n.setMatrix(i,r.computedMatrix),this._active=n,this._mode=t,this.computedMatrix=this._active.computedMatrix,this.computedEye=this._active.computedEye,this.computedUp=this._active.computedUp,this.computedCenter=this._active.computedCenter,this.computedRadius=this._active.computedRadius}}},s.getMode=function(){return this._mode}},{\"matrix-camera-controller\":416,\"orbit-camera-controller\":439,\"turntable-camera-controller\":519}],46:[function(t,e,r){var n,i;n=this,i=function(t,e,r,n){\"use strict\";t.sankey=function(){var t={},i=24,a=8,o=[1,1],s=[],l=[],c=2/3;function u(){function t(t,e){return t.source.y-e.source.y||t.originalIndex-e.originalIndex}function e(t,e){return t.target.y-e.target.y||t.originalIndex-e.originalIndex}s.forEach(function(r){r.sourceLinks.sort(e),r.targetLinks.sort(t)}),s.forEach(function(t){var e=0,r=0;t.sourceLinks.forEach(function(t){t.sy=e,e+=t.dy}),t.targetLinks.forEach(function(t){t.ty=r,r+=t.dy})})}function f(t){return t.y+t.dy/2}function h(t){return t.value}return t.nodeWidth=function(e){return arguments.length?(i=+e,t):i},t.nodePadding=function(e){return arguments.length?(a=+e,t):a},t.nodes=function(e){return arguments.length?(s=e,t):s},t.links=function(e){return arguments.length?(l=e,t):l},t.size=function(e){return arguments.length?(o=e,t):o},t.layout=function(n){return s.forEach(function(t){t.sourceLinks=[],t.targetLinks=[]}),l.forEach(function(t,e){var r=t.source,n=t.target;\"number\"==typeof r&&(r=t.source=s[t.source]),\"number\"==typeof n&&(n=t.target=s[t.target]),t.originalIndex=e,r.sourceLinks.push(t),n.targetLinks.push(t)}),s.forEach(function(t){t.value=Math.max(e.sum(t.sourceLinks,h),e.sum(t.targetLinks,h))}),function(){for(var t,e,r=s,n=0;r.length;)t=[],r.forEach(function(e){e.x=n,e.dx=i,e.sourceLinks.forEach(function(e){t.indexOf(e.target)<0&&t.push(e.target)})}),r=t,++n;(function(t){s.forEach(function(e){e.sourceLinks.length||(e.x=t-1)})})(n),e=(o[0]-i)/(n-1),s.forEach(function(t){t.x*=e})}(),function(t){var n=r.nest().key(function(t){return t.x}).sortKeys(e.ascending).entries(s).map(function(t){return t.values});(function(){var t=e.max(n,function(t){return t.length}),r=c*o[1]/(t-1);a>r&&(a=r);var i=e.min(n,function(t){return(o[1]-(t.length-1)*a)/e.sum(t,h)});n.forEach(function(t){t.forEach(function(t,e){t.y=e,t.dy=t.value*i})}),l.forEach(function(t){t.dy=t.value*i})})(),d();for(var i=1;t>0;--t)p(i*=.99),d(),u(i),d();function u(t){function r(t){return f(t.source)*t.value}n.forEach(function(n){n.forEach(function(n){if(n.targetLinks.length){var i=e.sum(n.targetLinks,r)/e.sum(n.targetLinks,h);n.y+=(i-f(n))*t}})})}function p(t){function r(t){return f(t.target)*t.value}n.slice().reverse().forEach(function(n){n.forEach(function(n){if(n.sourceLinks.length){var i=e.sum(n.sourceLinks,r)/e.sum(n.sourceLinks,h);n.y+=(i-f(n))*t}})})}function d(){n.forEach(function(t){var e,r,n,i=0,s=t.length;for(t.sort(g),n=0;n<s;++n)e=t[n],(r=i-e.y)>0&&(e.y+=r),i=e.y+e.dy+a;if((r=i-a-o[1])>0)for(i=e.y-=r,n=s-2;n>=0;--n)e=t[n],(r=e.y+e.dy+a-i)>0&&(e.y-=r),i=e.y})}function g(t,e){return t.y-e.y}}(n),u(),t},t.relayout=function(){return u(),t},t.link=function(){var t=.5;function e(e){var r=e.source.x+e.source.dx,i=e.target.x,a=n.interpolateNumber(r,i),o=a(t),s=a(1-t),l=e.source.y+e.sy,c=l+e.dy,u=e.target.y+e.ty,f=u+e.dy;return\"M\"+r+\",\"+l+\"C\"+o+\",\"+l+\" \"+s+\",\"+u+\" \"+i+\",\"+u+\"L\"+i+\",\"+f+\"C\"+s+\",\"+f+\" \"+o+\",\"+c+\" \"+r+\",\"+c+\"Z\"}return e.curvature=function(r){return arguments.length?(t=+r,e):t},e},t},Object.defineProperty(t,\"__esModule\",{value:!0})},\"object\"==typeof r&&\"undefined\"!=typeof e?i(r,t(\"d3-array\"),t(\"d3-collection\"),t(\"d3-interpolate\")):i(n.d3=n.d3||{},n.d3,n.d3,n.d3)},{\"d3-array\":140,\"d3-collection\":141,\"d3-interpolate\":145}],47:[function(t,e,r){\"use strict\";var n=\"undefined\"==typeof WeakMap?t(\"weak-map\"):WeakMap,i=t(\"gl-buffer\"),a=t(\"gl-vao\"),o=new n;e.exports=function(t){var e=o.get(t),r=e&&(e._triangleBuffer.handle||e._triangleBuffer.buffer);if(!r||!t.isBuffer(r)){var n=i(t,new Float32Array([-1,-1,-1,4,4,-1]));(e=a(t,[{buffer:n,type:t.FLOAT,size:2}]))._triangleBuffer=n,o.set(t,e)}e.bind(),t.drawArrays(t.TRIANGLES,0,3),e.unbind()}},{\"gl-buffer\":230,\"gl-vao\":310,\"weak-map\":529}],48:[function(t,e,r){e.exports=function(t){var e=0,r=0,n=0,i=0;return t.map(function(t){var a=(t=t.slice())[0],o=a.toUpperCase();if(a!=o)switch(t[0]=o,a){case\"a\":t[6]+=n,t[7]+=i;break;case\"v\":t[1]+=i;break;case\"h\":t[1]+=n;break;default:for(var s=1;s<t.length;)t[s++]+=n,t[s++]+=i}switch(o){case\"Z\":n=e,i=r;break;case\"H\":n=t[1];break;case\"V\":i=t[1];break;case\"M\":n=e=t[1],i=r=t[2];break;default:n=t[t.length-2],i=t[t.length-1]}return t})}},{}],49:[function(t,e,r){var n=t(\"pad-left\");e.exports=function(t,e,r){e=\"number\"==typeof e?e:1,r=r||\": \";var i=t.split(/\\r?\\n/),a=String(i.length+e-1).length;return i.map(function(t,i){var o=i+e,s=String(o).length,l=n(o,a-s);return l+r+t}).join(\"\\n\")}},{\"pad-left\":440}],50:[function(t,e,r){\"use strict\";e.exports=function(t){var e=t.length;if(0===e)return[];if(1===e)return[0];for(var r=t[0].length,n=[t[0]],a=[0],o=1;o<e;++o)if(n.push(t[o]),i(n,r)){if(a.push(o),a.length===r+1)return a}else n.pop();return a};var n=t(\"robust-orientation\");function i(t,e){for(var r=new Array(e+1),i=0;i<t.length;++i)r[i]=t[i];for(i=0;i<=t.length;++i){for(var a=t.length;a<=e;++a){for(var o=new Array(e),s=0;s<e;++s)o[s]=Math.pow(a+1-i,s);r[a]=o}if(n.apply(void 0,r))return!0}return!1}},{\"robust-orientation\":486}],51:[function(t,e,r){\"use strict\";e.exports=function(t,e){return n(e).filter(function(r){for(var n=new Array(r.length),a=0;a<r.length;++a)n[a]=e[r[a]];return i(n)*t<1})};var n=t(\"delaunay-triangulate\"),i=t(\"circumradius\")},{circumradius:102,\"delaunay-triangulate\":150}],52:[function(t,e,r){e.exports=function(t,e){return i(n(t,e))};var n=t(\"alpha-complex\"),i=t(\"simplicial-complex-boundary\")},{\"alpha-complex\":51,\"simplicial-complex-boundary\":493}],53:[function(t,e,r){\"use strict\";e.exports=function(t,e){if(!t||null==t.length)throw Error(\"Argument should be an array\");e=null==e?1:Math.floor(e);for(var r=Array(2*e),n=0;n<e;n++){for(var i=-1/0,a=1/0,o=n,s=t.length;o<s;o+=e)t[o]>i&&(i=t[o]),t[o]<a&&(a=t[o]);r[n]=a,r[e+n]=i}return r}},{}],54:[function(t,e,r){\"use strict\";var n=t(\"array-bounds\");e.exports=function(t,e,r){if(!t||null==t.length)throw Error(\"Argument should be an array\");null==e&&(e=1);null==r&&(r=n(t,e));for(var i=0;i<e;i++){var a=r[e+i],o=r[i],s=i,l=t.length;if(a===1/0&&o===-1/0)for(s=i;s<l;s+=e)t[s]=t[s]===a?1:t[s]===o?0:.5;else if(a===1/0)for(s=i;s<l;s+=e)t[s]=t[s]===a?1:0;else if(o===-1/0)for(s=i;s<l;s+=e)t[s]=t[s]===o?0:1;else{var c=a-o;for(s=i;s<l;s+=e)t[s]=0===c?.5:(t[s]-o)/c}}return t}},{\"array-bounds\":53}],55:[function(t,e,r){e.exports=function(t,e){var r=\"number\"==typeof t,n=\"number\"==typeof e;r&&!n?(e=t,t=0):r||n||(t=0,e=0);var i=(e|=0)-(t|=0);if(i<0)throw new Error(\"array length must be positive\");for(var a=new Array(i),o=0,s=t;o<i;o++,s++)a[o]=s;return a}},{}],56:[function(t,e,r){(function(r){\"use strict\";function n(t,e){if(t===e)return 0;for(var r=t.length,n=e.length,i=0,a=Math.min(r,n);i<a;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0}function i(t){return r.Buffer&&\"function\"==typeof r.Buffer.isBuffer?r.Buffer.isBuffer(t):!(null==t||!t._isBuffer)}var a=t(\"util/\"),o=Object.prototype.hasOwnProperty,s=Array.prototype.slice,l=\"foo\"===function(){}.name;function c(t){return Object.prototype.toString.call(t)}function u(t){return!i(t)&&(\"function\"==typeof r.ArrayBuffer&&(\"function\"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):!!t&&(t instanceof DataView||!!(t.buffer&&t.buffer instanceof ArrayBuffer))))}var f=e.exports=m,h=/\\s*function\\s+([^\\(\\s]*)\\s*/;function p(t){if(a.isFunction(t)){if(l)return t.name;var e=t.toString().match(h);return e&&e[1]}}function d(t,e){return\"string\"==typeof t?t.length<e?t:t.slice(0,e):t}function g(t){if(l||!a.isFunction(t))return a.inspect(t);var e=p(t);return\"[Function\"+(e?\": \"+e:\"\")+\"]\"}function v(t,e,r,n,i){throw new f.AssertionError({message:r,actual:t,expected:e,operator:n,stackStartFunction:i})}function m(t,e){t||v(t,!0,e,\"==\",f.ok)}function y(t,e,r,o){if(t===e)return!0;if(i(t)&&i(e))return 0===n(t,e);if(a.isDate(t)&&a.isDate(e))return t.getTime()===e.getTime();if(a.isRegExp(t)&&a.isRegExp(e))return t.source===e.source&&t.global===e.global&&t.multiline===e.multiline&&t.lastIndex===e.lastIndex&&t.ignoreCase===e.ignoreCase;if(null!==t&&\"object\"==typeof t||null!==e&&\"object\"==typeof e){if(u(t)&&u(e)&&c(t)===c(e)&&!(t instanceof Float32Array||t instanceof Float64Array))return 0===n(new Uint8Array(t.buffer),new Uint8Array(e.buffer));if(i(t)!==i(e))return!1;var l=(o=o||{actual:[],expected:[]}).actual.indexOf(t);return-1!==l&&l===o.expected.indexOf(e)||(o.actual.push(t),o.expected.push(e),function(t,e,r,n){if(null==t||null==e)return!1;if(a.isPrimitive(t)||a.isPrimitive(e))return t===e;if(r&&Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return!1;var i=x(t),o=x(e);if(i&&!o||!i&&o)return!1;if(i)return t=s.call(t),e=s.call(e),y(t,e,r);var l,c,u=w(t),f=w(e);if(u.length!==f.length)return!1;for(u.sort(),f.sort(),c=u.length-1;c>=0;c--)if(u[c]!==f[c])return!1;for(c=u.length-1;c>=0;c--)if(l=u[c],!y(t[l],e[l],r,n))return!1;return!0}(t,e,r,o))}return r?t===e:t==e}function x(t){return\"[object Arguments]\"==Object.prototype.toString.call(t)}function b(t,e){if(!t||!e)return!1;if(\"[object RegExp]\"==Object.prototype.toString.call(e))return e.test(t);try{if(t instanceof e)return!0}catch(t){}return!Error.isPrototypeOf(e)&&!0===e.call({},t)}function _(t,e,r,n){var i;if(\"function\"!=typeof e)throw new TypeError('\"block\" argument must be a function');\"string\"==typeof r&&(n=r,r=null),i=function(t){var e;try{t()}catch(t){e=t}return e}(e),n=(r&&r.name?\" (\"+r.name+\").\":\".\")+(n?\" \"+n:\".\"),t&&!i&&v(i,r,\"Missing expected exception\"+n);var o=\"string\"==typeof n,s=!t&&i&&!r;if((!t&&a.isError(i)&&o&&b(i,r)||s)&&v(i,r,\"Got unwanted exception\"+n),t&&i&&r&&!b(i,r)||!t&&i)throw i}f.AssertionError=function(t){var e;this.name=\"AssertionError\",this.actual=t.actual,this.expected=t.expected,this.operator=t.operator,t.message?(this.message=t.message,this.generatedMessage=!1):(this.message=d(g((e=this).actual),128)+\" \"+e.operator+\" \"+d(g(e.expected),128),this.generatedMessage=!0);var r=t.stackStartFunction||v;if(Error.captureStackTrace)Error.captureStackTrace(this,r);else{var n=new Error;if(n.stack){var i=n.stack,a=p(r),o=i.indexOf(\"\\n\"+a);if(o>=0){var s=i.indexOf(\"\\n\",o+1);i=i.substring(s+1)}this.stack=i}}},a.inherits(f.AssertionError,Error),f.fail=v,f.ok=m,f.equal=function(t,e,r){t!=e&&v(t,e,r,\"==\",f.equal)},f.notEqual=function(t,e,r){t==e&&v(t,e,r,\"!=\",f.notEqual)},f.deepEqual=function(t,e,r){y(t,e,!1)||v(t,e,r,\"deepEqual\",f.deepEqual)},f.deepStrictEqual=function(t,e,r){y(t,e,!0)||v(t,e,r,\"deepStrictEqual\",f.deepStrictEqual)},f.notDeepEqual=function(t,e,r){y(t,e,!1)&&v(t,e,r,\"notDeepEqual\",f.notDeepEqual)},f.notDeepStrictEqual=function t(e,r,n){y(e,r,!0)&&v(e,r,n,\"notDeepStrictEqual\",t)},f.strictEqual=function(t,e,r){t!==e&&v(t,e,r,\"===\",f.strictEqual)},f.notStrictEqual=function(t,e,r){t===e&&v(t,e,r,\"!==\",f.notStrictEqual)},f.throws=function(t,e,r){_(!0,t,e,r)},f.doesNotThrow=function(t,e,r){_(!1,t,e,r)},f.ifError=function(t){if(t)throw t};var w=Object.keys||function(t){var e=[];for(var r in t)o.call(t,r)&&e.push(r);return e}}).call(this,\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{\"util/\":59}],57:[function(t,e,r){\"function\"==typeof Object.create?e.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}},{}],58:[function(t,e,r){e.exports=function(t){return t&&\"object\"==typeof t&&\"function\"==typeof t.copy&&\"function\"==typeof t.fill&&\"function\"==typeof t.readUInt8}},{}],59:[function(t,e,r){(function(e,n){var i=/%[sdj%]/g;r.format=function(t){if(!m(t)){for(var e=[],r=0;r<arguments.length;r++)e.push(s(arguments[r]));return e.join(\" \")}r=1;for(var n=arguments,a=n.length,o=String(t).replace(i,function(t){if(\"%%\"===t)return\"%\";if(r>=a)return t;switch(t){case\"%s\":return String(n[r++]);case\"%d\":return Number(n[r++]);case\"%j\":try{return JSON.stringify(n[r++])}catch(t){return\"[Circular]\"}default:return t}}),l=n[r];r<a;l=n[++r])g(l)||!b(l)?o+=\" \"+l:o+=\" \"+s(l);return o},r.deprecate=function(t,i){if(y(n.process))return function(){return r.deprecate(t,i).apply(this,arguments)};if(!0===e.noDeprecation)return t;var a=!1;return function(){if(!a){if(e.throwDeprecation)throw new Error(i);e.traceDeprecation?console.trace(i):console.error(i),a=!0}return t.apply(this,arguments)}};var a,o={};function s(t,e){var n={seen:[],stylize:c};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),d(e)?n.showHidden=e:e&&r._extend(n,e),y(n.showHidden)&&(n.showHidden=!1),y(n.depth)&&(n.depth=2),y(n.colors)&&(n.colors=!1),y(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=l),u(n,t,n.depth)}function l(t,e){var r=s.styles[e];return r?\"\\x1b[\"+s.colors[r][0]+\"m\"+t+\"\\x1b[\"+s.colors[r][1]+\"m\":t}function c(t,e){return t}function u(t,e,n){if(t.customInspect&&e&&k(e.inspect)&&e.inspect!==r.inspect&&(!e.constructor||e.constructor.prototype!==e)){var i=e.inspect(n,t);return m(i)||(i=u(t,i,n)),i}var a=function(t,e){if(y(e))return t.stylize(\"undefined\",\"undefined\");if(m(e)){var r=\"'\"+JSON.stringify(e).replace(/^\"|\"$/g,\"\").replace(/'/g,\"\\\\'\").replace(/\\\\\"/g,'\"')+\"'\";return t.stylize(r,\"string\")}if(v(e))return t.stylize(\"\"+e,\"number\");if(d(e))return t.stylize(\"\"+e,\"boolean\");if(g(e))return t.stylize(\"null\",\"null\")}(t,e);if(a)return a;var o=Object.keys(e),s=function(t){var e={};return t.forEach(function(t,r){e[t]=!0}),e}(o);if(t.showHidden&&(o=Object.getOwnPropertyNames(e)),w(e)&&(o.indexOf(\"message\")>=0||o.indexOf(\"description\")>=0))return f(e);if(0===o.length){if(k(e)){var l=e.name?\": \"+e.name:\"\";return t.stylize(\"[Function\"+l+\"]\",\"special\")}if(x(e))return t.stylize(RegExp.prototype.toString.call(e),\"regexp\");if(_(e))return t.stylize(Date.prototype.toString.call(e),\"date\");if(w(e))return f(e)}var c,b=\"\",M=!1,A=[\"{\",\"}\"];(p(e)&&(M=!0,A=[\"[\",\"]\"]),k(e))&&(b=\" [Function\"+(e.name?\": \"+e.name:\"\")+\"]\");return x(e)&&(b=\" \"+RegExp.prototype.toString.call(e)),_(e)&&(b=\" \"+Date.prototype.toUTCString.call(e)),w(e)&&(b=\" \"+f(e)),0!==o.length||M&&0!=e.length?n<0?x(e)?t.stylize(RegExp.prototype.toString.call(e),\"regexp\"):t.stylize(\"[Object]\",\"special\"):(t.seen.push(e),c=M?function(t,e,r,n,i){for(var a=[],o=0,s=e.length;o<s;++o)S(e,String(o))?a.push(h(t,e,r,n,String(o),!0)):a.push(\"\");return i.forEach(function(i){i.match(/^\\d+$/)||a.push(h(t,e,r,n,i,!0))}),a}(t,e,n,s,o):o.map(function(r){return h(t,e,n,s,r,M)}),t.seen.pop(),function(t,e,r){if(t.reduce(function(t,e){return 0,e.indexOf(\"\\n\")>=0&&0,t+e.replace(/\\u001b\\[\\d\\d?m/g,\"\").length+1},0)>60)return r[0]+(\"\"===e?\"\":e+\"\\n \")+\" \"+t.join(\",\\n \")+\" \"+r[1];return r[0]+e+\" \"+t.join(\", \")+\" \"+r[1]}(c,b,A)):A[0]+b+A[1]}function f(t){return\"[\"+Error.prototype.toString.call(t)+\"]\"}function h(t,e,r,n,i,a){var o,s,l;if((l=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?s=l.set?t.stylize(\"[Getter/Setter]\",\"special\"):t.stylize(\"[Getter]\",\"special\"):l.set&&(s=t.stylize(\"[Setter]\",\"special\")),S(n,i)||(o=\"[\"+i+\"]\"),s||(t.seen.indexOf(l.value)<0?(s=g(r)?u(t,l.value,null):u(t,l.value,r-1)).indexOf(\"\\n\")>-1&&(s=a?s.split(\"\\n\").map(function(t){return\" \"+t}).join(\"\\n\").substr(2):\"\\n\"+s.split(\"\\n\").map(function(t){return\" \"+t}).join(\"\\n\")):s=t.stylize(\"[Circular]\",\"special\")),y(o)){if(a&&i.match(/^\\d+$/))return s;(o=JSON.stringify(\"\"+i)).match(/^\"([a-zA-Z_][a-zA-Z_0-9]*)\"$/)?(o=o.substr(1,o.length-2),o=t.stylize(o,\"name\")):(o=o.replace(/'/g,\"\\\\'\").replace(/\\\\\"/g,'\"').replace(/(^\"|\"$)/g,\"'\"),o=t.stylize(o,\"string\"))}return o+\": \"+s}function p(t){return Array.isArray(t)}function d(t){return\"boolean\"==typeof t}function g(t){return null===t}function v(t){return\"number\"==typeof t}function m(t){return\"string\"==typeof t}function y(t){return void 0===t}function x(t){return b(t)&&\"[object RegExp]\"===M(t)}function b(t){return\"object\"==typeof t&&null!==t}function _(t){return b(t)&&\"[object Date]\"===M(t)}function w(t){return b(t)&&(\"[object Error]\"===M(t)||t instanceof Error)}function k(t){return\"function\"==typeof t}function M(t){return Object.prototype.toString.call(t)}function A(t){return t<10?\"0\"+t.toString(10):t.toString(10)}r.debuglog=function(t){if(y(a)&&(a=e.env.NODE_DEBUG||\"\"),t=t.toUpperCase(),!o[t])if(new RegExp(\"\\\\b\"+t+\"\\\\b\",\"i\").test(a)){var n=e.pid;o[t]=function(){var e=r.format.apply(r,arguments);console.error(\"%s %d: %s\",t,n,e)}}else o[t]=function(){};return o[t]},r.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:\"cyan\",number:\"yellow\",boolean:\"yellow\",undefined:\"grey\",null:\"bold\",string:\"green\",date:\"magenta\",regexp:\"red\"},r.isArray=p,r.isBoolean=d,r.isNull=g,r.isNullOrUndefined=function(t){return null==t},r.isNumber=v,r.isString=m,r.isSymbol=function(t){return\"symbol\"==typeof t},r.isUndefined=y,r.isRegExp=x,r.isObject=b,r.isDate=_,r.isError=w,r.isFunction=k,r.isPrimitive=function(t){return null===t||\"boolean\"==typeof t||\"number\"==typeof t||\"string\"==typeof t||\"symbol\"==typeof t||\"undefined\"==typeof t},r.isBuffer=t(\"./support/isBuffer\");var T=[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\"];function S(t,e){return Object.prototype.hasOwnProperty.call(t,e)}r.log=function(){var t,e;console.log(\"%s - %s\",(t=new Date,e=[A(t.getHours()),A(t.getMinutes()),A(t.getSeconds())].join(\":\"),[t.getDate(),T[t.getMonth()],e].join(\" \")),r.format.apply(r,arguments))},r.inherits=t(\"inherits\"),r._extend=function(t,e){if(!e||!b(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t}}).call(this,t(\"_process\"),\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{\"./support/isBuffer\":58,_process:465,inherits:57}],60:[function(t,e,r){e.exports=function(t){return atob(t)}},{}],61:[function(t,e,r){\"use strict\";e.exports=function(t,e){for(var r=e.length,a=new Array(r+1),o=0;o<r;++o){for(var s=new Array(r+1),l=0;l<=r;++l)s[l]=t[l][o];a[o]=s}a[r]=new Array(r+1);for(var o=0;o<=r;++o)a[r][o]=1;for(var c=new Array(r+1),o=0;o<r;++o)c[o]=e[o];c[r]=1;var u=n(a,c),f=i(u[r+1]);0===f&&(f=1);for(var h=new Array(r+1),o=0;o<=r;++o)h[o]=i(u[o])/f;return h};var n=t(\"robust-linear-solve\");function i(t){for(var e=0,r=0;r<t.length;++r)e+=t[r];return e}},{\"robust-linear-solve\":485}],62:[function(t,e,r){\"use strict\";r.byteLength=function(t){var e=c(t),r=e[0],n=e[1];return 3*(r+n)/4-n},r.toByteArray=function(t){for(var e,r=c(t),n=r[0],o=r[1],s=new a(function(t,e,r){return 3*(e+r)/4-r}(0,n,o)),l=0,u=o>0?n-4:n,f=0;f<u;f+=4)e=i[t.charCodeAt(f)]<<18|i[t.charCodeAt(f+1)]<<12|i[t.charCodeAt(f+2)]<<6|i[t.charCodeAt(f+3)],s[l++]=e>>16&255,s[l++]=e>>8&255,s[l++]=255&e;2===o&&(e=i[t.charCodeAt(f)]<<2|i[t.charCodeAt(f+1)]>>4,s[l++]=255&e);1===o&&(e=i[t.charCodeAt(f)]<<10|i[t.charCodeAt(f+1)]<<4|i[t.charCodeAt(f+2)]>>2,s[l++]=e>>8&255,s[l++]=255&e);return s},r.fromByteArray=function(t){for(var e,r=t.length,i=r%3,a=[],o=0,s=r-i;o<s;o+=16383)a.push(u(t,o,o+16383>s?s:o+16383));1===i?(e=t[r-1],a.push(n[e>>2]+n[e<<4&63]+\"==\")):2===i&&(e=(t[r-2]<<8)+t[r-1],a.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+\"=\"));return a.join(\"\")};for(var n=[],i=[],a=\"undefined\"!=typeof Uint8Array?Uint8Array:Array,o=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",s=0,l=o.length;s<l;++s)n[s]=o[s],i[o.charCodeAt(s)]=s;function c(t){var e=t.length;if(e%4>0)throw new Error(\"Invalid string. Length must be a multiple of 4\");var r=t.indexOf(\"=\");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function u(t,e,r){for(var i,a,o=[],s=e;s<r;s+=3)i=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(255&t[s+2]),o.push(n[(a=i)>>18&63]+n[a>>12&63]+n[a>>6&63]+n[63&a]);return o.join(\"\")}i[\"-\".charCodeAt(0)]=62,i[\"_\".charCodeAt(0)]=63},{}],63:[function(t,e,r){\"use strict\";var n=t(\"./lib/rationalize\");e.exports=function(t,e){return n(t[0].mul(e[1]).add(e[0].mul(t[1])),t[1].mul(e[1]))}},{\"./lib/rationalize\":73}],64:[function(t,e,r){\"use strict\";e.exports=function(t,e){return t[0].mul(e[1]).cmp(e[0].mul(t[1]))}},{}],65:[function(t,e,r){\"use strict\";var n=t(\"./lib/rationalize\");e.exports=function(t,e){return n(t[0].mul(e[1]),t[1].mul(e[0]))}},{\"./lib/rationalize\":73}],66:[function(t,e,r){\"use strict\";var n=t(\"./is-rat\"),i=t(\"./lib/is-bn\"),a=t(\"./lib/num-to-bn\"),o=t(\"./lib/str-to-bn\"),s=t(\"./lib/rationalize\"),l=t(\"./div\");e.exports=function t(e,r){if(n(e))return r?l(e,t(r)):[e[0].clone(),e[1].clone()];var c=0;var u,f;if(i(e))u=e.clone();else if(\"string\"==typeof e)u=o(e);else{if(0===e)return[a(0),a(1)];if(e===Math.floor(e))u=a(e);else{for(;e!==Math.floor(e);)e*=Math.pow(2,256),c-=256;u=a(e)}}if(n(r))u.mul(r[1]),f=r[0].clone();else if(i(r))f=r.clone();else if(\"string\"==typeof r)f=o(r);else if(r)if(r===Math.floor(r))f=a(r);else{for(;r!==Math.floor(r);)r*=Math.pow(2,256),c+=256;f=a(r)}else f=a(1);c>0?u=u.ushln(c):c<0&&(f=f.ushln(-c));return s(u,f)}},{\"./div\":65,\"./is-rat\":67,\"./lib/is-bn\":71,\"./lib/num-to-bn\":72,\"./lib/rationalize\":73,\"./lib/str-to-bn\":74}],67:[function(t,e,r){\"use strict\";var n=t(\"./lib/is-bn\");e.exports=function(t){return Array.isArray(t)&&2===t.length&&n(t[0])&&n(t[1])}},{\"./lib/is-bn\":71}],68:[function(t,e,r){\"use strict\";var n=t(\"bn.js\");e.exports=function(t){return t.cmp(new n(0))}},{\"bn.js\":82}],69:[function(t,e,r){\"use strict\";var n=t(\"./bn-sign\");e.exports=function(t){var e=t.length,r=t.words,i=0;if(1===e)i=r[0];else if(2===e)i=r[0]+67108864*r[1];else for(var a=0;a<e;a++){var o=r[a];i+=o*Math.pow(67108864,a)}return n(t)*i}},{\"./bn-sign\":68}],70:[function(t,e,r){\"use strict\";var n=t(\"double-bits\"),i=t(\"bit-twiddle\").countTrailingZeros;e.exports=function(t){var e=i(n.lo(t));if(e<32)return e;var r=i(n.hi(t));if(r>20)return 52;return r+32}},{\"bit-twiddle\":80,\"double-bits\":152}],71:[function(t,e,r){\"use strict\";t(\"bn.js\");e.exports=function(t){return t&&\"object\"==typeof t&&Boolean(t.words)}},{\"bn.js\":82}],72:[function(t,e,r){\"use strict\";var n=t(\"bn.js\"),i=t(\"double-bits\");e.exports=function(t){var e=i.exponent(t);return e<52?new n(t):new n(t*Math.pow(2,52-e)).ushln(e-52)}},{\"bn.js\":82,\"double-bits\":152}],73:[function(t,e,r){\"use strict\";var n=t(\"./num-to-bn\"),i=t(\"./bn-sign\");e.exports=function(t,e){var r=i(t),a=i(e);if(0===r)return[n(0),n(1)];if(0===a)return[n(0),n(0)];a<0&&(t=t.neg(),e=e.neg());var o=t.gcd(e);if(o.cmpn(1))return[t.div(o),e.div(o)];return[t,e]}},{\"./bn-sign\":68,\"./num-to-bn\":72}],74:[function(t,e,r){\"use strict\";var n=t(\"bn.js\");e.exports=function(t){return new n(t)}},{\"bn.js\":82}],75:[function(t,e,r){\"use strict\";var n=t(\"./lib/rationalize\");e.exports=function(t,e){return n(t[0].mul(e[0]),t[1].mul(e[1]))}},{\"./lib/rationalize\":73}],76:[function(t,e,r){\"use strict\";var n=t(\"./lib/bn-sign\");e.exports=function(t){return n(t[0])*n(t[1])}},{\"./lib/bn-sign\":68}],77:[function(t,e,r){\"use strict\";var n=t(\"./lib/rationalize\");e.exports=function(t,e){return n(t[0].mul(e[1]).sub(t[1].mul(e[0])),t[1].mul(e[1]))}},{\"./lib/rationalize\":73}],78:[function(t,e,r){\"use strict\";var n=t(\"./lib/bn-to-num\"),i=t(\"./lib/ctz\");e.exports=function(t){var e=t[0],r=t[1];if(0===e.cmpn(0))return 0;var a=e.abs().divmod(r.abs()),o=a.div,s=n(o),l=a.mod,c=e.negative!==r.negative?-1:1;if(0===l.cmpn(0))return c*s;if(s){var u=i(s)+4,f=n(l.ushln(u).divRound(r));return c*(s+f*Math.pow(2,-u))}var h=r.bitLength()-l.bitLength()+53,f=n(l.ushln(h).divRound(r));return h<1023?c*f*Math.pow(2,-h):(f*=Math.pow(2,-1023),c*f*Math.pow(2,1023-h))}},{\"./lib/bn-to-num\":69,\"./lib/ctz\":70}],79:[function(t,e,r){\"use strict\";function n(t,e,r,n,i,a){var o=[\"function \",t,\"(a,l,h,\",n.join(\",\"),\"){\",a?\"\":\"var i=\",r?\"l-1\":\"h+1\",\";while(l<=h){var m=(l+h)>>>1,x=a\",i?\".get(m)\":\"[m]\"];return a?e.indexOf(\"c\")<0?o.push(\";if(x===y){return m}else if(x<=y){\"):o.push(\";var p=c(x,y);if(p===0){return m}else if(p<=0){\"):o.push(\";if(\",e,\"){i=m;\"),r?o.push(\"l=m+1}else{h=m-1}\"):o.push(\"h=m-1}else{l=m+1}\"),o.push(\"}\"),a?o.push(\"return -1};\"):o.push(\"return i};\"),o.join(\"\")}function i(t,e,r,i){return new Function([n(\"A\",\"x\"+t+\"y\",e,[\"y\"],!1,i),n(\"B\",\"x\"+t+\"y\",e,[\"y\"],!0,i),n(\"P\",\"c(x,y)\"+t+\"0\",e,[\"y\",\"c\"],!1,i),n(\"Q\",\"c(x,y)\"+t+\"0\",e,[\"y\",\"c\"],!0,i),\"function dispatchBsearch\",r,\"(a,y,c,l,h){if(a.shape){if(typeof(c)==='function'){return Q(a,(l===undefined)?0:l|0,(h===undefined)?a.shape[0]-1:h|0,y,c)}else{return B(a,(c===undefined)?0:c|0,(l===undefined)?a.shape[0]-1:l|0,y)}}else{if(typeof(c)==='function'){return P(a,(l===undefined)?0:l|0,(h===undefined)?a.length-1:h|0,y,c)}else{return A(a,(c===undefined)?0:c|0,(l===undefined)?a.length-1:l|0,y)}}}return dispatchBsearch\",r].join(\"\"))()}e.exports={ge:i(\">=\",!1,\"GE\"),gt:i(\">\",!1,\"GT\"),lt:i(\"<\",!0,\"LT\"),le:i(\"<=\",!0,\"LE\"),eq:i(\"-\",!0,\"EQ\",!0)}},{}],80:[function(t,e,r){\"use strict\";function n(t){var e=32;return(t&=-t)&&e--,65535&t&&(e-=16),16711935&t&&(e-=8),252645135&t&&(e-=4),858993459&t&&(e-=2),1431655765&t&&(e-=1),e}r.INT_BITS=32,r.INT_MAX=2147483647,r.INT_MIN=-1<<31,r.sign=function(t){return(t>0)-(t<0)},r.abs=function(t){var e=t>>31;return(t^e)-e},r.min=function(t,e){return e^(t^e)&-(t<e)},r.max=function(t,e){return t^(t^e)&-(t<e)},r.isPow2=function(t){return!(t&t-1||!t)},r.log2=function(t){var e,r;return e=(t>65535)<<4,e|=r=((t>>>=e)>255)<<3,e|=r=((t>>>=r)>15)<<2,(e|=r=((t>>>=r)>3)<<1)|(t>>>=r)>>1},r.log10=function(t){return t>=1e9?9:t>=1e8?8:t>=1e7?7:t>=1e6?6:t>=1e5?5:t>=1e4?4:t>=1e3?3:t>=100?2:t>=10?1:0},r.popCount=function(t){return 16843009*((t=(858993459&(t-=t>>>1&1431655765))+(t>>>2&858993459))+(t>>>4)&252645135)>>>24},r.countTrailingZeros=n,r.nextPow2=function(t){return t+=0===t,--t,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,(t|=t>>>16)+1},r.prevPow2=function(t){return t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,(t|=t>>>16)-(t>>>1)},r.parity=function(t){return t^=t>>>16,t^=t>>>8,t^=t>>>4,27030>>>(t&=15)&1};var i=new Array(256);!function(t){for(var e=0;e<256;++e){var r=e,n=e,i=7;for(r>>>=1;r;r>>>=1)n<<=1,n|=1&r,--i;t[e]=n<<i&255}}(i),r.reverse=function(t){return i[255&t]<<24|i[t>>>8&255]<<16|i[t>>>16&255]<<8|i[t>>>24&255]},r.interleave2=function(t,e){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t&=65535)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e&=65535)|e<<8))|e<<4))|e<<2))|e<<1))<<1},r.deinterleave2=function(t,e){return(t=65535&((t=16711935&((t=252645135&((t=858993459&((t=t>>>e&1431655765)|t>>>1))|t>>>2))|t>>>4))|t>>>16))<<16>>16},r.interleave3=function(t,e,r){return t=1227133513&((t=3272356035&((t=251719695&((t=4278190335&((t&=1023)|t<<16))|t<<8))|t<<4))|t<<2),(t|=(e=1227133513&((e=3272356035&((e=251719695&((e=4278190335&((e&=1023)|e<<16))|e<<8))|e<<4))|e<<2))<<1)|(r=1227133513&((r=3272356035&((r=251719695&((r=4278190335&((r&=1023)|r<<16))|r<<8))|r<<4))|r<<2))<<2},r.deinterleave3=function(t,e){return(t=1023&((t=4278190335&((t=251719695&((t=3272356035&((t=t>>>e&1227133513)|t>>>2))|t>>>4))|t>>>8))|t>>>16))<<22>>22},r.nextCombination=function(t){var e=t|t-1;return e+1|(~e&-~e)-1>>>n(t)+1}},{}],81:[function(t,e,r){\"use strict\";var n=t(\"clamp\");e.exports=function(t,e){e||(e={});var r,o,s,l,c,u,f,h,p,d,g,v=null==e.cutoff?.25:e.cutoff,m=null==e.radius?8:e.radius,y=e.channel||0;if(ArrayBuffer.isView(t)||Array.isArray(t)){if(!e.width||!e.height)throw Error(\"For raw data width and height should be provided by options\");r=e.width,o=e.height,l=t,u=e.stride?e.stride:Math.floor(t.length/r/o)}else window.HTMLCanvasElement&&t instanceof window.HTMLCanvasElement?(f=(h=t).getContext(\"2d\"),r=h.width,o=h.height,p=f.getImageData(0,0,r,o),l=p.data,u=4):window.CanvasRenderingContext2D&&t instanceof window.CanvasRenderingContext2D?(h=t.canvas,f=t,r=h.width,o=h.height,p=f.getImageData(0,0,r,o),l=p.data,u=4):window.ImageData&&t instanceof window.ImageData&&(p=t,r=t.width,o=t.height,l=p.data,u=4);if(s=Math.max(r,o),window.Uint8ClampedArray&&l instanceof window.Uint8ClampedArray||window.Uint8Array&&l instanceof window.Uint8Array)for(c=l,l=Array(r*o),d=0,g=c.length;d<g;d++)l[d]=c[d*u+y]/255;else if(1!==u)throw Error(\"Raw data can have only 1 value per pixel\");var x=Array(r*o),b=Array(r*o),_=Array(s),w=Array(s),k=Array(s+1),M=Array(s);for(d=0,g=r*o;d<g;d++){var A=l[d];x[d]=1===A?0:0===A?i:Math.pow(Math.max(0,.5-A),2),b[d]=1===A?i:0===A?0:Math.pow(Math.max(0,A-.5),2)}a(x,r,o,_,w,M,k),a(b,r,o,_,w,M,k);var T=window.Float32Array?new Float32Array(r*o):new Array(r*o);for(d=0,g=r*o;d<g;d++)T[d]=n(1-((x[d]-b[d])/m+v),0,1);return T};var i=1e20;function a(t,e,r,n,i,a,s){for(var l=0;l<e;l++){for(var c=0;c<r;c++)n[c]=t[c*e+l];for(o(n,i,a,s,r),c=0;c<r;c++)t[c*e+l]=i[c]}for(c=0;c<r;c++){for(l=0;l<e;l++)n[l]=t[c*e+l];for(o(n,i,a,s,e),l=0;l<e;l++)t[c*e+l]=Math.sqrt(i[l])}}function o(t,e,r,n,a){r[0]=0,n[0]=-i,n[1]=+i;for(var o=1,s=0;o<a;o++){for(var l=(t[o]+o*o-(t[r[s]]+r[s]*r[s]))/(2*o-2*r[s]);l<=n[s];)s--,l=(t[o]+o*o-(t[r[s]]+r[s]*r[s]))/(2*o-2*r[s]);r[++s]=o,n[s]=l,n[s+1]=+i}for(o=0,s=0;o<a;o++){for(;n[s+1]<o;)s++;e[o]=(o-r[s])*(o-r[s])+t[r[s]]}}},{clamp:103}],82:[function(t,e,r){!function(e,r){\"use strict\";function n(t,e){if(!t)throw new Error(e||\"Assertion failed\")}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function a(t,e,r){if(a.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&(\"le\"!==e&&\"be\"!==e||(r=e,e=10),this._init(t||0,e||10,r||\"be\"))}var o;\"object\"==typeof e?e.exports=a:r.BN=a,a.BN=a,a.wordSize=26;try{o=t(\"buffer\").Buffer}catch(t){}function s(t,e,r){for(var n=0,i=Math.min(t.length,r),a=e;a<i;a++){var o=t.charCodeAt(a)-48;n<<=4,n|=o>=49&&o<=54?o-49+10:o>=17&&o<=22?o-17+10:15&o}return n}function l(t,e,r,n){for(var i=0,a=Math.min(t.length,r),o=e;o<a;o++){var s=t.charCodeAt(o)-48;i*=n,i+=s>=49?s-49+10:s>=17?s-17+10:s}return i}a.isBN=function(t){return t instanceof a||null!==t&&\"object\"==typeof t&&t.constructor.wordSize===a.wordSize&&Array.isArray(t.words)},a.max=function(t,e){return t.cmp(e)>0?t:e},a.min=function(t,e){return t.cmp(e)<0?t:e},a.prototype._init=function(t,e,r){if(\"number\"==typeof t)return this._initNumber(t,e,r);if(\"object\"==typeof t)return this._initArray(t,e,r);\"hex\"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var i=0;\"-\"===(t=t.toString().replace(/\\s+/g,\"\"))[0]&&i++,16===e?this._parseHex(t,i):this._parseBase(t,e,i),\"-\"===t[0]&&(this.negative=1),this.strip(),\"le\"===r&&this._initArray(this.toArray(),e,r)},a.prototype._initNumber=function(t,e,r){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),\"le\"===r&&this._initArray(this.toArray(),e,r)},a.prototype._initArray=function(t,e,r){if(n(\"number\"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var a,o,s=0;if(\"be\"===r)for(i=t.length-1,a=0;i>=0;i-=3)o=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[a]|=o<<s&67108863,this.words[a+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);else if(\"le\"===r)for(i=0,a=0;i<t.length;i+=3)o=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[a]|=o<<s&67108863,this.words[a+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);return this.strip()},a.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var n,i,a=0;for(r=t.length-6,n=0;r>=e;r-=6)i=s(t,r,r+6),this.words[n]|=i<<a&67108863,this.words[n+1]|=i>>>26-a&4194303,(a+=24)>=26&&(a-=26,n++);r+6!==e&&(i=s(t,e,r+6),this.words[n]|=i<<a&67108863,this.words[n+1]|=i>>>26-a&4194303),this.strip()},a.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var a=t.length-r,o=a%n,s=Math.min(a,a-o)+r,c=0,u=r;u<s;u+=n)c=l(t,u,u+n,e),this.imuln(i),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(0!==o){var f=1;for(c=l(t,u,t.length,e),u=0;u<o;u++)f*=e;this.imuln(f),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}},a.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},a.prototype.clone=function(){var t=new a(null);return this.copy(t),t},a.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},a.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?\"<BN-R: \":\"<BN: \")+this.toString(16)+\">\"};var c=[\"\",\"0\",\"00\",\"000\",\"0000\",\"00000\",\"000000\",\"0000000\",\"00000000\",\"000000000\",\"0000000000\",\"00000000000\",\"000000000000\",\"0000000000000\",\"00000000000000\",\"000000000000000\",\"0000000000000000\",\"00000000000000000\",\"000000000000000000\",\"0000000000000000000\",\"00000000000000000000\",\"000000000000000000000\",\"0000000000000000000000\",\"00000000000000000000000\",\"000000000000000000000000\",\"0000000000000000000000000\"],u=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],f=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function h(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],a=0|e.words[0],o=i*a,s=67108863&o,l=o/67108864|0;r.words[0]=s;for(var c=1;c<n;c++){for(var u=l>>>26,f=67108863&l,h=Math.min(c,e.length-1),p=Math.max(0,c-t.length+1);p<=h;p++){var d=c-p|0;u+=(o=(i=0|t.words[d])*(a=0|e.words[p])+f)/67108864|0,f=67108863&o}r.words[c]=0|f,l=0|u}return 0!==l?r.words[c]=0|l:r.length--,r.strip()}a.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||\"hex\"===t){r=\"\";for(var i=0,a=0,o=0;o<this.length;o++){var s=this.words[o],l=(16777215&(s<<i|a)).toString(16);r=0!==(a=s>>>24-i&16777215)||o!==this.length-1?c[6-l.length]+l+r:l+r,(i+=2)>=26&&(i-=26,o--)}for(0!==a&&(r=a.toString(16)+r);r.length%e!=0;)r=\"0\"+r;return 0!==this.negative&&(r=\"-\"+r),r}if(t===(0|t)&&t>=2&&t<=36){var h=u[t],p=f[t];r=\"\";var d=this.clone();for(d.negative=0;!d.isZero();){var g=d.modn(p).toString(t);r=(d=d.idivn(p)).isZero()?g+r:c[h-g.length]+g+r}for(this.isZero()&&(r=\"0\"+r);r.length%e!=0;)r=\"0\"+r;return 0!==this.negative&&(r=\"-\"+r),r}n(!1,\"Base should be between 2 and 36\")},a.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,\"Number can only safely store up to 53 bits\"),0!==this.negative?-t:t},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(t,e){return n(\"undefined\"!=typeof o),this.toArrayLike(o,t,e)},a.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},a.prototype.toArrayLike=function(t,e,r){var i=this.byteLength(),a=r||Math.max(1,i);n(i<=a,\"byte array longer than desired length\"),n(a>0,\"Requested array length <= 0\"),this.strip();var o,s,l=\"le\"===e,c=new t(a),u=this.clone();if(l){for(s=0;!u.isZero();s++)o=u.andln(255),u.iushrn(8),c[s]=o;for(;s<a;s++)c[s]=0}else{for(s=0;s<a-i;s++)c[s]=0;for(s=0;!u.isZero();s++)o=u.andln(255),u.iushrn(8),c[a-s-1]=o}return c},Math.clz32?a.prototype._countBits=function(t){return 32-Math.clz32(t)}:a.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},a.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0==(8191&e)&&(r+=13,e>>>=13),0==(127&e)&&(r+=7,e>>>=7),0==(15&e)&&(r+=4,e>>>=4),0==(3&e)&&(r+=2,e>>>=2),0==(1&e)&&r++,r},a.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},a.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return 0!==this.negative},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},a.prototype.ior=function(t){return n(0==(this.negative|t.negative)),this.iuor(t)},a.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},a.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},a.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this.strip()},a.prototype.iand=function(t){return n(0==(this.negative|t.negative)),this.iuand(t)},a.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},a.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},a.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this.strip()},a.prototype.ixor=function(t){return n(0==(this.negative|t.negative)),this.iuxor(t)},a.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},a.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},a.prototype.inotn=function(t){n(\"number\"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},a.prototype.notn=function(t){return this.clone().inotn(t)},a.prototype.setn=function(t,e){n(\"number\"==typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<i:this.words[r]&~(1<<i),this.strip()},a.prototype.iadd=function(t){var e,r,n;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(r=this,n=t):(r=t,n=this);for(var i=0,a=0;a<n.length;a++)e=(0|r.words[a])+(0|n.words[a])+i,this.words[a]=67108863&e,i=e>>>26;for(;0!==i&&a<r.length;a++)e=(0|r.words[a])+i,this.words[a]=67108863&e,i=e>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this},a.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},a.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var a=0,o=0;o<n.length;o++)a=(e=(0|r.words[o])-(0|n.words[o])+a)>>26,this.words[o]=67108863&e;for(;0!==a&&o<r.length;o++)a=(e=(0|r.words[o])+a)>>26,this.words[o]=67108863&e;if(0===a&&o<r.length&&r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this.length=Math.max(this.length,o),r!==this&&(this.negative=1),this.strip()},a.prototype.sub=function(t){return this.clone().isub(t)};var p=function(t,e,r){var n,i,a,o=t.words,s=e.words,l=r.words,c=0,u=0|o[0],f=8191&u,h=u>>>13,p=0|o[1],d=8191&p,g=p>>>13,v=0|o[2],m=8191&v,y=v>>>13,x=0|o[3],b=8191&x,_=x>>>13,w=0|o[4],k=8191&w,M=w>>>13,A=0|o[5],T=8191&A,S=A>>>13,E=0|o[6],C=8191&E,L=E>>>13,z=0|o[7],O=8191&z,I=z>>>13,P=0|o[8],D=8191&P,R=P>>>13,B=0|o[9],F=8191&B,N=B>>>13,j=0|s[0],V=8191&j,U=j>>>13,q=0|s[1],H=8191&q,G=q>>>13,W=0|s[2],Y=8191&W,X=W>>>13,Z=0|s[3],$=8191&Z,J=Z>>>13,K=0|s[4],Q=8191&K,tt=K>>>13,et=0|s[5],rt=8191&et,nt=et>>>13,it=0|s[6],at=8191&it,ot=it>>>13,st=0|s[7],lt=8191&st,ct=st>>>13,ut=0|s[8],ft=8191&ut,ht=ut>>>13,pt=0|s[9],dt=8191&pt,gt=pt>>>13;r.negative=t.negative^e.negative,r.length=19;var vt=(c+(n=Math.imul(f,V))|0)+((8191&(i=(i=Math.imul(f,U))+Math.imul(h,V)|0))<<13)|0;c=((a=Math.imul(h,U))+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(d,V),i=(i=Math.imul(d,U))+Math.imul(g,V)|0,a=Math.imul(g,U);var mt=(c+(n=n+Math.imul(f,H)|0)|0)+((8191&(i=(i=i+Math.imul(f,G)|0)+Math.imul(h,H)|0))<<13)|0;c=((a=a+Math.imul(h,G)|0)+(i>>>13)|0)+(mt>>>26)|0,mt&=67108863,n=Math.imul(m,V),i=(i=Math.imul(m,U))+Math.imul(y,V)|0,a=Math.imul(y,U),n=n+Math.imul(d,H)|0,i=(i=i+Math.imul(d,G)|0)+Math.imul(g,H)|0,a=a+Math.imul(g,G)|0;var yt=(c+(n=n+Math.imul(f,Y)|0)|0)+((8191&(i=(i=i+Math.imul(f,X)|0)+Math.imul(h,Y)|0))<<13)|0;c=((a=a+Math.imul(h,X)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(b,V),i=(i=Math.imul(b,U))+Math.imul(_,V)|0,a=Math.imul(_,U),n=n+Math.imul(m,H)|0,i=(i=i+Math.imul(m,G)|0)+Math.imul(y,H)|0,a=a+Math.imul(y,G)|0,n=n+Math.imul(d,Y)|0,i=(i=i+Math.imul(d,X)|0)+Math.imul(g,Y)|0,a=a+Math.imul(g,X)|0;var xt=(c+(n=n+Math.imul(f,$)|0)|0)+((8191&(i=(i=i+Math.imul(f,J)|0)+Math.imul(h,$)|0))<<13)|0;c=((a=a+Math.imul(h,J)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(k,V),i=(i=Math.imul(k,U))+Math.imul(M,V)|0,a=Math.imul(M,U),n=n+Math.imul(b,H)|0,i=(i=i+Math.imul(b,G)|0)+Math.imul(_,H)|0,a=a+Math.imul(_,G)|0,n=n+Math.imul(m,Y)|0,i=(i=i+Math.imul(m,X)|0)+Math.imul(y,Y)|0,a=a+Math.imul(y,X)|0,n=n+Math.imul(d,$)|0,i=(i=i+Math.imul(d,J)|0)+Math.imul(g,$)|0,a=a+Math.imul(g,J)|0;var bt=(c+(n=n+Math.imul(f,Q)|0)|0)+((8191&(i=(i=i+Math.imul(f,tt)|0)+Math.imul(h,Q)|0))<<13)|0;c=((a=a+Math.imul(h,tt)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(T,V),i=(i=Math.imul(T,U))+Math.imul(S,V)|0,a=Math.imul(S,U),n=n+Math.imul(k,H)|0,i=(i=i+Math.imul(k,G)|0)+Math.imul(M,H)|0,a=a+Math.imul(M,G)|0,n=n+Math.imul(b,Y)|0,i=(i=i+Math.imul(b,X)|0)+Math.imul(_,Y)|0,a=a+Math.imul(_,X)|0,n=n+Math.imul(m,$)|0,i=(i=i+Math.imul(m,J)|0)+Math.imul(y,$)|0,a=a+Math.imul(y,J)|0,n=n+Math.imul(d,Q)|0,i=(i=i+Math.imul(d,tt)|0)+Math.imul(g,Q)|0,a=a+Math.imul(g,tt)|0;var _t=(c+(n=n+Math.imul(f,rt)|0)|0)+((8191&(i=(i=i+Math.imul(f,nt)|0)+Math.imul(h,rt)|0))<<13)|0;c=((a=a+Math.imul(h,nt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(C,V),i=(i=Math.imul(C,U))+Math.imul(L,V)|0,a=Math.imul(L,U),n=n+Math.imul(T,H)|0,i=(i=i+Math.imul(T,G)|0)+Math.imul(S,H)|0,a=a+Math.imul(S,G)|0,n=n+Math.imul(k,Y)|0,i=(i=i+Math.imul(k,X)|0)+Math.imul(M,Y)|0,a=a+Math.imul(M,X)|0,n=n+Math.imul(b,$)|0,i=(i=i+Math.imul(b,J)|0)+Math.imul(_,$)|0,a=a+Math.imul(_,J)|0,n=n+Math.imul(m,Q)|0,i=(i=i+Math.imul(m,tt)|0)+Math.imul(y,Q)|0,a=a+Math.imul(y,tt)|0,n=n+Math.imul(d,rt)|0,i=(i=i+Math.imul(d,nt)|0)+Math.imul(g,rt)|0,a=a+Math.imul(g,nt)|0;var wt=(c+(n=n+Math.imul(f,at)|0)|0)+((8191&(i=(i=i+Math.imul(f,ot)|0)+Math.imul(h,at)|0))<<13)|0;c=((a=a+Math.imul(h,ot)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(O,V),i=(i=Math.imul(O,U))+Math.imul(I,V)|0,a=Math.imul(I,U),n=n+Math.imul(C,H)|0,i=(i=i+Math.imul(C,G)|0)+Math.imul(L,H)|0,a=a+Math.imul(L,G)|0,n=n+Math.imul(T,Y)|0,i=(i=i+Math.imul(T,X)|0)+Math.imul(S,Y)|0,a=a+Math.imul(S,X)|0,n=n+Math.imul(k,$)|0,i=(i=i+Math.imul(k,J)|0)+Math.imul(M,$)|0,a=a+Math.imul(M,J)|0,n=n+Math.imul(b,Q)|0,i=(i=i+Math.imul(b,tt)|0)+Math.imul(_,Q)|0,a=a+Math.imul(_,tt)|0,n=n+Math.imul(m,rt)|0,i=(i=i+Math.imul(m,nt)|0)+Math.imul(y,rt)|0,a=a+Math.imul(y,nt)|0,n=n+Math.imul(d,at)|0,i=(i=i+Math.imul(d,ot)|0)+Math.imul(g,at)|0,a=a+Math.imul(g,ot)|0;var kt=(c+(n=n+Math.imul(f,lt)|0)|0)+((8191&(i=(i=i+Math.imul(f,ct)|0)+Math.imul(h,lt)|0))<<13)|0;c=((a=a+Math.imul(h,ct)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(D,V),i=(i=Math.imul(D,U))+Math.imul(R,V)|0,a=Math.imul(R,U),n=n+Math.imul(O,H)|0,i=(i=i+Math.imul(O,G)|0)+Math.imul(I,H)|0,a=a+Math.imul(I,G)|0,n=n+Math.imul(C,Y)|0,i=(i=i+Math.imul(C,X)|0)+Math.imul(L,Y)|0,a=a+Math.imul(L,X)|0,n=n+Math.imul(T,$)|0,i=(i=i+Math.imul(T,J)|0)+Math.imul(S,$)|0,a=a+Math.imul(S,J)|0,n=n+Math.imul(k,Q)|0,i=(i=i+Math.imul(k,tt)|0)+Math.imul(M,Q)|0,a=a+Math.imul(M,tt)|0,n=n+Math.imul(b,rt)|0,i=(i=i+Math.imul(b,nt)|0)+Math.imul(_,rt)|0,a=a+Math.imul(_,nt)|0,n=n+Math.imul(m,at)|0,i=(i=i+Math.imul(m,ot)|0)+Math.imul(y,at)|0,a=a+Math.imul(y,ot)|0,n=n+Math.imul(d,lt)|0,i=(i=i+Math.imul(d,ct)|0)+Math.imul(g,lt)|0,a=a+Math.imul(g,ct)|0;var Mt=(c+(n=n+Math.imul(f,ft)|0)|0)+((8191&(i=(i=i+Math.imul(f,ht)|0)+Math.imul(h,ft)|0))<<13)|0;c=((a=a+Math.imul(h,ht)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(F,V),i=(i=Math.imul(F,U))+Math.imul(N,V)|0,a=Math.imul(N,U),n=n+Math.imul(D,H)|0,i=(i=i+Math.imul(D,G)|0)+Math.imul(R,H)|0,a=a+Math.imul(R,G)|0,n=n+Math.imul(O,Y)|0,i=(i=i+Math.imul(O,X)|0)+Math.imul(I,Y)|0,a=a+Math.imul(I,X)|0,n=n+Math.imul(C,$)|0,i=(i=i+Math.imul(C,J)|0)+Math.imul(L,$)|0,a=a+Math.imul(L,J)|0,n=n+Math.imul(T,Q)|0,i=(i=i+Math.imul(T,tt)|0)+Math.imul(S,Q)|0,a=a+Math.imul(S,tt)|0,n=n+Math.imul(k,rt)|0,i=(i=i+Math.imul(k,nt)|0)+Math.imul(M,rt)|0,a=a+Math.imul(M,nt)|0,n=n+Math.imul(b,at)|0,i=(i=i+Math.imul(b,ot)|0)+Math.imul(_,at)|0,a=a+Math.imul(_,ot)|0,n=n+Math.imul(m,lt)|0,i=(i=i+Math.imul(m,ct)|0)+Math.imul(y,lt)|0,a=a+Math.imul(y,ct)|0,n=n+Math.imul(d,ft)|0,i=(i=i+Math.imul(d,ht)|0)+Math.imul(g,ft)|0,a=a+Math.imul(g,ht)|0;var At=(c+(n=n+Math.imul(f,dt)|0)|0)+((8191&(i=(i=i+Math.imul(f,gt)|0)+Math.imul(h,dt)|0))<<13)|0;c=((a=a+Math.imul(h,gt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(F,H),i=(i=Math.imul(F,G))+Math.imul(N,H)|0,a=Math.imul(N,G),n=n+Math.imul(D,Y)|0,i=(i=i+Math.imul(D,X)|0)+Math.imul(R,Y)|0,a=a+Math.imul(R,X)|0,n=n+Math.imul(O,$)|0,i=(i=i+Math.imul(O,J)|0)+Math.imul(I,$)|0,a=a+Math.imul(I,J)|0,n=n+Math.imul(C,Q)|0,i=(i=i+Math.imul(C,tt)|0)+Math.imul(L,Q)|0,a=a+Math.imul(L,tt)|0,n=n+Math.imul(T,rt)|0,i=(i=i+Math.imul(T,nt)|0)+Math.imul(S,rt)|0,a=a+Math.imul(S,nt)|0,n=n+Math.imul(k,at)|0,i=(i=i+Math.imul(k,ot)|0)+Math.imul(M,at)|0,a=a+Math.imul(M,ot)|0,n=n+Math.imul(b,lt)|0,i=(i=i+Math.imul(b,ct)|0)+Math.imul(_,lt)|0,a=a+Math.imul(_,ct)|0,n=n+Math.imul(m,ft)|0,i=(i=i+Math.imul(m,ht)|0)+Math.imul(y,ft)|0,a=a+Math.imul(y,ht)|0;var Tt=(c+(n=n+Math.imul(d,dt)|0)|0)+((8191&(i=(i=i+Math.imul(d,gt)|0)+Math.imul(g,dt)|0))<<13)|0;c=((a=a+Math.imul(g,gt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(F,Y),i=(i=Math.imul(F,X))+Math.imul(N,Y)|0,a=Math.imul(N,X),n=n+Math.imul(D,$)|0,i=(i=i+Math.imul(D,J)|0)+Math.imul(R,$)|0,a=a+Math.imul(R,J)|0,n=n+Math.imul(O,Q)|0,i=(i=i+Math.imul(O,tt)|0)+Math.imul(I,Q)|0,a=a+Math.imul(I,tt)|0,n=n+Math.imul(C,rt)|0,i=(i=i+Math.imul(C,nt)|0)+Math.imul(L,rt)|0,a=a+Math.imul(L,nt)|0,n=n+Math.imul(T,at)|0,i=(i=i+Math.imul(T,ot)|0)+Math.imul(S,at)|0,a=a+Math.imul(S,ot)|0,n=n+Math.imul(k,lt)|0,i=(i=i+Math.imul(k,ct)|0)+Math.imul(M,lt)|0,a=a+Math.imul(M,ct)|0,n=n+Math.imul(b,ft)|0,i=(i=i+Math.imul(b,ht)|0)+Math.imul(_,ft)|0,a=a+Math.imul(_,ht)|0;var St=(c+(n=n+Math.imul(m,dt)|0)|0)+((8191&(i=(i=i+Math.imul(m,gt)|0)+Math.imul(y,dt)|0))<<13)|0;c=((a=a+Math.imul(y,gt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(F,$),i=(i=Math.imul(F,J))+Math.imul(N,$)|0,a=Math.imul(N,J),n=n+Math.imul(D,Q)|0,i=(i=i+Math.imul(D,tt)|0)+Math.imul(R,Q)|0,a=a+Math.imul(R,tt)|0,n=n+Math.imul(O,rt)|0,i=(i=i+Math.imul(O,nt)|0)+Math.imul(I,rt)|0,a=a+Math.imul(I,nt)|0,n=n+Math.imul(C,at)|0,i=(i=i+Math.imul(C,ot)|0)+Math.imul(L,at)|0,a=a+Math.imul(L,ot)|0,n=n+Math.imul(T,lt)|0,i=(i=i+Math.imul(T,ct)|0)+Math.imul(S,lt)|0,a=a+Math.imul(S,ct)|0,n=n+Math.imul(k,ft)|0,i=(i=i+Math.imul(k,ht)|0)+Math.imul(M,ft)|0,a=a+Math.imul(M,ht)|0;var Et=(c+(n=n+Math.imul(b,dt)|0)|0)+((8191&(i=(i=i+Math.imul(b,gt)|0)+Math.imul(_,dt)|0))<<13)|0;c=((a=a+Math.imul(_,gt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(F,Q),i=(i=Math.imul(F,tt))+Math.imul(N,Q)|0,a=Math.imul(N,tt),n=n+Math.imul(D,rt)|0,i=(i=i+Math.imul(D,nt)|0)+Math.imul(R,rt)|0,a=a+Math.imul(R,nt)|0,n=n+Math.imul(O,at)|0,i=(i=i+Math.imul(O,ot)|0)+Math.imul(I,at)|0,a=a+Math.imul(I,ot)|0,n=n+Math.imul(C,lt)|0,i=(i=i+Math.imul(C,ct)|0)+Math.imul(L,lt)|0,a=a+Math.imul(L,ct)|0,n=n+Math.imul(T,ft)|0,i=(i=i+Math.imul(T,ht)|0)+Math.imul(S,ft)|0,a=a+Math.imul(S,ht)|0;var Ct=(c+(n=n+Math.imul(k,dt)|0)|0)+((8191&(i=(i=i+Math.imul(k,gt)|0)+Math.imul(M,dt)|0))<<13)|0;c=((a=a+Math.imul(M,gt)|0)+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(F,rt),i=(i=Math.imul(F,nt))+Math.imul(N,rt)|0,a=Math.imul(N,nt),n=n+Math.imul(D,at)|0,i=(i=i+Math.imul(D,ot)|0)+Math.imul(R,at)|0,a=a+Math.imul(R,ot)|0,n=n+Math.imul(O,lt)|0,i=(i=i+Math.imul(O,ct)|0)+Math.imul(I,lt)|0,a=a+Math.imul(I,ct)|0,n=n+Math.imul(C,ft)|0,i=(i=i+Math.imul(C,ht)|0)+Math.imul(L,ft)|0,a=a+Math.imul(L,ht)|0;var Lt=(c+(n=n+Math.imul(T,dt)|0)|0)+((8191&(i=(i=i+Math.imul(T,gt)|0)+Math.imul(S,dt)|0))<<13)|0;c=((a=a+Math.imul(S,gt)|0)+(i>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,n=Math.imul(F,at),i=(i=Math.imul(F,ot))+Math.imul(N,at)|0,a=Math.imul(N,ot),n=n+Math.imul(D,lt)|0,i=(i=i+Math.imul(D,ct)|0)+Math.imul(R,lt)|0,a=a+Math.imul(R,ct)|0,n=n+Math.imul(O,ft)|0,i=(i=i+Math.imul(O,ht)|0)+Math.imul(I,ft)|0,a=a+Math.imul(I,ht)|0;var zt=(c+(n=n+Math.imul(C,dt)|0)|0)+((8191&(i=(i=i+Math.imul(C,gt)|0)+Math.imul(L,dt)|0))<<13)|0;c=((a=a+Math.imul(L,gt)|0)+(i>>>13)|0)+(zt>>>26)|0,zt&=67108863,n=Math.imul(F,lt),i=(i=Math.imul(F,ct))+Math.imul(N,lt)|0,a=Math.imul(N,ct),n=n+Math.imul(D,ft)|0,i=(i=i+Math.imul(D,ht)|0)+Math.imul(R,ft)|0,a=a+Math.imul(R,ht)|0;var Ot=(c+(n=n+Math.imul(O,dt)|0)|0)+((8191&(i=(i=i+Math.imul(O,gt)|0)+Math.imul(I,dt)|0))<<13)|0;c=((a=a+Math.imul(I,gt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(F,ft),i=(i=Math.imul(F,ht))+Math.imul(N,ft)|0,a=Math.imul(N,ht);var It=(c+(n=n+Math.imul(D,dt)|0)|0)+((8191&(i=(i=i+Math.imul(D,gt)|0)+Math.imul(R,dt)|0))<<13)|0;c=((a=a+Math.imul(R,gt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863;var Pt=(c+(n=Math.imul(F,dt))|0)+((8191&(i=(i=Math.imul(F,gt))+Math.imul(N,dt)|0))<<13)|0;return c=((a=Math.imul(N,gt))+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,l[0]=vt,l[1]=mt,l[2]=yt,l[3]=xt,l[4]=bt,l[5]=_t,l[6]=wt,l[7]=kt,l[8]=Mt,l[9]=At,l[10]=Tt,l[11]=St,l[12]=Et,l[13]=Ct,l[14]=Lt,l[15]=zt,l[16]=Ot,l[17]=It,l[18]=Pt,0!==c&&(l[19]=c,r.length++),r};function d(t,e,r){return(new g).mulp(t,e,r)}function g(t,e){this.x=t,this.y=e}Math.imul||(p=h),a.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?p(this,t,e):r<63?h(this,t,e):r<1024?function(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,a=0;a<r.length-1;a++){var o=i;i=0;for(var s=67108863&n,l=Math.min(a,e.length-1),c=Math.max(0,a-t.length+1);c<=l;c++){var u=a-c,f=(0|t.words[u])*(0|e.words[c]),h=67108863&f;s=67108863&(h=h+s|0),i+=(o=(o=o+(f/67108864|0)|0)+(h>>>26)|0)>>>26,o&=67108863}r.words[a]=s,n=o,o=i}return 0!==n?r.words[a]=n:r.length--,r.strip()}(this,t,e):d(this,t,e)},g.prototype.makeRBT=function(t){for(var e=new Array(t),r=a.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,r,t);return e},g.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},g.prototype.permute=function(t,e,r,n,i,a){for(var o=0;o<a;o++)n[o]=e[t[o]],i[o]=r[t[o]]},g.prototype.transform=function(t,e,r,n,i,a){this.permute(a,t,e,r,n,i);for(var o=1;o<i;o<<=1)for(var s=o<<1,l=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),u=0;u<i;u+=s)for(var f=l,h=c,p=0;p<o;p++){var d=r[u+p],g=n[u+p],v=r[u+p+o],m=n[u+p+o],y=f*v-h*m;m=f*m+h*v,v=y,r[u+p]=d+v,n[u+p]=g+m,r[u+p+o]=d-v,n[u+p+o]=g-m,p!==s&&(y=l*f-c*h,h=l*h+c*f,f=y)}},g.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},g.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},g.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&i,r=i<67108864?0:i/67108864|0}return t},g.prototype.convert13b=function(t,e,r,i){for(var a=0,o=0;o<e;o++)a+=0|t[o],r[2*o]=8191&a,a>>>=13,r[2*o+1]=8191&a,a>>>=13;for(o=2*e;o<i;++o)r[o]=0;n(0===a),n(0==(-8192&a))},g.prototype.stub=function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=0;return e},g.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),a=this.stub(n),o=new Array(n),s=new Array(n),l=new Array(n),c=new Array(n),u=new Array(n),f=new Array(n),h=r.words;h.length=n,this.convert13b(t.words,t.length,o,n),this.convert13b(e.words,e.length,c,n),this.transform(o,a,s,l,n,i),this.transform(c,a,u,f,n,i);for(var p=0;p<n;p++){var d=s[p]*u[p]-l[p]*f[p];l[p]=s[p]*f[p]+l[p]*u[p],s[p]=d}return this.conjugate(s,l,n),this.transform(s,l,h,a,n,i),this.conjugate(h,a,n),this.normalize13b(h,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r.strip()},a.prototype.mul=function(t){var e=new a(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},a.prototype.mulf=function(t){var e=new a(null);return e.words=new Array(this.length+t.length),d(this,t,e)},a.prototype.imul=function(t){return this.clone().mulTo(t,this)},a.prototype.imuln=function(t){n(\"number\"==typeof t),n(t<67108864);for(var e=0,r=0;r<this.length;r++){var i=(0|this.words[r])*t,a=(67108863&i)+(67108863&e);e>>=26,e+=i/67108864|0,e+=a>>>26,this.words[r]=67108863&a}return 0!==e&&(this.words[r]=e,this.length++),this},a.prototype.muln=function(t){return this.clone().imuln(t)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,i=r%26;e[r]=(t.words[n]&1<<i)>>>i}return e}(t);if(0===e.length)return new a(1);for(var r=this,n=0;n<e.length&&0===e[n];n++,r=r.sqr());if(++n<e.length)for(var i=r.sqr();n<e.length;n++,i=i.sqr())0!==e[n]&&(r=r.mul(i));return r},a.prototype.iushln=function(t){n(\"number\"==typeof t&&t>=0);var e,r=t%26,i=(t-r)/26,a=67108863>>>26-r<<26-r;if(0!==r){var o=0;for(e=0;e<this.length;e++){var s=this.words[e]&a,l=(0|this.words[e])-s<<r;this.words[e]=l|o,o=s>>>26-r}o&&(this.words[e]=o,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this.strip()},a.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},a.prototype.iushrn=function(t,e,r){var i;n(\"number\"==typeof t&&t>=0),i=e?(e-e%26)/26:0;var a=t%26,o=Math.min((t-a)/26,this.length),s=67108863^67108863>>>a<<a,l=r;if(i-=o,i=Math.max(0,i),l){for(var c=0;c<o;c++)l.words[c]=this.words[c];l.length=o}if(0===o);else if(this.length>o)for(this.length-=o,c=0;c<this.length;c++)this.words[c]=this.words[c+o];else this.words[0]=0,this.length=1;var u=0;for(c=this.length-1;c>=0&&(0!==u||c>=i);c--){var f=0|this.words[c];this.words[c]=u<<26-a|f>>>a,u=f&s}return l&&0!==u&&(l.words[l.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},a.prototype.shln=function(t){return this.clone().ishln(t)},a.prototype.ushln=function(t){return this.clone().iushln(t)},a.prototype.shrn=function(t){return this.clone().ishrn(t)},a.prototype.ushrn=function(t){return this.clone().iushrn(t)},a.prototype.testn=function(t){n(\"number\"==typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<<e;return!(this.length<=r)&&!!(this.words[r]&i)},a.prototype.imaskn=function(t){n(\"number\"==typeof t&&t>=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,\"imaskn works only with positive numbers\"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this.strip()},a.prototype.maskn=function(t){return this.clone().imaskn(t)},a.prototype.iaddn=function(t){return n(\"number\"==typeof t),n(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},a.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},a.prototype.isubn=function(t){if(n(\"number\"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},a.prototype.addn=function(t){return this.clone().iaddn(t)},a.prototype.subn=function(t){return this.clone().isubn(t)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(t,e,r){var i,a,o=t.length+r;this._expand(o);var s=0;for(i=0;i<t.length;i++){a=(0|this.words[i+r])+s;var l=(0|t.words[i])*e;s=((a-=67108863&l)>>26)-(l/67108864|0),this.words[i+r]=67108863&a}for(;i<this.length-r;i++)s=(a=(0|this.words[i+r])+s)>>26,this.words[i+r]=67108863&a;if(0===s)return this.strip();for(n(-1===s),s=0,i=0;i<this.length;i++)s=(a=-(0|this.words[i])+s)>>26,this.words[i]=67108863&a;return this.negative=1,this.strip()},a.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),i=t,o=0|i.words[i.length-1];0!==(r=26-this._countBits(o))&&(i=i.ushln(r),n.iushln(r),o=0|i.words[i.length-1]);var s,l=n.length-i.length;if(\"mod\"!==e){(s=new a(null)).length=l+1,s.words=new Array(s.length);for(var c=0;c<s.length;c++)s.words[c]=0}var u=n.clone()._ishlnsubmul(i,1,l);0===u.negative&&(n=u,s&&(s.words[l]=1));for(var f=l-1;f>=0;f--){var h=67108864*(0|n.words[i.length+f])+(0|n.words[i.length+f-1]);for(h=Math.min(h/o|0,67108863),n._ishlnsubmul(i,h,f);0!==n.negative;)h--,n.negative=0,n._ishlnsubmul(i,1,f),n.isZero()||(n.negative^=1);s&&(s.words[f]=h)}return s&&s.strip(),n.strip(),\"div\"!==e&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},a.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),\"mod\"!==e&&(i=s.div.neg()),\"div\"!==e&&(o=s.mod.neg(),r&&0!==o.negative&&o.iadd(t)),{div:i,mod:o}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),\"mod\"!==e&&(i=s.div.neg()),{div:i,mod:s.mod}):0!=(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),\"div\"!==e&&(o=s.mod.neg(),r&&0!==o.negative&&o.isub(t)),{div:s.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new a(0),mod:this}:1===t.length?\"div\"===e?{div:this.divn(t.words[0]),mod:null}:\"mod\"===e?{div:null,mod:new a(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new a(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,o,s},a.prototype.div=function(t){return this.divmod(t,\"div\",!1).div},a.prototype.mod=function(t){return this.divmod(t,\"mod\",!1).mod},a.prototype.umod=function(t){return this.divmod(t,\"mod\",!0).mod},a.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),a=r.cmp(n);return a<0||1===i&&0===a?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},a.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,r=0,i=this.length-1;i>=0;i--)r=(e*r+(0|this.words[i]))%t;return r},a.prototype.idivn=function(t){n(t<=67108863);for(var e=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*e;this.words[r]=i/t|0,e=i%t}return this.strip()},a.prototype.divn=function(t){return this.clone().idivn(t)},a.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new a(1),o=new a(0),s=new a(0),l=new a(1),c=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++c;for(var u=r.clone(),f=e.clone();!e.isZero();){for(var h=0,p=1;0==(e.words[0]&p)&&h<26;++h,p<<=1);if(h>0)for(e.iushrn(h);h-- >0;)(i.isOdd()||o.isOdd())&&(i.iadd(u),o.isub(f)),i.iushrn(1),o.iushrn(1);for(var d=0,g=1;0==(r.words[0]&g)&&d<26;++d,g<<=1);if(d>0)for(r.iushrn(d);d-- >0;)(s.isOdd()||l.isOdd())&&(s.iadd(u),l.isub(f)),s.iushrn(1),l.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(s),o.isub(l)):(r.isub(e),s.isub(i),l.isub(o))}return{a:s,b:l,gcd:r.iushln(c)}},a.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,o=new a(1),s=new a(0),l=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var c=0,u=1;0==(e.words[0]&u)&&c<26;++c,u<<=1);if(c>0)for(e.iushrn(c);c-- >0;)o.isOdd()&&o.iadd(l),o.iushrn(1);for(var f=0,h=1;0==(r.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(r.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(l),s.iushrn(1);e.cmp(r)>=0?(e.isub(r),o.isub(s)):(r.isub(e),s.isub(o))}return(i=0===e.cmpn(1)?o:s).cmpn(0)<0&&i.iadd(t),i},a.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var a=e;e=r,r=a}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},a.prototype.invm=function(t){return this.egcd(t).a.umod(t)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(t){return this.words[0]&t},a.prototype.bincn=function(t){n(\"number\"==typeof t);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var a=i,o=r;0!==a&&o<this.length;o++){var s=0|this.words[o];a=(s+=a)>>>26,s&=67108863,this.words[o]=s}return 0!==a&&(this.words[o]=a,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,\"Number is too big\");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},a.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},a.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:n>i&&(e=1);break}}return e},a.prototype.gtn=function(t){return 1===this.cmpn(t)},a.prototype.gt=function(t){return 1===this.cmp(t)},a.prototype.gten=function(t){return this.cmpn(t)>=0},a.prototype.gte=function(t){return this.cmp(t)>=0},a.prototype.ltn=function(t){return-1===this.cmpn(t)},a.prototype.lt=function(t){return-1===this.cmp(t)},a.prototype.lten=function(t){return this.cmpn(t)<=0},a.prototype.lte=function(t){return this.cmp(t)<=0},a.prototype.eqn=function(t){return 0===this.cmpn(t)},a.prototype.eq=function(t){return 0===this.cmp(t)},a.red=function(t){return new w(t)},a.prototype.toRed=function(t){return n(!this.red,\"Already a number in reduction context\"),n(0===this.negative,\"red works only with positives\"),t.convertTo(this)._forceRed(t)},a.prototype.fromRed=function(){return n(this.red,\"fromRed works only with numbers in reduction context\"),this.red.convertFrom(this)},a.prototype._forceRed=function(t){return this.red=t,this},a.prototype.forceRed=function(t){return n(!this.red,\"Already a number in reduction context\"),this._forceRed(t)},a.prototype.redAdd=function(t){return n(this.red,\"redAdd works only with red numbers\"),this.red.add(this,t)},a.prototype.redIAdd=function(t){return n(this.red,\"redIAdd works only with red numbers\"),this.red.iadd(this,t)},a.prototype.redSub=function(t){return n(this.red,\"redSub works only with red numbers\"),this.red.sub(this,t)},a.prototype.redISub=function(t){return n(this.red,\"redISub works only with red numbers\"),this.red.isub(this,t)},a.prototype.redShl=function(t){return n(this.red,\"redShl works only with red numbers\"),this.red.shl(this,t)},a.prototype.redMul=function(t){return n(this.red,\"redMul works only with red numbers\"),this.red._verify2(this,t),this.red.mul(this,t)},a.prototype.redIMul=function(t){return n(this.red,\"redMul works only with red numbers\"),this.red._verify2(this,t),this.red.imul(this,t)},a.prototype.redSqr=function(){return n(this.red,\"redSqr works only with red numbers\"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return n(this.red,\"redISqr works only with red numbers\"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return n(this.red,\"redSqrt works only with red numbers\"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return n(this.red,\"redInvm works only with red numbers\"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return n(this.red,\"redNeg works only with red numbers\"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(t){return n(this.red&&!t.red,\"redPow(normalNum)\"),this.red._verify1(this),this.red.pow(this,t)};var v={k256:null,p224:null,p192:null,p25519:null};function m(t,e){this.name=t,this.p=new a(e,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function y(){m.call(this,\"k256\",\"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f\")}function x(){m.call(this,\"p224\",\"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001\")}function b(){m.call(this,\"p192\",\"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff\")}function _(){m.call(this,\"25519\",\"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed\")}function w(t){if(\"string\"==typeof t){var e=a._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),\"modulus must be greater than 1\"),this.m=t,this.prime=null}function k(t){w.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}m.prototype._tmp=function(){var t=new a(null);return t.words=new Array(Math.ceil(this.n/13)),t},m.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):r.strip(),r},m.prototype.split=function(t,e){t.iushrn(this.n,0,e)},m.prototype.imulK=function(t){return t.imul(this.k)},i(y,m),y.prototype.split=function(t,e){for(var r=Math.min(t.length,9),n=0;n<r;n++)e.words[n]=t.words[n];if(e.length=r,t.length<=9)return t.words[0]=0,void(t.length=1);var i=t.words[9];for(e.words[e.length++]=4194303&i,n=10;n<t.length;n++){var a=0|t.words[n];t.words[n-10]=(4194303&a)<<4|i>>>22,i=a}i>>>=22,t.words[n-10]=i,0===i&&t.length>10?t.length-=10:t.length-=9},y.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(x,m),i(b,m),i(_,m),_.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=19*(0|t.words[r])+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},a._prime=function(t){if(v[t])return v[t];var e;if(\"k256\"===t)e=new y;else if(\"p224\"===t)e=new x;else if(\"p192\"===t)e=new b;else{if(\"p25519\"!==t)throw new Error(\"Unknown prime \"+t);e=new _}return v[t]=e,e},w.prototype._verify1=function(t){n(0===t.negative,\"red works only with positives\"),n(t.red,\"red works only with red numbers\")},w.prototype._verify2=function(t,e){n(0==(t.negative|e.negative),\"red works only with positives\"),n(t.red&&t.red===e.red,\"red works only with red numbers\")},w.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},w.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},w.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},w.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},w.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},w.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},w.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},w.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},w.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},w.prototype.isqr=function(t){return this.imul(t,t.clone())},w.prototype.sqr=function(t){return this.mul(t,t)},w.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var r=this.m.add(new a(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),o=0;!i.isZero()&&0===i.andln(1);)o++,i.iushrn(1);n(!i.isZero());var s=new a(1).toRed(this),l=s.redNeg(),c=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new a(2*u*u).toRed(this);0!==this.pow(u,c).cmp(l);)u.redIAdd(l);for(var f=this.pow(u,i),h=this.pow(t,i.addn(1).iushrn(1)),p=this.pow(t,i),d=o;0!==p.cmp(s);){for(var g=p,v=0;0!==g.cmp(s);v++)g=g.redSqr();n(v<d);var m=this.pow(f,new a(1).iushln(d-v-1));h=h.redMul(m),f=m.redSqr(),p=p.redMul(f),d=v}return h},w.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},w.prototype.pow=function(t,e){if(e.isZero())return new a(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=new Array(16);r[0]=new a(1).toRed(this),r[1]=t;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],t);var i=r[0],o=0,s=0,l=e.bitLength()%26;for(0===l&&(l=26),n=e.length-1;n>=0;n--){for(var c=e.words[n],u=l-1;u>=0;u--){var f=c>>u&1;i!==r[0]&&(i=this.sqr(i)),0!==f||0!==o?(o<<=1,o|=f,(4===++s||0===n&&0===u)&&(i=this.mul(i,r[o]),s=0,o=0)):s=0}l=26}return i},w.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},w.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},a.mont=function(t){return new k(t)},i(k,w),k.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},k.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},k.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},k.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new a(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},k.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(\"undefined\"==typeof e||e,this)},{buffer:91}],83:[function(t,e,r){\"use strict\";e.exports=function(t){var e,r,n,i=t.length,a=0;for(e=0;e<i;++e)a+=t[e].length;var o=new Array(a),s=0;for(e=0;e<i;++e){var l=t[e],c=l.length;for(r=0;r<c;++r){var u=o[s++]=new Array(c-1),f=0;for(n=0;n<c;++n)n!==r&&(u[f++]=l[n]);if(1&r){var h=u[1];u[1]=u[0],u[0]=h}}}return o}},{}],84:[function(t,e,r){\"use strict\";e.exports=function(t,e,r){switch(arguments.length){case 1:return n=[],c(i=t,i,u,!0),n;case 2:return\"function\"==typeof e?c(t,t,e,!0):function(t,e){return n=[],c(t,e,u,!1),n}(t,e);case 3:return c(t,e,r,!1);default:throw new Error(\"box-intersect: Invalid arguments\")}var i};var n,i=t(\"typedarray-pool\"),a=t(\"./lib/sweep\"),o=t(\"./lib/intersect\");function s(t,e){for(var r=0;r<t;++r)if(!(e[r]<=e[r+t]))return!0;return!1}function l(t,e,r,n){for(var i=0,a=0,o=0,l=t.length;o<l;++o){var c=t[o];if(!s(e,c)){for(var u=0;u<2*e;++u)r[i++]=c[u];n[a++]=o}}return a}function c(t,e,r,n){var s=t.length,c=e.length;if(!(s<=0||c<=0)){var u=t[0].length>>>1;if(!(u<=0)){var f,h=i.mallocDouble(2*u*s),p=i.mallocInt32(s);if((s=l(t,u,h,p))>0){if(1===u&&n)a.init(s),f=a.sweepComplete(u,r,0,s,h,p,0,s,h,p);else{var d=i.mallocDouble(2*u*c),g=i.mallocInt32(c);(c=l(e,u,d,g))>0&&(a.init(s+c),f=1===u?a.sweepBipartite(u,r,0,s,h,p,0,c,d,g):o(u,r,n,s,h,p,c,d,g),i.free(d),i.free(g))}i.free(h),i.free(p)}return f}}}function u(t,e){n.push([t,e])}},{\"./lib/intersect\":86,\"./lib/sweep\":90,\"typedarray-pool\":522}],85:[function(t,e,r){\"use strict\";var n=\"d\",i=\"ax\",a=\"vv\",o=\"fp\",s=\"es\",l=\"rs\",c=\"re\",u=\"rb\",f=\"ri\",h=\"rp\",p=\"bs\",d=\"be\",g=\"bb\",v=\"bi\",m=\"bp\",y=\"rv\",x=\"Q\",b=[n,i,a,l,c,u,f,p,d,g,v];function _(t){var e=\"bruteForce\"+(t?\"Full\":\"Partial\"),r=[],_=b.slice();t||_.splice(3,0,o);var w=[\"function \"+e+\"(\"+_.join()+\"){\"];function k(e,o){var _=function(t,e,r){var o=\"bruteForce\"+(t?\"Red\":\"Blue\")+(e?\"Flip\":\"\")+(r?\"Full\":\"\"),_=[\"function \",o,\"(\",b.join(),\"){\",\"var \",s,\"=2*\",n,\";\"],w=\"for(var i=\"+l+\",\"+h+\"=\"+s+\"*\"+l+\";i<\"+c+\";++i,\"+h+\"+=\"+s+\"){var x0=\"+u+\"[\"+i+\"+\"+h+\"],x1=\"+u+\"[\"+i+\"+\"+h+\"+\"+n+\"],xi=\"+f+\"[i];\",k=\"for(var j=\"+p+\",\"+m+\"=\"+s+\"*\"+p+\";j<\"+d+\";++j,\"+m+\"+=\"+s+\"){var y0=\"+g+\"[\"+i+\"+\"+m+\"],\"+(r?\"y1=\"+g+\"[\"+i+\"+\"+m+\"+\"+n+\"],\":\"\")+\"yi=\"+v+\"[j];\";return t?_.push(w,x,\":\",k):_.push(k,x,\":\",w),r?_.push(\"if(y1<x0||x1<y0)continue;\"):e?_.push(\"if(y0<=x0||x1<y0)continue;\"):_.push(\"if(y0<x0||x1<y0)continue;\"),_.push(\"for(var k=\"+i+\"+1;k<\"+n+\";++k){var r0=\"+u+\"[k+\"+h+\"],r1=\"+u+\"[k+\"+n+\"+\"+h+\"],b0=\"+g+\"[k+\"+m+\"],b1=\"+g+\"[k+\"+n+\"+\"+m+\"];if(r1<b0||b1<r0)continue \"+x+\";}var \"+y+\"=\"+a+\"(\"),e?_.push(\"yi,xi\"):_.push(\"xi,yi\"),_.push(\");if(\"+y+\"!==void 0)return \"+y+\";}}}\"),{name:o,code:_.join(\"\")}}(e,o,t);r.push(_.code),w.push(\"return \"+_.name+\"(\"+b.join()+\");\")}w.push(\"if(\"+c+\"-\"+l+\">\"+d+\"-\"+p+\"){\"),t?(k(!0,!1),w.push(\"}else{\"),k(!1,!1)):(w.push(\"if(\"+o+\"){\"),k(!0,!0),w.push(\"}else{\"),k(!0,!1),w.push(\"}}else{if(\"+o+\"){\"),k(!1,!0),w.push(\"}else{\"),k(!1,!1),w.push(\"}\")),w.push(\"}}return \"+e);var M=r.join(\"\")+w.join(\"\");return new Function(M)()}r.partial=_(!1),r.full=_(!0)},{}],86:[function(t,e,r){\"use strict\";e.exports=function(t,e,r,a,u,S,E,C,L){!function(t,e){var r=8*i.log2(e+1)*(t+1)|0,a=i.nextPow2(b*r);w.length<a&&(n.free(w),w=n.mallocInt32(a));var o=i.nextPow2(_*r);k<o&&(n.free(k),k=n.mallocDouble(o))}(t,a+E);var z,O=0,I=2*t;M(O++,0,0,a,0,E,r?16:0,-1/0,1/0),r||M(O++,0,0,E,0,a,1,-1/0,1/0);for(;O>0;){var P=(O-=1)*b,D=w[P],R=w[P+1],B=w[P+2],F=w[P+3],N=w[P+4],j=w[P+5],V=O*_,U=k[V],q=k[V+1],H=1&j,G=!!(16&j),W=u,Y=S,X=C,Z=L;if(H&&(W=C,Y=L,X=u,Z=S),!(2&j&&(B=v(t,D,R,B,W,Y,q),R>=B)||4&j&&(R=m(t,D,R,B,W,Y,U))>=B)){var $=B-R,J=N-F;if(G){if(t*$*($+J)<p){if(void 0!==(z=l.scanComplete(t,D,e,R,B,W,Y,F,N,X,Z)))return z;continue}}else{if(t*Math.min($,J)<f){if(void 0!==(z=o(t,D,e,H,R,B,W,Y,F,N,X,Z)))return z;continue}if(t*$*J<h){if(void 0!==(z=l.scanBipartite(t,D,e,H,R,B,W,Y,F,N,X,Z)))return z;continue}}var K=d(t,D,R,B,W,Y,U,q);if(R<K)if(t*(K-R)<f){if(void 0!==(z=s(t,D+1,e,R,K,W,Y,F,N,X,Z)))return z}else if(D===t-2){if(void 0!==(z=H?l.sweepBipartite(t,e,F,N,X,Z,R,K,W,Y):l.sweepBipartite(t,e,R,K,W,Y,F,N,X,Z)))return z}else M(O++,D+1,R,K,F,N,H,-1/0,1/0),M(O++,D+1,F,N,R,K,1^H,-1/0,1/0);if(K<B){var Q=c(t,D,F,N,X,Z),tt=X[I*Q+D],et=g(t,D,Q,N,X,Z,tt);if(et<N&&M(O++,D,K,B,et,N,(4|H)+(G?16:0),tt,q),F<Q&&M(O++,D,K,B,F,Q,(2|H)+(G?16:0),U,tt),Q+1===et){if(void 0!==(z=G?T(t,D,e,K,B,W,Y,Q,X,Z[Q]):A(t,D,e,H,K,B,W,Y,Q,X,Z[Q])))return z}else if(Q<et){var rt;if(G){if(rt=y(t,D,K,B,W,Y,tt),K<rt){var nt=g(t,D,K,rt,W,Y,tt);if(D===t-2){if(K<nt&&void 0!==(z=l.sweepComplete(t,e,K,nt,W,Y,Q,et,X,Z)))return z;if(nt<rt&&void 0!==(z=l.sweepBipartite(t,e,nt,rt,W,Y,Q,et,X,Z)))return z}else K<nt&&M(O++,D+1,K,nt,Q,et,16,-1/0,1/0),nt<rt&&(M(O++,D+1,nt,rt,Q,et,0,-1/0,1/0),M(O++,D+1,Q,et,nt,rt,1,-1/0,1/0))}}else rt=H?x(t,D,K,B,W,Y,tt):y(t,D,K,B,W,Y,tt),K<rt&&(D===t-2?z=H?l.sweepBipartite(t,e,Q,et,X,Z,K,rt,W,Y):l.sweepBipartite(t,e,K,rt,W,Y,Q,et,X,Z):(M(O++,D+1,K,rt,Q,et,H,-1/0,1/0),M(O++,D+1,Q,et,K,rt,1^H,-1/0,1/0)))}}}}};var n=t(\"typedarray-pool\"),i=t(\"bit-twiddle\"),a=t(\"./brute\"),o=a.partial,s=a.full,l=t(\"./sweep\"),c=t(\"./median\"),u=t(\"./partition\"),f=128,h=1<<22,p=1<<22,d=u(\"!(lo>=p0)&&!(p1>=hi)\",[\"p0\",\"p1\"]),g=u(\"lo===p0\",[\"p0\"]),v=u(\"lo<p0\",[\"p0\"]),m=u(\"hi<=p0\",[\"p0\"]),y=u(\"lo<=p0&&p0<=hi\",[\"p0\"]),x=u(\"lo<p0&&p0<=hi\",[\"p0\"]),b=6,_=2,w=n.mallocInt32(1024),k=n.mallocDouble(1024);function M(t,e,r,n,i,a,o,s,l){var c=b*t;w[c]=e,w[c+1]=r,w[c+2]=n,w[c+3]=i,w[c+4]=a,w[c+5]=o;var u=_*t;k[u]=s,k[u+1]=l}function A(t,e,r,n,i,a,o,s,l,c,u){var f=2*t,h=l*f,p=c[h+e];t:for(var d=i,g=i*f;d<a;++d,g+=f){var v=o[g+e],m=o[g+e+t];if(!(p<v||m<p)&&(!n||p!==v)){for(var y,x=s[d],b=e+1;b<t;++b){v=o[g+b],m=o[g+b+t];var _=c[h+b],w=c[h+b+t];if(m<_||w<v)continue t}if(void 0!==(y=n?r(u,x):r(x,u)))return y}}}function T(t,e,r,n,i,a,o,s,l,c){var u=2*t,f=s*u,h=l[f+e];t:for(var p=n,d=n*u;p<i;++p,d+=u){var g=o[p];if(g!==c){var v=a[d+e],m=a[d+e+t];if(!(h<v||m<h)){for(var y=e+1;y<t;++y){v=a[d+y],m=a[d+y+t];var x=l[f+y],b=l[f+y+t];if(m<x||b<v)continue t}var _=r(g,c);if(void 0!==_)return _}}}}},{\"./brute\":85,\"./median\":87,\"./partition\":88,\"./sweep\":90,\"bit-twiddle\":80,\"typedarray-pool\":522}],87:[function(t,e,r){\"use strict\";e.exports=function(t,e,r,o,s,l){if(o<=r+1)return r;var c=r,u=o,f=o+r>>>1,h=2*t,p=f,d=s[h*f+e];for(;c<u;){if(u-c<i){a(t,e,c,u,s,l),d=s[h*f+e];break}var g=u-c,v=Math.random()*g+c|0,m=s[h*v+e],y=Math.random()*g+c|0,x=s[h*y+e],b=Math.random()*g+c|0,_=s[h*b+e];m<=x?_>=x?(p=y,d=x):m>=_?(p=v,d=m):(p=b,d=_):x>=_?(p=y,d=x):_>=m?(p=v,d=m):(p=b,d=_);for(var w=h*(u-1),k=h*p,M=0;M<h;++M,++w,++k){var A=s[w];s[w]=s[k],s[k]=A}var T=l[u-1];l[u-1]=l[p],l[p]=T,p=n(t,e,c,u-1,s,l,d);for(var w=h*(u-1),k=h*p,M=0;M<h;++M,++w,++k){var A=s[w];s[w]=s[k],s[k]=A}var T=l[u-1];if(l[u-1]=l[p],l[p]=T,f<p){for(u=p-1;c<u&&s[h*(u-1)+e]===d;)u-=1;u+=1}else{if(!(p<f))break;for(c=p+1;c<u&&s[h*c+e]===d;)c+=1}}return n(t,e,r,f,s,l,s[h*f+e])};var n=t(\"./partition\")(\"lo<p0\",[\"p0\"]),i=8;function a(t,e,r,n,i,a){for(var o=2*t,s=o*(r+1)+e,l=r+1;l<n;++l,s+=o)for(var c=i[s],u=l,f=o*(l-1);u>r&&i[f+e]>c;--u,f-=o){for(var h=f,p=f+o,d=0;d<o;++d,++h,++p){var g=i[h];i[h]=i[p],i[p]=g}var v=a[u];a[u]=a[u-1],a[u-1]=v}}},{\"./partition\":88}],88:[function(t,e,r){\"use strict\";e.exports=function(t,e){var r=\"abcdef\".split(\"\").concat(e),i=[];t.indexOf(\"lo\")>=0&&i.push(\"lo=e[k+n]\");t.indexOf(\"hi\")>=0&&i.push(\"hi=e[k+o]\");return r.push(n.replace(\"_\",i.join()).replace(\"$\",t)),Function.apply(void 0,r)};var n=\"for(var j=2*a,k=j*c,l=k,m=c,n=b,o=a+b,p=c;d>p;++p,k+=j){var _;if($)if(m===p)m+=1,l+=j;else{for(var s=0;j>s;++s){var t=e[k+s];e[k+s]=e[l],e[l++]=t}var u=f[p];f[p]=f[m],f[m++]=u}}return m\"},{}],89:[function(t,e,r){\"use strict\";e.exports=function(t,e){e<=4*n?i(0,e-1,t):function t(e,r,f){var h=(r-e+1)/6|0,p=e+h,d=r-h,g=e+r>>1,v=g-h,m=g+h,y=p,x=v,b=g,_=m,w=d,k=e+1,M=r-1,A=0;c(y,x,f)&&(A=y,y=x,x=A);c(_,w,f)&&(A=_,_=w,w=A);c(y,b,f)&&(A=y,y=b,b=A);c(x,b,f)&&(A=x,x=b,b=A);c(y,_,f)&&(A=y,y=_,_=A);c(b,_,f)&&(A=b,b=_,_=A);c(x,w,f)&&(A=x,x=w,w=A);c(x,b,f)&&(A=x,x=b,b=A);c(_,w,f)&&(A=_,_=w,w=A);var T=f[2*x];var S=f[2*x+1];var E=f[2*_];var C=f[2*_+1];var L=2*y;var z=2*b;var O=2*w;var I=2*p;var P=2*g;var D=2*d;for(var R=0;R<2;++R){var B=f[L+R],F=f[z+R],N=f[O+R];f[I+R]=B,f[P+R]=F,f[D+R]=N}o(v,e,f);o(m,r,f);for(var j=k;j<=M;++j)if(u(j,T,S,f))j!==k&&a(j,k,f),++k;else if(!u(j,E,C,f))for(;;){if(u(M,E,C,f)){u(M,T,S,f)?(s(j,k,M,f),++k,--M):(a(j,M,f),--M);break}if(--M<j)break}l(e,k-1,T,S,f);l(r,M+1,E,C,f);k-2-e<=n?i(e,k-2,f):t(e,k-2,f);r-(M+2)<=n?i(M+2,r,f):t(M+2,r,f);M-k<=n?i(k,M,f):t(k,M,f)}(0,e-1,t)};var n=32;function i(t,e,r){for(var n=2*(t+1),i=t+1;i<=e;++i){for(var a=r[n++],o=r[n++],s=i,l=n-2;s-- >t;){var c=r[l-2],u=r[l-1];if(c<a)break;if(c===a&&u<o)break;r[l]=c,r[l+1]=u,l-=2}r[l]=a,r[l+1]=o}}function a(t,e,r){e*=2;var n=r[t*=2],i=r[t+1];r[t]=r[e],r[t+1]=r[e+1],r[e]=n,r[e+1]=i}function o(t,e,r){e*=2,r[t*=2]=r[e],r[t+1]=r[e+1]}function s(t,e,r,n){e*=2,r*=2;var i=n[t*=2],a=n[t+1];n[t]=n[e],n[t+1]=n[e+1],n[e]=n[r],n[e+1]=n[r+1],n[r]=i,n[r+1]=a}function l(t,e,r,n,i){e*=2,i[t*=2]=i[e],i[e]=r,i[t+1]=i[e+1],i[e+1]=n}function c(t,e,r){e*=2;var n=r[t*=2],i=r[e];return!(n<i)&&(n!==i||r[t+1]>r[e+1])}function u(t,e,r,n){var i=n[t*=2];return i<e||i===e&&n[t+1]<r}},{}],90:[function(t,e,r){\"use strict\";e.exports={init:function(t){var e=i.nextPow2(t);s.length<e&&(n.free(s),s=n.mallocInt32(e));l.length<e&&(n.free(l),l=n.mallocInt32(e));c.length<e&&(n.free(c),c=n.mallocInt32(e));u.length<e&&(n.free(u),u=n.mallocInt32(e));f.length<e&&(n.free(f),f=n.mallocInt32(e));h.length<e&&(n.free(h),h=n.mallocInt32(e));var r=8*e;p.length<r&&(n.free(p),p=n.mallocDouble(r))},sweepBipartite:function(t,e,r,n,i,f,h,v,m,y){for(var x=0,b=2*t,_=t-1,w=b-1,k=r;k<n;++k){var M=f[k],A=b*k;p[x++]=i[A+_],p[x++]=-(M+1),p[x++]=i[A+w],p[x++]=M}for(var k=h;k<v;++k){var M=y[k]+o,T=b*k;p[x++]=m[T+_],p[x++]=-M,p[x++]=m[T+w],p[x++]=M}var S=x>>>1;a(p,S);for(var E=0,C=0,k=0;k<S;++k){var L=0|p[2*k+1];if(L>=o)d(c,u,C--,L=L-o|0);else if(L>=0)d(s,l,E--,L);else if(L<=-o){L=-L-o|0;for(var z=0;z<E;++z){var O=e(s[z],L);if(void 0!==O)return O}g(c,u,C++,L)}else{L=-L-1|0;for(var z=0;z<C;++z){var O=e(L,c[z]);if(void 0!==O)return O}g(s,l,E++,L)}}},sweepComplete:function(t,e,r,n,i,o,v,m,y,x){for(var b=0,_=2*t,w=t-1,k=_-1,M=r;M<n;++M){var A=o[M]+1<<1,T=_*M;p[b++]=i[T+w],p[b++]=-A,p[b++]=i[T+k],p[b++]=A}for(var M=v;M<m;++M){var A=x[M]+1<<1,S=_*M;p[b++]=y[S+w],p[b++]=1|-A,p[b++]=y[S+k],p[b++]=1|A}var E=b>>>1;a(p,E);for(var C=0,L=0,z=0,M=0;M<E;++M){var O=0|p[2*M+1],I=1&O;if(M<E-1&&O>>1==p[2*M+3]>>1&&(I=2,M+=1),O<0){for(var P=-(O>>1)-1,D=0;D<z;++D){var R=e(f[D],P);if(void 0!==R)return R}if(0!==I)for(var D=0;D<C;++D){var R=e(s[D],P);if(void 0!==R)return R}if(1!==I)for(var D=0;D<L;++D){var R=e(c[D],P);if(void 0!==R)return R}0===I?g(s,l,C++,P):1===I?g(c,u,L++,P):2===I&&g(f,h,z++,P)}else{var P=(O>>1)-1;0===I?d(s,l,C--,P):1===I?d(c,u,L--,P):2===I&&d(f,h,z--,P)}}},scanBipartite:function(t,e,r,n,i,c,u,f,h,v,m,y){var x=0,b=2*t,_=e,w=e+t,k=1,M=1;n?M=o:k=o;for(var A=i;A<c;++A){var T=A+k,S=b*A;p[x++]=u[S+_],p[x++]=-T,p[x++]=u[S+w],p[x++]=T}for(var A=h;A<v;++A){var T=A+M,E=b*A;p[x++]=m[E+_],p[x++]=-T}var C=x>>>1;a(p,C);for(var L=0,A=0;A<C;++A){var z=0|p[2*A+1];if(z<0){var T=-z,O=!1;if(T>=o?(O=!n,T-=o):(O=!!n,T-=1),O)g(s,l,L++,T);else{var I=y[T],P=b*T,D=m[P+e+1],R=m[P+e+1+t];t:for(var B=0;B<L;++B){var F=s[B],N=b*F;if(!(R<u[N+e+1]||u[N+e+1+t]<D)){for(var j=e+2;j<t;++j)if(m[P+j+t]<u[N+j]||u[N+j+t]<m[P+j])continue t;var V,U=f[F];if(void 0!==(V=n?r(I,U):r(U,I)))return V}}}}else d(s,l,L--,z-k)}},scanComplete:function(t,e,r,n,i,l,c,u,f,h,d){for(var g=0,v=2*t,m=e,y=e+t,x=n;x<i;++x){var b=x+o,_=v*x;p[g++]=l[_+m],p[g++]=-b,p[g++]=l[_+y],p[g++]=b}for(var x=u;x<f;++x){var b=x+1,w=v*x;p[g++]=h[w+m],p[g++]=-b}var k=g>>>1;a(p,k);for(var M=0,x=0;x<k;++x){var A=0|p[2*x+1];if(A<0){var b=-A;if(b>=o)s[M++]=b-o;else{var T=d[b-=1],S=v*b,E=h[S+e+1],C=h[S+e+1+t];t:for(var L=0;L<M;++L){var z=s[L],O=c[z];if(O===T)break;var I=v*z;if(!(C<l[I+e+1]||l[I+e+1+t]<E)){for(var P=e+2;P<t;++P)if(h[S+P+t]<l[I+P]||l[I+P+t]<h[S+P])continue t;var D=r(O,T);if(void 0!==D)return D}}}}else{for(var b=A-o,L=M-1;L>=0;--L)if(s[L]===b){for(var P=L+1;P<M;++P)s[P-1]=s[P];break}--M}}}};var n=t(\"typedarray-pool\"),i=t(\"bit-twiddle\"),a=t(\"./sort\"),o=1<<28,s=n.mallocInt32(1024),l=n.mallocInt32(1024),c=n.mallocInt32(1024),u=n.mallocInt32(1024),f=n.mallocInt32(1024),h=n.mallocInt32(1024),p=n.mallocDouble(8192);function d(t,e,r,n){var i=e[n],a=t[r-1];t[i]=a,e[a]=i}function g(t,e,r,n){t[r]=n,e[n]=r}},{\"./sort\":89,\"bit-twiddle\":80,\"typedarray-pool\":522}],91:[function(t,e,r){},{}],92:[function(t,e,r){var n=Object.create||function(t){var e=function(){};return e.prototype=t,new e},i=Object.keys||function(t){var e=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.push(r);return r},a=Function.prototype.bind||function(t){var e=this;return function(){return e.apply(t,arguments)}};function o(){this._events&&Object.prototype.hasOwnProperty.call(this,\"_events\")||(this._events=n(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0}e.exports=o,o.EventEmitter=o,o.prototype._events=void 0,o.prototype._maxListeners=void 0;var s,l=10;try{var c={};Object.defineProperty&&Object.defineProperty(c,\"x\",{value:0}),s=0===c.x}catch(t){s=!1}function u(t){return void 0===t._maxListeners?o.defaultMaxListeners:t._maxListeners}function f(t,e,r,i){var a,o,s;if(\"function\"!=typeof r)throw new TypeError('\"listener\" argument must be a function');if((o=t._events)?(o.newListener&&(t.emit(\"newListener\",e,r.listener?r.listener:r),o=t._events),s=o[e]):(o=t._events=n(null),t._eventsCount=0),s){if(\"function\"==typeof s?s=o[e]=i?[r,s]:[s,r]:i?s.unshift(r):s.push(r),!s.warned&&(a=u(t))&&a>0&&s.length>a){s.warned=!0;var l=new Error(\"Possible EventEmitter memory leak detected. \"+s.length+' \"'+String(e)+'\" listeners added. Use emitter.setMaxListeners() to increase limit.');l.name=\"MaxListenersExceededWarning\",l.emitter=t,l.type=e,l.count=s.length,\"object\"==typeof console&&console.warn&&console.warn(\"%s: %s\",l.name,l.message)}}else s=o[e]=r,++t._eventsCount;return t}function h(){if(!this.fired)switch(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length){case 0:return this.listener.call(this.target);case 1:return this.listener.call(this.target,arguments[0]);case 2:return this.listener.call(this.target,arguments[0],arguments[1]);case 3:return this.listener.call(this.target,arguments[0],arguments[1],arguments[2]);default:for(var t=new Array(arguments.length),e=0;e<t.length;++e)t[e]=arguments[e];this.listener.apply(this.target,t)}}function p(t,e,r){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},i=a.call(h,n);return i.listener=r,n.wrapFn=i,i}function d(t,e,r){var n=t._events;if(!n)return[];var i=n[e];return i?\"function\"==typeof i?r?[i.listener||i]:[i]:r?function(t){for(var e=new Array(t.length),r=0;r<e.length;++r)e[r]=t[r].listener||t[r];return e}(i):v(i,i.length):[]}function g(t){var e=this._events;if(e){var r=e[t];if(\"function\"==typeof r)return 1;if(r)return r.length}return 0}function v(t,e){for(var r=new Array(e),n=0;n<e;++n)r[n]=t[n];return r}s?Object.defineProperty(o,\"defaultMaxListeners\",{enumerable:!0,get:function(){return l},set:function(t){if(\"number\"!=typeof t||t<0||t!=t)throw new TypeError('\"defaultMaxListeners\" must be a positive number');l=t}}):o.defaultMaxListeners=l,o.prototype.setMaxListeners=function(t){if(\"number\"!=typeof t||t<0||isNaN(t))throw new TypeError('\"n\" argument must be a positive number');return this._maxListeners=t,this},o.prototype.getMaxListeners=function(){return u(this)},o.prototype.emit=function(t){var e,r,n,i,a,o,s=\"error\"===t;if(o=this._events)s=s&&null==o.error;else if(!s)return!1;if(s){if(arguments.length>1&&(e=arguments[1]),e instanceof Error)throw e;var l=new Error('Unhandled \"error\" event. ('+e+\")\");throw l.context=e,l}if(!(r=o[t]))return!1;var c=\"function\"==typeof r;switch(n=arguments.length){case 1:!function(t,e,r){if(e)t.call(r);else for(var n=t.length,i=v(t,n),a=0;a<n;++a)i[a].call(r)}(r,c,this);break;case 2:!function(t,e,r,n){if(e)t.call(r,n);else for(var i=t.length,a=v(t,i),o=0;o<i;++o)a[o].call(r,n)}(r,c,this,arguments[1]);break;case 3:!function(t,e,r,n,i){if(e)t.call(r,n,i);else for(var a=t.length,o=v(t,a),s=0;s<a;++s)o[s].call(r,n,i)}(r,c,this,arguments[1],arguments[2]);break;case 4:!function(t,e,r,n,i,a){if(e)t.call(r,n,i,a);else for(var o=t.length,s=v(t,o),l=0;l<o;++l)s[l].call(r,n,i,a)}(r,c,this,arguments[1],arguments[2],arguments[3]);break;default:for(i=new Array(n-1),a=1;a<n;a++)i[a-1]=arguments[a];!function(t,e,r,n){if(e)t.apply(r,n);else for(var i=t.length,a=v(t,i),o=0;o<i;++o)a[o].apply(r,n)}(r,c,this,i)}return!0},o.prototype.addListener=function(t,e){return f(this,t,e,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(t,e){return f(this,t,e,!0)},o.prototype.once=function(t,e){if(\"function\"!=typeof e)throw new TypeError('\"listener\" argument must be a function');return this.on(t,p(this,t,e)),this},o.prototype.prependOnceListener=function(t,e){if(\"function\"!=typeof e)throw new TypeError('\"listener\" argument must be a function');return this.prependListener(t,p(this,t,e)),this},o.prototype.removeListener=function(t,e){var r,i,a,o,s;if(\"function\"!=typeof e)throw new TypeError('\"listener\" argument must be a function');if(!(i=this._events))return this;if(!(r=i[t]))return this;if(r===e||r.listener===e)0==--this._eventsCount?this._events=n(null):(delete i[t],i.removeListener&&this.emit(\"removeListener\",t,r.listener||e));else if(\"function\"!=typeof r){for(a=-1,o=r.length-1;o>=0;o--)if(r[o]===e||r[o].listener===e){s=r[o].listener,a=o;break}if(a<0)return this;0===a?r.shift():function(t,e){for(var r=e,n=r+1,i=t.length;n<i;r+=1,n+=1)t[r]=t[n];t.pop()}(r,a),1===r.length&&(i[t]=r[0]),i.removeListener&&this.emit(\"removeListener\",t,s||e)}return this},o.prototype.removeAllListeners=function(t){var e,r,a;if(!(r=this._events))return this;if(!r.removeListener)return 0===arguments.length?(this._events=n(null),this._eventsCount=0):r[t]&&(0==--this._eventsCount?this._events=n(null):delete r[t]),this;if(0===arguments.length){var o,s=i(r);for(a=0;a<s.length;++a)\"removeListener\"!==(o=s[a])&&this.removeAllListeners(o);return this.removeAllListeners(\"removeListener\"),this._events=n(null),this._eventsCount=0,this}if(\"function\"==typeof(e=r[t]))this.removeListener(t,e);else if(e)for(a=e.length-1;a>=0;a--)this.removeListener(t,e[a]);return this},o.prototype.listeners=function(t){return d(this,t,!0)},o.prototype.rawListeners=function(t){return d(this,t,!1)},o.listenerCount=function(t,e){return\"function\"==typeof t.listenerCount?t.listenerCount(e):g.call(t,e)},o.prototype.listenerCount=g,o.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]}},{}],93:[function(t,e,r){\"use strict\";var n=t(\"base64-js\"),i=t(\"ieee754\");r.Buffer=s,r.SlowBuffer=function(t){+t!=t&&(t=0);return s.alloc(+t)},r.INSPECT_MAX_BYTES=50;var a=2147483647;function o(t){if(t>a)throw new RangeError('The value \"'+t+'\" is invalid for option \"size\"');var e=new Uint8Array(t);return e.__proto__=s.prototype,e}function s(t,e,r){if(\"number\"==typeof t){if(\"string\"==typeof e)throw new TypeError('The \"string\" argument must be of type string. Received type number');return u(t)}return l(t,e,r)}function l(t,e,r){if(\"string\"==typeof t)return function(t,e){\"string\"==typeof e&&\"\"!==e||(e=\"utf8\");if(!s.isEncoding(e))throw new TypeError(\"Unknown encoding: \"+e);var r=0|p(t,e),n=o(r),i=n.write(t,e);i!==r&&(n=n.slice(0,i));return n}(t,e);if(ArrayBuffer.isView(t))return f(t);if(null==t)throw TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof t);if(j(t,ArrayBuffer)||t&&j(t.buffer,ArrayBuffer))return function(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('\"offset\" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('\"length\" is outside of buffer bounds');var n;n=void 0===e&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,e):new Uint8Array(t,e,r);return n.__proto__=s.prototype,n}(t,e,r);if(\"number\"==typeof t)throw new TypeError('The \"value\" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(null!=n&&n!==t)return s.from(n,e,r);var i=function(t){if(s.isBuffer(t)){var e=0|h(t.length),r=o(e);return 0===r.length?r:(t.copy(r,0,0,e),r)}if(void 0!==t.length)return\"number\"!=typeof t.length||V(t.length)?o(0):f(t);if(\"Buffer\"===t.type&&Array.isArray(t.data))return f(t.data)}(t);if(i)return i;if(\"undefined\"!=typeof Symbol&&null!=Symbol.toPrimitive&&\"function\"==typeof t[Symbol.toPrimitive])return s.from(t[Symbol.toPrimitive](\"string\"),e,r);throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof t)}function c(t){if(\"number\"!=typeof t)throw new TypeError('\"size\" argument must be of type number');if(t<0)throw new RangeError('The value \"'+t+'\" is invalid for option \"size\"')}function u(t){return c(t),o(t<0?0:0|h(t))}function f(t){for(var e=t.length<0?0:0|h(t.length),r=o(e),n=0;n<e;n+=1)r[n]=255&t[n];return r}function h(t){if(t>=a)throw new RangeError(\"Attempt to allocate Buffer larger than maximum size: 0x\"+a.toString(16)+\" bytes\");return 0|t}function p(t,e){if(s.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||j(t,ArrayBuffer))return t.byteLength;if(\"string\"!=typeof t)throw new TypeError('The \"string\" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(e){case\"ascii\":case\"latin1\":case\"binary\":return r;case\"utf8\":case\"utf-8\":return B(t).length;case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return 2*r;case\"hex\":return r>>>1;case\"base64\":return F(t).length;default:if(i)return n?-1:B(t).length;e=(\"\"+e).toLowerCase(),i=!0}}function d(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function g(t,e,r,n,i){if(0===t.length)return-1;if(\"string\"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),V(r=+r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if(\"string\"==typeof e&&(e=s.from(e,n)),s.isBuffer(e))return 0===e.length?-1:v(t,e,r,n,i);if(\"number\"==typeof e)return e&=255,\"function\"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):v(t,[e],r,n,i);throw new TypeError(\"val must be string, number or Buffer\")}function v(t,e,r,n,i){var a,o=1,s=t.length,l=e.length;if(void 0!==n&&(\"ucs2\"===(n=String(n).toLowerCase())||\"ucs-2\"===n||\"utf16le\"===n||\"utf-16le\"===n)){if(t.length<2||e.length<2)return-1;o=2,s/=2,l/=2,r/=2}function c(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(i){var u=-1;for(a=r;a<s;a++)if(c(t,a)===c(e,-1===u?0:a-u)){if(-1===u&&(u=a),a-u+1===l)return u*o}else-1!==u&&(a-=a-u),u=-1}else for(r+l>s&&(r=s-l),a=r;a>=0;a--){for(var f=!0,h=0;h<l;h++)if(c(t,a+h)!==c(e,h)){f=!1;break}if(f)return a}return-1}function m(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n))>i&&(n=i):n=i;var a=e.length;n>a/2&&(n=a/2);for(var o=0;o<n;++o){var s=parseInt(e.substr(2*o,2),16);if(V(s))return o;t[r+o]=s}return o}function y(t,e,r,n){return N(B(e,t.length-r),t,r,n)}function x(t,e,r,n){return N(function(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,n)}function b(t,e,r,n){return x(t,e,r,n)}function _(t,e,r,n){return N(F(e),t,r,n)}function w(t,e,r,n){return N(function(t,e){for(var r,n,i,a=[],o=0;o<t.length&&!((e-=2)<0);++o)r=t.charCodeAt(o),n=r>>8,i=r%256,a.push(i),a.push(n);return a}(e,t.length-r),t,r,n)}function k(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function M(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var a,o,s,l,c=t[i],u=null,f=c>239?4:c>223?3:c>191?2:1;if(i+f<=r)switch(f){case 1:c<128&&(u=c);break;case 2:128==(192&(a=t[i+1]))&&(l=(31&c)<<6|63&a)>127&&(u=l);break;case 3:a=t[i+1],o=t[i+2],128==(192&a)&&128==(192&o)&&(l=(15&c)<<12|(63&a)<<6|63&o)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:a=t[i+1],o=t[i+2],s=t[i+3],128==(192&a)&&128==(192&o)&&128==(192&s)&&(l=(15&c)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&l<1114112&&(u=l)}null===u?(u=65533,f=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|1023&u),n.push(u),i+=f}return function(t){var e=t.length;if(e<=A)return String.fromCharCode.apply(String,t);var r=\"\",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=A));return r}(n)}r.kMaxLength=a,s.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()}catch(t){return!1}}(),s.TYPED_ARRAY_SUPPORT||\"undefined\"==typeof console||\"function\"!=typeof console.error||console.error(\"This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.\"),Object.defineProperty(s.prototype,\"parent\",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,\"offset\",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),\"undefined\"!=typeof Symbol&&null!=Symbol.species&&s[Symbol.species]===s&&Object.defineProperty(s,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),s.poolSize=8192,s.from=function(t,e,r){return l(t,e,r)},s.prototype.__proto__=Uint8Array.prototype,s.__proto__=Uint8Array,s.alloc=function(t,e,r){return function(t,e,r){return c(t),t<=0?o(t):void 0!==e?\"string\"==typeof r?o(t).fill(e,r):o(t).fill(e):o(t)}(t,e,r)},s.allocUnsafe=function(t){return u(t)},s.allocUnsafeSlow=function(t){return u(t)},s.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==s.prototype},s.compare=function(t,e){if(j(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),j(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(t)||!s.isBuffer(e))throw new TypeError('The \"buf1\", \"buf2\" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var r=t.length,n=e.length,i=0,a=Math.min(r,n);i<a;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0},s.isEncoding=function(t){switch(String(t).toLowerCase()){case\"hex\":case\"utf8\":case\"utf-8\":case\"ascii\":case\"latin1\":case\"binary\":case\"base64\":case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return!0;default:return!1}},s.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('\"list\" argument must be an Array of Buffers');if(0===t.length)return s.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var n=s.allocUnsafe(e),i=0;for(r=0;r<t.length;++r){var a=t[r];if(j(a,Uint8Array)&&(a=s.from(a)),!s.isBuffer(a))throw new TypeError('\"list\" argument must be an Array of Buffers');a.copy(n,i),i+=a.length}return n},s.byteLength=p,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError(\"Buffer size must be a multiple of 16-bits\");for(var e=0;e<t;e+=2)d(this,e,e+1);return this},s.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError(\"Buffer size must be a multiple of 32-bits\");for(var e=0;e<t;e+=4)d(this,e,e+3),d(this,e+1,e+2);return this},s.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError(\"Buffer size must be a multiple of 64-bits\");for(var e=0;e<t;e+=8)d(this,e,e+7),d(this,e+1,e+6),d(this,e+2,e+5),d(this,e+3,e+4);return this},s.prototype.toString=function(){var t=this.length;return 0===t?\"\":0===arguments.length?M(this,0,t):function(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return\"\";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return\"\";if((r>>>=0)<=(e>>>=0))return\"\";for(t||(t=\"utf8\");;)switch(t){case\"hex\":return E(this,e,r);case\"utf8\":case\"utf-8\":return M(this,e,r);case\"ascii\":return T(this,e,r);case\"latin1\":case\"binary\":return S(this,e,r);case\"base64\":return k(this,e,r);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return C(this,e,r);default:if(n)throw new TypeError(\"Unknown encoding: \"+t);t=(t+\"\").toLowerCase(),n=!0}}.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(t){if(!s.isBuffer(t))throw new TypeError(\"Argument must be a Buffer\");return this===t||0===s.compare(this,t)},s.prototype.inspect=function(){var t=\"\",e=r.INSPECT_MAX_BYTES;return t=this.toString(\"hex\",0,e).replace(/(.{2})/g,\"$1 \").trim(),this.length>e&&(t+=\" ... \"),\"<Buffer \"+t+\">\"},s.prototype.compare=function(t,e,r,n,i){if(j(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(t))throw new TypeError('The \"target\" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError(\"out of range index\");if(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(this===t)return 0;for(var a=(i>>>=0)-(n>>>=0),o=(r>>>=0)-(e>>>=0),l=Math.min(a,o),c=this.slice(n,i),u=t.slice(e,r),f=0;f<l;++f)if(c[f]!==u[f]){a=c[f],o=u[f];break}return a<o?-1:o<a?1:0},s.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},s.prototype.indexOf=function(t,e,r){return g(this,t,e,r,!0)},s.prototype.lastIndexOf=function(t,e,r){return g(this,t,e,r,!1)},s.prototype.write=function(t,e,r,n){if(void 0===e)n=\"utf8\",r=this.length,e=0;else if(void 0===r&&\"string\"==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error(\"Buffer.write(string, encoding, offset[, length]) is no longer supported\");e>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n=\"utf8\")):(n=r,r=void 0)}var i=this.length-e;if((void 0===r||r>i)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError(\"Attempt to write outside buffer bounds\");n||(n=\"utf8\");for(var a=!1;;)switch(n){case\"hex\":return m(this,t,e,r);case\"utf8\":case\"utf-8\":return y(this,t,e,r);case\"ascii\":return x(this,t,e,r);case\"latin1\":case\"binary\":return b(this,t,e,r);case\"base64\":return _(this,t,e,r);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return w(this,t,e,r);default:if(a)throw new TypeError(\"Unknown encoding: \"+n);n=(\"\"+n).toLowerCase(),a=!0}},s.prototype.toJSON=function(){return{type:\"Buffer\",data:Array.prototype.slice.call(this._arr||this,0)}};var A=4096;function T(t,e,r){var n=\"\";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}function S(t,e,r){var n=\"\";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function E(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i=\"\",a=e;a<r;++a)i+=R(t[a]);return i}function C(t,e,r){for(var n=t.slice(e,r),i=\"\",a=0;a<n.length;a+=2)i+=String.fromCharCode(n[a]+256*n[a+1]);return i}function L(t,e,r){if(t%1!=0||t<0)throw new RangeError(\"offset is not uint\");if(t+e>r)throw new RangeError(\"Trying to access beyond buffer length\")}function z(t,e,r,n,i,a){if(!s.isBuffer(t))throw new TypeError('\"buffer\" argument must be a Buffer instance');if(e>i||e<a)throw new RangeError('\"value\" argument is out of bounds');if(r+n>t.length)throw new RangeError(\"Index out of range\")}function O(t,e,r,n,i,a){if(r+n>t.length)throw new RangeError(\"Index out of range\");if(r<0)throw new RangeError(\"Index out of range\")}function I(t,e,r,n,a){return e=+e,r>>>=0,a||O(t,0,r,4),i.write(t,e,r,n,23,4),r+4}function P(t,e,r,n,a){return e=+e,r>>>=0,a||O(t,0,r,8),i.write(t,e,r,n,52,8),r+8}s.prototype.slice=function(t,e){var r=this.length;(t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t);var n=this.subarray(t,e);return n.__proto__=s.prototype,n},s.prototype.readUIntLE=function(t,e,r){t>>>=0,e>>>=0,r||L(t,e,this.length);for(var n=this[t],i=1,a=0;++a<e&&(i*=256);)n+=this[t+a]*i;return n},s.prototype.readUIntBE=function(t,e,r){t>>>=0,e>>>=0,r||L(t,e,this.length);for(var n=this[t+--e],i=1;e>0&&(i*=256);)n+=this[t+--e]*i;return n},s.prototype.readUInt8=function(t,e){return t>>>=0,e||L(t,1,this.length),this[t]},s.prototype.readUInt16LE=function(t,e){return t>>>=0,e||L(t,2,this.length),this[t]|this[t+1]<<8},s.prototype.readUInt16BE=function(t,e){return t>>>=0,e||L(t,2,this.length),this[t]<<8|this[t+1]},s.prototype.readUInt32LE=function(t,e){return t>>>=0,e||L(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},s.prototype.readUInt32BE=function(t,e){return t>>>=0,e||L(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},s.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||L(t,e,this.length);for(var n=this[t],i=1,a=0;++a<e&&(i*=256);)n+=this[t+a]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*e)),n},s.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||L(t,e,this.length);for(var n=e,i=1,a=this[t+--n];n>0&&(i*=256);)a+=this[t+--n]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*e)),a},s.prototype.readInt8=function(t,e){return t>>>=0,e||L(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},s.prototype.readInt16LE=function(t,e){t>>>=0,e||L(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt16BE=function(t,e){t>>>=0,e||L(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt32LE=function(t,e){return t>>>=0,e||L(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},s.prototype.readInt32BE=function(t,e){return t>>>=0,e||L(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},s.prototype.readFloatLE=function(t,e){return t>>>=0,e||L(t,4,this.length),i.read(this,t,!0,23,4)},s.prototype.readFloatBE=function(t,e){return t>>>=0,e||L(t,4,this.length),i.read(this,t,!1,23,4)},s.prototype.readDoubleLE=function(t,e){return t>>>=0,e||L(t,8,this.length),i.read(this,t,!0,52,8)},s.prototype.readDoubleBE=function(t,e){return t>>>=0,e||L(t,8,this.length),i.read(this,t,!1,52,8)},s.prototype.writeUIntLE=function(t,e,r,n){(t=+t,e>>>=0,r>>>=0,n)||z(this,t,e,r,Math.pow(2,8*r)-1,0);var i=1,a=0;for(this[e]=255&t;++a<r&&(i*=256);)this[e+a]=t/i&255;return e+r},s.prototype.writeUIntBE=function(t,e,r,n){(t=+t,e>>>=0,r>>>=0,n)||z(this,t,e,r,Math.pow(2,8*r)-1,0);var i=r-1,a=1;for(this[e+i]=255&t;--i>=0&&(a*=256);)this[e+i]=t/a&255;return e+r},s.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||z(this,t,e,1,255,0),this[e]=255&t,e+1},s.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||z(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},s.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||z(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},s.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||z(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},s.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||z(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},s.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);z(this,t,e,r,i-1,-i)}var a=0,o=1,s=0;for(this[e]=255&t;++a<r&&(o*=256);)t<0&&0===s&&0!==this[e+a-1]&&(s=1),this[e+a]=(t/o>>0)-s&255;return e+r},s.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);z(this,t,e,r,i-1,-i)}var a=r-1,o=1,s=0;for(this[e+a]=255&t;--a>=0&&(o*=256);)t<0&&0===s&&0!==this[e+a+1]&&(s=1),this[e+a]=(t/o>>0)-s&255;return e+r},s.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||z(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},s.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||z(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},s.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||z(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},s.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||z(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},s.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||z(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},s.prototype.writeFloatLE=function(t,e,r){return I(this,t,e,!0,r)},s.prototype.writeFloatBE=function(t,e,r){return I(this,t,e,!1,r)},s.prototype.writeDoubleLE=function(t,e,r){return P(this,t,e,!0,r)},s.prototype.writeDoubleBE=function(t,e,r){return P(this,t,e,!1,r)},s.prototype.copy=function(t,e,r,n){if(!s.isBuffer(t))throw new TypeError(\"argument should be a Buffer\");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError(\"targetStart out of bounds\");if(r<0||r>=this.length)throw new RangeError(\"Index out of range\");if(n<0)throw new RangeError(\"sourceEnd out of bounds\");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var i=n-r;if(this===t&&\"function\"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(e,r,n);else if(this===t&&r<e&&e<n)for(var a=i-1;a>=0;--a)t[a+e]=this[a+r];else Uint8Array.prototype.set.call(t,this.subarray(r,n),e);return i},s.prototype.fill=function(t,e,r,n){if(\"string\"==typeof t){if(\"string\"==typeof e?(n=e,e=0,r=this.length):\"string\"==typeof r&&(n=r,r=this.length),void 0!==n&&\"string\"!=typeof n)throw new TypeError(\"encoding must be a string\");if(\"string\"==typeof n&&!s.isEncoding(n))throw new TypeError(\"Unknown encoding: \"+n);if(1===t.length){var i=t.charCodeAt(0);(\"utf8\"===n&&i<128||\"latin1\"===n)&&(t=i)}}else\"number\"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<r)throw new RangeError(\"Out of range index\");if(r<=e)return this;var a;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),\"number\"==typeof t)for(a=e;a<r;++a)this[a]=t;else{var o=s.isBuffer(t)?t:s.from(t,n),l=o.length;if(0===l)throw new TypeError('The value \"'+t+'\" is invalid for argument \"value\"');for(a=0;a<r-e;++a)this[a+e]=o[a%l]}return this};var D=/[^+\\/0-9A-Za-z-_]/g;function R(t){return t<16?\"0\"+t.toString(16):t.toString(16)}function B(t,e){var r;e=e||1/0;for(var n=t.length,i=null,a=[],o=0;o<n;++o){if((r=t.charCodeAt(o))>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&a.push(239,191,189);continue}if(o+1===n){(e-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&a.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;a.push(r)}else if(r<2048){if((e-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error(\"Invalid code point\");if((e-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return a}function F(t){return n.toByteArray(function(t){if((t=(t=t.split(\"=\")[0]).trim().replace(D,\"\")).length<2)return\"\";for(;t.length%4!=0;)t+=\"=\";return t}(t))}function N(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function j(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function V(t){return t!=t}},{\"base64-js\":62,ieee754:395}],94:[function(t,e,r){\"use strict\";var n=t(\"./lib/monotone\"),i=t(\"./lib/triangulation\"),a=t(\"./lib/delaunay\"),o=t(\"./lib/filter\");function s(t){return[Math.min(t[0],t[1]),Math.max(t[0],t[1])]}function l(t,e){return t[0]-e[0]||t[1]-e[1]}function c(t,e,r){return e in t?t[e]:r}e.exports=function(t,e,r){Array.isArray(e)?(r=r||{},e=e||[]):(r=e||{},e=[]);var u=!!c(r,\"delaunay\",!0),f=!!c(r,\"interior\",!0),h=!!c(r,\"exterior\",!0),p=!!c(r,\"infinity\",!1);if(!f&&!h||0===t.length)return[];var d=n(t,e);if(u||f!==h||p){for(var g=i(t.length,function(t){return t.map(s).sort(l)}(e)),v=0;v<d.length;++v){var m=d[v];g.addTriangle(m[0],m[1],m[2])}return u&&a(t,g),h?f?p?o(g,0,p):g.cells():o(g,1,p):o(g,-1)}return d}},{\"./lib/delaunay\":95,\"./lib/filter\":96,\"./lib/monotone\":97,\"./lib/triangulation\":98}],95:[function(t,e,r){\"use strict\";var n=t(\"robust-in-sphere\")[4];t(\"binary-search-bounds\");function i(t,e,r,i,a,o){var s=e.opposite(i,a);if(!(s<0)){if(a<i){var l=i;i=a,a=l,l=o,o=s,s=l}e.isConstraint(i,a)||n(t[i],t[a],t[o],t[s])<0&&r.push(i,a)}}e.exports=function(t,e){for(var r=[],a=t.length,o=e.stars,s=0;s<a;++s)for(var l=o[s],c=1;c<l.length;c+=2){var u=l[c];if(!(u<s)&&!e.isConstraint(s,u)){for(var f=l[c-1],h=-1,p=1;p<l.length;p+=2)if(l[p-1]===u){h=l[p];break}h<0||n(t[s],t[u],t[f],t[h])<0&&r.push(s,u)}}for(;r.length>0;){for(var u=r.pop(),s=r.pop(),f=-1,h=-1,l=o[s],d=1;d<l.length;d+=2){var g=l[d-1],v=l[d];g===u?h=v:v===u&&(f=g)}f<0||h<0||(n(t[s],t[u],t[f],t[h])>=0||(e.flip(s,u),i(t,e,r,f,s,h),i(t,e,r,s,h,f),i(t,e,r,h,u,f),i(t,e,r,u,f,h)))}}},{\"binary-search-bounds\":99,\"robust-in-sphere\":484}],96:[function(t,e,r){\"use strict\";var n,i=t(\"binary-search-bounds\");function a(t,e,r,n,i,a,o){this.cells=t,this.neighbor=e,this.flags=n,this.constraint=r,this.active=i,this.next=a,this.boundary=o}function o(t,e){return t[0]-e[0]||t[1]-e[1]||t[2]-e[2]}e.exports=function(t,e,r){var n=function(t,e){for(var r=t.cells(),n=r.length,i=0;i<n;++i){var s=r[i],l=s[0],c=s[1],u=s[2];c<u?c<l&&(s[0]=c,s[1]=u,s[2]=l):u<l&&(s[0]=u,s[1]=l,s[2]=c)}r.sort(o);for(var f=new Array(n),i=0;i<f.length;++i)f[i]=0;var h=[],p=[],d=new Array(3*n),g=new Array(3*n),v=null;e&&(v=[]);for(var m=new a(r,d,g,f,h,p,v),i=0;i<n;++i)for(var s=r[i],y=0;y<3;++y){var l=s[y],c=s[(y+1)%3],x=d[3*i+y]=m.locate(c,l,t.opposite(c,l)),b=g[3*i+y]=t.isConstraint(l,c);x<0&&(b?p.push(i):(h.push(i),f[i]=1),e&&v.push([c,l,-1]))}return m}(t,r);if(0===e)return r?n.cells.concat(n.boundary):n.cells;var i=1,s=n.active,l=n.next,c=n.flags,u=n.cells,f=n.constraint,h=n.neighbor;for(;s.length>0||l.length>0;){for(;s.length>0;){var p=s.pop();if(c[p]!==-i){c[p]=i;u[p];for(var d=0;d<3;++d){var g=h[3*p+d];g>=0&&0===c[g]&&(f[3*p+d]?l.push(g):(s.push(g),c[g]=i))}}}var v=l;l=s,s=v,l.length=0,i=-i}var m=function(t,e,r){for(var n=0,i=0;i<t.length;++i)e[i]===r&&(t[n++]=t[i]);return t.length=n,t}(u,c,e);if(r)return m.concat(n.boundary);return m},a.prototype.locate=(n=[0,0,0],function(t,e,r){var a=t,s=e,l=r;return e<r?e<t&&(a=e,s=r,l=t):r<t&&(a=r,s=t,l=e),a<0?-1:(n[0]=a,n[1]=s,n[2]=l,i.eq(this.cells,n,o))})},{\"binary-search-bounds\":99}],97:[function(t,e,r){\"use strict\";var n=t(\"binary-search-bounds\"),i=t(\"robust-orientation\")[3],a=0,o=1,s=2;function l(t,e,r,n,i){this.a=t,this.b=e,this.idx=r,this.lowerIds=n,this.upperIds=i}function c(t,e,r,n){this.a=t,this.b=e,this.type=r,this.idx=n}function u(t,e){var r=t.a[0]-e.a[0]||t.a[1]-e.a[1]||t.type-e.type;return r||(t.type!==a&&(r=i(t.a,t.b,e.b))?r:t.idx-e.idx)}function f(t,e){return i(t.a,t.b,e)}function h(t,e,r,a,o){for(var s=n.lt(e,a,f),l=n.gt(e,a,f),c=s;c<l;++c){for(var u=e[c],h=u.lowerIds,p=h.length;p>1&&i(r[h[p-2]],r[h[p-1]],a)>0;)t.push([h[p-1],h[p-2],o]),p-=1;h.length=p,h.push(o);var d=u.upperIds;for(p=d.length;p>1&&i(r[d[p-2]],r[d[p-1]],a)<0;)t.push([d[p-2],d[p-1],o]),p-=1;d.length=p,d.push(o)}}function p(t,e){var r;return(r=t.a[0]<e.a[0]?i(t.a,t.b,e.a):i(e.b,e.a,t.a))?r:(r=e.b[0]<t.b[0]?i(t.a,t.b,e.b):i(e.b,e.a,t.b))||t.idx-e.idx}function d(t,e,r){var i=n.le(t,r,p),a=t[i],o=a.upperIds,s=o[o.length-1];a.upperIds=[s],t.splice(i+1,0,new l(r.a,r.b,r.idx,[s],o))}function g(t,e,r){var i=r.a;r.a=r.b,r.b=i;var a=n.eq(t,r,p),o=t[a];t[a-1].upperIds=o.upperIds,t.splice(a,1)}e.exports=function(t,e){for(var r=t.length,n=e.length,i=[],f=0;f<r;++f)i.push(new c(t[f],null,a,f));for(var f=0;f<n;++f){var p=e[f],v=t[p[0]],m=t[p[1]];v[0]<m[0]?i.push(new c(v,m,s,f),new c(m,v,o,f)):v[0]>m[0]&&i.push(new c(m,v,s,f),new c(v,m,o,f))}i.sort(u);for(var y=i[0].a[0]-(1+Math.abs(i[0].a[0]))*Math.pow(2,-52),x=[new l([y,1],[y,0],-1,[],[],[],[])],b=[],f=0,_=i.length;f<_;++f){var w=i[f],k=w.type;k===a?h(b,x,t,w.a,w.idx):k===s?d(x,t,w):g(x,t,w)}return b}},{\"binary-search-bounds\":99,\"robust-orientation\":486}],98:[function(t,e,r){\"use strict\";var n=t(\"binary-search-bounds\");function i(t,e){this.stars=t,this.edges=e}e.exports=function(t,e){for(var r=new Array(t),n=0;n<t;++n)r[n]=[];return new i(r,e)};var a=i.prototype;function o(t,e,r){for(var n=1,i=t.length;n<i;n+=2)if(t[n-1]===e&&t[n]===r)return t[n-1]=t[i-2],t[n]=t[i-1],void(t.length=i-2)}a.isConstraint=function(){var t=[0,0];function e(t,e){return t[0]-e[0]||t[1]-e[1]}return function(r,i){return t[0]=Math.min(r,i),t[1]=Math.max(r,i),n.eq(this.edges,t,e)>=0}}(),a.removeTriangle=function(t,e,r){var n=this.stars;o(n[t],e,r),o(n[e],r,t),o(n[r],t,e)},a.addTriangle=function(t,e,r){var n=this.stars;n[t].push(e,r),n[e].push(r,t),n[r].push(t,e)},a.opposite=function(t,e){for(var r=this.stars[e],n=1,i=r.length;n<i;n+=2)if(r[n]===t)return r[n-1];return-1},a.flip=function(t,e){var r=this.opposite(t,e),n=this.opposite(e,t);this.removeTriangle(t,e,r),this.removeTriangle(e,t,n),this.addTriangle(t,n,r),this.addTriangle(e,r,n)},a.edges=function(){for(var t=this.stars,e=[],r=0,n=t.length;r<n;++r)for(var i=t[r],a=0,o=i.length;a<o;a+=2)e.push([i[a],i[a+1]]);return e},a.cells=function(){for(var t=this.stars,e=[],r=0,n=t.length;r<n;++r)for(var i=t[r],a=0,o=i.length;a<o;a+=2){var s=i[a],l=i[a+1];r<Math.min(s,l)&&e.push([r,s,l])}return e}},{\"binary-search-bounds\":99}],99:[function(t,e,r){\"use strict\";function n(t,e,r,n,i){var a=[\"function \",t,\"(a,l,h,\",n.join(\",\"),\"){\",i?\"\":\"var i=\",r?\"l-1\":\"h+1\",\";while(l<=h){var m=(l+h)>>>1,x=a[m]\"];return i?e.indexOf(\"c\")<0?a.push(\";if(x===y){return m}else if(x<=y){\"):a.push(\";var p=c(x,y);if(p===0){return m}else if(p<=0){\"):a.push(\";if(\",e,\"){i=m;\"),r?a.push(\"l=m+1}else{h=m-1}\"):a.push(\"h=m-1}else{l=m+1}\"),a.push(\"}\"),i?a.push(\"return -1};\"):a.push(\"return i};\"),a.join(\"\")}function i(t,e,r,i){return new Function([n(\"A\",\"x\"+t+\"y\",e,[\"y\"],i),n(\"P\",\"c(x,y)\"+t+\"0\",e,[\"y\",\"c\"],i),\"function dispatchBsearch\",r,\"(a,y,c,l,h){if(typeof(c)==='function'){return P(a,(l===void 0)?0:l|0,(h===void 0)?a.length-1:h|0,y,c)}else{return A(a,(c===void 0)?0:c|0,(l===void 0)?a.length-1:l|0,y)}}return dispatchBsearch\",r].join(\"\"))()}e.exports={ge:i(\">=\",!1,\"GE\"),gt:i(\">\",!1,\"GT\"),lt:i(\"<\",!0,\"LT\"),le:i(\"<=\",!0,\"LE\"),eq:i(\"-\",!0,\"EQ\",!0)}},{}],100:[function(t,e,r){\"use strict\";e.exports=function(t){for(var e=1,r=1;r<t.length;++r)for(var n=0;n<r;++n)if(t[r]<t[n])e=-e;else if(t[n]===t[r])return 0;return e}},{}],101:[function(t,e,r){\"use strict\";var n=t(\"dup\"),i=t(\"robust-linear-solve\");function a(t,e){for(var r=0,n=t.length,i=0;i<n;++i)r+=t[i]*e[i];return r}function o(t){var e=t.length;if(0===e)return[];t[0].length;var r=n([t.length+1,t.length+1],1),o=n([t.length+1],1);r[e][e]=0;for(var s=0;s<e;++s){for(var l=0;l<=s;++l)r[l][s]=r[s][l]=2*a(t[s],t[l]);o[s]=a(t[s],t[s])}var c=i(r,o),u=0,f=c[e+1];for(s=0;s<f.length;++s)u+=f[s];var h=new Array(e);for(s=0;s<e;++s){f=c[s];var p=0;for(l=0;l<f.length;++l)p+=f[l];h[s]=p/u}return h}function s(t){if(0===t.length)return[];for(var e=t[0].length,r=n([e]),i=o(t),a=0;a<t.length;++a)for(var s=0;s<e;++s)r[s]+=t[a][s]*i[a];return r}s.barycenetric=o,e.exports=s},{dup:155,\"robust-linear-solve\":485}],102:[function(t,e,r){e.exports=function(t){for(var e=n(t),r=0,i=0;i<t.length;++i)for(var a=t[i],o=0;o<e.length;++o)r+=Math.pow(a[o]-e[o],2);return Math.sqrt(r/t.length)};var n=t(\"circumcenter\")},{circumcenter:101}],103:[function(t,e,r){e.exports=function(t,e,r){return e<r?t<e?e:t>r?r:t:t<r?r:t>e?e:t}},{}],104:[function(t,e,r){\"use strict\";e.exports=function(t,e,r){var n;if(r){n=e;for(var i=new Array(e.length),a=0;a<e.length;++a){var o=e[a];i[a]=[o[0],o[1],r[a]]}e=i}var s=function(t,e,r){var n=d(t,[],p(t));return m(e,n,r),!!n}(t,e,!!r);for(;y(t,e,!!r);)s=!0;if(r&&s){n.length=0,r.length=0;for(var a=0;a<e.length;++a){var o=e[a];n.push([o[0],o[1]]),r.push(o[2])}}return s};var n=t(\"union-find\"),i=t(\"box-intersect\"),a=t(\"robust-segment-intersect\"),o=t(\"big-rat\"),s=t(\"big-rat/cmp\"),l=t(\"big-rat/to-float\"),c=t(\"rat-vec\"),u=t(\"nextafter\"),f=t(\"./lib/rat-seg-intersect\");function h(t){var e=l(t);return[u(e,-1/0),u(e,1/0)]}function p(t){for(var e=new Array(t.length),r=0;r<t.length;++r){var n=t[r];e[r]=[u(n[0],-1/0),u(n[1],-1/0),u(n[0],1/0),u(n[1],1/0)]}return e}function d(t,e,r){for(var a=e.length,o=new n(a),s=[],l=0;l<e.length;++l){var c=e[l],f=h(c[0]),p=h(c[1]);s.push([u(f[0],-1/0),u(p[0],-1/0),u(f[1],1/0),u(p[1],1/0)])}i(s,function(t,e){o.link(t,e)});var d=!0,g=new Array(a);for(l=0;l<a;++l){(m=o.find(l))!==l&&(d=!1,t[m]=[Math.min(t[l][0],t[m][0]),Math.min(t[l][1],t[m][1])])}if(d)return null;var v=0;for(l=0;l<a;++l){var m;(m=o.find(l))===l?(g[l]=v,t[v++]=t[l]):g[l]=-1}t.length=v;for(l=0;l<a;++l)g[l]<0&&(g[l]=g[o.find(l)]);return g}function g(t,e){return t[0]-e[0]||t[1]-e[1]}function v(t,e){var r=t[0]-e[0]||t[1]-e[1];return r||(t[2]<e[2]?-1:t[2]>e[2]?1:0)}function m(t,e,r){if(0!==t.length){if(e)for(var n=0;n<t.length;++n){var i=e[(o=t[n])[0]],a=e[o[1]];o[0]=Math.min(i,a),o[1]=Math.max(i,a)}else for(n=0;n<t.length;++n){var o;i=(o=t[n])[0],a=o[1];o[0]=Math.min(i,a),o[1]=Math.max(i,a)}r?t.sort(v):t.sort(g);var s=1;for(n=1;n<t.length;++n){var l=t[n-1],c=t[n];(c[0]!==l[0]||c[1]!==l[1]||r&&c[2]!==l[2])&&(t[s++]=c)}t.length=s}}function y(t,e,r){var n=function(t,e){for(var r=new Array(e.length),n=0;n<e.length;++n){var i=e[n],a=t[i[0]],o=t[i[1]];r[n]=[u(Math.min(a[0],o[0]),-1/0),u(Math.min(a[1],o[1]),-1/0),u(Math.max(a[0],o[0]),1/0),u(Math.max(a[1],o[1]),1/0)]}return r}(t,e),h=function(t,e,r){var n=[];return i(r,function(r,i){var o=e[r],s=e[i];if(o[0]!==s[0]&&o[0]!==s[1]&&o[1]!==s[0]&&o[1]!==s[1]){var l=t[o[0]],c=t[o[1]],u=t[s[0]],f=t[s[1]];a(l,c,u,f)&&n.push([r,i])}}),n}(t,e,n),g=p(t),v=function(t,e,r,n){var o=[];return i(r,n,function(r,n){var i=e[r];if(i[0]!==n&&i[1]!==n){var s=t[n],l=t[i[0]],c=t[i[1]];a(l,c,s,s)&&o.push([r,n])}}),o}(t,e,n,g),y=d(t,function(t,e,r,n,i){var a,u,h=t.map(function(t){return[o(t[0]),o(t[1])]});for(a=0;a<r.length;++a){var p=r[a];u=p[0];var d=p[1],g=e[u],v=e[d],m=f(c(t[g[0]]),c(t[g[1]]),c(t[v[0]]),c(t[v[1]]));if(m){var y=t.length;t.push([l(m[0]),l(m[1])]),h.push(m),n.push([u,y],[d,y])}}for(n.sort(function(t,e){if(t[0]!==e[0])return t[0]-e[0];var r=h[t[1]],n=h[e[1]];return s(r[0],n[0])||s(r[1],n[1])}),a=n.length-1;a>=0;--a){var x=e[u=(S=n[a])[0]],b=x[0],_=x[1],w=t[b],k=t[_];if((w[0]-k[0]||w[1]-k[1])<0){var M=b;b=_,_=M}x[0]=b;var A,T=x[1]=S[1];for(i&&(A=x[2]);a>0&&n[a-1][0]===u;){var S,E=(S=n[--a])[1];i?e.push([T,E,A]):e.push([T,E]),T=E}i?e.push([T,_,A]):e.push([T,_])}return h}(t,e,h,v,r));return m(e,y,r),!!y||(h.length>0||v.length>0)}},{\"./lib/rat-seg-intersect\":105,\"big-rat\":66,\"big-rat/cmp\":64,\"big-rat/to-float\":78,\"box-intersect\":84,nextafter:434,\"rat-vec\":469,\"robust-segment-intersect\":489,\"union-find\":523}],105:[function(t,e,r){\"use strict\";e.exports=function(t,e,r,n){var a=s(e,t),f=s(n,r),h=u(a,f);if(0===o(h))return null;var p=s(t,r),d=u(f,p),g=i(d,h),v=c(a,g);return l(t,v)};var n=t(\"big-rat/mul\"),i=t(\"big-rat/div\"),a=t(\"big-rat/sub\"),o=t(\"big-rat/sign\"),s=t(\"rat-vec/sub\"),l=t(\"rat-vec/add\"),c=t(\"rat-vec/muls\");function u(t,e){return a(n(t[0],e[1]),n(t[1],e[0]))}},{\"big-rat/div\":65,\"big-rat/mul\":75,\"big-rat/sign\":76,\"big-rat/sub\":77,\"rat-vec/add\":468,\"rat-vec/muls\":470,\"rat-vec/sub\":471}],106:[function(t,e,r){\"use strict\";var n=t(\"clamp\");function i(t,e){null==e&&(e=!0);var r=t[0],i=t[1],a=t[2],o=t[3];return null==o&&(o=e?1:255),e&&(r*=255,i*=255,a*=255,o*=255),16777216*(r=255&n(r,0,255))+((i=255&n(i,0,255))<<16)+((a=255&n(a,0,255))<<8)+(o=255&n(o,0,255))}e.exports=i,e.exports.to=i,e.exports.from=function(t,e){var r=(t=+t)>>>24,n=(16711680&t)>>>16,i=(65280&t)>>>8,a=255&t;return!1===e?[r,n,i,a]:[r/255,n/255,i/255,a/255]}},{clamp:103}],107:[function(t,e,r){\"use strict\";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},{}],108:[function(t,e,r){\"use strict\";var n=t(\"color-rgba\"),i=t(\"clamp\"),a=t(\"dtype\");e.exports=function(t,e){\"float\"!==e&&e||(e=\"array\"),\"uint\"===e&&(e=\"uint8\"),\"uint_clamped\"===e&&(e=\"uint8_clamped\");var r=new(a(e))(4),o=\"uint8\"!==e&&\"uint8_clamped\"!==e;return t.length&&\"string\"!=typeof t||((t=n(t))[0]/=255,t[1]/=255,t[2]/=255),function(t){return t instanceof Uint8Array||t instanceof Uint8ClampedArray||!!(Array.isArray(t)&&(t[0]>1||0===t[0])&&(t[1]>1||0===t[1])&&(t[2]>1||0===t[2])&&(!t[3]||t[3]>1))}(t)?(r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=null!=t[3]?t[3]:255,o&&(r[0]/=255,r[1]/=255,r[2]/=255,r[3]/=255),r):(o?(r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=null!=t[3]?t[3]:1):(r[0]=i(Math.floor(255*t[0]),0,255),r[1]=i(Math.floor(255*t[1]),0,255),r[2]=i(Math.floor(255*t[2]),0,255),r[3]=null==t[3]?255:i(Math.floor(255*t[3]),0,255)),r)}},{clamp:103,\"color-rgba\":110,dtype:154}],109:[function(t,e,r){(function(r){\"use strict\";var n=t(\"color-name\"),i=t(\"is-plain-obj\"),a=t(\"defined\");e.exports=function(t){var e,s,l=[],c=1;if(\"string\"==typeof t)if(n[t])l=n[t].slice(),s=\"rgb\";else if(\"transparent\"===t)c=0,s=\"rgb\",l=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(t)){var u=t.slice(1),f=u.length,h=f<=4;c=1,h?(l=[parseInt(u[0]+u[0],16),parseInt(u[1]+u[1],16),parseInt(u[2]+u[2],16)],4===f&&(c=parseInt(u[3]+u[3],16)/255)):(l=[parseInt(u[0]+u[1],16),parseInt(u[2]+u[3],16),parseInt(u[4]+u[5],16)],8===f&&(c=parseInt(u[6]+u[7],16)/255)),l[0]||(l[0]=0),l[1]||(l[1]=0),l[2]||(l[2]=0),s=\"rgb\"}else if(e=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\\s*\\(([^\\)]*)\\)/.exec(t)){var p=e[1],u=p.replace(/a$/,\"\");s=u;var f=\"cmyk\"===u?4:\"gray\"===u?1:3;l=e[2].trim().split(/\\s*,\\s*/).map(function(t,e){if(/%$/.test(t))return e===f?parseFloat(t)/100:\"rgb\"===u?255*parseFloat(t)/100:parseFloat(t);if(\"h\"===u[e]){if(/deg$/.test(t))return parseFloat(t);if(void 0!==o[t])return o[t]}return parseFloat(t)}),p===u&&l.push(1),c=void 0===l[f]?1:l[f],l=l.slice(0,f)}else t.length>10&&/[0-9](?:\\s|\\/)/.test(t)&&(l=t.match(/([0-9]+)/g).map(function(t){return parseFloat(t)}),s=t.match(/([a-z])/gi).join(\"\").toLowerCase());else if(isNaN(t))if(i(t)){var d=a(t.r,t.red,t.R,null);null!==d?(s=\"rgb\",l=[d,a(t.g,t.green,t.G),a(t.b,t.blue,t.B)]):(s=\"hsl\",l=[a(t.h,t.hue,t.H),a(t.s,t.saturation,t.S),a(t.l,t.lightness,t.L,t.b,t.brightness)]),c=a(t.a,t.alpha,t.opacity,1),null!=t.opacity&&(c/=100)}else(Array.isArray(t)||r.ArrayBuffer&&ArrayBuffer.isView&&ArrayBuffer.isView(t))&&(l=[t[0],t[1],t[2]],s=\"rgb\",c=4===t.length?t[3]:1);else s=\"rgb\",l=[t>>>16,(65280&t)>>>8,255&t];return{space:s,values:l,alpha:c}};var o={red:0,orange:60,yellow:120,green:180,blue:240,purple:300}}).call(this,\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{\"color-name\":107,defined:149,\"is-plain-obj\":405}],110:[function(t,e,r){\"use strict\";var n=t(\"color-parse\"),i=t(\"color-space/hsl\"),a=t(\"clamp\");e.exports=function(t){var e,r=n(t);return r.space?((e=Array(3))[0]=a(r.values[0],0,255),e[1]=a(r.values[1],0,255),e[2]=a(r.values[2],0,255),\"h\"===r.space[0]&&(e=i.rgb(e)),e.push(a(r.alpha,0,1)),e):[]}},{clamp:103,\"color-parse\":109,\"color-space/hsl\":111}],111:[function(t,e,r){\"use strict\";var n=t(\"./rgb\");e.exports={name:\"hsl\",min:[0,0,0],max:[360,100,100],channel:[\"hue\",\"saturation\",\"lightness\"],alias:[\"HSL\"],rgb:function(t){var e,r,n,i,a,o=t[0]/360,s=t[1]/100,l=t[2]/100;if(0===s)return[a=255*l,a,a];e=2*l-(r=l<.5?l*(1+s):l+s-l*s),i=[0,0,0];for(var c=0;c<3;c++)(n=o+1/3*-(c-1))<0?n++:n>1&&n--,a=6*n<1?e+6*(r-e)*n:2*n<1?r:3*n<2?e+(r-e)*(2/3-n)*6:e,i[c]=255*a;return i}},n.hsl=function(t){var e,r,n=t[0]/255,i=t[1]/255,a=t[2]/255,o=Math.min(n,i,a),s=Math.max(n,i,a),l=s-o;return s===o?e=0:n===s?e=(i-a)/l:i===s?e=2+(a-n)/l:a===s&&(e=4+(n-i)/l),(e=Math.min(60*e,360))<0&&(e+=360),r=(o+s)/2,[e,100*(s===o?0:r<=.5?l/(s+o):l/(2-s-o)),100*r]}},{\"./rgb\":112}],112:[function(t,e,r){\"use strict\";e.exports={name:\"rgb\",min:[0,0,0],max:[255,255,255],channel:[\"red\",\"green\",\"blue\"],alias:[\"RGB\"]}},{}],113:[function(t,e,r){e.exports={jet:[{index:0,rgb:[0,0,131]},{index:.125,rgb:[0,60,170]},{index:.375,rgb:[5,255,255]},{index:.625,rgb:[255,255,0]},{index:.875,rgb:[250,0,0]},{index:1,rgb:[128,0,0]}],hsv:[{index:0,rgb:[255,0,0]},{index:.169,rgb:[253,255,2]},{index:.173,rgb:[247,255,2]},{index:.337,rgb:[0,252,4]},{index:.341,rgb:[0,252,10]},{index:.506,rgb:[1,249,255]},{index:.671,rgb:[2,0,253]},{index:.675,rgb:[8,0,253]},{index:.839,rgb:[255,0,251]},{index:.843,rgb:[255,0,245]},{index:1,rgb:[255,0,6]}],hot:[{index:0,rgb:[0,0,0]},{index:.3,rgb:[230,0,0]},{index:.6,rgb:[255,210,0]},{index:1,rgb:[255,255,255]}],cool:[{index:0,rgb:[0,255,255]},{index:1,rgb:[255,0,255]}],spring:[{index:0,rgb:[255,0,255]},{index:1,rgb:[255,255,0]}],summer:[{index:0,rgb:[0,128,102]},{index:1,rgb:[255,255,102]}],autumn:[{index:0,rgb:[255,0,0]},{index:1,rgb:[255,255,0]}],winter:[{index:0,rgb:[0,0,255]},{index:1,rgb:[0,255,128]}],bone:[{index:0,rgb:[0,0,0]},{index:.376,rgb:[84,84,116]},{index:.753,rgb:[169,200,200]},{index:1,rgb:[255,255,255]}],copper:[{index:0,rgb:[0,0,0]},{index:.804,rgb:[255,160,102]},{index:1,rgb:[255,199,127]}],greys:[{index:0,rgb:[0,0,0]},{index:1,rgb:[255,255,255]}],yignbu:[{index:0,rgb:[8,29,88]},{index:.125,rgb:[37,52,148]},{index:.25,rgb:[34,94,168]},{index:.375,rgb:[29,145,192]},{index:.5,rgb:[65,182,196]},{index:.625,rgb:[127,205,187]},{index:.75,rgb:[199,233,180]},{index:.875,rgb:[237,248,217]},{index:1,rgb:[255,255,217]}],greens:[{index:0,rgb:[0,68,27]},{index:.125,rgb:[0,109,44]},{index:.25,rgb:[35,139,69]},{index:.375,rgb:[65,171,93]},{index:.5,rgb:[116,196,118]},{index:.625,rgb:[161,217,155]},{index:.75,rgb:[199,233,192]},{index:.875,rgb:[229,245,224]},{index:1,rgb:[247,252,245]}],yiorrd:[{index:0,rgb:[128,0,38]},{index:.125,rgb:[189,0,38]},{index:.25,rgb:[227,26,28]},{index:.375,rgb:[252,78,42]},{index:.5,rgb:[253,141,60]},{index:.625,rgb:[254,178,76]},{index:.75,rgb:[254,217,118]},{index:.875,rgb:[255,237,160]},{index:1,rgb:[255,255,204]}],bluered:[{index:0,rgb:[0,0,255]},{index:1,rgb:[255,0,0]}],rdbu:[{index:0,rgb:[5,10,172]},{index:.35,rgb:[106,137,247]},{index:.5,rgb:[190,190,190]},{index:.6,rgb:[220,170,132]},{index:.7,rgb:[230,145,90]},{index:1,rgb:[178,10,28]}],picnic:[{index:0,rgb:[0,0,255]},{index:.1,rgb:[51,153,255]},{index:.2,rgb:[102,204,255]},{index:.3,rgb:[153,204,255]},{index:.4,rgb:[204,204,255]},{index:.5,rgb:[255,255,255]},{index:.6,rgb:[255,204,255]},{index:.7,rgb:[255,153,255]},{index:.8,rgb:[255,102,204]},{index:.9,rgb:[255,102,102]},{index:1,rgb:[255,0,0]}],rainbow:[{index:0,rgb:[150,0,90]},{index:.125,rgb:[0,0,200]},{index:.25,rgb:[0,25,255]},{index:.375,rgb:[0,152,255]},{index:.5,rgb:[44,255,150]},{index:.625,rgb:[151,255,0]},{index:.75,rgb:[255,234,0]},{index:.875,rgb:[255,111,0]},{index:1,rgb:[255,0,0]}],portland:[{index:0,rgb:[12,51,131]},{index:.25,rgb:[10,136,186]},{index:.5,rgb:[242,211,56]},{index:.75,rgb:[242,143,56]},{index:1,rgb:[217,30,30]}],blackbody:[{index:0,rgb:[0,0,0]},{index:.2,rgb:[230,0,0]},{index:.4,rgb:[230,210,0]},{index:.7,rgb:[255,255,255]},{index:1,rgb:[160,200,255]}],earth:[{index:0,rgb:[0,0,130]},{index:.1,rgb:[0,180,180]},{index:.2,rgb:[40,210,40]},{index:.4,rgb:[230,230,50]},{index:.6,rgb:[120,70,20]},{index:1,rgb:[255,255,255]}],electric:[{index:0,rgb:[0,0,0]},{index:.15,rgb:[30,0,100]},{index:.4,rgb:[120,0,100]},{index:.6,rgb:[160,90,0]},{index:.8,rgb:[230,200,0]},{index:1,rgb:[255,250,220]}],alpha:[{index:0,rgb:[255,255,255,0]},{index:1,rgb:[255,255,255,1]}],viridis:[{index:0,rgb:[68,1,84]},{index:.13,rgb:[71,44,122]},{index:.25,rgb:[59,81,139]},{index:.38,rgb:[44,113,142]},{index:.5,rgb:[33,144,141]},{index:.63,rgb:[39,173,129]},{index:.75,rgb:[92,200,99]},{index:.88,rgb:[170,220,50]},{index:1,rgb:[253,231,37]}],inferno:[{index:0,rgb:[0,0,4]},{index:.13,rgb:[31,12,72]},{index:.25,rgb:[85,15,109]},{index:.38,rgb:[136,34,106]},{index:.5,rgb:[186,54,85]},{index:.63,rgb:[227,89,51]},{index:.75,rgb:[249,140,10]},{index:.88,rgb:[249,201,50]},{index:1,rgb:[252,255,164]}],magma:[{index:0,rgb:[0,0,4]},{index:.13,rgb:[28,16,68]},{index:.25,rgb:[79,18,123]},{index:.38,rgb:[129,37,129]},{index:.5,rgb:[181,54,122]},{index:.63,rgb:[229,80,100]},{index:.75,rgb:[251,135,97]},{index:.88,rgb:[254,194,135]},{index:1,rgb:[252,253,191]}],plasma:[{index:0,rgb:[13,8,135]},{index:.13,rgb:[75,3,161]},{index:.25,rgb:[125,3,168]},{index:.38,rgb:[168,34,150]},{index:.5,rgb:[203,70,121]},{index:.63,rgb:[229,107,93]},{index:.75,rgb:[248,148,65]},{index:.88,rgb:[253,195,40]},{index:1,rgb:[240,249,33]}],warm:[{index:0,rgb:[125,0,179]},{index:.13,rgb:[172,0,187]},{index:.25,rgb:[219,0,170]},{index:.38,rgb:[255,0,130]},{index:.5,rgb:[255,63,74]},{index:.63,rgb:[255,123,0]},{index:.75,rgb:[234,176,0]},{index:.88,rgb:[190,228,0]},{index:1,rgb:[147,255,0]}],cool:[{index:0,rgb:[125,0,179]},{index:.13,rgb:[116,0,218]},{index:.25,rgb:[98,74,237]},{index:.38,rgb:[68,146,231]},{index:.5,rgb:[0,204,197]},{index:.63,rgb:[0,247,146]},{index:.75,rgb:[0,255,88]},{index:.88,rgb:[40,255,8]},{index:1,rgb:[147,255,0]}],\"rainbow-soft\":[{index:0,rgb:[125,0,179]},{index:.1,rgb:[199,0,180]},{index:.2,rgb:[255,0,121]},{index:.3,rgb:[255,108,0]},{index:.4,rgb:[222,194,0]},{index:.5,rgb:[150,255,0]},{index:.6,rgb:[0,255,55]},{index:.7,rgb:[0,246,150]},{index:.8,rgb:[50,167,222]},{index:.9,rgb:[103,51,235]},{index:1,rgb:[124,0,186]}],bathymetry:[{index:0,rgb:[40,26,44]},{index:.13,rgb:[59,49,90]},{index:.25,rgb:[64,76,139]},{index:.38,rgb:[63,110,151]},{index:.5,rgb:[72,142,158]},{index:.63,rgb:[85,174,163]},{index:.75,rgb:[120,206,163]},{index:.88,rgb:[187,230,172]},{index:1,rgb:[253,254,204]}],cdom:[{index:0,rgb:[47,15,62]},{index:.13,rgb:[87,23,86]},{index:.25,rgb:[130,28,99]},{index:.38,rgb:[171,41,96]},{index:.5,rgb:[206,67,86]},{index:.63,rgb:[230,106,84]},{index:.75,rgb:[242,149,103]},{index:.88,rgb:[249,193,135]},{index:1,rgb:[254,237,176]}],chlorophyll:[{index:0,rgb:[18,36,20]},{index:.13,rgb:[25,63,41]},{index:.25,rgb:[24,91,59]},{index:.38,rgb:[13,119,72]},{index:.5,rgb:[18,148,80]},{index:.63,rgb:[80,173,89]},{index:.75,rgb:[132,196,122]},{index:.88,rgb:[175,221,162]},{index:1,rgb:[215,249,208]}],density:[{index:0,rgb:[54,14,36]},{index:.13,rgb:[89,23,80]},{index:.25,rgb:[110,45,132]},{index:.38,rgb:[120,77,178]},{index:.5,rgb:[120,113,213]},{index:.63,rgb:[115,151,228]},{index:.75,rgb:[134,185,227]},{index:.88,rgb:[177,214,227]},{index:1,rgb:[230,241,241]}],\"freesurface-blue\":[{index:0,rgb:[30,4,110]},{index:.13,rgb:[47,14,176]},{index:.25,rgb:[41,45,236]},{index:.38,rgb:[25,99,212]},{index:.5,rgb:[68,131,200]},{index:.63,rgb:[114,156,197]},{index:.75,rgb:[157,181,203]},{index:.88,rgb:[200,208,216]},{index:1,rgb:[241,237,236]}],\"freesurface-red\":[{index:0,rgb:[60,9,18]},{index:.13,rgb:[100,17,27]},{index:.25,rgb:[142,20,29]},{index:.38,rgb:[177,43,27]},{index:.5,rgb:[192,87,63]},{index:.63,rgb:[205,125,105]},{index:.75,rgb:[216,162,148]},{index:.88,rgb:[227,199,193]},{index:1,rgb:[241,237,236]}],oxygen:[{index:0,rgb:[64,5,5]},{index:.13,rgb:[106,6,15]},{index:.25,rgb:[144,26,7]},{index:.38,rgb:[168,64,3]},{index:.5,rgb:[188,100,4]},{index:.63,rgb:[206,136,11]},{index:.75,rgb:[220,174,25]},{index:.88,rgb:[231,215,44]},{index:1,rgb:[248,254,105]}],par:[{index:0,rgb:[51,20,24]},{index:.13,rgb:[90,32,35]},{index:.25,rgb:[129,44,34]},{index:.38,rgb:[159,68,25]},{index:.5,rgb:[182,99,19]},{index:.63,rgb:[199,134,22]},{index:.75,rgb:[212,171,35]},{index:.88,rgb:[221,210,54]},{index:1,rgb:[225,253,75]}],phase:[{index:0,rgb:[145,105,18]},{index:.13,rgb:[184,71,38]},{index:.25,rgb:[186,58,115]},{index:.38,rgb:[160,71,185]},{index:.5,rgb:[110,97,218]},{index:.63,rgb:[50,123,164]},{index:.75,rgb:[31,131,110]},{index:.88,rgb:[77,129,34]},{index:1,rgb:[145,105,18]}],salinity:[{index:0,rgb:[42,24,108]},{index:.13,rgb:[33,50,162]},{index:.25,rgb:[15,90,145]},{index:.38,rgb:[40,118,137]},{index:.5,rgb:[59,146,135]},{index:.63,rgb:[79,175,126]},{index:.75,rgb:[120,203,104]},{index:.88,rgb:[193,221,100]},{index:1,rgb:[253,239,154]}],temperature:[{index:0,rgb:[4,35,51]},{index:.13,rgb:[23,51,122]},{index:.25,rgb:[85,59,157]},{index:.38,rgb:[129,79,143]},{index:.5,rgb:[175,95,130]},{index:.63,rgb:[222,112,101]},{index:.75,rgb:[249,146,66]},{index:.88,rgb:[249,196,65]},{index:1,rgb:[232,250,91]}],turbidity:[{index:0,rgb:[34,31,27]},{index:.13,rgb:[65,50,41]},{index:.25,rgb:[98,69,52]},{index:.38,rgb:[131,89,57]},{index:.5,rgb:[161,112,59]},{index:.63,rgb:[185,140,66]},{index:.75,rgb:[202,174,88]},{index:.88,rgb:[216,209,126]},{index:1,rgb:[233,246,171]}],\"velocity-blue\":[{index:0,rgb:[17,32,64]},{index:.13,rgb:[35,52,116]},{index:.25,rgb:[29,81,156]},{index:.38,rgb:[31,113,162]},{index:.5,rgb:[50,144,169]},{index:.63,rgb:[87,173,176]},{index:.75,rgb:[149,196,189]},{index:.88,rgb:[203,221,211]},{index:1,rgb:[254,251,230]}],\"velocity-green\":[{index:0,rgb:[23,35,19]},{index:.13,rgb:[24,64,38]},{index:.25,rgb:[11,95,45]},{index:.38,rgb:[39,123,35]},{index:.5,rgb:[95,146,12]},{index:.63,rgb:[152,165,18]},{index:.75,rgb:[201,186,69]},{index:.88,rgb:[233,216,137]},{index:1,rgb:[255,253,205]}],cubehelix:[{index:0,rgb:[0,0,0]},{index:.07,rgb:[22,5,59]},{index:.13,rgb:[60,4,105]},{index:.2,rgb:[109,1,135]},{index:.27,rgb:[161,0,147]},{index:.33,rgb:[210,2,142]},{index:.4,rgb:[251,11,123]},{index:.47,rgb:[255,29,97]},{index:.53,rgb:[255,54,69]},{index:.6,rgb:[255,85,46]},{index:.67,rgb:[255,120,34]},{index:.73,rgb:[255,157,37]},{index:.8,rgb:[241,191,57]},{index:.87,rgb:[224,220,93]},{index:.93,rgb:[218,241,142]},{index:1,rgb:[227,253,198]}]}},{}],114:[function(t,e,r){\"use strict\";var n=t(\"./colorScale\"),i=t(\"lerp\");function a(t){return[t[0]/255,t[1]/255,t[2]/255,t[3]]}function o(t){for(var e,r=\"#\",n=0;n<3;++n)r+=(\"00\"+(e=(e=t[n]).toString(16))).substr(e.length);return r}function s(t){return\"rgba(\"+t.join(\",\")+\")\"}e.exports=function(t){var e,r,l,c,u,f,h,p,d,g;t||(t={});p=(t.nshades||72)-1,h=t.format||\"hex\",(f=t.colormap)||(f=\"jet\");if(\"string\"==typeof f){if(f=f.toLowerCase(),!n[f])throw Error(f+\" not a supported colorscale\");u=n[f]}else{if(!Array.isArray(f))throw Error(\"unsupported colormap option\",f);u=f.slice()}if(u.length>p)throw new Error(f+\" map requires nshades to be at least size \"+u.length);d=Array.isArray(t.alpha)?2!==t.alpha.length?[1,1]:t.alpha.slice():\"number\"==typeof t.alpha?[t.alpha,t.alpha]:[1,1];e=u.map(function(t){return Math.round(t.index*p)}),d[0]=Math.min(Math.max(d[0],0),1),d[1]=Math.min(Math.max(d[1],0),1);var v=u.map(function(t,e){var r=u[e].index,n=u[e].rgb.slice();return 4===n.length&&n[3]>=0&&n[3]<=1?n:(n[3]=d[0]+(d[1]-d[0])*r,n)}),m=[];for(g=0;g<e.length-1;++g){c=e[g+1]-e[g],r=v[g],l=v[g+1];for(var y=0;y<c;y++){var x=y/c;m.push([Math.round(i(r[0],l[0],x)),Math.round(i(r[1],l[1],x)),Math.round(i(r[2],l[2],x)),i(r[3],l[3],x)])}}m.push(u[u.length-1].rgb.concat(d[1])),\"hex\"===h?m=m.map(o):\"rgbaString\"===h?m=m.map(s):\"float\"===h&&(m=m.map(a));return m}},{\"./colorScale\":113,lerp:408}],115:[function(t,e,r){\"use strict\";e.exports=function(t,e,r,a){var o=n(e,r,a);if(0===o){var s=i(n(t,e,r)),c=i(n(t,e,a));if(s===c){if(0===s){var u=l(t,e,r),f=l(t,e,a);return u===f?0:u?1:-1}return 0}return 0===c?s>0?-1:l(t,e,a)?-1:1:0===s?c>0?1:l(t,e,r)?1:-1:i(c-s)}var h=n(t,e,r);if(h>0)return o>0&&n(t,e,a)>0?1:-1;if(h<0)return o>0||n(t,e,a)>0?1:-1;var p=n(t,e,a);return p>0?1:l(t,e,r)?1:-1};var n=t(\"robust-orientation\"),i=t(\"signum\"),a=t(\"two-sum\"),o=t(\"robust-product\"),s=t(\"robust-sum\");function l(t,e,r){var n=a(t[0],-e[0]),i=a(t[1],-e[1]),l=a(r[0],-e[0]),c=a(r[1],-e[1]),u=s(o(n,l),o(i,c));return u[u.length-1]>=0}},{\"robust-orientation\":486,\"robust-product\":487,\"robust-sum\":491,signum:492,\"two-sum\":521}],116:[function(t,e,r){e.exports=function(t,e){var r=t.length,a=t.length-e.length;if(a)return a;switch(r){case 0:return 0;case 1:return t[0]-e[0];case 2:return t[0]+t[1]-e[0]-e[1]||n(t[0],t[1])-n(e[0],e[1]);case 3:var o=t[0]+t[1],s=e[0]+e[1];if(a=o+t[2]-(s+e[2]))return a;var l=n(t[0],t[1]),c=n(e[0],e[1]);return n(l,t[2])-n(c,e[2])||n(l+t[2],o)-n(c+e[2],s);case 4:var u=t[0],f=t[1],h=t[2],p=t[3],d=e[0],g=e[1],v=e[2],m=e[3];return u+f+h+p-(d+g+v+m)||n(u,f,h,p)-n(d,g,v,m,d)||n(u+f,u+h,u+p,f+h,f+p,h+p)-n(d+g,d+v,d+m,g+v,g+m,v+m)||n(u+f+h,u+f+p,u+h+p,f+h+p)-n(d+g+v,d+g+m,d+v+m,g+v+m);default:for(var y=t.slice().sort(i),x=e.slice().sort(i),b=0;b<r;++b)if(a=y[b]-x[b])return a;return 0}};var n=Math.min;function i(t,e){return t-e}},{}],117:[function(t,e,r){\"use strict\";var n=t(\"compare-cell\"),i=t(\"cell-orientation\");e.exports=function(t,e){return n(t,e)||i(t)-i(e)}},{\"cell-orientation\":100,\"compare-cell\":116}],118:[function(t,e,r){\"use strict\";var n=t(\"./lib/ch1d\"),i=t(\"./lib/ch2d\"),a=t(\"./lib/chnd\");e.exports=function(t){var e=t.length;if(0===e)return[];if(1===e)return[[0]];var r=t[0].length;if(0===r)return[];if(1===r)return n(t);if(2===r)return i(t);return a(t,r)}},{\"./lib/ch1d\":119,\"./lib/ch2d\":120,\"./lib/chnd\":121}],119:[function(t,e,r){\"use strict\";e.exports=function(t){for(var e=0,r=0,n=1;n<t.length;++n)t[n][0]<t[e][0]&&(e=n),t[n][0]>t[r][0]&&(r=n);return e<r?[[e],[r]]:e>r?[[r],[e]]:[[e]]}},{}],120:[function(t,e,r){\"use strict\";e.exports=function(t){var e=n(t),r=e.length;if(r<=2)return[];for(var i=new Array(r),a=e[r-1],o=0;o<r;++o){var s=e[o];i[o]=[a,s],a=s}return i};var n=t(\"monotone-convex-hull-2d\")},{\"monotone-convex-hull-2d\":417}],121:[function(t,e,r){\"use strict\";e.exports=function(t,e){try{return n(t,!0)}catch(s){var r=i(t);if(r.length<=e)return[];var a=function(t,e){for(var r=t.length,n=new Array(r),i=0;i<e.length;++i)n[i]=t[e[i]];for(var a=e.length,i=0;i<r;++i)e.indexOf(i)<0&&(n[a++]=t[i]);return n}(t,r),o=n(a,!0);return function(t,e){for(var r=t.length,n=e.length,i=0;i<r;++i)for(var a=t[i],o=0;o<a.length;++o){var s=a[o];if(s<n)a[o]=e[s];else{s-=n;for(var l=0;l<n;++l)s>=e[l]&&(s+=1);a[o]=s}}return t}(o,r)}};var n=t(\"incremental-convex-hull\"),i=t(\"affine-hull\")},{\"affine-hull\":50,\"incremental-convex-hull\":396}],122:[function(t,e,r){e.exports={AFG:\"afghan\",ALA:\"\\\\b\\\\wland\",ALB:\"albania\",DZA:\"algeria\",ASM:\"^(?=.*americ).*samoa\",AND:\"andorra\",AGO:\"angola\",AIA:\"anguill?a\",ATA:\"antarctica\",ATG:\"antigua\",ARG:\"argentin\",ARM:\"armenia\",ABW:\"^(?!.*bonaire).*\\\\baruba\",AUS:\"australia\",AUT:\"^(?!.*hungary).*austria|\\\\baustri.*\\\\bemp\",AZE:\"azerbaijan\",BHS:\"bahamas\",BHR:\"bahrain\",BGD:\"bangladesh|^(?=.*east).*paki?stan\",BRB:\"barbados\",BLR:\"belarus|byelo\",BEL:\"^(?!.*luxem).*belgium\",BLZ:\"belize|^(?=.*british).*honduras\",BEN:\"benin|dahome\",BMU:\"bermuda\",BTN:\"bhutan\",BOL:\"bolivia\",BES:\"^(?=.*bonaire).*eustatius|^(?=.*carib).*netherlands|\\\\bbes.?islands\",BIH:\"herzegovina|bosnia\",BWA:\"botswana|bechuana\",BVT:\"bouvet\",BRA:\"brazil\",IOT:\"british.?indian.?ocean\",BRN:\"brunei\",BGR:\"bulgaria\",BFA:\"burkina|\\\\bfaso|upper.?volta\",BDI:\"burundi\",CPV:\"verde\",KHM:\"cambodia|kampuchea|khmer\",CMR:\"cameroon\",CAN:\"canada\",CYM:\"cayman\",CAF:\"\\\\bcentral.african.republic\",TCD:\"\\\\bchad\",CHL:\"\\\\bchile\",CHN:\"^(?!.*\\\\bmac)(?!.*\\\\bhong)(?!.*\\\\btai)(?!.*\\\\brep).*china|^(?=.*peo)(?=.*rep).*china\",CXR:\"christmas\",CCK:\"\\\\bcocos|keeling\",COL:\"colombia\",COM:\"comoro\",COG:\"^(?!.*\\\\bdem)(?!.*\\\\bd[\\\\.]?r)(?!.*kinshasa)(?!.*zaire)(?!.*belg)(?!.*l.opoldville)(?!.*free).*\\\\bcongo\",COK:\"\\\\bcook\",CRI:\"costa.?rica\",CIV:\"ivoire|ivory\",HRV:\"croatia\",CUB:\"\\\\bcuba\",CUW:\"^(?!.*bonaire).*\\\\bcura(c|\\xe7)ao\",CYP:\"cyprus\",CSK:\"czechoslovakia\",CZE:\"^(?=.*rep).*czech|czechia|bohemia\",COD:\"\\\\bdem.*congo|congo.*\\\\bdem|congo.*\\\\bd[\\\\.]?r|\\\\bd[\\\\.]?r.*congo|belgian.?congo|congo.?free.?state|kinshasa|zaire|l.opoldville|drc|droc|rdc\",DNK:\"denmark\",DJI:\"djibouti\",DMA:\"dominica(?!n)\",DOM:\"dominican.rep\",ECU:\"ecuador\",EGY:\"egypt\",SLV:\"el.?salvador\",GNQ:\"guine.*eq|eq.*guine|^(?=.*span).*guinea\",ERI:\"eritrea\",EST:\"estonia\",ETH:\"ethiopia|abyssinia\",FLK:\"falkland|malvinas\",FRO:\"faroe|faeroe\",FJI:\"fiji\",FIN:\"finland\",FRA:\"^(?!.*\\\\bdep)(?!.*martinique).*france|french.?republic|\\\\bgaul\",GUF:\"^(?=.*french).*guiana\",PYF:\"french.?polynesia|tahiti\",ATF:\"french.?southern\",GAB:\"gabon\",GMB:\"gambia\",GEO:\"^(?!.*south).*georgia\",DDR:\"german.?democratic.?republic|democratic.?republic.*germany|east.germany\",DEU:\"^(?!.*east).*germany|^(?=.*\\\\bfed.*\\\\brep).*german\",GHA:\"ghana|gold.?coast\",GIB:\"gibraltar\",GRC:\"greece|hellenic|hellas\",GRL:\"greenland\",GRD:\"grenada\",GLP:\"guadeloupe\",GUM:\"\\\\bguam\",GTM:\"guatemala\",GGY:\"guernsey\",GIN:\"^(?!.*eq)(?!.*span)(?!.*bissau)(?!.*portu)(?!.*new).*guinea\",GNB:\"bissau|^(?=.*portu).*guinea\",GUY:\"guyana|british.?guiana\",HTI:\"haiti\",HMD:\"heard.*mcdonald\",VAT:\"holy.?see|vatican|papal.?st\",HND:\"^(?!.*brit).*honduras\",HKG:\"hong.?kong\",HUN:\"^(?!.*austr).*hungary\",ISL:\"iceland\",IND:\"india(?!.*ocea)\",IDN:\"indonesia\",IRN:\"\\\\biran|persia\",IRQ:\"\\\\biraq|mesopotamia\",IRL:\"(^ireland)|(^republic.*ireland)\",IMN:\"^(?=.*isle).*\\\\bman\",ISR:\"israel\",ITA:\"italy\",JAM:\"jamaica\",JPN:\"japan\",JEY:\"jersey\",JOR:\"jordan\",KAZ:\"kazak\",KEN:\"kenya|british.?east.?africa|east.?africa.?prot\",KIR:\"kiribati\",PRK:\"^(?=.*democrat|people|north|d.*p.*.r).*\\\\bkorea|dprk|korea.*(d.*p.*r)\",KWT:\"kuwait\",KGZ:\"kyrgyz|kirghiz\",LAO:\"\\\\blaos?\\\\b\",LVA:\"latvia\",LBN:\"lebanon\",LSO:\"lesotho|basuto\",LBR:\"liberia\",LBY:\"libya\",LIE:\"liechtenstein\",LTU:\"lithuania\",LUX:\"^(?!.*belg).*luxem\",MAC:\"maca(o|u)\",MDG:\"madagascar|malagasy\",MWI:\"malawi|nyasa\",MYS:\"malaysia\",MDV:\"maldive\",MLI:\"\\\\bmali\\\\b\",MLT:\"\\\\bmalta\",MHL:\"marshall\",MTQ:\"martinique\",MRT:\"mauritania\",MUS:\"mauritius\",MYT:\"\\\\bmayotte\",MEX:\"\\\\bmexic\",FSM:\"fed.*micronesia|micronesia.*fed\",MCO:\"monaco\",MNG:\"mongolia\",MNE:\"^(?!.*serbia).*montenegro\",MSR:\"montserrat\",MAR:\"morocco|\\\\bmaroc\",MOZ:\"mozambique\",MMR:\"myanmar|burma\",NAM:\"namibia\",NRU:\"nauru\",NPL:\"nepal\",NLD:\"^(?!.*\\\\bant)(?!.*\\\\bcarib).*netherlands\",ANT:\"^(?=.*\\\\bant).*(nether|dutch)\",NCL:\"new.?caledonia\",NZL:\"new.?zealand\",NIC:\"nicaragua\",NER:\"\\\\bniger(?!ia)\",NGA:\"nigeria\",NIU:\"niue\",NFK:\"norfolk\",MNP:\"mariana\",NOR:\"norway\",OMN:\"\\\\boman|trucial\",PAK:\"^(?!.*east).*paki?stan\",PLW:\"palau\",PSE:\"palestin|\\\\bgaza|west.?bank\",PAN:\"panama\",PNG:\"papua|new.?guinea\",PRY:\"paraguay\",PER:\"peru\",PHL:\"philippines\",PCN:\"pitcairn\",POL:\"poland\",PRT:\"portugal\",PRI:\"puerto.?rico\",QAT:\"qatar\",KOR:\"^(?!.*d.*p.*r)(?!.*democrat)(?!.*people)(?!.*north).*\\\\bkorea(?!.*d.*p.*r)\",MDA:\"moldov|b(a|e)ssarabia\",REU:\"r(e|\\xe9)union\",ROU:\"r(o|u|ou)mania\",RUS:\"\\\\brussia|soviet.?union|u\\\\.?s\\\\.?s\\\\.?r|socialist.?republics\",RWA:\"rwanda\",BLM:\"barth(e|\\xe9)lemy\",SHN:\"helena\",KNA:\"kitts|\\\\bnevis\",LCA:\"\\\\blucia\",MAF:\"^(?=.*collectivity).*martin|^(?=.*france).*martin(?!ique)|^(?=.*french).*martin(?!ique)\",SPM:\"miquelon\",VCT:\"vincent\",WSM:\"^(?!.*amer).*samoa\",SMR:\"san.?marino\",STP:\"\\\\bs(a|\\xe3)o.?tom(e|\\xe9)\",SAU:\"\\\\bsa\\\\w*.?arabia\",SEN:\"senegal\",SRB:\"^(?!.*monte).*serbia\",SYC:\"seychell\",SLE:\"sierra\",SGP:\"singapore\",SXM:\"^(?!.*martin)(?!.*saba).*maarten\",SVK:\"^(?!.*cze).*slovak\",SVN:\"slovenia\",SLB:\"solomon\",SOM:\"somali\",ZAF:\"south.africa|s\\\\\\\\..?africa\",SGS:\"south.?georgia|sandwich\",SSD:\"\\\\bs\\\\w*.?sudan\",ESP:\"spain\",LKA:\"sri.?lanka|ceylon\",SDN:\"^(?!.*\\\\bs(?!u)).*sudan\",SUR:\"surinam|dutch.?guiana\",SJM:\"svalbard\",SWZ:\"swaziland\",SWE:\"sweden\",CHE:\"switz|swiss\",SYR:\"syria\",TWN:\"taiwan|taipei|formosa|^(?!.*peo)(?=.*rep).*china\",TJK:\"tajik\",THA:\"thailand|\\\\bsiam\",MKD:\"macedonia|fyrom\",TLS:\"^(?=.*leste).*timor|^(?=.*east).*timor\",TGO:\"togo\",TKL:\"tokelau\",TON:\"tonga\",TTO:\"trinidad|tobago\",TUN:\"tunisia\",TUR:\"turkey\",TKM:\"turkmen\",TCA:\"turks\",TUV:\"tuvalu\",UGA:\"uganda\",UKR:\"ukrain\",ARE:\"emirates|^u\\\\.?a\\\\.?e\\\\.?$|united.?arab.?em\",GBR:\"united.?kingdom|britain|^u\\\\.?k\\\\.?$\",TZA:\"tanzania\",USA:\"united.?states\\\\b(?!.*islands)|\\\\bu\\\\.?s\\\\.?a\\\\.?\\\\b|^\\\\s*u\\\\.?s\\\\.?\\\\b(?!.*islands)\",UMI:\"minor.?outlying.?is\",URY:\"uruguay\",UZB:\"uzbek\",VUT:\"vanuatu|new.?hebrides\",VEN:\"venezuela\",VNM:\"^(?!.*republic).*viet.?nam|^(?=.*socialist).*viet.?nam\",VGB:\"^(?=.*\\\\bu\\\\.?\\\\s?k).*virgin|^(?=.*brit).*virgin|^(?=.*kingdom).*virgin\",VIR:\"^(?=.*\\\\bu\\\\.?\\\\s?s).*virgin|^(?=.*states).*virgin\",WLF:\"futuna|wallis\",ESH:\"western.sahara\",YEM:\"^(?!.*arab)(?!.*north)(?!.*sana)(?!.*peo)(?!.*dem)(?!.*south)(?!.*aden)(?!.*\\\\bp\\\\.?d\\\\.?r).*yemen\",YMD:\"^(?=.*peo).*yemen|^(?!.*rep)(?=.*dem).*yemen|^(?=.*south).*yemen|^(?=.*aden).*yemen|^(?=.*\\\\bp\\\\.?d\\\\.?r).*yemen\",YUG:\"yugoslavia\",ZMB:\"zambia|northern.?rhodesia\",EAZ:\"zanzibar\",ZWE:\"zimbabwe|^(?!.*northern).*rhodesia\"}},{}],123:[function(t,e,r){e.exports=[\"xx-small\",\"x-small\",\"small\",\"medium\",\"large\",\"x-large\",\"xx-large\",\"larger\",\"smaller\"]},{}],124:[function(t,e,r){e.exports=[\"normal\",\"condensed\",\"semi-condensed\",\"extra-condensed\",\"ultra-condensed\",\"expanded\",\"semi-expanded\",\"extra-expanded\",\"ultra-expanded\"]},{}],125:[function(t,e,r){e.exports=[\"normal\",\"italic\",\"oblique\"]},{}],126:[function(t,e,r){e.exports=[\"normal\",\"bold\",\"bolder\",\"lighter\",\"100\",\"200\",\"300\",\"400\",\"500\",\"600\",\"700\",\"800\",\"900\"]},{}],127:[function(t,e,r){\"use strict\";e.exports={parse:t(\"./parse\"),stringify:t(\"./stringify\")}},{\"./parse\":129,\"./stringify\":130}],128:[function(t,e,r){\"use strict\";var n=t(\"css-font-size-keywords\");e.exports={isSize:function(t){return/^[\\d\\.]/.test(t)||-1!==t.indexOf(\"/\")||-1!==n.indexOf(t)}}},{\"css-font-size-keywords\":123}],129:[function(t,e,r){\"use strict\";var n=t(\"unquote\"),i=t(\"css-global-keywords\"),a=t(\"css-system-font-keywords\"),o=t(\"css-font-weight-keywords\"),s=t(\"css-font-style-keywords\"),l=t(\"css-font-stretch-keywords\"),c=t(\"string-split-by\"),u=t(\"./lib/util\").isSize;e.exports=h;var f=h.cache={};function h(t){if(\"string\"!=typeof t)throw new Error(\"Font argument must be a string.\");if(f[t])return f[t];if(\"\"===t)throw new Error(\"Cannot parse an empty string.\");if(-1!==a.indexOf(t))return f[t]={system:t};for(var e,r={style:\"normal\",variant:\"normal\",weight:\"normal\",stretch:\"normal\",lineHeight:\"normal\",size:\"1rem\",family:[\"serif\"]},h=c(t,/\\s+/);e=h.shift();){if(-1!==i.indexOf(e))return[\"style\",\"variant\",\"weight\",\"stretch\"].forEach(function(t){r[t]=e}),f[t]=r;if(-1===s.indexOf(e))if(\"normal\"!==e&&\"small-caps\"!==e)if(-1===l.indexOf(e)){if(-1===o.indexOf(e)){if(u(e)){var d=c(e,\"/\");if(r.size=d[0],null!=d[1]?r.lineHeight=p(d[1]):\"/\"===h[0]&&(h.shift(),r.lineHeight=p(h.shift())),!h.length)throw new Error(\"Missing required font-family.\");return r.family=c(h.join(\" \"),/\\s*,\\s*/).map(n),f[t]=r}throw new Error(\"Unknown or unsupported font token: \"+e)}r.weight=e}else r.stretch=e;else r.variant=e;else r.style=e}throw new Error(\"Missing required font-size.\")}function p(t){var e=parseFloat(t);return e.toString()===t?e:t}},{\"./lib/util\":128,\"css-font-stretch-keywords\":124,\"css-font-style-keywords\":125,\"css-font-weight-keywords\":126,\"css-global-keywords\":131,\"css-system-font-keywords\":132,\"string-split-by\":505,unquote:525}],130:[function(t,e,r){\"use strict\";var n=t(\"pick-by-alias\"),i=t(\"./lib/util\").isSize,a=g(t(\"css-global-keywords\")),o=g(t(\"css-system-font-keywords\")),s=g(t(\"css-font-weight-keywords\")),l=g(t(\"css-font-style-keywords\")),c=g(t(\"css-font-stretch-keywords\")),u={normal:1,\"small-caps\":1},f={serif:1,\"sans-serif\":1,monospace:1,cursive:1,fantasy:1,\"system-ui\":1},h=\"1rem\",p=\"serif\";function d(t,e){if(t&&!e[t]&&!a[t])throw Error(\"Unknown keyword `\"+t+\"`\");return t}function g(t){for(var e={},r=0;r<t.length;r++)e[t[r]]=1;return e}e.exports=function(t){if((t=n(t,{style:\"style fontstyle fontStyle font-style slope distinction\",variant:\"variant font-variant fontVariant fontvariant var capitalization\",weight:\"weight w font-weight fontWeight fontweight\",stretch:\"stretch font-stretch fontStretch fontstretch width\",size:\"size s font-size fontSize fontsize height em emSize\",lineHeight:\"lh line-height lineHeight lineheight leading\",family:\"font family fontFamily font-family fontfamily type typeface face\",system:\"system reserved default global\"})).system)return t.system&&d(t.system,o),t.system;if(d(t.style,l),d(t.variant,u),d(t.weight,s),d(t.stretch,c),null==t.size&&(t.size=h),\"number\"==typeof t.size&&(t.size+=\"px\"),!i)throw Error(\"Bad size value `\"+t.size+\"`\");t.family||(t.family=p),Array.isArray(t.family)&&(t.family.length||(t.family=[p]),t.family=t.family.map(function(t){return f[t]?t:'\"'+t+'\"'}).join(\", \"));var e=[];return e.push(t.style),t.variant!==t.style&&e.push(t.variant),t.weight!==t.variant&&t.weight!==t.style&&e.push(t.weight),t.stretch!==t.weight&&t.stretch!==t.variant&&t.stretch!==t.style&&e.push(t.stretch),e.push(t.size+(null==t.lineHeight||\"normal\"===t.lineHeight||t.lineHeight+\"\"==\"1\"?\"\":\"/\"+t.lineHeight)),e.push(t.family),e.filter(Boolean).join(\" \")}},{\"./lib/util\":128,\"css-font-stretch-keywords\":124,\"css-font-style-keywords\":125,\"css-font-weight-keywords\":126,\"css-global-keywords\":131,\"css-system-font-keywords\":132,\"pick-by-alias\":448}],131:[function(t,e,r){e.exports=[\"inherit\",\"initial\",\"unset\"]},{}],132:[function(t,e,r){e.exports=[\"caption\",\"icon\",\"menu\",\"message-box\",\"small-caption\",\"status-bar\"]},{}],133:[function(t,e,r){\"use strict\";e.exports=function(t,e,r,n,i,a){var o=i-1,s=i*i,l=o*o,c=(1+2*i)*l,u=i*l,f=s*(3-2*i),h=s*o;if(t.length){a||(a=new Array(t.length));for(var p=t.length-1;p>=0;--p)a[p]=c*t[p]+u*e[p]+f*r[p]+h*n[p];return a}return c*t+u*e+f*r+h*n},e.exports.derivative=function(t,e,r,n,i,a){var o=6*i*i-6*i,s=3*i*i-4*i+1,l=-6*i*i+6*i,c=3*i*i-2*i;if(t.length){a||(a=new Array(t.length));for(var u=t.length-1;u>=0;--u)a[u]=o*t[u]+s*e[u]+l*r[u]+c*n[u];return a}return o*t+s*e+l*r[u]+c*n}},{}],134:[function(t,e,r){\"use strict\";var n=t(\"./lib/thunk.js\");function i(){this.argTypes=[],this.shimArgs=[],this.arrayArgs=[],this.arrayBlockIndices=[],this.scalarArgs=[],this.offsetArgs=[],this.offsetArgIndex=[],this.indexArgs=[],this.shapeArgs=[],this.funcName=\"\",this.pre=null,this.body=null,this.post=null,this.debug=!1}e.exports=function(t){var e=new i;e.pre=t.pre,e.body=t.body,e.post=t.post;var r=t.args.slice(0);e.argTypes=r;for(var a=0;a<r.length;++a){var o=r[a];if(\"array\"===o||\"object\"==typeof o&&o.blockIndices){if(e.argTypes[a]=\"array\",e.arrayArgs.push(a),e.arrayBlockIndices.push(o.blockIndices?o.blockIndices:0),e.shimArgs.push(\"array\"+a),a<e.pre.args.length&&e.pre.args[a].count>0)throw new Error(\"cwise: pre() block may not reference array args\");if(a<e.post.args.length&&e.post.args[a].count>0)throw new Error(\"cwise: post() block may not reference array args\")}else if(\"scalar\"===o)e.scalarArgs.push(a),e.shimArgs.push(\"scalar\"+a);else if(\"index\"===o){if(e.indexArgs.push(a),a<e.pre.args.length&&e.pre.args[a].count>0)throw new Error(\"cwise: pre() block may not reference array index\");if(a<e.body.args.length&&e.body.args[a].lvalue)throw new Error(\"cwise: body() block may not write to array index\");if(a<e.post.args.length&&e.post.args[a].count>0)throw new Error(\"cwise: post() block may not reference array index\")}else if(\"shape\"===o){if(e.shapeArgs.push(a),a<e.pre.args.length&&e.pre.args[a].lvalue)throw new Error(\"cwise: pre() block may not write to array shape\");if(a<e.body.args.length&&e.body.args[a].lvalue)throw new Error(\"cwise: body() block may not write to array shape\");if(a<e.post.args.length&&e.post.args[a].lvalue)throw new Error(\"cwise: post() block may not write to array shape\")}else{if(\"object\"!=typeof o||!o.offset)throw new Error(\"cwise: Unknown argument type \"+r[a]);e.argTypes[a]=\"offset\",e.offsetArgs.push({array:o.array,offset:o.offset}),e.offsetArgIndex.push(a)}}if(e.arrayArgs.length<=0)throw new Error(\"cwise: No array arguments specified\");if(e.pre.args.length>r.length)throw new Error(\"cwise: Too many arguments in pre() block\");if(e.body.args.length>r.length)throw new Error(\"cwise: Too many arguments in body() block\");if(e.post.args.length>r.length)throw new Error(\"cwise: Too many arguments in post() block\");return e.debug=!!t.printCode||!!t.debug,e.funcName=t.funcName||\"cwise\",e.blockSize=t.blockSize||64,n(e)}},{\"./lib/thunk.js\":136}],135:[function(t,e,r){\"use strict\";var n=t(\"uniq\");function i(t,e,r){var n,i,a=t.length,o=e.arrayArgs.length,s=e.indexArgs.length>0,l=[],c=[],u=0,f=0;for(n=0;n<a;++n)c.push([\"i\",n,\"=0\"].join(\"\"));for(i=0;i<o;++i)for(n=0;n<a;++n)f=u,u=t[n],0===n?c.push([\"d\",i,\"s\",n,\"=t\",i,\"p\",u].join(\"\")):c.push([\"d\",i,\"s\",n,\"=(t\",i,\"p\",u,\"-s\",f,\"*t\",i,\"p\",f,\")\"].join(\"\"));for(c.length>0&&l.push(\"var \"+c.join(\",\")),n=a-1;n>=0;--n)u=t[n],l.push([\"for(i\",n,\"=0;i\",n,\"<s\",u,\";++i\",n,\"){\"].join(\"\"));for(l.push(r),n=0;n<a;++n){for(f=u,u=t[n],i=0;i<o;++i)l.push([\"p\",i,\"+=d\",i,\"s\",n].join(\"\"));s&&(n>0&&l.push([\"index[\",f,\"]-=s\",f].join(\"\")),l.push([\"++index[\",u,\"]\"].join(\"\"))),l.push(\"}\")}return l.join(\"\\n\")}function a(t,e,r){for(var n=t.body,i=[],a=[],o=0;o<t.args.length;++o){var s=t.args[o];if(!(s.count<=0)){var l=new RegExp(s.name,\"g\"),c=\"\",u=e.arrayArgs.indexOf(o);switch(e.argTypes[o]){case\"offset\":var f=e.offsetArgIndex.indexOf(o);u=e.offsetArgs[f].array,c=\"+q\"+f;case\"array\":c=\"p\"+u+c;var h=\"l\"+o,p=\"a\"+u;if(0===e.arrayBlockIndices[u])1===s.count?\"generic\"===r[u]?s.lvalue?(i.push([\"var \",h,\"=\",p,\".get(\",c,\")\"].join(\"\")),n=n.replace(l,h),a.push([p,\".set(\",c,\",\",h,\")\"].join(\"\"))):n=n.replace(l,[p,\".get(\",c,\")\"].join(\"\")):n=n.replace(l,[p,\"[\",c,\"]\"].join(\"\")):\"generic\"===r[u]?(i.push([\"var \",h,\"=\",p,\".get(\",c,\")\"].join(\"\")),n=n.replace(l,h),s.lvalue&&a.push([p,\".set(\",c,\",\",h,\")\"].join(\"\"))):(i.push([\"var \",h,\"=\",p,\"[\",c,\"]\"].join(\"\")),n=n.replace(l,h),s.lvalue&&a.push([p,\"[\",c,\"]=\",h].join(\"\")));else{for(var d=[s.name],g=[c],v=0;v<Math.abs(e.arrayBlockIndices[u]);v++)d.push(\"\\\\s*\\\\[([^\\\\]]+)\\\\]\"),g.push(\"$\"+(v+1)+\"*t\"+u+\"b\"+v);if(l=new RegExp(d.join(\"\"),\"g\"),c=g.join(\"+\"),\"generic\"===r[u])throw new Error(\"cwise: Generic arrays not supported in combination with blocks!\");n=n.replace(l,[p,\"[\",c,\"]\"].join(\"\"))}break;case\"scalar\":n=n.replace(l,\"Y\"+e.scalarArgs.indexOf(o));break;case\"index\":n=n.replace(l,\"index\");break;case\"shape\":n=n.replace(l,\"shape\")}}}return[i.join(\"\\n\"),n,a.join(\"\\n\")].join(\"\\n\").trim()}e.exports=function(t,e){for(var r=e[1].length-Math.abs(t.arrayBlockIndices[0])|0,o=new Array(t.arrayArgs.length),s=new Array(t.arrayArgs.length),l=0;l<t.arrayArgs.length;++l)s[l]=e[2*l],o[l]=e[2*l+1];var c=[],u=[],f=[],h=[],p=[];for(l=0;l<t.arrayArgs.length;++l){t.arrayBlockIndices[l]<0?(f.push(0),h.push(r),c.push(r),u.push(r+t.arrayBlockIndices[l])):(f.push(t.arrayBlockIndices[l]),h.push(t.arrayBlockIndices[l]+r),c.push(0),u.push(t.arrayBlockIndices[l]));for(var d=[],g=0;g<o[l].length;g++)f[l]<=o[l][g]&&o[l][g]<h[l]&&d.push(o[l][g]-f[l]);p.push(d)}var v=[\"SS\"],m=[\"'use strict'\"],y=[];for(g=0;g<r;++g)y.push([\"s\",g,\"=SS[\",g,\"]\"].join(\"\"));for(l=0;l<t.arrayArgs.length;++l){for(v.push(\"a\"+l),v.push(\"t\"+l),v.push(\"p\"+l),g=0;g<r;++g)y.push([\"t\",l,\"p\",g,\"=t\",l,\"[\",f[l]+g,\"]\"].join(\"\"));for(g=0;g<Math.abs(t.arrayBlockIndices[l]);++g)y.push([\"t\",l,\"b\",g,\"=t\",l,\"[\",c[l]+g,\"]\"].join(\"\"))}for(l=0;l<t.scalarArgs.length;++l)v.push(\"Y\"+l);if(t.shapeArgs.length>0&&y.push(\"shape=SS.slice(0)\"),t.indexArgs.length>0){var x=new Array(r);for(l=0;l<r;++l)x[l]=\"0\";y.push([\"index=[\",x.join(\",\"),\"]\"].join(\"\"))}for(l=0;l<t.offsetArgs.length;++l){var b=t.offsetArgs[l],_=[];for(g=0;g<b.offset.length;++g)0!==b.offset[g]&&(1===b.offset[g]?_.push([\"t\",b.array,\"p\",g].join(\"\")):_.push([b.offset[g],\"*t\",b.array,\"p\",g].join(\"\")));0===_.length?y.push(\"q\"+l+\"=0\"):y.push([\"q\",l,\"=\",_.join(\"+\")].join(\"\"))}var w=n([].concat(t.pre.thisVars).concat(t.body.thisVars).concat(t.post.thisVars));for((y=y.concat(w)).length>0&&m.push(\"var \"+y.join(\",\")),l=0;l<t.arrayArgs.length;++l)m.push(\"p\"+l+\"|=0\");t.pre.body.length>3&&m.push(a(t.pre,t,s));var k=a(t.body,t,s),M=function(t){for(var e=0,r=t[0].length;e<r;){for(var n=1;n<t.length;++n)if(t[n][e]!==t[0][e])return e;++e}return e}(p);M<r?m.push(function(t,e,r,n){for(var a=e.length,o=r.arrayArgs.length,s=r.blockSize,l=r.indexArgs.length>0,c=[],u=0;u<o;++u)c.push([\"var offset\",u,\"=p\",u].join(\"\"));for(u=t;u<a;++u)c.push([\"for(var j\"+u+\"=SS[\",e[u],\"]|0;j\",u,\">0;){\"].join(\"\")),c.push([\"if(j\",u,\"<\",s,\"){\"].join(\"\")),c.push([\"s\",e[u],\"=j\",u].join(\"\")),c.push([\"j\",u,\"=0\"].join(\"\")),c.push([\"}else{s\",e[u],\"=\",s].join(\"\")),c.push([\"j\",u,\"-=\",s,\"}\"].join(\"\")),l&&c.push([\"index[\",e[u],\"]=j\",u].join(\"\"));for(u=0;u<o;++u){for(var f=[\"offset\"+u],h=t;h<a;++h)f.push([\"j\",h,\"*t\",u,\"p\",e[h]].join(\"\"));c.push([\"p\",u,\"=(\",f.join(\"+\"),\")\"].join(\"\"))}for(c.push(i(e,r,n)),u=t;u<a;++u)c.push(\"}\");return c.join(\"\\n\")}(M,p[0],t,k)):m.push(i(p[0],t,k)),t.post.body.length>3&&m.push(a(t.post,t,s)),t.debug&&console.log(\"-----Generated cwise routine for \",e,\":\\n\"+m.join(\"\\n\")+\"\\n----------\");var A=[t.funcName||\"unnamed\",\"_cwise_loop_\",o[0].join(\"s\"),\"m\",M,function(t){for(var e=new Array(t.length),r=!0,n=0;n<t.length;++n){var i=t[n],a=i.match(/\\d+/);a=a?a[0]:\"\",0===i.charAt(0)?e[n]=\"u\"+i.charAt(1)+a:e[n]=i.charAt(0)+a,n>0&&(r=r&&e[n]===e[n-1])}return r?e[0]:e.join(\"\")}(s)].join(\"\");return new Function([\"function \",A,\"(\",v.join(\",\"),\"){\",m.join(\"\\n\"),\"} return \",A].join(\"\"))()}},{uniq:524}],136:[function(t,e,r){\"use strict\";var n=t(\"./compile.js\");e.exports=function(t){var e=[\"'use strict'\",\"var CACHED={}\"],r=[],i=t.funcName+\"_cwise_thunk\";e.push([\"return function \",i,\"(\",t.shimArgs.join(\",\"),\"){\"].join(\"\"));for(var a=[],o=[],s=[[\"array\",t.arrayArgs[0],\".shape.slice(\",Math.max(0,t.arrayBlockIndices[0]),t.arrayBlockIndices[0]<0?\",\"+t.arrayBlockIndices[0]+\")\":\")\"].join(\"\")],l=[],c=[],u=0;u<t.arrayArgs.length;++u){var f=t.arrayArgs[u];r.push([\"t\",f,\"=array\",f,\".dtype,\",\"r\",f,\"=array\",f,\".order\"].join(\"\")),a.push(\"t\"+f),a.push(\"r\"+f),o.push(\"t\"+f),o.push(\"r\"+f+\".join()\"),s.push(\"array\"+f+\".data\"),s.push(\"array\"+f+\".stride\"),s.push(\"array\"+f+\".offset|0\"),u>0&&(l.push(\"array\"+t.arrayArgs[0]+\".shape.length===array\"+f+\".shape.length+\"+(Math.abs(t.arrayBlockIndices[0])-Math.abs(t.arrayBlockIndices[u]))),c.push(\"array\"+t.arrayArgs[0]+\".shape[shapeIndex+\"+Math.max(0,t.arrayBlockIndices[0])+\"]===array\"+f+\".shape[shapeIndex+\"+Math.max(0,t.arrayBlockIndices[u])+\"]\"))}for(t.arrayArgs.length>1&&(e.push(\"if (!(\"+l.join(\" && \")+\")) throw new Error('cwise: Arrays do not all have the same dimensionality!')\"),e.push(\"for(var shapeIndex=array\"+t.arrayArgs[0]+\".shape.length-\"+Math.abs(t.arrayBlockIndices[0])+\"; shapeIndex--\\x3e0;) {\"),e.push(\"if (!(\"+c.join(\" && \")+\")) throw new Error('cwise: Arrays do not all have the same shape!')\"),e.push(\"}\")),u=0;u<t.scalarArgs.length;++u)s.push(\"scalar\"+t.scalarArgs[u]);return r.push([\"type=[\",o.join(\",\"),\"].join()\"].join(\"\")),r.push(\"proc=CACHED[type]\"),e.push(\"var \"+r.join(\",\")),e.push([\"if(!proc){\",\"CACHED[type]=proc=compile([\",a.join(\",\"),\"])}\",\"return proc(\",s.join(\",\"),\")}\"].join(\"\")),t.debug&&console.log(\"-----Generated thunk:\\n\"+e.join(\"\\n\")+\"\\n----------\"),new Function(\"compile\",e.join(\"\\n\"))(n.bind(void 0,t))}},{\"./compile.js\":135}],137:[function(t,e,r){e.exports=t(\"cwise-compiler\")},{\"cwise-compiler\":134}],138:[function(t,e,r){\"use strict\";var n,i=t(\"es5-ext/object/copy\"),a=t(\"es5-ext/object/normalize-options\"),o=t(\"es5-ext/object/valid-callable\"),s=t(\"es5-ext/object/map\"),l=t(\"es5-ext/object/valid-callable\"),c=t(\"es5-ext/object/valid-value\"),u=Function.prototype.bind,f=Object.defineProperty,h=Object.prototype.hasOwnProperty;n=function(t,e,r){var n,a=c(e)&&l(e.value);return delete(n=i(e)).writable,delete n.value,n.get=function(){return!r.overwriteDefinition&&h.call(this,t)?a:(e.value=u.call(a,r.resolveContext?r.resolveContext(this):this),f(this,t,e),this[t])},n},e.exports=function(t){var e=a(arguments[1]);return null!=e.resolveContext&&o(e.resolveContext),s(t,function(t,r){return n(r,t,e)})}},{\"es5-ext/object/copy\":174,\"es5-ext/object/map\":183,\"es5-ext/object/normalize-options\":184,\"es5-ext/object/valid-callable\":188,\"es5-ext/object/valid-value\":190}],139:[function(t,e,r){\"use strict\";var n=t(\"es5-ext/object/assign\"),i=t(\"es5-ext/object/normalize-options\"),a=t(\"es5-ext/object/is-callable\"),o=t(\"es5-ext/string/#/contains\");(e.exports=function(t,e){var r,a,s,l,c;return arguments.length<2||\"string\"!=typeof t?(l=e,e=t,t=null):l=arguments[2],null==t?(r=s=!0,a=!1):(r=o.call(t,\"c\"),a=o.call(t,\"e\"),s=o.call(t,\"w\")),c={value:e,configurable:r,enumerable:a,writable:s},l?n(i(l),c):c}).gs=function(t,e,r){var s,l,c,u;return\"string\"!=typeof t?(c=r,r=e,e=t,t=null):c=arguments[3],null==e?e=void 0:a(e)?null==r?r=void 0:a(r)||(c=r,r=void 0):(c=e,e=r=void 0),null==t?(s=!0,l=!1):(s=o.call(t,\"c\"),l=o.call(t,\"e\")),u={get:e,set:r,configurable:s,enumerable:l},c?n(i(c),u):u}},{\"es5-ext/object/assign\":171,\"es5-ext/object/is-callable\":177,\"es5-ext/object/normalize-options\":184,\"es5-ext/string/#/contains\":191}],140:[function(t,e,r){var n;n=this,function(t){\"use strict\";function e(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function r(t){var r;return 1===t.length&&(r=t,t=function(t,n){return e(r(t),n)}),{left:function(e,r,n,i){for(null==n&&(n=0),null==i&&(i=e.length);n<i;){var a=n+i>>>1;t(e[a],r)<0?n=a+1:i=a}return n},right:function(e,r,n,i){for(null==n&&(n=0),null==i&&(i=e.length);n<i;){var a=n+i>>>1;t(e[a],r)>0?i=a:n=a+1}return n}}}var n=r(e),i=n.right,a=n.left;function o(t,e){return[t,e]}function s(t){return null===t?NaN:+t}function l(t,e){var r,n,i=t.length,a=0,o=-1,l=0,c=0;if(null==e)for(;++o<i;)isNaN(r=s(t[o]))||(c+=(n=r-l)*(r-(l+=n/++a)));else for(;++o<i;)isNaN(r=s(e(t[o],o,t)))||(c+=(n=r-l)*(r-(l+=n/++a)));if(a>1)return c/(a-1)}function c(t,e){var r=l(t,e);return r?Math.sqrt(r):r}function u(t,e){var r,n,i,a=t.length,o=-1;if(null==e){for(;++o<a;)if(null!=(r=t[o])&&r>=r)for(n=i=r;++o<a;)null!=(r=t[o])&&(n>r&&(n=r),i<r&&(i=r))}else for(;++o<a;)if(null!=(r=e(t[o],o,t))&&r>=r)for(n=i=r;++o<a;)null!=(r=e(t[o],o,t))&&(n>r&&(n=r),i<r&&(i=r));return[n,i]}var f=Array.prototype,h=f.slice,p=f.map;function d(t){return function(){return t}}function g(t){return t}function v(t,e,r){t=+t,e=+e,r=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+r;for(var n=-1,i=0|Math.max(0,Math.ceil((e-t)/r)),a=new Array(i);++n<i;)a[n]=t+n*r;return a}var m=Math.sqrt(50),y=Math.sqrt(10),x=Math.sqrt(2);function b(t,e,r){var n=(e-t)/Math.max(0,r),i=Math.floor(Math.log(n)/Math.LN10),a=n/Math.pow(10,i);return i>=0?(a>=m?10:a>=y?5:a>=x?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(a>=m?10:a>=y?5:a>=x?2:1)}function _(t,e,r){var n=Math.abs(e-t)/Math.max(0,r),i=Math.pow(10,Math.floor(Math.log(n)/Math.LN10)),a=n/i;return a>=m?i*=10:a>=y?i*=5:a>=x&&(i*=2),e<t?-i:i}function w(t){return Math.ceil(Math.log(t.length)/Math.LN2)+1}function k(t,e,r){if(null==r&&(r=s),n=t.length){if((e=+e)<=0||n<2)return+r(t[0],0,t);if(e>=1)return+r(t[n-1],n-1,t);var n,i=(n-1)*e,a=Math.floor(i),o=+r(t[a],a,t);return o+(+r(t[a+1],a+1,t)-o)*(i-a)}}function M(t,e){var r,n,i=t.length,a=-1;if(null==e){for(;++a<i;)if(null!=(r=t[a])&&r>=r)for(n=r;++a<i;)null!=(r=t[a])&&n>r&&(n=r)}else for(;++a<i;)if(null!=(r=e(t[a],a,t))&&r>=r)for(n=r;++a<i;)null!=(r=e(t[a],a,t))&&n>r&&(n=r);return n}function A(t){if(!(i=t.length))return[];for(var e=-1,r=M(t,T),n=new Array(r);++e<r;)for(var i,a=-1,o=n[e]=new Array(i);++a<i;)o[a]=t[a][e];return n}function T(t){return t.length}t.bisect=i,t.bisectRight=i,t.bisectLeft=a,t.ascending=e,t.bisector=r,t.cross=function(t,e,r){var n,i,a,s,l=t.length,c=e.length,u=new Array(l*c);for(null==r&&(r=o),n=a=0;n<l;++n)for(s=t[n],i=0;i<c;++i,++a)u[a]=r(s,e[i]);return u},t.descending=function(t,e){return e<t?-1:e>t?1:e>=t?0:NaN},t.deviation=c,t.extent=u,t.histogram=function(){var t=g,e=u,r=w;function n(n){var a,o,s=n.length,l=new Array(s);for(a=0;a<s;++a)l[a]=t(n[a],a,n);var c=e(l),u=c[0],f=c[1],h=r(l,u,f);Array.isArray(h)||(h=_(u,f,h),h=v(Math.ceil(u/h)*h,f,h));for(var p=h.length;h[0]<=u;)h.shift(),--p;for(;h[p-1]>f;)h.pop(),--p;var d,g=new Array(p+1);for(a=0;a<=p;++a)(d=g[a]=[]).x0=a>0?h[a-1]:u,d.x1=a<p?h[a]:f;for(a=0;a<s;++a)u<=(o=l[a])&&o<=f&&g[i(h,o,0,p)].push(n[a]);return g}return n.value=function(e){return arguments.length?(t=\"function\"==typeof e?e:d(e),n):t},n.domain=function(t){return arguments.length?(e=\"function\"==typeof t?t:d([t[0],t[1]]),n):e},n.thresholds=function(t){return arguments.length?(r=\"function\"==typeof t?t:Array.isArray(t)?d(h.call(t)):d(t),n):r},n},t.thresholdFreedmanDiaconis=function(t,r,n){return t=p.call(t,s).sort(e),Math.ceil((n-r)/(2*(k(t,.75)-k(t,.25))*Math.pow(t.length,-1/3)))},t.thresholdScott=function(t,e,r){return Math.ceil((r-e)/(3.5*c(t)*Math.pow(t.length,-1/3)))},t.thresholdSturges=w,t.max=function(t,e){var r,n,i=t.length,a=-1;if(null==e){for(;++a<i;)if(null!=(r=t[a])&&r>=r)for(n=r;++a<i;)null!=(r=t[a])&&r>n&&(n=r)}else for(;++a<i;)if(null!=(r=e(t[a],a,t))&&r>=r)for(n=r;++a<i;)null!=(r=e(t[a],a,t))&&r>n&&(n=r);return n},t.mean=function(t,e){var r,n=t.length,i=n,a=-1,o=0;if(null==e)for(;++a<n;)isNaN(r=s(t[a]))?--i:o+=r;else for(;++a<n;)isNaN(r=s(e(t[a],a,t)))?--i:o+=r;if(i)return o/i},t.median=function(t,r){var n,i=t.length,a=-1,o=[];if(null==r)for(;++a<i;)isNaN(n=s(t[a]))||o.push(n);else for(;++a<i;)isNaN(n=s(r(t[a],a,t)))||o.push(n);return k(o.sort(e),.5)},t.merge=function(t){for(var e,r,n,i=t.length,a=-1,o=0;++a<i;)o+=t[a].length;for(r=new Array(o);--i>=0;)for(e=(n=t[i]).length;--e>=0;)r[--o]=n[e];return r},t.min=M,t.pairs=function(t,e){null==e&&(e=o);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r<n;)a[r]=e(i,i=t[++r]);return a},t.permute=function(t,e){for(var r=e.length,n=new Array(r);r--;)n[r]=t[e[r]];return n},t.quantile=k,t.range=v,t.scan=function(t,r){if(n=t.length){var n,i,a=0,o=0,s=t[o];for(null==r&&(r=e);++a<n;)(r(i=t[a],s)<0||0!==r(s,s))&&(s=i,o=a);return 0===r(s,s)?o:void 0}},t.shuffle=function(t,e,r){for(var n,i,a=(null==r?t.length:r)-(e=null==e?0:+e);a;)i=Math.random()*a--|0,n=t[a+e],t[a+e]=t[i+e],t[i+e]=n;return t},t.sum=function(t,e){var r,n=t.length,i=-1,a=0;if(null==e)for(;++i<n;)(r=+t[i])&&(a+=r);else for(;++i<n;)(r=+e(t[i],i,t))&&(a+=r);return a},t.ticks=function(t,e,r){var n,i,a,o,s=-1;if(r=+r,(t=+t)==(e=+e)&&r>0)return[t];if((n=e<t)&&(i=t,t=e,e=i),0===(o=b(t,e,r))||!isFinite(o))return[];if(o>0)for(t=Math.ceil(t/o),e=Math.floor(e/o),a=new Array(i=Math.ceil(e-t+1));++s<i;)a[s]=(t+s)*o;else for(t=Math.floor(t*o),e=Math.ceil(e*o),a=new Array(i=Math.ceil(t-e+1));++s<i;)a[s]=(t-s)/o;return n&&a.reverse(),a},t.tickIncrement=b,t.tickStep=_,t.transpose=A,t.variance=l,t.zip=function(){return A(arguments)},Object.defineProperty(t,\"__esModule\",{value:!0})}(\"object\"==typeof r&&\"undefined\"!=typeof e?r:n.d3=n.d3||{})},{}],141:[function(t,e,r){var n;n=this,function(t){\"use strict\";function e(){}function r(t,r){var n=new e;if(t instanceof e)t.each(function(t,e){n.set(e,t)});else if(Array.isArray(t)){var i,a=-1,o=t.length;if(null==r)for(;++a<o;)n.set(a,t[a]);else for(;++a<o;)n.set(r(i=t[a],a,t),i)}else if(t)for(var s in t)n.set(s,t[s]);return n}e.prototype=r.prototype={constructor:e,has:function(t){return\"$\"+t in this},get:function(t){return this[\"$\"+t]},set:function(t,e){return this[\"$\"+t]=e,this},remove:function(t){var e=\"$\"+t;return e in this&&delete this[e]},clear:function(){for(var t in this)\"$\"===t[0]&&delete this[t]},keys:function(){var t=[];for(var e in this)\"$\"===e[0]&&t.push(e.slice(1));return t},values:function(){var t=[];for(var e in this)\"$\"===e[0]&&t.push(this[e]);return t},entries:function(){var t=[];for(var e in this)\"$\"===e[0]&&t.push({key:e.slice(1),value:this[e]});return t},size:function(){var t=0;for(var e in this)\"$\"===e[0]&&++t;return t},empty:function(){for(var t in this)if(\"$\"===t[0])return!1;return!0},each:function(t){for(var e in this)\"$\"===e[0]&&t(this[e],e.slice(1),this)}};function n(){return{}}function i(t,e,r){t[e]=r}function a(){return r()}function o(t,e,r){t.set(e,r)}function s(){}var l=r.prototype;function c(t,e){var r=new s;if(t instanceof s)t.each(function(t){r.add(t)});else if(t){var n=-1,i=t.length;if(null==e)for(;++n<i;)r.add(t[n]);else for(;++n<i;)r.add(e(t[n],n,t))}return r}s.prototype=c.prototype={constructor:s,has:l.has,add:function(t){return this[\"$\"+(t+=\"\")]=t,this},remove:l.remove,clear:l.clear,values:l.keys,size:l.size,empty:l.empty,each:l.each};t.nest=function(){var t,e,s,l=[],c=[];function u(n,i,a,o){if(i>=l.length)return null!=t&&n.sort(t),null!=e?e(n):n;for(var s,c,f,h=-1,p=n.length,d=l[i++],g=r(),v=a();++h<p;)(f=g.get(s=d(c=n[h])+\"\"))?f.push(c):g.set(s,[c]);return g.each(function(t,e){o(v,e,u(t,i,a,o))}),v}return s={object:function(t){return u(t,0,n,i)},map:function(t){return u(t,0,a,o)},entries:function(t){return function t(r,n){if(++n>l.length)return r;var i,a=c[n-1];return null!=e&&n>=l.length?i=r.entries():(i=[],r.each(function(e,r){i.push({key:r,values:t(e,n)})})),null!=a?i.sort(function(t,e){return a(t.key,e.key)}):i}(u(t,0,a,o),0)},key:function(t){return l.push(t),s},sortKeys:function(t){return c[l.length-1]=t,s},sortValues:function(e){return t=e,s},rollup:function(t){return e=t,s}}},t.set=c,t.map=r,t.keys=function(t){var e=[];for(var r in t)e.push(r);return e},t.values=function(t){var e=[];for(var r in t)e.push(t[r]);return e},t.entries=function(t){var e=[];for(var r in t)e.push({key:r,value:t[r]});return e},Object.defineProperty(t,\"__esModule\",{value:!0})}(\"object\"==typeof r&&\"undefined\"!=typeof e?r:n.d3=n.d3||{})},{}],142:[function(t,e,r){var n;n=this,function(t){\"use strict\";function e(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function r(t,e){var r=Object.create(t.prototype);for(var n in e)r[n]=e[n];return r}function n(){}var i=\"\\\\s*([+-]?\\\\d+)\\\\s*\",a=\"\\\\s*([+-]?\\\\d*\\\\.?\\\\d+(?:[eE][+-]?\\\\d+)?)\\\\s*\",o=\"\\\\s*([+-]?\\\\d*\\\\.?\\\\d+(?:[eE][+-]?\\\\d+)?)%\\\\s*\",s=/^#([0-9a-f]{3})$/,l=/^#([0-9a-f]{6})$/,c=new RegExp(\"^rgb\\\\(\"+[i,i,i]+\"\\\\)$\"),u=new RegExp(\"^rgb\\\\(\"+[o,o,o]+\"\\\\)$\"),f=new RegExp(\"^rgba\\\\(\"+[i,i,i,a]+\"\\\\)$\"),h=new RegExp(\"^rgba\\\\(\"+[o,o,o,a]+\"\\\\)$\"),p=new RegExp(\"^hsl\\\\(\"+[a,o,o]+\"\\\\)$\"),d=new RegExp(\"^hsla\\\\(\"+[a,o,o,a]+\"\\\\)$\"),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};function v(t){var e;return t=(t+\"\").trim().toLowerCase(),(e=s.exec(t))?new _((e=parseInt(e[1],16))>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):(e=l.exec(t))?m(parseInt(e[1],16)):(e=c.exec(t))?new _(e[1],e[2],e[3],1):(e=u.exec(t))?new _(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=f.exec(t))?y(e[1],e[2],e[3],e[4]):(e=h.exec(t))?y(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=p.exec(t))?k(e[1],e[2]/100,e[3]/100,1):(e=d.exec(t))?k(e[1],e[2]/100,e[3]/100,e[4]):g.hasOwnProperty(t)?m(g[t]):\"transparent\"===t?new _(NaN,NaN,NaN,0):null}function m(t){return new _(t>>16&255,t>>8&255,255&t,1)}function y(t,e,r,n){return n<=0&&(t=e=r=NaN),new _(t,e,r,n)}function x(t){return t instanceof n||(t=v(t)),t?new _((t=t.rgb()).r,t.g,t.b,t.opacity):new _}function b(t,e,r,n){return 1===arguments.length?x(t):new _(t,e,r,null==n?1:n)}function _(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}function w(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?\"0\":\"\")+t.toString(16)}function k(t,e,r,n){return n<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new A(t,e,r,n)}function M(t,e,r,i){return 1===arguments.length?function(t){if(t instanceof A)return new A(t.h,t.s,t.l,t.opacity);if(t instanceof n||(t=v(t)),!t)return new A;if(t instanceof A)return t;var e=(t=t.rgb()).r/255,r=t.g/255,i=t.b/255,a=Math.min(e,r,i),o=Math.max(e,r,i),s=NaN,l=o-a,c=(o+a)/2;return l?(s=e===o?(r-i)/l+6*(r<i):r===o?(i-e)/l+2:(e-r)/l+4,l/=c<.5?o+a:2-o-a,s*=60):l=c>0&&c<1?0:s,new A(s,l,c,t.opacity)}(t):new A(t,e,r,null==i?1:i)}function A(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}function T(t,e,r){return 255*(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)}e(n,v,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+\"\"}}),e(_,b,r(n,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new _(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new _(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},hex:function(){return\"#\"+w(this.r)+w(this.g)+w(this.b)},toString:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?\"rgb(\":\"rgba(\")+Math.max(0,Math.min(255,Math.round(this.r)||0))+\", \"+Math.max(0,Math.min(255,Math.round(this.g)||0))+\", \"+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?\")\":\", \"+t+\")\")}})),e(A,M,r(n,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new A(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new A(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*e,i=2*r-n;return new _(T(t>=240?t-240:t+120,i,n),T(t,i,n),T(t<120?t+240:t-120,i,n),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var S=Math.PI/180,E=180/Math.PI,C=.96422,L=1,z=.82521,O=4/29,I=6/29,P=3*I*I,D=I*I*I;function R(t){if(t instanceof F)return new F(t.l,t.a,t.b,t.opacity);if(t instanceof G){if(isNaN(t.h))return new F(t.l,0,0,t.opacity);var e=t.h*S;return new F(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}t instanceof _||(t=x(t));var r,n,i=U(t.r),a=U(t.g),o=U(t.b),s=N((.2225045*i+.7168786*a+.0606169*o)/L);return i===a&&a===o?r=n=s:(r=N((.4360747*i+.3850649*a+.1430804*o)/C),n=N((.0139322*i+.0971045*a+.7141733*o)/z)),new F(116*s-16,500*(r-s),200*(s-n),t.opacity)}function B(t,e,r,n){return 1===arguments.length?R(t):new F(t,e,r,null==n?1:n)}function F(t,e,r,n){this.l=+t,this.a=+e,this.b=+r,this.opacity=+n}function N(t){return t>D?Math.pow(t,1/3):t/P+O}function j(t){return t>I?t*t*t:P*(t-O)}function V(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function U(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function q(t){if(t instanceof G)return new G(t.h,t.c,t.l,t.opacity);if(t instanceof F||(t=R(t)),0===t.a&&0===t.b)return new G(NaN,0,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*E;return new G(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function H(t,e,r,n){return 1===arguments.length?q(t):new G(t,e,r,null==n?1:n)}function G(t,e,r,n){this.h=+t,this.c=+e,this.l=+r,this.opacity=+n}e(F,B,r(n,{brighter:function(t){return new F(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new F(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,r=isNaN(this.b)?t:t-this.b/200;return new _(V(3.1338561*(e=C*j(e))-1.6168667*(t=L*j(t))-.4906146*(r=z*j(r))),V(-.9787684*e+1.9161415*t+.033454*r),V(.0719453*e-.2289914*t+1.4052427*r),this.opacity)}})),e(G,H,r(n,{brighter:function(t){return new G(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new G(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return R(this).rgb()}}));var W=-.14861,Y=1.78277,X=-.29227,Z=-.90649,$=1.97294,J=$*Z,K=$*Y,Q=Y*X-Z*W;function tt(t,e,r,n){return 1===arguments.length?function(t){if(t instanceof et)return new et(t.h,t.s,t.l,t.opacity);t instanceof _||(t=x(t));var e=t.r/255,r=t.g/255,n=t.b/255,i=(Q*n+J*e-K*r)/(Q+J-K),a=n-i,o=($*(r-i)-X*a)/Z,s=Math.sqrt(o*o+a*a)/($*i*(1-i)),l=s?Math.atan2(o,a)*E-120:NaN;return new et(l<0?l+360:l,s,i,t.opacity)}(t):new et(t,e,r,null==n?1:n)}function et(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}e(et,tt,r(n,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new et(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new et(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*S,e=+this.l,r=isNaN(this.s)?0:this.s*e*(1-e),n=Math.cos(t),i=Math.sin(t);return new _(255*(e+r*(W*n+Y*i)),255*(e+r*(X*n+Z*i)),255*(e+r*($*n)),this.opacity)}})),t.color=v,t.rgb=b,t.hsl=M,t.lab=B,t.hcl=H,t.lch=function(t,e,r,n){return 1===arguments.length?q(t):new G(r,e,t,null==n?1:n)},t.gray=function(t,e){return new F(t,0,0,null==e?1:e)},t.cubehelix=tt,Object.defineProperty(t,\"__esModule\",{value:!0})}(\"object\"==typeof r&&\"undefined\"!=typeof e?r:n.d3=n.d3||{})},{}],143:[function(t,e,r){var n;n=this,function(t){\"use strict\";var e={value:function(){}};function r(){for(var t,e=0,r=arguments.length,i={};e<r;++e){if(!(t=arguments[e]+\"\")||t in i)throw new Error(\"illegal type: \"+t);i[t]=[]}return new n(i)}function n(t){this._=t}function i(t,e){for(var r,n=0,i=t.length;n<i;++n)if((r=t[n]).name===e)return r.value}function a(t,r,n){for(var i=0,a=t.length;i<a;++i)if(t[i].name===r){t[i]=e,t=t.slice(0,i).concat(t.slice(i+1));break}return null!=n&&t.push({name:r,value:n}),t}n.prototype=r.prototype={constructor:n,on:function(t,e){var r,n,o=this._,s=(n=o,(t+\"\").trim().split(/^|\\s+/).map(function(t){var e=\"\",r=t.indexOf(\".\");if(r>=0&&(e=t.slice(r+1),t=t.slice(0,r)),t&&!n.hasOwnProperty(t))throw new Error(\"unknown type: \"+t);return{type:t,name:e}})),l=-1,c=s.length;if(!(arguments.length<2)){if(null!=e&&\"function\"!=typeof e)throw new Error(\"invalid callback: \"+e);for(;++l<c;)if(r=(t=s[l]).type)o[r]=a(o[r],t.name,e);else if(null==e)for(r in o)o[r]=a(o[r],t.name,null);return this}for(;++l<c;)if((r=(t=s[l]).type)&&(r=i(o[r],t.name)))return r},copy:function(){var t={},e=this._;for(var r in e)t[r]=e[r].slice();return new n(t)},call:function(t,e){if((r=arguments.length-2)>0)for(var r,n,i=new Array(r),a=0;a<r;++a)i[a]=arguments[a+2];if(!this._.hasOwnProperty(t))throw new Error(\"unknown type: \"+t);for(a=0,r=(n=this._[t]).length;a<r;++a)n[a].value.apply(e,i)},apply:function(t,e,r){if(!this._.hasOwnProperty(t))throw new Error(\"unknown type: \"+t);for(var n=this._[t],i=0,a=n.length;i<a;++i)n[i].value.apply(e,r)}},t.dispatch=r,Object.defineProperty(t,\"__esModule\",{value:!0})}(\"object\"==typeof r&&\"undefined\"!=typeof e?r:n.d3=n.d3||{})},{}],144:[function(t,e,r){var n,i;n=this,i=function(t,e,r,n,i){\"use strict\";var a=function(t){return function(){return t}},o=function(){return 1e-6*(Math.random()-.5)};function s(t){return t.x+t.vx}function l(t){return t.y+t.vy}function c(t){return t.index}function u(t,e){var r=t.get(e);if(!r)throw new Error(\"missing: \"+e);return r}function f(t){return t.x}function h(t){return t.y}var p=10,d=Math.PI*(3-Math.sqrt(5));t.forceCenter=function(t,e){var r;function n(){var n,i,a=r.length,o=0,s=0;for(n=0;n<a;++n)o+=(i=r[n]).x,s+=i.y;for(o=o/a-t,s=s/a-e,n=0;n<a;++n)(i=r[n]).x-=o,i.y-=s}return null==t&&(t=0),null==e&&(e=0),n.initialize=function(t){r=t},n.x=function(e){return arguments.length?(t=+e,n):t},n.y=function(t){return arguments.length?(e=+t,n):e},n},t.forceCollide=function(t){var r,n,i=1,c=1;function u(){for(var t,a,u,h,p,d,g,v=r.length,m=0;m<c;++m)for(a=e.quadtree(r,s,l).visitAfter(f),t=0;t<v;++t)u=r[t],d=n[u.index],g=d*d,h=u.x+u.vx,p=u.y+u.vy,a.visit(y);function y(t,e,r,n,a){var s=t.data,l=t.r,c=d+l;if(!s)return e>h+c||n<h-c||r>p+c||a<p-c;if(s.index>u.index){var f=h-s.x-s.vx,v=p-s.y-s.vy,m=f*f+v*v;m<c*c&&(0===f&&(m+=(f=o())*f),0===v&&(m+=(v=o())*v),m=(c-(m=Math.sqrt(m)))/m*i,u.vx+=(f*=m)*(c=(l*=l)/(g+l)),u.vy+=(v*=m)*c,s.vx-=f*(c=1-c),s.vy-=v*c)}}}function f(t){if(t.data)return t.r=n[t.data.index];for(var e=t.r=0;e<4;++e)t[e]&&t[e].r>t.r&&(t.r=t[e].r)}function h(){if(r){var e,i,a=r.length;for(n=new Array(a),e=0;e<a;++e)i=r[e],n[i.index]=+t(i,e,r)}}return\"function\"!=typeof t&&(t=a(null==t?1:+t)),u.initialize=function(t){r=t,h()},u.iterations=function(t){return arguments.length?(c=+t,u):c},u.strength=function(t){return arguments.length?(i=+t,u):i},u.radius=function(e){return arguments.length?(t=\"function\"==typeof e?e:a(+e),h(),u):t},u},t.forceLink=function(t){var e,n,i,s,l,f=c,h=function(t){return 1/Math.min(s[t.source.index],s[t.target.index])},p=a(30),d=1;function g(r){for(var i=0,a=t.length;i<d;++i)for(var s,c,u,f,h,p,g,v=0;v<a;++v)c=(s=t[v]).source,f=(u=s.target).x+u.vx-c.x-c.vx||o(),h=u.y+u.vy-c.y-c.vy||o(),f*=p=((p=Math.sqrt(f*f+h*h))-n[v])/p*r*e[v],h*=p,u.vx-=f*(g=l[v]),u.vy-=h*g,c.vx+=f*(g=1-g),c.vy+=h*g}function v(){if(i){var a,o,c=i.length,h=t.length,p=r.map(i,f);for(a=0,s=new Array(c);a<h;++a)(o=t[a]).index=a,\"object\"!=typeof o.source&&(o.source=u(p,o.source)),\"object\"!=typeof o.target&&(o.target=u(p,o.target)),s[o.source.index]=(s[o.source.index]||0)+1,s[o.target.index]=(s[o.target.index]||0)+1;for(a=0,l=new Array(h);a<h;++a)o=t[a],l[a]=s[o.source.index]/(s[o.source.index]+s[o.target.index]);e=new Array(h),m(),n=new Array(h),y()}}function m(){if(i)for(var r=0,n=t.length;r<n;++r)e[r]=+h(t[r],r,t)}function y(){if(i)for(var e=0,r=t.length;e<r;++e)n[e]=+p(t[e],e,t)}return null==t&&(t=[]),g.initialize=function(t){i=t,v()},g.links=function(e){return arguments.length?(t=e,v(),g):t},g.id=function(t){return arguments.length?(f=t,g):f},g.iterations=function(t){return arguments.length?(d=+t,g):d},g.strength=function(t){return arguments.length?(h=\"function\"==typeof t?t:a(+t),m(),g):h},g.distance=function(t){return arguments.length?(p=\"function\"==typeof t?t:a(+t),y(),g):p},g},t.forceManyBody=function(){var t,r,n,i,s=a(-30),l=1,c=1/0,u=.81;function p(i){var a,o=t.length,s=e.quadtree(t,f,h).visitAfter(g);for(n=i,a=0;a<o;++a)r=t[a],s.visit(v)}function d(){if(t){var e,r,n=t.length;for(i=new Array(n),e=0;e<n;++e)r=t[e],i[r.index]=+s(r,e,t)}}function g(t){var e,r,n,a,o,s=0,l=0;if(t.length){for(n=a=o=0;o<4;++o)(e=t[o])&&(r=Math.abs(e.value))&&(s+=e.value,l+=r,n+=r*e.x,a+=r*e.y);t.x=n/l,t.y=a/l}else{(e=t).x=e.data.x,e.y=e.data.y;do{s+=i[e.data.index]}while(e=e.next)}t.value=s}function v(t,e,a,s){if(!t.value)return!0;var f=t.x-r.x,h=t.y-r.y,p=s-e,d=f*f+h*h;if(p*p/u<d)return d<c&&(0===f&&(d+=(f=o())*f),0===h&&(d+=(h=o())*h),d<l&&(d=Math.sqrt(l*d)),r.vx+=f*t.value*n/d,r.vy+=h*t.value*n/d),!0;if(!(t.length||d>=c)){(t.data!==r||t.next)&&(0===f&&(d+=(f=o())*f),0===h&&(d+=(h=o())*h),d<l&&(d=Math.sqrt(l*d)));do{t.data!==r&&(p=i[t.data.index]*n/d,r.vx+=f*p,r.vy+=h*p)}while(t=t.next)}}return p.initialize=function(e){t=e,d()},p.strength=function(t){return arguments.length?(s=\"function\"==typeof t?t:a(+t),d(),p):s},p.distanceMin=function(t){return arguments.length?(l=t*t,p):Math.sqrt(l)},p.distanceMax=function(t){return arguments.length?(c=t*t,p):Math.sqrt(c)},p.theta=function(t){return arguments.length?(u=t*t,p):Math.sqrt(u)},p},t.forceRadial=function(t,e,r){var n,i,o,s=a(.1);function l(t){for(var a=0,s=n.length;a<s;++a){var l=n[a],c=l.x-e||1e-6,u=l.y-r||1e-6,f=Math.sqrt(c*c+u*u),h=(o[a]-f)*i[a]*t/f;l.vx+=c*h,l.vy+=u*h}}function c(){if(n){var e,r=n.length;for(i=new Array(r),o=new Array(r),e=0;e<r;++e)o[e]=+t(n[e],e,n),i[e]=isNaN(o[e])?0:+s(n[e],e,n)}}return\"function\"!=typeof t&&(t=a(+t)),null==e&&(e=0),null==r&&(r=0),l.initialize=function(t){n=t,c()},l.strength=function(t){return arguments.length?(s=\"function\"==typeof t?t:a(+t),c(),l):s},l.radius=function(e){return arguments.length?(t=\"function\"==typeof e?e:a(+e),c(),l):t},l.x=function(t){return arguments.length?(e=+t,l):e},l.y=function(t){return arguments.length?(r=+t,l):r},l},t.forceSimulation=function(t){var e,a=1,o=.001,s=1-Math.pow(o,1/300),l=0,c=.6,u=r.map(),f=i.timer(g),h=n.dispatch(\"tick\",\"end\");function g(){v(),h.call(\"tick\",e),a<o&&(f.stop(),h.call(\"end\",e))}function v(){var e,r,n=t.length;for(a+=(l-a)*s,u.each(function(t){t(a)}),e=0;e<n;++e)null==(r=t[e]).fx?r.x+=r.vx*=c:(r.x=r.fx,r.vx=0),null==r.fy?r.y+=r.vy*=c:(r.y=r.fy,r.vy=0)}function m(){for(var e,r=0,n=t.length;r<n;++r){if((e=t[r]).index=r,isNaN(e.x)||isNaN(e.y)){var i=p*Math.sqrt(r),a=r*d;e.x=i*Math.cos(a),e.y=i*Math.sin(a)}(isNaN(e.vx)||isNaN(e.vy))&&(e.vx=e.vy=0)}}function y(e){return e.initialize&&e.initialize(t),e}return null==t&&(t=[]),m(),e={tick:v,restart:function(){return f.restart(g),e},stop:function(){return f.stop(),e},nodes:function(r){return arguments.length?(t=r,m(),u.each(y),e):t},alpha:function(t){return arguments.length?(a=+t,e):a},alphaMin:function(t){return arguments.length?(o=+t,e):o},alphaDecay:function(t){return arguments.length?(s=+t,e):+s},alphaTarget:function(t){return arguments.length?(l=+t,e):l},velocityDecay:function(t){return arguments.length?(c=1-t,e):1-c},force:function(t,r){return arguments.length>1?(null==r?u.remove(t):u.set(t,y(r)),e):u.get(t)},find:function(e,r,n){var i,a,o,s,l,c=0,u=t.length;for(null==n?n=1/0:n*=n,c=0;c<u;++c)(o=(i=e-(s=t[c]).x)*i+(a=r-s.y)*a)<n&&(l=s,n=o);return l},on:function(t,r){return arguments.length>1?(h.on(t,r),e):h.on(t)}}},t.forceX=function(t){var e,r,n,i=a(.1);function o(t){for(var i,a=0,o=e.length;a<o;++a)(i=e[a]).vx+=(n[a]-i.x)*r[a]*t}function s(){if(e){var a,o=e.length;for(r=new Array(o),n=new Array(o),a=0;a<o;++a)r[a]=isNaN(n[a]=+t(e[a],a,e))?0:+i(e[a],a,e)}}return\"function\"!=typeof t&&(t=a(null==t?0:+t)),o.initialize=function(t){e=t,s()},o.strength=function(t){return arguments.length?(i=\"function\"==typeof t?t:a(+t),s(),o):i},o.x=function(e){return arguments.length?(t=\"function\"==typeof e?e:a(+e),s(),o):t},o},t.forceY=function(t){var e,r,n,i=a(.1);function o(t){for(var i,a=0,o=e.length;a<o;++a)(i=e[a]).vy+=(n[a]-i.y)*r[a]*t}function s(){if(e){var a,o=e.length;for(r=new Array(o),n=new Array(o),a=0;a<o;++a)r[a]=isNaN(n[a]=+t(e[a],a,e))?0:+i(e[a],a,e)}}return\"function\"!=typeof t&&(t=a(null==t?0:+t)),o.initialize=function(t){e=t,s()},o.strength=function(t){return arguments.length?(i=\"function\"==typeof t?t:a(+t),s(),o):i},o.y=function(e){return arguments.length?(t=\"function\"==typeof e?e:a(+e),s(),o):t},o},Object.defineProperty(t,\"__esModule\",{value:!0})},\"object\"==typeof r&&\"undefined\"!=typeof e?i(r,t(\"d3-quadtree\"),t(\"d3-collection\"),t(\"d3-dispatch\"),t(\"d3-timer\")):i(n.d3=n.d3||{},n.d3,n.d3,n.d3,n.d3)},{\"d3-collection\":141,\"d3-dispatch\":143,\"d3-quadtree\":146,\"d3-timer\":147}],145:[function(t,e,r){var n,i;n=this,i=function(t,e){\"use strict\";function r(t,e,r,n,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*r+(1+3*t+3*a-3*o)*n+o*i)/6}function n(t){var e=t.length-1;return function(n){var i=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),a=t[i],o=t[i+1],s=i>0?t[i-1]:2*a-o,l=i<e-1?t[i+2]:2*o-a;return r((n-i/e)*e,s,a,o,l)}}function i(t){var e=t.length;return function(n){var i=Math.floor(((n%=1)<0?++n:n)*e),a=t[(i+e-1)%e],o=t[i%e],s=t[(i+1)%e],l=t[(i+2)%e];return r((n-i/e)*e,a,o,s,l)}}function a(t){return function(){return t}}function o(t,e){return function(r){return t+r*e}}function s(t,e){var r=e-t;return r?o(t,r>180||r<-180?r-360*Math.round(r/360):r):a(isNaN(t)?e:t)}function l(t){return 1==(t=+t)?c:function(e,r){return r-e?function(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(n){return Math.pow(t+n*e,r)}}(e,r,t):a(isNaN(e)?r:e)}}function c(t,e){var r=e-t;return r?o(t,r):a(isNaN(t)?e:t)}var u=function t(r){var n=l(r);function i(t,r){var i=n((t=e.rgb(t)).r,(r=e.rgb(r)).r),a=n(t.g,r.g),o=n(t.b,r.b),s=c(t.opacity,r.opacity);return function(e){return t.r=i(e),t.g=a(e),t.b=o(e),t.opacity=s(e),t+\"\"}}return i.gamma=t,i}(1);function f(t){return function(r){var n,i,a=r.length,o=new Array(a),s=new Array(a),l=new Array(a);for(n=0;n<a;++n)i=e.rgb(r[n]),o[n]=i.r||0,s[n]=i.g||0,l[n]=i.b||0;return o=t(o),s=t(s),l=t(l),i.opacity=1,function(t){return i.r=o(t),i.g=s(t),i.b=l(t),i+\"\"}}}var h=f(n),p=f(i);function d(t,e){var r,n=e?e.length:0,i=t?Math.min(n,t.length):0,a=new Array(i),o=new Array(n);for(r=0;r<i;++r)a[r]=_(t[r],e[r]);for(;r<n;++r)o[r]=e[r];return function(t){for(r=0;r<i;++r)o[r]=a[r](t);return o}}function g(t,e){var r=new Date;return e-=t=+t,function(n){return r.setTime(t+e*n),r}}function v(t,e){return e-=t=+t,function(r){return t+e*r}}function m(t,e){var r,n={},i={};for(r in null!==t&&\"object\"==typeof t||(t={}),null!==e&&\"object\"==typeof e||(e={}),e)r in t?n[r]=_(t[r],e[r]):i[r]=e[r];return function(t){for(r in n)i[r]=n[r](t);return i}}var y=/[-+]?(?:\\d+\\.?\\d*|\\.?\\d+)(?:[eE][-+]?\\d+)?/g,x=new RegExp(y.source,\"g\");function b(t,e){var r,n,i,a=y.lastIndex=x.lastIndex=0,o=-1,s=[],l=[];for(t+=\"\",e+=\"\";(r=y.exec(t))&&(n=x.exec(e));)(i=n.index)>a&&(i=e.slice(a,i),s[o]?s[o]+=i:s[++o]=i),(r=r[0])===(n=n[0])?s[o]?s[o]+=n:s[++o]=n:(s[++o]=null,l.push({i:o,x:v(r,n)})),a=x.lastIndex;return a<e.length&&(i=e.slice(a),s[o]?s[o]+=i:s[++o]=i),s.length<2?l[0]?function(t){return function(e){return t(e)+\"\"}}(l[0].x):function(t){return function(){return t}}(e):(e=l.length,function(t){for(var r,n=0;n<e;++n)s[(r=l[n]).i]=r.x(t);return s.join(\"\")})}function _(t,r){var n,i=typeof r;return null==r||\"boolean\"===i?a(r):(\"number\"===i?v:\"string\"===i?(n=e.color(r))?(r=n,u):b:r instanceof e.color?u:r instanceof Date?g:Array.isArray(r)?d:\"function\"!=typeof r.valueOf&&\"function\"!=typeof r.toString||isNaN(r)?m:v)(t,r)}var w,k,M,A,T=180/Math.PI,S={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function E(t,e,r,n,i,a){var o,s,l;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(l=t*r+e*n)&&(r-=t*l,n-=e*l),(s=Math.sqrt(r*r+n*n))&&(r/=s,n/=s,l/=s),t*n<e*r&&(t=-t,e=-e,l=-l,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(e,t)*T,skewX:Math.atan(l)*T,scaleX:o,scaleY:s}}function C(t,e,r,n){function i(t){return t.length?t.pop()+\" \":\"\"}return function(a,o){var s=[],l=[];return a=t(a),o=t(o),function(t,n,i,a,o,s){if(t!==i||n!==a){var l=o.push(\"translate(\",null,e,null,r);s.push({i:l-4,x:v(t,i)},{i:l-2,x:v(n,a)})}else(i||a)&&o.push(\"translate(\"+i+e+a+r)}(a.translateX,a.translateY,o.translateX,o.translateY,s,l),function(t,e,r,a){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),a.push({i:r.push(i(r)+\"rotate(\",null,n)-2,x:v(t,e)})):e&&r.push(i(r)+\"rotate(\"+e+n)}(a.rotate,o.rotate,s,l),function(t,e,r,a){t!==e?a.push({i:r.push(i(r)+\"skewX(\",null,n)-2,x:v(t,e)}):e&&r.push(i(r)+\"skewX(\"+e+n)}(a.skewX,o.skewX,s,l),function(t,e,r,n,a,o){if(t!==r||e!==n){var s=a.push(i(a)+\"scale(\",null,\",\",null,\")\");o.push({i:s-4,x:v(t,r)},{i:s-2,x:v(e,n)})}else 1===r&&1===n||a.push(i(a)+\"scale(\"+r+\",\"+n+\")\")}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,s,l),a=o=null,function(t){for(var e,r=-1,n=l.length;++r<n;)s[(e=l[r]).i]=e.x(t);return s.join(\"\")}}}var L=C(function(t){return\"none\"===t?S:(w||(w=document.createElement(\"DIV\"),k=document.documentElement,M=document.defaultView),w.style.transform=t,t=M.getComputedStyle(k.appendChild(w),null).getPropertyValue(\"transform\"),k.removeChild(w),E(+(t=t.slice(7,-1).split(\",\"))[0],+t[1],+t[2],+t[3],+t[4],+t[5]))},\"px, \",\"px)\",\"deg)\"),z=C(function(t){return null==t?S:(A||(A=document.createElementNS(\"http://www.w3.org/2000/svg\",\"g\")),A.setAttribute(\"transform\",t),(t=A.transform.baseVal.consolidate())?E((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):S)},\", \",\")\",\")\"),O=Math.SQRT2,I=2,P=4,D=1e-12;function R(t){return((t=Math.exp(t))+1/t)/2}function B(t){return function(r,n){var i=t((r=e.hsl(r)).h,(n=e.hsl(n)).h),a=c(r.s,n.s),o=c(r.l,n.l),s=c(r.opacity,n.opacity);return function(t){return r.h=i(t),r.s=a(t),r.l=o(t),r.opacity=s(t),r+\"\"}}}var F=B(s),N=B(c);function j(t){return function(r,n){var i=t((r=e.hcl(r)).h,(n=e.hcl(n)).h),a=c(r.c,n.c),o=c(r.l,n.l),s=c(r.opacity,n.opacity);return function(t){return r.h=i(t),r.c=a(t),r.l=o(t),r.opacity=s(t),r+\"\"}}}var V=j(s),U=j(c);function q(t){return function r(n){function i(r,i){var a=t((r=e.cubehelix(r)).h,(i=e.cubehelix(i)).h),o=c(r.s,i.s),s=c(r.l,i.l),l=c(r.opacity,i.opacity);return function(t){return r.h=a(t),r.s=o(t),r.l=s(Math.pow(t,n)),r.opacity=l(t),r+\"\"}}return n=+n,i.gamma=r,i}(1)}var H=q(s),G=q(c);t.interpolate=_,t.interpolateArray=d,t.interpolateBasis=n,t.interpolateBasisClosed=i,t.interpolateDate=g,t.interpolateDiscrete=function(t){var e=t.length;return function(r){return t[Math.max(0,Math.min(e-1,Math.floor(r*e)))]}},t.interpolateHue=function(t,e){var r=s(+t,+e);return function(t){var e=r(t);return e-360*Math.floor(e/360)}},t.interpolateNumber=v,t.interpolateObject=m,t.interpolateRound=function(t,e){return e-=t=+t,function(r){return Math.round(t+e*r)}},t.interpolateString=b,t.interpolateTransformCss=L,t.interpolateTransformSvg=z,t.interpolateZoom=function(t,e){var r,n,i=t[0],a=t[1],o=t[2],s=e[0],l=e[1],c=e[2],u=s-i,f=l-a,h=u*u+f*f;if(h<D)n=Math.log(c/o)/O,r=function(t){return[i+t*u,a+t*f,o*Math.exp(O*t*n)]};else{var p=Math.sqrt(h),d=(c*c-o*o+P*h)/(2*o*I*p),g=(c*c-o*o-P*h)/(2*c*I*p),v=Math.log(Math.sqrt(d*d+1)-d),m=Math.log(Math.sqrt(g*g+1)-g);n=(m-v)/O,r=function(t){var e,r=t*n,s=R(v),l=o/(I*p)*(s*(e=O*r+v,((e=Math.exp(2*e))-1)/(e+1))-function(t){return((t=Math.exp(t))-1/t)/2}(v));return[i+l*u,a+l*f,o*s/R(O*r+v)]}}return r.duration=1e3*n,r},t.interpolateRgb=u,t.interpolateRgbBasis=h,t.interpolateRgbBasisClosed=p,t.interpolateHsl=F,t.interpolateHslLong=N,t.interpolateLab=function(t,r){var n=c((t=e.lab(t)).l,(r=e.lab(r)).l),i=c(t.a,r.a),a=c(t.b,r.b),o=c(t.opacity,r.opacity);return function(e){return t.l=n(e),t.a=i(e),t.b=a(e),t.opacity=o(e),t+\"\"}},t.interpolateHcl=V,t.interpolateHclLong=U,t.interpolateCubehelix=H,t.interpolateCubehelixLong=G,t.piecewise=function(t,e){for(var r=0,n=e.length-1,i=e[0],a=new Array(n<0?0:n);r<n;)a[r]=t(i,i=e[++r]);return function(t){var e=Math.max(0,Math.min(n-1,Math.floor(t*=n)));return a[e](t-e)}},t.quantize=function(t,e){for(var r=new Array(e),n=0;n<e;++n)r[n]=t(n/(e-1));return r},Object.defineProperty(t,\"__esModule\",{value:!0})},\"object\"==typeof r&&\"undefined\"!=typeof e?i(r,t(\"d3-color\")):i(n.d3=n.d3||{},n.d3)},{\"d3-color\":142}],146:[function(t,e,r){var n;n=this,function(t){\"use strict\";function e(t,e,r,n){if(isNaN(e)||isNaN(r))return t;var i,a,o,s,l,c,u,f,h,p=t._root,d={data:n},g=t._x0,v=t._y0,m=t._x1,y=t._y1;if(!p)return t._root=d,t;for(;p.length;)if((c=e>=(a=(g+m)/2))?g=a:m=a,(u=r>=(o=(v+y)/2))?v=o:y=o,i=p,!(p=p[f=u<<1|c]))return i[f]=d,t;if(s=+t._x.call(null,p.data),l=+t._y.call(null,p.data),e===s&&r===l)return d.next=p,i?i[f]=d:t._root=d,t;do{i=i?i[f]=new Array(4):t._root=new Array(4),(c=e>=(a=(g+m)/2))?g=a:m=a,(u=r>=(o=(v+y)/2))?v=o:y=o}while((f=u<<1|c)==(h=(l>=o)<<1|s>=a));return i[h]=p,i[f]=d,t}var r=function(t,e,r,n,i){this.node=t,this.x0=e,this.y0=r,this.x1=n,this.y1=i};function n(t){return t[0]}function i(t){return t[1]}function a(t,e,r){var a=new o(null==e?n:e,null==r?i:r,NaN,NaN,NaN,NaN);return null==t?a:a.addAll(t)}function o(t,e,r,n,i,a){this._x=t,this._y=e,this._x0=r,this._y0=n,this._x1=i,this._y1=a,this._root=void 0}function s(t){for(var e={data:t.data},r=e;t=t.next;)r=r.next={data:t.data};return e}var l=a.prototype=o.prototype;l.copy=function(){var t,e,r=new o(this._x,this._y,this._x0,this._y0,this._x1,this._y1),n=this._root;if(!n)return r;if(!n.length)return r._root=s(n),r;for(t=[{source:n,target:r._root=new Array(4)}];n=t.pop();)for(var i=0;i<4;++i)(e=n.source[i])&&(e.length?t.push({source:e,target:n.target[i]=new Array(4)}):n.target[i]=s(e));return r},l.add=function(t){var r=+this._x.call(null,t),n=+this._y.call(null,t);return e(this.cover(r,n),r,n,t)},l.addAll=function(t){var r,n,i,a,o=t.length,s=new Array(o),l=new Array(o),c=1/0,u=1/0,f=-1/0,h=-1/0;for(n=0;n<o;++n)isNaN(i=+this._x.call(null,r=t[n]))||isNaN(a=+this._y.call(null,r))||(s[n]=i,l[n]=a,i<c&&(c=i),i>f&&(f=i),a<u&&(u=a),a>h&&(h=a));for(f<c&&(c=this._x0,f=this._x1),h<u&&(u=this._y0,h=this._y1),this.cover(c,u).cover(f,h),n=0;n<o;++n)e(this,s[n],l[n],t[n]);return this},l.cover=function(t,e){if(isNaN(t=+t)||isNaN(e=+e))return this;var r=this._x0,n=this._y0,i=this._x1,a=this._y1;if(isNaN(r))i=(r=Math.floor(t))+1,a=(n=Math.floor(e))+1;else{if(!(r>t||t>i||n>e||e>a))return this;var o,s,l=i-r,c=this._root;switch(s=(e<(n+a)/2)<<1|t<(r+i)/2){case 0:do{(o=new Array(4))[s]=c,c=o}while(a=n+(l*=2),t>(i=r+l)||e>a);break;case 1:do{(o=new Array(4))[s]=c,c=o}while(a=n+(l*=2),(r=i-l)>t||e>a);break;case 2:do{(o=new Array(4))[s]=c,c=o}while(n=a-(l*=2),t>(i=r+l)||n>e);break;case 3:do{(o=new Array(4))[s]=c,c=o}while(n=a-(l*=2),(r=i-l)>t||n>e)}this._root&&this._root.length&&(this._root=c)}return this._x0=r,this._y0=n,this._x1=i,this._y1=a,this},l.data=function(){var t=[];return this.visit(function(e){if(!e.length)do{t.push(e.data)}while(e=e.next)}),t},l.extent=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},l.find=function(t,e,n){var i,a,o,s,l,c,u,f=this._x0,h=this._y0,p=this._x1,d=this._y1,g=[],v=this._root;for(v&&g.push(new r(v,f,h,p,d)),null==n?n=1/0:(f=t-n,h=e-n,p=t+n,d=e+n,n*=n);c=g.pop();)if(!(!(v=c.node)||(a=c.x0)>p||(o=c.y0)>d||(s=c.x1)<f||(l=c.y1)<h))if(v.length){var m=(a+s)/2,y=(o+l)/2;g.push(new r(v[3],m,y,s,l),new r(v[2],a,y,m,l),new r(v[1],m,o,s,y),new r(v[0],a,o,m,y)),(u=(e>=y)<<1|t>=m)&&(c=g[g.length-1],g[g.length-1]=g[g.length-1-u],g[g.length-1-u]=c)}else{var x=t-+this._x.call(null,v.data),b=e-+this._y.call(null,v.data),_=x*x+b*b;if(_<n){var w=Math.sqrt(n=_);f=t-w,h=e-w,p=t+w,d=e+w,i=v.data}}return i},l.remove=function(t){if(isNaN(a=+this._x.call(null,t))||isNaN(o=+this._y.call(null,t)))return this;var e,r,n,i,a,o,s,l,c,u,f,h,p=this._root,d=this._x0,g=this._y0,v=this._x1,m=this._y1;if(!p)return this;if(p.length)for(;;){if((c=a>=(s=(d+v)/2))?d=s:v=s,(u=o>=(l=(g+m)/2))?g=l:m=l,e=p,!(p=p[f=u<<1|c]))return this;if(!p.length)break;(e[f+1&3]||e[f+2&3]||e[f+3&3])&&(r=e,h=f)}for(;p.data!==t;)if(n=p,!(p=p.next))return this;return(i=p.next)&&delete p.next,n?(i?n.next=i:delete n.next,this):e?(i?e[f]=i:delete e[f],(p=e[0]||e[1]||e[2]||e[3])&&p===(e[3]||e[2]||e[1]||e[0])&&!p.length&&(r?r[h]=p:this._root=p),this):(this._root=i,this)},l.removeAll=function(t){for(var e=0,r=t.length;e<r;++e)this.remove(t[e]);return this},l.root=function(){return this._root},l.size=function(){var t=0;return this.visit(function(e){if(!e.length)do{++t}while(e=e.next)}),t},l.visit=function(t){var e,n,i,a,o,s,l=[],c=this._root;for(c&&l.push(new r(c,this._x0,this._y0,this._x1,this._y1));e=l.pop();)if(!t(c=e.node,i=e.x0,a=e.y0,o=e.x1,s=e.y1)&&c.length){var u=(i+o)/2,f=(a+s)/2;(n=c[3])&&l.push(new r(n,u,f,o,s)),(n=c[2])&&l.push(new r(n,i,f,u,s)),(n=c[1])&&l.push(new r(n,u,a,o,f)),(n=c[0])&&l.push(new r(n,i,a,u,f))}return this},l.visitAfter=function(t){var e,n=[],i=[];for(this._root&&n.push(new r(this._root,this._x0,this._y0,this._x1,this._y1));e=n.pop();){var a=e.node;if(a.length){var o,s=e.x0,l=e.y0,c=e.x1,u=e.y1,f=(s+c)/2,h=(l+u)/2;(o=a[0])&&n.push(new r(o,s,l,f,h)),(o=a[1])&&n.push(new r(o,f,l,c,h)),(o=a[2])&&n.push(new r(o,s,h,f,u)),(o=a[3])&&n.push(new r(o,f,h,c,u))}i.push(e)}for(;e=i.pop();)t(e.node,e.x0,e.y0,e.x1,e.y1);return this},l.x=function(t){return arguments.length?(this._x=t,this):this._x},l.y=function(t){return arguments.length?(this._y=t,this):this._y},t.quadtree=a,Object.defineProperty(t,\"__esModule\",{value:!0})}(\"object\"==typeof r&&\"undefined\"!=typeof e?r:n.d3=n.d3||{})},{}],147:[function(t,e,r){var n;n=this,function(t){\"use strict\";var e,r,n=0,i=0,a=0,o=1e3,s=0,l=0,c=0,u=\"object\"==typeof performance&&performance.now?performance:Date,f=\"object\"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function h(){return l||(f(p),l=u.now()+c)}function p(){l=0}function d(){this._call=this._time=this._next=null}function g(t,e,r){var n=new d;return n.restart(t,e,r),n}function v(){h(),++n;for(var t,r=e;r;)(t=l-r._time)>=0&&r._call.call(null,t),r=r._next;--n}function m(){l=(s=u.now())+c,n=i=0;try{v()}finally{n=0,function(){var t,n,i=e,a=1/0;for(;i;)i._call?(a>i._time&&(a=i._time),t=i,i=i._next):(n=i._next,i._next=null,i=t?t._next=n:e=n);r=t,x(a)}(),l=0}}function y(){var t=u.now(),e=t-s;e>o&&(c-=e,s=t)}function x(t){n||(i&&(i=clearTimeout(i)),t-l>24?(t<1/0&&(i=setTimeout(m,t-u.now()-c)),a&&(a=clearInterval(a))):(a||(s=u.now(),a=setInterval(y,o)),n=1,f(m)))}d.prototype=g.prototype={constructor:d,restart:function(t,n,i){if(\"function\"!=typeof t)throw new TypeError(\"callback is not a function\");i=(null==i?h():+i)+(null==n?0:+n),this._next||r===this||(r?r._next=this:e=this,r=this),this._call=t,this._time=i,x()},stop:function(){this._call&&(this._call=null,this._time=1/0,x())}};t.now=h,t.timer=g,t.timerFlush=v,t.timeout=function(t,e,r){var n=new d;return e=null==e?0:+e,n.restart(function(r){n.stop(),t(r+e)},e,r),n},t.interval=function(t,e,r){var n=new d,i=e;return null==e?(n.restart(t,e,r),n):(e=+e,r=null==r?h():+r,n.restart(function a(o){o+=i,n.restart(a,i+=e,r),t(o)},e,r),n)},Object.defineProperty(t,\"__esModule\",{value:!0})}(\"object\"==typeof r&&\"undefined\"!=typeof e?r:n.d3=n.d3||{})},{}],148:[function(t,e,r){!function(){var t={version:\"3.5.17\"},r=[].slice,n=function(t){return r.call(t)},i=this.document;function a(t){return t&&(t.ownerDocument||t.document||t).documentElement}function o(t){return t&&(t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView)}if(i)try{n(i.documentElement.childNodes)[0].nodeType}catch(t){n=function(t){for(var e=t.length,r=new Array(e);e--;)r[e]=t[e];return r}}if(Date.now||(Date.now=function(){return+new Date}),i)try{i.createElement(\"DIV\").style.setProperty(\"opacity\",0,\"\")}catch(t){var s=this.Element.prototype,l=s.setAttribute,c=s.setAttributeNS,u=this.CSSStyleDeclaration.prototype,f=u.setProperty;s.setAttribute=function(t,e){l.call(this,t,e+\"\")},s.setAttributeNS=function(t,e,r){c.call(this,t,e,r+\"\")},u.setProperty=function(t,e,r){f.call(this,t,e+\"\",r)}}function h(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function p(t){return null===t?NaN:+t}function d(t){return!isNaN(t)}function g(t){return{left:function(e,r,n,i){for(arguments.length<3&&(n=0),arguments.length<4&&(i=e.length);n<i;){var a=n+i>>>1;t(e[a],r)<0?n=a+1:i=a}return n},right:function(e,r,n,i){for(arguments.length<3&&(n=0),arguments.length<4&&(i=e.length);n<i;){var a=n+i>>>1;t(e[a],r)>0?i=a:n=a+1}return n}}}t.ascending=h,t.descending=function(t,e){return e<t?-1:e>t?1:e>=t?0:NaN},t.min=function(t,e){var r,n,i=-1,a=t.length;if(1===arguments.length){for(;++i<a;)if(null!=(n=t[i])&&n>=n){r=n;break}for(;++i<a;)null!=(n=t[i])&&r>n&&(r=n)}else{for(;++i<a;)if(null!=(n=e.call(t,t[i],i))&&n>=n){r=n;break}for(;++i<a;)null!=(n=e.call(t,t[i],i))&&r>n&&(r=n)}return r},t.max=function(t,e){var r,n,i=-1,a=t.length;if(1===arguments.length){for(;++i<a;)if(null!=(n=t[i])&&n>=n){r=n;break}for(;++i<a;)null!=(n=t[i])&&n>r&&(r=n)}else{for(;++i<a;)if(null!=(n=e.call(t,t[i],i))&&n>=n){r=n;break}for(;++i<a;)null!=(n=e.call(t,t[i],i))&&n>r&&(r=n)}return r},t.extent=function(t,e){var r,n,i,a=-1,o=t.length;if(1===arguments.length){for(;++a<o;)if(null!=(n=t[a])&&n>=n){r=i=n;break}for(;++a<o;)null!=(n=t[a])&&(r>n&&(r=n),i<n&&(i=n))}else{for(;++a<o;)if(null!=(n=e.call(t,t[a],a))&&n>=n){r=i=n;break}for(;++a<o;)null!=(n=e.call(t,t[a],a))&&(r>n&&(r=n),i<n&&(i=n))}return[r,i]},t.sum=function(t,e){var r,n=0,i=t.length,a=-1;if(1===arguments.length)for(;++a<i;)d(r=+t[a])&&(n+=r);else for(;++a<i;)d(r=+e.call(t,t[a],a))&&(n+=r);return n},t.mean=function(t,e){var r,n=0,i=t.length,a=-1,o=i;if(1===arguments.length)for(;++a<i;)d(r=p(t[a]))?n+=r:--o;else for(;++a<i;)d(r=p(e.call(t,t[a],a)))?n+=r:--o;if(o)return n/o},t.quantile=function(t,e){var r=(t.length-1)*e+1,n=Math.floor(r),i=+t[n-1],a=r-n;return a?i+a*(t[n]-i):i},t.median=function(e,r){var n,i=[],a=e.length,o=-1;if(1===arguments.length)for(;++o<a;)d(n=p(e[o]))&&i.push(n);else for(;++o<a;)d(n=p(r.call(e,e[o],o)))&&i.push(n);if(i.length)return t.quantile(i.sort(h),.5)},t.variance=function(t,e){var r,n,i=t.length,a=0,o=0,s=-1,l=0;if(1===arguments.length)for(;++s<i;)d(r=p(t[s]))&&(o+=(n=r-a)*(r-(a+=n/++l)));else for(;++s<i;)d(r=p(e.call(t,t[s],s)))&&(o+=(n=r-a)*(r-(a+=n/++l)));if(l>1)return o/(l-1)},t.deviation=function(){var e=t.variance.apply(this,arguments);return e?Math.sqrt(e):e};var v=g(h);function m(t){return t.length}t.bisectLeft=v.left,t.bisect=t.bisectRight=v.right,t.bisector=function(t){return g(1===t.length?function(e,r){return h(t(e),r)}:t)},t.shuffle=function(t,e,r){(a=arguments.length)<3&&(r=t.length,a<2&&(e=0));for(var n,i,a=r-e;a;)i=Math.random()*a--|0,n=t[a+e],t[a+e]=t[i+e],t[i+e]=n;return t},t.permute=function(t,e){for(var r=e.length,n=new Array(r);r--;)n[r]=t[e[r]];return n},t.pairs=function(t){for(var e=0,r=t.length-1,n=t[0],i=new Array(r<0?0:r);e<r;)i[e]=[n,n=t[++e]];return i},t.transpose=function(e){if(!(a=e.length))return[];for(var r=-1,n=t.min(e,m),i=new Array(n);++r<n;)for(var a,o=-1,s=i[r]=new Array(a);++o<a;)s[o]=e[o][r];return i},t.zip=function(){return t.transpose(arguments)},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e},t.values=function(t){var e=[];for(var r in t)e.push(t[r]);return e},t.entries=function(t){var e=[];for(var r in t)e.push({key:r,value:t[r]});return e},t.merge=function(t){for(var e,r,n,i=t.length,a=-1,o=0;++a<i;)o+=t[a].length;for(r=new Array(o);--i>=0;)for(e=(n=t[i]).length;--e>=0;)r[--o]=n[e];return r};var y=Math.abs;function x(t,e){for(var r in e)Object.defineProperty(t.prototype,r,{value:e[r],enumerable:!1})}function b(){this._=Object.create(null)}t.range=function(t,e,r){if(arguments.length<3&&(r=1,arguments.length<2&&(e=t,t=0)),(e-t)/r==1/0)throw new Error(\"infinite range\");var n,i=[],a=function(t){var e=1;for(;t*e%1;)e*=10;return e}(y(r)),o=-1;if(t*=a,e*=a,(r*=a)<0)for(;(n=t+r*++o)>e;)i.push(n/a);else for(;(n=t+r*++o)<e;)i.push(n/a);return i},t.map=function(t,e){var r=new b;if(t instanceof b)t.forEach(function(t,e){r.set(t,e)});else if(Array.isArray(t)){var n,i=-1,a=t.length;if(1===arguments.length)for(;++i<a;)r.set(i,t[i]);else for(;++i<a;)r.set(e.call(t,n=t[i],i),n)}else for(var o in t)r.set(o,t[o]);return r};var _=\"__proto__\",w=\"\\0\";function k(t){return(t+=\"\")===_||t[0]===w?w+t:t}function M(t){return(t+=\"\")[0]===w?t.slice(1):t}function A(t){return k(t)in this._}function T(t){return(t=k(t))in this._&&delete this._[t]}function S(){var t=[];for(var e in this._)t.push(M(e));return t}function E(){var t=0;for(var e in this._)++t;return t}function C(){for(var t in this._)return!1;return!0}function L(){this._=Object.create(null)}function z(t){return t}function O(t,e,r){return function(){var n=r.apply(e,arguments);return n===e?t:n}}function I(t,e){if(e in t)return e;e=e.charAt(0).toUpperCase()+e.slice(1);for(var r=0,n=P.length;r<n;++r){var i=P[r]+e;if(i in t)return i}}x(b,{has:A,get:function(t){return this._[k(t)]},set:function(t,e){return this._[k(t)]=e},remove:T,keys:S,values:function(){var t=[];for(var e in this._)t.push(this._[e]);return t},entries:function(){var t=[];for(var e in this._)t.push({key:M(e),value:this._[e]});return t},size:E,empty:C,forEach:function(t){for(var e in this._)t.call(this,M(e),this._[e])}}),t.nest=function(){var e,r,n={},i=[],a=[];function o(t,a,s){if(s>=i.length)return r?r.call(n,a):e?a.sort(e):a;for(var l,c,u,f,h=-1,p=a.length,d=i[s++],g=new b;++h<p;)(f=g.get(l=d(c=a[h])))?f.push(c):g.set(l,[c]);return t?(c=t(),u=function(e,r){c.set(e,o(t,r,s))}):(c={},u=function(e,r){c[e]=o(t,r,s)}),g.forEach(u),c}return n.map=function(t,e){return o(e,t,0)},n.entries=function(e){return function t(e,r){if(r>=i.length)return e;var n=[],o=a[r++];return e.forEach(function(e,i){n.push({key:e,values:t(i,r)})}),o?n.sort(function(t,e){return o(t.key,e.key)}):n}(o(t.map,e,0),0)},n.key=function(t){return i.push(t),n},n.sortKeys=function(t){return a[i.length-1]=t,n},n.sortValues=function(t){return e=t,n},n.rollup=function(t){return r=t,n},n},t.set=function(t){var e=new L;if(t)for(var r=0,n=t.length;r<n;++r)e.add(t[r]);return e},x(L,{has:A,add:function(t){return this._[k(t+=\"\")]=!0,t},remove:T,values:S,size:E,empty:C,forEach:function(t){for(var e in this._)t.call(this,M(e))}}),t.behavior={},t.rebind=function(t,e){for(var r,n=1,i=arguments.length;++n<i;)t[r=arguments[n]]=O(t,e,e[r]);return t};var P=[\"webkit\",\"ms\",\"moz\",\"Moz\",\"o\",\"O\"];function D(){}function R(){}function B(t){var e=[],r=new b;function n(){for(var r,n=e,i=-1,a=n.length;++i<a;)(r=n[i].on)&&r.apply(this,arguments);return t}return n.on=function(n,i){var a,o=r.get(n);return arguments.length<2?o&&o.on:(o&&(o.on=null,e=e.slice(0,a=e.indexOf(o)).concat(e.slice(a+1)),r.remove(n)),i&&e.push(r.set(n,{on:i})),t)},n}function F(){t.event.preventDefault()}function N(){for(var e,r=t.event;e=r.sourceEvent;)r=e;return r}function j(e){for(var r=new R,n=0,i=arguments.length;++n<i;)r[arguments[n]]=B(r);return r.of=function(n,i){return function(a){try{var o=a.sourceEvent=t.event;a.target=e,t.event=a,r[a.type].apply(n,i)}finally{t.event=o}}},r}t.dispatch=function(){for(var t=new R,e=-1,r=arguments.length;++e<r;)t[arguments[e]]=B(t);return t},R.prototype.on=function(t,e){var r=t.indexOf(\".\"),n=\"\";if(r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),t)return arguments.length<2?this[t].on(n):this[t].on(n,e);if(2===arguments.length){if(null==e)for(t in this)this.hasOwnProperty(t)&&this[t].on(n,null);return this}},t.event=null,t.requote=function(t){return t.replace(V,\"\\\\$&\")};var V=/[\\\\\\^\\$\\*\\+\\?\\|\\[\\]\\(\\)\\.\\{\\}]/g,U={}.__proto__?function(t,e){t.__proto__=e}:function(t,e){for(var r in e)t[r]=e[r]};function q(t){return U(t,Y),t}var H=function(t,e){return e.querySelector(t)},G=function(t,e){return e.querySelectorAll(t)},W=function(t,e){var r=t.matches||t[I(t,\"matchesSelector\")];return(W=function(t,e){return r.call(t,e)})(t,e)};\"function\"==typeof Sizzle&&(H=function(t,e){return Sizzle(t,e)[0]||null},G=Sizzle,W=Sizzle.matchesSelector),t.selection=function(){return t.select(i.documentElement)};var Y=t.selection.prototype=[];function X(t){return\"function\"==typeof t?t:function(){return H(t,this)}}function Z(t){return\"function\"==typeof t?t:function(){return G(t,this)}}Y.select=function(t){var e,r,n,i,a=[];t=X(t);for(var o=-1,s=this.length;++o<s;){a.push(e=[]),e.parentNode=(n=this[o]).parentNode;for(var l=-1,c=n.length;++l<c;)(i=n[l])?(e.push(r=t.call(i,i.__data__,l,o)),r&&\"__data__\"in i&&(r.__data__=i.__data__)):e.push(null)}return q(a)},Y.selectAll=function(t){var e,r,i=[];t=Z(t);for(var a=-1,o=this.length;++a<o;)for(var s=this[a],l=-1,c=s.length;++l<c;)(r=s[l])&&(i.push(e=n(t.call(r,r.__data__,l,a))),e.parentNode=r);return q(i)};var $=\"http://www.w3.org/1999/xhtml\",J={svg:\"http://www.w3.org/2000/svg\",xhtml:$,xlink:\"http://www.w3.org/1999/xlink\",xml:\"http://www.w3.org/XML/1998/namespace\",xmlns:\"http://www.w3.org/2000/xmlns/\"};function K(e,r){return e=t.ns.qualify(e),null==r?e.local?function(){this.removeAttributeNS(e.space,e.local)}:function(){this.removeAttribute(e)}:\"function\"==typeof r?e.local?function(){var t=r.apply(this,arguments);null==t?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,t)}:function(){var t=r.apply(this,arguments);null==t?this.removeAttribute(e):this.setAttribute(e,t)}:e.local?function(){this.setAttributeNS(e.space,e.local,r)}:function(){this.setAttribute(e,r)}}function Q(t){return t.trim().replace(/\\s+/g,\" \")}function tt(e){return new RegExp(\"(?:^|\\\\s+)\"+t.requote(e)+\"(?:\\\\s+|$)\",\"g\")}function et(t){return(t+\"\").trim().split(/^|\\s+/)}function rt(t,e){var r=(t=et(t).map(nt)).length;return\"function\"==typeof e?function(){for(var n=-1,i=e.apply(this,arguments);++n<r;)t[n](this,i)}:function(){for(var n=-1;++n<r;)t[n](this,e)}}function nt(t){var e=tt(t);return function(r,n){if(i=r.classList)return n?i.add(t):i.remove(t);var i=r.getAttribute(\"class\")||\"\";n?(e.lastIndex=0,e.test(i)||r.setAttribute(\"class\",Q(i+\" \"+t))):r.setAttribute(\"class\",Q(i.replace(e,\" \")))}}function it(t,e,r){return null==e?function(){this.style.removeProperty(t)}:\"function\"==typeof e?function(){var n=e.apply(this,arguments);null==n?this.style.removeProperty(t):this.style.setProperty(t,n,r)}:function(){this.style.setProperty(t,e,r)}}function at(t,e){return null==e?function(){delete this[t]}:\"function\"==typeof e?function(){var r=e.apply(this,arguments);null==r?delete this[t]:this[t]=r}:function(){this[t]=e}}function ot(e){return\"function\"==typeof e?e:(e=t.ns.qualify(e)).local?function(){return this.ownerDocument.createElementNS(e.space,e.local)}:function(){var t=this.ownerDocument,r=this.namespaceURI;return r===$&&t.documentElement.namespaceURI===$?t.createElement(e):t.createElementNS(r,e)}}function st(){var t=this.parentNode;t&&t.removeChild(this)}function lt(t){return{__data__:t}}function ct(t){return function(){return W(this,t)}}function ut(t,e){for(var r=0,n=t.length;r<n;r++)for(var i,a=t[r],o=0,s=a.length;o<s;o++)(i=a[o])&&e(i,o,r);return t}function ft(t){return U(t,ht),t}t.ns={prefix:J,qualify:function(t){var e=t.indexOf(\":\"),r=t;return e>=0&&\"xmlns\"!==(r=t.slice(0,e))&&(t=t.slice(e+1)),J.hasOwnProperty(r)?{space:J[r],local:t}:t}},Y.attr=function(e,r){if(arguments.length<2){if(\"string\"==typeof e){var n=this.node();return(e=t.ns.qualify(e)).local?n.getAttributeNS(e.space,e.local):n.getAttribute(e)}for(r in e)this.each(K(r,e[r]));return this}return this.each(K(e,r))},Y.classed=function(t,e){if(arguments.length<2){if(\"string\"==typeof t){var r=this.node(),n=(t=et(t)).length,i=-1;if(e=r.classList){for(;++i<n;)if(!e.contains(t[i]))return!1}else for(e=r.getAttribute(\"class\");++i<n;)if(!tt(t[i]).test(e))return!1;return!0}for(e in t)this.each(rt(e,t[e]));return this}return this.each(rt(t,e))},Y.style=function(t,e,r){var n=arguments.length;if(n<3){if(\"string\"!=typeof t){for(r in n<2&&(e=\"\"),t)this.each(it(r,t[r],e));return this}if(n<2){var i=this.node();return o(i).getComputedStyle(i,null).getPropertyValue(t)}r=\"\"}return this.each(it(t,e,r))},Y.property=function(t,e){if(arguments.length<2){if(\"string\"==typeof t)return this.node()[t];for(e in t)this.each(at(e,t[e]));return this}return this.each(at(t,e))},Y.text=function(t){return arguments.length?this.each(\"function\"==typeof t?function(){var e=t.apply(this,arguments);this.textContent=null==e?\"\":e}:null==t?function(){this.textContent=\"\"}:function(){this.textContent=t}):this.node().textContent},Y.html=function(t){return arguments.length?this.each(\"function\"==typeof t?function(){var e=t.apply(this,arguments);this.innerHTML=null==e?\"\":e}:null==t?function(){this.innerHTML=\"\"}:function(){this.innerHTML=t}):this.node().innerHTML},Y.append=function(t){return t=ot(t),this.select(function(){return this.appendChild(t.apply(this,arguments))})},Y.insert=function(t,e){return t=ot(t),e=X(e),this.select(function(){return this.insertBefore(t.apply(this,arguments),e.apply(this,arguments)||null)})},Y.remove=function(){return this.each(st)},Y.data=function(t,e){var r,n,i=-1,a=this.length;if(!arguments.length){for(t=new Array(a=(r=this[0]).length);++i<a;)(n=r[i])&&(t[i]=n.__data__);return t}function o(t,r){var n,i,a,o=t.length,u=r.length,f=Math.min(o,u),h=new Array(u),p=new Array(u),d=new Array(o);if(e){var g,v=new b,m=new Array(o);for(n=-1;++n<o;)(i=t[n])&&(v.has(g=e.call(i,i.__data__,n))?d[n]=i:v.set(g,i),m[n]=g);for(n=-1;++n<u;)(i=v.get(g=e.call(r,a=r[n],n)))?!0!==i&&(h[n]=i,i.__data__=a):p[n]=lt(a),v.set(g,!0);for(n=-1;++n<o;)n in m&&!0!==v.get(m[n])&&(d[n]=t[n])}else{for(n=-1;++n<f;)i=t[n],a=r[n],i?(i.__data__=a,h[n]=i):p[n]=lt(a);for(;n<u;++n)p[n]=lt(r[n]);for(;n<o;++n)d[n]=t[n]}p.update=h,p.parentNode=h.parentNode=d.parentNode=t.parentNode,s.push(p),l.push(h),c.push(d)}var s=ft([]),l=q([]),c=q([]);if(\"function\"==typeof t)for(;++i<a;)o(r=this[i],t.call(r,r.parentNode.__data__,i));else for(;++i<a;)o(r=this[i],t);return l.enter=function(){return s},l.exit=function(){return c},l},Y.datum=function(t){return arguments.length?this.property(\"__data__\",t):this.property(\"__data__\")},Y.filter=function(t){var e,r,n,i=[];\"function\"!=typeof t&&(t=ct(t));for(var a=0,o=this.length;a<o;a++){i.push(e=[]),e.parentNode=(r=this[a]).parentNode;for(var s=0,l=r.length;s<l;s++)(n=r[s])&&t.call(n,n.__data__,s,a)&&e.push(n)}return q(i)},Y.order=function(){for(var t=-1,e=this.length;++t<e;)for(var r,n=this[t],i=n.length-1,a=n[i];--i>=0;)(r=n[i])&&(a&&a!==r.nextSibling&&a.parentNode.insertBefore(r,a),a=r);return this},Y.sort=function(t){t=function(t){arguments.length||(t=h);return function(e,r){return e&&r?t(e.__data__,r.__data__):!e-!r}}.apply(this,arguments);for(var e=-1,r=this.length;++e<r;)this[e].sort(t);return this.order()},Y.each=function(t){return ut(this,function(e,r,n){t.call(e,e.__data__,r,n)})},Y.call=function(t){var e=n(arguments);return t.apply(e[0]=this,e),this},Y.empty=function(){return!this.node()},Y.node=function(){for(var t=0,e=this.length;t<e;t++)for(var r=this[t],n=0,i=r.length;n<i;n++){var a=r[n];if(a)return a}return null},Y.size=function(){var t=0;return ut(this,function(){++t}),t};var ht=[];function pt(e,r,i){var a=\"__on\"+e,o=e.indexOf(\".\"),s=gt;o>0&&(e=e.slice(0,o));var l=dt.get(e);function c(){var t=this[a];t&&(this.removeEventListener(e,t,t.$),delete this[a])}return l&&(e=l,s=vt),o?r?function(){var t=s(r,n(arguments));c.call(this),this.addEventListener(e,this[a]=t,t.$=i),t._=r}:c:r?D:function(){var r,n=new RegExp(\"^__on([^.]+)\"+t.requote(e)+\"$\");for(var i in this)if(r=i.match(n)){var a=this[i];this.removeEventListener(r[1],a,a.$),delete this[i]}}}t.selection.enter=ft,t.selection.enter.prototype=ht,ht.append=Y.append,ht.empty=Y.empty,ht.node=Y.node,ht.call=Y.call,ht.size=Y.size,ht.select=function(t){for(var e,r,n,i,a,o=[],s=-1,l=this.length;++s<l;){n=(i=this[s]).update,o.push(e=[]),e.parentNode=i.parentNode;for(var c=-1,u=i.length;++c<u;)(a=i[c])?(e.push(n[c]=r=t.call(i.parentNode,a.__data__,c,s)),r.__data__=a.__data__):e.push(null)}return q(o)},ht.insert=function(t,e){var r,n,i;return arguments.length<2&&(r=this,e=function(t,e,a){var o,s=r[a].update,l=s.length;for(a!=i&&(i=a,n=0),e>=n&&(n=e+1);!(o=s[n])&&++n<l;);return o}),Y.insert.call(this,t,e)},t.select=function(t){var e;return\"string\"==typeof t?(e=[H(t,i)]).parentNode=i.documentElement:(e=[t]).parentNode=a(t),q([e])},t.selectAll=function(t){var e;return\"string\"==typeof t?(e=n(G(t,i))).parentNode=i.documentElement:(e=n(t)).parentNode=null,q([e])},Y.on=function(t,e,r){var n=arguments.length;if(n<3){if(\"string\"!=typeof t){for(r in n<2&&(e=!1),t)this.each(pt(r,t[r],e));return this}if(n<2)return(n=this.node()[\"__on\"+t])&&n._;r=!1}return this.each(pt(t,e,r))};var dt=t.map({mouseenter:\"mouseover\",mouseleave:\"mouseout\"});function gt(e,r){return function(n){var i=t.event;t.event=n,r[0]=this.__data__;try{e.apply(this,r)}finally{t.event=i}}}function vt(t,e){var r=gt(t,e);return function(t){var e=t.relatedTarget;e&&(e===this||8&e.compareDocumentPosition(this))||r.call(this,t)}}i&&dt.forEach(function(t){\"on\"+t in i&&dt.remove(t)});var mt,yt=0;function xt(e){var r=\".dragsuppress-\"+ ++yt,n=\"click\"+r,i=t.select(o(e)).on(\"touchmove\"+r,F).on(\"dragstart\"+r,F).on(\"selectstart\"+r,F);if(null==mt&&(mt=!(\"onselectstart\"in e)&&I(e.style,\"userSelect\")),mt){var s=a(e).style,l=s[mt];s[mt]=\"none\"}return function(t){if(i.on(r,null),mt&&(s[mt]=l),t){var e=function(){i.on(n,null)};i.on(n,function(){F(),e()},!0),setTimeout(e,0)}}}t.mouse=function(t){return _t(t,N())};var bt=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function _t(e,r){r.changedTouches&&(r=r.changedTouches[0]);var n=e.ownerSVGElement||e;if(n.createSVGPoint){var i=n.createSVGPoint();if(bt<0){var a=o(e);if(a.scrollX||a.scrollY){var s=(n=t.select(\"body\").append(\"svg\").style({position:\"absolute\",top:0,left:0,margin:0,padding:0,border:\"none\"},\"important\"))[0][0].getScreenCTM();bt=!(s.f||s.e),n.remove()}}return bt?(i.x=r.pageX,i.y=r.pageY):(i.x=r.clientX,i.y=r.clientY),[(i=i.matrixTransform(e.getScreenCTM().inverse())).x,i.y]}var l=e.getBoundingClientRect();return[r.clientX-l.left-e.clientLeft,r.clientY-l.top-e.clientTop]}function wt(){return t.event.changedTouches[0].identifier}t.touch=function(t,e,r){if(arguments.length<3&&(r=e,e=N().changedTouches),e)for(var n,i=0,a=e.length;i<a;++i)if((n=e[i]).identifier===r)return _t(t,n)},t.behavior.drag=function(){var e=j(a,\"drag\",\"dragstart\",\"dragend\"),r=null,n=s(D,t.mouse,o,\"mousemove\",\"mouseup\"),i=s(wt,t.touch,z,\"touchmove\",\"touchend\");function a(){this.on(\"mousedown.drag\",n).on(\"touchstart.drag\",i)}function s(n,i,a,o,s){return function(){var l,c=t.event.target.correspondingElement||t.event.target,u=this.parentNode,f=e.of(this,arguments),h=0,p=n(),d=\".drag\"+(null==p?\"\":\"-\"+p),g=t.select(a(c)).on(o+d,function(){var t,e,r=i(u,p);if(!r)return;t=r[0]-m[0],e=r[1]-m[1],h|=t|e,m=r,f({type:\"drag\",x:r[0]+l[0],y:r[1]+l[1],dx:t,dy:e})}).on(s+d,function(){if(!i(u,p))return;g.on(o+d,null).on(s+d,null),v(h),f({type:\"dragend\"})}),v=xt(c),m=i(u,p);l=r?[(l=r.apply(this,arguments)).x-m[0],l.y-m[1]]:[0,0],f({type:\"dragstart\"})}}return a.origin=function(t){return arguments.length?(r=t,a):r},t.rebind(a,e,\"on\")},t.touches=function(t,e){return arguments.length<2&&(e=N().touches),e?n(e).map(function(e){var r=_t(t,e);return r.identifier=e.identifier,r}):[]};var kt=1e-6,Mt=kt*kt,At=Math.PI,Tt=2*At,St=Tt-kt,Et=At/2,Ct=At/180,Lt=180/At;function zt(t){return t>0?1:t<0?-1:0}function Ot(t,e,r){return(e[0]-t[0])*(r[1]-t[1])-(e[1]-t[1])*(r[0]-t[0])}function It(t){return t>1?0:t<-1?At:Math.acos(t)}function Pt(t){return t>1?Et:t<-1?-Et:Math.asin(t)}function Dt(t){return((t=Math.exp(t))+1/t)/2}function Rt(t){return(t=Math.sin(t/2))*t}var Bt=Math.SQRT2;t.interpolateZoom=function(t,e){var r,n,i=t[0],a=t[1],o=t[2],s=e[0],l=e[1],c=e[2],u=s-i,f=l-a,h=u*u+f*f;if(h<Mt)n=Math.log(c/o)/Bt,r=function(t){return[i+t*u,a+t*f,o*Math.exp(Bt*t*n)]};else{var p=Math.sqrt(h),d=(c*c-o*o+4*h)/(2*o*2*p),g=(c*c-o*o-4*h)/(2*c*2*p),v=Math.log(Math.sqrt(d*d+1)-d),m=Math.log(Math.sqrt(g*g+1)-g);n=(m-v)/Bt,r=function(t){var e,r=t*n,s=Dt(v),l=o/(2*p)*(s*(e=Bt*r+v,((e=Math.exp(2*e))-1)/(e+1))-function(t){return((t=Math.exp(t))-1/t)/2}(v));return[i+l*u,a+l*f,o*s/Dt(Bt*r+v)]}}return r.duration=1e3*n,r},t.behavior.zoom=function(){var e,r,n,a,s,l,c,u,f,h={x:0,y:0,k:1},p=[960,500],d=jt,g=250,v=0,m=\"mousedown.zoom\",y=\"mousemove.zoom\",x=\"mouseup.zoom\",b=\"touchstart.zoom\",_=j(w,\"zoomstart\",\"zoom\",\"zoomend\");function w(t){t.on(m,z).on(Nt+\".zoom\",I).on(\"dblclick.zoom\",P).on(b,O)}function k(t){return[(t[0]-h.x)/h.k,(t[1]-h.y)/h.k]}function M(t){h.k=Math.max(d[0],Math.min(d[1],t))}function A(t,e){e=function(t){return[t[0]*h.k+h.x,t[1]*h.k+h.y]}(e),h.x+=t[0]-e[0],h.y+=t[1]-e[1]}function T(e,n,i,a){e.__chart__={x:h.x,y:h.y,k:h.k},M(Math.pow(2,a)),A(r=n,i),e=t.select(e),g>0&&(e=e.transition().duration(g)),e.call(w.event)}function S(){c&&c.domain(l.range().map(function(t){return(t-h.x)/h.k}).map(l.invert)),f&&f.domain(u.range().map(function(t){return(t-h.y)/h.k}).map(u.invert))}function E(t){v++||t({type:\"zoomstart\"})}function C(t){S(),t({type:\"zoom\",scale:h.k,translate:[h.x,h.y]})}function L(t){--v||(t({type:\"zoomend\"}),r=null)}function z(){var e=this,r=_.of(e,arguments),n=0,i=t.select(o(e)).on(y,function(){n=1,A(t.mouse(e),a),C(r)}).on(x,function(){i.on(y,null).on(x,null),s(n),L(r)}),a=k(t.mouse(e)),s=xt(e);fs.call(e),E(r)}function O(){var e,r=this,n=_.of(r,arguments),i={},a=0,o=\".zoom-\"+t.event.changedTouches[0].identifier,l=\"touchmove\"+o,c=\"touchend\"+o,u=[],f=t.select(r),p=xt(r);function d(){var n=t.touches(r);return e=h.k,n.forEach(function(t){t.identifier in i&&(i[t.identifier]=k(t))}),n}function g(){var e=t.event.target;t.select(e).on(l,v).on(c,y),u.push(e);for(var n=t.event.changedTouches,o=0,f=n.length;o<f;++o)i[n[o].identifier]=null;var p=d(),g=Date.now();if(1===p.length){if(g-s<500){var m=p[0];T(r,m,i[m.identifier],Math.floor(Math.log(h.k)/Math.LN2)+1),F()}s=g}else if(p.length>1){m=p[0];var x=p[1],b=m[0]-x[0],_=m[1]-x[1];a=b*b+_*_}}function v(){var o,l,c,u,f=t.touches(r);fs.call(r);for(var h=0,p=f.length;h<p;++h,u=null)if(c=f[h],u=i[c.identifier]){if(l)break;o=c,l=u}if(u){var d=(d=c[0]-o[0])*d+(d=c[1]-o[1])*d,g=a&&Math.sqrt(d/a);o=[(o[0]+c[0])/2,(o[1]+c[1])/2],l=[(l[0]+u[0])/2,(l[1]+u[1])/2],M(g*e)}s=null,A(o,l),C(n)}function y(){if(t.event.touches.length){for(var e=t.event.changedTouches,r=0,a=e.length;r<a;++r)delete i[e[r].identifier];for(var s in i)return void d()}t.selectAll(u).on(o,null),f.on(m,z).on(b,O),p(),L(n)}g(),E(n),f.on(m,null).on(b,g)}function I(){var i=_.of(this,arguments);a?clearTimeout(a):(fs.call(this),e=k(r=n||t.mouse(this)),E(i)),a=setTimeout(function(){a=null,L(i)},50),F(),M(Math.pow(2,.002*Ft())*h.k),A(r,e),C(i)}function P(){var e=t.mouse(this),r=Math.log(h.k)/Math.LN2;T(this,e,k(e),t.event.shiftKey?Math.ceil(r)-1:Math.floor(r)+1)}return Nt||(Nt=\"onwheel\"in i?(Ft=function(){return-t.event.deltaY*(t.event.deltaMode?120:1)},\"wheel\"):\"onmousewheel\"in i?(Ft=function(){return t.event.wheelDelta},\"mousewheel\"):(Ft=function(){return-t.event.detail},\"MozMousePixelScroll\")),w.event=function(e){e.each(function(){var e=_.of(this,arguments),n=h;ds?t.select(this).transition().each(\"start.zoom\",function(){h=this.__chart__||{x:0,y:0,k:1},E(e)}).tween(\"zoom:zoom\",function(){var i=p[0],a=p[1],o=r?r[0]:i/2,s=r?r[1]:a/2,l=t.interpolateZoom([(o-h.x)/h.k,(s-h.y)/h.k,i/h.k],[(o-n.x)/n.k,(s-n.y)/n.k,i/n.k]);return function(t){var r=l(t),n=i/r[2];this.__chart__=h={x:o-r[0]*n,y:s-r[1]*n,k:n},C(e)}}).each(\"interrupt.zoom\",function(){L(e)}).each(\"end.zoom\",function(){L(e)}):(this.__chart__=h,E(e),C(e),L(e))})},w.translate=function(t){return arguments.length?(h={x:+t[0],y:+t[1],k:h.k},S(),w):[h.x,h.y]},w.scale=function(t){return arguments.length?(h={x:h.x,y:h.y,k:null},M(+t),S(),w):h.k},w.scaleExtent=function(t){return arguments.length?(d=null==t?jt:[+t[0],+t[1]],w):d},w.center=function(t){return arguments.length?(n=t&&[+t[0],+t[1]],w):n},w.size=function(t){return arguments.length?(p=t&&[+t[0],+t[1]],w):p},w.duration=function(t){return arguments.length?(g=+t,w):g},w.x=function(t){return arguments.length?(c=t,l=t.copy(),h={x:0,y:0,k:1},w):c},w.y=function(t){return arguments.length?(f=t,u=t.copy(),h={x:0,y:0,k:1},w):f},t.rebind(w,_,\"on\")};var Ft,Nt,jt=[0,1/0];function Vt(){}function Ut(t,e,r){return this instanceof Ut?(this.h=+t,this.s=+e,void(this.l=+r)):arguments.length<2?t instanceof Ut?new Ut(t.h,t.s,t.l):ue(\"\"+t,fe,Ut):new Ut(t,e,r)}t.color=Vt,Vt.prototype.toString=function(){return this.rgb()+\"\"},t.hsl=Ut;var qt=Ut.prototype=new Vt;function Ht(t,e,r){var n,i;function a(t){return Math.round(255*function(t){return t>360?t-=360:t<0&&(t+=360),t<60?n+(i-n)*t/60:t<180?i:t<240?n+(i-n)*(240-t)/60:n}(t))}return t=isNaN(t)?0:(t%=360)<0?t+360:t,e=isNaN(e)?0:e<0?0:e>1?1:e,n=2*(r=r<0?0:r>1?1:r)-(i=r<=.5?r*(1+e):r+e-r*e),new ae(a(t+120),a(t),a(t-120))}function Gt(e,r,n){return this instanceof Gt?(this.h=+e,this.c=+r,void(this.l=+n)):arguments.length<2?e instanceof Gt?new Gt(e.h,e.c,e.l):ee(e instanceof Xt?e.l:(e=he((e=t.rgb(e)).r,e.g,e.b)).l,e.a,e.b):new Gt(e,r,n)}qt.brighter=function(t){return t=Math.pow(.7,arguments.length?t:1),new Ut(this.h,this.s,this.l/t)},qt.darker=function(t){return t=Math.pow(.7,arguments.length?t:1),new Ut(this.h,this.s,t*this.l)},qt.rgb=function(){return Ht(this.h,this.s,this.l)},t.hcl=Gt;var Wt=Gt.prototype=new Vt;function Yt(t,e,r){return isNaN(t)&&(t=0),isNaN(e)&&(e=0),new Xt(r,Math.cos(t*=Ct)*e,Math.sin(t)*e)}function Xt(t,e,r){return this instanceof Xt?(this.l=+t,this.a=+e,void(this.b=+r)):arguments.length<2?t instanceof Xt?new Xt(t.l,t.a,t.b):t instanceof Gt?Yt(t.h,t.c,t.l):he((t=ae(t)).r,t.g,t.b):new Xt(t,e,r)}Wt.brighter=function(t){return new Gt(this.h,this.c,Math.min(100,this.l+Zt*(arguments.length?t:1)))},Wt.darker=function(t){return new Gt(this.h,this.c,Math.max(0,this.l-Zt*(arguments.length?t:1)))},Wt.rgb=function(){return Yt(this.h,this.c,this.l).rgb()},t.lab=Xt;var Zt=18,$t=.95047,Jt=1,Kt=1.08883,Qt=Xt.prototype=new Vt;function te(t,e,r){var n=(t+16)/116,i=n+e/500,a=n-r/200;return new ae(ie(3.2404542*(i=re(i)*$t)-1.5371385*(n=re(n)*Jt)-.4985314*(a=re(a)*Kt)),ie(-.969266*i+1.8760108*n+.041556*a),ie(.0556434*i-.2040259*n+1.0572252*a))}function ee(t,e,r){return t>0?new Gt(Math.atan2(r,e)*Lt,Math.sqrt(e*e+r*r),t):new Gt(NaN,NaN,t)}function re(t){return t>.206893034?t*t*t:(t-4/29)/7.787037}function ne(t){return t>.008856?Math.pow(t,1/3):7.787037*t+4/29}function ie(t){return Math.round(255*(t<=.00304?12.92*t:1.055*Math.pow(t,1/2.4)-.055))}function ae(t,e,r){return this instanceof ae?(this.r=~~t,this.g=~~e,void(this.b=~~r)):arguments.length<2?t instanceof ae?new ae(t.r,t.g,t.b):ue(\"\"+t,ae,Ht):new ae(t,e,r)}function oe(t){return new ae(t>>16,t>>8&255,255&t)}function se(t){return oe(t)+\"\"}Qt.brighter=function(t){return new Xt(Math.min(100,this.l+Zt*(arguments.length?t:1)),this.a,this.b)},Qt.darker=function(t){return new Xt(Math.max(0,this.l-Zt*(arguments.length?t:1)),this.a,this.b)},Qt.rgb=function(){return te(this.l,this.a,this.b)},t.rgb=ae;var le=ae.prototype=new Vt;function ce(t){return t<16?\"0\"+Math.max(0,t).toString(16):Math.min(255,t).toString(16)}function ue(t,e,r){var n,i,a,o=0,s=0,l=0;if(n=/([a-z]+)\\((.*)\\)/.exec(t=t.toLowerCase()))switch(i=n[2].split(\",\"),n[1]){case\"hsl\":return r(parseFloat(i[0]),parseFloat(i[1])/100,parseFloat(i[2])/100);case\"rgb\":return e(de(i[0]),de(i[1]),de(i[2]))}return(a=ge.get(t))?e(a.r,a.g,a.b):(null==t||\"#\"!==t.charAt(0)||isNaN(a=parseInt(t.slice(1),16))||(4===t.length?(o=(3840&a)>>4,o|=o>>4,s=240&a,s|=s>>4,l=15&a,l|=l<<4):7===t.length&&(o=(16711680&a)>>16,s=(65280&a)>>8,l=255&a)),e(o,s,l))}function fe(t,e,r){var n,i,a=Math.min(t/=255,e/=255,r/=255),o=Math.max(t,e,r),s=o-a,l=(o+a)/2;return s?(i=l<.5?s/(o+a):s/(2-o-a),n=t==o?(e-r)/s+(e<r?6:0):e==o?(r-t)/s+2:(t-e)/s+4,n*=60):(n=NaN,i=l>0&&l<1?0:n),new Ut(n,i,l)}function he(t,e,r){var n=ne((.4124564*(t=pe(t))+.3575761*(e=pe(e))+.1804375*(r=pe(r)))/$t),i=ne((.2126729*t+.7151522*e+.072175*r)/Jt);return Xt(116*i-16,500*(n-i),200*(i-ne((.0193339*t+.119192*e+.9503041*r)/Kt)))}function pe(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function de(t){var e=parseFloat(t);return\"%\"===t.charAt(t.length-1)?Math.round(2.55*e):e}le.brighter=function(t){t=Math.pow(.7,arguments.length?t:1);var e=this.r,r=this.g,n=this.b,i=30;return e||r||n?(e&&e<i&&(e=i),r&&r<i&&(r=i),n&&n<i&&(n=i),new ae(Math.min(255,e/t),Math.min(255,r/t),Math.min(255,n/t))):new ae(i,i,i)},le.darker=function(t){return new ae((t=Math.pow(.7,arguments.length?t:1))*this.r,t*this.g,t*this.b)},le.hsl=function(){return fe(this.r,this.g,this.b)},le.toString=function(){return\"#\"+ce(this.r)+ce(this.g)+ce(this.b)};var ge=t.map({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});function ve(t){return\"function\"==typeof t?t:function(){return t}}function me(t){return function(e,r,n){return 2===arguments.length&&\"function\"==typeof r&&(n=r,r=null),ye(e,r,t,n)}}function ye(e,r,i,a){var o={},s=t.dispatch(\"beforesend\",\"progress\",\"load\",\"error\"),l={},c=new XMLHttpRequest,u=null;function f(){var t,e=c.status;if(!e&&function(t){var e=t.responseType;return e&&\"text\"!==e?t.response:t.responseText}(c)||e>=200&&e<300||304===e){try{t=i.call(o,c)}catch(t){return void s.error.call(o,t)}s.load.call(o,t)}else s.error.call(o,c)}return!this.XDomainRequest||\"withCredentials\"in c||!/^(http(s)?:)?\\/\\//.test(e)||(c=new XDomainRequest),\"onload\"in c?c.onload=c.onerror=f:c.onreadystatechange=function(){c.readyState>3&&f()},c.onprogress=function(e){var r=t.event;t.event=e;try{s.progress.call(o,c)}finally{t.event=r}},o.header=function(t,e){return t=(t+\"\").toLowerCase(),arguments.length<2?l[t]:(null==e?delete l[t]:l[t]=e+\"\",o)},o.mimeType=function(t){return arguments.length?(r=null==t?null:t+\"\",o):r},o.responseType=function(t){return arguments.length?(u=t,o):u},o.response=function(t){return i=t,o},[\"get\",\"post\"].forEach(function(t){o[t]=function(){return o.send.apply(o,[t].concat(n(arguments)))}}),o.send=function(t,n,i){if(2===arguments.length&&\"function\"==typeof n&&(i=n,n=null),c.open(t,e,!0),null==r||\"accept\"in l||(l.accept=r+\",*/*\"),c.setRequestHeader)for(var a in l)c.setRequestHeader(a,l[a]);return null!=r&&c.overrideMimeType&&c.overrideMimeType(r),null!=u&&(c.responseType=u),null!=i&&o.on(\"error\",i).on(\"load\",function(t){i(null,t)}),s.beforesend.call(o,c),c.send(null==n?null:n),o},o.abort=function(){return c.abort(),o},t.rebind(o,s,\"on\"),null==a?o:o.get(function(t){return 1===t.length?function(e,r){t(null==e?r:null)}:t}(a))}ge.forEach(function(t,e){ge.set(t,oe(e))}),t.functor=ve,t.xhr=me(z),t.dsv=function(t,e){var r=new RegExp('[\"'+t+\"\\n]\"),n=t.charCodeAt(0);function i(t,r,n){arguments.length<3&&(n=r,r=null);var i=ye(t,e,null==r?a:o(r),n);return i.row=function(t){return arguments.length?i.response(null==(r=t)?a:o(t)):r},i}function a(t){return i.parse(t.responseText)}function o(t){return function(e){return i.parse(e.responseText,t)}}function s(e){return e.map(l).join(t)}function l(t){return r.test(t)?'\"'+t.replace(/\\\"/g,'\"\"')+'\"':t}return i.parse=function(t,e){var r;return i.parseRows(t,function(t,n){if(r)return r(t,n-1);var i=new Function(\"d\",\"return {\"+t.map(function(t,e){return JSON.stringify(t)+\": d[\"+e+\"]\"}).join(\",\")+\"}\");r=e?function(t,r){return e(i(t),r)}:i})},i.parseRows=function(t,e){var r,i,a={},o={},s=[],l=t.length,c=0,u=0;function f(){if(c>=l)return o;if(i)return i=!1,a;var e=c;if(34===t.charCodeAt(e)){for(var r=e;r++<l;)if(34===t.charCodeAt(r)){if(34!==t.charCodeAt(r+1))break;++r}return c=r+2,13===(s=t.charCodeAt(r+1))?(i=!0,10===t.charCodeAt(r+2)&&++c):10===s&&(i=!0),t.slice(e+1,r).replace(/\"\"/g,'\"')}for(;c<l;){var s,u=1;if(10===(s=t.charCodeAt(c++)))i=!0;else if(13===s)i=!0,10===t.charCodeAt(c)&&(++c,++u);else if(s!==n)continue;return t.slice(e,c-u)}return t.slice(e)}for(;(r=f())!==o;){for(var h=[];r!==a&&r!==o;)h.push(r),r=f();e&&null==(h=e(h,u++))||s.push(h)}return s},i.format=function(e){if(Array.isArray(e[0]))return i.formatRows(e);var r=new L,n=[];return e.forEach(function(t){for(var e in t)r.has(e)||n.push(r.add(e))}),[n.map(l).join(t)].concat(e.map(function(e){return n.map(function(t){return l(e[t])}).join(t)})).join(\"\\n\")},i.formatRows=function(t){return t.map(s).join(\"\\n\")},i},t.csv=t.dsv(\",\",\"text/csv\"),t.tsv=t.dsv(\"\\t\",\"text/tab-separated-values\");var xe,be,_e,we,ke=this[I(this,\"requestAnimationFrame\")]||function(t){setTimeout(t,17)};function Me(t,e,r){var n=arguments.length;n<2&&(e=0),n<3&&(r=Date.now());var i={c:t,t:r+e,n:null};return be?be.n=i:xe=i,be=i,_e||(we=clearTimeout(we),_e=1,ke(Ae)),i}function Ae(){var t=Te(),e=Se()-t;e>24?(isFinite(e)&&(clearTimeout(we),we=setTimeout(Ae,e)),_e=0):(_e=1,ke(Ae))}function Te(){for(var t=Date.now(),e=xe;e;)t>=e.t&&e.c(t-e.t)&&(e.c=null),e=e.n;return t}function Se(){for(var t,e=xe,r=1/0;e;)e.c?(e.t<r&&(r=e.t),e=(t=e).n):e=t?t.n=e.n:xe=e.n;return be=t,r}function Ee(t,e){return e-(t?Math.ceil(Math.log(t)/Math.LN10):1)}t.timer=function(){Me.apply(this,arguments)},t.timer.flush=function(){Te(),Se()},t.round=function(t,e){return e?Math.round(t*(e=Math.pow(10,e)))/e:Math.round(t)};var Ce=[\"y\",\"z\",\"a\",\"f\",\"p\",\"n\",\"\\xb5\",\"m\",\"\",\"k\",\"M\",\"G\",\"T\",\"P\",\"E\",\"Z\",\"Y\"].map(function(t,e){var r=Math.pow(10,3*y(8-e));return{scale:e>8?function(t){return t/r}:function(t){return t*r},symbol:t}});t.formatPrefix=function(e,r){var n=0;return(e=+e)&&(e<0&&(e*=-1),r&&(e=t.round(e,Ee(e,r))),n=1+Math.floor(1e-12+Math.log(e)/Math.LN10),n=Math.max(-24,Math.min(24,3*Math.floor((n-1)/3)))),Ce[8+n/3]};var Le=/(?:([^{])?([<>=^]))?([+\\- ])?([$#])?(0)?(\\d+)?(,)?(\\.-?\\d+)?([a-z%])?/i,ze=t.map({b:function(t){return t.toString(2)},c:function(t){return String.fromCharCode(t)},o:function(t){return t.toString(8)},x:function(t){return t.toString(16)},X:function(t){return t.toString(16).toUpperCase()},g:function(t,e){return t.toPrecision(e)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},r:function(e,r){return(e=t.round(e,Ee(e,r))).toFixed(Math.max(0,Math.min(20,Ee(e*(1+1e-15),r))))}});function Oe(t){return t+\"\"}var Ie=t.time={},Pe=Date;function De(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}De.prototype={getDate:function(){return this._.getUTCDate()},getDay:function(){return this._.getUTCDay()},getFullYear:function(){return this._.getUTCFullYear()},getHours:function(){return this._.getUTCHours()},getMilliseconds:function(){return this._.getUTCMilliseconds()},getMinutes:function(){return this._.getUTCMinutes()},getMonth:function(){return this._.getUTCMonth()},getSeconds:function(){return this._.getUTCSeconds()},getTime:function(){return this._.getTime()},getTimezoneOffset:function(){return 0},valueOf:function(){return this._.valueOf()},setDate:function(){Re.setUTCDate.apply(this._,arguments)},setDay:function(){Re.setUTCDay.apply(this._,arguments)},setFullYear:function(){Re.setUTCFullYear.apply(this._,arguments)},setHours:function(){Re.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){Re.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){Re.setUTCMinutes.apply(this._,arguments)},setMonth:function(){Re.setUTCMonth.apply(this._,arguments)},setSeconds:function(){Re.setUTCSeconds.apply(this._,arguments)},setTime:function(){Re.setTime.apply(this._,arguments)}};var Re=Date.prototype;function Be(t,e,r){function n(e){var r=t(e),n=a(r,1);return e-r<n-e?r:n}function i(r){return e(r=t(new Pe(r-1)),1),r}function a(t,r){return e(t=new Pe(+t),r),t}function o(t,n,a){var o=i(t),s=[];if(a>1)for(;o<n;)r(o)%a||s.push(new Date(+o)),e(o,1);else for(;o<n;)s.push(new Date(+o)),e(o,1);return s}t.floor=t,t.round=n,t.ceil=i,t.offset=a,t.range=o;var s=t.utc=Fe(t);return s.floor=s,s.round=Fe(n),s.ceil=Fe(i),s.offset=Fe(a),s.range=function(t,e,r){try{Pe=De;var n=new De;return n._=t,o(n,e,r)}finally{Pe=Date}},t}function Fe(t){return function(e,r){try{Pe=De;var n=new De;return n._=e,t(n,r)._}finally{Pe=Date}}}Ie.year=Be(function(t){return(t=Ie.day(t)).setMonth(0,1),t},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t){return t.getFullYear()}),Ie.years=Ie.year.range,Ie.years.utc=Ie.year.utc.range,Ie.day=Be(function(t){var e=new Pe(2e3,0);return e.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),e},function(t,e){t.setDate(t.getDate()+e)},function(t){return t.getDate()-1}),Ie.days=Ie.day.range,Ie.days.utc=Ie.day.utc.range,Ie.dayOfYear=function(t){var e=Ie.year(t);return Math.floor((t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/864e5)},[\"sunday\",\"monday\",\"tuesday\",\"wednesday\",\"thursday\",\"friday\",\"saturday\"].forEach(function(t,e){e=7-e;var r=Ie[t]=Be(function(t){return(t=Ie.day(t)).setDate(t.getDate()-(t.getDay()+e)%7),t},function(t,e){t.setDate(t.getDate()+7*Math.floor(e))},function(t){var r=Ie.year(t).getDay();return Math.floor((Ie.dayOfYear(t)+(r+e)%7)/7)-(r!==e)});Ie[t+\"s\"]=r.range,Ie[t+\"s\"].utc=r.utc.range,Ie[t+\"OfYear\"]=function(t){var r=Ie.year(t).getDay();return Math.floor((Ie.dayOfYear(t)+(r+e)%7)/7)}}),Ie.week=Ie.sunday,Ie.weeks=Ie.sunday.range,Ie.weeks.utc=Ie.sunday.utc.range,Ie.weekOfYear=Ie.sundayOfYear;var Ne={\"-\":\"\",_:\" \",0:\"0\"},je=/^\\s*\\d+/,Ve=/^%/;function Ue(t,e,r){var n=t<0?\"-\":\"\",i=(n?-t:t)+\"\",a=i.length;return n+(a<r?new Array(r-a+1).join(e)+i:i)}function qe(e){return new RegExp(\"^(?:\"+e.map(t.requote).join(\"|\")+\")\",\"i\")}function He(t){for(var e=new b,r=-1,n=t.length;++r<n;)e.set(t[r].toLowerCase(),r);return e}function Ge(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r,r+1));return n?(t.w=+n[0],r+n[0].length):-1}function We(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r));return n?(t.U=+n[0],r+n[0].length):-1}function Ye(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r));return n?(t.W=+n[0],r+n[0].length):-1}function Xe(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r,r+4));return n?(t.y=+n[0],r+n[0].length):-1}function Ze(t,e,r){je.lastIndex=0;var n,i=je.exec(e.slice(r,r+2));return i?(t.y=(n=+i[0])+(n>68?1900:2e3),r+i[0].length):-1}function $e(t,e,r){return/^[+-]\\d{4}$/.test(e=e.slice(r,r+5))?(t.Z=-e,r+5):-1}function Je(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function Ke(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function Qe(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r,r+3));return n?(t.j=+n[0],r+n[0].length):-1}function tr(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function er(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function rr(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function nr(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function ir(t){var e=t.getTimezoneOffset(),r=e>0?\"-\":\"+\",n=y(e)/60|0,i=y(e)%60;return r+Ue(n,\"0\",2)+Ue(i,\"0\",2)}function ar(t,e,r){Ve.lastIndex=0;var n=Ve.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function or(t){for(var e=t.length,r=-1;++r<e;)t[r][0]=this(t[r][0]);return function(e){for(var r=0,n=t[r];!n[1](e);)n=t[++r];return n[0](e)}}t.locale=function(e){return{numberFormat:function(e){var r=e.decimal,n=e.thousands,i=e.grouping,a=e.currency,o=i&&n?function(t,e){for(var r=t.length,a=[],o=0,s=i[0],l=0;r>0&&s>0&&(l+s+1>e&&(s=Math.max(1,e-l)),a.push(t.substring(r-=s,r+s)),!((l+=s+1)>e));)s=i[o=(o+1)%i.length];return a.reverse().join(n)}:z;return function(e){var n=Le.exec(e),i=n[1]||\" \",s=n[2]||\">\",l=n[3]||\"-\",c=n[4]||\"\",u=n[5],f=+n[6],h=n[7],p=n[8],d=n[9],g=1,v=\"\",m=\"\",y=!1,x=!0;switch(p&&(p=+p.substring(1)),(u||\"0\"===i&&\"=\"===s)&&(u=i=\"0\",s=\"=\"),d){case\"n\":h=!0,d=\"g\";break;case\"%\":g=100,m=\"%\",d=\"f\";break;case\"p\":g=100,m=\"%\",d=\"r\";break;case\"b\":case\"o\":case\"x\":case\"X\":\"#\"===c&&(v=\"0\"+d.toLowerCase());case\"c\":x=!1;case\"d\":y=!0,p=0;break;case\"s\":g=-1,d=\"r\"}\"$\"===c&&(v=a[0],m=a[1]),\"r\"!=d||p||(d=\"g\"),null!=p&&(\"g\"==d?p=Math.max(1,Math.min(21,p)):\"e\"!=d&&\"f\"!=d||(p=Math.max(0,Math.min(20,p)))),d=ze.get(d)||Oe;var b=u&&h;return function(e){var n=m;if(y&&e%1)return\"\";var a=e<0||0===e&&1/e<0?(e=-e,\"-\"):\"-\"===l?\"\":l;if(g<0){var c=t.formatPrefix(e,p);e=c.scale(e),n=c.symbol+m}else e*=g;var _,w,k=(e=d(e,p)).lastIndexOf(\".\");if(k<0){var M=x?e.lastIndexOf(\"e\"):-1;M<0?(_=e,w=\"\"):(_=e.substring(0,M),w=e.substring(M))}else _=e.substring(0,k),w=r+e.substring(k+1);!u&&h&&(_=o(_,1/0));var A=v.length+_.length+w.length+(b?0:a.length),T=A<f?new Array(A=f-A+1).join(i):\"\";return b&&(_=o(T+_,T.length?f-w.length:1/0)),a+=v,e=_+w,(\"<\"===s?a+e+T:\">\"===s?T+a+e:\"^\"===s?T.substring(0,A>>=1)+a+e+T.substring(A):a+(b?e:T+e))+n}}}(e),timeFormat:function(e){var r=e.dateTime,n=e.date,i=e.time,a=e.periods,o=e.days,s=e.shortDays,l=e.months,c=e.shortMonths;function u(t){var e=t.length;function r(r){for(var n,i,a,o=[],s=-1,l=0;++s<e;)37===t.charCodeAt(s)&&(o.push(t.slice(l,s)),null!=(i=Ne[n=t.charAt(++s)])&&(n=t.charAt(++s)),(a=_[n])&&(n=a(r,null==i?\"e\"===n?\" \":\"0\":i)),o.push(n),l=s+1);return o.push(t.slice(l,s)),o.join(\"\")}return r.parse=function(e){var r={y:1900,m:0,d:1,H:0,M:0,S:0,L:0,Z:null};if(f(r,t,e,0)!=e.length)return null;\"p\"in r&&(r.H=r.H%12+12*r.p);var n=null!=r.Z&&Pe!==De,i=new(n?De:Pe);return\"j\"in r?i.setFullYear(r.y,0,r.j):\"W\"in r||\"U\"in r?(\"w\"in r||(r.w=\"W\"in r?1:0),i.setFullYear(r.y,0,1),i.setFullYear(r.y,0,\"W\"in r?(r.w+6)%7+7*r.W-(i.getDay()+5)%7:r.w+7*r.U-(i.getDay()+6)%7)):i.setFullYear(r.y,r.m,r.d),i.setHours(r.H+(r.Z/100|0),r.M+r.Z%100,r.S,r.L),n?i._:i},r.toString=function(){return t},r}function f(t,e,r,n){for(var i,a,o,s=0,l=e.length,c=r.length;s<l;){if(n>=c)return-1;if(37===(i=e.charCodeAt(s++))){if(o=e.charAt(s++),!(a=w[o in Ne?e.charAt(s++):o])||(n=a(t,r,n))<0)return-1}else if(i!=r.charCodeAt(n++))return-1}return n}u.utc=function(t){var e=u(t);function r(t){try{var r=new(Pe=De);return r._=t,e(r)}finally{Pe=Date}}return r.parse=function(t){try{Pe=De;var r=e.parse(t);return r&&r._}finally{Pe=Date}},r.toString=e.toString,r},u.multi=u.utc.multi=or;var h=t.map(),p=qe(o),d=He(o),g=qe(s),v=He(s),m=qe(l),y=He(l),x=qe(c),b=He(c);a.forEach(function(t,e){h.set(t.toLowerCase(),e)});var _={a:function(t){return s[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return c[t.getMonth()]},B:function(t){return l[t.getMonth()]},c:u(r),d:function(t,e){return Ue(t.getDate(),e,2)},e:function(t,e){return Ue(t.getDate(),e,2)},H:function(t,e){return Ue(t.getHours(),e,2)},I:function(t,e){return Ue(t.getHours()%12||12,e,2)},j:function(t,e){return Ue(1+Ie.dayOfYear(t),e,3)},L:function(t,e){return Ue(t.getMilliseconds(),e,3)},m:function(t,e){return Ue(t.getMonth()+1,e,2)},M:function(t,e){return Ue(t.getMinutes(),e,2)},p:function(t){return a[+(t.getHours()>=12)]},S:function(t,e){return Ue(t.getSeconds(),e,2)},U:function(t,e){return Ue(Ie.sundayOfYear(t),e,2)},w:function(t){return t.getDay()},W:function(t,e){return Ue(Ie.mondayOfYear(t),e,2)},x:u(n),X:u(i),y:function(t,e){return Ue(t.getFullYear()%100,e,2)},Y:function(t,e){return Ue(t.getFullYear()%1e4,e,4)},Z:ir,\"%\":function(){return\"%\"}},w={a:function(t,e,r){g.lastIndex=0;var n=g.exec(e.slice(r));return n?(t.w=v.get(n[0].toLowerCase()),r+n[0].length):-1},A:function(t,e,r){p.lastIndex=0;var n=p.exec(e.slice(r));return n?(t.w=d.get(n[0].toLowerCase()),r+n[0].length):-1},b:function(t,e,r){x.lastIndex=0;var n=x.exec(e.slice(r));return n?(t.m=b.get(n[0].toLowerCase()),r+n[0].length):-1},B:function(t,e,r){m.lastIndex=0;var n=m.exec(e.slice(r));return n?(t.m=y.get(n[0].toLowerCase()),r+n[0].length):-1},c:function(t,e,r){return f(t,_.c.toString(),e,r)},d:Ke,e:Ke,H:tr,I:tr,j:Qe,L:nr,m:Je,M:er,p:function(t,e,r){var n=h.get(e.slice(r,r+=2).toLowerCase());return null==n?-1:(t.p=n,r)},S:rr,U:We,w:Ge,W:Ye,x:function(t,e,r){return f(t,_.x.toString(),e,r)},X:function(t,e,r){return f(t,_.X.toString(),e,r)},y:Ze,Y:Xe,Z:$e,\"%\":ar};return u}(e)}};var sr=t.locale({decimal:\".\",thousands:\",\",grouping:[3],currency:[\"$\",\"\"],dateTime:\"%a %b %e %X %Y\",date:\"%m/%d/%Y\",time:\"%H:%M:%S\",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 lr(){}t.format=sr.numberFormat,t.geo={},lr.prototype={s:0,t:0,add:function(t){ur(t,this.t,cr),ur(cr.s,this.s,this),this.s?this.t+=cr.t:this.s=cr.t},reset:function(){this.s=this.t=0},valueOf:function(){return this.s}};var cr=new lr;function ur(t,e,r){var n=r.s=t+e,i=n-t,a=n-i;r.t=t-a+(e-i)}function fr(t,e){t&&pr.hasOwnProperty(t.type)&&pr[t.type](t,e)}t.geo.stream=function(t,e){t&&hr.hasOwnProperty(t.type)?hr[t.type](t,e):fr(t,e)};var hr={Feature:function(t,e){fr(t.geometry,e)},FeatureCollection:function(t,e){for(var r=t.features,n=-1,i=r.length;++n<i;)fr(r[n].geometry,e)}},pr={Sphere:function(t,e){e.sphere()},Point:function(t,e){t=t.coordinates,e.point(t[0],t[1],t[2])},MultiPoint:function(t,e){for(var r=t.coordinates,n=-1,i=r.length;++n<i;)t=r[n],e.point(t[0],t[1],t[2])},LineString:function(t,e){dr(t.coordinates,e,0)},MultiLineString:function(t,e){for(var r=t.coordinates,n=-1,i=r.length;++n<i;)dr(r[n],e,0)},Polygon:function(t,e){gr(t.coordinates,e)},MultiPolygon:function(t,e){for(var r=t.coordinates,n=-1,i=r.length;++n<i;)gr(r[n],e)},GeometryCollection:function(t,e){for(var r=t.geometries,n=-1,i=r.length;++n<i;)fr(r[n],e)}};function dr(t,e,r){var n,i=-1,a=t.length-r;for(e.lineStart();++i<a;)n=t[i],e.point(n[0],n[1],n[2]);e.lineEnd()}function gr(t,e){var r=-1,n=t.length;for(e.polygonStart();++r<n;)dr(t[r],e,1);e.polygonEnd()}t.geo.area=function(e){return vr=0,t.geo.stream(e,Cr),vr};var vr,mr,yr,xr,br,_r,wr,kr,Mr,Ar,Tr,Sr,Er=new lr,Cr={sphere:function(){vr+=4*At},point:D,lineStart:D,lineEnd:D,polygonStart:function(){Er.reset(),Cr.lineStart=Lr},polygonEnd:function(){var t=2*Er;vr+=t<0?4*At+t:t,Cr.lineStart=Cr.lineEnd=Cr.point=D}};function Lr(){var t,e,r,n,i;function a(t,e){e=e*Ct/2+At/4;var a=(t*=Ct)-r,o=a>=0?1:-1,s=o*a,l=Math.cos(e),c=Math.sin(e),u=i*c,f=n*l+u*Math.cos(s),h=u*o*Math.sin(s);Er.add(Math.atan2(h,f)),r=t,n=l,i=c}Cr.point=function(o,s){Cr.point=a,r=(t=o)*Ct,n=Math.cos(s=(e=s)*Ct/2+At/4),i=Math.sin(s)},Cr.lineEnd=function(){a(t,e)}}function zr(t){var e=t[0],r=t[1],n=Math.cos(r);return[n*Math.cos(e),n*Math.sin(e),Math.sin(r)]}function Or(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function Ir(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function Pr(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function Dr(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function Rr(t){var e=Math.sqrt(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}function Br(t){return[Math.atan2(t[1],t[0]),Pt(t[2])]}function Fr(t,e){return y(t[0]-e[0])<kt&&y(t[1]-e[1])<kt}t.geo.bounds=function(){var e,r,n,i,a,o,s,l,c,u,f,h={point:p,lineStart:g,lineEnd:v,polygonStart:function(){h.point=m,h.lineStart=x,h.lineEnd=b,c=0,Cr.polygonStart()},polygonEnd:function(){Cr.polygonEnd(),h.point=p,h.lineStart=g,h.lineEnd=v,Er<0?(e=-(n=180),r=-(i=90)):c>kt?i=90:c<-kt&&(r=-90),f[0]=e,f[1]=n}};function p(t,a){u.push(f=[e=t,n=t]),a<r&&(r=a),a>i&&(i=a)}function d(t,o){var s=zr([t*Ct,o*Ct]);if(l){var c=Ir(l,s),u=Ir([c[1],-c[0],0],c);Rr(u),u=Br(u);var f=t-a,h=f>0?1:-1,d=u[0]*Lt*h,g=y(f)>180;if(g^(h*a<d&&d<h*t))(v=u[1]*Lt)>i&&(i=v);else if(g^(h*a<(d=(d+360)%360-180)&&d<h*t)){var v;(v=-u[1]*Lt)<r&&(r=v)}else o<r&&(r=o),o>i&&(i=o);g?t<a?_(e,t)>_(e,n)&&(n=t):_(t,n)>_(e,n)&&(e=t):n>=e?(t<e&&(e=t),t>n&&(n=t)):t>a?_(e,t)>_(e,n)&&(n=t):_(t,n)>_(e,n)&&(e=t)}else p(t,o);l=s,a=t}function g(){h.point=d}function v(){f[0]=e,f[1]=n,h.point=p,l=null}function m(t,e){if(l){var r=t-a;c+=y(r)>180?r+(r>0?360:-360):r}else o=t,s=e;Cr.point(t,e),d(t,e)}function x(){Cr.lineStart()}function b(){m(o,s),Cr.lineEnd(),y(c)>kt&&(e=-(n=180)),f[0]=e,f[1]=n,l=null}function _(t,e){return(e-=t)<0?e+360:e}function w(t,e){return t[0]-e[0]}function k(t,e){return e[0]<=e[1]?e[0]<=t&&t<=e[1]:t<e[0]||e[1]<t}return function(a){if(i=n=-(e=r=1/0),u=[],t.geo.stream(a,h),c=u.length){u.sort(w);for(var o=1,s=[g=u[0]];o<c;++o)k((p=u[o])[0],g)||k(p[1],g)?(_(g[0],p[1])>_(g[0],g[1])&&(g[1]=p[1]),_(p[0],g[1])>_(g[0],g[1])&&(g[0]=p[0])):s.push(g=p);for(var l,c,p,d=-1/0,g=(o=0,s[c=s.length-1]);o<=c;g=p,++o)p=s[o],(l=_(g[1],p[0]))>d&&(d=l,e=p[0],n=g[1])}return u=f=null,e===1/0||r===1/0?[[NaN,NaN],[NaN,NaN]]:[[e,r],[n,i]]}}(),t.geo.centroid=function(e){mr=yr=xr=br=_r=wr=kr=Mr=Ar=Tr=Sr=0,t.geo.stream(e,Nr);var r=Ar,n=Tr,i=Sr,a=r*r+n*n+i*i;return a<Mt&&(r=wr,n=kr,i=Mr,yr<kt&&(r=xr,n=br,i=_r),(a=r*r+n*n+i*i)<Mt)?[NaN,NaN]:[Math.atan2(n,r)*Lt,Pt(i/Math.sqrt(a))*Lt]};var Nr={sphere:D,point:jr,lineStart:Ur,lineEnd:qr,polygonStart:function(){Nr.lineStart=Hr},polygonEnd:function(){Nr.lineStart=Ur}};function jr(t,e){t*=Ct;var r=Math.cos(e*=Ct);Vr(r*Math.cos(t),r*Math.sin(t),Math.sin(e))}function Vr(t,e,r){xr+=(t-xr)/++mr,br+=(e-br)/mr,_r+=(r-_r)/mr}function Ur(){var t,e,r;function n(n,i){n*=Ct;var a=Math.cos(i*=Ct),o=a*Math.cos(n),s=a*Math.sin(n),l=Math.sin(i),c=Math.atan2(Math.sqrt((c=e*l-r*s)*c+(c=r*o-t*l)*c+(c=t*s-e*o)*c),t*o+e*s+r*l);yr+=c,wr+=c*(t+(t=o)),kr+=c*(e+(e=s)),Mr+=c*(r+(r=l)),Vr(t,e,r)}Nr.point=function(i,a){i*=Ct;var o=Math.cos(a*=Ct);t=o*Math.cos(i),e=o*Math.sin(i),r=Math.sin(a),Nr.point=n,Vr(t,e,r)}}function qr(){Nr.point=jr}function Hr(){var t,e,r,n,i;function a(t,e){t*=Ct;var a=Math.cos(e*=Ct),o=a*Math.cos(t),s=a*Math.sin(t),l=Math.sin(e),c=n*l-i*s,u=i*o-r*l,f=r*s-n*o,h=Math.sqrt(c*c+u*u+f*f),p=r*o+n*s+i*l,d=h&&-It(p)/h,g=Math.atan2(h,p);Ar+=d*c,Tr+=d*u,Sr+=d*f,yr+=g,wr+=g*(r+(r=o)),kr+=g*(n+(n=s)),Mr+=g*(i+(i=l)),Vr(r,n,i)}Nr.point=function(o,s){t=o,e=s,Nr.point=a,o*=Ct;var l=Math.cos(s*=Ct);r=l*Math.cos(o),n=l*Math.sin(o),i=Math.sin(s),Vr(r,n,i)},Nr.lineEnd=function(){a(t,e),Nr.lineEnd=qr,Nr.point=jr}}function Gr(t,e){function r(r,n){return r=t(r,n),e(r[0],r[1])}return t.invert&&e.invert&&(r.invert=function(r,n){return(r=e.invert(r,n))&&t.invert(r[0],r[1])}),r}function Wr(){return!0}function Yr(t,e,r,n,i){var a=[],o=[];if(t.forEach(function(t){if(!((e=t.length-1)<=0)){var e,r=t[0],n=t[e];if(Fr(r,n)){i.lineStart();for(var s=0;s<e;++s)i.point((r=t[s])[0],r[1]);i.lineEnd()}else{var l=new Zr(r,t,null,!0),c=new Zr(r,null,l,!1);l.o=c,a.push(l),o.push(c),l=new Zr(n,t,null,!1),c=new Zr(n,null,l,!0),l.o=c,a.push(l),o.push(c)}}}),o.sort(e),Xr(a),Xr(o),a.length){for(var s=0,l=r,c=o.length;s<c;++s)o[s].e=l=!l;for(var u,f,h=a[0];;){for(var p=h,d=!0;p.v;)if((p=p.n)===h)return;u=p.z,i.lineStart();do{if(p.v=p.o.v=!0,p.e){if(d)for(s=0,c=u.length;s<c;++s)i.point((f=u[s])[0],f[1]);else n(p.x,p.n.x,1,i);p=p.n}else{if(d)for(s=(u=p.p.z).length-1;s>=0;--s)i.point((f=u[s])[0],f[1]);else n(p.x,p.p.x,-1,i);p=p.p}u=(p=p.o).z,d=!d}while(!p.v);i.lineEnd()}}}function Xr(t){if(e=t.length){for(var e,r,n=0,i=t[0];++n<e;)i.n=r=t[n],r.p=i,i=r;i.n=r=t[0],r.p=i}}function Zr(t,e,r,n){this.x=t,this.z=e,this.o=r,this.e=n,this.v=!1,this.n=this.p=null}function $r(e,r,n,i){return function(a,o){var s,l=r(o),c=a.invert(i[0],i[1]),u={point:f,lineStart:p,lineEnd:d,polygonStart:function(){u.point=b,u.lineStart=_,u.lineEnd=w,s=[],g=[]},polygonEnd:function(){u.point=f,u.lineStart=p,u.lineEnd=d,s=t.merge(s);var e=function(t,e){var r=t[0],n=t[1],i=[Math.sin(r),-Math.cos(r),0],a=0,o=0;Er.reset();for(var s=0,l=e.length;s<l;++s){var c=e[s],u=c.length;if(u)for(var f=c[0],h=f[0],p=f[1]/2+At/4,d=Math.sin(p),g=Math.cos(p),v=1;;){v===u&&(v=0);var m=(t=c[v])[0],y=t[1]/2+At/4,x=Math.sin(y),b=Math.cos(y),_=m-h,w=_>=0?1:-1,k=w*_,M=k>At,A=d*x;if(Er.add(Math.atan2(A*w*Math.sin(k),g*b+A*Math.cos(k))),a+=M?_+w*Tt:_,M^h>=r^m>=r){var T=Ir(zr(f),zr(t));Rr(T);var S=Ir(i,T);Rr(S);var E=(M^_>=0?-1:1)*Pt(S[2]);(n>E||n===E&&(T[0]||T[1]))&&(o+=M^_>=0?1:-1)}if(!v++)break;h=m,d=x,g=b,f=t}}return(a<-kt||a<kt&&Er<-kt)^1&o}(c,g);s.length?(x||(o.polygonStart(),x=!0),Yr(s,Qr,e,n,o)):e&&(x||(o.polygonStart(),x=!0),o.lineStart(),n(null,null,1,o),o.lineEnd()),x&&(o.polygonEnd(),x=!1),s=g=null},sphere:function(){o.polygonStart(),o.lineStart(),n(null,null,1,o),o.lineEnd(),o.polygonEnd()}};function f(t,r){var n=a(t,r);e(t=n[0],r=n[1])&&o.point(t,r)}function h(t,e){var r=a(t,e);l.point(r[0],r[1])}function p(){u.point=h,l.lineStart()}function d(){u.point=f,l.lineEnd()}var g,v,m=Kr(),y=r(m),x=!1;function b(t,e){v.push([t,e]);var r=a(t,e);y.point(r[0],r[1])}function _(){y.lineStart(),v=[]}function w(){b(v[0][0],v[0][1]),y.lineEnd();var t,e=y.clean(),r=m.buffer(),n=r.length;if(v.pop(),g.push(v),v=null,n)if(1&e){var i,a=-1;if((n=(t=r[0]).length-1)>0){for(x||(o.polygonStart(),x=!0),o.lineStart();++a<n;)o.point((i=t[a])[0],i[1]);o.lineEnd()}}else n>1&&2&e&&r.push(r.pop().concat(r.shift())),s.push(r.filter(Jr))}return u}}function Jr(t){return t.length>1}function Kr(){var t,e=[];return{lineStart:function(){e.push(t=[])},point:function(e,r){t.push([e,r])},lineEnd:D,buffer:function(){var r=e;return e=[],t=null,r},rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))}}}function Qr(t,e){return((t=t.x)[0]<0?t[1]-Et-kt:Et-t[1])-((e=e.x)[0]<0?e[1]-Et-kt:Et-e[1])}var tn=$r(Wr,function(t){var e,r=NaN,n=NaN,i=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(a,o){var s=a>0?At:-At,l=y(a-r);y(l-At)<kt?(t.point(r,n=(n+o)/2>0?Et:-Et),t.point(i,n),t.lineEnd(),t.lineStart(),t.point(s,n),t.point(a,n),e=0):i!==s&&l>=At&&(y(r-i)<kt&&(r-=i*kt),y(a-s)<kt&&(a-=s*kt),n=function(t,e,r,n){var i,a,o=Math.sin(t-r);return y(o)>kt?Math.atan((Math.sin(e)*(a=Math.cos(n))*Math.sin(r)-Math.sin(n)*(i=Math.cos(e))*Math.sin(t))/(i*a*o)):(e+n)/2}(r,n,a,o),t.point(i,n),t.lineEnd(),t.lineStart(),t.point(s,n),e=0),t.point(r=a,n=o),i=s},lineEnd:function(){t.lineEnd(),r=n=NaN},clean:function(){return 2-e}}},function(t,e,r,n){var i;if(null==t)i=r*Et,n.point(-At,i),n.point(0,i),n.point(At,i),n.point(At,0),n.point(At,-i),n.point(0,-i),n.point(-At,-i),n.point(-At,0),n.point(-At,i);else if(y(t[0]-e[0])>kt){var a=t[0]<e[0]?At:-At;i=r*a/2,n.point(-a,i),n.point(0,i),n.point(a,i)}else n.point(e[0],e[1])},[-At,-At/2]);function en(t,e,r,n){return function(i){var a,o=i.a,s=i.b,l=o.x,c=o.y,u=0,f=1,h=s.x-l,p=s.y-c;if(a=t-l,h||!(a>0)){if(a/=h,h<0){if(a<u)return;a<f&&(f=a)}else if(h>0){if(a>f)return;a>u&&(u=a)}if(a=r-l,h||!(a<0)){if(a/=h,h<0){if(a>f)return;a>u&&(u=a)}else if(h>0){if(a<u)return;a<f&&(f=a)}if(a=e-c,p||!(a>0)){if(a/=p,p<0){if(a<u)return;a<f&&(f=a)}else if(p>0){if(a>f)return;a>u&&(u=a)}if(a=n-c,p||!(a<0)){if(a/=p,p<0){if(a>f)return;a>u&&(u=a)}else if(p>0){if(a<u)return;a<f&&(f=a)}return u>0&&(i.a={x:l+u*h,y:c+u*p}),f<1&&(i.b={x:l+f*h,y:c+f*p}),i}}}}}}var rn=1e9;function nn(e,r,n,i){return function(l){var c,u,f,h,p,d,g,v,m,y,x,b=l,_=Kr(),w=en(e,r,n,i),k={point:T,lineStart:function(){k.point=S,u&&u.push(f=[]);y=!0,m=!1,g=v=NaN},lineEnd:function(){c&&(S(h,p),d&&m&&_.rejoin(),c.push(_.buffer()));k.point=T,m&&l.lineEnd()},polygonStart:function(){l=_,c=[],u=[],x=!0},polygonEnd:function(){l=b,c=t.merge(c);var r=function(t){for(var e=0,r=u.length,n=t[1],i=0;i<r;++i)for(var a,o=1,s=u[i],l=s.length,c=s[0];o<l;++o)a=s[o],c[1]<=n?a[1]>n&&Ot(c,a,t)>0&&++e:a[1]<=n&&Ot(c,a,t)<0&&--e,c=a;return 0!==e}([e,i]),n=x&&r,a=c.length;(n||a)&&(l.polygonStart(),n&&(l.lineStart(),M(null,null,1,l),l.lineEnd()),a&&Yr(c,o,r,M,l),l.polygonEnd()),c=u=f=null}};function M(t,o,l,c){var u=0,f=0;if(null==t||(u=a(t,l))!==(f=a(o,l))||s(t,o)<0^l>0)do{c.point(0===u||3===u?e:n,u>1?i:r)}while((u=(u+l+4)%4)!==f);else c.point(o[0],o[1])}function A(t,a){return e<=t&&t<=n&&r<=a&&a<=i}function T(t,e){A(t,e)&&l.point(t,e)}function S(t,e){var r=A(t=Math.max(-rn,Math.min(rn,t)),e=Math.max(-rn,Math.min(rn,e)));if(u&&f.push([t,e]),y)h=t,p=e,d=r,y=!1,r&&(l.lineStart(),l.point(t,e));else if(r&&m)l.point(t,e);else{var n={a:{x:g,y:v},b:{x:t,y:e}};w(n)?(m||(l.lineStart(),l.point(n.a.x,n.a.y)),l.point(n.b.x,n.b.y),r||l.lineEnd(),x=!1):r&&(l.lineStart(),l.point(t,e),x=!1)}g=t,v=e,m=r}return k};function a(t,i){return y(t[0]-e)<kt?i>0?0:3:y(t[0]-n)<kt?i>0?2:1:y(t[1]-r)<kt?i>0?1:0:i>0?3:2}function o(t,e){return s(t.x,e.x)}function s(t,e){var r=a(t,1),n=a(e,1);return r!==n?r-n:0===r?e[1]-t[1]:1===r?t[0]-e[0]:2===r?t[1]-e[1]:e[0]-t[0]}}function an(t){var e=0,r=At/3,n=Cn(t),i=n(e,r);return i.parallels=function(t){return arguments.length?n(e=t[0]*At/180,r=t[1]*At/180):[e/At*180,r/At*180]},i}function on(t,e){var r=Math.sin(t),n=(r+Math.sin(e))/2,i=1+r*(2*n-r),a=Math.sqrt(i)/n;function o(t,e){var r=Math.sqrt(i-2*n*Math.sin(e))/n;return[r*Math.sin(t*=n),a-r*Math.cos(t)]}return o.invert=function(t,e){var r=a-e;return[Math.atan2(t,r)/n,Pt((i-(t*t+r*r)*n*n)/(2*n))]},o}t.geo.clipExtent=function(){var t,e,r,n,i,a,o={stream:function(t){return i&&(i.valid=!1),(i=a(t)).valid=!0,i},extent:function(s){return arguments.length?(a=nn(t=+s[0][0],e=+s[0][1],r=+s[1][0],n=+s[1][1]),i&&(i.valid=!1,i=null),o):[[t,e],[r,n]]}};return o.extent([[0,0],[960,500]])},(t.geo.conicEqualArea=function(){return an(on)}).raw=on,t.geo.albers=function(){return t.geo.conicEqualArea().rotate([96,0]).center([-.6,38.7]).parallels([29.5,45.5]).scale(1070)},t.geo.albersUsa=function(){var e,r,n,i,a=t.geo.albers(),o=t.geo.conicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),s=t.geo.conicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),l={point:function(t,r){e=[t,r]}};function c(t){var a=t[0],o=t[1];return e=null,r(a,o),e||(n(a,o),e)||i(a,o),e}return c.invert=function(t){var e=a.scale(),r=a.translate(),n=(t[0]-r[0])/e,i=(t[1]-r[1])/e;return(i>=.12&&i<.234&&n>=-.425&&n<-.214?o:i>=.166&&i<.234&&n>=-.214&&n<-.115?s:a).invert(t)},c.stream=function(t){var e=a.stream(t),r=o.stream(t),n=s.stream(t);return{point:function(t,i){e.point(t,i),r.point(t,i),n.point(t,i)},sphere:function(){e.sphere(),r.sphere(),n.sphere()},lineStart:function(){e.lineStart(),r.lineStart(),n.lineStart()},lineEnd:function(){e.lineEnd(),r.lineEnd(),n.lineEnd()},polygonStart:function(){e.polygonStart(),r.polygonStart(),n.polygonStart()},polygonEnd:function(){e.polygonEnd(),r.polygonEnd(),n.polygonEnd()}}},c.precision=function(t){return arguments.length?(a.precision(t),o.precision(t),s.precision(t),c):a.precision()},c.scale=function(t){return arguments.length?(a.scale(t),o.scale(.35*t),s.scale(t),c.translate(a.translate())):a.scale()},c.translate=function(t){if(!arguments.length)return a.translate();var e=a.scale(),u=+t[0],f=+t[1];return r=a.translate(t).clipExtent([[u-.455*e,f-.238*e],[u+.455*e,f+.238*e]]).stream(l).point,n=o.translate([u-.307*e,f+.201*e]).clipExtent([[u-.425*e+kt,f+.12*e+kt],[u-.214*e-kt,f+.234*e-kt]]).stream(l).point,i=s.translate([u-.205*e,f+.212*e]).clipExtent([[u-.214*e+kt,f+.166*e+kt],[u-.115*e-kt,f+.234*e-kt]]).stream(l).point,c},c.scale(1070)};var sn,ln,cn,un,fn,hn,pn={point:D,lineStart:D,lineEnd:D,polygonStart:function(){ln=0,pn.lineStart=dn},polygonEnd:function(){pn.lineStart=pn.lineEnd=pn.point=D,sn+=y(ln/2)}};function dn(){var t,e,r,n;function i(t,e){ln+=n*t-r*e,r=t,n=e}pn.point=function(a,o){pn.point=i,t=r=a,e=n=o},pn.lineEnd=function(){i(t,e)}}var gn={point:function(t,e){t<cn&&(cn=t);t>fn&&(fn=t);e<un&&(un=e);e>hn&&(hn=e)},lineStart:D,lineEnd:D,polygonStart:D,polygonEnd:D};function vn(){var t=mn(4.5),e=[],r={point:n,lineStart:function(){r.point=i},lineEnd:o,polygonStart:function(){r.lineEnd=s},polygonEnd:function(){r.lineEnd=o,r.point=n},pointRadius:function(e){return t=mn(e),r},result:function(){if(e.length){var t=e.join(\"\");return e=[],t}}};function n(r,n){e.push(\"M\",r,\",\",n,t)}function i(t,n){e.push(\"M\",t,\",\",n),r.point=a}function a(t,r){e.push(\"L\",t,\",\",r)}function o(){r.point=n}function s(){e.push(\"Z\")}return r}function mn(t){return\"m0,\"+t+\"a\"+t+\",\"+t+\" 0 1,1 0,\"+-2*t+\"a\"+t+\",\"+t+\" 0 1,1 0,\"+2*t+\"z\"}var yn,xn={point:bn,lineStart:_n,lineEnd:wn,polygonStart:function(){xn.lineStart=kn},polygonEnd:function(){xn.point=bn,xn.lineStart=_n,xn.lineEnd=wn}};function bn(t,e){xr+=t,br+=e,++_r}function _n(){var t,e;function r(r,n){var i=r-t,a=n-e,o=Math.sqrt(i*i+a*a);wr+=o*(t+r)/2,kr+=o*(e+n)/2,Mr+=o,bn(t=r,e=n)}xn.point=function(n,i){xn.point=r,bn(t=n,e=i)}}function wn(){xn.point=bn}function kn(){var t,e,r,n;function i(t,e){var i=t-r,a=e-n,o=Math.sqrt(i*i+a*a);wr+=o*(r+t)/2,kr+=o*(n+e)/2,Mr+=o,Ar+=(o=n*t-r*e)*(r+t),Tr+=o*(n+e),Sr+=3*o,bn(r=t,n=e)}xn.point=function(a,o){xn.point=i,bn(t=r=a,e=n=o)},xn.lineEnd=function(){i(t,e)}}function Mn(t){var e=4.5,r={point:n,lineStart:function(){r.point=i},lineEnd:o,polygonStart:function(){r.lineEnd=s},polygonEnd:function(){r.lineEnd=o,r.point=n},pointRadius:function(t){return e=t,r},result:D};function n(r,n){t.moveTo(r+e,n),t.arc(r,n,e,0,Tt)}function i(e,n){t.moveTo(e,n),r.point=a}function a(e,r){t.lineTo(e,r)}function o(){r.point=n}function s(){t.closePath()}return r}function An(t){var e=.5,r=Math.cos(30*Ct),n=16;function i(e){return(n?function(e){var r,i,o,s,l,c,u,f,h,p,d,g,v={point:m,lineStart:y,lineEnd:b,polygonStart:function(){e.polygonStart(),v.lineStart=_},polygonEnd:function(){e.polygonEnd(),v.lineStart=y}};function m(r,n){r=t(r,n),e.point(r[0],r[1])}function y(){f=NaN,v.point=x,e.lineStart()}function x(r,i){var o=zr([r,i]),s=t(r,i);a(f,h,u,p,d,g,f=s[0],h=s[1],u=r,p=o[0],d=o[1],g=o[2],n,e),e.point(f,h)}function b(){v.point=m,e.lineEnd()}function _(){y(),v.point=w,v.lineEnd=k}function w(t,e){x(r=t,e),i=f,o=h,s=p,l=d,c=g,v.point=x}function k(){a(f,h,u,p,d,g,i,o,r,s,l,c,n,e),v.lineEnd=b,b()}return v}:function(e){return Sn(e,function(r,n){r=t(r,n),e.point(r[0],r[1])})})(e)}function a(n,i,o,s,l,c,u,f,h,p,d,g,v,m){var x=u-n,b=f-i,_=x*x+b*b;if(_>4*e&&v--){var w=s+p,k=l+d,M=c+g,A=Math.sqrt(w*w+k*k+M*M),T=Math.asin(M/=A),S=y(y(M)-1)<kt||y(o-h)<kt?(o+h)/2:Math.atan2(k,w),E=t(S,T),C=E[0],L=E[1],z=C-n,O=L-i,I=b*z-x*O;(I*I/_>e||y((x*z+b*O)/_-.5)>.3||s*p+l*d+c*g<r)&&(a(n,i,o,s,l,c,C,L,S,w/=A,k/=A,M,v,m),m.point(C,L),a(C,L,S,w,k,M,u,f,h,p,d,g,v,m))}}return i.precision=function(t){return arguments.length?(n=(e=t*t)>0&&16,i):Math.sqrt(e)},i}function Tn(t){this.stream=t}function Sn(t,e){return{point:e,sphere:function(){t.sphere()},lineStart:function(){t.lineStart()},lineEnd:function(){t.lineEnd()},polygonStart:function(){t.polygonStart()},polygonEnd:function(){t.polygonEnd()}}}function En(t){return Cn(function(){return t})()}function Cn(e){var r,n,i,a,o,s,l=An(function(t,e){return[(t=r(t,e))[0]*c+a,o-t[1]*c]}),c=150,u=480,f=250,h=0,p=0,d=0,g=0,v=0,m=tn,x=z,b=null,_=null;function w(t){return[(t=i(t[0]*Ct,t[1]*Ct))[0]*c+a,o-t[1]*c]}function k(t){return(t=i.invert((t[0]-a)/c,(o-t[1])/c))&&[t[0]*Lt,t[1]*Lt]}function M(){i=Gr(n=In(d,g,v),r);var t=r(h,p);return a=u-t[0]*c,o=f+t[1]*c,A()}function A(){return s&&(s.valid=!1,s=null),w}return w.stream=function(t){return s&&(s.valid=!1),(s=Ln(m(n,l(x(t))))).valid=!0,s},w.clipAngle=function(t){return arguments.length?(m=null==t?(b=t,tn):function(t){var e=Math.cos(t),r=e>0,n=y(e)>kt;return $r(i,function(t){var e,s,l,c,u;return{lineStart:function(){c=l=!1,u=1},point:function(f,h){var p,d=[f,h],g=i(f,h),v=r?g?0:o(f,h):g?o(f+(f<0?At:-At),h):0;if(!e&&(c=l=g)&&t.lineStart(),g!==l&&(p=a(e,d),(Fr(e,p)||Fr(d,p))&&(d[0]+=kt,d[1]+=kt,g=i(d[0],d[1]))),g!==l)u=0,g?(t.lineStart(),p=a(d,e),t.point(p[0],p[1])):(p=a(e,d),t.point(p[0],p[1]),t.lineEnd()),e=p;else if(n&&e&&r^g){var m;v&s||!(m=a(d,e,!0))||(u=0,r?(t.lineStart(),t.point(m[0][0],m[0][1]),t.point(m[1][0],m[1][1]),t.lineEnd()):(t.point(m[1][0],m[1][1]),t.lineEnd(),t.lineStart(),t.point(m[0][0],m[0][1])))}!g||e&&Fr(e,d)||t.point(d[0],d[1]),e=d,l=g,s=v},lineEnd:function(){l&&t.lineEnd(),e=null},clean:function(){return u|(c&&l)<<1}}},Bn(t,6*Ct),r?[0,-t]:[-At,t-At]);function i(t,r){return Math.cos(t)*Math.cos(r)>e}function a(t,r,n){var i=[1,0,0],a=Ir(zr(t),zr(r)),o=Or(a,a),s=a[0],l=o-s*s;if(!l)return!n&&t;var c=e*o/l,u=-e*s/l,f=Ir(i,a),h=Dr(i,c);Pr(h,Dr(a,u));var p=f,d=Or(h,p),g=Or(p,p),v=d*d-g*(Or(h,h)-1);if(!(v<0)){var m=Math.sqrt(v),x=Dr(p,(-d-m)/g);if(Pr(x,h),x=Br(x),!n)return x;var b,_=t[0],w=r[0],k=t[1],M=r[1];w<_&&(b=_,_=w,w=b);var A=w-_,T=y(A-At)<kt;if(!T&&M<k&&(b=k,k=M,M=b),T||A<kt?T?k+M>0^x[1]<(y(x[0]-_)<kt?k:M):k<=x[1]&&x[1]<=M:A>At^(_<=x[0]&&x[0]<=w)){var S=Dr(p,(-d+m)/g);return Pr(S,h),[x,Br(S)]}}}function o(e,n){var i=r?t:At-t,a=0;return e<-i?a|=1:e>i&&(a|=2),n<-i?a|=4:n>i&&(a|=8),a}}((b=+t)*Ct),A()):b},w.clipExtent=function(t){return arguments.length?(_=t,x=t?nn(t[0][0],t[0][1],t[1][0],t[1][1]):z,A()):_},w.scale=function(t){return arguments.length?(c=+t,M()):c},w.translate=function(t){return arguments.length?(u=+t[0],f=+t[1],M()):[u,f]},w.center=function(t){return arguments.length?(h=t[0]%360*Ct,p=t[1]%360*Ct,M()):[h*Lt,p*Lt]},w.rotate=function(t){return arguments.length?(d=t[0]%360*Ct,g=t[1]%360*Ct,v=t.length>2?t[2]%360*Ct:0,M()):[d*Lt,g*Lt,v*Lt]},t.rebind(w,l,\"precision\"),function(){return r=e.apply(this,arguments),w.invert=r.invert&&k,M()}}function Ln(t){return Sn(t,function(e,r){t.point(e*Ct,r*Ct)})}function zn(t,e){return[t,e]}function On(t,e){return[t>At?t-Tt:t<-At?t+Tt:t,e]}function In(t,e,r){return t?e||r?Gr(Dn(t),Rn(e,r)):Dn(t):e||r?Rn(e,r):On}function Pn(t){return function(e,r){return[(e+=t)>At?e-Tt:e<-At?e+Tt:e,r]}}function Dn(t){var e=Pn(t);return e.invert=Pn(-t),e}function Rn(t,e){var r=Math.cos(t),n=Math.sin(t),i=Math.cos(e),a=Math.sin(e);function o(t,e){var o=Math.cos(e),s=Math.cos(t)*o,l=Math.sin(t)*o,c=Math.sin(e),u=c*r+s*n;return[Math.atan2(l*i-u*a,s*r-c*n),Pt(u*i+l*a)]}return o.invert=function(t,e){var o=Math.cos(e),s=Math.cos(t)*o,l=Math.sin(t)*o,c=Math.sin(e),u=c*i-l*a;return[Math.atan2(l*i+c*a,s*r+u*n),Pt(u*r-s*n)]},o}function Bn(t,e){var r=Math.cos(t),n=Math.sin(t);return function(i,a,o,s){var l=o*e;null!=i?(i=Fn(r,i),a=Fn(r,a),(o>0?i<a:i>a)&&(i+=o*Tt)):(i=t+o*Tt,a=t-.5*l);for(var c,u=i;o>0?u>a:u<a;u-=l)s.point((c=Br([r,-n*Math.cos(u),-n*Math.sin(u)]))[0],c[1])}}function Fn(t,e){var r=zr(e);r[0]-=t,Rr(r);var n=It(-r[1]);return((-r[2]<0?-n:n)+2*Math.PI-kt)%(2*Math.PI)}function Nn(e,r,n){var i=t.range(e,r-kt,n).concat(r);return function(t){return i.map(function(e){return[t,e]})}}function jn(e,r,n){var i=t.range(e,r-kt,n).concat(r);return function(t){return i.map(function(e){return[e,t]})}}function Vn(t){return t.source}function Un(t){return t.target}t.geo.path=function(){var e,r,n,i,a,o=4.5;function s(e){return e&&(\"function\"==typeof o&&i.pointRadius(+o.apply(this,arguments)),a&&a.valid||(a=n(i)),t.geo.stream(e,a)),i.result()}function l(){return a=null,s}return s.area=function(e){return sn=0,t.geo.stream(e,n(pn)),sn},s.centroid=function(e){return xr=br=_r=wr=kr=Mr=Ar=Tr=Sr=0,t.geo.stream(e,n(xn)),Sr?[Ar/Sr,Tr/Sr]:Mr?[wr/Mr,kr/Mr]:_r?[xr/_r,br/_r]:[NaN,NaN]},s.bounds=function(e){return fn=hn=-(cn=un=1/0),t.geo.stream(e,n(gn)),[[cn,un],[fn,hn]]},s.projection=function(t){return arguments.length?(n=(e=t)?t.stream||(r=t,i=An(function(t,e){return r([t*Lt,e*Lt])}),function(t){return Ln(i(t))}):z,l()):e;var r,i},s.context=function(t){return arguments.length?(i=null==(r=t)?new vn:new Mn(t),\"function\"!=typeof o&&i.pointRadius(o),l()):r},s.pointRadius=function(t){return arguments.length?(o=\"function\"==typeof t?t:(i.pointRadius(+t),+t),s):o},s.projection(t.geo.albersUsa()).context(null)},t.geo.transform=function(t){return{stream:function(e){var r=new Tn(e);for(var n in t)r[n]=t[n];return r}}},Tn.prototype={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()}},t.geo.projection=En,t.geo.projectionMutator=Cn,(t.geo.equirectangular=function(){return En(zn)}).raw=zn.invert=zn,t.geo.rotation=function(t){function e(e){return(e=t(e[0]*Ct,e[1]*Ct))[0]*=Lt,e[1]*=Lt,e}return t=In(t[0]%360*Ct,t[1]*Ct,t.length>2?t[2]*Ct:0),e.invert=function(e){return(e=t.invert(e[0]*Ct,e[1]*Ct))[0]*=Lt,e[1]*=Lt,e},e},On.invert=zn,t.geo.circle=function(){var t,e,r=[0,0],n=6;function i(){var t=\"function\"==typeof r?r.apply(this,arguments):r,n=In(-t[0]*Ct,-t[1]*Ct,0).invert,i=[];return e(null,null,1,{point:function(t,e){i.push(t=n(t,e)),t[0]*=Lt,t[1]*=Lt}}),{type:\"Polygon\",coordinates:[i]}}return i.origin=function(t){return arguments.length?(r=t,i):r},i.angle=function(r){return arguments.length?(e=Bn((t=+r)*Ct,n*Ct),i):t},i.precision=function(r){return arguments.length?(e=Bn(t*Ct,(n=+r)*Ct),i):n},i.angle(90)},t.geo.distance=function(t,e){var r,n=(e[0]-t[0])*Ct,i=t[1]*Ct,a=e[1]*Ct,o=Math.sin(n),s=Math.cos(n),l=Math.sin(i),c=Math.cos(i),u=Math.sin(a),f=Math.cos(a);return Math.atan2(Math.sqrt((r=f*o)*r+(r=c*u-l*f*s)*r),l*u+c*f*s)},t.geo.graticule=function(){var e,r,n,i,a,o,s,l,c,u,f,h,p=10,d=p,g=90,v=360,m=2.5;function x(){return{type:\"MultiLineString\",coordinates:b()}}function b(){return t.range(Math.ceil(i/g)*g,n,g).map(f).concat(t.range(Math.ceil(l/v)*v,s,v).map(h)).concat(t.range(Math.ceil(r/p)*p,e,p).filter(function(t){return y(t%g)>kt}).map(c)).concat(t.range(Math.ceil(o/d)*d,a,d).filter(function(t){return y(t%v)>kt}).map(u))}return x.lines=function(){return b().map(function(t){return{type:\"LineString\",coordinates:t}})},x.outline=function(){return{type:\"Polygon\",coordinates:[f(i).concat(h(s).slice(1),f(n).reverse().slice(1),h(l).reverse().slice(1))]}},x.extent=function(t){return arguments.length?x.majorExtent(t).minorExtent(t):x.minorExtent()},x.majorExtent=function(t){return arguments.length?(i=+t[0][0],n=+t[1][0],l=+t[0][1],s=+t[1][1],i>n&&(t=i,i=n,n=t),l>s&&(t=l,l=s,s=t),x.precision(m)):[[i,l],[n,s]]},x.minorExtent=function(t){return arguments.length?(r=+t[0][0],e=+t[1][0],o=+t[0][1],a=+t[1][1],r>e&&(t=r,r=e,e=t),o>a&&(t=o,o=a,a=t),x.precision(m)):[[r,o],[e,a]]},x.step=function(t){return arguments.length?x.majorStep(t).minorStep(t):x.minorStep()},x.majorStep=function(t){return arguments.length?(g=+t[0],v=+t[1],x):[g,v]},x.minorStep=function(t){return arguments.length?(p=+t[0],d=+t[1],x):[p,d]},x.precision=function(t){return arguments.length?(m=+t,c=Nn(o,a,90),u=jn(r,e,m),f=Nn(l,s,90),h=jn(i,n,m),x):m},x.majorExtent([[-180,-90+kt],[180,90-kt]]).minorExtent([[-180,-80-kt],[180,80+kt]])},t.geo.greatArc=function(){var e,r,n=Vn,i=Un;function a(){return{type:\"LineString\",coordinates:[e||n.apply(this,arguments),r||i.apply(this,arguments)]}}return a.distance=function(){return t.geo.distance(e||n.apply(this,arguments),r||i.apply(this,arguments))},a.source=function(t){return arguments.length?(n=t,e=\"function\"==typeof t?null:t,a):n},a.target=function(t){return arguments.length?(i=t,r=\"function\"==typeof t?null:t,a):i},a.precision=function(){return arguments.length?a:0},a},t.geo.interpolate=function(t,e){return r=t[0]*Ct,n=t[1]*Ct,i=e[0]*Ct,a=e[1]*Ct,o=Math.cos(n),s=Math.sin(n),l=Math.cos(a),c=Math.sin(a),u=o*Math.cos(r),f=o*Math.sin(r),h=l*Math.cos(i),p=l*Math.sin(i),d=2*Math.asin(Math.sqrt(Rt(a-n)+o*l*Rt(i-r))),g=1/Math.sin(d),(v=d?function(t){var e=Math.sin(t*=d)*g,r=Math.sin(d-t)*g,n=r*u+e*h,i=r*f+e*p,a=r*s+e*c;return[Math.atan2(i,n)*Lt,Math.atan2(a,Math.sqrt(n*n+i*i))*Lt]}:function(){return[r*Lt,n*Lt]}).distance=d,v;var r,n,i,a,o,s,l,c,u,f,h,p,d,g,v},t.geo.length=function(e){return yn=0,t.geo.stream(e,qn),yn};var qn={sphere:D,point:D,lineStart:function(){var t,e,r;function n(n,i){var a=Math.sin(i*=Ct),o=Math.cos(i),s=y((n*=Ct)-t),l=Math.cos(s);yn+=Math.atan2(Math.sqrt((s=o*Math.sin(s))*s+(s=r*a-e*o*l)*s),e*a+r*o*l),t=n,e=a,r=o}qn.point=function(i,a){t=i*Ct,e=Math.sin(a*=Ct),r=Math.cos(a),qn.point=n},qn.lineEnd=function(){qn.point=qn.lineEnd=D}},lineEnd:D,polygonStart:D,polygonEnd:D};function Hn(t,e){function r(e,r){var n=Math.cos(e),i=Math.cos(r),a=t(n*i);return[a*i*Math.sin(e),a*Math.sin(r)]}return r.invert=function(t,r){var n=Math.sqrt(t*t+r*r),i=e(n),a=Math.sin(i),o=Math.cos(i);return[Math.atan2(t*a,n*o),Math.asin(n&&r*a/n)]},r}var Gn=Hn(function(t){return Math.sqrt(2/(1+t))},function(t){return 2*Math.asin(t/2)});(t.geo.azimuthalEqualArea=function(){return En(Gn)}).raw=Gn;var Wn=Hn(function(t){var e=Math.acos(t);return e&&e/Math.sin(e)},z);function Yn(t,e){var r=Math.cos(t),n=function(t){return Math.tan(At/4+t/2)},i=t===e?Math.sin(t):Math.log(r/Math.cos(e))/Math.log(n(e)/n(t)),a=r*Math.pow(n(t),i)/i;if(!i)return $n;function o(t,e){a>0?e<-Et+kt&&(e=-Et+kt):e>Et-kt&&(e=Et-kt);var r=a/Math.pow(n(e),i);return[r*Math.sin(i*t),a-r*Math.cos(i*t)]}return o.invert=function(t,e){var r=a-e,n=zt(i)*Math.sqrt(t*t+r*r);return[Math.atan2(t,r)/i,2*Math.atan(Math.pow(a/n,1/i))-Et]},o}function Xn(t,e){var r=Math.cos(t),n=t===e?Math.sin(t):(r-Math.cos(e))/(e-t),i=r/n+t;if(y(n)<kt)return zn;function a(t,e){var r=i-e;return[r*Math.sin(n*t),i-r*Math.cos(n*t)]}return a.invert=function(t,e){var r=i-e;return[Math.atan2(t,r)/n,i-zt(n)*Math.sqrt(t*t+r*r)]},a}(t.geo.azimuthalEquidistant=function(){return En(Wn)}).raw=Wn,(t.geo.conicConformal=function(){return an(Yn)}).raw=Yn,(t.geo.conicEquidistant=function(){return an(Xn)}).raw=Xn;var Zn=Hn(function(t){return 1/t},Math.atan);function $n(t,e){return[t,Math.log(Math.tan(At/4+e/2))]}function Jn(t){var e,r=En(t),n=r.scale,i=r.translate,a=r.clipExtent;return r.scale=function(){var t=n.apply(r,arguments);return t===r?e?r.clipExtent(null):r:t},r.translate=function(){var t=i.apply(r,arguments);return t===r?e?r.clipExtent(null):r:t},r.clipExtent=function(t){var o=a.apply(r,arguments);if(o===r){if(e=null==t){var s=At*n(),l=i();a([[l[0]-s,l[1]-s],[l[0]+s,l[1]+s]])}}else e&&(o=null);return o},r.clipExtent(null)}(t.geo.gnomonic=function(){return En(Zn)}).raw=Zn,$n.invert=function(t,e){return[t,2*Math.atan(Math.exp(e))-Et]},(t.geo.mercator=function(){return Jn($n)}).raw=$n;var Kn=Hn(function(){return 1},Math.asin);(t.geo.orthographic=function(){return En(Kn)}).raw=Kn;var Qn=Hn(function(t){return 1/(1+t)},function(t){return 2*Math.atan(t)});function ti(t,e){return[Math.log(Math.tan(At/4+e/2)),-t]}function ei(t){return t[0]}function ri(t){return t[1]}function ni(t){for(var e=t.length,r=[0,1],n=2,i=2;i<e;i++){for(;n>1&&Ot(t[r[n-2]],t[r[n-1]],t[i])<=0;)--n;r[n++]=i}return r.slice(0,n)}function ii(t,e){return t[0]-e[0]||t[1]-e[1]}(t.geo.stereographic=function(){return En(Qn)}).raw=Qn,ti.invert=function(t,e){return[-e,2*Math.atan(Math.exp(t))-Et]},(t.geo.transverseMercator=function(){var t=Jn(ti),e=t.center,r=t.rotate;return t.center=function(t){return t?e([-t[1],t[0]]):[(t=e())[1],-t[0]]},t.rotate=function(t){return t?r([t[0],t[1],t.length>2?t[2]+90:90]):[(t=r())[0],t[1],t[2]-90]},r([0,0,90])}).raw=ti,t.geom={},t.geom.hull=function(t){var e=ei,r=ri;if(arguments.length)return n(t);function n(t){if(t.length<3)return[];var n,i=ve(e),a=ve(r),o=t.length,s=[],l=[];for(n=0;n<o;n++)s.push([+i.call(this,t[n],n),+a.call(this,t[n],n),n]);for(s.sort(ii),n=0;n<o;n++)l.push([s[n][0],-s[n][1]]);var c=ni(s),u=ni(l),f=u[0]===c[0],h=u[u.length-1]===c[c.length-1],p=[];for(n=c.length-1;n>=0;--n)p.push(t[s[c[n]][2]]);for(n=+f;n<u.length-h;++n)p.push(t[s[u[n]][2]]);return p}return n.x=function(t){return arguments.length?(e=t,n):e},n.y=function(t){return arguments.length?(r=t,n):r},n},t.geom.polygon=function(t){return U(t,ai),t};var ai=t.geom.polygon.prototype=[];function oi(t,e,r){return(r[0]-e[0])*(t[1]-e[1])<(r[1]-e[1])*(t[0]-e[0])}function si(t,e,r,n){var i=t[0],a=r[0],o=e[0]-i,s=n[0]-a,l=t[1],c=r[1],u=e[1]-l,f=n[1]-c,h=(s*(l-c)-f*(i-a))/(f*o-s*u);return[i+h*o,l+h*u]}function li(t){var e=t[0],r=t[t.length-1];return!(e[0]-r[0]||e[1]-r[1])}ai.area=function(){for(var t,e=-1,r=this.length,n=this[r-1],i=0;++e<r;)t=n,n=this[e],i+=t[1]*n[0]-t[0]*n[1];return.5*i},ai.centroid=function(t){var e,r,n=-1,i=this.length,a=0,o=0,s=this[i-1];for(arguments.length||(t=-1/(6*this.area()));++n<i;)e=s,s=this[n],r=e[0]*s[1]-s[0]*e[1],a+=(e[0]+s[0])*r,o+=(e[1]+s[1])*r;return[a*t,o*t]},ai.clip=function(t){for(var e,r,n,i,a,o,s=li(t),l=-1,c=this.length-li(this),u=this[c-1];++l<c;){for(e=t.slice(),t.length=0,i=this[l],a=e[(n=e.length-s)-1],r=-1;++r<n;)oi(o=e[r],u,i)?(oi(a,u,i)||t.push(si(a,o,u,i)),t.push(o)):oi(a,u,i)&&t.push(si(a,o,u,i)),a=o;s&&t.push(t[0]),u=i}return t};var ci,ui,fi,hi,pi,di=[],gi=[];function vi(){Pi(this),this.edge=this.site=this.circle=null}function mi(t){var e=di.pop()||new vi;return e.site=t,e}function yi(t){Si(t),fi.remove(t),di.push(t),Pi(t)}function xi(t){var e=t.circle,r=e.x,n=e.cy,i={x:r,y:n},a=t.P,o=t.N,s=[t];yi(t);for(var l=a;l.circle&&y(r-l.circle.x)<kt&&y(n-l.circle.cy)<kt;)a=l.P,s.unshift(l),yi(l),l=a;s.unshift(l),Si(l);for(var c=o;c.circle&&y(r-c.circle.x)<kt&&y(n-c.circle.cy)<kt;)o=c.N,s.push(c),yi(c),c=o;s.push(c),Si(c);var u,f=s.length;for(u=1;u<f;++u)c=s[u],l=s[u-1],zi(c.edge,l.site,c.site,i);l=s[0],(c=s[f-1]).edge=Li(l.site,c.site,null,i),Ti(l),Ti(c)}function bi(t){for(var e,r,n,i,a=t.x,o=t.y,s=fi._;s;)if((n=_i(s,o)-a)>kt)s=s.L;else{if(!((i=a-wi(s,o))>kt)){n>-kt?(e=s.P,r=s):i>-kt?(e=s,r=s.N):e=r=s;break}if(!s.R){e=s;break}s=s.R}var l=mi(t);if(fi.insert(e,l),e||r){if(e===r)return Si(e),r=mi(e.site),fi.insert(l,r),l.edge=r.edge=Li(e.site,l.site),Ti(e),void Ti(r);if(r){Si(e),Si(r);var c=e.site,u=c.x,f=c.y,h=t.x-u,p=t.y-f,d=r.site,g=d.x-u,v=d.y-f,m=2*(h*v-p*g),y=h*h+p*p,x=g*g+v*v,b={x:(v*y-p*x)/m+u,y:(h*x-g*y)/m+f};zi(r.edge,c,d,b),l.edge=Li(c,t,null,b),r.edge=Li(t,d,null,b),Ti(e),Ti(r)}else l.edge=Li(e.site,l.site)}}function _i(t,e){var r=t.site,n=r.x,i=r.y,a=i-e;if(!a)return n;var o=t.P;if(!o)return-1/0;var s=(r=o.site).x,l=r.y,c=l-e;if(!c)return s;var u=s-n,f=1/a-1/c,h=u/c;return f?(-h+Math.sqrt(h*h-2*f*(u*u/(-2*c)-l+c/2+i-a/2)))/f+n:(n+s)/2}function wi(t,e){var r=t.N;if(r)return _i(r,e);var n=t.site;return n.y===e?n.x:1/0}function ki(t){this.site=t,this.edges=[]}function Mi(t,e){return e.angle-t.angle}function Ai(){Pi(this),this.x=this.y=this.arc=this.site=this.cy=null}function Ti(t){var e=t.P,r=t.N;if(e&&r){var n=e.site,i=t.site,a=r.site;if(n!==a){var o=i.x,s=i.y,l=n.x-o,c=n.y-s,u=a.x-o,f=2*(l*(v=a.y-s)-c*u);if(!(f>=-Mt)){var h=l*l+c*c,p=u*u+v*v,d=(v*h-c*p)/f,g=(l*p-u*h)/f,v=g+s,m=gi.pop()||new Ai;m.arc=t,m.site=i,m.x=d+o,m.y=v+Math.sqrt(d*d+g*g),m.cy=v,t.circle=m;for(var y=null,x=pi._;x;)if(m.y<x.y||m.y===x.y&&m.x<=x.x){if(!x.L){y=x.P;break}x=x.L}else{if(!x.R){y=x;break}x=x.R}pi.insert(y,m),y||(hi=m)}}}}function Si(t){var e=t.circle;e&&(e.P||(hi=e.N),pi.remove(e),gi.push(e),Pi(e),t.circle=null)}function Ei(t,e){var r=t.b;if(r)return!0;var n,i,a=t.a,o=e[0][0],s=e[1][0],l=e[0][1],c=e[1][1],u=t.l,f=t.r,h=u.x,p=u.y,d=f.x,g=f.y,v=(h+d)/2,m=(p+g)/2;if(g===p){if(v<o||v>=s)return;if(h>d){if(a){if(a.y>=c)return}else a={x:v,y:l};r={x:v,y:c}}else{if(a){if(a.y<l)return}else a={x:v,y:c};r={x:v,y:l}}}else if(i=m-(n=(h-d)/(g-p))*v,n<-1||n>1)if(h>d){if(a){if(a.y>=c)return}else a={x:(l-i)/n,y:l};r={x:(c-i)/n,y:c}}else{if(a){if(a.y<l)return}else a={x:(c-i)/n,y:c};r={x:(l-i)/n,y:l}}else if(p<g){if(a){if(a.x>=s)return}else a={x:o,y:n*o+i};r={x:s,y:n*s+i}}else{if(a){if(a.x<o)return}else a={x:s,y:n*s+i};r={x:o,y:n*o+i}}return t.a=a,t.b=r,!0}function Ci(t,e){this.l=t,this.r=e,this.a=this.b=null}function Li(t,e,r,n){var i=new Ci(t,e);return ci.push(i),r&&zi(i,t,e,r),n&&zi(i,e,t,n),ui[t.i].edges.push(new Oi(i,t,e)),ui[e.i].edges.push(new Oi(i,e,t)),i}function zi(t,e,r,n){t.a||t.b?t.l===r?t.b=n:t.a=n:(t.a=n,t.l=e,t.r=r)}function Oi(t,e,r){var n=t.a,i=t.b;this.edge=t,this.site=e,this.angle=r?Math.atan2(r.y-e.y,r.x-e.x):t.l===e?Math.atan2(i.x-n.x,n.y-i.y):Math.atan2(n.x-i.x,i.y-n.y)}function Ii(){this._=null}function Pi(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function Di(t,e){var r=e,n=e.R,i=r.U;i?i.L===r?i.L=n:i.R=n:t._=n,n.U=i,r.U=n,r.R=n.L,r.R&&(r.R.U=r),n.L=r}function Ri(t,e){var r=e,n=e.L,i=r.U;i?i.L===r?i.L=n:i.R=n:t._=n,n.U=i,r.U=n,r.L=n.R,r.L&&(r.L.U=r),n.R=r}function Bi(t){for(;t.L;)t=t.L;return t}function Fi(t,e){var r,n,i,a=t.sort(Ni).pop();for(ci=[],ui=new Array(t.length),fi=new Ii,pi=new Ii;;)if(i=hi,a&&(!i||a.y<i.y||a.y===i.y&&a.x<i.x))a.x===r&&a.y===n||(ui[a.i]=new ki(a),bi(a),r=a.x,n=a.y),a=t.pop();else{if(!i)break;xi(i.arc)}e&&(function(t){for(var e,r=ci,n=en(t[0][0],t[0][1],t[1][0],t[1][1]),i=r.length;i--;)(!Ei(e=r[i],t)||!n(e)||y(e.a.x-e.b.x)<kt&&y(e.a.y-e.b.y)<kt)&&(e.a=e.b=null,r.splice(i,1))}(e),function(t){for(var e,r,n,i,a,o,s,l,c,u,f=t[0][0],h=t[1][0],p=t[0][1],d=t[1][1],g=ui,v=g.length;v--;)if((a=g[v])&&a.prepare())for(l=(s=a.edges).length,o=0;o<l;)n=(u=s[o].end()).x,i=u.y,e=(c=s[++o%l].start()).x,r=c.y,(y(n-e)>kt||y(i-r)>kt)&&(s.splice(o,0,new Oi((m=a.site,x=u,b=y(n-f)<kt&&d-i>kt?{x:f,y:y(e-f)<kt?r:d}:y(i-d)<kt&&h-n>kt?{x:y(r-d)<kt?e:h,y:d}:y(n-h)<kt&&i-p>kt?{x:h,y:y(e-h)<kt?r:p}:y(i-p)<kt&&n-f>kt?{x:y(r-p)<kt?e:f,y:p}:null,_=void 0,_=new Ci(m,null),_.a=x,_.b=b,ci.push(_),_),a.site,null)),++l);var m,x,b,_}(e));var o={cells:ui,edges:ci};return fi=pi=ci=ui=null,o}function Ni(t,e){return e.y-t.y||e.x-t.x}ki.prototype.prepare=function(){for(var t,e=this.edges,r=e.length;r--;)(t=e[r].edge).b&&t.a||e.splice(r,1);return e.sort(Mi),e.length},Oi.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}},Ii.prototype={insert:function(t,e){var r,n,i;if(t){if(e.P=t,e.N=t.N,t.N&&(t.N.P=e),t.N=e,t.R){for(t=t.R;t.L;)t=t.L;t.L=e}else t.R=e;r=t}else this._?(t=Bi(this._),e.P=null,e.N=t,t.P=t.L=e,r=t):(e.P=e.N=null,this._=e,r=null);for(e.L=e.R=null,e.U=r,e.C=!0,t=e;r&&r.C;)r===(n=r.U).L?(i=n.R)&&i.C?(r.C=i.C=!1,n.C=!0,t=n):(t===r.R&&(Di(this,r),r=(t=r).U),r.C=!1,n.C=!0,Ri(this,n)):(i=n.L)&&i.C?(r.C=i.C=!1,n.C=!0,t=n):(t===r.L&&(Ri(this,r),r=(t=r).U),r.C=!1,n.C=!0,Di(this,n)),r=t.U;this._.C=!1},remove:function(t){t.N&&(t.N.P=t.P),t.P&&(t.P.N=t.N),t.N=t.P=null;var e,r,n,i=t.U,a=t.L,o=t.R;if(r=a?o?Bi(o):a:o,i?i.L===t?i.L=r:i.R=r:this._=r,a&&o?(n=r.C,r.C=t.C,r.L=a,a.U=r,r!==o?(i=r.U,r.U=t.U,t=r.R,i.L=t,r.R=o,o.U=r):(r.U=i,i=r,t=r.R)):(n=t.C,t=r),t&&(t.U=i),!n)if(t&&t.C)t.C=!1;else{do{if(t===this._)break;if(t===i.L){if((e=i.R).C&&(e.C=!1,i.C=!0,Di(this,i),e=i.R),e.L&&e.L.C||e.R&&e.R.C){e.R&&e.R.C||(e.L.C=!1,e.C=!0,Ri(this,e),e=i.R),e.C=i.C,i.C=e.R.C=!1,Di(this,i),t=this._;break}}else if((e=i.L).C&&(e.C=!1,i.C=!0,Ri(this,i),e=i.L),e.L&&e.L.C||e.R&&e.R.C){e.L&&e.L.C||(e.R.C=!1,e.C=!0,Di(this,e),e=i.L),e.C=i.C,i.C=e.L.C=!1,Ri(this,i),t=this._;break}e.C=!0,t=i,i=i.U}while(!t.C);t&&(t.C=!1)}}},t.geom.voronoi=function(t){var e=ei,r=ri,n=e,i=r,a=ji;if(t)return o(t);function o(t){var e=new Array(t.length),r=a[0][0],n=a[0][1],i=a[1][0],o=a[1][1];return Fi(s(t),a).cells.forEach(function(a,s){var l=a.edges,c=a.site;(e[s]=l.length?l.map(function(t){var e=t.start();return[e.x,e.y]}):c.x>=r&&c.x<=i&&c.y>=n&&c.y<=o?[[r,o],[i,o],[i,n],[r,n]]:[]).point=t[s]}),e}function s(t){return t.map(function(t,e){return{x:Math.round(n(t,e)/kt)*kt,y:Math.round(i(t,e)/kt)*kt,i:e}})}return o.links=function(t){return Fi(s(t)).edges.filter(function(t){return t.l&&t.r}).map(function(e){return{source:t[e.l.i],target:t[e.r.i]}})},o.triangles=function(t){var e=[];return Fi(s(t)).cells.forEach(function(r,n){for(var i,a,o,s,l=r.site,c=r.edges.sort(Mi),u=-1,f=c.length,h=c[f-1].edge,p=h.l===l?h.r:h.l;++u<f;)h,i=p,p=(h=c[u].edge).l===l?h.r:h.l,n<i.i&&n<p.i&&(o=i,s=p,((a=l).x-s.x)*(o.y-a.y)-(a.x-o.x)*(s.y-a.y)<0)&&e.push([t[n],t[i.i],t[p.i]])}),e},o.x=function(t){return arguments.length?(n=ve(e=t),o):e},o.y=function(t){return arguments.length?(i=ve(r=t),o):r},o.clipExtent=function(t){return arguments.length?(a=null==t?ji:t,o):a===ji?null:a},o.size=function(t){return arguments.length?o.clipExtent(t&&[[0,0],t]):a===ji?null:a&&a[1]},o};var ji=[[-1e6,-1e6],[1e6,1e6]];function Vi(t){return t.x}function Ui(t){return t.y}function qi(e,r){e=t.rgb(e),r=t.rgb(r);var n=e.r,i=e.g,a=e.b,o=r.r-n,s=r.g-i,l=r.b-a;return function(t){return\"#\"+ce(Math.round(n+o*t))+ce(Math.round(i+s*t))+ce(Math.round(a+l*t))}}function Hi(t,e){var r,n={},i={};for(r in t)r in e?n[r]=Zi(t[r],e[r]):i[r]=t[r];for(r in e)r in t||(i[r]=e[r]);return function(t){for(r in n)i[r]=n[r](t);return i}}function Gi(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}function Wi(t,e){var r,n,i,a=Yi.lastIndex=Xi.lastIndex=0,o=-1,s=[],l=[];for(t+=\"\",e+=\"\";(r=Yi.exec(t))&&(n=Xi.exec(e));)(i=n.index)>a&&(i=e.slice(a,i),s[o]?s[o]+=i:s[++o]=i),(r=r[0])===(n=n[0])?s[o]?s[o]+=n:s[++o]=n:(s[++o]=null,l.push({i:o,x:Gi(r,n)})),a=Xi.lastIndex;return a<e.length&&(i=e.slice(a),s[o]?s[o]+=i:s[++o]=i),s.length<2?l[0]?(e=l[0].x,function(t){return e(t)+\"\"}):function(){return e}:(e=l.length,function(t){for(var r,n=0;n<e;++n)s[(r=l[n]).i]=r.x(t);return s.join(\"\")})}t.geom.delaunay=function(e){return t.geom.voronoi().triangles(e)},t.geom.quadtree=function(t,e,r,n,i){var a,o=ei,s=ri;if(a=arguments.length)return o=Vi,s=Ui,3===a&&(i=r,n=e,r=e=0),l(t);function l(t){var l,c,u,f,h,p,d,g,v,m=ve(o),x=ve(s);if(null!=e)p=e,d=r,g=n,v=i;else if(g=v=-(p=d=1/0),c=[],u=[],h=t.length,a)for(f=0;f<h;++f)(l=t[f]).x<p&&(p=l.x),l.y<d&&(d=l.y),l.x>g&&(g=l.x),l.y>v&&(v=l.y),c.push(l.x),u.push(l.y);else for(f=0;f<h;++f){var b=+m(l=t[f],f),_=+x(l,f);b<p&&(p=b),_<d&&(d=_),b>g&&(g=b),_>v&&(v=_),c.push(b),u.push(_)}var w=g-p,k=v-d;function M(t,e,r,n,i,a,o,s){if(!isNaN(r)&&!isNaN(n))if(t.leaf){var l=t.x,c=t.y;if(null!=l)if(y(l-r)+y(c-n)<.01)A(t,e,r,n,i,a,o,s);else{var u=t.point;t.x=t.y=t.point=null,A(t,u,l,c,i,a,o,s),A(t,e,r,n,i,a,o,s)}else t.x=r,t.y=n,t.point=e}else A(t,e,r,n,i,a,o,s)}function A(t,e,r,n,i,a,o,s){var l=.5*(i+o),c=.5*(a+s),u=r>=l,f=n>=c,h=f<<1|u;t.leaf=!1,u?i=l:o=l,f?a=c:s=c,M(t=t.nodes[h]||(t.nodes[h]={leaf:!0,nodes:[],point:null,x:null,y:null,add:function(t){M(T,t,+m(t,++f),+x(t,f),p,d,g,v)}}),e,r,n,i,a,o,s)}w>k?v=d+w:g=p+k;var T={leaf:!0,nodes:[],point:null,x:null,y:null,add:function(t){M(T,t,+m(t,++f),+x(t,f),p,d,g,v)}};if(T.visit=function(t){!function t(e,r,n,i,a,o){if(!e(r,n,i,a,o)){var s=.5*(n+a),l=.5*(i+o),c=r.nodes;c[0]&&t(e,c[0],n,i,s,l),c[1]&&t(e,c[1],s,i,a,l),c[2]&&t(e,c[2],n,l,s,o),c[3]&&t(e,c[3],s,l,a,o)}}(t,T,p,d,g,v)},T.find=function(t){return function(t,e,r,n,i,a,o){var s,l=1/0;return function t(c,u,f,h,p){if(!(u>a||f>o||h<n||p<i)){if(d=c.point){var d,g=e-c.x,v=r-c.y,m=g*g+v*v;if(m<l){var y=Math.sqrt(l=m);n=e-y,i=r-y,a=e+y,o=r+y,s=d}}for(var x=c.nodes,b=.5*(u+h),_=.5*(f+p),w=(r>=_)<<1|e>=b,k=w+4;w<k;++w)if(c=x[3&w])switch(3&w){case 0:t(c,u,f,b,_);break;case 1:t(c,b,f,h,_);break;case 2:t(c,u,_,b,p);break;case 3:t(c,b,_,h,p)}}}(t,n,i,a,o),s}(T,t[0],t[1],p,d,g,v)},f=-1,null==e){for(;++f<h;)M(T,t[f],c[f],u[f],p,d,g,v);--f}else t.forEach(T.add);return c=u=t=l=null,T}return l.x=function(t){return arguments.length?(o=t,l):o},l.y=function(t){return arguments.length?(s=t,l):s},l.extent=function(t){return arguments.length?(null==t?e=r=n=i=null:(e=+t[0][0],r=+t[0][1],n=+t[1][0],i=+t[1][1]),l):null==e?null:[[e,r],[n,i]]},l.size=function(t){return arguments.length?(null==t?e=r=n=i=null:(e=r=0,n=+t[0],i=+t[1]),l):null==e?null:[n-e,i-r]},l},t.interpolateRgb=qi,t.interpolateObject=Hi,t.interpolateNumber=Gi,t.interpolateString=Wi;var Yi=/[-+]?(?:\\d+\\.?\\d*|\\.?\\d+)(?:[eE][-+]?\\d+)?/g,Xi=new RegExp(Yi.source,\"g\");function Zi(e,r){for(var n,i=t.interpolators.length;--i>=0&&!(n=t.interpolators[i](e,r)););return n}function $i(t,e){var r,n=[],i=[],a=t.length,o=e.length,s=Math.min(t.length,e.length);for(r=0;r<s;++r)n.push(Zi(t[r],e[r]));for(;r<a;++r)i[r]=t[r];for(;r<o;++r)i[r]=e[r];return function(t){for(r=0;r<s;++r)i[r]=n[r](t);return i}}t.interpolate=Zi,t.interpolators=[function(t,e){var r=typeof e;return(\"string\"===r?ge.has(e.toLowerCase())||/^(#|rgb\\(|hsl\\()/i.test(e)?qi:Wi:e instanceof Vt?qi:Array.isArray(e)?$i:\"object\"===r&&isNaN(e)?Hi:Gi)(t,e)}],t.interpolateArray=$i;var Ji=function(){return z},Ki=t.map({linear:Ji,poly:function(t){return function(e){return Math.pow(e,t)}},quad:function(){return ra},cubic:function(){return na},sin:function(){return aa},exp:function(){return oa},circle:function(){return sa},elastic:function(t,e){var r;arguments.length<2&&(e=.45);arguments.length?r=e/Tt*Math.asin(1/t):(t=1,r=e/4);return function(n){return 1+t*Math.pow(2,-10*n)*Math.sin((n-r)*Tt/e)}},back:function(t){t||(t=1.70158);return function(e){return e*e*((t+1)*e-t)}},bounce:function(){return la}}),Qi=t.map({in:z,out:ta,\"in-out\":ea,\"out-in\":function(t){return ea(ta(t))}});function ta(t){return function(e){return 1-t(1-e)}}function ea(t){return function(e){return.5*(e<.5?t(2*e):2-t(2-2*e))}}function ra(t){return t*t}function na(t){return t*t*t}function ia(t){if(t<=0)return 0;if(t>=1)return 1;var e=t*t,r=e*t;return 4*(t<.5?r:3*(t-e)+r-.75)}function aa(t){return 1-Math.cos(t*Et)}function oa(t){return Math.pow(2,10*(t-1))}function sa(t){return 1-Math.sqrt(1-t*t)}function la(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}function ca(t,e){return e-=t,function(r){return Math.round(t+e*r)}}function ua(t){var e,r,n,i=[t.a,t.b],a=[t.c,t.d],o=ha(i),s=fa(i,a),l=ha(((e=a)[0]+=(n=-s)*(r=i)[0],e[1]+=n*r[1],e))||0;i[0]*a[1]<a[0]*i[1]&&(i[0]*=-1,i[1]*=-1,o*=-1,s*=-1),this.rotate=(o?Math.atan2(i[1],i[0]):Math.atan2(-a[0],a[1]))*Lt,this.translate=[t.e,t.f],this.scale=[o,l],this.skew=l?Math.atan2(s,l)*Lt:0}function fa(t,e){return t[0]*e[0]+t[1]*e[1]}function ha(t){var e=Math.sqrt(fa(t,t));return e&&(t[0]/=e,t[1]/=e),e}t.ease=function(t){var e,n=t.indexOf(\"-\"),i=n>=0?t.slice(0,n):t,a=n>=0?t.slice(n+1):\"in\";return i=Ki.get(i)||Ji,a=Qi.get(a)||z,e=a(i.apply(null,r.call(arguments,1))),function(t){return t<=0?0:t>=1?1:e(t)}},t.interpolateHcl=function(e,r){e=t.hcl(e),r=t.hcl(r);var n=e.h,i=e.c,a=e.l,o=r.h-n,s=r.c-i,l=r.l-a;isNaN(s)&&(s=0,i=isNaN(i)?r.c:i);isNaN(o)?(o=0,n=isNaN(n)?r.h:n):o>180?o-=360:o<-180&&(o+=360);return function(t){return Yt(n+o*t,i+s*t,a+l*t)+\"\"}},t.interpolateHsl=function(e,r){e=t.hsl(e),r=t.hsl(r);var n=e.h,i=e.s,a=e.l,o=r.h-n,s=r.s-i,l=r.l-a;isNaN(s)&&(s=0,i=isNaN(i)?r.s:i);isNaN(o)?(o=0,n=isNaN(n)?r.h:n):o>180?o-=360:o<-180&&(o+=360);return function(t){return Ht(n+o*t,i+s*t,a+l*t)+\"\"}},t.interpolateLab=function(e,r){e=t.lab(e),r=t.lab(r);var n=e.l,i=e.a,a=e.b,o=r.l-n,s=r.a-i,l=r.b-a;return function(t){return te(n+o*t,i+s*t,a+l*t)+\"\"}},t.interpolateRound=ca,t.transform=function(e){var r=i.createElementNS(t.ns.prefix.svg,\"g\");return(t.transform=function(t){if(null!=t){r.setAttribute(\"transform\",t);var e=r.transform.baseVal.consolidate()}return new ua(e?e.matrix:pa)})(e)},ua.prototype.toString=function(){return\"translate(\"+this.translate+\")rotate(\"+this.rotate+\")skewX(\"+this.skew+\")scale(\"+this.scale+\")\"};var pa={a:1,b:0,c:0,d:1,e:0,f:0};function da(t){return t.length?t.pop()+\",\":\"\"}function ga(e,r){var n=[],i=[];return e=t.transform(e),r=t.transform(r),function(t,e,r,n){if(t[0]!==e[0]||t[1]!==e[1]){var i=r.push(\"translate(\",null,\",\",null,\")\");n.push({i:i-4,x:Gi(t[0],e[0])},{i:i-2,x:Gi(t[1],e[1])})}else(e[0]||e[1])&&r.push(\"translate(\"+e+\")\")}(e.translate,r.translate,n,i),function(t,e,r,n){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),n.push({i:r.push(da(r)+\"rotate(\",null,\")\")-2,x:Gi(t,e)})):e&&r.push(da(r)+\"rotate(\"+e+\")\")}(e.rotate,r.rotate,n,i),function(t,e,r,n){t!==e?n.push({i:r.push(da(r)+\"skewX(\",null,\")\")-2,x:Gi(t,e)}):e&&r.push(da(r)+\"skewX(\"+e+\")\")}(e.skew,r.skew,n,i),function(t,e,r,n){if(t[0]!==e[0]||t[1]!==e[1]){var i=r.push(da(r)+\"scale(\",null,\",\",null,\")\");n.push({i:i-4,x:Gi(t[0],e[0])},{i:i-2,x:Gi(t[1],e[1])})}else 1===e[0]&&1===e[1]||r.push(da(r)+\"scale(\"+e+\")\")}(e.scale,r.scale,n,i),e=r=null,function(t){for(var e,r=-1,a=i.length;++r<a;)n[(e=i[r]).i]=e.x(t);return n.join(\"\")}}function va(t,e){return e=(e-=t=+t)||1/e,function(r){return(r-t)/e}}function ma(t,e){return e=(e-=t=+t)||1/e,function(r){return Math.max(0,Math.min(1,(r-t)/e))}}function ya(t){for(var e=t.source,r=t.target,n=function(t,e){if(t===e)return t;var r=xa(t),n=xa(e),i=r.pop(),a=n.pop(),o=null;for(;i===a;)o=i,i=r.pop(),a=n.pop();return o}(e,r),i=[e];e!==n;)e=e.parent,i.push(e);for(var a=i.length;r!==n;)i.splice(a,0,r),r=r.parent;return i}function xa(t){for(var e=[],r=t.parent;null!=r;)e.push(t),t=r,r=r.parent;return e.push(t),e}function ba(t){t.fixed|=2}function _a(t){t.fixed&=-7}function wa(t){t.fixed|=4,t.px=t.x,t.py=t.y}function ka(t){t.fixed&=-5}t.interpolateTransform=ga,t.layout={},t.layout.bundle=function(){return function(t){for(var e=[],r=-1,n=t.length;++r<n;)e.push(ya(t[r]));return e}},t.layout.chord=function(){var e,r,n,i,a,o,s,l={},c=0;function u(){var l,u,h,p,d,g={},v=[],m=t.range(i),y=[];for(e=[],r=[],l=0,p=-1;++p<i;){for(u=0,d=-1;++d<i;)u+=n[p][d];v.push(u),y.push(t.range(i)),l+=u}for(a&&m.sort(function(t,e){return a(v[t],v[e])}),o&&y.forEach(function(t,e){t.sort(function(t,r){return o(n[e][t],n[e][r])})}),l=(Tt-c*i)/l,u=0,p=-1;++p<i;){for(h=u,d=-1;++d<i;){var x=m[p],b=y[x][d],_=n[x][b],w=u,k=u+=_*l;g[x+\"-\"+b]={index:x,subindex:b,startAngle:w,endAngle:k,value:_}}r[x]={index:x,startAngle:h,endAngle:u,value:v[x]},u+=c}for(p=-1;++p<i;)for(d=p-1;++d<i;){var M=g[p+\"-\"+d],A=g[d+\"-\"+p];(M.value||A.value)&&e.push(M.value<A.value?{source:A,target:M}:{source:M,target:A})}s&&f()}function f(){e.sort(function(t,e){return s((t.source.value+t.target.value)/2,(e.source.value+e.target.value)/2)})}return l.matrix=function(t){return arguments.length?(i=(n=t)&&n.length,e=r=null,l):n},l.padding=function(t){return arguments.length?(c=t,e=r=null,l):c},l.sortGroups=function(t){return arguments.length?(a=t,e=r=null,l):a},l.sortSubgroups=function(t){return arguments.length?(o=t,e=null,l):o},l.sortChords=function(t){return arguments.length?(s=t,e&&f(),l):s},l.chords=function(){return e||u(),e},l.groups=function(){return r||u(),r},l},t.layout.force=function(){var e,r,n,i,a,o,s={},l=t.dispatch(\"start\",\"tick\",\"end\"),c=[1,1],u=.9,f=Ma,h=Aa,p=-30,d=Ta,g=.1,v=.64,m=[],y=[];function x(t){return function(e,r,n,i){if(e.point!==t){var a=e.cx-t.x,o=e.cy-t.y,s=i-r,l=a*a+o*o;if(s*s/v<l){if(l<d){var c=e.charge/l;t.px-=a*c,t.py-=o*c}return!0}if(e.point&&l&&l<d){c=e.pointCharge/l;t.px-=a*c,t.py-=o*c}}return!e.charge}}function b(e){e.px=t.event.x,e.py=t.event.y,s.resume()}return s.tick=function(){if((n*=.99)<.005)return e=null,l.end({type:\"end\",alpha:n=0}),!0;var r,s,f,h,d,v,b,_,w,k=m.length,M=y.length;for(s=0;s<M;++s)h=(f=y[s]).source,(v=(_=(d=f.target).x-h.x)*_+(w=d.y-h.y)*w)&&(_*=v=n*a[s]*((v=Math.sqrt(v))-i[s])/v,w*=v,d.x-=_*(b=h.weight+d.weight?h.weight/(h.weight+d.weight):.5),d.y-=w*b,h.x+=_*(b=1-b),h.y+=w*b);if((b=n*g)&&(_=c[0]/2,w=c[1]/2,s=-1,b))for(;++s<k;)(f=m[s]).x+=(_-f.x)*b,f.y+=(w-f.y)*b;if(p)for(!function t(e,r,n){var i=0,a=0;e.charge=0;if(!e.leaf)for(var o,s=e.nodes,l=s.length,c=-1;++c<l;)null!=(o=s[c])&&(t(o,r,n),e.charge+=o.charge,i+=o.charge*o.cx,a+=o.charge*o.cy);if(e.point){e.leaf||(e.point.x+=Math.random()-.5,e.point.y+=Math.random()-.5);var u=r*n[e.point.index];e.charge+=e.pointCharge=u,i+=u*e.point.x,a+=u*e.point.y}e.cx=i/e.charge;e.cy=a/e.charge}(r=t.geom.quadtree(m),n,o),s=-1;++s<k;)(f=m[s]).fixed||r.visit(x(f));for(s=-1;++s<k;)(f=m[s]).fixed?(f.x=f.px,f.y=f.py):(f.x-=(f.px-(f.px=f.x))*u,f.y-=(f.py-(f.py=f.y))*u);l.tick({type:\"tick\",alpha:n})},s.nodes=function(t){return arguments.length?(m=t,s):m},s.links=function(t){return arguments.length?(y=t,s):y},s.size=function(t){return arguments.length?(c=t,s):c},s.linkDistance=function(t){return arguments.length?(f=\"function\"==typeof t?t:+t,s):f},s.distance=s.linkDistance,s.linkStrength=function(t){return arguments.length?(h=\"function\"==typeof t?t:+t,s):h},s.friction=function(t){return arguments.length?(u=+t,s):u},s.charge=function(t){return arguments.length?(p=\"function\"==typeof t?t:+t,s):p},s.chargeDistance=function(t){return arguments.length?(d=t*t,s):Math.sqrt(d)},s.gravity=function(t){return arguments.length?(g=+t,s):g},s.theta=function(t){return arguments.length?(v=t*t,s):Math.sqrt(v)},s.alpha=function(t){return arguments.length?(t=+t,n?t>0?n=t:(e.c=null,e.t=NaN,e=null,l.end({type:\"end\",alpha:n=0})):t>0&&(l.start({type:\"start\",alpha:n=t}),e=Me(s.tick)),s):n},s.start=function(){var t,e,r,n=m.length,l=y.length,u=c[0],d=c[1];for(t=0;t<n;++t)(r=m[t]).index=t,r.weight=0;for(t=0;t<l;++t)\"number\"==typeof(r=y[t]).source&&(r.source=m[r.source]),\"number\"==typeof r.target&&(r.target=m[r.target]),++r.source.weight,++r.target.weight;for(t=0;t<n;++t)r=m[t],isNaN(r.x)&&(r.x=g(\"x\",u)),isNaN(r.y)&&(r.y=g(\"y\",d)),isNaN(r.px)&&(r.px=r.x),isNaN(r.py)&&(r.py=r.y);if(i=[],\"function\"==typeof f)for(t=0;t<l;++t)i[t]=+f.call(this,y[t],t);else for(t=0;t<l;++t)i[t]=f;if(a=[],\"function\"==typeof h)for(t=0;t<l;++t)a[t]=+h.call(this,y[t],t);else for(t=0;t<l;++t)a[t]=h;if(o=[],\"function\"==typeof p)for(t=0;t<n;++t)o[t]=+p.call(this,m[t],t);else for(t=0;t<n;++t)o[t]=p;function g(r,i){if(!e){for(e=new Array(n),c=0;c<n;++c)e[c]=[];for(c=0;c<l;++c){var a=y[c];e[a.source.index].push(a.target),e[a.target.index].push(a.source)}}for(var o,s=e[t],c=-1,u=s.length;++c<u;)if(!isNaN(o=s[c][r]))return o;return Math.random()*i}return s.resume()},s.resume=function(){return s.alpha(.1)},s.stop=function(){return s.alpha(0)},s.drag=function(){if(r||(r=t.behavior.drag().origin(z).on(\"dragstart.force\",ba).on(\"drag.force\",b).on(\"dragend.force\",_a)),!arguments.length)return r;this.on(\"mouseover.force\",wa).on(\"mouseout.force\",ka).call(r)},t.rebind(s,l,\"on\")};var Ma=20,Aa=1,Ta=1/0;function Sa(e,r){return t.rebind(e,r,\"sort\",\"children\",\"value\"),e.nodes=e,e.links=Ia,e}function Ea(t,e){for(var r=[t];null!=(t=r.pop());)if(e(t),(i=t.children)&&(n=i.length))for(var n,i;--n>=0;)r.push(i[n])}function Ca(t,e){for(var r=[t],n=[];null!=(t=r.pop());)if(n.push(t),(a=t.children)&&(i=a.length))for(var i,a,o=-1;++o<i;)r.push(a[o]);for(;null!=(t=n.pop());)e(t)}function La(t){return t.children}function za(t){return t.value}function Oa(t,e){return e.value-t.value}function Ia(e){return t.merge(e.map(function(t){return(t.children||[]).map(function(e){return{source:t,target:e}})}))}t.layout.hierarchy=function(){var t=Oa,e=La,r=za;function n(i){var a,o=[i],s=[];for(i.depth=0;null!=(a=o.pop());)if(s.push(a),(c=e.call(n,a,a.depth))&&(l=c.length)){for(var l,c,u;--l>=0;)o.push(u=c[l]),u.parent=a,u.depth=a.depth+1;r&&(a.value=0),a.children=c}else r&&(a.value=+r.call(n,a,a.depth)||0),delete a.children;return Ca(i,function(e){var n,i;t&&(n=e.children)&&n.sort(t),r&&(i=e.parent)&&(i.value+=e.value)}),s}return n.sort=function(e){return arguments.length?(t=e,n):t},n.children=function(t){return arguments.length?(e=t,n):e},n.value=function(t){return arguments.length?(r=t,n):r},n.revalue=function(t){return r&&(Ea(t,function(t){t.children&&(t.value=0)}),Ca(t,function(t){var e;t.children||(t.value=+r.call(n,t,t.depth)||0),(e=t.parent)&&(e.value+=t.value)})),t},n},t.layout.partition=function(){var e=t.layout.hierarchy(),r=[1,1];function n(t,n){var i=e.call(this,t,n);return function t(e,r,n,i){var a=e.children;if(e.x=r,e.y=e.depth*i,e.dx=n,e.dy=i,a&&(o=a.length)){var o,s,l,c=-1;for(n=e.value?n/e.value:0;++c<o;)t(s=a[c],r,l=s.value*n,i),r+=l}}(i[0],0,r[0],r[1]/function t(e){var r=e.children,n=0;if(r&&(i=r.length))for(var i,a=-1;++a<i;)n=Math.max(n,t(r[a]));return 1+n}(i[0])),i}return n.size=function(t){return arguments.length?(r=t,n):r},Sa(n,e)},t.layout.pie=function(){var e=Number,r=Pa,n=0,i=Tt,a=0;function o(s){var l,c=s.length,u=s.map(function(t,r){return+e.call(o,t,r)}),f=+(\"function\"==typeof n?n.apply(this,arguments):n),h=(\"function\"==typeof i?i.apply(this,arguments):i)-f,p=Math.min(Math.abs(h)/c,+(\"function\"==typeof a?a.apply(this,arguments):a)),d=p*(h<0?-1:1),g=t.sum(u),v=g?(h-c*d)/g:0,m=t.range(c),y=[];return null!=r&&m.sort(r===Pa?function(t,e){return u[e]-u[t]}:function(t,e){return r(s[t],s[e])}),m.forEach(function(t){y[t]={data:s[t],value:l=u[t],startAngle:f,endAngle:f+=l*v+d,padAngle:p}}),y}return o.value=function(t){return arguments.length?(e=t,o):e},o.sort=function(t){return arguments.length?(r=t,o):r},o.startAngle=function(t){return arguments.length?(n=t,o):n},o.endAngle=function(t){return arguments.length?(i=t,o):i},o.padAngle=function(t){return arguments.length?(a=t,o):a},o};var Pa={};function Da(t){return t.x}function Ra(t){return t.y}function Ba(t,e,r){t.y0=e,t.y=r}t.layout.stack=function(){var e=z,r=ja,n=Va,i=Ba,a=Da,o=Ra;function s(l,c){if(!(p=l.length))return l;var u=l.map(function(t,r){return e.call(s,t,r)}),f=u.map(function(t){return t.map(function(t,e){return[a.call(s,t,e),o.call(s,t,e)]})}),h=r.call(s,f,c);u=t.permute(u,h),f=t.permute(f,h);var p,d,g,v,m=n.call(s,f,c),y=u[0].length;for(g=0;g<y;++g)for(i.call(s,u[0][g],v=m[g],f[0][g][1]),d=1;d<p;++d)i.call(s,u[d][g],v+=f[d-1][g][1],f[d][g][1]);return l}return s.values=function(t){return arguments.length?(e=t,s):e},s.order=function(t){return arguments.length?(r=\"function\"==typeof t?t:Fa.get(t)||ja,s):r},s.offset=function(t){return arguments.length?(n=\"function\"==typeof t?t:Na.get(t)||Va,s):n},s.x=function(t){return arguments.length?(a=t,s):a},s.y=function(t){return arguments.length?(o=t,s):o},s.out=function(t){return arguments.length?(i=t,s):i},s};var Fa=t.map({\"inside-out\":function(e){var r,n,i=e.length,a=e.map(Ua),o=e.map(qa),s=t.range(i).sort(function(t,e){return a[t]-a[e]}),l=0,c=0,u=[],f=[];for(r=0;r<i;++r)n=s[r],l<c?(l+=o[n],u.push(n)):(c+=o[n],f.push(n));return f.reverse().concat(u)},reverse:function(e){return t.range(e.length).reverse()},default:ja}),Na=t.map({silhouette:function(t){var e,r,n,i=t.length,a=t[0].length,o=[],s=0,l=[];for(r=0;r<a;++r){for(e=0,n=0;e<i;e++)n+=t[e][r][1];n>s&&(s=n),o.push(n)}for(r=0;r<a;++r)l[r]=(s-o[r])/2;return l},wiggle:function(t){var e,r,n,i,a,o,s,l,c,u=t.length,f=t[0],h=f.length,p=[];for(p[0]=l=c=0,r=1;r<h;++r){for(e=0,i=0;e<u;++e)i+=t[e][r][1];for(e=0,a=0,s=f[r][0]-f[r-1][0];e<u;++e){for(n=0,o=(t[e][r][1]-t[e][r-1][1])/(2*s);n<e;++n)o+=(t[n][r][1]-t[n][r-1][1])/s;a+=o*t[e][r][1]}p[r]=l-=i?a/i*s:0,l<c&&(c=l)}for(r=0;r<h;++r)p[r]-=c;return p},expand:function(t){var e,r,n,i=t.length,a=t[0].length,o=1/i,s=[];for(r=0;r<a;++r){for(e=0,n=0;e<i;e++)n+=t[e][r][1];if(n)for(e=0;e<i;e++)t[e][r][1]/=n;else for(e=0;e<i;e++)t[e][r][1]=o}for(r=0;r<a;++r)s[r]=0;return s},zero:Va});function ja(e){return t.range(e.length)}function Va(t){for(var e=-1,r=t[0].length,n=[];++e<r;)n[e]=0;return n}function Ua(t){for(var e,r=1,n=0,i=t[0][1],a=t.length;r<a;++r)(e=t[r][1])>i&&(n=r,i=e);return n}function qa(t){return t.reduce(Ha,0)}function Ha(t,e){return t+e[1]}function Ga(t,e){return Wa(t,Math.ceil(Math.log(e.length)/Math.LN2+1))}function Wa(t,e){for(var r=-1,n=+t[0],i=(t[1]-n)/e,a=[];++r<=e;)a[r]=i*r+n;return a}function Ya(e){return[t.min(e),t.max(e)]}function Xa(t,e){return t.value-e.value}function Za(t,e){var r=t._pack_next;t._pack_next=e,e._pack_prev=t,e._pack_next=r,r._pack_prev=e}function $a(t,e){t._pack_next=e,e._pack_prev=t}function Ja(t,e){var r=e.x-t.x,n=e.y-t.y,i=t.r+e.r;return.999*i*i>r*r+n*n}function Ka(t){if((e=t.children)&&(l=e.length)){var e,r,n,i,a,o,s,l,c=1/0,u=-1/0,f=1/0,h=-1/0;if(e.forEach(Qa),(r=e[0]).x=-r.r,r.y=0,x(r),l>1&&((n=e[1]).x=n.r,n.y=0,x(n),l>2))for(eo(r,n,i=e[2]),x(i),Za(r,i),r._pack_prev=i,Za(i,n),n=r._pack_next,a=3;a<l;a++){eo(r,n,i=e[a]);var p=0,d=1,g=1;for(o=n._pack_next;o!==n;o=o._pack_next,d++)if(Ja(o,i)){p=1;break}if(1==p)for(s=r._pack_prev;s!==o._pack_prev&&!Ja(s,i);s=s._pack_prev,g++);p?(d<g||d==g&&n.r<r.r?$a(r,n=o):$a(r=s,n),a--):(Za(r,i),n=i,x(i))}var v=(c+u)/2,m=(f+h)/2,y=0;for(a=0;a<l;a++)(i=e[a]).x-=v,i.y-=m,y=Math.max(y,i.r+Math.sqrt(i.x*i.x+i.y*i.y));t.r=y,e.forEach(to)}function x(t){c=Math.min(t.x-t.r,c),u=Math.max(t.x+t.r,u),f=Math.min(t.y-t.r,f),h=Math.max(t.y+t.r,h)}}function Qa(t){t._pack_next=t._pack_prev=t}function to(t){delete t._pack_next,delete t._pack_prev}function eo(t,e,r){var n=t.r+r.r,i=e.x-t.x,a=e.y-t.y;if(n&&(i||a)){var o=e.r+r.r,s=i*i+a*a,l=.5+((n*=n)-(o*=o))/(2*s),c=Math.sqrt(Math.max(0,2*o*(n+s)-(n-=s)*n-o*o))/(2*s);r.x=t.x+l*i+c*a,r.y=t.y+l*a-c*i}else r.x=t.x+n,r.y=t.y}function ro(t,e){return t.parent==e.parent?1:2}function no(t){var e=t.children;return e.length?e[0]:t.t}function io(t){var e,r=t.children;return(e=r.length)?r[e-1]:t.t}function ao(t,e,r){var n=r/(e.i-t.i);e.c-=n,e.s+=r,t.c+=n,e.z+=r,e.m+=r}function oo(t,e,r){return t.a.parent===e.parent?t.a:r}function so(t){return{x:t.x,y:t.y,dx:t.dx,dy:t.dy}}function lo(t,e){var r=t.x+e[3],n=t.y+e[0],i=t.dx-e[1]-e[3],a=t.dy-e[0]-e[2];return i<0&&(r+=i/2,i=0),a<0&&(n+=a/2,a=0),{x:r,y:n,dx:i,dy:a}}function co(t){var e=t[0],r=t[t.length-1];return e<r?[e,r]:[r,e]}function uo(t){return t.rangeExtent?t.rangeExtent():co(t.range())}function fo(t,e,r,n){var i=r(t[0],t[1]),a=n(e[0],e[1]);return function(t){return a(i(t))}}function ho(t,e){var r,n=0,i=t.length-1,a=t[n],o=t[i];return o<a&&(r=n,n=i,i=r,r=a,a=o,o=r),t[n]=e.floor(a),t[i]=e.ceil(o),t}function po(t){return t?{floor:function(e){return Math.floor(e/t)*t},ceil:function(e){return Math.ceil(e/t)*t}}:go}t.layout.histogram=function(){var e=!0,r=Number,n=Ya,i=Ga;function a(a,o){for(var s,l,c=[],u=a.map(r,this),f=n.call(this,u,o),h=i.call(this,f,u,o),p=(o=-1,u.length),d=h.length-1,g=e?1:1/p;++o<d;)(s=c[o]=[]).dx=h[o+1]-(s.x=h[o]),s.y=0;if(d>0)for(o=-1;++o<p;)(l=u[o])>=f[0]&&l<=f[1]&&((s=c[t.bisect(h,l,1,d)-1]).y+=g,s.push(a[o]));return c}return a.value=function(t){return arguments.length?(r=t,a):r},a.range=function(t){return arguments.length?(n=ve(t),a):n},a.bins=function(t){return arguments.length?(i=\"number\"==typeof t?function(e){return Wa(e,t)}:ve(t),a):i},a.frequency=function(t){return arguments.length?(e=!!t,a):e},a},t.layout.pack=function(){var e,r=t.layout.hierarchy().sort(Xa),n=0,i=[1,1];function a(t,a){var o=r.call(this,t,a),s=o[0],l=i[0],c=i[1],u=null==e?Math.sqrt:\"function\"==typeof e?e:function(){return e};if(s.x=s.y=0,Ca(s,function(t){t.r=+u(t.value)}),Ca(s,Ka),n){var f=n*(e?1:Math.max(2*s.r/l,2*s.r/c))/2;Ca(s,function(t){t.r+=f}),Ca(s,Ka),Ca(s,function(t){t.r-=f})}return function t(e,r,n,i){var a=e.children;e.x=r+=i*e.x;e.y=n+=i*e.y;e.r*=i;if(a)for(var o=-1,s=a.length;++o<s;)t(a[o],r,n,i)}(s,l/2,c/2,e?1:1/Math.max(2*s.r/l,2*s.r/c)),o}return a.size=function(t){return arguments.length?(i=t,a):i},a.radius=function(t){return arguments.length?(e=null==t||\"function\"==typeof t?t:+t,a):e},a.padding=function(t){return arguments.length?(n=+t,a):n},Sa(a,r)},t.layout.tree=function(){var e=t.layout.hierarchy().sort(null).value(null),r=ro,n=[1,1],i=null;function a(t,a){var c=e.call(this,t,a),u=c[0],f=function(t){var e,r={A:null,children:[t]},n=[r];for(;null!=(e=n.pop());)for(var i,a=e.children,o=0,s=a.length;o<s;++o)n.push((a[o]=i={_:a[o],parent:e,children:(i=a[o].children)&&i.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:o}).a=i);return r.children[0]}(u);if(Ca(f,o),f.parent.m=-f.z,Ea(f,s),i)Ea(u,l);else{var h=u,p=u,d=u;Ea(u,function(t){t.x<h.x&&(h=t),t.x>p.x&&(p=t),t.depth>d.depth&&(d=t)});var g=r(h,p)/2-h.x,v=n[0]/(p.x+r(p,h)/2+g),m=n[1]/(d.depth||1);Ea(u,function(t){t.x=(t.x+g)*v,t.y=t.depth*m})}return c}function o(t){var e=t.children,n=t.parent.children,i=t.i?n[t.i-1]:null;if(e.length){!function(t){var e,r=0,n=0,i=t.children,a=i.length;for(;--a>=0;)(e=i[a]).z+=r,e.m+=r,r+=e.s+(n+=e.c)}(t);var a=(e[0].z+e[e.length-1].z)/2;i?(t.z=i.z+r(t._,i._),t.m=t.z-a):t.z=a}else i&&(t.z=i.z+r(t._,i._));t.parent.A=function(t,e,n){if(e){for(var i,a=t,o=t,s=e,l=a.parent.children[0],c=a.m,u=o.m,f=s.m,h=l.m;s=io(s),a=no(a),s&&a;)l=no(l),(o=io(o)).a=t,(i=s.z+f-a.z-c+r(s._,a._))>0&&(ao(oo(s,t,n),t,i),c+=i,u+=i),f+=s.m,c+=a.m,h+=l.m,u+=o.m;s&&!io(o)&&(o.t=s,o.m+=f-u),a&&!no(l)&&(l.t=a,l.m+=c-h,n=t)}return n}(t,i,t.parent.A||n[0])}function s(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function l(t){t.x*=n[0],t.y=t.depth*n[1]}return a.separation=function(t){return arguments.length?(r=t,a):r},a.size=function(t){return arguments.length?(i=null==(n=t)?l:null,a):i?null:n},a.nodeSize=function(t){return arguments.length?(i=null==(n=t)?null:l,a):i?n:null},Sa(a,e)},t.layout.cluster=function(){var e=t.layout.hierarchy().sort(null).value(null),r=ro,n=[1,1],i=!1;function a(a,o){var s,l=e.call(this,a,o),c=l[0],u=0;Ca(c,function(e){var n=e.children;n&&n.length?(e.x=function(t){return t.reduce(function(t,e){return t+e.x},0)/t.length}(n),e.y=function(e){return 1+t.max(e,function(t){return t.y})}(n)):(e.x=s?u+=r(e,s):0,e.y=0,s=e)});var f=function t(e){var r=e.children;return r&&r.length?t(r[0]):e}(c),h=function t(e){var r,n=e.children;return n&&(r=n.length)?t(n[r-1]):e}(c),p=f.x-r(f,h)/2,d=h.x+r(h,f)/2;return Ca(c,i?function(t){t.x=(t.x-c.x)*n[0],t.y=(c.y-t.y)*n[1]}:function(t){t.x=(t.x-p)/(d-p)*n[0],t.y=(1-(c.y?t.y/c.y:1))*n[1]}),l}return a.separation=function(t){return arguments.length?(r=t,a):r},a.size=function(t){return arguments.length?(i=null==(n=t),a):i?null:n},a.nodeSize=function(t){return arguments.length?(i=null!=(n=t),a):i?n:null},Sa(a,e)},t.layout.treemap=function(){var e,r=t.layout.hierarchy(),n=Math.round,i=[1,1],a=null,o=so,s=!1,l=\"squarify\",c=.5*(1+Math.sqrt(5));function u(t,e){for(var r,n,i=-1,a=t.length;++i<a;)n=(r=t[i]).value*(e<0?0:e),r.area=isNaN(n)||n<=0?0:n}function f(t){var e=t.children;if(e&&e.length){var r,n,i,a=o(t),s=[],c=e.slice(),h=1/0,g=\"slice\"===l?a.dx:\"dice\"===l?a.dy:\"slice-dice\"===l?1&t.depth?a.dy:a.dx:Math.min(a.dx,a.dy);for(u(c,a.dx*a.dy/t.value),s.area=0;(i=c.length)>0;)s.push(r=c[i-1]),s.area+=r.area,\"squarify\"!==l||(n=p(s,g))<=h?(c.pop(),h=n):(s.area-=s.pop().area,d(s,g,a,!1),g=Math.min(a.dx,a.dy),s.length=s.area=0,h=1/0);s.length&&(d(s,g,a,!0),s.length=s.area=0),e.forEach(f)}}function h(t){var e=t.children;if(e&&e.length){var r,n=o(t),i=e.slice(),a=[];for(u(i,n.dx*n.dy/t.value),a.area=0;r=i.pop();)a.push(r),a.area+=r.area,null!=r.z&&(d(a,r.z?n.dx:n.dy,n,!i.length),a.length=a.area=0);e.forEach(h)}}function p(t,e){for(var r,n=t.area,i=0,a=1/0,o=-1,s=t.length;++o<s;)(r=t[o].area)&&(r<a&&(a=r),r>i&&(i=r));return e*=e,(n*=n)?Math.max(e*i*c/n,n/(e*a*c)):1/0}function d(t,e,r,i){var a,o=-1,s=t.length,l=r.x,c=r.y,u=e?n(t.area/e):0;if(e==r.dx){for((i||u>r.dy)&&(u=r.dy);++o<s;)(a=t[o]).x=l,a.y=c,a.dy=u,l+=a.dx=Math.min(r.x+r.dx-l,u?n(a.area/u):0);a.z=!0,a.dx+=r.x+r.dx-l,r.y+=u,r.dy-=u}else{for((i||u>r.dx)&&(u=r.dx);++o<s;)(a=t[o]).x=l,a.y=c,a.dx=u,c+=a.dy=Math.min(r.y+r.dy-c,u?n(a.area/u):0);a.z=!1,a.dy+=r.y+r.dy-c,r.x+=u,r.dx-=u}}function g(t){var n=e||r(t),a=n[0];return a.x=a.y=0,a.value?(a.dx=i[0],a.dy=i[1]):a.dx=a.dy=0,e&&r.revalue(a),u([a],a.dx*a.dy/a.value),(e?h:f)(a),s&&(e=n),n}return g.size=function(t){return arguments.length?(i=t,g):i},g.padding=function(t){if(!arguments.length)return a;function e(e){return lo(e,t)}var r;return o=null==(a=t)?so:\"function\"==(r=typeof t)?function(e){var r=t.call(g,e,e.depth);return null==r?so(e):lo(e,\"number\"==typeof r?[r,r,r,r]:r)}:\"number\"===r?(t=[t,t,t,t],e):e,g},g.round=function(t){return arguments.length?(n=t?Math.round:Number,g):n!=Number},g.sticky=function(t){return arguments.length?(s=t,e=null,g):s},g.ratio=function(t){return arguments.length?(c=t,g):c},g.mode=function(t){return arguments.length?(l=t+\"\",g):l},Sa(g,r)},t.random={normal:function(t,e){var r=arguments.length;return r<2&&(e=1),r<1&&(t=0),function(){var r,n,i;do{i=(r=2*Math.random()-1)*r+(n=2*Math.random()-1)*n}while(!i||i>1);return t+e*r*Math.sqrt(-2*Math.log(i)/i)}},logNormal:function(){var e=t.random.normal.apply(t,arguments);return function(){return Math.exp(e())}},bates:function(e){var r=t.random.irwinHall(e);return function(){return r()/e}},irwinHall:function(t){return function(){for(var e=0,r=0;r<t;r++)e+=Math.random();return e}}},t.scale={};var go={floor:z,ceil:z};function vo(e,r,n,i){var a=[],o=[],s=0,l=Math.min(e.length,r.length)-1;for(e[l]<e[0]&&(e=e.slice().reverse(),r=r.slice().reverse());++s<=l;)a.push(n(e[s-1],e[s])),o.push(i(r[s-1],r[s]));return function(r){var n=t.bisect(e,r,1,l)-1;return o[n](a[n](r))}}function mo(e,r){return t.rebind(e,r,\"range\",\"rangeRound\",\"interpolate\",\"clamp\")}function yo(t,e){return ho(t,po(xo(t,e)[2])),ho(t,po(xo(t,e)[2])),t}function xo(t,e){null==e&&(e=10);var r=co(t),n=r[1]-r[0],i=Math.pow(10,Math.floor(Math.log(n/e)/Math.LN10)),a=e/n*i;return a<=.15?i*=10:a<=.35?i*=5:a<=.75&&(i*=2),r[0]=Math.ceil(r[0]/i)*i,r[1]=Math.floor(r[1]/i)*i+.5*i,r[2]=i,r}function bo(e,r){return t.range.apply(t,xo(e,r))}function _o(e,r,n){var i=xo(e,r);if(n){var a=Le.exec(n);if(a.shift(),\"s\"===a[8]){var o=t.formatPrefix(Math.max(y(i[0]),y(i[1])));return a[7]||(a[7]=\".\"+ko(o.scale(i[2]))),a[8]=\"f\",n=t.format(a.join(\"\")),function(t){return n(o.scale(t))+o.symbol}}a[7]||(a[7]=\".\"+function(t,e){var r=ko(e[2]);return t in wo?Math.abs(r-ko(Math.max(y(e[0]),y(e[1]))))+ +(\"e\"!==t):r-2*(\"%\"===t)}(a[8],i)),n=a.join(\"\")}else n=\",.\"+ko(i[2])+\"f\";return t.format(n)}t.scale.linear=function(){return function t(e,r,n,i){var a,o;function s(){var t=Math.min(e.length,r.length)>2?vo:fo,s=i?ma:va;return a=t(e,r,s,n),o=t(r,e,s,Zi),l}function l(t){return a(t)}l.invert=function(t){return o(t)};l.domain=function(t){return arguments.length?(e=t.map(Number),s()):e};l.range=function(t){return arguments.length?(r=t,s()):r};l.rangeRound=function(t){return l.range(t).interpolate(ca)};l.clamp=function(t){return arguments.length?(i=t,s()):i};l.interpolate=function(t){return arguments.length?(n=t,s()):n};l.ticks=function(t){return bo(e,t)};l.tickFormat=function(t,r){return _o(e,t,r)};l.nice=function(t){return yo(e,t),s()};l.copy=function(){return t(e,r,n,i)};return s()}([0,1],[0,1],Zi,!1)};var wo={s:1,g:1,p:1,r:1,e:1};function ko(t){return-Math.floor(Math.log(t)/Math.LN10+.01)}t.scale.log=function(){return function e(r,n,i,a){function o(t){return(i?Math.log(t<0?0:t):-Math.log(t>0?0:-t))/Math.log(n)}function s(t){return i?Math.pow(n,t):-Math.pow(n,-t)}function l(t){return r(o(t))}l.invert=function(t){return s(r.invert(t))};l.domain=function(t){return arguments.length?(i=t[0]>=0,r.domain((a=t.map(Number)).map(o)),l):a};l.base=function(t){return arguments.length?(n=+t,r.domain(a.map(o)),l):n};l.nice=function(){var t=ho(a.map(o),i?Math:Ao);return r.domain(t),a=t.map(s),l};l.ticks=function(){var t=co(a),e=[],r=t[0],l=t[1],c=Math.floor(o(r)),u=Math.ceil(o(l)),f=n%1?2:n;if(isFinite(u-c)){if(i){for(;c<u;c++)for(var h=1;h<f;h++)e.push(s(c)*h);e.push(s(c))}else for(e.push(s(c));c++<u;)for(var h=f-1;h>0;h--)e.push(s(c)*h);for(c=0;e[c]<r;c++);for(u=e.length;e[u-1]>l;u--);e=e.slice(c,u)}return e};l.tickFormat=function(e,r){if(!arguments.length)return Mo;arguments.length<2?r=Mo:\"function\"!=typeof r&&(r=t.format(r));var i=Math.max(1,n*e/l.ticks().length);return function(t){var e=t/s(Math.round(o(t)));return e*n<n-.5&&(e*=n),e<=i?r(t):\"\"}};l.copy=function(){return e(r.copy(),n,i,a)};return mo(l,r)}(t.scale.linear().domain([0,1]),10,!0,[1,10])};var Mo=t.format(\".0e\"),Ao={floor:function(t){return-Math.ceil(-t)},ceil:function(t){return-Math.floor(-t)}};function To(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}t.scale.pow=function(){return function t(e,r,n){var i=To(r),a=To(1/r);function o(t){return e(i(t))}o.invert=function(t){return a(e.invert(t))};o.domain=function(t){return arguments.length?(e.domain((n=t.map(Number)).map(i)),o):n};o.ticks=function(t){return bo(n,t)};o.tickFormat=function(t,e){return _o(n,t,e)};o.nice=function(t){return o.domain(yo(n,t))};o.exponent=function(t){return arguments.length?(i=To(r=t),a=To(1/r),e.domain(n.map(i)),o):r};o.copy=function(){return t(e.copy(),r,n)};return mo(o,e)}(t.scale.linear(),1,[0,1])},t.scale.sqrt=function(){return t.scale.pow().exponent(.5)},t.scale.ordinal=function(){return function e(r,n){var i,a,o;function s(t){return a[((i.get(t)||(\"range\"===n.t?i.set(t,r.push(t)):NaN))-1)%a.length]}function l(e,n){return t.range(r.length).map(function(t){return e+n*t})}s.domain=function(t){if(!arguments.length)return r;r=[],i=new b;for(var e,a=-1,o=t.length;++a<o;)i.has(e=t[a])||i.set(e,r.push(e));return s[n.t].apply(s,n.a)};s.range=function(t){return arguments.length?(a=t,o=0,n={t:\"range\",a:arguments},s):a};s.rangePoints=function(t,e){arguments.length<2&&(e=0);var i=t[0],c=t[1],u=r.length<2?(i=(i+c)/2,0):(c-i)/(r.length-1+e);return a=l(i+u*e/2,u),o=0,n={t:\"rangePoints\",a:arguments},s};s.rangeRoundPoints=function(t,e){arguments.length<2&&(e=0);var i=t[0],c=t[1],u=r.length<2?(i=c=Math.round((i+c)/2),0):(c-i)/(r.length-1+e)|0;return a=l(i+Math.round(u*e/2+(c-i-(r.length-1+e)*u)/2),u),o=0,n={t:\"rangeRoundPoints\",a:arguments},s};s.rangeBands=function(t,e,i){arguments.length<2&&(e=0),arguments.length<3&&(i=e);var c=t[1]<t[0],u=t[c-0],f=t[1-c],h=(f-u)/(r.length-e+2*i);return a=l(u+h*i,h),c&&a.reverse(),o=h*(1-e),n={t:\"rangeBands\",a:arguments},s};s.rangeRoundBands=function(t,e,i){arguments.length<2&&(e=0),arguments.length<3&&(i=e);var c=t[1]<t[0],u=t[c-0],f=t[1-c],h=Math.floor((f-u)/(r.length-e+2*i));return a=l(u+Math.round((f-u-(r.length-e)*h)/2),h),c&&a.reverse(),o=Math.round(h*(1-e)),n={t:\"rangeRoundBands\",a:arguments},s};s.rangeBand=function(){return o};s.rangeExtent=function(){return co(n.a[0])};s.copy=function(){return e(r,n)};return s.domain(r)}([],{t:\"range\",a:[[]]})},t.scale.category10=function(){return t.scale.ordinal().range(So)},t.scale.category20=function(){return t.scale.ordinal().range(Eo)},t.scale.category20b=function(){return t.scale.ordinal().range(Co)},t.scale.category20c=function(){return t.scale.ordinal().range(Lo)};var So=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(se),Eo=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(se),Co=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(se),Lo=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(se);function zo(){return 0}t.scale.quantile=function(){return function e(r,n){var i;function a(){var e=0,a=n.length;for(i=[];++e<a;)i[e-1]=t.quantile(r,e/a);return o}function o(e){if(!isNaN(e=+e))return n[t.bisect(i,e)]}o.domain=function(t){return arguments.length?(r=t.map(p).filter(d).sort(h),a()):r};o.range=function(t){return arguments.length?(n=t,a()):n};o.quantiles=function(){return i};o.invertExtent=function(t){return(t=n.indexOf(t))<0?[NaN,NaN]:[t>0?i[t-1]:r[0],t<i.length?i[t]:r[r.length-1]]};o.copy=function(){return e(r,n)};return a()}([],[])},t.scale.quantize=function(){return function t(e,r,n){var i,a;function o(t){return n[Math.max(0,Math.min(a,Math.floor(i*(t-e))))]}function s(){return i=n.length/(r-e),a=n.length-1,o}o.domain=function(t){return arguments.length?(e=+t[0],r=+t[t.length-1],s()):[e,r]};o.range=function(t){return arguments.length?(n=t,s()):n};o.invertExtent=function(t){return[t=(t=n.indexOf(t))<0?NaN:t/i+e,t+1/i]};o.copy=function(){return t(e,r,n)};return s()}(0,1,[0,1])},t.scale.threshold=function(){return function e(r,n){function i(e){if(e<=e)return n[t.bisect(r,e)]}i.domain=function(t){return arguments.length?(r=t,i):r};i.range=function(t){return arguments.length?(n=t,i):n};i.invertExtent=function(t){return t=n.indexOf(t),[r[t-1],r[t]]};i.copy=function(){return e(r,n)};return i}([.5],[0,1])},t.scale.identity=function(){return function t(e){function r(t){return+t}r.invert=r;r.domain=r.range=function(t){return arguments.length?(e=t.map(r),r):e};r.ticks=function(t){return bo(e,t)};r.tickFormat=function(t,r){return _o(e,t,r)};r.copy=function(){return t(e)};return r}([0,1])},t.svg={},t.svg.arc=function(){var t=Io,e=Po,r=zo,n=Oo,i=Do,a=Ro,o=Bo;function s(){var s=Math.max(0,+t.apply(this,arguments)),c=Math.max(0,+e.apply(this,arguments)),u=i.apply(this,arguments)-Et,f=a.apply(this,arguments)-Et,h=Math.abs(f-u),p=u>f?0:1;if(c<s&&(d=c,c=s,s=d),h>=St)return l(c,p)+(s?l(s,1-p):\"\")+\"Z\";var d,g,v,m,y,x,b,_,w,k,M,A,T=0,S=0,E=[];if((m=(+o.apply(this,arguments)||0)/2)&&(v=n===Oo?Math.sqrt(s*s+c*c):+n.apply(this,arguments),p||(S*=-1),c&&(S=Pt(v/c*Math.sin(m))),s&&(T=Pt(v/s*Math.sin(m)))),c){y=c*Math.cos(u+S),x=c*Math.sin(u+S),b=c*Math.cos(f-S),_=c*Math.sin(f-S);var C=Math.abs(f-u-2*S)<=At?0:1;if(S&&Fo(y,x,b,_)===p^C){var L=(u+f)/2;y=c*Math.cos(L),x=c*Math.sin(L),b=_=null}}else y=x=0;if(s){w=s*Math.cos(f-T),k=s*Math.sin(f-T),M=s*Math.cos(u+T),A=s*Math.sin(u+T);var z=Math.abs(u-f+2*T)<=At?0:1;if(T&&Fo(w,k,M,A)===1-p^z){var O=(u+f)/2;w=s*Math.cos(O),k=s*Math.sin(O),M=A=null}}else w=k=0;if(h>kt&&(d=Math.min(Math.abs(c-s)/2,+r.apply(this,arguments)))>.001){g=s<c^p?0:1;var I=d,P=d;if(h<At){var D=null==M?[w,k]:null==b?[y,x]:si([y,x],[M,A],[b,_],[w,k]),R=y-D[0],B=x-D[1],F=b-D[0],N=_-D[1],j=1/Math.sin(Math.acos((R*F+B*N)/(Math.sqrt(R*R+B*B)*Math.sqrt(F*F+N*N)))/2),V=Math.sqrt(D[0]*D[0]+D[1]*D[1]);P=Math.min(d,(s-V)/(j-1)),I=Math.min(d,(c-V)/(j+1))}if(null!=b){var U=No(null==M?[w,k]:[M,A],[y,x],c,I,p),q=No([b,_],[w,k],c,I,p);d===I?E.push(\"M\",U[0],\"A\",I,\",\",I,\" 0 0,\",g,\" \",U[1],\"A\",c,\",\",c,\" 0 \",1-p^Fo(U[1][0],U[1][1],q[1][0],q[1][1]),\",\",p,\" \",q[1],\"A\",I,\",\",I,\" 0 0,\",g,\" \",q[0]):E.push(\"M\",U[0],\"A\",I,\",\",I,\" 0 1,\",g,\" \",q[0])}else E.push(\"M\",y,\",\",x);if(null!=M){var H=No([y,x],[M,A],s,-P,p),G=No([w,k],null==b?[y,x]:[b,_],s,-P,p);d===P?E.push(\"L\",G[0],\"A\",P,\",\",P,\" 0 0,\",g,\" \",G[1],\"A\",s,\",\",s,\" 0 \",p^Fo(G[1][0],G[1][1],H[1][0],H[1][1]),\",\",1-p,\" \",H[1],\"A\",P,\",\",P,\" 0 0,\",g,\" \",H[0]):E.push(\"L\",G[0],\"A\",P,\",\",P,\" 0 0,\",g,\" \",H[0])}else E.push(\"L\",w,\",\",k)}else E.push(\"M\",y,\",\",x),null!=b&&E.push(\"A\",c,\",\",c,\" 0 \",C,\",\",p,\" \",b,\",\",_),E.push(\"L\",w,\",\",k),null!=M&&E.push(\"A\",s,\",\",s,\" 0 \",z,\",\",1-p,\" \",M,\",\",A);return E.push(\"Z\"),E.join(\"\")}function l(t,e){return\"M0,\"+t+\"A\"+t+\",\"+t+\" 0 1,\"+e+\" 0,\"+-t+\"A\"+t+\",\"+t+\" 0 1,\"+e+\" 0,\"+t}return s.innerRadius=function(e){return arguments.length?(t=ve(e),s):t},s.outerRadius=function(t){return arguments.length?(e=ve(t),s):e},s.cornerRadius=function(t){return arguments.length?(r=ve(t),s):r},s.padRadius=function(t){return arguments.length?(n=t==Oo?Oo:ve(t),s):n},s.startAngle=function(t){return arguments.length?(i=ve(t),s):i},s.endAngle=function(t){return arguments.length?(a=ve(t),s):a},s.padAngle=function(t){return arguments.length?(o=ve(t),s):o},s.centroid=function(){var r=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,n=(+i.apply(this,arguments)+ +a.apply(this,arguments))/2-Et;return[Math.cos(n)*r,Math.sin(n)*r]},s};var Oo=\"auto\";function Io(t){return t.innerRadius}function Po(t){return t.outerRadius}function Do(t){return t.startAngle}function Ro(t){return t.endAngle}function Bo(t){return t&&t.padAngle}function Fo(t,e,r,n){return(t-r)*e-(e-n)*t>0?0:1}function No(t,e,r,n,i){var a=t[0]-e[0],o=t[1]-e[1],s=(i?n:-n)/Math.sqrt(a*a+o*o),l=s*o,c=-s*a,u=t[0]+l,f=t[1]+c,h=e[0]+l,p=e[1]+c,d=(u+h)/2,g=(f+p)/2,v=h-u,m=p-f,y=v*v+m*m,x=r-n,b=u*p-h*f,_=(m<0?-1:1)*Math.sqrt(Math.max(0,x*x*y-b*b)),w=(b*m-v*_)/y,k=(-b*v-m*_)/y,M=(b*m+v*_)/y,A=(-b*v+m*_)/y,T=w-d,S=k-g,E=M-d,C=A-g;return T*T+S*S>E*E+C*C&&(w=M,k=A),[[w-l,k-c],[w*r/x,k*r/x]]}function jo(t){var e=ei,r=ri,n=Wr,i=Uo,a=i.key,o=.7;function s(a){var s,l=[],c=[],u=-1,f=a.length,h=ve(e),p=ve(r);function d(){l.push(\"M\",i(t(c),o))}for(;++u<f;)n.call(this,s=a[u],u)?c.push([+h.call(this,s,u),+p.call(this,s,u)]):c.length&&(d(),c=[]);return c.length&&d(),l.length?l.join(\"\"):null}return s.x=function(t){return arguments.length?(e=t,s):e},s.y=function(t){return arguments.length?(r=t,s):r},s.defined=function(t){return arguments.length?(n=t,s):n},s.interpolate=function(t){return arguments.length?(a=\"function\"==typeof t?i=t:(i=Vo.get(t)||Uo).key,s):a},s.tension=function(t){return arguments.length?(o=t,s):o},s}t.svg.line=function(){return jo(z)};var Vo=t.map({linear:Uo,\"linear-closed\":qo,step:function(t){var e=0,r=t.length,n=t[0],i=[n[0],\",\",n[1]];for(;++e<r;)i.push(\"H\",(n[0]+(n=t[e])[0])/2,\"V\",n[1]);r>1&&i.push(\"H\",n[0]);return i.join(\"\")},\"step-before\":Ho,\"step-after\":Go,basis:Xo,\"basis-open\":function(t){if(t.length<4)return Uo(t);var e,r=[],n=-1,i=t.length,a=[0],o=[0];for(;++n<3;)e=t[n],a.push(e[0]),o.push(e[1]);r.push(Zo(Ko,a)+\",\"+Zo(Ko,o)),--n;for(;++n<i;)e=t[n],a.shift(),a.push(e[0]),o.shift(),o.push(e[1]),Qo(r,a,o);return r.join(\"\")},\"basis-closed\":function(t){var e,r,n=-1,i=t.length,a=i+4,o=[],s=[];for(;++n<4;)r=t[n%i],o.push(r[0]),s.push(r[1]);e=[Zo(Ko,o),\",\",Zo(Ko,s)],--n;for(;++n<a;)r=t[n%i],o.shift(),o.push(r[0]),s.shift(),s.push(r[1]),Qo(e,o,s);return e.join(\"\")},bundle:function(t,e){var r=t.length-1;if(r)for(var n,i,a=t[0][0],o=t[0][1],s=t[r][0]-a,l=t[r][1]-o,c=-1;++c<=r;)n=t[c],i=c/r,n[0]=e*n[0]+(1-e)*(a+i*s),n[1]=e*n[1]+(1-e)*(o+i*l);return Xo(t)},cardinal:function(t,e){return t.length<3?Uo(t):t[0]+Wo(t,Yo(t,e))},\"cardinal-open\":function(t,e){return t.length<4?Uo(t):t[1]+Wo(t.slice(1,-1),Yo(t,e))},\"cardinal-closed\":function(t,e){return t.length<3?qo(t):t[0]+Wo((t.push(t[0]),t),Yo([t[t.length-2]].concat(t,[t[1]]),e))},monotone:function(t){return t.length<3?Uo(t):t[0]+Wo(t,function(t){var e,r,n,i,a=[],o=function(t){var e=0,r=t.length-1,n=[],i=t[0],a=t[1],o=n[0]=ts(i,a);for(;++e<r;)n[e]=(o+(o=ts(i=a,a=t[e+1])))/2;return n[e]=o,n}(t),s=-1,l=t.length-1;for(;++s<l;)e=ts(t[s],t[s+1]),y(e)<kt?o[s]=o[s+1]=0:(r=o[s]/e,n=o[s+1]/e,(i=r*r+n*n)>9&&(i=3*e/Math.sqrt(i),o[s]=i*r,o[s+1]=i*n));s=-1;for(;++s<=l;)i=(t[Math.min(l,s+1)][0]-t[Math.max(0,s-1)][0])/(6*(1+o[s]*o[s])),a.push([i||0,o[s]*i||0]);return a}(t))}});function Uo(t){return t.length>1?t.join(\"L\"):t+\"Z\"}function qo(t){return t.join(\"L\")+\"Z\"}function Ho(t){for(var e=0,r=t.length,n=t[0],i=[n[0],\",\",n[1]];++e<r;)i.push(\"V\",(n=t[e])[1],\"H\",n[0]);return i.join(\"\")}function Go(t){for(var e=0,r=t.length,n=t[0],i=[n[0],\",\",n[1]];++e<r;)i.push(\"H\",(n=t[e])[0],\"V\",n[1]);return i.join(\"\")}function Wo(t,e){if(e.length<1||t.length!=e.length&&t.length!=e.length+2)return Uo(t);var r=t.length!=e.length,n=\"\",i=t[0],a=t[1],o=e[0],s=o,l=1;if(r&&(n+=\"Q\"+(a[0]-2*o[0]/3)+\",\"+(a[1]-2*o[1]/3)+\",\"+a[0]+\",\"+a[1],i=t[1],l=2),e.length>1){s=e[1],a=t[l],l++,n+=\"C\"+(i[0]+o[0])+\",\"+(i[1]+o[1])+\",\"+(a[0]-s[0])+\",\"+(a[1]-s[1])+\",\"+a[0]+\",\"+a[1];for(var c=2;c<e.length;c++,l++)a=t[l],s=e[c],n+=\"S\"+(a[0]-s[0])+\",\"+(a[1]-s[1])+\",\"+a[0]+\",\"+a[1]}if(r){var u=t[l];n+=\"Q\"+(a[0]+2*s[0]/3)+\",\"+(a[1]+2*s[1]/3)+\",\"+u[0]+\",\"+u[1]}return n}function Yo(t,e){for(var r,n=[],i=(1-e)/2,a=t[0],o=t[1],s=1,l=t.length;++s<l;)r=a,a=o,o=t[s],n.push([i*(o[0]-r[0]),i*(o[1]-r[1])]);return n}function Xo(t){if(t.length<3)return Uo(t);var e=1,r=t.length,n=t[0],i=n[0],a=n[1],o=[i,i,i,(n=t[1])[0]],s=[a,a,a,n[1]],l=[i,\",\",a,\"L\",Zo(Ko,o),\",\",Zo(Ko,s)];for(t.push(t[r-1]);++e<=r;)n=t[e],o.shift(),o.push(n[0]),s.shift(),s.push(n[1]),Qo(l,o,s);return t.pop(),l.push(\"L\",n),l.join(\"\")}function Zo(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}Vo.forEach(function(t,e){e.key=t,e.closed=/-closed$/.test(t)});var $o=[0,2/3,1/3,0],Jo=[0,1/3,2/3,0],Ko=[0,1/6,2/3,1/6];function Qo(t,e,r){t.push(\"C\",Zo($o,e),\",\",Zo($o,r),\",\",Zo(Jo,e),\",\",Zo(Jo,r),\",\",Zo(Ko,e),\",\",Zo(Ko,r))}function ts(t,e){return(e[1]-t[1])/(e[0]-t[0])}function es(t){for(var e,r,n,i=-1,a=t.length;++i<a;)r=(e=t[i])[0],n=e[1]-Et,e[0]=r*Math.cos(n),e[1]=r*Math.sin(n);return t}function rs(t){var e=ei,r=ei,n=0,i=ri,a=Wr,o=Uo,s=o.key,l=o,c=\"L\",u=.7;function f(s){var f,h,p,d=[],g=[],v=[],m=-1,y=s.length,x=ve(e),b=ve(n),_=e===r?function(){return h}:ve(r),w=n===i?function(){return p}:ve(i);function k(){d.push(\"M\",o(t(v),u),c,l(t(g.reverse()),u),\"Z\")}for(;++m<y;)a.call(this,f=s[m],m)?(g.push([h=+x.call(this,f,m),p=+b.call(this,f,m)]),v.push([+_.call(this,f,m),+w.call(this,f,m)])):g.length&&(k(),g=[],v=[]);return g.length&&k(),d.length?d.join(\"\"):null}return f.x=function(t){return arguments.length?(e=r=t,f):r},f.x0=function(t){return arguments.length?(e=t,f):e},f.x1=function(t){return arguments.length?(r=t,f):r},f.y=function(t){return arguments.length?(n=i=t,f):i},f.y0=function(t){return arguments.length?(n=t,f):n},f.y1=function(t){return arguments.length?(i=t,f):i},f.defined=function(t){return arguments.length?(a=t,f):a},f.interpolate=function(t){return arguments.length?(s=\"function\"==typeof t?o=t:(o=Vo.get(t)||Uo).key,l=o.reverse||o,c=o.closed?\"M\":\"L\",f):s},f.tension=function(t){return arguments.length?(u=t,f):u},f}function ns(t){return t.radius}function is(t){return[t.x,t.y]}function as(){return 64}function os(){return\"circle\"}function ss(t){var e=Math.sqrt(t/At);return\"M0,\"+e+\"A\"+e+\",\"+e+\" 0 1,1 0,\"+-e+\"A\"+e+\",\"+e+\" 0 1,1 0,\"+e+\"Z\"}t.svg.line.radial=function(){var t=jo(es);return t.radius=t.x,delete t.x,t.angle=t.y,delete t.y,t},Ho.reverse=Go,Go.reverse=Ho,t.svg.area=function(){return rs(z)},t.svg.area.radial=function(){var t=rs(es);return t.radius=t.x,delete t.x,t.innerRadius=t.x0,delete t.x0,t.outerRadius=t.x1,delete t.x1,t.angle=t.y,delete t.y,t.startAngle=t.y0,delete t.y0,t.endAngle=t.y1,delete t.y1,t},t.svg.chord=function(){var t=Vn,e=Un,r=ns,n=Do,i=Ro;function a(r,n){var i,a,c=o(this,t,r,n),u=o(this,e,r,n);return\"M\"+c.p0+s(c.r,c.p1,c.a1-c.a0)+(a=u,(i=c).a0==a.a0&&i.a1==a.a1?l(c.r,c.p1,c.r,c.p0):l(c.r,c.p1,u.r,u.p0)+s(u.r,u.p1,u.a1-u.a0)+l(u.r,u.p1,c.r,c.p0))+\"Z\"}function o(t,e,a,o){var s=e.call(t,a,o),l=r.call(t,s,o),c=n.call(t,s,o)-Et,u=i.call(t,s,o)-Et;return{r:l,a0:c,a1:u,p0:[l*Math.cos(c),l*Math.sin(c)],p1:[l*Math.cos(u),l*Math.sin(u)]}}function s(t,e,r){return\"A\"+t+\",\"+t+\" 0 \"+ +(r>At)+\",1 \"+e}function l(t,e,r,n){return\"Q 0,0 \"+n}return a.radius=function(t){return arguments.length?(r=ve(t),a):r},a.source=function(e){return arguments.length?(t=ve(e),a):t},a.target=function(t){return arguments.length?(e=ve(t),a):e},a.startAngle=function(t){return arguments.length?(n=ve(t),a):n},a.endAngle=function(t){return arguments.length?(i=ve(t),a):i},a},t.svg.diagonal=function(){var t=Vn,e=Un,r=is;function n(n,i){var a=t.call(this,n,i),o=e.call(this,n,i),s=(a.y+o.y)/2,l=[a,{x:a.x,y:s},{x:o.x,y:s},o];return\"M\"+(l=l.map(r))[0]+\"C\"+l[1]+\" \"+l[2]+\" \"+l[3]}return n.source=function(e){return arguments.length?(t=ve(e),n):t},n.target=function(t){return arguments.length?(e=ve(t),n):e},n.projection=function(t){return arguments.length?(r=t,n):r},n},t.svg.diagonal.radial=function(){var e=t.svg.diagonal(),r=is,n=e.projection;return e.projection=function(t){return arguments.length?n(function(t){return function(){var e=t.apply(this,arguments),r=e[0],n=e[1]-Et;return[r*Math.cos(n),r*Math.sin(n)]}}(r=t)):r},e},t.svg.symbol=function(){var t=os,e=as;function r(r,n){return(ls.get(t.call(this,r,n))||ss)(e.call(this,r,n))}return r.type=function(e){return arguments.length?(t=ve(e),r):t},r.size=function(t){return arguments.length?(e=ve(t),r):e},r};var ls=t.map({circle:ss,cross:function(t){var e=Math.sqrt(t/5)/2;return\"M\"+-3*e+\",\"+-e+\"H\"+-e+\"V\"+-3*e+\"H\"+e+\"V\"+-e+\"H\"+3*e+\"V\"+e+\"H\"+e+\"V\"+3*e+\"H\"+-e+\"V\"+e+\"H\"+-3*e+\"Z\"},diamond:function(t){var e=Math.sqrt(t/(2*us)),r=e*us;return\"M0,\"+-e+\"L\"+r+\",0 0,\"+e+\" \"+-r+\",0Z\"},square:function(t){var e=Math.sqrt(t)/2;return\"M\"+-e+\",\"+-e+\"L\"+e+\",\"+-e+\" \"+e+\",\"+e+\" \"+-e+\",\"+e+\"Z\"},\"triangle-down\":function(t){var e=Math.sqrt(t/cs),r=e*cs/2;return\"M0,\"+r+\"L\"+e+\",\"+-r+\" \"+-e+\",\"+-r+\"Z\"},\"triangle-up\":function(t){var e=Math.sqrt(t/cs),r=e*cs/2;return\"M0,\"+-r+\"L\"+e+\",\"+r+\" \"+-e+\",\"+r+\"Z\"}});t.svg.symbolTypes=ls.keys();var cs=Math.sqrt(3),us=Math.tan(30*Ct);Y.transition=function(t){for(var e,r,n=ds||++ms,i=bs(t),a=[],o=gs||{time:Date.now(),ease:ia,delay:0,duration:250},s=-1,l=this.length;++s<l;){a.push(e=[]);for(var c=this[s],u=-1,f=c.length;++u<f;)(r=c[u])&&_s(r,u,i,n,o),e.push(r)}return ps(a,i,n)},Y.interrupt=function(t){return this.each(null==t?fs:hs(bs(t)))};var fs=hs(bs());function hs(t){return function(){var e,r,n;(e=this[t])&&(n=e[r=e.active])&&(n.timer.c=null,n.timer.t=NaN,--e.count?delete e[r]:delete this[t],e.active+=.5,n.event&&n.event.interrupt.call(this,this.__data__,n.index))}}function ps(t,e,r){return U(t,vs),t.namespace=e,t.id=r,t}var ds,gs,vs=[],ms=0;function ys(t,e,r,n){var i=t.id,a=t.namespace;return ut(t,\"function\"==typeof r?function(t,o,s){t[a][i].tween.set(e,n(r.call(t,t.__data__,o,s)))}:(r=n(r),function(t){t[a][i].tween.set(e,r)}))}function xs(t){return null==t&&(t=\"\"),function(){this.textContent=t}}function bs(t){return null==t?\"__transition__\":\"__transition_\"+t+\"__\"}function _s(t,e,r,n,i){var a,o,s,l,c,u=t[r]||(t[r]={active:0,count:0}),f=u[n];function h(r){var i=u.active,h=u[i];for(var d in h&&(h.timer.c=null,h.timer.t=NaN,--u.count,delete u[i],h.event&&h.event.interrupt.call(t,t.__data__,h.index)),u)if(+d<n){var g=u[d];g.timer.c=null,g.timer.t=NaN,--u.count,delete u[d]}o.c=p,Me(function(){return o.c&&p(r||1)&&(o.c=null,o.t=NaN),1},0,a),u.active=n,f.event&&f.event.start.call(t,t.__data__,e),c=[],f.tween.forEach(function(r,n){(n=n.call(t,t.__data__,e))&&c.push(n)}),l=f.ease,s=f.duration}function p(i){for(var a=i/s,o=l(a),h=c.length;h>0;)c[--h].call(t,o);if(a>=1)return f.event&&f.event.end.call(t,t.__data__,e),--u.count?delete u[n]:delete t[r],1}f||(a=i.time,o=Me(function(t){var e=f.delay;if(o.t=e+a,e<=t)return h(t-e);o.c=h},0,a),f=u[n]={tween:new b,time:a,timer:o,delay:i.delay,duration:i.duration,ease:i.ease,index:e},i=null,++u.count)}vs.call=Y.call,vs.empty=Y.empty,vs.node=Y.node,vs.size=Y.size,t.transition=function(e,r){return e&&e.transition?ds?e.transition(r):e:t.selection().transition(e)},t.transition.prototype=vs,vs.select=function(t){var e,r,n,i=this.id,a=this.namespace,o=[];t=X(t);for(var s=-1,l=this.length;++s<l;){o.push(e=[]);for(var c=this[s],u=-1,f=c.length;++u<f;)(n=c[u])&&(r=t.call(n,n.__data__,u,s))?(\"__data__\"in n&&(r.__data__=n.__data__),_s(r,u,a,i,n[a][i]),e.push(r)):e.push(null)}return ps(o,a,i)},vs.selectAll=function(t){var e,r,n,i,a,o=this.id,s=this.namespace,l=[];t=Z(t);for(var c=-1,u=this.length;++c<u;)for(var f=this[c],h=-1,p=f.length;++h<p;)if(n=f[h]){a=n[s][o],r=t.call(n,n.__data__,h,c),l.push(e=[]);for(var d=-1,g=r.length;++d<g;)(i=r[d])&&_s(i,d,s,o,a),e.push(i)}return ps(l,s,o)},vs.filter=function(t){var e,r,n=[];\"function\"!=typeof t&&(t=ct(t));for(var i=0,a=this.length;i<a;i++){n.push(e=[]);for(var o,s=0,l=(o=this[i]).length;s<l;s++)(r=o[s])&&t.call(r,r.__data__,s,i)&&e.push(r)}return ps(n,this.namespace,this.id)},vs.tween=function(t,e){var r=this.id,n=this.namespace;return arguments.length<2?this.node()[n][r].tween.get(t):ut(this,null==e?function(e){e[n][r].tween.remove(t)}:function(i){i[n][r].tween.set(t,e)})},vs.attr=function(e,r){if(arguments.length<2){for(r in e)this.attr(r,e[r]);return this}var n=\"transform\"==e?ga:Zi,i=t.ns.qualify(e);function a(){this.removeAttribute(i)}function o(){this.removeAttributeNS(i.space,i.local)}return ys(this,\"attr.\"+e,r,i.local?function(t){return null==t?o:(t+=\"\",function(){var e,r=this.getAttributeNS(i.space,i.local);return r!==t&&(e=n(r,t),function(t){this.setAttributeNS(i.space,i.local,e(t))})})}:function(t){return null==t?a:(t+=\"\",function(){var e,r=this.getAttribute(i);return r!==t&&(e=n(r,t),function(t){this.setAttribute(i,e(t))})})})},vs.attrTween=function(e,r){var n=t.ns.qualify(e);return this.tween(\"attr.\"+e,n.local?function(t,e){var i=r.call(this,t,e,this.getAttributeNS(n.space,n.local));return i&&function(t){this.setAttributeNS(n.space,n.local,i(t))}}:function(t,e){var i=r.call(this,t,e,this.getAttribute(n));return i&&function(t){this.setAttribute(n,i(t))}})},vs.style=function(t,e,r){var n=arguments.length;if(n<3){if(\"string\"!=typeof t){for(r in n<2&&(e=\"\"),t)this.style(r,t[r],e);return this}r=\"\"}function i(){this.style.removeProperty(t)}return ys(this,\"style.\"+t,e,function(e){return null==e?i:(e+=\"\",function(){var n,i=o(this).getComputedStyle(this,null).getPropertyValue(t);return i!==e&&(n=Zi(i,e),function(e){this.style.setProperty(t,n(e),r)})})})},vs.styleTween=function(t,e,r){return arguments.length<3&&(r=\"\"),this.tween(\"style.\"+t,function(n,i){var a=e.call(this,n,i,o(this).getComputedStyle(this,null).getPropertyValue(t));return a&&function(e){this.style.setProperty(t,a(e),r)}})},vs.text=function(t){return ys(this,\"text\",t,xs)},vs.remove=function(){var t=this.namespace;return this.each(\"end.transition\",function(){var e;this[t].count<2&&(e=this.parentNode)&&e.removeChild(this)})},vs.ease=function(e){var r=this.id,n=this.namespace;return arguments.length<1?this.node()[n][r].ease:(\"function\"!=typeof e&&(e=t.ease.apply(t,arguments)),ut(this,function(t){t[n][r].ease=e}))},vs.delay=function(t){var e=this.id,r=this.namespace;return arguments.length<1?this.node()[r][e].delay:ut(this,\"function\"==typeof t?function(n,i,a){n[r][e].delay=+t.call(n,n.__data__,i,a)}:(t=+t,function(n){n[r][e].delay=t}))},vs.duration=function(t){var e=this.id,r=this.namespace;return arguments.length<1?this.node()[r][e].duration:ut(this,\"function\"==typeof t?function(n,i,a){n[r][e].duration=Math.max(1,t.call(n,n.__data__,i,a))}:(t=Math.max(1,t),function(n){n[r][e].duration=t}))},vs.each=function(e,r){var n=this.id,i=this.namespace;if(arguments.length<2){var a=gs,o=ds;try{ds=n,ut(this,function(t,r,a){gs=t[i][n],e.call(t,t.__data__,r,a)})}finally{gs=a,ds=o}}else ut(this,function(a){var o=a[i][n];(o.event||(o.event=t.dispatch(\"start\",\"end\",\"interrupt\"))).on(e,r)});return this},vs.transition=function(){for(var t,e,r,n=this.id,i=++ms,a=this.namespace,o=[],s=0,l=this.length;s<l;s++){o.push(t=[]);for(var c,u=0,f=(c=this[s]).length;u<f;u++)(e=c[u])&&_s(e,u,a,i,{time:(r=e[a][n]).time,ease:r.ease,delay:r.delay+r.duration,duration:r.duration}),t.push(e)}return ps(o,a,i)},t.svg.axis=function(){var e,r=t.scale.linear(),i=ws,a=6,o=6,s=3,l=[10],c=null;function u(n){n.each(function(){var n,u=t.select(this),f=this.__chart__||r,h=this.__chart__=r.copy(),p=null==c?h.ticks?h.ticks.apply(h,l):h.domain():c,d=null==e?h.tickFormat?h.tickFormat.apply(h,l):z:e,g=u.selectAll(\".tick\").data(p,h),v=g.enter().insert(\"g\",\".domain\").attr(\"class\",\"tick\").style(\"opacity\",kt),m=t.transition(g.exit()).style(\"opacity\",kt).remove(),y=t.transition(g.order()).style(\"opacity\",1),x=Math.max(a,0)+s,b=uo(h),_=u.selectAll(\".domain\").data([0]),w=(_.enter().append(\"path\").attr(\"class\",\"domain\"),t.transition(_));v.append(\"line\"),v.append(\"text\");var k,M,A,T,S=v.select(\"line\"),E=y.select(\"line\"),C=g.select(\"text\").text(d),L=v.select(\"text\"),O=y.select(\"text\"),I=\"top\"===i||\"left\"===i?-1:1;if(\"bottom\"===i||\"top\"===i?(n=Ms,k=\"x\",A=\"y\",M=\"x2\",T=\"y2\",C.attr(\"dy\",I<0?\"0em\":\".71em\").style(\"text-anchor\",\"middle\"),w.attr(\"d\",\"M\"+b[0]+\",\"+I*o+\"V0H\"+b[1]+\"V\"+I*o)):(n=As,k=\"y\",A=\"x\",M=\"y2\",T=\"x2\",C.attr(\"dy\",\".32em\").style(\"text-anchor\",I<0?\"end\":\"start\"),w.attr(\"d\",\"M\"+I*o+\",\"+b[0]+\"H0V\"+b[1]+\"H\"+I*o)),S.attr(T,I*a),L.attr(A,I*x),E.attr(M,0).attr(T,I*a),O.attr(k,0).attr(A,I*x),h.rangeBand){var P=h,D=P.rangeBand()/2;f=h=function(t){return P(t)+D}}else f.rangeBand?f=h:m.call(n,h,f);v.call(n,f,h),y.call(n,h,h)})}return u.scale=function(t){return arguments.length?(r=t,u):r},u.orient=function(t){return arguments.length?(i=t in ks?t+\"\":ws,u):i},u.ticks=function(){return arguments.length?(l=n(arguments),u):l},u.tickValues=function(t){return arguments.length?(c=t,u):c},u.tickFormat=function(t){return arguments.length?(e=t,u):e},u.tickSize=function(t){var e=arguments.length;return e?(a=+t,o=+arguments[e-1],u):a},u.innerTickSize=function(t){return arguments.length?(a=+t,u):a},u.outerTickSize=function(t){return arguments.length?(o=+t,u):o},u.tickPadding=function(t){return arguments.length?(s=+t,u):s},u.tickSubdivide=function(){return arguments.length&&u},u};var ws=\"bottom\",ks={top:1,right:1,bottom:1,left:1};function Ms(t,e,r){t.attr(\"transform\",function(t){var n=e(t);return\"translate(\"+(isFinite(n)?n:r(t))+\",0)\"})}function As(t,e,r){t.attr(\"transform\",function(t){var n=e(t);return\"translate(0,\"+(isFinite(n)?n:r(t))+\")\"})}t.svg.brush=function(){var e,r,n=j(h,\"brushstart\",\"brush\",\"brushend\"),i=null,a=null,s=[0,0],l=[0,0],c=!0,u=!0,f=Ss[0];function h(e){e.each(function(){var e=t.select(this).style(\"pointer-events\",\"all\").style(\"-webkit-tap-highlight-color\",\"rgba(0,0,0,0)\").on(\"mousedown.brush\",v).on(\"touchstart.brush\",v),r=e.selectAll(\".background\").data([0]);r.enter().append(\"rect\").attr(\"class\",\"background\").style(\"visibility\",\"hidden\").style(\"cursor\",\"crosshair\"),e.selectAll(\".extent\").data([0]).enter().append(\"rect\").attr(\"class\",\"extent\").style(\"cursor\",\"move\");var n=e.selectAll(\".resize\").data(f,z);n.exit().remove(),n.enter().append(\"g\").attr(\"class\",function(t){return\"resize \"+t}).style(\"cursor\",function(t){return Ts[t]}).append(\"rect\").attr(\"x\",function(t){return/[ew]$/.test(t)?-3:null}).attr(\"y\",function(t){return/^[ns]/.test(t)?-3:null}).attr(\"width\",6).attr(\"height\",6).style(\"visibility\",\"hidden\"),n.style(\"display\",h.empty()?\"none\":null);var o,s=t.transition(e),l=t.transition(r);i&&(o=uo(i),l.attr(\"x\",o[0]).attr(\"width\",o[1]-o[0]),d(s)),a&&(o=uo(a),l.attr(\"y\",o[0]).attr(\"height\",o[1]-o[0]),g(s)),p(s)})}function p(t){t.selectAll(\".resize\").attr(\"transform\",function(t){return\"translate(\"+s[+/e$/.test(t)]+\",\"+l[+/^s/.test(t)]+\")\"})}function d(t){t.select(\".extent\").attr(\"x\",s[0]),t.selectAll(\".extent,.n>rect,.s>rect\").attr(\"width\",s[1]-s[0])}function g(t){t.select(\".extent\").attr(\"y\",l[0]),t.selectAll(\".extent,.e>rect,.w>rect\").attr(\"height\",l[1]-l[0])}function v(){var f,v,m=this,y=t.select(t.event.target),x=n.of(m,arguments),b=t.select(m),_=y.datum(),w=!/^(n|s)$/.test(_)&&i,k=!/^(e|w)$/.test(_)&&a,M=y.classed(\"extent\"),A=xt(m),T=t.mouse(m),S=t.select(o(m)).on(\"keydown.brush\",function(){32==t.event.keyCode&&(M||(f=null,T[0]-=s[1],T[1]-=l[1],M=2),F())}).on(\"keyup.brush\",function(){32==t.event.keyCode&&2==M&&(T[0]+=s[1],T[1]+=l[1],M=0,F())});if(t.event.changedTouches?S.on(\"touchmove.brush\",L).on(\"touchend.brush\",O):S.on(\"mousemove.brush\",L).on(\"mouseup.brush\",O),b.interrupt().selectAll(\"*\").interrupt(),M)T[0]=s[0]-T[0],T[1]=l[0]-T[1];else if(_){var E=+/w$/.test(_),C=+/^n/.test(_);v=[s[1-E]-T[0],l[1-C]-T[1]],T[0]=s[E],T[1]=l[C]}else t.event.altKey&&(f=T.slice());function L(){var e=t.mouse(m),r=!1;v&&(e[0]+=v[0],e[1]+=v[1]),M||(t.event.altKey?(f||(f=[(s[0]+s[1])/2,(l[0]+l[1])/2]),T[0]=s[+(e[0]<f[0])],T[1]=l[+(e[1]<f[1])]):f=null),w&&z(e,i,0)&&(d(b),r=!0),k&&z(e,a,1)&&(g(b),r=!0),r&&(p(b),x({type:\"brush\",mode:M?\"move\":\"resize\"}))}function z(t,n,i){var a,o,h=uo(n),p=h[0],d=h[1],g=T[i],v=i?l:s,m=v[1]-v[0];if(M&&(p-=g,d-=m+g),a=(i?u:c)?Math.max(p,Math.min(d,t[i])):t[i],M?o=(a+=g)+m:(f&&(g=Math.max(p,Math.min(d,2*f[i]-a))),g<a?(o=a,a=g):o=g),v[0]!=a||v[1]!=o)return i?r=null:e=null,v[0]=a,v[1]=o,!0}function O(){L(),b.style(\"pointer-events\",\"all\").selectAll(\".resize\").style(\"display\",h.empty()?\"none\":null),t.select(\"body\").style(\"cursor\",null),S.on(\"mousemove.brush\",null).on(\"mouseup.brush\",null).on(\"touchmove.brush\",null).on(\"touchend.brush\",null).on(\"keydown.brush\",null).on(\"keyup.brush\",null),A(),x({type:\"brushend\"})}b.style(\"pointer-events\",\"none\").selectAll(\".resize\").style(\"display\",null),t.select(\"body\").style(\"cursor\",y.style(\"cursor\")),x({type:\"brushstart\"}),L()}return h.event=function(i){i.each(function(){var i=n.of(this,arguments),a={x:s,y:l,i:e,j:r},o=this.__chart__||a;this.__chart__=a,ds?t.select(this).transition().each(\"start.brush\",function(){e=o.i,r=o.j,s=o.x,l=o.y,i({type:\"brushstart\"})}).tween(\"brush:brush\",function(){var t=$i(s,a.x),n=$i(l,a.y);return e=r=null,function(e){s=a.x=t(e),l=a.y=n(e),i({type:\"brush\",mode:\"resize\"})}}).each(\"end.brush\",function(){e=a.i,r=a.j,i({type:\"brush\",mode:\"resize\"}),i({type:\"brushend\"})}):(i({type:\"brushstart\"}),i({type:\"brush\",mode:\"resize\"}),i({type:\"brushend\"}))})},h.x=function(t){return arguments.length?(f=Ss[!(i=t)<<1|!a],h):i},h.y=function(t){return arguments.length?(f=Ss[!i<<1|!(a=t)],h):a},h.clamp=function(t){return arguments.length?(i&&a?(c=!!t[0],u=!!t[1]):i?c=!!t:a&&(u=!!t),h):i&&a?[c,u]:i?c:a?u:null},h.extent=function(t){var n,o,c,u,f;return arguments.length?(i&&(n=t[0],o=t[1],a&&(n=n[0],o=o[0]),e=[n,o],i.invert&&(n=i(n),o=i(o)),o<n&&(f=n,n=o,o=f),n==s[0]&&o==s[1]||(s=[n,o])),a&&(c=t[0],u=t[1],i&&(c=c[1],u=u[1]),r=[c,u],a.invert&&(c=a(c),u=a(u)),u<c&&(f=c,c=u,u=f),c==l[0]&&u==l[1]||(l=[c,u])),h):(i&&(e?(n=e[0],o=e[1]):(n=s[0],o=s[1],i.invert&&(n=i.invert(n),o=i.invert(o)),o<n&&(f=n,n=o,o=f))),a&&(r?(c=r[0],u=r[1]):(c=l[0],u=l[1],a.invert&&(c=a.invert(c),u=a.invert(u)),u<c&&(f=c,c=u,u=f))),i&&a?[[n,c],[o,u]]:i?[n,o]:a&&[c,u])},h.clear=function(){return h.empty()||(s=[0,0],l=[0,0],e=r=null),h},h.empty=function(){return!!i&&s[0]==s[1]||!!a&&l[0]==l[1]},t.rebind(h,n,\"on\")};var Ts={n:\"ns-resize\",e:\"ew-resize\",s:\"ns-resize\",w:\"ew-resize\",nw:\"nwse-resize\",ne:\"nesw-resize\",se:\"nwse-resize\",sw:\"nesw-resize\"},Ss=[[\"n\",\"e\",\"s\",\"w\",\"nw\",\"ne\",\"se\",\"sw\"],[\"e\",\"w\"],[\"n\",\"s\"],[]],Es=Ie.format=sr.timeFormat,Cs=Es.utc,Ls=Cs(\"%Y-%m-%dT%H:%M:%S.%LZ\");function zs(t){return t.toISOString()}function Os(e,r,n){function i(t){return e(t)}function a(e,n){var i=(e[1]-e[0])/n,a=t.bisect(Ps,i);return a==Ps.length?[r.year,xo(e.map(function(t){return t/31536e6}),n)[2]]:a?r[i/Ps[a-1]<Ps[a]/i?a-1:a]:[Bs,xo(e,n)[2]]}return i.invert=function(t){return Is(e.invert(t))},i.domain=function(t){return arguments.length?(e.domain(t),i):e.domain().map(Is)},i.nice=function(t,e){var r=i.domain(),n=co(r),o=null==t?a(n,10):\"number\"==typeof t&&a(n,t);function s(r){return!isNaN(r)&&!t.range(r,Is(+r+1),e).length}return o&&(t=o[0],e=o[1]),i.domain(ho(r,e>1?{floor:function(e){for(;s(e=t.floor(e));)e=Is(e-1);return e},ceil:function(e){for(;s(e=t.ceil(e));)e=Is(+e+1);return e}}:t))},i.ticks=function(t,e){var r=co(i.domain()),n=null==t?a(r,10):\"number\"==typeof t?a(r,t):!t.range&&[{range:t},e];return n&&(t=n[0],e=n[1]),t.range(r[0],Is(+r[1]+1),e<1?1:e)},i.tickFormat=function(){return n},i.copy=function(){return Os(e.copy(),r,n)},mo(i,e)}function Is(t){return new Date(t)}Es.iso=Date.prototype.toISOString&&+new Date(\"2000-01-01T00:00:00.000Z\")?zs:Ls,zs.parse=function(t){var e=new Date(t);return isNaN(e)?null:e},zs.toString=Ls.toString,Ie.second=Be(function(t){return new Pe(1e3*Math.floor(t/1e3))},function(t,e){t.setTime(t.getTime()+1e3*Math.floor(e))},function(t){return t.getSeconds()}),Ie.seconds=Ie.second.range,Ie.seconds.utc=Ie.second.utc.range,Ie.minute=Be(function(t){return new Pe(6e4*Math.floor(t/6e4))},function(t,e){t.setTime(t.getTime()+6e4*Math.floor(e))},function(t){return t.getMinutes()}),Ie.minutes=Ie.minute.range,Ie.minutes.utc=Ie.minute.utc.range,Ie.hour=Be(function(t){var e=t.getTimezoneOffset()/60;return new Pe(36e5*(Math.floor(t/36e5-e)+e))},function(t,e){t.setTime(t.getTime()+36e5*Math.floor(e))},function(t){return t.getHours()}),Ie.hours=Ie.hour.range,Ie.hours.utc=Ie.hour.utc.range,Ie.month=Be(function(t){return(t=Ie.day(t)).setDate(1),t},function(t,e){t.setMonth(t.getMonth()+e)},function(t){return t.getMonth()}),Ie.months=Ie.month.range,Ie.months.utc=Ie.month.utc.range;var Ps=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],Ds=[[Ie.second,1],[Ie.second,5],[Ie.second,15],[Ie.second,30],[Ie.minute,1],[Ie.minute,5],[Ie.minute,15],[Ie.minute,30],[Ie.hour,1],[Ie.hour,3],[Ie.hour,6],[Ie.hour,12],[Ie.day,1],[Ie.day,2],[Ie.week,1],[Ie.month,1],[Ie.month,3],[Ie.year,1]],Rs=Es.multi([[\".%L\",function(t){return t.getMilliseconds()}],[\":%S\",function(t){return t.getSeconds()}],[\"%I:%M\",function(t){return t.getMinutes()}],[\"%I %p\",function(t){return t.getHours()}],[\"%a %d\",function(t){return t.getDay()&&1!=t.getDate()}],[\"%b %d\",function(t){return 1!=t.getDate()}],[\"%B\",function(t){return t.getMonth()}],[\"%Y\",Wr]]),Bs={range:function(e,r,n){return t.range(Math.ceil(e/n)*n,+r,n).map(Is)},floor:z,ceil:z};Ds.year=Ie.year,Ie.scale=function(){return Os(t.scale.linear(),Ds,Rs)};var Fs=Ds.map(function(t){return[t[0].utc,t[1]]}),Ns=Cs.multi([[\".%L\",function(t){return t.getUTCMilliseconds()}],[\":%S\",function(t){return t.getUTCSeconds()}],[\"%I:%M\",function(t){return t.getUTCMinutes()}],[\"%I %p\",function(t){return t.getUTCHours()}],[\"%a %d\",function(t){return t.getUTCDay()&&1!=t.getUTCDate()}],[\"%b %d\",function(t){return 1!=t.getUTCDate()}],[\"%B\",function(t){return t.getUTCMonth()}],[\"%Y\",Wr]]);function js(t){return JSON.parse(t.responseText)}function Vs(t){var e=i.createRange();return e.selectNode(i.body),e.createContextualFragment(t.responseText)}Fs.year=Ie.year.utc,Ie.scale.utc=function(){return Os(t.scale.linear(),Fs,Ns)},t.text=me(function(t){return t.responseText}),t.json=function(t,e){return ye(t,\"application/json\",js,e)},t.html=function(t,e){return ye(t,\"text/html\",Vs,e)},t.xml=me(function(t){return t.responseXML}),\"object\"==typeof e&&e.exports?e.exports=t:this.d3=t}()},{}],149:[function(t,e,r){e.exports=function(){for(var t=0;t<arguments.length;t++)if(void 0!==arguments[t])return arguments[t]}},{}],150:[function(t,e,r){\"use strict\";var n=t(\"incremental-convex-hull\"),i=t(\"uniq\");function a(t,e){this.point=t,this.index=e}function o(t,e){for(var r=t.point,n=e.point,i=r.length,a=0;a<i;++a){var o=n[a]-r[a];if(o)return o}return 0}e.exports=function(t,e){var r=t.length;if(0===r)return[];var s=t[0].length;if(s<1)return[];if(1===s)return function(t,e,r){if(1===t)return r?[[-1,0]]:[];var n=e.map(function(t,e){return[t[0],e]});n.sort(function(t,e){return t[0]-e[0]});for(var i=new Array(t-1),a=1;a<t;++a){var o=n[a-1],s=n[a];i[a-1]=[o[1],s[1]]}r&&i.push([-1,i[0][1]],[i[t-1][1],-1]);return i}(r,t,e);for(var l=new Array(r),c=1,u=0;u<r;++u){for(var f=t[u],h=new Array(s+1),p=0,d=0;d<s;++d){var g=f[d];h[d]=g,p+=g*g}h[s]=p,l[u]=new a(h,u),c=Math.max(p,c)}i(l,o),r=l.length;for(var v=new Array(r+s+1),m=new Array(r+s+1),y=(s+1)*(s+1)*c,x=new Array(s+1),u=0;u<=s;++u)x[u]=0;x[s]=y,v[0]=x.slice(),m[0]=-1;for(var u=0;u<=s;++u){var h=x.slice();h[u]=1,v[u+1]=h,m[u+1]=-1}for(var u=0;u<r;++u){var b=l[u];v[u+s+1]=b.point,m[u+s+1]=b.index}var _=n(v,!1);_=e?_.filter(function(t){for(var e=0,r=0;r<=s;++r){var n=m[t[r]];if(n<0&&++e>=2)return!1;t[r]=n}return!0}):_.filter(function(t){for(var e=0;e<=s;++e){var r=m[t[e]];if(r<0)return!1;t[e]=r}return!0});if(1&s)for(var u=0;u<_.length;++u){var b=_[u],h=b[0];b[0]=b[1],b[1]=h}return _}},{\"incremental-convex-hull\":396,uniq:524}],151:[function(t,e,r){\"use strict\";e.exports=a;var n=(a.canvas=document.createElement(\"canvas\")).getContext(\"2d\"),i=o([32,126]);function a(t,e){Array.isArray(t)&&(t=t.join(\", \"));var r,a={},s=16,l=.05;e&&(2===e.length&&\"number\"==typeof e[0]?r=o(e):Array.isArray(e)?r=e:(e.o?r=o(e.o):e.pairs&&(r=e.pairs),e.fontSize&&(s=e.fontSize),null!=e.threshold&&(l=e.threshold))),r||(r=i),n.font=s+\"px \"+t;for(var c=0;c<r.length;c++){var u=r[c],f=n.measureText(u[0]).width+n.measureText(u[1]).width,h=n.measureText(u).width;if(Math.abs(f-h)>s*l){var p=(h-f)/s;a[u]=1e3*p}}return a}function o(t){for(var e=[],r=t[0];r<=t[1];r++)for(var n=String.fromCharCode(r),i=t[0];i<t[1];i++){var a=n+String.fromCharCode(i);e.push(a)}return e}a.createPairs=o,a.ascii=i},{}],152:[function(t,e,r){(function(t){var r=!1;if(\"undefined\"!=typeof Float64Array){var n=new Float64Array(1),i=new Uint32Array(n.buffer);if(n[0]=1,r=!0,1072693248===i[1]){e.exports=function(t){return n[0]=t,[i[0],i[1]]},e.exports.pack=function(t,e){return i[0]=t,i[1]=e,n[0]},e.exports.lo=function(t){return n[0]=t,i[0]},e.exports.hi=function(t){return n[0]=t,i[1]}}else if(1072693248===i[0]){e.exports=function(t){return n[0]=t,[i[1],i[0]]},e.exports.pack=function(t,e){return i[1]=t,i[0]=e,n[0]},e.exports.lo=function(t){return n[0]=t,i[1]},e.exports.hi=function(t){return n[0]=t,i[0]}}else r=!1}if(!r){var a=new t(8);e.exports=function(t){return a.writeDoubleLE(t,0,!0),[a.readUInt32LE(0,!0),a.readUInt32LE(4,!0)]},e.exports.pack=function(t,e){return a.writeUInt32LE(t,0,!0),a.writeUInt32LE(e,4,!0),a.readDoubleLE(0,!0)},e.exports.lo=function(t){return a.writeDoubleLE(t,0,!0),a.readUInt32LE(0,!0)},e.exports.hi=function(t){return a.writeDoubleLE(t,0,!0),a.readUInt32LE(4,!0)}}e.exports.sign=function(t){return e.exports.hi(t)>>>31},e.exports.exponent=function(t){return(e.exports.hi(t)<<1>>>21)-1023},e.exports.fraction=function(t){var r=e.exports.lo(t),n=e.exports.hi(t),i=1048575&n;return 2146435072&n&&(i+=1<<20),[r,i]},e.exports.denormalized=function(t){return!(2146435072&e.exports.hi(t))}}).call(this,t(\"buffer\").Buffer)},{buffer:93}],153:[function(t,e,r){var n=t(\"abs-svg-path\"),i=t(\"normalize-svg-path\"),a={M:\"moveTo\",C:\"bezierCurveTo\"};e.exports=function(t,e){t.beginPath(),i(n(e)).forEach(function(e){var r=e[0],n=e.slice(1);t[a[r]].apply(t,n)}),t.closePath()}},{\"abs-svg-path\":48,\"normalize-svg-path\":435}],154:[function(t,e,r){e.exports=function(t){switch(t){case\"int8\":return Int8Array;case\"int16\":return Int16Array;case\"int32\":return Int32Array;case\"uint8\":return Uint8Array;case\"uint16\":return Uint16Array;case\"uint32\":return Uint32Array;case\"float32\":return Float32Array;case\"float64\":return Float64Array;case\"array\":return Array;case\"uint8_clamped\":return Uint8ClampedArray}}},{}],155:[function(t,e,r){\"use strict\";e.exports=function(t,e){switch(\"undefined\"==typeof e&&(e=0),typeof t){case\"number\":if(t>0)return function(t,e){var r,n;for(r=new Array(t),n=0;n<t;++n)r[n]=e;return r}(0|t,e);break;case\"object\":if(\"number\"==typeof t.length)return function t(e,r,n){var i=0|e[n];if(i<=0)return[];var a,o=new Array(i);if(n===e.length-1)for(a=0;a<i;++a)o[a]=r;else for(a=0;a<i;++a)o[a]=t(e,r,n+1);return o}(t,e,0)}return[]}},{}],156:[function(t,e,r){\"use strict\";function n(t,e,r){r=r||2;var n,s,l,c,u,p,g,v=e&&e.length,m=v?e[0]*r:t.length,y=i(t,0,m,r,!0),x=[];if(!y)return x;if(v&&(y=function(t,e,r,n){var o,s,l,c,u,p=[];for(o=0,s=e.length;o<s;o++)l=e[o]*n,c=o<s-1?e[o+1]*n:t.length,(u=i(t,l,c,n,!1))===u.next&&(u.steiner=!0),p.push(d(u));for(p.sort(f),o=0;o<p.length;o++)h(p[o],r),r=a(r,r.next);return r}(t,e,y,r)),t.length>80*r){n=l=t[0],s=c=t[1];for(var b=r;b<m;b+=r)(u=t[b])<n&&(n=u),(p=t[b+1])<s&&(s=p),u>l&&(l=u),p>c&&(c=p);g=0!==(g=Math.max(l-n,c-s))?1/g:0}return o(y,x,r,n,s,g),x}function i(t,e,r,n,i){var a,o;if(i===A(t,e,r,n)>0)for(a=e;a<r;a+=n)o=w(a,t[a],t[a+1],o);else for(a=r-n;a>=e;a-=n)o=w(a,t[a],t[a+1],o);return o&&y(o,o.next)&&(k(o),o=o.next),o}function a(t,e){if(!t)return t;e||(e=t);var r,n=t;do{if(r=!1,n.steiner||!y(n,n.next)&&0!==m(n.prev,n,n.next))n=n.next;else{if(k(n),(n=e=n.prev)===n.next)break;r=!0}}while(r||n!==e);return e}function o(t,e,r,n,i,f,h){if(t){!h&&f&&function(t,e,r,n){var i=t;do{null===i.z&&(i.z=p(i.x,i.y,e,r,n)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==t);i.prevZ.nextZ=null,i.prevZ=null,function(t){var e,r,n,i,a,o,s,l,c=1;do{for(r=t,t=null,a=null,o=0;r;){for(o++,n=r,s=0,e=0;e<c&&(s++,n=n.nextZ);e++);for(l=c;s>0||l>0&&n;)0!==s&&(0===l||!n||r.z<=n.z)?(i=r,r=r.nextZ,s--):(i=n,n=n.nextZ,l--),a?a.nextZ=i:t=i,i.prevZ=a,a=i;r=n}a.nextZ=null,c*=2}while(o>1)}(i)}(t,n,i,f);for(var d,g,v=t;t.prev!==t.next;)if(d=t.prev,g=t.next,f?l(t,n,i,f):s(t))e.push(d.i/r),e.push(t.i/r),e.push(g.i/r),k(t),t=g.next,v=g.next;else if((t=g)===v){h?1===h?o(t=c(t,e,r),e,r,n,i,f,2):2===h&&u(t,e,r,n,i,f):o(a(t),e,r,n,i,f,1);break}}}function s(t){var e=t.prev,r=t,n=t.next;if(m(e,r,n)>=0)return!1;for(var i=t.next.next;i!==t.prev;){if(g(e.x,e.y,r.x,r.y,n.x,n.y,i.x,i.y)&&m(i.prev,i,i.next)>=0)return!1;i=i.next}return!0}function l(t,e,r,n){var i=t.prev,a=t,o=t.next;if(m(i,a,o)>=0)return!1;for(var s=i.x<a.x?i.x<o.x?i.x:o.x:a.x<o.x?a.x:o.x,l=i.y<a.y?i.y<o.y?i.y:o.y:a.y<o.y?a.y:o.y,c=i.x>a.x?i.x>o.x?i.x:o.x:a.x>o.x?a.x:o.x,u=i.y>a.y?i.y>o.y?i.y:o.y:a.y>o.y?a.y:o.y,f=p(s,l,e,r,n),h=p(c,u,e,r,n),d=t.prevZ,v=t.nextZ;d&&d.z>=f&&v&&v.z<=h;){if(d!==t.prev&&d!==t.next&&g(i.x,i.y,a.x,a.y,o.x,o.y,d.x,d.y)&&m(d.prev,d,d.next)>=0)return!1;if(d=d.prevZ,v!==t.prev&&v!==t.next&&g(i.x,i.y,a.x,a.y,o.x,o.y,v.x,v.y)&&m(v.prev,v,v.next)>=0)return!1;v=v.nextZ}for(;d&&d.z>=f;){if(d!==t.prev&&d!==t.next&&g(i.x,i.y,a.x,a.y,o.x,o.y,d.x,d.y)&&m(d.prev,d,d.next)>=0)return!1;d=d.prevZ}for(;v&&v.z<=h;){if(v!==t.prev&&v!==t.next&&g(i.x,i.y,a.x,a.y,o.x,o.y,v.x,v.y)&&m(v.prev,v,v.next)>=0)return!1;v=v.nextZ}return!0}function c(t,e,r){var n=t;do{var i=n.prev,a=n.next.next;!y(i,a)&&x(i,n,n.next,a)&&b(i,a)&&b(a,i)&&(e.push(i.i/r),e.push(n.i/r),e.push(a.i/r),k(n),k(n.next),n=t=a),n=n.next}while(n!==t);return n}function u(t,e,r,n,i,s){var l=t;do{for(var c=l.next.next;c!==l.prev;){if(l.i!==c.i&&v(l,c)){var u=_(l,c);return l=a(l,l.next),u=a(u,u.next),o(l,e,r,n,i,s),void o(u,e,r,n,i,s)}c=c.next}l=l.next}while(l!==t)}function f(t,e){return t.x-e.x}function h(t,e){if(e=function(t,e){var r,n=e,i=t.x,a=t.y,o=-1/0;do{if(a<=n.y&&a>=n.next.y&&n.next.y!==n.y){var s=n.x+(a-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(s<=i&&s>o){if(o=s,s===i){if(a===n.y)return n;if(a===n.next.y)return n.next}r=n.x<n.next.x?n:n.next}}n=n.next}while(n!==e);if(!r)return null;if(i===o)return r.prev;var l,c=r,u=r.x,f=r.y,h=1/0;n=r.next;for(;n!==c;)i>=n.x&&n.x>=u&&i!==n.x&&g(a<f?i:o,a,u,f,a<f?o:i,a,n.x,n.y)&&((l=Math.abs(a-n.y)/(i-n.x))<h||l===h&&n.x>r.x)&&b(n,t)&&(r=n,h=l),n=n.next;return r}(t,e)){var r=_(e,t);a(r,r.next)}}function p(t,e,r,n,i){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-r)*i)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-n)*i)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function d(t){var e=t,r=t;do{e.x<r.x&&(r=e),e=e.next}while(e!==t);return r}function g(t,e,r,n,i,a,o,s){return(i-o)*(e-s)-(t-o)*(a-s)>=0&&(t-o)*(n-s)-(r-o)*(e-s)>=0&&(r-o)*(a-s)-(i-o)*(n-s)>=0}function v(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){var r=t;do{if(r.i!==t.i&&r.next.i!==t.i&&r.i!==e.i&&r.next.i!==e.i&&x(r,r.next,t,e))return!0;r=r.next}while(r!==t);return!1}(t,e)&&b(t,e)&&b(e,t)&&function(t,e){var r=t,n=!1,i=(t.x+e.x)/2,a=(t.y+e.y)/2;do{r.y>a!=r.next.y>a&&r.next.y!==r.y&&i<(r.next.x-r.x)*(a-r.y)/(r.next.y-r.y)+r.x&&(n=!n),r=r.next}while(r!==t);return n}(t,e)}function m(t,e,r){return(e.y-t.y)*(r.x-e.x)-(e.x-t.x)*(r.y-e.y)}function y(t,e){return t.x===e.x&&t.y===e.y}function x(t,e,r,n){return!!(y(t,e)&&y(r,n)||y(t,n)&&y(r,e))||m(t,e,r)>0!=m(t,e,n)>0&&m(r,n,t)>0!=m(r,n,e)>0}function b(t,e){return m(t.prev,t,t.next)<0?m(t,e,t.next)>=0&&m(t,t.prev,e)>=0:m(t,e,t.prev)<0||m(t,t.next,e)<0}function _(t,e){var r=new M(t.i,t.x,t.y),n=new M(e.i,e.x,e.y),i=t.next,a=e.prev;return t.next=e,e.prev=t,r.next=i,i.prev=r,n.next=r,r.prev=n,a.next=n,n.prev=a,n}function w(t,e,r,n){var i=new M(t,e,r);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function k(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function M(t,e,r){this.i=t,this.x=e,this.y=r,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function A(t,e,r,n){for(var i=0,a=e,o=r-n;a<r;a+=n)i+=(t[o]-t[a])*(t[a+1]+t[o+1]),o=a;return i}e.exports=n,e.exports.default=n,n.deviation=function(t,e,r,n){var i=e&&e.length,a=i?e[0]*r:t.length,o=Math.abs(A(t,0,a,r));if(i)for(var s=0,l=e.length;s<l;s++){var c=e[s]*r,u=s<l-1?e[s+1]*r:t.length;o-=Math.abs(A(t,c,u,r))}var f=0;for(s=0;s<n.length;s+=3){var h=n[s]*r,p=n[s+1]*r,d=n[s+2]*r;f+=Math.abs((t[h]-t[d])*(t[p+1]-t[h+1])-(t[h]-t[p])*(t[d+1]-t[h+1]))}return 0===o&&0===f?0:Math.abs((f-o)/o)},n.flatten=function(t){for(var e=t[0][0].length,r={vertices:[],holes:[],dimensions:e},n=0,i=0;i<t.length;i++){for(var a=0;a<t[i].length;a++)for(var o=0;o<e;o++)r.vertices.push(t[i][a][o]);i>0&&(n+=t[i-1].length,r.holes.push(n))}return r}},{}],157:[function(t,e,r){\"use strict\";e.exports=function(t,e){var r=t.length;if(\"number\"!=typeof e){e=0;for(var i=0;i<r;++i){var a=t[i];e=Math.max(e,a[0],a[1])}e=1+(0|e)}e|=0;for(var o=new Array(e),i=0;i<e;++i)o[i]=[];for(var i=0;i<r;++i){var a=t[i];o[a[0]].push(a[1]),o[a[1]].push(a[0])}for(var s=0;s<e;++s)n(o[s],function(t,e){return t-e});return o};var n=t(\"uniq\")},{uniq:524}],158:[function(t,e,r){\"use strict\";var n=t(\"../../object/valid-value\");e.exports=function(){return n(this).length=0,this}},{\"../../object/valid-value\":190}],159:[function(t,e,r){\"use strict\";e.exports=t(\"./is-implemented\")()?Array.from:t(\"./shim\")},{\"./is-implemented\":160,\"./shim\":161}],160:[function(t,e,r){\"use strict\";e.exports=function(){var t,e,r=Array.from;return\"function\"==typeof r&&(e=r(t=[\"raz\",\"dwa\"]),Boolean(e&&e!==t&&\"dwa\"===e[1]))}},{}],161:[function(t,e,r){\"use strict\";var n=t(\"es6-symbol\").iterator,i=t(\"../../function/is-arguments\"),a=t(\"../../function/is-function\"),o=t(\"../../number/to-pos-integer\"),s=t(\"../../object/valid-callable\"),l=t(\"../../object/valid-value\"),c=t(\"../../object/is-value\"),u=t(\"../../string/is-string\"),f=Array.isArray,h=Function.prototype.call,p={configurable:!0,enumerable:!0,writable:!0,value:null},d=Object.defineProperty;e.exports=function(t){var e,r,g,v,m,y,x,b,_,w,k=arguments[1],M=arguments[2];if(t=Object(l(t)),c(k)&&s(k),this&&this!==Array&&a(this))e=this;else{if(!k){if(i(t))return 1!==(m=t.length)?Array.apply(null,t):((v=new Array(1))[0]=t[0],v);if(f(t)){for(v=new Array(m=t.length),r=0;r<m;++r)v[r]=t[r];return v}}v=[]}if(!f(t))if(void 0!==(_=t[n])){for(x=s(_).call(t),e&&(v=new e),b=x.next(),r=0;!b.done;)w=k?h.call(k,M,b.value,r):b.value,e?(p.value=w,d(v,r,p)):v[r]=w,b=x.next(),++r;m=r}else if(u(t)){for(m=t.length,e&&(v=new e),r=0,g=0;r<m;++r)w=t[r],r+1<m&&(y=w.charCodeAt(0))>=55296&&y<=56319&&(w+=t[++r]),w=k?h.call(k,M,w,g):w,e?(p.value=w,d(v,g,p)):v[g]=w,++g;m=g}if(void 0===m)for(m=o(t.length),e&&(v=new e(m)),r=0;r<m;++r)w=k?h.call(k,M,t[r],r):t[r],e?(p.value=w,d(v,r,p)):v[r]=w;return e&&(p.value=null,v.length=m),v}},{\"../../function/is-arguments\":162,\"../../function/is-function\":163,\"../../number/to-pos-integer\":169,\"../../object/is-value\":179,\"../../object/valid-callable\":188,\"../../object/valid-value\":190,\"../../string/is-string\":194,\"es6-symbol\":204}],162:[function(t,e,r){\"use strict\";var n=Object.prototype.toString,i=n.call(function(){return arguments}());e.exports=function(t){return n.call(t)===i}},{}],163:[function(t,e,r){\"use strict\";var n=Object.prototype.toString,i=n.call(t(\"./noop\"));e.exports=function(t){return\"function\"==typeof t&&n.call(t)===i}},{\"./noop\":164}],164:[function(t,e,r){\"use strict\";e.exports=function(){}},{}],165:[function(t,e,r){\"use strict\";e.exports=t(\"./is-implemented\")()?Math.sign:t(\"./shim\")},{\"./is-implemented\":166,\"./shim\":167}],166:[function(t,e,r){\"use strict\";e.exports=function(){var t=Math.sign;return\"function\"==typeof t&&(1===t(10)&&-1===t(-20))}},{}],167:[function(t,e,r){\"use strict\";e.exports=function(t){return t=Number(t),isNaN(t)||0===t?t:t>0?1:-1}},{}],168:[function(t,e,r){\"use strict\";var n=t(\"../math/sign\"),i=Math.abs,a=Math.floor;e.exports=function(t){return isNaN(t)?0:0!==(t=Number(t))&&isFinite(t)?n(t)*a(i(t)):t}},{\"../math/sign\":165}],169:[function(t,e,r){\"use strict\";var n=t(\"./to-integer\"),i=Math.max;e.exports=function(t){return i(0,n(t))}},{\"./to-integer\":168}],170:[function(t,e,r){\"use strict\";var n=t(\"./valid-callable\"),i=t(\"./valid-value\"),a=Function.prototype.bind,o=Function.prototype.call,s=Object.keys,l=Object.prototype.propertyIsEnumerable;e.exports=function(t,e){return function(r,c){var u,f=arguments[2],h=arguments[3];return r=Object(i(r)),n(c),u=s(r),h&&u.sort(\"function\"==typeof h?a.call(h,r):void 0),\"function\"!=typeof t&&(t=u[t]),o.call(t,u,function(t,n){return l.call(r,t)?o.call(c,f,r[t],t,r,n):e})}}},{\"./valid-callable\":188,\"./valid-value\":190}],171:[function(t,e,r){\"use strict\";e.exports=t(\"./is-implemented\")()?Object.assign:t(\"./shim\")},{\"./is-implemented\":172,\"./shim\":173}],172:[function(t,e,r){\"use strict\";e.exports=function(){var t,e=Object.assign;return\"function\"==typeof e&&(e(t={foo:\"raz\"},{bar:\"dwa\"},{trzy:\"trzy\"}),t.foo+t.bar+t.trzy===\"razdwatrzy\")}},{}],173:[function(t,e,r){\"use strict\";var n=t(\"../keys\"),i=t(\"../valid-value\"),a=Math.max;e.exports=function(t,e){var r,o,s,l=a(arguments.length,2);for(t=Object(i(t)),s=function(n){try{t[n]=e[n]}catch(t){r||(r=t)}},o=1;o<l;++o)e=arguments[o],n(e).forEach(s);if(void 0!==r)throw r;return t}},{\"../keys\":180,\"../valid-value\":190}],174:[function(t,e,r){\"use strict\";var n=t(\"../array/from\"),i=t(\"./assign\"),a=t(\"./valid-value\");e.exports=function(t){var e=Object(a(t)),r=arguments[1],o=Object(arguments[2]);if(e!==t&&!r)return e;var s={};return r?n(r,function(e){(o.ensure||e in t)&&(s[e]=t[e])}):i(s,t),s}},{\"../array/from\":159,\"./assign\":171,\"./valid-value\":190}],175:[function(t,e,r){\"use strict\";var n,i,a,o,s=Object.create;t(\"./set-prototype-of/is-implemented\")()||(n=t(\"./set-prototype-of/shim\")),e.exports=n?1!==n.level?s:(i={},a={},o={configurable:!1,enumerable:!1,writable:!0,value:void 0},Object.getOwnPropertyNames(Object.prototype).forEach(function(t){a[t]=\"__proto__\"!==t?o:{configurable:!0,enumerable:!1,writable:!0,value:void 0}}),Object.defineProperties(i,a),Object.defineProperty(n,\"nullPolyfill\",{configurable:!1,enumerable:!1,writable:!1,value:i}),function(t,e){return s(null===t?i:t,e)}):s},{\"./set-prototype-of/is-implemented\":186,\"./set-prototype-of/shim\":187}],176:[function(t,e,r){\"use strict\";e.exports=t(\"./_iterate\")(\"forEach\")},{\"./_iterate\":170}],177:[function(t,e,r){\"use strict\";e.exports=function(t){return\"function\"==typeof t}},{}],178:[function(t,e,r){\"use strict\";var n=t(\"./is-value\"),i={function:!0,object:!0};e.exports=function(t){return n(t)&&i[typeof t]||!1}},{\"./is-value\":179}],179:[function(t,e,r){\"use strict\";var n=t(\"../function/noop\")();e.exports=function(t){return t!==n&&null!==t}},{\"../function/noop\":164}],180:[function(t,e,r){\"use strict\";e.exports=t(\"./is-implemented\")()?Object.keys:t(\"./shim\")},{\"./is-implemented\":181,\"./shim\":182}],181:[function(t,e,r){\"use strict\";e.exports=function(){try{return Object.keys(\"primitive\"),!0}catch(t){return!1}}},{}],182:[function(t,e,r){\"use strict\";var n=t(\"../is-value\"),i=Object.keys;e.exports=function(t){return i(n(t)?Object(t):t)}},{\"../is-value\":179}],183:[function(t,e,r){\"use strict\";var n=t(\"./valid-callable\"),i=t(\"./for-each\"),a=Function.prototype.call;e.exports=function(t,e){var r={},o=arguments[2];return n(e),i(t,function(t,n,i,s){r[n]=a.call(e,o,t,n,i,s)}),r}},{\"./for-each\":176,\"./valid-callable\":188}],184:[function(t,e,r){\"use strict\";var n=t(\"./is-value\"),i=Array.prototype.forEach,a=Object.create;e.exports=function(t){var e=a(null);return i.call(arguments,function(t){n(t)&&function(t,e){var r;for(r in t)e[r]=t[r]}(Object(t),e)}),e}},{\"./is-value\":179}],185:[function(t,e,r){\"use strict\";e.exports=t(\"./is-implemented\")()?Object.setPrototypeOf:t(\"./shim\")},{\"./is-implemented\":186,\"./shim\":187}],186:[function(t,e,r){\"use strict\";var n=Object.create,i=Object.getPrototypeOf,a={};e.exports=function(){var t=Object.setPrototypeOf,e=arguments[0]||n;return\"function\"==typeof t&&i(t(e(null),a))===a}},{}],187:[function(t,e,r){\"use strict\";var n,i,a,o,s=t(\"../is-object\"),l=t(\"../valid-value\"),c=Object.prototype.isPrototypeOf,u=Object.defineProperty,f={configurable:!0,enumerable:!1,writable:!0,value:void 0};n=function(t,e){if(l(t),null===e||s(e))return t;throw new TypeError(\"Prototype must be null or an object\")},e.exports=(i=function(){var t,e=Object.create(null),r={},n=Object.getOwnPropertyDescriptor(Object.prototype,\"__proto__\");if(n){try{(t=n.set).call(e,r)}catch(t){}if(Object.getPrototypeOf(e)===r)return{set:t,level:2}}return e.__proto__=r,Object.getPrototypeOf(e)===r?{level:2}:((e={}).__proto__=r,Object.getPrototypeOf(e)===r&&{level:1})}())?(2===i.level?i.set?(o=i.set,a=function(t,e){return o.call(n(t,e),e),t}):a=function(t,e){return n(t,e).__proto__=e,t}:a=function t(e,r){var i;return n(e,r),(i=c.call(t.nullPolyfill,e))&&delete t.nullPolyfill.__proto__,null===r&&(r=t.nullPolyfill),e.__proto__=r,i&&u(t.nullPolyfill,\"__proto__\",f),e},Object.defineProperty(a,\"level\",{configurable:!1,enumerable:!1,writable:!1,value:i.level})):null,t(\"../create\")},{\"../create\":175,\"../is-object\":178,\"../valid-value\":190}],188:[function(t,e,r){\"use strict\";e.exports=function(t){if(\"function\"!=typeof t)throw new TypeError(t+\" is not a function\");return t}},{}],189:[function(t,e,r){\"use strict\";var n=t(\"./is-object\");e.exports=function(t){if(!n(t))throw new TypeError(t+\" is not an Object\");return t}},{\"./is-object\":178}],190:[function(t,e,r){\"use strict\";var n=t(\"./is-value\");e.exports=function(t){if(!n(t))throw new TypeError(\"Cannot use null or undefined\");return t}},{\"./is-value\":179}],191:[function(t,e,r){\"use strict\";e.exports=t(\"./is-implemented\")()?String.prototype.contains:t(\"./shim\")},{\"./is-implemented\":192,\"./shim\":193}],192:[function(t,e,r){\"use strict\";var n=\"razdwatrzy\";e.exports=function(){return\"function\"==typeof n.contains&&(!0===n.contains(\"dwa\")&&!1===n.contains(\"foo\"))}},{}],193:[function(t,e,r){\"use strict\";var n=String.prototype.indexOf;e.exports=function(t){return n.call(this,t,arguments[1])>-1}},{}],194:[function(t,e,r){\"use strict\";var n=Object.prototype.toString,i=n.call(\"\");e.exports=function(t){return\"string\"==typeof t||t&&\"object\"==typeof t&&(t instanceof String||n.call(t)===i)||!1}},{}],195:[function(t,e,r){\"use strict\";var n=Object.create(null),i=Math.random;e.exports=function(){var t;do{t=i().toString(36).slice(2)}while(n[t]);return t}},{}],196:[function(t,e,r){\"use strict\";var n,i=t(\"es5-ext/object/set-prototype-of\"),a=t(\"es5-ext/string/#/contains\"),o=t(\"d\"),s=t(\"es6-symbol\"),l=t(\"./\"),c=Object.defineProperty;n=e.exports=function(t,e){if(!(this instanceof n))throw new TypeError(\"Constructor requires 'new'\");l.call(this,t),e=e?a.call(e,\"key+value\")?\"key+value\":a.call(e,\"key\")?\"key\":\"value\":\"value\",c(this,\"__kind__\",o(\"\",e))},i&&i(n,l),delete n.prototype.constructor,n.prototype=Object.create(l.prototype,{_resolve:o(function(t){return\"value\"===this.__kind__?this.__list__[t]:\"key+value\"===this.__kind__?[t,this.__list__[t]]:t})}),c(n.prototype,s.toStringTag,o(\"c\",\"Array Iterator\"))},{\"./\":199,d:139,\"es5-ext/object/set-prototype-of\":185,\"es5-ext/string/#/contains\":191,\"es6-symbol\":204}],197:[function(t,e,r){\"use strict\";var n=t(\"es5-ext/function/is-arguments\"),i=t(\"es5-ext/object/valid-callable\"),a=t(\"es5-ext/string/is-string\"),o=t(\"./get\"),s=Array.isArray,l=Function.prototype.call,c=Array.prototype.some;e.exports=function(t,e){var r,u,f,h,p,d,g,v,m=arguments[2];if(s(t)||n(t)?r=\"array\":a(t)?r=\"string\":t=o(t),i(e),f=function(){h=!0},\"array\"!==r)if(\"string\"!==r)for(u=t.next();!u.done;){if(l.call(e,m,u.value,f),h)return;u=t.next()}else for(d=t.length,p=0;p<d&&(g=t[p],p+1<d&&(v=g.charCodeAt(0))>=55296&&v<=56319&&(g+=t[++p]),l.call(e,m,g,f),!h);++p);else c.call(t,function(t){return l.call(e,m,t,f),h})}},{\"./get\":198,\"es5-ext/function/is-arguments\":162,\"es5-ext/object/valid-callable\":188,\"es5-ext/string/is-string\":194}],198:[function(t,e,r){\"use strict\";var n=t(\"es5-ext/function/is-arguments\"),i=t(\"es5-ext/string/is-string\"),a=t(\"./array\"),o=t(\"./string\"),s=t(\"./valid-iterable\"),l=t(\"es6-symbol\").iterator;e.exports=function(t){return\"function\"==typeof s(t)[l]?t[l]():n(t)?new a(t):i(t)?new o(t):new a(t)}},{\"./array\":196,\"./string\":201,\"./valid-iterable\":202,\"es5-ext/function/is-arguments\":162,\"es5-ext/string/is-string\":194,\"es6-symbol\":204}],199:[function(t,e,r){\"use strict\";var n,i=t(\"es5-ext/array/#/clear\"),a=t(\"es5-ext/object/assign\"),o=t(\"es5-ext/object/valid-callable\"),s=t(\"es5-ext/object/valid-value\"),l=t(\"d\"),c=t(\"d/auto-bind\"),u=t(\"es6-symbol\"),f=Object.defineProperty,h=Object.defineProperties;e.exports=n=function(t,e){if(!(this instanceof n))throw new TypeError(\"Constructor requires 'new'\");h(this,{__list__:l(\"w\",s(t)),__context__:l(\"w\",e),__nextIndex__:l(\"w\",0)}),e&&(o(e.on),e.on(\"_add\",this._onAdd),e.on(\"_delete\",this._onDelete),e.on(\"_clear\",this._onClear))},delete n.prototype.constructor,h(n.prototype,a({_next:l(function(){var t;if(this.__list__)return this.__redo__&&void 0!==(t=this.__redo__.shift())?t:this.__nextIndex__<this.__list__.length?this.__nextIndex__++:void this._unBind()}),next:l(function(){return this._createResult(this._next())}),_createResult:l(function(t){return void 0===t?{done:!0,value:void 0}:{done:!1,value:this._resolve(t)}}),_resolve:l(function(t){return this.__list__[t]}),_unBind:l(function(){this.__list__=null,delete this.__redo__,this.__context__&&(this.__context__.off(\"_add\",this._onAdd),this.__context__.off(\"_delete\",this._onDelete),this.__context__.off(\"_clear\",this._onClear),this.__context__=null)}),toString:l(function(){return\"[object \"+(this[u.toStringTag]||\"Object\")+\"]\"})},c({_onAdd:l(function(t){t>=this.__nextIndex__||(++this.__nextIndex__,this.__redo__?(this.__redo__.forEach(function(e,r){e>=t&&(this.__redo__[r]=++e)},this),this.__redo__.push(t)):f(this,\"__redo__\",l(\"c\",[t])))}),_onDelete:l(function(t){var e;t>=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&&(-1!==(e=this.__redo__.indexOf(t))&&this.__redo__.splice(e,1),this.__redo__.forEach(function(e,r){e>t&&(this.__redo__[r]=--e)},this)))}),_onClear:l(function(){this.__redo__&&i.call(this.__redo__),this.__nextIndex__=0})}))),f(n.prototype,u.iterator,l(function(){return this}))},{d:139,\"d/auto-bind\":138,\"es5-ext/array/#/clear\":158,\"es5-ext/object/assign\":171,\"es5-ext/object/valid-callable\":188,\"es5-ext/object/valid-value\":190,\"es6-symbol\":204}],200:[function(t,e,r){\"use strict\";var n=t(\"es5-ext/function/is-arguments\"),i=t(\"es5-ext/object/is-value\"),a=t(\"es5-ext/string/is-string\"),o=t(\"es6-symbol\").iterator,s=Array.isArray;e.exports=function(t){return!!i(t)&&(!!s(t)||(!!a(t)||(!!n(t)||\"function\"==typeof t[o])))}},{\"es5-ext/function/is-arguments\":162,\"es5-ext/object/is-value\":179,\"es5-ext/string/is-string\":194,\"es6-symbol\":204}],201:[function(t,e,r){\"use strict\";var n,i=t(\"es5-ext/object/set-prototype-of\"),a=t(\"d\"),o=t(\"es6-symbol\"),s=t(\"./\"),l=Object.defineProperty;n=e.exports=function(t){if(!(this instanceof n))throw new TypeError(\"Constructor requires 'new'\");t=String(t),s.call(this,t),l(this,\"__length__\",a(\"\",t.length))},i&&i(n,s),delete n.prototype.constructor,n.prototype=Object.create(s.prototype,{_next:a(function(){if(this.__list__)return this.__nextIndex__<this.__length__?this.__nextIndex__++:void this._unBind()}),_resolve:a(function(t){var e,r=this.__list__[t];return this.__nextIndex__===this.__length__?r:(e=r.charCodeAt(0))>=55296&&e<=56319?r+this.__list__[this.__nextIndex__++]:r})}),l(n.prototype,o.toStringTag,a(\"c\",\"String Iterator\"))},{\"./\":199,d:139,\"es5-ext/object/set-prototype-of\":185,\"es6-symbol\":204}],202:[function(t,e,r){\"use strict\";var n=t(\"./is-iterable\");e.exports=function(t){if(!n(t))throw new TypeError(t+\" is not iterable\");return t}},{\"./is-iterable\":200}],203:[function(t,e,r){(function(n,i){!function(t,n){\"object\"==typeof r&&\"undefined\"!=typeof e?e.exports=n():t.ES6Promise=n()}(this,function(){\"use strict\";function e(t){return\"function\"==typeof t}var r=Array.isArray?Array.isArray:function(t){return\"[object Array]\"===Object.prototype.toString.call(t)},a=0,o=void 0,s=void 0,l=function(t,e){g[a]=t,g[a+1]=e,2===(a+=2)&&(s?s(v):_())};var c=\"undefined\"!=typeof window?window:void 0,u=c||{},f=u.MutationObserver||u.WebKitMutationObserver,h=\"undefined\"==typeof self&&\"undefined\"!=typeof n&&\"[object process]\"==={}.toString.call(n),p=\"undefined\"!=typeof Uint8ClampedArray&&\"undefined\"!=typeof importScripts&&\"undefined\"!=typeof MessageChannel;function d(){var t=setTimeout;return function(){return t(v,1)}}var g=new Array(1e3);function v(){for(var t=0;t<a;t+=2){(0,g[t])(g[t+1]),g[t]=void 0,g[t+1]=void 0}a=0}var m,y,x,b,_=void 0;function w(t,e){var r=arguments,n=this,i=new this.constructor(A);void 0===i[M]&&U(i);var a,o=n._state;return o?(a=r[o-1],l(function(){return j(o,i,a,n._result)})):R(n,i,t,e),i}function k(t){if(t&&\"object\"==typeof t&&t.constructor===this)return t;var e=new this(A);return O(e,t),e}h?_=function(){return n.nextTick(v)}:f?(y=0,x=new f(v),b=document.createTextNode(\"\"),x.observe(b,{characterData:!0}),_=function(){b.data=y=++y%2}):p?((m=new MessageChannel).port1.onmessage=v,_=function(){return m.port2.postMessage(0)}):_=void 0===c&&\"function\"==typeof t?function(){try{var e=t(\"vertx\");return o=e.runOnLoop||e.runOnContext,function(){o(v)}}catch(t){return d()}}():d();var M=Math.random().toString(36).substring(16);function A(){}var T=void 0,S=1,E=2,C=new F;function L(t){try{return t.then}catch(t){return C.error=t,C}}function z(t,r,n){r.constructor===t.constructor&&n===w&&r.constructor.resolve===k?function(t,e){e._state===S?P(t,e._result):e._state===E?D(t,e._result):R(e,void 0,function(e){return O(t,e)},function(e){return D(t,e)})}(t,r):n===C?D(t,C.error):void 0===n?P(t,r):e(n)?function(t,e,r){l(function(t){var n=!1,i=function(t,e,r,n){try{t.call(e,r,n)}catch(t){return t}}(r,e,function(r){n||(n=!0,e!==r?O(t,r):P(t,r))},function(e){n||(n=!0,D(t,e))},t._label);!n&&i&&(n=!0,D(t,i))},t)}(t,r,n):P(t,r)}function O(t,e){var r;t===e?D(t,new TypeError(\"You cannot resolve a promise with itself\")):\"function\"==typeof(r=e)||\"object\"==typeof r&&null!==r?z(t,e,L(e)):P(t,e)}function I(t){t._onerror&&t._onerror(t._result),B(t)}function P(t,e){t._state===T&&(t._result=e,t._state=S,0!==t._subscribers.length&&l(B,t))}function D(t,e){t._state===T&&(t._state=E,t._result=e,l(I,t))}function R(t,e,r,n){var i=t._subscribers,a=i.length;t._onerror=null,i[a]=e,i[a+S]=r,i[a+E]=n,0===a&&t._state&&l(B,t)}function B(t){var e=t._subscribers,r=t._state;if(0!==e.length){for(var n=void 0,i=void 0,a=t._result,o=0;o<e.length;o+=3)n=e[o],i=e[o+r],n?j(r,n,i,a):i(a);t._subscribers.length=0}}function F(){this.error=null}var N=new F;function j(t,r,n,i){var a=e(n),o=void 0,s=void 0,l=void 0,c=void 0;if(a){if((o=function(t,e){try{return t(e)}catch(t){return N.error=t,N}}(n,i))===N?(c=!0,s=o.error,o=null):l=!0,r===o)return void D(r,new TypeError(\"A promises callback cannot return that same promise.\"))}else o=i,l=!0;r._state!==T||(a&&l?O(r,o):c?D(r,s):t===S?P(r,o):t===E&&D(r,o))}var V=0;function U(t){t[M]=V++,t._state=void 0,t._result=void 0,t._subscribers=[]}function q(t,e){this._instanceConstructor=t,this.promise=new t(A),this.promise[M]||U(this.promise),r(e)?(this._input=e,this.length=e.length,this._remaining=e.length,this._result=new Array(this.length),0===this.length?P(this.promise,this._result):(this.length=this.length||0,this._enumerate(),0===this._remaining&&P(this.promise,this._result))):D(this.promise,new Error(\"Array Methods must be provided an Array\"))}function H(t){this[M]=V++,this._result=this._state=void 0,this._subscribers=[],A!==t&&(\"function\"!=typeof t&&function(){throw new TypeError(\"You must pass a resolver function as the first argument to the promise constructor\")}(),this instanceof H?function(t,e){try{e(function(e){O(t,e)},function(e){D(t,e)})}catch(e){D(t,e)}}(this,t):function(){throw new TypeError(\"Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.\")}())}function G(){var t=void 0;if(\"undefined\"!=typeof i)t=i;else if(\"undefined\"!=typeof self)t=self;else try{t=Function(\"return this\")()}catch(t){throw new Error(\"polyfill failed because global object is unavailable in this environment\")}var e=t.Promise;if(e){var r=null;try{r=Object.prototype.toString.call(e.resolve())}catch(t){}if(\"[object Promise]\"===r&&!e.cast)return}t.Promise=H}return q.prototype._enumerate=function(){for(var t=this.length,e=this._input,r=0;this._state===T&&r<t;r++)this._eachEntry(e[r],r)},q.prototype._eachEntry=function(t,e){var r=this._instanceConstructor,n=r.resolve;if(n===k){var i=L(t);if(i===w&&t._state!==T)this._settledAt(t._state,e,t._result);else if(\"function\"!=typeof i)this._remaining--,this._result[e]=t;else if(r===H){var a=new r(A);z(a,t,i),this._willSettleAt(a,e)}else this._willSettleAt(new r(function(e){return e(t)}),e)}else this._willSettleAt(n(t),e)},q.prototype._settledAt=function(t,e,r){var n=this.promise;n._state===T&&(this._remaining--,t===E?D(n,r):this._result[e]=r),0===this._remaining&&P(n,this._result)},q.prototype._willSettleAt=function(t,e){var r=this;R(t,void 0,function(t){return r._settledAt(S,e,t)},function(t){return r._settledAt(E,e,t)})},H.all=function(t){return new q(this,t).promise},H.race=function(t){var e=this;return r(t)?new e(function(r,n){for(var i=t.length,a=0;a<i;a++)e.resolve(t[a]).then(r,n)}):new e(function(t,e){return e(new TypeError(\"You must pass an array to race.\"))})},H.resolve=k,H.reject=function(t){var e=new this(A);return D(e,t),e},H._setScheduler=function(t){s=t},H._setAsap=function(t){l=t},H._asap=l,H.prototype={constructor:H,then:w,catch:function(t){return this.then(null,t)}},G(),H.polyfill=G,H.Promise=H,H})}).call(this,t(\"_process\"),\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{_process:465}],204:[function(t,e,r){\"use strict\";e.exports=t(\"./is-implemented\")()?Symbol:t(\"./polyfill\")},{\"./is-implemented\":205,\"./polyfill\":207}],205:[function(t,e,r){\"use strict\";var n={object:!0,symbol:!0};e.exports=function(){var t;if(\"function\"!=typeof Symbol)return!1;t=Symbol(\"test symbol\");try{String(t)}catch(t){return!1}return!!n[typeof Symbol.iterator]&&(!!n[typeof Symbol.toPrimitive]&&!!n[typeof Symbol.toStringTag])}},{}],206:[function(t,e,r){\"use strict\";e.exports=function(t){return!!t&&(\"symbol\"==typeof t||!!t.constructor&&(\"Symbol\"===t.constructor.name&&\"Symbol\"===t[t.constructor.toStringTag]))}},{}],207:[function(t,e,r){\"use strict\";var n,i,a,o,s=t(\"d\"),l=t(\"./validate-symbol\"),c=Object.create,u=Object.defineProperties,f=Object.defineProperty,h=Object.prototype,p=c(null);if(\"function\"==typeof Symbol){n=Symbol;try{String(n()),o=!0}catch(t){}}var d,g=(d=c(null),function(t){for(var e,r,n=0;d[t+(n||\"\")];)++n;return d[t+=n||\"\"]=!0,f(h,e=\"@@\"+t,s.gs(null,function(t){r||(r=!0,f(this,e,s(t)),r=!1)})),e});a=function(t){if(this instanceof a)throw new TypeError(\"Symbol is not a constructor\");return i(t)},e.exports=i=function t(e){var r;if(this instanceof t)throw new TypeError(\"Symbol is not a constructor\");return o?n(e):(r=c(a.prototype),e=void 0===e?\"\":String(e),u(r,{__description__:s(\"\",e),__name__:s(\"\",g(e))}))},u(i,{for:s(function(t){return p[t]?p[t]:p[t]=i(String(t))}),keyFor:s(function(t){var e;for(e in l(t),p)if(p[e]===t)return e}),hasInstance:s(\"\",n&&n.hasInstance||i(\"hasInstance\")),isConcatSpreadable:s(\"\",n&&n.isConcatSpreadable||i(\"isConcatSpreadable\")),iterator:s(\"\",n&&n.iterator||i(\"iterator\")),match:s(\"\",n&&n.match||i(\"match\")),replace:s(\"\",n&&n.replace||i(\"replace\")),search:s(\"\",n&&n.search||i(\"search\")),species:s(\"\",n&&n.species||i(\"species\")),split:s(\"\",n&&n.split||i(\"split\")),toPrimitive:s(\"\",n&&n.toPrimitive||i(\"toPrimitive\")),toStringTag:s(\"\",n&&n.toStringTag||i(\"toStringTag\")),unscopables:s(\"\",n&&n.unscopables||i(\"unscopables\"))}),u(a.prototype,{constructor:s(i),toString:s(\"\",function(){return this.__name__})}),u(i.prototype,{toString:s(function(){return\"Symbol (\"+l(this).__description__+\")\"}),valueOf:s(function(){return l(this)})}),f(i.prototype,i.toPrimitive,s(\"\",function(){var t=l(this);return\"symbol\"==typeof t?t:t.toString()})),f(i.prototype,i.toStringTag,s(\"c\",\"Symbol\")),f(a.prototype,i.toStringTag,s(\"c\",i.prototype[i.toStringTag])),f(a.prototype,i.toPrimitive,s(\"c\",i.prototype[i.toPrimitive]))},{\"./validate-symbol\":208,d:139}],208:[function(t,e,r){\"use strict\";var n=t(\"./is-symbol\");e.exports=function(t){if(!n(t))throw new TypeError(t+\" is not a symbol\");return t}},{\"./is-symbol\":206}],209:[function(t,e,r){\"use strict\";e.exports=t(\"./is-implemented\")()?WeakMap:t(\"./polyfill\")},{\"./is-implemented\":210,\"./polyfill\":212}],210:[function(t,e,r){\"use strict\";e.exports=function(){var t,e;if(\"function\"!=typeof WeakMap)return!1;try{t=new WeakMap([[e={},\"one\"],[{},\"two\"],[{},\"three\"]])}catch(t){return!1}return\"[object WeakMap]\"===String(t)&&(\"function\"==typeof t.set&&(t.set({},1)===t&&(\"function\"==typeof t.delete&&(\"function\"==typeof t.has&&\"one\"===t.get(e)))))}},{}],211:[function(t,e,r){\"use strict\";e.exports=\"function\"==typeof WeakMap&&\"[object WeakMap]\"===Object.prototype.toString.call(new WeakMap)},{}],212:[function(t,e,r){\"use strict\";var n,i=t(\"es5-ext/object/set-prototype-of\"),a=t(\"es5-ext/object/valid-object\"),o=t(\"es5-ext/object/valid-value\"),s=t(\"es5-ext/string/random-uniq\"),l=t(\"d\"),c=t(\"es6-iterator/get\"),u=t(\"es6-iterator/for-of\"),f=t(\"es6-symbol\").toStringTag,h=t(\"./is-native-implemented\"),p=Array.isArray,d=Object.defineProperty,g=Object.prototype.hasOwnProperty,v=Object.getPrototypeOf;e.exports=n=function(){var t,e=arguments[0];if(!(this instanceof n))throw new TypeError(\"Constructor requires 'new'\");return t=h&&i&&WeakMap!==n?i(new WeakMap,v(this)):this,null!=e&&(p(e)||(e=c(e))),d(t,\"__weakMapData__\",l(\"c\",\"$weakMap$\"+s())),e?(u(e,function(e){o(e),t.set(e[0],e[1])}),t):t},h&&(i&&i(n,WeakMap),n.prototype=Object.create(WeakMap.prototype,{constructor:l(n)})),Object.defineProperties(n.prototype,{delete:l(function(t){return!!g.call(a(t),this.__weakMapData__)&&(delete t[this.__weakMapData__],!0)}),get:l(function(t){if(g.call(a(t),this.__weakMapData__))return t[this.__weakMapData__]}),has:l(function(t){return g.call(a(t),this.__weakMapData__)}),set:l(function(t,e){return d(a(t),this.__weakMapData__,l(\"c\",e)),this}),toString:l(function(){return\"[object WeakMap]\"})}),d(n.prototype,f,l(\"c\",\"WeakMap\"))},{\"./is-native-implemented\":211,d:139,\"es5-ext/object/set-prototype-of\":185,\"es5-ext/object/valid-object\":189,\"es5-ext/object/valid-value\":190,\"es5-ext/string/random-uniq\":195,\"es6-iterator/for-of\":197,\"es6-iterator/get\":198,\"es6-symbol\":204}],213:[function(t,e,r){\"use strict\";e.exports=function(t,e,r){var n=e||0,i=r||1;return[[t[12]+t[0],t[13]+t[1],t[14]+t[2],t[15]+t[3]],[t[12]-t[0],t[13]-t[1],t[14]-t[2],t[15]-t[3]],[t[12]+t[4],t[13]+t[5],t[14]+t[6],t[15]+t[7]],[t[12]-t[4],t[13]-t[5],t[14]-t[6],t[15]-t[7]],[n*t[12]+t[8],n*t[13]+t[9],n*t[14]+t[10],n*t[15]+t[11]],[i*t[12]-t[8],i*t[13]-t[9],i*t[14]-t[10],i*t[15]-t[11]]]}},{}],214:[function(t,e,r){\"use strict\";var n=t(\"is-string-blank\");e.exports=function(t){var e=typeof t;if(\"string\"===e){var r=t;if(0===(t=+t)&&n(r))return!1}else if(\"number\"!==e)return!1;return t-t<1}},{\"is-string-blank\":406}],215:[function(t,e,r){\"use strict\";e.exports=function(t,e,r){switch(arguments.length){case 0:return new o([0],[0],0);case 1:if(\"number\"==typeof t){var n=l(t);return new o(n,n,0)}return new o(t,l(t.length),0);case 2:if(\"number\"==typeof e){var n=l(t.length);return new o(t,n,+e)}r=0;case 3:if(t.length!==e.length)throw new Error(\"state and velocity lengths must match\");return new o(t,e,r)}};var n=t(\"cubic-hermite\"),i=t(\"binary-search-bounds\");function a(t,e,r){return Math.min(e,Math.max(t,r))}function o(t,e,r){this.dimension=t.length,this.bounds=[new Array(this.dimension),new Array(this.dimension)];for(var n=0;n<this.dimension;++n)this.bounds[0][n]=-1/0,this.bounds[1][n]=1/0;this._state=t.slice().reverse(),this._velocity=e.slice().reverse(),this._time=[r],this._scratch=[t.slice(),t.slice(),t.slice(),t.slice(),t.slice()]}var s=o.prototype;function l(t){for(var e=new Array(t),r=0;r<t;++r)e[r]=0;return e}s.flush=function(t){var e=i.gt(this._time,t)-1;e<=0||(this._time.splice(0,e),this._state.splice(0,e*this.dimension),this._velocity.splice(0,e*this.dimension))},s.curve=function(t){var e=this._time,r=e.length,o=i.le(e,t),s=this._scratch[0],l=this._state,c=this._velocity,u=this.dimension,f=this.bounds;if(o<0)for(var h=u-1,p=0;p<u;++p,--h)s[p]=l[h];else if(o>=r-1){h=l.length-1;var d=t-e[r-1];for(p=0;p<u;++p,--h)s[p]=l[h]+d*c[h]}else{h=u*(o+1)-1;var g=e[o],v=e[o+1]-g||1,m=this._scratch[1],y=this._scratch[2],x=this._scratch[3],b=this._scratch[4],_=!0;for(p=0;p<u;++p,--h)m[p]=l[h],x[p]=c[h]*v,y[p]=l[h+u],b[p]=c[h+u]*v,_=_&&m[p]===y[p]&&x[p]===b[p]&&0===x[p];if(_)for(p=0;p<u;++p)s[p]=m[p];else n(m,x,y,b,(t-g)/v,s)}var w=f[0],k=f[1];for(p=0;p<u;++p)s[p]=a(w[p],k[p],s[p]);return s},s.dcurve=function(t){var e=this._time,r=e.length,a=i.le(e,t),o=this._scratch[0],s=this._state,l=this._velocity,c=this.dimension;if(a>=r-1)for(var u=s.length-1,f=(e[r-1],0);f<c;++f,--u)o[f]=l[u];else{u=c*(a+1)-1;var h=e[a],p=e[a+1]-h||1,d=this._scratch[1],g=this._scratch[2],v=this._scratch[3],m=this._scratch[4],y=!0;for(f=0;f<c;++f,--u)d[f]=s[u],v[f]=l[u]*p,g[f]=s[u+c],m[f]=l[u+c]*p,y=y&&d[f]===g[f]&&v[f]===m[f]&&0===v[f];if(y)for(f=0;f<c;++f)o[f]=0;else{n.derivative(d,v,g,m,(t-h)/p,o);for(f=0;f<c;++f)o[f]/=p}}return o},s.lastT=function(){var t=this._time;return t[t.length-1]},s.stable=function(){for(var t=this._velocity,e=t.length,r=this.dimension-1;r>=0;--r)if(t[--e])return!1;return!0},s.jump=function(t){var e=this.lastT(),r=this.dimension;if(!(t<e||arguments.length!==r+1)){var n=this._state,i=this._velocity,o=n.length-this.dimension,s=this.bounds,l=s[0],c=s[1];this._time.push(e,t);for(var u=0;u<2;++u)for(var f=0;f<r;++f)n.push(n[o++]),i.push(0);this._time.push(t);for(f=r;f>0;--f)n.push(a(l[f-1],c[f-1],arguments[f])),i.push(0)}},s.push=function(t){var e=this.lastT(),r=this.dimension;if(!(t<e||arguments.length!==r+1)){var n=this._state,i=this._velocity,o=n.length-this.dimension,s=t-e,l=this.bounds,c=l[0],u=l[1],f=s>1e-6?1/s:0;this._time.push(t);for(var h=r;h>0;--h){var p=a(c[h-1],u[h-1],arguments[h]);n.push(p),i.push((p-n[o++])*f)}}},s.set=function(t){var e=this.dimension;if(!(t<this.lastT()||arguments.length!==e+1)){var r=this._state,n=this._velocity,i=this.bounds,o=i[0],s=i[1];this._time.push(t);for(var l=e;l>0;--l)r.push(a(o[l-1],s[l-1],arguments[l])),n.push(0)}},s.move=function(t){var e=this.lastT(),r=this.dimension;if(!(t<=e||arguments.length!==r+1)){var n=this._state,i=this._velocity,o=n.length-this.dimension,s=this.bounds,l=s[0],c=s[1],u=t-e,f=u>1e-6?1/u:0;this._time.push(t);for(var h=r;h>0;--h){var p=arguments[h];n.push(a(l[h-1],c[h-1],n[o++]+p)),i.push(p*f)}}},s.idle=function(t){var e=this.lastT();if(!(t<e)){var r=this.dimension,n=this._state,i=this._velocity,o=n.length-r,s=this.bounds,l=s[0],c=s[1],u=t-e;this._time.push(t);for(var f=r-1;f>=0;--f)n.push(a(l[f],c[f],n[o]+u*i[o])),i.push(0),o+=1}}},{\"binary-search-bounds\":79,\"cubic-hermite\":133}],216:[function(t,e,r){var n=t(\"dtype\");e.exports=function(t,e,r){if(!t)throw new TypeError(\"must specify data as first parameter\");if(r=0|+(r||0),Array.isArray(t)&&t[0]&&\"number\"==typeof t[0][0]){var i,a,o,s,l=t[0].length,c=t.length*l;e&&\"string\"!=typeof e||(e=new(n(e||\"float32\"))(c+r));var u=e.length-r;if(c!==u)throw new Error(\"source length \"+c+\" (\"+l+\"x\"+t.length+\") does not match destination length \"+u);for(i=0,o=r;i<t.length;i++)for(a=0;a<l;a++)e[o++]=null===t[i][a]?NaN:t[i][a]}else if(e&&\"string\"!=typeof e)e.set(t,r);else{var f=n(e||\"float32\");if(Array.isArray(t)||\"array\"===e)for(e=new f(t.length+r),i=0,o=r,s=e.length;o<s;o++,i++)e[o]=null===t[i]?NaN:t[i];else 0===r?e=new f(t):(e=new f(t.length+r)).set(t,r)}return e}},{dtype:154}],217:[function(t,e,r){\"use strict\";var n=t(\"css-font/stringify\"),i=[32,126];e.exports=function(t){var e=(t=t||{}).shape?t.shape:t.canvas?[t.canvas.width,t.canvas.height]:[512,512],r=t.canvas||document.createElement(\"canvas\"),a=t.font,o=\"number\"==typeof t.step?[t.step,t.step]:t.step||[32,32],s=t.chars||i;a&&\"string\"!=typeof a&&(a=n(a));if(Array.isArray(s)){if(2===s.length&&\"number\"==typeof s[0]&&\"number\"==typeof s[1]){for(var l=[],c=s[0],u=0;c<=s[1];c++)l[u++]=String.fromCharCode(c);s=l}}else s=String(s).split(\"\");e=e.slice(),r.width=e[0],r.height=e[1];var f=r.getContext(\"2d\");f.fillStyle=\"#000\",f.fillRect(0,0,r.width,r.height),f.font=a,f.textAlign=\"center\",f.textBaseline=\"middle\",f.fillStyle=\"#fff\";for(var h=o[0]/2,p=o[1]/2,c=0;c<s.length;c++)f.fillText(s[c],h,p),(h+=o[0])>e[0]-o[0]/2&&(h=o[0]/2,p+=o[1]);return r}},{\"css-font/stringify\":130}],218:[function(t,e,r){\"use strict\";function n(t,e){e||(e={}),(\"string\"==typeof t||Array.isArray(t))&&(e.family=t);var r=Array.isArray(e.family)?e.family.join(\", \"):e.family;if(!r)throw Error(\"`family` must be defined\");var s=e.size||e.fontSize||e.em||48,l=e.weight||e.fontWeight||\"\",c=(t=[e.style||e.fontStyle||\"\",l,s].join(\" \")+\"px \"+r,e.origin||\"top\");if(n.cache[r]&&s<=n.cache[r].em)return i(n.cache[r],c);var u=e.canvas||n.canvas,f=u.getContext(\"2d\"),h={upper:void 0!==e.upper?e.upper:\"H\",lower:void 0!==e.lower?e.lower:\"x\",descent:void 0!==e.descent?e.descent:\"p\",ascent:void 0!==e.ascent?e.ascent:\"h\",tittle:void 0!==e.tittle?e.tittle:\"i\",overshoot:void 0!==e.overshoot?e.overshoot:\"O\"},p=Math.ceil(1.5*s);u.height=p,u.width=.5*p,f.font=t;var d={top:0};f.clearRect(0,0,p,p),f.textBaseline=\"top\",f.fillStyle=\"black\",f.fillText(\"H\",0,0);var g=a(f.getImageData(0,0,p,p));f.clearRect(0,0,p,p),f.textBaseline=\"bottom\",f.fillText(\"H\",0,p);var v=a(f.getImageData(0,0,p,p));d.lineHeight=d.bottom=p-v+g,f.clearRect(0,0,p,p),f.textBaseline=\"alphabetic\",f.fillText(\"H\",0,p);var m=p-a(f.getImageData(0,0,p,p))-1+g;d.baseline=d.alphabetic=m,f.clearRect(0,0,p,p),f.textBaseline=\"middle\",f.fillText(\"H\",0,.5*p);var y=a(f.getImageData(0,0,p,p));d.median=d.middle=p-y-1+g-.5*p,f.clearRect(0,0,p,p),f.textBaseline=\"hanging\",f.fillText(\"H\",0,.5*p);var x=a(f.getImageData(0,0,p,p));d.hanging=p-x-1+g-.5*p,f.clearRect(0,0,p,p),f.textBaseline=\"ideographic\",f.fillText(\"H\",0,p);var b=a(f.getImageData(0,0,p,p));if(d.ideographic=p-b-1+g,h.upper&&(f.clearRect(0,0,p,p),f.textBaseline=\"top\",f.fillText(h.upper,0,0),d.upper=a(f.getImageData(0,0,p,p)),d.capHeight=d.baseline-d.upper),h.lower&&(f.clearRect(0,0,p,p),f.textBaseline=\"top\",f.fillText(h.lower,0,0),d.lower=a(f.getImageData(0,0,p,p)),d.xHeight=d.baseline-d.lower),h.tittle&&(f.clearRect(0,0,p,p),f.textBaseline=\"top\",f.fillText(h.tittle,0,0),d.tittle=a(f.getImageData(0,0,p,p))),h.ascent&&(f.clearRect(0,0,p,p),f.textBaseline=\"top\",f.fillText(h.ascent,0,0),d.ascent=a(f.getImageData(0,0,p,p))),h.descent&&(f.clearRect(0,0,p,p),f.textBaseline=\"top\",f.fillText(h.descent,0,0),d.descent=o(f.getImageData(0,0,p,p))),h.overshoot){f.clearRect(0,0,p,p),f.textBaseline=\"top\",f.fillText(h.overshoot,0,0);var _=o(f.getImageData(0,0,p,p));d.overshoot=_-m}for(var w in d)d[w]/=s;return d.em=s,n.cache[r]=d,i(d,c)}function i(t,e){var r={};for(var n in\"string\"==typeof e&&(e=t[e]),t)\"em\"!==n&&(r[n]=t[n]-e);return r}function a(t){for(var e=t.height,r=t.data,n=3;n<r.length;n+=4)if(0!==r[n])return Math.floor(.25*(n-3)/e)}function o(t){for(var e=t.height,r=t.data,n=r.length-1;n>0;n-=4)if(0!==r[n])return Math.floor(.25*(n-3)/e)}e.exports=n,n.canvas=document.createElement(\"canvas\"),n.cache={}},{}],219:[function(t,e,r){\"use strict\";e.exports=function(t){return new c(t||d,null)};var n=0,i=1;function a(t,e,r,n,i,a){this._color=t,this.key=e,this.value=r,this.left=n,this.right=i,this._count=a}function o(t){return new a(t._color,t.key,t.value,t.left,t.right,t._count)}function s(t,e){return new a(t,e.key,e.value,e.left,e.right,e._count)}function l(t){t._count=1+(t.left?t.left._count:0)+(t.right?t.right._count:0)}function c(t,e){this._compare=t,this.root=e}var u=c.prototype;function f(t,e){this.tree=t,this._stack=e}Object.defineProperty(u,\"keys\",{get:function(){var t=[];return this.forEach(function(e,r){t.push(e)}),t}}),Object.defineProperty(u,\"values\",{get:function(){var t=[];return this.forEach(function(e,r){t.push(r)}),t}}),Object.defineProperty(u,\"length\",{get:function(){return this.root?this.root._count:0}}),u.insert=function(t,e){for(var r=this._compare,o=this.root,u=[],f=[];o;){var h=r(t,o.key);u.push(o),f.push(h),o=h<=0?o.left:o.right}u.push(new a(n,t,e,null,null,1));for(var p=u.length-2;p>=0;--p){o=u[p];f[p]<=0?u[p]=new a(o._color,o.key,o.value,u[p+1],o.right,o._count+1):u[p]=new a(o._color,o.key,o.value,o.left,u[p+1],o._count+1)}for(p=u.length-1;p>1;--p){var d=u[p-1];o=u[p];if(d._color===i||o._color===i)break;var g=u[p-2];if(g.left===d)if(d.left===o){if(!(v=g.right)||v._color!==n){if(g._color=n,g.left=d.right,d._color=i,d.right=g,u[p-2]=d,u[p-1]=o,l(g),l(d),p>=3)(m=u[p-3]).left===g?m.left=d:m.right=d;break}d._color=i,g.right=s(i,v),g._color=n,p-=1}else{if(!(v=g.right)||v._color!==n){if(d.right=o.left,g._color=n,g.left=o.right,o._color=i,o.left=d,o.right=g,u[p-2]=o,u[p-1]=d,l(g),l(d),l(o),p>=3)(m=u[p-3]).left===g?m.left=o:m.right=o;break}d._color=i,g.right=s(i,v),g._color=n,p-=1}else if(d.right===o){if(!(v=g.left)||v._color!==n){if(g._color=n,g.right=d.left,d._color=i,d.left=g,u[p-2]=d,u[p-1]=o,l(g),l(d),p>=3)(m=u[p-3]).right===g?m.right=d:m.left=d;break}d._color=i,g.left=s(i,v),g._color=n,p-=1}else{var v;if(!(v=g.left)||v._color!==n){var m;if(d.left=o.right,g._color=n,g.right=o.left,o._color=i,o.right=d,o.left=g,u[p-2]=o,u[p-1]=d,l(g),l(d),l(o),p>=3)(m=u[p-3]).right===g?m.right=o:m.left=o;break}d._color=i,g.left=s(i,v),g._color=n,p-=1}}return u[0]._color=i,new c(r,u[0])},u.forEach=function(t,e,r){if(this.root)switch(arguments.length){case 1:return function t(e,r){var n;if(r.left&&(n=t(e,r.left)))return n;return(n=e(r.key,r.value))||(r.right?t(e,r.right):void 0)}(t,this.root);case 2:return function t(e,r,n,i){if(r(e,i.key)<=0){var a;if(i.left&&(a=t(e,r,n,i.left)))return a;if(a=n(i.key,i.value))return a}if(i.right)return t(e,r,n,i.right)}(e,this._compare,t,this.root);case 3:if(this._compare(e,r)>=0)return;return function t(e,r,n,i,a){var o,s=n(e,a.key),l=n(r,a.key);if(s<=0){if(a.left&&(o=t(e,r,n,i,a.left)))return o;if(l>0&&(o=i(a.key,a.value)))return o}if(l>0&&a.right)return t(e,r,n,i,a.right)}(e,r,this._compare,t,this.root)}},Object.defineProperty(u,\"begin\",{get:function(){for(var t=[],e=this.root;e;)t.push(e),e=e.left;return new f(this,t)}}),Object.defineProperty(u,\"end\",{get:function(){for(var t=[],e=this.root;e;)t.push(e),e=e.right;return new f(this,t)}}),u.at=function(t){if(t<0)return new f(this,[]);for(var e=this.root,r=[];;){if(r.push(e),e.left){if(t<e.left._count){e=e.left;continue}t-=e.left._count}if(!t)return new f(this,r);if(t-=1,!e.right)break;if(t>=e.right._count)break;e=e.right}return new f(this,[])},u.ge=function(t){for(var e=this._compare,r=this.root,n=[],i=0;r;){var a=e(t,r.key);n.push(r),a<=0&&(i=n.length),r=a<=0?r.left:r.right}return n.length=i,new f(this,n)},u.gt=function(t){for(var e=this._compare,r=this.root,n=[],i=0;r;){var a=e(t,r.key);n.push(r),a<0&&(i=n.length),r=a<0?r.left:r.right}return n.length=i,new f(this,n)},u.lt=function(t){for(var e=this._compare,r=this.root,n=[],i=0;r;){var a=e(t,r.key);n.push(r),a>0&&(i=n.length),r=a<=0?r.left:r.right}return n.length=i,new f(this,n)},u.le=function(t){for(var e=this._compare,r=this.root,n=[],i=0;r;){var a=e(t,r.key);n.push(r),a>=0&&(i=n.length),r=a<0?r.left:r.right}return n.length=i,new f(this,n)},u.find=function(t){for(var e=this._compare,r=this.root,n=[];r;){var i=e(t,r.key);if(n.push(r),0===i)return new f(this,n);r=i<=0?r.left:r.right}return new f(this,[])},u.remove=function(t){var e=this.find(t);return e?e.remove():this},u.get=function(t){for(var e=this._compare,r=this.root;r;){var n=e(t,r.key);if(0===n)return r.value;r=n<=0?r.left:r.right}};var h=f.prototype;function p(t,e){t.key=e.key,t.value=e.value,t.left=e.left,t.right=e.right,t._color=e._color,t._count=e._count}function d(t,e){return t<e?-1:t>e?1:0}Object.defineProperty(h,\"valid\",{get:function(){return this._stack.length>0}}),Object.defineProperty(h,\"node\",{get:function(){return this._stack.length>0?this._stack[this._stack.length-1]:null},enumerable:!0}),h.clone=function(){return new f(this.tree,this._stack.slice())},h.remove=function(){var t=this._stack;if(0===t.length)return this.tree;var e=new Array(t.length),r=t[t.length-1];e[e.length-1]=new a(r._color,r.key,r.value,r.left,r.right,r._count);for(var u=t.length-2;u>=0;--u){(r=t[u]).left===t[u+1]?e[u]=new a(r._color,r.key,r.value,e[u+1],r.right,r._count):e[u]=new a(r._color,r.key,r.value,r.left,e[u+1],r._count)}if((r=e[e.length-1]).left&&r.right){var f=e.length;for(r=r.left;r.right;)e.push(r),r=r.right;var h=e[f-1];e.push(new a(r._color,h.key,h.value,r.left,r.right,r._count)),e[f-1].key=r.key,e[f-1].value=r.value;for(u=e.length-2;u>=f;--u)r=e[u],e[u]=new a(r._color,r.key,r.value,r.left,e[u+1],r._count);e[f-1].left=e[f]}if((r=e[e.length-1])._color===n){var d=e[e.length-2];d.left===r?d.left=null:d.right===r&&(d.right=null),e.pop();for(u=0;u<e.length;++u)e[u]._count--;return new c(this.tree._compare,e[0])}if(r.left||r.right){r.left?p(r,r.left):r.right&&p(r,r.right),r._color=i;for(u=0;u<e.length-1;++u)e[u]._count--;return new c(this.tree._compare,e[0])}if(1===e.length)return new c(this.tree._compare,null);for(u=0;u<e.length;++u)e[u]._count--;var g=e[e.length-2];return function(t){for(var e,r,a,c,u=t.length-1;u>=0;--u){if(e=t[u],0===u)return void(e._color=i);if((r=t[u-1]).left===e){if((a=r.right).right&&a.right._color===n)return c=(a=r.right=o(a)).right=o(a.right),r.right=a.left,a.left=r,a.right=c,a._color=r._color,e._color=i,r._color=i,c._color=i,l(r),l(a),u>1&&((f=t[u-2]).left===r?f.left=a:f.right=a),void(t[u-1]=a);if(a.left&&a.left._color===n)return c=(a=r.right=o(a)).left=o(a.left),r.right=c.left,a.left=c.right,c.left=r,c.right=a,c._color=r._color,r._color=i,a._color=i,e._color=i,l(r),l(a),l(c),u>1&&((f=t[u-2]).left===r?f.left=c:f.right=c),void(t[u-1]=c);if(a._color===i){if(r._color===n)return r._color=i,void(r.right=s(n,a));r.right=s(n,a);continue}a=o(a),r.right=a.left,a.left=r,a._color=r._color,r._color=n,l(r),l(a),u>1&&((f=t[u-2]).left===r?f.left=a:f.right=a),t[u-1]=a,t[u]=r,u+1<t.length?t[u+1]=e:t.push(e),u+=2}else{if((a=r.left).left&&a.left._color===n)return c=(a=r.left=o(a)).left=o(a.left),r.left=a.right,a.right=r,a.left=c,a._color=r._color,e._color=i,r._color=i,c._color=i,l(r),l(a),u>1&&((f=t[u-2]).right===r?f.right=a:f.left=a),void(t[u-1]=a);if(a.right&&a.right._color===n)return c=(a=r.left=o(a)).right=o(a.right),r.left=c.right,a.right=c.left,c.right=r,c.left=a,c._color=r._color,r._color=i,a._color=i,e._color=i,l(r),l(a),l(c),u>1&&((f=t[u-2]).right===r?f.right=c:f.left=c),void(t[u-1]=c);if(a._color===i){if(r._color===n)return r._color=i,void(r.left=s(n,a));r.left=s(n,a);continue}var f;a=o(a),r.left=a.right,a.right=r,a._color=r._color,r._color=n,l(r),l(a),u>1&&((f=t[u-2]).right===r?f.right=a:f.left=a),t[u-1]=a,t[u]=r,u+1<t.length?t[u+1]=e:t.push(e),u+=2}}}(e),g.left===r?g.left=null:g.right=null,new c(this.tree._compare,e[0])},Object.defineProperty(h,\"key\",{get:function(){if(this._stack.length>0)return this._stack[this._stack.length-1].key},enumerable:!0}),Object.defineProperty(h,\"value\",{get:function(){if(this._stack.length>0)return this._stack[this._stack.length-1].value},enumerable:!0}),Object.defineProperty(h,\"index\",{get:function(){var t=0,e=this._stack;if(0===e.length){var r=this.tree.root;return r?r._count:0}e[e.length-1].left&&(t=e[e.length-1].left._count);for(var n=e.length-2;n>=0;--n)e[n+1]===e[n].right&&(++t,e[n].left&&(t+=e[n].left._count));return t},enumerable:!0}),h.next=function(){var t=this._stack;if(0!==t.length){var e=t[t.length-1];if(e.right)for(e=e.right;e;)t.push(e),e=e.left;else for(t.pop();t.length>0&&t[t.length-1].right===e;)e=t[t.length-1],t.pop()}},Object.defineProperty(h,\"hasNext\",{get:function(){var t=this._stack;if(0===t.length)return!1;if(t[t.length-1].right)return!0;for(var e=t.length-1;e>0;--e)if(t[e-1].left===t[e])return!0;return!1}}),h.update=function(t){var e=this._stack;if(0===e.length)throw new Error(\"Can't update empty node!\");var r=new Array(e.length),n=e[e.length-1];r[r.length-1]=new a(n._color,n.key,t,n.left,n.right,n._count);for(var i=e.length-2;i>=0;--i)(n=e[i]).left===e[i+1]?r[i]=new a(n._color,n.key,n.value,r[i+1],n.right,n._count):r[i]=new a(n._color,n.key,n.value,n.left,r[i+1],n._count);return new c(this.tree._compare,r[0])},h.prev=function(){var t=this._stack;if(0!==t.length){var e=t[t.length-1];if(e.left)for(e=e.left;e;)t.push(e),e=e.right;else for(t.pop();t.length>0&&t[t.length-1].left===e;)e=t[t.length-1],t.pop()}},Object.defineProperty(h,\"hasPrev\",{get:function(){var t=this._stack;if(0===t.length)return!1;if(t[t.length-1].left)return!0;for(var e=t.length-1;e>0;--e)if(t[e-1].right===t[e])return!0;return!1}})},{}],220:[function(t,e,r){var n=[.9999999999998099,676.5203681218851,-1259.1392167224028,771.3234287776531,-176.6150291621406,12.507343278686905,-.13857109526572012,9984369578019572e-21,1.5056327351493116e-7],i=607/128,a=[.9999999999999971,57.15623566586292,-59.59796035547549,14.136097974741746,-.4919138160976202,3399464998481189e-20,4652362892704858e-20,-9837447530487956e-20,.0001580887032249125,-.00021026444172410488,.00021743961811521265,-.0001643181065367639,8441822398385275e-20,-26190838401581408e-21,36899182659531625e-22];function o(t){if(t<0)return Number(\"0/0\");for(var e=a[0],r=a.length-1;r>0;--r)e+=a[r]/(t+r);var n=t+i+.5;return.5*Math.log(2*Math.PI)+(t+.5)*Math.log(n)-n+Math.log(e)-Math.log(t)}e.exports=function t(e){if(e<.5)return Math.PI/(Math.sin(Math.PI*e)*t(1-e));if(e>100)return Math.exp(o(e));e-=1;for(var r=n[0],i=1;i<9;i++)r+=n[i]/(e+i);var a=e+7+.5;return Math.sqrt(2*Math.PI)*Math.pow(a,e+.5)*Math.exp(-a)*r},e.exports.log=o},{}],221:[function(t,e,r){e.exports=function(t,e){if(\"string\"!=typeof t)throw new TypeError(\"must specify type string\");if(e=e||{},\"undefined\"==typeof document&&!e.canvas)return null;var r=e.canvas||document.createElement(\"canvas\");\"number\"==typeof e.width&&(r.width=e.width);\"number\"==typeof e.height&&(r.height=e.height);var n,i=e;try{var a=[t];0===t.indexOf(\"webgl\")&&a.push(\"experimental-\"+t);for(var o=0;o<a.length;o++)if(n=r.getContext(a[o],i))return n}catch(t){n=null}return n||null}},{}],222:[function(t,e,r){\"use strict\";e.exports=function(t,e){var r=new u(t);return r.update(e),r};var n=t(\"./lib/text.js\"),i=t(\"./lib/lines.js\"),a=t(\"./lib/background.js\"),o=t(\"./lib/cube.js\"),s=t(\"./lib/ticks.js\"),l=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]);function c(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function u(t){this.gl=t,this.pixelRatio=1,this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.autoTicks=!0,this.tickSpacing=[1,1,1],this.tickEnable=[!0,!0,!0],this.tickFont=[\"sans-serif\",\"sans-serif\",\"sans-serif\"],this.tickSize=[12,12,12],this.tickAngle=[0,0,0],this._tickAlign=[\"auto\",\"auto\",\"auto\"],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[10,10,10],this.lastCubeProps={cubeEdges:[0,0,0],axis:[0,0,0]},this.labels=[\"x\",\"y\",\"z\"],this.labelEnable=[!0,!0,!0],this.labelFont=\"sans-serif\",this.labelSize=[20,20,20],this._labelAngle=[0,0,0],this._labelAlign=[\"auto\",\"auto\",\"auto\"],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[10,10,10],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[0,0,0],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!1,!1,!1],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._firstInit=!0,this._text=null,this._lines=null,this._background=a(t)}var f=u.prototype;function h(){this.primalOffset=[0,0,0],this.primalMinor=[0,0,0],this.mirrorOffset=[0,0,0],this.mirrorMinor=[0,0,0]}f.update=function(t){function e(e,r,n){if(n in t){var i,a=t[n],o=this[n];(e?Array.isArray(a)&&Array.isArray(a[0]):Array.isArray(a))?this[n]=i=[r(a[0]),r(a[1]),r(a[2])]:this[n]=i=[r(a),r(a),r(a)];for(var s=0;s<3;++s)if(i[s]!==o[s])return!0}return!1}t=t||{};var r,a=e.bind(this,!1,Number),o=e.bind(this,!1,Boolean),l=e.bind(this,!1,String),c=e.bind(this,!0,function(t){if(Array.isArray(t)){if(3===t.length)return[+t[0],+t[1],+t[2],1];if(4===t.length)return[+t[0],+t[1],+t[2],+t[3]]}return[0,0,0,1]}),u=!1,f=!1;if(\"bounds\"in t)for(var h=t.bounds,p=0;p<2;++p)for(var d=0;d<3;++d)h[p][d]!==this.bounds[p][d]&&(f=!0),this.bounds[p][d]=h[p][d];if(\"ticks\"in t){r=t.ticks,u=!0,this.autoTicks=!1;for(p=0;p<3;++p)this.tickSpacing[p]=0}else a(\"tickSpacing\")&&(this.autoTicks=!0,f=!0);if(this._firstInit&&(\"ticks\"in t||\"tickSpacing\"in t||(this.autoTicks=!0),f=!0,u=!0,this._firstInit=!1),f&&this.autoTicks&&(r=s.create(this.bounds,this.tickSpacing),u=!0),u){for(p=0;p<3;++p)r[p].sort(function(t,e){return t.x-e.x});s.equal(r,this.ticks)?u=!1:this.ticks=r}o(\"tickEnable\"),l(\"tickFont\")&&(u=!0),a(\"tickSize\"),a(\"tickAngle\"),a(\"tickPad\"),c(\"tickColor\");var g=l(\"labels\");l(\"labelFont\")&&(g=!0),o(\"labelEnable\"),a(\"labelSize\"),a(\"labelPad\"),c(\"labelColor\"),o(\"lineEnable\"),o(\"lineMirror\"),a(\"lineWidth\"),c(\"lineColor\"),o(\"lineTickEnable\"),o(\"lineTickMirror\"),a(\"lineTickLength\"),a(\"lineTickWidth\"),c(\"lineTickColor\"),o(\"gridEnable\"),a(\"gridWidth\"),c(\"gridColor\"),o(\"zeroEnable\"),c(\"zeroLineColor\"),a(\"zeroLineWidth\"),o(\"backgroundEnable\"),c(\"backgroundColor\"),this._text?this._text&&(g||u)&&this._text.update(this.bounds,this.labels,this.labelFont,this.ticks,this.tickFont):this._text=n(this.gl,this.bounds,this.labels,this.labelFont,this.ticks,this.tickFont),this._lines&&u&&(this._lines.dispose(),this._lines=null),this._lines||(this._lines=i(this.gl,this.bounds,this.ticks))};var p=[new h,new h,new h];function d(t,e,r,n,i){for(var a=t.primalOffset,o=t.primalMinor,s=t.mirrorOffset,l=t.mirrorMinor,c=n[e],u=0;u<3;++u)if(e!==u){var f=a,h=s,p=o,d=l;c&1<<u&&(f=s,h=a,p=l,d=o),f[u]=r[0][u],h[u]=r[1][u],i[u]>0?(p[u]=-1,d[u]=0):(p[u]=0,d[u]=1)}}var g=[0,0,0],v={model:l,view:l,projection:l};f.isOpaque=function(){return!0},f.isTransparent=function(){return!1},f.drawTransparent=function(t){};var m=[0,0,0],y=[0,0,0],x=[0,0,0];f.draw=function(t){t=t||v;for(var e=this.gl,r=t.model||l,n=t.view||l,i=t.projection||l,a=this.bounds,s=o(r,n,i,a),u=s.cubeEdges,f=s.axis,h=n[12],b=n[13],_=n[14],w=n[15],k=this.pixelRatio*(i[3]*h+i[7]*b+i[11]*_+i[15]*w)/e.drawingBufferHeight,M=0;M<3;++M)this.lastCubeProps.cubeEdges[M]=u[M],this.lastCubeProps.axis[M]=f[M];var A=p;for(M=0;M<3;++M)d(p[M],M,this.bounds,u,f);e=this.gl;var T,S=g;for(M=0;M<3;++M)this.backgroundEnable[M]?S[M]=f[M]:S[M]=0;this._background.draw(r,n,i,a,S,this.backgroundColor),this._lines.bind(r,n,i,this);for(M=0;M<3;++M){var E=[0,0,0];f[M]>0?E[M]=a[1][M]:E[M]=a[0][M];for(var C=0;C<2;++C){var L=(M+1+C)%3,z=(M+1+(1^C))%3;this.gridEnable[L]&&this._lines.drawGrid(L,z,this.bounds,E,this.gridColor[L],this.gridWidth[L]*this.pixelRatio)}for(C=0;C<2;++C){L=(M+1+C)%3,z=(M+1+(1^C))%3;this.zeroEnable[z]&&Math.min(a[0][z],a[1][z])<=0&&Math.max(a[0][z],a[1][z])>=0&&this._lines.drawZero(L,z,this.bounds,E,this.zeroLineColor[z],this.zeroLineWidth[z]*this.pixelRatio)}}for(M=0;M<3;++M){this.lineEnable[M]&&this._lines.drawAxisLine(M,this.bounds,A[M].primalOffset,this.lineColor[M],this.lineWidth[M]*this.pixelRatio),this.lineMirror[M]&&this._lines.drawAxisLine(M,this.bounds,A[M].mirrorOffset,this.lineColor[M],this.lineWidth[M]*this.pixelRatio);var O=c(m,A[M].primalMinor),I=c(y,A[M].mirrorMinor),P=this.lineTickLength;for(C=0;C<3;++C){var D=k/r[5*C];O[C]*=P[C]*D,I[C]*=P[C]*D}this.lineTickEnable[M]&&this._lines.drawAxisTicks(M,A[M].primalOffset,O,this.lineTickColor[M],this.lineTickWidth[M]*this.pixelRatio),this.lineTickMirror[M]&&this._lines.drawAxisTicks(M,A[M].mirrorOffset,I,this.lineTickColor[M],this.lineTickWidth[M]*this.pixelRatio)}this._lines.unbind(),this._text.bind(r,n,i,this.pixelRatio);var R,B;function F(t){(B=[0,0,0])[t]=1}function N(t,e,r){var n=(t+1)%3,i=(t+2)%3,a=e[n],o=e[i],s=r[n],l=r[i];a>0&&l>0?F(n):a>0&&l<0?F(n):a<0&&l>0?F(n):a<0&&l<0?F(n):o>0&&s>0?F(i):o>0&&s<0?F(i):o<0&&s>0?F(i):o<0&&s<0&&F(i)}for(M=0;M<3;++M){var j=A[M].primalMinor,V=A[M].mirrorMinor,U=c(x,A[M].primalOffset);for(C=0;C<3;++C)this.lineTickEnable[M]&&(U[C]+=k*j[C]*Math.max(this.lineTickLength[C],0)/r[5*C]);var q=[0,0,0];if(q[M]=1,this.tickEnable[M]){-3600===this.tickAngle[M]?(this.tickAngle[M]=0,this._tickAlign[M]=\"auto\"):this._tickAlign[M]=-1,R=1,\"auto\"===(T=[this._tickAlign[M],.5,R])[0]?T[0]=0:T[0]=parseInt(\"\"+T[0]),B=[0,0,0],N(M,j,V);for(C=0;C<3;++C)U[C]+=k*j[C]*this.tickPad[C]/r[5*C];this._text.drawTicks(M,this.tickSize[M],this.tickAngle[M],U,this.tickColor[M],q,B,T)}if(this.labelEnable[M]){R=0,B=[0,0,0],this.labels[M].length>4&&(F(M),R=1),\"auto\"===(T=[this._labelAlign[M],.5,R])[0]?T[0]=0:T[0]=parseInt(\"\"+T[0]);for(C=0;C<3;++C)U[C]+=k*j[C]*this.labelPad[C]/r[5*C];U[M]+=.5*(a[0][M]+a[1][M]),this._text.drawLabel(M,this.labelSize[M],this._labelAngle[M],U,this.labelColor[M],[0,0,0],B,T)}}this._text.unbind()},f.dispose=function(){this._text.dispose(),this._lines.dispose(),this._background.dispose(),this._lines=null,this._text=null,this._background=null,this.gl=null}},{\"./lib/background.js\":223,\"./lib/cube.js\":224,\"./lib/lines.js\":225,\"./lib/text.js\":227,\"./lib/ticks.js\":228}],223:[function(t,e,r){\"use strict\";e.exports=function(t){for(var e=[],r=[],s=0,l=0;l<3;++l)for(var c=(l+1)%3,u=(l+2)%3,f=[0,0,0],h=[0,0,0],p=-1;p<=1;p+=2){r.push(s,s+2,s+1,s+1,s+2,s+3),f[l]=p,h[l]=p;for(var d=-1;d<=1;d+=2){f[c]=d;for(var g=-1;g<=1;g+=2)f[u]=g,e.push(f[0],f[1],f[2],h[0],h[1],h[2]),s+=1}var v=c;c=u,u=v}var m=n(t,new Float32Array(e)),y=n(t,new Uint16Array(r),t.ELEMENT_ARRAY_BUFFER),x=i(t,[{buffer:m,type:t.FLOAT,size:3,offset:0,stride:24},{buffer:m,type:t.FLOAT,size:3,offset:12,stride:24}],y),b=a(t);return b.attributes.position.location=0,b.attributes.normal.location=1,new o(t,m,x,b)};var n=t(\"gl-buffer\"),i=t(\"gl-vao\"),a=t(\"./shaders\").bg;function o(t,e,r,n){this.gl=t,this.buffer=e,this.vao=r,this.shader=n}var s=o.prototype;s.draw=function(t,e,r,n,i,a){for(var o=!1,s=0;s<3;++s)o=o||i[s];if(o){var l=this.gl;l.enable(l.POLYGON_OFFSET_FILL),l.polygonOffset(1,2),this.shader.bind(),this.shader.uniforms={model:t,view:e,projection:r,bounds:n,enable:i,colors:a},this.vao.bind(),this.vao.draw(this.gl.TRIANGLES,36),this.vao.unbind(),l.disable(l.POLYGON_OFFSET_FILL)}},s.dispose=function(){this.vao.dispose(),this.buffer.dispose(),this.shader.dispose()}},{\"./shaders\":226,\"gl-buffer\":230,\"gl-vao\":310}],224:[function(t,e,r){\"use strict\";e.exports=function(t,e,r,a){i(s,e,t),i(s,r,s);for(var p=0,y=0;y<2;++y){u[2]=a[y][2];for(var x=0;x<2;++x){u[1]=a[x][1];for(var b=0;b<2;++b)u[0]=a[b][0],h(l[p],u,s),p+=1}}for(var _=-1,y=0;y<8;++y){for(var w=l[y][3],k=0;k<3;++k)c[y][k]=l[y][k]/w;w<0&&(_<0?_=y:c[y][2]<c[_][2]&&(_=y))}if(_<0){_=0;for(var M=0;M<3;++M){for(var A=(M+2)%3,T=(M+1)%3,S=-1,E=-1,C=0;C<2;++C){var L=C<<M,z=L+(C<<A)+(1-C<<T),O=L+(1-C<<A)+(C<<T);o(c[L],c[z],c[O],f)<0||(C?S=1:E=1)}if(S<0||E<0)E>S&&(_|=1<<M);else{for(var C=0;C<2;++C){var L=C<<M,z=L+(C<<A)+(1-C<<T),O=L+(1-C<<A)+(C<<T),I=d([l[L],l[z],l[O],l[L+(1<<A)+(1<<T)]]);C?S=I:E=I}E>S&&(_|=1<<M)}}}for(var P=7^_,D=-1,y=0;y<8;++y)y!==_&&y!==P&&(D<0?D=y:c[D][1]>c[y][1]&&(D=y));for(var R=-1,y=0;y<3;++y){var B=D^1<<y;if(B!==_&&B!==P){R<0&&(R=B);var T=c[B];T[0]<c[R][0]&&(R=B)}}for(var F=-1,y=0;y<3;++y){var B=D^1<<y;if(B!==_&&B!==P&&B!==R){F<0&&(F=B);var T=c[B];T[0]>c[F][0]&&(F=B)}}var N=g;N[0]=N[1]=N[2]=0,N[n.log2(R^D)]=D&R,N[n.log2(D^F)]=D&F;var j=7^F;j===_||j===P?(j=7^R,N[n.log2(F^j)]=j&F):N[n.log2(R^j)]=j&R;for(var V=v,U=_,M=0;M<3;++M)V[M]=U&1<<M?-1:1;return m};var n=t(\"bit-twiddle\"),i=t(\"gl-mat4/multiply\"),a=(t(\"gl-mat4/invert\"),t(\"split-polygon\")),o=t(\"robust-orientation\"),s=new Array(16),l=(new Array(16),new Array(8)),c=new Array(8),u=new Array(3),f=[0,0,0];function h(t,e,r){for(var n=0;n<4;++n){t[n]=r[12+n];for(var i=0;i<3;++i)t[n]+=e[i]*r[4*i+n]}}!function(){for(var t=0;t<8;++t)l[t]=[1,1,1,1],c[t]=[1,1,1]}();var p=[[0,0,1,0,0],[0,0,-1,1,0],[0,-1,0,1,0],[0,1,0,1,0],[-1,0,0,1,0],[1,0,0,1,0]];function d(t){for(var e=0;e<p.length;++e)if((t=a.positive(t,p[e])).length<3)return 0;var r=t[0],n=r[0]/r[3],i=r[1]/r[3],o=0;for(e=1;e+1<t.length;++e){var s=t[e],l=t[e+1],c=s[0]/s[3]-n,u=s[1]/s[3]-i,f=l[0]/l[3]-n,h=l[1]/l[3]-i;o+=Math.abs(c*h-u*f)}return o}var g=[1,1,1],v=[0,0,0],m={cubeEdges:g,axis:v}},{\"bit-twiddle\":80,\"gl-mat4/invert\":254,\"gl-mat4/multiply\":256,\"robust-orientation\":486,\"split-polygon\":503}],225:[function(t,e,r){\"use strict\";e.exports=function(t,e,r){var o=[],s=[0,0,0],l=[0,0,0],c=[0,0,0],u=[0,0,0];o.push(0,0,1,0,1,1,0,0,-1,0,0,-1,0,1,1,0,1,-1);for(var f=0;f<3;++f){for(var h=o.length/3|0,d=0;d<r[f].length;++d){var g=+r[f][d].x;o.push(g,0,1,g,1,1,g,0,-1,g,0,-1,g,1,1,g,1,-1)}var v=o.length/3|0;s[f]=h,l[f]=v-h;for(var h=o.length/3|0,m=0;m<r[f].length;++m){var g=+r[f][m].x;o.push(g,0,1,g,1,1,g,0,-1,g,0,-1,g,1,1,g,1,-1)}var v=o.length/3|0;c[f]=h,u[f]=v-h}var y=n(t,new Float32Array(o)),x=i(t,[{buffer:y,type:t.FLOAT,size:3,stride:0,offset:0}]),b=a(t);return b.attributes.position.location=0,new p(t,y,x,b,l,s,u,c)};var n=t(\"gl-buffer\"),i=t(\"gl-vao\"),a=t(\"./shaders\").line,o=[0,0,0],s=[0,0,0],l=[0,0,0],c=[0,0,0],u=[1,1];function f(t){return t[0]=t[1]=t[2]=0,t}function h(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function p(t,e,r,n,i,a,o,s){this.gl=t,this.vertBuffer=e,this.vao=r,this.shader=n,this.tickCount=i,this.tickOffset=a,this.gridCount=o,this.gridOffset=s}var d=p.prototype;d.bind=function(t,e,r){this.shader.bind(),this.shader.uniforms.model=t,this.shader.uniforms.view=e,this.shader.uniforms.projection=r,u[0]=this.gl.drawingBufferWidth,u[1]=this.gl.drawingBufferHeight,this.shader.uniforms.screenShape=u,this.vao.bind()},d.unbind=function(){this.vao.unbind()},d.drawAxisLine=function(t,e,r,n,i){var a=f(s);this.shader.uniforms.majorAxis=s,a[t]=e[1][t]-e[0][t],this.shader.uniforms.minorAxis=a;var o,u=h(c,r);u[t]+=e[0][t],this.shader.uniforms.offset=u,this.shader.uniforms.lineWidth=i,this.shader.uniforms.color=n,(o=f(l))[(t+2)%3]=1,this.shader.uniforms.screenAxis=o,this.vao.draw(this.gl.TRIANGLES,6),(o=f(l))[(t+1)%3]=1,this.shader.uniforms.screenAxis=o,this.vao.draw(this.gl.TRIANGLES,6)},d.drawAxisTicks=function(t,e,r,n,i){if(this.tickCount[t]){var a=f(o);a[t]=1,this.shader.uniforms.majorAxis=a,this.shader.uniforms.offset=e,this.shader.uniforms.minorAxis=r,this.shader.uniforms.color=n,this.shader.uniforms.lineWidth=i;var s=f(l);s[t]=1,this.shader.uniforms.screenAxis=s,this.vao.draw(this.gl.TRIANGLES,this.tickCount[t],this.tickOffset[t])}},d.drawGrid=function(t,e,r,n,i,a){if(this.gridCount[t]){var u=f(s);u[e]=r[1][e]-r[0][e],this.shader.uniforms.minorAxis=u;var p=h(c,n);p[e]+=r[0][e],this.shader.uniforms.offset=p;var d=f(o);d[t]=1,this.shader.uniforms.majorAxis=d;var g=f(l);g[t]=1,this.shader.uniforms.screenAxis=g,this.shader.uniforms.lineWidth=a,this.shader.uniforms.color=i,this.vao.draw(this.gl.TRIANGLES,this.gridCount[t],this.gridOffset[t])}},d.drawZero=function(t,e,r,n,i,a){var o=f(s);this.shader.uniforms.majorAxis=o,o[t]=r[1][t]-r[0][t],this.shader.uniforms.minorAxis=o;var u=h(c,n);u[t]+=r[0][t],this.shader.uniforms.offset=u;var p=f(l);p[e]=1,this.shader.uniforms.screenAxis=p,this.shader.uniforms.lineWidth=a,this.shader.uniforms.color=i,this.vao.draw(this.gl.TRIANGLES,6)},d.dispose=function(){this.vao.dispose(),this.vertBuffer.dispose(),this.shader.dispose()}},{\"./shaders\":226,\"gl-buffer\":230,\"gl-vao\":310}],226:[function(t,e,r){\"use strict\";var n=t(\"glslify\"),i=t(\"gl-shader\"),a=n([\"#define GLSLIFY 1\\nattribute vec3 position;\\n\\nuniform mat4 model, view, projection;\\nuniform vec3 offset, majorAxis, minorAxis, screenAxis;\\nuniform float lineWidth;\\nuniform vec2 screenShape;\\n\\nvec3 project(vec3 p) {\\n vec4 pp = projection * view * model * vec4(p, 1.0);\\n return pp.xyz / max(pp.w, 0.0001);\\n}\\n\\nvoid main() {\\n vec3 major = position.x * majorAxis;\\n vec3 minor = position.y * minorAxis;\\n\\n vec3 vPosition = major + minor + offset;\\n vec3 pPosition = project(vPosition);\\n vec3 offset = project(vPosition + screenAxis * position.z);\\n\\n vec2 screen = normalize((offset - pPosition).xy * screenShape) / screenShape;\\n\\n gl_Position = vec4(pPosition + vec3(0.5 * screen * lineWidth, 0), 1.0);\\n}\\n\"]),o=n([\"precision mediump float;\\n#define GLSLIFY 1\\nuniform vec4 color;\\nvoid main() {\\n gl_FragColor = color;\\n}\"]);r.line=function(t){return i(t,a,o,null,[{name:\"position\",type:\"vec3\"}])};var s=n([\"#define GLSLIFY 1\\nattribute vec3 position;\\n\\nuniform mat4 model, view, projection;\\nuniform vec3 offset, axis, alignDir, alignOpt;\\nuniform float scale, angle, pixelScale;\\nuniform vec2 resolution;\\n\\nvec3 project(vec3 p) {\\n vec4 pp = projection * view * model * vec4(p, 1.0);\\n return pp.xyz / max(pp.w, 0.0001);\\n}\\n\\nfloat computeViewAngle(vec3 a, vec3 b) {\\n vec3 A = project(a);\\n vec3 B = project(b);\\n\\n return atan(\\n (B.y - A.y) * resolution.y,\\n (B.x - A.x) * resolution.x\\n );\\n}\\n\\nconst float PI = 3.141592;\\nconst float TWO_PI = 2.0 * PI;\\nconst float HALF_PI = 0.5 * PI;\\nconst float ONE_AND_HALF_PI = 1.5 * PI;\\n\\nint option = int(floor(alignOpt.x + 0.001));\\nfloat hv_ratio = alignOpt.y;\\nbool enableAlign = (alignOpt.z != 0.0);\\n\\nfloat mod_angle(float a) {\\n return mod(a, PI);\\n}\\n\\nfloat positive_angle(float a) {\\n return mod_angle((a < 0.0) ?\\n a + TWO_PI :\\n a\\n );\\n}\\n\\nfloat look_upwards(float a) {\\n float b = positive_angle(a);\\n return ((b > HALF_PI) && (b <= ONE_AND_HALF_PI)) ?\\n b - PI :\\n b;\\n}\\n\\nfloat look_horizontal_or_vertical(float a, float ratio) {\\n // ratio controls the ratio between being horizontal to (vertical + horizontal)\\n // if ratio is set to 0.5 then it is 50%, 50%.\\n // when using a higher ratio e.g. 0.75 the result would\\n // likely be more horizontal than vertical.\\n\\n float b = positive_angle(a);\\n\\n return\\n (b < ( ratio) * HALF_PI) ? 0.0 :\\n (b < (2.0 - ratio) * HALF_PI) ? -HALF_PI :\\n (b < (2.0 + ratio) * HALF_PI) ? 0.0 :\\n (b < (4.0 - ratio) * HALF_PI) ? HALF_PI :\\n 0.0;\\n}\\n\\nfloat roundTo(float a, float b) {\\n return float(b * floor((a + 0.5 * b) / b));\\n}\\n\\nfloat look_round_n_directions(float a, int n) {\\n float b = positive_angle(a);\\n float div = TWO_PI / float(n);\\n float c = roundTo(b, div);\\n return look_upwards(c);\\n}\\n\\nfloat applyAlignOption(float rawAngle, float delta) {\\n return\\n (option > 2) ? look_round_n_directions(rawAngle + delta, option) : // option 3-n: round to n directions\\n (option == 2) ? look_horizontal_or_vertical(rawAngle + delta, hv_ratio) : // horizontal or vertical\\n (option == 1) ? rawAngle + delta : // use free angle, and flip to align with one direction of the axis\\n (option == 0) ? look_upwards(rawAngle) : // use free angle, and stay upwards\\n (option ==-1) ? 0.0 : // useful for backward compatibility, all texts remains horizontal\\n rawAngle; // otherwise return back raw input angle\\n}\\n\\nbool isAxisTitle = (axis.x == 0.0) &&\\n (axis.y == 0.0) &&\\n (axis.z == 0.0);\\n\\nvoid main() {\\n //Compute world offset\\n float axisDistance = position.z;\\n vec3 dataPosition = axisDistance * axis + offset;\\n\\n float beta = angle; // i.e. user defined attributes for each tick\\n\\n float axisAngle;\\n float clipAngle;\\n float flip;\\n\\n if (enableAlign) {\\n axisAngle = (isAxisTitle) ? HALF_PI :\\n computeViewAngle(dataPosition, dataPosition + axis);\\n clipAngle = computeViewAngle(dataPosition, dataPosition + alignDir);\\n\\n axisAngle += (sin(axisAngle) < 0.0) ? PI : 0.0;\\n clipAngle += (sin(clipAngle) < 0.0) ? PI : 0.0;\\n\\n flip = (dot(vec2(cos(axisAngle), sin(axisAngle)),\\n vec2(sin(clipAngle),-cos(clipAngle))) > 0.0) ? 1.0 : 0.0;\\n\\n beta += applyAlignOption(clipAngle, flip * PI);\\n }\\n\\n //Compute plane offset\\n vec2 planeCoord = position.xy * pixelScale;\\n\\n mat2 planeXform = scale * mat2(\\n cos(beta), sin(beta),\\n -sin(beta), cos(beta)\\n );\\n\\n vec2 viewOffset = 2.0 * planeXform * planeCoord / resolution;\\n\\n //Compute clip position\\n vec3 clipPosition = project(dataPosition);\\n\\n //Apply text offset in clip coordinates\\n clipPosition += vec3(viewOffset, 0.0);\\n\\n //Done\\n gl_Position = vec4(clipPosition, 1.0);\\n}\"]),l=n([\"precision mediump float;\\n#define GLSLIFY 1\\nuniform vec4 color;\\nvoid main() {\\n gl_FragColor = color;\\n}\"]);r.text=function(t){return i(t,s,l,null,[{name:\"position\",type:\"vec3\"}])};var c=n([\"#define GLSLIFY 1\\nattribute vec3 position;\\nattribute vec3 normal;\\n\\nuniform mat4 model, view, projection;\\nuniform vec3 enable;\\nuniform vec3 bounds[2];\\n\\nvarying vec3 colorChannel;\\n\\nvoid main() {\\n\\n vec3 signAxis = sign(bounds[1] - bounds[0]);\\n\\n vec3 realNormal = signAxis * normal;\\n\\n if(dot(realNormal, enable) > 0.0) {\\n vec3 minRange = min(bounds[0], bounds[1]);\\n vec3 maxRange = max(bounds[0], bounds[1]);\\n vec3 nPosition = mix(minRange, maxRange, 0.5 * (position + 1.0));\\n gl_Position = projection * view * model * vec4(nPosition, 1.0);\\n } else {\\n gl_Position = vec4(0,0,0,0);\\n }\\n\\n colorChannel = abs(realNormal);\\n}\"]),u=n([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nuniform vec4 colors[3];\\n\\nvarying vec3 colorChannel;\\n\\nvoid main() {\\n gl_FragColor = colorChannel.x * colors[0] +\\n colorChannel.y * colors[1] +\\n colorChannel.z * colors[2];\\n}\"]);r.bg=function(t){return i(t,c,u,null,[{name:\"position\",type:\"vec3\"},{name:\"normal\",type:\"vec3\"}])}},{\"gl-shader\":288,glslify:392}],227:[function(t,e,r){(function(r){\"use strict\";e.exports=function(t,e,r,a,s,l){var u=n(t),f=i(t,[{buffer:u,size:3}]),h=o(t);h.attributes.position.location=0;var p=new c(t,h,u,f);return p.update(e,r,a,s,l),p};var n=t(\"gl-buffer\"),i=t(\"gl-vao\"),a=t(\"vectorize-text\"),o=t(\"./shaders\").text,s=window||r.global||{},l=s.__TEXT_CACHE||{};s.__TEXT_CACHE={};function c(t,e,r,n){this.gl=t,this.shader=e,this.buffer=r,this.vao=n,this.tickOffset=this.tickCount=this.labelOffset=this.labelCount=null}var u=c.prototype,f=[0,0];u.bind=function(t,e,r,n){this.vao.bind(),this.shader.bind();var i=this.shader.uniforms;i.model=t,i.view=e,i.projection=r,i.pixelScale=n,f[0]=this.gl.drawingBufferWidth,f[1]=this.gl.drawingBufferHeight,this.shader.uniforms.resolution=f},u.unbind=function(){this.vao.unbind()},u.update=function(t,e,r,n,i){this.gl;var o=[];function s(t,e,r,n){var i=l[r];i||(i=l[r]={});var s=i[e];s||(s=i[e]=function(t,e){try{return a(t,e)}catch(t){return console.warn(\"error vectorizing text:\",t),{cells:[],positions:[]}}}(e,{triangles:!0,font:r,textAlign:\"center\",textBaseline:\"middle\"}));for(var c=(n||12)/12,u=s.positions,f=s.cells,h=0,p=f.length;h<p;++h)for(var d=f[h],g=2;g>=0;--g){var v=u[d[g]];o.push(c*v[0],-c*v[1],t)}}for(var c=[0,0,0],u=[0,0,0],f=[0,0,0],h=[0,0,0],p=0;p<3;++p){f[p]=o.length/3|0,s(.5*(t[0][p]+t[1][p]),e[p],r),h[p]=(o.length/3|0)-f[p],c[p]=o.length/3|0;for(var d=0;d<n[p].length;++d)n[p][d].text&&s(n[p][d].x,n[p][d].text,n[p][d].font||i,n[p][d].fontSize||12);u[p]=(o.length/3|0)-c[p]}this.buffer.update(o),this.tickOffset=c,this.tickCount=u,this.labelOffset=f,this.labelCount=h},u.drawTicks=function(t,e,r,n,i,a,o,s){this.tickCount[t]&&(this.shader.uniforms.axis=a,this.shader.uniforms.color=i,this.shader.uniforms.angle=r,this.shader.uniforms.scale=e,this.shader.uniforms.offset=n,this.shader.uniforms.alignDir=o,this.shader.uniforms.alignOpt=s,this.vao.draw(this.gl.TRIANGLES,this.tickCount[t],this.tickOffset[t]))},u.drawLabel=function(t,e,r,n,i,a,o,s){this.labelCount[t]&&(this.shader.uniforms.axis=a,this.shader.uniforms.color=i,this.shader.uniforms.angle=r,this.shader.uniforms.scale=e,this.shader.uniforms.offset=n,this.shader.uniforms.alignDir=o,this.shader.uniforms.alignOpt=s,this.vao.draw(this.gl.TRIANGLES,this.labelCount[t],this.labelOffset[t]))},u.dispose=function(){this.shader.dispose(),this.vao.dispose(),this.buffer.dispose()}}).call(this,t(\"_process\"))},{\"./shaders\":226,_process:465,\"gl-buffer\":230,\"gl-vao\":310,\"vectorize-text\":527}],228:[function(t,e,r){\"use strict\";function n(t,e){var r=t+\"\",n=r.indexOf(\".\"),i=0;n>=0&&(i=r.length-n-1);var a=Math.pow(10,i),o=Math.round(t*e*a),s=o+\"\";if(s.indexOf(\"e\")>=0)return s;var l=o/a,c=o%a;o<0?(l=0|-Math.ceil(l),c=0|-c):(l=0|Math.floor(l),c|=0);var u=\"\"+l;if(o<0&&(u=\"-\"+u),i){for(var f=\"\"+c;f.length<i;)f=\"0\"+f;return u+\".\"+f}return u}r.create=function(t,e){for(var r=[],i=0;i<3;++i){for(var a=[],o=(t[0][i],t[1][i],0);o*e[i]<=t[1][i];++o)a.push({x:o*e[i],text:n(e[i],o)});for(var o=-1;o*e[i]>=t[0][i];--o)a.push({x:o*e[i],text:n(e[i],o)});r.push(a)}return r},r.equal=function(t,e){for(var r=0;r<3;++r){if(t[r].length!==e[r].length)return!1;for(var n=0;n<t[r].length;++n){var i=t[r][n],a=e[r][n];if(i.x!==a.x||i.text!==a.text||i.font!==a.font||i.fontColor!==a.fontColor||i.fontSize!==a.fontSize||i.dx!==a.dx||i.dy!==a.dy)return!1}}return!0}},{}],229:[function(t,e,r){\"use strict\";e.exports=function(t,e,r,l,f){var h=e.model||c,p=e.view||c,m=e.projection||c,y=t.bounds,x=(f=f||a(h,p,m,y)).axis;f.edges;o(u,p,h),o(u,m,u);for(var b=g,_=0;_<3;++_)b[_].lo=1/0,b[_].hi=-1/0,b[_].pixelsPerDataUnit=1/0;var w=n(s(u,u));s(u,u);for(var k=0;k<3;++k){var M=(k+1)%3,A=(k+2)%3,T=v;t:for(var _=0;_<2;++_){var S=[];if(x[k]<0!=!!_){T[k]=y[_][k];for(var E=0;E<2;++E){T[M]=y[E^_][M];for(var C=0;C<2;++C)T[A]=y[C^E^_][A],S.push(T.slice())}for(var E=0;E<w.length;++E){if(0===S.length)continue t;S=i.positive(S,w[E])}for(var E=0;E<S.length;++E)for(var A=S[E],L=d(v,u,A,r,l),C=0;C<3;++C)b[C].lo=Math.min(b[C].lo,A[C]),b[C].hi=Math.max(b[C].hi,A[C]),C!==k&&(b[C].pixelsPerDataUnit=Math.min(b[C].pixelsPerDataUnit,Math.abs(L[C])))}}}return b};var n=t(\"extract-frustum-planes\"),i=t(\"split-polygon\"),a=t(\"./lib/cube.js\"),o=t(\"gl-mat4/multiply\"),s=t(\"gl-mat4/transpose\"),l=t(\"gl-vec4/transformMat4\"),c=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),u=new Float32Array(16);function f(t,e,r){this.lo=t,this.hi=e,this.pixelsPerDataUnit=r}var h=[0,0,0,1],p=[0,0,0,1];function d(t,e,r,n,i){for(var a=0;a<3;++a){for(var o=h,s=p,c=0;c<3;++c)s[c]=o[c]=r[c];s[3]=o[3]=1,s[a]+=1,l(s,s,e),s[3]<0&&(t[a]=1/0),o[a]-=1,l(o,o,e),o[3]<0&&(t[a]=1/0);var u=(o[0]/o[3]-s[0]/s[3])*n,f=(o[1]/o[3]-s[1]/s[3])*i;t[a]=.25*Math.sqrt(u*u+f*f)}return t}var g=[new f(1/0,-1/0,1/0),new f(1/0,-1/0,1/0),new f(1/0,-1/0,1/0)],v=[0,0,0]},{\"./lib/cube.js\":224,\"extract-frustum-planes\":213,\"gl-mat4/multiply\":256,\"gl-mat4/transpose\":264,\"gl-vec4/transformMat4\":381,\"split-polygon\":503}],230:[function(t,e,r){\"use strict\";var n=t(\"typedarray-pool\"),i=t(\"ndarray-ops\"),a=t(\"ndarray\"),o=[\"uint8\",\"uint8_clamped\",\"uint16\",\"uint32\",\"int8\",\"int16\",\"int32\",\"float32\"];function s(t,e,r,n,i){this.gl=t,this.type=e,this.handle=r,this.length=n,this.usage=i}var l=s.prototype;function c(t,e,r,n,i,a){var o=i.length*i.BYTES_PER_ELEMENT;if(a<0)return t.bufferData(e,i,n),o;if(o+a>r)throw new Error(\"gl-buffer: If resizing buffer, must not specify offset\");return t.bufferSubData(e,a,i),r}function u(t,e){for(var r=n.malloc(t.length,e),i=t.length,a=0;a<i;++a)r[a]=t[a];return r}l.bind=function(){this.gl.bindBuffer(this.type,this.handle)},l.unbind=function(){this.gl.bindBuffer(this.type,null)},l.dispose=function(){this.gl.deleteBuffer(this.handle)},l.update=function(t,e){if(\"number\"!=typeof e&&(e=-1),this.bind(),\"object\"==typeof t&&\"undefined\"!=typeof t.shape){var r=t.dtype;if(o.indexOf(r)<0&&(r=\"float32\"),this.type===this.gl.ELEMENT_ARRAY_BUFFER)r=gl.getExtension(\"OES_element_index_uint\")&&\"uint16\"!==r?\"uint32\":\"uint16\";if(r===t.dtype&&function(t,e){for(var r=1,n=e.length-1;n>=0;--n){if(e[n]!==r)return!1;r*=t[n]}return!0}(t.shape,t.stride))0===t.offset&&t.data.length===t.shape[0]?this.length=c(this.gl,this.type,this.length,this.usage,t.data,e):this.length=c(this.gl,this.type,this.length,this.usage,t.data.subarray(t.offset,t.shape[0]),e);else{var s=n.malloc(t.size,r),l=a(s,t.shape);i.assign(l,t),this.length=c(this.gl,this.type,this.length,this.usage,e<0?s:s.subarray(0,t.size),e),n.free(s)}}else if(Array.isArray(t)){var f;f=this.type===this.gl.ELEMENT_ARRAY_BUFFER?u(t,\"uint16\"):u(t,\"float32\"),this.length=c(this.gl,this.type,this.length,this.usage,e<0?f:f.subarray(0,t.length),e),n.free(f)}else if(\"object\"==typeof t&&\"number\"==typeof t.length)this.length=c(this.gl,this.type,this.length,this.usage,t,e);else{if(\"number\"!=typeof t&&void 0!==t)throw new Error(\"gl-buffer: Invalid data type\");if(e>=0)throw new Error(\"gl-buffer: Cannot specify offset when resizing buffer\");(t|=0)<=0&&(t=1),this.gl.bufferData(this.type,0|t,this.usage),this.length=t}},e.exports=function(t,e,r,n){if(r=r||t.ARRAY_BUFFER,n=n||t.DYNAMIC_DRAW,r!==t.ARRAY_BUFFER&&r!==t.ELEMENT_ARRAY_BUFFER)throw new Error(\"gl-buffer: Invalid type for webgl buffer, must be either gl.ARRAY_BUFFER or gl.ELEMENT_ARRAY_BUFFER\");if(n!==t.DYNAMIC_DRAW&&n!==t.STATIC_DRAW&&n!==t.STREAM_DRAW)throw new Error(\"gl-buffer: Invalid usage for buffer, must be either gl.DYNAMIC_DRAW, gl.STATIC_DRAW or gl.STREAM_DRAW\");var i=t.createBuffer(),a=new s(t,r,i,0,n);return a.update(e),a}},{ndarray:433,\"ndarray-ops\":427,\"typedarray-pool\":522}],231:[function(t,e,r){\"use strict\";var n=t(\"gl-vec3\"),i=(t(\"gl-vec4\"),function(t,e){for(var r=0;r<t.length;r++)if(t[r]>=e)return r-1;return r}),a=n.create(),o=n.create(),s=function(t,e,r){return t<e?e:t>r?r:t},l=function(t,e,r,l){var c=t[0],u=t[1],f=t[2],h=r[0].length,p=r[1].length,d=r[2].length,g=i(r[0],c),v=i(r[1],u),m=i(r[2],f),y=g+1,x=v+1,b=m+1;if(l&&(g=s(g,0,h-1),y=s(y,0,h-1),v=s(v,0,p-1),x=s(x,0,p-1),m=s(m,0,d-1),b=s(b,0,d-1)),g<0||v<0||m<0||y>=h||x>=p||b>=d)return n.create();var _=(c-r[0][g])/(r[0][y]-r[0][g]),w=(u-r[1][v])/(r[1][x]-r[1][v]),k=(f-r[2][m])/(r[2][b]-r[2][m]);(_<0||_>1||isNaN(_))&&(_=0),(w<0||w>1||isNaN(w))&&(w=0),(k<0||k>1||isNaN(k))&&(k=0);var M=m*h*p,A=b*h*p,T=v*h,S=x*h,E=g,C=y,L=e[T+M+E],z=e[T+M+C],O=e[S+M+E],I=e[S+M+C],P=e[T+A+E],D=e[T+A+C],R=e[S+A+E],B=e[S+A+C],F=n.create();return n.lerp(F,L,z,_),n.lerp(a,O,I,_),n.lerp(F,F,a,w),n.lerp(a,P,D,_),n.lerp(o,R,B,_),n.lerp(a,a,o,w),n.lerp(F,F,a,k),F};e.exports=function(t,e){var r;r=t.positions?t.positions:function(t){for(var e=t[0],r=t[1],n=t[2],i=[],a=0;a<n.length;a++)for(var o=0;o<r.length;o++)for(var s=0;s<e.length;s++)i.push([n[a],r[o],e[s]]);return i}(t.meshgrid);var i=t.meshgrid,a=t.vectors,o={positions:[],vertexIntensity:[],vertexIntensityBounds:t.vertexIntensityBounds,vertexNormals:[],vectors:[],cells:[],coneOffset:t.coneOffset,colormap:t.colormap};if(0===t.positions.length)return e&&(e[0]=[0,0,0],e[1]=[0,0,0]),o;for(var s=0,c=1/0,u=-1/0,f=1/0,h=-1/0,p=1/0,d=-1/0,g=null,v=null,m=[],y=1/0,x=0;x<r.length;x++){var b,_=r[x];c=Math.min(_[0],c),u=Math.max(_[0],u),f=Math.min(_[1],f),h=Math.max(_[1],h),p=Math.min(_[2],p),d=Math.max(_[2],d),b=i?l(_,a,i,!0):a[x],n.length(b)>s&&(s=n.length(b)),x&&(y=Math.min(y,2*n.distance(g,_)/(n.length(v)+n.length(b)))),g=_,v=b,m.push(b)}var w=[c,f,p],k=[u,h,d];e&&(e[0]=w,e[1]=k),0===s&&(s=1);var M=1/s;isFinite(y)&&!isNaN(y)||(y=1),o.vectorScale=y;var A=function(t,e,r){var i=n.create();return void 0!==t&&n.set(i,t,e,r),i}(0,1,0),T=t.coneSize||.5;t.absoluteConeSize&&(T=t.absoluteConeSize*M),o.coneScale=T;x=0;for(var S=0;x<r.length;x++)for(var E=(_=r[x])[0],C=_[1],L=_[2],z=m[x],O=n.length(z)*M,I=0;I<8;I++){o.positions.push([E,C,L,S++]),o.positions.push([E,C,L,S++]),o.positions.push([E,C,L,S++]),o.positions.push([E,C,L,S++]),o.positions.push([E,C,L,S++]),o.positions.push([E,C,L,S++]),o.vectors.push(z),o.vectors.push(z),o.vectors.push(z),o.vectors.push(z),o.vectors.push(z),o.vectors.push(z),o.vertexIntensity.push(O,O,O),o.vertexIntensity.push(O,O,O),o.vertexNormals.push(A,A,A),o.vertexNormals.push(A,A,A);var P=o.positions.length;o.cells.push([P-6,P-5,P-4],[P-3,P-2,P-1])}return o},e.exports.createConeMesh=t(\"./lib/conemesh\")},{\"./lib/conemesh\":233,\"gl-vec3\":329,\"gl-vec4\":365}],232:[function(t,e,r){\"use strict\";var n=t(\"barycentric\"),i=t(\"polytope-closest-point/lib/closest_point_2d.js\");function a(t,e){for(var r=[0,0,0,0],n=0;n<4;++n)for(var i=0;i<4;++i)r[i]+=t[4*n+i]*e[n];return r}function o(t,e,r,n,i){for(var o=a(n,a(r,a(e,[t[0],t[1],t[2],1]))),s=0;s<3;++s)o[s]/=o[3];return[.5*i[0]*(1+o[0]),.5*i[1]*(1-o[1])]}e.exports=function(t,e,r,a,s,l){if(1===t.length)return[0,t[0].slice()];for(var c=new Array(t.length),u=0;u<t.length;++u)c[u]=o(t[u],r,a,s,l);for(var f=0,h=1/0,u=0;u<c.length;++u){for(var p=0,d=0;d<2;++d)p+=Math.pow(c[u][d]-e[d],2);p<h&&(h=p,f=u)}for(var g=function(t,e){if(2===t.length){for(var r=0,a=0,o=0;o<2;++o)r+=Math.pow(e[o]-t[0][o],2),a+=Math.pow(e[o]-t[1][o],2);return r=Math.sqrt(r),a=Math.sqrt(a),r+a<1e-6?[1,0]:[a/(r+a),r/(a+r)]}if(3===t.length){var s=[0,0];return i(t[0],t[1],t[2],e,s),n(t,s)}return[]}(c,e),v=0,u=0;u<3;++u){if(g[u]<-.001||g[u]>1.0001)return null;v+=g[u]}if(Math.abs(v-1)>.001)return null;return[f,function(t,e){for(var r=[0,0,0],n=0;n<t.length;++n)for(var i=t[n],a=e[n],o=0;o<3;++o)r[o]+=a*i[o];return r}(t,g),g]}},{barycentric:61,\"polytope-closest-point/lib/closest_point_2d.js\":464}],233:[function(t,e,r){\"use strict\";var n=t(\"gl-shader\"),i=t(\"gl-buffer\"),a=t(\"gl-vao\"),o=t(\"gl-texture2d\"),s=t(\"normals\"),l=t(\"gl-mat4/multiply\"),c=t(\"gl-mat4/invert\"),u=t(\"ndarray\"),f=t(\"colormap\"),h=t(\"simplicial-complex-contour\"),p=t(\"typedarray-pool\"),d=t(\"./shaders\"),g=(t(\"./closest-point\"),d.meshShader),v=d.pickShader,m=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function y(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,g,v,y,x,b,_,w,k,M,A,T,S,E){this.gl=t,this.cells=[],this.positions=[],this.intensity=[],this.texture=e,this.dirty=!0,this.triShader=r,this.lineShader=n,this.pointShader=i,this.pickShader=a,this.pointPickShader=o,this.contourShader=s,this.trianglePositions=l,this.triangleVectors=c,this.triangleColors=f,this.triangleNormals=p,this.triangleUVs=h,this.triangleIds=u,this.triangleVAO=d,this.triangleCount=0,this.lineWidth=1,this.edgePositions=g,this.edgeColors=y,this.edgeUVs=x,this.edgeIds=v,this.edgeVAO=b,this.edgeCount=0,this.pointPositions=_,this.pointColors=k,this.pointUVs=M,this.pointSizes=A,this.pointIds=w,this.pointVAO=T,this.pointCount=0,this.contourLineWidth=1,this.contourPositions=S,this.contourVAO=E,this.contourCount=0,this.contourColor=[0,0,0],this.contourEnable=!0,this.pickId=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lightPosition=[1e5,1e5,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.opacity=1,this.coneScale=2,this.vectorScale=1,this.coneOffset=.25,this._model=m,this._view=m,this._projection=m,this._resolution=[1,1]}var x=y.prototype;function b(t){var e=n(t,v.vertex,v.fragment,null,v.attributes);return e.attributes.position.location=0,e.attributes.id.location=1,e.attributes.vector.location=5,e}x.isOpaque=function(){return this.opacity>=1},x.isTransparent=function(){return this.opacity<1},x.pickSlots=1,x.setPickBase=function(t){this.pickId=t},x.highlight=function(t){if(t&&this.contourEnable){for(var e=h(this.cells,this.intensity,t.intensity),r=e.cells,n=e.vertexIds,i=e.vertexWeights,a=r.length,o=p.mallocFloat32(6*a),s=0,l=0;l<a;++l)for(var c=r[l],u=0;u<2;++u){var f=c[0];2===c.length&&(f=c[u]);for(var d=n[f][0],g=n[f][1],v=i[f],m=1-v,y=this.positions[d],x=this.positions[g],b=0;b<3;++b)o[s++]=v*y[b]+m*x[b]}this.contourCount=s/3|0,this.contourPositions.update(o.subarray(0,s)),p.free(o)}else this.contourCount=0},x.update=function(t){t=t||{};var e=this.gl;this.dirty=!0,\"contourEnable\"in t&&(this.contourEnable=t.contourEnable),\"contourColor\"in t&&(this.contourColor=t.contourColor),\"lineWidth\"in t&&(this.lineWidth=t.lineWidth),\"lightPosition\"in t&&(this.lightPosition=t.lightPosition),\"opacity\"in t&&(this.opacity=t.opacity),\"ambient\"in t&&(this.ambientLight=t.ambient),\"diffuse\"in t&&(this.diffuseLight=t.diffuse),\"specular\"in t&&(this.specularLight=t.specular),\"roughness\"in t&&(this.roughness=t.roughness),\"fresnel\"in t&&(this.fresnel=t.fresnel),void 0!==t.vectorScale&&(this.vectorScale=t.vectorScale),void 0!==t.coneScale&&(this.coneScale=t.coneScale),void 0!==t.coneOffset&&(this.coneOffset=t.coneOffset),t.texture?(this.texture.dispose(),this.texture=o(e,t.texture)):t.colormap&&(this.texture.shape=[256,256],this.texture.minFilter=e.LINEAR_MIPMAP_LINEAR,this.texture.magFilter=e.LINEAR,this.texture.setPixels(function(t){for(var e=f({colormap:t,nshades:256,format:\"rgba\"}),r=new Uint8Array(1024),n=0;n<256;++n){for(var i=e[n],a=0;a<3;++a)r[4*n+a]=i[a];r[4*n+3]=255*i[3]}return u(r,[256,256,4],[4,0,1])}(t.colormap)),this.texture.generateMipmap());var r=t.cells,n=t.positions,i=t.vectors;if(n&&r&&i){var a=[],l=[],c=[],h=[],p=[],d=[],g=[],v=[],m=[],y=[],x=[],b=[],_=[],w=[],k=[];this.cells=r,this.positions=n;var M=t.vertexNormals,A=t.cellNormals,T=void 0===t.vertexNormalsEpsilon?1e-6:t.vertexNormalsEpsilon,S=void 0===t.faceNormalsEpsilon?1e-6:t.faceNormalsEpsilon;t.useFacetNormals&&!A&&(A=s.faceNormals(r,n,S)),A||M||(M=s.vertexNormals(r,n,T));var E=t.vertexColors,C=t.cellColors,L=t.meshColor||[1,1,1,1],z=t.vertexUVs,O=t.vertexIntensity,I=t.cellUVs,P=t.cellIntensity,D=1/0,R=-1/0;if(!z&&!I)if(O)if(t.vertexIntensityBounds)D=+t.vertexIntensityBounds[0],R=+t.vertexIntensityBounds[1];else for(var B=0;B<O.length;++B){var F=O[B];D=Math.min(D,F),R=Math.max(R,F)}else if(P)for(B=0;B<P.length;++B){F=P[B];D=Math.min(D,F),R=Math.max(R,F)}else for(B=0;B<n.length;++B){F=n[B][2];D=Math.min(D,F),R=Math.max(R,F)}this.intensity=O||(P?function(t,e,r){for(var n=new Array(e),i=0;i<e;++i)n[i]=0;var a=t.length;for(i=0;i<a;++i)for(var o=t[i],s=0;s<o.length;++s)n[o[s]]=r[i];return n}(r,n.length,P):function(t){for(var e=t.length,r=new Array(e),n=0;n<e;++n)r[n]=t[n][2];return r}(n));var N=t.pointSizes,j=t.pointSize||1;this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]];for(B=0;B<n.length;++B)for(var V=n[B],U=0;U<3;++U)!isNaN(V[U])&&isFinite(V[U])&&(this.bounds[0][U]=Math.min(this.bounds[0][U],V[U]),this.bounds[1][U]=Math.max(this.bounds[1][U],V[U]));var q=0,H=0,G=0;t:for(B=0;B<r.length;++B){var W=r[B];switch(W.length){case 1:for(V=n[X=W[0]],U=0;U<3;++U)if(isNaN(V[U])||!isFinite(V[U]))continue t;x.push(V[0],V[1],V[2],V[3]),3===(Z=E?E[X]:C?C[B]:L).length?b.push(Z[0],Z[1],Z[2],1):b.push(Z[0],Z[1],Z[2],Z[3]),$=z?z[X]:O?[(O[X]-D)/(R-D),0]:I?I[B]:P?[(P[B]-D)/(R-D),0]:[(V[2]-D)/(R-D),0],_.push($[0],$[1]),N?w.push(N[X]):w.push(j),k.push(B),G+=1;break;case 2:for(U=0;U<2;++U){V=n[X=W[U]];for(var Y=0;Y<3;++Y)if(isNaN(V[Y])||!isFinite(V[Y]))continue t}for(U=0;U<2;++U){V=n[X=W[U]];g.push(V[0],V[1],V[2]),3===(Z=E?E[X]:C?C[B]:L).length?v.push(Z[0],Z[1],Z[2],1):v.push(Z[0],Z[1],Z[2],Z[3]),$=z?z[X]:O?[(O[X]-D)/(R-D),0]:I?I[B]:P?[(P[B]-D)/(R-D),0]:[(V[2]-D)/(R-D),0],m.push($[0],$[1]),y.push(B)}H+=1;break;case 3:for(U=0;U<3;++U)for(V=n[X=W[U]],Y=0;Y<3;++Y)if(isNaN(V[Y])||!isFinite(V[Y]))continue t;for(U=0;U<3;++U){var X;V=n[X=W[U]];a.push(V[0],V[1],V[2],V[3]);var Z,$,J,K=i[X];l.push(K[0],K[1],K[2]),3===(Z=E?E[X]:C?C[B]:L).length?c.push(Z[0],Z[1],Z[2],1):c.push(Z[0],Z[1],Z[2],Z[3]),$=z?z[X]:O?[(O[X]-D)/(R-D),0]:I?I[B]:P?[(P[B]-D)/(R-D),0]:[(V[2]-D)/(R-D),0],p.push($[0],$[1]),J=M?M[X]:A[B],h.push(J[0],J[1],J[2]),d.push(B)}q+=1}}this.pointCount=G,this.edgeCount=H,this.triangleCount=q,this.pointPositions.update(x),this.pointColors.update(b),this.pointUVs.update(_),this.pointSizes.update(w),this.pointIds.update(new Uint32Array(k)),this.edgePositions.update(g),this.edgeColors.update(v),this.edgeUVs.update(m),this.edgeIds.update(new Uint32Array(y)),this.trianglePositions.update(a),this.triangleVectors.update(l),this.triangleColors.update(c),this.triangleUVs.update(p),this.triangleNormals.update(h),this.triangleIds.update(new Uint32Array(d))}},x.drawTransparent=x.draw=function(t){t=t||{};for(var e=this.gl,r=t.model||m,n=t.view||m,i=t.projection||m,a=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],o=0;o<3;++o)a[0][o]=Math.max(a[0][o],this.clipBounds[0][o]),a[1][o]=Math.min(a[1][o],this.clipBounds[1][o]);var s={model:r,view:n,projection:i,clipBounds:a,kambient:this.ambientLight,kdiffuse:this.diffuseLight,kspecular:this.specularLight,roughness:this.roughness,fresnel:this.fresnel,eyePosition:[0,0,0],lightPosition:[0,0,0],opacity:this.opacity,vectorScale:this.vectorScale,coneScale:this.coneScale,coneOffset:this.coneOffset,contourColor:this.contourColor,texture:0};this.texture.bind(0);var u=new Array(16);l(u,s.view,s.model),l(u,s.projection,u),c(u,u);for(o=0;o<3;++o)s.eyePosition[o]=u[12+o]/u[15];var f,h=u[15];for(o=0;o<3;++o)h+=this.lightPosition[o]*u[4*o+3];for(o=0;o<3;++o){for(var p=u[12+o],d=0;d<3;++d)p+=u[4*d+o]*this.lightPosition[d];s.lightPosition[o]=p/h}this.triangleCount>0&&((f=this.triShader).bind(),f.uniforms=s,this.triangleVAO.bind(),e.drawArrays(e.TRIANGLES,0,3*this.triangleCount),this.triangleVAO.unbind());this.edgeCount>0&&this.lineWidth>0&&((f=this.lineShader).bind(),f.uniforms=s,this.edgeVAO.bind(),e.lineWidth(this.lineWidth),e.drawArrays(e.LINES,0,2*this.edgeCount),this.edgeVAO.unbind());this.pointCount>0&&((f=this.pointShader).bind(),f.uniforms=s,this.pointVAO.bind(),e.drawArrays(e.POINTS,0,this.pointCount),this.pointVAO.unbind());this.contourEnable&&this.contourCount>0&&this.contourLineWidth>0&&((f=this.contourShader).bind(),f.uniforms=s,this.contourVAO.bind(),e.drawArrays(e.LINES,0,this.contourCount),this.contourVAO.unbind())},x.drawPick=function(t){t=t||{};for(var e=this.gl,r=t.model||m,n=t.view||m,i=t.projection||m,a=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],o=0;o<3;++o)a[0][o]=Math.max(a[0][o],this.clipBounds[0][o]),a[1][o]=Math.min(a[1][o],this.clipBounds[1][o]);this._model=[].slice.call(r),this._view=[].slice.call(n),this._projection=[].slice.call(i),this._resolution=[e.drawingBufferWidth,e.drawingBufferHeight];var s,l={model:r,view:n,projection:i,clipBounds:a,vectorScale:this.vectorScale,coneScale:this.coneScale,coneOffset:this.coneOffset,pickId:this.pickId/255};((s=this.pickShader).bind(),s.uniforms=l,this.triangleCount>0&&(this.triangleVAO.bind(),e.drawArrays(e.TRIANGLES,0,3*this.triangleCount),this.triangleVAO.unbind()),this.edgeCount>0&&(this.edgeVAO.bind(),e.lineWidth(this.lineWidth),e.drawArrays(e.LINES,0,2*this.edgeCount),this.edgeVAO.unbind()),this.pointCount>0)&&((s=this.pointPickShader).bind(),s.uniforms=l,this.pointVAO.bind(),e.drawArrays(e.POINTS,0,this.pointCount),this.pointVAO.unbind())},x.pick=function(t){if(!t)return null;if(t.id!==this.pickId)return null;var e=t.value[0]+256*t.value[1]+65536*t.value[2],r=this.cells[e],n=this.positions[r[1]].slice(0,3);return{index:Math.floor(r[1]/48),position:n,dataCoordinate:n}},x.dispose=function(){this.texture.dispose(),this.triShader.dispose(),this.pickShader.dispose(),this.triangleVAO.dispose(),this.trianglePositions.dispose(),this.triangleVectors.dispose(),this.triangleColors.dispose(),this.triangleUVs.dispose(),this.triangleNormals.dispose(),this.triangleIds.dispose(),this.edgeVAO.dispose(),this.edgePositions.dispose(),this.edgeColors.dispose(),this.edgeUVs.dispose(),this.edgeIds.dispose(),this.pointVAO.dispose(),this.pointPositions.dispose(),this.pointColors.dispose(),this.pointUVs.dispose(),this.pointSizes.dispose(),this.pointIds.dispose(),this.contourVAO.dispose(),this.contourPositions.dispose()},e.exports=function(t,e){1===arguments.length&&(t=(e=t).gl);var r=e.triShader||function(t){var e=n(t,g.vertex,g.fragment,null,g.attributes);return e.attributes.position.location=0,e.attributes.color.location=2,e.attributes.uv.location=3,e.attributes.vector.location=5,e}(t),s=b(t),l=o(t,u(new Uint8Array([255,255,255,255]),[1,1,4]));l.generateMipmap(),l.minFilter=t.LINEAR_MIPMAP_LINEAR,l.magFilter=t.LINEAR;var c=i(t),f=i(t),h=i(t),p=i(t),d=i(t),v=i(t),m=a(t,[{buffer:c,type:t.FLOAT,size:4},{buffer:v,type:t.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:h,type:t.FLOAT,size:4},{buffer:p,type:t.FLOAT,size:2},{buffer:d,type:t.FLOAT,size:3},{buffer:f,type:t.FLOAT,size:3}]),x=i(t),_=i(t),w=i(t),k=i(t),M=a(t,[{buffer:x,type:t.FLOAT,size:3},{buffer:k,type:t.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:_,type:t.FLOAT,size:4},{buffer:w,type:t.FLOAT,size:2}]),A=i(t),T=i(t),S=i(t),E=i(t),C=i(t),L=a(t,[{buffer:A,type:t.FLOAT,size:3},{buffer:C,type:t.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:T,type:t.FLOAT,size:4},{buffer:S,type:t.FLOAT,size:2},{buffer:E,type:t.FLOAT,size:1}]),z=i(t),O=new y(t,l,r,null,null,s,null,null,c,f,v,h,p,d,m,x,k,_,w,M,A,C,T,S,E,L,z,a(t,[{buffer:z,type:t.FLOAT,size:3}]));return O.update(e),O}},{\"./closest-point\":232,\"./shaders\":234,colormap:114,\"gl-buffer\":230,\"gl-mat4/invert\":254,\"gl-mat4/multiply\":256,\"gl-shader\":288,\"gl-texture2d\":305,\"gl-vao\":310,ndarray:433,normals:436,\"simplicial-complex-contour\":494,\"typedarray-pool\":522}],234:[function(t,e,r){var n=t(\"glslify\"),i=n([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nfloat inverse(float m) {\\n return 1.0 / m;\\n}\\n\\nmat2 inverse(mat2 m) {\\n return mat2(m[1][1],-m[0][1],\\n -m[1][0], m[0][0]) / (m[0][0]*m[1][1] - m[0][1]*m[1][0]);\\n}\\n\\nmat3 inverse(mat3 m) {\\n float a00 = m[0][0], a01 = m[0][1], a02 = m[0][2];\\n float a10 = m[1][0], a11 = m[1][1], a12 = m[1][2];\\n float a20 = m[2][0], a21 = m[2][1], a22 = m[2][2];\\n\\n float b01 = a22 * a11 - a12 * a21;\\n float b11 = -a22 * a10 + a12 * a20;\\n float b21 = a21 * a10 - a11 * a20;\\n\\n float det = a00 * b01 + a01 * b11 + a02 * b21;\\n\\n return mat3(b01, (-a22 * a01 + a02 * a21), (a12 * a01 - a02 * a11),\\n b11, (a22 * a00 - a02 * a20), (-a12 * a00 + a02 * a10),\\n b21, (-a21 * a00 + a01 * a20), (a11 * a00 - a01 * a10)) / det;\\n}\\n\\nmat4 inverse(mat4 m) {\\n float\\n a00 = m[0][0], a01 = m[0][1], a02 = m[0][2], a03 = m[0][3],\\n a10 = m[1][0], a11 = m[1][1], a12 = m[1][2], a13 = m[1][3],\\n a20 = m[2][0], a21 = m[2][1], a22 = m[2][2], a23 = m[2][3],\\n a30 = m[3][0], a31 = m[3][1], a32 = m[3][2], a33 = m[3][3],\\n\\n b00 = a00 * a11 - a01 * a10,\\n b01 = a00 * a12 - a02 * a10,\\n b02 = a00 * a13 - a03 * a10,\\n b03 = a01 * a12 - a02 * a11,\\n b04 = a01 * a13 - a03 * a11,\\n b05 = a02 * a13 - a03 * a12,\\n b06 = a20 * a31 - a21 * a30,\\n b07 = a20 * a32 - a22 * a30,\\n b08 = a20 * a33 - a23 * a30,\\n b09 = a21 * a32 - a22 * a31,\\n b10 = a21 * a33 - a23 * a31,\\n b11 = a22 * a33 - a23 * a32,\\n\\n det = b00 * b11 - b01 * b10 + b02 * b09 + b03 * b08 - b04 * b07 + b05 * b06;\\n\\n return mat4(\\n a11 * b11 - a12 * b10 + a13 * b09,\\n a02 * b10 - a01 * b11 - a03 * b09,\\n a31 * b05 - a32 * b04 + a33 * b03,\\n a22 * b04 - a21 * b05 - a23 * b03,\\n a12 * b08 - a10 * b11 - a13 * b07,\\n a00 * b11 - a02 * b08 + a03 * b07,\\n a32 * b02 - a30 * b05 - a33 * b01,\\n a20 * b05 - a22 * b02 + a23 * b01,\\n a10 * b10 - a11 * b08 + a13 * b06,\\n a01 * b08 - a00 * b10 - a03 * b06,\\n a30 * b04 - a31 * b02 + a33 * b00,\\n a21 * b02 - a20 * b04 - a23 * b00,\\n a11 * b07 - a10 * b09 - a12 * b06,\\n a00 * b09 - a01 * b07 + a02 * b06,\\n a31 * b01 - a30 * b03 - a32 * b00,\\n a20 * b03 - a21 * b01 + a22 * b00) / det;\\n}\\n\\nvec3 getOrthogonalVector(vec3 v) {\\n // Return up-vector for only-z vector.\\n // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0).\\n // From the above if-statement we have ||a|| > 0 U ||b|| > 0.\\n // Assign z = 0, x = -b, y = a:\\n // a*-b + b*a + c*0 = -ba + ba + 0 = 0\\n if (v.x*v.x > v.z*v.z || v.y*v.y > v.z*v.z) {\\n return normalize(vec3(-v.y, v.x, 0.0));\\n } else {\\n return normalize(vec3(0.0, v.z, -v.y));\\n }\\n}\\n\\n// Calculate the cone vertex and normal at the given index.\\n//\\n// The returned vertex is for a cone with its top at origin and height of 1.0,\\n// pointing in the direction of the vector attribute.\\n//\\n// Each cone is made up of a top vertex, a center base vertex and base perimeter vertices.\\n// These vertices are used to make up the triangles of the cone by the following:\\n// segment + 0 top vertex\\n// segment + 1 perimeter vertex a+1\\n// segment + 2 perimeter vertex a\\n// segment + 3 center base vertex\\n// segment + 4 perimeter vertex a\\n// segment + 5 perimeter vertex a+1\\n// Where segment is the number of the radial segment * 6 and a is the angle at that radial segment.\\n// To go from index to segment, floor(index / 6)\\n// To go from segment to angle, 2*pi * (segment/segmentCount)\\n// To go from index to segment index, index - (segment*6)\\n//\\nvec3 getConePosition(vec3 d, float index, float coneOffset, out vec3 normal) {\\n\\n const float segmentCount = 8.0;\\n\\n index = mod(index, segmentCount * 6.0);\\n\\n float segment = floor(index/6.0);\\n float segmentIndex = index - (segment*6.0);\\n\\n normal = -normalize(d);\\n\\n if (segmentIndex == 3.0) {\\n return mix(vec3(0.0), -d, coneOffset);\\n }\\n\\n // angle = 2pi * ((segment + ((segmentIndex == 1.0 || segmentIndex == 5.0) ? 1.0 : 0.0)) / segmentCount)\\n float nextAngle = float(segmentIndex == 1.0 || segmentIndex == 5.0);\\n float angle = 2.0 * 3.14159 * ((segment + nextAngle) / segmentCount);\\n\\n vec3 v1 = mix(d, vec3(0.0), coneOffset);\\n vec3 v2 = v1 - d;\\n\\n vec3 u = getOrthogonalVector(d);\\n vec3 v = normalize(cross(u, d));\\n\\n vec3 x = u * cos(angle) * length(d)*0.25;\\n vec3 y = v * sin(angle) * length(d)*0.25;\\n vec3 v3 = v2 + x + y;\\n if (segmentIndex <= 2.0) {\\n vec3 tx = u * sin(angle);\\n vec3 ty = v * -cos(angle);\\n vec3 tangent = tx + ty;\\n normal = normalize(cross(v3 - v1, tangent));\\n }\\n\\n if (segmentIndex == 0.0) {\\n return mix(d, vec3(0.0), coneOffset);\\n }\\n return v3;\\n}\\n\\nattribute vec3 vector;\\nattribute vec4 color, position;\\nattribute vec2 uv;\\nuniform float vectorScale;\\nuniform float coneScale;\\n\\nuniform float coneOffset;\\n\\nuniform mat4 model\\n , view\\n , projection;\\nuniform vec3 eyePosition\\n , lightPosition;\\n\\nvarying vec3 f_normal\\n , f_lightDirection\\n , f_eyeDirection\\n , f_data\\n , f_position;\\nvarying vec4 f_color;\\nvarying vec2 f_uv;\\n\\nvoid main() {\\n // Scale the vector magnitude to stay constant with\\n // model & view changes.\\n vec3 normal;\\n vec3 XYZ = getConePosition(mat3(model) * ((vectorScale * coneScale) * vector), position.w, coneOffset, normal);\\n vec4 conePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\\n normal = normalize(normal * inverse(mat3(model)));\\n\\n // vec4 m_position = model * vec4(conePosition, 1.0);\\n vec4 t_position = view * conePosition;\\n gl_Position = projection * t_position;\\n f_color = color; //vec4(position.w, color.r, 0, 0);\\n f_normal = normal;\\n f_data = conePosition.xyz;\\n f_position = position.xyz;\\n f_eyeDirection = eyePosition - conePosition.xyz;\\n f_lightDirection = lightPosition - conePosition.xyz;\\n f_uv = uv;\\n}\\n\"]),a=n([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nfloat beckmannDistribution(float x, float roughness) {\\n float NdotH = max(x, 0.0001);\\n float cos2Alpha = NdotH * NdotH;\\n float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\\n float roughness2 = roughness * roughness;\\n float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\\n return exp(tan2Alpha / roughness2) / denom;\\n}\\n\\nfloat cookTorranceSpecular(\\n vec3 lightDirection,\\n vec3 viewDirection,\\n vec3 surfaceNormal,\\n float roughness,\\n float fresnel) {\\n\\n float VdotN = max(dot(viewDirection, surfaceNormal), 0.0);\\n float LdotN = max(dot(lightDirection, surfaceNormal), 0.0);\\n\\n //Half angle vector\\n vec3 H = normalize(lightDirection + viewDirection);\\n\\n //Geometric term\\n float NdotH = max(dot(surfaceNormal, H), 0.0);\\n float VdotH = max(dot(viewDirection, H), 0.000001);\\n float LdotH = max(dot(lightDirection, H), 0.000001);\\n float G1 = (2.0 * NdotH * VdotN) / VdotH;\\n float G2 = (2.0 * NdotH * LdotN) / LdotH;\\n float G = min(1.0, min(G1, G2));\\n \\n //Distribution term\\n float D = beckmannDistribution(NdotH, roughness);\\n\\n //Fresnel term\\n float F = pow(1.0 - VdotN, fresnel);\\n\\n //Multiply terms and done\\n return G * F * D / max(3.14159265 * VdotN, 0.000001);\\n}\\n\\nbool outOfRange(float a, float b, float p) {\\n return ((p > max(a, b)) || \\n (p < min(a, b)));\\n}\\n\\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y));\\n}\\n\\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y) ||\\n outOfRange(a.z, b.z, p.z));\\n}\\n\\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\\n return outOfRange(a.xyz, b.xyz, p.xyz);\\n}\\n\\nuniform vec3 clipBounds[2];\\nuniform float roughness\\n , fresnel\\n , kambient\\n , kdiffuse\\n , kspecular\\n , opacity;\\nuniform sampler2D texture;\\n\\nvarying vec3 f_normal\\n , f_lightDirection\\n , f_eyeDirection\\n , f_data\\n , f_position;\\nvarying vec4 f_color;\\nvarying vec2 f_uv;\\n\\nvoid main() {\\n\\n if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\\n\\n vec3 N = normalize(f_normal);\\n vec3 L = normalize(f_lightDirection);\\n vec3 V = normalize(f_eyeDirection);\\n\\n if(!gl_FrontFacing) {\\n N = -N;\\n }\\n\\n float specular = cookTorranceSpecular(L, V, N, roughness, fresnel);\\n float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\\n\\n vec4 surfaceColor = texture2D(texture, f_uv);\\n vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0);\\n\\n gl_FragColor = litColor * opacity;\\n}\"]),o=n([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nvec3 getOrthogonalVector(vec3 v) {\\n // Return up-vector for only-z vector.\\n // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0).\\n // From the above if-statement we have ||a|| > 0 U ||b|| > 0.\\n // Assign z = 0, x = -b, y = a:\\n // a*-b + b*a + c*0 = -ba + ba + 0 = 0\\n if (v.x*v.x > v.z*v.z || v.y*v.y > v.z*v.z) {\\n return normalize(vec3(-v.y, v.x, 0.0));\\n } else {\\n return normalize(vec3(0.0, v.z, -v.y));\\n }\\n}\\n\\n// Calculate the cone vertex and normal at the given index.\\n//\\n// The returned vertex is for a cone with its top at origin and height of 1.0,\\n// pointing in the direction of the vector attribute.\\n//\\n// Each cone is made up of a top vertex, a center base vertex and base perimeter vertices.\\n// These vertices are used to make up the triangles of the cone by the following:\\n// segment + 0 top vertex\\n// segment + 1 perimeter vertex a+1\\n// segment + 2 perimeter vertex a\\n// segment + 3 center base vertex\\n// segment + 4 perimeter vertex a\\n// segment + 5 perimeter vertex a+1\\n// Where segment is the number of the radial segment * 6 and a is the angle at that radial segment.\\n// To go from index to segment, floor(index / 6)\\n// To go from segment to angle, 2*pi * (segment/segmentCount)\\n// To go from index to segment index, index - (segment*6)\\n//\\nvec3 getConePosition(vec3 d, float index, float coneOffset, out vec3 normal) {\\n\\n const float segmentCount = 8.0;\\n\\n index = mod(index, segmentCount * 6.0);\\n\\n float segment = floor(index/6.0);\\n float segmentIndex = index - (segment*6.0);\\n\\n normal = -normalize(d);\\n\\n if (segmentIndex == 3.0) {\\n return mix(vec3(0.0), -d, coneOffset);\\n }\\n\\n // angle = 2pi * ((segment + ((segmentIndex == 1.0 || segmentIndex == 5.0) ? 1.0 : 0.0)) / segmentCount)\\n float nextAngle = float(segmentIndex == 1.0 || segmentIndex == 5.0);\\n float angle = 2.0 * 3.14159 * ((segment + nextAngle) / segmentCount);\\n\\n vec3 v1 = mix(d, vec3(0.0), coneOffset);\\n vec3 v2 = v1 - d;\\n\\n vec3 u = getOrthogonalVector(d);\\n vec3 v = normalize(cross(u, d));\\n\\n vec3 x = u * cos(angle) * length(d)*0.25;\\n vec3 y = v * sin(angle) * length(d)*0.25;\\n vec3 v3 = v2 + x + y;\\n if (segmentIndex <= 2.0) {\\n vec3 tx = u * sin(angle);\\n vec3 ty = v * -cos(angle);\\n vec3 tangent = tx + ty;\\n normal = normalize(cross(v3 - v1, tangent));\\n }\\n\\n if (segmentIndex == 0.0) {\\n return mix(d, vec3(0.0), coneOffset);\\n }\\n return v3;\\n}\\n\\nattribute vec3 vector;\\nattribute vec4 position;\\nattribute vec4 id;\\n\\nuniform mat4 model, view, projection;\\n\\nuniform float vectorScale;\\nuniform float coneScale;\\nuniform float coneOffset;\\n\\nvarying vec3 f_position;\\nvarying vec4 f_id;\\n\\nvoid main() {\\n vec3 normal;\\n vec3 XYZ = getConePosition(mat3(model) * ((vectorScale * coneScale) * vector), position.w, coneOffset, normal);\\n vec4 conePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\\n gl_Position = projection * view * conePosition;\\n f_id = id;\\n f_position = position.xyz;\\n}\\n\"]),s=n([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nbool outOfRange(float a, float b, float p) {\\n return ((p > max(a, b)) || \\n (p < min(a, b)));\\n}\\n\\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y));\\n}\\n\\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y) ||\\n outOfRange(a.z, b.z, p.z));\\n}\\n\\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\\n return outOfRange(a.xyz, b.xyz, p.xyz);\\n}\\n\\nuniform vec3 clipBounds[2];\\nuniform float pickId;\\n\\nvarying vec3 f_position;\\nvarying vec4 f_id;\\n\\nvoid main() {\\n if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\\n\\n gl_FragColor = vec4(pickId, f_id.xyz);\\n}\"]);r.meshShader={vertex:i,fragment:a,attributes:[{name:\"position\",type:\"vec4\"},{name:\"normal\",type:\"vec3\"},{name:\"color\",type:\"vec4\"},{name:\"uv\",type:\"vec2\"},{name:\"vector\",type:\"vec3\"}]},r.pickShader={vertex:o,fragment:s,attributes:[{name:\"position\",type:\"vec4\"},{name:\"id\",type:\"vec4\"},{name:\"vector\",type:\"vec3\"}]}},{glslify:392}],235:[function(t,e,r){e.exports={0:\"NONE\",1:\"ONE\",2:\"LINE_LOOP\",3:\"LINE_STRIP\",4:\"TRIANGLES\",5:\"TRIANGLE_STRIP\",6:\"TRIANGLE_FAN\",256:\"DEPTH_BUFFER_BIT\",512:\"NEVER\",513:\"LESS\",514:\"EQUAL\",515:\"LEQUAL\",516:\"GREATER\",517:\"NOTEQUAL\",518:\"GEQUAL\",519:\"ALWAYS\",768:\"SRC_COLOR\",769:\"ONE_MINUS_SRC_COLOR\",770:\"SRC_ALPHA\",771:\"ONE_MINUS_SRC_ALPHA\",772:\"DST_ALPHA\",773:\"ONE_MINUS_DST_ALPHA\",774:\"DST_COLOR\",775:\"ONE_MINUS_DST_COLOR\",776:\"SRC_ALPHA_SATURATE\",1024:\"STENCIL_BUFFER_BIT\",1028:\"FRONT\",1029:\"BACK\",1032:\"FRONT_AND_BACK\",1280:\"INVALID_ENUM\",1281:\"INVALID_VALUE\",1282:\"INVALID_OPERATION\",1285:\"OUT_OF_MEMORY\",1286:\"INVALID_FRAMEBUFFER_OPERATION\",2304:\"CW\",2305:\"CCW\",2849:\"LINE_WIDTH\",2884:\"CULL_FACE\",2885:\"CULL_FACE_MODE\",2886:\"FRONT_FACE\",2928:\"DEPTH_RANGE\",2929:\"DEPTH_TEST\",2930:\"DEPTH_WRITEMASK\",2931:\"DEPTH_CLEAR_VALUE\",2932:\"DEPTH_FUNC\",2960:\"STENCIL_TEST\",2961:\"STENCIL_CLEAR_VALUE\",2962:\"STENCIL_FUNC\",2963:\"STENCIL_VALUE_MASK\",2964:\"STENCIL_FAIL\",2965:\"STENCIL_PASS_DEPTH_FAIL\",2966:\"STENCIL_PASS_DEPTH_PASS\",2967:\"STENCIL_REF\",2968:\"STENCIL_WRITEMASK\",2978:\"VIEWPORT\",3024:\"DITHER\",3042:\"BLEND\",3088:\"SCISSOR_BOX\",3089:\"SCISSOR_TEST\",3106:\"COLOR_CLEAR_VALUE\",3107:\"COLOR_WRITEMASK\",3317:\"UNPACK_ALIGNMENT\",3333:\"PACK_ALIGNMENT\",3379:\"MAX_TEXTURE_SIZE\",3386:\"MAX_VIEWPORT_DIMS\",3408:\"SUBPIXEL_BITS\",3410:\"RED_BITS\",3411:\"GREEN_BITS\",3412:\"BLUE_BITS\",3413:\"ALPHA_BITS\",3414:\"DEPTH_BITS\",3415:\"STENCIL_BITS\",3553:\"TEXTURE_2D\",4352:\"DONT_CARE\",4353:\"FASTEST\",4354:\"NICEST\",5120:\"BYTE\",5121:\"UNSIGNED_BYTE\",5122:\"SHORT\",5123:\"UNSIGNED_SHORT\",5124:\"INT\",5125:\"UNSIGNED_INT\",5126:\"FLOAT\",5386:\"INVERT\",5890:\"TEXTURE\",6401:\"STENCIL_INDEX\",6402:\"DEPTH_COMPONENT\",6406:\"ALPHA\",6407:\"RGB\",6408:\"RGBA\",6409:\"LUMINANCE\",6410:\"LUMINANCE_ALPHA\",7680:\"KEEP\",7681:\"REPLACE\",7682:\"INCR\",7683:\"DECR\",7936:\"VENDOR\",7937:\"RENDERER\",7938:\"VERSION\",9728:\"NEAREST\",9729:\"LINEAR\",9984:\"NEAREST_MIPMAP_NEAREST\",9985:\"LINEAR_MIPMAP_NEAREST\",9986:\"NEAREST_MIPMAP_LINEAR\",9987:\"LINEAR_MIPMAP_LINEAR\",10240:\"TEXTURE_MAG_FILTER\",10241:\"TEXTURE_MIN_FILTER\",10242:\"TEXTURE_WRAP_S\",10243:\"TEXTURE_WRAP_T\",10497:\"REPEAT\",10752:\"POLYGON_OFFSET_UNITS\",16384:\"COLOR_BUFFER_BIT\",32769:\"CONSTANT_COLOR\",32770:\"ONE_MINUS_CONSTANT_COLOR\",32771:\"CONSTANT_ALPHA\",32772:\"ONE_MINUS_CONSTANT_ALPHA\",32773:\"BLEND_COLOR\",32774:\"FUNC_ADD\",32777:\"BLEND_EQUATION_RGB\",32778:\"FUNC_SUBTRACT\",32779:\"FUNC_REVERSE_SUBTRACT\",32819:\"UNSIGNED_SHORT_4_4_4_4\",32820:\"UNSIGNED_SHORT_5_5_5_1\",32823:\"POLYGON_OFFSET_FILL\",32824:\"POLYGON_OFFSET_FACTOR\",32854:\"RGBA4\",32855:\"RGB5_A1\",32873:\"TEXTURE_BINDING_2D\",32926:\"SAMPLE_ALPHA_TO_COVERAGE\",32928:\"SAMPLE_COVERAGE\",32936:\"SAMPLE_BUFFERS\",32937:\"SAMPLES\",32938:\"SAMPLE_COVERAGE_VALUE\",32939:\"SAMPLE_COVERAGE_INVERT\",32968:\"BLEND_DST_RGB\",32969:\"BLEND_SRC_RGB\",32970:\"BLEND_DST_ALPHA\",32971:\"BLEND_SRC_ALPHA\",33071:\"CLAMP_TO_EDGE\",33170:\"GENERATE_MIPMAP_HINT\",33189:\"DEPTH_COMPONENT16\",33306:\"DEPTH_STENCIL_ATTACHMENT\",33635:\"UNSIGNED_SHORT_5_6_5\",33648:\"MIRRORED_REPEAT\",33901:\"ALIASED_POINT_SIZE_RANGE\",33902:\"ALIASED_LINE_WIDTH_RANGE\",33984:\"TEXTURE0\",33985:\"TEXTURE1\",33986:\"TEXTURE2\",33987:\"TEXTURE3\",33988:\"TEXTURE4\",33989:\"TEXTURE5\",33990:\"TEXTURE6\",33991:\"TEXTURE7\",33992:\"TEXTURE8\",33993:\"TEXTURE9\",33994:\"TEXTURE10\",33995:\"TEXTURE11\",33996:\"TEXTURE12\",33997:\"TEXTURE13\",33998:\"TEXTURE14\",33999:\"TEXTURE15\",34000:\"TEXTURE16\",34001:\"TEXTURE17\",34002:\"TEXTURE18\",34003:\"TEXTURE19\",34004:\"TEXTURE20\",34005:\"TEXTURE21\",34006:\"TEXTURE22\",34007:\"TEXTURE23\",34008:\"TEXTURE24\",34009:\"TEXTURE25\",34010:\"TEXTURE26\",34011:\"TEXTURE27\",34012:\"TEXTURE28\",34013:\"TEXTURE29\",34014:\"TEXTURE30\",34015:\"TEXTURE31\",34016:\"ACTIVE_TEXTURE\",34024:\"MAX_RENDERBUFFER_SIZE\",34041:\"DEPTH_STENCIL\",34055:\"INCR_WRAP\",34056:\"DECR_WRAP\",34067:\"TEXTURE_CUBE_MAP\",34068:\"TEXTURE_BINDING_CUBE_MAP\",34069:\"TEXTURE_CUBE_MAP_POSITIVE_X\",34070:\"TEXTURE_CUBE_MAP_NEGATIVE_X\",34071:\"TEXTURE_CUBE_MAP_POSITIVE_Y\",34072:\"TEXTURE_CUBE_MAP_NEGATIVE_Y\",34073:\"TEXTURE_CUBE_MAP_POSITIVE_Z\",34074:\"TEXTURE_CUBE_MAP_NEGATIVE_Z\",34076:\"MAX_CUBE_MAP_TEXTURE_SIZE\",34338:\"VERTEX_ATTRIB_ARRAY_ENABLED\",34339:\"VERTEX_ATTRIB_ARRAY_SIZE\",34340:\"VERTEX_ATTRIB_ARRAY_STRIDE\",34341:\"VERTEX_ATTRIB_ARRAY_TYPE\",34342:\"CURRENT_VERTEX_ATTRIB\",34373:\"VERTEX_ATTRIB_ARRAY_POINTER\",34466:\"NUM_COMPRESSED_TEXTURE_FORMATS\",34467:\"COMPRESSED_TEXTURE_FORMATS\",34660:\"BUFFER_SIZE\",34661:\"BUFFER_USAGE\",34816:\"STENCIL_BACK_FUNC\",34817:\"STENCIL_BACK_FAIL\",34818:\"STENCIL_BACK_PASS_DEPTH_FAIL\",34819:\"STENCIL_BACK_PASS_DEPTH_PASS\",34877:\"BLEND_EQUATION_ALPHA\",34921:\"MAX_VERTEX_ATTRIBS\",34922:\"VERTEX_ATTRIB_ARRAY_NORMALIZED\",34930:\"MAX_TEXTURE_IMAGE_UNITS\",34962:\"ARRAY_BUFFER\",34963:\"ELEMENT_ARRAY_BUFFER\",34964:\"ARRAY_BUFFER_BINDING\",34965:\"ELEMENT_ARRAY_BUFFER_BINDING\",34975:\"VERTEX_ATTRIB_ARRAY_BUFFER_BINDING\",35040:\"STREAM_DRAW\",35044:\"STATIC_DRAW\",35048:\"DYNAMIC_DRAW\",35632:\"FRAGMENT_SHADER\",35633:\"VERTEX_SHADER\",35660:\"MAX_VERTEX_TEXTURE_IMAGE_UNITS\",35661:\"MAX_COMBINED_TEXTURE_IMAGE_UNITS\",35663:\"SHADER_TYPE\",35664:\"FLOAT_VEC2\",35665:\"FLOAT_VEC3\",35666:\"FLOAT_VEC4\",35667:\"INT_VEC2\",35668:\"INT_VEC3\",35669:\"INT_VEC4\",35670:\"BOOL\",35671:\"BOOL_VEC2\",35672:\"BOOL_VEC3\",35673:\"BOOL_VEC4\",35674:\"FLOAT_MAT2\",35675:\"FLOAT_MAT3\",35676:\"FLOAT_MAT4\",35678:\"SAMPLER_2D\",35680:\"SAMPLER_CUBE\",35712:\"DELETE_STATUS\",35713:\"COMPILE_STATUS\",35714:\"LINK_STATUS\",35715:\"VALIDATE_STATUS\",35716:\"INFO_LOG_LENGTH\",35717:\"ATTACHED_SHADERS\",35718:\"ACTIVE_UNIFORMS\",35719:\"ACTIVE_UNIFORM_MAX_LENGTH\",35720:\"SHADER_SOURCE_LENGTH\",35721:\"ACTIVE_ATTRIBUTES\",35722:\"ACTIVE_ATTRIBUTE_MAX_LENGTH\",35724:\"SHADING_LANGUAGE_VERSION\",35725:\"CURRENT_PROGRAM\",36003:\"STENCIL_BACK_REF\",36004:\"STENCIL_BACK_VALUE_MASK\",36005:\"STENCIL_BACK_WRITEMASK\",36006:\"FRAMEBUFFER_BINDING\",36007:\"RENDERBUFFER_BINDING\",36048:\"FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE\",36049:\"FRAMEBUFFER_ATTACHMENT_OBJECT_NAME\",36050:\"FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL\",36051:\"FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE\",36053:\"FRAMEBUFFER_COMPLETE\",36054:\"FRAMEBUFFER_INCOMPLETE_ATTACHMENT\",36055:\"FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT\",36057:\"FRAMEBUFFER_INCOMPLETE_DIMENSIONS\",36061:\"FRAMEBUFFER_UNSUPPORTED\",36064:\"COLOR_ATTACHMENT0\",36096:\"DEPTH_ATTACHMENT\",36128:\"STENCIL_ATTACHMENT\",36160:\"FRAMEBUFFER\",36161:\"RENDERBUFFER\",36162:\"RENDERBUFFER_WIDTH\",36163:\"RENDERBUFFER_HEIGHT\",36164:\"RENDERBUFFER_INTERNAL_FORMAT\",36168:\"STENCIL_INDEX8\",36176:\"RENDERBUFFER_RED_SIZE\",36177:\"RENDERBUFFER_GREEN_SIZE\",36178:\"RENDERBUFFER_BLUE_SIZE\",36179:\"RENDERBUFFER_ALPHA_SIZE\",36180:\"RENDERBUFFER_DEPTH_SIZE\",36181:\"RENDERBUFFER_STENCIL_SIZE\",36194:\"RGB565\",36336:\"LOW_FLOAT\",36337:\"MEDIUM_FLOAT\",36338:\"HIGH_FLOAT\",36339:\"LOW_INT\",36340:\"MEDIUM_INT\",36341:\"HIGH_INT\",36346:\"SHADER_COMPILER\",36347:\"MAX_VERTEX_UNIFORM_VECTORS\",36348:\"MAX_VARYING_VECTORS\",36349:\"MAX_FRAGMENT_UNIFORM_VECTORS\",37440:\"UNPACK_FLIP_Y_WEBGL\",37441:\"UNPACK_PREMULTIPLY_ALPHA_WEBGL\",37442:\"CONTEXT_LOST_WEBGL\",37443:\"UNPACK_COLORSPACE_CONVERSION_WEBGL\",37444:\"BROWSER_DEFAULT_WEBGL\"}},{}],236:[function(t,e,r){var n=t(\"./1.0/numbers\");e.exports=function(t){return n[t]}},{\"./1.0/numbers\":235}],237:[function(t,e,r){\"use strict\";e.exports=function(t){var e=t.gl,r=n(e),o=i(e,[{buffer:r,type:e.FLOAT,size:3,offset:0,stride:40},{buffer:r,type:e.FLOAT,size:4,offset:12,stride:40},{buffer:r,type:e.FLOAT,size:3,offset:28,stride:40}]),l=a(e);l.attributes.position.location=0,l.attributes.color.location=1,l.attributes.offset.location=2;var c=new s(e,r,o,l);return c.update(t),c};var n=t(\"gl-buffer\"),i=t(\"gl-vao\"),a=t(\"./shaders/index\"),o=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function s(t,e,r,n){this.gl=t,this.shader=n,this.buffer=e,this.vao=r,this.pixelRatio=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lineWidth=[1,1,1],this.capSize=[10,10,10],this.lineCount=[0,0,0],this.lineOffset=[0,0,0],this.opacity=1}var l=s.prototype;function c(t,e){for(var r=0;r<3;++r)t[0][r]=Math.min(t[0][r],e[r]),t[1][r]=Math.max(t[1][r],e[r])}l.isOpaque=function(){return this.opacity>=1},l.isTransparent=function(){return this.opacity<1},l.drawTransparent=l.draw=function(t){var e=this.gl,r=this.shader.uniforms;this.shader.bind();var n=r.view=t.view||o,i=r.projection=t.projection||o;r.model=t.model||o,r.clipBounds=this.clipBounds,r.opacity=this.opacity;var a=n[12],s=n[13],l=n[14],c=n[15],u=this.pixelRatio*(i[3]*a+i[7]*s+i[11]*l+i[15]*c)/e.drawingBufferHeight;this.vao.bind();for(var f=0;f<3;++f)e.lineWidth(this.lineWidth[f]),r.capSize=this.capSize[f]*u,this.lineCount[f]&&e.drawArrays(e.LINES,this.lineOffset[f],this.lineCount[f]);this.vao.unbind()};var u=function(){for(var t=new Array(3),e=0;e<3;++e){for(var r=[],n=1;n<=2;++n)for(var i=-1;i<=1;i+=2){var a=[0,0,0];a[(n+e)%3]=i,r.push(a)}t[e]=r}return t}();function f(t,e,r,n){for(var i=u[n],a=0;a<i.length;++a){var o=i[a];t.push(e[0],e[1],e[2],r[0],r[1],r[2],r[3],o[0],o[1],o[2])}return i.length}l.update=function(t){\"lineWidth\"in(t=t||{})&&(this.lineWidth=t.lineWidth,Array.isArray(this.lineWidth)||(this.lineWidth=[this.lineWidth,this.lineWidth,this.lineWidth])),\"capSize\"in t&&(this.capSize=t.capSize,Array.isArray(this.capSize)||(this.capSize=[this.capSize,this.capSize,this.capSize])),\"opacity\"in t&&(this.opacity=t.opacity);var e=t.color||[[0,0,0],[0,0,0],[0,0,0]],r=t.position,n=t.error;if(Array.isArray(e[0])||(e=[e,e,e]),r&&n){var i=[],a=r.length,o=0;this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.lineCount=[0,0,0];for(var s=0;s<3;++s){this.lineOffset[s]=o;t:for(var l=0;l<a;++l){for(var u=r[l],h=0;h<3;++h)if(isNaN(u[h])||!isFinite(u[h]))continue t;var p=n[l],d=e[s];if(Array.isArray(d[0])&&(d=e[l]),3===d.length&&(d=[d[0],d[1],d[2],1]),!isNaN(p[0][s])&&!isNaN(p[1][s])){var g;if(p[0][s]<0)(g=u.slice())[s]+=p[0][s],i.push(u[0],u[1],u[2],d[0],d[1],d[2],d[3],0,0,0,g[0],g[1],g[2],d[0],d[1],d[2],d[3],0,0,0),c(this.bounds,g),o+=2+f(i,g,d,s);if(p[1][s]>0)(g=u.slice())[s]+=p[1][s],i.push(u[0],u[1],u[2],d[0],d[1],d[2],d[3],0,0,0,g[0],g[1],g[2],d[0],d[1],d[2],d[3],0,0,0),c(this.bounds,g),o+=2+f(i,g,d,s)}}this.lineCount[s]=o-this.lineOffset[s]}this.buffer.update(i)}},l.dispose=function(){this.shader.dispose(),this.buffer.dispose(),this.vao.dispose()}},{\"./shaders/index\":238,\"gl-buffer\":230,\"gl-vao\":310}],238:[function(t,e,r){\"use strict\";var n=t(\"glslify\"),i=t(\"gl-shader\"),a=n([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute vec3 position, offset;\\nattribute vec4 color;\\nuniform mat4 model, view, projection;\\nuniform float capSize;\\nvarying vec4 fragColor;\\nvarying vec3 fragPosition;\\n\\nvoid main() {\\n vec4 worldPosition = model * vec4(position, 1.0);\\n worldPosition = (worldPosition / worldPosition.w) + vec4(capSize * offset, 0.0);\\n gl_Position = projection * view * worldPosition;\\n fragColor = color;\\n fragPosition = position;\\n}\"]),o=n([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nbool outOfRange(float a, float b, float p) {\\n return ((p > max(a, b)) || \\n (p < min(a, b)));\\n}\\n\\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y));\\n}\\n\\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y) ||\\n outOfRange(a.z, b.z, p.z));\\n}\\n\\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\\n return outOfRange(a.xyz, b.xyz, p.xyz);\\n}\\n\\nuniform vec3 clipBounds[2];\\nuniform float opacity;\\nvarying vec3 fragPosition;\\nvarying vec4 fragColor;\\n\\nvoid main() {\\n if (outOfRange(clipBounds[0], clipBounds[1], fragPosition)) discard;\\n\\n gl_FragColor = opacity * fragColor;\\n}\"]);e.exports=function(t){return i(t,a,o,null,[{name:\"position\",type:\"vec3\"},{name:\"color\",type:\"vec4\"},{name:\"offset\",type:\"vec3\"}])}},{\"gl-shader\":288,glslify:392}],239:[function(t,e,r){\"use strict\";var n=t(\"gl-texture2d\");e.exports=function(t,e,r,n){i||(i=t.FRAMEBUFFER_UNSUPPORTED,a=t.FRAMEBUFFER_INCOMPLETE_ATTACHMENT,o=t.FRAMEBUFFER_INCOMPLETE_DIMENSIONS,s=t.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT);var c=t.getExtension(\"WEBGL_draw_buffers\");!l&&c&&function(t,e){var r=t.getParameter(e.MAX_COLOR_ATTACHMENTS_WEBGL);l=new Array(r+1);for(var n=0;n<=r;++n){for(var i=new Array(r),a=0;a<n;++a)i[a]=t.COLOR_ATTACHMENT0+a;for(var a=n;a<r;++a)i[a]=t.NONE;l[n]=i}}(t,c);Array.isArray(e)&&(n=r,r=0|e[1],e=0|e[0]);if(\"number\"!=typeof e)throw new Error(\"gl-fbo: Missing shape parameter\");var u=t.getParameter(t.MAX_RENDERBUFFER_SIZE);if(e<0||e>u||r<0||r>u)throw new Error(\"gl-fbo: Parameters are too large for FBO\");var f=1;if(\"color\"in(n=n||{})){if((f=Math.max(0|n.color,0))<0)throw new Error(\"gl-fbo: Must specify a nonnegative number of colors\");if(f>1){if(!c)throw new Error(\"gl-fbo: Multiple draw buffer extension not supported\");if(f>t.getParameter(c.MAX_COLOR_ATTACHMENTS_WEBGL))throw new Error(\"gl-fbo: Context does not support \"+f+\" draw buffers\")}}var h=t.UNSIGNED_BYTE,p=t.getExtension(\"OES_texture_float\");if(n.float&&f>0){if(!p)throw new Error(\"gl-fbo: Context does not support floating point textures\");h=t.FLOAT}else n.preferFloat&&f>0&&p&&(h=t.FLOAT);var g=!0;\"depth\"in n&&(g=!!n.depth);var v=!1;\"stencil\"in n&&(v=!!n.stencil);return new d(t,e,r,h,f,g,v,c)};var i,a,o,s,l=null;function c(t){return[t.getParameter(t.FRAMEBUFFER_BINDING),t.getParameter(t.RENDERBUFFER_BINDING),t.getParameter(t.TEXTURE_BINDING_2D)]}function u(t,e){t.bindFramebuffer(t.FRAMEBUFFER,e[0]),t.bindRenderbuffer(t.RENDERBUFFER,e[1]),t.bindTexture(t.TEXTURE_2D,e[2])}function f(t){switch(t){case i:throw new Error(\"gl-fbo: Framebuffer unsupported\");case a:throw new Error(\"gl-fbo: Framebuffer incomplete attachment\");case o:throw new Error(\"gl-fbo: Framebuffer incomplete dimensions\");case s:throw new Error(\"gl-fbo: Framebuffer incomplete missing attachment\");default:throw new Error(\"gl-fbo: Framebuffer failed for unspecified reason\")}}function h(t,e,r,i,a,o){if(!i)return null;var s=n(t,e,r,a,i);return s.magFilter=t.NEAREST,s.minFilter=t.NEAREST,s.mipSamples=1,s.bind(),t.framebufferTexture2D(t.FRAMEBUFFER,o,t.TEXTURE_2D,s.handle,0),s}function p(t,e,r,n,i){var a=t.createRenderbuffer();return t.bindRenderbuffer(t.RENDERBUFFER,a),t.renderbufferStorage(t.RENDERBUFFER,n,e,r),t.framebufferRenderbuffer(t.FRAMEBUFFER,i,t.RENDERBUFFER,a),a}function d(t,e,r,n,i,a,o,s){this.gl=t,this._shape=[0|e,0|r],this._destroyed=!1,this._ext=s,this.color=new Array(i);for(var d=0;d<i;++d)this.color[d]=null;this._color_rb=null,this.depth=null,this._depth_rb=null,this._colorType=n,this._useDepth=a,this._useStencil=o;var g=this,v=[0|e,0|r];Object.defineProperties(v,{0:{get:function(){return g._shape[0]},set:function(t){return g.width=t}},1:{get:function(){return g._shape[1]},set:function(t){return g.height=t}}}),this._shapeVector=v,function(t){var e=c(t.gl),r=t.gl,n=t.handle=r.createFramebuffer(),i=t._shape[0],a=t._shape[1],o=t.color.length,s=t._ext,d=t._useStencil,g=t._useDepth,v=t._colorType;r.bindFramebuffer(r.FRAMEBUFFER,n);for(var m=0;m<o;++m)t.color[m]=h(r,i,a,v,r.RGBA,r.COLOR_ATTACHMENT0+m);0===o?(t._color_rb=p(r,i,a,r.RGBA4,r.COLOR_ATTACHMENT0),s&&s.drawBuffersWEBGL(l[0])):o>1&&s.drawBuffersWEBGL(l[o]);var y=r.getExtension(\"WEBGL_depth_texture\");y?d?t.depth=h(r,i,a,y.UNSIGNED_INT_24_8_WEBGL,r.DEPTH_STENCIL,r.DEPTH_STENCIL_ATTACHMENT):g&&(t.depth=h(r,i,a,r.UNSIGNED_SHORT,r.DEPTH_COMPONENT,r.DEPTH_ATTACHMENT)):g&&d?t._depth_rb=p(r,i,a,r.DEPTH_STENCIL,r.DEPTH_STENCIL_ATTACHMENT):g?t._depth_rb=p(r,i,a,r.DEPTH_COMPONENT16,r.DEPTH_ATTACHMENT):d&&(t._depth_rb=p(r,i,a,r.STENCIL_INDEX,r.STENCIL_ATTACHMENT));var x=r.checkFramebufferStatus(r.FRAMEBUFFER);if(x!==r.FRAMEBUFFER_COMPLETE){for(t._destroyed=!0,r.bindFramebuffer(r.FRAMEBUFFER,null),r.deleteFramebuffer(t.handle),t.handle=null,t.depth&&(t.depth.dispose(),t.depth=null),t._depth_rb&&(r.deleteRenderbuffer(t._depth_rb),t._depth_rb=null),m=0;m<t.color.length;++m)t.color[m].dispose(),t.color[m]=null;t._color_rb&&(r.deleteRenderbuffer(t._color_rb),t._color_rb=null),u(r,e),f(x)}u(r,e)}(this)}var g=d.prototype;function v(t,e,r){if(t._destroyed)throw new Error(\"gl-fbo: Can't resize destroyed FBO\");if(t._shape[0]!==e||t._shape[1]!==r){var n=t.gl,i=n.getParameter(n.MAX_RENDERBUFFER_SIZE);if(e<0||e>i||r<0||r>i)throw new Error(\"gl-fbo: Can't resize FBO, invalid dimensions\");t._shape[0]=e,t._shape[1]=r;for(var a=c(n),o=0;o<t.color.length;++o)t.color[o].shape=t._shape;t._color_rb&&(n.bindRenderbuffer(n.RENDERBUFFER,t._color_rb),n.renderbufferStorage(n.RENDERBUFFER,n.RGBA4,t._shape[0],t._shape[1])),t.depth&&(t.depth.shape=t._shape),t._depth_rb&&(n.bindRenderbuffer(n.RENDERBUFFER,t._depth_rb),t._useDepth&&t._useStencil?n.renderbufferStorage(n.RENDERBUFFER,n.DEPTH_STENCIL,t._shape[0],t._shape[1]):t._useDepth?n.renderbufferStorage(n.RENDERBUFFER,n.DEPTH_COMPONENT16,t._shape[0],t._shape[1]):t._useStencil&&n.renderbufferStorage(n.RENDERBUFFER,n.STENCIL_INDEX,t._shape[0],t._shape[1])),n.bindFramebuffer(n.FRAMEBUFFER,t.handle);var s=n.checkFramebufferStatus(n.FRAMEBUFFER);s!==n.FRAMEBUFFER_COMPLETE&&(t.dispose(),u(n,a),f(s)),u(n,a)}}Object.defineProperties(g,{shape:{get:function(){return this._destroyed?[0,0]:this._shapeVector},set:function(t){if(Array.isArray(t)||(t=[0|t,0|t]),2!==t.length)throw new Error(\"gl-fbo: Shape vector must be length 2\");var e=0|t[0],r=0|t[1];return v(this,e,r),[e,r]},enumerable:!1},width:{get:function(){return this._destroyed?0:this._shape[0]},set:function(t){return v(this,t|=0,this._shape[1]),t},enumerable:!1},height:{get:function(){return this._destroyed?0:this._shape[1]},set:function(t){return t|=0,v(this,this._shape[0],t),t},enumerable:!1}}),g.bind=function(){if(!this._destroyed){var t=this.gl;t.bindFramebuffer(t.FRAMEBUFFER,this.handle),t.viewport(0,0,this._shape[0],this._shape[1])}},g.dispose=function(){if(!this._destroyed){this._destroyed=!0;var t=this.gl;t.deleteFramebuffer(this.handle),this.handle=null,this.depth&&(this.depth.dispose(),this.depth=null),this._depth_rb&&(t.deleteRenderbuffer(this._depth_rb),this._depth_rb=null);for(var e=0;e<this.color.length;++e)this.color[e].dispose(),this.color[e]=null;this._color_rb&&(t.deleteRenderbuffer(this._color_rb),this._color_rb=null)}}},{\"gl-texture2d\":305}],240:[function(t,e,r){var n=t(\"sprintf-js\").sprintf,i=t(\"gl-constants/lookup\"),a=t(\"glsl-shader-name\"),o=t(\"add-line-numbers\");e.exports=function(t,e,r){\"use strict\";var s=a(e)||\"of unknown name (see npm glsl-shader-name)\",l=\"unknown type\";void 0!==r&&(l=r===i.FRAGMENT_SHADER?\"fragment\":\"vertex\");for(var c=n(\"Error compiling %s shader %s:\\n\",l,s),u=n(\"%s%s\",c,t),f=t.split(\"\\n\"),h={},p=0;p<f.length;p++){var d=f[p];if(\"\"!==d&&\"\\0\"!==d){var g=parseInt(d.split(\":\")[2]);if(isNaN(g))throw new Error(n(\"Could not parse error: %s\",d));h[g]=d}}for(var v=o(e).split(\"\\n\"),p=0;p<v.length;p++)if(h[p+3]||h[p+2]||h[p+1]){var m=v[p];if(c+=m+\"\\n\",h[p+1]){var y=h[p+1];y=y.substr(y.split(\":\",3).join(\":\").length+1).trim(),c+=n(\"^^^ %s\\n\\n\",y)}}return{long:c.trim(),short:u.trim()}}},{\"add-line-numbers\":49,\"gl-constants/lookup\":236,\"glsl-shader-name\":384,\"sprintf-js\":504}],241:[function(t,e,r){\"use strict\";e.exports=function(t,e){var r=t.gl,n=o(r,l.vertex,l.fragment),i=o(r,l.pickVertex,l.pickFragment),a=s(r),u=s(r),f=s(r),h=s(r),p=new c(t,n,i,a,u,f,h);return p.update(e),t.addObject(p),p};var n=t(\"binary-search-bounds\"),i=t(\"iota-array\"),a=t(\"typedarray-pool\"),o=t(\"gl-shader\"),s=t(\"gl-buffer\"),l=t(\"./lib/shaders\");function c(t,e,r,n,i,a,o){this.plot=t,this.shader=e,this.pickShader=r,this.positionBuffer=n,this.weightBuffer=i,this.colorBuffer=a,this.idBuffer=o,this.xData=[],this.yData=[],this.shape=[0,0],this.bounds=[1/0,1/0,-1/0,-1/0],this.pickOffset=0}var u,f=c.prototype,h=[0,0,1,0,0,1,1,0,1,1,0,1];f.draw=(u=[1,0,0,0,1,0,0,0,1],function(){var t=this.plot,e=this.shader,r=this.bounds,n=this.numVertices;if(!(n<=0)){var i=t.gl,a=t.dataBox,o=r[2]-r[0],s=r[3]-r[1],l=a[2]-a[0],c=a[3]-a[1];u[0]=2*o/l,u[4]=2*s/c,u[6]=2*(r[0]-a[0])/l-1,u[7]=2*(r[1]-a[1])/c-1,e.bind();var f=e.uniforms;f.viewTransform=u,f.shape=this.shape;var h=e.attributes;this.positionBuffer.bind(),h.position.pointer(),this.weightBuffer.bind(),h.weight.pointer(i.UNSIGNED_BYTE,!1),this.colorBuffer.bind(),h.color.pointer(i.UNSIGNED_BYTE,!0),i.drawArrays(i.TRIANGLES,0,n)}}),f.drawPick=function(){var t=[1,0,0,0,1,0,0,0,1],e=[0,0,0,0];return function(r){var n=this.plot,i=this.pickShader,a=this.bounds,o=this.numVertices;if(!(o<=0)){var s=n.gl,l=n.dataBox,c=a[2]-a[0],u=a[3]-a[1],f=l[2]-l[0],h=l[3]-l[1];t[0]=2*c/f,t[4]=2*u/h,t[6]=2*(a[0]-l[0])/f-1,t[7]=2*(a[1]-l[1])/h-1;for(var p=0;p<4;++p)e[p]=r>>8*p&255;this.pickOffset=r,i.bind();var d=i.uniforms;d.viewTransform=t,d.pickOffset=e,d.shape=this.shape;var g=i.attributes;return this.positionBuffer.bind(),g.position.pointer(),this.weightBuffer.bind(),g.weight.pointer(s.UNSIGNED_BYTE,!1),this.idBuffer.bind(),g.pickId.pointer(s.UNSIGNED_BYTE,!1),s.drawArrays(s.TRIANGLES,0,o),r+this.shape[0]*this.shape[1]}}}(),f.pick=function(t,e,r){var n=this.pickOffset,i=this.shape[0]*this.shape[1];if(r<n||r>=n+i)return null;var a=r-n,o=this.xData,s=this.yData;return{object:this,pointId:a,dataCoord:[o[a%this.shape[0]],s[a/this.shape[0]|0]]}},f.update=function(t){var e=(t=t||{}).shape||[0,0],r=t.x||i(e[0]),o=t.y||i(e[1]),s=t.z||new Float32Array(e[0]*e[1]);this.xData=r,this.yData=o;var l=t.colorLevels||[0],c=t.colorValues||[0,0,0,1],u=l.length,f=this.bounds,p=f[0]=r[0],d=f[1]=o[0],g=1/((f[2]=r[r.length-1])-p),v=1/((f[3]=o[o.length-1])-d),m=e[0],y=e[1];this.shape=[m,y];var x=(m-1)*(y-1)*(h.length>>>1);this.numVertices=x;for(var b=a.mallocUint8(4*x),_=a.mallocFloat32(2*x),w=a.mallocUint8(2*x),k=a.mallocUint32(x),M=0,A=0;A<y-1;++A)for(var T=v*(o[A]-d),S=v*(o[A+1]-d),E=0;E<m-1;++E)for(var C=g*(r[E]-p),L=g*(r[E+1]-p),z=0;z<h.length;z+=2){var O,I,P,D,R=h[z],B=h[z+1],F=s[(A+B)*m+(E+R)],N=n.le(l,F);if(N<0)O=c[0],I=c[1],P=c[2],D=c[3];else if(N===u-1)O=c[4*u-4],I=c[4*u-3],P=c[4*u-2],D=c[4*u-1];else{var j=(F-l[N])/(l[N+1]-l[N]),V=1-j,U=4*N,q=4*(N+1);O=V*c[U]+j*c[q],I=V*c[U+1]+j*c[q+1],P=V*c[U+2]+j*c[q+2],D=V*c[U+3]+j*c[q+3]}b[4*M]=255*O,b[4*M+1]=255*I,b[4*M+2]=255*P,b[4*M+3]=255*D,_[2*M]=.5*C+.5*L,_[2*M+1]=.5*T+.5*S,w[2*M]=R,w[2*M+1]=B,k[M]=A*m+E,M+=1}this.positionBuffer.update(_),this.weightBuffer.update(w),this.colorBuffer.update(b),this.idBuffer.update(k),a.free(_),a.free(b),a.free(w),a.free(k)},f.dispose=function(){this.shader.dispose(),this.pickShader.dispose(),this.positionBuffer.dispose(),this.weightBuffer.dispose(),this.colorBuffer.dispose(),this.idBuffer.dispose(),this.plot.removeObject(this)}},{\"./lib/shaders\":242,\"binary-search-bounds\":243,\"gl-buffer\":230,\"gl-shader\":288,\"iota-array\":399,\"typedarray-pool\":522}],242:[function(t,e,r){\"use strict\";var n=t(\"glslify\");e.exports={fragment:n([\"precision lowp float;\\n#define GLSLIFY 1\\nvarying vec4 fragColor;\\nvoid main() {\\n gl_FragColor = vec4(fragColor.rgb * fragColor.a, fragColor.a);\\n}\\n\"]),vertex:n([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute vec2 position;\\nattribute vec4 color;\\nattribute vec2 weight;\\n\\nuniform vec2 shape;\\nuniform mat3 viewTransform;\\n\\nvarying vec4 fragColor;\\n\\nvoid main() {\\n vec3 vPosition = viewTransform * vec3( position + (weight-.5)/(shape-1.) , 1.0);\\n fragColor = color;\\n gl_Position = vec4(vPosition.xy, 0, vPosition.z);\\n}\\n\"]),pickFragment:n([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nvarying vec4 fragId;\\nvarying vec2 vWeight;\\n\\nuniform vec2 shape;\\nuniform vec4 pickOffset;\\n\\nvoid main() {\\n vec2 d = step(.5, vWeight);\\n vec4 id = fragId + pickOffset;\\n id.x += d.x + d.y*shape.x;\\n\\n id.y += floor(id.x / 256.0);\\n id.x -= floor(id.x / 256.0) * 256.0;\\n\\n id.z += floor(id.y / 256.0);\\n id.y -= floor(id.y / 256.0) * 256.0;\\n\\n id.w += floor(id.z / 256.0);\\n id.z -= floor(id.z / 256.0) * 256.0;\\n\\n gl_FragColor = id/255.;\\n}\\n\"]),pickVertex:n([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute vec2 position;\\nattribute vec4 pickId;\\nattribute vec2 weight;\\n\\nuniform vec2 shape;\\nuniform mat3 viewTransform;\\n\\nvarying vec4 fragId;\\nvarying vec2 vWeight;\\n\\nvoid main() {\\n vWeight = weight;\\n\\n fragId = pickId;\\n\\n vec3 vPosition = viewTransform * vec3( position + (weight-.5)/(shape-1.) , 1.0);\\n gl_Position = vec4(vPosition.xy, 0, vPosition.z);\\n}\\n\"])}},{glslify:392}],243:[function(t,e,r){arguments[4][99][0].apply(r,arguments)},{dup:99}],244:[function(t,e,r){var n=t(\"glslify\"),i=t(\"gl-shader\"),a=n([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute vec3 position, nextPosition;\\nattribute float arcLength, lineWidth;\\nattribute vec4 color;\\n\\nuniform vec2 screenShape;\\nuniform float pixelRatio;\\nuniform mat4 model, view, projection;\\n\\nvarying vec4 fragColor;\\nvarying vec3 worldPosition;\\nvarying float pixelArcLength;\\n\\nvec4 project(vec3 p) {\\n return projection * view * model * vec4(p, 1.0);\\n}\\n\\nvoid main() {\\n vec4 startPoint = project(position);\\n vec4 endPoint = project(nextPosition);\\n\\n vec2 A = startPoint.xy / startPoint.w;\\n vec2 B = endPoint.xy / endPoint.w;\\n\\n float clipAngle = atan(\\n (B.y - A.y) * screenShape.y,\\n (B.x - A.x) * screenShape.x\\n );\\n\\n vec2 offset = 0.5 * pixelRatio * lineWidth * vec2(\\n sin(clipAngle),\\n -cos(clipAngle)\\n ) / screenShape;\\n\\n gl_Position = vec4(startPoint.xy + startPoint.w * offset, startPoint.zw);\\n\\n worldPosition = position;\\n pixelArcLength = arcLength;\\n fragColor = color;\\n}\\n\"]),o=n([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nbool outOfRange(float a, float b, float p) {\\n return ((p > max(a, b)) || \\n (p < min(a, b)));\\n}\\n\\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y));\\n}\\n\\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y) ||\\n outOfRange(a.z, b.z, p.z));\\n}\\n\\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\\n return outOfRange(a.xyz, b.xyz, p.xyz);\\n}\\n\\nuniform vec3 clipBounds[2];\\nuniform sampler2D dashTexture;\\nuniform float dashScale;\\nuniform float opacity;\\n\\nvarying vec3 worldPosition;\\nvarying float pixelArcLength;\\nvarying vec4 fragColor;\\n\\nvoid main() {\\n if (outOfRange(clipBounds[0], clipBounds[1], worldPosition)) discard;\\n\\n float dashWeight = texture2D(dashTexture, vec2(dashScale * pixelArcLength, 0)).r;\\n if(dashWeight < 0.5) {\\n discard;\\n }\\n gl_FragColor = fragColor * opacity;\\n}\\n\"]),s=n([\"precision mediump float;\\n#define GLSLIFY 1\\n\\n#define FLOAT_MAX 1.70141184e38\\n#define FLOAT_MIN 1.17549435e-38\\n\\nlowp vec4 encode_float_1540259130(highp float v) {\\n highp float av = abs(v);\\n\\n //Handle special cases\\n if(av < FLOAT_MIN) {\\n return vec4(0.0, 0.0, 0.0, 0.0);\\n } else if(v > FLOAT_MAX) {\\n return vec4(127.0, 128.0, 0.0, 0.0) / 255.0;\\n } else if(v < -FLOAT_MAX) {\\n return vec4(255.0, 128.0, 0.0, 0.0) / 255.0;\\n }\\n\\n highp vec4 c = vec4(0,0,0,0);\\n\\n //Compute exponent and mantissa\\n highp float e = floor(log2(av));\\n highp float m = av * pow(2.0, -e) - 1.0;\\n \\n //Unpack mantissa\\n c[1] = floor(128.0 * m);\\n m -= c[1] / 128.0;\\n c[2] = floor(32768.0 * m);\\n m -= c[2] / 32768.0;\\n c[3] = floor(8388608.0 * m);\\n \\n //Unpack exponent\\n highp float ebias = e + 127.0;\\n c[0] = floor(ebias / 2.0);\\n ebias -= c[0] * 2.0;\\n c[1] += floor(ebias) * 128.0; \\n\\n //Unpack sign bit\\n c[0] += 128.0 * step(0.0, -v);\\n\\n //Scale back to range\\n return c / 255.0;\\n}\\n\\nbool outOfRange(float a, float b, float p) {\\n return ((p > max(a, b)) || \\n (p < min(a, b)));\\n}\\n\\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y));\\n}\\n\\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y) ||\\n outOfRange(a.z, b.z, p.z));\\n}\\n\\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\\n return outOfRange(a.xyz, b.xyz, p.xyz);\\n}\\n\\nuniform float pickId;\\nuniform vec3 clipBounds[2];\\n\\nvarying vec3 worldPosition;\\nvarying float pixelArcLength;\\nvarying vec4 fragColor;\\n\\nvoid main() {\\n if (outOfRange(clipBounds[0], clipBounds[1], worldPosition)) discard;\\n\\n gl_FragColor = vec4(pickId/255.0, encode_float_1540259130(pixelArcLength).xyz);\\n}\"]),l=[{name:\"position\",type:\"vec3\"},{name:\"nextPosition\",type:\"vec3\"},{name:\"arcLength\",type:\"float\"},{name:\"lineWidth\",type:\"float\"},{name:\"color\",type:\"vec4\"}];r.createShader=function(t){return i(t,a,o,null,l)},r.createPickShader=function(t){return i(t,a,s,null,l)}},{\"gl-shader\":288,glslify:392}],245:[function(t,e,r){\"use strict\";e.exports=function(t){var e=t.gl||t.scene&&t.scene.gl,r=u(e);r.attributes.position.location=0,r.attributes.nextPosition.location=1,r.attributes.arcLength.location=2,r.attributes.lineWidth.location=3,r.attributes.color.location=4;var o=f(e);o.attributes.position.location=0,o.attributes.nextPosition.location=1,o.attributes.arcLength.location=2,o.attributes.lineWidth.location=3,o.attributes.color.location=4;for(var s=n(e),c=i(e,[{buffer:s,size:3,offset:0,stride:48},{buffer:s,size:3,offset:12,stride:48},{buffer:s,size:1,offset:24,stride:48},{buffer:s,size:1,offset:28,stride:48},{buffer:s,size:4,offset:32,stride:48}]),h=l(new Array(1024),[256,1,4]),p=0;p<1024;++p)h.data[p]=255;var d=a(e,h);d.wrap=e.REPEAT;var g=new v(e,r,o,s,c,d);return g.update(t),g};var n=t(\"gl-buffer\"),i=t(\"gl-vao\"),a=t(\"gl-texture2d\"),o=t(\"glsl-read-float\"),s=t(\"binary-search-bounds\"),l=t(\"ndarray\"),c=t(\"./lib/shaders\"),u=c.createShader,f=c.createPickShader,h=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function p(t,e){for(var r=0,n=0;n<3;++n){var i=t[n]-e[n];r+=i*i}return Math.sqrt(r)}function d(t){for(var e=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],r=0;r<3;++r)e[0][r]=Math.max(t[0][r],e[0][r]),e[1][r]=Math.min(t[1][r],e[1][r]);return e}function g(t,e,r,n){this.arcLength=t,this.position=e,this.index=r,this.dataCoordinate=n}function v(t,e,r,n,i,a){this.gl=t,this.shader=e,this.pickShader=r,this.buffer=n,this.vao=i,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.points=[],this.arcLength=[],this.vertexCount=0,this.bounds=[[0,0,0],[0,0,0]],this.pickId=0,this.lineWidth=1,this.texture=a,this.dashScale=1,this.opacity=1,this.dirty=!0,this.pixelRatio=1}var m=v.prototype;m.isTransparent=function(){return this.opacity<1},m.isOpaque=function(){return this.opacity>=1},m.pickSlots=1,m.setPickBase=function(t){this.pickId=t},m.drawTransparent=m.draw=function(t){if(this.vertexCount){var e=this.gl,r=this.shader,n=this.vao;r.bind(),r.uniforms={model:t.model||h,view:t.view||h,projection:t.projection||h,clipBounds:d(this.clipBounds),dashTexture:this.texture.bind(),dashScale:this.dashScale/this.arcLength[this.arcLength.length-1],opacity:this.opacity,screenShape:[e.drawingBufferWidth,e.drawingBufferHeight],pixelRatio:this.pixelRatio},n.bind(),n.draw(e.TRIANGLE_STRIP,this.vertexCount),n.unbind()}},m.drawPick=function(t){if(this.vertexCount){var e=this.gl,r=this.pickShader,n=this.vao;r.bind(),r.uniforms={model:t.model||h,view:t.view||h,projection:t.projection||h,pickId:this.pickId,clipBounds:d(this.clipBounds),screenShape:[e.drawingBufferWidth,e.drawingBufferHeight],pixelRatio:this.pixelRatio},n.bind(),n.draw(e.TRIANGLE_STRIP,this.vertexCount),n.unbind()}},m.update=function(t){var e,r;this.dirty=!0;var n=!!t.connectGaps;\"dashScale\"in t&&(this.dashScale=t.dashScale),\"opacity\"in t&&(this.opacity=+t.opacity);var i=[],a=[],o=[],c=0,u=0,f=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],h=t.position||t.positions;if(h){var d=t.color||t.colors||[0,0,0,1],g=t.lineWidth||1,v=!1;t:for(e=1;e<h.length;++e){var m,y,x,b=h[e-1],_=h[e];for(a.push(c),o.push(b.slice()),r=0;r<3;++r){if(isNaN(b[r])||isNaN(_[r])||!isFinite(b[r])||!isFinite(_[r])){if(!n&&i.length>0){for(var w=0;w<24;++w)i.push(i[i.length-12]);u+=2,v=!0}continue t}f[0][r]=Math.min(f[0][r],b[r],_[r]),f[1][r]=Math.max(f[1][r],b[r],_[r])}Array.isArray(d[0])?(m=d.length>e-1?d[e-1]:d.length>0?d[d.length-1]:[0,0,0,1],y=d.length>e?d[e]:d.length>0?d[d.length-1]:[0,0,0,1]):m=y=d,3===m.length&&(m=[m[0],m[1],m[2],1]),3===y.length&&(y=[y[0],y[1],y[2],1]),x=Array.isArray(g)?g.length>e-1?g[e-1]:g.length>0?g[g.length-1]:[0,0,0,1]:g;var k=c;if(c+=p(b,_),v){for(r=0;r<2;++r)i.push(b[0],b[1],b[2],_[0],_[1],_[2],k,x,m[0],m[1],m[2],m[3]);u+=2,v=!1}i.push(b[0],b[1],b[2],_[0],_[1],_[2],k,x,m[0],m[1],m[2],m[3],b[0],b[1],b[2],_[0],_[1],_[2],k,-x,m[0],m[1],m[2],m[3],_[0],_[1],_[2],b[0],b[1],b[2],c,-x,y[0],y[1],y[2],y[3],_[0],_[1],_[2],b[0],b[1],b[2],c,x,y[0],y[1],y[2],y[3]),u+=4}}if(this.buffer.update(i),a.push(c),o.push(h[h.length-1].slice()),this.bounds=f,this.vertexCount=u,this.points=o,this.arcLength=a,\"dashes\"in t){var M=t.dashes.slice();for(M.unshift(0),e=1;e<M.length;++e)M[e]=M[e-1]+M[e];var A=l(new Array(1024),[256,1,4]);for(e=0;e<256;++e){for(r=0;r<4;++r)A.set(e,0,r,0);1&s.le(M,M[M.length-1]*e/255)?A.set(e,0,0,0):A.set(e,0,0,255)}this.texture.setPixels(A)}},m.dispose=function(){this.shader.dispose(),this.vao.dispose(),this.buffer.dispose()},m.pick=function(t){if(!t)return null;if(t.id!==this.pickId)return null;var e=o(t.value[0],t.value[1],t.value[2],0),r=s.le(this.arcLength,e);if(r<0)return null;if(r===this.arcLength.length-1)return new g(this.arcLength[this.arcLength.length-1],this.points[this.points.length-1].slice(),r);for(var n=this.points[r],i=this.points[Math.min(r+1,this.points.length-1)],a=(e-this.arcLength[r])/(this.arcLength[r+1]-this.arcLength[r]),l=1-a,c=[0,0,0],u=0;u<3;++u)c[u]=l*n[u]+a*i[u];var f=Math.min(a<.5?r:r+1,this.points.length-1);return new g(e,c,f,this.points[f])}},{\"./lib/shaders\":244,\"binary-search-bounds\":79,\"gl-buffer\":230,\"gl-texture2d\":305,\"gl-vao\":310,\"glsl-read-float\":383,ndarray:433}],246:[function(t,e,r){e.exports=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=r*a-i*n;return o?(o=1/o,t[0]=a*o,t[1]=-n*o,t[2]=-i*o,t[3]=r*o,t):null}},{}],247:[function(t,e,r){e.exports=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=e[4],s=e[5],l=e[6],c=e[7],u=e[8],f=u*o-s*c,h=-u*a+s*l,p=c*a-o*l,d=r*f+n*h+i*p;return d?(d=1/d,t[0]=f*d,t[1]=(-u*n+i*c)*d,t[2]=(s*n-i*o)*d,t[3]=h*d,t[4]=(u*r-i*l)*d,t[5]=(-s*r+i*a)*d,t[6]=p*d,t[7]=(-c*r+n*l)*d,t[8]=(o*r-n*a)*d,t):null}},{}],248:[function(t,e,r){e.exports=function(t){var e=new Float32Array(16);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}},{}],249:[function(t,e,r){e.exports=function(){var t=new Float32Array(16);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},{}],250:[function(t,e,r){e.exports=function(t){var e=t[0],r=t[1],n=t[2],i=t[3],a=t[4],o=t[5],s=t[6],l=t[7],c=t[8],u=t[9],f=t[10],h=t[11],p=t[12],d=t[13],g=t[14],v=t[15];return(e*o-r*a)*(f*v-h*g)-(e*s-n*a)*(u*v-h*d)+(e*l-i*a)*(u*g-f*d)+(r*s-n*o)*(c*v-h*p)-(r*l-i*o)*(c*g-f*p)+(n*l-i*s)*(c*d-u*p)}},{}],251:[function(t,e,r){e.exports=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=r+r,s=n+n,l=i+i,c=r*o,u=n*o,f=n*s,h=i*o,p=i*s,d=i*l,g=a*o,v=a*s,m=a*l;return t[0]=1-f-d,t[1]=u+m,t[2]=h-v,t[3]=0,t[4]=u-m,t[5]=1-c-d,t[6]=p+g,t[7]=0,t[8]=h+v,t[9]=p-g,t[10]=1-c-f,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},{}],252:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=n+n,l=i+i,c=a+a,u=n*s,f=n*l,h=n*c,p=i*l,d=i*c,g=a*c,v=o*s,m=o*l,y=o*c;return t[0]=1-(p+g),t[1]=f+y,t[2]=h-m,t[3]=0,t[4]=f-y,t[5]=1-(u+g),t[6]=d+v,t[7]=0,t[8]=h+m,t[9]=d-v,t[10]=1-(u+p),t[11]=0,t[12]=r[0],t[13]=r[1],t[14]=r[2],t[15]=1,t}},{}],253:[function(t,e,r){e.exports=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},{}],254:[function(t,e,r){e.exports=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=e[4],s=e[5],l=e[6],c=e[7],u=e[8],f=e[9],h=e[10],p=e[11],d=e[12],g=e[13],v=e[14],m=e[15],y=r*s-n*o,x=r*l-i*o,b=r*c-a*o,_=n*l-i*s,w=n*c-a*s,k=i*c-a*l,M=u*g-f*d,A=u*v-h*d,T=u*m-p*d,S=f*v-h*g,E=f*m-p*g,C=h*m-p*v,L=y*C-x*E+b*S+_*T-w*A+k*M;if(!L)return null;return L=1/L,t[0]=(s*C-l*E+c*S)*L,t[1]=(i*E-n*C-a*S)*L,t[2]=(g*k-v*w+m*_)*L,t[3]=(h*w-f*k-p*_)*L,t[4]=(l*T-o*C-c*A)*L,t[5]=(r*C-i*T+a*A)*L,t[6]=(v*b-d*k-m*x)*L,t[7]=(u*k-h*b+p*x)*L,t[8]=(o*E-s*T+c*M)*L,t[9]=(n*T-r*E-a*M)*L,t[10]=(d*w-g*b+m*y)*L,t[11]=(f*b-u*w-p*y)*L,t[12]=(s*A-o*S-l*M)*L,t[13]=(r*S-n*A+i*M)*L,t[14]=(g*x-d*_-v*y)*L,t[15]=(u*_-f*x+h*y)*L,t}},{}],255:[function(t,e,r){var n=t(\"./identity\");e.exports=function(t,e,r,i){var a,o,s,l,c,u,f,h,p,d,g=e[0],v=e[1],m=e[2],y=i[0],x=i[1],b=i[2],_=r[0],w=r[1],k=r[2];if(Math.abs(g-_)<1e-6&&Math.abs(v-w)<1e-6&&Math.abs(m-k)<1e-6)return n(t);f=g-_,h=v-w,p=m-k,d=1/Math.sqrt(f*f+h*h+p*p),a=x*(p*=d)-b*(h*=d),o=b*(f*=d)-y*p,s=y*h-x*f,(d=Math.sqrt(a*a+o*o+s*s))?(a*=d=1/d,o*=d,s*=d):(a=0,o=0,s=0);l=h*s-p*o,c=p*a-f*s,u=f*o-h*a,(d=Math.sqrt(l*l+c*c+u*u))?(l*=d=1/d,c*=d,u*=d):(l=0,c=0,u=0);return t[0]=a,t[1]=l,t[2]=f,t[3]=0,t[4]=o,t[5]=c,t[6]=h,t[7]=0,t[8]=s,t[9]=u,t[10]=p,t[11]=0,t[12]=-(a*g+o*v+s*m),t[13]=-(l*g+c*v+u*m),t[14]=-(f*g+h*v+p*m),t[15]=1,t}},{\"./identity\":253}],256:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],c=e[6],u=e[7],f=e[8],h=e[9],p=e[10],d=e[11],g=e[12],v=e[13],m=e[14],y=e[15],x=r[0],b=r[1],_=r[2],w=r[3];return t[0]=x*n+b*s+_*f+w*g,t[1]=x*i+b*l+_*h+w*v,t[2]=x*a+b*c+_*p+w*m,t[3]=x*o+b*u+_*d+w*y,x=r[4],b=r[5],_=r[6],w=r[7],t[4]=x*n+b*s+_*f+w*g,t[5]=x*i+b*l+_*h+w*v,t[6]=x*a+b*c+_*p+w*m,t[7]=x*o+b*u+_*d+w*y,x=r[8],b=r[9],_=r[10],w=r[11],t[8]=x*n+b*s+_*f+w*g,t[9]=x*i+b*l+_*h+w*v,t[10]=x*a+b*c+_*p+w*m,t[11]=x*o+b*u+_*d+w*y,x=r[12],b=r[13],_=r[14],w=r[15],t[12]=x*n+b*s+_*f+w*g,t[13]=x*i+b*l+_*h+w*v,t[14]=x*a+b*c+_*p+w*m,t[15]=x*o+b*u+_*d+w*y,t}},{}],257:[function(t,e,r){e.exports=function(t,e,r,n,i){var a=1/Math.tan(e/2),o=1/(n-i);return t[0]=a/r,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=(i+n)*o,t[11]=-1,t[12]=0,t[13]=0,t[14]=2*i*n*o,t[15]=0,t}},{}],258:[function(t,e,r){e.exports=function(t,e,r,n){var i,a,o,s,l,c,u,f,h,p,d,g,v,m,y,x,b,_,w,k,M,A,T,S,E=n[0],C=n[1],L=n[2],z=Math.sqrt(E*E+C*C+L*L);if(Math.abs(z)<1e-6)return null;E*=z=1/z,C*=z,L*=z,i=Math.sin(r),a=Math.cos(r),o=1-a,s=e[0],l=e[1],c=e[2],u=e[3],f=e[4],h=e[5],p=e[6],d=e[7],g=e[8],v=e[9],m=e[10],y=e[11],x=E*E*o+a,b=C*E*o+L*i,_=L*E*o-C*i,w=E*C*o-L*i,k=C*C*o+a,M=L*C*o+E*i,A=E*L*o+C*i,T=C*L*o-E*i,S=L*L*o+a,t[0]=s*x+f*b+g*_,t[1]=l*x+h*b+v*_,t[2]=c*x+p*b+m*_,t[3]=u*x+d*b+y*_,t[4]=s*w+f*k+g*M,t[5]=l*w+h*k+v*M,t[6]=c*w+p*k+m*M,t[7]=u*w+d*k+y*M,t[8]=s*A+f*T+g*S,t[9]=l*A+h*T+v*S,t[10]=c*A+p*T+m*S,t[11]=u*A+d*T+y*S,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]);return t}},{}],259:[function(t,e,r){e.exports=function(t,e,r){var n=Math.sin(r),i=Math.cos(r),a=e[4],o=e[5],s=e[6],l=e[7],c=e[8],u=e[9],f=e[10],h=e[11];e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]);return t[4]=a*i+c*n,t[5]=o*i+u*n,t[6]=s*i+f*n,t[7]=l*i+h*n,t[8]=c*i-a*n,t[9]=u*i-o*n,t[10]=f*i-s*n,t[11]=h*i-l*n,t}},{}],260:[function(t,e,r){e.exports=function(t,e,r){var n=Math.sin(r),i=Math.cos(r),a=e[0],o=e[1],s=e[2],l=e[3],c=e[8],u=e[9],f=e[10],h=e[11];e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]);return t[0]=a*i-c*n,t[1]=o*i-u*n,t[2]=s*i-f*n,t[3]=l*i-h*n,t[8]=a*n+c*i,t[9]=o*n+u*i,t[10]=s*n+f*i,t[11]=l*n+h*i,t}},{}],261:[function(t,e,r){e.exports=function(t,e,r){var n=Math.sin(r),i=Math.cos(r),a=e[0],o=e[1],s=e[2],l=e[3],c=e[4],u=e[5],f=e[6],h=e[7];e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]);return t[0]=a*i+c*n,t[1]=o*i+u*n,t[2]=s*i+f*n,t[3]=l*i+h*n,t[4]=c*i-a*n,t[5]=u*i-o*n,t[6]=f*i-s*n,t[7]=h*i-l*n,t}},{}],262:[function(t,e,r){e.exports=function(t,e,r){var n=r[0],i=r[1],a=r[2];return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*i,t[5]=e[5]*i,t[6]=e[6]*i,t[7]=e[7]*i,t[8]=e[8]*a,t[9]=e[9]*a,t[10]=e[10]*a,t[11]=e[11]*a,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}},{}],263:[function(t,e,r){e.exports=function(t,e,r){var n,i,a,o,s,l,c,u,f,h,p,d,g=r[0],v=r[1],m=r[2];e===t?(t[12]=e[0]*g+e[4]*v+e[8]*m+e[12],t[13]=e[1]*g+e[5]*v+e[9]*m+e[13],t[14]=e[2]*g+e[6]*v+e[10]*m+e[14],t[15]=e[3]*g+e[7]*v+e[11]*m+e[15]):(n=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],c=e[6],u=e[7],f=e[8],h=e[9],p=e[10],d=e[11],t[0]=n,t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t[6]=c,t[7]=u,t[8]=f,t[9]=h,t[10]=p,t[11]=d,t[12]=n*g+s*v+f*m+e[12],t[13]=i*g+l*v+h*m+e[13],t[14]=a*g+c*v+p*m+e[14],t[15]=o*g+u*v+d*m+e[15]);return t}},{}],264:[function(t,e,r){e.exports=function(t,e){if(t===e){var r=e[1],n=e[2],i=e[3],a=e[6],o=e[7],s=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=r,t[6]=e[9],t[7]=e[13],t[8]=n,t[9]=a,t[11]=e[14],t[12]=i,t[13]=o,t[14]=s}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}},{}],265:[function(t,e,r){\"use strict\";e.exports=function(t,e){switch(e.length){case 0:break;case 1:t[0]=1/e[0];break;case 4:n(t,e);break;case 9:i(t,e);break;case 16:a(t,e);break;default:throw new Error(\"currently supports matrices up to 4x4\")}return t};var n=t(\"gl-mat2/invert\"),i=t(\"gl-mat3/invert\"),a=t(\"gl-mat4/invert\")},{\"gl-mat2/invert\":246,\"gl-mat3/invert\":247,\"gl-mat4/invert\":254}],266:[function(t,e,r){arguments[4][232][0].apply(r,arguments)},{barycentric:61,dup:232,\"polytope-closest-point/lib/closest_point_2d.js\":464}],267:[function(t,e,r){var n=t(\"glslify\"),i=n([\"precision highp float;\\n#define GLSLIFY 1\\n\\nattribute vec3 position, normal;\\nattribute vec4 color;\\nattribute vec2 uv;\\n\\nuniform mat4 model\\n , view\\n , projection;\\nuniform vec3 eyePosition\\n , lightPosition;\\n\\nvarying vec3 f_normal\\n , f_lightDirection\\n , f_eyeDirection\\n , f_data;\\nvarying vec4 f_color;\\nvarying vec2 f_uv;\\n\\nvoid main() {\\n vec4 m_position = model * vec4(position, 1.0);\\n vec4 t_position = view * m_position;\\n gl_Position = projection * t_position;\\n f_color = color;\\n f_normal = normal;\\n f_data = position;\\n f_eyeDirection = eyePosition - position;\\n f_lightDirection = lightPosition - position;\\n f_uv = uv;\\n}\\n\"]),a=n([\"#extension GL_OES_standard_derivatives : enable\\n\\nprecision highp float;\\n#define GLSLIFY 1\\n\\nfloat beckmannDistribution(float x, float roughness) {\\n float NdotH = max(x, 0.0001);\\n float cos2Alpha = NdotH * NdotH;\\n float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\\n float roughness2 = roughness * roughness;\\n float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\\n return exp(tan2Alpha / roughness2) / denom;\\n}\\n\\nfloat cookTorranceSpecular(\\n vec3 lightDirection,\\n vec3 viewDirection,\\n vec3 surfaceNormal,\\n float roughness,\\n float fresnel) {\\n\\n float VdotN = max(dot(viewDirection, surfaceNormal), 0.0);\\n float LdotN = max(dot(lightDirection, surfaceNormal), 0.0);\\n\\n //Half angle vector\\n vec3 H = normalize(lightDirection + viewDirection);\\n\\n //Geometric term\\n float NdotH = max(dot(surfaceNormal, H), 0.0);\\n float VdotH = max(dot(viewDirection, H), 0.000001);\\n float LdotH = max(dot(lightDirection, H), 0.000001);\\n float G1 = (2.0 * NdotH * VdotN) / VdotH;\\n float G2 = (2.0 * NdotH * LdotN) / LdotH;\\n float G = min(1.0, min(G1, G2));\\n \\n //Distribution term\\n float D = beckmannDistribution(NdotH, roughness);\\n\\n //Fresnel term\\n float F = pow(1.0 - VdotN, fresnel);\\n\\n //Multiply terms and done\\n return G * F * D / max(3.14159265 * VdotN, 0.000001);\\n}\\n\\nvec3 normals(vec3 pos) {\\n vec3 fdx = dFdx(pos);\\n vec3 fdy = dFdy(pos);\\n return normalize(cross(fdx, fdy));\\n}\\n\\nbool outOfRange(float a, float b, float p) {\\n return ((p > max(a, b)) || \\n (p < min(a, b)));\\n}\\n\\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y));\\n}\\n\\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y) ||\\n outOfRange(a.z, b.z, p.z));\\n}\\n\\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\\n return outOfRange(a.xyz, b.xyz, p.xyz);\\n}\\n\\nuniform vec3 clipBounds[2];\\nuniform float roughness\\n , fresnel\\n , kambient\\n , kdiffuse\\n , kspecular\\n , opacity;\\nuniform sampler2D texture;\\n\\nvarying vec3 f_normal\\n , f_lightDirection\\n , f_eyeDirection\\n , f_data;\\nvarying vec4 f_color;\\nvarying vec2 f_uv;\\n\\nvoid main() {\\n if (outOfRange(clipBounds[0], clipBounds[1], f_data)) discard;\\n\\n vec3 N = normalize(f_normal);\\n vec3 L = normalize(f_lightDirection);\\n vec3 V = normalize(f_eyeDirection);\\n\\n vec3 normal = normals(f_data);\\n\\n if (dot(N, normal) < 0.0) {\\n N = -N;\\n }\\n\\n float specular = cookTorranceSpecular(L, V, N, roughness, fresnel);\\n float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\\n\\n vec4 surfaceColor = f_color * texture2D(texture, f_uv);\\n vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0);\\n\\n gl_FragColor = litColor * opacity;\\n}\\n\"]),o=n([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute vec3 position;\\nattribute vec4 color;\\nattribute vec2 uv;\\n\\nuniform mat4 model, view, projection;\\n\\nvarying vec4 f_color;\\nvarying vec3 f_data;\\nvarying vec2 f_uv;\\n\\nvoid main() {\\n gl_Position = projection * view * model * vec4(position, 1.0);\\n f_color = color;\\n f_data = position;\\n f_uv = uv;\\n}\"]),s=n([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nbool outOfRange(float a, float b, float p) {\\n return ((p > max(a, b)) || \\n (p < min(a, b)));\\n}\\n\\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y));\\n}\\n\\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y) ||\\n outOfRange(a.z, b.z, p.z));\\n}\\n\\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\\n return outOfRange(a.xyz, b.xyz, p.xyz);\\n}\\n\\nuniform vec3 clipBounds[2];\\nuniform sampler2D texture;\\nuniform float opacity;\\n\\nvarying vec4 f_color;\\nvarying vec3 f_data;\\nvarying vec2 f_uv;\\n\\nvoid main() {\\n if (outOfRange(clipBounds[0], clipBounds[1], f_data)) discard;\\n\\n gl_FragColor = f_color * texture2D(texture, f_uv) * opacity;\\n}\"]),l=n([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nbool outOfRange(float a, float b, float p) {\\n return ((p > max(a, b)) || \\n (p < min(a, b)));\\n}\\n\\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y));\\n}\\n\\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y) ||\\n outOfRange(a.z, b.z, p.z));\\n}\\n\\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\\n return outOfRange(a.xyz, b.xyz, p.xyz);\\n}\\n\\nattribute vec3 position;\\nattribute vec4 color;\\nattribute vec2 uv;\\nattribute float pointSize;\\n\\nuniform mat4 model, view, projection;\\nuniform vec3 clipBounds[2];\\n\\nvarying vec4 f_color;\\nvarying vec2 f_uv;\\n\\nvoid main() {\\n if (outOfRange(clipBounds[0], clipBounds[1], position)) {\\n\\n gl_Position = vec4(0,0,0,0);\\n } else {\\n gl_Position = projection * view * model * vec4(position, 1.0);\\n }\\n gl_PointSize = pointSize;\\n f_color = color;\\n f_uv = uv;\\n}\"]),c=n([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nuniform sampler2D texture;\\nuniform float opacity;\\n\\nvarying vec4 f_color;\\nvarying vec2 f_uv;\\n\\nvoid main() {\\n vec2 pointR = gl_PointCoord.xy - vec2(0.5,0.5);\\n if(dot(pointR, pointR) > 0.25) {\\n discard;\\n }\\n gl_FragColor = f_color * texture2D(texture, f_uv) * opacity;\\n}\"]),u=n([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute vec3 position;\\nattribute vec4 id;\\n\\nuniform mat4 model, view, projection;\\n\\nvarying vec3 f_position;\\nvarying vec4 f_id;\\n\\nvoid main() {\\n gl_Position = projection * view * model * vec4(position, 1.0);\\n f_id = id;\\n f_position = position;\\n}\"]),f=n([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nbool outOfRange(float a, float b, float p) {\\n return ((p > max(a, b)) || \\n (p < min(a, b)));\\n}\\n\\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y));\\n}\\n\\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y) ||\\n outOfRange(a.z, b.z, p.z));\\n}\\n\\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\\n return outOfRange(a.xyz, b.xyz, p.xyz);\\n}\\n\\nuniform vec3 clipBounds[2];\\nuniform float pickId;\\n\\nvarying vec3 f_position;\\nvarying vec4 f_id;\\n\\nvoid main() {\\n if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\\n\\n gl_FragColor = vec4(pickId, f_id.xyz);\\n}\"]),h=n([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nbool outOfRange(float a, float b, float p) {\\n return ((p > max(a, b)) || \\n (p < min(a, b)));\\n}\\n\\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y));\\n}\\n\\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y) ||\\n outOfRange(a.z, b.z, p.z));\\n}\\n\\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\\n return outOfRange(a.xyz, b.xyz, p.xyz);\\n}\\n\\nattribute vec3 position;\\nattribute float pointSize;\\nattribute vec4 id;\\n\\nuniform mat4 model, view, projection;\\nuniform vec3 clipBounds[2];\\n\\nvarying vec3 f_position;\\nvarying vec4 f_id;\\n\\nvoid main() {\\n if (outOfRange(clipBounds[0], clipBounds[1], position)) {\\n\\n gl_Position = vec4(0,0,0,0);\\n } else {\\n gl_Position = projection * view * model * vec4(position, 1.0);\\n gl_PointSize = pointSize;\\n }\\n f_id = id;\\n f_position = position;\\n}\"]),p=n([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute vec3 position;\\n\\nuniform mat4 model, view, projection;\\n\\nvoid main() {\\n gl_Position = projection * view * model * vec4(position, 1.0);\\n}\"]),d=n([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nuniform vec3 contourColor;\\n\\nvoid main() {\\n gl_FragColor = vec4(contourColor,1);\\n}\\n\"]);r.meshShader={vertex:i,fragment:a,attributes:[{name:\"position\",type:\"vec3\"},{name:\"normal\",type:\"vec3\"},{name:\"color\",type:\"vec4\"},{name:\"uv\",type:\"vec2\"}]},r.wireShader={vertex:o,fragment:s,attributes:[{name:\"position\",type:\"vec3\"},{name:\"color\",type:\"vec4\"},{name:\"uv\",type:\"vec2\"}]},r.pointShader={vertex:l,fragment:c,attributes:[{name:\"position\",type:\"vec3\"},{name:\"color\",type:\"vec4\"},{name:\"uv\",type:\"vec2\"},{name:\"pointSize\",type:\"float\"}]},r.pickShader={vertex:u,fragment:f,attributes:[{name:\"position\",type:\"vec3\"},{name:\"id\",type:\"vec4\"}]},r.pointPickShader={vertex:h,fragment:f,attributes:[{name:\"position\",type:\"vec3\"},{name:\"pointSize\",type:\"float\"},{name:\"id\",type:\"vec4\"}]},r.contourShader={vertex:p,fragment:d,attributes:[{name:\"position\",type:\"vec3\"}]}},{glslify:392}],268:[function(t,e,r){\"use strict\";var n=t(\"gl-shader\"),i=t(\"gl-buffer\"),a=t(\"gl-vao\"),o=t(\"gl-texture2d\"),s=t(\"normals\"),l=t(\"gl-mat4/multiply\"),c=t(\"gl-mat4/invert\"),u=t(\"ndarray\"),f=t(\"colormap\"),h=t(\"simplicial-complex-contour\"),p=t(\"typedarray-pool\"),d=t(\"./lib/shaders\"),g=t(\"./lib/closest-point\"),v=d.meshShader,m=d.wireShader,y=d.pointShader,x=d.pickShader,b=d.pointPickShader,_=d.contourShader,w=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function k(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,g,v,m,y,x,b,_,k,M,A,T,S){this.gl=t,this.cells=[],this.positions=[],this.intensity=[],this.texture=e,this.dirty=!0,this.triShader=r,this.lineShader=n,this.pointShader=i,this.pickShader=a,this.pointPickShader=o,this.contourShader=s,this.trianglePositions=l,this.triangleColors=u,this.triangleNormals=h,this.triangleUVs=f,this.triangleIds=c,this.triangleVAO=p,this.triangleCount=0,this.lineWidth=1,this.edgePositions=d,this.edgeColors=v,this.edgeUVs=m,this.edgeIds=g,this.edgeVAO=y,this.edgeCount=0,this.pointPositions=x,this.pointColors=_,this.pointUVs=k,this.pointSizes=M,this.pointIds=b,this.pointVAO=A,this.pointCount=0,this.contourLineWidth=1,this.contourPositions=T,this.contourVAO=S,this.contourCount=0,this.contourColor=[0,0,0],this.contourEnable=!0,this.pickId=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lightPosition=[1e5,1e5,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.opacity=1,this._model=w,this._view=w,this._projection=w,this._resolution=[1,1]}var M=k.prototype;function A(t){var e=n(t,y.vertex,y.fragment);return e.attributes.position.location=0,e.attributes.color.location=2,e.attributes.uv.location=3,e.attributes.pointSize.location=4,e}function T(t){var e=n(t,x.vertex,x.fragment);return e.attributes.position.location=0,e.attributes.id.location=1,e}function S(t){var e=n(t,b.vertex,b.fragment);return e.attributes.position.location=0,e.attributes.id.location=1,e.attributes.pointSize.location=4,e}function E(t){var e=n(t,_.vertex,_.fragment);return e.attributes.position.location=0,e}M.isOpaque=function(){return this.opacity>=1},M.isTransparent=function(){return this.opacity<1},M.pickSlots=1,M.setPickBase=function(t){this.pickId=t},M.highlight=function(t){if(t&&this.contourEnable){for(var e=h(this.cells,this.intensity,t.intensity),r=e.cells,n=e.vertexIds,i=e.vertexWeights,a=r.length,o=p.mallocFloat32(6*a),s=0,l=0;l<a;++l)for(var c=r[l],u=0;u<2;++u){var f=c[0];2===c.length&&(f=c[u]);for(var d=n[f][0],g=n[f][1],v=i[f],m=1-v,y=this.positions[d],x=this.positions[g],b=0;b<3;++b)o[s++]=v*y[b]+m*x[b]}this.contourCount=s/3|0,this.contourPositions.update(o.subarray(0,s)),p.free(o)}else this.contourCount=0},M.update=function(t){t=t||{};var e=this.gl;this.dirty=!0,\"contourEnable\"in t&&(this.contourEnable=t.contourEnable),\"contourColor\"in t&&(this.contourColor=t.contourColor),\"lineWidth\"in t&&(this.lineWidth=t.lineWidth),\"lightPosition\"in t&&(this.lightPosition=t.lightPosition),\"opacity\"in t&&(this.opacity=t.opacity),\"ambient\"in t&&(this.ambientLight=t.ambient),\"diffuse\"in t&&(this.diffuseLight=t.diffuse),\"specular\"in t&&(this.specularLight=t.specular),\"roughness\"in t&&(this.roughness=t.roughness),\"fresnel\"in t&&(this.fresnel=t.fresnel),t.texture?(this.texture.dispose(),this.texture=o(e,t.texture)):t.colormap&&(this.texture.shape=[256,256],this.texture.minFilter=e.LINEAR_MIPMAP_LINEAR,this.texture.magFilter=e.LINEAR,this.texture.setPixels(function(t){for(var e=f({colormap:t,nshades:256,format:\"rgba\"}),r=new Uint8Array(1024),n=0;n<256;++n){for(var i=e[n],a=0;a<3;++a)r[4*n+a]=i[a];r[4*n+3]=255*i[3]}return u(r,[256,256,4],[4,0,1])}(t.colormap)),this.texture.generateMipmap());var r=t.cells,n=t.positions;if(n&&r){var i=[],a=[],l=[],c=[],h=[],p=[],d=[],g=[],v=[],m=[],y=[],x=[],b=[],_=[];this.cells=r,this.positions=n;var w=t.vertexNormals,k=t.cellNormals,M=void 0===t.vertexNormalsEpsilon?1e-6:t.vertexNormalsEpsilon,A=void 0===t.faceNormalsEpsilon?1e-6:t.faceNormalsEpsilon;t.useFacetNormals&&!k&&(k=s.faceNormals(r,n,A)),k||w||(w=s.vertexNormals(r,n,M));var T=t.vertexColors,S=t.cellColors,E=t.meshColor||[1,1,1,1],C=t.vertexUVs,L=t.vertexIntensity,z=t.cellUVs,O=t.cellIntensity,I=1/0,P=-1/0;if(!C&&!z)if(L)if(t.vertexIntensityBounds)I=+t.vertexIntensityBounds[0],P=+t.vertexIntensityBounds[1];else for(var D=0;D<L.length;++D){var R=L[D];I=Math.min(I,R),P=Math.max(P,R)}else if(O)for(D=0;D<O.length;++D){R=O[D];I=Math.min(I,R),P=Math.max(P,R)}else for(D=0;D<n.length;++D){R=n[D][2];I=Math.min(I,R),P=Math.max(P,R)}this.intensity=L||(O?function(t,e,r){for(var n=new Array(e),i=0;i<e;++i)n[i]=0;var a=t.length;for(i=0;i<a;++i)for(var o=t[i],s=0;s<o.length;++s)n[o[s]]=r[i];return n}(r,n.length,O):function(t){for(var e=t.length,r=new Array(e),n=0;n<e;++n)r[n]=t[n][2];return r}(n));var B=t.pointSizes,F=t.pointSize||1;this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]];for(D=0;D<n.length;++D)for(var N=n[D],j=0;j<3;++j)!isNaN(N[j])&&isFinite(N[j])&&(this.bounds[0][j]=Math.min(this.bounds[0][j],N[j]),this.bounds[1][j]=Math.max(this.bounds[1][j],N[j]));var V=0,U=0,q=0;t:for(D=0;D<r.length;++D){var H=r[D];switch(H.length){case 1:for(N=n[W=H[0]],j=0;j<3;++j)if(isNaN(N[j])||!isFinite(N[j]))continue t;m.push(N[0],N[1],N[2]),3===(Y=T?T[W]:S?S[D]:E).length?y.push(Y[0],Y[1],Y[2],1):y.push(Y[0],Y[1],Y[2],Y[3]),X=C?C[W]:L?[(L[W]-I)/(P-I),0]:z?z[D]:O?[(O[D]-I)/(P-I),0]:[(N[2]-I)/(P-I),0],x.push(X[0],X[1]),B?b.push(B[W]):b.push(F),_.push(D),q+=1;break;case 2:for(j=0;j<2;++j){N=n[W=H[j]];for(var G=0;G<3;++G)if(isNaN(N[G])||!isFinite(N[G]))continue t}for(j=0;j<2;++j){N=n[W=H[j]];p.push(N[0],N[1],N[2]),3===(Y=T?T[W]:S?S[D]:E).length?d.push(Y[0],Y[1],Y[2],1):d.push(Y[0],Y[1],Y[2],Y[3]),X=C?C[W]:L?[(L[W]-I)/(P-I),0]:z?z[D]:O?[(O[D]-I)/(P-I),0]:[(N[2]-I)/(P-I),0],g.push(X[0],X[1]),v.push(D)}U+=1;break;case 3:for(j=0;j<3;++j)for(N=n[W=H[j]],G=0;G<3;++G)if(isNaN(N[G])||!isFinite(N[G]))continue t;for(j=0;j<3;++j){var W,Y,X,Z;N=n[W=H[j]];i.push(N[0],N[1],N[2]),3===(Y=T?T[W]:S?S[D]:E).length?a.push(Y[0],Y[1],Y[2],1):a.push(Y[0],Y[1],Y[2],Y[3]),X=C?C[W]:L?[(L[W]-I)/(P-I),0]:z?z[D]:O?[(O[D]-I)/(P-I),0]:[(N[2]-I)/(P-I),0],c.push(X[0],X[1]),Z=w?w[W]:k[D],l.push(Z[0],Z[1],Z[2]),h.push(D)}V+=1}}this.pointCount=q,this.edgeCount=U,this.triangleCount=V,this.pointPositions.update(m),this.pointColors.update(y),this.pointUVs.update(x),this.pointSizes.update(b),this.pointIds.update(new Uint32Array(_)),this.edgePositions.update(p),this.edgeColors.update(d),this.edgeUVs.update(g),this.edgeIds.update(new Uint32Array(v)),this.trianglePositions.update(i),this.triangleColors.update(a),this.triangleUVs.update(c),this.triangleNormals.update(l),this.triangleIds.update(new Uint32Array(h))}},M.drawTransparent=M.draw=function(t){t=t||{};for(var e=this.gl,r=t.model||w,n=t.view||w,i=t.projection||w,a=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],o=0;o<3;++o)a[0][o]=Math.max(a[0][o],this.clipBounds[0][o]),a[1][o]=Math.min(a[1][o],this.clipBounds[1][o]);var s={model:r,view:n,projection:i,clipBounds:a,kambient:this.ambientLight,kdiffuse:this.diffuseLight,kspecular:this.specularLight,roughness:this.roughness,fresnel:this.fresnel,eyePosition:[0,0,0],lightPosition:[0,0,0],opacity:this.opacity,contourColor:this.contourColor,texture:0};this.texture.bind(0);var u=new Array(16);l(u,s.view,s.model),l(u,s.projection,u),c(u,u);for(o=0;o<3;++o)s.eyePosition[o]=u[12+o]/u[15];var f,h=u[15];for(o=0;o<3;++o)h+=this.lightPosition[o]*u[4*o+3];for(o=0;o<3;++o){for(var p=u[12+o],d=0;d<3;++d)p+=u[4*d+o]*this.lightPosition[d];s.lightPosition[o]=p/h}this.triangleCount>0&&((f=this.triShader).bind(),f.uniforms=s,this.triangleVAO.bind(),e.drawArrays(e.TRIANGLES,0,3*this.triangleCount),this.triangleVAO.unbind());this.edgeCount>0&&this.lineWidth>0&&((f=this.lineShader).bind(),f.uniforms=s,this.edgeVAO.bind(),e.lineWidth(this.lineWidth),e.drawArrays(e.LINES,0,2*this.edgeCount),this.edgeVAO.unbind());this.pointCount>0&&((f=this.pointShader).bind(),f.uniforms=s,this.pointVAO.bind(),e.drawArrays(e.POINTS,0,this.pointCount),this.pointVAO.unbind());this.contourEnable&&this.contourCount>0&&this.contourLineWidth>0&&((f=this.contourShader).bind(),f.uniforms=s,this.contourVAO.bind(),e.drawArrays(e.LINES,0,this.contourCount),this.contourVAO.unbind())},M.drawPick=function(t){t=t||{};for(var e=this.gl,r=t.model||w,n=t.view||w,i=t.projection||w,a=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],o=0;o<3;++o)a[0][o]=Math.max(a[0][o],this.clipBounds[0][o]),a[1][o]=Math.min(a[1][o],this.clipBounds[1][o]);this._model=[].slice.call(r),this._view=[].slice.call(n),this._projection=[].slice.call(i),this._resolution=[e.drawingBufferWidth,e.drawingBufferHeight];var s,l={model:r,view:n,projection:i,clipBounds:a,pickId:this.pickId/255};((s=this.pickShader).bind(),s.uniforms=l,this.triangleCount>0&&(this.triangleVAO.bind(),e.drawArrays(e.TRIANGLES,0,3*this.triangleCount),this.triangleVAO.unbind()),this.edgeCount>0&&(this.edgeVAO.bind(),e.lineWidth(this.lineWidth),e.drawArrays(e.LINES,0,2*this.edgeCount),this.edgeVAO.unbind()),this.pointCount>0)&&((s=this.pointPickShader).bind(),s.uniforms=l,this.pointVAO.bind(),e.drawArrays(e.POINTS,0,this.pointCount),this.pointVAO.unbind())},M.pick=function(t){if(!t)return null;if(t.id!==this.pickId)return null;for(var e=t.value[0]+256*t.value[1]+65536*t.value[2],r=this.cells[e],n=this.positions,i=new Array(r.length),a=0;a<r.length;++a)i[a]=n[r[a]];var o=g(i,[t.coord[0],this._resolution[1]-t.coord[1]],this._model,this._view,this._projection,this._resolution);if(!o)return null;var s=o[2],l=0;for(a=0;a<r.length;++a)l+=s[a]*this.intensity[r[a]];return{position:o[1],index:r[o[0]],cell:r,cellId:e,intensity:l,dataCoordinate:this.positions[r[o[0]]]}},M.dispose=function(){this.texture.dispose(),this.triShader.dispose(),this.lineShader.dispose(),this.pointShader.dispose(),this.pickShader.dispose(),this.pointPickShader.dispose(),this.triangleVAO.dispose(),this.trianglePositions.dispose(),this.triangleColors.dispose(),this.triangleUVs.dispose(),this.triangleNormals.dispose(),this.triangleIds.dispose(),this.edgeVAO.dispose(),this.edgePositions.dispose(),this.edgeColors.dispose(),this.edgeUVs.dispose(),this.edgeIds.dispose(),this.pointVAO.dispose(),this.pointPositions.dispose(),this.pointColors.dispose(),this.pointUVs.dispose(),this.pointSizes.dispose(),this.pointIds.dispose(),this.contourVAO.dispose(),this.contourPositions.dispose(),this.contourShader.dispose()},e.exports=function(t,e){if(1===arguments.length&&(t=(e=t).gl),!(t.getExtension(\"OES_standard_derivatives\")||t.getExtension(\"MOZ_OES_standard_derivatives\")||t.getExtension(\"WEBKIT_OES_standard_derivatives\")))throw new Error(\"derivatives not supported\");var r=function(t){var e=n(t,v.vertex,v.fragment);return e.attributes.position.location=0,e.attributes.color.location=2,e.attributes.uv.location=3,e.attributes.normal.location=4,e}(t),s=function(t){var e=n(t,m.vertex,m.fragment);return e.attributes.position.location=0,e.attributes.color.location=2,e.attributes.uv.location=3,e}(t),l=A(t),c=T(t),f=S(t),h=E(t),p=o(t,u(new Uint8Array([255,255,255,255]),[1,1,4]));p.generateMipmap(),p.minFilter=t.LINEAR_MIPMAP_LINEAR,p.magFilter=t.LINEAR;var d=i(t),g=i(t),y=i(t),x=i(t),b=i(t),_=a(t,[{buffer:d,type:t.FLOAT,size:3},{buffer:b,type:t.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:g,type:t.FLOAT,size:4},{buffer:y,type:t.FLOAT,size:2},{buffer:x,type:t.FLOAT,size:3}]),w=i(t),M=i(t),C=i(t),L=i(t),z=a(t,[{buffer:w,type:t.FLOAT,size:3},{buffer:L,type:t.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:M,type:t.FLOAT,size:4},{buffer:C,type:t.FLOAT,size:2}]),O=i(t),I=i(t),P=i(t),D=i(t),R=i(t),B=a(t,[{buffer:O,type:t.FLOAT,size:3},{buffer:R,type:t.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:I,type:t.FLOAT,size:4},{buffer:P,type:t.FLOAT,size:2},{buffer:D,type:t.FLOAT,size:1}]),F=i(t),N=new k(t,p,r,s,l,c,f,h,d,b,g,y,x,_,w,L,M,C,z,O,R,I,P,D,B,F,a(t,[{buffer:F,type:t.FLOAT,size:3}]));return N.update(e),N}},{\"./lib/closest-point\":266,\"./lib/shaders\":267,colormap:114,\"gl-buffer\":230,\"gl-mat4/invert\":254,\"gl-mat4/multiply\":256,\"gl-shader\":288,\"gl-texture2d\":305,\"gl-vao\":310,ndarray:433,normals:436,\"simplicial-complex-contour\":494,\"typedarray-pool\":522}],269:[function(t,e,r){\"use strict\";e.exports=function(t){var e=t.gl,r=n(e,[0,0,0,1,1,0,1,1]),s=i(e,a.boxVert,a.lineFrag);return new o(t,r,s)};var n=t(\"gl-buffer\"),i=t(\"gl-shader\"),a=t(\"./shaders\");function o(t,e,r){this.plot=t,this.vbo=e,this.shader=r}var s,l,c=o.prototype;c.bind=function(){var t=this.shader;this.vbo.bind(),this.shader.bind(),t.attributes.coord.pointer(),t.uniforms.screenBox=this.plot.screenBox},c.drawBox=(s=[0,0],l=[0,0],function(t,e,r,n,i){var a=this.plot,o=this.shader,c=a.gl;s[0]=t,s[1]=e,l[0]=r,l[1]=n,o.uniforms.lo=s,o.uniforms.hi=l,o.uniforms.color=i,c.drawArrays(c.TRIANGLE_STRIP,0,4)}),c.dispose=function(){this.vbo.dispose(),this.shader.dispose()}},{\"./shaders\":272,\"gl-buffer\":230,\"gl-shader\":288}],270:[function(t,e,r){\"use strict\";e.exports=function(t){var e=t.gl,r=n(e),a=i(e,o.gridVert,o.gridFrag),l=i(e,o.tickVert,o.gridFrag);return new s(t,r,a,l)};var n=t(\"gl-buffer\"),i=t(\"gl-shader\"),a=t(\"binary-search-bounds\"),o=t(\"./shaders\");function s(t,e,r,n){this.plot=t,this.vbo=e,this.shader=r,this.tickShader=n,this.ticks=[[],[]]}function l(t,e){return t-e}var c,u,f,h,p,d=s.prototype;d.draw=(c=[0,0],u=[0,0],f=[0,0],function(){for(var t=this.plot,e=this.vbo,r=this.shader,n=this.ticks,i=t.gl,a=t._tickBounds,o=t.dataBox,s=t.viewBox,l=t.gridLineWidth,h=t.gridLineColor,p=t.gridLineEnable,d=t.pixelRatio,g=0;g<2;++g){var v=a[g],m=a[g+2]-v,y=.5*(o[g+2]+o[g]),x=o[g+2]-o[g];u[g]=2*m/x,c[g]=2*(v-y)/x}r.bind(),e.bind(),r.attributes.dataCoord.pointer(),r.uniforms.dataShift=c,r.uniforms.dataScale=u;var b=0;for(g=0;g<2;++g){f[0]=f[1]=0,f[g]=1,r.uniforms.dataAxis=f,r.uniforms.lineWidth=l[g]/(s[g+2]-s[g])*d,r.uniforms.color=h[g];var _=6*n[g].length;p[g]&&_&&i.drawArrays(i.TRIANGLES,b,_),b+=_}}),d.drawTickMarks=function(){var t=[0,0],e=[0,0],r=[1,0],n=[0,1],i=[0,0],o=[0,0];return function(){for(var s=this.plot,c=this.vbo,u=this.tickShader,f=this.ticks,h=s.gl,p=s._tickBounds,d=s.dataBox,g=s.viewBox,v=s.pixelRatio,m=s.screenBox,y=m[2]-m[0],x=m[3]-m[1],b=g[2]-g[0],_=g[3]-g[1],w=0;w<2;++w){var k=p[w],M=p[w+2]-k,A=.5*(d[w+2]+d[w]),T=d[w+2]-d[w];e[w]=2*M/T,t[w]=2*(k-A)/T}e[0]*=b/y,t[0]*=b/y,e[1]*=_/x,t[1]*=_/x,u.bind(),c.bind(),u.attributes.dataCoord.pointer();var S=u.uniforms;S.dataShift=t,S.dataScale=e;var E=s.tickMarkLength,C=s.tickMarkWidth,L=s.tickMarkColor,z=6*f[0].length,O=Math.min(a.ge(f[0],(d[0]-p[0])/(p[2]-p[0]),l),f[0].length),I=Math.min(a.gt(f[0],(d[2]-p[0])/(p[2]-p[0]),l),f[0].length),P=0+6*O,D=6*Math.max(0,I-O),R=Math.min(a.ge(f[1],(d[1]-p[1])/(p[3]-p[1]),l),f[1].length),B=Math.min(a.gt(f[1],(d[3]-p[1])/(p[3]-p[1]),l),f[1].length),F=z+6*R,N=6*Math.max(0,B-R);i[0]=2*(g[0]-E[1])/y-1,i[1]=(g[3]+g[1])/x-1,o[0]=E[1]*v/y,o[1]=C[1]*v/x,N&&(S.color=L[1],S.tickScale=o,S.dataAxis=n,S.screenOffset=i,h.drawArrays(h.TRIANGLES,F,N)),i[0]=(g[2]+g[0])/y-1,i[1]=2*(g[1]-E[0])/x-1,o[0]=C[0]*v/y,o[1]=E[0]*v/x,D&&(S.color=L[0],S.tickScale=o,S.dataAxis=r,S.screenOffset=i,h.drawArrays(h.TRIANGLES,P,D)),i[0]=2*(g[2]+E[3])/y-1,i[1]=(g[3]+g[1])/x-1,o[0]=E[3]*v/y,o[1]=C[3]*v/x,N&&(S.color=L[3],S.tickScale=o,S.dataAxis=n,S.screenOffset=i,h.drawArrays(h.TRIANGLES,F,N)),i[0]=(g[2]+g[0])/y-1,i[1]=2*(g[3]+E[2])/x-1,o[0]=C[2]*v/y,o[1]=E[2]*v/x,D&&(S.color=L[2],S.tickScale=o,S.dataAxis=r,S.screenOffset=i,h.drawArrays(h.TRIANGLES,P,D))}}(),d.update=(h=[1,1,-1,-1,1,-1],p=[1,-1,1,1,-1,-1],function(t){for(var e=t.ticks,r=t.bounds,n=new Float32Array(18*(e[0].length+e[1].length)),i=(this.plot.zeroLineEnable,0),a=[[],[]],o=0;o<2;++o)for(var s=a[o],l=e[o],c=r[o],u=r[o+2],f=0;f<l.length;++f){var d=(l[f].x-c)/(u-c);s.push(d);for(var g=0;g<6;++g)n[i++]=d,n[i++]=h[g],n[i++]=p[g]}this.ticks=a,this.vbo.update(n)}),d.dispose=function(){this.vbo.dispose(),this.shader.dispose(),this.tickShader.dispose()}},{\"./shaders\":272,\"binary-search-bounds\":274,\"gl-buffer\":230,\"gl-shader\":288}],271:[function(t,e,r){\"use strict\";e.exports=function(t){var e=t.gl,r=n(e,[-1,-1,-1,1,1,-1,1,1]),s=i(e,a.lineVert,a.lineFrag);return new o(t,r,s)};var n=t(\"gl-buffer\"),i=t(\"gl-shader\"),a=t(\"./shaders\");function o(t,e,r){this.plot=t,this.vbo=e,this.shader=r}var s,l,c=o.prototype;c.bind=function(){var t=this.shader;this.vbo.bind(),this.shader.bind(),t.attributes.coord.pointer(),t.uniforms.screenBox=this.plot.screenBox},c.drawLine=(s=[0,0],l=[0,0],function(t,e,r,n,i,a){var o=this.plot,c=this.shader,u=o.gl;s[0]=t,s[1]=e,l[0]=r,l[1]=n,c.uniforms.start=s,c.uniforms.end=l,c.uniforms.width=i*o.pixelRatio,c.uniforms.color=a,u.drawArrays(u.TRIANGLE_STRIP,0,4)}),c.dispose=function(){this.vbo.dispose(),this.shader.dispose()}},{\"./shaders\":272,\"gl-buffer\":230,\"gl-shader\":288}],272:[function(t,e,r){\"use strict\";var n=t(\"glslify\"),i=n([\"precision lowp float;\\n#define GLSLIFY 1\\nuniform vec4 color;\\nvoid main() {\\n gl_FragColor = vec4(color.xyz * color.w, color.w);\\n}\\n\"]);e.exports={lineVert:n([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute vec2 coord;\\n\\nuniform vec4 screenBox;\\nuniform vec2 start, end;\\nuniform float width;\\n\\nvec2 perp(vec2 v) {\\n return vec2(v.y, -v.x);\\n}\\n\\nvec2 screen(vec2 v) {\\n return 2.0 * (v - screenBox.xy) / (screenBox.zw - screenBox.xy) - 1.0;\\n}\\n\\nvoid main() {\\n vec2 delta = normalize(perp(start - end));\\n vec2 offset = mix(start, end, 0.5 * (coord.y+1.0));\\n gl_Position = vec4(screen(offset + 0.5 * width * delta * coord.x), 0, 1);\\n}\\n\"]),lineFrag:i,textVert:n([\"#define GLSLIFY 1\\nattribute vec3 textCoordinate;\\n\\nuniform vec2 dataScale, dataShift, dataAxis, screenOffset, textScale;\\nuniform float angle;\\n\\nvoid main() {\\n float dataOffset = textCoordinate.z;\\n vec2 glyphOffset = textCoordinate.xy;\\n mat2 glyphMatrix = mat2(cos(angle), sin(angle), -sin(angle), cos(angle));\\n vec2 screenCoordinate = dataAxis * (dataScale * dataOffset + dataShift) +\\n glyphMatrix * glyphOffset * textScale + screenOffset;\\n gl_Position = vec4(screenCoordinate, 0, 1);\\n}\\n\"]),textFrag:i,gridVert:n([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute vec3 dataCoord;\\n\\nuniform vec2 dataAxis, dataShift, dataScale;\\nuniform float lineWidth;\\n\\nvoid main() {\\n vec2 pos = dataAxis * (dataScale * dataCoord.x + dataShift);\\n pos += 10.0 * dataCoord.y * vec2(dataAxis.y, -dataAxis.x) + dataCoord.z * lineWidth;\\n gl_Position = vec4(pos, 0, 1);\\n}\\n\"]),gridFrag:i,boxVert:n([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute vec2 coord;\\n\\nuniform vec4 screenBox;\\nuniform vec2 lo, hi;\\n\\nvec2 screen(vec2 v) {\\n return 2.0 * (v - screenBox.xy) / (screenBox.zw - screenBox.xy) - 1.0;\\n}\\n\\nvoid main() {\\n gl_Position = vec4(screen(mix(lo, hi, coord)), 0, 1);\\n}\\n\"]),tickVert:n([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute vec3 dataCoord;\\n\\nuniform vec2 dataAxis, dataShift, dataScale, screenOffset, tickScale;\\n\\nvoid main() {\\n vec2 pos = dataAxis * (dataScale * dataCoord.x + dataShift);\\n gl_Position = vec4(pos + tickScale*dataCoord.yz + screenOffset, 0, 1);\\n}\\n\"])}},{glslify:392}],273:[function(t,e,r){\"use strict\";e.exports=function(t){var e=t.gl,r=n(e),a=i(e,s.textVert,s.textFrag);return new l(t,r,a)};var n=t(\"gl-buffer\"),i=t(\"gl-shader\"),a=t(\"text-cache\"),o=t(\"binary-search-bounds\"),s=t(\"./shaders\");function l(t,e,r){this.plot=t,this.vbo=e,this.shader=r,this.tickOffset=[[],[]],this.tickX=[[],[]],this.labelOffset=[0,0],this.labelCount=[0,0]}var c,u,f,h,p,d,g=l.prototype;g.drawTicks=(c=[0,0],u=[0,0],f=[0,0],function(t){var e=this.plot,r=this.shader,n=this.tickX[t],i=this.tickOffset[t],a=e.gl,s=e.viewBox,l=e.dataBox,h=e.screenBox,p=e.pixelRatio,d=e.tickEnable,g=e.tickPad,v=e.tickColor,m=e.tickAngle,y=e.labelEnable,x=e.labelPad,b=e.labelColor,_=e.labelAngle,w=this.labelOffset[t],k=this.labelCount[t],M=o.lt(n,l[t]),A=o.le(n,l[t+2]);c[0]=c[1]=0,c[t]=1,u[t]=(s[2+t]+s[t])/(h[2+t]-h[t])-1;var T=2/h[2+(1^t)]-h[1^t];u[1^t]=T*s[1^t]-1,d[t]&&(u[1^t]-=T*p*g[t],M<A&&i[A]>i[M]&&(r.uniforms.dataAxis=c,r.uniforms.screenOffset=u,r.uniforms.color=v[t],r.uniforms.angle=m[t],a.drawArrays(a.TRIANGLES,i[M],i[A]-i[M]))),y[t]&&k&&(u[1^t]-=T*p*x[t],r.uniforms.dataAxis=f,r.uniforms.screenOffset=u,r.uniforms.color=b[t],r.uniforms.angle=_[t],a.drawArrays(a.TRIANGLES,w,k)),u[1^t]=T*s[2+(1^t)]-1,d[t+2]&&(u[1^t]+=T*p*g[t+2],M<A&&i[A]>i[M]&&(r.uniforms.dataAxis=c,r.uniforms.screenOffset=u,r.uniforms.color=v[t+2],r.uniforms.angle=m[t+2],a.drawArrays(a.TRIANGLES,i[M],i[A]-i[M]))),y[t+2]&&k&&(u[1^t]+=T*p*x[t+2],r.uniforms.dataAxis=f,r.uniforms.screenOffset=u,r.uniforms.color=b[t+2],r.uniforms.angle=_[t+2],a.drawArrays(a.TRIANGLES,w,k))}),g.drawTitle=function(){var t=[0,0],e=[0,0];return function(){var r=this.plot,n=this.shader,i=r.gl,a=r.screenBox,o=r.titleCenter,s=r.titleAngle,l=r.titleColor,c=r.pixelRatio;if(this.titleCount){for(var u=0;u<2;++u)e[u]=2*(o[u]*c-a[u])/(a[2+u]-a[u])-1;n.bind(),n.uniforms.dataAxis=t,n.uniforms.screenOffset=e,n.uniforms.angle=s,n.uniforms.color=l,i.drawArrays(i.TRIANGLES,this.titleOffset,this.titleCount)}}}(),g.bind=(h=[0,0],p=[0,0],d=[0,0],function(){var t=this.plot,e=this.shader,r=t._tickBounds,n=t.dataBox,i=t.screenBox,a=t.viewBox;e.bind();for(var o=0;o<2;++o){var s=r[o],l=r[o+2]-s,c=.5*(n[o+2]+n[o]),u=n[o+2]-n[o],f=a[o],g=a[o+2]-f,v=i[o],m=i[o+2]-v;p[o]=2*l/u*g/m,h[o]=2*(s-c)/u*g/m}d[1]=2*t.pixelRatio/(i[3]-i[1]),d[0]=d[1]*(i[3]-i[1])/(i[2]-i[0]),e.uniforms.dataScale=p,e.uniforms.dataShift=h,e.uniforms.textScale=d,this.vbo.bind(),e.attributes.textCoordinate.pointer()}),g.update=function(t){var e,r,n,i,o,s=[],l=t.ticks,c=t.bounds;for(o=0;o<2;++o){var u=[Math.floor(s.length/3)],f=[-1/0],h=l[o];for(e=0;e<h.length;++e){var p=h[e],d=p.x,g=p.text,v=p.font||\"sans-serif\";i=p.fontSize||12;for(var m=1/(c[o+2]-c[o]),y=c[o],x=g.split(\"\\n\"),b=0;b<x.length;b++)for(n=a(v,x[b]).data,r=0;r<n.length;r+=2)s.push(n[r]*i,-n[r+1]*i-b*i*1.2,(d-y)*m);u.push(Math.floor(s.length/3)),f.push(d)}this.tickOffset[o]=u,this.tickX[o]=f}for(o=0;o<2;++o){for(this.labelOffset[o]=Math.floor(s.length/3),n=a(t.labelFont[o],t.labels[o],{textAlign:\"center\"}).data,i=t.labelSize[o],e=0;e<n.length;e+=2)s.push(n[e]*i,-n[e+1]*i,0);this.labelCount[o]=Math.floor(s.length/3)-this.labelOffset[o]}for(this.titleOffset=Math.floor(s.length/3),n=a(t.titleFont,t.title).data,i=t.titleSize,e=0;e<n.length;e+=2)s.push(n[e]*i,-n[e+1]*i,0);this.titleCount=Math.floor(s.length/3)-this.titleOffset,this.vbo.update(s)},g.dispose=function(){this.vbo.dispose(),this.shader.dispose()}},{\"./shaders\":272,\"binary-search-bounds\":274,\"gl-buffer\":230,\"gl-shader\":288,\"text-cache\":513}],274:[function(t,e,r){arguments[4][99][0].apply(r,arguments)},{dup:99}],275:[function(t,e,r){\"use strict\";e.exports=function(t){var e=t.gl,r=n(e,[e.drawingBufferWidth,e.drawingBufferHeight]),c=new l(e,r);return c.grid=i(c),c.text=a(c),c.line=o(c),c.box=s(c),c.update(t),c};var n=t(\"gl-select-static\"),i=t(\"./lib/grid\"),a=t(\"./lib/text\"),o=t(\"./lib/line\"),s=t(\"./lib/box\");function l(t,e){this.gl=t,this.pickBuffer=e,this.screenBox=[0,0,t.drawingBufferWidth,t.drawingBufferHeight],this.viewBox=[0,0,0,0],this.dataBox=[-10,-10,10,10],this.gridLineEnable=[!0,!0],this.gridLineWidth=[1,1],this.gridLineColor=[[0,0,0,1],[0,0,0,1]],this.pixelRatio=1,this.tickMarkLength=[0,0,0,0],this.tickMarkWidth=[0,0,0,0],this.tickMarkColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[15,15,15,15],this.tickAngle=[0,0,0,0],this.tickEnable=[!0,!0,!0,!0],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[15,15,15,15],this.labelAngle=[0,Math.PI/2,0,3*Math.PI/2],this.labelEnable=[!0,!0,!0,!0],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.titleCenter=[0,0],this.titleEnable=!0,this.titleAngle=0,this.titleColor=[0,0,0,1],this.borderColor=[0,0,0,0],this.backgroundColor=[0,0,0,0],this.zeroLineEnable=[!0,!0],this.zeroLineWidth=[4,4],this.zeroLineColor=[[0,0,0,1],[0,0,0,1]],this.borderLineEnable=[!0,!0,!0,!0],this.borderLineWidth=[2,2,2,2],this.borderLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.grid=null,this.text=null,this.line=null,this.box=null,this.objects=[],this.overlays=[],this._tickBounds=[1/0,1/0,-1/0,-1/0],this.static=!1,this.dirty=!1,this.pickDirty=!1,this.pickDelay=120,this.pickRadius=10,this._pickTimeout=null,this._drawPick=this.drawPick.bind(this),this._depthCounter=0}var c=l.prototype;function u(t){for(var e=t.slice(),r=0;r<e.length;++r)e[r]=e[r].slice();return e}function f(t,e){return t.x-e.x}c.setDirty=function(){this.dirty=this.pickDirty=!0},c.setOverlayDirty=function(){this.dirty=!0},c.nextDepthValue=function(){return this._depthCounter++/65536},c.draw=function(){var t=this.gl,e=this.screenBox,r=this.viewBox,n=this.dataBox,i=this.pixelRatio,a=this.grid,o=this.line,s=this.text,l=this.objects;if(this._depthCounter=0,this.pickDirty&&(this._pickTimeout&&clearTimeout(this._pickTimeout),this.pickDirty=!1,this._pickTimeout=setTimeout(this._drawPick,this.pickDelay)),this.dirty){if(this.dirty=!1,t.bindFramebuffer(t.FRAMEBUFFER,null),t.enable(t.SCISSOR_TEST),t.disable(t.DEPTH_TEST),t.depthFunc(t.LESS),t.depthMask(!1),t.enable(t.BLEND),t.blendEquation(t.FUNC_ADD,t.FUNC_ADD),t.blendFunc(t.ONE,t.ONE_MINUS_SRC_ALPHA),this.borderColor){t.scissor(e[0],e[1],e[2]-e[0],e[3]-e[1]);var c=this.borderColor;t.clearColor(c[0]*c[3],c[1]*c[3],c[2]*c[3],c[3]),t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT)}t.scissor(r[0],r[1],r[2]-r[0],r[3]-r[1]),t.viewport(r[0],r[1],r[2]-r[0],r[3]-r[1]);var u=this.backgroundColor;t.clearColor(u[0]*u[3],u[1]*u[3],u[2]*u[3],u[3]),t.clear(t.COLOR_BUFFER_BIT),a.draw();var f=this.zeroLineEnable,h=this.zeroLineColor,p=this.zeroLineWidth;if(f[0]||f[1]){o.bind();for(var d=0;d<2;++d)if(f[d]&&n[d]<=0&&n[d+2]>=0){var g=e[d]-n[d]*(e[d+2]-e[d])/(n[d+2]-n[d]);0===d?o.drawLine(g,e[1],g,e[3],p[d],h[d]):o.drawLine(e[0],g,e[2],g,p[d],h[d])}}for(d=0;d<l.length;++d)l[d].draw();t.viewport(e[0],e[1],e[2]-e[0],e[3]-e[1]),t.scissor(e[0],e[1],e[2]-e[0],e[3]-e[1]),this.grid.drawTickMarks(),o.bind();var v=this.borderLineEnable,m=this.borderLineWidth,y=this.borderLineColor;for(v[1]&&o.drawLine(r[0],r[1]-.5*m[1]*i,r[0],r[3]+.5*m[3]*i,m[1],y[1]),v[0]&&o.drawLine(r[0]-.5*m[0]*i,r[1],r[2]+.5*m[2]*i,r[1],m[0],y[0]),v[3]&&o.drawLine(r[2],r[1]-.5*m[1]*i,r[2],r[3]+.5*m[3]*i,m[3],y[3]),v[2]&&o.drawLine(r[0]-.5*m[0]*i,r[3],r[2]+.5*m[2]*i,r[3],m[2],y[2]),s.bind(),d=0;d<2;++d)s.drawTicks(d);this.titleEnable&&s.drawTitle();var x=this.overlays;for(d=0;d<x.length;++d)x[d].draw();t.disable(t.SCISSOR_TEST),t.disable(t.BLEND),t.depthMask(!0)}},c.drawPick=function(){if(!this.static){var t=this.pickBuffer;this.gl;this._pickTimeout=null,t.begin();for(var e=1,r=this.objects,n=0;n<r.length;++n)e=r[n].drawPick(e);t.end()}},c.pick=function(t,e){if(!this.static){var r=this.pixelRatio,n=this.pickPixelRatio,i=this.viewBox,a=0|Math.round((t-i[0]/r)*n),o=0|Math.round((e-i[1]/r)*n),s=this.pickBuffer.query(a,o,this.pickRadius);if(!s)return null;for(var l=s.id+(s.value[0]<<8)+(s.value[1]<<16)+(s.value[2]<<24),c=this.objects,u=0;u<c.length;++u){var f=c[u].pick(a,o,l);if(f)return f}return null}},c.setScreenBox=function(t){var e=this.screenBox,r=this.pixelRatio;e[0]=0|Math.round(t[0]*r),e[1]=0|Math.round(t[1]*r),e[2]=0|Math.round(t[2]*r),e[3]=0|Math.round(t[3]*r),this.setDirty()},c.setDataBox=function(t){var e=this.dataBox;(e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3])&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],this.setDirty())},c.setViewBox=function(t){var e=this.pixelRatio,r=this.viewBox;r[0]=0|Math.round(t[0]*e),r[1]=0|Math.round(t[1]*e),r[2]=0|Math.round(t[2]*e),r[3]=0|Math.round(t[3]*e);var n=this.pickPixelRatio;this.pickBuffer.shape=[0|Math.round((t[2]-t[0])*n),0|Math.round((t[3]-t[1])*n)],this.setDirty()},c.update=function(t){t=t||{};var e=this.gl;this.pixelRatio=t.pixelRatio||1;var r=this.pixelRatio;this.pickPixelRatio=Math.max(r,1),this.setScreenBox(t.screenBox||[0,0,e.drawingBufferWidth/r,e.drawingBufferHeight/r]);this.screenBox;this.setViewBox(t.viewBox||[.125*(this.screenBox[2]-this.screenBox[0])/r,.125*(this.screenBox[3]-this.screenBox[1])/r,.875*(this.screenBox[2]-this.screenBox[0])/r,.875*(this.screenBox[3]-this.screenBox[1])/r]);var n=this.viewBox,i=(n[2]-n[0])/(n[3]-n[1]);this.setDataBox(t.dataBox||[-10,-10/i,10,10/i]),this.borderColor=!1!==t.borderColor&&(t.borderColor||[0,0,0,0]).slice(),this.backgroundColor=(t.backgroundColor||[0,0,0,0]).slice(),this.gridLineEnable=(t.gridLineEnable||[!0,!0]).slice(),this.gridLineWidth=(t.gridLineWidth||[1,1]).slice(),this.gridLineColor=u(t.gridLineColor||[[.5,.5,.5,1],[.5,.5,.5,1]]),this.zeroLineEnable=(t.zeroLineEnable||[!0,!0]).slice(),this.zeroLineWidth=(t.zeroLineWidth||[4,4]).slice(),this.zeroLineColor=u(t.zeroLineColor||[[0,0,0,1],[0,0,0,1]]),this.tickMarkLength=(t.tickMarkLength||[0,0,0,0]).slice(),this.tickMarkWidth=(t.tickMarkWidth||[0,0,0,0]).slice(),this.tickMarkColor=u(t.tickMarkColor||[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]]),this.titleCenter=(t.titleCenter||[.5*(n[0]+n[2])/r,(n[3]+120)/r]).slice(),this.titleEnable=!(\"titleEnable\"in t&&!t.titleEnable),this.titleAngle=t.titleAngle||0,this.titleColor=(t.titleColor||[0,0,0,1]).slice(),this.labelPad=(t.labelPad||[15,15,15,15]).slice(),this.labelAngle=(t.labelAngle||[0,Math.PI/2,0,3*Math.PI/2]).slice(),this.labelEnable=(t.labelEnable||[!0,!0,!0,!0]).slice(),this.labelColor=u(t.labelColor||[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]]),this.tickPad=(t.tickPad||[15,15,15,15]).slice(),this.tickAngle=(t.tickAngle||[0,0,0,0]).slice(),this.tickEnable=(t.tickEnable||[!0,!0,!0,!0]).slice(),this.tickColor=u(t.tickColor||[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]]),this.borderLineEnable=(t.borderLineEnable||[!0,!0,!0,!0]).slice(),this.borderLineWidth=(t.borderLineWidth||[2,2,2,2]).slice(),this.borderLineColor=u(t.borderLineColor||[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]]);var a=t.ticks||[[],[]],o=this._tickBounds;o[0]=o[1]=1/0,o[2]=o[3]=-1/0;for(var s=0;s<2;++s){var l=a[s].slice(0);0!==l.length&&(l.sort(f),o[s]=Math.min(o[s],l[0].x),o[s+2]=Math.max(o[s+2],l[l.length-1].x))}this.grid.update({bounds:o,ticks:a}),this.text.update({bounds:o,ticks:a,labels:t.labels||[\"x\",\"y\"],labelSize:t.labelSize||[12,12],labelFont:t.labelFont||[\"sans-serif\",\"sans-serif\"],title:t.title||\"\",titleSize:t.titleSize||18,titleFont:t.titleFont||\"sans-serif\"}),this.static=!!t.static,this.setDirty()},c.dispose=function(){this.box.dispose(),this.grid.dispose(),this.text.dispose(),this.line.dispose();for(var t=this.objects.length-1;t>=0;--t)this.objects[t].dispose();this.objects.length=0;for(t=this.overlays.length-1;t>=0;--t)this.overlays[t].dispose();this.overlays.length=0,this.gl=null},c.addObject=function(t){this.objects.indexOf(t)<0&&(this.objects.push(t),this.setDirty())},c.removeObject=function(t){for(var e=this.objects,r=0;r<e.length;++r)if(e[r]===t){e.splice(r,1),this.setDirty();break}},c.addOverlay=function(t){this.overlays.indexOf(t)<0&&(this.overlays.push(t),this.setOverlayDirty())},c.removeOverlay=function(t){for(var e=this.overlays,r=0;r<e.length;++r)if(e[r]===t){e.splice(r,1),this.setOverlayDirty();break}}},{\"./lib/box\":269,\"./lib/grid\":270,\"./lib/line\":271,\"./lib/text\":273,\"gl-select-static\":287}],276:[function(t,e,r){var n=t(\"glslify\"),i=t(\"gl-shader\"),a=n([\"precision mediump float;\\n#define GLSLIFY 1\\nattribute vec2 position;\\nvarying vec2 uv;\\nvoid main() {\\n uv = position;\\n gl_Position = vec4(position, 0, 1);\\n}\"]),o=n([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nuniform sampler2D accumBuffer;\\nvarying vec2 uv;\\n\\nvoid main() {\\n vec4 accum = texture2D(accumBuffer, 0.5 * (uv + 1.0));\\n gl_FragColor = min(vec4(1,1,1,1), accum);\\n}\"]);e.exports=function(t){return i(t,a,o,null,[{name:\"position\",type:\"vec2\"}])}},{\"gl-shader\":288,glslify:392}],277:[function(t,e,r){\"use strict\";e.exports=function(t){var e=!1,r=((t=t||{}).pixelRatio||parseFloat(window.devicePixelRatio),t.canvas);if(!r)if(r=document.createElement(\"canvas\"),t.container){var m=t.container;m.appendChild(r)}else document.body.appendChild(r);var y=t.gl;y||(y=function(t,e){var r=null;try{(r=t.getContext(\"webgl\",e))||(r=t.getContext(\"experimental-webgl\",e))}catch(t){return null}return r}(r,t.glOptions||{premultipliedAlpha:!0,antialias:!0,preserveDrawingBuffer:p}));if(!y)throw new Error(\"webgl not supported\");var x=t.bounds||[[-10,-10,-10],[10,10,10]],b=new d,_=l(y,[y.drawingBufferWidth,y.drawingBufferHeight],{preferFloat:!p}),w=h(y),k=t.camera||{eye:[2,0,0],center:[0,0,0],up:[0,1,0],zoomMin:.1,zoomMax:100,mode:\"turntable\"},M=t.axes||{},A=i(y,M);A.enable=!M.disable;var T=t.spikes||{},S=o(y,T),E=[],C=[],L=[],z=[],O=!0,I=!0,P=new Array(16),D=new Array(16),R={view:null,projection:P,model:D},I=!0,B=[y.drawingBufferWidth,y.drawingBufferHeight],F={gl:y,contextLost:!1,pixelRatio:t.pixelRatio||parseFloat(window.devicePixelRatio),canvas:r,selection:b,camera:n(r,k),axes:A,axesPixels:null,spikes:S,bounds:x,objects:E,shape:B,aspect:t.aspectRatio||[1,1,1],pickRadius:t.pickRadius||10,zNear:t.zNear||.01,zFar:t.zFar||1e3,fovy:t.fovy||Math.PI/4,clearColor:t.clearColor||[0,0,0,0],autoResize:v(t.autoResize),autoBounds:v(t.autoBounds),autoScale:!!t.autoScale,autoCenter:v(t.autoCenter),clipToBounds:v(t.clipToBounds),snapToData:!!t.snapToData,onselect:t.onselect||null,onrender:t.onrender||null,onclick:t.onclick||null,cameraParams:R,oncontextloss:null,mouseListener:null},N=[y.drawingBufferWidth/F.pixelRatio|0,y.drawingBufferHeight/F.pixelRatio|0];function j(){if(!e&&F.autoResize){var t=r.parentNode,n=1,i=1;t&&t!==document.body?(n=t.clientWidth,i=t.clientHeight):(n=window.innerWidth,i=window.innerHeight);var a=0|Math.ceil(n*F.pixelRatio),o=0|Math.ceil(i*F.pixelRatio);if(a!==r.width||o!==r.height){r.width=a,r.height=o;var s=r.style;s.position=s.position||\"absolute\",s.left=\"0px\",s.top=\"0px\",s.width=n+\"px\",s.height=i+\"px\",O=!0}}}F.autoResize&&j();function V(){for(var t=E.length,e=z.length,r=0;r<e;++r)L[r]=0;t:for(var r=0;r<t;++r){var n=E[r],i=n.pickSlots;if(i){for(var a=0;a<e;++a)if(L[a]+i<255){C[r]=a,n.setPickBase(L[a]+1),L[a]+=i;continue t}var o=s(y,B);C[r]=e,z.push(o),L.push(i),n.setPickBase(1),e+=1}else C[r]=-1}for(;e>0&&0===L[e-1];)L.pop(),z.pop().dispose()}window.addEventListener(\"resize\",j),F.update=function(t){e||(t=t||{},O=!0,I=!0)},F.add=function(t){e||(t.axes=A,E.push(t),C.push(-1),O=!0,I=!0,V())},F.remove=function(t){if(!e){var r=E.indexOf(t);r<0||(E.splice(r,1),C.pop(),O=!0,I=!0,V())}},F.dispose=function(){if(!e&&(e=!0,window.removeEventListener(\"resize\",j),r.removeEventListener(\"webglcontextlost\",H),F.mouseListener.enabled=!1,!F.contextLost)){A.dispose(),S.dispose();for(var t=0;t<E.length;++t)E[t].dispose();_.dispose();for(var t=0;t<z.length;++t)z[t].dispose();w.dispose(),y=null,A=null,S=null,E=[]}};var U=!1,q=0;function H(){if(F.contextLost)return!0;y.isContextLost()&&(F.contextLost=!0,F.mouseListener.enabled=!1,F.selection.object=null,F.oncontextloss&&F.oncontextloss())}F.mouseListener=u(r,function(t,r,n){if(!e){var i=z.length,a=E.length,o=b.object;b.distance=1/0,b.mouse[0]=r,b.mouse[1]=n,b.object=null,b.screen=null,b.dataCoordinate=b.dataPosition=null;var s=!1;if(t&&q)U=!0;else{U&&(I=!0),U=!1;for(var l=0;l<i;++l){var c=z[l].query(r,N[1]-n-1,F.pickRadius);if(c){if(c.distance>b.distance)continue;for(var u=0;u<a;++u){var f=E[u];if(C[u]===l){var h=f.pick(c);h&&(b.buttons=t,b.screen=c.coord,b.distance=c.distance,b.object=f,b.index=h.distance,b.dataPosition=h.position,b.dataCoordinate=h.dataCoordinate,b.data=h,s=!0)}}}}}o&&o!==b.object&&(o.highlight&&o.highlight(null),O=!0),b.object&&(b.object.highlight&&b.object.highlight(b.data),O=!0),(s=s||b.object!==o)&&F.onselect&&F.onselect(b),1&t&&!(1&q)&&F.onclick&&F.onclick(b),q=t}}),r.addEventListener(\"webglcontextlost\",H);var G=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],W=[G[0].slice(),G[1].slice()];function Y(){if(!H()){j();var t=F.camera.tick();R.view=F.camera.matrix,O=O||t,I=I||t,A.pixelRatio=F.pixelRatio,S.pixelRatio=F.pixelRatio;var e=E.length,r=G[0],n=G[1];r[0]=r[1]=r[2]=1/0,n[0]=n[1]=n[2]=-1/0;for(var i=0;i<e;++i){var o=E[i];o.pixelRatio=F.pixelRatio,o.axes=F.axes,O=O||!!o.dirty,I=I||!!o.dirty;var s=o.bounds;if(s)for(var l=s[0],u=s[1],h=0;h<3;++h)r[h]=Math.min(r[h],l[h]),n[h]=Math.max(n[h],u[h])}var p=F.bounds;if(F.autoBounds)for(var h=0;h<3;++h){if(n[h]<r[h])r[h]=-1,n[h]=1;else{r[h]===n[h]&&(r[h]-=1,n[h]+=1);var d=.05*(n[h]-r[h]);r[h]=r[h]-d,n[h]=n[h]+d}p[0][h]=r[h],p[1][h]=n[h]}for(var v=!1,h=0;h<3;++h)v=v||W[0][h]!==p[0][h]||W[1][h]!==p[1][h],W[0][h]=p[0][h],W[1][h]=p[1][h];if(I=I||v,O=O||v){if(v){for(var m=[0,0,0],i=0;i<3;++i)m[i]=g((p[1][i]-p[0][i])/10);A.autoTicks?A.update({bounds:p,tickSpacing:m}):A.update({bounds:p})}var x=y.drawingBufferWidth,k=y.drawingBufferHeight;B[0]=x,B[1]=k,N[0]=0|Math.max(x/F.pixelRatio,1),N[1]=0|Math.max(k/F.pixelRatio,1),f(P,F.fovy,x/k,F.zNear,F.zFar);for(var i=0;i<16;++i)D[i]=0;D[15]=1;for(var M=0,i=0;i<3;++i)M=Math.max(M,p[1][i]-p[0][i]);for(var i=0;i<3;++i)F.autoScale?D[5*i]=F.aspect[i]/(p[1][i]-p[0][i]):D[5*i]=1/M,F.autoCenter&&(D[12+i]=.5*-D[5*i]*(p[0][i]+p[1][i]));for(var i=0;i<e;++i){var o=E[i];o.axesBounds=p,F.clipToBounds&&(o.clipBounds=p)}b.object&&(F.snapToData?S.position=b.dataCoordinate:S.position=b.dataPosition,S.bounds=p),I&&(I=!1,function(){if(H())return;y.colorMask(!0,!0,!0,!0),y.depthMask(!0),y.disable(y.BLEND),y.enable(y.DEPTH_TEST);for(var t=E.length,e=z.length,r=0;r<e;++r){var n=z[r];n.shape=N,n.begin();for(var i=0;i<t;++i)if(C[i]===r){var a=E[i];a.drawPick&&(a.pixelRatio=1,a.drawPick(R))}n.end()}}()),F.axesPixels=a(F.axes,R,x,k),F.onrender&&F.onrender(),y.bindFramebuffer(y.FRAMEBUFFER,null),y.viewport(0,0,x,k);var T=F.clearColor;y.clearColor(T[0],T[1],T[2],T[3]),y.clear(y.COLOR_BUFFER_BIT|y.DEPTH_BUFFER_BIT),y.depthMask(!0),y.colorMask(!0,!0,!0,!0),y.enable(y.DEPTH_TEST),y.depthFunc(y.LEQUAL),y.disable(y.BLEND),y.disable(y.CULL_FACE);var L=!1;A.enable&&(L=L||A.isTransparent(),A.draw(R)),S.axes=A,b.object&&S.draw(R),y.disable(y.CULL_FACE);for(var i=0;i<e;++i){var o=E[i];o.axes=A,o.pixelRatio=F.pixelRatio,o.isOpaque&&o.isOpaque()&&o.draw(R),o.isTransparent&&o.isTransparent()&&(L=!0)}if(L){_.shape=B,_.bind(),y.clear(y.DEPTH_BUFFER_BIT),y.colorMask(!1,!1,!1,!1),y.depthMask(!0),y.depthFunc(y.LESS),A.enable&&A.isTransparent()&&A.drawTransparent(R);for(var i=0;i<e;++i){var o=E[i];o.isOpaque&&o.isOpaque()&&o.draw(R)}y.enable(y.BLEND),y.blendEquation(y.FUNC_ADD),y.blendFunc(y.ONE,y.ONE_MINUS_SRC_ALPHA),y.colorMask(!0,!0,!0,!0),y.depthMask(!1),y.clearColor(0,0,0,0),y.clear(y.COLOR_BUFFER_BIT),A.isTransparent()&&A.drawTransparent(R);for(var i=0;i<e;++i){var o=E[i];o.isTransparent&&o.isTransparent()&&o.drawTransparent(R)}y.bindFramebuffer(y.FRAMEBUFFER,null),y.blendFunc(y.ONE,y.ONE_MINUS_SRC_ALPHA),y.disable(y.DEPTH_TEST),w.bind(),_.color[0].bind(0),w.uniforms.accumBuffer=0,c(y),y.disable(y.BLEND)}O=!1;for(var i=0;i<e;++i)E[i].dirty=!1}}}return function t(){e||F.contextLost||(Y(),requestAnimationFrame(t))}(),F.redraw=function(){e||(O=!0,Y())},F};var n=t(\"3d-view-controls\"),i=t(\"gl-axes3d\"),a=t(\"gl-axes3d/properties\"),o=t(\"gl-spikes3d\"),s=t(\"gl-select-static\"),l=t(\"gl-fbo\"),c=t(\"a-big-triangle\"),u=t(\"mouse-change\"),f=t(\"gl-mat4/perspective\"),h=t(\"./lib/shader\"),p=t(\"is-mobile\")({tablet:!0});function d(){this.mouse=[-1,-1],this.screen=null,this.distance=1/0,this.index=null,this.dataCoordinate=null,this.dataPosition=null,this.object=null,this.data=null}function g(t){var e=Math.round(Math.log(Math.abs(t))/Math.log(10));if(e<0){var r=Math.round(Math.pow(10,-e));return Math.ceil(t*r)/r}if(e>0){r=Math.round(Math.pow(10,e));return Math.ceil(t/r)*r}return Math.ceil(t)}function v(t){return\"boolean\"!=typeof t||t}},{\"./lib/shader\":276,\"3d-view-controls\":44,\"a-big-triangle\":47,\"gl-axes3d\":222,\"gl-axes3d/properties\":229,\"gl-fbo\":239,\"gl-mat4/perspective\":257,\"gl-select-static\":287,\"gl-spikes3d\":297,\"is-mobile\":403,\"mouse-change\":418}],278:[function(t,e,r){var n=t(\"glslify\");r.pointVertex=n([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute vec2 position;\\n\\nuniform mat3 matrix;\\nuniform float pointSize;\\nuniform float pointCloud;\\n\\nhighp float rand(vec2 co) {\\n highp float a = 12.9898;\\n highp float b = 78.233;\\n highp float c = 43758.5453;\\n highp float d = dot(co.xy, vec2(a, b));\\n highp float e = mod(d, 3.14);\\n return fract(sin(e) * c);\\n}\\n\\nvoid main() {\\n vec3 hgPosition = matrix * vec3(position, 1);\\n gl_Position = vec4(hgPosition.xy, 0, hgPosition.z);\\n // if we don't jitter the point size a bit, overall point cloud\\n // saturation 'jumps' on zooming, which is disturbing and confusing\\n gl_PointSize = pointSize * ((19.5 + rand(position)) / 20.0);\\n if(pointCloud != 0.0) { // pointCloud is truthy\\n // get the same square surface as circle would be\\n gl_PointSize *= 0.886;\\n }\\n}\"]),r.pointFragment=n([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nuniform vec4 color, borderColor;\\nuniform float centerFraction;\\nuniform float pointCloud;\\n\\nvoid main() {\\n float radius;\\n vec4 baseColor;\\n if(pointCloud != 0.0) { // pointCloud is truthy\\n if(centerFraction == 1.0) {\\n gl_FragColor = color;\\n } else {\\n gl_FragColor = mix(borderColor, color, centerFraction);\\n }\\n } else {\\n radius = length(2.0 * gl_PointCoord.xy - 1.0);\\n if(radius > 1.0) {\\n discard;\\n }\\n baseColor = mix(borderColor, color, step(radius, centerFraction));\\n gl_FragColor = vec4(baseColor.rgb * baseColor.a, baseColor.a);\\n }\\n}\\n\"]),r.pickVertex=n([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute vec2 position;\\nattribute vec4 pickId;\\n\\nuniform mat3 matrix;\\nuniform float pointSize;\\nuniform vec4 pickOffset;\\n\\nvarying vec4 fragId;\\n\\nvoid main() {\\n vec3 hgPosition = matrix * vec3(position, 1);\\n gl_Position = vec4(hgPosition.xy, 0, hgPosition.z);\\n gl_PointSize = pointSize;\\n\\n vec4 id = pickId + pickOffset;\\n id.y += floor(id.x / 256.0);\\n id.x -= floor(id.x / 256.0) * 256.0;\\n\\n id.z += floor(id.y / 256.0);\\n id.y -= floor(id.y / 256.0) * 256.0;\\n\\n id.w += floor(id.z / 256.0);\\n id.z -= floor(id.z / 256.0) * 256.0;\\n\\n fragId = id;\\n}\\n\"]),r.pickFragment=n([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nvarying vec4 fragId;\\n\\nvoid main() {\\n float radius = length(2.0 * gl_PointCoord.xy - 1.0);\\n if(radius > 1.0) {\\n discard;\\n }\\n gl_FragColor = fragId / 255.0;\\n}\\n\"])},{glslify:392}],279:[function(t,e,r){\"use strict\";var n=t(\"gl-shader\"),i=t(\"gl-buffer\"),a=t(\"typedarray-pool\"),o=t(\"./lib/shader\");function s(t,e,r,n,i){this.plot=t,this.offsetBuffer=e,this.pickBuffer=r,this.shader=n,this.pickShader=i,this.sizeMin=.5,this.sizeMinCap=2,this.sizeMax=20,this.areaRatio=1,this.pointCount=0,this.color=[1,0,0,1],this.borderColor=[0,0,0,1],this.blend=!1,this.pickOffset=0,this.points=null}e.exports=function(t,e){var r=t.gl,a=i(r),l=i(r),c=n(r,o.pointVertex,o.pointFragment),u=n(r,o.pickVertex,o.pickFragment),f=new s(t,a,l,c,u);return f.update(e),t.addObject(f),f};var l,c,u=s.prototype;u.dispose=function(){this.shader.dispose(),this.pickShader.dispose(),this.offsetBuffer.dispose(),this.pickBuffer.dispose(),this.plot.removeObject(this)},u.update=function(t){var e;function r(e,r){return e in t?t[e]:r}t=t||{},this.sizeMin=r(\"sizeMin\",.5),this.sizeMax=r(\"sizeMax\",20),this.color=r(\"color\",[1,0,0,1]).slice(),this.areaRatio=r(\"areaRatio\",1),this.borderColor=r(\"borderColor\",[0,0,0,1]).slice(),this.blend=r(\"blend\",!1);var n=t.positions.length>>>1,i=t.positions instanceof Float32Array,o=t.idToIndex instanceof Int32Array&&t.idToIndex.length>=n,s=t.positions,l=i?s:a.mallocFloat32(s.length),c=o?t.idToIndex:a.mallocInt32(n);if(i||l.set(s),!o)for(l.set(s),e=0;e<n;e++)c[e]=e;this.points=s,this.offsetBuffer.update(l),this.pickBuffer.update(c),i||a.free(l),o||a.free(c),this.pointCount=n,this.pickOffset=0},u.unifiedDraw=(l=[1,0,0,0,1,0,0,0,1],c=[0,0,0,0],function(t){var e=void 0!==t,r=e?this.pickShader:this.shader,n=this.plot.gl,i=this.plot.dataBox;if(0===this.pointCount)return t;var a=i[2]-i[0],o=i[3]-i[1],s=function(t,e){var r,n=0,i=t.length>>>1;for(r=0;r<i;r++){var a=t[2*r],o=t[2*r+1];a>=e[0]&&a<=e[2]&&o>=e[1]&&o<=e[3]&&n++}return n}(this.points,i),u=this.plot.pickPixelRatio*Math.max(Math.min(this.sizeMinCap,this.sizeMin),Math.min(this.sizeMax,this.sizeMax/Math.pow(s,.33333)));l[0]=2/a,l[4]=2/o,l[6]=-2*i[0]/a-1,l[7]=-2*i[1]/o-1,this.offsetBuffer.bind(),r.bind(),r.attributes.position.pointer(),r.uniforms.matrix=l,r.uniforms.color=this.color,r.uniforms.borderColor=this.borderColor,r.uniforms.pointCloud=u<5,r.uniforms.pointSize=u,r.uniforms.centerFraction=Math.min(1,Math.max(0,Math.sqrt(1-this.areaRatio))),e&&(c[0]=255&t,c[1]=t>>8&255,c[2]=t>>16&255,c[3]=t>>24&255,this.pickBuffer.bind(),r.attributes.pickId.pointer(n.UNSIGNED_BYTE),r.uniforms.pickOffset=c,this.pickOffset=t);var f=n.getParameter(n.BLEND),h=n.getParameter(n.DITHER);return f&&!this.blend&&n.disable(n.BLEND),h&&n.disable(n.DITHER),n.drawArrays(n.POINTS,0,this.pointCount),f&&!this.blend&&n.enable(n.BLEND),h&&n.enable(n.DITHER),t+this.pointCount}),u.draw=u.unifiedDraw,u.drawPick=u.unifiedDraw,u.pick=function(t,e,r){var n=this.pickOffset,i=this.pointCount;if(r<n||r>=n+i)return null;var a=r-n,o=this.points;return{object:this,pointId:a,dataCoord:[o[2*a],o[2*a+1]]}}},{\"./lib/shader\":278,\"gl-buffer\":230,\"gl-shader\":288,\"typedarray-pool\":522}],280:[function(t,e,r){e.exports=function(t,e,r,n){var i,a,o,s,l,c=e[0],u=e[1],f=e[2],h=e[3],p=r[0],d=r[1],g=r[2],v=r[3];(a=c*p+u*d+f*g+h*v)<0&&(a=-a,p=-p,d=-d,g=-g,v=-v);1-a>1e-6?(i=Math.acos(a),o=Math.sin(i),s=Math.sin((1-n)*i)/o,l=Math.sin(n*i)/o):(s=1-n,l=n);return t[0]=s*c+l*p,t[1]=s*u+l*d,t[2]=s*f+l*g,t[3]=s*h+l*v,t}},{}],281:[function(t,e,r){\"use strict\";e.exports=function(t){return t||0===t?t.toString():\"\"}},{}],282:[function(t,e,r){\"use strict\";var n=t(\"vectorize-text\");e.exports=function(t,e){var r=i[e];r||(r=i[e]={});if(t in r)return r[t];for(var a=n(t,{textAlign:\"center\",textBaseline:\"middle\",lineHeight:1,font:e}),o=n(t,{triangles:!0,textAlign:\"center\",textBaseline:\"middle\",lineHeight:1,font:e}),s=[[1/0,1/0],[-1/0,-1/0]],l=0;l<a.positions.length;++l)for(var c=a.positions[l],u=0;u<2;++u)s[0][u]=Math.min(s[0][u],c[u]),s[1][u]=Math.max(s[1][u],c[u]);return r[t]=[o,a,s]};var i={}},{\"vectorize-text\":527}],283:[function(t,e,r){var n=t(\"gl-shader\"),i=t(\"glslify\"),a=i([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nbool outOfRange(float a, float b, float p) {\\n return ((p > max(a, b)) || \\n (p < min(a, b)));\\n}\\n\\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y));\\n}\\n\\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y) ||\\n outOfRange(a.z, b.z, p.z));\\n}\\n\\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\\n return outOfRange(a.xyz, b.xyz, p.xyz);\\n}\\n\\nattribute vec3 position;\\nattribute vec4 color;\\nattribute vec2 glyph;\\nattribute vec4 id;\\n\\nuniform vec4 highlightId;\\nuniform float highlightScale;\\nuniform mat4 model, view, projection;\\nuniform vec3 clipBounds[2];\\n\\nvarying vec4 interpColor;\\nvarying vec4 pickId;\\nvarying vec3 dataCoordinate;\\n\\nvoid main() {\\n if (outOfRange(clipBounds[0], clipBounds[1], position)) {\\n\\n gl_Position = vec4(0,0,0,0);\\n } else {\\n float scale = 1.0;\\n if(distance(highlightId, id) < 0.0001) {\\n scale = highlightScale;\\n }\\n\\n vec4 worldPosition = model * vec4(position, 1);\\n vec4 viewPosition = view * worldPosition;\\n viewPosition = viewPosition / viewPosition.w;\\n vec4 clipPosition = projection * (viewPosition + scale * vec4(glyph.x, -glyph.y, 0, 0));\\n\\n gl_Position = clipPosition;\\n interpColor = color;\\n pickId = id;\\n dataCoordinate = position;\\n }\\n}\"]),o=i([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nbool outOfRange(float a, float b, float p) {\\n return ((p > max(a, b)) || \\n (p < min(a, b)));\\n}\\n\\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y));\\n}\\n\\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y) ||\\n outOfRange(a.z, b.z, p.z));\\n}\\n\\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\\n return outOfRange(a.xyz, b.xyz, p.xyz);\\n}\\n\\nattribute vec3 position;\\nattribute vec4 color;\\nattribute vec2 glyph;\\nattribute vec4 id;\\n\\nuniform mat4 model, view, projection;\\nuniform vec2 screenSize;\\nuniform vec3 clipBounds[2];\\nuniform float highlightScale, pixelRatio;\\nuniform vec4 highlightId;\\n\\nvarying vec4 interpColor;\\nvarying vec4 pickId;\\nvarying vec3 dataCoordinate;\\n\\nvoid main() {\\n if (outOfRange(clipBounds[0], clipBounds[1], position)) {\\n\\n gl_Position = vec4(0,0,0,0);\\n } else {\\n float scale = pixelRatio;\\n if(distance(highlightId.bgr, id.bgr) < 0.001) {\\n scale *= highlightScale;\\n }\\n\\n vec4 worldPosition = model * vec4(position, 1.0);\\n vec4 viewPosition = view * worldPosition;\\n vec4 clipPosition = projection * viewPosition;\\n clipPosition /= clipPosition.w;\\n\\n gl_Position = clipPosition + vec4(screenSize * scale * vec2(glyph.x, -glyph.y), 0.0, 0.0);\\n interpColor = color;\\n pickId = id;\\n dataCoordinate = position;\\n }\\n}\"]),s=i([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nbool outOfRange(float a, float b, float p) {\\n return ((p > max(a, b)) || \\n (p < min(a, b)));\\n}\\n\\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y));\\n}\\n\\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y) ||\\n outOfRange(a.z, b.z, p.z));\\n}\\n\\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\\n return outOfRange(a.xyz, b.xyz, p.xyz);\\n}\\n\\nattribute vec3 position;\\nattribute vec4 color;\\nattribute vec2 glyph;\\nattribute vec4 id;\\n\\nuniform float highlightScale;\\nuniform vec4 highlightId;\\nuniform vec3 axes[2];\\nuniform mat4 model, view, projection;\\nuniform vec2 screenSize;\\nuniform vec3 clipBounds[2];\\nuniform float scale, pixelRatio;\\n\\nvarying vec4 interpColor;\\nvarying vec4 pickId;\\nvarying vec3 dataCoordinate;\\n\\nvoid main() {\\n if (outOfRange(clipBounds[0], clipBounds[1], position)) {\\n\\n gl_Position = vec4(0,0,0,0);\\n } else {\\n float lscale = pixelRatio * scale;\\n if(distance(highlightId, id) < 0.0001) {\\n lscale *= highlightScale;\\n }\\n\\n vec4 clipCenter = projection * view * model * vec4(position, 1);\\n vec3 dataPosition = position + 0.5*lscale*(axes[0] * glyph.x + axes[1] * glyph.y) * clipCenter.w * screenSize.y;\\n vec4 clipPosition = projection * view * model * vec4(dataPosition, 1);\\n\\n gl_Position = clipPosition;\\n interpColor = color;\\n pickId = id;\\n dataCoordinate = dataPosition;\\n }\\n}\\n\"]),l=i([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nbool outOfRange(float a, float b, float p) {\\n return ((p > max(a, b)) || \\n (p < min(a, b)));\\n}\\n\\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y));\\n}\\n\\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y) ||\\n outOfRange(a.z, b.z, p.z));\\n}\\n\\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\\n return outOfRange(a.xyz, b.xyz, p.xyz);\\n}\\n\\nuniform vec3 fragClipBounds[2];\\nuniform float opacity;\\n\\nvarying vec4 interpColor;\\nvarying vec4 pickId;\\nvarying vec3 dataCoordinate;\\n\\nvoid main() {\\n if (outOfRange(fragClipBounds[0], fragClipBounds[1], dataCoordinate)) discard;\\n\\n gl_FragColor = interpColor * opacity;\\n}\\n\"]),c=i([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nbool outOfRange(float a, float b, float p) {\\n return ((p > max(a, b)) || \\n (p < min(a, b)));\\n}\\n\\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y));\\n}\\n\\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y) ||\\n outOfRange(a.z, b.z, p.z));\\n}\\n\\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\\n return outOfRange(a.xyz, b.xyz, p.xyz);\\n}\\n\\nuniform vec3 fragClipBounds[2];\\nuniform float pickGroup;\\n\\nvarying vec4 pickId;\\nvarying vec3 dataCoordinate;\\n\\nvoid main() {\\n if (outOfRange(fragClipBounds[0], fragClipBounds[1], dataCoordinate)) discard;\\n\\n gl_FragColor = vec4(pickGroup, pickId.bgr);\\n}\"]),u=[{name:\"position\",type:\"vec3\"},{name:\"color\",type:\"vec4\"},{name:\"glyph\",type:\"vec2\"},{name:\"id\",type:\"vec4\"}],f={vertex:a,fragment:l,attributes:u},h={vertex:o,fragment:l,attributes:u},p={vertex:s,fragment:l,attributes:u},d={vertex:a,fragment:c,attributes:u},g={vertex:o,fragment:c,attributes:u},v={vertex:s,fragment:c,attributes:u};function m(t,e){var r=n(t,e),i=r.attributes;return i.position.location=0,i.color.location=1,i.glyph.location=2,i.id.location=3,r}r.createPerspective=function(t){return m(t,f)},r.createOrtho=function(t){return m(t,h)},r.createProject=function(t){return m(t,p)},r.createPickPerspective=function(t){return m(t,d)},r.createPickOrtho=function(t){return m(t,g)},r.createPickProject=function(t){return m(t,v)}},{\"gl-shader\":288,glslify:392}],284:[function(t,e,r){\"use strict\";var n=t(\"is-string-blank\"),i=t(\"gl-buffer\"),a=t(\"gl-vao\"),o=t(\"typedarray-pool\"),s=t(\"gl-mat4/multiply\"),l=t(\"./lib/shaders\"),c=t(\"./lib/glyphs\"),u=t(\"./lib/get-simple-string\"),f=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function h(t,e){var r=t[0],n=t[1],i=t[2],a=t[3];return t[0]=e[0]*r+e[4]*n+e[8]*i+e[12]*a,t[1]=e[1]*r+e[5]*n+e[9]*i+e[13]*a,t[2]=e[2]*r+e[6]*n+e[10]*i+e[14]*a,t[3]=e[3]*r+e[7]*n+e[11]*i+e[15]*a,t}function p(t,e,r,n){return h(n,n),h(n,n),h(n,n)}function d(t,e){this.index=t,this.dataCoordinate=this.position=e}function g(t,e,r,n,i,a,o,s,l,c,u,f){this.gl=t,this.pixelRatio=1,this.shader=e,this.orthoShader=r,this.projectShader=n,this.pointBuffer=i,this.colorBuffer=a,this.glyphBuffer=o,this.idBuffer=s,this.vao=l,this.vertexCount=0,this.lineVertexCount=0,this.opacity=1,this.lineWidth=0,this.projectScale=[2/3,2/3,2/3],this.projectOpacity=[1,1,1],this.pickId=0,this.pickPerspectiveShader=c,this.pickOrthoShader=u,this.pickProjectShader=f,this.points=[],this._selectResult=new d(0,[0,0,0]),this.useOrtho=!0,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.axesProject=[!0,!0,!0],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.highlightId=[1,1,1,1],this.highlightScale=2,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.dirty=!0}e.exports=function(t){var e=t.gl,r=l.createPerspective(e),n=l.createOrtho(e),o=l.createProject(e),s=l.createPickPerspective(e),c=l.createPickOrtho(e),u=l.createPickProject(e),f=i(e),h=i(e),p=i(e),d=i(e),v=a(e,[{buffer:f,size:3,type:e.FLOAT},{buffer:h,size:4,type:e.FLOAT},{buffer:p,size:2,type:e.FLOAT},{buffer:d,size:4,type:e.UNSIGNED_BYTE,normalized:!0}]),m=new g(e,r,n,o,f,h,p,d,v,s,c,u);return m.update(t),m};var v=g.prototype;v.pickSlots=1,v.setPickBase=function(t){this.pickId=t},v.isTransparent=function(){if(this.opacity<1)return!0;for(var t=0;t<3;++t)if(this.axesProject[t]&&this.projectOpacity[t]<1)return!0;return!1},v.isOpaque=function(){if(this.opacity>=1)return!0;for(var t=0;t<3;++t)if(this.axesProject[t]&&this.projectOpacity[t]>=1)return!0;return!1};var m=[0,0],y=[0,0,0],x=[0,0,0],b=[0,0,0,1],_=[0,0,0,1],w=f.slice(),k=[0,0,0],M=[[0,0,0],[0,0,0]];function A(t){return t[0]=t[1]=t[2]=0,t}function T(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=1,t}function S(t,e,r,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[r]=n,t}function E(t,e,r,n,i){var a,o=e.axesProject,l=e.gl,c=t.uniforms,u=r.model||f,h=r.view||f,d=r.projection||f,g=e.axesBounds,v=function(t){for(var e=M,r=0;r<2;++r)for(var n=0;n<3;++n)e[r][n]=Math.max(Math.min(t[r][n],1e8),-1e8);return e}(e.clipBounds);a=e.axes&&e.axes.lastCubeProps?e.axes.lastCubeProps.axis:[1,1,1],m[0]=2/l.drawingBufferWidth,m[1]=2/l.drawingBufferHeight,t.bind(),c.view=h,c.projection=d,c.screenSize=m,c.highlightId=e.highlightId,c.highlightScale=e.highlightScale,c.clipBounds=v,c.pickGroup=e.pickId/255,c.pixelRatio=e.pixelRatio;for(var E=0;E<3;++E)if(o[E]&&e.projectOpacity[E]<1===n){c.scale=e.projectScale[E],c.opacity=e.projectOpacity[E];for(var C=w,L=0;L<16;++L)C[L]=0;for(L=0;L<4;++L)C[5*L]=1;C[5*E]=0,a[E]<0?C[12+E]=g[0][E]:C[12+E]=g[1][E],s(C,u,C),c.model=C;var z=(E+1)%3,O=(E+2)%3,I=A(y),P=A(x);I[z]=1,P[O]=1;var D=p(0,0,0,T(b,I)),R=p(0,0,0,T(_,P));if(Math.abs(D[1])>Math.abs(R[1])){var B=D;D=R,R=B,B=I,I=P,P=B;var F=z;z=O,O=F}D[0]<0&&(I[z]=-1),R[1]>0&&(P[O]=-1);var N=0,j=0;for(L=0;L<4;++L)N+=Math.pow(u[4*z+L],2),j+=Math.pow(u[4*O+L],2);I[z]/=Math.sqrt(N),P[O]/=Math.sqrt(j),c.axes[0]=I,c.axes[1]=P,c.fragClipBounds[0]=S(k,v[0],E,-1e8),c.fragClipBounds[1]=S(k,v[1],E,1e8),e.vao.draw(l.TRIANGLES,e.vertexCount),e.lineWidth>0&&(l.lineWidth(e.lineWidth),e.vao.draw(l.LINES,e.lineVertexCount,e.vertexCount))}}var C=[[-1e8,-1e8,-1e8],[1e8,1e8,1e8]];function L(t,e,r,n,i,a){var o=r.gl;if(r.vao.bind(),i===r.opacity<1||a){t.bind();var s=t.uniforms;s.model=n.model||f,s.view=n.view||f,s.projection=n.projection||f,m[0]=2/o.drawingBufferWidth,m[1]=2/o.drawingBufferHeight,s.screenSize=m,s.highlightId=r.highlightId,s.highlightScale=r.highlightScale,s.fragClipBounds=C,s.clipBounds=r.axes.bounds,s.opacity=r.opacity,s.pickGroup=r.pickId/255,s.pixelRatio=r.pixelRatio,r.vao.draw(o.TRIANGLES,r.vertexCount),r.lineWidth>0&&(o.lineWidth(r.lineWidth),r.vao.draw(o.LINES,r.lineVertexCount,r.vertexCount))}E(e,r,n,i),r.vao.unbind()}function z(t,e,r){var i;i=Array.isArray(t)?e<t.length?t[e]:void 0:t,i=u(i);var a=!0;n(i)&&(i=\"\\u25bc\",a=!1);var o=c(i,r);return{mesh:o[0],lines:o[1],bounds:o[2],visible:a}}v.draw=function(t){L(this.useOrtho?this.orthoShader:this.shader,this.projectShader,this,t,!1,!1)},v.drawTransparent=function(t){L(this.useOrtho?this.orthoShader:this.shader,this.projectShader,this,t,!0,!1)},v.drawPick=function(t){L(this.useOrtho?this.pickOrthoShader:this.pickPerspectiveShader,this.pickProjectShader,this,t,!1,!0)},v.pick=function(t){if(!t)return null;if(t.id!==this.pickId)return null;var e=t.value[2]+(t.value[1]<<8)+(t.value[0]<<16);if(e>=this.pointCount||e<0)return null;var r=this.points[e],n=this._selectResult;n.index=e;for(var i=0;i<3;++i)n.position[i]=n.dataCoordinate[i]=r[i];return n},v.highlight=function(t){if(t){var e=t.index,r=255&e,n=e>>8&255,i=e>>16&255;this.highlightId=[r/255,n/255,i/255,0]}else this.highlightId=[1,1,1,1]},v.update=function(t){if(\"perspective\"in(t=t||{})&&(this.useOrtho=!t.perspective),\"orthographic\"in t&&(this.useOrtho=!!t.orthographic),\"lineWidth\"in t&&(this.lineWidth=t.lineWidth),\"project\"in t)if(Array.isArray(t.project))this.axesProject=t.project;else{var e=!!t.project;this.axesProject=[e,e,e]}if(\"projectScale\"in t)if(Array.isArray(t.projectScale))this.projectScale=t.projectScale.slice();else{var r=+t.projectScale;this.projectScale=[r,r,r]}if(\"projectOpacity\"in t)if(Array.isArray(t.projectOpacity))this.projectOpacity=t.projectOpacity.slice();else{r=+t.projectOpacity;this.projectOpacity=[r,r,r]}\"opacity\"in t&&(this.opacity=t.opacity),this.dirty=!0;var n=t.position,i=t.font||\"normal\",a=t.alignment||[0,0],s=[1/0,1/0,1/0],l=[-1/0,-1/0,-1/0],c=t.glyph,u=t.color,f=t.size,h=t.angle,p=t.lineColor,d=-1,g=0,v=0,m=0;if(n.length){m=n.length;t:for(var y=0;y<m;++y){for(var x=n[y],b=0;b<3;++b)if(isNaN(x[b])||!isFinite(x[b]))continue t;var _=(R=z(c,y,i)).mesh,w=R.lines,k=R.bounds;g+=3*_.cells.length,v+=2*w.edges.length}}var M=g+v,A=o.mallocFloat(3*M),T=o.mallocFloat(4*M),S=o.mallocFloat(2*M),E=o.mallocUint32(M);if(M>0){var C=0,L=g,O=[0,0,0,1],I=[0,0,0,1],P=Array.isArray(u)&&Array.isArray(u[0]),D=Array.isArray(p)&&Array.isArray(p[0]);t:for(y=0;y<m;++y){d+=1;for(x=n[y],b=0;b<3;++b){if(isNaN(x[b])||!isFinite(x[b]))continue t;l[b]=Math.max(l[b],x[b]),s[b]=Math.min(s[b],x[b])}_=(R=z(c,y,i)).mesh,w=R.lines,k=R.bounds;var R,B=R.visible;if(B)if(Array.isArray(u)){if(3===(F=P?y<u.length?u[y]:[0,0,0,0]:u).length){for(b=0;b<3;++b)O[b]=F[b];O[3]=1}else if(4===F.length)for(b=0;b<4;++b)O[b]=F[b]}else O[0]=O[1]=O[2]=0,O[3]=1;else O=[1,1,1,0];if(B)if(Array.isArray(p)){var F;if(3===(F=D?y<p.length?p[y]:[0,0,0,0]:p).length){for(b=0;b<3;++b)I[b]=F[b];I[b]=1}else if(4===F.length)for(b=0;b<4;++b)I[b]=F[b]}else I[0]=I[1]=I[2]=0,I[3]=1;else I=[1,1,1,0];var N=.5;B?Array.isArray(f)?N=y<f.length?+f[y]:12:f?N=+f:this.useOrtho&&(N=12):N=0;var j=0;Array.isArray(h)?j=y<h.length?+h[y]:0:h&&(j=+h);var V=Math.cos(j),U=Math.sin(j);for(x=n[y],b=0;b<3;++b)l[b]=Math.max(l[b],x[b]),s[b]=Math.min(s[b],x[b]);var q=[a[0],a[1]];for(b=0;b<2;++b)a[b]>0?q[b]*=1-k[0][b]:a[b]<0&&(q[b]*=1+k[1][b]);var H=_.cells||[],G=_.positions||[];for(b=0;b<H.length;++b)for(var W=H[b],Y=0;Y<3;++Y){for(var X=0;X<3;++X)A[3*C+X]=x[X];for(X=0;X<4;++X)T[4*C+X]=O[X];E[C]=d;var Z=G[W[Y]];S[2*C]=N*(V*Z[0]-U*Z[1]+q[0]),S[2*C+1]=N*(U*Z[0]+V*Z[1]+q[1]),C+=1}for(H=w.edges,G=w.positions,b=0;b<H.length;++b)for(W=H[b],Y=0;Y<2;++Y){for(X=0;X<3;++X)A[3*L+X]=x[X];for(X=0;X<4;++X)T[4*L+X]=I[X];E[L]=d;Z=G[W[Y]];S[2*L]=N*(V*Z[0]-U*Z[1]+q[0]),S[2*L+1]=N*(U*Z[0]+V*Z[1]+q[1]),L+=1}}}this.bounds=[s,l],this.points=n,this.pointCount=n.length,this.vertexCount=g,this.lineVertexCount=v,this.pointBuffer.update(A),this.colorBuffer.update(T),this.glyphBuffer.update(S),this.idBuffer.update(E),o.free(A),o.free(T),o.free(S),o.free(E)},v.dispose=function(){this.shader.dispose(),this.orthoShader.dispose(),this.pickPerspectiveShader.dispose(),this.pickOrthoShader.dispose(),this.vao.dispose(),this.pointBuffer.dispose(),this.colorBuffer.dispose(),this.glyphBuffer.dispose(),this.idBuffer.dispose()}},{\"./lib/get-simple-string\":281,\"./lib/glyphs\":282,\"./lib/shaders\":283,\"gl-buffer\":230,\"gl-mat4/multiply\":256,\"gl-vao\":310,\"is-string-blank\":406,\"typedarray-pool\":522}],285:[function(t,e,r){\"use strict\";var n=t(\"glslify\");r.boxVertex=n([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute vec2 vertex;\\n\\nuniform vec2 cornerA, cornerB;\\n\\nvoid main() {\\n gl_Position = vec4(mix(cornerA, cornerB, vertex), 0, 1);\\n}\\n\"]),r.boxFragment=n([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nuniform vec4 color;\\n\\nvoid main() {\\n gl_FragColor = color;\\n}\\n\"])},{glslify:392}],286:[function(t,e,r){\"use strict\";var n=t(\"gl-shader\"),i=t(\"gl-buffer\"),a=t(\"./lib/shaders\");function o(t,e,r){this.plot=t,this.boxBuffer=e,this.boxShader=r,this.enabled=!0,this.selectBox=[1/0,1/0,-1/0,-1/0],this.borderColor=[0,0,0,1],this.innerFill=!1,this.innerColor=[0,0,0,.25],this.outerFill=!0,this.outerColor=[0,0,0,.5],this.borderWidth=10}e.exports=function(t,e){var r=t.gl,s=i(r,[0,0,0,1,1,0,1,1]),l=n(r,a.boxVertex,a.boxFragment),c=new o(t,s,l);return c.update(e),t.addOverlay(c),c};var s=o.prototype;s.draw=function(){if(this.enabled){var t=this.plot,e=this.selectBox,r=this.borderWidth,n=(this.innerFill,this.innerColor),i=(this.outerFill,this.outerColor),a=this.borderColor,o=t.box,s=t.screenBox,l=t.dataBox,c=t.viewBox,u=t.pixelRatio,f=(e[0]-l[0])*(c[2]-c[0])/(l[2]-l[0])+c[0],h=(e[1]-l[1])*(c[3]-c[1])/(l[3]-l[1])+c[1],p=(e[2]-l[0])*(c[2]-c[0])/(l[2]-l[0])+c[0],d=(e[3]-l[1])*(c[3]-c[1])/(l[3]-l[1])+c[1];if(f=Math.max(f,c[0]),h=Math.max(h,c[1]),p=Math.min(p,c[2]),d=Math.min(d,c[3]),!(p<f||d<h)){o.bind();var g=s[2]-s[0],v=s[3]-s[1];if(this.outerFill&&(o.drawBox(0,0,g,h,i),o.drawBox(0,h,f,d,i),o.drawBox(0,d,g,v,i),o.drawBox(p,h,g,d,i)),this.innerFill&&o.drawBox(f,h,p,d,n),r>0){var m=r*u;o.drawBox(f-m,h-m,p+m,h+m,a),o.drawBox(f-m,d-m,p+m,d+m,a),o.drawBox(f-m,h-m,f+m,d+m,a),o.drawBox(p-m,h-m,p+m,d+m,a)}}}},s.update=function(t){t=t||{},this.innerFill=!!t.innerFill,this.outerFill=!!t.outerFill,this.innerColor=(t.innerColor||[0,0,0,.5]).slice(),this.outerColor=(t.outerColor||[0,0,0,.5]).slice(),this.borderColor=(t.borderColor||[0,0,0,1]).slice(),this.borderWidth=t.borderWidth||0,this.selectBox=(t.selectBox||this.selectBox).slice()},s.dispose=function(){this.boxBuffer.dispose(),this.boxShader.dispose(),this.plot.removeOverlay(this)}},{\"./lib/shaders\":285,\"gl-buffer\":230,\"gl-shader\":288}],287:[function(t,e,r){\"use strict\";e.exports=function(t,e){var r=n(t,e),a=i.mallocUint8(e[0]*e[1]*4);return new c(t,r,a)};var n=t(\"gl-fbo\"),i=t(\"typedarray-pool\"),a=t(\"ndarray\"),o=t(\"bit-twiddle\").nextPow2,s=t(\"cwise/lib/wrapper\")({args:[\"array\",{offset:[0,0,1],array:0},{offset:[0,0,2],array:0},{offset:[0,0,3],array:0},\"scalar\",\"scalar\",\"index\"],pre:{body:\"{this_closestD2=1e8,this_closestX=-1,this_closestY=-1}\",args:[],thisVars:[\"this_closestD2\",\"this_closestX\",\"this_closestY\"],localVars:[]},body:{body:\"{if(_inline_16_arg0_<255||_inline_16_arg1_<255||_inline_16_arg2_<255||_inline_16_arg3_<255){var _inline_16_l=_inline_16_arg4_-_inline_16_arg6_[0],_inline_16_a=_inline_16_arg5_-_inline_16_arg6_[1],_inline_16_f=_inline_16_l*_inline_16_l+_inline_16_a*_inline_16_a;_inline_16_f<this_closestD2&&(this_closestD2=_inline_16_f,this_closestX=_inline_16_arg6_[0],this_closestY=_inline_16_arg6_[1])}}\",args:[{name:\"_inline_16_arg0_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_16_arg1_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_16_arg2_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_16_arg3_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_16_arg4_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_16_arg5_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_16_arg6_\",lvalue:!1,rvalue:!0,count:4}],thisVars:[\"this_closestD2\",\"this_closestX\",\"this_closestY\"],localVars:[\"_inline_16_a\",\"_inline_16_f\",\"_inline_16_l\"]},post:{body:\"{return[this_closestX,this_closestY,this_closestD2]}\",args:[],thisVars:[\"this_closestD2\",\"this_closestX\",\"this_closestY\"],localVars:[]},debug:!1,funcName:\"cwise\",blockSize:64});function l(t,e,r,n,i){this.coord=[t,e],this.id=r,this.value=n,this.distance=i}function c(t,e,r){this.gl=t,this.fbo=e,this.buffer=r,this._readTimeout=null;var n=this;this._readCallback=function(){n.gl&&(e.bind(),t.readPixels(0,0,e.shape[0],e.shape[1],t.RGBA,t.UNSIGNED_BYTE,n.buffer),n._readTimeout=null)}}var u=c.prototype;Object.defineProperty(u,\"shape\",{get:function(){return this.gl?this.fbo.shape.slice():[0,0]},set:function(t){if(this.gl){this.fbo.shape=t;var e=this.fbo.shape[0],r=this.fbo.shape[1];if(r*e*4>this.buffer.length){i.free(this.buffer);for(var n=this.buffer=i.mallocUint8(o(r*e*4)),a=0;a<r*e*4;++a)n[a]=255}return t}}}),u.begin=function(){var t=this.gl;this.shape;t&&(this.fbo.bind(),t.clearColor(1,1,1,1),t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT))},u.end=function(){var t=this.gl;t&&(t.bindFramebuffer(t.FRAMEBUFFER,null),this._readTimeout||clearTimeout(this._readTimeout),this._readTimeout=setTimeout(this._readCallback,1))},u.query=function(t,e,r){if(!this.gl)return null;var n=this.fbo.shape.slice();t|=0,e|=0,\"number\"!=typeof r&&(r=1);var i=0|Math.min(Math.max(t-r,0),n[0]),o=0|Math.min(Math.max(t+r,0),n[0]),c=0|Math.min(Math.max(e-r,0),n[1]),u=0|Math.min(Math.max(e+r,0),n[1]);if(o<=i||u<=c)return null;var f=[o-i,u-c],h=a(this.buffer,[f[0],f[1],4],[4,4*n[0],1],4*(i+n[0]*c)),p=s(h.hi(f[0],f[1],1),r,r),d=p[0],g=p[1];return d<0||Math.pow(this.radius,2)<p[2]?null:new l(d+i|0,g+c|0,h.get(d,g,0),[h.get(d,g,1),h.get(d,g,2),h.get(d,g,3)],Math.sqrt(p[2]))},u.dispose=function(){this.gl&&(this.fbo.dispose(),i.free(this.buffer),this.gl=null,this._readTimeout&&clearTimeout(this._readTimeout))}},{\"bit-twiddle\":80,\"cwise/lib/wrapper\":137,\"gl-fbo\":239,ndarray:433,\"typedarray-pool\":522}],288:[function(t,e,r){\"use strict\";var n=t(\"./lib/create-uniforms\"),i=t(\"./lib/create-attributes\"),a=t(\"./lib/reflect\"),o=t(\"./lib/shader-cache\"),s=t(\"./lib/runtime-reflect\"),l=t(\"./lib/GLError\");function c(t){this.gl=t,this.gl.lastAttribCount=0,this._vref=this._fref=this._relink=this.vertShader=this.fragShader=this.program=this.attributes=this.uniforms=this.types=null}var u=c.prototype;function f(t,e){return t.name<e.name?-1:1}u.bind=function(){var t;this.program||this._relink();var e=this.gl.getProgramParameter(this.program,this.gl.ACTIVE_ATTRIBUTES),r=this.gl.lastAttribCount;if(e>r)for(t=r;t<e;t++)this.gl.enableVertexAttribArray(t);else if(r>e)for(t=e;t<r;t++)this.gl.disableVertexAttribArray(t);this.gl.lastAttribCount=e,this.gl.useProgram(this.program)},u.dispose=function(){for(var t=this.gl.lastAttribCount,e=0;e<t;e++)this.gl.disableVertexAttribArray(e);this.gl.lastAttribCount=0,this._fref&&this._fref.dispose(),this._vref&&this._vref.dispose(),this.attributes=this.types=this.vertShader=this.fragShader=this.program=this._relink=this._fref=this._vref=null},u.update=function(t,e,r,c){if(!e||1===arguments.length){var u=t;t=u.vertex,e=u.fragment,r=u.uniforms,c=u.attributes}var h=this,p=h.gl,d=h._vref;h._vref=o.shader(p,p.VERTEX_SHADER,t),d&&d.dispose(),h.vertShader=h._vref.shader;var g=this._fref;if(h._fref=o.shader(p,p.FRAGMENT_SHADER,e),g&&g.dispose(),h.fragShader=h._fref.shader,!r||!c){var v=p.createProgram();if(p.attachShader(v,h.fragShader),p.attachShader(v,h.vertShader),p.linkProgram(v),!p.getProgramParameter(v,p.LINK_STATUS)){var m=p.getProgramInfoLog(v);throw new l(m,\"Error linking program:\"+m)}r=r||s.uniforms(p,v),c=c||s.attributes(p,v),p.deleteProgram(v)}(c=c.slice()).sort(f);var y,x=[],b=[],_=[];for(y=0;y<c.length;++y){var w=c[y];if(w.type.indexOf(\"mat\")>=0){for(var k=0|w.type.charAt(w.type.length-1),M=new Array(k),A=0;A<k;++A)M[A]=_.length,b.push(w.name+\"[\"+A+\"]\"),\"number\"==typeof w.location?_.push(w.location+A):Array.isArray(w.location)&&w.location.length===k&&\"number\"==typeof w.location[A]?_.push(0|w.location[A]):_.push(-1);x.push({name:w.name,type:w.type,locations:M})}else x.push({name:w.name,type:w.type,locations:[_.length]}),b.push(w.name),\"number\"==typeof w.location?_.push(0|w.location):_.push(-1)}var T=0;for(y=0;y<_.length;++y)if(_[y]<0){for(;_.indexOf(T)>=0;)T+=1;_[y]=T}var S=new Array(r.length);function E(){h.program=o.program(p,h._vref,h._fref,b,_);for(var t=0;t<r.length;++t)S[t]=p.getUniformLocation(h.program,r[t].name)}E(),h._relink=E,h.types={uniforms:a(r),attributes:a(c)},h.attributes=i(p,h,x,_),Object.defineProperty(h,\"uniforms\",n(p,h,r,S))},e.exports=function(t,e,r,n,i){var a=new c(t);return a.update(e,r,n,i),a}},{\"./lib/GLError\":289,\"./lib/create-attributes\":290,\"./lib/create-uniforms\":291,\"./lib/reflect\":292,\"./lib/runtime-reflect\":293,\"./lib/shader-cache\":294}],289:[function(t,e,r){function n(t,e,r){this.shortMessage=e||\"\",this.longMessage=r||\"\",this.rawError=t||\"\",this.message=\"gl-shader: \"+(e||t||\"\")+(r?\"\\n\"+r:\"\"),this.stack=(new Error).stack}n.prototype=new Error,n.prototype.name=\"GLError\",n.prototype.constructor=n,e.exports=n},{}],290:[function(t,e,r){\"use strict\";e.exports=function(t,e,r,i){for(var a={},l=0,c=r.length;l<c;++l){var u=r[l],f=u.name,h=u.type,p=u.locations;switch(h){case\"bool\":case\"int\":case\"float\":o(t,e,p[0],i,1,a,f);break;default:if(h.indexOf(\"vec\")>=0){var d=h.charCodeAt(h.length-1)-48;if(d<2||d>4)throw new n(\"\",\"Invalid data type for attribute \"+f+\": \"+h);o(t,e,p[0],i,d,a,f)}else{if(!(h.indexOf(\"mat\")>=0))throw new n(\"\",\"Unknown data type for attribute \"+f+\": \"+h);var d=h.charCodeAt(h.length-1)-48;if(d<2||d>4)throw new n(\"\",\"Invalid data type for attribute \"+f+\": \"+h);s(t,e,p,i,d,a,f)}}}return a};var n=t(\"./GLError\");function i(t,e,r,n,i,a){this._gl=t,this._wrapper=e,this._index=r,this._locations=n,this._dimension=i,this._constFunc=a}var a=i.prototype;function o(t,e,r,n,a,o,s){for(var l=[\"gl\",\"v\"],c=[],u=0;u<a;++u)l.push(\"x\"+u),c.push(\"x\"+u);l.push(\"if(x0.length===void 0){return gl.vertexAttrib\"+a+\"f(v,\"+c.join()+\")}else{return gl.vertexAttrib\"+a+\"fv(v,x0)}\");var f=Function.apply(null,l),h=new i(t,e,r,n,a,f);Object.defineProperty(o,s,{set:function(e){return t.disableVertexAttribArray(n[r]),f(t,n[r],e),e},get:function(){return h},enumerable:!0})}function s(t,e,r,n,i,a,s){for(var l=new Array(i),c=new Array(i),u=0;u<i;++u)o(t,e,r[u],n,i,l,u),c[u]=l[u];Object.defineProperty(l,\"location\",{set:function(t){if(Array.isArray(t))for(var e=0;e<i;++e)c[e].location=t[e];else for(e=0;e<i;++e)c[e].location=t+e;return t},get:function(){for(var t=new Array(i),e=0;e<i;++e)t[e]=n[r[e]];return t},enumerable:!0}),l.pointer=function(e,a,o,s){e=e||t.FLOAT,a=!!a,o=o||i*i,s=s||0;for(var l=0;l<i;++l){var c=n[r[l]];t.vertexAttribPointer(c,i,e,a,o,s+l*i),t.enableVertexAttribArray(c)}};var f=new Array(i),h=t[\"vertexAttrib\"+i+\"fv\"];Object.defineProperty(a,s,{set:function(e){for(var a=0;a<i;++a){var o=n[r[a]];if(t.disableVertexAttribArray(o),Array.isArray(e[0]))h.call(t,o,e[a]);else{for(var s=0;s<i;++s)f[s]=e[i*a+s];h.call(t,o,f)}}return e},get:function(){return l},enumerable:!0})}a.pointer=function(t,e,r,n){var i=this._gl,a=this._locations[this._index];i.vertexAttribPointer(a,this._dimension,t||i.FLOAT,!!e,r||0,n||0),i.enableVertexAttribArray(a)},a.set=function(t,e,r,n){return this._constFunc(this._locations[this._index],t,e,r,n)},Object.defineProperty(a,\"location\",{get:function(){return this._locations[this._index]},set:function(t){return t!==this._locations[this._index]&&(this._locations[this._index]=0|t,this._wrapper.program=null),0|t}})},{\"./GLError\":289}],291:[function(t,e,r){\"use strict\";var n=t(\"./reflect\"),i=t(\"./GLError\");function a(t){return new Function(\"y\",\"return function(){return y}\")(t)}function o(t,e){for(var r=new Array(t),n=0;n<t;++n)r[n]=e;return r}e.exports=function(t,e,r,s){function l(t,e,r){switch(r){case\"bool\":case\"int\":case\"sampler2D\":case\"samplerCube\":return\"gl.uniform1i(locations[\"+e+\"],obj\"+t+\")\";case\"float\":return\"gl.uniform1f(locations[\"+e+\"],obj\"+t+\")\";default:var n=r.indexOf(\"vec\");if(!(0<=n&&n<=1&&r.length===4+n)){if(0===r.indexOf(\"mat\")&&4===r.length){var a=r.charCodeAt(r.length-1)-48;if(a<2||a>4)throw new i(\"\",\"Invalid uniform dimension type for matrix \"+name+\": \"+r);return\"gl.uniformMatrix\"+a+\"fv(locations[\"+e+\"],false,obj\"+t+\")\"}throw new i(\"\",\"Unknown uniform data type for \"+name+\": \"+r)}var a=r.charCodeAt(r.length-1)-48;if(a<2||a>4)throw new i(\"\",\"Invalid data type\");switch(r.charAt(0)){case\"b\":case\"i\":return\"gl.uniform\"+a+\"iv(locations[\"+e+\"],obj\"+t+\")\";case\"v\":return\"gl.uniform\"+a+\"fv(locations[\"+e+\"],obj\"+t+\")\";default:throw new i(\"\",\"Unrecognized data type for vector \"+name+\": \"+r)}}}function c(e){for(var n=[\"return function updateProperty(obj){\"],i=function t(e,r){if(\"object\"!=typeof r)return[[e,r]];var n=[];for(var i in r){var a=r[i],o=e;parseInt(i)+\"\"===i?o+=\"[\"+i+\"]\":o+=\".\"+i,\"object\"==typeof a?n.push.apply(n,t(o,a)):n.push([o,a])}return n}(\"\",e),a=0;a<i.length;++a){var o=i[a],c=o[0],u=o[1];s[u]&&n.push(l(c,u,r[u].type))}n.push(\"return obj}\");var f=new Function(\"gl\",\"locations\",n.join(\"\\n\"));return f(t,s)}function u(n,l,u){if(\"object\"==typeof u){var h=f(u);Object.defineProperty(n,l,{get:a(h),set:c(u),enumerable:!0,configurable:!1})}else s[u]?Object.defineProperty(n,l,{get:(p=u,new Function(\"gl\",\"wrapper\",\"locations\",\"return function(){return gl.getUniform(wrapper.program,locations[\"+p+\"])}\")(t,e,s)),set:c(u),enumerable:!0,configurable:!1}):n[l]=function(t){switch(t){case\"bool\":return!1;case\"int\":case\"sampler2D\":case\"samplerCube\":case\"float\":return 0;default:var e=t.indexOf(\"vec\");if(0<=e&&e<=1&&t.length===4+e){var r=t.charCodeAt(t.length-1)-48;if(r<2||r>4)throw new i(\"\",\"Invalid data type\");return\"b\"===t.charAt(0)?o(r,!1):o(r,0)}if(0===t.indexOf(\"mat\")&&4===t.length){var r=t.charCodeAt(t.length-1)-48;if(r<2||r>4)throw new i(\"\",\"Invalid uniform dimension type for matrix \"+name+\": \"+t);return o(r*r,0)}throw new i(\"\",\"Unknown uniform data type for \"+name+\": \"+t)}}(r[u].type);var p}function f(t){var e;if(Array.isArray(t)){e=new Array(t.length);for(var r=0;r<t.length;++r)u(e,r,t[r])}else for(var n in e={},t)u(e,n,t[n]);return e}var h=n(r,!0);return{get:a(f(h)),set:c(h),enumerable:!0,configurable:!0}}},{\"./GLError\":289,\"./reflect\":292}],292:[function(t,e,r){\"use strict\";e.exports=function(t,e){for(var r={},n=0;n<t.length;++n)for(var i=t[n].name,a=i.split(\".\"),o=r,s=0;s<a.length;++s){var l=a[s].split(\"[\");if(l.length>1){l[0]in o||(o[l[0]]=[]),o=o[l[0]];for(var c=1;c<l.length;++c){var u=parseInt(l[c]);c<l.length-1||s<a.length-1?(u in o||(c<l.length-1?o[u]=[]:o[u]={}),o=o[u]):o[u]=e?n:t[n].type}}else s<a.length-1?(l[0]in o||(o[l[0]]={}),o=o[l[0]]):o[l[0]]=e?n:t[n].type}return r}},{}],293:[function(t,e,r){\"use strict\";r.uniforms=function(t,e){for(var r=t.getProgramParameter(e,t.ACTIVE_UNIFORMS),n=[],i=0;i<r;++i){var o=t.getActiveUniform(e,i);if(o){var s=a(t,o.type);if(o.size>1)for(var l=0;l<o.size;++l)n.push({name:o.name.replace(\"[0]\",\"[\"+l+\"]\"),type:s});else n.push({name:o.name,type:s})}}return n},r.attributes=function(t,e){for(var r=t.getProgramParameter(e,t.ACTIVE_ATTRIBUTES),n=[],i=0;i<r;++i){var o=t.getActiveAttrib(e,i);o&&n.push({name:o.name,type:a(t,o.type)})}return n};var n={FLOAT:\"float\",FLOAT_VEC2:\"vec2\",FLOAT_VEC3:\"vec3\",FLOAT_VEC4:\"vec4\",INT:\"int\",INT_VEC2:\"ivec2\",INT_VEC3:\"ivec3\",INT_VEC4:\"ivec4\",BOOL:\"bool\",BOOL_VEC2:\"bvec2\",BOOL_VEC3:\"bvec3\",BOOL_VEC4:\"bvec4\",FLOAT_MAT2:\"mat2\",FLOAT_MAT3:\"mat3\",FLOAT_MAT4:\"mat4\",SAMPLER_2D:\"sampler2D\",SAMPLER_CUBE:\"samplerCube\"},i=null;function a(t,e){if(!i){var r=Object.keys(n);i={};for(var a=0;a<r.length;++a){var o=r[a];i[t[o]]=n[o]}}return i[e]}},{}],294:[function(t,e,r){\"use strict\";r.shader=function(t,e,r){return u(t).getShaderReference(e,r)},r.program=function(t,e,r,n,i){return u(t).getProgram(e,r,n,i)};var n=t(\"./GLError\"),i=t(\"gl-format-compiler-error\"),a=new(\"undefined\"==typeof WeakMap?t(\"weakmap-shim\"):WeakMap),o=0;function s(t,e,r,n,i,a,o){this.id=t,this.src=e,this.type=r,this.shader=n,this.count=a,this.programs=[],this.cache=o}function l(t){this.gl=t,this.shaders=[{},{}],this.programs={}}s.prototype.dispose=function(){if(0==--this.count){for(var t=this.cache,e=t.gl,r=this.programs,n=0,i=r.length;n<i;++n){var a=t.programs[r[n]];a&&(delete t.programs[n],e.deleteProgram(a))}e.deleteShader(this.shader),delete t.shaders[this.type===e.FRAGMENT_SHADER|0][this.src]}};var c=l.prototype;function u(t){var e=a.get(t);return e||(e=new l(t),a.set(t,e)),e}c.getShaderReference=function(t,e){var r=this.gl,a=this.shaders[t===r.FRAGMENT_SHADER|0],l=a[e];if(l&&r.isShader(l.shader))l.count+=1;else{var c=function(t,e,r){var a=t.createShader(e);if(t.shaderSource(a,r),t.compileShader(a),!t.getShaderParameter(a,t.COMPILE_STATUS)){var o=t.getShaderInfoLog(a);try{var s=i(o,r,e)}catch(t){throw console.warn(\"Failed to format compiler error: \"+t),new n(o,\"Error compiling shader:\\n\"+o)}throw new n(o,s.short,s.long)}return a}(r,t,e);l=a[e]=new s(o++,e,t,c,[],1,this)}return l},c.getProgram=function(t,e,r,i){var a=[t.id,e.id,r.join(\":\"),i.join(\":\")].join(\"@\"),o=this.programs[a];return o&&this.gl.isProgram(o)||(this.programs[a]=o=function(t,e,r,i,a){var o=t.createProgram();t.attachShader(o,e),t.attachShader(o,r);for(var s=0;s<i.length;++s)t.bindAttribLocation(o,a[s],i[s]);if(t.linkProgram(o),!t.getProgramParameter(o,t.LINK_STATUS)){var l=t.getProgramInfoLog(o);throw new n(l,\"Error linking program: \"+l)}return o}(this.gl,t.shader,e.shader,r,i),t.programs.push(a),e.programs.push(a)),o}},{\"./GLError\":289,\"gl-format-compiler-error\":240,\"weakmap-shim\":532}],295:[function(t,e,r){\"use strict\";function n(t){this.plot=t,this.enable=[!0,!0,!1,!1],this.width=[1,1,1,1],this.color=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.center=[1/0,1/0]}e.exports=function(t,e){var r=new n(t);return r.update(e),t.addOverlay(r),r};var i=n.prototype;i.update=function(t){t=t||{},this.enable=(t.enable||[!0,!0,!1,!1]).slice(),this.width=(t.width||[1,1,1,1]).slice(),this.color=(t.color||[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]]).map(function(t){return t.slice()}),this.center=(t.center||[1/0,1/0]).slice(),this.plot.setOverlayDirty()},i.draw=function(){var t=this.enable,e=this.width,r=this.color,n=this.center,i=this.plot,a=i.line,o=i.dataBox,s=i.viewBox;if(a.bind(),o[0]<=n[0]&&n[0]<=o[2]&&o[1]<=n[1]&&n[1]<=o[3]){var l=s[0]+(n[0]-o[0])/(o[2]-o[0])*(s[2]-s[0]),c=s[1]+(n[1]-o[1])/(o[3]-o[1])*(s[3]-s[1]);t[0]&&a.drawLine(l,c,s[0],c,e[0],r[0]),t[1]&&a.drawLine(l,c,l,s[1],e[1],r[1]),t[2]&&a.drawLine(l,c,s[2],c,e[2],r[2]),t[3]&&a.drawLine(l,c,l,s[3],e[3],r[3])}},i.dispose=function(){this.plot.removeOverlay(this)}},{}],296:[function(t,e,r){\"use strict\";var n=t(\"glslify\"),i=t(\"gl-shader\"),a=n([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute vec3 position, color;\\nattribute float weight;\\n\\nuniform mat4 model, view, projection;\\nuniform vec3 coordinates[3];\\nuniform vec4 colors[3];\\nuniform vec2 screenShape;\\nuniform float lineWidth;\\n\\nvarying vec4 fragColor;\\n\\nvoid main() {\\n vec3 vertexPosition = mix(coordinates[0],\\n mix(coordinates[2], coordinates[1], 0.5 * (position + 1.0)), abs(position));\\n\\n vec4 clipPos = projection * view * model * vec4(vertexPosition, 1.0);\\n vec2 clipOffset = (projection * view * model * vec4(color, 0.0)).xy;\\n vec2 delta = weight * clipOffset * screenShape;\\n vec2 lineOffset = normalize(vec2(delta.y, -delta.x)) / screenShape;\\n\\n gl_Position = vec4(clipPos.xy + clipPos.w * 0.5 * lineWidth * lineOffset, clipPos.z, clipPos.w);\\n fragColor = color.x * colors[0] + color.y * colors[1] + color.z * colors[2];\\n}\\n\"]),o=n([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nvarying vec4 fragColor;\\n\\nvoid main() {\\n gl_FragColor = fragColor;\\n}\"]);e.exports=function(t){return i(t,a,o,null,[{name:\"position\",type:\"vec3\"},{name:\"color\",type:\"vec3\"},{name:\"weight\",type:\"float\"}])}},{\"gl-shader\":288,glslify:392}],297:[function(t,e,r){\"use strict\";var n=t(\"gl-buffer\"),i=t(\"gl-vao\"),a=t(\"./shaders/index\");e.exports=function(t,e){var r=[];function o(t,e,n,i,a,o){var s=[t,e,n,0,0,0,1];s[i+3]=1,s[i]=a,r.push.apply(r,s),s[6]=-1,r.push.apply(r,s),s[i]=o,r.push.apply(r,s),r.push.apply(r,s),s[6]=1,r.push.apply(r,s),s[i]=a,r.push.apply(r,s)}o(0,0,0,0,0,1),o(0,0,0,1,0,1),o(0,0,0,2,0,1),o(1,0,0,1,-1,1),o(1,0,0,2,-1,1),o(0,1,0,0,-1,1),o(0,1,0,2,-1,1),o(0,0,1,0,-1,1),o(0,0,1,1,-1,1);var l=n(t,r),c=i(t,[{type:t.FLOAT,buffer:l,size:3,offset:0,stride:28},{type:t.FLOAT,buffer:l,size:3,offset:12,stride:28},{type:t.FLOAT,buffer:l,size:1,offset:24,stride:28}]),u=a(t);u.attributes.position.location=0,u.attributes.color.location=1,u.attributes.weight.location=2;var f=new s(t,l,c,u);return f.update(e),f};var o=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function s(t,e,r,n){this.gl=t,this.buffer=e,this.vao=r,this.shader=n,this.pixelRatio=1,this.bounds=[[-1e3,-1e3,-1e3],[1e3,1e3,1e3]],this.position=[0,0,0],this.lineWidth=[2,2,2],this.colors=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.enabled=[!0,!0,!0],this.drawSides=[!0,!0,!0],this.axes=null}var l=s.prototype,c=[0,0,0],u=[0,0,0],f=[0,0];l.isTransparent=function(){return!1},l.drawTransparent=function(t){},l.draw=function(t){var e=this.gl,r=this.vao,n=this.shader;r.bind(),n.bind();var i,a=t.model||o,s=t.view||o,l=t.projection||o;this.axes&&(i=this.axes.lastCubeProps.axis);for(var h=c,p=u,d=0;d<3;++d)i&&i[d]<0?(h[d]=this.bounds[0][d],p[d]=this.bounds[1][d]):(h[d]=this.bounds[1][d],p[d]=this.bounds[0][d]);f[0]=e.drawingBufferWidth,f[1]=e.drawingBufferHeight,n.uniforms.model=a,n.uniforms.view=s,n.uniforms.projection=l,n.uniforms.coordinates=[this.position,h,p],n.uniforms.colors=this.colors,n.uniforms.screenShape=f;for(d=0;d<3;++d)n.uniforms.lineWidth=this.lineWidth[d]*this.pixelRatio,this.enabled[d]&&(r.draw(e.TRIANGLES,6,6*d),this.drawSides[d]&&r.draw(e.TRIANGLES,12,18+12*d));r.unbind()},l.update=function(t){t&&(\"bounds\"in t&&(this.bounds=t.bounds),\"position\"in t&&(this.position=t.position),\"lineWidth\"in t&&(this.lineWidth=t.lineWidth),\"colors\"in t&&(this.colors=t.colors),\"enabled\"in t&&(this.enabled=t.enabled),\"drawSides\"in t&&(this.drawSides=t.drawSides))},l.dispose=function(){this.vao.dispose(),this.buffer.dispose(),this.shader.dispose()}},{\"./shaders/index\":296,\"gl-buffer\":230,\"gl-vao\":310}],298:[function(t,e,r){arguments[4][232][0].apply(r,arguments)},{barycentric:61,dup:232,\"polytope-closest-point/lib/closest_point_2d.js\":464}],299:[function(t,e,r){var n=t(\"glslify\"),i=n([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nfloat inverse(float m) {\\n return 1.0 / m;\\n}\\n\\nmat2 inverse(mat2 m) {\\n return mat2(m[1][1],-m[0][1],\\n -m[1][0], m[0][0]) / (m[0][0]*m[1][1] - m[0][1]*m[1][0]);\\n}\\n\\nmat3 inverse(mat3 m) {\\n float a00 = m[0][0], a01 = m[0][1], a02 = m[0][2];\\n float a10 = m[1][0], a11 = m[1][1], a12 = m[1][2];\\n float a20 = m[2][0], a21 = m[2][1], a22 = m[2][2];\\n\\n float b01 = a22 * a11 - a12 * a21;\\n float b11 = -a22 * a10 + a12 * a20;\\n float b21 = a21 * a10 - a11 * a20;\\n\\n float det = a00 * b01 + a01 * b11 + a02 * b21;\\n\\n return mat3(b01, (-a22 * a01 + a02 * a21), (a12 * a01 - a02 * a11),\\n b11, (a22 * a00 - a02 * a20), (-a12 * a00 + a02 * a10),\\n b21, (-a21 * a00 + a01 * a20), (a11 * a00 - a01 * a10)) / det;\\n}\\n\\nmat4 inverse(mat4 m) {\\n float\\n a00 = m[0][0], a01 = m[0][1], a02 = m[0][2], a03 = m[0][3],\\n a10 = m[1][0], a11 = m[1][1], a12 = m[1][2], a13 = m[1][3],\\n a20 = m[2][0], a21 = m[2][1], a22 = m[2][2], a23 = m[2][3],\\n a30 = m[3][0], a31 = m[3][1], a32 = m[3][2], a33 = m[3][3],\\n\\n b00 = a00 * a11 - a01 * a10,\\n b01 = a00 * a12 - a02 * a10,\\n b02 = a00 * a13 - a03 * a10,\\n b03 = a01 * a12 - a02 * a11,\\n b04 = a01 * a13 - a03 * a11,\\n b05 = a02 * a13 - a03 * a12,\\n b06 = a20 * a31 - a21 * a30,\\n b07 = a20 * a32 - a22 * a30,\\n b08 = a20 * a33 - a23 * a30,\\n b09 = a21 * a32 - a22 * a31,\\n b10 = a21 * a33 - a23 * a31,\\n b11 = a22 * a33 - a23 * a32,\\n\\n det = b00 * b11 - b01 * b10 + b02 * b09 + b03 * b08 - b04 * b07 + b05 * b06;\\n\\n return mat4(\\n a11 * b11 - a12 * b10 + a13 * b09,\\n a02 * b10 - a01 * b11 - a03 * b09,\\n a31 * b05 - a32 * b04 + a33 * b03,\\n a22 * b04 - a21 * b05 - a23 * b03,\\n a12 * b08 - a10 * b11 - a13 * b07,\\n a00 * b11 - a02 * b08 + a03 * b07,\\n a32 * b02 - a30 * b05 - a33 * b01,\\n a20 * b05 - a22 * b02 + a23 * b01,\\n a10 * b10 - a11 * b08 + a13 * b06,\\n a01 * b08 - a00 * b10 - a03 * b06,\\n a30 * b04 - a31 * b02 + a33 * b00,\\n a21 * b02 - a20 * b04 - a23 * b00,\\n a11 * b07 - a10 * b09 - a12 * b06,\\n a00 * b09 - a01 * b07 + a02 * b06,\\n a31 * b01 - a30 * b03 - a32 * b00,\\n a20 * b03 - a21 * b01 + a22 * b00) / det;\\n}\\n\\nvec3 getOrthogonalVector(vec3 v) {\\n // Return up-vector for only-z vector.\\n // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0).\\n // From the above if-statement we have ||a|| > 0 U ||b|| > 0.\\n // Assign z = 0, x = -b, y = a:\\n // a*-b + b*a + c*0 = -ba + ba + 0 = 0\\n if (v.x*v.x > v.z*v.z || v.y*v.y > v.z*v.z) {\\n return normalize(vec3(-v.y, v.x, 0.0));\\n } else {\\n return normalize(vec3(0.0, v.z, -v.y));\\n }\\n}\\n\\n// Calculate the tube vertex and normal at the given index.\\n//\\n// The returned vertex is for a tube ring with its center at origin, radius of length(d), pointing in the direction of d.\\n//\\n// Each tube segment is made up of a ring of vertices.\\n// These vertices are used to make up the triangles of the tube by connecting them together in the vertex array.\\n// The indexes of tube segments run from 0 to 8.\\n//\\nvec3 getTubePosition(vec3 d, float index, out vec3 normal) {\\n float segmentCount = 8.0;\\n\\n float angle = 2.0 * 3.14159 * (index / segmentCount);\\n\\n vec3 u = getOrthogonalVector(d);\\n vec3 v = normalize(cross(u, d));\\n\\n vec3 x = u * cos(angle) * length(d);\\n vec3 y = v * sin(angle) * length(d);\\n vec3 v3 = x + y;\\n\\n normal = normalize(v3);\\n\\n return v3;\\n}\\n\\nattribute vec4 vector;\\nattribute vec4 color, position;\\nattribute vec2 uv;\\nuniform float tubeScale;\\n\\nuniform mat4 model\\n , view\\n , projection;\\nuniform vec3 eyePosition\\n , lightPosition;\\n\\nvarying vec3 f_normal\\n , f_lightDirection\\n , f_eyeDirection\\n , f_data\\n , f_position;\\nvarying vec4 f_color;\\nvarying vec2 f_uv;\\n\\nvoid main() {\\n // Scale the vector magnitude to stay constant with\\n // model & view changes.\\n vec3 normal;\\n vec3 XYZ = getTubePosition(mat3(model) * (tubeScale * vector.w * normalize(vector.xyz)), position.w, normal);\\n vec4 tubePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\\n normal = normalize(normal * inverse(mat3(model)));\\n\\n gl_Position = projection * view * tubePosition;\\n f_color = color;\\n f_normal = normal;\\n f_data = tubePosition.xyz;\\n f_position = position.xyz;\\n f_eyeDirection = eyePosition - tubePosition.xyz;\\n f_lightDirection = lightPosition - tubePosition.xyz;\\n f_uv = uv;\\n}\\n\"]),a=n([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nfloat beckmannDistribution(float x, float roughness) {\\n float NdotH = max(x, 0.0001);\\n float cos2Alpha = NdotH * NdotH;\\n float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\\n float roughness2 = roughness * roughness;\\n float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\\n return exp(tan2Alpha / roughness2) / denom;\\n}\\n\\nfloat cookTorranceSpecular(\\n vec3 lightDirection,\\n vec3 viewDirection,\\n vec3 surfaceNormal,\\n float roughness,\\n float fresnel) {\\n\\n float VdotN = max(dot(viewDirection, surfaceNormal), 0.0);\\n float LdotN = max(dot(lightDirection, surfaceNormal), 0.0);\\n\\n //Half angle vector\\n vec3 H = normalize(lightDirection + viewDirection);\\n\\n //Geometric term\\n float NdotH = max(dot(surfaceNormal, H), 0.0);\\n float VdotH = max(dot(viewDirection, H), 0.000001);\\n float LdotH = max(dot(lightDirection, H), 0.000001);\\n float G1 = (2.0 * NdotH * VdotN) / VdotH;\\n float G2 = (2.0 * NdotH * LdotN) / LdotH;\\n float G = min(1.0, min(G1, G2));\\n \\n //Distribution term\\n float D = beckmannDistribution(NdotH, roughness);\\n\\n //Fresnel term\\n float F = pow(1.0 - VdotN, fresnel);\\n\\n //Multiply terms and done\\n return G * F * D / max(3.14159265 * VdotN, 0.000001);\\n}\\n\\nbool outOfRange(float a, float b, float p) {\\n return ((p > max(a, b)) || \\n (p < min(a, b)));\\n}\\n\\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y));\\n}\\n\\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y) ||\\n outOfRange(a.z, b.z, p.z));\\n}\\n\\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\\n return outOfRange(a.xyz, b.xyz, p.xyz);\\n}\\n\\nuniform vec3 clipBounds[2];\\nuniform float roughness\\n , fresnel\\n , kambient\\n , kdiffuse\\n , kspecular\\n , opacity;\\nuniform sampler2D texture;\\n\\nvarying vec3 f_normal\\n , f_lightDirection\\n , f_eyeDirection\\n , f_data\\n , f_position;\\nvarying vec4 f_color;\\nvarying vec2 f_uv;\\n\\nvoid main() {\\n\\n if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\\n\\n vec3 N = normalize(f_normal);\\n vec3 L = normalize(f_lightDirection);\\n vec3 V = normalize(f_eyeDirection);\\n\\n if(!gl_FrontFacing) {\\n N = -N;\\n }\\n\\n float specular = cookTorranceSpecular(L, V, N, roughness, fresnel);\\n float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\\n\\n vec4 surfaceColor = texture2D(texture, f_uv);\\n vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0);\\n\\n gl_FragColor = litColor * opacity;\\n}\"]),o=n([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nvec3 getOrthogonalVector(vec3 v) {\\n // Return up-vector for only-z vector.\\n // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0).\\n // From the above if-statement we have ||a|| > 0 U ||b|| > 0.\\n // Assign z = 0, x = -b, y = a:\\n // a*-b + b*a + c*0 = -ba + ba + 0 = 0\\n if (v.x*v.x > v.z*v.z || v.y*v.y > v.z*v.z) {\\n return normalize(vec3(-v.y, v.x, 0.0));\\n } else {\\n return normalize(vec3(0.0, v.z, -v.y));\\n }\\n}\\n\\n// Calculate the tube vertex and normal at the given index.\\n//\\n// The returned vertex is for a tube ring with its center at origin, radius of length(d), pointing in the direction of d.\\n//\\n// Each tube segment is made up of a ring of vertices.\\n// These vertices are used to make up the triangles of the tube by connecting them together in the vertex array.\\n// The indexes of tube segments run from 0 to 8.\\n//\\nvec3 getTubePosition(vec3 d, float index, out vec3 normal) {\\n float segmentCount = 8.0;\\n\\n float angle = 2.0 * 3.14159 * (index / segmentCount);\\n\\n vec3 u = getOrthogonalVector(d);\\n vec3 v = normalize(cross(u, d));\\n\\n vec3 x = u * cos(angle) * length(d);\\n vec3 y = v * sin(angle) * length(d);\\n vec3 v3 = x + y;\\n\\n normal = normalize(v3);\\n\\n return v3;\\n}\\n\\nattribute vec4 vector;\\nattribute vec4 position;\\nattribute vec4 id;\\n\\nuniform mat4 model, view, projection;\\nuniform float tubeScale;\\n\\nvarying vec3 f_position;\\nvarying vec4 f_id;\\n\\nvoid main() {\\n vec3 normal;\\n vec3 XYZ = getTubePosition(mat3(model) * (tubeScale * vector.w * normalize(vector.xyz)), position.w, normal);\\n vec4 tubePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\\n\\n gl_Position = projection * view * tubePosition;\\n f_id = id;\\n f_position = position.xyz;\\n}\\n\"]),s=n([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nbool outOfRange(float a, float b, float p) {\\n return ((p > max(a, b)) || \\n (p < min(a, b)));\\n}\\n\\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y));\\n}\\n\\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y) ||\\n outOfRange(a.z, b.z, p.z));\\n}\\n\\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\\n return outOfRange(a.xyz, b.xyz, p.xyz);\\n}\\n\\nuniform vec3 clipBounds[2];\\nuniform float pickId;\\n\\nvarying vec3 f_position;\\nvarying vec4 f_id;\\n\\nvoid main() {\\n if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\\n\\n gl_FragColor = vec4(pickId, f_id.xyz);\\n}\"]);r.meshShader={vertex:i,fragment:a,attributes:[{name:\"position\",type:\"vec4\"},{name:\"normal\",type:\"vec3\"},{name:\"color\",type:\"vec4\"},{name:\"uv\",type:\"vec2\"},{name:\"vector\",type:\"vec4\"}]},r.pickShader={vertex:o,fragment:s,attributes:[{name:\"position\",type:\"vec4\"},{name:\"id\",type:\"vec4\"},{name:\"vector\",type:\"vec4\"}]}},{glslify:392}],300:[function(t,e,r){\"use strict\";var n=t(\"gl-shader\"),i=t(\"gl-buffer\"),a=t(\"gl-vao\"),o=t(\"gl-texture2d\"),s=t(\"normals\"),l=t(\"gl-mat4/multiply\"),c=t(\"gl-mat4/invert\"),u=t(\"ndarray\"),f=t(\"colormap\"),h=t(\"simplicial-complex-contour\"),p=t(\"typedarray-pool\"),d=t(\"./shaders\"),g=(t(\"./closest-point\"),d.meshShader),v=d.pickShader,m=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function y(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,g,v,y,x,b,_,w,k,M,A,T,S,E){this.gl=t,this.cells=[],this.positions=[],this.intensity=[],this.texture=e,this.dirty=!0,this.triShader=r,this.lineShader=n,this.pointShader=i,this.pickShader=a,this.pointPickShader=o,this.contourShader=s,this.trianglePositions=l,this.triangleVectors=c,this.triangleColors=f,this.triangleNormals=p,this.triangleUVs=h,this.triangleIds=u,this.triangleVAO=d,this.triangleCount=0,this.lineWidth=1,this.edgePositions=g,this.edgeColors=y,this.edgeUVs=x,this.edgeIds=v,this.edgeVAO=b,this.edgeCount=0,this.pointPositions=_,this.pointColors=k,this.pointUVs=M,this.pointSizes=A,this.pointIds=w,this.pointVAO=T,this.pointCount=0,this.contourLineWidth=1,this.contourPositions=S,this.contourVAO=E,this.contourCount=0,this.contourColor=[0,0,0],this.contourEnable=!1,this.pickId=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lightPosition=[1e5,1e5,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.opacity=1,this.tubeScale=1,this._model=m,this._view=m,this._projection=m,this._resolution=[1,1]}var x=y.prototype;function b(t){var e=n(t,v.vertex,v.fragment,null,v.attributes);return e.attributes.position.location=0,e.attributes.id.location=1,e.attributes.vector.location=5,e}x.isOpaque=function(){return this.opacity>=1},x.isTransparent=function(){return this.opacity<1},x.pickSlots=1,x.setPickBase=function(t){this.pickId=t},x.highlight=function(t){if(t&&this.contourEnable){for(var e=h(this.cells,this.intensity,t.intensity),r=e.cells,n=e.vertexIds,i=e.vertexWeights,a=r.length,o=p.mallocFloat32(6*a),s=0,l=0;l<a;++l)for(var c=r[l],u=0;u<2;++u){var f=c[0];2===c.length&&(f=c[u]);for(var d=n[f][0],g=n[f][1],v=i[f],m=1-v,y=this.positions[d],x=this.positions[g],b=0;b<3;++b)o[s++]=v*y[b]+m*x[b]}this.contourCount=s/3|0,this.contourPositions.update(o.subarray(0,s)),p.free(o)}else this.contourCount=0},x.update=function(t){t=t||{};var e=this.gl;this.dirty=!0,\"contourEnable\"in t&&(this.contourEnable=t.contourEnable),\"contourColor\"in t&&(this.contourColor=t.contourColor),\"lineWidth\"in t&&(this.lineWidth=t.lineWidth),\"lightPosition\"in t&&(this.lightPosition=t.lightPosition),\"opacity\"in t&&(this.opacity=t.opacity),\"ambient\"in t&&(this.ambientLight=t.ambient),\"diffuse\"in t&&(this.diffuseLight=t.diffuse),\"specular\"in t&&(this.specularLight=t.specular),\"roughness\"in t&&(this.roughness=t.roughness),\"fresnel\"in t&&(this.fresnel=t.fresnel),t.texture?(this.texture.dispose(),this.texture=o(e,t.texture)):t.colormap&&(this.texture.shape=[256,256],this.texture.minFilter=e.LINEAR_MIPMAP_LINEAR,this.texture.magFilter=e.LINEAR,this.texture.setPixels(function(t){for(var e=f({colormap:t,nshades:256,format:\"rgba\"}),r=new Uint8Array(1024),n=0;n<256;++n){for(var i=e[n],a=0;a<3;++a)r[4*n+a]=i[a];r[4*n+3]=255*i[3]}return u(r,[256,256,4],[4,0,1])}(t.colormap)),this.texture.generateMipmap());var r=t.cells,n=t.positions,i=t.vectors;if(n&&r&&i){void 0!==t.tubeScale&&(this.tubeScale=t.tubeScale);var a=[],l=[],c=[],h=[],p=[],d=[],g=[],v=[],m=[],y=[],x=[],b=[],_=[],w=[],k=[];this.cells=r,this.positions=n,this.vectors=i;var M=t.vertexNormals,A=t.cellNormals,T=void 0===t.vertexNormalsEpsilon?1e-6:t.vertexNormalsEpsilon,S=void 0===t.faceNormalsEpsilon?1e-6:t.faceNormalsEpsilon;t.useFacetNormals&&!A&&(A=s.faceNormals(r,n,S)),A||M||(M=s.vertexNormals(r,n,T));var E=t.vertexColors,C=t.cellColors,L=t.meshColor||[1,1,1,1],z=t.vertexUVs,O=t.vertexIntensity,I=t.cellUVs,P=t.cellIntensity,D=1/0,R=-1/0;if(!z&&!I)if(O)if(t.vertexIntensityBounds)D=+t.vertexIntensityBounds[0],R=+t.vertexIntensityBounds[1];else for(var B=0;B<O.length;++B){var F=O[B];D=Math.min(D,F),R=Math.max(R,F)}else if(P)for(B=0;B<P.length;++B){F=P[B];D=Math.min(D,F),R=Math.max(R,F)}else for(B=0;B<n.length;++B){F=n[B][2];D=Math.min(D,F),R=Math.max(R,F)}this.intensity=O||(P?function(t,e,r){for(var n=new Array(e),i=0;i<e;++i)n[i]=0;var a=t.length;for(i=0;i<a;++i)for(var o=t[i],s=0;s<o.length;++s)n[o[s]]=r[i];return n}(r,n.length,P):function(t){for(var e=t.length,r=new Array(e),n=0;n<e;++n)r[n]=t[n][2];return r}(n));var N=t.pointSizes,j=t.pointSize||1;this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]];for(B=0;B<n.length;++B)for(var V=n[B],U=0;U<3;++U)!isNaN(V[U])&&isFinite(V[U])&&(this.bounds[0][U]=Math.min(this.bounds[0][U],V[U]),this.bounds[1][U]=Math.max(this.bounds[1][U],V[U]));var q=0,H=0,G=0;t:for(B=0;B<r.length;++B){var W=r[B];switch(W.length){case 1:for(V=n[X=W[0]],U=0;U<3;++U)if(isNaN(V[U])||!isFinite(V[U]))continue t;x.push(V[0],V[1],V[2],V[3]),3===(Z=E?E[X]:C?C[B]:L).length?b.push(Z[0],Z[1],Z[2],1):b.push(Z[0],Z[1],Z[2],Z[3]),$=z?z[X]:O?[(O[X]-D)/(R-D),0]:I?I[B]:P?[(P[B]-D)/(R-D),0]:[(V[2]-D)/(R-D),0],_.push($[0],$[1]),N?w.push(N[X]):w.push(j),k.push(B),G+=1;break;case 2:for(U=0;U<2;++U){V=n[X=W[U]];for(var Y=0;Y<3;++Y)if(isNaN(V[Y])||!isFinite(V[Y]))continue t}for(U=0;U<2;++U){V=n[X=W[U]];g.push(V[0],V[1],V[2]),3===(Z=E?E[X]:C?C[B]:L).length?v.push(Z[0],Z[1],Z[2],1):v.push(Z[0],Z[1],Z[2],Z[3]),$=z?z[X]:O?[(O[X]-D)/(R-D),0]:I?I[B]:P?[(P[B]-D)/(R-D),0]:[(V[2]-D)/(R-D),0],m.push($[0],$[1]),y.push(B)}H+=1;break;case 3:for(U=0;U<3;++U)for(V=n[X=W[U]],Y=0;Y<3;++Y)if(isNaN(V[Y])||!isFinite(V[Y]))continue t;for(U=0;U<3;++U){var X;V=n[X=W[U]];a.push(V[0],V[1],V[2],V[3]);var Z,$,J,K=i[X];l.push(K[0],K[1],K[2],K[3]),3===(Z=E?E[X]:C?C[B]:L).length?c.push(Z[0],Z[1],Z[2],1):c.push(Z[0],Z[1],Z[2],Z[3]),$=z?z[X]:O?[(O[X]-D)/(R-D),0]:I?I[B]:P?[(P[B]-D)/(R-D),0]:[(V[2]-D)/(R-D),0],p.push($[0],$[1]),J=M?M[X]:A[B],h.push(J[0],J[1],J[2]),d.push(B)}q+=1}}this.pointCount=G,this.edgeCount=H,this.triangleCount=q,this.pointPositions.update(x),this.pointColors.update(b),this.pointUVs.update(_),this.pointSizes.update(w),this.pointIds.update(new Uint32Array(k)),this.edgePositions.update(g),this.edgeColors.update(v),this.edgeUVs.update(m),this.edgeIds.update(new Uint32Array(y)),this.trianglePositions.update(a),this.triangleVectors.update(l),this.triangleColors.update(c),this.triangleUVs.update(p),this.triangleNormals.update(h),this.triangleIds.update(new Uint32Array(d))}},x.drawTransparent=x.draw=function(t){t=t||{};for(var e=this.gl,r=t.model||m,n=t.view||m,i=t.projection||m,a=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],o=0;o<3;++o)a[0][o]=Math.max(a[0][o],this.clipBounds[0][o]),a[1][o]=Math.min(a[1][o],this.clipBounds[1][o]);var s={model:r,view:n,projection:i,clipBounds:a,kambient:this.ambientLight,kdiffuse:this.diffuseLight,kspecular:this.specularLight,roughness:this.roughness,fresnel:this.fresnel,eyePosition:[0,0,0],lightPosition:[0,0,0],opacity:this.opacity,tubeScale:this.tubeScale,contourColor:this.contourColor,texture:0};this.texture.bind(0);var u=new Array(16);l(u,s.view,s.model),l(u,s.projection,u),c(u,u);for(o=0;o<3;++o)s.eyePosition[o]=u[12+o]/u[15];var f,h=u[15];for(o=0;o<3;++o)h+=this.lightPosition[o]*u[4*o+3];for(o=0;o<3;++o){for(var p=u[12+o],d=0;d<3;++d)p+=u[4*d+o]*this.lightPosition[d];s.lightPosition[o]=p/h}this.triangleCount>0&&((f=this.triShader).bind(),f.uniforms=s,this.triangleVAO.bind(),e.drawArrays(e.TRIANGLES,0,3*this.triangleCount),this.triangleVAO.unbind());this.edgeCount>0&&this.lineWidth>0&&((f=this.lineShader).bind(),f.uniforms=s,this.edgeVAO.bind(),e.lineWidth(this.lineWidth),e.drawArrays(e.LINES,0,2*this.edgeCount),this.edgeVAO.unbind());this.pointCount>0&&((f=this.pointShader).bind(),f.uniforms=s,this.pointVAO.bind(),e.drawArrays(e.POINTS,0,this.pointCount),this.pointVAO.unbind());this.contourEnable&&this.contourCount>0&&this.contourLineWidth>0&&((f=this.contourShader).bind(),f.uniforms=s,this.contourVAO.bind(),e.drawArrays(e.LINES,0,this.contourCount),this.contourVAO.unbind())},x.drawPick=function(t){t=t||{};for(var e=this.gl,r=t.model||m,n=t.view||m,i=t.projection||m,a=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],o=0;o<3;++o)a[0][o]=Math.max(a[0][o],this.clipBounds[0][o]),a[1][o]=Math.min(a[1][o],this.clipBounds[1][o]);this._model=[].slice.call(r),this._view=[].slice.call(n),this._projection=[].slice.call(i),this._resolution=[e.drawingBufferWidth,e.drawingBufferHeight];var s,l={model:r,view:n,projection:i,clipBounds:a,tubeScale:this.tubeScale,pickId:this.pickId/255};((s=this.pickShader).bind(),s.uniforms=l,this.triangleCount>0&&(this.triangleVAO.bind(),e.drawArrays(e.TRIANGLES,0,3*this.triangleCount),this.triangleVAO.unbind()),this.edgeCount>0&&(this.edgeVAO.bind(),e.lineWidth(this.lineWidth),e.drawArrays(e.LINES,0,2*this.edgeCount),this.edgeVAO.unbind()),this.pointCount>0)&&((s=this.pointPickShader).bind(),s.uniforms=l,this.pointVAO.bind(),e.drawArrays(e.POINTS,0,this.pointCount),this.pointVAO.unbind())},x.pick=function(t){if(!t)return null;if(t.id!==this.pickId)return null;var e=t.value[0]+256*t.value[1]+65536*t.value[2],r=this.cells[e],n=this.positions[r[1]].slice(0,3);return{index:e,position:n,intensity:this.intensity[r[1]],velocity:this.vectors[r[1]].slice(0,3),divergence:this.vectors[r[1]][3],dataCoordinate:n}},x.dispose=function(){this.texture.dispose(),this.triShader.dispose(),this.pickShader.dispose(),this.triangleVAO.dispose(),this.trianglePositions.dispose(),this.triangleVectors.dispose(),this.triangleColors.dispose(),this.triangleUVs.dispose(),this.triangleNormals.dispose(),this.triangleIds.dispose(),this.edgeVAO.dispose(),this.edgePositions.dispose(),this.edgeColors.dispose(),this.edgeUVs.dispose(),this.edgeIds.dispose(),this.pointVAO.dispose(),this.pointPositions.dispose(),this.pointColors.dispose(),this.pointUVs.dispose(),this.pointSizes.dispose(),this.pointIds.dispose(),this.contourVAO.dispose(),this.contourPositions.dispose()},e.exports=function(t,e){1===arguments.length&&(t=(e=t).gl);var r=e.triShader||function(t){var e=n(t,g.vertex,g.fragment,null,g.attributes);return e.attributes.position.location=0,e.attributes.color.location=2,e.attributes.uv.location=3,e.attributes.vector.location=5,e}(t),s=b(t),l=o(t,u(new Uint8Array([255,255,255,255]),[1,1,4]));l.generateMipmap(),l.minFilter=t.LINEAR_MIPMAP_LINEAR,l.magFilter=t.LINEAR;var c=i(t),f=i(t),h=i(t),p=i(t),d=i(t),v=i(t),m=a(t,[{buffer:c,type:t.FLOAT,size:4},{buffer:v,type:t.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:h,type:t.FLOAT,size:4},{buffer:p,type:t.FLOAT,size:2},{buffer:d,type:t.FLOAT,size:3},{buffer:f,type:t.FLOAT,size:4}]),x=i(t),_=i(t),w=i(t),k=i(t),M=a(t,[{buffer:x,type:t.FLOAT,size:3},{buffer:k,type:t.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:_,type:t.FLOAT,size:4},{buffer:w,type:t.FLOAT,size:2}]),A=i(t),T=i(t),S=i(t),E=i(t),C=i(t),L=a(t,[{buffer:A,type:t.FLOAT,size:3},{buffer:C,type:t.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:T,type:t.FLOAT,size:4},{buffer:S,type:t.FLOAT,size:2},{buffer:E,type:t.FLOAT,size:1}]),z=i(t),O=new y(t,l,r,null,null,s,null,null,c,f,v,h,p,d,m,x,k,_,w,M,A,C,T,S,E,L,z,a(t,[{buffer:z,type:t.FLOAT,size:3}]));return O.update(e),O}},{\"./closest-point\":298,\"./shaders\":299,colormap:114,\"gl-buffer\":230,\"gl-mat4/invert\":254,\"gl-mat4/multiply\":256,\"gl-shader\":288,\"gl-texture2d\":305,\"gl-vao\":310,ndarray:433,normals:436,\"simplicial-complex-contour\":494,\"typedarray-pool\":522}],301:[function(t,e,r){\"use strict\";var n=t(\"gl-vec3\"),i=t(\"gl-vec4\"),a=function(t,e,r,a){for(var o=0,s=0;s<t.length;s++)for(var l=t[s].velocities,c=0;c<l.length;c++){var u=n.length(l[c]);u>o&&(o=u)}var f=t.map(function(t){return function(t,e,r,a){var o,s,l,c=t.points,u=t.velocities,f=t.divergences;n.set(n.create(),0,1,0),n.create(),n.create();n.create();for(var h=[],p=[],d=[],g=[],v=[],m=[],y=0,x=0,b=i.create(),_=i.create(),w=0;w<c.length;w++){o=c[w],s=u[w],l=f[w],0===e&&(l=.05*r),x=n.length(s)/a,b=i.create(),n.copy(b,s),b[3]=l;for(var k=0;k<8;k++)v[k]=[o[0],o[1],o[2],k];if(g.length>0)for(k=0;k<8;k++){var M=(k+1)%8;h.push(g[k],v[k],v[M],v[M],g[M],g[k]),d.push(_,b,b,b,_,_),m.push(y,x,x,x,y,y),p.push([h.length-6,h.length-5,h.length-4],[h.length-3,h.length-2,h.length-1])}var A=g;g=v,v=A,A=_,_=b,b=A,A=y,y=x,x=A}return{positions:h,cells:p,vectors:d,vertexIntensity:m}}(t,r,a,o)}),h=[],p=[],d=[],g=[];for(s=0;s<f.length;s++){var v=f[s],m=h.length;h=h.concat(v.positions),d=d.concat(v.vectors),g=g.concat(v.vertexIntensity);for(c=0;c<v.cells.length;c++){var y=v.cells[c],x=[];p.push(x);for(var b=0;b<y.length;b++)x.push(y[b]+m)}}return{positions:h,cells:p,vectors:d,vertexIntensity:g,colormap:e}},o=function(t,e){var r=n.create(),i=1e-4;n.add(r,t,[i,0,0]);var a=this.getVelocity(r);n.subtract(a,a,e),n.scale(a,a,1e4),n.add(r,t,[0,i,0]);var o=this.getVelocity(r);n.subtract(o,o,e),n.scale(o,o,1e4),n.add(r,t,[0,0,i]);var s=this.getVelocity(r);return n.subtract(s,s,e),n.scale(s,s,1e4),n.add(r,a,o),n.add(r,r,s),r},s=function(t){return h(t,this.vectors,this.meshgrid,this.clampBorders)},l=function(t,e){for(var r=0;r<t.length;r++){var n=t[r];if(n===e)return r;if(n>e)return r-1}return r},c=n.create(),u=n.create(),f=function(t,e,r){return t<e?e:t>r?r:t},h=function(t,e,r,i){var a=t[0],o=t[1],s=t[2],h=r[0].length,p=r[1].length,d=r[2].length,g=l(r[0],a),v=l(r[1],o),m=l(r[2],s),y=g+1,x=v+1,b=m+1;if(r[0][g]===a&&(y=g),r[1][v]===o&&(x=v),r[2][m]===s&&(b=m),i&&(g=f(g,0,h-1),y=f(y,0,h-1),v=f(v,0,p-1),x=f(x,0,p-1),m=f(m,0,d-1),b=f(b,0,d-1)),g<0||v<0||m<0||y>=h||x>=p||b>=d)return n.create();var _=(a-r[0][g])/(r[0][y]-r[0][g]),w=(o-r[1][v])/(r[1][x]-r[1][v]),k=(s-r[2][m])/(r[2][b]-r[2][m]);(_<0||_>1||isNaN(_))&&(_=0),(w<0||w>1||isNaN(w))&&(w=0),(k<0||k>1||isNaN(k))&&(k=0);var M=m*h*p,A=b*h*p,T=v*h,S=x*h,E=g,C=y,L=e[T+M+E],z=e[T+M+C],O=e[S+M+E],I=e[S+M+C],P=e[T+A+E],D=e[T+A+C],R=e[S+A+E],B=e[S+A+C],F=n.create();return n.lerp(F,L,z,_),n.lerp(c,O,I,_),n.lerp(F,F,c,w),n.lerp(c,P,D,_),n.lerp(u,R,B,_),n.lerp(c,c,u,w),n.lerp(F,F,c,k),F},p=function(t){var e=1/0;t.sort(function(t,e){return t-e});for(var r=1;r<t.length;r++){var n=Math.abs(t[r]-t[r-1]);n<e&&(e=n)}return e};e.exports=function(t,e){var r=t.startingPositions,i=t.maxLength||1e3,l=t.tubeSize||1,c=t.absoluteTubeSize;t.getDivergence||(t.getDivergence=o),t.getVelocity||(t.getVelocity=s),void 0===t.clampBorders&&(t.clampBorders=!0);var u=[],f=e[0][0],h=e[0][1],d=e[0][2],g=e[1][0],v=e[1][1],m=e[1][2],y=function(t,e){var r=e[0],n=e[1],i=e[2];return r>=f&&r<=g&&n>=h&&n<=v&&i>=d&&i<=m},x=10*n.distance(e[0],e[1])/i,b=x*x,_=1,w=0;n.create();r.length>=2&&(_=function(t){for(var e=[],r=[],n=[],i={},a={},o={},s=0;s<t.length;s++){var l=t[s],c=l[0],u=l[1],f=l[2];i[c]||(e.push(c),i[c]=!0),a[u]||(r.push(u),a[u]=!0),o[f]||(n.push(f),o[f]=!0)}var h=p(e),d=p(r),g=p(n),v=Math.min(h,d,g);return isFinite(v)?v:1}(r));for(var k=0;k<r.length;k++){var M=n.create();n.copy(M,r[k]);var A=[M],T=[],S=t.getVelocity(M),E=M;T.push(S);var C=[],L=t.getDivergence(M,S);(P=n.length(L))>w&&!isNaN(P)&&isFinite(P)&&(w=P),C.push(P),u.push({points:A,velocities:T,divergences:C});for(var z=0;z<100*i&&A.length<i&&y(0,M);){z++;var O=n.clone(S),I=n.squaredLength(O);if(0===I)break;if(I>b&&n.scale(O,O,x/Math.sqrt(I)),n.add(O,O,M),S=t.getVelocity(O),n.squaredDistance(E,O)-b>-1e-4*b){A.push(O),E=O,T.push(S);L=t.getDivergence(O,S);(P=n.length(L))>w&&!isNaN(P)&&isFinite(P)&&(w=P),C.push(P)}M=O}}for(k=0;k<C.length;k++){var P=C[k];!isNaN(P)&&isFinite(P)||(C[k]=w)}var D=a(u,t.colormap,w,_);return c?D.tubeScale=c:(0===w&&(w=1),D.tubeScale=.5*l*_/w),D},e.exports.createTubeMesh=t(\"./lib/tubemesh\")},{\"./lib/tubemesh\":300,\"gl-vec3\":329,\"gl-vec4\":365}],302:[function(t,e,r){var n=t(\"gl-shader\"),i=t(\"glslify\"),a=i([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute vec4 uv;\\nattribute vec3 f;\\nattribute vec3 normal;\\n\\nuniform mat4 model, view, projection, inverseModel;\\nuniform vec3 lightPosition, eyePosition;\\nuniform sampler2D colormap;\\n\\nvarying float value, kill;\\nvarying vec3 worldCoordinate;\\nvarying vec2 planeCoordinate;\\nvarying vec3 lightDirection, eyeDirection, surfaceNormal;\\nvarying vec4 vColor;\\n\\nvoid main() {\\n worldCoordinate = vec3(uv.zw, f.x);\\n vec4 worldPosition = model * vec4(worldCoordinate, 1.0);\\n vec4 clipPosition = projection * view * worldPosition;\\n gl_Position = clipPosition;\\n kill = f.y;\\n value = f.z;\\n planeCoordinate = uv.xy;\\n\\n vColor = texture2D(colormap, vec2(value, value));\\n\\n //Lighting geometry parameters\\n vec4 cameraCoordinate = view * worldPosition;\\n cameraCoordinate.xyz /= cameraCoordinate.w;\\n lightDirection = lightPosition - cameraCoordinate.xyz;\\n eyeDirection = eyePosition - cameraCoordinate.xyz;\\n surfaceNormal = normalize((vec4(normal,0) * inverseModel).xyz);\\n}\\n\"]),o=i([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nfloat beckmannDistribution(float x, float roughness) {\\n float NdotH = max(x, 0.0001);\\n float cos2Alpha = NdotH * NdotH;\\n float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\\n float roughness2 = roughness * roughness;\\n float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\\n return exp(tan2Alpha / roughness2) / denom;\\n}\\n\\nfloat beckmannSpecular(\\n vec3 lightDirection,\\n vec3 viewDirection,\\n vec3 surfaceNormal,\\n float roughness) {\\n return beckmannDistribution(dot(surfaceNormal, normalize(lightDirection + viewDirection)), roughness);\\n}\\n\\nbool outOfRange(float a, float b, float p) {\\n return ((p > max(a, b)) || \\n (p < min(a, b)));\\n}\\n\\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y));\\n}\\n\\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y) ||\\n outOfRange(a.z, b.z, p.z));\\n}\\n\\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\\n return outOfRange(a.xyz, b.xyz, p.xyz);\\n}\\n\\nuniform vec3 lowerBound, upperBound;\\nuniform float contourTint;\\nuniform vec4 contourColor;\\nuniform sampler2D colormap;\\nuniform vec3 clipBounds[2];\\nuniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity;\\nuniform float vertexColor;\\n\\nvarying float value, kill;\\nvarying vec3 worldCoordinate;\\nvarying vec3 lightDirection, eyeDirection, surfaceNormal;\\nvarying vec4 vColor;\\n\\nvoid main() {\\n if ((kill > 0.0) ||\\n (outOfRange(clipBounds[0], clipBounds[1], worldCoordinate))) discard;\\n\\n vec3 N = normalize(surfaceNormal);\\n vec3 V = normalize(eyeDirection);\\n vec3 L = normalize(lightDirection);\\n\\n if(gl_FrontFacing) {\\n N = -N;\\n }\\n\\n float specular = max(beckmannSpecular(L, V, N, roughness), 0.);\\n float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\\n\\n //decide how to interpolate color \\u2014 in vertex or in fragment\\n vec4 surfaceColor = step(vertexColor, .5) * texture2D(colormap, vec2(value, value)) + step(.5, vertexColor) * vColor;\\n\\n vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0);\\n\\n gl_FragColor = mix(litColor, contourColor, contourTint) * opacity;\\n}\\n\"]),s=i([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute vec4 uv;\\nattribute float f;\\n\\nuniform mat3 permutation;\\nuniform mat4 model, view, projection;\\nuniform float height, zOffset;\\nuniform sampler2D colormap;\\n\\nvarying float value, kill;\\nvarying vec3 worldCoordinate;\\nvarying vec2 planeCoordinate;\\nvarying vec3 lightDirection, eyeDirection, surfaceNormal;\\nvarying vec4 vColor;\\n\\nvoid main() {\\n vec3 dataCoordinate = permutation * vec3(uv.xy, height);\\n vec4 worldPosition = model * vec4(dataCoordinate, 1.0);\\n\\n vec4 clipPosition = projection * view * worldPosition;\\n clipPosition.z = clipPosition.z + zOffset;\\n\\n gl_Position = clipPosition;\\n value = f;\\n kill = -1.0;\\n worldCoordinate = dataCoordinate;\\n planeCoordinate = uv.zw;\\n\\n vColor = texture2D(colormap, vec2(value, value));\\n\\n //Don't do lighting for contours\\n surfaceNormal = vec3(1,0,0);\\n eyeDirection = vec3(0,1,0);\\n lightDirection = vec3(0,0,1);\\n}\\n\"]),l=i([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nbool outOfRange(float a, float b, float p) {\\n return ((p > max(a, b)) || \\n (p < min(a, b)));\\n}\\n\\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y));\\n}\\n\\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y) ||\\n outOfRange(a.z, b.z, p.z));\\n}\\n\\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\\n return outOfRange(a.xyz, b.xyz, p.xyz);\\n}\\n\\nuniform vec2 shape;\\nuniform vec3 clipBounds[2];\\nuniform float pickId;\\n\\nvarying float value, kill;\\nvarying vec3 worldCoordinate;\\nvarying vec2 planeCoordinate;\\nvarying vec3 surfaceNormal;\\n\\nvec2 splitFloat(float v) {\\n float vh = 255.0 * v;\\n float upper = floor(vh);\\n float lower = fract(vh);\\n return vec2(upper / 255.0, floor(lower * 16.0) / 16.0);\\n}\\n\\nvoid main() {\\n if ((kill > 0.0) ||\\n (outOfRange(clipBounds[0], clipBounds[1], worldCoordinate))) discard;\\n\\n vec2 ux = splitFloat(planeCoordinate.x / shape.x);\\n vec2 uy = splitFloat(planeCoordinate.y / shape.y);\\n gl_FragColor = vec4(pickId, ux.x, uy.x, ux.y + (uy.y/16.0));\\n}\\n\"]);r.createShader=function(t){var e=n(t,a,o,null,[{name:\"uv\",type:\"vec4\"},{name:\"f\",type:\"vec3\"},{name:\"normal\",type:\"vec3\"}]);return e.attributes.uv.location=0,e.attributes.f.location=1,e.attributes.normal.location=2,e},r.createPickShader=function(t){var e=n(t,a,l,null,[{name:\"uv\",type:\"vec4\"},{name:\"f\",type:\"vec3\"},{name:\"normal\",type:\"vec3\"}]);return e.attributes.uv.location=0,e.attributes.f.location=1,e.attributes.normal.location=2,e},r.createContourShader=function(t){var e=n(t,s,o,null,[{name:\"uv\",type:\"vec4\"},{name:\"f\",type:\"float\"}]);return e.attributes.uv.location=0,e.attributes.f.location=1,e},r.createPickContourShader=function(t){var e=n(t,s,l,null,[{name:\"uv\",type:\"vec4\"},{name:\"f\",type:\"float\"}]);return e.attributes.uv.location=0,e.attributes.f.location=1,e}},{\"gl-shader\":288,glslify:392}],303:[function(t,e,r){\"use strict\";e.exports=function(t){var e=t.gl,r=y(e),n=b(e),s=x(e),l=_(e),c=i(e),u=a(e,[{buffer:c,size:4,stride:w,offset:0},{buffer:c,size:3,stride:w,offset:16},{buffer:c,size:3,stride:w,offset:28}]),f=i(e),h=a(e,[{buffer:f,size:4,stride:20,offset:0},{buffer:f,size:1,stride:20,offset:16}]),p=i(e),d=a(e,[{buffer:p,size:2,type:e.FLOAT}]),g=o(e,1,S,e.RGBA,e.UNSIGNED_BYTE);g.minFilter=e.LINEAR,g.magFilter=e.LINEAR;var v=new E(e,[0,0],[[0,0,0],[0,0,0]],r,n,c,u,g,s,l,f,h,p,d),m={levels:[[],[],[]]};for(var k in t)m[k]=t[k];return m.colormap=m.colormap||\"jet\",v.update(m),v};var n=t(\"bit-twiddle\"),i=t(\"gl-buffer\"),a=t(\"gl-vao\"),o=t(\"gl-texture2d\"),s=t(\"typedarray-pool\"),l=t(\"colormap\"),c=t(\"ndarray-ops\"),u=t(\"ndarray-pack\"),f=t(\"ndarray\"),h=t(\"surface-nets\"),p=t(\"gl-mat4/multiply\"),d=t(\"gl-mat4/invert\"),g=t(\"binary-search-bounds\"),v=t(\"ndarray-gradient\"),m=t(\"./lib/shaders\"),y=m.createShader,x=m.createContourShader,b=m.createPickShader,_=m.createPickContourShader,w=40,k=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],M=[[0,0],[0,1],[1,0],[1,1],[1,0],[0,1]],A=[[0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0]];function T(t,e,r,n,i){this.position=t,this.index=e,this.uv=r,this.level=n,this.dataCoordinate=i}!function(){for(var t=0;t<3;++t){var e=A[t],r=(t+2)%3;e[(t+1)%3+0]=1,e[r+3]=1,e[t+6]=1}}();var S=256;function E(t,e,r,n,i,a,o,l,c,u,h,p,d,g){this.gl=t,this.shape=e,this.bounds=r,this.intensityBounds=[],this._shader=n,this._pickShader=i,this._coordinateBuffer=a,this._vao=o,this._colorMap=l,this._contourShader=c,this._contourPickShader=u,this._contourBuffer=h,this._contourVAO=p,this._contourOffsets=[[],[],[]],this._contourCounts=[[],[],[]],this._vertexCount=0,this._pickResult=new T([0,0,0],[0,0],[0,0],[0,0,0],[0,0,0]),this._dynamicBuffer=d,this._dynamicVAO=g,this._dynamicOffsets=[0,0,0],this._dynamicCounts=[0,0,0],this.contourWidth=[1,1,1],this.contourLevels=[[1],[1],[1]],this.contourTint=[0,0,0],this.contourColor=[[.5,.5,.5,1],[.5,.5,.5,1],[.5,.5,.5,1]],this.showContour=!0,this.showSurface=!0,this.enableHighlight=[!0,!0,!0],this.highlightColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.highlightTint=[1,1,1],this.highlightLevel=[-1,-1,-1],this.enableDynamic=[!0,!0,!0],this.dynamicLevel=[NaN,NaN,NaN],this.dynamicColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.dynamicTint=[1,1,1],this.dynamicWidth=[1,1,1],this.axesBounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.surfaceProject=[!1,!1,!1],this.contourProject=[[!1,!1,!1],[!1,!1,!1],[!1,!1,!1]],this.colorBounds=[!1,!1],this._field=[f(s.mallocFloat(1024),[0,0]),f(s.mallocFloat(1024),[0,0]),f(s.mallocFloat(1024),[0,0])],this.pickId=1,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.snapToData=!1,this.opacity=1,this.lightPosition=[10,1e4,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.vertexColor=0,this.dirty=!0}var C=E.prototype;C.isTransparent=function(){return this.opacity<1},C.isOpaque=function(){if(this.opacity>=1)return!0;for(var t=0;t<3;++t)if(this._contourCounts[t].length>0||this._dynamicCounts[t]>0)return!0;return!1},C.pickSlots=1,C.setPickBase=function(t){this.pickId=t};var L=[0,0,0],z={showSurface:!1,showContour:!1,projections:[k.slice(),k.slice(),k.slice()],clipBounds:[[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]]]};function O(t,e){var r,n,i,a=e.axes&&e.axes.lastCubeProps.axis||L,o=e.showSurface,s=e.showContour;for(r=0;r<3;++r)for(o=o||e.surfaceProject[r],n=0;n<3;++n)s=s||e.contourProject[r][n];for(r=0;r<3;++r){var l=z.projections[r];for(n=0;n<16;++n)l[n]=0;for(n=0;n<4;++n)l[5*n]=1;l[5*r]=0,l[12+r]=e.axesBounds[+(a[r]>0)][r],p(l,t.model,l);var c=z.clipBounds[r];for(i=0;i<2;++i)for(n=0;n<3;++n)c[i][n]=t.clipBounds[i][n];c[0][r]=-1e8,c[1][r]=1e8}return z.showSurface=o,z.showContour=s,z}var I={model:k,view:k,projection:k,inverseModel:k.slice(),lowerBound:[0,0,0],upperBound:[0,0,0],colorMap:0,clipBounds:[[0,0,0],[0,0,0]],height:0,contourTint:0,contourColor:[0,0,0,1],permutation:[1,0,0,0,1,0,0,0,1],zOffset:-1e-4,kambient:1,kdiffuse:1,kspecular:1,lightPosition:[1e3,1e3,1e3],eyePosition:[0,0,0],roughness:1,fresnel:1,opacity:1,vertexColor:0},P=k.slice(),D=[1,0,0,0,1,0,0,0,1];function R(t,e){t=t||{};var r=this.gl;r.disable(r.CULL_FACE),this._colorMap.bind(0);var n=I;n.model=t.model||k,n.view=t.view||k,n.projection=t.projection||k,n.lowerBound=[this.bounds[0][0],this.bounds[0][1],this.colorBounds[0]||this.bounds[0][2]],n.upperBound=[this.bounds[1][0],this.bounds[1][1],this.colorBounds[1]||this.bounds[1][2]],n.contourColor=this.contourColor[0],n.inverseModel=d(n.inverseModel,n.model);for(var i=0;i<2;++i)for(var a=n.clipBounds[i],o=0;o<3;++o)a[o]=Math.min(Math.max(this.clipBounds[i][o],-1e8),1e8);n.kambient=this.ambientLight,n.kdiffuse=this.diffuseLight,n.kspecular=this.specularLight,n.roughness=this.roughness,n.fresnel=this.fresnel,n.opacity=this.opacity,n.height=0,n.permutation=D,n.vertexColor=this.vertexColor;var s=P;for(p(s,n.view,n.model),p(s,n.projection,s),d(s,s),i=0;i<3;++i)n.eyePosition[i]=s[12+i]/s[15];var l=s[15];for(i=0;i<3;++i)l+=this.lightPosition[i]*s[4*i+3];for(i=0;i<3;++i){var c=s[12+i];for(o=0;o<3;++o)c+=s[4*o+i]*this.lightPosition[o];n.lightPosition[i]=c/l}var u=O(n,this);if(u.showSurface&&e===this.opacity<1){for(this._shader.bind(),this._shader.uniforms=n,this._vao.bind(),this.showSurface&&this._vertexCount&&this._vao.draw(r.TRIANGLES,this._vertexCount),i=0;i<3;++i)this.surfaceProject[i]&&this.vertexCount&&(this._shader.uniforms.model=u.projections[i],this._shader.uniforms.clipBounds=u.clipBounds[i],this._vao.draw(r.TRIANGLES,this._vertexCount));this._vao.unbind()}if(u.showContour&&!e){var f=this._contourShader;n.kambient=1,n.kdiffuse=0,n.kspecular=0,n.opacity=1,f.bind(),f.uniforms=n;var h=this._contourVAO;for(h.bind(),i=0;i<3;++i)for(f.uniforms.permutation=A[i],r.lineWidth(this.contourWidth[i]),o=0;o<this.contourLevels[i].length;++o)o===this.highlightLevel[i]?(f.uniforms.contourColor=this.highlightColor[i],f.uniforms.contourTint=this.highlightTint[i]):0!==o&&o-1!==this.highlightLevel[i]||(f.uniforms.contourColor=this.contourColor[i],f.uniforms.contourTint=this.contourTint[i]),this._contourCounts[i][o]&&(f.uniforms.height=this.contourLevels[i][o],h.draw(r.LINES,this._contourCounts[i][o],this._contourOffsets[i][o]));for(i=0;i<3;++i)for(f.uniforms.model=u.projections[i],f.uniforms.clipBounds=u.clipBounds[i],o=0;o<3;++o)if(this.contourProject[i][o]){f.uniforms.permutation=A[o],r.lineWidth(this.contourWidth[o]);for(var g=0;g<this.contourLevels[o].length;++g)g===this.highlightLevel[o]?(f.uniforms.contourColor=this.highlightColor[o],f.uniforms.contourTint=this.highlightTint[o]):0!==g&&g-1!==this.highlightLevel[o]||(f.uniforms.contourColor=this.contourColor[o],f.uniforms.contourTint=this.contourTint[o]),f.uniforms.height=this.contourLevels[o][g],h.draw(r.LINES,this._contourCounts[o][g],this._contourOffsets[o][g])}for(h.unbind(),(h=this._dynamicVAO).bind(),i=0;i<3;++i)if(0!==this._dynamicCounts[i])for(f.uniforms.model=n.model,f.uniforms.clipBounds=n.clipBounds,f.uniforms.permutation=A[i],r.lineWidth(this.dynamicWidth[i]),f.uniforms.contourColor=this.dynamicColor[i],f.uniforms.contourTint=this.dynamicTint[i],f.uniforms.height=this.dynamicLevel[i],h.draw(r.LINES,this._dynamicCounts[i],this._dynamicOffsets[i]),o=0;o<3;++o)this.contourProject[o][i]&&(f.uniforms.model=u.projections[o],f.uniforms.clipBounds=u.clipBounds[o],h.draw(r.LINES,this._dynamicCounts[i],this._dynamicOffsets[i]));h.unbind()}}C.draw=function(t){return R.call(this,t,!1)},C.drawTransparent=function(t){return R.call(this,t,!0)};var B={model:k,view:k,projection:k,inverseModel:k,clipBounds:[[0,0,0],[0,0,0]],height:0,shape:[0,0],pickId:0,lowerBound:[0,0,0],upperBound:[0,0,0],zOffset:0,permutation:[1,0,0,0,1,0,0,0,1],lightPosition:[0,0,0],eyePosition:[0,0,0]};function F(t,e){var r=e.shape.slice(),n=t.shape.slice();c.assign(t.lo(1,1).hi(r[0],r[1]),e),c.assign(t.lo(1).hi(r[0],1),e.hi(r[0],1)),c.assign(t.lo(1,n[1]-1).hi(r[0],1),e.lo(0,r[1]-1).hi(r[0],1)),c.assign(t.lo(0,1).hi(1,r[1]),e.hi(1)),c.assign(t.lo(n[0]-1,1).hi(1,r[1]),e.lo(r[0]-1)),t.set(0,0,e.get(0,0)),t.set(0,n[1]-1,e.get(0,r[1]-1)),t.set(n[0]-1,0,e.get(r[0]-1,0)),t.set(n[0]-1,n[1]-1,e.get(r[0]-1,r[1]-1))}function N(t,e){return Array.isArray(t)?[e(t[0]),e(t[1]),e(t[2])]:[e(t),e(t),e(t)]}function j(t){return Array.isArray(t)?3===t.length?[t[0],t[1],t[2],1]:[t[0],t[1],t[2],t[3]]:[0,0,0,1]}function V(t){if(Array.isArray(t)){if(Array.isArray(t))return[j(t[0]),j(t[1]),j(t[2])];var e=j(t);return[e.slice(),e.slice(),e.slice()]}}C.drawPick=function(t){t=t||{};var e=this.gl;e.disable(e.CULL_FACE);var r=B;r.model=t.model||k,r.view=t.view||k,r.projection=t.projection||k,r.shape=this._field[2].shape,r.pickId=this.pickId/255,r.lowerBound=this.bounds[0],r.upperBound=this.bounds[1],r.permutation=D;for(var n=0;n<2;++n)for(var i=r.clipBounds[n],a=0;a<3;++a)i[a]=Math.min(Math.max(this.clipBounds[n][a],-1e8),1e8);var o=O(r,this);if(o.showSurface){for(this._pickShader.bind(),this._pickShader.uniforms=r,this._vao.bind(),this._vao.draw(e.TRIANGLES,this._vertexCount),n=0;n<3;++n)this.surfaceProject[n]&&(this._pickShader.uniforms.model=o.projections[n],this._pickShader.uniforms.clipBounds=o.clipBounds[n],this._vao.draw(e.TRIANGLES,this._vertexCount));this._vao.unbind()}if(o.showContour){var s=this._contourPickShader;s.bind(),s.uniforms=r;var l=this._contourVAO;for(l.bind(),a=0;a<3;++a)for(e.lineWidth(this.contourWidth[a]),s.uniforms.permutation=A[a],n=0;n<this.contourLevels[a].length;++n)this._contourCounts[a][n]&&(s.uniforms.height=this.contourLevels[a][n],l.draw(e.LINES,this._contourCounts[a][n],this._contourOffsets[a][n]));for(n=0;n<3;++n)for(s.uniforms.model=o.projections[n],s.uniforms.clipBounds=o.clipBounds[n],a=0;a<3;++a)if(this.contourProject[n][a]){s.uniforms.permutation=A[a],e.lineWidth(this.contourWidth[a]);for(var c=0;c<this.contourLevels[a].length;++c)this._contourCounts[a][c]&&(s.uniforms.height=this.contourLevels[a][c],l.draw(e.LINES,this._contourCounts[a][c],this._contourOffsets[a][c]))}l.unbind()}},C.pick=function(t){if(!t)return null;if(t.id!==this.pickId)return null;var e=this._field[2].shape,r=this._pickResult,n=e[0]*(t.value[0]+(t.value[2]>>4)/16)/255,i=Math.floor(n),a=n-i,o=e[1]*(t.value[1]+(15&t.value[2])/16)/255,s=Math.floor(o),l=o-s;i+=1,s+=1;var c=r.position;c[0]=c[1]=c[2]=0;for(var u=0;u<2;++u)for(var f=u?a:1-a,h=0;h<2;++h)for(var p=i+u,d=s+h,v=f*(h?l:1-l),m=0;m<3;++m)c[m]+=this._field[m].get(p,d)*v;for(var y=this._pickResult.level,x=0;x<3;++x)if(y[x]=g.le(this.contourLevels[x],c[x]),y[x]<0)this.contourLevels[x].length>0&&(y[x]=0);else if(y[x]<this.contourLevels[x].length-1){var b=this.contourLevels[x][y[x]],_=this.contourLevels[x][y[x]+1];Math.abs(b-c[x])>Math.abs(_-c[x])&&(y[x]+=1)}for(r.index[0]=a<.5?i:i+1,r.index[1]=l<.5?s:s+1,r.uv[0]=n/e[0],r.uv[1]=o/e[1],m=0;m<3;++m)r.dataCoordinate[m]=this._field[m].get(r.index[0],r.index[1]);return r},C.update=function(t){t=t||{},this.dirty=!0,\"contourWidth\"in t&&(this.contourWidth=N(t.contourWidth,Number)),\"showContour\"in t&&(this.showContour=N(t.showContour,Boolean)),\"showSurface\"in t&&(this.showSurface=!!t.showSurface),\"contourTint\"in t&&(this.contourTint=N(t.contourTint,Boolean)),\"contourColor\"in t&&(this.contourColor=V(t.contourColor)),\"contourProject\"in t&&(this.contourProject=N(t.contourProject,function(t){return N(t,Boolean)})),\"surfaceProject\"in t&&(this.surfaceProject=t.surfaceProject),\"dynamicColor\"in t&&(this.dynamicColor=V(t.dynamicColor)),\"dynamicTint\"in t&&(this.dynamicTint=N(t.dynamicTint,Number)),\"dynamicWidth\"in t&&(this.dynamicWidth=N(t.dynamicWidth,Number)),\"opacity\"in t&&(this.opacity=t.opacity),\"colorBounds\"in t&&(this.colorBounds=t.colorBounds),\"vertexColor\"in t&&(this.vertexColor=t.vertexColor?1:0);var e=t.field||t.coords&&t.coords[2]||null,r=!1;if(e||(e=this._field[2].shape[0]||this._field[2].shape[2]?this._field[2].lo(1,1).hi(this._field[2].shape[0]-2,this._field[2].shape[1]-2):this._field[2].hi(0,0)),\"field\"in t||\"coords\"in t){var i=(e.shape[0]+2)*(e.shape[1]+2);i>this._field[2].data.length&&(s.freeFloat(this._field[2].data),this._field[2].data=s.mallocFloat(n.nextPow2(i))),this._field[2]=f(this._field[2].data,[e.shape[0]+2,e.shape[1]+2]),F(this._field[2],e),this.shape=e.shape.slice();for(var a=this.shape,o=0;o<2;++o)this._field[2].size>this._field[o].data.length&&(s.freeFloat(this._field[o].data),this._field[o].data=s.mallocFloat(this._field[2].size)),this._field[o]=f(this._field[o].data,[a[0]+2,a[1]+2]);if(t.coords){var p=t.coords;if(!Array.isArray(p)||3!==p.length)throw new Error(\"gl-surface: invalid coordinates for x/y\");for(o=0;o<2;++o){var d=p[o];for(b=0;b<2;++b)if(d.shape[b]!==a[b])throw new Error(\"gl-surface: coords have incorrect shape\");F(this._field[o],d)}}else if(t.ticks){var g=t.ticks;if(!Array.isArray(g)||2!==g.length)throw new Error(\"gl-surface: invalid ticks\");for(o=0;o<2;++o){var m=g[o];if((Array.isArray(m)||m.length)&&(m=f(m)),m.shape[0]!==a[o])throw new Error(\"gl-surface: invalid tick length\");var y=f(m.data,a);y.stride[o]=m.stride[0],y.stride[1^o]=0,F(this._field[o],y)}}else{for(o=0;o<2;++o){var x=[0,0];x[o]=1,this._field[o]=f(this._field[o].data,[a[0]+2,a[1]+2],x,0)}this._field[0].set(0,0,0);for(var b=0;b<a[0];++b)this._field[0].set(b+1,0,b);for(this._field[0].set(a[0]+1,0,a[0]-1),this._field[1].set(0,0,0),b=0;b<a[1];++b)this._field[1].set(0,b+1,b);this._field[1].set(0,a[1]+1,a[1]-1)}var _=this._field,w=f(s.mallocFloat(3*_[2].size*2),[3,a[0]+2,a[1]+2,2]);for(o=0;o<3;++o)v(w.pick(o),_[o],\"mirror\");var k=f(s.mallocFloat(3*_[2].size),[a[0]+2,a[1]+2,3]);for(o=0;o<a[0]+2;++o)for(b=0;b<a[1]+2;++b){var A=w.get(0,o,b,0),T=w.get(0,o,b,1),E=w.get(1,o,b,0),C=w.get(1,o,b,1),L=w.get(2,o,b,0),z=w.get(2,o,b,1),O=E*z-C*L,I=L*T-z*A,P=A*C-T*E,D=Math.sqrt(O*O+I*I+P*P);D<1e-8?(D=Math.max(Math.abs(O),Math.abs(I),Math.abs(P)))<1e-8?(P=1,I=O=0,D=1):D=1/D:D=1/Math.sqrt(D),k.set(o,b,0,O*D),k.set(o,b,1,I*D),k.set(o,b,2,P*D)}s.free(w.data);var R=[1/0,1/0,1/0],B=[-1/0,-1/0,-1/0],j=1/0,U=-1/0,q=(a[0]-1)*(a[1]-1)*6,H=s.mallocFloat(n.nextPow2(10*q)),G=0,W=0;for(o=0;o<a[0]-1;++o)t:for(b=0;b<a[1]-1;++b){for(var Y=0;Y<2;++Y)for(var X=0;X<2;++X)for(var Z=0;Z<3;++Z){var $=this._field[Z].get(1+o+Y,1+b+X);if(isNaN($)||!isFinite($))continue t}for(Z=0;Z<6;++Z){var J=o+M[Z][0],K=b+M[Z][1],Q=this._field[0].get(J+1,K+1),tt=this._field[1].get(J+1,K+1),et=$=this._field[2].get(J+1,K+1);O=k.get(J+1,K+1,0),I=k.get(J+1,K+1,1),P=k.get(J+1,K+1,2),t.intensity&&(et=t.intensity.get(J,K)),H[G++]=J,H[G++]=K,H[G++]=Q,H[G++]=tt,H[G++]=$,H[G++]=0,H[G++]=et,H[G++]=O,H[G++]=I,H[G++]=P,R[0]=Math.min(R[0],Q),R[1]=Math.min(R[1],tt),R[2]=Math.min(R[2],$),j=Math.min(j,et),B[0]=Math.max(B[0],Q),B[1]=Math.max(B[1],tt),B[2]=Math.max(B[2],$),U=Math.max(U,et),W+=1}}for(t.intensityBounds&&(j=+t.intensityBounds[0],U=+t.intensityBounds[1]),o=6;o<G;o+=10)H[o]=(H[o]-j)/(U-j);this._vertexCount=W,this._coordinateBuffer.update(H.subarray(0,G)),s.freeFloat(H),s.free(k.data),this.bounds=[R,B],this.intensity=t.intensity||this._field[2],this.intensityBounds[0]===j&&this.intensityBounds[1]===U||(r=!0),this.intensityBounds=[j,U]}if(\"levels\"in t){var rt=t.levels;for(rt=Array.isArray(rt[0])?rt.slice():[[],[],rt],o=0;o<3;++o)rt[o]=rt[o].slice(),rt.sort(function(t,e){return t-e});t:for(o=0;o<3;++o){if(rt[o].length!==this.contourLevels[o].length){r=!0;break}for(b=0;b<rt[o].length;++b)if(rt[o][b]!==this.contourLevels[o][b]){r=!0;break t}}this.contourLevels=rt}if(r){_=this._field,a=this.shape;for(var nt=[],it=0;it<3;++it){rt=this.contourLevels[it];var at=[],ot=[],st=[0,0,0];for(o=0;o<rt.length;++o){var lt=h(this._field[it],rt[o]);at.push(nt.length/5|0),W=0;t:for(b=0;b<lt.cells.length;++b){var ct=lt.cells[b];for(Z=0;Z<2;++Z){var ut=lt.positions[ct[Z]],ft=ut[0],ht=0|Math.floor(ft),pt=ft-ht,dt=ut[1],gt=0|Math.floor(dt),vt=dt-gt,mt=!1;e:for(var yt=0;yt<3;++yt){st[yt]=0;var xt=(it+yt+1)%3;for(Y=0;Y<2;++Y){var bt=Y?pt:1-pt;for(J=0|Math.min(Math.max(ht+Y,0),a[0]),X=0;X<2;++X){var _t=X?vt:1-vt;if(K=0|Math.min(Math.max(gt+X,0),a[1]),$=yt<2?this._field[xt].get(J,K):(this.intensity.get(J,K)-this.intensityBounds[0])/(this.intensityBounds[1]-this.intensityBounds[0]),!isFinite($)||isNaN($)){mt=!0;break e}var wt=bt*_t;st[yt]+=wt*$}}}if(mt){if(Z>0){for(var kt=0;kt<5;++kt)nt.pop();W-=1}continue t}nt.push(st[0],st[1],ut[0],ut[1],st[2]),W+=1}}ot.push(W)}this._contourOffsets[it]=at,this._contourCounts[it]=ot}var Mt=s.mallocFloat(nt.length);for(o=0;o<nt.length;++o)Mt[o]=nt[o];this._contourBuffer.update(Mt),s.freeFloat(Mt)}t.colormap&&this._colorMap.setPixels(function(t){var e=u([l({colormap:t,nshades:S,format:\"rgba\"}).map(function(t){return[t[0],t[1],t[2],255*t[3]]})]);return c.divseq(e,255),e}(t.colormap))},C.dispose=function(){this._shader.dispose(),this._vao.dispose(),this._coordinateBuffer.dispose(),this._colorMap.dispose(),this._contourBuffer.dispose(),this._contourVAO.dispose(),this._contourShader.dispose(),this._contourPickShader.dispose(),this._dynamicBuffer.dispose(),this._dynamicVAO.dispose();for(var t=0;t<3;++t)s.freeFloat(this._field[t].data)},C.highlight=function(t){if(!t)return this._dynamicCounts=[0,0,0],this.dyanamicLevel=[NaN,NaN,NaN],void(this.highlightLevel=[-1,-1,-1]);for(var e=0;e<3;++e)this.enableHighlight[e]?this.highlightLevel[e]=t.level[e]:this.highlightLevel[e]=-1;var r;if(r=this.snapToData?t.dataCoordinate:t.position,this.enableDynamic[0]&&r[0]!==this.dynamicLevel[0]||this.enableDynamic[1]&&r[1]!==this.dynamicLevel[1]||this.enableDynamic[2]&&r[2]!==this.dynamicLevel[2]){for(var n=0,i=this.shape,a=s.mallocFloat(12*i[0]*i[1]),o=0;o<3;++o)if(this.enableDynamic[o]){this.dynamicLevel[o]=r[o];var l=(o+1)%3,c=(o+2)%3,u=this._field[o],f=this._field[l],p=this._field[c],d=(this.intensity,h(u,r[o])),g=d.cells,v=d.positions;for(this._dynamicOffsets[o]=n,e=0;e<g.length;++e)for(var m=g[e],y=0;y<2;++y){var x=v[m[y]],b=+x[0],_=0|b,w=0|Math.min(_+1,i[0]),k=b-_,M=1-k,A=+x[1],T=0|A,S=0|Math.min(T+1,i[1]),E=A-T,C=1-E,L=M*C,z=M*E,O=k*C,I=k*E,P=L*f.get(_,T)+z*f.get(_,S)+O*f.get(w,T)+I*f.get(w,S),D=L*p.get(_,T)+z*p.get(_,S)+O*p.get(w,T)+I*p.get(w,S);if(isNaN(P)||isNaN(D)){y&&(n-=1);break}a[2*n+0]=P,a[2*n+1]=D,n+=1}this._dynamicCounts[o]=n-this._dynamicOffsets[o]}else this.dynamicLevel[o]=NaN,this._dynamicCounts[o]=0;this._dynamicBuffer.update(a.subarray(0,2*n)),s.freeFloat(a)}}},{\"./lib/shaders\":302,\"binary-search-bounds\":79,\"bit-twiddle\":80,colormap:114,\"gl-buffer\":230,\"gl-mat4/invert\":254,\"gl-mat4/multiply\":256,\"gl-texture2d\":305,\"gl-vao\":310,ndarray:433,\"ndarray-gradient\":424,\"ndarray-ops\":427,\"ndarray-pack\":428,\"surface-nets\":508,\"typedarray-pool\":522}],304:[function(t,e,r){\"use strict\";var n=t(\"css-font\"),i=t(\"pick-by-alias\"),a=t(\"regl\"),o=t(\"gl-util/context\"),s=t(\"es6-weak-map\"),l=t(\"color-normalize\"),c=t(\"font-atlas\"),u=t(\"typedarray-pool\"),f=t(\"parse-rect\"),h=t(\"is-plain-obj\"),p=t(\"parse-unit\"),d=t(\"to-px\"),g=t(\"detect-kerning\"),v=t(\"object-assign\"),m=t(\"font-measure\"),y=t(\"flatten-vertex-data\"),x=t(\"bit-twiddle\").nextPow2,b=new s,_=!1;if(document.body){var w=document.body.appendChild(document.createElement(\"div\"));w.style.font=\"italic small-caps bold condensed 16px/2 cursive\",getComputedStyle(w).fontStretch&&(_=!0),document.body.removeChild(w)}var k=function(t){!function(t){return\"function\"==typeof t&&t._gl&&t.prop&&t.texture&&t.buffer}(t)?this.gl=o(t):(t={regl:t},this.gl=t.regl._gl),this.shader=b.get(this.gl),this.shader?this.regl=this.shader.regl:this.regl=t.regl||a({gl:this.gl}),this.charBuffer=this.regl.buffer({type:\"uint8\",usage:\"stream\"}),this.sizeBuffer=this.regl.buffer({type:\"float\",usage:\"stream\"}),this.shader||(this.shader=this.createShader(),b.set(this.gl,this.shader)),this.batch=[],this.fontSize=[],this.font=[],this.fontAtlas=[],this.draw=this.shader.draw.bind(this),this.render=function(){this.regl._refresh(),this.draw(this.batch)},this.canvas=this.gl.canvas,this.update(h(t)?t:{})};k.prototype.createShader=function(){var t=this.regl,e=t({blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:\"src alpha\",dstRGB:\"one minus src alpha\",srcAlpha:\"one minus dst alpha\",dstAlpha:\"one\"}},stencil:{enable:!1},depth:{enable:!1},count:t.prop(\"count\"),offset:t.prop(\"offset\"),attributes:{charOffset:{offset:4,stride:8,buffer:t.this(\"sizeBuffer\")},width:{offset:0,stride:8,buffer:t.this(\"sizeBuffer\")},char:t.this(\"charBuffer\"),position:t.this(\"position\")},uniforms:{atlasSize:function(t,e){return[e.atlas.width,e.atlas.height]},atlasDim:function(t,e){return[e.atlas.cols,e.atlas.rows]},atlas:function(t,e){return e.atlas.texture},charStep:function(t,e){return e.atlas.step},em:function(t,e){return e.atlas.em},color:t.prop(\"color\"),opacity:t.prop(\"opacity\"),viewport:t.this(\"viewportArray\"),scale:t.this(\"scale\"),align:t.prop(\"align\"),baseline:t.prop(\"baseline\"),translate:t.this(\"translate\"),positionOffset:t.prop(\"positionOffset\")},primitive:\"points\",viewport:t.this(\"viewport\"),vert:\"\\n\\t\\t\\tprecision highp float;\\n\\t\\t\\tattribute float width, charOffset, char;\\n\\t\\t\\tattribute vec2 position;\\n\\t\\t\\tuniform float fontSize, charStep, em, align, baseline;\\n\\t\\t\\tuniform vec4 viewport;\\n\\t\\t\\tuniform vec4 color;\\n\\t\\t\\tuniform vec2 atlasSize, atlasDim, scale, translate, positionOffset;\\n\\t\\t\\tvarying vec2 charCoord, charId;\\n\\t\\t\\tvarying float charWidth;\\n\\t\\t\\tvarying vec4 fontColor;\\n\\t\\t\\tvoid main () {\\n\\t\\t\\t\\t\"+(k.normalViewport?\"\":\"vec2 positionOffset = vec2(positionOffset.x,- positionOffset.y);\")+\"\\n\\n\\t\\t\\t\\tvec2 offset = floor(em * (vec2(align + charOffset, baseline)\\n\\t\\t\\t\\t\\t+ positionOffset))\\n\\t\\t\\t\\t\\t/ (viewport.zw * scale.xy);\\n\\n\\t\\t\\t\\tvec2 position = (position + translate) * scale;\\n\\t\\t\\t\\tposition += offset * scale;\\n\\n\\t\\t\\t\\t\"+(k.normalViewport?\"position.y = 1. - position.y;\":\"\")+\"\\n\\n\\t\\t\\t\\tcharCoord = position * viewport.zw + viewport.xy;\\n\\n\\t\\t\\t\\tgl_Position = vec4(position * 2. - 1., 0, 1);\\n\\n\\t\\t\\t\\tgl_PointSize = charStep;\\n\\n\\t\\t\\t\\tcharId.x = mod(char, atlasDim.x);\\n\\t\\t\\t\\tcharId.y = floor(char / atlasDim.x);\\n\\n\\t\\t\\t\\tcharWidth = width * em;\\n\\n\\t\\t\\t\\tfontColor = color / 255.;\\n\\t\\t\\t}\",frag:\"\\n\\t\\t\\tprecision highp float;\\n\\t\\t\\tuniform sampler2D atlas;\\n\\t\\t\\tuniform float fontSize, charStep, opacity;\\n\\t\\t\\tuniform vec2 atlasSize;\\n\\t\\t\\tuniform vec4 viewport;\\n\\t\\t\\tvarying vec4 fontColor;\\n\\t\\t\\tvarying vec2 charCoord, charId;\\n\\t\\t\\tvarying float charWidth;\\n\\n\\t\\t\\tfloat lightness(vec4 color) {\\n\\t\\t\\t\\treturn color.r * 0.299 + color.g * 0.587 + color.b * 0.114;\\n\\t\\t\\t}\\n\\n\\t\\t\\tvoid main () {\\n\\t\\t\\t\\tvec2 uv = gl_FragCoord.xy - charCoord + charStep * .5;\\n\\t\\t\\t\\tfloat halfCharStep = floor(charStep * .5 + .5);\\n\\n\\t\\t\\t\\t// invert y and shift by 1px (FF expecially needs that)\\n\\t\\t\\t\\tuv.y = charStep - uv.y;\\n\\n\\t\\t\\t\\t// ignore points outside of character bounding box\\n\\t\\t\\t\\tfloat halfCharWidth = ceil(charWidth * .5);\\n\\t\\t\\t\\tif (floor(uv.x) > halfCharStep + halfCharWidth ||\\n\\t\\t\\t\\t\\tfloor(uv.x) < halfCharStep - halfCharWidth) return;\\n\\n\\t\\t\\t\\tuv += charId * charStep;\\n\\t\\t\\t\\tuv = uv / atlasSize;\\n\\n\\t\\t\\t\\tvec4 color = fontColor;\\n\\t\\t\\t\\tvec4 mask = texture2D(atlas, uv);\\n\\n\\t\\t\\t\\tfloat maskY = lightness(mask);\\n\\t\\t\\t\\t// float colorY = lightness(color);\\n\\t\\t\\t\\tcolor.a *= maskY;\\n\\t\\t\\t\\tcolor.a *= opacity;\\n\\n\\t\\t\\t\\t// color.a += .1;\\n\\n\\t\\t\\t\\t// antialiasing, see yiq color space y-channel formula\\n\\t\\t\\t\\t// color.rgb += (1. - color.rgb) * (1. - mask.rgb);\\n\\n\\t\\t\\t\\tgl_FragColor = color;\\n\\t\\t\\t}\"});return{regl:t,draw:e,atlas:{}}},k.prototype.update=function(t){var e=this;if(\"string\"==typeof t)t={text:t};else if(!t)return;null!=(t=i(t,{position:\"position positions coord coords coordinates\",font:\"font fontFace fontface typeface cssFont css-font family fontFamily\",fontSize:\"fontSize fontsize size font-size\",text:\"text texts chars characters value values symbols\",align:\"align alignment textAlign textbaseline\",baseline:\"baseline textBaseline textbaseline\",direction:\"dir direction textDirection\",color:\"color colour fill fill-color fillColor textColor textcolor\",kerning:\"kerning kern\",range:\"range dataBox\",viewport:\"vp viewport viewBox viewbox viewPort\",opacity:\"opacity alpha transparency visible visibility opaque\",offset:\"offset positionOffset padding shift indent indentation\"},!0)).opacity&&(Array.isArray(t.opacity)?this.opacity=t.opacity.map(function(t){return parseFloat(t)}):this.opacity=parseFloat(t.opacity)),null!=t.viewport&&(this.viewport=f(t.viewport),k.normalViewport&&(this.viewport.y=this.canvas.height-this.viewport.y-this.viewport.height),this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),null==this.viewport&&(this.viewport={x:0,y:0,width:this.gl.drawingBufferWidth,height:this.gl.drawingBufferHeight},this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),null!=t.kerning&&(this.kerning=t.kerning),null!=t.offset&&(\"number\"==typeof t.offset&&(t.offset=[t.offset,0]),this.positionOffset=y(t.offset)),t.direction&&(this.direction=t.direction),t.range&&(this.range=t.range,this.scale=[1/(t.range[2]-t.range[0]),1/(t.range[3]-t.range[1])],this.translate=[-t.range[0],-t.range[1]]),t.scale&&(this.scale=t.scale),t.translate&&(this.translate=t.translate),this.scale||(this.scale=[1/this.viewport.width,1/this.viewport.height]),this.translate||(this.translate=[0,0]),this.font.length||t.font||(t.font=k.baseFontSize+\"px sans-serif\");var r,a=!1,o=!1;if(t.font&&(Array.isArray(t.font)?t.font:[t.font]).forEach(function(t,r){if(\"string\"==typeof t)try{t=n.parse(t)}catch(e){t=n.parse(k.baseFontSize+\"px \"+t)}else t=n.parse(n.stringify(t));var i=n.stringify({size:k.baseFontSize,family:t.family,stretch:_?t.stretch:void 0,variant:t.variant,weight:t.weight,style:t.style}),s=p(t.size),l=Math.round(s[0]*d(s[1]));if(l!==e.fontSize[r]&&(o=!0,e.fontSize[r]=l),!(e.font[r]&&i==e.font[r].baseString||(a=!0,e.font[r]=k.fonts[i],e.font[r]))){var c=t.family.join(\", \"),u=[t.style];t.style!=t.variant&&u.push(t.variant),t.variant!=t.weight&&u.push(t.weight),_&&t.weight!=t.stretch&&u.push(t.stretch),e.font[r]={baseString:i,family:c,weight:t.weight,stretch:t.stretch,style:t.style,variant:t.variant,width:{},kerning:{},metrics:m(c,{origin:\"top\",fontSize:k.baseFontSize,fontStyle:u.join(\" \")})},k.fonts[i]=e.font[r]}}),(a||o)&&this.font.forEach(function(r,i){var a=n.stringify({size:e.fontSize[i],family:r.family,stretch:_?r.stretch:void 0,variant:r.variant,weight:r.weight,style:r.style});if(e.fontAtlas[i]=e.shader.atlas[a],!e.fontAtlas[i]){var o=r.metrics;e.shader.atlas[a]=e.fontAtlas[i]={fontString:a,step:2*Math.ceil(e.fontSize[i]*o.bottom*.5),em:e.fontSize[i],cols:0,rows:0,height:0,width:0,chars:[],ids:{},texture:e.regl.texture()}}null==t.text&&(t.text=e.text)}),\"string\"==typeof t.text&&t.position&&t.position.length>2){for(var s=Array(.5*t.position.length),h=0;h<s.length;h++)s[h]=t.text;t.text=s}if(null!=t.text||a){if(this.textOffsets=[0],Array.isArray(t.text)){this.count=t.text[0].length,this.counts=[this.count];for(var b=1;b<t.text.length;b++)e.textOffsets[b]=e.textOffsets[b-1]+t.text[b-1].length,e.count+=t.text[b].length,e.counts.push(t.text[b].length);this.text=t.text.join(\"\")}else this.text=t.text,this.count=this.text.length,this.counts=[this.count];r=[],this.font.forEach(function(t,n){k.atlasContext.font=t.baseString;for(var i=e.fontAtlas[n],a=0;a<e.text.length;a++){var o=e.text.charAt(a);if(null==i.ids[o]&&(i.ids[o]=i.chars.length,i.chars.push(o),r.push(o)),null==t.width[o]&&(t.width[o]=k.atlasContext.measureText(o).width/k.baseFontSize,e.kerning)){var s=[];for(var l in t.width)s.push(l+o,o+l);v(t.kerning,g(t.family,{pairs:s}))}}})}if(t.position)if(t.position.length>2){for(var w=!t.position[0].length,M=u.mallocFloat(2*this.count),A=0,T=0;A<this.counts.length;A++){var S=e.counts[A];if(w)for(var E=0;E<S;E++)M[T++]=t.position[2*A],M[T++]=t.position[2*A+1];else for(var C=0;C<S;C++)M[T++]=t.position[A][0],M[T++]=t.position[A][1]}this.position.call?this.position({type:\"float\",data:M}):this.position=this.regl.buffer({type:\"float\",data:M}),u.freeFloat(M)}else this.position.destroy&&this.position.destroy(),this.position={constant:t.position};if(t.text||a){var L=u.mallocUint8(this.count),z=u.mallocFloat(2*this.count);this.textWidth=[];for(var O=0,I=0;O<this.counts.length;O++){for(var P=e.counts[O],D=e.font[O]||e.font[0],R=e.fontAtlas[O]||e.fontAtlas[0],B=0;B<P;B++){var F=e.text.charAt(I),N=e.text.charAt(I-1);if(L[I]=R.ids[F],z[2*I]=D.width[F],B){var j=z[2*I-2],V=z[2*I],U=z[2*I-1]+.5*j+.5*V;if(e.kerning){var q=D.kerning[N+F];q&&(U+=.001*q)}z[2*I+1]=U}else z[2*I+1]=.5*z[2*I];I++}e.textWidth.push(z.length?.5*z[2*I-2]+z[2*I-1]:0)}t.align||(t.align=this.align),this.charBuffer({data:L,type:\"uint8\",usage:\"stream\"}),this.sizeBuffer({data:z,type:\"float\",usage:\"stream\"}),u.freeUint8(L),u.freeFloat(z),r.length&&this.font.forEach(function(t,r){var n=e.fontAtlas[r],i=n.step,a=Math.floor(k.maxAtlasSize/i),o=Math.min(a,n.chars.length),s=Math.ceil(n.chars.length/o),l=x(o*i),u=x(s*i);n.width=l,n.height=u,n.rows=s,n.cols=o,n.em&&n.texture({data:c({canvas:k.atlasCanvas,font:n.fontString,chars:n.chars,shape:[l,u],step:[i,i]})})})}if(t.align&&(this.align=t.align,this.alignOffset=this.textWidth.map(function(t,r){var n=Array.isArray(e.align)?e.align.length>1?e.align[r]:e.align[0]:e.align;if(\"number\"==typeof n)return n;switch(n){case\"right\":case\"end\":return-t;case\"center\":case\"centre\":case\"middle\":return.5*-t}return 0})),null==this.baseline&&null==t.baseline&&(t.baseline=0),null!=t.baseline&&(this.baseline=t.baseline,Array.isArray(this.baseline)||(this.baseline=[this.baseline]),this.baselineOffset=this.baseline.map(function(t,r){var n=(e.font[r]||e.font[0]).metrics,i=0;return i+=.5*n.bottom,i+=\"number\"==typeof t?t-n.baseline:-n[t],k.normalViewport||(i*=-1),i})),null!=t.color)if(t.color||(t.color=\"transparent\"),\"string\"!=typeof t.color&&isNaN(t.color)){var H;if(\"number\"==typeof t.color[0]&&t.color.length>this.counts.length){var G=t.color.length;H=u.mallocUint8(G);for(var W=(t.color.subarray||t.color.slice).bind(t.color),Y=0;Y<G;Y+=4)H.set(l(W(Y,Y+4),\"uint8\"),Y)}else{var X=t.color.length;H=u.mallocUint8(4*X);for(var Z=0;Z<X;Z++)H.set(l(t.color[Z]||0,\"uint8\"),4*Z)}this.color=H}else this.color=l(t.color,\"uint8\");if(t.position||t.text||t.color||t.baseline||t.align||t.font||t.offset||t.opacity)if(this.color.length>4||this.baselineOffset.length>1||this.align&&this.align.length>1||this.fontAtlas.length>1||this.positionOffset.length>2){var $=Math.max(.5*this.position.length||0,.25*this.color.length||0,this.baselineOffset.length||0,this.alignOffset.length||0,this.font.length||0,this.opacity.length||0,.5*this.positionOffset.length||0);this.batch=Array($);for(var J=0;J<this.batch.length;J++)e.batch[J]={count:e.counts.length>1?e.counts[J]:e.counts[0],offset:e.textOffsets.length>1?e.textOffsets[J]:e.textOffsets[0],color:e.color?e.color.length<=4?e.color:e.color.subarray(4*J,4*J+4):[0,0,0,255],opacity:Array.isArray(e.opacity)?e.opacity[J]:e.opacity,baseline:null!=e.baselineOffset[J]?e.baselineOffset[J]:e.baselineOffset[0],align:e.align?null!=e.alignOffset[J]?e.alignOffset[J]:e.alignOffset[0]:0,atlas:e.fontAtlas[J]||e.fontAtlas[0],positionOffset:e.positionOffset.length>2?e.positionOffset.subarray(2*J,2*J+2):e.positionOffset}}else this.count?this.batch=[{count:this.count,offset:0,color:this.color||[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[0]:this.opacity,baseline:this.baselineOffset[0],align:this.alignOffset?this.alignOffset[0]:0,atlas:this.fontAtlas[0],positionOffset:this.positionOffset}]:this.batch=[]},k.prototype.destroy=function(){},k.prototype.kerning=!0,k.prototype.position={constant:new Float32Array(2)},k.prototype.translate=null,k.prototype.scale=null,k.prototype.font=null,k.prototype.text=\"\",k.prototype.positionOffset=[0,0],k.prototype.opacity=1,k.prototype.color=new Uint8Array([0,0,0,255]),k.prototype.alignOffset=[0,0],k.normalViewport=!1,k.maxAtlasSize=1024,k.atlasCanvas=document.createElement(\"canvas\"),k.atlasContext=k.atlasCanvas.getContext(\"2d\",{alpha:!1}),k.baseFontSize=64,k.fonts={},e.exports=k},{\"bit-twiddle\":80,\"color-normalize\":108,\"css-font\":127,\"detect-kerning\":151,\"es6-weak-map\":209,\"flatten-vertex-data\":216,\"font-atlas\":217,\"font-measure\":218,\"gl-util/context\":306,\"is-plain-obj\":405,\"object-assign\":437,\"parse-rect\":442,\"parse-unit\":444,\"pick-by-alias\":448,regl:478,\"to-px\":516,\"typedarray-pool\":522}],305:[function(t,e,r){\"use strict\";var n=t(\"ndarray\"),i=t(\"ndarray-ops\"),a=t(\"typedarray-pool\");e.exports=function(t){if(arguments.length<=1)throw new Error(\"gl-texture2d: Missing arguments for texture2d constructor\");o||function(t){o=[t.LINEAR,t.NEAREST_MIPMAP_LINEAR,t.LINEAR_MIPMAP_NEAREST,t.LINEAR_MIPMAP_NEAREST],s=[t.NEAREST,t.LINEAR,t.NEAREST_MIPMAP_NEAREST,t.NEAREST_MIPMAP_LINEAR,t.LINEAR_MIPMAP_NEAREST,t.LINEAR_MIPMAP_LINEAR],l=[t.REPEAT,t.CLAMP_TO_EDGE,t.MIRRORED_REPEAT]}(t);if(\"number\"==typeof arguments[1])return v(t,arguments[1],arguments[2],arguments[3]||t.RGBA,arguments[4]||t.UNSIGNED_BYTE);if(Array.isArray(arguments[1]))return v(t,0|arguments[1][0],0|arguments[1][1],arguments[2]||t.RGBA,arguments[3]||t.UNSIGNED_BYTE);if(\"object\"==typeof arguments[1]){var e=arguments[1],r=c(e)?e:e.raw;if(r)return function(t,e,r,n,i,a){var o=g(t);return t.texImage2D(t.TEXTURE_2D,0,i,i,a,e),new h(t,o,r,n,i,a)}(t,r,0|e.width,0|e.height,arguments[2]||t.RGBA,arguments[3]||t.UNSIGNED_BYTE);if(e.shape&&e.data&&e.stride)return function(t,e){var r=e.dtype,o=e.shape.slice(),s=t.getParameter(t.MAX_TEXTURE_SIZE);if(o[0]<0||o[0]>s||o[1]<0||o[1]>s)throw new Error(\"gl-texture2d: Invalid texture size\");var l=d(o,e.stride.slice()),c=0;\"float32\"===r?c=t.FLOAT:\"float64\"===r?(c=t.FLOAT,l=!1,r=\"float32\"):\"uint8\"===r?c=t.UNSIGNED_BYTE:(c=t.UNSIGNED_BYTE,l=!1,r=\"uint8\");var f,p,v=0;if(2===o.length)v=t.LUMINANCE,o=[o[0],o[1],1],e=n(e.data,o,[e.stride[0],e.stride[1],1],e.offset);else{if(3!==o.length)throw new Error(\"gl-texture2d: Invalid shape for texture\");if(1===o[2])v=t.ALPHA;else if(2===o[2])v=t.LUMINANCE_ALPHA;else if(3===o[2])v=t.RGB;else{if(4!==o[2])throw new Error(\"gl-texture2d: Invalid shape for pixel coords\");v=t.RGBA}}c!==t.FLOAT||t.getExtension(\"OES_texture_float\")||(c=t.UNSIGNED_BYTE,l=!1);var m=e.size;if(l)f=0===e.offset&&e.data.length===m?e.data:e.data.subarray(e.offset,e.offset+m);else{var y=[o[2],o[2]*o[0],1];p=a.malloc(m,r);var x=n(p,o,y,0);\"float32\"!==r&&\"float64\"!==r||c!==t.UNSIGNED_BYTE?i.assign(x,e):u(x,e),f=p.subarray(0,m)}var b=g(t);t.texImage2D(t.TEXTURE_2D,0,v,o[0],o[1],0,v,c,f),l||a.free(p);return new h(t,b,o[0],o[1],v,c)}(t,e)}throw new Error(\"gl-texture2d: Invalid arguments for texture2d constructor\")};var o=null,s=null,l=null;function c(t){return\"undefined\"!=typeof HTMLCanvasElement&&t instanceof HTMLCanvasElement||\"undefined\"!=typeof HTMLImageElement&&t instanceof HTMLImageElement||\"undefined\"!=typeof HTMLVideoElement&&t instanceof HTMLVideoElement||\"undefined\"!=typeof ImageData&&t instanceof ImageData}var u=function(t,e){i.muls(t,e,255)};function f(t,e,r){var n=t.gl,i=n.getParameter(n.MAX_TEXTURE_SIZE);if(e<0||e>i||r<0||r>i)throw new Error(\"gl-texture2d: Invalid texture size\");return t._shape=[e,r],t.bind(),n.texImage2D(n.TEXTURE_2D,0,t.format,e,r,0,t.format,t.type,null),t._mipLevels=[0],t}function h(t,e,r,n,i,a){this.gl=t,this.handle=e,this.format=i,this.type=a,this._shape=[r,n],this._mipLevels=[0],this._magFilter=t.NEAREST,this._minFilter=t.NEAREST,this._wrapS=t.CLAMP_TO_EDGE,this._wrapT=t.CLAMP_TO_EDGE,this._anisoSamples=1;var o=this,s=[this._wrapS,this._wrapT];Object.defineProperties(s,[{get:function(){return o._wrapS},set:function(t){return o.wrapS=t}},{get:function(){return o._wrapT},set:function(t){return o.wrapT=t}}]),this._wrapVector=s;var l=[this._shape[0],this._shape[1]];Object.defineProperties(l,[{get:function(){return o._shape[0]},set:function(t){return o.width=t}},{get:function(){return o._shape[1]},set:function(t){return o.height=t}}]),this._shapeVector=l}var p=h.prototype;function d(t,e){return 3===t.length?1===e[2]&&e[1]===t[0]*t[2]&&e[0]===t[2]:1===e[0]&&e[1]===t[0]}function g(t){var e=t.createTexture();return t.bindTexture(t.TEXTURE_2D,e),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),e}function v(t,e,r,n,i){var a=t.getParameter(t.MAX_TEXTURE_SIZE);if(e<0||e>a||r<0||r>a)throw new Error(\"gl-texture2d: Invalid texture shape\");if(i===t.FLOAT&&!t.getExtension(\"OES_texture_float\"))throw new Error(\"gl-texture2d: Floating point textures not supported on this platform\");var o=g(t);return t.texImage2D(t.TEXTURE_2D,0,n,e,r,0,n,i,null),new h(t,o,e,r,n,i)}Object.defineProperties(p,{minFilter:{get:function(){return this._minFilter},set:function(t){this.bind();var e=this.gl;if(this.type===e.FLOAT&&o.indexOf(t)>=0&&(e.getExtension(\"OES_texture_float_linear\")||(t=e.NEAREST)),s.indexOf(t)<0)throw new Error(\"gl-texture2d: Unknown filter mode \"+t);return e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,t),this._minFilter=t}},magFilter:{get:function(){return this._magFilter},set:function(t){this.bind();var e=this.gl;if(this.type===e.FLOAT&&o.indexOf(t)>=0&&(e.getExtension(\"OES_texture_float_linear\")||(t=e.NEAREST)),s.indexOf(t)<0)throw new Error(\"gl-texture2d: Unknown filter mode \"+t);return e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,t),this._magFilter=t}},mipSamples:{get:function(){return this._anisoSamples},set:function(t){var e=this._anisoSamples;if(this._anisoSamples=0|Math.max(t,1),e!==this._anisoSamples){var r=this.gl.getExtension(\"EXT_texture_filter_anisotropic\");r&&this.gl.texParameterf(this.gl.TEXTURE_2D,r.TEXTURE_MAX_ANISOTROPY_EXT,this._anisoSamples)}return this._anisoSamples}},wrapS:{get:function(){return this._wrapS},set:function(t){if(this.bind(),l.indexOf(t)<0)throw new Error(\"gl-texture2d: Unknown wrap mode \"+t);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,t),this._wrapS=t}},wrapT:{get:function(){return this._wrapT},set:function(t){if(this.bind(),l.indexOf(t)<0)throw new Error(\"gl-texture2d: Unknown wrap mode \"+t);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,t),this._wrapT=t}},wrap:{get:function(){return this._wrapVector},set:function(t){if(Array.isArray(t)||(t=[t,t]),2!==t.length)throw new Error(\"gl-texture2d: Must specify wrap mode for rows and columns\");for(var e=0;e<2;++e)if(l.indexOf(t[e])<0)throw new Error(\"gl-texture2d: Unknown wrap mode \"+t);this._wrapS=t[0],this._wrapT=t[1];var r=this.gl;return this.bind(),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,this._wrapS),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,this._wrapT),t}},shape:{get:function(){return this._shapeVector},set:function(t){if(Array.isArray(t)){if(2!==t.length)throw new Error(\"gl-texture2d: Invalid texture shape\")}else t=[0|t,0|t];return f(this,0|t[0],0|t[1]),[0|t[0],0|t[1]]}},width:{get:function(){return this._shape[0]},set:function(t){return f(this,t|=0,this._shape[1]),t}},height:{get:function(){return this._shape[1]},set:function(t){return t|=0,f(this,this._shape[0],t),t}}}),p.bind=function(t){var e=this.gl;return void 0!==t&&e.activeTexture(e.TEXTURE0+(0|t)),e.bindTexture(e.TEXTURE_2D,this.handle),void 0!==t?0|t:e.getParameter(e.ACTIVE_TEXTURE)-e.TEXTURE0},p.dispose=function(){this.gl.deleteTexture(this.handle)},p.generateMipmap=function(){this.bind(),this.gl.generateMipmap(this.gl.TEXTURE_2D);for(var t=Math.min(this._shape[0],this._shape[1]),e=0;t>0;++e,t>>>=1)this._mipLevels.indexOf(e)<0&&this._mipLevels.push(e)},p.setPixels=function(t,e,r,o){var s=this.gl;this.bind(),Array.isArray(e)?(o=r,r=0|e[1],e=0|e[0]):(e=e||0,r=r||0),o=o||0;var l=c(t)?t:t.raw;if(l){this._mipLevels.indexOf(o)<0?(s.texImage2D(s.TEXTURE_2D,0,this.format,this.format,this.type,l),this._mipLevels.push(o)):s.texSubImage2D(s.TEXTURE_2D,o,e,r,this.format,this.type,l)}else{if(!(t.shape&&t.stride&&t.data))throw new Error(\"gl-texture2d: Unsupported data type\");if(t.shape.length<2||e+t.shape[1]>this._shape[1]>>>o||r+t.shape[0]>this._shape[0]>>>o||e<0||r<0)throw new Error(\"gl-texture2d: Texture dimensions are out of bounds\");!function(t,e,r,o,s,l,c,f){var h=f.dtype,p=f.shape.slice();if(p.length<2||p.length>3)throw new Error(\"gl-texture2d: Invalid ndarray, must be 2d or 3d\");var g=0,v=0,m=d(p,f.stride.slice());\"float32\"===h?g=t.FLOAT:\"float64\"===h?(g=t.FLOAT,m=!1,h=\"float32\"):\"uint8\"===h?g=t.UNSIGNED_BYTE:(g=t.UNSIGNED_BYTE,m=!1,h=\"uint8\");if(2===p.length)v=t.LUMINANCE,p=[p[0],p[1],1],f=n(f.data,p,[f.stride[0],f.stride[1],1],f.offset);else{if(3!==p.length)throw new Error(\"gl-texture2d: Invalid shape for texture\");if(1===p[2])v=t.ALPHA;else if(2===p[2])v=t.LUMINANCE_ALPHA;else if(3===p[2])v=t.RGB;else{if(4!==p[2])throw new Error(\"gl-texture2d: Invalid shape for pixel coords\");v=t.RGBA}p[2]}v!==t.LUMINANCE&&v!==t.ALPHA||s!==t.LUMINANCE&&s!==t.ALPHA||(v=s);if(v!==s)throw new Error(\"gl-texture2d: Incompatible texture format for setPixels\");var y=f.size,x=c.indexOf(o)<0;x&&c.push(o);if(g===l&&m)0===f.offset&&f.data.length===y?x?t.texImage2D(t.TEXTURE_2D,o,s,p[0],p[1],0,s,l,f.data):t.texSubImage2D(t.TEXTURE_2D,o,e,r,p[0],p[1],s,l,f.data):x?t.texImage2D(t.TEXTURE_2D,o,s,p[0],p[1],0,s,l,f.data.subarray(f.offset,f.offset+y)):t.texSubImage2D(t.TEXTURE_2D,o,e,r,p[0],p[1],s,l,f.data.subarray(f.offset,f.offset+y));else{var b;b=l===t.FLOAT?a.mallocFloat32(y):a.mallocUint8(y);var _=n(b,p,[p[2],p[2]*p[0],1]);g===t.FLOAT&&l===t.UNSIGNED_BYTE?u(_,f):i.assign(_,f),x?t.texImage2D(t.TEXTURE_2D,o,s,p[0],p[1],0,s,l,b.subarray(0,y)):t.texSubImage2D(t.TEXTURE_2D,o,e,r,p[0],p[1],s,l,b.subarray(0,y)),l===t.FLOAT?a.freeFloat32(b):a.freeUint8(b)}}(s,e,r,o,this.format,this.type,this._mipLevels,t)}}},{ndarray:433,\"ndarray-ops\":427,\"typedarray-pool\":522}],306:[function(t,e,r){\"use strict\";var n=t(\"pick-by-alias\");function i(t){if(t.container)if(t.container==document.body)document.body.style.width||(t.canvas.width=t.width||t.pixelRatio*window.innerWidth),document.body.style.height||(t.canvas.height=t.height||t.pixelRatio*window.innerHeight);else{var e=t.container.getBoundingClientRect();t.canvas.width=t.width||e.right-e.left,t.canvas.height=t.height||e.bottom-e.top}}function a(t){return\"function\"==typeof t.getContext&&\"width\"in t&&\"height\"in t}e.exports=function(t){var e;if(t?\"string\"==typeof t&&(t={container:t}):t={},a(t)?t={container:t}:t=\"string\"==typeof(e=t).nodeName&&\"function\"==typeof e.appendChild&&\"function\"==typeof e.getBoundingClientRect?{container:t}:function(t){return\"function\"==typeof t.drawArrays||\"function\"==typeof t.drawElements}(t)?{gl:t}:n(t,{container:\"container target element el canvas holder parent parentNode wrapper use ref root node\",gl:\"gl context webgl glContext\",attrs:\"attributes attrs contextAttributes\",pixelRatio:\"pixelRatio pxRatio px ratio pxratio pixelratio\"},!0),t.pixelRatio||(t.pixelRatio=window.pixelRatio||1),t.gl)return t.gl;if(t.canvas&&(t.container=t.canvas.parentNode),t.container){if(\"string\"==typeof t.container){var r=document.querySelector(t.container);if(!r)throw Error(\"Element \"+t.container+\" is not found\");t.container=r}a(t.container)?(t.canvas=t.container,t.container=t.canvas.parentNode):t.canvas||(t.canvas=document.createElement(\"canvas\"),t.container.appendChild(t.canvas),i(t))}else t.canvas||(t.container=document.body||document.documentElement,t.canvas=document.createElement(\"canvas\"),t.canvas.style.position=\"absolute\",t.canvas.style.top=0,t.canvas.style.left=0,t.container.appendChild(t.canvas),i(t));if(!t.gl)try{t.gl=t.canvas.getContext(\"webgl\",t.attrs)}catch(e){try{t.gl=t.canvas.getContext(\"experimental-webgl\",t.attrs)}catch(e){t.gl=t.canvas.getContext(\"webgl-experimental\",t.attrs)}}return t.gl}},{\"pick-by-alias\":448}],307:[function(t,e,r){\"use strict\";e.exports=function(t,e,r){e?e.bind():t.bindBuffer(t.ELEMENT_ARRAY_BUFFER,null);var n=0|t.getParameter(t.MAX_VERTEX_ATTRIBS);if(r){if(r.length>n)throw new Error(\"gl-vao: Too many vertex attributes\");for(var i=0;i<r.length;++i){var a=r[i];if(a.buffer){var o=a.buffer,s=a.size||4,l=a.type||t.FLOAT,c=!!a.normalized,u=a.stride||0,f=a.offset||0;o.bind(),t.enableVertexAttribArray(i),t.vertexAttribPointer(i,s,l,c,u,f)}else{if(\"number\"==typeof a)t.vertexAttrib1f(i,a);else if(1===a.length)t.vertexAttrib1f(i,a[0]);else if(2===a.length)t.vertexAttrib2f(i,a[0],a[1]);else if(3===a.length)t.vertexAttrib3f(i,a[0],a[1],a[2]);else{if(4!==a.length)throw new Error(\"gl-vao: Invalid vertex attribute\");t.vertexAttrib4f(i,a[0],a[1],a[2],a[3])}t.disableVertexAttribArray(i)}}for(;i<n;++i)t.disableVertexAttribArray(i)}else for(t.bindBuffer(t.ARRAY_BUFFER,null),i=0;i<n;++i)t.disableVertexAttribArray(i)}},{}],308:[function(t,e,r){\"use strict\";var n=t(\"./do-bind.js\");function i(t){this.gl=t,this._elements=null,this._attributes=null,this._elementsType=t.UNSIGNED_SHORT}i.prototype.bind=function(){n(this.gl,this._elements,this._attributes)},i.prototype.update=function(t,e,r){this._elements=e,this._attributes=t,this._elementsType=r||this.gl.UNSIGNED_SHORT},i.prototype.dispose=function(){},i.prototype.unbind=function(){},i.prototype.draw=function(t,e,r){r=r||0;var n=this.gl;this._elements?n.drawElements(t,e,this._elementsType,r):n.drawArrays(t,r,e)},e.exports=function(t){return new i(t)}},{\"./do-bind.js\":307}],309:[function(t,e,r){\"use strict\";var n=t(\"./do-bind.js\");function i(t,e,r,n,i,a){this.location=t,this.dimension=e,this.a=r,this.b=n,this.c=i,this.d=a}function a(t,e,r){this.gl=t,this._ext=e,this.handle=r,this._attribs=[],this._useElements=!1,this._elementsType=t.UNSIGNED_SHORT}i.prototype.bind=function(t){switch(this.dimension){case 1:t.vertexAttrib1f(this.location,this.a);break;case 2:t.vertexAttrib2f(this.location,this.a,this.b);break;case 3:t.vertexAttrib3f(this.location,this.a,this.b,this.c);break;case 4:t.vertexAttrib4f(this.location,this.a,this.b,this.c,this.d)}},a.prototype.bind=function(){this._ext.bindVertexArrayOES(this.handle);for(var t=0;t<this._attribs.length;++t)this._attribs[t].bind(this.gl)},a.prototype.unbind=function(){this._ext.bindVertexArrayOES(null)},a.prototype.dispose=function(){this._ext.deleteVertexArrayOES(this.handle)},a.prototype.update=function(t,e,r){if(this.bind(),n(this.gl,e,t),this.unbind(),this._attribs.length=0,t)for(var a=0;a<t.length;++a){var o=t[a];\"number\"==typeof o?this._attribs.push(new i(a,1,o)):Array.isArray(o)&&this._attribs.push(new i(a,o.length,o[0],o[1],o[2],o[3]))}this._useElements=!!e,this._elementsType=r||this.gl.UNSIGNED_SHORT},a.prototype.draw=function(t,e,r){r=r||0;var n=this.gl;this._useElements?n.drawElements(t,e,this._elementsType,r):n.drawArrays(t,r,e)},e.exports=function(t,e){return new a(t,e,e.createVertexArrayOES())}},{\"./do-bind.js\":307}],310:[function(t,e,r){\"use strict\";var n=t(\"./lib/vao-native.js\"),i=t(\"./lib/vao-emulated.js\");function a(t){this.bindVertexArrayOES=t.bindVertexArray.bind(t),this.createVertexArrayOES=t.createVertexArray.bind(t),this.deleteVertexArrayOES=t.deleteVertexArray.bind(t)}e.exports=function(t,e,r,o){var s,l=t.createVertexArray?new a(t):t.getExtension(\"OES_vertex_array_object\");return(s=l?n(t,l):i(t)).update(e,r,o),s}},{\"./lib/vao-emulated.js\":308,\"./lib/vao-native.js\":309}],311:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t}},{}],312:[function(t,e,r){e.exports=function(t,e){var r=n(t[0],t[1],t[2]),o=n(e[0],e[1],e[2]);i(r,r),i(o,o);var s=a(r,o);return s>1?0:Math.acos(s)};var n=t(\"./fromValues\"),i=t(\"./normalize\"),a=t(\"./dot\")},{\"./dot\":322,\"./fromValues\":328,\"./normalize\":339}],313:[function(t,e,r){e.exports=function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t}},{}],314:[function(t,e,r){e.exports=function(t){var e=new Float32Array(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}},{}],315:[function(t,e,r){e.exports=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}},{}],316:[function(t,e,r){e.exports=function(){var t=new Float32Array(3);return t[0]=0,t[1]=0,t[2]=0,t}},{}],317:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=r[0],s=r[1],l=r[2];return t[0]=i*l-a*s,t[1]=a*o-n*l,t[2]=n*s-i*o,t}},{}],318:[function(t,e,r){e.exports=t(\"./distance\")},{\"./distance\":319}],319:[function(t,e,r){e.exports=function(t,e){var r=e[0]-t[0],n=e[1]-t[1],i=e[2]-t[2];return Math.sqrt(r*r+n*n+i*i)}},{}],320:[function(t,e,r){e.exports=t(\"./divide\")},{\"./divide\":321}],321:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t[2]=e[2]/r[2],t}},{}],322:[function(t,e,r){e.exports=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}},{}],323:[function(t,e,r){e.exports=1e-6},{}],324:[function(t,e,r){e.exports=function(t,e){var r=t[0],i=t[1],a=t[2],o=e[0],s=e[1],l=e[2];return Math.abs(r-o)<=n*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(i-s)<=n*Math.max(1,Math.abs(i),Math.abs(s))&&Math.abs(a-l)<=n*Math.max(1,Math.abs(a),Math.abs(l))};var n=t(\"./epsilon\")},{\"./epsilon\":323}],325:[function(t,e,r){e.exports=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}},{}],326:[function(t,e,r){e.exports=function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t}},{}],327:[function(t,e,r){e.exports=function(t,e,r,i,a,o){var s,l;e||(e=3);r||(r=0);l=i?Math.min(i*e+r,t.length):t.length;for(s=r;s<l;s+=e)n[0]=t[s],n[1]=t[s+1],n[2]=t[s+2],a(n,n,o),t[s]=n[0],t[s+1]=n[1],t[s+2]=n[2];return t};var n=t(\"./create\")()},{\"./create\":316}],328:[function(t,e,r){e.exports=function(t,e,r){var n=new Float32Array(3);return n[0]=t,n[1]=e,n[2]=r,n}},{}],329:[function(t,e,r){e.exports={EPSILON:t(\"./epsilon\"),create:t(\"./create\"),clone:t(\"./clone\"),angle:t(\"./angle\"),fromValues:t(\"./fromValues\"),copy:t(\"./copy\"),set:t(\"./set\"),equals:t(\"./equals\"),exactEquals:t(\"./exactEquals\"),add:t(\"./add\"),subtract:t(\"./subtract\"),sub:t(\"./sub\"),multiply:t(\"./multiply\"),mul:t(\"./mul\"),divide:t(\"./divide\"),div:t(\"./div\"),min:t(\"./min\"),max:t(\"./max\"),floor:t(\"./floor\"),ceil:t(\"./ceil\"),round:t(\"./round\"),scale:t(\"./scale\"),scaleAndAdd:t(\"./scaleAndAdd\"),distance:t(\"./distance\"),dist:t(\"./dist\"),squaredDistance:t(\"./squaredDistance\"),sqrDist:t(\"./sqrDist\"),length:t(\"./length\"),len:t(\"./len\"),squaredLength:t(\"./squaredLength\"),sqrLen:t(\"./sqrLen\"),negate:t(\"./negate\"),inverse:t(\"./inverse\"),normalize:t(\"./normalize\"),dot:t(\"./dot\"),cross:t(\"./cross\"),lerp:t(\"./lerp\"),random:t(\"./random\"),transformMat4:t(\"./transformMat4\"),transformMat3:t(\"./transformMat3\"),transformQuat:t(\"./transformQuat\"),rotateX:t(\"./rotateX\"),rotateY:t(\"./rotateY\"),rotateZ:t(\"./rotateZ\"),forEach:t(\"./forEach\")}},{\"./add\":311,\"./angle\":312,\"./ceil\":313,\"./clone\":314,\"./copy\":315,\"./create\":316,\"./cross\":317,\"./dist\":318,\"./distance\":319,\"./div\":320,\"./divide\":321,\"./dot\":322,\"./epsilon\":323,\"./equals\":324,\"./exactEquals\":325,\"./floor\":326,\"./forEach\":327,\"./fromValues\":328,\"./inverse\":330,\"./len\":331,\"./length\":332,\"./lerp\":333,\"./max\":334,\"./min\":335,\"./mul\":336,\"./multiply\":337,\"./negate\":338,\"./normalize\":339,\"./random\":340,\"./rotateX\":341,\"./rotateY\":342,\"./rotateZ\":343,\"./round\":344,\"./scale\":345,\"./scaleAndAdd\":346,\"./set\":347,\"./sqrDist\":348,\"./sqrLen\":349,\"./squaredDistance\":350,\"./squaredLength\":351,\"./sub\":352,\"./subtract\":353,\"./transformMat3\":354,\"./transformMat4\":355,\"./transformQuat\":356}],330:[function(t,e,r){e.exports=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}},{}],331:[function(t,e,r){e.exports=t(\"./length\")},{\"./length\":332}],332:[function(t,e,r){e.exports=function(t){var e=t[0],r=t[1],n=t[2];return Math.sqrt(e*e+r*r+n*n)}},{}],333:[function(t,e,r){e.exports=function(t,e,r,n){var i=e[0],a=e[1],o=e[2];return t[0]=i+n*(r[0]-i),t[1]=a+n*(r[1]-a),t[2]=o+n*(r[2]-o),t}},{}],334:[function(t,e,r){e.exports=function(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t[2]=Math.max(e[2],r[2]),t}},{}],335:[function(t,e,r){e.exports=function(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t[2]=Math.min(e[2],r[2]),t}},{}],336:[function(t,e,r){e.exports=t(\"./multiply\")},{\"./multiply\":337}],337:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t[2]=e[2]*r[2],t}},{}],338:[function(t,e,r){e.exports=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}},{}],339:[function(t,e,r){e.exports=function(t,e){var r=e[0],n=e[1],i=e[2],a=r*r+n*n+i*i;a>0&&(a=1/Math.sqrt(a),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a);return t}},{}],340:[function(t,e,r){e.exports=function(t,e){e=e||1;var r=2*Math.random()*Math.PI,n=2*Math.random()-1,i=Math.sqrt(1-n*n)*e;return t[0]=Math.cos(r)*i,t[1]=Math.sin(r)*i,t[2]=n*e,t}},{}],341:[function(t,e,r){e.exports=function(t,e,r,n){var i=r[1],a=r[2],o=e[1]-i,s=e[2]-a,l=Math.sin(n),c=Math.cos(n);return t[0]=e[0],t[1]=i+o*c-s*l,t[2]=a+o*l+s*c,t}},{}],342:[function(t,e,r){e.exports=function(t,e,r,n){var i=r[0],a=r[2],o=e[0]-i,s=e[2]-a,l=Math.sin(n),c=Math.cos(n);return t[0]=i+s*l+o*c,t[1]=e[1],t[2]=a+s*c-o*l,t}},{}],343:[function(t,e,r){e.exports=function(t,e,r,n){var i=r[0],a=r[1],o=e[0]-i,s=e[1]-a,l=Math.sin(n),c=Math.cos(n);return t[0]=i+o*c-s*l,t[1]=a+o*l+s*c,t[2]=e[2],t}},{}],344:[function(t,e,r){e.exports=function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t}},{}],345:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t}},{}],346:[function(t,e,r){e.exports=function(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t}},{}],347:[function(t,e,r){e.exports=function(t,e,r,n){return t[0]=e,t[1]=r,t[2]=n,t}},{}],348:[function(t,e,r){e.exports=t(\"./squaredDistance\")},{\"./squaredDistance\":350}],349:[function(t,e,r){e.exports=t(\"./squaredLength\")},{\"./squaredLength\":351}],350:[function(t,e,r){e.exports=function(t,e){var r=e[0]-t[0],n=e[1]-t[1],i=e[2]-t[2];return r*r+n*n+i*i}},{}],351:[function(t,e,r){e.exports=function(t){var e=t[0],r=t[1],n=t[2];return e*e+r*r+n*n}},{}],352:[function(t,e,r){e.exports=t(\"./subtract\")},{\"./subtract\":353}],353:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t}},{}],354:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2];return t[0]=n*r[0]+i*r[3]+a*r[6],t[1]=n*r[1]+i*r[4]+a*r[7],t[2]=n*r[2]+i*r[5]+a*r[8],t}},{}],355:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=r[3]*n+r[7]*i+r[11]*a+r[15];return o=o||1,t[0]=(r[0]*n+r[4]*i+r[8]*a+r[12])/o,t[1]=(r[1]*n+r[5]*i+r[9]*a+r[13])/o,t[2]=(r[2]*n+r[6]*i+r[10]*a+r[14])/o,t}},{}],356:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=r[0],s=r[1],l=r[2],c=r[3],u=c*n+s*a-l*i,f=c*i+l*n-o*a,h=c*a+o*i-s*n,p=-o*n-s*i-l*a;return t[0]=u*c+p*-o+f*-l-h*-s,t[1]=f*c+p*-s+h*-o-u*-l,t[2]=h*c+p*-l+u*-s-f*-o,t}},{}],357:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t[3]=e[3]+r[3],t}},{}],358:[function(t,e,r){e.exports=function(t){var e=new Float32Array(4);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}},{}],359:[function(t,e,r){e.exports=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}},{}],360:[function(t,e,r){e.exports=function(){var t=new Float32Array(4);return t[0]=0,t[1]=0,t[2]=0,t[3]=0,t}},{}],361:[function(t,e,r){e.exports=function(t,e){var r=e[0]-t[0],n=e[1]-t[1],i=e[2]-t[2],a=e[3]-t[3];return Math.sqrt(r*r+n*n+i*i+a*a)}},{}],362:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t[2]=e[2]/r[2],t[3]=e[3]/r[3],t}},{}],363:[function(t,e,r){e.exports=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}},{}],364:[function(t,e,r){e.exports=function(t,e,r,n){var i=new Float32Array(4);return i[0]=t,i[1]=e,i[2]=r,i[3]=n,i}},{}],365:[function(t,e,r){e.exports={create:t(\"./create\"),clone:t(\"./clone\"),fromValues:t(\"./fromValues\"),copy:t(\"./copy\"),set:t(\"./set\"),add:t(\"./add\"),subtract:t(\"./subtract\"),multiply:t(\"./multiply\"),divide:t(\"./divide\"),min:t(\"./min\"),max:t(\"./max\"),scale:t(\"./scale\"),scaleAndAdd:t(\"./scaleAndAdd\"),distance:t(\"./distance\"),squaredDistance:t(\"./squaredDistance\"),length:t(\"./length\"),squaredLength:t(\"./squaredLength\"),negate:t(\"./negate\"),inverse:t(\"./inverse\"),normalize:t(\"./normalize\"),dot:t(\"./dot\"),lerp:t(\"./lerp\"),random:t(\"./random\"),transformMat4:t(\"./transformMat4\"),transformQuat:t(\"./transformQuat\")}},{\"./add\":357,\"./clone\":358,\"./copy\":359,\"./create\":360,\"./distance\":361,\"./divide\":362,\"./dot\":363,\"./fromValues\":364,\"./inverse\":366,\"./length\":367,\"./lerp\":368,\"./max\":369,\"./min\":370,\"./multiply\":371,\"./negate\":372,\"./normalize\":373,\"./random\":374,\"./scale\":375,\"./scaleAndAdd\":376,\"./set\":377,\"./squaredDistance\":378,\"./squaredLength\":379,\"./subtract\":380,\"./transformMat4\":381,\"./transformQuat\":382}],366:[function(t,e,r){e.exports=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t[3]=1/e[3],t}},{}],367:[function(t,e,r){e.exports=function(t){var e=t[0],r=t[1],n=t[2],i=t[3];return Math.sqrt(e*e+r*r+n*n+i*i)}},{}],368:[function(t,e,r){e.exports=function(t,e,r,n){var i=e[0],a=e[1],o=e[2],s=e[3];return t[0]=i+n*(r[0]-i),t[1]=a+n*(r[1]-a),t[2]=o+n*(r[2]-o),t[3]=s+n*(r[3]-s),t}},{}],369:[function(t,e,r){e.exports=function(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t[2]=Math.max(e[2],r[2]),t[3]=Math.max(e[3],r[3]),t}},{}],370:[function(t,e,r){e.exports=function(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t[2]=Math.min(e[2],r[2]),t[3]=Math.min(e[3],r[3]),t}},{}],371:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t[2]=e[2]*r[2],t[3]=e[3]*r[3],t}},{}],372:[function(t,e,r){e.exports=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t}},{}],373:[function(t,e,r){e.exports=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=r*r+n*n+i*i+a*a;o>0&&(o=1/Math.sqrt(o),t[0]=r*o,t[1]=n*o,t[2]=i*o,t[3]=a*o);return t}},{}],374:[function(t,e,r){var n=t(\"./normalize\"),i=t(\"./scale\");e.exports=function(t,e){return e=e||1,t[0]=Math.random(),t[1]=Math.random(),t[2]=Math.random(),t[3]=Math.random(),n(t,t),i(t,t,e),t}},{\"./normalize\":373,\"./scale\":375}],375:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t}},{}],376:[function(t,e,r){e.exports=function(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t[3]=e[3]+r[3]*n,t}},{}],377:[function(t,e,r){e.exports=function(t,e,r,n,i){return t[0]=e,t[1]=r,t[2]=n,t[3]=i,t}},{}],378:[function(t,e,r){e.exports=function(t,e){var r=e[0]-t[0],n=e[1]-t[1],i=e[2]-t[2],a=e[3]-t[3];return r*r+n*n+i*i+a*a}},{}],379:[function(t,e,r){e.exports=function(t){var e=t[0],r=t[1],n=t[2],i=t[3];return e*e+r*r+n*n+i*i}},{}],380:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t[3]=e[3]-r[3],t}},{}],381:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3];return t[0]=r[0]*n+r[4]*i+r[8]*a+r[12]*o,t[1]=r[1]*n+r[5]*i+r[9]*a+r[13]*o,t[2]=r[2]*n+r[6]*i+r[10]*a+r[14]*o,t[3]=r[3]*n+r[7]*i+r[11]*a+r[15]*o,t}},{}],382:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=r[0],s=r[1],l=r[2],c=r[3],u=c*n+s*a-l*i,f=c*i+l*n-o*a,h=c*a+o*i-s*n,p=-o*n-s*i-l*a;return t[0]=u*c+p*-o+f*-l-h*-s,t[1]=f*c+p*-s+h*-o-u*-l,t[2]=h*c+p*-l+u*-s-f*-o,t[3]=e[3],t}},{}],383:[function(t,e,r){e.exports=function(t,e,r,a){return n[0]=a,n[1]=r,n[2]=e,n[3]=t,i[0]};var n=new Uint8Array(4),i=new Float32Array(n.buffer)},{}],384:[function(t,e,r){var n=t(\"glsl-tokenizer\"),i=t(\"atob-lite\");e.exports=function(t){for(var e=Array.isArray(t)?t:n(t),r=0;r<e.length;r++){var a=e[r];if(\"preprocessor\"===a.type){var o=a.data.match(/\\#define\\s+SHADER_NAME(_B64)?\\s+(.+)$/);if(o&&o[2]){var s=o[1],l=o[2];return(s?i(l):l).trim()}}}}},{\"atob-lite\":60,\"glsl-tokenizer\":391}],385:[function(t,e,r){e.exports=function(t){var e,r,k,M=0,A=0,T=l,S=[],E=[],C=1,L=0,z=0,O=!1,I=!1,P=\"\",D=a,R=n;\"300 es\"===(t=t||{}).version&&(D=s,R=o);return function(t){return E=[],null!==t?function(t){var r;M=0,k=(P+=t).length;for(;e=P[M],M<k;){switch(r=M,T){case u:M=V();break;case f:case h:M=j();break;case p:M=U();break;case d:M=G();break;case _:M=H();break;case g:M=W();break;case c:M=Y();break;case x:M=N();break;case l:M=F()}if(r!==M)switch(P[r]){case\"\\n\":L=0,++C;break;default:++L}}return A+=M,P=P.slice(M),E}(t.replace?t.replace(/\\r\\n/g,\"\\n\"):t):function(t){S.length&&B(S.join(\"\"));return T=b,B(\"(eof)\"),E}()};function B(t){t.length&&E.push({type:w[T],data:t,position:z,line:C,column:L})}function F(){return S=S.length?[]:S,\"/\"===r&&\"*\"===e?(z=A+M-1,T=u,r=e,M+1):\"/\"===r&&\"/\"===e?(z=A+M-1,T=f,r=e,M+1):\"#\"===e?(T=h,z=A+M,M):/\\s/.test(e)?(T=x,z=A+M,M):(O=/\\d/.test(e),I=/[^\\w_]/.test(e),z=A+M,T=O?d:I?p:c,M)}function N(){return/[^\\s]/g.test(e)?(B(S.join(\"\")),T=l,M):(S.push(e),r=e,M+1)}function j(){return\"\\r\"!==e&&\"\\n\"!==e||\"\\\\\"===r?(S.push(e),r=e,M+1):(B(S.join(\"\")),T=l,M)}function V(){return\"/\"===e&&\"*\"===r?(S.push(e),B(S.join(\"\")),T=l,M+1):(S.push(e),r=e,M+1)}function U(){if(\".\"===r&&/\\d/.test(e))return T=g,M;if(\"/\"===r&&\"*\"===e)return T=u,M;if(\"/\"===r&&\"/\"===e)return T=f,M;if(\".\"===e&&S.length){for(;q(S););return T=g,M}if(\";\"===e||\")\"===e||\"(\"===e){if(S.length)for(;q(S););return B(e),T=l,M+1}var t=2===S.length&&\"=\"!==e;if(/[\\w_\\d\\s]/.test(e)||t){for(;q(S););return T=l,M}return S.push(e),r=e,M+1}function q(t){for(var e,r,n=0;;){if(e=i.indexOf(t.slice(0,t.length+n).join(\"\")),r=i[e],-1===e){if(n--+t.length>0)continue;r=t.slice(0,1).join(\"\")}return B(r),z+=r.length,(S=S.slice(r.length)).length}}function H(){return/[^a-fA-F0-9]/.test(e)?(B(S.join(\"\")),T=l,M):(S.push(e),r=e,M+1)}function G(){return\".\"===e?(S.push(e),T=g,r=e,M+1):/[eE]/.test(e)?(S.push(e),T=g,r=e,M+1):\"x\"===e&&1===S.length&&\"0\"===S[0]?(T=_,S.push(e),r=e,M+1):/[^\\d]/.test(e)?(B(S.join(\"\")),T=l,M):(S.push(e),r=e,M+1)}function W(){return\"f\"===e&&(S.push(e),r=e,M+=1),/[eE]/.test(e)?(S.push(e),r=e,M+1):\"-\"===e&&/[eE]/.test(r)?(S.push(e),r=e,M+1):/[^\\d]/.test(e)?(B(S.join(\"\")),T=l,M):(S.push(e),r=e,M+1)}function Y(){if(/[^\\d\\w_]/.test(e)){var t=S.join(\"\");return T=R.indexOf(t)>-1?y:D.indexOf(t)>-1?m:v,B(S.join(\"\")),T=l,M}return S.push(e),r=e,M+1}};var n=t(\"./lib/literals\"),i=t(\"./lib/operators\"),a=t(\"./lib/builtins\"),o=t(\"./lib/literals-300es\"),s=t(\"./lib/builtins-300es\"),l=999,c=9999,u=0,f=1,h=2,p=3,d=4,g=5,v=6,m=7,y=8,x=9,b=10,_=11,w=[\"block-comment\",\"line-comment\",\"preprocessor\",\"operator\",\"integer\",\"float\",\"ident\",\"builtin\",\"keyword\",\"whitespace\",\"eof\",\"integer\"]},{\"./lib/builtins\":387,\"./lib/builtins-300es\":386,\"./lib/literals\":389,\"./lib/literals-300es\":388,\"./lib/operators\":390}],386:[function(t,e,r){var n=t(\"./builtins\");n=n.slice().filter(function(t){return!/^(gl\\_|texture)/.test(t)}),e.exports=n.concat([\"gl_VertexID\",\"gl_InstanceID\",\"gl_Position\",\"gl_PointSize\",\"gl_FragCoord\",\"gl_FrontFacing\",\"gl_FragDepth\",\"gl_PointCoord\",\"gl_MaxVertexAttribs\",\"gl_MaxVertexUniformVectors\",\"gl_MaxVertexOutputVectors\",\"gl_MaxFragmentInputVectors\",\"gl_MaxVertexTextureImageUnits\",\"gl_MaxCombinedTextureImageUnits\",\"gl_MaxTextureImageUnits\",\"gl_MaxFragmentUniformVectors\",\"gl_MaxDrawBuffers\",\"gl_MinProgramTexelOffset\",\"gl_MaxProgramTexelOffset\",\"gl_DepthRangeParameters\",\"gl_DepthRange\",\"trunc\",\"round\",\"roundEven\",\"isnan\",\"isinf\",\"floatBitsToInt\",\"floatBitsToUint\",\"intBitsToFloat\",\"uintBitsToFloat\",\"packSnorm2x16\",\"unpackSnorm2x16\",\"packUnorm2x16\",\"unpackUnorm2x16\",\"packHalf2x16\",\"unpackHalf2x16\",\"outerProduct\",\"transpose\",\"determinant\",\"inverse\",\"texture\",\"textureSize\",\"textureProj\",\"textureLod\",\"textureOffset\",\"texelFetch\",\"texelFetchOffset\",\"textureProjOffset\",\"textureLodOffset\",\"textureProjLod\",\"textureProjLodOffset\",\"textureGrad\",\"textureGradOffset\",\"textureProjGrad\",\"textureProjGradOffset\"])},{\"./builtins\":387}],387:[function(t,e,r){e.exports=[\"abs\",\"acos\",\"all\",\"any\",\"asin\",\"atan\",\"ceil\",\"clamp\",\"cos\",\"cross\",\"dFdx\",\"dFdy\",\"degrees\",\"distance\",\"dot\",\"equal\",\"exp\",\"exp2\",\"faceforward\",\"floor\",\"fract\",\"gl_BackColor\",\"gl_BackLightModelProduct\",\"gl_BackLightProduct\",\"gl_BackMaterial\",\"gl_BackSecondaryColor\",\"gl_ClipPlane\",\"gl_ClipVertex\",\"gl_Color\",\"gl_DepthRange\",\"gl_DepthRangeParameters\",\"gl_EyePlaneQ\",\"gl_EyePlaneR\",\"gl_EyePlaneS\",\"gl_EyePlaneT\",\"gl_Fog\",\"gl_FogCoord\",\"gl_FogFragCoord\",\"gl_FogParameters\",\"gl_FragColor\",\"gl_FragCoord\",\"gl_FragData\",\"gl_FragDepth\",\"gl_FragDepthEXT\",\"gl_FrontColor\",\"gl_FrontFacing\",\"gl_FrontLightModelProduct\",\"gl_FrontLightProduct\",\"gl_FrontMaterial\",\"gl_FrontSecondaryColor\",\"gl_LightModel\",\"gl_LightModelParameters\",\"gl_LightModelProducts\",\"gl_LightProducts\",\"gl_LightSource\",\"gl_LightSourceParameters\",\"gl_MaterialParameters\",\"gl_MaxClipPlanes\",\"gl_MaxCombinedTextureImageUnits\",\"gl_MaxDrawBuffers\",\"gl_MaxFragmentUniformComponents\",\"gl_MaxLights\",\"gl_MaxTextureCoords\",\"gl_MaxTextureImageUnits\",\"gl_MaxTextureUnits\",\"gl_MaxVaryingFloats\",\"gl_MaxVertexAttribs\",\"gl_MaxVertexTextureImageUnits\",\"gl_MaxVertexUniformComponents\",\"gl_ModelViewMatrix\",\"gl_ModelViewMatrixInverse\",\"gl_ModelViewMatrixInverseTranspose\",\"gl_ModelViewMatrixTranspose\",\"gl_ModelViewProjectionMatrix\",\"gl_ModelViewProjectionMatrixInverse\",\"gl_ModelViewProjectionMatrixInverseTranspose\",\"gl_ModelViewProjectionMatrixTranspose\",\"gl_MultiTexCoord0\",\"gl_MultiTexCoord1\",\"gl_MultiTexCoord2\",\"gl_MultiTexCoord3\",\"gl_MultiTexCoord4\",\"gl_MultiTexCoord5\",\"gl_MultiTexCoord6\",\"gl_MultiTexCoord7\",\"gl_Normal\",\"gl_NormalMatrix\",\"gl_NormalScale\",\"gl_ObjectPlaneQ\",\"gl_ObjectPlaneR\",\"gl_ObjectPlaneS\",\"gl_ObjectPlaneT\",\"gl_Point\",\"gl_PointCoord\",\"gl_PointParameters\",\"gl_PointSize\",\"gl_Position\",\"gl_ProjectionMatrix\",\"gl_ProjectionMatrixInverse\",\"gl_ProjectionMatrixInverseTranspose\",\"gl_ProjectionMatrixTranspose\",\"gl_SecondaryColor\",\"gl_TexCoord\",\"gl_TextureEnvColor\",\"gl_TextureMatrix\",\"gl_TextureMatrixInverse\",\"gl_TextureMatrixInverseTranspose\",\"gl_TextureMatrixTranspose\",\"gl_Vertex\",\"greaterThan\",\"greaterThanEqual\",\"inversesqrt\",\"length\",\"lessThan\",\"lessThanEqual\",\"log\",\"log2\",\"matrixCompMult\",\"max\",\"min\",\"mix\",\"mod\",\"normalize\",\"not\",\"notEqual\",\"pow\",\"radians\",\"reflect\",\"refract\",\"sign\",\"sin\",\"smoothstep\",\"sqrt\",\"step\",\"tan\",\"texture2D\",\"texture2DLod\",\"texture2DProj\",\"texture2DProjLod\",\"textureCube\",\"textureCubeLod\",\"texture2DLodEXT\",\"texture2DProjLodEXT\",\"textureCubeLodEXT\",\"texture2DGradEXT\",\"texture2DProjGradEXT\",\"textureCubeGradEXT\"]},{}],388:[function(t,e,r){var n=t(\"./literals\");e.exports=n.slice().concat([\"layout\",\"centroid\",\"smooth\",\"case\",\"mat2x2\",\"mat2x3\",\"mat2x4\",\"mat3x2\",\"mat3x3\",\"mat3x4\",\"mat4x2\",\"mat4x3\",\"mat4x4\",\"uint\",\"uvec2\",\"uvec3\",\"uvec4\",\"samplerCubeShadow\",\"sampler2DArray\",\"sampler2DArrayShadow\",\"isampler2D\",\"isampler3D\",\"isamplerCube\",\"isampler2DArray\",\"usampler2D\",\"usampler3D\",\"usamplerCube\",\"usampler2DArray\",\"coherent\",\"restrict\",\"readonly\",\"writeonly\",\"resource\",\"atomic_uint\",\"noperspective\",\"patch\",\"sample\",\"subroutine\",\"common\",\"partition\",\"active\",\"filter\",\"image1D\",\"image2D\",\"image3D\",\"imageCube\",\"iimage1D\",\"iimage2D\",\"iimage3D\",\"iimageCube\",\"uimage1D\",\"uimage2D\",\"uimage3D\",\"uimageCube\",\"image1DArray\",\"image2DArray\",\"iimage1DArray\",\"iimage2DArray\",\"uimage1DArray\",\"uimage2DArray\",\"image1DShadow\",\"image2DShadow\",\"image1DArrayShadow\",\"image2DArrayShadow\",\"imageBuffer\",\"iimageBuffer\",\"uimageBuffer\",\"sampler1DArray\",\"sampler1DArrayShadow\",\"isampler1D\",\"isampler1DArray\",\"usampler1D\",\"usampler1DArray\",\"isampler2DRect\",\"usampler2DRect\",\"samplerBuffer\",\"isamplerBuffer\",\"usamplerBuffer\",\"sampler2DMS\",\"isampler2DMS\",\"usampler2DMS\",\"sampler2DMSArray\",\"isampler2DMSArray\",\"usampler2DMSArray\"])},{\"./literals\":389}],389:[function(t,e,r){e.exports=[\"precision\",\"highp\",\"mediump\",\"lowp\",\"attribute\",\"const\",\"uniform\",\"varying\",\"break\",\"continue\",\"do\",\"for\",\"while\",\"if\",\"else\",\"in\",\"out\",\"inout\",\"float\",\"int\",\"void\",\"bool\",\"true\",\"false\",\"discard\",\"return\",\"mat2\",\"mat3\",\"mat4\",\"vec2\",\"vec3\",\"vec4\",\"ivec2\",\"ivec3\",\"ivec4\",\"bvec2\",\"bvec3\",\"bvec4\",\"sampler1D\",\"sampler2D\",\"sampler3D\",\"samplerCube\",\"sampler1DShadow\",\"sampler2DShadow\",\"struct\",\"asm\",\"class\",\"union\",\"enum\",\"typedef\",\"template\",\"this\",\"packed\",\"goto\",\"switch\",\"default\",\"inline\",\"noinline\",\"volatile\",\"public\",\"static\",\"extern\",\"external\",\"interface\",\"long\",\"short\",\"double\",\"half\",\"fixed\",\"unsigned\",\"input\",\"output\",\"hvec2\",\"hvec3\",\"hvec4\",\"dvec2\",\"dvec3\",\"dvec4\",\"fvec2\",\"fvec3\",\"fvec4\",\"sampler2DRect\",\"sampler3DRect\",\"sampler2DRectShadow\",\"sizeof\",\"cast\",\"namespace\",\"using\"]},{}],390:[function(t,e,r){e.exports=[\"<<=\",\">>=\",\"++\",\"--\",\"<<\",\">>\",\"<=\",\">=\",\"==\",\"!=\",\"&&\",\"||\",\"+=\",\"-=\",\"*=\",\"/=\",\"%=\",\"&=\",\"^^\",\"^=\",\"|=\",\"(\",\")\",\"[\",\"]\",\".\",\"!\",\"~\",\"*\",\"/\",\"%\",\"+\",\"-\",\"<\",\">\",\"&\",\"^\",\"|\",\"?\",\":\",\"=\",\",\",\";\",\"{\",\"}\"]},{}],391:[function(t,e,r){var n=t(\"./index\");e.exports=function(t,e){var r=n(e),i=[];return i=(i=i.concat(r(t))).concat(r(null))}},{\"./index\":385}],392:[function(t,e,r){e.exports=function(t){\"string\"==typeof t&&(t=[t]);for(var e=[].slice.call(arguments,1),r=[],n=0;n<t.length-1;n++)r.push(t[n],e[n]||\"\");return r.push(t[n]),r.join(\"\")}},{}],393:[function(t,e,r){(function(r){\"use strict\";var n,i=t(\"is-browser\");n=\"function\"==typeof r.matchMedia?!r.matchMedia(\"(hover: none)\").matches:i,e.exports=n}).call(this,\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{\"is-browser\":400}],394:[function(t,e,r){\"use strict\";var n=t(\"is-browser\");e.exports=n&&function(){var t=!1;try{var e=Object.defineProperty({},\"passive\",{get:function(){t=!0}});window.addEventListener(\"test\",null,e),window.removeEventListener(\"test\",null,e)}catch(e){t=!1}return t}()},{\"is-browser\":400}],395:[function(t,e,r){r.read=function(t,e,r,n,i){var a,o,s=8*i-n-1,l=(1<<s)-1,c=l>>1,u=-7,f=r?i-1:0,h=r?-1:1,p=t[e+f];for(f+=h,a=p&(1<<-u)-1,p>>=-u,u+=s;u>0;a=256*a+t[e+f],f+=h,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=n;u>0;o=256*o+t[e+f],f+=h,u-=8);if(0===a)a=1-c;else{if(a===l)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,n),a-=c}return(p?-1:1)*o*Math.pow(2,a-n)},r.write=function(t,e,r,n,i,a){var o,s,l,c=8*a-i-1,u=(1<<c)-1,f=u>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:a-1,d=n?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,o=u):(o=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-o))<1&&(o--,l*=2),(e+=o+f>=1?h/l:h*Math.pow(2,1-f))*l>=2&&(o++,l/=2),o+f>=u?(s=0,o=u):o+f>=1?(s=(e*l-1)*Math.pow(2,i),o+=f):(s=e*Math.pow(2,f-1)*Math.pow(2,i),o=0));i>=8;t[r+p]=255&s,p+=d,s/=256,i-=8);for(o=o<<i|s,c+=i;c>0;t[r+p]=255&o,p+=d,o/=256,c-=8);t[r+p-d]|=128*g}},{}],396:[function(t,e,r){\"use strict\";e.exports=function(t,e){var r=t.length;if(0===r)throw new Error(\"Must have at least d+1 points\");var i=t[0].length;if(r<=i)throw new Error(\"Must input at least d+1 points\");var o=t.slice(0,i+1),s=n.apply(void 0,o);if(0===s)throw new Error(\"Input not in general position\");for(var l=new Array(i+1),u=0;u<=i;++u)l[u]=u;s<0&&(l[0]=1,l[1]=0);for(var f=new a(l,new Array(i+1),!1),h=f.adjacent,p=new Array(i+2),u=0;u<=i;++u){for(var d=l.slice(),g=0;g<=i;++g)g===u&&(d[g]=-1);var v=d[0];d[0]=d[1],d[1]=v;var m=new a(d,new Array(i+1),!0);h[u]=m,p[u]=m}p[i+1]=f;for(var u=0;u<=i;++u)for(var d=h[u].vertices,y=h[u].adjacent,g=0;g<=i;++g){var x=d[g];if(x<0)y[g]=f;else for(var b=0;b<=i;++b)h[b].vertices.indexOf(x)<0&&(y[g]=h[b])}for(var _=new c(i,o,p),w=!!e,u=i+1;u<r;++u)_.insert(t[u],w);return _.boundary()};var n=t(\"robust-orientation\"),i=t(\"simplicial-complex\").compareCells;function a(t,e,r){this.vertices=t,this.adjacent=e,this.boundary=r,this.lastVisited=-1}function o(t,e,r){this.vertices=t,this.cell=e,this.index=r}function s(t,e){return i(t.vertices,e.vertices)}a.prototype.flip=function(){var t=this.vertices[0];this.vertices[0]=this.vertices[1],this.vertices[1]=t;var e=this.adjacent[0];this.adjacent[0]=this.adjacent[1],this.adjacent[1]=e};var l=[];function c(t,e,r){this.dimension=t,this.vertices=e,this.simplices=r,this.interior=r.filter(function(t){return!t.boundary}),this.tuple=new Array(t+1);for(var i=0;i<=t;++i)this.tuple[i]=this.vertices[i];var a=l[t];a||(a=l[t]=function(t){for(var e=[\"function orient(){var tuple=this.tuple;return test(\"],r=0;r<=t;++r)r>0&&e.push(\",\"),e.push(\"tuple[\",r,\"]\");e.push(\")}return orient\");var i=new Function(\"test\",e.join(\"\")),a=n[t+1];return a||(a=n),i(a)}(t)),this.orient=a}var u=c.prototype;u.handleBoundaryDegeneracy=function(t,e){var r=this.dimension,n=this.vertices.length-1,i=this.tuple,a=this.vertices,o=[t];for(t.lastVisited=-n;o.length>0;){(t=o.pop()).vertices;for(var s=t.adjacent,l=0;l<=r;++l){var c=s[l];if(c.boundary&&!(c.lastVisited<=-n)){for(var u=c.vertices,f=0;f<=r;++f){var h=u[f];i[f]=h<0?e:a[h]}var p=this.orient();if(p>0)return c;c.lastVisited=-n,0===p&&o.push(c)}}}return null},u.walk=function(t,e){var r=this.vertices.length-1,n=this.dimension,i=this.vertices,a=this.tuple,o=e?this.interior.length*Math.random()|0:this.interior.length-1,s=this.interior[o];t:for(;!s.boundary;){for(var l=s.vertices,c=s.adjacent,u=0;u<=n;++u)a[u]=i[l[u]];s.lastVisited=r;for(u=0;u<=n;++u){var f=c[u];if(!(f.lastVisited>=r)){var h=a[u];a[u]=t;var p=this.orient();if(a[u]=h,p<0){s=f;continue t}f.boundary?f.lastVisited=-r:f.lastVisited=r}}return}return s},u.addPeaks=function(t,e){var r=this.vertices.length-1,n=this.dimension,i=this.vertices,l=this.tuple,c=this.interior,u=this.simplices,f=[e];e.lastVisited=r,e.vertices[e.vertices.indexOf(-1)]=r,e.boundary=!1,c.push(e);for(var h=[];f.length>0;){var p=(e=f.pop()).vertices,d=e.adjacent,g=p.indexOf(r);if(!(g<0))for(var v=0;v<=n;++v)if(v!==g){var m=d[v];if(m.boundary&&!(m.lastVisited>=r)){var y=m.vertices;if(m.lastVisited!==-r){for(var x=0,b=0;b<=n;++b)y[b]<0?(x=b,l[b]=t):l[b]=i[y[b]];if(this.orient()>0){y[x]=r,m.boundary=!1,c.push(m),f.push(m),m.lastVisited=r;continue}m.lastVisited=-r}var _=m.adjacent,w=p.slice(),k=d.slice(),M=new a(w,k,!0);u.push(M);var A=_.indexOf(e);if(!(A<0)){_[A]=M,k[g]=m,w[v]=-1,k[v]=e,d[v]=M,M.flip();for(b=0;b<=n;++b){var T=w[b];if(!(T<0||T===r)){for(var S=new Array(n-1),E=0,C=0;C<=n;++C){var L=w[C];L<0||C===b||(S[E++]=L)}h.push(new o(S,M,b))}}}}}}h.sort(s);for(v=0;v+1<h.length;v+=2){var z=h[v],O=h[v+1],I=z.index,P=O.index;I<0||P<0||(z.cell.adjacent[z.index]=O.cell,O.cell.adjacent[O.index]=z.cell)}},u.insert=function(t,e){var r=this.vertices;r.push(t);var n=this.walk(t,e);if(n){for(var i=this.dimension,a=this.tuple,o=0;o<=i;++o){var s=n.vertices[o];a[o]=s<0?t:r[s]}var l=this.orient(a);l<0||(0!==l||(n=this.handleBoundaryDegeneracy(n,t)))&&this.addPeaks(t,n)}},u.boundary=function(){for(var t=this.dimension,e=[],r=this.simplices,n=r.length,i=0;i<n;++i){var a=r[i];if(a.boundary){for(var o=new Array(t),s=a.vertices,l=0,c=0,u=0;u<=t;++u)s[u]>=0?o[l++]=s[u]:c=1&u;if(c===(1&t)){var f=o[0];o[0]=o[1],o[1]=f}e.push(o)}}return e}},{\"robust-orientation\":486,\"simplicial-complex\":496}],397:[function(t,e,r){\"use strict\";var n=t(\"binary-search-bounds\"),i=0,a=1;function o(t,e,r,n,i){this.mid=t,this.left=e,this.right=r,this.leftPoints=n,this.rightPoints=i,this.count=(e?e.count:0)+(r?r.count:0)+n.length}e.exports=function(t){if(!t||0===t.length)return new x(null);return new x(y(t))};var s=o.prototype;function l(t,e){t.mid=e.mid,t.left=e.left,t.right=e.right,t.leftPoints=e.leftPoints,t.rightPoints=e.rightPoints,t.count=e.count}function c(t,e){var r=y(e);t.mid=r.mid,t.left=r.left,t.right=r.right,t.leftPoints=r.leftPoints,t.rightPoints=r.rightPoints,t.count=r.count}function u(t,e){var r=t.intervals([]);r.push(e),c(t,r)}function f(t,e){var r=t.intervals([]),n=r.indexOf(e);return n<0?i:(r.splice(n,1),c(t,r),a)}function h(t,e,r){for(var n=0;n<t.length&&t[n][0]<=e;++n){var i=r(t[n]);if(i)return i}}function p(t,e,r){for(var n=t.length-1;n>=0&&t[n][1]>=e;--n){var i=r(t[n]);if(i)return i}}function d(t,e){for(var r=0;r<t.length;++r){var n=e(t[r]);if(n)return n}}function g(t,e){return t-e}function v(t,e){var r=t[0]-e[0];return r||t[1]-e[1]}function m(t,e){var r=t[1]-e[1];return r||t[0]-e[0]}function y(t){if(0===t.length)return null;for(var e=[],r=0;r<t.length;++r)e.push(t[r][0],t[r][1]);e.sort(g);var n=e[e.length>>1],i=[],a=[],s=[];for(r=0;r<t.length;++r){var l=t[r];l[1]<n?i.push(l):n<l[0]?a.push(l):s.push(l)}var c=s,u=s.slice();return c.sort(v),u.sort(m),new o(n,y(i),y(a),c,u)}function x(t){this.root=t}s.intervals=function(t){return t.push.apply(t,this.leftPoints),this.left&&this.left.intervals(t),this.right&&this.right.intervals(t),t},s.insert=function(t){var e=this.count-this.leftPoints.length;if(this.count+=1,t[1]<this.mid)this.left?4*(this.left.count+1)>3*(e+1)?u(this,t):this.left.insert(t):this.left=y([t]);else if(t[0]>this.mid)this.right?4*(this.right.count+1)>3*(e+1)?u(this,t):this.right.insert(t):this.right=y([t]);else{var r=n.ge(this.leftPoints,t,v),i=n.ge(this.rightPoints,t,m);this.leftPoints.splice(r,0,t),this.rightPoints.splice(i,0,t)}},s.remove=function(t){var e=this.count-this.leftPoints;if(t[1]<this.mid)return this.left?4*(this.right?this.right.count:0)>3*(e-1)?f(this,t):2===(c=this.left.remove(t))?(this.left=null,this.count-=1,a):(c===a&&(this.count-=1),c):i;if(t[0]>this.mid)return this.right?4*(this.left?this.left.count:0)>3*(e-1)?f(this,t):2===(c=this.right.remove(t))?(this.right=null,this.count-=1,a):(c===a&&(this.count-=1),c):i;if(1===this.count)return this.leftPoints[0]===t?2:i;if(1===this.leftPoints.length&&this.leftPoints[0]===t){if(this.left&&this.right){for(var r=this,o=this.left;o.right;)r=o,o=o.right;if(r===this)o.right=this.right;else{var s=this.left,c=this.right;r.count-=o.count,r.right=o.left,o.left=s,o.right=c}l(this,o),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?l(this,this.left):l(this,this.right);return a}for(s=n.ge(this.leftPoints,t,v);s<this.leftPoints.length&&this.leftPoints[s][0]===t[0];++s)if(this.leftPoints[s]===t){this.count-=1,this.leftPoints.splice(s,1);for(c=n.ge(this.rightPoints,t,m);c<this.rightPoints.length&&this.rightPoints[c][1]===t[1];++c)if(this.rightPoints[c]===t)return this.rightPoints.splice(c,1),a}return i},s.queryPoint=function(t,e){if(t<this.mid){if(this.left)if(r=this.left.queryPoint(t,e))return r;return h(this.leftPoints,t,e)}if(t>this.mid){var r;if(this.right)if(r=this.right.queryPoint(t,e))return r;return p(this.rightPoints,t,e)}return d(this.leftPoints,e)},s.queryInterval=function(t,e,r){var n;if(t<this.mid&&this.left&&(n=this.left.queryInterval(t,e,r)))return n;if(e>this.mid&&this.right&&(n=this.right.queryInterval(t,e,r)))return n;return e<this.mid?h(this.leftPoints,e,r):t>this.mid?p(this.rightPoints,t,r):d(this.leftPoints,r)};var b=x.prototype;b.insert=function(t){this.root?this.root.insert(t):this.root=new o(t[0],null,null,[t],[t])},b.remove=function(t){if(this.root){var e=this.root.remove(t);return 2===e&&(this.root=null),e!==i}return!1},b.queryPoint=function(t,e){if(this.root)return this.root.queryPoint(t,e)},b.queryInterval=function(t,e,r){if(t<=e&&this.root)return this.root.queryInterval(t,e,r)},Object.defineProperty(b,\"count\",{get:function(){return this.root?this.root.count:0}}),Object.defineProperty(b,\"intervals\",{get:function(){return this.root?this.root.intervals([]):[]}})},{\"binary-search-bounds\":79}],398:[function(t,e,r){\"use strict\";e.exports=function(t,e){e=e||new Array(t.length);for(var r=0;r<t.length;++r)e[t[r]]=r;return e}},{}],399:[function(t,e,r){\"use strict\";e.exports=function(t){for(var e=new Array(t),r=0;r<t;++r)e[r]=r;return e}},{}],400:[function(t,e,r){e.exports=!0},{}],401:[function(t,e,r){function n(t){return!!t.constructor&&\"function\"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}e.exports=function(t){return null!=t&&(n(t)||function(t){return\"function\"==typeof t.readFloatLE&&\"function\"==typeof t.slice&&n(t.slice(0,0))}(t)||!!t._isBuffer)}},{}],402:[function(t,e,r){\"use strict\";e.exports=\"undefined\"!=typeof navigator&&(/MSIE/.test(navigator.userAgent)||/Trident\\//.test(navigator.appVersion))},{}],403:[function(t,e,r){\"use strict\";e.exports=a,e.exports.isMobile=a;var n=/(android|bb\\d+|meego).+mobile|avantgo|bada\\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,i=/(android|bb\\d+|meego).+mobile|avantgo|bada\\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino|android|ipad|playbook|silk/i;function a(t){t||(t={});var e=t.ua;return e||\"undefined\"==typeof navigator||(e=navigator.userAgent),e&&e.headers&&\"string\"==typeof e.headers[\"user-agent\"]&&(e=e.headers[\"user-agent\"]),\"string\"==typeof e&&(t.tablet?i.test(e):n.test(e))}},{}],404:[function(t,e,r){\"use strict\";e.exports=function(t){var e=typeof t;return null!==t&&(\"object\"===e||\"function\"===e)}},{}],405:[function(t,e,r){\"use strict\";var n=Object.prototype.toString;e.exports=function(t){var e;return\"[object Object]\"===n.call(t)&&(null===(e=Object.getPrototypeOf(t))||e===Object.getPrototypeOf({}))}},{}],406:[function(t,e,r){\"use strict\";e.exports=function(t){for(var e,r=t.length,n=0;n<r;n++)if(((e=t.charCodeAt(n))<9||e>13)&&32!==e&&133!==e&&160!==e&&5760!==e&&6158!==e&&(e<8192||e>8205)&&8232!==e&&8233!==e&&8239!==e&&8287!==e&&8288!==e&&12288!==e&&65279!==e)return!1;return!0}},{}],407:[function(t,e,r){\"use strict\";e.exports=function(t){return\"string\"==typeof t&&(t=t.trim(),!!(/^[mzlhvcsqta]\\s*[-+.0-9][^mlhvzcsqta]+/i.test(t)&&/[\\dz]$/i.test(t)&&t.length>4))}},{}],408:[function(t,e,r){e.exports=function(t,e,r){return t*(1-r)+e*r}},{}],409:[function(t,e,r){(function(t){!function(t,n){\"object\"==typeof r&&\"undefined\"!=typeof e?e.exports=n():t.mapboxgl=n()}(this,function(){\"use strict\";var e,r,n;function i(t,i){if(e)if(r){var a=\"var sharedChunk = {}; (\"+e+\")(sharedChunk); (\"+r+\")(sharedChunk);\",o={};e(o),(n=i(o)).workerUrl=window.URL.createObjectURL(new Blob([a],{type:\"text/javascript\"}))}else r=i;else e=i}return i(0,function(e){var r=\"undefined\"!=typeof window?window:\"undefined\"!=typeof t?t:\"undefined\"!=typeof self?self:{};function n(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,\"default\")?t.default:t}function i(t,e){return t(e={exports:{}},e.exports),e.exports}var a=o;function o(t,e,r,n){this.cx=3*t,this.bx=3*(r-t)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*e,this.by=3*(n-e)-this.cy,this.ay=1-this.cy-this.by,this.p1x=t,this.p1y=n,this.p2x=r,this.p2y=n}o.prototype.sampleCurveX=function(t){return((this.ax*t+this.bx)*t+this.cx)*t},o.prototype.sampleCurveY=function(t){return((this.ay*t+this.by)*t+this.cy)*t},o.prototype.sampleCurveDerivativeX=function(t){return(3*this.ax*t+2*this.bx)*t+this.cx},o.prototype.solveCurveX=function(t,e){var r,n,i,a,o;for(void 0===e&&(e=1e-6),i=t,o=0;o<8;o++){if(a=this.sampleCurveX(i)-t,Math.abs(a)<e)return i;var s=this.sampleCurveDerivativeX(i);if(Math.abs(s)<1e-6)break;i-=a/s}if((i=t)<(r=0))return r;if(i>(n=1))return n;for(;r<n;){if(a=this.sampleCurveX(i),Math.abs(a-t)<e)return i;t>a?r=i:n=i,i=.5*(n-r)+r}return i},o.prototype.solve=function(t,e){return this.sampleCurveY(this.solveCurveX(t,e))};var s=function(t,e,r){this.column=t,this.row=e,this.zoom=r};s.prototype.clone=function(){return new s(this.column,this.row,this.zoom)},s.prototype.zoomTo=function(t){return this.clone()._zoomTo(t)},s.prototype.sub=function(t){return this.clone()._sub(t)},s.prototype._zoomTo=function(t){var e=Math.pow(2,t-this.zoom);return this.column*=e,this.row*=e,this.zoom=t,this},s.prototype._sub=function(t){return t=t.zoomTo(this.zoom),this.column-=t.column,this.row-=t.row,this};var l=c;function c(t,e){this.x=t,this.y=e}function u(t,e,r,n){var i=new a(t,e,r,n);return function(t){return i.solve(t)}}c.prototype={clone:function(){return new c(this.x,this.y)},add:function(t){return this.clone()._add(t)},sub:function(t){return this.clone()._sub(t)},multByPoint:function(t){return this.clone()._multByPoint(t)},divByPoint:function(t){return this.clone()._divByPoint(t)},mult:function(t){return this.clone()._mult(t)},div:function(t){return this.clone()._div(t)},rotate:function(t){return this.clone()._rotate(t)},rotateAround:function(t,e){return this.clone()._rotateAround(t,e)},matMult:function(t){return this.clone()._matMult(t)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(t){return this.x===t.x&&this.y===t.y},dist:function(t){return Math.sqrt(this.distSqr(t))},distSqr:function(t){var e=t.x-this.x,r=t.y-this.y;return e*e+r*r},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(t){return Math.atan2(this.y-t.y,this.x-t.x)},angleWith:function(t){return this.angleWithSep(t.x,t.y)},angleWithSep:function(t,e){return Math.atan2(this.x*e-this.y*t,this.x*t+this.y*e)},_matMult:function(t){var e=t[0]*this.x+t[1]*this.y,r=t[2]*this.x+t[3]*this.y;return this.x=e,this.y=r,this},_add:function(t){return this.x+=t.x,this.y+=t.y,this},_sub:function(t){return this.x-=t.x,this.y-=t.y,this},_mult:function(t){return this.x*=t,this.y*=t,this},_div:function(t){return this.x/=t,this.y/=t,this},_multByPoint:function(t){return this.x*=t.x,this.y*=t.y,this},_divByPoint:function(t){return this.x/=t.x,this.y/=t.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var t=this.y;return this.y=this.x,this.x=-t,this},_rotate:function(t){var e=Math.cos(t),r=Math.sin(t),n=e*this.x-r*this.y,i=r*this.x+e*this.y;return this.x=n,this.y=i,this},_rotateAround:function(t,e){var r=Math.cos(t),n=Math.sin(t),i=e.x+r*(this.x-e.x)-n*(this.y-e.y),a=e.y+n*(this.x-e.x)+r*(this.y-e.y);return this.x=i,this.y=a,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},c.convert=function(t){return t instanceof c?t:Array.isArray(t)?new c(t[0],t[1]):t};var f=u(.25,.1,.25,1);function h(t,e,r){return Math.min(r,Math.max(e,t))}function p(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];for(var n=0,i=e;n<i.length;n+=1){var a=i[n];for(var o in a)t[o]=a[o]}return t}var d=1;function g(t,e){t.forEach(function(t){e[t]&&(e[t]=e[t].bind(e))})}function v(t,e){return-1!==t.indexOf(e,t.length-e.length)}function m(t,e,r){var n={};for(var i in t)n[i]=e.call(r||this,t[i],i,t);return n}function y(t,e,r){var n={};for(var i in t)e.call(r||this,t[i],i,t)&&(n[i]=t[i]);return n}function x(t){return Array.isArray(t)?t.map(x):\"object\"==typeof t&&t?m(t,x):t}var b={};function _(t){b[t]||(\"undefined\"!=typeof console&&console.warn(t),b[t]=!0)}function w(t,e,r){return(r.y-t.y)*(e.x-t.x)>(e.y-t.y)*(r.x-t.x)}function k(t){for(var e=0,r=0,n=t.length,i=n-1,a=void 0,o=void 0;r<n;i=r++)a=t[r],e+=((o=t[i]).x-a.x)*(a.y+o.y);return e}var M={Unknown:\"Unknown\",Style:\"Style\",Source:\"Source\",Tile:\"Tile\",Glyphs:\"Glyphs\",SpriteImage:\"SpriteImage\",SpriteJSON:\"SpriteJSON\",Image:\"Image\"};\"function\"==typeof Object.freeze&&Object.freeze(M);var A=function(t){function e(e,r,n){t.call(this,e),this.status=r,this.url=n,this.name=this.constructor.name,this.message=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toString=function(){return this.name+\": \"+this.message+\" (\"+this.status+\"): \"+this.url},e}(Error);function T(t){var e=new self.XMLHttpRequest;for(var r in e.open(\"GET\",t.url,!0),t.headers)e.setRequestHeader(r,t.headers[r]);return e.withCredentials=\"include\"===t.credentials,e}var S=function(t,e){var r=T(t);return r.responseType=\"arraybuffer\",r.onerror=function(){e(new Error(r.statusText))},r.onload=function(){var n=r.response;if(0===n.byteLength&&200===r.status)return e(new Error(\"http status 200 returned without content.\"));r.status>=200&&r.status<300&&r.response?e(null,{data:n,cacheControl:r.getResponseHeader(\"Cache-Control\"),expires:r.getResponseHeader(\"Expires\")}):e(new A(r.statusText,r.status,t.url))},r.send(),r};function E(t,e,r){r[t]=r[t]||[],r[t].push(e)}function C(t,e,r){if(r&&r[t]){var n=r[t].indexOf(e);-1!==n&&r[t].splice(n,1)}}var L=function(t,e){void 0===e&&(e={}),p(this,e),this.type=t},z=function(t){function e(e,r){void 0===r&&(r={}),t.call(this,\"error\",p({error:e},r))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(L),O=function(){};O.prototype.on=function(t,e){return this._listeners=this._listeners||{},E(t,e,this._listeners),this},O.prototype.off=function(t,e){return C(t,e,this._listeners),C(t,e,this._oneTimeListeners),this},O.prototype.once=function(t,e){return this._oneTimeListeners=this._oneTimeListeners||{},E(t,e,this._oneTimeListeners),this},O.prototype.fire=function(t){\"string\"==typeof t&&(t=new L(t,arguments[1]||{}));var e=t.type;if(this.listens(e)){t.target=this;for(var r=0,n=this._listeners&&this._listeners[e]?this._listeners[e].slice():[];r<n.length;r+=1)n[r].call(this,t);for(var i=0,a=this._oneTimeListeners&&this._oneTimeListeners[e]?this._oneTimeListeners[e].slice():[];i<a.length;i+=1){var o=a[i];C(e,o,this._oneTimeListeners),o.call(this,t)}var s=this._eventedParent;s&&(p(t,\"function\"==typeof this._eventedParentData?this._eventedParentData():this._eventedParentData),s.fire(t))}else v(e,\"error\")?console.error(t&&t.error||t||\"Empty error event\"):v(e,\"warning\")&&console.warn(t&&t.warning||t||\"Empty warning event\");return this},O.prototype.listens=function(t){return this._listeners&&this._listeners[t]&&this._listeners[t].length>0||this._oneTimeListeners&&this._oneTimeListeners[t]&&this._oneTimeListeners[t].length>0||this._eventedParent&&this._eventedParent.listens(t)},O.prototype.setEventedParent=function(t,e){return this._eventedParent=t,this._eventedParentData=e,this};var I={$version:8,$root:{version:{required:!0,type:\"enum\",values:[8]},name:{type:\"string\"},metadata:{type:\"*\"},center:{type:\"array\",value:\"number\"},zoom:{type:\"number\"},bearing:{type:\"number\",default:0,period:360,units:\"degrees\"},pitch:{type:\"number\",default:0,units:\"degrees\"},light:{type:\"light\"},sources:{required:!0,type:\"sources\"},sprite:{type:\"string\"},glyphs:{type:\"string\"},transition:{type:\"transition\"},layers:{required:!0,type:\"array\",value:\"layer\"}},sources:{\"*\":{type:\"source\"}},source:[\"source_vector\",\"source_raster\",\"source_raster_dem\",\"source_geojson\",\"source_video\",\"source_image\"],source_vector:{type:{required:!0,type:\"enum\",values:{vector:{}}},url:{type:\"string\"},tiles:{type:\"array\",value:\"string\"},bounds:{type:\"array\",value:\"number\",length:4,default:[-180,-85.0511,180,85.0511]},minzoom:{type:\"number\",default:0},maxzoom:{type:\"number\",default:22},attribution:{type:\"string\"},\"*\":{type:\"*\"}},source_raster:{type:{required:!0,type:\"enum\",values:{raster:{}}},url:{type:\"string\"},tiles:{type:\"array\",value:\"string\"},bounds:{type:\"array\",value:\"number\",length:4,default:[-180,-85.0511,180,85.0511]},minzoom:{type:\"number\",default:0},maxzoom:{type:\"number\",default:22},tileSize:{type:\"number\",default:512,units:\"pixels\"},scheme:{type:\"enum\",values:{xyz:{},tms:{}},default:\"xyz\"},attribution:{type:\"string\"},\"*\":{type:\"*\"}},source_raster_dem:{type:{required:!0,type:\"enum\",values:{\"raster-dem\":{}}},url:{type:\"string\"},tiles:{type:\"array\",value:\"string\"},bounds:{type:\"array\",value:\"number\",length:4,default:[-180,-85.0511,180,85.0511]},minzoom:{type:\"number\",default:0},maxzoom:{type:\"number\",default:22},tileSize:{type:\"number\",default:512,units:\"pixels\"},attribution:{type:\"string\"},encoding:{type:\"enum\",values:{terrarium:{},mapbox:{}},default:\"mapbox\"},\"*\":{type:\"*\"}},source_geojson:{type:{required:!0,type:\"enum\",values:{geojson:{}}},data:{type:\"*\"},maxzoom:{type:\"number\",default:18},buffer:{type:\"number\",default:128,maximum:512,minimum:0},tolerance:{type:\"number\",default:.375},cluster:{type:\"boolean\",default:!1},clusterRadius:{type:\"number\",default:50,minimum:0},clusterMaxZoom:{type:\"number\"},lineMetrics:{type:\"boolean\",default:!1}},source_video:{type:{required:!0,type:\"enum\",values:{video:{}}},urls:{required:!0,type:\"array\",value:\"string\"},coordinates:{required:!0,type:\"array\",length:4,value:{type:\"array\",length:2,value:\"number\"}}},source_image:{type:{required:!0,type:\"enum\",values:{image:{}}},url:{required:!0,type:\"string\"},coordinates:{required:!0,type:\"array\",length:4,value:{type:\"array\",length:2,value:\"number\"}}},layer:{id:{type:\"string\",required:!0},type:{type:\"enum\",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},\"fill-extrusion\":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:\"*\"},source:{type:\"string\"},\"source-layer\":{type:\"string\"},minzoom:{type:\"number\",minimum:0,maximum:24},maxzoom:{type:\"number\",minimum:0,maximum:24},filter:{type:\"filter\"},layout:{type:\"layout\"},paint:{type:\"paint\"}},layout:[\"layout_fill\",\"layout_line\",\"layout_circle\",\"layout_heatmap\",\"layout_fill-extrusion\",\"layout_symbol\",\"layout_raster\",\"layout_hillshade\",\"layout_background\"],layout_background:{visibility:{type:\"enum\",values:{visible:{},none:{}},default:\"visible\"}},layout_fill:{visibility:{type:\"enum\",values:{visible:{},none:{}},default:\"visible\"}},layout_circle:{visibility:{type:\"enum\",values:{visible:{},none:{}},default:\"visible\"}},layout_heatmap:{visibility:{type:\"enum\",values:{visible:{},none:{}},default:\"visible\"}},layout_line:{\"line-cap\":{type:\"enum\",function:\"piecewise-constant\",\"zoom-function\":!0,values:{butt:{},round:{},square:{}},default:\"butt\"},\"line-join\":{type:\"enum\",function:\"piecewise-constant\",\"zoom-function\":!0,\"property-function\":!0,values:{bevel:{},round:{},miter:{}},default:\"miter\"},\"line-miter-limit\":{type:\"number\",default:2,function:\"interpolated\",\"zoom-function\":!0,requires:[{\"line-join\":\"miter\"}]},\"line-round-limit\":{type:\"number\",default:1.05,function:\"interpolated\",\"zoom-function\":!0,requires:[{\"line-join\":\"round\"}]},visibility:{type:\"enum\",values:{visible:{},none:{}},default:\"visible\"}},layout_symbol:{\"symbol-placement\":{type:\"enum\",function:\"piecewise-constant\",\"zoom-function\":!0,values:{point:{},line:{}},default:\"point\"},\"symbol-spacing\":{type:\"number\",default:250,minimum:1,function:\"interpolated\",\"zoom-function\":!0,units:\"pixels\",requires:[{\"symbol-placement\":\"line\"}]},\"symbol-avoid-edges\":{type:\"boolean\",function:\"piecewise-constant\",\"zoom-function\":!0,default:!1},\"icon-allow-overlap\":{type:\"boolean\",function:\"piecewise-constant\",\"zoom-function\":!0,default:!1,requires:[\"icon-image\"]},\"icon-ignore-placement\":{type:\"boolean\",function:\"piecewise-constant\",\"zoom-function\":!0,default:!1,requires:[\"icon-image\"]},\"icon-optional\":{type:\"boolean\",function:\"piecewise-constant\",\"zoom-function\":!0,default:!1,requires:[\"icon-image\",\"text-field\"]},\"icon-rotation-alignment\":{type:\"enum\",function:\"piecewise-constant\",\"zoom-function\":!0,values:{map:{},viewport:{},auto:{}},default:\"auto\",requires:[\"icon-image\"]},\"icon-size\":{type:\"number\",default:1,minimum:0,function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,units:\"factor of the original icon size\",requires:[\"icon-image\"]},\"icon-text-fit\":{type:\"enum\",function:\"piecewise-constant\",\"zoom-function\":!0,values:{none:{},width:{},height:{},both:{}},default:\"none\",requires:[\"icon-image\",\"text-field\"]},\"icon-text-fit-padding\":{type:\"array\",value:\"number\",length:4,default:[0,0,0,0],units:\"pixels\",function:\"interpolated\",\"zoom-function\":!0,requires:[\"icon-image\",\"text-field\",{\"icon-text-fit\":[\"both\",\"width\",\"height\"]}]},\"icon-image\":{type:\"string\",function:\"piecewise-constant\",\"zoom-function\":!0,\"property-function\":!0,tokens:!0},\"icon-rotate\":{type:\"number\",default:0,period:360,function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,units:\"degrees\",requires:[\"icon-image\"]},\"icon-padding\":{type:\"number\",default:2,minimum:0,function:\"interpolated\",\"zoom-function\":!0,units:\"pixels\",requires:[\"icon-image\"]},\"icon-keep-upright\":{type:\"boolean\",function:\"piecewise-constant\",\"zoom-function\":!0,default:!1,requires:[\"icon-image\",{\"icon-rotation-alignment\":\"map\"},{\"symbol-placement\":\"line\"}]},\"icon-offset\":{type:\"array\",value:\"number\",length:2,default:[0,0],function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,requires:[\"icon-image\"]},\"icon-anchor\":{type:\"enum\",function:\"piecewise-constant\",\"zoom-function\":!0,\"property-function\":!0,values:{center:{},left:{},right:{},top:{},bottom:{},\"top-left\":{},\"top-right\":{},\"bottom-left\":{},\"bottom-right\":{}},default:\"center\",requires:[\"icon-image\"]},\"icon-pitch-alignment\":{type:\"enum\",function:\"piecewise-constant\",\"zoom-function\":!0,values:{map:{},viewport:{},auto:{}},default:\"auto\",requires:[\"icon-image\"]},\"text-pitch-alignment\":{type:\"enum\",function:\"piecewise-constant\",\"zoom-function\":!0,values:{map:{},viewport:{},auto:{}},default:\"auto\",requires:[\"text-field\"]},\"text-rotation-alignment\":{type:\"enum\",function:\"piecewise-constant\",\"zoom-function\":!0,values:{map:{},viewport:{},auto:{}},default:\"auto\",requires:[\"text-field\"]},\"text-field\":{type:\"string\",function:\"piecewise-constant\",\"zoom-function\":!0,\"property-function\":!0,default:\"\",tokens:!0},\"text-font\":{type:\"array\",value:\"string\",function:\"piecewise-constant\",\"zoom-function\":!0,\"property-function\":!0,default:[\"Open Sans Regular\",\"Arial Unicode MS Regular\"],requires:[\"text-field\"]},\"text-size\":{type:\"number\",default:16,minimum:0,units:\"pixels\",function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,requires:[\"text-field\"]},\"text-max-width\":{type:\"number\",default:10,minimum:0,units:\"ems\",function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,requires:[\"text-field\"]},\"text-line-height\":{type:\"number\",default:1.2,units:\"ems\",function:\"interpolated\",\"zoom-function\":!0,requires:[\"text-field\"]},\"text-letter-spacing\":{type:\"number\",default:0,units:\"ems\",function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,requires:[\"text-field\"]},\"text-justify\":{type:\"enum\",function:\"piecewise-constant\",\"zoom-function\":!0,\"property-function\":!0,values:{left:{},center:{},right:{}},default:\"center\",requires:[\"text-field\"]},\"text-anchor\":{type:\"enum\",function:\"piecewise-constant\",\"zoom-function\":!0,\"property-function\":!0,values:{center:{},left:{},right:{},top:{},bottom:{},\"top-left\":{},\"top-right\":{},\"bottom-left\":{},\"bottom-right\":{}},default:\"center\",requires:[\"text-field\"]},\"text-max-angle\":{type:\"number\",default:45,units:\"degrees\",function:\"interpolated\",\"zoom-function\":!0,requires:[\"text-field\",{\"symbol-placement\":\"line\"}]},\"text-rotate\":{type:\"number\",default:0,period:360,units:\"degrees\",function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,requires:[\"text-field\"]},\"text-padding\":{type:\"number\",default:2,minimum:0,units:\"pixels\",function:\"interpolated\",\"zoom-function\":!0,requires:[\"text-field\"]},\"text-keep-upright\":{type:\"boolean\",function:\"piecewise-constant\",\"zoom-function\":!0,default:!0,requires:[\"text-field\",{\"text-rotation-alignment\":\"map\"},{\"symbol-placement\":\"line\"}]},\"text-transform\":{type:\"enum\",function:\"piecewise-constant\",\"zoom-function\":!0,\"property-function\":!0,values:{none:{},uppercase:{},lowercase:{}},default:\"none\",requires:[\"text-field\"]},\"text-offset\":{type:\"array\",value:\"number\",units:\"ems\",function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,length:2,default:[0,0],requires:[\"text-field\"]},\"text-allow-overlap\":{type:\"boolean\",function:\"piecewise-constant\",\"zoom-function\":!0,default:!1,requires:[\"text-field\"]},\"text-ignore-placement\":{type:\"boolean\",function:\"piecewise-constant\",\"zoom-function\":!0,default:!1,requires:[\"text-field\"]},\"text-optional\":{type:\"boolean\",function:\"piecewise-constant\",\"zoom-function\":!0,default:!1,requires:[\"text-field\",\"icon-image\"]},visibility:{type:\"enum\",values:{visible:{},none:{}},default:\"visible\"}},layout_raster:{visibility:{type:\"enum\",values:{visible:{},none:{}},default:\"visible\"}},layout_hillshade:{visibility:{type:\"enum\",values:{visible:{},none:{}},default:\"visible\"}},filter:{type:\"array\",value:\"*\"},filter_operator:{type:\"enum\",values:{\"==\":{},\"!=\":{},\">\":{},\">=\":{},\"<\":{},\"<=\":{},in:{},\"!in\":{},all:{},any:{},none:{},has:{},\"!has\":{}}},geometry_type:{type:\"enum\",values:{Point:{},LineString:{},Polygon:{}}},function_stop:{type:\"array\",minimum:0,maximum:22,value:[\"number\",\"color\"],length:2},expression:{type:\"array\",value:\"*\",minimum:1},expression_name:{type:\"enum\",values:{let:{group:\"Variable binding\"},var:{group:\"Variable binding\"},literal:{group:\"Types\"},array:{group:\"Types\"},at:{group:\"Lookup\"},case:{group:\"Decision\"},match:{group:\"Decision\"},coalesce:{group:\"Decision\"},step:{group:\"Ramps, scales, curves\"},interpolate:{group:\"Ramps, scales, curves\"},ln2:{group:\"Math\"},pi:{group:\"Math\"},e:{group:\"Math\"},typeof:{group:\"Types\"},string:{group:\"Types\"},number:{group:\"Types\"},boolean:{group:\"Types\"},object:{group:\"Types\"},collator:{group:\"Types\"},\"to-string\":{group:\"Types\"},\"to-number\":{group:\"Types\"},\"to-boolean\":{group:\"Types\"},\"to-rgba\":{group:\"Color\"},\"to-color\":{group:\"Types\"},rgb:{group:\"Color\"},rgba:{group:\"Color\"},get:{group:\"Lookup\"},has:{group:\"Lookup\"},length:{group:\"Lookup\"},properties:{group:\"Feature data\"},\"geometry-type\":{group:\"Feature data\"},id:{group:\"Feature data\"},zoom:{group:\"Zoom\"},\"heatmap-density\":{group:\"Heatmap\"},\"line-progress\":{group:\"Heatmap\"},\"+\":{group:\"Math\"},\"*\":{group:\"Math\"},\"-\":{group:\"Math\"},\"/\":{group:\"Math\"},\"%\":{group:\"Math\"},\"^\":{group:\"Math\"},sqrt:{group:\"Math\"},log10:{group:\"Math\"},ln:{group:\"Math\"},log2:{group:\"Math\"},sin:{group:\"Math\"},cos:{group:\"Math\"},tan:{group:\"Math\"},asin:{group:\"Math\"},acos:{group:\"Math\"},atan:{group:\"Math\"},min:{group:\"Math\"},max:{group:\"Math\"},round:{group:\"Math\"},abs:{group:\"Math\"},ceil:{group:\"Math\"},floor:{group:\"Math\"},\"==\":{group:\"Decision\"},\"!=\":{group:\"Decision\"},\">\":{group:\"Decision\"},\"<\":{group:\"Decision\"},\">=\":{group:\"Decision\"},\"<=\":{group:\"Decision\"},all:{group:\"Decision\"},any:{group:\"Decision\"},\"!\":{group:\"Decision\"},\"is-supported-script\":{group:\"String\"},upcase:{group:\"String\"},downcase:{group:\"String\"},concat:{group:\"String\"},\"resolved-locale\":{group:\"String\"}}},light:{anchor:{type:\"enum\",default:\"viewport\",values:{map:{},viewport:{}},transition:!1,\"zoom-function\":!0,\"property-function\":!1,function:\"piecewise-constant\"},position:{type:\"array\",default:[1.15,210,30],length:3,value:\"number\",transition:!0,function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!1},color:{type:\"color\",default:\"#ffffff\",function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!1,transition:!0},intensity:{type:\"number\",default:.5,minimum:0,maximum:1,function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!1,transition:!0}},paint:[\"paint_fill\",\"paint_line\",\"paint_circle\",\"paint_heatmap\",\"paint_fill-extrusion\",\"paint_symbol\",\"paint_raster\",\"paint_hillshade\",\"paint_background\"],paint_fill:{\"fill-antialias\":{type:\"boolean\",function:\"piecewise-constant\",\"zoom-function\":!0,default:!0},\"fill-opacity\":{type:\"number\",function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,default:1,minimum:0,maximum:1,transition:!0},\"fill-color\":{type:\"color\",default:\"#000000\",function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,requires:[{\"!\":\"fill-pattern\"}]},\"fill-outline-color\":{type:\"color\",function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,requires:[{\"!\":\"fill-pattern\"},{\"fill-antialias\":!0}]},\"fill-translate\":{type:\"array\",value:\"number\",length:2,default:[0,0],function:\"interpolated\",\"zoom-function\":!0,transition:!0,units:\"pixels\"},\"fill-translate-anchor\":{type:\"enum\",function:\"piecewise-constant\",\"zoom-function\":!0,values:{map:{},viewport:{}},default:\"map\",requires:[\"fill-translate\"]},\"fill-pattern\":{type:\"string\",function:\"piecewise-constant\",\"zoom-function\":!0,transition:!0}},paint_line:{\"line-opacity\":{type:\"number\",function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,default:1,minimum:0,maximum:1,transition:!0},\"line-color\":{type:\"color\",default:\"#000000\",function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,requires:[{\"!\":\"line-pattern\"}]},\"line-translate\":{type:\"array\",value:\"number\",length:2,default:[0,0],function:\"interpolated\",\"zoom-function\":!0,transition:!0,units:\"pixels\"},\"line-translate-anchor\":{type:\"enum\",function:\"piecewise-constant\",\"zoom-function\":!0,values:{map:{},viewport:{}},default:\"map\",requires:[\"line-translate\"]},\"line-width\":{type:\"number\",default:1,minimum:0,function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,units:\"pixels\"},\"line-gap-width\":{type:\"number\",default:0,minimum:0,function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,units:\"pixels\"},\"line-offset\":{type:\"number\",default:0,function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,units:\"pixels\"},\"line-blur\":{type:\"number\",default:0,minimum:0,function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,units:\"pixels\"},\"line-dasharray\":{type:\"array\",value:\"number\",function:\"piecewise-constant\",\"zoom-function\":!0,minimum:0,transition:!0,units:\"line widths\",requires:[{\"!\":\"line-pattern\"}]},\"line-pattern\":{type:\"string\",function:\"piecewise-constant\",\"zoom-function\":!0,transition:!0},\"line-gradient\":{type:\"color\",function:\"interpolated\",\"zoom-function\":!1,\"property-function\":!1,transition:!1,requires:[{\"!\":\"line-dasharray\"},{\"!\":\"line-pattern\"},{source:\"geojson\",has:{lineMetrics:!0}}]}},paint_circle:{\"circle-radius\":{type:\"number\",default:5,minimum:0,function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,units:\"pixels\"},\"circle-color\":{type:\"color\",default:\"#000000\",function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0},\"circle-blur\":{type:\"number\",default:0,function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0},\"circle-opacity\":{type:\"number\",default:1,minimum:0,maximum:1,function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0},\"circle-translate\":{type:\"array\",value:\"number\",length:2,default:[0,0],function:\"interpolated\",\"zoom-function\":!0,transition:!0,units:\"pixels\"},\"circle-translate-anchor\":{type:\"enum\",function:\"piecewise-constant\",\"zoom-function\":!0,values:{map:{},viewport:{}},default:\"map\",requires:[\"circle-translate\"]},\"circle-pitch-scale\":{type:\"enum\",function:\"piecewise-constant\",\"zoom-function\":!0,values:{map:{},viewport:{}},default:\"map\"},\"circle-pitch-alignment\":{type:\"enum\",function:\"piecewise-constant\",\"zoom-function\":!0,values:{map:{},viewport:{}},default:\"viewport\"},\"circle-stroke-width\":{type:\"number\",default:0,minimum:0,function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,units:\"pixels\"},\"circle-stroke-color\":{type:\"color\",default:\"#000000\",function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0},\"circle-stroke-opacity\":{type:\"number\",default:1,minimum:0,maximum:1,function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0}},paint_heatmap:{\"heatmap-radius\":{type:\"number\",default:30,minimum:1,function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,units:\"pixels\"},\"heatmap-weight\":{type:\"number\",default:1,minimum:0,function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!1},\"heatmap-intensity\":{type:\"number\",default:1,minimum:0,function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!1,transition:!0},\"heatmap-color\":{type:\"color\",default:[\"interpolate\",[\"linear\"],[\"heatmap-density\"],0,\"rgba(0, 0, 255, 0)\",.1,\"royalblue\",.3,\"cyan\",.5,\"lime\",.7,\"yellow\",1,\"red\"],function:\"interpolated\",\"zoom-function\":!1,\"property-function\":!1,transition:!1},\"heatmap-opacity\":{type:\"number\",default:1,minimum:0,maximum:1,function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!1,transition:!0}},paint_symbol:{\"icon-opacity\":{type:\"number\",default:1,minimum:0,maximum:1,function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,requires:[\"icon-image\"]},\"icon-color\":{type:\"color\",default:\"#000000\",function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,requires:[\"icon-image\"]},\"icon-halo-color\":{type:\"color\",default:\"rgba(0, 0, 0, 0)\",function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,requires:[\"icon-image\"]},\"icon-halo-width\":{type:\"number\",default:0,minimum:0,function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,units:\"pixels\",requires:[\"icon-image\"]},\"icon-halo-blur\":{type:\"number\",default:0,minimum:0,function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,units:\"pixels\",requires:[\"icon-image\"]},\"icon-translate\":{type:\"array\",value:\"number\",length:2,default:[0,0],function:\"interpolated\",\"zoom-function\":!0,transition:!0,units:\"pixels\",requires:[\"icon-image\"]},\"icon-translate-anchor\":{type:\"enum\",function:\"piecewise-constant\",\"zoom-function\":!0,values:{map:{},viewport:{}},default:\"map\",requires:[\"icon-image\",\"icon-translate\"]},\"text-opacity\":{type:\"number\",default:1,minimum:0,maximum:1,function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,requires:[\"text-field\"]},\"text-color\":{type:\"color\",default:\"#000000\",function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,requires:[\"text-field\"]},\"text-halo-color\":{type:\"color\",default:\"rgba(0, 0, 0, 0)\",function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,requires:[\"text-field\"]},\"text-halo-width\":{type:\"number\",default:0,minimum:0,function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,units:\"pixels\",requires:[\"text-field\"]},\"text-halo-blur\":{type:\"number\",default:0,minimum:0,function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,units:\"pixels\",requires:[\"text-field\"]},\"text-translate\":{type:\"array\",value:\"number\",length:2,default:[0,0],function:\"interpolated\",\"zoom-function\":!0,transition:!0,units:\"pixels\",requires:[\"text-field\"]},\"text-translate-anchor\":{type:\"enum\",function:\"piecewise-constant\",\"zoom-function\":!0,values:{map:{},viewport:{}},default:\"map\",requires:[\"text-field\",\"text-translate\"]}},paint_raster:{\"raster-opacity\":{type:\"number\",default:1,minimum:0,maximum:1,function:\"interpolated\",\"zoom-function\":!0,transition:!0},\"raster-hue-rotate\":{type:\"number\",default:0,period:360,function:\"interpolated\",\"zoom-function\":!0,transition:!0,units:\"degrees\"},\"raster-brightness-min\":{type:\"number\",function:\"interpolated\",\"zoom-function\":!0,default:0,minimum:0,maximum:1,transition:!0},\"raster-brightness-max\":{type:\"number\",function:\"interpolated\",\"zoom-function\":!0,default:1,minimum:0,maximum:1,transition:!0},\"raster-saturation\":{type:\"number\",default:0,minimum:-1,maximum:1,function:\"interpolated\",\"zoom-function\":!0,transition:!0},\"raster-contrast\":{type:\"number\",default:0,minimum:-1,maximum:1,function:\"interpolated\",\"zoom-function\":!0,transition:!0},\"raster-fade-duration\":{type:\"number\",default:300,minimum:0,function:\"interpolated\",\"zoom-function\":!0,transition:!1,units:\"milliseconds\"}},paint_hillshade:{\"hillshade-illumination-direction\":{type:\"number\",default:335,minimum:0,maximum:359,function:\"interpolated\",\"zoom-function\":!0,transition:!1},\"hillshade-illumination-anchor\":{type:\"enum\",function:\"piecewise-constant\",\"zoom-function\":!0,values:{map:{},viewport:{}},default:\"viewport\"},\"hillshade-exaggeration\":{type:\"number\",default:.5,minimum:0,maximum:1,function:\"interpolated\",\"zoom-function\":!0,transition:!0},\"hillshade-shadow-color\":{type:\"color\",default:\"#000000\",function:\"interpolated\",\"zoom-function\":!0,transition:!0},\"hillshade-highlight-color\":{type:\"color\",default:\"#FFFFFF\",function:\"interpolated\",\"zoom-function\":!0,transition:!0},\"hillshade-accent-color\":{type:\"color\",default:\"#000000\",function:\"interpolated\",\"zoom-function\":!0,transition:!0}},paint_background:{\"background-color\":{type:\"color\",default:\"#000000\",function:\"interpolated\",\"zoom-function\":!0,transition:!0,requires:[{\"!\":\"background-pattern\"}]},\"background-pattern\":{type:\"string\",function:\"piecewise-constant\",\"zoom-function\":!0,transition:!0},\"background-opacity\":{type:\"number\",default:1,minimum:0,maximum:1,function:\"interpolated\",\"zoom-function\":!0,transition:!0}},transition:{duration:{type:\"number\",default:300,minimum:0,units:\"milliseconds\"},delay:{type:\"number\",default:0,minimum:0,units:\"milliseconds\"}},\"layout_fill-extrusion\":{visibility:{type:\"enum\",values:{visible:{},none:{}},default:\"visible\"}},function:{expression:{type:\"expression\"},stops:{type:\"array\",value:\"function_stop\"},base:{type:\"number\",default:1,minimum:0},property:{type:\"string\",default:\"$zoom\"},type:{type:\"enum\",values:{identity:{},exponential:{},interval:{},categorical:{}},default:\"exponential\"},colorSpace:{type:\"enum\",values:{rgb:{},lab:{},hcl:{}},default:\"rgb\"},default:{type:\"*\",required:!1}},\"paint_fill-extrusion\":{\"fill-extrusion-opacity\":{type:\"number\",function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!1,default:1,minimum:0,maximum:1,transition:!0},\"fill-extrusion-color\":{type:\"color\",default:\"#000000\",function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,requires:[{\"!\":\"fill-extrusion-pattern\"}]},\"fill-extrusion-translate\":{type:\"array\",value:\"number\",length:2,default:[0,0],function:\"interpolated\",\"zoom-function\":!0,transition:!0,units:\"pixels\"},\"fill-extrusion-translate-anchor\":{type:\"enum\",function:\"piecewise-constant\",\"zoom-function\":!0,values:{map:{},viewport:{}},default:\"map\",requires:[\"fill-extrusion-translate\"]},\"fill-extrusion-pattern\":{type:\"string\",function:\"piecewise-constant\",\"zoom-function\":!0,transition:!0},\"fill-extrusion-height\":{type:\"number\",function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,default:0,minimum:0,units:\"meters\",transition:!0},\"fill-extrusion-base\":{type:\"number\",function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,default:0,minimum:0,units:\"meters\",transition:!0,requires:[\"fill-extrusion-height\"]}}},P=function(t,e,r,n){this.message=(t?t+\": \":\"\")+r,n&&(this.identifier=n),null!=e&&e.__line__&&(this.line=e.__line__)};function D(t){var e=t.key,r=t.value;return r?[new P(e,r,\"constants have been deprecated as of v8\")]:[]}function R(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];for(var n=0,i=e;n<i.length;n+=1){var a=i[n];for(var o in a)t[o]=a[o]}return t}function B(t){return t instanceof Number||t instanceof String||t instanceof Boolean?t.valueOf():t}function F(t){return Array.isArray(t)?t.map(F):B(t)}var N=function(t){function e(e,r){t.call(this,r),this.message=r,this.key=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Error),j=function(t,e){void 0===e&&(e=[]),this.parent=t,this.bindings={};for(var r=0,n=e;r<n.length;r+=1){var i=n[r],a=i[0],o=i[1];this.bindings[a]=o}};j.prototype.concat=function(t){return new j(this,t)},j.prototype.get=function(t){if(this.bindings[t])return this.bindings[t];if(this.parent)return this.parent.get(t);throw new Error(t+\" not found in scope.\")},j.prototype.has=function(t){return!!this.bindings[t]||!!this.parent&&this.parent.has(t)};var V={kind:\"null\"},U={kind:\"number\"},q={kind:\"string\"},H={kind:\"boolean\"},G={kind:\"color\"},W={kind:\"object\"},Y={kind:\"value\"},X={kind:\"collator\"};function Z(t,e){return{kind:\"array\",itemType:t,N:e}}function $(t){if(\"array\"===t.kind){var e=$(t.itemType);return\"number\"==typeof t.N?\"array<\"+e+\", \"+t.N+\">\":\"value\"===t.itemType.kind?\"array\":\"array<\"+e+\">\"}return t.kind}var J=[V,U,q,H,G,W,Z(Y)];function K(t,e){if(\"error\"===e.kind)return null;if(\"array\"===t.kind){if(\"array\"===e.kind&&!K(t.itemType,e.itemType)&&(\"number\"!=typeof t.N||t.N===e.N))return null}else{if(t.kind===e.kind)return null;if(\"value\"===t.kind)for(var r=0,n=J;r<n.length;r+=1)if(!K(n[r],e))return null}return\"Expected \"+$(t)+\" but found \"+$(e)+\" instead.\"}var Q=i(function(t,e){var r={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],rebeccapurple:[102,51,153,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function n(t){return(t=Math.round(t))<0?0:t>255?255:t}function i(t){return t<0?0:t>1?1:t}function a(t){return\"%\"===t[t.length-1]?n(parseFloat(t)/100*255):n(parseInt(t))}function o(t){return\"%\"===t[t.length-1]?i(parseFloat(t)/100):i(parseFloat(t))}function s(t,e,r){return r<0?r+=1:r>1&&(r-=1),6*r<1?t+(e-t)*r*6:2*r<1?e:3*r<2?t+(e-t)*(2/3-r)*6:t}try{e.parseCSSColor=function(t){var e,i=t.replace(/ /g,\"\").toLowerCase();if(i in r)return r[i].slice();if(\"#\"===i[0])return 4===i.length?(e=parseInt(i.substr(1),16))>=0&&e<=4095?[(3840&e)>>4|(3840&e)>>8,240&e|(240&e)>>4,15&e|(15&e)<<4,1]:null:7===i.length&&(e=parseInt(i.substr(1),16))>=0&&e<=16777215?[(16711680&e)>>16,(65280&e)>>8,255&e,1]:null;var l=i.indexOf(\"(\"),c=i.indexOf(\")\");if(-1!==l&&c+1===i.length){var u=i.substr(0,l),f=i.substr(l+1,c-(l+1)).split(\",\"),h=1;switch(u){case\"rgba\":if(4!==f.length)return null;h=o(f.pop());case\"rgb\":return 3!==f.length?null:[a(f[0]),a(f[1]),a(f[2]),h];case\"hsla\":if(4!==f.length)return null;h=o(f.pop());case\"hsl\":if(3!==f.length)return null;var p=(parseFloat(f[0])%360+360)%360/360,d=o(f[1]),g=o(f[2]),v=g<=.5?g*(d+1):g+d-g*d,m=2*g-v;return[n(255*s(m,v,p+1/3)),n(255*s(m,v,p)),n(255*s(m,v,p-1/3)),h];default:return null}}return null}}catch(t){}}).parseCSSColor,tt=function(t,e,r,n){void 0===n&&(n=1),this.r=t,this.g=e,this.b=r,this.a=n};tt.parse=function(t){if(t){if(t instanceof tt)return t;if(\"string\"==typeof t){var e=Q(t);if(e)return new tt(e[0]/255*e[3],e[1]/255*e[3],e[2]/255*e[3],e[3])}}},tt.prototype.toString=function(){var t=this.toArray(),e=t[0],r=t[1],n=t[2],i=t[3];return\"rgba(\"+Math.round(e)+\",\"+Math.round(r)+\",\"+Math.round(n)+\",\"+i+\")\"},tt.prototype.toArray=function(){var t=this.r,e=this.g,r=this.b,n=this.a;return 0===n?[0,0,0,0]:[255*t/n,255*e/n,255*r/n,n]},tt.black=new tt(0,0,0,1),tt.white=new tt(1,1,1,1),tt.transparent=new tt(0,0,0,0);var et=function(t,e,r){this.sensitivity=t?e?\"variant\":\"case\":e?\"accent\":\"base\",this.locale=r,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:\"search\"})};et.prototype.compare=function(t,e){return this.collator.compare(t,e)},et.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var rt=function(t,e,r){this.type=X,this.locale=r,this.caseSensitive=t,this.diacriticSensitive=e};function nt(t,e,r,n){return\"number\"==typeof t&&t>=0&&t<=255&&\"number\"==typeof e&&e>=0&&e<=255&&\"number\"==typeof r&&r>=0&&r<=255?void 0===n||\"number\"==typeof n&&n>=0&&n<=1?null:\"Invalid rgba value [\"+[t,e,r,n].join(\", \")+\"]: 'a' must be between 0 and 1.\":\"Invalid rgba value [\"+(\"number\"==typeof n?[t,e,r,n]:[t,e,r]).join(\", \")+\"]: 'r', 'g', and 'b' must be between 0 and 255.\"}function it(t){if(null===t)return V;if(\"string\"==typeof t)return q;if(\"boolean\"==typeof t)return H;if(\"number\"==typeof t)return U;if(t instanceof tt)return G;if(t instanceof et)return X;if(Array.isArray(t)){for(var e,r=t.length,n=0,i=t;n<i.length;n+=1){var a=it(i[n]);if(e){if(e===a)continue;e=Y;break}e=a}return Z(e||Y,r)}return W}rt.parse=function(t,e){if(2!==t.length)return e.error(\"Expected one argument.\");var r=t[1];if(\"object\"!=typeof r||Array.isArray(r))return e.error(\"Collator options argument must be an object.\");var n=e.parse(void 0!==r[\"case-sensitive\"]&&r[\"case-sensitive\"],1,H);if(!n)return null;var i=e.parse(void 0!==r[\"diacritic-sensitive\"]&&r[\"diacritic-sensitive\"],1,H);if(!i)return null;var a=null;return r.locale&&!(a=e.parse(r.locale,1,q))?null:new rt(n,i,a)},rt.prototype.evaluate=function(t){return new et(this.caseSensitive.evaluate(t),this.diacriticSensitive.evaluate(t),this.locale?this.locale.evaluate(t):null)},rt.prototype.eachChild=function(t){t(this.caseSensitive),t(this.diacriticSensitive),this.locale&&t(this.locale)},rt.prototype.possibleOutputs=function(){return[void 0]},rt.prototype.serialize=function(){var t={};return t[\"case-sensitive\"]=this.caseSensitive.serialize(),t[\"diacritic-sensitive\"]=this.diacriticSensitive.serialize(),this.locale&&(t.locale=this.locale.serialize()),[\"collator\",t]};var at=function(t,e){this.type=t,this.value=e};at.parse=function(t,e){if(2!==t.length)return e.error(\"'literal' expression requires exactly one argument, but found \"+(t.length-1)+\" instead.\");if(!function t(e){if(null===e)return!0;if(\"string\"==typeof e)return!0;if(\"boolean\"==typeof e)return!0;if(\"number\"==typeof e)return!0;if(e instanceof tt)return!0;if(e instanceof et)return!0;if(Array.isArray(e)){for(var r=0,n=e;r<n.length;r+=1)if(!t(n[r]))return!1;return!0}if(\"object\"==typeof e){for(var i in e)if(!t(e[i]))return!1;return!0}return!1}(t[1]))return e.error(\"invalid value\");var r=t[1],n=it(r),i=e.expectedType;return\"array\"!==n.kind||0!==n.N||!i||\"array\"!==i.kind||\"number\"==typeof i.N&&0!==i.N||(n=i),new at(n,r)},at.prototype.evaluate=function(){return this.value},at.prototype.eachChild=function(){},at.prototype.possibleOutputs=function(){return[this.value]},at.prototype.serialize=function(){return\"array\"===this.type.kind||\"object\"===this.type.kind?[\"literal\",this.value]:this.value instanceof tt?[\"rgba\"].concat(this.value.toArray()):this.value};var ot=function(t){this.name=\"ExpressionEvaluationError\",this.message=t};ot.prototype.toJSON=function(){return this.message};var st={string:q,number:U,boolean:H,object:W},lt=function(t,e){this.type=t,this.args=e};lt.parse=function(t,e){if(t.length<2)return e.error(\"Expected at least one argument.\");for(var r=t[0],n=st[r],i=[],a=1;a<t.length;a++){var o=e.parse(t[a],a,Y);if(!o)return null;i.push(o)}return new lt(n,i)},lt.prototype.evaluate=function(t){for(var e=0;e<this.args.length;e++){var r=this.args[e].evaluate(t);if(!K(this.type,it(r)))return r;if(e===this.args.length-1)throw new ot(\"Expected value to be of type \"+$(this.type)+\", but found \"+$(it(r))+\" instead.\")}return null},lt.prototype.eachChild=function(t){this.args.forEach(t)},lt.prototype.possibleOutputs=function(){return(t=[]).concat.apply(t,this.args.map(function(t){return t.possibleOutputs()}));var t},lt.prototype.serialize=function(){return[this.type.kind].concat(this.args.map(function(t){return t.serialize()}))};var ct={string:q,number:U,boolean:H},ut=function(t,e){this.type=t,this.input=e};ut.parse=function(t,e){if(t.length<2||t.length>4)return e.error(\"Expected 1, 2, or 3 arguments, but found \"+(t.length-1)+\" instead.\");var r,n;if(t.length>2){var i=t[1];if(\"string\"!=typeof i||!(i in ct))return e.error('The item type argument of \"array\" must be one of string, number, boolean',1);r=ct[i]}else r=Y;if(t.length>3){if(\"number\"!=typeof t[2]||t[2]<0||t[2]!==Math.floor(t[2]))return e.error('The length argument to \"array\" must be a positive integer literal',2);n=t[2]}var a=Z(r,n),o=e.parse(t[t.length-1],t.length-1,Y);return o?new ut(a,o):null},ut.prototype.evaluate=function(t){var e=this.input.evaluate(t);if(K(this.type,it(e)))throw new ot(\"Expected value to be of type \"+$(this.type)+\", but found \"+$(it(e))+\" instead.\");return e},ut.prototype.eachChild=function(t){t(this.input)},ut.prototype.possibleOutputs=function(){return this.input.possibleOutputs()},ut.prototype.serialize=function(){var t=[\"array\"],e=this.type.itemType;if(\"string\"===e.kind||\"number\"===e.kind||\"boolean\"===e.kind){t.push(e.kind);var r=this.type.N;\"number\"==typeof r&&t.push(r)}return t.push(this.input.serialize()),t};var ft={\"to-number\":U,\"to-color\":G},ht=function(t,e){this.type=t,this.args=e};ht.parse=function(t,e){if(t.length<2)return e.error(\"Expected at least one argument.\");for(var r=t[0],n=ft[r],i=[],a=1;a<t.length;a++){var o=e.parse(t[a],a,Y);if(!o)return null;i.push(o)}return new ht(n,i)},ht.prototype.evaluate=function(t){if(\"color\"===this.type.kind){for(var e,r,n=0,i=this.args;n<i.length;n+=1)if(r=null,\"string\"==typeof(e=i[n].evaluate(t))){var a=t.parseColor(e);if(a)return a}else if(Array.isArray(e)&&!(r=e.length<3||e.length>4?\"Invalid rbga value \"+JSON.stringify(e)+\": expected an array containing either three or four numeric values.\":nt(e[0],e[1],e[2],e[3])))return new tt(e[0]/255,e[1]/255,e[2]/255,e[3]);throw new ot(r||\"Could not parse color from value '\"+(\"string\"==typeof e?e:JSON.stringify(e))+\"'\")}for(var o=null,s=0,l=this.args;s<l.length;s+=1)if(null!==(o=l[s].evaluate(t))){var c=Number(o);if(!isNaN(c))return c}throw new ot(\"Could not convert \"+JSON.stringify(o)+\" to number.\")},ht.prototype.eachChild=function(t){this.args.forEach(t)},ht.prototype.possibleOutputs=function(){return(t=[]).concat.apply(t,this.args.map(function(t){return t.possibleOutputs()}));var t},ht.prototype.serialize=function(){var t=[\"to-\"+this.type.kind];return this.eachChild(function(e){t.push(e.serialize())}),t};var pt=[\"Unknown\",\"Point\",\"LineString\",\"Polygon\"],dt=function(){this._parseColorCache={}};dt.prototype.id=function(){return this.feature&&\"id\"in this.feature?this.feature.id:null},dt.prototype.geometryType=function(){return this.feature?\"number\"==typeof this.feature.type?pt[this.feature.type]:this.feature.type:null},dt.prototype.properties=function(){return this.feature&&this.feature.properties||{}},dt.prototype.parseColor=function(t){var e=this._parseColorCache[t];return e||(e=this._parseColorCache[t]=tt.parse(t)),e};var gt=function(t,e,r,n){this.name=t,this.type=e,this._evaluate=r,this.args=n};function vt(t){if(t instanceof gt){if(\"get\"===t.name&&1===t.args.length)return!1;if(\"has\"===t.name&&1===t.args.length)return!1;if(\"properties\"===t.name||\"geometry-type\"===t.name||\"id\"===t.name)return!1;if(/^filter-/.test(t.name))return!1}var e=!0;return t.eachChild(function(t){e&&!vt(t)&&(e=!1)}),e}function mt(t,e){if(t instanceof gt&&e.indexOf(t.name)>=0)return!1;var r=!0;return t.eachChild(function(t){r&&!mt(t,e)&&(r=!1)}),r}gt.prototype.evaluate=function(t){return this._evaluate(t,this.args)},gt.prototype.eachChild=function(t){this.args.forEach(t)},gt.prototype.possibleOutputs=function(){return[void 0]},gt.prototype.serialize=function(){return[this.name].concat(this.args.map(function(t){return t.serialize()}))},gt.parse=function(t,e){var r=t[0],n=gt.definitions[r];if(!n)return e.error('Unknown expression \"'+r+'\". If you wanted a literal array, use [\"literal\", [...]].',0);for(var i=Array.isArray(n)?n[0]:n.type,a=Array.isArray(n)?[[n[1],n[2]]]:n.overloads,o=a.filter(function(e){var r=e[0];return!Array.isArray(r)||r.length===t.length-1}),s=[],l=1;l<t.length;l++){var c=t[l],u=void 0;if(1===o.length){var f=o[0][0];u=Array.isArray(f)?f[l-1]:f.type}var h=e.parse(c,1+s.length,u);if(!h)return null;s.push(h)}for(var p=null,d=0,g=o;d<g.length;d+=1){var v=g[d],m=v[0],y=v[1];if(p=new xt(e.registry,e.path,null,e.scope),Array.isArray(m)&&m.length!==s.length)p.error(\"Expected \"+m.length+\" arguments, but found \"+s.length+\" instead.\");else{for(var x=0;x<s.length;x++){var b=Array.isArray(m)?m[x]:m.type,_=s[x];p.concat(x+1).checkSubtype(b,_.type)}if(0===p.errors.length)return new gt(r,i,y,s)}}if(1===o.length)e.errors.push.apply(e.errors,p.errors);else{var w=(o.length?o:a).map(function(t){var e;return e=t[0],Array.isArray(e)?\"(\"+e.map($).join(\", \")+\")\":\"(\"+$(e.type)+\"...)\"}).join(\" | \"),k=s.map(function(t){return $(t.type)}).join(\", \");e.error(\"Expected arguments of type \"+w+\", but found (\"+k+\") instead.\")}return null},gt.register=function(t,e){for(var r in gt.definitions=e,e)t[r]=gt};var yt=function(t,e){this.type=e.type,this.name=t,this.boundExpression=e};yt.parse=function(t,e){if(2!==t.length||\"string\"!=typeof t[1])return e.error(\"'var' expression requires exactly one string literal argument.\");var r=t[1];return e.scope.has(r)?new yt(r,e.scope.get(r)):e.error('Unknown variable \"'+r+'\". Make sure \"'+r+'\" has been bound in an enclosing \"let\" expression before using it.',1)},yt.prototype.evaluate=function(t){return this.boundExpression.evaluate(t)},yt.prototype.eachChild=function(){},yt.prototype.possibleOutputs=function(){return[void 0]},yt.prototype.serialize=function(){return[\"var\",this.name]};var xt=function(t,e,r,n,i){void 0===e&&(e=[]),void 0===n&&(n=new j),void 0===i&&(i=[]),this.registry=t,this.path=e,this.key=e.map(function(t){return\"[\"+t+\"]\"}).join(\"\"),this.scope=n,this.errors=i,this.expectedType=r};function bt(t,e){for(var r,n,i=0,a=t.length-1,o=0;i<=a;){if(r=t[o=Math.floor((i+a)/2)],n=t[o+1],e===r||e>r&&e<n)return o;if(r<e)i=o+1;else{if(!(r>e))throw new ot(\"Input is not a number.\");a=o-1}}return Math.max(o-1,0)}xt.prototype.parse=function(t,e,r,n,i){return void 0===i&&(i={}),e?this.concat(e,r,n)._parse(t,i):this._parse(t,i)},xt.prototype._parse=function(t,e){if(null!==t&&\"string\"!=typeof t&&\"boolean\"!=typeof t&&\"number\"!=typeof t||(t=[\"literal\",t]),Array.isArray(t)){if(0===t.length)return this.error('Expected an array with at least one element. If you wanted a literal array, use [\"literal\", []].');var r=t[0];if(\"string\"!=typeof r)return this.error(\"Expression name must be a string, but found \"+typeof r+' instead. If you wanted a literal array, use [\"literal\", [...]].',0),null;var n=this.registry[r];if(n){var i=n.parse(t,this);if(!i)return null;if(this.expectedType){var a=this.expectedType,o=i.type;if(\"string\"!==a.kind&&\"number\"!==a.kind&&\"boolean\"!==a.kind&&\"object\"!==a.kind||\"value\"!==o.kind)if(\"array\"===a.kind&&\"value\"===o.kind)e.omitTypeAnnotations||(i=new ut(a,i));else if(\"color\"!==a.kind||\"value\"!==o.kind&&\"string\"!==o.kind){if(this.checkSubtype(this.expectedType,i.type))return null}else e.omitTypeAnnotations||(i=new ht(a,[i]));else e.omitTypeAnnotations||(i=new lt(a,[i]))}if(!(i instanceof at)&&function t(e){if(e instanceof yt)return t(e.boundExpression);if(e instanceof gt&&\"error\"===e.name)return!1;if(e instanceof rt)return!1;var r=e instanceof ht||e instanceof lt||e instanceof ut,n=!0;return e.eachChild(function(e){n=r?n&&t(e):n&&e instanceof at}),!!n&&(vt(e)&&mt(e,[\"zoom\",\"heatmap-density\",\"line-progress\",\"is-supported-script\"]))}(i)){var s=new dt;try{i=new at(i.type,i.evaluate(s))}catch(t){return this.error(t.message),null}}return i}return this.error('Unknown expression \"'+r+'\". If you wanted a literal array, use [\"literal\", [...]].',0)}return void 0===t?this.error(\"'undefined' value invalid. Use null instead.\"):\"object\"==typeof t?this.error('Bare objects invalid. Use [\"literal\", {...}] instead.'):this.error(\"Expected an array, but found \"+typeof t+\" instead.\")},xt.prototype.concat=function(t,e,r){var n=\"number\"==typeof t?this.path.concat(t):this.path,i=r?this.scope.concat(r):this.scope;return new xt(this.registry,n,e||null,i,this.errors)},xt.prototype.error=function(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];var n=\"\"+this.key+e.map(function(t){return\"[\"+t+\"]\"}).join(\"\");this.errors.push(new N(n,t))},xt.prototype.checkSubtype=function(t,e){var r=K(t,e);return r&&this.error(r),r};var _t=function(t,e,r){this.type=t,this.input=e,this.labels=[],this.outputs=[];for(var n=0,i=r;n<i.length;n+=1){var a=i[n],o=a[0],s=a[1];this.labels.push(o),this.outputs.push(s)}};function wt(t,e,r){return t*(1-r)+e*r}_t.parse=function(t,e){var r=t[1],n=t.slice(2);if(t.length-1<4)return e.error(\"Expected at least 4 arguments, but found only \"+(t.length-1)+\".\");if((t.length-1)%2!=0)return e.error(\"Expected an even number of arguments.\");if(!(r=e.parse(r,1,U)))return null;var i=[],a=null;e.expectedType&&\"value\"!==e.expectedType.kind&&(a=e.expectedType),n.unshift(-1/0);for(var o=0;o<n.length;o+=2){var s=n[o],l=n[o+1],c=o+1,u=o+2;if(\"number\"!=typeof s)return e.error('Input/output pairs for \"step\" expressions must be defined using literal numeric values (not computed expressions) for the input values.',c);if(i.length&&i[i.length-1][0]>=s)return e.error('Input/output pairs for \"step\" expressions must be arranged with input values in strictly ascending order.',c);var f=e.parse(l,u,a);if(!f)return null;a=a||f.type,i.push([s,f])}return new _t(a,r,i)},_t.prototype.evaluate=function(t){var e=this.labels,r=this.outputs;if(1===e.length)return r[0].evaluate(t);var n=this.input.evaluate(t);if(n<=e[0])return r[0].evaluate(t);var i=e.length;return n>=e[i-1]?r[i-1].evaluate(t):r[bt(e,n)].evaluate(t)},_t.prototype.eachChild=function(t){t(this.input);for(var e=0,r=this.outputs;e<r.length;e+=1)t(r[e])},_t.prototype.possibleOutputs=function(){return(t=[]).concat.apply(t,this.outputs.map(function(t){return t.possibleOutputs()}));var t},_t.prototype.serialize=function(){for(var t=[\"step\",this.input.serialize()],e=0;e<this.labels.length;e++)e>0&&t.push(this.labels[e]),t.push(this.outputs[e].serialize());return t};var kt=Object.freeze({number:wt,color:function(t,e,r){return new tt(wt(t.r,e.r,r),wt(t.g,e.g,r),wt(t.b,e.b,r),wt(t.a,e.a,r))},array:function(t,e,r){return t.map(function(t,n){return wt(t,e[n],r)})}}),Mt=function(t,e,r,n){this.type=t,this.interpolation=e,this.input=r,this.labels=[],this.outputs=[];for(var i=0,a=n;i<a.length;i+=1){var o=a[i],s=o[0],l=o[1];this.labels.push(s),this.outputs.push(l)}};function At(t,e,r,n){var i=n-r,a=t-r;return 0===i?0:1===e?a/i:(Math.pow(e,a)-1)/(Math.pow(e,i)-1)}Mt.interpolationFactor=function(t,e,r,n){var i=0;if(\"exponential\"===t.name)i=At(e,t.base,r,n);else if(\"linear\"===t.name)i=At(e,1,r,n);else if(\"cubic-bezier\"===t.name){var o=t.controlPoints;i=new a(o[0],o[1],o[2],o[3]).solve(At(e,1,r,n))}return i},Mt.parse=function(t,e){var r=t[1],n=t[2],i=t.slice(3);if(!Array.isArray(r)||0===r.length)return e.error(\"Expected an interpolation type expression.\",1);if(\"linear\"===r[0])r={name:\"linear\"};else if(\"exponential\"===r[0]){var a=r[1];if(\"number\"!=typeof a)return e.error(\"Exponential interpolation requires a numeric base.\",1,1);r={name:\"exponential\",base:a}}else{if(\"cubic-bezier\"!==r[0])return e.error(\"Unknown interpolation type \"+String(r[0]),1,0);var o=r.slice(1);if(4!==o.length||o.some(function(t){return\"number\"!=typeof t||t<0||t>1}))return e.error(\"Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.\",1);r={name:\"cubic-bezier\",controlPoints:o}}if(t.length-1<4)return e.error(\"Expected at least 4 arguments, but found only \"+(t.length-1)+\".\");if((t.length-1)%2!=0)return e.error(\"Expected an even number of arguments.\");if(!(n=e.parse(n,2,U)))return null;var s=[],l=null;e.expectedType&&\"value\"!==e.expectedType.kind&&(l=e.expectedType);for(var c=0;c<i.length;c+=2){var u=i[c],f=i[c+1],h=c+3,p=c+4;if(\"number\"!=typeof u)return e.error('Input/output pairs for \"interpolate\" expressions must be defined using literal numeric values (not computed expressions) for the input values.',h);if(s.length&&s[s.length-1][0]>=u)return e.error('Input/output pairs for \"interpolate\" expressions must be arranged with input values in strictly ascending order.',h);var d=e.parse(f,p,l);if(!d)return null;l=l||d.type,s.push([u,d])}return\"number\"===l.kind||\"color\"===l.kind||\"array\"===l.kind&&\"number\"===l.itemType.kind&&\"number\"==typeof l.N?new Mt(l,r,n,s):e.error(\"Type \"+$(l)+\" is not interpolatable.\")},Mt.prototype.evaluate=function(t){var e=this.labels,r=this.outputs;if(1===e.length)return r[0].evaluate(t);var n=this.input.evaluate(t);if(n<=e[0])return r[0].evaluate(t);var i=e.length;if(n>=e[i-1])return r[i-1].evaluate(t);var a=bt(e,n),o=e[a],s=e[a+1],l=Mt.interpolationFactor(this.interpolation,n,o,s),c=r[a].evaluate(t),u=r[a+1].evaluate(t);return kt[this.type.kind.toLowerCase()](c,u,l)},Mt.prototype.eachChild=function(t){t(this.input);for(var e=0,r=this.outputs;e<r.length;e+=1)t(r[e])},Mt.prototype.possibleOutputs=function(){return(t=[]).concat.apply(t,this.outputs.map(function(t){return t.possibleOutputs()}));var t},Mt.prototype.serialize=function(){for(var t=[\"interpolate\",\"linear\"===this.interpolation.name?[\"linear\"]:\"exponential\"===this.interpolation.name?1===this.interpolation.base?[\"linear\"]:[\"exponential\",this.interpolation.base]:[\"cubic-bezier\"].concat(this.interpolation.controlPoints),this.input.serialize()],e=0;e<this.labels.length;e++)t.push(this.labels[e],this.outputs[e].serialize());return t};var Tt=function(t,e){this.type=t,this.args=e};Tt.parse=function(t,e){if(t.length<2)return e.error(\"Expectected at least one argument.\");var r=null,n=e.expectedType;n&&\"value\"!==n.kind&&(r=n);for(var i=[],a=0,o=t.slice(1);a<o.length;a+=1){var s=o[a],l=e.parse(s,1+i.length,r,void 0,{omitTypeAnnotations:!0});if(!l)return null;r=r||l.type,i.push(l)}var c=n&&i.some(function(t){return K(n,t.type)});return new Tt(c?Y:r,i)},Tt.prototype.evaluate=function(t){for(var e=null,r=0,n=this.args;r<n.length&&null===(e=n[r].evaluate(t));r+=1);return e},Tt.prototype.eachChild=function(t){this.args.forEach(t)},Tt.prototype.possibleOutputs=function(){return(t=[]).concat.apply(t,this.args.map(function(t){return t.possibleOutputs()}));var t},Tt.prototype.serialize=function(){var t=[\"coalesce\"];return this.eachChild(function(e){t.push(e.serialize())}),t};var St=function(t,e){this.type=e.type,this.bindings=[].concat(t),this.result=e};St.prototype.evaluate=function(t){return this.result.evaluate(t)},St.prototype.eachChild=function(t){for(var e=0,r=this.bindings;e<r.length;e+=1)t(r[e][1]);t(this.result)},St.parse=function(t,e){if(t.length<4)return e.error(\"Expected at least 3 arguments, but found \"+(t.length-1)+\" instead.\");for(var r=[],n=1;n<t.length-1;n+=2){var i=t[n];if(\"string\"!=typeof i)return e.error(\"Expected string, but found \"+typeof i+\" instead.\",n);if(/[^a-zA-Z0-9_]/.test(i))return e.error(\"Variable names must contain only alphanumeric characters or '_'.\",n);var a=e.parse(t[n+1],n+1);if(!a)return null;r.push([i,a])}var o=e.parse(t[t.length-1],t.length-1,void 0,r);return o?new St(r,o):null},St.prototype.possibleOutputs=function(){return this.result.possibleOutputs()},St.prototype.serialize=function(){for(var t=[\"let\"],e=0,r=this.bindings;e<r.length;e+=1){var n=r[e],i=n[0],a=n[1];t.push(i,a.serialize())}return t.push(this.result.serialize()),t};var Et=function(t,e,r){this.type=t,this.index=e,this.input=r};Et.parse=function(t,e){if(3!==t.length)return e.error(\"Expected 2 arguments, but found \"+(t.length-1)+\" instead.\");var r=e.parse(t[1],1,U),n=e.parse(t[2],2,Z(e.expectedType||Y));if(!r||!n)return null;var i=n.type;return new Et(i.itemType,r,n)},Et.prototype.evaluate=function(t){var e=this.index.evaluate(t),r=this.input.evaluate(t);if(e<0)throw new ot(\"Array index out of bounds: \"+e+\" < 0.\");if(e>=r.length)throw new ot(\"Array index out of bounds: \"+e+\" > \"+(r.length-1)+\".\");if(e!==Math.floor(e))throw new ot(\"Array index must be an integer, but found \"+e+\" instead.\");return r[e]},Et.prototype.eachChild=function(t){t(this.index),t(this.input)},Et.prototype.possibleOutputs=function(){return[void 0]},Et.prototype.serialize=function(){return[\"at\",this.index.serialize(),this.input.serialize()]};var Ct=function(t,e,r,n,i,a){this.inputType=t,this.type=e,this.input=r,this.cases=n,this.outputs=i,this.otherwise=a};Ct.parse=function(t,e){if(t.length<5)return e.error(\"Expected at least 4 arguments, but found only \"+(t.length-1)+\".\");if(t.length%2!=1)return e.error(\"Expected an even number of arguments.\");var r,n;e.expectedType&&\"value\"!==e.expectedType.kind&&(n=e.expectedType);for(var i={},a=[],o=2;o<t.length-1;o+=2){var s=t[o],l=t[o+1];Array.isArray(s)||(s=[s]);var c=e.concat(o);if(0===s.length)return c.error(\"Expected at least one branch label.\");for(var u=0,f=s;u<f.length;u+=1){var h=f[u];if(\"number\"!=typeof h&&\"string\"!=typeof h)return c.error(\"Branch labels must be numbers or strings.\");if(\"number\"==typeof h&&Math.abs(h)>Number.MAX_SAFE_INTEGER)return c.error(\"Branch labels must be integers no larger than \"+Number.MAX_SAFE_INTEGER+\".\");if(\"number\"==typeof h&&Math.floor(h)!==h)return c.error(\"Numeric branch labels must be integer values.\");if(r){if(c.checkSubtype(r,it(h)))return null}else r=it(h);if(void 0!==i[String(h)])return c.error(\"Branch labels must be unique.\");i[String(h)]=a.length}var p=e.parse(l,o,n);if(!p)return null;n=n||p.type,a.push(p)}var d=e.parse(t[1],1,r);if(!d)return null;var g=e.parse(t[t.length-1],t.length-1,n);return g?new Ct(r,n,d,i,a,g):null},Ct.prototype.evaluate=function(t){var e=this.input.evaluate(t);return(this.outputs[this.cases[e]]||this.otherwise).evaluate(t)},Ct.prototype.eachChild=function(t){t(this.input),this.outputs.forEach(t),t(this.otherwise)},Ct.prototype.possibleOutputs=function(){return(t=[]).concat.apply(t,this.outputs.map(function(t){return t.possibleOutputs()})).concat(this.otherwise.possibleOutputs());var t},Ct.prototype.serialize=function(){for(var t=this,e=[\"match\",this.input.serialize()],r=[],n={},i=0,a=Object.keys(this.cases).sort();i<a.length;i+=1){var o=a[i],s=n[t.cases[o]];void 0===s?(n[t.cases[o]]=r.length,r.push([t.cases[o],[o]])):r[s][1].push(o)}for(var l=function(e){return\"number\"===t.input.type.kind?Number(e):e},c=0,u=r;c<u.length;c+=1){var f=u[c],h=f[0],p=f[1];1===p.length?e.push(l(p[0])):e.push(p.map(l)),e.push(t.outputs[h].serialize())}return e.push(this.otherwise.serialize()),e};var Lt=function(t,e,r){this.type=t,this.branches=e,this.otherwise=r};function zt(t){return\"string\"===t.kind||\"number\"===t.kind||\"boolean\"===t.kind||\"null\"===t.kind}function Ot(t,e){return function(){function r(t,e,r){this.type=H,this.lhs=t,this.rhs=e,this.collator=r}return r.parse=function(t,e){if(3!==t.length&&4!==t.length)return e.error(\"Expected two or three arguments.\");var n=e.parse(t[1],1,Y);if(!n)return null;var i=e.parse(t[2],2,Y);if(!i)return null;if(!zt(n.type)&&!zt(i.type))return e.error(\"Expected at least one argument to be a string, number, boolean, or null, but found (\"+$(n.type)+\", \"+$(i.type)+\") instead.\");if(n.type.kind!==i.type.kind&&\"value\"!==n.type.kind&&\"value\"!==i.type.kind)return e.error(\"Cannot compare \"+$(n.type)+\" and \"+$(i.type)+\".\");var a=null;if(4===t.length){if(\"string\"!==n.type.kind&&\"string\"!==i.type.kind)return e.error(\"Cannot use collator to compare non-string types.\");if(!(a=e.parse(t[3],3,X)))return null}return new r(n,i,a)},r.prototype.evaluate=function(t){var r=this.collator?0===this.collator.evaluate(t).compare(this.lhs.evaluate(t),this.rhs.evaluate(t)):this.lhs.evaluate(t)===this.rhs.evaluate(t);return e?!r:r},r.prototype.eachChild=function(t){t(this.lhs),t(this.rhs),this.collator&&t(this.collator)},r.prototype.possibleOutputs=function(){return[!0,!1]},r.prototype.serialize=function(){var e=[t];return this.eachChild(function(t){e.push(t.serialize())}),e},r}()}Lt.parse=function(t,e){if(t.length<4)return e.error(\"Expected at least 3 arguments, but found only \"+(t.length-1)+\".\");if(t.length%2!=0)return e.error(\"Expected an odd number of arguments.\");var r;e.expectedType&&\"value\"!==e.expectedType.kind&&(r=e.expectedType);for(var n=[],i=1;i<t.length-1;i+=2){var a=e.parse(t[i],i,H);if(!a)return null;var o=e.parse(t[i+1],i+1,r);if(!o)return null;n.push([a,o]),r=r||o.type}var s=e.parse(t[t.length-1],t.length-1,r);return s?new Lt(r,n,s):null},Lt.prototype.evaluate=function(t){for(var e=0,r=this.branches;e<r.length;e+=1){var n=r[e],i=n[0],a=n[1];if(i.evaluate(t))return a.evaluate(t)}return this.otherwise.evaluate(t)},Lt.prototype.eachChild=function(t){for(var e=0,r=this.branches;e<r.length;e+=1){var n=r[e],i=n[0],a=n[1];t(i),t(a)}t(this.otherwise)},Lt.prototype.possibleOutputs=function(){return(t=[]).concat.apply(t,this.branches.map(function(t){return t[0],t[1].possibleOutputs()})).concat(this.otherwise.possibleOutputs());var t},Lt.prototype.serialize=function(){var t=[\"case\"];return this.eachChild(function(e){t.push(e.serialize())}),t};var It=Ot(\"==\",!1),Pt=Ot(\"!=\",!0),Dt=function(t){this.type=U,this.input=t};Dt.parse=function(t,e){if(2!==t.length)return e.error(\"Expected 1 argument, but found \"+(t.length-1)+\" instead.\");var r=e.parse(t[1],1);return r?\"array\"!==r.type.kind&&\"string\"!==r.type.kind&&\"value\"!==r.type.kind?e.error(\"Expected argument of type string or array, but found \"+$(r.type)+\" instead.\"):new Dt(r):null},Dt.prototype.evaluate=function(t){var e=this.input.evaluate(t);if(\"string\"==typeof e)return e.length;if(Array.isArray(e))return e.length;throw new ot(\"Expected value to be of type string or array, but found \"+$(it(e))+\" instead.\")},Dt.prototype.eachChild=function(t){t(this.input)},Dt.prototype.possibleOutputs=function(){return[void 0]},Dt.prototype.serialize=function(){var t=[\"length\"];return this.eachChild(function(e){t.push(e.serialize())}),t};var Rt={\"==\":It,\"!=\":Pt,array:ut,at:Et,boolean:lt,case:Lt,coalesce:Tt,collator:rt,interpolate:Mt,length:Dt,let:St,literal:at,match:Ct,number:lt,object:lt,step:_t,string:lt,\"to-color\":ht,\"to-number\":ht,var:yt};function Bt(t,e){var r=e[0],n=e[1],i=e[2],a=e[3];r=r.evaluate(t),n=n.evaluate(t),i=i.evaluate(t);var o=a?a.evaluate(t):1,s=nt(r,n,i,o);if(s)throw new ot(s);return new tt(r/255*o,n/255*o,i/255*o,o)}function Ft(t,e){return t in e}function Nt(t,e){var r=e[t];return void 0===r?null:r}function jt(t,e){var r=e[0],n=e[1];return r.evaluate(t)<n.evaluate(t)}function Vt(t,e){var r=e[0],n=e[1];return r.evaluate(t)>n.evaluate(t)}function Ut(t,e){var r=e[0],n=e[1];return r.evaluate(t)<=n.evaluate(t)}function qt(t,e){var r=e[0],n=e[1];return r.evaluate(t)>=n.evaluate(t)}function Ht(t){return{type:t}}function Gt(t){return{result:\"success\",value:t}}function Wt(t){return{result:\"error\",value:t}}gt.register(Rt,{error:[{kind:\"error\"},[q],function(t,e){var r=e[0];throw new ot(r.evaluate(t))}],typeof:[q,[Y],function(t,e){return $(it(e[0].evaluate(t)))}],\"to-string\":[q,[Y],function(t,e){var r=e[0],n=typeof(r=r.evaluate(t));return null===r?\"\":\"string\"===n||\"number\"===n||\"boolean\"===n?String(r):r instanceof tt?r.toString():JSON.stringify(r)}],\"to-boolean\":[H,[Y],function(t,e){var r=e[0];return Boolean(r.evaluate(t))}],\"to-rgba\":[Z(U,4),[G],function(t,e){return e[0].evaluate(t).toArray()}],rgb:[G,[U,U,U],Bt],rgba:[G,[U,U,U,U],Bt],has:{type:H,overloads:[[[q],function(t,e){return Ft(e[0].evaluate(t),t.properties())}],[[q,W],function(t,e){var r=e[0],n=e[1];return Ft(r.evaluate(t),n.evaluate(t))}]]},get:{type:Y,overloads:[[[q],function(t,e){return Nt(e[0].evaluate(t),t.properties())}],[[q,W],function(t,e){var r=e[0],n=e[1];return Nt(r.evaluate(t),n.evaluate(t))}]]},properties:[W,[],function(t){return t.properties()}],\"geometry-type\":[q,[],function(t){return t.geometryType()}],id:[Y,[],function(t){return t.id()}],zoom:[U,[],function(t){return t.globals.zoom}],\"heatmap-density\":[U,[],function(t){return t.globals.heatmapDensity||0}],\"line-progress\":[U,[],function(t){return t.globals.lineProgress||0}],\"+\":[U,Ht(U),function(t,e){for(var r=0,n=0,i=e;n<i.length;n+=1)r+=i[n].evaluate(t);return r}],\"*\":[U,Ht(U),function(t,e){for(var r=1,n=0,i=e;n<i.length;n+=1)r*=i[n].evaluate(t);return r}],\"-\":{type:U,overloads:[[[U,U],function(t,e){var r=e[0],n=e[1];return r.evaluate(t)-n.evaluate(t)}],[[U],function(t,e){return-e[0].evaluate(t)}]]},\"/\":[U,[U,U],function(t,e){var r=e[0],n=e[1];return r.evaluate(t)/n.evaluate(t)}],\"%\":[U,[U,U],function(t,e){var r=e[0],n=e[1];return r.evaluate(t)%n.evaluate(t)}],ln2:[U,[],function(){return Math.LN2}],pi:[U,[],function(){return Math.PI}],e:[U,[],function(){return Math.E}],\"^\":[U,[U,U],function(t,e){var r=e[0],n=e[1];return Math.pow(r.evaluate(t),n.evaluate(t))}],sqrt:[U,[U],function(t,e){var r=e[0];return Math.sqrt(r.evaluate(t))}],log10:[U,[U],function(t,e){var r=e[0];return Math.log10(r.evaluate(t))}],ln:[U,[U],function(t,e){var r=e[0];return Math.log(r.evaluate(t))}],log2:[U,[U],function(t,e){var r=e[0];return Math.log2(r.evaluate(t))}],sin:[U,[U],function(t,e){var r=e[0];return Math.sin(r.evaluate(t))}],cos:[U,[U],function(t,e){var r=e[0];return Math.cos(r.evaluate(t))}],tan:[U,[U],function(t,e){var r=e[0];return Math.tan(r.evaluate(t))}],asin:[U,[U],function(t,e){var r=e[0];return Math.asin(r.evaluate(t))}],acos:[U,[U],function(t,e){var r=e[0];return Math.acos(r.evaluate(t))}],atan:[U,[U],function(t,e){var r=e[0];return Math.atan(r.evaluate(t))}],min:[U,Ht(U),function(t,e){return Math.min.apply(Math,e.map(function(e){return e.evaluate(t)}))}],max:[U,Ht(U),function(t,e){return Math.max.apply(Math,e.map(function(e){return e.evaluate(t)}))}],abs:[U,[U],function(t,e){var r=e[0];return Math.abs(r.evaluate(t))}],round:[U,[U],function(t,e){var r=e[0].evaluate(t);return r<0?-Math.round(-r):Math.round(r)}],floor:[U,[U],function(t,e){var r=e[0];return Math.floor(r.evaluate(t))}],ceil:[U,[U],function(t,e){var r=e[0];return Math.ceil(r.evaluate(t))}],\"filter-==\":[H,[q,Y],function(t,e){var r=e[0],n=e[1];return t.properties()[r.value]===n.value}],\"filter-id-==\":[H,[Y],function(t,e){var r=e[0];return t.id()===r.value}],\"filter-type-==\":[H,[q],function(t,e){var r=e[0];return t.geometryType()===r.value}],\"filter-<\":[H,[q,Y],function(t,e){var r=e[0],n=e[1],i=t.properties()[r.value],a=n.value;return typeof i==typeof a&&i<a}],\"filter-id-<\":[H,[Y],function(t,e){var r=e[0],n=t.id(),i=r.value;return typeof n==typeof i&&n<i}],\"filter->\":[H,[q,Y],function(t,e){var r=e[0],n=e[1],i=t.properties()[r.value],a=n.value;return typeof i==typeof a&&i>a}],\"filter-id->\":[H,[Y],function(t,e){var r=e[0],n=t.id(),i=r.value;return typeof n==typeof i&&n>i}],\"filter-<=\":[H,[q,Y],function(t,e){var r=e[0],n=e[1],i=t.properties()[r.value],a=n.value;return typeof i==typeof a&&i<=a}],\"filter-id-<=\":[H,[Y],function(t,e){var r=e[0],n=t.id(),i=r.value;return typeof n==typeof i&&n<=i}],\"filter->=\":[H,[q,Y],function(t,e){var r=e[0],n=e[1],i=t.properties()[r.value],a=n.value;return typeof i==typeof a&&i>=a}],\"filter-id->=\":[H,[Y],function(t,e){var r=e[0],n=t.id(),i=r.value;return typeof n==typeof i&&n>=i}],\"filter-has\":[H,[Y],function(t,e){return e[0].value in t.properties()}],\"filter-has-id\":[H,[],function(t){return null!==t.id()}],\"filter-type-in\":[H,[Z(q)],function(t,e){return e[0].value.indexOf(t.geometryType())>=0}],\"filter-id-in\":[H,[Z(Y)],function(t,e){return e[0].value.indexOf(t.id())>=0}],\"filter-in-small\":[H,[q,Z(Y)],function(t,e){var r=e[0];return e[1].value.indexOf(t.properties()[r.value])>=0}],\"filter-in-large\":[H,[q,Z(Y)],function(t,e){var r=e[0],n=e[1];return function(t,e,r,n){for(;r<=n;){var i=r+n>>1;if(e[i]===t)return!0;e[i]>t?n=i-1:r=i+1}return!1}(t.properties()[r.value],n.value,0,n.value.length-1)}],\">\":{type:H,overloads:[[[U,U],Vt],[[q,q],Vt],[[q,q,X],function(t,e){var r=e[0],n=e[1];return e[2].evaluate(t).compare(r.evaluate(t),n.evaluate(t))>0}]]},\"<\":{type:H,overloads:[[[U,U],jt],[[q,q],jt],[[q,q,X],function(t,e){var r=e[0],n=e[1];return e[2].evaluate(t).compare(r.evaluate(t),n.evaluate(t))<0}]]},\">=\":{type:H,overloads:[[[U,U],qt],[[q,q],qt],[[q,q,X],function(t,e){var r=e[0],n=e[1];return e[2].evaluate(t).compare(r.evaluate(t),n.evaluate(t))>=0}]]},\"<=\":{type:H,overloads:[[[U,U],Ut],[[q,q],Ut],[[q,q,X],function(t,e){var r=e[0],n=e[1];return e[2].evaluate(t).compare(r.evaluate(t),n.evaluate(t))<=0}]]},all:{type:H,overloads:[[[H,H],function(t,e){var r=e[0],n=e[1];return r.evaluate(t)&&n.evaluate(t)}],[Ht(H),function(t,e){for(var r=0,n=e;r<n.length;r+=1)if(!n[r].evaluate(t))return!1;return!0}]]},any:{type:H,overloads:[[[H,H],function(t,e){var r=e[0],n=e[1];return r.evaluate(t)||n.evaluate(t)}],[Ht(H),function(t,e){for(var r=0,n=e;r<n.length;r+=1)if(n[r].evaluate(t))return!0;return!1}]]},\"!\":[H,[H],function(t,e){return!e[0].evaluate(t)}],\"is-supported-script\":[H,[q],function(t,e){var r=e[0],n=t.globals&&t.globals.isSupportedScript;return!n||n(r.evaluate(t))}],upcase:[q,[q],function(t,e){return e[0].evaluate(t).toUpperCase()}],downcase:[q,[q],function(t,e){return e[0].evaluate(t).toLowerCase()}],concat:[q,Ht(q),function(t,e){return e.map(function(e){return e.evaluate(t)}).join(\"\")}],\"resolved-locale\":[q,[X],function(t,e){return e[0].evaluate(t).resolvedLocale()}]});var Yt=.95047,Xt=1,Zt=1.08883,$t=4/29,Jt=6/29,Kt=3*Jt*Jt,Qt=Jt*Jt*Jt,te=Math.PI/180,ee=180/Math.PI;function re(t){return t>Qt?Math.pow(t,1/3):t/Kt+$t}function ne(t){return t>Jt?t*t*t:Kt*(t-$t)}function ie(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function ae(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function oe(t){var e=ae(t.r),r=ae(t.g),n=ae(t.b),i=re((.4124564*e+.3575761*r+.1804375*n)/Yt),a=re((.2126729*e+.7151522*r+.072175*n)/Xt);return{l:116*a-16,a:500*(i-a),b:200*(a-re((.0193339*e+.119192*r+.9503041*n)/Zt)),alpha:t.a}}function se(t){var e=(t.l+16)/116,r=isNaN(t.a)?e:e+t.a/500,n=isNaN(t.b)?e:e-t.b/200;return e=Xt*ne(e),r=Yt*ne(r),n=Zt*ne(n),new tt(ie(3.2404542*r-1.5371385*e-.4985314*n),ie(-.969266*r+1.8760108*e+.041556*n),ie(.0556434*r-.2040259*e+1.0572252*n),t.alpha)}var le={forward:oe,reverse:se,interpolate:function(t,e,r){return{l:wt(t.l,e.l,r),a:wt(t.a,e.a,r),b:wt(t.b,e.b,r),alpha:wt(t.alpha,e.alpha,r)}}},ce={forward:function(t){var e=oe(t),r=e.l,n=e.a,i=e.b,a=Math.atan2(i,n)*ee;return{h:a<0?a+360:a,c:Math.sqrt(n*n+i*i),l:r,alpha:t.a}},reverse:function(t){var e=t.h*te,r=t.c;return se({l:t.l,a:Math.cos(e)*r,b:Math.sin(e)*r,alpha:t.alpha})},interpolate:function(t,e,r){return{h:function(t,e,r){var n=e-t;return t+r*(n>180||n<-180?n-360*Math.round(n/360):n)}(t.h,e.h,r),c:wt(t.c,e.c,r),l:wt(t.l,e.l,r),alpha:wt(t.alpha,e.alpha,r)}}},ue=Object.freeze({lab:le,hcl:ce});function fe(t){return t instanceof Number?\"number\":t instanceof String?\"string\":t instanceof Boolean?\"boolean\":Array.isArray(t)?\"array\":null===t?\"null\":typeof t}function he(t){return\"object\"==typeof t&&null!==t&&!Array.isArray(t)}function pe(t){return t}function de(t,e,r){return void 0!==t?t:void 0!==e?e:void 0!==r?r:void 0}function ge(t,e,r,n,i){return de(typeof r===i?n[r]:void 0,t.default,e.default)}function ve(t,e,r){if(\"number\"!==fe(r))return de(t.default,e.default);var n=t.stops.length;if(1===n)return t.stops[0][1];if(r<=t.stops[0][0])return t.stops[0][1];if(r>=t.stops[n-1][0])return t.stops[n-1][1];var i=xe(t.stops,r);return t.stops[i][1]}function me(t,e,r){var n=void 0!==t.base?t.base:1;if(\"number\"!==fe(r))return de(t.default,e.default);var i=t.stops.length;if(1===i)return t.stops[0][1];if(r<=t.stops[0][0])return t.stops[0][1];if(r>=t.stops[i-1][0])return t.stops[i-1][1];var a=xe(t.stops,r),o=function(t,e,r,n){var i=n-r,a=t-r;return 0===i?0:1===e?a/i:(Math.pow(e,a)-1)/(Math.pow(e,i)-1)}(r,n,t.stops[a][0],t.stops[a+1][0]),s=t.stops[a][1],l=t.stops[a+1][1],c=kt[e.type]||pe;if(t.colorSpace&&\"rgb\"!==t.colorSpace){var u=ue[t.colorSpace];c=function(t,e){return u.reverse(u.interpolate(u.forward(t),u.forward(e),o))}}return\"function\"==typeof s.evaluate?{evaluate:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var r=s.evaluate.apply(void 0,t),n=l.evaluate.apply(void 0,t);if(void 0!==r&&void 0!==n)return c(r,n,o)}}:c(s,l,o)}function ye(t,e,r){return\"color\"===e.type?r=tt.parse(r):fe(r)===e.type||\"enum\"===e.type&&e.values[r]||(r=void 0),de(r,t.default,e.default)}function xe(t,e){for(var r,n,i=0,a=t.length-1,o=0;i<=a;){if(r=t[o=Math.floor((i+a)/2)][0],n=t[o+1][0],e===r||e>r&&e<n)return o;r<e?i=o+1:r>e&&(a=o-1)}return Math.max(o-1,0)}var be=function(t,e){var r;this.expression=t,this._warningHistory={},this._defaultValue=\"color\"===(r=e).type&&he(r.default)?new tt(0,0,0,0):\"color\"===r.type?tt.parse(r.default)||null:void 0===r.default?null:r.default,\"enum\"===e.type&&(this._enumValues=e.values)};function _e(t){return Array.isArray(t)&&t.length>0&&\"string\"==typeof t[0]&&t[0]in Rt}function we(t,e){var r=new xt(Rt,[],function(t){var e={color:G,string:q,number:U,enum:q,boolean:H};return\"array\"===t.type?Z(e[t.value]||Y,t.length):e[t.type]||null}(e)),n=r.parse(t);return n?Gt(new be(n,e)):Wt(r.errors)}be.prototype.evaluateWithoutErrorHandling=function(t,e){return this._evaluator||(this._evaluator=new dt),this._evaluator.globals=t,this._evaluator.feature=e,this.expression.evaluate(this._evaluator)},be.prototype.evaluate=function(t,e){this._evaluator||(this._evaluator=new dt),this._evaluator.globals=t,this._evaluator.feature=e;try{var r=this.expression.evaluate(this._evaluator);if(null==r)return this._defaultValue;if(this._enumValues&&!(r in this._enumValues))throw new ot(\"Expected value to be one of \"+Object.keys(this._enumValues).map(function(t){return JSON.stringify(t)}).join(\", \")+\", but found \"+JSON.stringify(r)+\" instead.\");return r}catch(t){return this._warningHistory[t.message]||(this._warningHistory[t.message]=!0,\"undefined\"!=typeof console&&console.warn(t.message)),this._defaultValue}};var ke=function(t,e){this.kind=t,this._styleExpression=e};ke.prototype.evaluateWithoutErrorHandling=function(t,e){return this._styleExpression.evaluateWithoutErrorHandling(t,e)},ke.prototype.evaluate=function(t,e){return this._styleExpression.evaluate(t,e)};var Me=function(t,e,r){this.kind=t,this.zoomStops=r.labels,this._styleExpression=e,r instanceof Mt&&(this._interpolationType=r.interpolation)};function Ae(t,e){if(\"error\"===(t=we(t,e)).result)return t;var r=t.value.expression,n=vt(r);if(!n&&!e[\"property-function\"])return Wt([new N(\"\",\"property expressions not supported\")]);var i=mt(r,[\"zoom\"]);if(!i&&!1===e[\"zoom-function\"])return Wt([new N(\"\",\"zoom expressions not supported\")]);var a=function t(e){var r=null;if(e instanceof St)r=t(e.result);else if(e instanceof Tt)for(var n=0,i=e.args;n<i.length;n+=1){var a=i[n];if(r=t(a))break}else(e instanceof _t||e instanceof Mt)&&e.input instanceof gt&&\"zoom\"===e.input.name&&(r=e);return r instanceof N?r:(e.eachChild(function(e){var n=t(e);n instanceof N?r=n:!r&&n?r=new N(\"\",'\"zoom\" expression may only be used as input to a top-level \"step\" or \"interpolate\" expression.'):r&&n&&r!==n&&(r=new N(\"\",'Only one zoom-based \"step\" or \"interpolate\" subexpression may be used in an expression.'))}),r)}(r);return a||i?a instanceof N?Wt([a]):a instanceof Mt&&\"piecewise-constant\"===e.function?Wt([new N(\"\",'\"interpolate\" expressions cannot be used with this property')]):Gt(a?new Me(n?\"camera\":\"composite\",t.value,a):new ke(n?\"constant\":\"source\",t.value)):Wt([new N(\"\",'\"zoom\" expression may only be used as input to a top-level \"step\" or \"interpolate\" expression.')])}Me.prototype.evaluateWithoutErrorHandling=function(t,e){return this._styleExpression.evaluateWithoutErrorHandling(t,e)},Me.prototype.evaluate=function(t,e){return this._styleExpression.evaluate(t,e)},Me.prototype.interpolationFactor=function(t,e,r){return this._interpolationType?Mt.interpolationFactor(this._interpolationType,t,e,r):0};var Te=function(t,e){this._parameters=t,this._specification=e,R(this,function t(e,r){var n,i,a,o=\"color\"===r.type,s=e.stops&&\"object\"==typeof e.stops[0][0],l=s||void 0!==e.property,c=s||!l,u=e.type||(\"interpolated\"===r.function?\"exponential\":\"interval\");if(o&&((e=R({},e)).stops&&(e.stops=e.stops.map(function(t){return[t[0],tt.parse(t[1])]})),e.default?e.default=tt.parse(e.default):e.default=tt.parse(r.default)),e.colorSpace&&\"rgb\"!==e.colorSpace&&!ue[e.colorSpace])throw new Error(\"Unknown color space: \"+e.colorSpace);if(\"exponential\"===u)n=me;else if(\"interval\"===u)n=ve;else if(\"categorical\"===u){n=ge,i=Object.create(null);for(var f=0,h=e.stops;f<h.length;f+=1){var p=h[f];i[p[0]]=p[1]}a=typeof e.stops[0][0]}else{if(\"identity\"!==u)throw new Error('Unknown function type \"'+u+'\"');n=ye}if(s){for(var d={},g=[],v=0;v<e.stops.length;v++){var m=e.stops[v],y=m[0].zoom;void 0===d[y]&&(d[y]={zoom:y,type:e.type,property:e.property,default:e.default,stops:[]},g.push(y)),d[y].stops.push([m[0].value,m[1]])}for(var x=[],b=0,_=g;b<_.length;b+=1){var w=_[b];x.push([d[w].zoom,t(d[w],r)])}return{kind:\"composite\",interpolationFactor:Mt.interpolationFactor.bind(void 0,{name:\"linear\"}),zoomStops:x.map(function(t){return t[0]}),evaluate:function(t,n){var i=t.zoom;return me({stops:x,base:e.base},r,i).evaluate(i,n)}}}return c?{kind:\"camera\",interpolationFactor:\"exponential\"===u?Mt.interpolationFactor.bind(void 0,{name:\"exponential\",base:void 0!==e.base?e.base:1}):function(){return 0},zoomStops:e.stops.map(function(t){return t[0]}),evaluate:function(t){var o=t.zoom;return n(e,r,o,i,a)}}:{kind:\"source\",evaluate:function(t,o){var s=o&&o.properties?o.properties[e.property]:void 0;return void 0===s?de(e.default,r.default):n(e,r,s,i,a)}}}(this._parameters,this._specification))};function Se(t,e){if(he(t))return new Te(t,e);if(_e(t)){var r=Ae(t,e);if(\"error\"===r.result)throw new Error(r.value.map(function(t){return t.key+\": \"+t.message}).join(\", \"));return r.value}var n=t;return\"string\"==typeof t&&\"color\"===e.type&&(n=tt.parse(t)),{kind:\"constant\",evaluate:function(){return n}}}function Ee(t){var e=t.key,r=t.value,n=t.valueSpec||{},i=t.objectElementValidators||{},a=t.style,o=t.styleSpec,s=[],l=fe(r);if(\"object\"!==l)return[new P(e,r,\"object expected, \"+l+\" found\")];for(var c in r){var u=c.split(\".\")[0],f=n[u]||n[\"*\"],h=void 0;if(i[u])h=i[u];else if(n[u])h=Ke;else if(i[\"*\"])h=i[\"*\"];else{if(!n[\"*\"]){s.push(new P(e,r[c],'unknown property \"'+c+'\"'));continue}h=Ke}s=s.concat(h({key:(e?e+\".\":e)+c,value:r[c],valueSpec:f,style:a,styleSpec:o,object:r,objectKey:c},r))}for(var p in n)i[p]||n[p].required&&void 0===n[p].default&&void 0===r[p]&&s.push(new P(e,r,'missing required property \"'+p+'\"'));return s}function Ce(t){var e=t.value,r=t.valueSpec,n=t.style,i=t.styleSpec,a=t.key,o=t.arrayElementValidator||Ke;if(\"array\"!==fe(e))return[new P(a,e,\"array expected, \"+fe(e)+\" found\")];if(r.length&&e.length!==r.length)return[new P(a,e,\"array length \"+r.length+\" expected, length \"+e.length+\" found\")];if(r[\"min-length\"]&&e.length<r[\"min-length\"])return[new P(a,e,\"array length at least \"+r[\"min-length\"]+\" expected, length \"+e.length+\" found\")];var s={type:r.value};i.$version<7&&(s.function=r.function),\"object\"===fe(r.value)&&(s=r.value);for(var l=[],c=0;c<e.length;c++)l=l.concat(o({array:e,arrayIndex:c,value:e[c],valueSpec:s,style:n,styleSpec:i,key:a+\"[\"+c+\"]\"}));return l}function Le(t){var e=t.key,r=t.value,n=t.valueSpec,i=fe(r);return\"number\"!==i?[new P(e,r,\"number expected, \"+i+\" found\")]:\"minimum\"in n&&r<n.minimum?[new P(e,r,r+\" is less than the minimum value \"+n.minimum)]:\"maximum\"in n&&r>n.maximum?[new P(e,r,r+\" is greater than the maximum value \"+n.maximum)]:[]}function ze(t){var e,r,n,i=t.valueSpec,a=B(t.value.type),o={},s=\"categorical\"!==a&&void 0===t.value.property,l=!s,c=\"array\"===fe(t.value.stops)&&\"array\"===fe(t.value.stops[0])&&\"object\"===fe(t.value.stops[0][0]),u=Ee({key:t.key,value:t.value,valueSpec:t.styleSpec.function,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{stops:function(t){if(\"identity\"===a)return[new P(t.key,t.value,'identity function may not have a \"stops\" property')];var e=[],r=t.value;return e=e.concat(Ce({key:t.key,value:r,valueSpec:t.valueSpec,style:t.style,styleSpec:t.styleSpec,arrayElementValidator:f})),\"array\"===fe(r)&&0===r.length&&e.push(new P(t.key,r,\"array must have at least one stop\")),e},default:function(t){return Ke({key:t.key,value:t.value,valueSpec:i,style:t.style,styleSpec:t.styleSpec})}}});return\"identity\"===a&&s&&u.push(new P(t.key,t.value,'missing required property \"property\"')),\"identity\"===a||t.value.stops||u.push(new P(t.key,t.value,'missing required property \"stops\"')),\"exponential\"===a&&\"piecewise-constant\"===t.valueSpec.function&&u.push(new P(t.key,t.value,\"exponential functions not supported\")),t.styleSpec.$version>=8&&(l&&!t.valueSpec[\"property-function\"]?u.push(new P(t.key,t.value,\"property functions not supported\")):s&&!t.valueSpec[\"zoom-function\"]&&\"heatmap-color\"!==t.objectKey&&\"line-gradient\"!==t.objectKey&&u.push(new P(t.key,t.value,\"zoom functions not supported\"))),\"categorical\"!==a&&!c||void 0!==t.value.property||u.push(new P(t.key,t.value,'\"property\" property is required')),u;function f(t){var e=[],a=t.value,s=t.key;if(\"array\"!==fe(a))return[new P(s,a,\"array expected, \"+fe(a)+\" found\")];if(2!==a.length)return[new P(s,a,\"array length 2 expected, length \"+a.length+\" found\")];if(c){if(\"object\"!==fe(a[0]))return[new P(s,a,\"object expected, \"+fe(a[0])+\" found\")];if(void 0===a[0].zoom)return[new P(s,a,\"object stop key must have zoom\")];if(void 0===a[0].value)return[new P(s,a,\"object stop key must have value\")];if(n&&n>B(a[0].zoom))return[new P(s,a[0].zoom,\"stop zoom values must appear in ascending order\")];B(a[0].zoom)!==n&&(n=B(a[0].zoom),r=void 0,o={}),e=e.concat(Ee({key:s+\"[0]\",value:a[0],valueSpec:{zoom:{}},style:t.style,styleSpec:t.styleSpec,objectElementValidators:{zoom:Le,value:h}}))}else e=e.concat(h({key:s+\"[0]\",value:a[0],valueSpec:{},style:t.style,styleSpec:t.styleSpec},a));return e.concat(Ke({key:s+\"[1]\",value:a[1],valueSpec:i,style:t.style,styleSpec:t.styleSpec}))}function h(t,n){var s=fe(t.value),l=B(t.value),c=null!==t.value?t.value:n;if(e){if(s!==e)return[new P(t.key,c,s+\" stop domain type must match previous stop domain type \"+e)]}else e=s;if(\"number\"!==s&&\"string\"!==s&&\"boolean\"!==s)return[new P(t.key,c,\"stop domain value must be a number, string, or boolean\")];if(\"number\"!==s&&\"categorical\"!==a){var u=\"number expected, \"+s+\" found\";return i[\"property-function\"]&&void 0===a&&(u+='\\nIf you intended to use a categorical function, specify `\"type\": \"categorical\"`.'),[new P(t.key,c,u)]}return\"categorical\"!==a||\"number\"!==s||isFinite(l)&&Math.floor(l)===l?\"categorical\"!==a&&\"number\"===s&&void 0!==r&&l<r?[new P(t.key,c,\"stop domain values must appear in ascending order\")]:(r=l,\"categorical\"===a&&l in o?[new P(t.key,c,\"stop domain values must be unique\")]:(o[l]=!0,[])):[new P(t.key,c,\"integer expected, found \"+l)]}}function Oe(t){var e=(\"property\"===t.expressionContext?Ae:we)(F(t.value),t.valueSpec);return\"error\"===e.result?e.value.map(function(e){return new P(\"\"+t.key+e.key,t.value,e.message)}):\"property\"===t.expressionContext&&\"text-font\"===t.propertyKey&&-1!==e.value._styleExpression.expression.possibleOutputs().indexOf(void 0)?[new P(t.key,t.value,'Invalid data expression for \"text-font\". Output values must be contained as literals within the expression.')]:[]}function Ie(t){var e=t.key,r=t.value,n=t.valueSpec,i=[];return Array.isArray(n.values)?-1===n.values.indexOf(B(r))&&i.push(new P(e,r,\"expected one of [\"+n.values.join(\", \")+\"], \"+JSON.stringify(r)+\" found\")):-1===Object.keys(n.values).indexOf(B(r))&&i.push(new P(e,r,\"expected one of [\"+Object.keys(n.values).join(\", \")+\"], \"+JSON.stringify(r)+\" found\")),i}function Pe(t){if(!Array.isArray(t)||0===t.length)return!1;switch(t[0]){case\"has\":return t.length>=2&&\"$id\"!==t[1]&&\"$type\"!==t[1];case\"in\":case\"!in\":case\"!has\":case\"none\":return!1;case\"==\":case\"!=\":case\">\":case\">=\":case\"<\":case\"<=\":return 3===t.length&&(Array.isArray(t[1])||Array.isArray(t[2]));case\"any\":case\"all\":for(var e=0,r=t.slice(1);e<r.length;e+=1){var n=r[e];if(!Pe(n)&&\"boolean\"!=typeof n)return!1}return!0;default:return!0}}Te.deserialize=function(t){return new Te(t._parameters,t._specification)},Te.serialize=function(t){return{_parameters:t._parameters,_specification:t._specification}};var De={type:\"boolean\",default:!1,function:!0,\"property-function\":!0,\"zoom-function\":!0};function Re(t){if(!t)return function(){return!0};Pe(t)||(t=Fe(t));var e=we(t,De);if(\"error\"===e.result)throw new Error(e.value.map(function(t){return t.key+\": \"+t.message}).join(\", \"));return function(t,r){return e.value.evaluate(t,r)}}function Be(t,e){return t<e?-1:t>e?1:0}function Fe(t){if(!t)return!0;var e,r=t[0];return t.length<=1?\"any\"!==r:\"==\"===r?Ne(t[1],t[2],\"==\"):\"!=\"===r?Ue(Ne(t[1],t[2],\"==\")):\"<\"===r||\">\"===r||\"<=\"===r||\">=\"===r?Ne(t[1],t[2],r):\"any\"===r?(e=t.slice(1),[\"any\"].concat(e.map(Fe))):\"all\"===r?[\"all\"].concat(t.slice(1).map(Fe)):\"none\"===r?[\"all\"].concat(t.slice(1).map(Fe).map(Ue)):\"in\"===r?je(t[1],t.slice(2)):\"!in\"===r?Ue(je(t[1],t.slice(2))):\"has\"===r?Ve(t[1]):\"!has\"!==r||Ue(Ve(t[1]))}function Ne(t,e,r){switch(t){case\"$type\":return[\"filter-type-\"+r,e];case\"$id\":return[\"filter-id-\"+r,e];default:return[\"filter-\"+r,t,e]}}function je(t,e){if(0===e.length)return!1;switch(t){case\"$type\":return[\"filter-type-in\",[\"literal\",e]];case\"$id\":return[\"filter-id-in\",[\"literal\",e]];default:return e.length>200&&!e.some(function(t){return typeof t!=typeof e[0]})?[\"filter-in-large\",t,[\"literal\",e.sort(Be)]]:[\"filter-in-small\",t,[\"literal\",e]]}}function Ve(t){switch(t){case\"$type\":return!0;case\"$id\":return[\"filter-has-id\"];default:return[\"filter-has\",t]}}function Ue(t){return[\"!\",t]}function qe(t){return Pe(F(t.value))?Oe(R({},t,{expressionContext:\"filter\",valueSpec:{value:\"boolean\"}})):function t(e){var r=e.value,n=e.key;if(\"array\"!==fe(r))return[new P(n,r,\"array expected, \"+fe(r)+\" found\")];var i,a=e.styleSpec,o=[];if(r.length<1)return[new P(n,r,\"filter array must have at least 1 element\")];switch(o=o.concat(Ie({key:n+\"[0]\",value:r[0],valueSpec:a.filter_operator,style:e.style,styleSpec:e.styleSpec})),B(r[0])){case\"<\":case\"<=\":case\">\":case\">=\":r.length>=2&&\"$type\"===B(r[1])&&o.push(new P(n,r,'\"$type\" cannot be use with operator \"'+r[0]+'\"'));case\"==\":case\"!=\":3!==r.length&&o.push(new P(n,r,'filter array for operator \"'+r[0]+'\" must have 3 elements'));case\"in\":case\"!in\":r.length>=2&&\"string\"!==(i=fe(r[1]))&&o.push(new P(n+\"[1]\",r[1],\"string expected, \"+i+\" found\"));for(var s=2;s<r.length;s++)i=fe(r[s]),\"$type\"===B(r[1])?o=o.concat(Ie({key:n+\"[\"+s+\"]\",value:r[s],valueSpec:a.geometry_type,style:e.style,styleSpec:e.styleSpec})):\"string\"!==i&&\"number\"!==i&&\"boolean\"!==i&&o.push(new P(n+\"[\"+s+\"]\",r[s],\"string, number, or boolean expected, \"+i+\" found\"));break;case\"any\":case\"all\":case\"none\":for(var l=1;l<r.length;l++)o=o.concat(t({key:n+\"[\"+l+\"]\",value:r[l],style:e.style,styleSpec:e.styleSpec}));break;case\"has\":case\"!has\":i=fe(r[1]),2!==r.length?o.push(new P(n,r,'filter array for \"'+r[0]+'\" operator must have 2 elements')):\"string\"!==i&&o.push(new P(n+\"[1]\",r[1],\"string expected, \"+i+\" found\"))}return o}(t)}function He(t,e){var r=t.key,n=t.style,i=t.styleSpec,a=t.value,o=t.objectKey,s=i[e+\"_\"+t.layerType];if(!s)return[];var l=o.match(/^(.*)-transition$/);if(\"paint\"===e&&l&&s[l[1]]&&s[l[1]].transition)return Ke({key:r,value:a,valueSpec:i.transition,style:n,styleSpec:i});var c,u=t.valueSpec||s[o];if(!u)return[new P(r,a,'unknown property \"'+o+'\"')];if(\"string\"===fe(a)&&u[\"property-function\"]&&!u.tokens&&(c=/^{([^}]+)}$/.exec(a)))return[new P(r,a,'\"'+o+'\" does not support interpolation syntax\\nUse an identity property function instead: `{ \"type\": \"identity\", \"property\": '+JSON.stringify(c[1])+\" }`.\")];var f=[];return\"symbol\"===t.layerType&&(\"text-field\"===o&&n&&!n.glyphs&&f.push(new P(r,a,'use of \"text-field\" requires a style \"glyphs\" property')),\"text-font\"===o&&he(F(a))&&\"identity\"===B(a.type)&&f.push(new P(r,a,'\"text-font\" does not support identity functions'))),f.concat(Ke({key:t.key,value:a,valueSpec:u,style:n,styleSpec:i,expressionContext:\"property\",propertyKey:o}))}function Ge(t){return He(t,\"paint\")}function We(t){return He(t,\"layout\")}function Ye(t){var e=[],r=t.value,n=t.key,i=t.style,a=t.styleSpec;r.type||r.ref||e.push(new P(n,r,'either \"type\" or \"ref\" is required'));var o,s=B(r.type),l=B(r.ref);if(r.id)for(var c=B(r.id),u=0;u<t.arrayIndex;u++){var f=i.layers[u];B(f.id)===c&&e.push(new P(n,r.id,'duplicate layer id \"'+r.id+'\", previously used at line '+f.id.__line__))}if(\"ref\"in r)[\"type\",\"source\",\"source-layer\",\"filter\",\"layout\"].forEach(function(t){t in r&&e.push(new P(n,r[t],'\"'+t+'\" is prohibited for ref layers'))}),i.layers.forEach(function(t){B(t.id)===l&&(o=t)}),o?o.ref?e.push(new P(n,r.ref,\"ref cannot reference another ref layer\")):s=B(o.type):e.push(new P(n,r.ref,'ref layer \"'+l+'\" not found'));else if(\"background\"!==s)if(r.source){var h=i.sources&&i.sources[r.source],p=h&&B(h.type);h?\"vector\"===p&&\"raster\"===s?e.push(new P(n,r.source,'layer \"'+r.id+'\" requires a raster source')):\"raster\"===p&&\"raster\"!==s?e.push(new P(n,r.source,'layer \"'+r.id+'\" requires a vector source')):\"vector\"!==p||r[\"source-layer\"]?\"raster-dem\"===p&&\"hillshade\"!==s?e.push(new P(n,r.source,\"raster-dem source can only be used with layer type 'hillshade'.\")):\"line\"!==s||!r.paint||!r.paint[\"line-gradient\"]||\"geojson\"===p&&h.lineMetrics||e.push(new P(n,r,'layer \"'+r.id+'\" specifies a line-gradient, which requires a GeoJSON source with `lineMetrics` enabled.')):e.push(new P(n,r,'layer \"'+r.id+'\" must specify a \"source-layer\"')):e.push(new P(n,r.source,'source \"'+r.source+'\" not found'))}else e.push(new P(n,r,'missing required property \"source\"'));return e=e.concat(Ee({key:n,value:r,valueSpec:a.layer,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{\"*\":function(){return[]},type:function(){return Ke({key:n+\".type\",value:r.type,valueSpec:a.layer.type,style:t.style,styleSpec:t.styleSpec,object:r,objectKey:\"type\"})},filter:qe,layout:function(t){return Ee({layer:r,key:t.key,value:t.value,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{\"*\":function(t){return We(R({layerType:s},t))}}})},paint:function(t){return Ee({layer:r,key:t.key,value:t.value,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{\"*\":function(t){return Ge(R({layerType:s},t))}}})}}}))}function Xe(t){var e=t.value,r=t.key,n=t.styleSpec,i=t.style;if(!e.type)return[new P(r,e,'\"type\" is required')];var a=B(e.type),o=[];switch(a){case\"vector\":case\"raster\":case\"raster-dem\":if(o=o.concat(Ee({key:r,value:e,valueSpec:n[\"source_\"+a.replace(\"-\",\"_\")],style:t.style,styleSpec:n})),\"url\"in e)for(var s in e)[\"type\",\"url\",\"tileSize\"].indexOf(s)<0&&o.push(new P(r+\".\"+s,e[s],'a source with a \"url\" property may not include a \"'+s+'\" property'));return o;case\"geojson\":return Ee({key:r,value:e,valueSpec:n.source_geojson,style:i,styleSpec:n});case\"video\":return Ee({key:r,value:e,valueSpec:n.source_video,style:i,styleSpec:n});case\"image\":return Ee({key:r,value:e,valueSpec:n.source_image,style:i,styleSpec:n});case\"canvas\":return o.push(new P(r,null,\"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.\",\"source.canvas\")),o;default:return Ie({key:r+\".type\",value:e.type,valueSpec:{values:[\"vector\",\"raster\",\"raster-dem\",\"geojson\",\"video\",\"image\"]},style:i,styleSpec:n})}}function Ze(t){var e=t.value,r=t.styleSpec,n=r.light,i=t.style,a=[],o=fe(e);if(void 0===e)return a;if(\"object\"!==o)return a.concat([new P(\"light\",e,\"object expected, \"+o+\" found\")]);for(var s in e){var l=s.match(/^(.*)-transition$/);a=l&&n[l[1]]&&n[l[1]].transition?a.concat(Ke({key:s,value:e[s],valueSpec:r.transition,style:i,styleSpec:r})):n[s]?a.concat(Ke({key:s,value:e[s],valueSpec:n[s],style:i,styleSpec:r})):a.concat([new P(s,e[s],'unknown property \"'+s+'\"')])}return a}function $e(t){var e=t.value,r=t.key,n=fe(e);return\"string\"!==n?[new P(r,e,\"string expected, \"+n+\" found\")]:[]}var Je={\"*\":function(){return[]},array:Ce,boolean:function(t){var e=t.value,r=t.key,n=fe(e);return\"boolean\"!==n?[new P(r,e,\"boolean expected, \"+n+\" found\")]:[]},number:Le,color:function(t){var e=t.key,r=t.value,n=fe(r);return\"string\"!==n?[new P(e,r,\"color expected, \"+n+\" found\")]:null===Q(r)?[new P(e,r,'color expected, \"'+r+'\" found')]:[]},constants:D,enum:Ie,filter:qe,function:ze,layer:Ye,object:Ee,source:Xe,light:Ze,string:$e};function Ke(t){var e=t.value,r=t.valueSpec,n=t.styleSpec;return r.function&&he(B(e))?ze(t):r.function&&_e(F(e))?Oe(t):r.type&&Je[r.type]?Je[r.type](t):Ee(R({},t,{valueSpec:r.type?n[r.type]:r}))}function Qe(t){var e=t.value,r=t.key,n=$e(t);return n.length?n:(-1===e.indexOf(\"{fontstack}\")&&n.push(new P(r,e,'\"glyphs\" url must include a \"{fontstack}\" token')),-1===e.indexOf(\"{range}\")&&n.push(new P(r,e,'\"glyphs\" url must include a \"{range}\" token')),n)}function tr(t,e){e=e||I;var r=[];return r=r.concat(Ke({key:\"\",value:t,valueSpec:e.$root,styleSpec:e,style:t,objectElementValidators:{glyphs:Qe,\"*\":function(){return[]}}})),t.constants&&(r=r.concat(D({key:\"constants\",value:t.constants,style:t,styleSpec:e}))),er(r)}function er(t){return[].concat(t).sort(function(t,e){return t.line-e.line})}function rr(t){return function(){return er(t.apply(this,arguments))}}tr.source=rr(Xe),tr.light=rr(Ze),tr.layer=rr(Ye),tr.filter=rr(qe),tr.paintProperty=rr(Ge),tr.layoutProperty=rr(We);var nr=tr,ir=tr.light,ar=tr.paintProperty,or=tr.layoutProperty;function sr(t,e){var r=!1;if(e&&e.length)for(var n=0,i=e;n<i.length;n+=1){var a=i[n];t.fire(new z(new Error(a.message))),r=!0}return r}var lr=ur,cr=3;function ur(t,e,r){var n=this.cells=[];if(t instanceof ArrayBuffer){this.arrayBuffer=t;var i=new Int32Array(this.arrayBuffer);t=i[0],e=i[1],r=i[2],this.d=e+2*r;for(var a=0;a<this.d*this.d;a++){var o=i[cr+a],s=i[cr+a+1];n.push(o===s?null:i.subarray(o,s))}var l=i[cr+n.length],c=i[cr+n.length+1];this.keys=i.subarray(l,c),this.bboxes=i.subarray(c),this.insert=this._insertReadonly}else{this.d=e+2*r;for(var u=0;u<this.d*this.d;u++)n.push([]);this.keys=[],this.bboxes=[]}this.n=e,this.extent=t,this.padding=r,this.scale=e/t,this.uid=0;var f=r/e*t;this.min=-f,this.max=t+f}ur.prototype.insert=function(t,e,r,n,i){this._forEachCell(e,r,n,i,this._insertCell,this.uid++),this.keys.push(t),this.bboxes.push(e),this.bboxes.push(r),this.bboxes.push(n),this.bboxes.push(i)},ur.prototype._insertReadonly=function(){throw\"Cannot insert into a GridIndex created from an ArrayBuffer.\"},ur.prototype._insertCell=function(t,e,r,n,i,a){this.cells[i].push(a)},ur.prototype.query=function(t,e,r,n){var i=this.min,a=this.max;if(t<=i&&e<=i&&a<=r&&a<=n)return Array.prototype.slice.call(this.keys);var o=[];return this._forEachCell(t,e,r,n,this._queryCell,o,{}),o},ur.prototype._queryCell=function(t,e,r,n,i,a,o){var s=this.cells[i];if(null!==s)for(var l=this.keys,c=this.bboxes,u=0;u<s.length;u++){var f=s[u];if(void 0===o[f]){var h=4*f;t<=c[h+2]&&e<=c[h+3]&&r>=c[h+0]&&n>=c[h+1]?(o[f]=!0,a.push(l[f])):o[f]=!1}}},ur.prototype._forEachCell=function(t,e,r,n,i,a,o){for(var s=this._convertToCellCoord(t),l=this._convertToCellCoord(e),c=this._convertToCellCoord(r),u=this._convertToCellCoord(n),f=s;f<=c;f++)for(var h=l;h<=u;h++){var p=this.d*h+f;if(i.call(this,t,e,r,n,p,a,o))return}},ur.prototype._convertToCellCoord=function(t){return Math.max(0,Math.min(this.d-1,Math.floor(t*this.scale)+this.padding))},ur.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var t=this.cells,e=cr+this.cells.length+1+1,r=0,n=0;n<this.cells.length;n++)r+=this.cells[n].length;var i=new Int32Array(e+r+this.keys.length+this.bboxes.length);i[0]=this.extent,i[1]=this.n,i[2]=this.padding;for(var a=e,o=0;o<t.length;o++){var s=t[o];i[cr+o]=a,i.set(s,a),a+=s.length}return i[cr+t.length]=a,i.set(this.keys,a),a+=this.keys.length,i[cr+t.length+1]=a,i.set(this.bboxes,a),a+=this.bboxes.length,i.buffer};var fr=self.ImageData,hr={};function pr(t,e,r){void 0===r&&(r={}),Object.defineProperty(e,\"_classRegistryKey\",{value:t,writeable:!1}),hr[t]={klass:e,omit:r.omit||[],shallow:r.shallow||[]}}for(var dr in pr(\"Object\",Object),lr.serialize=function(t,e){var r=t.toArrayBuffer();return e&&e.push(r),r},lr.deserialize=function(t){return new lr(t)},pr(\"Grid\",lr),pr(\"Color\",tt),pr(\"Error\",Error),pr(\"StylePropertyFunction\",Te),pr(\"StyleExpression\",be,{omit:[\"_evaluator\"]}),pr(\"ZoomDependentExpression\",Me),pr(\"ZoomConstantExpression\",ke),pr(\"CompoundExpression\",gt,{omit:[\"_evaluate\"]}),Rt)Rt[dr]._classRegistryKey||pr(\"Expression_\"+dr,Rt[dr]);function gr(t,e){if(null==t||\"boolean\"==typeof t||\"number\"==typeof t||\"string\"==typeof t||t instanceof Boolean||t instanceof Number||t instanceof String||t instanceof Date||t instanceof RegExp)return t;if(t instanceof ArrayBuffer)return e&&e.push(t),t;if(ArrayBuffer.isView(t)){var r=t;return e&&e.push(r.buffer),r}if(t instanceof fr)return e&&e.push(t.data.buffer),t;if(Array.isArray(t)){for(var n=[],i=0,a=t;i<a.length;i+=1){var o=a[i];n.push(gr(o,e))}return n}if(\"object\"==typeof t){var s=t.constructor,l=s._classRegistryKey;if(!l)throw new Error(\"can't serialize object of unregistered class\");var c={};if(s.serialize)c._serialized=s.serialize(t,e);else{for(var u in t)if(t.hasOwnProperty(u)&&!(hr[l].omit.indexOf(u)>=0)){var f=t[u];c[u]=hr[l].shallow.indexOf(u)>=0?f:gr(f,e)}t instanceof Error&&(c.message=t.message)}return{name:l,properties:c}}throw new Error(\"can't serialize object of type \"+typeof t)}function vr(t){if(null==t||\"boolean\"==typeof t||\"number\"==typeof t||\"string\"==typeof t||t instanceof Boolean||t instanceof Number||t instanceof String||t instanceof Date||t instanceof RegExp||t instanceof ArrayBuffer||ArrayBuffer.isView(t)||t instanceof fr)return t;if(Array.isArray(t))return t.map(function(t){return vr(t)});if(\"object\"==typeof t){var e=t,r=e.name,n=e.properties;if(!r)throw new Error(\"can't deserialize object of anonymous class\");var i=hr[r].klass;if(!i)throw new Error(\"can't deserialize unregistered class \"+r);if(i.deserialize)return i.deserialize(n._serialized);for(var a=Object.create(i.prototype),o=0,s=Object.keys(n);o<s.length;o+=1){var l=s[o];a[l]=hr[r].shallow.indexOf(l)>=0?n[l]:vr(n[l])}return a}throw new Error(\"can't deserialize object of type \"+typeof t)}var mr=function(){this.first=!0};mr.prototype.update=function(t,e){var r=Math.floor(t);return this.first?(this.first=!1,this.lastIntegerZoom=r,this.lastIntegerZoomTime=0,this.lastZoom=t,this.lastFloorZoom=r,!0):(this.lastFloorZoom>r?(this.lastIntegerZoom=r+1,this.lastIntegerZoomTime=e):this.lastFloorZoom<r&&(this.lastIntegerZoom=r,this.lastIntegerZoomTime=e),t!==this.lastZoom&&(this.lastZoom=t,this.lastFloorZoom=r,!0))};var yr={\"Latin-1 Supplement\":function(t){return t>=128&&t<=255},Arabic:function(t){return t>=1536&&t<=1791},\"Arabic Supplement\":function(t){return t>=1872&&t<=1919},\"Arabic Extended-A\":function(t){return t>=2208&&t<=2303},\"Hangul Jamo\":function(t){return t>=4352&&t<=4607},\"Unified Canadian Aboriginal Syllabics\":function(t){return t>=5120&&t<=5759},Khmer:function(t){return t>=6016&&t<=6143},\"Unified Canadian Aboriginal Syllabics Extended\":function(t){return t>=6320&&t<=6399},\"General Punctuation\":function(t){return t>=8192&&t<=8303},\"Letterlike Symbols\":function(t){return t>=8448&&t<=8527},\"Number Forms\":function(t){return t>=8528&&t<=8591},\"Miscellaneous Technical\":function(t){return t>=8960&&t<=9215},\"Control Pictures\":function(t){return t>=9216&&t<=9279},\"Optical Character Recognition\":function(t){return t>=9280&&t<=9311},\"Enclosed Alphanumerics\":function(t){return t>=9312&&t<=9471},\"Geometric Shapes\":function(t){return t>=9632&&t<=9727},\"Miscellaneous Symbols\":function(t){return t>=9728&&t<=9983},\"Miscellaneous Symbols and Arrows\":function(t){return t>=11008&&t<=11263},\"CJK Radicals Supplement\":function(t){return t>=11904&&t<=12031},\"Kangxi Radicals\":function(t){return t>=12032&&t<=12255},\"Ideographic Description Characters\":function(t){return t>=12272&&t<=12287},\"CJK Symbols and Punctuation\":function(t){return t>=12288&&t<=12351},Hiragana:function(t){return t>=12352&&t<=12447},Katakana:function(t){return t>=12448&&t<=12543},Bopomofo:function(t){return t>=12544&&t<=12591},\"Hangul Compatibility Jamo\":function(t){return t>=12592&&t<=12687},Kanbun:function(t){return t>=12688&&t<=12703},\"Bopomofo Extended\":function(t){return t>=12704&&t<=12735},\"CJK Strokes\":function(t){return t>=12736&&t<=12783},\"Katakana Phonetic Extensions\":function(t){return t>=12784&&t<=12799},\"Enclosed CJK Letters and Months\":function(t){return t>=12800&&t<=13055},\"CJK Compatibility\":function(t){return t>=13056&&t<=13311},\"CJK Unified Ideographs Extension A\":function(t){return t>=13312&&t<=19903},\"Yijing Hexagram Symbols\":function(t){return t>=19904&&t<=19967},\"CJK Unified Ideographs\":function(t){return t>=19968&&t<=40959},\"Yi Syllables\":function(t){return t>=40960&&t<=42127},\"Yi Radicals\":function(t){return t>=42128&&t<=42191},\"Hangul Jamo Extended-A\":function(t){return t>=43360&&t<=43391},\"Hangul Syllables\":function(t){return t>=44032&&t<=55215},\"Hangul Jamo Extended-B\":function(t){return t>=55216&&t<=55295},\"Private Use Area\":function(t){return t>=57344&&t<=63743},\"CJK Compatibility Ideographs\":function(t){return t>=63744&&t<=64255},\"Arabic Presentation Forms-A\":function(t){return t>=64336&&t<=65023},\"Vertical Forms\":function(t){return t>=65040&&t<=65055},\"CJK Compatibility Forms\":function(t){return t>=65072&&t<=65103},\"Small Form Variants\":function(t){return t>=65104&&t<=65135},\"Arabic Presentation Forms-B\":function(t){return t>=65136&&t<=65279},\"Halfwidth and Fullwidth Forms\":function(t){return t>=65280&&t<=65519}};function xr(t){for(var e=0,r=t;e<r.length;e+=1)if(_r(r[e].charCodeAt(0)))return!0;return!1}function br(t){return!(yr.Arabic(t)||yr[\"Arabic Supplement\"](t)||yr[\"Arabic Extended-A\"](t)||yr[\"Arabic Presentation Forms-A\"](t)||yr[\"Arabic Presentation Forms-B\"](t))}function _r(t){return!!(746===t||747===t||!(t<4352)&&(yr[\"Bopomofo Extended\"](t)||yr.Bopomofo(t)||yr[\"CJK Compatibility Forms\"](t)&&!(t>=65097&&t<=65103)||yr[\"CJK Compatibility Ideographs\"](t)||yr[\"CJK Compatibility\"](t)||yr[\"CJK Radicals Supplement\"](t)||yr[\"CJK Strokes\"](t)||!(!yr[\"CJK Symbols and Punctuation\"](t)||t>=12296&&t<=12305||t>=12308&&t<=12319||12336===t)||yr[\"CJK Unified Ideographs Extension A\"](t)||yr[\"CJK Unified Ideographs\"](t)||yr[\"Enclosed CJK Letters and Months\"](t)||yr[\"Hangul Compatibility Jamo\"](t)||yr[\"Hangul Jamo Extended-A\"](t)||yr[\"Hangul Jamo Extended-B\"](t)||yr[\"Hangul Jamo\"](t)||yr[\"Hangul Syllables\"](t)||yr.Hiragana(t)||yr[\"Ideographic Description Characters\"](t)||yr.Kanbun(t)||yr[\"Kangxi Radicals\"](t)||yr[\"Katakana Phonetic Extensions\"](t)||yr.Katakana(t)&&12540!==t||!(!yr[\"Halfwidth and Fullwidth Forms\"](t)||65288===t||65289===t||65293===t||t>=65306&&t<=65310||65339===t||65341===t||65343===t||t>=65371&&t<=65503||65507===t||t>=65512&&t<=65519)||!(!yr[\"Small Form Variants\"](t)||t>=65112&&t<=65118||t>=65123&&t<=65126)||yr[\"Unified Canadian Aboriginal Syllabics\"](t)||yr[\"Unified Canadian Aboriginal Syllabics Extended\"](t)||yr[\"Vertical Forms\"](t)||yr[\"Yijing Hexagram Symbols\"](t)||yr[\"Yi Syllables\"](t)||yr[\"Yi Radicals\"](t)))}function wr(t){return!(_r(t)||function(t){return!!(yr[\"Latin-1 Supplement\"](t)&&(167===t||169===t||174===t||177===t||188===t||189===t||190===t||215===t||247===t)||yr[\"General Punctuation\"](t)&&(8214===t||8224===t||8225===t||8240===t||8241===t||8251===t||8252===t||8258===t||8263===t||8264===t||8265===t||8273===t)||yr[\"Letterlike Symbols\"](t)||yr[\"Number Forms\"](t)||yr[\"Miscellaneous Technical\"](t)&&(t>=8960&&t<=8967||t>=8972&&t<=8991||t>=8996&&t<=9e3||9003===t||t>=9085&&t<=9114||t>=9150&&t<=9165||9167===t||t>=9169&&t<=9179||t>=9186&&t<=9215)||yr[\"Control Pictures\"](t)&&9251!==t||yr[\"Optical Character Recognition\"](t)||yr[\"Enclosed Alphanumerics\"](t)||yr[\"Geometric Shapes\"](t)||yr[\"Miscellaneous Symbols\"](t)&&!(t>=9754&&t<=9759)||yr[\"Miscellaneous Symbols and Arrows\"](t)&&(t>=11026&&t<=11055||t>=11088&&t<=11097||t>=11192&&t<=11243)||yr[\"CJK Symbols and Punctuation\"](t)||yr.Katakana(t)||yr[\"Private Use Area\"](t)||yr[\"CJK Compatibility Forms\"](t)||yr[\"Small Form Variants\"](t)||yr[\"Halfwidth and Fullwidth Forms\"](t)||8734===t||8756===t||8757===t||t>=9984&&t<=10087||t>=10102&&t<=10131||65532===t||65533===t)}(t))}function kr(t,e){return!(!e&&(t>=1424&&t<=2303||yr[\"Arabic Presentation Forms-A\"](t)||yr[\"Arabic Presentation Forms-B\"](t))||t>=2304&&t<=3583||t>=3840&&t<=4255||yr.Khmer(t))}var Mr,Ar=!1,Tr=null,Sr=!1,Er=new O,Cr={applyArabicShaping:null,processBidirectionalText:null,isLoaded:function(){return Sr||null!=Cr.applyArabicShaping}},Lr=function(t,e){this.zoom=t,e?(this.now=e.now,this.fadeDuration=e.fadeDuration,this.zoomHistory=e.zoomHistory,this.transition=e.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new mr,this.transition={})};Lr.prototype.isSupportedScript=function(t){return function(t,e){for(var r=0,n=t;r<n.length;r+=1)if(!kr(n[r].charCodeAt(0),e))return!1;return!0}(t,Cr.isLoaded())},Lr.prototype.crossFadingFactor=function(){return 0===this.fadeDuration?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)};var zr=function(t,e){this.property=t,this.value=e,this.expression=Se(void 0===e?t.specification.default:e,t.specification)};zr.prototype.isDataDriven=function(){return\"source\"===this.expression.kind||\"composite\"===this.expression.kind},zr.prototype.possiblyEvaluate=function(t){return this.property.possiblyEvaluate(this,t)};var Or=function(t){this.property=t,this.value=new zr(t,void 0)};Or.prototype.transitioned=function(t,e){return new Pr(this.property,this.value,e,p({},t.transition,this.transition),t.now)},Or.prototype.untransitioned=function(){return new Pr(this.property,this.value,null,{},0)};var Ir=function(t){this._properties=t,this._values=Object.create(t.defaultTransitionablePropertyValues)};Ir.prototype.getValue=function(t){return x(this._values[t].value.value)},Ir.prototype.setValue=function(t,e){this._values.hasOwnProperty(t)||(this._values[t]=new Or(this._values[t].property)),this._values[t].value=new zr(this._values[t].property,null===e?void 0:x(e))},Ir.prototype.getTransition=function(t){return x(this._values[t].transition)},Ir.prototype.setTransition=function(t,e){this._values.hasOwnProperty(t)||(this._values[t]=new Or(this._values[t].property)),this._values[t].transition=x(e)||void 0},Ir.prototype.serialize=function(){for(var t={},e=0,r=Object.keys(this._values);e<r.length;e+=1){var n=r[e],i=this.getValue(n);void 0!==i&&(t[n]=i);var a=this.getTransition(n);void 0!==a&&(t[n+\"-transition\"]=a)}return t},Ir.prototype.transitioned=function(t,e){for(var r=new Dr(this._properties),n=0,i=Object.keys(this._values);n<i.length;n+=1){var a=i[n];r._values[a]=this._values[a].transitioned(t,e._values[a])}return r},Ir.prototype.untransitioned=function(){for(var t=new Dr(this._properties),e=0,r=Object.keys(this._values);e<r.length;e+=1){var n=r[e];t._values[n]=this._values[n].untransitioned()}return t};var Pr=function(t,e,r,n,i){this.property=t,this.value=e,this.begin=i+n.delay||0,this.end=this.begin+n.duration||0,t.specification.transition&&(n.delay||n.duration)&&(this.prior=r)};Pr.prototype.possiblyEvaluate=function(t){var e=t.now||0,r=this.value.possiblyEvaluate(t),n=this.prior;if(n){if(e>this.end)return this.prior=null,r;if(this.value.isDataDriven())return this.prior=null,r;if(e<this.begin)return n.possiblyEvaluate(t);var i=(e-this.begin)/(this.end-this.begin);return this.property.interpolate(n.possiblyEvaluate(t),r,function(t){if(i<=0)return 0;if(i>=1)return 1;var e=i*i,r=e*i;return 4*(i<.5?r:3*(i-e)+r-.75)}())}return r};var Dr=function(t){this._properties=t,this._values=Object.create(t.defaultTransitioningPropertyValues)};Dr.prototype.possiblyEvaluate=function(t){for(var e=new Fr(this._properties),r=0,n=Object.keys(this._values);r<n.length;r+=1){var i=n[r];e._values[i]=this._values[i].possiblyEvaluate(t)}return e},Dr.prototype.hasTransition=function(){for(var t=0,e=Object.keys(this._values);t<e.length;t+=1){var r=e[t];if(this._values[r].prior)return!0}return!1};var Rr=function(t){this._properties=t,this._values=Object.create(t.defaultPropertyValues)};Rr.prototype.getValue=function(t){return x(this._values[t].value)},Rr.prototype.setValue=function(t,e){this._values[t]=new zr(this._values[t].property,null===e?void 0:x(e))},Rr.prototype.serialize=function(){for(var t={},e=0,r=Object.keys(this._values);e<r.length;e+=1){var n=r[e],i=this.getValue(n);void 0!==i&&(t[n]=i)}return t},Rr.prototype.possiblyEvaluate=function(t){for(var e=new Fr(this._properties),r=0,n=Object.keys(this._values);r<n.length;r+=1){var i=n[r];e._values[i]=this._values[i].possiblyEvaluate(t)}return e};var Br=function(t,e,r){this.property=t,this.value=e,this.globals=r};Br.prototype.isConstant=function(){return\"constant\"===this.value.kind},Br.prototype.constantOr=function(t){return\"constant\"===this.value.kind?this.value.value:t},Br.prototype.evaluate=function(t){return this.property.evaluate(this.value,this.globals,t)};var Fr=function(t){this._properties=t,this._values=Object.create(t.defaultPossiblyEvaluatedValues)};Fr.prototype.get=function(t){return this._values[t]};var Nr=function(t){this.specification=t};Nr.prototype.possiblyEvaluate=function(t,e){return t.expression.evaluate(e)},Nr.prototype.interpolate=function(t,e,r){var n=kt[this.specification.type];return n?n(t,e,r):t};var jr=function(t){this.specification=t};jr.prototype.possiblyEvaluate=function(t,e){return\"constant\"===t.expression.kind||\"camera\"===t.expression.kind?new Br(this,{kind:\"constant\",value:t.expression.evaluate(e)},e):new Br(this,t.expression,e)},jr.prototype.interpolate=function(t,e,r){if(\"constant\"!==t.value.kind||\"constant\"!==e.value.kind)return t;if(void 0===t.value.value||void 0===e.value.value)return new Br(this,{kind:\"constant\",value:void 0},t.globals);var n=kt[this.specification.type];return n?new Br(this,{kind:\"constant\",value:n(t.value.value,e.value.value,r)},t.globals):t},jr.prototype.evaluate=function(t,e,r){return\"constant\"===t.kind?t.value:t.evaluate(e,r)};var Vr=function(t){this.specification=t};Vr.prototype.possiblyEvaluate=function(t,e){if(void 0!==t.value){if(\"constant\"===t.expression.kind){var r=t.expression.evaluate(e);return this._calculate(r,r,r,e)}return this._calculate(t.expression.evaluate(new Lr(Math.floor(e.zoom-1),e)),t.expression.evaluate(new Lr(Math.floor(e.zoom),e)),t.expression.evaluate(new Lr(Math.floor(e.zoom+1),e)),e)}},Vr.prototype._calculate=function(t,e,r,n){var i=n.zoom,a=i-Math.floor(i),o=n.crossFadingFactor();return i>n.zoomHistory.lastIntegerZoom?{from:t,to:e,fromScale:2,toScale:1,t:a+(1-a)*o}:{from:r,to:e,fromScale:.5,toScale:1,t:1-(1-o)*a}},Vr.prototype.interpolate=function(t){return t};var Ur=function(t){this.specification=t};Ur.prototype.possiblyEvaluate=function(t,e){return!!t.expression.evaluate(e)},Ur.prototype.interpolate=function(){return!1};var qr=function(t){for(var e in this.properties=t,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},t){var r=t[e],n=this.defaultPropertyValues[e]=new zr(r,void 0),i=this.defaultTransitionablePropertyValues[e]=new Or(r);this.defaultTransitioningPropertyValues[e]=i.untransitioned(),this.defaultPossiblyEvaluatedValues[e]=n.possiblyEvaluate({})}};pr(\"DataDrivenProperty\",jr),pr(\"DataConstantProperty\",Nr),pr(\"CrossFadedProperty\",Vr),pr(\"ColorRampProperty\",Ur);var Hr=function(t){function e(e,r){for(var n in t.call(this),this.id=e.id,this.metadata=e.metadata,this.type=e.type,this.minzoom=e.minzoom,this.maxzoom=e.maxzoom,this.visibility=\"visible\",\"background\"!==e.type&&(this.source=e.source,this.sourceLayer=e[\"source-layer\"],this.filter=e.filter),this._featureFilter=function(){return!0},r.layout&&(this._unevaluatedLayout=new Rr(r.layout)),this._transitionablePaint=new Ir(r.paint),e.paint)this.setPaintProperty(n,e.paint[n],{validate:!1});for(var i in e.layout)this.setLayoutProperty(i,e.layout[i],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getLayoutProperty=function(t){return\"visibility\"===t?this.visibility:this._unevaluatedLayout.getValue(t)},e.prototype.setLayoutProperty=function(t,e,r){if(null!=e){var n=\"layers.\"+this.id+\".layout.\"+t;if(this._validate(or,n,t,e,r))return}\"visibility\"!==t?this._unevaluatedLayout.setValue(t,e):this.visibility=\"none\"===e?e:\"visible\"},e.prototype.getPaintProperty=function(t){return v(t,\"-transition\")?this._transitionablePaint.getTransition(t.slice(0,-\"-transition\".length)):this._transitionablePaint.getValue(t)},e.prototype.setPaintProperty=function(t,e,r){if(null!=e){var n=\"layers.\"+this.id+\".paint.\"+t;if(this._validate(ar,n,t,e,r))return}v(t,\"-transition\")?this._transitionablePaint.setTransition(t.slice(0,-\"-transition\".length),e||void 0):this._transitionablePaint.setValue(t,e)},e.prototype.isHidden=function(t){return!!(this.minzoom&&t<this.minzoom)||!!(this.maxzoom&&t>=this.maxzoom)||\"none\"===this.visibility},e.prototype.updateTransitions=function(t){this._transitioningPaint=this._transitionablePaint.transitioned(t,this._transitioningPaint)},e.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},e.prototype.recalculate=function(t){this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(t)),this.paint=this._transitioningPaint.possiblyEvaluate(t)},e.prototype.serialize=function(){var t={id:this.id,type:this.type,source:this.source,\"source-layer\":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return\"none\"===this.visibility&&(t.layout=t.layout||{},t.layout.visibility=\"none\"),y(t,function(t,e){return!(void 0===t||\"layout\"===e&&!Object.keys(t).length||\"paint\"===e&&!Object.keys(t).length)})},e.prototype._validate=function(t,e,r,n,i){return(!i||!1!==i.validate)&&sr(this,t.call(nr,{key:e,layerType:this.type,objectKey:r,value:n,styleSpec:I,style:{glyphs:!0,sprite:!0}}))},e.prototype.hasOffscreenPass=function(){return!1},e.prototype.resize=function(){},e}(O),Gr={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},Wr=function(t,e){this._structArray=t,this._pos1=e*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},Yr=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};function Xr(t,e){void 0===e&&(e=1);var r=0,n=0;return{members:t.map(function(t){var i,a=(i=t.type,Gr[i].BYTES_PER_ELEMENT),o=r=Zr(r,Math.max(e,a)),s=t.components||1;return n=Math.max(n,a),r+=a*s,{name:t.name,type:t.type,components:s,offset:o}}),size:Zr(r,Math.max(n,e)),alignment:e}}function Zr(t,e){return Math.ceil(t/e)*e}Yr.serialize=function(t,e){return t._trim(),e&&(t.isTransferred=!0,e.push(t.arrayBuffer)),{length:t.length,arrayBuffer:t.arrayBuffer}},Yr.deserialize=function(t){var e=Object.create(this.prototype);return e.arrayBuffer=t.arrayBuffer,e.length=t.length,e.capacity=t.arrayBuffer.byteLength/e.bytesPerElement,e._refreshViews(),e},Yr.prototype._trim=function(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},Yr.prototype.clear=function(){this.length=0},Yr.prototype.resize=function(t){this.reserve(t),this.length=t},Yr.prototype.reserve=function(t){if(t>this.capacity){this.capacity=Math.max(t,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var e=this.uint8;this._refreshViews(),e&&this.uint8.set(e)}},Yr.prototype._refreshViews=function(){throw new Error(\"_refreshViews() must be implemented by each concrete StructArray layout\")};var $r=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e){var r=this.length;this.resize(r+1);var n=2*r;return this.int16[n+0]=t,this.int16[n+1]=e,r},e}(Yr);$r.prototype.bytesPerElement=4,pr(\"StructArrayLayout2i4\",$r);var Jr=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n){var i=this.length;this.resize(i+1);var a=4*i;return this.int16[a+0]=t,this.int16[a+1]=e,this.int16[a+2]=r,this.int16[a+3]=n,i},e}(Yr);Jr.prototype.bytesPerElement=8,pr(\"StructArrayLayout4i8\",Jr);var Kr=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a){var o=this.length;this.resize(o+1);var s=6*o;return this.int16[s+0]=t,this.int16[s+1]=e,this.int16[s+2]=r,this.int16[s+3]=n,this.int16[s+4]=i,this.int16[s+5]=a,o},e}(Yr);Kr.prototype.bytesPerElement=12,pr(\"StructArrayLayout2i4i12\",Kr);var Qr=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a,o,s){var l=this.length;this.resize(l+1);var c=6*l,u=12*l;return this.int16[c+0]=t,this.int16[c+1]=e,this.int16[c+2]=r,this.int16[c+3]=n,this.uint8[u+8]=i,this.uint8[u+9]=a,this.uint8[u+10]=o,this.uint8[u+11]=s,l},e}(Yr);Qr.prototype.bytesPerElement=12,pr(\"StructArrayLayout4i4ub12\",Qr);var tn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a,o,s){var l=this.length;this.resize(l+1);var c=8*l;return this.int16[c+0]=t,this.int16[c+1]=e,this.int16[c+2]=r,this.int16[c+3]=n,this.uint16[c+4]=i,this.uint16[c+5]=a,this.uint16[c+6]=o,this.uint16[c+7]=s,l},e}(Yr);tn.prototype.bytesPerElement=16,pr(\"StructArrayLayout4i4ui16\",tn);var en=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r){var n=this.length;this.resize(n+1);var i=3*n;return this.float32[i+0]=t,this.float32[i+1]=e,this.float32[i+2]=r,n},e}(Yr);en.prototype.bytesPerElement=12,pr(\"StructArrayLayout3f12\",en);var rn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t){var e=this.length;this.resize(e+1);var r=1*e;return this.uint32[r+0]=t,e},e}(Yr);rn.prototype.bytesPerElement=4,pr(\"StructArrayLayout1ul4\",rn);var nn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a,o,s,l,c,u){var f=this.length;this.resize(f+1);var h=12*f,p=6*f;return this.int16[h+0]=t,this.int16[h+1]=e,this.int16[h+2]=r,this.int16[h+3]=n,this.int16[h+4]=i,this.int16[h+5]=a,this.uint32[p+3]=o,this.uint16[h+8]=s,this.uint16[h+9]=l,this.int16[h+10]=c,this.int16[h+11]=u,f},e}(Yr);nn.prototype.bytesPerElement=24,pr(\"StructArrayLayout6i1ul2ui2i24\",nn);var an=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a){var o=this.length;this.resize(o+1);var s=6*o;return this.int16[s+0]=t,this.int16[s+1]=e,this.int16[s+2]=r,this.int16[s+3]=n,this.int16[s+4]=i,this.int16[s+5]=a,o},e}(Yr);an.prototype.bytesPerElement=12,pr(\"StructArrayLayout2i2i2i12\",an);var on=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e){var r=this.length;this.resize(r+1);var n=4*r;return this.uint8[n+0]=t,this.uint8[n+1]=e,r},e}(Yr);on.prototype.bytesPerElement=4,pr(\"StructArrayLayout2ub4\",on);var sn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a,o,s,l,c,u,f,h,p){var d=this.length;this.resize(d+1);var g=20*d,v=10*d,m=40*d;return this.int16[g+0]=t,this.int16[g+1]=e,this.uint16[g+2]=r,this.uint16[g+3]=n,this.uint32[v+2]=i,this.uint32[v+3]=a,this.uint32[v+4]=o,this.uint16[g+10]=s,this.uint16[g+11]=l,this.uint16[g+12]=c,this.float32[v+7]=u,this.float32[v+8]=f,this.uint8[m+36]=h,this.uint8[m+37]=p,d},e}(Yr);sn.prototype.bytesPerElement=40,pr(\"StructArrayLayout2i2ui3ul3ui2f2ub40\",sn);var ln=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t){var e=this.length;this.resize(e+1);var r=1*e;return this.float32[r+0]=t,e},e}(Yr);ln.prototype.bytesPerElement=4,pr(\"StructArrayLayout1f4\",ln);var cn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r){var n=this.length;this.resize(n+1);var i=3*n;return this.int16[i+0]=t,this.int16[i+1]=e,this.int16[i+2]=r,n},e}(Yr);cn.prototype.bytesPerElement=6,pr(\"StructArrayLayout3i6\",cn);var un=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r){var n=this.length;this.resize(n+1);var i=2*n,a=4*n;return this.uint32[i+0]=t,this.uint16[a+2]=e,this.uint16[a+3]=r,n},e}(Yr);un.prototype.bytesPerElement=8,pr(\"StructArrayLayout1ul2ui8\",un);var fn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r){var n=this.length;this.resize(n+1);var i=3*n;return this.uint16[i+0]=t,this.uint16[i+1]=e,this.uint16[i+2]=r,n},e}(Yr);fn.prototype.bytesPerElement=6,pr(\"StructArrayLayout3ui6\",fn);var hn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e){var r=this.length;this.resize(r+1);var n=2*r;return this.uint16[n+0]=t,this.uint16[n+1]=e,r},e}(Yr);hn.prototype.bytesPerElement=4,pr(\"StructArrayLayout2ui4\",hn);var pn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e){var r=this.length;this.resize(r+1);var n=2*r;return this.float32[n+0]=t,this.float32[n+1]=e,r},e}(Yr);pn.prototype.bytesPerElement=8,pr(\"StructArrayLayout2f8\",pn);var dn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n){var i=this.length;this.resize(i+1);var a=4*i;return this.float32[a+0]=t,this.float32[a+1]=e,this.float32[a+2]=r,this.float32[a+3]=n,i},e}(Yr);dn.prototype.bytesPerElement=16,pr(\"StructArrayLayout4f16\",dn);var gn=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={anchorPointX:{configurable:!0},anchorPointY:{configurable:!0},x1:{configurable:!0},y1:{configurable:!0},x2:{configurable:!0},y2:{configurable:!0},featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0},radius:{configurable:!0},signedDistanceFromAnchor:{configurable:!0},anchorPoint:{configurable:!0}};return r.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},r.anchorPointX.set=function(t){this._structArray.int16[this._pos2+0]=t},r.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},r.anchorPointY.set=function(t){this._structArray.int16[this._pos2+1]=t},r.x1.get=function(){return this._structArray.int16[this._pos2+2]},r.x1.set=function(t){this._structArray.int16[this._pos2+2]=t},r.y1.get=function(){return this._structArray.int16[this._pos2+3]},r.y1.set=function(t){this._structArray.int16[this._pos2+3]=t},r.x2.get=function(){return this._structArray.int16[this._pos2+4]},r.x2.set=function(t){this._structArray.int16[this._pos2+4]=t},r.y2.get=function(){return this._structArray.int16[this._pos2+5]},r.y2.set=function(t){this._structArray.int16[this._pos2+5]=t},r.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},r.featureIndex.set=function(t){this._structArray.uint32[this._pos4+3]=t},r.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},r.sourceLayerIndex.set=function(t){this._structArray.uint16[this._pos2+8]=t},r.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},r.bucketIndex.set=function(t){this._structArray.uint16[this._pos2+9]=t},r.radius.get=function(){return this._structArray.int16[this._pos2+10]},r.radius.set=function(t){this._structArray.int16[this._pos2+10]=t},r.signedDistanceFromAnchor.get=function(){return this._structArray.int16[this._pos2+11]},r.signedDistanceFromAnchor.set=function(t){this._structArray.int16[this._pos2+11]=t},r.anchorPoint.get=function(){return new l(this.anchorPointX,this.anchorPointY)},Object.defineProperties(e.prototype,r),e}(Wr);gn.prototype.size=24;var vn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t){return new gn(this,t)},e}(nn);pr(\"CollisionBoxArray\",vn);var mn=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={anchorX:{configurable:!0},anchorY:{configurable:!0},glyphStartIndex:{configurable:!0},numGlyphs:{configurable:!0},vertexStartIndex:{configurable:!0},lineStartIndex:{configurable:!0},lineLength:{configurable:!0},segment:{configurable:!0},lowerSize:{configurable:!0},upperSize:{configurable:!0},lineOffsetX:{configurable:!0},lineOffsetY:{configurable:!0},writingMode:{configurable:!0},hidden:{configurable:!0}};return r.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},r.anchorX.set=function(t){this._structArray.int16[this._pos2+0]=t},r.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},r.anchorY.set=function(t){this._structArray.int16[this._pos2+1]=t},r.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},r.glyphStartIndex.set=function(t){this._structArray.uint16[this._pos2+2]=t},r.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},r.numGlyphs.set=function(t){this._structArray.uint16[this._pos2+3]=t},r.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},r.vertexStartIndex.set=function(t){this._structArray.uint32[this._pos4+2]=t},r.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},r.lineStartIndex.set=function(t){this._structArray.uint32[this._pos4+3]=t},r.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},r.lineLength.set=function(t){this._structArray.uint32[this._pos4+4]=t},r.segment.get=function(){return this._structArray.uint16[this._pos2+10]},r.segment.set=function(t){this._structArray.uint16[this._pos2+10]=t},r.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},r.lowerSize.set=function(t){this._structArray.uint16[this._pos2+11]=t},r.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},r.upperSize.set=function(t){this._structArray.uint16[this._pos2+12]=t},r.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},r.lineOffsetX.set=function(t){this._structArray.float32[this._pos4+7]=t},r.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},r.lineOffsetY.set=function(t){this._structArray.float32[this._pos4+8]=t},r.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},r.writingMode.set=function(t){this._structArray.uint8[this._pos1+36]=t},r.hidden.get=function(){return this._structArray.uint8[this._pos1+37]},r.hidden.set=function(t){this._structArray.uint8[this._pos1+37]=t},Object.defineProperties(e.prototype,r),e}(Wr);mn.prototype.size=40;var yn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t){return new mn(this,t)},e}(sn);pr(\"PlacedSymbolArray\",yn);var xn=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={offsetX:{configurable:!0}};return r.offsetX.get=function(){return this._structArray.float32[this._pos4+0]},r.offsetX.set=function(t){this._structArray.float32[this._pos4+0]=t},Object.defineProperties(e.prototype,r),e}(Wr);xn.prototype.size=4;var bn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getoffsetX=function(t){return this.float32[1*t+0]},e.prototype.get=function(t){return new xn(this,t)},e}(ln);pr(\"GlyphOffsetArray\",bn);var _n=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={x:{configurable:!0},y:{configurable:!0},tileUnitDistanceFromAnchor:{configurable:!0}};return r.x.get=function(){return this._structArray.int16[this._pos2+0]},r.x.set=function(t){this._structArray.int16[this._pos2+0]=t},r.y.get=function(){return this._structArray.int16[this._pos2+1]},r.y.set=function(t){this._structArray.int16[this._pos2+1]=t},r.tileUnitDistanceFromAnchor.get=function(){return this._structArray.int16[this._pos2+2]},r.tileUnitDistanceFromAnchor.set=function(t){this._structArray.int16[this._pos2+2]=t},Object.defineProperties(e.prototype,r),e}(Wr);_n.prototype.size=6;var wn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getx=function(t){return this.int16[3*t+0]},e.prototype.gety=function(t){return this.int16[3*t+1]},e.prototype.gettileUnitDistanceFromAnchor=function(t){return this.int16[3*t+2]},e.prototype.get=function(t){return new _n(this,t)},e}(cn);pr(\"SymbolLineVertexArray\",wn);var kn=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return r.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},r.featureIndex.set=function(t){this._structArray.uint32[this._pos4+0]=t},r.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},r.sourceLayerIndex.set=function(t){this._structArray.uint16[this._pos2+2]=t},r.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},r.bucketIndex.set=function(t){this._structArray.uint16[this._pos2+3]=t},Object.defineProperties(e.prototype,r),e}(Wr);kn.prototype.size=8;var Mn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t){return new kn(this,t)},e}(un);pr(\"FeatureIndexArray\",Mn);var An=Xr([{name:\"a_pos\",components:2,type:\"Int16\"}],4).members,Tn=function(t){void 0===t&&(t=[]),this.segments=t};Tn.prototype.prepareSegment=function(t,e,r){var n=this.segments[this.segments.length-1];return t>Tn.MAX_VERTEX_ARRAY_LENGTH&&_(\"Max vertices per segment is \"+Tn.MAX_VERTEX_ARRAY_LENGTH+\": bucket requested \"+t),(!n||n.vertexLength+t>Tn.MAX_VERTEX_ARRAY_LENGTH)&&(n={vertexOffset:e.length,primitiveOffset:r.length,vertexLength:0,primitiveLength:0},this.segments.push(n)),n},Tn.prototype.get=function(){return this.segments},Tn.prototype.destroy=function(){for(var t=0,e=this.segments;t<e.length;t+=1){var r=e[t];for(var n in r.vaos)r.vaos[n].destroy()}},Tn.MAX_VERTEX_ARRAY_LENGTH=Math.pow(2,16)-1,pr(\"SegmentVector\",Tn);var Sn=function(t,e){return 256*(t=h(Math.floor(t),0,255))+h(Math.floor(e),0,255)};function En(t){return[Sn(255*t.r,255*t.g),Sn(255*t.b,255*t.a)]}var Cn=function(t,e,r){this.value=t,this.name=e,this.type=r,this.statistics={max:-1/0}};Cn.prototype.defines=function(){return[\"#define HAS_UNIFORM_u_\"+this.name]},Cn.prototype.populatePaintArray=function(){},Cn.prototype.upload=function(){},Cn.prototype.destroy=function(){},Cn.prototype.setUniforms=function(t,e,r,n){var i=n.constantOr(this.value),a=t.gl;\"color\"===this.type?a.uniform4f(e.uniforms[\"u_\"+this.name],i.r,i.g,i.b,i.a):a.uniform1f(e.uniforms[\"u_\"+this.name],i)};var Ln=function(t,e,r){this.expression=t,this.name=e,this.type=r,this.statistics={max:-1/0};var n=\"color\"===r?pn:ln;this.paintVertexAttributes=[{name:\"a_\"+e,type:\"Float32\",components:\"color\"===r?2:1,offset:0}],this.paintVertexArray=new n};Ln.prototype.defines=function(){return[]},Ln.prototype.populatePaintArray=function(t,e){var r=this.paintVertexArray,n=r.length;r.reserve(t);var i=this.expression.evaluate(new Lr(0),e);if(\"color\"===this.type)for(var a=En(i),o=n;o<t;o++)r.emplaceBack(a[0],a[1]);else{for(var s=n;s<t;s++)r.emplaceBack(i);this.statistics.max=Math.max(this.statistics.max,i)}},Ln.prototype.upload=function(t){this.paintVertexArray&&(this.paintVertexBuffer=t.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes))},Ln.prototype.destroy=function(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()},Ln.prototype.setUniforms=function(t,e){t.gl.uniform1f(e.uniforms[\"a_\"+this.name+\"_t\"],0)};var zn=function(t,e,r,n,i){this.expression=t,this.name=e,this.type=r,this.useIntegerZoom=n,this.zoom=i,this.statistics={max:-1/0};var a=\"color\"===r?dn:pn;this.paintVertexAttributes=[{name:\"a_\"+e,type:\"Float32\",components:\"color\"===r?4:2,offset:0}],this.paintVertexArray=new a};zn.prototype.defines=function(){return[]},zn.prototype.populatePaintArray=function(t,e){var r=this.paintVertexArray,n=r.length;r.reserve(t);var i=this.expression.evaluate(new Lr(this.zoom),e),a=this.expression.evaluate(new Lr(this.zoom+1),e);if(\"color\"===this.type)for(var o=En(i),s=En(a),l=n;l<t;l++)r.emplaceBack(o[0],o[1],s[0],s[1]);else{for(var c=n;c<t;c++)r.emplaceBack(i,a);this.statistics.max=Math.max(this.statistics.max,i,a)}},zn.prototype.upload=function(t){this.paintVertexArray&&(this.paintVertexBuffer=t.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes))},zn.prototype.destroy=function(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()},zn.prototype.interpolationFactor=function(t){return this.useIntegerZoom?this.expression.interpolationFactor(Math.floor(t),this.zoom,this.zoom+1):this.expression.interpolationFactor(t,this.zoom,this.zoom+1)},zn.prototype.setUniforms=function(t,e,r){t.gl.uniform1f(e.uniforms[\"a_\"+this.name+\"_t\"],this.interpolationFactor(r.zoom))};var On=function(){this.binders={},this.cacheKey=\"\",this._buffers=[]};On.createDynamic=function(t,e,r){var n=new On,i=[];for(var a in t.paint._values)if(r(a)){var o=t.paint.get(a);if(o instanceof Br&&o.property.specification[\"property-function\"]){var s=Pn(a,t.type),l=o.property.specification.type,c=o.property.useIntegerZoom;\"constant\"===o.value.kind?(n.binders[a]=new Cn(o.value,s,l),i.push(\"/u_\"+s)):\"source\"===o.value.kind?(n.binders[a]=new Ln(o.value,s,l),i.push(\"/a_\"+s)):(n.binders[a]=new zn(o.value,s,l,c,e),i.push(\"/z_\"+s))}}return n.cacheKey=i.sort().join(\"\"),n},On.prototype.populatePaintArrays=function(t,e){for(var r in this.binders)this.binders[r].populatePaintArray(t,e)},On.prototype.defines=function(){var t=[];for(var e in this.binders)t.push.apply(t,this.binders[e].defines());return t},On.prototype.setUniforms=function(t,e,r,n){for(var i in this.binders)this.binders[i].setUniforms(t,e,n,r.get(i))},On.prototype.getPaintVertexBuffers=function(){return this._buffers},On.prototype.upload=function(t){for(var e in this.binders)this.binders[e].upload(t);var r=[];for(var n in this.binders){var i=this.binders[n];(i instanceof Ln||i instanceof zn)&&i.paintVertexBuffer&&r.push(i.paintVertexBuffer)}this._buffers=r},On.prototype.destroy=function(){for(var t in this.binders)this.binders[t].destroy()};var In=function(t,e,r,n){void 0===n&&(n=function(){return!0}),this.programConfigurations={};for(var i=0,a=e;i<a.length;i+=1){var o=a[i];this.programConfigurations[o.id]=On.createDynamic(o,r,n),this.programConfigurations[o.id].layoutAttributes=t}};function Pn(t,e){return{\"text-opacity\":\"opacity\",\"icon-opacity\":\"opacity\",\"text-color\":\"fill_color\",\"icon-color\":\"fill_color\",\"text-halo-color\":\"halo_color\",\"icon-halo-color\":\"halo_color\",\"text-halo-blur\":\"halo_blur\",\"icon-halo-blur\":\"halo_blur\",\"text-halo-width\":\"halo_width\",\"icon-halo-width\":\"halo_width\",\"line-gap-width\":\"gapwidth\"}[t]||t.replace(e+\"-\",\"\").replace(/-/g,\"_\")}In.prototype.populatePaintArrays=function(t,e){for(var r in this.programConfigurations)this.programConfigurations[r].populatePaintArrays(t,e)},In.prototype.get=function(t){return this.programConfigurations[t]},In.prototype.upload=function(t){for(var e in this.programConfigurations)this.programConfigurations[e].upload(t)},In.prototype.destroy=function(){for(var t in this.programConfigurations)this.programConfigurations[t].destroy()},pr(\"ConstantBinder\",Cn),pr(\"SourceExpressionBinder\",Ln),pr(\"CompositeExpressionBinder\",zn),pr(\"ProgramConfiguration\",On,{omit:[\"_buffers\"]}),pr(\"ProgramConfigurationSet\",In);var Dn=8192,Rn=(16,{min:-1*Math.pow(2,15),max:Math.pow(2,15)-1});function Bn(t){for(var e=Dn/t.extent,r=t.loadGeometry(),n=0;n<r.length;n++)for(var i=r[n],a=0;a<i.length;a++){var o=i[a];o.x=Math.round(o.x*e),o.y=Math.round(o.y*e),(o.x<Rn.min||o.x>Rn.max||o.y<Rn.min||o.y>Rn.max)&&_(\"Geometry exceeds allowed extent, reduce your vector tile buffer size\")}return r}function Fn(t,e,r,n,i){t.emplaceBack(2*e+(n+1)/2,2*r+(i+1)/2)}var Nn=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(function(t){return t.id}),this.index=t.index,this.layoutVertexArray=new $r,this.indexArray=new fn,this.segments=new Tn,this.programConfigurations=new In(An,t.layers,t.zoom)};function jn(t,e,r){for(var n=0;n<t.length;n++){var i=t[n];if(Zn(i,e))return!0;if(Wn(e,i,r))return!0}return!1}function Vn(t,e){if(1===t.length&&1===t[0].length)return Xn(e,t[0][0]);for(var r=0;r<e.length;r++)for(var n=e[r],i=0;i<n.length;i++)if(Xn(t,n[i]))return!0;for(var a=0;a<t.length;a++){for(var o=t[a],s=0;s<o.length;s++)if(Xn(e,o[s]))return!0;for(var l=0;l<e.length;l++)if(Hn(o,e[l]))return!0}return!1}function Un(t,e,r){for(var n=0;n<e.length;n++)for(var i=e[n],a=0;a<t.length;a++){var o=t[a];if(o.length>=3)for(var s=0;s<i.length;s++)if(Zn(o,i[s]))return!0;if(qn(o,i,r))return!0}return!1}function qn(t,e,r){if(t.length>1){if(Hn(t,e))return!0;for(var n=0;n<e.length;n++)if(Wn(e[n],t,r))return!0}for(var i=0;i<t.length;i++)if(Wn(t[i],e,r))return!0;return!1}function Hn(t,e){if(0===t.length||0===e.length)return!1;for(var r=0;r<t.length-1;r++)for(var n=t[r],i=t[r+1],a=0;a<e.length-1;a++)if(Gn(n,i,e[a],e[a+1]))return!0;return!1}function Gn(t,e,r,n){return w(t,r,n)!==w(e,r,n)&&w(t,e,r)!==w(t,e,n)}function Wn(t,e,r){var n=r*r;if(1===e.length)return t.distSqr(e[0])<n;for(var i=1;i<e.length;i++)if(Yn(t,e[i-1],e[i])<n)return!0;return!1}function Yn(t,e,r){var n=e.distSqr(r);if(0===n)return t.distSqr(e);var i=((t.x-e.x)*(r.x-e.x)+(t.y-e.y)*(r.y-e.y))/n;return i<0?t.distSqr(e):i>1?t.distSqr(r):t.distSqr(r.sub(e)._mult(i)._add(e))}function Xn(t,e){for(var r,n,i,a=!1,o=0;o<t.length;o++)for(var s=0,l=(r=t[o]).length-1;s<r.length;l=s++)n=r[s],i=r[l],n.y>e.y!=i.y>e.y&&e.x<(i.x-n.x)*(e.y-n.y)/(i.y-n.y)+n.x&&(a=!a);return a}function Zn(t,e){for(var r=!1,n=0,i=t.length-1;n<t.length;i=n++){var a=t[n],o=t[i];a.y>e.y!=o.y>e.y&&e.x<(o.x-a.x)*(e.y-a.y)/(o.y-a.y)+a.x&&(r=!r)}return r}function $n(t,e,r){var n=e.paint.get(t).value;return\"constant\"===n.kind?n.value:r.programConfigurations.get(e.id).binders[t].statistics.max}function Jn(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Kn(t,e,r,n,i){if(!e[0]&&!e[1])return t;var a=l.convert(e);\"viewport\"===r&&a._rotate(-n);for(var o=[],s=0;s<t.length;s++){for(var c=t[s],u=[],f=0;f<c.length;f++)u.push(c[f].sub(a._mult(i)));o.push(u)}return o}Nn.prototype.populate=function(t,e){for(var r=0,n=t;r<n.length;r+=1){var i=n[r],a=i.feature,o=i.index,s=i.sourceLayerIndex;if(this.layers[0]._featureFilter(new Lr(this.zoom),a)){var l=Bn(a);this.addFeature(a,l),e.featureIndex.insert(a,l,o,s,this.index)}}},Nn.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},Nn.prototype.upload=function(t){this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,An),this.indexBuffer=t.createIndexBuffer(this.indexArray),this.programConfigurations.upload(t)},Nn.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())},Nn.prototype.addFeature=function(t,e){for(var r=0,n=e;r<n.length;r+=1)for(var i=0,a=n[r];i<a.length;i+=1){var o=a[i],s=o.x,l=o.y;if(!(s<0||s>=Dn||l<0||l>=Dn)){var c=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray),u=c.vertexLength;Fn(this.layoutVertexArray,s,l,-1,-1),Fn(this.layoutVertexArray,s,l,1,-1),Fn(this.layoutVertexArray,s,l,1,1),Fn(this.layoutVertexArray,s,l,-1,1),this.indexArray.emplaceBack(u,u+1,u+2),this.indexArray.emplaceBack(u,u+3,u+2),c.vertexLength+=4,c.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t)},pr(\"CircleBucket\",Nn,{omit:[\"layers\"]});var Qn={paint:new qr({\"circle-radius\":new jr(I.paint_circle[\"circle-radius\"]),\"circle-color\":new jr(I.paint_circle[\"circle-color\"]),\"circle-blur\":new jr(I.paint_circle[\"circle-blur\"]),\"circle-opacity\":new jr(I.paint_circle[\"circle-opacity\"]),\"circle-translate\":new Nr(I.paint_circle[\"circle-translate\"]),\"circle-translate-anchor\":new Nr(I.paint_circle[\"circle-translate-anchor\"]),\"circle-pitch-scale\":new Nr(I.paint_circle[\"circle-pitch-scale\"]),\"circle-pitch-alignment\":new Nr(I.paint_circle[\"circle-pitch-alignment\"]),\"circle-stroke-width\":new jr(I.paint_circle[\"circle-stroke-width\"]),\"circle-stroke-color\":new jr(I.paint_circle[\"circle-stroke-color\"]),\"circle-stroke-opacity\":new jr(I.paint_circle[\"circle-stroke-opacity\"])})},ti=i(function(t,e){var r;t.exports=((r=new Float32Array(3))[0]=0,r[1]=0,r[2]=0,function(){var t=new Float32Array(4);t[0]=0,t[1]=0,t[2]=0,t[3]=0}(),{vec3:{transformMat3:function(t,e,r){var n=e[0],i=e[1],a=e[2];return t[0]=n*r[0]+i*r[3]+a*r[6],t[1]=n*r[1]+i*r[4]+a*r[7],t[2]=n*r[2]+i*r[5]+a*r[8],t}},vec4:{transformMat4:function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3];return t[0]=r[0]*n+r[4]*i+r[8]*a+r[12]*o,t[1]=r[1]*n+r[5]*i+r[9]*a+r[13]*o,t[2]=r[2]*n+r[6]*i+r[10]*a+r[14]*o,t[3]=r[3]*n+r[7]*i+r[11]*a+r[15]*o,t}},mat2:{create:function(){var t=new Float32Array(4);return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t},rotate:function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=Math.sin(r),l=Math.cos(r);return t[0]=n*l+a*s,t[1]=i*l+o*s,t[2]=n*-s+a*l,t[3]=i*-s+o*l,t},scale:function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=r[0],l=r[1];return t[0]=n*s,t[1]=i*s,t[2]=a*l,t[3]=o*l,t}},mat3:{create:function(){var t=new Float32Array(9);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromRotation:function(t,e){var r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=r,t[2]=0,t[3]=-r,t[4]=n,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}},mat4:{create:function(){var t=new Float32Array(16);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},translate:function(t,e,r){var n,i,a,o,s,l,c,u,f,h,p,d,g=r[0],v=r[1],m=r[2];return e===t?(t[12]=e[0]*g+e[4]*v+e[8]*m+e[12],t[13]=e[1]*g+e[5]*v+e[9]*m+e[13],t[14]=e[2]*g+e[6]*v+e[10]*m+e[14],t[15]=e[3]*g+e[7]*v+e[11]*m+e[15]):(n=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],c=e[6],u=e[7],f=e[8],h=e[9],p=e[10],d=e[11],t[0]=n,t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t[6]=c,t[7]=u,t[8]=f,t[9]=h,t[10]=p,t[11]=d,t[12]=n*g+s*v+f*m+e[12],t[13]=i*g+l*v+h*m+e[13],t[14]=a*g+c*v+p*m+e[14],t[15]=o*g+u*v+d*m+e[15]),t},scale:function(t,e,r){var n=r[0],i=r[1],a=r[2];return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*i,t[5]=e[5]*i,t[6]=e[6]*i,t[7]=e[7]*i,t[8]=e[8]*a,t[9]=e[9]*a,t[10]=e[10]*a,t[11]=e[11]*a,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},multiply:function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],c=e[6],u=e[7],f=e[8],h=e[9],p=e[10],d=e[11],g=e[12],v=e[13],m=e[14],y=e[15],x=r[0],b=r[1],_=r[2],w=r[3];return t[0]=x*n+b*s+_*f+w*g,t[1]=x*i+b*l+_*h+w*v,t[2]=x*a+b*c+_*p+w*m,t[3]=x*o+b*u+_*d+w*y,x=r[4],b=r[5],_=r[6],w=r[7],t[4]=x*n+b*s+_*f+w*g,t[5]=x*i+b*l+_*h+w*v,t[6]=x*a+b*c+_*p+w*m,t[7]=x*o+b*u+_*d+w*y,x=r[8],b=r[9],_=r[10],w=r[11],t[8]=x*n+b*s+_*f+w*g,t[9]=x*i+b*l+_*h+w*v,t[10]=x*a+b*c+_*p+w*m,t[11]=x*o+b*u+_*d+w*y,x=r[12],b=r[13],_=r[14],w=r[15],t[12]=x*n+b*s+_*f+w*g,t[13]=x*i+b*l+_*h+w*v,t[14]=x*a+b*c+_*p+w*m,t[15]=x*o+b*u+_*d+w*y,t},perspective:function(t,e,r,n,i){var a=1/Math.tan(e/2),o=1/(n-i);return t[0]=a/r,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=(i+n)*o,t[11]=-1,t[12]=0,t[13]=0,t[14]=2*i*n*o,t[15]=0,t},rotateX:function(t,e,r){var n=Math.sin(r),i=Math.cos(r),a=e[4],o=e[5],s=e[6],l=e[7],c=e[8],u=e[9],f=e[10],h=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=a*i+c*n,t[5]=o*i+u*n,t[6]=s*i+f*n,t[7]=l*i+h*n,t[8]=c*i-a*n,t[9]=u*i-o*n,t[10]=f*i-s*n,t[11]=h*i-l*n,t},rotateZ:function(t,e,r){var n=Math.sin(r),i=Math.cos(r),a=e[0],o=e[1],s=e[2],l=e[3],c=e[4],u=e[5],f=e[6],h=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=a*i+c*n,t[1]=o*i+u*n,t[2]=s*i+f*n,t[3]=l*i+h*n,t[4]=c*i-a*n,t[5]=u*i-o*n,t[6]=f*i-s*n,t[7]=h*i-l*n,t},invert:function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=e[4],s=e[5],l=e[6],c=e[7],u=e[8],f=e[9],h=e[10],p=e[11],d=e[12],g=e[13],v=e[14],m=e[15],y=r*s-n*o,x=r*l-i*o,b=r*c-a*o,_=n*l-i*s,w=n*c-a*s,k=i*c-a*l,M=u*g-f*d,A=u*v-h*d,T=u*m-p*d,S=f*v-h*g,E=f*m-p*g,C=h*m-p*v,L=y*C-x*E+b*S+_*T-w*A+k*M;return L?(L=1/L,t[0]=(s*C-l*E+c*S)*L,t[1]=(i*E-n*C-a*S)*L,t[2]=(g*k-v*w+m*_)*L,t[3]=(h*w-f*k-p*_)*L,t[4]=(l*T-o*C-c*A)*L,t[5]=(r*C-i*T+a*A)*L,t[6]=(v*b-d*k-m*x)*L,t[7]=(u*k-h*b+p*x)*L,t[8]=(o*E-s*T+c*M)*L,t[9]=(n*T-r*E-a*M)*L,t[10]=(d*w-g*b+m*y)*L,t[11]=(f*b-u*w-p*y)*L,t[12]=(s*A-o*S-l*M)*L,t[13]=(r*S-n*A+i*M)*L,t[14]=(g*x-d*_-v*y)*L,t[15]=(u*_-f*x+h*y)*L,t):null},ortho:function(t,e,r,n,i,a,o){var s=1/(e-r),l=1/(n-i),c=1/(a-o);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*c,t[11]=0,t[12]=(e+r)*s,t[13]=(i+n)*l,t[14]=(o+a)*c,t[15]=1,t}}})}),ei=(ti.vec3,ti.vec4),ri=(ti.mat2,ti.mat3,ti.mat4),ni=function(t){function e(e){t.call(this,e,Qn)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createBucket=function(t){return new Nn(t)},e.prototype.queryRadius=function(t){var e=t;return $n(\"circle-radius\",this,e)+$n(\"circle-stroke-width\",this,e)+Jn(this.paint.get(\"circle-translate\"))},e.prototype.queryIntersectsFeature=function(t,e,r,n,i,a,o){for(var s=Kn(t,this.paint.get(\"circle-translate\"),this.paint.get(\"circle-translate-anchor\"),i.angle,a),l=this.paint.get(\"circle-radius\").evaluate(e)+this.paint.get(\"circle-stroke-width\").evaluate(e),c=\"map\"===this.paint.get(\"circle-pitch-alignment\"),u=c?s:function(t,e,r){return s.map(function(t){return t.map(function(t){return ii(t,e,r)})})}(0,o,i),f=c?l*a:l,h=0,p=r;h<p.length;h+=1)for(var d=0,g=p[h];d<g.length;d+=1){var v=g[d],m=c?v:ii(v,o,i),y=f,x=ei.transformMat4([],[v.x,v.y,0,1],o);if(\"viewport\"===this.paint.get(\"circle-pitch-scale\")&&\"map\"===this.paint.get(\"circle-pitch-alignment\")?y*=x[3]/i.cameraToCenterDistance:\"map\"===this.paint.get(\"circle-pitch-scale\")&&\"viewport\"===this.paint.get(\"circle-pitch-alignment\")&&(y*=i.cameraToCenterDistance/x[3]),jn(u,m,y))return!0}return!1},e}(Hr);function ii(t,e,r){var n=ei.transformMat4([],[t.x,t.y,0,1],e);return new l((n[0]/n[3]+1)*r.width*.5,(n[1]/n[3]+1)*r.height*.5)}var ai=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Nn);function oi(t,e,r,n){var i=e.width,a=e.height;if(n){if(n.length!==i*a*r)throw new RangeError(\"mismatched image size\")}else n=new Uint8Array(i*a*r);return t.width=i,t.height=a,t.data=n,t}function si(t,e,r){var n=e.width,i=e.height;if(n!==t.width||i!==t.height){var a=oi({},{width:n,height:i},r);li(t,a,{x:0,y:0},{x:0,y:0},{width:Math.min(t.width,n),height:Math.min(t.height,i)},r),t.width=n,t.height=i,t.data=a.data}}function li(t,e,r,n,i,a){if(0===i.width||0===i.height)return e;if(i.width>t.width||i.height>t.height||r.x>t.width-i.width||r.y>t.height-i.height)throw new RangeError(\"out of range source coordinates for image copy\");if(i.width>e.width||i.height>e.height||n.x>e.width-i.width||n.y>e.height-i.height)throw new RangeError(\"out of range destination coordinates for image copy\");for(var o=t.data,s=e.data,l=0;l<i.height;l++)for(var c=((r.y+l)*t.width+r.x)*a,u=((n.y+l)*e.width+n.x)*a,f=0;f<i.width*a;f++)s[u+f]=o[c+f];return e}pr(\"HeatmapBucket\",ai,{omit:[\"layers\"]});var ci=function(t,e){oi(this,t,1,e)};ci.prototype.resize=function(t){si(this,t,1)},ci.prototype.clone=function(){return new ci({width:this.width,height:this.height},new Uint8Array(this.data))},ci.copy=function(t,e,r,n,i){li(t,e,r,n,i,1)};var ui=function(t,e){oi(this,t,4,e)};ui.prototype.resize=function(t){si(this,t,4)},ui.prototype.clone=function(){return new ui({width:this.width,height:this.height},new Uint8Array(this.data))},ui.copy=function(t,e,r,n,i){li(t,e,r,n,i,4)},pr(\"AlphaImage\",ci),pr(\"RGBAImage\",ui);var fi={paint:new qr({\"heatmap-radius\":new jr(I.paint_heatmap[\"heatmap-radius\"]),\"heatmap-weight\":new jr(I.paint_heatmap[\"heatmap-weight\"]),\"heatmap-intensity\":new Nr(I.paint_heatmap[\"heatmap-intensity\"]),\"heatmap-color\":new Ur(I.paint_heatmap[\"heatmap-color\"]),\"heatmap-opacity\":new Nr(I.paint_heatmap[\"heatmap-opacity\"])})};function hi(t,e){for(var r=new Uint8Array(1024),n={},i=0,a=0;i<256;i++,a+=4){n[e]=i/255;var o=t.evaluate(n);r[a+0]=Math.floor(255*o.r/o.a),r[a+1]=Math.floor(255*o.g/o.a),r[a+2]=Math.floor(255*o.b/o.a),r[a+3]=Math.floor(255*o.a)}return new ui({width:256,height:1},r)}var pi=function(t){function e(e){t.call(this,e,fi),this._updateColorRamp()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createBucket=function(t){return new ai(t)},e.prototype.setPaintProperty=function(e,r,n){t.prototype.setPaintProperty.call(this,e,r,n),\"heatmap-color\"===e&&this._updateColorRamp()},e.prototype._updateColorRamp=function(){var t=this._transitionablePaint._values[\"heatmap-color\"].value.expression;this.colorRamp=hi(t,\"heatmapDensity\"),this.colorRampTexture=null},e.prototype.resize=function(){this.heatmapFbo&&(this.heatmapFbo.destroy(),this.heatmapFbo=null)},e.prototype.queryRadius=function(){return 0},e.prototype.queryIntersectsFeature=function(){return!1},e.prototype.hasOffscreenPass=function(){return 0!==this.paint.get(\"heatmap-opacity\")&&\"none\"!==this.visibility},e}(Hr),di={paint:new qr({\"hillshade-illumination-direction\":new Nr(I.paint_hillshade[\"hillshade-illumination-direction\"]),\"hillshade-illumination-anchor\":new Nr(I.paint_hillshade[\"hillshade-illumination-anchor\"]),\"hillshade-exaggeration\":new Nr(I.paint_hillshade[\"hillshade-exaggeration\"]),\"hillshade-shadow-color\":new Nr(I.paint_hillshade[\"hillshade-shadow-color\"]),\"hillshade-highlight-color\":new Nr(I.paint_hillshade[\"hillshade-highlight-color\"]),\"hillshade-accent-color\":new Nr(I.paint_hillshade[\"hillshade-accent-color\"])})},gi=function(t){function e(e){t.call(this,e,di)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.hasOffscreenPass=function(){return 0!==this.paint.get(\"hillshade-exaggeration\")&&\"none\"!==this.visibility},e}(Hr),vi=Xr([{name:\"a_pos\",components:2,type:\"Int16\"}],4).members,mi=xi,yi=xi;function xi(t,e,r){r=r||2;var n,i,a,o,s,l,c,u=e&&e.length,f=u?e[0]*r:t.length,h=bi(t,0,f,r,!0),p=[];if(!h)return p;if(u&&(h=function(t,e,r,n){var i,a,o,s=[];for(i=0,a=e.length;i<a;i++)(o=bi(t,e[i]*n,i<a-1?e[i+1]*n:t.length,n,!1))===o.next&&(o.steiner=!0),s.push(Li(o));for(s.sort(Si),i=0;i<s.length;i++)Ei(s[i],r),r=_i(r,r.next);return r}(t,e,h,r)),t.length>80*r){n=a=t[0],i=o=t[1];for(var d=r;d<f;d+=r)(s=t[d])<n&&(n=s),(l=t[d+1])<i&&(i=l),s>a&&(a=s),l>o&&(o=l);c=0!==(c=Math.max(a-n,o-i))?1/c:0}return wi(h,p,r,n,i,c),p}function bi(t,e,r,n,i){var a,o;if(i===Vi(t,e,r,n)>0)for(a=e;a<r;a+=n)o=Fi(a,t[a],t[a+1],o);else for(a=r-n;a>=e;a-=n)o=Fi(a,t[a],t[a+1],o);return o&&Pi(o,o.next)&&(Ni(o),o=o.next),o}function _i(t,e){if(!t)return t;e||(e=t);var r,n=t;do{if(r=!1,n.steiner||!Pi(n,n.next)&&0!==Ii(n.prev,n,n.next))n=n.next;else{if(Ni(n),(n=e=n.prev)===n.next)break;r=!0}}while(r||n!==e);return e}function wi(t,e,r,n,i,a,o){if(t){!o&&a&&function(t,e,r,n){var i=t;do{null===i.z&&(i.z=Ci(i.x,i.y,e,r,n)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==t);i.prevZ.nextZ=null,i.prevZ=null,function(t){var e,r,n,i,a,o,s,l,c=1;do{for(r=t,t=null,a=null,o=0;r;){for(o++,n=r,s=0,e=0;e<c&&(s++,n=n.nextZ);e++);for(l=c;s>0||l>0&&n;)0!==s&&(0===l||!n||r.z<=n.z)?(i=r,r=r.nextZ,s--):(i=n,n=n.nextZ,l--),a?a.nextZ=i:t=i,i.prevZ=a,a=i;r=n}a.nextZ=null,c*=2}while(o>1)}(i)}(t,n,i,a);for(var s,l,c=t;t.prev!==t.next;)if(s=t.prev,l=t.next,a?Mi(t,n,i,a):ki(t))e.push(s.i/r),e.push(t.i/r),e.push(l.i/r),Ni(t),t=l.next,c=l.next;else if((t=l)===c){o?1===o?wi(t=Ai(t,e,r),e,r,n,i,a,2):2===o&&Ti(t,e,r,n,i,a):wi(_i(t),e,r,n,i,a,1);break}}}function ki(t){var e=t.prev,r=t,n=t.next;if(Ii(e,r,n)>=0)return!1;for(var i=t.next.next;i!==t.prev;){if(zi(e.x,e.y,r.x,r.y,n.x,n.y,i.x,i.y)&&Ii(i.prev,i,i.next)>=0)return!1;i=i.next}return!0}function Mi(t,e,r,n){var i=t.prev,a=t,o=t.next;if(Ii(i,a,o)>=0)return!1;for(var s=i.x<a.x?i.x<o.x?i.x:o.x:a.x<o.x?a.x:o.x,l=i.y<a.y?i.y<o.y?i.y:o.y:a.y<o.y?a.y:o.y,c=i.x>a.x?i.x>o.x?i.x:o.x:a.x>o.x?a.x:o.x,u=i.y>a.y?i.y>o.y?i.y:o.y:a.y>o.y?a.y:o.y,f=Ci(s,l,e,r,n),h=Ci(c,u,e,r,n),p=t.prevZ,d=t.nextZ;p&&p.z>=f&&d&&d.z<=h;){if(p!==t.prev&&p!==t.next&&zi(i.x,i.y,a.x,a.y,o.x,o.y,p.x,p.y)&&Ii(p.prev,p,p.next)>=0)return!1;if(p=p.prevZ,d!==t.prev&&d!==t.next&&zi(i.x,i.y,a.x,a.y,o.x,o.y,d.x,d.y)&&Ii(d.prev,d,d.next)>=0)return!1;d=d.nextZ}for(;p&&p.z>=f;){if(p!==t.prev&&p!==t.next&&zi(i.x,i.y,a.x,a.y,o.x,o.y,p.x,p.y)&&Ii(p.prev,p,p.next)>=0)return!1;p=p.prevZ}for(;d&&d.z<=h;){if(d!==t.prev&&d!==t.next&&zi(i.x,i.y,a.x,a.y,o.x,o.y,d.x,d.y)&&Ii(d.prev,d,d.next)>=0)return!1;d=d.nextZ}return!0}function Ai(t,e,r){var n=t;do{var i=n.prev,a=n.next.next;!Pi(i,a)&&Di(i,n,n.next,a)&&Ri(i,a)&&Ri(a,i)&&(e.push(i.i/r),e.push(n.i/r),e.push(a.i/r),Ni(n),Ni(n.next),n=t=a),n=n.next}while(n!==t);return n}function Ti(t,e,r,n,i,a){var o=t;do{for(var s=o.next.next;s!==o.prev;){if(o.i!==s.i&&Oi(o,s)){var l=Bi(o,s);return o=_i(o,o.next),l=_i(l,l.next),wi(o,e,r,n,i,a),void wi(l,e,r,n,i,a)}s=s.next}o=o.next}while(o!==t)}function Si(t,e){return t.x-e.x}function Ei(t,e){if(e=function(t,e){var r,n=e,i=t.x,a=t.y,o=-1/0;do{if(a<=n.y&&a>=n.next.y&&n.next.y!==n.y){var s=n.x+(a-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(s<=i&&s>o){if(o=s,s===i){if(a===n.y)return n;if(a===n.next.y)return n.next}r=n.x<n.next.x?n:n.next}}n=n.next}while(n!==e);if(!r)return null;if(i===o)return r.prev;var l,c=r,u=r.x,f=r.y,h=1/0;for(n=r.next;n!==c;)i>=n.x&&n.x>=u&&i!==n.x&&zi(a<f?i:o,a,u,f,a<f?o:i,a,n.x,n.y)&&((l=Math.abs(a-n.y)/(i-n.x))<h||l===h&&n.x>r.x)&&Ri(n,t)&&(r=n,h=l),n=n.next;return r}(t,e)){var r=Bi(e,t);_i(r,r.next)}}function Ci(t,e,r,n,i){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-r)*i)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-n)*i)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function Li(t){var e=t,r=t;do{e.x<r.x&&(r=e),e=e.next}while(e!==t);return r}function zi(t,e,r,n,i,a,o,s){return(i-o)*(e-s)-(t-o)*(a-s)>=0&&(t-o)*(n-s)-(r-o)*(e-s)>=0&&(r-o)*(a-s)-(i-o)*(n-s)>=0}function Oi(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){var r=t;do{if(r.i!==t.i&&r.next.i!==t.i&&r.i!==e.i&&r.next.i!==e.i&&Di(r,r.next,t,e))return!0;r=r.next}while(r!==t);return!1}(t,e)&&Ri(t,e)&&Ri(e,t)&&function(t,e){var r=t,n=!1,i=(t.x+e.x)/2,a=(t.y+e.y)/2;do{r.y>a!=r.next.y>a&&r.next.y!==r.y&&i<(r.next.x-r.x)*(a-r.y)/(r.next.y-r.y)+r.x&&(n=!n),r=r.next}while(r!==t);return n}(t,e)}function Ii(t,e,r){return(e.y-t.y)*(r.x-e.x)-(e.x-t.x)*(r.y-e.y)}function Pi(t,e){return t.x===e.x&&t.y===e.y}function Di(t,e,r,n){return!!(Pi(t,e)&&Pi(r,n)||Pi(t,n)&&Pi(r,e))||Ii(t,e,r)>0!=Ii(t,e,n)>0&&Ii(r,n,t)>0!=Ii(r,n,e)>0}function Ri(t,e){return Ii(t.prev,t,t.next)<0?Ii(t,e,t.next)>=0&&Ii(t,t.prev,e)>=0:Ii(t,e,t.prev)<0||Ii(t,t.next,e)<0}function Bi(t,e){var r=new ji(t.i,t.x,t.y),n=new ji(e.i,e.x,e.y),i=t.next,a=e.prev;return t.next=e,e.prev=t,r.next=i,i.prev=r,n.next=r,r.prev=n,a.next=n,n.prev=a,n}function Fi(t,e,r,n){var i=new ji(t,e,r);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function Ni(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function ji(t,e,r){this.i=t,this.x=e,this.y=r,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function Vi(t,e,r,n){for(var i=0,a=e,o=r-n;a<r;a+=n)i+=(t[o]-t[a])*(t[a+1]+t[o+1]),o=a;return i}xi.deviation=function(t,e,r,n){var i=e&&e.length,a=i?e[0]*r:t.length,o=Math.abs(Vi(t,0,a,r));if(i)for(var s=0,l=e.length;s<l;s++){var c=e[s]*r,u=s<l-1?e[s+1]*r:t.length;o-=Math.abs(Vi(t,c,u,r))}var f=0;for(s=0;s<n.length;s+=3){var h=n[s]*r,p=n[s+1]*r,d=n[s+2]*r;f+=Math.abs((t[h]-t[d])*(t[p+1]-t[h+1])-(t[h]-t[p])*(t[d+1]-t[h+1]))}return 0===o&&0===f?0:Math.abs((f-o)/o)},xi.flatten=function(t){for(var e=t[0][0].length,r={vertices:[],holes:[],dimensions:e},n=0,i=0;i<t.length;i++){for(var a=0;a<t[i].length;a++)for(var o=0;o<e;o++)r.vertices.push(t[i][a][o]);i>0&&(n+=t[i-1].length,r.holes.push(n))}return r},mi.default=yi;var Ui=Hi,qi=Hi;function Hi(t,e,r,n,i){!function t(e,r,n,i,a){for(;i>n;){if(i-n>600){var o=i-n+1,s=r-n+1,l=Math.log(o),c=.5*Math.exp(2*l/3),u=.5*Math.sqrt(l*c*(o-c)/o)*(s-o/2<0?-1:1);t(e,r,Math.max(n,Math.floor(r-s*c/o+u)),Math.min(i,Math.floor(r+(o-s)*c/o+u)),a)}var f=e[r],h=n,p=i;for(Gi(e,n,r),a(e[i],f)>0&&Gi(e,n,i);h<p;){for(Gi(e,h,p),h++,p--;a(e[h],f)<0;)h++;for(;a(e[p],f)>0;)p--}0===a(e[n],f)?Gi(e,n,p):Gi(e,++p,i),p<=r&&(n=p+1),r<=p&&(i=p-1)}}(t,e,r||0,n||t.length-1,i||Wi)}function Gi(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function Wi(t,e){return t<e?-1:t>e?1:0}function Yi(t,e){var r=t.length;if(r<=1)return[t];for(var n,i,a=[],o=0;o<r;o++){var s=k(t[o]);0!==s&&(t[o].area=Math.abs(s),void 0===i&&(i=s<0),i===s<0?(n&&a.push(n),n=[t[o]]):n.push(t[o]))}if(n&&a.push(n),e>1)for(var l=0;l<a.length;l++)a[l].length<=e||(Ui(a[l],e,1,a[l].length-1,Xi),a[l]=a[l].slice(0,e));return a}function Xi(t,e){return e.area-t.area}Ui.default=qi;var Zi=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(function(t){return t.id}),this.index=t.index,this.layoutVertexArray=new $r,this.indexArray=new fn,this.indexArray2=new hn,this.programConfigurations=new In(vi,t.layers,t.zoom),this.segments=new Tn,this.segments2=new Tn};Zi.prototype.populate=function(t,e){for(var r=0,n=t;r<n.length;r+=1){var i=n[r],a=i.feature,o=i.index,s=i.sourceLayerIndex;if(this.layers[0]._featureFilter(new Lr(this.zoom),a)){var l=Bn(a);this.addFeature(a,l),e.featureIndex.insert(a,l,o,s,this.index)}}},Zi.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},Zi.prototype.upload=function(t){this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,vi),this.indexBuffer=t.createIndexBuffer(this.indexArray),this.indexBuffer2=t.createIndexBuffer(this.indexArray2),this.programConfigurations.upload(t)},Zi.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())},Zi.prototype.addFeature=function(t,e){for(var r=0,n=Yi(e,500);r<n.length;r+=1){for(var i=n[r],a=0,o=0,s=i;o<s.length;o+=1)a+=s[o].length;for(var l=this.segments.prepareSegment(a,this.layoutVertexArray,this.indexArray),c=l.vertexLength,u=[],f=[],h=0,p=i;h<p.length;h+=1){var d=p[h];if(0!==d.length){d!==i[0]&&f.push(u.length/2);var g=this.segments2.prepareSegment(d.length,this.layoutVertexArray,this.indexArray2),v=g.vertexLength;this.layoutVertexArray.emplaceBack(d[0].x,d[0].y),this.indexArray2.emplaceBack(v+d.length-1,v),u.push(d[0].x),u.push(d[0].y);for(var m=1;m<d.length;m++)this.layoutVertexArray.emplaceBack(d[m].x,d[m].y),this.indexArray2.emplaceBack(v+m-1,v+m),u.push(d[m].x),u.push(d[m].y);g.vertexLength+=d.length,g.primitiveLength+=d.length}}for(var y=mi(u,f),x=0;x<y.length;x+=3)this.indexArray.emplaceBack(c+y[x],c+y[x+1],c+y[x+2]);l.vertexLength+=a,l.primitiveLength+=y.length/3}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t)},pr(\"FillBucket\",Zi,{omit:[\"layers\"]});var $i={paint:new qr({\"fill-antialias\":new Nr(I.paint_fill[\"fill-antialias\"]),\"fill-opacity\":new jr(I.paint_fill[\"fill-opacity\"]),\"fill-color\":new jr(I.paint_fill[\"fill-color\"]),\"fill-outline-color\":new jr(I.paint_fill[\"fill-outline-color\"]),\"fill-translate\":new Nr(I.paint_fill[\"fill-translate\"]),\"fill-translate-anchor\":new Nr(I.paint_fill[\"fill-translate-anchor\"]),\"fill-pattern\":new Vr(I.paint_fill[\"fill-pattern\"])})},Ji=function(t){function e(e){t.call(this,e,$i)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.recalculate=function(t){this.paint=this._transitioningPaint.possiblyEvaluate(t);var e=this.paint._values[\"fill-outline-color\"];\"constant\"===e.value.kind&&void 0===e.value.value&&(this.paint._values[\"fill-outline-color\"]=this.paint._values[\"fill-color\"])},e.prototype.createBucket=function(t){return new Zi(t)},e.prototype.queryRadius=function(){return Jn(this.paint.get(\"fill-translate\"))},e.prototype.queryIntersectsFeature=function(t,e,r,n,i,a){return Vn(Kn(t,this.paint.get(\"fill-translate\"),this.paint.get(\"fill-translate-anchor\"),i.angle,a),r)},e}(Hr),Ki=Xr([{name:\"a_pos\",components:2,type:\"Int16\"},{name:\"a_normal_ed\",components:4,type:\"Int16\"}],4).members,Qi=Math.pow(2,13);function ta(t,e,r,n,i,a,o,s){t.emplaceBack(e,r,2*Math.floor(n*Qi)+o,i*Qi*2,a*Qi*2,Math.round(s))}var ea=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(function(t){return t.id}),this.index=t.index,this.layoutVertexArray=new Kr,this.indexArray=new fn,this.programConfigurations=new In(Ki,t.layers,t.zoom),this.segments=new Tn};function ra(t,e){return t.x===e.x&&(t.x<0||t.x>Dn)||t.y===e.y&&(t.y<0||t.y>Dn)}function na(t){return t.every(function(t){return t.x<0})||t.every(function(t){return t.x>Dn})||t.every(function(t){return t.y<0})||t.every(function(t){return t.y>Dn})}ea.prototype.populate=function(t,e){for(var r=0,n=t;r<n.length;r+=1){var i=n[r],a=i.feature,o=i.index,s=i.sourceLayerIndex;if(this.layers[0]._featureFilter(new Lr(this.zoom),a)){var l=Bn(a);this.addFeature(a,l),e.featureIndex.insert(a,l,o,s,this.index)}}},ea.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},ea.prototype.upload=function(t){this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,Ki),this.indexBuffer=t.createIndexBuffer(this.indexArray),this.programConfigurations.upload(t)},ea.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())},ea.prototype.addFeature=function(t,e){for(var r=0,n=Yi(e,500);r<n.length;r+=1){for(var i=n[r],a=0,o=0,s=i;o<s.length;o+=1)a+=s[o].length;for(var l=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray),c=0,u=i;c<u.length;c+=1){var f=u[c];if(0!==f.length&&!na(f))for(var h=0,p=0;p<f.length;p++){var d=f[p];if(p>=1){var g=f[p-1];if(!ra(d,g)){l.vertexLength+4>Tn.MAX_VERTEX_ARRAY_LENGTH&&(l=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var v=d.sub(g)._perp()._unit(),m=g.dist(d);h+m>32768&&(h=0),ta(this.layoutVertexArray,d.x,d.y,v.x,v.y,0,0,h),ta(this.layoutVertexArray,d.x,d.y,v.x,v.y,0,1,h),h+=m,ta(this.layoutVertexArray,g.x,g.y,v.x,v.y,0,0,h),ta(this.layoutVertexArray,g.x,g.y,v.x,v.y,0,1,h);var y=l.vertexLength;this.indexArray.emplaceBack(y,y+1,y+2),this.indexArray.emplaceBack(y+1,y+2,y+3),l.vertexLength+=4,l.primitiveLength+=2}}}}l.vertexLength+a>Tn.MAX_VERTEX_ARRAY_LENGTH&&(l=this.segments.prepareSegment(a,this.layoutVertexArray,this.indexArray));for(var x=[],b=[],_=l.vertexLength,w=0,k=i;w<k.length;w+=1){var M=k[w];if(0!==M.length){M!==i[0]&&b.push(x.length/2);for(var A=0;A<M.length;A++){var T=M[A];ta(this.layoutVertexArray,T.x,T.y,0,0,1,1,0),x.push(T.x),x.push(T.y)}}}for(var S=mi(x,b),E=0;E<S.length;E+=3)this.indexArray.emplaceBack(_+S[E],_+S[E+1],_+S[E+2]);l.primitiveLength+=S.length/3,l.vertexLength+=a}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t)},pr(\"FillExtrusionBucket\",ea,{omit:[\"layers\"]});var ia={paint:new qr({\"fill-extrusion-opacity\":new Nr(I[\"paint_fill-extrusion\"][\"fill-extrusion-opacity\"]),\"fill-extrusion-color\":new jr(I[\"paint_fill-extrusion\"][\"fill-extrusion-color\"]),\"fill-extrusion-translate\":new Nr(I[\"paint_fill-extrusion\"][\"fill-extrusion-translate\"]),\"fill-extrusion-translate-anchor\":new Nr(I[\"paint_fill-extrusion\"][\"fill-extrusion-translate-anchor\"]),\"fill-extrusion-pattern\":new Vr(I[\"paint_fill-extrusion\"][\"fill-extrusion-pattern\"]),\"fill-extrusion-height\":new jr(I[\"paint_fill-extrusion\"][\"fill-extrusion-height\"]),\"fill-extrusion-base\":new jr(I[\"paint_fill-extrusion\"][\"fill-extrusion-base\"])})},aa=function(t){function e(e){t.call(this,e,ia)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createBucket=function(t){return new ea(t)},e.prototype.queryRadius=function(){return Jn(this.paint.get(\"fill-extrusion-translate\"))},e.prototype.queryIntersectsFeature=function(t,e,r,n,i,a){return Vn(Kn(t,this.paint.get(\"fill-extrusion-translate\"),this.paint.get(\"fill-extrusion-translate-anchor\"),i.angle,a),r)},e.prototype.hasOffscreenPass=function(){return 0!==this.paint.get(\"fill-extrusion-opacity\")&&\"none\"!==this.visibility},e.prototype.resize=function(){this.viewportFrame&&(this.viewportFrame.destroy(),this.viewportFrame=null)},e}(Hr),oa=Xr([{name:\"a_pos_normal\",components:4,type:\"Int16\"},{name:\"a_data\",components:4,type:\"Uint8\"}],4).members,sa=la;function la(t,e,r,n,i){this.properties={},this.extent=r,this.type=0,this._pbf=t,this._geometry=-1,this._keys=n,this._values=i,t.readFields(ca,this,e)}function ca(t,e,r){1==t?e.id=r.readVarint():2==t?function(t,e){for(var r=t.readVarint()+t.pos;t.pos<r;){var n=e._keys[t.readVarint()],i=e._values[t.readVarint()];e.properties[n]=i}}(r,e):3==t?e.type=r.readVarint():4==t&&(e._geometry=r.pos)}function ua(t){for(var e,r,n=0,i=0,a=t.length,o=a-1;i<a;o=i++)e=t[i],n+=((r=t[o]).x-e.x)*(e.y+r.y);return n}la.types=[\"Unknown\",\"Point\",\"LineString\",\"Polygon\"],la.prototype.loadGeometry=function(){var t=this._pbf;t.pos=this._geometry;for(var e,r=t.readVarint()+t.pos,n=1,i=0,a=0,o=0,s=[];t.pos<r;){if(i<=0){var c=t.readVarint();n=7&c,i=c>>3}if(i--,1===n||2===n)a+=t.readSVarint(),o+=t.readSVarint(),1===n&&(e&&s.push(e),e=[]),e.push(new l(a,o));else{if(7!==n)throw new Error(\"unknown command \"+n);e&&e.push(e[0].clone())}}return e&&s.push(e),s},la.prototype.bbox=function(){var t=this._pbf;t.pos=this._geometry;for(var e=t.readVarint()+t.pos,r=1,n=0,i=0,a=0,o=1/0,s=-1/0,l=1/0,c=-1/0;t.pos<e;){if(n<=0){var u=t.readVarint();r=7&u,n=u>>3}if(n--,1===r||2===r)(i+=t.readSVarint())<o&&(o=i),i>s&&(s=i),(a+=t.readSVarint())<l&&(l=a),a>c&&(c=a);else if(7!==r)throw new Error(\"unknown command \"+r)}return[o,l,s,c]},la.prototype.toGeoJSON=function(t,e,r){var n,i,a=this.extent*Math.pow(2,r),o=this.extent*t,s=this.extent*e,l=this.loadGeometry(),c=la.types[this.type];function u(t){for(var e=0;e<t.length;e++){var r=t[e],n=180-360*(r.y+s)/a;t[e]=[360*(r.x+o)/a-180,360/Math.PI*Math.atan(Math.exp(n*Math.PI/180))-90]}}switch(this.type){case 1:var f=[];for(n=0;n<l.length;n++)f[n]=l[n][0];u(l=f);break;case 2:for(n=0;n<l.length;n++)u(l[n]);break;case 3:for(l=function(t){var e=t.length;if(e<=1)return[t];for(var r,n,i=[],a=0;a<e;a++){var o=ua(t[a]);0!==o&&(void 0===n&&(n=o<0),n===o<0?(r&&i.push(r),r=[t[a]]):r.push(t[a]))}return r&&i.push(r),i}(l),n=0;n<l.length;n++)for(i=0;i<l[n].length;i++)u(l[n][i])}1===l.length?l=l[0]:c=\"Multi\"+c;var h={type:\"Feature\",geometry:{type:c,coordinates:l},properties:this.properties};return\"id\"in this&&(h.id=this.id),h};var fa=ha;function ha(t,e){this.version=1,this.name=null,this.extent=4096,this.length=0,this._pbf=t,this._keys=[],this._values=[],this._features=[],t.readFields(pa,this,e),this.length=this._features.length}function pa(t,e,r){15===t?e.version=r.readVarint():1===t?e.name=r.readString():5===t?e.extent=r.readVarint():2===t?e._features.push(r.pos):3===t?e._keys.push(r.readString()):4===t&&e._values.push(function(t){for(var e=null,r=t.readVarint()+t.pos;t.pos<r;){var n=t.readVarint()>>3;e=1===n?t.readString():2===n?t.readFloat():3===n?t.readDouble():4===n?t.readVarint64():5===n?t.readVarint():6===n?t.readSVarint():7===n?t.readBoolean():null}return e}(r))}function da(t,e,r){if(3===t){var n=new fa(r,r.readVarint()+r.pos);n.length&&(e[n.name]=n)}}ha.prototype.feature=function(t){if(t<0||t>=this._features.length)throw new Error(\"feature index out of bounds\");this._pbf.pos=this._features[t];var e=this._pbf.readVarint()+this._pbf.pos;return new sa(this._pbf,e,this.extent,this._keys,this._values)};var ga={VectorTile:function(t,e){this.layers=t.readFields(da,{},e)},VectorTileFeature:sa,VectorTileLayer:fa},va=ga.VectorTileFeature.types,ma=63,ya=Math.cos(Math.PI/180*37.5),xa=.5,ba=Math.pow(2,14)/xa;function _a(t,e,r,n,i,a,o){t.emplaceBack(e.x,e.y,n?1:0,i?1:-1,Math.round(ma*r.x)+128,Math.round(ma*r.y)+128,1+(0===a?0:a<0?-1:1)|(o*xa&63)<<2,o*xa>>6)}var wa=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(function(t){return t.id}),this.index=t.index,this.layoutVertexArray=new Qr,this.indexArray=new fn,this.programConfigurations=new In(oa,t.layers,t.zoom),this.segments=new Tn};function ka(t,e){return(t/e.tileTotal*(e.end-e.start)+e.start)*(ba-1)}wa.prototype.populate=function(t,e){for(var r=0,n=t;r<n.length;r+=1){var i=n[r],a=i.feature,o=i.index,s=i.sourceLayerIndex;if(this.layers[0]._featureFilter(new Lr(this.zoom),a)){var l=Bn(a);this.addFeature(a,l),e.featureIndex.insert(a,l,o,s,this.index)}}},wa.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},wa.prototype.upload=function(t){this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,oa),this.indexBuffer=t.createIndexBuffer(this.indexArray),this.programConfigurations.upload(t)},wa.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())},wa.prototype.addFeature=function(t,e){for(var r=this.layers[0].layout,n=r.get(\"line-join\").evaluate(t),i=r.get(\"line-cap\"),a=r.get(\"line-miter-limit\"),o=r.get(\"line-round-limit\"),s=0,l=e;s<l.length;s+=1){var c=l[s];this.addLine(c,t,n,i,a,o)}},wa.prototype.addLine=function(t,e,r,n,i,a){var o=null;e.properties&&e.properties.hasOwnProperty(\"mapbox_clip_start\")&&e.properties.hasOwnProperty(\"mapbox_clip_end\")&&(o={start:e.properties.mapbox_clip_start,end:e.properties.mapbox_clip_end,tileTotal:void 0});for(var s=\"Polygon\"===va[e.type],l=t.length;l>=2&&t[l-1].equals(t[l-2]);)l--;for(var c=0;c<l-1&&t[c].equals(t[c+1]);)c++;if(!(l<(s?3:2))){o&&(o.tileTotal=function(t,e,r){for(var n,i,a=0,o=c;o<r-1;o++)n=t[o],i=t[o+1],a+=n.dist(i);return a}(t,0,l)),\"bevel\"===r&&(i=1.05);var u=Dn/(512*this.overscaling)*15,f=t[c],h=this.segments.prepareSegment(10*l,this.layoutVertexArray,this.indexArray);this.distance=0;var p,d,g,v=n,m=s?\"butt\":n,y=!0,x=void 0,b=void 0,_=void 0,w=void 0;this.e1=this.e2=this.e3=-1,s&&(p=t[l-2],w=f.sub(p)._unit()._perp());for(var k=c;k<l;k++)if(!(b=s&&k===l-1?t[c+1]:t[k+1])||!t[k].equals(b)){w&&(_=w),p&&(x=p),p=t[k],w=b?b.sub(p)._unit()._perp():_;var M=(_=_||w).add(w);0===M.x&&0===M.y||M._unit();var A=M.x*w.x+M.y*w.y,T=0!==A?1/A:1/0,S=A<ya&&x&&b;if(S&&k>c){var E=p.dist(x);if(E>2*u){var C=p.sub(p.sub(x)._mult(u/E)._round());this.distance+=C.dist(x),this.addCurrentVertex(C,this.distance,_.mult(1),0,0,!1,h,o),x=C}}var L=x&&b,z=L?r:b?v:m;if(L&&\"round\"===z&&(T<a?z=\"miter\":T<=2&&(z=\"fakeround\")),\"miter\"===z&&T>i&&(z=\"bevel\"),\"bevel\"===z&&(T>2&&(z=\"flipbevel\"),T<i&&(z=\"miter\")),x&&(this.distance+=p.dist(x)),\"miter\"===z)M._mult(T),this.addCurrentVertex(p,this.distance,M,0,0,!1,h,o);else if(\"flipbevel\"===z){if(T>100)M=w.clone().mult(-1);else{var O=_.x*w.y-_.y*w.x>0?-1:1,I=T*_.add(w).mag()/_.sub(w).mag();M._perp()._mult(I*O)}this.addCurrentVertex(p,this.distance,M,0,0,!1,h,o),this.addCurrentVertex(p,this.distance,M.mult(-1),0,0,!1,h,o)}else if(\"bevel\"===z||\"fakeround\"===z){var P=_.x*w.y-_.y*w.x>0,D=-Math.sqrt(T*T-1);if(P?(g=0,d=D):(d=0,g=D),y||this.addCurrentVertex(p,this.distance,_,d,g,!1,h,o),\"fakeround\"===z){for(var R=Math.floor(8*(.5-(A-.5))),B=void 0,F=0;F<R;F++)B=w.mult((F+1)/(R+1))._add(_)._unit(),this.addPieSliceVertex(p,this.distance,B,P,h,o);this.addPieSliceVertex(p,this.distance,M,P,h,o);for(var N=R-1;N>=0;N--)B=_.mult((N+1)/(R+1))._add(w)._unit(),this.addPieSliceVertex(p,this.distance,B,P,h,o)}b&&this.addCurrentVertex(p,this.distance,w,-d,-g,!1,h,o)}else\"butt\"===z?(y||this.addCurrentVertex(p,this.distance,_,0,0,!1,h,o),b&&this.addCurrentVertex(p,this.distance,w,0,0,!1,h,o)):\"square\"===z?(y||(this.addCurrentVertex(p,this.distance,_,1,1,!1,h,o),this.e1=this.e2=-1),b&&this.addCurrentVertex(p,this.distance,w,-1,-1,!1,h,o)):\"round\"===z&&(y||(this.addCurrentVertex(p,this.distance,_,0,0,!1,h,o),this.addCurrentVertex(p,this.distance,_,1,1,!0,h,o),this.e1=this.e2=-1),b&&(this.addCurrentVertex(p,this.distance,w,-1,-1,!0,h,o),this.addCurrentVertex(p,this.distance,w,0,0,!1,h,o)));if(S&&k<l-1){var j=p.dist(b);if(j>2*u){var V=p.add(b.sub(p)._mult(u/j)._round());this.distance+=V.dist(p),this.addCurrentVertex(V,this.distance,w.mult(1),0,0,!1,h,o),p=V}}y=!1}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e)}},wa.prototype.addCurrentVertex=function(t,e,r,n,i,a,o,s){var l,c=this.layoutVertexArray,u=this.indexArray;s&&(e=ka(e,s)),l=r.clone(),n&&l._sub(r.perp()._mult(n)),_a(c,t,l,a,!1,n,e),this.e3=o.vertexLength++,this.e1>=0&&this.e2>=0&&(u.emplaceBack(this.e1,this.e2,this.e3),o.primitiveLength++),this.e1=this.e2,this.e2=this.e3,l=r.mult(-1),i&&l._sub(r.perp()._mult(i)),_a(c,t,l,a,!0,-i,e),this.e3=o.vertexLength++,this.e1>=0&&this.e2>=0&&(u.emplaceBack(this.e1,this.e2,this.e3),o.primitiveLength++),this.e1=this.e2,this.e2=this.e3,e>ba/2&&!s&&(this.distance=0,this.addCurrentVertex(t,this.distance,r,n,i,a,o))},wa.prototype.addPieSliceVertex=function(t,e,r,n,i,a){r=r.mult(n?-1:1);var o=this.layoutVertexArray,s=this.indexArray;a&&(e=ka(e,a)),_a(o,t,r,!1,n,0,e),this.e3=i.vertexLength++,this.e1>=0&&this.e2>=0&&(s.emplaceBack(this.e1,this.e2,this.e3),i.primitiveLength++),n?this.e2=this.e3:this.e1=this.e3},pr(\"LineBucket\",wa,{omit:[\"layers\"]});var Ma=new qr({\"line-cap\":new Nr(I.layout_line[\"line-cap\"]),\"line-join\":new jr(I.layout_line[\"line-join\"]),\"line-miter-limit\":new Nr(I.layout_line[\"line-miter-limit\"]),\"line-round-limit\":new Nr(I.layout_line[\"line-round-limit\"])}),Aa={paint:new qr({\"line-opacity\":new jr(I.paint_line[\"line-opacity\"]),\"line-color\":new jr(I.paint_line[\"line-color\"]),\"line-translate\":new Nr(I.paint_line[\"line-translate\"]),\"line-translate-anchor\":new Nr(I.paint_line[\"line-translate-anchor\"]),\"line-width\":new jr(I.paint_line[\"line-width\"]),\"line-gap-width\":new jr(I.paint_line[\"line-gap-width\"]),\"line-offset\":new jr(I.paint_line[\"line-offset\"]),\"line-blur\":new jr(I.paint_line[\"line-blur\"]),\"line-dasharray\":new Vr(I.paint_line[\"line-dasharray\"]),\"line-pattern\":new Vr(I.paint_line[\"line-pattern\"]),\"line-gradient\":new Ur(I.paint_line[\"line-gradient\"])}),layout:Ma},Ta=new(function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.possiblyEvaluate=function(e,r){return r=new Lr(Math.floor(r.zoom),{now:r.now,fadeDuration:r.fadeDuration,zoomHistory:r.zoomHistory,transition:r.transition}),t.prototype.possiblyEvaluate.call(this,e,r)},e.prototype.evaluate=function(e,r,n){return r=p({},r,{zoom:Math.floor(r.zoom)}),t.prototype.evaluate.call(this,e,r,n)},e}(jr))(Aa.paint.properties[\"line-width\"].specification);Ta.useIntegerZoom=!0;var Sa=function(t){function e(e){t.call(this,e,Aa)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setPaintProperty=function(e,r,n){t.prototype.setPaintProperty.call(this,e,r,n),\"line-gradient\"===e&&this._updateGradient()},e.prototype._updateGradient=function(){var t=this._transitionablePaint._values[\"line-gradient\"].value.expression;this.gradient=hi(t,\"lineProgress\"),this.gradientTexture=null},e.prototype.recalculate=function(e){t.prototype.recalculate.call(this,e),this.paint._values[\"line-floorwidth\"]=Ta.possiblyEvaluate(this._transitioningPaint._values[\"line-width\"].value,e)},e.prototype.createBucket=function(t){return new wa(t)},e.prototype.queryRadius=function(t){var e=t,r=Ea($n(\"line-width\",this,e),$n(\"line-gap-width\",this,e)),n=$n(\"line-offset\",this,e);return r/2+Math.abs(n)+Jn(this.paint.get(\"line-translate\"))},e.prototype.queryIntersectsFeature=function(t,e,r,n,i,a){var o=Kn(t,this.paint.get(\"line-translate\"),this.paint.get(\"line-translate-anchor\"),i.angle,a),s=a/2*Ea(this.paint.get(\"line-width\").evaluate(e),this.paint.get(\"line-gap-width\").evaluate(e)),c=this.paint.get(\"line-offset\").evaluate(e);return c&&(r=function(t,e){for(var r=[],n=new l(0,0),i=0;i<t.length;i++){for(var a=t[i],o=[],s=0;s<a.length;s++){var c=a[s-1],u=a[s],f=a[s+1],h=0===s?n:u.sub(c)._unit()._perp(),p=s===a.length-1?n:f.sub(u)._unit()._perp(),d=h._add(p)._unit(),g=d.x*p.x+d.y*p.y;d._mult(1/g),o.push(d._mult(e)._add(u))}r.push(o)}return r}(r,c*a)),Un(o,r,s)},e}(Hr);function Ea(t,e){return e>0?e+2*t:t}var Ca=Xr([{name:\"a_pos_offset\",components:4,type:\"Int16\"},{name:\"a_data\",components:4,type:\"Uint16\"}]),La=Xr([{name:\"a_projected_pos\",components:3,type:\"Float32\"}],4),za=(Xr([{name:\"a_fade_opacity\",components:1,type:\"Uint32\"}],4),Xr([{name:\"a_placed\",components:2,type:\"Uint8\"}],4)),Oa=(Xr([{type:\"Int16\",name:\"anchorPointX\"},{type:\"Int16\",name:\"anchorPointY\"},{type:\"Int16\",name:\"x1\"},{type:\"Int16\",name:\"y1\"},{type:\"Int16\",name:\"x2\"},{type:\"Int16\",name:\"y2\"},{type:\"Uint32\",name:\"featureIndex\"},{type:\"Uint16\",name:\"sourceLayerIndex\"},{type:\"Uint16\",name:\"bucketIndex\"},{type:\"Int16\",name:\"radius\"},{type:\"Int16\",name:\"signedDistanceFromAnchor\"}]),Xr([{name:\"a_pos\",components:2,type:\"Int16\"},{name:\"a_anchor_pos\",components:2,type:\"Int16\"},{name:\"a_extrude\",components:2,type:\"Int16\"}],4)),Ia=Xr([{name:\"a_pos\",components:2,type:\"Int16\"},{name:\"a_anchor_pos\",components:2,type:\"Int16\"},{name:\"a_extrude\",components:2,type:\"Int16\"}],4);function Pa(t,e,r){var n=e.layout.get(\"text-transform\").evaluate(r);return\"uppercase\"===n?t=t.toLocaleUpperCase():\"lowercase\"===n&&(t=t.toLocaleLowerCase()),Cr.applyArabicShaping&&(t=Cr.applyArabicShaping(t)),t}Xr([{type:\"Int16\",name:\"anchorX\"},{type:\"Int16\",name:\"anchorY\"},{type:\"Uint16\",name:\"glyphStartIndex\"},{type:\"Uint16\",name:\"numGlyphs\"},{type:\"Uint32\",name:\"vertexStartIndex\"},{type:\"Uint32\",name:\"lineStartIndex\"},{type:\"Uint32\",name:\"lineLength\"},{type:\"Uint16\",name:\"segment\"},{type:\"Uint16\",name:\"lowerSize\"},{type:\"Uint16\",name:\"upperSize\"},{type:\"Float32\",name:\"lineOffsetX\"},{type:\"Float32\",name:\"lineOffsetY\"},{type:\"Uint8\",name:\"writingMode\"},{type:\"Uint8\",name:\"hidden\"}]),Xr([{type:\"Float32\",name:\"offsetX\"}]),Xr([{type:\"Int16\",name:\"x\"},{type:\"Int16\",name:\"y\"},{type:\"Int16\",name:\"tileUnitDistanceFromAnchor\"}]);var Da={\"!\":\"\\ufe15\",\"#\":\"\\uff03\",$:\"\\uff04\",\"%\":\"\\uff05\",\"&\":\"\\uff06\",\"(\":\"\\ufe35\",\")\":\"\\ufe36\",\"*\":\"\\uff0a\",\"+\":\"\\uff0b\",\",\":\"\\ufe10\",\"-\":\"\\ufe32\",\".\":\"\\u30fb\",\"/\":\"\\uff0f\",\":\":\"\\ufe13\",\";\":\"\\ufe14\",\"<\":\"\\ufe3f\",\"=\":\"\\uff1d\",\">\":\"\\ufe40\",\"?\":\"\\ufe16\",\"@\":\"\\uff20\",\"[\":\"\\ufe47\",\"\\\\\":\"\\uff3c\",\"]\":\"\\ufe48\",\"^\":\"\\uff3e\",_:\"\\ufe33\",\"`\":\"\\uff40\",\"{\":\"\\ufe37\",\"|\":\"\\u2015\",\"}\":\"\\ufe38\",\"~\":\"\\uff5e\",\"\\xa2\":\"\\uffe0\",\"\\xa3\":\"\\uffe1\",\"\\xa5\":\"\\uffe5\",\"\\xa6\":\"\\uffe4\",\"\\xac\":\"\\uffe2\",\"\\xaf\":\"\\uffe3\",\"\\u2013\":\"\\ufe32\",\"\\u2014\":\"\\ufe31\",\"\\u2018\":\"\\ufe43\",\"\\u2019\":\"\\ufe44\",\"\\u201c\":\"\\ufe41\",\"\\u201d\":\"\\ufe42\",\"\\u2026\":\"\\ufe19\",\"\\u2027\":\"\\u30fb\",\"\\u20a9\":\"\\uffe6\",\"\\u3001\":\"\\ufe11\",\"\\u3002\":\"\\ufe12\",\"\\u3008\":\"\\ufe3f\",\"\\u3009\":\"\\ufe40\",\"\\u300a\":\"\\ufe3d\",\"\\u300b\":\"\\ufe3e\",\"\\u300c\":\"\\ufe41\",\"\\u300d\":\"\\ufe42\",\"\\u300e\":\"\\ufe43\",\"\\u300f\":\"\\ufe44\",\"\\u3010\":\"\\ufe3b\",\"\\u3011\":\"\\ufe3c\",\"\\u3014\":\"\\ufe39\",\"\\u3015\":\"\\ufe3a\",\"\\u3016\":\"\\ufe17\",\"\\u3017\":\"\\ufe18\",\"\\uff01\":\"\\ufe15\",\"\\uff08\":\"\\ufe35\",\"\\uff09\":\"\\ufe36\",\"\\uff0c\":\"\\ufe10\",\"\\uff0d\":\"\\ufe32\",\"\\uff0e\":\"\\u30fb\",\"\\uff1a\":\"\\ufe13\",\"\\uff1b\":\"\\ufe14\",\"\\uff1c\":\"\\ufe3f\",\"\\uff1e\":\"\\ufe40\",\"\\uff1f\":\"\\ufe16\",\"\\uff3b\":\"\\ufe47\",\"\\uff3d\":\"\\ufe48\",\"\\uff3f\":\"\\ufe33\",\"\\uff5b\":\"\\ufe37\",\"\\uff5c\":\"\\u2015\",\"\\uff5d\":\"\\ufe38\",\"\\uff5f\":\"\\ufe35\",\"\\uff60\":\"\\ufe36\",\"\\uff61\":\"\\ufe12\",\"\\uff62\":\"\\ufe41\",\"\\uff63\":\"\\ufe42\"},Ra=function(t){function e(e,r,n,i){t.call(this,e,r),this.angle=n,void 0!==i&&(this.segment=i)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){return new e(this.x,this.y,this.angle,this.segment)},e}(l);function Ba(t,e){var r=e.expression;if(\"constant\"===r.kind)return{functionType:\"constant\",layoutSize:r.evaluate(new Lr(t+1))};if(\"source\"===r.kind)return{functionType:\"source\"};for(var n=r.zoomStops,i=0;i<n.length&&n[i]<=t;)i++;for(var a=i=Math.max(0,i-1);a<n.length&&n[a]<t+1;)a++;a=Math.min(n.length-1,a);var o={min:n[i],max:n[a]};return\"composite\"===r.kind?{functionType:\"composite\",zoomRange:o,propertyValue:e.value}:{functionType:\"camera\",layoutSize:r.evaluate(new Lr(t+1)),zoomRange:o,sizeRange:{min:r.evaluate(new Lr(o.min)),max:r.evaluate(new Lr(o.max))},propertyValue:e.value}}pr(\"Anchor\",Ra);var Fa=ga.VectorTileFeature.types,Na=[{name:\"a_fade_opacity\",components:1,type:\"Uint8\",offset:0}];function ja(t,e,r,n,i,a,o,s){t.emplaceBack(e,r,Math.round(32*n),Math.round(32*i),a,o,s?s[0]:0,s?s[1]:0)}function Va(t,e,r){t.emplaceBack(e.x,e.y,r),t.emplaceBack(e.x,e.y,r),t.emplaceBack(e.x,e.y,r),t.emplaceBack(e.x,e.y,r)}var Ua=function(t){this.layoutVertexArray=new tn,this.indexArray=new fn,this.programConfigurations=t,this.segments=new Tn,this.dynamicLayoutVertexArray=new en,this.opacityVertexArray=new rn,this.placedSymbolArray=new yn};Ua.prototype.upload=function(t,e){this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,Ca.members),this.indexBuffer=t.createIndexBuffer(this.indexArray,e),this.programConfigurations.upload(t),this.dynamicLayoutVertexBuffer=t.createVertexBuffer(this.dynamicLayoutVertexArray,La.members,!0),this.opacityVertexBuffer=t.createVertexBuffer(this.opacityVertexArray,Na,!0),this.opacityVertexBuffer.itemSize=1},Ua.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.dynamicLayoutVertexBuffer.destroy(),this.opacityVertexBuffer.destroy())},pr(\"SymbolBuffers\",Ua);var qa=function(t,e,r){this.layoutVertexArray=new t,this.layoutAttributes=e,this.indexArray=new r,this.segments=new Tn,this.collisionVertexArray=new on};qa.prototype.upload=function(t){this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,this.layoutAttributes),this.indexBuffer=t.createIndexBuffer(this.indexArray),this.collisionVertexBuffer=t.createVertexBuffer(this.collisionVertexArray,za.members,!0)},qa.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.collisionVertexBuffer.destroy())},pr(\"CollisionBuffers\",qa);var Ha=function(t){this.collisionBoxArray=t.collisionBoxArray,this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(function(t){return t.id}),this.index=t.index,this.pixelRatio=t.pixelRatio,this.sourceLayerIndex=t.sourceLayerIndex;var e=this.layers[0]._unevaluatedLayout._values;this.textSizeData=Ba(this.zoom,e[\"text-size\"]),this.iconSizeData=Ba(this.zoom,e[\"icon-size\"]);var r=this.layers[0].layout;this.sortFeaturesByY=r.get(\"text-allow-overlap\")||r.get(\"icon-allow-overlap\")||r.get(\"text-ignore-placement\")||r.get(\"icon-ignore-placement\")};Ha.prototype.createArrays=function(){this.text=new Ua(new In(Ca.members,this.layers,this.zoom,function(t){return/^text/.test(t)})),this.icon=new Ua(new In(Ca.members,this.layers,this.zoom,function(t){return/^icon/.test(t)})),this.collisionBox=new qa(an,Oa.members,hn),this.collisionCircle=new qa(an,Ia.members,fn),this.glyphOffsetArray=new bn,this.lineVertexArray=new wn},Ha.prototype.populate=function(t,e){var r=this.layers[0],n=r.layout,i=n.get(\"text-font\"),a=n.get(\"text-field\"),o=n.get(\"icon-image\"),s=(\"constant\"!==a.value.kind||a.value.value.length>0)&&(\"constant\"!==i.value.kind||i.value.value.length>0),l=\"constant\"!==o.value.kind||o.value.value&&o.value.value.length>0;if(this.features=[],s||l){for(var c=e.iconDependencies,u=e.glyphDependencies,f=new Lr(this.zoom),h=0,p=t;h<p.length;h+=1){var d=p[h],g=d.feature,v=d.index,m=d.sourceLayerIndex;if(r._featureFilter(f,g)){var y=void 0;s&&(y=Pa(y=r.getValueAndResolveTokens(\"text-field\",g),r,g));var x=void 0;if(l&&(x=r.getValueAndResolveTokens(\"icon-image\",g)),y||x){var b={text:y,icon:x,index:v,sourceLayerIndex:m,geometry:Bn(g),properties:g.properties,type:Fa[g.type]};if(void 0!==g.id&&(b.id=g.id),this.features.push(b),x&&(c[x]=!0),y)for(var _=i.evaluate(g).join(\",\"),w=u[_]=u[_]||{},k=\"map\"===n.get(\"text-rotation-alignment\")&&\"line\"===n.get(\"symbol-placement\"),M=xr(y),A=0;A<y.length;A++)if(w[y.charCodeAt(A)]=!0,k&&M){var T=Da[y.charAt(A)];T&&(w[T.charCodeAt(0)]=!0)}}}}\"line\"===n.get(\"symbol-placement\")&&(this.features=function(t){var e={},r={},n=[],i=0;function a(e){n.push(t[e]),i++}function o(t,e,i){var a=r[t];return delete r[t],r[e]=a,n[a].geometry[0].pop(),n[a].geometry[0]=n[a].geometry[0].concat(i[0]),a}function s(t,r,i){var a=e[r];return delete e[r],e[t]=a,n[a].geometry[0].shift(),n[a].geometry[0]=i[0].concat(n[a].geometry[0]),a}function l(t,e,r){var n=r?e[0][e[0].length-1]:e[0][0];return t+\":\"+n.x+\":\"+n.y}for(var c=0;c<t.length;c++){var u=t[c],f=u.geometry,h=u.text;if(h){var p=l(h,f),d=l(h,f,!0);if(p in r&&d in e&&r[p]!==e[d]){var g=s(p,d,f),v=o(p,d,n[g].geometry);delete e[p],delete r[d],r[l(h,n[v].geometry,!0)]=v,n[g].geometry=null}else p in r?o(p,d,f):d in e?s(p,d,f):(a(c),e[p]=i-1,r[d]=i-1)}else a(c)}return n.filter(function(t){return t.geometry})}(this.features))}},Ha.prototype.isEmpty=function(){return 0===this.symbolInstances.length},Ha.prototype.upload=function(t){this.text.upload(t,this.sortFeaturesByY),this.icon.upload(t,this.sortFeaturesByY),this.collisionBox.upload(t),this.collisionCircle.upload(t)},Ha.prototype.destroy=function(){this.text.destroy(),this.icon.destroy(),this.collisionBox.destroy(),this.collisionCircle.destroy()},Ha.prototype.addToLineVertexArray=function(t,e){var r=this.lineVertexArray.length;if(void 0!==t.segment){for(var n=t.dist(e[t.segment+1]),i=t.dist(e[t.segment]),a={},o=t.segment+1;o<e.length;o++)a[o]={x:e[o].x,y:e[o].y,tileUnitDistanceFromAnchor:n},o<e.length-1&&(n+=e[o+1].dist(e[o]));for(var s=t.segment||0;s>=0;s--)a[s]={x:e[s].x,y:e[s].y,tileUnitDistanceFromAnchor:i},s>0&&(i+=e[s-1].dist(e[s]));for(var l=0;l<e.length;l++){var c=a[l];this.lineVertexArray.emplaceBack(c.x,c.y,c.tileUnitDistanceFromAnchor)}}return{lineStartIndex:r,lineLength:this.lineVertexArray.length-r}},Ha.prototype.addSymbols=function(t,e,r,n,i,a,o,s,l,c){for(var u=t.indexArray,f=t.layoutVertexArray,h=t.dynamicLayoutVertexArray,p=t.segments.prepareSegment(4*e.length,t.layoutVertexArray,t.indexArray),d=this.glyphOffsetArray.length,g=p.vertexLength,v=0,m=e;v<m.length;v+=1){var y=m[v],x=y.tl,b=y.tr,_=y.bl,w=y.br,k=y.tex,M=p.vertexLength,A=y.glyphOffset[1];ja(f,s.x,s.y,x.x,A+x.y,k.x,k.y,r),ja(f,s.x,s.y,b.x,A+b.y,k.x+k.w,k.y,r),ja(f,s.x,s.y,_.x,A+_.y,k.x,k.y+k.h,r),ja(f,s.x,s.y,w.x,A+w.y,k.x+k.w,k.y+k.h,r),Va(h,s,0),u.emplaceBack(M,M+1,M+2),u.emplaceBack(M+1,M+2,M+3),p.vertexLength+=4,p.primitiveLength+=2,this.glyphOffsetArray.emplaceBack(y.glyphOffset[0])}t.placedSymbolArray.emplaceBack(s.x,s.y,d,this.glyphOffsetArray.length-d,g,l,c,s.segment,r?r[0]:0,r?r[1]:0,n[0],n[1],o,!1),t.programConfigurations.populatePaintArrays(t.layoutVertexArray.length,a)},Ha.prototype._addCollisionDebugVertex=function(t,e,r,n,i){return e.emplaceBack(0,0),t.emplaceBack(r.x,r.y,n.x,n.y,Math.round(i.x),Math.round(i.y))},Ha.prototype.addCollisionDebugVertices=function(t,e,r,n,i,a,o,s){var c=i.segments.prepareSegment(4,i.layoutVertexArray,i.indexArray),u=c.vertexLength,f=i.layoutVertexArray,h=i.collisionVertexArray;if(this._addCollisionDebugVertex(f,h,a,o.anchor,new l(t,e)),this._addCollisionDebugVertex(f,h,a,o.anchor,new l(r,e)),this._addCollisionDebugVertex(f,h,a,o.anchor,new l(r,n)),this._addCollisionDebugVertex(f,h,a,o.anchor,new l(t,n)),c.vertexLength+=4,s){var p=i.indexArray;p.emplaceBack(u,u+1,u+2),p.emplaceBack(u,u+2,u+3),c.primitiveLength+=2}else{var d=i.indexArray;d.emplaceBack(u,u+1),d.emplaceBack(u+1,u+2),d.emplaceBack(u+2,u+3),d.emplaceBack(u+3,u),c.primitiveLength+=4}},Ha.prototype.generateCollisionDebugBuffers=function(){for(var t=0,e=this.symbolInstances;t<e.length;t+=1){var r=e[t];r.textCollisionFeature={boxStartIndex:r.textBoxStartIndex,boxEndIndex:r.textBoxEndIndex},r.iconCollisionFeature={boxStartIndex:r.iconBoxStartIndex,boxEndIndex:r.iconBoxEndIndex};for(var n=0;n<2;n++){var i=r[0===n?\"textCollisionFeature\":\"iconCollisionFeature\"];if(i)for(var a=i.boxStartIndex;a<i.boxEndIndex;a++){var o=this.collisionBoxArray.get(a),s=o.x1,l=o.y1,c=o.x2,u=o.y2,f=o.radius>0;this.addCollisionDebugVertices(s,l,c,u,f?this.collisionCircle:this.collisionBox,o.anchorPoint,r,f)}}}},Ha.prototype.deserializeCollisionBoxes=function(t,e,r,n,i){for(var a={},o=e;o<r;o++){var s=t.get(o);if(0===s.radius){a.textBox={x1:s.x1,y1:s.y1,x2:s.x2,y2:s.y2,anchorPointX:s.anchorPointX,anchorPointY:s.anchorPointY},a.textFeatureIndex=s.featureIndex;break}a.textCircles||(a.textCircles=[],a.textFeatureIndex=s.featureIndex),a.textCircles.push(s.anchorPointX,s.anchorPointY,s.radius,s.signedDistanceFromAnchor,1)}for(var l=n;l<i;l++){var c=t.get(l);if(0===c.radius){a.iconBox={x1:c.x1,y1:c.y1,x2:c.x2,y2:c.y2,anchorPointX:c.anchorPointX,anchorPointY:c.anchorPointY},a.iconFeatureIndex=c.featureIndex;break}}return a},Ha.prototype.hasTextData=function(){return this.text.segments.get().length>0},Ha.prototype.hasIconData=function(){return this.icon.segments.get().length>0},Ha.prototype.hasCollisionBoxData=function(){return this.collisionBox.segments.get().length>0},Ha.prototype.hasCollisionCircleData=function(){return this.collisionCircle.segments.get().length>0},Ha.prototype.sortFeatures=function(t){var e=this;if(this.sortFeaturesByY&&this.sortedAngle!==t&&(this.sortedAngle=t,!(this.text.segments.get().length>1||this.icon.segments.get().length>1))){for(var r=[],n=0;n<this.symbolInstances.length;n++)r.push(n);var i=Math.sin(t),a=Math.cos(t);r.sort(function(t,r){var n=e.symbolInstances[t],o=e.symbolInstances[r];return(i*n.anchor.x+a*n.anchor.y|0)-(i*o.anchor.x+a*o.anchor.y|0)||o.featureIndex-n.featureIndex}),this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var o=0,s=r;o<s.length;o+=1){var l=s[o],c=e.symbolInstances[l];e.featureSortOrder.push(c.featureIndex);for(var u=0,f=c.placedTextSymbolIndices;u<f.length;u+=1)for(var h=f[u],p=e.text.placedSymbolArray.get(h),d=p.vertexStartIndex+4*p.numGlyphs,g=p.vertexStartIndex;g<d;g+=4)e.text.indexArray.emplaceBack(g,g+1,g+2),e.text.indexArray.emplaceBack(g+1,g+2,g+3);var v=e.icon.placedSymbolArray.get(l);if(v.numGlyphs){var m=v.vertexStartIndex;e.icon.indexArray.emplaceBack(m,m+1,m+2),e.icon.indexArray.emplaceBack(m+1,m+2,m+3)}}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}},pr(\"SymbolBucket\",Ha,{omit:[\"layers\",\"collisionBoxArray\",\"features\",\"compareText\"],shallow:[\"symbolInstances\"]}),Ha.MAX_GLYPHS=65535,Ha.addDynamicAttributes=Va;var Ga=new qr({\"symbol-placement\":new Nr(I.layout_symbol[\"symbol-placement\"]),\"symbol-spacing\":new Nr(I.layout_symbol[\"symbol-spacing\"]),\"symbol-avoid-edges\":new Nr(I.layout_symbol[\"symbol-avoid-edges\"]),\"icon-allow-overlap\":new Nr(I.layout_symbol[\"icon-allow-overlap\"]),\"icon-ignore-placement\":new Nr(I.layout_symbol[\"icon-ignore-placement\"]),\"icon-optional\":new Nr(I.layout_symbol[\"icon-optional\"]),\"icon-rotation-alignment\":new Nr(I.layout_symbol[\"icon-rotation-alignment\"]),\"icon-size\":new jr(I.layout_symbol[\"icon-size\"]),\"icon-text-fit\":new Nr(I.layout_symbol[\"icon-text-fit\"]),\"icon-text-fit-padding\":new Nr(I.layout_symbol[\"icon-text-fit-padding\"]),\"icon-image\":new jr(I.layout_symbol[\"icon-image\"]),\"icon-rotate\":new jr(I.layout_symbol[\"icon-rotate\"]),\"icon-padding\":new Nr(I.layout_symbol[\"icon-padding\"]),\"icon-keep-upright\":new Nr(I.layout_symbol[\"icon-keep-upright\"]),\"icon-offset\":new jr(I.layout_symbol[\"icon-offset\"]),\"icon-anchor\":new jr(I.layout_symbol[\"icon-anchor\"]),\"icon-pitch-alignment\":new Nr(I.layout_symbol[\"icon-pitch-alignment\"]),\"text-pitch-alignment\":new Nr(I.layout_symbol[\"text-pitch-alignment\"]),\"text-rotation-alignment\":new Nr(I.layout_symbol[\"text-rotation-alignment\"]),\"text-field\":new jr(I.layout_symbol[\"text-field\"]),\"text-font\":new jr(I.layout_symbol[\"text-font\"]),\"text-size\":new jr(I.layout_symbol[\"text-size\"]),\"text-max-width\":new jr(I.layout_symbol[\"text-max-width\"]),\"text-line-height\":new Nr(I.layout_symbol[\"text-line-height\"]),\"text-letter-spacing\":new jr(I.layout_symbol[\"text-letter-spacing\"]),\"text-justify\":new jr(I.layout_symbol[\"text-justify\"]),\"text-anchor\":new jr(I.layout_symbol[\"text-anchor\"]),\"text-max-angle\":new Nr(I.layout_symbol[\"text-max-angle\"]),\"text-rotate\":new jr(I.layout_symbol[\"text-rotate\"]),\"text-padding\":new Nr(I.layout_symbol[\"text-padding\"]),\"text-keep-upright\":new Nr(I.layout_symbol[\"text-keep-upright\"]),\"text-transform\":new jr(I.layout_symbol[\"text-transform\"]),\"text-offset\":new jr(I.layout_symbol[\"text-offset\"]),\"text-allow-overlap\":new Nr(I.layout_symbol[\"text-allow-overlap\"]),\"text-ignore-placement\":new Nr(I.layout_symbol[\"text-ignore-placement\"]),\"text-optional\":new Nr(I.layout_symbol[\"text-optional\"])}),Wa={paint:new qr({\"icon-opacity\":new jr(I.paint_symbol[\"icon-opacity\"]),\"icon-color\":new jr(I.paint_symbol[\"icon-color\"]),\"icon-halo-color\":new jr(I.paint_symbol[\"icon-halo-color\"]),\"icon-halo-width\":new jr(I.paint_symbol[\"icon-halo-width\"]),\"icon-halo-blur\":new jr(I.paint_symbol[\"icon-halo-blur\"]),\"icon-translate\":new Nr(I.paint_symbol[\"icon-translate\"]),\"icon-translate-anchor\":new Nr(I.paint_symbol[\"icon-translate-anchor\"]),\"text-opacity\":new jr(I.paint_symbol[\"text-opacity\"]),\"text-color\":new jr(I.paint_symbol[\"text-color\"]),\"text-halo-color\":new jr(I.paint_symbol[\"text-halo-color\"]),\"text-halo-width\":new jr(I.paint_symbol[\"text-halo-width\"]),\"text-halo-blur\":new jr(I.paint_symbol[\"text-halo-blur\"]),\"text-translate\":new Nr(I.paint_symbol[\"text-translate\"]),\"text-translate-anchor\":new Nr(I.paint_symbol[\"text-translate-anchor\"])}),layout:Ga},Ya=function(t){function e(e){t.call(this,e,Wa)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.recalculate=function(e){t.prototype.recalculate.call(this,e),\"auto\"===this.layout.get(\"icon-rotation-alignment\")&&(\"line\"===this.layout.get(\"symbol-placement\")?this.layout._values[\"icon-rotation-alignment\"]=\"map\":this.layout._values[\"icon-rotation-alignment\"]=\"viewport\"),\"auto\"===this.layout.get(\"text-rotation-alignment\")&&(\"line\"===this.layout.get(\"symbol-placement\")?this.layout._values[\"text-rotation-alignment\"]=\"map\":this.layout._values[\"text-rotation-alignment\"]=\"viewport\"),\"auto\"===this.layout.get(\"text-pitch-alignment\")&&(this.layout._values[\"text-pitch-alignment\"]=this.layout.get(\"text-rotation-alignment\")),\"auto\"===this.layout.get(\"icon-pitch-alignment\")&&(this.layout._values[\"icon-pitch-alignment\"]=this.layout.get(\"icon-rotation-alignment\"))},e.prototype.getValueAndResolveTokens=function(t,e){var r,n=this.layout.get(t).evaluate(e),i=this._unevaluatedLayout._values[t];return i.isDataDriven()||_e(i.value)?n:(r=e.properties,n.replace(/{([^{}]+)}/g,function(t,e){return e in r?String(r[e]):\"\"}))},e.prototype.createBucket=function(t){return new Ha(t)},e.prototype.queryRadius=function(){return 0},e.prototype.queryIntersectsFeature=function(){return!1},e}(Hr),Xa={paint:new qr({\"background-color\":new Nr(I.paint_background[\"background-color\"]),\"background-pattern\":new Vr(I.paint_background[\"background-pattern\"]),\"background-opacity\":new Nr(I.paint_background[\"background-opacity\"])})},Za=function(t){function e(e){t.call(this,e,Xa)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Hr),$a={paint:new qr({\"raster-opacity\":new Nr(I.paint_raster[\"raster-opacity\"]),\"raster-hue-rotate\":new Nr(I.paint_raster[\"raster-hue-rotate\"]),\"raster-brightness-min\":new Nr(I.paint_raster[\"raster-brightness-min\"]),\"raster-brightness-max\":new Nr(I.paint_raster[\"raster-brightness-max\"]),\"raster-saturation\":new Nr(I.paint_raster[\"raster-saturation\"]),\"raster-contrast\":new Nr(I.paint_raster[\"raster-contrast\"]),\"raster-fade-duration\":new Nr(I.paint_raster[\"raster-fade-duration\"])})},Ja={circle:ni,heatmap:pi,hillshade:gi,fill:Ji,\"fill-extrusion\":aa,line:Sa,symbol:Ya,background:Za,raster:function(t){function e(e){t.call(this,e,$a)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Hr)},Ka=i(function(t,e){t.exports=function(){function t(t,e,r){r=r||{},this.w=t||64,this.h=e||64,this.autoResize=!!r.autoResize,this.shelves=[],this.freebins=[],this.stats={},this.bins={},this.maxId=0}function e(t,e,r){this.x=0,this.y=t,this.w=this.free=e,this.h=r}return t.prototype.pack=function(t,e){t=[].concat(t),e=e||{};for(var r,n,i,a,o=[],s=0;s<t.length;s++)if(r=t[s].w||t[s].width,n=t[s].h||t[s].height,i=t[s].id,r&&n){if(!(a=this.packOne(r,n,i)))continue;e.inPlace&&(t[s].x=a.x,t[s].y=a.y,t[s].id=a.id),o.push(a)}return this.shrink(),o},t.prototype.packOne=function(t,r,n){var i,a,o,s,l,c,u,f,h={freebin:-1,shelf:-1,waste:1/0},p=0;if(\"string\"==typeof n||\"number\"==typeof n){if(i=this.getBin(n))return this.ref(i),i;\"number\"==typeof n&&(this.maxId=Math.max(n,this.maxId))}else n=++this.maxId;for(s=0;s<this.freebins.length;s++){if(r===(i=this.freebins[s]).maxh&&t===i.maxw)return this.allocFreebin(s,t,r,n);r>i.maxh||t>i.maxw||r<=i.maxh&&t<=i.maxw&&(o=i.maxw*i.maxh-t*r)<h.waste&&(h.waste=o,h.freebin=s)}for(s=0;s<this.shelves.length;s++)if(p+=(a=this.shelves[s]).h,!(t>a.free)){if(r===a.h)return this.allocShelf(s,t,r,n);r>a.h||r<a.h&&(o=(a.h-r)*t)<h.waste&&(h.freebin=-1,h.waste=o,h.shelf=s)}return-1!==h.freebin?this.allocFreebin(h.freebin,t,r,n):-1!==h.shelf?this.allocShelf(h.shelf,t,r,n):r<=this.h-p&&t<=this.w?(a=new e(p,this.w,r),this.allocShelf(this.shelves.push(a)-1,t,r,n)):this.autoResize?(l=c=this.h,((u=f=this.w)<=l||t>u)&&(f=2*Math.max(t,u)),(l<u||r>l)&&(c=2*Math.max(r,l)),this.resize(f,c),this.packOne(t,r,n)):null},t.prototype.allocFreebin=function(t,e,r,n){var i=this.freebins.splice(t,1)[0];return i.id=n,i.w=e,i.h=r,i.refcount=0,this.bins[n]=i,this.ref(i),i},t.prototype.allocShelf=function(t,e,r,n){var i=this.shelves[t].alloc(e,r,n);return this.bins[n]=i,this.ref(i),i},t.prototype.shrink=function(){if(this.shelves.length>0){for(var t=0,e=0,r=0;r<this.shelves.length;r++){var n=this.shelves[r];e+=n.h,t=Math.max(n.w-n.free,t)}this.resize(t,e)}},t.prototype.getBin=function(t){return this.bins[t]},t.prototype.ref=function(t){if(1==++t.refcount){var e=t.h;this.stats[e]=1+(0|this.stats[e])}return t.refcount},t.prototype.unref=function(t){return 0===t.refcount?0:(0==--t.refcount&&(this.stats[t.h]--,delete this.bins[t.id],this.freebins.push(t)),t.refcount)},t.prototype.clear=function(){this.shelves=[],this.freebins=[],this.stats={},this.bins={},this.maxId=0},t.prototype.resize=function(t,e){this.w=t,this.h=e;for(var r=0;r<this.shelves.length;r++)this.shelves[r].resize(t);return!0},e.prototype.alloc=function(t,e,r){if(t>this.free||e>this.h)return null;var n=this.x;return this.x+=t,this.free-=t,new function(t,e,r,n,i,a,o){this.id=t,this.x=e,this.y=r,this.w=n,this.h=i,this.maxw=a||n,this.maxh=o||i,this.refcount=0}(r,n,this.y,t,e,t,this.h)},e.prototype.resize=function(t){return this.free+=t-this.w,this.w=t,!0},t}()}),Qa=function(t,e){var r=e.pixelRatio;this.paddedRect=t,this.pixelRatio=r},to={tl:{configurable:!0},br:{configurable:!0},displaySize:{configurable:!0}};to.tl.get=function(){return[this.paddedRect.x+1,this.paddedRect.y+1]},to.br.get=function(){return[this.paddedRect.x+this.paddedRect.w-1,this.paddedRect.y+this.paddedRect.h-1]},to.displaySize.get=function(){return[(this.paddedRect.w-2)/this.pixelRatio,(this.paddedRect.h-2)/this.pixelRatio]},Object.defineProperties(Qa.prototype,to);var eo=function(t){var e=new ui({width:0,height:0}),r={},n=new Ka(0,0,{autoResize:!0});for(var i in t){var a=t[i],o=n.packOne(a.data.width+2,a.data.height+2);e.resize({width:n.w,height:n.h}),ui.copy(a.data,e,{x:0,y:0},{x:o.x+1,y:o.y+1},a.data),r[i]=new Qa(o,a)}n.shrink(),e.resize({width:n.w,height:n.h}),this.image=e,this.positions=r};pr(\"ImagePosition\",Qa),pr(\"ImageAtlas\",eo);var ro=function(t,e,r,n,i){var a,o,s=8*i-n-1,l=(1<<s)-1,c=l>>1,u=-7,f=r?i-1:0,h=r?-1:1,p=t[e+f];for(f+=h,a=p&(1<<-u)-1,p>>=-u,u+=s;u>0;a=256*a+t[e+f],f+=h,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=n;u>0;o=256*o+t[e+f],f+=h,u-=8);if(0===a)a=1-c;else{if(a===l)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,n),a-=c}return(p?-1:1)*o*Math.pow(2,a-n)},no=function(t,e,r,n,i,a){var o,s,l,c=8*a-i-1,u=(1<<c)-1,f=u>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:a-1,d=n?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,o=u):(o=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-o))<1&&(o--,l*=2),(e+=o+f>=1?h/l:h*Math.pow(2,1-f))*l>=2&&(o++,l/=2),o+f>=u?(s=0,o=u):o+f>=1?(s=(e*l-1)*Math.pow(2,i),o+=f):(s=e*Math.pow(2,f-1)*Math.pow(2,i),o=0));i>=8;t[r+p]=255&s,p+=d,s/=256,i-=8);for(o=o<<i|s,c+=i;c>0;t[r+p]=255&o,p+=d,o/=256,c-=8);t[r+p-d]|=128*g},io=ao;function ao(t){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(t)?t:new Uint8Array(t||0),this.pos=0,this.type=0,this.length=this.buf.length}function oo(t){return t.type===ao.Bytes?t.readVarint()+t.pos:t.pos+1}function so(t,e,r){return r?4294967296*e+(t>>>0):4294967296*(e>>>0)+(t>>>0)}function lo(t,e,r){var n=e<=16383?1:e<=2097151?2:e<=268435455?3:Math.ceil(Math.log(e)/(7*Math.LN2));r.realloc(n);for(var i=r.pos-1;i>=t;i--)r.buf[i+n]=r.buf[i]}function co(t,e){for(var r=0;r<t.length;r++)e.writeVarint(t[r])}function uo(t,e){for(var r=0;r<t.length;r++)e.writeSVarint(t[r])}function fo(t,e){for(var r=0;r<t.length;r++)e.writeFloat(t[r])}function ho(t,e){for(var r=0;r<t.length;r++)e.writeDouble(t[r])}function po(t,e){for(var r=0;r<t.length;r++)e.writeBoolean(t[r])}function go(t,e){for(var r=0;r<t.length;r++)e.writeFixed32(t[r])}function vo(t,e){for(var r=0;r<t.length;r++)e.writeSFixed32(t[r])}function mo(t,e){for(var r=0;r<t.length;r++)e.writeFixed64(t[r])}function yo(t,e){for(var r=0;r<t.length;r++)e.writeSFixed64(t[r])}function xo(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16)+16777216*t[e+3]}function bo(t,e,r){t[r]=e,t[r+1]=e>>>8,t[r+2]=e>>>16,t[r+3]=e>>>24}function _o(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16)+(t[e+3]<<24)}ao.Varint=0,ao.Fixed64=1,ao.Bytes=2,ao.Fixed32=5,ao.prototype={destroy:function(){this.buf=null},readFields:function(t,e,r){for(r=r||this.length;this.pos<r;){var n=this.readVarint(),i=n>>3,a=this.pos;this.type=7&n,t(i,e,this),this.pos===a&&this.skip(n)}return e},readMessage:function(t,e){return this.readFields(t,e,this.readVarint()+this.pos)},readFixed32:function(){var t=xo(this.buf,this.pos);return this.pos+=4,t},readSFixed32:function(){var t=_o(this.buf,this.pos);return this.pos+=4,t},readFixed64:function(){var t=xo(this.buf,this.pos)+4294967296*xo(this.buf,this.pos+4);return this.pos+=8,t},readSFixed64:function(){var t=xo(this.buf,this.pos)+4294967296*_o(this.buf,this.pos+4);return this.pos+=8,t},readFloat:function(){var t=ro(this.buf,this.pos,!0,23,4);return this.pos+=4,t},readDouble:function(){var t=ro(this.buf,this.pos,!0,52,8);return this.pos+=8,t},readVarint:function(t){var e,r,n=this.buf;return e=127&(r=n[this.pos++]),r<128?e:(e|=(127&(r=n[this.pos++]))<<7,r<128?e:(e|=(127&(r=n[this.pos++]))<<14,r<128?e:(e|=(127&(r=n[this.pos++]))<<21,r<128?e:function(t,e,r){var n,i,a=r.buf;if(n=(112&(i=a[r.pos++]))>>4,i<128)return so(t,n,e);if(n|=(127&(i=a[r.pos++]))<<3,i<128)return so(t,n,e);if(n|=(127&(i=a[r.pos++]))<<10,i<128)return so(t,n,e);if(n|=(127&(i=a[r.pos++]))<<17,i<128)return so(t,n,e);if(n|=(127&(i=a[r.pos++]))<<24,i<128)return so(t,n,e);if(n|=(1&(i=a[r.pos++]))<<31,i<128)return so(t,n,e);throw new Error(\"Expected varint not more than 10 bytes\")}(e|=(15&(r=n[this.pos]))<<28,t,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var t=this.readVarint();return t%2==1?(t+1)/-2:t/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var t=this.readVarint()+this.pos,e=function(t,e,r){for(var n=\"\",i=e;i<r;){var a,o,s,l=t[i],c=null,u=l>239?4:l>223?3:l>191?2:1;if(i+u>r)break;1===u?l<128&&(c=l):2===u?128==(192&(a=t[i+1]))&&(c=(31&l)<<6|63&a)<=127&&(c=null):3===u?(a=t[i+1],o=t[i+2],128==(192&a)&&128==(192&o)&&((c=(15&l)<<12|(63&a)<<6|63&o)<=2047||c>=55296&&c<=57343)&&(c=null)):4===u&&(a=t[i+1],o=t[i+2],s=t[i+3],128==(192&a)&&128==(192&o)&&128==(192&s)&&((c=(15&l)<<18|(63&a)<<12|(63&o)<<6|63&s)<=65535||c>=1114112)&&(c=null)),null===c?(c=65533,u=1):c>65535&&(c-=65536,n+=String.fromCharCode(c>>>10&1023|55296),c=56320|1023&c),n+=String.fromCharCode(c),i+=u}return n}(this.buf,this.pos,t);return this.pos=t,e},readBytes:function(){var t=this.readVarint()+this.pos,e=this.buf.subarray(this.pos,t);return this.pos=t,e},readPackedVarint:function(t,e){var r=oo(this);for(t=t||[];this.pos<r;)t.push(this.readVarint(e));return t},readPackedSVarint:function(t){var e=oo(this);for(t=t||[];this.pos<e;)t.push(this.readSVarint());return t},readPackedBoolean:function(t){var e=oo(this);for(t=t||[];this.pos<e;)t.push(this.readBoolean());return t},readPackedFloat:function(t){var e=oo(this);for(t=t||[];this.pos<e;)t.push(this.readFloat());return t},readPackedDouble:function(t){var e=oo(this);for(t=t||[];this.pos<e;)t.push(this.readDouble());return t},readPackedFixed32:function(t){var e=oo(this);for(t=t||[];this.pos<e;)t.push(this.readFixed32());return t},readPackedSFixed32:function(t){var e=oo(this);for(t=t||[];this.pos<e;)t.push(this.readSFixed32());return t},readPackedFixed64:function(t){var e=oo(this);for(t=t||[];this.pos<e;)t.push(this.readFixed64());return t},readPackedSFixed64:function(t){var e=oo(this);for(t=t||[];this.pos<e;)t.push(this.readSFixed64());return t},skip:function(t){var e=7&t;if(e===ao.Varint)for(;this.buf[this.pos++]>127;);else if(e===ao.Bytes)this.pos=this.readVarint()+this.pos;else if(e===ao.Fixed32)this.pos+=4;else{if(e!==ao.Fixed64)throw new Error(\"Unimplemented type: \"+e);this.pos+=8}},writeTag:function(t,e){this.writeVarint(t<<3|e)},realloc:function(t){for(var e=this.length||16;e<this.pos+t;)e*=2;if(e!==this.length){var r=new Uint8Array(e);r.set(this.buf),this.buf=r,this.length=e}},finish:function(){return this.length=this.pos,this.pos=0,this.buf.subarray(0,this.length)},writeFixed32:function(t){this.realloc(4),bo(this.buf,t,this.pos),this.pos+=4},writeSFixed32:function(t){this.realloc(4),bo(this.buf,t,this.pos),this.pos+=4},writeFixed64:function(t){this.realloc(8),bo(this.buf,-1&t,this.pos),bo(this.buf,Math.floor(t*(1/4294967296)),this.pos+4),this.pos+=8},writeSFixed64:function(t){this.realloc(8),bo(this.buf,-1&t,this.pos),bo(this.buf,Math.floor(t*(1/4294967296)),this.pos+4),this.pos+=8},writeVarint:function(t){(t=+t||0)>268435455||t<0?function(t,e){var r,n;if(t>=0?(r=t%4294967296|0,n=t/4294967296|0):(n=~(-t/4294967296),4294967295^(r=~(-t%4294967296))?r=r+1|0:(r=0,n=n+1|0)),t>=0x10000000000000000||t<-0x10000000000000000)throw new Error(\"Given varint doesn't fit into 10 bytes\");e.realloc(10),function(t,e,r){r.buf[r.pos++]=127&t|128,t>>>=7,r.buf[r.pos++]=127&t|128,t>>>=7,r.buf[r.pos++]=127&t|128,t>>>=7,r.buf[r.pos++]=127&t|128,t>>>=7,r.buf[r.pos]=127&t}(r,0,e),function(t,e){var r=(7&t)<<4;e.buf[e.pos++]|=r|((t>>>=3)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t)))))}(n,e)}(t,this):(this.realloc(4),this.buf[this.pos++]=127&t|(t>127?128:0),t<=127||(this.buf[this.pos++]=127&(t>>>=7)|(t>127?128:0),t<=127||(this.buf[this.pos++]=127&(t>>>=7)|(t>127?128:0),t<=127||(this.buf[this.pos++]=t>>>7&127))))},writeSVarint:function(t){this.writeVarint(t<0?2*-t-1:2*t)},writeBoolean:function(t){this.writeVarint(Boolean(t))},writeString:function(t){t=String(t),this.realloc(4*t.length),this.pos++;var e=this.pos;this.pos=function(t,e,r){for(var n,i,a=0;a<e.length;a++){if((n=e.charCodeAt(a))>55295&&n<57344){if(!i){n>56319||a+1===e.length?(t[r++]=239,t[r++]=191,t[r++]=189):i=n;continue}if(n<56320){t[r++]=239,t[r++]=191,t[r++]=189,i=n;continue}n=i-55296<<10|n-56320|65536,i=null}else i&&(t[r++]=239,t[r++]=191,t[r++]=189,i=null);n<128?t[r++]=n:(n<2048?t[r++]=n>>6|192:(n<65536?t[r++]=n>>12|224:(t[r++]=n>>18|240,t[r++]=n>>12&63|128),t[r++]=n>>6&63|128),t[r++]=63&n|128)}return r}(this.buf,t,this.pos);var r=this.pos-e;r>=128&&lo(e,r,this),this.pos=e-1,this.writeVarint(r),this.pos+=r},writeFloat:function(t){this.realloc(4),no(this.buf,t,this.pos,!0,23,4),this.pos+=4},writeDouble:function(t){this.realloc(8),no(this.buf,t,this.pos,!0,52,8),this.pos+=8},writeBytes:function(t){var e=t.length;this.writeVarint(e),this.realloc(e);for(var r=0;r<e;r++)this.buf[this.pos++]=t[r]},writeRawMessage:function(t,e){this.pos++;var r=this.pos;t(e,this);var n=this.pos-r;n>=128&&lo(r,n,this),this.pos=r-1,this.writeVarint(n),this.pos+=n},writeMessage:function(t,e,r){this.writeTag(t,ao.Bytes),this.writeRawMessage(e,r)},writePackedVarint:function(t,e){this.writeMessage(t,co,e)},writePackedSVarint:function(t,e){this.writeMessage(t,uo,e)},writePackedBoolean:function(t,e){this.writeMessage(t,po,e)},writePackedFloat:function(t,e){this.writeMessage(t,fo,e)},writePackedDouble:function(t,e){this.writeMessage(t,ho,e)},writePackedFixed32:function(t,e){this.writeMessage(t,go,e)},writePackedSFixed32:function(t,e){this.writeMessage(t,vo,e)},writePackedFixed64:function(t,e){this.writeMessage(t,mo,e)},writePackedSFixed64:function(t,e){this.writeMessage(t,yo,e)},writeBytesField:function(t,e){this.writeTag(t,ao.Bytes),this.writeBytes(e)},writeFixed32Field:function(t,e){this.writeTag(t,ao.Fixed32),this.writeFixed32(e)},writeSFixed32Field:function(t,e){this.writeTag(t,ao.Fixed32),this.writeSFixed32(e)},writeFixed64Field:function(t,e){this.writeTag(t,ao.Fixed64),this.writeFixed64(e)},writeSFixed64Field:function(t,e){this.writeTag(t,ao.Fixed64),this.writeSFixed64(e)},writeVarintField:function(t,e){this.writeTag(t,ao.Varint),this.writeVarint(e)},writeSVarintField:function(t,e){this.writeTag(t,ao.Varint),this.writeSVarint(e)},writeStringField:function(t,e){this.writeTag(t,ao.Bytes),this.writeString(e)},writeFloatField:function(t,e){this.writeTag(t,ao.Fixed32),this.writeFloat(e)},writeDoubleField:function(t,e){this.writeTag(t,ao.Fixed64),this.writeDouble(e)},writeBooleanField:function(t,e){this.writeVarintField(t,Boolean(e))}};var wo=3;function ko(t,e,r){1===t&&r.readMessage(Mo,e)}function Mo(t,e,r){if(3===t){var n=r.readMessage(Ao,{}),i=n.id,a=n.bitmap,o=n.width,s=n.height,l=n.left,c=n.top,u=n.advance;e.push({id:i,bitmap:new ci({width:o+2*wo,height:s+2*wo},a),metrics:{width:o,height:s,left:l,top:c,advance:u}})}}function Ao(t,e,r){1===t?e.id=r.readVarint():2===t?e.bitmap=r.readBytes():3===t?e.width=r.readVarint():4===t?e.height=r.readVarint():5===t?e.left=r.readSVarint():6===t?e.top=r.readSVarint():7===t&&(e.advance=r.readVarint())}var To=wo,So=function(t,e,r){this.target=t,this.parent=e,this.mapId=r,this.callbacks={},this.callbackID=0,g([\"receive\"],this),this.target.addEventListener(\"message\",this.receive,!1)};So.prototype.send=function(t,e,r,n){var i=r?this.mapId+\":\"+this.callbackID++:null;r&&(this.callbacks[i]=r);var a=[];this.target.postMessage({targetMapId:n,sourceMapId:this.mapId,type:t,id:String(i),data:gr(e,a)},a)},So.prototype.receive=function(t){var e,r=this,n=t.data,i=n.id;if(!n.targetMapId||this.mapId===n.targetMapId){var a=function(t,e){var n=[];r.target.postMessage({sourceMapId:r.mapId,type:\"<response>\",id:String(i),error:t?gr(t):null,data:gr(e,n)},n)};if(\"<response>\"===n.type)e=this.callbacks[n.id],delete this.callbacks[n.id],e&&n.error?e(vr(n.error)):e&&e(null,vr(n.data));else if(void 0!==n.id&&this.parent[n.type])this.parent[n.type](n.sourceMapId,vr(n.data),a);else if(void 0!==n.id&&this.parent.getWorkerSource){var o=n.type.split(\".\");this.parent.getWorkerSource(n.sourceMapId,o[0],o[1])[o[2]](vr(n.data),a)}else this.parent[n.type](vr(n.data))}},So.prototype.remove=function(){this.target.removeEventListener(\"message\",this.receive,!1)};var Eo=n(i(function(t,e){!function(t){function e(t,e,n){var i=r(256*t,256*(e=Math.pow(2,n)-e-1),n),a=r(256*(t+1),256*(e+1),n);return i[0]+\",\"+i[1]+\",\"+a[0]+\",\"+a[1]}function r(t,e,r){var n=2*Math.PI*6378137/256/Math.pow(2,r);return[t*n-2*Math.PI*6378137/2,e*n-2*Math.PI*6378137/2]}t.getURL=function(t,r,n,i,a,o){return o=o||{},t+\"?\"+[\"bbox=\"+e(n,i,a),\"format=\"+(o.format||\"image/png\"),\"service=\"+(o.service||\"WMS\"),\"version=\"+(o.version||\"1.1.1\"),\"request=\"+(o.request||\"GetMap\"),\"srs=\"+(o.srs||\"EPSG:3857\"),\"width=\"+(o.width||256),\"height=\"+(o.height||256),\"layers=\"+r].join(\"&\")},t.getTileBBox=e,t.getMercCoords=r,Object.defineProperty(t,\"__esModule\",{value:!0})}(e)})),Co=function(t,e,r){this.z=t,this.x=e,this.y=r,this.key=Oo(0,t,e,r)};Co.prototype.equals=function(t){return this.z===t.z&&this.x===t.x&&this.y===t.y},Co.prototype.url=function(t,e){var r=Eo.getTileBBox(this.x,this.y,this.z),n=function(t,e,r){for(var n,i=\"\",a=t;a>0;a--)i+=(e&(n=1<<a-1)?1:0)+(r&n?2:0);return i}(this.z,this.x,this.y);return t[(this.x+this.y)%t.length].replace(\"{prefix}\",(this.x%16).toString(16)+(this.y%16).toString(16)).replace(\"{z}\",String(this.z)).replace(\"{x}\",String(this.x)).replace(\"{y}\",String(\"tms\"===e?Math.pow(2,this.z)-this.y-1:this.y)).replace(\"{quadkey}\",n).replace(\"{bbox-epsg-3857}\",r)};var Lo=function(t,e){this.wrap=t,this.canonical=e,this.key=Oo(t,e.z,e.x,e.y)},zo=function(t,e,r,n,i){this.overscaledZ=t,this.wrap=e,this.canonical=new Co(r,+n,+i),this.key=Oo(e,t,n,i)};function Oo(t,e,r,n){(t*=2)<0&&(t=-1*t-1);var i=1<<e;return 32*(i*i*t+i*n+r)+e}zo.prototype.equals=function(t){return this.overscaledZ===t.overscaledZ&&this.wrap===t.wrap&&this.canonical.equals(t.canonical)},zo.prototype.scaledTo=function(t){var e=this.canonical.z-t;return t>this.canonical.z?new zo(t,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new zo(t,this.wrap,t,this.canonical.x>>e,this.canonical.y>>e)},zo.prototype.isChildOf=function(t){var e=this.canonical.z-t.canonical.z;return 0===t.overscaledZ||t.overscaledZ<this.overscaledZ&&t.canonical.x===this.canonical.x>>e&&t.canonical.y===this.canonical.y>>e},zo.prototype.children=function(t){if(this.overscaledZ>=t)return[new zo(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var e=this.canonical.z+1,r=2*this.canonical.x,n=2*this.canonical.y;return[new zo(e,this.wrap,e,r,n),new zo(e,this.wrap,e,r+1,n),new zo(e,this.wrap,e,r,n+1),new zo(e,this.wrap,e,r+1,n+1)]},zo.prototype.isLessThan=function(t){return this.wrap<t.wrap||!(this.wrap>t.wrap)&&(this.overscaledZ<t.overscaledZ||!(this.overscaledZ>t.overscaledZ)&&(this.canonical.x<t.canonical.x||!(this.canonical.x>t.canonical.x)&&this.canonical.y<t.canonical.y))},zo.prototype.wrapped=function(){return new zo(this.overscaledZ,0,this.canonical.z,this.canonical.x,this.canonical.y)},zo.prototype.unwrapTo=function(t){return new zo(this.overscaledZ,t,this.canonical.z,this.canonical.x,this.canonical.y)},zo.prototype.overscaleFactor=function(){return Math.pow(2,this.overscaledZ-this.canonical.z)},zo.prototype.toUnwrapped=function(){return new Lo(this.wrap,this.canonical)},zo.prototype.toString=function(){return this.overscaledZ+\"/\"+this.canonical.x+\"/\"+this.canonical.y},zo.prototype.toCoordinate=function(){return new s(this.canonical.x+Math.pow(2,this.wrap),this.canonical.y,this.canonical.z)},pr(\"CanonicalTileID\",Co),pr(\"OverscaledTileID\",zo,{omit:[\"posMatrix\"]});var Io=function(t,e,r){if(t<=0)throw new RangeError(\"Level must have positive dimension\");this.dim=t,this.border=e,this.stride=this.dim+2*this.border,this.data=r||new Int32Array((this.dim+2*this.border)*(this.dim+2*this.border))};Io.prototype.set=function(t,e,r){this.data[this._idx(t,e)]=r+65536},Io.prototype.get=function(t,e){return this.data[this._idx(t,e)]-65536},Io.prototype._idx=function(t,e){if(t<-this.border||t>=this.dim+this.border||e<-this.border||e>=this.dim+this.border)throw new RangeError(\"out of range source coordinates for DEM data\");return(e+this.border)*this.stride+(t+this.border)},pr(\"Level\",Io);var Po=function(t,e,r){this.uid=t,this.scale=e||1,this.level=r||new Io(256,512),this.loaded=!!r};Po.prototype.loadFromImage=function(t,e){if(t.height!==t.width)throw new RangeError(\"DEM tiles must be square\");if(e&&\"mapbox\"!==e&&\"terrarium\"!==e)return _('\"'+e+'\" is not a valid encoding type. Valid types include \"mapbox\" and \"terrarium\".');var r=this.level=new Io(t.width,t.width/2),n=t.data;this._unpackData(r,n,e||\"mapbox\");for(var i=0;i<r.dim;i++)r.set(-1,i,r.get(0,i)),r.set(r.dim,i,r.get(r.dim-1,i)),r.set(i,-1,r.get(i,0)),r.set(i,r.dim,r.get(i,r.dim-1));r.set(-1,-1,r.get(0,0)),r.set(r.dim,-1,r.get(r.dim-1,0)),r.set(-1,r.dim,r.get(0,r.dim-1)),r.set(r.dim,r.dim,r.get(r.dim-1,r.dim-1)),this.loaded=!0},Po.prototype._unpackMapbox=function(t,e,r){return(256*t*256+256*e+r)/10-1e4},Po.prototype._unpackTerrarium=function(t,e,r){return 256*t+e+r/256-32768},Po.prototype._unpackData=function(t,e,r){for(var n={mapbox:this._unpackMapbox,terrarium:this._unpackTerrarium}[r],i=0;i<t.dim;i++)for(var a=0;a<t.dim;a++){var o=4*(i*t.dim+a);t.set(a,i,this.scale*n(e[o],e[o+1],e[o+2]))}},Po.prototype.getPixels=function(){return new ui({width:this.level.dim+2*this.level.border,height:this.level.dim+2*this.level.border},new Uint8Array(this.level.data.buffer))},Po.prototype.backfillBorder=function(t,e,r){var n=this.level,i=t.level;if(n.dim!==i.dim)throw new Error(\"level mismatch (dem dimension)\");var a=e*n.dim,o=e*n.dim+n.dim,s=r*n.dim,l=r*n.dim+n.dim;switch(e){case-1:a=o-1;break;case 1:o=a+1}switch(r){case-1:s=l-1;break;case 1:l=s+1}for(var c=h(a,-n.border,n.dim+n.border),u=h(o,-n.border,n.dim+n.border),f=h(s,-n.border,n.dim+n.border),p=h(l,-n.border,n.dim+n.border),d=-e*n.dim,g=-r*n.dim,v=f;v<p;v++)for(var m=c;m<u;m++)n.set(m,v,i.get(m+d,v+g))},pr(\"DEMData\",Po);var Do=function(t){this._stringToNumber={},this._numberToString=[];for(var e=0;e<t.length;e++){var r=t[e];this._stringToNumber[r]=e,this._numberToString[e]=r}};Do.prototype.encode=function(t){return this._stringToNumber[t]},Do.prototype.decode=function(t){return this._numberToString[t]};var Ro=function(t,e,r,n){this.type=\"Feature\",this._vectorTileFeature=t,t._z=e,t._x=r,t._y=n,this.properties=t.properties,null!=t.id&&(this.id=t.id)},Bo={geometry:{configurable:!0}};Bo.geometry.get=function(){return void 0===this._geometry&&(this._geometry=this._vectorTileFeature.toGeoJSON(this._vectorTileFeature._x,this._vectorTileFeature._y,this._vectorTileFeature._z).geometry),this._geometry},Bo.geometry.set=function(t){this._geometry=t},Ro.prototype.toJSON=function(){var t={geometry:this.geometry};for(var e in this)\"_geometry\"!==e&&\"_vectorTileFeature\"!==e&&(t[e]=this[e]);return t},Object.defineProperties(Ro.prototype,Bo);var Fo=function(t,e,r){this.tileID=t,this.x=t.canonical.x,this.y=t.canonical.y,this.z=t.canonical.z,this.grid=e||new lr(Dn,16,0),this.featureIndexArray=r||new Mn};function No(t,e){return e-t}Fo.prototype.insert=function(t,e,r,n,i){var a=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(r,n,i);for(var o=0;o<e.length;o++){for(var s=e[o],l=[1/0,1/0,-1/0,-1/0],c=0;c<s.length;c++){var u=s[c];l[0]=Math.min(l[0],u.x),l[1]=Math.min(l[1],u.y),l[2]=Math.max(l[2],u.x),l[3]=Math.max(l[3],u.y)}l[0]<Dn&&l[1]<Dn&&l[2]>=0&&l[3]>=0&&this.grid.insert(a,l[0],l[1],l[2],l[3])}},Fo.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new ga.VectorTile(new io(this.rawTileData)).layers,this.sourceLayerCoder=new Do(this.vtLayers?Object.keys(this.vtLayers).sort():[\"_geojsonTileLayer\"])),this.vtLayers},Fo.prototype.query=function(t,e){var r=this;this.loadVTLayers();for(var n=t.params||{},i=Dn/t.tileSize/t.scale,a=Re(n.filter),o=t.queryGeometry,s=t.queryPadding*i,l=1/0,c=1/0,u=-1/0,f=-1/0,h=0;h<o.length;h++)for(var p=o[h],d=0;d<p.length;d++){var g=p[d];l=Math.min(l,g.x),c=Math.min(c,g.y),u=Math.max(u,g.x),f=Math.max(f,g.y)}var v=this.grid.query(l-s,c-s,u+s,f+s);v.sort(No);for(var m,y={},x=function(s){var l=v[s];if(l!==m){m=l;var c=r.featureIndexArray.get(l),u=null;r.loadMatchingFeature(y,c.bucketIndex,c.sourceLayerIndex,c.featureIndex,a,n.layers,e,function(e,n){return u||(u=Bn(e)),n.queryIntersectsFeature(o,e,u,r.z,t.transform,i,t.posMatrix)})}},b=0;b<v.length;b++)x(b);return y},Fo.prototype.loadMatchingFeature=function(t,e,r,n,i,a,o,s){var l=this.bucketLayerIDs[e];if(!a||function(t,e){for(var r=0;r<t.length;r++)if(e.indexOf(t[r])>=0)return!0;return!1}(a,l)){var c=this.sourceLayerCoder.decode(r),u=this.vtLayers[c].feature(n);if(i(new Lr(this.tileID.overscaledZ),u))for(var f=0;f<l.length;f++){var h=l[f];if(!(a&&a.indexOf(h)<0)){var p=o[h];if(p&&(!s||s(u,p))){var d=new Ro(u,this.z,this.x,this.y);d.layer=p.serialize();var g=t[h];void 0===g&&(g=t[h]=[]),g.push({featureIndex:n,feature:d})}}}}},Fo.prototype.lookupSymbolFeatures=function(t,e,r,n,i,a){var o={};this.loadVTLayers();for(var s=Re(n),l=0,c=t;l<c.length;l+=1){var u=c[l];this.loadMatchingFeature(o,e,r,u,s,i,a)}return o},Fo.prototype.hasLayer=function(t){for(var e=0,r=this.bucketLayerIDs;e<r.length;e+=1)for(var n=0,i=r[e];n<i.length;n+=1)if(t===i[n])return!0;return!1},pr(\"FeatureIndex\",Fo,{omit:[\"rawTileData\",\"sourceLayerCoder\"]});var jo={horizontal:1,vertical:2,horizontalOnly:3},Vo={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},Uo={};function qo(t,e,r,n){var i=Math.pow(t-e,2);return n?t<e?i/2:2*i:i+Math.abs(r)*r}function Ho(t,e){var r=0;return 10===t&&(r-=1e4),40!==t&&65288!==t||(r+=50),41!==e&&65289!==e||(r+=50),r}function Go(t,e,r,n,i,a){for(var o=null,s=qo(e,r,i,a),l=0,c=n;l<c.length;l+=1){var u=c[l],f=qo(e-u.x,r,i,a)+u.badness;f<=s&&(o=u,s=f)}return{index:t,x:e,priorBreak:o,badness:s}}function Wo(t,e,r,n){if(!r)return[];if(!t)return[];for(var i,a=[],o=function(t,e,r,n){for(var i=0,a=0;a<t.length;a++){var o=n[t.charCodeAt(a)];o&&(i+=o.metrics.advance+e)}return i/Math.max(1,Math.ceil(i/r))}(t,e,r,n),s=0,l=0;l<t.length;l++){var c=t.charCodeAt(l),u=n[c];u&&!Vo[c]&&(s+=u.metrics.advance+e),l<t.length-1&&(Uo[c]||!((i=c)<11904)&&(yr[\"Bopomofo Extended\"](i)||yr.Bopomofo(i)||yr[\"CJK Compatibility Forms\"](i)||yr[\"CJK Compatibility Ideographs\"](i)||yr[\"CJK Compatibility\"](i)||yr[\"CJK Radicals Supplement\"](i)||yr[\"CJK Strokes\"](i)||yr[\"CJK Symbols and Punctuation\"](i)||yr[\"CJK Unified Ideographs Extension A\"](i)||yr[\"CJK Unified Ideographs\"](i)||yr[\"Enclosed CJK Letters and Months\"](i)||yr[\"Halfwidth and Fullwidth Forms\"](i)||yr.Hiragana(i)||yr[\"Ideographic Description Characters\"](i)||yr[\"Kangxi Radicals\"](i)||yr[\"Katakana Phonetic Extensions\"](i)||yr.Katakana(i)||yr[\"Vertical Forms\"](i)||yr[\"Yi Radicals\"](i)||yr[\"Yi Syllables\"](i)))&&a.push(Go(l+1,s,o,a,Ho(c,t.charCodeAt(l+1)),!1))}return function t(e){return e?t(e.priorBreak).concat(e.index):[]}(Go(t.length,s,o,a,0,!0))}function Yo(t){var e=.5,r=.5;switch(t){case\"right\":case\"top-right\":case\"bottom-right\":e=1;break;case\"left\":case\"top-left\":case\"bottom-left\":e=0}switch(t){case\"bottom\":case\"bottom-right\":case\"bottom-left\":r=1;break;case\"top\":case\"top-right\":case\"top-left\":r=0}return{horizontalAlign:e,verticalAlign:r}}function Xo(t,e,r,n,i){if(i){var a=e[t[n].glyph];if(a)for(var o=a.metrics.advance,s=(t[n].x+o)*i,l=r;l<=n;l++)t[l].x-=s}}Uo[10]=!0,Uo[32]=!0,Uo[38]=!0,Uo[40]=!0,Uo[41]=!0,Uo[43]=!0,Uo[45]=!0,Uo[47]=!0,Uo[173]=!0,Uo[183]=!0,Uo[8203]=!0,Uo[8208]=!0,Uo[8211]=!0,Uo[8231]=!0,e.commonjsGlobal=r,e.unwrapExports=n,e.createCommonjsModule=i,e.default=self,e.default$1=l,e.getJSON=function(t,e){var r=T(t);return r.setRequestHeader(\"Accept\",\"application/json\"),r.onerror=function(){e(new Error(r.statusText))},r.onload=function(){if(r.status>=200&&r.status<300&&r.response){var n;try{n=JSON.parse(r.response)}catch(t){return e(t)}e(null,n)}else 401===r.status&&t.url.match(/mapbox.com/)?e(new A(r.statusText+\": you may have provided an invalid Mapbox access token. See https://www.mapbox.com/api-documentation/#access-tokens\",r.status,t.url)):e(new A(r.statusText,r.status,t.url))},r.send(),r},e.getImage=function(t,e){return S(t,function(t,r){if(t)e(t);else if(r){var n=new self.Image,i=self.URL||self.webkitURL;n.onload=function(){e(null,n),i.revokeObjectURL(n.src)};var a=new self.Blob([new Uint8Array(r.data)],{type:\"image/png\"});n.cacheControl=r.cacheControl,n.expires=r.expires,n.src=r.data.byteLength?i.createObjectURL(a):\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=\"}})},e.ResourceType=M,e.RGBAImage=ui,e.default$2=Ka,e.ImagePosition=Qa,e.getArrayBuffer=S,e.default$3=function(t){return new io(t).readFields(ko,[])},e.default$4=yr,e.asyncAll=function(t,e,r){if(!t.length)return r(null,[]);var n=t.length,i=new Array(t.length),a=null;t.forEach(function(t,o){e(t,function(t,e){t&&(a=t),i[o]=e,0==--n&&r(a,i)})})},e.AlphaImage=ci,e.default$5=I,e.endsWith=v,e.extend=p,e.sphericalToCartesian=function(t){var e=t[0],r=t[1],n=t[2];return r+=90,r*=Math.PI/180,n*=Math.PI/180,{x:e*Math.cos(r)*Math.sin(n),y:e*Math.sin(r)*Math.sin(n),z:e*Math.cos(n)}},e.Evented=O,e.validateStyle=nr,e.validateLight=ir,e.emitValidationErrors=sr,e.default$6=tt,e.number=wt,e.Properties=qr,e.Transitionable=Ir,e.Transitioning=Dr,e.PossiblyEvaluated=Fr,e.DataConstantProperty=Nr,e.warnOnce=_,e.uniqueId=function(){return d++},e.default$7=So,e.pick=function(t,e){for(var r={},n=0;n<e.length;n++){var i=e[n];i in t&&(r[i]=t[i])}return r},e.wrap=function(t,e,r){var n=r-e,i=((t-e)%n+n)%n+e;return i===e?r:i},e.clamp=h,e.Event=L,e.ErrorEvent=z,e.OverscaledTileID=zo,e.default$8=Dn,e.createLayout=Xr,e.getCoordinatesCenter=function(t){for(var e=1/0,r=1/0,n=-1/0,i=-1/0,a=0;a<t.length;a++)e=Math.min(e,t[a].column),r=Math.min(r,t[a].row),n=Math.max(n,t[a].column),i=Math.max(i,t[a].row);var o=n-e,l=i-r,c=Math.max(o,l),u=Math.max(0,Math.floor(-Math.log(c)/Math.LN2));return new s((e+n)/2,(r+i)/2,0).zoomTo(u)},e.CanonicalTileID=Co,e.RasterBoundsArray=Jr,e.getVideo=function(t,e){var r,n,i=self.document.createElement(\"video\");i.onloadstart=function(){e(null,i)};for(var a=0;a<t.length;a++){var o=self.document.createElement(\"source\");r=t[a],n=void 0,(n=self.document.createElement(\"a\")).href=r,(n.protocol!==self.document.location.protocol||n.host!==self.document.location.host)&&(i.crossOrigin=\"Anonymous\"),o.src=t[a],i.appendChild(o)}return i},e.default$9=P,e.bindAll=g,e.default$10=function t(e,r){if(Array.isArray(e)){if(!Array.isArray(r)||e.length!==r.length)return!1;for(var n=0;n<e.length;n++)if(!t(e[n],r[n]))return!1;return!0}if(\"object\"==typeof e&&null!==e&&null!==r){if(\"object\"!=typeof r)return!1;if(Object.keys(e).length!==Object.keys(r).length)return!1;for(var i in e)if(!t(e[i],r[i]))return!1;return!0}return e===r},e.parseCacheControl=function(t){var e={};if(t.replace(/(?:^|(?:\\s*\\,\\s*))([^\\x00-\\x20\\(\\)<>@\\,;\\:\\\\\"\\/\\[\\]\\?\\=\\{\\}\\x7F]+)(?:\\=(?:([^\\x00-\\x20\\(\\)<>@\\,;\\:\\\\\"\\/\\[\\]\\?\\=\\{\\}\\x7F]+)|(?:\\\"((?:[^\"\\\\]|\\\\.)*)\\\")))?/g,function(t,r,n,i){var a=n||i;return e[r]=!a||a.toLowerCase(),\"\"}),e[\"max-age\"]){var r=parseInt(e[\"max-age\"],10);isNaN(r)?delete e[\"max-age\"]:e[\"max-age\"]=r}return e},e.default$11=Fo,e.default$12=Ro,e.default$13=Re,e.default$14=Ha,e.CollisionBoxArray=vn,e.default$15=Tn,e.TriangleIndexArray=fn,e.default$16=Lr,e.default$17=s,e.keysDifference=function(t,e){var r=[];for(var n in t)n in e||r.push(n);return r},e.default$18=[\"type\",\"source\",\"source-layer\",\"minzoom\",\"maxzoom\",\"filter\",\"layout\"],e.mat4=ri,e.vec4=ei,e.getSizeData=Ba,e.evaluateSizeForFeature=function(t,e,r){var n=e;return\"source\"===t.functionType?r.lowerSize/10:\"composite\"===t.functionType?wt(r.lowerSize/10,r.upperSize/10,n.uSizeT):n.uSize},e.evaluateSizeForZoom=function(t,e,r){if(\"constant\"===t.functionType)return{uSizeT:0,uSize:t.layoutSize};if(\"source\"===t.functionType)return{uSizeT:0,uSize:0};if(\"camera\"===t.functionType){var n=t.propertyValue,i=t.zoomRange,a=t.sizeRange,o=h(Se(n,r.specification).interpolationFactor(e,i.min,i.max),0,1);return{uSizeT:0,uSize:a.min+o*(a.max-a.min)}}var s=t.propertyValue,l=t.zoomRange;return{uSizeT:h(Se(s,r.specification).interpolationFactor(e,l.min,l.max),0,1),uSize:0}},e.addDynamicAttributes=Va,e.default$19=Wa,e.WritingMode=jo,e.multiPolygonIntersectsBufferedPoint=jn,e.multiPolygonIntersectsMultiPolygon=Vn,e.multiPolygonIntersectsBufferedMultiLine=Un,e.polygonIntersectsPolygon=function(t,e){for(var r=0;r<t.length;r++)if(Zn(e,t[r]))return!0;for(var n=0;n<e.length;n++)if(Zn(t,e[n]))return!0;return!!Hn(t,e)},e.distToSegmentSquared=Yn,e.default$20=ti,e.default$21=Hr,e.default$22=function(t){return new Ja[t.type](t)},e.clone=x,e.filterObject=y,e.mapObject=m,e.registerForPluginAvailability=function(t){return Tr?t({pluginURL:Tr,completionCallback:Mr}):Er.once(\"pluginAvailable\",t),t},e.evented=Er,e.default$23=mr,e.default$24=On,e.PosArray=$r,e.UnwrappedTileID=Lo,e.ease=f,e.bezier=u,e.setRTLTextPlugin=function(t,e){if(Ar)throw new Error(\"setRTLTextPlugin cannot be called multiple times.\");Ar=!0,Tr=t,Mr=function(t){t?(Ar=!1,Tr=null,e&&e(t)):Sr=!0},Er.fire(new L(\"pluginAvailable\",{pluginURL:Tr,completionCallback:Mr}))},e.values=function(t){var e=[];for(var r in t)e.push(t[r]);return e},e.default$25=Ra,e.register=pr,e.GLYPH_PBF_BORDER=To,e.shapeText=function(t,e,r,n,i,a,o,s,l,c){var u=t.trim();c===jo.vertical&&(u=function(t){for(var e=\"\",r=0;r<t.length;r++){var n=t.charCodeAt(r+1)||null,i=t.charCodeAt(r-1)||null;n&&wr(n)&&!Da[t[r+1]]||i&&wr(i)&&!Da[t[r-1]]||!Da[t[r]]?e+=t[r]:e+=Da[t[r]]}return e}(u));var f=[],h={positionedGlyphs:f,text:u,top:s[1],bottom:s[1],left:s[0],right:s[0],writingMode:c},p=Cr.processBidirectionalText;return function(t,e,r,n,i,a,o,s,l){for(var c=0,u=-17,f=0,h=t.positionedGlyphs,p=\"right\"===a?1:\"left\"===a?0:.5,d=0,g=r;d<g.length;d+=1){var v=g[d];if((v=v.trim()).length){for(var m=h.length,y=0;y<v.length;y++){var x=v.charCodeAt(y),b=e[x];b&&(_r(x)&&o!==jo.horizontal?(h.push({glyph:x,x:c,y:0,vertical:!0}),c+=l+s):(h.push({glyph:x,x:c,y:u,vertical:!1}),c+=b.metrics.advance+s))}if(h.length!==m){var _=c-s;f=Math.max(_,f),Xo(h,e,m,h.length-1,p)}c=0,u+=n}else u+=n}var w=Yo(i),k=w.horizontalAlign,M=w.verticalAlign;!function(t,e,r,n,i,a,o){for(var s=(e-r)*i,l=(-n*o+.5)*a,c=0;c<t.length;c++)t[c].x+=s,t[c].y+=l}(h,p,k,M,f,n,r.length);var A=r.length*n;t.top+=-M*A,t.bottom=t.top+A,t.left+=-k*f,t.right=t.left+f}(h,e,p?p(u,Wo(u,o,r,e)):function(t,e){for(var r=[],n=0,i=0,a=e;i<a.length;i+=1){var o=a[i];r.push(t.substring(n,o)),n=o}return n<t.length&&r.push(t.substring(n,t.length)),r}(u,Wo(u,o,r,e)),n,i,a,c,o,l),!!f.length&&h},e.shapeIcon=function(t,e,r){var n=Yo(r),i=n.horizontalAlign,a=n.verticalAlign,o=e[0],s=e[1],l=o-t.displaySize[0]*i,c=l+t.displaySize[0],u=s-t.displaySize[1]*a;return{image:t,top:u,bottom:u+t.displaySize[1],left:l,right:c}},e.allowsVerticalWritingMode=xr,e.allowsLetterSpacing=function(t){for(var e=0,r=t;e<r.length;e+=1)if(!br(r[e].charCodeAt(0)))return!1;return!0},e.default$26=Yi,e.default$27=Do,e.default$28=eo,e.default$29=ga,e.default$30=io,e.default$31=Po,e.__moduleExports=ga,e.default$32=l,e.__moduleExports$1=io,e.plugin=Cr}),i(0,function(t){function e(t){var r=typeof t;if(\"number\"===r||\"boolean\"===r||\"string\"===r||null==t)return JSON.stringify(t);if(Array.isArray(t)){for(var n=\"[\",i=0,a=t;i<a.length;i+=1)n+=e(a[i])+\",\";return n+\"]\"}for(var o=Object.keys(t).sort(),s=\"{\",l=0;l<o.length;l++)s+=JSON.stringify(o[l])+\":\"+e(t[o[l]])+\",\";return s+\"}\"}function r(r){for(var n=\"\",i=0,a=t.default$18;i<a.length;i+=1)n+=\"/\"+e(r[a[i]]);return n}var n=function(t){t&&this.replace(t)};function i(t,e,r,n,i){if(void 0===e.segment)return!0;for(var a=e,o=e.segment+1,s=0;s>-r/2;){if(--o<0)return!1;s-=t[o].dist(a),a=t[o]}s+=t[o].dist(t[o+1]),o++;for(var l=[],c=0;s<r/2;){var u=t[o-1],f=t[o],h=t[o+1];if(!h)return!1;var p=u.angleTo(f)-f.angleTo(h);for(p=Math.abs((p+3*Math.PI)%(2*Math.PI)-Math.PI),l.push({distance:s,angleDelta:p}),c+=p;s-l[0].distance>n;)c-=l.shift().angleDelta;if(c>i)return!1;o++,s+=f.dist(h)}return!0}function a(e,r,n,a,o,s,l,c,u){var f=a?.6*s*l:0,h=Math.max(a?a.right-a.left:0,o?o.right-o.left:0),p=0===e[0].x||e[0].x===u||0===e[0].y||e[0].y===u;return r-h*l<r/4&&(r=h*l+r/4),function e(r,n,a,o,s,l,c,u,f){for(var h=l/2,p=0,d=0;d<r.length-1;d++)p+=r[d].dist(r[d+1]);for(var g=0,v=n-a,m=[],y=0;y<r.length-1;y++){for(var x=r[y],b=r[y+1],_=x.dist(b),w=b.angleTo(x);v+a<g+_;){var k=((v+=a)-g)/_,M=t.number(x.x,b.x,k),A=t.number(x.y,b.y,k);if(M>=0&&M<f&&A>=0&&A<f&&v-h>=0&&v+h<=p){var T=new t.default$25(M,A,w,y);T._round(),o&&!i(r,T,l,o,s)||m.push(T)}}g+=_}return u||m.length||c||(m=e(r,g/2,a,o,s,l,c,!0,f)),m}(e,p?r/2*c%r:(h/2+2*s)*l*c%r,r,f,n,h*l,p,!1,u)}n.prototype.replace=function(t){this._layerConfigs={},this._layers={},this.update(t,[])},n.prototype.update=function(e,n){for(var i=this,a=0,o=e;a<o.length;a+=1){var s=o[a];i._layerConfigs[s.id]=s;var l=i._layers[s.id]=t.default$22(s);l._featureFilter=t.default$13(l.filter)}for(var c=0,u=n;c<u.length;c+=1){var f=u[c];delete i._layerConfigs[f],delete i._layers[f]}this.familiesBySource={};for(var h=0,p=function(t){for(var e={},n=0;n<t.length;n++){var i=r(t[n]),a=e[i];a||(a=e[i]=[]),a.push(t[n])}var o=[];for(var s in e)o.push(e[s]);return o}(t.values(this._layerConfigs));h<p.length;h+=1){var d=p[h].map(function(t){return i._layers[t.id]}),g=d[0];if(\"none\"!==g.visibility){var v=g.source||\"\",m=i.familiesBySource[v];m||(m=i.familiesBySource[v]={});var y=g.sourceLayer||\"_geojsonTileLayer\",x=m[y];x||(x=m[y]=[]),x.push(d)}}};var o=function(){this.opacity=0,this.targetOpacity=0,this.time=0};o.prototype.clone=function(){var t=new o;return t.opacity=this.opacity,t.targetOpacity=this.targetOpacity,t.time=this.time,t},t.register(\"OpacityState\",o);var s=function(t,e,r,n,i,a,o,s,l,c,u){var f=o.top*s-l,h=o.bottom*s+l,p=o.left*s-l,d=o.right*s+l;if(this.boxStartIndex=t.length,c){var g=h-f,v=d-p;g>0&&(g=Math.max(10*s,g),this._addLineCollisionCircles(t,e,r,r.segment,v,g,n,i,a,u))}else t.emplaceBack(r.x,r.y,p,f,d,h,n,i,a,0,0);this.boxEndIndex=t.length};s.prototype._addLineCollisionCircles=function(t,e,r,n,i,a,o,s,l,c){var u=a/2,f=Math.floor(i/u),h=1+.4*Math.log(c)/Math.LN2,p=Math.floor(f*h/2),d=-a/2,g=r,v=n+1,m=d,y=-i/2,x=y-i/4;do{if(--v<0){if(m>y)return;v=0;break}m-=e[v].dist(g),g=e[v]}while(m>x);for(var b=e[v].dist(e[v+1]),_=-p;_<f+p;_++){var w=_*u,k=y+w;if(w<0&&(k+=w),w>i&&(k+=w-i),!(k<m)){for(;m+b<k;){if(m+=b,++v+1>=e.length)return;b=e[v].dist(e[v+1])}var M=k-m,A=e[v],T=e[v+1].sub(A)._unit()._mult(M)._add(A)._round(),S=Math.abs(k-d)<u?0:.8*(k-d);t.emplaceBack(T.x,T.y,-a/2,-a/2,a/2,a/2,o,s,l,a/2,S)}}};var l=u,c=u;function u(t,e){if(!(this instanceof u))return new u(t,e);if(this.data=t||[],this.length=this.data.length,this.compare=e||f,this.length>0)for(var r=(this.length>>1)-1;r>=0;r--)this._down(r)}function f(t,e){return t<e?-1:t>e?1:0}function h(e,r,n){void 0===r&&(r=1),void 0===n&&(n=!1);for(var i=1/0,a=1/0,o=-1/0,s=-1/0,c=e[0],u=0;u<c.length;u++){var f=c[u];(!u||f.x<i)&&(i=f.x),(!u||f.y<a)&&(a=f.y),(!u||f.x>o)&&(o=f.x),(!u||f.y>s)&&(s=f.y)}var h=o-i,g=s-a,v=Math.min(h,g),m=v/2,y=new l(null,p);if(0===v)return new t.default$1(i,a);for(var x=i;x<o;x+=v)for(var b=a;b<s;b+=v)y.push(new d(x+m,b+m,m,e));for(var _=function(t){for(var e=0,r=0,n=0,i=t[0],a=0,o=i.length,s=o-1;a<o;s=a++){var l=i[a],c=i[s],u=l.x*c.y-c.x*l.y;r+=(l.x+c.x)*u,n+=(l.y+c.y)*u,e+=3*u}return new d(r/e,n/e,0,t)}(e),w=y.length;y.length;){var k=y.pop();(k.d>_.d||!_.d)&&(_=k,n&&console.log(\"found best %d after %d probes\",Math.round(1e4*k.d)/1e4,w)),k.max-_.d<=r||(m=k.h/2,y.push(new d(k.p.x-m,k.p.y-m,m,e)),y.push(new d(k.p.x+m,k.p.y-m,m,e)),y.push(new d(k.p.x-m,k.p.y+m,m,e)),y.push(new d(k.p.x+m,k.p.y+m,m,e)),w+=4)}return n&&(console.log(\"num probes: \"+w),console.log(\"best distance: \"+_.d)),_.p}function p(t,e){return e.max-t.max}function d(e,r,n,i){this.p=new t.default$1(e,r),this.h=n,this.d=function(e,r){for(var n=!1,i=1/0,a=0;a<r.length;a++)for(var o=r[a],s=0,l=o.length,c=l-1;s<l;c=s++){var u=o[s],f=o[c];u.y>e.y!=f.y>e.y&&e.x<(f.x-u.x)*(e.y-u.y)/(f.y-u.y)+u.x&&(n=!n),i=Math.min(i,t.distToSegmentSquared(e,u,f))}return(n?1:-1)*Math.sqrt(i)}(this.p,i),this.max=this.d+this.h*Math.SQRT2}function g(e,r,n,i,a,o){e.createArrays(),e.symbolInstances=[];var s=512*e.overscaling;e.tilePixelRatio=t.default$8/s,e.compareText={},e.iconsNeedLinear=!1;var l=e.layers[0].layout,c=e.layers[0]._unevaluatedLayout._values,u={};if(\"composite\"===e.textSizeData.functionType){var f=e.textSizeData.zoomRange,h=f.min,p=f.max;u.compositeTextSizes=[c[\"text-size\"].possiblyEvaluate(new t.default$16(h)),c[\"text-size\"].possiblyEvaluate(new t.default$16(p))]}if(\"composite\"===e.iconSizeData.functionType){var d=e.iconSizeData.zoomRange,g=d.min,m=d.max;u.compositeIconSizes=[c[\"icon-size\"].possiblyEvaluate(new t.default$16(g)),c[\"icon-size\"].possiblyEvaluate(new t.default$16(m))]}u.layoutTextSize=c[\"text-size\"].possiblyEvaluate(new t.default$16(e.zoom+1)),u.layoutIconSize=c[\"icon-size\"].possiblyEvaluate(new t.default$16(e.zoom+1)),u.textMaxSize=c[\"text-size\"].possiblyEvaluate(new t.default$16(18));for(var y=24*l.get(\"text-line-height\"),x=\"map\"===l.get(\"text-rotation-alignment\")&&\"line\"===l.get(\"symbol-placement\"),b=l.get(\"text-keep-upright\"),_=0,w=e.features;_<w.length;_+=1){var k=w[_],M=l.get(\"text-font\").evaluate(k).join(\",\"),A=r[M]||{},T=n[M]||{},S={},E=k.text;if(E){var C=l.get(\"text-offset\").evaluate(k).map(function(t){return 24*t}),L=24*l.get(\"text-letter-spacing\").evaluate(k),z=t.allowsLetterSpacing(E)?L:0,O=l.get(\"text-anchor\").evaluate(k),I=l.get(\"text-justify\").evaluate(k),P=\"line\"!==l.get(\"symbol-placement\")?24*l.get(\"text-max-width\").evaluate(k):0;S.horizontal=t.shapeText(E,A,P,y,O,I,z,C,24,t.WritingMode.horizontal),t.allowsVerticalWritingMode(E)&&x&&b&&(S.vertical=t.shapeText(E,A,P,y,O,I,z,C,24,t.WritingMode.vertical))}var D=void 0;if(k.icon){var R=i[k.icon];R&&(D=t.shapeIcon(a[k.icon],l.get(\"icon-offset\").evaluate(k),l.get(\"icon-anchor\").evaluate(k)),void 0===e.sdfIcons?e.sdfIcons=R.sdf:e.sdfIcons!==R.sdf&&t.warnOnce(\"Style sheet warning: Cannot mix SDF and non-SDF icons in one buffer\"),R.pixelRatio!==e.pixelRatio?e.iconsNeedLinear=!0:0!==l.get(\"icon-rotate\").constantOr(1)&&(e.iconsNeedLinear=!0))}(S.horizontal||D)&&v(e,k,S,D,T,u)}o&&e.generateCollisionDebugBuffers()}function v(e,r,n,i,l,c){var u=c.layoutTextSize.evaluate(r),f=c.layoutIconSize.evaluate(r),p=c.textMaxSize.evaluate(r);void 0===p&&(p=u);var d=e.layers[0].layout,g=d.get(\"text-offset\").evaluate(r),v=d.get(\"icon-offset\").evaluate(r),x=u/24,b=e.tilePixelRatio*x,_=e.tilePixelRatio*p/24,w=e.tilePixelRatio*f,k=e.tilePixelRatio*d.get(\"symbol-spacing\"),M=d.get(\"text-padding\")*e.tilePixelRatio,A=d.get(\"icon-padding\")*e.tilePixelRatio,T=d.get(\"text-max-angle\")/180*Math.PI,S=\"map\"===d.get(\"text-rotation-alignment\")&&\"line\"===d.get(\"symbol-placement\"),E=\"map\"===d.get(\"icon-rotation-alignment\")&&\"line\"===d.get(\"symbol-placement\"),C=k/2,L=function(a,u){u.x<0||u.x>=t.default$8||u.y<0||u.y>=t.default$8||e.symbolInstances.push(function(e,r,n,i,a,l,c,u,f,h,p,d,g,v,y,x,b,_,w,k,M){var A,T,S=e.addToLineVertexArray(r,n),E=0,C=0,L=0,z=i.horizontal?i.horizontal.text:\"\",O=[];i.horizontal&&(A=new s(c,n,r,u,f,h,i.horizontal,p,d,g,e.overscaling),C+=m(e,r,i.horizontal,l,g,w,v,S,i.vertical?t.WritingMode.horizontal:t.WritingMode.horizontalOnly,O,k,M),i.vertical&&(L+=m(e,r,i.vertical,l,g,w,v,S,t.WritingMode.vertical,O,k,M)));var I=A?A.boxStartIndex:e.collisionBoxArray.length,P=A?A.boxEndIndex:e.collisionBoxArray.length;if(a){var D=function(e,r,n,i,a,o){var s,l,c,u,f=r.image,h=n.layout,p=r.top-1/f.pixelRatio,d=r.left-1/f.pixelRatio,g=r.bottom+1/f.pixelRatio,v=r.right+1/f.pixelRatio;if(\"none\"!==h.get(\"icon-text-fit\")&&a){var m=v-d,y=g-p,x=h.get(\"text-size\").evaluate(o)/24,b=a.left*x,_=a.right*x,w=a.top*x,k=_-b,M=a.bottom*x-w,A=h.get(\"icon-text-fit-padding\")[0],T=h.get(\"icon-text-fit-padding\")[1],S=h.get(\"icon-text-fit-padding\")[2],E=h.get(\"icon-text-fit-padding\")[3],C=\"width\"===h.get(\"icon-text-fit\")?.5*(M-y):0,L=\"height\"===h.get(\"icon-text-fit\")?.5*(k-m):0,z=\"width\"===h.get(\"icon-text-fit\")||\"both\"===h.get(\"icon-text-fit\")?k:m,O=\"height\"===h.get(\"icon-text-fit\")||\"both\"===h.get(\"icon-text-fit\")?M:y;s=new t.default$1(b+L-E,w+C-A),l=new t.default$1(b+L+T+z,w+C-A),c=new t.default$1(b+L+T+z,w+C+S+O),u=new t.default$1(b+L-E,w+C+S+O)}else s=new t.default$1(d,p),l=new t.default$1(v,p),c=new t.default$1(v,g),u=new t.default$1(d,g);var I=n.layout.get(\"icon-rotate\").evaluate(o)*Math.PI/180;if(I){var P=Math.sin(I),D=Math.cos(I),R=[D,-P,P,D];s._matMult(R),l._matMult(R),u._matMult(R),c._matMult(R)}return[{tl:s,tr:l,bl:u,br:c,tex:f.paddedRect,writingMode:void 0,glyphOffset:[0,0]}]}(0,a,l,0,i.horizontal,w);T=new s(c,n,r,u,f,h,a,y,x,!1,e.overscaling),E=4*D.length;var R=e.iconSizeData,B=null;\"source\"===R.functionType?B=[10*l.layout.get(\"icon-size\").evaluate(w)]:\"composite\"===R.functionType&&(B=[10*M.compositeIconSizes[0].evaluate(w),10*M.compositeIconSizes[1].evaluate(w)]),e.addSymbols(e.icon,D,B,_,b,w,!1,r,S.lineStartIndex,S.lineLength)}var F=T?T.boxStartIndex:e.collisionBoxArray.length,N=T?T.boxEndIndex:e.collisionBoxArray.length;return e.glyphOffsetArray.length>=t.default$14.MAX_GLYPHS&&t.warnOnce(\"Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907\"),{key:z,textBoxStartIndex:I,textBoxEndIndex:P,iconBoxStartIndex:F,iconBoxEndIndex:N,textOffset:v,iconOffset:_,anchor:r,line:n,featureIndex:u,feature:w,numGlyphVertices:C,numVerticalGlyphVertices:L,numIconVertices:E,textOpacityState:new o,iconOpacityState:new o,isDuplicate:!1,placedTextSymbolIndices:O,crossTileID:0}}(e,u,a,n,i,e.layers[0],e.collisionBoxArray,r.index,r.sourceLayerIndex,e.index,b,M,S,g,w,A,E,v,r,l,c))};if(\"line\"===d.get(\"symbol-placement\"))for(var z=0,O=function(e,r,n,i,a){for(var o=[],s=0;s<e.length;s++)for(var l=e[s],c=void 0,u=0;u<l.length-1;u++){var f=l[u],h=l[u+1];f.x<0&&h.x<0||(f.x<0?f=new t.default$1(0,f.y+(h.y-f.y)*((0-f.x)/(h.x-f.x)))._round():h.x<0&&(h=new t.default$1(0,f.y+(h.y-f.y)*((0-f.x)/(h.x-f.x)))._round()),f.y<0&&h.y<0||(f.y<0?f=new t.default$1(f.x+(h.x-f.x)*((0-f.y)/(h.y-f.y)),0)._round():h.y<0&&(h=new t.default$1(f.x+(h.x-f.x)*((0-f.y)/(h.y-f.y)),0)._round()),f.x>=i&&h.x>=i||(f.x>=i?f=new t.default$1(i,f.y+(h.y-f.y)*((i-f.x)/(h.x-f.x)))._round():h.x>=i&&(h=new t.default$1(i,f.y+(h.y-f.y)*((i-f.x)/(h.x-f.x)))._round()),f.y>=a&&h.y>=a||(f.y>=a?f=new t.default$1(f.x+(h.x-f.x)*((a-f.y)/(h.y-f.y)),a)._round():h.y>=a&&(h=new t.default$1(f.x+(h.x-f.x)*((a-f.y)/(h.y-f.y)),a)._round()),c&&f.equals(c[c.length-1])||(c=[f],o.push(c)),c.push(h)))))}return o}(r.geometry,0,0,t.default$8,t.default$8);z<O.length;z+=1)for(var I=O[z],P=0,D=a(I,k,T,n.vertical||n.horizontal,i,24,_,e.overscaling,t.default$8);P<D.length;P+=1){var R=D[P],B=n.horizontal;B&&y(e,B.text,C,R)||L(I,R)}else if(\"Polygon\"===r.type)for(var F=0,N=t.default$26(r.geometry,0);F<N.length;F+=1){var j=N[F],V=h(j,16);L(j[0],new t.default$25(V.x,V.y,0))}else if(\"LineString\"===r.type)for(var U=0,q=r.geometry;U<q.length;U+=1){var H=q[U];L(H,new t.default$25(H[0].x,H[0].y,0))}else if(\"Point\"===r.type)for(var G=0,W=r.geometry;G<W.length;G+=1)for(var Y=0,X=W[G];Y<X.length;Y+=1){var Z=X[Y];L([Z],new t.default$25(Z.x,Z.y,0))}}function m(e,r,n,i,a,o,s,l,c,u,f,h){var p=function(e,r,n,i,a,o){for(var s=n.layout.get(\"text-rotate\").evaluate(a)*Math.PI/180,l=n.layout.get(\"text-offset\").evaluate(a).map(function(t){return 24*t}),c=r.positionedGlyphs,u=[],f=0;f<c.length;f++){var h=c[f],p=o[h.glyph];if(p){var d=p.rect;if(d){var g=t.GLYPH_PBF_BORDER+1,v=p.metrics.advance/2,m=i?[h.x+v,h.y]:[0,0],y=i?[0,0]:[h.x+v+l[0],h.y+l[1]],x=p.metrics.left-g-v+y[0],b=-p.metrics.top-g+y[1],_=x+d.w,w=b+d.h,k=new t.default$1(x,b),M=new t.default$1(_,b),A=new t.default$1(x,w),T=new t.default$1(_,w);if(i&&h.vertical){var S=new t.default$1(-v,v),E=-Math.PI/2,C=new t.default$1(5,0);k._rotateAround(E,S)._add(C),M._rotateAround(E,S)._add(C),A._rotateAround(E,S)._add(C),T._rotateAround(E,S)._add(C)}if(s){var L=Math.sin(s),z=Math.cos(s),O=[z,-L,L,z];k._matMult(O),M._matMult(O),A._matMult(O),T._matMult(O)}u.push({tl:k,tr:M,bl:A,br:T,tex:d,writingMode:r.writingMode,glyphOffset:m})}}}return u}(0,n,i,a,o,f),d=e.textSizeData,g=null;return\"source\"===d.functionType?g=[10*i.layout.get(\"text-size\").evaluate(o)]:\"composite\"===d.functionType&&(g=[10*h.compositeTextSizes[0].evaluate(o),10*h.compositeTextSizes[1].evaluate(o)]),e.addSymbols(e.text,p,g,s,a,o,c,r,l.lineStartIndex,l.lineLength),u.push(e.text.placedSymbolArray.length-1),4*p.length}function y(t,e,r,n){var i=t.compareText;if(e in i){for(var a=i[e],o=a.length-1;o>=0;o--)if(n.dist(a[o])<r)return!0}else i[e]=[];return i[e].push(n),!1}u.prototype={push:function(t){this.data.push(t),this.length++,this._up(this.length-1)},pop:function(){if(0!==this.length){var t=this.data[0];return this.length--,this.length>0&&(this.data[0]=this.data[this.length],this._down(0)),this.data.pop(),t}},peek:function(){return this.data[0]},_up:function(t){for(var e=this.data,r=this.compare,n=e[t];t>0;){var i=t-1>>1,a=e[i];if(r(n,a)>=0)break;e[t]=a,t=i}e[t]=n},_down:function(t){for(var e=this.data,r=this.compare,n=this.length>>1,i=e[t];t<n;){var a=1+(t<<1),o=a+1,s=e[a];if(o<this.length&&r(e[o],s)<0&&(a=o,s=e[o]),r(s,i)>=0)break;e[t]=s,t=a}e[t]=i}},l.default=c;var x=function(e){var r=new t.AlphaImage({width:0,height:0}),n={},i=new t.default$2(0,0,{autoResize:!0});for(var a in e){var o=e[a],s=n[a]={};for(var l in o){var c=o[+l];if(c&&0!==c.bitmap.width&&0!==c.bitmap.height){var u=i.packOne(c.bitmap.width+2,c.bitmap.height+2);r.resize({width:i.w,height:i.h}),t.AlphaImage.copy(c.bitmap,r,{x:0,y:0},{x:u.x+1,y:u.y+1},c.bitmap),s[l]={rect:u,metrics:c.metrics}}}}i.shrink(),r.resize({width:i.w,height:i.h}),this.image=r,this.positions=n};t.register(\"GlyphAtlas\",x);var b=function(e){this.tileID=new t.OverscaledTileID(e.tileID.overscaledZ,e.tileID.wrap,e.tileID.canonical.z,e.tileID.canonical.x,e.tileID.canonical.y),this.uid=e.uid,this.zoom=e.zoom,this.pixelRatio=e.pixelRatio,this.tileSize=e.tileSize,this.source=e.source,this.overscaling=this.tileID.overscaleFactor(),this.showCollisionBoxes=e.showCollisionBoxes,this.collectResourceTiming=!!e.collectResourceTiming};function _(e,r){for(var n=new t.default$16(r),i=0,a=e;i<a.length;i+=1)a[i].recalculate(n)}b.prototype.parse=function(e,r,n,i){var a=this;this.status=\"parsing\",this.data=e,this.collisionBoxArray=new t.CollisionBoxArray;var o=new t.default$27(Object.keys(e.layers).sort()),s=new t.default$11(this.tileID);s.bucketLayerIDs=[];var l,c,u,f={},h={featureIndex:s,iconDependencies:{},glyphDependencies:{}},p=r.familiesBySource[this.source];for(var d in p){var v=e.layers[d];if(v){1===v.version&&t.warnOnce('Vector tile source \"'+a.source+'\" layer \"'+d+'\" does not use vector tile spec v2 and therefore may have some rendering errors.');for(var m=o.encode(d),y=[],b=0;b<v.length;b++){var w=v.feature(b);y.push({feature:w,index:b,sourceLayerIndex:m})}for(var k=0,M=p[d];k<M.length;k+=1){var A=M[k],T=A[0];T.minzoom&&a.zoom<Math.floor(T.minzoom)||T.maxzoom&&a.zoom>=T.maxzoom||\"none\"!==T.visibility&&(_(A,a.zoom),(f[T.id]=T.createBucket({index:s.bucketLayerIDs.length,layers:A,zoom:a.zoom,pixelRatio:a.pixelRatio,overscaling:a.overscaling,collisionBoxArray:a.collisionBoxArray,sourceLayerIndex:m})).populate(y,h),s.bucketLayerIDs.push(A.map(function(t){return t.id})))}}}var S=t.mapObject(h.glyphDependencies,function(t){return Object.keys(t).map(Number)});Object.keys(S).length?n.send(\"getGlyphs\",{uid:this.uid,stacks:S},function(t,e){l||(l=t,c=e,C.call(a))}):c={};var E=Object.keys(h.iconDependencies);function C(){if(l)return i(l);if(c&&u){var e=new x(c),r=new t.default$28(u);for(var n in f){var a=f[n];a instanceof t.default$14&&(_(a.layers,this.zoom),g(a,c,e.positions,u,r.positions,this.showCollisionBoxes))}this.status=\"done\",i(null,{buckets:t.values(f).filter(function(t){return!t.isEmpty()}),featureIndex:s,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:e.image,iconAtlasImage:r.image})}}E.length?n.send(\"getImages\",{icons:E},function(t,e){l||(l=t,u=e,C.call(a))}):u={},C.call(this)};var w=function(t){return!(!performance||!performance.getEntriesByName)&&performance.getEntriesByName(t)};function k(e,r){var n=t.getArrayBuffer(e.request,function(e,n){e?r(e):n&&r(null,{vectorTile:new t.default$29.VectorTile(new t.default$30(n.data)),rawData:n.data,cacheControl:n.cacheControl,expires:n.expires})});return function(){n.abort(),r()}}var M=function(t,e,r){this.actor=t,this.layerIndex=e,this.loadVectorData=r||k,this.loading={},this.loaded={}};M.prototype.loadTile=function(e,r){var n=this,i=e.uid;this.loading||(this.loading={});var a=this.loading[i]=new b(e);a.abort=this.loadVectorData(e,function(o,s){if(delete n.loading[i],o||!s)return r(o);var l=s.rawData,c={};s.expires&&(c.expires=s.expires),s.cacheControl&&(c.cacheControl=s.cacheControl);var u={};if(e.request&&e.request.collectResourceTiming){var f=w(e.request.url);f&&(u.resourceTiming=JSON.parse(JSON.stringify(f)))}a.vectorTile=s.vectorTile,a.parse(s.vectorTile,n.layerIndex,n.actor,function(e,n){if(e||!n)return r(e);r(null,t.extend({rawTileData:l.slice(0)},n,c,u))}),n.loaded=n.loaded||{},n.loaded[i]=a})},M.prototype.reloadTile=function(t,e){var r=this.loaded,n=t.uid,i=this;if(r&&r[n]){var a=r[n];a.showCollisionBoxes=t.showCollisionBoxes;var o=function(t,r){var n=a.reloadCallback;n&&(delete a.reloadCallback,a.parse(a.vectorTile,i.layerIndex,i.actor,n)),e(t,r)};\"parsing\"===a.status?a.reloadCallback=o:\"done\"===a.status&&a.parse(a.vectorTile,this.layerIndex,this.actor,o)}},M.prototype.abortTile=function(t,e){var r=this.loading,n=t.uid;r&&r[n]&&r[n].abort&&(r[n].abort(),delete r[n]),e()},M.prototype.removeTile=function(t,e){var r=this.loaded,n=t.uid;r&&r[n]&&delete r[n],e()};var A=function(){this.loading={},this.loaded={}};A.prototype.loadTile=function(e,r){var n=e.uid,i=e.encoding,a=new t.default$31(n);this.loading[n]=a,a.loadFromImage(e.rawImageData,i),delete this.loading[n],this.loaded=this.loaded||{},this.loaded[n]=a,r(null,a)},A.prototype.removeTile=function(t){var e=this.loaded,r=t.uid;e&&e[r]&&delete e[r]};var T={RADIUS:6378137,FLATTENING:1/298.257223563,POLAR_RADIUS:6356752.3142};function S(t){var e=0;if(t&&t.length>0){e+=Math.abs(E(t[0]));for(var r=1;r<t.length;r++)e-=Math.abs(E(t[r]))}return e}function E(t){var e,r,n,i,a,o,s=0,l=t.length;if(l>2){for(o=0;o<l;o++)o===l-2?(n=l-2,i=l-1,a=0):o===l-1?(n=l-1,i=0,a=1):(n=o,i=o+1,a=o+2),e=t[n],r=t[i],s+=(C(t[a][0])-C(e[0]))*Math.sin(C(r[1]));s=s*T.RADIUS*T.RADIUS/2}return s}function C(t){return t*Math.PI/180}var L={geometry:function t(e){var r,n=0;switch(e.type){case\"Polygon\":return S(e.coordinates);case\"MultiPolygon\":for(r=0;r<e.coordinates.length;r++)n+=S(e.coordinates[r]);return n;case\"Point\":case\"MultiPoint\":case\"LineString\":case\"MultiLineString\":return 0;case\"GeometryCollection\":for(r=0;r<e.geometries.length;r++)n+=t(e.geometries[r]);return n}},ring:E};function z(t,e){return function(r){return t(r,e)}}function O(t,e){e=!!e,t[0]=I(t[0],e);for(var r=1;r<t.length;r++)t[r]=I(t[r],!e);return t}function I(t,e){return function(t){return L.ring(t)>=0}(t)===e?t:t.reverse()}var P=t.default$29.VectorTileFeature.prototype.toGeoJSON,D=function(e){this._feature=e,this.extent=t.default$8,this.type=e.type,this.properties=e.tags,\"id\"in e&&!isNaN(e.id)&&(this.id=parseInt(e.id,10))};D.prototype.loadGeometry=function(){if(1===this._feature.type){for(var e=[],r=0,n=this._feature.geometry;r<n.length;r+=1){var i=n[r];e.push([new t.default$1(i[0],i[1])])}return e}for(var a=[],o=0,s=this._feature.geometry;o<s.length;o+=1){for(var l=[],c=0,u=s[o];c<u.length;c+=1){var f=u[c];l.push(new t.default$1(f[0],f[1]))}a.push(l)}return a},D.prototype.toGeoJSON=function(t,e,r){return P.call(this,t,e,r)};var R=function(e){this.layers={_geojsonTileLayer:this},this.name=\"_geojsonTileLayer\",this.extent=t.default$8,this.length=e.length,this._features=e};R.prototype.feature=function(t){return new D(this._features[t])};var B=t.__moduleExports.VectorTileFeature,F=N;function N(t,e){this.options=e||{},this.features=t,this.length=t.length}function j(t,e){this.id=\"number\"==typeof t.id?t.id:void 0,this.type=t.type,this.rawGeometry=1===t.type?[t.geometry]:t.geometry,this.properties=t.tags,this.extent=e||4096}N.prototype.feature=function(t){return new j(this.features[t],this.options.extent)},j.prototype.loadGeometry=function(){var e=this.rawGeometry;this.geometry=[];for(var r=0;r<e.length;r++){for(var n=e[r],i=[],a=0;a<n.length;a++)i.push(new t.default$32(n[a][0],n[a][1]));this.geometry.push(i)}return this.geometry},j.prototype.bbox=function(){this.geometry||this.loadGeometry();for(var t=this.geometry,e=1/0,r=-1/0,n=1/0,i=-1/0,a=0;a<t.length;a++)for(var o=t[a],s=0;s<o.length;s++){var l=o[s];e=Math.min(e,l.x),r=Math.max(r,l.x),n=Math.min(n,l.y),i=Math.max(i,l.y)}return[e,n,r,i]},j.prototype.toGeoJSON=B.prototype.toGeoJSON;var V=H,U=H,q=F;function H(e){var r=new t.__moduleExports$1;return function(t,e){for(var r in t.layers)e.writeMessage(3,G,t.layers[r])}(e,r),r.finish()}function G(t,e){var r;e.writeVarintField(15,t.version||1),e.writeStringField(1,t.name||\"\"),e.writeVarintField(5,t.extent||4096);var n={keys:[],values:[],keycache:{},valuecache:{}};for(r=0;r<t.length;r++)n.feature=t.feature(r),e.writeMessage(2,W,n);var i=n.keys;for(r=0;r<i.length;r++)e.writeStringField(3,i[r]);var a=n.values;for(r=0;r<a.length;r++)e.writeMessage(4,J,a[r])}function W(t,e){var r=t.feature;void 0!==r.id&&e.writeVarintField(1,r.id),e.writeMessage(2,Y,t),e.writeVarintField(3,r.type),e.writeMessage(4,$,r)}function Y(t,e){var r=t.feature,n=t.keys,i=t.values,a=t.keycache,o=t.valuecache;for(var s in r.properties){var l=a[s];void 0===l&&(n.push(s),l=n.length-1,a[s]=l),e.writeVarint(l);var c=r.properties[s],u=typeof c;\"string\"!==u&&\"boolean\"!==u&&\"number\"!==u&&(c=JSON.stringify(c));var f=u+\":\"+c,h=o[f];void 0===h&&(i.push(c),h=i.length-1,o[f]=h),e.writeVarint(h)}}function X(t,e){return(e<<3)+(7&t)}function Z(t){return t<<1^t>>31}function $(t,e){for(var r=t.loadGeometry(),n=t.type,i=0,a=0,o=r.length,s=0;s<o;s++){var l=r[s],c=1;1===n&&(c=l.length),e.writeVarint(X(1,c));for(var u=3===n?l.length-1:l.length,f=0;f<u;f++){1===f&&1!==n&&e.writeVarint(X(2,u-1));var h=l[f].x-i,p=l[f].y-a;e.writeVarint(Z(h)),e.writeVarint(Z(p)),i+=h,a+=p}3===n&&e.writeVarint(X(7,0))}}function J(t,e){var r=typeof t;\"string\"===r?e.writeStringField(1,t):\"boolean\"===r?e.writeBooleanField(7,t):\"number\"===r&&(t%1!=0?e.writeDoubleField(3,t):t<0?e.writeSVarintField(6,t):e.writeVarintField(5,t))}V.fromVectorTileJs=U,V.fromGeojsonVt=function(t,e){e=e||{};var r={};for(var n in t)r[n]=new F(t[n].features,e),r[n].name=n,r[n].version=e.version,r[n].extent=e.extent;return H({layers:r})},V.GeoJSONWrapper=q;var K=function t(e,r,n,i,a,o){if(!(a-i<=n)){var s=Math.floor((i+a)/2);!function t(e,r,n,i,a,o){for(;a>i;){if(a-i>600){var s=a-i+1,l=n-i+1,c=Math.log(s),u=.5*Math.exp(2*c/3),f=.5*Math.sqrt(c*u*(s-u)/s)*(l-s/2<0?-1:1);t(e,r,n,Math.max(i,Math.floor(n-l*u/s+f)),Math.min(a,Math.floor(n+(s-l)*u/s+f)),o)}var h=r[2*n+o],p=i,d=a;for(Q(e,r,i,n),r[2*a+o]>h&&Q(e,r,i,a);p<d;){for(Q(e,r,p,d),p++,d--;r[2*p+o]<h;)p++;for(;r[2*d+o]>h;)d--}r[2*i+o]===h?Q(e,r,i,d):Q(e,r,++d,a),d<=n&&(i=d+1),n<=d&&(a=d-1)}}(e,r,s,i,a,o%2),t(e,r,n,i,s-1,o+1),t(e,r,n,s+1,a,o+1)}};function Q(t,e,r,n){tt(t,r,n),tt(e,2*r,2*n),tt(e,2*r+1,2*n+1)}function tt(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function et(t,e,r,n){var i=t-r,a=e-n;return i*i+a*a}var rt=function(t,e,r,n,i){return new nt(t,e,r,n,i)};function nt(t,e,r,n,i){e=e||it,r=r||at,i=i||Array,this.nodeSize=n||64,this.points=t,this.ids=new i(t.length),this.coords=new i(2*t.length);for(var a=0;a<t.length;a++)this.ids[a]=a,this.coords[2*a]=e(t[a]),this.coords[2*a+1]=r(t[a]);K(this.ids,this.coords,this.nodeSize,0,this.ids.length-1,0)}function it(t){return t[0]}function at(t){return t[1]}nt.prototype={range:function(t,e,r,n){return function(t,e,r,n,i,a,o){for(var s,l,c=[0,t.length-1,0],u=[];c.length;){var f=c.pop(),h=c.pop(),p=c.pop();if(h-p<=o)for(var d=p;d<=h;d++)s=e[2*d],l=e[2*d+1],s>=r&&s<=i&&l>=n&&l<=a&&u.push(t[d]);else{var g=Math.floor((p+h)/2);s=e[2*g],l=e[2*g+1],s>=r&&s<=i&&l>=n&&l<=a&&u.push(t[g]);var v=(f+1)%2;(0===f?r<=s:n<=l)&&(c.push(p),c.push(g-1),c.push(v)),(0===f?i>=s:a>=l)&&(c.push(g+1),c.push(h),c.push(v))}}return u}(this.ids,this.coords,t,e,r,n,this.nodeSize)},within:function(t,e,r){return function(t,e,r,n,i,a){for(var o=[0,t.length-1,0],s=[],l=i*i;o.length;){var c=o.pop(),u=o.pop(),f=o.pop();if(u-f<=a)for(var h=f;h<=u;h++)et(e[2*h],e[2*h+1],r,n)<=l&&s.push(t[h]);else{var p=Math.floor((f+u)/2),d=e[2*p],g=e[2*p+1];et(d,g,r,n)<=l&&s.push(t[p]);var v=(c+1)%2;(0===c?r-i<=d:n-i<=g)&&(o.push(f),o.push(p-1),o.push(v)),(0===c?r+i>=d:n+i>=g)&&(o.push(p+1),o.push(u),o.push(v))}}return s}(this.ids,this.coords,t,e,r,this.nodeSize)}};function ot(t){this.options=pt(Object.create(this.options),t),this.trees=new Array(this.options.maxZoom+1)}function st(t,e,r,n,i){return{x:t,y:e,zoom:1/0,id:n,properties:i,parentId:-1,numPoints:r}}function lt(t,e){var r=t.geometry.coordinates;return{x:ft(r[0]),y:ht(r[1]),zoom:1/0,id:e,parentId:-1}}function ct(t){return{type:\"Feature\",properties:ut(t),geometry:{type:\"Point\",coordinates:[(n=t.x,360*(n-.5)),(e=t.y,r=(180-360*e)*Math.PI/180,360*Math.atan(Math.exp(r))/Math.PI-90)]}};var e,r,n}function ut(t){var e=t.numPoints,r=e>=1e4?Math.round(e/1e3)+\"k\":e>=1e3?Math.round(e/100)/10+\"k\":e;return pt(pt({},t.properties),{cluster:!0,cluster_id:t.id,point_count:e,point_count_abbreviated:r})}function ft(t){return t/360+.5}function ht(t){var e=Math.sin(t*Math.PI/180),r=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return r<0?0:r>1?1:r}function pt(t,e){for(var r in e)t[r]=e[r];return t}function dt(t){return t.x}function gt(t){return t.y}function vt(t,e,r,n,i,a){var o=i-r,s=a-n;if(0!==o||0!==s){var l=((t-r)*o+(e-n)*s)/(o*o+s*s);l>1?(r=i,n=a):l>0&&(r+=o*l,n+=s*l)}return(o=t-r)*o+(s=e-n)*s}function mt(t,e,r,n){var i={id:t||null,type:e,geometry:r,tags:n,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return function(t){var e=t.geometry,r=t.type;if(\"Point\"===r||\"MultiPoint\"===r||\"LineString\"===r)yt(t,e);else if(\"Polygon\"===r||\"MultiLineString\"===r)for(var n=0;n<e.length;n++)yt(t,e[n]);else if(\"MultiPolygon\"===r)for(n=0;n<e.length;n++)for(var i=0;i<e[n].length;i++)yt(t,e[n][i])}(i),i}function yt(t,e){for(var r=0;r<e.length;r+=3)t.minX=Math.min(t.minX,e[r]),t.minY=Math.min(t.minY,e[r+1]),t.maxX=Math.max(t.maxX,e[r]),t.maxY=Math.max(t.maxY,e[r+1])}function xt(t,e,r){if(e.geometry){var n=e.geometry.coordinates,i=e.geometry.type,a=Math.pow(r.tolerance/((1<<r.maxZoom)*r.extent),2),o=[];if(\"Point\"===i)bt(n,o);else if(\"MultiPoint\"===i)for(var s=0;s<n.length;s++)bt(n[s],o);else if(\"LineString\"===i)_t(n,o,a,!1);else if(\"MultiLineString\"===i)if(r.lineMetrics)for(s=0;s<n.length;s++)return o=[],_t(n[s],o,a,!1),void t.push(mt(e.id,\"LineString\",o,e.properties));else wt(n,o,a,!1);else if(\"Polygon\"===i)wt(n,o,a,!0);else{if(\"MultiPolygon\"!==i){if(\"GeometryCollection\"===i){for(s=0;s<e.geometry.geometries.length;s++)xt(t,{id:e.id,geometry:e.geometry.geometries[s],properties:e.properties},r);return}throw new Error(\"Input data is not a valid GeoJSON object.\")}for(s=0;s<n.length;s++){var l=[];wt(n[s],l,a,!0),o.push(l)}}t.push(mt(e.id,i,o,e.properties))}}function bt(t,e){e.push(kt(t[0])),e.push(Mt(t[1])),e.push(0)}function _t(t,e,r,n){for(var i,a,o=0,s=0;s<t.length;s++){var l=kt(t[s][0]),c=Mt(t[s][1]);e.push(l),e.push(c),e.push(0),s>0&&(o+=n?(i*c-l*a)/2:Math.sqrt(Math.pow(l-i,2)+Math.pow(c-a,2))),i=l,a=c}var u=e.length-3;e[2]=1,function t(e,r,n,i){for(var a,o=i,s=e[r],l=e[r+1],c=e[n],u=e[n+1],f=r+3;f<n;f+=3){var h=vt(e[f],e[f+1],s,l,c,u);h>o&&(a=f,o=h)}o>i&&(a-r>3&&t(e,r,a,i),e[a+2]=o,n-a>3&&t(e,a,n,i))}(e,0,u,r),e[u+2]=1,e.size=Math.abs(o),e.start=0,e.end=e.size}function wt(t,e,r,n){for(var i=0;i<t.length;i++){var a=[];_t(t[i],a,r,n),e.push(a)}}function kt(t){return t/360+.5}function Mt(t){var e=Math.sin(t*Math.PI/180),r=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return r<0?0:r>1?1:r}function At(t,e,r,n,i,a,o,s){if(n/=e,a>=(r/=e)&&o<=n)return t;if(a>n||o<r)return null;for(var l=[],c=0;c<t.length;c++){var u=t[c],f=u.geometry,h=u.type,p=0===i?u.minX:u.minY,d=0===i?u.maxX:u.maxY;if(p>=r&&d<=n)l.push(u);else if(!(p>n||d<r)){var g=[];if(\"Point\"===h||\"MultiPoint\"===h)Tt(f,g,r,n,i);else if(\"LineString\"===h)St(f,g,r,n,i,!1,s.lineMetrics);else if(\"MultiLineString\"===h)Ct(f,g,r,n,i,!1);else if(\"Polygon\"===h)Ct(f,g,r,n,i,!0);else if(\"MultiPolygon\"===h)for(var v=0;v<f.length;v++){var m=[];Ct(f[v],m,r,n,i,!0),m.length&&g.push(m)}if(g.length){if(s.lineMetrics&&\"LineString\"===h){for(v=0;v<g.length;v++)l.push(mt(u.id,h,g[v],u.tags));continue}\"LineString\"!==h&&\"MultiLineString\"!==h||(1===g.length?(h=\"LineString\",g=g[0]):h=\"MultiLineString\"),\"Point\"!==h&&\"MultiPoint\"!==h||(h=3===g.length?\"Point\":\"MultiPoint\"),l.push(mt(u.id,h,g,u.tags))}}}return l.length?l:null}function Tt(t,e,r,n,i){for(var a=0;a<t.length;a+=3){var o=t[a+i];o>=r&&o<=n&&(e.push(t[a]),e.push(t[a+1]),e.push(t[a+2]))}}function St(t,e,r,n,i,a,o){for(var s,l,c=Et(t),u=0===i?zt:Ot,f=t.start,h=0;h<t.length-3;h+=3){var p=t[h],d=t[h+1],g=t[h+2],v=t[h+3],m=t[h+4],y=0===i?p:d,x=0===i?v:m,b=!1;o&&(s=Math.sqrt(Math.pow(p-v,2)+Math.pow(d-m,2))),y<r?x>=r&&(l=u(c,p,d,v,m,r),o&&(c.start=f+s*l)):y>n?x<=n&&(l=u(c,p,d,v,m,n),o&&(c.start=f+s*l)):Lt(c,p,d,g),x<r&&y>=r&&(l=u(c,p,d,v,m,r),b=!0),x>n&&y<=n&&(l=u(c,p,d,v,m,n),b=!0),!a&&b&&(o&&(c.end=f+s*l),e.push(c),c=Et(t)),o&&(f+=s)}var _=t.length-3;p=t[_],d=t[_+1],g=t[_+2],(y=0===i?p:d)>=r&&y<=n&&Lt(c,p,d,g),_=c.length-3,a&&_>=3&&(c[_]!==c[0]||c[_+1]!==c[1])&&Lt(c,c[0],c[1],c[2]),c.length&&e.push(c)}function Et(t){var e=[];return e.size=t.size,e.start=t.start,e.end=t.end,e}function Ct(t,e,r,n,i,a){for(var o=0;o<t.length;o++)St(t[o],e,r,n,i,a,!1)}function Lt(t,e,r,n){t.push(e),t.push(r),t.push(n)}function zt(t,e,r,n,i,a){var o=(a-e)/(n-e);return t.push(a),t.push(r+(i-r)*o),t.push(1),o}function Ot(t,e,r,n,i,a){var o=(a-r)/(i-r);return t.push(e+(n-e)*o),t.push(a),t.push(1),o}function It(t,e){for(var r=[],n=0;n<t.length;n++){var i,a=t[n],o=a.type;if(\"Point\"===o||\"MultiPoint\"===o||\"LineString\"===o)i=Pt(a.geometry,e);else if(\"MultiLineString\"===o||\"Polygon\"===o){i=[];for(var s=0;s<a.geometry.length;s++)i.push(Pt(a.geometry[s],e))}else if(\"MultiPolygon\"===o)for(i=[],s=0;s<a.geometry.length;s++){for(var l=[],c=0;c<a.geometry[s].length;c++)l.push(Pt(a.geometry[s][c],e));i.push(l)}r.push(mt(a.id,o,i,a.tags))}return r}function Pt(t,e){var r=[];r.size=t.size,void 0!==t.start&&(r.start=t.start,r.end=t.end);for(var n=0;n<t.length;n+=3)r.push(t[n]+e,t[n+1],t[n+2]);return r}function Dt(t,e){if(t.transformed)return t;var r,n,i,a=1<<t.z,o=t.x,s=t.y;for(r=0;r<t.features.length;r++){var l=t.features[r],c=l.geometry,u=l.type;if(l.geometry=[],1===u)for(n=0;n<c.length;n+=2)l.geometry.push(Rt(c[n],c[n+1],e,a,o,s));else for(n=0;n<c.length;n++){var f=[];for(i=0;i<c[n].length;i+=2)f.push(Rt(c[n][i],c[n][i+1],e,a,o,s));l.geometry.push(f)}}return t.transformed=!0,t}function Rt(t,e,r,n,i,a){return[Math.round(r*(t*n-i)),Math.round(r*(e*n-a))]}function Bt(t,e,r,n,i){for(var a=e===i.maxZoom?0:i.tolerance/((1<<e)*i.extent),o={features:[],numPoints:0,numSimplified:0,numFeatures:0,source:null,x:r,y:n,z:e,transformed:!1,minX:2,minY:1,maxX:-1,maxY:0},s=0;s<t.length;s++){o.numFeatures++,Ft(o,t[s],a,i);var l=t[s].minX,c=t[s].minY,u=t[s].maxX,f=t[s].maxY;l<o.minX&&(o.minX=l),c<o.minY&&(o.minY=c),u>o.maxX&&(o.maxX=u),f>o.maxY&&(o.maxY=f)}return o}function Ft(t,e,r,n){var i=e.geometry,a=e.type,o=[];if(\"Point\"===a||\"MultiPoint\"===a)for(var s=0;s<i.length;s+=3)o.push(i[s]),o.push(i[s+1]),t.numPoints++,t.numSimplified++;else if(\"LineString\"===a)Nt(o,i,t,r,!1,!1);else if(\"MultiLineString\"===a||\"Polygon\"===a)for(s=0;s<i.length;s++)Nt(o,i[s],t,r,\"Polygon\"===a,0===s);else if(\"MultiPolygon\"===a)for(var l=0;l<i.length;l++){var c=i[l];for(s=0;s<c.length;s++)Nt(o,c[s],t,r,!0,0===s)}if(o.length){var u=e.tags||null;if(\"LineString\"===a&&n.lineMetrics){for(var f in u={},e.tags)u[f]=e.tags[f];u.mapbox_clip_start=i.start/i.size,u.mapbox_clip_end=i.end/i.size}var h={geometry:o,type:\"Polygon\"===a||\"MultiPolygon\"===a?3:\"LineString\"===a||\"MultiLineString\"===a?2:1,tags:u};null!==e.id&&(h.id=e.id),t.features.push(h)}}function Nt(t,e,r,n,i,a){var o=n*n;if(n>0&&e.size<(i?o:n))r.numPoints+=e.length/3;else{for(var s=[],l=0;l<e.length;l+=3)(0===n||e[l+2]>o)&&(r.numSimplified++,s.push(e[l]),s.push(e[l+1])),r.numPoints++;i&&function(t,e){for(var r=0,n=0,i=t.length,a=i-2;n<i;a=n,n+=2)r+=(t[n]-t[a])*(t[n+1]+t[a+1]);if(r>0===e)for(n=0,i=t.length;n<i/2;n+=2){var o=t[n],s=t[n+1];t[n]=t[i-2-n],t[n+1]=t[i-1-n],t[i-2-n]=o,t[i-1-n]=s}}(s,a),t.push(s)}}function jt(t,e){var r=(e=this.options=function(t,e){for(var r in e)t[r]=e[r];return t}(Object.create(this.options),e)).debug;if(r&&console.time(\"preprocess data\"),e.maxZoom<0||e.maxZoom>24)throw new Error(\"maxZoom should be in the 0-24 range\");var n=function(t,e){var r=[];if(\"FeatureCollection\"===t.type)for(var n=0;n<t.features.length;n++)xt(r,t.features[n],e);else\"Feature\"===t.type?xt(r,t,e):xt(r,{geometry:t},e);return r}(t,e);this.tiles={},this.tileCoords=[],r&&(console.timeEnd(\"preprocess data\"),console.log(\"index: maxZoom: %d, maxPoints: %d\",e.indexMaxZoom,e.indexMaxPoints),console.time(\"generate tiles\"),this.stats={},this.total=0),(n=function(t,e){var r=e.buffer/e.extent,n=t,i=At(t,1,-1-r,r,0,-1,2,e),a=At(t,1,1-r,2+r,0,-1,2,e);return(i||a)&&(n=At(t,1,-r,1+r,0,-1,2,e)||[],i&&(n=It(i,1).concat(n)),a&&(n=n.concat(It(a,-1)))),n}(n,e)).length&&this.splitTile(n,0,0,0),r&&(n.length&&console.log(\"features: %d, points: %d\",this.tiles[0].numFeatures,this.tiles[0].numPoints),console.timeEnd(\"generate tiles\"),console.log(\"tiles generated:\",this.total,JSON.stringify(this.stats)))}function Vt(t,e,r){return 32*((1<<t)*r+e)+t}function Ut(t,e){var r=t.tileID.canonical;if(!this._geoJSONIndex)return e(null,null);var n=this._geoJSONIndex.getTile(r.z,r.x,r.y);if(!n)return e(null,null);var i=new R(n.features),a=V(i);0===a.byteOffset&&a.byteLength===a.buffer.byteLength||(a=new Uint8Array(a)),e(null,{vectorTile:i,rawData:a.buffer})}ot.prototype={options:{minZoom:0,maxZoom:16,radius:40,extent:512,nodeSize:64,log:!1,reduce:null,initial:function(){return{}},map:function(t){return t}},load:function(t){var e=this.options.log;e&&console.time(\"total time\");var r=\"prepare \"+t.length+\" points\";e&&console.time(r),this.points=t;var n=t.map(lt);e&&console.timeEnd(r);for(var i=this.options.maxZoom;i>=this.options.minZoom;i--){var a=+Date.now();this.trees[i+1]=rt(n,dt,gt,this.options.nodeSize,Float32Array),n=this._cluster(n,i),e&&console.log(\"z%d: %d clusters in %dms\",i,n.length,+Date.now()-a)}return this.trees[this.options.minZoom]=rt(n,dt,gt,this.options.nodeSize,Float32Array),e&&console.timeEnd(\"total time\"),this},getClusters:function(t,e){for(var r=this.trees[this._limitZoom(e)],n=r.range(ft(t[0]),ht(t[3]),ft(t[2]),ht(t[1])),i=[],a=0;a<n.length;a++){var o=r.points[n[a]];i.push(o.numPoints?ct(o):this.points[o.id])}return i},getChildren:function(t,e){for(var r=this.trees[e+1].points[t],n=this.options.radius/(this.options.extent*Math.pow(2,e)),i=this.trees[e+1].within(r.x,r.y,n),a=[],o=0;o<i.length;o++){var s=this.trees[e+1].points[i[o]];s.parentId===t&&a.push(s.numPoints?ct(s):this.points[s.id])}return a},getLeaves:function(t,e,r,n){r=r||10,n=n||0;var i=[];return this._appendLeaves(i,t,e,r,n,0),i},getTile:function(t,e,r){var n=this.trees[this._limitZoom(t)],i=Math.pow(2,t),a=this.options.extent,o=this.options.radius/a,s=(r-o)/i,l=(r+1+o)/i,c={features:[]};return this._addTileFeatures(n.range((e-o)/i,s,(e+1+o)/i,l),n.points,e,r,i,c),0===e&&this._addTileFeatures(n.range(1-o/i,s,1,l),n.points,i,r,i,c),e===i-1&&this._addTileFeatures(n.range(0,s,o/i,l),n.points,-1,r,i,c),c.features.length?c:null},getClusterExpansionZoom:function(t,e){for(;e<this.options.maxZoom;){var r=this.getChildren(t,e);if(e++,1!==r.length)break;t=r[0].properties.cluster_id}return e},_appendLeaves:function(t,e,r,n,i,a){for(var o=this.getChildren(e,r),s=0;s<o.length;s++){var l=o[s].properties;if(l.cluster?a+l.point_count<=i?a+=l.point_count:a=this._appendLeaves(t,l.cluster_id,r+1,n,i,a):a<i?a++:t.push(o[s]),t.length===n)break}return a},_addTileFeatures:function(t,e,r,n,i,a){for(var o=0;o<t.length;o++){var s=e[t[o]];a.features.push({type:1,geometry:[[Math.round(this.options.extent*(s.x*i-r)),Math.round(this.options.extent*(s.y*i-n))]],tags:s.numPoints?ut(s):this.points[s.id].properties})}},_limitZoom:function(t){return Math.max(this.options.minZoom,Math.min(t,this.options.maxZoom+1))},_cluster:function(t,e){for(var r=[],n=this.options.radius/(this.options.extent*Math.pow(2,e)),i=0;i<t.length;i++){var a=t[i];if(!(a.zoom<=e)){a.zoom=e;var o=this.trees[e+1],s=o.within(a.x,a.y,n),l=a.numPoints||1,c=a.x*l,u=a.y*l,f=null;this.options.reduce&&(f=this.options.initial(),this._accumulate(f,a));for(var h=0;h<s.length;h++){var p=o.points[s[h]];if(e<p.zoom){var d=p.numPoints||1;p.zoom=e,c+=p.x*d,u+=p.y*d,l+=d,p.parentId=i,this.options.reduce&&this._accumulate(f,p)}}1===l?r.push(a):(a.parentId=i,r.push(st(c/l,u/l,l,i,f)))}}return r},_accumulate:function(t,e){var r=e.numPoints?e.properties:this.options.map(this.points[e.id].properties);this.options.reduce(t,r)}},jt.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,debug:0},jt.prototype.splitTile=function(t,e,r,n,i,a,o){for(var s=[t,e,r,n],l=this.options,c=l.debug;s.length;){n=s.pop(),r=s.pop(),e=s.pop(),t=s.pop();var u=1<<e,f=Vt(e,r,n),h=this.tiles[f];if(!h&&(c>1&&console.time(\"creation\"),h=this.tiles[f]=Bt(t,e,r,n,l),this.tileCoords.push({z:e,x:r,y:n}),c)){c>1&&(console.log(\"tile z%d-%d-%d (features: %d, points: %d, simplified: %d)\",e,r,n,h.numFeatures,h.numPoints,h.numSimplified),console.timeEnd(\"creation\"));var p=\"z\"+e;this.stats[p]=(this.stats[p]||0)+1,this.total++}if(h.source=t,i){if(e===l.maxZoom||e===i)continue;var d=1<<i-e;if(r!==Math.floor(a/d)||n!==Math.floor(o/d))continue}else if(e===l.indexMaxZoom||h.numPoints<=l.indexMaxPoints)continue;if(h.source=null,0!==t.length){c>1&&console.time(\"clipping\");var g,v,m,y,x,b,_=.5*l.buffer/l.extent,w=.5-_,k=.5+_,M=1+_;g=v=m=y=null,x=At(t,u,r-_,r+k,0,h.minX,h.maxX,l),b=At(t,u,r+w,r+M,0,h.minX,h.maxX,l),t=null,x&&(g=At(x,u,n-_,n+k,1,h.minY,h.maxY,l),v=At(x,u,n+w,n+M,1,h.minY,h.maxY,l),x=null),b&&(m=At(b,u,n-_,n+k,1,h.minY,h.maxY,l),y=At(b,u,n+w,n+M,1,h.minY,h.maxY,l),b=null),c>1&&console.timeEnd(\"clipping\"),s.push(g||[],e+1,2*r,2*n),s.push(v||[],e+1,2*r,2*n+1),s.push(m||[],e+1,2*r+1,2*n),s.push(y||[],e+1,2*r+1,2*n+1)}}},jt.prototype.getTile=function(t,e,r){var n=this.options,i=n.extent,a=n.debug;if(t<0||t>24)return null;var o=1<<t,s=Vt(t,e=(e%o+o)%o,r);if(this.tiles[s])return Dt(this.tiles[s],i);a>1&&console.log(\"drilling down to z%d-%d-%d\",t,e,r);for(var l,c=t,u=e,f=r;!l&&c>0;)c--,u=Math.floor(u/2),f=Math.floor(f/2),l=this.tiles[Vt(c,u,f)];return l&&l.source?(a>1&&console.log(\"found parent tile z%d-%d-%d\",c,u,f),a>1&&console.time(\"drilling down\"),this.splitTile(l.source,c,u,f,t,e,r),a>1&&console.timeEnd(\"drilling down\"),this.tiles[s]?Dt(this.tiles[s],i):null):null};var qt=function(e){function r(t,r,n){e.call(this,t,r,Ut),n&&(this.loadGeoJSON=n)}return e&&(r.__proto__=e),r.prototype=Object.create(e&&e.prototype),r.prototype.constructor=r,r.prototype.loadData=function(t,e){this._pendingCallback&&this._pendingCallback(null,{abandoned:!0}),this._pendingCallback=e,this._pendingLoadDataParams=t,this._state&&\"Idle\"!==this._state?this._state=\"NeedsLoadData\":(this._state=\"Coalescing\",this._loadData())},r.prototype._loadData=function(){var t=this;if(this._pendingCallback&&this._pendingLoadDataParams){var e=this._pendingCallback,r=this._pendingLoadDataParams;delete this._pendingCallback,delete this._pendingLoadDataParams,this.loadGeoJSON(r,function(n,i){if(n||!i)return e(n);if(\"object\"!=typeof i)return e(new Error(\"Input data is not a valid GeoJSON object.\"));!function t(e,r){switch(e&&e.type||null){case\"FeatureCollection\":return e.features=e.features.map(z(t,r)),e;case\"Feature\":return e.geometry=t(e.geometry,r),e;case\"Polygon\":case\"MultiPolygon\":return function(t,e){return\"Polygon\"===t.type?t.coordinates=O(t.coordinates,e):\"MultiPolygon\"===t.type&&(t.coordinates=t.coordinates.map(z(O,e))),t}(e,r);default:return e}}(i,!0);try{t._geoJSONIndex=r.cluster?function(t){return new ot(t)}(r.superclusterOptions).load(i.features):new jt(i,r.geojsonVtOptions)}catch(n){return e(n)}t.loaded={};var a={};if(r.request&&r.request.collectResourceTiming){var o=w(r.request.url);o&&(a.resourceTiming={},a.resourceTiming[r.source]=JSON.parse(JSON.stringify(o)))}e(null,a)})}},r.prototype.coalesce=function(){\"Coalescing\"===this._state?this._state=\"Idle\":\"NeedsLoadData\"===this._state&&(this._state=\"Coalescing\",this._loadData())},r.prototype.reloadTile=function(t,r){var n=this.loaded,i=t.uid;return n&&n[i]?e.prototype.reloadTile.call(this,t,r):this.loadTile(t,r)},r.prototype.loadGeoJSON=function(e,r){if(e.request)t.getJSON(e.request,r);else{if(\"string\"!=typeof e.data)return r(new Error(\"Input data is not a valid GeoJSON object.\"));try{return r(null,JSON.parse(e.data))}catch(t){return r(new Error(\"Input data is not a valid GeoJSON object.\"))}}},r.prototype.removeSource=function(t,e){this._pendingCallback&&this._pendingCallback(null,{abandoned:!0}),e()},r}(M),Ht=function(e){var r=this;this.self=e,this.actor=new t.default$7(e,this),this.layerIndexes={},this.workerSourceTypes={vector:M,geojson:qt},this.workerSources={},this.demWorkerSources={},this.self.registerWorkerSource=function(t,e){if(r.workerSourceTypes[t])throw new Error('Worker source with name \"'+t+'\" already registered.');r.workerSourceTypes[t]=e},this.self.registerRTLTextPlugin=function(e){if(t.plugin.isLoaded())throw new Error(\"RTL text plugin already registered.\");t.plugin.applyArabicShaping=e.applyArabicShaping,t.plugin.processBidirectionalText=e.processBidirectionalText}};return Ht.prototype.setLayers=function(t,e,r){this.getLayerIndex(t).replace(e),r()},Ht.prototype.updateLayers=function(t,e,r){this.getLayerIndex(t).update(e.layers,e.removedIds),r()},Ht.prototype.loadTile=function(t,e,r){this.getWorkerSource(t,e.type,e.source).loadTile(e,r)},Ht.prototype.loadDEMTile=function(t,e,r){this.getDEMWorkerSource(t,e.source).loadTile(e,r)},Ht.prototype.reloadTile=function(t,e,r){this.getWorkerSource(t,e.type,e.source).reloadTile(e,r)},Ht.prototype.abortTile=function(t,e,r){this.getWorkerSource(t,e.type,e.source).abortTile(e,r)},Ht.prototype.removeTile=function(t,e,r){this.getWorkerSource(t,e.type,e.source).removeTile(e,r)},Ht.prototype.removeDEMTile=function(t,e){this.getDEMWorkerSource(t,e.source).removeTile(e)},Ht.prototype.removeSource=function(t,e,r){if(this.workerSources[t]&&this.workerSources[t][e.type]&&this.workerSources[t][e.type][e.source]){var n=this.workerSources[t][e.type][e.source];delete this.workerSources[t][e.type][e.source],void 0!==n.removeSource?n.removeSource(e,r):r()}},Ht.prototype.loadWorkerSource=function(t,e,r){try{this.self.importScripts(e.url),r()}catch(t){r(t.toString())}},Ht.prototype.loadRTLTextPlugin=function(e,r,n){try{t.plugin.isLoaded()||(this.self.importScripts(r),n(t.plugin.isLoaded()?null:new Error(\"RTL Text Plugin failed to import scripts from \"+r)))}catch(t){n(t.toString())}},Ht.prototype.getLayerIndex=function(t){var e=this.layerIndexes[t];return e||(e=this.layerIndexes[t]=new n),e},Ht.prototype.getWorkerSource=function(t,e,r){var n=this;if(this.workerSources[t]||(this.workerSources[t]={}),this.workerSources[t][e]||(this.workerSources[t][e]={}),!this.workerSources[t][e][r]){var i={send:function(e,r,i){n.actor.send(e,r,i,t)}};this.workerSources[t][e][r]=new this.workerSourceTypes[e](i,this.getLayerIndex(t))}return this.workerSources[t][e][r]},Ht.prototype.getDEMWorkerSource=function(t,e){return this.demWorkerSources[t]||(this.demWorkerSources[t]={}),this.demWorkerSources[t][e]||(this.demWorkerSources[t][e]=new A),this.demWorkerSources[t][e]},\"undefined\"!=typeof WorkerGlobalScope&&\"undefined\"!=typeof self&&self instanceof WorkerGlobalScope&&new Ht(self),Ht}),i(0,function(t){var e=t.createCommonjsModule(function(t){function e(t){return!!(\"undefined\"!=typeof window&&\"undefined\"!=typeof document&&Array.prototype&&Array.prototype.every&&Array.prototype.filter&&Array.prototype.forEach&&Array.prototype.indexOf&&Array.prototype.lastIndexOf&&Array.prototype.map&&Array.prototype.some&&Array.prototype.reduce&&Array.prototype.reduceRight&&Array.isArray&&Function.prototype&&Function.prototype.bind&&Object.keys&&Object.create&&Object.getPrototypeOf&&Object.getOwnPropertyNames&&Object.isSealed&&Object.isFrozen&&Object.isExtensible&&Object.getOwnPropertyDescriptor&&Object.defineProperty&&Object.defineProperties&&Object.seal&&Object.freeze&&Object.preventExtensions&&\"JSON\"in window&&\"parse\"in JSON&&\"stringify\"in JSON&&function(){if(!(\"Worker\"in window&&\"Blob\"in window&&\"URL\"in window))return!1;var t,e,r=new Blob([\"\"],{type:\"text/javascript\"}),n=URL.createObjectURL(r);try{e=new Worker(n),t=!0}catch(e){t=!1}return e&&e.terminate(),URL.revokeObjectURL(n),t}()&&\"Uint8ClampedArray\"in window&&function(t){return void 0===r[t]&&(r[t]=function(t){var r=document.createElement(\"canvas\"),n=Object.create(e.webGLContextAttributes);return n.failIfMajorPerformanceCaveat=t,r.probablySupportsContext?r.probablySupportsContext(\"webgl\",n)||r.probablySupportsContext(\"experimental-webgl\",n):r.supportsContext?r.supportsContext(\"webgl\",n)||r.supportsContext(\"experimental-webgl\",n):r.getContext(\"webgl\",n)||r.getContext(\"experimental-webgl\",n)}(t)),r[t]}(t&&t.failIfMajorPerformanceCaveat))}t.exports?t.exports=e:window&&(window.mapboxgl=window.mapboxgl||{},window.mapboxgl.supported=e);var r={};e.webGLContextAttributes={antialias:!1,alpha:!0,stencil:!0,depth:!0}}),r=t.default.performance&&t.default.performance.now?t.default.performance.now.bind(t.default.performance):Date.now.bind(Date),n=t.default.requestAnimationFrame||t.default.mozRequestAnimationFrame||t.default.webkitRequestAnimationFrame||t.default.msRequestAnimationFrame,i=t.default.cancelAnimationFrame||t.default.mozCancelAnimationFrame||t.default.webkitCancelAnimationFrame||t.default.msCancelAnimationFrame,a={now:r,frame:function(t){return n(t)},cancelFrame:function(t){return i(t)},getImageData:function(e){var r=t.default.document.createElement(\"canvas\"),n=r.getContext(\"2d\");if(!n)throw new Error(\"failed to create canvas 2d context\");return r.width=e.width,r.height=e.height,n.drawImage(e,0,0,e.width,e.height),n.getImageData(0,0,e.width,e.height)},hardwareConcurrency:t.default.navigator.hardwareConcurrency||4,get devicePixelRatio(){return t.default.devicePixelRatio},supportsWebp:!1};if(t.default.document){var o=t.default.document.createElement(\"img\");o.onload=function(){a.supportsWebp=!0},o.src=\"data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=\"}var s={create:function(e,r,n){var i=t.default.document.createElement(e);return r&&(i.className=r),n&&n.appendChild(i),i},createNS:function(e,r){return t.default.document.createElementNS(e,r)}},l=t.default.document?t.default.document.documentElement.style:null;function c(t){if(!l)return null;for(var e=0;e<t.length;e++)if(t[e]in l)return t[e];return t[0]}var u,f=c([\"userSelect\",\"MozUserSelect\",\"WebkitUserSelect\",\"msUserSelect\"]);s.disableDrag=function(){l&&f&&(u=l[f],l[f]=\"none\")},s.enableDrag=function(){l&&f&&(l[f]=u)};var h=c([\"transform\",\"WebkitTransform\"]);s.setTransform=function(t,e){t.style[h]=e};var p=!1;try{var d=Object.defineProperty({},\"passive\",{get:function(){p=!0}});t.default.addEventListener(\"test\",d,d),t.default.removeEventListener(\"test\",d,d)}catch(t){p=!1}s.addEventListener=function(t,e,r,n){void 0===n&&(n={}),\"passive\"in n&&p?t.addEventListener(e,r,n):t.addEventListener(e,r,n.capture)},s.removeEventListener=function(t,e,r,n){void 0===n&&(n={}),\"passive\"in n&&p?t.removeEventListener(e,r,n):t.removeEventListener(e,r,n.capture)};var g=function(e){e.preventDefault(),e.stopPropagation(),t.default.removeEventListener(\"click\",g,!0)};s.suppressClick=function(){t.default.addEventListener(\"click\",g,!0),t.default.setTimeout(function(){t.default.removeEventListener(\"click\",g,!0)},0)},s.mousePos=function(e,r){var n=e.getBoundingClientRect();return r=r.touches?r.touches[0]:r,new t.default$1(r.clientX-n.left-e.clientLeft,r.clientY-n.top-e.clientTop)},s.touchPos=function(e,r){for(var n=e.getBoundingClientRect(),i=[],a=\"touchend\"===r.type?r.changedTouches:r.touches,o=0;o<a.length;o++)i.push(new t.default$1(a[o].clientX-n.left-e.clientLeft,a[o].clientY-n.top-e.clientTop));return i},s.mouseButton=function(e){return void 0!==t.default.InstallTrigger&&2===e.button&&e.ctrlKey&&t.default.navigator.platform.toUpperCase().indexOf(\"MAC\")>=0?0:e.button},s.remove=function(t){t.parentNode&&t.parentNode.removeChild(t)};var v={API_URL:\"https://api.mapbox.com\",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null},m=\"See https://www.mapbox.com/api-documentation/#access-tokens\";function y(t,e){var r=A(v.API_URL);if(t.protocol=r.protocol,t.authority=r.authority,\"/\"!==r.path&&(t.path=\"\"+r.path+t.path),!v.REQUIRE_ACCESS_TOKEN)return T(t);if(!(e=e||v.ACCESS_TOKEN))throw new Error(\"An API access token is required to use Mapbox GL. \"+m);if(\"s\"===e[0])throw new Error(\"Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). \"+m);return t.params.push(\"access_token=\"+e),T(t)}function x(t){return 0===t.indexOf(\"mapbox:\")}var b=function(t,e){if(!x(t))return t;var r=A(t);return r.path=\"/v4/\"+r.authority+\".json\",r.params.push(\"secure\"),y(r,e)},_=function(t,e,r,n){var i=A(t);return x(t)?(i.path=\"/styles/v1\"+i.path+\"/sprite\"+e+r,y(i,n)):(i.path+=\"\"+e+r,T(i))},w=/(\\.(png|jpg)\\d*)(?=$)/,k=function(t,e,r){if(!e||!x(e))return t;var n=A(t),i=a.devicePixelRatio>=2||512===r?\"@2x\":\"\",o=a.supportsWebp?\".webp\":\"$1\";return n.path=n.path.replace(w,\"\"+i+o),function(t){for(var e=0;e<t.length;e++)0===t[e].indexOf(\"access_token=tk.\")&&(t[e]=\"access_token=\"+(v.ACCESS_TOKEN||\"\"))}(n.params),T(n)},M=/^(\\w+):\\/\\/([^\\/?]*)(\\/[^?]+)?\\??(.+)?/;function A(t){var e=t.match(M);if(!e)throw new Error(\"Unable to parse URL object\");return{protocol:e[1],authority:e[2],path:e[3]||\"/\",params:e[4]?e[4].split(\"&\"):[]}}function T(t){var e=t.params.length?\"?\"+t.params.join(\"&\"):\"\";return t.protocol+\"://\"+t.authority+t.path+e}var S=t.default.HTMLImageElement,E=t.default.HTMLCanvasElement,C=t.default.HTMLVideoElement,L=t.default.ImageData,z=function(t,e,r,n){this.context=t,this.format=r,this.texture=t.gl.createTexture(),this.update(e,n)};z.prototype.update=function(t,e){var r=t.width,n=t.height,i=!this.size||this.size[0]!==r||this.size[1]!==n,a=this.context,o=a.gl;this.useMipmap=Boolean(e&&e.useMipmap),o.bindTexture(o.TEXTURE_2D,this.texture),i?(this.size=[r,n],a.pixelStoreUnpack.set(1),this.format!==o.RGBA||e&&!1===e.premultiply||a.pixelStoreUnpackPremultiplyAlpha.set(!0),t instanceof S||t instanceof E||t instanceof C||t instanceof L?o.texImage2D(o.TEXTURE_2D,0,this.format,this.format,o.UNSIGNED_BYTE,t):o.texImage2D(o.TEXTURE_2D,0,this.format,r,n,0,this.format,o.UNSIGNED_BYTE,t.data)):t instanceof S||t instanceof E||t instanceof C||t instanceof L?o.texSubImage2D(o.TEXTURE_2D,0,0,0,o.RGBA,o.UNSIGNED_BYTE,t):o.texSubImage2D(o.TEXTURE_2D,0,0,0,r,n,o.RGBA,o.UNSIGNED_BYTE,t.data),this.useMipmap&&this.isSizePowerOfTwo()&&o.generateMipmap(o.TEXTURE_2D)},z.prototype.bind=function(t,e,r){var n=this.context.gl;n.bindTexture(n.TEXTURE_2D,this.texture),r!==n.LINEAR_MIPMAP_NEAREST||this.isSizePowerOfTwo()||(r=n.LINEAR),t!==this.filter&&(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,t),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,r||t),this.filter=t),e!==this.wrap&&(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,e),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,e),this.wrap=e)},z.prototype.isSizePowerOfTwo=function(){return this.size[0]===this.size[1]&&Math.log(this.size[0])/Math.LN2%1==0},z.prototype.destroy=function(){this.context.gl.deleteTexture(this.texture),this.texture=null};var O=function(){this.images={},this.loaded=!1,this.requestors=[],this.shelfPack=new t.default$2(64,64,{autoResize:!0}),this.patterns={},this.atlasImage=new t.RGBAImage({width:64,height:64}),this.dirty=!0};O.prototype.isLoaded=function(){return this.loaded},O.prototype.setLoaded=function(t){if(this.loaded!==t&&(this.loaded=t,t)){for(var e=0,r=this.requestors;e<r.length;e+=1){var n=r[e],i=n.ids,a=n.callback;this._notify(i,a)}this.requestors=[]}},O.prototype.getImage=function(t){return this.images[t]},O.prototype.addImage=function(t,e){this.images[t]=e},O.prototype.removeImage=function(t){delete this.images[t];var e=this.patterns[t];e&&(this.shelfPack.unref(e.bin),delete this.patterns[t])},O.prototype.getImages=function(t,e){var r=!0;if(!this.isLoaded())for(var n=0,i=t;n<i.length;n+=1){var a=i[n];this.images[a]||(r=!1)}this.isLoaded()||r?this._notify(t,e):this.requestors.push({ids:t,callback:e})},O.prototype._notify=function(t,e){for(var r={},n=0,i=t;n<i.length;n+=1){var a=i[n],o=this.images[a];o&&(r[a]={data:o.data.clone(),pixelRatio:o.pixelRatio,sdf:o.sdf})}e(null,r)},O.prototype.getPixelSize=function(){return{width:this.shelfPack.w,height:this.shelfPack.h}},O.prototype.getPattern=function(e){var r=this.patterns[e];if(r)return r.position;var n=this.getImage(e);if(!n)return null;var i=n.data.width+2,a=n.data.height+2,o=this.shelfPack.packOne(i,a);if(!o)return null;this.atlasImage.resize(this.getPixelSize());var s=n.data,l=this.atlasImage,c=o.x+1,u=o.y+1,f=s.width,h=s.height;t.RGBAImage.copy(s,l,{x:0,y:0},{x:c,y:u},{width:f,height:h}),t.RGBAImage.copy(s,l,{x:0,y:h-1},{x:c,y:u-1},{width:f,height:1}),t.RGBAImage.copy(s,l,{x:0,y:0},{x:c,y:u+h},{width:f,height:1}),t.RGBAImage.copy(s,l,{x:f-1,y:0},{x:c-1,y:u},{width:1,height:h}),t.RGBAImage.copy(s,l,{x:0,y:0},{x:c+f,y:u},{width:1,height:h}),this.dirty=!0;var p=new t.ImagePosition(o,n);return this.patterns[e]={bin:o,position:p},p},O.prototype.bind=function(t){var e=t.gl;this.atlasTexture?this.dirty&&(this.atlasTexture.update(this.atlasImage),this.dirty=!1):this.atlasTexture=new z(t,this.atlasImage,e.RGBA),this.atlasTexture.bind(e.LINEAR,e.CLAMP_TO_EDGE)};var I=D,P=1e20;function D(t,e,r,n,i,a){this.fontSize=t||24,this.buffer=void 0===e?3:e,this.cutoff=n||.25,this.fontFamily=i||\"sans-serif\",this.fontWeight=a||\"normal\",this.radius=r||8;var o=this.size=this.fontSize+2*this.buffer;this.canvas=document.createElement(\"canvas\"),this.canvas.width=this.canvas.height=o,this.ctx=this.canvas.getContext(\"2d\"),this.ctx.font=this.fontWeight+\" \"+this.fontSize+\"px \"+this.fontFamily,this.ctx.textBaseline=\"middle\",this.ctx.fillStyle=\"black\",this.gridOuter=new Float64Array(o*o),this.gridInner=new Float64Array(o*o),this.f=new Float64Array(o),this.d=new Float64Array(o),this.z=new Float64Array(o+1),this.v=new Int16Array(o),this.middle=Math.round(o/2*(navigator.userAgent.indexOf(\"Gecko/\")>=0?1.2:1))}function R(t,e,r,n,i,a,o){for(var s=0;s<e;s++){for(var l=0;l<r;l++)n[l]=t[l*e+s];for(B(n,i,a,o,r),l=0;l<r;l++)t[l*e+s]=i[l]}for(l=0;l<r;l++){for(s=0;s<e;s++)n[s]=t[l*e+s];for(B(n,i,a,o,e),s=0;s<e;s++)t[l*e+s]=Math.sqrt(i[s])}}function B(t,e,r,n,i){r[0]=0,n[0]=-P,n[1]=+P;for(var a=1,o=0;a<i;a++){for(var s=(t[a]+a*a-(t[r[o]]+r[o]*r[o]))/(2*a-2*r[o]);s<=n[o];)o--,s=(t[a]+a*a-(t[r[o]]+r[o]*r[o]))/(2*a-2*r[o]);r[++o]=a,n[o]=s,n[o+1]=+P}for(a=0,o=0;a<i;a++){for(;n[o+1]<a;)o++;e[a]=(a-r[o])*(a-r[o])+t[r[o]]}}D.prototype.draw=function(t){this.ctx.clearRect(0,0,this.size,this.size),this.ctx.fillText(t,this.buffer,this.middle);for(var e=this.ctx.getImageData(0,0,this.size,this.size),r=new Uint8ClampedArray(this.size*this.size),n=0;n<this.size*this.size;n++){var i=e.data[4*n+3]/255;this.gridOuter[n]=1===i?0:0===i?P:Math.pow(Math.max(0,.5-i),2),this.gridInner[n]=1===i?P:0===i?0:Math.pow(Math.max(0,i-.5),2)}for(R(this.gridOuter,this.size,this.size,this.f,this.d,this.v,this.z),R(this.gridInner,this.size,this.size,this.f,this.d,this.v,this.z),n=0;n<this.size*this.size;n++){var a=this.gridOuter[n]-this.gridInner[n];r[n]=Math.max(0,Math.min(255,Math.round(255-255*(a/this.radius+this.cutoff))))}return r};var F=function(t,e){this.requestTransform=t,this.localIdeographFontFamily=e,this.entries={}};F.prototype.setURL=function(t){this.url=t},F.prototype.getGlyphs=function(e,r){var n=this,i=[];for(var a in e)for(var o=0,s=e[a];o<s.length;o+=1){var l=s[o];i.push({stack:a,id:l})}t.asyncAll(i,function(t,e){var r=t.stack,i=t.id,a=n.entries[r];a||(a=n.entries[r]={glyphs:{},requests:{}});var o=a.glyphs[i];if(void 0===o)if(o=n._tinySDF(a,r,i))e(null,{stack:r,id:i,glyph:o});else{var s=Math.floor(i/256);if(256*s>65535)e(new Error(\"glyphs > 65535 not supported\"));else{var l=a.requests[s];l||(l=a.requests[s]=[],F.loadGlyphRange(r,s,n.url,n.requestTransform,function(t,e){if(e)for(var r in e)a.glyphs[+r]=e[+r];for(var n=0,i=l;n<i.length;n+=1)(0,i[n])(t,e);delete a.requests[s]})),l.push(function(t,n){t?e(t):n&&e(null,{stack:r,id:i,glyph:n[i]||null})})}}else e(null,{stack:r,id:i,glyph:o})},function(t,e){if(t)r(t);else if(e){for(var n={},i=0,a=e;i<a.length;i+=1){var o=a[i],s=o.stack,l=o.id,c=o.glyph;(n[s]||(n[s]={}))[l]=c&&{id:c.id,bitmap:c.bitmap.clone(),metrics:c.metrics}}r(null,n)}})},F.prototype._tinySDF=function(e,r,n){var i=this.localIdeographFontFamily;if(i&&(t.default$4[\"CJK Unified Ideographs\"](n)||t.default$4[\"Hangul Syllables\"](n))){var a=e.tinySDF;if(!a){var o=\"400\";/bold/i.test(r)?o=\"900\":/medium/i.test(r)?o=\"500\":/light/i.test(r)&&(o=\"200\"),a=e.tinySDF=new F.TinySDF(24,3,8,.25,i,o)}return{id:n,bitmap:new t.AlphaImage({width:30,height:30},a.draw(String.fromCharCode(n))),metrics:{width:24,height:24,left:0,top:-8,advance:24}}}},F.loadGlyphRange=function(e,r,n,i,a){var o=256*r,s=o+255,l=i(function(t,e){if(!x(t))return t;var r=A(t);return r.path=\"/fonts/v1\"+r.path,y(r,e)}(n).replace(\"{fontstack}\",e).replace(\"{range}\",o+\"-\"+s),t.ResourceType.Glyphs);t.getArrayBuffer(l,function(e,r){if(e)a(e);else if(r){for(var n={},i=0,o=t.default$3(r.data);i<o.length;i+=1){var s=o[i];n[s.id]=s}a(null,n)}})},F.TinySDF=I;var N=function(){this.specification=t.default$5.light.position};N.prototype.possiblyEvaluate=function(e,r){return t.sphericalToCartesian(e.expression.evaluate(r))},N.prototype.interpolate=function(e,r,n){return{x:t.number(e.x,r.x,n),y:t.number(e.y,r.y,n),z:t.number(e.z,r.z,n)}};var j=new t.Properties({anchor:new t.DataConstantProperty(t.default$5.light.anchor),position:new N,color:new t.DataConstantProperty(t.default$5.light.color),intensity:new t.DataConstantProperty(t.default$5.light.intensity)}),V=function(e){function r(r){e.call(this),this._transitionable=new t.Transitionable(j),this.setLight(r),this._transitioning=this._transitionable.untransitioned()}return e&&(r.__proto__=e),r.prototype=Object.create(e&&e.prototype),r.prototype.constructor=r,r.prototype.getLight=function(){return this._transitionable.serialize()},r.prototype.setLight=function(e){if(!this._validate(t.validateLight,e))for(var r in e){var n=e[r];t.endsWith(r,\"-transition\")?this._transitionable.setTransition(r.slice(0,-\"-transition\".length),n):this._transitionable.setValue(r,n)}},r.prototype.updateTransitions=function(t){this._transitioning=this._transitionable.transitioned(t,this._transitioning)},r.prototype.hasTransition=function(){return this._transitioning.hasTransition()},r.prototype.recalculate=function(t){this.properties=this._transitioning.possiblyEvaluate(t)},r.prototype._validate=function(e,r){return t.emitValidationErrors(this,e.call(t.validateStyle,t.extend({value:r,style:{glyphs:!0,sprite:!0},styleSpec:t.default$5})))},r}(t.Evented),U=function(t,e){this.width=t,this.height=e,this.nextRow=0,this.bytes=4,this.data=new Uint8Array(this.width*this.height*this.bytes),this.positions={}};U.prototype.getDash=function(t,e){var r=t.join(\",\")+String(e);return this.positions[r]||(this.positions[r]=this.addDash(t,e)),this.positions[r]},U.prototype.addDash=function(e,r){var n=r?7:0,i=2*n+1;if(this.nextRow+i>this.height)return t.warnOnce(\"LineAtlas out of space\"),null;for(var a=0,o=0;o<e.length;o++)a+=e[o];for(var s=this.width/a,l=s/2,c=e.length%2==1,u=-n;u<=n;u++)for(var f=this.nextRow+n+u,h=this.width*f,p=c?-e[e.length-1]:0,d=e[0],g=1,v=0;v<this.width;v++){for(;d<v/s;)p=d,d+=e[g],c&&g===e.length-1&&(d+=e[0]),g++;var m=Math.abs(v-p*s),y=Math.abs(v-d*s),x=Math.min(m,y),b=g%2==1,_=void 0;if(r){var w=n?u/n*(l+1):0;if(b){var k=l-Math.abs(w);_=Math.sqrt(x*x+k*k)}else _=l-Math.sqrt(x*x+w*w)}else _=(b?1:-1)*x;this.data[3+4*(h+v)]=Math.max(0,Math.min(255,_+128))}var M={y:(this.nextRow+n+.5)/this.height,height:2*n/this.height,width:a};return this.nextRow+=i,this.dirty=!0,M},U.prototype.bind=function(t){var e=t.gl;this.texture?(e.bindTexture(e.TEXTURE_2D,this.texture),this.dirty&&(this.dirty=!1,e.texSubImage2D(e.TEXTURE_2D,0,0,0,this.width,this.height,e.RGBA,e.UNSIGNED_BYTE,this.data))):(this.texture=e.createTexture(),e.bindTexture(e.TEXTURE_2D,this.texture),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.REPEAT),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.REPEAT),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,this.width,this.height,0,e.RGBA,e.UNSIGNED_BYTE,this.data))};var q=function e(r,n){this.workerPool=r,this.actors=[],this.currentActor=0,this.id=t.uniqueId();for(var i=this.workerPool.acquire(this.id),a=0;a<i.length;a++){var o=i[a],s=new e.Actor(o,n,this.id);s.name=\"Worker \"+a,this.actors.push(s)}};function H(e,r,n){var i=function(e,r){if(e)return n(e);if(r){var i=t.pick(r,[\"tiles\",\"minzoom\",\"maxzoom\",\"attribution\",\"mapbox_logo\",\"bounds\"]);r.vector_layers&&(i.vectorLayers=r.vector_layers,i.vectorLayerIds=i.vectorLayers.map(function(t){return t.id})),n(null,i)}};e.url?t.getJSON(r(b(e.url),t.ResourceType.Source),i):a.frame(function(){return i(null,e)})}q.prototype.broadcast=function(e,r,n){n=n||function(){},t.asyncAll(this.actors,function(t,n){t.send(e,r,n)},n)},q.prototype.send=function(t,e,r,n){return(\"number\"!=typeof n||isNaN(n))&&(n=this.currentActor=(this.currentActor+1)%this.actors.length),this.actors[n].send(t,e,r),n},q.prototype.remove=function(){this.actors.forEach(function(t){t.remove()}),this.actors=[],this.workerPool.release(this.id)},q.Actor=t.default$7;var G=function(t,e){if(isNaN(t)||isNaN(e))throw new Error(\"Invalid LngLat object: (\"+t+\", \"+e+\")\");if(this.lng=+t,this.lat=+e,this.lat>90||this.lat<-90)throw new Error(\"Invalid LngLat latitude value: must be between -90 and 90\")};G.prototype.wrap=function(){return new G(t.wrap(this.lng,-180,180),this.lat)},G.prototype.toArray=function(){return[this.lng,this.lat]},G.prototype.toString=function(){return\"LngLat(\"+this.lng+\", \"+this.lat+\")\"},G.prototype.toBounds=function(t){var e=360*t/40075017,r=e/Math.cos(Math.PI/180*this.lat);return new W(new G(this.lng-r,this.lat-e),new G(this.lng+r,this.lat+e))},G.convert=function(t){if(t instanceof G)return t;if(Array.isArray(t)&&(2===t.length||3===t.length))return new G(Number(t[0]),Number(t[1]));if(!Array.isArray(t)&&\"object\"==typeof t&&null!==t)return new G(Number(t.lng),Number(t.lat));throw new Error(\"`LngLatLike` argument must be specified as a LngLat instance, an object {lng: <lng>, lat: <lat>}, or an array of [<lng>, <lat>]\")};var W=function(t,e){t&&(e?this.setSouthWest(t).setNorthEast(e):4===t.length?this.setSouthWest([t[0],t[1]]).setNorthEast([t[2],t[3]]):this.setSouthWest(t[0]).setNorthEast(t[1]))};W.prototype.setNorthEast=function(t){return this._ne=t instanceof G?new G(t.lng,t.lat):G.convert(t),this},W.prototype.setSouthWest=function(t){return this._sw=t instanceof G?new G(t.lng,t.lat):G.convert(t),this},W.prototype.extend=function(t){var e,r,n=this._sw,i=this._ne;if(t instanceof G)e=t,r=t;else{if(!(t instanceof W))return Array.isArray(t)?t.every(Array.isArray)?this.extend(W.convert(t)):this.extend(G.convert(t)):this;if(e=t._sw,r=t._ne,!e||!r)return this}return n||i?(n.lng=Math.min(e.lng,n.lng),n.lat=Math.min(e.lat,n.lat),i.lng=Math.max(r.lng,i.lng),i.lat=Math.max(r.lat,i.lat)):(this._sw=new G(e.lng,e.lat),this._ne=new G(r.lng,r.lat)),this},W.prototype.getCenter=function(){return new G((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},W.prototype.getSouthWest=function(){return this._sw},W.prototype.getNorthEast=function(){return this._ne},W.prototype.getNorthWest=function(){return new G(this.getWest(),this.getNorth())},W.prototype.getSouthEast=function(){return new G(this.getEast(),this.getSouth())},W.prototype.getWest=function(){return this._sw.lng},W.prototype.getSouth=function(){return this._sw.lat},W.prototype.getEast=function(){return this._ne.lng},W.prototype.getNorth=function(){return this._ne.lat},W.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},W.prototype.toString=function(){return\"LngLatBounds(\"+this._sw.toString()+\", \"+this._ne.toString()+\")\"},W.prototype.isEmpty=function(){return!(this._sw&&this._ne)},W.convert=function(t){return!t||t instanceof W?t:new W(t)};var Y=function(t,e,r){this.bounds=W.convert(this.validateBounds(t)),this.minzoom=e||0,this.maxzoom=r||24};Y.prototype.validateBounds=function(t){return Array.isArray(t)&&4===t.length?[Math.max(-180,t[0]),Math.max(-90,t[1]),Math.min(180,t[2]),Math.min(90,t[3])]:[-180,-90,180,90]},Y.prototype.contains=function(t){var e=Math.floor(this.lngX(this.bounds.getWest(),t.z)),r=Math.floor(this.latY(this.bounds.getNorth(),t.z)),n=Math.ceil(this.lngX(this.bounds.getEast(),t.z)),i=Math.ceil(this.latY(this.bounds.getSouth(),t.z));return t.x>=e&&t.x<n&&t.y>=r&&t.y<i},Y.prototype.lngX=function(t,e){return(t+180)*(Math.pow(2,e)/360)},Y.prototype.latY=function(e,r){var n=t.clamp(Math.sin(Math.PI/180*e),-.9999,.9999),i=Math.pow(2,r)/(2*Math.PI);return Math.pow(2,r-1)+.5*Math.log((1+n)/(1-n))*-i};var X=function(e){function r(r,n,i,a){if(e.call(this),this.id=r,this.dispatcher=i,this.type=\"vector\",this.minzoom=0,this.maxzoom=22,this.scheme=\"xyz\",this.tileSize=512,this.reparseOverscaled=!0,this.isTileClipped=!0,t.extend(this,t.pick(n,[\"url\",\"scheme\",\"tileSize\"])),this._options=t.extend({type:\"vector\"},n),this._collectResourceTiming=n.collectResourceTiming,512!==this.tileSize)throw new Error(\"vector tile sources must have a tileSize of 512\");this.setEventedParent(a)}return e&&(r.__proto__=e),r.prototype=Object.create(e&&e.prototype),r.prototype.constructor=r,r.prototype.load=function(){var e=this;this.fire(new t.Event(\"dataloading\",{dataType:\"source\"})),H(this._options,this.map._transformRequest,function(r,n){r?e.fire(new t.ErrorEvent(r)):n&&(t.extend(e,n),n.bounds&&(e.tileBounds=new Y(n.bounds,e.minzoom,e.maxzoom)),e.fire(new t.Event(\"data\",{dataType:\"source\",sourceDataType:\"metadata\"})),e.fire(new t.Event(\"data\",{dataType:\"source\",sourceDataType:\"content\"})))})},r.prototype.hasTile=function(t){return!this.tileBounds||this.tileBounds.contains(t.canonical)},r.prototype.onAdd=function(t){this.map=t,this.load()},r.prototype.serialize=function(){return t.extend({},this._options)},r.prototype.loadTile=function(e,r){var n=k(e.tileID.canonical.url(this.tiles,this.scheme),this.url),i={request:this.map._transformRequest(n,t.ResourceType.Tile),uid:e.uid,tileID:e.tileID,zoom:e.tileID.overscaledZ,tileSize:this.tileSize*e.tileID.overscaleFactor(),type:this.type,source:this.id,pixelRatio:a.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes};function o(t,n){return e.aborted?r(null):t?r(t):(n&&n.resourceTiming&&(e.resourceTiming=n.resourceTiming),this.map._refreshExpiredTiles&&e.setExpiryData(n),e.loadVectorData(n,this.map.painter),r(null),void(e.reloadCallback&&(this.loadTile(e,e.reloadCallback),e.reloadCallback=null)))}i.request.collectResourceTiming=this._collectResourceTiming,void 0===e.workerID||\"expired\"===e.state?e.workerID=this.dispatcher.send(\"loadTile\",i,o.bind(this)):\"loading\"===e.state?e.reloadCallback=r:this.dispatcher.send(\"reloadTile\",i,o.bind(this),e.workerID)},r.prototype.abortTile=function(t){this.dispatcher.send(\"abortTile\",{uid:t.uid,type:this.type,source:this.id},void 0,t.workerID)},r.prototype.unloadTile=function(t){t.unloadVectorData(),this.dispatcher.send(\"removeTile\",{uid:t.uid,type:this.type,source:this.id},void 0,t.workerID)},r.prototype.hasTransition=function(){return!1},r}(t.Evented),Z=function(e){function r(r,n,i,a){e.call(this),this.id=r,this.dispatcher=i,this.setEventedParent(a),this.type=\"raster\",this.minzoom=0,this.maxzoom=22,this.roundZoom=!0,this.scheme=\"xyz\",this.tileSize=512,this._loaded=!1,this._options=t.extend({},n),t.extend(this,t.pick(n,[\"url\",\"scheme\",\"tileSize\"]))}return e&&(r.__proto__=e),r.prototype=Object.create(e&&e.prototype),r.prototype.constructor=r,r.prototype.load=function(){var e=this;this.fire(new t.Event(\"dataloading\",{dataType:\"source\"})),H(this._options,this.map._transformRequest,function(r,n){r?e.fire(new t.ErrorEvent(r)):n&&(t.extend(e,n),n.bounds&&(e.tileBounds=new Y(n.bounds,e.minzoom,e.maxzoom)),e.fire(new t.Event(\"data\",{dataType:\"source\",sourceDataType:\"metadata\"})),e.fire(new t.Event(\"data\",{dataType:\"source\",sourceDataType:\"content\"})))})},r.prototype.onAdd=function(t){this.map=t,this.load()},r.prototype.serialize=function(){return t.extend({},this._options)},r.prototype.hasTile=function(t){return!this.tileBounds||this.tileBounds.contains(t.canonical)},r.prototype.loadTile=function(e,r){var n=this,i=k(e.tileID.canonical.url(this.tiles,this.scheme),this.url,this.tileSize);e.request=t.getImage(this.map._transformRequest(i,t.ResourceType.Tile),function(t,i){if(delete e.request,e.aborted)e.state=\"unloaded\",r(null);else if(t)e.state=\"errored\",r(t);else if(i){n.map._refreshExpiredTiles&&e.setExpiryData(i),delete i.cacheControl,delete i.expires;var a=n.map.painter.context,o=a.gl;e.texture=n.map.painter.getTileTexture(i.width),e.texture?e.texture.update(i,{useMipmap:!0}):(e.texture=new z(a,i,o.RGBA,{useMipmap:!0}),e.texture.bind(o.LINEAR,o.CLAMP_TO_EDGE,o.LINEAR_MIPMAP_NEAREST),a.extTextureFilterAnisotropic&&o.texParameterf(o.TEXTURE_2D,a.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,a.extTextureFilterAnisotropicMax)),e.state=\"loaded\",r(null)}})},r.prototype.abortTile=function(t,e){t.request&&(t.request.abort(),delete t.request),e()},r.prototype.unloadTile=function(t,e){t.texture&&this.map.painter.saveTileTexture(t.texture),e()},r.prototype.hasTransition=function(){return!1},r}(t.Evented),$=function(e){function r(r,n,i,a){e.call(this,r,n,i,a),this.type=\"raster-dem\",this.maxzoom=22,this._options=t.extend({},n),this.encoding=n.encoding||\"mapbox\"}return e&&(r.__proto__=e),r.prototype=Object.create(e&&e.prototype),r.prototype.constructor=r,r.prototype.serialize=function(){return{type:\"raster-dem\",url:this.url,tileSize:this.tileSize,tiles:this.tiles,bounds:this.bounds,encoding:this.encoding}},r.prototype.loadTile=function(e,r){var n=k(e.tileID.canonical.url(this.tiles,this.scheme),this.url,this.tileSize);e.request=t.getImage(this.map._transformRequest(n,t.ResourceType.Tile),function(t,n){if(delete e.request,e.aborted)e.state=\"unloaded\",r(null);else if(t)e.state=\"errored\",r(t);else if(n){this.map._refreshExpiredTiles&&e.setExpiryData(n),delete n.cacheControl,delete n.expires;var i=a.getImageData(n),o={uid:e.uid,coord:e.tileID,source:this.id,rawImageData:i,encoding:this.encoding};e.workerID&&\"expired\"!==e.state||(e.workerID=this.dispatcher.send(\"loadDEMTile\",o,function(t,n){t&&(e.state=\"errored\",r(t)),n&&(e.dem=n,e.needsHillshadePrepare=!0,e.state=\"loaded\",r(null))}.bind(this)))}}.bind(this)),e.neighboringTiles=this._getNeighboringTiles(e.tileID)},r.prototype._getNeighboringTiles=function(e){var r=e.canonical,n=Math.pow(2,r.z),i=(r.x-1+n)%n,a=0===r.x?e.wrap-1:e.wrap,o=(r.x+1+n)%n,s=r.x+1===n?e.wrap+1:e.wrap,l={};return l[new t.OverscaledTileID(e.overscaledZ,a,r.z,i,r.y).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,s,r.z,o,r.y).key]={backfilled:!1},r.y>0&&(l[new t.OverscaledTileID(e.overscaledZ,a,r.z,i,r.y-1).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,e.wrap,r.z,r.x,r.y-1).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,s,r.z,o,r.y-1).key]={backfilled:!1}),r.y+1<n&&(l[new t.OverscaledTileID(e.overscaledZ,a,r.z,i,r.y+1).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,e.wrap,r.z,r.x,r.y+1).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,s,r.z,o,r.y+1).key]={backfilled:!1}),l},r.prototype.unloadTile=function(t){t.demTexture&&this.map.painter.saveTileTexture(t.demTexture),t.fbo&&(t.fbo.destroy(),delete t.fbo),t.dem&&delete t.dem,delete t.neighboringTiles,t.state=\"unloaded\",this.dispatcher.send(\"removeDEMTile\",{uid:t.uid,source:this.id},void 0,t.workerID)},r}(Z),J=function(e){function r(r,n,i,a){e.call(this),this.id=r,this.type=\"geojson\",this.minzoom=0,this.maxzoom=18,this.tileSize=512,this.isTileClipped=!0,this.reparseOverscaled=!0,this._removed=!1,this.dispatcher=i,this.setEventedParent(a),this._data=n.data,this._options=t.extend({},n),this._collectResourceTiming=n.collectResourceTiming,this._resourceTiming=[],void 0!==n.maxzoom&&(this.maxzoom=n.maxzoom),n.type&&(this.type=n.type);var o=t.default$8/this.tileSize;this.workerOptions=t.extend({source:this.id,cluster:n.cluster||!1,geojsonVtOptions:{buffer:(void 0!==n.buffer?n.buffer:128)*o,tolerance:(void 0!==n.tolerance?n.tolerance:.375)*o,extent:t.default$8,maxZoom:this.maxzoom,lineMetrics:n.lineMetrics||!1},superclusterOptions:{maxZoom:void 0!==n.clusterMaxZoom?Math.min(n.clusterMaxZoom,this.maxzoom-1):this.maxzoom-1,extent:t.default$8,radius:(n.clusterRadius||50)*o,log:!1}},n.workerOptions)}return e&&(r.__proto__=e),r.prototype=Object.create(e&&e.prototype),r.prototype.constructor=r,r.prototype.load=function(){var e=this;this.fire(new t.Event(\"dataloading\",{dataType:\"source\"})),this._updateWorkerData(function(r){if(r)e.fire(new t.ErrorEvent(r));else{var n={dataType:\"source\",sourceDataType:\"metadata\"};e._collectResourceTiming&&e._resourceTiming&&e._resourceTiming.length>0&&(n.resourceTiming=e._resourceTiming,e._resourceTiming=[]),e.fire(new t.Event(\"data\",n))}})},r.prototype.onAdd=function(t){this.map=t,this.load()},r.prototype.setData=function(e){var r=this;return this._data=e,this.fire(new t.Event(\"dataloading\",{dataType:\"source\"})),this._updateWorkerData(function(e){if(e)return r.fire(new t.ErrorEvent(e));var n={dataType:\"source\",sourceDataType:\"content\"};r._collectResourceTiming&&r._resourceTiming&&r._resourceTiming.length>0&&(n.resourceTiming=r._resourceTiming,r._resourceTiming=[]),r.fire(new t.Event(\"data\",n))}),this},r.prototype._updateWorkerData=function(e){var r,n,i=this,a=t.extend({},this.workerOptions),o=this._data;\"string\"==typeof o?(a.request=this.map._transformRequest((r=o,(n=t.default.document.createElement(\"a\")).href=r,n.href),t.ResourceType.Source),a.request.collectResourceTiming=this._collectResourceTiming):a.data=JSON.stringify(o),this.workerID=this.dispatcher.send(this.type+\".\"+a.source+\".loadData\",a,function(t,r){i._removed||r&&r.abandoned||(i._loaded=!0,r&&r.resourceTiming&&r.resourceTiming[i.id]&&(i._resourceTiming=r.resourceTiming[i.id].slice(0)),i.dispatcher.send(i.type+\".\"+a.source+\".coalesce\",null,null,i.workerID),e(t))},this.workerID)},r.prototype.loadTile=function(t,e){var r=this,n=void 0===t.workerID?\"loadTile\":\"reloadTile\",i={type:this.type,uid:t.uid,tileID:t.tileID,zoom:t.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:a.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes};t.workerID=this.dispatcher.send(n,i,function(i,a){return t.unloadVectorData(),t.aborted?e(null):i?e(i):(t.loadVectorData(a,r.map.painter,\"reloadTile\"===n),e(null))},this.workerID)},r.prototype.abortTile=function(t){t.aborted=!0},r.prototype.unloadTile=function(t){t.unloadVectorData(),this.dispatcher.send(\"removeTile\",{uid:t.uid,type:this.type,source:this.id},null,t.workerID)},r.prototype.onRemove=function(){this._removed=!0,this.dispatcher.send(\"removeSource\",{type:this.type,source:this.id},null,this.workerID)},r.prototype.serialize=function(){return t.extend({},this._options,{type:this.type,data:this._data})},r.prototype.hasTransition=function(){return!1},r}(t.Evented),K=t.createLayout([{name:\"a_pos\",type:\"Int16\",components:2},{name:\"a_texture_pos\",type:\"Int16\",components:2}]),Q=function(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null};Q.prototype.bind=function(t,e,r,n,i,a,o,s){this.context=t;for(var l=this.boundPaintVertexBuffers.length!==n.length,c=0;!l&&c<n.length;c++)this.boundPaintVertexBuffers[c]!==n[c]&&(l=!0);var u=!this.vao||this.boundProgram!==e||this.boundLayoutVertexBuffer!==r||l||this.boundIndexBuffer!==i||this.boundVertexOffset!==a||this.boundDynamicVertexBuffer!==o||this.boundDynamicVertexBuffer2!==s;!t.extVertexArrayObject||u?this.freshBind(e,r,n,i,a,o,s):(t.bindVertexArrayOES.set(this.vao),o&&o.bind(),i&&i.dynamicDraw&&i.bind(),s&&s.bind())},Q.prototype.freshBind=function(t,e,r,n,i,a,o){var s,l=t.numAttributes,c=this.context,u=c.gl;if(c.extVertexArrayObject)this.vao&&this.destroy(),this.vao=c.extVertexArrayObject.createVertexArrayOES(),c.bindVertexArrayOES.set(this.vao),s=0,this.boundProgram=t,this.boundLayoutVertexBuffer=e,this.boundPaintVertexBuffers=r,this.boundIndexBuffer=n,this.boundVertexOffset=i,this.boundDynamicVertexBuffer=a,this.boundDynamicVertexBuffer2=o;else{s=c.currentNumAttributes||0;for(var f=l;f<s;f++)u.disableVertexAttribArray(f)}e.enableAttributes(u,t);for(var h=0,p=r;h<p.length;h+=1)p[h].enableAttributes(u,t);a&&a.enableAttributes(u,t),o&&o.enableAttributes(u,t),e.bind(),e.setVertexAttribPointers(u,t,i);for(var d=0,g=r;d<g.length;d+=1){var v=g[d];v.bind(),v.setVertexAttribPointers(u,t,i)}a&&(a.bind(),a.setVertexAttribPointers(u,t,i)),n&&n.bind(),o&&(o.bind(),o.setVertexAttribPointers(u,t,i)),c.currentNumAttributes=l},Q.prototype.destroy=function(){this.vao&&(this.context.extVertexArrayObject.deleteVertexArrayOES(this.vao),this.vao=null)};var tt=function(e){function r(t,r,n,i){e.call(this),this.id=t,this.dispatcher=n,this.coordinates=r.coordinates,this.type=\"image\",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this.setEventedParent(i),this.options=r}return e&&(r.__proto__=e),r.prototype=Object.create(e&&e.prototype),r.prototype.constructor=r,r.prototype.load=function(){var e=this;this.fire(new t.Event(\"dataloading\",{dataType:\"source\"})),this.url=this.options.url,t.getImage(this.map._transformRequest(this.url,t.ResourceType.Image),function(r,n){r?e.fire(new t.ErrorEvent(r)):n&&(e.image=a.getImageData(n),e._finishLoading())})},r.prototype._finishLoading=function(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new t.Event(\"data\",{dataType:\"source\",sourceDataType:\"metadata\"})))},r.prototype.onAdd=function(t){this.map=t,this.load()},r.prototype.setCoordinates=function(e){this.coordinates=e;var r=this.map,n=e.map(function(t){return r.transform.locationCoordinate(G.convert(t)).zoomTo(0)}),i=this.centerCoord=t.getCoordinatesCenter(n);i.column=Math.floor(i.column),i.row=Math.floor(i.row),this.tileID=new t.CanonicalTileID(i.zoom,i.column,i.row),this.minzoom=this.maxzoom=i.zoom;var a=n.map(function(e){var r=e.zoomTo(i.zoom);return new t.default$1(Math.round((r.column-i.column)*t.default$8),Math.round((r.row-i.row)*t.default$8))});return this._boundsArray=new t.RasterBoundsArray,this._boundsArray.emplaceBack(a[0].x,a[0].y,0,0),this._boundsArray.emplaceBack(a[1].x,a[1].y,t.default$8,0),this._boundsArray.emplaceBack(a[3].x,a[3].y,0,t.default$8),this._boundsArray.emplaceBack(a[2].x,a[2].y,t.default$8,t.default$8),this.boundsBuffer&&(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new t.Event(\"data\",{dataType:\"source\",sourceDataType:\"content\"})),this},r.prototype.prepare=function(){if(0!==Object.keys(this.tiles).length&&this.image){var t=this.map.painter.context,e=t.gl;for(var r in this.boundsBuffer||(this.boundsBuffer=t.createVertexBuffer(this._boundsArray,K.members)),this.boundsVAO||(this.boundsVAO=new Q),this.texture||(this.texture=new z(t,this.image,e.RGBA),this.texture.bind(e.LINEAR,e.CLAMP_TO_EDGE)),this.tiles){var n=this.tiles[r];\"loaded\"!==n.state&&(n.state=\"loaded\",n.texture=this.texture)}}},r.prototype.loadTile=function(t,e){this.tileID&&this.tileID.equals(t.tileID.canonical)?(this.tiles[String(t.tileID.wrap)]=t,t.buckets={},e(null)):(t.state=\"errored\",e(null))},r.prototype.serialize=function(){return{type:\"image\",url:this.options.url,coordinates:this.coordinates}},r.prototype.hasTransition=function(){return!1},r}(t.Evented),et=function(e){function r(t,r,n,i){e.call(this,t,r,n,i),this.roundZoom=!0,this.type=\"video\",this.options=r}return e&&(r.__proto__=e),r.prototype=Object.create(e&&e.prototype),r.prototype.constructor=r,r.prototype.load=function(){var e=this,r=this.options;this.urls=[];for(var n=0,i=r.urls;n<i.length;n+=1){var a=i[n];e.urls.push(e.map._transformRequest(a,t.ResourceType.Source).url)}t.getVideo(this.urls,function(r,n){r?e.fire(new t.ErrorEvent(r)):n&&(e.video=n,e.video.loop=!0,e.video.addEventListener(\"playing\",function(){e.map._rerender()}),e.map&&e.video.play(),e._finishLoading())})},r.prototype.getVideo=function(){return this.video},r.prototype.onAdd=function(t){this.map||(this.map=t,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))},r.prototype.prepare=function(){if(!(0===Object.keys(this.tiles).length||this.video.readyState<2)){var t=this.map.painter.context,e=t.gl;for(var r in this.boundsBuffer||(this.boundsBuffer=t.createVertexBuffer(this._boundsArray,K.members)),this.boundsVAO||(this.boundsVAO=new Q),this.texture?this.video.paused||(this.texture.bind(e.LINEAR,e.CLAMP_TO_EDGE),e.texSubImage2D(e.TEXTURE_2D,0,0,0,e.RGBA,e.UNSIGNED_BYTE,this.video)):(this.texture=new z(t,this.video,e.RGBA),this.texture.bind(e.LINEAR,e.CLAMP_TO_EDGE)),this.tiles){var n=this.tiles[r];\"loaded\"!==n.state&&(n.state=\"loaded\",n.texture=this.texture)}}},r.prototype.serialize=function(){return{type:\"video\",urls:this.urls,coordinates:this.coordinates}},r.prototype.hasTransition=function(){return this.video&&!this.video.paused},r}(tt),rt=function(e){function r(r,n,i,a){e.call(this,r,n,i,a),n.coordinates?Array.isArray(n.coordinates)&&4===n.coordinates.length&&!n.coordinates.some(function(t){return!Array.isArray(t)||2!==t.length||t.some(function(t){return\"number\"!=typeof t})})||this.fire(new t.ErrorEvent(new t.default$9(\"sources.\"+r,null,'\"coordinates\" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new t.ErrorEvent(new t.default$9(\"sources.\"+r,null,'missing required property \"coordinates\"'))),n.animate&&\"boolean\"!=typeof n.animate&&this.fire(new t.ErrorEvent(new t.default$9(\"sources.\"+r,null,'optional \"animate\" property must be a boolean value'))),n.canvas?\"string\"==typeof n.canvas||n.canvas instanceof t.default.HTMLCanvasElement||this.fire(new t.ErrorEvent(new t.default$9(\"sources.\"+r,null,'\"canvas\" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new t.ErrorEvent(new t.default$9(\"sources.\"+r,null,'missing required property \"canvas\"'))),this.options=n,this.animate=void 0===n.animate||n.animate}return e&&(r.__proto__=e),r.prototype=Object.create(e&&e.prototype),r.prototype.constructor=r,r.prototype.load=function(){this.canvas||(this.canvas=this.options.canvas instanceof t.default.HTMLCanvasElement?this.options.canvas:t.default.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new t.ErrorEvent(new Error(\"Canvas dimensions cannot be less than or equal to zero.\"))):(this.play=function(){this._playing=!0,this.map._rerender()},this.pause=function(){this._playing=!1},this._finishLoading())},r.prototype.getCanvas=function(){return this.canvas},r.prototype.onAdd=function(t){this.map=t,this.load(),this.canvas&&this.animate&&this.play()},r.prototype.onRemove=function(){this.pause()},r.prototype.prepare=function(){var t=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,t=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,t=!0),!this._hasInvalidDimensions()&&0!==Object.keys(this.tiles).length){var e=this.map.painter.context,r=e.gl;for(var n in this.boundsBuffer||(this.boundsBuffer=e.createVertexBuffer(this._boundsArray,K.members)),this.boundsVAO||(this.boundsVAO=new Q),this.texture?t?this.texture.update(this.canvas):this._playing&&(this.texture.bind(r.LINEAR,r.CLAMP_TO_EDGE),r.texSubImage2D(r.TEXTURE_2D,0,0,0,r.RGBA,r.UNSIGNED_BYTE,this.canvas)):(this.texture=new z(e,this.canvas,r.RGBA),this.texture.bind(r.LINEAR,r.CLAMP_TO_EDGE)),this.tiles){var i=this.tiles[n];\"loaded\"!==i.state&&(i.state=\"loaded\",i.texture=this.texture)}}},r.prototype.serialize=function(){return{type:\"canvas\",coordinates:this.coordinates}},r.prototype.hasTransition=function(){return this._playing},r.prototype._hasInvalidDimensions=function(){for(var t=0,e=[this.canvas.width,this.canvas.height];t<e.length;t+=1){var r=e[t];if(isNaN(r)||r<=0)return!0}return!1},r}(tt),nt={vector:X,raster:Z,\"raster-dem\":$,geojson:J,video:et,image:tt,canvas:rt},it=function(e,r,n,i){var a=new nt[r.type](e,r,n,i);if(a.id!==e)throw new Error(\"Expected Source id to be \"+e+\" instead of \"+a.id);return t.bindAll([\"load\",\"abort\",\"unload\",\"serialize\",\"prepare\"],a),a};function at(t,e,r,n,i){var a=i.maxPitchScaleFactor(),o=t.tilesIn(r,a);o.sort(ot);for(var s=[],l=0,c=o;l<c.length;l+=1){var u=c[l];s.push({wrappedTileID:u.tileID.wrapped().key,queryResults:u.tile.queryRenderedFeatures(e,u.queryGeometry,u.scale,n,i,a,t.transform.calculatePosMatrix(u.tileID.toUnwrapped()))})}return function(t){for(var e={},r={},n=0,i=t;n<i.length;n+=1){var a=i[n],o=a.queryResults,s=a.wrappedTileID,l=r[s]=r[s]||{};for(var c in o)for(var u=o[c],f=l[c]=l[c]||{},h=e[c]=e[c]||[],p=0,d=u;p<d.length;p+=1){var g=d[p];f[g.featureIndex]||(f[g.featureIndex]=!0,h.push(g.feature))}}return e}(s)}function ot(t,e){var r=t.tileID,n=e.tileID;return r.overscaledZ-n.overscaledZ||r.canonical.y-n.canonical.y||r.wrap-n.wrap||r.canonical.x-n.canonical.x}var st=function(e,r){this.tileID=e,this.uid=t.uniqueId(),this.uses=0,this.tileSize=r,this.buckets={},this.expirationTime=null,this.queryPadding=0,this.expiredRequestCount=0,this.state=\"loading\"};st.prototype.registerFadeDuration=function(t){var e=t+this.timeAdded;e<a.now()||this.fadeEndTime&&e<this.fadeEndTime||(this.fadeEndTime=e)},st.prototype.wasRequested=function(){return\"errored\"===this.state||\"loaded\"===this.state||\"reloading\"===this.state},st.prototype.loadVectorData=function(e,r,n){if(this.hasData()&&this.unloadVectorData(),this.state=\"loaded\",e){if(e.featureIndex&&(this.latestFeatureIndex=e.featureIndex,e.rawTileData?(this.latestRawTileData=e.rawTileData,this.latestFeatureIndex.rawTileData=e.rawTileData):this.latestRawTileData&&(this.latestFeatureIndex.rawTileData=this.latestRawTileData)),this.collisionBoxArray=e.collisionBoxArray,this.buckets=function(t,e){var r={};if(!e)return r;for(var n=0,i=t;n<i.length;n+=1){var a=i[n],o=a.layerIds.map(function(t){return e.getLayer(t)}).filter(Boolean);if(0!==o.length){a.layers=o;for(var s=0,l=o;s<l.length;s+=1)r[l[s].id]=a}}return r}(e.buckets,r.style),n)for(var i in this.buckets){var a=this.buckets[i];a instanceof t.default$14&&(a.justReloaded=!0)}for(var o in this.queryPadding=0,this.buckets){var s=this.buckets[o];this.queryPadding=Math.max(this.queryPadding,r.style.getLayer(s.layerIds[0]).queryRadius(s))}e.iconAtlasImage&&(this.iconAtlasImage=e.iconAtlasImage),e.glyphAtlasImage&&(this.glyphAtlasImage=e.glyphAtlasImage)}else this.collisionBoxArray=new t.CollisionBoxArray},st.prototype.unloadVectorData=function(){for(var t in this.buckets)this.buckets[t].destroy();this.buckets={},this.iconAtlasTexture&&this.iconAtlasTexture.destroy(),this.glyphAtlasTexture&&this.glyphAtlasTexture.destroy(),this.latestFeatureIndex=null,this.state=\"unloaded\"},st.prototype.unloadDEMData=function(){this.dem=null,this.neighboringTiles=null,this.state=\"unloaded\"},st.prototype.getBucket=function(t){return this.buckets[t.id]},st.prototype.upload=function(t){for(var e in this.buckets){var r=this.buckets[e];r.uploaded||(r.upload(t),r.uploaded=!0)}var n=t.gl;this.iconAtlasImage&&(this.iconAtlasTexture=new z(t,this.iconAtlasImage,n.RGBA),this.iconAtlasImage=null),this.glyphAtlasImage&&(this.glyphAtlasTexture=new z(t,this.glyphAtlasImage,n.ALPHA),this.glyphAtlasImage=null)},st.prototype.queryRenderedFeatures=function(t,e,r,n,i,a,o){return this.latestFeatureIndex&&this.latestFeatureIndex.rawTileData?this.latestFeatureIndex.query({queryGeometry:e,scale:r,tileSize:this.tileSize,posMatrix:o,transform:i,params:n,queryPadding:this.queryPadding*a},t):{}},st.prototype.querySourceFeatures=function(e,r){if(this.latestFeatureIndex&&this.latestFeatureIndex.rawTileData){var n=this.latestFeatureIndex.loadVTLayers(),i=r?r.sourceLayer:\"\",a=n._geojsonTileLayer||n[i];if(a)for(var o=t.default$13(r&&r.filter),s={z:this.tileID.overscaledZ,x:this.tileID.canonical.x,y:this.tileID.canonical.y},l=0;l<a.length;l++){var c=a.feature(l);if(o(new t.default$16(this.tileID.overscaledZ),c)){var u=new t.default$12(c,s.z,s.x,s.y);u.tile=s,e.push(u)}}}},st.prototype.clearMask=function(){this.segments&&(this.segments.destroy(),delete this.segments),this.maskedBoundsBuffer&&(this.maskedBoundsBuffer.destroy(),delete this.maskedBoundsBuffer),this.maskedIndexBuffer&&(this.maskedIndexBuffer.destroy(),delete this.maskedIndexBuffer)},st.prototype.setMask=function(e,r){if(!t.default$10(this.mask,e)&&(this.mask=e,this.clearMask(),!t.default$10(e,{0:!0}))){var n=new t.RasterBoundsArray,i=new t.TriangleIndexArray;this.segments=new t.default$15,this.segments.prepareSegment(0,n,i);for(var a=Object.keys(e),o=0;o<a.length;o++){var s=e[a[o]],l=t.default$8>>s.z,c=new t.default$1(s.x*l,s.y*l),u=new t.default$1(c.x+l,c.y+l),f=this.segments.prepareSegment(4,n,i);n.emplaceBack(c.x,c.y,c.x,c.y),n.emplaceBack(u.x,c.y,u.x,c.y),n.emplaceBack(c.x,u.y,c.x,u.y),n.emplaceBack(u.x,u.y,u.x,u.y);var h=f.vertexLength;i.emplaceBack(h,h+1,h+2),i.emplaceBack(h+1,h+2,h+3),f.vertexLength+=4,f.primitiveLength+=2}this.maskedBoundsBuffer=r.createVertexBuffer(n,K.members),this.maskedIndexBuffer=r.createIndexBuffer(i)}},st.prototype.hasData=function(){return\"loaded\"===this.state||\"reloading\"===this.state||\"expired\"===this.state},st.prototype.setExpiryData=function(e){var r=this.expirationTime;if(e.cacheControl){var n=t.parseCacheControl(e.cacheControl);n[\"max-age\"]&&(this.expirationTime=Date.now()+1e3*n[\"max-age\"])}else e.expires&&(this.expirationTime=new Date(e.expires).getTime());if(this.expirationTime){var i=Date.now(),a=!1;if(this.expirationTime>i)a=!1;else if(r)if(this.expirationTime<r)a=!0;else{var o=this.expirationTime-r;o?this.expirationTime=i+Math.max(o,3e4):a=!0}else a=!0;a?(this.expiredRequestCount++,this.state=\"expired\"):this.expiredRequestCount=0}},st.prototype.getExpiryTimeout=function(){if(this.expirationTime)return this.expiredRequestCount?1e3*(1<<Math.min(this.expiredRequestCount-1,31)):Math.min(this.expirationTime-(new Date).getTime(),Math.pow(2,31)-1)};var lt=function(t,e){this.max=t,this.onRemove=e,this.reset()};lt.prototype.reset=function(){for(var t in this.data)for(var e=0,r=this.data[t];e<r.length;e+=1){var n=r[e];n.timeout&&clearTimeout(n.timeout),this.onRemove(n.value)}return this.data={},this.order=[],this},lt.prototype.add=function(t,e,r){var n=this,i=t.wrapped().key;void 0===this.data[i]&&(this.data[i]=[]);var a={value:e,timeout:void 0};if(void 0!==r&&(a.timeout=setTimeout(function(){n.remove(t,a)},r)),this.data[i].push(a),this.order.push(i),this.order.length>this.max){var o=this._getAndRemoveByKey(this.order[0]);o&&this.onRemove(o)}return this},lt.prototype.has=function(t){return t.wrapped().key in this.data},lt.prototype.getAndRemove=function(t){return this.has(t)?this._getAndRemoveByKey(t.wrapped().key):null},lt.prototype._getAndRemoveByKey=function(t){var e=this.data[t].shift();return e.timeout&&clearTimeout(e.timeout),0===this.data[t].length&&delete this.data[t],this.order.splice(this.order.indexOf(t),1),e.value},lt.prototype.get=function(t){return this.has(t)?this.data[t.wrapped().key][0].value:null},lt.prototype.remove=function(t,e){if(!this.has(t))return this;var r=t.wrapped().key,n=void 0===e?0:this.data[r].indexOf(e),i=this.data[r][n];return this.data[r].splice(n,1),i.timeout&&clearTimeout(i.timeout),0===this.data[r].length&&delete this.data[r],this.onRemove(i.value),this.order.splice(this.order.indexOf(r),1),this},lt.prototype.setMaxSize=function(t){for(this.max=t;this.order.length>this.max;){var e=this._getAndRemoveByKey(this.order[0]);e&&this.onRemove(e)}return this};var ct=function(t,e,r){this.context=t;var n=t.gl;this.buffer=n.createBuffer(),this.dynamicDraw=Boolean(r),this.unbindVAO(),t.bindElementBuffer.set(this.buffer),n.bufferData(n.ELEMENT_ARRAY_BUFFER,e.arrayBuffer,this.dynamicDraw?n.DYNAMIC_DRAW:n.STATIC_DRAW),this.dynamicDraw||delete e.arrayBuffer};ct.prototype.unbindVAO=function(){this.context.extVertexArrayObject&&this.context.bindVertexArrayOES.set(null)},ct.prototype.bind=function(){this.context.bindElementBuffer.set(this.buffer)},ct.prototype.updateData=function(t){var e=this.context.gl;this.unbindVAO(),this.bind(),e.bufferSubData(e.ELEMENT_ARRAY_BUFFER,0,t.arrayBuffer)},ct.prototype.destroy=function(){var t=this.context.gl;this.buffer&&(t.deleteBuffer(this.buffer),delete this.buffer)};var ut={Int8:\"BYTE\",Uint8:\"UNSIGNED_BYTE\",Int16:\"SHORT\",Uint16:\"UNSIGNED_SHORT\",Int32:\"INT\",Uint32:\"UNSIGNED_INT\",Float32:\"FLOAT\"},ft=function(t,e,r,n){this.length=e.length,this.attributes=r,this.itemSize=e.bytesPerElement,this.dynamicDraw=n,this.context=t;var i=t.gl;this.buffer=i.createBuffer(),t.bindVertexBuffer.set(this.buffer),i.bufferData(i.ARRAY_BUFFER,e.arrayBuffer,this.dynamicDraw?i.DYNAMIC_DRAW:i.STATIC_DRAW),this.dynamicDraw||delete e.arrayBuffer};ft.prototype.bind=function(){this.context.bindVertexBuffer.set(this.buffer)},ft.prototype.updateData=function(t){var e=this.context.gl;this.bind(),e.bufferSubData(e.ARRAY_BUFFER,0,t.arrayBuffer)},ft.prototype.enableAttributes=function(t,e){for(var r=0;r<this.attributes.length;r++){var n=this.attributes[r],i=e.attributes[n.name];void 0!==i&&t.enableVertexAttribArray(i)}},ft.prototype.setVertexAttribPointers=function(t,e,r){for(var n=0;n<this.attributes.length;n++){var i=this.attributes[n],a=e.attributes[i.name];void 0!==a&&t.vertexAttribPointer(a,i.components,t[ut[i.type]],!1,this.itemSize,i.offset+this.itemSize*(r||0))}},ft.prototype.destroy=function(){var t=this.context.gl;this.buffer&&(t.deleteBuffer(this.buffer),delete this.buffer)};var ht=function(e){this.context=e,this.current=t.default$6.transparent};ht.prototype.get=function(){return this.current},ht.prototype.set=function(t){var e=this.current;t.r===e.r&&t.g===e.g&&t.b===e.b&&t.a===e.a||(this.context.gl.clearColor(t.r,t.g,t.b,t.a),this.current=t)};var pt=function(t){this.context=t,this.current=1};pt.prototype.get=function(){return this.current},pt.prototype.set=function(t){this.current!==t&&(this.context.gl.clearDepth(t),this.current=t)};var dt=function(t){this.context=t,this.current=0};dt.prototype.get=function(){return this.current},dt.prototype.set=function(t){this.current!==t&&(this.context.gl.clearStencil(t),this.current=t)};var gt=function(t){this.context=t,this.current=[!0,!0,!0,!0]};gt.prototype.get=function(){return this.current},gt.prototype.set=function(t){var e=this.current;t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]||(this.context.gl.colorMask(t[0],t[1],t[2],t[3]),this.current=t)};var vt=function(t){this.context=t,this.current=!0};vt.prototype.get=function(){return this.current},vt.prototype.set=function(t){this.current!==t&&(this.context.gl.depthMask(t),this.current=t)};var mt=function(t){this.context=t,this.current=255};mt.prototype.get=function(){return this.current},mt.prototype.set=function(t){this.current!==t&&(this.context.gl.stencilMask(t),this.current=t)};var yt=function(t){this.context=t,this.current={func:t.gl.ALWAYS,ref:0,mask:255}};yt.prototype.get=function(){return this.current},yt.prototype.set=function(t){var e=this.current;t.func===e.func&&t.ref===e.ref&&t.mask===e.mask||(this.context.gl.stencilFunc(t.func,t.ref,t.mask),this.current=t)};var xt=function(t){this.context=t;var e=this.context.gl;this.current=[e.KEEP,e.KEEP,e.KEEP]};xt.prototype.get=function(){return this.current},xt.prototype.set=function(t){var e=this.current;t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]||(this.context.gl.stencilOp(t[0],t[1],t[2]),this.current=t)};var bt=function(t){this.context=t,this.current=!1};bt.prototype.get=function(){return this.current},bt.prototype.set=function(t){if(this.current!==t){var e=this.context.gl;t?e.enable(e.STENCIL_TEST):e.disable(e.STENCIL_TEST),this.current=t}};var _t=function(t){this.context=t,this.current=[0,1]};_t.prototype.get=function(){return this.current},_t.prototype.set=function(t){var e=this.current;t[0]===e[0]&&t[1]===e[1]||(this.context.gl.depthRange(t[0],t[1]),this.current=t)};var wt=function(t){this.context=t,this.current=!1};wt.prototype.get=function(){return this.current},wt.prototype.set=function(t){if(this.current!==t){var e=this.context.gl;t?e.enable(e.DEPTH_TEST):e.disable(e.DEPTH_TEST),this.current=t}};var kt=function(t){this.context=t,this.current=t.gl.LESS};kt.prototype.get=function(){return this.current},kt.prototype.set=function(t){this.current!==t&&(this.context.gl.depthFunc(t),this.current=t)};var Mt=function(t){this.context=t,this.current=!1};Mt.prototype.get=function(){return this.current},Mt.prototype.set=function(t){if(this.current!==t){var e=this.context.gl;t?e.enable(e.BLEND):e.disable(e.BLEND),this.current=t}};var At=function(t){this.context=t;var e=this.context.gl;this.current=[e.ONE,e.ZERO]};At.prototype.get=function(){return this.current},At.prototype.set=function(t){var e=this.current;t[0]===e[0]&&t[1]===e[1]||(this.context.gl.blendFunc(t[0],t[1]),this.current=t)};var Tt=function(e){this.context=e,this.current=t.default$6.transparent};Tt.prototype.get=function(){return this.current},Tt.prototype.set=function(t){var e=this.current;t.r===e.r&&t.g===e.g&&t.b===e.b&&t.a===e.a||(this.context.gl.blendColor(t.r,t.g,t.b,t.a),this.current=t)};var St=function(t){this.context=t,this.current=null};St.prototype.get=function(){return this.current},St.prototype.set=function(t){this.current!==t&&(this.context.gl.useProgram(t),this.current=t)};var Et=function(t){this.context=t,this.current=1};Et.prototype.get=function(){return this.current},Et.prototype.set=function(e){var r=this.context.lineWidthRange,n=t.clamp(e,r[0],r[1]);this.current!==n&&(this.context.gl.lineWidth(n),this.current=e)};var Ct=function(t){this.context=t,this.current=t.gl.TEXTURE0};Ct.prototype.get=function(){return this.current},Ct.prototype.set=function(t){this.current!==t&&(this.context.gl.activeTexture(t),this.current=t)};var Lt=function(t){this.context=t;var e=this.context.gl;this.current=[0,0,e.drawingBufferWidth,e.drawingBufferHeight]};Lt.prototype.get=function(){return this.current},Lt.prototype.set=function(t){var e=this.current;t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]||(this.context.gl.viewport(t[0],t[1],t[2],t[3]),this.current=t)};var zt=function(t){this.context=t,this.current=null};zt.prototype.get=function(){return this.current},zt.prototype.set=function(t){if(this.current!==t){var e=this.context.gl;e.bindFramebuffer(e.FRAMEBUFFER,t),this.current=t}};var Ot=function(t){this.context=t,this.current=null};Ot.prototype.get=function(){return this.current},Ot.prototype.set=function(t){if(this.current!==t){var e=this.context.gl;e.bindRenderbuffer(e.RENDERBUFFER,t),this.current=t}};var It=function(t){this.context=t,this.current=null};It.prototype.get=function(){return this.current},It.prototype.set=function(t){if(this.current!==t){var e=this.context.gl;e.bindTexture(e.TEXTURE_2D,t),this.current=t}};var Pt=function(t){this.context=t,this.current=null};Pt.prototype.get=function(){return this.current},Pt.prototype.set=function(t){if(this.current!==t){var e=this.context.gl;e.bindBuffer(e.ARRAY_BUFFER,t),this.current=t}};var Dt=function(t){this.context=t,this.current=null};Dt.prototype.get=function(){return this.current},Dt.prototype.set=function(t){var e=this.context.gl;e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,t),this.current=t};var Rt=function(t){this.context=t,this.current=null};Rt.prototype.get=function(){return this.current},Rt.prototype.set=function(t){this.current!==t&&this.context.extVertexArrayObject&&(this.context.extVertexArrayObject.bindVertexArrayOES(t),this.current=t)};var Bt=function(t){this.context=t,this.current=4};Bt.prototype.get=function(){return this.current},Bt.prototype.set=function(t){if(this.current!==t){var e=this.context.gl;e.pixelStorei(e.UNPACK_ALIGNMENT,t),this.current=t}};var Ft=function(t){this.context=t,this.current=!1};Ft.prototype.get=function(){return this.current},Ft.prototype.set=function(t){if(this.current!==t){var e=this.context.gl;e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,t),this.current=t}};var Nt=function(t,e){this.context=t,this.current=null,this.parent=e};Nt.prototype.get=function(){return this.current};var jt=function(t){function e(e,r){t.call(this,e,r),this.dirty=!1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.set=function(t){if(this.dirty||this.current!==t){var e=this.context.gl;this.context.bindFramebuffer.set(this.parent),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,t,0),this.current=t,this.dirty=!1}},e.prototype.setDirty=function(){this.dirty=!0},e}(Nt),Vt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.set=function(t){if(this.current!==t){var e=this.context.gl;this.context.bindFramebuffer.set(this.parent),e.framebufferRenderbuffer(e.FRAMEBUFFER,e.DEPTH_ATTACHMENT,e.RENDERBUFFER,t),this.current=t}},e}(Nt),Ut=function(t,e,r){this.context=t,this.width=e,this.height=r;var n=t.gl,i=this.framebuffer=n.createFramebuffer();this.colorAttachment=new jt(t,i),this.depthAttachment=new Vt(t,i)};Ut.prototype.destroy=function(){var t=this.context.gl,e=this.colorAttachment.get();e&&t.deleteTexture(e);var r=this.depthAttachment.get();r&&t.deleteRenderbuffer(r),t.deleteFramebuffer(this.framebuffer)};var qt=function(t,e,r){this.func=t,this.mask=e,this.range=r};qt.ReadOnly=!1,qt.ReadWrite=!0,qt.disabled=new qt(519,qt.ReadOnly,[0,1]);var Ht=function(t,e,r,n,i,a){this.test=t,this.ref=e,this.mask=r,this.fail=n,this.depthFail=i,this.pass=a};Ht.disabled=new Ht({func:519,mask:0},0,0,7680,7680,7680);var Gt=function(t,e,r){this.blendFunction=t,this.blendColor=e,this.mask=r};Gt.disabled=new Gt(Gt.Replace=[1,0],t.default$6.transparent,[!1,!1,!1,!1]),Gt.unblended=new Gt(Gt.Replace,t.default$6.transparent,[!0,!0,!0,!0]),Gt.alphaBlended=new Gt([1,771],t.default$6.transparent,[!0,!0,!0,!0]);var Wt=function(t){this.gl=t,this.extVertexArrayObject=this.gl.getExtension(\"OES_vertex_array_object\"),this.lineWidthRange=t.getParameter(t.ALIASED_LINE_WIDTH_RANGE),this.clearColor=new ht(this),this.clearDepth=new pt(this),this.clearStencil=new dt(this),this.colorMask=new gt(this),this.depthMask=new vt(this),this.stencilMask=new mt(this),this.stencilFunc=new yt(this),this.stencilOp=new xt(this),this.stencilTest=new bt(this),this.depthRange=new _t(this),this.depthTest=new wt(this),this.depthFunc=new kt(this),this.blend=new Mt(this),this.blendFunc=new At(this),this.blendColor=new Tt(this),this.program=new St(this),this.lineWidth=new Et(this),this.activeTexture=new Ct(this),this.viewport=new Lt(this),this.bindFramebuffer=new zt(this),this.bindRenderbuffer=new Ot(this),this.bindTexture=new It(this),this.bindVertexBuffer=new Pt(this),this.bindElementBuffer=new Dt(this),this.bindVertexArrayOES=this.extVertexArrayObject&&new Rt(this),this.pixelStoreUnpack=new Bt(this),this.pixelStoreUnpackPremultiplyAlpha=new Ft(this),this.extTextureFilterAnisotropic=t.getExtension(\"EXT_texture_filter_anisotropic\")||t.getExtension(\"MOZ_EXT_texture_filter_anisotropic\")||t.getExtension(\"WEBKIT_EXT_texture_filter_anisotropic\"),this.extTextureFilterAnisotropic&&(this.extTextureFilterAnisotropicMax=t.getParameter(this.extTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT)),this.extTextureHalfFloat=t.getExtension(\"OES_texture_half_float\"),this.extTextureHalfFloat&&t.getExtension(\"OES_texture_half_float_linear\")};Wt.prototype.createIndexBuffer=function(t,e){return new ct(this,t,e)},Wt.prototype.createVertexBuffer=function(t,e,r){return new ft(this,t,e,r)},Wt.prototype.createRenderbuffer=function(t,e,r){var n=this.gl,i=n.createRenderbuffer();return this.bindRenderbuffer.set(i),n.renderbufferStorage(n.RENDERBUFFER,t,e,r),this.bindRenderbuffer.set(null),i},Wt.prototype.createFramebuffer=function(t,e){return new Ut(this,t,e)},Wt.prototype.clear=function(t){var e=t.color,r=t.depth,n=this.gl,i=0;e&&(i|=n.COLOR_BUFFER_BIT,this.clearColor.set(e),this.colorMask.set([!0,!0,!0,!0])),void 0!==r&&(i|=n.DEPTH_BUFFER_BIT,this.clearDepth.set(r),this.depthMask.set(!0)),n.clear(i)},Wt.prototype.setDepthMode=function(t){t.func!==this.gl.ALWAYS||t.mask?(this.depthTest.set(!0),this.depthFunc.set(t.func),this.depthMask.set(t.mask),this.depthRange.set(t.range)):this.depthTest.set(!1)},Wt.prototype.setStencilMode=function(t){t.test.func!==this.gl.ALWAYS||t.mask?(this.stencilTest.set(!0),this.stencilMask.set(t.mask),this.stencilOp.set([t.fail,t.depthFail,t.pass]),this.stencilFunc.set({func:t.test.func,ref:t.ref,mask:t.test.mask})):this.stencilTest.set(!1)},Wt.prototype.setColorMode=function(e){t.default$10(e.blendFunction,Gt.Replace)?this.blend.set(!1):(this.blend.set(!0),this.blendFunc.set(e.blendFunction),this.blendColor.set(e.blendColor)),this.colorMask.set(e.mask)};var Yt=function(e){function r(t,r,n){var i=this;e.call(this),this.id=t,this.dispatcher=n,this.on(\"data\",function(t){\"source\"===t.dataType&&\"metadata\"===t.sourceDataType&&(i._sourceLoaded=!0),i._sourceLoaded&&!i._paused&&\"source\"===t.dataType&&\"content\"===t.sourceDataType&&(i.reload(),i.transform&&i.update(i.transform))}),this.on(\"error\",function(){i._sourceErrored=!0}),this._source=it(t,r,n,this),this._tiles={},this._cache=new lt(0,this._unloadTile.bind(this)),this._timers={},this._cacheTimers={},this._maxTileCacheSize=null,this._isIdRenderable=this._isIdRenderable.bind(this),this._coveredTiles={}}return e&&(r.__proto__=e),r.prototype=Object.create(e&&e.prototype),r.prototype.constructor=r,r.prototype.onAdd=function(t){this.map=t,this._maxTileCacheSize=t?t._maxTileCacheSize:null,this._source&&this._source.onAdd&&this._source.onAdd(t)},r.prototype.onRemove=function(t){this._source&&this._source.onRemove&&this._source.onRemove(t)},r.prototype.loaded=function(){if(this._sourceErrored)return!0;if(!this._sourceLoaded)return!1;for(var t in this._tiles){var e=this._tiles[t];if(\"loaded\"!==e.state&&\"errored\"!==e.state)return!1}return!0},r.prototype.getSource=function(){return this._source},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){if(this._paused){var t=this._shouldReloadOnResume;this._paused=!1,this._shouldReloadOnResume=!1,t&&this.reload(),this.transform&&this.update(this.transform)}},r.prototype._loadTile=function(t,e){return this._source.loadTile(t,e)},r.prototype._unloadTile=function(t){if(this._source.unloadTile)return this._source.unloadTile(t,function(){})},r.prototype._abortTile=function(t){if(this._source.abortTile)return this._source.abortTile(t,function(){})},r.prototype.serialize=function(){return this._source.serialize()},r.prototype.prepare=function(t){for(var e in this._source.prepare&&this._source.prepare(),this._tiles)this._tiles[e].upload(t)},r.prototype.getIds=function(){var e=this;return Object.keys(this._tiles).map(Number).sort(function(r,n){var i=e._tiles[r].tileID,a=e._tiles[n].tileID,o=new t.default$1(i.canonical.x,i.canonical.y).rotate(e.transform.angle),s=new t.default$1(a.canonical.x,a.canonical.y).rotate(e.transform.angle);return i.overscaledZ-a.overscaledZ||s.y-o.y||s.x-o.x})},r.prototype.getRenderableIds=function(){return this.getIds().filter(this._isIdRenderable)},r.prototype.hasRenderableParent=function(t){var e=this.findLoadedParent(t,0,{});return!!e&&this._isIdRenderable(e.tileID.key)},r.prototype._isIdRenderable=function(t){return this._tiles[t]&&this._tiles[t].hasData()&&!this._coveredTiles[t]},r.prototype.reload=function(){if(this._paused)this._shouldReloadOnResume=!0;else for(var t in this._cache.reset(),this._tiles)this._reloadTile(t,\"reloading\")},r.prototype._reloadTile=function(t,e){var r=this._tiles[t];r&&(\"loading\"!==r.state&&(r.state=e),this._loadTile(r,this._tileLoaded.bind(this,r,t,e)))},r.prototype._tileLoaded=function(e,r,n,i){if(i)return e.state=\"errored\",void(404!==i.status?this._source.fire(new t.ErrorEvent(i,{tile:e})):this.update(this.transform));e.timeAdded=a.now(),\"expired\"===n&&(e.refreshedUponExpiration=!0),this._setTileReloadTimer(r,e),\"raster-dem\"===this.getSource().type&&e.dem&&this._backfillDEM(e),this._source.fire(new t.Event(\"data\",{dataType:\"source\",tile:e,coord:e.tileID})),this.map&&(this.map.painter.tileExtentVAO.vao=null)},r.prototype._backfillDEM=function(t){for(var e=this.getRenderableIds(),r=0;r<e.length;r++){var n=e[r];if(t.neighboringTiles&&t.neighboringTiles[n]){var i=this.getTileByID(n);a(t,i),a(i,t)}}function a(t,e){t.needsHillshadePrepare=!0;var r=e.tileID.canonical.x-t.tileID.canonical.x,n=e.tileID.canonical.y-t.tileID.canonical.y,i=Math.pow(2,t.tileID.canonical.z),a=e.tileID.key;0===r&&0===n||Math.abs(n)>1||(Math.abs(r)>1&&(1===Math.abs(r+i)?r+=i:1===Math.abs(r-i)&&(r-=i)),e.dem&&t.dem&&(t.dem.backfillBorder(e.dem,r,n),t.neighboringTiles&&t.neighboringTiles[a]&&(t.neighboringTiles[a].backfilled=!0)))}},r.prototype.getTile=function(t){return this.getTileByID(t.key)},r.prototype.getTileByID=function(t){return this._tiles[t]},r.prototype.getZoom=function(t){return t.zoom+t.scaleZoom(t.tileSize/this._source.tileSize)},r.prototype._findLoadedChildren=function(t,e,r){var n=!1;for(var i in this._tiles){var a=this._tiles[i];if(!(r[i]||!a.hasData()||a.tileID.overscaledZ<=t.overscaledZ||a.tileID.overscaledZ>e)){var o=Math.pow(2,a.tileID.canonical.z-t.canonical.z);if(Math.floor(a.tileID.canonical.x/o)===t.canonical.x&&Math.floor(a.tileID.canonical.y/o)===t.canonical.y)for(r[i]=a.tileID,n=!0;a&&a.tileID.overscaledZ-1>t.overscaledZ;){var s=a.tileID.scaledTo(a.tileID.overscaledZ-1);if(!s)break;(a=this._tiles[s.key])&&a.hasData()&&(delete r[i],r[s.key]=s)}}}return n},r.prototype.findLoadedParent=function(t,e,r){for(var n=t.overscaledZ-1;n>=e;n--){var i=t.scaledTo(n);if(!i)return;var a=String(i.key),o=this._tiles[a];if(o&&o.hasData())return r[a]=i,o;if(this._cache.has(i))return r[a]=i,this._cache.get(i)}},r.prototype.updateCacheSize=function(t){var e=(Math.ceil(t.width/this._source.tileSize)+1)*(Math.ceil(t.height/this._source.tileSize)+1),r=Math.floor(5*e),n=\"number\"==typeof this._maxTileCacheSize?Math.min(this._maxTileCacheSize,r):r;this._cache.setMaxSize(n)},r.prototype.handleWrapJump=function(t){var e=(t-(void 0===this._prevLng?t:this._prevLng))/360,r=Math.round(e);if(this._prevLng=t,r){var n={};for(var i in this._tiles){var a=this._tiles[i];a.tileID=a.tileID.unwrapTo(a.tileID.wrap+r),n[a.tileID.key]=a}for(var o in this._tiles=n,this._timers)clearTimeout(this._timers[o]),delete this._timers[o];for(var s in this._tiles){var l=this._tiles[s];this._setTileReloadTimer(s,l)}}},r.prototype.update=function(e){var n=this;if(this.transform=e,this._sourceLoaded&&!this._paused){var i;this.updateCacheSize(e),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used?this._source.tileID?i=e.getVisibleUnwrappedCoordinates(this._source.tileID).map(function(e){return new t.OverscaledTileID(e.canonical.z,e.wrap,e.canonical.z,e.canonical.x,e.canonical.y)}):(i=e.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}),this._source.hasTile&&(i=i.filter(function(t){return n._source.hasTile(t)}))):i=[];var o,s=(this._source.roundZoom?Math.round:Math.floor)(this.getZoom(e)),l=Math.max(s-r.maxOverzooming,this._source.minzoom),c=Math.max(s+r.maxUnderzooming,this._source.minzoom),u=this._updateRetainedTiles(i,s),f={};if(Zt(this._source.type))for(var h=Object.keys(u),p=0;p<h.length;p++){var d=h[p],g=u[d],v=n._tiles[d];if(v&&(void 0===v.fadeEndTime||v.fadeEndTime>=a.now())){n._findLoadedChildren(g,c,u)&&(u[d]=g);var m=n.findLoadedParent(g,l,f);m&&n._addTile(m.tileID)}}for(o in f)u[o]||(n._coveredTiles[o]=!0);for(o in f)u[o]=f[o];for(var y=t.keysDifference(this._tiles,u),x=0;x<y.length;x++)n._removeTile(y[x])}},r.prototype._updateRetainedTiles=function(t,e){for(var n={},i={},a=Math.max(e-r.maxOverzooming,this._source.minzoom),o=Math.max(e+r.maxUnderzooming,this._source.minzoom),s=0;s<t.length;s++){var l=t[s],c=this._addTile(l),u=!1;if(c.hasData())n[l.key]=l;else{u=c.wasRequested(),n[l.key]=l;var f=!0;if(e+1>this._source.maxzoom){var h=l.children(this._source.maxzoom)[0],p=this.getTile(h);p&&p.hasData()?n[h.key]=h:f=!1}else{this._findLoadedChildren(l,o,n);for(var d=l.children(this._source.maxzoom),g=0;g<d.length;g++)if(!n[d[g].key]){f=!1;break}}if(!f)for(var v=l.overscaledZ-1;v>=a;--v){var m=l.scaledTo(v);if(i[m.key])break;if(i[m.key]=!0,!(c=this.getTile(m))&&u&&(c=this._addTile(m)),c&&(n[m.key]=m,u=c.wasRequested(),c.hasData()))break}}}return n},r.prototype._addTile=function(e){var r=this._tiles[e.key];if(r)return r;(r=this._cache.getAndRemove(e))&&(this._setTileReloadTimer(e.key,r),r.tileID=e);var n=Boolean(r);return n||(r=new st(e,this._source.tileSize*e.overscaleFactor()),this._loadTile(r,this._tileLoaded.bind(this,r,e.key,r.state))),r?(r.uses++,this._tiles[e.key]=r,n||this._source.fire(new t.Event(\"dataloading\",{tile:r,coord:r.tileID,dataType:\"source\"})),r):null},r.prototype._setTileReloadTimer=function(t,e){var r=this;t in this._timers&&(clearTimeout(this._timers[t]),delete this._timers[t]);var n=e.getExpiryTimeout();n&&(this._timers[t]=setTimeout(function(){r._reloadTile(t,\"expired\"),delete r._timers[t]},n))},r.prototype._removeTile=function(t){var e=this._tiles[t];e&&(e.uses--,delete this._tiles[t],this._timers[t]&&(clearTimeout(this._timers[t]),delete this._timers[t]),e.uses>0||(e.hasData()?this._cache.add(e.tileID,e,e.getExpiryTimeout()):(e.aborted=!0,this._abortTile(e),this._unloadTile(e))))},r.prototype.clearTiles=function(){for(var t in this._shouldReloadOnResume=!1,this._paused=!1,this._tiles)this._removeTile(t);this._cache.reset()},r.prototype.tilesIn=function(e,r){for(var n=[],i=this.getIds(),a=1/0,o=1/0,s=-1/0,l=-1/0,c=e[0].zoom,u=0;u<e.length;u++){var f=e[u];a=Math.min(a,f.column),o=Math.min(o,f.row),s=Math.max(s,f.column),l=Math.max(l,f.row)}for(var h=0;h<i.length;h++){var p=this._tiles[i[h]],d=p.tileID,g=Math.pow(2,this.transform.zoom-p.tileID.overscaledZ),v=r*p.queryPadding*t.default$8/p.tileSize/g,m=[Xt(d,new t.default$17(a,o,c)),Xt(d,new t.default$17(s,l,c))];if(m[0].x-v<t.default$8&&m[0].y-v<t.default$8&&m[1].x+v>=0&&m[1].y+v>=0){for(var y=[],x=0;x<e.length;x++)y.push(Xt(d,e[x]));n.push({tile:p,tileID:d,queryGeometry:[y],scale:g})}}return n},r.prototype.getVisibleCoordinates=function(){for(var t=this,e=this.getRenderableIds().map(function(e){return t._tiles[e].tileID}),r=0,n=e;r<n.length;r+=1){var i=n[r];i.posMatrix=t.transform.calculatePosMatrix(i.toUnwrapped())}return e},r.prototype.hasTransition=function(){if(this._source.hasTransition())return!0;if(Zt(this._source.type))for(var t in this._tiles){var e=this._tiles[t];if(void 0!==e.fadeEndTime&&e.fadeEndTime>=a.now())return!0}return!1},r}(t.Evented);function Xt(e,r){var n=r.zoomTo(e.canonical.z);return new t.default$1((n.column-(e.canonical.x+e.wrap*Math.pow(2,e.canonical.z)))*t.default$8,(n.row-e.canonical.y)*t.default$8)}function Zt(t){return\"raster\"===t||\"image\"===t||\"video\"===t}function $t(){return new t.default.Worker(En.workerUrl)}Yt.maxOverzooming=10,Yt.maxUnderzooming=3;var Jt,Kt=function(){this.active={}};function Qt(e,r){var n={};for(var i in e)\"ref\"!==i&&(n[i]=e[i]);return t.default$18.forEach(function(t){t in r&&(n[t]=r[t])}),n}function te(t){t=t.slice();for(var e=Object.create(null),r=0;r<t.length;r++)e[t[r].id]=t[r];for(var n=0;n<t.length;n++)\"ref\"in t[n]&&(t[n]=Qt(t[n],e[t[n].ref]));return t}Kt.prototype.acquire=function(t){if(!this.workers){var e=En.workerCount;for(this.workers=[];this.workers.length<e;)this.workers.push(new $t)}return this.active[t]=!0,this.workers.slice()},Kt.prototype.release=function(t){delete this.active[t],0===Object.keys(this.active).length&&(this.workers.forEach(function(t){t.terminate()}),this.workers=null)};var ee={setStyle:\"setStyle\",addLayer:\"addLayer\",removeLayer:\"removeLayer\",setPaintProperty:\"setPaintProperty\",setLayoutProperty:\"setLayoutProperty\",setFilter:\"setFilter\",addSource:\"addSource\",removeSource:\"removeSource\",setGeoJSONSourceData:\"setGeoJSONSourceData\",setLayerZoomRange:\"setLayerZoomRange\",setLayerProperty:\"setLayerProperty\",setCenter:\"setCenter\",setZoom:\"setZoom\",setBearing:\"setBearing\",setPitch:\"setPitch\",setSprite:\"setSprite\",setGlyphs:\"setGlyphs\",setTransition:\"setTransition\",setLight:\"setLight\"};function re(t,e,r){r.push({command:ee.addSource,args:[t,e[t]]})}function ne(t,e,r){e.push({command:ee.removeSource,args:[t]}),r[t]=!0}function ie(t,e,r,n){ne(t,r,n),re(t,e,r)}function ae(e,r,n){var i;for(i in e[n])if(e[n].hasOwnProperty(i)&&\"data\"!==i&&!t.default$10(e[n][i],r[n][i]))return!1;for(i in r[n])if(r[n].hasOwnProperty(i)&&\"data\"!==i&&!t.default$10(e[n][i],r[n][i]))return!1;return!0}function oe(e,r,n,i,a,o){var s;for(s in r=r||{},e=e||{})e.hasOwnProperty(s)&&(t.default$10(e[s],r[s])||n.push({command:o,args:[i,s,r[s],a]}));for(s in r)r.hasOwnProperty(s)&&!e.hasOwnProperty(s)&&(t.default$10(e[s],r[s])||n.push({command:o,args:[i,s,r[s],a]}))}function se(t){return t.id}function le(t,e){return t[e.id]=e,t}var ce=function(t,e,r){var n=this.boxCells=[],i=this.circleCells=[];this.xCellCount=Math.ceil(t/r),this.yCellCount=Math.ceil(e/r);for(var a=0;a<this.xCellCount*this.yCellCount;a++)n.push([]),i.push([]);this.circleKeys=[],this.boxKeys=[],this.bboxes=[],this.circles=[],this.width=t,this.height=e,this.xScale=this.xCellCount/t,this.yScale=this.yCellCount/e,this.boxUid=0,this.circleUid=0};ce.prototype.keysLength=function(){return this.boxKeys.length+this.circleKeys.length},ce.prototype.insert=function(t,e,r,n,i){this._forEachCell(e,r,n,i,this._insertBoxCell,this.boxUid++),this.boxKeys.push(t),this.bboxes.push(e),this.bboxes.push(r),this.bboxes.push(n),this.bboxes.push(i)},ce.prototype.insertCircle=function(t,e,r,n){this._forEachCell(e-n,r-n,e+n,r+n,this._insertCircleCell,this.circleUid++),this.circleKeys.push(t),this.circles.push(e),this.circles.push(r),this.circles.push(n)},ce.prototype._insertBoxCell=function(t,e,r,n,i,a){this.boxCells[i].push(a)},ce.prototype._insertCircleCell=function(t,e,r,n,i,a){this.circleCells[i].push(a)},ce.prototype._query=function(t,e,r,n,i){if(r<0||t>this.width||n<0||e>this.height)return!i&&[];var a=[];if(t<=0&&e<=0&&this.width<=r&&this.height<=n){if(i)return!0;for(var o=0;o<this.boxKeys.length;o++)a.push({key:this.boxKeys[o],x1:this.bboxes[4*o],y1:this.bboxes[4*o+1],x2:this.bboxes[4*o+2],y2:this.bboxes[4*o+3]});for(var s=0;s<this.circleKeys.length;s++){var l=this.circles[3*s],c=this.circles[3*s+1],u=this.circles[3*s+2];a.push({key:this.circleKeys[s],x1:l-u,y1:c-u,x2:l+u,y2:c+u})}}else{var f={hitTest:i,seenUids:{box:{},circle:{}}};this._forEachCell(t,e,r,n,this._queryCell,a,f)}return i?a.length>0:a},ce.prototype._queryCircle=function(t,e,r,n){var i=t-r,a=t+r,o=e-r,s=e+r;if(a<0||i>this.width||s<0||o>this.height)return!n&&[];var l=[],c={hitTest:n,circle:{x:t,y:e,radius:r},seenUids:{box:{},circle:{}}};return this._forEachCell(i,o,a,s,this._queryCellCircle,l,c),n?l.length>0:l},ce.prototype.query=function(t,e,r,n){return this._query(t,e,r,n,!1)},ce.prototype.hitTest=function(t,e,r,n){return this._query(t,e,r,n,!0)},ce.prototype.hitTestCircle=function(t,e,r){return this._queryCircle(t,e,r,!0)},ce.prototype._queryCell=function(t,e,r,n,i,a,o){var s=o.seenUids,l=this.boxCells[i];if(null!==l)for(var c=this.bboxes,u=0,f=l;u<f.length;u+=1){var h=f[u];if(!s.box[h]){s.box[h]=!0;var p=4*h;if(t<=c[p+2]&&e<=c[p+3]&&r>=c[p+0]&&n>=c[p+1]){if(o.hitTest)return a.push(!0),!0;a.push({key:this.boxKeys[h],x1:c[p],y1:c[p+1],x2:c[p+2],y2:c[p+3]})}}}var d=this.circleCells[i];if(null!==d)for(var g=this.circles,v=0,m=d;v<m.length;v+=1){var y=m[v];if(!s.circle[y]){s.circle[y]=!0;var x=3*y;if(this._circleAndRectCollide(g[x],g[x+1],g[x+2],t,e,r,n)){if(o.hitTest)return a.push(!0),!0;var b=g[x],_=g[x+1],w=g[x+2];a.push({key:this.circleKeys[y],x1:b-w,y1:_-w,x2:b+w,y2:_+w})}}}},ce.prototype._queryCellCircle=function(t,e,r,n,i,a,o){var s=o.circle,l=o.seenUids,c=this.boxCells[i];if(null!==c)for(var u=this.bboxes,f=0,h=c;f<h.length;f+=1){var p=h[f];if(!l.box[p]){l.box[p]=!0;var d=4*p;if(this._circleAndRectCollide(s.x,s.y,s.radius,u[d+0],u[d+1],u[d+2],u[d+3]))return a.push(!0),!0}}var g=this.circleCells[i];if(null!==g)for(var v=this.circles,m=0,y=g;m<y.length;m+=1){var x=y[m];if(!l.circle[x]){l.circle[x]=!0;var b=3*x;if(this._circlesCollide(v[b],v[b+1],v[b+2],s.x,s.y,s.radius))return a.push(!0),!0}}},ce.prototype._forEachCell=function(t,e,r,n,i,a,o){for(var s=this._convertToXCellCoord(t),l=this._convertToYCellCoord(e),c=this._convertToXCellCoord(r),u=this._convertToYCellCoord(n),f=s;f<=c;f++)for(var h=l;h<=u;h++){var p=this.xCellCount*h+f;if(i.call(this,t,e,r,n,p,a,o))return}},ce.prototype._convertToXCellCoord=function(t){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(t*this.xScale)))},ce.prototype._convertToYCellCoord=function(t){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(t*this.yScale)))},ce.prototype._circlesCollide=function(t,e,r,n,i,a){var o=n-t,s=i-e,l=r+a;return l*l>o*o+s*s},ce.prototype._circleAndRectCollide=function(t,e,r,n,i,a,o){var s=(a-n)/2,l=Math.abs(t-(n+s));if(l>s+r)return!1;var c=(o-i)/2,u=Math.abs(e-(i+c));if(u>c+r)return!1;if(l<=s||u<=c)return!0;var f=l-s,h=u-c;return f*f+h*h<=r*r};var ue=t.default$19.layout;function fe(e,r,n,i,a){var o=t.mat4.identity(new Float32Array(16));return r?(t.mat4.identity(o),t.mat4.scale(o,o,[1/a,1/a,1]),n||t.mat4.rotateZ(o,o,i.angle)):(t.mat4.scale(o,o,[i.width/2,-i.height/2,1]),t.mat4.translate(o,o,[1,-1,0]),t.mat4.multiply(o,o,e)),o}function he(e,r,n,i,a){var o=t.mat4.identity(new Float32Array(16));return r?(t.mat4.multiply(o,o,e),t.mat4.scale(o,o,[a,a,1]),n||t.mat4.rotateZ(o,o,-i.angle)):(t.mat4.scale(o,o,[1,-1,1]),t.mat4.translate(o,o,[-1,-1,0]),t.mat4.scale(o,o,[2/i.width,2/i.height,1])),o}function pe(e,r){var n=[e.x,e.y,0,1];ke(n,n,r);var i=n[3];return{point:new t.default$1(n[0]/i,n[1]/i),signedDistanceFromCamera:i}}function de(t,e){var r=t[0]/t[3],n=t[1]/t[3];return r>=-e[0]&&r<=e[0]&&n>=-e[1]&&n<=e[1]}function ge(e,r,n,i,a,o,s,l){var c=i?e.textSizeData:e.iconSizeData,u=t.evaluateSizeForZoom(c,n.transform.zoom,ue.properties[i?\"text-size\":\"icon-size\"]),f=[256/n.width*2+1,256/n.height*2+1],h=i?e.text.dynamicLayoutVertexArray:e.icon.dynamicLayoutVertexArray;h.clear();for(var p=e.lineVertexArray,d=i?e.text.placedSymbolArray:e.icon.placedSymbolArray,g=n.transform.width/n.transform.height,v=!1,m=0;m<d.length;m++){var y=d.get(m);if(y.hidden||y.writingMode===t.WritingMode.vertical&&!v)we(y.numGlyphs,h);else{v=!1;var x=[y.anchorX,y.anchorY,0,1];if(t.vec4.transformMat4(x,x,r),de(x,f)){var b=.5+x[3]/n.transform.cameraToCenterDistance*.5,_=t.evaluateSizeForFeature(c,u,y),w=s?_*b:_/b,k=new t.default$1(y.anchorX,y.anchorY),M=pe(k,a).point,A={},T=ye(y,w,!1,l,r,a,o,e.glyphOffsetArray,p,h,M,k,A,g);v=T.useVertical,(T.notEnoughRoom||v||T.needsFlipping&&ye(y,w,!0,l,r,a,o,e.glyphOffsetArray,p,h,M,k,A,g).notEnoughRoom)&&we(y.numGlyphs,h)}else we(y.numGlyphs,h)}}i?e.text.dynamicLayoutVertexBuffer.updateData(h):e.icon.dynamicLayoutVertexBuffer.updateData(h)}function ve(t,e,r,n,i,a,o,s,l,c,u,f){var h=s.glyphStartIndex+s.numGlyphs,p=s.lineStartIndex,d=s.lineStartIndex+s.lineLength,g=e.getoffsetX(s.glyphStartIndex),v=e.getoffsetX(h-1),m=be(t*g,r,n,i,a,o,s.segment,p,d,l,c,u,f);if(!m)return null;var y=be(t*v,r,n,i,a,o,s.segment,p,d,l,c,u,f);return y?{first:m,last:y}:null}function me(e,r,n,i){return e===t.WritingMode.horizontal&&Math.abs(n.y-r.y)>Math.abs(n.x-r.x)*i?{useVertical:!0}:(e===t.WritingMode.vertical?r.y<n.y:r.x>n.x)?{needsFlipping:!0}:null}function ye(e,r,n,i,a,o,s,l,c,u,f,h,p,d){var g,v=r/24,m=e.lineOffsetX*r,y=e.lineOffsetY*r;if(e.numGlyphs>1){var x=e.glyphStartIndex+e.numGlyphs,b=e.lineStartIndex,_=e.lineStartIndex+e.lineLength,w=ve(v,l,m,y,n,f,h,e,c,o,p,!1);if(!w)return{notEnoughRoom:!0};var k=pe(w.first.point,s).point,M=pe(w.last.point,s).point;if(i&&!n){var A=me(e.writingMode,k,M,d);if(A)return A}g=[w.first];for(var T=e.glyphStartIndex+1;T<x-1;T++)g.push(be(v*l.getoffsetX(T),m,y,n,f,h,e.segment,b,_,c,o,p,!1));g.push(w.last)}else{if(i&&!n){var S=pe(h,a).point,E=e.lineStartIndex+e.segment+1,C=new t.default$1(c.getx(E),c.gety(E)),L=pe(C,a),z=L.signedDistanceFromCamera>0?L.point:xe(h,C,S,1,a),O=me(e.writingMode,S,z,d);if(O)return O}var I=be(v*l.getoffsetX(e.glyphStartIndex),m,y,n,f,h,e.segment,e.lineStartIndex,e.lineStartIndex+e.lineLength,c,o,p,!1);if(!I)return{notEnoughRoom:!0};g=[I]}for(var P=0,D=g;P<D.length;P+=1){var R=D[P];t.addDynamicAttributes(u,R.point,R.angle)}return{}}function xe(t,e,r,n,i){var a=pe(t.add(t.sub(e)._unit()),i).point,o=r.sub(a);return r.add(o._mult(n/o.mag()))}function be(e,r,n,i,a,o,s,l,c,u,f,h,p){var d=i?e-r:e+r,g=d>0?1:-1,v=0;i&&(g*=-1,v=Math.PI),g<0&&(v+=Math.PI);for(var m=g>0?l+s:l+s+1,y=m,x=a,b=a,_=0,w=0,k=Math.abs(d);_+w<=k;){if((m+=g)<l||m>=c)return null;if(b=x,void 0===(x=h[m])){var M=new t.default$1(u.getx(m),u.gety(m)),A=pe(M,f);if(A.signedDistanceFromCamera>0)x=h[m]=A.point;else{var T=m-g;x=xe(0===_?o:new t.default$1(u.getx(T),u.gety(T)),M,b,k-_+1,f)}}_+=w,w=b.dist(x)}var S=(k-_)/w,E=x.sub(b),C=E.mult(S)._add(b);return C._add(E._unit()._perp()._mult(n*g)),{point:C,angle:v+Math.atan2(x.y-b.y,x.x-b.x),tileDistance:p?{prevTileDistance:m-g===y?0:u.gettileUnitDistanceFromAnchor(m-g),lastSegmentViewportDistance:k-_}:null}}var _e=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function we(t,e){for(var r=0;r<t;r++){var n=e.length;e.resize(n+4),e.float32.set(_e,3*n)}}function ke(t,e,r){var n=e[0],i=e[1];return t[0]=r[0]*n+r[4]*i+r[12],t[1]=r[1]*n+r[5]*i+r[13],t[3]=r[3]*n+r[7]*i+r[15],t}t.default$20.mat4;var Me=function(t,e,r){void 0===e&&(e=new ce(t.width+200,t.height+200,25)),void 0===r&&(r=new ce(t.width+200,t.height+200,25)),this.transform=t,this.grid=e,this.ignoredGrid=r,this.pitchfactor=Math.cos(t._pitch)*t.cameraToCenterDistance,this.screenRightBoundary=t.width+100,this.screenBottomBoundary=t.height+100};function Ae(t,e,r){t[e+4]=r?1:0}function Te(e,r,n){return r*(t.default$8/(e.tileSize*Math.pow(2,n-e.tileID.overscaledZ)))}Me.prototype.placeCollisionBox=function(t,e,r,n){var i=this.projectAndGetPerspectiveRatio(n,t.anchorPointX,t.anchorPointY),a=r*i.perspectiveRatio,o=t.x1*a+i.point.x,s=t.y1*a+i.point.y,l=t.x2*a+i.point.x,c=t.y2*a+i.point.y;return!e&&this.grid.hitTest(o,s,l,c)?{box:[],offscreen:!1}:{box:[o,s,l,c],offscreen:this.isOffscreen(o,s,l,c)}},Me.prototype.approximateTileDistance=function(t,e,r,n,i){var a=i?1:n/this.pitchfactor,o=t.lastSegmentViewportDistance*r;return t.prevTileDistance+o+(a-1)*o*Math.abs(Math.sin(e))},Me.prototype.placeCollisionCircles=function(e,r,n,i,a,o,s,l,c,u,f,h,p){var d=[],g=this.projectAnchor(u,o.anchorX,o.anchorY),v=c/24,m=o.lineOffsetX*c,y=o.lineOffsetY*c,x=new t.default$1(o.anchorX,o.anchorY),b=ve(v,l,m,y,!1,pe(x,f).point,x,o,s,f,{},!0),_=!1,w=!0,k=g.perspectiveRatio*i,M=1/(i*n),A=0,T=0;b&&(A=this.approximateTileDistance(b.first.tileDistance,b.first.angle,M,g.cameraDistance,p),T=this.approximateTileDistance(b.last.tileDistance,b.last.angle,M,g.cameraDistance,p));for(var S=0;S<e.length;S+=5){var E=e[S],C=e[S+1],L=e[S+2],z=e[S+3];if(!b||z<-A||z>T)Ae(e,S,!1);else{var O=this.projectPoint(u,E,C),I=L*k;if(d.length>0){var P=O.x-d[d.length-4],D=O.y-d[d.length-3];if(I*I*2>P*P+D*D&&S+8<e.length){var R=e[S+8];if(R>-A&&R<T){Ae(e,S,!1);continue}}}var B=S/5;if(d.push(O.x,O.y,I,B),Ae(e,S,!0),w=w&&this.isOffscreen(O.x-I,O.y-I,O.x+I,O.y+I),!r&&this.grid.hitTestCircle(O.x,O.y,I)){if(!h)return{circles:[],offscreen:!1};_=!0}}}return{circles:_?[]:d,offscreen:w}},Me.prototype.queryRenderedSymbols=function(e){if(0===e.length||0===this.grid.keysLength()&&0===this.ignoredGrid.keysLength())return{};for(var r=[],n=1/0,i=1/0,a=-1/0,o=-1/0,s=0,l=e;s<l.length;s+=1){var c=l[s],u=new t.default$1(c.x+100,c.y+100);n=Math.min(n,u.x),i=Math.min(i,u.y),a=Math.max(a,u.x),o=Math.max(o,u.y),r.push(u)}for(var f={},h={},p=0,d=this.grid.query(n,i,a,o).concat(this.ignoredGrid.query(n,i,a,o));p<d.length;p+=1){var g=d[p],v=g.key;if(void 0===f[v.bucketInstanceId]&&(f[v.bucketInstanceId]={}),!f[v.bucketInstanceId][v.featureIndex]){var m=[new t.default$1(g.x1,g.y1),new t.default$1(g.x2,g.y1),new t.default$1(g.x2,g.y2),new t.default$1(g.x1,g.y2)];t.polygonIntersectsPolygon(r,m)&&(f[v.bucketInstanceId][v.featureIndex]=!0,void 0===h[v.bucketInstanceId]&&(h[v.bucketInstanceId]=[]),h[v.bucketInstanceId].push(v.featureIndex))}}return h},Me.prototype.insertCollisionBox=function(t,e,r,n){var i={bucketInstanceId:r,featureIndex:n};(e?this.ignoredGrid:this.grid).insert(i,t[0],t[1],t[2],t[3])},Me.prototype.insertCollisionCircles=function(t,e,r,n){for(var i=e?this.ignoredGrid:this.grid,a={bucketInstanceId:r,featureIndex:n},o=0;o<t.length;o+=4)i.insertCircle(a,t[o],t[o+1],t[o+2])},Me.prototype.projectAnchor=function(t,e,r){var n=[e,r,0,1];return ke(n,n,t),{perspectiveRatio:.5+this.transform.cameraToCenterDistance/n[3]*.5,cameraDistance:n[3]}},Me.prototype.projectPoint=function(e,r,n){var i=[r,n,0,1];return ke(i,i,e),new t.default$1((i[0]/i[3]+1)/2*this.transform.width+100,(-i[1]/i[3]+1)/2*this.transform.height+100)},Me.prototype.projectAndGetPerspectiveRatio=function(e,r,n){var i=[r,n,0,1];return ke(i,i,e),{point:new t.default$1((i[0]/i[3]+1)/2*this.transform.width+100,(-i[1]/i[3]+1)/2*this.transform.height+100),perspectiveRatio:.5+this.transform.cameraToCenterDistance/i[3]*.5}},Me.prototype.isOffscreen=function(t,e,r,n){return r<100||t>=this.screenRightBoundary||n<100||e>this.screenBottomBoundary};var Se=t.default$19.layout,Ee=function(t,e,r,n){this.opacity=t?Math.max(0,Math.min(1,t.opacity+(t.placed?e:-e))):n&&r?1:0,this.placed=r};Ee.prototype.isHidden=function(){return 0===this.opacity&&!this.placed};var Ce=function(t,e,r,n,i){this.text=new Ee(t?t.text:null,e,r,i),this.icon=new Ee(t?t.icon:null,e,n,i)};Ce.prototype.isHidden=function(){return this.text.isHidden()&&this.icon.isHidden()};var Le=function(t,e,r){this.text=t,this.icon=e,this.skipFade=r},ze=function(t,e){this.transform=t.clone(),this.collisionIndex=new Me(this.transform),this.placements={},this.opacities={},this.stale=!1,this.fadeDuration=e,this.retainedQueryData={}};function Oe(t,e,r){t.emplaceBack(e?1:0,r?1:0),t.emplaceBack(e?1:0,r?1:0),t.emplaceBack(e?1:0,r?1:0),t.emplaceBack(e?1:0,r?1:0)}ze.prototype.placeLayerTile=function(e,r,n,i){var a=r.getBucket(e),o=r.latestFeatureIndex;if(a&&o&&e.id===a.layerIds[0]){var s=r.collisionBoxArray,l=a.layers[0].layout,c=Math.pow(2,this.transform.zoom-r.tileID.overscaledZ),u=r.tileSize/t.default$8,f=this.transform.calculatePosMatrix(r.tileID.toUnwrapped()),h=fe(f,\"map\"===l.get(\"text-pitch-alignment\"),\"map\"===l.get(\"text-rotation-alignment\"),this.transform,Te(r,1,this.transform.zoom)),p=fe(f,\"map\"===l.get(\"icon-pitch-alignment\"),\"map\"===l.get(\"icon-rotation-alignment\"),this.transform,Te(r,1,this.transform.zoom));this.retainedQueryData[a.bucketInstanceId]=new function(t,e,r,n,i){this.bucketInstanceId=t,this.featureIndex=e,this.sourceLayerIndex=r,this.bucketIndex=n,this.tileID=i}(a.bucketInstanceId,o,a.sourceLayerIndex,a.index,r.tileID),this.placeLayerBucket(a,f,h,p,c,u,n,i,s)}},ze.prototype.placeLayerBucket=function(e,r,n,i,a,o,s,l,c){for(var u=e.layers[0].layout,f=t.evaluateSizeForZoom(e.textSizeData,this.transform.zoom,Se.properties[\"text-size\"]),h=!e.hasTextData()||u.get(\"text-optional\"),p=!e.hasIconData()||u.get(\"icon-optional\"),d=0,g=e.symbolInstances;d<g.length;d+=1){var v=g[d];if(!l[v.crossTileID]){var m=void 0!==v.feature.text,y=void 0!==v.feature.icon,x=!0,b=null,_=null,w=null,k=0,M=0;v.collisionArrays||(v.collisionArrays=e.deserializeCollisionBoxes(c,v.textBoxStartIndex,v.textBoxEndIndex,v.iconBoxStartIndex,v.iconBoxEndIndex)),v.collisionArrays.textFeatureIndex&&(k=v.collisionArrays.textFeatureIndex),v.collisionArrays.textBox&&(m=(b=this.collisionIndex.placeCollisionBox(v.collisionArrays.textBox,u.get(\"text-allow-overlap\"),o,r)).box.length>0,x=x&&b.offscreen);var A=v.collisionArrays.textCircles;if(A){var T=e.text.placedSymbolArray.get(v.placedTextSymbolIndices[0]),S=t.evaluateSizeForFeature(e.textSizeData,f,T);_=this.collisionIndex.placeCollisionCircles(A,u.get(\"text-allow-overlap\"),a,o,v.key,T,e.lineVertexArray,e.glyphOffsetArray,S,r,n,s,\"map\"===u.get(\"text-pitch-alignment\")),m=u.get(\"text-allow-overlap\")||_.circles.length>0,x=x&&_.offscreen}v.collisionArrays.iconFeatureIndex&&(M=v.collisionArrays.iconFeatureIndex),v.collisionArrays.iconBox&&(y=(w=this.collisionIndex.placeCollisionBox(v.collisionArrays.iconBox,u.get(\"icon-allow-overlap\"),o,r)).box.length>0,x=x&&w.offscreen),h||p?p?h||(y=y&&m):m=y&&m:y=m=y&&m,m&&b&&this.collisionIndex.insertCollisionBox(b.box,u.get(\"text-ignore-placement\"),e.bucketInstanceId,k),y&&w&&this.collisionIndex.insertCollisionBox(w.box,u.get(\"icon-ignore-placement\"),e.bucketInstanceId,M),m&&_&&this.collisionIndex.insertCollisionCircles(_.circles,u.get(\"text-ignore-placement\"),e.bucketInstanceId,k),this.placements[v.crossTileID]=new Le(m,y,x||e.justReloaded),l[v.crossTileID]=!0}}e.justReloaded=!1},ze.prototype.commit=function(t,e){this.commitTime=e;var r=!1,n=t&&0!==this.fadeDuration?(this.commitTime-t.commitTime)/this.fadeDuration:1,i=t?t.opacities:{};for(var a in this.placements){var o=this.placements[a],s=i[a];s?(this.opacities[a]=new Ce(s,n,o.text,o.icon),r=r||o.text!==s.text.placed||o.icon!==s.icon.placed):(this.opacities[a]=new Ce(null,n,o.text,o.icon,o.skipFade),r=r||o.text||o.icon)}for(var l in i){var c=i[l];if(!this.opacities[l]){var u=new Ce(c,n,!1,!1);u.isHidden()||(this.opacities[l]=u,r=r||c.text.placed||c.icon.placed)}}r?this.lastPlacementChangeTime=e:\"number\"!=typeof this.lastPlacementChangeTime&&(this.lastPlacementChangeTime=t?t.lastPlacementChangeTime:e)},ze.prototype.updateLayerOpacities=function(t,e){for(var r={},n=0,i=e;n<i.length;n+=1){var a=i[n],o=a.getBucket(t);o&&a.latestFeatureIndex&&t.id===o.layerIds[0]&&this.updateBucketOpacities(o,r,a.collisionBoxArray)}},ze.prototype.updateBucketOpacities=function(t,e,r){t.hasTextData()&&t.text.opacityVertexArray.clear(),t.hasIconData()&&t.icon.opacityVertexArray.clear(),t.hasCollisionBoxData()&&t.collisionBox.collisionVertexArray.clear(),t.hasCollisionCircleData()&&t.collisionCircle.collisionVertexArray.clear();for(var n=t.layers[0].layout,i=new Ce(null,0,!1,!1,!0),a=new Ce(null,0,n.get(\"text-allow-overlap\"),n.get(\"icon-allow-overlap\"),!0),o=0;o<t.symbolInstances.length;o++){var s=t.symbolInstances[o],l=e[s.crossTileID],c=this.opacities[s.crossTileID];l?c=i:c||(c=a,this.opacities[s.crossTileID]=c),e[s.crossTileID]=!0;var u=s.numGlyphVertices>0||s.numVerticalGlyphVertices>0,f=s.numIconVertices>0;if(u){for(var h=je(c.text),p=(s.numGlyphVertices+s.numVerticalGlyphVertices)/4,d=0;d<p;d++)t.text.opacityVertexArray.emplaceBack(h);for(var g=0,v=s.placedTextSymbolIndices;g<v.length;g+=1){var m=v[g];t.text.placedSymbolArray.get(m).hidden=c.text.isHidden()}}if(f){for(var y=je(c.icon),x=0;x<s.numIconVertices/4;x++)t.icon.opacityVertexArray.emplaceBack(y);t.icon.placedSymbolArray.get(o).hidden=c.icon.isHidden()}s.collisionArrays||(s.collisionArrays=t.deserializeCollisionBoxes(r,s.textBoxStartIndex,s.textBoxEndIndex,s.iconBoxStartIndex,s.iconBoxEndIndex));var b=s.collisionArrays;if(b){b.textBox&&t.hasCollisionBoxData()&&Oe(t.collisionBox.collisionVertexArray,c.text.placed,!1),b.iconBox&&t.hasCollisionBoxData()&&Oe(t.collisionBox.collisionVertexArray,c.icon.placed,!1);var _=b.textCircles;if(_&&t.hasCollisionCircleData())for(var w=0;w<_.length;w+=5){var k=l||0===_[w+4];Oe(t.collisionCircle.collisionVertexArray,c.text.placed,k)}}}t.sortFeatures(this.transform.angle),this.retainedQueryData[t.bucketInstanceId]&&(this.retainedQueryData[t.bucketInstanceId].featureSortOrder=t.featureSortOrder),t.hasTextData()&&t.text.opacityVertexBuffer&&t.text.opacityVertexBuffer.updateData(t.text.opacityVertexArray),t.hasIconData()&&t.icon.opacityVertexBuffer&&t.icon.opacityVertexBuffer.updateData(t.icon.opacityVertexArray),t.hasCollisionBoxData()&&t.collisionBox.collisionVertexBuffer&&t.collisionBox.collisionVertexBuffer.updateData(t.collisionBox.collisionVertexArray),t.hasCollisionCircleData()&&t.collisionCircle.collisionVertexBuffer&&t.collisionCircle.collisionVertexBuffer.updateData(t.collisionCircle.collisionVertexArray)},ze.prototype.symbolFadeChange=function(t){return 0===this.fadeDuration?1:(t-this.commitTime)/this.fadeDuration},ze.prototype.hasTransitions=function(t){return this.stale||t-this.lastPlacementChangeTime<this.fadeDuration},ze.prototype.stillRecent=function(t){return\"undefined\"!==this.commitTime&&this.commitTime+this.fadeDuration>t},ze.prototype.setStale=function(){this.stale=!0};var Ie=Math.pow(2,25),Pe=Math.pow(2,24),De=Math.pow(2,17),Re=Math.pow(2,16),Be=Math.pow(2,9),Fe=Math.pow(2,8),Ne=Math.pow(2,1);function je(t){if(0===t.opacity&&!t.placed)return 0;if(1===t.opacity&&t.placed)return 4294967295;var e=t.placed?1:0,r=Math.floor(127*t.opacity);return r*Ie+e*Pe+r*De+e*Re+r*Be+e*Fe+r*Ne+e}var Ve=function(){this._currentTileIndex=0,this._seenCrossTileIDs={}};Ve.prototype.continuePlacement=function(t,e,r,n,i){for(;this._currentTileIndex<t.length;){var a=t[this._currentTileIndex];if(e.placeLayerTile(n,a,r,this._seenCrossTileIDs),this._currentTileIndex++,i())return!0}};var Ue=function(t,e,r,n,i){this.placement=new ze(t,i),this._currentPlacementIndex=e.length-1,this._forceFullPlacement=r,this._showCollisionBoxes=n,this._done=!1};Ue.prototype.isDone=function(){return this._done},Ue.prototype.continuePlacement=function(t,e,r){for(var n=this,i=a.now(),o=function(){var t=a.now()-i;return!n._forceFullPlacement&&t>2};this._currentPlacementIndex>=0;){var s=e[t[n._currentPlacementIndex]],l=n.placement.collisionIndex.transform.zoom;if(\"symbol\"===s.type&&(!s.minzoom||s.minzoom<=l)&&(!s.maxzoom||s.maxzoom>l)){if(n._inProgressLayer||(n._inProgressLayer=new Ve),n._inProgressLayer.continuePlacement(r[s.source],n.placement,n._showCollisionBoxes,s,o))return;delete n._inProgressLayer}n._currentPlacementIndex--}this._done=!0},Ue.prototype.commit=function(t,e){return this.placement.commit(t,e),this.placement};var qe=512/t.default$8/2,He=function(t,e,r){this.tileID=t,this.indexedSymbolInstances={},this.bucketInstanceId=r;for(var n=0,i=e;n<i.length;n+=1){var a=i[n],o=a.key;this.indexedSymbolInstances[o]||(this.indexedSymbolInstances[o]=[]),this.indexedSymbolInstances[o].push({crossTileID:a.crossTileID,coord:this.getScaledCoordinates(a,t)})}};He.prototype.getScaledCoordinates=function(e,r){var n=r.canonical.z-this.tileID.canonical.z,i=qe/Math.pow(2,n),a=e.anchor;return{x:Math.floor((r.canonical.x*t.default$8+a.x)*i),y:Math.floor((r.canonical.y*t.default$8+a.y)*i)}},He.prototype.findMatches=function(t,e,r){for(var n=this.tileID.canonical.z<e.canonical.z?1:Math.pow(2,this.tileID.canonical.z-e.canonical.z),i=0,a=t;i<a.length;i+=1){var o=a[i];if(!o.crossTileID){var s=this.indexedSymbolInstances[o.key];if(s)for(var l=this.getScaledCoordinates(o,e),c=0,u=s;c<u.length;c+=1){var f=u[c];if(Math.abs(f.coord.x-l.x)<=n&&Math.abs(f.coord.y-l.y)<=n&&!r[f.crossTileID]){r[f.crossTileID]=!0,o.crossTileID=f.crossTileID;break}}}}};var Ge=function(){this.maxCrossTileID=0};Ge.prototype.generate=function(){return++this.maxCrossTileID};var We=function(){this.indexes={},this.usedCrossTileIDs={},this.lng=0};We.prototype.handleWrapJump=function(t){var e=Math.round((t-this.lng)/360);if(0!==e)for(var r in this.indexes){var n=this.indexes[r],i={};for(var a in n){var o=n[a];o.tileID=o.tileID.unwrapTo(o.tileID.wrap+e),i[o.tileID.key]=o}this.indexes[r]=i}this.lng=t},We.prototype.addBucket=function(t,e,r){if(this.indexes[t.overscaledZ]&&this.indexes[t.overscaledZ][t.key]){if(this.indexes[t.overscaledZ][t.key].bucketInstanceId===e.bucketInstanceId)return!1;this.removeBucketCrossTileIDs(t.overscaledZ,this.indexes[t.overscaledZ][t.key])}for(var n=0,i=e.symbolInstances;n<i.length;n+=1)i[n].crossTileID=0;this.usedCrossTileIDs[t.overscaledZ]||(this.usedCrossTileIDs[t.overscaledZ]={});var a=this.usedCrossTileIDs[t.overscaledZ];for(var o in this.indexes){var s=this.indexes[o];if(Number(o)>t.overscaledZ)for(var l in s){var c=s[l];c.tileID.isChildOf(t)&&c.findMatches(e.symbolInstances,t,a)}else{var u=s[t.scaledTo(Number(o)).key];u&&u.findMatches(e.symbolInstances,t,a)}}for(var f=0,h=e.symbolInstances;f<h.length;f+=1){var p=h[f];p.crossTileID||(p.crossTileID=r.generate(),a[p.crossTileID]=!0)}return void 0===this.indexes[t.overscaledZ]&&(this.indexes[t.overscaledZ]={}),this.indexes[t.overscaledZ][t.key]=new He(t,e.symbolInstances,e.bucketInstanceId),!0},We.prototype.removeBucketCrossTileIDs=function(t,e){for(var r in e.indexedSymbolInstances)for(var n=0,i=e.indexedSymbolInstances[r];n<i.length;n+=1){var a=i[n];delete this.usedCrossTileIDs[t][a.crossTileID]}},We.prototype.removeStaleBuckets=function(t){var e=!1;for(var r in this.indexes){var n=this.indexes[r];for(var i in n)t[n[i].bucketInstanceId]||(this.removeBucketCrossTileIDs(r,n[i]),delete n[i],e=!0)}return e};var Ye=function(){this.layerIndexes={},this.crossTileIDs=new Ge,this.maxBucketInstanceId=0,this.bucketsInCurrentPlacement={}};Ye.prototype.addLayer=function(t,e,r){var n=this.layerIndexes[t.id];void 0===n&&(n=this.layerIndexes[t.id]=new We);var i=!1,a={};n.handleWrapJump(r);for(var o=0,s=e;o<s.length;o+=1){var l=s[o],c=l.getBucket(t);c&&t.id===c.layerIds[0]&&(c.bucketInstanceId||(c.bucketInstanceId=++this.maxBucketInstanceId),n.addBucket(l.tileID,c,this.crossTileIDs)&&(i=!0),a[c.bucketInstanceId]=!0)}return n.removeStaleBuckets(a)&&(i=!0),i},Ye.prototype.pruneUnusedLayers=function(t){var e={};for(var r in t.forEach(function(t){e[t]=!0}),this.layerIndexes)e[r]||delete this.layerIndexes[r]};var Xe=function(e,r){return t.emitValidationErrors(e,r&&r.filter(function(t){return\"source.canvas\"!==t.identifier}))},Ze=t.pick(ee,[\"addLayer\",\"removeLayer\",\"setPaintProperty\",\"setLayoutProperty\",\"setFilter\",\"addSource\",\"removeSource\",\"setLayerZoomRange\",\"setLight\",\"setTransition\",\"setGeoJSONSourceData\"]),$e=t.pick(ee,[\"setCenter\",\"setZoom\",\"setBearing\",\"setPitch\"]),Je=function(e){function r(n,i){var a=this;void 0===i&&(i={}),e.call(this),this.map=n,this.dispatcher=new q((Jt||(Jt=new Kt),Jt),this),this.imageManager=new O,this.glyphManager=new F(n._transformRequest,i.localIdeographFontFamily),this.lineAtlas=new U(256,512),this.crossTileSymbolIndex=new Ye,this._layers={},this._order=[],this.sourceCaches={},this.zoomHistory=new t.default$23,this._loaded=!1,this._resetUpdates();var o=this;this._rtlTextPluginCallback=r.registerForPluginAvailability(function(t){for(var e in o.dispatcher.broadcast(\"loadRTLTextPlugin\",t.pluginURL,t.completionCallback),o.sourceCaches)o.sourceCaches[e].reload()}),this.on(\"data\",function(t){if(\"source\"===t.dataType&&\"metadata\"===t.sourceDataType){var e=a.sourceCaches[t.sourceId];if(e){var r=e.getSource();if(r&&r.vectorLayerIds)for(var n in a._layers){var i=a._layers[n];i.source===r.id&&a._validateLayer(i)}}}})}return e&&(r.__proto__=e),r.prototype=Object.create(e&&e.prototype),r.prototype.constructor=r,r.prototype.loadURL=function(e,r){var n=this;void 0===r&&(r={}),this.fire(new t.Event(\"dataloading\",{dataType:\"style\"}));var i=\"boolean\"==typeof r.validate?r.validate:!x(e);e=function(t,e){if(!x(t))return t;var r=A(t);return r.path=\"/styles/v1\"+r.path,y(r,e)}(e,r.accessToken);var a=this.map._transformRequest(e,t.ResourceType.Style);t.getJSON(a,function(e,r){e?n.fire(new t.ErrorEvent(e)):r&&n._load(r,i)})},r.prototype.loadJSON=function(e,r){var n=this;void 0===r&&(r={}),this.fire(new t.Event(\"dataloading\",{dataType:\"style\"})),a.frame(function(){n._load(e,!1!==r.validate)})},r.prototype._load=function(e,r){var n=this;if(!r||!Xe(this,t.validateStyle(e))){for(var i in this._loaded=!0,this.stylesheet=e,e.sources)n.addSource(i,e.sources[i],{validate:!1});e.sprite?function(e,r,n){var i,o,s,l=a.devicePixelRatio>1?\"@2x\":\"\";function c(){if(s)n(s);else if(i&&o){var e=a.getImageData(o),r={};for(var l in i){var c=i[l],u=c.width,f=c.height,h=c.x,p=c.y,d=c.sdf,g=c.pixelRatio,v=new t.RGBAImage({width:u,height:f});t.RGBAImage.copy(e,v,{x:h,y:p},{x:0,y:0},{width:u,height:f}),r[l]={data:v,pixelRatio:g,sdf:d}}n(null,r)}}t.getJSON(r(_(e,l,\".json\"),t.ResourceType.SpriteJSON),function(t,e){s||(s=t,i=e,c())}),t.getImage(r(_(e,l,\".png\"),t.ResourceType.SpriteImage),function(t,e){s||(s=t,o=e,c())})}(e.sprite,this.map._transformRequest,function(e,r){if(e)n.fire(new t.ErrorEvent(e));else if(r)for(var i in r)n.imageManager.addImage(i,r[i]);n.imageManager.setLoaded(!0),n.fire(new t.Event(\"data\",{dataType:\"style\"}))}):this.imageManager.setLoaded(!0),this.glyphManager.setURL(e.glyphs);var o=te(this.stylesheet.layers);this._order=o.map(function(t){return t.id}),this._layers={};for(var s=0,l=o;s<l.length;s+=1){var c=l[s];(c=t.default$22(c)).setEventedParent(n,{layer:{id:c.id}}),n._layers[c.id]=c}this.dispatcher.broadcast(\"setLayers\",this._serializeLayers(this._order)),this.light=new V(this.stylesheet.light),this.fire(new t.Event(\"data\",{dataType:\"style\"})),this.fire(new t.Event(\"style.load\"))}},r.prototype._validateLayer=function(e){var r=this.sourceCaches[e.source];if(r){var n=e.sourceLayer;if(n){var i=r.getSource();(\"geojson\"===i.type||i.vectorLayerIds&&-1===i.vectorLayerIds.indexOf(n))&&this.fire(new t.ErrorEvent(new Error('Source layer \"'+n+'\" does not exist on source \"'+i.id+'\" as specified by style layer \"'+e.id+'\"')))}}},r.prototype.loaded=function(){if(!this._loaded)return!1;if(Object.keys(this._updatedSources).length)return!1;for(var t in this.sourceCaches)if(!this.sourceCaches[t].loaded())return!1;return!!this.imageManager.isLoaded()},r.prototype._serializeLayers=function(t){var e=this;return t.map(function(t){return e._layers[t].serialize()})},r.prototype.hasTransitions=function(){if(this.light&&this.light.hasTransition())return!0;for(var t in this.sourceCaches)if(this.sourceCaches[t].hasTransition())return!0;for(var e in this._layers)if(this._layers[e].hasTransition())return!0;return!1},r.prototype._checkLoaded=function(){if(!this._loaded)throw new Error(\"Style is not done loading\")},r.prototype.update=function(e){if(this._loaded){if(this._changed){var r=Object.keys(this._updatedLayers),n=Object.keys(this._removedLayers);for(var i in(r.length||n.length)&&this._updateWorkerLayers(r,n),this._updatedSources){var a=this._updatedSources[i];\"reload\"===a?this._reloadSource(i):\"clear\"===a&&this._clearSource(i)}for(var o in this._updatedPaintProps)this._layers[o].updateTransitions(e);this.light.updateTransitions(e),this._resetUpdates(),this.fire(new t.Event(\"data\",{dataType:\"style\"}))}for(var s in this.sourceCaches)this.sourceCaches[s].used=!1;for(var l=0,c=this._order;l<c.length;l+=1){var u=c[l],f=this._layers[u];f.recalculate(e),!f.isHidden(e.zoom)&&f.source&&(this.sourceCaches[f.source].used=!0)}this.light.recalculate(e),this.z=e.zoom}},r.prototype._updateWorkerLayers=function(t,e){this.dispatcher.broadcast(\"updateLayers\",{layers:this._serializeLayers(t),removedIds:e})},r.prototype._resetUpdates=function(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSources={},this._updatedPaintProps={}},r.prototype.setState=function(e){var r=this;if(this._checkLoaded(),Xe(this,t.validateStyle(e)))return!1;(e=t.clone(e)).layers=te(e.layers);var n=function(e,r){if(!e)return[{command:ee.setStyle,args:[r]}];var n=[];try{if(!t.default$10(e.version,r.version))return[{command:ee.setStyle,args:[r]}];t.default$10(e.center,r.center)||n.push({command:ee.setCenter,args:[r.center]}),t.default$10(e.zoom,r.zoom)||n.push({command:ee.setZoom,args:[r.zoom]}),t.default$10(e.bearing,r.bearing)||n.push({command:ee.setBearing,args:[r.bearing]}),t.default$10(e.pitch,r.pitch)||n.push({command:ee.setPitch,args:[r.pitch]}),t.default$10(e.sprite,r.sprite)||n.push({command:ee.setSprite,args:[r.sprite]}),t.default$10(e.glyphs,r.glyphs)||n.push({command:ee.setGlyphs,args:[r.glyphs]}),t.default$10(e.transition,r.transition)||n.push({command:ee.setTransition,args:[r.transition]}),t.default$10(e.light,r.light)||n.push({command:ee.setLight,args:[r.light]});var i={},a=[];!function(e,r,n,i){var a;for(a in r=r||{},e=e||{})e.hasOwnProperty(a)&&(r.hasOwnProperty(a)||ne(a,n,i));for(a in r)r.hasOwnProperty(a)&&(e.hasOwnProperty(a)?t.default$10(e[a],r[a])||(\"geojson\"===e[a].type&&\"geojson\"===r[a].type&&ae(e,r,a)?n.push({command:ee.setGeoJSONSourceData,args:[a,r[a].data]}):ie(a,r,n,i)):re(a,r,n))}(e.sources,r.sources,a,i);var o=[];e.layers&&e.layers.forEach(function(t){i[t.source]?n.push({command:ee.removeLayer,args:[t.id]}):o.push(t)}),n=n.concat(a),function(e,r,n){r=r||[];var i,a,o,s,l,c,u,f=(e=e||[]).map(se),h=r.map(se),p=e.reduce(le,{}),d=r.reduce(le,{}),g=f.slice(),v=Object.create(null);for(i=0,a=0;i<f.length;i++)o=f[i],d.hasOwnProperty(o)?a++:(n.push({command:ee.removeLayer,args:[o]}),g.splice(g.indexOf(o,a),1));for(i=0,a=0;i<h.length;i++)o=h[h.length-1-i],g[g.length-1-i]!==o&&(p.hasOwnProperty(o)?(n.push({command:ee.removeLayer,args:[o]}),g.splice(g.lastIndexOf(o,g.length-a),1)):a++,c=g[g.length-i],n.push({command:ee.addLayer,args:[d[o],c]}),g.splice(g.length-i,0,o),v[o]=!0);for(i=0;i<h.length;i++)if(s=p[o=h[i]],l=d[o],!v[o]&&!t.default$10(s,l))if(t.default$10(s.source,l.source)&&t.default$10(s[\"source-layer\"],l[\"source-layer\"])&&t.default$10(s.type,l.type)){for(u in oe(s.layout,l.layout,n,o,null,ee.setLayoutProperty),oe(s.paint,l.paint,n,o,null,ee.setPaintProperty),t.default$10(s.filter,l.filter)||n.push({command:ee.setFilter,args:[o,l.filter]}),t.default$10(s.minzoom,l.minzoom)&&t.default$10(s.maxzoom,l.maxzoom)||n.push({command:ee.setLayerZoomRange,args:[o,l.minzoom,l.maxzoom]}),s)s.hasOwnProperty(u)&&\"layout\"!==u&&\"paint\"!==u&&\"filter\"!==u&&\"metadata\"!==u&&\"minzoom\"!==u&&\"maxzoom\"!==u&&(0===u.indexOf(\"paint.\")?oe(s[u],l[u],n,o,u.slice(6),ee.setPaintProperty):t.default$10(s[u],l[u])||n.push({command:ee.setLayerProperty,args:[o,u,l[u]]}));for(u in l)l.hasOwnProperty(u)&&!s.hasOwnProperty(u)&&\"layout\"!==u&&\"paint\"!==u&&\"filter\"!==u&&\"metadata\"!==u&&\"minzoom\"!==u&&\"maxzoom\"!==u&&(0===u.indexOf(\"paint.\")?oe(s[u],l[u],n,o,u.slice(6),ee.setPaintProperty):t.default$10(s[u],l[u])||n.push({command:ee.setLayerProperty,args:[o,u,l[u]]}))}else n.push({command:ee.removeLayer,args:[o]}),c=g[g.lastIndexOf(o)+1],n.push({command:ee.addLayer,args:[l,c]})}(o,r.layers,n)}catch(t){console.warn(\"Unable to compute style diff:\",t),n=[{command:ee.setStyle,args:[r]}]}return n}(this.serialize(),e).filter(function(t){return!(t.command in $e)});if(0===n.length)return!1;var i=n.filter(function(t){return!(t.command in Ze)});if(i.length>0)throw new Error(\"Unimplemented: \"+i.map(function(t){return t.command}).join(\", \")+\".\");return n.forEach(function(t){\"setTransition\"!==t.command&&r[t.command].apply(r,t.args)}),this.stylesheet=e,!0},r.prototype.addImage=function(e,r){if(this.getImage(e))return this.fire(new t.ErrorEvent(new Error(\"An image with this name already exists.\")));this.imageManager.addImage(e,r),this.fire(new t.Event(\"data\",{dataType:\"style\"}))},r.prototype.getImage=function(t){return this.imageManager.getImage(t)},r.prototype.removeImage=function(e){if(!this.getImage(e))return this.fire(new t.ErrorEvent(new Error(\"No image with this name exists.\")));this.imageManager.removeImage(e),this.fire(new t.Event(\"data\",{dataType:\"style\"}))},r.prototype.addSource=function(e,r,n){var i=this;if(this._checkLoaded(),void 0!==this.sourceCaches[e])throw new Error(\"There is already a source with this ID\");if(!r.type)throw new Error(\"The type property must be defined, but the only the following properties were given: \"+Object.keys(r).join(\", \")+\".\");if(!([\"vector\",\"raster\",\"geojson\",\"video\",\"image\"].indexOf(r.type)>=0&&this._validate(t.validateStyle.source,\"sources.\"+e,r,null,n))){this.map&&this.map._collectResourceTiming&&(r.collectResourceTiming=!0);var a=this.sourceCaches[e]=new Yt(e,r,this.dispatcher);a.style=this,a.setEventedParent(this,function(){return{isSourceLoaded:i.loaded(),source:a.serialize(),sourceId:e}}),a.onAdd(this.map),this._changed=!0}},r.prototype.removeSource=function(e){if(this._checkLoaded(),void 0===this.sourceCaches[e])throw new Error(\"There is no source with this ID\");for(var r in this._layers)if(this._layers[r].source===e)return this.fire(new t.ErrorEvent(new Error('Source \"'+e+'\" cannot be removed while layer \"'+r+'\" is using it.')));var n=this.sourceCaches[e];delete this.sourceCaches[e],delete this._updatedSources[e],n.fire(new t.Event(\"data\",{sourceDataType:\"metadata\",dataType:\"source\",sourceId:e})),n.setEventedParent(null),n.clearTiles(),n.onRemove&&n.onRemove(this.map),this._changed=!0},r.prototype.setGeoJSONSourceData=function(t,e){this._checkLoaded(),this.sourceCaches[t].getSource().setData(e),this._changed=!0},r.prototype.getSource=function(t){return this.sourceCaches[t]&&this.sourceCaches[t].getSource()},r.prototype.addLayer=function(e,r,n){this._checkLoaded();var i=e.id;if(this.getLayer(i))this.fire(new t.ErrorEvent(new Error('Layer with id \"'+i+'\" already exists on this map')));else if(\"object\"==typeof e.source&&(this.addSource(i,e.source),e=t.clone(e),e=t.extend(e,{source:i})),!this._validate(t.validateStyle.layer,\"layers.\"+i,e,{arrayIndex:-1},n)){var a=t.default$22(e);this._validateLayer(a),a.setEventedParent(this,{layer:{id:i}});var o=r?this._order.indexOf(r):this._order.length;if(r&&-1===o)this.fire(new t.ErrorEvent(new Error('Layer with id \"'+r+'\" does not exist on this map.')));else{if(this._order.splice(o,0,i),this._layerOrderChanged=!0,this._layers[i]=a,this._removedLayers[i]&&a.source){var s=this._removedLayers[i];delete this._removedLayers[i],s.type!==a.type?this._updatedSources[a.source]=\"clear\":(this._updatedSources[a.source]=\"reload\",this.sourceCaches[a.source].pause())}this._updateLayer(a)}}},r.prototype.moveLayer=function(e,r){if(this._checkLoaded(),this._changed=!0,this._layers[e]){if(e!==r){var n=this._order.indexOf(e);this._order.splice(n,1);var i=r?this._order.indexOf(r):this._order.length;r&&-1===i?this.fire(new t.ErrorEvent(new Error('Layer with id \"'+r+'\" does not exist on this map.'))):(this._order.splice(i,0,e),this._layerOrderChanged=!0)}}else this.fire(new t.ErrorEvent(new Error(\"The layer '\"+e+\"' does not exist in the map's style and cannot be moved.\")))},r.prototype.removeLayer=function(e){this._checkLoaded();var r=this._layers[e];if(r){r.setEventedParent(null);var n=this._order.indexOf(e);this._order.splice(n,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[e]=r,delete this._layers[e],delete this._updatedLayers[e],delete this._updatedPaintProps[e]}else this.fire(new t.ErrorEvent(new Error(\"The layer '\"+e+\"' does not exist in the map's style and cannot be removed.\")))},r.prototype.getLayer=function(t){return this._layers[t]},r.prototype.setLayerZoomRange=function(e,r,n){this._checkLoaded();var i=this.getLayer(e);i?i.minzoom===r&&i.maxzoom===n||(null!=r&&(i.minzoom=r),null!=n&&(i.maxzoom=n),this._updateLayer(i)):this.fire(new t.ErrorEvent(new Error(\"The layer '\"+e+\"' does not exist in the map's style and cannot have zoom extent.\")))},r.prototype.setFilter=function(e,r){this._checkLoaded();var n=this.getLayer(e);if(n){if(!t.default$10(n.filter,r))return null==r?(n.filter=void 0,void this._updateLayer(n)):void(this._validate(t.validateStyle.filter,\"layers.\"+n.id+\".filter\",r)||(n.filter=t.clone(r),this._updateLayer(n)))}else this.fire(new t.ErrorEvent(new Error(\"The layer '\"+e+\"' does not exist in the map's style and cannot be filtered.\")))},r.prototype.getFilter=function(e){return t.clone(this.getLayer(e).filter)},r.prototype.setLayoutProperty=function(e,r,n){this._checkLoaded();var i=this.getLayer(e);i?t.default$10(i.getLayoutProperty(r),n)||(i.setLayoutProperty(r,n),this._updateLayer(i)):this.fire(new t.ErrorEvent(new Error(\"The layer '\"+e+\"' does not exist in the map's style and cannot be styled.\")))},r.prototype.getLayoutProperty=function(t,e){return this.getLayer(t).getLayoutProperty(e)},r.prototype.setPaintProperty=function(e,r,n){this._checkLoaded();var i=this.getLayer(e);if(i){if(!t.default$10(i.getPaintProperty(r),n)){var a=i._transitionablePaint._values[r].value.isDataDriven();i.setPaintProperty(r,n),(i._transitionablePaint._values[r].value.isDataDriven()||a)&&this._updateLayer(i),this._changed=!0,this._updatedPaintProps[e]=!0}}else this.fire(new t.ErrorEvent(new Error(\"The layer '\"+e+\"' does not exist in the map's style and cannot be styled.\")))},r.prototype.getPaintProperty=function(t,e){return this.getLayer(t).getPaintProperty(e)},r.prototype.getTransition=function(){return t.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)},r.prototype.serialize=function(){var e=this;return t.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,sources:t.mapObject(this.sourceCaches,function(t){return t.serialize()}),layers:this._order.map(function(t){return e._layers[t].serialize()})},function(t){return void 0!==t})},r.prototype._updateLayer=function(t){this._updatedLayers[t.id]=!0,t.source&&!this._updatedSources[t.source]&&(this._updatedSources[t.source]=\"reload\",this.sourceCaches[t.source].pause()),this._changed=!0},r.prototype._flattenRenderedFeatures=function(t){for(var e=[],r=this._order.length-1;r>=0;r--)for(var n=this._order[r],i=0,a=t;i<a.length;i+=1){var o=a[i][n];if(o)for(var s=0,l=o;s<l.length;s+=1){var c=l[s];e.push(c)}}return e},r.prototype.queryRenderedFeatures=function(e,r,n){r&&r.filter&&this._validate(t.validateStyle.filter,\"queryRenderedFeatures.filter\",r.filter);var i={};if(r&&r.layers){if(!Array.isArray(r.layers))return this.fire(new t.ErrorEvent(new Error(\"parameters.layers must be an Array.\"))),[];for(var a=0,o=r.layers;a<o.length;a+=1){var s=o[a],l=this._layers[s];if(!l)return this.fire(new t.ErrorEvent(new Error(\"The layer '\"+s+\"' does not exist in the map's style and cannot be queried for features.\"))),[];i[l.source]=!0}}var c=[];for(var u in this.sourceCaches)r.layers&&!i[u]||c.push(at(this.sourceCaches[u],this._layers,e.worldCoordinate,r,n));return this.placement&&c.push(function(t,e,r,n,i){for(var a={},o=n.queryRenderedSymbols(e),s=[],l=0,c=Object.keys(o).map(Number);l<c.length;l+=1){var u=c[l];s.push(i[u])}s.sort(ot);for(var f=function(){var e=p[h],n=e.featureIndex.lookupSymbolFeatures(o[e.bucketInstanceId],e.bucketIndex,e.sourceLayerIndex,r.filter,r.layers,t);for(var i in n){var s=a[i]=a[i]||[],l=n[i];l.sort(function(t,r){var n=e.featureSortOrder;if(n){var i=n.indexOf(t.featureIndex);return n.indexOf(r.featureIndex)-i}return r.featureIndex-t.featureIndex});for(var c=0,u=l;c<u.length;c+=1){var f=u[c];s.push(f.feature)}}},h=0,p=s;h<p.length;h+=1)f();return a}(this._layers,e.viewport,r,this.placement.collisionIndex,this.placement.retainedQueryData)),this._flattenRenderedFeatures(c)},r.prototype.querySourceFeatures=function(e,r){r&&r.filter&&this._validate(t.validateStyle.filter,\"querySourceFeatures.filter\",r.filter);var n=this.sourceCaches[e];return n?function(t,e){for(var r=t.getRenderableIds().map(function(e){return t.getTileByID(e)}),n=[],i={},a=0;a<r.length;a++){var o=r[a],s=o.tileID.canonical.key;i[s]||(i[s]=!0,o.querySourceFeatures(n,e))}return n}(n,r):[]},r.prototype.addSourceType=function(t,e,n){return r.getSourceType(t)?n(new Error('A source type called \"'+t+'\" already exists.')):(r.setSourceType(t,e),e.workerSourceURL?void this.dispatcher.broadcast(\"loadWorkerSource\",{name:t,url:e.workerSourceURL},n):n(null,null))},r.prototype.getLight=function(){return this.light.getLight()},r.prototype.setLight=function(e){this._checkLoaded();var r=this.light.getLight(),n=!1;for(var i in e)if(!t.default$10(e[i],r[i])){n=!0;break}if(n){var o={now:a.now(),transition:t.extend({duration:300,delay:0},this.stylesheet.transition)};this.light.setLight(e),this.light.updateTransitions(o)}},r.prototype._validate=function(e,r,n,i,a){return(!a||!1!==a.validate)&&Xe(this,e.call(t.validateStyle,t.extend({key:r,style:this.serialize(),value:n,styleSpec:t.default$5},i)))},r.prototype._remove=function(){for(var e in t.evented.off(\"pluginAvailable\",this._rtlTextPluginCallback),this.sourceCaches)this.sourceCaches[e].clearTiles();this.dispatcher.remove()},r.prototype._clearSource=function(t){this.sourceCaches[t].clearTiles()},r.prototype._reloadSource=function(t){this.sourceCaches[t].resume(),this.sourceCaches[t].reload()},r.prototype._updateSources=function(t){for(var e in this.sourceCaches)this.sourceCaches[e].update(t)},r.prototype._generateCollisionBoxes=function(){for(var t in this.sourceCaches)this._reloadSource(t)},r.prototype._updatePlacement=function(t,e,r){for(var n=!1,i=!1,o={},s=0,l=this._order;s<l.length;s+=1){var c=l[s],u=this._layers[c];if(\"symbol\"===u.type){if(!o[u.source]){var f=this.sourceCaches[u.source];o[u.source]=f.getRenderableIds().map(function(t){return f.getTileByID(t)}).sort(function(t,e){return e.tileID.overscaledZ-t.tileID.overscaledZ||(t.tileID.isLessThan(e.tileID)?-1:1)})}var h=this.crossTileSymbolIndex.addLayer(u,o[u.source],t.center.lng);n=n||h}}this.crossTileSymbolIndex.pruneUnusedLayers(this._order);var p=this._layerOrderChanged;if((p||!this.pauseablePlacement||this.pauseablePlacement.isDone()&&!this.placement.stillRecent(a.now()))&&(this.pauseablePlacement=new Ue(t,this._order,p,e,r),this._layerOrderChanged=!1),this.pauseablePlacement.isDone()?this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._order,this._layers,o),this.pauseablePlacement.isDone()&&(this.placement=this.pauseablePlacement.commit(this.placement,a.now()),i=!0),n&&this.pauseablePlacement.placement.setStale()),i||n)for(var d=0,g=this._order;d<g.length;d+=1){var v=g[d],m=this._layers[v];\"symbol\"===m.type&&this.placement.updateLayerOpacities(m,o[m.source])}return!this.pauseablePlacement.isDone()||this.placement.hasTransitions(a.now())},r.prototype.getImages=function(t,e,r){this.imageManager.getImages(e.icons,r)},r.prototype.getGlyphs=function(t,e,r){this.glyphManager.getGlyphs(e.stacks,r)},r}(t.Evented);Je.getSourceType=function(t){return nt[t]},Je.setSourceType=function(t,e){nt[t]=e},Je.registerForPluginAvailability=t.registerForPluginAvailability;var Ke=t.createLayout([{name:\"a_pos\",type:\"Int16\",components:2}]),Qe={prelude:{fragmentSource:\"#ifdef GL_ES\\nprecision mediump float;\\n#else\\n\\n#if !defined(lowp)\\n#define lowp\\n#endif\\n\\n#if !defined(mediump)\\n#define mediump\\n#endif\\n\\n#if !defined(highp)\\n#define highp\\n#endif\\n\\n#endif\\n\",vertexSource:\"#ifdef GL_ES\\nprecision highp float;\\n#else\\n\\n#if !defined(lowp)\\n#define lowp\\n#endif\\n\\n#if !defined(mediump)\\n#define mediump\\n#endif\\n\\n#if !defined(highp)\\n#define highp\\n#endif\\n\\n#endif\\n\\n// Unpack a pair of values that have been packed into a single float.\\n// The packed values are assumed to be 8-bit unsigned integers, and are\\n// packed like so:\\n// packedValue = floor(input[0]) * 256 + input[1],\\nvec2 unpack_float(const float packedValue) {\\n int packedIntValue = int(packedValue);\\n int v0 = packedIntValue / 256;\\n return vec2(v0, packedIntValue - v0 * 256);\\n}\\n\\nvec2 unpack_opacity(const float packedOpacity) {\\n int intOpacity = int(packedOpacity) / 2;\\n return vec2(float(intOpacity) / 127.0, mod(packedOpacity, 2.0));\\n}\\n\\n// To minimize the number of attributes needed, we encode a 4-component\\n// color into a pair of floats (i.e. a vec2) as follows:\\n// [ floor(color.r * 255) * 256 + color.g * 255,\\n// floor(color.b * 255) * 256 + color.g * 255 ]\\nvec4 decode_color(const vec2 encodedColor) {\\n return vec4(\\n unpack_float(encodedColor[0]) / 255.0,\\n unpack_float(encodedColor[1]) / 255.0\\n );\\n}\\n\\n// Unpack a pair of paint values and interpolate between them.\\nfloat unpack_mix_vec2(const vec2 packedValue, const float t) {\\n return mix(packedValue[0], packedValue[1], t);\\n}\\n\\n// Unpack a pair of paint values and interpolate between them.\\nvec4 unpack_mix_vec4(const vec4 packedColors, const float t) {\\n vec4 minColor = decode_color(vec2(packedColors[0], packedColors[1]));\\n vec4 maxColor = decode_color(vec2(packedColors[2], packedColors[3]));\\n return mix(minColor, maxColor, t);\\n}\\n\\n// The offset depends on how many pixels are between the world origin and the edge of the tile:\\n// vec2 offset = mod(pixel_coord, size)\\n//\\n// At high zoom levels there are a ton of pixels between the world origin and the edge of the tile.\\n// The glsl spec only guarantees 16 bits of precision for highp floats. We need more than that.\\n//\\n// The pixel_coord is passed in as two 16 bit values:\\n// pixel_coord_upper = floor(pixel_coord / 2^16)\\n// pixel_coord_lower = mod(pixel_coord, 2^16)\\n//\\n// The offset is calculated in a series of steps that should preserve this precision:\\nvec2 get_pattern_pos(const vec2 pixel_coord_upper, const vec2 pixel_coord_lower,\\n const vec2 pattern_size, const float tile_units_to_pixels, const vec2 pos) {\\n\\n vec2 offset = mod(mod(mod(pixel_coord_upper, pattern_size) * 256.0, pattern_size) * 256.0 + pixel_coord_lower, pattern_size);\\n return (tile_units_to_pixels * pos + offset) / pattern_size;\\n}\\n\"},background:{fragmentSource:\"uniform vec4 u_color;\\nuniform float u_opacity;\\n\\nvoid main() {\\n gl_FragColor = u_color * u_opacity;\\n\\n#ifdef OVERDRAW_INSPECTOR\\n gl_FragColor = vec4(1.0);\\n#endif\\n}\\n\",vertexSource:\"attribute vec2 a_pos;\\n\\nuniform mat4 u_matrix;\\n\\nvoid main() {\\n gl_Position = u_matrix * vec4(a_pos, 0, 1);\\n}\\n\"},backgroundPattern:{fragmentSource:\"uniform vec2 u_pattern_tl_a;\\nuniform vec2 u_pattern_br_a;\\nuniform vec2 u_pattern_tl_b;\\nuniform vec2 u_pattern_br_b;\\nuniform vec2 u_texsize;\\nuniform float u_mix;\\nuniform float u_opacity;\\n\\nuniform sampler2D u_image;\\n\\nvarying vec2 v_pos_a;\\nvarying vec2 v_pos_b;\\n\\nvoid main() {\\n vec2 imagecoord = mod(v_pos_a, 1.0);\\n vec2 pos = mix(u_pattern_tl_a / u_texsize, u_pattern_br_a / u_texsize, imagecoord);\\n vec4 color1 = texture2D(u_image, pos);\\n\\n vec2 imagecoord_b = mod(v_pos_b, 1.0);\\n vec2 pos2 = mix(u_pattern_tl_b / u_texsize, u_pattern_br_b / u_texsize, imagecoord_b);\\n vec4 color2 = texture2D(u_image, pos2);\\n\\n gl_FragColor = mix(color1, color2, u_mix) * u_opacity;\\n\\n#ifdef OVERDRAW_INSPECTOR\\n gl_FragColor = vec4(1.0);\\n#endif\\n}\\n\",vertexSource:\"uniform mat4 u_matrix;\\nuniform vec2 u_pattern_size_a;\\nuniform vec2 u_pattern_size_b;\\nuniform vec2 u_pixel_coord_upper;\\nuniform vec2 u_pixel_coord_lower;\\nuniform float u_scale_a;\\nuniform float u_scale_b;\\nuniform float u_tile_units_to_pixels;\\n\\nattribute vec2 a_pos;\\n\\nvarying vec2 v_pos_a;\\nvarying vec2 v_pos_b;\\n\\nvoid main() {\\n gl_Position = u_matrix * vec4(a_pos, 0, 1);\\n\\n v_pos_a = get_pattern_pos(u_pixel_coord_upper, u_pixel_coord_lower, u_scale_a * u_pattern_size_a, u_tile_units_to_pixels, a_pos);\\n v_pos_b = get_pattern_pos(u_pixel_coord_upper, u_pixel_coord_lower, u_scale_b * u_pattern_size_b, u_tile_units_to_pixels, a_pos);\\n}\\n\"},circle:{fragmentSource:\"#pragma mapbox: define highp vec4 color\\n#pragma mapbox: define mediump float radius\\n#pragma mapbox: define lowp float blur\\n#pragma mapbox: define lowp float opacity\\n#pragma mapbox: define highp vec4 stroke_color\\n#pragma mapbox: define mediump float stroke_width\\n#pragma mapbox: define lowp float stroke_opacity\\n\\nvarying vec3 v_data;\\n\\nvoid main() {\\n #pragma mapbox: initialize highp vec4 color\\n #pragma mapbox: initialize mediump float radius\\n #pragma mapbox: initialize lowp float blur\\n #pragma mapbox: initialize lowp float opacity\\n #pragma mapbox: initialize highp vec4 stroke_color\\n #pragma mapbox: initialize mediump float stroke_width\\n #pragma mapbox: initialize lowp float stroke_opacity\\n\\n vec2 extrude = v_data.xy;\\n float extrude_length = length(extrude);\\n\\n lowp float antialiasblur = v_data.z;\\n float antialiased_blur = -max(blur, antialiasblur);\\n\\n float opacity_t = smoothstep(0.0, antialiased_blur, extrude_length - 1.0);\\n\\n float color_t = stroke_width < 0.01 ? 0.0 : smoothstep(\\n antialiased_blur,\\n 0.0,\\n extrude_length - radius / (radius + stroke_width)\\n );\\n\\n gl_FragColor = opacity_t * mix(color * opacity, stroke_color * stroke_opacity, color_t);\\n\\n#ifdef OVERDRAW_INSPECTOR\\n gl_FragColor = vec4(1.0);\\n#endif\\n}\\n\",vertexSource:\"uniform mat4 u_matrix;\\nuniform bool u_scale_with_map;\\nuniform bool u_pitch_with_map;\\nuniform vec2 u_extrude_scale;\\nuniform highp float u_camera_to_center_distance;\\n\\nattribute vec2 a_pos;\\n\\n#pragma mapbox: define highp vec4 color\\n#pragma mapbox: define mediump float radius\\n#pragma mapbox: define lowp float blur\\n#pragma mapbox: define lowp float opacity\\n#pragma mapbox: define highp vec4 stroke_color\\n#pragma mapbox: define mediump float stroke_width\\n#pragma mapbox: define lowp float stroke_opacity\\n\\nvarying vec3 v_data;\\n\\nvoid main(void) {\\n #pragma mapbox: initialize highp vec4 color\\n #pragma mapbox: initialize mediump float radius\\n #pragma mapbox: initialize lowp float blur\\n #pragma mapbox: initialize lowp float opacity\\n #pragma mapbox: initialize highp vec4 stroke_color\\n #pragma mapbox: initialize mediump float stroke_width\\n #pragma mapbox: initialize lowp float stroke_opacity\\n\\n // unencode the extrusion vector that we snuck into the a_pos vector\\n vec2 extrude = vec2(mod(a_pos, 2.0) * 2.0 - 1.0);\\n\\n // multiply a_pos by 0.5, since we had it * 2 in order to sneak\\n // in extrusion data\\n vec2 circle_center = floor(a_pos * 0.5);\\n if (u_pitch_with_map) {\\n vec2 corner_position = circle_center;\\n if (u_scale_with_map) {\\n corner_position += extrude * (radius + stroke_width) * u_extrude_scale;\\n } else {\\n // Pitching the circle with the map effectively scales it with the map\\n // To counteract the effect for pitch-scale: viewport, we rescale the\\n // whole circle based on the pitch scaling effect at its central point\\n vec4 projected_center = u_matrix * vec4(circle_center, 0, 1);\\n corner_position += extrude * (radius + stroke_width) * u_extrude_scale * (projected_center.w / u_camera_to_center_distance);\\n }\\n\\n gl_Position = u_matrix * vec4(corner_position, 0, 1);\\n } else {\\n gl_Position = u_matrix * vec4(circle_center, 0, 1);\\n\\n if (u_scale_with_map) {\\n gl_Position.xy += extrude * (radius + stroke_width) * u_extrude_scale * u_camera_to_center_distance;\\n } else {\\n gl_Position.xy += extrude * (radius + stroke_width) * u_extrude_scale * gl_Position.w;\\n }\\n }\\n\\n // This is a minimum blur distance that serves as a faux-antialiasing for\\n // the circle. since blur is a ratio of the circle's size and the intent is\\n // to keep the blur at roughly 1px, the two are inversely related.\\n lowp float antialiasblur = 1.0 / DEVICE_PIXEL_RATIO / (radius + stroke_width);\\n\\n v_data = vec3(extrude.x, extrude.y, antialiasblur);\\n}\\n\"},clippingMask:{fragmentSource:\"void main() {\\n gl_FragColor = vec4(1.0);\\n}\\n\",vertexSource:\"attribute vec2 a_pos;\\n\\nuniform mat4 u_matrix;\\n\\nvoid main() {\\n gl_Position = u_matrix * vec4(a_pos, 0, 1);\\n}\\n\"},heatmap:{fragmentSource:\"#pragma mapbox: define highp float weight\\n\\nuniform highp float u_intensity;\\nvarying vec2 v_extrude;\\n\\n// Gaussian kernel coefficient: 1 / sqrt(2 * PI)\\n#define GAUSS_COEF 0.3989422804014327\\n\\nvoid main() {\\n #pragma mapbox: initialize highp float weight\\n\\n // Kernel density estimation with a Gaussian kernel of size 5x5\\n float d = -0.5 * 3.0 * 3.0 * dot(v_extrude, v_extrude);\\n float val = weight * u_intensity * GAUSS_COEF * exp(d);\\n\\n gl_FragColor = vec4(val, 1.0, 1.0, 1.0);\\n\\n#ifdef OVERDRAW_INSPECTOR\\n gl_FragColor = vec4(1.0);\\n#endif\\n}\\n\",vertexSource:\"#pragma mapbox: define highp float weight\\n#pragma mapbox: define mediump float radius\\n\\nuniform mat4 u_matrix;\\nuniform float u_extrude_scale;\\nuniform float u_opacity;\\nuniform float u_intensity;\\n\\nattribute vec2 a_pos;\\n\\nvarying vec2 v_extrude;\\n\\n// Effective \\\"0\\\" in the kernel density texture to adjust the kernel size to;\\n// this empirically chosen number minimizes artifacts on overlapping kernels\\n// for typical heatmap cases (assuming clustered source)\\nconst highp float ZERO = 1.0 / 255.0 / 16.0;\\n\\n// Gaussian kernel coefficient: 1 / sqrt(2 * PI)\\n#define GAUSS_COEF 0.3989422804014327\\n\\nvoid main(void) {\\n #pragma mapbox: initialize highp float weight\\n #pragma mapbox: initialize mediump float radius\\n\\n // unencode the extrusion vector that we snuck into the a_pos vector\\n vec2 unscaled_extrude = vec2(mod(a_pos, 2.0) * 2.0 - 1.0);\\n\\n // This 'extrude' comes in ranging from [-1, -1], to [1, 1]. We'll use\\n // it to produce the vertices of a square mesh framing the point feature\\n // we're adding to the kernel density texture. We'll also pass it as\\n // a varying, so that the fragment shader can determine the distance of\\n // each fragment from the point feature.\\n // Before we do so, we need to scale it up sufficiently so that the\\n // kernel falls effectively to zero at the edge of the mesh.\\n // That is, we want to know S such that\\n // weight * u_intensity * GAUSS_COEF * exp(-0.5 * 3.0^2 * S^2) == ZERO\\n // Which solves to:\\n // S = sqrt(-2.0 * log(ZERO / (weight * u_intensity * GAUSS_COEF))) / 3.0\\n float S = sqrt(-2.0 * log(ZERO / weight / u_intensity / GAUSS_COEF)) / 3.0;\\n\\n // Pass the varying in units of radius\\n v_extrude = S * unscaled_extrude;\\n\\n // Scale by radius and the zoom-based scale factor to produce actual\\n // mesh position\\n vec2 extrude = v_extrude * radius * u_extrude_scale;\\n\\n // multiply a_pos by 0.5, since we had it * 2 in order to sneak\\n // in extrusion data\\n vec4 pos = vec4(floor(a_pos * 0.5) + extrude, 0, 1);\\n\\n gl_Position = u_matrix * pos;\\n}\\n\"},heatmapTexture:{fragmentSource:\"uniform sampler2D u_image;\\nuniform sampler2D u_color_ramp;\\nuniform float u_opacity;\\nvarying vec2 v_pos;\\n\\nvoid main() {\\n float t = texture2D(u_image, v_pos).r;\\n vec4 color = texture2D(u_color_ramp, vec2(t, 0.5));\\n gl_FragColor = color * u_opacity;\\n\\n#ifdef OVERDRAW_INSPECTOR\\n gl_FragColor = vec4(0.0);\\n#endif\\n}\\n\",vertexSource:\"uniform mat4 u_matrix;\\nuniform vec2 u_world;\\nattribute vec2 a_pos;\\nvarying vec2 v_pos;\\n\\nvoid main() {\\n gl_Position = u_matrix * vec4(a_pos * u_world, 0, 1);\\n\\n v_pos.x = a_pos.x;\\n v_pos.y = 1.0 - a_pos.y;\\n}\\n\"},collisionBox:{fragmentSource:\"\\nvarying float v_placed;\\nvarying float v_notUsed;\\n\\nvoid main() {\\n\\n float alpha = 0.5;\\n\\n // Red = collision, hide label\\n gl_FragColor = vec4(1.0, 0.0, 0.0, 1.0) * alpha;\\n\\n // Blue = no collision, label is showing\\n if (v_placed > 0.5) {\\n gl_FragColor = vec4(0.0, 0.0, 1.0, 0.5) * alpha;\\n }\\n\\n if (v_notUsed > 0.5) {\\n // This box not used, fade it out\\n gl_FragColor *= .1;\\n }\\n}\",vertexSource:\"attribute vec2 a_pos;\\nattribute vec2 a_anchor_pos;\\nattribute vec2 a_extrude;\\nattribute vec2 a_placed;\\n\\nuniform mat4 u_matrix;\\nuniform vec2 u_extrude_scale;\\nuniform float u_camera_to_center_distance;\\n\\nvarying float v_placed;\\nvarying float v_notUsed;\\n\\nvoid main() {\\n vec4 projectedPoint = u_matrix * vec4(a_anchor_pos, 0, 1);\\n highp float camera_to_anchor_distance = projectedPoint.w;\\n highp float collision_perspective_ratio = clamp(\\n 0.5 + 0.5 * (u_camera_to_center_distance / camera_to_anchor_distance),\\n 0.0, // Prevents oversized near-field boxes in pitched/overzoomed tiles\\n 4.0);\\n\\n gl_Position = u_matrix * vec4(a_pos, 0.0, 1.0);\\n gl_Position.xy += a_extrude * u_extrude_scale * gl_Position.w * collision_perspective_ratio;\\n\\n v_placed = a_placed.x;\\n v_notUsed = a_placed.y;\\n}\\n\"},collisionCircle:{fragmentSource:\"uniform float u_overscale_factor;\\n\\nvarying float v_placed;\\nvarying float v_notUsed;\\nvarying float v_radius;\\nvarying vec2 v_extrude;\\nvarying vec2 v_extrude_scale;\\n\\nvoid main() {\\n float alpha = 0.5;\\n\\n // Red = collision, hide label\\n vec4 color = vec4(1.0, 0.0, 0.0, 1.0) * alpha;\\n\\n // Blue = no collision, label is showing\\n if (v_placed > 0.5) {\\n color = vec4(0.0, 0.0, 1.0, 0.5) * alpha;\\n }\\n\\n if (v_notUsed > 0.5) {\\n // This box not used, fade it out\\n color *= .2;\\n }\\n\\n float extrude_scale_length = length(v_extrude_scale);\\n float extrude_length = length(v_extrude) * extrude_scale_length;\\n float stroke_width = 15.0 * extrude_scale_length / u_overscale_factor;\\n float radius = v_radius * extrude_scale_length;\\n\\n float distance_to_edge = abs(extrude_length - radius);\\n float opacity_t = smoothstep(-stroke_width, 0.0, -distance_to_edge);\\n\\n gl_FragColor = opacity_t * color;\\n}\\n\",vertexSource:\"attribute vec2 a_pos;\\nattribute vec2 a_anchor_pos;\\nattribute vec2 a_extrude;\\nattribute vec2 a_placed;\\n\\nuniform mat4 u_matrix;\\nuniform vec2 u_extrude_scale;\\nuniform float u_camera_to_center_distance;\\n\\nvarying float v_placed;\\nvarying float v_notUsed;\\nvarying float v_radius;\\n\\nvarying vec2 v_extrude;\\nvarying vec2 v_extrude_scale;\\n\\nvoid main() {\\n vec4 projectedPoint = u_matrix * vec4(a_anchor_pos, 0, 1);\\n highp float camera_to_anchor_distance = projectedPoint.w;\\n highp float collision_perspective_ratio = clamp(\\n 0.5 + 0.5 * (u_camera_to_center_distance / camera_to_anchor_distance),\\n 0.0, // Prevents oversized near-field circles in pitched/overzoomed tiles\\n 4.0);\\n\\n gl_Position = u_matrix * vec4(a_pos, 0.0, 1.0);\\n\\n highp float padding_factor = 1.2; // Pad the vertices slightly to make room for anti-alias blur\\n gl_Position.xy += a_extrude * u_extrude_scale * padding_factor * gl_Position.w * collision_perspective_ratio;\\n\\n v_placed = a_placed.x;\\n v_notUsed = a_placed.y;\\n v_radius = abs(a_extrude.y); // We don't pitch the circles, so both units of the extrusion vector are equal in magnitude to the radius\\n\\n v_extrude = a_extrude * padding_factor;\\n v_extrude_scale = u_extrude_scale * u_camera_to_center_distance * collision_perspective_ratio;\\n}\\n\"},debug:{fragmentSource:\"uniform highp vec4 u_color;\\n\\nvoid main() {\\n gl_FragColor = u_color;\\n}\\n\",vertexSource:\"attribute vec2 a_pos;\\n\\nuniform mat4 u_matrix;\\n\\nvoid main() {\\n gl_Position = u_matrix * vec4(a_pos, 0, 1);\\n}\\n\"},fill:{fragmentSource:\"#pragma mapbox: define highp vec4 color\\n#pragma mapbox: define lowp float opacity\\n\\nvoid main() {\\n #pragma mapbox: initialize highp vec4 color\\n #pragma mapbox: initialize lowp float opacity\\n\\n gl_FragColor = color * opacity;\\n\\n#ifdef OVERDRAW_INSPECTOR\\n gl_FragColor = vec4(1.0);\\n#endif\\n}\\n\",vertexSource:\"attribute vec2 a_pos;\\n\\nuniform mat4 u_matrix;\\n\\n#pragma mapbox: define highp vec4 color\\n#pragma mapbox: define lowp float opacity\\n\\nvoid main() {\\n #pragma mapbox: initialize highp vec4 color\\n #pragma mapbox: initialize lowp float opacity\\n\\n gl_Position = u_matrix * vec4(a_pos, 0, 1);\\n}\\n\"},fillOutline:{fragmentSource:\"#pragma mapbox: define highp vec4 outline_color\\n#pragma mapbox: define lowp float opacity\\n\\nvarying vec2 v_pos;\\n\\nvoid main() {\\n #pragma mapbox: initialize highp vec4 outline_color\\n #pragma mapbox: initialize lowp float opacity\\n\\n float dist = length(v_pos - gl_FragCoord.xy);\\n float alpha = 1.0 - smoothstep(0.0, 1.0, dist);\\n gl_FragColor = outline_color * (alpha * opacity);\\n\\n#ifdef OVERDRAW_INSPECTOR\\n gl_FragColor = vec4(1.0);\\n#endif\\n}\\n\",vertexSource:\"attribute vec2 a_pos;\\n\\nuniform mat4 u_matrix;\\nuniform vec2 u_world;\\n\\nvarying vec2 v_pos;\\n\\n#pragma mapbox: define highp vec4 outline_color\\n#pragma mapbox: define lowp float opacity\\n\\nvoid main() {\\n #pragma mapbox: initialize highp vec4 outline_color\\n #pragma mapbox: initialize lowp float opacity\\n\\n gl_Position = u_matrix * vec4(a_pos, 0, 1);\\n v_pos = (gl_Position.xy / gl_Position.w + 1.0) / 2.0 * u_world;\\n}\\n\"},fillOutlinePattern:{fragmentSource:\"uniform vec2 u_pattern_tl_a;\\nuniform vec2 u_pattern_br_a;\\nuniform vec2 u_pattern_tl_b;\\nuniform vec2 u_pattern_br_b;\\nuniform vec2 u_texsize;\\nuniform float u_mix;\\n\\nuniform sampler2D u_image;\\n\\nvarying vec2 v_pos_a;\\nvarying vec2 v_pos_b;\\nvarying vec2 v_pos;\\n\\n#pragma mapbox: define lowp float opacity\\n\\nvoid main() {\\n #pragma mapbox: initialize lowp float opacity\\n\\n vec2 imagecoord = mod(v_pos_a, 1.0);\\n vec2 pos = mix(u_pattern_tl_a / u_texsize, u_pattern_br_a / u_texsize, imagecoord);\\n vec4 color1 = texture2D(u_image, pos);\\n\\n vec2 imagecoord_b = mod(v_pos_b, 1.0);\\n vec2 pos2 = mix(u_pattern_tl_b / u_texsize, u_pattern_br_b / u_texsize, imagecoord_b);\\n vec4 color2 = texture2D(u_image, pos2);\\n\\n // find distance to outline for alpha interpolation\\n\\n float dist = length(v_pos - gl_FragCoord.xy);\\n float alpha = 1.0 - smoothstep(0.0, 1.0, dist);\\n\\n\\n gl_FragColor = mix(color1, color2, u_mix) * alpha * opacity;\\n\\n#ifdef OVERDRAW_INSPECTOR\\n gl_FragColor = vec4(1.0);\\n#endif\\n}\\n\",vertexSource:\"uniform mat4 u_matrix;\\nuniform vec2 u_world;\\nuniform vec2 u_pattern_size_a;\\nuniform vec2 u_pattern_size_b;\\nuniform vec2 u_pixel_coord_upper;\\nuniform vec2 u_pixel_coord_lower;\\nuniform float u_scale_a;\\nuniform float u_scale_b;\\nuniform float u_tile_units_to_pixels;\\n\\nattribute vec2 a_pos;\\n\\nvarying vec2 v_pos_a;\\nvarying vec2 v_pos_b;\\nvarying vec2 v_pos;\\n\\n#pragma mapbox: define lowp float opacity\\n\\nvoid main() {\\n #pragma mapbox: initialize lowp float opacity\\n\\n gl_Position = u_matrix * vec4(a_pos, 0, 1);\\n\\n v_pos_a = get_pattern_pos(u_pixel_coord_upper, u_pixel_coord_lower, u_scale_a * u_pattern_size_a, u_tile_units_to_pixels, a_pos);\\n v_pos_b = get_pattern_pos(u_pixel_coord_upper, u_pixel_coord_lower, u_scale_b * u_pattern_size_b, u_tile_units_to_pixels, a_pos);\\n\\n v_pos = (gl_Position.xy / gl_Position.w + 1.0) / 2.0 * u_world;\\n}\\n\"},fillPattern:{fragmentSource:\"uniform vec2 u_pattern_tl_a;\\nuniform vec2 u_pattern_br_a;\\nuniform vec2 u_pattern_tl_b;\\nuniform vec2 u_pattern_br_b;\\nuniform vec2 u_texsize;\\nuniform float u_mix;\\n\\nuniform sampler2D u_image;\\n\\nvarying vec2 v_pos_a;\\nvarying vec2 v_pos_b;\\n\\n#pragma mapbox: define lowp float opacity\\n\\nvoid main() {\\n #pragma mapbox: initialize lowp float opacity\\n\\n vec2 imagecoord = mod(v_pos_a, 1.0);\\n vec2 pos = mix(u_pattern_tl_a / u_texsize, u_pattern_br_a / u_texsize, imagecoord);\\n vec4 color1 = texture2D(u_image, pos);\\n\\n vec2 imagecoord_b = mod(v_pos_b, 1.0);\\n vec2 pos2 = mix(u_pattern_tl_b / u_texsize, u_pattern_br_b / u_texsize, imagecoord_b);\\n vec4 color2 = texture2D(u_image, pos2);\\n\\n gl_FragColor = mix(color1, color2, u_mix) * opacity;\\n\\n#ifdef OVERDRAW_INSPECTOR\\n gl_FragColor = vec4(1.0);\\n#endif\\n}\\n\",vertexSource:\"uniform mat4 u_matrix;\\nuniform vec2 u_pattern_size_a;\\nuniform vec2 u_pattern_size_b;\\nuniform vec2 u_pixel_coord_upper;\\nuniform vec2 u_pixel_coord_lower;\\nuniform float u_scale_a;\\nuniform float u_scale_b;\\nuniform float u_tile_units_to_pixels;\\n\\nattribute vec2 a_pos;\\n\\nvarying vec2 v_pos_a;\\nvarying vec2 v_pos_b;\\n\\n#pragma mapbox: define lowp float opacity\\n\\nvoid main() {\\n #pragma mapbox: initialize lowp float opacity\\n\\n gl_Position = u_matrix * vec4(a_pos, 0, 1);\\n\\n v_pos_a = get_pattern_pos(u_pixel_coord_upper, u_pixel_coord_lower, u_scale_a * u_pattern_size_a, u_tile_units_to_pixels, a_pos);\\n v_pos_b = get_pattern_pos(u_pixel_coord_upper, u_pixel_coord_lower, u_scale_b * u_pattern_size_b, u_tile_units_to_pixels, a_pos);\\n}\\n\"},fillExtrusion:{fragmentSource:\"varying vec4 v_color;\\n#pragma mapbox: define lowp float base\\n#pragma mapbox: define lowp float height\\n#pragma mapbox: define highp vec4 color\\n\\nvoid main() {\\n #pragma mapbox: initialize lowp float base\\n #pragma mapbox: initialize lowp float height\\n #pragma mapbox: initialize highp vec4 color\\n\\n gl_FragColor = v_color;\\n\\n#ifdef OVERDRAW_INSPECTOR\\n gl_FragColor = vec4(1.0);\\n#endif\\n}\\n\",vertexSource:\"uniform mat4 u_matrix;\\nuniform vec3 u_lightcolor;\\nuniform lowp vec3 u_lightpos;\\nuniform lowp float u_lightintensity;\\n\\nattribute vec2 a_pos;\\nattribute vec4 a_normal_ed;\\n\\nvarying vec4 v_color;\\n\\n#pragma mapbox: define lowp float base\\n#pragma mapbox: define lowp float height\\n\\n#pragma mapbox: define highp vec4 color\\n\\nvoid main() {\\n #pragma mapbox: initialize lowp float base\\n #pragma mapbox: initialize lowp float height\\n #pragma mapbox: initialize highp vec4 color\\n\\n vec3 normal = a_normal_ed.xyz;\\n\\n base = max(0.0, base);\\n height = max(0.0, height);\\n\\n float t = mod(normal.x, 2.0);\\n\\n gl_Position = u_matrix * vec4(a_pos, t > 0.0 ? height : base, 1);\\n\\n // Relative luminance (how dark/bright is the surface color?)\\n float colorvalue = color.r * 0.2126 + color.g * 0.7152 + color.b * 0.0722;\\n\\n v_color = vec4(0.0, 0.0, 0.0, 1.0);\\n\\n // Add slight ambient lighting so no extrusions are totally black\\n vec4 ambientlight = vec4(0.03, 0.03, 0.03, 1.0);\\n color += ambientlight;\\n\\n // Calculate cos(theta), where theta is the angle between surface normal and diffuse light ray\\n float directional = clamp(dot(normal / 16384.0, u_lightpos), 0.0, 1.0);\\n\\n // Adjust directional so that\\n // the range of values for highlight/shading is narrower\\n // with lower light intensity\\n // and with lighter/brighter surface colors\\n directional = mix((1.0 - u_lightintensity), max((1.0 - colorvalue + u_lightintensity), 1.0), directional);\\n\\n // Add gradient along z axis of side surfaces\\n if (normal.y != 0.0) {\\n directional *= clamp((t + base) * pow(height / 150.0, 0.5), mix(0.7, 0.98, 1.0 - u_lightintensity), 1.0);\\n }\\n\\n // Assign final color based on surface + ambient light color, diffuse light directional, and light color\\n // with lower bounds adjusted to hue of light\\n // so that shading is tinted with the complementary (opposite) color to the light color\\n v_color.r += clamp(color.r * directional * u_lightcolor.r, mix(0.0, 0.3, 1.0 - u_lightcolor.r), 1.0);\\n v_color.g += clamp(color.g * directional * u_lightcolor.g, mix(0.0, 0.3, 1.0 - u_lightcolor.g), 1.0);\\n v_color.b += clamp(color.b * directional * u_lightcolor.b, mix(0.0, 0.3, 1.0 - u_lightcolor.b), 1.0);\\n}\\n\"},fillExtrusionPattern:{fragmentSource:\"uniform vec2 u_pattern_tl_a;\\nuniform vec2 u_pattern_br_a;\\nuniform vec2 u_pattern_tl_b;\\nuniform vec2 u_pattern_br_b;\\nuniform vec2 u_texsize;\\nuniform float u_mix;\\n\\nuniform sampler2D u_image;\\n\\nvarying vec2 v_pos_a;\\nvarying vec2 v_pos_b;\\nvarying vec4 v_lighting;\\n\\n#pragma mapbox: define lowp float base\\n#pragma mapbox: define lowp float height\\n\\nvoid main() {\\n #pragma mapbox: initialize lowp float base\\n #pragma mapbox: initialize lowp float height\\n\\n vec2 imagecoord = mod(v_pos_a, 1.0);\\n vec2 pos = mix(u_pattern_tl_a / u_texsize, u_pattern_br_a / u_texsize, imagecoord);\\n vec4 color1 = texture2D(u_image, pos);\\n\\n vec2 imagecoord_b = mod(v_pos_b, 1.0);\\n vec2 pos2 = mix(u_pattern_tl_b / u_texsize, u_pattern_br_b / u_texsize, imagecoord_b);\\n vec4 color2 = texture2D(u_image, pos2);\\n\\n vec4 mixedColor = mix(color1, color2, u_mix);\\n\\n gl_FragColor = mixedColor * v_lighting;\\n\\n#ifdef OVERDRAW_INSPECTOR\\n gl_FragColor = vec4(1.0);\\n#endif\\n}\\n\",vertexSource:\"uniform mat4 u_matrix;\\nuniform vec2 u_pattern_size_a;\\nuniform vec2 u_pattern_size_b;\\nuniform vec2 u_pixel_coord_upper;\\nuniform vec2 u_pixel_coord_lower;\\nuniform float u_scale_a;\\nuniform float u_scale_b;\\nuniform float u_tile_units_to_pixels;\\nuniform float u_height_factor;\\n\\nuniform vec3 u_lightcolor;\\nuniform lowp vec3 u_lightpos;\\nuniform lowp float u_lightintensity;\\n\\nattribute vec2 a_pos;\\nattribute vec4 a_normal_ed;\\n\\nvarying vec2 v_pos_a;\\nvarying vec2 v_pos_b;\\nvarying vec4 v_lighting;\\nvarying float v_directional;\\n\\n#pragma mapbox: define lowp float base\\n#pragma mapbox: define lowp float height\\n\\nvoid main() {\\n #pragma mapbox: initialize lowp float base\\n #pragma mapbox: initialize lowp float height\\n\\n vec3 normal = a_normal_ed.xyz;\\n float edgedistance = a_normal_ed.w;\\n\\n base = max(0.0, base);\\n height = max(0.0, height);\\n\\n float t = mod(normal.x, 2.0);\\n float z = t > 0.0 ? height : base;\\n\\n gl_Position = u_matrix * vec4(a_pos, z, 1);\\n\\n vec2 pos = normal.x == 1.0 && normal.y == 0.0 && normal.z == 16384.0\\n ? a_pos // extrusion top\\n : vec2(edgedistance, z * u_height_factor); // extrusion side\\n\\n v_pos_a = get_pattern_pos(u_pixel_coord_upper, u_pixel_coord_lower, u_scale_a * u_pattern_size_a, u_tile_units_to_pixels, pos);\\n v_pos_b = get_pattern_pos(u_pixel_coord_upper, u_pixel_coord_lower, u_scale_b * u_pattern_size_b, u_tile_units_to_pixels, pos);\\n\\n v_lighting = vec4(0.0, 0.0, 0.0, 1.0);\\n float directional = clamp(dot(normal / 16383.0, u_lightpos), 0.0, 1.0);\\n directional = mix((1.0 - u_lightintensity), max((0.5 + u_lightintensity), 1.0), directional);\\n\\n if (normal.y != 0.0) {\\n directional *= clamp((t + base) * pow(height / 150.0, 0.5), mix(0.7, 0.98, 1.0 - u_lightintensity), 1.0);\\n }\\n\\n v_lighting.rgb += clamp(directional * u_lightcolor, mix(vec3(0.0), vec3(0.3), 1.0 - u_lightcolor), vec3(1.0));\\n}\\n\"},extrusionTexture:{fragmentSource:\"uniform sampler2D u_image;\\nuniform float u_opacity;\\nvarying vec2 v_pos;\\n\\nvoid main() {\\n gl_FragColor = texture2D(u_image, v_pos) * u_opacity;\\n\\n#ifdef OVERDRAW_INSPECTOR\\n gl_FragColor = vec4(0.0);\\n#endif\\n}\\n\",vertexSource:\"uniform mat4 u_matrix;\\nuniform vec2 u_world;\\nattribute vec2 a_pos;\\nvarying vec2 v_pos;\\n\\nvoid main() {\\n gl_Position = u_matrix * vec4(a_pos * u_world, 0, 1);\\n\\n v_pos.x = a_pos.x;\\n v_pos.y = 1.0 - a_pos.y;\\n}\\n\"},hillshadePrepare:{fragmentSource:\"#ifdef GL_ES\\nprecision highp float;\\n#endif\\n\\nuniform sampler2D u_image;\\nvarying vec2 v_pos;\\nuniform vec2 u_dimension;\\nuniform float u_zoom;\\nuniform float u_maxzoom;\\n\\nfloat getElevation(vec2 coord, float bias) {\\n // Convert encoded elevation value to meters\\n vec4 data = texture2D(u_image, coord) * 255.0;\\n return (data.r + data.g * 256.0 + data.b * 256.0 * 256.0) / 4.0;\\n}\\n\\nvoid main() {\\n vec2 epsilon = 1.0 / u_dimension;\\n\\n // queried pixels:\\n // +-----------+\\n // | | | |\\n // | a | b | c |\\n // | | | |\\n // +-----------+\\n // | | | |\\n // | d | e | f |\\n // | | | |\\n // +-----------+\\n // | | | |\\n // | g | h | i |\\n // | | | |\\n // +-----------+\\n\\n float a = getElevation(v_pos + vec2(-epsilon.x, -epsilon.y), 0.0);\\n float b = getElevation(v_pos + vec2(0, -epsilon.y), 0.0);\\n float c = getElevation(v_pos + vec2(epsilon.x, -epsilon.y), 0.0);\\n float d = getElevation(v_pos + vec2(-epsilon.x, 0), 0.0);\\n float e = getElevation(v_pos, 0.0);\\n float f = getElevation(v_pos + vec2(epsilon.x, 0), 0.0);\\n float g = getElevation(v_pos + vec2(-epsilon.x, epsilon.y), 0.0);\\n float h = getElevation(v_pos + vec2(0, epsilon.y), 0.0);\\n float i = getElevation(v_pos + vec2(epsilon.x, epsilon.y), 0.0);\\n\\n // here we divide the x and y slopes by 8 * pixel size\\n // where pixel size (aka meters/pixel) is:\\n // circumference of the world / (pixels per tile * number of tiles)\\n // which is equivalent to: 8 * 40075016.6855785 / (512 * pow(2, u_zoom))\\n // which can be reduced to: pow(2, 19.25619978527 - u_zoom)\\n // we want to vertically exaggerate the hillshading though, because otherwise\\n // it is barely noticeable at low zooms. to do this, we multiply this by some\\n // scale factor pow(2, (u_zoom - u_maxzoom) * a) where a is an arbitrary value\\n // Here we use a=0.3 which works out to the expression below. see \\n // nickidlugash's awesome breakdown for more info\\n // https://github.com/mapbox/mapbox-gl-js/pull/5286#discussion_r148419556\\n float exaggeration = u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;\\n\\n vec2 deriv = vec2(\\n (c + f + f + i) - (a + d + d + g),\\n (g + h + h + i) - (a + b + b + c)\\n ) / pow(2.0, (u_zoom - u_maxzoom) * exaggeration + 19.2562 - u_zoom);\\n\\n gl_FragColor = clamp(vec4(\\n deriv.x / 2.0 + 0.5,\\n deriv.y / 2.0 + 0.5,\\n 1.0,\\n 1.0), 0.0, 1.0);\\n\\n#ifdef OVERDRAW_INSPECTOR\\n gl_FragColor = vec4(1.0);\\n#endif\\n}\\n\",vertexSource:\"uniform mat4 u_matrix;\\n\\nattribute vec2 a_pos;\\nattribute vec2 a_texture_pos;\\n\\nvarying vec2 v_pos;\\n\\nvoid main() {\\n gl_Position = u_matrix * vec4(a_pos, 0, 1);\\n v_pos = (a_texture_pos / 8192.0) / 2.0 + 0.25;\\n}\\n\"},hillshade:{fragmentSource:\"uniform sampler2D u_image;\\nvarying vec2 v_pos;\\n\\nuniform vec2 u_latrange;\\nuniform vec2 u_light;\\nuniform vec4 u_shadow;\\nuniform vec4 u_highlight;\\nuniform vec4 u_accent;\\n\\n#define PI 3.141592653589793\\n\\nvoid main() {\\n vec4 pixel = texture2D(u_image, v_pos);\\n\\n vec2 deriv = ((pixel.rg * 2.0) - 1.0);\\n\\n // We divide the slope by a scale factor based on the cosin of the pixel's approximate latitude\\n // to account for mercator projection distortion. see #4807 for details\\n float scaleFactor = cos(radians((u_latrange[0] - u_latrange[1]) * (1.0 - v_pos.y) + u_latrange[1]));\\n // We also multiply the slope by an arbitrary z-factor of 1.25\\n float slope = atan(1.25 * length(deriv) / scaleFactor);\\n float aspect = deriv.x != 0.0 ? atan(deriv.y, -deriv.x) : PI / 2.0 * (deriv.y > 0.0 ? 1.0 : -1.0);\\n\\n float intensity = u_light.x;\\n // We add PI to make this property match the global light object, which adds PI/2 to the light's azimuthal\\n // position property to account for 0deg corresponding to north/the top of the viewport in the style spec\\n // and the original shader was written to accept (-illuminationDirection - 90) as the azimuthal.\\n float azimuth = u_light.y + PI;\\n\\n // We scale the slope exponentially based on intensity, using a calculation similar to\\n // the exponential interpolation function in the style spec:\\n // https://github.com/mapbox/mapbox-gl-js/blob/master/src/style-spec/expression/definitions/interpolate.js#L217-L228\\n // so that higher intensity values create more opaque hillshading.\\n float base = 1.875 - intensity * 1.75;\\n float maxValue = 0.5 * PI;\\n float scaledSlope = intensity != 0.5 ? ((pow(base, slope) - 1.0) / (pow(base, maxValue) - 1.0)) * maxValue : slope;\\n\\n // The accent color is calculated with the cosine of the slope while the shade color is calculated with the sine\\n // so that the accent color's rate of change eases in while the shade color's eases out.\\n float accent = cos(scaledSlope);\\n // We multiply both the accent and shade color by a clamped intensity value\\n // so that intensities >= 0.5 do not additionally affect the color values\\n // while intensity values < 0.5 make the overall color more transparent.\\n vec4 accent_color = (1.0 - accent) * u_accent * clamp(intensity * 2.0, 0.0, 1.0);\\n float shade = abs(mod((aspect + azimuth) / PI + 0.5, 2.0) - 1.0);\\n vec4 shade_color = mix(u_shadow, u_highlight, shade) * sin(scaledSlope) * clamp(intensity * 2.0, 0.0, 1.0);\\n gl_FragColor = accent_color * (1.0 - shade_color.a) + shade_color;\\n\\n#ifdef OVERDRAW_INSPECTOR\\n gl_FragColor = vec4(1.0);\\n#endif\\n}\\n\",vertexSource:\"uniform mat4 u_matrix;\\n\\nattribute vec2 a_pos;\\nattribute vec2 a_texture_pos;\\n\\nvarying vec2 v_pos;\\n\\nvoid main() {\\n gl_Position = u_matrix * vec4(a_pos, 0, 1);\\n v_pos = a_texture_pos / 8192.0;\\n}\\n\"},line:{fragmentSource:\"#pragma mapbox: define highp vec4 color\\n#pragma mapbox: define lowp float blur\\n#pragma mapbox: define lowp float opacity\\n\\nvarying vec2 v_width2;\\nvarying vec2 v_normal;\\nvarying float v_gamma_scale;\\n\\nvoid main() {\\n #pragma mapbox: initialize highp vec4 color\\n #pragma mapbox: initialize lowp float blur\\n #pragma mapbox: initialize lowp float opacity\\n\\n // Calculate the distance of the pixel from the line in pixels.\\n float dist = length(v_normal) * v_width2.s;\\n\\n // Calculate the antialiasing fade factor. This is either when fading in\\n // the line in case of an offset line (v_width2.t) or when fading out\\n // (v_width2.s)\\n float blur2 = (blur + 1.0 / DEVICE_PIXEL_RATIO) * v_gamma_scale;\\n float alpha = clamp(min(dist - (v_width2.t - blur2), v_width2.s - dist) / blur2, 0.0, 1.0);\\n\\n gl_FragColor = color * (alpha * opacity);\\n\\n#ifdef OVERDRAW_INSPECTOR\\n gl_FragColor = vec4(1.0);\\n#endif\\n}\\n\",vertexSource:\"\\n\\n// the distance over which the line edge fades out.\\n// Retina devices need a smaller distance to avoid aliasing.\\n#define ANTIALIASING 1.0 / DEVICE_PIXEL_RATIO / 2.0\\n\\n// floor(127 / 2) == 63.0\\n// the maximum allowed miter limit is 2.0 at the moment. the extrude normal is\\n// stored in a byte (-128..127). we scale regular normals up to length 63, but\\n// there are also \\\"special\\\" normals that have a bigger length (of up to 126 in\\n// this case).\\n// #define scale 63.0\\n#define scale 0.015873016\\n\\nattribute vec4 a_pos_normal;\\nattribute vec4 a_data;\\n\\nuniform mat4 u_matrix;\\nuniform mediump float u_ratio;\\nuniform vec2 u_gl_units_to_pixels;\\n\\nvarying vec2 v_normal;\\nvarying vec2 v_width2;\\nvarying float v_gamma_scale;\\nvarying highp float v_linesofar;\\n\\n#pragma mapbox: define highp vec4 color\\n#pragma mapbox: define lowp float blur\\n#pragma mapbox: define lowp float opacity\\n#pragma mapbox: define mediump float gapwidth\\n#pragma mapbox: define lowp float offset\\n#pragma mapbox: define mediump float width\\n\\nvoid main() {\\n #pragma mapbox: initialize highp vec4 color\\n #pragma mapbox: initialize lowp float blur\\n #pragma mapbox: initialize lowp float opacity\\n #pragma mapbox: initialize mediump float gapwidth\\n #pragma mapbox: initialize lowp float offset\\n #pragma mapbox: initialize mediump float width\\n\\n vec2 a_extrude = a_data.xy - 128.0;\\n float a_direction = mod(a_data.z, 4.0) - 1.0;\\n\\n v_linesofar = (floor(a_data.z / 4.0) + a_data.w * 64.0) * 2.0;\\n\\n vec2 pos = a_pos_normal.xy;\\n\\n // x is 1 if it's a round cap, 0 otherwise\\n // y is 1 if the normal points up, and -1 if it points down\\n mediump vec2 normal = a_pos_normal.zw;\\n v_normal = normal;\\n\\n // these transformations used to be applied in the JS and native code bases.\\n // moved them into the shader for clarity and simplicity.\\n gapwidth = gapwidth / 2.0;\\n float halfwidth = width / 2.0;\\n offset = -1.0 * offset;\\n\\n float inset = gapwidth + (gapwidth > 0.0 ? ANTIALIASING : 0.0);\\n float outset = gapwidth + halfwidth * (gapwidth > 0.0 ? 2.0 : 1.0) + ANTIALIASING;\\n\\n // Scale the extrusion vector down to a normal and then up by the line width\\n // of this vertex.\\n mediump vec2 dist = outset * a_extrude * scale;\\n\\n // Calculate the offset when drawing a line that is to the side of the actual line.\\n // We do this by creating a vector that points towards the extrude, but rotate\\n // it when we're drawing round end points (a_direction = -1 or 1) since their\\n // extrude vector points in another direction.\\n mediump float u = 0.5 * a_direction;\\n mediump float t = 1.0 - abs(u);\\n mediump vec2 offset2 = offset * a_extrude * scale * normal.y * mat2(t, -u, u, t);\\n\\n vec4 projected_extrude = u_matrix * vec4(dist / u_ratio, 0.0, 0.0);\\n gl_Position = u_matrix * vec4(pos + offset2 / u_ratio, 0.0, 1.0) + projected_extrude;\\n\\n // calculate how much the perspective view squishes or stretches the extrude\\n float extrude_length_without_perspective = length(dist);\\n float extrude_length_with_perspective = length(projected_extrude.xy / gl_Position.w * u_gl_units_to_pixels);\\n v_gamma_scale = extrude_length_without_perspective / extrude_length_with_perspective;\\n\\n v_width2 = vec2(outset, inset);\\n}\\n\"},lineGradient:{fragmentSource:\"\\n#pragma mapbox: define lowp float blur\\n#pragma mapbox: define lowp float opacity\\n\\nuniform sampler2D u_image;\\n\\nvarying vec2 v_width2;\\nvarying vec2 v_normal;\\nvarying float v_gamma_scale;\\nvarying highp float v_lineprogress;\\n\\nvoid main() {\\n #pragma mapbox: initialize lowp float blur\\n #pragma mapbox: initialize lowp float opacity\\n\\n // Calculate the distance of the pixel from the line in pixels.\\n float dist = length(v_normal) * v_width2.s;\\n\\n // Calculate the antialiasing fade factor. This is either when fading in\\n // the line in case of an offset line (v_width2.t) or when fading out\\n // (v_width2.s)\\n float blur2 = (blur + 1.0 / DEVICE_PIXEL_RATIO) * v_gamma_scale;\\n float alpha = clamp(min(dist - (v_width2.t - blur2), v_width2.s - dist) / blur2, 0.0, 1.0);\\n\\n // For gradient lines, v_lineprogress is the ratio along the entire line,\\n // scaled to [0, 2^15), and the gradient ramp is stored in a texture.\\n vec4 color = texture2D(u_image, vec2(v_lineprogress, 0.5));\\n\\n gl_FragColor = color * (alpha * opacity);\\n\\n#ifdef OVERDRAW_INSPECTOR\\n gl_FragColor = vec4(1.0);\\n#endif\\n}\\n\",vertexSource:\"\\n// the attribute conveying progress along a line is scaled to [0, 2^15)\\n#define MAX_LINE_DISTANCE 32767.0\\n\\n// the distance over which the line edge fades out.\\n// Retina devices need a smaller distance to avoid aliasing.\\n#define ANTIALIASING 1.0 / DEVICE_PIXEL_RATIO / 2.0\\n\\n// floor(127 / 2) == 63.0\\n// the maximum allowed miter limit is 2.0 at the moment. the extrude normal is\\n// stored in a byte (-128..127). we scale regular normals up to length 63, but\\n// there are also \\\"special\\\" normals that have a bigger length (of up to 126 in\\n// this case).\\n// #define scale 63.0\\n#define scale 0.015873016\\n\\nattribute vec4 a_pos_normal;\\nattribute vec4 a_data;\\n\\nuniform mat4 u_matrix;\\nuniform mediump float u_ratio;\\nuniform vec2 u_gl_units_to_pixels;\\n\\nvarying vec2 v_normal;\\nvarying vec2 v_width2;\\nvarying float v_gamma_scale;\\nvarying highp float v_lineprogress;\\n\\n#pragma mapbox: define lowp float blur\\n#pragma mapbox: define lowp float opacity\\n#pragma mapbox: define mediump float gapwidth\\n#pragma mapbox: define lowp float offset\\n#pragma mapbox: define mediump float width\\n\\nvoid main() {\\n #pragma mapbox: initialize lowp float blur\\n #pragma mapbox: initialize lowp float opacity\\n #pragma mapbox: initialize mediump float gapwidth\\n #pragma mapbox: initialize lowp float offset\\n #pragma mapbox: initialize mediump float width\\n\\n vec2 a_extrude = a_data.xy - 128.0;\\n float a_direction = mod(a_data.z, 4.0) - 1.0;\\n\\n v_lineprogress = (floor(a_data.z / 4.0) + a_data.w * 64.0) * 2.0 / MAX_LINE_DISTANCE;\\n\\n vec2 pos = a_pos_normal.xy;\\n\\n // x is 1 if it's a round cap, 0 otherwise\\n // y is 1 if the normal points up, and -1 if it points down\\n mediump vec2 normal = a_pos_normal.zw;\\n v_normal = normal;\\n\\n // these transformations used to be applied in the JS and native code bases.\\n // moved them into the shader for clarity and simplicity.\\n gapwidth = gapwidth / 2.0;\\n float halfwidth = width / 2.0;\\n offset = -1.0 * offset;\\n\\n float inset = gapwidth + (gapwidth > 0.0 ? ANTIALIASING : 0.0);\\n float outset = gapwidth + halfwidth * (gapwidth > 0.0 ? 2.0 : 1.0) + ANTIALIASING;\\n\\n // Scale the extrusion vector down to a normal and then up by the line width\\n // of this vertex.\\n mediump vec2 dist = outset * a_extrude * scale;\\n\\n // Calculate the offset when drawing a line that is to the side of the actual line.\\n // We do this by creating a vector that points towards the extrude, but rotate\\n // it when we're drawing round end points (a_direction = -1 or 1) since their\\n // extrude vector points in another direction.\\n mediump float u = 0.5 * a_direction;\\n mediump float t = 1.0 - abs(u);\\n mediump vec2 offset2 = offset * a_extrude * scale * normal.y * mat2(t, -u, u, t);\\n\\n vec4 projected_extrude = u_matrix * vec4(dist / u_ratio, 0.0, 0.0);\\n gl_Position = u_matrix * vec4(pos + offset2 / u_ratio, 0.0, 1.0) + projected_extrude;\\n\\n // calculate how much the perspective view squishes or stretches the extrude\\n float extrude_length_without_perspective = length(dist);\\n float extrude_length_with_perspective = length(projected_extrude.xy / gl_Position.w * u_gl_units_to_pixels);\\n v_gamma_scale = extrude_length_without_perspective / extrude_length_with_perspective;\\n\\n v_width2 = vec2(outset, inset);\\n}\\n\"},linePattern:{fragmentSource:\"uniform vec2 u_pattern_size_a;\\nuniform vec2 u_pattern_size_b;\\nuniform vec2 u_pattern_tl_a;\\nuniform vec2 u_pattern_br_a;\\nuniform vec2 u_pattern_tl_b;\\nuniform vec2 u_pattern_br_b;\\nuniform vec2 u_texsize;\\nuniform float u_fade;\\n\\nuniform sampler2D u_image;\\n\\nvarying vec2 v_normal;\\nvarying vec2 v_width2;\\nvarying float v_linesofar;\\nvarying float v_gamma_scale;\\n\\n#pragma mapbox: define lowp float blur\\n#pragma mapbox: define lowp float opacity\\n\\nvoid main() {\\n #pragma mapbox: initialize lowp float blur\\n #pragma mapbox: initialize lowp float opacity\\n\\n // Calculate the distance of the pixel from the line in pixels.\\n float dist = length(v_normal) * v_width2.s;\\n\\n // Calculate the antialiasing fade factor. This is either when fading in\\n // the line in case of an offset line (v_width2.t) or when fading out\\n // (v_width2.s)\\n float blur2 = (blur + 1.0 / DEVICE_PIXEL_RATIO) * v_gamma_scale;\\n float alpha = clamp(min(dist - (v_width2.t - blur2), v_width2.s - dist) / blur2, 0.0, 1.0);\\n\\n float x_a = mod(v_linesofar / u_pattern_size_a.x, 1.0);\\n float x_b = mod(v_linesofar / u_pattern_size_b.x, 1.0);\\n\\n // v_normal.y is 0 at the midpoint of the line, -1 at the lower edge, 1 at the upper edge\\n // we clamp the line width outset to be between 0 and half the pattern height plus padding (2.0)\\n // to ensure we don't sample outside the designated symbol on the sprite sheet.\\n // 0.5 is added to shift the component to be bounded between 0 and 1 for interpolation of\\n // the texture coordinate\\n float y_a = 0.5 + (v_normal.y * clamp(v_width2.s, 0.0, (u_pattern_size_a.y + 2.0) / 2.0) / u_pattern_size_a.y);\\n float y_b = 0.5 + (v_normal.y * clamp(v_width2.s, 0.0, (u_pattern_size_b.y + 2.0) / 2.0) / u_pattern_size_b.y);\\n vec2 pos_a = mix(u_pattern_tl_a / u_texsize, u_pattern_br_a / u_texsize, vec2(x_a, y_a));\\n vec2 pos_b = mix(u_pattern_tl_b / u_texsize, u_pattern_br_b / u_texsize, vec2(x_b, y_b));\\n\\n vec4 color = mix(texture2D(u_image, pos_a), texture2D(u_image, pos_b), u_fade);\\n\\n gl_FragColor = color * alpha * opacity;\\n\\n#ifdef OVERDRAW_INSPECTOR\\n gl_FragColor = vec4(1.0);\\n#endif\\n}\\n\",vertexSource:\"// floor(127 / 2) == 63.0\\n// the maximum allowed miter limit is 2.0 at the moment. the extrude normal is\\n// stored in a byte (-128..127). we scale regular normals up to length 63, but\\n// there are also \\\"special\\\" normals that have a bigger length (of up to 126 in\\n// this case).\\n// #define scale 63.0\\n#define scale 0.015873016\\n\\n// We scale the distance before adding it to the buffers so that we can store\\n// long distances for long segments. Use this value to unscale the distance.\\n#define LINE_DISTANCE_SCALE 2.0\\n\\n// the distance over which the line edge fades out.\\n// Retina devices need a smaller distance to avoid aliasing.\\n#define ANTIALIASING 1.0 / DEVICE_PIXEL_RATIO / 2.0\\n\\nattribute vec4 a_pos_normal;\\nattribute vec4 a_data;\\n\\nuniform mat4 u_matrix;\\nuniform mediump float u_ratio;\\nuniform vec2 u_gl_units_to_pixels;\\n\\nvarying vec2 v_normal;\\nvarying vec2 v_width2;\\nvarying float v_linesofar;\\nvarying float v_gamma_scale;\\n\\n#pragma mapbox: define lowp float blur\\n#pragma mapbox: define lowp float opacity\\n#pragma mapbox: define lowp float offset\\n#pragma mapbox: define mediump float gapwidth\\n#pragma mapbox: define mediump float width\\n\\nvoid main() {\\n #pragma mapbox: initialize lowp float blur\\n #pragma mapbox: initialize lowp float opacity\\n #pragma mapbox: initialize lowp float offset\\n #pragma mapbox: initialize mediump float gapwidth\\n #pragma mapbox: initialize mediump float width\\n\\n vec2 a_extrude = a_data.xy - 128.0;\\n float a_direction = mod(a_data.z, 4.0) - 1.0;\\n float a_linesofar = (floor(a_data.z / 4.0) + a_data.w * 64.0) * LINE_DISTANCE_SCALE;\\n\\n vec2 pos = a_pos_normal.xy;\\n\\n // x is 1 if it's a round cap, 0 otherwise\\n // y is 1 if the normal points up, and -1 if it points down\\n mediump vec2 normal = a_pos_normal.zw;\\n v_normal = normal;\\n\\n // these transformations used to be applied in the JS and native code bases.\\n // moved them into the shader for clarity and simplicity.\\n gapwidth = gapwidth / 2.0;\\n float halfwidth = width / 2.0;\\n offset = -1.0 * offset;\\n\\n float inset = gapwidth + (gapwidth > 0.0 ? ANTIALIASING : 0.0);\\n float outset = gapwidth + halfwidth * (gapwidth > 0.0 ? 2.0 : 1.0) + ANTIALIASING;\\n\\n // Scale the extrusion vector down to a normal and then up by the line width\\n // of this vertex.\\n mediump vec2 dist = outset * a_extrude * scale;\\n\\n // Calculate the offset when drawing a line that is to the side of the actual line.\\n // We do this by creating a vector that points towards the extrude, but rotate\\n // it when we're drawing round end points (a_direction = -1 or 1) since their\\n // extrude vector points in another direction.\\n mediump float u = 0.5 * a_direction;\\n mediump float t = 1.0 - abs(u);\\n mediump vec2 offset2 = offset * a_extrude * scale * normal.y * mat2(t, -u, u, t);\\n\\n vec4 projected_extrude = u_matrix * vec4(dist / u_ratio, 0.0, 0.0);\\n gl_Position = u_matrix * vec4(pos + offset2 / u_ratio, 0.0, 1.0) + projected_extrude;\\n\\n // calculate how much the perspective view squishes or stretches the extrude\\n float extrude_length_without_perspective = length(dist);\\n float extrude_length_with_perspective = length(projected_extrude.xy / gl_Position.w * u_gl_units_to_pixels);\\n v_gamma_scale = extrude_length_without_perspective / extrude_length_with_perspective;\\n\\n v_linesofar = a_linesofar;\\n v_width2 = vec2(outset, inset);\\n}\\n\"},lineSDF:{fragmentSource:\"\\nuniform sampler2D u_image;\\nuniform float u_sdfgamma;\\nuniform float u_mix;\\n\\nvarying vec2 v_normal;\\nvarying vec2 v_width2;\\nvarying vec2 v_tex_a;\\nvarying vec2 v_tex_b;\\nvarying float v_gamma_scale;\\n\\n#pragma mapbox: define highp vec4 color\\n#pragma mapbox: define lowp float blur\\n#pragma mapbox: define lowp float opacity\\n#pragma mapbox: define mediump float width\\n#pragma mapbox: define lowp float floorwidth\\n\\nvoid main() {\\n #pragma mapbox: initialize highp vec4 color\\n #pragma mapbox: initialize lowp float blur\\n #pragma mapbox: initialize lowp float opacity\\n #pragma mapbox: initialize mediump float width\\n #pragma mapbox: initialize lowp float floorwidth\\n\\n // Calculate the distance of the pixel from the line in pixels.\\n float dist = length(v_normal) * v_width2.s;\\n\\n // Calculate the antialiasing fade factor. This is either when fading in\\n // the line in case of an offset line (v_width2.t) or when fading out\\n // (v_width2.s)\\n float blur2 = (blur + 1.0 / DEVICE_PIXEL_RATIO) * v_gamma_scale;\\n float alpha = clamp(min(dist - (v_width2.t - blur2), v_width2.s - dist) / blur2, 0.0, 1.0);\\n\\n float sdfdist_a = texture2D(u_image, v_tex_a).a;\\n float sdfdist_b = texture2D(u_image, v_tex_b).a;\\n float sdfdist = mix(sdfdist_a, sdfdist_b, u_mix);\\n alpha *= smoothstep(0.5 - u_sdfgamma / floorwidth, 0.5 + u_sdfgamma / floorwidth, sdfdist);\\n\\n gl_FragColor = color * (alpha * opacity);\\n\\n#ifdef OVERDRAW_INSPECTOR\\n gl_FragColor = vec4(1.0);\\n#endif\\n}\\n\",vertexSource:\"// floor(127 / 2) == 63.0\\n// the maximum allowed miter limit is 2.0 at the moment. the extrude normal is\\n// stored in a byte (-128..127). we scale regular normals up to length 63, but\\n// there are also \\\"special\\\" normals that have a bigger length (of up to 126 in\\n// this case).\\n// #define scale 63.0\\n#define scale 0.015873016\\n\\n// We scale the distance before adding it to the buffers so that we can store\\n// long distances for long segments. Use this value to unscale the distance.\\n#define LINE_DISTANCE_SCALE 2.0\\n\\n// the distance over which the line edge fades out.\\n// Retina devices need a smaller distance to avoid aliasing.\\n#define ANTIALIASING 1.0 / DEVICE_PIXEL_RATIO / 2.0\\n\\nattribute vec4 a_pos_normal;\\nattribute vec4 a_data;\\n\\nuniform mat4 u_matrix;\\nuniform mediump float u_ratio;\\nuniform vec2 u_patternscale_a;\\nuniform float u_tex_y_a;\\nuniform vec2 u_patternscale_b;\\nuniform float u_tex_y_b;\\nuniform vec2 u_gl_units_to_pixels;\\n\\nvarying vec2 v_normal;\\nvarying vec2 v_width2;\\nvarying vec2 v_tex_a;\\nvarying vec2 v_tex_b;\\nvarying float v_gamma_scale;\\n\\n#pragma mapbox: define highp vec4 color\\n#pragma mapbox: define lowp float blur\\n#pragma mapbox: define lowp float opacity\\n#pragma mapbox: define mediump float gapwidth\\n#pragma mapbox: define lowp float offset\\n#pragma mapbox: define mediump float width\\n#pragma mapbox: define lowp float floorwidth\\n\\nvoid main() {\\n #pragma mapbox: initialize highp vec4 color\\n #pragma mapbox: initialize lowp float blur\\n #pragma mapbox: initialize lowp float opacity\\n #pragma mapbox: initialize mediump float gapwidth\\n #pragma mapbox: initialize lowp float offset\\n #pragma mapbox: initialize mediump float width\\n #pragma mapbox: initialize lowp float floorwidth\\n\\n vec2 a_extrude = a_data.xy - 128.0;\\n float a_direction = mod(a_data.z, 4.0) - 1.0;\\n float a_linesofar = (floor(a_data.z / 4.0) + a_data.w * 64.0) * LINE_DISTANCE_SCALE;\\n\\n vec2 pos = a_pos_normal.xy;\\n\\n // x is 1 if it's a round cap, 0 otherwise\\n // y is 1 if the normal points up, and -1 if it points down\\n mediump vec2 normal = a_pos_normal.zw;\\n v_normal = normal;\\n\\n // these transformations used to be applied in the JS and native code bases.\\n // moved them into the shader for clarity and simplicity.\\n gapwidth = gapwidth / 2.0;\\n float halfwidth = width / 2.0;\\n offset = -1.0 * offset;\\n\\n float inset = gapwidth + (gapwidth > 0.0 ? ANTIALIASING : 0.0);\\n float outset = gapwidth + halfwidth * (gapwidth > 0.0 ? 2.0 : 1.0) + ANTIALIASING;\\n\\n // Scale the extrusion vector down to a normal and then up by the line width\\n // of this vertex.\\n mediump vec2 dist =outset * a_extrude * scale;\\n\\n // Calculate the offset when drawing a line that is to the side of the actual line.\\n // We do this by creating a vector that points towards the extrude, but rotate\\n // it when we're drawing round end points (a_direction = -1 or 1) since their\\n // extrude vector points in another direction.\\n mediump float u = 0.5 * a_direction;\\n mediump float t = 1.0 - abs(u);\\n mediump vec2 offset2 = offset * a_extrude * scale * normal.y * mat2(t, -u, u, t);\\n\\n vec4 projected_extrude = u_matrix * vec4(dist / u_ratio, 0.0, 0.0);\\n gl_Position = u_matrix * vec4(pos + offset2 / u_ratio, 0.0, 1.0) + projected_extrude;\\n\\n // calculate how much the perspective view squishes or stretches the extrude\\n float extrude_length_without_perspective = length(dist);\\n float extrude_length_with_perspective = length(projected_extrude.xy / gl_Position.w * u_gl_units_to_pixels);\\n v_gamma_scale = extrude_length_without_perspective / extrude_length_with_perspective;\\n\\n v_tex_a = vec2(a_linesofar * u_patternscale_a.x / floorwidth, normal.y * u_patternscale_a.y + u_tex_y_a);\\n v_tex_b = vec2(a_linesofar * u_patternscale_b.x / floorwidth, normal.y * u_patternscale_b.y + u_tex_y_b);\\n\\n v_width2 = vec2(outset, inset);\\n}\\n\"},raster:{fragmentSource:\"uniform float u_fade_t;\\nuniform float u_opacity;\\nuniform sampler2D u_image0;\\nuniform sampler2D u_image1;\\nvarying vec2 v_pos0;\\nvarying vec2 v_pos1;\\n\\nuniform float u_brightness_low;\\nuniform float u_brightness_high;\\n\\nuniform float u_saturation_factor;\\nuniform float u_contrast_factor;\\nuniform vec3 u_spin_weights;\\n\\nvoid main() {\\n\\n // read and cross-fade colors from the main and parent tiles\\n vec4 color0 = texture2D(u_image0, v_pos0);\\n vec4 color1 = texture2D(u_image1, v_pos1);\\n if (color0.a > 0.0) {\\n color0.rgb = color0.rgb / color0.a;\\n }\\n if (color1.a > 0.0) {\\n color1.rgb = color1.rgb / color1.a;\\n }\\n vec4 color = mix(color0, color1, u_fade_t);\\n color.a *= u_opacity;\\n vec3 rgb = color.rgb;\\n\\n // spin\\n rgb = vec3(\\n dot(rgb, u_spin_weights.xyz),\\n dot(rgb, u_spin_weights.zxy),\\n dot(rgb, u_spin_weights.yzx));\\n\\n // saturation\\n float average = (color.r + color.g + color.b) / 3.0;\\n rgb += (average - rgb) * u_saturation_factor;\\n\\n // contrast\\n rgb = (rgb - 0.5) * u_contrast_factor + 0.5;\\n\\n // brightness\\n vec3 u_high_vec = vec3(u_brightness_low, u_brightness_low, u_brightness_low);\\n vec3 u_low_vec = vec3(u_brightness_high, u_brightness_high, u_brightness_high);\\n\\n gl_FragColor = vec4(mix(u_high_vec, u_low_vec, rgb) * color.a, color.a);\\n\\n#ifdef OVERDRAW_INSPECTOR\\n gl_FragColor = vec4(1.0);\\n#endif\\n}\\n\",vertexSource:\"uniform mat4 u_matrix;\\nuniform vec2 u_tl_parent;\\nuniform float u_scale_parent;\\nuniform float u_buffer_scale;\\n\\nattribute vec2 a_pos;\\nattribute vec2 a_texture_pos;\\n\\nvarying vec2 v_pos0;\\nvarying vec2 v_pos1;\\n\\nvoid main() {\\n gl_Position = u_matrix * vec4(a_pos, 0, 1);\\n // We are using Int16 for texture position coordinates to give us enough precision for\\n // fractional coordinates. We use 8192 to scale the texture coordinates in the buffer\\n // as an arbitrarily high number to preserve adequate precision when rendering.\\n // This is also the same value as the EXTENT we are using for our tile buffer pos coordinates,\\n // so math for modifying either is consistent.\\n v_pos0 = (((a_texture_pos / 8192.0) - 0.5) / u_buffer_scale ) + 0.5;\\n v_pos1 = (v_pos0 * u_scale_parent) + u_tl_parent;\\n}\\n\"},symbolIcon:{fragmentSource:\"uniform sampler2D u_texture;\\n\\n#pragma mapbox: define lowp float opacity\\n\\nvarying vec2 v_tex;\\nvarying float v_fade_opacity;\\n\\nvoid main() {\\n #pragma mapbox: initialize lowp float opacity\\n\\n lowp float alpha = opacity * v_fade_opacity;\\n gl_FragColor = texture2D(u_texture, v_tex) * alpha;\\n\\n#ifdef OVERDRAW_INSPECTOR\\n gl_FragColor = vec4(1.0);\\n#endif\\n}\\n\",vertexSource:\"const float PI = 3.141592653589793;\\n\\nattribute vec4 a_pos_offset;\\nattribute vec4 a_data;\\nattribute vec3 a_projected_pos;\\nattribute float a_fade_opacity;\\n\\nuniform bool u_is_size_zoom_constant;\\nuniform bool u_is_size_feature_constant;\\nuniform highp float u_size_t; // used to interpolate between zoom stops when size is a composite function\\nuniform highp float u_size; // used when size is both zoom and feature constant\\nuniform highp float u_camera_to_center_distance;\\nuniform highp float u_pitch;\\nuniform bool u_rotate_symbol;\\nuniform highp float u_aspect_ratio;\\nuniform float u_fade_change;\\n\\n#pragma mapbox: define lowp float opacity\\n\\nuniform mat4 u_matrix;\\nuniform mat4 u_label_plane_matrix;\\nuniform mat4 u_gl_coord_matrix;\\n\\nuniform bool u_is_text;\\nuniform bool u_pitch_with_map;\\n\\nuniform vec2 u_texsize;\\n\\nvarying vec2 v_tex;\\nvarying float v_fade_opacity;\\n\\nvoid main() {\\n #pragma mapbox: initialize lowp float opacity\\n\\n vec2 a_pos = a_pos_offset.xy;\\n vec2 a_offset = a_pos_offset.zw;\\n\\n vec2 a_tex = a_data.xy;\\n vec2 a_size = a_data.zw;\\n\\n highp float segment_angle = -a_projected_pos[2];\\n\\n float size;\\n if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {\\n size = mix(a_size[0], a_size[1], u_size_t) / 10.0;\\n } else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {\\n size = a_size[0] / 10.0;\\n } else if (!u_is_size_zoom_constant && u_is_size_feature_constant) {\\n size = u_size;\\n } else {\\n size = u_size;\\n }\\n\\n vec4 projectedPoint = u_matrix * vec4(a_pos, 0, 1);\\n highp float camera_to_anchor_distance = projectedPoint.w;\\n // See comments in symbol_sdf.vertex\\n highp float distance_ratio = u_pitch_with_map ?\\n camera_to_anchor_distance / u_camera_to_center_distance :\\n u_camera_to_center_distance / camera_to_anchor_distance;\\n highp float perspective_ratio = clamp(\\n 0.5 + 0.5 * distance_ratio,\\n 0.0, // Prevents oversized near-field symbols in pitched/overzoomed tiles\\n 4.0);\\n\\n size *= perspective_ratio;\\n\\n float fontScale = u_is_text ? size / 24.0 : size;\\n\\n highp float symbol_rotation = 0.0;\\n if (u_rotate_symbol) {\\n // See comments in symbol_sdf.vertex\\n vec4 offsetProjectedPoint = u_matrix * vec4(a_pos + vec2(1, 0), 0, 1);\\n\\n vec2 a = projectedPoint.xy / projectedPoint.w;\\n vec2 b = offsetProjectedPoint.xy / offsetProjectedPoint.w;\\n\\n symbol_rotation = atan((b.y - a.y) / u_aspect_ratio, b.x - a.x);\\n }\\n\\n highp float angle_sin = sin(segment_angle + symbol_rotation);\\n highp float angle_cos = cos(segment_angle + symbol_rotation);\\n mat2 rotation_matrix = mat2(angle_cos, -1.0 * angle_sin, angle_sin, angle_cos);\\n\\n vec4 projected_pos = u_label_plane_matrix * vec4(a_projected_pos.xy, 0.0, 1.0);\\n gl_Position = u_gl_coord_matrix * vec4(projected_pos.xy / projected_pos.w + rotation_matrix * (a_offset / 32.0 * fontScale), 0.0, 1.0);\\n\\n v_tex = a_tex / u_texsize;\\n vec2 fade_opacity = unpack_opacity(a_fade_opacity);\\n float fade_change = fade_opacity[1] > 0.5 ? u_fade_change : -u_fade_change;\\n v_fade_opacity = max(0.0, min(1.0, fade_opacity[0] + fade_change));\\n}\\n\"},symbolSDF:{fragmentSource:\"#define SDF_PX 8.0\\n#define EDGE_GAMMA 0.105/DEVICE_PIXEL_RATIO\\n\\nuniform bool u_is_halo;\\n#pragma mapbox: define highp vec4 fill_color\\n#pragma mapbox: define highp vec4 halo_color\\n#pragma mapbox: define lowp float opacity\\n#pragma mapbox: define lowp float halo_width\\n#pragma mapbox: define lowp float halo_blur\\n\\nuniform sampler2D u_texture;\\nuniform highp float u_gamma_scale;\\nuniform bool u_is_text;\\n\\nvarying vec2 v_data0;\\nvarying vec3 v_data1;\\n\\nvoid main() {\\n #pragma mapbox: initialize highp vec4 fill_color\\n #pragma mapbox: initialize highp vec4 halo_color\\n #pragma mapbox: initialize lowp float opacity\\n #pragma mapbox: initialize lowp float halo_width\\n #pragma mapbox: initialize lowp float halo_blur\\n\\n vec2 tex = v_data0.xy;\\n float gamma_scale = v_data1.x;\\n float size = v_data1.y;\\n float fade_opacity = v_data1[2];\\n\\n float fontScale = u_is_text ? size / 24.0 : size;\\n\\n lowp vec4 color = fill_color;\\n highp float gamma = EDGE_GAMMA / (fontScale * u_gamma_scale);\\n lowp float buff = (256.0 - 64.0) / 256.0;\\n if (u_is_halo) {\\n color = halo_color;\\n gamma = (halo_blur * 1.19 / SDF_PX + EDGE_GAMMA) / (fontScale * u_gamma_scale);\\n buff = (6.0 - halo_width / fontScale) / SDF_PX;\\n }\\n\\n lowp float dist = texture2D(u_texture, tex).a;\\n highp float gamma_scaled = gamma * gamma_scale;\\n highp float alpha = smoothstep(buff - gamma_scaled, buff + gamma_scaled, dist);\\n\\n gl_FragColor = color * (alpha * opacity * fade_opacity);\\n\\n#ifdef OVERDRAW_INSPECTOR\\n gl_FragColor = vec4(1.0);\\n#endif\\n}\\n\",vertexSource:\"const float PI = 3.141592653589793;\\n\\nattribute vec4 a_pos_offset;\\nattribute vec4 a_data;\\nattribute vec3 a_projected_pos;\\nattribute float a_fade_opacity;\\n\\n// contents of a_size vary based on the type of property value\\n// used for {text,icon}-size.\\n// For constants, a_size is disabled.\\n// For source functions, we bind only one value per vertex: the value of {text,icon}-size evaluated for the current feature.\\n// For composite functions:\\n// [ text-size(lowerZoomStop, feature),\\n// text-size(upperZoomStop, feature) ]\\nuniform bool u_is_size_zoom_constant;\\nuniform bool u_is_size_feature_constant;\\nuniform highp float u_size_t; // used to interpolate between zoom stops when size is a composite function\\nuniform highp float u_size; // used when size is both zoom and feature constant\\n\\n#pragma mapbox: define highp vec4 fill_color\\n#pragma mapbox: define highp vec4 halo_color\\n#pragma mapbox: define lowp float opacity\\n#pragma mapbox: define lowp float halo_width\\n#pragma mapbox: define lowp float halo_blur\\n\\nuniform mat4 u_matrix;\\nuniform mat4 u_label_plane_matrix;\\nuniform mat4 u_gl_coord_matrix;\\n\\nuniform bool u_is_text;\\nuniform bool u_pitch_with_map;\\nuniform highp float u_pitch;\\nuniform bool u_rotate_symbol;\\nuniform highp float u_aspect_ratio;\\nuniform highp float u_camera_to_center_distance;\\nuniform float u_fade_change;\\n\\nuniform vec2 u_texsize;\\n\\nvarying vec2 v_data0;\\nvarying vec3 v_data1;\\n\\nvoid main() {\\n #pragma mapbox: initialize highp vec4 fill_color\\n #pragma mapbox: initialize highp vec4 halo_color\\n #pragma mapbox: initialize lowp float opacity\\n #pragma mapbox: initialize lowp float halo_width\\n #pragma mapbox: initialize lowp float halo_blur\\n\\n vec2 a_pos = a_pos_offset.xy;\\n vec2 a_offset = a_pos_offset.zw;\\n\\n vec2 a_tex = a_data.xy;\\n vec2 a_size = a_data.zw;\\n\\n highp float segment_angle = -a_projected_pos[2];\\n float size;\\n\\n if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {\\n size = mix(a_size[0], a_size[1], u_size_t) / 10.0;\\n } else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {\\n size = a_size[0] / 10.0;\\n } else if (!u_is_size_zoom_constant && u_is_size_feature_constant) {\\n size = u_size;\\n } else {\\n size = u_size;\\n }\\n\\n vec4 projectedPoint = u_matrix * vec4(a_pos, 0, 1);\\n highp float camera_to_anchor_distance = projectedPoint.w;\\n // If the label is pitched with the map, layout is done in pitched space,\\n // which makes labels in the distance smaller relative to viewport space.\\n // We counteract part of that effect by multiplying by the perspective ratio.\\n // If the label isn't pitched with the map, we do layout in viewport space,\\n // which makes labels in the distance larger relative to the features around\\n // them. We counteract part of that effect by dividing by the perspective ratio.\\n highp float distance_ratio = u_pitch_with_map ?\\n camera_to_anchor_distance / u_camera_to_center_distance :\\n u_camera_to_center_distance / camera_to_anchor_distance;\\n highp float perspective_ratio = clamp(\\n 0.5 + 0.5 * distance_ratio,\\n 0.0, // Prevents oversized near-field symbols in pitched/overzoomed tiles\\n 4.0);\\n\\n size *= perspective_ratio;\\n\\n float fontScale = u_is_text ? size / 24.0 : size;\\n\\n highp float symbol_rotation = 0.0;\\n if (u_rotate_symbol) {\\n // Point labels with 'rotation-alignment: map' are horizontal with respect to tile units\\n // To figure out that angle in projected space, we draw a short horizontal line in tile\\n // space, project it, and measure its angle in projected space.\\n vec4 offsetProjectedPoint = u_matrix * vec4(a_pos + vec2(1, 0), 0, 1);\\n\\n vec2 a = projectedPoint.xy / projectedPoint.w;\\n vec2 b = offsetProjectedPoint.xy / offsetProjectedPoint.w;\\n\\n symbol_rotation = atan((b.y - a.y) / u_aspect_ratio, b.x - a.x);\\n }\\n\\n highp float angle_sin = sin(segment_angle + symbol_rotation);\\n highp float angle_cos = cos(segment_angle + symbol_rotation);\\n mat2 rotation_matrix = mat2(angle_cos, -1.0 * angle_sin, angle_sin, angle_cos);\\n\\n vec4 projected_pos = u_label_plane_matrix * vec4(a_projected_pos.xy, 0.0, 1.0);\\n gl_Position = u_gl_coord_matrix * vec4(projected_pos.xy / projected_pos.w + rotation_matrix * (a_offset / 32.0 * fontScale), 0.0, 1.0);\\n float gamma_scale = gl_Position.w;\\n\\n vec2 tex = a_tex / u_texsize;\\n vec2 fade_opacity = unpack_opacity(a_fade_opacity);\\n float fade_change = fade_opacity[1] > 0.5 ? u_fade_change : -u_fade_change;\\n float interpolated_fade_opacity = max(0.0, min(1.0, fade_opacity[0] + fade_change));\\n\\n v_data0 = vec2(tex.x, tex.y);\\n v_data1 = vec3(gamma_scale, size, interpolated_fade_opacity);\\n}\\n\"}},tr=/#pragma mapbox: ([\\w]+) ([\\w]+) ([\\w]+) ([\\w]+)/g,er=function(t){var e=Qe[t],r={};e.fragmentSource=e.fragmentSource.replace(tr,function(t,e,n,i,a){return r[a]=!0,\"define\"===e?\"\\n#ifndef HAS_UNIFORM_u_\"+a+\"\\nvarying \"+n+\" \"+i+\" \"+a+\";\\n#else\\nuniform \"+n+\" \"+i+\" u_\"+a+\";\\n#endif\\n\":\"\\n#ifdef HAS_UNIFORM_u_\"+a+\"\\n \"+n+\" \"+i+\" \"+a+\" = u_\"+a+\";\\n#endif\\n\"}),e.vertexSource=e.vertexSource.replace(tr,function(t,e,n,i,a){var o=\"float\"===i?\"vec2\":\"vec4\";return r[a]?\"define\"===e?\"\\n#ifndef HAS_UNIFORM_u_\"+a+\"\\nuniform lowp float a_\"+a+\"_t;\\nattribute \"+n+\" \"+o+\" a_\"+a+\";\\nvarying \"+n+\" \"+i+\" \"+a+\";\\n#else\\nuniform \"+n+\" \"+i+\" u_\"+a+\";\\n#endif\\n\":\"\\n#ifndef HAS_UNIFORM_u_\"+a+\"\\n \"+a+\" = unpack_mix_\"+o+\"(a_\"+a+\", a_\"+a+\"_t);\\n#else\\n \"+n+\" \"+i+\" \"+a+\" = u_\"+a+\";\\n#endif\\n\":\"define\"===e?\"\\n#ifndef HAS_UNIFORM_u_\"+a+\"\\nuniform lowp float a_\"+a+\"_t;\\nattribute \"+n+\" \"+o+\" a_\"+a+\";\\n#else\\nuniform \"+n+\" \"+i+\" u_\"+a+\";\\n#endif\\n\":\"\\n#ifndef HAS_UNIFORM_u_\"+a+\"\\n \"+n+\" \"+i+\" \"+a+\" = unpack_mix_\"+o+\"(a_\"+a+\", a_\"+a+\"_t);\\n#else\\n \"+n+\" \"+i+\" \"+a+\" = u_\"+a+\";\\n#endif\\n\"})};for(var rr in Qe)er(rr);var nr=Qe,ir=function(t,e,r,n){var i=t.gl;this.program=i.createProgram();var o=r.defines().concat(\"#define DEVICE_PIXEL_RATIO \"+a.devicePixelRatio.toFixed(1));n&&o.push(\"#define OVERDRAW_INSPECTOR;\");var s=o.concat(nr.prelude.fragmentSource,e.fragmentSource).join(\"\\n\"),l=o.concat(nr.prelude.vertexSource,e.vertexSource).join(\"\\n\"),c=i.createShader(i.FRAGMENT_SHADER);i.shaderSource(c,s),i.compileShader(c),i.attachShader(this.program,c);var u=i.createShader(i.VERTEX_SHADER);i.shaderSource(u,l),i.compileShader(u),i.attachShader(this.program,u);for(var f=r.layoutAttributes||[],h=0;h<f.length;h++)i.bindAttribLocation(this.program,h,f[h].name);i.linkProgram(this.program),this.numAttributes=i.getProgramParameter(this.program,i.ACTIVE_ATTRIBUTES),this.attributes={},this.uniforms={};for(var p=0;p<this.numAttributes;p++){var d=i.getActiveAttrib(this.program,p);d&&(this.attributes[d.name]=i.getAttribLocation(this.program,d.name))}for(var g=i.getProgramParameter(this.program,i.ACTIVE_UNIFORMS),v=0;v<g;v++){var m=i.getActiveUniform(this.program,v);m&&(this.uniforms[m.name]=i.getUniformLocation(this.program,m.name))}};function ar(e,r,n,i,a){for(var o=0;o<n.length;o++){var s=n[o];if(i.isLessThan(s.tileID))break;if(r.key===s.tileID.key)return;if(s.tileID.isChildOf(r)){for(var l=r.children(1/0),c=0;c<l.length;c++)ar(e,l[c],n.slice(o),i,a);return}}var u=r.overscaledZ-e.overscaledZ,f=new t.CanonicalTileID(u,r.canonical.x-(e.canonical.x<<u),r.canonical.y-(e.canonical.y<<u));a[f.key]=a[f.key]||f}function or(t,e,r,n,i){var a=t.context,o=a.gl,s=i?t.useProgram(\"collisionCircle\"):t.useProgram(\"collisionBox\");a.setDepthMode(qt.disabled),a.setStencilMode(Ht.disabled),a.setColorMode(t.colorModeForRenderPass());for(var l=0;l<n.length;l++){var c=n[l],u=e.getTile(c),f=u.getBucket(r);if(f){var h=i?f.collisionCircle:f.collisionBox;if(h){o.uniformMatrix4fv(s.uniforms.u_matrix,!1,c.posMatrix),i||a.lineWidth.set(1),o.uniform1f(s.uniforms.u_camera_to_center_distance,t.transform.cameraToCenterDistance);var p=Te(u,1,t.transform.zoom),d=Math.pow(2,t.transform.zoom-u.tileID.overscaledZ);o.uniform1f(s.uniforms.u_pixels_to_tile_units,p),o.uniform2f(s.uniforms.u_extrude_scale,t.transform.pixelsToGLUnits[0]/(p*d),t.transform.pixelsToGLUnits[1]/(p*d)),o.uniform1f(s.uniforms.u_overscale_factor,u.tileID.overscaleFactor()),s.draw(a,i?o.TRIANGLES:o.LINES,r.id,h.layoutVertexBuffer,h.indexBuffer,h.segments,null,h.collisionVertexBuffer,null)}}}}ir.prototype.draw=function(t,e,r,n,i,a,o,s,l){for(var c,u=t.gl,f=(c={},c[u.LINES]=2,c[u.TRIANGLES]=3,c)[e],h=0,p=a.get();h<p.length;h+=1){var d=p[h],g=d.vaos||(d.vaos={});(g[r]||(g[r]=new Q)).bind(t,this,n,o?o.getPaintVertexBuffers():[],i,d.vertexOffset,s,l),u.drawElements(e,d.primitiveLength*f,u.UNSIGNED_SHORT,d.primitiveOffset*f*2)}};var sr=t.mat4.identity(new Float32Array(16)),lr=t.default$19.layout;function cr(t,e,r,n,i,a,o,s,l,c){var u,f=t.context,h=f.gl,p=t.transform,d=\"map\"===s,g=\"map\"===l,v=d&&\"line\"===r.layout.get(\"symbol-placement\"),m=d&&!g&&!v,y=g;f.setDepthMode(y?t.depthModeForSublayer(0,qt.ReadOnly):qt.disabled);for(var x=0,b=n;x<b.length;x+=1){var _=b[x],w=e.getTile(_),k=w.getBucket(r);if(k){var M=i?k.text:k.icon;if(M&&M.segments.get().length){var A=M.programConfigurations.get(r.id),T=i||k.sdfIcons,S=i?k.textSizeData:k.iconSizeData;if(u||(u=t.useProgram(T?\"symbolSDF\":\"symbolIcon\",A),A.setUniforms(t.context,u,r.paint,{zoom:t.transform.zoom}),ur(u,t,r,i,m,g,S)),f.activeTexture.set(h.TEXTURE0),h.uniform1i(u.uniforms.u_texture,0),i)w.glyphAtlasTexture.bind(h.LINEAR,h.CLAMP_TO_EDGE),h.uniform2fv(u.uniforms.u_texsize,w.glyphAtlasTexture.size);else{var E=1!==r.layout.get(\"icon-size\").constantOr(0)||k.iconsNeedLinear,C=g||0!==p.pitch;w.iconAtlasTexture.bind(T||t.options.rotating||t.options.zooming||E||C?h.LINEAR:h.NEAREST,h.CLAMP_TO_EDGE),h.uniform2fv(u.uniforms.u_texsize,w.iconAtlasTexture.size)}h.uniformMatrix4fv(u.uniforms.u_matrix,!1,t.translatePosMatrix(_.posMatrix,w,a,o));var L=Te(w,1,t.transform.zoom),z=fe(_.posMatrix,g,d,t.transform,L),O=he(_.posMatrix,g,d,t.transform,L);h.uniformMatrix4fv(u.uniforms.u_gl_coord_matrix,!1,t.translatePosMatrix(O,w,a,o,!0)),v?(h.uniformMatrix4fv(u.uniforms.u_label_plane_matrix,!1,sr),ge(k,_.posMatrix,t,i,z,O,g,c)):h.uniformMatrix4fv(u.uniforms.u_label_plane_matrix,!1,z),h.uniform1f(u.uniforms.u_fade_change,t.options.fadeDuration?t.symbolFadeChange:1),fr(u,A,t,r,w,M,i,T,g)}}}}function ur(e,r,n,i,a,o,s){var l=r.context.gl,c=r.transform;l.uniform1i(e.uniforms.u_pitch_with_map,o?1:0),l.uniform1f(e.uniforms.u_is_text,i?1:0),l.uniform1f(e.uniforms.u_pitch,c.pitch/360*2*Math.PI);var u=\"constant\"===s.functionType||\"source\"===s.functionType,f=\"constant\"===s.functionType||\"camera\"===s.functionType;l.uniform1i(e.uniforms.u_is_size_zoom_constant,u?1:0),l.uniform1i(e.uniforms.u_is_size_feature_constant,f?1:0),l.uniform1f(e.uniforms.u_camera_to_center_distance,c.cameraToCenterDistance);var h=t.evaluateSizeForZoom(s,c.zoom,lr.properties[i?\"text-size\":\"icon-size\"]);void 0!==h.uSizeT&&l.uniform1f(e.uniforms.u_size_t,h.uSizeT),void 0!==h.uSize&&l.uniform1f(e.uniforms.u_size,h.uSize),l.uniform1f(e.uniforms.u_aspect_ratio,c.width/c.height),l.uniform1i(e.uniforms.u_rotate_symbol,a?1:0)}function fr(t,e,r,n,i,a,o,s,l){var c=r.context,u=c.gl,f=r.transform;if(s){var h=0!==n.paint.get(o?\"text-halo-width\":\"icon-halo-width\").constantOr(1),p=l?Math.cos(f._pitch)*f.cameraToCenterDistance:1;u.uniform1f(t.uniforms.u_gamma_scale,p),h&&(u.uniform1f(t.uniforms.u_is_halo,1),hr(a,n,c,t)),u.uniform1f(t.uniforms.u_is_halo,0)}hr(a,n,c,t)}function hr(t,e,r,n){n.draw(r,r.gl.TRIANGLES,e.id,t.layoutVertexBuffer,t.indexBuffer,t.segments,t.programConfigurations.get(e.id),t.dynamicLayoutVertexBuffer,t.opacityVertexBuffer)}function pr(t,e,r,n,i,o,s,l,c){var u,f,h,p,d=e.context,g=d.gl,v=i.paint.get(\"line-dasharray\"),m=i.paint.get(\"line-pattern\");if(l||c){var y=1/Te(r,1,e.transform.tileZoom);if(v){u=e.lineAtlas.getDash(v.from,\"round\"===i.layout.get(\"line-cap\")),f=e.lineAtlas.getDash(v.to,\"round\"===i.layout.get(\"line-cap\"));var x=u.width*v.fromScale,b=f.width*v.toScale;g.uniform2f(t.uniforms.u_patternscale_a,y/x,-u.height/2),g.uniform2f(t.uniforms.u_patternscale_b,y/b,-f.height/2),g.uniform1f(t.uniforms.u_sdfgamma,e.lineAtlas.width/(256*Math.min(x,b)*a.devicePixelRatio)/2)}else if(m){if(h=e.imageManager.getPattern(m.from),p=e.imageManager.getPattern(m.to),!h||!p)return;g.uniform2f(t.uniforms.u_pattern_size_a,h.displaySize[0]*m.fromScale/y,h.displaySize[1]),g.uniform2f(t.uniforms.u_pattern_size_b,p.displaySize[0]*m.toScale/y,p.displaySize[1]);var _=e.imageManager.getPixelSize(),w=_.width,k=_.height;g.uniform2fv(t.uniforms.u_texsize,[w,k])}g.uniform2f(t.uniforms.u_gl_units_to_pixels,1/e.transform.pixelsToGLUnits[0],1/e.transform.pixelsToGLUnits[1])}l&&(v?(g.uniform1i(t.uniforms.u_image,0),d.activeTexture.set(g.TEXTURE0),e.lineAtlas.bind(d),g.uniform1f(t.uniforms.u_tex_y_a,u.y),g.uniform1f(t.uniforms.u_tex_y_b,f.y),g.uniform1f(t.uniforms.u_mix,v.t)):m&&(g.uniform1i(t.uniforms.u_image,0),d.activeTexture.set(g.TEXTURE0),e.imageManager.bind(d),g.uniform2fv(t.uniforms.u_pattern_tl_a,h.tl),g.uniform2fv(t.uniforms.u_pattern_br_a,h.br),g.uniform2fv(t.uniforms.u_pattern_tl_b,p.tl),g.uniform2fv(t.uniforms.u_pattern_br_b,p.br),g.uniform1f(t.uniforms.u_fade,m.t))),d.setStencilMode(e.stencilModeForClipping(o));var M=e.translatePosMatrix(o.posMatrix,r,i.paint.get(\"line-translate\"),i.paint.get(\"line-translate-anchor\"));if(g.uniformMatrix4fv(t.uniforms.u_matrix,!1,M),g.uniform1f(t.uniforms.u_ratio,1/Te(r,1,e.transform.zoom)),i.paint.get(\"line-gradient\")){d.activeTexture.set(g.TEXTURE0);var A=i.gradientTexture;if(!i.gradient)return;A||(A=i.gradientTexture=new z(d,i.gradient,g.RGBA)),A.bind(g.LINEAR,g.CLAMP_TO_EDGE),g.uniform1i(t.uniforms.u_image,0)}t.draw(d,g.TRIANGLES,i.id,n.layoutVertexBuffer,n.indexBuffer,n.segments,s)}var dr=function(t,e){if(!t)return!1;var r=e.imageManager.getPattern(t.from),n=e.imageManager.getPattern(t.to);return!r||!n},gr=function(t,e,r){var n=e.context,i=n.gl,a=e.imageManager.getPattern(t.from),o=e.imageManager.getPattern(t.to);i.uniform1i(r.uniforms.u_image,0),i.uniform2fv(r.uniforms.u_pattern_tl_a,a.tl),i.uniform2fv(r.uniforms.u_pattern_br_a,a.br),i.uniform2fv(r.uniforms.u_pattern_tl_b,o.tl),i.uniform2fv(r.uniforms.u_pattern_br_b,o.br);var s=e.imageManager.getPixelSize(),l=s.width,c=s.height;i.uniform2fv(r.uniforms.u_texsize,[l,c]),i.uniform1f(r.uniforms.u_mix,t.t),i.uniform2fv(r.uniforms.u_pattern_size_a,a.displaySize),i.uniform2fv(r.uniforms.u_pattern_size_b,o.displaySize),i.uniform1f(r.uniforms.u_scale_a,t.fromScale),i.uniform1f(r.uniforms.u_scale_b,t.toScale),n.activeTexture.set(i.TEXTURE0),e.imageManager.bind(e.context)},vr=function(t,e,r){var n=e.context.gl;n.uniform1f(r.uniforms.u_tile_units_to_pixels,1/Te(t,1,e.transform.tileZoom));var i=Math.pow(2,t.tileID.overscaledZ),a=t.tileSize*Math.pow(2,e.transform.tileZoom)/i,o=a*(t.tileID.canonical.x+t.tileID.wrap*i),s=a*t.tileID.canonical.y;n.uniform2f(r.uniforms.u_pixel_coord_upper,o>>16,s>>16),n.uniform2f(r.uniforms.u_pixel_coord_lower,65535&o,65535&s)};function mr(t,e,r,n,i){if(!dr(r.paint.get(\"fill-pattern\"),t))for(var a=!0,o=0,s=n;o<s.length;o+=1){var l=s[o],c=e.getTile(l),u=c.getBucket(r);u&&(t.context.setStencilMode(t.stencilModeForClipping(l)),i(t,e,r,c,l,u,a),a=!1)}}function yr(t,e,r,n,i,a,o){var s=t.context.gl,l=a.programConfigurations.get(r.id);br(\"fill\",r.paint.get(\"fill-pattern\"),t,l,r,n,i,o).draw(t.context,s.TRIANGLES,r.id,a.layoutVertexBuffer,a.indexBuffer,a.segments,l)}function xr(t,e,r,n,i,a,o){var s=t.context.gl,l=a.programConfigurations.get(r.id),c=br(\"fillOutline\",r.getPaintProperty(\"fill-outline-color\")?null:r.paint.get(\"fill-pattern\"),t,l,r,n,i,o);s.uniform2f(c.uniforms.u_world,s.drawingBufferWidth,s.drawingBufferHeight),c.draw(t.context,s.LINES,r.id,a.layoutVertexBuffer,a.indexBuffer2,a.segments2,l)}function br(t,e,r,n,i,a,o,s){var l,c=r.context.program.get();return e?(l=r.useProgram(t+\"Pattern\",n),(s||l.program!==c)&&(n.setUniforms(r.context,l,i.paint,{zoom:r.transform.zoom}),gr(e,r,l)),vr(a,r,l)):(l=r.useProgram(t,n),(s||l.program!==c)&&n.setUniforms(r.context,l,i.paint,{zoom:r.transform.zoom})),r.context.gl.uniformMatrix4fv(l.uniforms.u_matrix,!1,r.translatePosMatrix(o.posMatrix,a,i.paint.get(\"fill-translate\"),i.paint.get(\"fill-translate-anchor\"))),l}var _r=t.default$20.mat3,wr=t.default$20.mat4,kr=t.default$20.vec3;function Mr(t,e,r,n,i,a,o){var s=t.context,l=s.gl,c=r.paint.get(\"fill-extrusion-pattern\"),u=t.context.program.get(),f=a.programConfigurations.get(r.id),h=t.useProgram(c?\"fillExtrusionPattern\":\"fillExtrusion\",f);if((o||h.program!==u)&&f.setUniforms(s,h,r.paint,{zoom:t.transform.zoom}),c){if(dr(c,t))return;gr(c,t,h),vr(n,t,h),l.uniform1f(h.uniforms.u_height_factor,-Math.pow(2,i.overscaledZ)/n.tileSize/8)}t.context.gl.uniformMatrix4fv(h.uniforms.u_matrix,!1,t.translatePosMatrix(i.posMatrix,n,r.paint.get(\"fill-extrusion-translate\"),r.paint.get(\"fill-extrusion-translate-anchor\"))),function(t,e){var r=e.context.gl,n=e.style.light,i=n.properties.get(\"position\"),a=[i.x,i.y,i.z],o=_r.create();\"viewport\"===n.properties.get(\"anchor\")&&_r.fromRotation(o,-e.transform.angle),kr.transformMat3(a,a,o);var s=n.properties.get(\"color\");r.uniform3fv(t.uniforms.u_lightpos,a),r.uniform1f(t.uniforms.u_lightintensity,n.properties.get(\"intensity\")),r.uniform3f(t.uniforms.u_lightcolor,s.r,s.g,s.b)}(h,t),h.draw(s,l.TRIANGLES,r.id,a.layoutVertexBuffer,a.indexBuffer,a.segments,f)}function Ar(e,r,n){var i=e.context,a=i.gl,o=r.fbo;if(o){var s=e.useProgram(\"hillshade\"),l=e.transform.calculatePosMatrix(r.tileID.toUnwrapped(),!0);!function(t,e,r){var n=r.paint.get(\"hillshade-illumination-direction\")*(Math.PI/180);\"viewport\"===r.paint.get(\"hillshade-illumination-anchor\")&&(n-=e.transform.angle),e.context.gl.uniform2f(t.uniforms.u_light,r.paint.get(\"hillshade-exaggeration\"),n)}(s,e,n);var c=function(e,r){var n=r.toCoordinate(),i=new t.default$17(n.column,n.row+1,n.zoom);return[e.transform.coordinateLocation(n).lat,e.transform.coordinateLocation(i).lat]}(e,r.tileID);i.activeTexture.set(a.TEXTURE0),a.bindTexture(a.TEXTURE_2D,o.colorAttachment.get()),a.uniformMatrix4fv(s.uniforms.u_matrix,!1,l),a.uniform2fv(s.uniforms.u_latrange,c),a.uniform1i(s.uniforms.u_image,0);var u=n.paint.get(\"hillshade-shadow-color\");a.uniform4f(s.uniforms.u_shadow,u.r,u.g,u.b,u.a);var f=n.paint.get(\"hillshade-highlight-color\");a.uniform4f(s.uniforms.u_highlight,f.r,f.g,f.b,f.a);var h=n.paint.get(\"hillshade-accent-color\");if(a.uniform4f(s.uniforms.u_accent,h.r,h.g,h.b,h.a),r.maskedBoundsBuffer&&r.maskedIndexBuffer&&r.segments)s.draw(i,a.TRIANGLES,n.id,r.maskedBoundsBuffer,r.maskedIndexBuffer,r.segments);else{var p=e.rasterBoundsBuffer;e.rasterBoundsVAO.bind(i,s,p,[]),a.drawArrays(a.TRIANGLE_STRIP,0,p.length)}}}function Tr(e,r,n){var i=e.context,a=i.gl;if(r.dem&&r.dem.level){var o=r.dem.level.dim,s=r.dem.getPixels();if(i.activeTexture.set(a.TEXTURE1),i.pixelStoreUnpackPremultiplyAlpha.set(!1),r.demTexture=r.demTexture||e.getTileTexture(r.tileSize),r.demTexture){var l=r.demTexture;l.update(s,{premultiply:!1}),l.bind(a.NEAREST,a.CLAMP_TO_EDGE)}else r.demTexture=new z(i,s,a.RGBA,{premultiply:!1}),r.demTexture.bind(a.NEAREST,a.CLAMP_TO_EDGE);i.activeTexture.set(a.TEXTURE0);var c=r.fbo;if(!c){var u=new z(i,{width:o,height:o,data:null},a.RGBA);u.bind(a.LINEAR,a.CLAMP_TO_EDGE),(c=r.fbo=i.createFramebuffer(o,o)).colorAttachment.set(u.texture)}i.bindFramebuffer.set(c.framebuffer),i.viewport.set([0,0,o,o]);var f=t.mat4.create();t.mat4.ortho(f,0,t.default$8,-t.default$8,0,0,1),t.mat4.translate(f,f,[0,-t.default$8,0]);var h=e.useProgram(\"hillshadePrepare\");a.uniformMatrix4fv(h.uniforms.u_matrix,!1,f),a.uniform1f(h.uniforms.u_zoom,r.tileID.overscaledZ),a.uniform2fv(h.uniforms.u_dimension,[2*o,2*o]),a.uniform1i(h.uniforms.u_image,1),a.uniform1f(h.uniforms.u_maxzoom,n);var p=e.rasterBoundsBuffer;e.rasterBoundsVAO.bind(i,h,p,[]),a.drawArrays(a.TRIANGLE_STRIP,0,p.length),r.needsHillshadePrepare=!1}}function Sr(e,r,n,i,o){var s=i.paint.get(\"raster-fade-duration\");if(s>0){var l=a.now(),c=(l-e.timeAdded)/s,u=r?(l-r.timeAdded)/s:-1,f=n.getSource(),h=o.coveringZoomLevel({tileSize:f.tileSize,roundZoom:f.roundZoom}),p=!r||Math.abs(r.tileID.overscaledZ-h)>Math.abs(e.tileID.overscaledZ-h),d=p&&e.refreshedUponExpiration?1:t.clamp(p?c:1-u,0,1);return e.refreshedUponExpiration&&c>=1&&(e.refreshedUponExpiration=!1),r?{opacity:1,mix:1-d}:{opacity:d,mix:0}}return{opacity:1,mix:0}}function Er(e,r,n){var i=e.context,o=i.gl;i.lineWidth.set(1*a.devicePixelRatio);var s=n.posMatrix,l=e.useProgram(\"debug\");i.setDepthMode(qt.disabled),i.setStencilMode(Ht.disabled),i.setColorMode(e.colorModeForRenderPass()),o.uniformMatrix4fv(l.uniforms.u_matrix,!1,s),o.uniform4f(l.uniforms.u_color,1,0,0,1),e.debugVAO.bind(i,l,e.debugBuffer,[]),o.drawArrays(o.LINE_STRIP,0,e.debugBuffer.length);for(var c=function(t,e,r,n){n=n||1;var i,a,o,s,l,c,u,f,h=[];for(i=0,a=t.length;i<a;i++)if(l=Cr[t[i]]){for(f=null,o=0,s=l[1].length;o<s;o+=2)-1===l[1][o]&&-1===l[1][o+1]?f=null:(c=e+l[1][o]*n,u=200-l[1][o+1]*n,f&&h.push(f.x,f.y,c,u),f={x:c,y:u});e+=l[0]*n}return h}(n.toString(),50,0,5),u=new t.PosArray,f=0;f<c.length;f+=2)u.emplaceBack(c[f],c[f+1]);var h=i.createVertexBuffer(u,Ke.members);(new Q).bind(i,l,h,[]),o.uniform4f(l.uniforms.u_color,1,1,1,1);for(var p=r.getTile(n).tileSize,d=t.default$8/(Math.pow(2,e.transform.zoom-n.overscaledZ)*p),g=[[-1,-1],[-1,1],[1,-1],[1,1]],v=0;v<g.length;v++){var m=g[v];o.uniformMatrix4fv(l.uniforms.u_matrix,!1,t.mat4.translate([],s,[d*m[0],d*m[1],0])),o.drawArrays(o.LINES,0,h.length)}o.uniform4f(l.uniforms.u_color,0,0,0,1),o.uniformMatrix4fv(l.uniforms.u_matrix,!1,s),o.drawArrays(o.LINES,0,h.length)}var Cr={\" \":[16,[]],\"!\":[10,[5,21,5,7,-1,-1,5,2,4,1,5,0,6,1,5,2]],'\"':[16,[4,21,4,14,-1,-1,12,21,12,14]],\"#\":[21,[11,25,4,-7,-1,-1,17,25,10,-7,-1,-1,4,12,18,12,-1,-1,3,6,17,6]],$:[20,[8,25,8,-4,-1,-1,12,25,12,-4,-1,-1,17,18,15,20,12,21,8,21,5,20,3,18,3,16,4,14,5,13,7,12,13,10,15,9,16,8,17,6,17,3,15,1,12,0,8,0,5,1,3,3]],\"%\":[24,[21,21,3,0,-1,-1,8,21,10,19,10,17,9,15,7,14,5,14,3,16,3,18,4,20,6,21,8,21,10,20,13,19,16,19,19,20,21,21,-1,-1,17,7,15,6,14,4,14,2,16,0,18,0,20,1,21,3,21,5,19,7,17,7]],\"&\":[26,[23,12,23,13,22,14,21,14,20,13,19,11,17,6,15,3,13,1,11,0,7,0,5,1,4,2,3,4,3,6,4,8,5,9,12,13,13,14,14,16,14,18,13,20,11,21,9,20,8,18,8,16,9,13,11,10,16,3,18,1,20,0,22,0,23,1,23,2]],\"'\":[10,[5,19,4,20,5,21,6,20,6,18,5,16,4,15]],\"(\":[14,[11,25,9,23,7,20,5,16,4,11,4,7,5,2,7,-2,9,-5,11,-7]],\")\":[14,[3,25,5,23,7,20,9,16,10,11,10,7,9,2,7,-2,5,-5,3,-7]],\"*\":[16,[8,21,8,9,-1,-1,3,18,13,12,-1,-1,13,18,3,12]],\"+\":[26,[13,18,13,0,-1,-1,4,9,22,9]],\",\":[10,[6,1,5,0,4,1,5,2,6,1,6,-1,5,-3,4,-4]],\"-\":[26,[4,9,22,9]],\".\":[10,[5,2,4,1,5,0,6,1,5,2]],\"/\":[22,[20,25,2,-7]],0:[20,[9,21,6,20,4,17,3,12,3,9,4,4,6,1,9,0,11,0,14,1,16,4,17,9,17,12,16,17,14,20,11,21,9,21]],1:[20,[6,17,8,18,11,21,11,0]],2:[20,[4,16,4,17,5,19,6,20,8,21,12,21,14,20,15,19,16,17,16,15,15,13,13,10,3,0,17,0]],3:[20,[5,21,16,21,10,13,13,13,15,12,16,11,17,8,17,6,16,3,14,1,11,0,8,0,5,1,4,2,3,4]],4:[20,[13,21,3,7,18,7,-1,-1,13,21,13,0]],5:[20,[15,21,5,21,4,12,5,13,8,14,11,14,14,13,16,11,17,8,17,6,16,3,14,1,11,0,8,0,5,1,4,2,3,4]],6:[20,[16,18,15,20,12,21,10,21,7,20,5,17,4,12,4,7,5,3,7,1,10,0,11,0,14,1,16,3,17,6,17,7,16,10,14,12,11,13,10,13,7,12,5,10,4,7]],7:[20,[17,21,7,0,-1,-1,3,21,17,21]],8:[20,[8,21,5,20,4,18,4,16,5,14,7,13,11,12,14,11,16,9,17,7,17,4,16,2,15,1,12,0,8,0,5,1,4,2,3,4,3,7,4,9,6,11,9,12,13,13,15,14,16,16,16,18,15,20,12,21,8,21]],9:[20,[16,14,15,11,13,9,10,8,9,8,6,9,4,11,3,14,3,15,4,18,6,20,9,21,10,21,13,20,15,18,16,14,16,9,15,4,13,1,10,0,8,0,5,1,4,3]],\":\":[10,[5,14,4,13,5,12,6,13,5,14,-1,-1,5,2,4,1,5,0,6,1,5,2]],\";\":[10,[5,14,4,13,5,12,6,13,5,14,-1,-1,6,1,5,0,4,1,5,2,6,1,6,-1,5,-3,4,-4]],\"<\":[24,[20,18,4,9,20,0]],\"=\":[26,[4,12,22,12,-1,-1,4,6,22,6]],\">\":[24,[4,18,20,9,4,0]],\"?\":[18,[3,16,3,17,4,19,5,20,7,21,11,21,13,20,14,19,15,17,15,15,14,13,13,12,9,10,9,7,-1,-1,9,2,8,1,9,0,10,1,9,2]],\"@\":[27,[18,13,17,15,15,16,12,16,10,15,9,14,8,11,8,8,9,6,11,5,14,5,16,6,17,8,-1,-1,12,16,10,14,9,11,9,8,10,6,11,5,-1,-1,18,16,17,8,17,6,19,5,21,5,23,7,24,10,24,12,23,15,22,17,20,19,18,20,15,21,12,21,9,20,7,19,5,17,4,15,3,12,3,9,4,6,5,4,7,2,9,1,12,0,15,0,18,1,20,2,21,3,-1,-1,19,16,18,8,18,6,19,5]],A:[18,[9,21,1,0,-1,-1,9,21,17,0,-1,-1,4,7,14,7]],B:[21,[4,21,4,0,-1,-1,4,21,13,21,16,20,17,19,18,17,18,15,17,13,16,12,13,11,-1,-1,4,11,13,11,16,10,17,9,18,7,18,4,17,2,16,1,13,0,4,0]],C:[21,[18,16,17,18,15,20,13,21,9,21,7,20,5,18,4,16,3,13,3,8,4,5,5,3,7,1,9,0,13,0,15,1,17,3,18,5]],D:[21,[4,21,4,0,-1,-1,4,21,11,21,14,20,16,18,17,16,18,13,18,8,17,5,16,3,14,1,11,0,4,0]],E:[19,[4,21,4,0,-1,-1,4,21,17,21,-1,-1,4,11,12,11,-1,-1,4,0,17,0]],F:[18,[4,21,4,0,-1,-1,4,21,17,21,-1,-1,4,11,12,11]],G:[21,[18,16,17,18,15,20,13,21,9,21,7,20,5,18,4,16,3,13,3,8,4,5,5,3,7,1,9,0,13,0,15,1,17,3,18,5,18,8,-1,-1,13,8,18,8]],H:[22,[4,21,4,0,-1,-1,18,21,18,0,-1,-1,4,11,18,11]],I:[8,[4,21,4,0]],J:[16,[12,21,12,5,11,2,10,1,8,0,6,0,4,1,3,2,2,5,2,7]],K:[21,[4,21,4,0,-1,-1,18,21,4,7,-1,-1,9,12,18,0]],L:[17,[4,21,4,0,-1,-1,4,0,16,0]],M:[24,[4,21,4,0,-1,-1,4,21,12,0,-1,-1,20,21,12,0,-1,-1,20,21,20,0]],N:[22,[4,21,4,0,-1,-1,4,21,18,0,-1,-1,18,21,18,0]],O:[22,[9,21,7,20,5,18,4,16,3,13,3,8,4,5,5,3,7,1,9,0,13,0,15,1,17,3,18,5,19,8,19,13,18,16,17,18,15,20,13,21,9,21]],P:[21,[4,21,4,0,-1,-1,4,21,13,21,16,20,17,19,18,17,18,14,17,12,16,11,13,10,4,10]],Q:[22,[9,21,7,20,5,18,4,16,3,13,3,8,4,5,5,3,7,1,9,0,13,0,15,1,17,3,18,5,19,8,19,13,18,16,17,18,15,20,13,21,9,21,-1,-1,12,4,18,-2]],R:[21,[4,21,4,0,-1,-1,4,21,13,21,16,20,17,19,18,17,18,15,17,13,16,12,13,11,4,11,-1,-1,11,11,18,0]],S:[20,[17,18,15,20,12,21,8,21,5,20,3,18,3,16,4,14,5,13,7,12,13,10,15,9,16,8,17,6,17,3,15,1,12,0,8,0,5,1,3,3]],T:[16,[8,21,8,0,-1,-1,1,21,15,21]],U:[22,[4,21,4,6,5,3,7,1,10,0,12,0,15,1,17,3,18,6,18,21]],V:[18,[1,21,9,0,-1,-1,17,21,9,0]],W:[24,[2,21,7,0,-1,-1,12,21,7,0,-1,-1,12,21,17,0,-1,-1,22,21,17,0]],X:[20,[3,21,17,0,-1,-1,17,21,3,0]],Y:[18,[1,21,9,11,9,0,-1,-1,17,21,9,11]],Z:[20,[17,21,3,0,-1,-1,3,21,17,21,-1,-1,3,0,17,0]],\"[\":[14,[4,25,4,-7,-1,-1,5,25,5,-7,-1,-1,4,25,11,25,-1,-1,4,-7,11,-7]],\"\\\\\":[14,[0,21,14,-3]],\"]\":[14,[9,25,9,-7,-1,-1,10,25,10,-7,-1,-1,3,25,10,25,-1,-1,3,-7,10,-7]],\"^\":[16,[6,15,8,18,10,15,-1,-1,3,12,8,17,13,12,-1,-1,8,17,8,0]],_:[16,[0,-2,16,-2]],\"`\":[10,[6,21,5,20,4,18,4,16,5,15,6,16,5,17]],a:[19,[15,14,15,0,-1,-1,15,11,13,13,11,14,8,14,6,13,4,11,3,8,3,6,4,3,6,1,8,0,11,0,13,1,15,3]],b:[19,[4,21,4,0,-1,-1,4,11,6,13,8,14,11,14,13,13,15,11,16,8,16,6,15,3,13,1,11,0,8,0,6,1,4,3]],c:[18,[15,11,13,13,11,14,8,14,6,13,4,11,3,8,3,6,4,3,6,1,8,0,11,0,13,1,15,3]],d:[19,[15,21,15,0,-1,-1,15,11,13,13,11,14,8,14,6,13,4,11,3,8,3,6,4,3,6,1,8,0,11,0,13,1,15,3]],e:[18,[3,8,15,8,15,10,14,12,13,13,11,14,8,14,6,13,4,11,3,8,3,6,4,3,6,1,8,0,11,0,13,1,15,3]],f:[12,[10,21,8,21,6,20,5,17,5,0,-1,-1,2,14,9,14]],g:[19,[15,14,15,-2,14,-5,13,-6,11,-7,8,-7,6,-6,-1,-1,15,11,13,13,11,14,8,14,6,13,4,11,3,8,3,6,4,3,6,1,8,0,11,0,13,1,15,3]],h:[19,[4,21,4,0,-1,-1,4,10,7,13,9,14,12,14,14,13,15,10,15,0]],i:[8,[3,21,4,20,5,21,4,22,3,21,-1,-1,4,14,4,0]],j:[10,[5,21,6,20,7,21,6,22,5,21,-1,-1,6,14,6,-3,5,-6,3,-7,1,-7]],k:[17,[4,21,4,0,-1,-1,14,14,4,4,-1,-1,8,8,15,0]],l:[8,[4,21,4,0]],m:[30,[4,14,4,0,-1,-1,4,10,7,13,9,14,12,14,14,13,15,10,15,0,-1,-1,15,10,18,13,20,14,23,14,25,13,26,10,26,0]],n:[19,[4,14,4,0,-1,-1,4,10,7,13,9,14,12,14,14,13,15,10,15,0]],o:[19,[8,14,6,13,4,11,3,8,3,6,4,3,6,1,8,0,11,0,13,1,15,3,16,6,16,8,15,11,13,13,11,14,8,14]],p:[19,[4,14,4,-7,-1,-1,4,11,6,13,8,14,11,14,13,13,15,11,16,8,16,6,15,3,13,1,11,0,8,0,6,1,4,3]],q:[19,[15,14,15,-7,-1,-1,15,11,13,13,11,14,8,14,6,13,4,11,3,8,3,6,4,3,6,1,8,0,11,0,13,1,15,3]],r:[13,[4,14,4,0,-1,-1,4,8,5,11,7,13,9,14,12,14]],s:[17,[14,11,13,13,10,14,7,14,4,13,3,11,4,9,6,8,11,7,13,6,14,4,14,3,13,1,10,0,7,0,4,1,3,3]],t:[12,[5,21,5,4,6,1,8,0,10,0,-1,-1,2,14,9,14]],u:[19,[4,14,4,4,5,1,7,0,10,0,12,1,15,4,-1,-1,15,14,15,0]],v:[16,[2,14,8,0,-1,-1,14,14,8,0]],w:[22,[3,14,7,0,-1,-1,11,14,7,0,-1,-1,11,14,15,0,-1,-1,19,14,15,0]],x:[17,[3,14,14,0,-1,-1,14,14,3,0]],y:[16,[2,14,8,0,-1,-1,14,14,8,0,6,-4,4,-6,2,-7,1,-7]],z:[17,[14,14,3,0,-1,-1,3,14,14,14,-1,-1,3,0,14,0]],\"{\":[14,[9,25,7,24,6,23,5,21,5,19,6,17,7,16,8,14,8,12,6,10,-1,-1,7,24,6,22,6,20,7,18,8,17,9,15,9,13,8,11,4,9,8,7,9,5,9,3,8,1,7,0,6,-2,6,-4,7,-6,-1,-1,6,8,8,6,8,4,7,2,6,1,5,-1,5,-3,6,-5,7,-6,9,-7]],\"|\":[8,[4,25,4,-7]],\"}\":[14,[5,25,7,24,8,23,9,21,9,19,8,17,7,16,6,14,6,12,8,10,-1,-1,7,24,8,22,8,20,7,18,6,17,5,15,5,13,6,11,10,9,6,7,5,5,5,3,6,1,7,0,8,-2,8,-4,7,-6,-1,-1,8,8,6,6,6,4,7,2,8,1,9,-1,9,-3,8,-5,7,-6,5,-7]],\"~\":[24,[3,6,3,8,4,11,6,12,8,12,10,11,14,8,16,7,18,7,20,8,21,10,-1,-1,3,8,4,10,6,11,8,11,10,10,14,7,16,6,18,6,20,7,21,10,21,12]]},Lr={symbol:function(t,e,r,n){if(\"translucent\"===t.renderPass){var i=t.context;i.setStencilMode(Ht.disabled),i.setColorMode(t.colorModeForRenderPass()),0!==r.paint.get(\"icon-opacity\").constantOr(1)&&cr(t,e,r,n,!1,r.paint.get(\"icon-translate\"),r.paint.get(\"icon-translate-anchor\"),r.layout.get(\"icon-rotation-alignment\"),r.layout.get(\"icon-pitch-alignment\"),r.layout.get(\"icon-keep-upright\")),0!==r.paint.get(\"text-opacity\").constantOr(1)&&cr(t,e,r,n,!0,r.paint.get(\"text-translate\"),r.paint.get(\"text-translate-anchor\"),r.layout.get(\"text-rotation-alignment\"),r.layout.get(\"text-pitch-alignment\"),r.layout.get(\"text-keep-upright\")),e.map.showCollisionBoxes&&function(t,e,r,n){or(t,e,r,n,!1),or(t,e,r,n,!0)}(t,e,r,n)}},circle:function(t,e,r,n){if(\"translucent\"===t.renderPass){var i=r.paint.get(\"circle-opacity\"),a=r.paint.get(\"circle-stroke-width\"),o=r.paint.get(\"circle-stroke-opacity\");if(0!==i.constantOr(1)||0!==a.constantOr(1)&&0!==o.constantOr(1)){var s=t.context,l=s.gl;s.setDepthMode(t.depthModeForSublayer(0,qt.ReadOnly)),s.setStencilMode(Ht.disabled),s.setColorMode(t.colorModeForRenderPass());for(var c=!0,u=0;u<n.length;u++){var f=n[u],h=e.getTile(f),p=h.getBucket(r);if(p){var d=t.context.program.get(),g=p.programConfigurations.get(r.id),v=t.useProgram(\"circle\",g);if((c||v.program!==d)&&(g.setUniforms(s,v,r.paint,{zoom:t.transform.zoom}),c=!1),l.uniform1f(v.uniforms.u_camera_to_center_distance,t.transform.cameraToCenterDistance),l.uniform1i(v.uniforms.u_scale_with_map,\"map\"===r.paint.get(\"circle-pitch-scale\")?1:0),\"map\"===r.paint.get(\"circle-pitch-alignment\")){l.uniform1i(v.uniforms.u_pitch_with_map,1);var m=Te(h,1,t.transform.zoom);l.uniform2f(v.uniforms.u_extrude_scale,m,m)}else l.uniform1i(v.uniforms.u_pitch_with_map,0),l.uniform2fv(v.uniforms.u_extrude_scale,t.transform.pixelsToGLUnits);l.uniformMatrix4fv(v.uniforms.u_matrix,!1,t.translatePosMatrix(f.posMatrix,h,r.paint.get(\"circle-translate\"),r.paint.get(\"circle-translate-anchor\"))),v.draw(s,l.TRIANGLES,r.id,p.layoutVertexBuffer,p.indexBuffer,p.segments,g)}}}}},heatmap:function(e,r,n,i){if(0!==n.paint.get(\"heatmap-opacity\"))if(\"offscreen\"===e.renderPass){var a=e.context,o=a.gl;a.setDepthMode(e.depthModeForSublayer(0,qt.ReadOnly)),a.setStencilMode(Ht.disabled),function(t,e,r){var n=t.gl;t.activeTexture.set(n.TEXTURE1),t.viewport.set([0,0,e.width/4,e.height/4]);var i=r.heatmapFbo;if(i)n.bindTexture(n.TEXTURE_2D,i.colorAttachment.get()),t.bindFramebuffer.set(i.framebuffer);else{var a=n.createTexture();n.bindTexture(n.TEXTURE_2D,a),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,n.CLAMP_TO_EDGE),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,n.CLAMP_TO_EDGE),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,n.LINEAR),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,n.LINEAR),i=r.heatmapFbo=t.createFramebuffer(e.width/4,e.height/4),function t(e,r,n,i){var a=e.gl;a.texImage2D(a.TEXTURE_2D,0,a.RGBA,r.width/4,r.height/4,0,a.RGBA,e.extTextureHalfFloat?e.extTextureHalfFloat.HALF_FLOAT_OES:a.UNSIGNED_BYTE,null),i.colorAttachment.set(n),e.extTextureHalfFloat&&a.checkFramebufferStatus(a.FRAMEBUFFER)!==a.FRAMEBUFFER_COMPLETE&&(e.extTextureHalfFloat=null,i.colorAttachment.setDirty(),t(e,r,n,i))}(t,e,a,i)}}(a,e,n),a.clear({color:t.default$6.transparent}),a.setColorMode(new Gt([o.ONE,o.ONE],t.default$6.transparent,[!0,!0,!0,!0]));for(var s=!0,l=0;l<i.length;l++){var c=i[l];if(!r.hasRenderableParent(c)){var u=r.getTile(c),f=u.getBucket(n);if(f){var h=e.context.program.get(),p=f.programConfigurations.get(n.id),d=e.useProgram(\"heatmap\",p),g=e.transform.zoom;(s||d.program!==h)&&(p.setUniforms(e.context,d,n.paint,{zoom:g}),s=!1),o.uniform1f(d.uniforms.u_extrude_scale,Te(u,1,g)),o.uniform1f(d.uniforms.u_intensity,n.paint.get(\"heatmap-intensity\")),o.uniformMatrix4fv(d.uniforms.u_matrix,!1,c.posMatrix),d.draw(a,o.TRIANGLES,n.id,f.layoutVertexBuffer,f.indexBuffer,f.segments,p)}}}a.viewport.set([0,0,e.width,e.height])}else\"translucent\"===e.renderPass&&(e.context.setColorMode(e.colorModeForRenderPass()),function(e,r){var n=e.context,i=n.gl,a=r.heatmapFbo;if(a){n.activeTexture.set(i.TEXTURE0),i.bindTexture(i.TEXTURE_2D,a.colorAttachment.get()),n.activeTexture.set(i.TEXTURE1);var o=r.colorRampTexture;o||(o=r.colorRampTexture=new z(n,r.colorRamp,i.RGBA)),o.bind(i.LINEAR,i.CLAMP_TO_EDGE),n.setDepthMode(qt.disabled);var s=e.useProgram(\"heatmapTexture\"),l=r.paint.get(\"heatmap-opacity\");i.uniform1f(s.uniforms.u_opacity,l),i.uniform1i(s.uniforms.u_image,0),i.uniform1i(s.uniforms.u_color_ramp,1);var c=t.mat4.create();t.mat4.ortho(c,0,e.width,e.height,0,0,1),i.uniformMatrix4fv(s.uniforms.u_matrix,!1,c),i.uniform2f(s.uniforms.u_world,i.drawingBufferWidth,i.drawingBufferHeight),e.viewportVAO.bind(e.context,s,e.viewportBuffer,[]),i.drawArrays(i.TRIANGLE_STRIP,0,4)}}(e,n))},line:function(t,e,r,n){if(\"translucent\"===t.renderPass&&0!==r.paint.get(\"line-opacity\").constantOr(1)){var i=t.context;i.setDepthMode(t.depthModeForSublayer(0,qt.ReadOnly)),i.setColorMode(t.colorModeForRenderPass());for(var a,o=r.paint.get(\"line-dasharray\")?\"lineSDF\":r.paint.get(\"line-pattern\")?\"linePattern\":r.paint.get(\"line-gradient\")?\"lineGradient\":\"line\",s=!0,l=0,c=n;l<c.length;l+=1){var u=c[l],f=e.getTile(u),h=f.getBucket(r);if(h){var p=h.programConfigurations.get(r.id),d=t.context.program.get(),g=t.useProgram(o,p),v=s||g.program!==d,m=a!==f.tileID.overscaledZ;v&&p.setUniforms(t.context,g,r.paint,{zoom:t.transform.zoom}),pr(g,t,f,h,r,u,p,v,m),a=f.tileID.overscaledZ,s=!1}}}},fill:function(e,r,n,i){var a=n.paint.get(\"fill-color\"),o=n.paint.get(\"fill-opacity\");if(0!==o.constantOr(1)){var s=e.context;s.setColorMode(e.colorModeForRenderPass());var l=n.paint.get(\"fill-pattern\")||1!==a.constantOr(t.default$6.transparent).a||1!==o.constantOr(0)?\"translucent\":\"opaque\";e.renderPass===l&&(s.setDepthMode(e.depthModeForSublayer(1,\"opaque\"===e.renderPass?qt.ReadWrite:qt.ReadOnly)),mr(e,r,n,i,yr)),\"translucent\"===e.renderPass&&n.paint.get(\"fill-antialias\")&&(s.lineWidth.set(2),s.setDepthMode(e.depthModeForSublayer(n.getPaintProperty(\"fill-outline-color\")?2:0,qt.ReadOnly)),mr(e,r,n,i,xr))}},\"fill-extrusion\":function(e,r,n,i){if(0!==n.paint.get(\"fill-extrusion-opacity\"))if(\"offscreen\"===e.renderPass){!function(e,r){var n=e.context,i=n.gl,a=r.viewportFrame;if(e.depthRboNeedsClear&&e.setupOffscreenDepthRenderbuffer(),!a){var o=new z(n,{width:e.width,height:e.height,data:null},i.RGBA);o.bind(i.LINEAR,i.CLAMP_TO_EDGE),(a=r.viewportFrame=n.createFramebuffer(e.width,e.height)).colorAttachment.set(o.texture)}n.bindFramebuffer.set(a.framebuffer),a.depthAttachment.set(e.depthRbo),e.depthRboNeedsClear&&(n.clear({depth:1}),e.depthRboNeedsClear=!1),n.clear({color:t.default$6.transparent}),n.setStencilMode(Ht.disabled),n.setDepthMode(new qt(i.LEQUAL,qt.ReadWrite,[0,1])),n.setColorMode(e.colorModeForRenderPass())}(e,n);for(var a=!0,o=0,s=i;o<s.length;o+=1){var l=s[o],c=r.getTile(l),u=c.getBucket(n);u&&(Mr(e,0,n,c,l,u,a),a=!1)}}else\"translucent\"===e.renderPass&&function(t,e){var r=e.viewportFrame;if(r){var n=t.context,i=n.gl,a=t.useProgram(\"extrusionTexture\");n.setStencilMode(Ht.disabled),n.setDepthMode(qt.disabled),n.setColorMode(t.colorModeForRenderPass()),n.activeTexture.set(i.TEXTURE0),i.bindTexture(i.TEXTURE_2D,r.colorAttachment.get()),i.uniform1f(a.uniforms.u_opacity,e.paint.get(\"fill-extrusion-opacity\")),i.uniform1i(a.uniforms.u_image,0);var o=wr.create();wr.ortho(o,0,t.width,t.height,0,0,1),i.uniformMatrix4fv(a.uniforms.u_matrix,!1,o),i.uniform2f(a.uniforms.u_world,i.drawingBufferWidth,i.drawingBufferHeight),t.viewportVAO.bind(n,a,t.viewportBuffer,[]),i.drawArrays(i.TRIANGLE_STRIP,0,4)}}(e,n)},hillshade:function(t,e,r,n){if(\"offscreen\"===t.renderPass||\"translucent\"===t.renderPass){var i=t.context,a=e.getSource().maxzoom;i.setDepthMode(t.depthModeForSublayer(0,qt.ReadOnly)),i.setStencilMode(Ht.disabled),i.setColorMode(t.colorModeForRenderPass());for(var o=0,s=n;o<s.length;o+=1){var l=s[o],c=e.getTile(l);c.needsHillshadePrepare&&\"offscreen\"===t.renderPass?Tr(t,c,a):\"translucent\"===t.renderPass&&Ar(t,c,r)}i.viewport.set([0,0,t.width,t.height])}},raster:function(t,e,r,n){if(\"translucent\"===t.renderPass&&0!==r.paint.get(\"raster-opacity\")){var i,a,o=t.context,s=o.gl,l=e.getSource(),c=t.useProgram(\"raster\");o.setStencilMode(Ht.disabled),o.setColorMode(t.colorModeForRenderPass()),s.uniform1f(c.uniforms.u_brightness_low,r.paint.get(\"raster-brightness-min\")),s.uniform1f(c.uniforms.u_brightness_high,r.paint.get(\"raster-brightness-max\")),s.uniform1f(c.uniforms.u_saturation_factor,(i=r.paint.get(\"raster-saturation\"))>0?1-1/(1.001-i):-i),s.uniform1f(c.uniforms.u_contrast_factor,(a=r.paint.get(\"raster-contrast\"))>0?1/(1-a):1+a),s.uniform3fv(c.uniforms.u_spin_weights,function(t){t*=Math.PI/180;var e=Math.sin(t),r=Math.cos(t);return[(2*r+1)/3,(-Math.sqrt(3)*e-r+1)/3,(Math.sqrt(3)*e-r+1)/3]}(r.paint.get(\"raster-hue-rotate\"))),s.uniform1f(c.uniforms.u_buffer_scale,1),s.uniform1i(c.uniforms.u_image0,0),s.uniform1i(c.uniforms.u_image1,1);for(var u=n.length&&n[0].overscaledZ,f=0,h=n;f<h.length;f+=1){var p=h[f];o.setDepthMode(t.depthModeForSublayer(p.overscaledZ-u,1===r.paint.get(\"raster-opacity\")?qt.ReadWrite:qt.ReadOnly,s.LESS));var d=e.getTile(p),g=t.transform.calculatePosMatrix(p.toUnwrapped(),!0);d.registerFadeDuration(r.paint.get(\"raster-fade-duration\")),s.uniformMatrix4fv(c.uniforms.u_matrix,!1,g);var v=e.findLoadedParent(p,0,{}),m=Sr(d,v,e,r,t.transform),y=void 0,x=void 0;if(o.activeTexture.set(s.TEXTURE0),d.texture.bind(s.LINEAR,s.CLAMP_TO_EDGE,s.LINEAR_MIPMAP_NEAREST),o.activeTexture.set(s.TEXTURE1),v?(v.texture.bind(s.LINEAR,s.CLAMP_TO_EDGE,s.LINEAR_MIPMAP_NEAREST),y=Math.pow(2,v.tileID.overscaledZ-d.tileID.overscaledZ),x=[d.tileID.canonical.x*y%1,d.tileID.canonical.y*y%1]):d.texture.bind(s.LINEAR,s.CLAMP_TO_EDGE,s.LINEAR_MIPMAP_NEAREST),s.uniform2fv(c.uniforms.u_tl_parent,x||[0,0]),s.uniform1f(c.uniforms.u_scale_parent,y||1),s.uniform1f(c.uniforms.u_fade_t,m.mix),s.uniform1f(c.uniforms.u_opacity,m.opacity*r.paint.get(\"raster-opacity\")),l instanceof tt){var b=l.boundsBuffer;l.boundsVAO.bind(o,c,b,[]),s.drawArrays(s.TRIANGLE_STRIP,0,b.length)}else if(d.maskedBoundsBuffer&&d.maskedIndexBuffer&&d.segments)c.draw(o,s.TRIANGLES,r.id,d.maskedBoundsBuffer,d.maskedIndexBuffer,d.segments);else{var _=t.rasterBoundsBuffer;t.rasterBoundsVAO.bind(o,c,_,[]),s.drawArrays(s.TRIANGLE_STRIP,0,_.length)}}}},background:function(t,e,r){var n=r.paint.get(\"background-color\"),i=r.paint.get(\"background-opacity\");if(0!==i){var a=t.context,o=a.gl,s=t.transform,l=s.tileSize,c=r.paint.get(\"background-pattern\"),u=c||1!==n.a||1!==i?\"translucent\":\"opaque\";if(t.renderPass===u){var f;if(a.setStencilMode(Ht.disabled),a.setDepthMode(t.depthModeForSublayer(0,\"opaque\"===u?qt.ReadWrite:qt.ReadOnly)),a.setColorMode(t.colorModeForRenderPass()),c){if(dr(c,t))return;f=t.useProgram(\"backgroundPattern\"),gr(c,t,f),t.tileExtentPatternVAO.bind(a,f,t.tileExtentBuffer,[])}else f=t.useProgram(\"background\"),o.uniform4fv(f.uniforms.u_color,[n.r,n.g,n.b,n.a]),t.tileExtentVAO.bind(a,f,t.tileExtentBuffer,[]);o.uniform1f(f.uniforms.u_opacity,i);for(var h=0,p=s.coveringTiles({tileSize:l});h<p.length;h+=1){var d=p[h];c&&vr({tileID:d,tileSize:l},t,f),o.uniformMatrix4fv(f.uniforms.u_matrix,!1,t.transform.calculatePosMatrix(d.toUnwrapped())),o.drawArrays(o.TRIANGLE_STRIP,0,t.tileExtentBuffer.length)}}}},debug:function(t,e,r){for(var n=0;n<r.length;n++)Er(t,e,r[n])}},zr=function(e,r){this.context=new Wt(e),this.transform=r,this._tileTextures={},this.setup(),this.numSublayers=Yt.maxUnderzooming+Yt.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.depthRboNeedsClear=!0,this.emptyProgramConfiguration=new t.default$24,this.crossTileSymbolIndex=new Ye};function Or(t,e){if(t.row>e.row){var r=t;t=e,e=r}return{x0:t.column,y0:t.row,x1:e.column,y1:e.row,dx:e.column-t.column,dy:e.row-t.row}}function Ir(t,e,r,n,i){var a=Math.max(r,Math.floor(e.y0)),o=Math.min(n,Math.ceil(e.y1));if(t.x0===e.x0&&t.y0===e.y0?t.x0+e.dy/t.dy*t.dx<e.x1:t.x1-e.dy/t.dy*t.dx<e.x0){var s=t;t=e,e=s}for(var l=t.dx/t.dy,c=e.dx/e.dy,u=t.dx>0,f=e.dx<0,h=a;h<o;h++){var p=l*Math.max(0,Math.min(t.dy,h+u-t.y0))+t.x0,d=c*Math.max(0,Math.min(e.dy,h+f-e.y0))+e.x0;i(Math.floor(d),Math.ceil(p),h)}}function Pr(t,e,r,n,i,a){var o,s=Or(t,e),l=Or(e,r),c=Or(r,t);s.dy>l.dy&&(o=s,s=l,l=o),s.dy>c.dy&&(o=s,s=c,c=o),l.dy>c.dy&&(o=l,l=c,c=o),s.dy&&Ir(c,s,n,i,a),l.dy&&Ir(c,l,n,i,a)}zr.prototype.resize=function(t,e){var r=this.context.gl;if(this.width=t*a.devicePixelRatio,this.height=e*a.devicePixelRatio,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(var n=0,i=this.style._order;n<i.length;n+=1){var o=i[n];this.style._layers[o].resize()}this.depthRbo&&(r.deleteRenderbuffer(this.depthRbo),this.depthRbo=null)},zr.prototype.setup=function(){var e=this.context,r=new t.PosArray;r.emplaceBack(0,0),r.emplaceBack(t.default$8,0),r.emplaceBack(0,t.default$8),r.emplaceBack(t.default$8,t.default$8),this.tileExtentBuffer=e.createVertexBuffer(r,Ke.members),this.tileExtentVAO=new Q,this.tileExtentPatternVAO=new Q;var n=new t.PosArray;n.emplaceBack(0,0),n.emplaceBack(t.default$8,0),n.emplaceBack(t.default$8,t.default$8),n.emplaceBack(0,t.default$8),n.emplaceBack(0,0),this.debugBuffer=e.createVertexBuffer(n,Ke.members),this.debugVAO=new Q;var i=new t.RasterBoundsArray;i.emplaceBack(0,0,0,0),i.emplaceBack(t.default$8,0,t.default$8,0),i.emplaceBack(0,t.default$8,0,t.default$8),i.emplaceBack(t.default$8,t.default$8,t.default$8,t.default$8),this.rasterBoundsBuffer=e.createVertexBuffer(i,K.members),this.rasterBoundsVAO=new Q;var a=new t.PosArray;a.emplaceBack(0,0),a.emplaceBack(1,0),a.emplaceBack(0,1),a.emplaceBack(1,1),this.viewportBuffer=e.createVertexBuffer(a,Ke.members),this.viewportVAO=new Q},zr.prototype.clearStencil=function(){var e=this.context,r=e.gl;e.setColorMode(Gt.disabled),e.setDepthMode(qt.disabled),e.setStencilMode(new Ht({func:r.ALWAYS,mask:0},0,255,r.ZERO,r.ZERO,r.ZERO));var n=t.mat4.create();t.mat4.ortho(n,0,this.width,this.height,0,0,1),t.mat4.scale(n,n,[r.drawingBufferWidth,r.drawingBufferHeight,0]);var i=this.useProgram(\"clippingMask\");r.uniformMatrix4fv(i.uniforms.u_matrix,!1,n),this.viewportVAO.bind(e,i,this.viewportBuffer,[]),r.drawArrays(r.TRIANGLE_STRIP,0,4)},zr.prototype._renderTileClippingMasks=function(t){var e=this.context,r=e.gl;e.setColorMode(Gt.disabled),e.setDepthMode(qt.disabled);var n=1;this._tileClippingMaskIDs={};for(var i=0,a=t;i<a.length;i+=1){var o=a[i],s=this._tileClippingMaskIDs[o.key]=n++;e.setStencilMode(new Ht({func:r.ALWAYS,mask:0},s,255,r.KEEP,r.KEEP,r.REPLACE));var l=this.useProgram(\"clippingMask\");r.uniformMatrix4fv(l.uniforms.u_matrix,!1,o.posMatrix),this.tileExtentVAO.bind(this.context,l,this.tileExtentBuffer,[]),r.drawArrays(r.TRIANGLE_STRIP,0,this.tileExtentBuffer.length)}},zr.prototype.stencilModeForClipping=function(t){var e=this.context.gl;return new Ht({func:e.EQUAL,mask:255},this._tileClippingMaskIDs[t.key],0,e.KEEP,e.KEEP,e.REPLACE)},zr.prototype.colorModeForRenderPass=function(){var e=this.context.gl;return this._showOverdrawInspector?new Gt([e.CONSTANT_COLOR,e.ONE],new t.default$6(1/8,1/8,1/8,0),[!0,!0,!0,!0]):\"opaque\"===this.renderPass?Gt.unblended:Gt.alphaBlended},zr.prototype.depthModeForSublayer=function(t,e,r){var n=1-((1+this.currentLayer)*this.numSublayers+t)*this.depthEpsilon,i=n-1+this.depthRange;return new qt(r||this.context.gl.LEQUAL,e,[i,n])},zr.prototype.render=function(e,r){var n=this;for(var i in this.style=e,this.options=r,this.lineAtlas=e.lineAtlas,this.imageManager=e.imageManager,this.glyphManager=e.glyphManager,this.symbolFadeChange=e.placement.symbolFadeChange(a.now()),e.sourceCaches){var o=n.style.sourceCaches[i];o.used&&o.prepare(n.context)}var s=this.style._order,l=t.filterObject(this.style.sourceCaches,function(t){return\"raster\"===t.getSource().type||\"raster-dem\"===t.getSource().type}),c=function(e){var r=l[e];!function(e,r){for(var n=e.sort(function(t,e){return t.tileID.isLessThan(e.tileID)?-1:e.tileID.isLessThan(t.tileID)?1:0}),i=0;i<n.length;i++){var a={},o=n[i],s=n.slice(i+1);ar(o.tileID.wrapped(),o.tileID,s,new t.OverscaledTileID(0,o.tileID.wrap+1,0,0,0),a),o.setMask(a,r)}}(r.getVisibleCoordinates().map(function(t){return r.getTile(t)}),n.context)};for(var u in l)c(u);this.renderPass=\"offscreen\";var f,h=[];this.depthRboNeedsClear=!0;for(var p=0;p<s.length;p++){var d=n.style._layers[s[p]];d.hasOffscreenPass()&&!d.isHidden(n.transform.zoom)&&(d.source!==(f&&f.id)&&(h=[],(f=n.style.sourceCaches[d.source])&&(h=f.getVisibleCoordinates()).reverse()),h.length&&n.renderLayer(n,f,d,h))}this.context.bindFramebuffer.set(null),this.context.clear({color:r.showOverdrawInspector?t.default$6.black:t.default$6.transparent,depth:1}),this._showOverdrawInspector=r.showOverdrawInspector,this.depthRange=(e._order.length+2)*this.numSublayers*this.depthEpsilon,this.renderPass=\"opaque\";var g,v=[];for(this.currentLayer=s.length-1,this.currentLayer;this.currentLayer>=0;this.currentLayer--){var m=n.style._layers[s[n.currentLayer]];m.source!==(g&&g.id)&&(v=[],(g=n.style.sourceCaches[m.source])&&(n.clearStencil(),v=g.getVisibleCoordinates(),g.getSource().isTileClipped&&n._renderTileClippingMasks(v))),n.renderLayer(n,g,m,v)}this.renderPass=\"translucent\";var y,x=[];for(this.currentLayer=0,this.currentLayer;this.currentLayer<s.length;this.currentLayer++){var b=n.style._layers[s[n.currentLayer]];b.source!==(y&&y.id)&&(x=[],(y=n.style.sourceCaches[b.source])&&(n.clearStencil(),x=y.getVisibleCoordinates(),y.getSource().isTileClipped&&n._renderTileClippingMasks(x)),x.reverse()),n.renderLayer(n,y,b,x)}if(this.options.showTileBoundaries){var _=this.style.sourceCaches[Object.keys(this.style.sourceCaches)[0]];_&&Lr.debug(this,_,_.getVisibleCoordinates())}},zr.prototype.setupOffscreenDepthRenderbuffer=function(){var t=this.context;this.depthRbo||(this.depthRbo=t.createRenderbuffer(t.gl.DEPTH_COMPONENT16,this.width,this.height))},zr.prototype.renderLayer=function(t,e,r,n){r.isHidden(this.transform.zoom)||(\"background\"===r.type||n.length)&&(this.id=r.id,Lr[r.type](t,e,r,n))},zr.prototype.translatePosMatrix=function(e,r,n,i,a){if(!n[0]&&!n[1])return e;var o=a?\"map\"===i?this.transform.angle:0:\"viewport\"===i?-this.transform.angle:0;if(o){var s=Math.sin(o),l=Math.cos(o);n=[n[0]*l-n[1]*s,n[0]*s+n[1]*l]}var c=[a?n[0]:Te(r,n[0],this.transform.zoom),a?n[1]:Te(r,n[1],this.transform.zoom),0],u=new Float32Array(16);return t.mat4.translate(u,e,c),u},zr.prototype.saveTileTexture=function(t){var e=this._tileTextures[t.size[0]];e?e.push(t):this._tileTextures[t.size[0]]=[t]},zr.prototype.getTileTexture=function(t){var e=this._tileTextures[t];return e&&e.length>0?e.pop():null},zr.prototype._createProgramCached=function(t,e){this.cache=this.cache||{};var r=\"\"+t+(e.cacheKey||\"\")+(this._showOverdrawInspector?\"/overdraw\":\"\");return this.cache[r]||(this.cache[r]=new ir(this.context,nr[t],e,this._showOverdrawInspector)),this.cache[r]},zr.prototype.useProgram=function(t,e){var r=this._createProgramCached(t,e||this.emptyProgramConfiguration);return this.context.program.set(r.program),r};var Dr=t.default$20.vec4,Rr=t.default$20.mat4,Br=t.default$20.mat2,Fr=function(t,e,r){this.tileSize=512,this._renderWorldCopies=void 0===r||r,this._minZoom=t||0,this._maxZoom=e||22,this.latRange=[-85.05113,85.05113],this.width=0,this.height=0,this._center=new G(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._posMatrixCache={},this._alignedPosMatrixCache={}},Nr={minZoom:{configurable:!0},maxZoom:{configurable:!0},renderWorldCopies:{configurable:!0},worldSize:{configurable:!0},centerPoint:{configurable:!0},size:{configurable:!0},bearing:{configurable:!0},pitch:{configurable:!0},fov:{configurable:!0},zoom:{configurable:!0},center:{configurable:!0},unmodified:{configurable:!0},x:{configurable:!0},y:{configurable:!0},point:{configurable:!0}};Fr.prototype.clone=function(){var t=new Fr(this._minZoom,this._maxZoom,this._renderWorldCopies);return t.tileSize=this.tileSize,t.latRange=this.latRange,t.width=this.width,t.height=this.height,t._center=this._center,t.zoom=this.zoom,t.angle=this.angle,t._fov=this._fov,t._pitch=this._pitch,t._unmodified=this._unmodified,t._calcMatrices(),t},Nr.minZoom.get=function(){return this._minZoom},Nr.minZoom.set=function(t){this._minZoom!==t&&(this._minZoom=t,this.zoom=Math.max(this.zoom,t))},Nr.maxZoom.get=function(){return this._maxZoom},Nr.maxZoom.set=function(t){this._maxZoom!==t&&(this._maxZoom=t,this.zoom=Math.min(this.zoom,t))},Nr.renderWorldCopies.get=function(){return this._renderWorldCopies},Nr.renderWorldCopies.set=function(t){void 0===t?t=!0:null===t&&(t=!1),this._renderWorldCopies=t},Nr.worldSize.get=function(){return this.tileSize*this.scale},Nr.centerPoint.get=function(){return this.size._div(2)},Nr.size.get=function(){return new t.default$1(this.width,this.height)},Nr.bearing.get=function(){return-this.angle/Math.PI*180},Nr.bearing.set=function(e){var r=-t.wrap(e,-180,180)*Math.PI/180;this.angle!==r&&(this._unmodified=!1,this.angle=r,this._calcMatrices(),this.rotationMatrix=Br.create(),Br.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},Nr.pitch.get=function(){return this._pitch/Math.PI*180},Nr.pitch.set=function(e){var r=t.clamp(e,0,60)/180*Math.PI;this._pitch!==r&&(this._unmodified=!1,this._pitch=r,this._calcMatrices())},Nr.fov.get=function(){return this._fov/Math.PI*180},Nr.fov.set=function(t){t=Math.max(.01,Math.min(60,t)),this._fov!==t&&(this._unmodified=!1,this._fov=t/180*Math.PI,this._calcMatrices())},Nr.zoom.get=function(){return this._zoom},Nr.zoom.set=function(t){var e=Math.min(Math.max(t,this.minZoom),this.maxZoom);this._zoom!==e&&(this._unmodified=!1,this._zoom=e,this.scale=this.zoomScale(e),this.tileZoom=Math.floor(e),this.zoomFraction=e-this.tileZoom,this._constrain(),this._calcMatrices())},Nr.center.get=function(){return this._center},Nr.center.set=function(t){t.lat===this._center.lat&&t.lng===this._center.lng||(this._unmodified=!1,this._center=t,this._constrain(),this._calcMatrices())},Fr.prototype.coveringZoomLevel=function(t){return(t.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/t.tileSize))},Fr.prototype.getVisibleUnwrappedCoordinates=function(e){var r=this.pointCoordinate(new t.default$1(0,0),0),n=this.pointCoordinate(new t.default$1(this.width,0),0),i=Math.floor(r.column),a=Math.floor(n.column),o=[new t.UnwrappedTileID(0,e)];if(this._renderWorldCopies)for(var s=i;s<=a;s++)0!==s&&o.push(new t.UnwrappedTileID(s,e));return o},Fr.prototype.coveringTiles=function(e){var r=this.coveringZoomLevel(e),n=r;if(void 0!==e.minzoom&&r<e.minzoom)return[];void 0!==e.maxzoom&&r>e.maxzoom&&(r=e.maxzoom);var i=this.pointCoordinate(this.centerPoint,r),a=new t.default$1(i.column-.5,i.row-.5);return function(e,r,n,i){void 0===i&&(i=!0);var a=1<<e,o={};function s(r,s,l){var c,u,f,h;if(l>=0&&l<=a)for(c=r;c<s;c++)u=Math.floor(c/a),f=(c%a+a)%a,0!==u&&!0!==i||(h=new t.OverscaledTileID(n,u,e,f,l),o[h.key]=h)}return Pr(r[0],r[1],r[2],0,a,s),Pr(r[2],r[3],r[0],0,a,s),Object.keys(o).map(function(t){return o[t]})}(r,[this.pointCoordinate(new t.default$1(0,0),r),this.pointCoordinate(new t.default$1(this.width,0),r),this.pointCoordinate(new t.default$1(this.width,this.height),r),this.pointCoordinate(new t.default$1(0,this.height),r)],e.reparseOverscaled?n:r,this._renderWorldCopies).sort(function(t,e){return a.dist(t.canonical)-a.dist(e.canonical)})},Fr.prototype.resize=function(t,e){this.width=t,this.height=e,this.pixelsToGLUnits=[2/t,-2/e],this._constrain(),this._calcMatrices()},Nr.unmodified.get=function(){return this._unmodified},Fr.prototype.zoomScale=function(t){return Math.pow(2,t)},Fr.prototype.scaleZoom=function(t){return Math.log(t)/Math.LN2},Fr.prototype.project=function(e){return new t.default$1(this.lngX(e.lng),this.latY(e.lat))},Fr.prototype.unproject=function(t){return new G(this.xLng(t.x),this.yLat(t.y))},Nr.x.get=function(){return this.lngX(this.center.lng)},Nr.y.get=function(){return this.latY(this.center.lat)},Nr.point.get=function(){return new t.default$1(this.x,this.y)},Fr.prototype.lngX=function(t){return(180+t)*this.worldSize/360},Fr.prototype.latY=function(t){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t*Math.PI/360)))*this.worldSize/360},Fr.prototype.xLng=function(t){return 360*t/this.worldSize-180},Fr.prototype.yLat=function(t){var e=180-360*t/this.worldSize;return 360/Math.PI*Math.atan(Math.exp(e*Math.PI/180))-90},Fr.prototype.setLocationAtPoint=function(t,e){var r=this.pointCoordinate(e)._sub(this.pointCoordinate(this.centerPoint));this.center=this.coordinateLocation(this.locationCoordinate(t)._sub(r)),this._renderWorldCopies&&(this.center=this.center.wrap())},Fr.prototype.locationPoint=function(t){return this.coordinatePoint(this.locationCoordinate(t))},Fr.prototype.pointLocation=function(t){return this.coordinateLocation(this.pointCoordinate(t))},Fr.prototype.locationCoordinate=function(e){return new t.default$17(this.lngX(e.lng)/this.tileSize,this.latY(e.lat)/this.tileSize,this.zoom).zoomTo(this.tileZoom)},Fr.prototype.coordinateLocation=function(t){var e=t.zoomTo(this.zoom);return new G(this.xLng(e.column*this.tileSize),this.yLat(e.row*this.tileSize))},Fr.prototype.pointCoordinate=function(e,r){void 0===r&&(r=this.tileZoom);var n=[e.x,e.y,0,1],i=[e.x,e.y,1,1];Dr.transformMat4(n,n,this.pixelMatrixInverse),Dr.transformMat4(i,i,this.pixelMatrixInverse);var a=n[3],o=i[3],s=n[0]/a,l=i[0]/o,c=n[1]/a,u=i[1]/o,f=n[2]/a,h=i[2]/o,p=f===h?0:(0-f)/(h-f);return new t.default$17(t.number(s,l,p)/this.tileSize,t.number(c,u,p)/this.tileSize,this.zoom)._zoomTo(r)},Fr.prototype.coordinatePoint=function(e){var r=e.zoomTo(this.zoom),n=[r.column*this.tileSize,r.row*this.tileSize,0,1];return Dr.transformMat4(n,n,this.pixelMatrix),new t.default$1(n[0]/n[3],n[1]/n[3])},Fr.prototype.calculatePosMatrix=function(e,r){void 0===r&&(r=!1);var n=e.key,i=r?this._alignedPosMatrixCache:this._posMatrixCache;if(i[n])return i[n];var a=e.canonical,o=this.worldSize/this.zoomScale(a.z),s=a.x+Math.pow(2,a.z)*e.wrap,l=Rr.identity(new Float64Array(16));return Rr.translate(l,l,[s*o,a.y*o,0]),Rr.scale(l,l,[o/t.default$8,o/t.default$8,1]),Rr.multiply(l,r?this.alignedProjMatrix:this.projMatrix,l),i[n]=new Float32Array(l),i[n]},Fr.prototype._constrain=function(){if(this.center&&this.width&&this.height&&!this._constraining){this._constraining=!0;var e,r,n,i,a=-90,o=90,s=-180,l=180,c=this.size,u=this._unmodified;if(this.latRange){var f=this.latRange;a=this.latY(f[1]),e=(o=this.latY(f[0]))-a<c.y?c.y/(o-a):0}if(this.lngRange){var h=this.lngRange;s=this.lngX(h[0]),r=(l=this.lngX(h[1]))-s<c.x?c.x/(l-s):0}var p=Math.max(r||0,e||0);if(p)return this.center=this.unproject(new t.default$1(r?(l+s)/2:this.x,e?(o+a)/2:this.y)),this.zoom+=this.scaleZoom(p),this._unmodified=u,void(this._constraining=!1);if(this.latRange){var d=this.y,g=c.y/2;d-g<a&&(i=a+g),d+g>o&&(i=o-g)}if(this.lngRange){var v=this.x,m=c.x/2;v-m<s&&(n=s+m),v+m>l&&(n=l-m)}void 0===n&&void 0===i||(this.center=this.unproject(new t.default$1(void 0!==n?n:this.x,void 0!==i?i:this.y))),this._unmodified=u,this._constraining=!1}},Fr.prototype._calcMatrices=function(){if(this.height){this.cameraToCenterDistance=.5/Math.tan(this._fov/2)*this.height;var t=this._fov/2,e=Math.PI/2+this._pitch,r=Math.sin(t)*this.cameraToCenterDistance/Math.sin(Math.PI-e-t),n=this.x,i=this.y,a=1.01*(Math.cos(Math.PI/2-this._pitch)*r+this.cameraToCenterDistance),o=new Float64Array(16);Rr.perspective(o,this._fov,this.width/this.height,1,a),Rr.scale(o,o,[1,-1,1]),Rr.translate(o,o,[0,0,-this.cameraToCenterDistance]),Rr.rotateX(o,o,this._pitch),Rr.rotateZ(o,o,this.angle),Rr.translate(o,o,[-n,-i,0]);var s=this.worldSize/(2*Math.PI*6378137*Math.abs(Math.cos(this.center.lat*(Math.PI/180))));Rr.scale(o,o,[1,1,s,1]),this.projMatrix=o;var l=this.width%2/2,c=this.height%2/2,u=Math.cos(this.angle),f=Math.sin(this.angle),h=n-Math.round(n)+u*l+f*c,p=i-Math.round(i)+u*c+f*l,d=new Float64Array(o);if(Rr.translate(d,d,[h>.5?h-1:h,p>.5?p-1:p,0]),this.alignedProjMatrix=d,o=Rr.create(),Rr.scale(o,o,[this.width/2,-this.height/2,1]),Rr.translate(o,o,[1,-1,0]),this.pixelMatrix=Rr.multiply(new Float64Array(16),o,this.projMatrix),!(o=Rr.invert(new Float64Array(16),this.pixelMatrix)))throw new Error(\"failed to invert matrix\");this.pixelMatrixInverse=o,this._posMatrixCache={},this._alignedPosMatrixCache={}}},Fr.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var e=this.pointCoordinate(new t.default$1(0,0)).zoomTo(this.zoom),r=[e.column*this.tileSize,e.row*this.tileSize,0,1];return Dr.transformMat4(r,r,this.pixelMatrix)[3]/this.cameraToCenterDistance},Object.defineProperties(Fr.prototype,Nr);var jr=function(){var e,r,n,i;t.bindAll([\"_onHashChange\",\"_updateHash\"],this),this._updateHash=(e=this._updateHashUnthrottled.bind(this),300,r=!1,n=0,i=function(){n=0,r&&(e(),n=setTimeout(i,300),r=!1)},function(){return r=!0,n||i(),n})};jr.prototype.addTo=function(e){return this._map=e,t.default.addEventListener(\"hashchange\",this._onHashChange,!1),this._map.on(\"moveend\",this._updateHash),this},jr.prototype.remove=function(){return t.default.removeEventListener(\"hashchange\",this._onHashChange,!1),this._map.off(\"moveend\",this._updateHash),clearTimeout(this._updateHash()),delete this._map,this},jr.prototype.getHashString=function(t){var e=this._map.getCenter(),r=Math.round(100*this._map.getZoom())/100,n=Math.ceil((r*Math.LN2+Math.log(512/360/.5))/Math.LN10),i=Math.pow(10,n),a=Math.round(e.lng*i)/i,o=Math.round(e.lat*i)/i,s=this._map.getBearing(),l=this._map.getPitch(),c=\"\";return c+=t?\"#/\"+a+\"/\"+o+\"/\"+r:\"#\"+r+\"/\"+o+\"/\"+a,(s||l)&&(c+=\"/\"+Math.round(10*s)/10),l&&(c+=\"/\"+Math.round(l)),c},jr.prototype._onHashChange=function(){var e=t.default.location.hash.replace(\"#\",\"\").split(\"/\");return e.length>=3&&(this._map.jumpTo({center:[+e[2],+e[1]],zoom:+e[0],bearing:+(e[3]||0),pitch:+(e[4]||0)}),!0)},jr.prototype._updateHashUnthrottled=function(){var e=this.getHashString();t.default.history.replaceState(t.default.history.state,\"\",e)};var Vr=function(e){function r(r,n,i,a){void 0===a&&(a={});var o=s.mousePos(n.getCanvasContainer(),i),l=n.unproject(o);e.call(this,r,t.extend({point:o,lngLat:l,originalEvent:i},a)),this._defaultPrevented=!1,this.target=n}e&&(r.__proto__=e),r.prototype=Object.create(e&&e.prototype),r.prototype.constructor=r;var n={defaultPrevented:{configurable:!0}};return r.prototype.preventDefault=function(){this._defaultPrevented=!0},n.defaultPrevented.get=function(){return this._defaultPrevented},Object.defineProperties(r.prototype,n),r}(t.Event),Ur=function(e){function r(r,n,i){var a=s.touchPos(n.getCanvasContainer(),i),o=a.map(function(t){return n.unproject(t)}),l=a.reduce(function(t,e,r,n){return t.add(e.div(n.length))},new t.default$1(0,0)),c=n.unproject(l);e.call(this,r,{points:a,point:l,lngLats:o,lngLat:c,originalEvent:i}),this._defaultPrevented=!1}e&&(r.__proto__=e),r.prototype=Object.create(e&&e.prototype),r.prototype.constructor=r;var n={defaultPrevented:{configurable:!0}};return r.prototype.preventDefault=function(){this._defaultPrevented=!0},n.defaultPrevented.get=function(){return this._defaultPrevented},Object.defineProperties(r.prototype,n),r}(t.Event),qr=function(t){function e(e,r,n){t.call(this,e,{originalEvent:n}),this._defaultPrevented=!1}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={defaultPrevented:{configurable:!0}};return e.prototype.preventDefault=function(){this._defaultPrevented=!0},r.defaultPrevented.get=function(){return this._defaultPrevented},Object.defineProperties(e.prototype,r),e}(t.Event),Hr=function(e){this._map=e,this._el=e.getCanvasContainer(),this._delta=0,t.bindAll([\"_onWheel\",\"_onTimeout\",\"_onScrollFrame\",\"_onScrollFinished\"],this)};Hr.prototype.isEnabled=function(){return!!this._enabled},Hr.prototype.isActive=function(){return!!this._active},Hr.prototype.enable=function(t){this.isEnabled()||(this._enabled=!0,this._aroundCenter=t&&\"center\"===t.around)},Hr.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},Hr.prototype.onWheel=function(e){if(this.isEnabled()){var r=e.deltaMode===t.default.WheelEvent.DOM_DELTA_LINE?40*e.deltaY:e.deltaY,n=a.now(),i=n-(this._lastWheelEventTime||0);this._lastWheelEventTime=n,0!==r&&r%4.000244140625==0?this._type=\"wheel\":0!==r&&Math.abs(r)<4?this._type=\"trackpad\":i>400?(this._type=null,this._lastValue=r,this._timeout=setTimeout(this._onTimeout,40,e)):this._type||(this._type=Math.abs(i*r)<200?\"trackpad\":\"wheel\",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,r+=this._lastValue)),e.shiftKey&&r&&(r/=4),this._type&&(this._lastWheelEvent=e,this._delta-=r,this.isActive()||this._start(e)),e.preventDefault()}},Hr.prototype._onTimeout=function(t){this._type=\"wheel\",this._delta-=this._lastValue,this.isActive()||this._start(t)},Hr.prototype._start=function(e){if(this._delta){this._frameId&&(this._map._cancelRenderFrame(this._frameId),this._frameId=null),this._active=!0,this._map.fire(new t.Event(\"movestart\",{originalEvent:e})),this._map.fire(new t.Event(\"zoomstart\",{originalEvent:e})),this._finishTimeout&&clearTimeout(this._finishTimeout);var r=s.mousePos(this._el,e);this._around=G.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(r)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=this._map._requestRenderFrame(this._onScrollFrame))}},Hr.prototype._onScrollFrame=function(){var e=this;if(this._frameId=null,this.isActive()){var r=this._map.transform;if(0!==this._delta){var n=\"wheel\"===this._type&&Math.abs(this._delta)>4.000244140625?1/450:.01,i=2/(1+Math.exp(-Math.abs(this._delta*n)));this._delta<0&&0!==i&&(i=1/i);var o=\"number\"==typeof this._targetZoom?r.zoomScale(this._targetZoom):r.scale;this._targetZoom=Math.min(r.maxZoom,Math.max(r.minZoom,r.scaleZoom(o*i))),\"wheel\"===this._type&&(this._startZoom=r.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var s=!1;if(\"wheel\"===this._type){var l=Math.min((a.now()-this._lastWheelEventTime)/200,1),c=this._easing(l);r.zoom=t.number(this._startZoom,this._targetZoom,c),l<1?this._frameId||(this._frameId=this._map._requestRenderFrame(this._onScrollFrame)):s=!0}else r.zoom=this._targetZoom,s=!0;r.setLocationAtPoint(this._around,this._aroundPoint),this._map.fire(new t.Event(\"move\",{originalEvent:this._lastWheelEvent})),this._map.fire(new t.Event(\"zoom\",{originalEvent:this._lastWheelEvent})),s&&(this._active=!1,this._finishTimeout=setTimeout(function(){e._map.fire(new t.Event(\"zoomend\",{originalEvent:e._lastWheelEvent})),e._map.fire(new t.Event(\"moveend\",{originalEvent:e._lastWheelEvent})),delete e._targetZoom},200))}},Hr.prototype._smoothOutEasing=function(e){var r=t.ease;if(this._prevEase){var n=this._prevEase,i=(a.now()-n.start)/n.duration,o=n.easing(i+.01)-n.easing(i),s=.27/Math.sqrt(o*o+1e-4)*.01,l=Math.sqrt(.0729-s*s);r=t.bezier(s,l,.25,1)}return this._prevEase={start:a.now(),duration:e,easing:r},r};var Gr=function(e){this._map=e,this._el=e.getCanvasContainer(),this._container=e.getContainer(),t.bindAll([\"_onMouseMove\",\"_onMouseUp\",\"_onKeyDown\"],this)};Gr.prototype.isEnabled=function(){return!!this._enabled},Gr.prototype.isActive=function(){return!!this._active},Gr.prototype.enable=function(){this.isEnabled()||(this._enabled=!0)},Gr.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},Gr.prototype.onMouseDown=function(e){this.isEnabled()&&e.shiftKey&&0===e.button&&(t.default.document.addEventListener(\"mousemove\",this._onMouseMove,!1),t.default.document.addEventListener(\"keydown\",this._onKeyDown,!1),t.default.document.addEventListener(\"mouseup\",this._onMouseUp,!1),s.disableDrag(),this._startPos=s.mousePos(this._el,e),this._active=!0)},Gr.prototype._onMouseMove=function(t){var e=this._startPos,r=s.mousePos(this._el,t);this._box||(this._box=s.create(\"div\",\"mapboxgl-boxzoom\",this._container),this._container.classList.add(\"mapboxgl-crosshair\"),this._fireEvent(\"boxzoomstart\",t));var n=Math.min(e.x,r.x),i=Math.max(e.x,r.x),a=Math.min(e.y,r.y),o=Math.max(e.y,r.y);s.setTransform(this._box,\"translate(\"+n+\"px,\"+a+\"px)\"),this._box.style.width=i-n+\"px\",this._box.style.height=o-a+\"px\"},Gr.prototype._onMouseUp=function(e){if(0===e.button){var r=this._startPos,n=s.mousePos(this._el,e),i=(new W).extend(this._map.unproject(r)).extend(this._map.unproject(n));this._finish(),s.suppressClick(),r.x===n.x&&r.y===n.y?this._fireEvent(\"boxzoomcancel\",e):this._map.fitBounds(i,{linear:!0}).fire(new t.Event(\"boxzoomend\",{originalEvent:e,boxZoomBounds:i}))}},Gr.prototype._onKeyDown=function(t){27===t.keyCode&&(this._finish(),this._fireEvent(\"boxzoomcancel\",t))},Gr.prototype._finish=function(){this._active=!1,t.default.document.removeEventListener(\"mousemove\",this._onMouseMove,!1),t.default.document.removeEventListener(\"keydown\",this._onKeyDown,!1),t.default.document.removeEventListener(\"mouseup\",this._onMouseUp,!1),this._container.classList.remove(\"mapboxgl-crosshair\"),this._box&&(s.remove(this._box),this._box=null),s.enableDrag()},Gr.prototype._fireEvent=function(e,r){return this._map.fire(new t.Event(e,{originalEvent:r}))};var Wr=t.bezier(0,0,.25,1),Yr=function(e,r){this._map=e,this._el=r.element||e.getCanvasContainer(),this._state=\"disabled\",this._button=r.button||\"right\",this._bearingSnap=r.bearingSnap||0,this._pitchWithRotate=!1!==r.pitchWithRotate,t.bindAll([\"_onMouseMove\",\"_onMouseUp\",\"_onBlur\",\"_onDragFrame\"],this)};Yr.prototype.isEnabled=function(){return\"disabled\"!==this._state},Yr.prototype.isActive=function(){return\"active\"===this._state},Yr.prototype.enable=function(){this.isEnabled()||(this._state=\"enabled\")},Yr.prototype.disable=function(){if(this.isEnabled())switch(this._state){case\"active\":this._state=\"disabled\",this._unbind(),this._deactivate(),this._fireEvent(\"rotateend\"),this._pitchWithRotate&&this._fireEvent(\"pitchend\"),this._fireEvent(\"moveend\");break;case\"pending\":this._state=\"disabled\",this._unbind();break;default:this._state=\"disabled\"}},Yr.prototype.onMouseDown=function(e){if(\"enabled\"===this._state){if(\"right\"===this._button){if(this._eventButton=s.mouseButton(e),this._eventButton!==(e.ctrlKey?0:2))return}else{if(e.ctrlKey||0!==s.mouseButton(e))return;this._eventButton=0}s.disableDrag(),t.default.document.addEventListener(\"mousemove\",this._onMouseMove,{capture:!0}),t.default.document.addEventListener(\"mouseup\",this._onMouseUp),t.default.addEventListener(\"blur\",this._onBlur),this._state=\"pending\",this._inertia=[[a.now(),this._map.getBearing()]],this._previousPos=s.mousePos(this._el,e),this._center=this._map.transform.centerPoint,e.preventDefault()}},Yr.prototype._onMouseMove=function(t){this._lastMoveEvent=t,this._pos=s.mousePos(this._el,t),\"pending\"===this._state&&(this._state=\"active\",this._fireEvent(\"rotatestart\",t),this._fireEvent(\"movestart\",t),this._pitchWithRotate&&this._fireEvent(\"pitchstart\",t)),this._frameId||(this._frameId=this._map._requestRenderFrame(this._onDragFrame))},Yr.prototype._onDragFrame=function(){this._frameId=null;var t=this._lastMoveEvent;if(t){var e=this._map.transform,r=this._previousPos,n=this._pos,i=.8*(r.x-n.x),o=-.5*(r.y-n.y),s=e.bearing-i,l=e.pitch-o,c=this._inertia,u=c[c.length-1];this._drainInertiaBuffer(),c.push([a.now(),this._map._normalizeBearing(s,u[1])]),e.bearing=s,this._pitchWithRotate&&(this._fireEvent(\"pitch\",t),e.pitch=l),this._fireEvent(\"rotate\",t),this._fireEvent(\"move\",t),delete this._lastMoveEvent,this._previousPos=this._pos}},Yr.prototype._onMouseUp=function(t){if(s.mouseButton(t)===this._eventButton)switch(this._state){case\"active\":this._state=\"enabled\",s.suppressClick(),this._unbind(),this._deactivate(),this._inertialRotate(t);break;case\"pending\":this._state=\"enabled\",this._unbind()}},Yr.prototype._onBlur=function(t){switch(this._state){case\"active\":this._state=\"enabled\",this._unbind(),this._deactivate(),this._fireEvent(\"rotateend\",t),this._pitchWithRotate&&this._fireEvent(\"pitchend\",t),this._fireEvent(\"moveend\",t);break;case\"pending\":this._state=\"enabled\",this._unbind()}},Yr.prototype._unbind=function(){t.default.document.removeEventListener(\"mousemove\",this._onMouseMove,{capture:!0}),t.default.document.removeEventListener(\"mouseup\",this._onMouseUp),t.default.removeEventListener(\"blur\",this._onBlur),s.enableDrag()},Yr.prototype._deactivate=function(){this._frameId&&(this._map._cancelRenderFrame(this._frameId),this._frameId=null),delete this._lastMoveEvent,delete this._previousPos},Yr.prototype._inertialRotate=function(t){var e=this;this._fireEvent(\"rotateend\",t),this._drainInertiaBuffer();var r=this._map,n=r.getBearing(),i=this._inertia,a=function(){Math.abs(n)<e._bearingSnap?r.resetNorth({noMoveStart:!0},{originalEvent:t}):e._fireEvent(\"moveend\",t),e._pitchWithRotate&&e._fireEvent(\"pitchend\",t)};if(i.length<2)a();else{var o=i[0],s=i[i.length-1],l=i[i.length-2],c=r._normalizeBearing(n,l[1]),u=s[1]-o[1],f=u<0?-1:1,h=(s[0]-o[0])/1e3;if(0!==u&&0!==h){var p=Math.abs(u*(.25/h));p>180&&(p=180);var d=p/180;c+=f*p*(d/2),Math.abs(r._normalizeBearing(c,0))<this._bearingSnap&&(c=r._normalizeBearing(0,c)),r.rotateTo(c,{duration:1e3*d,easing:Wr,noMoveStart:!0},{originalEvent:t})}else a()}},Yr.prototype._fireEvent=function(e,r){return this._map.fire(new t.Event(e,r?{originalEvent:r}:{}))},Yr.prototype._drainInertiaBuffer=function(){for(var t=this._inertia,e=a.now();t.length>0&&e-t[0][0]>160;)t.shift()};var Xr=t.bezier(0,0,.3,1),Zr=function(e){this._map=e,this._el=e.getCanvasContainer(),this._state=\"disabled\",t.bindAll([\"_onMove\",\"_onMouseUp\",\"_onTouchEnd\",\"_onBlur\",\"_onDragFrame\"],this)};Zr.prototype.isEnabled=function(){return\"disabled\"!==this._state},Zr.prototype.isActive=function(){return\"active\"===this._state},Zr.prototype.enable=function(){this.isEnabled()||(this._el.classList.add(\"mapboxgl-touch-drag-pan\"),this._state=\"enabled\")},Zr.prototype.disable=function(){if(this.isEnabled())switch(this._el.classList.remove(\"mapboxgl-touch-drag-pan\"),this._state){case\"active\":this._state=\"disabled\",this._unbind(),this._deactivate(),this._fireEvent(\"dragend\"),this._fireEvent(\"moveend\");break;case\"pending\":this._state=\"disabled\",this._unbind();break;default:this._state=\"disabled\"}},Zr.prototype.onMouseDown=function(e){\"enabled\"===this._state&&(e.ctrlKey||0!==s.mouseButton(e)||(s.addEventListener(t.default.document,\"mousemove\",this._onMove,{capture:!0}),s.addEventListener(t.default.document,\"mouseup\",this._onMouseUp),this._start(e)))},Zr.prototype.onTouchStart=function(e){\"enabled\"===this._state&&(e.touches.length>1||(s.addEventListener(t.default.document,\"touchmove\",this._onMove,{capture:!0,passive:!1}),s.addEventListener(t.default.document,\"touchend\",this._onTouchEnd),this._start(e)))},Zr.prototype._start=function(e){t.default.addEventListener(\"blur\",this._onBlur),this._state=\"pending\",this._previousPos=s.mousePos(this._el,e),this._inertia=[[a.now(),this._previousPos]]},Zr.prototype._onMove=function(t){this._lastMoveEvent=t,t.preventDefault(),this._pos=s.mousePos(this._el,t),this._drainInertiaBuffer(),this._inertia.push([a.now(),this._pos]),\"pending\"===this._state&&(this._state=\"active\",this._fireEvent(\"dragstart\",t),this._fireEvent(\"movestart\",t)),this._frameId||(this._frameId=this._map._requestRenderFrame(this._onDragFrame))},Zr.prototype._onDragFrame=function(){this._frameId=null;var t=this._lastMoveEvent;if(t){var e=this._map.transform;e.setLocationAtPoint(e.pointLocation(this._previousPos),this._pos),this._fireEvent(\"drag\",t),this._fireEvent(\"move\",t),this._previousPos=this._pos,delete this._lastMoveEvent}},Zr.prototype._onMouseUp=function(t){if(0===s.mouseButton(t))switch(this._state){case\"active\":this._state=\"enabled\",s.suppressClick(),this._unbind(),this._deactivate(),this._inertialPan(t);break;case\"pending\":this._state=\"enabled\",this._unbind()}},Zr.prototype._onTouchEnd=function(t){switch(this._state){case\"active\":this._state=\"enabled\",this._unbind(),this._deactivate(),this._inertialPan(t);break;case\"pending\":this._state=\"enabled\",this._unbind()}},Zr.prototype._onBlur=function(t){switch(this._state){case\"active\":this._state=\"enabled\",this._unbind(),this._deactivate(),this._fireEvent(\"dragend\",t),this._fireEvent(\"moveend\",t);break;case\"pending\":this._state=\"enabled\",this._unbind()}},Zr.prototype._unbind=function(){s.removeEventListener(t.default.document,\"touchmove\",this._onMove,{capture:!0,passive:!1}),s.removeEventListener(t.default.document,\"touchend\",this._onTouchEnd),s.removeEventListener(t.default.document,\"mousemove\",this._onMove,{capture:!0}),s.removeEventListener(t.default.document,\"mouseup\",this._onMouseUp),s.removeEventListener(t.default,\"blur\",this._onBlur)},Zr.prototype._deactivate=function(){this._frameId&&(this._map._cancelRenderFrame(this._frameId),this._frameId=null),delete this._lastMoveEvent,delete this._previousPos,delete this._pos},Zr.prototype._inertialPan=function(t){this._fireEvent(\"dragend\",t),this._drainInertiaBuffer();var e=this._inertia;if(e.length<2)this._fireEvent(\"moveend\",t);else{var r=e[e.length-1],n=e[0],i=r[1].sub(n[1]),a=(r[0]-n[0])/1e3;if(0===a||r[1].equals(n[1]))this._fireEvent(\"moveend\",t);else{var o=i.mult(.3/a),s=o.mag();s>1400&&(s=1400,o._unit()._mult(s));var l=s/750,c=o.mult(-l/2);this._map.panBy(c,{duration:1e3*l,easing:Xr,noMoveStart:!0},{originalEvent:t})}}},Zr.prototype._fireEvent=function(e,r){return this._map.fire(new t.Event(e,r?{originalEvent:r}:{}))},Zr.prototype._drainInertiaBuffer=function(){for(var t=this._inertia,e=a.now();t.length>0&&e-t[0][0]>160;)t.shift()};var $r=function(e){this._map=e,this._el=e.getCanvasContainer(),t.bindAll([\"_onKeyDown\"],this)};function Jr(t){return t*(2-t)}$r.prototype.isEnabled=function(){return!!this._enabled},$r.prototype.enable=function(){this.isEnabled()||(this._el.addEventListener(\"keydown\",this._onKeyDown,!1),this._enabled=!0)},$r.prototype.disable=function(){this.isEnabled()&&(this._el.removeEventListener(\"keydown\",this._onKeyDown),this._enabled=!1)},$r.prototype._onKeyDown=function(t){if(!(t.altKey||t.ctrlKey||t.metaKey)){var e=0,r=0,n=0,i=0,a=0;switch(t.keyCode){case 61:case 107:case 171:case 187:e=1;break;case 189:case 109:case 173:e=-1;break;case 37:t.shiftKey?r=-1:(t.preventDefault(),i=-1);break;case 39:t.shiftKey?r=1:(t.preventDefault(),i=1);break;case 38:t.shiftKey?n=1:(t.preventDefault(),a=-1);break;case 40:t.shiftKey?n=-1:(a=1,t.preventDefault());break;default:return}var o=this._map,s=o.getZoom(),l={duration:300,delayEndEvents:500,easing:Jr,zoom:e?Math.round(s)+e*(t.shiftKey?2:1):s,bearing:o.getBearing()+15*r,pitch:o.getPitch()+10*n,offset:[100*-i,100*-a],center:o.getCenter()};o.easeTo(l,{originalEvent:t})}};var Kr=function(e){this._map=e,t.bindAll([\"_onDblClick\",\"_onZoomEnd\"],this)};Kr.prototype.isEnabled=function(){return!!this._enabled},Kr.prototype.isActive=function(){return!!this._active},Kr.prototype.enable=function(){this.isEnabled()||(this._enabled=!0)},Kr.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},Kr.prototype.onTouchStart=function(t){var e=this;this.isEnabled()&&(t.points.length>1||(this._tapped?(clearTimeout(this._tapped),this._tapped=null,this._zoom(t)):this._tapped=setTimeout(function(){e._tapped=null},300)))},Kr.prototype.onDblClick=function(t){this.isEnabled()&&(t.originalEvent.preventDefault(),this._zoom(t))},Kr.prototype._zoom=function(t){this._active=!0,this._map.on(\"zoomend\",this._onZoomEnd),this._map.zoomTo(this._map.getZoom()+(t.originalEvent.shiftKey?-1:1),{around:t.lngLat},t)},Kr.prototype._onZoomEnd=function(){this._active=!1,this._map.off(\"zoomend\",this._onZoomEnd)};var Qr=t.bezier(0,0,.15,1),tn=function(e){this._map=e,this._el=e.getCanvasContainer(),t.bindAll([\"_onMove\",\"_onEnd\",\"_onTouchFrame\"],this)};tn.prototype.isEnabled=function(){return!!this._enabled},tn.prototype.enable=function(t){this.isEnabled()||(this._el.classList.add(\"mapboxgl-touch-zoom-rotate\"),this._enabled=!0,this._aroundCenter=!!t&&\"center\"===t.around)},tn.prototype.disable=function(){this.isEnabled()&&(this._el.classList.remove(\"mapboxgl-touch-zoom-rotate\"),this._enabled=!1)},tn.prototype.disableRotation=function(){this._rotationDisabled=!0},tn.prototype.enableRotation=function(){this._rotationDisabled=!1},tn.prototype.onStart=function(e){if(this.isEnabled()&&2===e.touches.length){var r=s.mousePos(this._el,e.touches[0]),n=s.mousePos(this._el,e.touches[1]);this._startVec=r.sub(n),this._gestureIntent=void 0,this._inertia=[],s.addEventListener(t.default.document,\"touchmove\",this._onMove,{passive:!1}),s.addEventListener(t.default.document,\"touchend\",this._onEnd)}},tn.prototype._getTouchEventData=function(t){var e=s.mousePos(this._el,t.touches[0]),r=s.mousePos(this._el,t.touches[1]),n=e.sub(r);return{vec:n,center:e.add(r).div(2),scale:n.mag()/this._startVec.mag(),bearing:this._rotationDisabled?0:180*n.angleWith(this._startVec)/Math.PI}},tn.prototype._onMove=function(e){if(2===e.touches.length){var r=this._getTouchEventData(e),n=r.vec,i=r.scale,a=r.bearing;if(!this._gestureIntent){var o=Math.abs(1-i)>.15;Math.abs(a)>10?this._gestureIntent=\"rotate\":o&&(this._gestureIntent=\"zoom\"),this._gestureIntent&&(this._map.fire(new t.Event(this._gestureIntent+\"start\",{originalEvent:e})),this._map.fire(new t.Event(\"movestart\",{originalEvent:e})),this._startVec=n)}this._lastTouchEvent=e,this._frameId||(this._frameId=this._map._requestRenderFrame(this._onTouchFrame)),e.preventDefault()}},tn.prototype._onTouchFrame=function(){this._frameId=null;var e=this._gestureIntent;if(e){var r=this._map.transform;this._startScale||(this._startScale=r.scale,this._startBearing=r.bearing);var n=this._getTouchEventData(this._lastTouchEvent),i=n.center,o=n.bearing,s=n.scale,l=r.pointLocation(i),c=r.locationPoint(l);\"rotate\"===e&&(r.bearing=this._startBearing+o),r.zoom=r.scaleZoom(this._startScale*s),r.setLocationAtPoint(l,c),this._map.fire(new t.Event(e,{originalEvent:this._lastTouchEvent})),this._map.fire(new t.Event(\"move\",{originalEvent:this._lastTouchEvent})),this._drainInertiaBuffer(),this._inertia.push([a.now(),s,i])}},tn.prototype._onEnd=function(e){s.removeEventListener(t.default.document,\"touchmove\",this._onMove,{passive:!1}),s.removeEventListener(t.default.document,\"touchend\",this._onEnd);var r=this._gestureIntent,n=this._startScale;if(this._frameId&&(this._map._cancelRenderFrame(this._frameId),this._frameId=null),delete this._gestureIntent,delete this._startScale,delete this._startBearing,delete this._lastTouchEvent,r){this._map.fire(new t.Event(r+\"end\",{originalEvent:e})),this._drainInertiaBuffer();var i=this._inertia,a=this._map;if(i.length<2)a.snapToNorth({},{originalEvent:e});else{var o=i[i.length-1],l=i[0],c=a.transform.scaleZoom(n*o[1]),u=a.transform.scaleZoom(n*l[1]),f=c-u,h=(o[0]-l[0])/1e3,p=o[2];if(0!==h&&c!==u){var d=.15*f/h;Math.abs(d)>2.5&&(d=d>0?2.5:-2.5);var g=1e3*Math.abs(d/(12*.15)),v=c+d*g/2e3;v<0&&(v=0),a.easeTo({zoom:v,duration:g,easing:Qr,around:this._aroundCenter?a.getCenter():a.unproject(p),noMoveStart:!0},{originalEvent:e})}else a.snapToNorth({},{originalEvent:e})}}},tn.prototype._drainInertiaBuffer=function(){for(var t=this._inertia,e=a.now();t.length>2&&e-t[0][0]>160;)t.shift()};var en={scrollZoom:Hr,boxZoom:Gr,dragRotate:Yr,dragPan:Zr,keyboard:$r,doubleClickZoom:Kr,touchZoomRotate:tn},rn=function(e){function r(r,n){e.call(this),this._moving=!1,this._zooming=!1,this.transform=r,this._bearingSnap=n.bearingSnap,t.bindAll([\"_renderFrameCallback\"],this)}return e&&(r.__proto__=e),r.prototype=Object.create(e&&e.prototype),r.prototype.constructor=r,r.prototype.getCenter=function(){return this.transform.center},r.prototype.setCenter=function(t,e){return this.jumpTo({center:t},e)},r.prototype.panBy=function(e,r,n){return e=t.default$1.convert(e).mult(-1),this.panTo(this.transform.center,t.extend({offset:e},r),n)},r.prototype.panTo=function(e,r,n){return this.easeTo(t.extend({center:e},r),n)},r.prototype.getZoom=function(){return this.transform.zoom},r.prototype.setZoom=function(t,e){return this.jumpTo({zoom:t},e),this},r.prototype.zoomTo=function(e,r,n){return this.easeTo(t.extend({zoom:e},r),n)},r.prototype.zoomIn=function(t,e){return this.zoomTo(this.getZoom()+1,t,e),this},r.prototype.zoomOut=function(t,e){return this.zoomTo(this.getZoom()-1,t,e),this},r.prototype.getBearing=function(){return this.transform.bearing},r.prototype.setBearing=function(t,e){return this.jumpTo({bearing:t},e),this},r.prototype.rotateTo=function(e,r,n){return this.easeTo(t.extend({bearing:e},r),n)},r.prototype.resetNorth=function(e,r){return this.rotateTo(0,t.extend({duration:1e3},e),r),this},r.prototype.snapToNorth=function(t,e){return Math.abs(this.getBearing())<this._bearingSnap?this.resetNorth(t,e):this},r.prototype.getPitch=function(){return this.transform.pitch},r.prototype.setPitch=function(t,e){return this.jumpTo({pitch:t},e),this},r.prototype.fitBounds=function(e,r,n){if(\"number\"==typeof(r=t.extend({padding:{top:0,bottom:0,right:0,left:0},offset:[0,0],maxZoom:this.transform.maxZoom},r)).padding){var i=r.padding;r.padding={top:i,bottom:i,right:i,left:i}}if(!t.default$10(Object.keys(r.padding).sort(function(t,e){return t<e?-1:t>e?1:0}),[\"bottom\",\"left\",\"right\",\"top\"]))return t.warnOnce(\"options.padding must be a positive number, or an Object with keys 'bottom', 'left', 'right', 'top'\"),this;e=W.convert(e);var a=[(r.padding.left-r.padding.right)/2,(r.padding.top-r.padding.bottom)/2],o=Math.min(r.padding.right,r.padding.left),s=Math.min(r.padding.top,r.padding.bottom);r.offset=[r.offset[0]+a[0],r.offset[1]+a[1]];var l=t.default$1.convert(r.offset),c=this.transform,u=c.project(e.getNorthWest()),f=c.project(e.getSouthEast()),h=f.sub(u),p=(c.width-2*o-2*Math.abs(l.x))/h.x,d=(c.height-2*s-2*Math.abs(l.y))/h.y;return d<0||p<0?(t.warnOnce(\"Map cannot fit within canvas with the given bounds, padding, and/or offset.\"),this):(r.center=c.unproject(u.add(f).div(2)),r.zoom=Math.min(c.scaleZoom(c.scale*Math.min(p,d)),r.maxZoom),r.bearing=0,r.linear?this.easeTo(r,n):this.flyTo(r,n))},r.prototype.jumpTo=function(e,r){this.stop();var n=this.transform,i=!1,a=!1,o=!1;return\"zoom\"in e&&n.zoom!==+e.zoom&&(i=!0,n.zoom=+e.zoom),void 0!==e.center&&(n.center=G.convert(e.center)),\"bearing\"in e&&n.bearing!==+e.bearing&&(a=!0,n.bearing=+e.bearing),\"pitch\"in e&&n.pitch!==+e.pitch&&(o=!0,n.pitch=+e.pitch),this.fire(new t.Event(\"movestart\",r)).fire(new t.Event(\"move\",r)),i&&this.fire(new t.Event(\"zoomstart\",r)).fire(new t.Event(\"zoom\",r)).fire(new t.Event(\"zoomend\",r)),a&&this.fire(new t.Event(\"rotatestart\",r)).fire(new t.Event(\"rotate\",r)).fire(new t.Event(\"rotateend\",r)),o&&this.fire(new t.Event(\"pitchstart\",r)).fire(new t.Event(\"pitch\",r)).fire(new t.Event(\"pitchend\",r)),this.fire(new t.Event(\"moveend\",r))},r.prototype.easeTo=function(e,r){var n=this;this.stop(),!1===(e=t.extend({offset:[0,0],duration:500,easing:t.ease},e)).animate&&(e.duration=0);var i=this.transform,a=this.getZoom(),o=this.getBearing(),s=this.getPitch(),l=\"zoom\"in e?+e.zoom:a,c=\"bearing\"in e?this._normalizeBearing(e.bearing,o):o,u=\"pitch\"in e?+e.pitch:s,f=i.centerPoint.add(t.default$1.convert(e.offset)),h=i.pointLocation(f),p=G.convert(e.center||h);this._normalizeCenter(p);var d,g,v=i.project(h),m=i.project(p).sub(v),y=i.zoomScale(l-a);return e.around&&(d=G.convert(e.around),g=i.locationPoint(d)),this._zooming=l!==a,this._rotating=o!==c,this._pitching=u!==s,this._prepareEase(r,e.noMoveStart),clearTimeout(this._easeEndTimeoutID),this._ease(function(e){if(n._zooming&&(i.zoom=t.number(a,l,e)),n._rotating&&(i.bearing=t.number(o,c,e)),n._pitching&&(i.pitch=t.number(s,u,e)),d)i.setLocationAtPoint(d,g);else{var h=i.zoomScale(i.zoom-a),p=l>a?Math.min(2,y):Math.max(.5,y),x=Math.pow(p,1-e),b=i.unproject(v.add(m.mult(e*x)).mult(h));i.setLocationAtPoint(i.renderWorldCopies?b.wrap():b,f)}n._fireMoveEvents(r)},function(){e.delayEndEvents?n._easeEndTimeoutID=setTimeout(function(){return n._afterEase(r)},e.delayEndEvents):n._afterEase(r)},e),this},r.prototype._prepareEase=function(e,r){this._moving=!0,r||this.fire(new t.Event(\"movestart\",e)),this._zooming&&this.fire(new t.Event(\"zoomstart\",e)),this._rotating&&this.fire(new t.Event(\"rotatestart\",e)),this._pitching&&this.fire(new t.Event(\"pitchstart\",e))},r.prototype._fireMoveEvents=function(e){this.fire(new t.Event(\"move\",e)),this._zooming&&this.fire(new t.Event(\"zoom\",e)),this._rotating&&this.fire(new t.Event(\"rotate\",e)),this._pitching&&this.fire(new t.Event(\"pitch\",e))},r.prototype._afterEase=function(e){var r=this._zooming,n=this._rotating,i=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,r&&this.fire(new t.Event(\"zoomend\",e)),n&&this.fire(new t.Event(\"rotateend\",e)),i&&this.fire(new t.Event(\"pitchend\",e)),this.fire(new t.Event(\"moveend\",e))},r.prototype.flyTo=function(e,r){var n=this;this.stop(),e=t.extend({offset:[0,0],speed:1.2,curve:1.42,easing:t.ease},e);var i=this.transform,a=this.getZoom(),o=this.getBearing(),s=this.getPitch(),l=\"zoom\"in e?t.clamp(+e.zoom,i.minZoom,i.maxZoom):a,c=\"bearing\"in e?this._normalizeBearing(e.bearing,o):o,u=\"pitch\"in e?+e.pitch:s,f=i.zoomScale(l-a),h=i.centerPoint.add(t.default$1.convert(e.offset)),p=i.pointLocation(h),d=G.convert(e.center||p);this._normalizeCenter(d);var g=i.project(p),v=i.project(d).sub(g),m=e.curve,y=Math.max(i.width,i.height),x=y/f,b=v.mag();if(\"minZoom\"in e){var _=t.clamp(Math.min(e.minZoom,a,l),i.minZoom,i.maxZoom),w=y/i.zoomScale(_-a);m=Math.sqrt(w/b*2)}var k=m*m;function M(t){var e=(x*x-y*y+(t?-1:1)*k*k*b*b)/(2*(t?x:y)*k*b);return Math.log(Math.sqrt(e*e+1)-e)}function A(t){return(Math.exp(t)-Math.exp(-t))/2}function T(t){return(Math.exp(t)+Math.exp(-t))/2}var S=M(0),E=function(t){return T(S)/T(S+m*t)},C=function(t){return y*((T(S)*(A(e=S+m*t)/T(e))-A(S))/k)/b;var e},L=(M(1)-S)/m;if(Math.abs(b)<1e-6||!isFinite(L)){if(Math.abs(y-x)<1e-6)return this.easeTo(e,r);var z=x<y?-1:1;L=Math.abs(Math.log(x/y))/m,C=function(){return 0},E=function(t){return Math.exp(z*m*t)}}if(\"duration\"in e)e.duration=+e.duration;else{var O=\"screenSpeed\"in e?+e.screenSpeed/m:+e.speed;e.duration=1e3*L/O}return e.maxDuration&&e.duration>e.maxDuration&&(e.duration=0),this._zooming=!0,this._rotating=o!==c,this._pitching=u!==s,this._prepareEase(r,!1),this._ease(function(e){var l=e*L,f=1/E(l);i.zoom=a+i.scaleZoom(f),n._rotating&&(i.bearing=t.number(o,c,e)),n._pitching&&(i.pitch=t.number(s,u,e));var p=i.unproject(g.add(v.mult(C(l))).mult(f));i.setLocationAtPoint(i.renderWorldCopies?p.wrap():p,h),n._fireMoveEvents(r)},function(){return n._afterEase(r)},e),this},r.prototype.isEasing=function(){return!!this._easeFrameId},r.prototype.stop=function(){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var t=this._onEaseEnd;delete this._onEaseEnd,t.call(this)}return this},r.prototype._ease=function(t,e,r){!1===r.animate||0===r.duration?(t(1),e()):(this._easeStart=a.now(),this._easeOptions=r,this._onEaseFrame=t,this._onEaseEnd=e,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},r.prototype._renderFrameCallback=function(){var t=Math.min((a.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(t)),t<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},r.prototype._normalizeBearing=function(e,r){e=t.wrap(e,-180,180);var n=Math.abs(e-r);return Math.abs(e-360-r)<n&&(e-=360),Math.abs(e+360-r)<n&&(e+=360),e},r.prototype._normalizeCenter=function(t){var e=this.transform;if(e.renderWorldCopies&&!e.lngRange){var r=t.lng-e.center.lng;t.lng+=r>180?-360:r<-180?360:0}},r}(t.Evented),nn=function(e){void 0===e&&(e={}),this.options=e,t.bindAll([\"_updateEditLink\",\"_updateData\",\"_updateCompact\"],this)};nn.prototype.getDefaultPosition=function(){return\"bottom-right\"},nn.prototype.onAdd=function(t){var e=this.options&&this.options.compact;return this._map=t,this._container=s.create(\"div\",\"mapboxgl-ctrl mapboxgl-ctrl-attrib\"),e&&this._container.classList.add(\"mapboxgl-compact\"),this._updateAttributions(),this._updateEditLink(),this._map.on(\"sourcedata\",this._updateData),this._map.on(\"moveend\",this._updateEditLink),void 0===e&&(this._map.on(\"resize\",this._updateCompact),this._updateCompact()),this._container},nn.prototype.onRemove=function(){s.remove(this._container),this._map.off(\"sourcedata\",this._updateData),this._map.off(\"moveend\",this._updateEditLink),this._map.off(\"resize\",this._updateCompact),this._map=void 0},nn.prototype._updateEditLink=function(){var t=this._editLink;t||(t=this._editLink=this._container.querySelector(\".mapbox-improve-map\"));var e=[{key:\"owner\",value:this.styleOwner},{key:\"id\",value:this.styleId},{key:\"access_token\",value:v.ACCESS_TOKEN}];if(t){var r=e.reduce(function(t,r,n){return r.value&&(t+=r.key+\"=\"+r.value+(n<e.length-1?\"&\":\"\")),t},\"?\");t.href=\"https://www.mapbox.com/feedback/\"+r+(this._map._hash?this._map._hash.getHashString(!0):\"\")}},nn.prototype._updateData=function(t){t&&\"metadata\"===t.sourceDataType&&(this._updateAttributions(),this._updateEditLink())},nn.prototype._updateAttributions=function(){if(this._map.style){var t=[];if(this._map.style.stylesheet){var e=this._map.style.stylesheet;this.styleOwner=e.owner,this.styleId=e.id}var r=this._map.style.sourceCaches;for(var n in r){var i=r[n].getSource();i.attribution&&t.indexOf(i.attribution)<0&&t.push(i.attribution)}t.sort(function(t,e){return t.length-e.length}),(t=t.filter(function(e,r){for(var n=r+1;n<t.length;n++)if(t[n].indexOf(e)>=0)return!1;return!0})).length?(this._container.innerHTML=t.join(\" | \"),this._container.classList.remove(\"mapboxgl-attrib-empty\")):this._container.classList.add(\"mapboxgl-attrib-empty\"),this._editLink=null}},nn.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add(\"mapboxgl-compact\"):this._container.classList.remove(\"mapboxgl-compact\")};var an=function(){t.bindAll([\"_updateLogo\"],this)};an.prototype.onAdd=function(t){this._map=t,this._container=s.create(\"div\",\"mapboxgl-ctrl\");var e=s.create(\"a\",\"mapboxgl-ctrl-logo\");return e.target=\"_blank\",e.href=\"https://www.mapbox.com/\",e.setAttribute(\"aria-label\",\"Mapbox logo\"),this._container.appendChild(e),this._container.style.display=\"none\",this._map.on(\"sourcedata\",this._updateLogo),this._updateLogo(),this._container},an.prototype.onRemove=function(){s.remove(this._container),this._map.off(\"sourcedata\",this._updateLogo)},an.prototype.getDefaultPosition=function(){return\"bottom-left\"},an.prototype._updateLogo=function(t){t&&\"metadata\"!==t.sourceDataType||(this._container.style.display=this._logoRequired()?\"block\":\"none\")},an.prototype._logoRequired=function(){if(this._map.style){var t=this._map.style.sourceCaches;for(var e in t)if(t[e].getSource().mapbox_logo)return!0;return!1}};var on=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};on.prototype.add=function(t){var e=++this._id;return this._queue.push({callback:t,id:e,cancelled:!1}),e},on.prototype.remove=function(t){for(var e=this._currentlyRunning,r=0,n=e?this._queue.concat(e):this._queue;r<n.length;r+=1){var i=n[r];if(i.id===t)return void(i.cancelled=!0)}},on.prototype.run=function(){var t=this._currentlyRunning=this._queue;this._queue=[];for(var e=0,r=t;e<r.length;e+=1){var n=r[e];if(!n.cancelled&&(n.callback(),this._cleared))break}this._cleared=!1,this._currentlyRunning=!1},on.prototype.clear=function(){this._currentlyRunning&&(this._cleared=!0),this._queue=[]};var sn=t.default.HTMLImageElement,ln=t.default.HTMLElement,cn={center:[0,0],zoom:0,bearing:0,pitch:0,minZoom:0,maxZoom:22,interactive:!0,scrollZoom:!0,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,bearingSnap:7,hash:!1,attributionControl:!0,failIfMajorPerformanceCaveat:!1,preserveDrawingBuffer:!1,trackResize:!0,renderWorldCopies:!0,refreshExpiredTiles:!0,maxTileCacheSize:null,transformRequest:null,fadeDuration:300},un=function(r){function n(e){if(null!=(e=t.extend({},cn,e)).minZoom&&null!=e.maxZoom&&e.minZoom>e.maxZoom)throw new Error(\"maxZoom must be greater than minZoom\");var n=new Fr(e.minZoom,e.maxZoom,e.renderWorldCopies);r.call(this,n,e),this._interactive=e.interactive,this._maxTileCacheSize=e.maxTileCacheSize,this._failIfMajorPerformanceCaveat=e.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=e.preserveDrawingBuffer,this._trackResize=e.trackResize,this._bearingSnap=e.bearingSnap,this._refreshExpiredTiles=e.refreshExpiredTiles,this._fadeDuration=e.fadeDuration,this._crossFadingFactor=1,this._collectResourceTiming=e.collectResourceTiming,this._renderTaskQueue=new on;var i=e.transformRequest;if(this._transformRequest=i?function(t,e){return i(t,e)||{url:t}}:function(t){return{url:t}},\"string\"==typeof e.container){var a=t.default.document.getElementById(e.container);if(!a)throw new Error(\"Container '\"+e.container+\"' not found.\");this._container=a}else{if(!(e.container instanceof ln))throw new Error(\"Invalid type: 'container' must be a String or HTMLElement.\");this._container=e.container}e.maxBounds&&this.setMaxBounds(e.maxBounds),t.bindAll([\"_onWindowOnline\",\"_onWindowResize\",\"_contextLost\",\"_contextRestored\",\"_update\",\"_render\",\"_onData\",\"_onDataLoading\"],this),this._setupContainer(),this._setupPainter(),this.on(\"move\",this._update.bind(this,!1)),this.on(\"zoom\",this._update.bind(this,!0)),void 0!==t.default&&(t.default.addEventListener(\"online\",this._onWindowOnline,!1),t.default.addEventListener(\"resize\",this._onWindowResize,!1)),function(t,e){var r=t.getCanvasContainer(),n=null,i=!1;for(var a in en)t[a]=new en[a](t,e),e.interactive&&e[a]&&t[a].enable(e[a]);s.addEventListener(r,\"mouseout\",function(e){t.fire(new Vr(\"mouseout\",t,e))}),s.addEventListener(r,\"mousedown\",function(r){i=!0;var n=new Vr(\"mousedown\",t,r);t.fire(n),n.defaultPrevented||(e.interactive&&!t.doubleClickZoom.isActive()&&t.stop(),t.boxZoom.onMouseDown(r),t.boxZoom.isActive()||t.dragPan.isActive()||t.dragRotate.onMouseDown(r),t.boxZoom.isActive()||t.dragRotate.isActive()||t.dragPan.onMouseDown(r))}),s.addEventListener(r,\"mouseup\",function(e){var r=t.dragRotate.isActive();n&&!r&&t.fire(new Vr(\"contextmenu\",t,n)),n=null,i=!1,t.fire(new Vr(\"mouseup\",t,e))}),s.addEventListener(r,\"mousemove\",function(e){if(!t.dragPan.isActive()&&!t.dragRotate.isActive()){for(var n=e.toElement||e.target;n&&n!==r;)n=n.parentNode;n===r&&t.fire(new Vr(\"mousemove\",t,e))}}),s.addEventListener(r,\"mouseover\",function(e){for(var n=e.toElement||e.target;n&&n!==r;)n=n.parentNode;n===r&&t.fire(new Vr(\"mouseover\",t,e))}),s.addEventListener(r,\"touchstart\",function(r){var n=new Ur(\"touchstart\",t,r);t.fire(n),n.defaultPrevented||(e.interactive&&t.stop(),t.boxZoom.isActive()||t.dragRotate.isActive()||t.dragPan.onTouchStart(r),t.touchZoomRotate.onStart(r),t.doubleClickZoom.onTouchStart(n))},{passive:!1}),s.addEventListener(r,\"touchmove\",function(e){t.fire(new Ur(\"touchmove\",t,e))},{passive:!1}),s.addEventListener(r,\"touchend\",function(e){t.fire(new Ur(\"touchend\",t,e))}),s.addEventListener(r,\"touchcancel\",function(e){t.fire(new Ur(\"touchcancel\",t,e))}),s.addEventListener(r,\"click\",function(e){t.fire(new Vr(\"click\",t,e))}),s.addEventListener(r,\"dblclick\",function(e){var r=new Vr(\"dblclick\",t,e);t.fire(r),r.defaultPrevented||t.doubleClickZoom.onDblClick(r)}),s.addEventListener(r,\"contextmenu\",function(e){var r=t.dragRotate.isActive();i||r?i&&(n=e):t.fire(new Vr(\"contextmenu\",t,e)),e.preventDefault()}),s.addEventListener(r,\"wheel\",function(e){var r=new qr(\"wheel\",t,e);t.fire(r),r.defaultPrevented||t.scrollZoom.onWheel(e)},{passive:!1})}(this,e),this._hash=e.hash&&(new jr).addTo(this),this._hash&&this._hash._onHashChange()||this.jumpTo({center:e.center,zoom:e.zoom,bearing:e.bearing,pitch:e.pitch}),this.resize(),e.style&&this.setStyle(e.style,{localIdeographFontFamily:e.localIdeographFontFamily}),e.attributionControl&&this.addControl(new nn),this.addControl(new an,e.logoPosition),this.on(\"style.load\",function(){this.transform.unmodified&&this.jumpTo(this.style.stylesheet)}),this.on(\"data\",this._onData),this.on(\"dataloading\",this._onDataLoading)}r&&(n.__proto__=r),n.prototype=Object.create(r&&r.prototype),n.prototype.constructor=n;var i={showTileBoundaries:{configurable:!0},showCollisionBoxes:{configurable:!0},showOverdrawInspector:{configurable:!0},repaint:{configurable:!0},vertices:{configurable:!0}};return n.prototype.addControl=function(t,e){void 0===e&&t.getDefaultPosition&&(e=t.getDefaultPosition()),void 0===e&&(e=\"top-right\");var r=t.onAdd(this),n=this._controlPositions[e];return-1!==e.indexOf(\"bottom\")?n.insertBefore(r,n.firstChild):n.appendChild(r),this},n.prototype.removeControl=function(t){return t.onRemove(this),this},n.prototype.resize=function(e){var r=this._containerDimensions(),n=r[0],i=r[1];return this._resizeCanvas(n,i),this.transform.resize(n,i),this.painter.resize(n,i),this.fire(new t.Event(\"movestart\",e)).fire(new t.Event(\"move\",e)).fire(new t.Event(\"resize\",e)).fire(new t.Event(\"moveend\",e))},n.prototype.getBounds=function(){var e=new W(this.transform.pointLocation(new t.default$1(0,this.transform.height)),this.transform.pointLocation(new t.default$1(this.transform.width,0)));return(this.transform.angle||this.transform.pitch)&&(e.extend(this.transform.pointLocation(new t.default$1(this.transform.size.x,0))),e.extend(this.transform.pointLocation(new t.default$1(0,this.transform.size.y)))),e},n.prototype.getMaxBounds=function(){return this.transform.latRange&&2===this.transform.latRange.length&&this.transform.lngRange&&2===this.transform.lngRange.length?new W([this.transform.lngRange[0],this.transform.latRange[0]],[this.transform.lngRange[1],this.transform.latRange[1]]):null},n.prototype.setMaxBounds=function(t){if(t){var e=W.convert(t);this.transform.lngRange=[e.getWest(),e.getEast()],this.transform.latRange=[e.getSouth(),e.getNorth()],this.transform._constrain(),this._update()}else null==t&&(this.transform.lngRange=null,this.transform.latRange=null,this._update());return this},n.prototype.setMinZoom=function(t){if((t=null==t?0:t)>=0&&t<=this.transform.maxZoom)return this.transform.minZoom=t,this._update(),this.getZoom()<t&&this.setZoom(t),this;throw new Error(\"minZoom must be between 0 and the current maxZoom, inclusive\")},n.prototype.getMinZoom=function(){return this.transform.minZoom},n.prototype.setMaxZoom=function(t){if((t=null==t?22:t)>=this.transform.minZoom)return this.transform.maxZoom=t,this._update(),this.getZoom()>t&&this.setZoom(t),this;throw new Error(\"maxZoom must be greater than the current minZoom\")},n.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},n.prototype.setRenderWorldCopies=function(t){return this.transform.renderWorldCopies=t,this._update(),this},n.prototype.getMaxZoom=function(){return this.transform.maxZoom},n.prototype.project=function(t){return this.transform.locationPoint(G.convert(t))},n.prototype.unproject=function(e){return this.transform.pointLocation(t.default$1.convert(e))},n.prototype.isMoving=function(){return this._moving||this.dragPan.isActive()||this.dragRotate.isActive()||this.scrollZoom.isActive()},n.prototype.isZooming=function(){return this._zooming||this.scrollZoom.isActive()},n.prototype.isRotating=function(){return this._rotating||this.dragRotate.isActive()},n.prototype.on=function(t,e,n){var i,a=this;if(void 0===n)return r.prototype.on.call(this,t,e);var o=function(){if(\"mouseenter\"===t||\"mouseover\"===t){var r=!1;return{layer:e,listener:n,delegates:{mousemove:function(i){var o=a.getLayer(e)?a.queryRenderedFeatures(i.point,{layers:[e]}):[];o.length?r||(r=!0,n.call(a,new Vr(t,a,i.originalEvent,{features:o}))):r=!1},mouseout:function(){r=!1}}}}if(\"mouseleave\"===t||\"mouseout\"===t){var o=!1;return{layer:e,listener:n,delegates:{mousemove:function(r){(a.getLayer(e)?a.queryRenderedFeatures(r.point,{layers:[e]}):[]).length?o=!0:o&&(o=!1,n.call(a,new Vr(t,a,r.originalEvent)))},mouseout:function(e){o&&(o=!1,n.call(a,new Vr(t,a,e.originalEvent)))}}}}return{layer:e,listener:n,delegates:(i={},i[t]=function(t){var r=a.getLayer(e)?a.queryRenderedFeatures(t.point,{layers:[e]}):[];r.length&&(t.features=r,n.call(a,t),delete t.features)},i)}}();for(var s in this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[t]=this._delegatedListeners[t]||[],this._delegatedListeners[t].push(o),o.delegates)a.on(s,o.delegates[s]);return this},n.prototype.off=function(t,e,n){if(void 0===n)return r.prototype.off.call(this,t,e);if(this._delegatedListeners&&this._delegatedListeners[t])for(var i=this._delegatedListeners[t],a=0;a<i.length;a++){var o=i[a];if(o.layer===e&&o.listener===n){for(var s in o.delegates)this.off(s,o.delegates[s]);return i.splice(a,1),this}}return this},n.prototype.queryRenderedFeatures=function(e,r){var n;return 2===arguments.length?(e=arguments[0],r=arguments[1]):1===arguments.length&&((n=arguments[0])instanceof t.default$1||Array.isArray(n))?(e=arguments[0],r={}):1===arguments.length?(e=void 0,r=arguments[0]):(e=void 0,r={}),this.style?this.style.queryRenderedFeatures(this._makeQueryGeometry(e),r,this.transform):[]},n.prototype._makeQueryGeometry=function(e){var r,n=this;if(void 0===e&&(e=[t.default$1.convert([0,0]),t.default$1.convert([this.transform.width,this.transform.height])]),e instanceof t.default$1||\"number\"==typeof e[0])r=[t.default$1.convert(e)];else{var i=[t.default$1.convert(e[0]),t.default$1.convert(e[1])];r=[i[0],new t.default$1(i[1].x,i[0].y),i[1],new t.default$1(i[0].x,i[1].y),i[0]]}return{viewport:r,worldCoordinate:r.map(function(t){return n.transform.pointCoordinate(t)})}},n.prototype.querySourceFeatures=function(t,e){return this.style.querySourceFeatures(t,e)},n.prototype.setStyle=function(e,r){if((!r||!1!==r.diff&&!r.localIdeographFontFamily)&&this.style&&e&&\"object\"==typeof e)try{return this.style.setState(e)&&this._update(!0),this}catch(e){t.warnOnce(\"Unable to perform style diff: \"+(e.message||e.error||e)+\". Rebuilding the style from scratch.\")}return this.style&&(this.style.setEventedParent(null),this.style._remove()),e?(this.style=new Je(this,r||{}),this.style.setEventedParent(this,{style:this.style}),\"string\"==typeof e?this.style.loadURL(e):this.style.loadJSON(e),this):(delete this.style,this)},n.prototype.getStyle=function(){if(this.style)return this.style.serialize()},n.prototype.isStyleLoaded=function(){return this.style?this.style.loaded():t.warnOnce(\"There is no style added to the map.\")},n.prototype.addSource=function(t,e){return this.style.addSource(t,e),this._update(!0),this},n.prototype.isSourceLoaded=function(e){var r=this.style&&this.style.sourceCaches[e];if(void 0!==r)return r.loaded();this.fire(new t.ErrorEvent(new Error(\"There is no source with ID '\"+e+\"'\")))},n.prototype.areTilesLoaded=function(){var t=this.style&&this.style.sourceCaches;for(var e in t){var r=t[e]._tiles;for(var n in r){var i=r[n];if(\"loaded\"!==i.state&&\"errored\"!==i.state)return!1}}return!0},n.prototype.addSourceType=function(t,e,r){return this.style.addSourceType(t,e,r)},n.prototype.removeSource=function(t){return this.style.removeSource(t),this._update(!0),this},n.prototype.getSource=function(t){return this.style.getSource(t)},n.prototype.addImage=function(e,r,n){void 0===n&&(n={});var i=n.pixelRatio;void 0===i&&(i=1);var o=n.sdf;if(void 0===o&&(o=!1),r instanceof sn){var s=a.getImageData(r),l=s.width,c=s.height,u=s.data;this.style.addImage(e,{data:new t.RGBAImage({width:l,height:c},u),pixelRatio:i,sdf:o})}else{if(void 0===r.width||void 0===r.height)return this.fire(new t.ErrorEvent(new Error(\"Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`\")));var f=r.width,h=r.height,p=r.data;this.style.addImage(e,{data:new t.RGBAImage({width:f,height:h},p.slice(0)),pixelRatio:i,sdf:o})}},n.prototype.hasImage=function(e){return e?!!this.style.getImage(e):(this.fire(new t.ErrorEvent(new Error(\"Missing required image id\"))),!1)},n.prototype.removeImage=function(t){this.style.removeImage(t)},n.prototype.loadImage=function(e,r){t.getImage(this._transformRequest(e,t.ResourceType.Image),r)},n.prototype.addLayer=function(t,e){return this.style.addLayer(t,e),this._update(!0),this},n.prototype.moveLayer=function(t,e){return this.style.moveLayer(t,e),this._update(!0),this},n.prototype.removeLayer=function(t){return this.style.removeLayer(t),this._update(!0),this},n.prototype.getLayer=function(t){return this.style.getLayer(t)},n.prototype.setFilter=function(t,e){return this.style.setFilter(t,e),this._update(!0),this},n.prototype.setLayerZoomRange=function(t,e,r){return this.style.setLayerZoomRange(t,e,r),this._update(!0),this},n.prototype.getFilter=function(t){return this.style.getFilter(t)},n.prototype.setPaintProperty=function(t,e,r){return this.style.setPaintProperty(t,e,r),this._update(!0),this},n.prototype.getPaintProperty=function(t,e){return this.style.getPaintProperty(t,e)},n.prototype.setLayoutProperty=function(t,e,r){return this.style.setLayoutProperty(t,e,r),this._update(!0),this},n.prototype.getLayoutProperty=function(t,e){return this.style.getLayoutProperty(t,e)},n.prototype.setLight=function(t){return this.style.setLight(t),this._update(!0),this},n.prototype.getLight=function(){return this.style.getLight()},n.prototype.getContainer=function(){return this._container},n.prototype.getCanvasContainer=function(){return this._canvasContainer},n.prototype.getCanvas=function(){return this._canvas},n.prototype._containerDimensions=function(){var t=0,e=0;return this._container&&(t=this._container.offsetWidth||400,e=this._container.offsetHeight||300),[t,e]},n.prototype._setupContainer=function(){var t=this._container;t.classList.add(\"mapboxgl-map\"),(this._missingCSSContainer=s.create(\"div\",\"mapboxgl-missing-css\",t)).innerHTML=\"Missing Mapbox GL JS CSS\";var e=this._canvasContainer=s.create(\"div\",\"mapboxgl-canvas-container\",t);this._interactive&&e.classList.add(\"mapboxgl-interactive\"),this._canvas=s.create(\"canvas\",\"mapboxgl-canvas\",e),this._canvas.style.position=\"absolute\",this._canvas.addEventListener(\"webglcontextlost\",this._contextLost,!1),this._canvas.addEventListener(\"webglcontextrestored\",this._contextRestored,!1),this._canvas.setAttribute(\"tabindex\",\"0\"),this._canvas.setAttribute(\"aria-label\",\"Map\");var r=this._containerDimensions();this._resizeCanvas(r[0],r[1]);var n=this._controlContainer=s.create(\"div\",\"mapboxgl-control-container\",t),i=this._controlPositions={};[\"top-left\",\"top-right\",\"bottom-left\",\"bottom-right\"].forEach(function(t){i[t]=s.create(\"div\",\"mapboxgl-ctrl-\"+t,n)})},n.prototype._resizeCanvas=function(e,r){var n=t.default.devicePixelRatio||1;this._canvas.width=n*e,this._canvas.height=n*r,this._canvas.style.width=e+\"px\",this._canvas.style.height=r+\"px\"},n.prototype._setupPainter=function(){var r=t.extend({failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer},e.webGLContextAttributes),n=this._canvas.getContext(\"webgl\",r)||this._canvas.getContext(\"experimental-webgl\",r);n?this.painter=new zr(n,this.transform):this.fire(new t.ErrorEvent(new Error(\"Failed to initialize WebGL\")))},n.prototype._contextLost=function(e){e.preventDefault(),this._frameId&&(a.cancelFrame(this._frameId),this._frameId=null),this.fire(new t.Event(\"webglcontextlost\",{originalEvent:e}))},n.prototype._contextRestored=function(e){this._setupPainter(),this.resize(),this._update(),this.fire(new t.Event(\"webglcontextrestored\",{originalEvent:e}))},n.prototype.loaded=function(){return!this._styleDirty&&!this._sourcesDirty&&!(!this.style||!this.style.loaded())},n.prototype._update=function(t){this.style&&(this._styleDirty=this._styleDirty||t,this._sourcesDirty=!0,this._rerender())},n.prototype._requestRenderFrame=function(t){return this._update(),this._renderTaskQueue.add(t)},n.prototype._cancelRenderFrame=function(t){this._renderTaskQueue.remove(t)},n.prototype._render=function(){this._renderTaskQueue.run();var e=!1;if(this.style&&this._styleDirty){this._styleDirty=!1;var r=this.transform.zoom,n=a.now();this.style.zoomHistory.update(r,n);var i=new t.default$16(r,{now:n,fadeDuration:this._fadeDuration,zoomHistory:this.style.zoomHistory,transition:this.style.getTransition()}),o=i.crossFadingFactor();1===o&&o===this._crossFadingFactor||(e=!0,this._crossFadingFactor=o),this.style.update(i)}return this.style&&this._sourcesDirty&&(this._sourcesDirty=!1,this.style._updateSources(this.transform)),this._placementDirty=this.style&&this.style._updatePlacement(this.painter.transform,this.showCollisionBoxes,this._fadeDuration),this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showOverdrawInspector:this._showOverdrawInspector,rotating:this.isRotating(),zooming:this.isZooming(),fadeDuration:this._fadeDuration}),this.fire(new t.Event(\"render\")),this.loaded()&&!this._loaded&&(this._loaded=!0,this.fire(new t.Event(\"load\"))),this.style&&(this.style.hasTransitions()||e)&&(this._styleDirty=!0),(this._sourcesDirty||this._repaint||this._styleDirty||this._placementDirty)&&this._rerender(),this},n.prototype.remove=function(){this._hash&&this._hash.remove(),a.cancelFrame(this._frameId),this._renderTaskQueue.clear(),this._frameId=null,this.setStyle(null),void 0!==t.default&&(t.default.removeEventListener(\"resize\",this._onWindowResize,!1),t.default.removeEventListener(\"online\",this._onWindowOnline,!1));var e=this.painter.context.gl.getExtension(\"WEBGL_lose_context\");e&&e.loseContext(),fn(this._canvasContainer),fn(this._controlContainer),fn(this._missingCSSContainer),this._container.classList.remove(\"mapboxgl-map\"),this.fire(new t.Event(\"remove\"))},n.prototype._rerender=function(){var t=this;this.style&&!this._frameId&&(this._frameId=a.frame(function(){t._frameId=null,t._render()}))},n.prototype._onWindowOnline=function(){this._update()},n.prototype._onWindowResize=function(){this._trackResize&&this.stop().resize()._update()},i.showTileBoundaries.get=function(){return!!this._showTileBoundaries},i.showTileBoundaries.set=function(t){this._showTileBoundaries!==t&&(this._showTileBoundaries=t,this._update())},i.showCollisionBoxes.get=function(){return!!this._showCollisionBoxes},i.showCollisionBoxes.set=function(t){this._showCollisionBoxes!==t&&(this._showCollisionBoxes=t,t?this.style._generateCollisionBoxes():this._update())},i.showOverdrawInspector.get=function(){return!!this._showOverdrawInspector},i.showOverdrawInspector.set=function(t){this._showOverdrawInspector!==t&&(this._showOverdrawInspector=t,this._update())},i.repaint.get=function(){return!!this._repaint},i.repaint.set=function(t){this._repaint=t,this._update()},i.vertices.get=function(){return!!this._vertices},i.vertices.set=function(t){this._vertices=t,this._update()},n.prototype._onData=function(e){this._update(\"style\"===e.dataType),this.fire(new t.Event(e.dataType+\"data\",e))},n.prototype._onDataLoading=function(e){this.fire(new t.Event(e.dataType+\"dataloading\",e))},Object.defineProperties(n.prototype,i),n}(rn);function fn(t){t.parentNode&&t.parentNode.removeChild(t)}var hn={showCompass:!0,showZoom:!0},pn=function(e){var r=this;this.options=t.extend({},hn,e),this._container=s.create(\"div\",\"mapboxgl-ctrl mapboxgl-ctrl-group\"),this._container.addEventListener(\"contextmenu\",function(t){return t.preventDefault()}),this.options.showZoom&&(this._zoomInButton=this._createButton(\"mapboxgl-ctrl-icon mapboxgl-ctrl-zoom-in\",\"Zoom In\",function(){return r._map.zoomIn()}),this._zoomOutButton=this._createButton(\"mapboxgl-ctrl-icon mapboxgl-ctrl-zoom-out\",\"Zoom Out\",function(){return r._map.zoomOut()})),this.options.showCompass&&(t.bindAll([\"_rotateCompassArrow\"],this),this._compass=this._createButton(\"mapboxgl-ctrl-icon mapboxgl-ctrl-compass\",\"Reset North\",function(){return r._map.resetNorth()}),this._compassArrow=s.create(\"span\",\"mapboxgl-ctrl-compass-arrow\",this._compass))};function dn(t,e,r){if(t=new G(t.lng,t.lat),e){var n=new G(t.lng-360,t.lat),i=new G(t.lng+360,t.lat),a=r.locationPoint(t).distSqr(e);r.locationPoint(n).distSqr(e)<a?t=n:r.locationPoint(i).distSqr(e)<a&&(t=i)}for(;Math.abs(t.lng-r.center.lng)>180;){var o=r.locationPoint(t);if(o.x>=0&&o.y>=0&&o.x<=r.width&&o.y<=r.height)break;t.lng>r.center.lng?t.lng-=360:t.lng+=360}return t}pn.prototype._rotateCompassArrow=function(){var t=\"rotate(\"+this._map.transform.angle*(180/Math.PI)+\"deg)\";this._compassArrow.style.transform=t},pn.prototype.onAdd=function(t){return this._map=t,this.options.showCompass&&(this._map.on(\"rotate\",this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new Yr(t,{button:\"left\",element:this._compass}),this._handler.enable()),this._container},pn.prototype.onRemove=function(){s.remove(this._container),this.options.showCompass&&(this._map.off(\"rotate\",this._rotateCompassArrow),this._handler.disable(),delete this._handler),delete this._map},pn.prototype._createButton=function(t,e,r){var n=s.create(\"button\",t,this._container);return n.type=\"button\",n.setAttribute(\"aria-label\",e),n.addEventListener(\"click\",r),n};var gn={center:\"translate(-50%,-50%)\",top:\"translate(-50%,0)\",\"top-left\":\"translate(0,0)\",\"top-right\":\"translate(-100%,0)\",bottom:\"translate(-50%,-100%)\",\"bottom-left\":\"translate(0,-100%)\",\"bottom-right\":\"translate(-100%,-100%)\",left:\"translate(0,-50%)\",right:\"translate(-100%,-50%)\"};function vn(t,e,r){var n=t.classList;for(var i in gn)n.remove(\"mapboxgl-\"+r+\"-anchor-\"+i);n.add(\"mapboxgl-\"+r+\"-anchor-\"+e)}var mn=function(e){if((arguments[0]instanceof t.default.HTMLElement||2===arguments.length)&&(e=t.extend({element:e},arguments[1])),t.bindAll([\"_update\",\"_onMapClick\"],this),this._anchor=e&&e.anchor||\"center\",this._color=e&&e.color||\"#3FB1CE\",e&&e.element)this._element=e.element,this._offset=t.default$1.convert(e&&e.offset||[0,0]);else{this._defaultMarker=!0,this._element=s.create(\"div\");var r=s.createNS(\"http://www.w3.org/2000/svg\",\"svg\");r.setAttributeNS(null,\"height\",\"41px\"),r.setAttributeNS(null,\"width\",\"27px\"),r.setAttributeNS(null,\"viewBox\",\"0 0 27 41\");var n=s.createNS(\"http://www.w3.org/2000/svg\",\"g\");n.setAttributeNS(null,\"stroke\",\"none\"),n.setAttributeNS(null,\"stroke-width\",\"1\"),n.setAttributeNS(null,\"fill\",\"none\"),n.setAttributeNS(null,\"fill-rule\",\"evenodd\");var i=s.createNS(\"http://www.w3.org/2000/svg\",\"g\");i.setAttributeNS(null,\"fill-rule\",\"nonzero\");var a=s.createNS(\"http://www.w3.org/2000/svg\",\"g\");a.setAttributeNS(null,\"transform\",\"translate(3.0, 29.0)\"),a.setAttributeNS(null,\"fill\",\"#000000\");for(var o=0,l=[{rx:\"10.5\",ry:\"5.25002273\"},{rx:\"10.5\",ry:\"5.25002273\"},{rx:\"9.5\",ry:\"4.77275007\"},{rx:\"8.5\",ry:\"4.29549936\"},{rx:\"7.5\",ry:\"3.81822308\"},{rx:\"6.5\",ry:\"3.34094679\"},{rx:\"5.5\",ry:\"2.86367051\"},{rx:\"4.5\",ry:\"2.38636864\"}];o<l.length;o+=1){var c=l[o],u=s.createNS(\"http://www.w3.org/2000/svg\",\"ellipse\");u.setAttributeNS(null,\"opacity\",\"0.04\"),u.setAttributeNS(null,\"cx\",\"10.5\"),u.setAttributeNS(null,\"cy\",\"5.80029008\"),u.setAttributeNS(null,\"rx\",c.rx),u.setAttributeNS(null,\"ry\",c.ry),a.appendChild(u)}var f=s.createNS(\"http://www.w3.org/2000/svg\",\"g\");f.setAttributeNS(null,\"fill\",this._color);var h=s.createNS(\"http://www.w3.org/2000/svg\",\"path\");h.setAttributeNS(null,\"d\",\"M27,13.5 C27,19.074644 20.250001,27.000002 14.75,34.500002 C14.016665,35.500004 12.983335,35.500004 12.25,34.500002 C6.7499993,27.000002 0,19.222562 0,13.5 C0,6.0441559 6.0441559,0 13.5,0 C20.955844,0 27,6.0441559 27,13.5 Z\"),f.appendChild(h);var p=s.createNS(\"http://www.w3.org/2000/svg\",\"g\");p.setAttributeNS(null,\"opacity\",\"0.25\"),p.setAttributeNS(null,\"fill\",\"#000000\");var d=s.createNS(\"http://www.w3.org/2000/svg\",\"path\");d.setAttributeNS(null,\"d\",\"M13.5,0 C6.0441559,0 0,6.0441559 0,13.5 C0,19.222562 6.7499993,27 12.25,34.5 C13,35.522727 14.016664,35.500004 14.75,34.5 C20.250001,27 27,19.074644 27,13.5 C27,6.0441559 20.955844,0 13.5,0 Z M13.5,1 C20.415404,1 26,6.584596 26,13.5 C26,15.898657 24.495584,19.181431 22.220703,22.738281 C19.945823,26.295132 16.705119,30.142167 13.943359,33.908203 C13.743445,34.180814 13.612715,34.322738 13.5,34.441406 C13.387285,34.322738 13.256555,34.180814 13.056641,33.908203 C10.284481,30.127985 7.4148684,26.314159 5.015625,22.773438 C2.6163816,19.232715 1,15.953538 1,13.5 C1,6.584596 6.584596,1 13.5,1 Z\"),p.appendChild(d);var g=s.createNS(\"http://www.w3.org/2000/svg\",\"g\");g.setAttributeNS(null,\"transform\",\"translate(6.0, 7.0)\"),g.setAttributeNS(null,\"fill\",\"#FFFFFF\");var v=s.createNS(\"http://www.w3.org/2000/svg\",\"g\");v.setAttributeNS(null,\"transform\",\"translate(8.0, 8.0)\");var m=s.createNS(\"http://www.w3.org/2000/svg\",\"circle\");m.setAttributeNS(null,\"fill\",\"#000000\"),m.setAttributeNS(null,\"opacity\",\"0.25\"),m.setAttributeNS(null,\"cx\",\"5.5\"),m.setAttributeNS(null,\"cy\",\"5.5\"),m.setAttributeNS(null,\"r\",\"5.4999962\");var y=s.createNS(\"http://www.w3.org/2000/svg\",\"circle\");y.setAttributeNS(null,\"fill\",\"#FFFFFF\"),y.setAttributeNS(null,\"cx\",\"5.5\"),y.setAttributeNS(null,\"cy\",\"5.5\"),y.setAttributeNS(null,\"r\",\"5.4999962\"),v.appendChild(m),v.appendChild(y),i.appendChild(a),i.appendChild(f),i.appendChild(p),i.appendChild(g),i.appendChild(v),r.appendChild(i),this._element.appendChild(r),this._offset=t.default$1.convert(e&&e.offset||[0,-14])}this._element.classList.add(\"mapboxgl-marker\"),this._popup=null};mn.prototype.addTo=function(t){return this.remove(),this._map=t,t.getCanvasContainer().appendChild(this._element),t.on(\"move\",this._update),t.on(\"moveend\",this._update),this._update(),this._map.on(\"click\",this._onMapClick),this},mn.prototype.remove=function(){return this._map&&(this._map.off(\"click\",this._onMapClick),this._map.off(\"move\",this._update),this._map.off(\"moveend\",this._update),delete this._map),s.remove(this._element),this._popup&&this._popup.remove(),this},mn.prototype.getLngLat=function(){return this._lngLat},mn.prototype.setLngLat=function(t){return this._lngLat=G.convert(t),this._pos=null,this._popup&&this._popup.setLngLat(this._lngLat),this._update(),this},mn.prototype.getElement=function(){return this._element},mn.prototype.setPopup=function(t){if(this._popup&&(this._popup.remove(),this._popup=null),t){if(!(\"offset\"in t.options)){var e=Math.sqrt(Math.pow(13.5,2)/2);t.options.offset=this._defaultMarker?{top:[0,0],\"top-left\":[0,0],\"top-right\":[0,0],bottom:[0,-38.1],\"bottom-left\":[e,-1*(24.6+e)],\"bottom-right\":[-e,-1*(24.6+e)],left:[13.5,-24.6],right:[-13.5,-24.6]}:this._offset}this._popup=t,this._lngLat&&this._popup.setLngLat(this._lngLat)}return this},mn.prototype._onMapClick=function(t){var e=t.originalEvent.target,r=this._element;this._popup&&(e===r||r.contains(e))&&this.togglePopup()},mn.prototype.getPopup=function(){return this._popup},mn.prototype.togglePopup=function(){var t=this._popup;return t?(t.isOpen()?t.remove():t.addTo(this._map),this):this},mn.prototype._update=function(t){this._map&&(this._map.transform.renderWorldCopies&&(this._lngLat=dn(this._lngLat,this._pos,this._map.transform)),this._pos=this._map.project(this._lngLat)._add(this._offset),t&&\"moveend\"!==t.type||(this._pos=this._pos.round()),s.setTransform(this._element,gn[this._anchor]+\" translate(\"+this._pos.x+\"px, \"+this._pos.y+\"px)\"),vn(this._element,this._anchor,\"marker\"))},mn.prototype.getOffset=function(){return this._offset},mn.prototype.setOffset=function(e){return this._offset=t.default$1.convert(e),this._update(),this};var yn,xn={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showUserLocation:!0},bn=function(e){function r(r){e.call(this),this.options=t.extend({},xn,r),t.bindAll([\"_onSuccess\",\"_onError\",\"_finish\",\"_setupUI\",\"_updateCamera\",\"_updateMarker\"],this)}return e&&(r.__proto__=e),r.prototype=Object.create(e&&e.prototype),r.prototype.constructor=r,r.prototype.onAdd=function(e){var r;return this._map=e,this._container=s.create(\"div\",\"mapboxgl-ctrl mapboxgl-ctrl-group\"),r=this._setupUI,void 0!==yn?r(yn):void 0!==t.default.navigator.permissions?t.default.navigator.permissions.query({name:\"geolocation\"}).then(function(t){yn=\"denied\"!==t.state,r(yn)}):(yn=!!t.default.navigator.geolocation,r(yn)),this._container},r.prototype.onRemove=function(){void 0!==this._geolocationWatchID&&(t.default.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker.remove(),s.remove(this._container),this._map=void 0},r.prototype._onSuccess=function(e){if(this.options.trackUserLocation)switch(this._lastKnownPosition=e,this._watchState){case\"WAITING_ACTIVE\":case\"ACTIVE_LOCK\":case\"ACTIVE_ERROR\":this._watchState=\"ACTIVE_LOCK\",this._geolocateButton.classList.remove(\"mapboxgl-ctrl-geolocate-waiting\"),this._geolocateButton.classList.remove(\"mapboxgl-ctrl-geolocate-active-error\"),this._geolocateButton.classList.add(\"mapboxgl-ctrl-geolocate-active\");break;case\"BACKGROUND\":case\"BACKGROUND_ERROR\":this._watchState=\"BACKGROUND\",this._geolocateButton.classList.remove(\"mapboxgl-ctrl-geolocate-waiting\"),this._geolocateButton.classList.remove(\"mapboxgl-ctrl-geolocate-background-error\"),this._geolocateButton.classList.add(\"mapboxgl-ctrl-geolocate-background\")}this.options.showUserLocation&&\"OFF\"!==this._watchState&&this._updateMarker(e),this.options.trackUserLocation&&\"ACTIVE_LOCK\"!==this._watchState||this._updateCamera(e),this.options.showUserLocation&&this._dotElement.classList.remove(\"mapboxgl-user-location-dot-stale\"),this.fire(new t.Event(\"geolocate\",e)),this._finish()},r.prototype._updateCamera=function(t){var e=new G(t.coords.longitude,t.coords.latitude),r=t.coords.accuracy;this._map.fitBounds(e.toBounds(r),this.options.fitBoundsOptions,{geolocateSource:!0})},r.prototype._updateMarker=function(t){t?this._userLocationDotMarker.setLngLat([t.coords.longitude,t.coords.latitude]).addTo(this._map):this._userLocationDotMarker.remove()},r.prototype._onError=function(e){if(this.options.trackUserLocation)if(1===e.code)this._watchState=\"OFF\",this._geolocateButton.classList.remove(\"mapboxgl-ctrl-geolocate-waiting\"),this._geolocateButton.classList.remove(\"mapboxgl-ctrl-geolocate-active\"),this._geolocateButton.classList.remove(\"mapboxgl-ctrl-geolocate-active-error\"),this._geolocateButton.classList.remove(\"mapboxgl-ctrl-geolocate-background\"),this._geolocateButton.classList.remove(\"mapboxgl-ctrl-geolocate-background-error\"),void 0!==this._geolocationWatchID&&this._clearWatch();else switch(this._watchState){case\"WAITING_ACTIVE\":this._watchState=\"ACTIVE_ERROR\",this._geolocateButton.classList.remove(\"mapboxgl-ctrl-geolocate-active\"),this._geolocateButton.classList.add(\"mapboxgl-ctrl-geolocate-active-error\");break;case\"ACTIVE_LOCK\":this._watchState=\"ACTIVE_ERROR\",this._geolocateButton.classList.remove(\"mapboxgl-ctrl-geolocate-active\"),this._geolocateButton.classList.add(\"mapboxgl-ctrl-geolocate-active-error\"),this._geolocateButton.classList.add(\"mapboxgl-ctrl-geolocate-waiting\");break;case\"BACKGROUND\":this._watchState=\"BACKGROUND_ERROR\",this._geolocateButton.classList.remove(\"mapboxgl-ctrl-geolocate-background\"),this._geolocateButton.classList.add(\"mapboxgl-ctrl-geolocate-background-error\"),this._geolocateButton.classList.add(\"mapboxgl-ctrl-geolocate-waiting\")}\"OFF\"!==this._watchState&&this.options.showUserLocation&&this._dotElement.classList.add(\"mapboxgl-user-location-dot-stale\"),this.fire(new t.Event(\"error\",e)),this._finish()},r.prototype._finish=function(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},r.prototype._setupUI=function(e){var r=this;!1!==e&&(this._container.addEventListener(\"contextmenu\",function(t){return t.preventDefault()}),this._geolocateButton=s.create(\"button\",\"mapboxgl-ctrl-icon mapboxgl-ctrl-geolocate\",this._container),this._geolocateButton.type=\"button\",this._geolocateButton.setAttribute(\"aria-label\",\"Geolocate\"),this.options.trackUserLocation&&(this._geolocateButton.setAttribute(\"aria-pressed\",\"false\"),this._watchState=\"OFF\"),this.options.showUserLocation&&(this._dotElement=s.create(\"div\",\"mapboxgl-user-location-dot\"),this._userLocationDotMarker=new mn(this._dotElement),this.options.trackUserLocation&&(this._watchState=\"OFF\")),this._geolocateButton.addEventListener(\"click\",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on(\"movestart\",function(e){e.geolocateSource||\"ACTIVE_LOCK\"!==r._watchState||(r._watchState=\"BACKGROUND\",r._geolocateButton.classList.add(\"mapboxgl-ctrl-geolocate-background\"),r._geolocateButton.classList.remove(\"mapboxgl-ctrl-geolocate-active\"),r.fire(new t.Event(\"trackuserlocationend\")))}))},r.prototype.trigger=function(){if(!this._setup)return t.warnOnce(\"Geolocate control triggered before added to a map\"),!1;if(this.options.trackUserLocation){switch(this._watchState){case\"OFF\":this._watchState=\"WAITING_ACTIVE\",this.fire(new t.Event(\"trackuserlocationstart\"));break;case\"WAITING_ACTIVE\":case\"ACTIVE_LOCK\":case\"ACTIVE_ERROR\":case\"BACKGROUND_ERROR\":this._watchState=\"OFF\",this._geolocateButton.classList.remove(\"mapboxgl-ctrl-geolocate-waiting\"),this._geolocateButton.classList.remove(\"mapboxgl-ctrl-geolocate-active\"),this._geolocateButton.classList.remove(\"mapboxgl-ctrl-geolocate-active-error\"),this._geolocateButton.classList.remove(\"mapboxgl-ctrl-geolocate-background\"),this._geolocateButton.classList.remove(\"mapboxgl-ctrl-geolocate-background-error\"),this.fire(new t.Event(\"trackuserlocationend\"));break;case\"BACKGROUND\":this._watchState=\"ACTIVE_LOCK\",this._geolocateButton.classList.remove(\"mapboxgl-ctrl-geolocate-background\"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new t.Event(\"trackuserlocationstart\"))}switch(this._watchState){case\"WAITING_ACTIVE\":this._geolocateButton.classList.add(\"mapboxgl-ctrl-geolocate-waiting\"),this._geolocateButton.classList.add(\"mapboxgl-ctrl-geolocate-active\");break;case\"ACTIVE_LOCK\":this._geolocateButton.classList.add(\"mapboxgl-ctrl-geolocate-active\");break;case\"ACTIVE_ERROR\":this._geolocateButton.classList.add(\"mapboxgl-ctrl-geolocate-waiting\"),this._geolocateButton.classList.add(\"mapboxgl-ctrl-geolocate-active-error\");break;case\"BACKGROUND\":this._geolocateButton.classList.add(\"mapboxgl-ctrl-geolocate-background\");break;case\"BACKGROUND_ERROR\":this._geolocateButton.classList.add(\"mapboxgl-ctrl-geolocate-waiting\"),this._geolocateButton.classList.add(\"mapboxgl-ctrl-geolocate-background-error\")}\"OFF\"===this._watchState&&void 0!==this._geolocationWatchID?this._clearWatch():void 0===this._geolocationWatchID&&(this._geolocateButton.classList.add(\"mapboxgl-ctrl-geolocate-waiting\"),this._geolocateButton.setAttribute(\"aria-pressed\",\"true\"),this._geolocationWatchID=t.default.navigator.geolocation.watchPosition(this._onSuccess,this._onError,this.options.positionOptions))}else t.default.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0},r.prototype._clearWatch=function(){t.default.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove(\"mapboxgl-ctrl-geolocate-waiting\"),this._geolocateButton.setAttribute(\"aria-pressed\",\"false\"),this.options.showUserLocation&&this._updateMarker(null)},r}(t.Evented),_n={maxWidth:100,unit:\"metric\"},wn=function(e){this.options=t.extend({},_n,e),t.bindAll([\"_onMove\",\"setUnit\"],this)};function kn(t,e,r){var n,i,a,o,s,l,c=r&&r.maxWidth||100,u=t._container.clientHeight/2,f=(n=t.unproject([0,u]),i=t.unproject([c,u]),a=Math.PI/180,o=n.lat*a,s=i.lat*a,l=Math.sin(o)*Math.sin(s)+Math.cos(o)*Math.cos(s)*Math.cos((i.lng-n.lng)*a),6371e3*Math.acos(Math.min(l,1)));if(r&&\"imperial\"===r.unit){var h=3.2808*f;h>5280?Mn(e,c,h/5280,\"mi\"):Mn(e,c,h,\"ft\")}else r&&\"nautical\"===r.unit?Mn(e,c,f/1852,\"nm\"):Mn(e,c,f,\"m\")}function Mn(t,e,r,n){var i,a,o,s=(i=r,(a=Math.pow(10,(\"\"+Math.floor(i)).length-1))*(o=(o=i/a)>=10?10:o>=5?5:o>=3?3:o>=2?2:1)),l=s/r;\"m\"===n&&s>=1e3&&(s/=1e3,n=\"km\"),t.style.width=e*l+\"px\",t.innerHTML=s+n}wn.prototype.getDefaultPosition=function(){return\"bottom-left\"},wn.prototype._onMove=function(){kn(this._map,this._container,this.options)},wn.prototype.onAdd=function(t){return this._map=t,this._container=s.create(\"div\",\"mapboxgl-ctrl mapboxgl-ctrl-scale\",t.getContainer()),this._map.on(\"move\",this._onMove),this._onMove(),this._container},wn.prototype.onRemove=function(){s.remove(this._container),this._map.off(\"move\",this._onMove),this._map=void 0},wn.prototype.setUnit=function(t){this.options.unit=t,kn(this._map,this._container,this.options)};var An=function(){this._fullscreen=!1,t.bindAll([\"_onClickFullscreen\",\"_changeIcon\"],this),\"onfullscreenchange\"in t.default.document?this._fullscreenchange=\"fullscreenchange\":\"onmozfullscreenchange\"in t.default.document?this._fullscreenchange=\"mozfullscreenchange\":\"onwebkitfullscreenchange\"in t.default.document?this._fullscreenchange=\"webkitfullscreenchange\":\"onmsfullscreenchange\"in t.default.document&&(this._fullscreenchange=\"MSFullscreenChange\"),this._className=\"mapboxgl-ctrl\"};An.prototype.onAdd=function(e){return this._map=e,this._mapContainer=this._map.getContainer(),this._container=s.create(\"div\",this._className+\" mapboxgl-ctrl-group\"),this._checkFullscreenSupport()?this._setupUI():(this._container.style.display=\"none\",t.warnOnce(\"This device does not support fullscreen mode.\")),this._container},An.prototype.onRemove=function(){s.remove(this._container),this._map=null,t.default.document.removeEventListener(this._fullscreenchange,this._changeIcon)},An.prototype._checkFullscreenSupport=function(){return!!(t.default.document.fullscreenEnabled||t.default.document.mozFullScreenEnabled||t.default.document.msFullscreenEnabled||t.default.document.webkitFullscreenEnabled)},An.prototype._setupUI=function(){var e=this._fullscreenButton=s.create(\"button\",this._className+\"-icon \"+this._className+\"-fullscreen\",this._container);e.setAttribute(\"aria-label\",\"Toggle fullscreen\"),e.type=\"button\",this._fullscreenButton.addEventListener(\"click\",this._onClickFullscreen),t.default.document.addEventListener(this._fullscreenchange,this._changeIcon)},An.prototype._isFullscreen=function(){return this._fullscreen},An.prototype._changeIcon=function(){(t.default.document.fullscreenElement||t.default.document.mozFullScreenElement||t.default.document.webkitFullscreenElement||t.default.document.msFullscreenElement)===this._mapContainer!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle(this._className+\"-shrink\"),this._fullscreenButton.classList.toggle(this._className+\"-fullscreen\"))},An.prototype._onClickFullscreen=function(){this._isFullscreen()?t.default.document.exitFullscreen?t.default.document.exitFullscreen():t.default.document.mozCancelFullScreen?t.default.document.mozCancelFullScreen():t.default.document.msExitFullscreen?t.default.document.msExitFullscreen():t.default.document.webkitCancelFullScreen&&t.default.document.webkitCancelFullScreen():this._mapContainer.requestFullscreen?this._mapContainer.requestFullscreen():this._mapContainer.mozRequestFullScreen?this._mapContainer.mozRequestFullScreen():this._mapContainer.msRequestFullscreen?this._mapContainer.msRequestFullscreen():this._mapContainer.webkitRequestFullscreen&&this._mapContainer.webkitRequestFullscreen()};var Tn={closeButton:!0,closeOnClick:!0},Sn=function(e){function r(r){e.call(this),this.options=t.extend(Object.create(Tn),r),t.bindAll([\"_update\",\"_onClickClose\"],this)}return e&&(r.__proto__=e),r.prototype=Object.create(e&&e.prototype),r.prototype.constructor=r,r.prototype.addTo=function(e){return this._map=e,this._map.on(\"move\",this._update),this.options.closeOnClick&&this._map.on(\"click\",this._onClickClose),this._update(),this.fire(new t.Event(\"open\")),this},r.prototype.isOpen=function(){return!!this._map},r.prototype.remove=function(){return this._content&&s.remove(this._content),this._container&&(s.remove(this._container),delete this._container),this._map&&(this._map.off(\"move\",this._update),this._map.off(\"click\",this._onClickClose),delete this._map),this.fire(new t.Event(\"close\")),this},r.prototype.getLngLat=function(){return this._lngLat},r.prototype.setLngLat=function(t){return this._lngLat=G.convert(t),this._pos=null,this._update(),this},r.prototype.setText=function(e){return this.setDOMContent(t.default.document.createTextNode(e))},r.prototype.setHTML=function(e){var r,n=t.default.document.createDocumentFragment(),i=t.default.document.createElement(\"body\");for(i.innerHTML=e;r=i.firstChild;)n.appendChild(r);return this.setDOMContent(n)},r.prototype.setDOMContent=function(t){return this._createContent(),this._content.appendChild(t),this._update(),this},r.prototype._createContent=function(){this._content&&s.remove(this._content),this._content=s.create(\"div\",\"mapboxgl-popup-content\",this._container),this.options.closeButton&&(this._closeButton=s.create(\"button\",\"mapboxgl-popup-close-button\",this._content),this._closeButton.type=\"button\",this._closeButton.setAttribute(\"aria-label\",\"Close popup\"),this._closeButton.innerHTML=\"&#215;\",this._closeButton.addEventListener(\"click\",this._onClickClose))},r.prototype._update=function(){if(this._map&&this._lngLat&&this._content){this._container||(this._container=s.create(\"div\",\"mapboxgl-popup\",this._map.getContainer()),this._tip=s.create(\"div\",\"mapboxgl-popup-tip\",this._container),this._container.appendChild(this._content)),this._map.transform.renderWorldCopies&&(this._lngLat=dn(this._lngLat,this._pos,this._map.transform));var e=this._pos=this._map.project(this._lngLat),r=this.options.anchor,n=function e(r){if(r){if(\"number\"==typeof r){var n=Math.round(Math.sqrt(.5*Math.pow(r,2)));return{center:new t.default$1(0,0),top:new t.default$1(0,r),\"top-left\":new t.default$1(n,n),\"top-right\":new t.default$1(-n,n),bottom:new t.default$1(0,-r),\"bottom-left\":new t.default$1(n,-n),\"bottom-right\":new t.default$1(-n,-n),left:new t.default$1(r,0),right:new t.default$1(-r,0)}}if(r instanceof t.default$1||Array.isArray(r)){var i=t.default$1.convert(r);return{center:i,top:i,\"top-left\":i,\"top-right\":i,bottom:i,\"bottom-left\":i,\"bottom-right\":i,left:i,right:i}}return{center:t.default$1.convert(r.center||[0,0]),top:t.default$1.convert(r.top||[0,0]),\"top-left\":t.default$1.convert(r[\"top-left\"]||[0,0]),\"top-right\":t.default$1.convert(r[\"top-right\"]||[0,0]),bottom:t.default$1.convert(r.bottom||[0,0]),\"bottom-left\":t.default$1.convert(r[\"bottom-left\"]||[0,0]),\"bottom-right\":t.default$1.convert(r[\"bottom-right\"]||[0,0]),left:t.default$1.convert(r.left||[0,0]),right:t.default$1.convert(r.right||[0,0])}}return e(new t.default$1(0,0))}(this.options.offset);if(!r){var i,a=this._container.offsetWidth,o=this._container.offsetHeight;i=e.y+n.bottom.y<o?[\"top\"]:e.y>this._map.transform.height-o?[\"bottom\"]:[],e.x<a/2?i.push(\"left\"):e.x>this._map.transform.width-a/2&&i.push(\"right\"),r=0===i.length?\"bottom\":i.join(\"-\")}var l=e.add(n[r]).round();s.setTransform(this._container,gn[r]+\" translate(\"+l.x+\"px,\"+l.y+\"px)\"),vn(this._container,r,\"popup\")}},r.prototype._onClickClose=function(){this.remove()},r}(t.Evented),En={version:\"0.45.0\",supported:e,workerCount:Math.max(Math.floor(a.hardwareConcurrency/2),1),setRTLTextPlugin:t.setRTLTextPlugin,Map:un,NavigationControl:pn,GeolocateControl:bn,AttributionControl:nn,ScaleControl:wn,FullscreenControl:An,Popup:Sn,Marker:mn,Style:Je,LngLat:G,LngLatBounds:W,Point:t.default$1,Evented:t.Evented,config:v,get accessToken(){return v.ACCESS_TOKEN},set accessToken(t){v.ACCESS_TOKEN=t},workerUrl:\"\"};return En}),n})}).call(this,\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{}],410:[function(t,e,r){\"use strict\";e.exports=function(t){for(var e=1<<t+1,r=new Array(e),n=0;n<e;++n)r[n]=a(t,n);return r};var n=t(\"convex-hull\");function i(t,e,r){for(var n=new Array(t),i=0;i<t;++i)n[i]=0,i===e&&(n[i]+=.5),i===r&&(n[i]+=.5);return n}function a(t,e){if(0===e||e===(1<<t+1)-1)return[];for(var r=[],a=[],o=0;o<=t;++o)if(e&1<<o){r.push(i(t,o-1,o-1)),a.push(null);for(var s=0;s<=t;++s)~e&1<<s&&(r.push(i(t,o-1,s-1)),a.push([o,s]))}var l=n(r),c=[];t:for(o=0;o<l.length;++o){var u=l[o],f=[];for(s=0;s<u.length;++s){if(!a[u[s]])continue t;f.push(a[u[s]].slice())}c.push(f)}return c}},{\"convex-hull\":118}],411:[function(t,e,r){var n=t(\"./normalize\"),i=t(\"gl-mat4/create\"),a=t(\"gl-mat4/clone\"),o=t(\"gl-mat4/determinant\"),s=t(\"gl-mat4/invert\"),l=t(\"gl-mat4/transpose\"),c={length:t(\"gl-vec3/length\"),normalize:t(\"gl-vec3/normalize\"),dot:t(\"gl-vec3/dot\"),cross:t(\"gl-vec3/cross\")},u=i(),f=i(),h=[0,0,0,0],p=[[0,0,0],[0,0,0],[0,0,0]],d=[0,0,0];function g(t,e,r,n,i){t[0]=e[0]*n+r[0]*i,t[1]=e[1]*n+r[1]*i,t[2]=e[2]*n+r[2]*i}e.exports=function(t,e,r,i,v,m){if(e||(e=[0,0,0]),r||(r=[0,0,0]),i||(i=[0,0,0]),v||(v=[0,0,0,1]),m||(m=[0,0,0,1]),!n(u,t))return!1;if(a(f,u),f[3]=0,f[7]=0,f[11]=0,f[15]=1,Math.abs(o(f)<1e-8))return!1;var y,x,b,_,w,k,M,A=u[3],T=u[7],S=u[11],E=u[12],C=u[13],L=u[14],z=u[15];if(0!==A||0!==T||0!==S){if(h[0]=A,h[1]=T,h[2]=S,h[3]=z,!s(f,f))return!1;l(f,f),y=v,b=f,_=(x=h)[0],w=x[1],k=x[2],M=x[3],y[0]=b[0]*_+b[4]*w+b[8]*k+b[12]*M,y[1]=b[1]*_+b[5]*w+b[9]*k+b[13]*M,y[2]=b[2]*_+b[6]*w+b[10]*k+b[14]*M,y[3]=b[3]*_+b[7]*w+b[11]*k+b[15]*M}else v[0]=v[1]=v[2]=0,v[3]=1;if(e[0]=E,e[1]=C,e[2]=L,function(t,e){t[0][0]=e[0],t[0][1]=e[1],t[0][2]=e[2],t[1][0]=e[4],t[1][1]=e[5],t[1][2]=e[6],t[2][0]=e[8],t[2][1]=e[9],t[2][2]=e[10]}(p,u),r[0]=c.length(p[0]),c.normalize(p[0],p[0]),i[0]=c.dot(p[0],p[1]),g(p[1],p[1],p[0],1,-i[0]),r[1]=c.length(p[1]),c.normalize(p[1],p[1]),i[0]/=r[1],i[1]=c.dot(p[0],p[2]),g(p[2],p[2],p[0],1,-i[1]),i[2]=c.dot(p[1],p[2]),g(p[2],p[2],p[1],1,-i[2]),r[2]=c.length(p[2]),c.normalize(p[2],p[2]),i[1]/=r[2],i[2]/=r[2],c.cross(d,p[1],p[2]),c.dot(p[0],d)<0)for(var O=0;O<3;O++)r[O]*=-1,p[O][0]*=-1,p[O][1]*=-1,p[O][2]*=-1;return m[0]=.5*Math.sqrt(Math.max(1+p[0][0]-p[1][1]-p[2][2],0)),m[1]=.5*Math.sqrt(Math.max(1-p[0][0]+p[1][1]-p[2][2],0)),m[2]=.5*Math.sqrt(Math.max(1-p[0][0]-p[1][1]+p[2][2],0)),m[3]=.5*Math.sqrt(Math.max(1+p[0][0]+p[1][1]+p[2][2],0)),p[2][1]>p[1][2]&&(m[0]=-m[0]),p[0][2]>p[2][0]&&(m[1]=-m[1]),p[1][0]>p[0][1]&&(m[2]=-m[2]),!0}},{\"./normalize\":412,\"gl-mat4/clone\":248,\"gl-mat4/create\":249,\"gl-mat4/determinant\":250,\"gl-mat4/invert\":254,\"gl-mat4/transpose\":264,\"gl-vec3/cross\":317,\"gl-vec3/dot\":322,\"gl-vec3/length\":332,\"gl-vec3/normalize\":339}],412:[function(t,e,r){e.exports=function(t,e){var r=e[15];if(0===r)return!1;for(var n=1/r,i=0;i<16;i++)t[i]=e[i]*n;return!0}},{}],413:[function(t,e,r){var n=t(\"gl-vec3/lerp\"),i=t(\"mat4-recompose\"),a=t(\"mat4-decompose\"),o=t(\"gl-mat4/determinant\"),s=t(\"quat-slerp\"),l=f(),c=f(),u=f();function f(){return{translate:h(),scale:h(1),skew:h(),perspective:[0,0,0,1],quaternion:[0,0,0,1]}}function h(t){return[t||0,t||0,t||0]}e.exports=function(t,e,r,f){if(0===o(e)||0===o(r))return!1;var h=a(e,l.translate,l.scale,l.skew,l.perspective,l.quaternion),p=a(r,c.translate,c.scale,c.skew,c.perspective,c.quaternion);return!(!h||!p||(n(u.translate,l.translate,c.translate,f),n(u.skew,l.skew,c.skew,f),n(u.scale,l.scale,c.scale,f),n(u.perspective,l.perspective,c.perspective,f),s(u.quaternion,l.quaternion,c.quaternion,f),i(t,u.translate,u.scale,u.skew,u.perspective,u.quaternion),0))}},{\"gl-mat4/determinant\":250,\"gl-vec3/lerp\":333,\"mat4-decompose\":411,\"mat4-recompose\":414,\"quat-slerp\":466}],414:[function(t,e,r){var n={identity:t(\"gl-mat4/identity\"),translate:t(\"gl-mat4/translate\"),multiply:t(\"gl-mat4/multiply\"),create:t(\"gl-mat4/create\"),scale:t(\"gl-mat4/scale\"),fromRotationTranslation:t(\"gl-mat4/fromRotationTranslation\")},i=(n.create(),n.create());e.exports=function(t,e,r,a,o,s){return n.identity(t),n.fromRotationTranslation(t,s,e),t[3]=o[0],t[7]=o[1],t[11]=o[2],t[15]=o[3],n.identity(i),0!==a[2]&&(i[9]=a[2],n.multiply(t,t,i)),0!==a[1]&&(i[9]=0,i[8]=a[1],n.multiply(t,t,i)),0!==a[0]&&(i[8]=0,i[4]=a[0],n.multiply(t,t,i)),n.scale(t,t,r),t}},{\"gl-mat4/create\":249,\"gl-mat4/fromRotationTranslation\":252,\"gl-mat4/identity\":253,\"gl-mat4/multiply\":256,\"gl-mat4/scale\":262,\"gl-mat4/translate\":263}],415:[function(t,e,r){\"use strict\";e.exports=Math.log2||function(t){return Math.log(t)*Math.LOG2E}},{}],416:[function(t,e,r){\"use strict\";var n=t(\"binary-search-bounds\"),i=t(\"mat4-interpolate\"),a=t(\"gl-mat4/invert\"),o=t(\"gl-mat4/rotateX\"),s=t(\"gl-mat4/rotateY\"),l=t(\"gl-mat4/rotateZ\"),c=t(\"gl-mat4/lookAt\"),u=t(\"gl-mat4/translate\"),f=(t(\"gl-mat4/scale\"),t(\"gl-vec3/normalize\")),h=[0,0,0];function p(t){this._components=t.slice(),this._time=[0],this.prevMatrix=t.slice(),this.nextMatrix=t.slice(),this.computedMatrix=t.slice(),this.computedInverse=t.slice(),this.computedEye=[0,0,0],this.computedUp=[0,0,0],this.computedCenter=[0,0,0],this.computedRadius=[0],this._limits=[-1/0,1/0]}e.exports=function(t){return new p((t=t||{}).matrix||[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])};var d=p.prototype;d.recalcMatrix=function(t){var e=this._time,r=n.le(e,t),o=this.computedMatrix;if(!(r<0)){var s=this._components;if(r===e.length-1)for(var l=16*r,c=0;c<16;++c)o[c]=s[l++];else{var u=e[r+1]-e[r],h=(l=16*r,this.prevMatrix),p=!0;for(c=0;c<16;++c)h[c]=s[l++];var d=this.nextMatrix;for(c=0;c<16;++c)d[c]=s[l++],p=p&&h[c]===d[c];if(u<1e-6||p)for(c=0;c<16;++c)o[c]=h[c];else i(o,h,d,(t-e[r])/u)}var g=this.computedUp;g[0]=o[1],g[1]=o[5],g[2]=o[9],f(g,g);var v=this.computedInverse;a(v,o);var m=this.computedEye,y=v[15];m[0]=v[12]/y,m[1]=v[13]/y,m[2]=v[14]/y;var x=this.computedCenter,b=Math.exp(this.computedRadius[0]);for(c=0;c<3;++c)x[c]=m[c]-o[2+4*c]*b}},d.idle=function(t){if(!(t<this.lastT())){for(var e=this._components,r=e.length-16,n=0;n<16;++n)e.push(e[r++]);this._time.push(t)}},d.flush=function(t){var e=n.gt(this._time,t)-2;e<0||(this._time.splice(0,e),this._components.splice(0,16*e))},d.lastT=function(){return this._time[this._time.length-1]},d.lookAt=function(t,e,r,n){this.recalcMatrix(t),e=e||this.computedEye,r=r||h,n=n||this.computedUp,this.setMatrix(t,c(this.computedMatrix,e,r,n));for(var i=0,a=0;a<3;++a)i+=Math.pow(r[a]-e[a],2);i=Math.log(Math.sqrt(i)),this.computedRadius[0]=i},d.rotate=function(t,e,r,n){this.recalcMatrix(t);var i=this.computedInverse;e&&s(i,i,e),r&&o(i,i,r),n&&l(i,i,n),this.setMatrix(t,a(this.computedMatrix,i))};var g=[0,0,0];d.pan=function(t,e,r,n){g[0]=-(e||0),g[1]=-(r||0),g[2]=-(n||0),this.recalcMatrix(t);var i=this.computedInverse;u(i,i,g),this.setMatrix(t,a(i,i))},d.translate=function(t,e,r,n){g[0]=e||0,g[1]=r||0,g[2]=n||0,this.recalcMatrix(t);var i=this.computedMatrix;u(i,i,g),this.setMatrix(t,i)},d.setMatrix=function(t,e){if(!(t<this.lastT())){this._time.push(t);for(var r=0;r<16;++r)this._components.push(e[r])}},d.setDistance=function(t,e){this.computedRadius[0]=e},d.setDistanceLimits=function(t,e){var r=this._limits;r[0]=t,r[1]=e},d.getDistanceLimits=function(t){var e=this._limits;return t?(t[0]=e[0],t[1]=e[1],t):e}},{\"binary-search-bounds\":79,\"gl-mat4/invert\":254,\"gl-mat4/lookAt\":255,\"gl-mat4/rotateX\":259,\"gl-mat4/rotateY\":260,\"gl-mat4/rotateZ\":261,\"gl-mat4/scale\":262,\"gl-mat4/translate\":263,\"gl-vec3/normalize\":339,\"mat4-interpolate\":413}],417:[function(t,e,r){\"use strict\";e.exports=function(t){var e=t.length;if(e<3){for(var r=new Array(e),i=0;i<e;++i)r[i]=i;return 2===e&&t[0][0]===t[1][0]&&t[0][1]===t[1][1]?[0]:r}for(var a=new Array(e),i=0;i<e;++i)a[i]=i;a.sort(function(e,r){var n=t[e][0]-t[r][0];return n||t[e][1]-t[r][1]});for(var o=[a[0],a[1]],s=[a[0],a[1]],i=2;i<e;++i){for(var l=a[i],c=t[l],u=o.length;u>1&&n(t[o[u-2]],t[o[u-1]],c)<=0;)u-=1,o.pop();for(o.push(l),u=s.length;u>1&&n(t[s[u-2]],t[s[u-1]],c)>=0;)u-=1,s.pop();s.push(l)}for(var r=new Array(s.length+o.length-2),f=0,i=0,h=o.length;i<h;++i)r[f++]=o[i];for(var p=s.length-2;p>0;--p)r[f++]=s[p];return r};var n=t(\"robust-orientation\")[3]},{\"robust-orientation\":486}],418:[function(t,e,r){\"use strict\";e.exports=function(t,e){e||(e=t,t=window);var r=0,i=0,a=0,o={shift:!1,alt:!1,control:!1,meta:!1},s=!1;function l(t){var e=!1;return\"altKey\"in t&&(e=e||t.altKey!==o.alt,o.alt=!!t.altKey),\"shiftKey\"in t&&(e=e||t.shiftKey!==o.shift,o.shift=!!t.shiftKey),\"ctrlKey\"in t&&(e=e||t.ctrlKey!==o.control,o.control=!!t.ctrlKey),\"metaKey\"in t&&(e=e||t.metaKey!==o.meta,o.meta=!!t.metaKey),e}function c(t,s){var c=n.x(s),u=n.y(s);\"buttons\"in s&&(t=0|s.buttons),(t!==r||c!==i||u!==a||l(s))&&(r=0|t,i=c||0,a=u||0,e&&e(r,i,a,o))}function u(t){c(0,t)}function f(){(r||i||a||o.shift||o.alt||o.meta||o.control)&&(i=a=0,r=0,o.shift=o.alt=o.control=o.meta=!1,e&&e(0,0,0,o))}function h(t){l(t)&&e&&e(r,i,a,o)}function p(t){0===n.buttons(t)?c(0,t):c(r,t)}function d(t){c(r|n.buttons(t),t)}function g(t){c(r&~n.buttons(t),t)}function v(){s||(s=!0,t.addEventListener(\"mousemove\",p),t.addEventListener(\"mousedown\",d),t.addEventListener(\"mouseup\",g),t.addEventListener(\"mouseleave\",u),t.addEventListener(\"mouseenter\",u),t.addEventListener(\"mouseout\",u),t.addEventListener(\"mouseover\",u),t.addEventListener(\"blur\",f),t.addEventListener(\"keyup\",h),t.addEventListener(\"keydown\",h),t.addEventListener(\"keypress\",h),t!==window&&(window.addEventListener(\"blur\",f),window.addEventListener(\"keyup\",h),window.addEventListener(\"keydown\",h),window.addEventListener(\"keypress\",h)))}v();var m={element:t};return Object.defineProperties(m,{enabled:{get:function(){return s},set:function(e){e?v():s&&(s=!1,t.removeEventListener(\"mousemove\",p),t.removeEventListener(\"mousedown\",d),t.removeEventListener(\"mouseup\",g),t.removeEventListener(\"mouseleave\",u),t.removeEventListener(\"mouseenter\",u),t.removeEventListener(\"mouseout\",u),t.removeEventListener(\"mouseover\",u),t.removeEventListener(\"blur\",f),t.removeEventListener(\"keyup\",h),t.removeEventListener(\"keydown\",h),t.removeEventListener(\"keypress\",h),t!==window&&(window.removeEventListener(\"blur\",f),window.removeEventListener(\"keyup\",h),window.removeEventListener(\"keydown\",h),window.removeEventListener(\"keypress\",h)))},enumerable:!0},buttons:{get:function(){return r},enumerable:!0},x:{get:function(){return i},enumerable:!0},y:{get:function(){return a},enumerable:!0},mods:{get:function(){return o},enumerable:!0}}),m};var n=t(\"mouse-event\")},{\"mouse-event\":420}],419:[function(t,e,r){var n={left:0,top:0};e.exports=function(t,e,r){e=e||t.currentTarget||t.srcElement,Array.isArray(r)||(r=[0,0]);var i=t.clientX||0,a=t.clientY||0,o=(s=e,s===window||s===document||s===document.body?n:s.getBoundingClientRect());var s;return r[0]=i-o.left,r[1]=a-o.top,r}},{}],420:[function(t,e,r){\"use strict\";function n(t){return t.target||t.srcElement||window}r.buttons=function(t){if(\"object\"==typeof t){if(\"buttons\"in t)return t.buttons;if(\"which\"in t){if(2===(e=t.which))return 4;if(3===e)return 2;if(e>0)return 1<<e-1}else if(\"button\"in t){var e;if(1===(e=t.button))return 4;if(2===e)return 2;if(e>=0)return 1<<e}}return 0},r.element=n,r.x=function(t){if(\"object\"==typeof t){if(\"offsetX\"in t)return t.offsetX;var e=n(t).getBoundingClientRect();return t.clientX-e.left}return 0},r.y=function(t){if(\"object\"==typeof t){if(\"offsetY\"in t)return t.offsetY;var e=n(t).getBoundingClientRect();return t.clientY-e.top}return 0}},{}],421:[function(t,e,r){\"use strict\";var n=t(\"to-px\");e.exports=function(t,e,r){\"function\"==typeof t&&(r=!!e,e=t,t=window);var i=n(\"ex\",t),a=function(t){r&&t.preventDefault();var n=t.deltaX||0,a=t.deltaY||0,o=t.deltaZ||0,s=t.deltaMode,l=1;switch(s){case 1:l=i;break;case 2:l=window.innerHeight}if(a*=l,o*=l,(n*=l)||a||o)return e(n,a,o,t)};return t.addEventListener(\"wheel\",a),a}},{\"to-px\":516}],422:[function(t,e,r){\"use strict\";var n=t(\"typedarray-pool\");function i(t){return\"a\"+t}function a(t){return\"d\"+t}function o(t,e){return\"c\"+t+\"_\"+e}function s(t){return\"s\"+t}function l(t,e){return\"t\"+t+\"_\"+e}function c(t){return\"o\"+t}function u(t){return\"x\"+t}function f(t){return\"p\"+t}function h(t,e){return\"d\"+t+\"_\"+e}function p(t){return\"i\"+t}function d(t,e){return\"u\"+t+\"_\"+e}function g(t){return\"b\"+t}function v(t){return\"y\"+t}function m(t){return\"e\"+t}function y(t){return\"v\"+t}e.exports=function(t){function e(t){throw new Error(\"ndarray-extract-contour: \"+t)}\"object\"!=typeof t&&e(\"Must specify arguments\");var r=t.order;Array.isArray(r)||e(\"Must specify order\");var T=t.arrayArguments||1;T<1&&e(\"Must have at least one array argument\");var S=t.scalarArguments||0;S<0&&e(\"Scalar arg count must be > 0\");\"function\"!=typeof t.vertex&&e(\"Must specify vertex creation function\");\"function\"!=typeof t.cell&&e(\"Must specify cell creation function\");\"function\"!=typeof t.phase&&e(\"Must specify phase function\");for(var E=t.getters||[],C=new Array(T),L=0;L<T;++L)E.indexOf(L)>=0?C[L]=!0:C[L]=!1;return function(t,e,r,T,S,E){var C=E.length,L=S.length;if(L<2)throw new Error(\"ndarray-extract-contour: Dimension must be at least 2\");for(var z=\"extractContour\"+S.join(\"_\"),O=[],I=[],P=[],D=0;D<C;++D)P.push(i(D));for(var D=0;D<T;++D)P.push(u(D));for(var D=0;D<L;++D)I.push(s(D)+\"=\"+i(0)+\".shape[\"+D+\"]|0\");for(var D=0;D<C;++D){I.push(a(D)+\"=\"+i(D)+\".data\",c(D)+\"=\"+i(D)+\".offset|0\");for(var R=0;R<L;++R)I.push(l(D,R)+\"=\"+i(D)+\".stride[\"+R+\"]|0\")}for(var D=0;D<C;++D){I.push(f(D)+\"=\"+c(D)),I.push(o(D,0));for(var R=1;R<1<<L;++R){for(var B=[],F=0;F<L;++F)R&1<<F&&B.push(\"-\"+l(D,F));I.push(h(D,R)+\"=(\"+B.join(\"\")+\")|0\"),I.push(o(D,R)+\"=0\")}}for(var D=0;D<C;++D)for(var R=0;R<L;++R){var N=[l(D,S[R])];R>0&&N.push(l(D,S[R-1])+\"*\"+s(S[R-1])),I.push(d(D,S[R])+\"=(\"+N.join(\"-\")+\")|0\")}for(var D=0;D<L;++D)I.push(p(D)+\"=0\");I.push(_+\"=0\");for(var j=[\"2\"],D=L-2;D>=0;--D)j.push(s(S[D]));I.push(w+\"=(\"+j.join(\"*\")+\")|0\",b+\"=mallocUint32(\"+w+\")\",x+\"=mallocUint32(\"+w+\")\",k+\"=0\"),I.push(g(0)+\"=0\");for(var R=1;R<1<<L;++R){for(var V=[],U=[],F=0;F<L;++F)R&1<<F&&(0===U.length?V.push(\"1\"):V.unshift(U.join(\"*\"))),U.push(s(S[F]));var q=\"\";V[0].indexOf(s(S[L-2]))<0&&(q=\"-\");var H=A(L,R,S);I.push(m(H)+\"=(-\"+V.join(\"-\")+\")|0\",v(H)+\"=(\"+q+V.join(\"-\")+\")|0\",g(H)+\"=0\")}function G(t,e){O.push(\"for(\",p(S[t]),\"=\",e,\";\",p(S[t]),\"<\",s(S[t]),\";\",\"++\",p(S[t]),\"){\")}function W(t){for(var e=0;e<C;++e)O.push(f(e),\"+=\",d(e,S[t]),\";\");O.push(\"}\")}function Y(){for(var t=1;t<1<<L;++t)O.push(M,\"=\",m(t),\";\",m(t),\"=\",v(t),\";\",v(t),\"=\",M,\";\")}I.push(y(0)+\"=0\",M+\"=0\"),function t(e,r){if(e<0)return void function(t){for(var e=0;e<C;++e)E[e]?O.push(o(e,0),\"=\",a(e),\".get(\",f(e),\");\"):O.push(o(e,0),\"=\",a(e),\"[\",f(e),\"];\");for(var r=[],e=0;e<C;++e)r.push(o(e,0));for(var e=0;e<T;++e)r.push(u(e));O.push(g(0),\"=\",b,\"[\",k,\"]=phase(\",r.join(),\");\");for(var n=1;n<1<<L;++n)O.push(g(n),\"=\",b,\"[\",k,\"+\",m(n),\"];\");for(var i=[],n=1;n<1<<L;++n)i.push(\"(\"+g(0)+\"!==\"+g(n)+\")\");O.push(\"if(\",i.join(\"||\"),\"){\");for(var s=[],e=0;e<L;++e)s.push(p(e));for(var e=0;e<C;++e){s.push(o(e,0));for(var n=1;n<1<<L;++n)E[e]?O.push(o(e,n),\"=\",a(e),\".get(\",f(e),\"+\",h(e,n),\");\"):O.push(o(e,n),\"=\",a(e),\"[\",f(e),\"+\",h(e,n),\"];\"),s.push(o(e,n))}for(var e=0;e<1<<L;++e)s.push(g(e));for(var e=0;e<T;++e)s.push(u(e));O.push(\"vertex(\",s.join(),\");\",y(0),\"=\",x,\"[\",k,\"]=\",_,\"++;\");for(var l=(1<<L)-1,c=g(l),n=0;n<L;++n)if(0==(t&~(1<<n))){for(var d=l^1<<n,v=g(d),w=[],M=d;M>0;M=M-1&d)w.push(x+\"[\"+k+\"+\"+m(M)+\"]\");w.push(y(0));for(var M=0;M<C;++M)1&n?w.push(o(M,l),o(M,d)):w.push(o(M,d),o(M,l));1&n?w.push(c,v):w.push(v,c);for(var M=0;M<T;++M)w.push(u(M));O.push(\"if(\",c,\"!==\",v,\"){\",\"face(\",w.join(),\")}\")}O.push(\"}\",k,\"+=1;\")}(r);!function(t){for(var e=t-1;e>=0;--e)G(e,0);for(var r=[],e=0;e<C;++e)E[e]?r.push(a(e)+\".get(\"+f(e)+\")\"):r.push(a(e)+\"[\"+f(e)+\"]\");for(var e=0;e<T;++e)r.push(u(e));O.push(b,\"[\",k,\"++]=phase(\",r.join(),\");\");for(var e=0;e<t;++e)W(e);for(var n=0;n<C;++n)O.push(f(n),\"+=\",d(n,S[t]),\";\")}(e);O.push(\"if(\",s(S[e]),\">0){\",p(S[e]),\"=1;\");t(e-1,r|1<<S[e]);for(var n=0;n<C;++n)O.push(f(n),\"+=\",d(n,S[e]),\";\");e===L-1&&(O.push(k,\"=0;\"),Y());G(e,2);t(e-1,r);e===L-1&&(O.push(\"if(\",p(S[L-1]),\"&1){\",k,\"=0;}\"),Y());W(e);O.push(\"}\")}(L-1,0),O.push(\"freeUint32(\",x,\");freeUint32(\",b,\");\");var X=[\"'use strict';\",\"function \",z,\"(\",P.join(),\"){\",\"var \",I.join(),\";\",O.join(\"\"),\"}\",\"return \",z].join(\"\");return new Function(\"vertex\",\"face\",\"phase\",\"mallocUint32\",\"freeUint32\",X)(t,e,r,n.mallocUint32,n.freeUint32)}(t.vertex,t.cell,t.phase,S,r,C)};var x=\"V\",b=\"P\",_=\"N\",w=\"Q\",k=\"X\",M=\"T\";function A(t,e,r){for(var n=0,i=0;i<t;++i)e&1<<i&&(n|=1<<r[i]);return n}},{\"typedarray-pool\":522}],423:[function(t,e,r){\"use strict\";var n=t(\"cwise/lib/wrapper\")({args:[\"index\",\"array\",\"scalar\"],pre:{body:\"{}\",args:[],thisVars:[],localVars:[]},body:{body:\"{_inline_1_arg1_=_inline_1_arg2_.apply(void 0,_inline_1_arg0_)}\",args:[{name:\"_inline_1_arg0_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_1_arg1_\",lvalue:!0,rvalue:!1,count:1},{name:\"_inline_1_arg2_\",lvalue:!1,rvalue:!0,count:1}],thisVars:[],localVars:[]},post:{body:\"{}\",args:[],thisVars:[],localVars:[]},debug:!1,funcName:\"cwise\",blockSize:64});e.exports=function(t,e){return n(t,e),t}},{\"cwise/lib/wrapper\":137}],424:[function(t,e,r){\"use strict\";e.exports=function(t,e,r){if(Array.isArray(r)){if(r.length!==e.dimension)throw new Error(\"ndarray-gradient: invalid boundary conditions\")}else r=n(e.dimension,\"string\"==typeof r?r:\"clamp\");if(t.dimension!==e.dimension+1)throw new Error(\"ndarray-gradient: output dimension must be +1 input dimension\");if(t.shape[e.dimension]!==e.dimension)throw new Error(\"ndarray-gradient: output shape must match input shape\");for(var i=0;i<e.dimension;++i)if(t.shape[i]!==e.shape[i])throw new Error(\"ndarray-gradient: shape mismatch\");if(0===e.size)return t;if(e.dimension<=0)return t.set(0),t;return function(t){var e=t.join();if(m=o[e])return m;var r=t.length,n=[\"function gradient(dst,src){var s=src.shape.slice();\"];function i(e){for(var i=r-e.length,a=[],o=[],s=[],l=0;l<r;++l)e.indexOf(l+1)>=0?s.push(\"0\"):e.indexOf(-(l+1))>=0?s.push(\"s[\"+l+\"]-1\"):(s.push(\"-1\"),a.push(\"1\"),o.push(\"s[\"+l+\"]-2\"));var c=\".lo(\"+a.join()+\").hi(\"+o.join()+\")\";if(0===a.length&&(c=\"\"),i>0){n.push(\"if(1\");for(var l=0;l<r;++l)e.indexOf(l+1)>=0||e.indexOf(-(l+1))>=0||n.push(\"&&s[\",l,\"]>2\");n.push(\"){grad\",i,\"(src.pick(\",s.join(),\")\",c);for(var l=0;l<r;++l)e.indexOf(l+1)>=0||e.indexOf(-(l+1))>=0||n.push(\",dst.pick(\",s.join(),\",\",l,\")\",c);n.push(\");\")}for(var l=0;l<e.length;++l){var u=Math.abs(e[l])-1,f=\"dst.pick(\"+s.join()+\",\"+u+\")\"+c;switch(t[u]){case\"clamp\":var h=s.slice(),p=s.slice();e[l]<0?h[u]=\"s[\"+u+\"]-2\":p[u]=\"1\",0===i?n.push(\"if(s[\",u,\"]>1){dst.set(\",s.join(),\",\",u,\",0.5*(src.get(\",h.join(),\")-src.get(\",p.join(),\")))}else{dst.set(\",s.join(),\",\",u,\",0)};\"):n.push(\"if(s[\",u,\"]>1){diff(\",f,\",src.pick(\",h.join(),\")\",c,\",src.pick(\",p.join(),\")\",c,\");}else{zero(\",f,\");};\");break;case\"mirror\":0===i?n.push(\"dst.set(\",s.join(),\",\",u,\",0);\"):n.push(\"zero(\",f,\");\");break;case\"wrap\":var d=s.slice(),g=s.slice();e[l]<0?(d[u]=\"s[\"+u+\"]-2\",g[u]=\"0\"):(d[u]=\"s[\"+u+\"]-1\",g[u]=\"1\"),0===i?n.push(\"if(s[\",u,\"]>2){dst.set(\",s.join(),\",\",u,\",0.5*(src.get(\",d.join(),\")-src.get(\",g.join(),\")))}else{dst.set(\",s.join(),\",\",u,\",0)};\"):n.push(\"if(s[\",u,\"]>2){diff(\",f,\",src.pick(\",d.join(),\")\",c,\",src.pick(\",g.join(),\")\",c,\");}else{zero(\",f,\");};\");break;default:throw new Error(\"ndarray-gradient: Invalid boundary condition\")}}i>0&&n.push(\"};\")}for(var s=0;s<1<<r;++s){for(var f=[],h=0;h<r;++h)s&1<<h&&f.push(h+1);for(var p=0;p<1<<f.length;++p){for(var d=f.slice(),h=0;h<f.length;++h)p&1<<h&&(d[h]=-d[h]);i(d)}}n.push(\"return dst;};return gradient\");for(var g=[\"diff\",\"zero\"],v=[l,c],s=1;s<=r;++s)g.push(\"grad\"+s),v.push(u(s));g.push(n.join(\"\"));var m=Function.apply(void 0,g).apply(void 0,v);return a[e]=m,m}(r)(t,e)};var n=t(\"dup\"),i=t(\"cwise-compiler\"),a={},o={},s={body:\"\",args:[],thisVars:[],localVars:[]},l=i({args:[\"array\",\"array\",\"array\"],pre:s,post:s,body:{args:[{name:\"out\",lvalue:!0,rvalue:!1,count:1},{name:\"left\",lvalue:!1,rvalue:!0,count:1},{name:\"right\",lvalue:!1,rvalue:!0,count:1}],body:\"out=0.5*(left-right)\",thisVars:[],localVars:[]},funcName:\"cdiff\"}),c=i({args:[\"array\"],pre:s,post:s,body:{args:[{name:\"out\",lvalue:!0,rvalue:!1,count:1}],body:\"out=0\",thisVars:[],localVars:[]},funcName:\"zero\"});function u(t){if(t in a)return a[t];for(var e=[],r=0;r<t;++r)e.push(\"out\",r,\"s=0.5*(inp\",r,\"l-inp\",r,\"r);\");var o=[\"array\"],l=[\"junk\"];for(r=0;r<t;++r){o.push(\"array\"),l.push(\"out\"+r+\"s\");var c=n(t);c[r]=-1,o.push({array:0,offset:c.slice()}),c[r]=1,o.push({array:0,offset:c.slice()}),l.push(\"inp\"+r+\"l\",\"inp\"+r+\"r\")}return a[t]=i({args:o,pre:s,post:s,body:{body:e.join(\"\"),args:l.map(function(t){return{name:t,lvalue:0===t.indexOf(\"out\"),rvalue:0===t.indexOf(\"inp\"),count:\"junk\"!==t|0}}),thisVars:[],localVars:[]},funcName:\"fdTemplate\"+t})}},{\"cwise-compiler\":134,dup:155}],425:[function(t,e,r){\"use strict\";var n=t(\"ndarray-warp\"),i=t(\"gl-matrix-invert\");e.exports=function(t,e,r){var a=e.dimension,o=i([],r);return n(t,e,function(t,e){for(var r=0;r<a;++r){t[r]=o[(a+1)*a+r];for(var n=0;n<a;++n)t[r]+=o[(a+1)*n+r]*e[n]}var i=o[(a+1)*(a+1)-1];for(n=0;n<a;++n)i+=o[(a+1)*n+a]*e[n];var s=1/i;for(r=0;r<a;++r)t[r]*=s;return t}),t}},{\"gl-matrix-invert\":265,\"ndarray-warp\":432}],426:[function(t,e,r){\"use strict\";function n(t,e){var r=Math.floor(e),n=e-r,i=0<=r&&r<t.shape[0],a=0<=r+1&&r+1<t.shape[0];return(1-n)*(i?+t.get(r):0)+n*(a?+t.get(r+1):0)}function i(t,e,r){var n=Math.floor(e),i=e-n,a=0<=n&&n<t.shape[0],o=0<=n+1&&n+1<t.shape[0],s=Math.floor(r),l=r-s,c=0<=s&&s<t.shape[1],u=0<=s+1&&s+1<t.shape[1],f=a&&c?t.get(n,s):0,h=a&&u?t.get(n,s+1):0;return(1-l)*((1-i)*f+i*(o&&c?t.get(n+1,s):0))+l*((1-i)*h+i*(o&&u?t.get(n+1,s+1):0))}function a(t,e,r,n){var i=Math.floor(e),a=e-i,o=0<=i&&i<t.shape[0],s=0<=i+1&&i+1<t.shape[0],l=Math.floor(r),c=r-l,u=0<=l&&l<t.shape[1],f=0<=l+1&&l+1<t.shape[1],h=Math.floor(n),p=n-h,d=0<=h&&h<t.shape[2],g=0<=h+1&&h+1<t.shape[2],v=o&&u&&d?t.get(i,l,h):0,m=o&&f&&d?t.get(i,l+1,h):0,y=s&&u&&d?t.get(i+1,l,h):0,x=s&&f&&d?t.get(i+1,l+1,h):0,b=o&&u&&g?t.get(i,l,h+1):0,_=o&&f&&g?t.get(i,l+1,h+1):0;return(1-p)*((1-c)*((1-a)*v+a*y)+c*((1-a)*m+a*x))+p*((1-c)*((1-a)*b+a*(s&&u&&g?t.get(i+1,l,h+1):0))+c*((1-a)*_+a*(s&&f&&g?t.get(i+1,l+1,h+1):0)))}e.exports=function(t,e,r,o){switch(t.shape.length){case 0:return 0;case 1:return n(t,e);case 2:return i(t,e,r);case 3:return a(t,e,r,o);default:return function(t){var e,r,n=0|t.shape.length,i=new Array(n),a=new Array(n),o=new Array(n),s=new Array(n);for(e=0;e<n;++e)r=+arguments[e+1],i[e]=Math.floor(r),a[e]=r-i[e],o[e]=0<=i[e]&&i[e]<t.shape[e],s[e]=0<=i[e]+1&&i[e]+1<t.shape[e];var l,c,u,f=0;t:for(e=0;e<1<<n;++e){for(c=1,u=t.offset,l=0;l<n;++l)if(e&1<<l){if(!s[l])continue t;c*=a[l],u+=t.stride[l]*(i[l]+1)}else{if(!o[l])continue t;c*=1-a[l],u+=t.stride[l]*i[l]}f+=c*t.data[u]}return f}.apply(void 0,arguments)}},e.exports.d1=n,e.exports.d2=i,e.exports.d3=a},{}],427:[function(t,e,r){\"use strict\";var n=t(\"cwise-compiler\"),i={body:\"\",args:[],thisVars:[],localVars:[]};function a(t){if(!t)return i;for(var e=0;e<t.args.length;++e){var r=t.args[e];t.args[e]=0===e?{name:r,lvalue:!0,rvalue:!!t.rvalue,count:t.count||1}:{name:r,lvalue:!1,rvalue:!0,count:1}}return t.thisVars||(t.thisVars=[]),t.localVars||(t.localVars=[]),t}function o(t){for(var e=[],r=0;r<t.args.length;++r)e.push(\"a\"+r);return new Function(\"P\",[\"return function \",t.funcName,\"_ndarrayops(\",e.join(\",\"),\") {P(\",e.join(\",\"),\");return a0}\"].join(\"\"))(function(t){return n({args:t.args,pre:a(t.pre),body:a(t.body),post:a(t.proc),funcName:t.funcName})}(t))}var s={add:\"+\",sub:\"-\",mul:\"*\",div:\"/\",mod:\"%\",band:\"&\",bor:\"|\",bxor:\"^\",lshift:\"<<\",rshift:\">>\",rrshift:\">>>\"};!function(){for(var t in s){var e=s[t];r[t]=o({args:[\"array\",\"array\",\"array\"],body:{args:[\"a\",\"b\",\"c\"],body:\"a=b\"+e+\"c\"},funcName:t}),r[t+\"eq\"]=o({args:[\"array\",\"array\"],body:{args:[\"a\",\"b\"],body:\"a\"+e+\"=b\"},rvalue:!0,funcName:t+\"eq\"}),r[t+\"s\"]=o({args:[\"array\",\"array\",\"scalar\"],body:{args:[\"a\",\"b\",\"s\"],body:\"a=b\"+e+\"s\"},funcName:t+\"s\"}),r[t+\"seq\"]=o({args:[\"array\",\"scalar\"],body:{args:[\"a\",\"s\"],body:\"a\"+e+\"=s\"},rvalue:!0,funcName:t+\"seq\"})}}();var l={not:\"!\",bnot:\"~\",neg:\"-\",recip:\"1.0/\"};!function(){for(var t in l){var e=l[t];r[t]=o({args:[\"array\",\"array\"],body:{args:[\"a\",\"b\"],body:\"a=\"+e+\"b\"},funcName:t}),r[t+\"eq\"]=o({args:[\"array\"],body:{args:[\"a\"],body:\"a=\"+e+\"a\"},rvalue:!0,count:2,funcName:t+\"eq\"})}}();var c={and:\"&&\",or:\"||\",eq:\"===\",neq:\"!==\",lt:\"<\",gt:\">\",leq:\"<=\",geq:\">=\"};!function(){for(var t in c){var e=c[t];r[t]=o({args:[\"array\",\"array\",\"array\"],body:{args:[\"a\",\"b\",\"c\"],body:\"a=b\"+e+\"c\"},funcName:t}),r[t+\"s\"]=o({args:[\"array\",\"array\",\"scalar\"],body:{args:[\"a\",\"b\",\"s\"],body:\"a=b\"+e+\"s\"},funcName:t+\"s\"}),r[t+\"eq\"]=o({args:[\"array\",\"array\"],body:{args:[\"a\",\"b\"],body:\"a=a\"+e+\"b\"},rvalue:!0,count:2,funcName:t+\"eq\"}),r[t+\"seq\"]=o({args:[\"array\",\"scalar\"],body:{args:[\"a\",\"s\"],body:\"a=a\"+e+\"s\"},rvalue:!0,count:2,funcName:t+\"seq\"})}}();var u=[\"abs\",\"acos\",\"asin\",\"atan\",\"ceil\",\"cos\",\"exp\",\"floor\",\"log\",\"round\",\"sin\",\"sqrt\",\"tan\"];!function(){for(var t=0;t<u.length;++t){var e=u[t];r[e]=o({args:[\"array\",\"array\"],pre:{args:[],body:\"this_f=Math.\"+e,thisVars:[\"this_f\"]},body:{args:[\"a\",\"b\"],body:\"a=this_f(b)\",thisVars:[\"this_f\"]},funcName:e}),r[e+\"eq\"]=o({args:[\"array\"],pre:{args:[],body:\"this_f=Math.\"+e,thisVars:[\"this_f\"]},body:{args:[\"a\"],body:\"a=this_f(a)\",thisVars:[\"this_f\"]},rvalue:!0,count:2,funcName:e+\"eq\"})}}();var f=[\"max\",\"min\",\"atan2\",\"pow\"];!function(){for(var t=0;t<f.length;++t){var e=f[t];r[e]=o({args:[\"array\",\"array\",\"array\"],pre:{args:[],body:\"this_f=Math.\"+e,thisVars:[\"this_f\"]},body:{args:[\"a\",\"b\",\"c\"],body:\"a=this_f(b,c)\",thisVars:[\"this_f\"]},funcName:e}),r[e+\"s\"]=o({args:[\"array\",\"array\",\"scalar\"],pre:{args:[],body:\"this_f=Math.\"+e,thisVars:[\"this_f\"]},body:{args:[\"a\",\"b\",\"c\"],body:\"a=this_f(b,c)\",thisVars:[\"this_f\"]},funcName:e+\"s\"}),r[e+\"eq\"]=o({args:[\"array\",\"array\"],pre:{args:[],body:\"this_f=Math.\"+e,thisVars:[\"this_f\"]},body:{args:[\"a\",\"b\"],body:\"a=this_f(a,b)\",thisVars:[\"this_f\"]},rvalue:!0,count:2,funcName:e+\"eq\"}),r[e+\"seq\"]=o({args:[\"array\",\"scalar\"],pre:{args:[],body:\"this_f=Math.\"+e,thisVars:[\"this_f\"]},body:{args:[\"a\",\"b\"],body:\"a=this_f(a,b)\",thisVars:[\"this_f\"]},rvalue:!0,count:2,funcName:e+\"seq\"})}}();var h=[\"atan2\",\"pow\"];!function(){for(var t=0;t<h.length;++t){var e=h[t];r[e+\"op\"]=o({args:[\"array\",\"array\",\"array\"],pre:{args:[],body:\"this_f=Math.\"+e,thisVars:[\"this_f\"]},body:{args:[\"a\",\"b\",\"c\"],body:\"a=this_f(c,b)\",thisVars:[\"this_f\"]},funcName:e+\"op\"}),r[e+\"ops\"]=o({args:[\"array\",\"array\",\"scalar\"],pre:{args:[],body:\"this_f=Math.\"+e,thisVars:[\"this_f\"]},body:{args:[\"a\",\"b\",\"c\"],body:\"a=this_f(c,b)\",thisVars:[\"this_f\"]},funcName:e+\"ops\"}),r[e+\"opeq\"]=o({args:[\"array\",\"array\"],pre:{args:[],body:\"this_f=Math.\"+e,thisVars:[\"this_f\"]},body:{args:[\"a\",\"b\"],body:\"a=this_f(b,a)\",thisVars:[\"this_f\"]},rvalue:!0,count:2,funcName:e+\"opeq\"}),r[e+\"opseq\"]=o({args:[\"array\",\"scalar\"],pre:{args:[],body:\"this_f=Math.\"+e,thisVars:[\"this_f\"]},body:{args:[\"a\",\"b\"],body:\"a=this_f(b,a)\",thisVars:[\"this_f\"]},rvalue:!0,count:2,funcName:e+\"opseq\"})}}(),r.any=n({args:[\"array\"],pre:i,body:{args:[{name:\"a\",lvalue:!1,rvalue:!0,count:1}],body:\"if(a){return true}\",localVars:[],thisVars:[]},post:{args:[],localVars:[],thisVars:[],body:\"return false\"},funcName:\"any\"}),r.all=n({args:[\"array\"],pre:i,body:{args:[{name:\"x\",lvalue:!1,rvalue:!0,count:1}],body:\"if(!x){return false}\",localVars:[],thisVars:[]},post:{args:[],localVars:[],thisVars:[],body:\"return true\"},funcName:\"all\"}),r.sum=n({args:[\"array\"],pre:{args:[],localVars:[],thisVars:[\"this_s\"],body:\"this_s=0\"},body:{args:[{name:\"a\",lvalue:!1,rvalue:!0,count:1}],body:\"this_s+=a\",localVars:[],thisVars:[\"this_s\"]},post:{args:[],localVars:[],thisVars:[\"this_s\"],body:\"return this_s\"},funcName:\"sum\"}),r.prod=n({args:[\"array\"],pre:{args:[],localVars:[],thisVars:[\"this_s\"],body:\"this_s=1\"},body:{args:[{name:\"a\",lvalue:!1,rvalue:!0,count:1}],body:\"this_s*=a\",localVars:[],thisVars:[\"this_s\"]},post:{args:[],localVars:[],thisVars:[\"this_s\"],body:\"return this_s\"},funcName:\"prod\"}),r.norm2squared=n({args:[\"array\"],pre:{args:[],localVars:[],thisVars:[\"this_s\"],body:\"this_s=0\"},body:{args:[{name:\"a\",lvalue:!1,rvalue:!0,count:2}],body:\"this_s+=a*a\",localVars:[],thisVars:[\"this_s\"]},post:{args:[],localVars:[],thisVars:[\"this_s\"],body:\"return this_s\"},funcName:\"norm2squared\"}),r.norm2=n({args:[\"array\"],pre:{args:[],localVars:[],thisVars:[\"this_s\"],body:\"this_s=0\"},body:{args:[{name:\"a\",lvalue:!1,rvalue:!0,count:2}],body:\"this_s+=a*a\",localVars:[],thisVars:[\"this_s\"]},post:{args:[],localVars:[],thisVars:[\"this_s\"],body:\"return Math.sqrt(this_s)\"},funcName:\"norm2\"}),r.norminf=n({args:[\"array\"],pre:{args:[],localVars:[],thisVars:[\"this_s\"],body:\"this_s=0\"},body:{args:[{name:\"a\",lvalue:!1,rvalue:!0,count:4}],body:\"if(-a>this_s){this_s=-a}else if(a>this_s){this_s=a}\",localVars:[],thisVars:[\"this_s\"]},post:{args:[],localVars:[],thisVars:[\"this_s\"],body:\"return this_s\"},funcName:\"norminf\"}),r.norm1=n({args:[\"array\"],pre:{args:[],localVars:[],thisVars:[\"this_s\"],body:\"this_s=0\"},body:{args:[{name:\"a\",lvalue:!1,rvalue:!0,count:3}],body:\"this_s+=a<0?-a:a\",localVars:[],thisVars:[\"this_s\"]},post:{args:[],localVars:[],thisVars:[\"this_s\"],body:\"return this_s\"},funcName:\"norm1\"}),r.sup=n({args:[\"array\"],pre:{body:\"this_h=-Infinity\",args:[],thisVars:[\"this_h\"],localVars:[]},body:{body:\"if(_inline_1_arg0_>this_h)this_h=_inline_1_arg0_\",args:[{name:\"_inline_1_arg0_\",lvalue:!1,rvalue:!0,count:2}],thisVars:[\"this_h\"],localVars:[]},post:{body:\"return this_h\",args:[],thisVars:[\"this_h\"],localVars:[]}}),r.inf=n({args:[\"array\"],pre:{body:\"this_h=Infinity\",args:[],thisVars:[\"this_h\"],localVars:[]},body:{body:\"if(_inline_1_arg0_<this_h)this_h=_inline_1_arg0_\",args:[{name:\"_inline_1_arg0_\",lvalue:!1,rvalue:!0,count:2}],thisVars:[\"this_h\"],localVars:[]},post:{body:\"return this_h\",args:[],thisVars:[\"this_h\"],localVars:[]}}),r.argmin=n({args:[\"index\",\"array\",\"shape\"],pre:{body:\"{this_v=Infinity;this_i=_inline_0_arg2_.slice(0)}\",args:[{name:\"_inline_0_arg0_\",lvalue:!1,rvalue:!1,count:0},{name:\"_inline_0_arg1_\",lvalue:!1,rvalue:!1,count:0},{name:\"_inline_0_arg2_\",lvalue:!1,rvalue:!0,count:1}],thisVars:[\"this_i\",\"this_v\"],localVars:[]},body:{body:\"{if(_inline_1_arg1_<this_v){this_v=_inline_1_arg1_;for(var _inline_1_k=0;_inline_1_k<_inline_1_arg0_.length;++_inline_1_k){this_i[_inline_1_k]=_inline_1_arg0_[_inline_1_k]}}}\",args:[{name:\"_inline_1_arg0_\",lvalue:!1,rvalue:!0,count:2},{name:\"_inline_1_arg1_\",lvalue:!1,rvalue:!0,count:2}],thisVars:[\"this_i\",\"this_v\"],localVars:[\"_inline_1_k\"]},post:{body:\"{return this_i}\",args:[],thisVars:[\"this_i\"],localVars:[]}}),r.argmax=n({args:[\"index\",\"array\",\"shape\"],pre:{body:\"{this_v=-Infinity;this_i=_inline_0_arg2_.slice(0)}\",args:[{name:\"_inline_0_arg0_\",lvalue:!1,rvalue:!1,count:0},{name:\"_inline_0_arg1_\",lvalue:!1,rvalue:!1,count:0},{name:\"_inline_0_arg2_\",lvalue:!1,rvalue:!0,count:1}],thisVars:[\"this_i\",\"this_v\"],localVars:[]},body:{body:\"{if(_inline_1_arg1_>this_v){this_v=_inline_1_arg1_;for(var _inline_1_k=0;_inline_1_k<_inline_1_arg0_.length;++_inline_1_k){this_i[_inline_1_k]=_inline_1_arg0_[_inline_1_k]}}}\",args:[{name:\"_inline_1_arg0_\",lvalue:!1,rvalue:!0,count:2},{name:\"_inline_1_arg1_\",lvalue:!1,rvalue:!0,count:2}],thisVars:[\"this_i\",\"this_v\"],localVars:[\"_inline_1_k\"]},post:{body:\"{return this_i}\",args:[],thisVars:[\"this_i\"],localVars:[]}}),r.random=o({args:[\"array\"],pre:{args:[],body:\"this_f=Math.random\",thisVars:[\"this_f\"]},body:{args:[\"a\"],body:\"a=this_f()\",thisVars:[\"this_f\"]},funcName:\"random\"}),r.assign=o({args:[\"array\",\"array\"],body:{args:[\"a\",\"b\"],body:\"a=b\"},funcName:\"assign\"}),r.assigns=o({args:[\"array\",\"scalar\"],body:{args:[\"a\",\"b\"],body:\"a=b\"},funcName:\"assigns\"}),r.equals=n({args:[\"array\",\"array\"],pre:i,body:{args:[{name:\"x\",lvalue:!1,rvalue:!0,count:1},{name:\"y\",lvalue:!1,rvalue:!0,count:1}],body:\"if(x!==y){return false}\",localVars:[],thisVars:[]},post:{args:[],localVars:[],thisVars:[],body:\"return true\"},funcName:\"equals\"})},{\"cwise-compiler\":134}],428:[function(t,e,r){\"use strict\";var n=t(\"ndarray\"),i=t(\"./doConvert.js\");e.exports=function(t,e){for(var r=[],a=t,o=1;Array.isArray(a);)r.push(a.length),o*=a.length,a=a[0];return 0===r.length?n():(e||(e=n(new Float64Array(o),r)),i(e,t),e)}},{\"./doConvert.js\":429,ndarray:433}],429:[function(t,e,r){e.exports=t(\"cwise-compiler\")({args:[\"array\",\"scalar\",\"index\"],pre:{body:\"{}\",args:[],thisVars:[],localVars:[]},body:{body:\"{\\nvar _inline_1_v=_inline_1_arg1_,_inline_1_i\\nfor(_inline_1_i=0;_inline_1_i<_inline_1_arg2_.length-1;++_inline_1_i) {\\n_inline_1_v=_inline_1_v[_inline_1_arg2_[_inline_1_i]]\\n}\\n_inline_1_arg0_=_inline_1_v[_inline_1_arg2_[_inline_1_arg2_.length-1]]\\n}\",args:[{name:\"_inline_1_arg0_\",lvalue:!0,rvalue:!1,count:1},{name:\"_inline_1_arg1_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_1_arg2_\",lvalue:!1,rvalue:!0,count:4}],thisVars:[],localVars:[\"_inline_1_i\",\"_inline_1_v\"]},post:{body:\"{}\",args:[],thisVars:[],localVars:[]},funcName:\"convert\",blockSize:64})},{\"cwise-compiler\":134}],430:[function(t,e,r){\"use strict\";var n=t(\"typedarray-pool\"),i=32;function a(t){switch(t){case\"uint8\":return[n.mallocUint8,n.freeUint8];case\"uint16\":return[n.mallocUint16,n.freeUint16];case\"uint32\":return[n.mallocUint32,n.freeUint32];case\"int8\":return[n.mallocInt8,n.freeInt8];case\"int16\":return[n.mallocInt16,n.freeInt16];case\"int32\":return[n.mallocInt32,n.freeInt32];case\"float32\":return[n.mallocFloat,n.freeFloat];case\"float64\":return[n.mallocDouble,n.freeDouble];default:return null}}function o(t){for(var e=[],r=0;r<t;++r)e.push(\"s\"+r);for(r=0;r<t;++r)e.push(\"n\"+r);for(r=1;r<t;++r)e.push(\"d\"+r);for(r=1;r<t;++r)e.push(\"e\"+r);for(r=1;r<t;++r)e.push(\"f\"+r);return e}e.exports=function(t,e){var r=[\"'use strict'\"],n=[\"ndarraySortWrapper\",t.join(\"d\"),e].join(\"\");r.push([\"function \",n,\"(\",[\"array\"].join(\",\"),\"){\"].join(\"\"));for(var s=[\"data=array.data,offset=array.offset|0,shape=array.shape,stride=array.stride\"],l=0;l<t.length;++l)s.push([\"s\",l,\"=stride[\",l,\"]|0,n\",l,\"=shape[\",l,\"]|0\"].join(\"\"));var c=new Array(t.length),u=[];for(l=0;l<t.length;++l)0!==(p=t[l])&&(0===u.length?c[p]=\"1\":c[p]=u.join(\"*\"),u.push(\"n\"+p));var f=-1,h=-1;for(l=0;l<t.length;++l){var p,d=t[l];0!==d&&(f>0?s.push([\"d\",d,\"=s\",d,\"-d\",f,\"*n\",f].join(\"\")):s.push([\"d\",d,\"=s\",d].join(\"\")),f=d),0!=(p=t.length-1-l)&&(h>0?s.push([\"e\",p,\"=s\",p,\"-e\",h,\"*n\",h,\",f\",p,\"=\",c[p],\"-f\",h,\"*n\",h].join(\"\")):s.push([\"e\",p,\"=s\",p,\",f\",p,\"=\",c[p]].join(\"\")),h=p)}r.push(\"var \"+s.join(\",\"));var g=[\"0\",\"n0-1\",\"data\",\"offset\"].concat(o(t.length));r.push([\"if(n0<=\",i,\"){\",\"insertionSort(\",g.join(\",\"),\")}else{\",\"quickSort(\",g.join(\",\"),\")}\"].join(\"\")),r.push(\"}return \"+n);var v=new Function(\"insertionSort\",\"quickSort\",r.join(\"\\n\")),m=function(t,e){var r=[\"'use strict'\"],n=[\"ndarrayInsertionSort\",t.join(\"d\"),e].join(\"\"),i=[\"left\",\"right\",\"data\",\"offset\"].concat(o(t.length)),s=a(e),l=[\"i,j,cptr,ptr=left*s0+offset\"];if(t.length>1){for(var c=[],u=1;u<t.length;++u)l.push(\"i\"+u),c.push(\"n\"+u);s?l.push(\"scratch=malloc(\"+c.join(\"*\")+\")\"):l.push(\"scratch=new Array(\"+c.join(\"*\")+\")\"),l.push(\"dptr\",\"sptr\",\"a\",\"b\")}else l.push(\"scratch\");function f(t){return\"generic\"===e?[\"data.get(\",t,\")\"].join(\"\"):[\"data[\",t,\"]\"].join(\"\")}function h(t,r){return\"generic\"===e?[\"data.set(\",t,\",\",r,\")\"].join(\"\"):[\"data[\",t,\"]=\",r].join(\"\")}if(r.push([\"function \",n,\"(\",i.join(\",\"),\"){var \",l.join(\",\")].join(\"\"),\"for(i=left+1;i<=right;++i){\",\"j=i;ptr+=s0\",\"cptr=ptr\"),t.length>1){for(r.push(\"dptr=0;sptr=ptr\"),u=t.length-1;u>=0;--u)0!==(p=t[u])&&r.push([\"for(i\",p,\"=0;i\",p,\"<n\",p,\";++i\",p,\"){\"].join(\"\"));for(r.push(\"scratch[dptr++]=\",f(\"sptr\")),u=0;u<t.length;++u)0!==(p=t[u])&&r.push(\"sptr+=d\"+p,\"}\");for(r.push(\"__g:while(j--\\x3eleft){\",\"dptr=0\",\"sptr=cptr-s0\"),u=1;u<t.length;++u)1===u&&r.push(\"__l:\"),r.push([\"for(i\",u,\"=0;i\",u,\"<n\",u,\";++i\",u,\"){\"].join(\"\"));for(r.push([\"a=\",f(\"sptr\"),\"\\nb=scratch[dptr]\\nif(a<b){break __g}\\nif(a>b){break __l}\"].join(\"\")),u=t.length-1;u>=1;--u)r.push(\"sptr+=e\"+u,\"dptr+=f\"+u,\"}\");for(r.push(\"dptr=cptr;sptr=cptr-s0\"),u=t.length-1;u>=0;--u)0!==(p=t[u])&&r.push([\"for(i\",p,\"=0;i\",p,\"<n\",p,\";++i\",p,\"){\"].join(\"\"));for(r.push(h(\"dptr\",f(\"sptr\"))),u=0;u<t.length;++u)0!==(p=t[u])&&r.push([\"dptr+=d\",p,\";sptr+=d\",p].join(\"\"),\"}\");for(r.push(\"cptr-=s0\\n}\"),r.push(\"dptr=cptr;sptr=0\"),u=t.length-1;u>=0;--u)0!==(p=t[u])&&r.push([\"for(i\",p,\"=0;i\",p,\"<n\",p,\";++i\",p,\"){\"].join(\"\"));for(r.push(h(\"dptr\",\"scratch[sptr++]\")),u=0;u<t.length;++u){var p;0!==(p=t[u])&&r.push(\"dptr+=d\"+p,\"}\")}}else r.push(\"scratch=\"+f(\"ptr\"),\"while((j--\\x3eleft)&&(\"+f(\"cptr-s0\")+\">scratch)){\",h(\"cptr\",f(\"cptr-s0\")),\"cptr-=s0\",\"}\",h(\"cptr\",\"scratch\"));return r.push(\"}\"),t.length>1&&s&&r.push(\"free(scratch)\"),r.push(\"} return \"+n),s?new Function(\"malloc\",\"free\",r.join(\"\\n\"))(s[0],s[1]):new Function(r.join(\"\\n\"))()}(t,e),y=function(t,e,r){var n=[\"'use strict'\"],s=[\"ndarrayQuickSort\",t.join(\"d\"),e].join(\"\"),l=[\"left\",\"right\",\"data\",\"offset\"].concat(o(t.length)),c=a(e),u=0;n.push([\"function \",s,\"(\",l.join(\",\"),\"){\"].join(\"\"));var f=[\"sixth=((right-left+1)/6)|0\",\"index1=left+sixth\",\"index5=right-sixth\",\"index3=(left+right)>>1\",\"index2=index3-sixth\",\"index4=index3+sixth\",\"el1=index1\",\"el2=index2\",\"el3=index3\",\"el4=index4\",\"el5=index5\",\"less=left+1\",\"great=right-1\",\"pivots_are_equal=true\",\"tmp\",\"tmp0\",\"x\",\"y\",\"z\",\"k\",\"ptr0\",\"ptr1\",\"ptr2\",\"comp_pivot1=0\",\"comp_pivot2=0\",\"comp=0\"];if(t.length>1){for(var h=[],p=1;p<t.length;++p)h.push(\"n\"+p),f.push(\"i\"+p);for(p=0;p<8;++p)f.push(\"b_ptr\"+p);f.push(\"ptr3\",\"ptr4\",\"ptr5\",\"ptr6\",\"ptr7\",\"pivot_ptr\",\"ptr_shift\",\"elementSize=\"+h.join(\"*\")),c?f.push(\"pivot1=malloc(elementSize)\",\"pivot2=malloc(elementSize)\"):f.push(\"pivot1=new Array(elementSize),pivot2=new Array(elementSize)\")}else f.push(\"pivot1\",\"pivot2\");function d(t){return[\"(offset+\",t,\"*s0)\"].join(\"\")}function g(t){return\"generic\"===e?[\"data.get(\",t,\")\"].join(\"\"):[\"data[\",t,\"]\"].join(\"\")}function v(t,r){return\"generic\"===e?[\"data.set(\",t,\",\",r,\")\"].join(\"\"):[\"data[\",t,\"]=\",r].join(\"\")}function m(e,r,i){if(1===e.length)n.push(\"ptr0=\"+d(e[0]));else for(var a=0;a<e.length;++a)n.push([\"b_ptr\",a,\"=s0*\",e[a]].join(\"\"));for(r&&n.push(\"pivot_ptr=0\"),n.push(\"ptr_shift=offset\"),a=t.length-1;a>=0;--a)0!==(o=t[a])&&n.push([\"for(i\",o,\"=0;i\",o,\"<n\",o,\";++i\",o,\"){\"].join(\"\"));if(e.length>1)for(a=0;a<e.length;++a)n.push([\"ptr\",a,\"=b_ptr\",a,\"+ptr_shift\"].join(\"\"));for(n.push(i),r&&n.push(\"++pivot_ptr\"),a=0;a<t.length;++a){var o;0!==(o=t[a])&&(e.length>1?n.push(\"ptr_shift+=d\"+o):n.push(\"ptr0+=d\"+o),n.push(\"}\"))}}function y(e,r,i,a){if(1===r.length)n.push(\"ptr0=\"+d(r[0]));else{for(var o=0;o<r.length;++o)n.push([\"b_ptr\",o,\"=s0*\",r[o]].join(\"\"));n.push(\"ptr_shift=offset\")}for(i&&n.push(\"pivot_ptr=0\"),e&&n.push(e+\":\"),o=1;o<t.length;++o)n.push([\"for(i\",o,\"=0;i\",o,\"<n\",o,\";++i\",o,\"){\"].join(\"\"));if(r.length>1)for(o=0;o<r.length;++o)n.push([\"ptr\",o,\"=b_ptr\",o,\"+ptr_shift\"].join(\"\"));for(n.push(a),o=t.length-1;o>=1;--o)i&&n.push(\"pivot_ptr+=f\"+o),r.length>1?n.push(\"ptr_shift+=e\"+o):n.push(\"ptr0+=e\"+o),n.push(\"}\")}function x(){t.length>1&&c&&n.push(\"free(pivot1)\",\"free(pivot2)\")}function b(e,r){var i=\"el\"+e,a=\"el\"+r;if(t.length>1){var o=\"__l\"+ ++u;y(o,[i,a],!1,[\"comp=\",g(\"ptr0\"),\"-\",g(\"ptr1\"),\"\\n\",\"if(comp>0){tmp0=\",i,\";\",i,\"=\",a,\";\",a,\"=tmp0;break \",o,\"}\\n\",\"if(comp<0){break \",o,\"}\"].join(\"\"))}else n.push([\"if(\",g(d(i)),\">\",g(d(a)),\"){tmp0=\",i,\";\",i,\"=\",a,\";\",a,\"=tmp0}\"].join(\"\"))}function _(e,r){t.length>1?m([e,r],!1,v(\"ptr0\",g(\"ptr1\"))):n.push(v(d(e),g(d(r))))}function w(e,r,i){if(t.length>1){var a=\"__l\"+ ++u;y(a,[r],!0,[e,\"=\",g(\"ptr0\"),\"-pivot\",i,\"[pivot_ptr]\\n\",\"if(\",e,\"!==0){break \",a,\"}\"].join(\"\"))}else n.push([e,\"=\",g(d(r)),\"-pivot\",i].join(\"\"))}function k(e,r){t.length>1?m([e,r],!1,[\"tmp=\",g(\"ptr0\"),\"\\n\",v(\"ptr0\",g(\"ptr1\")),\"\\n\",v(\"ptr1\",\"tmp\")].join(\"\")):n.push([\"ptr0=\",d(e),\"\\n\",\"ptr1=\",d(r),\"\\n\",\"tmp=\",g(\"ptr0\"),\"\\n\",v(\"ptr0\",g(\"ptr1\")),\"\\n\",v(\"ptr1\",\"tmp\")].join(\"\"))}function M(e,r,i){t.length>1?(m([e,r,i],!1,[\"tmp=\",g(\"ptr0\"),\"\\n\",v(\"ptr0\",g(\"ptr1\")),\"\\n\",v(\"ptr1\",g(\"ptr2\")),\"\\n\",v(\"ptr2\",\"tmp\")].join(\"\")),n.push(\"++\"+r,\"--\"+i)):n.push([\"ptr0=\",d(e),\"\\n\",\"ptr1=\",d(r),\"\\n\",\"ptr2=\",d(i),\"\\n\",\"++\",r,\"\\n\",\"--\",i,\"\\n\",\"tmp=\",g(\"ptr0\"),\"\\n\",v(\"ptr0\",g(\"ptr1\")),\"\\n\",v(\"ptr1\",g(\"ptr2\")),\"\\n\",v(\"ptr2\",\"tmp\")].join(\"\"))}function A(t,e){k(t,e),n.push(\"--\"+e)}function T(e,r,i){t.length>1?m([e,r],!0,[v(\"ptr0\",g(\"ptr1\")),\"\\n\",v(\"ptr1\",[\"pivot\",i,\"[pivot_ptr]\"].join(\"\"))].join(\"\")):n.push(v(d(e),g(d(r))),v(d(r),\"pivot\"+i))}function S(e,r){n.push([\"if((\",r,\"-\",e,\")<=\",i,\"){\\n\",\"insertionSort(\",e,\",\",r,\",data,offset,\",o(t.length).join(\",\"),\")\\n\",\"}else{\\n\",s,\"(\",e,\",\",r,\",data,offset,\",o(t.length).join(\",\"),\")\\n\",\"}\"].join(\"\"))}function E(e,r,i){t.length>1?(n.push([\"__l\",++u,\":while(true){\"].join(\"\")),m([e],!0,[\"if(\",g(\"ptr0\"),\"!==pivot\",r,\"[pivot_ptr]){break __l\",u,\"}\"].join(\"\")),n.push(i,\"}\")):n.push([\"while(\",g(d(e)),\"===pivot\",r,\"){\",i,\"}\"].join(\"\"))}return n.push(\"var \"+f.join(\",\")),b(1,2),b(4,5),b(1,3),b(2,3),b(1,4),b(3,4),b(2,5),b(2,3),b(4,5),t.length>1?m([\"el1\",\"el2\",\"el3\",\"el4\",\"el5\",\"index1\",\"index3\",\"index5\"],!0,[\"pivot1[pivot_ptr]=\",g(\"ptr1\"),\"\\n\",\"pivot2[pivot_ptr]=\",g(\"ptr3\"),\"\\n\",\"pivots_are_equal=pivots_are_equal&&(pivot1[pivot_ptr]===pivot2[pivot_ptr])\\n\",\"x=\",g(\"ptr0\"),\"\\n\",\"y=\",g(\"ptr2\"),\"\\n\",\"z=\",g(\"ptr4\"),\"\\n\",v(\"ptr5\",\"x\"),\"\\n\",v(\"ptr6\",\"y\"),\"\\n\",v(\"ptr7\",\"z\")].join(\"\")):n.push([\"pivot1=\",g(d(\"el2\")),\"\\n\",\"pivot2=\",g(d(\"el4\")),\"\\n\",\"pivots_are_equal=pivot1===pivot2\\n\",\"x=\",g(d(\"el1\")),\"\\n\",\"y=\",g(d(\"el3\")),\"\\n\",\"z=\",g(d(\"el5\")),\"\\n\",v(d(\"index1\"),\"x\"),\"\\n\",v(d(\"index3\"),\"y\"),\"\\n\",v(d(\"index5\"),\"z\")].join(\"\")),_(\"index2\",\"left\"),_(\"index4\",\"right\"),n.push(\"if(pivots_are_equal){\"),n.push(\"for(k=less;k<=great;++k){\"),w(\"comp\",\"k\",1),n.push(\"if(comp===0){continue}\"),n.push(\"if(comp<0){\"),n.push(\"if(k!==less){\"),k(\"k\",\"less\"),n.push(\"}\"),n.push(\"++less\"),n.push(\"}else{\"),n.push(\"while(true){\"),w(\"comp\",\"great\",1),n.push(\"if(comp>0){\"),n.push(\"great--\"),n.push(\"}else if(comp<0){\"),M(\"k\",\"less\",\"great\"),n.push(\"break\"),n.push(\"}else{\"),A(\"k\",\"great\"),n.push(\"break\"),n.push(\"}\"),n.push(\"}\"),n.push(\"}\"),n.push(\"}\"),n.push(\"}else{\"),n.push(\"for(k=less;k<=great;++k){\"),w(\"comp_pivot1\",\"k\",1),n.push(\"if(comp_pivot1<0){\"),n.push(\"if(k!==less){\"),k(\"k\",\"less\"),n.push(\"}\"),n.push(\"++less\"),n.push(\"}else{\"),w(\"comp_pivot2\",\"k\",2),n.push(\"if(comp_pivot2>0){\"),n.push(\"while(true){\"),w(\"comp\",\"great\",2),n.push(\"if(comp>0){\"),n.push(\"if(--great<k){break}\"),n.push(\"continue\"),n.push(\"}else{\"),w(\"comp\",\"great\",1),n.push(\"if(comp<0){\"),M(\"k\",\"less\",\"great\"),n.push(\"}else{\"),A(\"k\",\"great\"),n.push(\"}\"),n.push(\"break\"),n.push(\"}\"),n.push(\"}\"),n.push(\"}\"),n.push(\"}\"),n.push(\"}\"),n.push(\"}\"),T(\"left\",\"(less-1)\",1),T(\"right\",\"(great+1)\",2),S(\"left\",\"(less-2)\"),S(\"(great+2)\",\"right\"),n.push(\"if(pivots_are_equal){\"),x(),n.push(\"return\"),n.push(\"}\"),n.push(\"if(less<index1&&great>index5){\"),E(\"less\",1,\"++less\"),E(\"great\",2,\"--great\"),n.push(\"for(k=less;k<=great;++k){\"),w(\"comp_pivot1\",\"k\",1),n.push(\"if(comp_pivot1===0){\"),n.push(\"if(k!==less){\"),k(\"k\",\"less\"),n.push(\"}\"),n.push(\"++less\"),n.push(\"}else{\"),w(\"comp_pivot2\",\"k\",2),n.push(\"if(comp_pivot2===0){\"),n.push(\"while(true){\"),w(\"comp\",\"great\",2),n.push(\"if(comp===0){\"),n.push(\"if(--great<k){break}\"),n.push(\"continue\"),n.push(\"}else{\"),w(\"comp\",\"great\",1),n.push(\"if(comp<0){\"),M(\"k\",\"less\",\"great\"),n.push(\"}else{\"),A(\"k\",\"great\"),n.push(\"}\"),n.push(\"break\"),n.push(\"}\"),n.push(\"}\"),n.push(\"}\"),n.push(\"}\"),n.push(\"}\"),n.push(\"}\"),x(),S(\"less\",\"great\"),n.push(\"}return \"+s),t.length>1&&c?new Function(\"insertionSort\",\"malloc\",\"free\",n.join(\"\\n\"))(r,c[0],c[1]):new Function(\"insertionSort\",n.join(\"\\n\"))(r)}(t,e,m);return v(m,y)}},{\"typedarray-pool\":522}],431:[function(t,e,r){\"use strict\";var n=t(\"./lib/compile_sort.js\"),i={};e.exports=function(t){var e=t.order,r=t.dtype,a=[e,r].join(\":\"),o=i[a];return o||(i[a]=o=n(e,r)),o(t),t}},{\"./lib/compile_sort.js\":430}],432:[function(t,e,r){\"use strict\";var n=t(\"ndarray-linear-interpolate\"),i=t(\"cwise/lib/wrapper\")({args:[\"index\",\"array\",\"scalar\",\"scalar\",\"scalar\"],pre:{body:\"{this_warped=new Array(_inline_3_arg4_)}\",args:[{name:\"_inline_3_arg0_\",lvalue:!1,rvalue:!1,count:0},{name:\"_inline_3_arg1_\",lvalue:!1,rvalue:!1,count:0},{name:\"_inline_3_arg2_\",lvalue:!1,rvalue:!1,count:0},{name:\"_inline_3_arg3_\",lvalue:!1,rvalue:!1,count:0},{name:\"_inline_3_arg4_\",lvalue:!1,rvalue:!0,count:1}],thisVars:[\"this_warped\"],localVars:[]},body:{body:\"{_inline_4_arg2_(this_warped,_inline_4_arg0_),_inline_4_arg1_=_inline_4_arg3_.apply(void 0,this_warped)}\",args:[{name:\"_inline_4_arg0_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_4_arg1_\",lvalue:!0,rvalue:!1,count:1},{name:\"_inline_4_arg2_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_4_arg3_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_4_arg4_\",lvalue:!1,rvalue:!1,count:0}],thisVars:[\"this_warped\"],localVars:[]},post:{body:\"{}\",args:[],thisVars:[],localVars:[]},debug:!1,funcName:\"warpND\",blockSize:64}),a=t(\"cwise/lib/wrapper\")({args:[\"index\",\"array\",\"scalar\",\"scalar\",\"scalar\"],pre:{body:\"{this_warped=[0]}\",args:[],thisVars:[\"this_warped\"],localVars:[]},body:{body:\"{_inline_7_arg2_(this_warped,_inline_7_arg0_),_inline_7_arg1_=_inline_7_arg3_(_inline_7_arg4_,this_warped[0])}\",args:[{name:\"_inline_7_arg0_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_7_arg1_\",lvalue:!0,rvalue:!1,count:1},{name:\"_inline_7_arg2_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_7_arg3_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_7_arg4_\",lvalue:!1,rvalue:!0,count:1}],thisVars:[\"this_warped\"],localVars:[]},post:{body:\"{}\",args:[],thisVars:[],localVars:[]},debug:!1,funcName:\"warp1D\",blockSize:64}),o=t(\"cwise/lib/wrapper\")({args:[\"index\",\"array\",\"scalar\",\"scalar\",\"scalar\"],pre:{body:\"{this_warped=[0,0]}\",args:[],thisVars:[\"this_warped\"],localVars:[]},body:{body:\"{_inline_10_arg2_(this_warped,_inline_10_arg0_),_inline_10_arg1_=_inline_10_arg3_(_inline_10_arg4_,this_warped[0],this_warped[1])}\",args:[{name:\"_inline_10_arg0_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_10_arg1_\",lvalue:!0,rvalue:!1,count:1},{name:\"_inline_10_arg2_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_10_arg3_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_10_arg4_\",lvalue:!1,rvalue:!0,count:1}],thisVars:[\"this_warped\"],localVars:[]},post:{body:\"{}\",args:[],thisVars:[],localVars:[]},debug:!1,funcName:\"warp2D\",blockSize:64}),s=t(\"cwise/lib/wrapper\")({args:[\"index\",\"array\",\"scalar\",\"scalar\",\"scalar\"],pre:{body:\"{this_warped=[0,0,0]}\",args:[],thisVars:[\"this_warped\"],localVars:[]},body:{body:\"{_inline_13_arg2_(this_warped,_inline_13_arg0_),_inline_13_arg1_=_inline_13_arg3_(_inline_13_arg4_,this_warped[0],this_warped[1],this_warped[2])}\",args:[{name:\"_inline_13_arg0_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_13_arg1_\",lvalue:!0,rvalue:!1,count:1},{name:\"_inline_13_arg2_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_13_arg3_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_13_arg4_\",lvalue:!1,rvalue:!0,count:1}],thisVars:[\"this_warped\"],localVars:[]},post:{body:\"{}\",args:[],thisVars:[],localVars:[]},debug:!1,funcName:\"warp3D\",blockSize:64});e.exports=function(t,e,r){switch(e.shape.length){case 1:a(t,r,n.d1,e);break;case 2:o(t,r,n.d2,e);break;case 3:s(t,r,n.d3,e);break;default:i(t,r,n.bind(void 0,e),e.shape.length)}return t}},{\"cwise/lib/wrapper\":137,\"ndarray-linear-interpolate\":426}],433:[function(t,e,r){var n=t(\"iota-array\"),i=t(\"is-buffer\"),a=\"undefined\"!=typeof Float64Array;function o(t,e){return t[0]-e[0]}function s(){var t,e=this.stride,r=new Array(e.length);for(t=0;t<r.length;++t)r[t]=[Math.abs(e[t]),t];r.sort(o);var n=new Array(r.length);for(t=0;t<n.length;++t)n[t]=r[t][1];return n}function l(t,e){var r=[\"View\",e,\"d\",t].join(\"\");e<0&&(r=\"View_Nil\"+t);var i=\"generic\"===t;if(-1===e){var a=\"function \"+r+\"(a){this.data=a;};var proto=\"+r+\".prototype;proto.dtype='\"+t+\"';proto.index=function(){return -1};proto.size=0;proto.dimension=-1;proto.shape=proto.stride=proto.order=[];proto.lo=proto.hi=proto.transpose=proto.step=function(){return new \"+r+\"(this.data);};proto.get=proto.set=function(){};proto.pick=function(){return null};return function construct_\"+r+\"(a){return new \"+r+\"(a);}\";return new Function(a)()}if(0===e){a=\"function \"+r+\"(a,d) {this.data = a;this.offset = d};var proto=\"+r+\".prototype;proto.dtype='\"+t+\"';proto.index=function(){return this.offset};proto.dimension=0;proto.size=1;proto.shape=proto.stride=proto.order=[];proto.lo=proto.hi=proto.transpose=proto.step=function \"+r+\"_copy() {return new \"+r+\"(this.data,this.offset)};proto.pick=function \"+r+\"_pick(){return TrivialArray(this.data);};proto.valueOf=proto.get=function \"+r+\"_get(){return \"+(i?\"this.data.get(this.offset)\":\"this.data[this.offset]\")+\"};proto.set=function \"+r+\"_set(v){return \"+(i?\"this.data.set(this.offset,v)\":\"this.data[this.offset]=v\")+\"};return function construct_\"+r+\"(a,b,c,d){return new \"+r+\"(a,d)}\";return new Function(\"TrivialArray\",a)(c[t][0])}a=[\"'use strict'\"];var o=n(e),l=o.map(function(t){return\"i\"+t}),u=\"this.offset+\"+o.map(function(t){return\"this.stride[\"+t+\"]*i\"+t}).join(\"+\"),f=o.map(function(t){return\"b\"+t}).join(\",\"),h=o.map(function(t){return\"c\"+t}).join(\",\");a.push(\"function \"+r+\"(a,\"+f+\",\"+h+\",d){this.data=a\",\"this.shape=[\"+f+\"]\",\"this.stride=[\"+h+\"]\",\"this.offset=d|0}\",\"var proto=\"+r+\".prototype\",\"proto.dtype='\"+t+\"'\",\"proto.dimension=\"+e),a.push(\"Object.defineProperty(proto,'size',{get:function \"+r+\"_size(){return \"+o.map(function(t){return\"this.shape[\"+t+\"]\"}).join(\"*\"),\"}})\"),1===e?a.push(\"proto.order=[0]\"):(a.push(\"Object.defineProperty(proto,'order',{get:\"),e<4?(a.push(\"function \"+r+\"_order(){\"),2===e?a.push(\"return (Math.abs(this.stride[0])>Math.abs(this.stride[1]))?[1,0]:[0,1]}})\"):3===e&&a.push(\"var s0=Math.abs(this.stride[0]),s1=Math.abs(this.stride[1]),s2=Math.abs(this.stride[2]);if(s0>s1){if(s1>s2){return [2,1,0];}else if(s0>s2){return [1,2,0];}else{return [1,0,2];}}else if(s0>s2){return [2,0,1];}else if(s2>s1){return [0,1,2];}else{return [0,2,1];}}})\")):a.push(\"ORDER})\")),a.push(\"proto.set=function \"+r+\"_set(\"+l.join(\",\")+\",v){\"),i?a.push(\"return this.data.set(\"+u+\",v)}\"):a.push(\"return this.data[\"+u+\"]=v}\"),a.push(\"proto.get=function \"+r+\"_get(\"+l.join(\",\")+\"){\"),i?a.push(\"return this.data.get(\"+u+\")}\"):a.push(\"return this.data[\"+u+\"]}\"),a.push(\"proto.index=function \"+r+\"_index(\",l.join(),\"){return \"+u+\"}\"),a.push(\"proto.hi=function \"+r+\"_hi(\"+l.join(\",\")+\"){return new \"+r+\"(this.data,\"+o.map(function(t){return[\"(typeof i\",t,\"!=='number'||i\",t,\"<0)?this.shape[\",t,\"]:i\",t,\"|0\"].join(\"\")}).join(\",\")+\",\"+o.map(function(t){return\"this.stride[\"+t+\"]\"}).join(\",\")+\",this.offset)}\");var p=o.map(function(t){return\"a\"+t+\"=this.shape[\"+t+\"]\"}),d=o.map(function(t){return\"c\"+t+\"=this.stride[\"+t+\"]\"});a.push(\"proto.lo=function \"+r+\"_lo(\"+l.join(\",\")+\"){var b=this.offset,d=0,\"+p.join(\",\")+\",\"+d.join(\",\"));for(var g=0;g<e;++g)a.push(\"if(typeof i\"+g+\"==='number'&&i\"+g+\">=0){d=i\"+g+\"|0;b+=c\"+g+\"*d;a\"+g+\"-=d}\");a.push(\"return new \"+r+\"(this.data,\"+o.map(function(t){return\"a\"+t}).join(\",\")+\",\"+o.map(function(t){return\"c\"+t}).join(\",\")+\",b)}\"),a.push(\"proto.step=function \"+r+\"_step(\"+l.join(\",\")+\"){var \"+o.map(function(t){return\"a\"+t+\"=this.shape[\"+t+\"]\"}).join(\",\")+\",\"+o.map(function(t){return\"b\"+t+\"=this.stride[\"+t+\"]\"}).join(\",\")+\",c=this.offset,d=0,ceil=Math.ceil\");for(g=0;g<e;++g)a.push(\"if(typeof i\"+g+\"==='number'){d=i\"+g+\"|0;if(d<0){c+=b\"+g+\"*(a\"+g+\"-1);a\"+g+\"=ceil(-a\"+g+\"/d)}else{a\"+g+\"=ceil(a\"+g+\"/d)}b\"+g+\"*=d}\");a.push(\"return new \"+r+\"(this.data,\"+o.map(function(t){return\"a\"+t}).join(\",\")+\",\"+o.map(function(t){return\"b\"+t}).join(\",\")+\",c)}\");var v=new Array(e),m=new Array(e);for(g=0;g<e;++g)v[g]=\"a[i\"+g+\"]\",m[g]=\"b[i\"+g+\"]\";a.push(\"proto.transpose=function \"+r+\"_transpose(\"+l+\"){\"+l.map(function(t,e){return t+\"=(\"+t+\"===undefined?\"+e+\":\"+t+\"|0)\"}).join(\";\"),\"var a=this.shape,b=this.stride;return new \"+r+\"(this.data,\"+v.join(\",\")+\",\"+m.join(\",\")+\",this.offset)}\"),a.push(\"proto.pick=function \"+r+\"_pick(\"+l+\"){var a=[],b=[],c=this.offset\");for(g=0;g<e;++g)a.push(\"if(typeof i\"+g+\"==='number'&&i\"+g+\">=0){c=(c+this.stride[\"+g+\"]*i\"+g+\")|0}else{a.push(this.shape[\"+g+\"]);b.push(this.stride[\"+g+\"])}\");return a.push(\"var ctor=CTOR_LIST[a.length+1];return ctor(this.data,a,b,c)}\"),a.push(\"return function construct_\"+r+\"(data,shape,stride,offset){return new \"+r+\"(data,\"+o.map(function(t){return\"shape[\"+t+\"]\"}).join(\",\")+\",\"+o.map(function(t){return\"stride[\"+t+\"]\"}).join(\",\")+\",offset)}\"),new Function(\"CTOR_LIST\",\"ORDER\",a.join(\"\\n\"))(c[t],s)}var c={float32:[],float64:[],int8:[],int16:[],int32:[],uint8:[],uint16:[],uint32:[],array:[],uint8_clamped:[],buffer:[],generic:[]};e.exports=function(t,e,r,n){if(void 0===t)return(0,c.array[0])([]);\"number\"==typeof t&&(t=[t]),void 0===e&&(e=[t.length]);var o=e.length;if(void 0===r){r=new Array(o);for(var s=o-1,u=1;s>=0;--s)r[s]=u,u*=e[s]}if(void 0===n)for(n=0,s=0;s<o;++s)r[s]<0&&(n-=(e[s]-1)*r[s]);for(var f=function(t){if(i(t))return\"buffer\";if(a)switch(Object.prototype.toString.call(t)){case\"[object Float64Array]\":return\"float64\";case\"[object Float32Array]\":return\"float32\";case\"[object Int8Array]\":return\"int8\";case\"[object Int16Array]\":return\"int16\";case\"[object Int32Array]\":return\"int32\";case\"[object Uint8Array]\":return\"uint8\";case\"[object Uint16Array]\":return\"uint16\";case\"[object Uint32Array]\":return\"uint32\";case\"[object Uint8ClampedArray]\":return\"uint8_clamped\"}return Array.isArray(t)?\"array\":\"generic\"}(t),h=c[f];h.length<=o+1;)h.push(l(f,h.length-1));return(0,h[o+1])(t,e,r,n)}},{\"iota-array\":399,\"is-buffer\":401}],434:[function(t,e,r){\"use strict\";var n=t(\"double-bits\"),i=Math.pow(2,-1074),a=-1>>>0;e.exports=function(t,e){if(isNaN(t)||isNaN(e))return NaN;if(t===e)return t;if(0===t)return e<0?-i:i;var r=n.hi(t),o=n.lo(t);e>t==t>0?o===a?(r+=1,o=0):o+=1:0===o?(o=a,r-=1):o-=1;return n.pack(o,r)}},{\"double-bits\":152}],435:[function(t,e,r){var n=Math.PI,i=c(120);function a(t,e,r,n){return[\"C\",t,e,r,n,r,n]}function o(t,e,r,n,i,a){return[\"C\",t/3+2/3*r,e/3+2/3*n,i/3+2/3*r,a/3+2/3*n,i,a]}function s(t,e,r,a,o,c,u,f,h,p){if(p)k=p[0],M=p[1],_=p[2],w=p[3];else{var d=l(t,e,-o);t=d.x,e=d.y;var g=(t-(f=(d=l(f,h,-o)).x))/2,v=(e-(h=d.y))/2,m=g*g/(r*r)+v*v/(a*a);m>1&&(r*=m=Math.sqrt(m),a*=m);var y=r*r,x=a*a,b=(c==u?-1:1)*Math.sqrt(Math.abs((y*x-y*v*v-x*g*g)/(y*v*v+x*g*g)));b==1/0&&(b=1);var _=b*r*v/a+(t+f)/2,w=b*-a*g/r+(e+h)/2,k=Math.asin(((e-w)/a).toFixed(9)),M=Math.asin(((h-w)/a).toFixed(9));(k=t<_?n-k:k)<0&&(k=2*n+k),(M=f<_?n-M:M)<0&&(M=2*n+M),u&&k>M&&(k-=2*n),!u&&M>k&&(M-=2*n)}if(Math.abs(M-k)>i){var A=M,T=f,S=h;M=k+i*(u&&M>k?1:-1);var E=s(f=_+r*Math.cos(M),h=w+a*Math.sin(M),r,a,o,0,u,T,S,[M,A,_,w])}var C=Math.tan((M-k)/4),L=4/3*r*C,z=4/3*a*C,O=[2*t-(t+L*Math.sin(k)),2*e-(e-z*Math.cos(k)),f+L*Math.sin(M),h-z*Math.cos(M),f,h];if(p)return O;E&&(O=O.concat(E));for(var I=0;I<O.length;){var P=l(O[I],O[I+1],o);O[I++]=P.x,O[I++]=P.y}return O}function l(t,e,r){return{x:t*Math.cos(r)-e*Math.sin(r),y:t*Math.sin(r)+e*Math.cos(r)}}function c(t){return t*(n/180)}e.exports=function(t){for(var e,r=[],n=0,i=0,l=0,u=0,f=null,h=null,p=0,d=0,g=0,v=t.length;g<v;g++){var m=t[g],y=m[0];switch(y){case\"M\":l=m[1],u=m[2];break;case\"A\":(m=s(p,d,m[1],m[2],c(m[3]),m[4],m[5],m[6],m[7])).unshift(\"C\"),m.length>7&&(r.push(m.splice(0,7)),m.unshift(\"C\"));break;case\"S\":var x=p,b=d;\"C\"!=e&&\"S\"!=e||(x+=x-n,b+=b-i),m=[\"C\",x,b,m[1],m[2],m[3],m[4]];break;case\"T\":\"Q\"==e||\"T\"==e?(f=2*p-f,h=2*d-h):(f=p,h=d),m=o(p,d,f,h,m[1],m[2]);break;case\"Q\":f=m[1],h=m[2],m=o(p,d,m[1],m[2],m[3],m[4]);break;case\"L\":m=a(p,d,m[1],m[2]);break;case\"H\":m=a(p,d,m[1],d);break;case\"V\":m=a(p,d,p,m[1]);break;case\"Z\":m=a(p,d,l,u)}e=y,p=m[m.length-2],d=m[m.length-1],m.length>4?(n=m[m.length-4],i=m[m.length-3]):(n=p,i=d),r.push(m)}return r}},{}],436:[function(t,e,r){r.vertexNormals=function(t,e,r){for(var n=e.length,i=new Array(n),a=void 0===r?1e-6:r,o=0;o<n;++o)i[o]=[0,0,0];for(o=0;o<t.length;++o)for(var s=t[o],l=0,c=s[s.length-1],u=s[0],f=0;f<s.length;++f){l=c,c=u,u=s[(f+1)%s.length];for(var h=e[l],p=e[c],d=e[u],g=new Array(3),v=0,m=new Array(3),y=0,x=0;x<3;++x)g[x]=h[x]-p[x],v+=g[x]*g[x],m[x]=d[x]-p[x],y+=m[x]*m[x];if(v*y>a){var b=i[c],_=1/Math.sqrt(v*y);for(x=0;x<3;++x){var w=(x+1)%3,k=(x+2)%3;b[x]+=_*(m[w]*g[k]-m[k]*g[w])}}}for(o=0;o<n;++o){b=i[o];var M=0;for(x=0;x<3;++x)M+=b[x]*b[x];if(M>a)for(_=1/Math.sqrt(M),x=0;x<3;++x)b[x]*=_;else for(x=0;x<3;++x)b[x]=0}return i},r.faceNormals=function(t,e,r){for(var n=t.length,i=new Array(n),a=void 0===r?1e-6:r,o=0;o<n;++o){for(var s=t[o],l=new Array(3),c=0;c<3;++c)l[c]=e[s[c]];var u=new Array(3),f=new Array(3);for(c=0;c<3;++c)u[c]=l[1][c]-l[0][c],f[c]=l[2][c]-l[0][c];var h=new Array(3),p=0;for(c=0;c<3;++c){var d=(c+1)%3,g=(c+2)%3;h[c]=u[d]*f[g]-u[g]*f[d],p+=h[c]*h[c]}p=p>a?1/Math.sqrt(p):0;for(c=0;c<3;++c)h[c]*=p;i[o]=h}return i}},{}],437:[function(t,e,r){\"use strict\";var n=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var t=new String(\"abc\");if(t[5]=\"de\",\"5\"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},r=0;r<10;r++)e[\"_\"+String.fromCharCode(r)]=r;if(\"0123456789\"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(\"\"))return!1;var n={};return\"abcdefghijklmnopqrst\".split(\"\").forEach(function(t){n[t]=t}),\"abcdefghijklmnopqrst\"===Object.keys(Object.assign({},n)).join(\"\")}catch(t){return!1}}()?Object.assign:function(t,e){for(var r,o,s=function(t){if(null==t)throw new TypeError(\"Object.assign cannot be called with null or undefined\");return Object(t)}(t),l=1;l<arguments.length;l++){for(var c in r=Object(arguments[l]))i.call(r,c)&&(s[c]=r[c]);if(n){o=n(r);for(var u=0;u<o.length;u++)a.call(r,o[u])&&(s[o[u]]=r[o[u]])}}return s}},{}],438:[function(t,e,r){\"use strict\";e.exports=function(t,e,r,n,i,a,o,s,l,c){var u=e+a+c;if(f>0){var f=Math.sqrt(u+1);t[0]=.5*(o-l)/f,t[1]=.5*(s-n)/f,t[2]=.5*(r-a)/f,t[3]=.5*f}else{var h=Math.max(e,a,c),f=Math.sqrt(2*h-u+1);e>=h?(t[0]=.5*f,t[1]=.5*(i+r)/f,t[2]=.5*(s+n)/f,t[3]=.5*(o-l)/f):a>=h?(t[0]=.5*(r+i)/f,t[1]=.5*f,t[2]=.5*(l+o)/f,t[3]=.5*(s-n)/f):(t[0]=.5*(n+s)/f,t[1]=.5*(o+l)/f,t[2]=.5*f,t[3]=.5*(r-i)/f)}return t}},{}],439:[function(t,e,r){\"use strict\";e.exports=function(t){var e=(t=t||{}).center||[0,0,0],r=t.rotation||[0,0,0,1],n=t.radius||1;e=[].slice.call(e,0,3),u(r=[].slice.call(r,0,4),r);var i=new f(r,e,Math.log(n));i.setDistanceLimits(t.zoomMin,t.zoomMax),(\"eye\"in t||\"up\"in t)&&i.lookAt(0,t.eye,t.center,t.up);return i};var n=t(\"filtered-vector\"),i=t(\"gl-mat4/lookAt\"),a=t(\"gl-mat4/fromQuat\"),o=t(\"gl-mat4/invert\"),s=t(\"./lib/quatFromFrame\");function l(t,e,r){return Math.sqrt(Math.pow(t,2)+Math.pow(e,2)+Math.pow(r,2))}function c(t,e,r,n){return Math.sqrt(Math.pow(t,2)+Math.pow(e,2)+Math.pow(r,2)+Math.pow(n,2))}function u(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=c(r,n,i,a);o>1e-6?(t[0]=r/o,t[1]=n/o,t[2]=i/o,t[3]=a/o):(t[0]=t[1]=t[2]=0,t[3]=1)}function f(t,e,r){this.radius=n([r]),this.center=n(e),this.rotation=n(t),this.computedRadius=this.radius.curve(0),this.computedCenter=this.center.curve(0),this.computedRotation=this.rotation.curve(0),this.computedUp=[.1,0,0],this.computedEye=[.1,0,0],this.computedMatrix=[.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.recalcMatrix(0)}var h=f.prototype;h.lastT=function(){return Math.max(this.radius.lastT(),this.center.lastT(),this.rotation.lastT())},h.recalcMatrix=function(t){this.radius.curve(t),this.center.curve(t),this.rotation.curve(t);var e=this.computedRotation;u(e,e);var r=this.computedMatrix;a(r,e);var n=this.computedCenter,i=this.computedEye,o=this.computedUp,s=Math.exp(this.computedRadius[0]);i[0]=n[0]+s*r[2],i[1]=n[1]+s*r[6],i[2]=n[2]+s*r[10],o[0]=r[1],o[1]=r[5],o[2]=r[9];for(var l=0;l<3;++l){for(var c=0,f=0;f<3;++f)c+=r[l+4*f]*i[f];r[12+l]=-c}},h.getMatrix=function(t,e){this.recalcMatrix(t);var r=this.computedMatrix;if(e){for(var n=0;n<16;++n)e[n]=r[n];return e}return r},h.idle=function(t){this.center.idle(t),this.radius.idle(t),this.rotation.idle(t)},h.flush=function(t){this.center.flush(t),this.radius.flush(t),this.rotation.flush(t)},h.pan=function(t,e,r,n){e=e||0,r=r||0,n=n||0,this.recalcMatrix(t);var i=this.computedMatrix,a=i[1],o=i[5],s=i[9],c=l(a,o,s);a/=c,o/=c,s/=c;var u=i[0],f=i[4],h=i[8],p=u*a+f*o+h*s,d=l(u-=a*p,f-=o*p,h-=s*p);u/=d,f/=d,h/=d;var g=i[2],v=i[6],m=i[10],y=g*a+v*o+m*s,x=g*u+v*f+m*h,b=l(g-=y*a+x*u,v-=y*o+x*f,m-=y*s+x*h);g/=b,v/=b,m/=b;var _=u*e+a*r,w=f*e+o*r,k=h*e+s*r;this.center.move(t,_,w,k);var M=Math.exp(this.computedRadius[0]);M=Math.max(1e-4,M+n),this.radius.set(t,Math.log(M))},h.rotate=function(t,e,r,n){this.recalcMatrix(t),e=e||0,r=r||0;var i=this.computedMatrix,a=i[0],o=i[4],s=i[8],u=i[1],f=i[5],h=i[9],p=i[2],d=i[6],g=i[10],v=e*a+r*u,m=e*o+r*f,y=e*s+r*h,x=-(d*y-g*m),b=-(g*v-p*y),_=-(p*m-d*v),w=Math.sqrt(Math.max(0,1-Math.pow(x,2)-Math.pow(b,2)-Math.pow(_,2))),k=c(x,b,_,w);k>1e-6?(x/=k,b/=k,_/=k,w/=k):(x=b=_=0,w=1);var M=this.computedRotation,A=M[0],T=M[1],S=M[2],E=M[3],C=A*w+E*x+T*_-S*b,L=T*w+E*b+S*x-A*_,z=S*w+E*_+A*b-T*x,O=E*w-A*x-T*b-S*_;if(n){x=p,b=d,_=g;var I=Math.sin(n)/l(x,b,_);x*=I,b*=I,_*=I,O=O*(w=Math.cos(e))-(C=C*w+O*x+L*_-z*b)*x-(L=L*w+O*b+z*x-C*_)*b-(z=z*w+O*_+C*b-L*x)*_}var P=c(C,L,z,O);P>1e-6?(C/=P,L/=P,z/=P,O/=P):(C=L=z=0,O=1),this.rotation.set(t,C,L,z,O)},h.lookAt=function(t,e,r,n){this.recalcMatrix(t),r=r||this.computedCenter,e=e||this.computedEye,n=n||this.computedUp;var a=this.computedMatrix;i(a,e,r,n);var o=this.computedRotation;s(o,a[0],a[1],a[2],a[4],a[5],a[6],a[8],a[9],a[10]),u(o,o),this.rotation.set(t,o[0],o[1],o[2],o[3]);for(var l=0,c=0;c<3;++c)l+=Math.pow(r[c]-e[c],2);this.radius.set(t,.5*Math.log(Math.max(l,1e-6))),this.center.set(t,r[0],r[1],r[2])},h.translate=function(t,e,r,n){this.center.move(t,e||0,r||0,n||0)},h.setMatrix=function(t,e){var r=this.computedRotation;s(r,e[0],e[1],e[2],e[4],e[5],e[6],e[8],e[9],e[10]),u(r,r),this.rotation.set(t,r[0],r[1],r[2],r[3]);var n=this.computedMatrix;o(n,e);var i=n[15];if(Math.abs(i)>1e-6){var a=n[12]/i,l=n[13]/i,c=n[14]/i;this.recalcMatrix(t);var f=Math.exp(this.computedRadius[0]);this.center.set(t,a-n[2]*f,l-n[6]*f,c-n[10]*f),this.radius.idle(t)}else this.center.idle(t),this.radius.idle(t)},h.setDistance=function(t,e){e>0&&this.radius.set(t,Math.log(e))},h.setDistanceLimits=function(t,e){t=t>0?Math.log(t):-1/0,e=e>0?Math.log(e):1/0,e=Math.max(e,t),this.radius.bounds[0][0]=t,this.radius.bounds[1][0]=e},h.getDistanceLimits=function(t){var e=this.radius.bounds;return t?(t[0]=Math.exp(e[0][0]),t[1]=Math.exp(e[1][0]),t):[Math.exp(e[0][0]),Math.exp(e[1][0])]},h.toJSON=function(){return this.recalcMatrix(this.lastT()),{center:this.computedCenter.slice(),rotation:this.computedRotation.slice(),distance:Math.log(this.computedRadius[0]),zoomMin:this.radius.bounds[0][0],zoomMax:this.radius.bounds[1][0]}},h.fromJSON=function(t){var e=this.lastT(),r=t.center;r&&this.center.set(e,r[0],r[1],r[2]);var n=t.rotation;n&&this.rotation.set(e,n[0],n[1],n[2],n[3]);var i=t.distance;i&&i>0&&this.radius.set(e,Math.log(i)),this.setDistanceLimits(t.zoomMin,t.zoomMax)}},{\"./lib/quatFromFrame\":438,\"filtered-vector\":215,\"gl-mat4/fromQuat\":251,\"gl-mat4/invert\":254,\"gl-mat4/lookAt\":255}],440:[function(t,e,r){\"use strict\";var n=t(\"repeat-string\");e.exports=function(t,e,r){return n(r=\"undefined\"!=typeof r?r+\"\":\" \",e)+t}},{\"repeat-string\":479}],441:[function(t,e,r){\"use strict\";function n(t,e){if(\"string\"!=typeof t)return[t];var r=[t];\"string\"==typeof e||Array.isArray(e)?e={brackets:e}:e||(e={});var n=e.brackets?Array.isArray(e.brackets)?e.brackets:[e.brackets]:[\"{}\",\"[]\",\"()\"],i=e.escape||\"___\",a=!!e.flat;n.forEach(function(t){var e=new RegExp([\"\\\\\",t[0],\"[^\\\\\",t[0],\"\\\\\",t[1],\"]*\\\\\",t[1]].join(\"\")),n=[];function a(e,a,o){var s=r.push(e.slice(t[0].length,-t[1].length))-1;return n.push(s),i+s}r.forEach(function(t,n){for(var i,o=0;t!=i;)if(i=t,t=t.replace(e,a),o++>1e4)throw Error(\"References have circular dependency. Please, check them.\");r[n]=t}),n=n.reverse(),r=r.map(function(e){return n.forEach(function(r){e=e.replace(new RegExp(\"(\\\\\"+i+r+\"(?![0-9]))\",\"g\"),t[0]+\"$1\"+t[1])}),e})});var o=new RegExp(\"\\\\\"+i+\"([0-9]+)\");return a?r:function t(e,r,n){for(var i,a=[],s=0;i=o.exec(e);){if(s++>1e4)throw Error(\"Circular references in parenthesis\");a.push(e.slice(0,i.index)),a.push(t(r[i[1]],r)),e=e.slice(i.index+i[0].length)}return a.push(e),a}(r[0],r)}function i(t,e){if(e&&e.flat){var r,n=e&&e.escape||\"___\",i=t[0];if(!i)return\"\";for(var a=new RegExp(\"\\\\\"+n+\"([0-9]+)\"),o=0;i!=r;){if(o++>1e4)throw Error(\"Circular references in \"+t);r=i,i=i.replace(a,s)}return i}return t.reduce(function t(e,r){return Array.isArray(r)&&(r=r.reduce(t,\"\")),e+r},\"\");function s(e,r){if(null==t[r])throw Error(\"Reference \"+r+\"is undefined\");return t[r]}}function a(t,e){return Array.isArray(t)?i(t,e):n(t,e)}a.parse=n,a.stringify=i,e.exports=a},{}],442:[function(t,e,r){\"use strict\";var n=t(\"pick-by-alias\");e.exports=function(t){var e;arguments.length>1&&(t=arguments);\"string\"==typeof t?t=t.split(/\\s/).map(parseFloat):\"number\"==typeof t&&(t=[t]);t.length&&\"number\"==typeof t[0]?e=1===t.length?{width:t[0],height:t[0],x:0,y:0}:2===t.length?{width:t[0],height:t[1],x:0,y:0}:{x:t[0],y:t[1],width:t[2]-t[0]||0,height:t[3]-t[1]||0}:t&&(t=n(t,{left:\"x l left Left\",top:\"y t top Top\",width:\"w width W Width\",height:\"h height W Width\",bottom:\"b bottom Bottom\",right:\"r right Right\"}),e={x:t.left||0,y:t.top||0},null==t.width?t.right?e.width=t.right-e.x:e.width=0:e.width=t.width,null==t.height?t.bottom?e.height=t.bottom-e.y:e.height=0:e.height=t.height);return e}},{\"pick-by-alias\":448}],443:[function(t,e,r){e.exports=function(t){var e=[];return t.replace(i,function(t,r,i){var o=r.toLowerCase();for(i=function(t){var e=t.match(a);return e?e.map(Number):[]}(i),\"m\"==o&&i.length>2&&(e.push([r].concat(i.splice(0,2))),o=\"l\",r=\"m\"==r?\"l\":\"L\");;){if(i.length==n[o])return i.unshift(r),e.push(i);if(i.length<n[o])throw new Error(\"malformed path data\");e.push([r].concat(i.splice(0,n[o])))}}),e};var n={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},i=/([astvzqmhlc])([^astvzqmhlc]*)/gi;var a=/-?[0-9]*\\.?[0-9]+(?:e[-+]?\\d+)?/gi},{}],444:[function(t,e,r){e.exports=function(t,e){e||(e=[0,\"\"]),t=String(t);var r=parseFloat(t,10);return e[0]=r,e[1]=t.match(/[\\d.\\-\\+]*\\s*(.*)/)[1]||\"\",e}},{}],445:[function(t,e,r){(function(t){(function(){var r,n,i,a,o,s;\"undefined\"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:\"undefined\"!=typeof t&&null!==t&&t.hrtime?(e.exports=function(){return(r()-o)/1e6},n=t.hrtime,a=(r=function(){var t;return 1e9*(t=n())[0]+t[1]})(),s=1e9*t.uptime(),o=a-s):Date.now?(e.exports=function(){return Date.now()-i},i=Date.now()):(e.exports=function(){return(new Date).getTime()-i},i=(new Date).getTime())}).call(this)}).call(this,t(\"_process\"))},{_process:465}],446:[function(t,e,r){\"use strict\";e.exports=function(t){var e=t.length;if(e<n){for(var r=1,a=0;a<e;++a)for(var o=0;o<a;++o)if(t[a]<t[o])r=-r;else if(t[a]===t[o])return 0;return r}for(var s=i.mallocUint8(e),a=0;a<e;++a)s[a]=0;for(var r=1,a=0;a<e;++a)if(!s[a]){var l=1;s[a]=1;for(var o=t[a];o!==a;o=t[o]){if(s[o])return i.freeUint8(s),0;l+=1,s[o]=1}1&l||(r=-r)}return i.freeUint8(s),r};var n=32,i=t(\"typedarray-pool\")},{\"typedarray-pool\":522}],447:[function(t,e,r){\"use strict\";var n=t(\"typedarray-pool\"),i=t(\"invert-permutation\");r.rank=function(t){var e=t.length;switch(e){case 0:case 1:return 0;case 2:return t[1]}var r,a,o,s=n.mallocUint32(e),l=n.mallocUint32(e),c=0;for(i(t,l),o=0;o<e;++o)s[o]=t[o];for(o=e-1;o>0;--o)a=l[o],r=s[o],s[o]=s[a],s[a]=r,l[o]=l[r],l[r]=a,c=(c+r)*o;return n.freeUint32(l),n.freeUint32(s),c},r.unrank=function(t,e,r){switch(t){case 0:return r||[];case 1:return r?(r[0]=0,r):[0];case 2:return r?(e?(r[0]=0,r[1]=1):(r[0]=1,r[1]=0),r):e?[0,1]:[1,0]}var n,i,a,o=1;for((r=r||new Array(t))[0]=0,a=1;a<t;++a)r[a]=a,o=o*a|0;for(a=t-1;a>0;--a)e=e-(n=e/o|0)*o|0,o=o/a|0,i=0|r[a],r[a]=0|r[n],r[n]=0|i;return r}},{\"invert-permutation\":398,\"typedarray-pool\":522}],448:[function(t,e,r){\"use strict\";e.exports=function(t,e,r){var n,a,o={};if(\"string\"==typeof e&&(e=i(e)),Array.isArray(e)){var s={};for(a=0;a<e.length;a++)s[e[a]]=!0;e=s}for(n in e)e[n]=i(e[n]);var l={};for(n in e){var c=e[n];if(Array.isArray(c))for(a=0;a<c.length;a++){var u=c[a];if(r&&(l[u]=!0),u in t){if(o[n]=t[u],r)for(var f=a;f<c.length;f++)l[c[f]]=!0;break}}else n in t&&(e[n]&&(o[n]=t[n]),r&&(l[n]=!0))}if(r)for(n in t)l[n]||(o[n]=t[n]);return o};var n={};function i(t){return n[t]?n[t]:(\"string\"==typeof t&&(t=n[t]=t.split(/\\s*,\\s*|\\s+/)),t)}},{}],449:[function(t,e,r){\"use strict\";e.exports=function(t,e){for(var r=0|e.length,i=t.length,a=[new Array(r),new Array(r)],o=0;o<r;++o)a[0][o]=[],a[1][o]=[];for(var o=0;o<i;++o){var s=t[o];a[0][s[0]].push(s),a[1][s[1]].push(s)}for(var l=[],o=0;o<r;++o)a[0][o].length+a[1][o].length===0&&l.push([o]);function c(t,e){var r=a[e][t[e]];r.splice(r.indexOf(t),1)}function u(t,r,i){for(var o,s,l,u=0;u<2;++u)if(a[u][r].length>0){o=a[u][r][0],l=u;break}s=o[1^l];for(var f=0;f<2;++f)for(var h=a[f][r],p=0;p<h.length;++p){var d=h[p],g=d[1^f],v=n(e[t],e[r],e[s],e[g]);v>0&&(o=d,s=g,l=f)}return i?s:(o&&c(o,l),s)}function f(t,r){var i=a[r][t][0],o=[t];c(i,r);for(var s=i[1^r];;){for(;s!==t;)o.push(s),s=u(o[o.length-2],s,!1);if(a[0][t].length+a[1][t].length===0)break;var l=o[o.length-1],f=t,h=o[1],p=u(l,f,!0);if(n(e[l],e[f],e[h],e[p])<0)break;o.push(t),s=u(l,f)}return o}function h(t,e){return e[1]===e[e.length-1]}for(var o=0;o<r;++o)for(var p=0;p<2;++p){for(var d=[];a[p][o].length>0;){a[0][o].length;var g=f(o,p);h(d,g)?d.push.apply(d,g):(d.length>0&&l.push(d),d=g)}d.length>0&&l.push(d)}return l};var n=t(\"compare-angle\")},{\"compare-angle\":115}],450:[function(t,e,r){\"use strict\";e.exports=function(t,e){for(var r=n(t,e.length),i=new Array(e.length),a=new Array(e.length),o=[],s=0;s<e.length;++s){var l=r[s].length;a[s]=l,i[s]=!0,l<=1&&o.push(s)}for(;o.length>0;){var c=o.pop();i[c]=!1;for(var u=r[c],s=0;s<u.length;++s){var f=u[s];0==--a[f]&&o.push(f)}}for(var h=new Array(e.length),p=[],s=0;s<e.length;++s)if(i[s]){var c=p.length;h[s]=c,p.push(e[s])}else h[s]=-1;for(var d=[],s=0;s<t.length;++s){var g=t[s];i[g[0]]&&i[g[1]]&&d.push([h[g[0]],h[g[1]]])}return[d,p]};var n=t(\"edges-to-adjacency-list\")},{\"edges-to-adjacency-list\":157}],451:[function(t,e,r){\"use strict\";e.exports=function(t,e){var r=c(t,e);t=r[0];for(var f=(e=r[1]).length,h=(t.length,n(t,e.length)),p=0;p<f;++p)if(h[p].length%2==1)throw new Error(\"planar-graph-to-polyline: graph must be manifold\");var d=i(t,e);for(var g=(d=d.filter(function(t){for(var r=t.length,n=[0],i=0;i<r;++i){var a=e[t[i]],l=e[t[(i+1)%r]],c=o(-a[0],a[1]),u=o(-a[0],l[1]),f=o(l[0],a[1]),h=o(l[0],l[1]);n=s(n,s(s(c,u),s(f,h)))}return n[n.length-1]>0})).length,v=new Array(g),m=new Array(g),p=0;p<g;++p){v[p]=p;var y=new Array(g),x=d[p].map(function(t){return e[t]}),b=a([x]),_=0;t:for(var w=0;w<g;++w)if(y[w]=0,p!==w){for(var k=d[w],M=k.length,A=0;A<M;++A){var T=b(e[k[A]]);if(0!==T){T<0&&(y[w]=1,_+=1);continue t}}y[w]=1,_+=1}m[p]=[_,p,y]}m.sort(function(t,e){return e[0]-t[0]});for(var p=0;p<g;++p)for(var y=m[p],S=y[1],E=y[2],w=0;w<g;++w)E[w]&&(v[w]=S);for(var C=function(t){for(var e=new Array(t),r=0;r<t;++r)e[r]=[];return e}(g),p=0;p<g;++p)C[p].push(v[p]),C[v[p]].push(p);for(var L={},z=u(f,!1),p=0;p<g;++p)for(var k=d[p],M=k.length,w=0;w<M;++w){var O=k[w],I=k[(w+1)%M],P=Math.min(O,I)+\":\"+Math.max(O,I);if(P in L){var D=L[P];C[D].push(p),C[p].push(D),z[O]=z[I]=!0}else L[P]=p}function R(t){for(var e=t.length,r=0;r<e;++r)if(!z[t[r]])return!1;return!0}for(var B=[],F=u(g,-1),p=0;p<g;++p)v[p]!==p||R(d[p])?F[p]=-1:(B.push(p),F[p]=0);var r=[];for(;B.length>0;){var N=B.pop(),j=C[N];l(j,function(t,e){return t-e});var V,U=j.length,q=F[N];if(0===q){var k=d[N];V=[k]}for(var p=0;p<U;++p){var H=j[p];if(!(F[H]>=0)&&(F[H]=1^q,B.push(H),0===q)){var k=d[H];R(k)||(k.reverse(),V.push(k))}}0===q&&r.push(V)}return r};var n=t(\"edges-to-adjacency-list\"),i=t(\"planar-dual\"),a=t(\"point-in-big-polygon\"),o=t(\"two-product\"),s=t(\"robust-sum\"),l=t(\"uniq\"),c=t(\"./lib/trim-leaves\");function u(t,e){for(var r=new Array(t),n=0;n<t;++n)r[n]=e;return r}},{\"./lib/trim-leaves\":450,\"edges-to-adjacency-list\":157,\"planar-dual\":449,\"point-in-big-polygon\":455,\"robust-sum\":491,\"two-product\":520,uniq:524}],452:[function(t,e,r){\"use strict\";e.exports=t(\"./quad\")},{\"./quad\":454}],453:[function(t,e,r){arguments[4][99][0].apply(r,arguments)},{dup:99}],454:[function(t,e,r){\"use strict\";var n=t(\"binary-search-bounds\"),i=t(\"clamp\"),a=t(\"parse-rect\"),o=t(\"array-bounds\"),s=t(\"pick-by-alias\"),l=t(\"defined\"),c=t(\"flatten-vertex-data\"),u=t(\"is-obj\"),f=t(\"dtype\"),h=t(\"math-log2\");function p(t,e){for(var r=e[0],n=e[1],a=1/(e[2]-r),o=1/(e[3]-n),s=new Array(t.length),l=0,c=t.length/2;l<c;l++)s[2*l]=i((t[2*l]-r)*a,0,1),s[2*l+1]=i((t[2*l+1]-n)*o,0,1);return s}e.exports=function(t,e){e||(e={}),t=c(t,\"float64\"),e=s(e,{bounds:\"range bounds dataBox databox\",maxDepth:\"depth maxDepth maxdepth level maxLevel maxlevel levels\",dtype:\"type dtype format out dst output destination\"});var r=l(e.maxDepth,255),i=l(e.bounds,o(t,2));i[0]===i[2]&&i[2]++,i[1]===i[3]&&i[3]++;var d,g=p(t,i),v=t.length>>>1;e.dtype||(e.dtype=\"array\"),\"string\"==typeof e.dtype?d=new(f(e.dtype))(v):e.dtype&&(d=e.dtype,Array.isArray(d)&&(d.length=v));for(var m=0;m<v;++m)d[m]=m;var y=[],x=[],b=[],_=[];!function t(e,n,i,a,o,s){if(!a.length)return null;var l=y[o]||(y[o]=[]);var c=b[o]||(b[o]=[]);var u=x[o]||(x[o]=[]);var f=l.length;o++;if(o>r){for(var h=0;h<a.length;h++)l.push(a[h]),c.push(s),u.push(null,null,null,null);return f}l.push(a[0]);c.push(s);if(a.length<=1)return u.push(null,null,null,null),f;var p=.5*i;var d=e+p,v=n+p;var m=[],_=[],w=[],k=[];for(var M=1,A=a.length;M<A;M++){var T=a[M],S=g[2*T],E=g[2*T+1];S<d?E<v?m.push(T):_.push(T):E<v?w.push(T):k.push(T)}s<<=2;u.push(t(e,n,p,m,o,s),t(e,v,p,_,o,s+1),t(d,n,p,w,o,s+2),t(d,v,p,k,o,s+3));return f}(0,0,1,d,0,1);for(var w=0,k=0;k<y.length;k++){var M=y[k];if(d.set)d.set(M,w);else for(var A=0,T=M.length;A<T;A++)d[A+w]=M[A];var S=w+y[k].length;_[k]=[w,S],w=S}return d.range=function(){var e,r=[],o=arguments.length;for(;o--;)r[o]=arguments[o];if(u(r[r.length-1])){var c=r.pop();r.length||null==c.x&&null==c.l&&null==c.left||(r=[c],e={}),e=s(c,{level:\"level maxLevel\",d:\"d diam diameter r radius px pxSize pixel pixelSize maxD size minSize\",lod:\"lod details ranges offsets\"})}else e={};r.length||(r=i);var f=a.apply(void 0,r),d=[Math.min(f.x,f.x+f.width),Math.min(f.y,f.y+f.height),Math.max(f.x,f.x+f.width),Math.max(f.y,f.y+f.height)],g=d[0],v=d[1],m=d[2],w=d[3],k=p([g,v,m,w],i),M=k[0],A=k[1],T=k[2],S=k[3],C=l(e.level,y.length);if(null!=e.d){var L;\"number\"==typeof e.d?L=[e.d,e.d]:e.d.length&&(L=e.d),C=Math.min(Math.max(Math.ceil(-h(Math.abs(L[0])/(i[2]-i[0]))),Math.ceil(-h(Math.abs(L[1])/(i[3]-i[1])))),C)}if(C=Math.min(C,y.length),e.lod)return function(t,e,r,i,a){for(var o=[],s=0;s<a;s++){var l=b[s],c=_[s][0],u=E(t,e,s),f=E(r,i,s),h=n.ge(l,u),p=n.gt(l,f,h,l.length-1);o[s]=[h+c,p+c]}return o}(M,A,T,S,C);var z=[];return function e(r,n,i,a,o,s){if(null!==o&&null!==s){var l=r+i,c=n+i;if(!(M>l||A>c||T<r||S<n||a>=C||o===s)){var u=y[a];void 0===s&&(s=u.length);for(var f=o;f<s;f++){var h=u[f],p=t[2*h],d=t[2*h+1];p>=g&&p<=m&&d>=v&&d<=w&&z.push(h)}var b=x[a],_=b[4*o+0],k=b[4*o+1],E=b[4*o+2],L=b[4*o+3],O=function(t,e){for(var r=null,n=0;null===r;)if(r=t[4*e+n],++n>t.length)return null;return r}(b,o+1),I=.5*i,P=a+1;e(r,n,I,P,_,k||E||L||O),e(r,n+I,I,P,k,E||L||O),e(r+I,n,I,P,E,L||O),e(r+I,n+I,I,P,L,O)}}}(0,0,1,0,0,1),z},d;function E(t,e,r){for(var n=1,i=.5,a=.5,o=.5,s=0;s<r;s++)n<<=2,n+=t<i?e<a?0:1:e<a?2:3,o*=.5,i+=t<i?-o:o,a+=e<a?-o:o;return n}}},{\"array-bounds\":53,\"binary-search-bounds\":453,clamp:103,defined:149,dtype:154,\"flatten-vertex-data\":216,\"is-obj\":404,\"math-log2\":415,\"parse-rect\":442,\"pick-by-alias\":448}],455:[function(t,e,r){e.exports=function(t){for(var e=t.length,r=[],a=[],s=0;s<e;++s)for(var u=t[s],f=u.length,h=f-1,p=0;p<f;h=p++){var d=u[h],g=u[p];d[0]===g[0]?a.push([d,g]):r.push([d,g])}if(0===r.length)return 0===a.length?c:(v=l(a),function(t){return v(t[0],t[1])?0:1});var v;var m=i(r),y=function(t,e){return function(r){var i=o.le(e,r[0]);if(i<0)return 1;var a=t[i];if(!a){if(!(i>0&&e[i]===r[0]))return 1;a=t[i-1]}for(var s=1;a;){var l=a.key,c=n(r,l[0],l[1]);if(l[0][0]<l[1][0])if(c<0)a=a.left;else{if(!(c>0))return 0;s=-1,a=a.right}else if(c>0)a=a.left;else{if(!(c<0))return 0;s=1,a=a.right}}return s}}(m.slabs,m.coordinates);return 0===a.length?y:function(t,e){return function(r){return t(r[0],r[1])?0:e(r)}}(l(a),y)};var n=t(\"robust-orientation\")[3],i=t(\"slab-decomposition\"),a=t(\"interval-tree-1d\"),o=t(\"binary-search-bounds\");function s(){return!0}function l(t){for(var e={},r=0;r<t.length;++r){var n=t[r],i=n[0][0],o=n[0][1],l=n[1][1],c=[Math.min(o,l),Math.max(o,l)];i in e?e[i].push(c):e[i]=[c]}var u={},f=Object.keys(e);for(r=0;r<f.length;++r){var h=e[f[r]];u[f[r]]=a(h)}return function(t){return function(e,r){var n=t[e];return!!n&&!!n.queryPoint(r,s)}}(u)}function c(t){return 1}},{\"binary-search-bounds\":79,\"interval-tree-1d\":397,\"robust-orientation\":486,\"slab-decomposition\":502}],456:[function(t,e,r){var n,i=t(\"./lib/build-log\"),a=t(\"./lib/epsilon\"),o=t(\"./lib/intersecter\"),s=t(\"./lib/segment-chainer\"),l=t(\"./lib/segment-selector\"),c=t(\"./lib/geojson\"),u=!1,f=a();function h(t,e,r){var i=n.segments(t),a=n.segments(e),o=r(n.combine(i,a));return n.polygon(o)}n={buildLog:function(t){return!0===t?u=i():!1===t&&(u=!1),!1!==u&&u.list},epsilon:function(t){return f.epsilon(t)},segments:function(t){var e=o(!0,f,u);return t.regions.forEach(e.addRegion),{segments:e.calculate(t.inverted),inverted:t.inverted}},combine:function(t,e){return{combined:o(!1,f,u).calculate(t.segments,t.inverted,e.segments,e.inverted),inverted1:t.inverted,inverted2:e.inverted}},selectUnion:function(t){return{segments:l.union(t.combined,u),inverted:t.inverted1||t.inverted2}},selectIntersect:function(t){return{segments:l.intersect(t.combined,u),inverted:t.inverted1&&t.inverted2}},selectDifference:function(t){return{segments:l.difference(t.combined,u),inverted:t.inverted1&&!t.inverted2}},selectDifferenceRev:function(t){return{segments:l.differenceRev(t.combined,u),inverted:!t.inverted1&&t.inverted2}},selectXor:function(t){return{segments:l.xor(t.combined,u),inverted:t.inverted1!==t.inverted2}},polygon:function(t){return{regions:s(t.segments,f,u),inverted:t.inverted}},polygonFromGeoJSON:function(t){return c.toPolygon(n,t)},polygonToGeoJSON:function(t){return c.fromPolygon(n,f,t)},union:function(t,e){return h(t,e,n.selectUnion)},intersect:function(t,e){return h(t,e,n.selectIntersect)},difference:function(t,e){return h(t,e,n.selectDifference)},differenceRev:function(t,e){return h(t,e,n.selectDifferenceRev)},xor:function(t,e){return h(t,e,n.selectXor)}},\"object\"==typeof window&&(window.PolyBool=n),e.exports=n},{\"./lib/build-log\":457,\"./lib/epsilon\":458,\"./lib/geojson\":459,\"./lib/intersecter\":460,\"./lib/segment-chainer\":462,\"./lib/segment-selector\":463}],457:[function(t,e,r){e.exports=function(){var t,e=0,r=!1;function n(e,r){return t.list.push({type:e,data:r?JSON.parse(JSON.stringify(r)):void 0}),t}return t={list:[],segmentId:function(){return e++},checkIntersection:function(t,e){return n(\"check\",{seg1:t,seg2:e})},segmentChop:function(t,e){return n(\"div_seg\",{seg:t,pt:e}),n(\"chop\",{seg:t,pt:e})},statusRemove:function(t){return n(\"pop_seg\",{seg:t})},segmentUpdate:function(t){return n(\"seg_update\",{seg:t})},segmentNew:function(t,e){return n(\"new_seg\",{seg:t,primary:e})},segmentRemove:function(t){return n(\"rem_seg\",{seg:t})},tempStatus:function(t,e,r){return n(\"temp_status\",{seg:t,above:e,below:r})},rewind:function(t){return n(\"rewind\",{seg:t})},status:function(t,e,r){return n(\"status\",{seg:t,above:e,below:r})},vert:function(e){return e===r?t:(r=e,n(\"vert\",{x:e}))},log:function(t){return\"string\"!=typeof t&&(t=JSON.stringify(t,!1,\" \")),n(\"log\",{txt:t})},reset:function(){return n(\"reset\")},selected:function(t){return n(\"selected\",{segs:t})},chainStart:function(t){return n(\"chain_start\",{seg:t})},chainRemoveHead:function(t,e){return n(\"chain_rem_head\",{index:t,pt:e})},chainRemoveTail:function(t,e){return n(\"chain_rem_tail\",{index:t,pt:e})},chainNew:function(t,e){return n(\"chain_new\",{pt1:t,pt2:e})},chainMatch:function(t){return n(\"chain_match\",{index:t})},chainClose:function(t){return n(\"chain_close\",{index:t})},chainAddHead:function(t,e){return n(\"chain_add_head\",{index:t,pt:e})},chainAddTail:function(t,e){return n(\"chain_add_tail\",{index:t,pt:e})},chainConnect:function(t,e){return n(\"chain_con\",{index1:t,index2:e})},chainReverse:function(t){return n(\"chain_rev\",{index:t})},chainJoin:function(t,e){return n(\"chain_join\",{index1:t,index2:e})},done:function(){return n(\"done\")}}}},{}],458:[function(t,e,r){e.exports=function(t){\"number\"!=typeof t&&(t=1e-10);var e={epsilon:function(e){return\"number\"==typeof e&&(t=e),t},pointAboveOrOnLine:function(e,r,n){var i=r[0],a=r[1],o=n[0],s=n[1],l=e[0];return(o-i)*(e[1]-a)-(s-a)*(l-i)>=-t},pointBetween:function(e,r,n){var i=e[1]-r[1],a=n[0]-r[0],o=e[0]-r[0],s=n[1]-r[1],l=o*a+i*s;return!(l<t||l-(a*a+s*s)>-t)},pointsSameX:function(e,r){return Math.abs(e[0]-r[0])<t},pointsSameY:function(e,r){return Math.abs(e[1]-r[1])<t},pointsSame:function(t,r){return e.pointsSameX(t,r)&&e.pointsSameY(t,r)},pointsCompare:function(t,r){return e.pointsSameX(t,r)?e.pointsSameY(t,r)?0:t[1]<r[1]?-1:1:t[0]<r[0]?-1:1},pointsCollinear:function(e,r,n){var i=e[0]-r[0],a=e[1]-r[1],o=r[0]-n[0],s=r[1]-n[1];return Math.abs(i*s-o*a)<t},linesIntersect:function(e,r,n,i){var a=r[0]-e[0],o=r[1]-e[1],s=i[0]-n[0],l=i[1]-n[1],c=a*l-o*s;if(Math.abs(c)<t)return!1;var u=e[0]-n[0],f=e[1]-n[1],h=(s*f-l*u)/c,p=(a*f-o*u)/c,d={alongA:0,alongB:0,pt:[e[0]+h*a,e[1]+h*o]};return d.alongA=h<=-t?-2:h<t?-1:h-1<=-t?0:h-1<t?1:2,d.alongB=p<=-t?-2:p<t?-1:p-1<=-t?0:p-1<t?1:2,d},pointInsideRegion:function(e,r){for(var n=e[0],i=e[1],a=r[r.length-1][0],o=r[r.length-1][1],s=!1,l=0;l<r.length;l++){var c=r[l][0],u=r[l][1];u-i>t!=o-i>t&&(a-c)*(i-u)/(o-u)+c-n>t&&(s=!s),a=c,o=u}return s}};return e}},{}],459:[function(t,e,r){var n={toPolygon:function(t,e){function r(e){if(e.length<=0)return t.segments({inverted:!1,regions:[]});function r(e){var r=e.slice(0,e.length-1);return t.segments({inverted:!1,regions:[r]})}for(var n=r(e[0]),i=1;i<e.length;i++)n=t.selectDifference(t.combine(n,r(e[i])));return n}if(\"Polygon\"===e.type)return t.polygon(r(e.coordinates));if(\"MultiPolygon\"===e.type){for(var n=t.segments({inverted:!1,regions:[]}),i=0;i<e.coordinates.length;i++)n=t.selectUnion(t.combine(n,r(e.coordinates[i])));return t.polygon(n)}throw new Error(\"PolyBool: Cannot convert GeoJSON object to PolyBool polygon\")},fromPolygon:function(t,e,r){function n(t,r){return e.pointInsideRegion([.5*(t[0][0]+t[1][0]),.5*(t[0][1]+t[1][1])],r)}function i(t){return{region:t,children:[]}}r=t.polygon(t.segments(r));var a=i(null);function o(t,e){for(var r=0;r<t.children.length;r++){if(n(e,(s=t.children[r]).region))return void o(s,e)}var a=i(e);for(r=0;r<t.children.length;r++){var s;n((s=t.children[r]).region,e)&&(a.children.push(s),t.children.splice(r,1),r--)}t.children.push(a)}for(var s=0;s<r.regions.length;s++){var l=r.regions[s];l.length<3||o(a,l)}function c(t,e){for(var r=0,n=t[t.length-1][0],i=t[t.length-1][1],a=[],o=0;o<t.length;o++){var s=t[o][0],l=t[o][1];a.push([s,l]),r+=l*n-s*i,n=s,i=l}return r<0!==e&&a.reverse(),a.push([a[0][0],a[0][1]]),a}var u=[];function f(t){var e=[c(t.region,!1)];u.push(e);for(var r=0;r<t.children.length;r++)e.push(h(t.children[r]))}function h(t){for(var e=0;e<t.children.length;e++)f(t.children[e]);return c(t.region,!0)}for(s=0;s<a.children.length;s++)f(a.children[s]);return u.length<=0?{type:\"Polygon\",coordinates:[]}:1==u.length?{type:\"Polygon\",coordinates:u[0]}:{type:\"MultiPolygon\",coordinates:u}}};e.exports=n},{}],460:[function(t,e,r){var n=t(\"./linked-list\");e.exports=function(t,e,r){function i(t,e,n){return{id:r?r.segmentId():-1,start:t,end:e,myFill:{above:n.myFill.above,below:n.myFill.below},otherFill:null}}var a=n.create();function o(t,r){a.insertBefore(t,function(n){return function(t,r,n,i,a,o){var s=e.pointsCompare(r,a);return 0!==s?s:e.pointsSame(n,o)?0:t!==i?t?1:-1:e.pointAboveOrOnLine(n,i?a:o,i?o:a)?1:-1}(t.isStart,t.pt,r,n.isStart,n.pt,n.other.pt)<0})}function s(t,e){var r=function(t,e){var r=n.node({isStart:!0,pt:t.start,seg:t,primary:e,other:null,status:null});return o(r,t.end),r}(t,e);return function(t,e,r){var i=n.node({isStart:!1,pt:e.end,seg:e,primary:r,other:t,status:null});t.other=i,o(i,t.pt)}(r,t,e),r}function l(t,e){var n=i(e,t.seg.end,t.seg);return function(t,e){r&&r.segmentChop(t.seg,e),t.other.remove(),t.seg.end=e,t.other.pt=e,o(t.other,t.pt)}(t,e),s(n,t.primary)}function c(i,o){var s=n.create();function c(t){return s.findTransition(function(r){var n,i,a,o,s,l;return n=t,i=r.ev,a=n.seg.start,o=n.seg.end,s=i.seg.start,l=i.seg.end,(e.pointsCollinear(a,s,l)?e.pointsCollinear(o,s,l)?1:e.pointAboveOrOnLine(o,s,l)?1:-1:e.pointAboveOrOnLine(a,s,l)?1:-1)>0})}function u(t,n){var i=t.seg,a=n.seg,o=i.start,s=i.end,c=a.start,u=a.end;r&&r.checkIntersection(i,a);var f=e.linesIntersect(o,s,c,u);if(!1===f){if(!e.pointsCollinear(o,s,c))return!1;if(e.pointsSame(o,u)||e.pointsSame(s,c))return!1;var h=e.pointsSame(o,c),p=e.pointsSame(s,u);if(h&&p)return n;var d=!h&&e.pointBetween(o,c,u),g=!p&&e.pointBetween(s,c,u);if(h)return g?l(n,s):l(t,u),n;d&&(p||(g?l(n,s):l(t,u)),l(n,o))}else 0===f.alongA&&(-1===f.alongB?l(t,c):0===f.alongB?l(t,f.pt):1===f.alongB&&l(t,u)),0===f.alongB&&(-1===f.alongA?l(n,o):0===f.alongA?l(n,f.pt):1===f.alongA&&l(n,s));return!1}for(var f=[];!a.isEmpty();){var h=a.getHead();if(r&&r.vert(h.pt[0]),h.isStart){r&&r.segmentNew(h.seg,h.primary);var p=c(h),d=p.before?p.before.ev:null,g=p.after?p.after.ev:null;function v(){if(d){var t=u(h,d);if(t)return t}return!!g&&u(h,g)}r&&r.tempStatus(h.seg,!!d&&d.seg,!!g&&g.seg);var m,y,x=v();if(x)t?(y=null===h.seg.myFill.below||h.seg.myFill.above!==h.seg.myFill.below)&&(x.seg.myFill.above=!x.seg.myFill.above):x.seg.otherFill=h.seg.myFill,r&&r.segmentUpdate(x.seg),h.other.remove(),h.remove();if(a.getHead()!==h){r&&r.rewind(h.seg);continue}t?(y=null===h.seg.myFill.below||h.seg.myFill.above!==h.seg.myFill.below,h.seg.myFill.below=g?g.seg.myFill.above:i,h.seg.myFill.above=y?!h.seg.myFill.below:h.seg.myFill.below):null===h.seg.otherFill&&(m=g?h.primary===g.primary?g.seg.otherFill.above:g.seg.myFill.above:h.primary?o:i,h.seg.otherFill={above:m,below:m}),r&&r.status(h.seg,!!d&&d.seg,!!g&&g.seg),h.other.status=p.insert(n.node({ev:h}))}else{var b=h.status;if(null===b)throw new Error(\"PolyBool: Zero-length segment detected; your epsilon is probably too small or too large\");if(s.exists(b.prev)&&s.exists(b.next)&&u(b.prev.ev,b.next.ev),r&&r.statusRemove(b.ev.seg),b.remove(),!h.primary){var _=h.seg.myFill;h.seg.myFill=h.seg.otherFill,h.seg.otherFill=_}f.push(h.seg)}a.getHead().remove()}return r&&r.done(),f}return t?{addRegion:function(t){for(var n,i,a,o=t[t.length-1],l=0;l<t.length;l++){n=o,o=t[l];var c=e.pointsCompare(n,o);0!==c&&s((i=c<0?n:o,a=c<0?o:n,{id:r?r.segmentId():-1,start:i,end:a,myFill:{above:null,below:null},otherFill:null}),!0)}},calculate:function(t){return c(t,!1)}}:{calculate:function(t,e,r,n){return t.forEach(function(t){s(i(t.start,t.end,t),!0)}),r.forEach(function(t){s(i(t.start,t.end,t),!1)}),c(e,n)}}}},{\"./linked-list\":461}],461:[function(t,e,r){e.exports={create:function(){var t={root:{root:!0,next:null},exists:function(e){return null!==e&&e!==t.root},isEmpty:function(){return null===t.root.next},getHead:function(){return t.root.next},insertBefore:function(e,r){for(var n=t.root,i=t.root.next;null!==i;){if(r(i))return e.prev=i.prev,e.next=i,i.prev.next=e,void(i.prev=e);n=i,i=i.next}n.next=e,e.prev=n,e.next=null},findTransition:function(e){for(var r=t.root,n=t.root.next;null!==n&&!e(n);)r=n,n=n.next;return{before:r===t.root?null:r,after:n,insert:function(t){return t.prev=r,t.next=n,r.next=t,null!==n&&(n.prev=t),t}}}};return t},node:function(t){return t.prev=null,t.next=null,t.remove=function(){t.prev.next=t.next,t.next&&(t.next.prev=t.prev),t.prev=null,t.next=null},t}}},{}],462:[function(t,e,r){e.exports=function(t,e,r){var n=[],i=[];return t.forEach(function(t){var a=t.start,o=t.end;if(e.pointsSame(a,o))console.warn(\"PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large\");else{r&&r.chainStart(t);for(var s={index:0,matches_head:!1,matches_pt1:!1},l={index:0,matches_head:!1,matches_pt1:!1},c=s,u=0;u<n.length;u++){var f=(v=n[u])[0],h=(v[1],v[v.length-1]);if(v[v.length-2],e.pointsSame(f,a)){if(M(u,!0,!0))break}else if(e.pointsSame(f,o)){if(M(u,!0,!1))break}else if(e.pointsSame(h,a)){if(M(u,!1,!0))break}else if(e.pointsSame(h,o)&&M(u,!1,!1))break}if(c===s)return n.push([a,o]),void(r&&r.chainNew(a,o));if(c===l){r&&r.chainMatch(s.index);var p=s.index,d=s.matches_pt1?o:a,g=s.matches_head,v=n[p],m=g?v[0]:v[v.length-1],y=g?v[1]:v[v.length-2],x=g?v[v.length-1]:v[0],b=g?v[v.length-2]:v[1];return e.pointsCollinear(y,m,d)&&(g?(r&&r.chainRemoveHead(s.index,d),v.shift()):(r&&r.chainRemoveTail(s.index,d),v.pop()),m=y),e.pointsSame(x,d)?(n.splice(p,1),e.pointsCollinear(b,x,m)&&(g?(r&&r.chainRemoveTail(s.index,m),v.pop()):(r&&r.chainRemoveHead(s.index,m),v.shift())),r&&r.chainClose(s.index),void i.push(v)):void(g?(r&&r.chainAddHead(s.index,d),v.unshift(d)):(r&&r.chainAddTail(s.index,d),v.push(d)))}var _=s.index,w=l.index;r&&r.chainConnect(_,w);var k=n[_].length<n[w].length;s.matches_head?l.matches_head?k?(A(_),T(_,w)):(A(w),T(w,_)):T(w,_):l.matches_head?T(_,w):k?(A(_),T(w,_)):(A(w),T(_,w))}function M(t,e,r){return c.index=t,c.matches_head=e,c.matches_pt1=r,c===s?(c=l,!1):(c=null,!0)}function A(t){r&&r.chainReverse(t),n[t].reverse()}function T(t,i){var a=n[t],o=n[i],s=a[a.length-1],l=a[a.length-2],c=o[0],u=o[1];e.pointsCollinear(l,s,c)&&(r&&r.chainRemoveTail(t,s),a.pop(),s=l),e.pointsCollinear(s,c,u)&&(r&&r.chainRemoveHead(i,c),o.shift()),r&&r.chainJoin(t,i),n[t]=a.concat(o),n.splice(i,1)}}),i}},{}],463:[function(t,e,r){function n(t,e,r){var n=[];return t.forEach(function(t){var i=(t.myFill.above?8:0)+(t.myFill.below?4:0)+(t.otherFill&&t.otherFill.above?2:0)+(t.otherFill&&t.otherFill.below?1:0);0!==e[i]&&n.push({id:r?r.segmentId():-1,start:t.start,end:t.end,myFill:{above:1===e[i],below:2===e[i]},otherFill:null})}),r&&r.selected(n),n}var i={union:function(t,e){return n(t,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],e)},intersect:function(t,e){return n(t,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],e)},difference:function(t,e){return n(t,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],e)},differenceRev:function(t,e){return n(t,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],e)},xor:function(t,e){return n(t,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],e)}};e.exports=i},{}],464:[function(t,e,r){\"use strict\";var n=new Float64Array(4),i=new Float64Array(4),a=new Float64Array(4);e.exports=function(t,e,r,o,s){n.length<o.length&&(n=new Float64Array(o.length),i=new Float64Array(o.length),a=new Float64Array(o.length));for(var l=0;l<o.length;++l)n[l]=t[l]-o[l],i[l]=e[l]-t[l],a[l]=r[l]-t[l];var c=0,u=0,f=0,h=0,p=0,d=0;for(l=0;l<o.length;++l){var g=i[l],v=a[l],m=n[l];c+=g*g,u+=g*v,f+=v*v,h+=m*g,p+=m*v,d+=m*m}var y,x,b,_,w,k=Math.abs(c*f-u*u),M=u*p-f*h,A=u*h-c*p;if(M+A<=k)if(M<0)A<0&&h<0?(A=0,-h>=c?(M=1,y=c+2*h+d):y=h*(M=-h/c)+d):(M=0,p>=0?(A=0,y=d):-p>=f?(A=1,y=f+2*p+d):y=p*(A=-p/f)+d);else if(A<0)A=0,h>=0?(M=0,y=d):-h>=c?(M=1,y=c+2*h+d):y=h*(M=-h/c)+d;else{var T=1/k;y=(M*=T)*(c*M+u*(A*=T)+2*h)+A*(u*M+f*A+2*p)+d}else M<0?(b=f+p)>(x=u+h)?(_=b-x)>=(w=c-2*u+f)?(M=1,A=0,y=c+2*h+d):y=(M=_/w)*(c*M+u*(A=1-M)+2*h)+A*(u*M+f*A+2*p)+d:(M=0,b<=0?(A=1,y=f+2*p+d):p>=0?(A=0,y=d):y=p*(A=-p/f)+d):A<0?(b=c+h)>(x=u+p)?(_=b-x)>=(w=c-2*u+f)?(A=1,M=0,y=f+2*p+d):y=(M=1-(A=_/w))*(c*M+u*A+2*h)+A*(u*M+f*A+2*p)+d:(A=0,b<=0?(M=1,y=c+2*h+d):h>=0?(M=0,y=d):y=h*(M=-h/c)+d):(_=f+p-u-h)<=0?(M=0,A=1,y=f+2*p+d):_>=(w=c-2*u+f)?(M=1,A=0,y=c+2*h+d):y=(M=_/w)*(c*M+u*(A=1-M)+2*h)+A*(u*M+f*A+2*p)+d;var S=1-M-A;for(l=0;l<o.length;++l)s[l]=S*t[l]+M*e[l]+A*r[l];return y<0?0:y}},{}],465:[function(t,e,r){var n,i,a=e.exports={};function o(){throw new Error(\"setTimeout has not been defined\")}function s(){throw new Error(\"clearTimeout has not been defined\")}function l(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,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(){try{n=\"function\"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{i=\"function\"==typeof clearTimeout?clearTimeout:s}catch(t){i=s}}();var c,u=[],f=!1,h=-1;function p(){f&&c&&(f=!1,c.length?u=c.concat(u):h=-1,u.length&&d())}function d(){if(!f){var t=l(p);f=!0;for(var e=u.length;e;){for(c=u,u=[];++h<e;)c&&c[h].run();h=-1,e=u.length}c=null,f=!1,function(t){if(i===clearTimeout)return clearTimeout(t);if((i===s||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(t);try{i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}(t)}}function g(t,e){this.fun=t,this.array=e}function v(){}a.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];u.push(new g(t,e)),1!==u.length||f||l(d)},g.prototype.run=function(){this.fun.apply(null,this.array)},a.title=\"browser\",a.browser=!0,a.env={},a.argv=[],a.version=\"\",a.versions={},a.on=v,a.addListener=v,a.once=v,a.off=v,a.removeListener=v,a.removeAllListeners=v,a.emit=v,a.prependListener=v,a.prependOnceListener=v,a.listeners=function(t){return[]},a.binding=function(t){throw new Error(\"process.binding is not supported\")},a.cwd=function(){return\"/\"},a.chdir=function(t){throw new Error(\"process.chdir is not supported\")},a.umask=function(){return 0}},{}],466:[function(t,e,r){e.exports=t(\"gl-quat/slerp\")},{\"gl-quat/slerp\":280}],467:[function(t,e,r){(function(r){for(var n=t(\"performance-now\"),i=\"undefined\"==typeof window?r:window,a=[\"moz\",\"webkit\"],o=\"AnimationFrame\",s=i[\"request\"+o],l=i[\"cancel\"+o]||i[\"cancelRequest\"+o],c=0;!s&&c<a.length;c++)s=i[a[c]+\"Request\"+o],l=i[a[c]+\"Cancel\"+o]||i[a[c]+\"CancelRequest\"+o];if(!s||!l){var u=0,f=0,h=[];s=function(t){if(0===h.length){var e=n(),r=Math.max(0,1e3/60-(e-u));u=r+e,setTimeout(function(){var t=h.slice(0);h.length=0;for(var e=0;e<t.length;e++)if(!t[e].cancelled)try{t[e].callback(u)}catch(t){setTimeout(function(){throw t},0)}},Math.round(r))}return h.push({handle:++f,callback:t,cancelled:!1}),f},l=function(t){for(var e=0;e<h.length;e++)h[e].handle===t&&(h[e].cancelled=!0)}}e.exports=function(t){return s.call(i,t)},e.exports.cancel=function(){l.apply(i,arguments)},e.exports.polyfill=function(t){t||(t=i),t.requestAnimationFrame=s,t.cancelAnimationFrame=l}}).call(this,\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{\"performance-now\":445}],468:[function(t,e,r){\"use strict\";var n=t(\"big-rat/add\");e.exports=function(t,e){for(var r=t.length,i=new Array(r),a=0;a<r;++a)i[a]=n(t[a],e[a]);return i}},{\"big-rat/add\":63}],469:[function(t,e,r){\"use strict\";e.exports=function(t){for(var e=new Array(t.length),r=0;r<t.length;++r)e[r]=n(t[r]);return e};var n=t(\"big-rat\")},{\"big-rat\":66}],470:[function(t,e,r){\"use strict\";var n=t(\"big-rat\"),i=t(\"big-rat/mul\");e.exports=function(t,e){for(var r=n(e),a=t.length,o=new Array(a),s=0;s<a;++s)o[s]=i(t[s],r);return o}},{\"big-rat\":66,\"big-rat/mul\":75}],471:[function(t,e,r){\"use strict\";var n=t(\"big-rat/sub\");e.exports=function(t,e){for(var r=t.length,i=new Array(r),a=0;a<r;++a)i[a]=n(t[a],e[a]);return i}},{\"big-rat/sub\":77}],472:[function(t,e,r){\"use strict\";var n=t(\"compare-cell\"),i=t(\"compare-oriented-cell\"),a=t(\"cell-orientation\");e.exports=function(t){t.sort(i);for(var e=t.length,r=0,o=0;o<e;++o){var s=t[o],l=a(s);if(0!==l){if(r>0){var c=t[r-1];if(0===n(s,c)&&a(c)!==l){r-=1;continue}}t[r++]=s}}return t.length=r,t}},{\"cell-orientation\":100,\"compare-cell\":116,\"compare-oriented-cell\":117}],473:[function(t,e,r){\"use strict\";var n=t(\"array-bounds\"),i=t(\"color-normalize\"),a=t(\"update-diff\"),o=t(\"pick-by-alias\"),s=t(\"object-assign\"),l=t(\"flatten-vertex-data\"),c=t(\"to-float32\"),u=c.float32,f=c.fract32;e.exports=function(t,e){\"function\"==typeof t?(e||(e={}),e.regl=t):e=t;e.length&&(e.positions=e);if(!(t=e.regl).hasExtension(\"ANGLE_instanced_arrays\"))throw Error(\"regl-error2d: `ANGLE_instanced_arrays` extension should be enabled\");var r,c,p,d,g,v,m=t._gl,y={color:\"black\",capSize:5,lineWidth:1,opacity:1,viewport:null,range:null,offset:0,count:0,bounds:null,positions:[],errors:[]},x=[];return d=t.buffer({usage:\"dynamic\",type:\"uint8\",data:new Uint8Array(0)}),c=t.buffer({usage:\"dynamic\",type:\"float\",data:new Uint8Array(0)}),p=t.buffer({usage:\"dynamic\",type:\"float\",data:new Uint8Array(0)}),g=t.buffer({usage:\"dynamic\",type:\"float\",data:new Uint8Array(0)}),v=t.buffer({usage:\"static\",type:\"float\",data:h}),k(e),r=t({vert:\"\\n\\t\\tprecision highp float;\\n\\n\\t\\tattribute vec2 position, positionFract;\\n\\t\\tattribute vec4 error;\\n\\t\\tattribute vec4 color;\\n\\n\\t\\tattribute vec2 direction, lineOffset, capOffset;\\n\\n\\t\\tuniform vec4 viewport;\\n\\t\\tuniform float lineWidth, capSize;\\n\\t\\tuniform vec2 scale, scaleFract, translate, translateFract;\\n\\n\\t\\tvarying vec4 fragColor;\\n\\n\\t\\tvoid main() {\\n\\t\\t\\tfragColor = color / 255.;\\n\\n\\t\\t\\tvec2 pixelOffset = lineWidth * lineOffset + (capSize + lineWidth) * capOffset;\\n\\n\\t\\t\\tvec2 dxy = -step(.5, direction.xy) * error.xz + step(direction.xy, vec2(-.5)) * error.yw;\\n\\n\\t\\t\\tvec2 position = position + dxy;\\n\\n\\t\\t\\tvec2 pos = (position + translate) * scale\\n\\t\\t\\t\\t+ (positionFract + translateFract) * scale\\n\\t\\t\\t\\t+ (position + translate) * scaleFract\\n\\t\\t\\t\\t+ (positionFract + translateFract) * scaleFract;\\n\\n\\t\\t\\tpos += pixelOffset / viewport.zw;\\n\\n\\t\\t\\tgl_Position = vec4(pos * 2. - 1., 0, 1);\\n\\t\\t}\\n\\t\\t\",frag:\"\\n\\t\\tprecision mediump float;\\n\\n\\t\\tvarying vec4 fragColor;\\n\\n\\t\\tuniform float opacity;\\n\\n\\t\\tvoid main() {\\n\\t\\t\\tgl_FragColor = fragColor;\\n\\t\\t\\tgl_FragColor.a *= opacity;\\n\\t\\t}\\n\\t\\t\",uniforms:{range:t.prop(\"range\"),lineWidth:t.prop(\"lineWidth\"),capSize:t.prop(\"capSize\"),opacity:t.prop(\"opacity\"),scale:t.prop(\"scale\"),translate:t.prop(\"translate\"),scaleFract:t.prop(\"scaleFract\"),translateFract:t.prop(\"translateFract\"),viewport:function(t,e){return[e.viewport.x,e.viewport.y,t.viewportWidth,t.viewportHeight]}},attributes:{color:{buffer:d,offset:function(t,e){return 4*e.offset},divisor:1},position:{buffer:c,offset:function(t,e){return 8*e.offset},divisor:1},positionFract:{buffer:p,offset:function(t,e){return 8*e.offset},divisor:1},error:{buffer:g,offset:function(t,e){return 16*e.offset},divisor:1},direction:{buffer:v,stride:24,offset:0},lineOffset:{buffer:v,stride:24,offset:8},capOffset:{buffer:v,stride:24,offset:16}},primitive:\"triangles\",blend:{enable:!0,color:[0,0,0,0],equation:{rgb:\"add\",alpha:\"add\"},func:{srcRGB:\"src alpha\",dstRGB:\"one minus src alpha\",srcAlpha:\"one minus dst alpha\",dstAlpha:\"one\"}},depth:{enable:!1},scissor:{enable:!0,box:t.prop(\"viewport\")},viewport:t.prop(\"viewport\"),stencil:!1,instances:t.prop(\"count\"),count:h.length}),s(b,{update:k,draw:_,destroy:M,regl:t,gl:m,canvas:m.canvas,groups:x}),b;function b(t){t?k(t):null===t&&M(),_()}function _(e){if(\"number\"==typeof e)return w(e);e&&!Array.isArray(e)&&(e=[e]),t._refresh(),x.forEach(function(t,r){t&&(e&&(e[r]?t.draw=!0:t.draw=!1),t.draw?w(r):t.draw=!0)})}function w(t){\"number\"==typeof t&&(t=x[t]),null!=t&&t&&t.count&&t.color&&t.opacity&&t.positions&&t.positions.length>1&&(t.scaleRatio=[t.scale[0]*t.viewport.width,t.scale[1]*t.viewport.height],r(t),t.after&&t.after(t))}function k(t){if(t){null!=t.length?\"number\"==typeof t[0]&&(t=[{positions:t}]):Array.isArray(t)||(t=[t]);var e=0,r=0;if(b.groups=x=t.map(function(t,c){var u=x[c];return t?(\"function\"==typeof t?t={after:t}:\"number\"==typeof t[0]&&(t={positions:t}),t=o(t,{color:\"color colors fill\",capSize:\"capSize cap capsize cap-size\",lineWidth:\"lineWidth line-width width line thickness\",opacity:\"opacity alpha\",range:\"range dataBox\",viewport:\"viewport viewBox\",errors:\"errors error\",positions:\"positions position data points\"}),u||(x[c]=u={id:c,scale:null,translate:null,scaleFract:null,translateFract:null,draw:!0},t=s({},y,t)),a(u,t,[{lineWidth:function(t){return.5*+t},capSize:function(t){return.5*+t},opacity:parseFloat,errors:function(t){return t=l(t),r+=t.length,t},positions:function(t,r){return t=l(t,\"float64\"),r.count=Math.floor(t.length/2),r.bounds=n(t,2),r.offset=e,e+=r.count,t}},{color:function(t,e){var r=e.count;if(t||(t=\"transparent\"),!Array.isArray(t)||\"number\"==typeof t[0]){var n=t;t=Array(r);for(var a=0;a<r;a++)t[a]=n}if(t.length<r)throw Error(\"Not enough colors\");for(var o=new Uint8Array(4*r),s=0;s<r;s++){var l=i(t[s],\"uint8\");o.set(l,4*s)}return o},range:function(t,e,r){var n=e.bounds;return t||(t=n),e.scale=[1/(t[2]-t[0]),1/(t[3]-t[1])],e.translate=[-t[0],-t[1]],e.scaleFract=f(e.scale),e.translateFract=f(e.translate),t},viewport:function(t){var e;return Array.isArray(t)?e={x:t[0],y:t[1],width:t[2]-t[0],height:t[3]-t[1]}:t?(e={x:t.x||t.left||0,y:t.y||t.top||0},t.right?e.width=t.right-e.x:e.width=t.w||t.width||0,t.bottom?e.height=t.bottom-e.y:e.height=t.h||t.height||0):e={x:0,y:0,width:m.drawingBufferWidth,height:m.drawingBufferHeight},e}}]),u):u}),e||r){var h=x.reduce(function(t,e,r){return t+(e?e.count:0)},0),v=new Float64Array(2*h),_=new Uint8Array(4*h),w=new Float32Array(4*h);x.forEach(function(t,e){if(t){var r=t.positions,n=t.count,i=t.offset,a=t.color,o=t.errors;n&&(_.set(a,4*i),w.set(o,4*i),v.set(r,2*i))}}),c(u(v)),p(f(v)),d(_),g(w)}}}function M(){c.destroy(),p.destroy(),d.destroy(),g.destroy(),v.destroy()}};var h=[[1,0,0,1,0,0],[1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,1,0,0],[1,0,0,1,0,0],[1,0,-1,0,0,1],[1,0,-1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,1],[1,0,-1,0,0,1],[-1,0,-1,0,0,1],[-1,0,-1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,1],[-1,0,-1,0,0,1],[0,1,1,0,0,0],[0,1,-1,0,0,0],[0,-1,-1,0,0,0],[0,-1,-1,0,0,0],[0,1,1,0,0,0],[0,-1,1,0,0,0],[0,1,0,-1,1,0],[0,1,0,-1,-1,0],[0,1,0,1,-1,0],[0,1,0,1,1,0],[0,1,0,-1,1,0],[0,1,0,1,-1,0],[0,-1,0,-1,1,0],[0,-1,0,-1,-1,0],[0,-1,0,1,-1,0],[0,-1,0,1,1,0],[0,-1,0,-1,1,0],[0,-1,0,1,-1,0]]},{\"array-bounds\":53,\"color-normalize\":108,\"flatten-vertex-data\":216,\"object-assign\":437,\"pick-by-alias\":448,\"to-float32\":515,\"update-diff\":526}],474:[function(t,e,r){\"use strict\";var n=t(\"color-normalize\"),i=t(\"array-bounds\"),a=t(\"object-assign\"),o=t(\"glslify\"),s=t(\"pick-by-alias\"),l=t(\"flatten-vertex-data\"),c=t(\"earcut\"),u=t(\"array-normalize\"),f=t(\"to-float32\"),h=f.float32,p=f.fract32,d=t(\"es6-weak-map\"),g=t(\"parse-rect\");function v(t,e){if(!(this instanceof v))return new v(t,e);if(\"function\"==typeof t?(e||(e={}),e.regl=t):e=t,e.length&&(e.positions=e),!(t=e.regl).hasExtension(\"ANGLE_instanced_arrays\"))throw Error(\"regl-error2d: `ANGLE_instanced_arrays` extension should be enabled\");this.gl=t._gl,this.regl=t,this.passes=[],this.shaders=v.shaders.has(t)?v.shaders.get(t):v.shaders.set(t,v.createShaders(t)).get(t),this.update(e)}e.exports=v,v.dashMult=2,v.maxPatternLength=256,v.precisionThreshold=3e6,v.maxPoints=1e4,v.maxLines=2048,v.shaders=new d,v.createShaders=function(t){var e,r=t.buffer({usage:\"static\",type:\"float\",data:[0,1,0,0,1,1,1,0]}),n={primitive:\"triangle strip\",instances:t.prop(\"count\"),count:4,offset:0,uniforms:{miterMode:function(t,e){return\"round\"===e.join?2:1},miterLimit:t.prop(\"miterLimit\"),scale:t.prop(\"scale\"),scaleFract:t.prop(\"scaleFract\"),translateFract:t.prop(\"translateFract\"),translate:t.prop(\"translate\"),thickness:t.prop(\"thickness\"),dashPattern:t.prop(\"dashTexture\"),opacity:t.prop(\"opacity\"),pixelRatio:t.context(\"pixelRatio\"),id:t.prop(\"id\"),dashSize:t.prop(\"dashLength\"),viewport:function(t,e){return[e.viewport.x,e.viewport.y,t.viewportWidth,t.viewportHeight]},depth:t.prop(\"depth\")},blend:{enable:!0,color:[0,0,0,0],equation:{rgb:\"add\",alpha:\"add\"},func:{srcRGB:\"src alpha\",dstRGB:\"one minus src alpha\",srcAlpha:\"one minus dst alpha\",dstAlpha:\"one\"}},depth:{enable:function(t,e){return!e.overlay}},stencil:{enable:!1},scissor:{enable:!0,box:t.prop(\"viewport\")},viewport:t.prop(\"viewport\")},i=t(a({vert:o([\"precision highp float;\\n#define GLSLIFY 1\\n\\nattribute vec2 aCoord, bCoord, aCoordFract, bCoordFract;\\nattribute vec4 color;\\nattribute float lineEnd, lineTop;\\n\\nuniform vec2 scale, scaleFract, translate, translateFract;\\nuniform float thickness, pixelRatio, id, depth;\\nuniform vec4 viewport;\\n\\nvarying vec4 fragColor;\\nvarying vec2 tangent;\\n\\nvec2 project(vec2 position, vec2 positionFract, vec2 scale, vec2 scaleFract, vec2 translate, vec2 translateFract) {\\n\\t// the order is important\\n\\treturn position * scale + translate\\n + positionFract * scale + translateFract\\n + position * scaleFract\\n + positionFract * scaleFract;\\n}\\n\\nvoid main() {\\n\\tfloat lineStart = 1. - lineEnd;\\n\\tfloat lineOffset = lineTop * 2. - 1.;\\n\\n\\tvec2 diff = (bCoord + bCoordFract - aCoord - aCoordFract);\\n\\ttangent = normalize(diff * scale * viewport.zw);\\n\\tvec2 normal = vec2(-tangent.y, tangent.x);\\n\\n\\tvec2 position = project(aCoord, aCoordFract, scale, scaleFract, translate, translateFract) * lineStart\\n\\t\\t+ project(bCoord, bCoordFract, scale, scaleFract, translate, translateFract) * lineEnd\\n\\n\\t\\t+ thickness * normal * .5 * lineOffset / viewport.zw;\\n\\n\\tgl_Position = vec4(position * 2.0 - 1.0, depth, 1);\\n\\n\\tfragColor = color / 255.;\\n}\\n\"]),frag:o([\"precision highp float;\\n#define GLSLIFY 1\\n\\nuniform sampler2D dashPattern;\\n\\nuniform float dashSize, pixelRatio, thickness, opacity, id;\\n\\nvarying vec4 fragColor;\\nvarying vec2 tangent;\\n\\nvoid main() {\\n\\tfloat alpha = 1.;\\n\\n\\tfloat t = fract(dot(tangent, gl_FragCoord.xy) / dashSize) * .5 + .25;\\n\\tfloat dash = texture2D(dashPattern, vec2(t, .5)).r;\\n\\n\\tgl_FragColor = fragColor;\\n\\tgl_FragColor.a *= alpha * opacity * dash;\\n}\\n\"]),attributes:{lineEnd:{buffer:r,divisor:0,stride:8,offset:0},lineTop:{buffer:r,divisor:0,stride:8,offset:4},aCoord:{buffer:t.prop(\"positionBuffer\"),stride:8,offset:8,divisor:1},bCoord:{buffer:t.prop(\"positionBuffer\"),stride:8,offset:16,divisor:1},aCoordFract:{buffer:t.prop(\"positionFractBuffer\"),stride:8,offset:8,divisor:1},bCoordFract:{buffer:t.prop(\"positionFractBuffer\"),stride:8,offset:16,divisor:1},color:{buffer:t.prop(\"colorBuffer\"),stride:4,offset:0,divisor:1}}},n));try{e=t(a({cull:{enable:!0,face:\"back\"},vert:o([\"precision highp float;\\n#define GLSLIFY 1\\n\\nattribute vec2 aCoord, bCoord, nextCoord, prevCoord;\\nattribute vec4 aColor, bColor;\\nattribute float lineEnd, lineTop;\\n\\nuniform vec2 scale, translate;\\nuniform float thickness, pixelRatio, id, depth;\\nuniform vec4 viewport;\\nuniform float miterLimit, miterMode;\\n\\nvarying vec4 fragColor;\\nvarying vec4 startCutoff, endCutoff;\\nvarying vec2 tangent;\\nvarying vec2 startCoord, endCoord;\\nvarying float enableStartMiter, enableEndMiter;\\n\\nconst float REVERSE_THRESHOLD = -.875;\\nconst float MIN_DIFF = 1e-6;\\n\\n// TODO: possible optimizations: avoid overcalculating all for vertices and calc just one instead\\n// TODO: precalculate dot products, normalize things beforehead etc.\\n// TODO: refactor to rectangular algorithm\\n\\nfloat distToLine(vec2 p, vec2 a, vec2 b) {\\n\\tvec2 diff = b - a;\\n\\tvec2 perp = normalize(vec2(-diff.y, diff.x));\\n\\treturn dot(p - a, perp);\\n}\\n\\nbool isNaN( float val ){\\n return ( val < 0.0 || 0.0 < val || val == 0.0 ) ? false : true;\\n}\\n\\nvoid main() {\\n\\tvec2 aCoord = aCoord, bCoord = bCoord, prevCoord = prevCoord, nextCoord = nextCoord;\\n\\n vec2 adjustedScale;\\n adjustedScale.x = (abs(scale.x) < MIN_DIFF) ? MIN_DIFF : scale.x;\\n adjustedScale.y = (abs(scale.y) < MIN_DIFF) ? MIN_DIFF : scale.y;\\n\\n vec2 scaleRatio = adjustedScale * viewport.zw;\\n\\tvec2 normalWidth = thickness / scaleRatio;\\n\\n\\tfloat lineStart = 1. - lineEnd;\\n\\tfloat lineBot = 1. - lineTop;\\n\\n\\tfragColor = (lineStart * aColor + lineEnd * bColor) / 255.;\\n\\n\\tif (isNaN(aCoord.x) || isNaN(aCoord.y) || isNaN(bCoord.x) || isNaN(bCoord.y)) return;\\n\\n\\tif (aCoord == prevCoord) prevCoord = aCoord + normalize(bCoord - aCoord);\\n\\tif (bCoord == nextCoord) nextCoord = bCoord - normalize(bCoord - aCoord);\\n\\n\\tvec2 prevDiff = aCoord - prevCoord;\\n\\tvec2 currDiff = bCoord - aCoord;\\n\\tvec2 nextDiff = nextCoord - bCoord;\\n\\n\\tvec2 prevTangent = normalize(prevDiff * scaleRatio);\\n\\tvec2 currTangent = normalize(currDiff * scaleRatio);\\n\\tvec2 nextTangent = normalize(nextDiff * scaleRatio);\\n\\n\\tvec2 prevNormal = vec2(-prevTangent.y, prevTangent.x);\\n\\tvec2 currNormal = vec2(-currTangent.y, currTangent.x);\\n\\tvec2 nextNormal = vec2(-nextTangent.y, nextTangent.x);\\n\\n\\tvec2 startJoinDirection = normalize(prevTangent - currTangent);\\n\\tvec2 endJoinDirection = normalize(currTangent - nextTangent);\\n\\n\\t// collapsed/unidirectional segment cases\\n\\t// FIXME: there should be more elegant solution\\n\\tvec2 prevTanDiff = abs(prevTangent - currTangent);\\n\\tvec2 nextTanDiff = abs(nextTangent - currTangent);\\n\\tif (max(prevTanDiff.x, prevTanDiff.y) < MIN_DIFF) {\\n\\t\\tstartJoinDirection = currNormal;\\n\\t}\\n\\tif (max(nextTanDiff.x, nextTanDiff.y) < MIN_DIFF) {\\n\\t\\tendJoinDirection = currNormal;\\n\\t}\\n\\tif (aCoord == bCoord) {\\n\\t\\tendJoinDirection = startJoinDirection;\\n\\t\\tcurrNormal = prevNormal;\\n\\t\\tcurrTangent = prevTangent;\\n\\t}\\n\\n\\ttangent = currTangent;\\n\\n\\t//calculate join shifts relative to normals\\n\\tfloat startJoinShift = dot(currNormal, startJoinDirection);\\n\\tfloat endJoinShift = dot(currNormal, endJoinDirection);\\n\\n\\tfloat startMiterRatio = abs(1. / startJoinShift);\\n\\tfloat endMiterRatio = abs(1. / endJoinShift);\\n\\n\\tvec2 startJoin = startJoinDirection * startMiterRatio;\\n\\tvec2 endJoin = endJoinDirection * endMiterRatio;\\n\\n\\tvec2 startTopJoin, startBotJoin, endTopJoin, endBotJoin;\\n\\tstartTopJoin = sign(startJoinShift) * startJoin * .5;\\n\\tstartBotJoin = -startTopJoin;\\n\\n\\tendTopJoin = sign(endJoinShift) * endJoin * .5;\\n\\tendBotJoin = -endTopJoin;\\n\\n\\tvec2 aTopCoord = aCoord + normalWidth * startTopJoin;\\n\\tvec2 bTopCoord = bCoord + normalWidth * endTopJoin;\\n\\tvec2 aBotCoord = aCoord + normalWidth * startBotJoin;\\n\\tvec2 bBotCoord = bCoord + normalWidth * endBotJoin;\\n\\n\\t//miter anti-clipping\\n\\tfloat baClipping = distToLine(bCoord, aCoord, aBotCoord) / dot(normalize(normalWidth * endBotJoin), normalize(normalWidth.yx * vec2(-startBotJoin.y, startBotJoin.x)));\\n\\tfloat abClipping = distToLine(aCoord, bCoord, bTopCoord) / dot(normalize(normalWidth * startBotJoin), normalize(normalWidth.yx * vec2(-endBotJoin.y, endBotJoin.x)));\\n\\n\\t//prevent close to reverse direction switch\\n\\tbool prevReverse = dot(currTangent, prevTangent) <= REVERSE_THRESHOLD && abs(dot(currTangent, prevNormal)) * min(length(prevDiff), length(currDiff)) < length(normalWidth * currNormal);\\n\\tbool nextReverse = dot(currTangent, nextTangent) <= REVERSE_THRESHOLD && abs(dot(currTangent, nextNormal)) * min(length(nextDiff), length(currDiff)) < length(normalWidth * currNormal);\\n\\n\\tif (prevReverse) {\\n\\t\\t//make join rectangular\\n\\t\\tvec2 miterShift = normalWidth * startJoinDirection * miterLimit * .5;\\n\\t\\tfloat normalAdjust = 1. - min(miterLimit / startMiterRatio, 1.);\\n\\t\\taBotCoord = aCoord + miterShift - normalAdjust * normalWidth * currNormal * .5;\\n\\t\\taTopCoord = aCoord + miterShift + normalAdjust * normalWidth * currNormal * .5;\\n\\t}\\n\\telse if (!nextReverse && baClipping > 0. && baClipping < length(normalWidth * endBotJoin)) {\\n\\t\\t//handle miter clipping\\n\\t\\tbTopCoord -= normalWidth * endTopJoin;\\n\\t\\tbTopCoord += normalize(endTopJoin * normalWidth) * baClipping;\\n\\t}\\n\\n\\tif (nextReverse) {\\n\\t\\t//make join rectangular\\n\\t\\tvec2 miterShift = normalWidth * endJoinDirection * miterLimit * .5;\\n\\t\\tfloat normalAdjust = 1. - min(miterLimit / endMiterRatio, 1.);\\n\\t\\tbBotCoord = bCoord + miterShift - normalAdjust * normalWidth * currNormal * .5;\\n\\t\\tbTopCoord = bCoord + miterShift + normalAdjust * normalWidth * currNormal * .5;\\n\\t}\\n\\telse if (!prevReverse && abClipping > 0. && abClipping < length(normalWidth * startBotJoin)) {\\n\\t\\t//handle miter clipping\\n\\t\\taBotCoord -= normalWidth * startBotJoin;\\n\\t\\taBotCoord += normalize(startBotJoin * normalWidth) * abClipping;\\n\\t}\\n\\n\\tvec2 aTopPosition = (aTopCoord) * adjustedScale + translate;\\n\\tvec2 aBotPosition = (aBotCoord) * adjustedScale + translate;\\n\\n\\tvec2 bTopPosition = (bTopCoord) * adjustedScale + translate;\\n\\tvec2 bBotPosition = (bBotCoord) * adjustedScale + translate;\\n\\n\\t//position is normalized 0..1 coord on the screen\\n\\tvec2 position = (aTopPosition * lineTop + aBotPosition * lineBot) * lineStart + (bTopPosition * lineTop + bBotPosition * lineBot) * lineEnd;\\n\\n\\tstartCoord = aCoord * scaleRatio + translate * viewport.zw + viewport.xy;\\n\\tendCoord = bCoord * scaleRatio + translate * viewport.zw + viewport.xy;\\n\\n\\tgl_Position = vec4(position * 2.0 - 1.0, depth, 1);\\n\\n\\tenableStartMiter = step(dot(currTangent, prevTangent), .5);\\n\\tenableEndMiter = step(dot(currTangent, nextTangent), .5);\\n\\n\\t//bevel miter cutoffs\\n\\tif (miterMode == 1.) {\\n\\t\\tif (enableStartMiter == 1.) {\\n\\t\\t\\tvec2 startMiterWidth = vec2(startJoinDirection) * thickness * miterLimit * .5;\\n\\t\\t\\tstartCutoff = vec4(aCoord, aCoord);\\n\\t\\t\\tstartCutoff.zw += vec2(-startJoinDirection.y, startJoinDirection.x) / scaleRatio;\\n\\t\\t\\tstartCutoff = startCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw;\\n\\t\\t\\tstartCutoff += viewport.xyxy;\\n\\t\\t\\tstartCutoff += startMiterWidth.xyxy;\\n\\t\\t}\\n\\n\\t\\tif (enableEndMiter == 1.) {\\n\\t\\t\\tvec2 endMiterWidth = vec2(endJoinDirection) * thickness * miterLimit * .5;\\n\\t\\t\\tendCutoff = vec4(bCoord, bCoord);\\n\\t\\t\\tendCutoff.zw += vec2(-endJoinDirection.y, endJoinDirection.x) / scaleRatio;\\n\\t\\t\\tendCutoff = endCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw;\\n\\t\\t\\tendCutoff += viewport.xyxy;\\n\\t\\t\\tendCutoff += endMiterWidth.xyxy;\\n\\t\\t}\\n\\t}\\n\\n\\t//round miter cutoffs\\n\\telse if (miterMode == 2.) {\\n\\t\\tif (enableStartMiter == 1.) {\\n\\t\\t\\tvec2 startMiterWidth = vec2(startJoinDirection) * thickness * abs(dot(startJoinDirection, currNormal)) * .5;\\n\\t\\t\\tstartCutoff = vec4(aCoord, aCoord);\\n\\t\\t\\tstartCutoff.zw += vec2(-startJoinDirection.y, startJoinDirection.x) / scaleRatio;\\n\\t\\t\\tstartCutoff = startCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw;\\n\\t\\t\\tstartCutoff += viewport.xyxy;\\n\\t\\t\\tstartCutoff += startMiterWidth.xyxy;\\n\\t\\t}\\n\\n\\t\\tif (enableEndMiter == 1.) {\\n\\t\\t\\tvec2 endMiterWidth = vec2(endJoinDirection) * thickness * abs(dot(endJoinDirection, currNormal)) * .5;\\n\\t\\t\\tendCutoff = vec4(bCoord, bCoord);\\n\\t\\t\\tendCutoff.zw += vec2(-endJoinDirection.y, endJoinDirection.x) / scaleRatio;\\n\\t\\t\\tendCutoff = endCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw;\\n\\t\\t\\tendCutoff += viewport.xyxy;\\n\\t\\t\\tendCutoff += endMiterWidth.xyxy;\\n\\t\\t}\\n\\t}\\n}\\n\"]),frag:o([\"precision highp float;\\n#define GLSLIFY 1\\n\\nuniform sampler2D dashPattern;\\nuniform float dashSize, pixelRatio, thickness, opacity, id, miterMode;\\n\\nvarying vec4 fragColor;\\nvarying vec2 tangent;\\nvarying vec4 startCutoff, endCutoff;\\nvarying vec2 startCoord, endCoord;\\nvarying float enableStartMiter, enableEndMiter;\\n\\nfloat distToLine(vec2 p, vec2 a, vec2 b) {\\n\\tvec2 diff = b - a;\\n\\tvec2 perp = normalize(vec2(-diff.y, diff.x));\\n\\treturn dot(p - a, perp);\\n}\\n\\nvoid main() {\\n\\tfloat alpha = 1., distToStart, distToEnd;\\n\\tfloat cutoff = thickness * .5;\\n\\n\\t//bevel miter\\n\\tif (miterMode == 1.) {\\n\\t\\tif (enableStartMiter == 1.) {\\n\\t\\t\\tdistToStart = distToLine(gl_FragCoord.xy, startCutoff.xy, startCutoff.zw);\\n\\t\\t\\tif (distToStart < -1.) {\\n\\t\\t\\t\\tdiscard;\\n\\t\\t\\t\\treturn;\\n\\t\\t\\t}\\n\\t\\t\\talpha *= min(max(distToStart + 1., 0.), 1.);\\n\\t\\t}\\n\\n\\t\\tif (enableEndMiter == 1.) {\\n\\t\\t\\tdistToEnd = distToLine(gl_FragCoord.xy, endCutoff.xy, endCutoff.zw);\\n\\t\\t\\tif (distToEnd < -1.) {\\n\\t\\t\\t\\tdiscard;\\n\\t\\t\\t\\treturn;\\n\\t\\t\\t}\\n\\t\\t\\talpha *= min(max(distToEnd + 1., 0.), 1.);\\n\\t\\t}\\n\\t}\\n\\n\\t// round miter\\n\\telse if (miterMode == 2.) {\\n\\t\\tif (enableStartMiter == 1.) {\\n\\t\\t\\tdistToStart = distToLine(gl_FragCoord.xy, startCutoff.xy, startCutoff.zw);\\n\\t\\t\\tif (distToStart < 0.) {\\n\\t\\t\\t\\tfloat radius = length(gl_FragCoord.xy - startCoord);\\n\\n\\t\\t\\t\\tif(radius > cutoff + .5) {\\n\\t\\t\\t\\t\\tdiscard;\\n\\t\\t\\t\\t\\treturn;\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\talpha -= smoothstep(cutoff - .5, cutoff + .5, radius);\\n\\t\\t\\t}\\n\\t\\t}\\n\\n\\t\\tif (enableEndMiter == 1.) {\\n\\t\\t\\tdistToEnd = distToLine(gl_FragCoord.xy, endCutoff.xy, endCutoff.zw);\\n\\t\\t\\tif (distToEnd < 0.) {\\n\\t\\t\\t\\tfloat radius = length(gl_FragCoord.xy - endCoord);\\n\\n\\t\\t\\t\\tif(radius > cutoff + .5) {\\n\\t\\t\\t\\t\\tdiscard;\\n\\t\\t\\t\\t\\treturn;\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\talpha -= smoothstep(cutoff - .5, cutoff + .5, radius);\\n\\t\\t\\t}\\n\\t\\t}\\n\\t}\\n\\n\\tfloat t = fract(dot(tangent, gl_FragCoord.xy) / dashSize) * .5 + .25;\\n\\tfloat dash = texture2D(dashPattern, vec2(t, .5)).r;\\n\\n\\tgl_FragColor = fragColor;\\n\\tgl_FragColor.a *= alpha * opacity * dash;\\n}\\n\"]),attributes:{lineEnd:{buffer:r,divisor:0,stride:8,offset:0},lineTop:{buffer:r,divisor:0,stride:8,offset:4},aColor:{buffer:t.prop(\"colorBuffer\"),stride:4,offset:0,divisor:1},bColor:{buffer:t.prop(\"colorBuffer\"),stride:4,offset:4,divisor:1},prevCoord:{buffer:t.prop(\"positionBuffer\"),stride:8,offset:0,divisor:1},aCoord:{buffer:t.prop(\"positionBuffer\"),stride:8,offset:8,divisor:1},bCoord:{buffer:t.prop(\"positionBuffer\"),stride:8,offset:16,divisor:1},nextCoord:{buffer:t.prop(\"positionBuffer\"),stride:8,offset:24,divisor:1}}},n))}catch(t){e=i}return{fill:t({primitive:\"triangle\",elements:function(t,e){return e.triangles},offset:0,vert:o([\"precision highp float;\\n#define GLSLIFY 1\\n\\nattribute vec2 position, positionFract;\\n\\nuniform vec4 color;\\nuniform vec2 scale, scaleFract, translate, translateFract;\\nuniform float pixelRatio, id;\\nuniform vec4 viewport;\\nuniform float opacity;\\n\\nvarying vec4 fragColor;\\n\\nconst float MAX_LINES = 256.;\\n\\nvoid main() {\\n\\tfloat depth = (MAX_LINES - 4. - id) / (MAX_LINES);\\n\\n\\tvec2 position = position * scale + translate\\n + positionFract * scale + translateFract\\n + position * scaleFract\\n + positionFract * scaleFract;\\n\\n\\tgl_Position = vec4(position * 2.0 - 1.0, depth, 1);\\n\\n\\tfragColor = color / 255.;\\n\\tfragColor.a *= opacity;\\n}\\n\"]),frag:o([\"precision highp float;\\n#define GLSLIFY 1\\n\\nvarying vec4 fragColor;\\n\\nvoid main() {\\n\\tgl_FragColor = fragColor;\\n}\\n\"]),uniforms:{scale:t.prop(\"scale\"),color:t.prop(\"fill\"),scaleFract:t.prop(\"scaleFract\"),translateFract:t.prop(\"translateFract\"),translate:t.prop(\"translate\"),opacity:t.prop(\"opacity\"),pixelRatio:t.context(\"pixelRatio\"),id:t.prop(\"id\"),viewport:function(t,e){return[e.viewport.x,e.viewport.y,t.viewportWidth,t.viewportHeight]}},attributes:{position:{buffer:t.prop(\"positionBuffer\"),stride:8,offset:8},positionFract:{buffer:t.prop(\"positionFractBuffer\"),stride:8,offset:8}},blend:n.blend,depth:{enable:!1},scissor:n.scissor,stencil:n.stencil,viewport:n.viewport}),rect:i,miter:e}},v.defaults={dashes:null,join:\"miter\",miterLimit:1,thickness:10,cap:\"square\",color:\"black\",opacity:1,overlay:!1,viewport:null,range:null,close:!1,fill:null},v.prototype.render=function(){for(var t,e=[],r=arguments.length;r--;)e[r]=arguments[r];e.length&&(t=this).update.apply(t,e),this.draw()},v.prototype.draw=function(){for(var t=this,e=[],r=arguments.length;r--;)e[r]=arguments[r];return(e.length?e:this.passes).forEach(function(e,r){var n;if(e&&Array.isArray(e))return(n=t).draw.apply(n,e);\"number\"==typeof e&&(e=t.passes[e]),e&&e.count>1&&e.opacity&&(t.regl._refresh(),e.fill&&e.triangles&&e.triangles.length>2&&t.shaders.fill(e),e.thickness&&(e.scale[0]*e.viewport.width>v.precisionThreshold||e.scale[1]*e.viewport.height>v.precisionThreshold?t.shaders.rect(e):\"rect\"===e.join||!e.join&&(e.thickness<=2||e.count>=v.maxPoints)?t.shaders.rect(e):t.shaders.miter(e)))}),this},v.prototype.update=function(t){var e=this;if(t){null!=t.length?\"number\"==typeof t[0]&&(t=[{positions:t}]):Array.isArray(t)||(t=[t]);var r=this.regl,o=this.gl;if(t.forEach(function(t,f){var d=e.passes[f];if(void 0!==t)if(null!==t){if(\"number\"==typeof t[0]&&(t={positions:t}),t=s(t,{positions:\"positions points data coords\",thickness:\"thickness lineWidth lineWidths line-width linewidth width stroke-width strokewidth strokeWidth\",join:\"lineJoin linejoin join type mode\",miterLimit:\"miterlimit miterLimit\",dashes:\"dash dashes dasharray dash-array dashArray\",color:\"color colour stroke colors colours stroke-color strokeColor\",fill:\"fill fill-color fillColor\",opacity:\"alpha opacity\",overlay:\"overlay crease overlap intersect\",close:\"closed close closed-path closePath\",range:\"range dataBox\",viewport:\"viewport viewBox\",hole:\"holes hole hollow\"}),d||(e.passes[f]=d={id:f,scale:null,scaleFract:null,translate:null,translateFract:null,count:0,hole:[],depth:0,dashLength:1,dashTexture:r.texture({channels:1,data:new Uint8Array([255]),width:1,height:1,mag:\"linear\",min:\"linear\"}),colorBuffer:r.buffer({usage:\"dynamic\",type:\"uint8\",data:new Uint8Array}),positionBuffer:r.buffer({usage:\"dynamic\",type:\"float\",data:new Uint8Array}),positionFractBuffer:r.buffer({usage:\"dynamic\",type:\"float\",data:new Uint8Array})},t=a({},v.defaults,t)),null!=t.thickness&&(d.thickness=parseFloat(t.thickness)),null!=t.opacity&&(d.opacity=parseFloat(t.opacity)),null!=t.miterLimit&&(d.miterLimit=parseFloat(t.miterLimit)),null!=t.overlay&&(d.overlay=!!t.overlay,f<v.maxLines&&(d.depth=2*(v.maxLines-1-f%v.maxLines)/v.maxLines-1)),null!=t.join&&(d.join=t.join),null!=t.hole&&(d.hole=t.hole),null!=t.fill&&(d.fill=t.fill?n(t.fill,\"uint8\"):null),null!=t.viewport&&(d.viewport=g(t.viewport)),d.viewport||(d.viewport=g([o.drawingBufferWidth,o.drawingBufferHeight])),null!=t.close&&(d.close=t.close),null===t.positions&&(t.positions=[]),t.positions){var m,y;if(t.positions.x&&t.positions.y){var x=t.positions.x,b=t.positions.y;y=d.count=Math.max(x.length,b.length),m=new Float64Array(2*y);for(var _=0;_<y;_++)m[2*_]=x[_],m[2*_+1]=b[_]}else m=l(t.positions,\"float64\"),y=d.count=Math.floor(m.length/2);var w=d.bounds=i(m,2);if(d.fill){for(var k=[],M={},A=0,T=0,S=0,E=d.count;T<E;T++){var C=m[2*T],L=m[2*T+1];isNaN(C)||isNaN(L)||null==C||null==L?(C=m[2*A],L=m[2*A+1],M[T]=A):A=T,k[S++]=C,k[S++]=L}for(var z=c(k,d.hole||[]),O=0,I=z.length;O<I;O++)null!=M[z[O]]&&(z[O]=M[z[O]]);d.triangles=z}var P=new Float64Array(m);u(P,2,w);var D=new Float64Array(2*y+6);d.close?m[0]===m[2*y-2]&&m[1]===m[2*y-1]?(D[0]=P[2*y-4],D[1]=P[2*y-3]):(D[0]=P[2*y-2],D[1]=P[2*y-1]):(D[0]=P[0],D[1]=P[1]),D.set(P,2),d.close?m[0]===m[2*y-2]&&m[1]===m[2*y-1]?(D[2*y+2]=P[2],D[2*y+3]=P[3],d.count-=1):(D[2*y+2]=P[0],D[2*y+3]=P[1],D[2*y+4]=P[2],D[2*y+5]=P[3]):(D[2*y+2]=P[2*y-2],D[2*y+3]=P[2*y-1],D[2*y+4]=P[2*y-2],D[2*y+5]=P[2*y-1]),d.positionBuffer(h(D)),d.positionFractBuffer(p(D))}if(t.range?d.range=t.range:d.range||(d.range=d.bounds),(t.range||t.positions)&&d.count){var R=d.bounds,B=R[2]-R[0],F=R[3]-R[1],N=d.range[2]-d.range[0],j=d.range[3]-d.range[1];d.scale=[B/N,F/j],d.translate=[-d.range[0]/N+R[0]/N||0,-d.range[1]/j+R[1]/j||0],d.scaleFract=p(d.scale),d.translateFract=p(d.translate)}if(t.dashes){var V,U=0;if(!t.dashes||t.dashes.length<2)U=1,V=new Uint8Array([255,255,255,255,255,255,255,255]);else{U=0;for(var q=0;q<t.dashes.length;++q)U+=t.dashes[q];V=new Uint8Array(U*v.dashMult);for(var H=0,G=255,W=0;W<2;W++)for(var Y=0;Y<t.dashes.length;++Y){for(var X=0,Z=t.dashes[Y]*v.dashMult*.5;X<Z;++X)V[H++]=G;G^=255}}d.dashLength=U,d.dashTexture({channels:1,data:V,width:V.length,height:1,mag:\"linear\",min:\"linear\"},0,0)}if(t.color){var $=d.count,J=t.color;J||(J=\"transparent\");var K=new Uint8Array(4*$+4);if(Array.isArray(J)&&\"number\"!=typeof J[0]){for(var Q=0;Q<$;Q++){var tt=n(J[Q],\"uint8\");K.set(tt,4*Q)}K.set(n(J[0],\"uint8\"),4*$)}else for(var et=n(J,\"uint8\"),rt=0;rt<$+1;rt++)K.set(et,4*rt);d.colorBuffer({usage:\"dynamic\",type:\"uint8\",data:K})}}else e.passes[f]=null}),t.length<this.passes.length){for(var f=t.length;f<this.passes.length;f++){var d=e.passes[f];d&&(d.colorBuffer.destroy(),d.positionBuffer.destroy(),d.dashTexture.destroy())}this.passes.length=t.length}for(var m=[],y=0;y<this.passes.length;y++)null!==e.passes[y]&&m.push(e.passes[y]);return this.passes=m,this}},v.prototype.destroy=function(){return this.passes.forEach(function(t){t.colorBuffer.destroy(),t.positionBuffer.destroy(),t.dashTexture.destroy()}),this.passes.length=0,this}},{\"array-bounds\":53,\"array-normalize\":54,\"color-normalize\":108,earcut:156,\"es6-weak-map\":209,\"flatten-vertex-data\":216,glslify:392,\"object-assign\":437,\"parse-rect\":442,\"pick-by-alias\":448,\"to-float32\":515}],475:[function(t,e,r){\"use strict\";var n=t(\"./scatter\"),i=t(\"object-assign\");e.exports=function(t,e){var r=new n(t,e),a=r.render.bind(r);return i(a,{render:a,update:r.update.bind(r),draw:r.draw.bind(r),destroy:r.destroy.bind(r),regl:r.regl,gl:r.gl,canvas:r.gl.canvas,groups:r.groups,markers:r.markerCache,palette:r.palette}),a}},{\"./scatter\":476,\"object-assign\":437}],476:[function(t,e,r){\"use strict\";var n=t(\"color-normalize\"),i=t(\"array-bounds\"),a=t(\"color-id\"),o=t(\"point-cluster\"),s=t(\"object-assign\"),l=t(\"glslify\"),c=t(\"pick-by-alias\"),u=t(\"update-diff\"),f=t(\"flatten-vertex-data\"),h=t(\"is-iexplorer\"),p=t(\"to-float32\"),d=t(\"parse-rect\");function g(t,e){var r=this;if(!(this instanceof g))return new g(t,e);\"function\"==typeof t?(e||(e={}),e.regl=t):(e=t,t=null),e&&e.length&&(e.positions=e);var n,i=(t=e.regl)._gl,a=[];this.tooManyColors=h,n=t.texture({data:new Uint8Array(1020),width:255,height:1,type:\"uint8\",format:\"rgba\",wrapS:\"clamp\",wrapT:\"clamp\",mag:\"nearest\",min:\"nearest\"}),s(this,{regl:t,gl:i,groups:[],markerCache:[null],markerTextures:[null],palette:a,paletteIds:{},paletteTexture:n,maxColors:255,maxSize:100,canvas:i.canvas}),this.update(e);var o={uniforms:{pixelRatio:t.context(\"pixelRatio\"),palette:n,paletteSize:function(t,e){return[r.tooManyColors?0:255,n.height]},scale:t.prop(\"scale\"),scaleFract:t.prop(\"scaleFract\"),translate:t.prop(\"translate\"),translateFract:t.prop(\"translateFract\"),opacity:t.prop(\"opacity\"),marker:t.prop(\"markerTexture\")},attributes:{x:function(t,e){return e.xAttr||{buffer:e.positionBuffer,stride:8,offset:0}},y:function(t,e){return e.yAttr||{buffer:e.positionBuffer,stride:8,offset:4}},xFract:function(t,e){return e.xAttr?{constant:[0,0]}:{buffer:e.positionFractBuffer,stride:8,offset:0}},yFract:function(t,e){return e.yAttr?{constant:[0,0]}:{buffer:e.positionFractBuffer,stride:8,offset:4}},size:function(t,e){return e.size.length?{buffer:e.sizeBuffer,stride:2,offset:0}:{constant:[Math.round(255*e.size/r.maxSize)]}},borderSize:function(t,e){return e.borderSize.length?{buffer:e.sizeBuffer,stride:2,offset:1}:{constant:[Math.round(255*e.borderSize/r.maxSize)]}},colorId:function(t,e){return e.color.length?{buffer:e.colorBuffer,stride:r.tooManyColors?8:4,offset:0}:{constant:r.tooManyColors?a.slice(4*e.color,4*e.color+4):[e.color]}},borderColorId:function(t,e){return e.borderColor.length?{buffer:e.colorBuffer,stride:r.tooManyColors?8:4,offset:r.tooManyColors?4:2}:{constant:r.tooManyColors?a.slice(4*e.borderColor,4*e.borderColor+4):[e.borderColor]}},isActive:function(t,e){return!0===e.activation?{constant:[1]}:e.activation?e.activation:{constant:[0]}}},blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:\"src alpha\",dstRGB:\"one minus src alpha\",srcAlpha:\"one minus dst alpha\",dstAlpha:\"one\"}},scissor:{enable:!0,box:t.prop(\"viewport\")},viewport:t.prop(\"viewport\"),stencil:{enable:!1},depth:{enable:!1},elements:t.prop(\"elements\"),count:t.prop(\"count\"),offset:t.prop(\"offset\"),primitive:\"points\"},c=s({},o);c.frag=l([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nvarying vec4 fragColor, fragBorderColor;\\nvarying float fragWidth, fragBorderColorLevel, fragColorLevel;\\n\\nuniform sampler2D marker;\\nuniform float pixelRatio, opacity;\\n\\nfloat smoothStep(float x, float y) {\\n return 1.0 / (1.0 + exp(50.0*(x - y)));\\n}\\n\\nvoid main() {\\n float dist = texture2D(marker, gl_PointCoord).r, delta = fragWidth;\\n\\n // max-distance alpha\\n if (dist < 0.003) discard;\\n\\n // null-border case\\n if (fragBorderColorLevel == fragColorLevel || fragBorderColor.a == 0.) {\\n float colorAmt = smoothstep(.5 - delta, .5 + delta, dist);\\n gl_FragColor = vec4(fragColor.rgb, colorAmt * fragColor.a * opacity);\\n }\\n else {\\n float borderColorAmt = smoothstep(fragBorderColorLevel - delta, fragBorderColorLevel + delta, dist);\\n float colorAmt = smoothstep(fragColorLevel - delta, fragColorLevel + delta, dist);\\n\\n vec4 color = fragBorderColor;\\n color.a *= borderColorAmt;\\n color = mix(color, fragColor, colorAmt);\\n color.a *= opacity;\\n\\n gl_FragColor = color;\\n }\\n\\n}\\n\"]),c.vert=l([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute float x, y, xFract, yFract;\\nattribute float size, borderSize;\\nattribute vec4 colorId, borderColorId;\\nattribute float isActive;\\n\\nuniform vec2 scale, scaleFract, translate, translateFract, paletteSize;\\nuniform float pixelRatio;\\nuniform sampler2D palette;\\n\\nconst float maxSize = 100.;\\nconst float borderLevel = .5;\\n\\nvarying vec4 fragColor, fragBorderColor;\\nvarying float fragPointSize, fragBorderRadius,\\n fragWidth, fragBorderColorLevel, fragColorLevel;\\n\\nvec2 paletteCoord(float id) {\\n return vec2(\\n (mod(id, paletteSize.x) + .5) / paletteSize.x,\\n (floor(id / paletteSize.x) + .5) / paletteSize.y\\n );\\n}\\nvec2 paletteCoord(vec2 id) {\\n return vec2(\\n (id.x + .5) / paletteSize.x,\\n (id.y + .5) / paletteSize.y\\n );\\n}\\nvec4 getColor(vec4 id) {\\n // zero-palette means we deal with direct buffer\\n if (paletteSize.x == 0.) return id / 255.;\\n return texture2D(palette, paletteCoord(id.xy));\\n}\\n\\nvoid main() {\\n if (isActive == 0.) return;\\n\\n vec2 position = vec2(x, y);\\n vec2 positionFract = vec2(xFract, yFract);\\n\\n vec4 color = getColor(colorId);\\n vec4 borderColor = getColor(borderColorId);\\n\\n float size = size * maxSize / 255.;\\n float borderSize = borderSize * maxSize / 255.;\\n\\n gl_PointSize = 2. * size * pixelRatio;\\n fragPointSize = size * pixelRatio;\\n\\n vec2 pos = (position + translate) * scale\\n + (positionFract + translateFract) * scale\\n + (position + translate) * scaleFract\\n + (positionFract + translateFract) * scaleFract;\\n\\n gl_Position = vec4(pos * 2. - 1., 0, 1);\\n\\n fragColor = color;\\n fragBorderColor = borderColor;\\n fragWidth = 1. / gl_PointSize;\\n\\n fragBorderColorLevel = clamp(borderLevel - borderLevel * borderSize / size, 0., 1.);\\n fragColorLevel = clamp(borderLevel + (1. - borderLevel) * borderSize / size, 0., 1.);\\n}\\n\"]),this.drawMarker=t(c);var u=s({},o);u.frag=l([\"precision highp float;\\n#define GLSLIFY 1\\n\\nvarying vec4 fragColor, fragBorderColor;\\n\\nuniform float opacity;\\nvarying float fragBorderRadius, fragWidth;\\n\\nfloat smoothStep(float edge0, float edge1, float x) {\\n\\tfloat t;\\n\\tt = clamp((x - edge0) / (edge1 - edge0), 0.0, 1.0);\\n\\treturn t * t * (3.0 - 2.0 * t);\\n}\\n\\nvoid main() {\\n\\tfloat radius, alpha = 1.0, delta = fragWidth;\\n\\n\\tradius = length(2.0 * gl_PointCoord.xy - 1.0);\\n\\n\\tif (radius > 1.0 + delta) {\\n\\t\\tdiscard;\\n\\t}\\n\\n\\talpha -= smoothstep(1.0 - delta, 1.0 + delta, radius);\\n\\n\\tfloat borderRadius = fragBorderRadius;\\n\\tfloat ratio = smoothstep(borderRadius - delta, borderRadius + delta, radius);\\n\\tvec4 color = mix(fragColor, fragBorderColor, ratio);\\n\\tcolor.a *= alpha * opacity;\\n\\tgl_FragColor = color;\\n}\\n\"]),u.vert=l([\"precision highp float;\\n#define GLSLIFY 1\\n\\nattribute float x, y, xFract, yFract;\\nattribute float size, borderSize;\\nattribute vec4 colorId, borderColorId;\\nattribute float isActive;\\n\\nuniform vec2 scale, scaleFract, translate, translateFract;\\nuniform float pixelRatio;\\nuniform sampler2D palette;\\nuniform vec2 paletteSize;\\n\\nconst float maxSize = 100.;\\n\\nvarying vec4 fragColor, fragBorderColor;\\nvarying float fragBorderRadius, fragWidth;\\n\\nvec2 paletteCoord(float id) {\\n return vec2(\\n (mod(id, paletteSize.x) + .5) / paletteSize.x,\\n (floor(id / paletteSize.x) + .5) / paletteSize.y\\n );\\n}\\nvec2 paletteCoord(vec2 id) {\\n return vec2(\\n (id.x + .5) / paletteSize.x,\\n (id.y + .5) / paletteSize.y\\n );\\n}\\n\\nvec4 getColor(vec4 id) {\\n // zero-palette means we deal with direct buffer\\n if (paletteSize.x == 0.) return id / 255.;\\n return texture2D(palette, paletteCoord(id.xy));\\n}\\n\\nvoid main() {\\n // ignore inactive points\\n if (isActive == 0.) return;\\n\\n vec2 position = vec2(x, y);\\n vec2 positionFract = vec2(xFract, yFract);\\n\\n vec4 color = getColor(colorId);\\n vec4 borderColor = getColor(borderColorId);\\n\\n float size = size * maxSize / 255.;\\n float borderSize = borderSize * maxSize / 255.;\\n\\n gl_PointSize = (size + borderSize) * pixelRatio;\\n\\n vec2 pos = (position + translate) * scale\\n + (positionFract + translateFract) * scale\\n + (position + translate) * scaleFract\\n + (positionFract + translateFract) * scaleFract;\\n\\n gl_Position = vec4(pos * 2. - 1., 0, 1);\\n\\n fragBorderRadius = 1. - 2. * borderSize / (size + borderSize);\\n fragColor = color;\\n fragBorderColor = borderColor.a == 0. || borderSize == 0. ? vec4(color.rgb, 0.) : borderColor;\\n fragWidth = 1. / gl_PointSize;\\n}\\n\"]),h&&(u.frag=u.frag.replace(\"smoothstep\",\"smoothStep\"),c.frag=c.frag.replace(\"smoothstep\",\"smoothStep\")),this.drawCircle=t(u)}e.exports=g,g.defaults={color:\"black\",borderColor:\"transparent\",borderSize:0,size:12,opacity:1,marker:void 0,viewport:null,range:null,pixelSize:null,count:0,offset:0,bounds:null,positions:[],snap:1e4},g.prototype.render=function(){for(var t,e=[],r=arguments.length;r--;)e[r]=arguments[r];return e.length&&(t=this).update.apply(t,e),this.draw(),this},g.prototype.draw=function(){for(var t=this,e=[],r=arguments.length;r--;)e[r]=arguments[r];var n=this.groups;if(1===e.length&&Array.isArray(e[0])&&(null===e[0][0]||Array.isArray(e[0][0]))&&(e=e[0]),this.regl._refresh(),e.length)for(var i=0;i<e.length;i++)t.drawItem(i,e[i]);else n.forEach(function(e,r){t.drawItem(r)});return this},g.prototype.drawItem=function(t,e){var r=this.groups,n=r[t];if(\"number\"==typeof e&&(t=e,n=r[e],e=null),n&&n.count&&n.opacity){n.activation[0]&&this.drawCircle(this.getMarkerDrawOptions(0,n,e));for(var i=[],a=1;a<n.activation.length;a++)n.activation[a]&&(!0===n.activation[a]||n.activation[a].data.length)&&i.push.apply(i,this.getMarkerDrawOptions(a,n,e));i.length&&this.drawMarker(i)}},g.prototype.getMarkerDrawOptions=function(t,e,r){var n=e.range,i=e.tree,a=e.viewport,o=e.activation,l=e.selectionBuffer,c=e.count;this.regl;if(!i)return r?[s({},e,{markerTexture:this.markerTextures[t],activation:o[t],count:r.length,elements:r,offset:0})]:[s({},e,{markerTexture:this.markerTextures[t],activation:o[t],offset:0})];var u=[],f=i.range(n,{lod:!0,px:[(n[2]-n[0])/a.width,(n[3]-n[1])/a.height]});if(r){for(var h=o[t].data,p=new Uint8Array(c),d=0;d<r.length;d++){var g=r[d];p[g]=h?h[g]:1}l.subdata(p)}for(var v=f.length;v--;){var m=f[v],y=m[0],x=m[1];u.push(s({},e,{markerTexture:this.markerTextures[t],activation:r?l:o[t],offset:y,count:x-y}))}return u},g.prototype.update=function(){for(var t=this,e=[],r=arguments.length;r--;)e[r]=arguments[r];if(e.length){1===e.length&&Array.isArray(e[0])&&(e=e[0]);var n=this.groups,a=this.gl,l=this.regl,h=this.maxSize,v=this.maxColors,m=this.palette;this.groups=n=e.map(function(e,r){var y=n[r];if(void 0===e)return y;null===e?e={positions:null}:\"function\"==typeof e?e={ondraw:e}:\"number\"==typeof e[0]&&(e={positions:e}),null===(e=c(e,{positions:\"positions data points\",snap:\"snap cluster lod tree\",size:\"sizes size radius\",borderSize:\"borderSizes borderSize border-size bordersize borderWidth borderWidths border-width borderwidth stroke-width strokeWidth strokewidth outline\",color:\"colors color fill fill-color fillColor\",borderColor:\"borderColors borderColor stroke stroke-color strokeColor\",marker:\"markers marker shape\",range:\"range dataBox databox\",viewport:\"viewport viewPort viewBox viewbox\",opacity:\"opacity alpha transparency\",bounds:\"bound bounds boundaries limits\"})).positions&&(e.positions=[]),y||(n[r]=y={id:r,scale:null,translate:null,scaleFract:null,translateFract:null,activation:[],selectionBuffer:l.buffer({data:new Uint8Array(0),usage:\"stream\",type:\"uint8\"}),sizeBuffer:l.buffer({data:new Uint8Array(0),usage:\"dynamic\",type:\"uint8\"}),colorBuffer:l.buffer({data:new Uint8Array(0),usage:\"dynamic\",type:\"uint8\"}),positionBuffer:l.buffer({data:new Uint8Array(0),usage:\"dynamic\",type:\"float\"}),positionFractBuffer:l.buffer({data:new Uint8Array(0),usage:\"dynamic\",type:\"float\"})},e=s({},g.defaults,e)),!e.positions||\"marker\"in e||(e.marker=y.marker,delete y.marker),!e.marker||\"positions\"in e||(e.positions=y.positions,delete y.positions);var x=0,b=0;if(u(y,e,[{snap:!0,size:function(t,e){return null==t&&(t=g.defaults.size),x+=t&&t.length?1:0,t},borderSize:function(t,e){return null==t&&(t=g.defaults.borderSize),x+=t&&t.length?1:0,t},opacity:parseFloat,color:function(e,r){return null==e&&(e=g.defaults.color),e=t.updateColor(e),b++,e},borderColor:function(e,r){return null==e&&(e=g.defaults.borderColor),e=t.updateColor(e),b++,e},bounds:function(t,e,r){return\"range\"in r||(r.range=null),t},positions:function(t,e,r){var n=e.snap,a=e.positionBuffer,s=e.positionFractBuffer,c=e.selectionBuffer;if(t.x||t.y)return t.x.length?e.xAttr={buffer:l.buffer(t.x),offset:0,stride:4,count:t.x.length}:e.xAttr={buffer:t.x.buffer,offset:4*t.x.offset||0,stride:4*(t.x.stride||1),count:t.x.count},t.y.length?e.yAttr={buffer:l.buffer(t.y),offset:0,stride:4,count:t.y.length}:e.yAttr={buffer:t.y.buffer,offset:4*t.y.offset||0,stride:4*(t.y.stride||1),count:t.y.count},e.count=Math.max(e.xAttr.count,e.yAttr.count),t;t=f(t,\"float64\");var u=e.count=Math.floor(t.length/2),h=e.bounds=u?i(t,2):null;if(r.range||e.range||(delete e.range,r.range=h),r.marker||e.marker||(delete e.marker,r.marker=null),n&&(!0===n||u>n)?e.tree=o(t,{bounds:h}):n&&n.length&&(e.tree=n),e.tree){var d={primitive:\"points\",usage:\"static\",data:e.tree,type:\"uint32\"};e.elements?e.elements(d):e.elements=l.elements(d)}return a({data:p.float(t),usage:\"dynamic\"}),s({data:p.fract(t),usage:\"dynamic\"}),c({data:new Uint8Array(u),type:\"uint8\",usage:\"stream\"}),t}},{marker:function(e,r,n){var i=r.activation;if(i.forEach(function(t){return t&&t.destroy&&t.destroy()}),i.length=0,e&&\"number\"!=typeof e[0]){for(var a=[],o=0,s=Math.min(e.length,r.count);o<s;o++){var c=t.addMarker(e[o]);a[c]||(a[c]=new Uint8Array(r.count)),a[c][o]=1}for(var u=0;u<a.length;u++)if(a[u]){var f={data:a[u],type:\"uint8\",usage:\"static\"};i[u]?i[u](f):i[u]=l.buffer(f),i[u].data=a[u]}}else{i[t.addMarker(e)]=!0}return e},range:function(t,e,r){var n=e.bounds;if(n)return t||(t=n),e.scale=[1/(t[2]-t[0]),1/(t[3]-t[1])],e.translate=[-t[0],-t[1]],e.scaleFract=p.fract(e.scale),e.translateFract=p.fract(e.translate),t},viewport:function(t){return d(t||[a.drawingBufferWidth,a.drawingBufferHeight])}}]),x){var _=y.count,w=y.size,k=y.borderSize,M=y.sizeBuffer,A=new Uint8Array(2*_);if(w.length||k.length)for(var T=0;T<_;T++)A[2*T]=Math.round(255*(null==w[T]?w:w[T])/h),A[2*T+1]=Math.round(255*(null==k[T]?k:k[T])/h);M({data:A,usage:\"dynamic\"})}if(b){var S,E=y.count,C=y.color,L=y.borderColor,z=y.colorBuffer;if(t.tooManyColors){if(C.length||L.length){S=new Uint8Array(8*E);for(var O=0;O<E;O++){var I=C[O];S[8*O]=m[4*I],S[8*O+1]=m[4*I+1],S[8*O+2]=m[4*I+2],S[8*O+3]=m[4*I+3];var P=L[O];S[8*O+4]=m[4*P],S[8*O+5]=m[4*P+1],S[8*O+6]=m[4*P+2],S[8*O+7]=m[4*P+3]}}}else if(C.length||L.length){S=new Uint8Array(4*E+2);for(var D=0;D<E;D++)null!=C[D]&&(S[4*D]=C[D]%v,S[4*D+1]=Math.floor(C[D]/v)),null!=L[D]&&(S[4*D+2]=L[D]%v,S[4*D+3]=Math.floor(L[D]/v))}z({data:S||new Uint8Array(0),type:\"uint8\",usage:\"dynamic\"})}return y})}},g.prototype.addMarker=function(t){var e,r=this.markerTextures,n=this.regl,i=this.markerCache,a=null==t?0:i.indexOf(t);if(a>=0)return a;if(t instanceof Uint8Array||t instanceof Uint8ClampedArray)e=t;else{e=new Uint8Array(t.length);for(var o=0,s=t.length;o<s;o++)e[o]=255*t[o]}var l=Math.floor(Math.sqrt(e.length));return a=r.length,i.push(t),r.push(n.texture({channels:1,data:e,radius:l,mag:\"linear\",min:\"linear\"})),a},g.prototype.updateColor=function(t){var e=this.paletteIds,r=this.palette,i=this.maxColors;Array.isArray(t)||(t=[t]);var o=[];if(\"number\"==typeof t[0]){var s=[];if(Array.isArray(t))for(var l=0;l<t.length;l+=4)s.push(t.slice(l,l+4));else for(var c=0;c<t.length;c+=4)s.push(t.subarray(c,c+4));t=s}for(var u=0;u<t.length;u++){var f=t[u];f=n(f,\"uint8\");var h=a(f,!1);if(null==e[h]){var p=r.length;e[h]=Math.floor(p/4),r[p]=f[0],r[p+1]=f[1],r[p+2]=f[2],r[p+3]=f[3]}o[u]=e[h]}return!this.tooManyColors&&r.length>i*i*4&&(this.tooManyColors=!0),this.updatePalette(r),1===o.length?o[0]:o},g.prototype.updatePalette=function(t){if(!this.tooManyColors){var e=this.maxColors,r=this.paletteTexture,n=Math.ceil(.25*t.length/e);if(n>1)for(var i=.25*(t=t.slice()).length%e;i<n*e;i++)t.push(0,0,0,0);r.height<n&&r.resize(e,n),r.subimage({width:Math.min(.25*t.length,e),height:n,data:t},0,0)}},g.prototype.destroy=function(){return this.groups.forEach(function(t){t.sizeBuffer.destroy(),t.positionBuffer.destroy(),t.positionFractBuffer.destroy(),t.colorBuffer.destroy(),t.activation.forEach(function(t){return t&&t.destroy&&t.destroy()}),t.selectionBuffer.destroy(),t.elements&&t.elements.destroy()}),this.groups.length=0,this.paletteTexture.destroy(),this.markerTextures.forEach(function(t){return t&&t.destroy&&t.destroy()}),this}},{\"array-bounds\":53,\"color-id\":106,\"color-normalize\":108,\"flatten-vertex-data\":216,glslify:392,\"is-iexplorer\":402,\"object-assign\":437,\"parse-rect\":442,\"pick-by-alias\":448,\"point-cluster\":452,\"to-float32\":515,\"update-diff\":526}],477:[function(t,e,r){\"use strict\";var n=t(\"regl-scatter2d/scatter\"),i=t(\"pick-by-alias\"),a=t(\"array-bounds\"),o=t(\"raf\"),s=t(\"array-range\"),l=t(\"parse-rect\"),c=t(\"flatten-vertex-data\");function u(t,e){if(!(this instanceof u))return new u(t,e);this.traces=[],this.passes={},this.regl=t,this.scatter=n(t),this.canvas=this.scatter.canvas}function f(t,e,r){return(null!=t.id?t.id:t)<<16|(255&e)<<8|255&r}function h(t,e,r){var n,i,a,o,s=t[e],l=t[r];return s.length>2?(s[0],s[2],n=s[1],i=s[3]):s.length?(n=s[0],i=s[1]):(s.x,n=s.y,s.x+s.width,i=s.y+s.height),l.length>2?(a=l[0],o=l[2],l[1],l[3]):l.length?(a=l[0],o=l[1]):(a=l.x,l.y,o=l.x+l.width,l.y+l.height),[a,n,o,i]}function p(t){if(\"number\"==typeof t)return[t,t,t,t];if(2===t.length)return[t[0],t[1],t[0],t[1]];var e=l(t);return[e.x,e.y,e.x+e.width,e.y+e.height]}e.exports=u,u.prototype.render=function(){for(var t,e=this,r=[],n=arguments.length;n--;)r[n]=arguments[n];return r.length&&(t=this).update.apply(t,r),this.regl.attributes.preserveDrawingBuffer?this.draw():(this.dirty?null==this.planned&&(this.planned=o(function(){e.draw(),e.dirty=!0,e.planned=null})):(this.draw(),this.dirty=!0,o(function(){e.dirty=!1})),this)},u.prototype.update=function(){for(var t,e=[],r=arguments.length;r--;)e[r]=arguments[r];if(e.length){for(var n=0;n<e.length;n++)this.updateItem(n,e[n]);this.traces=this.traces.filter(Boolean);for(var i=[],a=0,o=0;o<this.traces.length;o++){for(var s=this.traces[o],l=this.traces[o].passes,c=0;c<l.length;c++)i.push(this.passes[l[c]]);s.passOffset=a,a+=s.passes.length}return(t=this.scatter).update.apply(t,i),this}},u.prototype.updateItem=function(t,e){var r=this.regl;if(null===e)return this.traces[t]=null,this;if(!e)return this;var n,o=i(e,{data:\"data items columns rows values dimensions samples x\",snap:\"snap cluster\",size:\"sizes size radius\",color:\"colors color fill fill-color fillColor\",opacity:\"opacity alpha transparency opaque\",borderSize:\"borderSizes borderSize border-size bordersize borderWidth borderWidths border-width borderwidth stroke-width strokeWidth strokewidth outline\",borderColor:\"borderColors borderColor bordercolor stroke stroke-color strokeColor\",marker:\"markers marker shape\",range:\"range ranges databox dataBox\",viewport:\"viewport viewBox viewbox\",domain:\"domain domains area areas\",padding:\"pad padding paddings pads margin margins\",transpose:\"transpose transposed\",diagonal:\"diagonal diag showDiagonal\",upper:\"upper up top upperhalf upperHalf showupperhalf showUpper showUpperHalf\",lower:\"lower low bottom lowerhalf lowerHalf showlowerhalf showLowerHalf showLower\"}),s=this.traces[t]||(this.traces[t]={id:t,buffer:r.buffer({usage:\"dynamic\",type:\"float\",data:new Uint8Array}),color:\"black\",marker:null,size:12,borderColor:\"transparent\",borderSize:1,viewport:l([r._gl.drawingBufferWidth,r._gl.drawingBufferHeight]),padding:[0,0,0,0],opacity:1,diagonal:!0,upper:!0,lower:!0});if(null!=o.color&&(s.color=o.color),null!=o.size&&(s.size=o.size),null!=o.marker&&(s.marker=o.marker),null!=o.borderColor&&(s.borderColor=o.borderColor),null!=o.borderSize&&(s.borderSize=o.borderSize),null!=o.opacity&&(s.opacity=o.opacity),o.viewport&&(s.viewport=l(o.viewport)),null!=o.diagonal&&(s.diagonal=o.diagonal),null!=o.upper&&(s.upper=o.upper),null!=o.lower&&(s.lower=o.lower),o.data){s.buffer(c(o.data)),s.columns=o.data.length,s.count=o.data[0].length,s.bounds=[];for(var u=0;u<s.columns;u++)s.bounds[u]=a(o.data[u],1)}o.range&&(s.range=o.range,n=s.range&&\"number\"!=typeof s.range[0]),o.domain&&(s.domain=o.domain);var d=!1;null!=o.padding&&(Array.isArray(o.padding)&&o.padding.length===s.columns&&\"number\"==typeof o.padding[o.padding.length-1]?(s.padding=o.padding.map(p),d=!0):s.padding=p(o.padding));var g=s.columns,v=s.count,m=s.viewport.width,y=s.viewport.height,x=s.viewport.x,b=s.viewport.y,_=m/g,w=y/g;s.passes=[];for(var k=0;k<g;k++)for(var M=0;M<g;M++)if((s.diagonal||M!==k)&&(s.upper||!(k>M))&&(s.lower||!(k<M))){var A=f(s.id,k,M),T=this.passes[A]||(this.passes[A]={});if(o.data&&(o.transpose?T.positions={x:{buffer:s.buffer,offset:M,count:v,stride:g},y:{buffer:s.buffer,offset:k,count:v,stride:g}}:T.positions={x:{buffer:s.buffer,offset:M*v,count:v},y:{buffer:s.buffer,offset:k*v,count:v}},T.bounds=h(s.bounds,k,M)),o.domain||o.viewport||o.data){var S=d?h(s.padding,k,M):s.padding;if(s.domain){var E=h(s.domain,k,M),C=E[0],L=E[1],z=E[2],O=E[3];T.viewport=[x+C*m+S[0],b+L*y+S[1],x+z*m-S[2],b+O*y-S[3]]}else T.viewport=[x+M*_+_*S[0],b+k*w+w*S[1],x+(M+1)*_-_*S[2],b+(k+1)*w-w*S[3]]}o.color&&(T.color=s.color),o.size&&(T.size=s.size),o.marker&&(T.marker=s.marker),o.borderSize&&(T.borderSize=s.borderSize),o.borderColor&&(T.borderColor=s.borderColor),o.opacity&&(T.opacity=s.opacity),o.range&&(T.range=n?h(s.range,k,M):s.range||T.bounds),s.passes.push(A)}return this},u.prototype.draw=function(){for(var t,e=[],r=arguments.length;r--;)e[r]=arguments[r];if(e.length){for(var n=[],i=0;i<e.length;i++)if(\"number\"==typeof e[i]){var a=this.traces[e[i]],o=a.passes,l=a.passOffset;n.push.apply(n,s(l,l+o.length))}else if(e[i].length){var c=e[i],u=this.traces[i],f=u.passes,h=u.passOffset;f=f.map(function(t,e){n[h+e]=c})}(t=this.scatter).draw.apply(t,n)}else this.scatter.draw();return this},u.prototype.destroy=function(){return this.traces.forEach(function(t){t.buffer&&t.buffer.destroy&&t.buffer.destroy()}),this.traces=null,this.passes=null,this.scatter.destroy(),this}},{\"array-bounds\":53,\"array-range\":55,\"flatten-vertex-data\":216,\"parse-rect\":442,\"pick-by-alias\":448,raf:467,\"regl-scatter2d/scatter\":476}],478:[function(t,e,r){var n,i;n=this,i=function(){function t(t,e){this.id=V++,this.type=t,this.data=e}function e(t){return\"[\"+function t(e){if(0===e.length)return[];var r=e.charAt(0),n=e.charAt(e.length-1);if(1<e.length&&r===n&&('\"'===r||\"'\"===r))return['\"'+e.substr(1,e.length-2).replace(/\\\\/g,\"\\\\\\\\\").replace(/\"/g,'\\\\\"')+'\"'];if(r=/\\[(false|true|null|\\d+|'[^']*'|\"[^\"]*\")\\]/.exec(e))return t(e.substr(0,r.index)).concat(t(r[1])).concat(t(e.substr(r.index+r[0].length)));if(1===(r=e.split(\".\")).length)return['\"'+e.replace(/\\\\/g,\"\\\\\\\\\").replace(/\"/g,'\\\\\"')+'\"'];for(e=[],n=0;n<r.length;++n)e=e.concat(t(r[n]));return e}(t).join(\"][\")+\"]\"}function r(t){return\"string\"==typeof t?t.split():t}function n(t){return\"string\"==typeof t?document.querySelector(t):t}function i(t){var e,i,a,o,s=t||{};t={};var l=[],c=[],u=\"undefined\"==typeof window?1:window.devicePixelRatio,f=!1,h=function(t){},p=function(){};if(\"string\"==typeof s?e=document.querySelector(s):\"object\"==typeof s&&(\"string\"==typeof s.nodeName&&\"function\"==typeof s.appendChild&&\"function\"==typeof s.getBoundingClientRect?e=s:\"function\"==typeof s.drawArrays||\"function\"==typeof s.drawElements?a=(o=s).canvas:(\"gl\"in s?o=s.gl:\"canvas\"in s?a=n(s.canvas):\"container\"in s&&(i=n(s.container)),\"attributes\"in s&&(t=s.attributes),\"extensions\"in s&&(l=r(s.extensions)),\"optionalExtensions\"in s&&(c=r(s.optionalExtensions)),\"onDone\"in s&&(h=s.onDone),\"profile\"in s&&(f=!!s.profile),\"pixelRatio\"in s&&(u=+s.pixelRatio))),e&&(\"canvas\"===e.nodeName.toLowerCase()?a=e:i=e),!o){if(!a){if(!(e=function(t,e,r){function n(){var e=window.innerWidth,n=window.innerHeight;t!==document.body&&(e=(n=t.getBoundingClientRect()).right-n.left,n=n.bottom-n.top),i.width=r*e,i.height=r*n,j(i.style,{width:e+\"px\",height:n+\"px\"})}var i=document.createElement(\"canvas\");return j(i.style,{border:0,margin:0,padding:0,top:0,left:0}),t.appendChild(i),t===document.body&&(i.style.position=\"absolute\",j(t.style,{margin:0,padding:0})),window.addEventListener(\"resize\",n,!1),n(),{canvas:i,onDestroy:function(){window.removeEventListener(\"resize\",n),t.removeChild(i)}}}(i||document.body,0,u)))return null;a=e.canvas,p=e.onDestroy}o=function(t,e){function r(r){try{return t.getContext(r,e)}catch(t){return null}}return r(\"webgl\")||r(\"experimental-webgl\")||r(\"webgl-experimental\")}(a,t)}return o?{gl:o,canvas:a,container:i,extensions:l,optionalExtensions:c,pixelRatio:u,profile:f,onDone:h,onDestroy:p}:(p(),h(\"webgl not supported, try upgrading your browser or graphics drivers http://get.webgl.org\"),null)}function a(t,e){for(var r=Array(t),n=0;n<t;++n)r[n]=e(n);return r}function o(t){var e,r;return e=(65535<t)<<4,e|=r=(255<(t>>>=e))<<3,(e|=r=(15<(t>>>=r))<<2)|(r=(3<(t>>>=r))<<1)|t>>>r>>1}function s(){function t(t){t:{for(var e=16;268435456>=e;e*=16)if(t<=e){t=e;break t}t=0}return 0<(e=r[o(t)>>2]).length?e.pop():new ArrayBuffer(t)}function e(t){r[o(t.byteLength)>>2].push(t)}var r=a(8,function(){return[]});return{alloc:t,free:e,allocType:function(e,r){var n=null;switch(e){case 5120:n=new Int8Array(t(r),0,r);break;case 5121:n=new Uint8Array(t(r),0,r);break;case 5122:n=new Int16Array(t(2*r),0,r);break;case 5123:n=new Uint16Array(t(2*r),0,r);break;case 5124:n=new Int32Array(t(4*r),0,r);break;case 5125:n=new Uint32Array(t(4*r),0,r);break;case 5126:n=new Float32Array(t(4*r),0,r);break;default:return null}return n.length!==r?n.subarray(0,r):n},freeType:function(t){e(t.buffer)}}}function l(t){return!!t&&\"object\"==typeof t&&Array.isArray(t.shape)&&Array.isArray(t.stride)&&\"number\"==typeof t.offset&&t.shape.length===t.stride.length&&(Array.isArray(t.data)||Y(t.data))}function c(t,e,r,n,i,a){for(var o=0;o<e;++o)for(var s=t[o],l=0;l<r;++l)for(var c=s[l],u=0;u<n;++u)i[a++]=c[u]}function u(t){return 0|$[Object.prototype.toString.call(t)]}function f(t,e){for(var r=0;r<e.length;++r)t[r]=e[r]}function h(t,e,r,n,i,a,o){for(var s=0,l=0;l<r;++l)for(var c=0;c<n;++c)t[s++]=e[i*l+a*c+o]}function p(t,e,r,n){function i(e){this.id=c++,this.buffer=t.createBuffer(),this.type=e,this.usage=35044,this.byteLength=0,this.dimension=1,this.dtype=5121,this.persistentData=null,r.profile&&(this.stats={size:0})}function a(e,r,n){e.byteLength=r.byteLength,t.bufferData(e.type,r,n)}function o(t,e,r,n,i,o){if(t.usage=r,Array.isArray(e)){if(t.dtype=n||5126,0<e.length)if(Array.isArray(e[0])){i=tt(e);for(var s=n=1;s<i.length;++s)n*=i[s];t.dimension=n,a(t,e=Q(e,i,t.dtype),r),o?t.persistentData=e:G.freeType(e)}else\"number\"==typeof e[0]?(t.dimension=i,f(i=G.allocType(t.dtype,e.length),e),a(t,i,r),o?t.persistentData=i:G.freeType(i)):Y(e[0])&&(t.dimension=e[0].length,t.dtype=n||u(e[0])||5126,a(t,e=Q(e,[e.length,e[0].length],t.dtype),r),o?t.persistentData=e:G.freeType(e))}else if(Y(e))t.dtype=n||u(e),t.dimension=i,a(t,e,r),o&&(t.persistentData=new Uint8Array(new Uint8Array(e.buffer)));else if(l(e)){i=e.shape;var c=e.stride,p=(s=e.offset,0),d=0,g=0,v=0;1===i.length?(p=i[0],d=1,g=c[0],v=0):2===i.length&&(p=i[0],d=i[1],g=c[0],v=c[1]),t.dtype=n||u(e.data)||5126,t.dimension=d,h(i=G.allocType(t.dtype,p*d),e.data,p,d,g,v,s),a(t,i,r),o?t.persistentData=i:G.freeType(i)}}function s(r){e.bufferCount--;for(var i=0;i<n.state.length;++i){var a=n.state[i];a.buffer===r&&(t.disableVertexAttribArray(i),a.buffer=null)}t.deleteBuffer(r.buffer),r.buffer=null,delete p[r.id]}var c=0,p={};i.prototype.bind=function(){t.bindBuffer(this.type,this.buffer)},i.prototype.destroy=function(){s(this)};var d=[];return r.profile&&(e.getTotalBufferSize=function(){var t=0;return Object.keys(p).forEach(function(e){t+=p[e].stats.size}),t}),{create:function(n,a,c,d){function g(e){var n=35044,i=null,a=0,s=0,c=1;return Array.isArray(e)||Y(e)||l(e)?i=e:\"number\"==typeof e?a=0|e:e&&(\"data\"in e&&(i=e.data),\"usage\"in e&&(n=K[e.usage]),\"type\"in e&&(s=J[e.type]),\"dimension\"in e&&(c=0|e.dimension),\"length\"in e&&(a=0|e.length)),v.bind(),i?o(v,i,n,s,c,d):(a&&t.bufferData(v.type,a,n),v.dtype=s||5121,v.usage=n,v.dimension=c,v.byteLength=a),r.profile&&(v.stats.size=v.byteLength*et[v.dtype]),g}e.bufferCount++;var v=new i(a);return p[v.id]=v,c||g(n),g._reglType=\"buffer\",g._buffer=v,g.subdata=function(e,r){var n,i=0|(r||0);if(v.bind(),Y(e))t.bufferSubData(v.type,i,e);else if(Array.isArray(e)){if(0<e.length)if(\"number\"==typeof e[0]){var a=G.allocType(v.dtype,e.length);f(a,e),t.bufferSubData(v.type,i,a),G.freeType(a)}else(Array.isArray(e[0])||Y(e[0]))&&(n=tt(e),a=Q(e,n,v.dtype),t.bufferSubData(v.type,i,a),G.freeType(a))}else if(l(e)){n=e.shape;var o=e.stride,s=a=0,c=0,p=0;1===n.length?(a=n[0],s=1,c=o[0],p=0):2===n.length&&(a=n[0],s=n[1],c=o[0],p=o[1]),n=Array.isArray(e.data)?v.dtype:u(e.data),h(n=G.allocType(n,a*s),e.data,a,s,c,p,e.offset),t.bufferSubData(v.type,i,n),G.freeType(n)}return g},r.profile&&(g.stats=v.stats),g.destroy=function(){s(v)},g},createStream:function(t,e){var r=d.pop();return r||(r=new i(t)),r.bind(),o(r,e,35040,0,1,!1),r},destroyStream:function(t){d.push(t)},clear:function(){X(p).forEach(s),d.forEach(s)},getBuffer:function(t){return t&&t._buffer instanceof i?t._buffer:null},restore:function(){X(p).forEach(function(e){e.buffer=t.createBuffer(),t.bindBuffer(e.type,e.buffer),t.bufferData(e.type,e.persistentData||e.byteLength,e.usage)})},_initBuffer:o}}function d(t,e,r,n){function i(t){this.id=c++,s[this.id]=this,this.buffer=t,this.primType=4,this.type=this.vertCount=0}function a(n,i,a,o,s,c,u){if(n.buffer.bind(),i){var f=u;u||Y(i)&&(!l(i)||Y(i.data))||(f=e.oes_element_index_uint?5125:5123),r._initBuffer(n.buffer,i,a,f,3)}else t.bufferData(34963,c,a),n.buffer.dtype=f||5121,n.buffer.usage=a,n.buffer.dimension=3,n.buffer.byteLength=c;if(f=u,!u){switch(n.buffer.dtype){case 5121:case 5120:f=5121;break;case 5123:case 5122:f=5123;break;case 5125:case 5124:f=5125}n.buffer.dtype=f}n.type=f,0>(i=s)&&(i=n.buffer.byteLength,5123===f?i>>=1:5125===f&&(i>>=2)),n.vertCount=i,i=o,0>o&&(i=4,1===(o=n.buffer.dimension)&&(i=0),2===o&&(i=1),3===o&&(i=4)),n.primType=i}function o(t){n.elementsCount--,delete s[t.id],t.buffer.destroy(),t.buffer=null}var s={},c=0,u={uint8:5121,uint16:5123};e.oes_element_index_uint&&(u.uint32=5125),i.prototype.bind=function(){this.buffer.bind()};var f=[];return{create:function(t,e){function s(t){if(t)if(\"number\"==typeof t)c(t),f.primType=4,f.vertCount=0|t,f.type=5121;else{var e=null,r=35044,n=-1,i=-1,o=0,h=0;Array.isArray(t)||Y(t)||l(t)?e=t:(\"data\"in t&&(e=t.data),\"usage\"in t&&(r=K[t.usage]),\"primitive\"in t&&(n=rt[t.primitive]),\"count\"in t&&(i=0|t.count),\"type\"in t&&(h=u[t.type]),\"length\"in t?o=0|t.length:(o=i,5123===h||5122===h?o*=2:5125!==h&&5124!==h||(o*=4))),a(f,e,r,n,i,o,h)}else c(),f.primType=4,f.vertCount=0,f.type=5121;return s}var c=r.create(null,34963,!0),f=new i(c._buffer);return n.elementsCount++,s(t),s._reglType=\"elements\",s._elements=f,s.subdata=function(t,e){return c.subdata(t,e),s},s.destroy=function(){o(f)},s},createStream:function(t){var e=f.pop();return e||(e=new i(r.create(null,34963,!0,!1)._buffer)),a(e,t,35040,-1,-1,0,0),e},destroyStream:function(t){f.push(t)},getElements:function(t){return\"function\"==typeof t&&t._elements instanceof i?t._elements:null},clear:function(){X(s).forEach(o)}}}function g(t){for(var e=G.allocType(5123,t.length),r=0;r<t.length;++r)if(isNaN(t[r]))e[r]=65535;else if(1/0===t[r])e[r]=31744;else if(-1/0===t[r])e[r]=64512;else{nt[0]=t[r];var n=(a=it[0])>>>31<<15,i=(a<<1>>>24)-127,a=a>>13&1023;e[r]=-24>i?n:-14>i?n+(a+1024>>-14-i):15<i?n+31744:n+(i+15<<10)+a}return e}function v(t){return Array.isArray(t)||Y(t)}function m(t){return\"[object \"+t+\"]\"}function y(t){return Array.isArray(t)&&(0===t.length||\"number\"==typeof t[0])}function x(t){return!(!Array.isArray(t)||0===t.length||!v(t[0]))}function b(t){return Object.prototype.toString.call(t)}function _(t){if(!t)return!1;var e=b(t);return 0<=pt.indexOf(e)||(y(t)||x(t)||l(t))}function w(t,e){36193===t.type?(t.data=g(e),G.freeType(e)):t.data=e}function k(t,e,r,n,i,a){if(t=\"undefined\"!=typeof gt[t]?gt[t]:st[t]*dt[e],a&&(t*=6),i){for(n=0;1<=r;)n+=t*r*r,r/=2;return n}return t*r*n}function M(t,e,r,n,i,a,o){function s(){this.format=this.internalformat=6408,this.type=5121,this.flipY=this.premultiplyAlpha=this.compressed=!1,this.unpackAlignment=1,this.colorSpace=37444,this.channels=this.height=this.width=0}function c(t,e){t.internalformat=e.internalformat,t.format=e.format,t.type=e.type,t.compressed=e.compressed,t.premultiplyAlpha=e.premultiplyAlpha,t.flipY=e.flipY,t.unpackAlignment=e.unpackAlignment,t.colorSpace=e.colorSpace,t.width=e.width,t.height=e.height,t.channels=e.channels}function u(t,e){if(\"object\"==typeof e&&e){\"premultiplyAlpha\"in e&&(t.premultiplyAlpha=e.premultiplyAlpha),\"flipY\"in e&&(t.flipY=e.flipY),\"alignment\"in e&&(t.unpackAlignment=e.alignment),\"colorSpace\"in e&&(t.colorSpace=q[e.colorSpace]),\"type\"in e&&(t.type=H[e.type]);var r=t.width,n=t.height,i=t.channels,a=!1;\"shape\"in e?(r=e.shape[0],n=e.shape[1],3===e.shape.length&&(i=e.shape[2],a=!0)):(\"radius\"in e&&(r=n=e.radius),\"width\"in e&&(r=e.width),\"height\"in e&&(n=e.height),\"channels\"in e&&(i=e.channels,a=!0)),t.width=0|r,t.height=0|n,t.channels=0|i,r=!1,\"format\"in e&&(r=e.format,n=t.internalformat=W[r],t.format=pt[n],r in H&&!(\"type\"in e)&&(t.type=H[r]),r in J&&(t.compressed=!0),r=!0),!a&&r?t.channels=st[t.format]:a&&!r&&t.channels!==ot[t.format]&&(t.format=t.internalformat=ot[t.channels])}}function f(e){t.pixelStorei(37440,e.flipY),t.pixelStorei(37441,e.premultiplyAlpha),t.pixelStorei(37443,e.colorSpace),t.pixelStorei(3317,e.unpackAlignment)}function h(){s.call(this),this.yOffset=this.xOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function p(t,e){var r=null;if(_(e)?r=e:e&&(u(t,e),\"x\"in e&&(t.xOffset=0|e.x),\"y\"in e&&(t.yOffset=0|e.y),_(e.data)&&(r=e.data)),e.copy){var n=i.viewportWidth,a=i.viewportHeight;t.width=t.width||n-t.xOffset,t.height=t.height||a-t.yOffset,t.needsCopy=!0}else if(r){if(Y(r))t.channels=t.channels||4,t.data=r,\"type\"in e||5121!==t.type||(t.type=0|$[Object.prototype.toString.call(r)]);else if(y(r)){switch(t.channels=t.channels||4,a=(n=r).length,t.type){case 5121:case 5123:case 5125:case 5126:(a=G.allocType(t.type,a)).set(n),t.data=a;break;case 36193:t.data=g(n)}t.alignment=1,t.needsFree=!0}else if(l(r)){n=r.data,Array.isArray(n)||5121!==t.type||(t.type=0|$[Object.prototype.toString.call(n)]);a=r.shape;var o,s,c,f,h=r.stride;3===a.length?(c=a[2],f=h[2]):f=c=1,o=a[0],s=a[1],a=h[0],h=h[1],t.alignment=1,t.width=o,t.height=s,t.channels=c,t.format=t.internalformat=ot[c],t.needsFree=!0,o=f,r=r.offset,c=t.width,f=t.height,s=t.channels;for(var p=G.allocType(36193===t.type?5126:t.type,c*f*s),d=0,m=0;m<f;++m)for(var k=0;k<c;++k)for(var M=0;M<s;++M)p[d++]=n[a*k+h*m+o*M+r];w(t,p)}else if(b(r)===lt||b(r)===ct)b(r)===lt?t.element=r:t.element=r.canvas,t.width=t.element.width,t.height=t.element.height,t.channels=4;else if(b(r)===ut)t.element=r,t.width=r.width,t.height=r.height,t.channels=4;else if(b(r)===ft)t.element=r,t.width=r.naturalWidth,t.height=r.naturalHeight,t.channels=4;else if(b(r)===ht)t.element=r,t.width=r.videoWidth,t.height=r.videoHeight,t.channels=4;else if(x(r)){for(n=t.width||r[0].length,a=t.height||r.length,h=t.channels,h=v(r[0][0])?h||r[0][0].length:h||1,o=Z.shape(r),c=1,f=0;f<o.length;++f)c*=o[f];c=G.allocType(36193===t.type?5126:t.type,c),Z.flatten(r,o,\"\",c),w(t,c),t.alignment=1,t.width=n,t.height=a,t.channels=h,t.format=t.internalformat=ot[h],t.needsFree=!0}}else t.width=t.width||1,t.height=t.height||1,t.channels=t.channels||4}function d(e,r,i,a,o){var s=e.element,l=e.data,c=e.internalformat,u=e.format,h=e.type,p=e.width,d=e.height;f(e),s?t.texSubImage2D(r,o,i,a,u,h,s):e.compressed?t.compressedTexSubImage2D(r,o,i,a,c,p,d,l):e.needsCopy?(n(),t.copyTexSubImage2D(r,o,i,a,e.xOffset,e.yOffset,p,d)):t.texSubImage2D(r,o,i,a,p,d,u,h,l)}function m(){return dt.pop()||new h}function M(t){t.needsFree&&G.freeType(t.data),h.call(t),dt.push(t)}function A(){s.call(this),this.genMipmaps=!1,this.mipmapHint=4352,this.mipmask=0,this.images=Array(16)}function T(t,e,r){var n=t.images[0]=m();t.mipmask=1,n.width=t.width=e,n.height=t.height=r,n.channels=t.channels=4}function S(t,e){var r=null;if(_(e))c(r=t.images[0]=m(),t),p(r,e),t.mipmask=1;else if(u(t,e),Array.isArray(e.mipmap))for(var n=e.mipmap,i=0;i<n.length;++i)c(r=t.images[i]=m(),t),r.width>>=i,r.height>>=i,p(r,n[i]),t.mipmask|=1<<i;else c(r=t.images[0]=m(),t),p(r,e),t.mipmask=1;c(t,t.images[0])}function E(e,r){for(var i=e.images,a=0;a<i.length&&i[a];++a){var o=i[a],s=r,l=a,c=o.element,u=o.data,h=o.internalformat,p=o.format,d=o.type,g=o.width,v=o.height,m=o.channels;f(o),c?t.texImage2D(s,l,p,p,d,c):o.compressed?t.compressedTexImage2D(s,l,h,g,v,0,u):o.needsCopy?(n(),t.copyTexImage2D(s,l,p,o.xOffset,o.yOffset,g,v,0)):((o=!u)&&(u=G.zero.allocType(d,g*v*m)),t.texImage2D(s,l,p,g,v,0,p,d,u),o&&u&&G.zero.freeType(u))}}function C(){var t=gt.pop()||new A;s.call(t);for(var e=t.mipmask=0;16>e;++e)t.images[e]=null;return t}function L(t){for(var e=t.images,r=0;r<e.length;++r)e[r]&&M(e[r]),e[r]=null;gt.push(t)}function z(){this.magFilter=this.minFilter=9728,this.wrapT=this.wrapS=33071,this.anisotropic=1,this.genMipmaps=!1,this.mipmapHint=4352}function O(t,e){\"min\"in e&&(t.minFilter=U[e.min],0<=at.indexOf(t.minFilter)&&!(\"faces\"in e)&&(t.genMipmaps=!0)),\"mag\"in e&&(t.magFilter=V[e.mag]);var r=t.wrapS,n=t.wrapT;if(\"wrap\"in e){var i=e.wrap;\"string\"==typeof i?r=n=N[i]:Array.isArray(i)&&(r=N[i[0]],n=N[i[1]])}else\"wrapS\"in e&&(r=N[e.wrapS]),\"wrapT\"in e&&(n=N[e.wrapT]);if(t.wrapS=r,t.wrapT=n,\"anisotropic\"in e&&(t.anisotropic=e.anisotropic),\"mipmap\"in e){switch(r=!1,typeof e.mipmap){case\"string\":t.mipmapHint=F[e.mipmap],r=t.genMipmaps=!0;break;case\"boolean\":r=t.genMipmaps=e.mipmap;break;case\"object\":t.genMipmaps=!1,r=!0}!r||\"min\"in e||(t.minFilter=9984)}}function I(r,n){t.texParameteri(n,10241,r.minFilter),t.texParameteri(n,10240,r.magFilter),t.texParameteri(n,10242,r.wrapS),t.texParameteri(n,10243,r.wrapT),e.ext_texture_filter_anisotropic&&t.texParameteri(n,34046,r.anisotropic),r.genMipmaps&&(t.hint(33170,r.mipmapHint),t.generateMipmap(n))}function P(e){s.call(this),this.mipmask=0,this.internalformat=6408,this.id=vt++,this.refCount=1,this.target=e,this.texture=t.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new z,o.profile&&(this.stats={size:0})}function D(e){t.activeTexture(33984),t.bindTexture(e.target,e.texture)}function R(){var e=xt[0];e?t.bindTexture(e.target,e.texture):t.bindTexture(3553,null)}function B(e){var r=e.texture,n=e.unit,i=e.target;0<=n&&(t.activeTexture(33984+n),t.bindTexture(i,null),xt[n]=null),t.deleteTexture(r),e.texture=null,e.params=null,e.pixels=null,e.refCount=0,delete mt[e.id],a.textureCount--}var F={\"don't care\":4352,\"dont care\":4352,nice:4354,fast:4353},N={repeat:10497,clamp:33071,mirror:33648},V={nearest:9728,linear:9729},U=j({mipmap:9987,\"nearest mipmap nearest\":9984,\"linear mipmap nearest\":9985,\"nearest mipmap linear\":9986,\"linear mipmap linear\":9987},V),q={none:0,browser:37444},H={uint8:5121,rgba4:32819,rgb565:33635,\"rgb5 a1\":32820},W={alpha:6406,luminance:6409,\"luminance alpha\":6410,rgb:6407,rgba:6408,rgba4:32854,\"rgb5 a1\":32855,rgb565:36194},J={};e.ext_srgb&&(W.srgb=35904,W.srgba=35906),e.oes_texture_float&&(H.float32=H.float=5126),e.oes_texture_half_float&&(H.float16=H[\"half float\"]=36193),e.webgl_depth_texture&&(j(W,{depth:6402,\"depth stencil\":34041}),j(H,{uint16:5123,uint32:5125,\"depth stencil\":34042})),e.webgl_compressed_texture_s3tc&&j(J,{\"rgb s3tc dxt1\":33776,\"rgba s3tc dxt1\":33777,\"rgba s3tc dxt3\":33778,\"rgba s3tc dxt5\":33779}),e.webgl_compressed_texture_atc&&j(J,{\"rgb atc\":35986,\"rgba atc explicit alpha\":35987,\"rgba atc interpolated alpha\":34798}),e.webgl_compressed_texture_pvrtc&&j(J,{\"rgb pvrtc 4bppv1\":35840,\"rgb pvrtc 2bppv1\":35841,\"rgba pvrtc 4bppv1\":35842,\"rgba pvrtc 2bppv1\":35843}),e.webgl_compressed_texture_etc1&&(J[\"rgb etc1\"]=36196);var K=Array.prototype.slice.call(t.getParameter(34467));Object.keys(J).forEach(function(t){var e=J[t];0<=K.indexOf(e)&&(W[t]=e)});var Q=Object.keys(W);r.textureFormats=Q;var tt=[];Object.keys(W).forEach(function(t){tt[W[t]]=t});var et=[];Object.keys(H).forEach(function(t){et[H[t]]=t});var rt=[];Object.keys(V).forEach(function(t){rt[V[t]]=t});var nt=[];Object.keys(U).forEach(function(t){nt[U[t]]=t});var it=[];Object.keys(N).forEach(function(t){it[N[t]]=t});var pt=Q.reduce(function(t,e){var r=W[e];return 6409===r||6406===r||6409===r||6410===r||6402===r||34041===r?t[r]=r:32855===r||0<=e.indexOf(\"rgba\")?t[r]=6408:t[r]=6407,t},{}),dt=[],gt=[],vt=0,mt={},yt=r.maxTextureUnits,xt=Array(yt).map(function(){return null});return j(P.prototype,{bind:function(){this.bindCount+=1;var e=this.unit;if(0>e){for(var r=0;r<yt;++r){var n=xt[r];if(n){if(0<n.bindCount)continue;n.unit=-1}xt[r]=this,e=r;break}o.profile&&a.maxTextureUnits<e+1&&(a.maxTextureUnits=e+1),this.unit=e,t.activeTexture(33984+e),t.bindTexture(this.target,this.texture)}return e},unbind:function(){--this.bindCount},decRef:function(){0>=--this.refCount&&B(this)}}),o.profile&&(a.getTotalTextureSize=function(){var t=0;return Object.keys(mt).forEach(function(e){t+=mt[e].stats.size}),t}),{create2D:function(e,r){function n(t,e){var r=i.texInfo;z.call(r);var a=C();return\"number\"==typeof t?T(a,0|t,\"number\"==typeof e?0|e:0|t):t?(O(r,t),S(a,t)):T(a,1,1),r.genMipmaps&&(a.mipmask=(a.width<<1)-1),i.mipmask=a.mipmask,c(i,a),i.internalformat=a.internalformat,n.width=a.width,n.height=a.height,D(i),E(a,3553),I(r,3553),R(),L(a),o.profile&&(i.stats.size=k(i.internalformat,i.type,a.width,a.height,r.genMipmaps,!1)),n.format=tt[i.internalformat],n.type=et[i.type],n.mag=rt[r.magFilter],n.min=nt[r.minFilter],n.wrapS=it[r.wrapS],n.wrapT=it[r.wrapT],n}var i=new P(3553);return mt[i.id]=i,a.textureCount++,n(e,r),n.subimage=function(t,e,r,a){e|=0,r|=0,a|=0;var o=m();return c(o,i),o.width=0,o.height=0,p(o,t),o.width=o.width||(i.width>>a)-e,o.height=o.height||(i.height>>a)-r,D(i),d(o,3553,e,r,a),R(),M(o),n},n.resize=function(e,r){var a=0|e,s=0|r||a;if(a===i.width&&s===i.height)return n;n.width=i.width=a,n.height=i.height=s,D(i);for(var l,c=i.channels,u=i.type,f=0;i.mipmask>>f;++f){var h=a>>f,p=s>>f;if(!h||!p)break;l=G.zero.allocType(u,h*p*c),t.texImage2D(3553,f,i.format,h,p,0,i.format,i.type,l),l&&G.zero.freeType(l)}return R(),o.profile&&(i.stats.size=k(i.internalformat,i.type,a,s,!1,!1)),n},n._reglType=\"texture2d\",n._texture=i,o.profile&&(n.stats=i.stats),n.destroy=function(){i.decRef()},n},createCube:function(e,r,n,i,s,l){function f(t,e,r,n,i,a){var s,l=h.texInfo;for(z.call(l),s=0;6>s;++s)g[s]=C();if(\"number\"!=typeof t&&t){if(\"object\"==typeof t)if(e)S(g[0],t),S(g[1],e),S(g[2],r),S(g[3],n),S(g[4],i),S(g[5],a);else if(O(l,t),u(h,t),\"faces\"in t)for(t=t.faces,s=0;6>s;++s)c(g[s],h),S(g[s],t[s]);else for(s=0;6>s;++s)S(g[s],t)}else for(t=0|t||1,s=0;6>s;++s)T(g[s],t,t);for(c(h,g[0]),h.mipmask=l.genMipmaps?(g[0].width<<1)-1:g[0].mipmask,h.internalformat=g[0].internalformat,f.width=g[0].width,f.height=g[0].height,D(h),s=0;6>s;++s)E(g[s],34069+s);for(I(l,34067),R(),o.profile&&(h.stats.size=k(h.internalformat,h.type,f.width,f.height,l.genMipmaps,!0)),f.format=tt[h.internalformat],f.type=et[h.type],f.mag=rt[l.magFilter],f.min=nt[l.minFilter],f.wrapS=it[l.wrapS],f.wrapT=it[l.wrapT],s=0;6>s;++s)L(g[s]);return f}var h=new P(34067);mt[h.id]=h,a.cubeCount++;var g=Array(6);return f(e,r,n,i,s,l),f.subimage=function(t,e,r,n,i){r|=0,n|=0,i|=0;var a=m();return c(a,h),a.width=0,a.height=0,p(a,e),a.width=a.width||(h.width>>i)-r,a.height=a.height||(h.height>>i)-n,D(h),d(a,34069+t,r,n,i),R(),M(a),f},f.resize=function(e){if((e|=0)!==h.width){f.width=h.width=e,f.height=h.height=e,D(h);for(var r=0;6>r;++r)for(var n=0;h.mipmask>>n;++n)t.texImage2D(34069+r,n,h.format,e>>n,e>>n,0,h.format,h.type,null);return R(),o.profile&&(h.stats.size=k(h.internalformat,h.type,f.width,f.height,!1,!0)),f}},f._reglType=\"textureCube\",f._texture=h,o.profile&&(f.stats=h.stats),f.destroy=function(){h.decRef()},f},clear:function(){for(var e=0;e<yt;++e)t.activeTexture(33984+e),t.bindTexture(3553,null),xt[e]=null;X(mt).forEach(B),a.cubeCount=0,a.textureCount=0},getTexture:function(t){return null},restore:function(){X(mt).forEach(function(e){e.texture=t.createTexture(),t.bindTexture(e.target,e.texture);for(var r=0;32>r;++r)if(0!=(e.mipmask&1<<r))if(3553===e.target)t.texImage2D(3553,r,e.internalformat,e.width>>r,e.height>>r,0,e.internalformat,e.type,null);else for(var n=0;6>n;++n)t.texImage2D(34069+n,r,e.internalformat,e.width>>r,e.height>>r,0,e.internalformat,e.type,null);I(e.texInfo,e.target)})}}}function A(t,e,r,n,i,a){function o(t,e,r){this.target=t,this.texture=e,this.renderbuffer=r;var n=t=0;e?(t=e.width,n=e.height):r&&(t=r.width,n=r.height),this.width=t,this.height=n}function s(t){t&&(t.texture&&t.texture._texture.decRef(),t.renderbuffer&&t.renderbuffer._renderbuffer.decRef())}function l(t,e,r){t&&(t.texture?t.texture._texture.refCount+=1:t.renderbuffer._renderbuffer.refCount+=1)}function c(e,r){r&&(r.texture?t.framebufferTexture2D(36160,e,r.target,r.texture._texture.texture,0):t.framebufferRenderbuffer(36160,e,36161,r.renderbuffer._renderbuffer.renderbuffer))}function u(t){var e=3553,r=null,n=null,i=t;return\"object\"==typeof t&&(i=t.data,\"target\"in t&&(e=0|t.target)),\"texture2d\"===(t=i._reglType)?r=i:\"textureCube\"===t?r=i:\"renderbuffer\"===t&&(n=i,e=36161),new o(e,r,n)}function f(t,e,r,a,s){return r?((t=n.create2D({width:t,height:e,format:a,type:s}))._texture.refCount=0,new o(3553,t,null)):((t=i.create({width:t,height:e,format:a}))._renderbuffer.refCount=0,new o(36161,null,t))}function h(t){return t&&(t.texture||t.renderbuffer)}function p(t,e,r){t&&(t.texture?t.texture.resize(e,r):t.renderbuffer&&t.renderbuffer.resize(e,r))}function d(){this.id=k++,M[this.id]=this,this.framebuffer=t.createFramebuffer(),this.height=this.width=0,this.colorAttachments=[],this.depthStencilAttachment=this.stencilAttachment=this.depthAttachment=null}function g(t){t.colorAttachments.forEach(s),s(t.depthAttachment),s(t.stencilAttachment),s(t.depthStencilAttachment)}function v(e){t.deleteFramebuffer(e.framebuffer),e.framebuffer=null,a.framebufferCount--,delete M[e.id]}function m(e){var n;t.bindFramebuffer(36160,e.framebuffer);var i=e.colorAttachments;for(n=0;n<i.length;++n)c(36064+n,i[n]);for(n=i.length;n<r.maxColorAttachments;++n)t.framebufferTexture2D(36160,36064+n,3553,null,0);t.framebufferTexture2D(36160,33306,3553,null,0),t.framebufferTexture2D(36160,36096,3553,null,0),t.framebufferTexture2D(36160,36128,3553,null,0),c(36096,e.depthAttachment),c(36128,e.stencilAttachment),c(33306,e.depthStencilAttachment),t.checkFramebufferStatus(36160),t.bindFramebuffer(36160,x.next?x.next.framebuffer:null),x.cur=x.next,t.getError()}function y(t,e){function r(t,e){var i,a=0,o=0,s=!0,c=!0;i=null;var p=!0,d=\"rgba\",v=\"uint8\",y=1,x=null,w=null,k=null,M=!1;\"number\"==typeof t?(a=0|t,o=0|e||a):t?(\"shape\"in t?(a=(o=t.shape)[0],o=o[1]):(\"radius\"in t&&(a=o=t.radius),\"width\"in t&&(a=t.width),\"height\"in t&&(o=t.height)),(\"color\"in t||\"colors\"in t)&&(i=t.color||t.colors,Array.isArray(i)),i||(\"colorCount\"in t&&(y=0|t.colorCount),\"colorTexture\"in t&&(p=!!t.colorTexture,d=\"rgba4\"),\"colorType\"in t&&(v=t.colorType,!p)&&(\"half float\"===v||\"float16\"===v?d=\"rgba16f\":\"float\"!==v&&\"float32\"!==v||(d=\"rgba32f\")),\"colorFormat\"in t&&(d=t.colorFormat,0<=b.indexOf(d)?p=!0:0<=_.indexOf(d)&&(p=!1))),(\"depthTexture\"in t||\"depthStencilTexture\"in t)&&(M=!(!t.depthTexture&&!t.depthStencilTexture)),\"depth\"in t&&(\"boolean\"==typeof t.depth?s=t.depth:(x=t.depth,c=!1)),\"stencil\"in t&&(\"boolean\"==typeof t.stencil?c=t.stencil:(w=t.stencil,s=!1)),\"depthStencil\"in t&&(\"boolean\"==typeof t.depthStencil?s=c=t.depthStencil:(k=t.depthStencil,c=s=!1))):a=o=1;var A=null,T=null,S=null,E=null;if(Array.isArray(i))A=i.map(u);else if(i)A=[u(i)];else for(A=Array(y),i=0;i<y;++i)A[i]=f(a,o,p,d,v);for(a=a||A[0].width,o=o||A[0].height,x?T=u(x):s&&!c&&(T=f(a,o,M,\"depth\",\"uint32\")),w?S=u(w):c&&!s&&(S=f(a,o,!1,\"stencil\",\"uint8\")),k?E=u(k):!x&&!w&&c&&s&&(E=f(a,o,M,\"depth stencil\",\"depth stencil\")),s=null,i=0;i<A.length;++i)l(A[i]),A[i]&&A[i].texture&&(c=yt[A[i].texture._texture.format]*xt[A[i].texture._texture.type],null===s&&(s=c));return l(T),l(S),l(E),g(n),n.width=a,n.height=o,n.colorAttachments=A,n.depthAttachment=T,n.stencilAttachment=S,n.depthStencilAttachment=E,r.color=A.map(h),r.depth=h(T),r.stencil=h(S),r.depthStencil=h(E),r.width=n.width,r.height=n.height,m(n),r}var n=new d;return a.framebufferCount++,r(t,e),j(r,{resize:function(t,e){var i=0|t,a=0|e||i;if(i===n.width&&a===n.height)return r;for(var o=n.colorAttachments,s=0;s<o.length;++s)p(o[s],i,a);return p(n.depthAttachment,i,a),p(n.stencilAttachment,i,a),p(n.depthStencilAttachment,i,a),n.width=r.width=i,n.height=r.height=a,m(n),r},_reglType:\"framebuffer\",_framebuffer:n,destroy:function(){v(n),g(n)},use:function(t){x.setFBO({framebuffer:r},t)}})}var x={cur:null,next:null,dirty:!1,setFBO:null},b=[\"rgba\"],_=[\"rgba4\",\"rgb565\",\"rgb5 a1\"];e.ext_srgb&&_.push(\"srgba\"),e.ext_color_buffer_half_float&&_.push(\"rgba16f\",\"rgb16f\"),e.webgl_color_buffer_float&&_.push(\"rgba32f\");var w=[\"uint8\"];e.oes_texture_half_float&&w.push(\"half float\",\"float16\"),e.oes_texture_float&&w.push(\"float\",\"float32\");var k=0,M={};return j(x,{getFramebuffer:function(t){return\"function\"==typeof t&&\"framebuffer\"===t._reglType&&(t=t._framebuffer)instanceof d?t:null},create:y,createCube:function(t){function e(t){var i,a={color:null},o=0,s=null;i=\"rgba\";var l=\"uint8\",c=1;if(\"number\"==typeof t?o=0|t:t?(\"shape\"in t?o=t.shape[0]:(\"radius\"in t&&(o=0|t.radius),\"width\"in t?o=0|t.width:\"height\"in t&&(o=0|t.height)),(\"color\"in t||\"colors\"in t)&&(s=t.color||t.colors,Array.isArray(s)),s||(\"colorCount\"in t&&(c=0|t.colorCount),\"colorType\"in t&&(l=t.colorType),\"colorFormat\"in t&&(i=t.colorFormat)),\"depth\"in t&&(a.depth=t.depth),\"stencil\"in t&&(a.stencil=t.stencil),\"depthStencil\"in t&&(a.depthStencil=t.depthStencil)):o=1,s)if(Array.isArray(s))for(t=[],i=0;i<s.length;++i)t[i]=s[i];else t=[s];else for(t=Array(c),s={radius:o,format:i,type:l},i=0;i<c;++i)t[i]=n.createCube(s);for(a.color=Array(t.length),i=0;i<t.length;++i)c=t[i],o=o||c.width,a.color[i]={target:34069,data:t[i]};for(i=0;6>i;++i){for(c=0;c<t.length;++c)a.color[c].target=34069+i;0<i&&(a.depth=r[0].depth,a.stencil=r[0].stencil,a.depthStencil=r[0].depthStencil),r[i]?r[i](a):r[i]=y(a)}return j(e,{width:o,height:o,color:t})}var r=Array(6);return e(t),j(e,{faces:r,resize:function(t){var n=0|t;if(n===e.width)return e;var i=e.color;for(t=0;t<i.length;++t)i[t].resize(n);for(t=0;6>t;++t)r[t].resize(n);return e.width=e.height=n,e},_reglType:\"framebufferCube\",destroy:function(){r.forEach(function(t){t.destroy()})}})},clear:function(){X(M).forEach(v)},restore:function(){X(M).forEach(function(e){e.framebuffer=t.createFramebuffer(),m(e)})}})}function T(){this.w=this.z=this.y=this.x=this.state=0,this.buffer=null,this.size=0,this.normalized=!1,this.type=5126,this.divisor=this.stride=this.offset=0}function S(t,e,r,n){function i(t,e,r,n){this.name=t,this.id=e,this.location=r,this.info=n}function a(t,e){for(var r=0;r<t.length;++r)if(t[r].id===e.id)return void(t[r].location=e.location);t.push(e)}function o(r,n,i){if(!(o=(i=35632===r?c:u)[n])){var a=e.str(n),o=t.createShader(r);t.shaderSource(o,a),t.compileShader(o),i[n]=o}return o}function s(t,e){this.id=p++,this.fragId=t,this.vertId=e,this.program=null,this.uniforms=[],this.attributes=[],n.profile&&(this.stats={uniformsCount:0,attributesCount:0})}function l(r,s){var l,c;l=o(35632,r.fragId),c=o(35633,r.vertId);var u=r.program=t.createProgram();t.attachShader(u,l),t.attachShader(u,c),t.linkProgram(u);var f=t.getProgramParameter(u,35718);n.profile&&(r.stats.uniformsCount=f);var h=r.uniforms;for(l=0;l<f;++l)if(c=t.getActiveUniform(u,l))if(1<c.size)for(var p=0;p<c.size;++p){var d=c.name.replace(\"[0]\",\"[\"+p+\"]\");a(h,new i(d,e.id(d),t.getUniformLocation(u,d),c))}else a(h,new i(c.name,e.id(c.name),t.getUniformLocation(u,c.name),c));for(f=t.getProgramParameter(u,35721),n.profile&&(r.stats.attributesCount=f),h=r.attributes,l=0;l<f;++l)(c=t.getActiveAttrib(u,l))&&a(h,new i(c.name,e.id(c.name),t.getAttribLocation(u,c.name),c))}var c={},u={},f={},h=[],p=0;return n.profile&&(r.getMaxUniformsCount=function(){var t=0;return h.forEach(function(e){e.stats.uniformsCount>t&&(t=e.stats.uniformsCount)}),t},r.getMaxAttributesCount=function(){var t=0;return h.forEach(function(e){e.stats.attributesCount>t&&(t=e.stats.attributesCount)}),t}),{clear:function(){var e=t.deleteShader.bind(t);X(c).forEach(e),c={},X(u).forEach(e),u={},h.forEach(function(e){t.deleteProgram(e.program)}),h.length=0,f={},r.shaderCount=0},program:function(t,e,n){var i=f[e];i||(i=f[e]={});var a=i[t];return a||(a=new s(e,t),r.shaderCount++,l(a),i[t]=a,h.push(a)),a},restore:function(){c={},u={};for(var t=0;t<h.length;++t)l(h[t])},shader:o,frag:-1,vert:-1}}function E(t,e,r,n,i,a,o){function s(i){var a;a=null===e.next?5121:e.next.colorAttachments[0].texture._texture.type;var o=0,s=0,l=n.framebufferWidth,c=n.framebufferHeight,u=null;return Y(i)?u=i:i&&(o=0|i.x,s=0|i.y,l=0|(i.width||n.framebufferWidth-o),c=0|(i.height||n.framebufferHeight-s),u=i.data||null),r(),i=l*c*4,u||(5121===a?u=new Uint8Array(i):5126===a&&(u=u||new Float32Array(i))),t.pixelStorei(3333,4),t.readPixels(o,s,l,c,6408,a,u),u}return function(t){return t&&\"framebuffer\"in t?function(t){var r;return e.setFBO({framebuffer:t.framebuffer},function(){r=s(t)}),r}(t):s(t)}}function C(t){return Array.prototype.slice.call(t)}function L(t){return C(t).join(\"\")}function z(){function t(){var t=[],e=[];return j(function(){t.push.apply(t,C(arguments))},{def:function(){var n=\"v\"+r++;return e.push(n),0<arguments.length&&(t.push(n,\"=\"),t.push.apply(t,C(arguments)),t.push(\";\")),n},toString:function(){return L([0<e.length?\"var \"+e+\";\":\"\",L(t)])}})}function e(){function e(t,e){n(t,e,\"=\",r.def(t,e),\";\")}var r=t(),n=t(),i=r.toString,a=n.toString;return j(function(){r.apply(r,C(arguments))},{def:r.def,entry:r,exit:n,save:e,set:function(t,n,i){e(t,n),r(t,n,\"=\",i,\";\")},toString:function(){return i()+a()}})}var r=0,n=[],i=[],a=t(),o={};return{global:a,link:function(t){for(var e=0;e<i.length;++e)if(i[e]===t)return n[e];return e=\"g\"+r++,n.push(e),i.push(t),e},block:t,proc:function(t,r){function n(){var t=\"a\"+i.length;return i.push(t),t}var i=[];r=r||0;for(var a=0;a<r;++a)n();var s=(a=e()).toString;return o[t]=j(a,{arg:n,toString:function(){return L([\"function(\",i.join(),\"){\",s(),\"}\"])}})},scope:e,cond:function(){var t=L(arguments),r=e(),n=e(),i=r.toString,a=n.toString;return j(r,{then:function(){return r.apply(r,C(arguments)),this},else:function(){return n.apply(n,C(arguments)),this},toString:function(){var e=a();return e&&(e=\"else{\"+e+\"}\"),L([\"if(\",t,\"){\",i(),\"}\",e])}})},compile:function(){var t=['\"use strict\";',a,\"return {\"];Object.keys(o).forEach(function(e){t.push('\"',e,'\":',o[e].toString(),\",\")}),t.push(\"}\");var e=L(t).replace(/;/g,\";\\n\").replace(/}/g,\"}\\n\").replace(/{/g,\"{\\n\");return Function.apply(null,n.concat(e)).apply(null,i)}}}function O(t){return Array.isArray(t)||Y(t)||l(t)}function I(t){return t.sort(function(t,e){return\"viewport\"===t?-1:\"viewport\"===e?1:t<e?-1:1})}function P(t,e,r,n){this.thisDep=t,this.contextDep=e,this.propDep=r,this.append=n}function D(t){return t&&!(t.thisDep||t.contextDep||t.propDep)}function R(t){return new P(!1,!1,!1,t)}function B(t,e){var r=t.type;return 0===r?new P(!0,1<=(r=t.data.length),2<=r,e):4===r?new P((r=t.data).thisDep,r.contextDep,r.propDep,e):new P(3===r,2===r,1===r,e)}function F(t,e,r,n,i,o,s,l,c,u,f,h,p,d,g){function m(t){return t.replace(\".\",\"_\")}function y(t,e,r){var n=m(t);nt.push(t),et[n]=tt[n]=!!r,it[n]=e}function x(t,e,r){var n=m(t);nt.push(t),Array.isArray(r)?(tt[n]=r.slice(),et[n]=r.slice()):tt[n]=et[n]=r,at[n]=e}function b(){var t=z(),r=t.link,n=t.global;t.id=lt++,t.batchId=\"0\";var i=r(ot),a=t.shared={props:\"a0\"};Object.keys(ot).forEach(function(t){a[t]=n.def(i,\".\",t)});var o=t.next={},s=t.current={};Object.keys(at).forEach(function(t){Array.isArray(tt[t])&&(o[t]=n.def(a.next,\".\",t),s[t]=n.def(a.current,\".\",t))});var l=t.constants={};Object.keys(st).forEach(function(t){l[t]=n.def(JSON.stringify(st[t]))}),t.invoke=function(e,n){switch(n.type){case 0:var i=[\"this\",a.context,a.props,t.batchId];return e.def(r(n.data),\".call(\",i.slice(0,Math.max(n.data.length+1,4)),\")\");case 1:return e.def(a.props,n.data);case 2:return e.def(a.context,n.data);case 3:return e.def(\"this\",n.data);case 4:return n.data.append(t,e),n.data.ref}},t.attribCache={};var c={};return t.scopeAttrib=function(t){if((t=e.id(t))in c)return c[t];var n=u.scope[t];return n||(n=u.scope[t]=new Z),c[t]=r(n)},t}function _(t,e){var r=t.static,n=t.dynamic;if(\"framebuffer\"in r){var i=r.framebuffer;return i?(i=l.getFramebuffer(i),R(function(t,e){var r=t.link(i),n=t.shared;return e.set(n.framebuffer,\".next\",r),n=n.context,e.set(n,\".framebufferWidth\",r+\".width\"),e.set(n,\".framebufferHeight\",r+\".height\"),r})):R(function(t,e){var r=t.shared;return e.set(r.framebuffer,\".next\",\"null\"),r=r.context,e.set(r,\".framebufferWidth\",r+\".drawingBufferWidth\"),e.set(r,\".framebufferHeight\",r+\".drawingBufferHeight\"),\"null\"})}if(\"framebuffer\"in n){var a=n.framebuffer;return B(a,function(t,e){var r=t.invoke(e,a),n=t.shared,i=n.framebuffer;r=e.def(i,\".getFramebuffer(\",r,\")\");return e.set(i,\".next\",r),n=n.context,e.set(n,\".framebufferWidth\",r+\"?\"+r+\".width:\"+n+\".drawingBufferWidth\"),e.set(n,\".framebufferHeight\",r+\"?\"+r+\".height:\"+n+\".drawingBufferHeight\"),r})}return null}function w(t){function r(t){if(t in n){var r=e.id(n[t]);return(t=R(function(){return r})).id=r,t}if(t in i){var a=i[t];return B(a,function(t,e){var r=t.invoke(e,a);return e.def(t.shared.strings,\".id(\",r,\")\")})}return null}var n=t.static,i=t.dynamic,a=r(\"frag\"),o=r(\"vert\"),s=null;return D(a)&&D(o)?(s=f.program(o.id,a.id),t=R(function(t,e){return t.link(s)})):t=new P(a&&a.thisDep||o&&o.thisDep,a&&a.contextDep||o&&o.contextDep,a&&a.propDep||o&&o.propDep,function(t,e){var r,n,i=t.shared.shader;return r=a?a.append(t,e):e.def(i,\".\",\"frag\"),n=o?o.append(t,e):e.def(i,\".\",\"vert\"),e.def(i+\".program(\"+n+\",\"+r+\")\")}),{frag:a,vert:o,progVar:t,program:s}}function k(t,e){function r(t,e){if(t in n){var r=0|n[t];return R(function(t,n){return e&&(t.OFFSET=r),r})}if(t in i){var o=i[t];return B(o,function(t,r){var n=t.invoke(r,o);return e&&(t.OFFSET=n),n})}return e&&a?R(function(t,e){return t.OFFSET=\"0\",0}):null}var n=t.static,i=t.dynamic,a=function(){if(\"elements\"in n){var t=n.elements;O(t)?t=o.getElements(o.create(t,!0)):t&&(t=o.getElements(t));var e=R(function(e,r){if(t){var n=e.link(t);return e.ELEMENTS=n}return e.ELEMENTS=null});return e.value=t,e}if(\"elements\"in i){var r=i.elements;return B(r,function(t,e){var n=(i=t.shared).isBufferArgs,i=i.elements,a=t.invoke(e,r),o=e.def(\"null\");n=e.def(n,\"(\",a,\")\"),a=t.cond(n).then(o,\"=\",i,\".createStream(\",a,\");\").else(o,\"=\",i,\".getElements(\",a,\");\");return e.entry(a),e.exit(t.cond(n).then(i,\".destroyStream(\",o,\");\")),t.ELEMENTS=o})}return null}(),s=r(\"offset\",!0);return{elements:a,primitive:function(){if(\"primitive\"in n){var t=n.primitive;return R(function(e,r){return rt[t]})}if(\"primitive\"in i){var e=i.primitive;return B(e,function(t,r){var n=t.constants.primTypes,i=t.invoke(r,e);return r.def(n,\"[\",i,\"]\")})}return a?D(a)?a.value?R(function(t,e){return e.def(t.ELEMENTS,\".primType\")}):R(function(){return 4}):new P(a.thisDep,a.contextDep,a.propDep,function(t,e){var r=t.ELEMENTS;return e.def(r,\"?\",r,\".primType:\",4)}):null}(),count:function(){if(\"count\"in n){var t=0|n.count;return R(function(){return t})}if(\"count\"in i){var e=i.count;return B(e,function(t,r){return t.invoke(r,e)})}return a?D(a)?a?s?new P(s.thisDep,s.contextDep,s.propDep,function(t,e){return e.def(t.ELEMENTS,\".vertCount-\",t.OFFSET)}):R(function(t,e){return e.def(t.ELEMENTS,\".vertCount\")}):R(function(){return-1}):new P(a.thisDep||s.thisDep,a.contextDep||s.contextDep,a.propDep||s.propDep,function(t,e){var r=t.ELEMENTS;return t.OFFSET?e.def(r,\"?\",r,\".vertCount-\",t.OFFSET,\":-1\"):e.def(r,\"?\",r,\".vertCount:-1\")}):null}(),instances:r(\"instances\",!1),offset:s}}function M(t,r){var n=t.static,a=t.dynamic,o={};return Object.keys(n).forEach(function(t){var r=n[t],a=e.id(t),s=new Z;if(O(r))s.state=1,s.buffer=i.getBuffer(i.create(r,34962,!1,!0)),s.type=0;else if(c=i.getBuffer(r))s.state=1,s.buffer=c,s.type=0;else if(\"constant\"in r){var l=r.constant;s.buffer=\"null\",s.state=2,\"number\"==typeof l?s.x=l:bt.forEach(function(t,e){e<l.length&&(s[t]=l[e])})}else{var c=O(r.buffer)?i.getBuffer(i.create(r.buffer,34962,!1,!0)):i.getBuffer(r.buffer),u=0|r.offset,f=0|r.stride,h=0|r.size,p=!!r.normalized,d=0;\"type\"in r&&(d=J[r.type]),r=0|r.divisor,s.buffer=c,s.state=1,s.size=h,s.normalized=p,s.type=d||c.dtype,s.offset=u,s.stride=f,s.divisor=r}o[t]=R(function(t,e){var r=t.attribCache;if(a in r)return r[a];var n={isStream:!1};return Object.keys(s).forEach(function(t){n[t]=s[t]}),s.buffer&&(n.buffer=t.link(s.buffer),n.type=n.type||n.buffer+\".dtype\"),r[a]=n})}),Object.keys(a).forEach(function(t){var e=a[t];o[t]=B(e,function(t,r){function n(t){r(l[t],\"=\",i,\".\",t,\"|0;\")}var i=t.invoke(r,e),a=t.shared,o=a.isBufferArgs,s=a.buffer,l={isStream:r.def(!1)},c=new Z;c.state=1,Object.keys(c).forEach(function(t){l[t]=r.def(\"\"+c[t])});var u=l.buffer,f=l.type;return r(\"if(\",o,\"(\",i,\")){\",l.isStream,\"=true;\",u,\"=\",s,\".createStream(\",34962,\",\",i,\");\",f,\"=\",u,\".dtype;\",\"}else{\",u,\"=\",s,\".getBuffer(\",i,\");\",\"if(\",u,\"){\",f,\"=\",u,\".dtype;\",'}else if(\"constant\" in ',i,\"){\",l.state,\"=\",2,\";\",\"if(typeof \"+i+'.constant === \"number\"){',l[bt[0]],\"=\",i,\".constant;\",bt.slice(1).map(function(t){return l[t]}).join(\"=\"),\"=0;\",\"}else{\",bt.map(function(t,e){return l[t]+\"=\"+i+\".constant.length>\"+e+\"?\"+i+\".constant[\"+e+\"]:0;\"}).join(\"\"),\"}}else{\",\"if(\",o,\"(\",i,\".buffer)){\",u,\"=\",s,\".createStream(\",34962,\",\",i,\".buffer);\",\"}else{\",u,\"=\",s,\".getBuffer(\",i,\".buffer);\",\"}\",f,'=\"type\" in ',i,\"?\",a.glTypes,\"[\",i,\".type]:\",u,\".dtype;\",l.normalized,\"=!!\",i,\".normalized;\"),n(\"size\"),n(\"offset\"),n(\"stride\"),n(\"divisor\"),r(\"}}\"),r.exit(\"if(\",l.isStream,\"){\",s,\".destroyStream(\",u,\");\",\"}\"),l})}),o}function A(t,e,r,n,i){var o=_(t),s=function(t,e,r){function n(t){if(t in i){var r=i[t];t=!0;var n,o,s=0|r.x,l=0|r.y;return\"width\"in r?n=0|r.width:t=!1,\"height\"in r?o=0|r.height:t=!1,new P(!t&&e&&e.thisDep,!t&&e&&e.contextDep,!t&&e&&e.propDep,function(t,e){var i=t.shared.context,a=n;\"width\"in r||(a=e.def(i,\".\",\"framebufferWidth\",\"-\",s));var c=o;return\"height\"in r||(c=e.def(i,\".\",\"framebufferHeight\",\"-\",l)),[s,l,a,c]})}if(t in a){var c=a[t];return t=B(c,function(t,e){var r=t.invoke(e,c),n=t.shared.context,i=e.def(r,\".x|0\"),a=e.def(r,\".y|0\");return[i,a,e.def('\"width\" in ',r,\"?\",r,\".width|0:\",\"(\",n,\".\",\"framebufferWidth\",\"-\",i,\")\"),r=e.def('\"height\" in ',r,\"?\",r,\".height|0:\",\"(\",n,\".\",\"framebufferHeight\",\"-\",a,\")\")]}),e&&(t.thisDep=t.thisDep||e.thisDep,t.contextDep=t.contextDep||e.contextDep,t.propDep=t.propDep||e.propDep),t}return e?new P(e.thisDep,e.contextDep,e.propDep,function(t,e){var r=t.shared.context;return[0,0,e.def(r,\".\",\"framebufferWidth\"),e.def(r,\".\",\"framebufferHeight\")]}):null}var i=t.static,a=t.dynamic;if(t=n(\"viewport\")){var o=t;t=new P(t.thisDep,t.contextDep,t.propDep,function(t,e){var r=o.append(t,e),n=t.shared.context;return e.set(n,\".viewportWidth\",r[2]),e.set(n,\".viewportHeight\",r[3]),r})}return{viewport:t,scissor_box:n(\"scissor.box\")}}(t,o),l=k(t),c=function(t,e){var r=t.static,n=t.dynamic,i={};return nt.forEach(function(t){function e(e,a){if(t in r){var s=e(r[t]);i[o]=R(function(){return s})}else if(t in n){var l=n[t];i[o]=B(l,function(t,e){return a(t,e,t.invoke(e,l))})}}var o=m(t);switch(t){case\"cull.enable\":case\"blend.enable\":case\"dither\":case\"stencil.enable\":case\"depth.enable\":case\"scissor.enable\":case\"polygonOffset.enable\":case\"sample.alpha\":case\"sample.enable\":case\"depth.mask\":return e(function(t){return t},function(t,e,r){return r});case\"depth.func\":return e(function(t){return kt[t]},function(t,e,r){return e.def(t.constants.compareFuncs,\"[\",r,\"]\")});case\"depth.range\":return e(function(t){return t},function(t,e,r){return[e.def(\"+\",r,\"[0]\"),e=e.def(\"+\",r,\"[1]\")]});case\"blend.func\":return e(function(t){return[wt[\"srcRGB\"in t?t.srcRGB:t.src],wt[\"dstRGB\"in t?t.dstRGB:t.dst],wt[\"srcAlpha\"in t?t.srcAlpha:t.src],wt[\"dstAlpha\"in t?t.dstAlpha:t.dst]]},function(t,e,r){function n(t,n){return e.def('\"',t,n,'\" in ',r,\"?\",r,\".\",t,n,\":\",r,\".\",t)}t=t.constants.blendFuncs;var i=n(\"src\",\"RGB\"),a=n(\"dst\",\"RGB\"),o=(i=e.def(t,\"[\",i,\"]\"),e.def(t,\"[\",n(\"src\",\"Alpha\"),\"]\"));return[i,a=e.def(t,\"[\",a,\"]\"),o,t=e.def(t,\"[\",n(\"dst\",\"Alpha\"),\"]\")]});case\"blend.equation\":return e(function(t){return\"string\"==typeof t?[$[t],$[t]]:\"object\"==typeof t?[$[t.rgb],$[t.alpha]]:void 0},function(t,e,r){var n=t.constants.blendEquations,i=e.def(),a=e.def();return(t=t.cond(\"typeof \",r,'===\"string\"')).then(i,\"=\",a,\"=\",n,\"[\",r,\"];\"),t.else(i,\"=\",n,\"[\",r,\".rgb];\",a,\"=\",n,\"[\",r,\".alpha];\"),e(t),[i,a]});case\"blend.color\":return e(function(t){return a(4,function(e){return+t[e]})},function(t,e,r){return a(4,function(t){return e.def(\"+\",r,\"[\",t,\"]\")})});case\"stencil.mask\":return e(function(t){return 0|t},function(t,e,r){return e.def(r,\"|0\")});case\"stencil.func\":return e(function(t){return[kt[t.cmp||\"keep\"],t.ref||0,\"mask\"in t?t.mask:-1]},function(t,e,r){return[t=e.def('\"cmp\" in ',r,\"?\",t.constants.compareFuncs,\"[\",r,\".cmp]\",\":\",7680),e.def(r,\".ref|0\"),e=e.def('\"mask\" in ',r,\"?\",r,\".mask|0:-1\")]});case\"stencil.opFront\":case\"stencil.opBack\":return e(function(e){return[\"stencil.opBack\"===t?1029:1028,Mt[e.fail||\"keep\"],Mt[e.zfail||\"keep\"],Mt[e.zpass||\"keep\"]]},function(e,r,n){function i(t){return r.def('\"',t,'\" in ',n,\"?\",a,\"[\",n,\".\",t,\"]:\",7680)}var a=e.constants.stencilOps;return[\"stencil.opBack\"===t?1029:1028,i(\"fail\"),i(\"zfail\"),i(\"zpass\")]});case\"polygonOffset.offset\":return e(function(t){return[0|t.factor,0|t.units]},function(t,e,r){return[e.def(r,\".factor|0\"),e=e.def(r,\".units|0\")]});case\"cull.face\":return e(function(t){var e=0;return\"front\"===t?e=1028:\"back\"===t&&(e=1029),e},function(t,e,r){return e.def(r,'===\"front\"?',1028,\":\",1029)});case\"lineWidth\":return e(function(t){return t},function(t,e,r){return r});case\"frontFace\":return e(function(t){return At[t]},function(t,e,r){return e.def(r+'===\"cw\"?2304:2305')});case\"colorMask\":return e(function(t){return t.map(function(t){return!!t})},function(t,e,r){return a(4,function(t){return\"!!\"+r+\"[\"+t+\"]\"})});case\"sample.coverage\":return e(function(t){return[\"value\"in t?t.value:1,!!t.invert]},function(t,e,r){return[e.def('\"value\" in ',r,\"?+\",r,\".value:1\"),e=e.def(\"!!\",r,\".invert\")]})}}),i}(t),u=w(t),f=s.viewport;return f&&(c.viewport=f),(s=s[f=m(\"scissor.box\")])&&(c[f]=s),(o={framebuffer:o,draw:l,shader:u,state:c,dirty:s=0<Object.keys(c).length}).profile=function(t){var e,r=t.static;if(t=t.dynamic,\"profile\"in r){var n=!!r.profile;(e=R(function(t,e){return n})).enable=n}else if(\"profile\"in t){var i=t.profile;e=B(i,function(t,e){return t.invoke(e,i)})}return e}(t),o.uniforms=function(t,e){var r=t.static,n=t.dynamic,i={};return Object.keys(r).forEach(function(t){var e,n=r[t];if(\"number\"==typeof n||\"boolean\"==typeof n)e=R(function(){return n});else if(\"function\"==typeof n){var o=n._reglType;\"texture2d\"===o||\"textureCube\"===o?e=R(function(t){return t.link(n)}):\"framebuffer\"!==o&&\"framebufferCube\"!==o||(e=R(function(t){return t.link(n.color[0])}))}else v(n)&&(e=R(function(t){return t.global.def(\"[\",a(n.length,function(t){return n[t]}),\"]\")}));e.value=n,i[t]=e}),Object.keys(n).forEach(function(t){var e=n[t];i[t]=B(e,function(t,r){return t.invoke(r,e)})}),i}(r),o.attributes=M(e),o.context=function(t){var e=t.static,r=t.dynamic,n={};return Object.keys(e).forEach(function(t){var r=e[t];n[t]=R(function(t,e){return\"number\"==typeof r||\"boolean\"==typeof r?\"\"+r:t.link(r)})}),Object.keys(r).forEach(function(t){var e=r[t];n[t]=B(e,function(t,r){return t.invoke(r,e)})}),n}(n),o}function T(t,e,r){var n=t.shared.context,i=t.scope();Object.keys(r).forEach(function(a){e.save(n,\".\"+a),i(n,\".\",a,\"=\",r[a].append(t,e),\";\")}),e(i)}function S(t,e,r,n){var i,a=(s=t.shared).gl,o=s.framebuffer;Q&&(i=e.def(s.extensions,\".webgl_draw_buffers\"));var s=(l=t.constants).drawBuffer,l=l.backBuffer;t=r?r.append(t,e):e.def(o,\".next\"),n||e(\"if(\",t,\"!==\",o,\".cur){\"),e(\"if(\",t,\"){\",a,\".bindFramebuffer(\",36160,\",\",t,\".framebuffer);\"),Q&&e(i,\".drawBuffersWEBGL(\",s,\"[\",t,\".colorAttachments.length]);\"),e(\"}else{\",a,\".bindFramebuffer(\",36160,\",null);\"),Q&&e(i,\".drawBuffersWEBGL(\",l,\");\"),e(\"}\",o,\".cur=\",t,\";\"),n||e(\"}\")}function E(t,e,r){var n=t.shared,i=n.gl,o=t.current,s=t.next,l=n.current,c=n.next,u=t.cond(l,\".dirty\");nt.forEach(function(e){var n,f;if(!((e=m(e))in r.state))if(e in s){n=s[e],f=o[e];var h=a(tt[e].length,function(t){return u.def(n,\"[\",t,\"]\")});u(t.cond(h.map(function(t,e){return t+\"!==\"+f+\"[\"+e+\"]\"}).join(\"||\")).then(i,\".\",at[e],\"(\",h,\");\",h.map(function(t,e){return f+\"[\"+e+\"]=\"+t}).join(\";\"),\";\"))}else n=u.def(c,\".\",e),h=t.cond(n,\"!==\",l,\".\",e),u(h),e in it?h(t.cond(n).then(i,\".enable(\",it[e],\");\").else(i,\".disable(\",it[e],\");\"),l,\".\",e,\"=\",n,\";\"):h(i,\".\",at[e],\"(\",n,\");\",l,\".\",e,\"=\",n,\";\")}),0===Object.keys(r.state).length&&u(l,\".dirty=false;\"),e(u)}function C(t,e,r,n){var i=t.shared,a=t.current,o=i.current,s=i.gl;I(Object.keys(r)).forEach(function(i){var l=r[i];if(!n||n(l)){var c=l.append(t,e);if(it[i]){var u=it[i];D(l)?e(s,c?\".enable(\":\".disable(\",u,\");\"):e(t.cond(c).then(s,\".enable(\",u,\");\").else(s,\".disable(\",u,\");\")),e(o,\".\",i,\"=\",c,\";\")}else if(v(c)){var f=a[i];e(s,\".\",at[i],\"(\",c,\");\",c.map(function(t,e){return f+\"[\"+e+\"]=\"+t}).join(\";\"),\";\")}else e(s,\".\",at[i],\"(\",c,\");\",o,\".\",i,\"=\",c,\";\")}})}function L(t,e){K&&(t.instancing=e.def(t.shared.extensions,\".angle_instanced_arrays\"))}function F(t,e,r,n,i){function a(){return\"undefined\"==typeof performance?\"Date.now()\":\"performance.now()\"}function o(t){t(c=e.def(),\"=\",a(),\";\"),\"string\"==typeof i?t(h,\".count+=\",i,\";\"):t(h,\".count++;\"),d&&(n?t(u=e.def(),\"=\",g,\".getNumPendingQueries();\"):t(g,\".beginQuery(\",h,\");\"))}function s(t){t(h,\".cpuTime+=\",a(),\"-\",c,\";\"),d&&(n?t(g,\".pushScopeStats(\",u,\",\",g,\".getNumPendingQueries(),\",h,\");\"):t(g,\".endQuery();\"))}function l(t){var r=e.def(p,\".profile\");e(p,\".profile=\",t,\";\"),e.exit(p,\".profile=\",r,\";\")}var c,u,f=t.shared,h=t.stats,p=f.current,g=f.timer;if(r=r.profile){if(D(r))return void(r.enable?(o(e),s(e.exit),l(\"true\")):l(\"false\"));l(r=r.append(t,e))}else r=e.def(p,\".profile\");o(f=t.block()),e(\"if(\",r,\"){\",f,\"}\"),s(t=t.block()),e.exit(\"if(\",r,\"){\",t,\"}\")}function N(t,e,r,n,i){function a(r,n,i){function a(){e(\"if(!\",u,\".buffer){\",l,\".enableVertexAttribArray(\",c,\");}\");var r,a=i.type;r=i.size?e.def(i.size,\"||\",n):n,e(\"if(\",u,\".type!==\",a,\"||\",u,\".size!==\",r,\"||\",p.map(function(t){return u+\".\"+t+\"!==\"+i[t]}).join(\"||\"),\"){\",l,\".bindBuffer(\",34962,\",\",f,\".buffer);\",l,\".vertexAttribPointer(\",[c,r,a,i.normalized,i.stride,i.offset],\");\",u,\".type=\",a,\";\",u,\".size=\",r,\";\",p.map(function(t){return u+\".\"+t+\"=\"+i[t]+\";\"}).join(\"\"),\"}\"),K&&(a=i.divisor,e(\"if(\",u,\".divisor!==\",a,\"){\",t.instancing,\".vertexAttribDivisorANGLE(\",[c,a],\");\",u,\".divisor=\",a,\";}\"))}function s(){e(\"if(\",u,\".buffer){\",l,\".disableVertexAttribArray(\",c,\");\",\"}if(\",bt.map(function(t,e){return u+\".\"+t+\"!==\"+h[e]}).join(\"||\"),\"){\",l,\".vertexAttrib4f(\",c,\",\",h,\");\",bt.map(function(t,e){return u+\".\"+t+\"=\"+h[e]+\";\"}).join(\"\"),\"}\")}var l=o.gl,c=e.def(r,\".location\"),u=e.def(o.attributes,\"[\",c,\"]\");r=i.state;var f=i.buffer,h=[i.x,i.y,i.z,i.w],p=[\"buffer\",\"normalized\",\"offset\",\"stride\"];1===r?a():2===r?s():(e(\"if(\",r,\"===\",1,\"){\"),a(),e(\"}else{\"),s(),e(\"}\"))}var o=t.shared;n.forEach(function(n){var o,s=n.name,l=r.attributes[s];if(l){if(!i(l))return;o=l.append(t,e)}else{if(!i(Tt))return;var c=t.scopeAttrib(s);o={},Object.keys(new Z).forEach(function(t){o[t]=e.def(c,\".\",t)})}a(t.link(n),function(t){switch(t){case 35664:case 35667:case 35671:return 2;case 35665:case 35668:case 35672:return 3;case 35666:case 35669:case 35673:return 4;default:return 1}}(n.info.type),o)})}function j(t,r,n,i,o){for(var s,l=t.shared,c=l.gl,u=0;u<i.length;++u){var f,h=(g=i[u]).name,p=g.info.type,d=n.uniforms[h],g=t.link(g)+\".location\";if(d){if(!o(d))continue;if(D(d)){if(h=d.value,35678===p||35680===p)r(c,\".uniform1i(\",g,\",\",(p=t.link(h._texture||h.color[0]._texture))+\".bind());\"),r.exit(p,\".unbind();\");else if(35674===p||35675===p||35676===p)d=2,35675===p?d=3:35676===p&&(d=4),r(c,\".uniformMatrix\",d,\"fv(\",g,\",false,\",h=t.global.def(\"new Float32Array([\"+Array.prototype.slice.call(h)+\"])\"),\");\");else{switch(p){case 5126:s=\"1f\";break;case 35664:s=\"2f\";break;case 35665:s=\"3f\";break;case 35666:s=\"4f\";break;case 35670:case 5124:s=\"1i\";break;case 35671:case 35667:s=\"2i\";break;case 35672:case 35668:s=\"3i\";break;case 35673:s=\"4i\";break;case 35669:s=\"4i\"}r(c,\".uniform\",s,\"(\",g,\",\",v(h)?Array.prototype.slice.call(h):h,\");\")}continue}f=d.append(t,r)}else{if(!o(Tt))continue;f=r.def(l.uniforms,\"[\",e.id(h),\"]\")}switch(35678===p?r(\"if(\",f,\"&&\",f,'._reglType===\"framebuffer\"){',f,\"=\",f,\".color[0];\",\"}\"):35680===p&&r(\"if(\",f,\"&&\",f,'._reglType===\"framebufferCube\"){',f,\"=\",f,\".color[0];\",\"}\"),h=1,p){case 35678:case 35680:p=r.def(f,\"._texture\"),r(c,\".uniform1i(\",g,\",\",p,\".bind());\"),r.exit(p,\".unbind();\");continue;case 5124:case 35670:s=\"1i\";break;case 35667:case 35671:s=\"2i\",h=2;break;case 35668:case 35672:s=\"3i\",h=3;break;case 35669:case 35673:s=\"4i\",h=4;break;case 5126:s=\"1f\";break;case 35664:s=\"2f\",h=2;break;case 35665:s=\"3f\",h=3;break;case 35666:s=\"4f\",h=4;break;case 35674:s=\"Matrix2fv\";break;case 35675:s=\"Matrix3fv\";break;case 35676:s=\"Matrix4fv\"}if(r(c,\".uniform\",s,\"(\",g,\",\"),\"M\"===s.charAt(0)){g=Math.pow(p-35674+2,2);var m=t.global.def(\"new Float32Array(\",g,\")\");r(\"false,(Array.isArray(\",f,\")||\",f,\" instanceof Float32Array)?\",f,\":(\",a(g,function(t){return m+\"[\"+t+\"]=\"+f+\"[\"+t+\"]\"}),\",\",m,\")\")}else r(1<h?a(h,function(t){return f+\"[\"+t+\"]\"}):f);r(\");\")}}function V(t,e,r,n){function i(i){var a=h[i];return a?a.contextDep&&n.contextDynamic||a.propDep?a.append(t,r):a.append(t,e):e.def(f,\".\",i)}function a(){function t(){r(l,\".drawElementsInstancedANGLE(\",[d,v,m,g+\"<<((\"+m+\"-5121)>>1)\",s],\");\")}function e(){r(l,\".drawArraysInstancedANGLE(\",[d,g,v,s],\");\")}p?y?t():(r(\"if(\",p,\"){\"),t(),r(\"}else{\"),e(),r(\"}\")):e()}function o(){function t(){r(u+\".drawElements(\"+[d,v,m,g+\"<<((\"+m+\"-5121)>>1)\"]+\");\")}function e(){r(u+\".drawArrays(\"+[d,g,v]+\");\")}p?y?t():(r(\"if(\",p,\"){\"),t(),r(\"}else{\"),e(),r(\"}\")):e()}var s,l,c=t.shared,u=c.gl,f=c.draw,h=n.draw,p=function(){var i=h.elements,a=e;return i?((i.contextDep&&n.contextDynamic||i.propDep)&&(a=r),i=i.append(t,a)):i=a.def(f,\".\",\"elements\"),i&&a(\"if(\"+i+\")\"+u+\".bindBuffer(34963,\"+i+\".buffer.buffer);\"),i}(),d=i(\"primitive\"),g=i(\"offset\"),v=function(){var i=h.count,a=e;return i?((i.contextDep&&n.contextDynamic||i.propDep)&&(a=r),i=i.append(t,a)):i=a.def(f,\".\",\"count\"),i}();if(\"number\"==typeof v){if(0===v)return}else r(\"if(\",v,\"){\"),r.exit(\"}\");K&&(s=i(\"instances\"),l=t.instancing);var m=p+\".type\",y=h.elements&&D(h.elements);K&&(\"number\"!=typeof s||0<=s)?\"string\"==typeof s?(r(\"if(\",s,\">0){\"),a(),r(\"}else if(\",s,\"<0){\"),o(),r(\"}\")):a():o()}function q(t,e,r,n,i){return i=(e=b()).proc(\"body\",i),K&&(e.instancing=i.def(e.shared.extensions,\".angle_instanced_arrays\")),t(e,i,r,n),e.compile().body}function H(t,e,r,n){L(t,e),N(t,e,r,n.attributes,function(){return!0}),j(t,e,r,n.uniforms,function(){return!0}),V(t,e,e,r)}function G(t,e,r,n){function i(){return!0}t.batchId=\"a1\",L(t,e),N(t,e,r,n.attributes,i),j(t,e,r,n.uniforms,i),V(t,e,e,r)}function W(t,e,r,n){function i(t){return t.contextDep&&o||t.propDep}function a(t){return!i(t)}L(t,e);var o=r.contextDep,s=e.def(),l=e.def();t.shared.props=l,t.batchId=s;var c=t.scope(),u=t.scope();e(c.entry,\"for(\",s,\"=0;\",s,\"<\",\"a1\",\";++\",s,\"){\",l,\"=\",\"a0\",\"[\",s,\"];\",u,\"}\",c.exit),r.needsContext&&T(t,u,r.context),r.needsFramebuffer&&S(t,u,r.framebuffer),C(t,u,r.state,i),r.profile&&i(r.profile)&&F(t,u,r,!1,!0),n?(N(t,c,r,n.attributes,a),N(t,u,r,n.attributes,i),j(t,c,r,n.uniforms,a),j(t,u,r,n.uniforms,i),V(t,c,u,r)):(e=t.global.def(\"{}\"),n=r.shader.progVar.append(t,u),l=u.def(n,\".id\"),c=u.def(e,\"[\",l,\"]\"),u(t.shared.gl,\".useProgram(\",n,\".program);\",\"if(!\",c,\"){\",c,\"=\",e,\"[\",l,\"]=\",t.link(function(e){return q(G,t,r,e,2)}),\"(\",n,\");}\",c,\".call(this,a0[\",s,\"],\",s,\");\"))}function Y(t,r){function n(e){var n=r.shader[e];n&&i.set(a.shader,\".\"+e,n.append(t,i))}var i=t.proc(\"scope\",3);t.batchId=\"a2\";var a=t.shared,o=a.current;T(t,i,r.context),r.framebuffer&&r.framebuffer.append(t,i),I(Object.keys(r.state)).forEach(function(e){var n=r.state[e].append(t,i);v(n)?n.forEach(function(r,n){i.set(t.next[e],\"[\"+n+\"]\",r)}):i.set(a.next,\".\"+e,n)}),F(t,i,r,!0,!0),[\"elements\",\"offset\",\"count\",\"instances\",\"primitive\"].forEach(function(e){var n=r.draw[e];n&&i.set(a.draw,\".\"+e,\"\"+n.append(t,i))}),Object.keys(r.uniforms).forEach(function(n){i.set(a.uniforms,\"[\"+e.id(n)+\"]\",r.uniforms[n].append(t,i))}),Object.keys(r.attributes).forEach(function(e){var n=r.attributes[e].append(t,i),a=t.scopeAttrib(e);Object.keys(new Z).forEach(function(t){i.set(a,\".\"+t,n[t])})}),n(\"vert\"),n(\"frag\"),0<Object.keys(r.state).length&&(i(o,\".dirty=true;\"),i.exit(o,\".dirty=true;\")),i(\"a1(\",t.shared.context,\",a0,\",t.batchId,\");\")}function X(t,e,r){var n=e.static[r];if(n&&function(t){if(\"object\"==typeof t&&!v(t)){for(var e=Object.keys(t),r=0;r<e.length;++r)if(U.isDynamic(t[e[r]]))return!0;return!1}}(n)){var i=t.global,a=Object.keys(n),o=!1,s=!1,l=!1,c=t.global.def(\"{}\");a.forEach(function(e){var r=n[e];if(U.isDynamic(r))\"function\"==typeof r&&(r=n[e]=U.unbox(r)),e=B(r,null),o=o||e.thisDep,l=l||e.propDep,s=s||e.contextDep;else{switch(i(c,\".\",e,\"=\"),typeof r){case\"number\":i(r);break;case\"string\":i('\"',r,'\"');break;case\"object\":Array.isArray(r)&&i(\"[\",r.join(),\"]\");break;default:i(t.link(r))}i(\";\")}}),e.dynamic[r]=new U.DynamicVariable(4,{thisDep:o,contextDep:s,propDep:l,ref:c,append:function(t,e){a.forEach(function(r){var i=n[r];U.isDynamic(i)&&(i=t.invoke(e,i),e(c,\".\",r,\"=\",i,\";\"))})}}),delete e.static[r]}}var Z=u.Record,$={add:32774,subtract:32778,\"reverse subtract\":32779};r.ext_blend_minmax&&($.min=32775,$.max=32776);var K=r.angle_instanced_arrays,Q=r.webgl_draw_buffers,tt={dirty:!0,profile:g.profile},et={},nt=[],it={},at={};y(\"dither\",3024),y(\"blend.enable\",3042),x(\"blend.color\",\"blendColor\",[0,0,0,0]),x(\"blend.equation\",\"blendEquationSeparate\",[32774,32774]),x(\"blend.func\",\"blendFuncSeparate\",[1,0,1,0]),y(\"depth.enable\",2929,!0),x(\"depth.func\",\"depthFunc\",513),x(\"depth.range\",\"depthRange\",[0,1]),x(\"depth.mask\",\"depthMask\",!0),x(\"colorMask\",\"colorMask\",[!0,!0,!0,!0]),y(\"cull.enable\",2884),x(\"cull.face\",\"cullFace\",1029),x(\"frontFace\",\"frontFace\",2305),x(\"lineWidth\",\"lineWidth\",1),y(\"polygonOffset.enable\",32823),x(\"polygonOffset.offset\",\"polygonOffset\",[0,0]),y(\"sample.alpha\",32926),y(\"sample.enable\",32928),x(\"sample.coverage\",\"sampleCoverage\",[1,!1]),y(\"stencil.enable\",2960),x(\"stencil.mask\",\"stencilMask\",-1),x(\"stencil.func\",\"stencilFunc\",[519,0,-1]),x(\"stencil.opFront\",\"stencilOpSeparate\",[1028,7680,7680,7680]),x(\"stencil.opBack\",\"stencilOpSeparate\",[1029,7680,7680,7680]),y(\"scissor.enable\",3089),x(\"scissor.box\",\"scissor\",[0,0,t.drawingBufferWidth,t.drawingBufferHeight]),x(\"viewport\",\"viewport\",[0,0,t.drawingBufferWidth,t.drawingBufferHeight]);var ot={gl:t,context:p,strings:e,next:et,current:tt,draw:h,elements:o,buffer:i,shader:f,attributes:u.state,uniforms:c,framebuffer:l,extensions:r,timer:d,isBufferArgs:O},st={primTypes:rt,compareFuncs:kt,blendFuncs:wt,blendEquations:$,stencilOps:Mt,glTypes:J,orientationType:At};Q&&(st.backBuffer=[1029],st.drawBuffer=a(n.maxDrawbuffers,function(t){return 0===t?[0]:a(t,function(t){return 36064+t})}));var lt=0;return{next:et,current:tt,procs:function(){var t=b(),e=t.proc(\"poll\"),r=t.proc(\"refresh\"),i=t.block();e(i),r(i);var o,s=t.shared,l=s.gl,c=s.next,u=s.current;i(u,\".dirty=false;\"),S(t,e),S(t,r,null,!0),K&&(o=t.link(K));for(var f=0;f<n.maxAttributes;++f){var h=r.def(s.attributes,\"[\",f,\"]\"),p=t.cond(h,\".buffer\");p.then(l,\".enableVertexAttribArray(\",f,\");\",l,\".bindBuffer(\",34962,\",\",h,\".buffer.buffer);\",l,\".vertexAttribPointer(\",f,\",\",h,\".size,\",h,\".type,\",h,\".normalized,\",h,\".stride,\",h,\".offset);\").else(l,\".disableVertexAttribArray(\",f,\");\",l,\".vertexAttrib4f(\",f,\",\",h,\".x,\",h,\".y,\",h,\".z,\",h,\".w);\",h,\".buffer=null;\"),r(p),K&&r(o,\".vertexAttribDivisorANGLE(\",f,\",\",h,\".divisor);\")}return Object.keys(it).forEach(function(n){var a=it[n],o=i.def(c,\".\",n),s=t.block();s(\"if(\",o,\"){\",l,\".enable(\",a,\")}else{\",l,\".disable(\",a,\")}\",u,\".\",n,\"=\",o,\";\"),r(s),e(\"if(\",o,\"!==\",u,\".\",n,\"){\",s,\"}\")}),Object.keys(at).forEach(function(n){var o,s,f=at[n],h=tt[n],p=t.block();p(l,\".\",f,\"(\"),v(h)?(f=h.length,o=t.global.def(c,\".\",n),s=t.global.def(u,\".\",n),p(a(f,function(t){return o+\"[\"+t+\"]\"}),\");\",a(f,function(t){return s+\"[\"+t+\"]=\"+o+\"[\"+t+\"];\"}).join(\"\")),e(\"if(\",a(f,function(t){return o+\"[\"+t+\"]!==\"+s+\"[\"+t+\"]\"}).join(\"||\"),\"){\",p,\"}\")):(o=i.def(c,\".\",n),s=i.def(u,\".\",n),p(o,\");\",u,\".\",n,\"=\",o,\";\"),e(\"if(\",o,\"!==\",s,\"){\",p,\"}\")),r(p)}),t.compile()}(),compile:function(t,e,r,n,i){var a=b();return a.stats=a.link(i),Object.keys(e.static).forEach(function(t){X(a,e,t)}),_t.forEach(function(e){X(a,t,e)}),r=A(t,e,r,n),function(t,e){var r=t.proc(\"draw\",1);L(t,r),T(t,r,e.context),S(t,r,e.framebuffer),E(t,r,e),C(t,r,e.state),F(t,r,e,!1,!0);var n=e.shader.progVar.append(t,r);if(r(t.shared.gl,\".useProgram(\",n,\".program);\"),e.shader.program)H(t,r,e,e.shader.program);else{var i=t.global.def(\"{}\"),a=r.def(n,\".id\"),o=r.def(i,\"[\",a,\"]\");r(t.cond(o).then(o,\".call(this,a0);\").else(o,\"=\",i,\"[\",a,\"]=\",t.link(function(r){return q(H,t,e,r,1)}),\"(\",n,\");\",o,\".call(this,a0);\"))}0<Object.keys(e.state).length&&r(t.shared.current,\".dirty=true;\")}(a,r),Y(a,r),function(t,e){function r(t){return t.contextDep&&i||t.propDep}var n=t.proc(\"batch\",2);t.batchId=\"0\",L(t,n);var i=!1,a=!0;Object.keys(e.context).forEach(function(t){i=i||e.context[t].propDep}),i||(T(t,n,e.context),a=!1);var o=!1;if((s=e.framebuffer)?(s.propDep?i=o=!0:s.contextDep&&i&&(o=!0),o||S(t,n,s)):S(t,n,null),e.state.viewport&&e.state.viewport.propDep&&(i=!0),E(t,n,e),C(t,n,e.state,function(t){return!r(t)}),e.profile&&r(e.profile)||F(t,n,e,!1,\"a1\"),e.contextDep=i,e.needsContext=a,e.needsFramebuffer=o,(a=e.shader.progVar).contextDep&&i||a.propDep)W(t,n,e,null);else if(a=a.append(t,n),n(t.shared.gl,\".useProgram(\",a,\".program);\"),e.shader.program)W(t,n,e,e.shader.program);else{var s=t.global.def(\"{}\"),l=(o=n.def(a,\".id\"),n.def(s,\"[\",o,\"]\"));n(t.cond(l).then(l,\".call(this,a0,a1);\").else(l,\"=\",s,\"[\",o,\"]=\",t.link(function(r){return q(W,t,e,r,2)}),\"(\",a,\");\",l,\".call(this,a0,a1);\"))}0<Object.keys(e.state).length&&n(t.shared.current,\".dirty=true;\")}(a,r),a.compile()}}}function N(t,e){for(var r=0;r<t.length;++r)if(t[r]===e)return r;return-1}var j=function(t,e){for(var r=Object.keys(e),n=0;n<r.length;++n)t[r[n]]=e[r[n]];return t},V=0,U={DynamicVariable:t,define:function(r,n){return new t(r,e(n+\"\"))},isDynamic:function(e){return\"function\"==typeof e&&!e._reglType||e instanceof t},unbox:function(e,r){return\"function\"==typeof e?new t(0,e):e},accessor:e},q={next:\"function\"==typeof requestAnimationFrame?function(t){return requestAnimationFrame(t)}:function(t){return setTimeout(t,16)},cancel:\"function\"==typeof cancelAnimationFrame?function(t){return cancelAnimationFrame(t)}:clearTimeout},H=\"undefined\"!=typeof performance&&performance.now?function(){return performance.now()}:function(){return+new Date},G=s();G.zero=s();var W=function(t,e){var r=1;e.ext_texture_filter_anisotropic&&(r=t.getParameter(34047));var n=1,i=1;e.webgl_draw_buffers&&(n=t.getParameter(34852),i=t.getParameter(36063));var a=!!e.oes_texture_float;if(a){a=t.createTexture(),t.bindTexture(3553,a),t.texImage2D(3553,0,6408,1,1,0,6408,5126,null);var o=t.createFramebuffer();if(t.bindFramebuffer(36160,o),t.framebufferTexture2D(36160,36064,3553,a,0),t.bindTexture(3553,null),36053!==t.checkFramebufferStatus(36160))a=!1;else{t.viewport(0,0,1,1),t.clearColor(1,0,0,1),t.clear(16384);var s=G.allocType(5126,4);t.readPixels(0,0,1,1,6408,5126,s),t.getError()?a=!1:(t.deleteFramebuffer(o),t.deleteTexture(a),a=1===s[0]),G.freeType(s)}}return s=!0,s=t.createTexture(),o=G.allocType(5121,36),t.activeTexture(33984),t.bindTexture(34067,s),t.texImage2D(34069,0,6408,3,3,0,6408,5121,o),G.freeType(o),t.bindTexture(34067,null),t.deleteTexture(s),s=!t.getError(),{colorBits:[t.getParameter(3410),t.getParameter(3411),t.getParameter(3412),t.getParameter(3413)],depthBits:t.getParameter(3414),stencilBits:t.getParameter(3415),subpixelBits:t.getParameter(3408),extensions:Object.keys(e).filter(function(t){return!!e[t]}),maxAnisotropic:r,maxDrawbuffers:n,maxColorAttachments:i,pointSizeDims:t.getParameter(33901),lineWidthDims:t.getParameter(33902),maxViewportDims:t.getParameter(3386),maxCombinedTextureUnits:t.getParameter(35661),maxCubeMapSize:t.getParameter(34076),maxRenderbufferSize:t.getParameter(34024),maxTextureUnits:t.getParameter(34930),maxTextureSize:t.getParameter(3379),maxAttributes:t.getParameter(34921),maxVertexUniforms:t.getParameter(36347),maxVertexTextureUnits:t.getParameter(35660),maxVaryingVectors:t.getParameter(36348),maxFragmentUniforms:t.getParameter(36349),glsl:t.getParameter(35724),renderer:t.getParameter(7937),vendor:t.getParameter(7936),version:t.getParameter(7938),readFloat:a,npotTextureCube:s}},Y=function(t){return t instanceof Uint8Array||t instanceof Uint16Array||t instanceof Uint32Array||t instanceof Int8Array||t instanceof Int16Array||t instanceof Int32Array||t instanceof Float32Array||t instanceof Float64Array||t instanceof Uint8ClampedArray},X=function(t){return Object.keys(t).map(function(e){return t[e]})},Z={shape:function(t){for(var e=[];t.length;t=t[0])e.push(t.length);return e},flatten:function(t,e,r,n){var i=1;if(e.length)for(var a=0;a<e.length;++a)i*=e[a];else i=0;switch(r=n||G.allocType(r,i),e.length){case 0:break;case 1:for(n=e[0],e=0;e<n;++e)r[e]=t[e];break;case 2:for(n=e[0],e=e[1],a=i=0;a<n;++a)for(var o=t[a],s=0;s<e;++s)r[i++]=o[s];break;case 3:c(t,e[0],e[1],e[2],r,0);break;default:!function t(e,r,n,i,a){for(var o=1,s=n+1;s<r.length;++s)o*=r[s];var l=r[n];if(4==r.length-n){var u=r[n+1],f=r[n+2];for(r=r[n+3],s=0;s<l;++s)c(e[s],u,f,r,i,a),a+=o}else for(s=0;s<l;++s)t(e[s],r,n+1,i,a),a+=o}(t,e,0,r,0)}return r}},$={\"[object Int8Array]\":5120,\"[object Int16Array]\":5122,\"[object Int32Array]\":5124,\"[object Uint8Array]\":5121,\"[object Uint8ClampedArray]\":5121,\"[object Uint16Array]\":5123,\"[object Uint32Array]\":5125,\"[object Float32Array]\":5126,\"[object Float64Array]\":5121,\"[object ArrayBuffer]\":5121},J={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},K={dynamic:35048,stream:35040,static:35044},Q=Z.flatten,tt=Z.shape,et=[];et[5120]=1,et[5122]=2,et[5124]=4,et[5121]=1,et[5123]=2,et[5125]=4,et[5126]=4;var rt={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,\"line loop\":2,\"line strip\":3,\"triangle strip\":5,\"triangle fan\":6},nt=new Float32Array(1),it=new Uint32Array(nt.buffer),at=[9984,9986,9985,9987],ot=[0,6409,6410,6407,6408],st={};st[6409]=st[6406]=st[6402]=1,st[34041]=st[6410]=2,st[6407]=st[35904]=3,st[6408]=st[35906]=4;var lt=m(\"HTMLCanvasElement\"),ct=m(\"CanvasRenderingContext2D\"),ut=m(\"ImageBitmap\"),ft=m(\"HTMLImageElement\"),ht=m(\"HTMLVideoElement\"),pt=Object.keys($).concat([lt,ct,ut,ft,ht]),dt=[];dt[5121]=1,dt[5126]=4,dt[36193]=2,dt[5123]=2,dt[5125]=4;var gt=[];gt[32854]=2,gt[32855]=2,gt[36194]=2,gt[34041]=4,gt[33776]=.5,gt[33777]=.5,gt[33778]=1,gt[33779]=1,gt[35986]=.5,gt[35987]=1,gt[34798]=1,gt[35840]=.5,gt[35841]=.25,gt[35842]=.5,gt[35843]=.25,gt[36196]=.5;var vt=[];vt[32854]=2,vt[32855]=2,vt[36194]=2,vt[33189]=2,vt[36168]=1,vt[34041]=4,vt[35907]=4,vt[34836]=16,vt[34842]=8,vt[34843]=6;var mt=function(t,e,r,n,i){function a(t){this.id=c++,this.refCount=1,this.renderbuffer=t,this.format=32854,this.height=this.width=0,i.profile&&(this.stats={size:0})}function o(e){var r=e.renderbuffer;t.bindRenderbuffer(36161,null),t.deleteRenderbuffer(r),e.renderbuffer=null,e.refCount=0,delete u[e.id],n.renderbufferCount--}var s={rgba4:32854,rgb565:36194,\"rgb5 a1\":32855,depth:33189,stencil:36168,\"depth stencil\":34041};e.ext_srgb&&(s.srgba=35907),e.ext_color_buffer_half_float&&(s.rgba16f=34842,s.rgb16f=34843),e.webgl_color_buffer_float&&(s.rgba32f=34836);var l=[];Object.keys(s).forEach(function(t){l[s[t]]=t});var c=0,u={};return a.prototype.decRef=function(){0>=--this.refCount&&o(this)},i.profile&&(n.getTotalRenderbufferSize=function(){var t=0;return Object.keys(u).forEach(function(e){t+=u[e].stats.size}),t}),{create:function(e,r){function o(e,r){var n=0,a=0,u=32854;if(\"object\"==typeof e&&e?(\"shape\"in e?(n=0|(a=e.shape)[0],a=0|a[1]):(\"radius\"in e&&(n=a=0|e.radius),\"width\"in e&&(n=0|e.width),\"height\"in e&&(a=0|e.height)),\"format\"in e&&(u=s[e.format])):\"number\"==typeof e?(n=0|e,a=\"number\"==typeof r?0|r:n):e||(n=a=1),n!==c.width||a!==c.height||u!==c.format)return o.width=c.width=n,o.height=c.height=a,c.format=u,t.bindRenderbuffer(36161,c.renderbuffer),t.renderbufferStorage(36161,u,n,a),i.profile&&(c.stats.size=vt[c.format]*c.width*c.height),o.format=l[c.format],o}var c=new a(t.createRenderbuffer());return u[c.id]=c,n.renderbufferCount++,o(e,r),o.resize=function(e,r){var n=0|e,a=0|r||n;return n===c.width&&a===c.height?o:(o.width=c.width=n,o.height=c.height=a,t.bindRenderbuffer(36161,c.renderbuffer),t.renderbufferStorage(36161,c.format,n,a),i.profile&&(c.stats.size=vt[c.format]*c.width*c.height),o)},o._reglType=\"renderbuffer\",o._renderbuffer=c,i.profile&&(o.stats=c.stats),o.destroy=function(){c.decRef()},o},clear:function(){X(u).forEach(o)},restore:function(){X(u).forEach(function(e){e.renderbuffer=t.createRenderbuffer(),t.bindRenderbuffer(36161,e.renderbuffer),t.renderbufferStorage(36161,e.format,e.width,e.height)}),t.bindRenderbuffer(36161,null)}}},yt=[];yt[6408]=4,yt[6407]=3;var xt=[];xt[5121]=1,xt[5126]=4,xt[36193]=2;var bt=[\"x\",\"y\",\"z\",\"w\"],_t=\"blend.func blend.equation stencil.func stencil.opFront stencil.opBack sample.coverage viewport scissor.box polygonOffset.offset\".split(\" \"),wt={0:0,1:1,zero:0,one:1,\"src color\":768,\"one minus src color\":769,\"src alpha\":770,\"one minus src alpha\":771,\"dst color\":774,\"one minus dst color\":775,\"dst alpha\":772,\"one minus dst alpha\":773,\"constant color\":32769,\"one minus constant color\":32770,\"constant alpha\":32771,\"one minus constant alpha\":32772,\"src alpha saturate\":776},kt={never:512,less:513,\"<\":513,equal:514,\"=\":514,\"==\":514,\"===\":514,lequal:515,\"<=\":515,greater:516,\">\":516,notequal:517,\"!=\":517,\"!==\":517,gequal:518,\">=\":518,always:519},Mt={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,\"increment wrap\":34055,\"decrement wrap\":34056,invert:5386},At={cw:2304,ccw:2305},Tt=new P(!1,!1,!1,function(){});return function(t){function e(){if(0===Z.length)w&&w.update(),Q=null;else{Q=q.next(e),f();for(var t=Z.length-1;0<=t;--t){var r=Z[t];r&&r(z,null,0)}v.flush(),w&&w.update()}}function r(){!Q&&0<Z.length&&(Q=q.next(e))}function n(){Q&&(q.cancel(e),Q=null)}function a(t){t.preventDefault(),n(),$.forEach(function(t){t()})}function o(t){v.getError(),y.restore(),D.restore(),I.restore(),R.restore(),B.restore(),V.restore(),w&&w.restore(),G.procs.refresh(),r(),J.forEach(function(t){t()})}function s(t){function e(t){var e={},r={};return Object.keys(t).forEach(function(n){var i=t[n];U.isDynamic(i)?r[n]=U.unbox(i,n):e[n]=i}),{dynamic:r,static:e}}var r=e(t.context||{}),n=e(t.uniforms||{}),i=e(t.attributes||{}),a=e(function(t){function e(t){if(t in r){var e=r[t];delete r[t],Object.keys(e).forEach(function(n){r[t+\".\"+n]=e[n]})}}var r=j({},t);return delete r.uniforms,delete r.attributes,delete r.context,\"stencil\"in r&&r.stencil.op&&(r.stencil.opBack=r.stencil.opFront=r.stencil.op,delete r.stencil.op),e(\"blend\"),e(\"depth\"),e(\"cull\"),e(\"stencil\"),e(\"polygonOffset\"),e(\"scissor\"),e(\"sample\"),r}(t));t={gpuTime:0,cpuTime:0,count:0};var o=(r=G.compile(a,i,n,r,t)).draw,s=r.batch,l=r.scope,c=[];return j(function(t,e){var r;if(\"function\"==typeof t)return l.call(this,null,t,0);if(\"function\"==typeof e)if(\"number\"==typeof t)for(r=0;r<t;++r)l.call(this,null,e,r);else{if(!Array.isArray(t))return l.call(this,t,e,0);for(r=0;r<t.length;++r)l.call(this,t[r],e,r)}else if(\"number\"==typeof t){if(0<t)return s.call(this,function(t){for(;c.length<t;)c.push(null);return c}(0|t),0|t)}else{if(!Array.isArray(t))return o.call(this,t);if(t.length)return s.call(this,t,t.length)}},{stats:t})}function l(t,e){var r=0;G.procs.poll();var n=e.color;n&&(v.clearColor(+n[0]||0,+n[1]||0,+n[2]||0,+n[3]||0),r|=16384),\"depth\"in e&&(v.clearDepth(+e.depth),r|=256),\"stencil\"in e&&(v.clearStencil(0|e.stencil),r|=1024),v.clear(r)}function c(t){return Z.push(t),r(),{cancel:function(){var e=N(Z,t);Z[e]=function t(){var e=N(Z,t);Z[e]=Z[Z.length-1],--Z.length,0>=Z.length&&n()}}}}function u(){var t=Y.viewport,e=Y.scissor_box;t[0]=t[1]=e[0]=e[1]=0,z.viewportWidth=z.framebufferWidth=z.drawingBufferWidth=t[2]=e[2]=v.drawingBufferWidth,z.viewportHeight=z.framebufferHeight=z.drawingBufferHeight=t[3]=e[3]=v.drawingBufferHeight}function f(){z.tick+=1,z.time=g(),u(),G.procs.poll()}function h(){u(),G.procs.refresh(),w&&w.update()}function g(){return(H()-k)/1e3}if(!(t=i(t)))return null;var v=t.gl,m=v.getContextAttributes();v.isContextLost();var y=function(t,e){function r(e){var r;e=e.toLowerCase();try{r=n[e]=t.getExtension(e)}catch(t){}return!!r}for(var n={},i=0;i<e.extensions.length;++i){var a=e.extensions[i];if(!r(a))return e.onDestroy(),e.onDone('\"'+a+'\" extension is not supported by the current WebGL context, try upgrading your system or a different browser'),null}return e.optionalExtensions.forEach(r),{extensions:n,restore:function(){Object.keys(n).forEach(function(t){if(!r(t))throw Error(\"(regl): error restoring extension \"+t)})}}}(v,t);if(!y)return null;var x=function(){var t={\"\":0},e=[\"\"];return{id:function(r){var n=t[r];return n||(n=t[r]=e.length,e.push(r),n)},str:function(t){return e[t]}}}(),b={bufferCount:0,elementsCount:0,framebufferCount:0,shaderCount:0,textureCount:0,cubeCount:0,renderbufferCount:0,maxTextureUnits:0},_=y.extensions,w=function(t,e){function r(){this.endQueryIndex=this.startQueryIndex=-1,this.sum=0,this.stats=null}function n(t,e,n){var i=s.pop()||new r;i.startQueryIndex=t,i.endQueryIndex=e,i.sum=0,i.stats=n,l.push(i)}var i=e.ext_disjoint_timer_query;if(!i)return null;var a=[],o=[],s=[],l=[],c=[],u=[];return{beginQuery:function(t){var e=a.pop()||i.createQueryEXT();i.beginQueryEXT(35007,e),o.push(e),n(o.length-1,o.length,t)},endQuery:function(){i.endQueryEXT(35007)},pushScopeStats:n,update:function(){var t,e;if(0!==(t=o.length)){u.length=Math.max(u.length,t+1),c.length=Math.max(c.length,t+1),c[0]=0;var r=u[0]=0;for(e=t=0;e<o.length;++e){var n=o[e];i.getQueryObjectEXT(n,34919)?(r+=i.getQueryObjectEXT(n,34918),a.push(n)):o[t++]=n,c[e+1]=r,u[e+1]=t}for(o.length=t,e=t=0;e<l.length;++e){var f=(r=l[e]).startQueryIndex;n=r.endQueryIndex,r.sum+=c[n]-c[f],f=u[f],(n=u[n])===f?(r.stats.gpuTime+=r.sum/1e6,s.push(r)):(r.startQueryIndex=f,r.endQueryIndex=n,l[t++]=r)}l.length=t}},getNumPendingQueries:function(){return o.length},clear:function(){a.push.apply(a,o);for(var t=0;t<a.length;t++)i.deleteQueryEXT(a[t]);o.length=0,a.length=0},restore:function(){o.length=0,a.length=0}}}(0,_),k=H(),C=v.drawingBufferWidth,L=v.drawingBufferHeight,z={tick:0,time:0,viewportWidth:C,viewportHeight:L,framebufferWidth:C,framebufferHeight:L,drawingBufferWidth:C,drawingBufferHeight:L,pixelRatio:t.pixelRatio},O=W(v,_),I=(C=function(t,e,r,n){for(t=r.maxAttributes,e=Array(t),r=0;r<t;++r)e[r]=new T;return{Record:T,scope:{},state:e}}(v,_,O),p(v,b,t,C)),P=d(v,_,I,b),D=S(v,x,b,t),R=M(v,_,O,function(){G.procs.poll()},z,b,t),B=mt(v,_,0,b,t),V=A(v,_,O,R,B,b),G=F(v,x,_,O,I,P,0,V,{},C,D,{elements:null,primitive:4,count:-1,offset:0,instances:-1},z,w,t),Y=(x=E(v,V,G.procs.poll,z),G.next),X=v.canvas,Z=[],$=[],J=[],K=[t.onDestroy],Q=null;X&&(X.addEventListener(\"webglcontextlost\",a,!1),X.addEventListener(\"webglcontextrestored\",o,!1));var tt=V.setFBO=s({framebuffer:U.define.call(null,1,\"framebuffer\")});return h(),m=j(s,{clear:function(t){if(\"framebuffer\"in t)if(t.framebuffer&&\"framebufferCube\"===t.framebuffer_reglType)for(var e=0;6>e;++e)tt(j({framebuffer:t.framebuffer.faces[e]},t),l);else tt(t,l);else l(0,t)},prop:U.define.bind(null,1),context:U.define.bind(null,2),this:U.define.bind(null,3),draw:s({}),buffer:function(t){return I.create(t,34962,!1,!1)},elements:function(t){return P.create(t,!1)},texture:R.create2D,cube:R.createCube,renderbuffer:B.create,framebuffer:V.create,framebufferCube:V.createCube,attributes:m,frame:c,on:function(t,e){var r;switch(t){case\"frame\":return c(e);case\"lost\":r=$;break;case\"restore\":r=J;break;case\"destroy\":r=K}return r.push(e),{cancel:function(){for(var t=0;t<r.length;++t)if(r[t]===e){r[t]=r[r.length-1],r.pop();break}}}},limits:O,hasExtension:function(t){return 0<=O.extensions.indexOf(t.toLowerCase())},read:x,destroy:function(){Z.length=0,n(),X&&(X.removeEventListener(\"webglcontextlost\",a),X.removeEventListener(\"webglcontextrestored\",o)),D.clear(),V.clear(),B.clear(),R.clear(),P.clear(),I.clear(),w&&w.clear(),K.forEach(function(t){t()})},_gl:v,_refresh:h,poll:function(){f(),w&&w.update()},now:g,stats:b}),t.onDone(null,m),m}},\"object\"==typeof r&&\"undefined\"!=typeof e?e.exports=i():n.createREGL=i()},{}],479:[function(t,e,r){\"use strict\";var n,i=\"\";e.exports=function(t,e){if(\"string\"!=typeof t)throw new TypeError(\"expected a string\");if(1===e)return t;if(2===e)return t+t;var r=t.length*e;if(n!==t||\"undefined\"==typeof n)n=t,i=\"\";else if(i.length>=r)return i.substr(0,r);for(;r>i.length&&e>1;)1&e&&(i+=t),e>>=1,t+=t;return i=(i+=t).substr(0,r)}},{}],480:[function(t,e,r){(function(t){e.exports=t.performance&&t.performance.now?function(){return performance.now()}:Date.now||function(){return+new Date}}).call(this,\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{}],481:[function(t,e,r){\"use strict\";e.exports=function(t){for(var e=t.length,r=t[t.length-1],n=e,i=e-2;i>=0;--i){var a=r,o=t[i],s=(r=a+o)-a,l=o-s;l&&(t[--n]=r,r=l)}for(var c=0,i=n;i<e;++i){var a=t[i],o=r,s=(r=a+o)-a,l=o-s;l&&(t[c++]=l)}return t[c++]=r,t.length=c,t}},{}],482:[function(t,e,r){\"use strict\";var n=t(\"two-product\"),i=t(\"robust-sum\"),a=t(\"robust-scale\"),o=t(\"robust-compress\"),s=6;function l(t,e){for(var r=new Array(t.length-1),n=1;n<t.length;++n)for(var i=r[n-1]=new Array(t.length-1),a=0,o=0;a<t.length;++a)a!==e&&(i[o++]=t[n][a]);return r}function c(t){if(2===t.length)return[\"sum(prod(\",t[0][0],\",\",t[1][1],\"),prod(-\",t[0][1],\",\",t[1][0],\"))\"].join(\"\");for(var e=[],r=0;r<t.length;++r)e.push([\"scale(\",c(l(t,r)),\",\",(n=r,1&n?\"-\":\"\"),t[0][r],\")\"].join(\"\"));return function t(e){if(1===e.length)return e[0];if(2===e.length)return[\"sum(\",e[0],\",\",e[1],\")\"].join(\"\");var r=e.length>>1;return[\"sum(\",t(e.slice(0,r)),\",\",t(e.slice(r)),\")\"].join(\"\")}(e);var n}function u(t){return new Function(\"sum\",\"scale\",\"prod\",\"compress\",[\"function robustDeterminant\",t,\"(m){return compress(\",c(function(t){for(var e=new Array(t),r=0;r<t;++r){e[r]=new Array(t);for(var n=0;n<t;++n)e[r][n]=[\"m[\",r,\"][\",n,\"]\"].join(\"\")}return e}(t)),\")};return robustDeterminant\",t].join(\"\"))(i,a,n,o)}var f=[function(){return[0]},function(t){return[t[0][0]]}];!function(){for(;f.length<s;)f.push(u(f.length));for(var t=[],r=[\"function robustDeterminant(m){switch(m.length){\"],n=0;n<s;++n)t.push(\"det\"+n),r.push(\"case \",n,\":return det\",n,\"(m);\");r.push(\"}var det=CACHE[m.length];if(!det)det=CACHE[m.length]=gen(m.length);return det(m);}return robustDeterminant\"),t.push(\"CACHE\",\"gen\",r.join(\"\"));var i=Function.apply(void 0,t);for(e.exports=i.apply(void 0,f.concat([f,u])),n=0;n<f.length;++n)e.exports[n]=f[n]}()},{\"robust-compress\":481,\"robust-scale\":488,\"robust-sum\":491,\"two-product\":520}],483:[function(t,e,r){\"use strict\";var n=t(\"two-product\"),i=t(\"robust-sum\");e.exports=function(t,e){for(var r=n(t[0],e[0]),a=1;a<t.length;++a)r=i(r,n(t[a],e[a]));return r}},{\"robust-sum\":491,\"two-product\":520}],484:[function(t,e,r){\"use strict\";var n=t(\"two-product\"),i=t(\"robust-sum\"),a=t(\"robust-subtract\"),o=t(\"robust-scale\"),s=6;function l(t,e){for(var r=new Array(t.length-1),n=1;n<t.length;++n)for(var i=r[n-1]=new Array(t.length-1),a=0,o=0;a<t.length;++a)a!==e&&(i[o++]=t[n][a]);return r}function c(t){if(1===t.length)return t[0];if(2===t.length)return[\"sum(\",t[0],\",\",t[1],\")\"].join(\"\");var e=t.length>>1;return[\"sum(\",c(t.slice(0,e)),\",\",c(t.slice(e)),\")\"].join(\"\")}function u(t,e){if(\"m\"===t.charAt(0)){if(\"w\"===e.charAt(0)){var r=t.split(\"[\");return[\"w\",e.substr(1),\"m\",r[0].substr(1)].join(\"\")}return[\"prod(\",t,\",\",e,\")\"].join(\"\")}return u(e,t)}function f(t){if(2===t.length)return[[\"diff(\",u(t[0][0],t[1][1]),\",\",u(t[1][0],t[0][1]),\")\"].join(\"\")];for(var e=[],r=0;r<t.length;++r)e.push([\"scale(\",c(f(l(t,r))),\",\",(n=r,!0&n?\"-\":\"\"),t[0][r],\")\"].join(\"\"));return e;var n}function h(t,e){for(var r=[],n=0;n<e-2;++n)r.push([\"prod(m\",t,\"[\",n,\"],m\",t,\"[\",n,\"])\"].join(\"\"));return c(r)}function p(t){for(var e=[],r=[],s=function(t){for(var e=new Array(t),r=0;r<t;++r){e[r]=new Array(t);for(var n=0;n<t;++n)e[r][n]=[\"m\",n,\"[\",t-r-2,\"]\"].join(\"\")}return e}(t),u=0;u<t;++u)s[0][u]=\"1\",s[t-1][u]=\"w\"+u;for(u=0;u<t;++u)0==(1&u)?e.push.apply(e,f(l(s,u))):r.push.apply(r,f(l(s,u)));var p=c(e),d=c(r),g=\"exactInSphere\"+t,v=[];for(u=0;u<t;++u)v.push(\"m\"+u);var m=[\"function \",g,\"(\",v.join(),\"){\"];for(u=0;u<t;++u){m.push(\"var w\",u,\"=\",h(u,t),\";\");for(var y=0;y<t;++y)y!==u&&m.push(\"var w\",u,\"m\",y,\"=scale(w\",u,\",m\",y,\"[0]);\")}return m.push(\"var p=\",p,\",n=\",d,\",d=diff(p,n);return d[d.length-1];}return \",g),new Function(\"sum\",\"diff\",\"prod\",\"scale\",m.join(\"\"))(i,a,n,o)}var d=[function(){return 0},function(){return 0},function(){return 0}];!function(){for(;d.length<=s;)d.push(p(d.length));for(var t=[],r=[\"slow\"],n=0;n<=s;++n)t.push(\"a\"+n),r.push(\"o\"+n);var i=[\"function testInSphere(\",t.join(),\"){switch(arguments.length){case 0:case 1:return 0;\"];for(n=2;n<=s;++n)i.push(\"case \",n,\":return o\",n,\"(\",t.slice(0,n).join(),\");\");i.push(\"}var s=new Array(arguments.length);for(var i=0;i<arguments.length;++i){s[i]=arguments[i]};return slow(s);}return testInSphere\"),r.push(i.join(\"\"));var a=Function.apply(void 0,r);for(e.exports=a.apply(void 0,[function(t){var e=d[t.length];return e||(e=d[t.length]=p(t.length)),e.apply(void 0,t)}].concat(d)),n=0;n<=s;++n)e.exports[n]=d[n]}()},{\"robust-scale\":488,\"robust-subtract\":490,\"robust-sum\":491,\"two-product\":520}],485:[function(t,e,r){\"use strict\";var n=t(\"robust-determinant\"),i=6;function a(t){for(var e=\"robustLinearSolve\"+t+\"d\",r=[\"function \",e,\"(A,b){return [\"],i=0;i<t;++i){r.push(\"det([\");for(var a=0;a<t;++a){a>0&&r.push(\",\"),r.push(\"[\");for(var o=0;o<t;++o)o>0&&r.push(\",\"),o===i?r.push(\"+b[\",a,\"]\"):r.push(\"+A[\",a,\"][\",o,\"]\");r.push(\"]\")}r.push(\"]),\")}r.push(\"det(A)]}return \",e);var s=new Function(\"det\",r.join(\"\"));return s(t<6?n[t]:n)}var o=[function(){return[0]},function(t,e){return[[e[0]],[t[0][0]]]}];!function(){for(;o.length<i;)o.push(a(o.length));for(var t=[],r=[\"function dispatchLinearSolve(A,b){switch(A.length){\"],n=0;n<i;++n)t.push(\"s\"+n),r.push(\"case \",n,\":return s\",n,\"(A,b);\");r.push(\"}var s=CACHE[A.length];if(!s)s=CACHE[A.length]=g(A.length);return s(A,b)}return dispatchLinearSolve\"),t.push(\"CACHE\",\"g\",r.join(\"\"));var s=Function.apply(void 0,t);for(e.exports=s.apply(void 0,o.concat([o,a])),n=0;n<i;++n)e.exports[n]=o[n]}()},{\"robust-determinant\":482}],486:[function(t,e,r){\"use strict\";var n=t(\"two-product\"),i=t(\"robust-sum\"),a=t(\"robust-scale\"),o=t(\"robust-subtract\"),s=5;function l(t,e){for(var r=new Array(t.length-1),n=1;n<t.length;++n)for(var i=r[n-1]=new Array(t.length-1),a=0,o=0;a<t.length;++a)a!==e&&(i[o++]=t[n][a]);return r}function c(t){if(1===t.length)return t[0];if(2===t.length)return[\"sum(\",t[0],\",\",t[1],\")\"].join(\"\");var e=t.length>>1;return[\"sum(\",c(t.slice(0,e)),\",\",c(t.slice(e)),\")\"].join(\"\")}function u(t){if(2===t.length)return[[\"sum(prod(\",t[0][0],\",\",t[1][1],\"),prod(-\",t[0][1],\",\",t[1][0],\"))\"].join(\"\")];for(var e=[],r=0;r<t.length;++r)e.push([\"scale(\",c(u(l(t,r))),\",\",(n=r,1&n?\"-\":\"\"),t[0][r],\")\"].join(\"\"));return e;var n}function f(t){for(var e=[],r=[],s=function(t){for(var e=new Array(t),r=0;r<t;++r){e[r]=new Array(t);for(var n=0;n<t;++n)e[r][n]=[\"m\",n,\"[\",t-r-1,\"]\"].join(\"\")}return e}(t),f=[],h=0;h<t;++h)0==(1&h)?e.push.apply(e,u(l(s,h))):r.push.apply(r,u(l(s,h))),f.push(\"m\"+h);var p=c(e),d=c(r),g=\"orientation\"+t+\"Exact\",v=[\"function \",g,\"(\",f.join(),\"){var p=\",p,\",n=\",d,\",d=sub(p,n);return d[d.length-1];};return \",g].join(\"\");return new Function(\"sum\",\"prod\",\"scale\",\"sub\",v)(i,n,a,o)}var h=f(3),p=f(4),d=[function(){return 0},function(){return 0},function(t,e){return e[0]-t[0]},function(t,e,r){var n,i=(t[1]-r[1])*(e[0]-r[0]),a=(t[0]-r[0])*(e[1]-r[1]),o=i-a;if(i>0){if(a<=0)return o;n=i+a}else{if(!(i<0))return o;if(a>=0)return o;n=-(i+a)}var s=3.3306690738754716e-16*n;return o>=s||o<=-s?o:h(t,e,r)},function(t,e,r,n){var i=t[0]-n[0],a=e[0]-n[0],o=r[0]-n[0],s=t[1]-n[1],l=e[1]-n[1],c=r[1]-n[1],u=t[2]-n[2],f=e[2]-n[2],h=r[2]-n[2],d=a*c,g=o*l,v=o*s,m=i*c,y=i*l,x=a*s,b=u*(d-g)+f*(v-m)+h*(y-x),_=7.771561172376103e-16*((Math.abs(d)+Math.abs(g))*Math.abs(u)+(Math.abs(v)+Math.abs(m))*Math.abs(f)+(Math.abs(y)+Math.abs(x))*Math.abs(h));return b>_||-b>_?b:p(t,e,r,n)}];!function(){for(;d.length<=s;)d.push(f(d.length));for(var t=[],r=[\"slow\"],n=0;n<=s;++n)t.push(\"a\"+n),r.push(\"o\"+n);var i=[\"function getOrientation(\",t.join(),\"){switch(arguments.length){case 0:case 1:return 0;\"];for(n=2;n<=s;++n)i.push(\"case \",n,\":return o\",n,\"(\",t.slice(0,n).join(),\");\");i.push(\"}var s=new Array(arguments.length);for(var i=0;i<arguments.length;++i){s[i]=arguments[i]};return slow(s);}return getOrientation\"),r.push(i.join(\"\"));var a=Function.apply(void 0,r);for(e.exports=a.apply(void 0,[function(t){var e=d[t.length];return e||(e=d[t.length]=f(t.length)),e.apply(void 0,t)}].concat(d)),n=0;n<=s;++n)e.exports[n]=d[n]}()},{\"robust-scale\":488,\"robust-subtract\":490,\"robust-sum\":491,\"two-product\":520}],487:[function(t,e,r){\"use strict\";var n=t(\"robust-sum\"),i=t(\"robust-scale\");e.exports=function(t,e){if(1===t.length)return i(e,t[0]);if(1===e.length)return i(t,e[0]);if(0===t.length||0===e.length)return[0];var r=[0];if(t.length<e.length)for(var a=0;a<t.length;++a)r=n(r,i(e,t[a]));else for(var a=0;a<e.length;++a)r=n(r,i(t,e[a]));return r}},{\"robust-scale\":488,\"robust-sum\":491}],488:[function(t,e,r){\"use strict\";var n=t(\"two-product\"),i=t(\"two-sum\");e.exports=function(t,e){var r=t.length;if(1===r){var a=n(t[0],e);return a[0]?a:[a[1]]}var o=new Array(2*r),s=[.1,.1],l=[.1,.1],c=0;n(t[0],e,s),s[0]&&(o[c++]=s[0]);for(var u=1;u<r;++u){n(t[u],e,l);var f=s[1];i(f,l[0],s),s[0]&&(o[c++]=s[0]);var h=l[1],p=s[1],d=h+p,g=d-h,v=p-g;s[1]=d,v&&(o[c++]=v)}s[1]&&(o[c++]=s[1]);0===c&&(o[c++]=0);return o.length=c,o}},{\"two-product\":520,\"two-sum\":521}],489:[function(t,e,r){\"use strict\";e.exports=function(t,e,r,i){var a=n(t,r,i),o=n(e,r,i);if(a>0&&o>0||a<0&&o<0)return!1;var s=n(r,t,e),l=n(i,t,e);if(s>0&&l>0||s<0&&l<0)return!1;if(0===a&&0===o&&0===s&&0===l)return function(t,e,r,n){for(var i=0;i<2;++i){var a=t[i],o=e[i],s=Math.min(a,o),l=Math.max(a,o),c=r[i],u=n[i],f=Math.min(c,u),h=Math.max(c,u);if(h<s||l<f)return!1}return!0}(t,e,r,i);return!0};var n=t(\"robust-orientation\")[3]},{\"robust-orientation\":486}],490:[function(t,e,r){\"use strict\";e.exports=function(t,e){var r=0|t.length,n=0|e.length;if(1===r&&1===n)return function(t,e){var r=t+e,n=r-t,i=t-(r-n)+(e-n);if(i)return[i,r];return[r]}(t[0],-e[0]);var i,a,o=new Array(r+n),s=0,l=0,c=0,u=Math.abs,f=t[l],h=u(f),p=-e[c],d=u(p);h<d?(a=f,(l+=1)<r&&(f=t[l],h=u(f))):(a=p,(c+=1)<n&&(p=-e[c],d=u(p)));l<r&&h<d||c>=n?(i=f,(l+=1)<r&&(f=t[l],h=u(f))):(i=p,(c+=1)<n&&(p=-e[c],d=u(p)));var g,v,m=i+a,y=m-i,x=a-y,b=x,_=m;for(;l<r&&c<n;)h<d?(i=f,(l+=1)<r&&(f=t[l],h=u(f))):(i=p,(c+=1)<n&&(p=-e[c],d=u(p))),(x=(a=b)-(y=(m=i+a)-i))&&(o[s++]=x),b=_-((g=_+m)-(v=g-_))+(m-v),_=g;for(;l<r;)(x=(a=b)-(y=(m=(i=f)+a)-i))&&(o[s++]=x),b=_-((g=_+m)-(v=g-_))+(m-v),_=g,(l+=1)<r&&(f=t[l]);for(;c<n;)(x=(a=b)-(y=(m=(i=p)+a)-i))&&(o[s++]=x),b=_-((g=_+m)-(v=g-_))+(m-v),_=g,(c+=1)<n&&(p=-e[c]);b&&(o[s++]=b);_&&(o[s++]=_);s||(o[s++]=0);return o.length=s,o}},{}],491:[function(t,e,r){\"use strict\";e.exports=function(t,e){var r=0|t.length,n=0|e.length;if(1===r&&1===n)return function(t,e){var r=t+e,n=r-t,i=t-(r-n)+(e-n);if(i)return[i,r];return[r]}(t[0],e[0]);var i,a,o=new Array(r+n),s=0,l=0,c=0,u=Math.abs,f=t[l],h=u(f),p=e[c],d=u(p);h<d?(a=f,(l+=1)<r&&(f=t[l],h=u(f))):(a=p,(c+=1)<n&&(p=e[c],d=u(p)));l<r&&h<d||c>=n?(i=f,(l+=1)<r&&(f=t[l],h=u(f))):(i=p,(c+=1)<n&&(p=e[c],d=u(p)));var g,v,m=i+a,y=m-i,x=a-y,b=x,_=m;for(;l<r&&c<n;)h<d?(i=f,(l+=1)<r&&(f=t[l],h=u(f))):(i=p,(c+=1)<n&&(p=e[c],d=u(p))),(x=(a=b)-(y=(m=i+a)-i))&&(o[s++]=x),b=_-((g=_+m)-(v=g-_))+(m-v),_=g;for(;l<r;)(x=(a=b)-(y=(m=(i=f)+a)-i))&&(o[s++]=x),b=_-((g=_+m)-(v=g-_))+(m-v),_=g,(l+=1)<r&&(f=t[l]);for(;c<n;)(x=(a=b)-(y=(m=(i=p)+a)-i))&&(o[s++]=x),b=_-((g=_+m)-(v=g-_))+(m-v),_=g,(c+=1)<n&&(p=e[c]);b&&(o[s++]=b);_&&(o[s++]=_);s||(o[s++]=0);return o.length=s,o}},{}],492:[function(t,e,r){\"use strict\";e.exports=function(t){return t<0?-1:t>0?1:0}},{}],493:[function(t,e,r){\"use strict\";e.exports=function(t){return i(n(t))};var n=t(\"boundary-cells\"),i=t(\"reduce-simplicial-complex\")},{\"boundary-cells\":83,\"reduce-simplicial-complex\":472}],494:[function(t,e,r){\"use strict\";e.exports=function(t,e,r,s){r=r||0,\"undefined\"==typeof s&&(s=function(t){for(var e=t.length,r=0,n=0;n<e;++n)r=0|Math.max(r,t[n].length);return r-1}(t));if(0===t.length||s<1)return{cells:[],vertexIds:[],vertexWeights:[]};var l=function(t,e){for(var r=t.length,n=i.mallocUint8(r),a=0;a<r;++a)n[a]=t[a]<e|0;return n}(e,+r),c=function(t,e){for(var r=t.length,o=e*(e+1)/2*r|0,s=i.mallocUint32(2*o),l=0,c=0;c<r;++c)for(var u=t[c],e=u.length,f=0;f<e;++f)for(var h=0;h<f;++h){var p=u[h],d=u[f];s[l++]=0|Math.min(p,d),s[l++]=0|Math.max(p,d)}a(n(s,[l/2|0,2]));for(var g=2,c=2;c<l;c+=2)s[c-2]===s[c]&&s[c-1]===s[c+1]||(s[g++]=s[c],s[g++]=s[c+1]);return n(s,[g/2|0,2])}(t,s),u=function(t,e,r,a){for(var o=t.data,s=t.shape[0],l=i.mallocDouble(s),c=0,u=0;u<s;++u){var f=o[2*u],h=o[2*u+1];if(r[f]!==r[h]){var p=e[f],d=e[h];o[2*c]=f,o[2*c+1]=h,l[c++]=(d-a)/(d-p)}}return t.shape[0]=c,n(l,[c])}(c,e,l,+r),f=function(t,e){var r=i.mallocInt32(2*e),n=t.shape[0],a=t.data;r[0]=0;for(var o=0,s=0;s<n;++s){var l=a[2*s];if(l!==o){for(r[2*o+1]=s;++o<l;)r[2*o]=s,r[2*o+1]=s;r[2*o]=s}}r[2*o+1]=n;for(;++o<e;)r[2*o]=r[2*o+1]=n;return r}(c,0|e.length),h=o(s)(t,c.data,f,l),p=function(t){for(var e=0|t.shape[0],r=t.data,n=new Array(e),i=0;i<e;++i)n[i]=[r[2*i],r[2*i+1]];return n}(c),d=[].slice.call(u.data,0,u.shape[0]);return i.free(l),i.free(c.data),i.free(u.data),i.free(f),{cells:h,vertexIds:p,vertexWeights:d}};var n=t(\"ndarray\"),i=t(\"typedarray-pool\"),a=t(\"ndarray-sort\"),o=t(\"./lib/codegen\")},{\"./lib/codegen\":495,ndarray:433,\"ndarray-sort\":431,\"typedarray-pool\":522}],495:[function(t,e,r){\"use strict\";e.exports=function(t){var e=a[t];e||(e=a[t]=function(t){var e=0,r=new Array(t+1);r[0]=[[]];for(var a=1;a<=t;++a)for(var o=r[a]=i(a),s=0;s<o.length;++s)e=Math.max(e,o[a].length);var l=[\"function B(C,E,i,j){\",\"var a=Math.min(i,j)|0,b=Math.max(i,j)|0,l=C[2*a],h=C[2*a+1];\",\"while(l<h){\",\"var m=(l+h)>>1,v=E[2*m+1];\",\"if(v===b){return m}\",\"if(b<v){h=m}else{l=m+1}\",\"}\",\"return l;\",\"};\",\"function getContour\",t,\"d(F,E,C,S){\",\"var n=F.length,R=[];\",\"for(var i=0;i<n;++i){var c=F[i],l=c.length;\"];function c(t){if(!(t.length<=0)){l.push(\"R.push(\");for(var e=0;e<t.length;++e){var r=t[e];e>0&&l.push(\",\"),l.push(\"[\");for(var n=0;n<r.length;++n){var i=r[n];n>0&&l.push(\",\"),l.push(\"B(C,E,c[\",i[0],\"],c[\",i[1],\"])\")}l.push(\"]\")}l.push(\");\")}}for(var a=t+1;a>1;--a){a<t+1&&l.push(\"else \"),l.push(\"if(l===\",a,\"){\");for(var u=[],s=0;s<a;++s)u.push(\"(S[c[\"+s+\"]]<<\"+s+\")\");l.push(\"var M=\",u.join(\"+\"),\";if(M===0||M===\",(1<<a)-1,\"){continue}switch(M){\");for(var o=r[a-1],s=0;s<o.length;++s)l.push(\"case \",s,\":\"),c(o[s]),l.push(\"break;\");l.push(\"}}\")}return l.push(\"}return R;};return getContour\",t,\"d\"),new Function(\"pool\",l.join(\"\"))(n)}(t));return e};var n=t(\"typedarray-pool\"),i=t(\"marching-simplex-table\"),a={}},{\"marching-simplex-table\":410,\"typedarray-pool\":522}],496:[function(t,e,r){\"use strict\";var n=t(\"bit-twiddle\"),i=t(\"union-find\");function a(t,e){var r=t.length,n=t.length-e.length,i=Math.min;if(n)return n;switch(r){case 0:return 0;case 1:return t[0]-e[0];case 2:return(s=t[0]+t[1]-e[0]-e[1])||i(t[0],t[1])-i(e[0],e[1]);case 3:var a=t[0]+t[1],o=e[0]+e[1];if(s=a+t[2]-(o+e[2]))return s;var s,l=i(t[0],t[1]),c=i(e[0],e[1]);return(s=i(l,t[2])-i(c,e[2]))||i(l+t[2],a)-i(c+e[2],o);default:var u=t.slice(0);u.sort();var f=e.slice(0);f.sort();for(var h=0;h<r;++h)if(n=u[h]-f[h])return n;return 0}}function o(t,e){return a(t[0],e[0])}function s(t,e){if(e){for(var r=t.length,n=new Array(r),i=0;i<r;++i)n[i]=[t[i],e[i]];n.sort(o);for(i=0;i<r;++i)t[i]=n[i][0],e[i]=n[i][1];return t}return t.sort(a),t}function l(t){if(0===t.length)return[];for(var e=1,r=t.length,n=1;n<r;++n){var i=t[n];if(a(i,t[n-1])){if(n===e){e++;continue}t[e++]=i}}return t.length=e,t}function c(t,e){for(var r=0,n=t.length-1,i=-1;r<=n;){var o=r+n>>1,s=a(t[o],e);s<=0?(0===s&&(i=o),r=o+1):s>0&&(n=o-1)}return i}function u(t,e){for(var r=new Array(t.length),i=0,o=r.length;i<o;++i)r[i]=[];for(var s=[],l=(i=0,e.length);i<l;++i)for(var u=e[i],f=u.length,h=1,p=1<<f;h<p;++h){s.length=n.popCount(h);for(var d=0,g=0;g<f;++g)h&1<<g&&(s[d++]=u[g]);var v=c(t,s);if(!(v<0))for(;r[v++].push(i),!(v>=t.length||0!==a(t[v],s)););}return r}function f(t,e){if(e<0)return[];for(var r=[],i=(1<<e+1)-1,a=0;a<t.length;++a)for(var o=t[a],l=i;l<1<<o.length;l=n.nextCombination(l)){for(var c=new Array(e+1),u=0,f=0;f<o.length;++f)l&1<<f&&(c[u++]=o[f]);r.push(c)}return s(r)}r.dimension=function(t){for(var e=0,r=Math.max,n=0,i=t.length;n<i;++n)e=r(e,t[n].length);return e-1},r.countVertices=function(t){for(var e=-1,r=Math.max,n=0,i=t.length;n<i;++n)for(var a=t[n],o=0,s=a.length;o<s;++o)e=r(e,a[o]);return e+1},r.cloneCells=function(t){for(var e=new Array(t.length),r=0,n=t.length;r<n;++r)e[r]=t[r].slice(0);return e},r.compareCells=a,r.normalize=s,r.unique=l,r.findCell=c,r.incidence=u,r.dual=function(t,e){if(!e)return u(l(f(t,0)),t);for(var r=new Array(e),n=0;n<e;++n)r[n]=[];n=0;for(var i=t.length;n<i;++n)for(var a=t[n],o=0,s=a.length;o<s;++o)r[a[o]].push(n);return r},r.explode=function(t){for(var e=[],r=0,n=t.length;r<n;++r)for(var i=t[r],a=0|i.length,o=1,l=1<<a;o<l;++o){for(var c=[],u=0;u<a;++u)o>>>u&1&&c.push(i[u]);e.push(c)}return s(e)},r.skeleton=f,r.boundary=function(t){for(var e=[],r=0,n=t.length;r<n;++r)for(var i=t[r],a=0,o=i.length;a<o;++a){for(var l=new Array(i.length-1),c=0,u=0;c<o;++c)c!==a&&(l[u++]=i[c]);e.push(l)}return s(e)},r.connectedComponents=function(t,e){return e?function(t,e){for(var r=new i(e),n=0;n<t.length;++n)for(var a=t[n],o=0;o<a.length;++o)for(var s=o+1;s<a.length;++s)r.link(a[o],a[s]);var l=[],c=r.ranks;for(n=0;n<c.length;++n)c[n]=-1;for(n=0;n<t.length;++n){var u=r.find(t[n][0]);c[u]<0?(c[u]=l.length,l.push([t[n].slice(0)])):l[c[u]].push(t[n].slice(0))}return l}(t,e):function(t){for(var e=l(s(f(t,0))),r=new i(e.length),n=0;n<t.length;++n)for(var a=t[n],o=0;o<a.length;++o)for(var u=c(e,[a[o]]),h=o+1;h<a.length;++h)r.link(u,c(e,[a[h]]));var p=[],d=r.ranks;for(n=0;n<d.length;++n)d[n]=-1;for(n=0;n<t.length;++n){var g=r.find(c(e,[t[n][0]]));d[g]<0?(d[g]=p.length,p.push([t[n].slice(0)])):p[d[g]].push(t[n].slice(0))}return p}(t)}},{\"bit-twiddle\":80,\"union-find\":523}],497:[function(t,e,r){arguments[4][80][0].apply(r,arguments)},{dup:80}],498:[function(t,e,r){arguments[4][496][0].apply(r,arguments)},{\"bit-twiddle\":497,dup:496,\"union-find\":499}],499:[function(t,e,r){\"use strict\";function n(t){this.roots=new Array(t),this.ranks=new Array(t);for(var e=0;e<t;++e)this.roots[e]=e,this.ranks[e]=0}e.exports=n,n.prototype.length=function(){return this.roots.length},n.prototype.makeSet=function(){var t=this.roots.length;return this.roots.push(t),this.ranks.push(0),t},n.prototype.find=function(t){for(var e=this.roots;e[t]!==t;){var r=e[t];e[t]=e[r],t=r}return t},n.prototype.link=function(t,e){var r=this.find(t),n=this.find(e);if(r!==n){var i=this.ranks,a=this.roots,o=i[r],s=i[n];o<s?a[r]=n:s<o?a[n]=r:(a[n]=r,++i[r])}}},{}],500:[function(t,e,r){\"use strict\";e.exports=function(t,e,r){for(var a=e.length,o=t.length,s=new Array(a),l=new Array(a),c=new Array(a),u=new Array(a),f=0;f<a;++f)s[f]=l[f]=-1,c[f]=1/0,u[f]=!1;for(var f=0;f<o;++f){var h=t[f];if(2!==h.length)throw new Error(\"Input must be a graph\");var p=h[1],d=h[0];-1!==l[d]?l[d]=-2:l[d]=p,-1!==s[p]?s[p]=-2:s[p]=d}function g(t){if(u[t])return 1/0;var r,i,a,o,c,f=s[t],h=l[t];return f<0||h<0?1/0:(r=e[t],i=e[f],a=e[h],o=Math.abs(n(r,i,a)),c=Math.sqrt(Math.pow(i[0]-a[0],2)+Math.pow(i[1]-a[1],2)),o/c)}function v(t,e){var r=M[t],n=M[e];M[t]=n,M[e]=r,A[r]=e,A[n]=t}function m(t){return c[M[t]]}function y(t){return 1&t?t-1>>1:(t>>1)-1}function x(t){for(var e=m(t);;){var r=e,n=2*t+1,i=2*(t+1),a=t;if(n<S){var o=m(n);o<r&&(a=n,r=o)}if(i<S){var s=m(i);s<r&&(a=i)}if(a===t)return t;v(t,a),t=a}}function b(t){for(var e=m(t);t>0;){var r=y(t);if(r>=0){var n=m(r);if(e<n){v(t,r),t=r;continue}}return t}}function _(){if(S>0){var t=M[0];return v(0,S-1),S-=1,x(0),t}return-1}function w(t,e){var r=M[t];return c[r]===e?t:(c[r]=-1/0,b(t),_(),c[r]=e,b((S+=1)-1))}function k(t){if(!u[t]){u[t]=!0;var e=s[t],r=l[t];s[r]>=0&&(s[r]=e),l[e]>=0&&(l[e]=r),A[e]>=0&&w(A[e],g(e)),A[r]>=0&&w(A[r],g(r))}}for(var M=[],A=new Array(a),f=0;f<a;++f){var T=c[f]=g(f);T<1/0?(A[f]=M.length,M.push(f)):A[f]=-1}for(var S=M.length,f=S>>1;f>=0;--f)x(f);for(;;){var E=_();if(E<0||c[E]>r)break;k(E)}for(var C=[],f=0;f<a;++f)u[f]||(A[f]=C.length,C.push(e[f].slice()));C.length;function L(t,e){if(t[e]<0)return e;var r=e,n=e;do{var i=t[n];if(!u[n]||i<0||i===n)break;if(i=t[n=i],!u[n]||i<0||i===n)break;n=i,r=t[r]}while(r!==n);for(var a=e;a!==n;a=t[a])t[a]=n;return n}var z=[];return t.forEach(function(t){var e=L(s,t[0]),r=L(l,t[1]);if(e>=0&&r>=0&&e!==r){var n=A[e],i=A[r];n!==i&&z.push([n,i])}}),i.unique(i.normalize(z)),{positions:C,edges:z}};var n=t(\"robust-orientation\"),i=t(\"simplicial-complex\")},{\"robust-orientation\":486,\"simplicial-complex\":498}],501:[function(t,e,r){\"use strict\";e.exports=function(t,e){var r,a,o,s;if(e[0][0]<e[1][0])r=e[0],a=e[1];else{if(!(e[0][0]>e[1][0]))return i(e,t);r=e[1],a=e[0]}if(t[0][0]<t[1][0])o=t[0],s=t[1];else{if(!(t[0][0]>t[1][0]))return-i(t,e);o=t[1],s=t[0]}var l=n(r,a,s),c=n(r,a,o);if(l<0){if(c<=0)return l}else if(l>0){if(c>=0)return l}else if(c)return c;if(l=n(s,o,a),c=n(s,o,r),l<0){if(c<=0)return l}else if(l>0){if(c>=0)return l}else if(c)return c;return a[0]-s[0]};var n=t(\"robust-orientation\");function i(t,e){var r,i,a,o;if(e[0][0]<e[1][0])r=e[0],i=e[1];else{if(!(e[0][0]>e[1][0])){var s=Math.min(t[0][1],t[1][1]),l=Math.max(t[0][1],t[1][1]),c=Math.min(e[0][1],e[1][1]),u=Math.max(e[0][1],e[1][1]);return l<c?l-c:s>u?s-u:l-u}r=e[1],i=e[0]}t[0][1]<t[1][1]?(a=t[0],o=t[1]):(a=t[1],o=t[0]);var f=n(i,r,a);return f||((f=n(i,r,o))||o-i)}},{\"robust-orientation\":486}],502:[function(t,e,r){\"use strict\";e.exports=function(t){for(var e=t.length,r=2*e,n=new Array(r),a=0;a<e;++a){var l=t[a],c=l[0][0]<l[1][0];n[2*a]=new f(l[0][0],l,c,a),n[2*a+1]=new f(l[1][0],l,!c,a)}n.sort(function(t,e){var r=t.x-e.x;return r||((r=t.create-e.create)||Math.min(t.segment[0][1],t.segment[1][1])-Math.min(e.segment[0][1],e.segment[1][1]))});for(var h=i(o),p=[],d=[],g=[],a=0;a<r;){for(var v=n[a].x,m=[];a<r;){var y=n[a];if(y.x!==v)break;a+=1,y.segment[0][0]===y.x&&y.segment[1][0]===y.x?y.create&&(y.segment[0][1]<y.segment[1][1]?(m.push(new u(y.segment[0][1],y.index,!0,!0)),m.push(new u(y.segment[1][1],y.index,!1,!1))):(m.push(new u(y.segment[1][1],y.index,!0,!1)),m.push(new u(y.segment[0][1],y.index,!1,!0)))):h=y.create?h.insert(y.segment,y.index):h.remove(y.segment)}p.push(h.root),d.push(v),g.push(m)}return new s(p,d,g)};var n=t(\"binary-search-bounds\"),i=t(\"functional-red-black-tree\"),a=t(\"robust-orientation\"),o=t(\"./lib/order-segments\");function s(t,e,r){this.slabs=t,this.coordinates=e,this.horizontal=r}function l(t,e){return t.y-e}function c(t,e){for(var r=null;t;){var n,i,o=t.key;o[0][0]<o[1][0]?(n=o[0],i=o[1]):(n=o[1],i=o[0]);var s=a(n,i,e);if(s<0)t=t.left;else if(s>0)if(e[0]!==o[1][0])r=t,t=t.right;else{if(l=c(t.right,e))return l;t=t.left}else{if(e[0]!==o[1][0])return t;var l;if(l=c(t.right,e))return l;t=t.left}}return r}function u(t,e,r,n){this.y=t,this.index=e,this.start=r,this.closed=n}function f(t,e,r,n){this.x=t,this.segment=e,this.create=r,this.index=n}s.prototype.castUp=function(t){var e=n.le(this.coordinates,t[0]);if(e<0)return-1;this.slabs[e];var r=c(this.slabs[e],t),i=-1;if(r&&(i=r.value),this.coordinates[e]===t[0]){var s=null;if(r&&(s=r.key),e>0){var u=c(this.slabs[e-1],t);u&&(s?o(u.key,s)>0&&(s=u.key,i=u.value):(i=u.value,s=u.key))}var f=this.horizontal[e];if(f.length>0){var h=n.ge(f,t[1],l);if(h<f.length){var p=f[h];if(t[1]===p.y){if(p.closed)return p.index;for(;h<f.length-1&&f[h+1].y===t[1];)if((p=f[h+=1]).closed)return p.index;if(p.y===t[1]&&!p.start){if((h+=1)>=f.length)return i;p=f[h]}}if(p.start)if(s){var d=a(s[0],s[1],[t[0],p.y]);s[0][0]>s[1][0]&&(d=-d),d>0&&(i=p.index)}else i=p.index;else p.y!==t[1]&&(i=p.index)}}}return i}},{\"./lib/order-segments\":501,\"binary-search-bounds\":79,\"functional-red-black-tree\":219,\"robust-orientation\":486}],503:[function(t,e,r){\"use strict\";var n=t(\"robust-dot-product\"),i=t(\"robust-sum\");function a(t,e){var r=i(n(t,e),[e[e.length-1]]);return r[r.length-1]}function o(t,e,r,n){var i=-e/(n-e);i<0?i=0:i>1&&(i=1);for(var a=1-i,o=t.length,s=new Array(o),l=0;l<o;++l)s[l]=i*t[l]+a*r[l];return s}e.exports=function(t,e){for(var r=[],n=[],i=a(t[t.length-1],e),s=t[t.length-1],l=t[0],c=0;c<t.length;++c,s=l){var u=a(l=t[c],e);if(i<0&&u>0||i>0&&u<0){var f=o(s,u,l,i);r.push(f),n.push(f.slice())}u<0?n.push(l.slice()):u>0?r.push(l.slice()):(r.push(l.slice()),n.push(l.slice())),i=u}return{positive:r,negative:n}},e.exports.positive=function(t,e){for(var r=[],n=a(t[t.length-1],e),i=t[t.length-1],s=t[0],l=0;l<t.length;++l,i=s){var c=a(s=t[l],e);(n<0&&c>0||n>0&&c<0)&&r.push(o(i,c,s,n)),c>=0&&r.push(s.slice()),n=c}return r},e.exports.negative=function(t,e){for(var r=[],n=a(t[t.length-1],e),i=t[t.length-1],s=t[0],l=0;l<t.length;++l,i=s){var c=a(s=t[l],e);(n<0&&c>0||n>0&&c<0)&&r.push(o(i,c,s,n)),c<=0&&r.push(s.slice()),n=c}return r}},{\"robust-dot-product\":483,\"robust-sum\":491}],504:[function(t,e,r){!function(){\"use strict\";var t={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\\x25]+/,modulo:/^\\x25{2}/,placeholder:/^\\x25(?:([1-9]\\d*)\\$|\\(([^\\)]+)\\))?(\\+)?(0|'[^$])?(-)?(\\d+)?(?:\\.(\\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\\d]*)/i,key_access:/^\\.([a-z_][a-z_\\d]*)/i,index_access:/^\\[(\\d+)\\]/,sign:/^[\\+\\-]/};function e(r){return function(r,n){var i,a,o,s,l,c,u,f,h,p=1,d=r.length,g=\"\";for(a=0;a<d;a++)if(\"string\"==typeof r[a])g+=r[a];else if(Array.isArray(r[a])){if((s=r[a])[2])for(i=n[p],o=0;o<s[2].length;o++){if(!i.hasOwnProperty(s[2][o]))throw new Error(e('[sprintf] property \"%s\" does not exist',s[2][o]));i=i[s[2][o]]}else i=s[1]?n[s[1]]:n[p++];if(t.not_type.test(s[8])&&t.not_primitive.test(s[8])&&i instanceof Function&&(i=i()),t.numeric_arg.test(s[8])&&\"number\"!=typeof i&&isNaN(i))throw new TypeError(e(\"[sprintf] expecting number but found %T\",i));switch(t.number.test(s[8])&&(f=i>=0),s[8]){case\"b\":i=parseInt(i,10).toString(2);break;case\"c\":i=String.fromCharCode(parseInt(i,10));break;case\"d\":case\"i\":i=parseInt(i,10);break;case\"j\":i=JSON.stringify(i,null,s[6]?parseInt(s[6]):0);break;case\"e\":i=s[7]?parseFloat(i).toExponential(s[7]):parseFloat(i).toExponential();break;case\"f\":i=s[7]?parseFloat(i).toFixed(s[7]):parseFloat(i);break;case\"g\":i=s[7]?String(Number(i.toPrecision(s[7]))):parseFloat(i);break;case\"o\":i=(parseInt(i,10)>>>0).toString(8);break;case\"s\":i=String(i),i=s[7]?i.substring(0,s[7]):i;break;case\"t\":i=String(!!i),i=s[7]?i.substring(0,s[7]):i;break;case\"T\":i=Object.prototype.toString.call(i).slice(8,-1).toLowerCase(),i=s[7]?i.substring(0,s[7]):i;break;case\"u\":i=parseInt(i,10)>>>0;break;case\"v\":i=i.valueOf(),i=s[7]?i.substring(0,s[7]):i;break;case\"x\":i=(parseInt(i,10)>>>0).toString(16);break;case\"X\":i=(parseInt(i,10)>>>0).toString(16).toUpperCase()}t.json.test(s[8])?g+=i:(!t.number.test(s[8])||f&&!s[3]?h=\"\":(h=f?\"+\":\"-\",i=i.toString().replace(t.sign,\"\")),c=s[4]?\"0\"===s[4]?\"0\":s[4].charAt(1):\" \",u=s[6]-(h+i).length,l=s[6]&&u>0?c.repeat(u):\"\",g+=s[5]?h+i+l:\"0\"===c?h+l+i:l+h+i)}return g}(function(e){if(i[e])return i[e];var r,n=e,a=[],o=0;for(;n;){if(null!==(r=t.text.exec(n)))a.push(r[0]);else if(null!==(r=t.modulo.exec(n)))a.push(\"%\");else{if(null===(r=t.placeholder.exec(n)))throw new SyntaxError(\"[sprintf] unexpected placeholder\");if(r[2]){o|=1;var s=[],l=r[2],c=[];if(null===(c=t.key.exec(l)))throw new SyntaxError(\"[sprintf] failed to parse named argument key\");for(s.push(c[1]);\"\"!==(l=l.substring(c[0].length));)if(null!==(c=t.key_access.exec(l)))s.push(c[1]);else{if(null===(c=t.index_access.exec(l)))throw new SyntaxError(\"[sprintf] failed to parse named argument key\");s.push(c[1])}r[2]=s}else o|=2;if(3===o)throw new Error(\"[sprintf] mixing positional and named placeholders is not (yet) supported\");a.push(r)}n=n.substring(r[0].length)}return i[e]=a}(r),arguments)}function n(t,r){return e.apply(null,[t].concat(r||[]))}var i=Object.create(null);\"undefined\"!=typeof r&&(r.sprintf=e,r.vsprintf=n),\"undefined\"!=typeof window&&(window.sprintf=e,window.vsprintf=n)}()},{}],505:[function(t,e,r){\"use strict\";var n=t(\"parenthesis\");e.exports=function(t,e,r){if(null==t)throw Error(\"First argument should be a string\");if(null==e)throw Error(\"Separator should be a string or a RegExp\");r?(\"string\"==typeof r||Array.isArray(r))&&(r={ignore:r}):r={},null==r.escape&&(r.escape=!0),null==r.ignore?r.ignore=[\"[]\",\"()\",\"{}\",\"<>\",'\"\"',\"''\",\"``\",\"\\u201c\\u201d\",\"\\xab\\xbb\"]:(\"string\"==typeof r.ignore&&(r.ignore=[r.ignore]),r.ignore=r.ignore.map(function(t){return 1===t.length&&(t+=t),t}));var i=n.parse(t,{flat:!0,brackets:r.ignore}),a=i[0].split(e);if(r.escape){for(var o=[],s=0;s<a.length;s++){var l=a[s],c=a[s+1];\"\\\\\"===l[l.length-1]&&\"\\\\\"!==l[l.length-2]?(o.push(l+e+c),s++):o.push(l)}a=o}for(s=0;s<a.length;s++)i[0]=a[s],a[s]=n.stringify(i,{flat:!0});return a}},{parenthesis:441}],506:[function(t,e,r){\"use strict\";e.exports=function(t){for(var e=t.length,r=new Array(e),n=new Array(e),i=new Array(e),a=new Array(e),o=new Array(e),s=new Array(e),l=0;l<e;++l)r[l]=-1,n[l]=0,i[l]=!1,a[l]=0,o[l]=-1,s[l]=[];var c,u=0,f=[],h=[];function p(e){var l=[e],c=[e];for(r[e]=n[e]=u,i[e]=!0,u+=1;c.length>0;){e=c[c.length-1];var p=t[e];if(a[e]<p.length){for(var d=a[e];d<p.length;++d){var g=p[d];if(r[g]<0){r[g]=n[g]=u,i[g]=!0,u+=1,l.push(g),c.push(g);break}i[g]&&(n[e]=0|Math.min(n[e],n[g])),o[g]>=0&&s[e].push(o[g])}a[e]=d}else{if(n[e]===r[e]){for(var v=[],m=[],y=0,d=l.length-1;d>=0;--d){var x=l[d];if(i[x]=!1,v.push(x),m.push(s[x]),y+=s[x].length,o[x]=f.length,x===e){l.length=d;break}}f.push(v);for(var b=new Array(y),d=0;d<m.length;d++)for(var _=0;_<m[d].length;_++)b[--y]=m[d][_];h.push(b)}c.pop()}}}for(var l=0;l<e;++l)r[l]<0&&p(l);for(var l=0;l<h.length;l++){var d=h[l];if(0!==d.length){d.sort(function(t,e){return t-e}),c=[d[0]];for(var g=1;g<d.length;g++)d[g]!==d[g-1]&&c.push(d[g]);h[l]=c}}return{components:f,adjacencyList:h}}},{}],507:[function(t,e,r){\"use strict\";e.exports=function(t){return t.split(\"\").map(function(t){return t in n?n[t]:\"\"}).join(\"\")};var n={\" \":\" \",0:\"\\u2070\",1:\"\\xb9\",2:\"\\xb2\",3:\"\\xb3\",4:\"\\u2074\",5:\"\\u2075\",6:\"\\u2076\",7:\"\\u2077\",8:\"\\u2078\",9:\"\\u2079\",\"+\":\"\\u207a\",\"-\":\"\\u207b\",a:\"\\u1d43\",b:\"\\u1d47\",c:\"\\u1d9c\",d:\"\\u1d48\",e:\"\\u1d49\",f:\"\\u1da0\",g:\"\\u1d4d\",h:\"\\u02b0\",i:\"\\u2071\",j:\"\\u02b2\",k:\"\\u1d4f\",l:\"\\u02e1\",m:\"\\u1d50\",n:\"\\u207f\",o:\"\\u1d52\",p:\"\\u1d56\",r:\"\\u02b3\",s:\"\\u02e2\",t:\"\\u1d57\",u:\"\\u1d58\",v:\"\\u1d5b\",w:\"\\u02b7\",x:\"\\u02e3\",y:\"\\u02b8\",z:\"\\u1dbb\"}},{}],508:[function(t,e,r){\"use strict\";e.exports=function(t,e){if(t.dimension<=0)return{positions:[],cells:[]};if(1===t.dimension)return function(t,e){for(var r=a(t,e),n=r.length,i=new Array(n),o=new Array(n),s=0;s<n;++s)i[s]=[r[s]],o[s]=[s];return{positions:i,cells:o}}(t,e);var r=t.order.join()+\"-\"+t.dtype,s=o[r],e=+e||0;s||(s=o[r]=function(t,e){var r=t.length,a=[\"'use strict';\"],o=\"surfaceNets\"+t.join(\"_\")+\"d\"+e;a.push(\"var contour=genContour({\",\"order:[\",t.join(),\"],\",\"scalarArguments: 3,\",\"phase:function phaseFunc(p,a,b,c) { return (p > c)|0 },\"),\"generic\"===e&&a.push(\"getters:[0],\");for(var s=[],l=[],c=0;c<r;++c)s.push(\"d\"+c),l.push(\"d\"+c);for(var c=0;c<1<<r;++c)s.push(\"v\"+c),l.push(\"v\"+c);for(var c=0;c<1<<r;++c)s.push(\"p\"+c),l.push(\"p\"+c);s.push(\"a\",\"b\",\"c\"),l.push(\"a\",\"c\"),a.push(\"vertex:function vertexFunc(\",s.join(),\"){\");for(var u=[],c=0;c<1<<r;++c)u.push(\"(p\"+c+\"<<\"+c+\")\");a.push(\"var m=(\",u.join(\"+\"),\")|0;if(m===0||m===\",(1<<(1<<r))-1,\"){return}\");var f=[],h=[];1<<(1<<r)<=128?(a.push(\"switch(m){\"),h=a):a.push(\"switch(m>>>7){\");for(var c=0;c<1<<(1<<r);++c){if(1<<(1<<r)>128&&c%128==0){f.length>0&&h.push(\"}}\");var p=\"vExtra\"+f.length;a.push(\"case \",c>>>7,\":\",p,\"(m&0x7f,\",l.join(),\");break;\"),h=[\"function \",p,\"(m,\",l.join(),\"){switch(m){\"],f.push(h)}h.push(\"case \",127&c,\":\");for(var d=new Array(r),g=new Array(r),v=new Array(r),m=new Array(r),y=0,x=0;x<r;++x)d[x]=[],g[x]=[],v[x]=0,m[x]=0;for(var x=0;x<1<<r;++x)for(var b=0;b<r;++b){var _=x^1<<b;if(!(_>x)&&!(c&1<<_)!=!(c&1<<x)){var w=1;c&1<<_?g[b].push(\"v\"+_+\"-v\"+x):(g[b].push(\"v\"+x+\"-v\"+_),w=-w),w<0?(d[b].push(\"-v\"+x+\"-v\"+_),v[b]+=2):(d[b].push(\"v\"+x+\"+v\"+_),v[b]-=2),y+=1;for(var k=0;k<r;++k)k!==b&&(_&1<<k?m[k]+=1:m[k]-=1)}}for(var M=[],b=0;b<r;++b)if(0===d[b].length)M.push(\"d\"+b+\"-0.5\");else{var A=\"\";v[b]<0?A=v[b]+\"*c\":v[b]>0&&(A=\"+\"+v[b]+\"*c\");var T=d[b].length/y*.5,S=.5+m[b]/y*.5;M.push(\"d\"+b+\"-\"+S+\"-\"+T+\"*(\"+d[b].join(\"+\")+A+\")/(\"+g[b].join(\"+\")+\")\")}h.push(\"a.push([\",M.join(),\"]);\",\"break;\")}a.push(\"}},\"),f.length>0&&h.push(\"}}\");for(var E=[],c=0;c<1<<r-1;++c)E.push(\"v\"+c);E.push(\"c0\",\"c1\",\"p0\",\"p1\",\"a\",\"b\",\"c\"),a.push(\"cell:function cellFunc(\",E.join(),\"){\");var C=i(r-1);a.push(\"if(p0){b.push(\",C.map(function(t){return\"[\"+t.map(function(t){return\"v\"+t})+\"]\"}).join(),\")}else{b.push(\",C.map(function(t){var e=t.slice();return e.reverse(),\"[\"+e.map(function(t){return\"v\"+t})+\"]\"}).join(),\")}}});function \",o,\"(array,level){var verts=[],cells=[];contour(array,verts,cells,level);return {positions:verts,cells:cells};} return \",o,\";\");for(var c=0;c<f.length;++c)a.push(f[c].join(\"\"));return new Function(\"genContour\",a.join(\"\"))(n)}(t.order,t.dtype));return s(t,e)};var n=t(\"ndarray-extract-contour\"),i=t(\"triangulate-hypercube\"),a=t(\"zero-crossings\");var o={}},{\"ndarray-extract-contour\":422,\"triangulate-hypercube\":518,\"zero-crossings\":551}],509:[function(t,e,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0});var n=function(){return function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var r=[],n=!0,i=!1,a=void 0;try{for(var o,s=t[Symbol.iterator]();!(n=(o=s.next()).done)&&(r.push(o.value),!e||r.length!==e);n=!0);}catch(t){i=!0,a=t}finally{try{!n&&s.return&&s.return()}finally{if(i)throw a}}return r}(t,e);throw new TypeError(\"Invalid attempt to destructure non-iterable instance\")}}(),i=2*Math.PI,a=function(t,e,r,n,i,a,o){var s=t.x,l=t.y;return{x:n*(s*=e)-i*(l*=r)+a,y:i*s+n*l+o}},o=function(t,e){var r=.551915024494,n=Math.cos(t),i=Math.sin(t),a=Math.cos(t+e),o=Math.sin(t+e);return[{x:n-i*r,y:i+n*r},{x:a+o*r,y:o-a*r},{x:a,y:o}]},s=function(t,e,r,n){var i=t*n-e*r<0?-1:1,a=(t*r+e*n)/(Math.sqrt(t*t+e*e)*Math.sqrt(t*t+e*e));return a>1&&(a=1),a<-1&&(a=-1),i*Math.acos(a)};r.default=function(t){var e=t.px,r=t.py,l=t.cx,c=t.cy,u=t.rx,f=t.ry,h=t.xAxisRotation,p=void 0===h?0:h,d=t.largeArcFlag,g=void 0===d?0:d,v=t.sweepFlag,m=void 0===v?0:v,y=[];if(0===u||0===f)return[];var x=Math.sin(p*i/360),b=Math.cos(p*i/360),_=b*(e-l)/2+x*(r-c)/2,w=-x*(e-l)/2+b*(r-c)/2;if(0===_&&0===w)return[];u=Math.abs(u),f=Math.abs(f);var k=Math.pow(_,2)/Math.pow(u,2)+Math.pow(w,2)/Math.pow(f,2);k>1&&(u*=Math.sqrt(k),f*=Math.sqrt(k));var M=function(t,e,r,n,a,o,l,c,u,f,h,p){var d=Math.pow(a,2),g=Math.pow(o,2),v=Math.pow(h,2),m=Math.pow(p,2),y=d*g-d*m-g*v;y<0&&(y=0),y/=d*m+g*v;var x=(y=Math.sqrt(y)*(l===c?-1:1))*a/o*p,b=y*-o/a*h,_=f*x-u*b+(t+r)/2,w=u*x+f*b+(e+n)/2,k=(h-x)/a,M=(p-b)/o,A=(-h-x)/a,T=(-p-b)/o,S=s(1,0,k,M),E=s(k,M,A,T);return 0===c&&E>0&&(E-=i),1===c&&E<0&&(E+=i),[_,w,S,E]}(e,r,l,c,u,f,g,m,x,b,_,w),A=n(M,4),T=A[0],S=A[1],E=A[2],C=A[3],L=Math.abs(C)/(i/4);Math.abs(1-L)<1e-7&&(L=1);var z=Math.max(Math.ceil(L),1);C/=z;for(var O=0;O<z;O++)y.push(o(E,C)),E+=C;return y.map(function(t){var e=a(t[0],u,f,b,x,T,S),r=e.x,n=e.y,i=a(t[1],u,f,b,x,T,S),o=i.x,s=i.y,l=a(t[2],u,f,b,x,T,S);return{x1:r,y1:n,x2:o,y2:s,x:l.x,y:l.y}})},e.exports=r.default},{}],510:[function(t,e,r){\"use strict\";var n=t(\"parse-svg-path\"),i=t(\"abs-svg-path\"),a=t(\"normalize-svg-path\"),o=t(\"is-svg-path\"),s=t(\"assert\");e.exports=function(t){Array.isArray(t)&&1===t.length&&\"string\"==typeof t[0]&&(t=t[0]);\"string\"==typeof t&&(s(o(t),\"String is not an SVG path.\"),t=n(t));if(s(Array.isArray(t),\"Argument should be a string or an array of path segments.\"),t=i(t),!(t=a(t)).length)return[0,0,0,0];for(var e=[1/0,1/0,-1/0,-1/0],r=0,l=t.length;r<l;r++)for(var c=t[r].slice(1),u=0;u<c.length;u+=2)c[u+0]<e[0]&&(e[0]=c[u+0]),c[u+1]<e[1]&&(e[1]=c[u+1]),c[u+0]>e[2]&&(e[2]=c[u+0]),c[u+1]>e[3]&&(e[3]=c[u+1]);return e}},{\"abs-svg-path\":48,assert:56,\"is-svg-path\":407,\"normalize-svg-path\":511,\"parse-svg-path\":443}],511:[function(t,e,r){\"use strict\";e.exports=function(t){for(var e,r=[],o=0,s=0,l=0,c=0,u=null,f=null,h=0,p=0,d=0,g=t.length;d<g;d++){var v=t[d],m=v[0];switch(m){case\"M\":l=v[1],c=v[2];break;case\"A\":var y=n({px:h,py:p,cx:v[6],cy:v[7],rx:v[1],ry:v[2],xAxisRotation:v[3],largeArcFlag:v[4],sweepFlag:v[5]});if(!y.length)continue;for(var x,b=0;b<y.length;b++)x=y[b],v=[\"C\",x.x1,x.y1,x.x2,x.y2,x.x,x.y],b<y.length-1&&r.push(v);break;case\"S\":var _=h,w=p;\"C\"!=e&&\"S\"!=e||(_+=_-o,w+=w-s),v=[\"C\",_,w,v[1],v[2],v[3],v[4]];break;case\"T\":\"Q\"==e||\"T\"==e?(u=2*h-u,f=2*p-f):(u=h,f=p),v=a(h,p,u,f,v[1],v[2]);break;case\"Q\":u=v[1],f=v[2],v=a(h,p,v[1],v[2],v[3],v[4]);break;case\"L\":v=i(h,p,v[1],v[2]);break;case\"H\":v=i(h,p,v[1],p);break;case\"V\":v=i(h,p,h,v[1]);break;case\"Z\":v=i(h,p,l,c)}e=m,h=v[v.length-2],p=v[v.length-1],v.length>4?(o=v[v.length-4],s=v[v.length-3]):(o=h,s=p),r.push(v)}return r};var n=t(\"svg-arc-to-cubic-bezier\");function i(t,e,r,n){return[\"C\",t,e,r,n,r,n]}function a(t,e,r,n,i,a){return[\"C\",t/3+2/3*r,e/3+2/3*n,i/3+2/3*r,a/3+2/3*n,i,a]}},{\"svg-arc-to-cubic-bezier\":509}],512:[function(t,e,r){\"use strict\";var n=t(\"svg-path-bounds\"),i=t(\"parse-svg-path\"),a=t(\"draw-svg-path\"),o=t(\"is-svg-path\"),s=t(\"bitmap-sdf\"),l=document.createElement(\"canvas\"),c=l.getContext(\"2d\");e.exports=function(t,e){if(!o(t))throw Error(\"Argument should be valid svg path string\");e||(e={});var r,u;e.shape?(r=e.shape[0],u=e.shape[1]):(r=l.width=e.w||e.width||200,u=l.height=e.h||e.height||200);var f=Math.min(r,u),h=e.stroke||0,p=e.viewbox||e.viewBox||n(t),d=[r/(p[2]-p[0]),u/(p[3]-p[1])],g=Math.min(d[0]||0,d[1]||0)/2;c.fillStyle=\"black\",c.fillRect(0,0,r,u),c.fillStyle=\"white\",h&&(\"number\"!=typeof h&&(h=1),c.strokeStyle=h>0?\"white\":\"black\",c.lineWidth=Math.abs(h));if(c.translate(.5*r,.5*u),c.scale(g,g),function(){var t=document.createElement(\"canvas\").getContext(\"2d\");t.canvas.width=t.canvas.height=1;var e=new Path2D(\"M0,0h1v1h-1v-1Z\");t.fillStyle=\"black\",t.fill(e);var r=t.getImageData(0,0,1,1);return r&&r.data&&255===r.data[3]}()){var v=new Path2D(t);c.fill(v),h&&c.stroke(v)}else{var m=i(t);a(c,m),c.fill(),h&&c.stroke()}return c.setTransform(1,0,0,1,0,0),s(c,{cutoff:null!=e.cutoff?e.cutoff:.5,radius:null!=e.radius?e.radius:.5*f})}},{\"bitmap-sdf\":81,\"draw-svg-path\":153,\"is-svg-path\":407,\"parse-svg-path\":443,\"svg-path-bounds\":510}],513:[function(t,e,r){(function(r){\"use strict\";e.exports=function t(e,r,i){var i=i||{};var o=a[e];o||(o=a[e]={\" \":{data:new Float32Array(0),shape:.2}});var s=o[r];if(!s)if(r.length<=1||!/\\d/.test(r))s=o[r]=function(t){for(var e=t.cells,r=t.positions,n=new Float32Array(6*e.length),i=0,a=0,o=0;o<e.length;++o)for(var s=e[o],l=0;l<3;++l){var c=r[s[l]];n[i++]=c[0],n[i++]=c[1]+1.4,a=Math.max(c[0],a)}return{data:n,shape:a}}(n(r,{triangles:!0,font:e,textAlign:i.textAlign||\"left\",textBaseline:\"alphabetic\"}));else{for(var l=r.split(/(\\d|\\s)/),c=new Array(l.length),u=0,f=0,h=0;h<l.length;++h)c[h]=t(e,l[h]),u+=c[h].data.length,f+=c[h].shape,h>0&&(f+=.02);for(var p=new Float32Array(u),d=0,g=-.5*f,h=0;h<c.length;++h){for(var v=c[h].data,m=0;m<v.length;m+=2)p[d++]=v[m]+g,p[d++]=v[m+1];g+=c[h].shape+.02}s=o[r]={data:p,shape:f}}return s};var n=t(\"vectorize-text\"),i=window||r.global||{},a=i.__TEXT_CACHE||{};i.__TEXT_CACHE={}}).call(this,t(\"_process\"))},{_process:465,\"vectorize-text\":527}],514:[function(t,e,r){!function(t){var r=/^\\s+/,n=/\\s+$/,i=0,a=t.round,o=t.min,s=t.max,l=t.random;function c(e,l){if(l=l||{},(e=e||\"\")instanceof c)return e;if(!(this instanceof c))return new c(e,l);var u=function(e){var i={r:0,g:0,b:0},a=1,l=null,c=null,u=null,f=!1,h=!1;\"string\"==typeof e&&(e=function(t){t=t.replace(r,\"\").replace(n,\"\").toLowerCase();var e,i=!1;if(S[t])t=S[t],i=!0;else if(\"transparent\"==t)return{r:0,g:0,b:0,a:0,format:\"name\"};if(e=j.rgb.exec(t))return{r:e[1],g:e[2],b:e[3]};if(e=j.rgba.exec(t))return{r:e[1],g:e[2],b:e[3],a:e[4]};if(e=j.hsl.exec(t))return{h:e[1],s:e[2],l:e[3]};if(e=j.hsla.exec(t))return{h:e[1],s:e[2],l:e[3],a:e[4]};if(e=j.hsv.exec(t))return{h:e[1],s:e[2],v:e[3]};if(e=j.hsva.exec(t))return{h:e[1],s:e[2],v:e[3],a:e[4]};if(e=j.hex8.exec(t))return{r:O(e[1]),g:O(e[2]),b:O(e[3]),a:R(e[4]),format:i?\"name\":\"hex8\"};if(e=j.hex6.exec(t))return{r:O(e[1]),g:O(e[2]),b:O(e[3]),format:i?\"name\":\"hex\"};if(e=j.hex4.exec(t))return{r:O(e[1]+\"\"+e[1]),g:O(e[2]+\"\"+e[2]),b:O(e[3]+\"\"+e[3]),a:R(e[4]+\"\"+e[4]),format:i?\"name\":\"hex8\"};if(e=j.hex3.exec(t))return{r:O(e[1]+\"\"+e[1]),g:O(e[2]+\"\"+e[2]),b:O(e[3]+\"\"+e[3]),format:i?\"name\":\"hex\"};return!1}(e));\"object\"==typeof e&&(V(e.r)&&V(e.g)&&V(e.b)?(p=e.r,d=e.g,g=e.b,i={r:255*L(p,255),g:255*L(d,255),b:255*L(g,255)},f=!0,h=\"%\"===String(e.r).substr(-1)?\"prgb\":\"rgb\"):V(e.h)&&V(e.s)&&V(e.v)?(l=P(e.s),c=P(e.v),i=function(e,r,n){e=6*L(e,360),r=L(r,100),n=L(n,100);var i=t.floor(e),a=e-i,o=n*(1-r),s=n*(1-a*r),l=n*(1-(1-a)*r),c=i%6;return{r:255*[n,s,o,o,l,n][c],g:255*[l,n,n,s,o,o][c],b:255*[o,o,l,n,n,s][c]}}(e.h,l,c),f=!0,h=\"hsv\"):V(e.h)&&V(e.s)&&V(e.l)&&(l=P(e.s),u=P(e.l),i=function(t,e,r){var n,i,a;function o(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+6*(e-t)*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}if(t=L(t,360),e=L(e,100),r=L(r,100),0===e)n=i=a=r;else{var s=r<.5?r*(1+e):r+e-r*e,l=2*r-s;n=o(l,s,t+1/3),i=o(l,s,t),a=o(l,s,t-1/3)}return{r:255*n,g:255*i,b:255*a}}(e.h,l,u),f=!0,h=\"hsl\"),e.hasOwnProperty(\"a\")&&(a=e.a));var p,d,g;return a=C(a),{ok:f,format:e.format||h,r:o(255,s(i.r,0)),g:o(255,s(i.g,0)),b:o(255,s(i.b,0)),a:a}}(e);this._originalInput=e,this._r=u.r,this._g=u.g,this._b=u.b,this._a=u.a,this._roundA=a(100*this._a)/100,this._format=l.format||u.format,this._gradientType=l.gradientType,this._r<1&&(this._r=a(this._r)),this._g<1&&(this._g=a(this._g)),this._b<1&&(this._b=a(this._b)),this._ok=u.ok,this._tc_id=i++}function u(t,e,r){t=L(t,255),e=L(e,255),r=L(r,255);var n,i,a=s(t,e,r),l=o(t,e,r),c=(a+l)/2;if(a==l)n=i=0;else{var u=a-l;switch(i=c>.5?u/(2-a-l):u/(a+l),a){case t:n=(e-r)/u+(e<r?6:0);break;case e:n=(r-t)/u+2;break;case r:n=(t-e)/u+4}n/=6}return{h:n,s:i,l:c}}function f(t,e,r){t=L(t,255),e=L(e,255),r=L(r,255);var n,i,a=s(t,e,r),l=o(t,e,r),c=a,u=a-l;if(i=0===a?0:u/a,a==l)n=0;else{switch(a){case t:n=(e-r)/u+(e<r?6:0);break;case e:n=(r-t)/u+2;break;case r:n=(t-e)/u+4}n/=6}return{h:n,s:i,v:c}}function h(t,e,r,n){var i=[I(a(t).toString(16)),I(a(e).toString(16)),I(a(r).toString(16))];return n&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join(\"\")}function p(t,e,r,n){return[I(D(n)),I(a(t).toString(16)),I(a(e).toString(16)),I(a(r).toString(16))].join(\"\")}function d(t,e){e=0===e?0:e||10;var r=c(t).toHsl();return r.s-=e/100,r.s=z(r.s),c(r)}function g(t,e){e=0===e?0:e||10;var r=c(t).toHsl();return r.s+=e/100,r.s=z(r.s),c(r)}function v(t){return c(t).desaturate(100)}function m(t,e){e=0===e?0:e||10;var r=c(t).toHsl();return r.l+=e/100,r.l=z(r.l),c(r)}function y(t,e){e=0===e?0:e||10;var r=c(t).toRgb();return r.r=s(0,o(255,r.r-a(-e/100*255))),r.g=s(0,o(255,r.g-a(-e/100*255))),r.b=s(0,o(255,r.b-a(-e/100*255))),c(r)}function x(t,e){e=0===e?0:e||10;var r=c(t).toHsl();return r.l-=e/100,r.l=z(r.l),c(r)}function b(t,e){var r=c(t).toHsl(),n=(r.h+e)%360;return r.h=n<0?360+n:n,c(r)}function _(t){var e=c(t).toHsl();return e.h=(e.h+180)%360,c(e)}function w(t){var e=c(t).toHsl(),r=e.h;return[c(t),c({h:(r+120)%360,s:e.s,l:e.l}),c({h:(r+240)%360,s:e.s,l:e.l})]}function k(t){var e=c(t).toHsl(),r=e.h;return[c(t),c({h:(r+90)%360,s:e.s,l:e.l}),c({h:(r+180)%360,s:e.s,l:e.l}),c({h:(r+270)%360,s:e.s,l:e.l})]}function M(t){var e=c(t).toHsl(),r=e.h;return[c(t),c({h:(r+72)%360,s:e.s,l:e.l}),c({h:(r+216)%360,s:e.s,l:e.l})]}function A(t,e,r){e=e||6,r=r||30;var n=c(t).toHsl(),i=360/r,a=[c(t)];for(n.h=(n.h-(i*e>>1)+720)%360;--e;)n.h=(n.h+i)%360,a.push(c(n));return a}function T(t,e){e=e||6;for(var r=c(t).toHsv(),n=r.h,i=r.s,a=r.v,o=[],s=1/e;e--;)o.push(c({h:n,s:i,v:a})),a=(a+s)%1;return o}c.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var e,r,n,i=this.toRgb();return e=i.r/255,r=i.g/255,n=i.b/255,.2126*(e<=.03928?e/12.92:t.pow((e+.055)/1.055,2.4))+.7152*(r<=.03928?r/12.92:t.pow((r+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:t.pow((n+.055)/1.055,2.4))},setAlpha:function(t){return this._a=C(t),this._roundA=a(100*this._a)/100,this},toHsv:function(){var t=f(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=f(this._r,this._g,this._b),e=a(360*t.h),r=a(100*t.s),n=a(100*t.v);return 1==this._a?\"hsv(\"+e+\", \"+r+\"%, \"+n+\"%)\":\"hsva(\"+e+\", \"+r+\"%, \"+n+\"%, \"+this._roundA+\")\"},toHsl:function(){var t=u(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=u(this._r,this._g,this._b),e=a(360*t.h),r=a(100*t.s),n=a(100*t.l);return 1==this._a?\"hsl(\"+e+\", \"+r+\"%, \"+n+\"%)\":\"hsla(\"+e+\", \"+r+\"%, \"+n+\"%, \"+this._roundA+\")\"},toHex:function(t){return h(this._r,this._g,this._b,t)},toHexString:function(t){return\"#\"+this.toHex(t)},toHex8:function(t){return function(t,e,r,n,i){var o=[I(a(t).toString(16)),I(a(e).toString(16)),I(a(r).toString(16)),I(D(n))];if(i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1))return o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0);return o.join(\"\")}(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return\"#\"+this.toHex8(t)},toRgb:function(){return{r:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return 1==this._a?\"rgb(\"+a(this._r)+\", \"+a(this._g)+\", \"+a(this._b)+\")\":\"rgba(\"+a(this._r)+\", \"+a(this._g)+\", \"+a(this._b)+\", \"+this._roundA+\")\"},toPercentageRgb:function(){return{r:a(100*L(this._r,255))+\"%\",g:a(100*L(this._g,255))+\"%\",b:a(100*L(this._b,255))+\"%\",a:this._a}},toPercentageRgbString:function(){return 1==this._a?\"rgb(\"+a(100*L(this._r,255))+\"%, \"+a(100*L(this._g,255))+\"%, \"+a(100*L(this._b,255))+\"%)\":\"rgba(\"+a(100*L(this._r,255))+\"%, \"+a(100*L(this._g,255))+\"%, \"+a(100*L(this._b,255))+\"%, \"+this._roundA+\")\"},toName:function(){return 0===this._a?\"transparent\":!(this._a<1)&&(E[h(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e=\"#\"+p(this._r,this._g,this._b,this._a),r=e,n=this._gradientType?\"GradientType = 1, \":\"\";if(t){var i=c(t);r=\"#\"+p(i._r,i._g,i._b,i._a)}return\"progid:DXImageTransform.Microsoft.gradient(\"+n+\"startColorstr=\"+e+\",endColorstr=\"+r+\")\"},toString:function(t){var e=!!t;t=t||this._format;var r=!1,n=this._a<1&&this._a>=0;return e||!n||\"hex\"!==t&&\"hex6\"!==t&&\"hex3\"!==t&&\"hex4\"!==t&&\"hex8\"!==t&&\"name\"!==t?(\"rgb\"===t&&(r=this.toRgbString()),\"prgb\"===t&&(r=this.toPercentageRgbString()),\"hex\"!==t&&\"hex6\"!==t||(r=this.toHexString()),\"hex3\"===t&&(r=this.toHexString(!0)),\"hex4\"===t&&(r=this.toHex8String(!0)),\"hex8\"===t&&(r=this.toHex8String()),\"name\"===t&&(r=this.toName()),\"hsl\"===t&&(r=this.toHslString()),\"hsv\"===t&&(r=this.toHsvString()),r||this.toHexString()):\"name\"===t&&0===this._a?this.toName():this.toRgbString()},clone:function(){return c(this.toString())},_applyModification:function(t,e){var r=t.apply(null,[this].concat([].slice.call(e)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(m,arguments)},brighten:function(){return this._applyModification(y,arguments)},darken:function(){return this._applyModification(x,arguments)},desaturate:function(){return this._applyModification(d,arguments)},saturate:function(){return this._applyModification(g,arguments)},greyscale:function(){return this._applyModification(v,arguments)},spin:function(){return this._applyModification(b,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(A,arguments)},complement:function(){return this._applyCombination(_,arguments)},monochromatic:function(){return this._applyCombination(T,arguments)},splitcomplement:function(){return this._applyCombination(M,arguments)},triad:function(){return this._applyCombination(w,arguments)},tetrad:function(){return this._applyCombination(k,arguments)}},c.fromRatio=function(t,e){if(\"object\"==typeof t){var r={};for(var n in t)t.hasOwnProperty(n)&&(r[n]=\"a\"===n?t[n]:P(t[n]));t=r}return c(t,e)},c.equals=function(t,e){return!(!t||!e)&&c(t).toRgbString()==c(e).toRgbString()},c.random=function(){return c.fromRatio({r:l(),g:l(),b:l()})},c.mix=function(t,e,r){r=0===r?0:r||50;var n=c(t).toRgb(),i=c(e).toRgb(),a=r/100;return c({r:(i.r-n.r)*a+n.r,g:(i.g-n.g)*a+n.g,b:(i.b-n.b)*a+n.b,a:(i.a-n.a)*a+n.a})},c.readability=function(e,r){var n=c(e),i=c(r);return(t.max(n.getLuminance(),i.getLuminance())+.05)/(t.min(n.getLuminance(),i.getLuminance())+.05)},c.isReadable=function(t,e,r){var n,i,a=c.readability(t,e);switch(i=!1,(n=function(t){var e,r;e=((t=t||{level:\"AA\",size:\"small\"}).level||\"AA\").toUpperCase(),r=(t.size||\"small\").toLowerCase(),\"AA\"!==e&&\"AAA\"!==e&&(e=\"AA\");\"small\"!==r&&\"large\"!==r&&(r=\"small\");return{level:e,size:r}}(r)).level+n.size){case\"AAsmall\":case\"AAAlarge\":i=a>=4.5;break;case\"AAlarge\":i=a>=3;break;case\"AAAsmall\":i=a>=7}return i},c.mostReadable=function(t,e,r){var n,i,a,o,s=null,l=0;i=(r=r||{}).includeFallbackColors,a=r.level,o=r.size;for(var u=0;u<e.length;u++)(n=c.readability(t,e[u]))>l&&(l=n,s=c(e[u]));return c.isReadable(t,s,{level:a,size:o})||!i?s:(r.includeFallbackColors=!1,c.mostReadable(t,[\"#fff\",\"#000\"],r))};var S=c.names={aliceblue:\"f0f8ff\",antiquewhite:\"faebd7\",aqua:\"0ff\",aquamarine:\"7fffd4\",azure:\"f0ffff\",beige:\"f5f5dc\",bisque:\"ffe4c4\",black:\"000\",blanchedalmond:\"ffebcd\",blue:\"00f\",blueviolet:\"8a2be2\",brown:\"a52a2a\",burlywood:\"deb887\",burntsienna:\"ea7e5d\",cadetblue:\"5f9ea0\",chartreuse:\"7fff00\",chocolate:\"d2691e\",coral:\"ff7f50\",cornflowerblue:\"6495ed\",cornsilk:\"fff8dc\",crimson:\"dc143c\",cyan:\"0ff\",darkblue:\"00008b\",darkcyan:\"008b8b\",darkgoldenrod:\"b8860b\",darkgray:\"a9a9a9\",darkgreen:\"006400\",darkgrey:\"a9a9a9\",darkkhaki:\"bdb76b\",darkmagenta:\"8b008b\",darkolivegreen:\"556b2f\",darkorange:\"ff8c00\",darkorchid:\"9932cc\",darkred:\"8b0000\",darksalmon:\"e9967a\",darkseagreen:\"8fbc8f\",darkslateblue:\"483d8b\",darkslategray:\"2f4f4f\",darkslategrey:\"2f4f4f\",darkturquoise:\"00ced1\",darkviolet:\"9400d3\",deeppink:\"ff1493\",deepskyblue:\"00bfff\",dimgray:\"696969\",dimgrey:\"696969\",dodgerblue:\"1e90ff\",firebrick:\"b22222\",floralwhite:\"fffaf0\",forestgreen:\"228b22\",fuchsia:\"f0f\",gainsboro:\"dcdcdc\",ghostwhite:\"f8f8ff\",gold:\"ffd700\",goldenrod:\"daa520\",gray:\"808080\",green:\"008000\",greenyellow:\"adff2f\",grey:\"808080\",honeydew:\"f0fff0\",hotpink:\"ff69b4\",indianred:\"cd5c5c\",indigo:\"4b0082\",ivory:\"fffff0\",khaki:\"f0e68c\",lavender:\"e6e6fa\",lavenderblush:\"fff0f5\",lawngreen:\"7cfc00\",lemonchiffon:\"fffacd\",lightblue:\"add8e6\",lightcoral:\"f08080\",lightcyan:\"e0ffff\",lightgoldenrodyellow:\"fafad2\",lightgray:\"d3d3d3\",lightgreen:\"90ee90\",lightgrey:\"d3d3d3\",lightpink:\"ffb6c1\",lightsalmon:\"ffa07a\",lightseagreen:\"20b2aa\",lightskyblue:\"87cefa\",lightslategray:\"789\",lightslategrey:\"789\",lightsteelblue:\"b0c4de\",lightyellow:\"ffffe0\",lime:\"0f0\",limegreen:\"32cd32\",linen:\"faf0e6\",magenta:\"f0f\",maroon:\"800000\",mediumaquamarine:\"66cdaa\",mediumblue:\"0000cd\",mediumorchid:\"ba55d3\",mediumpurple:\"9370db\",mediumseagreen:\"3cb371\",mediumslateblue:\"7b68ee\",mediumspringgreen:\"00fa9a\",mediumturquoise:\"48d1cc\",mediumvioletred:\"c71585\",midnightblue:\"191970\",mintcream:\"f5fffa\",mistyrose:\"ffe4e1\",moccasin:\"ffe4b5\",navajowhite:\"ffdead\",navy:\"000080\",oldlace:\"fdf5e6\",olive:\"808000\",olivedrab:\"6b8e23\",orange:\"ffa500\",orangered:\"ff4500\",orchid:\"da70d6\",palegoldenrod:\"eee8aa\",palegreen:\"98fb98\",paleturquoise:\"afeeee\",palevioletred:\"db7093\",papayawhip:\"ffefd5\",peachpuff:\"ffdab9\",peru:\"cd853f\",pink:\"ffc0cb\",plum:\"dda0dd\",powderblue:\"b0e0e6\",purple:\"800080\",rebeccapurple:\"663399\",red:\"f00\",rosybrown:\"bc8f8f\",royalblue:\"4169e1\",saddlebrown:\"8b4513\",salmon:\"fa8072\",sandybrown:\"f4a460\",seagreen:\"2e8b57\",seashell:\"fff5ee\",sienna:\"a0522d\",silver:\"c0c0c0\",skyblue:\"87ceeb\",slateblue:\"6a5acd\",slategray:\"708090\",slategrey:\"708090\",snow:\"fffafa\",springgreen:\"00ff7f\",steelblue:\"4682b4\",tan:\"d2b48c\",teal:\"008080\",thistle:\"d8bfd8\",tomato:\"ff6347\",turquoise:\"40e0d0\",violet:\"ee82ee\",wheat:\"f5deb3\",white:\"fff\",whitesmoke:\"f5f5f5\",yellow:\"ff0\",yellowgreen:\"9acd32\"},E=c.hexNames=function(t){var e={};for(var r in t)t.hasOwnProperty(r)&&(e[t[r]]=r);return e}(S);function C(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function L(e,r){(function(t){return\"string\"==typeof t&&-1!=t.indexOf(\".\")&&1===parseFloat(t)})(e)&&(e=\"100%\");var n=function(t){return\"string\"==typeof t&&-1!=t.indexOf(\"%\")}(e);return e=o(r,s(0,parseFloat(e))),n&&(e=parseInt(e*r,10)/100),t.abs(e-r)<1e-6?1:e%r/parseFloat(r)}function z(t){return o(1,s(0,t))}function O(t){return parseInt(t,16)}function I(t){return 1==t.length?\"0\"+t:\"\"+t}function P(t){return t<=1&&(t=100*t+\"%\"),t}function D(e){return t.round(255*parseFloat(e)).toString(16)}function R(t){return O(t)/255}var B,F,N,j=(F=\"[\\\\s|\\\\(]+(\"+(B=\"(?:[-\\\\+]?\\\\d*\\\\.\\\\d+%?)|(?:[-\\\\+]?\\\\d+%?)\")+\")[,|\\\\s]+(\"+B+\")[,|\\\\s]+(\"+B+\")\\\\s*\\\\)?\",N=\"[\\\\s|\\\\(]+(\"+B+\")[,|\\\\s]+(\"+B+\")[,|\\\\s]+(\"+B+\")[,|\\\\s]+(\"+B+\")\\\\s*\\\\)?\",{CSS_UNIT:new RegExp(B),rgb:new RegExp(\"rgb\"+F),rgba:new RegExp(\"rgba\"+N),hsl:new RegExp(\"hsl\"+F),hsla:new RegExp(\"hsla\"+N),hsv:new RegExp(\"hsv\"+F),hsva:new RegExp(\"hsva\"+N),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function V(t){return!!j.CSS_UNIT.exec(t)}\"undefined\"!=typeof e&&e.exports?e.exports=c:window.tinycolor=c}(Math)},{}],515:[function(t,e,r){\"use strict\";function n(t){if(t instanceof Float32Array)return t;if(\"number\"==typeof t)return new Float32Array([t])[0];var e=new Float32Array(t);return e.set(t),e}e.exports=n,e.exports.float32=e.exports.float=n,e.exports.fract32=e.exports.fract=function(t){if(\"number\"==typeof t)return n(t-n(t));for(var e=n(t),r=0,i=e.length;r<i;r++)e[r]=t[r]-e[r];return e}},{}],516:[function(t,e,r){\"use strict\";var n=t(\"parse-unit\");e.exports=o;var i=96;function a(t,e){var r=n(getComputedStyle(t).getPropertyValue(e));return r[0]*o(r[1],t)}function o(t,e){switch(e=e||document.body,t=(t||\"px\").trim().toLowerCase(),e!==window&&e!==document||(e=document.body),t){case\"%\":return e.clientHeight/100;case\"ch\":case\"ex\":return function(t,e){var r=document.createElement(\"div\");r.style[\"font-size\"]=\"128\"+t,e.appendChild(r);var n=a(r,\"font-size\")/128;return e.removeChild(r),n}(t,e);case\"em\":return a(e,\"font-size\");case\"rem\":return a(document.body,\"font-size\");case\"vw\":return window.innerWidth/100;case\"vh\":return window.innerHeight/100;case\"vmin\":return Math.min(window.innerWidth,window.innerHeight)/100;case\"vmax\":return Math.max(window.innerWidth,window.innerHeight)/100;case\"in\":return i;case\"cm\":return i/2.54;case\"mm\":return i/25.4;case\"pt\":return i/72;case\"pc\":return i/6}return 1}},{\"parse-unit\":444}],517:[function(t,e,r){var n;n=this,function(t){\"use strict\";var e=function(t){return t},r=function(t){if(null==(r=t.transform))return e;var r,n,i,a=r.scale[0],o=r.scale[1],s=r.translate[0],l=r.translate[1];return function(t,e){return e||(n=i=0),t[0]=(n+=t[0])*a+s,t[1]=(i+=t[1])*o+l,t}},n=function(t){var e=t.bbox;function n(t){l[0]=t[0],l[1]=t[1],s(l),l[0]<c&&(c=l[0]),l[0]>f&&(f=l[0]),l[1]<u&&(u=l[1]),l[1]>h&&(h=l[1])}function i(t){switch(t.type){case\"GeometryCollection\":t.geometries.forEach(i);break;case\"Point\":n(t.coordinates);break;case\"MultiPoint\":t.coordinates.forEach(n)}}if(!e){var a,o,s=r(t),l=new Array(2),c=1/0,u=c,f=-c,h=-c;for(o in t.arcs.forEach(function(t){for(var e=-1,r=t.length;++e<r;)a=t[e],l[0]=a[0],l[1]=a[1],s(l,e),l[0]<c&&(c=l[0]),l[0]>f&&(f=l[0]),l[1]<u&&(u=l[1]),l[1]>h&&(h=l[1])}),t.objects)i(t.objects[o]);e=t.bbox=[c,u,f,h]}return e},i=function(t,e){for(var r,n=t.length,i=n-e;i<--n;)r=t[i],t[i++]=t[n],t[n]=r};function a(t,e){var r=e.id,n=e.bbox,i=null==e.properties?{}:e.properties,a=o(t,e);return null==r&&null==n?{type:\"Feature\",properties:i,geometry:a}:null==n?{type:\"Feature\",id:r,properties:i,geometry:a}:{type:\"Feature\",id:r,bbox:n,properties:i,geometry:a}}function o(t,e){var n=r(t),a=t.arcs;function o(t,e){e.length&&e.pop();for(var r=a[t<0?~t:t],o=0,s=r.length;o<s;++o)e.push(n(r[o].slice(),o));t<0&&i(e,s)}function s(t){return n(t.slice())}function l(t){for(var e=[],r=0,n=t.length;r<n;++r)o(t[r],e);return e.length<2&&e.push(e[0].slice()),e}function c(t){for(var e=l(t);e.length<4;)e.push(e[0].slice());return e}function u(t){return t.map(c)}return function t(e){var r,n=e.type;switch(n){case\"GeometryCollection\":return{type:n,geometries:e.geometries.map(t)};case\"Point\":r=s(e.coordinates);break;case\"MultiPoint\":r=e.coordinates.map(s);break;case\"LineString\":r=l(e.arcs);break;case\"MultiLineString\":r=e.arcs.map(l);break;case\"Polygon\":r=u(e.arcs);break;case\"MultiPolygon\":r=e.arcs.map(u);break;default:return null}return{type:n,coordinates:r}}(e)}var s=function(t,e){var r={},n={},i={},a=[],o=-1;function s(t,e){for(var n in t){var i=t[n];delete e[i.start],delete i.start,delete i.end,i.forEach(function(t){r[t<0?~t:t]=1}),a.push(i)}}return e.forEach(function(r,n){var i,a=t.arcs[r<0?~r:r];a.length<3&&!a[1][0]&&!a[1][1]&&(i=e[++o],e[o]=r,e[n]=i)}),e.forEach(function(e){var r,a,o=function(e){var r,n=t.arcs[e<0?~e:e],i=n[0];t.transform?(r=[0,0],n.forEach(function(t){r[0]+=t[0],r[1]+=t[1]})):r=n[n.length-1];return e<0?[r,i]:[i,r]}(e),s=o[0],l=o[1];if(r=i[s])if(delete i[r.end],r.push(e),r.end=l,a=n[l]){delete n[a.start];var c=a===r?r:r.concat(a);n[c.start=r.start]=i[c.end=a.end]=c}else n[r.start]=i[r.end]=r;else if(r=n[l])if(delete n[r.start],r.unshift(e),r.start=s,a=i[s]){delete i[a.end];var u=a===r?r:a.concat(r);n[u.start=a.start]=i[u.end=r.end]=u}else n[r.start]=i[r.end]=r;else n[(r=[e]).start=s]=i[r.end=l]=r}),s(i,n),s(n,i),e.forEach(function(t){r[t<0?~t:t]||a.push([t])}),a};function l(t,e,r){var n,i,a;if(arguments.length>1)n=function(t,e,r){var n,i=[],a=[];function o(t){var e=t<0?~t:t;(a[e]||(a[e]=[])).push({i:t,g:n})}function s(t){t.forEach(o)}function l(t){t.forEach(s)}return function t(e){switch(n=e,e.type){case\"GeometryCollection\":e.geometries.forEach(t);break;case\"LineString\":s(e.arcs);break;case\"MultiLineString\":case\"Polygon\":l(e.arcs);break;case\"MultiPolygon\":e.arcs.forEach(l)}}(e),a.forEach(null==r?function(t){i.push(t[0].i)}:function(t){r(t[0].g,t[t.length-1].g)&&i.push(t[0].i)}),i}(0,e,r);else for(i=0,n=new Array(a=t.arcs.length);i<a;++i)n[i]=i;return{type:\"MultiLineString\",arcs:s(t,n)}}function c(t,e){var r={},n=[],i=[];function a(t){t.forEach(function(e){e.forEach(function(e){(r[e=e<0?~e:e]||(r[e]=[])).push(t)})}),n.push(t)}function l(e){return function(t){for(var e,r=-1,n=t.length,i=t[n-1],a=0;++r<n;)e=i,i=t[r],a+=e[0]*i[1]-e[1]*i[0];return Math.abs(a)}(o(t,{type:\"Polygon\",arcs:[e]}).coordinates[0])}return e.forEach(function t(e){switch(e.type){case\"GeometryCollection\":e.geometries.forEach(t);break;case\"Polygon\":a(e.arcs);break;case\"MultiPolygon\":e.arcs.forEach(a)}}),n.forEach(function(t){if(!t._){var e=[],n=[t];for(t._=1,i.push(e);t=n.pop();)e.push(t),t.forEach(function(t){t.forEach(function(t){r[t<0?~t:t].forEach(function(t){t._||(t._=1,n.push(t))})})})}}),n.forEach(function(t){delete t._}),{type:\"MultiPolygon\",arcs:i.map(function(e){var n,i=[];if(e.forEach(function(t){t.forEach(function(t){t.forEach(function(t){r[t<0?~t:t].length<2&&i.push(t)})})}),(n=(i=s(t,i)).length)>1)for(var a,o,c=1,u=l(i[0]);c<n;++c)(a=l(i[c]))>u&&(o=i[0],i[0]=i[c],i[c]=o,u=a);return i})}}var u=function(t,e){for(var r=0,n=t.length;r<n;){var i=r+n>>>1;t[i]<e?r=i+1:n=i}return r};t.bbox=n,t.feature=function(t,e){return\"GeometryCollection\"===e.type?{type:\"FeatureCollection\",features:e.geometries.map(function(e){return a(t,e)})}:a(t,e)},t.mesh=function(t){return o(t,l.apply(this,arguments))},t.meshArcs=l,t.merge=function(t){return o(t,c.apply(this,arguments))},t.mergeArcs=c,t.neighbors=function(t){var e={},r=t.map(function(){return[]});function n(t,r){t.forEach(function(t){t<0&&(t=~t);var n=e[t];n?n.push(r):e[t]=[r]})}function i(t,e){t.forEach(function(t){n(t,e)})}var a={LineString:n,MultiLineString:i,Polygon:i,MultiPolygon:function(t,e){t.forEach(function(t){i(t,e)})}};for(var o in t.forEach(function t(e,r){\"GeometryCollection\"===e.type?e.geometries.forEach(function(e){t(e,r)}):e.type in a&&a[e.type](e.arcs,r)}),e)for(var s=e[o],l=s.length,c=0;c<l;++c)for(var f=c+1;f<l;++f){var h,p=s[c],d=s[f];(h=r[p])[o=u(h,d)]!==d&&h.splice(o,0,d),(h=r[d])[o=u(h,p)]!==p&&h.splice(o,0,p)}return r},t.quantize=function(t,e){if(!((e=Math.floor(e))>=2))throw new Error(\"n must be \\u22652\");if(t.transform)throw new Error(\"already quantized\");var r,i=n(t),a=i[0],o=(i[2]-a)/(e-1)||1,s=i[1],l=(i[3]-s)/(e-1)||1;function c(t){t[0]=Math.round((t[0]-a)/o),t[1]=Math.round((t[1]-s)/l)}function u(t){switch(t.type){case\"GeometryCollection\":t.geometries.forEach(u);break;case\"Point\":c(t.coordinates);break;case\"MultiPoint\":t.coordinates.forEach(c)}}for(r in t.arcs.forEach(function(t){for(var e,r,n,i=1,c=1,u=t.length,f=t[0],h=f[0]=Math.round((f[0]-a)/o),p=f[1]=Math.round((f[1]-s)/l);i<u;++i)f=t[i],r=Math.round((f[0]-a)/o),n=Math.round((f[1]-s)/l),r===h&&n===p||((e=t[c++])[0]=r-h,h=r,e[1]=n-p,p=n);c<2&&((e=t[c++])[0]=0,e[1]=0),t.length=c}),t.objects)u(t.objects[r]);return t.transform={scale:[o,l],translate:[a,s]},t},t.transform=r,t.untransform=function(t){if(null==(r=t.transform))return e;var r,n,i,a=r.scale[0],o=r.scale[1],s=r.translate[0],l=r.translate[1];return function(t,e){e||(n=i=0);var r=Math.round((t[0]-s)/a),c=Math.round((t[1]-l)/o);return t[0]=r-n,n=r,t[1]=c-i,i=c,t}},Object.defineProperty(t,\"__esModule\",{value:!0})}(\"object\"==typeof r&&\"undefined\"!=typeof e?r:n.topojson=n.topojson||{})},{}],518:[function(t,e,r){\"use strict\";e.exports=function(t){if(t<0)return[];if(0===t)return[[0]];for(var e=0|Math.round(a(t+1)),r=[],o=0;o<e;++o){for(var s=n.unrank(t,o),l=[0],c=0,u=0;u<s.length;++u)c+=1<<s[u],l.push(c);i(s)<1&&(l[0]=c,l[t]=0),r.push(l)}return r};var n=t(\"permutation-rank\"),i=t(\"permutation-parity\"),a=t(\"gamma\")},{gamma:220,\"permutation-parity\":446,\"permutation-rank\":447}],519:[function(t,e,r){\"use strict\";e.exports=function(t){var e=(t=t||{}).center||[0,0,0],r=t.up||[0,1,0],n=t.right||f(r),i=t.radius||1,a=t.theta||0,u=t.phi||0;if(e=[].slice.call(e,0,3),r=[].slice.call(r,0,3),s(r,r),n=[].slice.call(n,0,3),s(n,n),\"eye\"in t){var p=t.eye,d=[p[0]-e[0],p[1]-e[1],p[2]-e[2]];o(n,d,r),c(n[0],n[1],n[2])<1e-6?n=f(r):s(n,n),i=c(d[0],d[1],d[2]);var g=l(r,d)/i,v=l(n,d)/i;u=Math.acos(g),a=Math.acos(v)}return i=Math.log(i),new h(t.zoomMin,t.zoomMax,e,r,n,i,a,u)};var n=t(\"filtered-vector\"),i=t(\"gl-mat4/invert\"),a=t(\"gl-mat4/rotate\"),o=t(\"gl-vec3/cross\"),s=t(\"gl-vec3/normalize\"),l=t(\"gl-vec3/dot\");function c(t,e,r){return Math.sqrt(Math.pow(t,2)+Math.pow(e,2)+Math.pow(r,2))}function u(t){return Math.min(1,Math.max(-1,t))}function f(t){var e=Math.abs(t[0]),r=Math.abs(t[1]),n=Math.abs(t[2]),i=[0,0,0];e>Math.max(r,n)?i[2]=1:r>Math.max(e,n)?i[0]=1:i[1]=1;for(var a=0,o=0,l=0;l<3;++l)a+=t[l]*t[l],o+=i[l]*t[l];for(l=0;l<3;++l)i[l]-=o/a*t[l];return s(i,i),i}function h(t,e,r,i,a,o,s,l){this.center=n(r),this.up=n(i),this.right=n(a),this.radius=n([o]),this.angle=n([s,l]),this.angle.bounds=[[-1/0,-Math.PI/2],[1/0,Math.PI/2]],this.setDistanceLimits(t,e),this.computedCenter=this.center.curve(0),this.computedUp=this.up.curve(0),this.computedRight=this.right.curve(0),this.computedRadius=this.radius.curve(0),this.computedAngle=this.angle.curve(0),this.computedToward=[0,0,0],this.computedEye=[0,0,0],this.computedMatrix=new Array(16);for(var c=0;c<16;++c)this.computedMatrix[c]=.5;this.recalcMatrix(0)}var p=h.prototype;p.setDistanceLimits=function(t,e){t=t>0?Math.log(t):-1/0,e=e>0?Math.log(e):1/0,e=Math.max(e,t),this.radius.bounds[0][0]=t,this.radius.bounds[1][0]=e},p.getDistanceLimits=function(t){var e=this.radius.bounds[0];return t?(t[0]=Math.exp(e[0][0]),t[1]=Math.exp(e[1][0]),t):[Math.exp(e[0][0]),Math.exp(e[1][0])]},p.recalcMatrix=function(t){this.center.curve(t),this.up.curve(t),this.right.curve(t),this.radius.curve(t),this.angle.curve(t);for(var e=this.computedUp,r=this.computedRight,n=0,i=0,a=0;a<3;++a)i+=e[a]*r[a],n+=e[a]*e[a];var l=Math.sqrt(n),u=0;for(a=0;a<3;++a)r[a]-=e[a]*i/n,u+=r[a]*r[a],e[a]/=l;var f=Math.sqrt(u);for(a=0;a<3;++a)r[a]/=f;var h=this.computedToward;o(h,e,r),s(h,h);var p=Math.exp(this.computedRadius[0]),d=this.computedAngle[0],g=this.computedAngle[1],v=Math.cos(d),m=Math.sin(d),y=Math.cos(g),x=Math.sin(g),b=this.computedCenter,_=v*y,w=m*y,k=x,M=-v*x,A=-m*x,T=y,S=this.computedEye,E=this.computedMatrix;for(a=0;a<3;++a){var C=_*r[a]+w*h[a]+k*e[a];E[4*a+1]=M*r[a]+A*h[a]+T*e[a],E[4*a+2]=C,E[4*a+3]=0}var L=E[1],z=E[5],O=E[9],I=E[2],P=E[6],D=E[10],R=z*D-O*P,B=O*I-L*D,F=L*P-z*I,N=c(R,B,F);R/=N,B/=N,F/=N,E[0]=R,E[4]=B,E[8]=F;for(a=0;a<3;++a)S[a]=b[a]+E[2+4*a]*p;for(a=0;a<3;++a){u=0;for(var j=0;j<3;++j)u+=E[a+4*j]*S[j];E[12+a]=-u}E[15]=1},p.getMatrix=function(t,e){this.recalcMatrix(t);var r=this.computedMatrix;if(e){for(var n=0;n<16;++n)e[n]=r[n];return e}return r};var d=[0,0,0];p.rotate=function(t,e,r,n){if(this.angle.move(t,e,r),n){this.recalcMatrix(t);var i=this.computedMatrix;d[0]=i[2],d[1]=i[6],d[2]=i[10];for(var o=this.computedUp,s=this.computedRight,l=this.computedToward,c=0;c<3;++c)i[4*c]=o[c],i[4*c+1]=s[c],i[4*c+2]=l[c];a(i,i,n,d);for(c=0;c<3;++c)o[c]=i[4*c],s[c]=i[4*c+1];this.up.set(t,o[0],o[1],o[2]),this.right.set(t,s[0],s[1],s[2])}},p.pan=function(t,e,r,n){e=e||0,r=r||0,n=n||0,this.recalcMatrix(t);var i=this.computedMatrix,a=(Math.exp(this.computedRadius[0]),i[1]),o=i[5],s=i[9],l=c(a,o,s);a/=l,o/=l,s/=l;var u=i[0],f=i[4],h=i[8],p=u*a+f*o+h*s,d=c(u-=a*p,f-=o*p,h-=s*p),g=(u/=d)*e+a*r,v=(f/=d)*e+o*r,m=(h/=d)*e+s*r;this.center.move(t,g,v,m);var y=Math.exp(this.computedRadius[0]);y=Math.max(1e-4,y+n),this.radius.set(t,Math.log(y))},p.translate=function(t,e,r,n){this.center.move(t,e||0,r||0,n||0)},p.setMatrix=function(t,e,r,n){var a=1;\"number\"==typeof r&&(a=0|r),(a<0||a>3)&&(a=1);var o=(a+2)%3;e||(this.recalcMatrix(t),e=this.computedMatrix);var s=e[a],l=e[a+4],f=e[a+8];if(n){var h=Math.abs(s),p=Math.abs(l),d=Math.abs(f),g=Math.max(h,p,d);h===g?(s=s<0?-1:1,l=f=0):d===g?(f=f<0?-1:1,s=l=0):(l=l<0?-1:1,s=f=0)}else{var v=c(s,l,f);s/=v,l/=v,f/=v}var m,y,x=e[o],b=e[o+4],_=e[o+8],w=x*s+b*l+_*f,k=c(x-=s*w,b-=l*w,_-=f*w),M=l*(_/=k)-f*(b/=k),A=f*(x/=k)-s*_,T=s*b-l*x,S=c(M,A,T);if(M/=S,A/=S,T/=S,this.center.jump(t,H,G,W),this.radius.idle(t),this.up.jump(t,s,l,f),this.right.jump(t,x,b,_),2===a){var E=e[1],C=e[5],L=e[9],z=E*x+C*b+L*_,O=E*M+C*A+L*T;m=R<0?-Math.PI/2:Math.PI/2,y=Math.atan2(O,z)}else{var I=e[2],P=e[6],D=e[10],R=I*s+P*l+D*f,B=I*x+P*b+D*_,F=I*M+P*A+D*T;m=Math.asin(u(R)),y=Math.atan2(F,B)}this.angle.jump(t,y,m),this.recalcMatrix(t);var N=e[2],j=e[6],V=e[10],U=this.computedMatrix;i(U,e);var q=U[15],H=U[12]/q,G=U[13]/q,W=U[14]/q,Y=Math.exp(this.computedRadius[0]);this.center.jump(t,H-N*Y,G-j*Y,W-V*Y)},p.lastT=function(){return Math.max(this.center.lastT(),this.up.lastT(),this.right.lastT(),this.radius.lastT(),this.angle.lastT())},p.idle=function(t){this.center.idle(t),this.up.idle(t),this.right.idle(t),this.radius.idle(t),this.angle.idle(t)},p.flush=function(t){this.center.flush(t),this.up.flush(t),this.right.flush(t),this.radius.flush(t),this.angle.flush(t)},p.setDistance=function(t,e){e>0&&this.radius.set(t,Math.log(e))},p.lookAt=function(t,e,r,n){this.recalcMatrix(t),e=e||this.computedEye,r=r||this.computedCenter;var i=(n=n||this.computedUp)[0],a=n[1],o=n[2],s=c(i,a,o);if(!(s<1e-6)){i/=s,a/=s,o/=s;var l=e[0]-r[0],f=e[1]-r[1],h=e[2]-r[2],p=c(l,f,h);if(!(p<1e-6)){l/=p,f/=p,h/=p;var d=this.computedRight,g=d[0],v=d[1],m=d[2],y=i*g+a*v+o*m,x=c(g-=y*i,v-=y*a,m-=y*o);if(!(x<.01&&(x=c(g=a*h-o*f,v=o*l-i*h,m=i*f-a*l))<1e-6)){g/=x,v/=x,m/=x,this.up.set(t,i,a,o),this.right.set(t,g,v,m),this.center.set(t,r[0],r[1],r[2]),this.radius.set(t,Math.log(p));var b=a*m-o*v,_=o*g-i*m,w=i*v-a*g,k=c(b,_,w),M=i*l+a*f+o*h,A=g*l+v*f+m*h,T=(b/=k)*l+(_/=k)*f+(w/=k)*h,S=Math.asin(u(M)),E=Math.atan2(T,A),C=this.angle._state,L=C[C.length-1],z=C[C.length-2];L%=2*Math.PI;var O=Math.abs(L+2*Math.PI-E),I=Math.abs(L-E),P=Math.abs(L-2*Math.PI-E);O<I&&(L+=2*Math.PI),P<I&&(L-=2*Math.PI),this.angle.jump(this.angle.lastT(),L,z),this.angle.set(t,E,S)}}}}},{\"filtered-vector\":215,\"gl-mat4/invert\":254,\"gl-mat4/rotate\":258,\"gl-vec3/cross\":317,\"gl-vec3/dot\":322,\"gl-vec3/normalize\":339}],520:[function(t,e,r){\"use strict\";e.exports=function(t,e,r){var i=t*e,a=n*t,o=a-(a-t),s=t-o,l=n*e,c=l-(l-e),u=e-c,f=s*u-(i-o*c-s*c-o*u);if(r)return r[0]=f,r[1]=i,r;return[f,i]};var n=+(Math.pow(2,27)+1)},{}],521:[function(t,e,r){\"use strict\";e.exports=function(t,e,r){var n=t+e,i=n-t,a=e-i,o=t-(n-i);if(r)return r[0]=o+a,r[1]=n,r;return[o+a,n]}},{}],522:[function(t,e,r){(function(e,n){\"use strict\";var i=t(\"bit-twiddle\"),a=t(\"dup\");e.__TYPEDARRAY_POOL||(e.__TYPEDARRAY_POOL={UINT8:a([32,0]),UINT16:a([32,0]),UINT32:a([32,0]),INT8:a([32,0]),INT16:a([32,0]),INT32:a([32,0]),FLOAT:a([32,0]),DOUBLE:a([32,0]),DATA:a([32,0]),UINT8C:a([32,0]),BUFFER:a([32,0])});var o=\"undefined\"!=typeof Uint8ClampedArray,s=e.__TYPEDARRAY_POOL;s.UINT8C||(s.UINT8C=a([32,0])),s.BUFFER||(s.BUFFER=a([32,0]));var l=s.DATA,c=s.BUFFER;function u(t){if(t){var e=t.length||t.byteLength,r=i.log2(e);l[r].push(t)}}function f(t){t=i.nextPow2(t);var e=i.log2(t),r=l[e];return r.length>0?r.pop():new ArrayBuffer(t)}function h(t){return new Uint8Array(f(t),0,t)}function p(t){return new Uint16Array(f(2*t),0,t)}function d(t){return new Uint32Array(f(4*t),0,t)}function g(t){return new Int8Array(f(t),0,t)}function v(t){return new Int16Array(f(2*t),0,t)}function m(t){return new Int32Array(f(4*t),0,t)}function y(t){return new Float32Array(f(4*t),0,t)}function x(t){return new Float64Array(f(8*t),0,t)}function b(t){return o?new Uint8ClampedArray(f(t),0,t):h(t)}function _(t){return new DataView(f(t),0,t)}function w(t){t=i.nextPow2(t);var e=i.log2(t),r=c[e];return r.length>0?r.pop():new n(t)}r.free=function(t){if(n.isBuffer(t))c[i.log2(t.length)].push(t);else{if(\"[object ArrayBuffer]\"!==Object.prototype.toString.call(t)&&(t=t.buffer),!t)return;var e=t.length||t.byteLength,r=0|i.log2(e);l[r].push(t)}},r.freeUint8=r.freeUint16=r.freeUint32=r.freeInt8=r.freeInt16=r.freeInt32=r.freeFloat32=r.freeFloat=r.freeFloat64=r.freeDouble=r.freeUint8Clamped=r.freeDataView=function(t){u(t.buffer)},r.freeArrayBuffer=u,r.freeBuffer=function(t){c[i.log2(t.length)].push(t)},r.malloc=function(t,e){if(void 0===e||\"arraybuffer\"===e)return f(t);switch(e){case\"uint8\":return h(t);case\"uint16\":return p(t);case\"uint32\":return d(t);case\"int8\":return g(t);case\"int16\":return v(t);case\"int32\":return m(t);case\"float\":case\"float32\":return y(t);case\"double\":case\"float64\":return x(t);case\"uint8_clamped\":return b(t);case\"buffer\":return w(t);case\"data\":case\"dataview\":return _(t);default:return null}return null},r.mallocArrayBuffer=f,r.mallocUint8=h,r.mallocUint16=p,r.mallocUint32=d,r.mallocInt8=g,r.mallocInt16=v,r.mallocInt32=m,r.mallocFloat32=r.mallocFloat=y,r.mallocFloat64=r.mallocDouble=x,r.mallocUint8Clamped=b,r.mallocDataView=_,r.mallocBuffer=w,r.clearCache=function(){for(var t=0;t<32;++t)s.UINT8[t].length=0,s.UINT16[t].length=0,s.UINT32[t].length=0,s.INT8[t].length=0,s.INT16[t].length=0,s.INT32[t].length=0,s.FLOAT[t].length=0,s.DOUBLE[t].length=0,s.UINT8C[t].length=0,l[t].length=0,c[t].length=0}}).call(this,\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{},t(\"buffer\").Buffer)},{\"bit-twiddle\":80,buffer:93,dup:155}],523:[function(t,e,r){\"use strict\";function n(t){this.roots=new Array(t),this.ranks=new Array(t);for(var e=0;e<t;++e)this.roots[e]=e,this.ranks[e]=0}e.exports=n;var i=n.prototype;Object.defineProperty(i,\"length\",{get:function(){return this.roots.length}}),i.makeSet=function(){var t=this.roots.length;return this.roots.push(t),this.ranks.push(0),t},i.find=function(t){for(var e=t,r=this.roots;r[t]!==t;)t=r[t];for(;r[e]!==t;){var n=r[e];r[e]=t,e=n}return t},i.link=function(t,e){var r=this.find(t),n=this.find(e);if(r!==n){var i=this.ranks,a=this.roots,o=i[r],s=i[n];o<s?a[r]=n:s<o?a[n]=r:(a[n]=r,++i[r])}}},{}],524:[function(t,e,r){\"use strict\";e.exports=function(t,e,r){return 0===t.length?t:e?(r||t.sort(e),function(t,e){for(var r=1,n=t.length,i=t[0],a=t[0],o=1;o<n;++o)if(a=i,e(i=t[o],a)){if(o===r){r++;continue}t[r++]=i}return t.length=r,t}(t,e)):(r||t.sort(),function(t){for(var e=1,r=t.length,n=t[0],i=t[0],a=1;a<r;++a,i=n)if(i=n,(n=t[a])!==i){if(a===e){e++;continue}t[e++]=n}return t.length=e,t}(t))}},{}],525:[function(t,e,r){var n=/[\\'\\\"]/;e.exports=function(t){return t?(n.test(t.charAt(0))&&(t=t.substr(1)),n.test(t.charAt(t.length-1))&&(t=t.substr(0,t.length-1)),t):\"\"}},{}],526:[function(t,e,r){\"use strict\";e.exports=function(t,e,r){Array.isArray(r)||(r=[].slice.call(arguments,2));for(var n=0,i=r.length;n<i;n++){var a=r[n];for(var o in a)if((void 0===e[o]||Array.isArray(e[o])||t[o]!==e[o])&&o in e){var s;if(!0===a[o])s=e[o];else{if(!1===a[o])continue;if(\"function\"==typeof a[o]&&void 0===(s=a[o](e[o],t,e)))continue}t[o]=s}}return t}},{}],527:[function(t,e,r){\"use strict\";e.exports=function(t,e){\"object\"==typeof e&&null!==e||(e={});return n(t,e.canvas||i,e.context||a,e)};var n=t(\"./lib/vtext\"),i=null,a=null;\"undefined\"!=typeof document&&((i=document.createElement(\"canvas\")).width=8192,i.height=1024,a=i.getContext(\"2d\"))},{\"./lib/vtext\":528}],528:[function(t,e,r){\"use strict\";e.exports=function(t,e,r,n){var a=n.size||64,o=n.font||\"normal\";return r.font=a+\"px \"+o,r.textAlign=\"start\",r.textBaseline=\"alphabetic\",r.direction=\"ltr\",f(function(t,e,r,n){var a=0|Math.ceil(e.measureText(r).width+2*n);if(a>8192)throw new Error(\"vectorize-text: String too long (sorry, this will get fixed later)\");var o=3*n;t.height<o&&(t.height=o),e.fillStyle=\"#000\",e.fillRect(0,0,t.width,t.height),e.fillStyle=\"#fff\",e.fillText(r,n,2*n);var s=e.getImageData(0,0,a,o);return i(s.data,[o,a,4]).pick(-1,-1,0).transpose(1,0)}(e,r,t,a),n,a)},e.exports.processPixels=f;var n=t(\"surface-nets\"),i=t(\"ndarray\"),a=t(\"simplify-planar-graph\"),o=t(\"clean-pslg\"),s=t(\"cdt2d\"),l=t(\"planar-graph-to-polyline\");function c(t,e){var r=n(t,128);return e?a(r.cells,r.positions,.25):{edges:r.cells,positions:r.positions}}function u(t,e,r,n){var i=c(t,n),a=function(t,e,r){for(var n=e.textAlign||\"start\",i=e.textBaseline||\"alphabetic\",a=[1<<30,1<<30],o=[0,0],s=t.length,l=0;l<s;++l)for(var c=t[l],u=0;u<2;++u)a[u]=0|Math.min(a[u],c[u]),o[u]=0|Math.max(o[u],c[u]);var f=0;switch(n){case\"center\":f=-.5*(a[0]+o[0]);break;case\"right\":case\"end\":f=-o[0];break;case\"left\":case\"start\":f=-a[0];break;default:throw new Error(\"vectorize-text: Unrecognized textAlign: '\"+n+\"'\")}var h=0;switch(i){case\"hanging\":case\"top\":h=-a[1];break;case\"middle\":h=-.5*(a[1]+o[1]);break;case\"alphabetic\":case\"ideographic\":h=-3*r;break;case\"bottom\":h=-o[1];break;default:throw new Error(\"vectorize-text: Unrecoginized textBaseline: '\"+i+\"'\")}var p=1/r;return\"lineHeight\"in e?p*=+e.lineHeight:\"width\"in e?p=e.width/(o[0]-a[0]):\"height\"in e&&(p=e.height/(o[1]-a[1])),t.map(function(t){return[p*(t[0]+f),p*(t[1]+h)]})}(i.positions,e,r),u=i.edges,f=\"ccw\"===e.orientation;if(o(a,u),e.polygons||e.polygon||e.polyline){for(var h=l(u,a),p=new Array(h.length),d=0;d<h.length;++d){for(var g=h[d],v=new Array(g.length),m=0;m<g.length;++m){for(var y=g[m],x=new Array(y.length),b=0;b<y.length;++b)x[b]=a[y[b]].slice();f&&x.reverse(),v[m]=x}p[d]=v}return p}return e.triangles||e.triangulate||e.triangle?{cells:s(a,u,{delaunay:!1,exterior:!1,interior:!0}),positions:a}:{edges:u,positions:a}}function f(t,e,r){try{return u(t,e,r,!0)}catch(t){}try{return u(t,e,r,!1)}catch(t){}return e.polygons||e.polyline||e.polygon?[]:e.triangles||e.triangulate||e.triangle?{cells:[],positions:[]}:{edges:[],positions:[]}}},{cdt2d:94,\"clean-pslg\":104,ndarray:433,\"planar-graph-to-polyline\":451,\"simplify-planar-graph\":500,\"surface-nets\":508}],529:[function(t,e,r){!function(){\"use strict\";if(\"undefined\"==typeof ses||!ses.ok||ses.ok()){\"undefined\"!=typeof ses&&(ses.weakMapPermitHostObjects=v);var t=!1;if(\"function\"==typeof WeakMap){var r=WeakMap;if(\"undefined\"!=typeof navigator&&/Firefox/.test(navigator.userAgent));else{var n=new r,i=Object.freeze({});if(n.set(i,1),1===n.get(i))return void(e.exports=WeakMap);t=!0}}Object.prototype.hasOwnProperty;var a=Object.getOwnPropertyNames,o=Object.defineProperty,s=Object.isExtensible,l=\"weakmap:\",c=l+\"ident:\"+Math.random()+\"___\";if(\"undefined\"!=typeof crypto&&\"function\"==typeof crypto.getRandomValues&&\"function\"==typeof ArrayBuffer&&\"function\"==typeof Uint8Array){var u=new ArrayBuffer(25),f=new Uint8Array(u);crypto.getRandomValues(f),c=l+\"rand:\"+Array.prototype.map.call(f,function(t){return(t%36).toString(36)}).join(\"\")+\"___\"}if(o(Object,\"getOwnPropertyNames\",{value:function(t){return a(t).filter(m)}}),\"getPropertyNames\"in Object){var h=Object.getPropertyNames;o(Object,\"getPropertyNames\",{value:function(t){return h(t).filter(m)}})}!function(){var t=Object.freeze;o(Object,\"freeze\",{value:function(e){return y(e),t(e)}});var e=Object.seal;o(Object,\"seal\",{value:function(t){return y(t),e(t)}});var r=Object.preventExtensions;o(Object,\"preventExtensions\",{value:function(t){return y(t),r(t)}})}();var p=!1,d=0,g=function(){this instanceof g||b();var t=[],e=[],r=d++;return Object.create(g.prototype,{get___:{value:x(function(n,i){var a,o=y(n);return o?r in o?o[r]:i:(a=t.indexOf(n))>=0?e[a]:i})},has___:{value:x(function(e){var n=y(e);return n?r in n:t.indexOf(e)>=0})},set___:{value:x(function(n,i){var a,o=y(n);return o?o[r]=i:(a=t.indexOf(n))>=0?e[a]=i:(a=t.length,e[a]=i,t[a]=n),this})},delete___:{value:x(function(n){var i,a,o=y(n);return o?r in o&&delete o[r]:!((i=t.indexOf(n))<0||(a=t.length-1,t[i]=void 0,e[i]=e[a],t[i]=t[a],t.length=a,e.length=a,0))})}})};g.prototype=Object.create(Object.prototype,{get:{value:function(t,e){return this.get___(t,e)},writable:!0,configurable:!0},has:{value:function(t){return this.has___(t)},writable:!0,configurable:!0},set:{value:function(t,e){return this.set___(t,e)},writable:!0,configurable:!0},delete:{value:function(t){return this.delete___(t)},writable:!0,configurable:!0}}),\"function\"==typeof r?function(){function n(){this instanceof g||b();var e,n=new r,i=void 0,a=!1;return e=t?function(t,e){return n.set(t,e),n.has(t)||(i||(i=new g),i.set(t,e)),this}:function(t,e){if(a)try{n.set(t,e)}catch(r){i||(i=new g),i.set___(t,e)}else n.set(t,e);return this},Object.create(g.prototype,{get___:{value:x(function(t,e){return i?n.has(t)?n.get(t):i.get___(t,e):n.get(t,e)})},has___:{value:x(function(t){return n.has(t)||!!i&&i.has___(t)})},set___:{value:x(e)},delete___:{value:x(function(t){var e=!!n.delete(t);return i&&i.delete___(t)||e})},permitHostObjects___:{value:x(function(t){if(t!==v)throw new Error(\"bogus call to permitHostObjects___\");a=!0})}})}t&&\"undefined\"!=typeof Proxy&&(Proxy=void 0),n.prototype=g.prototype,e.exports=n,Object.defineProperty(WeakMap.prototype,\"constructor\",{value:WeakMap,enumerable:!1,configurable:!0,writable:!0})}():(\"undefined\"!=typeof Proxy&&(Proxy=void 0),e.exports=g)}function v(t){t.permitHostObjects___&&t.permitHostObjects___(v)}function m(t){return!(t.substr(0,l.length)==l&&\"___\"===t.substr(t.length-3))}function y(t){if(t!==Object(t))throw new TypeError(\"Not an object: \"+t);var e=t[c];if(e&&e.key===t)return e;if(s(t)){e={key:t};try{return o(t,c,{value:e,writable:!1,enumerable:!1,configurable:!1}),e}catch(t){return}}}function x(t){return t.prototype=null,Object.freeze(t)}function b(){p||\"undefined\"==typeof console||(p=!0,console.warn(\"WeakMap should be invoked as new WeakMap(), not WeakMap(). This will be an error in the future.\"))}}()},{}],530:[function(t,e,r){var n=t(\"./hidden-store.js\");e.exports=function(){var t={};return function(e){if((\"object\"!=typeof e||null===e)&&\"function\"!=typeof e)throw new Error(\"Weakmap-shim: Key must be object\");var r=e.valueOf(t);return r&&r.identity===t?r:n(e,t)}}},{\"./hidden-store.js\":531}],531:[function(t,e,r){e.exports=function(t,e){var r={identity:e},n=t.valueOf;return Object.defineProperty(t,\"valueOf\",{value:function(t){return t!==e?n.apply(this,arguments):r},writable:!0}),r}},{}],532:[function(t,e,r){var n=t(\"./create-store.js\");e.exports=function(){var t=n();return{get:function(e,r){var n=t(e);return n.hasOwnProperty(\"value\")?n.value:r},set:function(e,r){return t(e).value=r,this},has:function(e){return\"value\"in t(e)},delete:function(e){return delete t(e).value}}}},{\"./create-store.js\":530}],533:[function(t,e,r){var n=t(\"get-canvas-context\");e.exports=function(t){return n(\"webgl\",t)}},{\"get-canvas-context\":221}],534:[function(t,e,r){var n=t(\"../main\"),i=t(\"object-assign\"),a=n.instance();function o(t){this.local=this.regionalOptions[t||\"\"]||this.regionalOptions[\"\"]}o.prototype=new n.baseCalendar,i(o.prototype,{name:\"Chinese\",jdEpoch:1721425.5,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{\"\":{name:\"Chinese\",epochs:[\"BEC\",\"EC\"],monthNumbers:function(t,e){if(\"string\"==typeof t){var r=t.match(l);return r?r[0]:\"\"}var n=this._validateYear(t),i=t.month(),a=\"\"+this.toChineseMonth(n,i);return e&&a.length<2&&(a=\"0\"+a),this.isIntercalaryMonth(n,i)&&(a+=\"i\"),a},monthNames:function(t){if(\"string\"==typeof t){var e=t.match(c);return e?e[0]:\"\"}var r=this._validateYear(t),n=t.month(),i=[\"\\u4e00\\u6708\",\"\\u4e8c\\u6708\",\"\\u4e09\\u6708\",\"\\u56db\\u6708\",\"\\u4e94\\u6708\",\"\\u516d\\u6708\",\"\\u4e03\\u6708\",\"\\u516b\\u6708\",\"\\u4e5d\\u6708\",\"\\u5341\\u6708\",\"\\u5341\\u4e00\\u6708\",\"\\u5341\\u4e8c\\u6708\"][this.toChineseMonth(r,n)-1];return this.isIntercalaryMonth(r,n)&&(i=\"\\u95f0\"+i),i},monthNamesShort:function(t){if(\"string\"==typeof t){var e=t.match(u);return e?e[0]:\"\"}var r=this._validateYear(t),n=t.month(),i=[\"\\u4e00\",\"\\u4e8c\",\"\\u4e09\",\"\\u56db\",\"\\u4e94\",\"\\u516d\",\"\\u4e03\",\"\\u516b\",\"\\u4e5d\",\"\\u5341\",\"\\u5341\\u4e00\",\"\\u5341\\u4e8c\"][this.toChineseMonth(r,n)-1];return this.isIntercalaryMonth(r,n)&&(i=\"\\u95f0\"+i),i},parseMonth:function(t,e){t=this._validateYear(t);var r,n=parseInt(e);if(isNaN(n))\"\\u95f0\"===e[0]&&(r=!0,e=e.substring(1)),\"\\u6708\"===e[e.length-1]&&(e=e.substring(0,e.length-1)),n=1+[\"\\u4e00\",\"\\u4e8c\",\"\\u4e09\",\"\\u56db\",\"\\u4e94\",\"\\u516d\",\"\\u4e03\",\"\\u516b\",\"\\u4e5d\",\"\\u5341\",\"\\u5341\\u4e00\",\"\\u5341\\u4e8c\"].indexOf(e);else{var i=e[e.length-1];r=\"i\"===i||\"I\"===i}return this.toMonthIndex(t,n,r)},dayNames:[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"],dayNamesShort:[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],dayNamesMin:[\"Su\",\"Mo\",\"Tu\",\"We\",\"Th\",\"Fr\",\"Sa\"],digits:null,dateFormat:\"yyyy/mm/dd\",firstDay:1,isRTL:!1}},_validateYear:function(t,e){if(t.year&&(t=t.year()),\"number\"!=typeof t||t<1888||t>2111)throw e.replace(/\\{0\\}/,this.local.name);return t},toMonthIndex:function(t,e,r){var i=this.intercalaryMonth(t);if(r&&e!==i||e<1||e>12)throw n.local.invalidMonth.replace(/\\{0\\}/,this.local.name);return i?!r&&e<=i?e-1:e:e-1},toChineseMonth:function(t,e){t.year&&(e=(t=t.year()).month());var r=this.intercalaryMonth(t);if(e<0||e>(r?12:11))throw n.local.invalidMonth.replace(/\\{0\\}/,this.local.name);return r?e<r?e+1:e:e+1},intercalaryMonth:function(t){return t=this._validateYear(t),f[t-f[0]]>>13},isIntercalaryMonth:function(t,e){t.year&&(e=(t=t.year()).month());var r=this.intercalaryMonth(t);return!!r&&r===e},leapYear:function(t){return 0!==this.intercalaryMonth(t)},weekOfYear:function(t,e,r){var i,o=this._validateYear(t,n.local.invalidyear),s=h[o-h[0]],l=s>>9&4095,c=s>>5&15,u=31&s;(i=a.newDate(l,c,u)).add(4-(i.dayOfWeek()||7),\"d\");var f=this.toJD(t,e,r)-i.toJD();return 1+Math.floor(f/7)},monthsInYear:function(t){return this.leapYear(t)?13:12},daysInMonth:function(t,e){t.year&&(e=t.month(),t=t.year()),t=this._validateYear(t);var r=f[t-f[0]];if(e>(r>>13?12:11))throw n.local.invalidMonth.replace(/\\{0\\}/,this.local.name);return r&1<<12-e?30:29},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)<6},toJD:function(t,e,r){var i=this._validate(t,s,r,n.local.invalidDate);t=this._validateYear(i.year()),e=i.month(),r=i.day();var o=this.isIntercalaryMonth(t,e),s=this.toChineseMonth(t,e),l=function(t,e,r,n,i){var a,o,s;if(\"object\"==typeof t)o=t,a=e||{};else{var l=\"number\"==typeof t&&t>=1888&&t<=2111;if(!l)throw new Error(\"Lunar year outside range 1888-2111\");var c=\"number\"==typeof e&&e>=1&&e<=12;if(!c)throw new Error(\"Lunar month outside range 1 - 12\");var u,p=\"number\"==typeof r&&r>=1&&r<=30;if(!p)throw new Error(\"Lunar day outside range 1 - 30\");\"object\"==typeof n?(u=!1,a=n):(u=!!n,a=i||{}),o={year:t,month:e,day:r,isIntercalary:u}}s=o.day-1;var d,g=f[o.year-f[0]],v=g>>13;d=v?o.month>v?o.month:o.isIntercalary?o.month:o.month-1:o.month-1;for(var m=0;m<d;m++){var y=g&1<<12-m?30:29;s+=y}var x=h[o.year-h[0]],b=new Date(x>>9&4095,(x>>5&15)-1,(31&x)+s);return a.year=b.getFullYear(),a.month=1+b.getMonth(),a.day=b.getDate(),a}(t,s,r,o);return a.toJD(l.year,l.month,l.day)},fromJD:function(t){var e=a.fromJD(t),r=function(t,e,r,n){var i,a;if(\"object\"==typeof t)i=t,a=e||{};else{var o=\"number\"==typeof t&&t>=1888&&t<=2111;if(!o)throw new Error(\"Solar year outside range 1888-2111\");var s=\"number\"==typeof e&&e>=1&&e<=12;if(!s)throw new Error(\"Solar month outside range 1 - 12\");var l=\"number\"==typeof r&&r>=1&&r<=31;if(!l)throw new Error(\"Solar day outside range 1 - 31\");i={year:t,month:e,day:r},a=n||{}}var c=h[i.year-h[0]],u=i.year<<9|i.month<<5|i.day;a.year=u>=c?i.year:i.year-1,c=h[a.year-h[0]];var p,d=new Date(c>>9&4095,(c>>5&15)-1,31&c),g=new Date(i.year,i.month-1,i.day);p=Math.round((g-d)/864e5);var v,m=f[a.year-f[0]];for(v=0;v<13;v++){var y=m&1<<12-v?30:29;if(p<y)break;p-=y}var x=m>>13;!x||v<x?(a.isIntercalary=!1,a.month=1+v):v===x?(a.isIntercalary=!0,a.month=v):(a.isIntercalary=!1,a.month=v);return a.day=1+p,a}(e.year(),e.month(),e.day()),n=this.toMonthIndex(r.year,r.month,r.isIntercalary);return this.newDate(r.year,n,r.day)},fromString:function(t){var e=t.match(s),r=this._validateYear(+e[1]),n=+e[2],i=!!e[3],a=this.toMonthIndex(r,n,i),o=+e[4];return this.newDate(r,a,o)},add:function(t,e,r){var n=t.year(),i=t.month(),a=this.isIntercalaryMonth(n,i),s=this.toChineseMonth(n,i),l=Object.getPrototypeOf(o.prototype).add.call(this,t,e,r);if(\"y\"===r){var c=l.year(),u=l.month(),f=this.isIntercalaryMonth(c,s),h=a&&f?this.toMonthIndex(c,s,!0):this.toMonthIndex(c,s,!1);h!==u&&l.month(h)}return l}});var s=/^\\s*(-?\\d\\d\\d\\d|\\d\\d)[-\\/](\\d?\\d)([iI]?)[-\\/](\\d?\\d)/m,l=/^\\d?\\d[iI]?/m,c=/^\\u95f0?\\u5341?[\\u4e00\\u4e8c\\u4e09\\u56db\\u4e94\\u516d\\u4e03\\u516b\\u4e5d]?\\u6708/m,u=/^\\u95f0?\\u5341?[\\u4e00\\u4e8c\\u4e09\\u56db\\u4e94\\u516d\\u4e03\\u516b\\u4e5d]?/m;n.calendars.chinese=o;var f=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],h=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904]},{\"../main\":548,\"object-assign\":437}],535:[function(t,e,r){var n=t(\"../main\"),i=t(\"object-assign\");function a(t){this.local=this.regionalOptions[t||\"\"]||this.regionalOptions[\"\"]}a.prototype=new n.baseCalendar,i(a.prototype,{name:\"Coptic\",jdEpoch:1825029.5,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{\"\":{name:\"Coptic\",epochs:[\"BAM\",\"AM\"],monthNames:[\"Thout\",\"Paopi\",\"Hathor\",\"Koiak\",\"Tobi\",\"Meshir\",\"Paremhat\",\"Paremoude\",\"Pashons\",\"Paoni\",\"Epip\",\"Mesori\",\"Pi Kogi Enavot\"],monthNamesShort:[\"Tho\",\"Pao\",\"Hath\",\"Koi\",\"Tob\",\"Mesh\",\"Pat\",\"Pad\",\"Pash\",\"Pao\",\"Epi\",\"Meso\",\"PiK\"],dayNames:[\"Tkyriaka\",\"Pesnau\",\"Pshoment\",\"Peftoou\",\"Ptiou\",\"Psoou\",\"Psabbaton\"],dayNamesShort:[\"Tky\",\"Pes\",\"Psh\",\"Pef\",\"Pti\",\"Pso\",\"Psa\"],dayNamesMin:[\"Tk\",\"Pes\",\"Psh\",\"Pef\",\"Pt\",\"Pso\",\"Psa\"],digits:null,dateFormat:\"dd/mm/yyyy\",firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);return(t=e.year()+(e.year()<0?1:0))%4==3||t%4==-1},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear||n.regionalOptions[\"\"].invalidYear),13},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),\"d\"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(13===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)<6},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return(t=i.year())<0&&t++,i.day()+30*(i.month()-1)+365*(t-1)+Math.floor(t/4)+this.jdEpoch-1},fromJD:function(t){var e=Math.floor(t)+.5-this.jdEpoch,r=Math.floor((e-Math.floor((e+366)/1461))/365)+1;r<=0&&r--,e=Math.floor(t)+.5-this.newDate(r,1,1).toJD();var n=Math.floor(e/30)+1,i=e-30*(n-1)+1;return this.newDate(r,n,i)}}),n.calendars.coptic=a},{\"../main\":548,\"object-assign\":437}],536:[function(t,e,r){var n=t(\"../main\"),i=t(\"object-assign\");function a(t){this.local=this.regionalOptions[t||\"\"]||this.regionalOptions[\"\"]}a.prototype=new n.baseCalendar,i(a.prototype,{name:\"Discworld\",jdEpoch:1721425.5,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{\"\":{name:\"Discworld\",epochs:[\"BUC\",\"UC\"],monthNames:[\"Ick\",\"Offle\",\"February\",\"March\",\"April\",\"May\",\"June\",\"Grune\",\"August\",\"Spune\",\"Sektober\",\"Ember\",\"December\"],monthNamesShort:[\"Ick\",\"Off\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Gru\",\"Aug\",\"Spu\",\"Sek\",\"Emb\",\"Dec\"],dayNames:[\"Sunday\",\"Octeday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"],dayNamesShort:[\"Sun\",\"Oct\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],dayNamesMin:[\"Su\",\"Oc\",\"Mo\",\"Tu\",\"We\",\"Th\",\"Fr\",\"Sa\"],digits:null,dateFormat:\"yyyy/mm/dd\",firstDay:2,isRTL:!1}},leapYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),!1},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),13},daysInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),400},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),\"d\"),Math.floor((n.dayOfYear()-1)/8)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(t,e,r){return(this._validate(t,e,r,n.local.invalidDate).day()+1)%8},weekDay:function(t,e,r){var n=this.dayOfWeek(t,e,r);return n>=2&&n<=6},extraInfo:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return{century:o[Math.floor((i.year()-1)/100)+1]||\"\"}},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return t=i.year()+(i.year()<0?1:0),e=i.month(),(r=i.day())+(e>1?16:0)+(e>2?32*(e-2):0)+400*(t-1)+this.jdEpoch-1},fromJD:function(t){t=Math.floor(t+.5)-Math.floor(this.jdEpoch)-1;var e=Math.floor(t/400)+1;t-=400*(e-1),t+=t>15?16:0;var r=Math.floor(t/32)+1,n=t-32*(r-1)+1;return this.newDate(e<=0?e-1:e,r,n)}});var o={20:\"Fruitbat\",21:\"Anchovy\"};n.calendars.discworld=a},{\"../main\":548,\"object-assign\":437}],537:[function(t,e,r){var n=t(\"../main\"),i=t(\"object-assign\");function a(t){this.local=this.regionalOptions[t||\"\"]||this.regionalOptions[\"\"]}a.prototype=new n.baseCalendar,i(a.prototype,{name:\"Ethiopian\",jdEpoch:1724220.5,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{\"\":{name:\"Ethiopian\",epochs:[\"BEE\",\"EE\"],monthNames:[\"Meskerem\",\"Tikemet\",\"Hidar\",\"Tahesas\",\"Tir\",\"Yekatit\",\"Megabit\",\"Miazia\",\"Genbot\",\"Sene\",\"Hamle\",\"Nehase\",\"Pagume\"],monthNamesShort:[\"Mes\",\"Tik\",\"Hid\",\"Tah\",\"Tir\",\"Yek\",\"Meg\",\"Mia\",\"Gen\",\"Sen\",\"Ham\",\"Neh\",\"Pag\"],dayNames:[\"Ehud\",\"Segno\",\"Maksegno\",\"Irob\",\"Hamus\",\"Arb\",\"Kidame\"],dayNamesShort:[\"Ehu\",\"Seg\",\"Mak\",\"Iro\",\"Ham\",\"Arb\",\"Kid\"],dayNamesMin:[\"Eh\",\"Se\",\"Ma\",\"Ir\",\"Ha\",\"Ar\",\"Ki\"],digits:null,dateFormat:\"dd/mm/yyyy\",firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);return(t=e.year()+(e.year()<0?1:0))%4==3||t%4==-1},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear||n.regionalOptions[\"\"].invalidYear),13},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),\"d\"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(13===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)<6},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return(t=i.year())<0&&t++,i.day()+30*(i.month()-1)+365*(t-1)+Math.floor(t/4)+this.jdEpoch-1},fromJD:function(t){var e=Math.floor(t)+.5-this.jdEpoch,r=Math.floor((e-Math.floor((e+366)/1461))/365)+1;r<=0&&r--,e=Math.floor(t)+.5-this.newDate(r,1,1).toJD();var n=Math.floor(e/30)+1,i=e-30*(n-1)+1;return this.newDate(r,n,i)}}),n.calendars.ethiopian=a},{\"../main\":548,\"object-assign\":437}],538:[function(t,e,r){var n=t(\"../main\"),i=t(\"object-assign\");function a(t){this.local=this.regionalOptions[t||\"\"]||this.regionalOptions[\"\"]}function o(t,e){return t-e*Math.floor(t/e)}a.prototype=new n.baseCalendar,i(a.prototype,{name:\"Hebrew\",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{\"\":{name:\"Hebrew\",epochs:[\"BAM\",\"AM\"],monthNames:[\"Nisan\",\"Iyar\",\"Sivan\",\"Tammuz\",\"Av\",\"Elul\",\"Tishrei\",\"Cheshvan\",\"Kislev\",\"Tevet\",\"Shevat\",\"Adar\",\"Adar II\"],monthNamesShort:[\"Nis\",\"Iya\",\"Siv\",\"Tam\",\"Av\",\"Elu\",\"Tis\",\"Che\",\"Kis\",\"Tev\",\"She\",\"Ada\",\"Ad2\"],dayNames:[\"Yom Rishon\",\"Yom Sheni\",\"Yom Shlishi\",\"Yom Revi'i\",\"Yom Chamishi\",\"Yom Shishi\",\"Yom Shabbat\"],dayNamesShort:[\"Ris\",\"She\",\"Shl\",\"Rev\",\"Cha\",\"Shi\",\"Sha\"],dayNamesMin:[\"Ri\",\"She\",\"Shl\",\"Re\",\"Ch\",\"Shi\",\"Sha\"],digits:null,dateFormat:\"dd/mm/yyyy\",firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);return this._leapYear(e.year())},_leapYear:function(t){return o(7*(t=t<0?t+1:t)+1,19)<7},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),this._leapYear(t.year?t.year():t)?13:12},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),\"d\"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(t){return t=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear).year(),this.toJD(-1===t?1:t+1,7,1)-this.toJD(t,7,1)},daysInMonth:function(t,e){return t.year&&(e=t.month(),t=t.year()),this._validate(t,e,this.minDay,n.local.invalidMonth),12===e&&this.leapYear(t)?30:8===e&&5===o(this.daysInYear(t),10)?30:9===e&&3===o(this.daysInYear(t),10)?29:this.daysPerMonth[e-1]},weekDay:function(t,e,r){return 6!==this.dayOfWeek(t,e,r)},extraInfo:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return{yearType:(this.leapYear(i)?\"embolismic\":\"common\")+\" \"+[\"deficient\",\"regular\",\"complete\"][this.daysInYear(i)%10-3]}},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);t=i.year(),e=i.month(),r=i.day();var a=t<=0?t+1:t,o=this.jdEpoch+this._delay1(a)+this._delay2(a)+r+1;if(e<7){for(var s=7;s<=this.monthsInYear(t);s++)o+=this.daysInMonth(t,s);for(s=1;s<e;s++)o+=this.daysInMonth(t,s)}else for(s=7;s<e;s++)o+=this.daysInMonth(t,s);return o},_delay1:function(t){var e=Math.floor((235*t-234)/19),r=12084+13753*e,n=29*e+Math.floor(r/25920);return o(3*(n+1),7)<3&&n++,n},_delay2:function(t){var e=this._delay1(t-1),r=this._delay1(t);return this._delay1(t+1)-r==356?2:r-e==382?1:0},fromJD:function(t){t=Math.floor(t)+.5;for(var e=Math.floor(98496*(t-this.jdEpoch)/35975351)-1;t>=this.toJD(-1===e?1:e+1,7,1);)e++;for(var r=t<this.toJD(e,1,1)?7:1;t>this.toJD(e,r,this.daysInMonth(e,r));)r++;var n=t-this.toJD(e,r,1)+1;return this.newDate(e,r,n)}}),n.calendars.hebrew=a},{\"../main\":548,\"object-assign\":437}],539:[function(t,e,r){var n=t(\"../main\"),i=t(\"object-assign\");function a(t){this.local=this.regionalOptions[t||\"\"]||this.regionalOptions[\"\"]}a.prototype=new n.baseCalendar,i(a.prototype,{name:\"Islamic\",jdEpoch:1948439.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{\"\":{name:\"Islamic\",epochs:[\"BH\",\"AH\"],monthNames:[\"Muharram\",\"Safar\",\"Rabi' al-awwal\",\"Rabi' al-thani\",\"Jumada al-awwal\",\"Jumada al-thani\",\"Rajab\",\"Sha'aban\",\"Ramadan\",\"Shawwal\",\"Dhu al-Qi'dah\",\"Dhu al-Hijjah\"],monthNamesShort:[\"Muh\",\"Saf\",\"Rab1\",\"Rab2\",\"Jum1\",\"Jum2\",\"Raj\",\"Sha'\",\"Ram\",\"Shaw\",\"DhuQ\",\"DhuH\"],dayNames:[\"Yawm al-ahad\",\"Yawm al-ithnayn\",\"Yawm ath-thulaathaa'\",\"Yawm al-arbi'aa'\",\"Yawm al-kham\\u012bs\",\"Yawm al-jum'a\",\"Yawm as-sabt\"],dayNamesShort:[\"Aha\",\"Ith\",\"Thu\",\"Arb\",\"Kha\",\"Jum\",\"Sab\"],dayNamesMin:[\"Ah\",\"It\",\"Th\",\"Ar\",\"Kh\",\"Ju\",\"Sa\"],digits:null,dateFormat:\"yyyy/mm/dd\",firstDay:6,isRTL:!1}},leapYear:function(t){return(11*this._validate(t,this.minMonth,this.minDay,n.local.invalidYear).year()+14)%30<11},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),\"d\"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(t){return this.leapYear(t)?355:354},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(12===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return 5!==this.dayOfWeek(t,e,r)},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return t=i.year(),e=i.month(),t=t<=0?t+1:t,(r=i.day())+Math.ceil(29.5*(e-1))+354*(t-1)+Math.floor((3+11*t)/30)+this.jdEpoch-1},fromJD:function(t){t=Math.floor(t)+.5;var e=Math.floor((30*(t-this.jdEpoch)+10646)/10631);e=e<=0?e-1:e;var r=Math.min(12,Math.ceil((t-29-this.toJD(e,1,1))/29.5)+1),n=t-this.toJD(e,r,1)+1;return this.newDate(e,r,n)}}),n.calendars.islamic=a},{\"../main\":548,\"object-assign\":437}],540:[function(t,e,r){var n=t(\"../main\"),i=t(\"object-assign\");function a(t){this.local=this.regionalOptions[t||\"\"]||this.regionalOptions[\"\"]}a.prototype=new n.baseCalendar,i(a.prototype,{name:\"Julian\",jdEpoch:1721423.5,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{\"\":{name:\"Julian\",epochs:[\"BC\",\"AD\"],monthNames:[\"January\",\"February\",\"March\",\"April\",\"May\",\"June\",\"July\",\"August\",\"September\",\"October\",\"November\",\"December\"],monthNamesShort:[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\"],dayNames:[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"],dayNamesShort:[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],dayNamesMin:[\"Su\",\"Mo\",\"Tu\",\"We\",\"Th\",\"Fr\",\"Sa\"],digits:null,dateFormat:\"mm/dd/yyyy\",firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);return(t=e.year()<0?e.year()+1:e.year())%4==0},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(4-(n.dayOfWeek()||7),\"d\"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(2===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)<6},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return t=i.year(),e=i.month(),r=i.day(),t<0&&t++,e<=2&&(t--,e+=12),Math.floor(365.25*(t+4716))+Math.floor(30.6001*(e+1))+r-1524.5},fromJD:function(t){var e=Math.floor(t+.5)+1524,r=Math.floor((e-122.1)/365.25),n=Math.floor(365.25*r),i=Math.floor((e-n)/30.6001),a=i-Math.floor(i<14?1:13),o=r-Math.floor(a>2?4716:4715),s=e-n-Math.floor(30.6001*i);return o<=0&&o--,this.newDate(o,a,s)}}),n.calendars.julian=a},{\"../main\":548,\"object-assign\":437}],541:[function(t,e,r){var n=t(\"../main\"),i=t(\"object-assign\");function a(t){this.local=this.regionalOptions[t||\"\"]||this.regionalOptions[\"\"]}function o(t,e){return t-e*Math.floor(t/e)}function s(t,e){return o(t-1,e)+1}a.prototype=new n.baseCalendar,i(a.prototype,{name:\"Mayan\",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{\"\":{name:\"Mayan\",epochs:[\"\",\"\"],monthNames:[\"0\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\",\"13\",\"14\",\"15\",\"16\",\"17\"],monthNamesShort:[\"0\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\",\"13\",\"14\",\"15\",\"16\",\"17\"],dayNames:[\"0\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\",\"13\",\"14\",\"15\",\"16\",\"17\",\"18\",\"19\"],dayNamesShort:[\"0\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\",\"13\",\"14\",\"15\",\"16\",\"17\",\"18\",\"19\"],dayNamesMin:[\"0\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\",\"13\",\"14\",\"15\",\"16\",\"17\",\"18\",\"19\"],digits:null,dateFormat:\"YYYY.m.d\",firstDay:0,isRTL:!1,haabMonths:[\"Pop\",\"Uo\",\"Zip\",\"Zotz\",\"Tzec\",\"Xul\",\"Yaxkin\",\"Mol\",\"Chen\",\"Yax\",\"Zac\",\"Ceh\",\"Mac\",\"Kankin\",\"Muan\",\"Pax\",\"Kayab\",\"Cumku\",\"Uayeb\"],tzolkinMonths:[\"Imix\",\"Ik\",\"Akbal\",\"Kan\",\"Chicchan\",\"Cimi\",\"Manik\",\"Lamat\",\"Muluc\",\"Oc\",\"Chuen\",\"Eb\",\"Ben\",\"Ix\",\"Men\",\"Cib\",\"Caban\",\"Etznab\",\"Cauac\",\"Ahau\"]}},leapYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),!1},formatYear:function(t){t=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear).year();var e=Math.floor(t/400);return t%=400,t+=t<0?400:0,e+\".\"+Math.floor(t/20)+\".\"+t%20},forYear:function(t){if((t=t.split(\".\")).length<3)throw\"Invalid Mayan year\";for(var e=0,r=0;r<t.length;r++){var n=parseInt(t[r],10);if(Math.abs(n)>19||r>0&&n<0)throw\"Invalid Mayan year\";e=20*e+n}return e},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),18},weekOfYear:function(t,e,r){return this._validate(t,e,r,n.local.invalidDate),0},daysInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),360},daysInMonth:function(t,e){return this._validate(t,e,this.minDay,n.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(t,e,r){return this._validate(t,e,r,n.local.invalidDate).day()},weekDay:function(t,e,r){return this._validate(t,e,r,n.local.invalidDate),!0},extraInfo:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate).toJD(),a=this._toHaab(i),o=this._toTzolkin(i);return{haabMonthName:this.local.haabMonths[a[0]-1],haabMonth:a[0],haabDay:a[1],tzolkinDayName:this.local.tzolkinMonths[o[0]-1],tzolkinDay:o[0],tzolkinTrecena:o[1]}},_toHaab:function(t){var e=o((t-=this.jdEpoch)+8+340,365);return[Math.floor(e/20)+1,o(e,20)]},_toTzolkin:function(t){return[s((t-=this.jdEpoch)+20,20),s(t+4,13)]},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return i.day()+20*i.month()+360*i.year()+this.jdEpoch},fromJD:function(t){t=Math.floor(t)+.5-this.jdEpoch;var e=Math.floor(t/360);t%=360,t+=t<0?360:0;var r=Math.floor(t/20),n=t%20;return this.newDate(e,r,n)}}),n.calendars.mayan=a},{\"../main\":548,\"object-assign\":437}],542:[function(t,e,r){var n=t(\"../main\"),i=t(\"object-assign\");function a(t){this.local=this.regionalOptions[t||\"\"]||this.regionalOptions[\"\"]}a.prototype=new n.baseCalendar;var o=n.instance(\"gregorian\");i(a.prototype,{name:\"Nanakshahi\",jdEpoch:2257673.5,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{\"\":{name:\"Nanakshahi\",epochs:[\"BN\",\"AN\"],monthNames:[\"Chet\",\"Vaisakh\",\"Jeth\",\"Harh\",\"Sawan\",\"Bhadon\",\"Assu\",\"Katak\",\"Maghar\",\"Poh\",\"Magh\",\"Phagun\"],monthNamesShort:[\"Che\",\"Vai\",\"Jet\",\"Har\",\"Saw\",\"Bha\",\"Ass\",\"Kat\",\"Mgr\",\"Poh\",\"Mgh\",\"Pha\"],dayNames:[\"Somvaar\",\"Mangalvar\",\"Budhvaar\",\"Veervaar\",\"Shukarvaar\",\"Sanicharvaar\",\"Etvaar\"],dayNamesShort:[\"Som\",\"Mangal\",\"Budh\",\"Veer\",\"Shukar\",\"Sanichar\",\"Et\"],dayNamesMin:[\"So\",\"Ma\",\"Bu\",\"Ve\",\"Sh\",\"Sa\",\"Et\"],digits:null,dateFormat:\"dd-mm-yyyy\",firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear||n.regionalOptions[\"\"].invalidYear);return o.leapYear(e.year()+(e.year()<1?1:0)+1469)},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(1-(n.dayOfWeek()||7),\"d\"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(12===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)<6},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidMonth);(t=i.year())<0&&t++;for(var a=i.day(),s=1;s<i.month();s++)a+=this.daysPerMonth[s-1];return a+o.toJD(t+1468,3,13)},fromJD:function(t){t=Math.floor(t+.5);for(var e=Math.floor((t-(this.jdEpoch-1))/366);t>=this.toJD(e+1,1,1);)e++;for(var r=t-Math.floor(this.toJD(e,1,1)+.5)+1,n=1;r>this.daysInMonth(e,n);)r-=this.daysInMonth(e,n),n++;return this.newDate(e,n,r)}}),n.calendars.nanakshahi=a},{\"../main\":548,\"object-assign\":437}],543:[function(t,e,r){var n=t(\"../main\"),i=t(\"object-assign\");function a(t){this.local=this.regionalOptions[t||\"\"]||this.regionalOptions[\"\"]}a.prototype=new n.baseCalendar,i(a.prototype,{name:\"Nepali\",jdEpoch:1700709.5,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{\"\":{name:\"Nepali\",epochs:[\"BBS\",\"ABS\"],monthNames:[\"Baisakh\",\"Jestha\",\"Ashadh\",\"Shrawan\",\"Bhadra\",\"Ashwin\",\"Kartik\",\"Mangsir\",\"Paush\",\"Mangh\",\"Falgun\",\"Chaitra\"],monthNamesShort:[\"Bai\",\"Je\",\"As\",\"Shra\",\"Bha\",\"Ash\",\"Kar\",\"Mang\",\"Pau\",\"Ma\",\"Fal\",\"Chai\"],dayNames:[\"Aaitabaar\",\"Sombaar\",\"Manglbaar\",\"Budhabaar\",\"Bihibaar\",\"Shukrabaar\",\"Shanibaar\"],dayNamesShort:[\"Aaita\",\"Som\",\"Mangl\",\"Budha\",\"Bihi\",\"Shukra\",\"Shani\"],dayNamesMin:[\"Aai\",\"So\",\"Man\",\"Bu\",\"Bi\",\"Shu\",\"Sha\"],digits:null,dateFormat:\"dd/mm/yyyy\",firstDay:1,isRTL:!1}},leapYear:function(t){return this.daysInYear(t)!==this.daysPerYear},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),\"d\"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(t){if(t=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear).year(),\"undefined\"==typeof this.NEPALI_CALENDAR_DATA[t])return this.daysPerYear;for(var e=0,r=this.minMonth;r<=12;r++)e+=this.NEPALI_CALENDAR_DATA[t][r];return e},daysInMonth:function(t,e){return t.year&&(e=t.month(),t=t.year()),this._validate(t,e,this.minDay,n.local.invalidMonth),\"undefined\"==typeof this.NEPALI_CALENDAR_DATA[t]?this.daysPerMonth[e-1]:this.NEPALI_CALENDAR_DATA[t][e]},weekDay:function(t,e,r){return 6!==this.dayOfWeek(t,e,r)},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);t=i.year(),e=i.month(),r=i.day();var a=n.instance(),o=0,s=e,l=t;this._createMissingCalendarData(t);var c=t-(s>9||9===s&&r>=this.NEPALI_CALENDAR_DATA[l][0]?56:57);for(9!==e&&(o=r,s--);9!==s;)s<=0&&(s=12,l--),o+=this.NEPALI_CALENDAR_DATA[l][s],s--;return 9===e?(o+=r-this.NEPALI_CALENDAR_DATA[l][0])<0&&(o+=a.daysInYear(c)):o+=this.NEPALI_CALENDAR_DATA[l][9]-this.NEPALI_CALENDAR_DATA[l][0],a.newDate(c,1,1).add(o,\"d\").toJD()},fromJD:function(t){var e=n.instance().fromJD(t),r=e.year(),i=e.dayOfYear(),a=r+56;this._createMissingCalendarData(a);for(var o=9,s=this.NEPALI_CALENDAR_DATA[a][0],l=this.NEPALI_CALENDAR_DATA[a][o]-s+1;i>l;)++o>12&&(o=1,a++),l+=this.NEPALI_CALENDAR_DATA[a][o];var c=this.NEPALI_CALENDAR_DATA[a][o]-(l-i);return this.newDate(a,o,c)},_createMissingCalendarData:function(t){var e=this.daysPerMonth.slice(0);e.unshift(17);for(var r=t-1;r<t+2;r++)\"undefined\"==typeof this.NEPALI_CALENDAR_DATA[r]&&(this.NEPALI_CALENDAR_DATA[r]=e)},NEPALI_CALENDAR_DATA:{1970:[18,31,31,32,31,31,31,30,29,30,29,30,30],1971:[18,31,31,32,31,32,30,30,29,30,29,30,30],1972:[17,31,32,31,32,31,30,30,30,29,29,30,30],1973:[19,30,32,31,32,31,30,30,30,29,30,29,31],1974:[19,31,31,32,30,31,31,30,29,30,29,30,30],1975:[18,31,31,32,32,30,31,30,29,30,29,30,30],1976:[17,31,32,31,32,31,30,30,30,29,29,30,31],1977:[18,31,32,31,32,31,31,29,30,29,30,29,31],1978:[18,31,31,32,31,31,31,30,29,30,29,30,30],1979:[18,31,31,32,32,31,30,30,29,30,29,30,30],1980:[17,31,32,31,32,31,30,30,30,29,29,30,31],1981:[18,31,31,31,32,31,31,29,30,30,29,30,30],1982:[18,31,31,32,31,31,31,30,29,30,29,30,30],1983:[18,31,31,32,32,31,30,30,29,30,29,30,30],1984:[17,31,32,31,32,31,30,30,30,29,29,30,31],1985:[18,31,31,31,32,31,31,29,30,30,29,30,30],1986:[18,31,31,32,31,31,31,30,29,30,29,30,30],1987:[18,31,32,31,32,31,30,30,29,30,29,30,30],1988:[17,31,32,31,32,31,30,30,30,29,29,30,31],1989:[18,31,31,31,32,31,31,30,29,30,29,30,30],1990:[18,31,31,32,31,31,31,30,29,30,29,30,30],1991:[18,31,32,31,32,31,30,30,29,30,29,30,30],1992:[17,31,32,31,32,31,30,30,30,29,30,29,31],1993:[18,31,31,31,32,31,31,30,29,30,29,30,30],1994:[18,31,31,32,31,31,31,30,29,30,29,30,30],1995:[17,31,32,31,32,31,30,30,30,29,29,30,30],1996:[17,31,32,31,32,31,30,30,30,29,30,29,31],1997:[18,31,31,32,31,31,31,30,29,30,29,30,30],1998:[18,31,31,32,31,31,31,30,29,30,29,30,30],1999:[17,31,32,31,32,31,30,30,30,29,29,30,31],2000:[17,30,32,31,32,31,30,30,30,29,30,29,31],2001:[18,31,31,32,31,31,31,30,29,30,29,30,30],2002:[18,31,31,32,32,31,30,30,29,30,29,30,30],2003:[17,31,32,31,32,31,30,30,30,29,29,30,31],2004:[17,30,32,31,32,31,30,30,30,29,30,29,31],2005:[18,31,31,32,31,31,31,30,29,30,29,30,30],2006:[18,31,31,32,32,31,30,30,29,30,29,30,30],2007:[17,31,32,31,32,31,30,30,30,29,29,30,31],2008:[17,31,31,31,32,31,31,29,30,30,29,29,31],2009:[18,31,31,32,31,31,31,30,29,30,29,30,30],2010:[18,31,31,32,32,31,30,30,29,30,29,30,30],2011:[17,31,32,31,32,31,30,30,30,29,29,30,31],2012:[17,31,31,31,32,31,31,29,30,30,29,30,30],2013:[18,31,31,32,31,31,31,30,29,30,29,30,30],2014:[18,31,31,32,32,31,30,30,29,30,29,30,30],2015:[17,31,32,31,32,31,30,30,30,29,29,30,31],2016:[17,31,31,31,32,31,31,29,30,30,29,30,30],2017:[18,31,31,32,31,31,31,30,29,30,29,30,30],2018:[18,31,32,31,32,31,30,30,29,30,29,30,30],2019:[17,31,32,31,32,31,30,30,30,29,30,29,31],2020:[17,31,31,31,32,31,31,30,29,30,29,30,30],2021:[18,31,31,32,31,31,31,30,29,30,29,30,30],2022:[17,31,32,31,32,31,30,30,30,29,29,30,30],2023:[17,31,32,31,32,31,30,30,30,29,30,29,31],2024:[17,31,31,31,32,31,31,30,29,30,29,30,30],2025:[18,31,31,32,31,31,31,30,29,30,29,30,30],2026:[17,31,32,31,32,31,30,30,30,29,29,30,31],2027:[17,30,32,31,32,31,30,30,30,29,30,29,31],2028:[17,31,31,32,31,31,31,30,29,30,29,30,30],2029:[18,31,31,32,31,32,30,30,29,30,29,30,30],2030:[17,31,32,31,32,31,30,30,30,30,30,30,31],2031:[17,31,32,31,32,31,31,31,31,31,31,31,31],2032:[17,32,32,32,32,32,32,32,32,32,32,32,32],2033:[18,31,31,32,32,31,30,30,29,30,29,30,30],2034:[17,31,32,31,32,31,30,30,30,29,29,30,31],2035:[17,30,32,31,32,31,31,29,30,30,29,29,31],2036:[17,31,31,32,31,31,31,30,29,30,29,30,30],2037:[18,31,31,32,32,31,30,30,29,30,29,30,30],2038:[17,31,32,31,32,31,30,30,30,29,29,30,31],2039:[17,31,31,31,32,31,31,29,30,30,29,30,30],2040:[17,31,31,32,31,31,31,30,29,30,29,30,30],2041:[18,31,31,32,32,31,30,30,29,30,29,30,30],2042:[17,31,32,31,32,31,30,30,30,29,29,30,31],2043:[17,31,31,31,32,31,31,29,30,30,29,30,30],2044:[17,31,31,32,31,31,31,30,29,30,29,30,30],2045:[18,31,32,31,32,31,30,30,29,30,29,30,30],2046:[17,31,32,31,32,31,30,30,30,29,29,30,31],2047:[17,31,31,31,32,31,31,30,29,30,29,30,30],2048:[17,31,31,32,31,31,31,30,29,30,29,30,30],2049:[17,31,32,31,32,31,30,30,30,29,29,30,30],2050:[17,31,32,31,32,31,30,30,30,29,30,29,31],2051:[17,31,31,31,32,31,31,30,29,30,29,30,30],2052:[17,31,31,32,31,31,31,30,29,30,29,30,30],2053:[17,31,32,31,32,31,30,30,30,29,29,30,30],2054:[17,31,32,31,32,31,30,30,30,29,30,29,31],2055:[17,31,31,32,31,31,31,30,29,30,30,29,30],2056:[17,31,31,32,31,32,30,30,29,30,29,30,30],2057:[17,31,32,31,32,31,30,30,30,29,29,30,31],2058:[17,30,32,31,32,31,30,30,30,29,30,29,31],2059:[17,31,31,32,31,31,31,30,29,30,29,30,30],2060:[17,31,31,32,32,31,30,30,29,30,29,30,30],2061:[17,31,32,31,32,31,30,30,30,29,29,30,31],2062:[17,30,32,31,32,31,31,29,30,29,30,29,31],2063:[17,31,31,32,31,31,31,30,29,30,29,30,30],2064:[17,31,31,32,32,31,30,30,29,30,29,30,30],2065:[17,31,32,31,32,31,30,30,30,29,29,30,31],2066:[17,31,31,31,32,31,31,29,30,30,29,29,31],2067:[17,31,31,32,31,31,31,30,29,30,29,30,30],2068:[17,31,31,32,32,31,30,30,29,30,29,30,30],2069:[17,31,32,31,32,31,30,30,30,29,29,30,31],2070:[17,31,31,31,32,31,31,29,30,30,29,30,30],2071:[17,31,31,32,31,31,31,30,29,30,29,30,30],2072:[17,31,32,31,32,31,30,30,29,30,29,30,30],2073:[17,31,32,31,32,31,30,30,30,29,29,30,31],2074:[17,31,31,31,32,31,31,30,29,30,29,30,30],2075:[17,31,31,32,31,31,31,30,29,30,29,30,30],2076:[16,31,32,31,32,31,30,30,30,29,29,30,30],2077:[17,31,32,31,32,31,30,30,30,29,30,29,31],2078:[17,31,31,31,32,31,31,30,29,30,29,30,30],2079:[17,31,31,32,31,31,31,30,29,30,29,30,30],2080:[16,31,32,31,32,31,30,30,30,29,29,30,30],2081:[17,31,31,32,32,31,30,30,30,29,30,30,30],2082:[17,31,32,31,32,31,30,30,30,29,30,30,30],2083:[17,31,31,32,31,31,30,30,30,29,30,30,30],2084:[17,31,31,32,31,31,30,30,30,29,30,30,30],2085:[17,31,32,31,32,31,31,30,30,29,30,30,30],2086:[17,31,32,31,32,31,30,30,30,29,30,30,30],2087:[16,31,31,32,31,31,31,30,30,29,30,30,30],2088:[16,30,31,32,32,30,31,30,30,29,30,30,30],2089:[17,31,32,31,32,31,30,30,30,29,30,30,30],2090:[17,31,32,31,32,31,30,30,30,29,30,30,30],2091:[16,31,31,32,31,31,31,30,30,29,30,30,30],2092:[16,31,31,32,32,31,30,30,30,29,30,30,30],2093:[17,31,32,31,32,31,30,30,30,29,30,30,30],2094:[17,31,31,32,31,31,30,30,30,29,30,30,30],2095:[17,31,31,32,31,31,31,30,29,30,30,30,30],2096:[17,30,31,32,32,31,30,30,29,30,29,30,30],2097:[17,31,32,31,32,31,30,30,30,29,30,30,30],2098:[17,31,31,32,31,31,31,29,30,29,30,30,31],2099:[17,31,31,32,31,31,31,30,29,29,30,30,30],2100:[17,31,32,31,32,30,31,30,29,30,29,30,30]}}),n.calendars.nepali=a},{\"../main\":548,\"object-assign\":437}],544:[function(t,e,r){var n=t(\"../main\"),i=t(\"object-assign\");function a(t){this.local=this.regionalOptions[t||\"\"]||this.regionalOptions[\"\"]}function o(t,e){return t-e*Math.floor(t/e)}a.prototype=new n.baseCalendar,i(a.prototype,{name:\"Persian\",jdEpoch:1948320.5,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{\"\":{name:\"Persian\",epochs:[\"BP\",\"AP\"],monthNames:[\"Farvardin\",\"Ordibehesht\",\"Khordad\",\"Tir\",\"Mordad\",\"Shahrivar\",\"Mehr\",\"Aban\",\"Azar\",\"Day\",\"Bahman\",\"Esfand\"],monthNamesShort:[\"Far\",\"Ord\",\"Kho\",\"Tir\",\"Mor\",\"Sha\",\"Meh\",\"Aba\",\"Aza\",\"Day\",\"Bah\",\"Esf\"],dayNames:[\"Yekshambe\",\"Doshambe\",\"Seshambe\",\"Ch\\xe6harshambe\",\"Panjshambe\",\"Jom'e\",\"Shambe\"],dayNamesShort:[\"Yek\",\"Do\",\"Se\",\"Ch\\xe6\",\"Panj\",\"Jom\",\"Sha\"],dayNamesMin:[\"Ye\",\"Do\",\"Se\",\"Ch\",\"Pa\",\"Jo\",\"Sh\"],digits:null,dateFormat:\"yyyy/mm/dd\",firstDay:6,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);return 682*((e.year()-(e.year()>0?474:473))%2820+474+38)%2816<682},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-(n.dayOfWeek()+1)%7,\"d\"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(12===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return 5!==this.dayOfWeek(t,e,r)},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);t=i.year(),e=i.month(),r=i.day();var a=t-(t>=0?474:473),s=474+o(a,2820);return r+(e<=7?31*(e-1):30*(e-1)+6)+Math.floor((682*s-110)/2816)+365*(s-1)+1029983*Math.floor(a/2820)+this.jdEpoch-1},fromJD:function(t){var e=(t=Math.floor(t)+.5)-this.toJD(475,1,1),r=Math.floor(e/1029983),n=o(e,1029983),i=2820;if(1029982!==n){var a=Math.floor(n/366),s=o(n,366);i=Math.floor((2134*a+2816*s+2815)/1028522)+a+1}var l=i+2820*r+474;l=l<=0?l-1:l;var c=t-this.toJD(l,1,1)+1,u=c<=186?Math.ceil(c/31):Math.ceil((c-6)/30),f=t-this.toJD(l,u,1)+1;return this.newDate(l,u,f)}}),n.calendars.persian=a,n.calendars.jalali=a},{\"../main\":548,\"object-assign\":437}],545:[function(t,e,r){var n=t(\"../main\"),i=t(\"object-assign\"),a=n.instance();function o(t){this.local=this.regionalOptions[t||\"\"]||this.regionalOptions[\"\"]}o.prototype=new n.baseCalendar,i(o.prototype,{name:\"Taiwan\",jdEpoch:2419402.5,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{\"\":{name:\"Taiwan\",epochs:[\"BROC\",\"ROC\"],monthNames:[\"January\",\"February\",\"March\",\"April\",\"May\",\"June\",\"July\",\"August\",\"September\",\"October\",\"November\",\"December\"],monthNamesShort:[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\"],dayNames:[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"],dayNamesShort:[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],dayNamesMin:[\"Su\",\"Mo\",\"Tu\",\"We\",\"Th\",\"Fr\",\"Sa\"],digits:null,dateFormat:\"yyyy/mm/dd\",firstDay:1,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);t=this._t2gYear(e.year());return a.leapYear(t)},weekOfYear:function(t,e,r){var i=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);t=this._t2gYear(i.year());return a.weekOfYear(t,i.month(),i.day())},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(2===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)<6},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);t=this._t2gYear(i.year());return a.toJD(t,i.month(),i.day())},fromJD:function(t){var e=a.fromJD(t),r=this._g2tYear(e.year());return this.newDate(r,e.month(),e.day())},_t2gYear:function(t){return t+this.yearsOffset+(t>=-this.yearsOffset&&t<=-1?1:0)},_g2tYear:function(t){return t-this.yearsOffset-(t>=1&&t<=this.yearsOffset?1:0)}}),n.calendars.taiwan=o},{\"../main\":548,\"object-assign\":437}],546:[function(t,e,r){var n=t(\"../main\"),i=t(\"object-assign\"),a=n.instance();function o(t){this.local=this.regionalOptions[t||\"\"]||this.regionalOptions[\"\"]}o.prototype=new n.baseCalendar,i(o.prototype,{name:\"Thai\",jdEpoch:1523098.5,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{\"\":{name:\"Thai\",epochs:[\"BBE\",\"BE\"],monthNames:[\"January\",\"February\",\"March\",\"April\",\"May\",\"June\",\"July\",\"August\",\"September\",\"October\",\"November\",\"December\"],monthNamesShort:[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\"],dayNames:[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"],dayNamesShort:[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],dayNamesMin:[\"Su\",\"Mo\",\"Tu\",\"We\",\"Th\",\"Fr\",\"Sa\"],digits:null,dateFormat:\"dd/mm/yyyy\",firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);t=this._t2gYear(e.year());return a.leapYear(t)},weekOfYear:function(t,e,r){var i=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);t=this._t2gYear(i.year());return a.weekOfYear(t,i.month(),i.day())},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(2===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)<6},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);t=this._t2gYear(i.year());return a.toJD(t,i.month(),i.day())},fromJD:function(t){var e=a.fromJD(t),r=this._g2tYear(e.year());return this.newDate(r,e.month(),e.day())},_t2gYear:function(t){return t-this.yearsOffset-(t>=1&&t<=this.yearsOffset?1:0)},_g2tYear:function(t){return t+this.yearsOffset+(t>=-this.yearsOffset&&t<=-1?1:0)}}),n.calendars.thai=o},{\"../main\":548,\"object-assign\":437}],547:[function(t,e,r){var n=t(\"../main\"),i=t(\"object-assign\");function a(t){this.local=this.regionalOptions[t||\"\"]||this.regionalOptions[\"\"]}a.prototype=new n.baseCalendar,i(a.prototype,{name:\"UmmAlQura\",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{\"\":{name:\"Umm al-Qura\",epochs:[\"BH\",\"AH\"],monthNames:[\"Al-Muharram\",\"Safar\",\"Rabi' al-awwal\",\"Rabi' Al-Thani\",\"Jumada Al-Awwal\",\"Jumada Al-Thani\",\"Rajab\",\"Sha'aban\",\"Ramadan\",\"Shawwal\",\"Dhu al-Qi'dah\",\"Dhu al-Hijjah\"],monthNamesShort:[\"Muh\",\"Saf\",\"Rab1\",\"Rab2\",\"Jum1\",\"Jum2\",\"Raj\",\"Sha'\",\"Ram\",\"Shaw\",\"DhuQ\",\"DhuH\"],dayNames:[\"Yawm al-Ahad\",\"Yawm al-Ithnain\",\"Yawm al-Thal\\u0101th\\u0101\\u2019\",\"Yawm al-Arba\\u2018\\u0101\\u2019\",\"Yawm al-Kham\\u012bs\",\"Yawm al-Jum\\u2018a\",\"Yawm al-Sabt\"],dayNamesMin:[\"Ah\",\"Ith\",\"Th\",\"Ar\",\"Kh\",\"Ju\",\"Sa\"],digits:null,dateFormat:\"yyyy/mm/dd\",firstDay:6,isRTL:!0}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);return 355===this.daysInYear(e.year())},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),\"d\"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(t){for(var e=0,r=1;r<=12;r++)e+=this.daysInMonth(t,r);return e},daysInMonth:function(t,e){for(var r=this._validate(t,e,this.minDay,n.local.invalidMonth).toJD()-24e5+.5,i=0,a=0;a<o.length;a++){if(o[a]>r)return o[i]-o[i-1];i++}return 30},weekDay:function(t,e,r){return 5!==this.dayOfWeek(t,e,r)},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate),a=12*(i.year()-1)+i.month()-15292;return i.day()+o[a-1]-1+24e5-.5},fromJD:function(t){for(var e=t-24e5+.5,r=0,n=0;n<o.length&&!(o[n]>e);n++)r++;var i=r+15292,a=Math.floor((i-1)/12),s=a+1,l=i-12*a,c=e-o[r-1]+1;return this.newDate(s,l,c)},isValid:function(t,e,r){var i=n.baseCalendar.prototype.isValid.apply(this,arguments);return i&&(i=(t=null!=t.year?t.year:t)>=1276&&t<=1500),i},_validate:function(t,e,r,i){var a=n.baseCalendar.prototype._validate.apply(this,arguments);if(a.year<1276||a.year>1500)throw i.replace(/\\{0\\}/,this.local.name);return a}}),n.calendars.ummalqura=a;var o=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]},{\"../main\":548,\"object-assign\":437}],548:[function(t,e,r){var n=t(\"object-assign\");function i(){this.regionalOptions=[],this.regionalOptions[\"\"]={invalidCalendar:\"Calendar {0} not found\",invalidDate:\"Invalid {0} date\",invalidMonth:\"Invalid {0} month\",invalidYear:\"Invalid {0} year\",differentCalendars:\"Cannot mix {0} and {1} dates\"},this.local=this.regionalOptions[\"\"],this.calendars={},this._localCals={}}function a(t,e,r,n){if(this._calendar=t,this._year=e,this._month=r,this._day=n,0===this._calendar._validateLevel&&!this._calendar.isValid(this._year,this._month,this._day))throw(c.local.invalidDate||c.regionalOptions[\"\"].invalidDate).replace(/\\{0\\}/,this._calendar.local.name)}function o(t,e){return\"000000\".substring(0,e-(t=\"\"+t).length)+t}function s(){this.shortYearCutoff=\"+10\"}function l(t){this.local=this.regionalOptions[t]||this.regionalOptions[\"\"]}n(i.prototype,{instance:function(t,e){t=(t||\"gregorian\").toLowerCase(),e=e||\"\";var r=this._localCals[t+\"-\"+e];if(!r&&this.calendars[t]&&(r=new this.calendars[t](e),this._localCals[t+\"-\"+e]=r),!r)throw(this.local.invalidCalendar||this.regionalOptions[\"\"].invalidCalendar).replace(/\\{0\\}/,t);return r},newDate:function(t,e,r,n,i){return(n=(null!=t&&t.year?t.calendar():\"string\"==typeof n?this.instance(n,i):n)||this.instance()).newDate(t,e,r)},substituteDigits:function(t){return function(e){return(e+\"\").replace(/[0-9]/g,function(e){return t[e]})}},substituteChineseDigits:function(t,e){return function(r){for(var n=\"\",i=0;r>0;){var a=r%10;n=(0===a?\"\":t[a]+e[i])+n,i++,r=Math.floor(r/10)}return 0===n.indexOf(t[1]+e[1])&&(n=n.substr(1)),n||t[0]}}}),n(a.prototype,{newDate:function(t,e,r){return this._calendar.newDate(null==t?this:t,e,r)},year:function(t){return 0===arguments.length?this._year:this.set(t,\"y\")},month:function(t){return 0===arguments.length?this._month:this.set(t,\"m\")},day:function(t){return 0===arguments.length?this._day:this.set(t,\"d\")},date:function(t,e,r){if(!this._calendar.isValid(t,e,r))throw(c.local.invalidDate||c.regionalOptions[\"\"].invalidDate).replace(/\\{0\\}/,this._calendar.local.name);return this._year=t,this._month=e,this._day=r,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(t,e){return this._calendar.add(this,t,e)},set:function(t,e){return this._calendar.set(this,t,e)},compareTo:function(t){if(this._calendar.name!==t._calendar.name)throw(c.local.differentCalendars||c.regionalOptions[\"\"].differentCalendars).replace(/\\{0\\}/,this._calendar.local.name).replace(/\\{1\\}/,t._calendar.local.name);var e=this._year!==t._year?this._year-t._year:this._month!==t._month?this.monthOfYear()-t.monthOfYear():this._day-t._day;return 0===e?0:e<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(t){return this._calendar.fromJD(t)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(t){return this._calendar.fromJSDate(t)},toString:function(){return(this.year()<0?\"-\":\"\")+o(Math.abs(this.year()),4)+\"-\"+o(this.month(),2)+\"-\"+o(this.day(),2)}}),n(s.prototype,{_validateLevel:0,newDate:function(t,e,r){return null==t?this.today():(t.year&&(this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[\"\"].invalidDate),r=t.day(),e=t.month(),t=t.year()),new a(this,t,e,r))},today:function(){return this.fromJSDate(new Date)},epoch:function(t){return this._validate(t,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[\"\"].invalidYear).year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[\"\"].invalidYear);return(e.year()<0?\"-\":\"\")+o(Math.abs(e.year()),4)},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[\"\"].invalidYear),12},monthOfYear:function(t,e){var r=this._validate(t,e,this.minDay,c.local.invalidMonth||c.regionalOptions[\"\"].invalidMonth);return(r.month()+this.monthsInYear(r)-this.firstMonth)%this.monthsInYear(r)+this.minMonth},fromMonthOfYear:function(t,e){var r=(e+this.firstMonth-2*this.minMonth)%this.monthsInYear(t)+this.minMonth;return this._validate(t,r,this.minDay,c.local.invalidMonth||c.regionalOptions[\"\"].invalidMonth),r},daysInYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[\"\"].invalidYear);return this.leapYear(e)?366:365},dayOfYear:function(t,e,r){var n=this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[\"\"].invalidDate);return n.toJD()-this.newDate(n.year(),this.fromMonthOfYear(n.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(t,e,r){var n=this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[\"\"].invalidDate);return(Math.floor(this.toJD(n))+2)%this.daysInWeek()},extraInfo:function(t,e,r){return this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[\"\"].invalidDate),{}},add:function(t,e,r){return this._validate(t,this.minMonth,this.minDay,c.local.invalidDate||c.regionalOptions[\"\"].invalidDate),this._correctAdd(t,this._add(t,e,r),e,r)},_add:function(t,e,r){if(this._validateLevel++,\"d\"===r||\"w\"===r){var n=t.toJD()+e*(\"w\"===r?this.daysInWeek():1),i=t.calendar().fromJD(n);return this._validateLevel--,[i.year(),i.month(),i.day()]}try{var a=t.year()+(\"y\"===r?e:0),o=t.monthOfYear()+(\"m\"===r?e:0);i=t.day();\"y\"===r?(t.month()!==this.fromMonthOfYear(a,o)&&(o=this.newDate(a,t.month(),this.minDay).monthOfYear()),o=Math.min(o,this.monthsInYear(a)),i=Math.min(i,this.daysInMonth(a,this.fromMonthOfYear(a,o)))):\"m\"===r&&(!function(t){for(;o<t.minMonth;)a--,o+=t.monthsInYear(a);for(var e=t.monthsInYear(a);o>e-1+t.minMonth;)a++,o-=e,e=t.monthsInYear(a)}(this),i=Math.min(i,this.daysInMonth(a,this.fromMonthOfYear(a,o))));var s=[a,this.fromMonthOfYear(a,o),i];return this._validateLevel--,s}catch(t){throw this._validateLevel--,t}},_correctAdd:function(t,e,r,n){if(!(this.hasYearZero||\"y\"!==n&&\"m\"!==n||0!==e[0]&&t.year()>0==e[0]>0)){var i={y:[1,1,\"y\"],m:[1,this.monthsInYear(-1),\"m\"],w:[this.daysInWeek(),this.daysInYear(-1),\"d\"],d:[1,this.daysInYear(-1),\"d\"]}[n],a=r<0?-1:1;e=this._add(t,r*i[0]+a*i[1],i[2])}return t.date(e[0],e[1],e[2])},set:function(t,e,r){this._validate(t,this.minMonth,this.minDay,c.local.invalidDate||c.regionalOptions[\"\"].invalidDate);var n=\"y\"===r?e:t.year(),i=\"m\"===r?e:t.month(),a=\"d\"===r?e:t.day();return\"y\"!==r&&\"m\"!==r||(a=Math.min(a,this.daysInMonth(n,i))),t.date(n,i,a)},isValid:function(t,e,r){this._validateLevel++;var n=this.hasYearZero||0!==t;if(n){var i=this.newDate(t,e,this.minDay);n=e>=this.minMonth&&e-this.minMonth<this.monthsInYear(i)&&r>=this.minDay&&r-this.minDay<this.daysInMonth(i)}return this._validateLevel--,n},toJSDate:function(t,e,r){var n=this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[\"\"].invalidDate);return c.instance().fromJD(this.toJD(n)).toJSDate()},fromJSDate:function(t){return this.fromJD(c.instance().fromJSDate(t).toJD())},_validate:function(t,e,r,n){if(t.year){if(0===this._validateLevel&&this.name!==t.calendar().name)throw(c.local.differentCalendars||c.regionalOptions[\"\"].differentCalendars).replace(/\\{0\\}/,this.local.name).replace(/\\{1\\}/,t.calendar().local.name);return t}try{if(this._validateLevel++,1===this._validateLevel&&!this.isValid(t,e,r))throw n.replace(/\\{0\\}/,this.local.name);var i=this.newDate(t,e,r);return this._validateLevel--,i}catch(t){throw this._validateLevel--,t}}}),l.prototype=new s,n(l.prototype,{name:\"Gregorian\",jdEpoch:1721425.5,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{\"\":{name:\"Gregorian\",epochs:[\"BCE\",\"CE\"],monthNames:[\"January\",\"February\",\"March\",\"April\",\"May\",\"June\",\"July\",\"August\",\"September\",\"October\",\"November\",\"December\"],monthNamesShort:[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\"],dayNames:[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"],dayNamesShort:[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],dayNamesMin:[\"Su\",\"Mo\",\"Tu\",\"We\",\"Th\",\"Fr\",\"Sa\"],digits:null,dateFormat:\"mm/dd/yyyy\",firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[\"\"].invalidYear);return(t=e.year()+(e.year()<0?1:0))%4==0&&(t%100!=0||t%400==0)},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(4-(n.dayOfWeek()||7),\"d\"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,c.local.invalidMonth||c.regionalOptions[\"\"].invalidMonth);return this.daysPerMonth[r.month()-1]+(2===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)<6},toJD:function(t,e,r){var n=this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[\"\"].invalidDate);t=n.year(),e=n.month(),r=n.day(),t<0&&t++,e<3&&(e+=12,t--);var i=Math.floor(t/100),a=2-i+Math.floor(i/4);return Math.floor(365.25*(t+4716))+Math.floor(30.6001*(e+1))+r+a-1524.5},fromJD:function(t){var e=Math.floor(t+.5),r=Math.floor((e-1867216.25)/36524.25),n=(r=e+1+r-Math.floor(r/4))+1524,i=Math.floor((n-122.1)/365.25),a=Math.floor(365.25*i),o=Math.floor((n-a)/30.6001),s=n-a-Math.floor(30.6001*o),l=o-(o>13.5?13:1),c=i-(l>2.5?4716:4715);return c<=0&&c--,this.newDate(c,l,s)},toJSDate:function(t,e,r){var n=this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[\"\"].invalidDate),i=new Date(n.year(),n.month()-1,n.day());return i.setHours(0),i.setMinutes(0),i.setSeconds(0),i.setMilliseconds(0),i.setHours(i.getHours()>12?i.getHours()+2:0),i},fromJSDate:function(t){return this.newDate(t.getFullYear(),t.getMonth()+1,t.getDate())}});var c=e.exports=new i;c.cdate=a,c.baseCalendar=s,c.calendars.gregorian=l},{\"object-assign\":437}],549:[function(t,e,r){var n=t(\"object-assign\"),i=t(\"./main\");n(i.regionalOptions[\"\"],{invalidArguments:\"Invalid arguments\",invalidFormat:\"Cannot format a date from another calendar\",missingNumberAt:\"Missing number at position {0}\",unknownNameAt:\"Unknown name at position {0}\",unexpectedLiteralAt:\"Unexpected literal at position {0}\",unexpectedText:\"Additional text found at end\"}),i.local=i.regionalOptions[\"\"],n(i.cdate.prototype,{formatDate:function(t,e){return\"string\"!=typeof t&&(e=t,t=\"\"),this._calendar.formatDate(t||\"\",this,e)}}),n(i.baseCalendar.prototype,{UNIX_EPOCH:i.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:86400,TICKS_EPOCH:i.instance().jdEpoch,TICKS_PER_DAY:864e9,ATOM:\"yyyy-mm-dd\",COOKIE:\"D, dd M yyyy\",FULL:\"DD, MM d, yyyy\",ISO_8601:\"yyyy-mm-dd\",JULIAN:\"J\",RFC_822:\"D, d M yy\",RFC_850:\"DD, dd-M-yy\",RFC_1036:\"D, d M yy\",RFC_1123:\"D, d M yyyy\",RFC_2822:\"D, d M yyyy\",RSS:\"D, d M yy\",TICKS:\"!\",TIMESTAMP:\"@\",W3C:\"yyyy-mm-dd\",formatDate:function(t,e,r){if(\"string\"!=typeof t&&(r=e,e=t,t=\"\"),!e)return\"\";if(e.calendar()!==this)throw i.local.invalidFormat||i.regionalOptions[\"\"].invalidFormat;t=t||this.local.dateFormat;for(var n,a,o,s,l=(r=r||{}).dayNamesShort||this.local.dayNamesShort,c=r.dayNames||this.local.dayNames,u=r.monthNumbers||this.local.monthNumbers,f=r.monthNamesShort||this.local.monthNamesShort,h=r.monthNames||this.local.monthNames,p=(r.calculateWeek||this.local.calculateWeek,function(e,r){for(var n=1;w+n<t.length&&t.charAt(w+n)===e;)n++;return w+=n-1,Math.floor(n/(r||1))>1}),d=function(t,e,r,n){var i=\"\"+e;if(p(t,n))for(;i.length<r;)i=\"0\"+i;return i},g=this,v=function(t){return\"function\"==typeof u?u.call(g,t,p(\"m\")):x(d(\"m\",t.month(),2))},m=function(t,e){return e?\"function\"==typeof h?h.call(g,t):h[t.month()-g.minMonth]:\"function\"==typeof f?f.call(g,t):f[t.month()-g.minMonth]},y=this.local.digits,x=function(t){return r.localNumbers&&y?y(t):t},b=\"\",_=!1,w=0;w<t.length;w++)if(_)\"'\"!==t.charAt(w)||p(\"'\")?b+=t.charAt(w):_=!1;else switch(t.charAt(w)){case\"d\":b+=x(d(\"d\",e.day(),2));break;case\"D\":b+=(n=\"D\",a=e.dayOfWeek(),o=l,s=c,p(n)?s[a]:o[a]);break;case\"o\":b+=d(\"o\",e.dayOfYear(),3);break;case\"w\":b+=d(\"w\",e.weekOfYear(),2);break;case\"m\":b+=v(e);break;case\"M\":b+=m(e,p(\"M\"));break;case\"y\":b+=p(\"y\",2)?e.year():(e.year()%100<10?\"0\":\"\")+e.year()%100;break;case\"Y\":p(\"Y\",2),b+=e.formatYear();break;case\"J\":b+=e.toJD();break;case\"@\":b+=(e.toJD()-this.UNIX_EPOCH)*this.SECS_PER_DAY;break;case\"!\":b+=(e.toJD()-this.TICKS_EPOCH)*this.TICKS_PER_DAY;break;case\"'\":p(\"'\")?b+=\"'\":_=!0;break;default:b+=t.charAt(w)}return b},parseDate:function(t,e,r){if(null==e)throw i.local.invalidArguments||i.regionalOptions[\"\"].invalidArguments;if(\"\"===(e=\"object\"==typeof e?e.toString():e+\"\"))return null;t=t||this.local.dateFormat;var n=(r=r||{}).shortYearCutoff||this.shortYearCutoff;n=\"string\"!=typeof n?n:this.today().year()%100+parseInt(n,10);for(var a=r.dayNamesShort||this.local.dayNamesShort,o=r.dayNames||this.local.dayNames,s=r.parseMonth||this.local.parseMonth,l=r.monthNumbers||this.local.monthNumbers,c=r.monthNamesShort||this.local.monthNamesShort,u=r.monthNames||this.local.monthNames,f=-1,h=-1,p=-1,d=-1,g=-1,v=!1,m=!1,y=function(e,r){for(var n=1;T+n<t.length&&t.charAt(T+n)===e;)n++;return T+=n-1,Math.floor(n/(r||1))>1},x=function(t,r){var n=y(t,r),a=[2,3,n?4:2,n?4:2,10,11,20][\"oyYJ@!\".indexOf(t)+1],o=new RegExp(\"^-?\\\\d{1,\"+a+\"}\"),s=e.substring(A).match(o);if(!s)throw(i.local.missingNumberAt||i.regionalOptions[\"\"].missingNumberAt).replace(/\\{0\\}/,A);return A+=s[0].length,parseInt(s[0],10)},b=this,_=function(){if(\"function\"==typeof l){y(\"m\");var t=l.call(b,e.substring(A));return A+=t.length,t}return x(\"m\")},w=function(t,r,n,a){for(var o=y(t,a)?n:r,s=0;s<o.length;s++)if(e.substr(A,o[s].length).toLowerCase()===o[s].toLowerCase())return A+=o[s].length,s+b.minMonth;throw(i.local.unknownNameAt||i.regionalOptions[\"\"].unknownNameAt).replace(/\\{0\\}/,A)},k=function(){if(\"function\"==typeof u){var t=y(\"M\")?u.call(b,e.substring(A)):c.call(b,e.substring(A));return A+=t.length,t}return w(\"M\",c,u)},M=function(){if(e.charAt(A)!==t.charAt(T))throw(i.local.unexpectedLiteralAt||i.regionalOptions[\"\"].unexpectedLiteralAt).replace(/\\{0\\}/,A);A++},A=0,T=0;T<t.length;T++)if(m)\"'\"!==t.charAt(T)||y(\"'\")?M():m=!1;else switch(t.charAt(T)){case\"d\":d=x(\"d\");break;case\"D\":w(\"D\",a,o);break;case\"o\":g=x(\"o\");break;case\"w\":x(\"w\");break;case\"m\":p=_();break;case\"M\":p=k();break;case\"y\":var S=T;v=!y(\"y\",2),T=S,h=x(\"y\",2);break;case\"Y\":h=x(\"Y\",2);break;case\"J\":f=x(\"J\")+.5,\".\"===e.charAt(A)&&(A++,x(\"J\"));break;case\"@\":f=x(\"@\")/this.SECS_PER_DAY+this.UNIX_EPOCH;break;case\"!\":f=x(\"!\")/this.TICKS_PER_DAY+this.TICKS_EPOCH;break;case\"*\":A=e.length;break;case\"'\":y(\"'\")?M():m=!0;break;default:M()}if(A<e.length)throw i.local.unexpectedText||i.regionalOptions[\"\"].unexpectedText;if(-1===h?h=this.today().year():h<100&&v&&(h+=-1===n?1900:this.today().year()-this.today().year()%100-(h<=n?0:100)),\"string\"==typeof p&&(p=s.call(this,h,p)),g>-1){p=1,d=g;for(var E=this.daysInMonth(h,p);d>E;E=this.daysInMonth(h,p))p++,d-=E}return f>-1?this.fromJD(f):this.newDate(h,p,d)},determineDate:function(t,e,r,n,i){r&&\"object\"!=typeof r&&(i=n,n=r,r=null),\"string\"!=typeof n&&(i=n,n=\"\");var a=this;return e=e?e.newDate():null,t=null==t?e:\"string\"==typeof t?function(t){try{return a.parseDate(n,t,i)}catch(t){}for(var e=((t=t.toLowerCase()).match(/^c/)&&r?r.newDate():null)||a.today(),o=/([+-]?[0-9]+)\\s*(d|w|m|y)?/g,s=o.exec(t);s;)e.add(parseInt(s[1],10),s[2]||\"d\"),s=o.exec(t);return e}(t):\"number\"==typeof t?isNaN(t)||t===1/0||t===-1/0?e:a.today().add(t,\"d\"):a.newDate(t)}})},{\"./main\":548,\"object-assign\":437}],550:[function(t,e,r){e.exports=t(\"cwise-compiler\")({args:[\"array\",{offset:[1],array:0},\"scalar\",\"scalar\",\"index\"],pre:{body:\"{}\",args:[],thisVars:[],localVars:[]},post:{body:\"{}\",args:[],thisVars:[],localVars:[]},body:{body:\"{\\n var _inline_1_da = _inline_1_arg0_ - _inline_1_arg3_\\n var _inline_1_db = _inline_1_arg1_ - _inline_1_arg3_\\n if((_inline_1_da >= 0) !== (_inline_1_db >= 0)) {\\n _inline_1_arg2_.push(_inline_1_arg4_[0] + 0.5 + 0.5 * (_inline_1_da + _inline_1_db) / (_inline_1_da - _inline_1_db))\\n }\\n }\",args:[{name:\"_inline_1_arg0_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_1_arg1_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_1_arg2_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_1_arg3_\",lvalue:!1,rvalue:!0,count:2},{name:\"_inline_1_arg4_\",lvalue:!1,rvalue:!0,count:1}],thisVars:[],localVars:[\"_inline_1_da\",\"_inline_1_db\"]},funcName:\"zeroCrossings\"})},{\"cwise-compiler\":134}],551:[function(t,e,r){\"use strict\";e.exports=function(t,e){var r=[];return e=+e||0,n(t.hi(t.shape[0]-1),r,e),r};var n=t(\"./lib/zc-core\")},{\"./lib/zc-core\":550}],552:[function(t,e,r){\"use strict\";e.exports=[{path:\"\",backoff:0},{path:\"M-2.4,-3V3L0.6,0Z\",backoff:.6},{path:\"M-3.7,-2.5V2.5L1.3,0Z\",backoff:1.3},{path:\"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z\",backoff:1.55},{path:\"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z\",backoff:1.6},{path:\"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z\",backoff:2},{path:\"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z\",backoff:0,noRotate:!0},{path:\"M2,2V-2H-2V2Z\",backoff:0,noRotate:!0}]},{}],553:[function(t,e,r){\"use strict\";var n=t(\"./arrow_paths\"),i=t(\"../../plots/font_attributes\"),a=t(\"../../plots/cartesian/constants\"),o=t(\"../../plot_api/plot_template\").templatedArray;e.exports=o(\"annotation\",{visible:{valType:\"boolean\",dflt:!0,editType:\"calc+arraydraw\"},text:{valType:\"string\",editType:\"calc+arraydraw\"},textangle:{valType:\"angle\",dflt:0,editType:\"calc+arraydraw\"},font:i({editType:\"calc+arraydraw\",colorEditType:\"arraydraw\"}),width:{valType:\"number\",min:1,dflt:null,editType:\"calc+arraydraw\"},height:{valType:\"number\",min:1,dflt:null,editType:\"calc+arraydraw\"},opacity:{valType:\"number\",min:0,max:1,dflt:1,editType:\"arraydraw\"},align:{valType:\"enumerated\",values:[\"left\",\"center\",\"right\"],dflt:\"center\",editType:\"arraydraw\"},valign:{valType:\"enumerated\",values:[\"top\",\"middle\",\"bottom\"],dflt:\"middle\",editType:\"arraydraw\"},bgcolor:{valType:\"color\",dflt:\"rgba(0,0,0,0)\",editType:\"arraydraw\"},bordercolor:{valType:\"color\",dflt:\"rgba(0,0,0,0)\",editType:\"arraydraw\"},borderpad:{valType:\"number\",min:0,dflt:1,editType:\"calc+arraydraw\"},borderwidth:{valType:\"number\",min:0,dflt:1,editType:\"calc+arraydraw\"},showarrow:{valType:\"boolean\",dflt:!0,editType:\"calc+arraydraw\"},arrowcolor:{valType:\"color\",editType:\"arraydraw\"},arrowhead:{valType:\"integer\",min:0,max:n.length,dflt:1,editType:\"arraydraw\"},startarrowhead:{valType:\"integer\",min:0,max:n.length,dflt:1,editType:\"arraydraw\"},arrowside:{valType:\"flaglist\",flags:[\"end\",\"start\"],extras:[\"none\"],dflt:\"end\",editType:\"arraydraw\"},arrowsize:{valType:\"number\",min:.3,dflt:1,editType:\"calc+arraydraw\"},startarrowsize:{valType:\"number\",min:.3,dflt:1,editType:\"calc+arraydraw\"},arrowwidth:{valType:\"number\",min:.1,editType:\"calc+arraydraw\"},standoff:{valType:\"number\",min:0,dflt:0,editType:\"calc+arraydraw\"},startstandoff:{valType:\"number\",min:0,dflt:0,editType:\"calc+arraydraw\"},ax:{valType:\"any\",editType:\"calc+arraydraw\"},ay:{valType:\"any\",editType:\"calc+arraydraw\"},axref:{valType:\"enumerated\",dflt:\"pixel\",values:[\"pixel\",a.idRegex.x.toString()],editType:\"calc\"},ayref:{valType:\"enumerated\",dflt:\"pixel\",values:[\"pixel\",a.idRegex.y.toString()],editType:\"calc\"},xref:{valType:\"enumerated\",values:[\"paper\",a.idRegex.x.toString()],editType:\"calc\"},x:{valType:\"any\",editType:\"calc+arraydraw\"},xanchor:{valType:\"enumerated\",values:[\"auto\",\"left\",\"center\",\"right\"],dflt:\"auto\",editType:\"calc+arraydraw\"},xshift:{valType:\"number\",dflt:0,editType:\"calc+arraydraw\"},yref:{valType:\"enumerated\",values:[\"paper\",a.idRegex.y.toString()],editType:\"calc\"},y:{valType:\"any\",editType:\"calc+arraydraw\"},yanchor:{valType:\"enumerated\",values:[\"auto\",\"top\",\"middle\",\"bottom\"],dflt:\"auto\",editType:\"calc+arraydraw\"},yshift:{valType:\"number\",dflt:0,editType:\"calc+arraydraw\"},clicktoshow:{valType:\"enumerated\",values:[!1,\"onoff\",\"onout\"],dflt:!1,editType:\"arraydraw\"},xclick:{valType:\"any\",editType:\"arraydraw\"},yclick:{valType:\"any\",editType:\"arraydraw\"},hovertext:{valType:\"string\",editType:\"arraydraw\"},hoverlabel:{bgcolor:{valType:\"color\",editType:\"arraydraw\"},bordercolor:{valType:\"color\",editType:\"arraydraw\"},font:i({editType:\"arraydraw\"}),editType:\"arraydraw\"},captureevents:{valType:\"boolean\",editType:\"arraydraw\"},editType:\"calc\",_deprecated:{ref:{valType:\"string\",editType:\"calc\"}}})},{\"../../plot_api/plot_template\":734,\"../../plots/cartesian/constants\":750,\"../../plots/font_attributes\":771,\"./arrow_paths\":552}],554:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../plots/cartesian/axes\"),a=t(\"./draw\").draw;function o(t){var e=t._fullLayout;n.filterVisible(e.annotations).forEach(function(e){var r=i.getFromId(t,e.xref),n=i.getFromId(t,e.yref);e._extremes={},r&&s(e,r),n&&s(e,n)})}function s(t,e){var r,n=e._id,a=n.charAt(0),o=t[a],s=t[\"a\"+a],l=t[a+\"ref\"],c=t[\"a\"+a+\"ref\"],u=t[\"_\"+a+\"padplus\"],f=t[\"_\"+a+\"padminus\"],h={x:1,y:-1}[a]*t[a+\"shift\"],p=3*t.arrowsize*t.arrowwidth||0,d=p+h,g=p-h,v=3*t.startarrowsize*t.arrowwidth||0,m=v+h,y=v-h;if(c===l){var x=i.findExtremes(e,[e.r2c(o)],{ppadplus:d,ppadminus:g}),b=i.findExtremes(e,[e.r2c(s)],{ppadplus:Math.max(u,m),ppadminus:Math.max(f,y)});r={min:[x.min[0],b.min[0]],max:[x.max[0],b.max[0]]}}else m=s?m+s:m,y=s?y-s:y,r=i.findExtremes(e,[e.r2c(o)],{ppadplus:Math.max(u,d,m),ppadminus:Math.max(f,g,y)});t._extremes[n]=r}e.exports=function(t){var e=t._fullLayout;if(n.filterVisible(e.annotations).length&&t._fullData.length)return n.syncOrAsync([a,o],t)}},{\"../../lib\":696,\"../../plots/cartesian/axes\":744,\"./draw\":559}],555:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../registry\"),a=t(\"../../plot_api/plot_template\").arrayEditor;function o(t,e){var r,n,i,a,o,l,c,u=t._fullLayout.annotations,f=[],h=[],p=[],d=(e||[]).length;for(r=0;r<u.length;r++)if(a=(i=u[r]).clicktoshow){for(n=0;n<d;n++)if(l=(o=e[n]).xaxis,c=o.yaxis,l._id===i.xref&&c._id===i.yref&&l.d2r(o.x)===s(i._xclick,l)&&c.d2r(o.y)===s(i._yclick,c)){(i.visible?\"onout\"===a?h:p:f).push(r);break}n===d&&i.visible&&\"onout\"===a&&h.push(r)}return{on:f,off:h,explicitOff:p}}function s(t,e){return\"log\"===e.type?e.l2r(t):e.d2r(t)}e.exports={hasClickToShow:function(t,e){var r=o(t,e);return r.on.length>0||r.explicitOff.length>0},onClick:function(t,e){var r,s,l=o(t,e),c=l.on,u=l.off.concat(l.explicitOff),f={},h=t._fullLayout.annotations;if(!c.length&&!u.length)return;for(r=0;r<c.length;r++)(s=a(t.layout,\"annotations\",h[c[r]])).modifyItem(\"visible\",!0),n.extendFlat(f,s.getUpdateObj());for(r=0;r<u.length;r++)(s=a(t.layout,\"annotations\",h[u[r]])).modifyItem(\"visible\",!1),n.extendFlat(f,s.getUpdateObj());return i.call(\"update\",t,{},f)}}},{\"../../lib\":696,\"../../plot_api/plot_template\":734,\"../../registry\":827}],556:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../color\");e.exports=function(t,e,r,a){a(\"opacity\");var o=a(\"bgcolor\"),s=a(\"bordercolor\"),l=i.opacity(s);a(\"borderpad\");var c=a(\"borderwidth\"),u=a(\"showarrow\");if(a(\"text\",u?\" \":r._dfltTitle.annotation),a(\"textangle\"),n.coerceFont(a,\"font\",r.font),a(\"width\"),a(\"align\"),a(\"height\")&&a(\"valign\"),u){var f,h,p=a(\"arrowside\");-1!==p.indexOf(\"end\")&&(f=a(\"arrowhead\"),h=a(\"arrowsize\")),-1!==p.indexOf(\"start\")&&(a(\"startarrowhead\",f),a(\"startarrowsize\",h)),a(\"arrowcolor\",l?e.bordercolor:i.defaultLine),a(\"arrowwidth\",2*(l&&c||1)),a(\"standoff\"),a(\"startstandoff\")}var d=a(\"hovertext\"),g=r.hoverlabel||{};if(d){var v=a(\"hoverlabel.bgcolor\",g.bgcolor||(i.opacity(o)?i.rgb(o):i.defaultLine)),m=a(\"hoverlabel.bordercolor\",g.bordercolor||i.contrast(v));n.coerceFont(a,\"hoverlabel.font\",{family:g.font.family,size:g.font.size,color:g.font.color||m})}a(\"captureevents\",!!d)}},{\"../../lib\":696,\"../color\":570}],557:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../../lib/to_log_range\");e.exports=function(t,e,r,a){e=e||{};var o=\"log\"===r&&\"linear\"===e.type,s=\"linear\"===r&&\"log\"===e.type;if(o||s)for(var l,c,u=t._fullLayout.annotations,f=e._id.charAt(0),h=0;h<u.length;h++)l=u[h],c=\"annotations[\"+h+\"].\",l[f+\"ref\"]===e._id&&p(f),l[\"a\"+f+\"ref\"]===e._id&&p(\"a\"+f);function p(t){var r=l[t],s=null;s=o?i(r,e.range):Math.pow(10,r),n(s)||(s=null),a(c+t,s)}}},{\"../../lib/to_log_range\":722,\"fast-isnumeric\":214}],558:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../plots/cartesian/axes\"),a=t(\"../../plots/array_container_defaults\"),o=t(\"./common_defaults\"),s=t(\"./attributes\");function l(t,e,r){function a(r,i){return n.coerce(t,e,s,r,i)}var l=a(\"visible\"),c=a(\"clicktoshow\");if(l||c){o(t,e,r,a);for(var u=e.showarrow,f=[\"x\",\"y\"],h=[-10,-30],p={_fullLayout:r},d=0;d<2;d++){var g=f[d],v=i.coerceRef(t,e,p,g,\"\",\"paper\");if(\"paper\"!==v)i.getFromId(p,v)._annIndices.push(e._index);if(i.coercePosition(e,p,a,v,g,.5),u){var m=\"a\"+g,y=i.coerceRef(t,e,p,m,\"pixel\");\"pixel\"!==y&&y!==v&&(y=e[m]=\"pixel\");var x=\"pixel\"===y?h[d]:.4;i.coercePosition(e,p,a,y,m,x)}a(g+\"anchor\"),a(g+\"shift\")}if(n.noneOrAll(t,e,[\"x\",\"y\"]),u&&n.noneOrAll(t,e,[\"ax\",\"ay\"]),c){var b=a(\"xclick\"),_=a(\"yclick\");e._xclick=void 0===b?e.x:i.cleanPosition(b,p,e.xref),e._yclick=void 0===_?e.y:i.cleanPosition(_,p,e.yref)}}}e.exports=function(t,e){a(t,e,{name:\"annotations\",handleItemDefaults:l})}},{\"../../lib\":696,\"../../plots/array_container_defaults\":740,\"../../plots/cartesian/axes\":744,\"./attributes\":553,\"./common_defaults\":556}],559:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../../registry\"),a=t(\"../../plots/plots\"),o=t(\"../../lib\"),s=t(\"../../plots/cartesian/axes\"),l=t(\"../color\"),c=t(\"../drawing\"),u=t(\"../fx\"),f=t(\"../../lib/svg_text_utils\"),h=t(\"../../lib/setcursor\"),p=t(\"../dragelement\"),d=t(\"../../plot_api/plot_template\").arrayEditor,g=t(\"./draw_arrow_head\");function v(t,e){var r=t._fullLayout.annotations[e]||{};m(t,r,e,!1,s.getFromId(t,r.xref),s.getFromId(t,r.yref))}function m(t,e,r,a,s,v){var m,y,x=t._fullLayout,b=t._fullLayout._size,_=t._context.edits;a?(m=\"annotation-\"+a,y=a+\".annotations\"):(m=\"annotation\",y=\"annotations\");var w=d(t.layout,y,e),k=w.modifyBase,M=w.modifyItem,A=w.getUpdateObj;x._infolayer.selectAll(\".\"+m+'[data-index=\"'+r+'\"]').remove();var T=\"clip\"+x._uid+\"_ann\"+r;if(e._input&&!1!==e.visible){var S={x:{},y:{}},E=+e.textangle||0,C=x._infolayer.append(\"g\").classed(m,!0).attr(\"data-index\",String(r)).style(\"opacity\",e.opacity),L=C.append(\"g\").classed(\"annotation-text-g\",!0),z=_[e.showarrow?\"annotationTail\":\"annotationPosition\"],O=e.captureevents||_.annotationText||z,I=L.append(\"g\").style(\"pointer-events\",O?\"all\":null).call(h,\"pointer\").on(\"click\",function(){t._dragging=!1;var i={index:r,annotation:e._input,fullAnnotation:e,event:n.event};a&&(i.subplotId=a),t.emit(\"plotly_clickannotation\",i)});e.hovertext&&I.on(\"mouseover\",function(){var r=e.hoverlabel,n=r.font,i=this.getBoundingClientRect(),a=t.getBoundingClientRect();u.loneHover({x0:i.left-a.left,x1:i.right-a.left,y:(i.top+i.bottom)/2-a.top,text:e.hovertext,color:r.bgcolor,borderColor:r.bordercolor,fontFamily:n.family,fontSize:n.size,fontColor:n.color},{container:x._hoverlayer.node(),outerContainer:x._paper.node(),gd:t})}).on(\"mouseout\",function(){u.loneUnhover(x._hoverlayer.node())});var P=e.borderwidth,D=e.borderpad,R=P+D,B=I.append(\"rect\").attr(\"class\",\"bg\").style(\"stroke-width\",P+\"px\").call(l.stroke,e.bordercolor).call(l.fill,e.bgcolor),F=e.width||e.height,N=x._topclips.selectAll(\"#\"+T).data(F?[0]:[]);N.enter().append(\"clipPath\").classed(\"annclip\",!0).attr(\"id\",T).append(\"rect\"),N.exit().remove();var j=e.font,V=I.append(\"text\").classed(\"annotation-text\",!0).text(e.text);_.annotationText?V.call(f.makeEditable,{delegate:I,gd:t}).call(U).on(\"edit\",function(r){e.text=r,this.call(U),M(\"text\",r),s&&s.autorange&&k(s._name+\".autorange\",!0),v&&v.autorange&&k(v._name+\".autorange\",!0),i.call(\"relayout\",t,A())}):V.call(U)}else n.selectAll(\"#\"+T).remove();function U(r){return r.call(c.font,j).attr({\"text-anchor\":{left:\"start\",right:\"end\"}[e.align]||\"middle\"}),f.convertToTspans(r,t,q),r}function q(){var r=V.selectAll(\"a\");1===r.size()&&r.text()===V.text()&&I.insert(\"a\",\":first-child\").attr({\"xlink:xlink:href\":r.attr(\"xlink:href\"),\"xlink:xlink:show\":r.attr(\"xlink:show\")}).style({cursor:\"pointer\"}).node().appendChild(B.node());var n=I.select(\".annotation-text-math-group\"),u=!n.empty(),d=c.bBox((u?n:V).node()),m=d.width,y=d.height,w=e.width||m,O=e.height||y,D=Math.round(w+2*R),j=Math.round(O+2*R);function U(t,e){return\"auto\"===e&&(e=t<1/3?\"left\":t>2/3?\"right\":\"center\"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[e]}for(var q=!1,H=[\"x\",\"y\"],G=0;G<H.length;G++){var W,Y,X,Z,$,J=H[G],K=e[J+\"ref\"]||J,Q=e[\"a\"+J+\"ref\"],tt={x:s,y:v}[J],et=(E+(\"x\"===J?0:-90))*Math.PI/180,rt=D*Math.cos(et),nt=j*Math.sin(et),it=Math.abs(rt)+Math.abs(nt),at=e[J+\"anchor\"],ot=e[J+\"shift\"]*(\"x\"===J?1:-1),st=S[J];if(tt){var lt=tt.r2fraction(e[J]);(lt<0||lt>1)&&(Q===K?((lt=tt.r2fraction(e[\"a\"+J]))<0||lt>1)&&(q=!0):q=!0),W=tt._offset+tt.r2p(e[J]),Z=.5}else\"x\"===J?(X=e[J],W=b.l+b.w*X):(X=1-e[J],W=b.t+b.h*X),Z=e.showarrow?.5:X;if(e.showarrow){st.head=W;var ct=e[\"a\"+J];$=rt*U(.5,e.xanchor)-nt*U(.5,e.yanchor),Q===K?(st.tail=tt._offset+tt.r2p(ct),Y=$):(st.tail=W+ct,Y=$+ct),st.text=st.tail+$;var ut=x[\"x\"===J?\"width\":\"height\"];if(\"paper\"===K&&(st.head=o.constrain(st.head,1,ut-1)),\"pixel\"===Q){var ft=-Math.max(st.tail-3,st.text),ht=Math.min(st.tail+3,st.text)-ut;ft>0?(st.tail+=ft,st.text+=ft):ht>0&&(st.tail-=ht,st.text-=ht)}st.tail+=ot,st.head+=ot}else Y=$=it*U(Z,at),st.text=W+$;st.text+=ot,$+=ot,Y+=ot,e[\"_\"+J+\"padplus\"]=it/2+Y,e[\"_\"+J+\"padminus\"]=it/2-Y,e[\"_\"+J+\"size\"]=it,e[\"_\"+J+\"shift\"]=$}if(t._dragging||!q){var pt=0,dt=0;if(\"left\"!==e.align&&(pt=(w-m)*(\"center\"===e.align?.5:1)),\"top\"!==e.valign&&(dt=(O-y)*(\"middle\"===e.valign?.5:1)),u)n.select(\"svg\").attr({x:R+pt-1,y:R+dt}).call(c.setClipUrl,F?T:null);else{var gt=R+dt-d.top,vt=R+pt-d.left;V.call(f.positionText,vt,gt).call(c.setClipUrl,F?T:null)}N.select(\"rect\").call(c.setRect,R,R,w,O),B.call(c.setRect,P/2,P/2,D-P,j-P),I.call(c.setTranslate,Math.round(S.x.text-D/2),Math.round(S.y.text-j/2)),L.attr({transform:\"rotate(\"+E+\",\"+S.x.text+\",\"+S.y.text+\")\"});var mt,yt=function(r,n){C.selectAll(\".annotation-arrow-g\").remove();var u=S.x.head,f=S.y.head,h=S.x.tail+r,d=S.y.tail+n,m=S.x.text+r,y=S.y.text+n,x=o.rotationXYMatrix(E,m,y),w=o.apply2DTransform(x),T=o.apply2DTransform2(x),z=+B.attr(\"width\"),O=+B.attr(\"height\"),P=m-.5*z,D=P+z,R=y-.5*O,F=R+O,N=[[P,R,P,F],[P,F,D,F],[D,F,D,R],[D,R,P,R]].map(T);if(!N.reduce(function(t,e){return t^!!o.segmentsIntersect(u,f,u+1e6,f+1e6,e[0],e[1],e[2],e[3])},!1)){N.forEach(function(t){var e=o.segmentsIntersect(h,d,u,f,t[0],t[1],t[2],t[3]);e&&(h=e.x,d=e.y)});var j=e.arrowwidth,V=e.arrowcolor,U=e.arrowside,q=C.append(\"g\").style({opacity:l.opacity(V)}).classed(\"annotation-arrow-g\",!0),H=q.append(\"path\").attr(\"d\",\"M\"+h+\",\"+d+\"L\"+u+\",\"+f).style(\"stroke-width\",j+\"px\").call(l.stroke,l.rgb(V));if(g(H,U,e),_.annotationPosition&&H.node().parentNode&&!a){var G=u,W=f;if(e.standoff){var Y=Math.sqrt(Math.pow(u-h,2)+Math.pow(f-d,2));G+=e.standoff*(h-u)/Y,W+=e.standoff*(d-f)/Y}var X,Z,$=q.append(\"path\").classed(\"annotation-arrow\",!0).classed(\"anndrag\",!0).classed(\"cursor-move\",!0).attr({d:\"M3,3H-3V-3H3ZM0,0L\"+(h-G)+\",\"+(d-W),transform:\"translate(\"+G+\",\"+W+\")\"}).style(\"stroke-width\",j+6+\"px\").call(l.stroke,\"rgba(0,0,0,0)\").call(l.fill,\"rgba(0,0,0,0)\");p.init({element:$.node(),gd:t,prepFn:function(){var t=c.getTranslate(I);X=t.x,Z=t.y,s&&s.autorange&&k(s._name+\".autorange\",!0),v&&v.autorange&&k(v._name+\".autorange\",!0)},moveFn:function(t,r){var n=w(X,Z),i=n[0]+t,a=n[1]+r;I.call(c.setTranslate,i,a),M(\"x\",s?s.p2r(s.r2p(e.x)+t):e.x+t/b.w),M(\"y\",v?v.p2r(v.r2p(e.y)+r):e.y-r/b.h),e.axref===e.xref&&M(\"ax\",s.p2r(s.r2p(e.ax)+t)),e.ayref===e.yref&&M(\"ay\",v.p2r(v.r2p(e.ay)+r)),q.attr(\"transform\",\"translate(\"+t+\",\"+r+\")\"),L.attr({transform:\"rotate(\"+E+\",\"+i+\",\"+a+\")\"})},doneFn:function(){i.call(\"relayout\",t,A());var e=document.querySelector(\".js-notes-box-panel\");e&&e.redraw(e.selectedObj)}})}}};if(e.showarrow&&yt(0,0),z)p.init({element:I.node(),gd:t,prepFn:function(){mt=L.attr(\"transform\")},moveFn:function(t,r){var n=\"pointer\";if(e.showarrow)e.axref===e.xref?M(\"ax\",s.p2r(s.r2p(e.ax)+t)):M(\"ax\",e.ax+t),e.ayref===e.yref?M(\"ay\",v.p2r(v.r2p(e.ay)+r)):M(\"ay\",e.ay+r),yt(t,r);else{if(a)return;var i,o;if(s)i=s.p2r(s.r2p(e.x)+t);else{var l=e._xsize/b.w,c=e.x+(e._xshift-e.xshift)/b.w-l/2;i=p.align(c+t/b.w,l,0,1,e.xanchor)}if(v)o=v.p2r(v.r2p(e.y)+r);else{var u=e._ysize/b.h,f=e.y-(e._yshift+e.yshift)/b.h-u/2;o=p.align(f-r/b.h,u,0,1,e.yanchor)}M(\"x\",i),M(\"y\",o),s&&v||(n=p.getCursor(s?.5:i,v?.5:o,e.xanchor,e.yanchor))}L.attr({transform:\"translate(\"+t+\",\"+r+\")\"+mt}),h(I,n)},doneFn:function(){h(I),i.call(\"relayout\",t,A());var e=document.querySelector(\".js-notes-box-panel\");e&&e.redraw(e.selectedObj)}})}else I.remove()}}e.exports={draw:function(t){var e=t._fullLayout;e._infolayer.selectAll(\".annotation\").remove();for(var r=0;r<e.annotations.length;r++)e.annotations[r].visible&&v(t,r);return a.previousPromises(t)},drawOne:v,drawRaw:m}},{\"../../lib\":696,\"../../lib/setcursor\":716,\"../../lib/svg_text_utils\":720,\"../../plot_api/plot_template\":734,\"../../plots/cartesian/axes\":744,\"../../plots/plots\":808,\"../../registry\":827,\"../color\":570,\"../dragelement\":592,\"../drawing\":595,\"../fx\":612,\"./draw_arrow_head\":560,d3:148}],560:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../color\"),a=t(\"./arrow_paths\");e.exports=function(t,e,r){var o,s,l,c,u=t.node(),f=a[r.arrowhead||0],h=a[r.startarrowhead||0],p=(r.arrowwidth||1)*(r.arrowsize||1),d=(r.arrowwidth||1)*(r.startarrowsize||1),g=e.indexOf(\"start\")>=0,v=e.indexOf(\"end\")>=0,m=f.backoff*p+r.standoff,y=h.backoff*d+r.startstandoff;if(\"line\"===u.nodeName){o={x:+t.attr(\"x1\"),y:+t.attr(\"y1\")},s={x:+t.attr(\"x2\"),y:+t.attr(\"y2\")};var x=o.x-s.x,b=o.y-s.y;if(c=(l=Math.atan2(b,x))+Math.PI,m&&y&&m+y>Math.sqrt(x*x+b*b))return void z();if(m){if(m*m>x*x+b*b)return void z();var _=m*Math.cos(l),w=m*Math.sin(l);s.x+=_,s.y+=w,t.attr({x2:s.x,y2:s.y})}if(y){if(y*y>x*x+b*b)return void z();var k=y*Math.cos(l),M=y*Math.sin(l);o.x-=k,o.y-=M,t.attr({x1:o.x,y1:o.y})}}else if(\"path\"===u.nodeName){var A=u.getTotalLength(),T=\"\";if(A<m+y)return void z();var S=u.getPointAtLength(0),E=u.getPointAtLength(.1);l=Math.atan2(S.y-E.y,S.x-E.x),o=u.getPointAtLength(Math.min(y,A)),T=\"0px,\"+y+\"px,\";var C=u.getPointAtLength(A),L=u.getPointAtLength(A-.1);c=Math.atan2(C.y-L.y,C.x-L.x),s=u.getPointAtLength(Math.max(0,A-m)),T+=A-(T?y+m:m)+\"px,\"+A+\"px\",t.style(\"stroke-dasharray\",T)}function z(){t.style(\"stroke-dasharray\",\"0px,100px\")}function O(e,a,o,s){e.path&&(e.noRotate&&(o=0),n.select(u.parentNode).append(\"path\").attr({class:t.attr(\"class\"),d:e.path,transform:\"translate(\"+a.x+\",\"+a.y+\")\"+(o?\"rotate(\"+180*o/Math.PI+\")\":\"\")+\"scale(\"+s+\")\"}).style({fill:i.rgb(r.arrowcolor),\"stroke-width\":0}))}g&&O(h,o,l,d),v&&O(f,s,c,p)}},{\"../color\":570,\"./arrow_paths\":552,d3:148}],561:[function(t,e,r){\"use strict\";var n=t(\"./draw\"),i=t(\"./click\");e.exports={moduleType:\"component\",name:\"annotations\",layoutAttributes:t(\"./attributes\"),supplyLayoutDefaults:t(\"./defaults\"),includeBasePlot:t(\"../../plots/cartesian/include_components\")(\"annotations\"),calcAutorange:t(\"./calc_autorange\"),draw:n.draw,drawOne:n.drawOne,drawRaw:n.drawRaw,hasClickToShow:i.hasClickToShow,onClick:i.onClick,convertCoords:t(\"./convert_coords\")}},{\"../../plots/cartesian/include_components\":755,\"./attributes\":553,\"./calc_autorange\":554,\"./click\":555,\"./convert_coords\":557,\"./defaults\":558,\"./draw\":559}],562:[function(t,e,r){\"use strict\";var n=t(\"../annotations/attributes\"),i=t(\"../../plot_api/edit_types\").overrideAll,a=t(\"../../plot_api/plot_template\").templatedArray;e.exports=i(a(\"annotation\",{visible:n.visible,x:{valType:\"any\"},y:{valType:\"any\"},z:{valType:\"any\"},ax:{valType:\"number\"},ay:{valType:\"number\"},xanchor:n.xanchor,xshift:n.xshift,yanchor:n.yanchor,yshift:n.yshift,text:n.text,textangle:n.textangle,font:n.font,width:n.width,height:n.height,opacity:n.opacity,align:n.align,valign:n.valign,bgcolor:n.bgcolor,bordercolor:n.bordercolor,borderpad:n.borderpad,borderwidth:n.borderwidth,showarrow:n.showarrow,arrowcolor:n.arrowcolor,arrowhead:n.arrowhead,startarrowhead:n.startarrowhead,arrowside:n.arrowside,arrowsize:n.arrowsize,startarrowsize:n.startarrowsize,arrowwidth:n.arrowwidth,standoff:n.standoff,startstandoff:n.startstandoff,hovertext:n.hovertext,hoverlabel:n.hoverlabel,captureevents:n.captureevents}),\"calc\",\"from-root\")},{\"../../plot_api/edit_types\":727,\"../../plot_api/plot_template\":734,\"../annotations/attributes\":553}],563:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../plots/cartesian/axes\");function a(t,e){var r=e.fullSceneLayout.domain,a=e.fullLayout._size,o={pdata:null,type:\"linear\",autorange:!1,range:[-1/0,1/0]};t._xa={},n.extendFlat(t._xa,o),i.setConvert(t._xa),t._xa._offset=a.l+r.x[0]*a.w,t._xa.l2p=function(){return.5*(1+t._pdata[0]/t._pdata[3])*a.w*(r.x[1]-r.x[0])},t._ya={},n.extendFlat(t._ya,o),i.setConvert(t._ya),t._ya._offset=a.t+(1-r.y[1])*a.h,t._ya.l2p=function(){return.5*(1-t._pdata[1]/t._pdata[3])*a.h*(r.y[1]-r.y[0])}}e.exports=function(t){for(var e=t.fullSceneLayout.annotations,r=0;r<e.length;r++)a(e[r],t);t.fullLayout._infolayer.selectAll(\".annotation-\"+t.id).remove()}},{\"../../lib\":696,\"../../plots/cartesian/axes\":744}],564:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../plots/cartesian/axes\"),a=t(\"../../plots/array_container_defaults\"),o=t(\"../annotations/common_defaults\"),s=t(\"./attributes\");function l(t,e,r,a){function l(r,i){return n.coerce(t,e,s,r,i)}function c(t){var n=t+\"axis\",a={_fullLayout:{}};return a._fullLayout[n]=r[n],i.coercePosition(e,a,l,t,t,.5)}l(\"visible\")&&(o(t,e,a.fullLayout,l),c(\"x\"),c(\"y\"),c(\"z\"),n.noneOrAll(t,e,[\"x\",\"y\",\"z\"]),e.xref=\"x\",e.yref=\"y\",e.zref=\"z\",l(\"xanchor\"),l(\"yanchor\"),l(\"xshift\"),l(\"yshift\"),e.showarrow&&(e.axref=\"pixel\",e.ayref=\"pixel\",l(\"ax\",-10),l(\"ay\",-30),n.noneOrAll(t,e,[\"ax\",\"ay\"])))}e.exports=function(t,e,r){a(t,e,{name:\"annotations\",handleItemDefaults:l,fullLayout:r.fullLayout})}},{\"../../lib\":696,\"../../plots/array_container_defaults\":740,\"../../plots/cartesian/axes\":744,\"../annotations/common_defaults\":556,\"./attributes\":562}],565:[function(t,e,r){\"use strict\";var n=t(\"../annotations/draw\").drawRaw,i=t(\"../../plots/gl3d/project\"),a=[\"x\",\"y\",\"z\"];e.exports=function(t){for(var e=t.fullSceneLayout,r=t.dataScale,o=e.annotations,s=0;s<o.length;s++){for(var l=o[s],c=!1,u=0;u<3;u++){var f=a[u],h=l[f],p=e[f+\"axis\"].r2fraction(h);if(p<0||p>1){c=!0;break}}c?t.fullLayout._infolayer.select(\".annotation-\"+t.id+'[data-index=\"'+s+'\"]').remove():(l._pdata=i(t.glplot.cameraParams,[e.xaxis.r2l(l.x)*r[0],e.yaxis.r2l(l.y)*r[1],e.zaxis.r2l(l.z)*r[2]]),n(t.graphDiv,l,s,t.id,l._xa,l._ya))}}},{\"../../plots/gl3d/project\":796,\"../annotations/draw\":559}],566:[function(t,e,r){\"use strict\";var n=t(\"../../registry\"),i=t(\"../../lib\");e.exports={moduleType:\"component\",name:\"annotations3d\",schema:{subplots:{scene:{annotations:t(\"./attributes\")}}},layoutAttributes:t(\"./attributes\"),handleDefaults:t(\"./defaults\"),includeBasePlot:function(t,e){var r=n.subplotsRegistry.gl3d;if(!r)return;for(var a=r.attrRegex,o=Object.keys(t),s=0;s<o.length;s++){var l=o[s];a.test(l)&&(t[l].annotations||[]).length&&(i.pushUnique(e._basePlotModules,r),i.pushUnique(e._subplots.gl3d,l))}},convert:t(\"./convert\"),draw:t(\"./draw\")}},{\"../../lib\":696,\"../../registry\":827,\"./attributes\":562,\"./convert\":563,\"./defaults\":564,\"./draw\":565}],567:[function(t,e,r){\"use strict\";e.exports=t(\"world-calendars/dist/main\"),t(\"world-calendars/dist/plus\"),t(\"world-calendars/dist/calendars/chinese\"),t(\"world-calendars/dist/calendars/coptic\"),t(\"world-calendars/dist/calendars/discworld\"),t(\"world-calendars/dist/calendars/ethiopian\"),t(\"world-calendars/dist/calendars/hebrew\"),t(\"world-calendars/dist/calendars/islamic\"),t(\"world-calendars/dist/calendars/julian\"),t(\"world-calendars/dist/calendars/mayan\"),t(\"world-calendars/dist/calendars/nanakshahi\"),t(\"world-calendars/dist/calendars/nepali\"),t(\"world-calendars/dist/calendars/persian\"),t(\"world-calendars/dist/calendars/taiwan\"),t(\"world-calendars/dist/calendars/thai\"),t(\"world-calendars/dist/calendars/ummalqura\")},{\"world-calendars/dist/calendars/chinese\":534,\"world-calendars/dist/calendars/coptic\":535,\"world-calendars/dist/calendars/discworld\":536,\"world-calendars/dist/calendars/ethiopian\":537,\"world-calendars/dist/calendars/hebrew\":538,\"world-calendars/dist/calendars/islamic\":539,\"world-calendars/dist/calendars/julian\":540,\"world-calendars/dist/calendars/mayan\":541,\"world-calendars/dist/calendars/nanakshahi\":542,\"world-calendars/dist/calendars/nepali\":543,\"world-calendars/dist/calendars/persian\":544,\"world-calendars/dist/calendars/taiwan\":545,\"world-calendars/dist/calendars/thai\":546,\"world-calendars/dist/calendars/ummalqura\":547,\"world-calendars/dist/main\":548,\"world-calendars/dist/plus\":549}],568:[function(t,e,r){\"use strict\";var n=t(\"./calendars\"),i=t(\"../../lib\"),a=t(\"../../constants/numerical\"),o=a.EPOCHJD,s=a.ONEDAY,l={valType:\"enumerated\",values:Object.keys(n.calendars),editType:\"calc\",dflt:\"gregorian\"},c=function(t,e,r,n){var a={};return a[r]=l,i.coerce(t,e,a,r,n)},u=\"##\",f={d:{0:\"dd\",\"-\":\"d\"},e:{0:\"d\",\"-\":\"d\"},a:{0:\"D\",\"-\":\"D\"},A:{0:\"DD\",\"-\":\"DD\"},j:{0:\"oo\",\"-\":\"o\"},W:{0:\"ww\",\"-\":\"w\"},m:{0:\"mm\",\"-\":\"m\"},b:{0:\"M\",\"-\":\"M\"},B:{0:\"MM\",\"-\":\"MM\"},y:{0:\"yy\",\"-\":\"yy\"},Y:{0:\"yyyy\",\"-\":\"yyyy\"},U:u,w:u,c:{0:\"D M d %X yyyy\",\"-\":\"D M d %X yyyy\"},x:{0:\"mm/dd/yyyy\",\"-\":\"mm/dd/yyyy\"}};var h={};function p(t){var e=h[t];return e||(e=h[t]=n.instance(t))}function d(t){return i.extendFlat({},l,{description:t})}function g(t){return\"Sets the calendar system to use with `\"+t+\"` date data.\"}var v={xcalendar:d(g(\"x\"))},m=i.extendFlat({},v,{ycalendar:d(g(\"y\"))}),y=i.extendFlat({},m,{zcalendar:d(g(\"z\"))}),x=d([\"Sets the calendar system to use for `range` and `tick0`\",\"if this is a date axis. This does not set the calendar for\",\"interpreting data on this axis, that's specified in the trace\",\"or via the global `layout.calendar`\"].join(\" \"));e.exports={moduleType:\"component\",name:\"calendars\",schema:{traces:{scatter:m,bar:m,box:m,heatmap:m,contour:m,histogram:m,histogram2d:m,histogram2dcontour:m,scatter3d:y,surface:y,mesh3d:y,scattergl:m,ohlc:v,candlestick:v},layout:{calendar:d([\"Sets the default calendar system to use for interpreting and\",\"displaying dates throughout the plot.\"].join(\" \"))},subplots:{xaxis:{calendar:x},yaxis:{calendar:x},scene:{xaxis:{calendar:x},yaxis:{calendar:x},zaxis:{calendar:x}},polar:{radialaxis:{calendar:x}}},transforms:{filter:{valuecalendar:d([\"Sets the calendar system to use for `value`, if it is a date.\"].join(\" \")),targetcalendar:d([\"Sets the calendar system to use for `target`, if it is an\",\"array of dates. If `target` is a string (eg *x*) we use the\",\"corresponding trace attribute (eg `xcalendar`) if it exists,\",\"even if `targetcalendar` is provided.\"].join(\" \"))}}},layoutAttributes:l,handleDefaults:c,handleTraceDefaults:function(t,e,r,n){for(var i=0;i<r.length;i++)c(t,e,r[i]+\"calendar\",n.calendar)},CANONICAL_SUNDAY:{chinese:\"2000-01-02\",coptic:\"2000-01-03\",discworld:\"2000-01-03\",ethiopian:\"2000-01-05\",hebrew:\"5000-01-01\",islamic:\"1000-01-02\",julian:\"2000-01-03\",mayan:\"5000-01-01\",nanakshahi:\"1000-01-05\",nepali:\"2000-01-05\",persian:\"1000-01-01\",jalali:\"1000-01-01\",taiwan:\"1000-01-04\",thai:\"2000-01-04\",ummalqura:\"1400-01-06\"},CANONICAL_TICK:{chinese:\"2000-01-01\",coptic:\"2000-01-01\",discworld:\"2000-01-01\",ethiopian:\"2000-01-01\",hebrew:\"5000-01-01\",islamic:\"1000-01-01\",julian:\"2000-01-01\",mayan:\"5000-01-01\",nanakshahi:\"1000-01-01\",nepali:\"2000-01-01\",persian:\"1000-01-01\",jalali:\"1000-01-01\",taiwan:\"1000-01-01\",thai:\"2000-01-01\",ummalqura:\"1400-01-01\"},DFLTRANGE:{chinese:[\"2000-01-01\",\"2001-01-01\"],coptic:[\"1700-01-01\",\"1701-01-01\"],discworld:[\"1800-01-01\",\"1801-01-01\"],ethiopian:[\"2000-01-01\",\"2001-01-01\"],hebrew:[\"5700-01-01\",\"5701-01-01\"],islamic:[\"1400-01-01\",\"1401-01-01\"],julian:[\"2000-01-01\",\"2001-01-01\"],mayan:[\"5200-01-01\",\"5201-01-01\"],nanakshahi:[\"0500-01-01\",\"0501-01-01\"],nepali:[\"2000-01-01\",\"2001-01-01\"],persian:[\"1400-01-01\",\"1401-01-01\"],jalali:[\"1400-01-01\",\"1401-01-01\"],taiwan:[\"0100-01-01\",\"0101-01-01\"],thai:[\"2500-01-01\",\"2501-01-01\"],ummalqura:[\"1400-01-01\",\"1401-01-01\"]},getCal:p,worldCalFmt:function(t,e,r){for(var n,i,a,l,c,h=Math.floor((e+.05)/s)+o,d=p(r).fromJD(h),g=0;-1!==(g=t.indexOf(\"%\",g));)\"0\"===(n=t.charAt(g+1))||\"-\"===n||\"_\"===n?(a=3,i=t.charAt(g+2),\"_\"===n&&(n=\"-\")):(i=n,n=\"0\",a=2),(l=f[i])?(c=l===u?u:d.formatDate(l[n]),t=t.substr(0,g)+c+t.substr(g+a),g+=c.length):g+=a;return t}}},{\"../../constants/numerical\":673,\"../../lib\":696,\"./calendars\":567}],569:[function(t,e,r){\"use strict\";r.defaults=[\"#1f77b4\",\"#ff7f0e\",\"#2ca02c\",\"#d62728\",\"#9467bd\",\"#8c564b\",\"#e377c2\",\"#7f7f7f\",\"#bcbd22\",\"#17becf\"],r.defaultLine=\"#444\",r.lightLine=\"#eee\",r.background=\"#fff\",r.borderLine=\"#BEC8D9\",r.lightFraction=1e3/11},{}],570:[function(t,e,r){\"use strict\";var n=t(\"tinycolor2\"),i=t(\"fast-isnumeric\"),a=e.exports={},o=t(\"./attributes\");a.defaults=o.defaults;var s=a.defaultLine=o.defaultLine;a.lightLine=o.lightLine;var l=a.background=o.background;function c(t){if(i(t)||\"string\"!=typeof t)return t;var e=t.trim();if(\"rgb\"!==e.substr(0,3))return t;var r=e.match(/^rgba?\\s*\\(([^()]*)\\)$/);if(!r)return t;var n=r[1].trim().split(/\\s*[\\s,]\\s*/),a=\"a\"===e.charAt(3)&&4===n.length;if(!a&&3!==n.length)return t;for(var o=0;o<n.length;o++){if(!n[o].length)return t;if(n[o]=Number(n[o]),!(n[o]>=0))return t;if(3===o)n[o]>1&&(n[o]=1);else if(n[o]>=1)return t}var s=Math.round(255*n[0])+\", \"+Math.round(255*n[1])+\", \"+Math.round(255*n[2]);return a?\"rgba(\"+s+\", \"+n[3]+\")\":\"rgb(\"+s+\")\"}a.tinyRGB=function(t){var e=t.toRgb();return\"rgb(\"+Math.round(e.r)+\", \"+Math.round(e.g)+\", \"+Math.round(e.b)+\")\"},a.rgb=function(t){return a.tinyRGB(n(t))},a.opacity=function(t){return t?n(t).getAlpha():0},a.addOpacity=function(t,e){var r=n(t).toRgb();return\"rgba(\"+Math.round(r.r)+\", \"+Math.round(r.g)+\", \"+Math.round(r.b)+\", \"+e+\")\"},a.combine=function(t,e){var r=n(t).toRgb();if(1===r.a)return n(t).toRgbString();var i=n(e||l).toRgb(),a=1===i.a?i:{r:255*(1-i.a)+i.r*i.a,g:255*(1-i.a)+i.g*i.a,b:255*(1-i.a)+i.b*i.a},o={r:a.r*(1-r.a)+r.r*r.a,g:a.g*(1-r.a)+r.g*r.a,b:a.b*(1-r.a)+r.b*r.a};return n(o).toRgbString()},a.contrast=function(t,e,r){var i=n(t);return 1!==i.getAlpha()&&(i=n(a.combine(t,l))),(i.isDark()?e?i.lighten(e):l:r?i.darken(r):s).toString()},a.stroke=function(t,e){var r=n(e);t.style({stroke:a.tinyRGB(r),\"stroke-opacity\":r.getAlpha()})},a.fill=function(t,e){var r=n(e);t.style({fill:a.tinyRGB(r),\"fill-opacity\":r.getAlpha()})},a.clean=function(t){if(t&&\"object\"==typeof t){var e,r,n,i,o=Object.keys(t);for(e=0;e<o.length;e++)if(i=t[n=o[e]],\"color\"===n.substr(n.length-5))if(Array.isArray(i))for(r=0;r<i.length;r++)i[r]=c(i[r]);else t[n]=c(i);else if(\"colorscale\"===n.substr(n.length-10)&&Array.isArray(i))for(r=0;r<i.length;r++)Array.isArray(i[r])&&(i[r][1]=c(i[r][1]));else if(Array.isArray(i)){var s=i[0];if(!Array.isArray(s)&&s&&\"object\"==typeof s)for(r=0;r<i.length;r++)a.clean(i[r])}else i&&\"object\"==typeof i&&a.clean(i)}}},{\"./attributes\":569,\"fast-isnumeric\":214,tinycolor2:514}],571:[function(t,e,r){\"use strict\";var n=t(\"../../plots/cartesian/layout_attributes\"),i=t(\"../../plots/font_attributes\"),a=t(\"../../lib/extend\").extendFlat,o=t(\"../../plot_api/edit_types\").overrideAll;e.exports=o({thicknessmode:{valType:\"enumerated\",values:[\"fraction\",\"pixels\"],dflt:\"pixels\"},thickness:{valType:\"number\",min:0,dflt:30},lenmode:{valType:\"enumerated\",values:[\"fraction\",\"pixels\"],dflt:\"fraction\"},len:{valType:\"number\",min:0,dflt:1},x:{valType:\"number\",dflt:1.02,min:-2,max:3},xanchor:{valType:\"enumerated\",values:[\"left\",\"center\",\"right\"],dflt:\"left\"},xpad:{valType:\"number\",min:0,dflt:10},y:{valType:\"number\",dflt:.5,min:-2,max:3},yanchor:{valType:\"enumerated\",values:[\"top\",\"middle\",\"bottom\"],dflt:\"middle\"},ypad:{valType:\"number\",min:0,dflt:10},outlinecolor:n.linecolor,outlinewidth:n.linewidth,bordercolor:n.linecolor,borderwidth:{valType:\"number\",min:0,dflt:0},bgcolor:{valType:\"color\",dflt:\"rgba(0,0,0,0)\"},tickmode:n.tickmode,nticks:n.nticks,tick0:n.tick0,dtick:n.dtick,tickvals:n.tickvals,ticktext:n.ticktext,ticks:a({},n.ticks,{dflt:\"\"}),ticklen:n.ticklen,tickwidth:n.tickwidth,tickcolor:n.tickcolor,showticklabels:n.showticklabels,tickfont:i({}),tickangle:n.tickangle,tickformat:n.tickformat,tickformatstops:n.tickformatstops,tickprefix:n.tickprefix,showtickprefix:n.showtickprefix,ticksuffix:n.ticksuffix,showticksuffix:n.showticksuffix,separatethousands:n.separatethousands,exponentformat:n.exponentformat,showexponent:n.showexponent,title:{valType:\"string\"},titlefont:i({}),titleside:{valType:\"enumerated\",values:[\"right\",\"top\",\"bottom\"],dflt:\"top\"}},\"colorbars\",\"from-root\")},{\"../../lib/extend\":685,\"../../plot_api/edit_types\":727,\"../../plots/cartesian/layout_attributes\":757,\"../../plots/font_attributes\":771}],572:[function(t,e,r){\"use strict\";var n=t(\"./draw\");e.exports=function(t,e,r){if(\"function\"==typeof r)return r(t,e);var i=e[0].trace,a=\"cb\"+i.uid,o=r.container,s=o?i[o]:i;(t._fullLayout._infolayer.selectAll(\".\"+a).remove(),s&&s.showscale)&&(e[0].t.cb=n(t,a)).fillgradient(s.colorscale).zrange([s[r.min],s[r.max]]).options(s.colorbar)()}},{\"./draw\":575}],573:[function(t,e,r){\"use strict\";e.exports={cn:{colorbar:\"colorbar\",cbbg:\"cbbg\",cbfill:\"cbfill\",cbfills:\"cbfills\",cbline:\"cbline\",cblines:\"cblines\",cbaxis:\"cbaxis\",cbtitleunshift:\"cbtitleunshift\",cbtitle:\"cbtitle\",cboutline:\"cboutline\",crisp:\"crisp\",jsPlaceholder:\"js-placeholder\"}}},{}],574:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../plot_api/plot_template\"),a=t(\"../../plots/cartesian/tick_value_defaults\"),o=t(\"../../plots/cartesian/tick_mark_defaults\"),s=t(\"../../plots/cartesian/tick_label_defaults\"),l=t(\"./attributes\");e.exports=function(t,e,r){var c=i.newContainer(e,\"colorbar\"),u=t.colorbar||{};function f(t,e){return n.coerce(u,c,l,t,e)}var h=f(\"thicknessmode\");f(\"thickness\",\"fraction\"===h?30/(r.width-r.margin.l-r.margin.r):30);var p=f(\"lenmode\");f(\"len\",\"fraction\"===p?1:r.height-r.margin.t-r.margin.b),f(\"x\"),f(\"xanchor\"),f(\"xpad\"),f(\"y\"),f(\"yanchor\"),f(\"ypad\"),n.noneOrAll(u,c,[\"x\",\"y\"]),f(\"outlinecolor\"),f(\"outlinewidth\"),f(\"bordercolor\"),f(\"borderwidth\"),f(\"bgcolor\"),a(u,c,f,\"linear\");var d={outerTicks:!1,font:r.font};s(u,c,f,\"linear\",d),o(u,c,f,\"linear\",d),f(\"title\",r._dfltTitle.colorbar),n.coerceFont(f,\"titlefont\",r.font),f(\"titleside\")}},{\"../../lib\":696,\"../../plot_api/plot_template\":734,\"../../plots/cartesian/tick_label_defaults\":764,\"../../plots/cartesian/tick_mark_defaults\":765,\"../../plots/cartesian/tick_value_defaults\":766,\"./attributes\":571}],575:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"tinycolor2\"),a=t(\"../../plots/plots\"),o=t(\"../../registry\"),s=t(\"../../plots/cartesian/axes\"),l=t(\"../dragelement\"),c=t(\"../../lib\"),u=t(\"../../lib/extend\").extendFlat,f=t(\"../../lib/setcursor\"),h=t(\"../drawing\"),p=t(\"../color\"),d=t(\"../titles\"),g=t(\"../../lib/svg_text_utils\"),v=t(\"../../constants/alignment\"),m=v.LINE_SPACING,y=v.FROM_TL,x=v.FROM_BR,b=t(\"../../plots/cartesian/axis_defaults\"),_=t(\"../../plots/cartesian/position_defaults\"),w=t(\"../../plots/cartesian/layout_attributes\"),k=t(\"./attributes\"),M=t(\"./constants\").cn;e.exports=function(t,e){var r={};for(var v in k)r[v]=null;function A(){var v=t._fullLayout,k=v._size;if(\"function\"==typeof r.fillcolor||\"function\"==typeof r.line.color||r.fillgradient){var S,E,C=r.zrange||n.extent((\"function\"==typeof r.fillcolor?r.fillcolor:r.line.color).domain()),L=[],z=[],O=\"function\"==typeof r.line.color?r.line.color:function(){return r.line.color},I=\"function\"==typeof r.fillcolor?r.fillcolor:function(){return r.fillcolor},P=r.levels.end+r.levels.size/100,D=r.levels.size,R=1.001*C[0]-.001*C[1],B=1.001*C[1]-.001*C[0];for(E=0;E<1e5&&(S=r.levels.start+E*D,!(D>0?S>=P:S<=P));E++)S>R&&S<B&&L.push(S);if(r.fillgradient)z=[0];else if(\"function\"==typeof r.fillcolor)if(r.filllevels)for(P=r.filllevels.end+r.filllevels.size/100,D=r.filllevels.size,E=0;E<1e5&&(S=r.filllevels.start+E*D,!(D>0?S>=P:S<=P));E++)S>C[0]&&S<C[1]&&z.push(S);else(z=L.map(function(t){return t-r.levels.size/2})).push(z[z.length-1]+r.levels.size);else r.fillcolor&&\"string\"==typeof r.fillcolor&&(z=[0]);r.levels.size<0&&(L.reverse(),z.reverse());var F,N=k.h,j=k.w,V=Math.round(r.thickness*(\"fraction\"===r.thicknessmode?j:1)),U=V/k.w,q=Math.round(r.len*(\"fraction\"===r.lenmode?N:1)),H=q/k.h,G=r.xpad/k.w,W=(r.borderwidth+r.outlinewidth)/2,Y=r.ypad/k.h,X=Math.round(r.x*k.w+r.xpad),Z=r.x-U*({middle:.5,right:1}[r.xanchor]||0),$=r.y+H*(({top:-.5,bottom:.5}[r.yanchor]||0)-.5),J=Math.round(k.h*(1-$)),K=J-q,Q={type:\"linear\",range:C,tickmode:r.tickmode,nticks:r.nticks,tick0:r.tick0,dtick:r.dtick,tickvals:r.tickvals,ticktext:r.ticktext,ticks:r.ticks,ticklen:r.ticklen,tickwidth:r.tickwidth,tickcolor:r.tickcolor,showticklabels:r.showticklabels,tickfont:r.tickfont,tickangle:r.tickangle,tickformat:r.tickformat,exponentformat:r.exponentformat,separatethousands:r.separatethousands,showexponent:r.showexponent,showtickprefix:r.showtickprefix,tickprefix:r.tickprefix,showticksuffix:r.showticksuffix,ticksuffix:r.ticksuffix,title:r.title,titlefont:r.titlefont,showline:!0,anchor:\"free\",position:1},tt={type:\"linear\",_id:\"y\"+e},et={letter:\"y\",font:v.font,noHover:!0,calendar:v.calendar};if(b(Q,tt,vt,et,v),_(Q,tt,vt,et),tt.position=r.x+G+U,A.axis=tt,-1!==[\"top\",\"bottom\"].indexOf(r.titleside)&&(tt.titleside=r.titleside,tt.titlex=r.x+G,tt.titley=$+(\"top\"===r.titleside?H-Y:Y)),r.line.color&&\"auto\"===r.tickmode){tt.tickmode=\"linear\",tt.tick0=r.levels.start;var rt=r.levels.size,nt=c.constrain((J-K)/50,4,15)+1,it=(C[1]-C[0])/((r.nticks||nt)*rt);if(it>1){var at=Math.pow(10,Math.floor(Math.log(it)/Math.LN10));rt*=at*c.roundUp(it/at,[2,5,10]),(Math.abs(r.levels.start)/r.levels.size+1e-6)%1<2e-6&&(tt.tick0=0)}tt.dtick=rt}tt.domain=[$+Y,$+H-Y],tt.setScale();var ot=c.ensureSingle(v._infolayer,\"g\",e,function(t){t.classed(M.colorbar,!0).each(function(){var t=n.select(this);t.append(\"rect\").classed(M.cbbg,!0),t.append(\"g\").classed(M.cbfills,!0),t.append(\"g\").classed(M.cblines,!0),t.append(\"g\").classed(M.cbaxis,!0).classed(M.crisp,!0),t.append(\"g\").classed(M.cbtitleunshift,!0).append(\"g\").classed(M.cbtitle,!0),t.append(\"rect\").classed(M.cboutline,!0),t.select(\".cbtitle\").datum(0)})});ot.attr(\"transform\",\"translate(\"+Math.round(k.l)+\",\"+Math.round(k.t)+\")\");var st=ot.select(\".cbtitleunshift\").attr(\"transform\",\"translate(-\"+Math.round(k.l)+\",-\"+Math.round(k.t)+\")\");tt._axislayer=ot.select(\".cbaxis\");var lt=0;if(-1!==[\"top\",\"bottom\"].indexOf(r.titleside)){var ct,ut=k.l+(r.x+G)*k.w,ft=tt.titlefont.size;ct=\"top\"===r.titleside?(1-($+H-Y))*k.h+k.t+3+.75*ft:(1-($+Y))*k.h+k.t-3-.25*ft,mt(tt._id+\"title\",{attributes:{x:ut,y:ct,\"text-anchor\":\"start\"}})}var ht,pt,dt,gt=c.syncOrAsync([a.previousPromises,function(){if(-1!==[\"top\",\"bottom\"].indexOf(r.titleside)){var a=ot.select(\".cbtitle\"),o=a.select(\"text\"),l=[-r.outlinewidth/2,r.outlinewidth/2],u=a.select(\".h\"+tt._id+\"title-math-group\").node(),f=15.6;if(o.node()&&(f=parseInt(o.node().style.fontSize,10)*m),u?(lt=h.bBox(u).height)>f&&(l[1]-=(lt-f)/2):o.node()&&!o.classed(M.jsPlaceholder)&&(lt=h.bBox(o.node()).height),lt){if(lt+=5,\"top\"===r.titleside)tt.domain[1]-=lt/k.h,l[1]*=-1;else{tt.domain[0]+=lt/k.h;var p=g.lineCount(o);l[1]+=(1-p)*f}a.attr(\"transform\",\"translate(\"+l+\")\"),tt.setScale()}}ot.selectAll(\".cbfills,.cblines\").attr(\"transform\",\"translate(0,\"+Math.round(k.h*(1-tt.domain[1]))+\")\"),tt._axislayer.attr(\"transform\",\"translate(0,\"+Math.round(-k.t)+\")\");var d=ot.select(\".cbfills\").selectAll(\"rect.cbfill\").data(z);d.enter().append(\"rect\").classed(M.cbfill,!0).style(\"stroke\",\"none\"),d.exit().remove();var y=C.map(tt.c2p).map(Math.round).sort(function(t,e){return t-e});d.each(function(a,o){var s=[0===o?C[0]:(z[o]+z[o-1])/2,o===z.length-1?C[1]:(z[o]+z[o+1])/2].map(tt.c2p).map(Math.round);s[1]=c.constrain(s[1]+(s[1]>s[0])?1:-1,y[0],y[1]);var l=n.select(this).attr({x:X,width:Math.max(V,2),y:n.min(s),height:Math.max(n.max(s)-n.min(s),2)});if(r.fillgradient)h.gradient(l,t,e,\"vertical\",r.fillgradient,\"fill\");else{var u=I(a).replace(\"e-\",\"\");l.attr(\"fill\",i(u).toHexString())}});var x=ot.select(\".cblines\").selectAll(\"path.cbline\").data(r.line.color&&r.line.width?L:[]);return x.enter().append(\"path\").classed(M.cbline,!0),x.exit().remove(),x.each(function(t){n.select(this).attr(\"d\",\"M\"+X+\",\"+(Math.round(tt.c2p(t))+r.line.width/2%1)+\"h\"+V).call(h.lineGroupStyle,r.line.width,O(t),r.line.dash)}),tt._axislayer.selectAll(\"g.\"+tt._id+\"tick,path\").remove(),tt._pos=X+V+(r.outlinewidth||0)/2-(\"outside\"===r.ticks?1:0),tt.side=\"right\",c.syncOrAsync([function(){return s.doTicksSingle(t,tt,!0)},function(){if(-1===[\"top\",\"bottom\"].indexOf(r.titleside)){var e=tt.titlefont.size,i=tt._offset+tt._length/2,a=k.l+(tt.position||0)*k.w+(\"right\"===tt.side?10+e*(tt.showticklabels?1:.5):-10-e*(tt.showticklabels?.5:0));mt(\"h\"+tt._id+\"title\",{avoid:{selection:n.select(t).selectAll(\"g.\"+tt._id+\"tick\"),side:r.titleside,offsetLeft:k.l,offsetTop:0,maxShift:v.width},attributes:{x:a,y:i,\"text-anchor\":\"middle\"},transform:{rotate:\"-90\",offset:0}})}}])},a.previousPromises,function(){var n=V+r.outlinewidth/2+h.bBox(tt._axislayer.node()).width;if((F=st.select(\"text\")).node()&&!F.classed(M.jsPlaceholder)){var i,o=st.select(\".h\"+tt._id+\"title-math-group\").node();i=o&&-1!==[\"top\",\"bottom\"].indexOf(r.titleside)?h.bBox(o).width:h.bBox(st.node()).right-X-k.l,n=Math.max(n,i)}var s=2*r.xpad+n+r.borderwidth+r.outlinewidth/2,l=J-K;ot.select(\".cbbg\").attr({x:X-r.xpad-(r.borderwidth+r.outlinewidth)/2,y:K-W,width:Math.max(s,2),height:Math.max(l+2*W,2)}).call(p.fill,r.bgcolor).call(p.stroke,r.bordercolor).style({\"stroke-width\":r.borderwidth}),ot.selectAll(\".cboutline\").attr({x:X,y:K+r.ypad+(\"top\"===r.titleside?lt:0),width:Math.max(V,2),height:Math.max(l-2*r.ypad-lt,2)}).call(p.stroke,r.outlinecolor).style({fill:\"None\",\"stroke-width\":r.outlinewidth});var c=({center:.5,right:1}[r.xanchor]||0)*s;ot.attr(\"transform\",\"translate(\"+(k.l-c)+\",\"+k.t+\")\");var u={},f=y[r.yanchor],d=x[r.yanchor];\"pixels\"===r.lenmode?(u.y=r.y,u.t=l*f,u.b=l*d):(u.t=u.b=0,u.yt=r.y+r.len*f,u.yb=r.y-r.len*d);var g=y[r.xanchor],v=x[r.xanchor];if(\"pixels\"===r.thicknessmode)u.x=r.x,u.l=s*g,u.r=s*v;else{var m=s-V;u.l=m*g,u.r=m*v,u.xl=r.x-r.thickness*g,u.xr=r.x+r.thickness*v}a.autoMargin(t,e,u)}],t);if(gt&&gt.then&&(t._promises||[]).push(gt),t._context.edits.colorbarPosition)l.init({element:ot.node(),gd:t,prepFn:function(){ht=ot.attr(\"transform\"),f(ot)},moveFn:function(t,e){ot.attr(\"transform\",ht+\" translate(\"+t+\",\"+e+\")\"),pt=l.align(Z+t/k.w,U,0,1,r.xanchor),dt=l.align($-e/k.h,H,0,1,r.yanchor);var n=l.getCursor(pt,dt,r.xanchor,r.yanchor);f(ot,n)},doneFn:function(){f(ot),void 0!==pt&&void 0!==dt&&o.call(\"restyle\",t,{\"colorbar.x\":pt,\"colorbar.y\":dt},T().index)}});return gt}function vt(t,e){return c.coerce(Q,tt,w,t,e)}function mt(e,r){var n=T(),i=\"colorbar.title\",a=n._module.colorbar.container;a&&(i=a+\".\"+i);var o={propContainer:tt,propName:i,traceIndex:n.index,placeholder:v._dfltTitle.colorbar,containerGroup:ot.select(\".cbtitle\")},s=\"h\"===e.charAt(0)?e.substr(1):\"h\"+e;ot.selectAll(\".\"+s+\",.\"+s+\"-math-group\").remove(),d.draw(t,e,u(o,r||{}))}v._infolayer.selectAll(\"g.\"+e).remove()}function T(){var r,n,i=e.substr(2);for(r=0;r<t._fullData.length;r++)if((n=t._fullData[r]).uid===i)return n}return r.fillcolor=null,r.line={color:null,width:null,dash:null},r.levels={start:null,end:null,size:null},r.filllevels=null,r.fillgradient=null,r.zrange=null,Object.keys(r).forEach(function(t){A[t]=function(e){return arguments.length?(r[t]=c.isPlainObject(r[t])?c.extendFlat(r[t],e):e,A):r[t]}}),A.options=function(t){for(var e in t)\"function\"==typeof A[e]&&A[e](t[e]);return A},A._opts=r,A}},{\"../../constants/alignment\":668,\"../../lib\":696,\"../../lib/extend\":685,\"../../lib/setcursor\":716,\"../../lib/svg_text_utils\":720,\"../../plots/cartesian/axes\":744,\"../../plots/cartesian/axis_defaults\":746,\"../../plots/cartesian/layout_attributes\":757,\"../../plots/cartesian/position_defaults\":760,\"../../plots/plots\":808,\"../../registry\":827,\"../color\":570,\"../dragelement\":592,\"../drawing\":595,\"../titles\":661,\"./attributes\":571,\"./constants\":573,d3:148,tinycolor2:514}],576:[function(t,e,r){\"use strict\";var n=t(\"../../lib\");e.exports=function(t){return n.isPlainObject(t.colorbar)}},{\"../../lib\":696}],577:[function(t,e,r){\"use strict\";var n=t(\"./scales.js\");Object.keys(n);function i(t){return\"`\"+t+\"`\"}e.exports=function(t,e){t=t||\"\";var r,a=(e=e||{}).cLetter||\"c\",o=(\"onlyIfNumerical\"in e?e.onlyIfNumerical:Boolean(t),\"noScale\"in e?e.noScale:\"marker.line\"===t),s=\"showScaleDflt\"in e?e.showScaleDflt:\"z\"===a,l=\"string\"==typeof e.colorscaleDflt?n[e.colorscaleDflt]:null,c=e.editTypeOverride||\"\",u=t?t+\".\":\"\";\"colorAttr\"in e?(r=e.colorAttr,e.colorAttr):i(u+(r={z:\"z\",c:\"color\"}[a]));var f=a+\"auto\",h=a+\"min\",p=a+\"max\",d=(i(u+h),i(u+p),{});d[h]=d[p]=void 0;var g={};g[f]=!1;var v={};return\"color\"===r&&(v.color={valType:\"color\",arrayOk:!0,editType:c||\"style\"}),v[f]={valType:\"boolean\",dflt:!0,editType:\"calc\",impliedEdits:d},v[h]={valType:\"number\",dflt:null,editType:c||\"plot\",impliedEdits:g},v[p]={valType:\"number\",dflt:null,editType:c||\"plot\",impliedEdits:g},v.colorscale={valType:\"colorscale\",editType:\"calc\",dflt:l,impliedEdits:{autocolorscale:!1}},v.autocolorscale={valType:\"boolean\",dflt:!1!==e.autoColorDflt,editType:\"calc\",impliedEdits:{colorscale:void 0}},v.reversescale={valType:\"boolean\",dflt:!1,editType:\"calc\"},o||(v.showscale={valType:\"boolean\",dflt:s,editType:\"calc\"}),v}},{\"./scales.js\":589}],578:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"./scales\"),a=t(\"./flip_scale\");e.exports=function(t,e,r,o){var s=t,l=t._input,c=t._fullInput,u=t.updateStyle;function f(e,n,i){void 0===i&&(i=n),u?u(t._input,r?r+\".\"+e:e,n):l[e]=n,s[e]=i,c&&t!==t._fullInput&&(u?u(t._fullInput,r?r+\".\"+e:e,i):c[e]=i)}r&&(s=n.nestedProperty(s,r).get(),l=n.nestedProperty(l,r).get(),c=n.nestedProperty(c,r).get()||{});var h=o+\"auto\",p=o+\"min\",d=o+\"max\",g=s[h],v=s[p],m=s[d],y=s.colorscale;!1===g&&void 0!==v||(v=n.aggNums(Math.min,null,e)),!1===g&&void 0!==m||(m=n.aggNums(Math.max,null,e)),v===m&&(v-=.5,m+=.5),f(p,v),f(d,m),f(h,!1!==g||void 0===v&&void 0===m),s.autocolorscale&&(f(\"colorscale\",y=v*m<0?i.RdBu:v>=0?i.Reds:i.Blues,s.reversescale?a(y):y),l.autocolorscale||f(\"autocolorscale\",!1))}},{\"../../lib\":696,\"./flip_scale\":582,\"./scales\":589}],579:[function(t,e,r){\"use strict\";var n=t(\"./scales\");e.exports=n.RdBu},{\"./scales\":589}],580:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../../lib\"),a=t(\"../colorbar/has_colorbar\"),o=t(\"../colorbar/defaults\"),s=t(\"./is_valid_scale\"),l=t(\"./flip_scale\");e.exports=function(t,e,r,c,u){var f,h=u.prefix,p=u.cLetter,d=h.slice(0,h.length-1),g=h?i.nestedProperty(t,d).get()||{}:t,v=h?i.nestedProperty(e,d).get()||{}:e,m=g[p+\"min\"],y=g[p+\"max\"],x=g.colorscale;c(h+p+\"auto\",!(n(m)&&n(y)&&m<y)),c(h+p+\"min\"),c(h+p+\"max\"),void 0!==x&&(f=!s(x)),c(h+\"autocolorscale\",f);var b,_=c(h+\"colorscale\");(c(h+\"reversescale\")&&(v.colorscale=l(_)),\"marker.line.\"!==h)&&(u.noScale||(h&&(b=a(g)),c(h+\"showscale\",b)&&o(g,v,r)))}},{\"../../lib\":696,\"../colorbar/defaults\":574,\"../colorbar/has_colorbar\":576,\"./flip_scale\":582,\"./is_valid_scale\":586,\"fast-isnumeric\":214}],581:[function(t,e,r){\"use strict\";e.exports=function(t,e,r){for(var n=t.length,i=new Array(n),a=new Array(n),o=0;o<n;o++){var s=t[o];i[o]=e+s[0]*(r-e),a[o]=s[1]}return{domain:i,range:a}}},{}],582:[function(t,e,r){\"use strict\";e.exports=function(t){for(var e,r=t.length,n=new Array(r),i=r-1,a=0;i>=0;i--,a++)e=t[i],n[a]=[1-e[0],e[1]];return n}},{}],583:[function(t,e,r){\"use strict\";var n=t(\"./scales\"),i=t(\"./default_scale\"),a=t(\"./is_valid_scale_array\");e.exports=function(t,e){if(e||(e=i),!t)return e;function r(){try{t=n[t]||JSON.parse(t)}catch(r){t=e}}return\"string\"==typeof t&&(r(),\"string\"==typeof t&&r()),a(t)?t:e}},{\"./default_scale\":579,\"./is_valid_scale_array\":587,\"./scales\":589}],584:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../../lib\"),a=t(\"./is_valid_scale\");e.exports=function(t,e){var r=e?i.nestedProperty(t,e).get()||{}:t,o=r.color,s=!1;if(i.isArrayOrTypedArray(o))for(var l=0;l<o.length;l++)if(n(o[l])){s=!0;break}return i.isPlainObject(r)&&(s||!0===r.showscale||n(r.cmin)&&n(r.cmax)||a(r.colorscale)||i.isPlainObject(r.colorbar))}},{\"../../lib\":696,\"./is_valid_scale\":586,\"fast-isnumeric\":214}],585:[function(t,e,r){\"use strict\";r.scales=t(\"./scales\"),r.defaultScale=t(\"./default_scale\"),r.attributes=t(\"./attributes\"),r.handleDefaults=t(\"./defaults\"),r.calc=t(\"./calc\"),r.hasColorscale=t(\"./has_colorscale\"),r.isValidScale=t(\"./is_valid_scale\"),r.getScale=t(\"./get_scale\"),r.flipScale=t(\"./flip_scale\"),r.extractScale=t(\"./extract_scale\"),r.makeColorScaleFunc=t(\"./make_color_scale_func\")},{\"./attributes\":577,\"./calc\":578,\"./default_scale\":579,\"./defaults\":580,\"./extract_scale\":581,\"./flip_scale\":582,\"./get_scale\":583,\"./has_colorscale\":584,\"./is_valid_scale\":586,\"./make_color_scale_func\":588,\"./scales\":589}],586:[function(t,e,r){\"use strict\";var n=t(\"./scales\"),i=t(\"./is_valid_scale_array\");e.exports=function(t){return void 0!==n[t]||i(t)}},{\"./is_valid_scale_array\":587,\"./scales\":589}],587:[function(t,e,r){\"use strict\";var n=t(\"tinycolor2\");e.exports=function(t){var e=0;if(!Array.isArray(t)||t.length<2)return!1;if(!t[0]||!t[t.length-1])return!1;if(0!=+t[0][0]||1!=+t[t.length-1][0])return!1;for(var r=0;r<t.length;r++){var i=t[r];if(2!==i.length||+i[0]<e||!n(i[1]).isValid())return!1;e=+i[0]}return!0}},{tinycolor2:514}],588:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"tinycolor2\"),a=t(\"fast-isnumeric\"),o=t(\"../color\");function s(t){var e={r:t[0],g:t[1],b:t[2],a:t[3]};return i(e).toRgbString()}e.exports=function(t,e){e=e||{};for(var r=t.domain,l=t.range,c=l.length,u=new Array(c),f=0;f<c;f++){var h=i(l[f]).toRgb();u[f]=[h.r,h.g,h.b,h.a]}var p,d=n.scale.linear().domain(r).range(u).clamp(!0),g=e.noNumericCheck,v=e.returnArray;return(p=g&&v?d:g?function(t){return s(d(t))}:v?function(t){return a(t)?d(t):i(t).isValid()?t:o.defaultLine}:function(t){return a(t)?s(d(t)):i(t).isValid()?t:o.defaultLine}).domain=d.domain,p.range=function(){return l},p}},{\"../color\":570,d3:148,\"fast-isnumeric\":214,tinycolor2:514}],589:[function(t,e,r){\"use strict\";e.exports={Greys:[[0,\"rgb(0,0,0)\"],[1,\"rgb(255,255,255)\"]],YlGnBu:[[0,\"rgb(8,29,88)\"],[.125,\"rgb(37,52,148)\"],[.25,\"rgb(34,94,168)\"],[.375,\"rgb(29,145,192)\"],[.5,\"rgb(65,182,196)\"],[.625,\"rgb(127,205,187)\"],[.75,\"rgb(199,233,180)\"],[.875,\"rgb(237,248,217)\"],[1,\"rgb(255,255,217)\"]],Greens:[[0,\"rgb(0,68,27)\"],[.125,\"rgb(0,109,44)\"],[.25,\"rgb(35,139,69)\"],[.375,\"rgb(65,171,93)\"],[.5,\"rgb(116,196,118)\"],[.625,\"rgb(161,217,155)\"],[.75,\"rgb(199,233,192)\"],[.875,\"rgb(229,245,224)\"],[1,\"rgb(247,252,245)\"]],YlOrRd:[[0,\"rgb(128,0,38)\"],[.125,\"rgb(189,0,38)\"],[.25,\"rgb(227,26,28)\"],[.375,\"rgb(252,78,42)\"],[.5,\"rgb(253,141,60)\"],[.625,\"rgb(254,178,76)\"],[.75,\"rgb(254,217,118)\"],[.875,\"rgb(255,237,160)\"],[1,\"rgb(255,255,204)\"]],Bluered:[[0,\"rgb(0,0,255)\"],[1,\"rgb(255,0,0)\"]],RdBu:[[0,\"rgb(5,10,172)\"],[.35,\"rgb(106,137,247)\"],[.5,\"rgb(190,190,190)\"],[.6,\"rgb(220,170,132)\"],[.7,\"rgb(230,145,90)\"],[1,\"rgb(178,10,28)\"]],Reds:[[0,\"rgb(220,220,220)\"],[.2,\"rgb(245,195,157)\"],[.4,\"rgb(245,160,105)\"],[1,\"rgb(178,10,28)\"]],Blues:[[0,\"rgb(5,10,172)\"],[.35,\"rgb(40,60,190)\"],[.5,\"rgb(70,100,245)\"],[.6,\"rgb(90,120,245)\"],[.7,\"rgb(106,137,247)\"],[1,\"rgb(220,220,220)\"]],Picnic:[[0,\"rgb(0,0,255)\"],[.1,\"rgb(51,153,255)\"],[.2,\"rgb(102,204,255)\"],[.3,\"rgb(153,204,255)\"],[.4,\"rgb(204,204,255)\"],[.5,\"rgb(255,255,255)\"],[.6,\"rgb(255,204,255)\"],[.7,\"rgb(255,153,255)\"],[.8,\"rgb(255,102,204)\"],[.9,\"rgb(255,102,102)\"],[1,\"rgb(255,0,0)\"]],Rainbow:[[0,\"rgb(150,0,90)\"],[.125,\"rgb(0,0,200)\"],[.25,\"rgb(0,25,255)\"],[.375,\"rgb(0,152,255)\"],[.5,\"rgb(44,255,150)\"],[.625,\"rgb(151,255,0)\"],[.75,\"rgb(255,234,0)\"],[.875,\"rgb(255,111,0)\"],[1,\"rgb(255,0,0)\"]],Portland:[[0,\"rgb(12,51,131)\"],[.25,\"rgb(10,136,186)\"],[.5,\"rgb(242,211,56)\"],[.75,\"rgb(242,143,56)\"],[1,\"rgb(217,30,30)\"]],Jet:[[0,\"rgb(0,0,131)\"],[.125,\"rgb(0,60,170)\"],[.375,\"rgb(5,255,255)\"],[.625,\"rgb(255,255,0)\"],[.875,\"rgb(250,0,0)\"],[1,\"rgb(128,0,0)\"]],Hot:[[0,\"rgb(0,0,0)\"],[.3,\"rgb(230,0,0)\"],[.6,\"rgb(255,210,0)\"],[1,\"rgb(255,255,255)\"]],Blackbody:[[0,\"rgb(0,0,0)\"],[.2,\"rgb(230,0,0)\"],[.4,\"rgb(230,210,0)\"],[.7,\"rgb(255,255,255)\"],[1,\"rgb(160,200,255)\"]],Earth:[[0,\"rgb(0,0,130)\"],[.1,\"rgb(0,180,180)\"],[.2,\"rgb(40,210,40)\"],[.4,\"rgb(230,230,50)\"],[.6,\"rgb(120,70,20)\"],[1,\"rgb(255,255,255)\"]],Electric:[[0,\"rgb(0,0,0)\"],[.15,\"rgb(30,0,100)\"],[.4,\"rgb(120,0,100)\"],[.6,\"rgb(160,90,0)\"],[.8,\"rgb(230,200,0)\"],[1,\"rgb(255,250,220)\"]],Viridis:[[0,\"#440154\"],[.06274509803921569,\"#48186a\"],[.12549019607843137,\"#472d7b\"],[.18823529411764706,\"#424086\"],[.25098039215686274,\"#3b528b\"],[.3137254901960784,\"#33638d\"],[.3764705882352941,\"#2c728e\"],[.4392156862745098,\"#26828e\"],[.5019607843137255,\"#21918c\"],[.5647058823529412,\"#1fa088\"],[.6274509803921569,\"#28ae80\"],[.6901960784313725,\"#3fbc73\"],[.7529411764705882,\"#5ec962\"],[.8156862745098039,\"#84d44b\"],[.8784313725490196,\"#addc30\"],[.9411764705882353,\"#d8e219\"],[1,\"#fde725\"]],Cividis:[[0,\"rgb(0,32,76)\"],[.058824,\"rgb(0,42,102)\"],[.117647,\"rgb(0,52,110)\"],[.176471,\"rgb(39,63,108)\"],[.235294,\"rgb(60,74,107)\"],[.294118,\"rgb(76,85,107)\"],[.352941,\"rgb(91,95,109)\"],[.411765,\"rgb(104,106,112)\"],[.470588,\"rgb(117,117,117)\"],[.529412,\"rgb(131,129,120)\"],[.588235,\"rgb(146,140,120)\"],[.647059,\"rgb(161,152,118)\"],[.705882,\"rgb(176,165,114)\"],[.764706,\"rgb(192,177,109)\"],[.823529,\"rgb(209,191,102)\"],[.882353,\"rgb(225,204,92)\"],[.941176,\"rgb(243,219,79)\"],[1,\"rgb(255,233,69)\"]]}},{}],590:[function(t,e,r){\"use strict\";e.exports=function(t,e,r,n,i){var a=(t-r)/(n-r),o=a+e/(n-r),s=(a+o)/2;return\"left\"===i||\"bottom\"===i?a:\"center\"===i||\"middle\"===i?s:\"right\"===i||\"top\"===i?o:a<2/3-s?a:o>4/3-s?o:s}},{}],591:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=[[\"sw-resize\",\"s-resize\",\"se-resize\"],[\"w-resize\",\"move\",\"e-resize\"],[\"nw-resize\",\"n-resize\",\"ne-resize\"]];e.exports=function(t,e,r,a){return t=\"left\"===r?0:\"center\"===r?1:\"right\"===r?2:n.constrain(Math.floor(3*t),0,2),e=\"bottom\"===a?0:\"middle\"===a?1:\"top\"===a?2:n.constrain(Math.floor(3*e),0,2),i[e][t]}},{\"../../lib\":696}],592:[function(t,e,r){\"use strict\";var n=t(\"mouse-event-offset\"),i=t(\"has-hover\"),a=t(\"has-passive-events\"),o=t(\"../../registry\"),s=t(\"../../lib\"),l=t(\"../../plots/cartesian/constants\"),c=t(\"../../constants/interactions\"),u=e.exports={};u.align=t(\"./align\"),u.getCursor=t(\"./cursor\");var f=t(\"./unhover\");function h(){var t=document.createElement(\"div\");t.className=\"dragcover\";var e=t.style;return e.position=\"fixed\",e.left=0,e.right=0,e.top=0,e.bottom=0,e.zIndex=999999999,e.background=\"none\",document.body.appendChild(t),t}function p(t){return n(t.changedTouches?t.changedTouches[0]:t,document.body)}u.unhover=f.wrapped,u.unhoverRaw=f.raw,u.init=function(t){var e,r,n,f,d,g,v,m,y=t.gd,x=1,b=c.DBLCLICKDELAY,_=t.element;y._mouseDownTime||(y._mouseDownTime=0),_.style.pointerEvents=\"all\",_.onmousedown=k,a?(_._ontouchstart&&_.removeEventListener(\"touchstart\",_._ontouchstart),_._ontouchstart=k,_.addEventListener(\"touchstart\",k,{passive:!1})):_.ontouchstart=k;var w=t.clampFn||function(t,e,r){return Math.abs(t)<r&&(t=0),Math.abs(e)<r&&(e=0),[t,e]};function k(a){a.preventDefault(),y._dragged=!1,y._dragging=!0;var o=p(a);e=o[0],r=o[1],v=a.target,g=a,m=2===a.buttons||a.ctrlKey,\"undefined\"==typeof a.clientX&&\"undefined\"==typeof a.clientY&&(a.clientX=e,a.clientY=r),(n=(new Date).getTime())-y._mouseDownTime<b?x+=1:(x=1,y._mouseDownTime=n),t.prepFn&&t.prepFn(a,e,r),i&&!m?(d=h()).style.cursor=window.getComputedStyle(_).cursor:i||(d=document,f=window.getComputedStyle(document.documentElement).cursor,document.documentElement.style.cursor=window.getComputedStyle(_).cursor),document.addEventListener(\"mousemove\",M),document.addEventListener(\"mouseup\",A),document.addEventListener(\"touchmove\",M),document.addEventListener(\"touchend\",A)}function M(n){n.preventDefault();var i=p(n),a=t.minDrag||l.MINDRAG,o=w(i[0]-e,i[1]-r,a),s=o[0],c=o[1];(s||c)&&(y._dragged=!0,u.unhover(y)),y._dragged&&t.moveFn&&!m&&t.moveFn(s,c)}function A(e){if(document.removeEventListener(\"mousemove\",M),document.removeEventListener(\"mouseup\",A),document.removeEventListener(\"touchmove\",M),document.removeEventListener(\"touchend\",A),e.preventDefault(),i?s.removeElement(d):f&&(d.documentElement.style.cursor=f,f=null),y._dragging){if(y._dragging=!1,(new Date).getTime()-y._mouseDownTime>b&&(x=Math.max(x-1,1)),y._dragged)t.doneFn&&t.doneFn();else if(t.clickFn&&t.clickFn(x,g),!m){var r;try{r=new MouseEvent(\"click\",e)}catch(t){var n=p(e);(r=document.createEvent(\"MouseEvents\")).initMouseEvent(\"click\",e.bubbles,e.cancelable,e.view,e.detail,e.screenX,e.screenY,n[0],n[1],e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,e.button,e.relatedTarget)}v.dispatchEvent(r)}!function(t){t._dragging=!1,t._replotPending&&o.call(\"plot\",t)}(y),y._dragged=!1}else y._dragged=!1}},u.coverSlip=h},{\"../../constants/interactions\":672,\"../../lib\":696,\"../../plots/cartesian/constants\":750,\"../../registry\":827,\"./align\":590,\"./cursor\":591,\"./unhover\":593,\"has-hover\":393,\"has-passive-events\":394,\"mouse-event-offset\":419}],593:[function(t,e,r){\"use strict\";var n=t(\"../../lib/events\"),i=t(\"../../lib/throttle\"),a=t(\"../../lib/get_graph_div\"),o=t(\"../fx/constants\"),s=e.exports={};s.wrapped=function(t,e,r){(t=a(t))._fullLayout&&i.clear(t._fullLayout._uid+o.HOVERID),s.raw(t,e,r)},s.raw=function(t,e){var r=t._fullLayout,i=t._hoverdata;e||(e={}),e.target&&!1===n.triggerHandler(t,\"plotly_beforehover\",e)||(r._hoverlayer.selectAll(\"g\").remove(),r._hoverlayer.selectAll(\"line\").remove(),r._hoverlayer.selectAll(\"circle\").remove(),t._hoverdata=void 0,e.target&&i&&t.emit(\"plotly_unhover\",{event:e,points:i}))}},{\"../../lib/events\":684,\"../../lib/get_graph_div\":691,\"../../lib/throttle\":721,\"../fx/constants\":607}],594:[function(t,e,r){\"use strict\";r.dash={valType:\"string\",values:[\"solid\",\"dot\",\"dash\",\"longdash\",\"dashdot\",\"longdashdot\"],dflt:\"solid\",editType:\"style\"}},{}],595:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"fast-isnumeric\"),a=t(\"tinycolor2\"),o=t(\"../../registry\"),s=t(\"../color\"),l=t(\"../colorscale\"),c=t(\"../../lib\"),u=t(\"../../lib/svg_text_utils\"),f=t(\"../../constants/xmlns_namespaces\"),h=t(\"../../constants/alignment\").LINE_SPACING,p=t(\"../../constants/interactions\").DESELECTDIM,d=t(\"../../traces/scatter/subtypes\"),g=t(\"../../traces/scatter/make_bubble_size_func\"),v=e.exports={};v.font=function(t,e,r,n){c.isPlainObject(e)&&(n=e.color,r=e.size,e=e.family),e&&t.style(\"font-family\",e),r+1&&t.style(\"font-size\",r+\"px\"),n&&t.call(s.fill,n)},v.setPosition=function(t,e,r){t.attr(\"x\",e).attr(\"y\",r)},v.setSize=function(t,e,r){t.attr(\"width\",e).attr(\"height\",r)},v.setRect=function(t,e,r,n,i){t.call(v.setPosition,e,r).call(v.setSize,n,i)},v.translatePoint=function(t,e,r,n){var a=r.c2p(t.x),o=n.c2p(t.y);return!!(i(a)&&i(o)&&e.node())&&(\"text\"===e.node().nodeName?e.attr(\"x\",a).attr(\"y\",o):e.attr(\"transform\",\"translate(\"+a+\",\"+o+\")\"),!0)},v.translatePoints=function(t,e,r){t.each(function(t){var i=n.select(this);v.translatePoint(t,i,e,r)})},v.hideOutsideRangePoint=function(t,e,r,n,i,a){e.attr(\"display\",r.isPtWithinRange(t,i)&&n.isPtWithinRange(t,a)?null:\"none\")},v.hideOutsideRangePoints=function(t,e){if(e._hasClipOnAxisFalse){var r=e.xaxis,i=e.yaxis;t.each(function(e){var a=e[0].trace,o=a.xcalendar,s=a.ycalendar,l=\"bar\"===a.type?\".bartext\":\".point,.textpoint\";t.selectAll(l).each(function(t){v.hideOutsideRangePoint(t,n.select(this),r,i,o,s)})})}},v.crispRound=function(t,e,r){return e&&i(e)?t._context.staticPlot?e:e<1?1:Math.round(e):r||0},v.singleLineStyle=function(t,e,r,n,i){e.style(\"fill\",\"none\");var a=(((t||[])[0]||{}).trace||{}).line||{},o=r||a.width||0,l=i||a.dash||\"\";s.stroke(e,n||a.color),v.dashLine(e,l,o)},v.lineGroupStyle=function(t,e,r,i){t.style(\"fill\",\"none\").each(function(t){var a=(((t||[])[0]||{}).trace||{}).line||{},o=e||a.width||0,l=i||a.dash||\"\";n.select(this).call(s.stroke,r||a.color).call(v.dashLine,l,o)})},v.dashLine=function(t,e,r){r=+r||0,e=v.dashStyle(e,r),t.style({\"stroke-dasharray\":e,\"stroke-width\":r+\"px\"})},v.dashStyle=function(t,e){e=+e||1;var r=Math.max(e,3);return\"solid\"===t?t=\"\":\"dot\"===t?t=r+\"px,\"+r+\"px\":\"dash\"===t?t=3*r+\"px,\"+3*r+\"px\":\"longdash\"===t?t=5*r+\"px,\"+5*r+\"px\":\"dashdot\"===t?t=3*r+\"px,\"+r+\"px,\"+r+\"px,\"+r+\"px\":\"longdashdot\"===t&&(t=5*r+\"px,\"+2*r+\"px,\"+r+\"px,\"+2*r+\"px\"),t},v.singleFillStyle=function(t){var e=(((n.select(t.node()).data()[0]||[])[0]||{}).trace||{}).fillcolor;e&&t.call(s.fill,e)},v.fillGroupStyle=function(t){t.style(\"stroke-width\",0).each(function(t){n.select(this).call(s.fill,t[0].trace.fillcolor)})};var m=t(\"./symbol_defs\");v.symbolNames=[],v.symbolFuncs=[],v.symbolNeedLines={},v.symbolNoDot={},v.symbolNoFill={},v.symbolList=[],Object.keys(m).forEach(function(t){var e=m[t];v.symbolList=v.symbolList.concat([e.n,t,e.n+100,t+\"-open\"]),v.symbolNames[e.n]=t,v.symbolFuncs[e.n]=e.f,e.needLine&&(v.symbolNeedLines[e.n]=!0),e.noDot?v.symbolNoDot[e.n]=!0:v.symbolList=v.symbolList.concat([e.n+200,t+\"-dot\",e.n+300,t+\"-open-dot\"]),e.noFill&&(v.symbolNoFill[e.n]=!0)});var y=v.symbolNames.length,x=\"M0,0.5L0.5,0L0,-0.5L-0.5,0Z\";function b(t,e){var r=t%100;return v.symbolFuncs[r](e)+(t>=200?x:\"\")}v.symbolNumber=function(t){if(\"string\"==typeof t){var e=0;t.indexOf(\"-open\")>0&&(e=100,t=t.replace(\"-open\",\"\")),t.indexOf(\"-dot\")>0&&(e+=200,t=t.replace(\"-dot\",\"\")),(t=v.symbolNames.indexOf(t))>=0&&(t+=e)}return t%100>=y||t>=400?0:Math.floor(Math.max(t,0))};var _={x1:1,x2:0,y1:0,y2:0},w={x1:0,x2:0,y1:1,y2:0},k=n.format(\"~.1f\"),M={radial:{node:\"radialGradient\"},radialreversed:{node:\"radialGradient\",reversed:!0},horizontal:{node:\"linearGradient\",attrs:_},horizontalreversed:{node:\"linearGradient\",attrs:_,reversed:!0},vertical:{node:\"linearGradient\",attrs:w},verticalreversed:{node:\"linearGradient\",attrs:w,reversed:!0}};v.gradient=function(t,e,r,i,o,l){for(var u=o.length,f=M[i],h=new Array(u),p=0;p<u;p++)f.reversed?h[u-1-p]=[k(100*(1-o[p][0])),o[p][1]]:h[p]=[k(100*o[p][0]),o[p][1]];var d=\"g\"+e._fullLayout._uid+\"-\"+r,g=e._fullLayout._defs.select(\".gradients\").selectAll(\"#\"+d).data([i+h.join(\";\")],c.identity);g.exit().remove(),g.enter().append(f.node).each(function(){var t=n.select(this);f.attrs&&t.attr(f.attrs),t.attr(\"id\",d);var e=t.selectAll(\"stop\").data(h);e.exit().remove(),e.enter().append(\"stop\"),e.each(function(t){var e=a(t[1]);n.select(this).attr({offset:t[0]+\"%\",\"stop-color\":s.tinyRGB(e),\"stop-opacity\":e.getAlpha()})})}),t.style(l,\"url(#\"+d+\")\").style(l+\"-opacity\",null)},v.initGradients=function(t){c.ensureSingle(t._fullLayout._defs,\"g\",\"gradients\").selectAll(\"linearGradient,radialGradient\").remove()},v.pointStyle=function(t,e,r){if(t.size()){var i=v.makePointStyleFns(e);t.each(function(t){v.singlePointStyle(t,n.select(this),e,i,r)})}},v.singlePointStyle=function(t,e,r,n,i){var a=r.marker,o=a.line;if(e.style(\"opacity\",n.selectedOpacityFn?n.selectedOpacityFn(t):void 0===t.mo?a.opacity:t.mo),n.ms2mrc){var l;l=\"various\"===t.ms||\"various\"===a.size?3:n.ms2mrc(t.ms),t.mrc=l,n.selectedSizeFn&&(l=t.mrc=n.selectedSizeFn(t));var u=v.symbolNumber(t.mx||a.symbol)||0;t.om=u%200>=100,e.attr(\"d\",b(u,l))}var f,h,p,d=!1;if(t.so)p=o.outlierwidth,h=o.outliercolor,f=a.outliercolor;else{var g=(o||{}).width;p=(t.mlw+1||g+1||(t.trace?(t.trace.marker.line||{}).width:0)+1)-1||0,h=\"mlc\"in t?t.mlcc=n.lineScale(t.mlc):c.isArrayOrTypedArray(o.color)?s.defaultLine:o.color,c.isArrayOrTypedArray(a.color)&&(f=s.defaultLine,d=!0),f=\"mc\"in t?t.mcc=n.markerScale(t.mc):a.color||\"rgba(0,0,0,0)\",n.selectedColorFn&&(f=n.selectedColorFn(t))}if(t.om)e.call(s.stroke,f).style({\"stroke-width\":(p||1)+\"px\",fill:\"none\"});else{e.style(\"stroke-width\",p+\"px\");var m=a.gradient,y=t.mgt;if(y?d=!0:y=m&&m.type,Array.isArray(y)&&(y=y[0],M[y]||(y=0)),y&&\"none\"!==y){var x=t.mgc;x?d=!0:x=m.color;var _=r.uid;d&&(_+=\"-\"+t.i),v.gradient(e,i,_,y,[[0,x],[1,f]],\"fill\")}else s.fill(e,f);p&&s.stroke(e,h)}},v.makePointStyleFns=function(t){var e={},r=t.marker;return e.markerScale=v.tryColorscale(r,\"\"),e.lineScale=v.tryColorscale(r,\"line\"),o.traceIs(t,\"symbols\")&&(e.ms2mrc=d.isBubble(t)?g(t):function(){return(r.size||6)/2}),t.selectedpoints&&c.extendFlat(e,v.makeSelectedPointStyleFns(t)),e},v.makeSelectedPointStyleFns=function(t){var e={},r=t.selected||{},n=t.unselected||{},i=t.marker||{},a=r.marker||{},s=n.marker||{},l=i.opacity,u=a.opacity,f=s.opacity,h=void 0!==u,d=void 0!==f;(c.isArrayOrTypedArray(l)||h||d)&&(e.selectedOpacityFn=function(t){var e=void 0===t.mo?i.opacity:t.mo;return t.selected?h?u:e:d?f:p*e});var g=i.color,v=a.color,m=s.color;(v||m)&&(e.selectedColorFn=function(t){var e=t.mcc||g;return t.selected?v||e:m||e});var y=i.size,x=a.size,b=s.size,_=void 0!==x,w=void 0!==b;return o.traceIs(t,\"symbols\")&&(_||w)&&(e.selectedSizeFn=function(t){var e=t.mrc||y/2;return t.selected?_?x/2:e:w?b/2:e}),e},v.makeSelectedTextStyleFns=function(t){var e={},r=t.selected||{},n=t.unselected||{},i=t.textfont||{},a=r.textfont||{},o=n.textfont||{},l=i.color,c=a.color,u=o.color;return e.selectedTextColorFn=function(t){var e=t.tc||l;return t.selected?c||e:u||(c?e:s.addOpacity(e,p))},e},v.selectedPointStyle=function(t,e){if(t.size()&&e.selectedpoints){var r=v.makeSelectedPointStyleFns(e),i=e.marker||{},a=[];r.selectedOpacityFn&&a.push(function(t,e){t.style(\"opacity\",r.selectedOpacityFn(e))}),r.selectedColorFn&&a.push(function(t,e){s.fill(t,r.selectedColorFn(e))}),r.selectedSizeFn&&a.push(function(t,e){var n=e.mx||i.symbol||0,a=r.selectedSizeFn(e);t.attr(\"d\",b(v.symbolNumber(n),a)),e.mrc2=a}),a.length&&t.each(function(t){for(var e=n.select(this),r=0;r<a.length;r++)a[r](e,t)})}},v.tryColorscale=function(t,e){var r=e?c.nestedProperty(t,e).get():t;if(r){var n=r.colorscale,i=r.color;if(n&&c.isArrayOrTypedArray(i))return l.makeColorScaleFunc(l.extractScale(n,r.cmin,r.cmax))}return c.identity};var A={start:1,end:-1,middle:0,bottom:1,top:-1};function T(t,e,r,i){var a=n.select(t.node().parentNode),o=-1!==e.indexOf(\"top\")?\"top\":-1!==e.indexOf(\"bottom\")?\"bottom\":\"middle\",s=-1!==e.indexOf(\"left\")?\"end\":-1!==e.indexOf(\"right\")?\"start\":\"middle\",l=i?i/.8+1:0,c=(u.lineCount(t)-1)*h+1,f=A[s]*l,p=.75*r+A[o]*l+(A[o]-1)*c*r/2;t.attr(\"text-anchor\",s),a.attr(\"transform\",\"translate(\"+f+\",\"+p+\")\")}function S(t,e){var r=t.ts||e.textfont.size;return i(r)&&r>0?r:0}v.textPointStyle=function(t,e,r){if(t.size()){var i;if(e.selectedpoints){var a=v.makeSelectedTextStyleFns(e);i=a.selectedTextColorFn}t.each(function(t){var a=n.select(this),o=c.extractOption(t,e,\"tx\",\"text\");if(o||0===o){var s=t.tp||e.textposition,l=S(t,e),f=i?i(t):t.tc||e.textfont.color;a.call(v.font,t.tf||e.textfont.family,l,f).text(o).call(u.convertToTspans,r).call(T,s,l,t.mrc)}else a.remove()})}},v.selectedTextStyle=function(t,e){if(t.size()&&e.selectedpoints){var r=v.makeSelectedTextStyleFns(e);t.each(function(t){var i=n.select(this),a=r.selectedTextColorFn(t),o=t.tp||e.textposition,l=S(t,e);s.fill(i,a),T(i,o,l,t.mrc2||t.mrc)})}};var E=.5;function C(t,e,r,i){var a=t[0]-e[0],o=t[1]-e[1],s=r[0]-e[0],l=r[1]-e[1],c=Math.pow(a*a+o*o,E/2),u=Math.pow(s*s+l*l,E/2),f=(u*u*a-c*c*s)*i,h=(u*u*o-c*c*l)*i,p=3*u*(c+u),d=3*c*(c+u);return[[n.round(e[0]+(p&&f/p),2),n.round(e[1]+(p&&h/p),2)],[n.round(e[0]-(d&&f/d),2),n.round(e[1]-(d&&h/d),2)]]}v.smoothopen=function(t,e){if(t.length<3)return\"M\"+t.join(\"L\");var r,n=\"M\"+t[0],i=[];for(r=1;r<t.length-1;r++)i.push(C(t[r-1],t[r],t[r+1],e));for(n+=\"Q\"+i[0][0]+\" \"+t[1],r=2;r<t.length-1;r++)n+=\"C\"+i[r-2][1]+\" \"+i[r-1][0]+\" \"+t[r];return n+=\"Q\"+i[t.length-3][1]+\" \"+t[t.length-1]},v.smoothclosed=function(t,e){if(t.length<3)return\"M\"+t.join(\"L\")+\"Z\";var r,n=\"M\"+t[0],i=t.length-1,a=[C(t[i],t[0],t[1],e)];for(r=1;r<i;r++)a.push(C(t[r-1],t[r],t[r+1],e));for(a.push(C(t[i-1],t[i],t[0],e)),r=1;r<=i;r++)n+=\"C\"+a[r-1][1]+\" \"+a[r][0]+\" \"+t[r];return n+=\"C\"+a[i][1]+\" \"+a[0][0]+\" \"+t[0]+\"Z\"};var L={hv:function(t,e){return\"H\"+n.round(e[0],2)+\"V\"+n.round(e[1],2)},vh:function(t,e){return\"V\"+n.round(e[1],2)+\"H\"+n.round(e[0],2)},hvh:function(t,e){return\"H\"+n.round((t[0]+e[0])/2,2)+\"V\"+n.round(e[1],2)+\"H\"+n.round(e[0],2)},vhv:function(t,e){return\"V\"+n.round((t[1]+e[1])/2,2)+\"H\"+n.round(e[0],2)+\"V\"+n.round(e[1],2)}},z=function(t,e){return\"L\"+n.round(e[0],2)+\",\"+n.round(e[1],2)};v.steps=function(t){var e=L[t]||z;return function(t){for(var r=\"M\"+n.round(t[0][0],2)+\",\"+n.round(t[0][1],2),i=1;i<t.length;i++)r+=e(t[i-1],t[i]);return r}},v.makeTester=function(){var t=c.ensureSingleById(n.select(\"body\"),\"svg\",\"js-plotly-tester\",function(t){t.attr(f.svgAttrs).style({position:\"absolute\",left:\"-10000px\",top:\"-10000px\",width:\"9000px\",height:\"9000px\",\"z-index\":\"1\"})}),e=c.ensureSingle(t,\"path\",\"js-reference-point\",function(t){t.attr(\"d\",\"M0,0H1V1H0Z\").style({\"stroke-width\":0,fill:\"black\"})});v.tester=t,v.testref=e},v.savedBBoxes={};var O=0;function I(t){var e=t.getAttribute(\"data-unformatted\");if(null!==e)return e+t.getAttribute(\"data-math\")+t.getAttribute(\"text-anchor\")+t.getAttribute(\"style\")}v.bBox=function(t,e,r){var i,a,o;if(r||(r=I(t)),r){if(i=v.savedBBoxes[r])return c.extendFlat({},i)}else if(1===t.childNodes.length){var s=t.childNodes[0];if(r=I(s)){var l=+s.getAttribute(\"x\")||0,f=+s.getAttribute(\"y\")||0,h=s.getAttribute(\"transform\");if(!h){var p=v.bBox(s,!1,r);return l&&(p.left+=l,p.right+=l),f&&(p.top+=f,p.bottom+=f),p}if(r+=\"~\"+l+\"~\"+f+\"~\"+h,i=v.savedBBoxes[r])return c.extendFlat({},i)}}e?a=t:(o=v.tester.node(),a=t.cloneNode(!0),o.appendChild(a)),n.select(a).attr(\"transform\",null).call(u.positionText,0,0);var d=a.getBoundingClientRect(),g=v.testref.node().getBoundingClientRect();e||o.removeChild(a);var m={height:d.height,width:d.width,left:d.left-g.left,top:d.top-g.top,right:d.right-g.left,bottom:d.bottom-g.top};return O>=1e4&&(v.savedBBoxes={},O=0),r&&(v.savedBBoxes[r]=m),O++,c.extendFlat({},m)},v.setClipUrl=function(t,e){if(e){if(void 0===v.baseUrl){var r=n.select(\"base\");r.size()&&r.attr(\"href\")?v.baseUrl=window.location.href.split(\"#\")[0]:v.baseUrl=\"\"}t.attr(\"clip-path\",\"url(\"+v.baseUrl+\"#\"+e+\")\")}else t.attr(\"clip-path\",null)},v.getTranslate=function(t){var e=(t[t.attr?\"attr\":\"getAttribute\"](\"transform\")||\"\").replace(/.*\\btranslate\\((-?\\d*\\.?\\d*)[^-\\d]*(-?\\d*\\.?\\d*)[^\\d].*/,function(t,e,r){return[e,r].join(\" \")}).split(\" \");return{x:+e[0]||0,y:+e[1]||0}},v.setTranslate=function(t,e,r){var n=t.attr?\"attr\":\"getAttribute\",i=t.attr?\"attr\":\"setAttribute\",a=t[n](\"transform\")||\"\";return e=e||0,r=r||0,a=a.replace(/(\\btranslate\\(.*?\\);?)/,\"\").trim(),a=(a+=\" translate(\"+e+\", \"+r+\")\").trim(),t[i](\"transform\",a),a},v.getScale=function(t){var e=(t[t.attr?\"attr\":\"getAttribute\"](\"transform\")||\"\").replace(/.*\\bscale\\((\\d*\\.?\\d*)[^\\d]*(\\d*\\.?\\d*)[^\\d].*/,function(t,e,r){return[e,r].join(\" \")}).split(\" \");return{x:+e[0]||1,y:+e[1]||1}},v.setScale=function(t,e,r){var n=t.attr?\"attr\":\"getAttribute\",i=t.attr?\"attr\":\"setAttribute\",a=t[n](\"transform\")||\"\";return e=e||1,r=r||1,a=a.replace(/(\\bscale\\(.*?\\);?)/,\"\").trim(),a=(a+=\" scale(\"+e+\", \"+r+\")\").trim(),t[i](\"transform\",a),a};var P=/\\s*sc.*/;v.setPointGroupScale=function(t,e,r){if(e=e||1,r=r||1,t){var n=1===e&&1===r?\"\":\" scale(\"+e+\",\"+r+\")\";t.each(function(){var t=(this.getAttribute(\"transform\")||\"\").replace(P,\"\");t=(t+=n).trim(),this.setAttribute(\"transform\",t)})}};var D=/translate\\([^)]*\\)\\s*$/;v.setTextPointsScale=function(t,e,r){t&&t.each(function(){var t,i=n.select(this),a=i.select(\"text\");if(a.node()){var o=parseFloat(a.attr(\"x\")||0),s=parseFloat(a.attr(\"y\")||0),l=(i.attr(\"transform\")||\"\").match(D);t=1===e&&1===r?[]:[\"translate(\"+o+\",\"+s+\")\",\"scale(\"+e+\",\"+r+\")\",\"translate(\"+-o+\",\"+-s+\")\"],l&&t.push(l),i.attr(\"transform\",t.join(\" \"))}})}},{\"../../constants/alignment\":668,\"../../constants/interactions\":672,\"../../constants/xmlns_namespaces\":674,\"../../lib\":696,\"../../lib/svg_text_utils\":720,\"../../registry\":827,\"../../traces/scatter/make_bubble_size_func\":1060,\"../../traces/scatter/subtypes\":1067,\"../color\":570,\"../colorscale\":585,\"./symbol_defs\":596,d3:148,\"fast-isnumeric\":214,tinycolor2:514}],596:[function(t,e,r){\"use strict\";var n=t(\"d3\");e.exports={circle:{n:0,f:function(t){var e=n.round(t,2);return\"M\"+e+\",0A\"+e+\",\"+e+\" 0 1,1 0,-\"+e+\"A\"+e+\",\"+e+\" 0 0,1 \"+e+\",0Z\"}},square:{n:1,f:function(t){var e=n.round(t,2);return\"M\"+e+\",\"+e+\"H-\"+e+\"V-\"+e+\"H\"+e+\"Z\"}},diamond:{n:2,f:function(t){var e=n.round(1.3*t,2);return\"M\"+e+\",0L0,\"+e+\"L-\"+e+\",0L0,-\"+e+\"Z\"}},cross:{n:3,f:function(t){var e=n.round(.4*t,2),r=n.round(1.2*t,2);return\"M\"+r+\",\"+e+\"H\"+e+\"V\"+r+\"H-\"+e+\"V\"+e+\"H-\"+r+\"V-\"+e+\"H-\"+e+\"V-\"+r+\"H\"+e+\"V-\"+e+\"H\"+r+\"Z\"}},x:{n:4,f:function(t){var e=n.round(.8*t/Math.sqrt(2),2),r=\"l\"+e+\",\"+e,i=\"l\"+e+\",-\"+e,a=\"l-\"+e+\",-\"+e,o=\"l-\"+e+\",\"+e;return\"M0,\"+e+r+i+a+i+a+o+a+o+r+o+r+\"Z\"}},\"triangle-up\":{n:5,f:function(t){var e=n.round(2*t/Math.sqrt(3),2);return\"M-\"+e+\",\"+n.round(t/2,2)+\"H\"+e+\"L0,-\"+n.round(t,2)+\"Z\"}},\"triangle-down\":{n:6,f:function(t){var e=n.round(2*t/Math.sqrt(3),2);return\"M-\"+e+\",-\"+n.round(t/2,2)+\"H\"+e+\"L0,\"+n.round(t,2)+\"Z\"}},\"triangle-left\":{n:7,f:function(t){var e=n.round(2*t/Math.sqrt(3),2);return\"M\"+n.round(t/2,2)+\",-\"+e+\"V\"+e+\"L-\"+n.round(t,2)+\",0Z\"}},\"triangle-right\":{n:8,f:function(t){var e=n.round(2*t/Math.sqrt(3),2);return\"M-\"+n.round(t/2,2)+\",-\"+e+\"V\"+e+\"L\"+n.round(t,2)+\",0Z\"}},\"triangle-ne\":{n:9,f:function(t){var e=n.round(.6*t,2),r=n.round(1.2*t,2);return\"M-\"+r+\",-\"+e+\"H\"+e+\"V\"+r+\"Z\"}},\"triangle-se\":{n:10,f:function(t){var e=n.round(.6*t,2),r=n.round(1.2*t,2);return\"M\"+e+\",-\"+r+\"V\"+e+\"H-\"+r+\"Z\"}},\"triangle-sw\":{n:11,f:function(t){var e=n.round(.6*t,2),r=n.round(1.2*t,2);return\"M\"+r+\",\"+e+\"H-\"+e+\"V-\"+r+\"Z\"}},\"triangle-nw\":{n:12,f:function(t){var e=n.round(.6*t,2),r=n.round(1.2*t,2);return\"M-\"+e+\",\"+r+\"V-\"+e+\"H\"+r+\"Z\"}},pentagon:{n:13,f:function(t){var e=n.round(.951*t,2),r=n.round(.588*t,2),i=n.round(-t,2),a=n.round(-.309*t,2);return\"M\"+e+\",\"+a+\"L\"+r+\",\"+n.round(.809*t,2)+\"H-\"+r+\"L-\"+e+\",\"+a+\"L0,\"+i+\"Z\"}},hexagon:{n:14,f:function(t){var e=n.round(t,2),r=n.round(t/2,2),i=n.round(t*Math.sqrt(3)/2,2);return\"M\"+i+\",-\"+r+\"V\"+r+\"L0,\"+e+\"L-\"+i+\",\"+r+\"V-\"+r+\"L0,-\"+e+\"Z\"}},hexagon2:{n:15,f:function(t){var e=n.round(t,2),r=n.round(t/2,2),i=n.round(t*Math.sqrt(3)/2,2);return\"M-\"+r+\",\"+i+\"H\"+r+\"L\"+e+\",0L\"+r+\",-\"+i+\"H-\"+r+\"L-\"+e+\",0Z\"}},octagon:{n:16,f:function(t){var e=n.round(.924*t,2),r=n.round(.383*t,2);return\"M-\"+r+\",-\"+e+\"H\"+r+\"L\"+e+\",-\"+r+\"V\"+r+\"L\"+r+\",\"+e+\"H-\"+r+\"L-\"+e+\",\"+r+\"V-\"+r+\"Z\"}},star:{n:17,f:function(t){var e=1.4*t,r=n.round(.225*e,2),i=n.round(.951*e,2),a=n.round(.363*e,2),o=n.round(.588*e,2),s=n.round(-e,2),l=n.round(-.309*e,2),c=n.round(.118*e,2),u=n.round(.809*e,2);return\"M\"+r+\",\"+l+\"H\"+i+\"L\"+a+\",\"+c+\"L\"+o+\",\"+u+\"L0,\"+n.round(.382*e,2)+\"L-\"+o+\",\"+u+\"L-\"+a+\",\"+c+\"L-\"+i+\",\"+l+\"H-\"+r+\"L0,\"+s+\"Z\"}},hexagram:{n:18,f:function(t){var e=n.round(.66*t,2),r=n.round(.38*t,2),i=n.round(.76*t,2);return\"M-\"+i+\",0l-\"+r+\",-\"+e+\"h\"+i+\"l\"+r+\",-\"+e+\"l\"+r+\",\"+e+\"h\"+i+\"l-\"+r+\",\"+e+\"l\"+r+\",\"+e+\"h-\"+i+\"l-\"+r+\",\"+e+\"l-\"+r+\",-\"+e+\"h-\"+i+\"Z\"}},\"star-triangle-up\":{n:19,f:function(t){var e=n.round(t*Math.sqrt(3)*.8,2),r=n.round(.8*t,2),i=n.round(1.6*t,2),a=n.round(4*t,2),o=\"A \"+a+\",\"+a+\" 0 0 1 \";return\"M-\"+e+\",\"+r+o+e+\",\"+r+o+\"0,-\"+i+o+\"-\"+e+\",\"+r+\"Z\"}},\"star-triangle-down\":{n:20,f:function(t){var e=n.round(t*Math.sqrt(3)*.8,2),r=n.round(.8*t,2),i=n.round(1.6*t,2),a=n.round(4*t,2),o=\"A \"+a+\",\"+a+\" 0 0 1 \";return\"M\"+e+\",-\"+r+o+\"-\"+e+\",-\"+r+o+\"0,\"+i+o+e+\",-\"+r+\"Z\"}},\"star-square\":{n:21,f:function(t){var e=n.round(1.1*t,2),r=n.round(2*t,2),i=\"A \"+r+\",\"+r+\" 0 0 1 \";return\"M-\"+e+\",-\"+e+i+\"-\"+e+\",\"+e+i+e+\",\"+e+i+e+\",-\"+e+i+\"-\"+e+\",-\"+e+\"Z\"}},\"star-diamond\":{n:22,f:function(t){var e=n.round(1.4*t,2),r=n.round(1.9*t,2),i=\"A \"+r+\",\"+r+\" 0 0 1 \";return\"M-\"+e+\",0\"+i+\"0,\"+e+i+e+\",0\"+i+\"0,-\"+e+i+\"-\"+e+\",0Z\"}},\"diamond-tall\":{n:23,f:function(t){var e=n.round(.7*t,2),r=n.round(1.4*t,2);return\"M0,\"+r+\"L\"+e+\",0L0,-\"+r+\"L-\"+e+\",0Z\"}},\"diamond-wide\":{n:24,f:function(t){var e=n.round(1.4*t,2),r=n.round(.7*t,2);return\"M0,\"+r+\"L\"+e+\",0L0,-\"+r+\"L-\"+e+\",0Z\"}},hourglass:{n:25,f:function(t){var e=n.round(t,2);return\"M\"+e+\",\"+e+\"H-\"+e+\"L\"+e+\",-\"+e+\"H-\"+e+\"Z\"},noDot:!0},bowtie:{n:26,f:function(t){var e=n.round(t,2);return\"M\"+e+\",\"+e+\"V-\"+e+\"L-\"+e+\",\"+e+\"V-\"+e+\"Z\"},noDot:!0},\"circle-cross\":{n:27,f:function(t){var e=n.round(t,2);return\"M0,\"+e+\"V-\"+e+\"M\"+e+\",0H-\"+e+\"M\"+e+\",0A\"+e+\",\"+e+\" 0 1,1 0,-\"+e+\"A\"+e+\",\"+e+\" 0 0,1 \"+e+\",0Z\"},needLine:!0,noDot:!0},\"circle-x\":{n:28,f:function(t){var e=n.round(t,2),r=n.round(t/Math.sqrt(2),2);return\"M\"+r+\",\"+r+\"L-\"+r+\",-\"+r+\"M\"+r+\",-\"+r+\"L-\"+r+\",\"+r+\"M\"+e+\",0A\"+e+\",\"+e+\" 0 1,1 0,-\"+e+\"A\"+e+\",\"+e+\" 0 0,1 \"+e+\",0Z\"},needLine:!0,noDot:!0},\"square-cross\":{n:29,f:function(t){var e=n.round(t,2);return\"M0,\"+e+\"V-\"+e+\"M\"+e+\",0H-\"+e+\"M\"+e+\",\"+e+\"H-\"+e+\"V-\"+e+\"H\"+e+\"Z\"},needLine:!0,noDot:!0},\"square-x\":{n:30,f:function(t){var e=n.round(t,2);return\"M\"+e+\",\"+e+\"L-\"+e+\",-\"+e+\"M\"+e+\",-\"+e+\"L-\"+e+\",\"+e+\"M\"+e+\",\"+e+\"H-\"+e+\"V-\"+e+\"H\"+e+\"Z\"},needLine:!0,noDot:!0},\"diamond-cross\":{n:31,f:function(t){var e=n.round(1.3*t,2);return\"M\"+e+\",0L0,\"+e+\"L-\"+e+\",0L0,-\"+e+\"ZM0,-\"+e+\"V\"+e+\"M-\"+e+\",0H\"+e},needLine:!0,noDot:!0},\"diamond-x\":{n:32,f:function(t){var e=n.round(1.3*t,2),r=n.round(.65*t,2);return\"M\"+e+\",0L0,\"+e+\"L-\"+e+\",0L0,-\"+e+\"ZM-\"+r+\",-\"+r+\"L\"+r+\",\"+r+\"M-\"+r+\",\"+r+\"L\"+r+\",-\"+r},needLine:!0,noDot:!0},\"cross-thin\":{n:33,f:function(t){var e=n.round(1.4*t,2);return\"M0,\"+e+\"V-\"+e+\"M\"+e+\",0H-\"+e},needLine:!0,noDot:!0,noFill:!0},\"x-thin\":{n:34,f:function(t){var e=n.round(t,2);return\"M\"+e+\",\"+e+\"L-\"+e+\",-\"+e+\"M\"+e+\",-\"+e+\"L-\"+e+\",\"+e},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(t){var e=n.round(1.2*t,2),r=n.round(.85*t,2);return\"M0,\"+e+\"V-\"+e+\"M\"+e+\",0H-\"+e+\"M\"+r+\",\"+r+\"L-\"+r+\",-\"+r+\"M\"+r+\",-\"+r+\"L-\"+r+\",\"+r},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(t){var e=n.round(t/2,2),r=n.round(t,2);return\"M\"+e+\",\"+r+\"V-\"+r+\"m-\"+r+\",0V\"+r+\"M\"+r+\",\"+e+\"H-\"+r+\"m0,-\"+r+\"H\"+r},needLine:!0,noFill:!0},\"y-up\":{n:37,f:function(t){var e=n.round(1.2*t,2),r=n.round(1.6*t,2),i=n.round(.8*t,2);return\"M-\"+e+\",\"+i+\"L0,0M\"+e+\",\"+i+\"L0,0M0,-\"+r+\"L0,0\"},needLine:!0,noDot:!0,noFill:!0},\"y-down\":{n:38,f:function(t){var e=n.round(1.2*t,2),r=n.round(1.6*t,2),i=n.round(.8*t,2);return\"M-\"+e+\",-\"+i+\"L0,0M\"+e+\",-\"+i+\"L0,0M0,\"+r+\"L0,0\"},needLine:!0,noDot:!0,noFill:!0},\"y-left\":{n:39,f:function(t){var e=n.round(1.2*t,2),r=n.round(1.6*t,2),i=n.round(.8*t,2);return\"M\"+i+\",\"+e+\"L0,0M\"+i+\",-\"+e+\"L0,0M-\"+r+\",0L0,0\"},needLine:!0,noDot:!0,noFill:!0},\"y-right\":{n:40,f:function(t){var e=n.round(1.2*t,2),r=n.round(1.6*t,2),i=n.round(.8*t,2);return\"M-\"+i+\",\"+e+\"L0,0M-\"+i+\",-\"+e+\"L0,0M\"+r+\",0L0,0\"},needLine:!0,noDot:!0,noFill:!0},\"line-ew\":{n:41,f:function(t){var e=n.round(1.4*t,2);return\"M\"+e+\",0H-\"+e},needLine:!0,noDot:!0,noFill:!0},\"line-ns\":{n:42,f:function(t){var e=n.round(1.4*t,2);return\"M0,\"+e+\"V-\"+e},needLine:!0,noDot:!0,noFill:!0},\"line-ne\":{n:43,f:function(t){var e=n.round(t,2);return\"M\"+e+\",-\"+e+\"L-\"+e+\",\"+e},needLine:!0,noDot:!0,noFill:!0},\"line-nw\":{n:44,f:function(t){var e=n.round(t,2);return\"M\"+e+\",\"+e+\"L-\"+e+\",-\"+e},needLine:!0,noDot:!0,noFill:!0}}},{d3:148}],597:[function(t,e,r){\"use strict\";e.exports={visible:{valType:\"boolean\",editType:\"calc\"},type:{valType:\"enumerated\",values:[\"percent\",\"constant\",\"sqrt\",\"data\"],editType:\"calc\"},symmetric:{valType:\"boolean\",editType:\"calc\"},array:{valType:\"data_array\",editType:\"calc\"},arrayminus:{valType:\"data_array\",editType:\"calc\"},value:{valType:\"number\",min:0,dflt:10,editType:\"calc\"},valueminus:{valType:\"number\",min:0,dflt:10,editType:\"calc\"},traceref:{valType:\"integer\",min:0,dflt:0,editType:\"style\"},tracerefminus:{valType:\"integer\",min:0,dflt:0,editType:\"style\"},copy_ystyle:{valType:\"boolean\",editType:\"plot\"},copy_zstyle:{valType:\"boolean\",editType:\"style\"},color:{valType:\"color\",editType:\"style\"},thickness:{valType:\"number\",min:0,dflt:2,editType:\"style\"},width:{valType:\"number\",min:0,editType:\"plot\"},editType:\"calc\",_deprecated:{opacity:{valType:\"number\",editType:\"style\"}}}},{}],598:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../../registry\"),a=t(\"../../plots/cartesian/axes\"),o=t(\"./compute_error\");function s(t,e,r,i){var s=e[\"error_\"+i]||{},l=[];if(s.visible&&-1!==[\"linear\",\"log\"].indexOf(r.type)){for(var c=o(s),u=0;u<t.length;u++){var f=t[u],h=f.i;if(void 0===h)h=u;else if(null===h)continue;var p=f[i];if(n(r.c2l(p))){var d=c(p,h);if(n(d[0])&&n(d[1])){var g=f[i+\"s\"]=p-d[0],v=f[i+\"h\"]=p+d[1];l.push(g,v)}}}var m=a.findExtremes(r,l,{padded:!0}),y=r._id;e._extremes[y].min=e._extremes[y].min.concat(m.min),e._extremes[y].max=e._extremes[y].max.concat(m.max)}}e.exports=function(t){for(var e=t.calcdata,r=0;r<e.length;r++){var n=e[r],o=n[0].trace;if(!0===o.visible&&i.traceIs(o,\"errorBarsOK\")){var l=a.getFromId(t,o.xaxis),c=a.getFromId(t,o.yaxis);s(n,o,l,\"x\"),s(n,o,c,\"y\")}}}},{\"../../plots/cartesian/axes\":744,\"../../registry\":827,\"./compute_error\":599,\"fast-isnumeric\":214}],599:[function(t,e,r){\"use strict\";function n(t,e){return\"percent\"===t?function(t){return Math.abs(t*e/100)}:\"constant\"===t?function(){return Math.abs(e)}:\"sqrt\"===t?function(t){return Math.sqrt(Math.abs(t))}:void 0}e.exports=function(t){var e=t.type,r=t.symmetric;if(\"data\"===e){var i=t.array||[];if(r)return function(t,e){var r=+i[e];return[r,r]};var a=t.arrayminus||[];return function(t,e){var r=+i[e],n=+a[e];return isNaN(r)&&isNaN(n)?[NaN,NaN]:[n||0,r||0]}}var o=n(e,t.value),s=n(e,t.valueminus);return r||void 0===t.valueminus?function(t){var e=o(t);return[e,e]}:function(t){return[s(t),o(t)]}}},{}],600:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../../registry\"),a=t(\"../../lib\"),o=t(\"../../plot_api/plot_template\"),s=t(\"./attributes\");e.exports=function(t,e,r,l){var c=\"error_\"+l.axis,u=o.newContainer(e,c),f=t[c]||{};function h(t,e){return a.coerce(f,u,s,t,e)}if(!1!==h(\"visible\",void 0!==f.array||void 0!==f.value||\"sqrt\"===f.type)){var p=h(\"type\",\"array\"in f?\"data\":\"percent\"),d=!0;\"sqrt\"!==p&&(d=h(\"symmetric\",!((\"data\"===p?\"arrayminus\":\"valueminus\")in f))),\"data\"===p?(h(\"array\"),h(\"traceref\"),d||(h(\"arrayminus\"),h(\"tracerefminus\"))):\"percent\"!==p&&\"constant\"!==p||(h(\"value\"),d||h(\"valueminus\"));var g=\"copy_\"+l.inherit+\"style\";if(l.inherit)(e[\"error_\"+l.inherit]||{}).visible&&h(g,!(f.color||n(f.thickness)||n(f.width)));l.inherit&&u[g]||(h(\"color\",r),h(\"thickness\"),h(\"width\",i.traceIs(e,\"gl3d\")?0:4))}}},{\"../../lib\":696,\"../../plot_api/plot_template\":734,\"../../registry\":827,\"./attributes\":597,\"fast-isnumeric\":214}],601:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../plot_api/edit_types\").overrideAll,a=t(\"./attributes\"),o={error_x:n.extendFlat({},a),error_y:n.extendFlat({},a)};delete o.error_x.copy_zstyle,delete o.error_y.copy_zstyle,delete o.error_y.copy_ystyle;var s={error_x:n.extendFlat({},a),error_y:n.extendFlat({},a),error_z:n.extendFlat({},a)};delete s.error_x.copy_ystyle,delete s.error_y.copy_ystyle,delete s.error_z.copy_ystyle,delete s.error_z.copy_zstyle,e.exports={moduleType:\"component\",name:\"errorbars\",schema:{traces:{scatter:o,bar:o,histogram:o,scatter3d:i(s,\"calc\",\"nested\"),scattergl:i(o,\"calc\",\"nested\")}},supplyDefaults:t(\"./defaults\"),calc:t(\"./calc\"),makeComputeError:t(\"./compute_error\"),plot:t(\"./plot\"),style:t(\"./style\"),hoverInfo:function(t,e,r){(e.error_y||{}).visible&&(r.yerr=t.yh-t.y,e.error_y.symmetric||(r.yerrneg=t.y-t.ys));(e.error_x||{}).visible&&(r.xerr=t.xh-t.x,e.error_x.symmetric||(r.xerrneg=t.x-t.xs))}}},{\"../../lib\":696,\"../../plot_api/edit_types\":727,\"./attributes\":597,\"./calc\":598,\"./compute_error\":599,\"./defaults\":600,\"./plot\":602,\"./style\":603}],602:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"fast-isnumeric\"),a=t(\"../drawing\"),o=t(\"../../traces/scatter/subtypes\");e.exports=function(t,e,r){var s=e.xaxis,l=e.yaxis,c=r&&r.duration>0;t.each(function(t){var u,f=t[0].trace,h=f.error_x||{},p=f.error_y||{};f.ids&&(u=function(t){return t.id});var d=o.hasMarkers(f)&&f.marker.maxdisplayed>0;p.visible||h.visible||(t=[]);var g=n.select(this).selectAll(\"g.errorbar\").data(t,u);if(g.exit().remove(),t.length){h.visible||g.selectAll(\"path.xerror\").remove(),p.visible||g.selectAll(\"path.yerror\").remove(),g.style(\"opacity\",1);var v=g.enter().append(\"g\").classed(\"errorbar\",!0);c&&v.style(\"opacity\",0).transition().duration(r.duration).style(\"opacity\",1),a.setClipUrl(g,e.layerClipId),g.each(function(t){var e=n.select(this),a=function(t,e,r){var n={x:e.c2p(t.x),y:r.c2p(t.y)};void 0!==t.yh&&(n.yh=r.c2p(t.yh),n.ys=r.c2p(t.ys),i(n.ys)||(n.noYS=!0,n.ys=r.c2p(t.ys,!0)));void 0!==t.xh&&(n.xh=e.c2p(t.xh),n.xs=e.c2p(t.xs),i(n.xs)||(n.noXS=!0,n.xs=e.c2p(t.xs,!0)));return n}(t,s,l);if(!d||t.vis){var o,u=e.select(\"path.yerror\");if(p.visible&&i(a.x)&&i(a.yh)&&i(a.ys)){var f=p.width;o=\"M\"+(a.x-f)+\",\"+a.yh+\"h\"+2*f+\"m-\"+f+\",0V\"+a.ys,a.noYS||(o+=\"m-\"+f+\",0h\"+2*f),!u.size()?u=e.append(\"path\").style(\"vector-effect\",\"non-scaling-stroke\").classed(\"yerror\",!0):c&&(u=u.transition().duration(r.duration).ease(r.easing)),u.attr(\"d\",o)}else u.remove();var g=e.select(\"path.xerror\");if(h.visible&&i(a.y)&&i(a.xh)&&i(a.xs)){var v=(h.copy_ystyle?p:h).width;o=\"M\"+a.xh+\",\"+(a.y-v)+\"v\"+2*v+\"m0,-\"+v+\"H\"+a.xs,a.noXS||(o+=\"m0,-\"+v+\"v\"+2*v),!g.size()?g=e.append(\"path\").style(\"vector-effect\",\"non-scaling-stroke\").classed(\"xerror\",!0):c&&(g=g.transition().duration(r.duration).ease(r.easing)),g.attr(\"d\",o)}else g.remove()}})}})}},{\"../../traces/scatter/subtypes\":1067,\"../drawing\":595,d3:148,\"fast-isnumeric\":214}],603:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../color\");e.exports=function(t){t.each(function(t){var e=t[0].trace,r=e.error_y||{},a=e.error_x||{},o=n.select(this);o.selectAll(\"path.yerror\").style(\"stroke-width\",r.thickness+\"px\").call(i.stroke,r.color),a.copy_ystyle&&(a=r),o.selectAll(\"path.xerror\").style(\"stroke-width\",a.thickness+\"px\").call(i.stroke,a.color)})}},{\"../color\":570,d3:148}],604:[function(t,e,r){\"use strict\";var n=t(\"../../plots/font_attributes\");e.exports={hoverlabel:{bgcolor:{valType:\"color\",arrayOk:!0,editType:\"none\"},bordercolor:{valType:\"color\",arrayOk:!0,editType:\"none\"},font:n({arrayOk:!0,editType:\"none\"}),namelength:{valType:\"integer\",min:-1,arrayOk:!0,editType:\"none\"},editType:\"calc\"}}},{\"../../plots/font_attributes\":771}],605:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../registry\");function a(t,e,r,i){i=i||n.identity,Array.isArray(t)&&(e[0][r]=i(t))}e.exports=function(t){var e=t.calcdata,r=t._fullLayout;function o(t){return function(e){return n.coerceHoverinfo({hoverinfo:e},{_module:t._module},r)}}for(var s=0;s<e.length;s++){var l=e[s],c=l[0].trace;if(!i.traceIs(c,\"pie\")){var u=i.traceIs(c,\"2dMap\")?a:n.fillArray;u(c.hoverinfo,l,\"hi\",o(c)),c.hoverlabel&&(u(c.hoverlabel.bgcolor,l,\"hbg\"),u(c.hoverlabel.bordercolor,l,\"hbc\"),u(c.hoverlabel.font.size,l,\"hts\"),u(c.hoverlabel.font.color,l,\"htc\"),u(c.hoverlabel.font.family,l,\"htf\"),u(c.hoverlabel.namelength,l,\"hnl\"))}}}},{\"../../lib\":696,\"../../registry\":827}],606:[function(t,e,r){\"use strict\";var n=t(\"../../registry\"),i=t(\"./hover\").hover;e.exports=function(t,e,r){var a=n.getComponentMethod(\"annotations\",\"onClick\")(t,t._hoverdata);function o(){t.emit(\"plotly_click\",{points:t._hoverdata,event:e})}void 0!==r&&i(t,e,r,!0),t._hoverdata&&e&&e.target&&(a&&a.then?a.then(o):o(),e.stopImmediatePropagation&&e.stopImmediatePropagation())}},{\"../../registry\":827,\"./hover\":610}],607:[function(t,e,r){\"use strict\";e.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:\"Arial, sans-serif\",HOVERMINTIME:50,HOVERID:\"-hover\"}},{}],608:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"./attributes\"),a=t(\"./hoverlabel_defaults\");e.exports=function(t,e,r,o){a(t,e,function(r,a){return n.coerce(t,e,i,r,a)},o.hoverlabel)}},{\"../../lib\":696,\"./attributes\":604,\"./hoverlabel_defaults\":611}],609:[function(t,e,r){\"use strict\";var n=t(\"../../lib\");r.getSubplot=function(t){return t.subplot||t.xaxis+t.yaxis||t.geo},r.isTraceInSubplots=function(t,e){if(\"splom\"===t.type){for(var n=t.xaxes||[],i=t.yaxes||[],a=0;a<n.length;a++)for(var o=0;o<i.length;o++)if(-1!==e.indexOf(n[a]+i[o]))return!0;return!1}return-1!==e.indexOf(r.getSubplot(t))},r.flat=function(t,e){for(var r=new Array(t.length),n=0;n<t.length;n++)r[n]=e;return r},r.p2c=function(t,e){for(var r=new Array(t.length),n=0;n<t.length;n++)r[n]=t[n].p2c(e);return r},r.getDistanceFunction=function(t,e,n,i){return\"closest\"===t?i||r.quadrature(e,n):\"x\"===t?e:n},r.getClosest=function(t,e,r){if(!1!==r.index)r.index>=0&&r.index<t.length?r.distance=0:r.index=!1;else for(var n=0;n<t.length;n++){var i=e(t[n]);i<=r.distance&&(r.index=n,r.distance=i)}return r},r.inbox=function(t,e,r){return t*e<0||0===t?r:1/0},r.quadrature=function(t,e){return function(r){var n=t(r),i=e(r);return Math.sqrt(n*n+i*i)}},r.makeEventData=function(t,e,n){var i=\"index\"in t?t.index:t.pointNumber,a={data:e._input,fullData:e,curveNumber:e.index,pointNumber:i};if(e._indexToPoints){var o=e._indexToPoints[i];1===o.length?a.pointIndex=o[0]:a.pointIndices=o}else a.pointIndex=i;return e._module.eventData?a=e._module.eventData(a,t,e,n,i):(\"xVal\"in t?a.x=t.xVal:\"x\"in t&&(a.x=t.x),\"yVal\"in t?a.y=t.yVal:\"y\"in t&&(a.y=t.y),t.xa&&(a.xaxis=t.xa),t.ya&&(a.yaxis=t.ya),void 0!==t.zLabelVal&&(a.z=t.zLabelVal)),r.appendArrayPointValue(a,e,i),a},r.appendArrayPointValue=function(t,e,r){var i=e._arrayAttrs;if(i)for(var s=0;s<i.length;s++){var l=i[s],c=a(l);if(void 0===t[c]){var u=o(n.nestedProperty(e,l).get(),r);void 0!==u&&(t[c]=u)}}},r.appendArrayMultiPointValues=function(t,e,r){var i=e._arrayAttrs;if(i)for(var s=0;s<i.length;s++){var l=i[s],c=a(l);if(void 0===t[c]){for(var u=n.nestedProperty(e,l).get(),f=new Array(r.length),h=0;h<r.length;h++)f[h]=o(u,r[h]);t[c]=f}}};var i={ids:\"id\",locations:\"location\",labels:\"label\",values:\"value\",\"marker.colors\":\"color\"};function a(t){return i[t]||t}function o(t,e){return Array.isArray(e)?Array.isArray(t)&&Array.isArray(t[e[0]])?t[e[0]][e[1]]:void 0:t[e]}},{\"../../lib\":696}],610:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"fast-isnumeric\"),a=t(\"tinycolor2\"),o=t(\"../../lib\"),s=t(\"../../lib/events\"),l=t(\"../../lib/svg_text_utils\"),c=t(\"../../lib/override_cursor\"),u=t(\"../drawing\"),f=t(\"../color\"),h=t(\"../dragelement\"),p=t(\"../../plots/cartesian/axes\"),d=t(\"../../registry\"),g=t(\"./helpers\"),v=t(\"./constants\"),m=v.YANGLE,y=Math.PI*m/180,x=1/Math.sin(y),b=Math.cos(y),_=Math.sin(y),w=v.HOVERARROWSIZE,k=v.HOVERTEXTPAD;function M(t,e,r){var i=e.hovermode,a=e.rotateLabels,s=e.bgColor,c=e.container,h=e.outerContainer,p=e.commonLabelOpts||{},d=e.fontFamily||v.HOVERFONT,g=e.fontSize||v.HOVERFONTSIZE,y=t[0],x=y.xa,b=y.ya,_=\"y\"===i?\"yLabel\":\"xLabel\",M=y[_],A=(String(M)||\"\").split(\" \")[0],T=h.node().getBoundingClientRect(),S=T.top,E=T.width,C=T.height,L=void 0!==M&&y.distance<=e.hoverdistance&&(\"x\"===i||\"y\"===i);if(L){var z,O,I=!0;for(z=0;z<t.length;z++){I&&void 0===t[z].zLabel&&(I=!1),O=t[z].hoverinfo||t[z].trace.hoverinfo;var P=Array.isArray(O)?O:O.split(\"+\");if(-1===P.indexOf(\"all\")&&-1===P.indexOf(i)){L=!1;break}}I&&(L=!1)}var D=c.selectAll(\"g.axistext\").data(L?[0]:[]);D.enter().append(\"g\").classed(\"axistext\",!0),D.exit().remove(),D.each(function(){var e=n.select(this),a=o.ensureSingle(e,\"path\",\"\",function(t){t.style({\"stroke-width\":\"1px\"})}),s=o.ensureSingle(e,\"text\",\"\",function(t){t.attr(\"data-notex\",1)}),c=p.bgcolor||f.defaultLine,h=p.bordercolor||f.contrast(c),v=f.contrast(c);a.style({fill:c,stroke:h}),s.text(M).call(u.font,p.font.family||d,p.font.size||g,p.font.color||v).call(l.positionText,0,0).call(l.convertToTspans,r),e.attr(\"transform\",\"\");var m=s.node().getBoundingClientRect();if(\"x\"===i){s.attr(\"text-anchor\",\"middle\").call(l.positionText,0,\"top\"===x.side?S-m.bottom-w-k:S-m.top+w+k);var T=\"top\"===x.side?\"-\":\"\";a.attr(\"d\",\"M0,0L\"+w+\",\"+T+w+\"H\"+(k+m.width/2)+\"v\"+T+(2*k+m.height)+\"H-\"+(k+m.width/2)+\"V\"+T+w+\"H-\"+w+\"Z\"),e.attr(\"transform\",\"translate(\"+(x._offset+(y.x0+y.x1)/2)+\",\"+(b._offset+(\"top\"===x.side?0:b._length))+\")\")}else{s.attr(\"text-anchor\",\"right\"===b.side?\"start\":\"end\").call(l.positionText,(\"right\"===b.side?1:-1)*(k+w),S-m.top-m.height/2);var E=\"right\"===b.side?\"\":\"-\";a.attr(\"d\",\"M0,0L\"+E+w+\",\"+w+\"V\"+(k+m.height/2)+\"h\"+E+(2*k+m.width)+\"V-\"+(k+m.height/2)+\"H\"+E+w+\"V-\"+w+\"Z\"),e.attr(\"transform\",\"translate(\"+(x._offset+(\"right\"===b.side?x._length:0))+\",\"+(b._offset+(y.y0+y.y1)/2)+\")\")}t=t.filter(function(t){return void 0!==t.zLabelVal||(t[_]||\"\").split(\" \")[0]===A})});var R=c.selectAll(\"g.hovertext\").data(t,function(t){return[t.trace.index,t.index,t.x0,t.y0,t.name,t.attr,t.xa,t.ya||\"\"].join(\",\")});return R.enter().append(\"g\").classed(\"hovertext\",!0).each(function(){var t=n.select(this);t.append(\"rect\").call(f.fill,f.addOpacity(s,.8)),t.append(\"text\").classed(\"name\",!0),t.append(\"path\").style(\"stroke-width\",\"1px\"),t.append(\"text\").classed(\"nums\",!0).call(u.font,d,g)}),R.exit().remove(),R.each(function(t){var e=n.select(this).attr(\"transform\",\"\"),o=\"\",c=\"\",h=t.bgcolor||t.color,p=f.combine(f.opacity(h)?h:f.defaultLine,s),v=f.combine(f.opacity(t.color)?t.color:f.defaultLine,s),y=t.borderColor||f.contrast(p);if(void 0!==t.nameOverride&&(t.name=t.nameOverride),t.name){o=l.plainText(t.name||\"\");var x=Math.round(t.nameLength);x>-1&&o.length>x&&(o=x>3?o.substr(0,x-3)+\"...\":o.substr(0,x))}void 0!==t.zLabel?(void 0!==t.xLabel&&(c+=\"x: \"+t.xLabel+\"<br>\"),void 0!==t.yLabel&&(c+=\"y: \"+t.yLabel+\"<br>\"),c+=(c?\"z: \":\"\")+t.zLabel):L&&t[i+\"Label\"]===M?c=t[(\"x\"===i?\"y\":\"x\")+\"Label\"]||\"\":void 0===t.xLabel?void 0!==t.yLabel&&(c=t.yLabel):c=void 0===t.yLabel?t.xLabel:\"(\"+t.xLabel+\", \"+t.yLabel+\")\",!t.text&&0!==t.text||Array.isArray(t.text)||(c+=(c?\"<br>\":\"\")+t.text),void 0!==t.extraText&&(c+=(c?\"<br>\":\"\")+t.extraText),\"\"===c&&(\"\"===o&&e.remove(),c=o);var b=e.select(\"text.nums\").call(u.font,t.fontFamily||d,t.fontSize||g,t.fontColor||y).text(c).attr(\"data-notex\",1).call(l.positionText,0,0).call(l.convertToTspans,r),_=e.select(\"text.name\"),A=0;o&&o!==c?(_.call(u.font,t.fontFamily||d,t.fontSize||g,v).text(o).attr(\"data-notex\",1).call(l.positionText,0,0).call(l.convertToTspans,r),A=_.node().getBoundingClientRect().width+2*k):(_.remove(),e.select(\"rect\").remove()),e.select(\"path\").style({fill:p,stroke:y});var T,z,O=b.node().getBoundingClientRect(),I=t.xa._offset+(t.x0+t.x1)/2,P=t.ya._offset+(t.y0+t.y1)/2,D=Math.abs(t.x1-t.x0),R=Math.abs(t.y1-t.y0),B=O.width+w+k+A;t.ty0=S-O.top,t.bx=O.width+2*k,t.by=O.height+2*k,t.anchor=\"start\",t.txwidth=O.width,t.tx2width=A,t.offset=0,a?(t.pos=I,T=P+R/2+B<=C,z=P-R/2-B>=0,\"top\"!==t.idealAlign&&T||!z?T?(P+=R/2,t.anchor=\"start\"):t.anchor=\"middle\":(P-=R/2,t.anchor=\"end\")):(t.pos=P,T=I+D/2+B<=E,z=I-D/2-B>=0,\"left\"!==t.idealAlign&&T||!z?T?(I+=D/2,t.anchor=\"start\"):t.anchor=\"middle\":(I-=D/2,t.anchor=\"end\")),b.attr(\"text-anchor\",t.anchor),A&&_.attr(\"text-anchor\",t.anchor),e.attr(\"transform\",\"translate(\"+I+\",\"+P+\")\"+(a?\"rotate(\"+m+\")\":\"\"))}),R}function A(t,e){t.each(function(t){var r=n.select(this);if(t.del)r.remove();else{var i=\"end\"===t.anchor?-1:1,a=r.select(\"text.nums\"),o={start:1,end:-1,middle:0}[t.anchor],s=o*(w+k),c=s+o*(t.txwidth+k),f=0,h=t.offset;\"middle\"===t.anchor&&(s-=t.tx2width/2,c+=t.txwidth/2+k),e&&(h*=-_,f=t.offset*b),r.select(\"path\").attr(\"d\",\"middle\"===t.anchor?\"M-\"+(t.bx/2+t.tx2width/2)+\",\"+(h-t.by/2)+\"h\"+t.bx+\"v\"+t.by+\"h-\"+t.bx+\"Z\":\"M0,0L\"+(i*w+f)+\",\"+(w+h)+\"v\"+(t.by/2-w)+\"h\"+i*t.bx+\"v-\"+t.by+\"H\"+(i*w+f)+\"V\"+(h-w)+\"Z\"),a.call(l.positionText,s+f,h+t.ty0-t.by/2+k),t.tx2width&&(r.select(\"text.name\").call(l.positionText,c+o*k+f,h+t.ty0-t.by/2+k),r.select(\"rect\").call(u.setRect,c+(o-1)*t.tx2width/2+f,h-t.by/2-1,t.tx2width,t.by+2))}})}function T(t,e){var r=t.index,n=t.trace||{},i=t.cd[0],a=t.cd[r]||{},s=Array.isArray(r)?function(t,e){return o.castOption(i,r,t)||o.extractOption({},n,\"\",e)}:function(t,e){return o.extractOption(a,n,t,e)};function l(e,r,n){var i=s(r,n);i&&(t[e]=i)}if(l(\"hoverinfo\",\"hi\",\"hoverinfo\"),l(\"bgcolor\",\"hbg\",\"hoverlabel.bgcolor\"),l(\"borderColor\",\"hbc\",\"hoverlabel.bordercolor\"),l(\"fontFamily\",\"htf\",\"hoverlabel.font.family\"),l(\"fontSize\",\"hts\",\"hoverlabel.font.size\"),l(\"fontColor\",\"htc\",\"hoverlabel.font.color\"),l(\"nameLength\",\"hnl\",\"hoverlabel.namelength\"),t.posref=\"y\"===e?t.xa._offset+(t.x0+t.x1)/2:t.ya._offset+(t.y0+t.y1)/2,t.x0=o.constrain(t.x0,0,t.xa._length),t.x1=o.constrain(t.x1,0,t.xa._length),t.y0=o.constrain(t.y0,0,t.ya._length),t.y1=o.constrain(t.y1,0,t.ya._length),void 0!==t.xLabelVal&&(t.xLabel=\"xLabel\"in t?t.xLabel:p.hoverLabelText(t.xa,t.xLabelVal),t.xVal=t.xa.c2d(t.xLabelVal)),void 0!==t.yLabelVal&&(t.yLabel=\"yLabel\"in t?t.yLabel:p.hoverLabelText(t.ya,t.yLabelVal),t.yVal=t.ya.c2d(t.yLabelVal)),void 0!==t.zLabelVal&&void 0===t.zLabel&&(t.zLabel=String(t.zLabelVal)),!(isNaN(t.xerr)||\"log\"===t.xa.type&&t.xerr<=0)){var c=p.tickText(t.xa,t.xa.c2l(t.xerr),\"hover\").text;void 0!==t.xerrneg?t.xLabel+=\" +\"+c+\" / -\"+p.tickText(t.xa,t.xa.c2l(t.xerrneg),\"hover\").text:t.xLabel+=\" \\xb1 \"+c,\"x\"===e&&(t.distance+=1)}if(!(isNaN(t.yerr)||\"log\"===t.ya.type&&t.yerr<=0)){var u=p.tickText(t.ya,t.ya.c2l(t.yerr),\"hover\").text;void 0!==t.yerrneg?t.yLabel+=\" +\"+u+\" / -\"+p.tickText(t.ya,t.ya.c2l(t.yerrneg),\"hover\").text:t.yLabel+=\" \\xb1 \"+u,\"y\"===e&&(t.distance+=1)}var f=t.hoverinfo||t.trace.hoverinfo;return\"all\"!==f&&(-1===(f=Array.isArray(f)?f:f.split(\"+\")).indexOf(\"x\")&&(t.xLabel=void 0),-1===f.indexOf(\"y\")&&(t.yLabel=void 0),-1===f.indexOf(\"z\")&&(t.zLabel=void 0),-1===f.indexOf(\"text\")&&(t.text=void 0),-1===f.indexOf(\"name\")&&(t.name=void 0)),t}function S(t,e){var r,n,i=e.container,o=e.fullLayout,s=e.event,l=!!t.hLinePoint,c=!!t.vLinePoint;if(i.selectAll(\".spikeline\").remove(),c||l){var h=f.combine(o.plot_bgcolor,o.paper_bgcolor);if(l){var p,d,g=t.hLinePoint;r=g&&g.xa,\"cursor\"===(n=g&&g.ya).spikesnap?(p=s.pointerX,d=s.pointerY):(p=r._offset+g.x,d=n._offset+g.y);var v,m,y=a.readability(g.color,h)<1.5?f.contrast(h):g.color,x=n.spikemode,b=n.spikethickness,_=n.spikecolor||y,w=n._boundingBox,k=(w.left+w.right)/2<p?w.right:w.left;-1===x.indexOf(\"toaxis\")&&-1===x.indexOf(\"across\")||(-1!==x.indexOf(\"toaxis\")&&(v=k,m=p),-1!==x.indexOf(\"across\")&&(v=n._counterSpan[0],m=n._counterSpan[1]),i.insert(\"line\",\":first-child\").attr({x1:v,x2:m,y1:d,y2:d,\"stroke-width\":b,stroke:_,\"stroke-dasharray\":u.dashStyle(n.spikedash,b)}).classed(\"spikeline\",!0).classed(\"crisp\",!0),i.insert(\"line\",\":first-child\").attr({x1:v,x2:m,y1:d,y2:d,\"stroke-width\":b+2,stroke:h}).classed(\"spikeline\",!0).classed(\"crisp\",!0)),-1!==x.indexOf(\"marker\")&&i.insert(\"circle\",\":first-child\").attr({cx:k+(\"right\"!==n.side?b:-b),cy:d,r:b,fill:_}).classed(\"spikeline\",!0)}if(c){var M,A,T=t.vLinePoint;r=T&&T.xa,n=T&&T.ya,\"cursor\"===r.spikesnap?(M=s.pointerX,A=s.pointerY):(M=r._offset+T.x,A=n._offset+T.y);var S,E,C=a.readability(T.color,h)<1.5?f.contrast(h):T.color,L=r.spikemode,z=r.spikethickness,O=r.spikecolor||C,I=r._boundingBox,P=(I.top+I.bottom)/2<A?I.bottom:I.top;-1===L.indexOf(\"toaxis\")&&-1===L.indexOf(\"across\")||(-1!==L.indexOf(\"toaxis\")&&(S=P,E=A),-1!==L.indexOf(\"across\")&&(S=r._counterSpan[0],E=r._counterSpan[1]),i.insert(\"line\",\":first-child\").attr({x1:M,x2:M,y1:S,y2:E,\"stroke-width\":z,stroke:O,\"stroke-dasharray\":u.dashStyle(r.spikedash,z)}).classed(\"spikeline\",!0).classed(\"crisp\",!0),i.insert(\"line\",\":first-child\").attr({x1:M,x2:M,y1:S,y2:E,\"stroke-width\":z+2,stroke:h}).classed(\"spikeline\",!0).classed(\"crisp\",!0)),-1!==L.indexOf(\"marker\")&&i.insert(\"circle\",\":first-child\").attr({cx:M,cy:P-(\"top\"!==r.side?z:-z),r:z,fill:O}).classed(\"spikeline\",!0)}}}function E(t,e){return!e||(e.vLinePoint!==t._spikepoints.vLinePoint||e.hLinePoint!==t._spikepoints.hLinePoint)}r.hover=function(t,e,r,a){t=o.getGraphDiv(t),o.throttle(t._fullLayout._uid+v.HOVERID,v.HOVERMINTIME,function(){!function(t,e,r,a){r||(r=\"xy\");var l=Array.isArray(r)?r:[r],u=t._fullLayout,v=u._plots||[],m=v[r],y=u._has(\"cartesian\");if(m){var b=m.overlays.map(function(t){return t.id});l=l.concat(b)}for(var _=l.length,w=new Array(_),k=new Array(_),C=!1,L=0;L<_;L++){var z=l[L],O=v[z];if(O)C=!0,w[L]=p.getFromId(t,O.xaxis._id),k[L]=p.getFromId(t,O.yaxis._id);else{var I=u[z]._subplot;w[L]=I.xaxis,k[L]=I.yaxis}}var P=e.hovermode||u.hovermode;P&&!C&&(P=\"closest\");if(-1===[\"x\",\"y\",\"closest\"].indexOf(P)||!t.calcdata||t.querySelector(\".zoombox\")||t._dragging)return h.unhoverRaw(t,e);var D,R,B,F,N,j,V,U,q,H,G,W,Y,X=-1===u.hoverdistance?1/0:u.hoverdistance,Z=-1===u.spikedistance?1/0:u.spikedistance,$=[],J=[],K={hLinePoint:null,vLinePoint:null},Q=!1;if(Array.isArray(e))for(P=\"array\",B=0;B<e.length;B++)N=t.calcdata[e[B].curveNumber||0],j=N[0].trace,\"skip\"!==N[0].trace.hoverinfo&&(J.push(N),\"h\"===j.orientation&&(Q=!0));else{for(F=0;F<t.calcdata.length;F++)N=t.calcdata[F],\"skip\"!==(j=N[0].trace).hoverinfo&&g.isTraceInSubplots(j,l)&&(J.push(N),\"h\"===j.orientation&&(Q=!0));var tt,et,rt=!e.target;if(rt)tt=\"xpx\"in e?e.xpx:w[0]._length/2,et=\"ypx\"in e?e.ypx:k[0]._length/2;else{if(!1===s.triggerHandler(t,\"plotly_beforehover\",e))return;var nt=e.target.getBoundingClientRect();if(tt=e.clientX-nt.left,et=e.clientY-nt.top,tt<0||tt>w[0]._length||et<0||et>k[0]._length)return h.unhoverRaw(t,e)}if(e.pointerX=tt+w[0]._offset,e.pointerY=et+k[0]._offset,D=\"xval\"in e?g.flat(l,e.xval):g.p2c(w,tt),R=\"yval\"in e?g.flat(l,e.yval):g.p2c(k,et),!i(D[0])||!i(R[0]))return o.warn(\"Fx.hover failed\",e,t),h.unhoverRaw(t,e)}var it=1/0;for(F=0;F<J.length;F++)if((N=J[F])&&N[0]&&N[0].trace&&!0===N[0].trace.visible&&(j=N[0].trace,-1===[\"carpet\",\"contourcarpet\"].indexOf(j._module.name))){if(\"splom\"===j.type?V=l[U=0]:(V=g.getSubplot(j),U=l.indexOf(V)),q=P,W={cd:N,trace:j,xa:w[U],ya:k[U],maxHoverDistance:X,maxSpikeDistance:Z,index:!1,distance:Math.min(it,X),spikeDistance:1/0,xSpike:void 0,ySpike:void 0,color:f.defaultLine,name:j.name,x0:void 0,x1:void 0,y0:void 0,y1:void 0,xLabelVal:void 0,yLabelVal:void 0,zLabelVal:void 0,text:void 0},u[V]&&(W.subplot=u[V]._subplot),u._splomScenes&&u._splomScenes[j.uid]&&(W.scene=u._splomScenes[j.uid]),Y=$.length,\"array\"===q){var at=e[F];\"pointNumber\"in at?(W.index=at.pointNumber,q=\"closest\"):(q=\"\",\"xval\"in at&&(H=at.xval,q=\"x\"),\"yval\"in at&&(G=at.yval,q=q?\"closest\":\"y\"))}else H=D[U],G=R[U];if(0!==X)if(j._module&&j._module.hoverPoints){var ot=j._module.hoverPoints(W,H,G,q,u._hoverlayer);if(ot)for(var st,lt=0;lt<ot.length;lt++)st=ot[lt],i(st.x0)&&i(st.y0)&&$.push(T(st,P))}else o.log(\"Unrecognized trace type in hover:\",j);if(\"closest\"===P&&$.length>Y&&($.splice(0,Y),it=$[0].distance),y&&0!==Z&&0===$.length){W.distance=Z,W.index=!1;var ct=j._module.hoverPoints(W,H,G,\"closest\",u._hoverlayer);if(ct&&(ct=ct.filter(function(t){return t.spikeDistance<=Z})),ct&&ct.length){var ut,ft=ct.filter(function(t){return t.xa.showspikes});if(ft.length){var ht=ft[0];i(ht.x0)&&i(ht.y0)&&(ut=vt(ht),(!K.vLinePoint||K.vLinePoint.spikeDistance>ut.spikeDistance)&&(K.vLinePoint=ut))}var pt=ct.filter(function(t){return t.ya.showspikes});if(pt.length){var dt=pt[0];i(dt.x0)&&i(dt.y0)&&(ut=vt(dt),(!K.hLinePoint||K.hLinePoint.spikeDistance>ut.spikeDistance)&&(K.hLinePoint=ut))}}}}function gt(t,e){for(var r,n=null,i=1/0,a=0;a<t.length;a++)(r=t[a].spikeDistance)<i&&r<=e&&(n=t[a],i=r);return n}function vt(t){return t?{xa:t.xa,ya:t.ya,x:void 0!==t.xSpike?t.xSpike:(t.x0+t.x1)/2,y:void 0!==t.ySpike?t.ySpike:(t.y0+t.y1)/2,distance:t.distance,spikeDistance:t.spikeDistance,curveNumber:t.trace.index,color:t.color,pointNumber:t.index}:null}var mt={fullLayout:u,container:u._hoverlayer,outerContainer:u._paperdiv,event:e},yt=t._spikepoints,xt={vLinePoint:K.vLinePoint,hLinePoint:K.hLinePoint};if(t._spikepoints=xt,y&&0!==Z&&0!==$.length){var bt=$.filter(function(t){return t.ya.showspikes}),_t=gt(bt,Z);K.hLinePoint=vt(_t);var wt=$.filter(function(t){return t.xa.showspikes}),kt=gt(wt,Z);K.vLinePoint=vt(kt)}if(0===$.length){var Mt=h.unhoverRaw(t,e);return!y||null===K.hLinePoint&&null===K.vLinePoint||E(yt)&&S(K,mt),Mt}y&&E(yt)&&S(K,mt);$.sort(function(t,e){return t.distance-e.distance});var At=t._hoverdata,Tt=[];for(B=0;B<$.length;B++){var St=$[B];Tt.push(g.makeEventData(St,St.trace,St.cd))}t._hoverdata=Tt;var Et=\"y\"===P&&(J.length>1||$.length>1)||\"closest\"===P&&Q&&$.length>1,Ct=f.combine(u.plot_bgcolor||f.background,u.paper_bgcolor),Lt={hovermode:P,rotateLabels:Et,bgColor:Ct,container:u._hoverlayer,outerContainer:u._paperdiv,commonLabelOpts:u.hoverlabel,hoverdistance:u.hoverdistance},zt=M($,Lt,t);if(function(t,e,r){var n,i,a,o,s,l,c,u=0,f=1,h=t.map(function(t,n){var i=t[e],a=\"x\"===i._id.charAt(0),o=i.range;return!n&&o&&o[0]>o[1]!==a&&(f=-1),[{i:n,traceIndex:t.trace.index,dp:0,pos:t.pos,posref:t.posref,size:t.by*(a?x:1)/2,pmin:0,pmax:a?r.width:r.height}]}).sort(function(t,e){return t[0].posref-e[0].posref||f*(e[0].traceIndex-t[0].traceIndex)});function p(t){var e=t[0],r=t[t.length-1];if(i=e.pmin-e.pos-e.dp+e.size,a=r.pos+r.dp+r.size-e.pmax,i>.01){for(s=t.length-1;s>=0;s--)t[s].dp+=i;n=!1}if(!(a<.01)){if(i<-.01){for(s=t.length-1;s>=0;s--)t[s].dp-=a;n=!1}if(n){var c=0;for(o=0;o<t.length;o++)(l=t[o]).pos+l.dp+l.size>e.pmax&&c++;for(o=t.length-1;o>=0&&!(c<=0);o--)(l=t[o]).pos>e.pmax-1&&(l.del=!0,c--);for(o=0;o<t.length&&!(c<=0);o++)if((l=t[o]).pos<e.pmin+1)for(l.del=!0,c--,a=2*l.size,s=t.length-1;s>=0;s--)t[s].dp-=a;for(o=t.length-1;o>=0&&!(c<=0);o--)(l=t[o]).pos+l.dp+l.size>e.pmax&&(l.del=!0,c--)}}}for(;!n&&u<=t.length;){for(u++,n=!0,o=0;o<h.length-1;){var d=h[o],g=h[o+1],v=d[d.length-1],m=g[0];if((i=v.pos+v.dp+v.size-m.pos-m.dp+m.size)>.01&&v.pmin===m.pmin&&v.pmax===m.pmax){for(s=g.length-1;s>=0;s--)g[s].dp+=i;for(d.push.apply(d,g),h.splice(o+1,1),c=0,s=d.length-1;s>=0;s--)c+=d[s].dp;for(a=c/d.length,s=d.length-1;s>=0;s--)d[s].dp-=a;n=!1}else o++}h.forEach(p)}for(o=h.length-1;o>=0;o--){var y=h[o];for(s=y.length-1;s>=0;s--){var b=y[s],_=t[b.i];_.offset=b.dp,_.del=b.del}}}($,Et?\"xa\":\"ya\",u),A(zt,Et),e.target&&e.target.tagName){var Ot=d.getComponentMethod(\"annotations\",\"hasClickToShow\")(t,Tt);c(n.select(e.target),Ot?\"pointer\":\"\")}if(!e.target||a||!function(t,e,r){if(!r||r.length!==t._hoverdata.length)return!0;for(var n=r.length-1;n>=0;n--){var i=r[n],a=t._hoverdata[n];if(i.curveNumber!==a.curveNumber||String(i.pointNumber)!==String(a.pointNumber))return!0}return!1}(t,0,At))return;At&&t.emit(\"plotly_unhover\",{event:e,points:At});t.emit(\"plotly_hover\",{event:e,points:t._hoverdata,xaxes:w,yaxes:k,xvals:D,yvals:R})}(t,e,r,a)})},r.loneHover=function(t,e){var r={color:t.color||f.defaultLine,x0:t.x0||t.x||0,x1:t.x1||t.x||0,y0:t.y0||t.y||0,y1:t.y1||t.y||0,xLabel:t.xLabel,yLabel:t.yLabel,zLabel:t.zLabel,text:t.text,name:t.name,idealAlign:t.idealAlign,borderColor:t.borderColor,fontFamily:t.fontFamily,fontSize:t.fontSize,fontColor:t.fontColor,trace:{index:0,hoverinfo:\"\"},xa:{_offset:0},ya:{_offset:0},index:0},i=n.select(e.container),a=e.outerContainer?n.select(e.outerContainer):i,o={hovermode:\"closest\",rotateLabels:!1,bgColor:e.bgColor||f.background,container:i,outerContainer:a},s=M([r],o,e.gd);return A(s,o.rotateLabels),s.node()},r.multiHovers=function(t,e){Array.isArray(t)||(t=[t]);var r=t.map(function(t){return{color:t.color||f.defaultLine,x0:t.x0||t.x||0,x1:t.x1||t.x||0,y0:t.y0||t.y||0,y1:t.y1||t.y||0,xLabel:t.xLabel,yLabel:t.yLabel,zLabel:t.zLabel,text:t.text,name:t.name,idealAlign:t.idealAlign,borderColor:t.borderColor,fontFamily:t.fontFamily,fontSize:t.fontSize,fontColor:t.fontColor,trace:{index:0,hoverinfo:\"\"},xa:{_offset:0},ya:{_offset:0},index:0}}),i=n.select(e.container),a=e.outerContainer?n.select(e.outerContainer):i,o={hovermode:\"closest\",rotateLabels:!1,bgColor:e.bgColor||f.background,container:i,outerContainer:a},s=M(r,o,e.gd),l=0;return s.sort(function(t,e){return t.y0-e.y0}).each(function(t){var e=t.y0-t.by/2;t.offset=e-5<l?l-e+5:0,l=e+t.by+t.offset}),A(s,o.rotateLabels),s.node()}},{\"../../lib\":696,\"../../lib/events\":684,\"../../lib/override_cursor\":707,\"../../lib/svg_text_utils\":720,\"../../plots/cartesian/axes\":744,\"../../registry\":827,\"../color\":570,\"../dragelement\":592,\"../drawing\":595,\"./constants\":607,\"./helpers\":609,d3:148,\"fast-isnumeric\":214,tinycolor2:514}],611:[function(t,e,r){\"use strict\";var n=t(\"../../lib\");e.exports=function(t,e,r,i){r(\"hoverlabel.bgcolor\",(i=i||{}).bgcolor),r(\"hoverlabel.bordercolor\",i.bordercolor),r(\"hoverlabel.namelength\",i.namelength),n.coerceFont(r,\"hoverlabel.font\",i.font)}},{\"../../lib\":696}],612:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../../lib\"),a=t(\"../dragelement\"),o=t(\"./helpers\"),s=t(\"./layout_attributes\"),l=t(\"./hover\");e.exports={moduleType:\"component\",name:\"fx\",constants:t(\"./constants\"),schema:{layout:s},attributes:t(\"./attributes\"),layoutAttributes:s,supplyLayoutGlobalDefaults:t(\"./layout_global_defaults\"),supplyDefaults:t(\"./defaults\"),supplyLayoutDefaults:t(\"./layout_defaults\"),calc:t(\"./calc\"),getDistanceFunction:o.getDistanceFunction,getClosest:o.getClosest,inbox:o.inbox,quadrature:o.quadrature,appendArrayPointValue:o.appendArrayPointValue,castHoverOption:function(t,e,r){return i.castOption(t,e,\"hoverlabel.\"+r)},castHoverinfo:function(t,e,r){return i.castOption(t,r,\"hoverinfo\",function(r){return i.coerceHoverinfo({hoverinfo:r},{_module:t._module},e)})},hover:l.hover,unhover:a.unhover,loneHover:l.loneHover,multiHovers:l.multiHovers,loneUnhover:function(t){var e=i.isD3Selection(t)?t:n.select(t);e.selectAll(\"g.hovertext\").remove(),e.selectAll(\".spikeline\").remove()},click:t(\"./click\")}},{\"../../lib\":696,\"../dragelement\":592,\"./attributes\":604,\"./calc\":605,\"./click\":606,\"./constants\":607,\"./defaults\":608,\"./helpers\":609,\"./hover\":610,\"./layout_attributes\":613,\"./layout_defaults\":614,\"./layout_global_defaults\":615,d3:148}],613:[function(t,e,r){\"use strict\";var n=t(\"./constants\"),i=t(\"../../plots/font_attributes\")({editType:\"none\"});i.family.dflt=n.HOVERFONT,i.size.dflt=n.HOVERFONTSIZE,e.exports={clickmode:{valType:\"flaglist\",flags:[\"event\",\"select\"],dflt:\"event\",editType:\"plot\",extras:[\"none\"]},dragmode:{valType:\"enumerated\",values:[\"zoom\",\"pan\",\"select\",\"lasso\",\"orbit\",\"turntable\"],dflt:\"zoom\",editType:\"modebar\"},hovermode:{valType:\"enumerated\",values:[\"x\",\"y\",\"closest\",!1],editType:\"modebar\"},hoverdistance:{valType:\"integer\",min:-1,dflt:20,editType:\"none\"},spikedistance:{valType:\"integer\",min:-1,dflt:20,editType:\"none\"},hoverlabel:{bgcolor:{valType:\"color\",editType:\"none\"},bordercolor:{valType:\"color\",editType:\"none\"},font:i,namelength:{valType:\"integer\",min:-1,dflt:15,editType:\"none\"},editType:\"none\"},selectdirection:{valType:\"enumerated\",values:[\"h\",\"v\",\"d\",\"any\"],dflt:\"any\",editType:\"none\"}}},{\"../../plots/font_attributes\":771,\"./constants\":607}],614:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"./layout_attributes\");e.exports=function(t,e,r){function a(r,a){return n.coerce(t,e,i,r,a)}var o,s=a(\"clickmode\");\"select\"===a(\"dragmode\")&&a(\"selectdirection\"),e._has(\"cartesian\")?s.indexOf(\"select\")>-1?o=\"closest\":(e._isHoriz=function(t){for(var e=!0,r=0;r<t.length;r++){var n=t[r];if(\"h\"!==n.orientation){e=!1;break}}return e}(r),o=e._isHoriz?\"y\":\"x\"):o=\"closest\",a(\"hovermode\",o)&&(a(\"hoverdistance\"),a(\"spikedistance\"));var l=e._has(\"mapbox\"),c=e._has(\"geo\"),u=e._basePlotModules.length;\"zoom\"===e.dragmode&&((l||c)&&1===u||l&&c&&2===u)&&(e.dragmode=\"pan\")}},{\"../../lib\":696,\"./layout_attributes\":613}],615:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"./hoverlabel_defaults\"),a=t(\"./layout_attributes\");e.exports=function(t,e){i(t,e,function(r,i){return n.coerce(t,e,a,r,i)})}},{\"../../lib\":696,\"./hoverlabel_defaults\":611,\"./layout_attributes\":613}],616:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../lib/regex\").counter,a=t(\"../../plots/domain\").attributes,o=t(\"../../plots/cartesian/constants\").idRegex,s=t(\"../../plot_api/plot_template\"),l={rows:{valType:\"integer\",min:1,editType:\"plot\"},roworder:{valType:\"enumerated\",values:[\"top to bottom\",\"bottom to top\"],dflt:\"top to bottom\",editType:\"plot\"},columns:{valType:\"integer\",min:1,editType:\"plot\"},subplots:{valType:\"info_array\",freeLength:!0,dimensions:2,items:{valType:\"enumerated\",values:[i(\"xy\").toString(),\"\"],editType:\"plot\"},editType:\"plot\"},xaxes:{valType:\"info_array\",freeLength:!0,items:{valType:\"enumerated\",values:[o.x.toString(),\"\"],editType:\"plot\"},editType:\"plot\"},yaxes:{valType:\"info_array\",freeLength:!0,items:{valType:\"enumerated\",values:[o.y.toString(),\"\"],editType:\"plot\"},editType:\"plot\"},pattern:{valType:\"enumerated\",values:[\"independent\",\"coupled\"],dflt:\"coupled\",editType:\"plot\"},xgap:{valType:\"number\",min:0,max:1,editType:\"plot\"},ygap:{valType:\"number\",min:0,max:1,editType:\"plot\"},domain:a({name:\"grid\",editType:\"plot\",noGridCell:!0},{}),xside:{valType:\"enumerated\",values:[\"bottom\",\"bottom plot\",\"top plot\",\"top\"],dflt:\"bottom plot\",editType:\"plot\"},yside:{valType:\"enumerated\",values:[\"left\",\"left plot\",\"right plot\",\"right\"],dflt:\"left plot\",editType:\"plot\"},editType:\"plot\"};function c(t,e,r){var n=e[r+\"axes\"],i=Object.keys((t._splomAxes||{})[r]||{});return Array.isArray(n)?n:i.length?i:void 0}function u(t,e,r,n,i,a){var o=e(t+\"gap\",r),s=e(\"domain.\"+t);e(t+\"side\",n);for(var l=new Array(i),c=s[0],u=(s[1]-c)/(i-o),f=u*(1-o),h=0;h<i;h++){var p=c+u*h;l[a?i-1-h:h]=[p,p+f]}return l}function f(t,e,r,n,i){var a,o=new Array(r);function s(t,r){-1!==e.indexOf(r)&&void 0===n[r]?(o[t]=r,n[r]=t):o[t]=\"\"}if(Array.isArray(t))for(a=0;a<r;a++)s(a,t[a]);else for(s(0,i),a=1;a<r;a++)s(a,i+(a+1));return o}e.exports={moduleType:\"component\",name:\"grid\",schema:{layout:{grid:l}},layoutAttributes:l,sizeDefaults:function(t,e){var r=t.grid||{},i=c(e,r,\"x\"),a=c(e,r,\"y\");if(t.grid||i||a){var o,f,h=Array.isArray(r.subplots)&&Array.isArray(r.subplots[0]),p=Array.isArray(i),d=Array.isArray(a),g=p&&i!==r.xaxes&&d&&a!==r.yaxes;h?(o=r.subplots.length,f=r.subplots[0].length):(d&&(o=a.length),p&&(f=i.length));var v=s.newContainer(e,\"grid\"),m=M(\"rows\",o),y=M(\"columns\",f);if(m*y>1){h||p||d||\"independent\"===M(\"pattern\")&&(h=!0),v._hasSubplotGrid=h;var x,b,_=\"top to bottom\"===M(\"roworder\"),w=h?.2:.1,k=h?.3:.1;g&&e._splomGridDflt&&(x=e._splomGridDflt.xside,b=e._splomGridDflt.yside),v._domains={x:u(\"x\",M,w,x,y),y:u(\"y\",M,k,b,m,_)}}else delete e.grid}function M(t,e){return n.coerce(r,v,l,t,e)}},contentDefaults:function(t,e){var r=e.grid;if(r&&r._domains){var n,i,a,o,s,l,u,h=t.grid||{},p=e._subplots,d=r._hasSubplotGrid,g=r.rows,v=r.columns,m=\"independent\"===r.pattern,y=r._axisMap={};if(d){var x=h.subplots||[];l=r.subplots=new Array(g);var b=1;for(n=0;n<g;n++){var _=l[n]=new Array(v),w=x[n]||[];for(i=0;i<v;i++)if(m?(s=1===b?\"xy\":\"x\"+b+\"y\"+b,b++):s=w[i],_[i]=\"\",-1!==p.cartesian.indexOf(s)){if(u=s.indexOf(\"y\"),a=s.slice(0,u),o=s.slice(u),void 0!==y[a]&&y[a]!==i||void 0!==y[o]&&y[o]!==n)continue;_[i]=s,y[a]=i,y[o]=n}}}else{var k=c(e,h,\"x\"),M=c(e,h,\"y\");r.xaxes=f(k,p.xaxis,v,y,\"x\"),r.yaxes=f(M,p.yaxis,g,y,\"y\")}var A=r._anchors={},T=\"top to bottom\"===r.roworder;for(var S in y){var E,C,L,z=S.charAt(0),O=r[z+\"side\"];if(O.length<8)A[S]=\"free\";else if(\"x\"===z){if(\"t\"===O.charAt(0)===T?(E=0,C=1,L=g):(E=g-1,C=-1,L=-1),d){var I=y[S];for(n=E;n!==L;n+=C)if((s=l[n][I])&&(u=s.indexOf(\"y\"),s.slice(0,u)===S)){A[S]=s.slice(u);break}}else for(n=E;n!==L;n+=C)if(o=r.yaxes[n],-1!==p.cartesian.indexOf(S+o)){A[S]=o;break}}else if(\"l\"===O.charAt(0)?(E=0,C=1,L=v):(E=v-1,C=-1,L=-1),d){var P=y[S];for(n=E;n!==L;n+=C)if((s=l[P][n])&&(u=s.indexOf(\"y\"),s.slice(u)===S)){A[S]=s.slice(0,u);break}}else for(n=E;n!==L;n+=C)if(a=r.xaxes[n],-1!==p.cartesian.indexOf(a+S)){A[S]=a;break}}}}}},{\"../../lib\":696,\"../../lib/regex\":712,\"../../plot_api/plot_template\":734,\"../../plots/cartesian/constants\":750,\"../../plots/domain\":770}],617:[function(t,e,r){\"use strict\";var n=t(\"../../plots/cartesian/constants\"),i=t(\"../../plot_api/plot_template\").templatedArray;e.exports=i(\"image\",{visible:{valType:\"boolean\",dflt:!0,editType:\"arraydraw\"},source:{valType:\"string\",editType:\"arraydraw\"},layer:{valType:\"enumerated\",values:[\"below\",\"above\"],dflt:\"above\",editType:\"arraydraw\"},sizex:{valType:\"number\",dflt:0,editType:\"arraydraw\"},sizey:{valType:\"number\",dflt:0,editType:\"arraydraw\"},sizing:{valType:\"enumerated\",values:[\"fill\",\"contain\",\"stretch\"],dflt:\"contain\",editType:\"arraydraw\"},opacity:{valType:\"number\",min:0,max:1,dflt:1,editType:\"arraydraw\"},x:{valType:\"any\",dflt:0,editType:\"arraydraw\"},y:{valType:\"any\",dflt:0,editType:\"arraydraw\"},xanchor:{valType:\"enumerated\",values:[\"left\",\"center\",\"right\"],dflt:\"left\",editType:\"arraydraw\"},yanchor:{valType:\"enumerated\",values:[\"top\",\"middle\",\"bottom\"],dflt:\"top\",editType:\"arraydraw\"},xref:{valType:\"enumerated\",values:[\"paper\",n.idRegex.x.toString()],dflt:\"paper\",editType:\"arraydraw\"},yref:{valType:\"enumerated\",values:[\"paper\",n.idRegex.y.toString()],dflt:\"paper\",editType:\"arraydraw\"},editType:\"arraydraw\"})},{\"../../plot_api/plot_template\":734,\"../../plots/cartesian/constants\":750}],618:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../../lib/to_log_range\");e.exports=function(t,e,r,a){e=e||{};var o=\"log\"===r&&\"linear\"===e.type,s=\"linear\"===r&&\"log\"===e.type;if(o||s)for(var l,c,u=t._fullLayout.images,f=e._id.charAt(0),h=0;h<u.length;h++)if(c=\"images[\"+h+\"].\",(l=u[h])[f+\"ref\"]===e._id){var p=l[f],d=l[\"size\"+f],g=null,v=null;if(o){g=i(p,e.range);var m=d/Math.pow(10,g)/2;v=2*Math.log(m+Math.sqrt(1+m*m))/Math.LN10}else v=(g=Math.pow(10,p))*(Math.pow(10,d/2)-Math.pow(10,-d/2));n(g)?n(v)||(v=null):(g=null,v=null),a(c+f,g),a(c+\"size\"+f,v)}}},{\"../../lib/to_log_range\":722,\"fast-isnumeric\":214}],619:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../plots/cartesian/axes\"),a=t(\"../../plots/array_container_defaults\"),o=t(\"./attributes\");function s(t,e,r){function a(r,i){return n.coerce(t,e,o,r,i)}var s=a(\"source\");if(!a(\"visible\",!!s))return e;a(\"layer\"),a(\"xanchor\"),a(\"yanchor\"),a(\"sizex\"),a(\"sizey\"),a(\"sizing\"),a(\"opacity\");for(var l={_fullLayout:r},c=[\"x\",\"y\"],u=0;u<2;u++){var f=c[u],h=i.coerceRef(t,e,l,f,\"paper\");i.coercePosition(e,l,a,h,f,0)}return e}e.exports=function(t,e){a(t,e,{name:\"images\",handleItemDefaults:s})}},{\"../../lib\":696,\"../../plots/array_container_defaults\":740,\"../../plots/cartesian/axes\":744,\"./attributes\":617}],620:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../drawing\"),a=t(\"../../plots/cartesian/axes\"),o=t(\"../../constants/xmlns_namespaces\");e.exports=function(t){var e,r,s=t._fullLayout,l=[],c={},u=[];for(r=0;r<s.images.length;r++){var f=s.images[r];if(f.visible)if(\"below\"===f.layer&&\"paper\"!==f.xref&&\"paper\"!==f.yref){e=f.xref+f.yref;var h=s._plots[e];if(!h){u.push(f);continue}h.mainplot&&(e=h.mainplot.id),c[e]||(c[e]=[]),c[e].push(f)}else\"above\"===f.layer?l.push(f):u.push(f)}var p={x:{left:{sizing:\"xMin\",offset:0},center:{sizing:\"xMid\",offset:-.5},right:{sizing:\"xMax\",offset:-1}},y:{top:{sizing:\"YMin\",offset:0},middle:{sizing:\"YMid\",offset:-.5},bottom:{sizing:\"YMax\",offset:-1}}};function d(e){var r=n.select(this);if(!this.img||this.img.src!==e.source){r.attr(\"xmlns\",o.svg);var i=new Promise(function(t){var n=new Image;function i(){r.remove(),t()}this.img=n,n.setAttribute(\"crossOrigin\",\"anonymous\"),n.onerror=i,n.onload=function(){var e=document.createElement(\"canvas\");e.width=this.width,e.height=this.height,e.getContext(\"2d\").drawImage(this,0,0);var n=e.toDataURL(\"image/png\");r.attr(\"xlink:href\",n),t()},r.on(\"error\",i),n.src=e.source}.bind(this));t._promises.push(i)}}function g(e){var r=n.select(this),o=a.getFromId(t,e.xref),l=a.getFromId(t,e.yref),c=s._size,u=o?Math.abs(o.l2p(e.sizex)-o.l2p(0)):e.sizex*c.w,f=l?Math.abs(l.l2p(e.sizey)-l.l2p(0)):e.sizey*c.h,h=u*p.x[e.xanchor].offset,d=f*p.y[e.yanchor].offset,g=p.x[e.xanchor].sizing+p.y[e.yanchor].sizing,v=(o?o.r2p(e.x)+o._offset:e.x*c.w+c.l)+h,m=(l?l.r2p(e.y)+l._offset:c.h-e.y*c.h+c.t)+d;switch(e.sizing){case\"fill\":g+=\" slice\";break;case\"stretch\":g=\"none\"}r.attr({x:v,y:m,width:u,height:f,preserveAspectRatio:g,opacity:e.opacity});var y=(o?o._id:\"\")+(l?l._id:\"\");r.call(i.setClipUrl,y?\"clip\"+s._uid+y:null)}var v=s._imageLowerLayer.selectAll(\"image\").data(u),m=s._imageUpperLayer.selectAll(\"image\").data(l);v.enter().append(\"image\"),m.enter().append(\"image\"),v.exit().remove(),m.exit().remove(),v.each(function(t){d.bind(this)(t),g.bind(this)(t)}),m.each(function(t){d.bind(this)(t),g.bind(this)(t)});var y=Object.keys(s._plots);for(r=0;r<y.length;r++){e=y[r];var x=s._plots[e];if(x.imagelayer){var b=x.imagelayer.selectAll(\"image\").data(c[e]||[]);b.enter().append(\"image\"),b.exit().remove(),b.each(function(t){d.bind(this)(t),g.bind(this)(t)})}}}},{\"../../constants/xmlns_namespaces\":674,\"../../plots/cartesian/axes\":744,\"../drawing\":595,d3:148}],621:[function(t,e,r){\"use strict\";e.exports={moduleType:\"component\",name:\"images\",layoutAttributes:t(\"./attributes\"),supplyLayoutDefaults:t(\"./defaults\"),includeBasePlot:t(\"../../plots/cartesian/include_components\")(\"images\"),draw:t(\"./draw\"),convertCoords:t(\"./convert_coords\")}},{\"../../plots/cartesian/include_components\":755,\"./attributes\":617,\"./convert_coords\":618,\"./defaults\":619,\"./draw\":620}],622:[function(t,e,r){\"use strict\";r.isRightAnchor=function(t){return\"right\"===t.xanchor||\"auto\"===t.xanchor&&t.x>=2/3},r.isCenterAnchor=function(t){return\"center\"===t.xanchor||\"auto\"===t.xanchor&&t.x>1/3&&t.x<2/3},r.isBottomAnchor=function(t){return\"bottom\"===t.yanchor||\"auto\"===t.yanchor&&t.y<=1/3},r.isMiddleAnchor=function(t){return\"middle\"===t.yanchor||\"auto\"===t.yanchor&&t.y>1/3&&t.y<2/3}},{}],623:[function(t,e,r){\"use strict\";var n=t(\"../../plots/font_attributes\"),i=t(\"../color/attributes\");e.exports={bgcolor:{valType:\"color\",editType:\"legend\"},bordercolor:{valType:\"color\",dflt:i.defaultLine,editType:\"legend\"},borderwidth:{valType:\"number\",min:0,dflt:0,editType:\"legend\"},font:n({editType:\"legend\"}),orientation:{valType:\"enumerated\",values:[\"v\",\"h\"],dflt:\"v\",editType:\"legend\"},traceorder:{valType:\"flaglist\",flags:[\"reversed\",\"grouped\"],extras:[\"normal\"],editType:\"legend\"},tracegroupgap:{valType:\"number\",min:0,dflt:10,editType:\"legend\"},x:{valType:\"number\",min:-2,max:3,dflt:1.02,editType:\"legend\"},xanchor:{valType:\"enumerated\",values:[\"auto\",\"left\",\"center\",\"right\"],dflt:\"left\",editType:\"legend\"},y:{valType:\"number\",min:-2,max:3,dflt:1,editType:\"legend\"},yanchor:{valType:\"enumerated\",values:[\"auto\",\"top\",\"middle\",\"bottom\"],dflt:\"auto\",editType:\"legend\"},editType:\"legend\"}},{\"../../plots/font_attributes\":771,\"../color/attributes\":569}],624:[function(t,e,r){\"use strict\";e.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:\"#808BA4\",scrollBarMargin:4,textOffsetX:40}},{}],625:[function(t,e,r){\"use strict\";var n=t(\"../../registry\"),i=t(\"../../lib\"),a=t(\"../../plot_api/plot_template\"),o=t(\"./attributes\"),s=t(\"../../plots/layout_attributes\"),l=t(\"./helpers\");e.exports=function(t,e,r){for(var c,u,f,h,p=t.legend||{},d=0,g=!1,v=\"normal\",m=0;m<r.length;m++){var y=r[m];y.visible&&((y.showlegend||y._dfltShowLegend)&&(d++,y.showlegend&&(g=!0,(n.traceIs(y,\"pie\")||!0===y._input.showlegend)&&d++)),(n.traceIs(y,\"bar\")&&\"stack\"===e.barmode||-1!==[\"tonextx\",\"tonexty\"].indexOf(y.fill))&&(v=l.isGrouped({traceorder:v})?\"grouped+reversed\":\"reversed\"),void 0!==y.legendgroup&&\"\"!==y.legendgroup&&(v=l.isReversed({traceorder:v})?\"reversed+grouped\":\"grouped\"))}if(!1!==i.coerce(t,e,s,\"showlegend\",g&&d>1)){var x=a.newContainer(e,\"legend\");if(_(\"bgcolor\",e.paper_bgcolor),_(\"bordercolor\"),_(\"borderwidth\"),i.coerceFont(_,\"font\",e.font),_(\"orientation\"),\"h\"===x.orientation){var b=t.xaxis;b&&b.rangeslider&&b.rangeslider.visible?(c=0,f=\"left\",u=1.1,h=\"bottom\"):(c=0,f=\"left\",u=-.1,h=\"top\")}_(\"traceorder\",v),l.isGrouped(e.legend)&&_(\"tracegroupgap\"),_(\"x\",c),_(\"xanchor\",f),_(\"y\",u),_(\"yanchor\",h),i.noneOrAll(p,x,[\"x\",\"y\"])}function _(t,e){return i.coerce(p,x,o,t,e)}}},{\"../../lib\":696,\"../../plot_api/plot_template\":734,\"../../plots/layout_attributes\":799,\"../../registry\":827,\"./attributes\":623,\"./helpers\":629}],626:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../../lib\"),a=t(\"../../plots/plots\"),o=t(\"../../registry\"),s=t(\"../../lib/events\"),l=t(\"../dragelement\"),c=t(\"../drawing\"),u=t(\"../color\"),f=t(\"../../lib/svg_text_utils\"),h=t(\"./handle_click\"),p=t(\"./constants\"),d=t(\"../../constants/interactions\"),g=t(\"../../constants/alignment\"),v=g.LINE_SPACING,m=g.FROM_TL,y=g.FROM_BR,x=t(\"./get_legend_data\"),b=t(\"./style\"),_=t(\"./helpers\"),w=t(\"./anchor_utils\"),k=d.DBLCLICKDELAY;function M(t,e,r,n,i){var a=r.data()[0][0].trace,o={event:i,node:r.node(),curveNumber:a.index,expandedIndex:a._expandedIndex,data:t.data,layout:t.layout,frames:t._transitionData._frames,config:t._context,fullData:t._fullData,fullLayout:t._fullLayout};if(a._group&&(o.group=a._group),\"pie\"===a.type&&(o.label=r.datum()[0].label),!1!==s.triggerHandler(t,\"plotly_legendclick\",o))if(1===n)e._clickTimeout=setTimeout(function(){h(r,t,n)},k);else if(2===n){e._clickTimeout&&clearTimeout(e._clickTimeout),t._legendMouseDownTime=0,!1!==s.triggerHandler(t,\"plotly_legenddoubleclick\",o)&&h(r,t,n)}}function A(t,e,r){var n=t.data()[0][0],a=e._fullLayout,s=n.trace,l=o.traceIs(s,\"pie\"),u=s.index,h=l?n.label:s.name,d=e._context.edits.legendText&&!l,g=i.ensureSingle(t,\"text\",\"legendtext\");function m(r){f.convertToTspans(r,e,function(){!function(t,e){var r=t.data()[0][0];if(!r.trace.showlegend)return void t.remove();var n,i,a=t.select(\"g[class*=math-group]\"),o=a.node(),s=e._fullLayout.legend.font.size*v;if(o){var l=c.bBox(o);n=l.height,i=l.width,c.setTranslate(a,0,n/4)}else{var u=t.select(\".legendtext\"),h=f.lineCount(u),d=u.node();n=s*h,i=d?c.bBox(d).width:0;var g=s*(.3+(1-h)/2);f.positionText(u,p.textOffsetX,g)}n=Math.max(n,16)+3,r.height=n,r.width=i}(t,e)})}g.attr(\"text-anchor\",\"start\").classed(\"user-select-none\",!0).call(c.font,a.legend.font).text(d?T(h,r):h),f.positionText(g,p.textOffsetX,0),d?g.call(f.makeEditable,{gd:e,text:h}).call(m).on(\"edit\",function(t){this.text(T(t,r)).call(m);var a=n.trace._fullInput||{},s={};if(o.hasTransform(a,\"groupby\")){var l=o.getTransformIndices(a,\"groupby\"),c=l[l.length-1],f=i.keyedContainer(a,\"transforms[\"+c+\"].styles\",\"target\",\"value.name\");f.set(n.trace._group,t),s=f.constructUpdate()}else s.name=t;return o.call(\"restyle\",e,s,u)}):m(g)}function T(t,e){var r=Math.max(4,e);if(t&&t.trim().length>=r/2)return t;for(var n=r-(t=t||\"\").length;n>0;n--)t+=\" \";return t}function S(t,e){var r,a=1,o=i.ensureSingle(t,\"rect\",\"legendtoggle\",function(t){t.style(\"cursor\",\"pointer\").attr(\"pointer-events\",\"all\").call(u.fill,\"rgba(0,0,0,0)\")});o.on(\"mousedown\",function(){(r=(new Date).getTime())-e._legendMouseDownTime<k?a+=1:(a=1,e._legendMouseDownTime=r)}),o.on(\"mouseup\",function(){if(!e._dragged&&!e._editing){var r=e._fullLayout.legend;(new Date).getTime()-e._legendMouseDownTime>k&&(a=Math.max(a-1,1)),M(e,r,t,a,n.event)}})}function E(t,e,r){var i=t._fullLayout,a=i.legend,o=a.borderwidth,s=_.isGrouped(a),l=0;if(a._width=0,a._height=0,_.isVertical(a))s&&e.each(function(t,e){c.setTranslate(this,0,e*a.tracegroupgap)}),r.each(function(t){var e=t[0],r=e.height,n=e.width;c.setTranslate(this,o,5+o+a._height+r/2),a._height+=r,a._width=Math.max(a._width,n)}),a._width+=45+2*o,a._height+=10+2*o,s&&(a._height+=(a._lgroupsLength-1)*a.tracegroupgap),l=40;else if(s){for(var u=[a._width],f=e.data(),h=0,p=f.length;h<p;h++){var d=f[h].map(function(t){return t[0].width}),g=40+Math.max.apply(null,d);a._width+=a.tracegroupgap+g,u.push(a._width)}e.each(function(t,e){c.setTranslate(this,u[e],0)}),e.each(function(){var t=n.select(this).selectAll(\"g.traces\"),e=0;t.each(function(t){var r=t[0].height;c.setTranslate(this,0,5+o+e+r/2),e+=r}),a._height=Math.max(a._height,e)}),a._height+=10+2*o,a._width+=2*o}else{var v,m=0,y=0,x=0,b=0,w=0,k=a.tracegroupgap||5;r.each(function(t){x=Math.max(40+t[0].width,x),w+=40+t[0].width+k}),v=i._size.w>o+w-k,r.each(function(t){var e=t[0],r=v?40+t[0].width:x;o+b+k+r>i._size.w&&(b=0,m+=y,a._height=a._height+y,y=0),c.setTranslate(this,o+b,5+o+e.height/2+m),a._width+=k+r,a._height=Math.max(a._height,e.height),b+=k+r,y=Math.max(e.height,y)}),a._width+=2*o,a._height+=10+2*o}a._width=Math.ceil(a._width),a._height=Math.ceil(a._height);var M=t._context.edits.legendText||t._context.edits.legendPosition;r.each(function(t){var e=t[0],r=n.select(this).select(\".legendtoggle\");c.setRect(r,0,-e.height/2,(M?0:a._width)+l,e.height)})}function C(t){var e=t._fullLayout.legend,r=\"left\";w.isRightAnchor(e)?r=\"right\":w.isCenterAnchor(e)&&(r=\"center\");var n=\"top\";w.isBottomAnchor(e)?n=\"bottom\":w.isMiddleAnchor(e)&&(n=\"middle\"),a.autoMargin(t,\"legend\",{x:e.x,y:e.y,l:e._width*m[r],r:e._width*y[r],b:e._height*y[n],t:e._height*m[n]})}e.exports=function(t){var e=t._fullLayout,r=\"legend\"+e._uid;if(e._infolayer&&t.calcdata){t._legendMouseDownTime||(t._legendMouseDownTime=0);var s=e.legend,f=e.showlegend&&x(t.calcdata,s),h=e.hiddenlabels||[];if(!e.showlegend||!f.length)return e._infolayer.selectAll(\".legend\").remove(),e._topdefs.select(\"#\"+r).remove(),void a.autoMargin(t,\"legend\");for(var d=0,g=0;g<f.length;g++)for(var v=0;v<f[g].length;v++){var _=f[g][v][0],k=_.trace,T=o.traceIs(k,\"pie\")?_.label:k.name;d=Math.max(d,T&&T.length||0)}var L=!1,z=i.ensureSingle(e._infolayer,\"g\",\"legend\",function(t){t.attr(\"pointer-events\",\"all\"),L=!0}),O=i.ensureSingleById(e._topdefs,\"clipPath\",r,function(t){t.append(\"rect\")}),I=i.ensureSingle(z,\"rect\",\"bg\",function(t){t.attr(\"shape-rendering\",\"crispEdges\")});I.call(u.stroke,s.bordercolor).call(u.fill,s.bgcolor).style(\"stroke-width\",s.borderwidth+\"px\");var P=i.ensureSingle(z,\"g\",\"scrollbox\"),D=i.ensureSingle(z,\"rect\",\"scrollbar\",function(t){t.attr({rx:20,ry:3,width:0,height:0}).call(u.fill,\"#808BA4\")}),R=P.selectAll(\"g.groups\").data(f);R.enter().append(\"g\").attr(\"class\",\"groups\"),R.exit().remove();var B=R.selectAll(\"g.traces\").data(i.identity);B.enter().append(\"g\").attr(\"class\",\"traces\"),B.exit().remove(),B.call(b,t).style(\"opacity\",function(t){var e=t[0].trace;return o.traceIs(e,\"pie\")?-1!==h.indexOf(t[0].label)?.5:1:\"legendonly\"===e.visible?.5:1}).each(function(){n.select(this).call(A,t,d).call(S,t)}),i.syncOrAsync([a.previousPromises,function(){L&&(E(t,R,B),C(t));var u=e.width,f=e.height;E(t,R,B),s._height>f?function(t){var e=t._fullLayout.legend,r=\"left\";w.isRightAnchor(e)?r=\"right\":w.isCenterAnchor(e)&&(r=\"center\");a.autoMargin(t,\"legend\",{x:e.x,y:.5,l:e._width*m[r],r:e._width*y[r],b:0,t:0})}(t):C(t);var h=e._size,d=h.l+h.w*s.x,g=h.t+h.h*(1-s.y);w.isRightAnchor(s)?d-=s._width:w.isCenterAnchor(s)&&(d-=s._width/2),w.isBottomAnchor(s)?g-=s._height:w.isMiddleAnchor(s)&&(g-=s._height/2);var v=s._width,x=h.w;v>x?(d=h.l,v=x):(d+v>u&&(d=u-v),d<0&&(d=0),v=Math.min(u-d,s._width));var b,_,k,A,T=s._height,S=h.h;if(T>S?(g=h.t,T=S):(g+T>f&&(g=f-T),g<0&&(g=0),T=Math.min(f-g,s._height)),c.setTranslate(z,d,g),D.on(\".drag\",null),z.on(\"wheel\",null),s._height<=T||t._context.staticPlot)I.attr({width:v-s.borderwidth,height:T-s.borderwidth,x:s.borderwidth/2,y:s.borderwidth/2}),c.setTranslate(P,0,0),O.select(\"rect\").attr({width:v-2*s.borderwidth,height:T-2*s.borderwidth,x:s.borderwidth,y:s.borderwidth}),c.setClipUrl(P,r),c.setRect(D,0,0,0,0),delete s._scrollY;else{var F,N,j=Math.max(p.scrollBarMinHeight,T*T/s._height),V=T-j-2*p.scrollBarMargin,U=s._height-T,q=V/U,H=Math.min(s._scrollY||0,U);I.attr({width:v-2*s.borderwidth+p.scrollBarWidth+p.scrollBarMargin,height:T-s.borderwidth,x:s.borderwidth/2,y:s.borderwidth/2}),O.select(\"rect\").attr({width:v-2*s.borderwidth+p.scrollBarWidth+p.scrollBarMargin,height:T-2*s.borderwidth,x:s.borderwidth,y:s.borderwidth+H}),c.setClipUrl(P,r),W(H,j,q),z.on(\"wheel\",function(){W(H=i.constrain(s._scrollY+n.event.deltaY/V*U,0,U),j,q),0!==H&&H!==U&&n.event.preventDefault()});var G=n.behavior.drag().on(\"dragstart\",function(){F=n.event.sourceEvent.clientY,N=H}).on(\"drag\",function(){var t=n.event.sourceEvent;2===t.buttons||t.ctrlKey||W(H=i.constrain((t.clientY-F)/q+N,0,U),j,q)});D.call(G)}function W(e,r,n){s._scrollY=t._fullLayout.legend._scrollY=e,c.setTranslate(P,0,-e),c.setRect(D,v,p.scrollBarMargin+e*n,p.scrollBarWidth,r),O.select(\"rect\").attr({y:s.borderwidth+e})}t._context.edits.legendPosition&&(z.classed(\"cursor-move\",!0),l.init({element:z.node(),gd:t,prepFn:function(){var t=c.getTranslate(z);k=t.x,A=t.y},moveFn:function(t,e){var r=k+t,n=A+e;c.setTranslate(z,r,n),b=l.align(r,0,h.l,h.l+h.w,s.xanchor),_=l.align(n,0,h.t+h.h,h.t,s.yanchor)},doneFn:function(){void 0!==b&&void 0!==_&&o.call(\"relayout\",t,{\"legend.x\":b,\"legend.y\":_})},clickFn:function(r,n){var i=e._infolayer.selectAll(\"g.traces\").filter(function(){var t=this.getBoundingClientRect();return n.clientX>=t.left&&n.clientX<=t.right&&n.clientY>=t.top&&n.clientY<=t.bottom});i.size()>0&&M(t,z,i,r,n)}}))}],t)}}},{\"../../constants/alignment\":668,\"../../constants/interactions\":672,\"../../lib\":696,\"../../lib/events\":684,\"../../lib/svg_text_utils\":720,\"../../plots/plots\":808,\"../../registry\":827,\"../color\":570,\"../dragelement\":592,\"../drawing\":595,\"./anchor_utils\":622,\"./constants\":624,\"./get_legend_data\":627,\"./handle_click\":628,\"./helpers\":629,\"./style\":631,d3:148}],627:[function(t,e,r){\"use strict\";var n=t(\"../../registry\"),i=t(\"./helpers\");e.exports=function(t,e){var r,a,o={},s=[],l=!1,c={},u=0;function f(t,r){if(\"\"!==t&&i.isGrouped(e))-1===s.indexOf(t)?(s.push(t),l=!0,o[t]=[[r]]):o[t].push([r]);else{var n=\"~~i\"+u;s.push(n),o[n]=[[r]],u++}}for(r=0;r<t.length;r++){var h=t[r],p=h[0],d=p.trace,g=d.legendgroup;if(d.visible&&d.showlegend)if(n.traceIs(d,\"pie\"))for(c[g]||(c[g]={}),a=0;a<h.length;a++){var v=h[a].label;c[g][v]||(f(g,{label:v,color:h[a].color,i:h[a].i,trace:d,pts:h[a].pts}),c[g][v]=!0)}else f(g,p)}if(!s.length)return[];var m,y,x=s.length;if(l&&i.isGrouped(e))for(y=new Array(x),r=0;r<x;r++)m=o[s[r]],y[r]=i.isReversed(e)?m.reverse():m;else{for(y=[new Array(x)],r=0;r<x;r++)m=o[s[r]][0],y[0][i.isReversed(e)?x-r-1:r]=m;x=1}return e._lgroupsLength=x,y}},{\"../../registry\":827,\"./helpers\":629}],628:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../registry\"),a=!0;e.exports=function(t,e,r){if(!e._dragged&&!e._editing){var o,s,l,c,u,f=e._fullLayout.hiddenlabels?e._fullLayout.hiddenlabels.slice():[],h=t.data()[0][0],p=e._fullData,d=h.trace,g=d.legendgroup,v={},m=[],y=[],x=[];if(1===r&&a&&e.data&&e._context.showTips?(n.notifier(n._(e,\"Double-click on legend to isolate one trace\"),\"long\"),a=!1):a=!1,i.traceIs(d,\"pie\")){var b=h.label,_=f.indexOf(b);1===r?-1===_?f.push(b):f.splice(_,1):2===r&&(f=[],e.calcdata[0].forEach(function(t){b!==t.label&&f.push(t.label)}),e._fullLayout.hiddenlabels&&e._fullLayout.hiddenlabels.length===f.length&&-1===_&&(f=[])),i.call(\"relayout\",e,\"hiddenlabels\",f)}else{var w,k=g&&g.length,M=[];if(k)for(o=0;o<p.length;o++)(w=p[o]).visible&&w.legendgroup===g&&M.push(o);if(1===r){var A;switch(d.visible){case!0:A=\"legendonly\";break;case!1:A=!1;break;case\"legendonly\":A=!0}if(k)for(o=0;o<p.length;o++)!1!==p[o].visible&&p[o].legendgroup===g&&O(p[o],A);else O(d,A)}else if(2===r){var T,S,E=!0;for(o=0;o<p.length;o++)if(!(p[o]===d)&&!(T=k&&p[o].legendgroup===g)&&!0===p[o].visible&&!i.traceIs(p[o],\"notLegendIsolatable\")){E=!1;break}for(o=0;o<p.length;o++)if(!1!==p[o].visible&&!i.traceIs(p[o],\"notLegendIsolatable\"))switch(d.visible){case\"legendonly\":O(p[o],!0);break;case!0:S=!!E||\"legendonly\",T=p[o]===d||k&&p[o].legendgroup===g,O(p[o],!!T||S)}}for(o=0;o<y.length;o++)if(l=y[o]){var C=l.constructUpdate(),L=Object.keys(C);for(s=0;s<L.length;s++)c=L[s],(v[c]=v[c]||[])[x[o]]=C[c]}for(u=Object.keys(v),o=0;o<u.length;o++)for(c=u[o],s=0;s<m.length;s++)v[c].hasOwnProperty(s)||(v[c][s]=void 0);i.call(\"restyle\",e,v,m)}}function z(t,e,r){var n=m.indexOf(t),i=v[e];return i||(i=v[e]=[]),-1===m.indexOf(t)&&(m.push(t),n=m.length-1),i[n]=r,n}function O(t,e){var r=t._fullInput;if(i.hasTransform(r,\"groupby\")){var a=y[r.index];if(!a){var o=i.getTransformIndices(r,\"groupby\"),s=o[o.length-1];a=n.keyedContainer(r,\"transforms[\"+s+\"].styles\",\"target\",\"value.visible\"),y[r.index]=a}var l=a.get(t._group);void 0===l&&(l=!0),!1!==l&&a.set(t._group,e),x[r.index]=z(r.index,\"visible\",!1!==r.visible)}else{var c=!1!==r.visible&&e;z(r.index,\"visible\",c)}}}},{\"../../lib\":696,\"../../registry\":827}],629:[function(t,e,r){\"use strict\";r.isGrouped=function(t){return-1!==(t.traceorder||\"\").indexOf(\"grouped\")},r.isVertical=function(t){return\"h\"!==t.orientation},r.isReversed=function(t){return-1!==(t.traceorder||\"\").indexOf(\"reversed\")}},{}],630:[function(t,e,r){\"use strict\";e.exports={moduleType:\"component\",name:\"legend\",layoutAttributes:t(\"./attributes\"),supplyLayoutDefaults:t(\"./defaults\"),draw:t(\"./draw\"),style:t(\"./style\")}},{\"./attributes\":623,\"./defaults\":625,\"./draw\":626,\"./style\":631}],631:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../../registry\"),a=t(\"../../lib\"),o=t(\"../drawing\"),s=t(\"../color\"),l=t(\"../../traces/scatter/subtypes\"),c=t(\"../../traces/pie/style_one\");e.exports=function(t,e){t.each(function(t){var e=n.select(this),r=a.ensureSingle(e,\"g\",\"layers\");r.style(\"opacity\",t[0].trace.opacity),r.selectAll(\"g.legendfill\").data([t]).enter().append(\"g\").classed(\"legendfill\",!0),r.selectAll(\"g.legendlines\").data([t]).enter().append(\"g\").classed(\"legendlines\",!0);var i=r.selectAll(\"g.legendsymbols\").data([t]);i.enter().append(\"g\").classed(\"legendsymbols\",!0),i.selectAll(\"g.legendpoints\").data([t]).enter().append(\"g\").classed(\"legendpoints\",!0)}).each(function(t){var e=t[0].trace,r=e.marker||{},a=r.line||{},o=n.select(this).select(\"g.legendpoints\").selectAll(\"path.legendbar\").data(i.traceIs(e,\"bar\")?[t]:[]);o.enter().append(\"path\").classed(\"legendbar\",!0).attr(\"d\",\"M6,6H-6V-6H6Z\").attr(\"transform\",\"translate(20,0)\"),o.exit().remove(),o.each(function(t){var e=n.select(this),i=t[0],o=(i.mlw+1||a.width+1)-1;e.style(\"stroke-width\",o+\"px\").call(s.fill,i.mc||r.color),o&&e.call(s.stroke,i.mlc||a.color)})}).each(function(t){var e=t[0].trace,r=n.select(this).select(\"g.legendpoints\").selectAll(\"path.legendbox\").data(i.traceIs(e,\"box-violin\")&&e.visible?[t]:[]);r.enter().append(\"path\").classed(\"legendbox\",!0).attr(\"d\",\"M6,6H-6V-6H6Z\").attr(\"transform\",\"translate(20,0)\"),r.exit().remove(),r.each(function(){var t=e.line.width,r=n.select(this);r.style(\"stroke-width\",t+\"px\").call(s.fill,e.fillcolor),t&&s.stroke(r,e.line.color)})}).each(function(t){var e=t[0].trace,r=n.select(this).select(\"g.legendpoints\").selectAll(\"path.legendpie\").data(i.traceIs(e,\"pie\")&&e.visible?[t]:[]);r.enter().append(\"path\").classed(\"legendpie\",!0).attr(\"d\",\"M6,6H-6V-6H6Z\").attr(\"transform\",\"translate(20,0)\"),r.exit().remove(),r.size()&&r.call(c,t[0],e)}).each(function(t){var r=t[0].trace,i=r.visible&&r.fill&&\"none\"!==r.fill,a=l.hasLines(r),s=r.contours,c=!1,u=!1;if(s){var f=s.coloring;\"lines\"===f?c=!0:a=\"none\"===f||\"heatmap\"===f||s.showlines,\"constraint\"===s.type?i=\"=\"!==s._operation:\"fill\"!==f&&\"heatmap\"!==f||(u=!0)}var h=l.hasMarkers(r)||l.hasText(r),p=i||u,d=a||c,g=h||!p?\"M5,0\":d?\"M5,-2\":\"M5,-3\",v=n.select(this),m=v.select(\".legendfill\").selectAll(\"path\").data(i||u?[t]:[]);m.enter().append(\"path\").classed(\"js-fill\",!0),m.exit().remove(),m.attr(\"d\",g+\"h30v6h-30z\").call(i?o.fillGroupStyle:function(t){if(t.size()){var n=\"legendfill-\"+r.uid;o.gradient(t,e,n,\"horizontalreversed\",r.colorscale,\"fill\")}});var y=v.select(\".legendlines\").selectAll(\"path\").data(a||c?[t]:[]);y.enter().append(\"path\").classed(\"js-line\",!0),y.exit().remove(),y.attr(\"d\",g+(c?\"l30,0.0001\":\"h30\")).call(a?o.lineGroupStyle:function(t){if(t.size()){var n=\"legendline-\"+r.uid;o.lineGroupStyle(t),o.gradient(t,e,n,\"horizontalreversed\",r.colorscale,\"stroke\")}})}).each(function(t){var r,i,s=t[0],c=s.trace,u=l.hasMarkers(c),f=l.hasText(c),h=l.hasLines(c);function p(t,e,r){var n=a.nestedProperty(c,t).get(),i=a.isArrayOrTypedArray(n)&&e?e(n):n;if(r){if(i<r[0])return r[0];if(i>r[1])return r[1]}return i}function d(t){return t[0]}if(u||f||h){var g={},v={};if(u){g.mc=p(\"marker.color\",d),g.mx=p(\"marker.symbol\",d),g.mo=p(\"marker.opacity\",a.mean,[.2,1]),g.mlc=p(\"marker.line.color\",d),g.mlw=p(\"marker.line.width\",a.mean,[0,5]),v.marker={sizeref:1,sizemin:1,sizemode:\"diameter\"};var m=p(\"marker.size\",a.mean,[2,16]);g.ms=m,v.marker.size=m}h&&(v.line={width:p(\"line.width\",d,[0,10])}),f&&(g.tx=\"Aa\",g.tp=p(\"textposition\",d),g.ts=10,g.tc=p(\"textfont.color\",d),g.tf=p(\"textfont.family\",d)),r=[a.minExtend(s,g)],(i=a.minExtend(c,v)).selectedpoints=null}var y=n.select(this).select(\"g.legendpoints\"),x=y.selectAll(\"path.scatterpts\").data(u?r:[]);x.enter().insert(\"path\",\":first-child\").classed(\"scatterpts\",!0).attr(\"transform\",\"translate(20,0)\"),x.exit().remove(),x.call(o.pointStyle,i,e),u&&(r[0].mrc=3);var b=y.selectAll(\"g.pointtext\").data(f?r:[]);b.enter().append(\"g\").classed(\"pointtext\",!0).append(\"text\").attr(\"transform\",\"translate(20,0)\"),b.exit().remove(),b.selectAll(\"text\").call(o.textPointStyle,i,e)}).each(function(t){var e=t[0].trace,r=n.select(this).select(\"g.legendpoints\").selectAll(\"path.legendcandle\").data(\"candlestick\"===e.type&&e.visible?[t,t]:[]);r.enter().append(\"path\").classed(\"legendcandle\",!0).attr(\"d\",function(t,e){return e?\"M-15,0H-8M-8,6V-6H8Z\":\"M15,0H8M8,-6V6H-8Z\"}).attr(\"transform\",\"translate(20,0)\").style(\"stroke-miterlimit\",1),r.exit().remove(),r.each(function(t,r){var i=e[r?\"increasing\":\"decreasing\"],a=i.line.width,o=n.select(this);o.style(\"stroke-width\",a+\"px\").call(s.fill,i.fillcolor),a&&s.stroke(o,i.line.color)})}).each(function(t){var e=t[0].trace,r=n.select(this).select(\"g.legendpoints\").selectAll(\"path.legendohlc\").data(\"ohlc\"===e.type&&e.visible?[t,t]:[]);r.enter().append(\"path\").classed(\"legendohlc\",!0).attr(\"d\",function(t,e){return e?\"M-15,0H0M-8,-6V0\":\"M15,0H0M8,6V0\"}).attr(\"transform\",\"translate(20,0)\").style(\"stroke-miterlimit\",1),r.exit().remove(),r.each(function(t,r){var i=e[r?\"increasing\":\"decreasing\"],a=i.line.width,l=n.select(this);l.style(\"fill\",\"none\").call(o.dashLine,i.line.dash,a),a&&s.stroke(l,i.line.color)})})}},{\"../../lib\":696,\"../../registry\":827,\"../../traces/pie/style_one\":1029,\"../../traces/scatter/subtypes\":1067,\"../color\":570,\"../drawing\":595,d3:148}],632:[function(t,e,r){\"use strict\";var n=t(\"../../registry\"),i=t(\"../../plots/plots\"),a=t(\"../../plots/cartesian/axis_ids\"),o=t(\"../../lib\"),s=t(\"../../../build/ploticon\"),l=o._,c=e.exports={};function u(t,e){var r,i,o=e.currentTarget,s=o.getAttribute(\"data-attr\"),l=o.getAttribute(\"data-val\")||!0,c=t._fullLayout,u={},f=a.list(t,null,!0),h=\"on\";if(\"zoom\"===s){var p,d=\"in\"===l?.5:2,g=(1+d)/2,v=(1-d)/2;for(i=0;i<f.length;i++)if(!(r=f[i]).fixedrange)if(p=r._name,\"auto\"===l)u[p+\".autorange\"]=!0;else if(\"reset\"===l){if(void 0===r._rangeInitial)u[p+\".autorange\"]=!0;else{var m=r._rangeInitial.slice();u[p+\".range[0]\"]=m[0],u[p+\".range[1]\"]=m[1]}void 0!==r._showSpikeInitial&&(u[p+\".showspikes\"]=r._showSpikeInitial,\"on\"!==h||r._showSpikeInitial||(h=\"off\"))}else{var y=[r.r2l(r.range[0]),r.r2l(r.range[1])],x=[g*y[0]+v*y[1],g*y[1]+v*y[0]];u[p+\".range[0]\"]=r.l2r(x[0]),u[p+\".range[1]\"]=r.l2r(x[1])}c._cartesianSpikesEnabled=h}else{if(\"hovermode\"!==s||\"x\"!==l&&\"y\"!==l){if(\"hovermode\"===s&&\"closest\"===l){for(i=0;i<f.length;i++)r=f[i],\"on\"!==h||r.showspikes||(h=\"off\");c._cartesianSpikesEnabled=h}}else l=c._isHoriz?\"y\":\"x\",o.setAttribute(\"data-val\",l);u[s]=l}n.call(\"relayout\",t,u)}function f(t,e){for(var r=e.currentTarget,i=r.getAttribute(\"data-attr\"),a=r.getAttribute(\"data-val\")||!0,o=t._fullLayout._subplots.gl3d,s={},l=i.split(\".\"),c=0;c<o.length;c++)s[o[c]+\".\"+l[1]]=a;var u=\"pan\"===a?a:\"zoom\";s.dragmode=u,n.call(\"relayout\",t,s)}function h(t,e){for(var r=e.currentTarget.getAttribute(\"data-attr\"),i=t._fullLayout,a=i._subplots.gl3d,s={},l=0;l<a.length;l++){var c=a[l],u=c+\".camera\",f=i[c]._scene;\"resetDefault\"===r?s[u]=null:\"resetLastSave\"===r&&(s[u]=o.extendDeep({},f.cameraInitial))}n.call(\"relayout\",t,s)}function p(t,e){var r=e.currentTarget,i=r._previousVal||!1,a=t.layout,s=t._fullLayout,l=s._subplots.gl3d,c=[\"xaxis\",\"yaxis\",\"zaxis\"],u=[\"showspikes\",\"spikesides\",\"spikethickness\",\"spikecolor\"],f={},h={},p={};if(i)p=o.extendDeep(a,i),r._previousVal=null;else{p={\"allaxes.showspikes\":!1};for(var d=0;d<l.length;d++){var g=l[d],v=s[g],m=f[g]={};m.hovermode=v.hovermode,p[g+\".hovermode\"]=!1;for(var y=0;y<3;y++){var x=c[y];h=m[x]={};for(var b=0;b<u.length;b++){var _=u[b];h[_]=v[x][_]}}}r._previousVal=o.extendDeep({},f)}n.call(\"relayout\",t,p)}function d(t,e){for(var r=e.currentTarget,i=r.getAttribute(\"data-attr\"),a=r.getAttribute(\"data-val\")||!0,o=t._fullLayout,s=o._subplots.geo,l=0;l<s.length;l++){var c=s[l],u=o[c];if(\"zoom\"===i){var f=u.projection.scale,h=\"in\"===a?2*f:.5*f;n.call(\"relayout\",t,c+\".projection.scale\",h)}else\"reset\"===i&&v(t,\"geo\")}}function g(t){var e,r=t._fullLayout;e=r._has(\"cartesian\")?r._isHoriz?\"y\":\"x\":\"closest\";var i=!t._fullLayout.hovermode&&e;n.call(\"relayout\",t,\"hovermode\",i)}function v(t,e){for(var r=t._fullLayout,i=r._subplots[e],a={},o=0;o<i.length;o++)for(var s=i[o],l=r[s]._subplot.viewInitial,c=Object.keys(l),u=0;u<c.length;u++){var f=c[u];a[s+\".\"+f]=l[f]}n.call(\"relayout\",t,a)}c.toImage={name:\"toImage\",title:function(t){var e=(t._context.toImageButtonOptions||{}).format||\"png\";return l(t,\"png\"===e?\"Download plot as a png\":\"Download plot\")},icon:s.camera,click:function(t){var e=t._context.toImageButtonOptions,r={format:e.format||\"png\"};o.notifier(l(t,\"Taking snapshot - this may take a few seconds\"),\"long\"),\"svg\"!==r.format&&o.isIE()&&(o.notifier(l(t,\"IE only supports svg. Changing format to svg.\"),\"long\"),r.format=\"svg\"),[\"filename\",\"width\",\"height\",\"scale\"].forEach(function(t){e[t]&&(r[t]=e[t])}),n.call(\"downloadImage\",t,r).then(function(e){o.notifier(l(t,\"Snapshot succeeded\")+\" - \"+e,\"long\")}).catch(function(){o.notifier(l(t,\"Sorry, there was a problem downloading your snapshot!\"),\"long\")})}},c.sendDataToCloud={name:\"sendDataToCloud\",title:function(t){return l(t,\"Edit in Chart Studio\")},icon:s.disk,click:function(t){i.sendDataToCloud(t)}},c.zoom2d={name:\"zoom2d\",title:function(t){return l(t,\"Zoom\")},attr:\"dragmode\",val:\"zoom\",icon:s.zoombox,click:u},c.pan2d={name:\"pan2d\",title:function(t){return l(t,\"Pan\")},attr:\"dragmode\",val:\"pan\",icon:s.pan,click:u},c.select2d={name:\"select2d\",title:function(t){return l(t,\"Box Select\")},attr:\"dragmode\",val:\"select\",icon:s.selectbox,click:u},c.lasso2d={name:\"lasso2d\",title:function(t){return l(t,\"Lasso Select\")},attr:\"dragmode\",val:\"lasso\",icon:s.lasso,click:u},c.zoomIn2d={name:\"zoomIn2d\",title:function(t){return l(t,\"Zoom in\")},attr:\"zoom\",val:\"in\",icon:s.zoom_plus,click:u},c.zoomOut2d={name:\"zoomOut2d\",title:function(t){return l(t,\"Zoom out\")},attr:\"zoom\",val:\"out\",icon:s.zoom_minus,click:u},c.autoScale2d={name:\"autoScale2d\",title:function(t){return l(t,\"Autoscale\")},attr:\"zoom\",val:\"auto\",icon:s.autoscale,click:u},c.resetScale2d={name:\"resetScale2d\",title:function(t){return l(t,\"Reset axes\")},attr:\"zoom\",val:\"reset\",icon:s.home,click:u},c.hoverClosestCartesian={name:\"hoverClosestCartesian\",title:function(t){return l(t,\"Show closest data on hover\")},attr:\"hovermode\",val:\"closest\",icon:s.tooltip_basic,gravity:\"ne\",click:u},c.hoverCompareCartesian={name:\"hoverCompareCartesian\",title:function(t){return l(t,\"Compare data on hover\")},attr:\"hovermode\",val:function(t){return t._fullLayout._isHoriz?\"y\":\"x\"},icon:s.tooltip_compare,gravity:\"ne\",click:u},c.zoom3d={name:\"zoom3d\",title:function(t){return l(t,\"Zoom\")},attr:\"scene.dragmode\",val:\"zoom\",icon:s.zoombox,click:f},c.pan3d={name:\"pan3d\",title:function(t){return l(t,\"Pan\")},attr:\"scene.dragmode\",val:\"pan\",icon:s.pan,click:f},c.orbitRotation={name:\"orbitRotation\",title:function(t){return l(t,\"Orbital rotation\")},attr:\"scene.dragmode\",val:\"orbit\",icon:s[\"3d_rotate\"],click:f},c.tableRotation={name:\"tableRotation\",title:function(t){return l(t,\"Turntable rotation\")},attr:\"scene.dragmode\",val:\"turntable\",icon:s[\"z-axis\"],click:f},c.resetCameraDefault3d={name:\"resetCameraDefault3d\",title:function(t){return l(t,\"Reset camera to default\")},attr:\"resetDefault\",icon:s.home,click:h},c.resetCameraLastSave3d={name:\"resetCameraLastSave3d\",title:function(t){return l(t,\"Reset camera to last save\")},attr:\"resetLastSave\",icon:s.movie,click:h},c.hoverClosest3d={name:\"hoverClosest3d\",title:function(t){return l(t,\"Toggle show closest data on hover\")},attr:\"hovermode\",val:null,toggle:!0,icon:s.tooltip_basic,gravity:\"ne\",click:p},c.zoomInGeo={name:\"zoomInGeo\",title:function(t){return l(t,\"Zoom in\")},attr:\"zoom\",val:\"in\",icon:s.zoom_plus,click:d},c.zoomOutGeo={name:\"zoomOutGeo\",title:function(t){return l(t,\"Zoom out\")},attr:\"zoom\",val:\"out\",icon:s.zoom_minus,click:d},c.resetGeo={name:\"resetGeo\",title:function(t){return l(t,\"Reset\")},attr:\"reset\",val:null,icon:s.autoscale,click:d},c.hoverClosestGeo={name:\"hoverClosestGeo\",title:function(t){return l(t,\"Toggle show closest data on hover\")},attr:\"hovermode\",val:null,toggle:!0,icon:s.tooltip_basic,gravity:\"ne\",click:g},c.hoverClosestGl2d={name:\"hoverClosestGl2d\",title:function(t){return l(t,\"Toggle show closest data on hover\")},attr:\"hovermode\",val:null,toggle:!0,icon:s.tooltip_basic,gravity:\"ne\",click:g},c.hoverClosestPie={name:\"hoverClosestPie\",title:function(t){return l(t,\"Toggle show closest data on hover\")},attr:\"hovermode\",val:\"closest\",icon:s.tooltip_basic,gravity:\"ne\",click:g},c.toggleHover={name:\"toggleHover\",title:function(t){return l(t,\"Toggle show closest data on hover\")},attr:\"hovermode\",val:null,toggle:!0,icon:s.tooltip_basic,gravity:\"ne\",click:function(t,e){g(t),p(t,e)}},c.resetViews={name:\"resetViews\",title:function(t){return l(t,\"Reset views\")},icon:s.home,click:function(t,e){var r=e.currentTarget;r.setAttribute(\"data-attr\",\"zoom\"),r.setAttribute(\"data-val\",\"reset\"),u(t,e),r.setAttribute(\"data-attr\",\"resetLastSave\"),h(t,e),v(t,\"geo\"),v(t,\"mapbox\")}},c.toggleSpikelines={name:\"toggleSpikelines\",title:function(t){return l(t,\"Toggle Spike Lines\")},icon:s.spikeline,attr:\"_cartesianSpikesEnabled\",val:\"on\",click:function(t){var e=t._fullLayout;e._cartesianSpikesEnabled=\"on\"===e._cartesianSpikesEnabled?\"off\":\"on\";var r=function(t){for(var e,r,n=t._fullLayout,i=a.list(t,null,!0),o={},s=0;s<i.length;s++)e=i[s],r=e._name,o[r+\".showspikes\"]=\"on\"===n._cartesianSpikesEnabled||e._showSpikeInitial;return o}(t);n.call(\"relayout\",t,r)}},c.resetViewMapbox={name:\"resetViewMapbox\",title:function(t){return l(t,\"Reset view\")},attr:\"reset\",icon:s.home,click:function(t){v(t,\"mapbox\")}}},{\"../../../build/ploticon\":2,\"../../lib\":696,\"../../plots/cartesian/axis_ids\":747,\"../../plots/plots\":808,\"../../registry\":827}],633:[function(t,e,r){\"use strict\";r.manage=t(\"./manage\")},{\"./manage\":634}],634:[function(t,e,r){\"use strict\";var n=t(\"../../plots/cartesian/axis_ids\"),i=t(\"../../traces/scatter/subtypes\"),a=t(\"../../registry\"),o=t(\"./modebar\"),s=t(\"./buttons\");e.exports=function(t){var e=t._fullLayout,r=t._context,l=e._modeBar;if(r.displayModeBar){if(!Array.isArray(r.modeBarButtonsToRemove))throw new Error([\"*modeBarButtonsToRemove* configuration options\",\"must be an array.\"].join(\" \"));if(!Array.isArray(r.modeBarButtonsToAdd))throw new Error([\"*modeBarButtonsToAdd* configuration options\",\"must be an array.\"].join(\" \"));var c,u=r.modeBarButtons;c=Array.isArray(u)&&u.length?function(t){for(var e=0;e<t.length;e++)for(var r=t[e],n=0;n<r.length;n++){var i=r[n];if(\"string\"==typeof i){if(void 0===s[i])throw new Error([\"*modeBarButtons* configuration options\",\"invalid button name\"].join(\" \"));t[e][n]=s[i]}}return t}(u):function(t,e,r){var o=t._fullLayout,l=t._fullData,c=o._has(\"cartesian\"),u=o._has(\"gl3d\"),f=o._has(\"geo\"),h=o._has(\"pie\"),p=o._has(\"gl2d\"),d=o._has(\"ternary\"),g=o._has(\"mapbox\"),v=o._has(\"polar\"),m=function(t){for(var e=n.list({_fullLayout:t},null,!0),r=0;r<e.length;r++)if(!e[r].fixedrange)return!1;return!0}(o),y=[];function x(t){if(t.length){for(var r=[],n=0;n<t.length;n++){var i=t[n];-1===e.indexOf(i)&&r.push(s[i])}y.push(r)}}x([\"toImage\",\"sendDataToCloud\"]);var b=[],_=[],w=[],k=[];(c||p||h||d)+f+u+g+v>1?(_=[\"toggleHover\"],w=[\"resetViews\"]):f?(b=[\"zoomInGeo\",\"zoomOutGeo\"],_=[\"hoverClosestGeo\"],w=[\"resetGeo\"]):u?(_=[\"hoverClosest3d\"],w=[\"resetCameraDefault3d\",\"resetCameraLastSave3d\"]):g?(_=[\"toggleHover\"],w=[\"resetViewMapbox\"]):_=p?[\"hoverClosestGl2d\"]:h?[\"hoverClosestPie\"]:[\"toggleHover\"];c&&(_=[\"toggleSpikelines\",\"hoverClosestCartesian\",\"hoverCompareCartesian\"]);!c&&!p||m||(b=[\"zoomIn2d\",\"zoomOut2d\",\"autoScale2d\"],\"resetViews\"!==w[0]&&(w=[\"resetScale2d\"]));u?k=[\"zoom3d\",\"pan3d\",\"orbitRotation\",\"tableRotation\"]:(c||p)&&!m||d?k=[\"zoom2d\",\"pan2d\"]:g||f?k=[\"pan2d\"]:v&&(k=[\"zoom2d\"]);(function(t){for(var e=!1,r=0;r<t.length&&!e;r++){var n=t[r];n._module&&n._module.selectPoints&&(a.traceIs(n,\"scatter-like\")?(i.hasMarkers(n)||i.hasText(n))&&(e=!0):a.traceIs(n,\"box-violin\")&&\"all\"!==n.boxpoints&&\"all\"!==n.points||(e=!0))}return e})(l)&&k.push(\"select2d\",\"lasso2d\");return x(k),x(b.concat(w)),x(_),function(t,e){if(e.length)if(Array.isArray(e[0]))for(var r=0;r<e.length;r++)t.push(e[r]);else t.push(e);return t}(y,r)}(t,r.modeBarButtonsToRemove,r.modeBarButtonsToAdd),l?l.update(t,c):e._modeBar=o(t,c)}else l&&(l.destroy(),delete e._modeBar)}},{\"../../plots/cartesian/axis_ids\":747,\"../../registry\":827,\"../../traces/scatter/subtypes\":1067,\"./buttons\":632,\"./modebar\":635}],635:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"fast-isnumeric\"),a=t(\"../../lib\"),o=t(\"../../../build/ploticon\"),s=new DOMParser;function l(t){this.container=t.container,this.element=document.createElement(\"div\"),this.update(t.graphInfo,t.buttons),this.container.appendChild(this.element)}var c=l.prototype;c.update=function(t,e){this.graphInfo=t;var r=this.graphInfo._context,n=this.graphInfo._fullLayout,i=\"modebar-\"+n._uid;this.element.setAttribute(\"id\",i),this._uid=i,\"hover\"===r.displayModeBar?this.element.className=\"modebar modebar--hover\":this.element.className=\"modebar\",\"v\"===n.modebar.orientation&&(this.element.className+=\" vertical\",e=e.reverse()),a.deleteRelatedStyleRule(i),a.addRelatedStyleRule(i,\"#\"+i,\"background-color: \"+n.modebar.bgcolor),a.addRelatedStyleRule(i,\"#\"+i+\" .modebar-btn .icon path\",\"fill: \"+n.modebar.color),a.addRelatedStyleRule(i,\"#\"+i+\" .modebar-btn:hover .icon path\",\"fill: \"+n.modebar.activecolor),a.addRelatedStyleRule(i,\"#\"+i+\" .modebar-btn.active .icon path\",\"fill: \"+n.modebar.activecolor);var o=!this.hasButtons(e),s=this.hasLogo!==r.displaylogo,l=this.locale!==r.locale;this.locale=r.locale,(o||s||l)&&(this.removeAllButtons(),this.updateButtons(e),r.displaylogo&&(\"v\"===n.modebar.orientation?this.element.prepend(this.getLogo()):this.element.appendChild(this.getLogo()),this.hasLogo=!0)),this.updateActiveButton()},c.updateButtons=function(t){var e=this;this.buttons=t,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(t){var r=e.createGroup();t.forEach(function(t){var n=t.name;if(!n)throw new Error(\"must provide button 'name' in button config\");if(-1!==e.buttonsNames.indexOf(n))throw new Error(\"button name '\"+n+\"' is taken\");e.buttonsNames.push(n);var i=e.createButton(t);e.buttonElements.push(i),r.appendChild(i)}),e.element.appendChild(r)})},c.createGroup=function(){var t=document.createElement(\"div\");return t.className=\"modebar-group\",t},c.createButton=function(t){var e=this,r=document.createElement(\"a\");r.setAttribute(\"rel\",\"tooltip\"),r.className=\"modebar-btn\";var i=t.title;void 0===i?i=t.name:\"function\"==typeof i&&(i=i(this.graphInfo)),(i||0===i)&&r.setAttribute(\"data-title\",i),void 0!==t.attr&&r.setAttribute(\"data-attr\",t.attr);var a=t.val;if(void 0!==a&&(\"function\"==typeof a&&(a=a(this.graphInfo)),r.setAttribute(\"data-val\",a)),\"function\"!=typeof t.click)throw new Error(\"must provide button 'click' function in button config\");r.addEventListener(\"click\",function(r){t.click(e.graphInfo,r),e.updateActiveButton(r.currentTarget)}),r.setAttribute(\"data-toggle\",t.toggle||!1),t.toggle&&n.select(r).classed(\"active\",!0);var s=t.icon;return\"function\"==typeof s?r.appendChild(s()):r.appendChild(this.createIcon(s||o.question)),r.setAttribute(\"data-gravity\",t.gravity||\"n\"),r},c.createIcon=function(t){var e,r=i(t.height)?Number(t.height):t.ascent-t.descent,n=\"http://www.w3.org/2000/svg\";if(t.path){(e=document.createElementNS(n,\"svg\")).setAttribute(\"viewBox\",[0,0,t.width,r].join(\" \")),e.setAttribute(\"class\",\"icon\");var a=document.createElementNS(n,\"path\");a.setAttribute(\"d\",t.path),t.transform?a.setAttribute(\"transform\",t.transform):void 0!==t.ascent&&a.setAttribute(\"transform\",\"matrix(1 0 0 -1 0 \"+t.ascent+\")\"),e.appendChild(a)}t.svg&&(e=s.parseFromString(t.svg,\"application/xml\").childNodes[0]);return e.setAttribute(\"height\",\"1em\"),e.setAttribute(\"width\",\"1em\"),e},c.updateActiveButton=function(t){var e=this.graphInfo._fullLayout,r=void 0!==t?t.getAttribute(\"data-attr\"):null;this.buttonElements.forEach(function(t){var i=t.getAttribute(\"data-val\")||!0,o=t.getAttribute(\"data-attr\"),s=\"true\"===t.getAttribute(\"data-toggle\"),l=n.select(t);if(s)o===r&&l.classed(\"active\",!l.classed(\"active\"));else{var c=null===o?o:a.nestedProperty(e,o).get();l.classed(\"active\",c===i)}})},c.hasButtons=function(t){var e=this.buttons;if(!e)return!1;if(t.length!==e.length)return!1;for(var r=0;r<t.length;++r){if(t[r].length!==e[r].length)return!1;for(var n=0;n<t[r].length;n++)if(t[r][n].name!==e[r][n].name)return!1}return!0},c.getLogo=function(){var t=this.createGroup(),e=document.createElement(\"a\");return e.href=\"https://plot.ly/\",e.target=\"_blank\",e.setAttribute(\"data-title\",a._(this.graphInfo,\"Produced with Plotly\")),e.className=\"modebar-btn plotlyjsicon modebar-btn--logo\",e.appendChild(this.createIcon(o.newplotlylogo)),t.appendChild(e),t},c.removeAllButtons=function(){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.hasLogo=!1},c.destroy=function(){a.removeElement(this.container.querySelector(\".modebar\")),a.deleteRelatedStyleRule(this._uid)},e.exports=function(t,e){var r=t._fullLayout,i=new l({graphInfo:t,container:r._paperdiv.node(),buttons:e});return r._privateplot&&n.select(i.element).append(\"span\").classed(\"badge-private float--left\",!0).text(\"PRIVATE\"),i}},{\"../../../build/ploticon\":2,\"../../lib\":696,d3:148,\"fast-isnumeric\":214}],636:[function(t,e,r){\"use strict\";var n=t(\"../../plots/font_attributes\"),i=t(\"../color/attributes\"),a=(0,t(\"../../plot_api/plot_template\").templatedArray)(\"button\",{visible:{valType:\"boolean\",dflt:!0,editType:\"plot\"},step:{valType:\"enumerated\",values:[\"month\",\"year\",\"day\",\"hour\",\"minute\",\"second\",\"all\"],dflt:\"month\",editType:\"plot\"},stepmode:{valType:\"enumerated\",values:[\"backward\",\"todate\"],dflt:\"backward\",editType:\"plot\"},count:{valType:\"number\",min:0,dflt:1,editType:\"plot\"},label:{valType:\"string\",editType:\"plot\"},editType:\"plot\"});e.exports={visible:{valType:\"boolean\",editType:\"plot\"},buttons:a,x:{valType:\"number\",min:-2,max:3,editType:\"plot\"},xanchor:{valType:\"enumerated\",values:[\"auto\",\"left\",\"center\",\"right\"],dflt:\"left\",editType:\"plot\"},y:{valType:\"number\",min:-2,max:3,editType:\"plot\"},yanchor:{valType:\"enumerated\",values:[\"auto\",\"top\",\"middle\",\"bottom\"],dflt:\"bottom\",editType:\"plot\"},font:n({editType:\"plot\"}),bgcolor:{valType:\"color\",dflt:i.lightLine,editType:\"plot\"},activecolor:{valType:\"color\",editType:\"plot\"},bordercolor:{valType:\"color\",dflt:i.defaultLine,editType:\"plot\"},borderwidth:{valType:\"number\",min:0,dflt:0,editType:\"plot\"},editType:\"plot\"}},{\"../../plot_api/plot_template\":734,\"../../plots/font_attributes\":771,\"../color/attributes\":569}],637:[function(t,e,r){\"use strict\";e.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}},{}],638:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../color\"),a=t(\"../../plot_api/plot_template\"),o=t(\"../../plots/array_container_defaults\"),s=t(\"./attributes\"),l=t(\"./constants\");function c(t,e,r,i){var a=i.calendar;function o(r,i){return n.coerce(t,e,s.buttons,r,i)}if(o(\"visible\")){var l=o(\"step\");\"all\"!==l&&(!a||\"gregorian\"===a||\"month\"!==l&&\"year\"!==l?o(\"stepmode\"):e.stepmode=\"backward\",o(\"count\")),o(\"label\")}}e.exports=function(t,e,r,u,f){var h=t.rangeselector||{},p=a.newContainer(e,\"rangeselector\");function d(t,e){return n.coerce(h,p,s,t,e)}if(d(\"visible\",o(h,p,{name:\"buttons\",handleItemDefaults:c,calendar:f}).length>0)){var g=function(t,e,r){for(var n=r.filter(function(r){return e[r].anchor===t._id}),i=0,a=0;a<n.length;a++){var o=e[n[a]].domain;o&&(i=Math.max(o[1],i))}return[t.domain[0],i+l.yPad]}(e,r,u);d(\"x\",g[0]),d(\"y\",g[1]),n.noneOrAll(t,e,[\"x\",\"y\"]),d(\"xanchor\"),d(\"yanchor\"),n.coerceFont(d,\"font\",r.font);var v=d(\"bgcolor\");d(\"activecolor\",i.contrast(v,l.lightAmount,l.darkAmount)),d(\"bordercolor\"),d(\"borderwidth\")}}},{\"../../lib\":696,\"../../plot_api/plot_template\":734,\"../../plots/array_container_defaults\":740,\"../color\":570,\"./attributes\":636,\"./constants\":637}],639:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../../registry\"),a=t(\"../../plots/plots\"),o=t(\"../color\"),s=t(\"../drawing\"),l=t(\"../../lib\"),c=t(\"../../lib/svg_text_utils\"),u=t(\"../../plots/cartesian/axis_ids\"),f=t(\"../legend/anchor_utils\"),h=t(\"../../constants/alignment\"),p=h.LINE_SPACING,d=h.FROM_TL,g=h.FROM_BR,v=t(\"./constants\"),m=t(\"./get_update_object\");function y(t){return t._id}function x(t,e,r){var n=l.ensureSingle(t,\"rect\",\"selector-rect\",function(t){t.attr(\"shape-rendering\",\"crispEdges\")});n.attr({rx:v.rx,ry:v.ry}),n.call(o.stroke,e.bordercolor).call(o.fill,function(t,e){return e._isActive||e._isHovered?t.activecolor:t.bgcolor}(e,r)).style(\"stroke-width\",e.borderwidth+\"px\")}function b(t,e,r,n){var i;l.ensureSingle(t,\"text\",\"selector-text\",function(t){t.classed(\"user-select-none\",!0).attr(\"text-anchor\",\"middle\")}).call(s.font,e.font).text((i=r,i.label?i.label:\"all\"===i.step?\"all\":i.count+i.step.charAt(0))).call(function(t){c.convertToTspans(t,n)})}e.exports=function(t){var e=t._fullLayout._infolayer.selectAll(\".rangeselector\").data(function(t){for(var e=u.list(t,\"x\",!0),r=[],n=0;n<e.length;n++){var i=e[n];i.rangeselector&&i.rangeselector.visible&&r.push(i)}return r}(t),y);e.enter().append(\"g\").classed(\"rangeselector\",!0),e.exit().remove(),e.style({cursor:\"pointer\",\"pointer-events\":\"all\"}),e.each(function(e){var r=n.select(this),o=e,u=o.rangeselector,h=r.selectAll(\"g.button\").data(l.filterVisible(u.buttons));h.enter().append(\"g\").classed(\"button\",!0),h.exit().remove(),h.each(function(e){var r=n.select(this),a=m(o,e);e._isActive=function(t,e,r){if(\"all\"===e.step)return!0===t.autorange;var n=Object.keys(r);return t.range[0]===r[n[0]]&&t.range[1]===r[n[1]]}(o,e,a),r.call(x,u,e),r.call(b,u,e,t),r.on(\"click\",function(){t._dragged||i.call(\"relayout\",t,a)}),r.on(\"mouseover\",function(){e._isHovered=!0,r.call(x,u,e)}),r.on(\"mouseout\",function(){e._isHovered=!1,r.call(x,u,e)})}),function(t,e,r,i,o){var l=0,u=0,h=r.borderwidth;e.each(function(){var t=n.select(this),e=t.select(\".selector-text\"),i=r.font.size*p,a=Math.max(i*c.lineCount(e),16)+3;u=Math.max(u,a)}),e.each(function(){var t=n.select(this),e=t.select(\".selector-rect\"),i=t.select(\".selector-text\"),a=i.node()&&s.bBox(i.node()).width,o=r.font.size*p,f=c.lineCount(i),d=Math.max(a+10,v.minButtonWidth);t.attr(\"transform\",\"translate(\"+(h+l)+\",\"+h+\")\"),e.attr({x:0,y:0,width:d,height:u}),c.positionText(i,d/2,u/2-(f-1)*o/2+3),l+=d+5});var m=t._fullLayout._size,y=m.l+m.w*r.x,x=m.t+m.h*(1-r.y),b=\"left\";f.isRightAnchor(r)&&(y-=l,b=\"right\");f.isCenterAnchor(r)&&(y-=l/2,b=\"center\");var _=\"top\";f.isBottomAnchor(r)&&(x-=u,_=\"bottom\");f.isMiddleAnchor(r)&&(x-=u/2,_=\"middle\");l=Math.ceil(l),u=Math.ceil(u),y=Math.round(y),x=Math.round(x),a.autoMargin(t,i+\"-range-selector\",{x:r.x,y:r.y,l:l*d[b],r:l*g[b],b:u*g[_],t:u*d[_]}),o.attr(\"transform\",\"translate(\"+y+\",\"+x+\")\")}(t,h,u,o._name,r)})}},{\"../../constants/alignment\":668,\"../../lib\":696,\"../../lib/svg_text_utils\":720,\"../../plots/cartesian/axis_ids\":747,\"../../plots/plots\":808,\"../../registry\":827,\"../color\":570,\"../drawing\":595,\"../legend/anchor_utils\":622,\"./constants\":637,\"./get_update_object\":640,d3:148}],640:[function(t,e,r){\"use strict\";var n=t(\"d3\");e.exports=function(t,e){var r=t._name,i={};if(\"all\"===e.step)i[r+\".autorange\"]=!0;else{var a=function(t,e){var r,i=t.range,a=new Date(t.r2l(i[1])),o=e.step,s=e.count;switch(e.stepmode){case\"backward\":r=t.l2r(+n.time[o].utc.offset(a,-s));break;case\"todate\":var l=n.time[o].utc.offset(a,-s);r=t.l2r(+n.time[o].utc.ceil(l))}var c=i[1];return[r,c]}(t,e);i[r+\".range[0]\"]=a[0],i[r+\".range[1]\"]=a[1]}return i}},{d3:148}],641:[function(t,e,r){\"use strict\";e.exports={moduleType:\"component\",name:\"rangeselector\",schema:{subplots:{xaxis:{rangeselector:t(\"./attributes\")}}},layoutAttributes:t(\"./attributes\"),handleDefaults:t(\"./defaults\"),draw:t(\"./draw\")}},{\"./attributes\":636,\"./defaults\":638,\"./draw\":639}],642:[function(t,e,r){\"use strict\";var n=t(\"../color/attributes\");e.exports={bgcolor:{valType:\"color\",dflt:n.background,editType:\"plot\"},bordercolor:{valType:\"color\",dflt:n.defaultLine,editType:\"plot\"},borderwidth:{valType:\"integer\",dflt:0,min:0,editType:\"plot\"},autorange:{valType:\"boolean\",dflt:!0,editType:\"calc\",impliedEdits:{\"range[0]\":void 0,\"range[1]\":void 0}},range:{valType:\"info_array\",items:[{valType:\"any\",editType:\"calc\",impliedEdits:{\"^autorange\":!1}},{valType:\"any\",editType:\"calc\",impliedEdits:{\"^autorange\":!1}}],editType:\"calc\",impliedEdits:{autorange:!1}},thickness:{valType:\"number\",dflt:.15,min:0,max:1,editType:\"plot\"},visible:{valType:\"boolean\",dflt:!0,editType:\"calc\"},editType:\"calc\"}},{\"../color/attributes\":569}],643:[function(t,e,r){\"use strict\";var n=t(\"../../plots/cartesian/axis_ids\").list,i=t(\"../../plots/cartesian/autorange\").getAutoRange,a=t(\"./constants\");e.exports=function(t){for(var e=n(t,\"x\",!0),r=0;r<e.length;r++){var o=e[r],s=o[a.name];s&&s.visible&&s.autorange&&(s._input.autorange=!0,s._input.range=s.range=i(t,o))}}},{\"../../plots/cartesian/autorange\":743,\"../../plots/cartesian/axis_ids\":747,\"./constants\":644}],644:[function(t,e,r){\"use strict\";e.exports={name:\"rangeslider\",containerClassName:\"rangeslider-container\",bgClassName:\"rangeslider-bg\",rangePlotClassName:\"rangeslider-rangeplot\",maskMinClassName:\"rangeslider-mask-min\",maskMaxClassName:\"rangeslider-mask-max\",slideBoxClassName:\"rangeslider-slidebox\",grabberMinClassName:\"rangeslider-grabber-min\",grabAreaMinClassName:\"rangeslider-grabarea-min\",handleMinClassName:\"rangeslider-handle-min\",grabberMaxClassName:\"rangeslider-grabber-max\",grabAreaMaxClassName:\"rangeslider-grabarea-max\",handleMaxClassName:\"rangeslider-handle-max\",maskMinOppAxisClassName:\"rangeslider-mask-min-opp-axis\",maskMaxOppAxisClassName:\"rangeslider-mask-max-opp-axis\",maskColor:\"rgba(0,0,0,0.4)\",maskOppAxisColor:\"rgba(0,0,0,0.2)\",slideBoxFill:\"transparent\",slideBoxCursor:\"ew-resize\",grabAreaFill:\"transparent\",grabAreaCursor:\"col-resize\",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}},{}],645:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../plot_api/plot_template\"),a=t(\"../../plots/cartesian/axis_ids\"),o=t(\"./attributes\"),s=t(\"./oppaxis_attributes\");e.exports=function(t,e,r){var l=t[r],c=e[r];if(l.rangeslider||e._requestRangeslider[c._id]){n.isPlainObject(l.rangeslider)||(l.rangeslider={});var u,f,h=l.rangeslider,p=i.newContainer(c,\"rangeslider\");if(_(\"visible\")){_(\"bgcolor\",e.plot_bgcolor),_(\"bordercolor\"),_(\"borderwidth\"),_(\"thickness\"),_(\"autorange\",!c.isValidRange(h.range)),_(\"range\");var d=e._subplots;if(d)for(var g=d.cartesian.filter(function(t){return t.substr(0,t.indexOf(\"y\"))===a.name2id(r)}).map(function(t){return t.substr(t.indexOf(\"y\"),t.length)}),v=n.simpleMap(g,a.id2name),m=0;m<v.length;m++){var y=v[m];u=h[y]||{},f=i.newContainer(p,y,\"yaxis\");var x,b=e[y];u.range&&b.isValidRange(u.range)&&(x=\"fixed\"),\"match\"!==w(\"rangemode\",x)&&w(\"range\",b.range.slice())}p._input=h}}function _(t,e){return n.coerce(h,p,o,t,e)}function w(t,e){return n.coerce(u,f,s,t,e)}}},{\"../../lib\":696,\"../../plot_api/plot_template\":734,\"../../plots/cartesian/axis_ids\":747,\"./attributes\":642,\"./oppaxis_attributes\":648}],646:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../../registry\"),a=t(\"../../plots/plots\"),o=t(\"../../lib\"),s=t(\"../drawing\"),l=t(\"../color\"),c=t(\"../titles\"),u=t(\"../../plots/cartesian\"),f=t(\"../../plots/cartesian/axes\"),h=t(\"../dragelement\"),p=t(\"../../lib/setcursor\"),d=t(\"./constants\");function g(t,e,r,n){var i=o.ensureSingle(t,\"rect\",d.bgClassName,function(t){t.attr({x:0,y:0,\"shape-rendering\":\"crispEdges\"})}),a=n.borderwidth%2==0?n.borderwidth:n.borderwidth-1,l=-n._offsetShift,c=s.crispRound(e,n.borderwidth);i.attr({width:n._width+a,height:n._height+a,transform:\"translate(\"+l+\",\"+l+\")\",fill:n.bgcolor,stroke:n.bordercolor,\"stroke-width\":c})}function v(t,e,r,n){var i=e._fullLayout;o.ensureSingleById(i._topdefs,\"clipPath\",n._clipId,function(t){t.append(\"rect\").attr({x:0,y:0})}).select(\"rect\").attr({width:n._width,height:n._height})}function m(t,e,r,i){var l,c=f.getSubplots(e,r),h=e.calcdata,p=t.selectAll(\"g.\"+d.rangePlotClassName).data(c,o.identity);p.enter().append(\"g\").attr(\"class\",function(t){return d.rangePlotClassName+\" \"+t}).call(s.setClipUrl,i._clipId),p.order(),p.exit().remove(),p.each(function(t,o){var s=n.select(this),c=0===o,p=f.getFromId(e,t,\"y\"),d=p._name,g=i[d],v={data:[],layout:{xaxis:{type:r.type,domain:[0,1],range:i.range.slice(),calendar:r.calendar},width:i._width,height:i._height,margin:{t:0,b:0,l:0,r:0}},_context:e._context};v.layout[d]={type:p.type,domain:[0,1],range:\"match\"!==g.rangemode?g.range.slice():p.range.slice(),calendar:p.calendar},a.supplyDefaults(v);var m={id:t,plotgroup:s,xaxis:v._fullLayout.xaxis,yaxis:v._fullLayout[d],isRangePlot:!0};c?l=m:(m.mainplot=\"xy\",m.mainplotinfo=l),u.rangePlot(e,m,function(t,e){for(var r=[],n=0;n<t.length;n++){var i=t[n],a=i[0].trace;a.xaxis+a.yaxis===e&&r.push(i)}return r}(h,t))})}function y(t,e,r,n,i){(o.ensureSingle(t,\"rect\",d.maskMinClassName,function(t){t.attr({x:0,y:0,\"shape-rendering\":\"crispEdges\"})}).attr(\"height\",n._height).call(l.fill,d.maskColor),o.ensureSingle(t,\"rect\",d.maskMaxClassName,function(t){t.attr({y:0,\"shape-rendering\":\"crispEdges\"})}).attr(\"height\",n._height).call(l.fill,d.maskColor),\"match\"!==i.rangemode)&&(o.ensureSingle(t,\"rect\",d.maskMinOppAxisClassName,function(t){t.attr({y:0,\"shape-rendering\":\"crispEdges\"})}).attr(\"width\",n._width).call(l.fill,d.maskOppAxisColor),o.ensureSingle(t,\"rect\",d.maskMaxOppAxisClassName,function(t){t.attr({y:0,\"shape-rendering\":\"crispEdges\"})}).attr(\"width\",n._width).style(\"border-top\",d.maskOppBorder).call(l.fill,d.maskOppAxisColor))}function x(t,e,r,n){e._context.staticPlot||o.ensureSingle(t,\"rect\",d.slideBoxClassName,function(t){t.attr({y:0,cursor:d.slideBoxCursor,\"shape-rendering\":\"crispEdges\"})}).attr({height:n._height,fill:d.slideBoxFill})}function b(t,e,r,n){var i=o.ensureSingle(t,\"g\",d.grabberMinClassName),a=o.ensureSingle(t,\"g\",d.grabberMaxClassName),s={x:0,width:d.handleWidth,rx:d.handleRadius,fill:l.background,stroke:l.defaultLine,\"stroke-width\":d.handleStrokeWidth,\"shape-rendering\":\"crispEdges\"},c={y:Math.round(n._height/4),height:Math.round(n._height/2)};if(o.ensureSingle(i,\"rect\",d.handleMinClassName,function(t){t.attr(s)}).attr(c),o.ensureSingle(a,\"rect\",d.handleMaxClassName,function(t){t.attr(s)}).attr(c),!e._context.staticPlot){var u={width:d.grabAreaWidth,x:0,y:0,fill:d.grabAreaFill,cursor:d.grabAreaCursor};o.ensureSingle(i,\"rect\",d.grabAreaMinClassName,function(t){t.attr(u)}).attr(\"height\",n._height),o.ensureSingle(a,\"rect\",d.grabAreaMaxClassName,function(t){t.attr(u)}).attr(\"height\",n._height)}}e.exports=function(t){var e=t._fullLayout,r=function(t){var e=f.list({_fullLayout:t},\"x\",!0),r=d.name,n=[];if(t._has(\"gl2d\"))return n;for(var i=0;i<e.length;i++){var a=e[i];a[r]&&a[r].visible&&n.push(a)}return n}(e);var s=e._infolayer.selectAll(\"g.\"+d.containerClassName).data(r,function(t){return t._name});s.enter().append(\"g\").classed(d.containerClassName,!0).attr(\"pointer-events\",\"all\"),s.exit().each(function(t){var r=t[d.name];e._topdefs.select(\"#\"+r._clipId).remove()}).remove(),0!==r.length&&s.each(function(r){var s=n.select(this),l=r[d.name],u=e[f.id2name(r.anchor)],_=l[f.id2name(r.anchor)];if(l.range){var w=l.range,k=r.range;w[0]=r.l2r(Math.min(r.r2l(w[0]),r.r2l(k[0]))),w[1]=r.l2r(Math.max(r.r2l(w[1]),r.r2l(k[1]))),l._input.range=w.slice()}r.cleanRange(\"rangeslider.range\");for(var M=e.margin,A=e._size,T=r.domain,S=(r._boundingBox||{}).height||0,E=1/0,C=f.getSubplots(t,r),L=0;L<C.length;L++){var z=f.getFromId(t,C[L].substr(C[L].indexOf(\"y\")));E=Math.min(E,z.domain[0])}l._id=d.name+r._id,l._clipId=l._id+\"-\"+e._uid,l._width=A.w*(T[1]-T[0]),l._height=(e.height-M.b-M.t)*l.thickness,l._offsetShift=Math.floor(l.borderwidth/2);var O=Math.round(M.l+A.w*T[0]),I=Math.round(A.t+A.h*(1-E)+S+l._offsetShift+d.extraPad);s.attr(\"transform\",\"translate(\"+O+\",\"+I+\")\");var P=r.r2l(l.range[0]),D=r.r2l(l.range[1]),R=D-P;if(l.p2d=function(t){return t/l._width*R+P},l.d2p=function(t){return(t-P)/R*l._width},l._rl=[P,D],\"match\"!==_.rangemode){var B=u.r2l(_.range[0]),F=u.r2l(_.range[1])-B;l.d2pOppAxis=function(t){return(t-B)/F*l._height}}s.call(g,t,r,l).call(v,t,r,l).call(m,t,r,l).call(y,t,r,l,_).call(x,t,r,l).call(b,t,r,l),function(t,e,r,a){var s=t.select(\"rect.\"+d.slideBoxClassName).node(),l=t.select(\"rect.\"+d.grabAreaMinClassName).node(),c=t.select(\"rect.\"+d.grabAreaMaxClassName).node();t.on(\"mousedown\",function(){var u=n.event,f=u.target,d=u.clientX,g=d-t.node().getBoundingClientRect().left,v=a.d2p(r._rl[0]),m=a.d2p(r._rl[1]),y=h.coverSlip();function x(t){var u,h,x,b=+t.clientX-d;switch(f){case s:x=\"ew-resize\",u=v+b,h=m+b;break;case l:x=\"col-resize\",u=v+b,h=m;break;case c:x=\"col-resize\",u=v,h=m+b;break;default:x=\"ew-resize\",u=g,h=g+b}if(h<u){var _=h;h=u,u=_}a._pixelMin=u,a._pixelMax=h,p(n.select(y),x),function(t,e,r,n){function a(t){return r.l2r(o.constrain(t,n._rl[0],n._rl[1]))}var s=a(n.p2d(n._pixelMin)),l=a(n.p2d(n._pixelMax));window.requestAnimationFrame(function(){i.call(\"relayout\",e,r._name+\".range\",[s,l])})}(0,e,r,a)}y.addEventListener(\"mousemove\",x),y.addEventListener(\"mouseup\",function t(){y.removeEventListener(\"mousemove\",x);y.removeEventListener(\"mouseup\",t);o.removeElement(y)})})}(s,t,r,l),function(t,e,r,n,i,a){var s=d.handleWidth/2;function l(t){return o.constrain(t,0,n._width)}function c(t){return o.constrain(t,0,n._height)}function u(t){return o.constrain(t,-s,n._width+s)}var f=l(n.d2p(r._rl[0])),h=l(n.d2p(r._rl[1]));if(t.select(\"rect.\"+d.slideBoxClassName).attr(\"x\",f).attr(\"width\",h-f),t.select(\"rect.\"+d.maskMinClassName).attr(\"width\",f),t.select(\"rect.\"+d.maskMaxClassName).attr(\"x\",h).attr(\"width\",n._width-h),\"match\"!==a.rangemode){var p=n._height-c(n.d2pOppAxis(i._rl[1])),g=n._height-c(n.d2pOppAxis(i._rl[0]));t.select(\"rect.\"+d.maskMinOppAxisClassName).attr(\"x\",f).attr(\"height\",p).attr(\"width\",h-f),t.select(\"rect.\"+d.maskMaxOppAxisClassName).attr(\"x\",f).attr(\"y\",g).attr(\"height\",n._height-g).attr(\"width\",h-f),t.select(\"rect.\"+d.slideBoxClassName).attr(\"y\",p).attr(\"height\",g-p)}var v=Math.round(u(f-s))-.5,m=Math.round(u(h-s))+.5;t.select(\"g.\"+d.grabberMinClassName).attr(\"transform\",\"translate(\"+v+\",0.5)\"),t.select(\"g.\"+d.grabberMaxClassName).attr(\"transform\",\"translate(\"+m+\",0.5)\")}(s,0,r,l,u,_),\"bottom\"===r.side&&c.draw(t,r._id+\"title\",{propContainer:r,propName:r._name+\".title\",placeholder:e._dfltTitle.x,attributes:{x:r._offset+r._length/2,y:I+l._height+l._offsetShift+10+1.5*r.titlefont.size,\"text-anchor\":\"middle\"}}),a.autoMargin(t,l._id,{x:T[0],y:E,l:0,r:0,t:0,b:l._height+M.b+S,pad:d.extraPad+2*l._offsetShift})})}},{\"../../lib\":696,\"../../lib/setcursor\":716,\"../../plots/cartesian\":756,\"../../plots/cartesian/axes\":744,\"../../plots/plots\":808,\"../../registry\":827,\"../color\":570,\"../dragelement\":592,\"../drawing\":595,\"../titles\":661,\"./constants\":644,d3:148}],647:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"./attributes\"),a=t(\"./oppaxis_attributes\");e.exports={moduleType:\"component\",name:\"rangeslider\",schema:{subplots:{xaxis:{rangeslider:n.extendFlat({},i,{yaxis:a})}}},layoutAttributes:t(\"./attributes\"),handleDefaults:t(\"./defaults\"),calcAutorange:t(\"./calc_autorange\"),draw:t(\"./draw\")}},{\"../../lib\":696,\"./attributes\":642,\"./calc_autorange\":643,\"./defaults\":645,\"./draw\":646,\"./oppaxis_attributes\":648}],648:[function(t,e,r){\"use strict\";e.exports={_isSubplotObj:!0,rangemode:{valType:\"enumerated\",values:[\"auto\",\"fixed\",\"match\"],dflt:\"match\",editType:\"calc\"},range:{valType:\"info_array\",items:[{valType:\"any\",editType:\"plot\"},{valType:\"any\",editType:\"plot\"}],editType:\"plot\"},editType:\"calc\"}},{}],649:[function(t,e,r){\"use strict\";var n=t(\"../annotations/attributes\"),i=t(\"../../traces/scatter/attributes\").line,a=t(\"../drawing/attributes\").dash,o=t(\"../../lib/extend\").extendFlat,s=t(\"../../plot_api/plot_template\").templatedArray;e.exports=s(\"shape\",{visible:{valType:\"boolean\",dflt:!0,editType:\"calc+arraydraw\"},type:{valType:\"enumerated\",values:[\"circle\",\"rect\",\"path\",\"line\"],editType:\"calc+arraydraw\"},layer:{valType:\"enumerated\",values:[\"below\",\"above\"],dflt:\"above\",editType:\"arraydraw\"},xref:o({},n.xref,{}),xsizemode:{valType:\"enumerated\",values:[\"scaled\",\"pixel\"],dflt:\"scaled\",editType:\"calc+arraydraw\"},xanchor:{valType:\"any\",editType:\"calc+arraydraw\"},x0:{valType:\"any\",editType:\"calc+arraydraw\"},x1:{valType:\"any\",editType:\"calc+arraydraw\"},yref:o({},n.yref,{}),ysizemode:{valType:\"enumerated\",values:[\"scaled\",\"pixel\"],dflt:\"scaled\",editType:\"calc+arraydraw\"},yanchor:{valType:\"any\",editType:\"calc+arraydraw\"},y0:{valType:\"any\",editType:\"calc+arraydraw\"},y1:{valType:\"any\",editType:\"calc+arraydraw\"},path:{valType:\"string\",editType:\"calc+arraydraw\"},opacity:{valType:\"number\",min:0,max:1,dflt:1,editType:\"arraydraw\"},line:{color:o({},i.color,{editType:\"arraydraw\"}),width:o({},i.width,{editType:\"calc+arraydraw\"}),dash:o({},a,{editType:\"arraydraw\"}),editType:\"calc+arraydraw\"},fillcolor:{valType:\"color\",dflt:\"rgba(0,0,0,0)\",editType:\"arraydraw\"},editType:\"arraydraw\"})},{\"../../lib/extend\":685,\"../../plot_api/plot_template\":734,\"../../traces/scatter/attributes\":1043,\"../annotations/attributes\":553,\"../drawing/attributes\":594}],650:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../plots/cartesian/axes\"),a=t(\"./constants\"),o=t(\"./helpers\");function s(t){return c(t.line.width,t.xsizemode,t.x0,t.x1,t.path,!1)}function l(t){return c(t.line.width,t.ysizemode,t.y0,t.y1,t.path,!0)}function c(t,e,r,i,s,l){var c=t/2,u=l;if(\"pixel\"===e){var f=s?o.extractPathCoords(s,l?a.paramIsY:a.paramIsX):[r,i],h=n.aggNums(Math.max,null,f),p=n.aggNums(Math.min,null,f),d=p<0?Math.abs(p)+c:c,g=h>0?h+c:c;return{ppad:c,ppadplus:u?d:g,ppadminus:u?g:d}}return{ppad:c}}function u(t,e,r,n,i){var s=\"category\"===t.type?t.r2c:t.d2c;if(void 0!==e)return[s(e),s(r)];if(n){var l,c,u,f,h=1/0,p=-1/0,d=n.match(a.segmentRE);for(\"date\"===t.type&&(s=o.decodeDate(s)),l=0;l<d.length;l++)void 0!==(c=i[d[l].charAt(0)].drawn)&&(!(u=d[l].substr(1).match(a.paramRE))||u.length<c||((f=s(u[c]))<h&&(h=f),f>p&&(p=f)));return p>=h?[h,p]:void 0}}e.exports=function(t){var e=t._fullLayout,r=n.filterVisible(e.shapes);if(r.length&&t._fullData.length)for(var o=0;o<r.length;o++){var c,f,h=r[o];if(h._extremes={},\"paper\"!==h.xref){var p=\"pixel\"===h.xsizemode?h.xanchor:h.x0,d=\"pixel\"===h.xsizemode?h.xanchor:h.x1;(f=u(c=i.getFromId(t,h.xref),p,d,h.path,a.paramIsX))&&(h._extremes[c._id]=i.findExtremes(c,f,s(h)))}if(\"paper\"!==h.yref){var g=\"pixel\"===h.ysizemode?h.yanchor:h.y0,v=\"pixel\"===h.ysizemode?h.yanchor:h.y1;(f=u(c=i.getFromId(t,h.yref),g,v,h.path,a.paramIsY))&&(h._extremes[c._id]=i.findExtremes(c,f,l(h)))}}}},{\"../../lib\":696,\"../../plots/cartesian/axes\":744,\"./constants\":651,\"./helpers\":654}],651:[function(t,e,r){\"use strict\";e.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}},{}],652:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../plots/cartesian/axes\"),a=t(\"../../plots/array_container_defaults\"),o=t(\"./attributes\"),s=t(\"./helpers\");function l(t,e,r){function a(r,i){return n.coerce(t,e,o,r,i)}if(a(\"visible\")){a(\"layer\"),a(\"opacity\"),a(\"fillcolor\"),a(\"line.color\"),a(\"line.width\"),a(\"line.dash\");for(var l=a(\"type\",t.path?\"path\":\"rect\"),c=a(\"xsizemode\"),u=a(\"ysizemode\"),f=[\"x\",\"y\"],h=0;h<2;h++){var p,d,g,v=f[h],m=v+\"anchor\",y=\"x\"===v?c:u,x={_fullLayout:r},b=i.coerceRef(t,e,x,v,\"\",\"paper\");if(\"paper\"!==b?((p=i.getFromId(x,b))._shapeIndices.push(e._index),g=s.rangeToShapePosition(p),d=s.shapePositionToRange(p)):d=g=n.identity,\"path\"!==l){var _=v+\"0\",w=v+\"1\",k=t[_],M=t[w];t[_]=d(t[_],!0),t[w]=d(t[w],!0),\"pixel\"===y?(a(_,0),a(w,10)):(i.coercePosition(e,x,a,b,_,.25),i.coercePosition(e,x,a,b,w,.75)),e[_]=g(e[_]),e[w]=g(e[w]),t[_]=k,t[w]=M}if(\"pixel\"===y){var A=t[m];t[m]=d(t[m],!0),i.coercePosition(e,x,a,b,m,.25),e[m]=g(e[m]),t[m]=A}}\"path\"===l?a(\"path\"):n.noneOrAll(t,e,[\"x0\",\"x1\",\"y0\",\"y1\"])}}e.exports=function(t,e){a(t,e,{name:\"shapes\",handleItemDefaults:l})}},{\"../../lib\":696,\"../../plots/array_container_defaults\":740,\"../../plots/cartesian/axes\":744,\"./attributes\":649,\"./helpers\":654}],653:[function(t,e,r){\"use strict\";var n=t(\"../../registry\"),i=t(\"../../lib\"),a=t(\"../../plots/cartesian/axes\"),o=t(\"../color\"),s=t(\"../drawing\"),l=t(\"../../plot_api/plot_template\").arrayEditor,c=t(\"../dragelement\"),u=t(\"../../lib/setcursor\"),f=t(\"./constants\"),h=t(\"./helpers\");function p(t,e){t._fullLayout._paperdiv.selectAll('.shapelayer [data-index=\"'+e+'\"]').remove();var r=t._fullLayout.shapes[e]||{};if(r._input&&!1!==r.visible)if(\"below\"!==r.layer)m(t._fullLayout._shapeUpperLayer);else if(\"paper\"===r.xref||\"paper\"===r.yref)m(t._fullLayout._shapeLowerLayer);else{var p=t._fullLayout._plots[r.xref+r.yref];if(p)m((p.mainplotinfo||p).shapelayer);else m(t._fullLayout._shapeLowerLayer)}function m(p){var m={\"data-index\":e,\"fill-rule\":\"evenodd\",d:g(t,r)},y=r.line.width?r.line.color:\"rgba(0,0,0,0)\",x=p.append(\"path\").attr(m).style(\"opacity\",r.opacity).call(o.stroke,y).call(o.fill,r.fillcolor).call(s.dashLine,r.line.dash,r.line.width);d(x,t,r),t._context.edits.shapePosition&&function(t,e,r,o,p){var m,y,x,b,_,w,k,M,A,T,S,E,C,L,z,O,I=10,P=10,D=\"pixel\"===r.xsizemode,R=\"pixel\"===r.ysizemode,B=\"line\"===r.type,F=\"path\"===r.type,N=l(t.layout,\"shapes\",r),j=N.modifyItem,V=a.getFromId(t,r.xref),U=a.getFromId(t,r.yref),q=h.getDataToPixel(t,V),H=h.getDataToPixel(t,U,!0),G=h.getPixelToData(t,V),W=h.getPixelToData(t,U,!0),Y=B?function(){var t=Math.max(r.line.width,10),n=p.append(\"g\").attr(\"data-index\",o);n.append(\"path\").attr(\"d\",e.attr(\"d\")).style({cursor:\"move\",\"stroke-width\":t,\"stroke-opacity\":\"0\"});var i={\"fill-opacity\":\"0\"},a=t/2>10?t/2:10;return n.append(\"circle\").attr({\"data-line-point\":\"start-point\",cx:D?q(r.xanchor)+r.x0:q(r.x0),cy:R?H(r.yanchor)-r.y0:H(r.y0),r:a}).style(i).classed(\"cursor-grab\",!0),n.append(\"circle\").attr({\"data-line-point\":\"end-point\",cx:D?q(r.xanchor)+r.x1:q(r.x1),cy:R?H(r.yanchor)-r.y1:H(r.y1),r:a}).style(i).classed(\"cursor-grab\",!0),n}():e,X={element:Y.node(),gd:t,prepFn:function(n){D&&(_=q(r.xanchor));R&&(w=H(r.yanchor));\"path\"===r.type?z=r.path:(m=D?r.x0:q(r.x0),y=R?r.y0:H(r.y0),x=D?r.x1:q(r.x1),b=R?r.y1:H(r.y1));m<x?(A=m,C=\"x0\",T=x,L=\"x1\"):(A=x,C=\"x1\",T=m,L=\"x0\");!R&&y<b||R&&y>b?(k=y,S=\"y0\",M=b,E=\"y1\"):(k=b,S=\"y1\",M=y,E=\"y0\");Z(n),K(p,r),function(t,e,r){var n=e.xref,i=e.yref,o=a.getFromId(r,n),l=a.getFromId(r,i),c=\"\";\"paper\"===n||o.autorange||(c+=n);\"paper\"===i||l.autorange||(c+=i);t.call(s.setClipUrl,c?\"clip\"+r._fullLayout._uid+c:null)}(e,r,t),X.moveFn=\"move\"===O?$:J},doneFn:function(){u(e),Q(p),d(e,t,r),n.call(\"relayout\",t,N.getUpdateObj())},clickFn:function(){Q(p)}};function Z(t){if(B)O=\"path\"===t.target.tagName?\"move\":\"start-point\"===t.target.attributes[\"data-line-point\"].value?\"resize-over-start-point\":\"resize-over-end-point\";else{var r=X.element.getBoundingClientRect(),n=r.right-r.left,i=r.bottom-r.top,a=t.clientX-r.left,o=t.clientY-r.top,s=!F&&n>I&&i>P&&!t.shiftKey?c.getCursor(a/n,1-o/i):\"move\";u(e,s),O=s.split(\"-\")[0]}}function $(n,i){if(\"path\"===r.type){var a=function(t){return t},o=a,s=a;D?j(\"xanchor\",r.xanchor=G(_+n)):(o=function(t){return G(q(t)+n)},V&&\"date\"===V.type&&(o=h.encodeDate(o))),R?j(\"yanchor\",r.yanchor=W(w+i)):(s=function(t){return W(H(t)+i)},U&&\"date\"===U.type&&(s=h.encodeDate(s))),j(\"path\",r.path=v(z,o,s))}else D?j(\"xanchor\",r.xanchor=G(_+n)):(j(\"x0\",r.x0=G(m+n)),j(\"x1\",r.x1=G(x+n))),R?j(\"yanchor\",r.yanchor=W(w+i)):(j(\"y0\",r.y0=W(y+i)),j(\"y1\",r.y1=W(b+i)));e.attr(\"d\",g(t,r)),K(p,r)}function J(n,i){if(F){var a=function(t){return t},o=a,s=a;D?j(\"xanchor\",r.xanchor=G(_+n)):(o=function(t){return G(q(t)+n)},V&&\"date\"===V.type&&(o=h.encodeDate(o))),R?j(\"yanchor\",r.yanchor=W(w+i)):(s=function(t){return W(H(t)+i)},U&&\"date\"===U.type&&(s=h.encodeDate(s))),j(\"path\",r.path=v(z,o,s))}else if(B){if(\"resize-over-start-point\"===O){var l=m+n,c=R?y-i:y+i;j(\"x0\",r.x0=D?l:G(l)),j(\"y0\",r.y0=R?c:W(c))}else if(\"resize-over-end-point\"===O){var u=x+n,f=R?b-i:b+i;j(\"x1\",r.x1=D?u:G(u)),j(\"y1\",r.y1=R?f:W(f))}}else{var d=~O.indexOf(\"n\")?k+i:k,N=~O.indexOf(\"s\")?M+i:M,Y=~O.indexOf(\"w\")?A+n:A,X=~O.indexOf(\"e\")?T+n:T;~O.indexOf(\"n\")&&R&&(d=k-i),~O.indexOf(\"s\")&&R&&(N=M-i),(!R&&N-d>P||R&&d-N>P)&&(j(S,r[S]=R?d:W(d)),j(E,r[E]=R?N:W(N))),X-Y>I&&(j(C,r[C]=D?Y:G(Y)),j(L,r[L]=D?X:G(X)))}e.attr(\"d\",g(t,r)),K(p,r)}function K(t,e){(D||R)&&function(){var r=\"path\"!==e.type,n=t.selectAll(\".visual-cue\").data([0]);n.enter().append(\"path\").attr({fill:\"#fff\",\"fill-rule\":\"evenodd\",stroke:\"#000\",\"stroke-width\":1}).classed(\"visual-cue\",!0);var a=q(D?e.xanchor:i.midRange(r?[e.x0,e.x1]:h.extractPathCoords(e.path,f.paramIsX))),o=H(R?e.yanchor:i.midRange(r?[e.y0,e.y1]:h.extractPathCoords(e.path,f.paramIsY)));if(a=h.roundPositionForSharpStrokeRendering(a,1),o=h.roundPositionForSharpStrokeRendering(o,1),D&&R){var s=\"M\"+(a-1-1)+\",\"+(o-1-1)+\"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z\";n.attr(\"d\",s)}else if(D){var l=\"M\"+(a-1-1)+\",\"+(o-9-1)+\"v18 h2 v-18 Z\";n.attr(\"d\",l)}else{var c=\"M\"+(a-9-1)+\",\"+(o-1-1)+\"h18 v2 h-18 Z\";n.attr(\"d\",c)}}()}function Q(t){t.selectAll(\".visual-cue\").remove()}c.init(X),Y.node().onmousemove=Z}(t,x,r,e,p)}}function d(t,e,r){var n=(r.xref+r.yref).replace(/paper/g,\"\");t.call(s.setClipUrl,n?\"clip\"+e._fullLayout._uid+n:null)}function g(t,e){var r,n,o,s,l,c,u,p,d=e.type,g=a.getFromId(t,e.xref),v=a.getFromId(t,e.yref),m=t._fullLayout._size;if(g?(r=h.shapePositionToRange(g),n=function(t){return g._offset+g.r2p(r(t,!0))}):n=function(t){return m.l+m.w*t},v?(o=h.shapePositionToRange(v),s=function(t){return v._offset+v.r2p(o(t,!0))}):s=function(t){return m.t+m.h*(1-t)},\"path\"===d)return g&&\"date\"===g.type&&(n=h.decodeDate(n)),v&&\"date\"===v.type&&(s=h.decodeDate(s)),function(t,e,r){var n=t.path,a=t.xsizemode,o=t.ysizemode,s=t.xanchor,l=t.yanchor;return n.replace(f.segmentRE,function(t){var n=0,c=t.charAt(0),u=f.paramIsX[c],h=f.paramIsY[c],p=f.numParams[c],d=t.substr(1).replace(f.paramRE,function(t){return u[n]?t=\"pixel\"===a?e(s)+Number(t):e(t):h[n]&&(t=\"pixel\"===o?r(l)-Number(t):r(t)),++n>p&&(t=\"X\"),t});return n>p&&(d=d.replace(/[\\s,]*X.*/,\"\"),i.log(\"Ignoring extra params in segment \"+t)),c+d})}(e,n,s);if(\"pixel\"===e.xsizemode){var y=n(e.xanchor);l=y+e.x0,c=y+e.x1}else l=n(e.x0),c=n(e.x1);if(\"pixel\"===e.ysizemode){var x=s(e.yanchor);u=x-e.y0,p=x-e.y1}else u=s(e.y0),p=s(e.y1);if(\"line\"===d)return\"M\"+l+\",\"+u+\"L\"+c+\",\"+p;if(\"rect\"===d)return\"M\"+l+\",\"+u+\"H\"+c+\"V\"+p+\"H\"+l+\"Z\";var b=(l+c)/2,_=(u+p)/2,w=Math.abs(b-l),k=Math.abs(_-u),M=\"A\"+w+\",\"+k,A=b+w+\",\"+_;return\"M\"+A+M+\" 0 1,1 \"+(b+\",\"+(_-k))+M+\" 0 0,1 \"+A+\"Z\"}function v(t,e,r){return t.replace(f.segmentRE,function(t){var n=0,i=t.charAt(0),a=f.paramIsX[i],o=f.paramIsY[i],s=f.numParams[i];return i+t.substr(1).replace(f.paramRE,function(t){return n>=s?t:(a[n]?t=e(t):o[n]&&(t=r(t)),n++,t)})})}e.exports={draw:function(t){var e=t._fullLayout;for(var r in e._shapeUpperLayer.selectAll(\"path\").remove(),e._shapeLowerLayer.selectAll(\"path\").remove(),e._plots){var n=e._plots[r].shapelayer;n&&n.selectAll(\"path\").remove()}for(var i=0;i<e.shapes.length;i++)e.shapes[i].visible&&p(t,i)},drawOne:p}},{\"../../lib\":696,\"../../lib/setcursor\":716,\"../../plot_api/plot_template\":734,\"../../plots/cartesian/axes\":744,\"../../registry\":827,\"../color\":570,\"../dragelement\":592,\"../drawing\":595,\"./constants\":651,\"./helpers\":654}],654:[function(t,e,r){\"use strict\";var n=t(\"./constants\"),i=t(\"../../lib\");r.rangeToShapePosition=function(t){return\"log\"===t.type?t.r2d:function(t){return t}},r.shapePositionToRange=function(t){return\"log\"===t.type?t.d2r:function(t){return t}},r.decodeDate=function(t){return function(e){return e.replace&&(e=e.replace(\"_\",\" \")),t(e)}},r.encodeDate=function(t){return function(e){return t(e).replace(\" \",\"_\")}},r.extractPathCoords=function(t,e){var r=[];return t.match(n.segmentRE).forEach(function(t){var a=e[t.charAt(0)].drawn;if(void 0!==a){var o=t.substr(1).match(n.paramRE);!o||o.length<a||r.push(i.cleanNumber(o[a]))}}),r},r.getDataToPixel=function(t,e,n){var i,a=t._fullLayout._size;if(e){var o=r.shapePositionToRange(e);i=function(t){return e._offset+e.r2p(o(t,!0))},\"date\"===e.type&&(i=r.decodeDate(i))}else i=n?function(t){return a.t+a.h*(1-t)}:function(t){return a.l+a.w*t};return i},r.getPixelToData=function(t,e,n){var i,a=t._fullLayout._size;if(e){var o=r.rangeToShapePosition(e);i=function(t){return o(e.p2r(t-e._offset))}}else i=n?function(t){return 1-(t-a.t)/a.h}:function(t){return(t-a.l)/a.w};return i},r.roundPositionForSharpStrokeRendering=function(t,e){var r=1===Math.round(e%2),n=Math.round(t);return r?n+.5:n}},{\"../../lib\":696,\"./constants\":651}],655:[function(t,e,r){\"use strict\";var n=t(\"./draw\");e.exports={moduleType:\"component\",name:\"shapes\",layoutAttributes:t(\"./attributes\"),supplyLayoutDefaults:t(\"./defaults\"),includeBasePlot:t(\"../../plots/cartesian/include_components\")(\"shapes\"),calcAutorange:t(\"./calc_autorange\"),draw:n.draw,drawOne:n.drawOne}},{\"../../plots/cartesian/include_components\":755,\"./attributes\":649,\"./calc_autorange\":650,\"./defaults\":652,\"./draw\":653}],656:[function(t,e,r){\"use strict\";var n=t(\"../../plots/font_attributes\"),i=t(\"../../plots/pad_attributes\"),a=t(\"../../lib/extend\").extendDeepAll,o=t(\"../../plot_api/edit_types\").overrideAll,s=t(\"../../plots/animation_attributes\"),l=t(\"../../plot_api/plot_template\").templatedArray,c=t(\"./constants\"),u=l(\"step\",{visible:{valType:\"boolean\",dflt:!0},method:{valType:\"enumerated\",values:[\"restyle\",\"relayout\",\"animate\",\"update\",\"skip\"],dflt:\"restyle\"},args:{valType:\"info_array\",freeLength:!0,items:[{valType:\"any\"},{valType:\"any\"},{valType:\"any\"}]},label:{valType:\"string\"},value:{valType:\"string\"},execute:{valType:\"boolean\",dflt:!0}});e.exports=o(l(\"slider\",{visible:{valType:\"boolean\",dflt:!0},active:{valType:\"number\",min:0,dflt:0},steps:u,lenmode:{valType:\"enumerated\",values:[\"fraction\",\"pixels\"],dflt:\"fraction\"},len:{valType:\"number\",min:0,dflt:1},x:{valType:\"number\",min:-2,max:3,dflt:0},pad:a({},i,{},{t:{dflt:20}}),xanchor:{valType:\"enumerated\",values:[\"auto\",\"left\",\"center\",\"right\"],dflt:\"left\"},y:{valType:\"number\",min:-2,max:3,dflt:0},yanchor:{valType:\"enumerated\",values:[\"auto\",\"top\",\"middle\",\"bottom\"],dflt:\"top\"},transition:{duration:{valType:\"number\",min:0,dflt:150},easing:{valType:\"enumerated\",values:s.transition.easing.values,dflt:\"cubic-in-out\"}},currentvalue:{visible:{valType:\"boolean\",dflt:!0},xanchor:{valType:\"enumerated\",values:[\"left\",\"center\",\"right\"],dflt:\"left\"},offset:{valType:\"number\",dflt:10},prefix:{valType:\"string\"},suffix:{valType:\"string\"},font:n({})},font:n({}),activebgcolor:{valType:\"color\",dflt:c.gripBgActiveColor},bgcolor:{valType:\"color\",dflt:c.railBgColor},bordercolor:{valType:\"color\",dflt:c.railBorderColor},borderwidth:{valType:\"number\",min:0,dflt:c.railBorderWidth},ticklen:{valType:\"number\",min:0,dflt:c.tickLength},tickcolor:{valType:\"color\",dflt:c.tickColor},tickwidth:{valType:\"number\",min:0,dflt:1},minorticklen:{valType:\"number\",min:0,dflt:c.minorTickLength}}),\"arraydraw\",\"from-root\")},{\"../../lib/extend\":685,\"../../plot_api/edit_types\":727,\"../../plot_api/plot_template\":734,\"../../plots/animation_attributes\":739,\"../../plots/font_attributes\":771,\"../../plots/pad_attributes\":807,\"./constants\":657}],657:[function(t,e,r){\"use strict\";e.exports={name:\"sliders\",containerClassName:\"slider-container\",groupClassName:\"slider-group\",inputAreaClass:\"slider-input-area\",railRectClass:\"slider-rail-rect\",railTouchRectClass:\"slider-rail-touch-rect\",gripRectClass:\"slider-grip-rect\",tickRectClass:\"slider-tick-rect\",inputProxyClass:\"slider-input-proxy\",labelsClass:\"slider-labels\",labelGroupClass:\"slider-label-group\",labelClass:\"slider-label\",currentValueClass:\"slider-current-value\",railHeight:5,menuIndexAttrName:\"slider-active-index\",autoMarginIdRoot:\"slider-\",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:\"#bec8d9\",railBgColor:\"#f8fafc\",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:\"#bec8d9\",gripBgColor:\"#f6f8fa\",gripBgActiveColor:\"#dbdde0\",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:\"#333\",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:\"#333\",minorTickLength:4,currentValuePadding:8,currentValueInset:0}},{}],658:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../plots/array_container_defaults\"),a=t(\"./attributes\"),o=t(\"./constants\").name,s=a.steps;function l(t,e,r){function o(r,i){return n.coerce(t,e,a,r,i)}for(var s=i(t,e,{name:\"steps\",handleItemDefaults:c}),l=0,u=0;u<s.length;u++)s[u].visible&&l++;if(l<2?e.visible=!1:o(\"visible\")){e._stepCount=l;var f=e._visibleSteps=n.filterVisible(s);(s[o(\"active\")]||{}).visible||(e.active=f[0]._index),o(\"x\"),o(\"y\"),n.noneOrAll(t,e,[\"x\",\"y\"]),o(\"xanchor\"),o(\"yanchor\"),o(\"len\"),o(\"lenmode\"),o(\"pad.t\"),o(\"pad.r\"),o(\"pad.b\"),o(\"pad.l\"),n.coerceFont(o,\"font\",r.font),o(\"currentvalue.visible\")&&(o(\"currentvalue.xanchor\"),o(\"currentvalue.prefix\"),o(\"currentvalue.suffix\"),o(\"currentvalue.offset\"),n.coerceFont(o,\"currentvalue.font\",e.font)),o(\"transition.duration\"),o(\"transition.easing\"),o(\"bgcolor\"),o(\"activebgcolor\"),o(\"bordercolor\"),o(\"borderwidth\"),o(\"ticklen\"),o(\"tickwidth\"),o(\"tickcolor\"),o(\"minorticklen\")}}function c(t,e){function r(r,i){return n.coerce(t,e,s,r,i)}if(\"skip\"===t.method||Array.isArray(t.args)?r(\"visible\"):e.visible=!1){r(\"method\"),r(\"args\");var i=r(\"label\",\"step-\"+e._index);r(\"value\",i),r(\"execute\")}}e.exports=function(t,e){i(t,e,{name:o,handleItemDefaults:l})}},{\"../../lib\":696,\"../../plots/array_container_defaults\":740,\"./attributes\":656,\"./constants\":657}],659:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../../plots/plots\"),a=t(\"../color\"),o=t(\"../drawing\"),s=t(\"../../lib\"),l=t(\"../../lib/svg_text_utils\"),c=t(\"../legend/anchor_utils\"),u=t(\"../../plot_api/plot_template\").arrayEditor,f=t(\"./constants\"),h=t(\"../../constants/alignment\"),p=h.LINE_SPACING,d=h.FROM_TL,g=h.FROM_BR;function v(t){return f.autoMarginIdRoot+t._index}function m(t){return t._index}function y(t,e){var r=o.tester.selectAll(\"g.\"+f.labelGroupClass).data(e._visibleSteps);r.enter().append(\"g\").classed(f.labelGroupClass,!0);var a=0,s=0;r.each(function(t){var r=_(n.select(this),{step:t},e).node();if(r){var i=o.bBox(r);s=Math.max(s,i.height),a=Math.max(a,i.width)}}),r.remove();var u=e._dims={};u.inputAreaWidth=Math.max(f.railWidth,f.gripHeight);var h=t._fullLayout._size;u.lx=h.l+h.w*e.x,u.ly=h.t+h.h*(1-e.y),\"fraction\"===e.lenmode?u.outerLength=Math.round(h.w*e.len):u.outerLength=e.len,u.inputAreaStart=0,u.inputAreaLength=Math.round(u.outerLength-e.pad.l-e.pad.r);var p=(u.inputAreaLength-2*f.stepInset)/(e._stepCount-1),m=a+f.labelPadding;if(u.labelStride=Math.max(1,Math.ceil(m/p)),u.labelHeight=s,u.currentValueMaxWidth=0,u.currentValueHeight=0,u.currentValueTotalHeight=0,u.currentValueMaxLines=1,e.currentvalue.visible){var y=o.tester.append(\"g\");r.each(function(t){var r=x(y,e,t.label),n=r.node()&&o.bBox(r.node())||{width:0,height:0},i=l.lineCount(r);u.currentValueMaxWidth=Math.max(u.currentValueMaxWidth,Math.ceil(n.width)),u.currentValueHeight=Math.max(u.currentValueHeight,Math.ceil(n.height)),u.currentValueMaxLines=Math.max(u.currentValueMaxLines,i)}),u.currentValueTotalHeight=u.currentValueHeight+e.currentvalue.offset,y.remove()}u.height=u.currentValueTotalHeight+f.tickOffset+e.ticklen+f.labelOffset+u.labelHeight+e.pad.t+e.pad.b;var b=\"left\";c.isRightAnchor(e)&&(u.lx-=u.outerLength,b=\"right\"),c.isCenterAnchor(e)&&(u.lx-=u.outerLength/2,b=\"center\");var w=\"top\";c.isBottomAnchor(e)&&(u.ly-=u.height,w=\"bottom\"),c.isMiddleAnchor(e)&&(u.ly-=u.height/2,w=\"middle\"),u.outerLength=Math.ceil(u.outerLength),u.height=Math.ceil(u.height),u.lx=Math.round(u.lx),u.ly=Math.round(u.ly);var k={y:e.y,b:u.height*g[w],t:u.height*d[w]};\"fraction\"===e.lenmode?(k.l=0,k.xl=e.x-e.len*d[b],k.r=0,k.xr=e.x+e.len*g[b]):(k.x=e.x,k.l=u.outerLength*d[b],k.r=u.outerLength*g[b]),i.autoMargin(t,v(e),k)}function x(t,e,r){if(e.currentvalue.visible){var n,i,a=e._dims;switch(e.currentvalue.xanchor){case\"right\":n=a.inputAreaLength-f.currentValueInset-a.currentValueMaxWidth,i=\"left\";break;case\"center\":n=.5*a.inputAreaLength,i=\"middle\";break;default:n=f.currentValueInset,i=\"left\"}var c=s.ensureSingle(t,\"text\",f.labelClass,function(t){t.classed(\"user-select-none\",!0).attr({\"text-anchor\":i,\"data-notex\":1})}),u=e.currentvalue.prefix?e.currentvalue.prefix:\"\";if(\"string\"==typeof r)u+=r;else u+=e.steps[e.active].label;e.currentvalue.suffix&&(u+=e.currentvalue.suffix),c.call(o.font,e.currentvalue.font).text(u).call(l.convertToTspans,e._gd);var h=l.lineCount(c),d=(a.currentValueMaxLines+1-h)*e.currentvalue.font.size*p;return l.positionText(c,n,d),c}}function b(t,e,r){s.ensureSingle(t,\"rect\",f.gripRectClass,function(n){n.call(A,e,t,r).style(\"pointer-events\",\"all\")}).attr({width:f.gripWidth,height:f.gripHeight,rx:f.gripRadius,ry:f.gripRadius}).call(a.stroke,r.bordercolor).call(a.fill,r.bgcolor).style(\"stroke-width\",r.borderwidth+\"px\")}function _(t,e,r){var n=s.ensureSingle(t,\"text\",f.labelClass,function(t){t.classed(\"user-select-none\",!0).attr({\"text-anchor\":\"middle\",\"data-notex\":1})});return n.call(o.font,r.font).text(e.step.label).call(l.convertToTspans,r._gd),n}function w(t,e){var r=s.ensureSingle(t,\"g\",f.labelsClass),i=e._dims,a=r.selectAll(\"g.\"+f.labelGroupClass).data(i.labelSteps);a.enter().append(\"g\").classed(f.labelGroupClass,!0),a.exit().remove(),a.each(function(t){var r=n.select(this);r.call(_,t,e),o.setTranslate(r,E(e,t.fraction),f.tickOffset+e.ticklen+e.font.size*p+f.labelOffset+i.currentValueTotalHeight)})}function k(t,e,r,n,i){var a=Math.round(n*(r._stepCount-1)),o=r._visibleSteps[a]._index;o!==r.active&&M(t,e,r,o,!0,i)}function M(t,e,r,n,a,o){var s=r.active;r.active=n,u(t.layout,f.name,r).applyUpdate(\"active\",n);var l=r.steps[r.active];e.call(S,r,o),e.call(x,r),t.emit(\"plotly_sliderchange\",{slider:r,step:r.steps[r.active],interaction:a,previousActive:s}),l&&l.method&&a&&(e._nextMethod?(e._nextMethod.step=l,e._nextMethod.doCallback=a,e._nextMethod.doTransition=o):(e._nextMethod={step:l,doCallback:a,doTransition:o},e._nextMethodRaf=window.requestAnimationFrame(function(){var r=e._nextMethod.step;r.method&&(r.execute&&i.executeAPICommand(t,r.method,r.args),e._nextMethod=null,e._nextMethodRaf=null)})))}function A(t,e,r){var i=r.node(),o=n.select(e);function s(){return r.data()[0]}t.on(\"mousedown\",function(){var t=s();e.emit(\"plotly_sliderstart\",{slider:t});var l=r.select(\".\"+f.gripRectClass);n.event.stopPropagation(),n.event.preventDefault(),l.call(a.fill,t.activebgcolor);var c=C(t,n.mouse(i)[0]);k(e,r,t,c,!0),t._dragging=!0,o.on(\"mousemove\",function(){var t=s(),a=C(t,n.mouse(i)[0]);k(e,r,t,a,!1)}),o.on(\"mouseup\",function(){var t=s();t._dragging=!1,l.call(a.fill,t.bgcolor),o.on(\"mouseup\",null),o.on(\"mousemove\",null),e.emit(\"plotly_sliderend\",{slider:t,step:t.steps[t.active]})})})}function T(t,e){var r=t.selectAll(\"rect.\"+f.tickRectClass).data(e._visibleSteps),i=e._dims;r.enter().append(\"rect\").classed(f.tickRectClass,!0),r.exit().remove(),r.attr({width:e.tickwidth+\"px\",\"shape-rendering\":\"crispEdges\"}),r.each(function(t,r){var s=r%i.labelStride==0,l=n.select(this);l.attr({height:s?e.ticklen:e.minorticklen}).call(a.fill,e.tickcolor),o.setTranslate(l,E(e,r/(e._stepCount-1))-.5*e.tickwidth,(s?f.tickOffset:f.minorTickOffset)+i.currentValueTotalHeight)})}function S(t,e,r){for(var n=t.select(\"rect.\"+f.gripRectClass),i=0,a=0;a<e._stepCount;a++)if(e._visibleSteps[a]._index===e.active){i=a;break}var o=E(e,i/(e._stepCount-1));if(!e._invokingCommand){var s=n;r&&e.transition.duration>0&&(s=s.transition().duration(e.transition.duration).ease(e.transition.easing)),s.attr(\"transform\",\"translate(\"+(o-.5*f.gripWidth)+\",\"+e._dims.currentValueTotalHeight+\")\")}}function E(t,e){var r=t._dims;return r.inputAreaStart+f.stepInset+(r.inputAreaLength-2*f.stepInset)*Math.min(1,Math.max(0,e))}function C(t,e){var r=t._dims;return Math.min(1,Math.max(0,(e-f.stepInset-r.inputAreaStart)/(r.inputAreaLength-2*f.stepInset-2*r.inputAreaStart)))}function L(t,e,r){var n=r._dims,i=s.ensureSingle(t,\"rect\",f.railTouchRectClass,function(n){n.call(A,e,t,r).style(\"pointer-events\",\"all\")});i.attr({width:n.inputAreaLength,height:Math.max(n.inputAreaWidth,f.tickOffset+r.ticklen+n.labelHeight)}).call(a.fill,r.bgcolor).attr(\"opacity\",0),o.setTranslate(i,0,n.currentValueTotalHeight)}function z(t,e){var r=e._dims,n=r.inputAreaLength-2*f.railInset,i=s.ensureSingle(t,\"rect\",f.railRectClass);i.attr({width:n,height:f.railWidth,rx:f.railRadius,ry:f.railRadius,\"shape-rendering\":\"crispEdges\"}).call(a.stroke,e.bordercolor).call(a.fill,e.bgcolor).style(\"stroke-width\",e.borderwidth+\"px\"),o.setTranslate(i,f.railInset,.5*(r.inputAreaWidth-f.railWidth)+r.currentValueTotalHeight)}e.exports=function(t){var e=t._fullLayout,r=function(t,e){for(var r=t[f.name],n=[],i=0;i<r.length;i++){var a=r[i];a.visible&&(a._gd=e,n.push(a))}return n}(e,t),a=e._infolayer.selectAll(\"g.\"+f.containerClassName).data(r.length>0?[0]:[]);function s(e){e._commandObserver&&(e._commandObserver.remove(),delete e._commandObserver),i.autoMargin(t,v(e))}if(a.enter().append(\"g\").classed(f.containerClassName,!0).style(\"cursor\",\"ew-resize\"),a.exit().each(function(){n.select(this).selectAll(\"g.\"+f.groupClassName).each(s)}).remove(),0!==r.length){var l=a.selectAll(\"g.\"+f.groupClassName).data(r,m);l.enter().append(\"g\").classed(f.groupClassName,!0),l.exit().each(s).remove();for(var c=0;c<r.length;c++){var u=r[c];y(t,u)}l.each(function(e){var r=n.select(this);!function(t){var e=t._dims;e.labelSteps=[];for(var r=t._stepCount,n=0;n<r;n+=e.labelStride)e.labelSteps.push({fraction:n/(r-1),step:t._visibleSteps[n]})}(e),i.manageCommandObserver(t,e,e._visibleSteps,function(e){var n=r.data()[0];n.active!==e.index&&(n._dragging||M(t,r,n,e.index,!1,!0))}),function(t,e,r){(r.steps[r.active]||{}).visible||(r.active=r._visibleSteps[0]._index);e.call(x,r).call(z,r).call(w,r).call(T,r).call(L,t,r).call(b,t,r);var n=r._dims;o.setTranslate(e,n.lx+r.pad.l,n.ly+r.pad.t),e.call(S,r,!1),e.call(x,r)}(t,n.select(this),e)})}}},{\"../../constants/alignment\":668,\"../../lib\":696,\"../../lib/svg_text_utils\":720,\"../../plot_api/plot_template\":734,\"../../plots/plots\":808,\"../color\":570,\"../drawing\":595,\"../legend/anchor_utils\":622,\"./constants\":657,d3:148}],660:[function(t,e,r){\"use strict\";var n=t(\"./constants\");e.exports={moduleType:\"component\",name:n.name,layoutAttributes:t(\"./attributes\"),supplyLayoutDefaults:t(\"./defaults\"),draw:t(\"./draw\")}},{\"./attributes\":656,\"./constants\":657,\"./defaults\":658,\"./draw\":659}],661:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"fast-isnumeric\"),a=t(\"../../plots/plots\"),o=t(\"../../registry\"),s=t(\"../../lib\"),l=t(\"../drawing\"),c=t(\"../color\"),u=t(\"../../lib/svg_text_utils\"),f=t(\"../../constants/interactions\");e.exports={draw:function(t,e,r){var p,d=r.propContainer,g=r.propName,v=r.placeholder,m=r.traceIndex,y=r.avoid||{},x=r.attributes,b=r.transform,_=r.containerGroup,w=t._fullLayout,k=d.titlefont||{},M=k.family,A=k.size,T=k.color,S=1,E=!1,C=(d.title||\"\").trim();\"title\"===g?p=\"titleText\":-1!==g.indexOf(\"axis\")?p=\"axisTitleText\":g.indexOf(!0)&&(p=\"colorbarTitleText\");var L=t._context.edits[p];\"\"===C?S=0:C.replace(h,\" % \")===v.replace(h,\" % \")&&(S=.2,E=!0,L||(C=\"\"));var z=C||L;_||(_=s.ensureSingle(w._infolayer,\"g\",\"g-\"+e));var O=_.selectAll(\"text\").data(z?[0]:[]);if(O.enter().append(\"text\"),O.text(C).attr(\"class\",e),O.exit().remove(),!z)return _;function I(t){s.syncOrAsync([P,D],t)}function P(e){var r;return b?(r=\"\",b.rotate&&(r+=\"rotate(\"+[b.rotate,x.x,x.y]+\")\"),b.offset&&(r+=\"translate(0, \"+b.offset+\")\")):r=null,e.attr(\"transform\",r),e.style({\"font-family\":M,\"font-size\":n.round(A,2)+\"px\",fill:c.rgb(T),opacity:S*c.opacity(T),\"font-weight\":a.fontWeight}).attr(x).call(u.convertToTspans,t),a.previousPromises(t)}function D(t){var e=n.select(t.node().parentNode);if(y&&y.selection&&y.side&&C){e.attr(\"transform\",null);var r=0,a={left:\"right\",right:\"left\",top:\"bottom\",bottom:\"top\"}[y.side],o=-1!==[\"left\",\"top\"].indexOf(y.side)?-1:1,c=i(y.pad)?y.pad:2,u=l.bBox(e.node()),f={left:0,top:0,right:w.width,bottom:w.height},h=y.maxShift||(f[y.side]-u[y.side])*(\"left\"===y.side||\"top\"===y.side?-1:1);if(h<0)r=h;else{var p=y.offsetLeft||0,d=y.offsetTop||0;u.left-=p,u.right-=p,u.top-=d,u.bottom-=d,y.selection.each(function(){var t=l.bBox(this);s.bBoxIntersect(u,t,c)&&(r=Math.max(r,o*(t[y.side]-u[a])+c))}),r=Math.min(h,r)}if(r>0||h<0){var g={left:[-r,0],right:[r,0],top:[0,-r],bottom:[0,r]}[y.side];e.attr(\"transform\",\"translate(\"+g+\")\")}}}O.call(I),L&&(C?O.on(\".opacity\",null):(S=0,E=!0,O.text(v).on(\"mouseover.opacity\",function(){n.select(this).transition().duration(f.SHOW_PLACEHOLDER).style(\"opacity\",1)}).on(\"mouseout.opacity\",function(){n.select(this).transition().duration(f.HIDE_PLACEHOLDER).style(\"opacity\",0)})),O.call(u.makeEditable,{gd:t}).on(\"edit\",function(e){void 0!==m?o.call(\"restyle\",t,g,e,m):o.call(\"relayout\",t,g,e)}).on(\"cancel\",function(){this.text(this.attr(\"data-unformatted\")).call(I)}).on(\"input\",function(t){this.text(t||\" \").call(u.positionText,x.x,x.y)}));return O.classed(\"js-placeholder\",E),_}};var h=/ [XY][0-9]* /},{\"../../constants/interactions\":672,\"../../lib\":696,\"../../lib/svg_text_utils\":720,\"../../plots/plots\":808,\"../../registry\":827,\"../color\":570,\"../drawing\":595,d3:148,\"fast-isnumeric\":214}],662:[function(t,e,r){\"use strict\";var n=t(\"../../plots/font_attributes\"),i=t(\"../color/attributes\"),a=t(\"../../lib/extend\").extendFlat,o=t(\"../../plot_api/edit_types\").overrideAll,s=t(\"../../plots/pad_attributes\"),l=t(\"../../plot_api/plot_template\").templatedArray,c=l(\"button\",{visible:{valType:\"boolean\"},method:{valType:\"enumerated\",values:[\"restyle\",\"relayout\",\"animate\",\"update\",\"skip\"],dflt:\"restyle\"},args:{valType:\"info_array\",freeLength:!0,items:[{valType:\"any\"},{valType:\"any\"},{valType:\"any\"}]},label:{valType:\"string\",dflt:\"\"},execute:{valType:\"boolean\",dflt:!0}});e.exports=o(l(\"updatemenu\",{_arrayAttrRegexps:[/^updatemenus\\[(0|[1-9][0-9]+)\\]\\.buttons/],visible:{valType:\"boolean\"},type:{valType:\"enumerated\",values:[\"dropdown\",\"buttons\"],dflt:\"dropdown\"},direction:{valType:\"enumerated\",values:[\"left\",\"right\",\"up\",\"down\"],dflt:\"down\"},active:{valType:\"integer\",min:-1,dflt:0},showactive:{valType:\"boolean\",dflt:!0},buttons:c,x:{valType:\"number\",min:-2,max:3,dflt:-.05},xanchor:{valType:\"enumerated\",values:[\"auto\",\"left\",\"center\",\"right\"],dflt:\"right\"},y:{valType:\"number\",min:-2,max:3,dflt:1},yanchor:{valType:\"enumerated\",values:[\"auto\",\"top\",\"middle\",\"bottom\"],dflt:\"top\"},pad:a({},s,{}),font:n({}),bgcolor:{valType:\"color\"},bordercolor:{valType:\"color\",dflt:i.borderLine},borderwidth:{valType:\"number\",min:0,dflt:1,editType:\"arraydraw\"}}),\"arraydraw\",\"from-root\")},{\"../../lib/extend\":685,\"../../plot_api/edit_types\":727,\"../../plot_api/plot_template\":734,\"../../plots/font_attributes\":771,\"../../plots/pad_attributes\":807,\"../color/attributes\":569}],663:[function(t,e,r){\"use strict\";e.exports={name:\"updatemenus\",containerClassName:\"updatemenu-container\",headerGroupClassName:\"updatemenu-header-group\",headerClassName:\"updatemenu-header\",headerArrowClassName:\"updatemenu-header-arrow\",dropdownButtonGroupClassName:\"updatemenu-dropdown-button-group\",dropdownButtonClassName:\"updatemenu-dropdown-button\",buttonClassName:\"updatemenu-button\",itemRectClassName:\"updatemenu-item-rect\",itemTextClassName:\"updatemenu-item-text\",menuIndexAttrName:\"updatemenu-active-index\",autoMarginIdRoot:\"updatemenu-\",blankHeaderOpts:{label:\" \"},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:\"#F4FAFF\",hoverColor:\"#F4FAFF\",arrowSymbol:{left:\"\\u25c4\",right:\"\\u25ba\",up:\"\\u25b2\",down:\"\\u25bc\"}}},{}],664:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../plots/array_container_defaults\"),a=t(\"./attributes\"),o=t(\"./constants\").name,s=a.buttons;function l(t,e,r){function o(r,i){return n.coerce(t,e,a,r,i)}o(\"visible\",i(t,e,{name:\"buttons\",handleItemDefaults:c}).length>0)&&(o(\"active\"),o(\"direction\"),o(\"type\"),o(\"showactive\"),o(\"x\"),o(\"y\"),n.noneOrAll(t,e,[\"x\",\"y\"]),o(\"xanchor\"),o(\"yanchor\"),o(\"pad.t\"),o(\"pad.r\"),o(\"pad.b\"),o(\"pad.l\"),n.coerceFont(o,\"font\",r.font),o(\"bgcolor\",r.paper_bgcolor),o(\"bordercolor\"),o(\"borderwidth\"))}function c(t,e){function r(r,i){return n.coerce(t,e,s,r,i)}r(\"visible\",\"skip\"===t.method||Array.isArray(t.args))&&(r(\"method\"),r(\"args\"),r(\"label\"),r(\"execute\"))}e.exports=function(t,e){i(t,e,{name:o,handleItemDefaults:l})}},{\"../../lib\":696,\"../../plots/array_container_defaults\":740,\"./attributes\":662,\"./constants\":663}],665:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../../plots/plots\"),a=t(\"../color\"),o=t(\"../drawing\"),s=t(\"../../lib\"),l=t(\"../../lib/svg_text_utils\"),c=t(\"../legend/anchor_utils\"),u=t(\"../../plot_api/plot_template\").arrayEditor,f=t(\"../../constants/alignment\").LINE_SPACING,h=t(\"./constants\"),p=t(\"./scrollbox\");function d(t){return t._index}function g(t,e){return+t.attr(h.menuIndexAttrName)===e._index}function v(t,e,r,n,i,a,o,s){e.active=o,u(t.layout,h.name,e).applyUpdate(\"active\",o),\"buttons\"===e.type?y(t,n,null,null,e):\"dropdown\"===e.type&&(i.attr(h.menuIndexAttrName,\"-1\"),m(t,n,i,a,e),s||y(t,n,i,a,e))}function m(t,e,r,n,i){var a=s.ensureSingle(e,\"g\",h.headerClassName,function(t){t.style(\"pointer-events\",\"all\")}),l=i._dims,c=i.active,u=i.buttons[c]||h.blankHeaderOpts,f={y:i.pad.t,yPad:0,x:i.pad.l,xPad:0,index:0},p={width:l.headerWidth,height:l.headerHeight};a.call(x,i,u,t).call(S,i,f,p),s.ensureSingle(e,\"text\",h.headerArrowClassName,function(t){t.classed(\"user-select-none\",!0).attr(\"text-anchor\",\"end\").call(o.font,i.font).text(h.arrowSymbol[i.direction])}).attr({x:l.headerWidth-h.arrowOffsetX+i.pad.l,y:l.headerHeight/2+h.textOffsetY+i.pad.t}),a.on(\"click\",function(){r.call(E,String(g(r,i)?-1:i._index)),y(t,e,r,n,i)}),a.on(\"mouseover\",function(){a.call(k)}),a.on(\"mouseout\",function(){a.call(M,i)}),o.setTranslate(e,l.lx,l.ly)}function y(t,e,r,a,o){r||(r=e).attr(\"pointer-events\",\"all\");var l=function(t){return-1==+t.attr(h.menuIndexAttrName)}(r)&&\"buttons\"!==o.type?[]:o.buttons,c=\"dropdown\"===o.type?h.dropdownButtonClassName:h.buttonClassName,u=r.selectAll(\"g.\"+c).data(s.filterVisible(l)),f=u.enter().append(\"g\").classed(c,!0),p=u.exit();\"dropdown\"===o.type?(f.attr(\"opacity\",\"0\").transition().attr(\"opacity\",\"1\"),p.transition().attr(\"opacity\",\"0\").remove()):p.remove();var d=0,g=0,m=o._dims,y=-1!==[\"up\",\"down\"].indexOf(o.direction);\"dropdown\"===o.type&&(y?g=m.headerHeight+h.gapButtonHeader:d=m.headerWidth+h.gapButtonHeader),\"dropdown\"===o.type&&\"up\"===o.direction&&(g=-h.gapButtonHeader+h.gapButton-m.openHeight),\"dropdown\"===o.type&&\"left\"===o.direction&&(d=-h.gapButtonHeader+h.gapButton-m.openWidth);var b={x:m.lx+d+o.pad.l,y:m.ly+g+o.pad.t,yPad:h.gapButton,xPad:h.gapButton,index:0},_={l:b.x+o.borderwidth,t:b.y+o.borderwidth};u.each(function(s,l){var c=n.select(this);c.call(x,o,s,t).call(S,o,b),c.on(\"click\",function(){n.event.defaultPrevented||(v(t,o,0,e,r,a,l),s.execute&&i.executeAPICommand(t,s.method,s.args),t.emit(\"plotly_buttonclicked\",{menu:o,button:s,active:o.active}))}),c.on(\"mouseover\",function(){c.call(k)}),c.on(\"mouseout\",function(){c.call(M,o),u.call(w,o)})}),u.call(w,o),y?(_.w=Math.max(m.openWidth,m.headerWidth),_.h=b.y-_.t):(_.w=b.x-_.l,_.h=Math.max(m.openHeight,m.headerHeight)),_.direction=o.direction,a&&(u.size()?function(t,e,r,n,i,a){var o,s,l,c=i.direction,u=\"up\"===c||\"down\"===c,f=i._dims,p=i.active;if(u)for(s=0,l=0;l<p;l++)s+=f.heights[l]+h.gapButton;else for(o=0,l=0;l<p;l++)o+=f.widths[l]+h.gapButton;n.enable(a,o,s),n.hbar&&n.hbar.attr(\"opacity\",\"0\").transition().attr(\"opacity\",\"1\");n.vbar&&n.vbar.attr(\"opacity\",\"0\").transition().attr(\"opacity\",\"1\")}(0,0,0,a,o,_):function(t){var e=!!t.hbar,r=!!t.vbar;e&&t.hbar.transition().attr(\"opacity\",\"0\").each(\"end\",function(){e=!1,r||t.disable()});r&&t.vbar.transition().attr(\"opacity\",\"0\").each(\"end\",function(){r=!1,e||t.disable()})}(a))}function x(t,e,r,n){t.call(b,e).call(_,e,r,n)}function b(t,e){s.ensureSingle(t,\"rect\",h.itemRectClassName,function(t){t.attr({rx:h.rx,ry:h.ry,\"shape-rendering\":\"crispEdges\"})}).call(a.stroke,e.bordercolor).call(a.fill,e.bgcolor).style(\"stroke-width\",e.borderwidth+\"px\")}function _(t,e,r,n){s.ensureSingle(t,\"text\",h.itemTextClassName,function(t){t.classed(\"user-select-none\",!0).attr({\"text-anchor\":\"start\",\"data-notex\":1})}).call(o.font,e.font).text(r.label).call(l.convertToTspans,n)}function w(t,e){var r=e.active;t.each(function(t,i){var o=n.select(this);i===r&&e.showactive&&o.select(\"rect.\"+h.itemRectClassName).call(a.fill,h.activeColor)})}function k(t){t.select(\"rect.\"+h.itemRectClassName).call(a.fill,h.hoverColor)}function M(t,e){t.select(\"rect.\"+h.itemRectClassName).call(a.fill,e.bgcolor)}function A(t,e){var r=e._dims={width1:0,height1:0,heights:[],widths:[],totalWidth:0,totalHeight:0,openWidth:0,openHeight:0,lx:0,ly:0},a=o.tester.selectAll(\"g.\"+h.dropdownButtonClassName).data(s.filterVisible(e.buttons));a.enter().append(\"g\").classed(h.dropdownButtonClassName,!0);var u=-1!==[\"up\",\"down\"].indexOf(e.direction);a.each(function(i,a){var s=n.select(this);s.call(x,e,i,t);var c=s.select(\".\"+h.itemTextClassName),p=c.node()&&o.bBox(c.node()).width,d=Math.max(p+h.textPadX,h.minWidth),g=e.font.size*f,v=l.lineCount(c),m=Math.max(g*v,h.minHeight)+h.textOffsetY;m=Math.ceil(m),d=Math.ceil(d),r.widths[a]=d,r.heights[a]=m,r.height1=Math.max(r.height1,m),r.width1=Math.max(r.width1,d),u?(r.totalWidth=Math.max(r.totalWidth,d),r.openWidth=r.totalWidth,r.totalHeight+=m+h.gapButton,r.openHeight+=m+h.gapButton):(r.totalWidth+=d+h.gapButton,r.openWidth+=d+h.gapButton,r.totalHeight=Math.max(r.totalHeight,m),r.openHeight=r.totalHeight)}),u?r.totalHeight-=h.gapButton:r.totalWidth-=h.gapButton,r.headerWidth=r.width1+h.arrowPadX,r.headerHeight=r.height1,\"dropdown\"===e.type&&(u?(r.width1+=h.arrowPadX,r.totalHeight=r.height1):r.totalWidth=r.width1,r.totalWidth+=h.arrowPadX),a.remove();var p=r.totalWidth+e.pad.l+e.pad.r,d=r.totalHeight+e.pad.t+e.pad.b,g=t._fullLayout._size;r.lx=g.l+g.w*e.x,r.ly=g.t+g.h*(1-e.y);var v=\"left\";c.isRightAnchor(e)&&(r.lx-=p,v=\"right\"),c.isCenterAnchor(e)&&(r.lx-=p/2,v=\"center\");var m=\"top\";c.isBottomAnchor(e)&&(r.ly-=d,m=\"bottom\"),c.isMiddleAnchor(e)&&(r.ly-=d/2,m=\"middle\"),r.totalWidth=Math.ceil(r.totalWidth),r.totalHeight=Math.ceil(r.totalHeight),r.lx=Math.round(r.lx),r.ly=Math.round(r.ly),i.autoMargin(t,T(e),{x:e.x,y:e.y,l:p*({right:1,center:.5}[v]||0),r:p*({left:1,center:.5}[v]||0),b:d*({top:1,middle:.5}[m]||0),t:d*({bottom:1,middle:.5}[m]||0)})}function T(t){return h.autoMarginIdRoot+t._index}function S(t,e,r,n){n=n||{};var i=t.select(\".\"+h.itemRectClassName),a=t.select(\".\"+h.itemTextClassName),s=e.borderwidth,c=r.index,u=e._dims;o.setTranslate(t,s+r.x,s+r.y);var p=-1!==[\"up\",\"down\"].indexOf(e.direction),d=n.height||(p?u.heights[c]:u.height1);i.attr({x:0,y:0,width:n.width||(p?u.width1:u.widths[c]),height:d});var g=e.font.size*f,v=(l.lineCount(a)-1)*g/2;l.positionText(a,h.textOffsetX,d/2-v+h.textOffsetY),p?r.y+=u.heights[c]+r.yPad:r.x+=u.widths[c]+r.xPad,r.index++}function E(t,e){t.attr(h.menuIndexAttrName,e||\"-1\").selectAll(\"g.\"+h.dropdownButtonClassName).remove()}e.exports=function(t){var e=t._fullLayout,r=s.filterVisible(e[h.name]);function a(e){i.autoMargin(t,T(e))}var o=e._menulayer.selectAll(\"g.\"+h.containerClassName).data(r.length>0?[0]:[]);if(o.enter().append(\"g\").classed(h.containerClassName,!0).style(\"cursor\",\"pointer\"),o.exit().each(function(){n.select(this).selectAll(\"g.\"+h.headerGroupClassName).each(a)}).remove(),0!==r.length){var l=o.selectAll(\"g.\"+h.headerGroupClassName).data(r,d);l.enter().append(\"g\").classed(h.headerGroupClassName,!0);for(var c=s.ensureSingle(o,\"g\",h.dropdownButtonGroupClassName,function(t){t.style(\"pointer-events\",\"all\")}),u=0;u<r.length;u++){var f=r[u];A(t,f)}var x=\"updatemenus\"+e._uid,b=new p(t,c,x);l.enter().size()&&(c.node().parentNode.appendChild(c.node()),c.call(E)),l.exit().each(function(t){c.call(E),a(t)}).remove(),l.each(function(e){var r=n.select(this),a=\"dropdown\"===e.type?c:null;i.manageCommandObserver(t,e,e.buttons,function(n){v(t,e,e.buttons[n.index],r,a,b,n.index,!0)}),\"dropdown\"===e.type?(m(t,r,c,b,e),g(c,e)&&y(t,r,c,b,e)):y(t,r,null,null,e)})}}},{\"../../constants/alignment\":668,\"../../lib\":696,\"../../lib/svg_text_utils\":720,\"../../plot_api/plot_template\":734,\"../../plots/plots\":808,\"../color\":570,\"../drawing\":595,\"../legend/anchor_utils\":622,\"./constants\":663,\"./scrollbox\":667,d3:148}],666:[function(t,e,r){arguments[4][660][0].apply(r,arguments)},{\"./attributes\":662,\"./constants\":663,\"./defaults\":664,\"./draw\":665,dup:660}],667:[function(t,e,r){\"use strict\";e.exports=s;var n=t(\"d3\"),i=t(\"../color\"),a=t(\"../drawing\"),o=t(\"../../lib\");function s(t,e,r){this.gd=t,this.container=e,this.id=r,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll(\"rect.scrollbox-bg\").data([0]),this.bg.exit().on(\".drag\",null).on(\"wheel\",null).remove(),this.bg.enter().append(\"rect\").classed(\"scrollbox-bg\",!0).style(\"pointer-events\",\"all\").attr({opacity:0,x:0,y:0,width:0,height:0})}s.barWidth=2,s.barLength=20,s.barRadius=2,s.barPad=1,s.barColor=\"#808BA4\",s.prototype.enable=function(t,e,r){var o=this.gd._fullLayout,l=o.width,c=o.height;this.position=t;var u,f,h,p,d=this.position.l,g=this.position.w,v=this.position.t,m=this.position.h,y=this.position.direction,x=\"down\"===y,b=\"left\"===y,_=\"up\"===y,w=g,k=m;x||b||\"right\"===y||_||(this.position.direction=\"down\",x=!0),x||_?(f=(u=d)+w,x?(h=v,k=(p=Math.min(h+k,c))-h):k=(p=v+k)-(h=Math.max(p-k,0))):(p=(h=v)+k,b?w=(f=d+w)-(u=Math.max(f-w,0)):(u=d,w=(f=Math.min(u+w,l))-u)),this._box={l:u,t:h,w:w,h:k};var M=g>w,A=s.barLength+2*s.barPad,T=s.barWidth+2*s.barPad,S=d,E=v+m;E+T>c&&(E=c-T);var C=this.container.selectAll(\"rect.scrollbar-horizontal\").data(M?[0]:[]);C.exit().on(\".drag\",null).remove(),C.enter().append(\"rect\").classed(\"scrollbar-horizontal\",!0).call(i.fill,s.barColor),M?(this.hbar=C.attr({rx:s.barRadius,ry:s.barRadius,x:S,y:E,width:A,height:T}),this._hbarXMin=S+A/2,this._hbarTranslateMax=w-A):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var L=m>k,z=s.barWidth+2*s.barPad,O=s.barLength+2*s.barPad,I=d+g,P=v;I+z>l&&(I=l-z);var D=this.container.selectAll(\"rect.scrollbar-vertical\").data(L?[0]:[]);D.exit().on(\".drag\",null).remove(),D.enter().append(\"rect\").classed(\"scrollbar-vertical\",!0).call(i.fill,s.barColor),L?(this.vbar=D.attr({rx:s.barRadius,ry:s.barRadius,x:I,y:P,width:z,height:O}),this._vbarYMin=P+O/2,this._vbarTranslateMax=k-O):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var R=this.id,B=u-.5,F=L?f+z+.5:f+.5,N=h-.5,j=M?p+T+.5:p+.5,V=o._topdefs.selectAll(\"#\"+R).data(M||L?[0]:[]);if(V.exit().remove(),V.enter().append(\"clipPath\").attr(\"id\",R).append(\"rect\"),M||L?(this._clipRect=V.select(\"rect\").attr({x:Math.floor(B),y:Math.floor(N),width:Math.ceil(F)-Math.floor(B),height:Math.ceil(j)-Math.floor(N)}),this.container.call(a.setClipUrl,R),this.bg.attr({x:d,y:v,width:g,height:m})):(this.bg.attr({width:0,height:0}),this.container.on(\"wheel\",null).on(\".drag\",null).call(a.setClipUrl,null),delete this._clipRect),M||L){var U=n.behavior.drag().on(\"dragstart\",function(){n.event.sourceEvent.preventDefault()}).on(\"drag\",this._onBoxDrag.bind(this));this.container.on(\"wheel\",null).on(\"wheel\",this._onBoxWheel.bind(this)).on(\".drag\",null).call(U);var q=n.behavior.drag().on(\"dragstart\",function(){n.event.sourceEvent.preventDefault(),n.event.sourceEvent.stopPropagation()}).on(\"drag\",this._onBarDrag.bind(this));M&&this.hbar.on(\".drag\",null).call(q),L&&this.vbar.on(\".drag\",null).call(q)}this.setTranslate(e,r)},s.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on(\"wheel\",null).on(\".drag\",null).call(a.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(\".drag\",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(\".drag\",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)},s.prototype._onBoxDrag=function(){var t=this.translateX,e=this.translateY;this.hbar&&(t-=n.event.dx),this.vbar&&(e-=n.event.dy),this.setTranslate(t,e)},s.prototype._onBoxWheel=function(){var t=this.translateX,e=this.translateY;this.hbar&&(t+=n.event.deltaY),this.vbar&&(e+=n.event.deltaY),this.setTranslate(t,e)},s.prototype._onBarDrag=function(){var t=this.translateX,e=this.translateY;if(this.hbar){var r=t+this._hbarXMin,i=r+this._hbarTranslateMax;t=(o.constrain(n.event.x,r,i)-r)/(i-r)*(this.position.w-this._box.w)}if(this.vbar){var a=e+this._vbarYMin,s=a+this._vbarTranslateMax;e=(o.constrain(n.event.y,a,s)-a)/(s-a)*(this.position.h-this._box.h)}this.setTranslate(t,e)},s.prototype.setTranslate=function(t,e){var r=this.position.w-this._box.w,n=this.position.h-this._box.h;if(t=o.constrain(t||0,0,r),e=o.constrain(e||0,0,n),this.translateX=t,this.translateY=e,this.container.call(a.setTranslate,this._box.l-this.position.l-t,this._box.t-this.position.t-e),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+t-.5),y:Math.floor(this.position.t+e-.5)}),this.hbar){var i=t/r;this.hbar.call(a.setTranslate,t+i*this._hbarTranslateMax,e)}if(this.vbar){var s=e/n;this.vbar.call(a.setTranslate,t,e+s*this._vbarTranslateMax)}}},{\"../../lib\":696,\"../color\":570,\"../drawing\":595,d3:148}],668:[function(t,e,r){\"use strict\";e.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,MID_SHIFT:.35,OPPOSITE_SIDE:{left:\"right\",right:\"left\",top:\"bottom\",bottom:\"top\"}}},{}],669:[function(t,e,r){\"use strict\";e.exports={COMPARISON_OPS:[\"=\",\"!=\",\"<\",\">=\",\">\",\"<=\"],COMPARISON_OPS2:[\"=\",\"<\",\">=\",\">\",\"<=\"],INTERVAL_OPS:[\"[]\",\"()\",\"[)\",\"(]\",\"][\",\")(\",\"](\",\")[\"],SET_OPS:[\"{}\",\"}{\"],CONSTRAINT_REDUCTION:{\"=\":\"=\",\"<\":\"<\",\"<=\":\"<\",\">\":\">\",\">=\":\">\",\"[]\":\"[]\",\"()\":\"[]\",\"[)\":\"[]\",\"(]\":\"[]\",\"][\":\"][\",\")(\":\"][\",\"](\":\"][\",\")[\":\"][\"}}},{}],670:[function(t,e,r){\"use strict\";e.exports={solid:[[],0],dot:[[.5,1],200],dash:[[.5,1],50],longdash:[[.5,1],10],dashdot:[[.5,.625,.875,1],50],longdashdot:[[.5,.7,.8,1],10]}},{}],671:[function(t,e,r){\"use strict\";e.exports={circle:\"\\u25cf\",\"circle-open\":\"\\u25cb\",square:\"\\u25a0\",\"square-open\":\"\\u25a1\",diamond:\"\\u25c6\",\"diamond-open\":\"\\u25c7\",cross:\"+\",x:\"\\u274c\"}},{}],672:[function(t,e,r){\"use strict\";e.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DBLCLICKDELAY:300,DESELECTDIM:.2}},{}],673:[function(t,e,r){\"use strict\";e.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE/1e4,ONEAVGYEAR:315576e5,ONEAVGMONTH:26298e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,EPOCHJD:2440587.5,ALMOST_EQUAL:1-1e-6,LOG_CLIP:10,MINUS_SIGN:\"\\u2212\"}},{}],674:[function(t,e,r){\"use strict\";r.xmlns=\"http://www.w3.org/2000/xmlns/\",r.svg=\"http://www.w3.org/2000/svg\",r.xlink=\"http://www.w3.org/1999/xlink\",r.svgAttrs={xmlns:r.svg,\"xmlns:xlink\":r.xlink}},{}],675:[function(t,e,r){\"use strict\";r.version=\"1.42.5\",t(\"es6-promise\").polyfill(),t(\"../build/plotcss\"),t(\"./fonts/mathjax_config\");for(var n=t(\"./registry\"),i=r.register=n.register,a=t(\"./plot_api\"),o=Object.keys(a),s=0;s<o.length;s++){var l=o[s];r[l]=a[l],i({moduleType:\"apiMethod\",name:l,fn:a[l]})}i(t(\"./traces/scatter\")),i([t(\"./components/fx\"),t(\"./components/legend\"),t(\"./components/annotations\"),t(\"./components/annotations3d\"),t(\"./components/shapes\"),t(\"./components/images\"),t(\"./components/updatemenus\"),t(\"./components/sliders\"),t(\"./components/rangeslider\"),t(\"./components/rangeselector\"),t(\"./components/grid\"),t(\"./components/errorbars\")]),i([t(\"./locale-en\"),t(\"./locale-en-us\")]),r.Icons=t(\"../build/ploticon\"),r.Plots=t(\"./plots/plots\"),r.Fx=t(\"./components/fx\"),r.Snapshot=t(\"./snapshot\"),r.PlotSchema=t(\"./plot_api/plot_schema\"),r.Queue=t(\"./lib/queue\"),r.d3=t(\"d3\")},{\"../build/plotcss\":1,\"../build/ploticon\":2,\"./components/annotations\":561,\"./components/annotations3d\":566,\"./components/errorbars\":601,\"./components/fx\":612,\"./components/grid\":616,\"./components/images\":621,\"./components/legend\":630,\"./components/rangeselector\":641,\"./components/rangeslider\":647,\"./components/shapes\":655,\"./components/sliders\":660,\"./components/updatemenus\":666,\"./fonts/mathjax_config\":676,\"./lib/queue\":711,\"./locale-en\":725,\"./locale-en-us\":724,\"./plot_api\":729,\"./plot_api/plot_schema\":733,\"./plots/plots\":808,\"./registry\":827,\"./snapshot\":832,\"./traces/scatter\":1055,d3:148,\"es6-promise\":203}],676:[function(t,e,r){\"use strict\";\"undefined\"!=typeof MathJax?(r.MathJax=!0,\"local\"!==(window.PlotlyConfig||{}).MathJaxConfig&&(MathJax.Hub.Config({messageStyle:\"none\",skipStartupTypeset:!0,displayAlign:\"left\",tex2jax:{inlineMath:[[\"$\",\"$\"],[\"\\\\(\",\"\\\\)\"]]}}),MathJax.Hub.Configured())):r.MathJax=!1},{}],677:[function(t,e,r){\"use strict\";var n=t(\"./mod\"),i=n.mod,a=n.modHalf,o=Math.PI,s=2*o;function l(t){return Math.abs(t[1]-t[0])>s-1e-15}function c(t,e){return a(e-t,s)}function u(t,e){if(l(e))return!0;var r,n;e[0]<e[1]?(r=e[0],n=e[1]):(r=e[1],n=e[0]),(r=i(r,s))>(n=i(n,s))&&(n+=s);var a=i(t,s),o=a+s;return a>=r&&a<=n||o>=r&&o<=n}function f(t,e,r,n,i,a,c){i=i||0,a=a||0;var u,f,h,p,d,g=l([r,n]);function v(t,e){return[t*Math.cos(e)+i,a-t*Math.sin(e)]}g?(u=0,f=o,h=s):r<n?(u=r,h=n):(u=n,h=r),t<e?(p=t,d=e):(p=e,d=t);var m,y=Math.abs(h-u)<=o?0:1;function x(t,e,r){return\"A\"+[t,t]+\" \"+[0,y,r]+\" \"+v(t,e)}return g?m=null===p?\"M\"+v(d,u)+x(d,f,0)+x(d,h,0)+\"Z\":\"M\"+v(p,u)+x(p,f,0)+x(p,h,0)+\"ZM\"+v(d,u)+x(d,f,1)+x(d,h,1)+\"Z\":null===p?(m=\"M\"+v(d,u)+x(d,h,0),c&&(m+=\"L0,0Z\")):m=\"M\"+v(p,u)+\"L\"+v(d,u)+x(d,h,0)+\"L\"+v(p,h)+x(p,u,1)+\"Z\",m}e.exports={deg2rad:function(t){return t/180*o},rad2deg:function(t){return t/o*180},angleDelta:c,angleDist:function(t,e){return Math.abs(c(t,e))},isFullCircle:l,isAngleInsideSector:u,isPtInsideSector:function(t,e,r,n){return!!u(e,n)&&(r[0]<r[1]?(i=r[0],a=r[1]):(i=r[1],a=r[0]),t>=i&&t<=a);var i,a},pathArc:function(t,e,r,n,i){return f(null,t,e,r,n,i,0)},pathSector:function(t,e,r,n,i){return f(null,t,e,r,n,i,1)},pathAnnulus:function(t,e,r,n,i,a){return f(t,e,r,n,i,a,1)}}},{\"./mod\":703}],678:[function(t,e,r){\"use strict\";var n=Array.isArray,i=\"undefined\"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer:{isView:function(){return!1}},a=\"undefined\"==typeof DataView?function(){}:DataView;function o(t){return i.isView(t)&&!(t instanceof a)}function s(t){return n(t)||o(t)}r.isTypedArray=o,r.isArrayOrTypedArray=s,r.isArray1D=function(t){return!s(t[0])},r.ensureArray=function(t,e){return n(t)||(t=[]),t.length=e,t},r.concat=function(){var t,e,r,i,a,o,s,l,c=[],u=!0,f=0;for(r=0;r<arguments.length;r++)(o=(i=arguments[r]).length)&&(e?c.push(i):(e=i,a=o),n(i)?t=!1:(u=!1,f?t!==i.constructor&&(t=!1):t=i.constructor),f+=o);if(!f)return[];if(!c.length)return e;if(u)return e.concat.apply(e,c);if(t){for((s=new t(f)).set(e),r=0;r<c.length;r++)i=c[r],s.set(i,a),a+=i.length;return s}for(s=new Array(f),l=0;l<e.length;l++)s[l]=e[l];for(r=0;r<c.length;r++){for(i=c[r],l=0;l<i.length;l++)s[a+l]=i[l];a+=l}return s}},{}],679:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../constants/numerical\").BADNUM,a=/^['\"%,$#\\s']+|[, ]|['\"%,$#\\s']+$/g;e.exports=function(t){return\"string\"==typeof t&&(t=t.replace(a,\"\")),n(t)?Number(t):i}},{\"../constants/numerical\":673,\"fast-isnumeric\":214}],680:[function(t,e,r){\"use strict\";e.exports=function(t){var e=t._fullLayout;e._glcanvas&&e._glcanvas.size()&&e._glcanvas.each(function(t){t.regl&&t.regl.clear({color:!0,depth:!0})})}},{}],681:[function(t,e,r){\"use strict\";e.exports=function(t){t._responsiveChartHandler&&(window.removeEventListener(\"resize\",t._responsiveChartHandler),delete t._responsiveChartHandler)}},{}],682:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"tinycolor2\"),a=t(\"../plots/attributes\"),o=t(\"../components/colorscale/get_scale\"),s=(Object.keys(t(\"../components/colorscale/scales\")),t(\"./nested_property\")),l=t(\"./regex\").counter,c=t(\"../constants/interactions\").DESELECTDIM,u=t(\"./mod\").modHalf,f=t(\"./array\").isArrayOrTypedArray;function h(t,e){var n=r.valObjectMeta[e.valType];if(e.arrayOk&&f(t))return!0;if(n.validateFunction)return n.validateFunction(t,e);var i={},a=i,o={set:function(t){a=t}};return n.coerceFunction(t,o,i,e),a!==i}r.valObjectMeta={data_array:{coerceFunction:function(t,e,r){f(t)?e.set(t):void 0!==r&&e.set(r)}},enumerated:{coerceFunction:function(t,e,r,n){n.coerceNumber&&(t=+t),-1===n.values.indexOf(t)?e.set(r):e.set(t)},validateFunction:function(t,e){e.coerceNumber&&(t=+t);for(var r=e.values,n=0;n<r.length;n++){var i=String(r[n]);if(\"/\"===i.charAt(0)&&\"/\"===i.charAt(i.length-1)){if(new RegExp(i.substr(1,i.length-2)).test(t))return!0}else if(t===r[n])return!0}return!1}},boolean:{coerceFunction:function(t,e,r){!0===t||!1===t?e.set(t):e.set(r)}},number:{coerceFunction:function(t,e,r,i){!n(t)||void 0!==i.min&&t<i.min||void 0!==i.max&&t>i.max?e.set(r):e.set(+t)}},integer:{coerceFunction:function(t,e,r,i){t%1||!n(t)||void 0!==i.min&&t<i.min||void 0!==i.max&&t>i.max?e.set(r):e.set(+t)}},string:{coerceFunction:function(t,e,r,n){if(\"string\"!=typeof t){var i=\"number\"==typeof t;!0!==n.strict&&i?e.set(String(t)):e.set(r)}else n.noBlank&&!t?e.set(r):e.set(t)}},color:{coerceFunction:function(t,e,r){i(t).isValid()?e.set(t):e.set(r)}},colorlist:{coerceFunction:function(t,e,r){Array.isArray(t)&&t.length&&t.every(function(t){return i(t).isValid()})?e.set(t):e.set(r)}},colorscale:{coerceFunction:function(t,e,r){e.set(o(t,r))}},angle:{coerceFunction:function(t,e,r){\"auto\"===t?e.set(\"auto\"):n(t)?e.set(u(+t,360)):e.set(r)}},subplotid:{coerceFunction:function(t,e,r,n){var i=n.regex||l(r);\"string\"==typeof t&&i.test(t)?e.set(t):e.set(r)},validateFunction:function(t,e){var r=e.dflt;return t===r||\"string\"==typeof t&&!!l(r).test(t)}},flaglist:{coerceFunction:function(t,e,r,n){if(\"string\"==typeof t)if(-1===(n.extras||[]).indexOf(t)){for(var i=t.split(\"+\"),a=0;a<i.length;){var o=i[a];-1===n.flags.indexOf(o)||i.indexOf(o)<a?i.splice(a,1):a++}i.length?e.set(i.join(\"+\")):e.set(r)}else e.set(t);else e.set(r)}},any:{coerceFunction:function(t,e,r){void 0===t?e.set(r):e.set(t)}},info_array:{coerceFunction:function(t,e,n,i){function a(t,e,n){var i,a={set:function(t){i=t}};return void 0===n&&(n=e.dflt),r.valObjectMeta[e.valType].coerceFunction(t,a,n,e),i}var o=2===i.dimensions||\"1-2\"===i.dimensions&&Array.isArray(t)&&Array.isArray(t[0]);if(Array.isArray(t)){var s,l,c,u,f,h,p=i.items,d=[],g=Array.isArray(p),v=g&&o&&Array.isArray(p[0]),m=o&&g&&!v,y=g&&!m?p.length:t.length;if(n=Array.isArray(n)?n:[],o)for(s=0;s<y;s++)for(d[s]=[],c=Array.isArray(t[s])?t[s]:[],f=m?p.length:g?p[s].length:c.length,l=0;l<f;l++)u=m?p[l]:g?p[s][l]:p,void 0!==(h=a(c[l],u,(n[s]||[])[l]))&&(d[s][l]=h);else for(s=0;s<y;s++)void 0!==(h=a(t[s],g?p[s]:p,n[s]))&&(d[s]=h);e.set(d)}else e.set(n)},validateFunction:function(t,e){if(!Array.isArray(t))return!1;var r=e.items,n=Array.isArray(r),i=2===e.dimensions;if(!e.freeLength&&t.length!==r.length)return!1;for(var a=0;a<t.length;a++)if(i){if(!Array.isArray(t[a])||!e.freeLength&&t[a].length!==r[a].length)return!1;for(var o=0;o<t[a].length;o++)if(!h(t[a][o],n?r[a][o]:r))return!1}else if(!h(t[a],n?r[a]:r))return!1;return!0}}},r.coerce=function(t,e,n,i,a){var o=s(n,i).get(),l=s(t,i),c=s(e,i),u=l.get(),p=e._template;if(void 0===u&&p&&(u=s(p,i).get(),p=0),void 0===a&&(a=o.dflt),o.arrayOk&&f(u))return c.set(u),u;var d=r.valObjectMeta[o.valType].coerceFunction;d(u,c,a,o);var g=c.get();return p&&g===a&&!h(u,o)&&(d(u=s(p,i).get(),c,a,o),g=c.get()),g},r.coerce2=function(t,e,n,i,a){var o=s(t,i),l=r.coerce(t,e,n,i,a),c=o.get();return null!=c&&l},r.coerceFont=function(t,e,r){var n={};return r=r||{},n.family=t(e+\".family\",r.family),n.size=t(e+\".size\",r.size),n.color=t(e+\".color\",r.color),n},r.coerceHoverinfo=function(t,e,n){var i,o=e._module.attributes,s=o.hoverinfo?o:a,l=s.hoverinfo;if(1===n._dataLength){var c=\"all\"===l.dflt?l.flags.slice():l.dflt.split(\"+\");c.splice(c.indexOf(\"name\"),1),i=c.join(\"+\")}return r.coerce(t,e,s,\"hoverinfo\",i)},r.coerceSelectionMarkerOpacity=function(t,e){if(t.marker){var r,n,i=t.marker.opacity;if(void 0!==i)f(i)||t.selected||t.unselected||(r=i,n=c*i),e(\"selected.marker.opacity\",r),e(\"unselected.marker.opacity\",n)}},r.validate=h},{\"../components/colorscale/get_scale\":583,\"../components/colorscale/scales\":589,\"../constants/interactions\":672,\"../plots/attributes\":741,\"./array\":678,\"./mod\":703,\"./nested_property\":704,\"./regex\":712,\"fast-isnumeric\":214,tinycolor2:514}],683:[function(t,e,r){\"use strict\";var n,i,a=t(\"d3\"),o=t(\"fast-isnumeric\"),s=t(\"./loggers\"),l=t(\"./mod\").mod,c=t(\"../constants/numerical\"),u=c.BADNUM,f=c.ONEDAY,h=c.ONEHOUR,p=c.ONEMIN,d=c.ONESEC,g=c.EPOCHJD,v=t(\"../registry\"),m=a.time.format.utc,y=/^\\s*(-?\\d\\d\\d\\d|\\d\\d)(-(\\d?\\d)(-(\\d?\\d)([ Tt]([01]?\\d|2[0-3])(:([0-5]\\d)(:([0-5]\\d(\\.\\d+)?))?(Z|z|[+\\-]\\d\\d:?\\d\\d)?)?)?)?)?\\s*$/m,x=/^\\s*(-?\\d\\d\\d\\d|\\d\\d)(-(\\d?\\di?)(-(\\d?\\d)([ Tt]([01]?\\d|2[0-3])(:([0-5]\\d)(:([0-5]\\d(\\.\\d+)?))?(Z|z|[+\\-]\\d\\d:?\\d\\d)?)?)?)?)?\\s*$/m,b=(new Date).getFullYear()-70;function _(t){return t&&v.componentsRegistry.calendars&&\"string\"==typeof t&&\"gregorian\"!==t}function w(t,e){return String(t+Math.pow(10,e)).substr(1)}r.dateTick0=function(t,e){return _(t)?e?v.getComponentMethod(\"calendars\",\"CANONICAL_SUNDAY\")[t]:v.getComponentMethod(\"calendars\",\"CANONICAL_TICK\")[t]:e?\"2000-01-02\":\"2000-01-01\"},r.dfltRange=function(t){return _(t)?v.getComponentMethod(\"calendars\",\"DFLTRANGE\")[t]:[\"2000-01-01\",\"2001-01-01\"]},r.isJSDate=function(t){return\"object\"==typeof t&&null!==t&&\"function\"==typeof t.getTime},r.dateTime2ms=function(t,e){if(r.isJSDate(t)){var a=t.getTimezoneOffset()*p,o=(t.getUTCMinutes()-t.getMinutes())*p+(t.getUTCSeconds()-t.getSeconds())*d+(t.getUTCMilliseconds()-t.getMilliseconds());if(o){var s=3*p;a=a-s/2+l(o-a+s/2,s)}return(t=Number(t)-a)>=n&&t<=i?t:u}if(\"string\"!=typeof t&&\"number\"!=typeof t)return u;t=String(t);var c=_(e),m=t.charAt(0);!c||\"G\"!==m&&\"g\"!==m||(t=t.substr(1),e=\"\");var w=c&&\"chinese\"===e.substr(0,7),k=t.match(w?x:y);if(!k)return u;var M=k[1],A=k[3]||\"1\",T=Number(k[5]||1),S=Number(k[7]||0),E=Number(k[9]||0),C=Number(k[11]||0);if(c){if(2===M.length)return u;var L;M=Number(M);try{var z=v.getComponentMethod(\"calendars\",\"getCal\")(e);if(w){var O=\"i\"===A.charAt(A.length-1);A=parseInt(A,10),L=z.newDate(M,z.toMonthIndex(M,A,O),T)}else L=z.newDate(M,Number(A),T)}catch(t){return u}return L?(L.toJD()-g)*f+S*h+E*p+C*d:u}M=2===M.length?(Number(M)+2e3-b)%100+b:Number(M),A-=1;var I=new Date(Date.UTC(2e3,A,T,S,E));return I.setUTCFullYear(M),I.getUTCMonth()!==A?u:I.getUTCDate()!==T?u:I.getTime()+C*d},n=r.MIN_MS=r.dateTime2ms(\"-9999\"),i=r.MAX_MS=r.dateTime2ms(\"9999-12-31 23:59:59.9999\"),r.isDateTime=function(t,e){return r.dateTime2ms(t,e)!==u};var k=90*f,M=3*h,A=5*p;function T(t,e,r,n,i){if((e||r||n||i)&&(t+=\" \"+w(e,2)+\":\"+w(r,2),(n||i)&&(t+=\":\"+w(n,2),i))){for(var a=4;i%10==0;)a-=1,i/=10;t+=\".\"+w(i,a)}return t}r.ms2DateTime=function(t,e,r){if(\"number\"!=typeof t||!(t>=n&&t<=i))return u;e||(e=0);var a,o,s,c,y,x,b=Math.floor(10*l(t+.05,1)),w=Math.round(t-b/10);if(_(r)){var S=Math.floor(w/f)+g,E=Math.floor(l(t,f));try{a=v.getComponentMethod(\"calendars\",\"getCal\")(r).fromJD(S).formatDate(\"yyyy-mm-dd\")}catch(t){a=m(\"G%Y-%m-%d\")(new Date(w))}if(\"-\"===a.charAt(0))for(;a.length<11;)a=\"-0\"+a.substr(1);else for(;a.length<10;)a=\"0\"+a;o=e<k?Math.floor(E/h):0,s=e<k?Math.floor(E%h/p):0,c=e<M?Math.floor(E%p/d):0,y=e<A?E%d*10+b:0}else x=new Date(w),a=m(\"%Y-%m-%d\")(x),o=e<k?x.getUTCHours():0,s=e<k?x.getUTCMinutes():0,c=e<M?x.getUTCSeconds():0,y=e<A?10*x.getUTCMilliseconds()+b:0;return T(a,o,s,c,y)},r.ms2DateTimeLocal=function(t){if(!(t>=n+f&&t<=i-f))return u;var e=Math.floor(10*l(t+.05,1)),r=new Date(Math.round(t-e/10));return T(a.time.format(\"%Y-%m-%d\")(r),r.getHours(),r.getMinutes(),r.getSeconds(),10*r.getUTCMilliseconds()+e)},r.cleanDate=function(t,e,n){if(t===u)return e;if(r.isJSDate(t)||\"number\"==typeof t&&isFinite(t)){if(_(n))return s.error(\"JS Dates and milliseconds are incompatible with world calendars\",t),e;if(!(t=r.ms2DateTimeLocal(+t))&&void 0!==e)return e}else if(!r.isDateTime(t,n))return s.error(\"unrecognized date\",t),e;return t};var S=/%\\d?f/g;function E(t,e,r,n){t=t.replace(S,function(t){var r=Math.min(+t.charAt(1)||6,6);return(e/1e3%1+2).toFixed(r).substr(2).replace(/0+$/,\"\")||\"0\"});var i=new Date(Math.floor(e+.05));if(_(n))try{t=v.getComponentMethod(\"calendars\",\"worldCalFmt\")(t,e,n)}catch(t){return\"Invalid\"}return r(t)(i)}var C=[59,59.9,59.99,59.999,59.9999];r.formatDate=function(t,e,r,n,i,a){if(i=_(i)&&i,!e)if(\"y\"===r)e=a.year;else if(\"m\"===r)e=a.month;else{if(\"d\"!==r)return function(t,e){var r=l(t+.05,f),n=w(Math.floor(r/h),2)+\":\"+w(l(Math.floor(r/p),60),2);if(\"M\"!==e){o(e)||(e=0);var i=(100+Math.min(l(t/d,60),C[e])).toFixed(e).substr(1);e>0&&(i=i.replace(/0+$/,\"\").replace(/[\\.]$/,\"\")),n+=\":\"+i}return n}(t,r)+\"\\n\"+E(a.dayMonthYear,t,n,i);e=a.dayMonth+\"\\n\"+a.year}return E(e,t,n,i)};var L=3*f;r.incrementMonth=function(t,e,r){r=_(r)&&r;var n=l(t,f);if(t=Math.round(t-n),r)try{var i=Math.round(t/f)+g,a=v.getComponentMethod(\"calendars\",\"getCal\")(r),o=a.fromJD(i);return e%12?a.add(o,e,\"m\"):a.add(o,e/12,\"y\"),(o.toJD()-g)*f+n}catch(e){s.error(\"invalid ms \"+t+\" in calendar \"+r)}var c=new Date(t+L);return c.setUTCMonth(c.getUTCMonth()+e)+n-L},r.findExactDates=function(t,e){for(var r,n,i=0,a=0,s=0,l=0,c=_(e)&&v.getComponentMethod(\"calendars\",\"getCal\")(e),u=0;u<t.length;u++)if(n=t[u],o(n)){if(!(n%f))if(c)try{1===(r=c.fromJD(n/f+g)).day()?1===r.month()?i++:a++:s++}catch(t){}else 1===(r=new Date(n)).getUTCDate()?0===r.getUTCMonth()?i++:a++:s++}else l++;s+=a+=i;var h=t.length-l;return{exactYears:i/h,exactMonths:a/h,exactDays:s/h}}},{\"../constants/numerical\":673,\"../registry\":827,\"./loggers\":700,\"./mod\":703,d3:148,\"fast-isnumeric\":214}],684:[function(t,e,r){\"use strict\";var n=t(\"events\").EventEmitter,i={init:function(t){if(t._ev instanceof n)return t;var e=new n,r=new n;return t._ev=e,t._internalEv=r,t.on=e.on.bind(e),t.once=e.once.bind(e),t.removeListener=e.removeListener.bind(e),t.removeAllListeners=e.removeAllListeners.bind(e),t._internalOn=r.on.bind(r),t._internalOnce=r.once.bind(r),t._removeInternalListener=r.removeListener.bind(r),t._removeAllInternalListeners=r.removeAllListeners.bind(r),t.emit=function(n,i){\"undefined\"!=typeof jQuery&&jQuery(t).trigger(n,i),e.emit(n,i),r.emit(n,i)},t},triggerHandler:function(t,e,r){var n,i;\"undefined\"!=typeof jQuery&&(n=jQuery(t).triggerHandler(e,r));var a=t._ev;if(!a)return n;var o,s=a._events[e];if(!s)return n;function l(t){return t.listener?(a.removeListener(e,t.listener),t.fired?void 0:(t.fired=!0,t.listener.apply(a,[r]))):t.apply(a,[r])}for(s=Array.isArray(s)?s:[s],o=0;o<s.length-1;o++)l(s[o]);return i=l(s[o]),void 0!==n?n:i},purge:function(t){return delete t._ev,delete t.on,delete t.once,delete t.removeListener,delete t.removeAllListeners,delete t.emit,delete t._ev,delete t._internalEv,delete t._internalOn,delete t._internalOnce,delete t._removeInternalListener,delete t._removeAllInternalListeners,t}};e.exports=i},{events:92}],685:[function(t,e,r){\"use strict\";var n=t(\"./is_plain_object.js\"),i=Array.isArray;function a(t,e,r,o){var s,l,c,u,f,h,p=t[0],d=t.length;if(2===d&&i(p)&&i(t[1])&&0===p.length){if(function(t,e){var r,n;for(r=0;r<t.length;r++){if(null!==(n=t[r])&&\"object\"==typeof n)return!1;void 0!==n&&(e[r]=n)}return!0}(t[1],p))return p;p.splice(0,p.length)}for(var g=1;g<d;g++)for(l in s=t[g])c=p[l],u=s[l],o&&i(u)?p[l]=u:e&&u&&(n(u)||(f=i(u)))?(f?(f=!1,h=c&&i(c)?c:[]):h=c&&n(c)?c:{},p[l]=a([h,u],e,r,o)):(\"undefined\"!=typeof u||r)&&(p[l]=u);return p}r.extendFlat=function(){return a(arguments,!1,!1,!1)},r.extendDeep=function(){return a(arguments,!0,!1,!1)},r.extendDeepAll=function(){return a(arguments,!0,!0,!1)},r.extendDeepNoArrays=function(){return a(arguments,!0,!1,!0)}},{\"./is_plain_object.js\":697}],686:[function(t,e,r){\"use strict\";e.exports=function(t){for(var e={},r=[],n=0,i=0;i<t.length;i++){var a=t[i];1!==e[a]&&(e[a]=1,r[n++]=a)}return r}},{}],687:[function(t,e,r){\"use strict\";function n(t){return!0===t.visible}function i(t){return!0===t[0].trace.visible}e.exports=function(t){for(var e,r=(e=t,Array.isArray(e)&&Array.isArray(e[0])&&e[0][0]&&e[0][0].trace?i:n),a=[],o=0;o<t.length;o++){var s=t[o];r(s)&&a.push(s)}return a}},{}],688:[function(t,e,r){\"use strict\";var n=t(\"country-regex\"),i=t(\"../lib\"),a=Object.keys(n),o={\"ISO-3\":i.identity,\"USA-states\":i.identity,\"country names\":function(t){for(var e=0;e<a.length;e++){var r=a[e],o=new RegExp(n[r]);if(o.test(t.trim().toLowerCase()))return r}return i.log(\"Unrecognized country name: \"+t+\".\"),!1}};r.locationToFeature=function(t,e,r){if(!e||\"string\"!=typeof e)return!1;var n=function(t,e){return(0,o[t])(e)}(t,e);if(n){for(var a=0;a<r.length;a++){var s=r[a];if(s.id===n)return s}i.log([\"Location with id\",n,\"does not have a matching topojson feature at this resolution.\"].join(\" \"))}return!1}},{\"../lib\":696,\"country-regex\":122}],689:[function(t,e,r){\"use strict\";var n=t(\"../constants/numerical\").BADNUM;r.calcTraceToLineCoords=function(t){for(var e=t[0].trace.connectgaps,r=[],i=[],a=0;a<t.length;a++){var o=t[a].lonlat;o[0]!==n?i.push(o):!e&&i.length>0&&(r.push(i),i=[])}return i.length>0&&r.push(i),r},r.makeLine=function(t){return 1===t.length?{type:\"LineString\",coordinates:t[0]}:{type:\"MultiLineString\",coordinates:t}},r.makePolygon=function(t){if(1===t.length)return{type:\"Polygon\",coordinates:t};for(var e=new Array(t.length),r=0;r<t.length;r++)e[r]=[t[r]];return{type:\"MultiPolygon\",coordinates:e}},r.makeBlank=function(){return{type:\"Point\",coordinates:[]}}},{\"../constants/numerical\":673}],690:[function(t,e,r){\"use strict\";var n,i,a,o=t(\"./mod\").mod;function s(t,e,r,n,i,a,o,s){var l=r-t,c=i-t,u=o-i,f=n-e,h=a-e,p=s-a,d=l*p-u*f;if(0===d)return null;var g=(c*p-u*h)/d,v=(c*f-l*h)/d;return v<0||v>1||g<0||g>1?null:{x:t+l*g,y:e+f*g}}function l(t,e,r,n,i){var a=n*t+i*e;if(a<0)return n*n+i*i;if(a>r){var o=n-t,s=i-e;return o*o+s*s}var l=n*e-i*t;return l*l/r}r.segmentsIntersect=s,r.segmentDistance=function(t,e,r,n,i,a,o,c){if(s(t,e,r,n,i,a,o,c))return 0;var u=r-t,f=n-e,h=o-i,p=c-a,d=u*u+f*f,g=h*h+p*p,v=Math.min(l(u,f,d,i-t,a-e),l(u,f,d,o-t,c-e),l(h,p,g,t-i,e-a),l(h,p,g,r-i,n-a));return Math.sqrt(v)},r.getTextLocation=function(t,e,r,s){if(t===i&&s===a||(n={},i=t,a=s),n[r])return n[r];var l=t.getPointAtLength(o(r-s/2,e)),c=t.getPointAtLength(o(r+s/2,e)),u=Math.atan((c.y-l.y)/(c.x-l.x)),f=t.getPointAtLength(o(r,e)),h={x:(4*f.x+l.x+c.x)/6,y:(4*f.y+l.y+c.y)/6,theta:u};return n[r]=h,h},r.clearLocationCache=function(){i=null},r.getVisibleSegment=function(t,e,r){var n,i,a=e.left,o=e.right,s=e.top,l=e.bottom,c=0,u=t.getTotalLength(),f=u;function h(e){var r=t.getPointAtLength(e);0===e?n=r:e===u&&(i=r);var c=r.x<a?a-r.x:r.x>o?r.x-o:0,f=r.y<s?s-r.y:r.y>l?r.y-l:0;return Math.sqrt(c*c+f*f)}for(var p=h(c);p;){if((c+=p+r)>f)return;p=h(c)}for(p=h(f);p;){if(c>(f-=p+r))return;p=h(f)}return{min:c,max:f,len:f-c,total:u,isClosed:0===c&&f===u&&Math.abs(n.x-i.x)<.1&&Math.abs(n.y-i.y)<.1}},r.findPointOnPath=function(t,e,r,n){for(var i,a,o,s=(n=n||{}).pathLength||t.getTotalLength(),l=n.tolerance||.001,c=n.iterationLimit||30,u=t.getPointAtLength(0)[r]>t.getPointAtLength(s)[r]?-1:1,f=0,h=0,p=s;f<c;){if(i=(h+p)/2,o=(a=t.getPointAtLength(i))[r]-e,Math.abs(o)<l)return a;u*o>0?p=i:h=i,f++}return a}},{\"./mod\":703}],691:[function(t,e,r){\"use strict\";e.exports=function(t){var e;if(\"string\"==typeof t){if(null===(e=document.getElementById(t)))throw new Error(\"No DOM element with id '\"+t+\"' exists on the page.\");return e}if(null==t)throw new Error(\"DOM element provided is null or undefined\");return t}},{}],692:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"tinycolor2\"),a=t(\"color-normalize\"),o=t(\"../components/colorscale\"),s=t(\"../components/color/attributes\").defaultLine,l=t(\"./array\").isArrayOrTypedArray,c=a(s),u=1;function f(t,e){var r=t;return r[3]*=e,r}function h(t){if(n(t))return c;var e=a(t);return e.length?e:c}function p(t){return n(t)?t:u}e.exports={formatColor:function(t,e,r){var n,i,s,d,g,v=t.color,m=l(v),y=l(e),x=[];if(n=void 0!==t.colorscale?o.makeColorScaleFunc(o.extractScale(t.colorscale,t.cmin,t.cmax)):h,i=m?function(t,e){return void 0===t[e]?c:a(n(t[e]))}:h,s=y?function(t,e){return void 0===t[e]?u:p(t[e])}:p,m||y)for(var b=0;b<r;b++)d=i(v,b),g=s(e,b),x[b]=f(d,g);else x=f(a(v),e);return x},parseColorScale:function(t,e){return void 0===e&&(e=1),t.map(function(t){var r=t[0],n=i(t[1]).toRgb();return{index:r,rgb:[n.r,n.g,n.b,e]}})}}},{\"../components/color/attributes\":569,\"../components/colorscale\":585,\"./array\":678,\"color-normalize\":108,\"fast-isnumeric\":214,tinycolor2:514}],693:[function(t,e,r){\"use strict\";var n=t(\"./identity\");function i(t){return[t]}e.exports={keyFun:function(t){return t.key},repeat:i,descend:n,wrap:i,unwrap:function(t){return t[0]}}},{\"./identity\":695}],694:[function(t,e,r){\"use strict\";var n=t(\"superscript-text\"),i=t(\"./svg_text_utils\").convertEntities;e.exports=function(t){return\"\"+i(function(t){return t.replace(/\\<.*\\>/g,\"\")}(function(t){for(var e=0;(e=t.indexOf(\"<sup>\",e))>=0;){var r=t.indexOf(\"</sup>\",e);if(r<e)break;t=t.slice(0,e)+n(t.slice(e+5,r))+t.slice(r+6)}return t}(t.replace(/\\<br\\>/g,\"\\n\"))))}},{\"./svg_text_utils\":720,\"superscript-text\":507}],695:[function(t,e,r){\"use strict\";e.exports=function(t){return t}},{}],696:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"fast-isnumeric\"),a=t(\"../constants/numerical\"),o=a.FP_SAFE,s=a.BADNUM,l=e.exports={};l.nestedProperty=t(\"./nested_property\"),l.keyedContainer=t(\"./keyed_container\"),l.relativeAttr=t(\"./relative_attr\"),l.isPlainObject=t(\"./is_plain_object\"),l.toLogRange=t(\"./to_log_range\"),l.relinkPrivateKeys=t(\"./relink_private\");var c=t(\"./array\");l.isTypedArray=c.isTypedArray,l.isArrayOrTypedArray=c.isArrayOrTypedArray,l.isArray1D=c.isArray1D,l.ensureArray=c.ensureArray,l.concat=c.concat;var u=t(\"./mod\");l.mod=u.mod,l.modHalf=u.modHalf;var f=t(\"./coerce\");l.valObjectMeta=f.valObjectMeta,l.coerce=f.coerce,l.coerce2=f.coerce2,l.coerceFont=f.coerceFont,l.coerceHoverinfo=f.coerceHoverinfo,l.coerceSelectionMarkerOpacity=f.coerceSelectionMarkerOpacity,l.validate=f.validate;var h=t(\"./dates\");l.dateTime2ms=h.dateTime2ms,l.isDateTime=h.isDateTime,l.ms2DateTime=h.ms2DateTime,l.ms2DateTimeLocal=h.ms2DateTimeLocal,l.cleanDate=h.cleanDate,l.isJSDate=h.isJSDate,l.formatDate=h.formatDate,l.incrementMonth=h.incrementMonth,l.dateTick0=h.dateTick0,l.dfltRange=h.dfltRange,l.findExactDates=h.findExactDates,l.MIN_MS=h.MIN_MS,l.MAX_MS=h.MAX_MS;var p=t(\"./search\");l.findBin=p.findBin,l.sorterAsc=p.sorterAsc,l.sorterDes=p.sorterDes,l.distinctVals=p.distinctVals,l.roundUp=p.roundUp,l.sort=p.sort,l.findIndexOfMin=p.findIndexOfMin;var d=t(\"./stats\");l.aggNums=d.aggNums,l.len=d.len,l.mean=d.mean,l.midRange=d.midRange,l.variance=d.variance,l.stdev=d.stdev,l.interp=d.interp;var g=t(\"./matrix\");l.init2dArray=g.init2dArray,l.transposeRagged=g.transposeRagged,l.dot=g.dot,l.translationMatrix=g.translationMatrix,l.rotationMatrix=g.rotationMatrix,l.rotationXYMatrix=g.rotationXYMatrix,l.apply2DTransform=g.apply2DTransform,l.apply2DTransform2=g.apply2DTransform2;var v=t(\"./angles\");l.deg2rad=v.deg2rad,l.rad2deg=v.rad2deg,l.angleDelta=v.angleDelta,l.angleDist=v.angleDist,l.isFullCircle=v.isFullCircle,l.isAngleInsideSector=v.isAngleInsideSector,l.isPtInsideSector=v.isPtInsideSector,l.pathArc=v.pathArc,l.pathSector=v.pathSector,l.pathAnnulus=v.pathAnnulus;var m=t(\"./geometry2d\");l.segmentsIntersect=m.segmentsIntersect,l.segmentDistance=m.segmentDistance,l.getTextLocation=m.getTextLocation,l.clearLocationCache=m.clearLocationCache,l.getVisibleSegment=m.getVisibleSegment,l.findPointOnPath=m.findPointOnPath;var y=t(\"./extend\");l.extendFlat=y.extendFlat,l.extendDeep=y.extendDeep,l.extendDeepAll=y.extendDeepAll,l.extendDeepNoArrays=y.extendDeepNoArrays;var x=t(\"./loggers\");l.log=x.log,l.warn=x.warn,l.error=x.error;var b=t(\"./regex\");l.counterRegex=b.counter;var _=t(\"./throttle\");function w(t){var e={};for(var r in t)for(var n=t[r],i=0;i<n.length;i++)e[n[i]]=+r;return e}l.throttle=_.throttle,l.throttleDone=_.done,l.clearThrottle=_.clear,l.getGraphDiv=t(\"./get_graph_div\"),l.clearResponsive=t(\"./clear_responsive\"),l.makeTraceGroups=t(\"./make_trace_groups\"),l._=t(\"./localize\"),l.notifier=t(\"./notifier\"),l.filterUnique=t(\"./filter_unique\"),l.filterVisible=t(\"./filter_visible\"),l.pushUnique=t(\"./push_unique\"),l.cleanNumber=t(\"./clean_number\"),l.ensureNumber=function(t){return i(t)?(t=Number(t))<-o||t>o?s:i(t)?Number(t):s:s},l.isIndex=function(t,e){return!(void 0!==e&&t>=e)&&(i(t)&&t>=0&&t%1==0)},l.noop=t(\"./noop\"),l.identity=t(\"./identity\"),l.repeat=function(t,e){for(var r=new Array(e),n=0;n<e;n++)r[n]=t;return r},l.swapAttrs=function(t,e,r,n){r||(r=\"x\"),n||(n=\"y\");for(var i=0;i<e.length;i++){var a=e[i],o=l.nestedProperty(t,a.replace(\"?\",r)),s=l.nestedProperty(t,a.replace(\"?\",n)),c=o.get();o.set(s.get()),s.set(c)}},l.raiseToTop=function(t){t.parentNode.appendChild(t)},l.cancelTransition=function(t){return t.transition().duration(0)},l.constrain=function(t,e,r){return e>r?Math.max(r,Math.min(e,t)):Math.max(e,Math.min(r,t))},l.bBoxIntersect=function(t,e,r){return r=r||0,t.left<=e.right+r&&e.left<=t.right+r&&t.top<=e.bottom+r&&e.top<=t.bottom+r},l.simpleMap=function(t,e,r,n){for(var i=t.length,a=new Array(i),o=0;o<i;o++)a[o]=e(t[o],r,n);return a},l.randstr=function t(e,r,n,i){if(n||(n=16),void 0===r&&(r=24),r<=0)return\"0\";var a,o,s=Math.log(Math.pow(2,r))/Math.log(n),c=\"\";for(a=2;s===1/0;a*=2)s=Math.log(Math.pow(2,r/a))/Math.log(n)*a;var u=s-Math.floor(s);for(a=0;a<Math.floor(s);a++)c=Math.floor(Math.random()*n).toString(n)+c;u&&(o=Math.pow(n,u),c=Math.floor(Math.random()*o).toString(n)+c);var f=parseInt(c,n);return e&&e[c]||f!==1/0&&f>=Math.pow(2,r)?i>10?(l.warn(\"randstr failed uniqueness\"),c):t(e,r,n,(i||0)+1):c},l.OptionControl=function(t,e){t||(t={}),e||(e=\"opt\");var r={optionList:[],_newoption:function(n){n[e]=t,r[n.name]=n,r.optionList.push(n)}};return r[\"_\"+e]=t,r},l.smooth=function(t,e){if((e=Math.round(e)||0)<2)return t;var r,n,i,a,o=t.length,s=2*o,l=2*e-1,c=new Array(l),u=new Array(o);for(r=0;r<l;r++)c[r]=(1-Math.cos(Math.PI*(r+1)/e))/(2*e);for(r=0;r<o;r++){for(a=0,n=0;n<l;n++)(i=r+n+1-e)<-o?i-=s*Math.round(i/s):i>=s&&(i-=s*Math.floor(i/s)),i<0?i=-1-i:i>=o&&(i=s-1-i),a+=t[i]*c[n];u[r]=a}return u},l.syncOrAsync=function(t,e,r){var n;function i(){return l.syncOrAsync(t,e,r)}for(;t.length;)if((n=(0,t.splice(0,1)[0])(e))&&n.then)return n.then(i).then(void 0,l.promiseError);return r&&r(e)},l.stripTrailingSlash=function(t){return\"/\"===t.substr(-1)?t.substr(0,t.length-1):t},l.noneOrAll=function(t,e,r){if(t){var n,i=!1,a=!0;for(n=0;n<r.length;n++)null!=t[r[n]]?i=!0:a=!1;if(i&&!a)for(n=0;n<r.length;n++)t[r[n]]=e[r[n]]}},l.mergeArray=function(t,e,r){if(l.isArrayOrTypedArray(t))for(var n=Math.min(t.length,e.length),i=0;i<n;i++)e[i][r]=t[i]},l.fillArray=function(t,e,r,n){if(n=n||l.identity,l.isArrayOrTypedArray(t))for(var i=0;i<e.length;i++)e[i][r]=n(t[i])},l.castOption=function(t,e,r,n){n=n||l.identity;var i=l.nestedProperty(t,r).get();return l.isArrayOrTypedArray(i)?Array.isArray(e)&&l.isArrayOrTypedArray(i[e[0]])?n(i[e[0]][e[1]]):n(i[e]):i},l.extractOption=function(t,e,r,n){if(r in t)return t[r];var i=l.nestedProperty(e,n).get();return Array.isArray(i)?void 0:i},l.tagSelected=function(t,e,r){var n,i,a=e.selectedpoints,o=e._indexToPoints;o&&(n=w(o));for(var s=0;s<a.length;s++){var c=a[s];if(l.isIndex(c)){var u=n?n[c]:c,f=r?r[u]:u;void 0!==(i=f)&&i<t.length&&(t[f].selected=1)}}},l.selIndices2selPoints=function(t){var e=t.selectedpoints,r=t._indexToPoints;if(r){for(var n=w(r),i=[],a=0;a<e.length;a++){var o=e[a];if(l.isIndex(o)){var s=n[o];l.isIndex(s)&&i.push(s)}}return i}return e},l.getTargetArray=function(t,e){var r=e.target;if(\"string\"==typeof r&&r){var n=l.nestedProperty(t,r).get();return!!Array.isArray(n)&&n}return!!Array.isArray(r)&&r},l.minExtend=function(t,e){var r={};\"object\"!=typeof e&&(e={});var n,i,a,o=Object.keys(t);for(n=0;n<o.length;n++)a=t[i=o[n]],\"_\"!==i.charAt(0)&&\"function\"!=typeof a&&(\"module\"===i?r[i]=a:Array.isArray(a)?r[i]=a.slice(0,3):r[i]=a&&\"object\"==typeof a?l.minExtend(t[i],e[i]):a);for(o=Object.keys(e),n=0;n<o.length;n++)\"object\"==typeof(a=e[i=o[n]])&&i in r&&\"object\"==typeof r[i]||(r[i]=a);return r},l.titleCase=function(t){return t.charAt(0).toUpperCase()+t.substr(1)},l.containsAny=function(t,e){for(var r=0;r<e.length;r++)if(-1!==t.indexOf(e[r]))return!0;return!1},l.isPlotDiv=function(t){var e=n.select(t);return e.node()instanceof HTMLElement&&e.size()&&e.classed(\"js-plotly-plot\")},l.removeElement=function(t){var e=t&&t.parentNode;e&&e.removeChild(t)},l.addStyleRule=function(t,e){l.addRelatedStyleRule(\"global\",t,e)},l.addRelatedStyleRule=function(t,e,r){var n=\"plotly.js-style-\"+t,i=document.getElementById(n);i||((i=document.createElement(\"style\")).setAttribute(\"id\",n),i.appendChild(document.createTextNode(\"\")),document.head.appendChild(i));var a=i.sheet;a.insertRule?a.insertRule(e+\"{\"+r+\"}\",0):a.addRule?a.addRule(e,r,0):l.warn(\"addStyleRule failed\")},l.deleteRelatedStyleRule=function(t){var e=\"plotly.js-style-\"+t,r=document.getElementById(e);r&&l.removeElement(r)},l.isIE=function(){return\"undefined\"!=typeof window.navigator.msSaveBlob},l.isD3Selection=function(t){return t&&\"function\"==typeof t.classed},l.ensureSingle=function(t,e,r,n){var i=t.select(e+(r?\".\"+r:\"\"));if(i.size())return i;var a=t.append(e);return r&&a.classed(r,!0),n&&a.call(n),a},l.ensureSingleById=function(t,e,r,n){var i=t.select(e+\"#\"+r);if(i.size())return i;var a=t.append(e).attr(\"id\",r);return n&&a.call(n),a},l.objectFromPath=function(t,e){for(var r,n=t.split(\".\"),i=r={},a=0;a<n.length;a++){var o=n[a],s=null,l=n[a].match(/(.*)\\[([0-9]+)\\]/);l?(o=l[1],s=l[2],r=r[o]=[],a===n.length-1?r[s]=e:r[s]={},r=r[s]):(a===n.length-1?r[o]=e:r[o]={},r=r[o])}return i};var k=/^([^\\[\\.]+)\\.(.+)?/,M=/^([^\\.]+)\\[([0-9]+)\\](\\.)?(.+)?/;l.expandObjectPaths=function(t){var e,r,n,i,a,o,s;if(\"object\"==typeof t&&!Array.isArray(t))for(r in t)t.hasOwnProperty(r)&&((e=r.match(k))?(i=t[r],n=e[1],delete t[r],t[n]=l.extendDeepNoArrays(t[n]||{},l.objectFromPath(r,l.expandObjectPaths(i))[n])):(e=r.match(M))?(i=t[r],n=e[1],a=parseInt(e[2]),delete t[r],t[n]=t[n]||[],\".\"===e[3]?(s=e[4],o=t[n][a]=t[n][a]||{},l.extendDeepNoArrays(o,l.objectFromPath(s,l.expandObjectPaths(i)))):t[n][a]=l.expandObjectPaths(i)):t[r]=l.expandObjectPaths(t[r]));return t},l.numSeparate=function(t,e,r){if(r||(r=!1),\"string\"!=typeof e||0===e.length)throw new Error(\"Separator string required for formatting!\");\"number\"==typeof t&&(t=String(t));var n=/(\\d+)(\\d{3})/,i=e.charAt(0),a=e.charAt(1),o=t.split(\".\"),s=o[0],l=o.length>1?i+o[1]:\"\";if(a&&(o.length>1||s.length>4||r))for(;n.test(s);)s=s.replace(n,\"$1\"+a+\"$2\");return s+l};var A=/%{([^\\s%{}]*)}/g,T=/^\\w*$/;l.templateString=function(t,e){var r={};return t.replace(A,function(t,n){return T.test(n)?e[n]||\"\":(r[n]=r[n]||l.nestedProperty(e,n).get,r[n]()||\"\")})};l.subplotSort=function(t,e){for(var r=Math.min(t.length,e.length)+1,n=0,i=0,a=0;a<r;a++){var o=t.charCodeAt(a)||0,s=e.charCodeAt(a)||0,l=o>=48&&o<=57,c=s>=48&&s<=57;if(l&&(n=10*n+o-48),c&&(i=10*i+s-48),!l||!c){if(n!==i)return n-i;if(o!==s)return o-s}}return i-n};var S=2e9;l.seedPseudoRandom=function(){S=2e9},l.pseudoRandom=function(){var t=S;return S=(69069*S+1)%4294967296,Math.abs(S-t)<429496729?l.pseudoRandom():S/4294967296}},{\"../constants/numerical\":673,\"./angles\":677,\"./array\":678,\"./clean_number\":679,\"./clear_responsive\":681,\"./coerce\":682,\"./dates\":683,\"./extend\":685,\"./filter_unique\":686,\"./filter_visible\":687,\"./geometry2d\":690,\"./get_graph_div\":691,\"./identity\":695,\"./is_plain_object\":697,\"./keyed_container\":698,\"./localize\":699,\"./loggers\":700,\"./make_trace_groups\":701,\"./matrix\":702,\"./mod\":703,\"./nested_property\":704,\"./noop\":705,\"./notifier\":706,\"./push_unique\":710,\"./regex\":712,\"./relative_attr\":713,\"./relink_private\":714,\"./search\":715,\"./stats\":718,\"./throttle\":721,\"./to_log_range\":722,d3:148,\"fast-isnumeric\":214}],697:[function(t,e,r){\"use strict\";e.exports=function(t){return window&&window.process&&window.process.versions?\"[object Object]\"===Object.prototype.toString.call(t):\"[object Object]\"===Object.prototype.toString.call(t)&&Object.getPrototypeOf(t)===Object.prototype}},{}],698:[function(t,e,r){\"use strict\";var n=t(\"./nested_property\"),i=/^\\w*$/;e.exports=function(t,e,r,a){var o,s,l;r=r||\"name\",a=a||\"value\";var c={};e&&e.length?(l=n(t,e),s=l.get()):s=t,e=e||\"\";var u={};if(s)for(o=0;o<s.length;o++)u[s[o][r]]=o;var f=i.test(a),h={set:function(t,e){var i=null===e?4:0;if(!s){if(!l||4===i)return;s=[],l.set(s)}var o=u[t];if(void 0===o){if(4===i)return;i|=3,o=s.length,u[t]=o}else e!==(f?s[o][a]:n(s[o],a).get())&&(i|=2);var p=s[o]=s[o]||{};return p[r]=t,f?p[a]=e:n(p,a).set(e),null!==e&&(i&=-5),c[o]=c[o]|i,h},get:function(t){if(s){var e=u[t];return void 0===e?void 0:f?s[e][a]:n(s[e],a).get()}},rename:function(t,e){var n=u[t];return void 0===n?h:(c[n]=1|c[n],u[e]=n,delete u[t],s[n][r]=e,h)},remove:function(t){var e=u[t];if(void 0===e)return h;var i=s[e];if(Object.keys(i).length>2)return c[e]=2|c[e],h.set(t,null);if(f){for(o=e;o<s.length;o++)c[o]=3|c[o];for(o=e;o<s.length;o++)u[s[o][r]]--;s.splice(e,1),delete u[t]}else n(i,a).set(null),c[e]=6|c[e];return h},constructUpdate:function(){for(var t,i,o={},l=Object.keys(c),u=0;u<l.length;u++)i=l[u],t=e+\"[\"+i+\"]\",s[i]?(1&c[i]&&(o[t+\".\"+r]=s[i][r]),2&c[i]&&(o[t+\".\"+a]=f?4&c[i]?null:s[i][a]:4&c[i]?null:n(s[i],a).get())):o[t]=null;return o}};return h}},{\"./nested_property\":704}],699:[function(t,e,r){\"use strict\";var n=t(\"../registry\");e.exports=function(t,e){for(var r=t._context.locale,i=0;i<2;i++){for(var a=t._context.locales,o=0;o<2;o++){var s=(a[r]||{}).dictionary;if(s){var l=s[e];if(l)return l}a=n.localeRegistry}var c=r.split(\"-\")[0];if(c===r)break;r=c}return e}},{\"../registry\":827}],700:[function(t,e,r){\"use strict\";var n=t(\"../plot_api/plot_config\"),i=e.exports={};function a(t,e){if(t&&t.apply)try{return void t.apply(console,e)}catch(t){}for(var r=0;r<e.length;r++)try{t(e[r])}catch(t){console.log(e[r])}}i.log=function(){if(n.logging>1){for(var t=[\"LOG:\"],e=0;e<arguments.length;e++)t.push(arguments[e]);a(console.trace||console.log,t)}},i.warn=function(){if(n.logging>0){for(var t=[\"WARN:\"],e=0;e<arguments.length;e++)t.push(arguments[e]);a(console.trace||console.log,t)}},i.error=function(){if(n.logging>0){for(var t=[\"ERROR:\"],e=0;e<arguments.length;e++)t.push(arguments[e]);a(console.error,t)}}},{\"../plot_api/plot_config\":732}],701:[function(t,e,r){\"use strict\";e.exports=function(t,e,r){var n=t.selectAll(\"g.\"+r.replace(/\\s/g,\".\")).data(e,function(t){return t[0].trace.uid});return n.exit().remove(),n.enter().append(\"g\").attr(\"class\",r),n.order(),n}},{}],702:[function(t,e,r){\"use strict\";r.init2dArray=function(t,e){for(var r=new Array(t),n=0;n<t;n++)r[n]=new Array(e);return r},r.transposeRagged=function(t){var e,r,n=0,i=t.length;for(e=0;e<i;e++)n=Math.max(n,t[e].length);var a=new Array(n);for(e=0;e<n;e++)for(a[e]=new Array(i),r=0;r<i;r++)a[e][r]=t[r][e];return a},r.dot=function(t,e){if(!t.length||!e.length||t.length!==e.length)return null;var n,i,a=t.length;if(t[0].length)for(n=new Array(a),i=0;i<a;i++)n[i]=r.dot(t[i],e);else if(e[0].length){var o=r.transposeRagged(e);for(n=new Array(o.length),i=0;i<o.length;i++)n[i]=r.dot(t,o[i])}else for(n=0,i=0;i<a;i++)n+=t[i]*e[i];return n},r.translationMatrix=function(t,e){return[[1,0,t],[0,1,e],[0,0,1]]},r.rotationMatrix=function(t){var e=t*Math.PI/180;return[[Math.cos(e),-Math.sin(e),0],[Math.sin(e),Math.cos(e),0],[0,0,1]]},r.rotationXYMatrix=function(t,e,n){return r.dot(r.dot(r.translationMatrix(e,n),r.rotationMatrix(t)),r.translationMatrix(-e,-n))},r.apply2DTransform=function(t){return function(){var e=arguments;3===e.length&&(e=e[0]);var n=1===arguments.length?e[0]:[e[0],e[1]];return r.dot(t,[n[0],n[1],1]).slice(0,2)}},r.apply2DTransform2=function(t){var e=r.apply2DTransform(t);return function(t){return e(t.slice(0,2)).concat(e(t.slice(2,4)))}}},{}],703:[function(t,e,r){\"use strict\";e.exports={mod:function(t,e){var r=t%e;return r<0?r+e:r},modHalf:function(t,e){return Math.abs(t)>e/2?t-Math.round(t/e)*e:t}}},{}],704:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"./array\").isArrayOrTypedArray;e.exports=function(t,e){if(n(e))e=String(e);else if(\"string\"!=typeof e||\"[-1]\"===e.substr(e.length-4))throw\"bad property string\";for(var r,a,o,l=0,c=e.split(\".\");l<c.length;){if(r=String(c[l]).match(/^([^\\[\\]]*)((\\[\\-?[0-9]*\\])+)$/)){if(r[1])c[l]=r[1];else{if(0!==l)throw\"bad property string\";c.splice(0,1)}for(a=r[2].substr(1,r[2].length-2).split(\"][\"),o=0;o<a.length;o++)l++,c.splice(l,0,Number(a[o]))}l++}return\"object\"!=typeof t?function(t,e,r){return{set:function(){throw\"bad container\"},get:function(){},astr:e,parts:r,obj:t}}(t,e,c):{set:s(t,c,e),get:function t(e,r){return function(){var n,a,o,s,l,c=e;for(s=0;s<r.length-1;s++){if(-1===(n=r[s])){for(a=!0,o=[],l=0;l<c.length;l++)o[l]=t(c[l],r.slice(s+1))(),o[l]!==o[0]&&(a=!1);return a?o[0]:o}if(\"number\"==typeof n&&!i(c))return;if(\"object\"!=typeof(c=c[n])||null===c)return}if(\"object\"==typeof c&&null!==c&&null!==(o=c[r[s]]))return o}}(t,c),astr:e,parts:c,obj:t}};var a=/(^|\\.)args\\[/;function o(t,e){return void 0===t||null===t&&!e.match(a)}function s(t,e,r){return function(n){var a,s,f=t,h=\"\",p=[[t,h]],d=o(n,r);for(s=0;s<e.length-1;s++){if(\"number\"==typeof(a=e[s])&&!i(f))throw\"array index but container is not an array\";if(-1===a){if(d=!c(f,e.slice(s+1),n,r))break;return}if(!u(f,a,e[s+1],d))break;if(\"object\"!=typeof(f=f[a])||null===f)throw\"container is not an object\";h=l(h,a),p.push([f,h])}if(d){if(s===e.length-1&&(delete f[e[s]],Array.isArray(f)&&+e[s]==f.length-1))for(;f.length&&void 0===f[f.length-1];)f.pop()}else f[e[s]]=n}}function l(t,e){var r=e;return n(e)?r=\"[\"+e+\"]\":t&&(r=\".\"+e),t+r}function c(t,e,r,n){var a,l=i(r),c=!0,f=r,h=n.replace(\"-1\",0),p=!l&&o(r,h),d=e[0];for(a=0;a<t.length;a++)h=n.replace(\"-1\",a),l&&(p=o(f=r[a%r.length],h)),p&&(c=!1),u(t,a,d,p)&&s(t[a],e,n.replace(\"-1\",a))(f);return c}function u(t,e,r,n){if(void 0===t[e]){if(n)return!1;t[e]=\"number\"==typeof r?[]:{}}return!0}},{\"./array\":678,\"fast-isnumeric\":214}],705:[function(t,e,r){\"use strict\";e.exports=function(){}},{}],706:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"fast-isnumeric\"),a=[];e.exports=function(t,e){if(-1===a.indexOf(t)){a.push(t);var r=1e3;i(e)?r=e:\"long\"===e&&(r=3e3);var o=n.select(\"body\").selectAll(\".plotly-notifier\").data([0]);o.enter().append(\"div\").classed(\"plotly-notifier\",!0),o.selectAll(\".notifier-note\").data(a).enter().append(\"div\").classed(\"notifier-note\",!0).style(\"opacity\",0).each(function(t){var e=n.select(this);e.append(\"button\").classed(\"notifier-close\",!0).html(\"&times;\").on(\"click\",function(){e.transition().call(s)});for(var i=e.append(\"p\"),a=t.split(/<br\\s*\\/?>/g),o=0;o<a.length;o++)o&&i.append(\"br\"),i.append(\"span\").text(a[o]);e.transition().duration(700).style(\"opacity\",1).transition().delay(r).call(s)})}function s(t){t.duration(700).style(\"opacity\",0).each(\"end\",function(t){var e=a.indexOf(t);-1!==e&&a.splice(e,1),n.select(this).remove()})}}},{d3:148,\"fast-isnumeric\":214}],707:[function(t,e,r){\"use strict\";var n=t(\"./setcursor\"),i=\"data-savedcursor\";e.exports=function(t,e){var r=t.attr(i);if(e){if(!r){for(var a=(t.attr(\"class\")||\"\").split(\" \"),o=0;o<a.length;o++){var s=a[o];0===s.indexOf(\"cursor-\")&&t.attr(i,s.substr(7)).classed(s,!1)}t.attr(i)||t.attr(i,\"!!\")}n(t,e)}else r&&(t.attr(i,null),\"!!\"===r?n(t):n(t,r))}},{\"./setcursor\":716}],708:[function(t,e,r){\"use strict\";var n=t(\"./matrix\").dot,i=t(\"../constants/numerical\").BADNUM,a=e.exports={};a.tester=function(t){var e,r=t.slice(),n=r[0][0],a=n,o=r[0][1],s=o;for(r.push(r[0]),e=1;e<r.length;e++)n=Math.min(n,r[e][0]),a=Math.max(a,r[e][0]),o=Math.min(o,r[e][1]),s=Math.max(s,r[e][1]);var l,c=!1;5===r.length&&(r[0][0]===r[1][0]?r[2][0]===r[3][0]&&r[0][1]===r[3][1]&&r[1][1]===r[2][1]&&(c=!0,l=function(t){return t[0]===r[0][0]}):r[0][1]===r[1][1]&&r[2][1]===r[3][1]&&r[0][0]===r[3][0]&&r[1][0]===r[2][0]&&(c=!0,l=function(t){return t[1]===r[0][1]}));var u=!0,f=r[0];for(e=1;e<r.length;e++)if(f[0]!==r[e][0]||f[1]!==r[e][1]){u=!1;break}return{xmin:n,xmax:a,ymin:o,ymax:s,pts:r,contains:c?function(t,e){var r=t[0],c=t[1];return!(r===i||r<n||r>a||c===i||c<o||c>s||e&&l(t))}:function(t,e){var l=t[0],c=t[1];if(l===i||l<n||l>a||c===i||c<o||c>s)return!1;var u,f,h,p,d,g=r.length,v=r[0][0],m=r[0][1],y=0;for(u=1;u<g;u++)if(f=v,h=m,v=r[u][0],m=r[u][1],!(l<(p=Math.min(f,v))||l>Math.max(f,v)||c>Math.max(h,m)))if(c<Math.min(h,m))l!==p&&y++;else{if(c===(d=v===f?c:h+(l-f)*(m-h)/(v-f)))return 1!==u||!e;c<=d&&l!==p&&y++}return y%2==1},isRect:c,degenerate:u}};var o=a.isSegmentBent=function(t,e,r,i){var a,o,s,l=t[e],c=[t[r][0]-l[0],t[r][1]-l[1]],u=n(c,c),f=Math.sqrt(u),h=[-c[1]/f,c[0]/f];for(a=e+1;a<r;a++)if(o=[t[a][0]-l[0],t[a][1]-l[1]],(s=n(o,c))<0||s>u||Math.abs(n(o,h))>i)return!0;return!1};a.filter=function(t,e){var r=[t[0]],n=0,i=0;function a(a){t.push(a);var s=r.length,l=n;r.splice(i+1);for(var c=l+1;c<t.length;c++)(c===t.length-1||o(t,l,c+1,e))&&(r.push(t[c]),r.length<s-2&&(n=c,i=r.length-1),l=c)}t.length>1&&a(t.pop());return{addPt:a,raw:t,filtered:r}}},{\"../constants/numerical\":673,\"./matrix\":702}],709:[function(t,e,r){(function(r){\"use strict\";var n=t(\"./show_no_webgl_msg\"),i=t(\"regl\");e.exports=function(t,e){var a=t._fullLayout,o=!0;return a._glcanvas.each(function(n){if(!n.regl&&(!n.pick||a._has(\"parcoords\"))){try{n.regl=i({canvas:this,attributes:{antialias:!n.pick,preserveDrawingBuffer:!0},pixelRatio:t._context.plotGlPixelRatio||r.devicePixelRatio,extensions:e||[]})}catch(t){o=!1}o&&this.addEventListener(\"webglcontextlost\",function(e){t&&t.emit&&t.emit(\"plotly_webglcontextlost\",{event:e,layer:n.key})},!1)}}),o||n({container:a._glcontainer.node()}),o}}).call(this,\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{\"./show_no_webgl_msg\":717,regl:478}],710:[function(t,e,r){\"use strict\";e.exports=function(t,e){if(e instanceof RegExp){var r,n=e.toString();for(r=0;r<t.length;r++)if(t[r]instanceof RegExp&&t[r].toString()===n)return t;t.push(e)}else!e&&0!==e||-1!==t.indexOf(e)||t.push(e);return t}},{}],711:[function(t,e,r){\"use strict\";var n=t(\"../lib\"),i=t(\"../plot_api/plot_config\");var a={add:function(t,e,r,n,a){var o,s;t.undoQueue=t.undoQueue||{index:0,queue:[],sequence:!1},s=t.undoQueue.index,t.autoplay?t.undoQueue.inSequence||(t.autoplay=!1):(!t.undoQueue.sequence||t.undoQueue.beginSequence?(o={undo:{calls:[],args:[]},redo:{calls:[],args:[]}},t.undoQueue.queue.splice(s,t.undoQueue.queue.length-s,o),t.undoQueue.index+=1):o=t.undoQueue.queue[s-1],t.undoQueue.beginSequence=!1,o&&(o.undo.calls.unshift(e),o.undo.args.unshift(r),o.redo.calls.push(n),o.redo.args.push(a)),t.undoQueue.queue.length>i.queueLength&&(t.undoQueue.queue.shift(),t.undoQueue.index--))},startSequence:function(t){t.undoQueue=t.undoQueue||{index:0,queue:[],sequence:!1},t.undoQueue.sequence=!0,t.undoQueue.beginSequence=!0},stopSequence:function(t){t.undoQueue=t.undoQueue||{index:0,queue:[],sequence:!1},t.undoQueue.sequence=!1,t.undoQueue.beginSequence=!1},undo:function(t){var e,r;if(t.framework&&t.framework.isPolar)t.framework.undo();else if(!(void 0===t.undoQueue||isNaN(t.undoQueue.index)||t.undoQueue.index<=0)){for(t.undoQueue.index--,e=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,r=0;r<e.undo.calls.length;r++)a.plotDo(t,e.undo.calls[r],e.undo.args[r]);t.undoQueue.inSequence=!1,t.autoplay=!1}},redo:function(t){var e,r;if(t.framework&&t.framework.isPolar)t.framework.redo();else if(!(void 0===t.undoQueue||isNaN(t.undoQueue.index)||t.undoQueue.index>=t.undoQueue.queue.length)){for(e=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,r=0;r<e.redo.calls.length;r++)a.plotDo(t,e.redo.calls[r],e.redo.args[r]);t.undoQueue.inSequence=!1,t.autoplay=!1,t.undoQueue.index++}}};a.plotDo=function(t,e,r){t.autoplay=!0,r=function(t,e){for(var r,i=[],a=0;a<e.length;a++)r=e[a],i[a]=r===t?r:\"object\"==typeof r?Array.isArray(r)?n.extendDeep([],r):n.extendDeepAll({},r):r;return i}(t,r),e.apply(null,r)},e.exports=a},{\"../lib\":696,\"../plot_api/plot_config\":732}],712:[function(t,e,r){\"use strict\";r.counter=function(t,e,r){var n=(e||\"\")+(r?\"\":\"$\");return\"xy\"===t?new RegExp(\"^x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?\"+n):new RegExp(\"^\"+t+\"([2-9]|[1-9][0-9]+)?\"+n)}},{}],713:[function(t,e,r){\"use strict\";var n=/^(.*)(\\.[^\\.\\[\\]]+|\\[\\d\\])$/,i=/^[^\\.\\[\\]]+$/;e.exports=function(t,e){for(;e;){var r=t.match(n);if(r)t=r[1];else{if(!t.match(i))throw new Error(\"bad relativeAttr call:\"+[t,e]);t=\"\"}if(\"^\"!==e.charAt(0))break;e=e.slice(1)}return t&&\"[\"!==e.charAt(0)?t+\".\"+e:t+e}},{}],714:[function(t,e,r){\"use strict\";var n=t(\"./array\").isArrayOrTypedArray,i=t(\"./is_plain_object\");e.exports=function t(e,r){for(var a in r){var o=r[a],s=e[a];if(s!==o)if(\"_\"===a.charAt(0)||\"function\"==typeof o){if(a in e)continue;e[a]=o}else if(n(o)&&n(s)&&i(o[0])){if(\"customdata\"===a||\"ids\"===a)continue;for(var l=Math.min(o.length,s.length),c=0;c<l;c++)s[c]!==o[c]&&i(o[c])&&i(s[c])&&t(s[c],o[c])}else i(o)&&i(s)&&(t(s,o),Object.keys(s).length||delete e[a])}}},{\"./array\":678,\"./is_plain_object\":697}],715:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"./loggers\"),a=t(\"./identity\");function o(t,e){return t<e}function s(t,e){return t<=e}function l(t,e){return t>e}function c(t,e){return t>=e}r.findBin=function(t,e,r){if(n(e.start))return r?Math.ceil((t-e.start)/e.size-1e-9)-1:Math.floor((t-e.start)/e.size+1e-9);var a,u,f=0,h=e.length,p=0,d=h>1?(e[h-1]-e[0])/(h-1):1;for(u=d>=0?r?o:s:r?c:l,t+=1e-9*d*(r?-1:1)*(d>=0?1:-1);f<h&&p++<100;)u(e[a=Math.floor((f+h)/2)],t)?f=a+1:h=a;return p>90&&i.log(\"Long binary search...\"),f-1},r.sorterAsc=function(t,e){return t-e},r.sorterDes=function(t,e){return e-t},r.distinctVals=function(t){var e=t.slice();e.sort(r.sorterAsc);for(var n=e.length-1,i=e[n]-e[0]||1,a=i/(n||1)/1e4,o=[e[0]],s=0;s<n;s++)e[s+1]>e[s]+a&&(i=Math.min(i,e[s+1]-e[s]),o.push(e[s+1]));return{vals:o,minDiff:i}},r.roundUp=function(t,e,r){for(var n,i=0,a=e.length-1,o=0,s=r?0:1,l=r?1:0,c=r?Math.ceil:Math.floor;i<a&&o++<100;)e[n=c((i+a)/2)]<=t?i=n+s:a=n-l;return e[i]},r.sort=function(t,e){for(var r=0,n=0,i=1;i<t.length;i++){var a=e(t[i],t[i-1]);if(a<0?r=1:a>0&&(n=1),r&&n)return t.sort(e)}return n?t:t.reverse()},r.findIndexOfMin=function(t,e){e=e||a;for(var r,n=1/0,i=0;i<t.length;i++){var o=e(t[i]);o<n&&(n=o,r=i)}return r}},{\"./identity\":695,\"./loggers\":700,\"fast-isnumeric\":214}],716:[function(t,e,r){\"use strict\";e.exports=function(t,e){(t.attr(\"class\")||\"\").split(\" \").forEach(function(e){0===e.indexOf(\"cursor-\")&&t.classed(e,!1)}),e&&t.classed(\"cursor-\"+e,!0)}},{}],717:[function(t,e,r){\"use strict\";var n=t(\"../components/color\"),i=function(){};e.exports=function(t){for(var e in t)\"function\"==typeof t[e]&&(t[e]=i);t.destroy=function(){t.container.parentNode.removeChild(t.container)};var r=document.createElement(\"div\");r.className=\"no-webgl\",r.style.cursor=\"pointer\",r.style.fontSize=\"24px\",r.style.color=n.defaults[0],r.style.position=\"absolute\",r.style.left=r.style.top=\"0px\",r.style.width=r.style.height=\"100%\",r.style[\"background-color\"]=n.lightLine,r.style[\"z-index\"]=30;var a=document.createElement(\"p\");return a.textContent=\"WebGL is not supported by your browser - visit https://get.webgl.org for more info\",a.style.position=\"relative\",a.style.top=\"50%\",a.style.left=\"50%\",a.style.height=\"30%\",a.style.width=\"50%\",a.style.margin=\"-15% 0 0 -25%\",r.appendChild(a),t.container.appendChild(r),t.container.style.background=\"#FFFFFF\",t.container.onclick=function(){window.open(\"https://get.webgl.org\")},!1}},{\"../components/color\":570}],718:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"./array\").isArrayOrTypedArray;r.aggNums=function(t,e,a,o){var s,l;if((!o||o>a.length)&&(o=a.length),n(e)||(e=!1),i(a[0])){for(l=new Array(o),s=0;s<o;s++)l[s]=r.aggNums(t,e,a[s]);a=l}for(s=0;s<o;s++)n(e)?n(a[s])&&(e=t(+e,+a[s])):e=a[s];return e},r.len=function(t){return r.aggNums(function(t){return t+1},0,t)},r.mean=function(t,e){return e||(e=r.len(t)),r.aggNums(function(t,e){return t+e},0,t)/e},r.midRange=function(t){if(void 0!==t&&0!==t.length)return(r.aggNums(Math.max,null,t)+r.aggNums(Math.min,null,t))/2},r.variance=function(t,e,i){return e||(e=r.len(t)),n(i)||(i=r.mean(t,e)),r.aggNums(function(t,e){return t+Math.pow(e-i,2)},0,t)/e},r.stdev=function(t,e,n){return Math.sqrt(r.variance(t,e,n))},r.interp=function(t,e){if(!n(e))throw\"n should be a finite number\";if((e=e*t.length-.5)<0)return t[0];if(e>t.length-1)return t[t.length-1];var r=e%1;return r*t[Math.ceil(e)]+(1-r)*t[Math.floor(e)]}},{\"./array\":678,\"fast-isnumeric\":214}],719:[function(t,e,r){\"use strict\";var n=t(\"color-normalize\");e.exports=function(t){return t?n(t):[0,0,0,1]}},{\"color-normalize\":108}],720:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../lib\"),a=t(\"../constants/xmlns_namespaces\"),o=t(\"../constants/alignment\").LINE_SPACING;function s(t,e){return t.node().getBoundingClientRect()[e]}var l=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;r.convertToTspans=function(t,e,v){var S=t.text(),E=!t.attr(\"data-notex\")&&\"undefined\"!=typeof MathJax&&S.match(l),L=n.select(t.node().parentNode);if(!L.empty()){var z=t.attr(\"class\")?t.attr(\"class\").split(\" \")[0]:\"text\";return z+=\"-math\",L.selectAll(\"svg.\"+z).remove(),L.selectAll(\"g.\"+z+\"-group\").remove(),t.style(\"display\",null).attr({\"data-unformatted\":S,\"data-math\":\"N\"}),E?(e&&e._promises||[]).push(new Promise(function(e){t.style(\"display\",\"none\");var r=parseInt(t.node().style.fontSize,10),a={fontSize:r};!function(t,e,r){var a,o,s,l;MathJax.Hub.Queue(function(){return o=i.extendDeepAll({},MathJax.Hub.config),s=MathJax.Hub.processSectionDelay,void 0!==MathJax.Hub.processSectionDelay&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:\"none\",tex2jax:{inlineMath:[[\"$\",\"$\"],[\"\\\\(\",\"\\\\)\"]]},displayAlign:\"left\"})},function(){if(\"SVG\"!==(a=MathJax.Hub.config.menuSettings.renderer))return MathJax.Hub.setRenderer(\"SVG\")},function(){var r=\"math-output-\"+i.randstr({},64);return l=n.select(\"body\").append(\"div\").attr({id:r}).style({visibility:\"hidden\",position:\"absolute\"}).style({\"font-size\":e.fontSize+\"px\"}).text(t.replace(c,\"\\\\lt \").replace(u,\"\\\\gt \")),MathJax.Hub.Typeset(l.node())},function(){var e=n.select(\"body\").select(\"#MathJax_SVG_glyphs\");if(l.select(\".MathJax_SVG\").empty()||!l.select(\"svg\").node())i.log(\"There was an error in the tex syntax.\",t),r();else{var o=l.select(\"svg\").node().getBoundingClientRect();r(l.select(\".MathJax_SVG\"),e,o)}if(l.remove(),\"SVG\"!==a)return MathJax.Hub.setRenderer(a)},function(){return void 0!==s&&(MathJax.Hub.processSectionDelay=s),MathJax.Hub.Config(o)})}(E[2],a,function(n,i,a){L.selectAll(\"svg.\"+z).remove(),L.selectAll(\"g.\"+z+\"-group\").remove();var o=n&&n.select(\"svg\");if(!o||!o.node())return O(),void e();var l=L.append(\"g\").classed(z+\"-group\",!0).attr({\"pointer-events\":\"none\",\"data-unformatted\":S,\"data-math\":\"Y\"});l.node().appendChild(o.node()),i&&i.node()&&o.node().insertBefore(i.node().cloneNode(!0),o.node().firstChild),o.attr({class:z,height:a.height,preserveAspectRatio:\"xMinYMin meet\"}).style({overflow:\"visible\",\"pointer-events\":\"none\"});var c=t.node().style.fill||\"black\";o.select(\"g\").attr({fill:c,stroke:c});var u=s(o,\"width\"),f=s(o,\"height\"),h=+t.attr(\"x\")-u*{start:0,middle:.5,end:1}[t.attr(\"text-anchor\")||\"start\"],p=-(r||s(t,\"height\"))/4;\"y\"===z[0]?(l.attr({transform:\"rotate(\"+[-90,+t.attr(\"x\"),+t.attr(\"y\")]+\") translate(\"+[-u/2,p-f/2]+\")\"}),o.attr({x:+t.attr(\"x\"),y:+t.attr(\"y\")})):\"l\"===z[0]?o.attr({x:t.attr(\"x\"),y:p-f/2}):\"a\"===z[0]?o.attr({x:0,y:p}):o.attr({x:h,y:+t.attr(\"y\")+p-f/2}),v&&v.call(t,l),e(l)})})):O(),t}function O(){L.empty()||(z=t.attr(\"class\")+\"-math\",L.select(\"svg.\"+z).remove()),t.text(\"\").style(\"white-space\",\"pre\"),function(t,e){e=e.replace(m,\" \");var r,s=!1,l=[],c=-1;function u(){c++;var e=document.createElementNS(a.svg,\"tspan\");n.select(e).attr({class:\"line\",dy:c*o+\"em\"}),t.appendChild(e),r=e;var i=l;if(l=[{node:e}],i.length>1)for(var s=1;s<i.length;s++)v(i[s])}function v(t){var e,i=t.type,o={};if(\"a\"===i){e=\"a\";var s=t.target,c=t.href,u=t.popup;c&&(o={\"xlink:xlink:show\":\"_blank\"===s||\"_\"!==s.charAt(0)?\"new\":\"replace\",target:s,\"xlink:xlink:href\":c},u&&(o.onclick='window.open(this.href.baseVal,this.target.baseVal,\"'+u+'\");return false;'))}else e=\"tspan\";t.style&&(o.style=t.style);var f=document.createElementNS(a.svg,e);if(\"sup\"===i||\"sub\"===i){S(r,d),r.appendChild(f);var g=document.createElementNS(a.svg,\"tspan\");S(g,d),n.select(g).attr(\"dy\",p[i]),o.dy=h[i],r.appendChild(f),r.appendChild(g)}else r.appendChild(f);n.select(f).attr(o),r=t.node=f,l.push(t)}function S(t,e){t.appendChild(document.createTextNode(e))}function E(t){if(1!==l.length){var n=l.pop();t!==n.type&&i.log(\"Start tag <\"+n.type+\"> doesnt match end tag <\"+t+\">. Pretending it did match.\",e),r=l[l.length-1].node}else i.log(\"Ignoring unexpected end tag </\"+t+\">.\",e)}b.test(e)?u():(r=t,l=[{node:t}]);for(var L=e.split(y),z=0;z<L.length;z++){var O=L[z],I=O.match(x),P=I&&I[2].toLowerCase(),D=f[P];if(\"br\"===P)u();else if(void 0===D)S(r,C(O));else if(I[1])E(P);else{var R=I[4],B={type:P},F=A(R,_);if(F?(F=F.replace(T,\"$1 fill:\"),D&&(F+=\";\"+D)):D&&(F=D),F&&(B.style=F),\"a\"===P){s=!0;var N=A(R,w);if(N){var j=document.createElement(\"a\");j.href=N,-1!==g.indexOf(j.protocol)&&(B.href=encodeURI(decodeURI(N)),B.target=A(R,k)||\"_blank\",B.popup=A(R,M))}}v(B)}}return s}(t.node(),S)&&t.style(\"pointer-events\",\"all\"),r.positionText(t),v&&v.call(t)}};var c=/(<|&lt;|&#60;)/g,u=/(>|&gt;|&#62;)/g;var f={sup:\"font-size:70%\",sub:\"font-size:70%\",b:\"font-weight:bold\",i:\"font-style:italic\",a:\"cursor:pointer\",span:\"\",em:\"font-style:italic;font-weight:bold\"},h={sub:\"0.3em\",sup:\"-0.6em\"},p={sub:\"-0.21em\",sup:\"0.42em\"},d=\"\\u200b\",g=[\"http:\",\"https:\",\"mailto:\",\"\",void 0,\":\"],v=new RegExp(\"</?(\"+Object.keys(f).join(\"|\")+\")( [^>]*)?/?>\",\"g\"),m=/(\\r\\n?|\\n)/g,y=/(<[^<>]*>)/,x=/<(\\/?)([^ >]*)(\\s+(.*))?>/i,b=/<br(\\s+.*)?>/i,_=/(^|[\\s\"'])style\\s*=\\s*(\"([^\"]*);?\"|'([^']*);?')/i,w=/(^|[\\s\"'])href\\s*=\\s*(\"([^\"]*)\"|'([^']*)')/i,k=/(^|[\\s\"'])target\\s*=\\s*(\"([^\"\\s]*)\"|'([^'\\s]*)')/i,M=/(^|[\\s\"'])popup\\s*=\\s*(\"([\\w=,]*)\"|'([\\w=,]*)')/i;function A(t,e){if(!t)return null;var r=t.match(e),n=r&&(r[3]||r[4]);return n&&C(n)}var T=/(^|;)\\s*color:/;r.plainText=function(t){return(t||\"\").replace(v,\" \")};var S={mu:\"\\u03bc\",amp:\"&\",lt:\"<\",gt:\">\",nbsp:\"\\xa0\",times:\"\\xd7\",plusmn:\"\\xb1\",deg:\"\\xb0\"},E=/&(#\\d+|#x[\\da-fA-F]+|[a-z]+);/g;function C(t){return t.replace(E,function(t,e){return(\"#\"===e.charAt(0)?function(t){if(t>1114111)return;var e=String.fromCodePoint;if(e)return e(t);var r=String.fromCharCode;return t<=65535?r(t):r(55232+(t>>10),t%1024+56320)}(\"x\"===e.charAt(1)?parseInt(e.substr(2),16):parseInt(e.substr(1),10)):S[e])||t})}function L(t,e,r){var n,i,a,o=r.horizontalAlign,s=r.verticalAlign||\"top\",l=t.node().getBoundingClientRect(),c=e.node().getBoundingClientRect();return i=\"bottom\"===s?function(){return l.bottom-n.height}:\"middle\"===s?function(){return l.top+(l.height-n.height)/2}:function(){return l.top},a=\"right\"===o?function(){return l.right-n.width}:\"center\"===o?function(){return l.left+(l.width-n.width)/2}:function(){return l.left},function(){return n=this.node().getBoundingClientRect(),this.style({top:i()-c.top+\"px\",left:a()-c.left+\"px\",\"z-index\":1e3}),this}}r.convertEntities=C,r.lineCount=function(t){return t.selectAll(\"tspan.line\").size()||1},r.positionText=function(t,e,r){return t.each(function(){var t=n.select(this);function i(e,r){return void 0===r?null===(r=t.attr(e))&&(t.attr(e,0),r=0):t.attr(e,r),r}var a=i(\"x\",e),o=i(\"y\",r);\"text\"===this.nodeName&&t.selectAll(\"tspan.line\").attr({x:a,y:o})})},r.makeEditable=function(t,e){var r=e.gd,i=e.delegate,a=n.dispatch(\"edit\",\"input\",\"cancel\"),o=i||t;if(t.style({\"pointer-events\":i?\"none\":\"all\"}),1!==t.size())throw new Error(\"boo\");function s(){!function(){var i=n.select(r).select(\".svg-container\"),o=i.append(\"div\"),s=t.node().style,c=parseFloat(s.fontSize||12),u=e.text;void 0===u&&(u=t.attr(\"data-unformatted\"));o.classed(\"plugin-editable editable\",!0).style({position:\"absolute\",\"font-family\":s.fontFamily||\"Arial\",\"font-size\":c,color:e.fill||s.fill||\"black\",opacity:1,\"background-color\":e.background||\"transparent\",outline:\"#ffffff33 1px solid\",margin:[-c/8+1,0,0,-1].join(\"px \")+\"px\",padding:\"0\",\"box-sizing\":\"border-box\"}).attr({contenteditable:!0}).text(u).call(L(t,i,e)).on(\"blur\",function(){r._editing=!1,t.text(this.textContent).style({opacity:1});var e,i=n.select(this).attr(\"class\");(e=i?\".\"+i.split(\" \")[0]+\"-math-group\":\"[class*=-math-group]\")&&n.select(t.node().parentNode).select(e).style({opacity:0});var o=this.textContent;n.select(this).transition().duration(0).remove(),n.select(document).on(\"mouseup\",null),a.edit.call(t,o)}).on(\"focus\",function(){var t=this;r._editing=!0,n.select(document).on(\"mouseup\",function(){if(n.event.target===t)return!1;document.activeElement===o.node()&&o.node().blur()})}).on(\"keyup\",function(){27===n.event.which?(r._editing=!1,t.style({opacity:1}),n.select(this).style({opacity:0}).on(\"blur\",function(){return!1}).transition().remove(),a.cancel.call(t,this.textContent)):(a.input.call(t,this.textContent),n.select(this).call(L(t,i,e)))}).on(\"keydown\",function(){13===n.event.which&&this.blur()}).call(l)}(),t.style({opacity:0});var i,s=o.attr(\"class\");(i=s?\".\"+s.split(\" \")[0]+\"-math-group\":\"[class*=-math-group]\")&&n.select(t.node().parentNode).select(i).style({opacity:0})}function l(t){var e=t.node(),r=document.createRange();r.selectNodeContents(e);var n=window.getSelection();n.removeAllRanges(),n.addRange(r),e.focus()}return e.immediate?s():o.on(\"click\",s),n.rebind(t,a,\"on\")}},{\"../constants/alignment\":668,\"../constants/xmlns_namespaces\":674,\"../lib\":696,d3:148}],721:[function(t,e,r){\"use strict\";var n={};function i(t){t&&null!==t.timer&&(clearTimeout(t.timer),t.timer=null)}r.throttle=function(t,e,r){var a=n[t],o=Date.now();if(!a){for(var s in n)n[s].ts<o-6e4&&delete n[s];a=n[t]={ts:0,timer:null}}function l(){r(),a.ts=Date.now(),a.onDone&&(a.onDone(),a.onDone=null)}i(a),o>a.ts+e?l():a.timer=setTimeout(function(){l(),a.timer=null},e)},r.done=function(t){var e=n[t];return e&&e.timer?new Promise(function(t){var r=e.onDone;e.onDone=function(){r&&r(),t(),e.onDone=null}}):Promise.resolve()},r.clear=function(t){if(t)i(n[t]),delete n[t];else for(var e in n)r.clear(e)}},{}],722:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\");e.exports=function(t,e){if(t>0)return Math.log(t)/Math.LN10;var r=Math.log(Math.min(e[0],e[1]))/Math.LN10;return n(r)||(r=Math.log(Math.max(e[0],e[1]))/Math.LN10-6),r}},{\"fast-isnumeric\":214}],723:[function(t,e,r){\"use strict\";var n=e.exports={},i=t(\"../plots/geo/constants\").locationmodeToLayer,a=t(\"topojson-client\").feature;n.getTopojsonName=function(t){return[t.scope.replace(/ /g,\"-\"),\"_\",t.resolution.toString(),\"m\"].join(\"\")},n.getTopojsonPath=function(t,e){return t+e+\".json\"},n.getTopojsonFeatures=function(t,e){var r=i[t.locationmode],n=e.objects[r];return a(e,n).features}},{\"../plots/geo/constants\":773,\"topojson-client\":517}],724:[function(t,e,r){\"use strict\";e.exports={moduleType:\"locale\",name:\"en-US\",dictionary:{\"Click to enter Colorscale title\":\"Click to enter Colorscale title\"},format:{date:\"%m/%d/%Y\"}}},{}],725:[function(t,e,r){\"use strict\";e.exports={moduleType:\"locale\",name:\"en\",dictionary:{\"Click to enter Colorscale title\":\"Click to enter Colourscale title\"},format:{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\"],periods:[\"AM\",\"PM\"],dateTime:\"%a %b %e %X %Y\",date:\"%d/%m/%Y\",time:\"%H:%M:%S\",decimal:\".\",thousands:\",\",grouping:[3],currency:[\"$\",\"\"],year:\"%Y\",month:\"%b %Y\",dayMonth:\"%b %-d\",dayMonthYear:\"%b %-d, %Y\"}}},{}],726:[function(t,e,r){\"use strict\";var n=t(\"../registry\");e.exports=function(t){for(var e,r,i=n.layoutArrayContainers,a=n.layoutArrayRegexes,o=t.split(\"[\")[0],s=0;s<a.length;s++)if((r=t.match(a[s]))&&0===r.index){e=r[0];break}if(e||(e=i[i.indexOf(o)]),!e)return!1;var l=t.substr(e.length);return l?!!(r=l.match(/^\\[(0|[1-9][0-9]*)\\](\\.(.+))?$/))&&{array:e,index:Number(r[1]),property:r[3]||\"\"}:{array:e,index:\"\",property:\"\"}}},{\"../registry\":827}],727:[function(t,e,r){\"use strict\";var n=t(\"../lib\"),i=n.extendFlat,a=n.isPlainObject,o={valType:\"flaglist\",extras:[\"none\"],flags:[\"calc\",\"clearAxisTypes\",\"plot\",\"style\",\"markerSize\",\"colorbars\"]},s={valType:\"flaglist\",extras:[\"none\"],flags:[\"calc\",\"plot\",\"legend\",\"ticks\",\"axrange\",\"layoutstyle\",\"modebar\",\"camera\",\"arraydraw\"]},l=o.flags.slice().concat([\"fullReplot\"]),c=s.flags.slice().concat(\"layoutReplot\");function u(t){for(var e={},r=0;r<t.length;r++)e[t[r]]=!1;return e}function f(t,e,r){var n=i({},t);for(var o in n){var s=n[o];a(s)&&(n[o]=h(s,e,r,o))}return\"from-root\"===r&&(n.editType=e),n}function h(t,e,r,n){if(t.valType){var a=i({},t);if(a.editType=e,Array.isArray(t.items)){a.items=new Array(t.items.length);for(var o=0;o<t.items.length;o++)a.items[o]=h(t.items[o],e,\"from-root\")}return a}return f(t,e,\"_\"===n.charAt(0)?\"nested\":\"from-root\")}e.exports={traces:o,layout:s,traceFlags:function(){return u(l)},layoutFlags:function(){return u(c)},update:function(t,e){var r=e.editType;if(r&&\"none\"!==r)for(var n=r.split(\"+\"),i=0;i<n.length;i++)t[n[i]]=!0},overrideAll:f}},{\"../lib\":696}],728:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"gl-mat4/fromQuat\"),a=t(\"../registry\"),o=t(\"../lib\"),s=t(\"../plots/plots\"),l=t(\"../plots/cartesian/axis_ids\"),c=l.cleanId,u=l.getFromTrace,f=t(\"../components/color\");function h(t,e){var r=t[e],n=e.charAt(0);r&&\"paper\"!==r&&(t[e]=c(r,n))}function p(t){if(!o.isPlainObject(t))return!1;var e=t.name;return delete t.name,delete t.showlegend,(\"string\"==typeof e||\"number\"==typeof e)&&String(e)}function d(t,e,r,n){if(r&&!n)return t;if(n&&!r)return e;if(!t.trim())return e;if(!e.trim())return t;var i,a=Math.min(t.length,e.length);for(i=0;i<a&&t.charAt(i)===e.charAt(i);i++);return t.substr(0,i).trim()}function g(t){var e=\"middle\",r=\"center\";return-1!==t.indexOf(\"top\")?e=\"top\":-1!==t.indexOf(\"bottom\")&&(e=\"bottom\"),-1!==t.indexOf(\"left\")?r=\"left\":-1!==t.indexOf(\"right\")&&(r=\"right\"),e+\" \"+r}function v(t,e){return e in t&&\"object\"==typeof t[e]&&0===Object.keys(t[e]).length}r.clearPromiseQueue=function(t){Array.isArray(t._promises)&&t._promises.length>0&&o.log(\"Clearing previous rejected promises from queue.\"),t._promises=[]},r.cleanLayout=function(t){var e,r;t||(t={}),t.xaxis1&&(t.xaxis||(t.xaxis=t.xaxis1),delete t.xaxis1),t.yaxis1&&(t.yaxis||(t.yaxis=t.yaxis1),delete t.yaxis1),t.scene1&&(t.scene||(t.scene=t.scene1),delete t.scene1);var n=(s.subplotsRegistry.cartesian||{}).attrRegex,a=(s.subplotsRegistry.gl3d||{}).attrRegex,l=Object.keys(t);for(e=0;e<l.length;e++){var u=l[e];if(n&&n.test(u)){var p=t[u];p.anchor&&\"free\"!==p.anchor&&(p.anchor=c(p.anchor)),p.overlaying&&(p.overlaying=c(p.overlaying)),p.type||(p.isdate?p.type=\"date\":p.islog?p.type=\"log\":!1===p.isdate&&!1===p.islog&&(p.type=\"linear\")),\"withzero\"!==p.autorange&&\"tozero\"!==p.autorange||(p.autorange=!0,p.rangemode=\"tozero\"),delete p.islog,delete p.isdate,delete p.categories,v(p,\"domain\")&&delete p.domain,void 0!==p.autotick&&(void 0===p.tickmode&&(p.tickmode=p.autotick?\"auto\":\"linear\"),delete p.autotick)}else if(a&&a.test(u)){var d=t[u],g=d.cameraposition;if(Array.isArray(g)&&4===g[0].length){var m=g[0],y=g[1],x=g[2],b=i([],m),_=[];for(r=0;r<3;++r)_[r]=y[r]+x*b[2+4*r];d.camera={eye:{x:_[0],y:_[1],z:_[2]},center:{x:y[0],y:y[1],z:y[2]},up:{x:b[1],y:b[5],z:b[9]}},delete d.cameraposition}}}var w=Array.isArray(t.annotations)?t.annotations.length:0;for(e=0;e<w;e++){var k=t.annotations[e];o.isPlainObject(k)&&(k.ref&&(\"paper\"===k.ref?(k.xref=\"paper\",k.yref=\"paper\"):\"data\"===k.ref&&(k.xref=\"x\",k.yref=\"y\"),delete k.ref),h(k,\"xref\"),h(k,\"yref\"))}var M=Array.isArray(t.shapes)?t.shapes.length:0;for(e=0;e<M;e++){var A=t.shapes[e];o.isPlainObject(A)&&(h(A,\"xref\"),h(A,\"yref\"))}var T=t.legend;return T&&(T.x>3?(T.x=1.02,T.xanchor=\"left\"):T.x<-2&&(T.x=-.02,T.xanchor=\"right\"),T.y>3?(T.y=1.02,T.yanchor=\"bottom\"):T.y<-2&&(T.y=-.02,T.yanchor=\"top\")),\"rotate\"===t.dragmode&&(t.dragmode=\"orbit\"),f.clean(t),t},r.cleanData=function(t){for(var e=0;e<t.length;e++){var n,i=t[e];if(\"histogramy\"===i.type&&\"xbins\"in i&&!(\"ybins\"in i)&&(i.ybins=i.xbins,delete i.xbins),i.error_y&&\"opacity\"in i.error_y){var l=f.defaults,u=i.error_y.color||(a.traceIs(i,\"bar\")?f.defaultLine:l[e%l.length]);i.error_y.color=f.addOpacity(f.rgb(u),f.opacity(u)*i.error_y.opacity),delete i.error_y.opacity}if(\"bardir\"in i&&(\"h\"!==i.bardir||!a.traceIs(i,\"bar\")&&\"histogram\"!==i.type.substr(0,9)||(i.orientation=\"h\",r.swapXYData(i)),delete i.bardir),\"histogramy\"===i.type&&r.swapXYData(i),\"histogramx\"!==i.type&&\"histogramy\"!==i.type||(i.type=\"histogram\"),\"scl\"in i&&(i.colorscale=i.scl,delete i.scl),\"reversescl\"in i&&(i.reversescale=i.reversescl,delete i.reversescl),i.xaxis&&(i.xaxis=c(i.xaxis,\"x\")),i.yaxis&&(i.yaxis=c(i.yaxis,\"y\")),a.traceIs(i,\"gl3d\")&&i.scene&&(i.scene=s.subplotsRegistry.gl3d.cleanId(i.scene)),!a.traceIs(i,\"pie\")&&!a.traceIs(i,\"bar\"))if(Array.isArray(i.textposition))for(n=0;n<i.textposition.length;n++)i.textposition[n]=g(i.textposition[n]);else i.textposition&&(i.textposition=g(i.textposition));var h=a.getModule(i);if(h&&h.colorbar){var m=h.colorbar.container,y=m?i[m]:i;y&&y.colorscale&&(\"YIGnBu\"===y.colorscale&&(y.colorscale=\"YlGnBu\"),\"YIOrRd\"===y.colorscale&&(y.colorscale=\"YlOrRd\"))}if(\"surface\"===i.type&&o.isPlainObject(i.contours)){var x=[\"x\",\"y\",\"z\"];for(n=0;n<x.length;n++){var b=i.contours[x[n]];o.isPlainObject(b)&&(b.highlightColor&&(b.highlightcolor=b.highlightColor,delete b.highlightColor),b.highlightWidth&&(b.highlightwidth=b.highlightWidth,delete b.highlightWidth))}}if(\"candlestick\"===i.type||\"ohlc\"===i.type){var _=!1!==(i.increasing||{}).showlegend,w=!1!==(i.decreasing||{}).showlegend,k=p(i.increasing),M=p(i.decreasing);if(!1!==k&&!1!==M){var A=d(k,M,_,w);A&&(i.name=A)}else!k&&!M||i.name||(i.name=k||M)}if(Array.isArray(i.transforms)){var T=i.transforms;for(n=0;n<T.length;n++){var S=T[n];if(o.isPlainObject(S))switch(S.type){case\"filter\":S.filtersrc&&(S.target=S.filtersrc,delete S.filtersrc),S.calendar&&(S.valuecalendar||(S.valuecalendar=S.calendar),delete S.calendar);break;case\"groupby\":if(S.styles=S.styles||S.style,S.styles&&!Array.isArray(S.styles)){var E=S.styles,C=Object.keys(E);S.styles=[];for(var L=0;L<C.length;L++)S.styles.push({target:C[L],value:E[C[L]]})}}}}v(i,\"line\")&&delete i.line,\"marker\"in i&&(v(i.marker,\"line\")&&delete i.marker.line,v(i,\"marker\")&&delete i.marker),f.clean(i),i.autobinx&&(delete i.autobinx,delete i.xbins),i.autobiny&&(delete i.autobiny,delete i.ybins)}},r.swapXYData=function(t){var e;if(o.swapAttrs(t,[\"?\",\"?0\",\"d?\",\"?bins\",\"nbins?\",\"autobin?\",\"?src\",\"error_?\"]),Array.isArray(t.z)&&Array.isArray(t.z[0])&&(t.transpose?delete t.transpose:t.transpose=!0),t.error_x&&t.error_y){var r=t.error_y,n=\"copy_ystyle\"in r?r.copy_ystyle:!(r.color||r.thickness||r.width);o.swapAttrs(t,[\"error_?.copy_ystyle\"]),n&&o.swapAttrs(t,[\"error_?.color\",\"error_?.thickness\",\"error_?.width\"])}if(\"string\"==typeof t.hoverinfo){var i=t.hoverinfo.split(\"+\");for(e=0;e<i.length;e++)\"x\"===i[e]?i[e]=\"y\":\"y\"===i[e]&&(i[e]=\"x\");t.hoverinfo=i.join(\"+\")}},r.coerceTraceIndices=function(t,e){if(n(e))return[e];if(!Array.isArray(e)||!e.length)return t.data.map(function(t,e){return e});if(Array.isArray(e)){for(var r=[],i=0;i<e.length;i++)o.isIndex(e[i],t.data.length)?r.push(e[i]):o.warn(\"trace index (\",e[i],\") is not a number or is out of bounds\");return r}return e},r.manageArrayContainers=function(t,e,r){var i=t.obj,a=t.parts,s=a.length,l=a[s-1],c=n(l);if(c&&null===e){var u=a.slice(0,s-1).join(\".\");o.nestedProperty(i,u).get().splice(l,1)}else c&&void 0===t.get()?(void 0===t.get()&&(r[t.astr]=null),t.set(e)):t.set(e)};var m=/(\\.[^\\[\\]\\.]+|\\[[^\\[\\]\\.]+\\])$/;function y(t){var e=t.search(m);if(e>0)return t.substr(0,e)}r.hasParent=function(t,e){for(var r=y(e);r;){if(r in t)return!0;r=y(r)}return!1};var x=[\"x\",\"y\",\"z\"];r.clearAxisTypes=function(t,e,r){for(var n=0;n<e.length;n++)for(var i=t._fullData[n],a=0;a<3;a++){var s=u(t,i,x[a]);if(s&&\"log\"!==s.type){var l=s._name,c=s._id.substr(1);if(\"scene\"===c.substr(0,5)){if(void 0!==r[c])continue;l=c+\".\"+l}var f=l+\".type\";void 0===r[l]&&void 0===r[f]&&o.nestedProperty(t.layout,f).set(null)}}}},{\"../components/color\":570,\"../lib\":696,\"../plots/cartesian/axis_ids\":747,\"../plots/plots\":808,\"../registry\":827,\"fast-isnumeric\":214,\"gl-mat4/fromQuat\":251}],729:[function(t,e,r){\"use strict\";var n=t(\"./plot_api\");r.plot=n.plot,r.newPlot=n.newPlot,r.restyle=n.restyle,r.relayout=n.relayout,r.redraw=n.redraw,r.update=n.update,r.react=n.react,r.extendTraces=n.extendTraces,r.prependTraces=n.prependTraces,r.addTraces=n.addTraces,r.deleteTraces=n.deleteTraces,r.moveTraces=n.moveTraces,r.purge=n.purge,r.addFrames=n.addFrames,r.deleteFrames=n.deleteFrames,r.animate=n.animate,r.setPlotConfig=n.setPlotConfig,r.toImage=t(\"./to_image\"),r.validate=t(\"./validate\"),r.downloadImage=t(\"../snapshot/download\");var i=t(\"./template_api\");r.makeTemplate=i.makeTemplate,r.validateTemplate=i.validateTemplate},{\"../snapshot/download\":829,\"./plot_api\":731,\"./template_api\":736,\"./to_image\":737,\"./validate\":738}],730:[function(t,e,r){\"use strict\";var n=t(\"../lib/nested_property\"),i=t(\"../lib/is_plain_object\"),a=t(\"../lib/noop\"),o=t(\"../lib/loggers\"),s=t(\"../lib/search\").sorterAsc,l=t(\"../registry\");r.containerArrayMatch=t(\"./container_array_match\");var c=r.isAddVal=function(t){return\"add\"===t||i(t)},u=r.isRemoveVal=function(t){return null===t||\"remove\"===t};r.applyContainerArrayChanges=function(t,e,r,i){var f=e.astr,h=l.getComponentMethod(f,\"supplyLayoutDefaults\"),p=l.getComponentMethod(f,\"draw\"),d=l.getComponentMethod(f,\"drawOne\"),g=i.replot||i.recalc||h===a||p===a,v=t.layout,m=t._fullLayout;if(r[\"\"]){Object.keys(r).length>1&&o.warn(\"Full array edits are incompatible with other edits\",f);var y=r[\"\"][\"\"];if(u(y))e.set(null);else{if(!Array.isArray(y))return o.warn(\"Unrecognized full array edit value\",f,y),!0;e.set(y)}return!g&&(h(v,m),p(t),!0)}var x,b,_,w,k,M,A,T=Object.keys(r).map(Number).sort(s),S=e.get(),E=S||[],C=n(m,f).get(),L=[],z=-1,O=E.length;for(x=0;x<T.length;x++)if(w=r[_=T[x]],k=Object.keys(w),M=w[\"\"],A=c(M),_<0||_>E.length-(A?0:1))o.warn(\"index out of range\",f,_);else if(void 0!==M)k.length>1&&o.warn(\"Insertion & removal are incompatible with edits to the same index.\",f,_),u(M)?L.push(_):A?(\"add\"===M&&(M={}),E.splice(_,0,M),C&&C.splice(_,0,{})):o.warn(\"Unrecognized full object edit value\",f,_,M),-1===z&&(z=_);else for(b=0;b<k.length;b++)n(E[_],k[b]).set(w[k[b]]);for(x=L.length-1;x>=0;x--)E.splice(L[x],1),C&&C.splice(L[x],1);if(E.length?S||e.set(E):e.set(null),g)return!1;if(h(v,m),d!==a){var I;if(-1===z)I=T;else{for(O=Math.max(E.length,O),I=[],x=0;x<T.length&&!((_=T[x])>=z);x++)I.push(_);for(x=z;x<O;x++)I.push(x)}for(x=0;x<I.length;x++)d(t,I[x])}else p(t);return!0}},{\"../lib/is_plain_object\":697,\"../lib/loggers\":700,\"../lib/nested_property\":704,\"../lib/noop\":705,\"../lib/search\":715,\"../registry\":827,\"./container_array_match\":726}],731:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"fast-isnumeric\"),a=t(\"has-hover\"),o=t(\"../lib\"),s=t(\"../lib/events\"),l=t(\"../lib/queue\"),c=t(\"../registry\"),u=t(\"./plot_schema\"),f=t(\"../plots/plots\"),h=t(\"../plots/polar/legacy\"),p=t(\"../plots/cartesian/axes\"),d=t(\"../components/drawing\"),g=t(\"../components/color\"),v=t(\"../components/colorbar/connect\"),m=t(\"../plots/cartesian/graph_interact\").initInteractions,y=t(\"../constants/xmlns_namespaces\"),x=t(\"../lib/svg_text_utils\"),b=t(\"./plot_config\"),_=t(\"./manage_arrays\"),w=t(\"./helpers\"),k=t(\"./subroutines\"),M=t(\"./edit_types\"),A=t(\"../plots/cartesian/constants\").AX_NAME_PATTERN,T=0;function S(t){var e=t._fullLayout;e._redrawFromAutoMarginCount?e._redrawFromAutoMarginCount--:t.emit(\"plotly_afterplot\")}function E(t,e){try{t._fullLayout._paper.style(\"background\",e)}catch(t){o.error(t)}}function C(t,e){E(t,g.combine(e,\"white\"))}function L(t,e){t._context||(t._context=o.extendDeep({},b));var r,n,i,s=t._context;if(e){for(n=Object.keys(e),r=0;r<n.length;r++)\"editable\"!==(i=n[r])&&\"edits\"!==i&&i in s&&(\"setBackground\"===i&&\"opaque\"===e[i]?s[i]=C:s[i]=e[i]);e.plot3dPixelRatio&&!s.plotGlPixelRatio&&(s.plotGlPixelRatio=s.plot3dPixelRatio);var l=e.editable;if(void 0!==l)for(s.editable=l,n=Object.keys(s.edits),r=0;r<n.length;r++)s.edits[n[r]]=l;if(e.edits)for(n=Object.keys(e.edits),r=0;r<n.length;r++)(i=n[r])in s.edits&&(s.edits[i]=e.edits[i])}s.staticPlot&&(s.editable=!1,s.edits={},s.autosizable=!1,s.scrollZoom=!1,s.doubleClick=!1,s.showTips=!1,s.showLink=!1,s.displayModeBar=!1),\"hover\"!==s.displayModeBar||a||(s.displayModeBar=!0),\"transparent\"!==s.setBackground&&\"function\"==typeof s.setBackground||(s.setBackground=E),s._hasZeroHeight=s._hasZeroHeight||0===t.clientHeight,s._hasZeroWidth=s._hasZeroWidth||0===t.clientWidth}function z(t,e){var r,n,i=e+1,a=[];for(r=0;r<t.length;r++)(n=t[r])<0?a.push(i+n):a.push(n);return a}function O(t,e,r){var n,i;for(n=0;n<e.length;n++){if((i=e[n])!==parseInt(i,10))throw new Error(\"all values in \"+r+\" must be integers\");if(i>=t.data.length||i<-t.data.length)throw new Error(r+\" must be valid indices for gd.data.\");if(e.indexOf(i,n+1)>-1||i>=0&&e.indexOf(-t.data.length+i)>-1||i<0&&e.indexOf(t.data.length+i)>-1)throw new Error(\"each index in \"+r+\" must be unique.\")}}function I(t,e,r){if(!Array.isArray(t.data))throw new Error(\"gd.data must be an array.\");if(\"undefined\"==typeof e)throw new Error(\"currentIndices is a required argument.\");if(Array.isArray(e)||(e=[e]),O(t,e,\"currentIndices\"),\"undefined\"==typeof r||Array.isArray(r)||(r=[r]),\"undefined\"!=typeof r&&O(t,r,\"newIndices\"),\"undefined\"!=typeof r&&e.length!==r.length)throw new Error(\"current and new indices must be of equal length.\")}function P(t,e,r,n,a){!function(t,e,r,n){var i=o.isPlainObject(n);if(!Array.isArray(t.data))throw new Error(\"gd.data must be an array\");if(!o.isPlainObject(e))throw new Error(\"update must be a key:value object\");if(\"undefined\"==typeof r)throw new Error(\"indices must be an integer or array of integers\");for(var a in O(t,r,\"indices\"),e){if(!Array.isArray(e[a])||e[a].length!==r.length)throw new Error(\"attribute \"+a+\" must be an array of length equal to indices array length\");if(i&&(!(a in n)||!Array.isArray(n[a])||n[a].length!==e[a].length))throw new Error(\"when maxPoints is set as a key:value object it must contain a 1:1 corrispondence with the keys and number of traces in the update object\")}}(t,e,r,n);for(var s=function(t,e,r,n){var a,s,l,c,u,f=o.isPlainObject(n),h=[];for(var p in Array.isArray(r)||(r=[r]),r=z(r,t.data.length-1),e)for(var d=0;d<r.length;d++){if(a=t.data[r[d]],s=(l=o.nestedProperty(a,p)).get(),c=e[p][d],!o.isArrayOrTypedArray(c))throw new Error(\"attribute: \"+p+\" index: \"+d+\" must be an array\");if(!o.isArrayOrTypedArray(s))throw new Error(\"cannot extend missing or non-array attribute: \"+p);if(s.constructor!==c.constructor)throw new Error(\"cannot extend array with an array of a different type: \"+p);u=f?n[p][d]:n,i(u)||(u=-1),h.push({prop:l,target:s,insert:c,maxp:Math.floor(u)})}return h}(t,e,r,n),l={},c={},u=0;u<s.length;u++){var f=s[u].prop,h=s[u].maxp,p=a(s[u].target,s[u].insert,h);f.set(p[0]),Array.isArray(l[f.astr])||(l[f.astr]=[]),l[f.astr].push(p[1]),Array.isArray(c[f.astr])||(c[f.astr]=[]),c[f.astr].push(s[u].target.length)}return{update:l,maxPoints:c}}function D(t,e){var r=new t.constructor(t.length+e.length);return r.set(t),r.set(e,t.length),r}function R(t){return void 0===t?null:t}function B(t,e,r){var n,i,a=t._fullLayout,s=t._fullData,l=t.data,h=M.traceFlags(),d={},g={};function v(){return r.map(function(){})}function m(t){var e=p.id2name(t);-1===i.indexOf(e)&&i.push(e)}function y(t){return\"LAYOUT\"+t+\".autorange\"}function x(t){return\"LAYOUT\"+t+\".range\"}function b(n,i,a){var s;Array.isArray(n)?n.forEach(function(t){b(t,i,a)}):n in e||w.hasParent(e,n)||(s=\"LAYOUT\"===n.substr(0,6)?o.nestedProperty(t.layout,n.replace(\"LAYOUT\",\"\")):o.nestedProperty(l[r[a]],n),n in g||(g[n]=v()),void 0===g[n][a]&&(g[n][a]=R(s.get())),void 0!==i&&s.set(i))}function _(t){return function(e){return s[e][t]}}function k(t){return function(e,n){return!1===e?s[r[n]][t]:null}}for(var A in e){if(w.hasParent(e,A))throw new Error(\"cannot set \"+A+\"and a parent attribute simultaneously\");var T,S,E,C,L,z,O=e[A];if(\"autobinx\"!==A&&\"autobiny\"!==A||(A=A.charAt(A.length-1)+\"bins\",O=Array.isArray(O)?O.map(k(A)):!1===O?r.map(_(A)):null),d[A]=O,\"LAYOUT\"!==A.substr(0,6)){for(g[A]=v(),n=0;n<r.length;n++)if(T=l[r[n]],S=s[r[n]],C=(E=o.nestedProperty(T,A)).get(),void 0!==(L=Array.isArray(O)?O[n%O.length]:O)){var I=E.parts[E.parts.length-1],P=A.substr(0,A.length-I.length-1),D=P?P+\".\":\"\",B=P?o.nestedProperty(S,P).get():S;if((z=u.getTraceValObject(S,E.parts))&&z.impliedEdits&&null!==L)for(var F in z.impliedEdits)b(o.relativeAttr(A,F),z.impliedEdits[F],n);else if(\"thicknessmode\"!==I&&\"lenmode\"!==I||C===L||\"fraction\"!==L&&\"pixels\"!==L||!B){if(\"type\"===A&&\"pie\"===L!=(\"pie\"===C)){var N=\"x\",j=\"y\";\"bar\"!==L&&\"bar\"!==C||\"h\"!==T.orientation||(N=\"y\",j=\"x\"),o.swapAttrs(T,[\"?\",\"?src\"],\"labels\",N),o.swapAttrs(T,[\"d?\",\"?0\"],\"label\",N),o.swapAttrs(T,[\"?\",\"?src\"],\"values\",j),\"pie\"===C?(o.nestedProperty(T,\"marker.color\").set(o.nestedProperty(T,\"marker.colors\").get()),a._pielayer.selectAll(\"g.trace\").remove()):c.traceIs(T,\"cartesian\")&&o.nestedProperty(T,\"marker.colors\").set(o.nestedProperty(T,\"marker.color\").get())}}else{var V=a._size,U=B.orient,q=\"top\"===U||\"bottom\"===U;if(\"thicknessmode\"===I){var H=q?V.h:V.w;b(D+\"thickness\",B.thickness*(\"fraction\"===L?1/H:H),n)}else{var G=q?V.w:V.h;b(D+\"len\",B.len*(\"fraction\"===L?1/G:G),n)}}g[A][n]=R(C);if(-1!==[\"swapxy\",\"swapxyaxes\",\"orientation\",\"orientationaxes\"].indexOf(A)){if(\"orientation\"===A){E.set(L);var W=T.x&&!T.y?\"h\":\"v\";if((E.get()||W)===S.orientation)continue}else\"orientationaxes\"===A&&(T.orientation={v:\"h\",h:\"v\"}[S.orientation]);w.swapXYData(T),h.calc=h.clearAxisTypes=!0}else-1!==f.dataArrayContainers.indexOf(E.parts[0])?(w.manageArrayContainers(E,L,g),h.calc=!0):(z?z.arrayOk&&!c.traceIs(S,\"regl\")&&(o.isArrayOrTypedArray(L)||o.isArrayOrTypedArray(C))?h.calc=!0:M.update(h,z):h.calc=!0,E.set(L))}if(-1!==[\"swapxyaxes\",\"orientationaxes\"].indexOf(A)&&p.swap(t,r),\"orientationaxes\"===A){var Y=o.nestedProperty(t.layout,\"hovermode\");\"x\"===Y.get()?Y.set(\"y\"):\"y\"===Y.get()&&Y.set(\"x\")}if(-1!==[\"orientation\",\"type\"].indexOf(A)){for(i=[],n=0;n<r.length;n++){var X=l[r[n]];c.traceIs(X,\"cartesian\")&&(m(X.xaxis||\"x\"),m(X.yaxis||\"y\"))}b(i.map(y),!0,0),b(i.map(x),[0,1],0)}}else E=o.nestedProperty(t.layout,A.replace(\"LAYOUT\",\"\")),g[A]=[R(E.get())],E.set(Array.isArray(O)?O[0]:O),h.calc=!0}return(h.calc||h.plot)&&(h.fullReplot=!0),{flags:h,undoit:g,redoit:d,traces:r,eventData:o.extendDeepNoArrays([],[d,r])}}function F(t,e,r){var n;if(!e.axrange)return!1;for(n in e)if(\"axrange\"!==n&&e[n])return!1;for(n in r.rangesAltered){var i=p.id2name(n),a=t.layout[i],o=t._fullLayout[i];o.autorange=a.autorange,o.range=a.range.slice(),o.cleanRange()}return!0}function N(t,e){var r=e?function(t){return p.doTicks(t,Object.keys(e),!0)}:function(t){return p.doTicks(t,\"redraw\")};t.push(k.doAutoRangeAndConstraints,r,k.drawData,k.finalDraw)}r.plot=function(t,e,i,a){var l;if(t=o.getGraphDiv(t),s.init(t),o.isPlainObject(e)){var u=e;e=u.data,i=u.layout,a=u.config,l=u.frames}if(!1===s.triggerHandler(t,\"plotly_beforeplot\",[e,i,a]))return Promise.reject();e||i||o.isPlotDiv(t)||o.warn(\"Calling Plotly.plot as if redrawing but this container doesn't yet have a plot.\",t),L(t,a),i||(i={}),n.select(t).classed(\"js-plotly-plot\",!0),d.makeTester(),delete d.baseUrl,Array.isArray(t._promises)||(t._promises=[]);var g=0===(t.data||[]).length&&Array.isArray(e);if(Array.isArray(e)&&(w.cleanData(e),g?t.data=e:t.data.push.apply(t.data,e),t.empty=!1),t.layout&&!g||(t.layout=w.cleanLayout(i)),t._dragging&&!t._transitioning)return t._replotPending=!0,Promise.reject();t._replotPending=!1,f.supplyDefaults(t);var y=t._fullLayout,b=y._has(\"cartesian\");if(!y._has(\"polar\")&&e&&e[0]&&e[0].r)return o.log(\"Legacy polar charts are deprecated!\"),function(t,e,r){var i=n.select(t).selectAll(\".plot-container\").data([0]);i.enter().insert(\"div\",\":first-child\").classed(\"plot-container plotly\",!0);var a=i.selectAll(\".svg-container\").data([0]);a.enter().append(\"div\").classed(\"svg-container\",!0).style(\"position\",\"relative\"),a.html(\"\"),e&&(t.data=e);r&&(t.layout=r);h.manager.fillLayout(t),a.style({width:t._fullLayout.width+\"px\",height:t._fullLayout.height+\"px\"}),t.framework=h.manager.framework(t),t.framework({data:t.data,layout:t.layout},a.node()),t.framework.setUndoPoint();var s=t.framework.svg(),l=1,c=t._fullLayout.title;\"\"!==c&&c||(l=0);var u=function(){this.call(x.convertToTspans,t)},p=s.select(\".title-group text\").call(u);if(t._context.edits.titleText){var d=o._(t,\"Click to enter Plot title\");c&&c!==d||(l=.2,p.attr({\"data-unformatted\":d}).text(d).style({opacity:l}).on(\"mouseover.opacity\",function(){n.select(this).transition().duration(100).style(\"opacity\",1)}).on(\"mouseout.opacity\",function(){n.select(this).transition().duration(1e3).style(\"opacity\",0)}));var g=function(){this.call(x.makeEditable,{gd:t}).on(\"edit\",function(e){t.framework({layout:{title:e}}),this.text(e).call(u),this.call(g)}).on(\"cancel\",function(){var t=this.attr(\"data-unformatted\");this.text(t).call(u)})};p.call(g)}return t._context.setBackground(t,t._fullLayout.paper_bgcolor),f.addLinks(t),Promise.resolve()}(t,e,i);y._replotting=!0,g&&W(t),t.framework!==W&&(t.framework=W,W(t)),d.initGradients(t),g&&p.saveShowSpikeInitial(t);var _=!t.calcdata||t.calcdata.length!==(t._fullData||[]).length;_&&f.doCalcdata(t);for(var M=0;M<t.calcdata.length;M++)t.calcdata[M][0].trace=t._fullData[M];t._context.responsive?t._responsiveChartHandler||(t._responsiveChartHandler=function(){f.resize(t)},window.addEventListener(\"resize\",t._responsiveChartHandler)):o.clearResponsive(t);var A=JSON.stringify(y._size),T=0;function E(){var e,r,n,i=t.calcdata;for(f.clearAutoMarginIds(t),k.drawMarginPushers(t),p.allowAutoMargin(t),e=0;e<i.length;e++){var a=(n=(r=i[e])[0].trace)._module.colorbar;!0===n.visible&&a?v(t,r,a):f.autoMargin(t,\"cb\"+n.uid)}return f.doAutoMargin(t),f.previousPromises(t)}function C(){t._transitioning||(k.doAutoRangeAndConstraints(t),g&&p.saveRangeInitial(t))}var z=[f.previousPromises,function(){if(l)return r.addFrames(t,l)},function e(){for(var r=y._basePlotModules,n=0;n<r.length;n++)r[n].drawFramework&&r[n].drawFramework(t);if(!y._glcanvas&&y._has(\"gl\")&&(y._glcanvas=y._glcontainer.selectAll(\".gl-canvas\").data([{key:\"contextLayer\",context:!0,pick:!1},{key:\"focusLayer\",context:!1,pick:!1},{key:\"pickLayer\",context:!1,pick:!0}],function(t){return t.key}),y._glcanvas.enter().append(\"canvas\").attr(\"class\",function(t){return\"gl-canvas gl-canvas-\"+t.key.replace(\"Layer\",\"\")}).style({position:\"absolute\",top:0,left:0,width:\"100%\",height:\"100%\",overflow:\"visible\",\"pointer-events\":\"none\"})),y._glcanvas){y._glcanvas.attr(\"width\",y.width).attr(\"height\",y.height);var i=y._glcanvas.data()[0].regl;if(i&&(Math.floor(y.width)!==i._gl.drawingBufferWidth||Math.floor(y.height)!==i._gl.drawingBufferHeight)){var a=\"WebGL context buffer and canvas dimensions do not match due to browser/WebGL bug.\";if(!T)return o.log(a+\" Clearing graph and plotting again.\"),f.cleanPlot([],{},t._fullData,y),f.supplyDefaults(t),y=t._fullLayout,f.doCalcdata(t),T++,e();o.error(a)}}return f.previousPromises(t)},E,function(){if(JSON.stringify(y._size)!==A)return o.syncOrAsync([E,k.layoutStyles],t)}];b&&z.push(function(){if(_)return o.syncOrAsync([c.getComponentMethod(\"shapes\",\"calcAutorange\"),c.getComponentMethod(\"annotations\",\"calcAutorange\"),C,c.getComponentMethod(\"rangeslider\",\"calcAutorange\")],t);C()}),z.push(k.layoutStyles),b&&z.push(function(){return p.doTicks(t,g?\"\":\"redraw\")}),z.push(k.drawData,k.finalDraw,m,f.addLinks,f.rehover,f.doAutoMargin,f.previousPromises);var O=o.syncOrAsync(z,t);return O&&O.then||(O=Promise.resolve()),O.then(function(){return S(t),t})},r.setPlotConfig=function(t){return o.extendFlat(b,t)},r.redraw=function(t){if(t=o.getGraphDiv(t),!o.isPlotDiv(t))throw new Error(\"This element is not a Plotly plot: \"+t);return w.cleanData(t.data),w.cleanLayout(t.layout),t.calcdata=void 0,r.plot(t).then(function(){return t.emit(\"plotly_redraw\"),t})},r.newPlot=function(t,e,n,i){return t=o.getGraphDiv(t),f.cleanPlot([],{},t._fullData||[],t._fullLayout||{}),f.purge(t),r.plot(t,e,n,i)},r.extendTraces=function t(e,n,i,a){var s=P(e=o.getGraphDiv(e),n,i,a,function(t,e,r){var n,i;if(o.isTypedArray(t))if(r<0){var a=new t.constructor(0),s=D(t,e);r<0?(n=s,i=a):(n=a,i=s)}else if(n=new t.constructor(r),i=new t.constructor(t.length+e.length-r),r===e.length)n.set(e),i.set(t);else if(r<e.length){var l=e.length-r;n.set(e.subarray(l)),i.set(t),i.set(e.subarray(0,l),t.length)}else{var c=r-e.length,u=t.length-c;n.set(t.subarray(u)),n.set(e,c),i.set(t.subarray(0,u))}else n=t.concat(e),i=r>=0&&r<n.length?n.splice(0,n.length-r):[];return[n,i]}),c=r.redraw(e),u=[e,s.update,i,s.maxPoints];return l.add(e,r.prependTraces,u,t,arguments),c},r.prependTraces=function t(e,n,i,a){var s=P(e=o.getGraphDiv(e),n,i,a,function(t,e,r){var n,i;if(o.isTypedArray(t))if(r<=0){var a=new t.constructor(0),s=D(e,t);r<0?(n=s,i=a):(n=a,i=s)}else if(n=new t.constructor(r),i=new t.constructor(t.length+e.length-r),r===e.length)n.set(e),i.set(t);else if(r<e.length){var l=e.length-r;n.set(e.subarray(0,l)),i.set(e.subarray(l)),i.set(t,l)}else{var c=r-e.length;n.set(e),n.set(t.subarray(0,c),e.length),i.set(t.subarray(c))}else n=e.concat(t),i=r>=0&&r<n.length?n.splice(r,n.length):[];return[n,i]}),c=r.redraw(e),u=[e,s.update,i,s.maxPoints];return l.add(e,r.extendTraces,u,t,arguments),c},r.addTraces=function t(e,n,i){e=o.getGraphDiv(e);var a,s,c=[],u=r.deleteTraces,f=t,h=[e,c],p=[e,n];for(function(t,e,r){var n,i;if(!Array.isArray(t.data))throw new Error(\"gd.data must be an array.\");if(\"undefined\"==typeof e)throw new Error(\"traces must be defined.\");for(Array.isArray(e)||(e=[e]),n=0;n<e.length;n++)if(\"object\"!=typeof(i=e[n])||Array.isArray(i)||null===i)throw new Error(\"all values in traces array must be non-array objects\");if(\"undefined\"==typeof r||Array.isArray(r)||(r=[r]),\"undefined\"!=typeof r&&r.length!==e.length)throw new Error(\"if indices is specified, traces.length must equal indices.length\")}(e,n,i),Array.isArray(n)||(n=[n]),n=n.map(function(t){return o.extendFlat({},t)}),w.cleanData(n),a=0;a<n.length;a++)e.data.push(n[a]);for(a=0;a<n.length;a++)c.push(-n.length+a);if(\"undefined\"==typeof i)return s=r.redraw(e),l.add(e,u,h,f,p),s;Array.isArray(i)||(i=[i]);try{I(e,c,i)}catch(t){throw e.data.splice(e.data.length-n.length,n.length),t}return l.startSequence(e),l.add(e,u,h,f,p),s=r.moveTraces(e,c,i),l.stopSequence(e),s},r.deleteTraces=function t(e,n){e=o.getGraphDiv(e);var i,a,s=[],c=r.addTraces,u=t,f=[e,s,n],h=[e,n];if(\"undefined\"==typeof n)throw new Error(\"indices must be an integer or array of integers.\");for(Array.isArray(n)||(n=[n]),O(e,n,\"indices\"),(n=z(n,e.data.length-1)).sort(o.sorterDes),i=0;i<n.length;i+=1)a=e.data.splice(n[i],1)[0],s.push(a);var p=r.redraw(e);return l.add(e,c,f,u,h),p},r.moveTraces=function t(e,n,i){var a,s=[],c=[],u=t,f=t,h=[e=o.getGraphDiv(e),i,n],p=[e,n,i];if(I(e,n,i),n=Array.isArray(n)?n:[n],\"undefined\"==typeof i)for(i=[],a=0;a<n.length;a++)i.push(-n.length+a);for(i=Array.isArray(i)?i:[i],n=z(n,e.data.length-1),i=z(i,e.data.length-1),a=0;a<e.data.length;a++)-1===n.indexOf(a)&&s.push(e.data[a]);for(a=0;a<n.length;a++)c.push({newIndex:i[a],trace:e.data[n[a]]});for(c.sort(function(t,e){return t.newIndex-e.newIndex}),a=0;a<c.length;a+=1)s.splice(c[a].newIndex,0,c[a].trace);e.data=s;var d=r.redraw(e);return l.add(e,u,h,f,p),d},r.restyle=function t(e,n,i,a){e=o.getGraphDiv(e),w.clearPromiseQueue(e);var s={};if(\"string\"==typeof n)s[n]=i;else{if(!o.isPlainObject(n))return o.warn(\"Restyle fail.\",n,i,a),Promise.reject();s=o.extendFlat({},n),void 0===a&&(a=i)}Object.keys(s).length&&(e.changed=!0);var c=w.coerceTraceIndices(e,a),u=B(e,s,c),h=u.flags;h.calc&&(e.calcdata=void 0),h.clearAxisTypes&&w.clearAxisTypes(e,c,{});var p=[];h.fullReplot?p.push(r.plot):(p.push(f.previousPromises),f.supplyDefaults(e),h.markerSize&&(f.doCalcdata(e),N(p)),h.style&&p.push(k.doTraceStyle),h.colorbars&&p.push(k.doColorBars),p.push(S)),p.push(f.rehover),l.add(e,t,[e,u.undoit,u.traces],t,[e,u.redoit,u.traces]);var d=o.syncOrAsync(p,e);return d&&d.then||(d=Promise.resolve()),d.then(function(){return e.emit(\"plotly_restyle\",u.eventData),e})},r.relayout=function t(e,r,n){if(e=o.getGraphDiv(e),w.clearPromiseQueue(e),e.framework&&e.framework.isPolar)return Promise.resolve(e);var i={};if(\"string\"==typeof r)i[r]=n;else{if(!o.isPlainObject(r))return o.warn(\"Relayout fail.\",r,n),Promise.reject();i=o.extendFlat({},r)}Object.keys(i).length&&(e.changed=!0);var a=q(e,i),s=a.flags;s.calc&&(e.calcdata=void 0);var c=[f.previousPromises];s.layoutReplot?c.push(k.layoutReplot):Object.keys(i).length&&(F(e,s,a)||f.supplyDefaults(e),s.legend&&c.push(k.doLegend),s.layoutstyle&&c.push(k.layoutStyles),s.axrange&&N(c,a.rangesAltered),s.ticks&&c.push(k.doTicksRelayout),s.modebar&&c.push(k.doModeBar),s.camera&&c.push(k.doCamera),c.push(S)),c.push(f.rehover),l.add(e,t,[e,a.undoit],t,[e,a.redoit]);var u=o.syncOrAsync(c,e);return u&&u.then||(u=Promise.resolve(e)),u.then(function(){return e.emit(\"plotly_relayout\",a.eventData),e})};var j=/^[xyz]axis[0-9]*\\.range(\\[[0|1]\\])?$/,V=/^[xyz]axis[0-9]*\\.autorange$/,U=/^[xyz]axis[0-9]*\\.domain(\\[[0|1]\\])?$/;function q(t,e){var r,n,i,a=t.layout,s=t._fullLayout,l=Object.keys(e),f=p.list(t),h={};for(n=0;n<l.length;n++)if(0===l[n].indexOf(\"allaxes\")){for(i=0;i<f.length;i++){var d=f[i]._id.substr(1),g=-1!==d.indexOf(\"scene\")?d+\".\":\"\",v=l[n].replace(\"allaxes\",g+f[i]._name);e[v]||(e[v]=e[l[n]])}delete e[l[n]]}var m=M.layoutFlags(),y={},x={};function b(t,r){if(Array.isArray(t))t.forEach(function(t){b(t,r)});else if(!(t in e||w.hasParent(e,t))){var n=o.nestedProperty(a,t);t in x||(x[t]=R(n.get())),void 0!==r&&n.set(r)}}var k,T={};function S(t){var e=p.name2id(t.split(\".\")[0]);return T[e]=1,e}for(var E in e){if(w.hasParent(e,E))throw new Error(\"cannot set \"+E+\"and a parent attribute simultaneously\");for(var C=o.nestedProperty(a,E),L=e[E],z=C.parts.length-1;z>0&&\"string\"!=typeof C.parts[z];)z--;var O=C.parts[z],I=C.parts[z-1]+\".\"+O,P=C.parts.slice(0,z).join(\".\"),D=o.nestedProperty(t.layout,P).get(),B=o.nestedProperty(s,P).get(),F=C.get();if(void 0!==L){y[E]=L,x[E]=\"reverse\"===O?L:R(F);var N=u.getLayoutValObject(s,C.parts);if(N&&N.impliedEdits&&null!==L)for(var q in N.impliedEdits)b(o.relativeAttr(E,q),N.impliedEdits[q]);if(-1!==[\"width\",\"height\"].indexOf(E))if(L){b(\"autosize\",null);var G=\"height\"===E?\"width\":\"height\";b(G,s[G])}else s[E]=t._initialAutoSize[E];else if(\"autosize\"===E)b(\"width\",L?null:s.width),b(\"height\",L?null:s.height);else if(I.match(j))S(I),o.nestedProperty(s,P+\"._inputRange\").set(null);else if(I.match(V)){S(I),o.nestedProperty(s,P+\"._inputRange\").set(null);var W=o.nestedProperty(s,P).get();W._inputDomain&&(W._input.domain=W._inputDomain.slice())}else I.match(U)&&o.nestedProperty(s,P+\"._inputDomain\").set(null);if(\"type\"===O){var Y=D,X=\"linear\"===B.type&&\"log\"===L,Z=\"log\"===B.type&&\"linear\"===L;if(X||Z){if(Y&&Y.range)if(B.autorange)X&&(Y.range=Y.range[1]>Y.range[0]?[1,2]:[2,1]);else{var $=Y.range[0],J=Y.range[1];X?($<=0&&J<=0&&b(P+\".autorange\",!0),$<=0?$=J/1e6:J<=0&&(J=$/1e6),b(P+\".range[0]\",Math.log($)/Math.LN10),b(P+\".range[1]\",Math.log(J)/Math.LN10)):(b(P+\".range[0]\",Math.pow(10,$)),b(P+\".range[1]\",Math.pow(10,J)))}else b(P+\".autorange\",!0);Array.isArray(s._subplots.polar)&&s._subplots.polar.length&&s[C.parts[0]]&&\"radialaxis\"===C.parts[1]&&delete s[C.parts[0]]._subplot.viewInitial[\"radialaxis.range\"],c.getComponentMethod(\"annotations\",\"convertCoords\")(t,B,L,b),c.getComponentMethod(\"images\",\"convertCoords\")(t,B,L,b)}else b(P+\".autorange\",!0),b(P+\".range\",null);o.nestedProperty(s,P+\"._inputRange\").set(null)}else if(O.match(A)){var K=o.nestedProperty(s,E).get(),Q=(L||{}).type;Q&&\"-\"!==Q||(Q=\"linear\"),c.getComponentMethod(\"annotations\",\"convertCoords\")(t,K,Q,b),c.getComponentMethod(\"images\",\"convertCoords\")(t,K,Q,b)}var tt=_.containerArrayMatch(E);if(tt){r=tt.array,n=tt.index;var et=tt.property,rt=(o.nestedProperty(a,r)||[])[n]||{},nt=N||{editType:\"calc\"};\"\"!==n&&\"\"===et&&(_.isAddVal(L)?x[E]=null:_.isRemoveVal(L)?x[E]=rt:o.warn(\"unrecognized full object value\",e)),M.update(m,nt),h[r]||(h[r]={});var it=h[r][n];it||(it=h[r][n]={}),it[et]=L,delete e[E]}else\"reverse\"===O?(D.range?D.range.reverse():(b(P+\".autorange\",!0),D.range=[1,0]),B.autorange?m.calc=!0:m.plot=!0):(s._has(\"scatter-like\")&&s._has(\"regl\")&&\"dragmode\"===E&&(\"lasso\"===L||\"select\"===L)&&\"lasso\"!==F&&\"select\"!==F?m.plot=!0:N?M.update(m,N):m.calc=!0,C.set(L))}}for(r in h){_.applyContainerArrayChanges(t,o.nestedProperty(a,r),h[r],m)||(m.plot=!0)}var at=s._axisConstraintGroups||[];for(k in T)for(n=0;n<at.length;n++){var ot=at[n];if(ot[k])for(var st in m.calc=!0,ot)T[st]||(p.getFromId(t,st)._constraintShrinkable=!0)}return(H(t)||e.height||e.width)&&(m.plot=!0),(m.plot||m.calc)&&(m.layoutReplot=!0),{flags:m,rangesAltered:T,undoit:x,redoit:y,eventData:o.extendDeep({},y)}}function H(t){var e=t._fullLayout,r=e.width,n=e.height;return t.layout.autosize&&f.plotAutoSize(t,t.layout,e),e.width!==r||e.height!==n}function G(t,e,r,n){var i,a,s=n.getValObject,l=n.flags,c=n.immutable,u=n.inArray,f=n.arrayIndex;function h(){var t=i.editType;u&&-1!==t.indexOf(\"arraydraw\")?o.pushUnique(l.arrays[u],f):M.update(l,i)}function p(t){return\"data_array\"===t.valType||t.arrayOk}for(a in t){if(l.calc)return;var d=t[a],g=e[a];if(\"_\"!==a.charAt(0)&&\"function\"!=typeof d&&d!==g){if((\"tick0\"===a||\"dtick\"===a)&&\"geo\"!==r[0]){var v=e.tickmode;if(\"auto\"===v||\"array\"===v||!v)continue}if((\"range\"!==a||!e.autorange)&&(\"zmin\"!==a&&\"zmax\"!==a||\"contourcarpet\"!==e.type)){var m=r.concat(a);if((i=s(m))&&(!i._compareAsJSON||JSON.stringify(d)!==JSON.stringify(g))){var y,x=i.valType,b=p(i),_=Array.isArray(d),w=Array.isArray(g);if(_&&w){var k=\"_input_\"+a,A=t[k],T=e[k];if(Array.isArray(A)&&A===T)continue}if(void 0===g)b&&_?l.calc=!0:h();else if(i._isLinkedToArray){var S=[],E=!1;u||(l.arrays[a]=S);var C=Math.min(d.length,g.length),L=Math.max(d.length,g.length);if(C!==L){if(\"arraydraw\"!==i.editType){h();continue}E=!0}for(y=0;y<C;y++)G(d[y],g[y],m.concat(y),o.extendFlat({inArray:a,arrayIndex:y},n));if(E)for(y=C;y<L;y++)S.push(y)}else!x&&o.isPlainObject(d)?G(d,g,m,n):b?_&&w?c&&(l.calc=!0):_!==w?l.calc=!0:h():_&&w&&d.length===g.length&&String(d)===String(g)||h()}}}}for(a in e)if(!(a in t||\"_\"===a.charAt(0)||\"function\"==typeof e[a])){if(p(i=s(r.concat(a)))&&Array.isArray(e[a]))return void(l.calc=!0);h()}}function W(t){var e=n.select(t),r=t._fullLayout;if(r._container=e.selectAll(\".plot-container\").data([0]),r._container.enter().insert(\"div\",\":first-child\").classed(\"plot-container\",!0).classed(\"plotly\",!0),r._paperdiv=r._container.selectAll(\".svg-container\").data([0]),r._paperdiv.enter().append(\"div\").classed(\"svg-container\",!0).style(\"position\",\"relative\"),r._glcontainer=r._paperdiv.selectAll(\".gl-container\").data([{}]),r._glcontainer.enter().append(\"div\").classed(\"gl-container\",!0),r._paperdiv.selectAll(\".main-svg\").remove(),r._paper=r._paperdiv.insert(\"svg\",\":first-child\").classed(\"main-svg\",!0),r._toppaper=r._paperdiv.append(\"svg\").classed(\"main-svg\",!0),!r._uid){var i={};n.selectAll(\"defs\").each(function(){this.id&&(i[this.id.split(\"-\")[1]]=1)}),r._uid=o.randstr(i)}r._paperdiv.selectAll(\".main-svg\").attr(y.svgAttrs),r._defs=r._paper.append(\"defs\").attr(\"id\",\"defs-\"+r._uid),r._clips=r._defs.append(\"g\").classed(\"clips\",!0),r._topdefs=r._toppaper.append(\"defs\").attr(\"id\",\"topdefs-\"+r._uid),r._topclips=r._topdefs.append(\"g\").classed(\"clips\",!0),r._bgLayer=r._paper.append(\"g\").classed(\"bglayer\",!0),r._draggers=r._paper.append(\"g\").classed(\"draglayer\",!0);var a=r._paper.append(\"g\").classed(\"layer-below\",!0);r._imageLowerLayer=a.append(\"g\").classed(\"imagelayer\",!0),r._shapeLowerLayer=a.append(\"g\").classed(\"shapelayer\",!0),r._cartesianlayer=r._paper.append(\"g\").classed(\"cartesianlayer\",!0),r._polarlayer=r._paper.append(\"g\").classed(\"polarlayer\",!0),r._ternarylayer=r._paper.append(\"g\").classed(\"ternarylayer\",!0),r._geolayer=r._paper.append(\"g\").classed(\"geolayer\",!0),r._pielayer=r._paper.append(\"g\").classed(\"pielayer\",!0),r._glimages=r._paper.append(\"g\").classed(\"glimages\",!0);var s=r._toppaper.append(\"g\").classed(\"layer-above\",!0);r._imageUpperLayer=s.append(\"g\").classed(\"imagelayer\",!0),r._shapeUpperLayer=s.append(\"g\").classed(\"shapelayer\",!0),r._infolayer=r._toppaper.append(\"g\").classed(\"infolayer\",!0),r._menulayer=r._toppaper.append(\"g\").classed(\"menulayer\",!0),r._zoomlayer=r._toppaper.append(\"g\").classed(\"zoomlayer\",!0),r._hoverlayer=r._toppaper.append(\"g\").classed(\"hoverlayer\",!0),t.emit(\"plotly_framework\")}r.update=function t(e,n,i,a){if(e=o.getGraphDiv(e),w.clearPromiseQueue(e),e.framework&&e.framework.isPolar)return Promise.resolve(e);o.isPlainObject(n)||(n={}),o.isPlainObject(i)||(i={}),Object.keys(n).length&&(e.changed=!0),Object.keys(i).length&&(e.changed=!0);var s=w.coerceTraceIndices(e,a),c=B(e,o.extendFlat({},n),s),u=c.flags,h=q(e,o.extendFlat({},i)),p=h.flags;(u.calc||p.calc)&&(e.calcdata=void 0),u.clearAxisTypes&&w.clearAxisTypes(e,s,i);var d=[];if(u.fullReplot&&p.layoutReplot){var g=e.data,v=e.layout;e.data=void 0,e.layout=void 0,d.push(function(){return r.plot(e,g,v)})}else u.fullReplot?d.push(r.plot):p.layoutReplot?d.push(k.layoutReplot):(d.push(f.previousPromises),F(e,p,h)||f.supplyDefaults(e),u.style&&d.push(k.doTraceStyle),u.colorbars&&d.push(k.doColorBars),p.legend&&d.push(k.doLegend),p.layoutstyle&&d.push(k.layoutStyles),p.axrange&&N(d,h.rangesAltered),p.ticks&&d.push(k.doTicksRelayout),p.modebar&&d.push(k.doModeBar),p.camera&&d.push(k.doCamera),d.push(S));d.push(f.rehover),l.add(e,t,[e,c.undoit,h.undoit,c.traces],t,[e,c.redoit,h.redoit,c.traces]);var m=o.syncOrAsync(d,e);return m&&m.then||(m=Promise.resolve(e)),m.then(function(){return e.emit(\"plotly_update\",{data:c.eventData,layout:h.eventData}),e})},r.react=function(t,e,n,i){var a,s;var l=(t=o.getGraphDiv(t))._fullData,h=t._fullLayout;if(o.isPlotDiv(t)&&l&&h){if(o.isPlainObject(e)){var p=e;e=p.data,n=p.layout,i=p.config,a=p.frames}var d=!1;if(i){var g=o.extendDeep({},t._context);t._context=void 0,L(t,i),d=function t(e,r){var n;for(n in e)if(\"_\"!==n.charAt(0)){var i=e[n],a=r[n];if(i!==a)if(o.isPlainObject(i)&&o.isPlainObject(a)){if(t(i,a))return!0}else{if(!Array.isArray(i)||!Array.isArray(a))return!0;if(i.length!==a.length)return!0;for(var s=0;s<i.length;s++)if(i[s]!==a[s]){if(!o.isPlainObject(i[s])||!o.isPlainObject(a[s]))return!0;if(t(i[s],a[s]))return!0}}}}(g,t._context)}t.data=e||[],w.cleanData(t.data),t.layout=n||{},w.cleanLayout(t.layout),f.supplyDefaults(t,{skipUpdateCalc:!0});var v=t._fullData,m=t._fullLayout,y=void 0===m.datarevision,x=function(t,e,r,n){if(e.length!==r.length)return{fullReplot:!0,calc:!0};var i,a,o=M.traceFlags();o.arrays={};var s={getValObject:function(t){return u.getTraceValObject(a,t)},flags:o,immutable:n,gd:t},l={};for(i=0;i<e.length;i++)a=r[i]._fullInput,f.hasMakesDataTransform(a)&&(a=r[i]),l[a.uid]||(l[a.uid]=1,G(e[i]._fullInput,a,[],s));(o.calc||o.plot)&&(o.fullReplot=!0);return o}(t,l,v,y),b=function(t,e,r,n){var i=M.layoutFlags();i.arrays={},G(e,r,[],{getValObject:function(t){return u.getLayoutValObject(r,t)},flags:i,immutable:n,gd:t}),(i.plot||i.calc)&&(i.layoutReplot=!0);return i}(t,h,m,y);H(t)&&(b.layoutReplot=!0),x.calc||b.calc?t.calcdata=void 0:f.supplyDefaultsUpdateCalc(t.calcdata,v);var _=[];if(a&&(t._transitionData={},f.createTransitionData(t),_.push(function(){return r.addFrames(t,a)})),x.fullReplot||b.layoutReplot||d)t._fullLayout._skipDefaults=!0,_.push(r.plot);else{for(var A in b.arrays){var T=b.arrays[A];if(T.length){var E=c.getComponentMethod(A,\"drawOne\");if(E!==o.noop)for(var C=0;C<T.length;C++)E(t,T[C]);else{var z=c.getComponentMethod(A,\"draw\");if(z===o.noop)throw new Error(\"cannot draw components: \"+A);z(t)}}}_.push(f.previousPromises),x.style&&_.push(k.doTraceStyle),x.colorbars&&_.push(k.doColorBars),b.legend&&_.push(k.doLegend),b.layoutstyle&&_.push(k.layoutStyles),b.axrange&&N(_),b.ticks&&_.push(k.doTicksRelayout),b.modebar&&_.push(k.doModeBar),b.camera&&_.push(k.doCamera),_.push(S)}_.push(f.rehover),(s=o.syncOrAsync(_,t))&&s.then||(s=Promise.resolve(t))}else s=r.newPlot(t,e,n,i);return s.then(function(){return t.emit(\"plotly_react\",{data:e,layout:n}),t})},r.animate=function(t,e,r){if(t=o.getGraphDiv(t),!o.isPlotDiv(t))throw new Error(\"This element is not a Plotly plot: \"+t+\". It's likely that you've failed to create a plot before animating it. For more details, see https://plot.ly/javascript/animations/\");var n=t._transitionData;n._frameQueue||(n._frameQueue=[]);var i=(r=f.supplyAnimationDefaults(r)).transition,a=r.frame;function s(t){return Array.isArray(i)?t>=i.length?i[0]:i[t]:i}function l(t){return Array.isArray(a)?t>=a.length?a[0]:a[t]:a}function c(t,e){var r=0;return function(){if(t&&++r===e)return t()}}return void 0===n._frameWaitingCnt&&(n._frameWaitingCnt=0),new Promise(function(a,u){function h(){n._currentFrame&&n._currentFrame.onComplete&&n._currentFrame.onComplete();var e=n._currentFrame=n._frameQueue.shift();if(e){var r=e.name?e.name.toString():null;t._fullLayout._currentFrame=r,n._lastFrameAt=Date.now(),n._timeToNext=e.frameOpts.duration,f.transition(t,e.frame.data,e.frame.layout,w.coerceTraceIndices(t,e.frame.traces),e.frameOpts,e.transitionOpts).then(function(){e.onComplete&&e.onComplete()}),t.emit(\"plotly_animatingframe\",{name:r,frame:e.frame,animation:{frame:e.frameOpts,transition:e.transitionOpts}})}else t.emit(\"plotly_animated\"),window.cancelAnimationFrame(n._animationRaf),n._animationRaf=null}function p(){t.emit(\"plotly_animating\"),n._lastFrameAt=-1/0,n._timeToNext=0,n._runningTransitions=0,n._currentFrame=null;var e=function(){n._animationRaf=window.requestAnimationFrame(e),Date.now()-n._lastFrameAt>n._timeToNext&&h()};e()}var d,g,v=0;function m(t){return Array.isArray(i)?v>=i.length?t.transitionOpts=i[v]:t.transitionOpts=i[0]:t.transitionOpts=i,v++,t}var y=[],x=null==e,b=Array.isArray(e);if(!x&&!b&&o.isPlainObject(e))y.push({type:\"object\",data:m(o.extendFlat({},e))});else if(x||-1!==[\"string\",\"number\"].indexOf(typeof e))for(d=0;d<n._frames.length;d++)(g=n._frames[d])&&(x||String(g.group)===String(e))&&y.push({type:\"byname\",name:String(g.name),data:m({name:g.name})});else if(b)for(d=0;d<e.length;d++){var _=e[d];-1!==[\"number\",\"string\"].indexOf(typeof _)?(_=String(_),y.push({type:\"byname\",name:_,data:m({name:_})})):o.isPlainObject(_)&&y.push({type:\"object\",data:m(o.extendFlat({},_))})}for(d=0;d<y.length;d++)if(\"byname\"===(g=y[d]).type&&!n._frameHash[g.data.name])return o.warn('animate failure: frame not found: \"'+g.data.name+'\"'),void u();-1!==[\"next\",\"immediate\"].indexOf(r.mode)&&function(){if(0!==n._frameQueue.length){for(;n._frameQueue.length;){var e=n._frameQueue.pop();e.onInterrupt&&e.onInterrupt()}t.emit(\"plotly_animationinterrupted\",[])}}(),\"reverse\"===r.direction&&y.reverse();var k=t._fullLayout._currentFrame;if(k&&r.fromcurrent){var M=-1;for(d=0;d<y.length;d++)if(\"byname\"===(g=y[d]).type&&g.name===k){M=d;break}if(M>0&&M<y.length-1){var A=[];for(d=0;d<y.length;d++)g=y[d],(\"byname\"!==y[d].type||d>M)&&A.push(g);y=A}}y.length>0?function(e){if(0!==e.length){for(var i=0;i<e.length;i++){var o;o=\"byname\"===e[i].type?f.computeFrame(t,e[i].name):e[i].data;var h=l(i),d=s(i);d.duration=Math.min(d.duration,h.duration);var g={frame:o,name:e[i].name,frameOpts:h,transitionOpts:d};i===e.length-1&&(g.onComplete=c(a,2),g.onInterrupt=u),n._frameQueue.push(g)}\"immediate\"===r.mode&&(n._lastFrameAt=-1/0),n._animationRaf||p()}}(y):(t.emit(\"plotly_animated\"),a())})},r.addFrames=function(t,e,r){if(t=o.getGraphDiv(t),null==e)return Promise.resolve();if(!o.isPlotDiv(t))throw new Error(\"This element is not a Plotly plot: \"+t+\". It's likely that you've failed to create a plot before adding frames. For more details, see https://plot.ly/javascript/animations/\");var n,i,a,s,c=t._transitionData._frames,u=t._transitionData._frameHash;if(!Array.isArray(e))throw new Error(\"addFrames failure: frameList must be an Array of frame definitions\"+e);var h=c.length+2*e.length,p=[],d={};for(n=e.length-1;n>=0;n--)if(o.isPlainObject(e[n])){var g=e[n].name,v=(u[g]||d[g]||{}).name,m=e[n].name,y=u[v]||d[v];v&&m&&\"number\"==typeof m&&y&&T<5&&(T++,o.warn('addFrames: overwriting frame \"'+(u[v]||d[v]).name+'\" with a frame whose name of type \"number\" also equates to \"'+v+'\". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'),5===T&&o.warn(\"addFrames: This API call has yielded too many of these warnings. For the rest of this call, further warnings about numeric frame names will be suppressed.\")),d[g]={name:g},p.push({frame:f.supplyFrameDefaults(e[n]),index:r&&void 0!==r[n]&&null!==r[n]?r[n]:h+n})}p.sort(function(t,e){return t.index>e.index?-1:t.index<e.index?1:0});var x=[],b=[],_=c.length;for(n=p.length-1;n>=0;n--){if(\"number\"==typeof(i=p[n].frame).name&&o.warn(\"Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings\"),!i.name)for(;u[i.name=\"frame \"+t._transitionData._counter++];);if(u[i.name]){for(a=0;a<c.length&&(c[a]||{}).name!==i.name;a++);x.push({type:\"replace\",index:a,value:i}),b.unshift({type:\"replace\",index:a,value:c[a]})}else s=Math.max(0,Math.min(p[n].index,_)),x.push({type:\"insert\",index:s,value:i}),b.unshift({type:\"delete\",index:s}),_++}var w=f.modifyFrames,k=f.modifyFrames,M=[t,b],A=[t,x];return l&&l.add(t,w,M,k,A),f.modifyFrames(t,x)},r.deleteFrames=function(t,e){if(t=o.getGraphDiv(t),!o.isPlotDiv(t))throw new Error(\"This element is not a Plotly plot: \"+t);var r,n,i=t._transitionData._frames,a=[],s=[];if(!e)for(e=[],r=0;r<i.length;r++)e.push(r);for((e=e.slice(0)).sort(),r=e.length-1;r>=0;r--)n=e[r],a.push({type:\"delete\",index:n}),s.unshift({type:\"insert\",index:n,value:i[n]});var c=f.modifyFrames,u=f.modifyFrames,h=[t,s],p=[t,a];return l&&l.add(t,c,h,u,p),f.modifyFrames(t,a)},r.purge=function(t){var e=(t=o.getGraphDiv(t))._fullLayout||{},r=t._fullData||[];return f.cleanPlot([],{},r,e),f.purge(t),s.purge(t),e._container&&e._container.remove(),delete t._context,t}},{\"../components/color\":570,\"../components/colorbar/connect\":572,\"../components/drawing\":595,\"../constants/xmlns_namespaces\":674,\"../lib\":696,\"../lib/events\":684,\"../lib/queue\":711,\"../lib/svg_text_utils\":720,\"../plots/cartesian/axes\":744,\"../plots/cartesian/constants\":750,\"../plots/cartesian/graph_interact\":754,\"../plots/plots\":808,\"../plots/polar/legacy\":816,\"../registry\":827,\"./edit_types\":727,\"./helpers\":728,\"./manage_arrays\":730,\"./plot_config\":732,\"./plot_schema\":733,\"./subroutines\":735,d3:148,\"fast-isnumeric\":214,\"has-hover\":393}],732:[function(t,e,r){\"use strict\";e.exports={staticPlot:!1,plotlyServerURL:\"https://plot.ly\",editable:!1,edits:{annotationPosition:!1,annotationTail:!1,annotationText:!1,axisTitleText:!1,colorbarPosition:!1,colorbarTitleText:!1,legendPosition:!1,legendText:!1,shapePosition:!1,titleText:!1},autosizable:!1,responsive:!1,queueLength:0,fillFrame:!1,frameMargins:0,scrollZoom:!1,doubleClick:\"reset+autosize\",showTips:!0,showAxisDragHandles:!0,showAxisRangeEntryBoxes:!0,showLink:!1,sendData:!0,linkText:\"Edit chart\",showSources:!1,displayModeBar:\"hover\",modeBarButtonsToRemove:[],modeBarButtonsToAdd:[],modeBarButtons:!1,toImageButtonOptions:{},displaylogo:!0,plotGlPixelRatio:2,setBackground:\"transparent\",topojsonURL:\"https://cdn.plot.ly/\",mapboxAccessToken:null,logging:1,globalTransforms:[],locale:\"en-US\",locales:{}}},{}],733:[function(t,e,r){\"use strict\";var n=t(\"../registry\"),i=t(\"../lib\"),a=t(\"../plots/attributes\"),o=t(\"../plots/layout_attributes\"),s=t(\"../plots/frame_attributes\"),l=t(\"../plots/animation_attributes\"),c=t(\"../plots/polar/legacy/area_attributes\"),u=t(\"../plots/polar/legacy/axis_attributes\"),f=t(\"./edit_types\"),h=i.extendFlat,p=i.extendDeepAll,d=i.isPlainObject,g=\"_isSubplotObj\",v=\"_isLinkedToArray\",m=[g,v,\"_arrayAttrRegexps\",\"_deprecated\"];function y(t,e,r){if(!t)return!1;if(t._isLinkedToArray)if(x(e[r]))r++;else if(r<e.length)return!1;for(;r<e.length;r++){var n=t[e[r]];if(!d(n))break;if(t=n,r===e.length-1)break;if(t._isLinkedToArray){if(!x(e[++r]))return!1}else if(\"info_array\"===t.valType){var i=e[++r];if(!x(i))return!1;var a=t.items;if(Array.isArray(a)){if(i>=a.length)return!1;if(2===t.dimensions){if(r++,e.length===r)return t;var o=e[r];if(!x(o))return!1;t=a[i][o]}else t=a[i]}else t=a}}return t}function x(t){return t===Math.round(t)&&t>=0}function b(t){return function(t){r.crawl(t,function(t,e,n){r.isValObject(t)?\"data_array\"===t.valType?(t.role=\"data\",n[e+\"src\"]={valType:\"string\",editType:\"none\"}):!0===t.arrayOk&&(n[e+\"src\"]={valType:\"string\",editType:\"none\"}):d(t)&&(t.role=\"object\")})}(t),function(t){r.crawl(t,function(t,e,r){if(!t)return;var n=t[v];if(!n)return;delete t[v],r[e]={items:{}},r[e].items[n]=t,r[e].role=\"object\"})}(t),function(t){!function t(e){for(var r in e)if(d(e[r]))t(e[r]);else if(Array.isArray(e[r]))for(var n=0;n<e[r].length;n++)t(e[r][n]);else e[r]instanceof RegExp&&(e[r]=e[r].toString())}(t)}(t),t}function _(t,e,r){var n=i.nestedProperty(t,r),a=p({},e.layoutAttributes);a[g]=!0,n.set(a)}function w(t,e,r){var n=i.nestedProperty(t,r);n.set(p(n.get()||{},e))}r.IS_SUBPLOT_OBJ=g,r.IS_LINKED_TO_ARRAY=v,r.DEPRECATED=\"_deprecated\",r.UNDERSCORE_ATTRS=m,r.get=function(){var t={};n.allTypes.concat(\"area\").forEach(function(e){t[e]=function(t){var e,o;\"area\"===t?(e={attributes:c},o={}):(e=n.modules[t]._module,o=e.basePlotModule);var s={type:null},l=p({},a),u=p({},e.attributes);r.crawl(u,function(t,e,r,n,a){i.nestedProperty(l,a).set(void 0),void 0===t&&i.nestedProperty(u,a).set(void 0)}),p(s,l),p(s,u),o.attributes&&p(s,o.attributes);s.type=t;var f={meta:e.meta||{},attributes:b(s)};if(e.layoutAttributes){var h={};p(h,e.layoutAttributes),f.layoutAttributes=b(h)}return f}(e)});var e,d={};return Object.keys(n.transformsRegistry).forEach(function(t){d[t]=function(t){var e=n.transformsRegistry[t],r=p({},e.attributes);return Object.keys(n.componentsRegistry).forEach(function(e){var i=n.componentsRegistry[e];i.schema&&i.schema.transforms&&i.schema.transforms[t]&&Object.keys(i.schema.transforms[t]).forEach(function(e){w(r,i.schema.transforms[t][e],e)})}),{attributes:b(r)}}(t)}),{defs:{valObjects:i.valObjectMeta,metaKeys:m.concat([\"description\",\"role\",\"editType\",\"impliedEdits\"]),editType:{traces:f.traces,layout:f.layout},impliedEdits:{}},traces:t,layout:function(){var t,e,r={};for(t in p(r,o),n.subplotsRegistry)if((e=n.subplotsRegistry[t]).layoutAttributes)if(Array.isArray(e.attr))for(var i=0;i<e.attr.length;i++)_(r,e,e.attr[i]);else{var a=\"subplot\"===e.attr?e.name:e.attr;_(r,e,a)}for(t in r=function(t){return h(t,{radialaxis:u.radialaxis,angularaxis:u.angularaxis}),h(t,u.layout),t}(r),n.componentsRegistry){var s=(e=n.componentsRegistry[t]).schema;if(s&&(s.subplots||s.layout)){var l=s.subplots;if(l&&l.xaxis&&!l.yaxis)for(var c in l.xaxis)delete r.yaxis[c]}else e.layoutAttributes&&w(r,e.layoutAttributes,e.name)}return{layoutAttributes:b(r)}}(),transforms:d,frames:(e={frames:i.extendDeepAll({},s)},b(e),e.frames),animation:b(l)}},r.crawl=function(t,e,n,i){var a=n||0;i=i||\"\",Object.keys(t).forEach(function(n){var o=t[n];if(-1===m.indexOf(n)){var s=(i?i+\".\":\"\")+n;e(o,n,t,a,s),r.isValObject(o)||d(o)&&\"impliedEdits\"!==n&&r.crawl(o,e,a+1,s)}})},r.isValObject=function(t){return t&&void 0!==t.valType},r.findArrayAttributes=function(t){var e,n,o=[],s=[],l=[];function c(t,r,a,c){s=s.slice(0,c).concat([r]),l=l.slice(0,c).concat([t&&t._isLinkedToArray]),t&&(\"data_array\"===t.valType||!0===t.arrayOk)&&!(\"colorbar\"===s[c-1]&&(\"ticktext\"===r||\"tickvals\"===r))&&function t(e,r,a){var c=e[s[r]];var u=a+s[r];if(r===s.length-1)i.isArrayOrTypedArray(c)&&o.push(n+u);else if(l[r]){if(Array.isArray(c))for(var f=0;f<c.length;f++)i.isPlainObject(c[f])&&t(c[f],r+1,u+\"[\"+f+\"].\")}else i.isPlainObject(c)&&t(c,r+1,u+\".\")}(e,0,\"\")}e=t,n=\"\",r.crawl(a,c),t._module&&t._module.attributes&&r.crawl(t._module.attributes,c);var u=t.transforms;if(u)for(var f=0;f<u.length;f++){var h=u[f],p=h._module;p&&(n=\"transforms[\"+f+\"].\",e=h,r.crawl(p.attributes,c))}return o},r.getTraceValObject=function(t,e){var r,i,o=e[0],s=1;if(\"transforms\"===o){if(1===e.length)return a.transforms;var l=t.transforms;if(!Array.isArray(l)||!l.length)return!1;var u=e[1];if(!x(u)||u>=l.length)return!1;i=(r=(n.transformsRegistry[l[u].type]||{}).attributes)&&r[e[2]],s=3}else if(\"area\"===t.type)i=c[o];else{var f=t._module;if(f||(f=(n.modules[t.type||a.type.dflt]||{})._module),!f)return!1;if(!(i=(r=f.attributes)&&r[o])){var h=f.basePlotModule;h&&h.attributes&&(i=h.attributes[o])}i||(i=a[o])}return y(i,e,s)},r.getLayoutValObject=function(t,e){return y(function(t,e){var r,i,a,s,l=t._basePlotModules;if(l){var c;for(r=0;r<l.length;r++){if((a=l[r]).attrRegex&&a.attrRegex.test(e)){if(a.layoutAttrOverrides)return a.layoutAttrOverrides;!c&&a.layoutAttributes&&(c=a.layoutAttributes)}var f=a.baseLayoutAttrOverrides;if(f&&e in f)return f[e]}if(c)return c}var h=t._modules;if(h)for(r=0;r<h.length;r++)if((s=h[r].layoutAttributes)&&e in s)return s[e];for(i in n.componentsRegistry)if(!(a=n.componentsRegistry[i]).schema&&e===a.name)return a.layoutAttributes;if(e in o)return o[e];if(\"radialaxis\"===e||\"angularaxis\"===e)return u[e];return u.layout[e]||!1}(t,e[0]),e,1)}},{\"../lib\":696,\"../plots/animation_attributes\":739,\"../plots/attributes\":741,\"../plots/frame_attributes\":772,\"../plots/layout_attributes\":799,\"../plots/polar/legacy/area_attributes\":814,\"../plots/polar/legacy/axis_attributes\":815,\"../registry\":827,\"./edit_types\":727}],734:[function(t,e,r){\"use strict\";var n=t(\"../lib\"),i=t(\"../plots/attributes\"),a=\"templateitemname\",o={name:{valType:\"string\",editType:\"none\"}};function s(t){return t&&\"string\"==typeof t}function l(t){var e=t.length-1;return\"s\"!==t.charAt(e)&&n.warn(\"bad argument to arrayDefaultKey: \"+t),t.substr(0,t.length-1)+\"defaults\"}o[a]={valType:\"string\",editType:\"calc\"},r.templatedArray=function(t,e){return e._isLinkedToArray=t,e.name=o.name,e[a]=o[a],e},r.traceTemplater=function(t){var e,r,a={};for(e in t)r=t[e],Array.isArray(r)&&r.length&&(a[e]=0);return{newTrace:function(o){var s={type:e=n.coerce(o,{},i,\"type\"),_template:null};if(e in a){r=t[e];var l=a[e]%r.length;a[e]++,s._template=r[l]}return s}}},r.newContainer=function(t,e,r){var i=t._template,a=i&&(i[e]||r&&i[r]);return n.isPlainObject(a)||(a=null),t[e]={_template:a}},r.arrayTemplater=function(t,e,r){var n=t._template,i=n&&n[l(e)],o=n&&n[e];Array.isArray(o)&&o.length||(o=[]);var c={};return{newItem:function(t){var e={name:t.name,_input:t},n=e[a]=t[a];if(!s(n))return e._template=i,e;for(var l=0;l<o.length;l++){var u=o[l];if(u.name===n)return c[n]=1,e._template=u,e}return e[r]=t[r]||!1,e._template=!1,e},defaultItems:function(){for(var t=[],e=0;e<o.length;e++){var r=o[e],n=r.name;if(s(n)&&!c[n]){var i={_template:r,name:n,_input:{_templateitemname:n}};i[a]=r[a],t.push(i),c[n]=1}}return t}}},r.arrayDefaultKey=l,r.arrayEditor=function(t,e,r){var i=(n.nestedProperty(t,e).get()||[]).length,o=r._index,s=o>=i&&(r._input||{})._templateitemname;s&&(o=i);var l,c=e+\"[\"+o+\"]\";function u(){l={},s&&(l[c]={},l[c][a]=s)}function f(t,e){s?n.nestedProperty(l[c],t).set(e):l[c+\".\"+t]=e}function h(){var t=l;return u(),t}return u(),{modifyBase:function(t,e){l[t]=e},modifyItem:f,getUpdateObj:h,applyUpdate:function(e,r){e&&f(e,r);var i=h();for(var a in i)n.nestedProperty(t,a).set(i[a])}}}},{\"../lib\":696,\"../plots/attributes\":741}],735:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../registry\"),a=t(\"../plots/plots\"),o=t(\"../lib\"),s=t(\"../lib/clear_gl_canvases\"),l=t(\"../components/color\"),c=t(\"../components/drawing\"),u=t(\"../components/titles\"),f=t(\"../components/modebar\"),h=t(\"../plots/cartesian/axes\"),p=t(\"../constants/alignment\"),d=t(\"../plots/cartesian/constraints\"),g=d.enforce,v=d.clean,m=t(\"../plots/cartesian/autorange\").doAutoRange;function y(t,e,r){for(var n=0;n<r.length;n++){var i=r[n][0],a=r[n][1];if(!(i[0]>=t[1]||i[1]<=t[0])&&(a[0]<e[1]&&a[1]>e[0]))return!0}return!1}function x(t){var e,i,a,s,u,d=t._fullLayout,g=d._size,v=g.p,m=h.list(t,\"\",!0);if(d._paperdiv.style({width:t._context.responsive&&d.autosize&&!t._context._hasZeroWidth&&!t.layout.width?\"100%\":d.width+\"px\",height:t._context.responsive&&d.autosize&&!t._context._hasZeroHeight&&!t.layout.height?\"100%\":d.height+\"px\"}).selectAll(\".main-svg\").call(c.setSize,d.width,d.height),t._context.setBackground(t,d.paper_bgcolor),r.drawMainTitle(t),f.manage(t),!d._has(\"cartesian\"))return t._promises.length&&Promise.all(t._promises);function x(t,e,r){var n=t._lw/2;return\"x\"===t._id.charAt(0)?e?\"top\"===r?e._offset-v-n:e._offset+e._length+v+n:g.t+g.h*(1-(t.position||0))+n%1:e?\"right\"===r?e._offset+e._length+v+n:e._offset-v-n:g.l+g.w*(t.position||0)+n%1}for(e=0;e<m.length;e++){var w=m[e];w.setScale();var M=w._anchorAxis;w._linepositions={},w._lw=c.crispRound(t,w.linewidth,1),w._mainLinePosition=x(w,M,w.side),w._mainMirrorPosition=w.mirror&&M?x(w,M,p.OPPOSITE_SIDE[w.side]):null,w._mainSubplot=b(w,d)}var A=[],T=[],S=[],E=1===l.opacity(d.paper_bgcolor)&&1===l.opacity(d.plot_bgcolor)&&d.paper_bgcolor===d.plot_bgcolor;for(i in d._plots)if((a=d._plots[i]).mainplot)a.bg&&a.bg.remove(),a.bg=void 0;else{var C=a.xaxis.domain,L=a.yaxis.domain,z=a.plotgroup;if(y(C,L,S)){var O=z.node(),I=a.bg=o.ensureSingle(z,\"rect\",\"bg\");O.insertBefore(I.node(),O.childNodes[0]),T.push(i)}else z.select(\"rect.bg\").remove(),S.push([C,L]),E||(A.push(i),T.push(i))}var P,D,R,B,F,N,j,V,U,q,H,G,W,Y=d._bgLayer.selectAll(\".bg\").data(A);for(Y.enter().append(\"rect\").classed(\"bg\",!0),Y.exit().remove(),Y.each(function(t){d._plots[t].bg=n.select(this)}),e=0;e<T.length;e++)a=d._plots[T[e]],s=a.xaxis,u=a.yaxis,a.bg&&a.bg.call(c.setRect,s._offset-v,u._offset-v,s._length+2*v,u._length+2*v).call(l.fill,d.plot_bgcolor).style(\"stroke-width\",0);if(!d._hasOnlyLargeSploms)for(i in d._plots){a=d._plots[i],s=a.xaxis,u=a.yaxis;var X,Z,$=a.clipId=\"clip\"+d._uid+i+\"plot\",J=o.ensureSingleById(d._clips,\"clipPath\",$,function(t){t.classed(\"plotclip\",!0).append(\"rect\")});a.clipRect=J.select(\"rect\").attr({width:s._length,height:u._length}),c.setTranslate(a.plot,s._offset,u._offset),a._hasClipOnAxisFalse?(X=null,Z=$):(X=$,Z=null),c.setClipUrl(a.plot,X),a.layerClipId=Z}function K(t){return\"M\"+P+\",\"+t+\"H\"+D}function Q(t){return\"M\"+s._offset+\",\"+t+\"h\"+s._length}function tt(t){return\"M\"+t+\",\"+V+\"V\"+j}function et(t){return\"M\"+t+\",\"+u._offset+\"v\"+u._length}function rt(t,e,r){if(!t.showline||i!==t._mainSubplot)return\"\";if(!t._anchorAxis)return r(t._mainLinePosition);var n=e(t._mainLinePosition);return t.mirror&&(n+=e(t._mainMirrorPosition)),n}for(i in d._plots){a=d._plots[i],s=a.xaxis,u=a.yaxis;var nt=\"M0,0\";_(s,i)&&(F=k(s,\"left\",u,m),P=s._offset-(F?v+F:0),N=k(s,\"right\",u,m),D=s._offset+s._length+(N?v+N:0),R=x(s,u,\"bottom\"),B=x(s,u,\"top\"),!(W=!s._anchorAxis||i!==s._mainSubplot)||\"allticks\"!==s.mirror&&\"all\"!==s.mirror||(s._linepositions[i]=[R,B]),nt=rt(s,K,Q),W&&s.showline&&(\"all\"===s.mirror||\"allticks\"===s.mirror)&&(nt+=K(R)+K(B)),a.xlines.style(\"stroke-width\",s._lw+\"px\").call(l.stroke,s.showline?s.linecolor:\"rgba(0,0,0,0)\")),a.xlines.attr(\"d\",nt);var it=\"M0,0\";_(u,i)&&(H=k(u,\"bottom\",s,m),j=u._offset+u._length+(H?v:0),G=k(u,\"top\",s,m),V=u._offset-(G?v:0),U=x(u,s,\"left\"),q=x(u,s,\"right\"),!(W=!u._anchorAxis||i!==u._mainSubplot)||\"allticks\"!==u.mirror&&\"all\"!==u.mirror||(u._linepositions[i]=[U,q]),it=rt(u,tt,et),W&&u.showline&&(\"all\"===u.mirror||\"allticks\"===u.mirror)&&(it+=tt(U)+tt(q)),a.ylines.style(\"stroke-width\",u._lw+\"px\").call(l.stroke,u.showline?u.linecolor:\"rgba(0,0,0,0)\")),a.ylines.attr(\"d\",it)}return h.makeClipPaths(t),t._promises.length&&Promise.all(t._promises)}function b(t,e){var r=e._subplots,n=r.cartesian.concat(r.gl2d||[]),i={_fullLayout:e},a=\"x\"===t._id.charAt(0),o=t._mainAxis._anchorAxis,s=\"\",l=\"\",c=\"\";if(o&&(c=o._mainAxis._id,s=a?t._id+c:c+t._id),!s||!e._plots[s]){s=\"\";for(var u=0;u<n.length;u++){var f=n[u],p=f.indexOf(\"y\"),d=a?f.substr(0,p):f.substr(p),g=a?f.substr(p):f.substr(0,p);if(d===t._id){l||(l=f);var v=h.getFromId(i,g);if(c&&v.overlaying===c){s=f;break}}}}return s||l}function _(t,e){return(t.ticks||t.showline)&&(e===t._mainSubplot||\"all\"===t.mirror||\"allticks\"===t.mirror)}function w(t,e,r){if(!r.showline||!r._lw)return!1;if(\"all\"===r.mirror||\"allticks\"===r.mirror)return!0;var n=r._anchorAxis;if(!n)return!1;var i=p.FROM_BL[e];return r.side===e?n.domain[i]===t.domain[i]:r.mirror&&n.domain[1-i]===t.domain[1-i]}function k(t,e,r,n){if(w(t,e,r))return r._lw;for(var i=0;i<n.length;i++){var a=n[i];if(a._mainAxis===r._mainAxis&&w(t,e,a))return a._lw}return 0}r.layoutStyles=function(t){return o.syncOrAsync([a.doAutoMargin,x],t)},r.drawMainTitle=function(t){var e=t._fullLayout;u.draw(t,\"gtitle\",{propContainer:e,propName:\"title\",placeholder:e._dfltTitle.plot,attributes:{x:e.width/2,y:e._size.t/2,\"text-anchor\":\"middle\"}})},r.doTraceStyle=function(t){var e,n=t.calcdata,o=[];for(e=0;e<n.length;e++){var l=n[e],c=l[0]||{},u=c.trace||{},f=u._module||{},h=f.arraysToCalcdata;h&&h(l,u);var p=f.editStyle;p&&o.push({fn:p,cd0:c})}if(o.length){for(e=0;e<o.length;e++){var d=o[e];d.fn(t,d.cd0)}s(t),r.redrawReglTraces(t)}return a.style(t),i.getComponentMethod(\"legend\",\"draw\")(t),a.previousPromises(t)},r.doColorBars=function(t){for(var e=0;e<t.calcdata.length;e++){var r=t.calcdata[e][0];if((r.t||{}).cb){var n=r.trace,o=r.t.cb;i.traceIs(n,\"contour\")&&o.line({width:!1!==n.contours.showlines?n.line.width:0,dash:n.line.dash,color:\"line\"===n.contours.coloring?o._opts.line.color:n.line.color});var s=n._module.colorbar.container,l=(s?n[s]:n).colorbar;o.options(l)()}}return a.previousPromises(t)},r.layoutReplot=function(t){var e=t.layout;return t.layout=void 0,i.call(\"plot\",t,\"\",e)},r.doLegend=function(t){return i.getComponentMethod(\"legend\",\"draw\")(t),a.previousPromises(t)},r.doTicksRelayout=function(t){return h.doTicks(t,\"redraw\"),t._fullLayout._hasOnlyLargeSploms&&(i.subplotsRegistry.splom.updateGrid(t),s(t),r.redrawReglTraces(t)),r.drawMainTitle(t),a.previousPromises(t)},r.doModeBar=function(t){var e=t._fullLayout;f.manage(t);for(var r=0;r<e._basePlotModules.length;r++){var n=e._basePlotModules[r].updateFx;n&&n(t)}return a.previousPromises(t)},r.doCamera=function(t){for(var e=t._fullLayout,r=e._subplots.gl3d,n=0;n<r.length;n++){var i=e[r[n]];i._scene.setCamera(i.camera)}},r.drawData=function(t){var e,n=t._fullLayout,o=t.calcdata;for(e=0;e<o.length;e++){var l=o[e][0].trace;!0===l.visible&&l._module.colorbar||n._infolayer.select(\".cb\"+l.uid).remove()}s(t);var c=n._basePlotModules;for(e=0;e<c.length;e++)c[e].plot(t);return r.redrawReglTraces(t),a.style(t),i.getComponentMethod(\"shapes\",\"draw\")(t),i.getComponentMethod(\"annotations\",\"draw\")(t),n._replotting=!1,a.previousPromises(t)},r.redrawReglTraces=function(t){var e=t._fullLayout;if(e._has(\"regl\")){var r,n,i=t._fullData,a=[],s=[];for(e._hasOnlyLargeSploms&&e._splomGrid.draw(),r=0;r<i.length;r++){var l=i[r];!0===l.visible&&(\"splom\"===l.type?e._splomScenes[l.uid].draw():\"scattergl\"===l.type?o.pushUnique(a,l.xaxis+l.yaxis):\"scatterpolargl\"===l.type&&o.pushUnique(s,l.subplot))}for(r=0;r<a.length;r++)(n=e._plots[a[r]])._scene&&n._scene.draw();for(r=0;r<s.length;r++)(n=e[s[r]]._subplot)._scene&&n._scene.draw()}},r.doAutoRangeAndConstraints=function(t){for(var e=h.list(t,\"\",!0),r=0;r<e.length;r++){var n=e[r];v(t,n),m(t,n)}g(t)},r.finalDraw=function(t){i.getComponentMethod(\"shapes\",\"draw\")(t),i.getComponentMethod(\"images\",\"draw\")(t),i.getComponentMethod(\"annotations\",\"draw\")(t),i.getComponentMethod(\"rangeslider\",\"draw\")(t),i.getComponentMethod(\"rangeselector\",\"draw\")(t)},r.drawMarginPushers=function(t){i.getComponentMethod(\"legend\",\"draw\")(t),i.getComponentMethod(\"rangeselector\",\"draw\")(t),i.getComponentMethod(\"sliders\",\"draw\")(t),i.getComponentMethod(\"updatemenus\",\"draw\")(t)}},{\"../components/color\":570,\"../components/drawing\":595,\"../components/modebar\":633,\"../components/titles\":661,\"../constants/alignment\":668,\"../lib\":696,\"../lib/clear_gl_canvases\":680,\"../plots/cartesian/autorange\":743,\"../plots/cartesian/axes\":744,\"../plots/cartesian/constraints\":752,\"../plots/plots\":808,\"../registry\":827,d3:148}],736:[function(t,e,r){\"use strict\";var n=t(\"../lib\"),i=n.isPlainObject,a=t(\"./plot_schema\"),o=t(\"../plots/plots\"),s=t(\"../plots/attributes\"),l=t(\"./plot_template\"),c=t(\"./plot_config\");function u(t,e){t=n.extendDeep({},t);var r,a,o=Object.keys(t).sort();function s(e,r,n){if(i(r)&&i(e))u(e,r);else if(Array.isArray(r)&&Array.isArray(e)){var o=l.arrayTemplater({_template:t},n);for(a=0;a<r.length;a++){var s=r[a],c=o.newItem(s)._template;c&&u(c,s)}var f=o.defaultItems();for(a=0;a<f.length;a++)r.push(f[a]._template);for(a=0;a<r.length;a++)delete r[a].templateitemname}}for(r=0;r<o.length;r++){var c=o[r],h=t[c];if(c in e?s(h,e[c],c):e[c]=h,f(c)===c)for(var p in e){var d=f(p);p===d||d!==c||p in t||s(h,e[p],c)}}}function f(t){return t.replace(/[0-9]+$/,\"\")}function h(t,e,r,a,o){var s=o&&r(o);for(var c in t){var u=t[c],d=p(t,c,a),g=p(t,c,o),v=r(g);if(!v){var m=f(c);m!==c&&(v=r(g=p(t,m,o)))}if((!s||s!==v)&&!(!v||v._noTemplating||\"data_array\"===v.valType||v.arrayOk&&Array.isArray(u)))if(!v.valType&&i(u))h(u,e,r,d,g);else if(v._isLinkedToArray&&Array.isArray(u))for(var y=!1,x=0,b={},_=0;_<u.length;_++){var w=u[_];if(i(w)){var k=w.name;if(k)b[k]||(h(w,e,r,p(u,x,d),p(u,x,g)),x++,b[k]=1);else if(!y){var M=p(t,l.arrayDefaultKey(c),a),A=p(u,x,d);h(w,e,r,A,p(u,x,g));var T=n.nestedProperty(e,A);n.nestedProperty(e,M).set(T.get()),T.set(null),y=!0}}}else{n.nestedProperty(e,d).set(u)}}}function p(t,e,r){return r?Array.isArray(t)?r+\"[\"+e+\"]\":r+\".\"+e:e}function d(t){for(var e=0;e<t.length;e++)if(i(t[e]))return!0}function g(t){var e;switch(t.code){case\"data\":e=\"The template has no key data.\";break;case\"layout\":e=\"The template has no key layout.\";break;case\"missing\":e=t.path?\"There are no templates for item \"+t.path+\" with name \"+t.templateitemname:\"There are no templates for trace \"+t.index+\", of type \"+t.traceType+\".\";break;case\"unused\":e=t.path?\"The template item at \"+t.path+\" was not used in constructing the plot.\":t.dataCount?\"Some of the templates of type \"+t.traceType+\" were not used. The template has \"+t.templateCount+\" traces, the data only has \"+t.dataCount+\" of this type.\":\"The template has \"+t.templateCount+\" traces of type \"+t.traceType+\" but there are none in the data.\";break;case\"reused\":e=\"Some of the templates of type \"+t.traceType+\" were used more than once. The template has \"+t.templateCount+\" traces, the data has \"+t.dataCount+\" of this type.\"}return t.msg=e,t}r.makeTemplate=function(t){t=n.extendDeep({_context:c},{data:t.data,layout:t.layout}),o.supplyDefaults(t);var e=t.data||[],r=t.layout||{};r._basePlotModules=t._fullLayout._basePlotModules,r._modules=t._fullLayout._modules;var l={data:{},layout:{}};e.forEach(function(t){var e={};h(t,e,function(t,e){return a.getTraceValObject(t,n.nestedProperty({},e).parts)}.bind(null,t));var r=n.coerce(t,{},s,\"type\"),i=l.data[r];i||(i=l.data[r]=[]),i.push(e)}),h(r,l.layout,function(t,e){return a.getLayoutValObject(t,n.nestedProperty({},e).parts)}.bind(null,r)),delete l.layout.template;var f=r.template;if(i(f)){var p,d,g,v,m,y,x=f.layout;i(x)&&u(x,l.layout);var b=f.data;if(i(b)){for(d in l.data)if(g=b[d],Array.isArray(g)){for(y=(m=l.data[d]).length,v=g.length,p=0;p<y;p++)u(g[p%v],m[p]);for(p=y;p<v;p++)m.push(n.extendDeep({},g[p]))}for(d in b)d in l.data||(l.data[d]=n.extendDeep([],b[d]))}}return l},r.validateTemplate=function(t,e){var r=n.extendDeep({},{_context:c,data:t.data,layout:t.layout}),a=r.layout||{};i(e)||(e=a.template||{});var s=e.layout,l=e.data,u=[];r.layout=a,r.layout.template=e,o.supplyDefaults(r);var h=r._fullLayout,v=r._fullData,m={};if(i(s)?(!function t(e,r){for(var n in e)if(\"_\"!==n.charAt(0)&&i(e[n])){var a,o=f(n),s=[];for(a=0;a<r.length;a++)s.push(p(e,n,r[a])),o!==n&&s.push(p(e,o,r[a]));for(a=0;a<s.length;a++)m[s[a]]=1;t(e[n],s)}}(h,[\"layout\"]),function t(e,r){for(var n in e)if(-1===n.indexOf(\"defaults\")&&i(e[n])){var a=p(e,n,r);m[a]?t(e[n],a):u.push({code:\"unused\",path:a})}}(s,\"layout\")):u.push({code:\"layout\"}),i(l)){for(var y,x={},b=0;b<v.length;b++){var _=v[b];x[y=_.type]=(x[y]||0)+1,_._fullInput._template||u.push({code:\"missing\",index:_._fullInput.index,traceType:y})}for(y in l){var w=l[y].length,k=x[y]||0;w>k?u.push({code:\"unused\",traceType:y,templateCount:w,dataCount:k}):k>w&&u.push({code:\"reused\",traceType:y,templateCount:w,dataCount:k})}}else u.push({code:\"data\"});if(function t(e,r){for(var n in e)if(\"_\"!==n.charAt(0)){var a=e[n],o=p(e,n,r);i(a)?(Array.isArray(e)&&!1===a._template&&a.templateitemname&&u.push({code:\"missing\",path:o,templateitemname:a.templateitemname}),t(a,o)):Array.isArray(a)&&d(a)&&t(a,o)}}({data:v,layout:h},\"\"),u.length)return u.map(g)}},{\"../lib\":696,\"../plots/attributes\":741,\"../plots/plots\":808,\"./plot_config\":732,\"./plot_schema\":733,\"./plot_template\":734}],737:[function(t,e,r){\"use strict\";var n=t(\"./plot_api\"),i=t(\"../lib\"),a=t(\"../snapshot/helpers\"),o=t(\"../snapshot/tosvg\"),s=t(\"../snapshot/svgtoimg\"),l={format:{valType:\"enumerated\",values:[\"png\",\"jpeg\",\"webp\",\"svg\"],dflt:\"png\"},width:{valType:\"number\",min:1},height:{valType:\"number\",min:1},scale:{valType:\"number\",min:0,dflt:1},setBackground:{valType:\"any\",dflt:!1},imageDataOnly:{valType:\"boolean\",dflt:!1}},c=/^data:image\\/\\w+;base64,/;e.exports=function(t,e){var r,u,f;function h(t){return!(t in e)||i.validate(e[t],l[t])}if(e=e||{},i.isPlainObject(t)?(r=t.data||[],u=t.layout||{},f=t.config||{}):(t=i.getGraphDiv(t),r=i.extendDeep([],t.data),u=i.extendDeep({},t.layout),f=t._context),!h(\"width\")||!h(\"height\"))throw new Error(\"Height and width should be pixel values.\");if(!h(\"format\"))throw new Error(\"Image format is not jpeg, png, svg or webp.\");var p={};function d(t,r){return i.coerce(e,p,l,t,r)}var g=d(\"format\"),v=d(\"width\"),m=d(\"height\"),y=d(\"scale\"),x=d(\"setBackground\"),b=d(\"imageDataOnly\"),_=document.createElement(\"div\");_.style.position=\"absolute\",_.style.left=\"-5000px\",document.body.appendChild(_);var w=i.extendFlat({},u);v&&(w.width=v),m&&(w.height=m);var k=i.extendFlat({},f,{staticPlot:!0,setBackground:x}),M=a.getRedrawFunc(_);function A(){return new Promise(function(t){setTimeout(t,a.getDelay(_._fullLayout))})}function T(){return new Promise(function(t,e){var r=o(_,g,y),a=_._fullLayout.width,l=_._fullLayout.height;if(n.purge(_),document.body.removeChild(_),\"svg\"===g)return t(b?r:\"data:image/svg+xml,\"+encodeURIComponent(r));var c=document.createElement(\"canvas\");c.id=i.randstr(),s({format:g,width:a,height:l,scale:y,canvas:c,svg:r,promise:!0}).then(t).catch(e)})}return new Promise(function(t,e){n.plot(_,r,w,k).then(M).then(A).then(T).then(function(e){t(function(t){return b?t.replace(c,\"\"):t}(e))}).catch(function(t){e(t)})})}},{\"../lib\":696,\"../snapshot/helpers\":831,\"../snapshot/svgtoimg\":833,\"../snapshot/tosvg\":835,\"./plot_api\":731}],738:[function(t,e,r){\"use strict\";var n=t(\"../lib\"),i=t(\"../plots/plots\"),a=t(\"./plot_schema\"),o=t(\"./plot_config\"),s=n.isPlainObject,l=Array.isArray,c=n.isArrayOrTypedArray;function u(t,e,r,i,a,o){o=o||[];for(var f=Object.keys(t),h=0;h<f.length;h++){var v=f[h];if(\"transforms\"!==v){var m=o.slice();m.push(v);var y=t[v],x=e[v],b=g(r,v),_=\"info_array\"===(b||{}).valType,w=\"colorscale\"===(b||{}).valType,k=(b||{}).items;if(d(r,v))if(s(y)&&s(x))u(y,x,b,i,a,m);else if(_&&l(y)){y.length>x.length&&i.push(p(\"unused\",a,m.concat(x.length)));var M,A,T,S,E,C=x.length,L=Array.isArray(k);if(L&&(C=Math.min(C,k.length)),2===b.dimensions)for(A=0;A<C;A++)if(l(y[A])){y[A].length>x[A].length&&i.push(p(\"unused\",a,m.concat(A,x[A].length)));var z=x[A].length;for(M=0;M<(L?Math.min(z,k[A].length):z);M++)T=L?k[A][M]:k,S=y[A][M],E=x[A][M],n.validate(S,T)?E!==S&&E!==+S&&i.push(p(\"dynamic\",a,m.concat(A,M),S,E)):i.push(p(\"value\",a,m.concat(A,M),S))}else i.push(p(\"array\",a,m.concat(A),y[A]));else for(A=0;A<C;A++)T=L?k[A]:k,S=y[A],E=x[A],n.validate(S,T)?E!==S&&E!==+S&&i.push(p(\"dynamic\",a,m.concat(A),S,E)):i.push(p(\"value\",a,m.concat(A),S))}else if(b.items&&!_&&l(y)){var O,I,P=k[Object.keys(k)[0]],D=[];for(O=0;O<x.length;O++){var R=x[O]._index||O;if((I=m.slice()).push(R),s(y[R])&&s(x[O])){D.push(R);var B=y[R],F=x[O];s(B)&&!1!==B.visible&&!1===F.visible?i.push(p(\"invisible\",a,I)):u(B,F,P,i,a,I)}}for(O=0;O<y.length;O++)(I=m.slice()).push(O),s(y[O])?-1===D.indexOf(O)&&i.push(p(\"unused\",a,I)):i.push(p(\"object\",a,I,y[O]))}else!s(y)&&s(x)?i.push(p(\"object\",a,m,y)):c(y)||!c(x)||_||w?v in e?n.validate(y,b)?\"enumerated\"===b.valType&&(b.coerceNumber&&y!==+x||y!==x)&&i.push(p(\"dynamic\",a,m,y,x)):i.push(p(\"value\",a,m,y)):i.push(p(\"unused\",a,m,y)):i.push(p(\"array\",a,m,y));else i.push(p(\"schema\",a,m))}}return i}e.exports=function(t,e){var r,c,f=a.get(),h=[],d={_context:n.extendFlat({},o)};l(t)?(d.data=n.extendDeep([],t),r=t):(d.data=[],r=[],h.push(p(\"array\",\"data\"))),s(e)?(d.layout=n.extendDeep({},e),c=e):(d.layout={},c={},arguments.length>1&&h.push(p(\"object\",\"layout\"))),i.supplyDefaults(d);for(var g=d._fullData,v=r.length,m=0;m<v;m++){var y=r[m],x=[\"data\",m];if(s(y)){var b=g[m],_=b.type,w=f.traces[_].attributes;w.type={valType:\"enumerated\",values:[_]},!1===b.visible&&!1!==y.visible&&h.push(p(\"invisible\",x)),u(y,b,w,h,x);var k=y.transforms,M=b.transforms;if(k){l(k)||h.push(p(\"array\",x,[\"transforms\"])),x.push(\"transforms\");for(var A=0;A<k.length;A++){var T=[\"transforms\",A],S=k[A].type;if(s(k[A])){var E=f.transforms[S]?f.transforms[S].attributes:{};E.type={valType:\"enumerated\",values:Object.keys(f.transforms)},u(k[A],M[A],E,h,x,T)}else h.push(p(\"object\",x,T))}}}else h.push(p(\"object\",x))}return u(c,d._fullLayout,function(t,e){for(var r=t.layout.layoutAttributes,i=0;i<e.length;i++){var a=e[i],o=t.traces[a.type],s=o.layoutAttributes;s&&(a.subplot?n.extendFlat(r[o.attributes.subplot.dflt],s):n.extendFlat(r,s))}return r}(f,g),h,\"layout\"),0===h.length?void 0:h};var f={object:function(t,e){return(\"layout\"===t&&\"\"===e?\"The layout argument\":\"data\"===t[0]&&\"\"===e?\"Trace \"+t[1]+\" in the data argument\":h(t)+\"key \"+e)+\" must be linked to an object container\"},array:function(t,e){return(\"data\"===t?\"The data argument\":h(t)+\"key \"+e)+\" must be linked to an array container\"},schema:function(t,e){return h(t)+\"key \"+e+\" is not part of the schema\"},unused:function(t,e,r){var n=s(r)?\"container\":\"key\";return h(t)+n+\" \"+e+\" did not get coerced\"},dynamic:function(t,e,r,n){return[h(t)+\"key\",e,\"(set to '\"+r+\"')\",\"got reset to\",\"'\"+n+\"'\",\"during defaults.\"].join(\" \")},invisible:function(t,e){return(e?h(t)+\"item \"+e:\"Trace \"+t[1])+\" got defaulted to be not visible\"},value:function(t,e,r){return[h(t)+\"key \"+e,\"is set to an invalid value (\"+r+\")\"].join(\" \")}};function h(t){return l(t)?\"In data trace \"+t[1]+\", \":\"In \"+t+\", \"}function p(t,e,r,i,a){var o,s;r=r||\"\",l(e)?(o=e[0],s=e[1]):(o=e,s=null);var c=function(t){if(!l(t))return String(t);for(var e=\"\",r=0;r<t.length;r++){var n=t[r];\"number\"==typeof n?e=e.substr(0,e.length-1)+\"[\"+n+\"]\":e+=n,r<t.length-1&&(e+=\".\")}return e}(r),u=f[t](e,c,i,a);return n.log(u),{code:t,container:o,trace:s,path:r,astr:c,msg:u}}function d(t,e){var r=m(e),n=r.keyMinusId,i=r.id;return!!(n in t&&t[n]._isSubplotObj&&i)||e in t}function g(t,e){return e in t?t[e]:t[m(e).keyMinusId]}var v=n.counterRegex(\"([a-z]+)\");function m(t){var e=t.match(v);return{keyMinusId:e&&e[1],id:e&&e[2]}}},{\"../lib\":696,\"../plots/plots\":808,\"./plot_config\":732,\"./plot_schema\":733}],739:[function(t,e,r){\"use strict\";e.exports={mode:{valType:\"enumerated\",dflt:\"afterall\",values:[\"immediate\",\"next\",\"afterall\"]},direction:{valType:\"enumerated\",values:[\"forward\",\"reverse\"],dflt:\"forward\"},fromcurrent:{valType:\"boolean\",dflt:!1},frame:{duration:{valType:\"number\",min:0,dflt:500},redraw:{valType:\"boolean\",dflt:!0}},transition:{duration:{valType:\"number\",min:0,dflt:500},easing:{valType:\"enumerated\",dflt:\"cubic-in-out\",values:[\"linear\",\"quad\",\"cubic\",\"sin\",\"exp\",\"circle\",\"elastic\",\"back\",\"bounce\",\"linear-in\",\"quad-in\",\"cubic-in\",\"sin-in\",\"exp-in\",\"circle-in\",\"elastic-in\",\"back-in\",\"bounce-in\",\"linear-out\",\"quad-out\",\"cubic-out\",\"sin-out\",\"exp-out\",\"circle-out\",\"elastic-out\",\"back-out\",\"bounce-out\",\"linear-in-out\",\"quad-in-out\",\"cubic-in-out\",\"sin-in-out\",\"exp-in-out\",\"circle-in-out\",\"elastic-in-out\",\"back-in-out\",\"bounce-in-out\"]}}}},{}],740:[function(t,e,r){\"use strict\";var n=t(\"../lib\"),i=t(\"../plot_api/plot_template\");e.exports=function(t,e,r){var a,o,s=r.name,l=r.inclusionAttr||\"visible\",c=e[s],u=n.isArrayOrTypedArray(t[s])?t[s]:[],f=e[s]=[],h=i.arrayTemplater(e,s,l);for(a=0;a<u.length;a++){var p=u[a];n.isPlainObject(p)?o=h.newItem(p):(o=h.newItem({}))[l]=!1,o._index=a,!1!==o[l]&&r.handleItemDefaults(p,o,e,r),f.push(o)}var d=h.defaultItems();for(a=0;a<d.length;a++)(o=d[a])._index=f.length,r.handleItemDefaults({},o,e,r,{}),f.push(o);if(n.isArrayOrTypedArray(c)){var g=Math.min(c.length,f.length);for(a=0;a<g;a++)n.relinkPrivateKeys(f[a],c[a])}return f}},{\"../lib\":696,\"../plot_api/plot_template\":734}],741:[function(t,e,r){\"use strict\";var n=t(\"../components/fx/attributes\");e.exports={type:{valType:\"enumerated\",values:[],dflt:\"scatter\",editType:\"calc+clearAxisTypes\",_noTemplating:!0},visible:{valType:\"enumerated\",values:[!0,!1,\"legendonly\"],dflt:!0,editType:\"calc\"},showlegend:{valType:\"boolean\",dflt:!0,editType:\"style\"},legendgroup:{valType:\"string\",dflt:\"\",editType:\"style\"},opacity:{valType:\"number\",min:0,max:1,dflt:1,editType:\"style\"},name:{valType:\"string\",editType:\"style\"},uid:{valType:\"string\",editType:\"plot\"},ids:{valType:\"data_array\",editType:\"calc\"},customdata:{valType:\"data_array\",editType:\"calc\"},selectedpoints:{valType:\"any\",editType:\"calc\"},hoverinfo:{valType:\"flaglist\",flags:[\"x\",\"y\",\"z\",\"text\",\"name\"],extras:[\"all\",\"none\",\"skip\"],arrayOk:!0,dflt:\"all\",editType:\"none\"},hoverlabel:n.hoverlabel,stream:{token:{valType:\"string\",noBlank:!0,strict:!0,editType:\"calc\"},maxpoints:{valType:\"number\",min:0,max:1e4,dflt:500,editType:\"calc\"},editType:\"calc\"},transforms:{_isLinkedToArray:\"transform\",editType:\"calc\"}}},{\"../components/fx/attributes\":604}],742:[function(t,e,r){\"use strict\";e.exports={xaxis:{valType:\"subplotid\",dflt:\"x\",editType:\"calc+clearAxisTypes\"},yaxis:{valType:\"subplotid\",dflt:\"y\",editType:\"calc+clearAxisTypes\"}}},{}],743:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../../lib\"),a=t(\"../../constants/numerical\").FP_SAFE;function o(t,e){var r,n,a=[],o=s(e),c=l(t,e),u=c.min,f=c.max;if(0===u.length||0===f.length)return i.simpleMap(e.range,e.r2l);var h=u[0].val,p=f[0].val;for(r=1;r<u.length&&h===p;r++)h=Math.min(h,u[r].val);for(r=1;r<f.length&&h===p;r++)p=Math.max(p,f[r].val);var d=!1;if(e.range){var g=i.simpleMap(e.range,e.r2l);d=g[1]<g[0]}\"reversed\"===e.autorange&&(d=!0,e.autorange=!0);var v,m,y,x,b,_,w=e.rangemode,k=\"tozero\"===w,M=\"nonnegative\"===w,A=e._length,T=A/10,S=0;for(r=0;r<u.length;r++)for(v=u[r],n=0;n<f.length;n++)(_=(m=f[n]).val-v.val)>0&&((b=A-o(v)-o(m))>T?_/b>S&&(y=v,x=m,S=_/b):_/A>S&&(y={val:v.val,pad:0},x={val:m.val,pad:0},S=_/A));if(h===p){var E=h-1,C=h+1;if(k)if(0===h)a=[0,1];else{var L=(h>0?f:u).reduce(function(t,e){return Math.max(t,o(e))},0),z=h/(1-Math.min(.5,L/A));a=h>0?[0,z]:[z,0]}else a=M?[Math.max(0,E),Math.max(1,C)]:[E,C]}else k?(y.val>=0&&(y={val:0,pad:0}),x.val<=0&&(x={val:0,pad:0})):M&&(y.val-S*o(y)<0&&(y={val:0,pad:0}),x.val<=0&&(x={val:1,pad:0})),S=(x.val-y.val)/(A-o(y)-o(x)),a=[y.val-S*o(y),x.val+S*o(x)];return d&&a.reverse(),i.simpleMap(a,e.l2r||Number)}function s(t){var e=t._length/20;return\"domain\"===t.constrain&&t._inputDomain&&(e*=(t._inputDomain[1]-t._inputDomain[0])/(t.domain[1]-t.domain[0])),function(t){return t.pad+(t.extrapad?e:0)}}function l(t,e){var r,n,i,a=e._id,o=t._fullData,s=t._fullLayout,l=[],f=[];function h(t,e){for(r=0;r<e.length;r++){var o=t[e[r]],s=(o._extremes||{})[a];if(!0===o.visible&&s){for(n=0;n<s.min.length;n++)i=s.min[n],c(l,i.val,i.pad,{extrapad:i.extrapad});for(n=0;n<s.max.length;n++)i=s.max[n],u(f,i.val,i.pad,{extrapad:i.extrapad})}}}return h(o,e._traceIndices),h(s.annotations||[],e._annIndices||[]),h(s.shapes||[],e._shapeIndices||[]),{min:l,max:f}}function c(t,e,r,n){f(t,e,r,n,p)}function u(t,e,r,n){f(t,e,r,n,d)}function f(t,e,r,n,i){for(var a=n.tozero,o=n.extrapad,s=!0,l=0;l<t.length&&s;l++){var c=t[l];if(i(c.val,e)&&c.pad>=r&&(c.extrapad||!o)){s=!1;break}i(e,c.val)&&c.pad<=r&&(o||!c.extrapad)&&(t.splice(l,1),l--)}if(s){var u=a&&0===e;t.push({val:e,pad:u?0:r,extrapad:!u&&o})}}function h(t){return n(t)&&Math.abs(t)<a}function p(t,e){return t<=e}function d(t,e){return t>=e}e.exports={getAutoRange:o,makePadFn:s,doAutoRange:function(t,e){e._length||e.setScale();var r;e.autorange&&(e.range=o(t,e),e._r=e.range.slice(),e._rl=i.simpleMap(e._r,e.r2l),(r=e._input).range=e.range.slice(),r.autorange=e.autorange);if(e._anchorAxis&&e._anchorAxis.rangeslider){var n=e._anchorAxis.rangeslider[e._name];n&&\"auto\"===n.rangemode&&(n.range=o(t,e)),(r=e._anchorAxis._input).rangeslider[e._name]=i.extendFlat({},n)}},findExtremes:function(t,e,r){r||(r={});t._m||t.setScale();var i,o,s,l,f,p,d,g,v,m=[],y=[],x=e.length,b=r.padded||!1,_=r.tozero&&(\"linear\"===t.type||\"-\"===t.type),w=\"log\"===t.type,k=!1;function M(t){if(Array.isArray(t))return k=!0,function(e){return Math.max(Number(t[e]||0),0)};var e=Math.max(Number(t||0),0);return function(){return e}}var A=M((t._m>0?r.ppadplus:r.ppadminus)||r.ppad||0),T=M((t._m>0?r.ppadminus:r.ppadplus)||r.ppad||0),S=M(r.vpadplus||r.vpad),E=M(r.vpadminus||r.vpad);if(!k){if(g=1/0,v=-1/0,w)for(i=0;i<x;i++)(o=e[i])<g&&o>0&&(g=o),o>v&&o<a&&(v=o);else for(i=0;i<x;i++)(o=e[i])<g&&o>-a&&(g=o),o>v&&o<a&&(v=o);e=[g,v],x=2}var C={tozero:_,extrapad:b};function L(r){s=e[r],n(s)&&(p=A(r),d=T(r),g=s-E(r),v=s+S(r),w&&g<v/10&&(g=v/10),l=t.c2l(g),f=t.c2l(v),_&&(l=Math.min(0,l),f=Math.max(0,f)),h(l)&&c(m,l,d,C),h(f)&&u(y,f,p,C))}var z=Math.min(6,x);for(i=0;i<z;i++)L(i);for(i=x-1;i>=z;i--)L(i);return{min:m,max:y}},concatExtremes:l}},{\"../../constants/numerical\":673,\"../../lib\":696,\"fast-isnumeric\":214}],744:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"fast-isnumeric\"),a=t(\"../../plots/plots\"),o=t(\"../../registry\"),s=t(\"../../lib\"),l=t(\"../../lib/svg_text_utils\"),c=t(\"../../components/titles\"),u=t(\"../../components/color\"),f=t(\"../../components/drawing\"),h=t(\"./layout_attributes\"),p=t(\"./clean_ticks\"),d=t(\"../../constants/numerical\"),g=d.ONEAVGYEAR,v=d.ONEAVGMONTH,m=d.ONEDAY,y=d.ONEHOUR,x=d.ONEMIN,b=d.ONESEC,_=d.MINUS_SIGN,w=d.BADNUM,k=t(\"../../constants/alignment\").MID_SHIFT,M=t(\"../../constants/alignment\").LINE_SPACING,A=e.exports={};A.setConvert=t(\"./set_convert\");var T=t(\"./axis_autotype\"),S=t(\"./axis_ids\");A.id2name=S.id2name,A.name2id=S.name2id,A.cleanId=S.cleanId,A.list=S.list,A.listIds=S.listIds,A.getFromId=S.getFromId,A.getFromTrace=S.getFromTrace;var E=t(\"./autorange\");A.getAutoRange=E.getAutoRange,A.findExtremes=E.findExtremes,A.coerceRef=function(t,e,r,n,i,a){var o=n.charAt(n.length-1),l=r._fullLayout._subplots[o+\"axis\"],c=n+\"ref\",u={};return i||(i=l[0]||a),a||(a=i),u[c]={valType:\"enumerated\",values:l.concat(a?[a]:[]),dflt:i},s.coerce(t,e,u,c)},A.coercePosition=function(t,e,r,n,i,a){var o,l;if(\"paper\"===n||\"pixel\"===n)o=s.ensureNumber,l=r(i,a);else{var c=A.getFromId(e,n);l=r(i,a=c.fraction2r(a)),o=c.cleanPos}t[i]=o(l)},A.cleanPosition=function(t,e,r){return(\"paper\"===r||\"pixel\"===r?s.ensureNumber:A.getFromId(e,r).cleanPos)(t)};var C=A.getDataConversions=function(t,e,r,n){var i,a=\"x\"===r||\"y\"===r||\"z\"===r?r:n;if(Array.isArray(a)){if(i={type:T(n),_categories:[]},A.setConvert(i),\"category\"===i.type)for(var o=0;o<n.length;o++)i.d2c(n[o])}else i=A.getFromTrace(t,e,a);return i?{d2c:i.d2c,c2d:i.c2d}:\"ids\"===a?{d2c:z,c2d:z}:{d2c:L,c2d:L}};function L(t){return+t}function z(t){return String(t)}A.getDataToCoordFunc=function(t,e,r,n){return C(t,e,r,n).d2c},A.counterLetter=function(t){var e=t.charAt(0);return\"x\"===e?\"y\":\"y\"===e?\"x\":void 0},A.minDtick=function(t,e,r,n){-1===[\"log\",\"category\"].indexOf(t.type)&&n?void 0===t._minDtick?(t._minDtick=e,t._forceTick0=r):t._minDtick&&((t._minDtick/e+1e-6)%1<2e-6&&((r-t._forceTick0)/e%1+1.000001)%1<2e-6?(t._minDtick=e,t._forceTick0=r):((e/t._minDtick+1e-6)%1>2e-6||((r-t._forceTick0)/t._minDtick%1+1.000001)%1>2e-6)&&(t._minDtick=0)):t._minDtick=0},A.saveRangeInitial=function(t,e){for(var r=A.list(t,\"\",!0),n=!1,i=0;i<r.length;i++){var a=r[i],o=void 0===a._rangeInitial,s=o||!(a.range[0]===a._rangeInitial[0]&&a.range[1]===a._rangeInitial[1]);(o&&!1===a.autorange||e&&s)&&(a._rangeInitial=a.range.slice(),n=!0)}return n},A.saveShowSpikeInitial=function(t,e){for(var r=A.list(t,\"\",!0),n=!1,i=\"on\",a=0;a<r.length;a++){var o=r[a],s=void 0===o._showSpikeInitial,l=s||!(o.showspikes===o._showspikes);(s||e&&l)&&(o._showSpikeInitial=o.showspikes,n=!0),\"on\"!==i||o.showspikes||(i=\"off\")}return t._fullLayout._cartesianSpikesEnabled=i,n},A.autoBin=function(t,e,r,n,a,o){var l,c=s.aggNums(Math.min,null,t),u=s.aggNums(Math.max,null,t);if(\"category\"===e.type)return{start:c-.5,end:u+.5,size:Math.max(1,Math.round(o)||1),_dataSpan:u-c};if(a||(a=e.calendar),l=\"log\"===e.type?{type:\"linear\",range:[c,u]}:{type:e.type,range:s.simpleMap([c,u],e.c2r,0,a),calendar:a},A.setConvert(l),o=o&&p.dtick(o,l.type))l.dtick=o,l.tick0=p.tick0(void 0,l.type,a);else{var f;if(r)f=(u-c)/r;else{var h=s.distinctVals(t),d=Math.pow(10,Math.floor(Math.log(h.minDiff)/Math.LN10)),g=d*s.roundUp(h.minDiff/d,[.9,1.9,4.9,9.9],!0);f=Math.max(g,2*s.stdev(t)/Math.pow(t.length,n?.25:.4)),i(f)||(f=1)}A.autoTicks(l,f)}var v,y=l.dtick,x=A.tickIncrement(A.tickFirst(l),y,\"reverse\",a);if(\"number\"==typeof y)v=(x=function(t,e,r,n,a){var o=0,s=0,l=0,c=0;function u(e){return(1+100*(e-t)/r.dtick)%100<2}for(var f=0;f<e.length;f++)e[f]%1==0?l++:i(e[f])||c++,u(e[f])&&o++,u(e[f]+r.dtick/2)&&s++;var h=e.length-c;if(l===h&&\"date\"!==r.type)r.dtick<1?t=n-.5*r.dtick:(t-=.5)+r.dtick<n&&(t+=r.dtick);else if(s<.1*h&&(o>.3*h||u(n)||u(a))){var p=r.dtick/2;t+=t+p<n?p:-p}return t}(x,t,l,c,u))+(1+Math.floor((u-x)/y))*y;else for(\"M\"===l.dtick.charAt(0)&&(x=function(t,e,r,n,i){var a=s.findExactDates(e,i);if(a.exactDays>.8){var o=Number(r.substr(1));a.exactYears>.8&&o%12==0?t=A.tickIncrement(t,\"M6\",\"reverse\")+1.5*m:a.exactMonths>.8?t=A.tickIncrement(t,\"M1\",\"reverse\")+15.5*m:t-=m/2;var l=A.tickIncrement(t,r);if(l<=n)return l}return t}(x,t,y,c,a)),v=x,0;v<=u;)v=A.tickIncrement(v,y,!1,a),0;return{start:e.c2r(x,0,a),end:e.c2r(v,0,a),size:y,_dataSpan:u-c}},A.prepTicks=function(t){var e=s.simpleMap(t.range,t.r2l);if(\"auto\"===t.tickmode||!t.dtick){var r,n=t.nticks;n||(\"category\"===t.type?(r=t.tickfont?1.2*(t.tickfont.size||12):15,n=t._length/r):(r=\"y\"===t._id.charAt(0)?40:80,n=s.constrain(t._length/r,4,9)+1),\"radialaxis\"===t._name&&(n*=2)),\"array\"===t.tickmode&&(n*=100),A.autoTicks(t,Math.abs(e[1]-e[0])/n),t._minDtick>0&&t.dtick<2*t._minDtick&&(t.dtick=t._minDtick,t.tick0=t.l2r(t._forceTick0))}t.tick0||(t.tick0=\"date\"===t.type?\"2000-01-01\":0),\"date\"===t.type&&t.dtick<.1&&(t.dtick=.1),j(t)},A.calcTicks=function(t){A.prepTicks(t);var e=s.simpleMap(t.range,t.r2l);if(\"array\"===t.tickmode)return function(t){var e,r,n=t.tickvals,i=t.ticktext,a=new Array(n.length),o=s.simpleMap(t.range,t.r2l),l=1.0001*o[0]-1e-4*o[1],c=1.0001*o[1]-1e-4*o[0],u=Math.min(l,c),f=Math.max(l,c),h=0;Array.isArray(i)||(i=[]);var p=\"category\"===t.type?t.d2l_noadd:t.d2l;\"log\"===t.type&&\"L\"!==String(t.dtick).charAt(0)&&(t.dtick=\"L\"+Math.pow(10,Math.floor(Math.min(t.range[0],t.range[1]))-1));for(r=0;r<n.length;r++)(e=p(n[r]))>u&&e<f&&(void 0===i[r]?a[h]=A.tickText(t,e):a[h]=V(t,e,String(i[r])),h++);h<n.length&&a.splice(h,n.length-h);return a}(t);t._tmin=A.tickFirst(t);var r=1.0001*e[0]-1e-4*e[1],n=1.0001*e[1]-1e-4*e[0],i=e[1]<e[0];if(t._tmin<r!==i)return[];var a=[];\"category\"===t.type&&(n=i?Math.max(-.5,n):Math.min(t._categories.length-.5,n));for(var o=null,l=Math.max(1e3,t._length||0),c=t._tmin;(i?c>=n:c<=n)&&!(a.length>l||c===o);c=A.tickIncrement(c,t.dtick,i,t.calendar))o=c,a.push(c);$(t)&&360===Math.abs(e[1]-e[0])&&a.pop(),t._tmax=a[a.length-1],t._prevDateHead=\"\",t._inCalcTicks=!0;for(var u=new Array(a.length),f=0;f<a.length;f++)u[f]=A.tickText(t,a[f]);return t._inCalcTicks=!1,u};var O=[2,5,10],I=[1,2,3,6,12],P=[1,2,5,10,15,30],D=[1,2,3,7,14],R=[-.046,0,.301,.477,.602,.699,.778,.845,.903,.954,1],B=[-.301,0,.301,.699,1],F=[15,30,45,90,180];function N(t,e,r){return e*s.roundUp(t/e,r)}function j(t){var e=t.dtick;if(t._tickexponent=0,i(e)||\"string\"==typeof e||(e=1),\"category\"===t.type&&(t._tickround=null),\"date\"===t.type){var r=t.r2l(t.tick0),n=t.l2r(r).replace(/(^-|i)/g,\"\"),a=n.length;if(\"M\"===String(e).charAt(0))a>10||\"01-01\"!==n.substr(5)?t._tickround=\"d\":t._tickround=+e.substr(1)%12==0?\"y\":\"m\";else if(e>=m&&a<=10||e>=15*m)t._tickround=\"d\";else if(e>=x&&a<=16||e>=y)t._tickround=\"M\";else if(e>=b&&a<=19||e>=x)t._tickround=\"S\";else{var o=t.l2r(r+e).replace(/^-/,\"\").length;t._tickround=Math.max(a,o)-20,t._tickround<0&&(t._tickround=4)}}else if(i(e)||\"L\"===e.charAt(0)){var s=t.range.map(t.r2d||Number);i(e)||(e=Number(e.substr(1))),t._tickround=2-Math.floor(Math.log(e)/Math.LN10+.01);var l=Math.max(Math.abs(s[0]),Math.abs(s[1])),c=Math.floor(Math.log(l)/Math.LN10+.01);Math.abs(c)>3&&(q(t.exponentformat)&&!H(c)?t._tickexponent=3*Math.round((c-1)/3):t._tickexponent=c)}else t._tickround=null}function V(t,e,r){var n=t.tickfont||{};return{x:e,dx:0,dy:0,text:r||\"\",fontSize:n.size,font:n.family,fontColor:n.color}}A.autoTicks=function(t,e){var r;function n(t){return Math.pow(t,Math.floor(Math.log(e)/Math.LN10))}if(\"date\"===t.type){t.tick0=s.dateTick0(t.calendar);var a=2*e;a>g?(e/=g,r=n(10),t.dtick=\"M\"+12*N(e,r,O)):a>v?(e/=v,t.dtick=\"M\"+N(e,1,I)):a>m?(t.dtick=N(e,m,D),t.tick0=s.dateTick0(t.calendar,!0)):a>y?t.dtick=N(e,y,I):a>x?t.dtick=N(e,x,P):a>b?t.dtick=N(e,b,P):(r=n(10),t.dtick=N(e,r,O))}else if(\"log\"===t.type){t.tick0=0;var o=s.simpleMap(t.range,t.r2l);if(e>.7)t.dtick=Math.ceil(e);else if(Math.abs(o[1]-o[0])<1){var l=1.5*Math.abs((o[1]-o[0])/e);e=Math.abs(Math.pow(10,o[1])-Math.pow(10,o[0]))/l,r=n(10),t.dtick=\"L\"+N(e,r,O)}else t.dtick=e>.3?\"D2\":\"D1\"}else\"category\"===t.type?(t.tick0=0,t.dtick=Math.ceil(Math.max(e,1))):$(t)?(t.tick0=0,r=1,t.dtick=N(e,r,F)):(t.tick0=0,r=n(10),t.dtick=N(e,r,O));if(0===t.dtick&&(t.dtick=1),!i(t.dtick)&&\"string\"!=typeof t.dtick){var c=t.dtick;throw t.dtick=1,\"ax.dtick error: \"+String(c)}},A.tickIncrement=function(t,e,r,a){var o=r?-1:1;if(i(e))return t+o*e;var l=e.charAt(0),c=o*Number(e.substr(1));if(\"M\"===l)return s.incrementMonth(t,c,a);if(\"L\"===l)return Math.log(Math.pow(10,t)+c)/Math.LN10;if(\"D\"===l){var u=\"D2\"===e?B:R,f=t+.01*o,h=s.roundUp(s.mod(f,1),u,r);return Math.floor(f)+Math.log(n.round(Math.pow(10,h),1))/Math.LN10}throw\"unrecognized dtick \"+String(e)},A.tickFirst=function(t){var e=t.r2l||Number,r=s.simpleMap(t.range,e),a=r[1]<r[0],o=a?Math.floor:Math.ceil,l=1.0001*r[0]-1e-4*r[1],c=t.dtick,u=e(t.tick0);if(i(c)){var f=o((l-u)/c)*c+u;return\"category\"===t.type&&(f=s.constrain(f,0,t._categories.length-1)),f}var h=c.charAt(0),p=Number(c.substr(1));if(\"M\"===h){for(var d,g,v,m=0,y=u;m<10;){if(((d=A.tickIncrement(y,c,a,t.calendar))-l)*(y-l)<=0)return a?Math.min(y,d):Math.max(y,d);g=(l-(y+d)/2)/(d-y),v=h+(Math.abs(Math.round(g))||1)*p,y=A.tickIncrement(y,v,g<0?!a:a,t.calendar),m++}return s.error(\"tickFirst did not converge\",t),y}if(\"L\"===h)return Math.log(o((Math.pow(10,l)-u)/p)*p+u)/Math.LN10;if(\"D\"===h){var x=\"D2\"===c?B:R,b=s.roundUp(s.mod(l,1),x,a);return Math.floor(l)+Math.log(n.round(Math.pow(10,b),1))/Math.LN10}throw\"unrecognized dtick \"+String(c)},A.tickText=function(t,e,r){var n,a,o=V(t,e),l=\"array\"===t.tickmode,c=r||l,u=\"category\"===t.type?t.d2l_noadd:t.d2l;if(l&&Array.isArray(t.ticktext)){var f=s.simpleMap(t.range,t.r2l),h=Math.abs(f[1]-f[0])/1e4;for(a=0;a<t.ticktext.length&&!(Math.abs(e-u(t.tickvals[a]))<h);a++);if(a<t.ticktext.length)return o.text=String(t.ticktext[a]),o}function p(n){var i;return void 0===n||(r?\"none\"===n:(i={first:t._tmin,last:t._tmax}[n],\"all\"!==n&&e!==i))}return n=r?\"never\":\"none\"!==t.exponentformat&&p(t.showexponent)?\"hide\":\"\",\"date\"===t.type?function(t,e,r,n){var a=t._tickround,o=r&&t.hoverformat||A.getTickFormat(t);n&&(a=i(a)?4:{y:\"m\",m:\"d\",d:\"M\",M:\"S\",S:4}[a]);var l,c=s.formatDate(e.x,o,a,t._dateFormat,t.calendar,t._extraFormat),u=c.indexOf(\"\\n\");-1!==u&&(l=c.substr(u+1),c=c.substr(0,u));n&&(\"00:00:00\"===c||\"00:00\"===c?(c=l,l=\"\"):8===c.length&&(c=c.replace(/:00$/,\"\")));l&&(r?\"d\"===a?c+=\", \"+l:c=l+(c?\", \"+c:\"\"):t._inCalcTicks&&l===t._prevDateHead||(c+=\"<br>\"+l,t._prevDateHead=l));e.text=c}(t,o,r,c):\"log\"===t.type?function(t,e,r,n,a){var o=t.dtick,l=e.x,c=t.tickformat,u=\"string\"==typeof o&&o.charAt(0);\"never\"===a&&(a=\"\");n&&\"L\"!==u&&(o=\"L3\",u=\"L\");if(c||\"L\"===u)e.text=G(Math.pow(10,l),t,a,n);else if(i(o)||\"D\"===u&&s.mod(l+.01,1)<.1){var f=Math.round(l),h=Math.abs(f),p=t.exponentformat;\"power\"===p||q(p)&&H(f)?(e.text=0===f?1:1===f?\"10\":\"10<sup>\"+(f>1?\"\":_)+h+\"</sup>\",e.fontSize*=1.25):(\"e\"===p||\"E\"===p)&&h>2?e.text=\"1\"+p+(f>0?\"+\":_)+h:(e.text=G(Math.pow(10,l),t,\"\",\"fakehover\"),\"D1\"===o&&\"y\"===t._id.charAt(0)&&(e.dy-=e.fontSize/6))}else{if(\"D\"!==u)throw\"unrecognized dtick \"+String(o);e.text=String(Math.round(Math.pow(10,s.mod(l,1)))),e.fontSize*=.75}if(\"D1\"===t.dtick){var d=String(e.text).charAt(0);\"0\"!==d&&\"1\"!==d||(\"y\"===t._id.charAt(0)?e.dx-=e.fontSize/4:(e.dy+=e.fontSize/2,e.dx+=(t.range[1]>t.range[0]?1:-1)*e.fontSize*(l<0?.5:.25)))}}(t,o,0,c,n):\"category\"===t.type?function(t,e){var r=t._categories[Math.round(e.x)];void 0===r&&(r=\"\");e.text=String(r)}(t,o):$(t)?function(t,e,r,n,i){if(\"radians\"!==t.thetaunit||r)e.text=G(e.x,t,i,n);else{var a=e.x/180;if(0===a)e.text=\"0\";else{var o=function(t){function e(t,e){return Math.abs(t-e)<=1e-6}var r=function(t){var r=1;for(;!e(Math.round(t*r)/r,t);)r*=10;return r}(t),n=t*r,i=Math.abs(function t(r,n){return e(n,0)?r:t(n,r%n)}(n,r));return[Math.round(n/i),Math.round(r/i)]}(a);if(o[1]>=100)e.text=G(s.deg2rad(e.x),t,i,n);else{var l=e.x<0;1===o[1]?1===o[0]?e.text=\"\\u03c0\":e.text=o[0]+\"\\u03c0\":e.text=[\"<sup>\",o[0],\"</sup>\",\"\\u2044\",\"<sub>\",o[1],\"</sub>\",\"\\u03c0\"].join(\"\"),l&&(e.text=_+e.text)}}}}(t,o,r,c,n):function(t,e,r,n,i){\"never\"===i?i=\"\":\"all\"===t.showexponent&&Math.abs(e.x/t.dtick)<1e-6&&(i=\"hide\");e.text=G(e.x,t,i,n)}(t,o,0,c,n),t.tickprefix&&!p(t.showtickprefix)&&(o.text=t.tickprefix+o.text),t.ticksuffix&&!p(t.showticksuffix)&&(o.text+=t.ticksuffix),o},A.hoverLabelText=function(t,e,r){if(r!==w&&r!==e)return A.hoverLabelText(t,e)+\" - \"+A.hoverLabelText(t,r);var n=\"log\"===t.type&&e<=0,i=A.tickText(t,t.c2l(n?-e:e),\"hover\").text;return n?0===e?\"0\":_+i:i};var U=[\"f\",\"p\",\"n\",\"\\u03bc\",\"m\",\"\",\"k\",\"M\",\"G\",\"T\"];function q(t){return\"SI\"===t||\"B\"===t}function H(t){return t>14||t<-15}function G(t,e,r,n){var a=t<0,o=e._tickround,l=r||e.exponentformat||\"B\",c=e._tickexponent,u=A.getTickFormat(e),f=e.separatethousands;if(n){var h={exponentformat:l,dtick:\"none\"===e.showexponent?e.dtick:i(t)&&Math.abs(t)||1,range:\"none\"===e.showexponent?e.range.map(e.r2d):[0,t||1]};j(h),o=(Number(h._tickround)||0)+4,c=h._tickexponent,e.hoverformat&&(u=e.hoverformat)}if(u)return e._numFormat(u)(t).replace(/-/g,_);var p,d=Math.pow(10,-o)/2;if(\"none\"===l&&(c=0),(t=Math.abs(t))<d)t=\"0\",a=!1;else{if(t+=d,c&&(t*=Math.pow(10,-c),o+=c),0===o)t=String(Math.floor(t));else if(o<0){t=(t=String(Math.round(t))).substr(0,t.length+o);for(var g=o;g<0;g++)t+=\"0\"}else{var v=(t=String(t)).indexOf(\".\")+1;v&&(t=t.substr(0,v+o).replace(/\\.?0+$/,\"\"))}t=s.numSeparate(t,e._separators,f)}c&&\"hide\"!==l&&(q(l)&&H(c)&&(l=\"power\"),p=c<0?_+-c:\"power\"!==l?\"+\"+c:String(c),\"e\"===l||\"E\"===l?t+=l+p:\"power\"===l?t+=\"\\xd710<sup>\"+p+\"</sup>\":\"B\"===l&&9===c?t+=\"B\":q(l)&&(t+=U[c/3+5]));return a?_+t:t}function W(t,e){var r=t.l2p(e);return r>1&&r<t._length-1}function Y(t,e){for(var r=0;r<e.length;r++)-1===t.indexOf(e[r])&&t.push(e[r])}function X(t,e,r){var n,i,a=[],o=[],l=t.layout;for(n=0;n<e.length;n++)a.push(A.getFromId(t,e[n]));for(n=0;n<r.length;n++)o.push(A.getFromId(t,r[n]));var c=Object.keys(h),u=[\"anchor\",\"domain\",\"overlaying\",\"position\",\"side\",\"tickangle\",\"editType\"],f=[\"linear\",\"log\"];for(n=0;n<c.length;n++){var p=c[n],d=a[0][p],g=o[0][p],v=!0,m=!1,y=!1;if(\"_\"!==p.charAt(0)&&\"function\"!=typeof d&&-1===u.indexOf(p)){for(i=1;i<a.length&&v;i++){var x=a[i][p];\"type\"===p&&-1!==f.indexOf(d)&&-1!==f.indexOf(x)&&d!==x?m=!0:x!==d&&(v=!1)}for(i=1;i<o.length&&v;i++){var b=o[i][p];\"type\"===p&&-1!==f.indexOf(g)&&-1!==f.indexOf(b)&&g!==b?y=!0:o[i][p]!==g&&(v=!1)}v&&(m&&(l[a[0]._name].type=\"linear\"),y&&(l[o[0]._name].type=\"linear\"),Z(l,p,a,o,t._fullLayout._dfltTitle))}}for(n=0;n<t._fullLayout.annotations.length;n++){var _=t._fullLayout.annotations[n];-1!==e.indexOf(_.xref)&&-1!==r.indexOf(_.yref)&&s.swapAttrs(l.annotations[n],[\"?\"])}}function Z(t,e,r,n,i){var a,o=s.nestedProperty,l=o(t[r[0]._name],e).get(),c=o(t[n[0]._name],e).get();for(\"title\"===e&&(l===i.x&&(l=i.y),c===i.y&&(c=i.x)),a=0;a<r.length;a++)o(t,r[a]._name+\".\"+e).set(c);for(a=0;a<n.length;a++)o(t,n[a]._name+\".\"+e).set(l)}function $(t){return\"angularaxis\"===t._id}A.getTickFormat=function(t){var e,r,n,i,a,o,s,l;function c(t){return\"string\"!=typeof t?t:Number(t.replace(\"M\",\"\"))*v}function u(t,e){var r=[\"L\",\"D\"];if(typeof t==typeof e){if(\"number\"==typeof t)return t-e;var n=r.indexOf(t.charAt(0)),i=r.indexOf(e.charAt(0));return n===i?Number(t.replace(/(L|D)/g,\"\"))-Number(e.replace(/(L|D)/g,\"\")):n-i}return\"number\"==typeof t?1:-1}function f(t,e){var r=null===e[0],n=null===e[1],i=u(t,e[0])>=0,a=u(t,e[1])<=0;return(r||i)&&(n||a)}if(t.tickformatstops&&t.tickformatstops.length>0)switch(t.type){case\"date\":case\"linear\":for(e=0;e<t.tickformatstops.length;e++)if((n=t.tickformatstops[e]).enabled&&(i=t.dtick,a=n.dtickrange,o=void 0,void 0,void 0,o=c||function(t){return t},s=a[0],l=a[1],(!s&&\"number\"!=typeof s||o(s)<=o(i))&&(!l&&\"number\"!=typeof l||o(l)>=o(i)))){r=n;break}break;case\"log\":for(e=0;e<t.tickformatstops.length;e++)if((n=t.tickformatstops[e]).enabled&&f(t.dtick,n.dtickrange)){r=n;break}}return r?r.value:t.tickformat},A.getSubplots=function(t,e){var r=t._fullLayout._subplots,n=r.cartesian.concat(r.gl2d||[]),i=e?A.findSubplotsWithAxis(n,e):n;return i.sort(function(t,e){var r=t.substr(1).split(\"y\"),n=e.substr(1).split(\"y\");return r[0]===n[0]?+r[1]-+n[1]:+r[0]-+n[0]}),i},A.findSubplotsWithAxis=function(t,e){for(var r=new RegExp(\"x\"===e._id.charAt(0)?\"^\"+e._id+\"y\":e._id+\"$\"),n=[],i=0;i<t.length;i++){var a=t[i];r.test(a)&&n.push(a)}return n},A.makeClipPaths=function(t){var e=t._fullLayout;if(!e._hasOnlyLargeSploms){var r,i,a={_offset:0,_length:e.width,_id:\"\"},o={_offset:0,_length:e.height,_id:\"\"},s=A.list(t,\"x\",!0),l=A.list(t,\"y\",!0),c=[];for(r=0;r<s.length;r++)for(c.push({x:s[r],y:o}),i=0;i<l.length;i++)0===r&&c.push({x:a,y:l[i]}),c.push({x:s[r],y:l[i]});var u=e._clips.selectAll(\".axesclip\").data(c,function(t){return t.x._id+t.y._id});u.enter().append(\"clipPath\").classed(\"axesclip\",!0).attr(\"id\",function(t){return\"clip\"+e._uid+t.x._id+t.y._id}).append(\"rect\"),u.exit().remove(),u.each(function(t){n.select(this).select(\"rect\").attr({x:t.x._offset||0,y:t.y._offset||0,width:t.x._length||1,height:t.y._length||1})})}},A.doTicks=function(t,e,r){var n=t._fullLayout;\"redraw\"===e&&n._paper.selectAll(\"g.subplot\").each(function(t){var e=t[0],r=n._plots[e],i=r.xaxis,a=r.yaxis;r.xaxislayer.selectAll(\".\"+i._id+\"tick\").remove(),r.yaxislayer.selectAll(\".\"+a._id+\"tick\").remove(),r.gridlayer&&r.gridlayer.selectAll(\"path\").remove(),r.zerolinelayer&&r.zerolinelayer.selectAll(\"path\").remove(),n._infolayer.select(\".g-\"+i._id+\"title\").remove(),n._infolayer.select(\".g-\"+a._id+\"title\").remove()});var i=e&&\"redraw\"!==e?e:A.listIds(t);s.syncOrAsync(i.map(function(e){return function(){if(e){var n=A.doTicksSingle(t,e,r),i=A.getFromId(t,e);return i._r=i.range.slice(),i._rl=s.simpleMap(i._r,i.r2l),n}}}))},A.doTicksSingle=function(t,e,r){var o,h=t._fullLayout,p=!1;s.isPlainObject(e)?(o=e,p=!0):o=A.getFromId(t,e),o.setScale();var d,g,v,m,y,x,b=o._id,_=b.charAt(0),w=A.counterLetter(b),T=o._vals=A.calcTicks(o),E=function(t){return[t.text,t.x,o.mirror,t.font,t.fontSize,t.fontColor].join(\"_\")},C=b+\"tick\",L=b+\"grid\",z=b+\"zl\",O=(o.linewidth||1)/2,I=\"outside\"===o.ticks?o.ticklen:0,P=0,D=f.crispRound(t,o.gridwidth,1),R=f.crispRound(t,o.zerolinewidth,D),B=f.crispRound(t,o.tickwidth,1);if(o._counterangle&&\"outside\"===o.ticks){var F=o._counterangle*Math.PI/180;I=o.ticklen*Math.cos(F)+1,P=o.ticklen*Math.sin(F)}if(o.showticklabels&&(\"outside\"===o.ticks||o.showline)&&(I+=.2*o.tickfont.size),\"x\"===_)d=[\"bottom\",\"top\"],g=o._transfn||function(t){return\"translate(\"+(o._offset+o.l2p(t.x))+\",0)\"},v=function(t,e){if(o._counterangle){var r=o._counterangle*Math.PI/180;return\"M0,\"+t+\"l\"+Math.sin(r)*e+\",\"+Math.cos(r)*e}return\"M0,\"+t+\"v\"+e};else if(\"y\"===_)d=[\"left\",\"right\"],g=o._transfn||function(t){return\"translate(0,\"+(o._offset+o.l2p(t.x))+\")\"},v=function(t,e){if(o._counterangle){var r=o._counterangle*Math.PI/180;return\"M\"+t+\",0l\"+Math.cos(r)*e+\",\"+-Math.sin(r)*e}return\"M\"+t+\",0h\"+e};else{if(!$(o))return void s.warn(\"Unrecognized doTicks axis:\",b);d=[\"left\",\"right\"],g=o._transfn,v=function(t,e){return\"M\"+t+\",0h\"+e}}var N=o.side||d[0],j=[-1,1,N===d[1]?1:-1];if(\"inside\"!==o.ticks==(\"x\"===_)&&(j=j.map(function(t){return-t})),o.visible){o._tickFilter&&(T=T.filter(o._tickFilter));var V=o._valsClipped=$(o)?T:T.filter(function(t){return W(o,t.x)});if(p){if(Z(o._axislayer,v(o._pos+O*j[2],j[2]*o.ticklen)),o._counteraxis)Q({gridlayer:o._gridlayer,zerolinelayer:o._zerolinelayer},o._counteraxis);return J(o._axislayer,o._pos)}if(h._has(\"cartesian\")){m=A.getSubplots(t,o);var U={};m.map(function(t){var e=h._plots[t],r=e[w+\"axis\"],n=r._mainAxis._id;U[n]||(U[n]=1,Q(e,r))});var q=o._mainSubplot,H=h._plots[q],G=[];if(o.ticks){var Y=j[2],X=v(o._mainLinePosition+O*Y,Y*o.ticklen);o._anchorAxis&&o.mirror&&!0!==o.mirror&&(X+=v(o._mainMirrorPosition-O*Y,-Y*o.ticklen)),Z(H[_+\"axislayer\"],X),G=Object.keys(o._linepositions||{})}return G.map(function(t){var e=h._plots[t][_+\"axislayer\"],r=o._linepositions[t]||[];function n(t){var e=j[t];return v(r[t]+O*e,e*o.ticklen)}Z(e,n(0)+n(1))}),J(H[_+\"axislayer\"],o._mainLinePosition)}}function Z(t,e){var r=t.selectAll(\"path.\"+C).data(\"inside\"===o.ticks?V:T,E);e&&o.ticks?(r.enter().append(\"path\").classed(C,1).classed(\"ticks\",1).classed(\"crisp\",1).call(u.stroke,o.tickcolor).style(\"stroke-width\",B+\"px\").attr(\"d\",e),r.attr(\"transform\",g),r.exit().remove()):r.remove()}function J(e,r){if(y=e.selectAll(\"g.\"+C).data(T,E),!i(r))return y.remove(),void K();if(!o.showticklabels)return y.remove(),K(),void z();var c,u,p,d,v;\"x\"===_?(c=function(t){return t.dx+P*v},d=r+(I+O)*(v=\"bottom\"===N?1:-1),u=function(t){return t.dy+d+t.fontSize*(\"bottom\"===N?1:-.2)},p=function(t){return i(t)&&0!==t&&180!==t?t*v<0?\"end\":\"start\":\"middle\"}):\"y\"===_?(v=\"right\"===N?1:-1,u=function(t){return t.dy+t.fontSize*k-P*v},c=function(t){return t.dx+r+(I+O+(90===Math.abs(o.tickangle)?t.fontSize/2:0))*v},p=function(t){return i(t)&&90===Math.abs(t)?\"middle\":\"right\"===N?\"start\":\"end\"}):$(o)&&(o._labelShift=P,o._labelStandoff=I,o._pad=O,c=o._labelx,u=o._labely,p=o._labelanchor);var w=0,A=0,S=[];function L(t,e){t.each(function(t){var r=p(e,t),a=n.select(this),o=a.select(\".text-math-group\"),s=g.call(a.node(),t)+(i(e)&&0!=+e?\" rotate(\"+e+\",\"+c(t)+\",\"+(u(t)-t.fontSize/2)+\")\":\"\"),h=function(t,e,r){var n=(t-1)*e;if(\"x\"===_){if(r<-60||60<r)return-.5*n;if(\"top\"===N)return-n}else{if((r*=\"left\"===N?1:-1)<-30)return-n;if(r<30)return-.5*n}return 0}(l.lineCount(a),M*t.fontSize,i(e)?+e:0);if(h&&(s+=\" translate(0, \"+h+\")\"),o.empty())a.select(\"text\").attr({transform:s,\"text-anchor\":r});else{var d=f.bBox(o.node()).width*{end:-.5,start:.5}[r];o.attr(\"transform\",s+(d?\"translate(\"+d+\",0)\":\"\"))}})}function z(){if(o.showticklabels){var r=t.getBoundingClientRect(),n=e.node().getBoundingClientRect();o._boundingBox={width:n.width,height:n.height,left:n.left-r.left,right:n.right-r.left,top:n.top-r.top,bottom:n.bottom-r.top}}else{var i,a=h._size;\"x\"===_?(i=\"free\"===o.anchor?a.t+a.h*(1-o.position):a.t+a.h*(1-o._anchorAxis.domain[{bottom:0,top:1}[o.side]]),o._boundingBox={top:i,bottom:i,left:o._offset,right:o._offset+o._length,width:o._length,height:0}):(i=\"free\"===o.anchor?a.l+a.w*o.position:a.l+a.w*o._anchorAxis.domain[{left:0,right:1}[o.side]],o._boundingBox={left:i,right:i,bottom:o._offset+o._length,top:o._offset,height:o._length,width:0})}if(m){var s=o._counterSpan=[1/0,-1/0];for(x=0;x<m.length;x++){var l=h._plots[m[x]][\"x\"===_?\"yaxis\":\"xaxis\"];c(s,[l._offset,l._offset+l._length])}\"free\"===o.anchor&&c(s,\"x\"===_?[o._boundingBox.bottom,o._boundingBox.top]:[o._boundingBox.right,o._boundingBox.left])}function c(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.max(t[1],e[1])}}y.enter().append(\"g\").classed(C,1).append(\"text\").attr(\"text-anchor\",\"middle\").each(function(e){var r=n.select(this),i=t._promises.length;r.call(l.positionText,c(e),u(e)).call(f.font,e.font,e.fontSize,e.fontColor).text(e.text).call(l.convertToTspans,t),(i=t._promises[i])?S.push(t._promises.pop().then(function(){L(r,o.tickangle)})):L(r,o.tickangle)}),y.exit().remove(),y.each(function(t){w=Math.max(w,t.fontSize)}),$(o)&&y.each(function(t){n.select(this).select(\"text\").call(l.positionText,c(t),u(t))}),L(y,o._lastangle||o.tickangle);var D=s.syncOrAsync([function(){return S.length&&Promise.all(S)},function(){if(L(y,o.tickangle),\"x\"===_&&!i(o.tickangle)&&(\"log\"!==o.type||\"D\"!==String(o.dtick).charAt(0))){var t=[];for(y.each(function(e){var r=n.select(this),i=r.select(\".text-math-group\"),a=o.l2p(e.x);i.empty()&&(i=r.select(\"text\"));var s=f.bBox(i.node());t.push({top:0,bottom:10,height:10,left:a-s.width/2,right:a+s.width/2+2,width:s.width+2})}),x=0;x<t.length-1;x++)if(s.bBoxIntersect(t[x],t[x+1])){A=30;break}A&&(Math.abs((T[T.length-1].x-T[0].x)*o._m)/(T.length-1)<2.5*w&&(A=90),L(y,A)),o._lastangle=A}return K(),b+\" done\"},z,function(){var e=o._name+\".automargin\";if(\"x\"===_||\"y\"===_)if(o.automargin){var r=o.side[0],n={x:0,y:0,r:0,l:0,t:0,b:0};\"x\"===_?(n.y=\"free\"===o.anchor?o.position:o._anchorAxis.domain[\"t\"===r?1:0],n[r]+=o._boundingBox.height):(n.x=\"free\"===o.anchor?o.position:o._anchorAxis.domain[\"r\"===r?1:0],n[r]+=o._boundingBox.width),o.title!==h._dfltTitle[_]&&(n[r]+=o.titlefont.size),a.autoMargin(t,e,n)}else a.autoMargin(t,e)}]);return D&&D.then&&t._promises.push(D),D}function K(){if(!(r||o.rangeslider&&o.rangeslider.visible&&o._boundingBox&&\"bottom\"===o.side)){var e,n,i,a,s={selection:y,side:o.side},l=b.charAt(0),u=t._fullLayout._size,p=o.titlefont.size;if(y.size()){var d=f.getTranslate(y.node().parentNode);s.offsetLeft=d.x,s.offsetTop=d.y}var g=10+1.5*p+(o.linewidth?o.linewidth-1:0);\"x\"===l?(n=\"free\"===o.anchor?{_offset:u.t+(1-(o.position||0))*u.h,_length:0}:S.getFromId(t,o.anchor),i=o._offset+o._length/2,a=\"top\"===o.side?-g-p*(o.showticklabels?1:0):n._length+g+p*(o.showticklabels?1.5:.5),a+=n._offset,s.side||(s.side=\"bottom\")):(n=\"free\"===o.anchor?{_offset:u.l+(o.position||0)*u.w,_length:0}:S.getFromId(t,o.anchor),a=o._offset+o._length/2,i=\"right\"===o.side?n._length+g+p*(o.showticklabels?1:.5):-g-p*(o.showticklabels?.5:0),i+=n._offset,e={rotate:\"-90\",offset:0},s.side||(s.side=\"left\")),c.draw(t,b+\"title\",{propContainer:o,propName:o._name+\".title\",placeholder:h._dfltTitle[l],avoid:s,transform:e,attributes:{x:i,y:a,\"text-anchor\":\"middle\"}})}}function Q(e,r){if(!h._hasOnlyLargeSploms){var i=e.gridlayer.selectAll(\".\"+b),a=e.zerolinelayer,s=o._gridpath||(\"x\"===_?\"M0,\"+r._offset+\"v\":\"M\"+r._offset+\",0h\")+r._length,l=i.selectAll(\"path.\"+L).data(!1===o.showgrid?[]:V,E);if(l.enter().append(\"path\").classed(L,1).classed(\"crisp\",1).attr(\"d\",s).each(function(t){o.zeroline&&(\"linear\"===o.type||\"-\"===o.type)&&Math.abs(t.x)<o.dtick/100&&n.select(this).remove()}),l.attr(\"transform\",g).call(u.stroke,o.gridcolor||\"#ddd\").style(\"stroke-width\",D+\"px\"),\"function\"==typeof s&&l.attr(\"d\",s),l.exit().remove(),a){var c={x:0,id:b},f=A.shouldShowZeroLine(t,o,r),p=a.selectAll(\"path.\"+z).data(f?[c]:[]);p.enter().append(\"path\").classed(z,1).classed(\"zl\",1).classed(\"crisp\",1).attr(\"d\",s).each(function(){a.selectAll(\"path\").sort(function(t,e){return S.idSort(t.id,e.id)})}),p.attr(\"transform\",g).call(u.stroke,o.zerolinecolor||u.defaultLine).style(\"stroke-width\",R+\"px\"),p.exit().remove()}}}},A.shouldShowZeroLine=function(t,e,r){var n=s.simpleMap(e.range,e.r2l);return n[0]*n[1]<=0&&e.zeroline&&(\"linear\"===e.type||\"-\"===e.type)&&e._valsClipped.length&&(W(e,0)||!function(t,e,r,n){var i=r._mainAxis;if(!i)return;var a=t._fullLayout,o=e._id.charAt(0),s=A.counterLetter(e._id),l=e._offset+(Math.abs(n[0])<Math.abs(n[1])==(\"x\"===o)?0:e._length);function c(t){if(!t.showline||!t.linewidth)return!1;var r=Math.max((t.linewidth+e.zerolinewidth)/2,1);function n(t){return\"number\"==typeof t&&Math.abs(t-l)<r}if(n(t._mainLinePosition)||n(t._mainMirrorPosition))return!0;var i=t._linepositions||{};for(var a in i)if(n(i[a][0])||n(i[a][1]))return!0}var u=a._plots[r._mainSubplot];if(!(u.mainplotinfo||u).overlays.length)return c(r);for(var f=A.list(t,s),h=0;h<f.length;h++){var p=f[h];if(p._mainAxis===i&&c(p))return!0}}(t,e,r,n)||function(t,e){for(var r=t._fullData,n=e._mainSubplot,i=e._id.charAt(0),a=0;a<r.length;a++){var s=r[a];if(!0===s.visible&&s.xaxis+s.yaxis===n&&(o.traceIs(s,\"bar\")&&s.orientation==={x:\"h\",y:\"v\"}[i]||s.fill&&s.fill.charAt(s.fill.length-1)===i))return!0}return!1}(t,e))},A.allowAutoMargin=function(t){for(var e=A.list(t,\"\",!0),r=0;r<e.length;r++){var n=e[r];n.automargin&&a.allowAutoMargin(t,n._name+\".automargin\"),n.rangeslider&&n.rangeslider.visible&&a.allowAutoMargin(t,\"rangeslider\"+n._id)}},A.swap=function(t,e){for(var r=function(t,e){var r,n,i=[];for(r=0;r<e.length;r++){var a=[],o=t._fullData[e[r]].xaxis,s=t._fullData[e[r]].yaxis;if(o&&s){for(n=0;n<i.length;n++)-1===i[n].x.indexOf(o)&&-1===i[n].y.indexOf(s)||a.push(n);if(a.length){var l,c=i[a[0]];if(a.length>1)for(n=1;n<a.length;n++)l=i[a[n]],Y(c.x,l.x),Y(c.y,l.y);Y(c.x,[o]),Y(c.y,[s])}else i.push({x:[o],y:[s]})}}return i}(t,e),n=0;n<r.length;n++)X(t,r[n].x,r[n].y)}},{\"../../components/color\":570,\"../../components/drawing\":595,\"../../components/titles\":661,\"../../constants/alignment\":668,\"../../constants/numerical\":673,\"../../lib\":696,\"../../lib/svg_text_utils\":720,\"../../plots/plots\":808,\"../../registry\":827,\"./autorange\":743,\"./axis_autotype\":745,\"./axis_ids\":747,\"./clean_ticks\":749,\"./layout_attributes\":757,\"./set_convert\":763,d3:148,\"fast-isnumeric\":214}],745:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../../lib\"),a=t(\"../../constants/numerical\").BADNUM;e.exports=function(t,e){return function(t,e){for(var r=Math.max(1,(t.length-1)/1e3),a=0,o=0,s={},l=0;l<t.length;l+=r){var c=t[Math.round(l)],u=String(c);s[u]||(s[u]=1,i.isDateTime(c,e)&&(a+=1),n(c)&&(o+=1))}return a>2*o}(t,e)?\"date\":function(t){for(var e=Math.max(1,(t.length-1)/1e3),r=0,n=0,o={},s=0;s<t.length;s+=e){var l=t[Math.round(s)],c=String(l);o[c]||(o[c]=1,\"boolean\"==typeof l?n++:i.cleanNumber(l)!==a?r++:\"string\"==typeof l&&n++)}return n>2*r}(t)?\"category\":function(t){if(!t)return!1;for(var e=0;e<t.length;e++)if(n(t[e]))return!0;return!1}(t)?\"linear\":\"-\"}},{\"../../constants/numerical\":673,\"../../lib\":696,\"fast-isnumeric\":214}],746:[function(t,e,r){\"use strict\";var n=t(\"../../registry\"),i=t(\"../../lib\"),a=t(\"./layout_attributes\"),o=t(\"./tick_value_defaults\"),s=t(\"./tick_mark_defaults\"),l=t(\"./tick_label_defaults\"),c=t(\"./category_order_defaults\"),u=t(\"./line_grid_defaults\"),f=t(\"./set_convert\");e.exports=function(t,e,r,h,p){var d=h.letter,g=h.font||{},v=h.splomStash||{},m=r(\"visible\",!h.cheateronly),y=e.type;\"date\"===y&&n.getComponentMethod(\"calendars\",\"handleDefaults\")(t,e,\"calendar\",h.calendar);if(f(e,p),!r(\"autorange\",!e.isValidRange(t.range))||\"linear\"!==y&&\"-\"!==y||r(\"rangemode\"),r(\"range\"),e.cleanRange(),c(t,e,r,h),\"category\"===y||h.noHover||r(\"hoverformat\"),!m)return e;var x=r(\"color\"),b=x!==a.color.dflt?x:g.color;return r(\"title\",v.label||p._dfltTitle[d]),i.coerceFont(r,\"titlefont\",{family:g.family,size:Math.round(1.2*g.size),color:b}),o(t,e,r,y),l(t,e,r,y,h),s(t,e,r,h),u(t,e,r,{dfltColor:x,bgColor:h.bgColor,showGrid:h.showGrid,attributes:a}),(e.showline||e.ticks)&&r(\"mirror\"),h.automargin&&r(\"automargin\"),e}},{\"../../lib\":696,\"../../registry\":827,\"./category_order_defaults\":748,\"./layout_attributes\":757,\"./line_grid_defaults\":759,\"./set_convert\":763,\"./tick_label_defaults\":764,\"./tick_mark_defaults\":765,\"./tick_value_defaults\":766}],747:[function(t,e,r){\"use strict\";var n=t(\"../../registry\"),i=t(\"./constants\");r.id2name=function(t){if(\"string\"==typeof t&&t.match(i.AX_ID_PATTERN)){var e=t.substr(1);return\"1\"===e&&(e=\"\"),t.charAt(0)+\"axis\"+e}},r.name2id=function(t){if(t.match(i.AX_NAME_PATTERN)){var e=t.substr(5);return\"1\"===e&&(e=\"\"),t.charAt(0)+e}},r.cleanId=function(t,e){if(t.match(i.AX_ID_PATTERN)&&(!e||t.charAt(0)===e)){var r=t.substr(1).replace(/^0+/,\"\");return\"1\"===r&&(r=\"\"),t.charAt(0)+r}},r.list=function(t,e,n){var i=t._fullLayout;if(!i)return[];var a,o=r.listIds(t,e),s=new Array(o.length);for(a=0;a<o.length;a++){var l=o[a];s[a]=i[l.charAt(0)+\"axis\"+l.substr(1)]}if(!n){var c=i._subplots.gl3d||[];for(a=0;a<c.length;a++){var u=i[c[a]];e?s.push(u[e+\"axis\"]):s.push(u.xaxis,u.yaxis,u.zaxis)}}return s},r.listIds=function(t,e){var r=t._fullLayout;if(!r)return[];var n=r._subplots;return e?n[e+\"axis\"]:n.xaxis.concat(n.yaxis)},r.getFromId=function(t,e,n){var i=t._fullLayout;return\"x\"===n?e=e.replace(/y[0-9]*/,\"\"):\"y\"===n&&(e=e.replace(/x[0-9]*/,\"\")),i[r.id2name(e)]},r.getFromTrace=function(t,e,i){var a=t._fullLayout,o=null;if(n.traceIs(e,\"gl3d\")){var s=e.scene;\"scene\"===s.substr(0,5)&&(o=a[s][i+\"axis\"])}else o=r.getFromId(t,e[i+\"axis\"]||i);return o},r.idSort=function(t,e){var r=t.charAt(0),n=e.charAt(0);return r!==n?r>n?1:-1:+(t.substr(1)||1)-+(e.substr(1)||1)}},{\"../../registry\":827,\"./constants\":750}],748:[function(t,e,r){\"use strict\";e.exports=function(t,e,r,n){if(\"category\"===e.type){var i,a=t.categoryarray,o=Array.isArray(a)&&a.length>0;o&&(i=\"array\");var s,l=r(\"categoryorder\",i);\"array\"===l&&(s=r(\"categoryarray\")),o||\"array\"!==l||(l=e.categoryorder=\"trace\"),\"trace\"===l?e._initialCategories=[]:\"array\"===l?e._initialCategories=s.slice():(s=function(t,e){var r,n,i,a=e.dataAttr||t._id.charAt(0),o={};if(e.axData)r=e.axData;else for(r=[],n=0;n<e.data.length;n++){var s=e.data[n];s[a+\"axis\"]===t._id&&r.push(s)}for(n=0;n<r.length;n++){var l=r[n][a];for(i=0;i<l.length;i++){var c=l[i];null!=c&&(o[c]=1)}}return Object.keys(o)}(e,n).sort(),\"category ascending\"===l?e._initialCategories=s:\"category descending\"===l&&(e._initialCategories=s.reverse()))}}},{}],749:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../../lib\"),a=t(\"../../constants/numerical\").ONEDAY;r.dtick=function(t,e){var r=\"log\"===e,i=\"date\"===e,o=\"category\"===e,s=i?a:1;if(!t)return s;if(n(t))return(t=Number(t))<=0?s:o?Math.max(1,Math.round(t)):i?Math.max(.1,t):t;if(\"string\"!=typeof t||!i&&!r)return s;var l=t.charAt(0),c=t.substr(1);return(c=n(c)?Number(c):0)<=0||!(i&&\"M\"===l&&c===Math.round(c)||r&&\"L\"===l||r&&\"D\"===l&&(1===c||2===c))?s:t},r.tick0=function(t,e,r,a){return\"date\"===e?i.cleanDate(t,i.dateTick0(r)):\"D1\"!==a&&\"D2\"!==a?n(t)?Number(t):0:void 0}},{\"../../constants/numerical\":673,\"../../lib\":696,\"fast-isnumeric\":214}],750:[function(t,e,r){\"use strict\";var n=t(\"../../lib/regex\").counter;e.exports={idRegex:{x:n(\"x\"),y:n(\"y\")},attrRegex:n(\"[xy]axis\"),xAxisMatch:n(\"xaxis\"),yAxisMatch:n(\"yaxis\"),AX_ID_PATTERN:/^[xyz][0-9]*$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,MINDRAG:8,MINSELECT:12,MINZOOM:20,DRAGGERSIZE:20,BENDPX:1.5,REDRAWDELAY:50,SELECTDELAY:100,SELECTID:\"-select\",DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:[\"heatmaplayer\",\"contourcarpetlayer\",\"contourlayer\",\"barlayer\",\"carpetlayer\",\"violinlayer\",\"boxlayer\",\"ohlclayer\",\"scattercarpetlayer\",\"scatterlayer\"],layerValue2layerClass:{\"above traces\":\"above\",\"below traces\":\"below\"}}},{\"../../lib/regex\":712}],751:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"./axis_ids\").id2name;e.exports=function(t,e,r,a,o){var s=o._axisConstraintGroups,l=e._id,c=l.charAt(0);if(!e.fixedrange&&(r(\"constrain\"),n.coerce(t,e,{constraintoward:{valType:\"enumerated\",values:\"x\"===c?[\"left\",\"center\",\"right\"]:[\"bottom\",\"middle\",\"top\"],dflt:\"x\"===c?\"center\":\"middle\"}},\"constraintoward\"),t.scaleanchor)){var u=function(t,e,r,n){var a,o,s,l,c=n[i(e)].type,u=[];for(o=0;o<r.length;o++)(s=r[o])!==e&&((l=n[i(s)]).type!==c||l.fixedrange||u.push(s));for(a=0;a<t.length;a++)if(t[a][e]){var f=t[a],h=[];for(o=0;o<u.length;o++)s=u[o],f[s]||h.push(s);return{linkableAxes:h,thisGroup:f}}return{linkableAxes:u,thisGroup:null}}(s,l,a,o),f=n.coerce(t,e,{scaleanchor:{valType:\"enumerated\",values:u.linkableAxes}},\"scaleanchor\");if(f){var h=r(\"scaleratio\");h||(h=e.scaleratio=1),function(t,e,r,n,i){var a,o,s,l,c;null===e?((e={})[r]=1,c=t.length,t.push(e)):c=t.indexOf(e);var u=Object.keys(e);for(a=0;a<t.length;a++)if(s=t[a],a!==c&&s[n]){var f=s[n];for(o=0;o<u.length;o++)l=u[o],s[l]=f*i*e[l];return void t.splice(c,1)}if(1!==i)for(o=0;o<u.length;o++)e[u[o]]*=i;e[n]=1}(s,u.thisGroup,l,f,h)}else-1!==a.indexOf(t.scaleanchor)&&n.warn(\"ignored \"+e._name+'.scaleanchor: \"'+t.scaleanchor+'\" to avoid either an infinite loop and possibly inconsistent scaleratios, or because the targetaxis has fixed range.')}}},{\"../../lib\":696,\"./axis_ids\":747}],752:[function(t,e,r){\"use strict\";var n=t(\"./axis_ids\").id2name,i=t(\"./scale_zoom\"),a=t(\"./autorange\").makePadFn,o=t(\"./autorange\").concatExtremes,s=t(\"../../constants/numerical\").ALMOST_EQUAL,l=t(\"../../constants/alignment\").FROM_BL;function c(t,e){var r=t._inputDomain,n=l[t.constraintoward],i=r[0]+(r[1]-r[0])*n;t.domain=t._input.domain=[i+(r[0]-i)/e,i+(r[1]-i)/e]}r.enforce=function(t){var e,r,l,u,f,h,p,d=t._fullLayout,g=d._axisConstraintGroups||[];for(e=0;e<g.length;e++){var v=g[e],m=Object.keys(v),y=1/0,x=0,b=1/0,_={},w={},k=!1;for(r=0;r<m.length;r++)w[l=m[r]]=u=d[n(l)],u._inputDomain?u.domain=u._inputDomain.slice():u._inputDomain=u.domain.slice(),u._inputRange||(u._inputRange=u.range.slice()),u.setScale(),_[l]=f=Math.abs(u._m)/v[l],y=Math.min(y,f),\"domain\"!==u.constrain&&u._constraintShrinkable||(b=Math.min(b,f)),delete u._constraintShrinkable,x=Math.max(x,f),\"domain\"===u.constrain&&(k=!0);if(!(y>s*x)||k)for(r=0;r<m.length;r++)if(f=_[l=m[r]],h=(u=w[l]).constrain,f!==b||\"domain\"===h)if(p=f/b,\"range\"===h)i(u,p);else{var M=u._inputDomain,A=(u.domain[1]-u.domain[0])/(M[1]-M[0]),T=(u.r2l(u.range[1])-u.r2l(u.range[0]))/(u.r2l(u._inputRange[1])-u.r2l(u._inputRange[0]));if((p/=A)*T<1){u.domain=u._input.domain=M.slice(),i(u,p);continue}if(T<1&&(u.range=u._input.range=u._inputRange.slice(),p*=T),u.autorange){var S=u.r2l(u.range[0]),E=u.r2l(u.range[1]),C=(S+E)/2,L=C,z=C,O=Math.abs(E-C),I=C-O*p*1.0001,P=C+O*p*1.0001,D=a(u);c(u,p),u.setScale();var R,B,F=Math.abs(u._m),N=o(t,u),j=N.min,V=N.max;for(B=0;B<j.length;B++)(R=j[B].val-D(j[B])/F)>I&&R<L&&(L=R);for(B=0;B<V.length;B++)(R=V[B].val+D(V[B])/F)<P&&R>z&&(z=R);p/=(z-L)/(2*O),L=u.l2r(L),z=u.l2r(z),u.range=u._input.range=S<E?[L,z]:[z,L]}c(u,p)}}},r.clean=function(t,e){if(e._inputDomain){for(var r=!1,n=e._id,i=t._fullLayout._axisConstraintGroups,a=0;a<i.length;a++)if(i[a][n]){r=!0;break}r&&\"domain\"===e.constrain||(e._input.domain=e.domain=e._inputDomain,delete e._inputDomain)}}},{\"../../constants/alignment\":668,\"../../constants/numerical\":673,\"./autorange\":743,\"./axis_ids\":747,\"./scale_zoom\":761}],753:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"tinycolor2\"),a=t(\"has-passive-events\"),o=t(\"../../registry\"),s=t(\"../../lib\"),l=t(\"../../lib/svg_text_utils\"),c=t(\"../../components/color\"),u=t(\"../../components/drawing\"),f=t(\"../../components/fx\"),h=t(\"../../lib/setcursor\"),p=t(\"../../components/dragelement\"),d=t(\"../../constants/alignment\").FROM_TL,g=t(\"../../lib/clear_gl_canvases\"),v=t(\"../../plot_api/subroutines\").redrawReglTraces,m=t(\"../plots\"),y=t(\"./axes\").doTicksSingle,x=t(\"./axis_ids\").getFromId,b=t(\"./select\").prepSelect,_=t(\"./select\").clearSelect,w=t(\"./select\").selectOnClick,k=t(\"./scale_zoom\"),M=t(\"./constants\"),A=M.MINDRAG,T=M.MINZOOM,S=!0;function E(t,e,r,n){var i=s.ensureSingle(t.draglayer,e,r,function(e){e.classed(\"drag\",!0).style({fill:\"transparent\",\"stroke-width\":0}).attr(\"data-subplot\",t.id)});return i.call(h,n),i.node()}function C(t,e,r,i,a,o,s){var l=E(t,\"rect\",e,r);return n.select(l).call(u.setRect,i,a,o,s),l}function L(t,e){for(var r=0;r<t.length;r++)if(!t[r].fixedrange)return e;return\"\"}function z(t,e,r,n,i){var a,o,s,l;for(a=0;a<t.length;a++)(o=t[a]).fixedrange||(s=o._rl[0],l=o._rl[1]-s,o.range=[o.l2r(s+l*e),o.l2r(s+l*r)],n[o._name+\".range[0]\"]=o.range[0],n[o._name+\".range[1]\"]=o.range[1]);if(i&&i.length){var c=(e+(1-r))/2;z(i,c,1-c,n)}}function O(t,e){for(var r=0;r<t.length;r++){var n=t[r];n.fixedrange||(n.range=[n.l2r(n._rl[0]-e/n._m),n.l2r(n._rl[1]-e/n._m)])}}function I(t){return 1-(t>=0?Math.min(t,.9):1/(1/Math.max(t,-.3)+3.222))}function P(t,e,r,n,i){return t.append(\"path\").attr(\"class\",\"zoombox\").style({fill:e>.2?\"rgba(0,0,0,0)\":\"rgba(255,255,255,0)\",\"stroke-width\":0}).attr(\"transform\",\"translate(\"+r+\", \"+n+\")\").attr(\"d\",i+\"Z\")}function D(t,e,r){return t.append(\"path\").attr(\"class\",\"zoombox-corners\").style({fill:c.background,stroke:c.defaultLine,\"stroke-width\":1,opacity:0}).attr(\"transform\",\"translate(\"+e+\", \"+r+\")\").attr(\"d\",\"M0,0Z\")}function R(t,e,r,n,i,a){t.attr(\"d\",n+\"M\"+r.l+\",\"+r.t+\"v\"+r.h+\"h\"+r.w+\"v-\"+r.h+\"h-\"+r.w+\"Z\"),B(t,e,i,a)}function B(t,e,r,n){r||(t.transition().style(\"fill\",n>.2?\"rgba(0,0,0,0.4)\":\"rgba(255,255,255,0.3)\").duration(200),e.transition().style(\"opacity\",1).duration(200))}function F(t){n.select(t).selectAll(\".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners\").remove()}function N(t){S&&t.data&&t._context.showTips&&(s.notifier(s._(t,\"Double-click to zoom back out\"),\"long\"),S=!1)}function j(t){return\"lasso\"===t||\"select\"===t}function V(t){var e=Math.floor(Math.min(t.b-t.t,t.r-t.l,T)/2);return\"M\"+(t.l-3.5)+\",\"+(t.t-.5+e)+\"h3v\"+-e+\"h\"+e+\"v-3h-\"+(e+3)+\"ZM\"+(t.r+3.5)+\",\"+(t.t-.5+e)+\"h-3v\"+-e+\"h\"+-e+\"v-3h\"+(e+3)+\"ZM\"+(t.r+3.5)+\",\"+(t.b+.5-e)+\"h-3v\"+e+\"h\"+-e+\"v3h\"+(e+3)+\"ZM\"+(t.l-3.5)+\",\"+(t.b+.5-e)+\"h3v\"+e+\"h\"+e+\"v3h-\"+(e+3)+\"Z\"}function U(t,e){if(a){var r=void 0!==t.onwheel?\"wheel\":\"mousewheel\";t._onwheel&&t.removeEventListener(r,t._onwheel),t._onwheel=e,t.addEventListener(r,e,{passive:!1})}else void 0!==t.onwheel?t.onwheel=e:void 0!==t.onmousewheel&&(t.onmousewheel=e)}function q(t){var e=[];for(var r in t)e.push(t[r]);return e}e.exports={makeDragBox:function(t,e,r,a,c,h,S,E){var B,H,G,W,Y,X,Z,$,J,K,Q,tt,et,rt,nt,it,at,ot,st,lt,ct,ut=t._fullLayout._zoomlayer,ft=S+E===\"nsew\",ht=1===(S+E).length;function pt(){if(B=e.xaxis,H=e.yaxis,J=B._length,K=H._length,Z=B._offset,$=H._offset,(G={})[B._id]=B,(W={})[H._id]=H,S&&E)for(var r=e.overlays,n=0;n<r.length;n++){var i=r[n].xaxis;G[i._id]=i;var a=r[n].yaxis;W[a._id]=a}Y=q(G),X=q(W),tt=L(Y,E),et=L(X,S),rt=!et&&!tt,Q=function(t,e,r){for(var n,i,a,o,l=t._fullLayout._axisConstraintGroups,c=!1,u={},f={},h=0;h<l.length;h++){var p=l[h];for(n in e)if(p[n]){for(a in p)(\"x\"===a.charAt(0)?e:r)[a]||(u[a]=1);for(i in r)p[i]&&(c=!0)}for(i in r)if(p[i])for(o in p)(\"x\"===o.charAt(0)?e:r)[o]||(f[o]=1)}c&&(s.extendFlat(u,f),f={});var d={},g=[];for(a in u){var v=x(t,a);g.push(v),d[v._id]=v}var m={},y=[];for(o in f){var b=x(t,o);y.push(b),m[b._id]=b}return{xaHash:d,yaHash:m,xaxes:g,yaxes:y,isSubplotConstrained:c}}(t,G,W),nt=Q.isSubplotConstrained,it=E||nt,at=S||nt;var o=t._fullLayout;ot=o._has(\"scattergl\"),st=o._has(\"splom\"),lt=o._has(\"svg\")}pt();var dt=function(t,e,r){return t?\"nsew\"===t?r?\"\":\"pan\"===e?\"move\":\"crosshair\":t.toLowerCase()+\"-resize\":\"pointer\"}(et+tt,t._fullLayout.dragmode,ft),gt=C(e,S+E+\"drag\",dt,r,a,c,h);if(rt&&!ft)return gt.onmousedown=null,gt.style.pointerEvents=\"none\",gt;var vt,mt,yt,xt,bt,_t,wt,kt,Mt,At,Tt={element:gt,gd:t,plotinfo:e};function St(){Tt.plotinfo.selection=!1,_(ut)}function Et(r,i){var a=t._fullLayout.clickmode;if(F(t),2!==r||ht||function(){if(!t._transitioningWithDuration){var e,r,n,i=t._context.doubleClick,a=(tt?Y:[]).concat(et?X:[]),s={};if(\"reset+autosize\"===i)for(i=\"autosize\",r=0;r<a.length;r++)if((e=a[r])._rangeInitial&&(e.range[0]!==e._rangeInitial[0]||e.range[1]!==e._rangeInitial[1])||!e._rangeInitial&&!e.autorange){i=\"reset\";break}if(\"autosize\"===i)for(r=0;r<a.length;r++)(e=a[r]).fixedrange||(s[e._name+\".autorange\"]=!0);else if(\"reset\"===i)for((tt||nt)&&(a=a.concat(Q.xaxes)),et&&!nt&&(a=a.concat(Q.yaxes)),nt&&(tt?et||(a=a.concat(X)):a=a.concat(Y)),r=0;r<a.length;r++)(e=a[r])._rangeInitial?(n=e._rangeInitial,s[e._name+\".range[0]\"]=n[0],s[e._name+\".range[1]\"]=n[1]):s[e._name+\".autorange\"]=!0;t.emit(\"plotly_doubleclick\",null),o.call(\"relayout\",t,s)}}(),ft)a.indexOf(\"select\")>-1&&w(i,t,Y,X,e.id,Tt),a.indexOf(\"event\")>-1&&f.click(t,i,e.id);else if(1===r&&ht){var s=S?H:B,c=\"s\"===S||\"w\"===E?0:1,u=s._name+\".range[\"+c+\"]\",h=function(t,e){var r,i=t.range[e],a=Math.abs(i-t.range[1-e]);return\"date\"===t.type?i:\"log\"===t.type?(r=Math.ceil(Math.max(0,-Math.log(a)/Math.LN10))+3,n.format(\".\"+r+\"g\")(Math.pow(10,i))):(r=Math.floor(Math.log(Math.abs(i))/Math.LN10)-Math.floor(Math.log(a)/Math.LN10)+4,n.format(\".\"+String(r)+\"g\")(i))}(s,c),p=\"left\",d=\"middle\";if(s.fixedrange)return;S?(d=\"n\"===S?\"top\":\"bottom\",\"right\"===s.side&&(p=\"right\")):\"e\"===E&&(p=\"right\"),t._context.showAxisRangeEntryBoxes&&n.select(gt).call(l.makeEditable,{gd:t,immediate:!0,background:t._fullLayout.paper_bgcolor,text:String(h),fill:s.tickfont?s.tickfont.color:\"#444\",horizontalAlign:p,verticalAlign:d}).on(\"edit\",function(e){var r=s.d2r(e);void 0!==r&&o.call(\"relayout\",t,u,r)})}}function Ct(e,r){if(t._transitioningWithDuration)return!1;var n=Math.max(0,Math.min(J,e+vt)),i=Math.max(0,Math.min(K,r+mt)),a=Math.abs(n-vt),o=Math.abs(i-mt);function s(){wt=\"\",yt.r=yt.l,yt.t=yt.b,Mt.attr(\"d\",\"M0,0Z\")}yt.l=Math.min(vt,n),yt.r=Math.max(vt,n),yt.t=Math.min(mt,i),yt.b=Math.max(mt,i),nt?a>T||o>T?(wt=\"xy\",a/J>o/K?(o=a*K/J,mt>i?yt.t=mt-o:yt.b=mt+o):(a=o*J/K,vt>n?yt.l=vt-a:yt.r=vt+a),Mt.attr(\"d\",V(yt))):s():!et||o<Math.min(Math.max(.6*a,A),T)?a<A||!tt?s():(yt.t=0,yt.b=K,wt=\"x\",Mt.attr(\"d\",function(t,e){return\"M\"+(t.l-.5)+\",\"+(e-T-.5)+\"h-3v\"+(2*T+1)+\"h3ZM\"+(t.r+.5)+\",\"+(e-T-.5)+\"h3v\"+(2*T+1)+\"h-3Z\"}(yt,mt))):!tt||a<Math.min(.6*o,T)?(yt.l=0,yt.r=J,wt=\"y\",Mt.attr(\"d\",function(t,e){return\"M\"+(e-T-.5)+\",\"+(t.t-.5)+\"v-3h\"+(2*T+1)+\"v3ZM\"+(e-T-.5)+\",\"+(t.b+.5)+\"v3h\"+(2*T+1)+\"v-3Z\"}(yt,vt))):(wt=\"xy\",Mt.attr(\"d\",V(yt))),yt.w=yt.r-yt.l,yt.h=yt.b-yt.t,wt&&(At=!0),t._dragged=At,R(kt,Mt,yt,bt,_t,xt),_t=!0}function Lt(){if(ct={},Math.min(yt.h,yt.w)<2*A)return F(t);\"xy\"!==wt&&\"x\"!==wt||z(Y,yt.l/J,yt.r/J,ct,Q.xaxes),\"xy\"!==wt&&\"y\"!==wt||z(X,(K-yt.b)/K,(K-yt.t)/K,ct,Q.yaxes),F(t),Nt(),N(t)}Tt.prepFn=function(e,r,n){var a=Tt.dragmode,o=t._fullLayout.dragmode;o!==a&&(Tt.dragmode=o),pt(),rt||(ft?e.shiftKey?\"pan\"===o?o=\"zoom\":j(o)||(o=\"pan\"):e.ctrlKey&&(o=\"pan\"):o=\"pan\"),Tt.minDrag=\"lasso\"===o?1:void 0,j(o)?(Tt.xaxes=Y,Tt.yaxes=X,b(e,r,n,Tt,o)):(Tt.clickFn=Et,j(a)&&St(),rt||(\"zoom\"===o?(Tt.moveFn=Ct,Tt.doneFn=Lt,Tt.minDrag=1,function(e,r,n){var a=gt.getBoundingClientRect();vt=r-a.left,mt=n-a.top,yt={l:vt,r:vt,w:0,t:mt,b:mt,h:0},xt=t._hmpixcount?t._hmlumcount/t._hmpixcount:i(t._fullLayout.plot_bgcolor).getLuminance(),_t=!1,wt=\"xy\",At=!1,kt=P(ut,xt,Z,$,bt=\"M0,0H\"+J+\"V\"+K+\"H0V0\"),Mt=D(ut,Z,$)}(0,r,n)):\"pan\"===o&&(Tt.moveFn=Bt,Tt.doneFn=Nt)))},p.init(Tt);var zt,Ot,It=[0,0,J,K],Pt=null,Dt=M.REDRAWDELAY,Rt=e.mainplot?t._fullLayout._plots[e.mainplot]:e;function Bt(e,r){if(!t._transitioningWithDuration){if(\"ew\"===tt||\"ns\"===et)return tt&&O(Y,e),et&&O(X,r),jt([tt?-e:0,et?-r:0,J,K]),void Ft(et,tt);if(nt&&tt&&et){var n=\"w\"===tt==(\"n\"===et)?1:-1,i=(e/J+n*r/K)/2;e=i*J,r=n*i*K}\"w\"===tt?e=l(Y,0,e):\"e\"===tt?e=l(Y,1,-e):tt||(e=0),\"n\"===et?r=l(X,1,r):\"s\"===et?r=l(X,0,-r):et||(r=0);var a=\"w\"===tt?e:0,o=\"n\"===et?r:0;if(nt){var s;if(!tt&&1===et.length){for(s=0;s<Y.length;s++)Y[s].range=Y[s]._r.slice(),k(Y[s],1-r/K);a=(e=r*J/K)/2}if(!et&&1===tt.length){for(s=0;s<X.length;s++)X[s].range=X[s]._r.slice(),k(X[s],1-e/J);o=(r=e*K/J)/2}}jt([a,o,J-e,K-r]),Ft(et,tt)}function l(t,e,r){for(var n,i,a=1-e,o=0;o<t.length;o++){var s=t[o];if(!s.fixedrange){n=s,i=s._rl[a]+(s._rl[e]-s._rl[a])/I(r/s._length);var l=s.l2r(i);!1!==l&&void 0!==l&&(s.range[e]=l)}}return n._length*(n._rl[e]-i)/(n._rl[e]-n._rl[a])}}function Ft(e,r){var n,i=[];function a(t){for(n=0;n<t.length;n++)t[n].fixedrange||i.push(t[n]._id)}for(it&&(a(Y),a(Q.xaxes)),at&&(a(X),a(Q.yaxes)),ct={},n=0;n<i.length;n++){var s=i[n];y(t,s,!0);var l=x(t,s);ct[l._name+\".range[0]\"]=l.range[0],ct[l._name+\".range[1]\"]=l.range[1]}function c(a,o,s){for(n=0;n<a.length;n++){var l=a[n];if((r&&-1!==i.indexOf(l.xref)||e&&-1!==i.indexOf(l.yref))&&(o(t,n),s))return}}c(t._fullLayout.annotations||[],o.getComponentMethod(\"annotations\",\"drawOne\")),c(t._fullLayout.shapes||[],o.getComponentMethod(\"shapes\",\"drawOne\")),c(t._fullLayout.images||[],o.getComponentMethod(\"images\",\"draw\"),!0)}function Nt(){jt([0,0,J,K]),s.syncOrAsync([m.previousPromises,function(){o.call(\"relayout\",t,ct)}],t)}function jt(e){var r,n,i,a,l=t._fullLayout,c=l._plots,f=l._subplots.cartesian;if(st&&o.subplotsRegistry.splom.drag(t),ot)for(r=0;r<f.length;r++)if(i=(n=c[f[r]]).xaxis,a=n.yaxis,n._scene){var h=s.simpleMap(i.range,i.r2l),p=s.simpleMap(a.range,a.r2l);n._scene.update({range:[h[0],p[0],h[1],p[1]]})}if((st||ot)&&(g(t),v(t)),lt){var d=e[2]/B._length,m=e[3]/H._length;for(r=0;r<f.length;r++){i=(n=c[f[r]]).xaxis,a=n.yaxis;var y,x,b,_,w=it&&!i.fixedrange&&G[i._id],k=at&&!a.fixedrange&&W[a._id];if(w?(y=d,b=E?e[0]:qt(i,y)):b=Ut(i,y=Vt(i,d,m)),k?(x=m,_=S?e[1]:qt(a,x)):_=Ut(a,x=Vt(a,d,m)),y||x){y||(y=1),x||(x=1);var M=i._offset-b/y,A=a._offset-_/x;n.clipRect.call(u.setTranslate,b,_).call(u.setScale,y,x),n.plot.call(u.setTranslate,M,A).call(u.setScale,1/y,1/x),y===zt&&x===Ot||(u.setPointGroupScale(n.zoomScalePts,y,x),u.setTextPointsScale(n.zoomScaleTxt,y,x)),u.hideOutsideRangePoints(n.clipOnAxisFalseTraces,n),zt=y,Ot=x}}}}function Vt(t,e,r){return t.fixedrange?0:it&&Q.xaHash[t._id]?e:at&&(nt?Q.xaHash:Q.yaHash)[t._id]?r:0}function Ut(t,e){return e?(t.range=t._r.slice(),k(t,e),qt(t,e)):0}function qt(t,e){return t._length*(1-e)*d[t.constraintoward||\"middle\"]}return S.length*E.length!=1&&U(gt,function(e){if(t._context.scrollZoom||t._fullLayout._enablescrollzoom){if(St(),t._transitioningWithDuration)return e.preventDefault(),void e.stopPropagation();var r=t.querySelector(\".plotly\");if(pt(),!(r.scrollHeight-r.clientHeight>10||r.scrollWidth-r.clientWidth>10)){clearTimeout(Pt);var n=-e.deltaY;if(isFinite(n)||(n=e.wheelDelta/10),isFinite(n)){var i,a=Math.exp(-Math.min(Math.max(n,-20),20)/200),o=Rt.draglayer.select(\".nsewdrag\").node().getBoundingClientRect(),l=(e.clientX-o.left)/o.width,c=(o.bottom-e.clientY)/o.height;if(it){for(E||(l=.5),i=0;i<Y.length;i++)u(Y[i],l,a);It[2]*=a,It[0]+=It[2]*l*(1/a-1)}if(at){for(S||(c=.5),i=0;i<X.length;i++)u(X[i],c,a);It[3]*=a,It[1]+=It[3]*(1-c)*(1/a-1)}jt(It),Ft(S,E),Pt=setTimeout(function(){It=[0,0,J,K],Nt()},Dt),e.preventDefault()}else s.log(\"Did not find wheel motion attributes: \",e)}}function u(t,e,r){if(!t.fixedrange){var n=s.simpleMap(t.range,t.r2l),i=n[0]+(n[1]-n[0])*e;t.range=n.map(function(e){return t.l2r(i+(e-i)*r)})}}}),gt},makeDragger:E,makeRectDragger:C,makeZoombox:P,makeCorners:D,updateZoombox:R,xyCorners:V,transitionZoombox:B,removeZoombox:F,showDoubleClickNotifier:N,attachWheelEventHandler:U}},{\"../../components/color\":570,\"../../components/dragelement\":592,\"../../components/drawing\":595,\"../../components/fx\":612,\"../../constants/alignment\":668,\"../../lib\":696,\"../../lib/clear_gl_canvases\":680,\"../../lib/setcursor\":716,\"../../lib/svg_text_utils\":720,\"../../plot_api/subroutines\":735,\"../../registry\":827,\"../plots\":808,\"./axes\":744,\"./axis_ids\":747,\"./constants\":750,\"./scale_zoom\":761,\"./select\":762,d3:148,\"has-passive-events\":394,tinycolor2:514}],754:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../../components/fx\"),a=t(\"../../components/dragelement\"),o=t(\"../../lib/setcursor\"),s=t(\"./dragbox\").makeDragBox,l=t(\"./constants\").DRAGGERSIZE;r.initInteractions=function(t){var e=t._fullLayout;if(t._context.staticPlot)n.select(t).selectAll(\".drag\").remove();else if(e._has(\"cartesian\")||e._has(\"splom\")){Object.keys(e._plots||{}).sort(function(t,r){if((e._plots[t].mainplot&&!0)===(e._plots[r].mainplot&&!0)){var n=t.split(\"y\"),i=r.split(\"y\");return n[0]===i[0]?Number(n[1]||1)-Number(i[1]||1):Number(n[0]||1)-Number(i[0]||1)}return e._plots[t].mainplot?1:-1}).forEach(function(r){var n=e._plots[r],o=n.xaxis,c=n.yaxis;if(!n.mainplot){var u=s(t,n,o._offset,c._offset,o._length,c._length,\"ns\",\"ew\");u.onmousemove=function(e){t._fullLayout._rehover=function(){t._fullLayout._hoversubplot===r&&i.hover(t,e,r)},i.hover(t,e,r),t._fullLayout._lasthover=u,t._fullLayout._hoversubplot=r},u.onmouseout=function(e){t._dragging||(t._fullLayout._hoversubplot=null,a.unhover(t,e))},t._context.showAxisDragHandles&&(s(t,n,o._offset-l,c._offset-l,l,l,\"n\",\"w\"),s(t,n,o._offset+o._length,c._offset-l,l,l,\"n\",\"e\"),s(t,n,o._offset-l,c._offset+c._length,l,l,\"s\",\"w\"),s(t,n,o._offset+o._length,c._offset+c._length,l,l,\"s\",\"e\"))}if(t._context.showAxisDragHandles){if(r===o._mainSubplot){var f=o._mainLinePosition;\"top\"===o.side&&(f-=l),s(t,n,o._offset+.1*o._length,f,.8*o._length,l,\"\",\"ew\"),s(t,n,o._offset,f,.1*o._length,l,\"\",\"w\"),s(t,n,o._offset+.9*o._length,f,.1*o._length,l,\"\",\"e\")}if(r===c._mainSubplot){var h=c._mainLinePosition;\"right\"!==c.side&&(h-=l),s(t,n,h,c._offset+.1*c._length,l,.8*c._length,\"ns\",\"\"),s(t,n,h,c._offset+.9*c._length,l,.1*c._length,\"s\",\"\"),s(t,n,h,c._offset,l,.1*c._length,\"n\",\"\")}}});var o=e._hoverlayer.node();o.onmousemove=function(r){r.target=t._fullLayout._lasthover,i.hover(t,r,e._hoversubplot)},o.onclick=function(e){e.target=t._fullLayout._lasthover,i.click(t,e)},o.onmousedown=function(e){t._fullLayout._lasthover.onmousedown(e)},r.updateFx(t)}},r.updateFx=function(t){var e=t._fullLayout,r=\"pan\"===e.dragmode?\"move\":\"crosshair\";o(e._draggers,r)}},{\"../../components/dragelement\":592,\"../../components/fx\":612,\"../../lib/setcursor\":716,\"./constants\":750,\"./dragbox\":753,d3:148}],755:[function(t,e,r){\"use strict\";var n=t(\"../../registry\"),i=t(\"../../lib\");e.exports=function(t){return function(e,r){var a=e[t];if(Array.isArray(a))for(var o=n.subplotsRegistry.cartesian,s=o.idRegex,l=r._subplots,c=l.xaxis,u=l.yaxis,f=l.cartesian,h=r._has(\"cartesian\")||r._has(\"gl2d\"),p=0;p<a.length;p++){var d=a[p];if(i.isPlainObject(d)){var g=d.xref,v=d.yref,m=s.x.test(g),y=s.y.test(v);if(m||y){h||i.pushUnique(r._basePlotModules,o);var x=!1;m&&-1===c.indexOf(g)&&(c.push(g),x=!0),y&&-1===u.indexOf(v)&&(u.push(v),x=!0),x&&m&&y&&f.push(g+v)}}}}}},{\"../../lib\":696,\"../../registry\":827}],756:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../../registry\"),a=t(\"../../lib\"),o=t(\"../plots\"),s=t(\"../../components/drawing\"),l=t(\"../get_data\").getModuleCalcData,c=t(\"./axis_ids\"),u=t(\"./constants\"),f=t(\"../../constants/xmlns_namespaces\"),h=a.ensureSingle;function p(t,e,r){return a.ensureSingle(t,e,r,function(t){t.datum(r)})}function d(t,e,r,a,o){for(var c,f,h,p=u.traceLayerClasses,d=t._fullLayout,g=d._modules,v=[],m=[],y=0;y<g.length;y++){var x=(c=g[y]).name,b=i.modules[x].categories;if(b.svg){var _=c.layerName||x+\"layer\",w=c.plot;h=(f=l(r,w))[0],r=f[1],h.length&&v.push({i:p.indexOf(_),className:_,plotMethod:w,cdModule:h}),b.zoomScale&&m.push(\".\"+_)}}v.sort(function(t,e){return t.i-e.i});var k=e.plot.selectAll(\"g.mlayer\").data(v,function(t){return t.className});if(k.enter().append(\"g\").attr(\"class\",function(t){return t.className}).classed(\"mlayer\",!0),k.exit().remove(),k.order(),k.each(function(r){var i=n.select(this),l=r.className;r.plotMethod(t,e,r.cdModule,i,a,o),\"scatterlayer\"!==l&&\"barlayer\"!==l&&s.setClipUrl(i,e.layerClipId)}),d._has(\"scattergl\")&&(c=i.getModule(\"scattergl\"),h=l(r,c)[0],c.plot(t,e,h)),!t._context.staticPlot&&(e._hasClipOnAxisFalse&&(e.clipOnAxisFalseTraces=e.plot.selectAll(\".scatterlayer, .barlayer\").selectAll(\".trace\")),m.length)){var M=e.plot.selectAll(m.join(\",\")).selectAll(\".trace\");e.zoomScalePts=M.selectAll(\"path.point\"),e.zoomScaleTxt=M.selectAll(\".textpoint\")}}function g(t,e){var r=e.plotgroup,n=e.id,i=u.layerValue2layerClass[e.xaxis.layer],a=u.layerValue2layerClass[e.yaxis.layer],o=t._fullLayout._hasOnlyLargeSploms;if(e.mainplot){var s=e.mainplotinfo,l=s.plotgroup,f=n+\"-x\",d=n+\"-y\";e.gridlayer=s.gridlayer,e.zerolinelayer=s.zerolinelayer,h(s.overlinesBelow,\"path\",f),h(s.overlinesBelow,\"path\",d),h(s.overaxesBelow,\"g\",f),h(s.overaxesBelow,\"g\",d),e.plot=h(s.overplot,\"g\",n),h(s.overlinesAbove,\"path\",f),h(s.overlinesAbove,\"path\",d),h(s.overaxesAbove,\"g\",f),h(s.overaxesAbove,\"g\",d),e.xlines=l.select(\".overlines-\"+i).select(\".\"+f),e.ylines=l.select(\".overlines-\"+a).select(\".\"+d),e.xaxislayer=l.select(\".overaxes-\"+i).select(\".\"+f),e.yaxislayer=l.select(\".overaxes-\"+a).select(\".\"+d)}else if(o)e.xlines=h(r,\"path\",\"xlines-above\"),e.ylines=h(r,\"path\",\"ylines-above\"),e.xaxislayer=h(r,\"g\",\"xaxislayer-above\"),e.yaxislayer=h(r,\"g\",\"yaxislayer-above\");else{var g=h(r,\"g\",\"layer-subplot\");e.shapelayer=h(g,\"g\",\"shapelayer\"),e.imagelayer=h(g,\"g\",\"imagelayer\"),e.gridlayer=h(r,\"g\",\"gridlayer\"),e.zerolinelayer=h(r,\"g\",\"zerolinelayer\"),h(r,\"path\",\"xlines-below\"),h(r,\"path\",\"ylines-below\"),e.overlinesBelow=h(r,\"g\",\"overlines-below\"),h(r,\"g\",\"xaxislayer-below\"),h(r,\"g\",\"yaxislayer-below\"),e.overaxesBelow=h(r,\"g\",\"overaxes-below\"),e.plot=h(r,\"g\",\"plot\"),e.overplot=h(r,\"g\",\"overplot\"),e.xlines=h(r,\"path\",\"xlines-above\"),e.ylines=h(r,\"path\",\"ylines-above\"),e.overlinesAbove=h(r,\"g\",\"overlines-above\"),h(r,\"g\",\"xaxislayer-above\"),h(r,\"g\",\"yaxislayer-above\"),e.overaxesAbove=h(r,\"g\",\"overaxes-above\"),e.xlines=r.select(\".xlines-\"+i),e.ylines=r.select(\".ylines-\"+a),e.xaxislayer=r.select(\".xaxislayer-\"+i),e.yaxislayer=r.select(\".yaxislayer-\"+a)}o||(p(e.gridlayer,\"g\",e.xaxis._id),p(e.gridlayer,\"g\",e.yaxis._id),e.gridlayer.selectAll(\"g\").map(function(t){return t[0]}).sort(c.idSort)),e.xlines.style(\"fill\",\"none\").classed(\"crisp\",!0),e.ylines.style(\"fill\",\"none\").classed(\"crisp\",!0)}function v(t,e){if(t){var r={};for(var i in t.each(function(t){var i=t[0];n.select(this).remove(),m(i,e),r[i]=!0}),e._plots)for(var a=e._plots[i].overlays||[],o=0;o<a.length;o++){var s=a[o];r[s.id]&&s.plot.selectAll(\".trace\").remove()}}}function m(t,e){e._draggers.selectAll(\"g.\"+t).remove(),e._defs.select(\"#clip\"+e._uid+t+\"plot\").remove()}r.name=\"cartesian\",r.attr=[\"xaxis\",\"yaxis\"],r.idRoot=[\"x\",\"y\"],r.idRegex=u.idRegex,r.attrRegex=u.attrRegex,r.attributes=t(\"./attributes\"),r.layoutAttributes=t(\"./layout_attributes\"),r.supplyLayoutDefaults=t(\"./layout_defaults\"),r.transitionAxes=t(\"./transition_axes\"),r.finalizeSubplots=function(t,e){var r,n,i,o=e._subplots,s=o.xaxis,l=o.yaxis,f=o.cartesian,h=f.concat(o.gl2d||[]),p={},d={};for(r=0;r<h.length;r++){var g=h[r].split(\"y\");p[g[0]]=1,d[\"y\"+g[1]]=1}for(r=0;r<s.length;r++)p[n=s[r]]||(i=(t[c.id2name(n)]||{}).anchor,u.idRegex.y.test(i)||(i=\"y\"),f.push(n+i),h.push(n+i),d[i]||(d[i]=1,a.pushUnique(l,i)));for(r=0;r<l.length;r++)d[i=l[r]]||(n=(t[c.id2name(i)]||{}).anchor,u.idRegex.x.test(n)||(n=\"x\"),f.push(n+i),h.push(n+i),p[n]||(p[n]=1,a.pushUnique(s,n)));if(!h.length){for(var v in n=\"\",i=\"\",t){if(u.attrRegex.test(v))\"x\"===v.charAt(0)?(!n||+v.substr(5)<+n.substr(5))&&(n=v):(!i||+v.substr(5)<+i.substr(5))&&(i=v)}n=n?c.name2id(n):\"x\",i=i?c.name2id(i):\"y\",s.push(n),l.push(i),f.push(n+i)}},r.plot=function(t,e,r,n){var i,a=t._fullLayout,o=a._subplots.cartesian,s=t.calcdata;if(null!==e){if(!Array.isArray(e))for(e=[],i=0;i<s.length;i++)e.push(i);for(i=0;i<o.length;i++){for(var l,c=o[i],u=a._plots[c],f=[],h=0;h<s.length;h++){var p=s[h],g=p[0].trace;g.xaxis+g.yaxis===c&&((-1!==e.indexOf(g.index)||g.carpet)&&(l&&l[0].trace.xaxis+l[0].trace.yaxis===c&&-1!==[\"tonextx\",\"tonexty\",\"tonext\"].indexOf(g.fill)&&-1===f.indexOf(l)&&f.push(l),f.push(p)),l=p)}d(t,u,f,r,n)}}},r.clean=function(t,e,r,n){var i,a,o,s=n._plots||{},l=e._plots||{},u=n._subplots||{};if(n._hasOnlyLargeSploms&&!e._hasOnlyLargeSploms)for(o in s)(i=s[o]).plotgroup&&i.plotgroup.remove();var f=n._has&&n._has(\"gl\"),h=e._has&&e._has(\"gl\");if(f&&!h)for(o in s)(i=s[o])._scene&&i._scene.destroy();if(u.xaxis&&u.yaxis){var p=c.listIds({_fullLayout:n});for(a=0;a<p.length;a++){var d=p[a];e[c.id2name(d)]||n._infolayer.selectAll(\".g-\"+d+\"title\").remove()}}var g=n._has&&n._has(\"cartesian\"),y=e._has&&e._has(\"cartesian\");if(g&&!y)v(n._cartesianlayer.selectAll(\".subplot\"),n),n._defs.selectAll(\".axesclip\").remove(),delete n._axisConstraintGroups;else if(u.cartesian)for(a=0;a<u.cartesian.length;a++){var x=u.cartesian[a];if(!l[x]){var b=\".\"+x+\",.\"+x+\"-x,.\"+x+\"-y\";n._cartesianlayer.selectAll(b).remove(),m(x,n)}}},r.drawFramework=function(t){var e=t._fullLayout,r=function(t){var e,r,n,i,a,o,s=t._fullLayout,l=s._subplots.cartesian,c=l.length,u=[],f=[];for(e=0;e<c;e++){n=l[e],i=s._plots[n],a=i.xaxis,o=i.yaxis;var h=a._mainAxis,p=o._mainAxis,d=h._id+p._id,g=s._plots[d];i.overlays=[],d!==n&&g?(i.mainplot=d,i.mainplotinfo=g,f.push(n)):(i.mainplot=void 0,i.mainPlotinfo=void 0,u.push(n))}for(e=0;e<f.length;e++)n=f[e],(i=s._plots[n]).mainplotinfo.overlays.push(i);var v=u.concat(f),m=new Array(c);for(e=0;e<c;e++){n=v[e],i=s._plots[n],a=i.xaxis,o=i.yaxis;var y=[n,a.layer,o.layer,a.overlaying||\"\",o.overlaying||\"\"];for(r=0;r<i.overlays.length;r++)y.push(i.overlays[r].id);m[e]=y}return m}(t),i=e._cartesianlayer.selectAll(\".subplot\").data(r,String);i.enter().append(\"g\").attr(\"class\",function(t){return\"subplot \"+t[0]}),i.order(),i.exit().call(v,e),i.each(function(r){var i=r[0],a=e._plots[i];a.plotgroup=n.select(this),g(t,a),a.draglayer=h(e._draggers,\"g\",i)})},r.rangePlot=function(t,e,r){g(t,e),d(t,e,r),o.style(t)},r.toSVG=function(t){var e=t._fullLayout._glimages,r=n.select(t).selectAll(\".svg-container\");r.filter(function(t,e){return e===r.size()-1}).selectAll(\".gl-canvas-context, .gl-canvas-focus\").each(function(){var t=this.toDataURL(\"image/png\");e.append(\"svg:image\").attr({xmlns:f.svg,\"xlink:href\":t,preserveAspectRatio:\"none\",x:0,y:0,width:this.width,height:this.height})})},r.updateFx=t(\"./graph_interact\").updateFx},{\"../../components/drawing\":595,\"../../constants/xmlns_namespaces\":674,\"../../lib\":696,\"../../registry\":827,\"../get_data\":781,\"../plots\":808,\"./attributes\":742,\"./axis_ids\":747,\"./constants\":750,\"./graph_interact\":754,\"./layout_attributes\":757,\"./layout_defaults\":758,\"./transition_axes\":767,d3:148}],757:[function(t,e,r){\"use strict\";var n=t(\"../font_attributes\"),i=t(\"../../components/color/attributes\"),a=t(\"../../components/drawing/attributes\").dash,o=t(\"../../lib/extend\").extendFlat,s=t(\"../../plot_api/plot_template\").templatedArray,l=t(\"./constants\");e.exports={visible:{valType:\"boolean\",editType:\"plot\"},color:{valType:\"color\",dflt:i.defaultLine,editType:\"ticks\"},title:{valType:\"string\",editType:\"ticks\"},titlefont:n({editType:\"ticks\"}),type:{valType:\"enumerated\",values:[\"-\",\"linear\",\"log\",\"date\",\"category\"],dflt:\"-\",editType:\"calc\",_noTemplating:!0},autorange:{valType:\"enumerated\",values:[!0,!1,\"reversed\"],dflt:!0,editType:\"axrange\",impliedEdits:{\"range[0]\":void 0,\"range[1]\":void 0}},rangemode:{valType:\"enumerated\",values:[\"normal\",\"tozero\",\"nonnegative\"],dflt:\"normal\",editType:\"plot\"},range:{valType:\"info_array\",items:[{valType:\"any\",editType:\"axrange\",impliedEdits:{\"^autorange\":!1}},{valType:\"any\",editType:\"axrange\",impliedEdits:{\"^autorange\":!1}}],editType:\"axrange\",impliedEdits:{autorange:!1}},fixedrange:{valType:\"boolean\",dflt:!1,editType:\"calc\"},scaleanchor:{valType:\"enumerated\",values:[l.idRegex.x.toString(),l.idRegex.y.toString()],editType:\"plot\"},scaleratio:{valType:\"number\",min:0,dflt:1,editType:\"plot\"},constrain:{valType:\"enumerated\",values:[\"range\",\"domain\"],dflt:\"range\",editType:\"plot\"},constraintoward:{valType:\"enumerated\",values:[\"left\",\"center\",\"right\",\"top\",\"middle\",\"bottom\"],editType:\"plot\"},tickmode:{valType:\"enumerated\",values:[\"auto\",\"linear\",\"array\"],editType:\"ticks\",impliedEdits:{tick0:void 0,dtick:void 0}},nticks:{valType:\"integer\",min:0,dflt:0,editType:\"ticks\"},tick0:{valType:\"any\",editType:\"ticks\",impliedEdits:{tickmode:\"linear\"}},dtick:{valType:\"any\",editType:\"ticks\",impliedEdits:{tickmode:\"linear\"}},tickvals:{valType:\"data_array\",editType:\"ticks\"},ticktext:{valType:\"data_array\",editType:\"ticks\"},ticks:{valType:\"enumerated\",values:[\"outside\",\"inside\",\"\"],editType:\"ticks\"},mirror:{valType:\"enumerated\",values:[!0,\"ticks\",!1,\"all\",\"allticks\"],dflt:!1,editType:\"ticks+layoutstyle\"},ticklen:{valType:\"number\",min:0,dflt:5,editType:\"ticks\"},tickwidth:{valType:\"number\",min:0,dflt:1,editType:\"ticks\"},tickcolor:{valType:\"color\",dflt:i.defaultLine,editType:\"ticks\"},showticklabels:{valType:\"boolean\",dflt:!0,editType:\"ticks\"},automargin:{valType:\"boolean\",dflt:!1,editType:\"ticks\"},showspikes:{valType:\"boolean\",dflt:!1,editType:\"modebar\"},spikecolor:{valType:\"color\",dflt:null,editType:\"none\"},spikethickness:{valType:\"number\",dflt:3,editType:\"none\"},spikedash:o({},a,{dflt:\"dash\",editType:\"none\"}),spikemode:{valType:\"flaglist\",flags:[\"toaxis\",\"across\",\"marker\"],dflt:\"toaxis\",editType:\"none\"},spikesnap:{valType:\"enumerated\",values:[\"data\",\"cursor\"],dflt:\"data\",editType:\"none\"},tickfont:n({editType:\"ticks\"}),tickangle:{valType:\"angle\",dflt:\"auto\",editType:\"ticks\"},tickprefix:{valType:\"string\",dflt:\"\",editType:\"ticks\"},showtickprefix:{valType:\"enumerated\",values:[\"all\",\"first\",\"last\",\"none\"],dflt:\"all\",editType:\"ticks\"},ticksuffix:{valType:\"string\",dflt:\"\",editType:\"ticks\"},showticksuffix:{valType:\"enumerated\",values:[\"all\",\"first\",\"last\",\"none\"],dflt:\"all\",editType:\"ticks\"},showexponent:{valType:\"enumerated\",values:[\"all\",\"first\",\"last\",\"none\"],dflt:\"all\",editType:\"ticks\"},exponentformat:{valType:\"enumerated\",values:[\"none\",\"e\",\"E\",\"power\",\"SI\",\"B\"],dflt:\"B\",editType:\"ticks\"},separatethousands:{valType:\"boolean\",dflt:!1,editType:\"ticks\"},tickformat:{valType:\"string\",dflt:\"\",editType:\"ticks\"},tickformatstops:s(\"tickformatstop\",{enabled:{valType:\"boolean\",dflt:!0,editType:\"ticks\"},dtickrange:{valType:\"info_array\",items:[{valType:\"any\",editType:\"ticks\"},{valType:\"any\",editType:\"ticks\"}],editType:\"ticks\"},value:{valType:\"string\",dflt:\"\",editType:\"ticks\"},editType:\"ticks\"}),hoverformat:{valType:\"string\",dflt:\"\",editType:\"none\"},showline:{valType:\"boolean\",dflt:!1,editType:\"ticks+layoutstyle\"},linecolor:{valType:\"color\",dflt:i.defaultLine,editType:\"layoutstyle\"},linewidth:{valType:\"number\",min:0,dflt:1,editType:\"ticks+layoutstyle\"},showgrid:{valType:\"boolean\",editType:\"ticks\"},gridcolor:{valType:\"color\",dflt:i.lightLine,editType:\"ticks\"},gridwidth:{valType:\"number\",min:0,dflt:1,editType:\"ticks\"},zeroline:{valType:\"boolean\",editType:\"ticks\"},zerolinecolor:{valType:\"color\",dflt:i.defaultLine,editType:\"ticks\"},zerolinewidth:{valType:\"number\",dflt:1,editType:\"ticks\"},anchor:{valType:\"enumerated\",values:[\"free\",l.idRegex.x.toString(),l.idRegex.y.toString()],editType:\"plot\"},side:{valType:\"enumerated\",values:[\"top\",\"bottom\",\"left\",\"right\"],editType:\"plot\"},overlaying:{valType:\"enumerated\",values:[\"free\",l.idRegex.x.toString(),l.idRegex.y.toString()],editType:\"plot\"},layer:{valType:\"enumerated\",values:[\"above traces\",\"below traces\"],dflt:\"above traces\",editType:\"plot\"},domain:{valType:\"info_array\",items:[{valType:\"number\",min:0,max:1,editType:\"plot\"},{valType:\"number\",min:0,max:1,editType:\"plot\"}],dflt:[0,1],editType:\"plot\"},position:{valType:\"number\",min:0,max:1,dflt:0,editType:\"plot\"},categoryorder:{valType:\"enumerated\",values:[\"trace\",\"category ascending\",\"category descending\",\"array\"],dflt:\"trace\",editType:\"calc\"},categoryarray:{valType:\"data_array\",editType:\"calc\"},editType:\"calc\",_deprecated:{autotick:{valType:\"boolean\",editType:\"ticks\"}}}},{\"../../components/color/attributes\":569,\"../../components/drawing/attributes\":594,\"../../lib/extend\":685,\"../../plot_api/plot_template\":734,\"../font_attributes\":771,\"./constants\":750}],758:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../components/color\"),a=t(\"../../plot_api/plot_template\"),o=t(\"../layout_attributes\"),s=t(\"./layout_attributes\"),l=t(\"./type_defaults\"),c=t(\"./axis_defaults\"),u=t(\"./constraint_defaults\"),f=t(\"./position_defaults\"),h=t(\"./axis_ids\"),p=h.id2name,d=h.name2id,g=t(\"../../registry\"),v=g.traceIs,m=g.getComponentMethod;function y(t,e,r){Array.isArray(t[e])?t[e].push(r):t[e]=[r]}e.exports=function(t,e,r){var h,g,x={},b={},_={},w={},k={};for(h=0;h<r.length;h++){var M=r[h];if(v(M,\"cartesian\")||v(M,\"gl2d\")){var A,T;if(M.xaxis)y(x,A=p(M.xaxis),M);else if(M.xaxes)for(g=0;g<M.xaxes.length;g++)y(x,p(M.xaxes[g]),M);if(M.yaxis)y(x,T=p(M.yaxis),M);else if(M.yaxes)for(g=0;g<M.yaxes.length;g++)y(x,p(M.yaxes[g]),M);if(v(M,\"carpet\")&&(\"carpet\"!==M.type||M._cheater)||A&&(_[A]=1),\"carpet\"===M.type&&M._cheater&&A&&(b[A]=1),v(M,\"2dMap\")&&(w[A]=1,w[T]=1),v(M,\"oriented\"))k[\"h\"===M.orientation?T:A]=1}}var S=e._subplots,E=S.xaxis,C=S.yaxis,L=n.simpleMap(E,p),z=n.simpleMap(C,p),O=L.concat(z),I=i.background;E.length&&C.length&&(I=n.coerce(t,e,o,\"plot_bgcolor\"));var P,D,R,B,F=i.combine(I,e.paper_bgcolor);function N(t,e){return n.coerce(R,B,s,t,e)}function j(t,e){return n.coerce2(R,B,s,t,e)}function V(t){return\"x\"===t?C:E}var U={x:V(\"x\"),y:V(\"y\")};function q(e,r){for(var n=\"x\"===e?L:z,i=[],a=0;a<n.length;a++){var o=n[a];o===r||(t[o]||{}).overlaying||i.push(d(o))}return i}for(h=0;h<O.length;h++){D=(P=O[h]).charAt(0),n.isPlainObject(t[P])||(t[P]={}),R=t[P],B=a.newContainer(e,P,D+\"axis\");var H=x[P]||[];B._traceIndices=H.map(function(t){return t._expandedIndex}),B._annIndices=[],B._shapeIndices=[],B._name=P;var G=B._id=d(P),W=q(D,P),Y={letter:D,font:e.font,outerTicks:w[P],showGrid:!k[P],data:H,bgColor:F,calendar:e.calendar,automargin:!0,cheateronly:\"x\"===D&&b[P]&&!_[P],splomStash:((e._splomAxes||{})[D]||{})[G]};l(R,B,N,Y),c(R,B,N,Y,e);var X=j(\"spikecolor\"),Z=j(\"spikethickness\"),$=j(\"spikedash\"),J=j(\"spikemode\"),K=j(\"spikesnap\");N(\"showspikes\",!!(X||Z||$||J||K))||(delete B.spikecolor,delete B.spikethickness,delete B.spikedash,delete B.spikemode,delete B.spikesnap);var Q={letter:D,counterAxes:U[D],overlayableAxes:W,grid:e.grid};f(R,B,N,Q),B._input=R}var tt=m(\"rangeslider\",\"handleDefaults\"),et=m(\"rangeselector\",\"handleDefaults\");for(h=0;h<L.length;h++)P=L[h],R=t[P],B=e[P],tt(t,e,P),\"date\"===B.type&&et(R,B,e,z,B.calendar),N(\"fixedrange\");for(h=0;h<z.length;h++){P=z[h],R=t[P],B=e[P];var rt=e[p(B.anchor)];N(\"fixedrange\",rt&&rt.rangeslider&&rt.rangeslider.visible)}e._axisConstraintGroups=[];var nt=U.x.concat(U.y);for(h=0;h<O.length;h++)D=(P=O[h]).charAt(0),R=t[P],B=e[P],u(R,B,N,nt,e)}},{\"../../components/color\":570,\"../../lib\":696,\"../../plot_api/plot_template\":734,\"../../registry\":827,\"../layout_attributes\":799,\"./axis_defaults\":746,\"./axis_ids\":747,\"./constraint_defaults\":751,\"./layout_attributes\":757,\"./position_defaults\":760,\"./type_defaults\":768}],759:[function(t,e,r){\"use strict\";var n=t(\"tinycolor2\").mix,i=t(\"../../components/color/attributes\").lightFraction,a=t(\"../../lib\");e.exports=function(t,e,r,o){var s=(o=o||{}).dfltColor;function l(r,n){return a.coerce2(t,e,o.attributes,r,n)}var c=l(\"linecolor\",s),u=l(\"linewidth\");r(\"showline\",o.showLine||!!c||!!u)||(delete e.linecolor,delete e.linewidth);var f=l(\"gridcolor\",n(s,o.bgColor,o.blend||i).toRgbString()),h=l(\"gridwidth\");if(r(\"showgrid\",o.showGrid||!!f||!!h)||(delete e.gridcolor,delete e.gridwidth),!o.noZeroLine){var p=l(\"zerolinecolor\",s),d=l(\"zerolinewidth\");r(\"zeroline\",o.showGrid||!!p||!!d)||(delete e.zerolinecolor,delete e.zerolinewidth)}}},{\"../../components/color/attributes\":569,\"../../lib\":696,tinycolor2:514}],760:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../../lib\");e.exports=function(t,e,r,a){var o,s,l,c,u=a.counterAxes||[],f=a.overlayableAxes||[],h=a.letter,p=a.grid;p&&(s=p._domains[h][p._axisMap[e._id]],o=p._anchors[e._id],s&&(l=p[h+\"side\"].split(\" \")[0],c=p.domain[h][\"right\"===l||\"top\"===l?1:0])),s=s||[0,1],o=o||(n(t.position)?\"free\":u[0]||\"free\"),l=l||(\"x\"===h?\"bottom\":\"left\"),c=c||0,\"free\"===i.coerce(t,e,{anchor:{valType:\"enumerated\",values:[\"free\"].concat(u),dflt:o}},\"anchor\")&&r(\"position\",c),i.coerce(t,e,{side:{valType:\"enumerated\",values:\"x\"===h?[\"bottom\",\"top\"]:[\"left\",\"right\"],dflt:l}},\"side\");var d=!1;if(f.length&&(d=i.coerce(t,e,{overlaying:{valType:\"enumerated\",values:[!1].concat(f),dflt:!1}},\"overlaying\")),!d){var g=r(\"domain\",s);g[0]>g[1]-.01&&(e.domain=s),i.noneOrAll(t.domain,e.domain,s)}return r(\"layer\"),e}},{\"../../lib\":696,\"fast-isnumeric\":214}],761:[function(t,e,r){\"use strict\";var n=t(\"../../constants/alignment\").FROM_BL;e.exports=function(t,e,r){void 0===r&&(r=n[t.constraintoward||\"center\"]);var i=[t.r2l(t.range[0]),t.r2l(t.range[1])],a=i[0]+(i[1]-i[0])*r;t.range=t._input.range=[t.l2r(a+(i[0]-a)*e),t.l2r(a+(i[1]-a)*e)]}},{\"../../constants/alignment\":668}],762:[function(t,e,r){\"use strict\";var n=t(\"polybooljs\"),i=t(\"../../registry\"),a=t(\"../../components/color\"),o=t(\"../../components/fx\"),s=t(\"../../lib/polygon\"),l=t(\"../../lib/throttle\"),c=t(\"../../components/fx/helpers\").makeEventData,u=t(\"./axis_ids\").getFromId,f=t(\"../../lib/clear_gl_canvases\"),h=t(\"../../plot_api/subroutines\").redrawReglTraces,p=t(\"./constants\"),d=p.MINSELECT,g=s.filter,v=s.tester;function m(t){return t._id}function y(t,e,r,n,i,a,o){var s,l,c,u,f,h,p,d,g,v=e._hoverdata,m=e._fullLayout.clickmode.indexOf(\"event\")>-1,y=[];if(function(t){return t&&Array.isArray(t)&&!0!==t[0].hoverOnBox}(v)){w(t,e,a);var x=function(t,e){var r,n,i=t[0],a=-1,o=[];for(n=0;n<e.length;n++)if(r=e[n],i.fullData._expandedIndex===r.cd[0].trace._expandedIndex){if(!0===i.hoverOnBox)break;void 0!==i.pointNumber?a=i.pointNumber:void 0!==i.binNumber&&(a=i.binNumber,o=i.pointNumbers);break}return{pointNumber:a,pointNumbers:o,searchInfo:r}}(v,s=M(e,r,n,i));if(x.pointNumbers.length>0?function(t,e){var r,n,i,a=[];for(i=0;i<t.length;i++)(r=t[i]).cd[0].trace.selectedpoints&&r.cd[0].trace.selectedpoints.length>0&&a.push(r);if(1===a.length&&a[0]===e.searchInfo&&(n=e.searchInfo.cd[0].trace).selectedpoints.length===e.pointNumbers.length){for(i=0;i<e.pointNumbers.length;i++)if(n.selectedpoints.indexOf(e.pointNumbers[i])<0)return!1;return!0}return!1}(s,x):function(t){var e,r,n,i=0;for(n=0;n<t.length;n++)if(e=t[n],(r=e.cd[0].trace).selectedpoints){if(r.selectedpoints.length>1)return!1;if((i+=r.selectedpoints.length)>1)return!1}return 1===i}(s)&&(h=T(x))){for(o&&o.remove(),g=0;g<s.length;g++)(l=s[g])._module.selectPoints(l,!1);S(e,s),k(a),m&&e.emit(\"plotly_deselect\",null)}else{for(p=t.shiftKey&&(void 0!==h?h:T(x)),c=function(t,e,r){return{pointNumber:t,searchInfo:e,subtract:r}}(x.pointNumber,x.searchInfo,p),u=_(a.selectionDefs.concat([c])),g=0;g<s.length;g++)if(f=E(s[g]._module.selectPoints(s[g],u),s[g]),y.length)for(var b=0;b<f.length;b++)y.push(f[b]);else y=f;S(e,s,d={points:y}),c&&a&&a.selectionDefs.push(c),o&&A(a.mergedPolygons,o),m&&e.emit(\"plotly_selected\",d)}}}function x(t){return\"pointNumber\"in t&&\"searchInfo\"in t}function b(t){return{xmin:0,xmax:0,ymin:0,ymax:0,pts:[],contains:function(e,r,n,i){var a=t.searchInfo.cd[0].trace._expandedIndex;return i.cd[0].trace._expandedIndex===a&&n===t.pointNumber},isRect:!1,degenerate:!1,subtract:t.subtract}}function _(t){for(var e=[],r=x(t[0])?0:t[0][0][0],n=r,i=x(t[0])?0:t[0][0][1],a=i,o=0;o<t.length;o++)if(x(t[o]))e.push(b(t[o]));else{var l=s.tester(t[o]);l.subtract=t[o].subtract,e.push(l),r=Math.min(r,l.xmin),n=Math.max(n,l.xmax),i=Math.min(i,l.ymin),a=Math.max(a,l.ymax)}return{xmin:r,xmax:n,ymin:i,ymax:a,pts:[],contains:function(t,r,n,i){for(var a=!1,o=0;o<e.length;o++)e[o].contains(t,r,n,i)&&(a=!1===e[o].subtract);return a},isRect:!1,degenerate:!1}}function w(t,e,r){var n=e._fullLayout,i=n._zoomlayer,a=r.plotinfo,o=n._lastSelectedSubplot&&n._lastSelectedSubplot===a.id,s=t.shiftKey||t.altKey;o&&s&&a.selection&&a.selection.selectionDefs&&!r.selectionDefs?(r.selectionDefs=a.selection.selectionDefs,r.mergedPolygons=a.selection.mergedPolygons):s&&a.selection||k(r),o||(C(i),n._lastSelectedSubplot=a.id)}function k(t){var e=t.plotinfo;e.selection={},e.selection.selectionDefs=t.selectionDefs=[],e.selection.mergedPolygons=t.mergedPolygons=[]}function M(t,e,r,n){var i,a,o,s=[],l=e.map(m),c=r.map(m);for(o=0;o<t.calcdata.length;o++)if(!0===(a=(i=t.calcdata[o])[0].trace).visible&&a._module&&a._module.selectPoints)if(!n||a.subplot!==n&&a.geo!==n)if(\"splom\"===a.type&&a._xaxes[l[0]]&&a._yaxes[c[0]]){var f=h(a._module,i,e[0],r[0]);f.scene=t._fullLayout._splomScenes[a.uid],s.push(f)}else{if(-1===l.indexOf(a.xaxis))continue;if(-1===c.indexOf(a.yaxis))continue;s.push(h(a._module,i,u(t,a.xaxis),u(t,a.yaxis)))}else s.push(h(a._module,i,e[0],r[0]));return s;function h(t,e,r,n){return{_module:t,cd:e,xaxis:r,yaxis:n}}}function A(t,e){var r,n,i=[];for(r=0;r<t.length;r++){var a=t[r];i.push(a.join(\"L\")+\"L\"+a[0])}n=t.length>0?\"M\"+i.join(\"M\")+\"Z\":\"M0,0Z\",e.attr(\"d\",n)}function T(t){var e=t.searchInfo.cd[0].trace,r=t.pointNumber,n=t.pointNumbers,i=n.length>0?n[0]:r;return!!e.selectedpoints&&e.selectedpoints.indexOf(i)>-1}function S(t,e,r){var n,a,o,s;if(r){var l=r.points||[];for(n=0;n<e.length;n++)(s=e[n].cd[0].trace).selectedpoints=[],s._input.selectedpoints=[];for(n=0;n<l.length;n++){var c=l[n],u=c.data,p=c.fullData;c.pointIndices?([].push.apply(u.selectedpoints,c.pointIndices),[].push.apply(p.selectedpoints,c.pointIndices)):(u.selectedpoints.push(c.pointIndex),p.selectedpoints.push(c.pointIndex))}}else for(n=0;n<e.length;n++)delete(s=e[n].cd[0].trace).selectedpoints,delete s._input.selectedpoints;var d=!1;for(n=0;n<e.length;n++){s=(o=(a=e[n]).cd)[0].trace,i.traceIs(s,\"regl\")&&(d=!0);var g=a._module,v=g.styleOnSelect||g.style;v&&v(t,o)}d&&(f(t),h(t))}function E(t,e){if(Array.isArray(t))for(var r=e.cd,n=e.cd[0].trace,i=0;i<t.length;i++)t[i]=c(t[i],n,r);return t}function C(t){t.selectAll(\".select-outline\").remove()}e.exports={prepSelect:function(t,e,r,i,s){var c,u,f,h,m,x,b,T=i.gd,C=T._fullLayout,L=C._zoomlayer,z=i.element.getBoundingClientRect(),O=i.plotinfo,I=O.xaxis._offset,P=O.yaxis._offset,D=e-z.left,R=r-z.top,B=D,F=R,N=\"M\"+D+\",\"+R,j=i.xaxes[0]._length,V=i.yaxes[0]._length,U=i.xaxes.concat(i.yaxes),q=t.altKey;w(t,T,i),\"lasso\"===s&&(c=g([[D,R]],p.BENDPX));var H=L.selectAll(\"path.select-outline-\"+O.id).data([1,2]);H.enter().append(\"path\").attr(\"class\",function(t){return\"select-outline select-outline-\"+t+\" select-outline-\"+O.id}).attr(\"transform\",\"translate(\"+I+\", \"+P+\")\").attr(\"d\",N+\"Z\");var G,W=L.append(\"path\").attr(\"class\",\"zoombox-corners\").style({fill:a.background,stroke:a.defaultLine,\"stroke-width\":1}).attr(\"transform\",\"translate(\"+I+\", \"+P+\")\").attr(\"d\",\"M0,0Z\"),Y=C._uid+p.SELECTID,X=[],Z=M(T,i.xaxes,i.yaxes,i.subplot);function $(t){var e=\"y\"===t._id.charAt(0)?1:0;return function(r){return t.p2d(r[e])}}function J(t,e){return t-e}G=O.fillRangeItems?O.fillRangeItems:\"select\"===s?function(t,e){var r=t.range={};for(m=0;m<U.length;m++){var n=U[m],i=n._id.charAt(0);r[n._id]=[n.p2d(e[i+\"min\"]),n.p2d(e[i+\"max\"])].sort(J)}}:function(t,e,r){var n=t.lassoPoints={};for(m=0;m<U.length;m++){var i=U[m];n[i._id]=r.filtered.map($(i))}},i.moveFn=function(t,e){B=Math.max(0,Math.min(j,t+D)),F=Math.max(0,Math.min(V,e+R));var r=Math.abs(B-D),a=Math.abs(F-R);if(\"select\"===s){var o=C.selectdirection;\"h\"===(o=\"any\"===C.selectdirection?a<Math.min(.6*r,d)?\"h\":r<Math.min(.6*a,d)?\"v\":\"d\":C.selectdirection)?((h=[[D,0],[D,V],[B,V],[B,0]]).xmin=Math.min(D,B),h.xmax=Math.max(D,B),h.ymin=Math.min(0,V),h.ymax=Math.max(0,V),W.attr(\"d\",\"M\"+h.xmin+\",\"+(R-d)+\"h-4v\"+2*d+\"h4ZM\"+(h.xmax-1)+\",\"+(R-d)+\"h4v\"+2*d+\"h-4Z\")):\"v\"===o?((h=[[0,R],[0,F],[j,F],[j,R]]).xmin=Math.min(0,j),h.xmax=Math.max(0,j),h.ymin=Math.min(R,F),h.ymax=Math.max(R,F),W.attr(\"d\",\"M\"+(D-d)+\",\"+h.ymin+\"v-4h\"+2*d+\"v4ZM\"+(D-d)+\",\"+(h.ymax-1)+\"v4h\"+2*d+\"v-4Z\")):\"d\"===o&&((h=[[D,R],[D,F],[B,F],[B,R]]).xmin=Math.min(D,B),h.xmax=Math.max(D,B),h.ymin=Math.min(R,F),h.ymax=Math.max(R,F),W.attr(\"d\",\"M0,0Z\"))}else\"lasso\"===s&&(c.addPt([B,F]),h=c.filtered);i.selectionDefs&&i.selectionDefs.length?(f=function(t,e,r){return r?n.difference({regions:t,inverted:!1},{regions:[e],inverted:!1}).regions:n.union({regions:t,inverted:!1},{regions:[e],inverted:!1}).regions}(i.mergedPolygons,h,q),h.subtract=q,u=_(i.selectionDefs.concat([h]))):(f=[h],u=v(h)),A(f,H),l.throttle(Y,p.SELECTDELAY,function(){X=[];var t,e,r=[];for(m=0;m<Z.length;m++)if(e=(x=Z[m])._module.selectPoints(x,u),r.push(e),t=E(e,x),X.length)for(var n=0;n<t.length;n++)X.push(t[n]);else X=t;S(T,Z,b={points:X}),G(b,h,c),i.gd.emit(\"plotly_selecting\",b)})},i.clickFn=function(t,e){var r=C.clickmode;W.remove(),l.done(Y).then(function(){if(l.clear(Y),2===t){for(H.remove(),m=0;m<Z.length;m++)(x=Z[m])._module.selectPoints(x,!1);S(T,Z),k(i),T.emit(\"plotly_deselect\",null)}else r.indexOf(\"select\")>-1&&y(e,T,i.xaxes,i.yaxes,i.subplot,i,H),\"event\"===r&&T.emit(\"plotly_selected\",void 0);o.click(T,e)})},i.doneFn=function(){W.remove(),l.done(Y).then(function(){l.clear(Y),i.gd.emit(\"plotly_selected\",b),h&&i.selectionDefs&&(h.subtract=q,i.selectionDefs.push(h),i.mergedPolygons.length=0,[].push.apply(i.mergedPolygons,f))})}},clearSelect:C,selectOnClick:y}},{\"../../components/color\":570,\"../../components/fx\":612,\"../../components/fx/helpers\":609,\"../../lib/clear_gl_canvases\":680,\"../../lib/polygon\":708,\"../../lib/throttle\":721,\"../../plot_api/subroutines\":735,\"../../registry\":827,\"./axis_ids\":747,\"./constants\":750,polybooljs:456}],763:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"fast-isnumeric\"),a=t(\"../../lib\"),o=a.cleanNumber,s=a.ms2DateTime,l=a.dateTime2ms,c=a.ensureNumber,u=t(\"../../constants/numerical\"),f=u.FP_SAFE,h=u.BADNUM,p=u.LOG_CLIP,d=t(\"./constants\"),g=t(\"./axis_ids\");function v(t){return Math.pow(10,t)}e.exports=function(t,e){e=e||{};var r=(t._id||\"x\").charAt(0);function u(e,r){if(e>0)return Math.log(e)/Math.LN10;if(e<=0&&r&&t.range&&2===t.range.length){var n=t.range[0],i=t.range[1];return.5*(n+i-2*p*Math.abs(n-i))}return h}function m(e,r,n){var o=l(e,n||t.calendar);if(o===h){if(!i(e))return h;e=+e;var s=Math.floor(10*a.mod(e+.05,1)),c=Math.round(e-s/10);o=l(new Date(c))+s/10}return o}function y(e,r,n){return s(e,r,n||t.calendar)}function x(e){return t._categories[Math.round(e)]}function b(e){if(t._categoriesMap){var r=t._categoriesMap[e];if(void 0!==r)return r}if(i(e))return+e}function _(e){return i(e)?n.round(t._b+t._m*e,2):h}function w(e){return(e-t._b)/t._m}t.c2l=\"log\"===t.type?u:c,t.l2c=\"log\"===t.type?v:c,t.l2p=_,t.p2l=w,t.c2p=\"log\"===t.type?function(t,e){return _(u(t,e))}:_,t.p2c=\"log\"===t.type?function(t){return v(w(t))}:w,-1!==[\"linear\",\"-\"].indexOf(t.type)?(t.d2r=t.r2d=t.d2c=t.r2c=t.d2l=t.r2l=o,t.c2d=t.c2r=t.l2d=t.l2r=c,t.d2p=t.r2p=function(e){return t.l2p(o(e))},t.p2d=t.p2r=w,t.cleanPos=c):\"log\"===t.type?(t.d2r=t.d2l=function(t,e){return u(o(t),e)},t.r2d=t.r2c=function(t){return v(o(t))},t.d2c=t.r2l=o,t.c2d=t.l2r=c,t.c2r=u,t.l2d=v,t.d2p=function(e,r){return t.l2p(t.d2r(e,r))},t.p2d=function(t){return v(w(t))},t.r2p=function(e){return t.l2p(o(e))},t.p2r=w,t.cleanPos=c):\"date\"===t.type?(t.d2r=t.r2d=a.identity,t.d2c=t.r2c=t.d2l=t.r2l=m,t.c2d=t.c2r=t.l2d=t.l2r=y,t.d2p=t.r2p=function(e,r,n){return t.l2p(m(e,0,n))},t.p2d=t.p2r=function(t,e,r){return y(w(t),e,r)},t.cleanPos=function(e){return a.cleanDate(e,h,t.calendar)}):\"category\"===t.type&&(t.d2c=t.d2l=function(e){if(null!=e){if(void 0===t._categoriesMap&&(t._categoriesMap={}),void 0!==t._categoriesMap[e])return t._categoriesMap[e];t._categories.push(e);var r=t._categories.length-1;return t._categoriesMap[e]=r,r}return h},t.r2d=t.c2d=t.l2d=x,t.d2r=t.d2l_noadd=b,t.r2c=function(e){var r=b(e);return void 0!==r?r:t.fraction2r(.5)},t.l2r=t.c2r=c,t.r2l=b,t.d2p=function(e){return t.l2p(t.r2c(e))},t.p2d=function(t){return x(w(t))},t.r2p=t.d2p,t.p2r=w,t.cleanPos=function(t){return\"string\"==typeof t&&\"\"!==t?t:c(t)}),t.fraction2r=function(e){var r=t.r2l(t.range[0]),n=t.r2l(t.range[1]);return t.l2r(r+e*(n-r))},t.r2fraction=function(e){var r=t.r2l(t.range[0]),n=t.r2l(t.range[1]);return(t.r2l(e)-r)/(n-r)},t.cleanRange=function(e,n){n||(n={}),e||(e=\"range\");var o,s,l=a.nestedProperty(t,e).get();if(s=(s=\"date\"===t.type?a.dfltRange(t.calendar):\"y\"===r?d.DFLTRANGEY:n.dfltRange||d.DFLTRANGEX).slice(),l&&2===l.length)for(\"date\"===t.type&&(l[0]=a.cleanDate(l[0],h,t.calendar),l[1]=a.cleanDate(l[1],h,t.calendar)),o=0;o<2;o++)if(\"date\"===t.type){if(!a.isDateTime(l[o],t.calendar)){t[e]=s;break}if(t.r2l(l[0])===t.r2l(l[1])){var c=a.constrain(t.r2l(l[0]),a.MIN_MS+1e3,a.MAX_MS-1e3);l[0]=t.l2r(c-1e3),l[1]=t.l2r(c+1e3);break}}else{if(!i(l[o])){if(!i(l[1-o])){t[e]=s;break}l[o]=l[1-o]*(o?10:.1)}if(l[o]<-f?l[o]=-f:l[o]>f&&(l[o]=f),l[0]===l[1]){var u=Math.max(1,Math.abs(1e-6*l[0]));l[0]-=u,l[1]+=u}}else a.nestedProperty(t,e).set(s)},t.setScale=function(n){var i=e._size;if(t._categories||(t._categories=[]),t._categoriesMap||(t._categoriesMap={}),t.overlaying){var a=g.getFromId({_fullLayout:e},t.overlaying);t.domain=a.domain}var o=n&&t._r?\"_r\":\"range\",s=t.calendar;t.cleanRange(o);var l=t.r2l(t[o][0],s),c=t.r2l(t[o][1],s);if(\"y\"===r?(t._offset=i.t+(1-t.domain[1])*i.h,t._length=i.h*(t.domain[1]-t.domain[0]),t._m=t._length/(l-c),t._b=-t._m*c):(t._offset=i.l+t.domain[0]*i.w,t._length=i.w*(t.domain[1]-t.domain[0]),t._m=t._length/(c-l),t._b=-t._m*l),!isFinite(t._m)||!isFinite(t._b))throw e._replotting=!1,new Error(\"Something went wrong with axis scaling\")},t.makeCalcdata=function(e,r){var n,i,o,s,l=t.type,c=\"date\"===l&&e[r+\"calendar\"];if(r in e){if(n=e[r],s=e._length||n.length,a.isTypedArray(n)&&(\"linear\"===l||\"log\"===l)){if(s===n.length)return n;if(n.subarray)return n.subarray(0,s)}for(i=new Array(s),o=0;o<s;o++)i[o]=t.d2c(n[o],0,c)}else{var u=r+\"0\"in e?t.d2c(e[r+\"0\"],0,c):0,f=e[\"d\"+r]?Number(e[\"d\"+r]):1;for(n=e[{x:\"y\",y:\"x\"}[r]],s=e._length||n.length,i=new Array(s),o=0;o<s;o++)i[o]=u+o*f}return i},t.isValidRange=function(e){return Array.isArray(e)&&2===e.length&&i(t.r2l(e[0]))&&i(t.r2l(e[1]))},t.isPtWithinRange=function(e,n){var i=t.c2l(e[r],null,n),a=t.r2l(t.range[0]),o=t.r2l(t.range[1]);return a<o?a<=i&&i<=o:o<=i&&i<=a},t.clearCalc=function(){t._categories=(t._initialCategories||[]).slice(),t._categoriesMap={};for(var e=0;e<t._categories.length;e++)t._categoriesMap[t._categories[e]]=e};var k=e._d3locale;\"date\"===t.type&&(t._dateFormat=k?k.timeFormat.utc:n.time.format.utc,t._extraFormat=e._extraFormat),t._separators=e.separators,t._numFormat=k?k.numberFormat:n.format,delete t._minDtick,delete t._forceTick0}},{\"../../constants/numerical\":673,\"../../lib\":696,\"./axis_ids\":747,\"./constants\":750,d3:148,\"fast-isnumeric\":214}],764:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"./layout_attributes\"),a=t(\"../array_container_defaults\");function o(t,e){function r(r,a){return n.coerce(t,e,i.tickformatstops,r,a)}r(\"enabled\")&&(r(\"dtickrange\"),r(\"value\"))}e.exports=function(t,e,r,s,l){var c=function(t){var e=[\"showexponent\",\"showtickprefix\",\"showticksuffix\"].filter(function(e){return void 0!==t[e]});if(e.every(function(r){return t[r]===t[e[0]]})||1===e.length)return t[e[0]]}(t);if(r(\"tickprefix\")&&r(\"showtickprefix\",c),r(\"ticksuffix\",l.tickSuffixDflt)&&r(\"showticksuffix\",c),r(\"showticklabels\")){var u=l.font||{},f=e.color,h=f&&f!==i.color.dflt?f:u.color;if(n.coerceFont(r,\"tickfont\",{family:u.family,size:u.size,color:h}),r(\"tickangle\"),\"category\"!==s){var p=r(\"tickformat\"),d=t.tickformatstops;Array.isArray(d)&&d.length&&a(t,e,{name:\"tickformatstops\",inclusionAttr:\"enabled\",handleItemDefaults:o}),p||\"date\"===s||(r(\"showexponent\",c),r(\"exponentformat\"),r(\"separatethousands\"))}}}},{\"../../lib\":696,\"../array_container_defaults\":740,\"./layout_attributes\":757}],765:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"./layout_attributes\");e.exports=function(t,e,r,a){var o=n.coerce2(t,e,i,\"ticklen\"),s=n.coerce2(t,e,i,\"tickwidth\"),l=n.coerce2(t,e,i,\"tickcolor\",e.color);r(\"ticks\",a.outerTicks||o||s||l?\"outside\":\"\")||(delete e.ticklen,delete e.tickwidth,delete e.tickcolor)}},{\"../../lib\":696,\"./layout_attributes\":757}],766:[function(t,e,r){\"use strict\";var n=t(\"./clean_ticks\");e.exports=function(t,e,r,i){var a;\"array\"!==t.tickmode||\"log\"!==i&&\"date\"!==i?a=r(\"tickmode\",Array.isArray(t.tickvals)?\"array\":t.dtick?\"linear\":\"auto\"):a=e.tickmode=\"auto\";if(\"auto\"===a)r(\"nticks\");else if(\"linear\"===a){var o=e.dtick=n.dtick(t.dtick,i);e.tick0=n.tick0(t.tick0,i,e.calendar,o)}else{void 0===r(\"tickvals\")?e.tickmode=\"auto\":r(\"ticktext\")}}},{\"./clean_ticks\":749}],767:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../../registry\"),a=t(\"../../components/drawing\"),o=t(\"./axes\"),s=t(\"./constants\").attrRegex;e.exports=function(t,e,r,l){var c=t._fullLayout,u=[];var f,h,p,d,g=function(t){var e,r,n,i,a={};for(e in t)if((r=e.split(\".\"))[0].match(s)){var o=e.charAt(0),l=r[0];if(n=c[l],i={},Array.isArray(t[e])?i.to=t[e].slice(0):Array.isArray(t[e].range)&&(i.to=t[e].range.slice(0)),!i.to)continue;i.axisName=l,i.length=n._length,u.push(o),a[o]=i}return a}(e),v=Object.keys(g),m=function(t,e,r){var n,i,a,o=t._plots,s=[];for(n in o){var l=o[n];if(-1===s.indexOf(l)){var c=l.xaxis._id,u=l.yaxis._id,f=l.xaxis.range,h=l.yaxis.range;l.xaxis._r=l.xaxis.range.slice(),l.yaxis._r=l.yaxis.range.slice(),i=r[c]?r[c].to:f,a=r[u]?r[u].to:h,f[0]===i[0]&&f[1]===i[1]&&h[0]===a[0]&&h[1]===a[1]||-1===e.indexOf(c)&&-1===e.indexOf(u)||s.push(l)}}return s}(c,v,g);if(!m.length)return function(){function e(e,r,n){for(var i=0;i<e.length;i++)if(r(t,i),n)return}e(c.annotations||[],i.getComponentMethod(\"annotations\",\"drawOne\")),e(c.shapes||[],i.getComponentMethod(\"shapes\",\"drawOne\")),e(c.images||[],i.getComponentMethod(\"images\",\"draw\"),!0)}(),!1;function y(t){var e=t.xaxis,r=t.yaxis;c._defs.select(\"#\"+t.clipId+\"> rect\").call(a.setTranslate,0,0).call(a.setScale,1,1),t.plot.call(a.setTranslate,e._offset,r._offset).call(a.setScale,1,1);var n=t.plot.selectAll(\".scatterlayer .trace\");n.selectAll(\".point\").call(a.setPointGroupScale,1,1),n.selectAll(\".textpoint\").call(a.setTextPointsScale,1,1),n.call(a.hideOutsideRangePoints,t)}function x(e,r){var n,s,l,u=g[e.xaxis._id],f=g[e.yaxis._id],h=[];if(u){s=(n=t._fullLayout[u.axisName])._r,l=u.to,h[0]=(s[0]*(1-r)+r*l[0]-s[0])/(s[1]-s[0])*e.xaxis._length;var p=s[1]-s[0],d=l[1]-l[0];n.range[0]=s[0]*(1-r)+r*l[0],n.range[1]=s[1]*(1-r)+r*l[1],h[2]=e.xaxis._length*(1-r+r*d/p)}else h[0]=0,h[2]=e.xaxis._length;if(f){s=(n=t._fullLayout[f.axisName])._r,l=f.to,h[1]=(s[1]*(1-r)+r*l[1]-s[1])/(s[0]-s[1])*e.yaxis._length;var v=s[1]-s[0],m=l[1]-l[0];n.range[0]=s[0]*(1-r)+r*l[0],n.range[1]=s[1]*(1-r)+r*l[1],h[3]=e.yaxis._length*(1-r+r*m/v)}else h[1]=0,h[3]=e.yaxis._length;!function(e,r){var n,a=[];for(a=[e._id,r._id],n=0;n<a.length;n++)o.doTicksSingle(t,a[n],!0);function s(e,r,i){for(n=0;n<e.length;n++){var o=e[n];if(-1===a.indexOf(o.xref)&&-1===a.indexOf(o.yref)||r(t,n),i)return}}s(c.annotations||[],i.getComponentMethod(\"annotations\",\"drawOne\")),s(c.shapes||[],i.getComponentMethod(\"shapes\",\"drawOne\")),s(c.images||[],i.getComponentMethod(\"images\",\"draw\"),!0)}(e.xaxis,e.yaxis);var y=e.xaxis,x=e.yaxis,b=!!u,_=!!f,w=b?y._length/h[2]:1,k=_?x._length/h[3]:1,M=b?h[0]:0,A=_?h[1]:0,T=b?h[0]/h[2]*y._length:0,S=_?h[1]/h[3]*x._length:0,E=y._offset-T,C=x._offset-S;e.clipRect.call(a.setTranslate,M,A).call(a.setScale,1/w,1/k),e.plot.call(a.setTranslate,E,C).call(a.setScale,w,k),a.setPointGroupScale(e.zoomScalePts,1/w,1/k),a.setTextPointsScale(e.zoomScaleTxt,1/w,1/k)}l&&(f=l());var b=n.ease(r.easing);return t._transitionData._interruptCallbacks.push(function(){return window.cancelAnimationFrame(d),d=null,function(){for(var e={},r=0;r<v.length;r++){var n=t._fullLayout[v[r]+\"axis\"];e[n._name+\".range[0]\"]=n.range[0],e[n._name+\".range[1]\"]=n.range[1],n.range=n._r.slice()}return i.call(\"relayout\",t,e).then(function(){for(var t=0;t<m.length;t++)y(m[t])})}()}),h=Date.now(),d=window.requestAnimationFrame(function e(){p=Date.now();for(var n=Math.min(1,(p-h)/r.duration),a=b(n),o=0;o<m.length;o++)x(m[o],a);p-h>r.duration?(function(){for(var e={},r=0;r<v.length;r++){var n=t._fullLayout[g[v[r]].axisName],a=g[v[r]].to;e[n._name+\".range[0]\"]=a[0],e[n._name+\".range[1]\"]=a[1],n.range=a.slice()}f&&f(),i.call(\"relayout\",t,e).then(function(){for(var t=0;t<m.length;t++)y(m[t])})}(),d=window.cancelAnimationFrame(e)):d=window.requestAnimationFrame(e)}),Promise.resolve()}},{\"../../components/drawing\":595,\"../../registry\":827,\"./axes\":744,\"./constants\":750,d3:148}],768:[function(t,e,r){\"use strict\";var n=t(\"../../registry\"),i=t(\"./axis_autotype\");function a(t){return{v:\"x\",h:\"y\"}[t.orientation||\"v\"]}function o(t,e){var r=a(t),i=n.traceIs(t,\"box-violin\"),o=n.traceIs(t._fullInput||{},\"candlestick\");return i&&!o&&e===r&&void 0===t[r]&&void 0===t[r+\"0\"]}e.exports=function(t,e,r,s){\"-\"===r(\"type\",(s.splomStash||{}).type)&&(!function(t,e){if(\"-\"!==t.type)return;var r=t._id,s=r.charAt(0);-1!==r.indexOf(\"scene\")&&(r=s);var l=function(t,e,r){for(var n=0;n<t.length;n++){var i=t[n];if(\"splom\"===i.type&&i._length>0&&(i[\"_\"+r+\"axes\"]||{})[e])return i;if((i[r+\"axis\"]||r)===e){if(o(i,r))return i;if((i[r]||[]).length||i[r+\"0\"])return i}}}(e,r,s);if(!l)return;if(\"histogram\"===l.type&&s==={v:\"y\",h:\"x\"}[l.orientation||\"v\"])return void(t.type=\"linear\");var c,u=s+\"calendar\",f=l[u];if(o(l,s)){var h=a(l),p=[];for(c=0;c<e.length;c++){var d=e[c];n.traceIs(d,\"box-violin\")&&(d[s+\"axis\"]||s)===r&&(void 0!==d[h]?p.push(d[h][0]):void 0!==d.name?p.push(d.name):p.push(\"text\"),d[u]!==f&&(f=void 0))}t.type=i(p,f)}else if(\"splom\"===l.type){var g=l.dimensions,v=l._diag;for(c=0;c<g.length;c++){var m=g[c];if(m.visible&&(v[c][0]===r||v[c][1]===r)){t.type=i(m.values,f);break}}}else t.type=i(l[s]||[l[s+\"0\"]],f)}(e,s.data),\"-\"===e.type?e.type=\"linear\":t.type=e.type)}},{\"../../registry\":827,\"./axis_autotype\":745}],769:[function(t,e,r){\"use strict\";var n=t(\"../registry\"),i=t(\"../lib\");function a(t,e,r){var n,a,o,s=!1;if(\"data\"===e.type)n=t._fullData[null!==e.traces?e.traces[0]:0];else{if(\"layout\"!==e.type)return!1;n=t._fullLayout}return a=i.nestedProperty(n,e.prop).get(),(o=r[e.type]=r[e.type]||{}).hasOwnProperty(e.prop)&&o[e.prop]!==a&&(s=!0),o[e.prop]=a,{changed:s,value:a}}function o(t,e){var r=[],n=e[0],a={};if(\"string\"==typeof n)a[n]=e[1];else{if(!i.isPlainObject(n))return r;a=n}return l(a,function(t,e,n){r.push({type:\"layout\",prop:t,value:n})},\"\",0),r}function s(t,e){var r,n,a,o,s=[];if(n=e[0],a=e[1],r=e[2],o={},\"string\"==typeof n)o[n]=a;else{if(!i.isPlainObject(n))return s;o=n,void 0===r&&(r=a)}return void 0===r&&(r=null),l(o,function(e,n,i){var a;if(Array.isArray(i)){var o=Math.min(i.length,t.data.length);r&&(o=Math.min(o,r.length)),a=[];for(var l=0;l<o;l++)a[l]=r?r[l]:l}else a=r?r.slice(0):null;if(null===a)Array.isArray(i)&&(i=i[0]);else if(Array.isArray(a)){if(!Array.isArray(i)){var c=i;i=[];for(var u=0;u<a.length;u++)i[u]=c}i.length=Math.min(a.length,i.length)}s.push({type:\"data\",prop:e,traces:a,value:i})},\"\",0),s}function l(t,e,r,n){Object.keys(t).forEach(function(a){var o=t[a];if(\"_\"!==a[0]){var s=r+(n>0?\".\":\"\")+a;i.isPlainObject(o)?l(o,e,s,n+1):e(s,a,o)}})}r.manageCommandObserver=function(t,e,n,o){var s={},l=!0;e&&e._commandObserver&&(s=e._commandObserver),s.cache||(s.cache={}),s.lookupTable={};var c=r.hasSimpleAPICommandBindings(t,n,s.lookupTable);if(e&&e._commandObserver){if(c)return s;if(e._commandObserver.remove)return e._commandObserver.remove(),e._commandObserver=null,s}if(c){a(t,c,s.cache),s.check=function(){if(l){var e=a(t,c,s.cache);return e.changed&&o&&void 0!==s.lookupTable[e.value]&&(s.disable(),Promise.resolve(o({value:e.value,type:c.type,prop:c.prop,traces:c.traces,index:s.lookupTable[e.value]})).then(s.enable,s.enable)),e.changed}};for(var u=[\"plotly_relayout\",\"plotly_redraw\",\"plotly_restyle\",\"plotly_update\",\"plotly_animatingframe\",\"plotly_afterplot\"],f=0;f<u.length;f++)t._internalOn(u[f],s.check);s.remove=function(){for(var e=0;e<u.length;e++)t._removeInternalListener(u[e],s.check)}}else i.log(\"Unable to automatically bind plot updates to API command\"),s.lookupTable={},s.remove=function(){};return s.disable=function(){l=!1},s.enable=function(){l=!0},e&&(e._commandObserver=s),s},r.hasSimpleAPICommandBindings=function(t,e,n){var i,a,o=e.length;for(i=0;i<o;i++){var s,l=e[i],c=l.method,u=l.args;if(Array.isArray(u)||(u=[]),!c)return!1;var f=r.computeAPICommandBindings(t,c,u);if(1!==f.length)return!1;if(a){if((s=f[0]).type!==a.type)return!1;if(s.prop!==a.prop)return!1;if(Array.isArray(a.traces)){if(!Array.isArray(s.traces))return!1;s.traces.sort();for(var h=0;h<a.traces.length;h++)if(a.traces[h]!==s.traces[h])return!1}else if(s.prop!==a.prop)return!1}else a=f[0],Array.isArray(a.traces)&&a.traces.sort();var p=(s=f[0]).value;if(Array.isArray(p)){if(1!==p.length)return!1;p=p[0]}n&&(n[p]=i)}return a},r.executeAPICommand=function(t,e,r){if(\"skip\"===e)return Promise.resolve();var a=n.apiMethodRegistry[e],o=[t];Array.isArray(r)||(r=[]);for(var s=0;s<r.length;s++)o.push(r[s]);return a.apply(null,o).catch(function(t){return i.warn(\"API call to Plotly.\"+e+\" rejected.\",t),Promise.reject(t)})},r.computeAPICommandBindings=function(t,e,r){var n;switch(Array.isArray(r)||(r=[]),e){case\"restyle\":n=s(t,r);break;case\"relayout\":n=o(t,r);break;case\"update\":n=s(t,[r[0],r[2]]).concat(o(t,[r[1]]));break;case\"animate\":n=function(t,e){return Array.isArray(e[0])&&1===e[0].length&&-1!==[\"string\",\"number\"].indexOf(typeof e[0][0])?[{type:\"layout\",prop:\"_currentFrame\",value:e[0][0].toString()}]:[]}(0,r);break;default:n=[]}return n}},{\"../lib\":696,\"../registry\":827}],770:[function(t,e,r){\"use strict\";var n=t(\"../lib/extend\").extendFlat;r.attributes=function(t,e){e=e||{};var r={valType:\"info_array\",editType:(t=t||{}).editType,items:[{valType:\"number\",min:0,max:1,editType:t.editType},{valType:\"number\",min:0,max:1,editType:t.editType}],dflt:[0,1]},i=(t.name&&t.name,t.trace,e.description&&e.description,{x:n({},r,{}),y:n({},r,{}),editType:t.editType});return t.noGridCell||(i.row={valType:\"integer\",min:0,dflt:0,editType:t.editType},i.column={valType:\"integer\",min:0,dflt:0,editType:t.editType}),i},r.defaults=function(t,e,r,n){var i=n&&n.x||[0,1],a=n&&n.y||[0,1],o=e.grid;if(o){var s=r(\"domain.column\");void 0!==s&&(s<o.columns?i=o._domains.x[s]:delete t.domain.column);var l=r(\"domain.row\");void 0!==l&&(l<o.rows?a=o._domains.y[l]:delete t.domain.row)}r(\"domain.x\",i),r(\"domain.y\",a)}},{\"../lib/extend\":685}],771:[function(t,e,r){\"use strict\";e.exports=function(t){var e=t.editType,r=t.colorEditType;void 0===r&&(r=e);var n={family:{valType:\"string\",noBlank:!0,strict:!0,editType:e},size:{valType:\"number\",min:1,editType:e},color:{valType:\"color\",editType:r},editType:e};return t.arrayOk&&(n.family.arrayOk=!0,n.size.arrayOk=!0,n.color.arrayOk=!0),n}},{}],772:[function(t,e,r){\"use strict\";e.exports={_isLinkedToArray:\"frames_entry\",group:{valType:\"string\"},name:{valType:\"string\"},traces:{valType:\"any\"},baseframe:{valType:\"string\"},data:{valType:\"any\"},layout:{valType:\"any\"}}},{}],773:[function(t,e,r){\"use strict\";r.projNames={equirectangular:\"equirectangular\",mercator:\"mercator\",orthographic:\"orthographic\",\"natural earth\":\"naturalEarth\",kavrayskiy7:\"kavrayskiy7\",miller:\"miller\",robinson:\"robinson\",eckert4:\"eckert4\",\"azimuthal equal area\":\"azimuthalEqualArea\",\"azimuthal equidistant\":\"azimuthalEquidistant\",\"conic equal area\":\"conicEqualArea\",\"conic conformal\":\"conicConformal\",\"conic equidistant\":\"conicEquidistant\",gnomonic:\"gnomonic\",stereographic:\"stereographic\",mollweide:\"mollweide\",hammer:\"hammer\",\"transverse mercator\":\"transverseMercator\",\"albers usa\":\"albersUsa\",\"winkel tripel\":\"winkel3\",aitoff:\"aitoff\",sinusoidal:\"sinusoidal\"},r.axesNames=[\"lonaxis\",\"lataxis\"],r.lonaxisSpan={orthographic:180,\"azimuthal equal area\":360,\"azimuthal equidistant\":360,\"conic conformal\":180,gnomonic:160,stereographic:180,\"transverse mercator\":180,\"*\":360},r.lataxisSpan={\"conic conformal\":150,stereographic:179.5,\"*\":180},r.scopeDefaults={world:{lonaxisRange:[-180,180],lataxisRange:[-90,90],projType:\"equirectangular\",projRotate:[0,0,0]},usa:{lonaxisRange:[-180,-50],lataxisRange:[15,80],projType:\"albers usa\"},europe:{lonaxisRange:[-30,60],lataxisRange:[30,85],projType:\"conic conformal\",projRotate:[15,0,0],projParallels:[0,60]},asia:{lonaxisRange:[22,160],lataxisRange:[-15,55],projType:\"mercator\",projRotate:[0,0,0]},africa:{lonaxisRange:[-30,60],lataxisRange:[-40,40],projType:\"mercator\",projRotate:[0,0,0]},\"north america\":{lonaxisRange:[-180,-45],lataxisRange:[5,85],projType:\"conic conformal\",projRotate:[-100,0,0],projParallels:[29.5,45.5]},\"south america\":{lonaxisRange:[-100,-30],lataxisRange:[-60,15],projType:\"mercator\",projRotate:[0,0,0]}},r.clipPad=.001,r.precision=.1,r.landColor=\"#F0DC82\",r.waterColor=\"#3399FF\",r.locationmodeToLayer={\"ISO-3\":\"countries\",\"USA-states\":\"subunits\",\"country names\":\"countries\"},r.sphereSVG={type:\"Sphere\"},r.fillLayers={ocean:1,land:1,lakes:1},r.lineLayers={subunits:1,countries:1,coastlines:1,rivers:1,frame:1},r.layers=[\"bg\",\"ocean\",\"land\",\"lakes\",\"subunits\",\"countries\",\"coastlines\",\"rivers\",\"lataxis\",\"lonaxis\",\"frame\",\"backplot\",\"frontplot\"],r.layersForChoropleth=[\"bg\",\"ocean\",\"land\",\"subunits\",\"countries\",\"coastlines\",\"lataxis\",\"lonaxis\",\"frame\",\"backplot\",\"rivers\",\"lakes\",\"frontplot\"],r.layerNameToAdjective={ocean:\"ocean\",land:\"land\",lakes:\"lake\",subunits:\"subunit\",countries:\"country\",coastlines:\"coastline\",rivers:\"river\",frame:\"frame\"}},{}],774:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../../registry\"),a=t(\"../../lib\"),o=t(\"../../components/color\"),s=t(\"../../components/drawing\"),l=t(\"../../components/fx\"),c=t(\"../plots\"),u=t(\"../cartesian/axes\"),f=t(\"../../components/dragelement\"),h=t(\"../cartesian/select\").prepSelect,p=t(\"../cartesian/select\").selectOnClick,d=t(\"./zoom\"),g=t(\"./constants\"),v=t(\"../../lib/topojson_utils\"),m=t(\"topojson-client\").feature;function y(t){this.id=t.id,this.graphDiv=t.graphDiv,this.container=t.container,this.topojsonURL=t.topojsonURL,this.isStatic=t.staticPlot,this.topojsonName=null,this.topojson=null,this.projection=null,this.viewInitial=null,this.fitScale=null,this.bounds=null,this.midPt=null,this.hasChoropleth=!1,this.traceHash={},this.layers={},this.basePaths={},this.dataPaths={},this.dataPoints={},this.clipDef=null,this.clipRect=null,this.bgRect=null,this.makeFramework()}t(\"./projections\")(n);var x=y.prototype;e.exports=function(t){return new y(t)},x.plot=function(t,e,r){var n=this,i=e[this.id],a=v.getTopojsonName(i);null===n.topojson||a!==n.topojsonName?(n.topojsonName=a,void 0===PlotlyGeoAssets.topojson[n.topojsonName]?r.push(n.fetchTopojson().then(function(r){PlotlyGeoAssets.topojson[n.topojsonName]=r,n.topojson=r,n.update(t,e)})):(n.topojson=PlotlyGeoAssets.topojson[n.topojsonName],n.update(t,e))):n.update(t,e)},x.fetchTopojson=function(){var t=v.getTopojsonPath(this.topojsonURL,this.topojsonName);return new Promise(function(e,r){n.json(t,function(n,i){if(n)return 404===n.status?r(new Error([\"plotly.js could not find topojson file at\",t,\".\",\"Make sure the *topojsonURL* plot config option\",\"is set properly.\"].join(\" \"))):r(new Error([\"unexpected error while fetching topojson file at\",t].join(\" \")));e(i)})})},x.update=function(t,e){var r=e[this.id];if(!this.updateProjection(e,r)){this.hasChoropleth=!1;for(var n=0;n<t.length;n++)if(\"choropleth\"===t[n][0].trace.type){this.hasChoropleth=!0;break}this.viewInitial||this.saveViewInitial(r),this.updateBaseLayers(e,r),this.updateDims(e,r),this.updateFx(e,r),c.generalUpdatePerTraceModule(this.graphDiv,this,t,r);var i=this.layers.frontplot.select(\".scatterlayer\");this.dataPoints.point=i.selectAll(\".point\"),this.dataPoints.text=i.selectAll(\"text\"),this.dataPaths.line=i.selectAll(\".js-line\");var a=this.layers.backplot.select(\".choroplethlayer\");this.dataPaths.choropleth=a.selectAll(\"path\"),this.render()}},x.updateProjection=function(t,e){var r=t._size,o=e.domain,s=e.projection,l=s.rotation||{},c=e.center||{},u=this.projection=function(t){for(var e=t.projection.type,r=n.geo[g.projNames[e]](),i=t._isClipped?g.lonaxisSpan[e]/2:null,a=[\"center\",\"rotate\",\"parallels\",\"clipExtent\"],o=function(t){return t?r:[]},s=0;s<a.length;s++){var l=a[s];\"function\"!=typeof r[l]&&(r[l]=o)}r.isLonLatOverEdges=function(t){if(null===r(t))return!0;if(i){var e=r.rotate();return n.geo.distance(t,[-e[0],-e[1]])>i*Math.PI/180}return!1},r.getPath=function(){return n.geo.path().projection(r)},r.getBounds=function(t){return r.getPath().bounds(t)},r.fitExtent=function(t,e){var n=t[1][0]-t[0][0],i=t[1][1]-t[0][1],a=r.clipExtent&&r.clipExtent();r.scale(150).translate([0,0]),a&&r.clipExtent(null);var o=r.getBounds(e),s=Math.min(n/(o[1][0]-o[0][0]),i/(o[1][1]-o[0][1])),l=+t[0][0]+(n-s*(o[1][0]+o[0][0]))/2,c=+t[0][1]+(i-s*(o[1][1]+o[0][1]))/2;return a&&r.clipExtent(a),r.scale(150*s).translate([l,c])},r.precision(g.precision),i&&r.clipAngle(i-g.clipPad);return r}(e);u.center([c.lon-l.lon,c.lat-l.lat]).rotate([-l.lon,-l.lat,l.roll]).parallels(s.parallels);var f=[[r.l+r.w*o.x[0],r.t+r.h*(1-o.y[1])],[r.l+r.w*o.x[1],r.t+r.h*(1-o.y[0])]],h=e.lonaxis,p=e.lataxis,d=function(t,e){var r=g.clipPad,n=t[0]+r,i=t[1]-r,a=e[0]+r,o=e[1]-r;n>0&&i<0&&(i+=360);var s=(i-n)/4;return{type:\"Polygon\",coordinates:[[[n,a],[n,o],[n+s,o],[n+2*s,o],[n+3*s,o],[i,o],[i,a],[i-s,a],[i-2*s,a],[i-3*s,a],[n,a]]]}}(h.range,p.range);u.fitExtent(f,d);var v=this.bounds=u.getBounds(d),m=this.fitScale=u.scale(),y=u.translate();if(!isFinite(v[0][0])||!isFinite(v[0][1])||!isFinite(v[1][0])||!isFinite(v[1][1])||isNaN(y[0])||isNaN(y[0])){for(var x=this.graphDiv,b=[\"projection.rotation\",\"center\",\"lonaxis.range\",\"lataxis.range\"],_=\"Invalid geo settings, relayout'ing to default view.\",w={},k=0;k<b.length;k++)w[this.id+\".\"+b[k]]=null;return this.viewInitial=null,a.warn(_),x._promises.push(i.call(\"relayout\",x,w)),_}var M=this.midPt=[(v[0][0]+v[1][0])/2,(v[0][1]+v[1][1])/2];if(u.scale(s.scale*m).translate([y[0]+(M[0]-y[0]),y[1]+(M[1]-y[1])]).clipExtent(v),e._isAlbersUsa){var A=u([c.lon,c.lat]),T=u.translate();u.translate([T[0]-(A[0]-T[0]),T[1]-(A[1]-T[1])])}},x.updateBaseLayers=function(t,e){var r=this,i=r.topojson,a=r.layers,l=r.basePaths;function c(t){return\"lonaxis\"===t||\"lataxis\"===t}function u(t){return Boolean(g.lineLayers[t])}function f(t){return Boolean(g.fillLayers[t])}var h=(this.hasChoropleth?g.layersForChoropleth:g.layers).filter(function(t){return u(t)||f(t)?e[\"show\"+t]:!c(t)||e[t].showgrid}),p=r.framework.selectAll(\".layer\").data(h,String);p.exit().each(function(t){delete a[t],delete l[t],n.select(this).remove()}),p.enter().append(\"g\").attr(\"class\",function(t){return\"layer \"+t}).each(function(t){var e=a[t]=n.select(this);\"bg\"===t?r.bgRect=e.append(\"rect\").style(\"pointer-events\",\"all\"):c(t)?l[t]=e.append(\"path\").style(\"fill\",\"none\"):\"backplot\"===t?e.append(\"g\").classed(\"choroplethlayer\",!0):\"frontplot\"===t?e.append(\"g\").classed(\"scatterlayer\",!0):u(t)?l[t]=e.append(\"path\").style(\"fill\",\"none\").style(\"stroke-miterlimit\",2):f(t)&&(l[t]=e.append(\"path\").style(\"stroke\",\"none\"))}),p.order(),p.each(function(t){var r=l[t],a=g.layerNameToAdjective[t];\"frame\"===t?r.datum(g.sphereSVG):u(t)||f(t)?r.datum(m(i,i.objects[t])):c(t)&&r.datum(function(t,e){var r=e[t].dtick,i=g.scopeDefaults[e.scope],a=i.lonaxisRange,o=i.lataxisRange,s=\"lonaxis\"===t?[r]:[0,r];return n.geo.graticule().extent([[a[0],o[0]],[a[1],o[1]]]).step(s)}(t,e)).call(o.stroke,e[t].gridcolor).call(s.dashLine,\"\",e[t].gridwidth),u(t)?r.call(o.stroke,e[a+\"color\"]).call(s.dashLine,\"\",e[a+\"width\"]):f(t)&&r.call(o.fill,e[a+\"color\"])})},x.updateDims=function(t,e){var r=this.bounds,n=(e.framewidth||0)/2,i=r[0][0]-n,a=r[0][1]-n,l=r[1][0]-i+n,c=r[1][1]-a+n;s.setRect(this.clipRect,i,a,l,c),this.bgRect.call(s.setRect,i,a,l,c).call(o.fill,e.bgcolor),this.xaxis._offset=i,this.xaxis._length=l,this.yaxis._offset=a,this.yaxis._length=c},x.updateFx=function(t,e){var r=this,a=r.graphDiv,o=r.bgRect,s=t.dragmode,c=t.clickmode;if(!r.isStatic){var u;\"select\"===s?u=function(t,e){(t.range={})[r.id]=[v([e.xmin,e.ymin]),v([e.xmax,e.ymax])]}:\"lasso\"===s&&(u=function(t,e,n){(t.lassoPoints={})[r.id]=n.filtered.map(v)});var g={element:r.bgRect.node(),gd:a,plotinfo:{id:r.id,xaxis:r.xaxis,yaxis:r.yaxis,fillRangeItems:u},xaxes:[r.xaxis],yaxes:[r.yaxis],subplot:r.id,clickFn:function(e){2===e&&t._zoomlayer.selectAll(\".select-outline\").remove()}};\"pan\"===s?(o.node().onmousedown=null,o.call(d(r,e)),o.on(\"dblclick.zoom\",function(){var t=r.viewInitial,e={};for(var n in t)e[r.id+\".\"+n]=t[n];i.call(\"relayout\",a,e),a.emit(\"plotly_doubleclick\",null)})):\"select\"!==s&&\"lasso\"!==s||(o.on(\".zoom\",null),g.prepFn=function(t,e,r){h(t,e,r,g,s)},f.init(g)),o.on(\"mousemove\",function(){var t=r.projection.invert(n.mouse(this));if(!t||isNaN(t[0])||isNaN(t[1]))return f.unhover(a,n.event);r.xaxis.p2c=function(){return t[0]},r.yaxis.p2c=function(){return t[1]},l.hover(a,n.event,r.id)}),o.on(\"mouseout\",function(){a._dragging||f.unhover(a,n.event)}),o.on(\"click\",function(){\"select\"!==s&&\"lasso\"!==s&&(c.indexOf(\"select\")>-1&&p(n.event,a,[r.xaxis],[r.yaxis],r.id,g),c.indexOf(\"event\")>-1&&l.click(a,n.event))})}function v(t){return r.projection.invert([t[0]+r.xaxis._offset,t[1]+r.yaxis._offset])}},x.makeFramework=function(){var t=this,e=t.graphDiv._fullLayout,r=\"clip\"+e._uid+t.id;t.clipDef=e._clips.append(\"clipPath\").attr(\"id\",r),t.clipRect=t.clipDef.append(\"rect\"),t.framework=n.select(t.container).append(\"g\").attr(\"class\",\"geo \"+t.id).call(s.setClipUrl,r),t.project=function(e){var r=t.projection(e);return r?[r[0]-t.xaxis._offset,r[1]-t.yaxis._offset]:[null,null]},t.xaxis={_id:\"x\",c2p:function(e){return t.project(e)[0]}},t.yaxis={_id:\"y\",c2p:function(e){return t.project(e)[1]}},t.mockAxis={type:\"linear\",showexponent:\"all\",exponentformat:\"B\"},u.setConvert(t.mockAxis,e)},x.saveViewInitial=function(t){var e=t.center||{},r=t.projection,n=r.rotation||{};t._isScoped?this.viewInitial={\"center.lon\":e.lon,\"center.lat\":e.lat,\"projection.scale\":r.scale}:t._isClipped?this.viewInitial={\"projection.scale\":r.scale,\"projection.rotation.lon\":n.lon,\"projection.rotation.lat\":n.lat}:this.viewInitial={\"center.lon\":e.lon,\"center.lat\":e.lat,\"projection.scale\":r.scale,\"projection.rotation.lon\":n.lon}},x.render=function(){var t,e=this.projection,r=e.getPath();function n(t){var r=e(t.lonlat);return r?\"translate(\"+r[0]+\",\"+r[1]+\")\":null}function i(t){return e.isLonLatOverEdges(t.lonlat)?\"none\":null}for(t in this.basePaths)this.basePaths[t].attr(\"d\",r);for(t in this.dataPaths)this.dataPaths[t].attr(\"d\",function(t){return r(t.geojson)});for(t in this.dataPoints)this.dataPoints[t].attr(\"display\",i).attr(\"transform\",n)}},{\"../../components/color\":570,\"../../components/dragelement\":592,\"../../components/drawing\":595,\"../../components/fx\":612,\"../../lib\":696,\"../../lib/topojson_utils\":723,\"../../registry\":827,\"../cartesian/axes\":744,\"../cartesian/select\":762,\"../plots\":808,\"./constants\":773,\"./projections\":779,\"./zoom\":780,d3:148,\"topojson-client\":517}],775:[function(t,e,r){\"use strict\";var n=t(\"./geo\"),i=t(\"../../plots/get_data\").getSubplotCalcData,a=t(\"../../lib\").counterRegex,o=\"geo\";r.name=o,r.attr=o,r.idRoot=o,r.idRegex=r.attrRegex=a(o),r.attributes=t(\"./layout/attributes\"),r.layoutAttributes=t(\"./layout/layout_attributes\"),r.supplyLayoutDefaults=t(\"./layout/defaults\"),r.plot=function(t){var e=t._fullLayout,r=t.calcdata,a=e._subplots.geo;void 0===window.PlotlyGeoAssets&&(window.PlotlyGeoAssets={topojson:{}});for(var s=0;s<a.length;s++){var l=a[s],c=i(r,o,l),u=e[l]._subplot;u||(u=n({id:l,graphDiv:t,container:e._geolayer.node(),topojsonURL:t._context.topojsonURL,staticPlot:t._context.staticPlot}),e[l]._subplot=u),u.plot(c,e,t._promises)}},r.clean=function(t,e,r,n){for(var i=n._subplots.geo||[],a=0;a<i.length;a++){var o=i[a],s=n[o]._subplot;!e[o]&&s&&(s.framework.remove(),s.clipDef.remove())}},r.updateFx=function(t){for(var e=t._fullLayout,r=e._subplots.geo,n=0;n<r.length;n++){var i=e[r[n]];i._subplot.updateFx(e,i)}}},{\"../../lib\":696,\"../../plots/get_data\":781,\"./geo\":774,\"./layout/attributes\":776,\"./layout/defaults\":777,\"./layout/layout_attributes\":778}],776:[function(t,e,r){\"use strict\";e.exports={geo:{valType:\"subplotid\",dflt:\"geo\",editType:\"calc\"}}},{}],777:[function(t,e,r){\"use strict\";var n=t(\"../../subplot_defaults\"),i=t(\"../constants\"),a=t(\"./layout_attributes\"),o=i.axesNames;function s(t,e,r){var n=r(\"resolution\"),a=r(\"scope\"),s=i.scopeDefaults[a],l=r(\"projection.type\",s.projType),c=e._isAlbersUsa=\"albers usa\"===l;c&&(a=e.scope=\"usa\");var u=e._isScoped=\"world\"!==a,f=e._isConic=-1!==l.indexOf(\"conic\");e._isClipped=!!i.lonaxisSpan[l];for(var h=0;h<o.length;h++){var p,d=o[h],g=[30,10][h];if(u)p=s[d+\"Range\"];else{var v=i[d+\"Span\"],m=(v[l]||v[\"*\"])/2,y=r(\"projection.rotation.\"+d.substr(0,3),s.projRotate[h]);p=[y-m,y+m]}var x=r(d+\".range\",p);r(d+\".tick0\",x[0]),r(d+\".dtick\",g),r(d+\".showgrid\")&&(r(d+\".gridcolor\"),r(d+\".gridwidth\"))}var b=e.lonaxis.range,_=e.lataxis.range,w=b[0],k=b[1];w>0&&k<0&&(k+=360);var M,A,T,S=(w+k)/2;if(!c){var E=u?s.projRotate:[S,0,0];M=r(\"projection.rotation.lon\",E[0]),r(\"projection.rotation.lat\",E[1]),r(\"projection.rotation.roll\",E[2]),r(\"showcoastlines\",!u)&&(r(\"coastlinecolor\"),r(\"coastlinewidth\")),r(\"showocean\")&&r(\"oceancolor\")}(c?(A=-96.6,T=38.7):(A=u?S:M,T=(_[0]+_[1])/2),r(\"center.lon\",A),r(\"center.lat\",T),f)&&r(\"projection.parallels\",s.projParallels||[0,60]);r(\"projection.scale\"),r(\"showland\")&&r(\"landcolor\"),r(\"showlakes\")&&r(\"lakecolor\"),r(\"showrivers\")&&(r(\"rivercolor\"),r(\"riverwidth\")),r(\"showcountries\",u&&\"usa\"!==a)&&(r(\"countrycolor\"),r(\"countrywidth\")),(\"usa\"===a||\"north america\"===a&&50===n)&&(r(\"showsubunits\",!0),r(\"subunitcolor\"),r(\"subunitwidth\")),u||r(\"showframe\",!0)&&(r(\"framecolor\"),r(\"framewidth\")),r(\"bgcolor\")}e.exports=function(t,e,r){n(t,e,r,{type:\"geo\",attributes:a,handleDefaults:s,partition:\"y\"})}},{\"../../subplot_defaults\":822,\"../constants\":773,\"./layout_attributes\":778}],778:[function(t,e,r){\"use strict\";var n=t(\"../../../components/color/attributes\"),i=t(\"../../domain\").attributes,a=t(\"../constants\"),o=t(\"../../../plot_api/edit_types\").overrideAll,s={range:{valType:\"info_array\",items:[{valType:\"number\"},{valType:\"number\"}]},showgrid:{valType:\"boolean\",dflt:!1},tick0:{valType:\"number\"},dtick:{valType:\"number\"},gridcolor:{valType:\"color\",dflt:n.lightLine},gridwidth:{valType:\"number\",min:0,dflt:1}};e.exports=o({domain:i({name:\"geo\"},{}),resolution:{valType:\"enumerated\",values:[110,50],dflt:110,coerceNumber:!0},scope:{valType:\"enumerated\",values:Object.keys(a.scopeDefaults),dflt:\"world\"},projection:{type:{valType:\"enumerated\",values:Object.keys(a.projNames)},rotation:{lon:{valType:\"number\"},lat:{valType:\"number\"},roll:{valType:\"number\"}},parallels:{valType:\"info_array\",items:[{valType:\"number\"},{valType:\"number\"}]},scale:{valType:\"number\",min:0,dflt:1}},center:{lon:{valType:\"number\"},lat:{valType:\"number\"}},showcoastlines:{valType:\"boolean\"},coastlinecolor:{valType:\"color\",dflt:n.defaultLine},coastlinewidth:{valType:\"number\",min:0,dflt:1},showland:{valType:\"boolean\",dflt:!1},landcolor:{valType:\"color\",dflt:a.landColor},showocean:{valType:\"boolean\",dflt:!1},oceancolor:{valType:\"color\",dflt:a.waterColor},showlakes:{valType:\"boolean\",dflt:!1},lakecolor:{valType:\"color\",dflt:a.waterColor},showrivers:{valType:\"boolean\",dflt:!1},rivercolor:{valType:\"color\",dflt:a.waterColor},riverwidth:{valType:\"number\",min:0,dflt:1},showcountries:{valType:\"boolean\"},countrycolor:{valType:\"color\",dflt:n.defaultLine},countrywidth:{valType:\"number\",min:0,dflt:1},showsubunits:{valType:\"boolean\"},subunitcolor:{valType:\"color\",dflt:n.defaultLine},subunitwidth:{valType:\"number\",min:0,dflt:1},showframe:{valType:\"boolean\"},framecolor:{valType:\"color\",dflt:n.defaultLine},framewidth:{valType:\"number\",min:0,dflt:1},bgcolor:{valType:\"color\",dflt:n.background},lonaxis:s,lataxis:s},\"plot\",\"from-root\")},{\"../../../components/color/attributes\":569,\"../../../plot_api/edit_types\":727,\"../../domain\":770,\"../constants\":773}],779:[function(t,e,r){\"use strict\";e.exports=function(t){function e(t,e){return{type:\"Feature\",id:t.id,properties:t.properties,geometry:r(t.geometry,e)}}function r(e,n){if(!e)return null;if(\"GeometryCollection\"===e.type)return{type:\"GeometryCollection\",geometries:object.geometries.map(function(t){return r(t,n)})};if(!c.hasOwnProperty(e.type))return null;var i=c[e.type];return t.geo.stream(e,n(i)),i.result()}t.geo.project=function(t,e){var i=e.stream;if(!i)throw new Error(\"not yet supported\");return(t&&n.hasOwnProperty(t.type)?n[t.type]:r)(t,i)};var n={Feature:e,FeatureCollection:function(t,r){return{type:\"FeatureCollection\",features:t.features.map(function(t){return e(t,r)})}}},i=[],a=[],o={point:function(t,e){i.push([t,e])},result:function(){var t=i.length?i.length<2?{type:\"Point\",coordinates:i[0]}:{type:\"MultiPoint\",coordinates:i}:null;return i=[],t}},s={lineStart:u,point:function(t,e){i.push([t,e])},lineEnd:function(){i.length&&(a.push(i),i=[])},result:function(){var t=a.length?a.length<2?{type:\"LineString\",coordinates:a[0]}:{type:\"MultiLineString\",coordinates:a}:null;return a=[],t}},l={polygonStart:u,lineStart:u,point:function(t,e){i.push([t,e])},lineEnd:function(){var t=i.length;if(t){do{i.push(i[0].slice())}while(++t<4);a.push(i),i=[]}},polygonEnd:u,result:function(){if(!a.length)return null;var t=[],e=[];return a.forEach(function(r){!function(t){if((e=t.length)<4)return!1;for(var e,r=0,n=t[e-1][1]*t[0][0]-t[e-1][0]*t[0][1];++r<e;)n+=t[r-1][1]*t[r][0]-t[r-1][0]*t[r][1];return n<=0}(r)?e.push(r):t.push([r])}),e.forEach(function(e){var r=e[0];t.some(function(t){if(function(t,e){for(var r=e[0],n=e[1],i=!1,a=0,o=t.length,s=o-1;a<o;s=a++){var l=t[a],c=l[0],u=l[1],f=t[s],h=f[0],p=f[1];u>n^p>n&&r<(h-c)*(n-u)/(p-u)+c&&(i=!i)}return i}(t[0],r))return t.push(e),!0})||t.push([e])}),a=[],t.length?t.length>1?{type:\"MultiPolygon\",coordinates:t}:{type:\"Polygon\",coordinates:t[0]}:null}},c={Point:o,MultiPoint:o,LineString:s,MultiLineString:s,Polygon:l,MultiPolygon:l,Sphere:l};function u(){}var f=1e-6,h=f*f,p=Math.PI,d=p/2,g=(Math.sqrt(p),p/180),v=180/p;function m(t){return t>1?d:t<-1?-d:Math.asin(t)}function y(t){return t>1?0:t<-1?p:Math.acos(t)}var x=t.geo.projection,b=t.geo.projectionMutator;function _(t,e){var r=(2+d)*Math.sin(e);e/=2;for(var n=0,i=1/0;n<10&&Math.abs(i)>f;n++){var a=Math.cos(e);e-=i=(e+Math.sin(e)*(a+2)-r)/(2*a*(1+a))}return[2/Math.sqrt(p*(4+p))*t*(1+Math.cos(e)),2*Math.sqrt(p/(4+p))*Math.sin(e)]}t.geo.interrupt=function(e){var r,n=[[[[-p,0],[0,d],[p,0]]],[[[-p,0],[0,-d],[p,0]]]];function i(t,r){for(var i=r<0?-1:1,a=n[+(r<0)],o=0,s=a.length-1;o<s&&t>a[o][2][0];++o);var l=e(t-a[o][1][0],r);return l[0]+=e(a[o][1][0],i*r>i*a[o][0][1]?a[o][0][1]:r)[0],l}e.invert&&(i.invert=function(t,a){for(var o=r[+(a<0)],s=n[+(a<0)],c=0,u=o.length;c<u;++c){var f=o[c];if(f[0][0]<=t&&t<f[1][0]&&f[0][1]<=a&&a<f[1][1]){var h=e.invert(t-e(s[c][1][0],0)[0],a);return h[0]+=s[c][1][0],l(i(h[0],h[1]),[t,a])?h:null}}});var a=t.geo.projection(i),o=a.stream;function s(t,e){for(var r,n,i,a=-1,o=t.length,s=t[0],l=[];++a<o;){n=((r=t[a])[0]-s[0])/e,i=(r[1]-s[1])/e;for(var c=0;c<e;++c)l.push([s[0]+c*n,s[1]+c*i]);s=r}return l.push(r),l}function l(t,e){return Math.abs(t[0]-e[0])<f&&Math.abs(t[1]-e[1])<f}return a.stream=function(e){var r=a.rotate(),i=o(e),l=(a.rotate([0,0]),o(e));return a.rotate(r),i.sphere=function(){t.geo.stream(function(){for(var e=1e-6,r=[],i=0,a=n[0].length;i<a;++i){var o=n[0][i],l=180*o[0][0]/p,c=180*o[0][1]/p,u=180*o[1][1]/p,f=180*o[2][0]/p,h=180*o[2][1]/p;r.push(s([[l+e,c+e],[l+e,u-e],[f-e,u-e],[f-e,h+e]],30))}for(var i=n[1].length-1;i>=0;--i){var o=n[1][i],l=180*o[0][0]/p,c=180*o[0][1]/p,u=180*o[1][1]/p,f=180*o[2][0]/p,h=180*o[2][1]/p;r.push(s([[f-e,h-e],[f-e,u+e],[l+e,u+e],[l+e,c-e]],30))}return{type:\"Polygon\",coordinates:[t.merge(r)]}}(),l)},i},a.lobes=function(t){return arguments.length?(n=t.map(function(t){return t.map(function(t){return[[t[0][0]*p/180,t[0][1]*p/180],[t[1][0]*p/180,t[1][1]*p/180],[t[2][0]*p/180,t[2][1]*p/180]]})}),r=n.map(function(t){return t.map(function(t){var r,n=e(t[0][0],t[0][1])[0],i=e(t[2][0],t[2][1])[0],a=e(t[1][0],t[0][1])[1],o=e(t[1][0],t[1][1])[1];return a>o&&(r=a,a=o,o=r),[[n,a],[i,o]]})}),a):n.map(function(t){return t.map(function(t){return[[180*t[0][0]/p,180*t[0][1]/p],[180*t[1][0]/p,180*t[1][1]/p],[180*t[2][0]/p,180*t[2][1]/p]]})})},a},_.invert=function(t,e){var r=.5*e*Math.sqrt((4+p)/p),n=m(r),i=Math.cos(n);return[t/(2/Math.sqrt(p*(4+p))*(1+i)),m((n+r*(i+2))/(2+d))]},(t.geo.eckert4=function(){return x(_)}).raw=_;var w=t.geo.azimuthalEqualArea.raw;function k(t,e){if(arguments.length<2&&(e=t),1===e)return w;if(e===1/0)return M;function r(r,n){var i=w(r/e,n);return i[0]*=t,i}return r.invert=function(r,n){var i=w.invert(r/t,n);return i[0]*=e,i},r}function M(t,e){return[t*Math.cos(e)/Math.cos(e/=2),2*Math.sin(e)]}function A(t,e){return[3*t/(2*p)*Math.sqrt(p*p/3-e*e),e]}function T(t,e){return[t,1.25*Math.log(Math.tan(p/4+.4*e))]}function S(t){return function(e){var r,n=t*Math.sin(e),i=30;do{e-=r=(e+Math.sin(e)-n)/(1+Math.cos(e))}while(Math.abs(r)>f&&--i>0);return e/2}}M.invert=function(t,e){var r=2*m(e/2);return[t*Math.cos(r/2)/Math.cos(r),r]},(t.geo.hammer=function(){var t=2,e=b(k),r=e(t);return r.coefficient=function(r){return arguments.length?e(t=+r):t},r}).raw=k,A.invert=function(t,e){return[2/3*p*t/Math.sqrt(p*p/3-e*e),e]},(t.geo.kavrayskiy7=function(){return x(A)}).raw=A,T.invert=function(t,e){return[t,2.5*Math.atan(Math.exp(.8*e))-.625*p]},(t.geo.miller=function(){return x(T)}).raw=T,S(p);var E=function(t,e,r){var n=S(r);function i(r,i){return[t*r*Math.cos(i=n(i)),e*Math.sin(i)]}return i.invert=function(n,i){var a=m(i/e);return[n/(t*Math.cos(a)),m((2*a+Math.sin(2*a))/r)]},i}(Math.SQRT2/d,Math.SQRT2,p);function C(t,e){var r=e*e,n=r*r;return[t*(.8707-.131979*r+n*(n*(.003971*r-.001529*n)-.013791)),e*(1.007226+r*(.015085+n*(.028874*r-.044475-.005916*n)))]}(t.geo.mollweide=function(){return x(E)}).raw=E,C.invert=function(t,e){var r,n=e,i=25;do{var a=n*n,o=a*a;n-=r=(n*(1.007226+a*(.015085+o*(.028874*a-.044475-.005916*o)))-e)/(1.007226+a*(.045255+o*(.259866*a-.311325-.005916*11*o)))}while(Math.abs(r)>f&&--i>0);return[t/(.8707+(a=n*n)*(a*(a*a*a*(.003971-.001529*a)-.013791)-.131979)),n]},(t.geo.naturalEarth=function(){return x(C)}).raw=C;var L=[[.9986,-.062],[1,0],[.9986,.062],[.9954,.124],[.99,.186],[.9822,.248],[.973,.31],[.96,.372],[.9427,.434],[.9216,.4958],[.8962,.5571],[.8679,.6176],[.835,.6769],[.7986,.7346],[.7597,.7903],[.7186,.8435],[.6732,.8936],[.6213,.9394],[.5722,.9761],[.5322,1]];function z(t,e){var r,n=Math.min(18,36*Math.abs(e)/p),i=Math.floor(n),a=n-i,o=(r=L[i])[0],s=r[1],l=(r=L[++i])[0],c=r[1],u=(r=L[Math.min(19,++i)])[0],f=r[1];return[t*(l+a*(u-o)/2+a*a*(u-2*l+o)/2),(e>0?d:-d)*(c+a*(f-s)/2+a*a*(f-2*c+s)/2)]}function O(t,e){return[t*Math.cos(e),e]}function I(t,e){var r,n=Math.cos(e),i=(r=y(n*Math.cos(t/=2)))?r/Math.sin(r):1;return[2*n*Math.sin(t)*i,Math.sin(e)*i]}function P(t,e){var r=I(t,e);return[(r[0]+t/d)/2,(r[1]+e)/2]}L.forEach(function(t){t[1]*=1.0144}),z.invert=function(t,e){var r=e/d,n=90*r,i=Math.min(18,Math.abs(n/5)),a=Math.max(0,Math.floor(i));do{var o=L[a][1],s=L[a+1][1],l=L[Math.min(19,a+2)][1],c=l-o,u=l-2*s+o,f=2*(Math.abs(r)-s)/c,p=u/c,m=f*(1-p*f*(1-2*p*f));if(m>=0||1===a){n=(e>=0?5:-5)*(m+i);var y,x=50;do{m=(i=Math.min(18,Math.abs(n)/5))-(a=Math.floor(i)),o=L[a][1],s=L[a+1][1],l=L[Math.min(19,a+2)][1],n-=(y=(e>=0?d:-d)*(s+m*(l-o)/2+m*m*(l-2*s+o)/2)-e)*v}while(Math.abs(y)>h&&--x>0);break}}while(--a>=0);var b=L[a][0],_=L[a+1][0],w=L[Math.min(19,a+2)][0];return[t/(_+m*(w-b)/2+m*m*(w-2*_+b)/2),n*g]},(t.geo.robinson=function(){return x(z)}).raw=z,O.invert=function(t,e){return[t/Math.cos(e),e]},(t.geo.sinusoidal=function(){return x(O)}).raw=O,I.invert=function(t,e){if(!(t*t+4*e*e>p*p+f)){var r=t,n=e,i=25;do{var a,o=Math.sin(r),s=Math.sin(r/2),l=Math.cos(r/2),c=Math.sin(n),u=Math.cos(n),h=Math.sin(2*n),d=c*c,g=u*u,v=s*s,m=1-g*l*l,x=m?y(u*l)*Math.sqrt(a=1/m):a=0,b=2*x*u*s-t,_=x*c-e,w=a*(g*v+x*u*l*d),k=a*(.5*o*h-2*x*c*s),M=.25*a*(h*s-x*c*g*o),A=a*(d*l+x*v*u),T=k*M-A*w;if(!T)break;var S=(_*k-b*A)/T,E=(b*M-_*w)/T;r-=S,n-=E}while((Math.abs(S)>f||Math.abs(E)>f)&&--i>0);return[r,n]}},(t.geo.aitoff=function(){return x(I)}).raw=I,P.invert=function(t,e){var r=t,n=e,i=25;do{var a,o=Math.cos(n),s=Math.sin(n),l=Math.sin(2*n),c=s*s,u=o*o,h=Math.sin(r),p=Math.cos(r/2),g=Math.sin(r/2),v=g*g,m=1-u*p*p,x=m?y(o*p)*Math.sqrt(a=1/m):a=0,b=.5*(2*x*o*g+r/d)-t,_=.5*(x*s+n)-e,w=.5*a*(u*v+x*o*p*c)+.5/d,k=a*(h*l/4-x*s*g),M=.125*a*(l*g-x*s*u*h),A=.5*a*(c*p+x*v*o)+.5,T=k*M-A*w,S=(_*k-b*A)/T,E=(b*M-_*w)/T;r-=S,n-=E}while((Math.abs(S)>f||Math.abs(E)>f)&&--i>0);return[r,n]},(t.geo.winkel3=function(){return x(P)}).raw=P}},{}],780:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../../lib\"),a=Math.PI/180,o=180/Math.PI,s={cursor:\"pointer\"},l={cursor:\"auto\"};function c(t,e){return n.behavior.zoom().translate(e.translate()).scale(e.scale())}function u(t,e,r){var n=t.id,a=t.graphDiv,o=a.layout[n],s=a._fullLayout[n],l={};function c(t,e){var r=i.nestedProperty(s,t);r.get()!==e&&(r.set(e),i.nestedProperty(o,t).set(e),l[n+\".\"+t]=e)}r(c),c(\"projection.scale\",e.scale()/t.fitScale),a.emit(\"plotly_relayout\",l)}function f(t,e){var r=c(0,e);function i(r){var n=e.invert(t.midPt);r(\"center.lon\",n[0]),r(\"center.lat\",n[1])}return r.on(\"zoomstart\",function(){n.select(this).style(s)}).on(\"zoom\",function(){e.scale(n.event.scale).translate(n.event.translate),t.render()}).on(\"zoomend\",function(){n.select(this).style(l),u(t,e,i)}),r}function h(t,e){var r,i,a,o,f,h,p,d,g,v=c(0,e),m=2;function y(t){return e.invert(t)}function x(r){var n=e.rotate(),i=e.invert(t.midPt);r(\"projection.rotation.lon\",-n[0]),r(\"center.lon\",i[0]),r(\"center.lat\",i[1])}return v.on(\"zoomstart\",function(){n.select(this).style(s),r=n.mouse(this),i=e.rotate(),a=e.translate(),o=i,f=y(r)}).on(\"zoom\",function(){if(h=n.mouse(this),function(t){var r=y(t);if(!r)return!0;var n=e(r);return Math.abs(n[0]-t[0])>m||Math.abs(n[1]-t[1])>m}(r))return v.scale(e.scale()),void v.translate(e.translate());e.scale(n.event.scale),e.translate([a[0],n.event.translate[1]]),f?y(h)&&(d=y(h),p=[o[0]+(d[0]-f[0]),i[1],i[2]],e.rotate(p),o=p):f=y(r=h),g=!0,t.render()}).on(\"zoomend\",function(){n.select(this).style(l),g&&u(t,e,x)}),v}function p(t,e){var r,i={r:e.rotate(),k:e.scale()},f=c(0,e),h=function(t){var e=0,r=arguments.length,i=[];for(;++e<r;)i.push(arguments[e]);var a=n.dispatch.apply(null,i);return a.of=function(e,r){return function(i){var o;try{o=i.sourceEvent=n.event,i.target=t,n.event=i,a[i.type].apply(e,r)}finally{n.event=o}}},a}(f,\"zoomstart\",\"zoom\",\"zoomend\"),p=0,v=f.on;function x(t){var r=e.rotate();t(\"projection.rotation.lon\",-r[0]),t(\"projection.rotation.lat\",-r[1])}return f.on(\"zoomstart\",function(){n.select(this).style(s);var t,l,c,u,x,b,_,w,k,M,A,T=n.mouse(this),S=e.rotate(),E=S,C=e.translate(),L=(l=.5*(t=S)[0]*a,c=.5*t[1]*a,u=.5*t[2]*a,x=Math.sin(l),b=Math.cos(l),_=Math.sin(c),w=Math.cos(c),k=Math.sin(u),M=Math.cos(u),[b*w*M+x*_*k,x*w*M-b*_*k,b*_*M+x*w*k,b*w*k-x*_*M]);r=d(e,T),v.call(f,\"zoom\",function(){var t,a,s,l,c,u,f,p,v,x,b=n.mouse(this);if(e.scale(i.k=n.event.scale),r){if(d(e,b)){e.rotate(S).translate(C);var _=d(e,b),w=function(t,e){if(!t||!e)return;var r=function(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}(t,e),n=Math.sqrt(y(r,r)),i=.5*Math.acos(Math.max(-1,Math.min(1,y(t,e)))),a=Math.sin(i)/n;return n&&[Math.cos(i),r[2]*a,-r[1]*a,r[0]*a]}(r,_),k=function(t){return[Math.atan2(2*(t[0]*t[1]+t[2]*t[3]),1-2*(t[1]*t[1]+t[2]*t[2]))*o,Math.asin(Math.max(-1,Math.min(1,2*(t[0]*t[2]-t[3]*t[1]))))*o,Math.atan2(2*(t[0]*t[3]+t[1]*t[2]),1-2*(t[2]*t[2]+t[3]*t[3]))*o]}((a=w,s=(t=L)[0],l=t[1],c=t[2],u=t[3],f=a[0],p=a[1],v=a[2],x=a[3],[s*f-l*p-c*v-u*x,s*p+l*f+c*x-u*v,s*v-l*x+c*f+u*p,s*x+l*v-c*p+u*f])),M=i.r=function(t,e,r){var n=m(e,2,t[0]);n=m(n,1,t[1]),n=m(n,0,t[2]-r[2]);var i,a,s=e[0],l=e[1],c=e[2],u=n[0],f=n[1],h=n[2],p=Math.atan2(l,s)*o,d=Math.sqrt(s*s+l*l);Math.abs(f)>d?(a=(f>0?90:-90)-p,i=0):(a=Math.asin(f/d)*o-p,i=Math.sqrt(d*d-f*f));var v=180-a-2*p,y=(Math.atan2(h,u)-Math.atan2(c,i))*o,x=(Math.atan2(h,u)-Math.atan2(c,-i))*o,b=g(r[0],r[1],a,y),_=g(r[0],r[1],v,x);return b<=_?[a,y,r[2]]:[v,x,r[2]]}(k,r,E);isFinite(M[0])&&isFinite(M[1])&&isFinite(M[2])||(M=E),e.rotate(M),E=M}}else r=d(e,T=b);h.of(this,arguments)({type:\"zoom\"})}),A=h.of(this,arguments),p++||A({type:\"zoomstart\"})}).on(\"zoomend\",function(){var r;n.select(this).style(l),v.call(f,\"zoom\",null),r=h.of(this,arguments),--p||r({type:\"zoomend\"}),u(t,e,x)}).on(\"zoom.redraw\",function(){t.render()}),n.rebind(f,h,\"on\")}function d(t,e){var r=t.invert(e);return r&&isFinite(r[0])&&isFinite(r[1])&&function(t){var e=t[0]*a,r=t[1]*a,n=Math.cos(r);return[n*Math.cos(e),n*Math.sin(e),Math.sin(r)]}(r)}function g(t,e,r,n){var i=v(r-t),a=v(n-e);return Math.sqrt(i*i+a*a)}function v(t){return(t%360+540)%360-180}function m(t,e,r){var n=r*a,i=t.slice(),o=0===e?1:0,s=2===e?1:2,l=Math.cos(n),c=Math.sin(n);return i[o]=t[o]*l-t[s]*c,i[s]=t[s]*l+t[o]*c,i}function y(t,e){for(var r=0,n=0,i=t.length;n<i;++n)r+=t[n]*e[n];return r}e.exports=function(t,e){var r=t.projection;return(e._isScoped?f:e._isClipped?p:h)(t,r)}},{\"../../lib\":696,d3:148}],781:[function(t,e,r){\"use strict\";var n=t(\"../registry\"),i=t(\"./cartesian/constants\").SUBPLOT_PATTERN;r.getSubplotCalcData=function(t,e,r){var i=n.subplotsRegistry[e];if(!i)return[];for(var a=i.attr,o=[],s=0;s<t.length;s++){var l=t[s];l[0].trace[a]===r&&o.push(l)}return o},r.getModuleCalcData=function(t,e){var r,i=[],a=[];if(!(r=\"string\"==typeof e?n.getModule(e).plot:\"function\"==typeof e?e:e.plot))return[i,t];for(var o=0;o<t.length;o++){var s=t[o],l=s[0].trace;!0===l.visible&&(l._module.plot===r?i.push(s):a.push(s))}return[i,a]},r.getSubplotData=function(t,e,r){if(!n.subplotsRegistry[e])return[];var a,o,s,l=n.subplotsRegistry[e].attr,c=[];if(\"gl2d\"===e){var u=r.match(i);o=\"x\"+u[1],s=\"y\"+u[2]}for(var f=0;f<t.length;f++)a=t[f],\"gl2d\"===e&&n.traceIs(a,\"gl2d\")?a[l[0]]===o&&a[l[1]]===s&&c.push(a):a[l]===r&&c.push(a);return c}},{\"../registry\":827,\"./cartesian/constants\":750}],782:[function(t,e,r){\"use strict\";var n=t(\"mouse-change\"),i=t(\"mouse-wheel\"),a=t(\"mouse-event-offset\"),o=t(\"../cartesian/constants\"),s=t(\"has-passive-events\");function l(t,e){this.element=t,this.plot=e,this.mouseListener=null,this.wheelListener=null,this.lastInputTime=Date.now(),this.lastPos=[0,0],this.boxEnabled=!1,this.boxInited=!1,this.boxStart=[0,0],this.boxEnd=[0,0],this.dragStart=[0,0]}e.exports=function(t){var e=t.mouseContainer,r=t.glplot,c=new l(e,r);function u(){t.xaxis.autorange=!1,t.yaxis.autorange=!1}function f(e,n,i){var a,s,l=t.calcDataBox(),f=r.viewBox,h=c.lastPos[0],p=c.lastPos[1],d=o.MINDRAG*r.pixelRatio,g=o.MINZOOM*r.pixelRatio;function v(e,r,n){var i=Math.min(r,n),a=Math.max(r,n);i!==a?(l[e]=i,l[e+2]=a,c.dataBox=l,t.setRanges(l)):(t.selectBox.selectBox=[0,0,1,1],t.glplot.setDirty())}switch(n*=r.pixelRatio,i*=r.pixelRatio,i=f[3]-f[1]-i,t.fullLayout.dragmode){case\"zoom\":if(e){var m=n/(f[2]-f[0])*(l[2]-l[0])+l[0],y=i/(f[3]-f[1])*(l[3]-l[1])+l[1];c.boxInited||(c.boxStart[0]=m,c.boxStart[1]=y,c.dragStart[0]=n,c.dragStart[1]=i),c.boxEnd[0]=m,c.boxEnd[1]=y,c.boxInited=!0,c.boxEnabled||c.boxStart[0]===c.boxEnd[0]&&c.boxStart[1]===c.boxEnd[1]||(c.boxEnabled=!0);var x=Math.abs(c.dragStart[0]-n)<g,b=Math.abs(c.dragStart[1]-i)<g;if(!function(){for(var e=t.graphDiv._fullLayout._axisConstraintGroups,r=t.xaxis._id,n=t.yaxis._id,i=0;i<e.length;i++)if(-1!==e[i][r]){if(-1!==e[i][n])return!0;break}return!1}()||x&&b)x&&(c.boxEnd[0]=c.boxStart[0]),b&&(c.boxEnd[1]=c.boxStart[1]);else{a=c.boxEnd[0]-c.boxStart[0],s=c.boxEnd[1]-c.boxStart[1];var _=(l[3]-l[1])/(l[2]-l[0]);Math.abs(a*_)>Math.abs(s)?(c.boxEnd[1]=c.boxStart[1]+Math.abs(a)*_*(s>=0?1:-1),c.boxEnd[1]<l[1]?(c.boxEnd[1]=l[1],c.boxEnd[0]=c.boxStart[0]+(l[1]-c.boxStart[1])/Math.abs(_)):c.boxEnd[1]>l[3]&&(c.boxEnd[1]=l[3],c.boxEnd[0]=c.boxStart[0]+(l[3]-c.boxStart[1])/Math.abs(_))):(c.boxEnd[0]=c.boxStart[0]+Math.abs(s)/_*(a>=0?1:-1),c.boxEnd[0]<l[0]?(c.boxEnd[0]=l[0],c.boxEnd[1]=c.boxStart[1]+(l[0]-c.boxStart[0])*Math.abs(_)):c.boxEnd[0]>l[2]&&(c.boxEnd[0]=l[2],c.boxEnd[1]=c.boxStart[1]+(l[2]-c.boxStart[0])*Math.abs(_)))}}else c.boxEnabled?(a=c.boxStart[0]!==c.boxEnd[0],s=c.boxStart[1]!==c.boxEnd[1],a||s?(a&&(v(0,c.boxStart[0],c.boxEnd[0]),t.xaxis.autorange=!1),s&&(v(1,c.boxStart[1],c.boxEnd[1]),t.yaxis.autorange=!1),t.relayoutCallback()):t.glplot.setDirty(),c.boxEnabled=!1,c.boxInited=!1):c.boxInited&&(c.boxInited=!1);break;case\"pan\":c.boxEnabled=!1,c.boxInited=!1,e?(c.panning||(c.dragStart[0]=n,c.dragStart[1]=i),Math.abs(c.dragStart[0]-n)<d&&(n=c.dragStart[0]),Math.abs(c.dragStart[1]-i)<d&&(i=c.dragStart[1]),a=(h-n)*(l[2]-l[0])/(r.viewBox[2]-r.viewBox[0]),s=(p-i)*(l[3]-l[1])/(r.viewBox[3]-r.viewBox[1]),l[0]+=a,l[2]+=a,l[1]+=s,l[3]+=s,t.setRanges(l),c.panning=!0,c.lastInputTime=Date.now(),u(),t.cameraChanged(),t.handleAnnotations()):c.panning&&(c.panning=!1,t.relayoutCallback())}c.lastPos[0]=n,c.lastPos[1]=i}return c.mouseListener=n(e,f),e.addEventListener(\"touchstart\",function(t){var r=a(t.changedTouches[0],e);f(0,r[0],r[1]),f(1,r[0],r[1]),t.preventDefault()},!!s&&{passive:!1}),e.addEventListener(\"touchmove\",function(t){t.preventDefault();var r=a(t.changedTouches[0],e);f(1,r[0],r[1]),t.preventDefault()},!!s&&{passive:!1}),e.addEventListener(\"touchend\",function(t){f(0,c.lastPos[0],c.lastPos[1]),t.preventDefault()},!!s&&{passive:!1}),c.wheelListener=i(e,function(e,n){if(!t.scrollZoom)return!1;var i=t.calcDataBox(),a=r.viewBox,o=c.lastPos[0],s=c.lastPos[1],l=Math.exp(5*n/(a[3]-a[1])),f=o/(a[2]-a[0])*(i[2]-i[0])+i[0],h=s/(a[3]-a[1])*(i[3]-i[1])+i[1];return i[0]=(i[0]-f)*l+f,i[2]=(i[2]-f)*l+f,i[1]=(i[1]-h)*l+h,i[3]=(i[3]-h)*l+h,t.setRanges(i),c.lastInputTime=Date.now(),u(),t.cameraChanged(),t.handleAnnotations(),t.relayoutCallback(),!0},!0),c}},{\"../cartesian/constants\":750,\"has-passive-events\":394,\"mouse-change\":418,\"mouse-event-offset\":419,\"mouse-wheel\":421}],783:[function(t,e,r){\"use strict\";var n=t(\"../cartesian/axes\"),i=t(\"../../lib/html2unicode\"),a=t(\"../../lib/str2rgbarray\");function o(t){this.scene=t,this.gl=t.gl,this.pixelRatio=t.pixelRatio,this.screenBox=[0,0,1,1],this.viewBox=[0,0,1,1],this.dataBox=[-1,-1,1,1],this.borderLineEnable=[!1,!1,!1,!1],this.borderLineWidth=[1,1,1,1],this.borderLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.ticks=[[],[]],this.tickEnable=[!0,!0,!1,!1],this.tickPad=[15,15,15,15],this.tickAngle=[0,0,0,0],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickMarkLength=[0,0,0,0],this.tickMarkWidth=[0,0,0,0],this.tickMarkColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labels=[\"x\",\"y\"],this.labelEnable=[!0,!0,!1,!1],this.labelAngle=[0,Math.PI/2,0,3*Math.PI/2],this.labelPad=[15,15,15,15],this.labelSize=[12,12],this.labelFont=[\"sans-serif\",\"sans-serif\"],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.title=\"\",this.titleEnable=!0,this.titleCenter=[0,0,0,0],this.titleAngle=0,this.titleColor=[0,0,0,1],this.titleFont=\"sans-serif\",this.titleSize=18,this.gridLineEnable=[!0,!0],this.gridLineColor=[[0,0,0,.5],[0,0,0,.5]],this.gridLineWidth=[1,1],this.zeroLineEnable=[!0,!0],this.zeroLineWidth=[1,1],this.zeroLineColor=[[0,0,0,1],[0,0,0,1]],this.borderColor=!1,this.backgroundColor=[0,0,0,0],this.static=this.scene.staticPlot}var s=o.prototype,l=[\"xaxis\",\"yaxis\"];s.merge=function(t){var e,r,n,o,s,c,u,f,h,p,d;for(this.titleEnable=!1,this.backgroundColor=a(t.plot_bgcolor),p=0;p<2;++p){var g=(e=l[p]).charAt(0);for(n=(r=t[this.scene[e]._name]).title===this.scene.fullLayout._dfltTitle[g]?\"\":r.title,d=0;d<=2;d+=2)this.labelEnable[p+d]=!1,this.labels[p+d]=i(n),this.labelColor[p+d]=a(r.titlefont.color),this.labelFont[p+d]=r.titlefont.family,this.labelSize[p+d]=r.titlefont.size,this.labelPad[p+d]=this.getLabelPad(e,r),this.tickEnable[p+d]=!1,this.tickColor[p+d]=a((r.tickfont||{}).color),this.tickAngle[p+d]=\"auto\"===r.tickangle?0:Math.PI*-r.tickangle/180,this.tickPad[p+d]=this.getTickPad(r),this.tickMarkLength[p+d]=0,this.tickMarkWidth[p+d]=r.tickwidth||0,this.tickMarkColor[p+d]=a(r.tickcolor),this.borderLineEnable[p+d]=!1,this.borderLineColor[p+d]=a(r.linecolor),this.borderLineWidth[p+d]=r.linewidth||0;u=this.hasSharedAxis(r),s=this.hasAxisInDfltPos(e,r)&&!u,c=this.hasAxisInAltrPos(e,r)&&!u,o=r.mirror||!1,f=u?-1!==String(o).indexOf(\"all\"):!!o,h=u?\"allticks\"===o:-1!==String(o).indexOf(\"ticks\"),s?this.labelEnable[p]=!0:c&&(this.labelEnable[p+2]=!0),s?this.tickEnable[p]=r.showticklabels:c&&(this.tickEnable[p+2]=r.showticklabels),(s||f)&&(this.borderLineEnable[p]=r.showline),(c||f)&&(this.borderLineEnable[p+2]=r.showline),(s||h)&&(this.tickMarkLength[p]=this.getTickMarkLength(r)),(c||h)&&(this.tickMarkLength[p+2]=this.getTickMarkLength(r)),this.gridLineEnable[p]=r.showgrid,this.gridLineColor[p]=a(r.gridcolor),this.gridLineWidth[p]=r.gridwidth,this.zeroLineEnable[p]=r.zeroline,this.zeroLineColor[p]=a(r.zerolinecolor),this.zeroLineWidth[p]=r.zerolinewidth}},s.hasSharedAxis=function(t){var e=this.scene,r=e.fullLayout._subplots.gl2d;return 0!==n.findSubplotsWithAxis(r,t).indexOf(e.id)},s.hasAxisInDfltPos=function(t,e){var r=e.side;return\"xaxis\"===t?\"bottom\"===r:\"yaxis\"===t?\"left\"===r:void 0},s.hasAxisInAltrPos=function(t,e){var r=e.side;return\"xaxis\"===t?\"top\"===r:\"yaxis\"===t?\"right\"===r:void 0},s.getLabelPad=function(t,e){var r=e.titlefont.size,n=e.showticklabels;return\"xaxis\"===t?\"top\"===e.side?r*(1.5+(n?1:0))-10:r*(1.5+(n?.5:0))-10:\"yaxis\"===t?\"right\"===e.side?10+r*(1.5+(n?1:.5)):10+r*(1.5+(n?.5:0)):void 0},s.getTickPad=function(t){return\"outside\"===t.ticks?10+t.ticklen:15},s.getTickMarkLength=function(t){if(!t.ticks)return 0;var e=t.ticklen;return\"inside\"===t.ticks?-e:e},e.exports=function(t){return new o(t)}},{\"../../lib/html2unicode\":694,\"../../lib/str2rgbarray\":719,\"../cartesian/axes\":744}],784:[function(t,e,r){\"use strict\";var n=t(\"../../plot_api/edit_types\").overrideAll,i=t(\"./scene2d\"),a=t(\"../layout_attributes\"),o=t(\"../../constants/xmlns_namespaces\"),s=t(\"../cartesian/constants\"),l=t(\"../cartesian\"),c=t(\"../../components/fx/layout_attributes\"),u=t(\"../get_data\").getSubplotData;r.name=\"gl2d\",r.attr=[\"xaxis\",\"yaxis\"],r.idRoot=[\"x\",\"y\"],r.idRegex=s.idRegex,r.attrRegex=s.attrRegex,r.attributes=t(\"../cartesian/attributes\"),r.supplyLayoutDefaults=function(t,e,r){e._has(\"cartesian\")||l.supplyLayoutDefaults(t,e,r)},r.layoutAttrOverrides=n(l.layoutAttributes,\"plot\",\"from-root\"),r.baseLayoutAttrOverrides=n({plot_bgcolor:a.plot_bgcolor,hoverlabel:c.hoverlabel},\"plot\",\"nested\"),r.plot=function(t){for(var e=t._fullLayout,r=t._fullData,n=e._subplots.gl2d,a=0;a<n.length;a++){var o=n[a],s=e._plots[o],l=u(r,\"gl2d\",o),c=s._scene2d;void 0===c&&(c=new i({id:o,graphDiv:t,container:t.querySelector(\".gl-container\"),staticPlot:t._context.staticPlot,plotGlPixelRatio:t._context.plotGlPixelRatio},e),s._scene2d=c),c.plot(l,t.calcdata,e,t.layout)}},r.clean=function(t,e,r,n){for(var i=n._subplots.gl2d||[],a=0;a<i.length;a++){var o=i[a],s=n._plots[o];if(s._scene2d)0===u(t,\"gl2d\",o).length&&(s._scene2d.destroy(),delete n._plots[o])}l.clean.apply(this,arguments)},r.drawFramework=function(t){t._context.staticPlot||l.drawFramework(t)},r.toSVG=function(t){for(var e=t._fullLayout,r=e._subplots.gl2d,n=0;n<r.length;n++){var i=e._plots[r[n]]._scene2d,a=i.toImage(\"png\");e._glimages.append(\"svg:image\").attr({xmlns:o.svg,\"xlink:href\":a,x:0,y:0,width:\"100%\",height:\"100%\",preserveAspectRatio:\"none\"}),i.destroy()}},r.updateFx=function(t){for(var e=t._fullLayout,r=e._subplots.gl2d,n=0;n<r.length;n++){e._plots[r[n]]._scene2d.updateFx(e.dragmode)}}},{\"../../components/fx/layout_attributes\":613,\"../../constants/xmlns_namespaces\":674,\"../../plot_api/edit_types\":727,\"../cartesian\":756,\"../cartesian/attributes\":742,\"../cartesian/constants\":750,\"../get_data\":781,\"../layout_attributes\":799,\"./scene2d\":785}],785:[function(t,e,r){\"use strict\";var n,i,a=t(\"../../registry\"),o=t(\"../../plots/cartesian/axes\"),s=t(\"../../components/fx\"),l=t(\"gl-plot2d\"),c=t(\"gl-spikes2d\"),u=t(\"gl-select-box\"),f=t(\"webgl-context\"),h=t(\"./convert\"),p=t(\"./camera\"),d=t(\"../../lib/html2unicode\"),g=t(\"../../lib/show_no_webgl_msg\"),v=t(\"../cartesian/constraints\"),m=v.enforce,y=v.clean,x=t(\"../cartesian/autorange\").doAutoRange,b=[\"xaxis\",\"yaxis\"],_=t(\"../cartesian/constants\").SUBPLOT_PATTERN;function w(t,e){this.container=t.container,this.graphDiv=t.graphDiv,this.pixelRatio=t.plotGlPixelRatio||window.devicePixelRatio,this.id=t.id,this.staticPlot=!!t.staticPlot,this.scrollZoom=this.graphDiv._context.scrollZoom,this.fullData=null,this.updateRefs(e),this.makeFramework(),this.stopped||(this.glplotOptions=h(this),this.glplotOptions.merge(e),this.glplot=l(this.glplotOptions),this.camera=p(this),this.traces={},this.spikes=c(this.glplot),this.selectBox=u(this.glplot,{innerFill:!1,outerFill:!0}),this.lastButtonState=0,this.pickResult=null,this.isMouseOver=!0,this.stopped=!1,this.redraw=this.draw.bind(this),this.redraw())}e.exports=w;var k=w.prototype;k.makeFramework=function(){if(this.staticPlot){if(!(i||(n=document.createElement(\"canvas\"),i=f({canvas:n,preserveDrawingBuffer:!1,premultipliedAlpha:!0,antialias:!0}))))throw new Error(\"Error creating static canvas/context for image server\");this.canvas=n,this.gl=i}else{var t=this.container.querySelector(\".gl-canvas-focus\"),e=f({canvas:t,preserveDrawingBuffer:!0,premultipliedAlpha:!0});if(!e)return g(this),void(this.stopped=!0);this.canvas=t,this.gl=e}var r=this.canvas;r.style.width=\"100%\",r.style.height=\"100%\",r.style.position=\"absolute\",r.style.top=\"0px\",r.style.left=\"0px\",r.style[\"pointer-events\"]=\"none\",this.updateSize(r),r.className+=\" user-select-none\";var a=this.svgContainer=document.createElementNS(\"http://www.w3.org/2000/svg\",\"svg\");a.style.position=\"absolute\",a.style.top=a.style.left=\"0px\",a.style.width=a.style.height=\"100%\",a.style[\"z-index\"]=20,a.style[\"pointer-events\"]=\"none\";var o=this.mouseContainer=document.createElement(\"div\");o.style.position=\"absolute\",o.style[\"pointer-events\"]=\"auto\",this.pickCanvas=this.container.querySelector(\".gl-canvas-pick\");var s=this.container;s.appendChild(a),s.appendChild(o);var l=this;o.addEventListener(\"mouseout\",function(){l.isMouseOver=!1,l.unhover()}),o.addEventListener(\"mouseover\",function(){l.isMouseOver=!0})},k.toImage=function(t){t||(t=\"png\"),this.stopped=!0,this.staticPlot&&this.container.appendChild(n),this.updateSize(this.canvas);var e=this.glplot.gl,r=e.drawingBufferWidth,i=e.drawingBufferHeight;e.clearColor(1,1,1,0),e.clear(e.COLOR_BUFFER_BIT|e.DEPTH_BUFFER_BIT),this.glplot.setDirty(),this.glplot.draw(),e.bindFramebuffer(e.FRAMEBUFFER,null);var a=new Uint8Array(r*i*4);e.readPixels(0,0,r,i,e.RGBA,e.UNSIGNED_BYTE,a);for(var o=0,s=i-1;o<s;++o,--s)for(var l=0;l<r;++l)for(var c=0;c<4;++c){var u=a[4*(r*o+l)+c];a[4*(r*o+l)+c]=a[4*(r*s+l)+c],a[4*(r*s+l)+c]=u}var f=document.createElement(\"canvas\");f.width=r,f.height=i;var h,p=f.getContext(\"2d\"),d=p.createImageData(r,i);switch(d.data.set(a),p.putImageData(d,0,0),t){case\"jpeg\":h=f.toDataURL(\"image/jpeg\");break;case\"webp\":h=f.toDataURL(\"image/webp\");break;default:h=f.toDataURL(\"image/png\")}return this.staticPlot&&this.container.removeChild(n),h},k.updateSize=function(t){t||(t=this.canvas);var e=this.pixelRatio,r=this.fullLayout,n=r.width,i=r.height,a=0|Math.ceil(e*n),o=0|Math.ceil(e*i);return t.width===a&&t.height===o||(t.width=a,t.height=o),t},k.computeTickMarks=function(){this.xaxis.setScale(),this.yaxis.setScale();for(var t=[o.calcTicks(this.xaxis),o.calcTicks(this.yaxis)],e=0;e<2;++e)for(var r=0;r<t[e].length;++r)t[e][r].text=d(t[e][r].text+\"\");return t},k.updateRefs=function(t){this.fullLayout=t;var e=this.id.match(_),r=\"xaxis\"+e[1],n=\"yaxis\"+e[2];this.xaxis=this.fullLayout[r],this.yaxis=this.fullLayout[n]},k.relayoutCallback=function(){var t=this.graphDiv,e=this.xaxis,r=this.yaxis,n=t.layout;n.xaxis.autorange=e.autorange,n.xaxis.range=e.range.slice(0),n.yaxis.autorange=r.autorange,n.yaxis.range=r.range.slice(0);var i={lastInputTime:this.camera.lastInputTime};i[e._name]=e.range.slice(0),i[r._name]=r.range.slice(0),t.emit(\"plotly_relayout\",i)},k.cameraChanged=function(){var t=this.camera;this.glplot.setDataBox(this.calcDataBox());var e=this.computeTickMarks();(function(t,e){for(var r=0;r<2;++r){var n=t[r],i=e[r];if(n.length!==i.length)return!0;for(var a=0;a<n.length;++a)if(n[a].x!==i[a].x)return!0}return!1})(e,this.glplotOptions.ticks)&&(this.glplotOptions.ticks=e,this.glplotOptions.dataBox=t.dataBox,this.glplot.update(this.glplotOptions),this.handleAnnotations())},k.handleAnnotations=function(){for(var t=this.graphDiv,e=this.fullLayout.annotations,r=0;r<e.length;r++){var n=e[r];n.xref===this.xaxis._id&&n.yref===this.yaxis._id&&a.getComponentMethod(\"annotations\",\"drawOne\")(t,r)}},k.destroy=function(){if(this.glplot){var t=this.traces;t&&Object.keys(t).map(function(e){t[e].dispose(),delete t[e]}),this.glplot.dispose(),this.container.removeChild(this.svgContainer),this.container.removeChild(this.mouseContainer),this.fullData=null,this.glplot=null,this.stopped=!0,this.camera.mouseListener.enabled=!1,this.mouseContainer.removeEventListener(\"wheel\",this.camera.wheelListener),this.camera=null}},k.plot=function(t,e,r){var n=this.glplot;this.updateRefs(r),this.xaxis.clearCalc(),this.yaxis.clearCalc(),this.updateTraces(t,e),this.updateFx(r.dragmode);var i=r.width,a=r.height;this.updateSize(this.canvas);var o=this.glplotOptions;o.merge(r),o.screenBox=[0,0,i,a];var s={_fullLayout:{_axisConstraintGroups:this.graphDiv._fullLayout._axisConstraintGroups,xaxis:this.xaxis,yaxis:this.yaxis}};y(s,this.xaxis),y(s,this.yaxis);var l,c,u=r._size,f=this.xaxis.domain,h=this.yaxis.domain;for(o.viewBox=[u.l+f[0]*u.w,u.b+h[0]*u.h,i-u.r-(1-f[1])*u.w,a-u.t-(1-h[1])*u.h],this.mouseContainer.style.width=u.w*(f[1]-f[0])+\"px\",this.mouseContainer.style.height=u.h*(h[1]-h[0])+\"px\",this.mouseContainer.height=u.h*(h[1]-h[0]),this.mouseContainer.style.left=u.l+f[0]*u.w+\"px\",this.mouseContainer.style.top=u.t+(1-h[1])*u.h+\"px\",c=0;c<2;++c)(l=this[b[c]])._length=o.viewBox[c+2]-o.viewBox[c],x(this.graphDiv,l),l.setScale();m(s),o.ticks=this.computeTickMarks(),o.dataBox=this.calcDataBox(),o.merge(r),n.update(o),this.glplot.draw()},k.calcDataBox=function(){var t=this.xaxis,e=this.yaxis,r=t.range,n=e.range,i=t.r2l,a=e.r2l;return[i(r[0]),a(n[0]),i(r[1]),a(n[1])]},k.setRanges=function(t){var e=this.xaxis,r=this.yaxis,n=e.l2r,i=r.l2r;e.range=[n(t[0]),n(t[2])],r.range=[i(t[1]),i(t[3])]},k.updateTraces=function(t,e){var r,n,i,a=Object.keys(this.traces);this.fullData=t;t:for(r=0;r<a.length;r++){var o=a[r],s=this.traces[o];for(n=0;n<t.length;n++)if((i=t[n]).uid===o&&i.type===s.type)continue t;s.dispose(),delete this.traces[o]}for(r=0;r<t.length;r++){i=t[r];var l=e[r],c=this.traces[i.uid];c?c.update(i,l):(c=i._module.plot(this,i,l),this.traces[i.uid]=c)}this.glplot.objects.sort(function(t,e){return t._trace.index-e._trace.index})},k.updateFx=function(t){\"lasso\"===t||\"select\"===t?(this.pickCanvas.style[\"pointer-events\"]=\"none\",this.mouseContainer.style[\"pointer-events\"]=\"none\"):(this.pickCanvas.style[\"pointer-events\"]=\"auto\",this.mouseContainer.style[\"pointer-events\"]=\"auto\"),this.mouseContainer.style.cursor=\"pan\"===t?\"move\":\"zoom\"===t?\"crosshair\":null},k.emitPointAction=function(t,e){for(var r,n=t.trace.uid,i=t.pointIndex,a=0;a<this.fullData.length;a++)this.fullData[a].uid===n&&(r=this.fullData[a]);var o={x:t.traceCoord[0],y:t.traceCoord[1],curveNumber:r.index,pointNumber:i,data:r._input,fullData:this.fullData,xaxis:this.xaxis,yaxis:this.yaxis};s.appendArrayPointValue(o,r,i),this.graphDiv.emit(e,{points:[o]})},k.draw=function(){if(!this.stopped){requestAnimationFrame(this.redraw);var t=this.glplot,e=this.camera,r=e.mouseListener,n=1===this.lastButtonState&&0===r.buttons,i=this.fullLayout;this.lastButtonState=r.buttons,this.cameraChanged();var a,o=r.x*t.pixelRatio,l=this.canvas.height-t.pixelRatio*r.y;if(e.boxEnabled&&\"zoom\"===i.dragmode){this.selectBox.enabled=!0;for(var c=this.selectBox.selectBox=[Math.min(e.boxStart[0],e.boxEnd[0]),Math.min(e.boxStart[1],e.boxEnd[1]),Math.max(e.boxStart[0],e.boxEnd[0]),Math.max(e.boxStart[1],e.boxEnd[1])],u=0;u<2;u++)e.boxStart[u]===e.boxEnd[u]&&(c[u]=t.dataBox[u],c[u+2]=t.dataBox[u+2]);t.setDirty()}else if(!e.panning&&this.isMouseOver){this.selectBox.enabled=!1;var f=i._size,h=this.xaxis.domain,p=this.yaxis.domain,d=(a=t.pick(o/t.pixelRatio+f.l+h[0]*f.w,l/t.pixelRatio-(f.t+(1-p[1])*f.h)))&&a.object._trace.handlePick(a);if(d&&n&&this.emitPointAction(d,\"plotly_click\"),a&&\"skip\"!==a.object._trace.hoverinfo&&i.hovermode&&d&&(!this.lastPickResult||this.lastPickResult.traceUid!==d.trace.uid||this.lastPickResult.dataCoord[0]!==d.dataCoord[0]||this.lastPickResult.dataCoord[1]!==d.dataCoord[1])){var g=d;this.lastPickResult={traceUid:d.trace?d.trace.uid:null,dataCoord:d.dataCoord.slice()},this.spikes.update({center:a.dataCoord}),g.screenCoord=[((t.viewBox[2]-t.viewBox[0])*(a.dataCoord[0]-t.dataBox[0])/(t.dataBox[2]-t.dataBox[0])+t.viewBox[0])/t.pixelRatio,(this.canvas.height-(t.viewBox[3]-t.viewBox[1])*(a.dataCoord[1]-t.dataBox[1])/(t.dataBox[3]-t.dataBox[1])-t.viewBox[1])/t.pixelRatio],this.emitPointAction(d,\"plotly_hover\");var v=this.fullData[g.trace.index]||{},m=g.pointIndex,y=s.castHoverinfo(v,i,m);if(y&&\"all\"!==y){var x=y.split(\"+\");-1===x.indexOf(\"x\")&&(g.traceCoord[0]=void 0),-1===x.indexOf(\"y\")&&(g.traceCoord[1]=void 0),-1===x.indexOf(\"z\")&&(g.traceCoord[2]=void 0),-1===x.indexOf(\"text\")&&(g.textLabel=void 0),-1===x.indexOf(\"name\")&&(g.name=void 0)}s.loneHover({x:g.screenCoord[0],y:g.screenCoord[1],xLabel:this.hoverFormatter(\"xaxis\",g.traceCoord[0]),yLabel:this.hoverFormatter(\"yaxis\",g.traceCoord[1]),zLabel:g.traceCoord[2],text:g.textLabel,name:g.name,color:s.castHoverOption(v,m,\"bgcolor\")||g.color,borderColor:s.castHoverOption(v,m,\"bordercolor\"),fontFamily:s.castHoverOption(v,m,\"font.family\"),fontSize:s.castHoverOption(v,m,\"font.size\"),fontColor:s.castHoverOption(v,m,\"font.color\")},{container:this.svgContainer,gd:this.graphDiv})}}a||this.unhover(),t.draw()}},k.unhover=function(){this.lastPickResult&&(this.spikes.update({}),this.lastPickResult=null,this.graphDiv.emit(\"plotly_unhover\"),s.loneUnhover(this.svgContainer))},k.hoverFormatter=function(t,e){if(void 0!==e){var r=this[t];return o.tickText(r,r.c2l(e),\"hover\").text}}},{\"../../components/fx\":612,\"../../lib/html2unicode\":694,\"../../lib/show_no_webgl_msg\":717,\"../../plots/cartesian/axes\":744,\"../../registry\":827,\"../cartesian/autorange\":743,\"../cartesian/constants\":750,\"../cartesian/constraints\":752,\"./camera\":782,\"./convert\":783,\"gl-plot2d\":275,\"gl-select-box\":286,\"gl-spikes2d\":295,\"webgl-context\":533}],786:[function(t,e,r){\"use strict\";e.exports=function(t,e){t=t||document.body,e=e||{};var r=[.01,1/0];\"distanceLimits\"in e&&(r[0]=e.distanceLimits[0],r[1]=e.distanceLimits[1]);\"zoomMin\"in e&&(r[0]=e.zoomMin);\"zoomMax\"in e&&(r[1]=e.zoomMax);var c=i({center:e.center||[0,0,0],up:e.up||[0,1,0],eye:e.eye||[0,0,10],mode:e.mode||\"orbit\",distanceLimits:r}),u=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],f=0,h=t.clientWidth,p=t.clientHeight,d={keyBindingMode:\"rotate\",view:c,element:t,delay:e.delay||16,rotateSpeed:e.rotateSpeed||1,zoomSpeed:e.zoomSpeed||1,translateSpeed:e.translateSpeed||1,flipX:!!e.flipX,flipY:!!e.flipY,modes:c.modes,tick:function(){var e=n(),r=this.delay,i=e-2*r;c.idle(e-r),c.recalcMatrix(i),c.flush(e-(100+2*r));for(var a=!0,o=c.computedMatrix,s=0;s<16;++s)a=a&&u[s]===o[s],u[s]=o[s];var l=t.clientWidth===h&&t.clientHeight===p;return h=t.clientWidth,p=t.clientHeight,a?!l:(f=Math.exp(c.computedRadius[0]),!0)},lookAt:function(t,e,r){c.lookAt(c.lastT(),t,e,r)},rotate:function(t,e,r){c.rotate(c.lastT(),t,e,r)},pan:function(t,e,r){c.pan(c.lastT(),t,e,r)},translate:function(t,e,r){c.translate(c.lastT(),t,e,r)}};Object.defineProperties(d,{matrix:{get:function(){return c.computedMatrix},set:function(t){return c.setMatrix(c.lastT(),t),c.computedMatrix},enumerable:!0},mode:{get:function(){return c.getMode()},set:function(t){var e=c.computedUp.slice(),r=c.computedEye.slice(),i=c.computedCenter.slice();if(c.setMode(t),\"turntable\"===t){var a=n();c._active.lookAt(a,r,i,e),c._active.lookAt(a+500,r,i,[0,0,1]),c._active.flush(a)}return c.getMode()},enumerable:!0},center:{get:function(){return c.computedCenter},set:function(t){return c.lookAt(c.lastT(),null,t),c.computedCenter},enumerable:!0},eye:{get:function(){return c.computedEye},set:function(t){return c.lookAt(c.lastT(),t),c.computedEye},enumerable:!0},up:{get:function(){return c.computedUp},set:function(t){return c.lookAt(c.lastT(),null,null,t),c.computedUp},enumerable:!0},distance:{get:function(){return f},set:function(t){return c.setDistance(c.lastT(),t),t},enumerable:!0},distanceLimits:{get:function(){return c.getDistanceLimits(r)},set:function(t){return c.setDistanceLimits(t),t},enumerable:!0}}),t.addEventListener(\"contextmenu\",function(t){return t.preventDefault(),!1});var g=0,v=0,m={shift:!1,control:!1,alt:!1,meta:!1};function y(e,r,i,a){var o=d.keyBindingMode;if(!1!==o){var s=\"rotate\"===o,l=\"pan\"===o,u=\"zoom\"===o,h=!!a.control,p=!!a.alt,y=!!a.shift,x=!!(1&e),b=!!(2&e),_=!!(4&e),w=1/t.clientHeight,k=w*(r-g),M=w*(i-v),A=d.flipX?1:-1,T=d.flipY?1:-1,S=n(),E=Math.PI*d.rotateSpeed;if((s&&x&&!h&&!p&&!y||x&&!h&&!p&&y)&&c.rotate(S,A*E*k,-T*E*M,0),(l&&x&&!h&&!p&&!y||b||x&&h&&!p&&!y)&&c.pan(S,-d.translateSpeed*k*f,d.translateSpeed*M*f,0),u&&x&&!h&&!p&&!y||_||x&&!h&&p&&!y){var C=-d.zoomSpeed*M/window.innerHeight*(S-c.lastT())*100;c.pan(S,0,0,f*(Math.exp(C)-1))}return g=r,v=i,m=a,!0}}return d.mouseListener=a(t,y),t.addEventListener(\"touchstart\",function(e){var r=s(e.changedTouches[0],t);y(0,r[0],r[1],m),y(1,r[0],r[1],m),e.preventDefault()},!!l&&{passive:!1}),t.addEventListener(\"touchmove\",function(e){var r=s(e.changedTouches[0],t);y(1,r[0],r[1],m),e.preventDefault()},!!l&&{passive:!1}),t.addEventListener(\"touchend\",function(t){y(0,g,v,m),t.preventDefault()},!!l&&{passive:!1}),d.wheelListener=o(t,function(t,e){if(!1!==d.keyBindingMode){var r=d.flipX?1:-1,i=d.flipY?1:-1,a=n();if(Math.abs(t)>Math.abs(e))c.rotate(a,0,0,-t*r*Math.PI*d.rotateSpeed/window.innerWidth);else{var o=-d.zoomSpeed*i*e/window.innerHeight*(a-c.lastT())/20;c.pan(a,0,0,f*(Math.exp(o)-1))}}},!0),d};var n=t(\"right-now\"),i=t(\"3d-view\"),a=t(\"mouse-change\"),o=t(\"mouse-wheel\"),s=t(\"mouse-event-offset\"),l=t(\"has-passive-events\")},{\"3d-view\":45,\"has-passive-events\":394,\"mouse-change\":418,\"mouse-event-offset\":419,\"mouse-wheel\":421,\"right-now\":480}],787:[function(t,e,r){\"use strict\";var n=t(\"../../plot_api/edit_types\").overrideAll,i=t(\"../../components/fx/layout_attributes\"),a=t(\"./scene\"),o=t(\"../get_data\").getSubplotData,s=t(\"../../lib\"),l=t(\"../../constants/xmlns_namespaces\");r.name=\"gl3d\",r.attr=\"scene\",r.idRoot=\"scene\",r.idRegex=r.attrRegex=s.counterRegex(\"scene\"),r.attributes=t(\"./layout/attributes\"),r.layoutAttributes=t(\"./layout/layout_attributes\"),r.baseLayoutAttrOverrides=n({hoverlabel:i.hoverlabel},\"plot\",\"nested\"),r.supplyLayoutDefaults=t(\"./layout/defaults\"),r.plot=function(t){for(var e=t._fullLayout,r=t._fullData,n=e._subplots.gl3d,i=0;i<n.length;i++){var l=n[i],c=o(r,\"gl3d\",l),u=e[l],f=u._scene;f||(f=new a({id:l,graphDiv:t,container:t.querySelector(\".gl-container\"),staticPlot:t._context.staticPlot,plotGlPixelRatio:t._context.plotGlPixelRatio},e),u._scene=f),f.cameraInitial||(f.cameraInitial=s.extendDeep({},u.camera)),f.plot(c,e,t.layout)}},r.clean=function(t,e,r,n){for(var i=n._subplots.gl3d||[],a=0;a<i.length;a++){var o=i[a];!e[o]&&n[o]._scene&&(n[o]._scene.destroy(),n._infolayer&&n._infolayer.selectAll(\".annotation-\"+o).remove())}},r.toSVG=function(t){for(var e=t._fullLayout,r=e._subplots.gl3d,n=e._size,i=0;i<r.length;i++){var a=e[r[i]],o=a.domain,s=a._scene,c=s.toImage(\"png\");e._glimages.append(\"svg:image\").attr({xmlns:l.svg,\"xlink:href\":c,x:n.l+n.w*o.x[0],y:n.t+n.h*(1-o.y[1]),width:n.w*(o.x[1]-o.x[0]),height:n.h*(o.y[1]-o.y[0]),preserveAspectRatio:\"none\"}),s.destroy()}},r.cleanId=function(t){if(t.match(/^scene[0-9]*$/)){var e=t.substr(5);return\"1\"===e&&(e=\"\"),\"scene\"+e}},r.updateFx=function(t){for(var e=t._fullLayout,r=e._subplots.gl3d,n=0;n<r.length;n++){e[r[n]]._scene.updateFx(e.dragmode,e.hovermode)}}},{\"../../components/fx/layout_attributes\":613,\"../../constants/xmlns_namespaces\":674,\"../../lib\":696,\"../../plot_api/edit_types\":727,\"../get_data\":781,\"./layout/attributes\":788,\"./layout/defaults\":792,\"./layout/layout_attributes\":793,\"./scene\":797}],788:[function(t,e,r){\"use strict\";e.exports={scene:{valType:\"subplotid\",dflt:\"scene\",editType:\"calc+clearAxisTypes\"}}},{}],789:[function(t,e,r){\"use strict\";var n=t(\"../../../components/color\"),i=t(\"../../cartesian/layout_attributes\"),a=t(\"../../../lib/extend\").extendFlat,o=t(\"../../../plot_api/edit_types\").overrideAll;e.exports=o({visible:i.visible,showspikes:{valType:\"boolean\",dflt:!0},spikesides:{valType:\"boolean\",dflt:!0},spikethickness:{valType:\"number\",min:0,dflt:2},spikecolor:{valType:\"color\",dflt:n.defaultLine},showbackground:{valType:\"boolean\",dflt:!1},backgroundcolor:{valType:\"color\",dflt:\"rgba(204, 204, 204, 0.5)\"},showaxeslabels:{valType:\"boolean\",dflt:!0},color:i.color,categoryorder:i.categoryorder,categoryarray:i.categoryarray,title:i.title,titlefont:i.titlefont,type:i.type,autorange:i.autorange,rangemode:i.rangemode,range:i.range,tickmode:i.tickmode,nticks:i.nticks,tick0:i.tick0,dtick:i.dtick,tickvals:i.tickvals,ticktext:i.ticktext,ticks:i.ticks,mirror:i.mirror,ticklen:i.ticklen,tickwidth:i.tickwidth,tickcolor:i.tickcolor,showticklabels:i.showticklabels,tickfont:i.tickfont,tickangle:i.tickangle,tickprefix:i.tickprefix,showtickprefix:i.showtickprefix,ticksuffix:i.ticksuffix,showticksuffix:i.showticksuffix,showexponent:i.showexponent,exponentformat:i.exponentformat,separatethousands:i.separatethousands,tickformat:i.tickformat,tickformatstops:i.tickformatstops,hoverformat:i.hoverformat,showline:i.showline,linecolor:i.linecolor,linewidth:i.linewidth,showgrid:i.showgrid,gridcolor:a({},i.gridcolor,{dflt:\"rgb(204, 204, 204)\"}),gridwidth:i.gridwidth,zeroline:i.zeroline,zerolinecolor:i.zerolinecolor,zerolinewidth:i.zerolinewidth},\"plot\",\"from-root\")},{\"../../../components/color\":570,\"../../../lib/extend\":685,\"../../../plot_api/edit_types\":727,\"../../cartesian/layout_attributes\":757}],790:[function(t,e,r){\"use strict\";var n=t(\"tinycolor2\").mix,i=t(\"../../../lib\"),a=t(\"../../../plot_api/plot_template\"),o=t(\"./axis_attributes\"),s=t(\"../../cartesian/type_defaults\"),l=t(\"../../cartesian/axis_defaults\"),c=[\"xaxis\",\"yaxis\",\"zaxis\"];e.exports=function(t,e,r){var u,f;function h(t,e){return i.coerce(u,f,o,t,e)}for(var p=0;p<c.length;p++){var d=c[p];u=t[d]||{},(f=a.newContainer(e,d))._id=d[0]+r.scene,f._name=d,s(u,f,h,r),l(u,f,h,{font:r.font,letter:d[0],data:r.data,showGrid:!0,bgColor:r.bgColor,calendar:r.calendar},r.fullLayout),h(\"gridcolor\",n(f.color,r.bgColor,13600/187).toRgbString()),h(\"title\",d[0]),f.setScale=i.noop,h(\"showspikes\")&&(h(\"spikesides\"),h(\"spikethickness\"),h(\"spikecolor\",f.color)),h(\"showaxeslabels\"),h(\"showbackground\")&&h(\"backgroundcolor\")}}},{\"../../../lib\":696,\"../../../plot_api/plot_template\":734,\"../../cartesian/axis_defaults\":746,\"../../cartesian/type_defaults\":768,\"./axis_attributes\":789,tinycolor2:514}],791:[function(t,e,r){\"use strict\";var n=t(\"../../../lib/html2unicode\"),i=t(\"../../../lib/str2rgbarray\"),a=[\"xaxis\",\"yaxis\",\"zaxis\"];function o(){this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.tickEnable=[!0,!0,!0],this.tickFont=[\"sans-serif\",\"sans-serif\",\"sans-serif\"],this.tickSize=[12,12,12],this.tickAngle=[0,0,0],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[18,18,18],this.labels=[\"x\",\"y\",\"z\"],this.labelEnable=[!0,!0,!0],this.labelFont=[\"Open Sans\",\"Open Sans\",\"Open Sans\"],this.labelSize=[20,20,20],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[30,30,30],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[10,10,10],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!0,!0,!0],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._defaultTickPad=this.tickPad.slice(),this._defaultLabelPad=this.labelPad.slice(),this._defaultLineTickLength=this.lineTickLength.slice()}o.prototype.merge=function(t){for(var e=0;e<3;++e){var r=t[a[e]];r.visible?(this.labels[e]=n(r.title),\"titlefont\"in r&&(r.titlefont.color&&(this.labelColor[e]=i(r.titlefont.color)),r.titlefont.family&&(this.labelFont[e]=r.titlefont.family),r.titlefont.size&&(this.labelSize[e]=r.titlefont.size)),\"showline\"in r&&(this.lineEnable[e]=r.showline),\"linecolor\"in r&&(this.lineColor[e]=i(r.linecolor)),\"linewidth\"in r&&(this.lineWidth[e]=r.linewidth),\"showgrid\"in r&&(this.gridEnable[e]=r.showgrid),\"gridcolor\"in r&&(this.gridColor[e]=i(r.gridcolor)),\"gridwidth\"in r&&(this.gridWidth[e]=r.gridwidth),\"log\"===r.type?this.zeroEnable[e]=!1:\"zeroline\"in r&&(this.zeroEnable[e]=r.zeroline),\"zerolinecolor\"in r&&(this.zeroLineColor[e]=i(r.zerolinecolor)),\"zerolinewidth\"in r&&(this.zeroLineWidth[e]=r.zerolinewidth),\"ticks\"in r&&r.ticks?this.lineTickEnable[e]=!0:this.lineTickEnable[e]=!1,\"ticklen\"in r&&(this.lineTickLength[e]=this._defaultLineTickLength[e]=r.ticklen),\"tickcolor\"in r&&(this.lineTickColor[e]=i(r.tickcolor)),\"tickwidth\"in r&&(this.lineTickWidth[e]=r.tickwidth),\"tickangle\"in r&&(this.tickAngle[e]=\"auto\"===r.tickangle?-3600:Math.PI*-r.tickangle/180),\"showticklabels\"in r&&(this.tickEnable[e]=r.showticklabels),\"tickfont\"in r&&(r.tickfont.color&&(this.tickColor[e]=i(r.tickfont.color)),r.tickfont.family&&(this.tickFont[e]=r.tickfont.family),r.tickfont.size&&(this.tickSize[e]=r.tickfont.size)),\"mirror\"in r?-1!==[\"ticks\",\"all\",\"allticks\"].indexOf(r.mirror)?(this.lineTickMirror[e]=!0,this.lineMirror[e]=!0):!0===r.mirror?(this.lineTickMirror[e]=!1,this.lineMirror[e]=!0):(this.lineTickMirror[e]=!1,this.lineMirror[e]=!1):this.lineMirror[e]=!1,\"showbackground\"in r&&!1!==r.showbackground?(this.backgroundEnable[e]=!0,this.backgroundColor[e]=i(r.backgroundcolor)):this.backgroundEnable[e]=!1):(this.tickEnable[e]=!1,this.labelEnable[e]=!1,this.lineEnable[e]=!1,this.lineTickEnable[e]=!1,this.gridEnable[e]=!1,this.zeroEnable[e]=!1,this.backgroundEnable[e]=!1)}},e.exports=function(t){var e=new o;return e.merge(t),e}},{\"../../../lib/html2unicode\":694,\"../../../lib/str2rgbarray\":719}],792:[function(t,e,r){\"use strict\";var n=t(\"../../../lib\"),i=t(\"../../../components/color\"),a=t(\"../../../registry\"),o=t(\"../../subplot_defaults\"),s=t(\"./axis_defaults\"),l=t(\"./layout_attributes\");function c(t,e,r,n){for(var o=r(\"bgcolor\"),l=i.combine(o,n.paper_bgcolor),c=[\"up\",\"center\",\"eye\"],u=0;u<c.length;u++)r(\"camera.\"+c[u]+\".x\"),r(\"camera.\"+c[u]+\".y\"),r(\"camera.\"+c[u]+\".z\");var f=!!r(\"aspectratio.x\")&&!!r(\"aspectratio.y\")&&!!r(\"aspectratio.z\"),h=r(\"aspectmode\",f?\"manual\":\"auto\");f||(t.aspectratio=e.aspectratio={x:1,y:1,z:1},\"manual\"===h&&(e.aspectmode=\"auto\"),t.aspectmode=e.aspectmode),s(t,e,{font:n.font,scene:n.id,data:n.fullData,bgColor:l,calendar:n.calendar,fullLayout:n.fullLayout}),a.getComponentMethod(\"annotations3d\",\"handleDefaults\")(t,e,n),r(\"dragmode\",n.getDfltFromLayout(\"dragmode\")),r(\"hovermode\",n.getDfltFromLayout(\"hovermode\"))}e.exports=function(t,e,r){var i=e._basePlotModules.length>1;o(t,e,r,{type:\"gl3d\",attributes:l,handleDefaults:c,fullLayout:e,font:e.font,fullData:r,getDfltFromLayout:function(e){if(!i)return n.validate(t[e],l[e])?t[e]:void 0},paper_bgcolor:e.paper_bgcolor,calendar:e.calendar})}},{\"../../../components/color\":570,\"../../../lib\":696,\"../../../registry\":827,\"../../subplot_defaults\":822,\"./axis_defaults\":790,\"./layout_attributes\":793}],793:[function(t,e,r){\"use strict\";var n=t(\"./axis_attributes\"),i=t(\"../../domain\").attributes,a=t(\"../../../lib/extend\").extendFlat,o=t(\"../../../lib\").counterRegex;function s(t,e,r){return{x:{valType:\"number\",dflt:t,editType:\"camera\"},y:{valType:\"number\",dflt:e,editType:\"camera\"},z:{valType:\"number\",dflt:r,editType:\"camera\"},editType:\"camera\"}}e.exports={_arrayAttrRegexps:[o(\"scene\",\".annotations\",!0)],bgcolor:{valType:\"color\",dflt:\"rgba(0,0,0,0)\",editType:\"plot\"},camera:{up:a(s(0,0,1),{}),center:a(s(0,0,0),{}),eye:a(s(1.25,1.25,1.25),{}),editType:\"camera\"},domain:i({name:\"scene\",editType:\"plot\"}),aspectmode:{valType:\"enumerated\",values:[\"auto\",\"cube\",\"data\",\"manual\"],dflt:\"auto\",editType:\"plot\",impliedEdits:{\"aspectratio.x\":void 0,\"aspectratio.y\":void 0,\"aspectratio.z\":void 0}},aspectratio:{x:{valType:\"number\",min:0,editType:\"plot\",impliedEdits:{\"^aspectmode\":\"manual\"}},y:{valType:\"number\",min:0,editType:\"plot\",impliedEdits:{\"^aspectmode\":\"manual\"}},z:{valType:\"number\",min:0,editType:\"plot\",impliedEdits:{\"^aspectmode\":\"manual\"}},editType:\"plot\",impliedEdits:{aspectmode:\"manual\"}},xaxis:n,yaxis:n,zaxis:n,dragmode:{valType:\"enumerated\",values:[\"orbit\",\"turntable\",\"zoom\",\"pan\",!1],dflt:\"turntable\",editType:\"plot\"},hovermode:{valType:\"enumerated\",values:[\"closest\",!1],dflt:\"closest\",editType:\"modebar\"},editType:\"plot\",_deprecated:{cameraposition:{valType:\"info_array\",editType:\"camera\"}}}},{\"../../../lib\":696,\"../../../lib/extend\":685,\"../../domain\":770,\"./axis_attributes\":789}],794:[function(t,e,r){\"use strict\";var n=t(\"../../../lib/str2rgbarray\"),i=[\"xaxis\",\"yaxis\",\"zaxis\"];function a(){this.enabled=[!0,!0,!0],this.colors=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.drawSides=[!0,!0,!0],this.lineWidth=[1,1,1]}a.prototype.merge=function(t){for(var e=0;e<3;++e){var r=t[i[e]];r.visible?(this.enabled[e]=r.showspikes,this.colors[e]=n(r.spikecolor),this.drawSides[e]=r.spikesides,this.lineWidth[e]=r.spikethickness):(this.enabled[e]=!1,this.drawSides[e]=!1)}},e.exports=function(t){var e=new a;return e.merge(t),e}},{\"../../../lib/str2rgbarray\":719}],795:[function(t,e,r){\"use strict\";e.exports=function(t){for(var e=t.axesOptions,r=t.glplot.axesPixels,l=t.fullSceneLayout,c=[[],[],[]],u=0;u<3;++u){var f=l[o[u]];if(f._length=(r[u].hi-r[u].lo)*r[u].pixelsPerDataUnit/t.dataScale[u],Math.abs(f._length)===1/0)c[u]=[];else{f._input_range=f.range.slice(),f.range[0]=r[u].lo/t.dataScale[u],f.range[1]=r[u].hi/t.dataScale[u],f._m=1/(t.dataScale[u]*r[u].pixelsPerDataUnit),f.range[0]===f.range[1]&&(f.range[0]-=1,f.range[1]+=1);var h=f.tickmode;if(\"auto\"===f.tickmode){f.tickmode=\"linear\";var p=f.nticks||i.constrain(f._length/40,4,9);n.autoTicks(f,Math.abs(f.range[1]-f.range[0])/p)}for(var d=n.calcTicks(f),g=0;g<d.length;++g)d[g].x=d[g].x*t.dataScale[u],d[g].text=a(d[g].text);c[u]=d,f.tickmode=h}}e.ticks=c;for(var u=0;u<3;++u){s[u]=.5*(t.glplot.bounds[0][u]+t.glplot.bounds[1][u]);for(var g=0;g<2;++g)e.bounds[g][u]=t.glplot.bounds[g][u]}t.contourLevels=function(t){for(var e=new Array(3),r=0;r<3;++r){for(var n=t[r],i=new Array(n.length),a=0;a<n.length;++a)i[a]=n[a].x;e[r]=i}return e}(c)};var n=t(\"../../cartesian/axes\"),i=t(\"../../../lib\"),a=t(\"../../../lib/html2unicode\"),o=[\"xaxis\",\"yaxis\",\"zaxis\"],s=[0,0,0]},{\"../../../lib\":696,\"../../../lib/html2unicode\":694,\"../../cartesian/axes\":744}],796:[function(t,e,r){\"use strict\";function n(t,e){var r,n,i=[0,0,0,0];for(r=0;r<4;++r)for(n=0;n<4;++n)i[n]+=t[4*r+n]*e[r];return i}e.exports=function(t,e){return n(t.projection,n(t.view,n(t.model,[e[0],e[1],e[2],1])))}},{}],797:[function(t,e,r){\"use strict\";var n,i,a=t(\"gl-plot3d\"),o=t(\"webgl-context\"),s=t(\"has-passive-events\"),l=t(\"../../registry\"),c=t(\"../../lib\"),u=t(\"../../plots/cartesian/axes\"),f=t(\"../../components/fx\"),h=t(\"../../lib/str2rgbarray\"),p=t(\"../../lib/show_no_webgl_msg\"),d=t(\"./camera\"),g=t(\"./project\"),v=t(\"./layout/convert\"),m=t(\"./layout/spikes\"),y=t(\"./layout/tick_marks\");function x(t,e,r,l){var c=t.graphDiv,h={canvas:r,gl:l,container:t.container,axes:t.axesOptions,spikes:t.spikeOptions,pickRadius:10,snapToData:!0,autoScale:!0,autoBounds:!1};if(t.staticMode){if(!(i||(n=document.createElement(\"canvas\"),i=o({canvas:n,preserveDrawingBuffer:!0,premultipliedAlpha:!0,antialias:!0}))))throw new Error(\"error creating static canvas/context for image server\");h.pixelRatio=t.pixelRatio,h.gl=i,h.canvas=n}try{t.glplot=a(h)}catch(e){return p(t)}var v=function(t){if(!1!==t.fullSceneLayout.dragmode){var e={};e[t.id+\".camera\"]=M(t.camera),t.saveCamera(c.layout),t.graphDiv.emit(\"plotly_relayout\",e)}};if(t.glplot.canvas.addEventListener(\"mouseup\",v.bind(null,t)),t.glplot.canvas.addEventListener(\"wheel\",v.bind(null,t),!!s&&{passive:!1}),t.staticMode||t.glplot.canvas.addEventListener(\"webglcontextlost\",function(e){c&&c.emit&&c.emit(\"plotly_webglcontextlost\",{event:e,layer:t.id})},!1),!t.camera){var m=t.fullSceneLayout.camera;t.camera=d(t.container,{center:[m.center.x,m.center.y,m.center.z],eye:[m.eye.x,m.eye.y,m.eye.z],up:[m.up.x,m.up.y,m.up.z],zoomMin:.1,zoomMax:100,mode:\"orbit\"})}return t.glplot.camera=t.camera,t.glplot.oncontextloss=function(){t.recoverContext()},t.glplot.onrender=function(t){var e,r=t.svgContainer,n=t.container.getBoundingClientRect(),i=n.width,a=n.height;r.setAttributeNS(null,\"viewBox\",\"0 0 \"+i+\" \"+a),r.setAttributeNS(null,\"width\",i),r.setAttributeNS(null,\"height\",a),y(t),t.glplot.axes.update(t.axesOptions);for(var o,s=Object.keys(t.traces),l=null,c=t.glplot.selection,h=0;h<s.length;++h)\"skip\"!==(e=t.traces[s[h]]).data.hoverinfo&&e.handlePick(c)&&(l=e),e.setContourLevels&&e.setContourLevels();function p(e,r){var n=t.fullSceneLayout[e];return u.tickText(n,n.d2l(r),\"hover\").text}if(null!==l){var d=g(t.glplot.cameraParams,c.dataCoordinate);e=l.data;var v,m=c.index,x=f.castHoverinfo(e,t.fullLayout,m),b=x.split(\"+\"),_=\"all\"===x,w=p(\"xaxis\",c.traceCoordinate[0]),k=p(\"yaxis\",c.traceCoordinate[1]),M=p(\"zaxis\",c.traceCoordinate[2]);if(_||(-1===b.indexOf(\"x\")&&(w=void 0),-1===b.indexOf(\"y\")&&(k=void 0),-1===b.indexOf(\"z\")&&(M=void 0),-1===b.indexOf(\"text\")&&(c.textLabel=void 0),-1===b.indexOf(\"name\")&&(l.name=void 0)),\"cone\"===e.type||\"streamtube\"===e.type){var A=[];(_||-1!==b.indexOf(\"u\"))&&A.push(\"u: \"+p(\"xaxis\",c.traceCoordinate[3])),(_||-1!==b.indexOf(\"v\"))&&A.push(\"v: \"+p(\"yaxis\",c.traceCoordinate[4])),(_||-1!==b.indexOf(\"w\"))&&A.push(\"w: \"+p(\"zaxis\",c.traceCoordinate[5])),(_||-1!==b.indexOf(\"norm\"))&&A.push(\"norm: \"+c.traceCoordinate[6].toPrecision(3)),\"streamtube\"!==e.type||!_&&-1===b.indexOf(\"divergence\")||A.push(\"divergence: \"+c.traceCoordinate[7].toPrecision(3)),c.textLabel&&A.push(c.textLabel),v=A.join(\"<br>\")}else v=c.textLabel;t.fullSceneLayout.hovermode&&f.loneHover({x:(.5+.5*d[0]/d[3])*i,y:(.5-.5*d[1]/d[3])*a,xLabel:w,yLabel:k,zLabel:M,text:v,name:l.name,color:f.castHoverOption(e,m,\"bgcolor\")||l.color,borderColor:f.castHoverOption(e,m,\"bordercolor\"),fontFamily:f.castHoverOption(e,m,\"font.family\"),fontSize:f.castHoverOption(e,m,\"font.size\"),fontColor:f.castHoverOption(e,m,\"font.color\")},{container:r,gd:t.graphDiv});var T={x:c.traceCoordinate[0],y:c.traceCoordinate[1],z:c.traceCoordinate[2],data:e._input,fullData:e,curveNumber:e.index,pointNumber:m};e._module.eventData&&(T=e._module.eventData(T,c,e,{},m)),f.appendArrayPointValue(T,e,m);var S={points:[T]};c.buttons&&c.distance<5?t.graphDiv.emit(\"plotly_click\",S):t.graphDiv.emit(\"plotly_hover\",S),o=S}else f.loneUnhover(r),t.graphDiv.emit(\"plotly_unhover\",o);t.drawAnnotations(t)}.bind(null,t),t.traces={},!0}function b(t,e){var r=document.createElement(\"div\"),n=t.container;this.graphDiv=t.graphDiv;var i=document.createElementNS(\"http://www.w3.org/2000/svg\",\"svg\");i.style.position=\"absolute\",i.style.top=i.style.left=\"0px\",i.style.width=i.style.height=\"100%\",i.style[\"z-index\"]=20,i.style[\"pointer-events\"]=\"none\",r.appendChild(i),this.svgContainer=i,r.id=t.id,r.style.position=\"absolute\",r.style.top=r.style.left=\"0px\",r.style.width=r.style.height=\"100%\",n.appendChild(r),this.fullLayout=e,this.id=t.id||\"scene\",this.fullSceneLayout=e[this.id],this.plotArgs=[[],{},{}],this.axesOptions=v(e[this.id]),this.spikeOptions=m(e[this.id]),this.container=r,this.staticMode=!!t.staticPlot,this.pixelRatio=t.plotGlPixelRatio||2,this.dataScale=[1,1,1],this.contourLevels=[[],[],[]],this.convertAnnotations=l.getComponentMethod(\"annotations3d\",\"convert\"),this.drawAnnotations=l.getComponentMethod(\"annotations3d\",\"draw\"),x(this)}var _=b.prototype;_.recoverContext=function(){var t=this,e=this.glplot.gl,r=this.glplot.canvas;this.glplot.dispose(),requestAnimationFrame(function n(){e.isContextLost()?requestAnimationFrame(n):x(t,t.fullLayout,r,e)?t.plot.apply(t,t.plotArgs):c.error(\"Catastrophic and unrecoverable WebGL error. Context lost.\")})};var w=[\"xaxis\",\"yaxis\",\"zaxis\"];function k(t,e,r){for(var n=t.fullSceneLayout,i=0;i<3;i++){var a=w[i],o=a.charAt(0),s=n[a],l=e[o],u=e[o+\"calendar\"],f=e[\"_\"+o+\"length\"];if(c.isArrayOrTypedArray(l))for(var h,p=0;p<(f||l.length);p++)if(c.isArrayOrTypedArray(l[p]))for(var d=0;d<l[p].length;++d)h=s.d2l(l[p][d],0,u),!isNaN(h)&&isFinite(h)&&(r[0][i]=Math.min(r[0][i],h),r[1][i]=Math.max(r[1][i],h));else h=s.d2l(l[p],0,u),!isNaN(h)&&isFinite(h)&&(r[0][i]=Math.min(r[0][i],h),r[1][i]=Math.max(r[1][i],h));else r[0][i]=Math.min(r[0][i],0),r[1][i]=Math.max(r[1][i],f-1)}}function M(t){return{up:{x:t.up[0],y:t.up[1],z:t.up[2]},center:{x:t.center[0],y:t.center[1],z:t.center[2]},eye:{x:t.eye[0],y:t.eye[1],z:t.eye[2]}}}_.plot=function(t,e,r){if(this.plotArgs=[t,e,r],!this.glplot.contextLost){var n,i,a,o,s,l,c=e[this.id],u=r[this.id];c.bgcolor?this.glplot.clearColor=h(c.bgcolor):this.glplot.clearColor=[0,0,0,0],this.glplot.snapToData=!0,this.fullLayout=e,this.fullSceneLayout=c,this.glplotLayout=c,this.axesOptions.merge(c),this.spikeOptions.merge(c),this.setCamera(c.camera),this.updateFx(c.dragmode,c.hovermode),this.glplot.update({}),this.setConvert(s),t?Array.isArray(t)||(t=[t]):t=[];var f=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]];for(a=0;a<t.length;++a)!0===(n=t[a]).visible&&k(this,n,f);var p=[1,1,1];for(o=0;o<3;++o)f[1][o]===f[0][o]?p[o]=1:p[o]=1/(f[1][o]-f[0][o]);for(this.dataScale=p,this.convertAnnotations(this),a=0;a<t.length;++a)!0===(n=t[a]).visible&&((i=this.traces[n.uid])?i.data.type===n.type?i.update(n):(i.dispose(),i=n._module.plot(this,n),this.traces[n.uid]=i):(i=n._module.plot(this,n),this.traces[n.uid]=i),i.name=n.name);var d=Object.keys(this.traces);t:for(a=0;a<d.length;++a){for(o=0;o<t.length;++o)if(t[o].uid===d[a]&&!0===t[o].visible)continue t;(i=this.traces[d[a]]).dispose(),delete this.traces[d[a]]}this.glplot.objects.sort(function(t,e){return t._trace.data.index-e._trace.data.index});var g=[[0,0,0],[0,0,0]],v=[],m={};for(a=0;a<3;++a){if((l=(s=c[w[a]]).type)in m?(m[l].acc*=p[a],m[l].count+=1):m[l]={acc:p[a],count:1},s.autorange){g[0][a]=1/0,g[1][a]=-1/0;var y=this.glplot.objects,x=this.fullSceneLayout.annotations||[],b=s._name.charAt(0);for(o=0;o<y.length;o++){var _=y[o],M=_.bounds,A=_._trace.data._pad||0;\"ErrorBars\"===_.constructor.name&&s._lowerLogErrorBound?g[0][a]=Math.min(g[0][a],s._lowerLogErrorBound):g[0][a]=Math.min(g[0][a],M[0][a]/p[a]-A),g[1][a]=Math.max(g[1][a],M[1][a]/p[a]+A)}for(o=0;o<x.length;o++){var T=x[o];if(T.visible){var S=s.r2l(T[b]);g[0][a]=Math.min(g[0][a],S),g[1][a]=Math.max(g[1][a],S)}}if(\"rangemode\"in s&&\"tozero\"===s.rangemode&&(g[0][a]=Math.min(g[0][a],0),g[1][a]=Math.max(g[1][a],0)),g[0][a]>g[1][a])g[0][a]=-1,g[1][a]=1;else{var E=g[1][a]-g[0][a];g[0][a]-=E/32,g[1][a]+=E/32}if(\"reversed\"===s.autorange){var C=g[0][a];g[0][a]=g[1][a],g[1][a]=C}}else{var L=s.range;g[0][a]=s.r2l(L[0]),g[1][a]=s.r2l(L[1])}g[0][a]===g[1][a]&&(g[0][a]-=1,g[1][a]+=1),v[a]=g[1][a]-g[0][a],this.glplot.bounds[0][a]=g[0][a]*p[a],this.glplot.bounds[1][a]=g[1][a]*p[a]}var z=[1,1,1];for(a=0;a<3;++a){var O=m[l=(s=c[w[a]]).type];z[a]=Math.pow(O.acc,1/O.count)/p[a]}var I;if(\"auto\"===c.aspectmode)I=Math.max.apply(null,z)/Math.min.apply(null,z)<=4?z:[1,1,1];else if(\"cube\"===c.aspectmode)I=[1,1,1];else if(\"data\"===c.aspectmode)I=z;else{if(\"manual\"!==c.aspectmode)throw new Error(\"scene.js aspectRatio was not one of the enumerated types\");var P=c.aspectratio;I=[P.x,P.y,P.z]}c.aspectratio.x=u.aspectratio.x=I[0],c.aspectratio.y=u.aspectratio.y=I[1],c.aspectratio.z=u.aspectratio.z=I[2],this.glplot.aspect=I;var D=c.domain||null,R=e._size||null;if(D&&R){var B=this.container.style;B.position=\"absolute\",B.left=R.l+D.x[0]*R.w+\"px\",B.top=R.t+(1-D.y[1])*R.h+\"px\",B.width=R.w*(D.x[1]-D.x[0])+\"px\",B.height=R.h*(D.y[1]-D.y[0])+\"px\"}this.glplot.redraw()}},_.destroy=function(){this.glplot&&(this.camera.mouseListener.enabled=!1,this.container.removeEventListener(\"wheel\",this.camera.wheelListener),this.camera=this.glplot.camera=null,this.glplot.dispose(),this.container.parentNode.removeChild(this.container),this.glplot=null)},_.getCamera=function(){return this.glplot.camera.view.recalcMatrix(this.camera.view.lastT()),M(this.glplot.camera)},_.setCamera=function(t){var e;this.glplot.camera.lookAt.apply(this,[[(e=t).eye.x,e.eye.y,e.eye.z],[e.center.x,e.center.y,e.center.z],[e.up.x,e.up.y,e.up.z]])},_.saveCamera=function(t){var e=this.getCamera(),r=c.nestedProperty(t,this.id+\".camera\"),n=r.get(),i=!1;function a(t,e,r,n){var i=[\"up\",\"center\",\"eye\"],a=[\"x\",\"y\",\"z\"];return e[i[r]]&&t[i[r]][a[n]]===e[i[r]][a[n]]}if(void 0===n)i=!0;else for(var o=0;o<3;o++)for(var s=0;s<3;s++)if(!a(e,n,o,s)){i=!0;break}return i&&r.set(e),i},_.updateFx=function(t,e){var r=this.camera;r&&(\"orbit\"===t?(r.mode=\"orbit\",r.keyBindingMode=\"rotate\"):\"turntable\"===t?(r.up=[0,0,1],r.mode=\"turntable\",r.keyBindingMode=\"rotate\"):r.keyBindingMode=t),this.fullSceneLayout.hovermode=e},_.toImage=function(t){t||(t=\"png\"),this.staticMode&&this.container.appendChild(n),this.glplot.redraw();var e=this.glplot.gl,r=e.drawingBufferWidth,i=e.drawingBufferHeight;e.bindFramebuffer(e.FRAMEBUFFER,null);var a=new Uint8Array(r*i*4);e.readPixels(0,0,r,i,e.RGBA,e.UNSIGNED_BYTE,a);for(var o=0,s=i-1;o<s;++o,--s)for(var l=0;l<r;++l)for(var c=0;c<4;++c){var u=a[4*(r*o+l)+c];a[4*(r*o+l)+c]=a[4*(r*s+l)+c],a[4*(r*s+l)+c]=u}var f=document.createElement(\"canvas\");f.width=r,f.height=i;var h,p=f.getContext(\"2d\"),d=p.createImageData(r,i);switch(d.data.set(a),p.putImageData(d,0,0),t){case\"jpeg\":h=f.toDataURL(\"image/jpeg\");break;case\"webp\":h=f.toDataURL(\"image/webp\");break;default:h=f.toDataURL(\"image/png\")}return this.staticMode&&this.container.removeChild(n),h},_.setConvert=function(){for(var t=0;t<3;t++){var e=this.fullSceneLayout[w[t]];u.setConvert(e,this.fullLayout),e.setScale=c.noop}},e.exports=b},{\"../../components/fx\":612,\"../../lib\":696,\"../../lib/show_no_webgl_msg\":717,\"../../lib/str2rgbarray\":719,\"../../plots/cartesian/axes\":744,\"../../registry\":827,\"./camera\":786,\"./layout/convert\":791,\"./layout/spikes\":794,\"./layout/tick_marks\":795,\"./project\":796,\"gl-plot3d\":277,\"has-passive-events\":394,\"webgl-context\":533}],798:[function(t,e,r){\"use strict\";e.exports=function(t,e,r,n){n=n||t.length;for(var i=new Array(n),a=0;a<n;a++)i[a]=[t[a],e[a],r[a]];return i}},{}],799:[function(t,e,r){\"use strict\";var n=t(\"./font_attributes\"),i=t(\"../components/color/attributes\"),a=n({editType:\"calc\"});a.family.dflt='\"Open Sans\", verdana, arial, sans-serif',a.size.dflt=12,a.color.dflt=i.defaultLine,e.exports={font:a,title:{valType:\"string\",editType:\"layoutstyle\"},titlefont:n({editType:\"layoutstyle\"}),autosize:{valType:\"boolean\",dflt:!1,editType:\"none\"},width:{valType:\"number\",min:10,dflt:700,editType:\"plot\"},height:{valType:\"number\",min:10,dflt:450,editType:\"plot\"},margin:{l:{valType:\"number\",min:0,dflt:80,editType:\"plot\"},r:{valType:\"number\",min:0,dflt:80,editType:\"plot\"},t:{valType:\"number\",min:0,dflt:100,editType:\"plot\"},b:{valType:\"number\",min:0,dflt:80,editType:\"plot\"},pad:{valType:\"number\",min:0,dflt:0,editType:\"plot\"},autoexpand:{valType:\"boolean\",dflt:!0,editType:\"plot\"},editType:\"plot\"},paper_bgcolor:{valType:\"color\",dflt:i.background,editType:\"plot\"},plot_bgcolor:{valType:\"color\",dflt:i.background,editType:\"layoutstyle\"},separators:{valType:\"string\",editType:\"plot\"},hidesources:{valType:\"boolean\",dflt:!1,editType:\"plot\"},showlegend:{valType:\"boolean\",editType:\"legend\"},colorway:{valType:\"colorlist\",dflt:i.defaults,editType:\"calc\"},datarevision:{valType:\"any\",editType:\"calc\"},template:{valType:\"any\",editType:\"calc\"},modebar:{orientation:{valType:\"enumerated\",values:[\"v\",\"h\"],dflt:\"h\",editType:\"modebar\"},bgcolor:{valType:\"color\",editType:\"modebar\"},color:{valType:\"color\",editType:\"modebar\"},activecolor:{valType:\"color\",editType:\"modebar\"},editType:\"modebar\"}}},{\"../components/color/attributes\":569,\"./font_attributes\":771}],800:[function(t,e,r){\"use strict\";e.exports={requiredVersion:\"0.45.0\",styleUrlPrefix:\"mapbox://styles/mapbox/\",styleUrlSuffix:\"v9\",controlContainerClassName:\"mapboxgl-control-container\",wrongVersionErrorMsg:[\"Your custom plotly.js bundle is not using the correct mapbox-gl version\",\"Please install mapbox-gl@0.45.0.\"].join(\"\\n\"),noAccessTokenErrorMsg:[\"Missing Mapbox access token.\",\"Mapbox trace type require a Mapbox access token to be registered.\",\"For example:\",\" Plotly.plot(gd, data, layout, { mapboxAccessToken: 'my-access-token' });\",\"More info here: https://www.mapbox.com/help/define-access-token/\"].join(\"\\n\"),mapOnErrorMsg:\"Mapbox error.\",styleRules:{map:\"overflow:hidden;position:relative;\",\"missing-css\":\"display:none\"}}},{}],801:[function(t,e,r){\"use strict\";var n=t(\"../../lib\");e.exports=function(t,e){var r=t.split(\" \"),i=r[0],a=r[1],o=n.isArrayOrTypedArray(e)?n.mean(e):e,s=.5+o/100,l=1.5+o/100,c=[\"\",\"\"],u=[0,0];switch(i){case\"top\":c[0]=\"top\",u[1]=-l;break;case\"bottom\":c[0]=\"bottom\",u[1]=l}switch(a){case\"left\":c[1]=\"right\",u[0]=-s;break;case\"right\":c[1]=\"left\",u[0]=s}return{anchor:c[0]&&c[1]?c.join(\"-\"):c[0]?c[0]:c[1]?c[1]:\"center\",offset:u}}},{\"../../lib\":696}],802:[function(t,e,r){\"use strict\";var n=t(\"mapbox-gl\"),i=t(\"../../lib\"),a=t(\"../../plots/get_data\").getSubplotCalcData,o=t(\"../../constants/xmlns_namespaces\"),s=t(\"./mapbox\"),l=t(\"./constants\");for(var c in l.styleRules)i.addStyleRule(\".mapboxgl-\"+c,l.styleRules[c]);r.name=\"mapbox\",r.attr=\"subplot\",r.idRoot=\"mapbox\",r.idRegex=r.attrRegex=i.counterRegex(\"mapbox\"),r.attributes={subplot:{valType:\"subplotid\",dflt:\"mapbox\",editType:\"calc\"}},r.layoutAttributes=t(\"./layout_attributes\"),r.supplyLayoutDefaults=t(\"./layout_defaults\"),r.plot=function(t){var e=t._fullLayout,r=t.calcdata,o=e._subplots.mapbox;if(n.version!==l.requiredVersion)throw new Error(l.wrongVersionErrorMsg);var c=function(t,e){var r=t._fullLayout;if(\"\"===t._context.mapboxAccessToken)return\"\";for(var n=0;n<e.length;n++){var i=r[e[n]];if(i.accesstoken)return i.accesstoken}throw new Error(l.noAccessTokenErrorMsg)}(t,o);n.accessToken=c;for(var u=0;u<o.length;u++){var f=o[u],h=a(r,\"mapbox\",f),p=e[f],d=p._subplot;d||(d=s({gd:t,container:e._glcontainer.node(),id:f,fullLayout:e,staticPlot:t._context.staticPlot}),e[f]._subplot=d),d.viewInitial||(d.viewInitial={center:i.extendFlat({},p.center),zoom:p.zoom,bearing:p.bearing,pitch:p.pitch}),d.plot(h,e,t._promises)}},r.clean=function(t,e,r,n){for(var i=n._subplots.mapbox||[],a=0;a<i.length;a++){var o=i[a];!e[o]&&n[o]._subplot&&n[o]._subplot.destroy()}},r.toSVG=function(t){for(var e=t._fullLayout,r=e._subplots.mapbox,n=e._size,i=0;i<r.length;i++){var a=e[r[i]],s=a.domain,l=a._subplot,c=l.toImage(\"png\");e._glimages.append(\"svg:image\").attr({xmlns:o.svg,\"xlink:href\":c,x:n.l+n.w*s.x[0],y:n.t+n.h*(1-s.y[1]),width:n.w*(s.x[1]-s.x[0]),height:n.h*(s.y[1]-s.y[0]),preserveAspectRatio:\"none\"}),l.destroy()}},r.updateFx=function(t){for(var e=t._fullLayout,r=e._subplots.mapbox,n=0;n<r.length;n++){e[r[n]]._subplot.updateFx(e)}}},{\"../../constants/xmlns_namespaces\":674,\"../../lib\":696,\"../../plots/get_data\":781,\"./constants\":800,\"./layout_attributes\":804,\"./layout_defaults\":805,\"./mapbox\":806,\"mapbox-gl\":409}],803:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"./convert_text_opts\");function a(t,e){this.mapbox=t,this.map=t.map,this.uid=t.uid+\"-layer\"+e,this.idSource=this.uid+\"-source\",this.idLayer=this.uid+\"-layer\",this.sourceType=null,this.source=null,this.layerType=null,this.below=null,this.visible=!1}var o=a.prototype;function s(t){var e=t.source;return t.visible&&(n.isPlainObject(e)||\"string\"==typeof e&&e.length>0)}function l(t){var e={},r={};switch(t.type){case\"circle\":n.extendFlat(r,{\"circle-radius\":t.circle.radius,\"circle-color\":t.color,\"circle-opacity\":t.opacity});break;case\"line\":n.extendFlat(r,{\"line-width\":t.line.width,\"line-color\":t.color,\"line-opacity\":t.opacity});break;case\"fill\":n.extendFlat(r,{\"fill-color\":t.color,\"fill-outline-color\":t.fill.outlinecolor,\"fill-opacity\":t.opacity});break;case\"symbol\":var a=t.symbol,o=i(a.textposition,a.iconsize);n.extendFlat(e,{\"icon-image\":a.icon+\"-15\",\"icon-size\":a.iconsize/10,\"text-field\":a.text,\"text-size\":a.textfont.size,\"text-anchor\":o.anchor,\"text-offset\":o.offset}),n.extendFlat(r,{\"icon-color\":t.color,\"text-color\":a.textfont.color,\"text-opacity\":t.opacity})}return{layout:e,paint:r}}o.update=function(t){this.visible?this.needsNewSource(t)?(this.removeLayer(),this.updateSource(t),this.updateLayer(t)):this.needsNewLayer(t)?this.updateLayer(t):this.updateStyle(t):(this.updateSource(t),this.updateLayer(t)),this.visible=s(t)},o.needsNewSource=function(t){return this.sourceType!==t.sourcetype||this.source!==t.source||this.layerType!==t.type},o.needsNewLayer=function(t){return this.layerType!==t.type||this.below!==t.below},o.updateSource=function(t){var e=this.map;if(e.getSource(this.idSource)&&e.removeSource(this.idSource),this.sourceType=t.sourcetype,this.source=t.source,s(t)){var r=function(t){var e,r=t.sourcetype,n=t.source,i={type:r};\"geojson\"===r?e=\"data\":\"vector\"===r&&(e=\"string\"==typeof n?\"url\":\"tiles\");return i[e]=n,i}(t);e.addSource(this.idSource,r)}},o.updateLayer=function(t){var e=this.map,r=l(t);this.removeLayer(),this.layerType=t.type,s(t)&&e.addLayer({id:this.idLayer,source:this.idSource,\"source-layer\":t.sourcelayer||\"\",type:t.type,layout:r.layout,paint:r.paint},t.below)},o.updateStyle=function(t){if(s(t)){var e=l(t);this.mapbox.setOptions(this.idLayer,\"setLayoutProperty\",e.layout),this.mapbox.setOptions(this.idLayer,\"setPaintProperty\",e.paint)}},o.removeLayer=function(){var t=this.map;t.getLayer(this.idLayer)&&t.removeLayer(this.idLayer)},o.dispose=function(){var t=this.map;t.removeLayer(this.idLayer),t.removeSource(this.idSource)},e.exports=function(t,e,r){var n=new a(t,e);return n.update(r),n}},{\"../../lib\":696,\"./convert_text_opts\":801}],804:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../components/color\").defaultLine,a=t(\"../domain\").attributes,o=t(\"../font_attributes\"),s=t(\"../../traces/scatter/attributes\").textposition,l=t(\"../../plot_api/edit_types\").overrideAll,c=t(\"../../plot_api/plot_template\").templatedArray,u=o({});u.family.dflt=\"Open Sans Regular, Arial Unicode MS Regular\",e.exports=l({_arrayAttrRegexps:[n.counterRegex(\"mapbox\",\".layers\",!0)],domain:a({name:\"mapbox\"}),accesstoken:{valType:\"string\",noBlank:!0,strict:!0},style:{valType:\"any\",values:[\"basic\",\"streets\",\"outdoors\",\"light\",\"dark\",\"satellite\",\"satellite-streets\"],dflt:\"basic\"},center:{lon:{valType:\"number\",dflt:0},lat:{valType:\"number\",dflt:0}},zoom:{valType:\"number\",dflt:1},bearing:{valType:\"number\",dflt:0},pitch:{valType:\"number\",dflt:0},layers:c(\"layer\",{visible:{valType:\"boolean\",dflt:!0},sourcetype:{valType:\"enumerated\",values:[\"geojson\",\"vector\"],dflt:\"geojson\"},source:{valType:\"any\"},sourcelayer:{valType:\"string\",dflt:\"\"},type:{valType:\"enumerated\",values:[\"circle\",\"line\",\"fill\",\"symbol\"],dflt:\"circle\"},below:{valType:\"string\",dflt:\"\"},color:{valType:\"color\",dflt:i},opacity:{valType:\"number\",min:0,max:1,dflt:1},circle:{radius:{valType:\"number\",dflt:15}},line:{width:{valType:\"number\",dflt:2}},fill:{outlinecolor:{valType:\"color\",dflt:i}},symbol:{icon:{valType:\"string\",dflt:\"marker\"},iconsize:{valType:\"number\",dflt:10},text:{valType:\"string\",dflt:\"\"},textfont:u,textposition:n.extendFlat({},s,{arrayOk:!1})}})},\"plot\",\"from-root\")},{\"../../components/color\":570,\"../../lib\":696,\"../../plot_api/edit_types\":727,\"../../plot_api/plot_template\":734,\"../../traces/scatter/attributes\":1043,\"../domain\":770,\"../font_attributes\":771}],805:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../subplot_defaults\"),a=t(\"../array_container_defaults\"),o=t(\"./layout_attributes\");function s(t,e,r,n){r(\"accesstoken\",n.accessToken),r(\"style\"),r(\"center.lon\"),r(\"center.lat\"),r(\"zoom\"),r(\"bearing\"),r(\"pitch\"),a(t,e,{name:\"layers\",handleItemDefaults:l}),e._input=t}function l(t,e){function r(r,i){return n.coerce(t,e,o.layers,r,i)}if(r(\"visible\")){var i=r(\"sourcetype\");r(\"source\"),\"vector\"===i&&r(\"sourcelayer\");var a=r(\"type\");r(\"below\"),r(\"color\"),r(\"opacity\"),\"circle\"===a&&r(\"circle.radius\"),\"line\"===a&&r(\"line.width\"),\"fill\"===a&&r(\"fill.outlinecolor\"),\"symbol\"===a&&(r(\"symbol.icon\"),r(\"symbol.iconsize\"),r(\"symbol.text\"),n.coerceFont(r,\"symbol.textfont\"),r(\"symbol.textposition\"))}}e.exports=function(t,e,r){i(t,e,r,{type:\"mapbox\",attributes:o,handleDefaults:s,partition:\"y\",accessToken:e._mapboxAccessToken})}},{\"../../lib\":696,\"../array_container_defaults\":740,\"../subplot_defaults\":822,\"./layout_attributes\":804}],806:[function(t,e,r){\"use strict\";var n=t(\"mapbox-gl\"),i=t(\"../../components/fx\"),a=t(\"../../lib\"),o=t(\"../../components/dragelement\"),s=t(\"../cartesian/select\").prepSelect,l=t(\"../cartesian/select\").selectOnClick,c=t(\"./constants\"),u=t(\"./layout_attributes\"),f=t(\"./layers\");function h(t){this.id=t.id,this.gd=t.gd,this.container=t.container,this.isStatic=t.staticPlot;var e=t.fullLayout;this.uid=e._uid+\"-\"+this.id,this.opts=e[this.id],this.div=null,this.xaxis=null,this.yaxis=null,this.createFramework(e),this.map=null,this.accessToken=null,this.styleObj=null,this.traceHash={},this.layerList=[]}var p=h.prototype;function d(t){var e=u.style.values,r=u.style.dflt,n={};return a.isPlainObject(t)?(n.id=t.id,n.style=t):\"string\"==typeof t?(n.id=t,n.style=-1!==e.indexOf(t)?g(t):t):(n.id=r,n.style=g(r)),n.transition={duration:0,delay:0},n}function g(t){return c.styleUrlPrefix+t+\"-\"+c.styleUrlSuffix}function v(t){return[t.lon,t.lat]}e.exports=function(t){return new h(t)},p.plot=function(t,e,r){var n,i=this,a=i.opts=e[this.id];i.map&&a.accesstoken!==i.accessToken&&(i.map.remove(),i.map=null,i.styleObj=null,i.traceHash=[],i.layerList={}),n=i.map?new Promise(function(r,n){i.updateMap(t,e,r,n)}):new Promise(function(r,n){i.createMap(t,e,r,n)}),r.push(n)},p.createMap=function(t,e,r,a){var o=this,s=o.gd,u=o.opts,f=o.styleObj=d(u.style);o.accessToken=u.accesstoken;var h=o.map=new n.Map({container:o.div,style:f.style,center:v(u.center),zoom:u.zoom,bearing:u.bearing,pitch:u.pitch,interactive:!o.isStatic,preserveDrawingBuffer:o.isStatic,doubleClickZoom:!1,boxZoom:!1}),p=c.controlContainerClassName,g=o.div.getElementsByClassName(p)[0];if(o.div.removeChild(g),h._canvas.style.left=\"0px\",h._canvas.style.top=\"0px\",o.rejectOnError(a),h.once(\"load\",function(){o.updateData(t),o.updateLayout(e),o.resolveOnRender(r)}),!o.isStatic){var m=!1;h.on(\"moveend\",function(t){if(o.map){var e=o.getView();u._input.center=u.center=e.center,u._input.zoom=u.zoom=e.zoom,u._input.bearing=u.bearing=e.bearing,u._input.pitch=u.pitch=e.pitch,(t.originalEvent||m)&&x(e),m=!1}}),h.on(\"wheel\",function(){m=!0}),h.on(\"mousemove\",function(t){var e=o.div.getBoundingClientRect();t.clientX=t.point.x+e.left,t.clientY=t.point.y+e.top,t.target.getBoundingClientRect=function(){return e},o.xaxis.p2c=function(){return t.lngLat.lng},o.yaxis.p2c=function(){return t.lngLat.lat},i.hover(s,t,o.id)}),h.on(\"dragstart\",y),h.on(\"zoomstart\",y),h.on(\"dblclick\",function(){s.emit(\"plotly_doubleclick\",null);var t=o.viewInitial;h.setCenter(v(t.center)),h.setZoom(t.zoom),h.setBearing(t.bearing),h.setPitch(t.pitch);var e=o.getView();u._input.center=u.center=e.center,u._input.zoom=u.zoom=e.zoom,u._input.bearing=u.bearing=e.bearing,u._input.pitch=u.pitch=e.pitch,x(e)}),o.clearSelect=function(){s._fullLayout._zoomlayer.selectAll(\".select-outline\").remove()},o.onClickInPanFn=function(t){return function(e){var r=s._fullLayout.clickmode;r.indexOf(\"select\")>-1&&l(e.originalEvent,s,[o.xaxis],[o.yaxis],o.id,t),r.indexOf(\"event\")>-1&&i.click(s,e.originalEvent)}}}function y(){i.loneUnhover(e._toppaper)}function x(t){var e=o.id,r={};for(var n in t)r[e+\".\"+n]=t[n];s.emit(\"plotly_relayout\",r)}},p.updateMap=function(t,e,r,n){var i=this,a=i.map;i.rejectOnError(n);var o=d(i.opts.style);i.styleObj.id!==o.id?(i.styleObj=o,a.setStyle(o.style),a.once(\"styledata\",function(){i.traceHash={},i.updateData(t),i.updateLayout(e),i.resolveOnRender(r)})):(i.updateData(t),i.updateLayout(e),i.resolveOnRender(r))},p.updateData=function(t){var e,r,n,i,a=this.traceHash;for(n=0;n<t.length;n++){var o=t[n];(e=a[(r=o[0].trace).uid])?e.update(o):r._module&&(a[r.uid]=r._module.plot(this,o))}var s=Object.keys(a);t:for(n=0;n<s.length;n++){var l=s[n];for(i=0;i<t.length;i++)if(l===(r=t[i][0].trace).uid)continue t;(e=a[l]).dispose(),delete a[l]}},p.updateLayout=function(t){var e=this.map,r=this.opts;e.setCenter(v(r.center)),e.setZoom(r.zoom),e.setBearing(r.bearing),e.setPitch(r.pitch),this.updateLayers(),this.updateFramework(t),this.updateFx(t),this.map.resize()},p.resolveOnRender=function(t){var e=this.map;e.on(\"render\",function r(){e.loaded()&&(e.off(\"render\",r),setTimeout(t,0))})},p.rejectOnError=function(t){var e=this.map;function r(){t(new Error(c.mapOnErrorMsg))}e.once(\"error\",r),e.once(\"style.error\",r),e.once(\"source.error\",r),e.once(\"tile.error\",r),e.once(\"layer.error\",r)},p.createFramework=function(t){var e=this,r=e.div=document.createElement(\"div\");r.id=e.uid,r.style.position=\"absolute\",e.container.appendChild(r),e.xaxis={_id:\"x\",c2p:function(t){return e.project(t).x}},e.yaxis={_id:\"y\",c2p:function(t){return e.project(t).y}},e.updateFramework(t)},p.updateFx=function(t){var e=this,r=e.map,n=e.gd;if(!e.isStatic){var i,l=t.dragmode;i=\"select\"===l?function(t,r){(t.range={})[e.id]=[u([r.xmin,r.ymin]),u([r.xmax,r.ymax])]}:function(t,r,n){(t.lassoPoints={})[e.id]=n.filtered.map(u)};var c=e.dragOptions;e.dragOptions=a.extendDeep(c||{},{element:e.div,gd:n,plotinfo:{id:e.id,xaxis:e.xaxis,yaxis:e.yaxis,fillRangeItems:i},xaxes:[e.xaxis],yaxes:[e.yaxis],subplot:e.id}),r.off(\"click\",e.onClickInPanHandler),\"select\"===l||\"lasso\"===l?(r.dragPan.disable(),r.on(\"zoomstart\",e.clearSelect),e.dragOptions.prepFn=function(t,r,n){s(t,r,n,e.dragOptions,l)},o.init(e.dragOptions)):(r.dragPan.enable(),r.off(\"zoomstart\",e.clearSelect),e.div.onmousedown=null,e.onClickInPanHandler=e.onClickInPanFn(e.dragOptions),r.on(\"click\",e.onClickInPanHandler))}function u(t){var r=e.map.unproject(t);return[r.lng,r.lat]}},p.updateFramework=function(t){var e=t[this.id].domain,r=t._size,n=this.div.style;n.width=r.w*(e.x[1]-e.x[0])+\"px\",n.height=r.h*(e.y[1]-e.y[0])+\"px\",n.left=r.l+e.x[0]*r.w+\"px\",n.top=r.t+(1-e.y[1])*r.h+\"px\",this.xaxis._offset=r.l+e.x[0]*r.w,this.xaxis._length=r.w*(e.x[1]-e.x[0]),this.yaxis._offset=r.t+(1-e.y[1])*r.h,this.yaxis._length=r.h*(e.y[1]-e.y[0])},p.updateLayers=function(){var t,e=this.opts.layers,r=this.layerList;if(e.length!==r.length){for(t=0;t<r.length;t++)r[t].dispose();for(r=this.layerList=[],t=0;t<e.length;t++)r.push(f(this,t,e[t]))}else for(t=0;t<e.length;t++)r[t].update(e[t])},p.destroy=function(){this.map&&(this.map.remove(),this.map=null,this.container.removeChild(this.div))},p.toImage=function(){return this.map.stop(),this.map.getCanvas().toDataURL()},p.setOptions=function(t,e,r){for(var n in r)this.map[e](t,n,r[n])},p.project=function(t){return this.map.project(new n.LngLat(t[0],t[1]))},p.getView=function(){var t=this.map,e=t.getCenter();return{center:{lon:e.lng,lat:e.lat},zoom:t.getZoom(),bearing:t.getBearing(),pitch:t.getPitch()}}},{\"../../components/dragelement\":592,\"../../components/fx\":612,\"../../lib\":696,\"../cartesian/select\":762,\"./constants\":800,\"./layers\":803,\"./layout_attributes\":804,\"mapbox-gl\":409}],807:[function(t,e,r){\"use strict\";e.exports={t:{valType:\"number\",dflt:0,editType:\"arraydraw\"},r:{valType:\"number\",dflt:0,editType:\"arraydraw\"},b:{valType:\"number\",dflt:0,editType:\"arraydraw\"},l:{valType:\"number\",dflt:0,editType:\"arraydraw\"},editType:\"arraydraw\"}},{}],808:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"fast-isnumeric\"),a=t(\"../registry\"),o=t(\"../plot_api/plot_schema\"),s=t(\"../plot_api/plot_template\"),l=t(\"../lib\"),c=t(\"../components/color\"),u=t(\"../constants/numerical\").BADNUM,f=t(\"../plots/cartesian/axis_ids\"),h=t(\"./animation_attributes\"),p=t(\"./frame_attributes\"),d=l.relinkPrivateKeys,g=l._,v=e.exports={};l.extendFlat(v,a),v.attributes=t(\"./attributes\"),v.attributes.type.values=v.allTypes,v.fontAttrs=t(\"./font_attributes\"),v.layoutAttributes=t(\"./layout_attributes\"),v.fontWeight=\"normal\";var m=v.transformsRegistry,y=t(\"./command\");v.executeAPICommand=y.executeAPICommand,v.computeAPICommandBindings=y.computeAPICommandBindings,v.manageCommandObserver=y.manageCommandObserver,v.hasSimpleAPICommandBindings=y.hasSimpleAPICommandBindings,v.redrawText=function(t){if(!((t=l.getGraphDiv(t)).data&&t.data[0]&&t.data[0].r))return new Promise(function(e){setTimeout(function(){a.getComponentMethod(\"annotations\",\"draw\")(t),a.getComponentMethod(\"legend\",\"draw\")(t),(t.calcdata||[]).forEach(function(t){t[0]&&t[0].t&&t[0].t.cb&&t[0].t.cb()}),e(v.previousPromises(t))},300)})},v.resize=function(t){return t=l.getGraphDiv(t),new Promise(function(e,r){function n(t){var e=window.getComputedStyle(t).display;return!e||\"none\"===e}t&&!n(t)||r(new Error(\"Resize must be passed a displayed plot div element.\")),t._redrawTimer&&clearTimeout(t._redrawTimer),t._redrawTimer=setTimeout(function(){if(!t.layout||t.layout.width&&t.layout.height||n(t))e(t);else{delete t.layout.width,delete t.layout.height;var r=t.changed;t.autoplay=!0,a.call(\"relayout\",t,{autosize:!0}).then(function(){t.changed=r,e(t)})}},100)})},v.previousPromises=function(t){if((t._promises||[]).length)return Promise.all(t._promises).then(function(){t._promises=[]})},v.addLinks=function(t){if(t._context.showLink||t._context.showSources){var e=t._fullLayout,r=l.ensureSingle(e._paper,\"text\",\"js-plot-link-container\",function(t){t.style({\"font-family\":'\"Open Sans\", Arial, sans-serif',\"font-size\":\"12px\",fill:c.defaultLine,\"pointer-events\":\"all\"}).each(function(){var t=n.select(this);t.append(\"tspan\").classed(\"js-link-to-tool\",!0),t.append(\"tspan\").classed(\"js-link-spacer\",!0),t.append(\"tspan\").classed(\"js-sourcelinks\",!0)})}),i=r.node(),a={y:e._paper.attr(\"height\")-9};document.body.contains(i)&&i.getComputedTextLength()>=e.width-20?(a[\"text-anchor\"]=\"start\",a.x=5):(a[\"text-anchor\"]=\"end\",a.x=e._paper.attr(\"width\")-7),r.attr(a);var o=r.select(\".js-link-to-tool\"),s=r.select(\".js-link-spacer\"),u=r.select(\".js-sourcelinks\");t._context.showSources&&t._context.showSources(t),t._context.showLink&&function(t,e){e.text(\"\");var r=e.append(\"a\").attr({\"xlink:xlink:href\":\"#\",class:\"link--impt link--embedview\",\"font-weight\":\"bold\"}).text(t._context.linkText+\" \"+String.fromCharCode(187));if(t._context.sendData)r.on(\"click\",function(){v.sendDataToCloud(t)});else{var n=window.location.pathname.split(\"/\"),i=window.location.search;r.attr({\"xlink:xlink:show\":\"new\",\"xlink:xlink:href\":\"/\"+n[2].split(\".\")[0]+\"/\"+n[1]+i})}}(t,o),s.text(o.text()&&u.text()?\" - \":\"\")}},v.sendDataToCloud=function(t){t.emit(\"plotly_beforeexport\");var e=(window.PLOTLYENV||{}).BASE_URL||t._context.plotlyServerURL,r=n.select(t).append(\"div\").attr(\"id\",\"hiddenform\").style(\"display\",\"none\"),i=r.append(\"form\").attr({action:e+\"/external\",method:\"post\",target:\"_blank\"});return i.append(\"input\").attr({type:\"text\",name:\"data\"}).node().value=v.graphJson(t,!1,\"keepdata\"),i.node().submit(),r.remove(),t.emit(\"plotly_afterexport\"),!1};var x,b=[\"days\",\"shortDays\",\"months\",\"shortMonths\",\"periods\",\"dateTime\",\"date\",\"time\",\"decimal\",\"thousands\",\"grouping\",\"currency\"],_=[\"year\",\"month\",\"dayMonth\",\"dayMonthYear\"];function w(t,e){var r=t._context.locale,n=!1,i={};function o(t){for(var r=!0,a=0;a<e.length;a++){var o=e[a];i[o]||(t[o]?i[o]=t[o]:r=!1)}r&&(n=!0)}for(var s=0;s<2;s++){for(var l=t._context.locales,c=0;c<2;c++){var u=(l[r]||{}).format;if(u&&(o(u),n))break;l=a.localeRegistry}var f=r.split(\"-\")[0];if(n||f===r)break;r=f}return n||o(a.localeRegistry.en.format),i}function k(t){var e=t.transforms;if(Array.isArray(e)&&e.length)for(var r=0;r<e.length;r++){var n=e[r],i=n._module||m[n.type];if(i&&i.makesData)return!0}return!1}function M(t,e,r,n){for(var i=t.transforms,a=[t],o=0;o<i.length;o++){var s=i[o],l=m[s.type];l&&l.transform&&(a=l.transform(a,{transform:s,fullTrace:t,fullData:e,layout:r,fullLayout:n,transformIndex:o}))}return a}function A(t){t._pushmargin||(t._pushmargin={}),t._pushmarginIds||(t._pushmarginIds={})}function T(t){for(var e=0;e<t.length;e++)t[e].clearCalc()}v.supplyDefaults=function(t,e){var r=e&&e.skipUpdateCalc,i=t._fullLayout||{};if(i._skipDefaults)delete i._skipDefaults;else{var o,s=t._fullLayout={},c=t.layout||{},u=t._fullData||[],h=t._fullData=[],p=t.data||[],m=t.calcdata||[],y=t._context||{};t._transitionData||v.createTransitionData(t),s._dfltTitle={plot:g(t,\"Click to enter Plot title\"),x:g(t,\"Click to enter X axis title\"),y:g(t,\"Click to enter Y axis title\"),colorbar:g(t,\"Click to enter Colorscale title\"),annotation:g(t,\"new text\")},s._traceWord=g(t,\"trace\");var k=w(t,b);if(s._mapboxAccessToken=y.mapboxAccessToken,i._initialAutoSizeIsDone){var M=i.width,A=i.height;v.supplyLayoutGlobalDefaults(c,s,k),c.width||(s.width=M),c.height||(s.height=A),v.sanitizeMargins(s)}else{v.supplyLayoutGlobalDefaults(c,s,k);var T=!c.width||!c.height,S=s.autosize,E=y.autosizable;T&&(S||E)?v.plotAutoSize(t,c,s):T&&v.sanitizeMargins(s),!S&&T&&(c.width=s.width,c.height=s.height)}s._d3locale=function(t,e){return t.decimal=e.charAt(0),t.thousands=e.charAt(1),n.locale(t)}(k,s.separators),s._extraFormat=w(t,_),s._initialAutoSizeIsDone=!0,s._dataLength=p.length,s._modules=[],s._visibleModules=[],s._basePlotModules=[];var C=s._subplots=function(){var t,e,r={};if(!x){x=[];var n=a.subplotsRegistry;for(var i in n){var o=n[i],s=o.attr;if(s&&(x.push(i),Array.isArray(s)))for(e=0;e<s.length;e++)l.pushUnique(x,s[e])}}for(t=0;t<x.length;t++)r[x[t]]=[];return r}(),L=s._splomAxes={x:{},y:{}},z=s._splomSubplots={};s._splomGridDflt={},s._scatterStackOpts={},s._firstScatter={},s._requestRangeslider={},s._traceUids=function(t,e){var r,n,i=e.length,a=[];for(r=0;r<t.length;r++){var o=t[r]._fullInput;o!==n&&a.push(o),n=o}var s=a.length,c=new Array(i),u={};function f(t,e){c[e]=t,u[t]=1}function h(t,e){if(t&&\"string\"==typeof t&&!u[t])return f(t,e),!0}for(r=0;r<i;r++)h(e[r].uid,r)||r<s&&h(a[r].uid,r)||f(l.randstr(u),r);return c}(u,p),s._globalTransforms=(t._context||{}).globalTransforms,v.supplyDataDefaults(p,h,c,s);var O=Object.keys(L.x),I=Object.keys(L.y);if(O.length>1&&I.length>1){for(a.getComponentMethod(\"grid\",\"sizeDefaults\")(c,s),o=0;o<O.length;o++)l.pushUnique(C.xaxis,O[o]);for(o=0;o<I.length;o++)l.pushUnique(C.yaxis,I[o]);for(var P in z)l.pushUnique(C.cartesian,P)}if(s._has=v._hasPlotType.bind(s),u.length===h.length)for(o=0;o<h.length;o++)d(h[o],u[o]);v.supplyLayoutModuleDefaults(c,s,h,t._transitionData);var D=s._visibleModules,R=[];for(o=0;o<D.length;o++){var B=D[o].crossTraceDefaults;B&&l.pushUnique(R,B)}for(o=0;o<R.length;o++)R[o](h,s);s._hasOnlyLargeSploms=1===s._basePlotModules.length&&\"splom\"===s._basePlotModules[0].name&&O.length>15&&I.length>15&&0===s.shapes.length&&0===s.images.length,s._hasCartesian=s._has(\"cartesian\"),s._hasGeo=s._has(\"geo\"),s._hasGL3D=s._has(\"gl3d\"),s._hasGL2D=s._has(\"gl2d\"),s._hasTernary=s._has(\"ternary\"),s._hasPie=s._has(\"pie\"),v.linkSubplots(h,s,u,i),v.cleanPlot(h,s,u,i),d(s,i),v.doAutoMargin(t);var F=f.list(t);for(o=0;o<F.length;o++){F[o].setScale()}r||m.length!==h.length||v.supplyDefaultsUpdateCalc(m,h)}},v.supplyDefaultsUpdateCalc=function(t,e){for(var r=0;r<e.length;r++){var n=e[r],i=t[r][0];if(i&&i.trace){var a=i.trace;if(a._hasCalcTransform){var o,s,c,u=a._arrayAttrs;for(o=0;o<u.length;o++)s=u[o],c=l.nestedProperty(a,s).get().slice(),l.nestedProperty(n,s).set(c)}i.trace=n}}},v.createTransitionData=function(t){t._transitionData||(t._transitionData={}),t._transitionData._frames||(t._transitionData._frames=[]),t._transitionData._frameHash||(t._transitionData._frameHash={}),t._transitionData._counter||(t._transitionData._counter=0),t._transitionData._interruptCallbacks||(t._transitionData._interruptCallbacks=[])},v._hasPlotType=function(t){var e,r=this._basePlotModules||[];for(e=0;e<r.length;e++)if(r[e].name===t)return!0;var n=this._modules||[];for(e=0;e<n.length;e++){var i=n[e].name;if(i===t)return!0;var o=a.modules[i];if(o&&o.categories[t])return!0}return!1},v.cleanPlot=function(t,e,r,n){var i,a,o=n._basePlotModules||[];for(i=0;i<o.length;i++){var s=o[i];s.clean&&s.clean(t,e,r,n)}var l=n._has&&n._has(\"gl\"),c=e._has&&e._has(\"gl\");l&&!c&&void 0!==n._glcontainer&&(n._glcontainer.selectAll(\".gl-canvas\").remove(),n._glcontainer.selectAll(\".no-webgl\").remove(),n._glcanvas=null);var u=!!n._infolayer;t:for(i=0;i<r.length;i++){var f=r[i].uid;for(a=0;a<t.length;a++){if(f===t[a].uid)continue t}u&&n._infolayer.select(\".cb\"+f).remove()}n._zoomlayer&&n._zoomlayer.selectAll(\".select-outline\").remove()},v.linkSubplots=function(t,e,r,n){var i,a,o=n._plots||{},s=e._plots={},l=e._subplots,c={_fullData:t,_fullLayout:e},u=l.cartesian.concat(l.gl2d||[]);for(i=0;i<u.length;i++){var h,p=u[i],d=o[p],g=f.getFromId(c,p,\"x\"),v=f.getFromId(c,p,\"y\");for(d?h=s[p]=d:(h=s[p]={}).id=p,h.xaxis=g,h.yaxis=v,h._hasClipOnAxisFalse=!1,a=0;a<t.length;a++){var m=t[a];if(m.xaxis===h.xaxis._id&&m.yaxis===h.yaxis._id&&!1===m.cliponaxis){h._hasClipOnAxisFalse=!0;break}}}var y=f.list(c,null,!0);for(i=0;i<y.length;i++){var x=y[i],b=null;x.overlaying&&(b=f.getFromId(c,x.overlaying))&&b.overlaying&&(x.overlaying=!1,b=null),x._mainAxis=b||x,b&&(x.domain=b.domain.slice()),x._anchorAxis=\"free\"===x.anchor?null:f.getFromId(c,x.anchor)}},v.clearExpandedTraceDefaultColors=function(t){var e,r,n;for(r=[],(e=t._module._colorAttrs)||(t._module._colorAttrs=e=[],o.crawl(t._module.attributes,function(t,n,i,a){r[a]=n,r.length=a+1,\"color\"===t.valType&&void 0===t.dflt&&e.push(r.join(\".\"))})),n=0;n<e.length;n++){l.nestedProperty(t,\"_input.\"+e[n]).get()||l.nestedProperty(t,e[n]).set(null)}},v.supplyDataDefaults=function(t,e,r,n){var i,o,c,u=n._modules,f=n._visibleModules,h=n._basePlotModules,p=0,g=0;function m(t){e.push(t);var r=t._module;r&&(l.pushUnique(u,r),!0===t.visible&&l.pushUnique(f,r),l.pushUnique(h,t._module.basePlotModule),p++,!1!==t._input.visible&&g++)}n._transformModules=[];var y={},x=[],b=(r.template||{}).data||{},_=s.traceTemplater(b);for(i=0;i<t.length;i++){if(c=t[i],(o=_.newTrace(c)).uid=n._traceUids[i],v.supplyTraceDefaults(c,o,g,n,i),o.index=i,o._input=c,o._expandedIndex=p,o.transforms&&o.transforms.length)for(var w=!1!==c.visible&&!1===o.visible,k=M(o,e,r,n),A=0;A<k.length;A++){var T=k[A],S={_template:o._template,type:o.type,uid:o.uid+A};w&&!1===T.visible&&delete T.visible,v.supplyTraceDefaults(T,S,p,n,i),d(S,T),S.index=i,S._input=c,S._fullInput=o,S._expandedIndex=p,S._expandedInput=T,m(S)}else o._fullInput=o,o._expandedInput=o,m(o);a.traceIs(o,\"carpetAxis\")&&(y[o.carpet]=o),a.traceIs(o,\"carpetDependent\")&&x.push(i)}for(i=0;i<x.length;i++)if((o=e[x[i]]).visible){var E=y[o.carpet];o._carpet=E,E&&E.visible?(o.xaxis=E.xaxis,o.yaxis=E.yaxis):o.visible=!1}},v.supplyAnimationDefaults=function(t){var e;t=t||{};var r={};function n(e,n){return l.coerce(t||{},r,h,e,n)}if(n(\"mode\"),n(\"direction\"),n(\"fromcurrent\"),Array.isArray(t.frame))for(r.frame=[],e=0;e<t.frame.length;e++)r.frame[e]=v.supplyAnimationFrameDefaults(t.frame[e]||{});else r.frame=v.supplyAnimationFrameDefaults(t.frame||{});if(Array.isArray(t.transition))for(r.transition=[],e=0;e<t.transition.length;e++)r.transition[e]=v.supplyAnimationTransitionDefaults(t.transition[e]||{});else r.transition=v.supplyAnimationTransitionDefaults(t.transition||{});return r},v.supplyAnimationFrameDefaults=function(t){var e={};function r(r,n){return l.coerce(t||{},e,h.frame,r,n)}return r(\"duration\"),r(\"redraw\"),e},v.supplyAnimationTransitionDefaults=function(t){var e={};function r(r,n){return l.coerce(t||{},e,h.transition,r,n)}return r(\"duration\"),r(\"easing\"),e},v.supplyFrameDefaults=function(t){var e={};function r(r,n){return l.coerce(t,e,p,r,n)}return r(\"group\"),r(\"name\"),r(\"traces\"),r(\"baseframe\"),r(\"data\"),r(\"layout\"),e},v.supplyTraceDefaults=function(t,e,r,n,i){var o,s=n.colorway||c.defaults,u=s[r%s.length];function f(r,n){return l.coerce(t,e,v.attributes,r,n)}var h=f(\"visible\");f(\"type\"),f(\"name\",n._traceWord+\" \"+i);var p,d,g,m=v.getModule(e);if(e._module=m,m){var y=m.basePlotModule,x=y.attr,b=y.attributes;if(x&&b){var _=n._subplots,w=\"\";if(\"gl2d\"!==y.name||h){if(Array.isArray(x))for(o=0;o<x.length;o++){var k=x[o],M=l.coerce(t,e,b,k);_[k]&&l.pushUnique(_[k],M),w+=M}else w=l.coerce(t,e,b,x);_[y.name]&&l.pushUnique(_[y.name],w)}}}return h&&(f(\"customdata\"),f(\"ids\"),a.traceIs(e,\"showLegend\")?(e._dfltShowLegend=!0,f(\"showlegend\"),f(\"legendgroup\")):e._dfltShowLegend=!1,p=\"hoverlabel\",d=\"\",g=function(){a.getComponentMethod(\"fx\",\"supplyDefaults\")(t,e,u,n)},m&&p in m.attributes&&void 0===m.attributes[p]||(g&&\"function\"==typeof g?g():f(p,d)),m&&(m.supplyDefaults(t,e,u,n),l.coerceHoverinfo(t,e,n)),a.traceIs(e,\"noOpacity\")||f(\"opacity\"),a.traceIs(e,\"notLegendIsolatable\")&&(e.visible=!!e.visible),m&&m.selectPoints&&f(\"selectedpoints\"),v.supplyTransformDefaults(t,e,n)),e},v.hasMakesDataTransform=k,v.supplyTransformDefaults=function(t,e,r){if(e._length||k(t)){var n=r._globalTransforms||[],i=r._transformModules||[];if(Array.isArray(t.transforms)||0!==n.length)for(var a=t.transforms||[],o=n.concat(a),s=e.transforms=[],c=0;c<o.length;c++){var u,f=o[c],h=f.type,p=m[h],d=!(f._module&&f._module===p),g=p&&\"function\"==typeof p.transform;p||l.warn(\"Unrecognized transform type \"+h+\".\"),p&&p.supplyDefaults&&(d||g)?((u=p.supplyDefaults(f,e,r,t)).type=h,u._module=p,l.pushUnique(i,p)):u=l.extendFlat({},f),s.push(u)}}},v.supplyLayoutGlobalDefaults=function(t,e,r){function n(r,n){return l.coerce(t,e,v.layoutAttributes,r,n)}var i=t.template;l.isPlainObject(i)&&(e.template=i,e._template=i.layout,e._dataTemplate=i.data);var o=l.coerceFont(n,\"font\");n(\"title\",e._dfltTitle.plot),l.coerceFont(n,\"titlefont\",{family:o.family,size:Math.round(1.4*o.size),color:o.color}),n(\"autosize\",!(t.width&&t.height)),n(\"width\"),n(\"height\"),n(\"margin.l\"),n(\"margin.r\"),n(\"margin.t\"),n(\"margin.b\"),n(\"margin.pad\"),n(\"margin.autoexpand\"),t.width&&t.height&&v.sanitizeMargins(e),a.getComponentMethod(\"grid\",\"sizeDefaults\")(t,e),n(\"paper_bgcolor\"),n(\"separators\",r.decimal+r.thousands),n(\"hidesources\"),n(\"colorway\"),n(\"datarevision\"),n(\"modebar.orientation\"),n(\"modebar.bgcolor\",c.addOpacity(e.paper_bgcolor,.5));var s=c.contrast(c.rgb(e.modebar.bgcolor));n(\"modebar.color\",c.addOpacity(s,.3)),n(\"modebar.activecolor\",c.addOpacity(s,.7)),a.getComponentMethod(\"calendars\",\"handleDefaults\")(t,e,\"calendar\"),a.getComponentMethod(\"fx\",\"supplyLayoutGlobalDefaults\")(t,e,n)},v.plotAutoSize=function(t,e,r){var n,a,o=t._context||{},s=o.frameMargins,c=l.isPlotDiv(t);if(c&&t.emit(\"plotly_autosize\"),o.fillFrame)n=window.innerWidth,a=window.innerHeight,document.body.style.overflow=\"hidden\";else{var u=c?window.getComputedStyle(t):{};if(n=parseFloat(u.width)||parseFloat(u.maxWidth)||r.width,a=parseFloat(u.height)||parseFloat(u.maxHeight)||r.height,i(s)&&s>0){var f=1-2*s;n=Math.round(f*n),a=Math.round(f*a)}}var h=v.layoutAttributes.width.min,p=v.layoutAttributes.height.min;n<h&&(n=h),a<p&&(a=p);var d=!e.width&&Math.abs(r.width-n)>1,g=!e.height&&Math.abs(r.height-a)>1;(g||d)&&(d&&(r.width=n),g&&(r.height=a)),t._initialAutoSize||(t._initialAutoSize={width:n,height:a}),v.sanitizeMargins(r)},v.supplyLayoutModuleDefaults=function(t,e,r,n){var i,o,s,c=a.componentsRegistry,u=e._basePlotModules,f=a.subplotsRegistry.cartesian;for(i in c)(s=c[i]).includeBasePlot&&s.includeBasePlot(t,e);for(var h in u.length||u.push(f),e._has(\"cartesian\")&&(a.getComponentMethod(\"grid\",\"contentDefaults\")(t,e),f.finalizeSubplots(t,e)),e._subplots)e._subplots[h].sort(l.subplotSort);for(o=0;o<u.length;o++)(s=u[o]).supplyLayoutDefaults&&s.supplyLayoutDefaults(t,e,r);var p=e._modules;for(o=0;o<p.length;o++)(s=p[o]).supplyLayoutDefaults&&s.supplyLayoutDefaults(t,e,r);var d=e._transformModules;for(o=0;o<d.length;o++)(s=d[o]).supplyLayoutDefaults&&s.supplyLayoutDefaults(t,e,r,n);for(i in c)(s=c[i]).supplyLayoutDefaults&&s.supplyLayoutDefaults(t,e,r)},v.purge=function(t){var e=t._fullLayout||{};void 0!==e._glcontainer&&(e._glcontainer.selectAll(\".gl-canvas\").remove(),e._glcontainer.remove(),e._glcanvas=null),void 0!==e._geocontainer&&e._geocontainer.remove(),e._modeBar&&e._modeBar.destroy(),t._transitionData&&(t._transitionData._interruptCallbacks&&(t._transitionData._interruptCallbacks.length=0),t._transitionData._animationRaf&&window.cancelAnimationFrame(t._transitionData._animationRaf)),l.clearThrottle(),l.clearResponsive(t),delete t.data,delete t.layout,delete t._fullData,delete t._fullLayout,delete t.calcdata,delete t.framework,delete t.empty,delete t.fid,delete t.undoqueue,delete t.undonum,delete t.autoplay,delete t.changed,delete t._promises,delete t._redrawTimer,delete t._hmlumcount,delete t._hmpixcount,delete t._transitionData,delete t._transitioning,delete t._initialAutoSize,delete t._transitioningWithDuration,delete t._dragging,delete t._dragged,delete t._hoverdata,delete t._snapshotInProgress,delete t._editing,delete t._replotPending,delete t._mouseDownTime,delete t._legendMouseDownTime,t.removeAllListeners&&t.removeAllListeners()},v.style=function(t){var e,r=t._fullLayout._visibleModules,n=[];for(e=0;e<r.length;e++){var i=r[e];i.style&&l.pushUnique(n,i.style)}for(e=0;e<n.length;e++)n[e](t)},v.sanitizeMargins=function(t){if(t&&t.margin){var e,r=t.width,n=t.height,i=t.margin,a=r-(i.l+i.r),o=n-(i.t+i.b);a<0&&(e=(r-1)/(i.l+i.r),i.l=Math.floor(e*i.l),i.r=Math.floor(e*i.r)),o<0&&(e=(n-1)/(i.t+i.b),i.t=Math.floor(e*i.t),i.b=Math.floor(e*i.b))}},v.clearAutoMarginIds=function(t){t._fullLayout._pushmarginIds={}},v.allowAutoMargin=function(t,e){t._fullLayout._pushmarginIds[e]=1},v.autoMargin=function(t,e,r){var n=t._fullLayout;A(n);var i=n._pushmargin,a=n._pushmarginIds;if(!1!==n.margin.autoexpand){if(r){var o=r.pad;if(void 0===o){var s=n.margin;o=Math.min(12,s.l,s.r,s.t,s.b)}r.l+r.r>.5*n.width&&(r.l=r.r=0),r.b+r.t>.5*n.height&&(r.b=r.t=0);var l=void 0!==r.xl?r.xl:r.x,c=void 0!==r.xr?r.xr:r.x,u=void 0!==r.yt?r.yt:r.y,f=void 0!==r.yb?r.yb:r.y;i[e]={l:{val:l,size:r.l+o},r:{val:c,size:r.r+o},b:{val:f,size:r.b+o},t:{val:u,size:r.t+o}},a[e]=1}else delete i[e],delete a[e];n._replotting||v.doAutoMargin(t)}},v.doAutoMargin=function(t){var e=t._fullLayout;e._size||(e._size={}),A(e);var r=e._size,n=JSON.stringify(r),o=Math.max(e.margin.l||0,0),s=Math.max(e.margin.r||0,0),l=Math.max(e.margin.t||0,0),c=Math.max(e.margin.b||0,0),u=e._pushmargin,f=e._pushmarginIds;if(!1!==e.margin.autoexpand){for(var h in u)f[h]||delete u[h];for(var p in u.base={l:{val:0,size:o},r:{val:1,size:s},t:{val:1,size:l},b:{val:0,size:c}},u){var d=u[p].l||{},g=u[p].b||{},v=d.val,m=d.size,y=g.val,x=g.size;for(var b in u){if(i(m)&&u[b].r){var _=u[b].r.val,w=u[b].r.size;if(_>v){var k=(m*_+(w-e.width)*v)/(_-v),M=(w*(1-v)+(m-e.width)*(1-_))/(_-v);k>=0&&M>=0&&k+M>o+s&&(o=k,s=M)}}if(i(x)&&u[b].t){var T=u[b].t.val,S=u[b].t.size;if(T>y){var E=(x*T+(S-e.height)*y)/(T-y),C=(S*(1-y)+(x-e.height)*(1-T))/(T-y);E>=0&&C>=0&&E+C>c+l&&(c=E,l=C)}}}}}if(r.l=Math.round(o),r.r=Math.round(s),r.t=Math.round(l),r.b=Math.round(c),r.p=Math.round(e.margin.pad),r.w=Math.round(e.width)-r.l-r.r,r.h=Math.round(e.height)-r.t-r.b,!e._replotting&&\"{}\"!==n&&n!==JSON.stringify(e._size))return\"_redrawFromAutoMarginCount\"in e?e._redrawFromAutoMarginCount++:e._redrawFromAutoMarginCount=1,a.call(\"plot\",t)},v.graphJson=function(t,e,r,n,i){(i&&e&&!t._fullData||i&&!e&&!t._fullLayout)&&v.supplyDefaults(t);var a=i?t._fullData:t.data,o=i?t._fullLayout:t.layout,s=(t._transitionData||{})._frames;function c(t){if(\"function\"==typeof t)return null;if(l.isPlainObject(t)){var e,n,i={};for(e in t)if(\"function\"!=typeof t[e]&&-1===[\"_\",\"[\"].indexOf(e.charAt(0))){if(\"keepdata\"===r){if(\"src\"===e.substr(e.length-3))continue}else if(\"keepstream\"===r){if(\"string\"==typeof(n=t[e+\"src\"])&&n.indexOf(\":\")>0&&!l.isPlainObject(t.stream))continue}else if(\"keepall\"!==r&&\"string\"==typeof(n=t[e+\"src\"])&&n.indexOf(\":\")>0)continue;i[e]=c(t[e])}return i}return Array.isArray(t)?t.map(c):l.isTypedArray(t)?l.simpleMap(t,l.identity):l.isJSDate(t)?l.ms2DateTimeLocal(+t):t}var u={data:(a||[]).map(function(t){var r=c(t);return e&&delete r.fit,r})};return e||(u.layout=c(o)),t.framework&&t.framework.isPolar&&(u=t.framework.getConfig()),s&&(u.frames=c(s)),\"object\"===n?u:JSON.stringify(u)},v.modifyFrames=function(t,e){var r,n,i,a=t._transitionData._frames,o=t._transitionData._frameHash;for(r=0;r<e.length;r++)switch((n=e[r]).type){case\"replace\":i=n.value;var s=(a[n.index]||{}).name,l=i.name;a[n.index]=o[l]=i,l!==s&&(delete o[s],o[l]=i);break;case\"insert\":o[(i=n.value).name]=i,a.splice(n.index,0,i);break;case\"delete\":delete o[(i=a[n.index]).name],a.splice(n.index,1)}return Promise.resolve()},v.computeFrame=function(t,e){var r,n,i,a,o=t._transitionData._frameHash;if(!e)throw new Error(\"computeFrame must be given a string frame name\");var s=o[e.toString()];if(!s)return!1;for(var l=[s],c=[s.name];s.baseframe&&(s=o[s.baseframe.toString()])&&-1===c.indexOf(s.name);)l.push(s),c.push(s.name);for(var u={};s=l.pop();)if(s.layout&&(u.layout=v.extendLayout(u.layout,s.layout)),s.data){if(u.data||(u.data=[]),!(n=s.traces))for(n=[],r=0;r<s.data.length;r++)n[r]=r;for(u.traces||(u.traces=[]),r=0;r<s.data.length;r++)null!=(i=n[r])&&(-1===(a=u.traces.indexOf(i))&&(a=u.data.length,u.traces[a]=i),u.data[a]=v.extendTrace(u.data[a],s.data[r]))}return u},v.recomputeFrameHash=function(t){for(var e=t._transitionData._frameHash={},r=t._transitionData._frames,n=0;n<r.length;n++){var i=r[n];i&&i.name&&(e[i.name]=i)}},v.extendObjectWithContainers=function(t,e,r){var n,i,a,o,s,c,u,f=l.extendDeepNoArrays({},e||{}),h=l.expandObjectPaths(f),p={};if(r&&r.length)for(a=0;a<r.length;a++)void 0===(i=(n=l.nestedProperty(h,r[a])).get())?l.nestedProperty(p,r[a]).set(null):(n.set(null),l.nestedProperty(p,r[a]).set(i));if(t=l.extendDeepNoArrays(t||{},h),r&&r.length)for(a=0;a<r.length;a++)if(c=l.nestedProperty(p,r[a]).get()){for(u=(s=l.nestedProperty(t,r[a])).get(),Array.isArray(u)||(u=[],s.set(u)),o=0;o<c.length;o++){var d=c[o];u[o]=null===d?null:v.extendObjectWithContainers(u[o],d)}s.set(u)}return t},v.dataArrayContainers=[\"transforms\",\"dimensions\"],v.layoutArrayContainers=a.layoutArrayContainers,v.extendTrace=function(t,e){return v.extendObjectWithContainers(t,e,v.dataArrayContainers)},v.extendLayout=function(t,e){return v.extendObjectWithContainers(t,e,v.layoutArrayContainers)},v.transition=function(t,e,r,n,i,o){var s,c,u=Array.isArray(e)?e.length:0,f=n.slice(0,u),h=[];var p=!1;for(s=0;s<f.length;s++){c=f[s];t._fullData[c]._module}var d=[v.previousPromises,function(){if(t._transitionData)return t._transitioning=!1,function(t){var e=Promise.resolve();if(!t)return e;for(;t.length;)e=e.then(t.shift());return e}(t._transitionData._interruptCallbacks)},function(){var n;for(n=0;n<f.length;n++){var i=f[n],a=t._fullData[i]._module;a&&(a.animatable&&h.push(i),t.data[f[n]]=v.extendTrace(t.data[f[n]],e[n]))}var o=l.expandObjectPaths(l.extendDeepNoArrays({},r)),s=/^[xy]axis[0-9]*$/;for(var c in o)s.test(c)&&delete o[c].range;return v.extendLayout(t.layout,o),delete t.calcdata,v.supplyDefaults(t),v.doCalcdata(t),Promise.resolve()},v.rehover,function(){return t.emit(\"plotly_transitioning\",[]),new Promise(function(e){t._transitioning=!0,o.duration>0&&(t._transitioningWithDuration=!0),t._transitionData._interruptCallbacks.push(function(){p=!0}),i.redraw&&t._transitionData._interruptCallbacks.push(function(){return a.call(\"redraw\",t)}),t._transitionData._interruptCallbacks.push(function(){t.emit(\"plotly_transitioninterrupted\",[])});var n,s,c=0,u=0;function f(){return c++,function(){var r;u++,p||u!==c||(r=e,t._transitionData&&(function(t){if(t)for(;t.length;)t.shift()}(t._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(i.redraw)return a.call(\"redraw\",t)}).then(function(){t._transitioning=!1,t._transitioningWithDuration=!1,t.emit(\"plotly_transitioned\",[])}).then(r)))}}var d=t._fullLayout._basePlotModules,g=!1;if(r)for(s=0;s<d.length;s++)if(d[s].transitionAxes){var v=l.expandObjectPaths(r);g=d[s].transitionAxes(t,v,o,f)||g}for(g?((n=l.extendFlat({},o)).duration=0,h=null):n=o,s=0;s<d.length;s++)d[s].plot(t,h,n,f);setTimeout(f())})}],g=l.syncOrAsync(d,t);return g&&g.then||(g=Promise.resolve()),g.then(function(){return t})},v.doCalcdata=function(t,e){var r,n,i,s,c=f.list(t),h=t._fullData,p=t._fullLayout,d=new Array(h.length),g=(t.calcdata||[]).slice(0);for(t.calcdata=d,p._numBoxes=0,p._numViolins=0,p._violinScaleGroupStats={},t._hmpixcount=0,t._hmlumcount=0,p._piecolormap={},i=0;i<h.length;i++)Array.isArray(e)&&-1===e.indexOf(i)&&(d[i]=g[i]);for(i=0;i<h.length;i++)(r=h[i])._arrayAttrs=o.findArrayAttributes(r),r._extremes={};var v=p._subplots.polar||[];for(i=0;i<v.length;i++)c.push(p[v[i]].radialaxis,p[v[i]].angularaxis);T(c);var y=!1;for(i=0;i<h.length;i++)if(!0===(r=h[i]).visible&&r.transforms){if((n=r._module)&&n.calc){var x=n.calc(t,r);x[0]&&x[0].t&&x[0].t._scene&&delete x[0].t._scene.dirty}for(s=0;s<r.transforms.length;s++){var b=r.transforms[s];(n=m[b.type])&&n.calcTransform&&(r._hasCalcTransform=!0,y=!0,n.calcTransform(t,r,b))}}function _(e,i){if(r=h[e],!!(n=r._module).isContainer===i){var a=[];if(!0===r.visible){delete r._indexToPoints;var o=r.transforms||[];for(s=o.length-1;s>=0;s--)if(o[s].enabled){r._indexToPoints=o[s]._indexToPoints;break}n&&n.calc&&(a=n.calc(t,r))}Array.isArray(a)&&a[0]||(a=[{x:u,y:u}]),a[0].t||(a[0].t={}),a[0].trace=r,d[e]=a}}for(y&&T(c),i=0;i<h.length;i++)_(i,!0);for(i=0;i<h.length;i++)_(i,!1);!function(t){var e,r,n,i=t._fullLayout,a=i._visibleModules,o={};for(r=0;r<a.length;r++){var s=a[r],c=s.crossTraceCalc;if(c){var u=s.basePlotModule.name;o[u]?l.pushUnique(o[u],c):o[u]=[c]}}for(n in o){var f=o[n],h=i._subplots[n];if(Array.isArray(h))for(e=0;e<h.length;e++){var p=h[e],d=\"cartesian\"===n?i._plots[p]:i[p];for(r=0;r<f.length;r++)f[r](t,d,p)}else for(r=0;r<f.length;r++)f[r](t)}}(t),a.getComponentMethod(\"fx\",\"calc\")(t),a.getComponentMethod(\"errorbars\",\"calc\")(t)},v.rehover=function(t){t._fullLayout._rehover&&t._fullLayout._rehover()},v.generalUpdatePerTraceModule=function(t,e,r,n){var i,a=e.traceHash,o={};for(i=0;i<r.length;i++){var s=r[i],c=s[0].trace;c.visible&&(o[c.type]=o[c.type]||[],o[c.type].push(s))}for(var u in a)if(!o[u]){var f=a[u][0];f[0].trace.visible=!1,o[u]=[f]}for(var h in o){var p=o[h];p[0][0].trace._module.plot(t,e,l.filterVisible(p),n)}e.traceHash=o}},{\"../components/color\":570,\"../constants/numerical\":673,\"../lib\":696,\"../plot_api/plot_schema\":733,\"../plot_api/plot_template\":734,\"../plots/cartesian/axis_ids\":747,\"../registry\":827,\"./animation_attributes\":739,\"./attributes\":741,\"./command\":769,\"./font_attributes\":771,\"./frame_attributes\":772,\"./layout_attributes\":799,d3:148,\"fast-isnumeric\":214}],809:[function(t,e,r){\"use strict\";e.exports={attr:\"subplot\",name:\"polar\",axisNames:[\"angularaxis\",\"radialaxis\"],axisName2dataArray:{angularaxis:\"theta\",radialaxis:\"r\"},layerNames:[\"draglayer\",\"plotbg\",\"backplot\",\"angular-grid\",\"radial-grid\",\"frontplot\",\"angular-line\",\"radial-line\",\"angular-axis\",\"radial-axis\"],radialDragBoxSize:50,angularDragBoxSize:30,cornerLen:25,cornerHalfWidth:2,MINDRAG:8,MINZOOM:20,OFFEDGE:20}},{}],810:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../lib/polygon\").tester,a=n.findIndexOfMin,o=n.isAngleInsideSector,s=n.angleDelta,l=n.angleDist;function c(t,e,r,n){var i,a,o=n[0],s=n[1],l=f(Math.sin(e)-Math.sin(t)),c=f(Math.cos(e)-Math.cos(t)),u=Math.tan(r),h=f(1/u),p=l/c,d=s-p*o;return h?l&&c?a=u*(i=d/(u-p)):c?(i=s*h,a=s):(i=o,a=o*u):l&&c?(i=0,a=d):c?(i=0,a=s):i=a=NaN,[i,a]}function u(t,e,r,i){return n.isFullCircle([e,r])?function(t,e){var r,n=e.length,i=new Array(n+1);for(r=0;r<n;r++){var a=e[r];i[r]=[t*Math.cos(a),t*Math.sin(a)]}return i[r]=i[0].slice(),i}(t,i):function(t,e,r,i){var s,u,f=i.length,h=[];function p(e){return[t*Math.cos(e),t*Math.sin(e)]}function d(t,e,r){return c(t,e,r,p(t))}function g(t){return n.mod(t,f)}function v(t){return o(t,[e,r])}var m=a(i,function(t){return v(t)?l(t,e):1/0}),y=d(i[m],i[g(m-1)],e);for(h.push(y),s=m,u=0;u<f;s++,u++){var x=i[g(s)];if(!v(x))break;h.push(p(x))}var b=a(i,function(t){return v(t)?l(t,r):1/0}),_=d(i[b],i[g(b+1)],r);return h.push(_),h.push([0,0]),h.push(h[0].slice()),h}(t,e,r,i)}function f(t){return Math.abs(t)>1e-10?t:0}function h(t,e,r){e=e||0,r=r||0;for(var n=t.length,i=new Array(n),a=0;a<n;a++){var o=t[a];i[a]=[e+o[0],r-o[1]]}return i}e.exports={isPtInsidePolygon:function(t,e,r,n,a){if(!o(e,n))return!1;var s,l;r[0]<r[1]?(s=r[0],l=r[1]):(s=r[1],l=r[0]);var c=i(u(s,n[0],n[1],a)),f=i(u(l,n[0],n[1],a)),h=[t*Math.cos(e),t*Math.sin(e)];return f.contains(h)&&!c.contains(h)},findPolygonOffset:function(t,e,r,n){for(var i=1/0,a=1/0,o=u(t,e,r,n),s=0;s<o.length;s++){var l=o[s];i=Math.min(i,l[0]),a=Math.min(a,-l[1])}return[i,a]},findEnclosingVertexAngles:function(t,e){var r=a(e,function(e){var r=s(e,t);return r>0?r:1/0}),i=n.mod(r+1,e.length);return[e[r],e[i]]},findIntersectionXY:c,findXYatLength:function(t,e,r,n){var i=-e*r,a=e*e+1,o=2*(e*i-r),s=i*i+r*r-t*t,l=Math.sqrt(o*o-4*a*s),c=(-o+l)/(2*a),u=(-o-l)/(2*a);return[[c,e*c+i+n],[u,e*u+i+n]]},clampTiny:f,pathPolygon:function(t,e,r,n,i,a){return\"M\"+h(u(t,e,r,n),i,a).join(\"L\")},pathPolygonAnnulus:function(t,e,r,n,i,a,o){var s,l;t<e?(s=t,l=e):(s=e,l=t);var c=h(u(s,r,n,i),a,o);return\"M\"+h(u(l,r,n,i),a,o).reverse().join(\"L\")+\"M\"+c.join(\"L\")}}},{\"../../lib\":696,\"../../lib/polygon\":708}],811:[function(t,e,r){\"use strict\";var n=t(\"../get_data\").getSubplotCalcData,i=t(\"../../lib\").counterRegex,a=t(\"./polar\"),o=t(\"./constants\"),s=o.attr,l=o.name,c=i(l),u={};u[s]={valType:\"subplotid\",dflt:l,editType:\"calc\"},e.exports={attr:s,name:l,idRoot:l,idRegex:c,attrRegex:c,attributes:u,layoutAttributes:t(\"./layout_attributes\"),supplyLayoutDefaults:t(\"./layout_defaults\"),plot:function(t){for(var e=t._fullLayout,r=t.calcdata,i=e._subplots[l],o=0;o<i.length;o++){var s=i[o],c=n(r,l,s),u=e[s]._subplot;u||(u=a(t,s),e[s]._subplot=u),u.plot(c,e,t._promises)}},clean:function(t,e,r,n){for(var i=n._subplots[l]||[],a=n._has&&n._has(\"gl\"),o=e._has&&e._has(\"gl\"),s=a&&!o,c=0;c<i.length;c++){var u=i[c],f=n[u]._subplot;if(!e[u]&&f)for(var h in f.framework.remove(),f.layers[\"radial-axis-title\"].remove(),f.clipPaths)f.clipPaths[h].remove();s&&f._scene&&(f._scene.destroy(),f._scene=null)}},toSVG:t(\"../cartesian\").toSVG}},{\"../../lib\":696,\"../cartesian\":756,\"../get_data\":781,\"./constants\":809,\"./layout_attributes\":812,\"./layout_defaults\":813,\"./polar\":820}],812:[function(t,e,r){\"use strict\";var n=t(\"../../components/color/attributes\"),i=t(\"../cartesian/layout_attributes\"),a=t(\"../domain\").attributes,o=t(\"../../lib\").extendFlat,s=t(\"../../plot_api/edit_types\").overrideAll,l=s({color:i.color,showline:o({},i.showline,{dflt:!0}),linecolor:i.linecolor,linewidth:i.linewidth,showgrid:o({},i.showgrid,{dflt:!0}),gridcolor:i.gridcolor,gridwidth:i.gridwidth},\"plot\",\"from-root\"),c=s({tickmode:i.tickmode,nticks:i.nticks,tick0:i.tick0,dtick:i.dtick,tickvals:i.tickvals,ticktext:i.ticktext,ticks:i.ticks,ticklen:i.ticklen,tickwidth:i.tickwidth,tickcolor:i.tickcolor,showticklabels:i.showticklabels,showtickprefix:i.showtickprefix,tickprefix:i.tickprefix,showticksuffix:i.showticksuffix,ticksuffix:i.ticksuffix,showexponent:i.showexponent,exponentformat:i.exponentformat,separatethousands:i.separatethousands,tickfont:i.tickfont,tickangle:i.tickangle,tickformat:i.tickformat,tickformatstops:i.tickformatstops,layer:i.layer},\"plot\",\"from-root\"),u={visible:o({},i.visible,{dflt:!0}),type:i.type,autorange:o({},i.autorange,{editType:\"plot\"}),rangemode:{valType:\"enumerated\",values:[\"tozero\",\"nonnegative\",\"normal\"],dflt:\"tozero\",editType:\"calc\"},range:o({},i.range,{items:[{valType:\"any\",editType:\"plot\",impliedEdits:{\"^autorange\":!1}},{valType:\"any\",editType:\"plot\",impliedEdits:{\"^autorange\":!1}}],editType:\"plot\"}),categoryorder:i.categoryorder,categoryarray:i.categoryarray,angle:{valType:\"angle\",editType:\"plot\"},side:{valType:\"enumerated\",values:[\"clockwise\",\"counterclockwise\"],dflt:\"clockwise\",editType:\"plot\"},title:o({},i.title,{editType:\"plot\",dflt:\"\"}),titlefont:s(i.titlefont,\"plot\",\"from-root\"),hoverformat:i.hoverformat,editType:\"calc\"};o(u,l,c);var f={visible:o({},i.visible,{dflt:!0}),type:{valType:\"enumerated\",values:[\"-\",\"linear\",\"category\"],dflt:\"-\",editType:\"calc\",_noTemplating:!0},categoryorder:i.categoryorder,categoryarray:i.categoryarray,thetaunit:{valType:\"enumerated\",values:[\"radians\",\"degrees\"],dflt:\"degrees\",editType:\"calc\"},period:{valType:\"number\",editType:\"calc\",min:0},direction:{valType:\"enumerated\",values:[\"counterclockwise\",\"clockwise\"],dflt:\"counterclockwise\",editType:\"calc\"},rotation:{valType:\"angle\",editType:\"calc\"},hoverformat:i.hoverformat,editType:\"calc\"};o(f,l,c),e.exports={domain:a({name:\"polar\",editType:\"plot\"}),sector:{valType:\"info_array\",items:[{valType:\"number\",editType:\"plot\"},{valType:\"number\",editType:\"plot\"}],dflt:[0,360],editType:\"plot\"},hole:{valType:\"number\",min:0,max:1,dflt:0,editType:\"plot\"},bgcolor:{valType:\"color\",editType:\"plot\",dflt:n.background},radialaxis:u,angularaxis:f,gridshape:{valType:\"enumerated\",values:[\"circular\",\"linear\"],dflt:\"circular\",editType:\"plot\"},editType:\"calc\"}},{\"../../components/color/attributes\":569,\"../../lib\":696,\"../../plot_api/edit_types\":727,\"../cartesian/layout_attributes\":757,\"../domain\":770}],813:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../components/color\"),a=t(\"../../plot_api/plot_template\"),o=t(\"../subplot_defaults\"),s=t(\"../get_data\").getSubplotData,l=t(\"../cartesian/tick_value_defaults\"),c=t(\"../cartesian/tick_mark_defaults\"),u=t(\"../cartesian/tick_label_defaults\"),f=t(\"../cartesian/category_order_defaults\"),h=t(\"../cartesian/line_grid_defaults\"),p=t(\"../cartesian/axis_autotype\"),d=t(\"./layout_attributes\"),g=t(\"./set_convert\"),v=t(\"./constants\"),m=v.axisNames;function y(t,e,r,o){var p=r(\"bgcolor\");o.bgColor=i.combine(p,o.paper_bgcolor);var y=r(\"sector\");r(\"hole\");var b,_=s(o.fullData,v.name,o.id),w=o.layoutOut;function k(t,e){return r(b+\".\"+t,e)}for(var M=0;M<m.length;M++){b=m[M],n.isPlainObject(t[b])||(t[b]={});var A=t[b],T=a.newContainer(e,b);T._id=T._name=b,T._traceIndices=_.map(function(t){return t._expandedIndex});var S=v.axisName2dataArray[b],E=x(A,T,k,_,S);f(A,T,k,{axData:_,dataAttr:S});var C,L,z=k(\"visible\");switch(g(T,e,w),z&&(L=(C=k(\"color\"))===A.color?C:o.font.color),T._m=1,b){case\"radialaxis\":var O=k(\"autorange\",!T.isValidRange(A.range));A.autorange=O,!O||\"linear\"!==E&&\"-\"!==E||k(\"rangemode\"),\"reversed\"===O&&(T._m=-1),k(\"range\"),T.cleanRange(\"range\",{dfltRange:[0,1]}),z&&(k(\"side\"),k(\"angle\",y[0]),k(\"title\"),n.coerceFont(k,\"titlefont\",{family:o.font.family,size:Math.round(1.2*o.font.size),color:L}));break;case\"angularaxis\":if(\"date\"===E){n.log(\"Polar plots do not support date angular axes yet.\");for(var I=0;I<_.length;I++)_[I].visible=!1;E=A.type=T.type=\"linear\"}k(\"linear\"===E?\"thetaunit\":\"period\");var P=k(\"direction\");k(\"rotation\",{counterclockwise:0,clockwise:90}[P])}if(z)l(A,T,k,T.type),u(A,T,k,T.type,{tickSuffixDflt:\"degrees\"===T.thetaunit?\"\\xb0\":void 0}),c(A,T,k,{outerTicks:!0}),k(\"showticklabels\")&&(n.coerceFont(k,\"tickfont\",{family:o.font.family,size:o.font.size,color:L}),k(\"tickangle\"),k(\"tickformat\")),h(A,T,k,{dfltColor:C,bgColor:o.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:d[b]}),k(\"layer\");\"category\"!==E&&k(\"hoverformat\"),T._input=A}\"category\"===e.angularaxis.type&&r(\"gridshape\")}function x(t,e,r,n,i){if(\"-\"===r(\"type\")){for(var a,o=0;o<n.length;o++)if(n[o].visible){a=n[o];break}a&&a[i]&&(e.type=p(a[i],\"gregorian\")),\"-\"===e.type?e.type=\"linear\":t.type=e.type}return e.type}e.exports=function(t,e,r){o(t,e,r,{type:v.name,attributes:d,handleDefaults:y,font:e.font,paper_bgcolor:e.paper_bgcolor,fullData:r,layoutOut:e})}},{\"../../components/color\":570,\"../../lib\":696,\"../../plot_api/plot_template\":734,\"../cartesian/axis_autotype\":745,\"../cartesian/category_order_defaults\":748,\"../cartesian/line_grid_defaults\":759,\"../cartesian/tick_label_defaults\":764,\"../cartesian/tick_mark_defaults\":765,\"../cartesian/tick_value_defaults\":766,\"../get_data\":781,\"../subplot_defaults\":822,\"./constants\":809,\"./layout_attributes\":812,\"./set_convert\":821}],814:[function(t,e,r){\"use strict\";var n=t(\"../../../traces/scatter/attributes\"),i=n.marker,a=t(\"../../../lib/extend\").extendFlat;[\"Area traces are deprecated!\",\"Please switch to the *barpolar* trace type.\"].join(\" \");e.exports={r:a({},n.r,{}),t:a({},n.t,{}),marker:{color:a({},i.color,{}),size:a({},i.size,{}),symbol:a({},i.symbol,{}),opacity:a({},i.opacity,{}),editType:\"calc\"}}},{\"../../../lib/extend\":685,\"../../../traces/scatter/attributes\":1043}],815:[function(t,e,r){\"use strict\";var n=t(\"../../cartesian/layout_attributes\"),i=t(\"../../../lib/extend\").extendFlat,a=t(\"../../../plot_api/edit_types\").overrideAll,o=[\"Legacy polar charts are deprecated!\",\"Please switch to *polar* subplots.\"].join(\" \"),s=i({},n.domain,{});function l(t,e){return i({},e,{showline:{valType:\"boolean\"},showticklabels:{valType:\"boolean\"},tickorientation:{valType:\"enumerated\",values:[\"horizontal\",\"vertical\"]},ticklen:{valType:\"number\",min:0},tickcolor:{valType:\"color\"},ticksuffix:{valType:\"string\"},endpadding:{valType:\"number\",description:o},visible:{valType:\"boolean\"}})}e.exports=a({radialaxis:l(0,{range:{valType:\"info_array\",items:[{valType:\"number\"},{valType:\"number\"}]},domain:s,orientation:{valType:\"number\"}}),angularaxis:l(0,{range:{valType:\"info_array\",items:[{valType:\"number\",dflt:0},{valType:\"number\",dflt:360}]},domain:s}),layout:{direction:{valType:\"enumerated\",values:[\"clockwise\",\"counterclockwise\"]},orientation:{valType:\"angle\"}}},\"plot\",\"nested\")},{\"../../../lib/extend\":685,\"../../../plot_api/edit_types\":727,\"../../cartesian/layout_attributes\":757}],816:[function(t,e,r){\"use strict\";(e.exports=t(\"./micropolar\")).manager=t(\"./micropolar_manager\")},{\"./micropolar\":817,\"./micropolar_manager\":818}],817:[function(t,e,r){var n=t(\"d3\"),i=t(\"../../../lib\").extendDeepAll,a=t(\"../../../constants/alignment\").MID_SHIFT,o=e.exports={version:\"0.2.2\"};o.Axis=function(){var t,e,r,s,l={data:[],layout:{}},c={},u={},f=n.dispatch(\"hover\"),h={};return h.render=function(c){return function(c){e=c||e;var f=l.data,h=l.layout;(\"string\"==typeof e||e.nodeName)&&(e=n.select(e)),e.datum(f).each(function(e,l){var c=e.slice();u={data:o.util.cloneJson(c),layout:o.util.cloneJson(h)};var f=0;c.forEach(function(t,e){t.color||(t.color=h.defaultColorRange[f],f=(f+1)%h.defaultColorRange.length),t.strokeColor||(t.strokeColor=\"LinePlot\"===t.geometry?t.color:n.rgb(t.color).darker().toString()),u.data[e].color=t.color,u.data[e].strokeColor=t.strokeColor,u.data[e].strokeDash=t.strokeDash,u.data[e].strokeSize=t.strokeSize});var p=c.filter(function(t,e){var r=t.visible;return\"undefined\"==typeof r||!0===r}),d=!1,g=p.map(function(t,e){return d=d||\"undefined\"!=typeof t.groupId,t});if(d){var v=n.nest().key(function(t,e){return\"undefined\"!=typeof t.groupId?t.groupId:\"unstacked\"}).entries(g),m=[],y=v.map(function(t,e){if(\"unstacked\"===t.key)return t.values;var r=t.values[0].r.map(function(t,e){return 0});return t.values.forEach(function(t,e,n){t.yStack=[r],m.push(r),r=o.util.sumArrays(t.r,r)}),t.values});p=n.merge(y)}p.forEach(function(t,e){t.t=Array.isArray(t.t[0])?t.t:[t.t],t.r=Array.isArray(t.r[0])?t.r:[t.r]});var x=Math.min(h.width-h.margin.left-h.margin.right,h.height-h.margin.top-h.margin.bottom)/2;x=Math.max(10,x);var b,_=[h.margin.left+x,h.margin.top+x];b=d?[0,n.max(o.util.sumArrays(o.util.arrayLast(p).r[0],o.util.arrayLast(m)))]:n.extent(o.util.flattenArray(p.map(function(t,e){return t.r}))),h.radialAxis.domain!=o.DATAEXTENT&&(b[0]=0),r=n.scale.linear().domain(h.radialAxis.domain!=o.DATAEXTENT&&h.radialAxis.domain?h.radialAxis.domain:b).range([0,x]),u.layout.radialAxis.domain=r.domain();var w,k=o.util.flattenArray(p.map(function(t,e){return t.t})),M=\"string\"==typeof k[0];M&&(k=o.util.deduplicate(k),w=k.slice(),k=n.range(k.length),p=p.map(function(t,e){var r=t;return t.t=[k],d&&(r.yStack=t.yStack),r}));var A=p.filter(function(t,e){return\"LinePlot\"===t.geometry||\"DotPlot\"===t.geometry}).length===p.length,T=null===h.needsEndSpacing?M||!A:h.needsEndSpacing,S=h.angularAxis.domain&&h.angularAxis.domain!=o.DATAEXTENT&&!M&&h.angularAxis.domain[0]>=0?h.angularAxis.domain:n.extent(k),E=Math.abs(k[1]-k[0]);A&&!M&&(E=0);var C=S.slice();T&&M&&(C[1]+=E);var L=h.angularAxis.ticksCount||4;L>8&&(L=L/(L/8)+L%8),h.angularAxis.ticksStep&&(L=(C[1]-C[0])/L);var z=h.angularAxis.ticksStep||(C[1]-C[0])/(L*(h.minorTicks+1));w&&(z=Math.max(Math.round(z),1)),C[2]||(C[2]=z);var O=n.range.apply(this,C);if(O=O.map(function(t,e){return parseFloat(t.toPrecision(12))}),s=n.scale.linear().domain(C.slice(0,2)).range(\"clockwise\"===h.direction?[0,360]:[360,0]),u.layout.angularAxis.domain=s.domain(),u.layout.angularAxis.endPadding=T?E:0,\"undefined\"==typeof(t=n.select(this).select(\"svg.chart-root\"))||t.empty()){var I=(new DOMParser).parseFromString(\"<svg xmlns='http://www.w3.org/2000/svg' class='chart-root'>' + '<g class='outer-group'>' + '<g class='chart-group'>' + '<circle class='background-circle'></circle>' + '<g class='geometry-group'></g>' + '<g class='radial axis-group'>' + '<circle class='outside-circle'></circle>' + '</g>' + '<g class='angular axis-group'></g>' + '<g class='guides-group'><line></line><circle r='0'></circle></g>' + '</g>' + '<g class='legend-group'></g>' + '<g class='tooltips-group'></g>' + '<g class='title-group'><text></text></g>' + '</g>' + '</svg>\",\"application/xml\"),P=this.appendChild(this.ownerDocument.importNode(I.documentElement,!0));t=n.select(P)}t.select(\".guides-group\").style({\"pointer-events\":\"none\"}),t.select(\".angular.axis-group\").style({\"pointer-events\":\"none\"}),t.select(\".radial.axis-group\").style({\"pointer-events\":\"none\"});var D,R=t.select(\".chart-group\"),B={fill:\"none\",stroke:h.tickColor},F={\"font-size\":h.font.size,\"font-family\":h.font.family,fill:h.font.color,\"text-shadow\":[\"-1px 0px\",\"1px -1px\",\"-1px 1px\",\"1px 1px\"].map(function(t,e){return\" \"+t+\" 0 \"+h.font.outlineColor}).join(\",\")};if(h.showLegend){D=t.select(\".legend-group\").attr({transform:\"translate(\"+[x,h.margin.top]+\")\"}).style({display:\"block\"});var N=p.map(function(t,e){var r=o.util.cloneJson(t);return r.symbol=\"DotPlot\"===t.geometry?t.dotType||\"circle\":\"LinePlot\"!=t.geometry?\"square\":\"line\",r.visibleInLegend=\"undefined\"==typeof t.visibleInLegend||t.visibleInLegend,r.color=\"LinePlot\"===t.geometry?t.strokeColor:t.color,r});o.Legend().config({data:p.map(function(t,e){return t.name||\"Element\"+e}),legendConfig:i({},o.Legend.defaultConfig().legendConfig,{container:D,elements:N,reverseOrder:h.legend.reverseOrder})})();var j=D.node().getBBox();x=Math.min(h.width-j.width-h.margin.left-h.margin.right,h.height-h.margin.top-h.margin.bottom)/2,x=Math.max(10,x),_=[h.margin.left+x,h.margin.top+x],r.range([0,x]),u.layout.radialAxis.domain=r.domain(),D.attr(\"transform\",\"translate(\"+[_[0]+x,_[1]-x]+\")\")}else D=t.select(\".legend-group\").style({display:\"none\"});t.attr({width:h.width,height:h.height}).style({opacity:h.opacity}),R.attr(\"transform\",\"translate(\"+_+\")\").style({cursor:\"crosshair\"});var V=[(h.width-(h.margin.left+h.margin.right+2*x+(j?j.width:0)))/2,(h.height-(h.margin.top+h.margin.bottom+2*x))/2];if(V[0]=Math.max(0,V[0]),V[1]=Math.max(0,V[1]),t.select(\".outer-group\").attr(\"transform\",\"translate(\"+V+\")\"),h.title){var U=t.select(\"g.title-group text\").style(F).text(h.title),q=U.node().getBBox();U.attr({x:_[0]-q.width/2,y:_[1]-x-20})}var H=t.select(\".radial.axis-group\");if(h.radialAxis.gridLinesVisible){var G=H.selectAll(\"circle.grid-circle\").data(r.ticks(5));G.enter().append(\"circle\").attr({class:\"grid-circle\"}).style(B),G.attr(\"r\",r),G.exit().remove()}H.select(\"circle.outside-circle\").attr({r:x}).style(B);var W=t.select(\"circle.background-circle\").attr({r:x}).style({fill:h.backgroundColor,stroke:h.stroke});function Y(t,e){return s(t)%360+h.orientation}if(h.radialAxis.visible){var X=n.svg.axis().scale(r).ticks(5).tickSize(5);H.call(X).attr({transform:\"rotate(\"+h.radialAxis.orientation+\")\"}),H.selectAll(\".domain\").style(B),H.selectAll(\"g>text\").text(function(t,e){return this.textContent+h.radialAxis.ticksSuffix}).style(F).style({\"text-anchor\":\"start\"}).attr({x:0,y:0,dx:0,dy:0,transform:function(t,e){return\"horizontal\"===h.radialAxis.tickOrientation?\"rotate(\"+-h.radialAxis.orientation+\") translate(\"+[0,F[\"font-size\"]]+\")\":\"translate(\"+[0,F[\"font-size\"]]+\")\"}}),H.selectAll(\"g>line\").style({stroke:\"black\"})}var Z=t.select(\".angular.axis-group\").selectAll(\"g.angular-tick\").data(O),$=Z.enter().append(\"g\").classed(\"angular-tick\",!0);Z.attr({transform:function(t,e){return\"rotate(\"+Y(t)+\")\"}}).style({display:h.angularAxis.visible?\"block\":\"none\"}),Z.exit().remove(),$.append(\"line\").classed(\"grid-line\",!0).classed(\"major\",function(t,e){return e%(h.minorTicks+1)==0}).classed(\"minor\",function(t,e){return!(e%(h.minorTicks+1)==0)}).style(B),$.selectAll(\".minor\").style({stroke:h.minorTickColor}),Z.select(\"line.grid-line\").attr({x1:h.tickLength?x-h.tickLength:0,x2:x}).style({display:h.angularAxis.gridLinesVisible?\"block\":\"none\"}),$.append(\"text\").classed(\"axis-text\",!0).style(F);var J=Z.select(\"text.axis-text\").attr({x:x+h.labelOffset,dy:a+\"em\",transform:function(t,e){var r=Y(t),n=x+h.labelOffset,i=h.angularAxis.tickOrientation;return\"horizontal\"==i?\"rotate(\"+-r+\" \"+n+\" 0)\":\"radial\"==i?r<270&&r>90?\"rotate(180 \"+n+\" 0)\":null:\"rotate(\"+(r<=180&&r>0?-90:90)+\" \"+n+\" 0)\"}}).style({\"text-anchor\":\"middle\",display:h.angularAxis.labelsVisible?\"block\":\"none\"}).text(function(t,e){return e%(h.minorTicks+1)!=0?\"\":w?w[t]+h.angularAxis.ticksSuffix:t+h.angularAxis.ticksSuffix}).style(F);h.angularAxis.rewriteTicks&&J.text(function(t,e){return e%(h.minorTicks+1)!=0?\"\":h.angularAxis.rewriteTicks(this.textContent,e)});var K=n.max(R.selectAll(\".angular-tick text\")[0].map(function(t,e){return t.getCTM().e+t.getBBox().width}));D.attr({transform:\"translate(\"+[x+K,h.margin.top]+\")\"});var Q=t.select(\"g.geometry-group\").selectAll(\"g\").size()>0,tt=t.select(\"g.geometry-group\").selectAll(\"g.geometry\").data(p);if(tt.enter().append(\"g\").attr({class:function(t,e){return\"geometry geometry\"+e}}),tt.exit().remove(),p[0]||Q){var et=[];p.forEach(function(t,e){var n={};n.radialScale=r,n.angularScale=s,n.container=tt.filter(function(t,r){return r==e}),n.geometry=t.geometry,n.orientation=h.orientation,n.direction=h.direction,n.index=e,et.push({data:t,geometryConfig:n})});var rt=n.nest().key(function(t,e){return\"undefined\"!=typeof t.data.groupId||\"unstacked\"}).entries(et),nt=[];rt.forEach(function(t,e){\"unstacked\"===t.key?nt=nt.concat(t.values.map(function(t,e){return[t]})):nt.push(t.values)}),nt.forEach(function(t,e){var r;r=Array.isArray(t)?t[0].geometryConfig.geometry:t.geometryConfig.geometry;var n=t.map(function(t,e){return i(o[r].defaultConfig(),t)});o[r]().config(n)()})}var it,at,ot=t.select(\".guides-group\"),st=t.select(\".tooltips-group\"),lt=o.tooltipPanel().config({container:st,fontSize:8})(),ct=o.tooltipPanel().config({container:st,fontSize:8})(),ut=o.tooltipPanel().config({container:st,hasTick:!0})();if(!M){var ft=ot.select(\"line\").attr({x1:0,y1:0,y2:0}).style({stroke:\"grey\",\"pointer-events\":\"none\"});R.on(\"mousemove.angular-guide\",function(t,e){var r=o.util.getMousePos(W).angle;ft.attr({x2:-x,transform:\"rotate(\"+r+\")\"}).style({opacity:.5});var n=(r+180+360-h.orientation)%360;it=s.invert(n);var i=o.util.convertToCartesian(x+12,r+180);lt.text(o.util.round(it)).move([i[0]+_[0],i[1]+_[1]])}).on(\"mouseout.angular-guide\",function(t,e){ot.select(\"line\").style({opacity:0})})}var ht=ot.select(\"circle\").style({stroke:\"grey\",fill:\"none\"});R.on(\"mousemove.radial-guide\",function(t,e){var n=o.util.getMousePos(W).radius;ht.attr({r:n}).style({opacity:.5}),at=r.invert(o.util.getMousePos(W).radius);var i=o.util.convertToCartesian(n,h.radialAxis.orientation);ct.text(o.util.round(at)).move([i[0]+_[0],i[1]+_[1]])}).on(\"mouseout.radial-guide\",function(t,e){ht.style({opacity:0}),ut.hide(),lt.hide(),ct.hide()}),t.selectAll(\".geometry-group .mark\").on(\"mouseover.tooltip\",function(e,r){var i=n.select(this),a=this.style.fill,s=\"black\",l=this.style.opacity||1;if(i.attr({\"data-opacity\":l}),a&&\"none\"!==a){i.attr({\"data-fill\":a}),s=n.hsl(a).darker().toString(),i.style({fill:s,opacity:1});var c={t:o.util.round(e[0]),r:o.util.round(e[1])};M&&(c.t=w[e[0]]);var u=\"t: \"+c.t+\", r: \"+c.r,f=this.getBoundingClientRect(),h=t.node().getBoundingClientRect(),p=[f.left+f.width/2-V[0]-h.left,f.top+f.height/2-V[1]-h.top];ut.config({color:s}).text(u),ut.move(p)}else a=this.style.stroke||\"black\",i.attr({\"data-stroke\":a}),s=n.hsl(a).darker().toString(),i.style({stroke:s,opacity:1})}).on(\"mousemove.tooltip\",function(t,e){if(0!=n.event.which)return!1;n.select(this).attr(\"data-fill\")&&ut.show()}).on(\"mouseout.tooltip\",function(t,e){ut.hide();var r=n.select(this),i=r.attr(\"data-fill\");i?r.style({fill:i,opacity:r.attr(\"data-opacity\")}):r.style({stroke:r.attr(\"data-stroke\"),opacity:r.attr(\"data-opacity\")})})})}(c),this},h.config=function(t){if(!arguments.length)return l;var e=o.util.cloneJson(t);return e.data.forEach(function(t,e){l.data[e]||(l.data[e]={}),i(l.data[e],o.Axis.defaultConfig().data[0]),i(l.data[e],t)}),i(l.layout,o.Axis.defaultConfig().layout),i(l.layout,e.layout),this},h.getLiveConfig=function(){return u},h.getinputConfig=function(){return c},h.radialScale=function(t){return r},h.angularScale=function(t){return s},h.svg=function(){return t},n.rebind(h,f,\"on\"),h},o.Axis.defaultConfig=function(t,e){return{data:[{t:[1,2,3,4],r:[10,11,12,13],name:\"Line1\",geometry:\"LinePlot\",color:null,strokeDash:\"solid\",strokeColor:null,strokeSize:\"1\",visibleInLegend:!0,opacity:1}],layout:{defaultColorRange:n.scale.category10().range(),title:null,height:450,width:500,margin:{top:40,right:40,bottom:40,left:40},font:{size:12,color:\"gray\",outlineColor:\"white\",family:\"Tahoma, sans-serif\"},direction:\"clockwise\",orientation:0,labelOffset:10,radialAxis:{domain:null,orientation:-45,ticksSuffix:\"\",visible:!0,gridLinesVisible:!0,tickOrientation:\"horizontal\",rewriteTicks:null},angularAxis:{domain:[0,360],ticksSuffix:\"\",visible:!0,gridLinesVisible:!0,labelsVisible:!0,tickOrientation:\"horizontal\",rewriteTicks:null,ticksCount:null,ticksStep:null},minorTicks:0,tickLength:null,tickColor:\"silver\",minorTickColor:\"#eee\",backgroundColor:\"none\",needsEndSpacing:null,showLegend:!0,legend:{reverseOrder:!1},opacity:1}}},o.util={},o.DATAEXTENT=\"dataExtent\",o.AREA=\"AreaChart\",o.LINE=\"LinePlot\",o.DOT=\"DotPlot\",o.BAR=\"BarChart\",o.util._override=function(t,e){for(var r in t)r in e&&(e[r]=t[r])},o.util._extend=function(t,e){for(var r in t)e[r]=t[r]},o.util._rndSnd=function(){return 2*Math.random()-1+(2*Math.random()-1)+(2*Math.random()-1)},o.util.dataFromEquation2=function(t,e){var r=e||6;return n.range(0,360+r,r).map(function(e,r){var n=e*Math.PI/180;return[e,t(n)]})},o.util.dataFromEquation=function(t,e,r){var i=e||6,a=[],o=[];n.range(0,360+i,i).forEach(function(e,r){var n=e*Math.PI/180,i=t(n);a.push(e),o.push(i)});var s={t:a,r:o};return r&&(s.name=r),s},o.util.ensureArray=function(t,e){if(\"undefined\"==typeof t)return null;var r=[].concat(t);return n.range(e).map(function(t,e){return r[e]||r[0]})},o.util.fillArrays=function(t,e,r){return e.forEach(function(e,n){t[e]=o.util.ensureArray(t[e],r)}),t},o.util.cloneJson=function(t){return JSON.parse(JSON.stringify(t))},o.util.validateKeys=function(t,e){\"string\"==typeof e&&(e=e.split(\".\"));var r=e.shift();return t[r]&&(!e.length||objHasKeys(t[r],e))},o.util.sumArrays=function(t,e){return n.zip(t,e).map(function(t,e){return n.sum(t)})},o.util.arrayLast=function(t){return t[t.length-1]},o.util.arrayEqual=function(t,e){for(var r=Math.max(t.length,e.length,1);r-- >=0&&t[r]===e[r];);return-2===r},o.util.flattenArray=function(t){for(var e=[];!o.util.arrayEqual(e,t);)e=t,t=[].concat.apply([],t);return t},o.util.deduplicate=function(t){return t.filter(function(t,e,r){return r.indexOf(t)==e})},o.util.convertToCartesian=function(t,e){var r=e*Math.PI/180;return[t*Math.cos(r),t*Math.sin(r)]},o.util.round=function(t,e){var r=e||2,n=Math.pow(10,r);return Math.round(t*n)/n},o.util.getMousePos=function(t){var e=n.mouse(t.node()),r=e[0],i=e[1],a={};return a.x=r,a.y=i,a.pos=e,a.angle=180*(Math.atan2(i,r)+Math.PI)/Math.PI,a.radius=Math.sqrt(r*r+i*i),a},o.util.duplicatesCount=function(t){for(var e,r={},n={},i=0,a=t.length;i<a;i++)(e=t[i])in r?(r[e]++,n[e]=r[e]):r[e]=1;return n},o.util.duplicates=function(t){return Object.keys(o.util.duplicatesCount(t))},o.util.translator=function(t,e,r,n){if(n){var i=r.slice();r=e,e=i}var a=e.reduce(function(t,e){if(\"undefined\"!=typeof t)return t[e]},t);\"undefined\"!=typeof a&&(e.reduce(function(t,r,n){if(\"undefined\"!=typeof t)return n===e.length-1&&delete t[r],t[r]},t),r.reduce(function(t,e,n){return\"undefined\"==typeof t[e]&&(t[e]={}),n===r.length-1&&(t[e]=a),t[e]},t))},o.PolyChart=function(){var t=[o.PolyChart.defaultConfig()],e=n.dispatch(\"hover\"),r={solid:\"none\",dash:[5,2],dot:[2,5]};function a(){var e=t[0].geometryConfig,i=e.container;\"string\"==typeof i&&(i=n.select(i)),i.datum(t).each(function(t,i){var a=!!t[0].data.yStack,o=t.map(function(t,e){return a?n.zip(t.data.t[0],t.data.r[0],t.data.yStack[0]):n.zip(t.data.t[0],t.data.r[0])}),s=e.angularScale,l=e.radialScale.domain()[0],c={bar:function(r,i,a){var o=t[a].data,l=e.radialScale(r[1])-e.radialScale(0),c=e.radialScale(r[2]||0),u=o.barWidth;n.select(this).attr({class:\"mark bar\",d:\"M\"+[[l+c,-u/2],[l+c,u/2],[c,u/2],[c,-u/2]].join(\"L\")+\"Z\",transform:function(t,r){return\"rotate(\"+(e.orientation+s(t[0]))+\")\"}})}};c.dot=function(r,i,a){var o=r[2]?[r[0],r[1]+r[2]]:r,s=n.svg.symbol().size(t[a].data.dotSize).type(t[a].data.dotType)(r,i);n.select(this).attr({class:\"mark dot\",d:s,transform:function(t,r){var n,i,a,s=(n=function(t,r){var n=e.radialScale(t[1]),i=(e.angularScale(t[0])+e.orientation)*Math.PI/180;return{r:n,t:i}}(o),i=n.r*Math.cos(n.t),a=n.r*Math.sin(n.t),{x:i,y:a});return\"translate(\"+[s.x,s.y]+\")\"}})};var u=n.svg.line.radial().interpolate(t[0].data.lineInterpolation).radius(function(t){return e.radialScale(t[1])}).angle(function(t){return e.angularScale(t[0])*Math.PI/180});c.line=function(r,i,a){var s=r[2]?o[a].map(function(t,e){return[t[0],t[1]+t[2]]}):o[a];if(n.select(this).each(c.dot).style({opacity:function(e,r){return+t[a].data.dotVisible},fill:d.stroke(r,i,a)}).attr({class:\"mark dot\"}),!(i>0)){var l=n.select(this.parentNode).selectAll(\"path.line\").data([0]);l.enter().insert(\"path\"),l.attr({class:\"line\",d:u(s),transform:function(t,r){return\"rotate(\"+(e.orientation+90)+\")\"},\"pointer-events\":\"none\"}).style({fill:function(t,e){return d.fill(r,i,a)},\"fill-opacity\":0,stroke:function(t,e){return d.stroke(r,i,a)},\"stroke-width\":function(t,e){return d[\"stroke-width\"](r,i,a)},\"stroke-dasharray\":function(t,e){return d[\"stroke-dasharray\"](r,i,a)},opacity:function(t,e){return d.opacity(r,i,a)},display:function(t,e){return d.display(r,i,a)}})}};var f=e.angularScale.range(),h=Math.abs(f[1]-f[0])/o[0].length*Math.PI/180,p=n.svg.arc().startAngle(function(t){return-h/2}).endAngle(function(t){return h/2}).innerRadius(function(t){return e.radialScale(l+(t[2]||0))}).outerRadius(function(t){return e.radialScale(l+(t[2]||0))+e.radialScale(t[1])});c.arc=function(t,r,i){n.select(this).attr({class:\"mark arc\",d:p,transform:function(t,r){return\"rotate(\"+(e.orientation+s(t[0])+90)+\")\"}})};var d={fill:function(e,r,n){return t[n].data.color},stroke:function(e,r,n){return t[n].data.strokeColor},\"stroke-width\":function(e,r,n){return t[n].data.strokeSize+\"px\"},\"stroke-dasharray\":function(e,n,i){return r[t[i].data.strokeDash]},opacity:function(e,r,n){return t[n].data.opacity},display:function(e,r,n){return\"undefined\"==typeof t[n].data.visible||t[n].data.visible?\"block\":\"none\"}},g=n.select(this).selectAll(\"g.layer\").data(o);g.enter().append(\"g\").attr({class:\"layer\"});var v=g.selectAll(\"path.mark\").data(function(t,e){return t});v.enter().append(\"path\").attr({class:\"mark\"}),v.style(d).each(c[e.geometryType]),v.exit().remove(),g.exit().remove()})}return a.config=function(e){return arguments.length?(e.forEach(function(e,r){t[r]||(t[r]={}),i(t[r],o.PolyChart.defaultConfig()),i(t[r],e)}),this):t},a.getColorScale=function(){},n.rebind(a,e,\"on\"),a},o.PolyChart.defaultConfig=function(){return{data:{name:\"geom1\",t:[[1,2,3,4]],r:[[1,2,3,4]],dotType:\"circle\",dotSize:64,dotVisible:!1,barWidth:20,color:\"#ffa500\",strokeSize:1,strokeColor:\"silver\",strokeDash:\"solid\",opacity:1,index:0,visible:!0,visibleInLegend:!0},geometryConfig:{geometry:\"LinePlot\",geometryType:\"arc\",direction:\"clockwise\",orientation:0,container:\"body\",radialScale:null,angularScale:null,colorScale:n.scale.category20()}}},o.BarChart=function(){return o.PolyChart()},o.BarChart.defaultConfig=function(){return{geometryConfig:{geometryType:\"bar\"}}},o.AreaChart=function(){return o.PolyChart()},o.AreaChart.defaultConfig=function(){return{geometryConfig:{geometryType:\"arc\"}}},o.DotPlot=function(){return o.PolyChart()},o.DotPlot.defaultConfig=function(){return{geometryConfig:{geometryType:\"dot\",dotType:\"circle\"}}},o.LinePlot=function(){return o.PolyChart()},o.LinePlot.defaultConfig=function(){return{geometryConfig:{geometryType:\"line\"}}},o.Legend=function(){var t=o.Legend.defaultConfig(),e=n.dispatch(\"hover\");function r(){var e=t.legendConfig,a=t.data.map(function(t,r){return[].concat(t).map(function(t,n){var a=i({},e.elements[r]);return a.name=t,a.color=[].concat(e.elements[r].color)[n],a})}),o=n.merge(a);o=o.filter(function(t,r){return e.elements[r]&&(e.elements[r].visibleInLegend||\"undefined\"==typeof e.elements[r].visibleInLegend)}),e.reverseOrder&&(o=o.reverse());var s=e.container;(\"string\"==typeof s||s.nodeName)&&(s=n.select(s));var l=o.map(function(t,e){return t.color}),c=e.fontSize,u=null==e.isContinuous?\"number\"==typeof o[0]:e.isContinuous,f=u?e.height:c*o.length,h=s.classed(\"legend-group\",!0).selectAll(\"svg\").data([0]),p=h.enter().append(\"svg\").attr({width:300,height:f+c,xmlns:\"http://www.w3.org/2000/svg\",\"xmlns:xlink\":\"http://www.w3.org/1999/xlink\",version:\"1.1\"});p.append(\"g\").classed(\"legend-axis\",!0),p.append(\"g\").classed(\"legend-marks\",!0);var d=n.range(o.length),g=n.scale[u?\"linear\":\"ordinal\"]().domain(d).range(l),v=n.scale[u?\"linear\":\"ordinal\"]().domain(d)[u?\"range\":\"rangePoints\"]([0,f]);if(u){var m=h.select(\".legend-marks\").append(\"defs\").append(\"linearGradient\").attr({id:\"grad1\",x1:\"0%\",y1:\"0%\",x2:\"0%\",y2:\"100%\"}).selectAll(\"stop\").data(l);m.enter().append(\"stop\"),m.attr({offset:function(t,e){return e/(l.length-1)*100+\"%\"}}).style({\"stop-color\":function(t,e){return t}}),h.append(\"rect\").classed(\"legend-mark\",!0).attr({height:e.height,width:e.colorBandWidth,fill:\"url(#grad1)\"})}else{var y=h.select(\".legend-marks\").selectAll(\"path.legend-mark\").data(o);y.enter().append(\"path\").classed(\"legend-mark\",!0),y.attr({transform:function(t,e){return\"translate(\"+[c/2,v(e)+c/2]+\")\"},d:function(t,e){var r,i,a,o=t.symbol;return a=3*(i=c),\"line\"===(r=o)?\"M\"+[[-i/2,-i/12],[i/2,-i/12],[i/2,i/12],[-i/2,i/12]]+\"Z\":-1!=n.svg.symbolTypes.indexOf(r)?n.svg.symbol().type(r).size(a)():n.svg.symbol().type(\"square\").size(a)()},fill:function(t,e){return g(e)}}),y.exit().remove()}var x=n.svg.axis().scale(v).orient(\"right\"),b=h.select(\"g.legend-axis\").attr({transform:\"translate(\"+[u?e.colorBandWidth:c,c/2]+\")\"}).call(x);return b.selectAll(\".domain\").style({fill:\"none\",stroke:\"none\"}),b.selectAll(\"line\").style({fill:\"none\",stroke:u?e.textColor:\"none\"}),b.selectAll(\"text\").style({fill:e.textColor,\"font-size\":e.fontSize}).text(function(t,e){return o[e].name}),r}return r.config=function(e){return arguments.length?(i(t,e),this):t},n.rebind(r,e,\"on\"),r},o.Legend.defaultConfig=function(t,e){return{data:[\"a\",\"b\",\"c\"],legendConfig:{elements:[{symbol:\"line\",color:\"red\"},{symbol:\"square\",color:\"yellow\"},{symbol:\"diamond\",color:\"limegreen\"}],height:150,colorBandWidth:30,fontSize:12,container:\"body\",isContinuous:null,textColor:\"grey\",reverseOrder:!1}}},o.tooltipPanel=function(){var t,e,r,a={container:null,hasTick:!1,fontSize:12,color:\"white\",padding:5},s=\"tooltip-\"+o.tooltipPanel.uid++,l=10,c=function(){var n=(t=a.container.selectAll(\"g.\"+s).data([0])).enter().append(\"g\").classed(s,!0).style({\"pointer-events\":\"none\",display:\"none\"});return r=n.append(\"path\").style({fill:\"white\",\"fill-opacity\":.9}).attr({d:\"M0 0\"}),e=n.append(\"text\").attr({dx:a.padding+l,dy:.3*+a.fontSize}),c};return c.text=function(i){var o=n.hsl(a.color).l,s=o>=.5?\"#aaa\":\"white\",u=o>=.5?\"black\":\"white\",f=i||\"\";e.style({fill:u,\"font-size\":a.fontSize+\"px\"}).text(f);var h=a.padding,p=e.node().getBBox(),d={fill:a.color,stroke:s,\"stroke-width\":\"2px\"},g=p.width+2*h+l,v=p.height+2*h;return r.attr({d:\"M\"+[[l,-v/2],[l,-v/4],[a.hasTick?0:l,0],[l,v/4],[l,v/2],[g,v/2],[g,-v/2]].join(\"L\")+\"Z\"}).style(d),t.attr({transform:\"translate(\"+[l,-v/2+2*h]+\")\"}),t.style({display:\"block\"}),c},c.move=function(e){if(t)return t.attr({transform:\"translate(\"+[e[0],e[1]]+\")\"}).style({display:\"block\"}),c},c.hide=function(){if(t)return t.style({display:\"none\"}),c},c.show=function(){if(t)return t.style({display:\"block\"}),c},c.config=function(t){return i(a,t),c},c},o.tooltipPanel.uid=1,o.adapter={},o.adapter.plotly=function(){var t={convert:function(t,e){var r={};if(t.data&&(r.data=t.data.map(function(t,r){var n=i({},t);return[[n,[\"marker\",\"color\"],[\"color\"]],[n,[\"marker\",\"opacity\"],[\"opacity\"]],[n,[\"marker\",\"line\",\"color\"],[\"strokeColor\"]],[n,[\"marker\",\"line\",\"dash\"],[\"strokeDash\"]],[n,[\"marker\",\"line\",\"width\"],[\"strokeSize\"]],[n,[\"marker\",\"symbol\"],[\"dotType\"]],[n,[\"marker\",\"size\"],[\"dotSize\"]],[n,[\"marker\",\"barWidth\"],[\"barWidth\"]],[n,[\"line\",\"interpolation\"],[\"lineInterpolation\"]],[n,[\"showlegend\"],[\"visibleInLegend\"]]].forEach(function(t,r){o.util.translator.apply(null,t.concat(e))}),e||delete n.marker,e&&delete n.groupId,e?(\"LinePlot\"===n.geometry?(n.type=\"scatter\",!0===n.dotVisible?(delete n.dotVisible,n.mode=\"lines+markers\"):n.mode=\"lines\"):\"DotPlot\"===n.geometry?(n.type=\"scatter\",n.mode=\"markers\"):\"AreaChart\"===n.geometry?n.type=\"area\":\"BarChart\"===n.geometry&&(n.type=\"bar\"),delete n.geometry):(\"scatter\"===n.type?\"lines\"===n.mode?n.geometry=\"LinePlot\":\"markers\"===n.mode?n.geometry=\"DotPlot\":\"lines+markers\"===n.mode&&(n.geometry=\"LinePlot\",n.dotVisible=!0):\"area\"===n.type?n.geometry=\"AreaChart\":\"bar\"===n.type&&(n.geometry=\"BarChart\"),delete n.mode,delete n.type),n}),!e&&t.layout&&\"stack\"===t.layout.barmode)){var a=o.util.duplicates(r.data.map(function(t,e){return t.geometry}));r.data.forEach(function(t,e){var n=a.indexOf(t.geometry);-1!=n&&(r.data[e].groupId=n)})}if(t.layout){var s=i({},t.layout);if([[s,[\"plot_bgcolor\"],[\"backgroundColor\"]],[s,[\"showlegend\"],[\"showLegend\"]],[s,[\"radialaxis\"],[\"radialAxis\"]],[s,[\"angularaxis\"],[\"angularAxis\"]],[s.angularaxis,[\"showline\"],[\"gridLinesVisible\"]],[s.angularaxis,[\"showticklabels\"],[\"labelsVisible\"]],[s.angularaxis,[\"nticks\"],[\"ticksCount\"]],[s.angularaxis,[\"tickorientation\"],[\"tickOrientation\"]],[s.angularaxis,[\"ticksuffix\"],[\"ticksSuffix\"]],[s.angularaxis,[\"range\"],[\"domain\"]],[s.angularaxis,[\"endpadding\"],[\"endPadding\"]],[s.radialaxis,[\"showline\"],[\"gridLinesVisible\"]],[s.radialaxis,[\"tickorientation\"],[\"tickOrientation\"]],[s.radialaxis,[\"ticksuffix\"],[\"ticksSuffix\"]],[s.radialaxis,[\"range\"],[\"domain\"]],[s.angularAxis,[\"showline\"],[\"gridLinesVisible\"]],[s.angularAxis,[\"showticklabels\"],[\"labelsVisible\"]],[s.angularAxis,[\"nticks\"],[\"ticksCount\"]],[s.angularAxis,[\"tickorientation\"],[\"tickOrientation\"]],[s.angularAxis,[\"ticksuffix\"],[\"ticksSuffix\"]],[s.angularAxis,[\"range\"],[\"domain\"]],[s.angularAxis,[\"endpadding\"],[\"endPadding\"]],[s.radialAxis,[\"showline\"],[\"gridLinesVisible\"]],[s.radialAxis,[\"tickorientation\"],[\"tickOrientation\"]],[s.radialAxis,[\"ticksuffix\"],[\"ticksSuffix\"]],[s.radialAxis,[\"range\"],[\"domain\"]],[s.font,[\"outlinecolor\"],[\"outlineColor\"]],[s.legend,[\"traceorder\"],[\"reverseOrder\"]],[s,[\"labeloffset\"],[\"labelOffset\"]],[s,[\"defaultcolorrange\"],[\"defaultColorRange\"]]].forEach(function(t,r){o.util.translator.apply(null,t.concat(e))}),e?(\"undefined\"!=typeof s.tickLength&&(s.angularaxis.ticklen=s.tickLength,delete s.tickLength),s.tickColor&&(s.angularaxis.tickcolor=s.tickColor,delete s.tickColor)):(s.angularAxis&&\"undefined\"!=typeof s.angularAxis.ticklen&&(s.tickLength=s.angularAxis.ticklen),s.angularAxis&&\"undefined\"!=typeof s.angularAxis.tickcolor&&(s.tickColor=s.angularAxis.tickcolor)),s.legend&&\"boolean\"!=typeof s.legend.reverseOrder&&(s.legend.reverseOrder=\"normal\"!=s.legend.reverseOrder),s.legend&&\"boolean\"==typeof s.legend.traceorder&&(s.legend.traceorder=s.legend.traceorder?\"reversed\":\"normal\",delete s.legend.reverseOrder),s.margin&&\"undefined\"!=typeof s.margin.t){var l=[\"t\",\"r\",\"b\",\"l\",\"pad\"],c=[\"top\",\"right\",\"bottom\",\"left\",\"pad\"],u={};n.entries(s.margin).forEach(function(t,e){u[c[l.indexOf(t.key)]]=t.value}),s.margin=u}e&&(delete s.needsEndSpacing,delete s.minorTickColor,delete s.minorTicks,delete s.angularaxis.ticksCount,delete s.angularaxis.ticksCount,delete s.angularaxis.ticksStep,delete s.angularaxis.rewriteTicks,delete s.angularaxis.nticks,delete s.radialaxis.ticksCount,delete s.radialaxis.ticksCount,delete s.radialaxis.ticksStep,delete s.radialaxis.rewriteTicks,delete s.radialaxis.nticks),r.layout=s}return r}};return t}},{\"../../../constants/alignment\":668,\"../../../lib\":696,d3:148}],818:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../../../lib\"),a=t(\"../../../components/color\"),o=t(\"./micropolar\"),s=t(\"./undo_manager\"),l=i.extendDeepAll,c=e.exports={};c.framework=function(t){var e,r,i,a,u,f=new s;function h(r,s){return s&&(u=s),n.select(n.select(u).node().parentNode).selectAll(\".svg-container>*:not(.chart-root)\").remove(),e=e?l(e,r):r,i||(i=o.Axis()),a=o.adapter.plotly().convert(e),i.config(a).render(u),t.data=e.data,t.layout=e.layout,c.fillLayout(t),e}return h.isPolar=!0,h.svg=function(){return i.svg()},h.getConfig=function(){return e},h.getLiveConfig=function(){return o.adapter.plotly().convert(i.getLiveConfig(),!0)},h.getLiveScales=function(){return{t:i.angularScale(),r:i.radialScale()}},h.setUndoPoint=function(){var t,n,i=this,a=o.util.cloneJson(e);t=a,n=r,f.add({undo:function(){n&&i(n)},redo:function(){i(t)}}),r=o.util.cloneJson(a)},h.undo=function(){f.undo()},h.redo=function(){f.redo()},h},c.fillLayout=function(t){var e=n.select(t).selectAll(\".plot-container\"),r=e.selectAll(\".svg-container\"),i=t.framework&&t.framework.svg&&t.framework.svg(),o={width:800,height:600,paper_bgcolor:a.background,_container:e,_paperdiv:r,_paper:i};t._fullLayout=l(o,t.layout)}},{\"../../../components/color\":570,\"../../../lib\":696,\"./micropolar\":817,\"./undo_manager\":819,d3:148}],819:[function(t,e,r){\"use strict\";e.exports=function(){var t,e=[],r=-1,n=!1;function i(t,e){return t?(n=!0,t[e](),n=!1,this):this}return{add:function(t){return n?this:(e.splice(r+1,e.length-r),e.push(t),r=e.length-1,this)},setCallback:function(e){t=e},undo:function(){var n=e[r];return n?(i(n,\"undo\"),r-=1,t&&t(n.undo),this):this},redo:function(){var n=e[r+1];return n?(i(n,\"redo\"),r+=1,t&&t(n.redo),this):this},clear:function(){e=[],r=-1},hasUndo:function(){return-1!==r},hasRedo:function(){return r<e.length-1},getCommands:function(){return e},getPreviousCommand:function(){return e[r-1]},getIndex:function(){return r}}}},{}],820:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"tinycolor2\"),a=t(\"../../registry\"),o=t(\"../../lib\"),s=t(\"../../components/color\"),l=t(\"../../components/drawing\"),c=t(\"../plots\"),u=t(\"../cartesian/set_convert\"),f=t(\"./set_convert\"),h=t(\"../cartesian/autorange\").doAutoRange,p=t(\"../cartesian/axes\").doTicksSingle,d=t(\"../cartesian/dragbox\"),g=t(\"../../components/dragelement\"),v=t(\"../../components/fx\"),m=t(\"../../components/titles\"),y=t(\"../cartesian/select\").prepSelect,x=t(\"../cartesian/select\").selectOnClick,b=t(\"../cartesian/select\").clearSelect,_=t(\"../../lib/setcursor\"),w=t(\"../../lib/clear_gl_canvases\"),k=t(\"../../plot_api/subroutines\").redrawReglTraces,M=t(\"../../constants/alignment\").MID_SHIFT,A=t(\"./constants\"),T=t(\"./helpers\"),S=o._,E=o.mod,C=o.deg2rad,L=o.rad2deg;function z(t,e){this.id=e,this.gd=t,this._hasClipOnAxisFalse=null,this.vangles=null,this.radialAxisAngle=null,this.traceHash={},this.layers={},this.clipPaths={},this.clipIds={},this.viewInitial={};var r=t._fullLayout,n=\"clip\"+r._uid+e;this.clipIds.forTraces=n+\"-for-traces\",this.clipPaths.forTraces=r._clips.append(\"clipPath\").attr(\"id\",this.clipIds.forTraces),this.clipPaths.forTraces.append(\"path\"),this.framework=r._polarlayer.append(\"g\").attr(\"class\",e),this.radialTickLayout=null,this.angularTickLayout=null}var O=z.prototype;function I(t){var e=t.ticks+String(t.ticklen)+String(t.showticklabels);return\"side\"in t&&(e+=t.side),e}function P(t,e){return e[o.findIndexOfMin(e,function(e){return o.angleDist(t,e)})]}function D(t,e,r){return e?(t.attr(\"display\",null),t.attr(r)):t&&t.attr(\"display\",\"none\"),t}function R(t,e){return\"translate(\"+t+\",\"+e+\")\"}function B(t){return\"rotate(\"+t+\")\"}function F(t){return Math.abs(t)<1e-10?0:t>0?1:-1}function N(t){return F(Math.cos(t))}function j(t){return F(Math.sin(t))}e.exports=function(t,e){return new z(t,e)},O.plot=function(t,e){var r=e[this.id];this._hasClipOnAxisFalse=!1;for(var n=0;n<t.length;n++){if(!1===t[n][0].trace.cliponaxis){this._hasClipOnAxisFalse=!0;break}}this.updateLayers(e,r),this.updateLayout(e,r),c.generalUpdatePerTraceModule(this.gd,this,t,r),this.updateFx(e,r)},O.updateLayers=function(t,e){var r=this.layers,i=e.radialaxis,a=e.angularaxis,o=A.layerNames,s=o.indexOf(\"frontplot\"),l=o.slice(0,s),c=\"below traces\"===a.layer,u=\"below traces\"===i.layer;c&&l.push(\"angular-line\"),u&&l.push(\"radial-line\"),c&&l.push(\"angular-axis\"),u&&l.push(\"radial-axis\"),l.push(\"frontplot\"),c||l.push(\"angular-line\"),u||l.push(\"radial-line\"),c||l.push(\"angular-axis\"),u||l.push(\"radial-axis\");var f=this.framework.selectAll(\".polarsublayer\").data(l,String);f.enter().append(\"g\").attr(\"class\",function(t){return\"polarsublayer \"+t}).each(function(t){var e=r[t]=n.select(this);switch(t){case\"frontplot\":e.append(\"g\").classed(\"barlayer\",!0),e.append(\"g\").classed(\"scatterlayer\",!0);break;case\"backplot\":e.append(\"g\").classed(\"maplayer\",!0);break;case\"plotbg\":r.bg=e.append(\"path\");break;case\"radial-grid\":e.style(\"fill\",\"none\"),e.append(\"g\").classed(\"x\",1);break;case\"angular-grid\":e.style(\"fill\",\"none\"),e.append(\"g\").classed(\"angularaxis\",1);break;case\"radial-line\":e.append(\"line\").style(\"fill\",\"none\");break;case\"angular-line\":e.append(\"path\").style(\"fill\",\"none\")}}),f.order()},O.updateLayout=function(t,e){var r=this.layers,n=t._size,i=e.radialaxis,a=e.angularaxis,o=e.domain.x,c=e.domain.y;this.xOffset=n.l+n.w*o[0],this.yOffset=n.t+n.h*(1-c[1]);var u=this.xLength=n.w*(o[1]-o[0]),f=this.yLength=n.h*(c[1]-c[0]),h=e.sector;this.sectorInRad=h.map(C);var p,d,g,v,m,y=this.sectorBBox=function(t){var e,r,n,i,a=t[0],o=t[1]-a,s=E(a,360),l=s+o,c=Math.cos(C(s)),u=Math.sin(C(s)),f=Math.cos(C(l)),h=Math.sin(C(l));i=s<=90&&l>=90||s>90&&l>=450?1:u<=0&&h<=0?0:Math.max(u,h);e=s<=180&&l>=180||s>180&&l>=540?-1:c>=0&&f>=0?0:Math.min(c,f);r=s<=270&&l>=270||s>270&&l>=630?-1:u>=0&&h>=0?0:Math.min(u,h);n=l>=360?1:c<=0&&f<=0?0:Math.max(c,f);return[e,r,n,i]}(h),x=y[2]-y[0],b=y[3]-y[1],_=f/u,w=Math.abs(b/x);_>w?(p=u,m=(f-(d=u*w))/n.h/2,g=[o[0],o[1]],v=[c[0]+m,c[1]-m]):(d=f,m=(u-(p=f/w))/n.w/2,g=[o[0]+m,o[1]-m],v=[c[0],c[1]]),this.xLength2=p,this.yLength2=d,this.xDomain2=g,this.yDomain2=v;var k=this.xOffset2=n.l+n.w*g[0],M=this.yOffset2=n.t+n.h*(1-v[1]),A=this.radius=p/x,T=this.innerRadius=e.hole*A,S=this.cx=k-A*y[0],L=this.cy=M+A*y[3],z=this.cxx=S-k,O=this.cyy=L-M;this.radialAxis=this.mockAxis(t,e,i,{_axislayer:r[\"radial-axis\"],_gridlayer:r[\"radial-grid\"],_id:\"x\",side:{counterclockwise:\"top\",clockwise:\"bottom\"}[i.side],domain:[T/n.w,A/n.w]}),this.angularAxis=this.mockAxis(t,e,a,{_axislayer:r[\"angular-axis\"],_gridlayer:r[\"angular-grid\"],side:\"right\",domain:[0,Math.PI],autorange:!1}),this.doAutoRange(t,e),this.updateAngularAxis(t,e),this.updateRadialAxis(t,e),this.updateRadialAxisTitle(t,e),this.xaxis=this.mockCartesianAxis(t,e,{_id:\"x\",domain:g}),this.yaxis=this.mockCartesianAxis(t,e,{_id:\"y\",domain:v});var I=this.pathSubplot();this.clipPaths.forTraces.select(\"path\").attr(\"d\",I).attr(\"transform\",R(z,O)),r.frontplot.attr(\"transform\",R(k,M)).call(l.setClipUrl,this._hasClipOnAxisFalse?null:this.clipIds.forTraces),r.bg.attr(\"d\",I).attr(\"transform\",R(S,L)).call(s.fill,e.bgcolor),this.framework.selectAll(\".crisp\").classed(\"crisp\",0)},O.mockAxis=function(t,e,r,n){var i=o.extendFlat({anchor:\"free\",position:0,_pos:0,_counteraxis:!0,automargin:!1},r,n);return f(i,e,t),i},O.mockCartesianAxis=function(t,e,r){var n=this,i=r._id,a=o.extendFlat({type:\"linear\"},r);u(a,t);var s={x:[0,2],y:[1,3]};return a.setRange=function(){var t=n.sectorBBox,r=s[i],o=n.radialAxis._rl,l=(o[1]-o[0])/(1-e.hole);a.range=[t[r[0]]*l,t[r[1]]*l]},a.isPtWithinRange=\"x\"===i?function(t){return n.isPtInside(t)}:function(){return!0},a.setRange(),a.setScale(),a},O.doAutoRange=function(t,e){var r=this.gd,n=this.radialAxis,i=e.radialaxis;n.setScale(),h(r,n);var a=n.range;i.range=a.slice(),i._input.range=a.slice(),n._rl=[n.r2l(a[0],null,\"gregorian\"),n.r2l(a[1],null,\"gregorian\")]},O.updateRadialAxis=function(t,e){var r=this,n=r.gd,i=r.layers,a=r.radius,o=r.innerRadius,l=r.cx,c=r.cy,u=e.radialaxis,f=E(e.sector[0],360),h=r.radialAxis,d=o<a;r.fillViewInitialKey(\"radialaxis.angle\",u.angle),r.fillViewInitialKey(\"radialaxis.range\",h.range.slice()),h.setGeometry(),\"auto\"===h.tickangle&&f>90&&f<=270&&(h.tickangle=180),h._transfn=function(t){return\"translate(\"+(h.l2p(t.x)+o)+\",0)\"},h._gridpath=function(t){return r.pathArc(h.r2p(t.x)+o)};var g=I(u);r.radialTickLayout!==g&&(i[\"radial-axis\"].selectAll(\".xtick\").remove(),r.radialTickLayout=g),d&&(h.setScale(),p(n,h,!0));var v=r.radialAxisAngle=r.vangles?L(P(C(u.angle),r.vangles)):u.angle,m=R(l,c)+B(-v);D(i[\"radial-axis\"],d&&(u.showticklabels||u.ticks),{transform:m}),D(i[\"radial-grid\"],d&&u.showgrid,{transform:R(l,c)}).selectAll(\"path\").attr(\"transform\",null),D(i[\"radial-line\"].select(\"line\"),d&&u.showline,{x1:o,y1:0,x2:a,y2:0,transform:m}).attr(\"stroke-width\",u.linewidth).call(s.stroke,u.linecolor)},O.updateRadialAxisTitle=function(t,e,r){var n=this.gd,i=this.radius,a=this.cx,o=this.cy,s=e.radialaxis,c=this.id+\"title\",u=void 0!==r?r:this.radialAxisAngle,f=C(u),h=Math.cos(f),p=Math.sin(f),d=0;if(s.title){var g=l.bBox(this.layers[\"radial-axis\"].node()).height,v=s.titlefont.size;d=\"counterclockwise\"===s.side?-g-.4*v:g+.8*v}this.layers[\"radial-axis-title\"]=m.draw(n,c,{propContainer:s,propName:this.id+\".radialaxis.title\",placeholder:S(n,\"Click to enter radial axis title\"),attributes:{x:a+i/2*h+d*p,y:o-i/2*p+d*h,\"text-anchor\":\"middle\"},transform:{rotate:-u}})},O.updateAngularAxis=function(t,e){var r=this,i=r.gd,a=r.layers,l=r.radius,c=r.innerRadius,u=r.cx,f=r.cy,h=e.angularaxis,d=r.angularAxis;r.fillViewInitialKey(\"angularaxis.rotation\",h.rotation),d.setGeometry();var g=function(t){return d.t2g(t.x)};\"linear\"===d.type&&\"radians\"===d.thetaunit&&(d.tick0=L(d.tick0),d.dtick=L(d.dtick)),\"category\"===d.type&&(d._tickFilter=function(t){return o.isAngleInsideSector(g(t),r.sectorInRad)}),d._transfn=function(t){var e=n.select(this),r=e&&e.node();if(r&&e.classed(\"angularaxisgrid\"))return\"\";var i=g(t),a=R(u+l*Math.cos(i),f-l*Math.sin(i));return r&&e.classed(\"ticks\")&&(a+=B(-L(i))),a},d._gridpath=function(t){var e=g(t),r=Math.cos(e),n=Math.sin(e);return\"M\"+[u+c*r,f-c*n]+\"L\"+[u+l*r,f-l*n]};var v=\"outside\"!==h.ticks?.7:.5;d._labelx=function(t){var e=g(t),r=d._labelStandoff,n=d._pad;return(0===j(e)?0:Math.cos(e)*(r+n+v*t.fontSize))+N(e)*(t.dx+r+n)},d._labely=function(t){var e=g(t),r=d._labelStandoff,n=d._labelShift,i=d._pad;return t.dy+t.fontSize*M-n+-Math.sin(e)*(r+i+v*t.fontSize)},d._labelanchor=function(t,e){var r=g(e);return 0===j(r)?N(r)>0?\"start\":\"end\":\"middle\"};var m,y=I(h);r.angularTickLayout!==y&&(a[\"angular-axis\"].selectAll(\".\"+d._id+\"tick\").remove(),r.angularTickLayout=y),d.setScale(),p(i,d,!0),\"linear\"===e.gridshape?(m=d._vals.map(g),o.angleDelta(m[0],m[1])<0&&(m=m.slice().reverse())):m=null,r.vangles=m,D(a[\"angular-line\"].select(\"path\"),h.showline,{d:r.pathSubplot(),transform:R(u,f)}).attr(\"stroke-width\",h.linewidth).call(s.stroke,h.linecolor)},O.updateFx=function(t,e){this.gd._context.staticPlot||(this.updateAngularDrag(t),this.updateRadialDrag(t,e,0),this.updateRadialDrag(t,e,1),this.updateMainDrag(t))},O.updateMainDrag=function(t){var e=this,r=e.gd,o=e.layers,s=t._zoomlayer,l=A.MINZOOM,c=A.OFFEDGE,u=e.radius,f=e.innerRadius,h=e.cx,p=e.cy,m=e.cxx,_=e.cyy,w=e.sectorInRad,k=e.vangles,M=e.radialAxis,S=T.clampTiny,E=T.findXYatLength,C=T.findEnclosingVertexAngles,L=A.cornerHalfWidth,z=A.cornerLen/2,O=d.makeDragger(o,\"path\",\"maindrag\",\"crosshair\");n.select(O).attr(\"d\",e.pathSubplot()).attr(\"transform\",R(h,p));var I,P,D,B,F,N,j,V,U,q={element:O,gd:r,subplot:e.id,plotinfo:{id:e.id,xaxis:e.xaxis,yaxis:e.yaxis},xaxes:[e.xaxis],yaxes:[e.yaxis]};function H(t,e){return Math.sqrt(t*t+e*e)}function G(t,e){return H(t-m,e-_)}function W(t,e){return Math.atan2(_-e,t-m)}function Y(t,e){return[t*Math.cos(e),t*Math.sin(-e)]}function X(t,r){if(0===t)return e.pathSector(2*L);var n=z/t,i=r-n,a=r+n,o=Math.max(0,Math.min(t,u)),s=o-L,l=o+L;return\"M\"+Y(s,i)+\"A\"+[s,s]+\" 0,0,0 \"+Y(s,a)+\"L\"+Y(l,a)+\"A\"+[l,l]+\" 0,0,1 \"+Y(l,i)+\"Z\"}function Z(t,r,n){if(0===t)return e.pathSector(2*L);var i,a,o=Y(t,r),s=Y(t,n),l=S((o[0]+s[0])/2),c=S((o[1]+s[1])/2);if(l&&c){var u=c/l,f=-1/u,h=E(L,u,l,c);i=E(z,f,h[0][0],h[0][1]),a=E(z,f,h[1][0],h[1][1])}else{var p,d;c?(p=z,d=L):(p=L,d=z),i=[[l-p,c-d],[l+p,c-d]],a=[[l-p,c+d],[l+p,c+d]]}return\"M\"+i.join(\"L\")+\"L\"+a.reverse().join(\"L\")+\"Z\"}function $(t,e){return e=Math.max(Math.min(e,u),f),t<c?t=0:u-t<c?t=u:e<c?e=0:u-e<c&&(e=u),Math.abs(e-t)>l?(t<e?(D=t,B=e):(D=e,B=t),!0):(D=null,B=null,!1)}function J(t,e){t=t||F,e=e||\"M0,0Z\",V.attr(\"d\",t),U.attr(\"d\",e),d.transitionZoombox(V,U,N,j),N=!0}function K(t,r){var n,i,a=I+t,o=P+r,s=G(I,P),l=Math.min(G(a,o),u),c=W(I,P);$(s,l)&&(n=F+e.pathSector(B),D&&(n+=e.pathSector(D)),i=X(D,c)+X(B,c)),J(n,i)}function Q(t,e,r,n){var i=T.findIntersectionXY(r,n,r,[t-m,_-e]);return H(i[0],i[1])}function tt(t,r){var n,i,a=I+t,o=P+r,s=W(I,P),l=W(a,o),c=C(s,k),f=C(l,k);$(Q(I,P,c[0],c[1]),Math.min(Q(a,o,f[0],f[1]),u))&&(n=F+e.pathSector(B),D&&(n+=e.pathSector(D)),i=[Z(D,c[0],c[1]),Z(B,c[0],c[1])].join(\" \")),J(n,i)}function et(){if(d.removeZoombox(r),null!==D&&null!==B){d.showDoubleClickNotifier(r);var t=M._rl,n=(t[1]-t[0])/(1-f/u)/u,i=[t[0]+(D-f)*n,t[0]+(B-f)*n];a.call(\"relayout\",r,e.id+\".radialaxis.range\",i)}}function rt(t,n){var i=r._fullLayout.clickmode;if(d.removeZoombox(r),2===t){var o={};for(var s in e.viewInitial)o[e.id+\".\"+s]=e.viewInitial[s];r.emit(\"plotly_doubleclick\",null),a.call(\"relayout\",r,o)}i.indexOf(\"select\")>-1&&1===t&&x(n,r,[e.xaxis],[e.yaxis],e.id,q),i.indexOf(\"event\")>-1&&v.click(r,n,e.id)}q.prepFn=function(t,n,a){var o=r._fullLayout.dragmode,l=O.getBoundingClientRect();if(I=n-l.left,P=a-l.top,k){var c=T.findPolygonOffset(u,w[0],w[1],k);I+=m+c[0],P+=_+c[1]}switch(o){case\"zoom\":q.moveFn=k?tt:K,q.clickFn=rt,q.doneFn=et,function(){D=null,B=null,F=e.pathSubplot(),N=!1;var t=r._fullLayout[e.id];j=i(t.bgcolor).getLuminance(),(V=d.makeZoombox(s,j,h,p,F)).attr(\"fill-rule\",\"evenodd\"),U=d.makeCorners(s,h,p),b(s)}();break;case\"select\":case\"lasso\":y(t,n,a,q,o)}},O.onmousemove=function(t){v.hover(r,t,e.id),r._fullLayout._lasthover=O,r._fullLayout._hoversubplot=e.id},O.onmouseout=function(t){r._dragging||g.unhover(r,t)},g.init(q)},O.updateRadialDrag=function(t,e,r){var i=this,s=i.gd,l=i.layers,c=i.radius,u=i.innerRadius,f=i.cx,h=i.cy,v=i.radialAxis,m=A.radialDragBoxSize,y=m/2;if(v.visible){var x,_,M,T=C(i.radialAxisAngle),S=v._rl,E=S[0],z=S[1],O=S[r],I=.75*(S[1]-S[0])/(1-e.hole)/c;r?(x=f+(c+y)*Math.cos(T),_=h-(c+y)*Math.sin(T),M=\"radialdrag\"):(x=f+(u-y)*Math.cos(T),_=h-(u-y)*Math.sin(T),M=\"radialdrag-inner\");var F,N,j,V=d.makeRectDragger(l,M,\"crosshair\",-y,-y,m,m),U={element:V,gd:s};D(n.select(V),v.visible&&u<c,{transform:R(x,_)}),U.prepFn=function(){F=null,N=null,j=null,U.moveFn=q,U.doneFn=H,b(t._zoomlayer)},U.clampFn=function(t,e){return Math.sqrt(t*t+e*e)<A.MINDRAG&&(t=0,e=0),[t,e]},g.init(U)}function q(t,e){if(F)F(t,e);else{var r=[t,-e],n=[Math.cos(T),Math.sin(T)],i=Math.abs(o.dot(r,n)/Math.sqrt(o.dot(r,r)));isNaN(i)||(F=i<.5?G:W)}}function H(){null!==N?a.call(\"relayout\",s,i.id+\".radialaxis.angle\",N):null!==j&&a.call(\"relayout\",s,i.id+\".radialaxis.range[\"+r+\"]\",j)}function G(t,e){if(0!==r){var n=x+t,a=_+e;N=Math.atan2(h-a,n-f),i.vangles&&(N=P(N,i.vangles)),N=L(N);var o=R(f,h)+B(-N);l[\"radial-axis\"].attr(\"transform\",o),l[\"radial-line\"].select(\"line\").attr(\"transform\",o);var s=i.gd._fullLayout,c=s[i.id];i.updateRadialAxisTitle(s,c,N)}}function W(t,e){var n=o.dot([t,-e],[Math.cos(T),Math.sin(T)]);if(j=O-I*n,I>0==(r?j>E:j<z)){v.range[r]=j,v._rl[r]=j,v.setGeometry(),v.setScale(),i.xaxis.setRange(),i.xaxis.setScale(),i.yaxis.setRange(),i.yaxis.setScale(),p(s,v,!0),l[\"radial-grid\"].attr(\"transform\",R(f,h)).selectAll(\"path\").attr(\"transform\",null);var c=!1;for(var u in i.traceHash){var d=i.traceHash[u],g=o.filterVisible(d),m=d[0][0].trace._module,y=s._fullLayout[i.id];m.plot(s,i,g,y),a.traceIs(u,\"gl\")&&g.length&&(c=!0)}c&&(w(s),k(s))}else j=null}},O.updateAngularDrag=function(t){var e=this,r=e.gd,i=e.layers,s=e.radius,c=e.angularAxis,u=e.cx,f=e.cy,h=e.cxx,v=e.cyy,m=A.angularDragBoxSize,y=d.makeDragger(i,\"path\",\"angulardrag\",\"move\"),x={element:y,gd:r};function M(t,e){return Math.atan2(v+m-e,t-h-m)}n.select(y).attr(\"d\",e.pathAnnulus(s,s+m)).attr(\"transform\",R(u,f)).call(_,\"move\");var T,S,E,C,z,O,I=i.frontplot.select(\".scatterlayer\").selectAll(\".trace\"),P=I.selectAll(\".point\"),D=I.selectAll(\".textpoint\");function F(t,s){var d=e.gd._fullLayout,g=d[e.id],m=M(T+t,S+s),y=L(m-O);if(C=E+y,i.frontplot.attr(\"transform\",R(e.xOffset2,e.yOffset2)+B([-y,h,v])),e.vangles){z=e.radialAxisAngle+y;var x=R(u,f)+B(-y),b=R(u,f)+B(-z);i.bg.attr(\"transform\",x),i[\"radial-grid\"].attr(\"transform\",x),i[\"angular-line\"].select(\"path\").attr(\"transform\",x),i[\"radial-axis\"].attr(\"transform\",b),i[\"radial-line\"].select(\"line\").attr(\"transform\",b),e.updateRadialAxisTitle(d,g,z)}else e.clipPaths.forTraces.select(\"path\").attr(\"transform\",R(h,v)+B(y));P.each(function(){var t=n.select(this),e=l.getTranslate(t);t.attr(\"transform\",R(e.x,e.y)+B([y]))}),D.each(function(){var t=n.select(this),e=t.select(\"text\"),r=l.getTranslate(t);t.attr(\"transform\",B([y,e.attr(\"x\"),e.attr(\"y\")])+R(r.x,r.y))}),c.rotation=o.modHalf(C,360),c.setGeometry(),c.setScale(),p(r,c,!0),e._hasClipOnAxisFalse&&!o.isFullCircle(e.sectorInRad)&&I.call(l.hideOutsideRangePoints,e);var _=!1;for(var A in e.traceHash)if(a.traceIs(A,\"gl\")){var F=e.traceHash[A],N=o.filterVisible(F);F[0][0].trace._module.plot(r,e,N,g),N.length&&(_=!0)}_&&(w(r),k(r))}function N(){D.select(\"text\").attr(\"transform\",null);var t={};t[e.id+\".angularaxis.rotation\"]=C,e.vangles&&(t[e.id+\".radialaxis.angle\"]=z),a.call(\"relayout\",r,t)}x.prepFn=function(r,n,i){var a=t[e.id];E=a.angularaxis.rotation;var o=y.getBoundingClientRect();T=n-o.left,S=i-o.top,O=M(T,S),x.moveFn=F,x.doneFn=N,b(t._zoomlayer)},e.vangles&&!o.isFullCircle(e.sectorInRad)&&(x.prepFn=o.noop,_(n.select(y),null)),g.init(x)},O.isPtInside=function(t){var e=this.sectorInRad,r=this.vangles,n=this.angularAxis.c2g(t.theta),i=this.radialAxis,a=i.c2l(t.r),s=i._rl;return(r?T.isPtInsidePolygon:o.isPtInsideSector)(a,n,s,e,r)},O.pathArc=function(t){var e=this.sectorInRad,r=this.vangles;return(r?T.pathPolygon:o.pathArc)(t,e[0],e[1],r)},O.pathSector=function(t){var e=this.sectorInRad,r=this.vangles;return(r?T.pathPolygon:o.pathSector)(t,e[0],e[1],r)},O.pathAnnulus=function(t,e){var r=this.sectorInRad,n=this.vangles;return(n?T.pathPolygonAnnulus:o.pathAnnulus)(t,e,r[0],r[1],n)},O.pathSubplot=function(){var t=this.innerRadius,e=this.radius;return t?this.pathAnnulus(t,e):this.pathSector(e)},O.fillViewInitialKey=function(t,e){t in this.viewInitial||(this.viewInitial[t]=e)}},{\"../../components/color\":570,\"../../components/dragelement\":592,\"../../components/drawing\":595,\"../../components/fx\":612,\"../../components/titles\":661,\"../../constants/alignment\":668,\"../../lib\":696,\"../../lib/clear_gl_canvases\":680,\"../../lib/setcursor\":716,\"../../plot_api/subroutines\":735,\"../../registry\":827,\"../cartesian/autorange\":743,\"../cartesian/axes\":744,\"../cartesian/dragbox\":753,\"../cartesian/select\":762,\"../cartesian/set_convert\":763,\"../plots\":808,\"./constants\":809,\"./helpers\":810,\"./set_convert\":821,d3:148,tinycolor2:514}],821:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../cartesian/set_convert\"),a=n.deg2rad,o=n.rad2deg;e.exports=function(t,e,r){switch(i(t,r),t._id){case\"x\":case\"radialaxis\":!function(t,e){var r=e._subplot;t.setGeometry=function(){var e=t._rl[0],n=t._rl[1],i=r.innerRadius,a=(r.radius-i)/(n-e),o=i/a,s=e>n?function(t){return t<=0}:function(t){return t>=0};t.c2g=function(r){var n=t.c2l(r)-e;return(s(n)?n:0)+o},t.g2c=function(r){return t.l2c(r+e-o)},t.g2p=function(t){return t*a},t.c2p=function(e){return t.g2p(t.c2g(e))}}}(t,e);break;case\"angularaxis\":!function(t,e){var r=t.type;if(\"linear\"===r){var i=t.d2c,s=t.c2d;t.d2c=function(t,e){return function(t,e){return\"degrees\"===e?a(t):t}(i(t),e)},t.c2d=function(t,e){return s(function(t,e){return\"degrees\"===e?o(t):t}(t,e))}}t.makeCalcdata=function(e,i){var a,o,s=e[i],l=e._length,c=function(r){return t.d2c(r,e.thetaunit)};if(s){if(n.isTypedArray(s)&&\"linear\"===r){if(l===s.length)return s;if(s.subarray)return s.subarray(0,l)}for(a=new Array(l),o=0;o<l;o++)a[o]=c(s[o])}else{var u=i+\"0\",f=\"d\"+i,h=u in e?c(e[u]):0,p=e[f]?c(e[f]):(t.period||2*Math.PI)/l;for(a=new Array(l),o=0;o<l;o++)a[o]=h+o*p}return a},t.setGeometry=function(){var i,s,l,c,u=e.sector,f=u.map(a),h={clockwise:-1,counterclockwise:1}[t.direction],p=a(t.rotation),d=function(t){return h*t+p},g=function(t){return(t-p)/h};switch(r){case\"linear\":s=i=n.identity,c=a,l=o,t.range=n.isFullCircle(f)?[u[0],u[0]+360]:f.map(g).map(o);break;case\"category\":var v=t._categories.length,m=t.period?Math.max(t.period,v):v;s=c=function(t){return 2*t*Math.PI/m},i=l=function(t){return t*m/Math.PI/2},t.range=[0,m]}t.c2g=function(t){return d(s(t))},t.g2c=function(t){return i(g(t))},t.t2g=function(t){return d(c(t))},t.g2t=function(t){return l(g(t))}}}(t,e)}}},{\"../../lib\":696,\"../cartesian/set_convert\":763}],822:[function(t,e,r){\"use strict\";var n=t(\"../lib\"),i=t(\"../plot_api/plot_template\"),a=t(\"./domain\").defaults;e.exports=function(t,e,r,o){var s,l,c=o.type,u=o.attributes,f=o.handleDefaults,h=o.partition||\"x\",p=e._subplots[c],d=p.length,g=d&&p[0].replace(/\\d+$/,\"\");function v(t,e){return n.coerce(s,l,u,t,e)}for(var m=0;m<d;m++){var y=p[m];s=t[y]?t[y]:t[y]={},l=i.newContainer(e,y,g);var x={};x[h]=[m/d,(m+1)/d],a(l,e,v,x),o.id=y,f(s,l,v,o)}}},{\"../lib\":696,\"../plot_api/plot_template\":734,\"./domain\":770}],823:[function(t,e,r){\"use strict\";var n=t(\"./ternary\"),i=t(\"../../plots/get_data\").getSubplotCalcData,a=t(\"../../lib\").counterRegex;r.name=\"ternary\";var o=r.attr=\"subplot\";r.idRoot=\"ternary\",r.idRegex=r.attrRegex=a(\"ternary\"),(r.attributes={})[o]={valType:\"subplotid\",dflt:\"ternary\",editType:\"calc\"},r.layoutAttributes=t(\"./layout_attributes\"),r.supplyLayoutDefaults=t(\"./layout_defaults\"),r.plot=function(t){for(var e=t._fullLayout,r=t.calcdata,a=e._subplots.ternary,o=0;o<a.length;o++){var s=a[o],l=i(r,\"ternary\",s),c=e[s]._subplot;c||(c=new n({id:s,graphDiv:t,container:e._ternarylayer.node()},e),e[s]._subplot=c),c.plot(l,e,t._promises)}},r.clean=function(t,e,r,n){for(var i=n._subplots.ternary||[],a=0;a<i.length;a++){var o=i[a],s=n[o]._subplot;!e[o]&&s&&(s.plotContainer.remove(),s.clipDef.remove(),s.clipDefRelative.remove(),s.layers[\"a-title\"].remove(),s.layers[\"b-title\"].remove(),s.layers[\"c-title\"].remove())}}},{\"../../lib\":696,\"../../plots/get_data\":781,\"./layout_attributes\":824,\"./layout_defaults\":825,\"./ternary\":826}],824:[function(t,e,r){\"use strict\";var n=t(\"../../components/color/attributes\"),i=t(\"../domain\").attributes,a=t(\"../cartesian/layout_attributes\"),o=t(\"../../plot_api/edit_types\").overrideAll,s=t(\"../../lib/extend\").extendFlat,l={title:a.title,titlefont:a.titlefont,color:a.color,tickmode:a.tickmode,nticks:s({},a.nticks,{dflt:6,min:1}),tick0:a.tick0,dtick:a.dtick,tickvals:a.tickvals,ticktext:a.ticktext,ticks:a.ticks,ticklen:a.ticklen,tickwidth:a.tickwidth,tickcolor:a.tickcolor,showticklabels:a.showticklabels,showtickprefix:a.showtickprefix,tickprefix:a.tickprefix,showticksuffix:a.showticksuffix,ticksuffix:a.ticksuffix,showexponent:a.showexponent,exponentformat:a.exponentformat,separatethousands:a.separatethousands,tickfont:a.tickfont,tickangle:a.tickangle,tickformat:a.tickformat,tickformatstops:a.tickformatstops,hoverformat:a.hoverformat,showline:s({},a.showline,{dflt:!0}),linecolor:a.linecolor,linewidth:a.linewidth,showgrid:s({},a.showgrid,{dflt:!0}),gridcolor:a.gridcolor,gridwidth:a.gridwidth,layer:a.layer,min:{valType:\"number\",dflt:0,min:0}};e.exports=o({domain:i({name:\"ternary\"}),bgcolor:{valType:\"color\",dflt:n.background},sum:{valType:\"number\",dflt:1,min:0},aaxis:l,baxis:l,caxis:l},\"plot\",\"from-root\")},{\"../../components/color/attributes\":569,\"../../lib/extend\":685,\"../../plot_api/edit_types\":727,\"../cartesian/layout_attributes\":757,\"../domain\":770}],825:[function(t,e,r){\"use strict\";var n=t(\"../../components/color\"),i=t(\"../../plot_api/plot_template\"),a=t(\"../../lib\"),o=t(\"../subplot_defaults\"),s=t(\"../cartesian/tick_label_defaults\"),l=t(\"../cartesian/tick_mark_defaults\"),c=t(\"../cartesian/tick_value_defaults\"),u=t(\"../cartesian/line_grid_defaults\"),f=t(\"./layout_attributes\"),h=[\"aaxis\",\"baxis\",\"caxis\"];function p(t,e,r,a){var o,s,l,c=r(\"bgcolor\"),u=r(\"sum\");a.bgColor=n.combine(c,a.paper_bgcolor);for(var f=0;f<h.length;f++)s=t[o=h[f]]||{},(l=i.newContainer(e,o))._name=o,d(s,l,a);var p=e.aaxis,g=e.baxis,v=e.caxis;p.min+g.min+v.min>=u&&(p.min=0,g.min=0,v.min=0,t.aaxis&&delete t.aaxis.min,t.baxis&&delete t.baxis.min,t.caxis&&delete t.caxis.min)}function d(t,e,r){var n=f[e._name];function i(r,i){return a.coerce(t,e,n,r,i)}e.type=\"linear\";var o=i(\"color\"),h=o!==n.color.dflt?o:r.font.color,p=e._name.charAt(0).toUpperCase(),d=\"Component \"+p,g=i(\"title\",d);e._hovertitle=g===d?g:p,a.coerceFont(i,\"titlefont\",{family:r.font.family,size:Math.round(1.2*r.font.size),color:h}),i(\"min\"),c(t,e,i,\"linear\"),s(t,e,i,\"linear\",{}),l(t,e,i,{outerTicks:!0}),i(\"showticklabels\")&&(a.coerceFont(i,\"tickfont\",{family:r.font.family,size:r.font.size,color:h}),i(\"tickangle\"),i(\"tickformat\")),u(t,e,i,{dfltColor:o,bgColor:r.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:n}),i(\"hoverformat\"),i(\"layer\")}e.exports=function(t,e,r){o(t,e,r,{type:\"ternary\",attributes:f,handleDefaults:p,font:e.font,paper_bgcolor:e.paper_bgcolor})}},{\"../../components/color\":570,\"../../lib\":696,\"../../plot_api/plot_template\":734,\"../cartesian/line_grid_defaults\":759,\"../cartesian/tick_label_defaults\":764,\"../cartesian/tick_mark_defaults\":765,\"../cartesian/tick_value_defaults\":766,\"../subplot_defaults\":822,\"./layout_attributes\":824}],826:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"tinycolor2\"),a=t(\"../../registry\"),o=t(\"../../lib\"),s=o._,l=t(\"../../components/color\"),c=t(\"../../components/drawing\"),u=t(\"../cartesian/set_convert\"),f=t(\"../../lib/extend\").extendFlat,h=t(\"../plots\"),p=t(\"../cartesian/axes\"),d=t(\"../../components/dragelement\"),g=t(\"../../components/fx\"),v=t(\"../../components/titles\"),m=t(\"../cartesian/select\").prepSelect,y=t(\"../cartesian/select\").selectOnClick,x=t(\"../cartesian/select\").clearSelect,b=t(\"../cartesian/constants\");function _(t,e){this.id=t.id,this.graphDiv=t.graphDiv,this.init(e),this.makeFramework(e),this.aTickLayout=null,this.bTickLayout=null,this.cTickLayout=null}e.exports=_;var w=_.prototype;w.init=function(t){this.container=t._ternarylayer,this.defs=t._defs,this.layoutId=t._uid,this.traceHash={},this.layers={}},w.plot=function(t,e){var r=e[this.id],n=e._size;this._hasClipOnAxisFalse=!1;for(var i=0;i<t.length;i++){if(!1===t[i][0].trace.cliponaxis){this._hasClipOnAxisFalse=!0;break}}this.updateLayers(r),this.adjustLayout(r,n),h.generalUpdatePerTraceModule(this.graphDiv,this,t,r),this.layers.plotbg.select(\"path\").call(l.fill,r.bgcolor)},w.makeFramework=function(t){var e=t[this.id],r=this.clipId=\"clip\"+this.layoutId+this.id,n=this.clipIdRelative=\"clip-relative\"+this.layoutId+this.id;this.clipDef=o.ensureSingleById(t._clips,\"clipPath\",r,function(t){t.append(\"path\").attr(\"d\",\"M0,0Z\")}),this.clipDefRelative=o.ensureSingleById(t._clips,\"clipPath\",n,function(t){t.append(\"path\").attr(\"d\",\"M0,0Z\")}),this.plotContainer=o.ensureSingle(this.container,\"g\",this.id),this.updateLayers(e),c.setClipUrl(this.layers.backplot,r),c.setClipUrl(this.layers.grids,r)},w.updateLayers=function(t){var e=this.layers,r=[\"draglayer\",\"plotbg\",\"backplot\",\"grids\"];\"below traces\"===t.aaxis.layer&&r.push(\"aaxis\",\"aline\"),\"below traces\"===t.baxis.layer&&r.push(\"baxis\",\"bline\"),\"below traces\"===t.caxis.layer&&r.push(\"caxis\",\"cline\"),r.push(\"frontplot\"),\"above traces\"===t.aaxis.layer&&r.push(\"aaxis\",\"aline\"),\"above traces\"===t.baxis.layer&&r.push(\"baxis\",\"bline\"),\"above traces\"===t.caxis.layer&&r.push(\"caxis\",\"cline\");var i=this.plotContainer.selectAll(\"g.toplevel\").data(r,String),a=[\"agrid\",\"bgrid\",\"cgrid\"];i.enter().append(\"g\").attr(\"class\",function(t){return\"toplevel \"+t}).each(function(t){var r=n.select(this);e[t]=r,\"frontplot\"===t?r.append(\"g\").classed(\"scatterlayer\",!0):\"backplot\"===t?r.append(\"g\").classed(\"maplayer\",!0):\"plotbg\"===t?r.append(\"path\").attr(\"d\",\"M0,0Z\"):\"aline\"===t||\"bline\"===t||\"cline\"===t?r.append(\"path\"):\"grids\"===t&&a.forEach(function(t){e[t]=r.append(\"g\").classed(\"grid \"+t,!0);var n=\"bgrid\"===t?\"x\":\"y\";e[t].append(\"g\").classed(n,!0)})}),i.order()};var k=Math.sqrt(4/3);function M(t){return t.ticks+String(t.ticklen)+String(t.showticklabels)}w.adjustLayout=function(t,e){var r,n,i,a,o,s,h=this,p=t.domain,d=(p.x[0]+p.x[1])/2,g=(p.y[0]+p.y[1])/2,v=p.x[1]-p.x[0],m=p.y[1]-p.y[0],y=v*e.w,x=m*e.h,b=t.sum,_=t.aaxis.min,w=t.baxis.min,M=t.caxis.min;y>k*x?i=(a=x)*k:a=(i=y)/k,o=v*i/y,s=m*a/x,r=e.l+e.w*d-i/2,n=e.t+e.h*(1-g)-a/2,h.x0=r,h.y0=n,h.w=i,h.h=a,h.sum=b,h.xaxis={type:\"linear\",range:[_+2*M-b,b-_-2*w],domain:[d-o/2,d+o/2],_id:\"x\"},u(h.xaxis,h.graphDiv._fullLayout),h.xaxis.setScale(),h.xaxis.isPtWithinRange=function(t){return t.a>=h.aaxis.range[0]&&t.a<=h.aaxis.range[1]&&t.b>=h.baxis.range[1]&&t.b<=h.baxis.range[0]&&t.c>=h.caxis.range[1]&&t.c<=h.caxis.range[0]},h.yaxis={type:\"linear\",range:[_,b-w-M],domain:[g-s/2,g+s/2],_id:\"y\"},u(h.yaxis,h.graphDiv._fullLayout),h.yaxis.setScale(),h.yaxis.isPtWithinRange=function(){return!0};var A=h.yaxis.domain[0],T=h.aaxis=f({},t.aaxis,{visible:!0,range:[_,b-w-M],side:\"left\",_counterangle:30,tickangle:(+t.aaxis.tickangle||0)-30,domain:[A,A+s*k],_axislayer:h.layers.aaxis,_gridlayer:h.layers.agrid,anchor:\"free\",position:0,_pos:0,_id:\"y\",_length:i,_gridpath:\"M0,0l\"+a+\",-\"+i/2,automargin:!1});u(T,h.graphDiv._fullLayout),T.setScale();var S=h.baxis=f({},t.baxis,{visible:!0,range:[b-_-M,w],side:\"bottom\",_counterangle:30,domain:h.xaxis.domain,_axislayer:h.layers.baxis,_gridlayer:h.layers.bgrid,_counteraxis:h.aaxis,anchor:\"free\",position:0,_pos:0,_id:\"x\",_length:i,_gridpath:\"M0,0l-\"+i/2+\",-\"+a,automargin:!1});u(S,h.graphDiv._fullLayout),S.setScale(),T._counteraxis=S;var E=h.caxis=f({},t.caxis,{visible:!0,range:[b-_-w,M],side:\"right\",_counterangle:30,tickangle:(+t.caxis.tickangle||0)+30,domain:[A,A+s*k],_axislayer:h.layers.caxis,_gridlayer:h.layers.cgrid,_counteraxis:h.baxis,anchor:\"free\",position:0,_pos:0,_id:\"y\",_length:i,_gridpath:\"M0,0l-\"+a+\",\"+i/2,automargin:!1});u(E,h.graphDiv._fullLayout),E.setScale();var C=\"M\"+r+\",\"+(n+a)+\"h\"+i+\"l-\"+i/2+\",-\"+a+\"Z\";h.clipDef.select(\"path\").attr(\"d\",C),h.layers.plotbg.select(\"path\").attr(\"d\",C);var L=\"M0,\"+a+\"h\"+i+\"l-\"+i/2+\",-\"+a+\"Z\";h.clipDefRelative.select(\"path\").attr(\"d\",L);var z=\"translate(\"+r+\",\"+n+\")\";h.plotContainer.selectAll(\".scatterlayer,.maplayer\").attr(\"transform\",z),h.clipDefRelative.select(\"path\").attr(\"transform\",null);var O=\"translate(\"+(r-S._offset)+\",\"+(n+a)+\")\";h.layers.baxis.attr(\"transform\",O),h.layers.bgrid.attr(\"transform\",O);var I=\"translate(\"+(r+i/2)+\",\"+n+\")rotate(30)translate(0,\"+-T._offset+\")\";h.layers.aaxis.attr(\"transform\",I),h.layers.agrid.attr(\"transform\",I);var P=\"translate(\"+(r+i/2)+\",\"+n+\")rotate(-30)translate(0,\"+-E._offset+\")\";h.layers.caxis.attr(\"transform\",P),h.layers.cgrid.attr(\"transform\",P),h.drawAxes(!0),h.plotContainer.selectAll(\".crisp\").classed(\"crisp\",!1),h.layers.aline.select(\"path\").attr(\"d\",T.showline?\"M\"+r+\",\"+(n+a)+\"l\"+i/2+\",-\"+a:\"M0,0\").call(l.stroke,T.linecolor||\"#000\").style(\"stroke-width\",(T.linewidth||0)+\"px\"),h.layers.bline.select(\"path\").attr(\"d\",S.showline?\"M\"+r+\",\"+(n+a)+\"h\"+i:\"M0,0\").call(l.stroke,S.linecolor||\"#000\").style(\"stroke-width\",(S.linewidth||0)+\"px\"),h.layers.cline.select(\"path\").attr(\"d\",E.showline?\"M\"+(r+i/2)+\",\"+n+\"l\"+i/2+\",\"+a:\"M0,0\").call(l.stroke,E.linecolor||\"#000\").style(\"stroke-width\",(E.linewidth||0)+\"px\"),h.graphDiv._context.staticPlot||h.initInteractions(),c.setClipUrl(h.layers.frontplot,h._hasClipOnAxisFalse?null:h.clipId)},w.drawAxes=function(t){var e,r=this.graphDiv,n=this.id.substr(7)+\"title\",i=this.layers,a=this.aaxis,o=this.baxis,l=this.caxis;if(e=M(a),this.aTickLayout!==e&&(i.aaxis.selectAll(\".ytick\").remove(),this.aTickLayout=e),e=M(o),this.bTickLayout!==e&&(i.baxis.selectAll(\".xtick\").remove(),this.bTickLayout=e),e=M(l),this.cTickLayout!==e&&(i.caxis.selectAll(\".ytick\").remove(),this.cTickLayout=e),p.doTicksSingle(r,a,!0),p.doTicksSingle(r,o,!0),p.doTicksSingle(r,l,!0),t){var c=Math.max(a.showticklabels?a.tickfont.size/2:0,(l.showticklabels?.75*l.tickfont.size:0)+(\"outside\"===l.ticks?.87*l.ticklen:0));this.layers[\"a-title\"]=v.draw(r,\"a\"+n,{propContainer:a,propName:this.id+\".aaxis.title\",placeholder:s(r,\"Click to enter Component A title\"),attributes:{x:this.x0+this.w/2,y:this.y0-a.titlefont.size/3-c,\"text-anchor\":\"middle\"}});var u=(o.showticklabels?o.tickfont.size:0)+(\"outside\"===o.ticks?o.ticklen:0)+3;this.layers[\"b-title\"]=v.draw(r,\"b\"+n,{propContainer:o,propName:this.id+\".baxis.title\",placeholder:s(r,\"Click to enter Component B title\"),attributes:{x:this.x0-u,y:this.y0+this.h+.83*o.titlefont.size+u,\"text-anchor\":\"middle\"}}),this.layers[\"c-title\"]=v.draw(r,\"c\"+n,{propContainer:l,propName:this.id+\".caxis.title\",placeholder:s(r,\"Click to enter Component C title\"),attributes:{x:this.x0+this.w+u,y:this.y0+this.h+.83*l.titlefont.size+u,\"text-anchor\":\"middle\"}})}};var A=b.MINZOOM/2+.87,T=\"m-0.87,.5h\"+A+\"v3h-\"+(A+5.2)+\"l\"+(A/2+2.6)+\",-\"+(.87*A+4.5)+\"l2.6,1.5l-\"+A/2+\",\"+.87*A+\"Z\",S=\"m0.87,.5h-\"+A+\"v3h\"+(A+5.2)+\"l-\"+(A/2+2.6)+\",-\"+(.87*A+4.5)+\"l-2.6,1.5l\"+A/2+\",\"+.87*A+\"Z\",E=\"m0,1l\"+A/2+\",\"+.87*A+\"l2.6,-1.5l-\"+(A/2+2.6)+\",-\"+(.87*A+4.5)+\"l-\"+(A/2+2.6)+\",\"+(.87*A+4.5)+\"l2.6,1.5l\"+A/2+\",-\"+.87*A+\"Z\",C=\"m0.5,0.5h5v-2h-5v-5h-2v5h-5v2h5v5h2Z\",L=!0;function z(t){n.select(t).selectAll(\".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners\").remove()}w.initInteractions=function(){var t,e,r,n,u,f,h,p,v,_,w=this,M=w.layers.plotbg.select(\"path\").node(),A=w.graphDiv,O=A._fullLayout._zoomlayer,I={element:M,gd:A,plotinfo:{id:w.id,xaxis:w.xaxis,yaxis:w.yaxis},subplot:w.id,prepFn:function(a,o,s){I.xaxes=[w.xaxis],I.yaxes=[w.yaxis];var c=A._fullLayout.dragmode;I.minDrag=\"lasso\"===c?1:void 0,\"zoom\"===c?(I.moveFn=F,I.clickFn=P,I.doneFn=N,function(a,o,s){var c=M.getBoundingClientRect();t=o-c.left,e=s-c.top,r={a:w.aaxis.range[0],b:w.baxis.range[1],c:w.caxis.range[1]},u=r,n=w.aaxis.range[1]-r.a,f=i(w.graphDiv._fullLayout[w.id].bgcolor).getLuminance(),h=\"M0,\"+w.h+\"L\"+w.w/2+\", 0L\"+w.w+\",\"+w.h+\"Z\",p=!1,v=O.append(\"path\").attr(\"class\",\"zoombox\").attr(\"transform\",\"translate(\"+w.x0+\", \"+w.y0+\")\").style({fill:f>.2?\"rgba(0,0,0,0)\":\"rgba(255,255,255,0)\",\"stroke-width\":0}).attr(\"d\",h),_=O.append(\"path\").attr(\"class\",\"zoombox-corners\").attr(\"transform\",\"translate(\"+w.x0+\", \"+w.y0+\")\").style({fill:l.background,stroke:l.defaultLine,\"stroke-width\":1,opacity:0}).attr(\"d\",\"M0,0Z\"),x(O)}(0,o,s)):\"pan\"===c?(I.moveFn=j,I.clickFn=P,I.doneFn=V,r={a:w.aaxis.range[0],b:w.baxis.range[1],c:w.caxis.range[1]},u=r,x(O)):\"select\"!==c&&\"lasso\"!==c||m(a,o,s,I,c)}};function P(t,e){var r=A._fullLayout.clickmode;if(z(A),2===t){var n={};n[w.id+\".aaxis.min\"]=0,n[w.id+\".baxis.min\"]=0,n[w.id+\".caxis.min\"]=0,A.emit(\"plotly_doubleclick\",null),a.call(\"relayout\",A,n)}r.indexOf(\"select\")>-1&&1===t&&y(e,A,[w.xaxis],[w.yaxis],w.id,I),r.indexOf(\"event\")>-1&&g.click(A,e,w.id)}function D(t,e){return 1-e/w.h}function R(t,e){return 1-(t+(w.h-e)/Math.sqrt(3))/w.w}function B(t,e){return(t-(w.h-e)/Math.sqrt(3))/w.w}function F(i,a){var o=t+i,s=e+a,l=Math.max(0,Math.min(1,D(0,e),D(0,s))),c=Math.max(0,Math.min(1,R(t,e),R(o,s))),d=Math.max(0,Math.min(1,B(t,e),B(o,s))),g=(l/2+d)*w.w,m=(1-l/2-c)*w.w,y=(g+m)/2,x=m-g,M=(1-l)*w.h,A=M-x/k;x<b.MINZOOM?(u=r,v.attr(\"d\",h),_.attr(\"d\",\"M0,0Z\")):(u={a:r.a+l*n,b:r.b+c*n,c:r.c+d*n},v.attr(\"d\",h+\"M\"+g+\",\"+M+\"H\"+m+\"L\"+y+\",\"+A+\"L\"+g+\",\"+M+\"Z\"),_.attr(\"d\",\"M\"+t+\",\"+e+C+\"M\"+g+\",\"+M+T+\"M\"+m+\",\"+M+S+\"M\"+y+\",\"+A+E)),p||(v.transition().style(\"fill\",f>.2?\"rgba(0,0,0,0.4)\":\"rgba(255,255,255,0.3)\").duration(200),_.transition().style(\"opacity\",1).duration(200),p=!0)}function N(){if(z(A),u!==r){var t={};t[w.id+\".aaxis.min\"]=u.a,t[w.id+\".baxis.min\"]=u.b,t[w.id+\".caxis.min\"]=u.c,a.call(\"relayout\",A,t),L&&A.data&&A._context.showTips&&(o.notifier(s(A,\"Double-click to zoom back out\"),\"long\"),L=!1)}}function j(t,e){var n=t/w.xaxis._m,i=e/w.yaxis._m,a=[(u={a:r.a-i,b:r.b+(n+i)/2,c:r.c-(n-i)/2}).a,u.b,u.c].sort(),o=a.indexOf(u.a),s=a.indexOf(u.b),l=a.indexOf(u.c);a[0]<0&&(a[1]+a[0]/2<0?(a[2]+=a[0]+a[1],a[0]=a[1]=0):(a[2]+=a[0]/2,a[1]+=a[0]/2,a[0]=0),u={a:a[o],b:a[s],c:a[l]},e=(r.a-u.a)*w.yaxis._m,t=(r.c-u.c-r.b+u.b)*w.xaxis._m);var f=\"translate(\"+(w.x0+t)+\",\"+(w.y0+e)+\")\";w.plotContainer.selectAll(\".scatterlayer,.maplayer\").attr(\"transform\",f);var h=\"translate(\"+-t+\",\"+-e+\")\";w.clipDefRelative.select(\"path\").attr(\"transform\",h),w.aaxis.range=[u.a,w.sum-u.b-u.c],w.baxis.range=[w.sum-u.a-u.c,u.b],w.caxis.range=[w.sum-u.a-u.b,u.c],w.drawAxes(!1),w.plotContainer.selectAll(\".crisp\").classed(\"crisp\",!1),w._hasClipOnAxisFalse&&w.plotContainer.select(\".scatterlayer\").selectAll(\".trace\").call(c.hideOutsideRangePoints,w)}function V(){var t={};t[w.id+\".aaxis.min\"]=u.a,t[w.id+\".baxis.min\"]=u.b,t[w.id+\".caxis.min\"]=u.c,a.call(\"relayout\",A,t)}M.onmousemove=function(t){g.hover(A,t,w.id),A._fullLayout._lasthover=M,A._fullLayout._hoversubplot=w.id},M.onmouseout=function(t){A._dragging||d.unhover(A,t)},d.init(I)}},{\"../../components/color\":570,\"../../components/dragelement\":592,\"../../components/drawing\":595,\"../../components/fx\":612,\"../../components/titles\":661,\"../../lib\":696,\"../../lib/extend\":685,\"../../registry\":827,\"../cartesian/axes\":744,\"../cartesian/constants\":750,\"../cartesian/select\":762,\"../cartesian/set_convert\":763,\"../plots\":808,d3:148,tinycolor2:514}],827:[function(t,e,r){\"use strict\";var n=t(\"./lib/loggers\"),i=t(\"./lib/noop\"),a=t(\"./lib/push_unique\"),o=t(\"./lib/is_plain_object\"),s=t(\"./lib/extend\"),l=t(\"./plots/attributes\"),c=t(\"./plots/layout_attributes\"),u=s.extendFlat,f=s.extendDeepAll;function h(t){var e=t.name,i=t.categories,a=t.meta;if(r.modules[e])n.log(\"Type \"+e+\" already registered\");else{r.subplotsRegistry[t.basePlotModule.name]||function(t){var e=t.name;if(r.subplotsRegistry[e])return void n.log(\"Plot type \"+e+\" already registered.\");for(var i in v(t),r.subplotsRegistry[e]=t,r.componentsRegistry)x(i,t.name)}(t.basePlotModule);for(var o={},s=0;s<i.length;s++)o[i[s]]=!0,r.allCategories[i[s]]=!0;for(var l in r.modules[e]={_module:t,categories:o},a&&Object.keys(a).length&&(r.modules[e].meta=a),r.allTypes.push(e),r.componentsRegistry)m(l,e);t.layoutAttributes&&u(r.traceLayoutAttributes,t.layoutAttributes)}}function p(t){if(\"string\"!=typeof t.name)throw new Error(\"Component module *name* must be a string.\");var e=t.name;for(var n in r.componentsRegistry[e]=t,t.layoutAttributes&&(t.layoutAttributes._isLinkedToArray&&a(r.layoutArrayContainers,e),v(t)),r.modules)m(e,n);for(var i in r.subplotsRegistry)x(e,i);for(var o in r.transformsRegistry)y(e,o);t.schema&&t.schema.layout&&f(c,t.schema.layout)}function d(t){if(\"string\"!=typeof t.name)throw new Error(\"Transform module *name* must be a string.\");var e=\"Transform module \"+t.name,i=\"function\"==typeof t.transform,a=\"function\"==typeof t.calcTransform;if(!i&&!a)throw new Error(e+\" is missing a *transform* or *calcTransform* method.\");for(var s in i&&a&&n.log([e+\" has both a *transform* and *calcTransform* methods.\",\"Please note that all *transform* methods are executed\",\"before all *calcTransform* methods.\"].join(\" \")),o(t.attributes)||n.log(e+\" registered without an *attributes* object.\"),\"function\"!=typeof t.supplyDefaults&&n.log(e+\" registered without a *supplyDefaults* method.\"),r.transformsRegistry[t.name]=t,r.componentsRegistry)y(s,t.name)}function g(t){var e=t.name,n=e.split(\"-\")[0],i=t.dictionary,a=t.format,o=i&&Object.keys(i).length,s=a&&Object.keys(a).length,l=r.localeRegistry,c=l[e];if(c||(l[e]=c={}),n!==e){var u=l[n];u||(l[n]=u={}),o&&u.dictionary===c.dictionary&&(u.dictionary=i),s&&u.format===c.format&&(u.format=a)}o&&(c.dictionary=i),s&&(c.format=a)}function v(t){if(t.layoutAttributes){var e=t.layoutAttributes._arrayAttrRegexps;if(e)for(var n=0;n<e.length;n++)a(r.layoutArrayRegexes,e[n])}}function m(t,e){var n=r.componentsRegistry[t].schema;if(n&&n.traces){var i=n.traces[e];i&&f(r.modules[e]._module.attributes,i)}}function y(t,e){var n=r.componentsRegistry[t].schema;if(n&&n.transforms){var i=n.transforms[e];i&&f(r.transformsRegistry[e].attributes,i)}}function x(t,e){var n=r.componentsRegistry[t].schema;if(n&&n.subplots){var i=r.subplotsRegistry[e],a=i.layoutAttributes,o=\"subplot\"===i.attr?i.name:i.attr;Array.isArray(o)&&(o=o[0]);var s=n.subplots[o];a&&s&&f(a,s)}}function b(t){return\"object\"==typeof t&&(t=t.type),t}r.modules={},r.allCategories={},r.allTypes=[],r.subplotsRegistry={},r.transformsRegistry={},r.componentsRegistry={},r.layoutArrayContainers=[],r.layoutArrayRegexes=[],r.traceLayoutAttributes={},r.localeRegistry={},r.apiMethodRegistry={},r.register=function(t){if(!t)throw new Error(\"No argument passed to Plotly.register.\");t&&!Array.isArray(t)&&(t=[t]);for(var e=0;e<t.length;e++){var n=t[e];if(!n)throw new Error(\"Invalid module was attempted to be registered!\");switch(n.moduleType){case\"trace\":h(n);break;case\"transform\":d(n);break;case\"component\":p(n);break;case\"locale\":g(n);break;case\"apiMethod\":var i=n.name;r.apiMethodRegistry[i]=n.fn;break;default:throw new Error(\"Invalid module was attempted to be registered!\")}}},r.getModule=function(t){var e=r.modules[b(t)];return!!e&&e._module},r.traceIs=function(t,e){if(\"various\"===(t=b(t)))return!1;var i=r.modules[t];return i||(t&&\"area\"!==t&&n.log(\"Unrecognized trace type \"+t+\".\"),i=r.modules[l.type.dflt]),!!i.categories[e]},r.getTransformIndices=function(t,e){for(var r=[],n=t.transforms||[],i=0;i<n.length;i++)n[i].type===e&&r.push(i);return r},r.hasTransform=function(t,e){for(var r=t.transforms||[],n=0;n<r.length;n++)if(r[n].type===e)return!0;return!1},r.getComponentMethod=function(t,e){var n=r.componentsRegistry[t];return n&&n[e]||i},r.call=function(){var t=arguments[0],e=[].slice.call(arguments,1);return r.apiMethodRegistry[t].apply(null,e)}},{\"./lib/extend\":685,\"./lib/is_plain_object\":697,\"./lib/loggers\":700,\"./lib/noop\":705,\"./lib/push_unique\":710,\"./plots/attributes\":741,\"./plots/layout_attributes\":799}],828:[function(t,e,r){\"use strict\";var n=t(\"../lib\"),i=n.extendFlat,a=n.extendDeep;function o(t){var e;switch(t){case\"themes__thumb\":e={autosize:!0,width:150,height:150,title:\"\",showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case\"thumbnail\":e={title:\"\",hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:\"\",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:e={}}return e}e.exports=function(t,e){var r;t.framework&&t.framework.isPolar&&(t=t.framework.getConfig());var n,s=t.data,l=t.layout,c=a([],s),u=a({},l,o(e.tileClass)),f=t._context||{};if(e.width&&(u.width=e.width),e.height&&(u.height=e.height),\"thumbnail\"===e.tileClass||\"themes__thumb\"===e.tileClass){u.annotations=[];var h=Object.keys(u);for(r=0;r<h.length;r++)n=h[r],[\"xaxis\",\"yaxis\",\"zaxis\"].indexOf(n.slice(0,5))>-1&&(u[h[r]].title=\"\");for(r=0;r<c.length;r++){var p=c[r];p.showscale=!1,p.marker&&(p.marker.showscale=!1),\"pie\"===p.type&&(p.textposition=\"none\")}}if(Array.isArray(e.annotations))for(r=0;r<e.annotations.length;r++)u.annotations.push(e.annotations[r]);var d=Object.keys(u).filter(function(t){return t.match(/^scene\\d*$/)});if(d.length){var g={};for(\"thumbnail\"===e.tileClass&&(g={title:\"\",showaxeslabels:!1,showticklabels:!1,linetickenable:!1}),r=0;r<d.length;r++){var v=u[d[r]];v.xaxis||(v.xaxis={}),v.yaxis||(v.yaxis={}),v.zaxis||(v.zaxis={}),i(v.xaxis,g),i(v.yaxis,g),i(v.zaxis,g),v._scene=null}}var m=document.createElement(\"div\");e.tileClass&&(m.className=e.tileClass);var y={gd:m,td:m,layout:u,data:c,config:{staticPlot:void 0===e.staticPlot||e.staticPlot,plotGlPixelRatio:void 0===e.plotGlPixelRatio?2:e.plotGlPixelRatio,displaylogo:e.displaylogo||!1,showLink:e.showLink||!1,showTips:e.showTips||!1,mapboxAccessToken:f.mapboxAccessToken}};return\"transparent\"!==e.setBackground&&(y.config.setBackground=e.setBackground||\"opaque\"),y.gd.defaultLayout=o(e.tileClass),y}},{\"../lib\":696}],829:[function(t,e,r){\"use strict\";var n=t(\"../plot_api/to_image\"),i=t(\"../lib\"),a=t(\"./filesaver\");e.exports=function(t,e){var r;return i.isPlainObject(t)||(r=i.getGraphDiv(t)),(e=e||{}).format=e.format||\"png\",new Promise(function(o,s){r&&r._snapshotInProgress&&s(new Error(\"Snapshotting already in progress.\")),i.isIE()&&\"svg\"!==e.format&&s(new Error(\"Sorry IE does not support downloading from canvas. Try {format:'svg'} instead.\")),r&&(r._snapshotInProgress=!0);var l=n(t,e),c=e.filename||t.fn||\"newplot\";c+=\".\"+e.format,l.then(function(t){return r&&(r._snapshotInProgress=!1),a(t,c)}).then(function(t){o(t)}).catch(function(t){r&&(r._snapshotInProgress=!1),s(t)})})}},{\"../lib\":696,\"../plot_api/to_image\":737,\"./filesaver\":830}],830:[function(t,e,r){\"use strict\";e.exports=function(t,e){var r=document.createElement(\"a\"),n=\"download\"in r,i=/Version\\/[\\d\\.]+.*Safari/.test(navigator.userAgent);return new Promise(function(a,o){if(\"undefined\"!=typeof navigator&&/MSIE [1-9]\\./.test(navigator.userAgent)&&o(new Error(\"IE < 10 unsupported\")),i&&(document.location.href=\"data:application/octet-stream\"+t.slice(t.search(/[,;]/)),a(e)),e||(e=\"download\"),n&&(r.href=t,r.download=e,document.body.appendChild(r),r.click(),document.body.removeChild(r),a(e)),\"undefined\"!=typeof navigator&&navigator.msSaveBlob){var s=t.split(/^data:image\\/svg\\+xml,/)[1],l=decodeURIComponent(s);navigator.msSaveBlob(new Blob([l]),e),a(e)}o(new Error(\"download error\"))})}},{}],831:[function(t,e,r){\"use strict\";r.getDelay=function(t){return t._has&&(t._has(\"gl3d\")||t._has(\"gl2d\")||t._has(\"mapbox\"))?500:0},r.getRedrawFunc=function(t){var e=t._fullLayout||{};if(!(!(e._has&&e._has(\"polar\"))&&t.data&&t.data[0]&&t.data[0].r))return function(){(t.calcdata||[]).forEach(function(t){t[0]&&t[0].t&&t[0].t.cb&&t[0].t.cb()})}}},{}],832:[function(t,e,r){\"use strict\";var n=t(\"./helpers\"),i={getDelay:n.getDelay,getRedrawFunc:n.getRedrawFunc,clone:t(\"./cloneplot\"),toSVG:t(\"./tosvg\"),svgToImg:t(\"./svgtoimg\"),toImage:t(\"./toimage\"),downloadImage:t(\"./download\")};e.exports=i},{\"./cloneplot\":828,\"./download\":829,\"./helpers\":831,\"./svgtoimg\":833,\"./toimage\":834,\"./tosvg\":835}],833:[function(t,e,r){\"use strict\";var n=t(\"../lib\"),i=t(\"events\").EventEmitter;e.exports=function(t){var e=t.emitter||new i,r=new Promise(function(i,a){var o=window.Image,s=t.svg,l=t.format||\"png\";if(n.isIE()&&\"svg\"!==l){var c=new Error(\"Sorry IE does not support downloading from canvas. Try {format:'svg'} instead.\");return a(c),t.promise?r:e.emit(\"error\",c)}var u=t.canvas,f=t.scale||1,h=t.width||300,p=t.height||150,d=f*h,g=f*p,v=u.getContext(\"2d\"),m=new o,y=\"data:image/svg+xml,\"+encodeURIComponent(s);u.width=d,u.height=g,m.onload=function(){var r;switch(\"svg\"!==l&&v.drawImage(m,0,0,d,g),l){case\"jpeg\":r=u.toDataURL(\"image/jpeg\");break;case\"png\":r=u.toDataURL(\"image/png\");break;case\"webp\":r=u.toDataURL(\"image/webp\");break;case\"svg\":r=y;break;default:var n=\"Image format is not jpeg, png, svg or webp.\";if(a(new Error(n)),!t.promise)return e.emit(\"error\",n)}i(r),t.promise||e.emit(\"success\",r)},m.onerror=function(r){if(a(r),!t.promise)return e.emit(\"error\",r)},m.src=y});return t.promise?r:e}},{\"../lib\":696,events:92}],834:[function(t,e,r){\"use strict\";var n=t(\"events\").EventEmitter,i=t(\"../registry\"),a=t(\"../lib\"),o=t(\"./helpers\"),s=t(\"./cloneplot\"),l=t(\"./tosvg\"),c=t(\"./svgtoimg\");e.exports=function(t,e){var r=new n,u=s(t,{format:\"png\"}),f=u.gd;f.style.position=\"absolute\",f.style.left=\"-5000px\",document.body.appendChild(f);var h=o.getRedrawFunc(f);return i.call(\"plot\",f,u.data,u.layout,u.config).then(h).then(function(){var t=o.getDelay(f._fullLayout);setTimeout(function(){var t=l(f),n=document.createElement(\"canvas\");n.id=a.randstr(),(r=c({format:e.format,width:f._fullLayout.width,height:f._fullLayout.height,canvas:n,emitter:r,svg:t})).clean=function(){f&&document.body.removeChild(f)}},t)}).catch(function(t){r.emit(\"error\",t)}),r}},{\"../lib\":696,\"../registry\":827,\"./cloneplot\":828,\"./helpers\":831,\"./svgtoimg\":833,\"./tosvg\":835,events:92}],835:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../lib\"),a=t(\"../components/drawing\"),o=t(\"../components/color\"),s=t(\"../constants/xmlns_namespaces\"),l=/\"/g,c=new RegExp('(\"TOBESTRIPPED)|(TOBESTRIPPED\")',\"g\");e.exports=function(t,e,r){var u,f=t._fullLayout,h=f._paper,p=f._toppaper,d=f.width,g=f.height;h.insert(\"rect\",\":first-child\").call(a.setRect,0,0,d,g).call(o.fill,f.paper_bgcolor);var v=f._basePlotModules||[];for(u=0;u<v.length;u++){var m=v[u];m.toSVG&&m.toSVG(t)}if(p){var y=p.node().childNodes,x=Array.prototype.slice.call(y);for(u=0;u<x.length;u++){var b=x[u];b.childNodes.length&&h.node().appendChild(b)}}f._draggers&&f._draggers.remove(),h.node().style.background=\"\",h.selectAll(\"text\").attr({\"data-unformatted\":null,\"data-math\":null}).each(function(){var t=n.select(this);if(\"hidden\"!==this.style.visibility&&\"none\"!==this.style.display){t.style({visibility:null,display:null});var e=this.style.fontFamily;e&&-1!==e.indexOf('\"')&&t.style(\"font-family\",e.replace(l,\"TOBESTRIPPED\"))}else t.remove()}),h.selectAll(\".point, .scatterpts, .legendfill>path, .legendlines>path, .cbfill\").each(function(){var t=n.select(this),e=this.style.fill;e&&-1!==e.indexOf(\"url(\")&&t.style(\"fill\",e.replace(l,\"TOBESTRIPPED\"));var r=this.style.stroke;r&&-1!==r.indexOf(\"url(\")&&t.style(\"stroke\",r.replace(l,\"TOBESTRIPPED\"))}),\"pdf\"!==e&&\"eps\"!==e||h.selectAll(\"#MathJax_SVG_glyphs path\").attr(\"stroke-width\",0),h.node().setAttributeNS(s.xmlns,\"xmlns\",s.svg),h.node().setAttributeNS(s.xmlns,\"xmlns:xlink\",s.xlink),\"svg\"===e&&r&&(h.attr(\"width\",r*d),h.attr(\"height\",r*g),h.attr(\"viewBox\",\"0 0 \"+d+\" \"+g));var _=(new window.XMLSerializer).serializeToString(h.node());return _=function(t){var e=n.select(\"body\").append(\"div\").style({display:\"none\"}).html(\"\"),r=t.replace(/(&[^;]*;)/gi,function(t){return\"&lt;\"===t?\"&#60;\":\"&rt;\"===t?\"&#62;\":-1!==t.indexOf(\"<\")||-1!==t.indexOf(\">\")?\"\":e.html(t).text()});return e.remove(),r}(_),_=(_=_.replace(/&(?!\\w+;|\\#[0-9]+;| \\#x[0-9A-F]+;)/g,\"&amp;\")).replace(c,\"'\"),i.isIE()&&(_=(_=(_=_.replace(/\"/gi,\"'\")).replace(/(\\('#)([^']*)('\\))/gi,'(\"#$2\")')).replace(/(\\\\')/gi,'\"')),_}},{\"../components/color\":570,\"../components/drawing\":595,\"../constants/xmlns_namespaces\":674,\"../lib\":696,d3:148}],836:[function(t,e,r){\"use strict\";var n=t(\"../../lib\").mergeArray;e.exports=function(t,e){for(var r=0;r<t.length;r++)t[r].i=r;n(e.text,t,\"tx\"),n(e.hovertext,t,\"htx\");var i=e.marker;if(i){n(i.opacity,t,\"mo\"),n(i.color,t,\"mc\");var a=i.line;a&&(n(a.color,t,\"mlc\"),n(a.width,t,\"mlw\"))}}},{\"../../lib\":696}],837:[function(t,e,r){\"use strict\";var n=t(\"../scatter/attributes\"),i=t(\"../../components/colorscale/attributes\"),a=t(\"../../components/colorbar/attributes\"),o=t(\"../../plots/font_attributes\"),s=t(\"../../lib/extend\").extendFlat,l=o({editType:\"calc\",arrayOk:!0,colorEditType:\"style\"}),c=s({},n.marker.line.width,{dflt:0}),u=s({width:c,editType:\"calc\"},i(\"marker.line\")),f=s({line:u,editType:\"calc\"},i(\"marker\"),{colorbar:a,opacity:{valType:\"number\",arrayOk:!0,dflt:1,min:0,max:1,editType:\"style\"}});e.exports={x:n.x,x0:n.x0,dx:n.dx,y:n.y,y0:n.y0,dy:n.dy,text:n.text,hovertext:n.hovertext,textposition:{valType:\"enumerated\",values:[\"inside\",\"outside\",\"auto\",\"none\"],dflt:\"none\",arrayOk:!0,editType:\"calc\"},textfont:s({},l,{}),insidetextfont:s({},l,{}),outsidetextfont:s({},l,{}),constraintext:{valType:\"enumerated\",values:[\"inside\",\"outside\",\"both\",\"none\"],dflt:\"both\",editType:\"calc\"},cliponaxis:s({},n.cliponaxis,{}),orientation:{valType:\"enumerated\",values:[\"v\",\"h\"],editType:\"calc+clearAxisTypes\"},base:{valType:\"any\",dflt:null,arrayOk:!0,editType:\"calc\"},offset:{valType:\"number\",dflt:null,arrayOk:!0,editType:\"calc\"},width:{valType:\"number\",dflt:null,min:0,arrayOk:!0,editType:\"calc\"},marker:f,selected:{marker:{opacity:n.selected.marker.opacity,color:n.selected.marker.color,editType:\"style\"},textfont:n.selected.textfont,editType:\"style\"},unselected:{marker:{opacity:n.unselected.marker.opacity,color:n.unselected.marker.color,editType:\"style\"},textfont:n.unselected.textfont,editType:\"style\"},r:n.r,t:n.t,_deprecated:{bardir:{valType:\"enumerated\",editType:\"calc\",values:[\"v\",\"h\"]}}}},{\"../../components/colorbar/attributes\":571,\"../../components/colorscale/attributes\":577,\"../../lib/extend\":685,\"../../plots/font_attributes\":771,\"../scatter/attributes\":1043}],838:[function(t,e,r){\"use strict\";var n=t(\"../../plots/cartesian/axes\"),i=t(\"../../components/colorscale/has_colorscale\"),a=t(\"../../components/colorscale/calc\"),o=t(\"./arrays_to_calcdata\"),s=t(\"../scatter/calc_selection\");e.exports=function(t,e){var r,l,c=n.getFromId(t,e.xaxis||\"x\"),u=n.getFromId(t,e.yaxis||\"y\");\"h\"===e.orientation?(r=c.makeCalcdata(e,\"x\"),l=u.makeCalcdata(e,\"y\")):(r=u.makeCalcdata(e,\"y\"),l=c.makeCalcdata(e,\"x\"));for(var f=Math.min(l.length,r.length),h=new Array(f),p=0;p<f;p++)h[p]={p:l[p],s:r[p]},e.ids&&(h[p].id=String(e.ids[p]));return i(e,\"marker\")&&a(e,e.marker.color,\"marker\",\"c\"),i(e,\"marker.line\")&&a(e,e.marker.line.color,\"marker.line\",\"c\"),o(h,e),s(h,e),h}},{\"../../components/colorscale/calc\":578,\"../../components/colorscale/has_colorscale\":584,\"../../plots/cartesian/axes\":744,\"../scatter/calc_selection\":1045,\"./arrays_to_calcdata\":836}],839:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../../lib\").isArrayOrTypedArray,a=t(\"../../constants/numerical\").BADNUM,o=t(\"../../registry\"),s=t(\"../../plots/cartesian/axes\"),l=t(\"./sieve.js\");function c(t,e,r,o){if(o.length){var c,_,w,k,M=t._fullLayout.barmode,A=\"overlay\"===M,T=\"group\"===M;if(function(t,e,r,a){var o,s;for(o=0;o<a.length;o++){var l,c=a[o],u=c[0].trace,f=u.base,h=\"h\"===u.orientation?u.xcalendar:u.ycalendar;if(i(f)){for(s=0;s<Math.min(f.length,c.length);s++)l=r.d2c(f[s],0,h),n(l)?(c[s].b=+l,c[s].hasB=1):c[s].b=0;for(;s<c.length;s++)c[s].b=0}else{l=r.d2c(f,0,h);var p=n(l);for(l=p?l:0,s=0;s<c.length;s++)c[s].b=l,p&&(c[s].hasB=1)}}}(0,0,r,o),A)u(t,e,r,o);else if(T){for(c=[],_=[],w=0;w<o.length;w++)void 0===(k=o[w])[0].trace.offset?_.push(k):c.push(k);_.length&&function(t,e,r,n){var i=t._fullLayout.barnorm,a=new l(n,!1,!i);(function(t,e,r){var n,i,a,o,s=t._fullLayout,l=s.bargap,c=s.bargroupgap||0,u=r.positions,f=r.distinctPositions,g=r.minDiff,v=r.traces,m=u.length!==f.length,y=v.length,x=g*(1-l),b=m?x/y:x,_=b*(1-c);for(n=0;n<y;n++){i=v[n],a=i[0];var w=m?((2*n+1-y)*b-_)/2:-_/2;(o=a.t).barwidth=_,o.poffset=w,o.bargroupwidth=x,o.bardelta=g}r.binWidth=v[0][0].t.barwidth/100,h(r),p(t,e,r),d(t,e,r,m)})(t,e,a),i?(m(t,r,a),y(t,r,a)):v(t,r,a)}(t,e,r,_),c.length&&u(t,e,r,c)}else{for(c=[],_=[],w=0;w<o.length;w++)void 0===(k=o[w])[0].trace.base?_.push(k):c.push(k);_.length&&function(t,e,r,i){var o=t._fullLayout.barmode,c=\"stack\"===o,u=\"relative\"===o,h=t._fullLayout.barnorm,p=new l(i,u,!(h||c||u));f(t,e,p),function(t,e,r){var i,o,l,c,u=t._fullLayout.barnorm,f=x(e),h=r.traces,p=[null,null];for(i=0;i<h.length;i++)for(o=h[i],l=0;l<o.length;l++)if((c=o[l]).s!==a){var d=r.put(c.p,c.b+c.s),v=d+c.b+c.s;c.b=d,c[f]=v,u||(n(e.c2l(v))&&g(p,v),c.hasB&&n(e.c2l(d))&&g(p,d))}if(!u){var m=s.findExtremes(e,p,{tozero:!0,padded:!0});b(h,e,m)}}(t,r,p);for(var d=0;d<i.length;d++)for(var v=i[d],m=0;m<v.length;m++){var _=v[m];if(_.s!==a){var w=_.b+_.s===p.get(_.p,_.s);w&&(_._outmost=!0)}}h&&y(t,r,p)}(t,e,r,_),c.length&&u(t,e,r,c)}!function(t,e){var r,i,a,o=e._id.charAt(0),s={},l=1/0,c=-1/0;for(r=0;r<t.length;r++)for(a=t[r],i=0;i<a.length;i++){var u=a[i].p;n(u)&&(l=Math.min(l,u),c=Math.max(c,u))}var f,h,p=1e4/(c-l),d=s.round=function(t){return String(Math.round(p*(t-l)))};for(r=0;r<t.length;r++)for((a=t[r])[0].t.extents=s,f=a[0].t.poffset,h=Array.isArray(f),i=0;i<a.length;i++){var g=a[i],v=g[o]-g.w/2;if(n(v)){var m=g[o]+g.w/2,y=d(g.p);s[y]?s[y]=[Math.min(v,s[y][0]),Math.max(m,s[y][1])]:s[y]=[v,m]}g.p0=g.p+(h?f[i]:f),g.p1=g.p0+g.w,g.s0=g.b,g.s1=g.s0+g.s}}(o,e)}}function u(t,e,r,n){for(var i=t._fullLayout.barnorm,a=!i,o=0;o<n.length;o++){var s=n[o],c=new l([s],!1,a);f(t,e,c),i?(m(t,r,c),y(t,r,c)):v(t,r,c)}}function f(t,e,r){var n,i,a=t._fullLayout,o=a.bargap,s=a.bargroupgap||0,l=r.minDiff,c=r.traces,u=l*(1-o),f=u*(1-s),g=-f/2;for(n=0;n<c.length;n++)(i=c[n][0].t).barwidth=f,i.poffset=g,i.bargroupwidth=u,i.bardelta=l;r.binWidth=c[0][0].t.barwidth/100,h(r),p(t,e,r),d(t,e,r)}function h(t){var e,r,a,o,s,l,c=t.traces;for(e=0;e<c.length;e++){o=(a=(r=c[e])[0]).trace,l=a.t;var u,f=o._offset||o.offset,h=l.poffset;if(i(f)){for(u=Array.prototype.slice.call(f,0,r.length),s=0;s<u.length;s++)n(u[s])||(u[s]=h);for(s=u.length;s<r.length;s++)u.push(h);l.poffset=u}else void 0!==f&&(l.poffset=f);var p=o._width||o.width,d=l.barwidth;if(i(p)){var g=Array.prototype.slice.call(p,0,r.length);for(s=0;s<g.length;s++)n(g[s])||(g[s]=d);for(s=g.length;s<r.length;s++)g.push(d);if(l.barwidth=g,void 0===f){for(u=[],s=0;s<r.length;s++)u.push(h+(d-g[s])/2);l.poffset=u}}else void 0!==p&&(l.barwidth=p,void 0===f&&(l.poffset=h+(d-p)/2))}}function p(t,e,r){for(var n=r.traces,i=x(e),a=0;a<n.length;a++)for(var o=n[a],s=o[0].t,l=s.poffset,c=Array.isArray(l),u=s.barwidth,f=Array.isArray(u),h=0;h<o.length;h++){var p=o[h],d=p.w=f?u[h]:u;p[i]=p.p+(c?l[h]:l)+d/2}}function d(t,e,r,n){var i=r.traces,a=r.distinctPositions,o=a[0],l=r.minDiff,c=l/2;s.minDtick(e,l,o,n);for(var u=Math.min.apply(Math,a)-c,f=Math.max.apply(Math,a)+c,h=0;h<i.length;h++){var p=i[h],d=p[0],g=d.trace;if(void 0!==g.width||void 0!==g.offset)for(var v=d.t,m=v.poffset,y=v.barwidth,x=Array.isArray(m),_=Array.isArray(y),w=0;w<p.length;w++){var k=p[w],M=x?m[w]:m,A=_?y[w]:y,T=k.p+M,S=T+A;u=Math.min(u,T),f=Math.max(f,S)}}b(i,e,s.findExtremes(e,[u,f],{padded:!1}))}function g(t,e){n(t[0])?t[0]=Math.min(t[0],e):t[0]=e,n(t[1])?t[1]=Math.max(t[1],e):t[1]=e}function v(t,e,r){for(var i=r.traces,a=x(e),o=[null,null],l=0;l<i.length;l++)for(var c=i[l],u=0;u<c.length;u++){var f=c[u],h=f.b,p=h+f.s;f[a]=p,n(e.c2l(p))&&g(o,p),f.hasB&&n(e.c2l(h))&&g(o,h)}b(i,e,s.findExtremes(e,o,{tozero:!0,padded:!0}))}function m(t,e,r){for(var n=r.traces,i=0;i<n.length;i++)for(var o=n[i],s=0;s<o.length;s++){var l=o[s];l.s!==a&&r.put(l.p,l.b+l.s)}}function y(t,e,r){var i=r.traces,o=x(e),l=\"fraction\"===t._fullLayout.barnorm?1:100,c=l/1e9,u=e.l2c(e.c2l(0)),f=\"stack\"===t._fullLayout.barmode?l:u,h=[u,f],p=!1;function d(t){n(e.c2l(t))&&(t<u-c||t>f+c||!n(u))&&(p=!0,g(h,t))}for(var v=0;v<i.length;v++)for(var m=i[v],y=0;y<m.length;y++){var _=m[y];if(_.s!==a){var w=Math.abs(l/r.get(_.p,_.s));_.b*=w,_.s*=w;var k=_.b,M=k+_.s;_[o]=M,d(M),_.hasB&&d(k)}}var A=s.findExtremes(e,h,{tozero:!0,padded:p});b(i,e,A)}function x(t){return t._id.charAt(0)}function b(t,e,r){for(var n=0;n<t.length;n++)t[n][0].trace._extremes[e._id]=r}e.exports={crossTraceCalc:function(t,e){var r,n=e.xaxis,i=e.yaxis,a=t._fullData,s=t.calcdata,l=[],u=[];for(r=0;r<a.length;r++){var f=a[r];!0===f.visible&&o.traceIs(f,\"bar\")&&f.xaxis===n._id&&f.yaxis===i._id&&(\"h\"===f.orientation?l.push(s[r]):u.push(s[r]))}c(t,n,i,u),c(t,i,n,l)},setGroupPositions:c}},{\"../../constants/numerical\":673,\"../../lib\":696,\"../../plots/cartesian/axes\":744,\"../../registry\":827,\"./sieve.js\":848,\"fast-isnumeric\":214}],840:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../components/color\"),a=t(\"../../registry\"),o=t(\"../scatter/xy_defaults\"),s=t(\"../bar/style_defaults\"),l=t(\"./attributes\");e.exports=function(t,e,r,c){function u(r,i){return n.coerce(t,e,l,r,i)}var f=n.coerceFont;if(o(t,e,c,u)){u(\"orientation\",e.x&&!e.y?\"h\":\"v\"),u(\"base\"),u(\"offset\"),u(\"width\"),u(\"text\"),u(\"hovertext\");var h=u(\"textposition\"),p=Array.isArray(h)||\"auto\"===h,d=p||\"outside\"===h;if(p||\"inside\"===h||d){var g=f(u,\"textfont\",c.font),v=n.extendFlat({},g);!(t.textfont&&t.textfont.color)&&delete v.color,f(u,\"insidetextfont\",v),d&&f(u,\"outsidetextfont\",g),u(\"constraintext\"),u(\"selected.textfont.color\"),u(\"unselected.textfont.color\"),u(\"cliponaxis\")}s(t,e,u,r,c);var m=a.getComponentMethod(\"errorbars\",\"supplyDefaults\");m(t,e,i.defaultLine,{axis:\"y\"}),m(t,e,i.defaultLine,{axis:\"x\",inherit:\"y\"}),n.coerceSelectionMarkerOpacity(e,u)}else e.visible=!1}},{\"../../components/color\":570,\"../../lib\":696,\"../../registry\":827,\"../bar/style_defaults\":850,\"../scatter/xy_defaults\":1069,\"./attributes\":837}],841:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"tinycolor2\");r.coerceString=function(t,e,r){if(\"string\"==typeof e){if(e||!t.noBlank)return e}else if(\"number\"==typeof e&&!t.strict)return String(e);return void 0!==r?r:t.dflt},r.coerceNumber=function(t,e,r){if(n(e)){e=+e;var i=t.min,a=t.max;if(!(void 0!==i&&e<i||void 0!==a&&e>a))return e}return void 0!==r?r:t.dflt},r.coerceColor=function(t,e,r){return i(e).isValid()?e:void 0!==r?r:t.dflt},r.coerceEnumerated=function(t,e,r){return t.coerceNumber&&(e=+e),-1!==t.values.indexOf(e)?e:void 0!==r?r:t.dflt},r.getValue=function(t,e){var r;return Array.isArray(t)?e<t.length&&(r=t[e]):r=t,r}},{\"fast-isnumeric\":214,tinycolor2:514}],842:[function(t,e,r){\"use strict\";var n=t(\"../../components/fx\"),i=t(\"../../registry\"),a=t(\"../../components/color\"),o=t(\"../scatter/fill_hover_text\");function s(t,e){var r=e.mcc||t.marker.color,n=e.mlcc||t.marker.line.color,i=e.mlw||t.marker.line.width;return a.opacity(r)?r:a.opacity(n)&&i?n:void 0}e.exports={hoverPoints:function(t,e,r,a){var l,c,u,f,h,p,d,g=t.cd,v=g[0].trace,m=g[0].t,y=\"closest\"===a,x=t.maxHoverDistance,b=t.maxSpikeDistance;function _(t){return t[u]-t.w/2}function w(t){return t[u]+t.w/2}var k=y?_:function(t){return Math.min(_(t),t.p-m.bardelta/2)},M=y?w:function(t){return Math.max(w(t),t.p+m.bardelta/2)};function A(t,e){return n.inbox(t-l,e-l,x+Math.min(1,Math.abs(e-t)/d)-1)}function T(t){return A(k(t),M(t))}function S(t){return n.inbox(t.b-c,t[f]-c,x+(t[f]-c)/(t[f]-t.b)-1)}\"h\"===v.orientation?(l=r,c=e,u=\"y\",f=\"x\",h=S,p=T):(l=e,c=r,u=\"x\",f=\"y\",p=S,h=T);var E=t[u+\"a\"],C=t[f+\"a\"];d=Math.abs(E.r2c(E.range[1])-E.r2c(E.range[0]));var L=n.getDistanceFunction(a,h,p,function(t){return(h(t)+p(t))/2});if(n.getClosest(g,L,t),!1!==t.index){y||(k=function(t){return Math.min(_(t),t.p-m.bargroupwidth/2)},M=function(t){return Math.max(w(t),t.p+m.bargroupwidth/2)});var z=g[t.index],O=v.base?z.b+z.s:z.s;t[f+\"0\"]=t[f+\"1\"]=C.c2p(z[f],!0),t[f+\"LabelVal\"]=O;var I=m.extents[m.extents.round(z.p)];return t[u+\"0\"]=E.c2p(y?k(z):I[0],!0),t[u+\"1\"]=E.c2p(y?M(z):I[1],!0),t[u+\"LabelVal\"]=z.p,t.spikeDistance=(S(z)+function(t){return A(_(t),w(t))}(z))/2+b-x,t[u+\"Spike\"]=E.c2p(z.p,!0),t.color=s(v,z),o(z,v,t),i.getComponentMethod(\"errorbars\",\"hoverInfo\")(z,v,t),[t]}},getTraceColor:s}},{\"../../components/color\":570,\"../../components/fx\":612,\"../../registry\":827,\"../scatter/fill_hover_text\":1051}],843:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.layoutAttributes=t(\"./layout_attributes\"),n.supplyDefaults=t(\"./defaults\"),n.supplyLayoutDefaults=t(\"./layout_defaults\"),n.calc=t(\"./calc\"),n.crossTraceCalc=t(\"./cross_trace_calc\").crossTraceCalc,n.colorbar=t(\"../scatter/marker_colorbar\"),n.arraysToCalcdata=t(\"./arrays_to_calcdata\"),n.plot=t(\"./plot\"),n.style=t(\"./style\").style,n.styleOnSelect=t(\"./style\").styleOnSelect,n.hoverPoints=t(\"./hover\").hoverPoints,n.selectPoints=t(\"./select\"),n.moduleType=\"trace\",n.name=\"bar\",n.basePlotModule=t(\"../../plots/cartesian\"),n.categories=[\"cartesian\",\"svg\",\"bar\",\"oriented\",\"errorBarsOK\",\"showLegend\",\"zoomScale\"],n.meta={},e.exports=n},{\"../../plots/cartesian\":756,\"../scatter/marker_colorbar\":1061,\"./arrays_to_calcdata\":836,\"./attributes\":837,\"./calc\":838,\"./cross_trace_calc\":839,\"./defaults\":840,\"./hover\":842,\"./layout_attributes\":844,\"./layout_defaults\":845,\"./plot\":846,\"./select\":847,\"./style\":849}],844:[function(t,e,r){\"use strict\";e.exports={barmode:{valType:\"enumerated\",values:[\"stack\",\"group\",\"overlay\",\"relative\"],dflt:\"group\",editType:\"calc\"},barnorm:{valType:\"enumerated\",values:[\"\",\"fraction\",\"percent\"],dflt:\"\",editType:\"calc\"},bargap:{valType:\"number\",min:0,max:1,editType:\"calc\"},bargroupgap:{valType:\"number\",min:0,max:1,dflt:0,editType:\"calc\"}}},{}],845:[function(t,e,r){\"use strict\";var n=t(\"../../registry\"),i=t(\"../../plots/cartesian/axes\"),a=t(\"../../lib\"),o=t(\"./layout_attributes\");e.exports=function(t,e,r){function s(r,n){return a.coerce(t,e,o,r,n)}for(var l=!1,c=!1,u=!1,f={},h=0;h<r.length;h++){var p=r[h];if(n.traceIs(p,\"bar\")&&p.visible){if(l=!0,\"overlay\"!==t.barmode&&\"stack\"!==t.barmode){var d=p.xaxis+p.yaxis;f[d]&&(u=!0),f[d]=!0}if(p.visible&&\"histogram\"===p.type)\"category\"!==i.getFromId({_fullLayout:e},p[\"v\"===p.orientation?\"xaxis\":\"yaxis\"]).type&&(c=!0)}}l&&(\"overlay\"!==s(\"barmode\")&&s(\"barnorm\"),s(\"bargap\",c&&!u?0:.2),s(\"bargroupgap\"))}},{\"../../lib\":696,\"../../plots/cartesian/axes\":744,\"../../registry\":827,\"./layout_attributes\":844}],846:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"fast-isnumeric\"),a=t(\"../../lib\"),o=t(\"../../lib/svg_text_utils\"),s=t(\"../../components/color\"),l=t(\"../../components/drawing\"),c=t(\"../../registry\"),u=t(\"./attributes\"),f=u.text,h=u.textposition,p=t(\"./helpers\"),d=t(\"./style\"),g=3;function v(t,e,r,n,i,a){var o;return i<1?o=\"scale(\"+i+\") \":(i=1,o=\"\"),\"translate(\"+(r-i*t)+\" \"+(n-i*e)+\")\"+o+(a?\"rotate(\"+a+\" \"+t+\" \"+e+\") \":\"\")}e.exports=function(t,e,r,u){var m=e.xaxis,y=e.yaxis,x=t._fullLayout,b=a.makeTraceGroups(u,r,\"trace bars\").each(function(r){var c=n.select(this),u=r[0],b=u.trace;e.isRangePlot||(u.node3=c);var _=a.ensureSingle(c,\"g\",\"points\").selectAll(\"g.point\").data(a.identity);_.enter().append(\"g\").classed(\"point\",!0),_.exit().remove(),_.each(function(c,u){var _,w,k,M,A=n.select(this);if(\"h\"===b.orientation?(k=y.c2p(c.p0,!0),M=y.c2p(c.p1,!0),_=m.c2p(c.s0,!0),w=m.c2p(c.s1,!0),c.ct=[w,(k+M)/2]):(_=m.c2p(c.p0,!0),w=m.c2p(c.p1,!0),k=y.c2p(c.s0,!0),M=y.c2p(c.s1,!0),c.ct=[(_+w)/2,M]),i(_)&&i(w)&&i(k)&&i(M)&&_!==w&&k!==M){var T=(c.mlw+1||b.marker.line.width+1||(c.trace?c.trace.marker.line.width:0)+1)-1,S=n.round(T/2%1,2);if(!t._context.staticPlot){var E=s.opacity(c.mc||b.marker.color)<1||T>.01?C:function(t,e){return Math.abs(t-e)>=2?C(t):t>e?Math.ceil(t):Math.floor(t)};_=E(_,w),w=E(w,_),k=E(k,M),M=E(M,k)}a.ensureSingle(A,\"path\").style(\"vector-effect\",\"non-scaling-stroke\").attr(\"d\",\"M\"+_+\",\"+k+\"V\"+M+\"H\"+w+\"V\"+k+\"Z\").call(l.setClipUrl,e.layerClipId),function(t,e,r,n,i,s,c,u){var m;function y(e,r,n){var i=a.ensureSingle(e,\"text\").text(r).attr({class:\"bartext bartext-\"+m,transform:\"\",\"text-anchor\":\"middle\",\"data-notex\":1}).call(l.font,n).call(o.convertToTspans,t);return i}var x=r[0].trace,b=x.orientation,_=function(t,e){var r=p.getValue(t.text,e);return p.coerceString(f,r)}(x,n);if(m=function(t,e){var r=p.getValue(t.textposition,e);return p.coerceEnumerated(h,r)}(x,n),!_||\"none\"===m)return void e.select(\"text\").remove();var w,k,M,A,T,S,E=t._fullLayout.font,C=d.getBarColor(r[n],x),L=d.getInsideTextFont(x,n,E,C),z=d.getOutsideTextFont(x,n,E),O=t._fullLayout.barmode,I=\"relative\"===O,P=\"stack\"===O||I,D=r[n],R=!P||D._outmost,B=Math.abs(s-i)-2*g,F=Math.abs(u-c)-2*g;\"outside\"===m&&(R||D.hasB||(m=\"inside\"));if(\"auto\"===m)if(R){m=\"inside\",w=y(e,_,L),k=l.bBox(w.node()),M=k.width,A=k.height;var N=M>0&&A>0,j=M<=B&&A<=F,V=M<=F&&A<=B,U=\"h\"===b?B>=M*(F/A):F>=A*(B/M);N&&(j||V||U)?m=\"inside\":(m=\"outside\",w.remove(),w=null)}else m=\"inside\";if(!w&&(w=y(e,_,\"outside\"===m?z:L),k=l.bBox(w.node()),M=k.width,A=k.height,M<=0||A<=0))return void w.remove();\"outside\"===m?(S=\"both\"===x.constraintext||\"outside\"===x.constraintext,T=function(t,e,r,n,i,a,o){var s,l=\"h\"===a?Math.abs(n-r):Math.abs(e-t);l>2*g&&(s=g);var c=1;o&&(c=\"h\"===a?Math.min(1,l/i.height):Math.min(1,l/i.width));var u,f,h,p,d=(i.left+i.right)/2,m=(i.top+i.bottom)/2;u=c*i.width,f=c*i.height,\"h\"===a?e<t?(h=e-s-u/2,p=(r+n)/2):(h=e+s+u/2,p=(r+n)/2):n>r?(h=(t+e)/2,p=n+s+f/2):(h=(t+e)/2,p=n-s-f/2);return v(d,m,h,p,c,!1)}(i,s,c,u,k,b,S)):(S=\"both\"===x.constraintext||\"inside\"===x.constraintext,T=function(t,e,r,n,i,a,o){var s,l,c,u,f,h,p,d=i.width,m=i.height,y=(i.left+i.right)/2,x=(i.top+i.bottom)/2,b=Math.abs(e-t),_=Math.abs(n-r);b>2*g&&_>2*g?(b-=2*(f=g),_-=2*f):f=0;d<=b&&m<=_?(h=!1,p=1):d<=_&&m<=b?(h=!0,p=1):d<m==b<_?(h=!1,p=o?Math.min(b/d,_/m):1):(h=!0,p=o?Math.min(_/d,b/m):1);h&&(h=90);h?(s=p*m,l=p*d):(s=p*d,l=p*m);\"h\"===a?e<t?(c=e+f+s/2,u=(r+n)/2):(c=e-f-s/2,u=(r+n)/2):n>r?(c=(t+e)/2,u=n-f-l/2):(c=(t+e)/2,u=n+f+l/2);return v(y,x,c,u,p,h)}(i,s,c,u,k,b,S));w.attr(\"transform\",T)}(t,A,r,u,_,w,k,M),e.layerClipId&&l.hideOutsideRangePoint(c,A.select(\"text\"),m,y,b.xcalendar,b.ycalendar)}else A.remove();function C(t){return 0===x.bargap&&0===x.bargroupgap?n.round(Math.round(t)-S,2):t}});var w=!1===u.trace.cliponaxis;l.setClipUrl(c,w?null:e.layerClipId)});c.getComponentMethod(\"errorbars\",\"plot\")(b,e)}},{\"../../components/color\":570,\"../../components/drawing\":595,\"../../lib\":696,\"../../lib/svg_text_utils\":720,\"../../registry\":827,\"./attributes\":837,\"./helpers\":841,\"./style\":849,d3:148,\"fast-isnumeric\":214}],847:[function(t,e,r){\"use strict\";e.exports=function(t,e){var r,n=t.cd,i=t.xaxis,a=t.yaxis,o=[];if(!1===e)for(r=0;r<n.length;r++)n[r].selected=0;else for(r=0;r<n.length;r++){var s=n[r];e.contains(s.ct,!1,r,t)?(o.push({pointNumber:r,x:i.c2d(s.x),y:a.c2d(s.y)}),s.selected=1):s.selected=0}return o}},{}],848:[function(t,e,r){\"use strict\";e.exports=a;var n=t(\"../../lib\"),i=t(\"../../constants/numerical\").BADNUM;function a(t,e,r){this.traces=t,this.separateNegativeValues=e,this.dontMergeOverlappingData=r;for(var a=1/0,o=[],s=0;s<t.length;s++){for(var l=t[s],c=0;c<l.length;c++){var u=l[c];u.p!==i&&o.push(u.p)}l[0]&&l[0].width1&&(a=Math.min(l[0].width1,a))}this.positions=o;var f=n.distinctVals(o);this.distinctPositions=f.vals,1===f.vals.length&&a!==1/0?this.minDiff=a:this.minDiff=Math.min(f.minDiff,a),this.binWidth=this.minDiff,this.bins={}}a.prototype.put=function(t,e){var r=this.getLabel(t,e),n=this.bins[r]||0;return this.bins[r]=n+e,n},a.prototype.get=function(t,e){var r=this.getLabel(t,e);return this.bins[r]||0},a.prototype.getLabel=function(t,e){return(e<0&&this.separateNegativeValues?\"v\":\"^\")+(this.dontMergeOverlappingData?t:Math.round(t/this.binWidth))}},{\"../../constants/numerical\":673,\"../../lib\":696}],849:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../../components/color\"),a=t(\"../../components/drawing\"),o=t(\"../../lib\"),s=t(\"../../registry\"),l=t(\"./attributes\"),c=l.textfont,u=l.insidetextfont,f=l.outsidetextfont,h=t(\"./helpers\");function p(t,e,r){var i=t.selectAll(\"path\"),o=t.selectAll(\"text\");a.pointStyle(i,e,r),o.each(function(t){var i=n.select(this),o=d(i,t,e,r);a.font(i,o)})}function d(t,e,r,n){var i=n._fullLayout.font,a=r.textfont;if(t.classed(\"bartext-inside\")){var o=x(e,r);a=v(r,e.i,i,o)}else t.classed(\"bartext-outside\")&&(a=m(r,e.i,i));return a}function g(t,e,r){return y(c,t.textfont,e,r)}function v(t,e,r,n){var a=g(t,e,r);return(void 0===t._input.textfont||void 0===t._input.textfont.color||Array.isArray(t.textfont.color)&&void 0===t.textfont.color[e])&&(a={color:i.contrast(n),family:a.family,size:a.size}),y(u,t.insidetextfont,e,a)}function m(t,e,r){var n=g(t,e,r);return y(f,t.outsidetextfont,e,n)}function y(t,e,r,n){e=e||{};var i=h.getValue(e.family,r),a=h.getValue(e.size,r),o=h.getValue(e.color,r);return{family:h.coerceString(t.family,i,n.family),size:h.coerceNumber(t.size,a,n.size),color:h.coerceColor(t.color,o,n.color)}}function x(t,e){return t.mc||e.marker.color}e.exports={style:function(t,e){var r=e?e[0].node3:n.select(t).selectAll(\"g.trace.bars\"),i=r.size(),a=t._fullLayout;r.style(\"opacity\",function(t){return t[0].trace.opacity}).each(function(t){(\"stack\"===a.barmode&&i>1||0===a.bargap&&0===a.bargroupgap&&!t[0].trace.marker.line.width)&&n.select(this).attr(\"shape-rendering\",\"crispEdges\")}),r.selectAll(\"g.points\").each(function(e){p(n.select(this),e[0].trace,t)}),s.getComponentMethod(\"errorbars\",\"style\")(r)},styleOnSelect:function(t,e){var r=e[0].node3,i=e[0].trace;i.selectedpoints?function(t,e,r){a.selectedPointStyle(t.selectAll(\"path\"),e),function(t,e,r){t.each(function(t){var i,s=n.select(this);if(t.selected){i=o.extendFlat({},d(s,t,e,r));var l=e.selected.textfont&&e.selected.textfont.color;l&&(i.color=l),a.font(s,i)}else a.selectedTextStyle(s,e)})}(t.selectAll(\"text\"),e,r)}(r,i,t):p(r,i,t)},getInsideTextFont:v,getOutsideTextFont:m,getBarColor:x}},{\"../../components/color\":570,\"../../components/drawing\":595,\"../../lib\":696,\"../../registry\":827,\"./attributes\":837,\"./helpers\":841,d3:148}],850:[function(t,e,r){\"use strict\";var n=t(\"../../components/color\"),i=t(\"../../components/colorscale/has_colorscale\"),a=t(\"../../components/colorscale/defaults\");e.exports=function(t,e,r,o,s){r(\"marker.color\",o),i(t,\"marker\")&&a(t,e,s,r,{prefix:\"marker.\",cLetter:\"c\"}),r(\"marker.line.color\",n.defaultLine),i(t,\"marker.line\")&&a(t,e,s,r,{prefix:\"marker.line.\",cLetter:\"c\"}),r(\"marker.line.width\"),r(\"marker.opacity\"),r(\"selected.marker.color\"),r(\"unselected.marker.color\")}},{\"../../components/color\":570,\"../../components/colorscale/defaults\":580,\"../../components/colorscale/has_colorscale\":584}],851:[function(t,e,r){\"use strict\";var n=t(\"../../lib/extend\").extendFlat,i=t(\"../scatterpolar/attributes\"),a=t(\"../bar/attributes\");e.exports={r:i.r,theta:i.theta,r0:i.r0,dr:i.dr,theta0:i.theta0,dtheta:i.dtheta,thetaunit:i.thetaunit,base:n({},a.base,{}),offset:n({},a.offset,{}),width:n({},a.width,{}),text:n({},a.text,{}),marker:a.marker,hoverinfo:i.hoverinfo,selected:a.selected,unselected:a.unselected}},{\"../../lib/extend\":685,\"../bar/attributes\":837,\"../scatterpolar/attributes\":1105}],852:[function(t,e,r){\"use strict\";var n=t(\"../../components/colorscale/has_colorscale\"),i=t(\"../../components/colorscale/calc\"),a=t(\"../bar/arrays_to_calcdata\"),o=t(\"../bar/cross_trace_calc\").setGroupPositions,s=t(\"../scatter/calc_selection\"),l=t(\"../../registry\").traceIs,c=t(\"../../lib\").extendFlat;e.exports={calc:function(t,e){for(var r=t._fullLayout,o=e.subplot,l=r[o].radialaxis,c=r[o].angularaxis,u=l.makeCalcdata(e,\"r\"),f=c.makeCalcdata(e,\"theta\"),h=e._length,p=new Array(h),d=u,g=f,v=0;v<h;v++)p[v]={p:g[v],s:d[v]};function m(t){var r=e[t];void 0!==r&&(e[\"_\"+t]=Array.isArray(r)?c.makeCalcdata(e,t):c.d2c(r,e.thetaunit))}return\"linear\"===c.type&&(m(\"width\"),m(\"offset\")),n(e,\"marker\")&&i(e,e.marker.color,\"marker\",\"c\"),n(e,\"marker.line\")&&i(e,e.marker.line.color,\"marker.line\",\"c\"),a(p,e),s(p,e),p},crossTraceCalc:function(t,e,r){for(var n=t.calcdata,i=[],a=0;a<n.length;a++){var s=n[a],u=s[0].trace;!0===u.visible&&l(u,\"bar\")&&u.subplot===r&&i.push(s)}var f=c({},e.radialaxis,{_id:\"x\"}),h=e.angularaxis;o({_fullLayout:e},h,f,i)}}},{\"../../components/colorscale/calc\":578,\"../../components/colorscale/has_colorscale\":584,\"../../lib\":696,\"../../registry\":827,\"../bar/arrays_to_calcdata\":836,\"../bar/cross_trace_calc\":839,\"../scatter/calc_selection\":1045}],853:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../scatterpolar/defaults\").handleRThetaDefaults,a=t(\"../bar/style_defaults\"),o=t(\"./attributes\");e.exports=function(t,e,r,s){function l(r,i){return n.coerce(t,e,o,r,i)}i(t,e,s,l)?(l(\"thetaunit\"),l(\"base\"),l(\"offset\"),l(\"width\"),l(\"text\"),a(t,e,l,r,s),n.coerceSelectionMarkerOpacity(e,l)):e.visible=!1}},{\"../../lib\":696,\"../bar/style_defaults\":850,\"../scatterpolar/defaults\":1107,\"./attributes\":851}],854:[function(t,e,r){\"use strict\";var n=t(\"../../components/fx\"),i=t(\"../../lib\"),a=t(\"../bar/hover\").getTraceColor,o=t(\"../scatter/fill_hover_text\"),s=t(\"../scatterpolar/hover\").makeHoverPointText,l=t(\"../../plots/polar/helpers\").isPtInsidePolygon;e.exports=function(t,e,r){var c=t.cd,u=c[0].trace,f=t.subplot,h=f.radialAxis,p=f.angularAxis,d=f.vangles,g=d?l:i.isPtInsideSector,v=t.maxHoverDistance,m=p._period||2*Math.PI,y=Math.abs(h.g2p(Math.sqrt(e*e+r*r))),x=Math.atan2(r,e);h.range[0]>h.range[1]&&(x+=Math.PI);if(n.getClosest(c,function(t){return g(y,x,[t.rp0,t.rp1],[t.thetag0,t.thetag1],d)?v+Math.min(1,Math.abs(t.thetag1-t.thetag0)/m)-1+(t.rp1-y)/(t.rp1-t.rp0)-1:1/0},t),!1!==t.index){var b=c[t.index];t.x0=t.x1=b.ct[0],t.y0=t.y1=b.ct[1];var _=i.extendFlat({},b,{r:b.s,theta:b.p});return o(b,u,t),s(_,u,f,t),t.color=a(u,b),t.xLabelVal=t.yLabelVal=void 0,b.s<0&&(t.idealAlign=\"left\"),[t]}}},{\"../../components/fx\":612,\"../../lib\":696,\"../../plots/polar/helpers\":810,\"../bar/hover\":842,\"../scatter/fill_hover_text\":1051,\"../scatterpolar/hover\":1108}],855:[function(t,e,r){\"use strict\";e.exports={moduleType:\"trace\",name:\"barpolar\",basePlotModule:t(\"../../plots/polar\"),categories:[\"polar\",\"bar\",\"showLegend\"],attributes:t(\"./attributes\"),layoutAttributes:t(\"./layout_attributes\"),supplyDefaults:t(\"./defaults\"),supplyLayoutDefaults:t(\"./layout_defaults\"),calc:t(\"./calc\").calc,crossTraceCalc:t(\"./calc\").crossTraceCalc,plot:t(\"./plot\"),colorbar:t(\"../scatter/marker_colorbar\"),style:t(\"../bar/style\").style,hoverPoints:t(\"./hover\"),selectPoints:t(\"../bar/select\"),meta:{}}},{\"../../plots/polar\":811,\"../bar/select\":847,\"../bar/style\":849,\"../scatter/marker_colorbar\":1061,\"./attributes\":851,\"./calc\":852,\"./defaults\":853,\"./hover\":854,\"./layout_attributes\":856,\"./layout_defaults\":857,\"./plot\":858}],856:[function(t,e,r){\"use strict\";e.exports={barmode:{valType:\"enumerated\",values:[\"stack\",\"overlay\"],dflt:\"stack\",editType:\"calc\"},bargap:{valType:\"number\",dflt:.1,min:0,max:1,editType:\"calc\"}}},{}],857:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"./layout_attributes\");e.exports=function(t,e,r){var a,o={};function s(r,o){return n.coerce(t[a]||{},e[a],i,r,o)}for(var l=0;l<r.length;l++){var c=r[l];\"barpolar\"===c.type&&!0===c.visible&&(o[a=c.subplot]||(s(\"barmode\"),s(\"bargap\"),o[a]=1))}}},{\"../../lib\":696,\"./layout_attributes\":856}],858:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"fast-isnumeric\"),a=t(\"../../lib\"),o=t(\"../../components/drawing\"),s=t(\"../../plots/polar/helpers\");e.exports=function(t,e,r){var l=e.xaxis,c=e.yaxis,u=e.radialAxis,f=e.angularAxis,h=function(t){var e=t.cxx,r=t.cyy;if(t.vangles)return function(n,i,o,l){var c,u;a.angleDelta(o,l)>0?(c=o,u=l):(c=l,u=o);var f=s.findEnclosingVertexAngles(c,t.vangles)[0],h=s.findEnclosingVertexAngles(u,t.vangles)[1],p=[f,(c+u)/2,h];return s.pathPolygonAnnulus(n,i,c,u,p,e,r)};return function(t,n,i,o){return a.pathAnnulus(t,n,i,o,e,r)}}(e),p=e.layers.frontplot.select(\"g.barlayer\");a.makeTraceGroups(p,r,\"trace bars\").each(function(t){var r=t[0].node3=n.select(this),s=a.ensureSingle(r,\"g\",\"points\").selectAll(\"g.point\").data(a.identity);s.enter().append(\"g\").style(\"vector-effect\",\"non-scaling-stroke\").style(\"stroke-miterlimit\",2).classed(\"point\",!0),s.exit().remove(),s.each(function(t){var e,r=n.select(this),o=t.rp0=u.c2p(t.s0),s=t.rp1=u.c2p(t.s1),p=t.thetag0=f.c2g(t.p0),d=t.thetag1=f.c2g(t.p1);if(i(o)&&i(s)&&i(p)&&i(d)&&o!==s&&p!==d){var g=u.c2g(t.s1),v=(p+d)/2;t.ct=[l.c2p(g*Math.cos(v)),c.c2p(g*Math.sin(v))],e=h(o,s,p,d)}else e=\"M0,0Z\";a.ensureSingle(r,\"path\").attr(\"d\",e)}),o.setClipUrl(r,e._hasClipOnAxisFalse?e.clipIds.forTraces:null)})}},{\"../../components/drawing\":595,\"../../lib\":696,\"../../plots/polar/helpers\":810,d3:148,\"fast-isnumeric\":214}],859:[function(t,e,r){\"use strict\";var n=t(\"../scatter/attributes\"),i=t(\"../../components/color/attributes\"),a=t(\"../../lib/extend\").extendFlat,o=n.marker,s=o.line;e.exports={y:{valType:\"data_array\",editType:\"calc+clearAxisTypes\"},x:{valType:\"data_array\",editType:\"calc+clearAxisTypes\"},x0:{valType:\"any\",editType:\"calc+clearAxisTypes\"},y0:{valType:\"any\",editType:\"calc+clearAxisTypes\"},name:{valType:\"string\",editType:\"calc+clearAxisTypes\"},text:a({},n.text,{}),whiskerwidth:{valType:\"number\",min:0,max:1,dflt:.5,editType:\"calc\"},notched:{valType:\"boolean\",editType:\"calc\"},notchwidth:{valType:\"number\",min:0,max:.5,dflt:.25,editType:\"calc\"},boxpoints:{valType:\"enumerated\",values:[\"all\",\"outliers\",\"suspectedoutliers\",!1],dflt:\"outliers\",editType:\"calc\"},boxmean:{valType:\"enumerated\",values:[!0,\"sd\",!1],dflt:!1,editType:\"calc\"},jitter:{valType:\"number\",min:0,max:1,editType:\"calc\"},pointpos:{valType:\"number\",min:-2,max:2,editType:\"calc\"},orientation:{valType:\"enumerated\",values:[\"v\",\"h\"],editType:\"calc+clearAxisTypes\"},marker:{outliercolor:{valType:\"color\",dflt:\"rgba(0, 0, 0, 0)\",editType:\"style\"},symbol:a({},o.symbol,{arrayOk:!1,editType:\"plot\"}),opacity:a({},o.opacity,{arrayOk:!1,dflt:1,editType:\"style\"}),size:a({},o.size,{arrayOk:!1,editType:\"calc\"}),color:a({},o.color,{arrayOk:!1,editType:\"style\"}),line:{color:a({},s.color,{arrayOk:!1,dflt:i.defaultLine,editType:\"style\"}),width:a({},s.width,{arrayOk:!1,dflt:0,editType:\"style\"}),outliercolor:{valType:\"color\",editType:\"style\"},outlierwidth:{valType:\"number\",min:0,dflt:1,editType:\"style\"},editType:\"style\"},editType:\"plot\"},line:{color:{valType:\"color\",editType:\"style\"},width:{valType:\"number\",min:0,dflt:2,editType:\"style\"},editType:\"plot\"},fillcolor:n.fillcolor,selected:{marker:n.selected.marker,editType:\"style\"},unselected:{marker:n.unselected.marker,editType:\"style\"},hoveron:{valType:\"flaglist\",flags:[\"boxes\",\"points\"],dflt:\"boxes+points\",editType:\"style\"}}},{\"../../components/color/attributes\":569,\"../../lib/extend\":685,\"../scatter/attributes\":1043}],860:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../../lib\"),a=i._,o=t(\"../../plots/cartesian/axes\");function s(t,e,r){var n={text:\"tx\"};for(var i in n)Array.isArray(e[i])&&(t[n[i]]=e[i][r])}function l(t,e){return t.v-e.v}function c(t){return t.v}e.exports=function(t,e){var r,u,f,h,p,d=t._fullLayout,g=o.getFromId(t,e.xaxis||\"x\"),v=o.getFromId(t,e.yaxis||\"y\"),m=[],y=\"violin\"===e.type?\"_numViolins\":\"_numBoxes\";\"h\"===e.orientation?(u=g,f=\"x\",h=v,p=\"y\"):(u=v,f=\"y\",h=g,p=\"x\");var x=u.makeCalcdata(e,f),b=function(t,e,r,a,o){if(e in t)return r.makeCalcdata(t,e);var s;s=e+\"0\"in t?t[e+\"0\"]:\"name\"in t&&(\"category\"===r.type||n(t.name)&&-1!==[\"linear\",\"log\"].indexOf(r.type)||i.isDateTime(t.name)&&\"date\"===r.type)?t.name:o;var l=r.d2c(s,0,t[e+\"calendar\"]);return a.map(function(){return l})}(e,p,h,x,d[y]),_=i.distinctVals(b),w=_.vals,k=_.minDiff/2,M=function(t,e){for(var r=t.length,n=new Array(r+1),i=0;i<r;i++)n[i]=t[i]-e;return n[r]=t[r-1]+e,n}(w,k),A=w.length,T=function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=[];return e}(A);for(r=0;r<e._length;r++){var S=x[r];if(n(S)){var E=i.findBin(b[r],M);if(E>=0&&E<A){var C={v:S,i:r};s(C,e,r),T[E].push(C)}}}for(r=0;r<A;r++)if(T[r].length>0){var L=T[r].sort(l),z=L.map(c),O=z.length,I={pos:w[r],pts:L};I.min=z[0],I.max=z[O-1],I.mean=i.mean(z,O),I.sd=i.stdev(z,O,I.mean),I.q1=i.interp(z,.25),I.med=i.interp(z,.5),I.q3=i.interp(z,.75),I.lf=Math.min(I.q1,z[Math.min(i.findBin(2.5*I.q1-1.5*I.q3,z,!0)+1,O-1)]),I.uf=Math.max(I.q3,z[Math.max(i.findBin(2.5*I.q3-1.5*I.q1,z),0)]),I.lo=4*I.q1-3*I.q3,I.uo=4*I.q3-3*I.q1;var P=1.57*(I.q3-I.q1)/Math.sqrt(O);I.ln=I.med-P,I.un=I.med+P,m.push(I)}!function(t,e){if(i.isArrayOrTypedArray(e.selectedpoints))for(var r=0;r<t.length;r++){for(var n=t[r].pts||[],a={},o=0;o<n.length;o++)a[n[o].i]=o;i.tagSelected(n,e,a)}}(m,e);var D=o.findExtremes(u,x,{padded:!0});return e._extremes[u._id]=D,m.length>0?(m[0].t={num:d[y],dPos:k,posLetter:p,valLetter:f,labels:{med:a(t,\"median:\"),min:a(t,\"min:\"),q1:a(t,\"q1:\"),q3:a(t,\"q3:\"),max:a(t,\"max:\"),mean:\"sd\"===e.boxmean?a(t,\"mean \\xb1 \\u03c3:\"):a(t,\"mean:\"),lf:a(t,\"lower fence:\"),uf:a(t,\"upper fence:\")}},d[y]++,m):[{t:{empty:!0}}]}},{\"../../lib\":696,\"../../plots/cartesian/axes\":744,\"fast-isnumeric\":214}],861:[function(t,e,r){\"use strict\";var n=t(\"../../plots/cartesian/axes\"),i=t(\"../../lib\"),a=[\"v\",\"h\"];function o(t,e,r,a,o){var s,l,c,u=e.calcdata,f=e._fullLayout,h=[],p=\"violin\"===t?\"_numViolins\":\"_numBoxes\";for(s=0;s<r.length;s++)for(c=u[r[s]],l=0;l<c.length;l++)h.push(c[l].pos);if(h.length){var d=i.distinctVals(h),g=d.minDiff/2;h.length===d.vals.length&&(f[p]=1),n.minDtick(a,d.minDiff,d.vals[0],!0);var v=(1-f[t+\"gap\"])*(1-f[t+\"groupgap\"])*g/f[p],m=n.findExtremes(a,d.vals,{vpadminus:g+o[0]*v,vpadplus:g+o[1]*v});for(s=0;s<r.length;s++)(c=u[r[s]])[0].t.dPos=g,c[0].trace._extremes[a._id]=m}}e.exports={crossTraceCalc:function(t,e){for(var r=t.calcdata,n=e.xaxis,i=e.yaxis,s=0;s<a.length;s++){for(var l=a[s],c=\"h\"===l?i:n,u=[],f=0,h=0,p=0;p<r.length;p++){var d=r[p],g=d[0].t,v=d[0].trace;!0!==v.visible||\"box\"!==v.type&&\"candlestick\"!==v.type||g.empty||(v.orientation||\"v\")!==l||v.xaxis!==n._id||v.yaxis!==i._id||(u.push(p),v.boxpoints&&(f=Math.max(f,v.jitter-v.pointpos-1),h=Math.max(h,v.jitter+v.pointpos-1)))}o(\"box\",t,u,c,[f,h])}},setPositionOffset:o}},{\"../../lib\":696,\"../../plots/cartesian/axes\":744}],862:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../registry\"),a=t(\"../../components/color\"),o=t(\"./attributes\");function s(t,e,r,n){var a,o,s=r(\"y\"),l=r(\"x\"),c=l&&l.length;if(s&&s.length)a=\"v\",c?o=Math.min(l.length,s.length):(r(\"x0\"),o=s.length);else{if(!c)return void(e.visible=!1);a=\"h\",r(\"y0\"),o=l.length}e._length=o,i.getComponentMethod(\"calendars\",\"handleTraceDefaults\")(t,e,[\"x\",\"y\"],n),r(\"orientation\",a)}function l(t,e,r,i){var a=i.prefix,s=n.coerce2(t,e,o,\"marker.outliercolor\"),l=r(\"marker.line.outliercolor\"),c=r(a+\"points\",s||l?\"suspectedoutliers\":void 0);c?(r(\"jitter\",\"all\"===c?.3:0),r(\"pointpos\",\"all\"===c?-1.5:0),r(\"marker.symbol\"),r(\"marker.opacity\"),r(\"marker.size\"),r(\"marker.color\",e.line.color),r(\"marker.line.color\"),r(\"marker.line.width\"),\"suspectedoutliers\"===c&&(r(\"marker.line.outliercolor\",e.marker.color),r(\"marker.line.outlierwidth\")),r(\"selected.marker.color\"),r(\"unselected.marker.color\"),r(\"selected.marker.size\"),r(\"unselected.marker.size\"),r(\"text\")):delete e.marker,r(\"hoveron\"),n.coerceSelectionMarkerOpacity(e,r)}e.exports={supplyDefaults:function(t,e,r,i){function c(r,i){return n.coerce(t,e,o,r,i)}s(t,e,c,i),!1!==e.visible&&(c(\"line.color\",(t.marker||{}).color||r),c(\"line.width\"),c(\"fillcolor\",a.addOpacity(e.line.color,.5)),c(\"whiskerwidth\"),c(\"boxmean\"),c(\"notched\",void 0!==t.notchwidth)&&c(\"notchwidth\"),l(t,e,c,{prefix:\"box\"}))},handleSampleDefaults:s,handlePointsDefaults:l}},{\"../../components/color\":570,\"../../lib\":696,\"../../registry\":827,\"./attributes\":859}],863:[function(t,e,r){\"use strict\";e.exports=function(t,e){return e.hoverOnBox&&(t.hoverOnBox=e.hoverOnBox),\"xVal\"in e&&(t.x=e.xVal),\"yVal\"in e&&(t.y=e.yVal),e.xa&&(t.xaxis=e.xa),e.ya&&(t.yaxis=e.ya),t}},{}],864:[function(t,e,r){\"use strict\";var n=t(\"../../plots/cartesian/axes\"),i=t(\"../../lib\"),a=t(\"../../components/fx\"),o=t(\"../../components/color\"),s=t(\"../scatter/fill_hover_text\");function l(t,e,r,s){var l,c,u,f,h,p,d,g,v,m,y,x,b=t.cd,_=t.xa,w=t.ya,k=b[0].trace,M=b[0].t,A=\"violin\"===k.type,T=[],S=M.bdPos,E=M.wHover,C=function(t){return t.pos+M.bPos-p};A&&\"both\"!==k.side?(\"positive\"===k.side&&(v=function(t){var e=C(t);return a.inbox(e,e+E,m)}),\"negative\"===k.side&&(v=function(t){var e=C(t);return a.inbox(e-E,e,m)})):v=function(t){var e=C(t);return a.inbox(e-E,e+E,m)},x=A?function(t){return a.inbox(t.span[0]-h,t.span[1]-h,m)}:function(t){return a.inbox(t.min-h,t.max-h,m)},\"h\"===k.orientation?(h=e,p=r,d=x,g=v,l=\"y\",u=w,c=\"x\",f=_):(h=r,p=e,d=v,g=x,l=\"x\",u=_,c=\"y\",f=w);var L=Math.min(1,S/Math.abs(u.r2c(u.range[1])-u.r2c(u.range[0])));function z(t){return(d(t)+g(t))/2}m=t.maxHoverDistance-L,y=t.maxSpikeDistance-L;var O=a.getDistanceFunction(s,d,g,z);if(a.getClosest(b,O,t),!1===t.index)return[];var I=b[t.index],P=k.line.color,D=(k.marker||{}).color;o.opacity(P)&&k.line.width?t.color=P:o.opacity(D)&&k.boxpoints?t.color=D:t.color=k.fillcolor,t[l+\"0\"]=u.c2p(I.pos+M.bPos-S,!0),t[l+\"1\"]=u.c2p(I.pos+M.bPos+S,!0),t[l+\"LabelVal\"]=I.pos;var R=l+\"Spike\";t.spikeDistance=z(I)*y/m,t[R]=u.c2p(I.pos,!0);var B={},F=[\"med\",\"min\",\"q1\",\"q3\",\"max\"];(k.boxmean||(k.meanline||{}).visible)&&F.push(\"mean\"),(k.boxpoints||k.points)&&F.push(\"lf\",\"uf\");for(var N=0;N<F.length;N++){var j=F[N];if(j in I&&!(I[j]in B)){B[I[j]]=!0;var V=I[j],U=f.c2p(V,!0),q=i.extendFlat({},t);q[c+\"0\"]=q[c+\"1\"]=U,q[c+\"LabelVal\"]=V,q[c+\"Label\"]=(M.labels?M.labels[j]+\" \":\"\")+n.hoverLabelText(f,V),q.hoverOnBox=!0,\"mean\"===j&&\"sd\"in I&&\"sd\"===k.boxmean&&(q[c+\"err\"]=I.sd),t.name=\"\",t.spikeDistance=void 0,t[R]=void 0,T.push(q)}}return T}function c(t,e,r){for(var n,o,l,c=t.cd,u=t.xa,f=t.ya,h=c[0].trace,p=u.c2p(e),d=f.c2p(r),g=a.quadrature(function(t){var e=Math.max(3,t.mrc||0);return Math.max(Math.abs(u.c2p(t.x)-p)-e,1-3/e)},function(t){var e=Math.max(3,t.mrc||0);return Math.max(Math.abs(f.c2p(t.y)-d)-e,1-3/e)}),v=!1,m=0;m<c.length;m++){o=c[m];for(var y=0;y<(o.pts||[]).length;y++){var x=g(l=o.pts[y]);x<=t.distance&&(t.distance=x,v=[m,y])}}if(!v)return!1;l=(o=c[v[0]]).pts[v[1]];var b=u.c2p(l.x,!0),_=f.c2p(l.y,!0),w=l.mrc||1;n=i.extendFlat({},t,{index:l.i,color:(h.marker||{}).color,name:h.name,x0:b-w,x1:b+w,xLabelVal:l.x,y0:_-w,y1:_+w,yLabelVal:l.y,spikeDistance:t.distance});var k=\"h\"===h.orientation?\"y\":\"x\",M=\"h\"===h.orientation?f:u;return n[k+\"Spike\"]=M.c2p(o.pos,!0),s(l,h,n),n}e.exports={hoverPoints:function(t,e,r,n){var i,a=t.cd[0].trace.hoveron,o=[];return-1!==a.indexOf(\"boxes\")&&(o=o.concat(l(t,e,r,n))),-1!==a.indexOf(\"points\")&&(i=c(t,e,r)),\"closest\"===n?i?[i]:o:i?(o.push(i),o):o},hoverOnBoxes:l,hoverOnPoints:c}},{\"../../components/color\":570,\"../../components/fx\":612,\"../../lib\":696,\"../../plots/cartesian/axes\":744,\"../scatter/fill_hover_text\":1051}],865:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.layoutAttributes=t(\"./layout_attributes\"),n.supplyDefaults=t(\"./defaults\").supplyDefaults,n.supplyLayoutDefaults=t(\"./layout_defaults\").supplyLayoutDefaults,n.calc=t(\"./calc\"),n.crossTraceCalc=t(\"./cross_trace_calc\").crossTraceCalc,n.plot=t(\"./plot\").plot,n.style=t(\"./style\").style,n.styleOnSelect=t(\"./style\").styleOnSelect,n.hoverPoints=t(\"./hover\").hoverPoints,n.eventData=t(\"./event_data\"),n.selectPoints=t(\"./select\"),n.moduleType=\"trace\",n.name=\"box\",n.basePlotModule=t(\"../../plots/cartesian\"),n.categories=[\"cartesian\",\"svg\",\"symbols\",\"oriented\",\"box-violin\",\"showLegend\",\"boxLayout\",\"zoomScale\"],n.meta={},e.exports=n},{\"../../plots/cartesian\":756,\"./attributes\":859,\"./calc\":860,\"./cross_trace_calc\":861,\"./defaults\":862,\"./event_data\":863,\"./hover\":864,\"./layout_attributes\":866,\"./layout_defaults\":867,\"./plot\":868,\"./select\":869,\"./style\":870}],866:[function(t,e,r){\"use strict\";e.exports={boxmode:{valType:\"enumerated\",values:[\"group\",\"overlay\"],dflt:\"overlay\",editType:\"calc\"},boxgap:{valType:\"number\",min:0,max:1,dflt:.3,editType:\"calc\"},boxgroupgap:{valType:\"number\",min:0,max:1,dflt:.3,editType:\"calc\"}}},{}],867:[function(t,e,r){\"use strict\";var n=t(\"../../registry\"),i=t(\"../../lib\"),a=t(\"./layout_attributes\");function o(t,e,r,i,a){for(var o,s=a+\"Layout\",l=0;l<r.length;l++)if(n.traceIs(r[l],s)){o=!0;break}o&&(i(a+\"mode\"),i(a+\"gap\"),i(a+\"groupgap\"))}e.exports={supplyLayoutDefaults:function(t,e,r){o(0,0,r,function(r,n){return i.coerce(t,e,a,r,n)},\"box\")},_supply:o}},{\"../../lib\":696,\"../../registry\":827,\"./layout_attributes\":866}],868:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../../lib\"),a=t(\"../../components/drawing\"),o=5,s=.01;function l(t,e,r,a){var o,s,l=e.pos,c=e.val,u=a.bPos,f=a.wdPos||0,h=a.bPosPxOffset||0,p=r.whiskerwidth||0,d=r.notched||!1,g=d?1-2*r.notchwidth:1;Array.isArray(a.bdPos)?(o=a.bdPos[0],s=a.bdPos[1]):(o=a.bdPos,s=a.bdPos);var v=t.selectAll(\"path.box\").data(\"violin\"!==r.type||r.box.visible?i.identity:[]);v.enter().append(\"path\").style(\"vector-effect\",\"non-scaling-stroke\").attr(\"class\",\"box\"),v.exit().remove(),v.each(function(t){var e=t.pos,a=l.c2p(e+u,!0)+h,v=l.c2p(e+u-o,!0)+h,m=l.c2p(e+u+s,!0)+h,y=l.c2p(e+u-f,!0)+h,x=l.c2p(e+u+f,!0)+h,b=l.c2p(e+u-o*g,!0)+h,_=l.c2p(e+u+s*g,!0)+h,w=c.c2p(t.q1,!0),k=c.c2p(t.q3,!0),M=i.constrain(c.c2p(t.med,!0),Math.min(w,k)+1,Math.max(w,k)-1),A=void 0===t.lf||!1===r.boxpoints,T=c.c2p(A?t.min:t.lf,!0),S=c.c2p(A?t.max:t.uf,!0),E=c.c2p(t.ln,!0),C=c.c2p(t.un,!0);\"h\"===r.orientation?n.select(this).attr(\"d\",\"M\"+M+\",\"+b+\"V\"+_+\"M\"+w+\",\"+v+\"V\"+m+(d?\"H\"+E+\"L\"+M+\",\"+_+\"L\"+C+\",\"+m:\"\")+\"H\"+k+\"V\"+v+(d?\"H\"+C+\"L\"+M+\",\"+b+\"L\"+E+\",\"+v:\"\")+\"ZM\"+w+\",\"+a+\"H\"+T+\"M\"+k+\",\"+a+\"H\"+S+(0===p?\"\":\"M\"+T+\",\"+y+\"V\"+x+\"M\"+S+\",\"+y+\"V\"+x)):n.select(this).attr(\"d\",\"M\"+b+\",\"+M+\"H\"+_+\"M\"+v+\",\"+w+\"H\"+m+(d?\"V\"+E+\"L\"+_+\",\"+M+\"L\"+m+\",\"+C:\"\")+\"V\"+k+\"H\"+v+(d?\"V\"+C+\"L\"+b+\",\"+M+\"L\"+v+\",\"+E:\"\")+\"ZM\"+a+\",\"+w+\"V\"+T+\"M\"+a+\",\"+k+\"V\"+S+(0===p?\"\":\"M\"+y+\",\"+T+\"H\"+x+\"M\"+y+\",\"+S+\"H\"+x))})}function c(t,e,r,n){var l=e.x,c=e.y,u=n.bdPos,f=n.bPos,h=r.boxpoints||r.points;i.seedPseudoRandom();var p=t.selectAll(\"g.points\").data(h?function(t){return t.forEach(function(t){t.t=n,t.trace=r}),t}:[]);p.enter().append(\"g\").attr(\"class\",\"points\"),p.exit().remove();var d=p.selectAll(\"path\").data(function(t){var e,n,a=\"all\"===h?t.pts:t.pts.filter(function(e){return e.v<t.lf||e.v>t.uf}),l=Math.max((t.max-t.min)/10,t.q3-t.q1),c=1e-9*l,p=l*s,d=[],g=0;if(r.jitter){if(0===l)for(g=1,d=new Array(a.length),e=0;e<a.length;e++)d[e]=1;else for(e=0;e<a.length;e++){var v=Math.max(0,e-o),m=a[v].v,y=Math.min(a.length-1,e+o),x=a[y].v;\"all\"!==h&&(a[e].v<t.lf?x=Math.min(x,t.lf):m=Math.max(m,t.uf));var b=Math.sqrt(p*(y-v)/(x-m+c))||0;b=i.constrain(Math.abs(b),0,1),d.push(b),g=Math.max(b,g)}n=2*r.jitter/(g||1)}for(e=0;e<a.length;e++){var _=a[e],w=_.v,k=r.jitter?n*d[e]*(i.pseudoRandom()-.5):0,M=t.pos+f+u*(r.pointpos+k);\"h\"===r.orientation?(_.y=M,_.x=w):(_.x=M,_.y=w),\"suspectedoutliers\"===h&&w<t.uo&&w>t.lo&&(_.so=!0)}return a});d.enter().append(\"path\").classed(\"point\",!0),d.exit().remove(),d.call(a.translatePoints,l,c)}function u(t,e,r,a){var o,s,l=e.pos,c=e.val,u=a.bPos,f=a.bPosPxOffset||0,h=r.boxmean||(r.meanline||{}).visible;Array.isArray(a.bdPos)?(o=a.bdPos[0],s=a.bdPos[1]):(o=a.bdPos,s=a.bdPos);var p=t.selectAll(\"path.mean\").data(\"box\"===r.type&&r.boxmean||\"violin\"===r.type&&r.box.visible&&r.meanline.visible?i.identity:[]);p.enter().append(\"path\").attr(\"class\",\"mean\").style({fill:\"none\",\"vector-effect\":\"non-scaling-stroke\"}),p.exit().remove(),p.each(function(t){var e=l.c2p(t.pos+u,!0)+f,i=l.c2p(t.pos+u-o,!0)+f,a=l.c2p(t.pos+u+s,!0)+f,p=c.c2p(t.mean,!0),d=c.c2p(t.mean-t.sd,!0),g=c.c2p(t.mean+t.sd,!0);\"h\"===r.orientation?n.select(this).attr(\"d\",\"M\"+p+\",\"+i+\"V\"+a+(\"sd\"===h?\"m0,0L\"+d+\",\"+e+\"L\"+p+\",\"+i+\"L\"+g+\",\"+e+\"Z\":\"\")):n.select(this).attr(\"d\",\"M\"+i+\",\"+p+\"H\"+a+(\"sd\"===h?\"m0,0L\"+e+\",\"+d+\"L\"+i+\",\"+p+\"L\"+e+\",\"+g+\"Z\":\"\"))})}e.exports={plot:function(t,e,r,a){var o=t._fullLayout,s=e.xaxis,f=e.yaxis,h=o._numBoxes,p=1-o.boxgap,d=\"group\"===o.boxmode&&h>1;i.makeTraceGroups(a,r,\"trace boxes\").each(function(t){var r=n.select(this),i=t[0],a=i.t,g=i.trace;e.isRangePlot||(i.node3=r);var v,m,y=a.dPos*p*(1-o.boxgroupgap)/(d?h:1),x=d?2*a.dPos*((a.num+.5)/h-.5)*p:0,b=y*g.whiskerwidth;!0!==g.visible||a.empty?r.remove():(\"h\"===g.orientation?(v=f,m=s):(v=s,m=f),a.bPos=x,a.bdPos=y,a.wdPos=b,a.wHover=a.dPos*(d?p/h:1),l(r,{pos:v,val:m},g,a),c(r,{x:s,y:f},g,a),u(r,{pos:v,val:m},g,a))})},plotBoxAndWhiskers:l,plotPoints:c,plotBoxMean:u}},{\"../../components/drawing\":595,\"../../lib\":696,d3:148}],869:[function(t,e,r){\"use strict\";e.exports=function(t,e){var r,n,i=t.cd,a=t.xaxis,o=t.yaxis,s=[];if(!1===e)for(r=0;r<i.length;r++)for(n=0;n<(i[r].pts||[]).length;n++)i[r].pts[n].selected=0;else for(r=0;r<i.length;r++)for(n=0;n<(i[r].pts||[]).length;n++){var l=i[r].pts[n],c=a.c2p(l.x),u=o.c2p(l.y);e.contains([c,u],null,l.i,t)?(s.push({pointNumber:l.i,x:a.c2d(l.x),y:o.c2d(l.y)}),l.selected=1):l.selected=0}return s}},{}],870:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../../components/color\"),a=t(\"../../components/drawing\");e.exports={style:function(t,e){var r=e?e[0].node3:n.select(t).selectAll(\"g.trace.boxes\");r.style(\"opacity\",function(t){return t[0].trace.opacity}),r.each(function(e){var r=n.select(this),o=e[0].trace,s=o.line.width;function l(t,e,r,n){t.style(\"stroke-width\",e+\"px\").call(i.stroke,r).call(i.fill,n)}var c=r.selectAll(\"path.box\");if(\"candlestick\"===o.type)c.each(function(t){var e=n.select(this),r=o[t.dir];l(e,r.line.width,r.line.color,r.fillcolor),e.style(\"opacity\",o.selectedpoints&&!t.selected?.3:1)});else{l(c,s,o.line.color,o.fillcolor),r.selectAll(\"path.mean\").style({\"stroke-width\":s,\"stroke-dasharray\":2*s+\"px,\"+s+\"px\"}).call(i.stroke,o.line.color);var u=r.selectAll(\"path.point\");a.pointStyle(u,o,t)}})},styleOnSelect:function(t,e){var r=e[0].node3,n=e[0].trace,i=r.selectAll(\"path.point\");n.selectedpoints?a.selectedPointStyle(i,n):a.pointStyle(i,n,t)}}},{\"../../components/color\":570,\"../../components/drawing\":595,d3:148}],871:[function(t,e,r){\"use strict\";var n=t(\"../../lib\").extendFlat,i=t(\"../ohlc/attributes\"),a=t(\"../box/attributes\");function o(t){return{line:{color:n({},a.line.color,{dflt:t}),width:a.line.width,editType:\"style\"},fillcolor:a.fillcolor,editType:\"style\"}}e.exports={x:i.x,open:i.open,high:i.high,low:i.low,close:i.close,line:{width:n({},a.line.width,{}),editType:\"style\"},increasing:o(i.increasing.line.color.dflt),decreasing:o(i.decreasing.line.color.dflt),text:i.text,whiskerwidth:n({},a.whiskerwidth,{dflt:0}),hoverlabel:i.hoverlabel}},{\"../../lib\":696,\"../box/attributes\":859,\"../ohlc/attributes\":991}],872:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../plots/cartesian/axes\"),a=t(\"../ohlc/calc\").calcCommon;function o(t,e,r,n){return{min:r,q1:Math.min(t,n),med:n,q3:Math.max(t,n),max:e}}e.exports=function(t,e){var r=t._fullLayout,s=i.getFromId(t,e.xaxis),l=i.getFromId(t,e.yaxis),c=s.makeCalcdata(e,\"x\"),u=a(t,e,c,l,o);return u.length?(n.extendFlat(u[0].t,{num:r._numBoxes,dPos:n.distinctVals(c).minDiff/2,posLetter:\"x\",valLetter:\"y\"}),r._numBoxes++,u):[{t:{empty:!0}}]}},{\"../../lib\":696,\"../../plots/cartesian/axes\":744,\"../ohlc/calc\":992}],873:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../components/color\"),a=t(\"../ohlc/ohlc_defaults\"),o=t(\"./attributes\");function s(t,e,r,n){var a=r(n+\".line.color\");r(n+\".line.width\",e.line.width),r(n+\".fillcolor\",i.addOpacity(a,.5))}e.exports=function(t,e,r,i){function l(r,i){return n.coerce(t,e,o,r,i)}a(t,e,l,i)?(l(\"line.width\"),s(t,e,l,\"increasing\"),s(t,e,l,\"decreasing\"),l(\"text\"),l(\"whiskerwidth\"),i._requestRangeslider[e.xaxis]=!0):e.visible=!1}},{\"../../components/color\":570,\"../../lib\":696,\"../ohlc/ohlc_defaults\":996,\"./attributes\":871}],874:[function(t,e,r){\"use strict\";e.exports={moduleType:\"trace\",name:\"candlestick\",basePlotModule:t(\"../../plots/cartesian\"),categories:[\"cartesian\",\"svg\",\"showLegend\",\"candlestick\",\"boxLayout\"],meta:{},attributes:t(\"./attributes\"),layoutAttributes:t(\"../box/layout_attributes\"),supplyLayoutDefaults:t(\"../box/layout_defaults\").supplyLayoutDefaults,crossTraceCalc:t(\"../box/cross_trace_calc\").crossTraceCalc,supplyDefaults:t(\"./defaults\"),calc:t(\"./calc\"),plot:t(\"../box/plot\").plot,layerName:\"boxlayer\",style:t(\"../box/style\").style,hoverPoints:t(\"../ohlc/hover\").hoverPoints,selectPoints:t(\"../ohlc/select\")}},{\"../../plots/cartesian\":756,\"../box/cross_trace_calc\":861,\"../box/layout_attributes\":866,\"../box/layout_defaults\":867,\"../box/plot\":868,\"../box/style\":870,\"../ohlc/hover\":994,\"../ohlc/select\":998,\"./attributes\":871,\"./calc\":872,\"./defaults\":873}],875:[function(t,e,r){\"use strict\";var n=t(\"./axis_defaults\"),i=t(\"../../plot_api/plot_template\");e.exports=function(t,e,r,a,o){a(\"a\")||(a(\"da\"),a(\"a0\")),a(\"b\")||(a(\"db\"),a(\"b0\")),function(t,e,r,a){[\"aaxis\",\"baxis\"].forEach(function(o){var s=o.charAt(0),l=t[o]||{},c=i.newContainer(e,o),u={tickfont:\"x\",id:s+\"axis\",letter:s,font:e.font,name:o,data:t[s],calendar:e.calendar,dfltColor:a,bgColor:r.paper_bgcolor,fullLayout:r};n(l,c,u),c._categories=c._categories||[],t[o]||\"-\"===l.type||(t[o]={type:l.type})})}(t,e,r,o)}},{\"../../plot_api/plot_template\":734,\"./axis_defaults\":880}],876:[function(t,e,r){\"use strict\";var n=t(\"../../lib\").isArrayOrTypedArray;e.exports=function(t){return function t(e,r){if(!n(e)||r>=10)return null;var i=1/0;var a=-1/0;var o=e.length;for(var s=0;s<o;s++){var l=e[s];if(n(l)){var c=t(l,r+1);c&&(i=Math.min(c[0],i),a=Math.max(c[1],a))}else i=Math.min(l,i),a=Math.max(l,a)}return[i,a]}(t,0)}},{\"../../lib\":696}],877:[function(t,e,r){\"use strict\";var n=t(\"../../plots/font_attributes\"),i=t(\"./axis_attributes\"),a=t(\"../../components/color/attributes\"),o=n({editType:\"calc\"});o.family.dflt='\"Open Sans\", verdana, arial, sans-serif',o.size.dflt=12,o.color.dflt=a.defaultLine,e.exports={carpet:{valType:\"string\",editType:\"calc\"},x:{valType:\"data_array\",editType:\"calc+clearAxisTypes\"},y:{valType:\"data_array\",editType:\"calc+clearAxisTypes\"},a:{valType:\"data_array\",editType:\"calc\"},a0:{valType:\"number\",dflt:0,editType:\"calc\"},da:{valType:\"number\",dflt:1,editType:\"calc\"},b:{valType:\"data_array\",editType:\"calc\"},b0:{valType:\"number\",dflt:0,editType:\"calc\"},db:{valType:\"number\",dflt:1,editType:\"calc\"},cheaterslope:{valType:\"number\",dflt:1,editType:\"calc\"},aaxis:i,baxis:i,font:o,color:{valType:\"color\",dflt:a.defaultLine,editType:\"plot\"},transforms:void 0}},{\"../../components/color/attributes\":569,\"../../plots/font_attributes\":771,\"./axis_attributes\":879}],878:[function(t,e,r){\"use strict\";var n=t(\"../../lib\").isArrayOrTypedArray;e.exports=function(t,e,r,i){var a,o,s,l,c,u,f,h,p,d,g,v,m,y=n(r)?\"a\":\"b\",x=(\"a\"===y?t.aaxis:t.baxis).smoothing,b=\"a\"===y?t.a2i:t.b2j,_=\"a\"===y?r:i,w=\"a\"===y?i:r,k=\"a\"===y?e.a.length:e.b.length,M=\"a\"===y?e.b.length:e.a.length,A=Math.floor(\"a\"===y?t.b2j(w):t.a2i(w)),T=\"a\"===y?function(e){return t.evalxy([],e,A)}:function(e){return t.evalxy([],A,e)};x&&(s=Math.max(0,Math.min(M-2,A)),l=A-s,o=\"a\"===y?function(e,r){return t.dxydi([],e,s,r,l)}:function(e,r){return t.dxydj([],s,e,l,r)});var S=b(_[0]),E=b(_[1]),C=S<E?1:-1,L=1e-8*(E-S),z=C>0?Math.floor:Math.ceil,O=C>0?Math.ceil:Math.floor,I=C>0?Math.min:Math.max,P=C>0?Math.max:Math.min,D=z(S+L),R=O(E-L),B=[[f=T(S)]];for(a=D;a*C<R*C;a+=C)c=[],g=P(S,a),m=(v=I(E,a+C))-g,u=Math.max(0,Math.min(k-2,Math.floor(.5*(g+v)))),h=T(v),x&&(p=o(u,g-u),d=o(u,v-u),c.push([f[0]+p[0]/3*m,f[1]+p[1]/3*m]),c.push([h[0]-d[0]/3*m,h[1]-d[1]/3*m])),c.push(h),B.push(c),f=h;return B}},{\"../../lib\":696}],879:[function(t,e,r){\"use strict\";var n=t(\"../../plots/font_attributes\"),i=t(\"../../components/color/attributes\"),a=t(\"../../plots/cartesian/layout_attributes\"),o=t(\"../../plot_api/edit_types\").overrideAll;e.exports={color:{valType:\"color\",editType:\"calc\"},smoothing:{valType:\"number\",dflt:1,min:0,max:1.3,editType:\"calc\"},title:{valType:\"string\",editType:\"calc\"},titlefont:n({editType:\"calc\"}),titleoffset:{valType:\"number\",dflt:10,editType:\"calc\"},type:{valType:\"enumerated\",values:[\"-\",\"linear\",\"date\",\"category\"],dflt:\"-\",editType:\"calc\"},autorange:{valType:\"enumerated\",values:[!0,!1,\"reversed\"],dflt:!0,editType:\"calc\"},rangemode:{valType:\"enumerated\",values:[\"normal\",\"tozero\",\"nonnegative\"],dflt:\"normal\",editType:\"calc\"},range:{valType:\"info_array\",editType:\"calc\",items:[{valType:\"any\",editType:\"calc\"},{valType:\"any\",editType:\"calc\"}]},fixedrange:{valType:\"boolean\",dflt:!1,editType:\"calc\"},cheatertype:{valType:\"enumerated\",values:[\"index\",\"value\"],dflt:\"value\",editType:\"calc\"},tickmode:{valType:\"enumerated\",values:[\"linear\",\"array\"],dflt:\"array\",editType:\"calc\"},nticks:{valType:\"integer\",min:0,dflt:0,editType:\"calc\"},tickvals:{valType:\"data_array\",editType:\"calc\"},ticktext:{valType:\"data_array\",editType:\"calc\"},showticklabels:{valType:\"enumerated\",values:[\"start\",\"end\",\"both\",\"none\"],dflt:\"start\",editType:\"calc\"},tickfont:n({editType:\"calc\"}),tickangle:{valType:\"angle\",dflt:\"auto\",editType:\"calc\"},tickprefix:{valType:\"string\",dflt:\"\",editType:\"calc\"},showtickprefix:{valType:\"enumerated\",values:[\"all\",\"first\",\"last\",\"none\"],dflt:\"all\",editType:\"calc\"},ticksuffix:{valType:\"string\",dflt:\"\",editType:\"calc\"},showticksuffix:{valType:\"enumerated\",values:[\"all\",\"first\",\"last\",\"none\"],dflt:\"all\",editType:\"calc\"},showexponent:{valType:\"enumerated\",values:[\"all\",\"first\",\"last\",\"none\"],dflt:\"all\",editType:\"calc\"},exponentformat:{valType:\"enumerated\",values:[\"none\",\"e\",\"E\",\"power\",\"SI\",\"B\"],dflt:\"B\",editType:\"calc\"},separatethousands:{valType:\"boolean\",dflt:!1,editType:\"calc\"},tickformat:{valType:\"string\",dflt:\"\",editType:\"calc\"},tickformatstops:o(a.tickformatstops,\"calc\",\"from-root\"),categoryorder:{valType:\"enumerated\",values:[\"trace\",\"category ascending\",\"category descending\",\"array\"],dflt:\"trace\",editType:\"calc\"},categoryarray:{valType:\"data_array\",editType:\"calc\"},labelpadding:{valType:\"integer\",dflt:10,editType:\"calc\"},labelprefix:{valType:\"string\",editType:\"calc\"},labelsuffix:{valType:\"string\",dflt:\"\",editType:\"calc\"},showline:{valType:\"boolean\",dflt:!1,editType:\"calc\"},linecolor:{valType:\"color\",dflt:i.defaultLine,editType:\"calc\"},linewidth:{valType:\"number\",min:0,dflt:1,editType:\"calc\"},gridcolor:{valType:\"color\",editType:\"calc\"},gridwidth:{valType:\"number\",min:0,dflt:1,editType:\"calc\"},showgrid:{valType:\"boolean\",dflt:!0,editType:\"calc\"},minorgridcount:{valType:\"integer\",min:0,dflt:0,editType:\"calc\"},minorgridwidth:{valType:\"number\",min:0,dflt:1,editType:\"calc\"},minorgridcolor:{valType:\"color\",dflt:i.lightLine,editType:\"calc\"},startline:{valType:\"boolean\",editType:\"calc\"},startlinecolor:{valType:\"color\",editType:\"calc\"},startlinewidth:{valType:\"number\",dflt:1,editType:\"calc\"},endline:{valType:\"boolean\",editType:\"calc\"},endlinewidth:{valType:\"number\",dflt:1,editType:\"calc\"},endlinecolor:{valType:\"color\",editType:\"calc\"},tick0:{valType:\"number\",min:0,dflt:0,editType:\"calc\"},dtick:{valType:\"number\",min:0,dflt:1,editType:\"calc\"},arraytick0:{valType:\"integer\",min:0,dflt:0,editType:\"calc\"},arraydtick:{valType:\"integer\",min:1,dflt:1,editType:\"calc\"},editType:\"calc\"}},{\"../../components/color/attributes\":569,\"../../plot_api/edit_types\":727,\"../../plots/cartesian/layout_attributes\":757,\"../../plots/font_attributes\":771}],880:[function(t,e,r){\"use strict\";var n=t(\"./attributes\"),i=t(\"../../components/color\").addOpacity,a=t(\"../../registry\"),o=t(\"../../lib\"),s=t(\"../../plots/cartesian/tick_value_defaults\"),l=t(\"../../plots/cartesian/tick_label_defaults\"),c=t(\"../../plots/cartesian/category_order_defaults\"),u=t(\"../../plots/cartesian/set_convert\"),f=t(\"../../plots/cartesian/axis_autotype\");e.exports=function(t,e,r){var h=r.letter,p=r.font||{},d=n[h+\"axis\"];function g(r,n){return o.coerce(t,e,d,r,n)}function v(r,n){return o.coerce2(t,e,d,r,n)}r.name&&(e._name=r.name,e._id=r.name);var m=g(\"type\");(\"-\"===m&&(r.data&&function(t,e){if(\"-\"!==t.type)return;var r=t._id.charAt(0),n=t[r+\"calendar\"];t.type=f(e,n)}(e,r.data),\"-\"===e.type?e.type=\"linear\":m=t.type=e.type),g(\"smoothing\"),g(\"cheatertype\"),g(\"showticklabels\"),g(\"labelprefix\",h+\" = \"),g(\"labelsuffix\"),g(\"showtickprefix\"),g(\"showticksuffix\"),g(\"separatethousands\"),g(\"tickformat\"),g(\"exponentformat\"),g(\"showexponent\"),g(\"categoryorder\"),g(\"tickmode\"),g(\"tickvals\"),g(\"ticktext\"),g(\"tick0\"),g(\"dtick\"),\"array\"===e.tickmode&&(g(\"arraytick0\"),g(\"arraydtick\")),g(\"labelpadding\"),e._hovertitle=h,\"date\"===m)&&a.getComponentMethod(\"calendars\",\"handleDefaults\")(t,e,\"calendar\",r.calendar);u(e,r.fullLayout),e.c2p=o.identity;var y=g(\"color\",r.dfltColor),x=y===t.color?y:p.color;g(\"title\"),o.coerceFont(g,\"titlefont\",{family:p.family,size:Math.round(1.2*p.size),color:x}),g(\"titleoffset\"),g(\"tickangle\"),g(\"autorange\",!e.isValidRange(t.range))&&g(\"rangemode\"),g(\"range\"),e.cleanRange(),g(\"fixedrange\"),s(t,e,g,m),l(t,e,g,m,r),c(t,e,g,{data:r.data,dataAttr:h});var b=v(\"gridcolor\",i(y,.3)),_=v(\"gridwidth\"),w=g(\"showgrid\");w||(delete e.gridcolor,delete e.gridwidth);var k=v(\"startlinecolor\",y),M=v(\"startlinewidth\",_);g(\"startline\",e.showgrid||!!k||!!M)||(delete e.startlinecolor,delete e.startlinewidth);var A=v(\"endlinecolor\",y),T=v(\"endlinewidth\",_);return g(\"endline\",e.showgrid||!!A||!!T)||(delete e.endlinecolor,delete e.endlinewidth),w?(g(\"minorgridcount\"),g(\"minorgridwidth\",_),g(\"minorgridcolor\",i(b,.06)),e.minorgridcount||(delete e.minorgridwidth,delete e.minorgridcolor)):(delete e.gridcolor,delete e.gridWidth),\"none\"===e.showticklabels&&(delete e.tickfont,delete e.tickangle,delete e.showexponent,delete e.exponentformat,delete e.tickformat,delete e.showticksuffix,delete e.showtickprefix),e.showticksuffix||delete e.ticksuffix,e.showtickprefix||delete e.tickprefix,g(\"tickmode\"),(!e.title||e.title&&0===e.title.length)&&(delete e.titlefont,delete e.titleoffset),e}},{\"../../components/color\":570,\"../../lib\":696,\"../../plots/cartesian/axis_autotype\":745,\"../../plots/cartesian/category_order_defaults\":748,\"../../plots/cartesian/set_convert\":763,\"../../plots/cartesian/tick_label_defaults\":764,\"../../plots/cartesian/tick_value_defaults\":766,\"../../registry\":827,\"./attributes\":877}],881:[function(t,e,r){\"use strict\";var n=t(\"../../plots/cartesian/axes\"),i=t(\"../../lib\").isArray1D,a=t(\"./cheater_basis\"),o=t(\"./array_minmax\"),s=t(\"./calc_gridlines\"),l=t(\"./calc_labels\"),c=t(\"./calc_clippath\"),u=t(\"../heatmap/clean_2d_array\"),f=t(\"./smooth_fill_2d_array\"),h=t(\"../heatmap/convert_column_xyz\"),p=t(\"./set_convert\");e.exports=function(t,e){var r=n.getFromId(t,e.xaxis),d=n.getFromId(t,e.yaxis),g=e.aaxis,v=e.baxis,m=e.x,y=e.y,x=[];m&&i(m)&&x.push(\"x\"),y&&i(y)&&x.push(\"y\"),x.length&&h(e,g,v,\"a\",\"b\",x);var b=e._a=e._a||e.a,_=e._b=e._b||e.b;m=e._x||e.x,y=e._y||e.y;var w={};if(e._cheater){var k=\"index\"===g.cheatertype?b.length:b,M=\"index\"===v.cheatertype?_.length:_;m=a(k,M,e.cheaterslope)}e._x=m=u(m),e._y=y=u(y),f(m,b,_),f(y,b,_),p(e),e.setScale();var A=o(m),T=o(y),S=.5*(A[1]-A[0]),E=.5*(A[1]+A[0]),C=.5*(T[1]-T[0]),L=.5*(T[1]+T[0]);return A=[E-1.3*S,E+1.3*S],T=[L-1.3*C,L+1.3*C],e._extremes[r._id]=n.findExtremes(r,A,{padded:!0}),e._extremes[d._id]=n.findExtremes(d,T,{padded:!0}),s(e,\"a\",\"b\"),s(e,\"b\",\"a\"),l(e,g),l(e,v),w.clipsegments=c(e._xctrl,e._yctrl,g,v),w.x=m,w.y=y,w.a=b,w.b=_,[w]}},{\"../../lib\":696,\"../../plots/cartesian/axes\":744,\"../heatmap/clean_2d_array\":947,\"../heatmap/convert_column_xyz\":949,\"./array_minmax\":876,\"./calc_clippath\":882,\"./calc_gridlines\":883,\"./calc_labels\":884,\"./cheater_basis\":886,\"./set_convert\":899,\"./smooth_fill_2d_array\":900}],882:[function(t,e,r){\"use strict\";e.exports=function(t,e,r,n){var i,a,o,s=[],l=!!r.smoothing,c=!!n.smoothing,u=t[0].length-1,f=t.length-1;for(i=0,a=[],o=[];i<=u;i++)a[i]=t[0][i],o[i]=e[0][i];for(s.push({x:a,y:o,bicubic:l}),i=0,a=[],o=[];i<=f;i++)a[i]=t[i][u],o[i]=e[i][u];for(s.push({x:a,y:o,bicubic:c}),i=u,a=[],o=[];i>=0;i--)a[u-i]=t[f][i],o[u-i]=e[f][i];for(s.push({x:a,y:o,bicubic:l}),i=f,a=[],o=[];i>=0;i--)a[f-i]=t[i][0],o[f-i]=e[i][0];return s.push({x:a,y:o,bicubic:c}),s}},{}],883:[function(t,e,r){\"use strict\";var n=t(\"../../plots/cartesian/axes\"),i=t(\"../../lib/extend\").extendFlat;e.exports=function(t,e,r){var a,o,s,l,c,u,f,h,p,d,g,v,m,y,x=t[\"_\"+e],b=t[e+\"axis\"],_=b._gridlines=[],w=b._minorgridlines=[],k=b._boundarylines=[],M=t[\"_\"+r],A=t[r+\"axis\"];\"array\"===b.tickmode&&(b.tickvals=x.slice());var T=t._xctrl,S=t._yctrl,E=T[0].length,C=T.length,L=t._a.length,z=t._b.length;n.prepTicks(b),\"array\"===b.tickmode&&delete b.tickvals;var O=b.smoothing?3:1;function I(n){var i,a,o,s,l,c,u,f,p,d,g,v,m=[],y=[],x={};if(\"b\"===e)for(a=t.b2j(n),o=Math.floor(Math.max(0,Math.min(z-2,a))),s=a-o,x.length=z,x.crossLength=L,x.xy=function(e){return t.evalxy([],e,a)},x.dxy=function(e,r){return t.dxydi([],e,o,r,s)},i=0;i<L;i++)c=Math.min(L-2,i),u=i-c,f=t.evalxy([],i,a),A.smoothing&&i>0&&(p=t.dxydi([],i-1,o,0,s),m.push(l[0]+p[0]/3),y.push(l[1]+p[1]/3),d=t.dxydi([],i-1,o,1,s),m.push(f[0]-d[0]/3),y.push(f[1]-d[1]/3)),m.push(f[0]),y.push(f[1]),l=f;else for(i=t.a2i(n),c=Math.floor(Math.max(0,Math.min(L-2,i))),u=i-c,x.length=L,x.crossLength=z,x.xy=function(e){return t.evalxy([],i,e)},x.dxy=function(e,r){return t.dxydj([],c,e,u,r)},a=0;a<z;a++)o=Math.min(z-2,a),s=a-o,f=t.evalxy([],i,a),A.smoothing&&a>0&&(g=t.dxydj([],c,a-1,u,0),m.push(l[0]+g[0]/3),y.push(l[1]+g[1]/3),v=t.dxydj([],c,a-1,u,1),m.push(f[0]-v[0]/3),y.push(f[1]-v[1]/3)),m.push(f[0]),y.push(f[1]),l=f;return x.axisLetter=e,x.axis=b,x.crossAxis=A,x.value=n,x.constvar=r,x.index=h,x.x=m,x.y=y,x.smoothing=A.smoothing,x}function P(n){var i,a,o,s,l,c=[],u=[],f={};if(f.length=x.length,f.crossLength=M.length,\"b\"===e)for(o=Math.max(0,Math.min(z-2,n)),l=Math.min(1,Math.max(0,n-o)),f.xy=function(e){return t.evalxy([],e,n)},f.dxy=function(e,r){return t.dxydi([],e,o,r,l)},i=0;i<E;i++)c[i]=T[n*O][i],u[i]=S[n*O][i];else for(a=Math.max(0,Math.min(L-2,n)),s=Math.min(1,Math.max(0,n-a)),f.xy=function(e){return t.evalxy([],n,e)},f.dxy=function(e,r){return t.dxydj([],a,e,s,r)},i=0;i<C;i++)c[i]=T[i][n*O],u[i]=S[i][n*O];return f.axisLetter=e,f.axis=b,f.crossAxis=A,f.value=x[n],f.constvar=r,f.index=n,f.x=c,f.y=u,f.smoothing=A.smoothing,f}if(\"array\"===b.tickmode){for(l=5e-15,u=(c=[Math.floor((x.length-1-b.arraytick0)/b.arraydtick*(1+l)),Math.ceil(-b.arraytick0/b.arraydtick/(1+l))].sort(function(t,e){return t-e}))[0]-1,f=c[1]+1,h=u;h<f;h++)(o=b.arraytick0+b.arraydtick*h)<0||o>x.length-1||_.push(i(P(o),{color:b.gridcolor,width:b.gridwidth}));for(h=u;h<f;h++)if(s=b.arraytick0+b.arraydtick*h,g=Math.min(s+b.arraydtick,x.length-1),!(s<0||s>x.length-1||g<0||g>x.length-1))for(v=x[s],m=x[g],a=0;a<b.minorgridcount;a++)(y=g-s)<=0||(d=v+(m-v)*(a+1)/(b.minorgridcount+1)*(b.arraydtick/y))<x[0]||d>x[x.length-1]||w.push(i(I(d),{color:b.minorgridcolor,width:b.minorgridwidth}));b.startline&&k.push(i(P(0),{color:b.startlinecolor,width:b.startlinewidth})),b.endline&&k.push(i(P(x.length-1),{color:b.endlinecolor,width:b.endlinewidth}))}else{for(l=5e-15,u=(c=[Math.floor((x[x.length-1]-b.tick0)/b.dtick*(1+l)),Math.ceil((x[0]-b.tick0)/b.dtick/(1+l))].sort(function(t,e){return t-e}))[0],f=c[1],h=u;h<=f;h++)p=b.tick0+b.dtick*h,_.push(i(I(p),{color:b.gridcolor,width:b.gridwidth}));for(h=u-1;h<f+1;h++)for(p=b.tick0+b.dtick*h,a=0;a<b.minorgridcount;a++)(d=p+b.dtick*(a+1)/(b.minorgridcount+1))<x[0]||d>x[x.length-1]||w.push(i(I(d),{color:b.minorgridcolor,width:b.minorgridwidth}));b.startline&&k.push(i(I(x[0]),{color:b.startlinecolor,width:b.startlinewidth})),b.endline&&k.push(i(I(x[x.length-1]),{color:b.endlinecolor,width:b.endlinewidth}))}}},{\"../../lib/extend\":685,\"../../plots/cartesian/axes\":744}],884:[function(t,e,r){\"use strict\";var n=t(\"../../plots/cartesian/axes\"),i=t(\"../../lib/extend\").extendFlat;e.exports=function(t,e){var r,a,o,s=e._labels=[],l=e._gridlines;for(r=0;r<l.length;r++)o=l[r],-1!==[\"start\",\"both\"].indexOf(e.showticklabels)&&(a=n.tickText(e,o.value),i(a,{prefix:void 0,suffix:void 0,endAnchor:!0,xy:o.xy(0),dxy:o.dxy(0,0),axis:o.axis,length:o.crossAxis.length,font:o.axis.tickfont,isFirst:0===r,isLast:r===l.length-1}),s.push(a)),-1!==[\"end\",\"both\"].indexOf(e.showticklabels)&&(a=n.tickText(e,o.value),i(a,{endAnchor:!1,xy:o.xy(o.crossLength-1),dxy:o.dxy(o.crossLength-2,1),axis:o.axis,length:o.crossAxis.length,font:o.axis.tickfont,isFirst:0===r,isLast:r===l.length-1}),s.push(a))}},{\"../../lib/extend\":685,\"../../plots/cartesian/axes\":744}],885:[function(t,e,r){\"use strict\";e.exports=function(t,e,r,n){var i=t[0]-e[0],a=t[1]-e[1],o=r[0]-e[0],s=r[1]-e[1],l=Math.pow(i*i+a*a,.25),c=Math.pow(o*o+s*s,.25),u=(c*c*i-l*l*o)*n,f=(c*c*a-l*l*s)*n,h=c*(l+c)*3,p=l*(l+c)*3;return[[e[0]+(h&&u/h),e[1]+(h&&f/h)],[e[0]-(p&&u/p),e[1]-(p&&f/p)]]}},{}],886:[function(t,e,r){\"use strict\";var n=t(\"../../lib\").isArrayOrTypedArray;e.exports=function(t,e,r){var i,a,o,s,l,c,u=[],f=n(t)?t.length:t,h=n(e)?e.length:e,p=n(t)?t:null,d=n(e)?e:null;p&&(o=(p.length-1)/(p[p.length-1]-p[0])/(f-1)),d&&(s=(d.length-1)/(d[d.length-1]-d[0])/(h-1));var g=1/0,v=-1/0;for(a=0;a<h;a++)for(u[a]=[],l=d?(d[a]-d[0])*s:a/(h-1),i=0;i<f;i++)c=(p?(p[i]-p[0])*o:i/(f-1))-l*r,g=Math.min(c,g),v=Math.max(c,v),u[a][i]=c;var m=1/(v-g),y=-g*m;for(a=0;a<h;a++)for(i=0;i<f;i++)u[a][i]=m*u[a][i]+y;return u}},{\"../../lib\":696}],887:[function(t,e,r){\"use strict\";var n=t(\"./catmull_rom\"),i=t(\"../../lib\").ensureArray;function a(t,e,r){var n=-.5*r[0]+1.5*e[0],i=-.5*r[1]+1.5*e[1];return[(2*n+t[0])/3,(2*i+t[1])/3]}e.exports=function(t,e,r,o,s,l){var c,u,f,h,p,d,g,v,m,y,x=r[0].length,b=r.length,_=s?3*x-2:x,w=l?3*b-2:b;for(t=i(t,w),e=i(e,w),f=0;f<w;f++)t[f]=i(t[f],_),e[f]=i(e[f],_);for(u=0,h=0;u<b;u++,h+=l?3:1)for(p=t[h],d=e[h],g=r[u],v=o[u],c=0,f=0;c<x;c++,f+=s?3:1)p[f]=g[c],d[f]=v[c];if(s)for(u=0,h=0;u<b;u++,h+=l?3:1){for(c=1,f=3;c<x-1;c++,f+=3)m=n([r[u][c-1],o[u][c-1]],[r[u][c],o[u][c]],[r[u][c+1],o[u][c+1]],s),t[h][f-1]=m[0][0],e[h][f-1]=m[0][1],t[h][f+1]=m[1][0],e[h][f+1]=m[1][1];y=a([t[h][0],e[h][0]],[t[h][2],e[h][2]],[t[h][3],e[h][3]]),t[h][1]=y[0],e[h][1]=y[1],y=a([t[h][_-1],e[h][_-1]],[t[h][_-3],e[h][_-3]],[t[h][_-4],e[h][_-4]]),t[h][_-2]=y[0],e[h][_-2]=y[1]}if(l)for(f=0;f<_;f++){for(h=3;h<w-3;h+=3)m=n([t[h-3][f],e[h-3][f]],[t[h][f],e[h][f]],[t[h+3][f],e[h+3][f]],l),t[h-1][f]=m[0][0],e[h-1][f]=m[0][1],t[h+1][f]=m[1][0],e[h+1][f]=m[1][1];y=a([t[0][f],e[0][f]],[t[2][f],e[2][f]],[t[3][f],e[3][f]]),t[1][f]=y[0],e[1][f]=y[1],y=a([t[w-1][f],e[w-1][f]],[t[w-3][f],e[w-3][f]],[t[w-4][f],e[w-4][f]]),t[w-2][f]=y[0],e[w-2][f]=y[1]}if(s&&l)for(h=1;h<w;h+=(h+1)%3==0?2:1){for(f=3;f<_-3;f+=3)m=n([t[h][f-3],e[h][f-3]],[t[h][f],e[h][f]],[t[h][f+3],e[h][f+3]],s),t[h][f-1]=.5*(t[h][f-1]+m[0][0]),e[h][f-1]=.5*(e[h][f-1]+m[0][1]),t[h][f+1]=.5*(t[h][f+1]+m[1][0]),e[h][f+1]=.5*(e[h][f+1]+m[1][1]);y=a([t[h][0],e[h][0]],[t[h][2],e[h][2]],[t[h][3],e[h][3]]),t[h][1]=.5*(t[h][1]+y[0]),e[h][1]=.5*(e[h][1]+y[1]),y=a([t[h][_-1],e[h][_-1]],[t[h][_-3],e[h][_-3]],[t[h][_-4],e[h][_-4]]),t[h][_-2]=.5*(t[h][_-2]+y[0]),e[h][_-2]=.5*(e[h][_-2]+y[1])}return[t,e]}},{\"../../lib\":696,\"./catmull_rom\":885}],888:[function(t,e,r){\"use strict\";e.exports={RELATIVE_CULL_TOLERANCE:1e-6}},{}],889:[function(t,e,r){\"use strict\";e.exports=function(t,e,r){return e&&r?function(e,r,n,i,a){var o,s,l,c,u,f;e||(e=[]),r*=3,n*=3;var h=i*i,p=1-i,d=p*p,g=p*i*2,v=-3*d,m=3*(d-g),y=3*(g-h),x=3*h,b=a*a,_=b*a,w=1-a,k=w*w,M=k*w;for(f=0;f<t.length;f++)o=v*(u=t[f])[n][r]+m*u[n][r+1]+y*u[n][r+2]+x*u[n][r+3],s=v*u[n+1][r]+m*u[n+1][r+1]+y*u[n+1][r+2]+x*u[n+1][r+3],l=v*u[n+2][r]+m*u[n+2][r+1]+y*u[n+2][r+2]+x*u[n+2][r+3],c=v*u[n+3][r]+m*u[n+3][r+1]+y*u[n+3][r+2]+x*u[n+3][r+3],e[f]=M*o+3*(k*a*s+w*b*l)+_*c;return e}:e?function(e,r,n,i,a){var o,s,l,c;e||(e=[]),r*=3;var u=i*i,f=1-i,h=f*f,p=f*i*2,d=-3*h,g=3*(h-p),v=3*(p-u),m=3*u,y=1-a;for(l=0;l<t.length;l++)o=d*(c=t[l])[n][r]+g*c[n][r+1]+v*c[n][r+2]+m*c[n][r+3],s=d*c[n+1][r]+g*c[n+1][r+1]+v*c[n+1][r+2]+m*c[n+1][r+3],e[l]=y*o+a*s;return e}:r?function(e,r,n,i,a){var o,s,l,c,u,f;e||(e=[]),n*=3;var h=a*a,p=h*a,d=1-a,g=d*d,v=g*d;for(u=0;u<t.length;u++)o=(f=t[u])[n][r+1]-f[n][r],s=f[n+1][r+1]-f[n+1][r],l=f[n+2][r+1]-f[n+2][r],c=f[n+3][r+1]-f[n+3][r],e[u]=v*o+3*(g*a*s+d*h*l)+p*c;return e}:function(e,r,n,i,a){var o,s,l,c;e||(e=[]);var u=1-a;for(l=0;l<t.length;l++)o=(c=t[l])[n][r+1]-c[n][r],s=c[n+1][r+1]-c[n+1][r],e[l]=u*o+a*s;return e}}},{}],890:[function(t,e,r){\"use strict\";e.exports=function(t,e,r){return e&&r?function(e,r,n,i,a){var o,s,l,c,u,f;e||(e=[]),r*=3,n*=3;var h=i*i,p=h*i,d=1-i,g=d*d,v=g*d,m=a*a,y=1-a,x=y*y,b=y*a*2,_=-3*x,w=3*(x-b),k=3*(b-m),M=3*m;for(f=0;f<t.length;f++)o=_*(u=t[f])[n][r]+w*u[n+1][r]+k*u[n+2][r]+M*u[n+3][r],s=_*u[n][r+1]+w*u[n+1][r+1]+k*u[n+2][r+1]+M*u[n+3][r+1],l=_*u[n][r+2]+w*u[n+1][r+2]+k*u[n+2][r+2]+M*u[n+3][r+2],c=_*u[n][r+3]+w*u[n+1][r+3]+k*u[n+2][r+3]+M*u[n+3][r+3],e[f]=v*o+3*(g*i*s+d*h*l)+p*c;return e}:e?function(e,r,n,i,a){var o,s,l,c,u,f;e||(e=[]),r*=3;var h=a*a,p=h*a,d=1-a,g=d*d,v=g*d;for(u=0;u<t.length;u++)o=(f=t[u])[n+1][r]-f[n][r],s=f[n+1][r+1]-f[n][r+1],l=f[n+1][r+2]-f[n][r+2],c=f[n+1][r+3]-f[n][r+3],e[u]=v*o+3*(g*a*s+d*h*l)+p*c;return e}:r?function(e,r,n,i,a){var o,s,l,c;e||(e=[]),n*=3;var u=1-i,f=a*a,h=1-a,p=h*h,d=h*a*2,g=-3*p,v=3*(p-d),m=3*(d-f),y=3*f;for(l=0;l<t.length;l++)o=g*(c=t[l])[n][r]+v*c[n+1][r]+m*c[n+2][r]+y*c[n+3][r],s=g*c[n][r+1]+v*c[n+1][r+1]+m*c[n+2][r+1]+y*c[n+3][r+1],e[l]=u*o+i*s;return e}:function(e,r,n,i,a){var o,s,l,c;e||(e=[]);var u=1-i;for(l=0;l<t.length;l++)o=(c=t[l])[n+1][r]-c[n][r],s=c[n+1][r+1]-c[n][r+1],e[l]=u*o+i*s;return e}}},{}],891:[function(t,e,r){\"use strict\";e.exports=function(t,e,r,n,i){var a=e-2,o=r-2;return n&&i?function(e,r,n){var i,s,l,c,u,f;e||(e=[]);var h=Math.max(0,Math.min(Math.floor(r),a)),p=Math.max(0,Math.min(Math.floor(n),o)),d=Math.max(0,Math.min(1,r-h)),g=Math.max(0,Math.min(1,n-p));h*=3,p*=3;var v=d*d,m=v*d,y=1-d,x=y*y,b=x*y,_=g*g,w=_*g,k=1-g,M=k*k,A=M*k;for(f=0;f<t.length;f++)i=b*(u=t[f])[p][h]+3*(x*d*u[p][h+1]+y*v*u[p][h+2])+m*u[p][h+3],s=b*u[p+1][h]+3*(x*d*u[p+1][h+1]+y*v*u[p+1][h+2])+m*u[p+1][h+3],l=b*u[p+2][h]+3*(x*d*u[p+2][h+1]+y*v*u[p+2][h+2])+m*u[p+2][h+3],c=b*u[p+3][h]+3*(x*d*u[p+3][h+1]+y*v*u[p+3][h+2])+m*u[p+3][h+3],e[f]=A*i+3*(M*g*s+k*_*l)+w*c;return e}:n?function(e,r,n){e||(e=[]);var i,s,l,c,u,f,h=Math.max(0,Math.min(Math.floor(r),a)),p=Math.max(0,Math.min(Math.floor(n),o)),d=Math.max(0,Math.min(1,r-h)),g=Math.max(0,Math.min(1,n-p));h*=3;var v=d*d,m=v*d,y=1-d,x=y*y,b=x*y,_=1-g;for(u=0;u<t.length;u++)i=_*(f=t[u])[p][h]+g*f[p+1][h],s=_*f[p][h+1]+g*f[p+1][h+1],l=_*f[p][h+2]+g*f[p+1][h+1],c=_*f[p][h+3]+g*f[p+1][h+1],e[u]=b*i+3*(x*d*s+y*v*l)+m*c;return e}:i?function(e,r,n){e||(e=[]);var i,s,l,c,u,f,h=Math.max(0,Math.min(Math.floor(r),a)),p=Math.max(0,Math.min(Math.floor(n),o)),d=Math.max(0,Math.min(1,r-h)),g=Math.max(0,Math.min(1,n-p));p*=3;var v=g*g,m=v*g,y=1-g,x=y*y,b=x*y,_=1-d;for(u=0;u<t.length;u++)i=_*(f=t[u])[p][h]+d*f[p][h+1],s=_*f[p+1][h]+d*f[p+1][h+1],l=_*f[p+2][h]+d*f[p+2][h+1],c=_*f[p+3][h]+d*f[p+3][h+1],e[u]=b*i+3*(x*g*s+y*v*l)+m*c;return e}:function(e,r,n){e||(e=[]);var i,s,l,c,u=Math.max(0,Math.min(Math.floor(r),a)),f=Math.max(0,Math.min(Math.floor(n),o)),h=Math.max(0,Math.min(1,r-u)),p=Math.max(0,Math.min(1,n-f)),d=1-p,g=1-h;for(l=0;l<t.length;l++)i=g*(c=t[l])[f][u]+h*c[f][u+1],s=g*c[f+1][u]+h*c[f+1][u+1],e[l]=d*i+p*s;return e}}},{}],892:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"./xy_defaults\"),a=t(\"./ab_defaults\"),o=t(\"./attributes\"),s=t(\"../../components/color/attributes\");e.exports=function(t,e,r,l){function c(r,i){return n.coerce(t,e,o,r,i)}e._clipPathId=\"clip\"+e.uid+\"carpet\";var u=c(\"color\",s.defaultLine);(n.coerceFont(c,\"font\"),c(\"carpet\"),a(t,e,l,c,u),e.a&&e.b)?(e.a.length<3&&(e.aaxis.smoothing=0),e.b.length<3&&(e.baxis.smoothing=0),i(t,e,c)||(e.visible=!1),e._cheater&&c(\"cheaterslope\")):e.visible=!1}},{\"../../components/color/attributes\":569,\"../../lib\":696,\"./ab_defaults\":875,\"./attributes\":877,\"./xy_defaults\":901}],893:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.supplyDefaults=t(\"./defaults\"),n.plot=t(\"./plot\"),n.calc=t(\"./calc\"),n.animatable=!0,n.isContainer=!0,n.moduleType=\"trace\",n.name=\"carpet\",n.basePlotModule=t(\"../../plots/cartesian\"),n.categories=[\"cartesian\",\"svg\",\"carpet\",\"carpetAxis\",\"notLegendIsolatable\"],n.meta={},e.exports=n},{\"../../plots/cartesian\":756,\"./attributes\":877,\"./calc\":881,\"./defaults\":892,\"./plot\":898}],894:[function(t,e,r){\"use strict\";e.exports=function(t,e){for(var r,n=t._fullData.length,i=0;i<n;i++){var a=t._fullData[i];if(a.index!==e.index&&(\"carpet\"===a.type&&(r||(r=a),a.carpet===e.carpet)))return a}return r}},{}],895:[function(t,e,r){\"use strict\";e.exports=function(t,e,r){if(0===t.length)return\"\";var n,i=[],a=r?3:1;for(n=0;n<t.length;n+=a)i.push(t[n]+\",\"+e[n]),r&&n<t.length-a&&(i.push(\"C\"),i.push([t[n+1]+\",\"+e[n+1],t[n+2]+\",\"+e[n+2]+\" \"].join(\" \")));return i.join(r?\"\":\"L\")}},{}],896:[function(t,e,r){\"use strict\";var n=t(\"../../lib\").isArrayOrTypedArray;e.exports=function(t,e,r){var i;for(n(t)?t.length>e.length&&(t=t.slice(0,e.length)):t=[],i=0;i<e.length;i++)t[i]=r(e[i]);return t}},{\"../../lib\":696}],897:[function(t,e,r){\"use strict\";e.exports=function(t,e,r,n,i,a){var o=i[0]*t.dpdx(e),s=i[1]*t.dpdy(r),l=1,c=1;if(a){var u=Math.sqrt(i[0]*i[0]+i[1]*i[1]),f=Math.sqrt(a[0]*a[0]+a[1]*a[1]),h=(i[0]*a[0]+i[1]*a[1])/u/f;c=Math.max(0,h)}var p=180*Math.atan2(s,o)/Math.PI;return p<-90?(p+=180,l=-l):p>90&&(p-=180,l=-l),{angle:p,flip:l,p:t.c2p(n,e,r),offsetMultplier:c}}},{}],898:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../../components/drawing\"),a=t(\"./map_1d_array\"),o=t(\"./makepath\"),s=t(\"./orient_text\"),l=t(\"../../lib/svg_text_utils\"),c=t(\"../../lib\"),u=t(\"../../constants/alignment\");function f(t,e,r,i,s,l){var c=\"const-\"+s+\"-lines\",u=r.selectAll(\".\"+c).data(l);u.enter().append(\"path\").classed(c,!0).style(\"vector-effect\",\"non-scaling-stroke\"),u.each(function(r){var i=r,s=i.x,l=i.y,c=a([],s,t.c2p),u=a([],l,e.c2p),f=\"M\"+o(c,u,i.smoothing);n.select(this).attr(\"d\",f).style(\"stroke-width\",i.width).style(\"stroke\",i.color).style(\"fill\",\"none\")}),u.exit().remove()}function h(t,e,r,a,o,c,u,f){var h=c.selectAll(\"text.\"+f).data(u);h.enter().append(\"text\").classed(f,!0);var p=0,d={};return h.each(function(o,c){var u;if(\"auto\"===o.axis.tickangle)u=s(a,e,r,o.xy,o.dxy);else{var f=(o.axis.tickangle+180)*Math.PI/180;u=s(a,e,r,o.xy,[Math.cos(f),Math.sin(f)])}c||(d={angle:u.angle,flip:u.flip});var h=(o.endAnchor?-1:1)*u.flip,g=n.select(this).attr({\"text-anchor\":h>0?\"start\":\"end\",\"data-notex\":1}).call(i.font,o.font).text(o.text).call(l.convertToTspans,t),v=i.bBox(this);g.attr(\"transform\",\"translate(\"+u.p[0]+\",\"+u.p[1]+\") rotate(\"+u.angle+\")translate(\"+o.axis.labelpadding*h+\",\"+.3*v.height+\")\"),p=Math.max(p,v.width+o.axis.labelpadding)}),h.exit().remove(),d.maxExtent=p,d}e.exports=function(t,e,r,i){var l=e.xaxis,u=e.yaxis,p=t._fullLayout._clips;c.makeTraceGroups(i,r,\"trace\").each(function(e){var r=n.select(this),i=e[0],d=i.trace,v=d.aaxis,m=d.baxis,y=c.ensureSingle(r,\"g\",\"minorlayer\"),x=c.ensureSingle(r,\"g\",\"majorlayer\"),b=c.ensureSingle(r,\"g\",\"boundarylayer\"),_=c.ensureSingle(r,\"g\",\"labellayer\");r.style(\"opacity\",d.opacity),f(l,u,x,v,\"a\",v._gridlines),f(l,u,x,m,\"b\",m._gridlines),f(l,u,y,v,\"a\",v._minorgridlines),f(l,u,y,m,\"b\",m._minorgridlines),f(l,u,b,v,\"a-boundary\",v._boundarylines),f(l,u,b,m,\"b-boundary\",m._boundarylines);var w=h(t,l,u,d,i,_,v._labels,\"a-label\"),k=h(t,l,u,d,i,_,m._labels,\"b-label\");!function(t,e,r,n,i,a,o,l){var u,f,h,p;u=.5*(r.a[0]+r.a[r.a.length-1]),f=r.b[0],h=r.ab2xy(u,f,!0),p=r.dxyda_rough(u,f),void 0===o.angle&&c.extendFlat(o,s(r,i,a,h,r.dxydb_rough(u,f)));g(t,e,r,n,h,p,r.aaxis,i,a,o,\"a-title\"),u=r.a[0],f=.5*(r.b[0]+r.b[r.b.length-1]),h=r.ab2xy(u,f,!0),p=r.dxydb_rough(u,f),void 0===l.angle&&c.extendFlat(l,s(r,i,a,h,r.dxyda_rough(u,f)));g(t,e,r,n,h,p,r.baxis,i,a,l,\"b-title\")}(t,_,d,i,l,u,w,k),function(t,e,r,n,i){var s,l,u,f,h=r.select(\"#\"+t._clipPathId);h.size()||(h=r.append(\"clipPath\").classed(\"carpetclip\",!0));var p=c.ensureSingle(h,\"path\",\"carpetboundary\"),d=e.clipsegments,g=[];for(f=0;f<d.length;f++)s=d[f],l=a([],s.x,n.c2p),u=a([],s.y,i.c2p),g.push(o(l,u,s.bicubic));var v=\"M\"+g.join(\"L\")+\"Z\";h.attr(\"id\",t._clipPathId),p.attr(\"d\",v)}(d,i,p,l,u)})};var p=u.LINE_SPACING,d=(1-u.MID_SHIFT)/p+1;function g(t,e,r,a,o,c,u,f,h,g,v){var m=[];u.title&&m.push(u.title);var y=e.selectAll(\"text.\"+v).data(m),x=g.maxExtent;y.enter().append(\"text\").classed(v,!0),y.each(function(){var e=s(r,f,h,o,c);-1===[\"start\",\"both\"].indexOf(u.showticklabels)&&(x=0);var a=u.titlefont.size;x+=a+u.titleoffset;var v=(g.angle+(g.flip<0?180:0)-e.angle+450)%360,m=v>90&&v<270,y=n.select(this);y.text(u.title||\"\").call(l.convertToTspans,t),m&&(x=(-l.lineCount(y)+d)*p*a-x),y.attr(\"transform\",\"translate(\"+e.p[0]+\",\"+e.p[1]+\") rotate(\"+e.angle+\") translate(0,\"+x+\")\").classed(\"user-select-none\",!0).attr(\"text-anchor\",\"middle\").call(i.font,u.titlefont)}),y.exit().remove()}},{\"../../components/drawing\":595,\"../../constants/alignment\":668,\"../../lib\":696,\"../../lib/svg_text_utils\":720,\"./makepath\":895,\"./map_1d_array\":896,\"./orient_text\":897,d3:148}],899:[function(t,e,r){\"use strict\";var n=t(\"./constants\"),i=t(\"../../lib/search\").findBin,a=t(\"./compute_control_points\"),o=t(\"./create_spline_evaluator\"),s=t(\"./create_i_derivative_evaluator\"),l=t(\"./create_j_derivative_evaluator\");e.exports=function(t){var e=t._a,r=t._b,c=e.length,u=r.length,f=t.aaxis,h=t.baxis,p=e[0],d=e[c-1],g=r[0],v=r[u-1],m=e[e.length-1]-e[0],y=r[r.length-1]-r[0],x=m*n.RELATIVE_CULL_TOLERANCE,b=y*n.RELATIVE_CULL_TOLERANCE;p-=x,d+=x,g-=b,v+=b,t.isVisible=function(t,e){return t>p&&t<d&&e>g&&e<v},t.isOccluded=function(t,e){return t<p||t>d||e<g||e>v},t.setScale=function(){var e=t._x,r=t._y,n=a(t._xctrl,t._yctrl,e,r,f.smoothing,h.smoothing);t._xctrl=n[0],t._yctrl=n[1],t.evalxy=o([t._xctrl,t._yctrl],c,u,f.smoothing,h.smoothing),t.dxydi=s([t._xctrl,t._yctrl],f.smoothing,h.smoothing),t.dxydj=l([t._xctrl,t._yctrl],f.smoothing,h.smoothing)},t.i2a=function(t){var r=Math.max(0,Math.floor(t[0]),c-2),n=t[0]-r;return(1-n)*e[r]+n*e[r+1]},t.j2b=function(t){var e=Math.max(0,Math.floor(t[1]),c-2),n=t[1]-e;return(1-n)*r[e]+n*r[e+1]},t.ij2ab=function(e){return[t.i2a(e[0]),t.j2b(e[1])]},t.a2i=function(t){var r=Math.max(0,Math.min(i(t,e),c-2)),n=e[r],a=e[r+1];return Math.max(0,Math.min(c-1,r+(t-n)/(a-n)))},t.b2j=function(t){var e=Math.max(0,Math.min(i(t,r),u-2)),n=r[e],a=r[e+1];return Math.max(0,Math.min(u-1,e+(t-n)/(a-n)))},t.ab2ij=function(e){return[t.a2i(e[0]),t.b2j(e[1])]},t.i2c=function(e,r){return t.evalxy([],e,r)},t.ab2xy=function(n,i,a){if(!a&&(n<e[0]||n>e[c-1]|i<r[0]||i>r[u-1]))return[!1,!1];var o=t.a2i(n),s=t.b2j(i),l=t.evalxy([],o,s);if(a){var f,h,p,d,g=0,v=0,m=[];n<e[0]?(f=0,h=0,g=(n-e[0])/(e[1]-e[0])):n>e[c-1]?(f=c-2,h=1,g=(n-e[c-1])/(e[c-1]-e[c-2])):h=o-(f=Math.max(0,Math.min(c-2,Math.floor(o)))),i<r[0]?(p=0,d=0,v=(i-r[0])/(r[1]-r[0])):i>r[u-1]?(p=u-2,d=1,v=(i-r[u-1])/(r[u-1]-r[u-2])):d=s-(p=Math.max(0,Math.min(u-2,Math.floor(s)))),g&&(t.dxydi(m,f,p,h,d),l[0]+=m[0]*g,l[1]+=m[1]*g),v&&(t.dxydj(m,f,p,h,d),l[0]+=m[0]*v,l[1]+=m[1]*v)}return l},t.c2p=function(t,e,r){return[e.c2p(t[0]),r.c2p(t[1])]},t.p2x=function(t,e,r){return[e.p2c(t[0]),r.p2c(t[1])]},t.dadi=function(t){var r=Math.max(0,Math.min(e.length-2,t));return e[r+1]-e[r]},t.dbdj=function(t){var e=Math.max(0,Math.min(r.length-2,t));return r[e+1]-r[e]},t.dxyda=function(e,r,n,i){var a=t.dxydi(null,e,r,n,i),o=t.dadi(e,n);return[a[0]/o,a[1]/o]},t.dxydb=function(e,r,n,i){var a=t.dxydj(null,e,r,n,i),o=t.dbdj(r,i);return[a[0]/o,a[1]/o]},t.dxyda_rough=function(e,r,n){var i=m*(n||.1),a=t.ab2xy(e+i,r,!0),o=t.ab2xy(e-i,r,!0);return[.5*(a[0]-o[0])/i,.5*(a[1]-o[1])/i]},t.dxydb_rough=function(e,r,n){var i=y*(n||.1),a=t.ab2xy(e,r+i,!0),o=t.ab2xy(e,r-i,!0);return[.5*(a[0]-o[0])/i,.5*(a[1]-o[1])/i]},t.dpdx=function(t){return t._m},t.dpdy=function(t){return t._m}}},{\"../../lib/search\":715,\"./compute_control_points\":887,\"./constants\":888,\"./create_i_derivative_evaluator\":889,\"./create_j_derivative_evaluator\":890,\"./create_spline_evaluator\":891}],900:[function(t,e,r){\"use strict\";var n=t(\"../../lib\");e.exports=function(t,e,r){var i,a,o,s=[],l=[],c=t[0].length,u=t.length;function f(e,r){var n,i=0,a=0;return e>0&&void 0!==(n=t[r][e-1])&&(a++,i+=n),e<c-1&&void 0!==(n=t[r][e+1])&&(a++,i+=n),r>0&&void 0!==(n=t[r-1][e])&&(a++,i+=n),r<u-1&&void 0!==(n=t[r+1][e])&&(a++,i+=n),i/Math.max(1,a)}var h,p,d,g,v,m,y,x,b,_,w,k=0;for(i=0;i<c;i++)for(a=0;a<u;a++)void 0===t[a][i]&&(s.push(i),l.push(a),t[a][i]=f(i,a)),k=Math.max(k,Math.abs(t[a][i]));if(!s.length)return t;var M=0,A=0,T=s.length;do{for(M=0,o=0;o<T;o++){i=s[o],a=l[o];var S,E,C,L,z,O,I=0,P=0;0===i?(C=e[z=Math.min(c-1,2)],L=e[1],S=t[a][z],P+=(E=t[a][1])+(E-S)*(e[0]-L)/(L-C),I++):i===c-1&&(C=e[z=Math.max(0,c-3)],L=e[c-2],S=t[a][z],P+=(E=t[a][c-2])+(E-S)*(e[c-1]-L)/(L-C),I++),(0===i||i===c-1)&&a>0&&a<u-1&&(h=r[a+1]-r[a],P+=((p=r[a]-r[a-1])*t[a+1][i]+h*t[a-1][i])/(p+h),I++),0===a?(C=r[O=Math.min(u-1,2)],L=r[1],S=t[O][i],P+=(E=t[1][i])+(E-S)*(r[0]-L)/(L-C),I++):a===u-1&&(C=r[O=Math.max(0,u-3)],L=r[u-2],S=t[O][i],P+=(E=t[u-2][i])+(E-S)*(r[u-1]-L)/(L-C),I++),(0===a||a===u-1)&&i>0&&i<c-1&&(h=e[i+1]-e[i],P+=((p=e[i]-e[i-1])*t[a][i+1]+h*t[a][i-1])/(p+h),I++),I?P/=I:(d=e[i+1]-e[i],g=e[i]-e[i-1],x=(v=r[a+1]-r[a])*(m=r[a]-r[a-1])*(v+m),P=((y=d*g*(d+g))*(m*t[a+1][i]+v*t[a-1][i])+x*(g*t[a][i+1]+d*t[a][i-1]))/(x*(g+d)+y*(m+v))),M+=(_=(b=P-t[a][i])/k)*_,w=I?0:.85,t[a][i]+=b*(1+w)}M=Math.sqrt(M)}while(A++<100&&M>1e-5);return n.log(\"Smoother converged to\",M,\"after\",A,\"iterations\"),t}},{\"../../lib\":696}],901:[function(t,e,r){\"use strict\";var n=t(\"../../lib\").isArray1D;e.exports=function(t,e,r){var i=r(\"x\"),a=i&&i.length,o=r(\"y\"),s=o&&o.length;if(!a&&!s)return!1;if(e._cheater=!i,a&&!n(i)||s&&!n(o))e._length=null;else{var l=a?i.length:1/0;s&&(l=Math.min(l,o.length)),e.a&&e.a.length&&(l=Math.min(l,e.a.length)),e.b&&e.b.length&&(l=Math.min(l,e.b.length)),e._length=l}return!0}},{\"../../lib\":696}],902:[function(t,e,r){\"use strict\";var n=t(\"../scattergeo/attributes\"),i=t(\"../../components/colorscale/attributes\"),a=t(\"../../components/colorbar/attributes\"),o=t(\"../../plots/attributes\"),s=t(\"../../lib/extend\").extendFlat,l=n.marker.line;e.exports=s({locations:{valType:\"data_array\",editType:\"calc\"},locationmode:n.locationmode,z:{valType:\"data_array\",editType:\"calc\"},text:s({},n.text,{}),marker:{line:{color:l.color,width:s({},l.width,{dflt:1}),editType:\"calc\"},opacity:{valType:\"number\",arrayOk:!0,min:0,max:1,dflt:1,editType:\"style\"},editType:\"calc\"},selected:{marker:{opacity:n.selected.marker.opacity,editType:\"plot\"},editType:\"plot\"},unselected:{marker:{opacity:n.unselected.marker.opacity,editType:\"plot\"},editType:\"plot\"},hoverinfo:s({},o.hoverinfo,{editType:\"calc\",flags:[\"location\",\"z\",\"text\",\"name\"]})},i(\"\",{cLetter:\"z\",editTypeOverride:\"calc\"}),{colorbar:a})},{\"../../components/colorbar/attributes\":571,\"../../components/colorscale/attributes\":577,\"../../lib/extend\":685,\"../../plots/attributes\":741,\"../scattergeo/attributes\":1083}],903:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../../constants/numerical\").BADNUM,a=t(\"../../components/colorscale/calc\"),o=t(\"../scatter/arrays_to_calcdata\"),s=t(\"../scatter/calc_selection\");e.exports=function(t,e){for(var r=e._length,l=new Array(r),c=0;c<r;c++){var u=l[c]={},f=e.locations[c],h=e.z[c];u.loc=\"string\"==typeof f?f:null,u.z=n(h)?h:i}return o(l,e),a(e,e.z,\"\",\"z\"),s(l,e),l}},{\"../../components/colorscale/calc\":578,\"../../constants/numerical\":673,\"../scatter/arrays_to_calcdata\":1042,\"../scatter/calc_selection\":1045,\"fast-isnumeric\":214}],904:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../components/colorscale/defaults\"),a=t(\"./attributes\");e.exports=function(t,e,r,o){function s(r,i){return n.coerce(t,e,a,r,i)}var l=s(\"locations\"),c=s(\"z\");l&&l.length&&n.isArrayOrTypedArray(c)&&c.length?(e._length=Math.min(l.length,c.length),s(\"locationmode\"),s(\"text\"),s(\"marker.line.color\"),s(\"marker.line.width\"),s(\"marker.opacity\"),i(t,e,o,s,{prefix:\"\",cLetter:\"z\"}),n.coerceSelectionMarkerOpacity(e,s)):e.visible=!1}},{\"../../components/colorscale/defaults\":580,\"../../lib\":696,\"./attributes\":902}],905:[function(t,e,r){\"use strict\";e.exports=function(t,e){return t.location=e.location,t.z=e.z,t}},{}],906:[function(t,e,r){\"use strict\";var n=t(\"../../plots/cartesian/axes\"),i=t(\"./attributes\"),a=t(\"../scatter/fill_hover_text\");e.exports=function(t,e,r){var o,s,l,c,u=t.cd,f=u[0].trace,h=t.subplot;for(s=0;s<u.length;s++)if(c=!1,(o=u[s])._polygons){for(l=0;l<o._polygons.length;l++)o._polygons[l].contains([e,r])&&(c=!c),o._polygons[l].contains([e+360,r])&&(c=!c);if(c)break}if(c&&o)return t.x0=t.x1=t.xa.c2p(o.ct),t.y0=t.y1=t.ya.c2p(o.ct),t.index=o.index,t.location=o.loc,t.z=o.z,function(t,e,r,o){var s=r.hi||e.hoverinfo,l=\"all\"===s?i.hoverinfo.flags:s.split(\"+\"),c=-1!==l.indexOf(\"name\"),u=-1!==l.indexOf(\"location\"),f=-1!==l.indexOf(\"z\"),h=-1!==l.indexOf(\"text\"),p=[];!c&&u?t.nameOverride=r.loc:(c&&(t.nameOverride=e.name),u&&p.push(r.loc));f&&p.push((d=r.z,n.tickText(o,o.c2l(d),\"hover\").text));var d;h&&a(r,e,p);t.extraText=p.join(\"<br>\")}(t,f,o,h.mockAxis),[t]}},{\"../../plots/cartesian/axes\":744,\"../scatter/fill_hover_text\":1051,\"./attributes\":902}],907:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.supplyDefaults=t(\"./defaults\"),n.colorbar=t(\"../heatmap/colorbar\"),n.calc=t(\"./calc\"),n.plot=t(\"./plot\"),n.style=t(\"./style\").style,n.styleOnSelect=t(\"./style\").styleOnSelect,n.hoverPoints=t(\"./hover\"),n.eventData=t(\"./event_data\"),n.selectPoints=t(\"./select\"),n.moduleType=\"trace\",n.name=\"choropleth\",n.basePlotModule=t(\"../../plots/geo\"),n.categories=[\"geo\",\"noOpacity\"],n.meta={},e.exports=n},{\"../../plots/geo\":775,\"../heatmap/colorbar\":948,\"./attributes\":902,\"./calc\":903,\"./defaults\":904,\"./event_data\":905,\"./hover\":906,\"./plot\":908,\"./select\":909,\"./style\":910}],908:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../../lib\"),a=t(\"../../lib/polygon\"),o=t(\"../../lib/topojson_utils\").getTopojsonFeatures,s=t(\"../../lib/geo_location_utils\").locationToFeature,l=t(\"./style\").style;function c(t,e){for(var r=t[0].trace,n=t.length,i=o(r,e),a=0;a<n;a++){var l=t[a],c=s(r.locationmode,l.loc,i);c?(l.geojson=c,l.ct=c.properties.ct,l.index=a,l._polygons=u(c)):l.geojson=null}}function u(t){var e,r,n,i,o=t.geometry,s=o.coordinates,l=t.id,c=[];function u(t){for(var e=0;e<t.length-1;e++)if(t[e][0]>0&&t[e+1][0]<0)return e;return null}switch(e=\"RUS\"===l||\"FJI\"===l?function(t){var e;if(null===u(t))e=t;else for(e=new Array(t.length),i=0;i<t.length;i++)e[i]=[t[i][0]<0?t[i][0]+360:t[i][0],t[i][1]];c.push(a.tester(e))}:\"ATA\"===l?function(t){var e=u(t);if(null===e)return c.push(a.tester(t));var r=new Array(t.length+1),n=0;for(i=0;i<t.length;i++)i>e?r[n++]=[t[i][0]+360,t[i][1]]:i===e?(r[n++]=t[i],r[n++]=[t[i][0],-90]):r[n++]=t[i];var o=a.tester(r);o.pts.pop(),c.push(o)}:function(t){c.push(a.tester(t))},o.type){case\"MultiPolygon\":for(r=0;r<s.length;r++)for(n=0;n<s[r].length;n++)e(s[r][n]);break;case\"Polygon\":for(r=0;r<s.length;r++)e(s[r])}return c}e.exports=function(t,e,r){for(var a=0;a<r.length;a++)c(r[a],e.topojson);var o=e.layers.backplot.select(\".choroplethlayer\");i.makeTraceGroups(o,r,\"trace choropleth\").each(function(e){var r=(e[0].node3=n.select(this)).selectAll(\"path.choroplethlocation\").data(i.identity);r.enter().append(\"path\").classed(\"choroplethlocation\",!0),r.exit().remove(),l(t,e)})}},{\"../../lib\":696,\"../../lib/geo_location_utils\":688,\"../../lib/polygon\":708,\"../../lib/topojson_utils\":723,\"./style\":910,d3:148}],909:[function(t,e,r){\"use strict\";e.exports=function(t,e){var r,n,i,a,o,s=t.cd,l=t.xaxis,c=t.yaxis,u=[];if(!1===e)for(r=0;r<s.length;r++)s[r].selected=0;else for(r=0;r<s.length;r++)(i=(n=s[r]).ct)&&(a=l.c2p(i),o=c.c2p(i),e.contains([a,o],null,r,t)?(u.push({pointNumber:r,lon:i[0],lat:i[1]}),n.selected=1):n.selected=0);return u}},{}],910:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../../components/color\"),a=t(\"../../components/drawing\"),o=t(\"../../components/colorscale\");function s(t,e){var r=e[0].trace,s=e[0].node3.selectAll(\".choroplethlocation\"),l=r.marker||{},c=l.line||{},u=o.makeColorScaleFunc(o.extractScale(r.colorscale,r.zmin,r.zmax));s.each(function(t){n.select(this).attr(\"fill\",u(t.z)).call(i.stroke,t.mlc||c.color).call(a.dashLine,\"\",t.mlw||c.width||0).style(\"opacity\",l.opacity)}),a.selectedPointStyle(s,r,t)}e.exports={style:function(t,e){e&&s(t,e)},styleOnSelect:function(t,e){var r=e[0].node3,n=e[0].trace;n.selectedpoints?a.selectedPointStyle(r.selectAll(\".choroplethlocation\"),n,t):s(t,e)}}},{\"../../components/color\":570,\"../../components/colorscale\":585,\"../../components/drawing\":595,d3:148}],911:[function(t,e,r){\"use strict\";var n=t(\"../../components/colorscale/attributes\"),i=t(\"../../components/colorbar/attributes\"),a=t(\"../mesh3d/attributes\"),o=t(\"../../plots/attributes\"),s=t(\"../../lib/extend\").extendFlat,l={x:{valType:\"data_array\",editType:\"calc+clearAxisTypes\"},y:{valType:\"data_array\",editType:\"calc+clearAxisTypes\"},z:{valType:\"data_array\",editType:\"calc+clearAxisTypes\"},u:{valType:\"data_array\",editType:\"calc\"},v:{valType:\"data_array\",editType:\"calc\"},w:{valType:\"data_array\",editType:\"calc\"},sizemode:{valType:\"enumerated\",values:[\"scaled\",\"absolute\"],editType:\"calc\",dflt:\"scaled\"},sizeref:{valType:\"number\",editType:\"calc\",min:0},anchor:{valType:\"enumerated\",editType:\"calc\",values:[\"tip\",\"tail\",\"cm\",\"center\"],dflt:\"cm\"},text:{valType:\"string\",dflt:\"\",arrayOk:!0,editType:\"calc\"}};s(l,n(\"\",{colorAttr:\"u/v/w norm\",showScaleDflt:!0,editTypeOverride:\"calc\"}),{colorbar:i});[\"opacity\",\"lightposition\",\"lighting\"].forEach(function(t){l[t]=a[t]}),l.hoverinfo=s({},o.hoverinfo,{editType:\"calc\",flags:[\"x\",\"y\",\"z\",\"u\",\"v\",\"w\",\"norm\",\"text\",\"name\"],dflt:\"x+y+z+norm+text+name\"}),l.transforms=void 0,e.exports=l},{\"../../components/colorbar/attributes\":571,\"../../components/colorscale/attributes\":577,\"../../lib/extend\":685,\"../../plots/attributes\":741,\"../mesh3d/attributes\":986}],912:[function(t,e,r){\"use strict\";var n=t(\"../../components/colorscale/calc\");e.exports=function(t,e){for(var r=e.u,i=e.v,a=e.w,o=Math.min(e.x.length,e.y.length,e.z.length,r.length,i.length,a.length),s=-1/0,l=1/0,c=0;c<o;c++){var u=r[c],f=i[c],h=a[c],p=Math.sqrt(u*u+f*f+h*h);s=Math.max(s,p),l=Math.min(l,p)}e._len=o,e._normMax=s,n(e,[l,s],\"\",\"c\")}},{\"../../components/colorscale/calc\":578}],913:[function(t,e,r){\"use strict\";var n=t(\"gl-cone3d\"),i=t(\"gl-cone3d\").createConeMesh,a=t(\"../../lib\").simpleMap,o=t(\"../../lib/gl_format_color\").parseColorScale,s=t(\"../../plots/gl3d/zip3\");function l(t,e){this.scene=t,this.uid=e,this.mesh=null,this.data=null}var c=l.prototype;c.handlePick=function(t){if(t.object===this.mesh){var e=t.index=t.data.index,r=this.data.x[e],n=this.data.y[e],i=this.data.z[e],a=this.data.u[e],o=this.data.v[e],s=this.data.w[e];t.traceCoordinate=[r,n,i,a,o,s,Math.sqrt(a*a+o*o+s*s)];var l=this.data.text;return Array.isArray(l)&&void 0!==l[e]?t.textLabel=l[e]:l&&(t.textLabel=l),!0}};var u={xaxis:0,yaxis:1,zaxis:2},f={tip:1,tail:0,cm:.25,center:.5},h={tip:1,tail:1,cm:.75,center:.5};function p(t,e){var r=t.fullSceneLayout,i=t.dataScale,l={};function c(t,e){var n=r[e],o=i[u[e]];return a(t,function(t){return n.d2l(t)*o})}l.vectors=s(c(e.u,\"xaxis\"),c(e.v,\"yaxis\"),c(e.w,\"zaxis\"),e._len),l.positions=s(c(e.x,\"xaxis\"),c(e.y,\"yaxis\"),c(e.z,\"zaxis\"),e._len),l.colormap=o(e.colorscale),l.vertexIntensityBounds=[e.cmin/e._normMax,e.cmax/e._normMax],l.coneOffset=f[e.anchor],\"scaled\"===e.sizemode?l.coneSize=e.sizeref||.5:l.coneSize=e.sizeref&&e._normMax?e.sizeref/e._normMax:.5;var p=n(l),d=e.lightposition;return p.lightPosition=[d.x,d.y,d.z],p.ambient=e.lighting.ambient,p.diffuse=e.lighting.diffuse,p.specular=e.lighting.specular,p.roughness=e.lighting.roughness,p.fresnel=e.lighting.fresnel,p.opacity=e.opacity,e._pad=h[e.anchor]*p.vectorScale*p.coneScale*e._normMax,p}c.update=function(t){this.data=t;var e=p(this.scene,t);this.mesh.update(e)},c.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()},e.exports=function(t,e){var r=t.glplot.gl,n=p(t,e),a=i(r,n),o=new l(t,e.uid);return o.mesh=a,o.data=e,a._trace=o,t.glplot.add(a),o}},{\"../../lib\":696,\"../../lib/gl_format_color\":692,\"../../plots/gl3d/zip3\":798,\"gl-cone3d\":231}],914:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../components/colorscale/defaults\"),a=t(\"./attributes\");e.exports=function(t,e,r,o){function s(r,i){return n.coerce(t,e,a,r,i)}var l=s(\"u\"),c=s(\"v\"),u=s(\"w\"),f=s(\"x\"),h=s(\"y\"),p=s(\"z\");l&&l.length&&c&&c.length&&u&&u.length&&f&&f.length&&h&&h.length&&p&&p.length?(s(\"sizeref\"),s(\"sizemode\"),s(\"anchor\"),s(\"lighting.ambient\"),s(\"lighting.diffuse\"),s(\"lighting.specular\"),s(\"lighting.roughness\"),s(\"lighting.fresnel\"),s(\"lightposition.x\"),s(\"lightposition.y\"),s(\"lightposition.z\"),i(t,e,o,s,{prefix:\"\",cLetter:\"c\"}),s(\"text\"),e._length=null):e.visible=!1}},{\"../../components/colorscale/defaults\":580,\"../../lib\":696,\"./attributes\":911}],915:[function(t,e,r){\"use strict\";e.exports={moduleType:\"trace\",name:\"cone\",basePlotModule:t(\"../../plots/gl3d\"),categories:[\"gl3d\"],attributes:t(\"./attributes\"),supplyDefaults:t(\"./defaults\"),colorbar:{min:\"cmin\",max:\"cmax\"},calc:t(\"./calc\"),plot:t(\"./convert\"),meta:{}}},{\"../../plots/gl3d\":787,\"./attributes\":911,\"./calc\":912,\"./convert\":913,\"./defaults\":914}],916:[function(t,e,r){\"use strict\";var n=t(\"../heatmap/attributes\"),i=t(\"../scatter/attributes\"),a=t(\"../../components/colorscale/attributes\"),o=t(\"../../components/colorbar/attributes\"),s=t(\"../../components/drawing/attributes\").dash,l=t(\"../../plots/font_attributes\"),c=t(\"../../lib/extend\").extendFlat,u=t(\"../../constants/filter_ops\"),f=u.COMPARISON_OPS2,h=u.INTERVAL_OPS,p=i.line;e.exports=c({z:n.z,x:n.x,x0:n.x0,dx:n.dx,y:n.y,y0:n.y0,dy:n.dy,text:n.text,transpose:n.transpose,xtype:n.xtype,ytype:n.ytype,zhoverformat:n.zhoverformat,connectgaps:n.connectgaps,fillcolor:{valType:\"color\",editType:\"calc\"},autocontour:{valType:\"boolean\",dflt:!0,editType:\"calc\",impliedEdits:{\"contours.start\":void 0,\"contours.end\":void 0,\"contours.size\":void 0}},ncontours:{valType:\"integer\",dflt:15,min:1,editType:\"calc\"},contours:{type:{valType:\"enumerated\",values:[\"levels\",\"constraint\"],dflt:\"levels\",editType:\"calc\"},start:{valType:\"number\",dflt:null,editType:\"plot\",impliedEdits:{\"^autocontour\":!1}},end:{valType:\"number\",dflt:null,editType:\"plot\",impliedEdits:{\"^autocontour\":!1}},size:{valType:\"number\",dflt:null,min:0,editType:\"plot\",impliedEdits:{\"^autocontour\":!1}},coloring:{valType:\"enumerated\",values:[\"fill\",\"heatmap\",\"lines\",\"none\"],dflt:\"fill\",editType:\"calc\"},showlines:{valType:\"boolean\",dflt:!0,editType:\"plot\"},showlabels:{valType:\"boolean\",dflt:!1,editType:\"plot\"},labelfont:l({editType:\"plot\",colorEditType:\"style\"}),labelformat:{valType:\"string\",dflt:\"\",editType:\"plot\"},operation:{valType:\"enumerated\",values:[].concat(f).concat(h),dflt:\"=\",editType:\"calc\"},value:{valType:\"any\",dflt:0,editType:\"calc\"},editType:\"calc\",impliedEdits:{autocontour:!1}},line:{color:c({},p.color,{editType:\"style+colorbars\"}),width:c({},p.width,{editType:\"style+colorbars\"}),dash:s,smoothing:c({},p.smoothing,{}),editType:\"plot\"}},a(\"\",{cLetter:\"z\",autoColorDflt:!1,editTypeOverride:\"calc\"}),{colorbar:o})},{\"../../components/colorbar/attributes\":571,\"../../components/colorscale/attributes\":577,\"../../components/drawing/attributes\":594,\"../../constants/filter_ops\":669,\"../../lib/extend\":685,\"../../plots/font_attributes\":771,\"../heatmap/attributes\":945,\"../scatter/attributes\":1043}],917:[function(t,e,r){\"use strict\";var n=t(\"../heatmap/calc\"),i=t(\"./set_contours\");e.exports=function(t,e){var r=n(t,e);return i(e),r}},{\"../heatmap/calc\":946,\"./set_contours\":935}],918:[function(t,e,r){\"use strict\";e.exports=function(t,e,r,n){var i,a,o,s=t[0],l=s.x.length,c=s.y.length,u=s.z,f=n.contours,h=-1/0,p=1/0;for(i=0;i<c;i++)p=Math.min(p,u[i][0]),p=Math.min(p,u[i][l-1]),h=Math.max(h,u[i][0]),h=Math.max(h,u[i][l-1]);for(i=1;i<l-1;i++)p=Math.min(p,u[0][i]),p=Math.min(p,u[c-1][i]),h=Math.max(h,u[0][i]),h=Math.max(h,u[c-1][i]);switch(s.prefixBoundary=!1,e){case\">\":f.value>h&&(s.prefixBoundary=!0);break;case\"<\":f.value<p&&(s.prefixBoundary=!0);break;case\"[]\":a=Math.min.apply(null,f.value),((o=Math.max.apply(null,f.value))<p||a>h)&&(s.prefixBoundary=!0);break;case\"][\":a=Math.min.apply(null,f.value),o=Math.max.apply(null,f.value),a<p&&o>h&&(s.prefixBoundary=!0)}}},{}],919:[function(t,e,r){\"use strict\";var n=t(\"../../components/colorbar/draw\"),i=t(\"./make_color_map\"),a=t(\"./end_plus\");e.exports=function(t,e){var r=e[0].trace,o=\"cb\"+r.uid;if(t._fullLayout._infolayer.selectAll(\".\"+o).remove(),r.showscale){var s=e[0].t.cb=n(t,o),l=r.contours,c=r.line,u=l.size||1,f=l.coloring,h=i(r,{isColorbar:!0});s.fillgradient(\"heatmap\"===f?r.colorscale:\"\").zrange(\"heatmap\"===f?[r.zmin,r.zmax]:\"\").fillcolor(\"fill\"===f?h:\"\").line({color:\"lines\"===f?h:c.color,width:!1!==l.showlines?c.width:0,dash:c.dash}).levels({start:l.start,end:a(l),size:u}).options(r.colorbar)()}}},{\"../../components/colorbar/draw\":575,\"./end_plus\":927,\"./make_color_map\":932}],920:[function(t,e,r){\"use strict\";e.exports={BOTTOMSTART:[1,9,13,104,713],TOPSTART:[4,6,7,104,713],LEFTSTART:[8,12,14,208,1114],RIGHTSTART:[2,3,11,208,1114],NEWDELTA:[null,[-1,0],[0,-1],[-1,0],[1,0],null,[0,-1],[-1,0],[0,1],[0,1],null,[0,1],[1,0],[1,0],[0,-1]],CHOOSESADDLE:{104:[4,1],208:[2,8],713:[7,13],1114:[11,14]},SADDLEREMAINDER:{1:4,2:8,4:1,7:13,8:2,11:14,13:7,14:11},LABELDISTANCE:2,LABELINCREASE:10,LABELMIN:3,LABELMAX:10,LABELOPTIMIZER:{EDGECOST:1,ANGLECOST:1,NEIGHBORCOST:5,SAMELEVELFACTOR:10,SAMELEVELDISTANCE:5,MAXCOST:100,INITIALSEARCHPOINTS:10,ITERATIONS:5}}},{}],921:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"./label_defaults\"),a=t(\"../../components/color\"),o=a.addOpacity,s=a.opacity,l=t(\"../../constants/filter_ops\"),c=l.CONSTRAINT_REDUCTION,u=l.COMPARISON_OPS2;e.exports=function(t,e,r,a,l,f){var h,p,d,g=e.contours,v=r(\"contours.operation\");(g._operation=c[v],function(t,e){var r;-1===u.indexOf(e.operation)?(t(\"contours.value\",[0,1]),Array.isArray(e.value)?e.value.length>2?e.value=e.value.slice(2):0===e.length?e.value=[0,1]:e.length<2?(r=parseFloat(e.value[0]),e.value=[r,r+1]):e.value=[parseFloat(e.value[0]),parseFloat(e.value[1])]:n(e.value)&&(r=parseFloat(e.value),e.value=[r,r+1])):(t(\"contours.value\",0),n(e.value)||(Array.isArray(e.value)?e.value=parseFloat(e.value[0]):e.value=0))}(r,g),\"=\"===v?h=g.showlines=!0:(h=r(\"contours.showlines\"),d=r(\"fillcolor\",o((t.line||{}).color||l,.5))),h)&&(p=r(\"line.color\",d&&s(d)?o(e.fillcolor,1):l),r(\"line.width\",2),r(\"line.dash\"));r(\"line.smoothing\"),i(r,a,p,f)}},{\"../../components/color\":570,\"../../constants/filter_ops\":669,\"./label_defaults\":931,\"fast-isnumeric\":214}],922:[function(t,e,r){\"use strict\";var n=t(\"../../constants/filter_ops\"),i=t(\"fast-isnumeric\");function a(t,e){var r,a=Array.isArray(e);function o(t){return i(t)?+t:null}return-1!==n.COMPARISON_OPS2.indexOf(t)?r=o(a?e[0]:e):-1!==n.INTERVAL_OPS.indexOf(t)?r=a?[o(e[0]),o(e[1])]:[o(e),o(e)]:-1!==n.SET_OPS.indexOf(t)&&(r=a?e.map(o):[o(e)]),r}function o(t){return function(e){e=a(t,e);var r=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]);return{start:r,end:n,size:n-r}}}function s(t){return function(e){return{start:e=a(t,e),end:1/0,size:1/0}}}e.exports={\"[]\":o(\"[]\"),\"][\":o(\"][\"),\">\":s(\">\"),\"<\":s(\"<\"),\"=\":s(\"=\")}},{\"../../constants/filter_ops\":669,\"fast-isnumeric\":214}],923:[function(t,e,r){\"use strict\";e.exports=function(t,e,r,n){var i=n(\"contours.start\"),a=n(\"contours.end\"),o=!1===i||!1===a,s=r(\"contours.size\");!(o?e.autocontour=!0:r(\"autocontour\",!1))&&s||r(\"ncontours\")}},{}],924:[function(t,e,r){\"use strict\";var n=t(\"../../lib\");function i(t){return n.extendFlat({},t,{edgepaths:n.extendDeep([],t.edgepaths),paths:n.extendDeep([],t.paths)})}e.exports=function(t,e){var r,a,o,s=function(t){return t.reverse()},l=function(t){return t};switch(e){case\"=\":case\"<\":return t;case\">\":for(1!==t.length&&n.warn(\"Contour data invalid for the specified inequality operation.\"),a=t[0],r=0;r<a.edgepaths.length;r++)a.edgepaths[r]=s(a.edgepaths[r]);for(r=0;r<a.paths.length;r++)a.paths[r]=s(a.paths[r]);return t;case\"][\":var c=s;s=l,l=c;case\"[]\":for(2!==t.length&&n.warn(\"Contour data invalid for the specified inequality range operation.\"),a=i(t[0]),o=i(t[1]),r=0;r<a.edgepaths.length;r++)a.edgepaths[r]=s(a.edgepaths[r]);for(r=0;r<a.paths.length;r++)a.paths[r]=s(a.paths[r]);for(;o.edgepaths.length;)a.edgepaths.push(l(o.edgepaths.shift()));for(;o.paths.length;)a.paths.push(l(o.paths.shift()));return[a]}}},{\"../../lib\":696}],925:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../heatmap/xyz_defaults\"),a=t(\"./constraint_defaults\"),o=t(\"./contours_defaults\"),s=t(\"./style_defaults\"),l=t(\"./attributes\");e.exports=function(t,e,r,c){function u(r,i){return n.coerce(t,e,l,r,i)}if(i(t,e,u,c)){u(\"text\");var f=\"constraint\"===u(\"contours.type\");u(\"connectgaps\",n.isArray1D(e.z)),f?a(t,e,u,c,r):(o(t,e,u,function(r){return n.coerce2(t,e,l,r)}),s(t,e,u,c))}else e.visible=!1}},{\"../../lib\":696,\"../heatmap/xyz_defaults\":960,\"./attributes\":916,\"./constraint_defaults\":921,\"./contours_defaults\":923,\"./style_defaults\":937}],926:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"./constraint_mapping\"),a=t(\"./end_plus\");e.exports=function(t,e,r){for(var o=\"constraint\"===t.type?i[t._operation](t.value):t,s=o.size,l=[],c=a(o),u=r.trace._carpetTrace,f=u?{xaxis:u.aaxis,yaxis:u.baxis,x:r.a,y:r.b}:{xaxis:e.xaxis,yaxis:e.yaxis,x:r.x,y:r.y},h=o.start;h<c;h+=s)if(l.push(n.extendFlat({level:h,crossings:{},starts:[],edgepaths:[],paths:[],z:r.z,smoothing:r.trace.line.smoothing},f)),l.length>1e3){n.warn(\"Too many contours, clipping at 1000\",t);break}return l}},{\"../../lib\":696,\"./constraint_mapping\":922,\"./end_plus\":927}],927:[function(t,e,r){\"use strict\";e.exports=function(t){return t.end+t.size/1e6}},{}],928:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"./constants\");function a(t,e,r,n){return Math.abs(t[0]-e[0])<r&&Math.abs(t[1]-e[1])<n}function o(t,e,r,o,l){var c,u=e.join(\",\"),f=u,h=t.crossings[f],p=function(t,e,r){var n=0,a=0;t>20&&e?208===t||1114===t?n=0===r[0]?1:-1:a=0===r[1]?1:-1:-1!==i.BOTTOMSTART.indexOf(t)?a=1:-1!==i.LEFTSTART.indexOf(t)?n=1:-1!==i.TOPSTART.indexOf(t)?a=-1:n=-1;return[n,a]}(h,r,e),d=[s(t,e,[-p[0],-p[1]])],g=p.join(\",\"),v=t.z.length,m=t.z[0].length;for(c=0;c<1e4;c++){if(h>20?(h=i.CHOOSESADDLE[h][(p[0]||p[1])<0?0:1],t.crossings[f]=i.SADDLEREMAINDER[h]):delete t.crossings[f],!(p=i.NEWDELTA[h])){n.log(\"Found bad marching index:\",h,e,t.level);break}d.push(s(t,e,p)),e[0]+=p[0],e[1]+=p[1],a(d[d.length-1],d[d.length-2],o,l)&&d.pop(),f=e.join(\",\");var y=p[0]&&(e[0]<0||e[0]>m-2)||p[1]&&(e[1]<0||e[1]>v-2);if(f===u&&p.join(\",\")===g||r&&y)break;h=t.crossings[f]}1e4===c&&n.log(\"Infinite loop in contour?\");var x,b,_,w,k,M,A,T,S,E,C,L,z,O,I,P=a(d[0],d[d.length-1],o,l),D=0,R=.2*t.smoothing,B=[],F=0;for(c=1;c<d.length;c++)L=d[c],z=d[c-1],void 0,void 0,O=L[2]-z[2],I=L[3]-z[3],D+=A=Math.sqrt(O*O+I*I),B.push(A);var N=D/B.length*R;function j(t){return d[t%d.length]}for(c=d.length-2;c>=F;c--)if((x=B[c])<N){for(_=0,b=c-1;b>=F&&x+B[b]<N;b--)x+=B[b];if(P&&c===d.length-2)for(_=0;_<b&&x+B[_]<N;_++)x+=B[_];k=c-b+_+1,M=Math.floor((c+b+_+2)/2),w=P||c!==d.length-2?P||-1!==b?k%2?j(M):[(j(M)[0]+j(M+1)[0])/2,(j(M)[1]+j(M+1)[1])/2]:d[0]:d[d.length-1],d.splice(b+1,c-b+1,w),c=b+1,_&&(F=_),P&&(c===d.length-2?d[_]=d[d.length-1]:0===c&&(d[d.length-1]=d[0]))}for(d.splice(0,F),c=0;c<d.length;c++)d[c].length=2;if(!(d.length<2))if(P)d.pop(),t.paths.push(d);else{r||n.log(\"Unclosed interior contour?\",t.level,u,d.join(\"L\"));var V=!1;for(T=0;T<t.edgepaths.length;T++)if(E=t.edgepaths[T],!V&&a(E[0],d[d.length-1],o,l)){d.pop(),V=!0;var U=!1;for(S=0;S<t.edgepaths.length;S++)if(a((C=t.edgepaths[S])[C.length-1],d[0],o,l)){U=!0,d.shift(),t.edgepaths.splice(T,1),S===T?t.paths.push(d.concat(C)):(S>T&&S--,t.edgepaths[S]=C.concat(d,E));break}U||(t.edgepaths[T]=d.concat(E))}for(T=0;T<t.edgepaths.length&&!V;T++)a((E=t.edgepaths[T])[E.length-1],d[0],o,l)&&(d.shift(),t.edgepaths[T]=E.concat(d),V=!0);V||t.edgepaths.push(d)}}function s(t,e,r){var n=e[0]+Math.max(r[0],0),i=e[1]+Math.max(r[1],0),a=t.z[i][n],o=t.xaxis,s=t.yaxis;if(r[1]){var l=(t.level-a)/(t.z[i][n+1]-a);return[o.c2p((1-l)*t.x[n]+l*t.x[n+1],!0),s.c2p(t.y[i],!0),n+l,i]}var c=(t.level-a)/(t.z[i+1][n]-a);return[o.c2p(t.x[n],!0),s.c2p((1-c)*t.y[i]+c*t.y[i+1],!0),n,i+c]}e.exports=function(t,e,r){var i,a,s,l;for(e=e||.01,r=r||.01,a=0;a<t.length;a++){for(s=t[a],l=0;l<s.starts.length;l++)o(s,s.starts[l],\"edge\",e,r);for(i=0;Object.keys(s.crossings).length&&i<1e4;)i++,o(s,Object.keys(s.crossings)[0].split(\",\").map(Number),void 0,e,r);1e4===i&&n.log(\"Infinite loop in contour?\")}}},{\"../../lib\":696,\"./constants\":920}],929:[function(t,e,r){\"use strict\";var n=t(\"../../components/color\"),i=t(\"../heatmap/hover\");e.exports=function(t,e,r,a,o){var s=i(t,e,r,a,o,!0);return s&&s.forEach(function(t){var e=t.trace;\"constraint\"===e.contours.type&&(e.fillcolor&&n.opacity(e.fillcolor)?t.color=n.addOpacity(e.fillcolor,1):e.contours.showlines&&n.opacity(e.line.color)&&(t.color=n.addOpacity(e.line.color,1)))}),s}},{\"../../components/color\":570,\"../heatmap/hover\":952}],930:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.supplyDefaults=t(\"./defaults\"),n.calc=t(\"./calc\"),n.plot=t(\"./plot\").plot,n.style=t(\"./style\"),n.colorbar=t(\"./colorbar\"),n.hoverPoints=t(\"./hover\"),n.moduleType=\"trace\",n.name=\"contour\",n.basePlotModule=t(\"../../plots/cartesian\"),n.categories=[\"cartesian\",\"svg\",\"2dMap\",\"contour\",\"showLegend\"],n.meta={},e.exports=n},{\"../../plots/cartesian\":756,\"./attributes\":916,\"./calc\":917,\"./colorbar\":919,\"./defaults\":925,\"./hover\":929,\"./plot\":934,\"./style\":936}],931:[function(t,e,r){\"use strict\";var n=t(\"../../lib\");e.exports=function(t,e,r,i){if(i||(i={}),t(\"contours.showlabels\")){var a=e.font;n.coerceFont(t,\"contours.labelfont\",{family:a.family,size:a.size,color:r}),t(\"contours.labelformat\")}!1!==i.hasHover&&t(\"zhoverformat\")}},{\"../../lib\":696}],932:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../../components/colorscale\"),a=t(\"./end_plus\");e.exports=function(t){var e=t.contours,r=e.start,o=a(e),s=e.size||1,l=Math.floor((o-r)/s)+1,c=\"lines\"===e.coloring?0:1;isFinite(s)||(s=1,l=1);var u,f,h=t.colorscale,p=h.length,d=new Array(p),g=new Array(p);if(\"heatmap\"===e.coloring){for(t.zauto&&!1===t.autocontour&&(t.zmin=r-s/2,t.zmax=t.zmin+l*s),f=0;f<p;f++)u=h[f],d[f]=u[0]*(t.zmax-t.zmin)+t.zmin,g[f]=u[1];var v=n.extent([t.zmin,t.zmax,e.start,e.start+s*(l-1)]),m=v[t.zmin<t.zmax?0:1],y=v[t.zmin<t.zmax?1:0];m!==t.zmin&&(d.splice(0,0,m),g.splice(0,0,Range[0])),y!==t.zmax&&(d.push(y),g.push(g[g.length-1]))}else for(f=0;f<p;f++)u=h[f],d[f]=(u[0]*(l+c-1)-c/2)*s+r,g[f]=u[1];return i.makeColorScaleFunc({domain:d,range:g},{noNumericCheck:!0})}},{\"../../components/colorscale\":585,\"./end_plus\":927,d3:148}],933:[function(t,e,r){\"use strict\";var n=t(\"./constants\");function i(t,e){var r=(e[0][0]>t?0:1)+(e[0][1]>t?0:2)+(e[1][1]>t?0:4)+(e[1][0]>t?0:8);return 5===r||10===r?t>(e[0][0]+e[0][1]+e[1][0]+e[1][1])/4?5===r?713:1114:5===r?104:208:15===r?0:r}e.exports=function(t){var e,r,a,o,s,l,c,u,f,h=t[0].z,p=h.length,d=h[0].length,g=2===p||2===d;for(r=0;r<p-1;r++)for(o=[],0===r&&(o=o.concat(n.BOTTOMSTART)),r===p-2&&(o=o.concat(n.TOPSTART)),e=0;e<d-1;e++)for(a=o.slice(),0===e&&(a=a.concat(n.LEFTSTART)),e===d-2&&(a=a.concat(n.RIGHTSTART)),s=e+\",\"+r,l=[[h[r][e],h[r][e+1]],[h[r+1][e],h[r+1][e+1]]],f=0;f<t.length;f++)(c=i((u=t[f]).level,l))&&(u.crossings[s]=c,-1!==a.indexOf(c)&&(u.starts.push([e,r]),g&&-1!==a.indexOf(c,a.indexOf(c)+1)&&u.starts.push([e,r])))}},{\"./constants\":920}],934:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../../lib\"),a=t(\"../../components/drawing\"),o=t(\"../../lib/svg_text_utils\"),s=t(\"../../plots/cartesian/axes\"),l=t(\"../../plots/cartesian/set_convert\"),c=t(\"../heatmap/plot\"),u=t(\"./make_crossings\"),f=t(\"./find_all_paths\"),h=t(\"./empty_pathinfo\"),p=t(\"./convert_to_constraints\"),d=t(\"./close_boundaries\"),g=t(\"./constants\"),v=g.LABELOPTIMIZER;function m(t,e){var r,n,o,s,l,c,u,f=function(t,e){var r=t.prefixBoundary;if(void 0===r){var n=Math.min(t.z[0][0],t.z[0][1]);r=!t.edgepaths.length&&n>t.level}return r?\"M\"+e.join(\"L\")+\"Z\":\"\"}(t,e),h=0,p=t.edgepaths.map(function(t,e){return e}),d=!0;function g(t){return Math.abs(t[1]-e[2][1])<.01}function v(t){return Math.abs(t[0]-e[0][0])<.01}function m(t){return Math.abs(t[0]-e[2][0])<.01}for(;p.length;){for(c=a.smoothopen(t.edgepaths[h],t.smoothing),f+=d?c:c.replace(/^M/,\"L\"),p.splice(p.indexOf(h),1),r=t.edgepaths[h][t.edgepaths[h].length-1],s=-1,o=0;o<4;o++){if(!r){i.log(\"Missing end?\",h,t);break}for(u=r,Math.abs(u[1]-e[0][1])<.01&&!m(r)?n=e[1]:v(r)?n=e[0]:g(r)?n=e[3]:m(r)&&(n=e[2]),l=0;l<t.edgepaths.length;l++){var y=t.edgepaths[l][0];Math.abs(r[0]-n[0])<.01?Math.abs(r[0]-y[0])<.01&&(y[1]-r[1])*(n[1]-y[1])>=0&&(n=y,s=l):Math.abs(r[1]-n[1])<.01?Math.abs(r[1]-y[1])<.01&&(y[0]-r[0])*(n[0]-y[0])>=0&&(n=y,s=l):i.log(\"endpt to newendpt is not vert. or horz.\",r,n,y)}if(r=n,s>=0)break;f+=\"L\"+n}if(s===t.edgepaths.length){i.log(\"unclosed perimeter path\");break}h=s,(d=-1===p.indexOf(h))&&(h=p[0],f+=\"Z\")}for(h=0;h<t.paths.length;h++)f+=a.smoothclosed(t.paths[h],t.smoothing);return f}function y(t,e,r,n){var a=e.width/2,o=e.height/2,s=t.x,l=t.y,c=t.theta,u=Math.cos(c)*a,f=Math.sin(c)*a,h=(s>n.center?n.right-s:s-n.left)/(u+Math.abs(Math.sin(c)*o)),p=(l>n.middle?n.bottom-l:l-n.top)/(Math.abs(f)+Math.cos(c)*o);if(h<1||p<1)return 1/0;var d=v.EDGECOST*(1/(h-1)+1/(p-1));d+=v.ANGLECOST*c*c;for(var g=s-u,m=l-f,y=s+u,x=l+f,b=0;b<r.length;b++){var _=r[b],w=Math.cos(_.theta)*_.width/2,k=Math.sin(_.theta)*_.width/2,M=2*i.segmentDistance(g,m,y,x,_.x-w,_.y-k,_.x+w,_.y+k)/(e.height+_.height),A=_.level===e.level,T=A?v.SAMELEVELDISTANCE:1;if(M<=T)return 1/0;d+=v.NEIGHBORCOST*(A?v.SAMELEVELFACTOR:1)/(M-T)}return d}r.plot=function(t,e,o,s){var l=e.xaxis,v=e.yaxis,y=t._fullLayout;i.makeTraceGroups(s,o,\"contour\").each(function(o){var s=n.select(this),x=o[0],b=x.trace,_=x.x,w=x.y,k=b.contours,M=h(k,e,x),A=i.ensureSingle(s,\"g\",\"heatmapcoloring\"),T=[];\"heatmap\"===k.coloring&&(b.zauto&&!1===b.autocontour&&(b._input.zmin=b.zmin=k.start-k.size/2,b._input.zmax=b.zmax=b.zmin+M.length*k.size),T=[o]),c(t,e,T,A),u(M),f(M);var S=l.c2p(_[0],!0),E=l.c2p(_[_.length-1],!0),C=v.c2p(w[0],!0),L=v.c2p(w[w.length-1],!0),z=[[S,L],[E,L],[E,C],[S,C]],O=M;\"constraint\"===k.type&&(O=p(M,k._operation),d(O,k._operation,z,b)),function(t,e,r){var n=i.ensureSingle(t,\"g\",\"contourbg\").selectAll(\"path\").data(\"fill\"===r.coloring?[0]:[]);n.enter().append(\"path\"),n.exit().remove(),n.attr(\"d\",\"M\"+e.join(\"L\")+\"Z\").style(\"stroke\",\"none\")}(s,z,k),function(t,e,r,a){var o=i.ensureSingle(t,\"g\",\"contourfill\").selectAll(\"path\").data(\"fill\"===a.coloring||\"constraint\"===a.type&&\"=\"!==a._operation?e:[]);o.enter().append(\"path\"),o.exit().remove(),o.each(function(t){var e=m(t,r);e?n.select(this).attr(\"d\",e).style(\"stroke\",\"none\"):n.select(this).remove()})}(s,O,z,k),function(t,e,o,s,l,c){var u=i.ensureSingle(t,\"g\",\"contourlines\"),f=!1!==l.showlines,h=l.showlabels,p=f&&h,d=r.createLines(u,f||h,e),v=r.createLineClip(u,p,o._fullLayout._clips,s.trace.uid),m=t.selectAll(\"g.contourlabels\").data(h?[0]:[]);if(m.exit().remove(),m.enter().append(\"g\").classed(\"contourlabels\",!0),h){var y=[c],x=[];i.clearLocationCache();var b=r.labelFormatter(l,s.t.cb,o._fullLayout),_=a.tester.append(\"text\").attr(\"data-notex\",1).call(a.font,l.labelfont),w=e[0].xaxis._length,k=e[0].yaxis._length,M={left:Math.max(c[0][0],0),right:Math.min(c[2][0],w),top:Math.max(c[0][1],0),bottom:Math.min(c[2][1],k)};M.middle=(M.top+M.bottom)/2,M.center=(M.left+M.right)/2;var A=Math.sqrt(w*w+k*k),T=g.LABELDISTANCE*A/Math.max(1,e.length/g.LABELINCREASE);d.each(function(t){var e=r.calcTextOpts(t.level,b,_,o);n.select(this).selectAll(\"path\").each(function(){var t=i.getVisibleSegment(this,M,e.height/2);if(t&&!(t.len<(e.width+e.height)*g.LABELMIN))for(var n=Math.min(Math.ceil(t.len/T),g.LABELMAX),a=0;a<n;a++){var o=r.findBestTextLocation(this,t,e,x,M);if(!o)break;r.addLabelData(o,e,x,y)}})}),_.remove(),r.drawLabels(m,x,o,v,p?y:null)}h&&!f&&d.remove()}(s,M,t,x,k,z),function(t,e,r,n,o){var s=\"clip\"+n.trace.uid,l=r.selectAll(\"#\"+s).data(n.trace.connectgaps?[]:[0]);if(l.enter().append(\"clipPath\").classed(\"contourclip\",!0).attr(\"id\",s),l.exit().remove(),!1===n.trace.connectgaps){var c={level:.9,crossings:{},starts:[],edgepaths:[],paths:[],xaxis:e.xaxis,yaxis:e.yaxis,x:n.x,y:n.y,z:function(t){var e,r,n=t.trace._emptypoints,i=[],a=t.z.length,o=t.z[0].length,s=[];for(e=0;e<o;e++)s.push(1);for(e=0;e<a;e++)i.push(s.slice());for(e=0;e<n.length;e++)r=n[e],i[r[0]][r[1]]=0;return t.zmask=i,i}(n),smoothing:0};u([c]),f([c]);var h=m(c,o),p=i.ensureSingle(l,\"path\",\"\");p.attr(\"d\",h)}else s=null;t.call(a.setClipUrl,s)}(s,e,y._clips,x,z)})},r.createLines=function(t,e,r){var n=r[0].smoothing,i=t.selectAll(\"g.contourlevel\").data(e?r:[]);if(i.exit().remove(),i.enter().append(\"g\").classed(\"contourlevel\",!0),e){var o=i.selectAll(\"path.openline\").data(function(t){return t.pedgepaths||t.edgepaths});o.exit().remove(),o.enter().append(\"path\").classed(\"openline\",!0),o.attr(\"d\",function(t){return a.smoothopen(t,n)}).style(\"stroke-miterlimit\",1).style(\"vector-effect\",\"non-scaling-stroke\");var s=i.selectAll(\"path.closedline\").data(function(t){return t.ppaths||t.paths});s.exit().remove(),s.enter().append(\"path\").classed(\"closedline\",!0),s.attr(\"d\",function(t){return a.smoothclosed(t,n)}).style(\"stroke-miterlimit\",1).style(\"vector-effect\",\"non-scaling-stroke\")}return i},r.createLineClip=function(t,e,r,n){var i=e?\"clipline\"+n:null,o=r.selectAll(\"#\"+i).data(e?[0]:[]);return o.exit().remove(),o.enter().append(\"clipPath\").classed(\"contourlineclip\",!0).attr(\"id\",i),a.setClipUrl(t,i),o},r.labelFormatter=function(t,e,r){if(t.labelformat)return r._d3locale.numberFormat(t.labelformat);var n;if(e)n=e.axis;else{if(n={type:\"linear\",_id:\"ycontour\",showexponent:\"all\",exponentformat:\"B\"},\"constraint\"===t.type){var i=t.value;Array.isArray(i)?n.range=[i[0],i[i.length-1]]:n.range=[i,i]}else n.range=[t.start,t.end],n.nticks=(t.end-t.start)/t.size;n.range[0]===n.range[1]&&(n.range[1]+=n.range[0]||1),n.nticks||(n.nticks=1e3),l(n,r),s.prepTicks(n),n._tmin=null,n._tmax=null}return function(t){return s.tickText(n,t).text}},r.calcTextOpts=function(t,e,r,n){var i=e(t);r.text(i).call(o.convertToTspans,n);var s=a.bBox(r.node(),!0);return{text:i,width:s.width,height:s.height,level:t,dy:(s.top+s.bottom)/2}},r.findBestTextLocation=function(t,e,r,n,a){var o,s,l,c,u,f=r.width;e.isClosed?(s=e.len/v.INITIALSEARCHPOINTS,o=e.min+s/2,l=e.max):(s=(e.len-f)/(v.INITIALSEARCHPOINTS+1),o=e.min+s+f/2,l=e.max-(s+f)/2);for(var h=1/0,p=0;p<v.ITERATIONS;p++){for(var d=o;d<l;d+=s){var g=i.getTextLocation(t,e.total,d,f),m=y(g,r,n,a);m<h&&(h=m,u=g,c=d)}if(h>2*v.MAXCOST)break;p&&(s/=2),l=(o=c-s/2)+1.5*s}if(h<=v.MAXCOST)return u},r.addLabelData=function(t,e,r,n){var i=e.width/2,a=e.height/2,o=t.x,s=t.y,l=t.theta,c=Math.sin(l),u=Math.cos(l),f=i*u,h=a*c,p=i*c,d=-a*u,g=[[o-f-h,s-p-d],[o+f-h,s+p-d],[o+f+h,s+p+d],[o-f+h,s-p+d]];r.push({text:e.text,x:o,y:s,dy:e.dy,theta:l,level:e.level,width:e.width,height:e.height}),n.push(g)},r.drawLabels=function(t,e,r,a,s){var l=t.selectAll(\"text\").data(e,function(t){return t.text+\",\"+t.x+\",\"+t.y+\",\"+t.theta});if(l.exit().remove(),l.enter().append(\"text\").attr({\"data-notex\":1,\"text-anchor\":\"middle\"}).each(function(t){var e=t.x+Math.sin(t.theta)*t.dy,i=t.y-Math.cos(t.theta)*t.dy;n.select(this).text(t.text).attr({x:e,y:i,transform:\"rotate(\"+180*t.theta/Math.PI+\" \"+e+\" \"+i+\")\"}).call(o.convertToTspans,r)}),s){for(var c=\"\",u=0;u<s.length;u++)c+=\"M\"+s[u].join(\"L\")+\"Z\";i.ensureSingle(a,\"path\",\"\").attr(\"d\",c)}}},{\"../../components/drawing\":595,\"../../lib\":696,\"../../lib/svg_text_utils\":720,\"../../plots/cartesian/axes\":744,\"../../plots/cartesian/set_convert\":763,\"../heatmap/plot\":957,\"./close_boundaries\":918,\"./constants\":920,\"./convert_to_constraints\":924,\"./empty_pathinfo\":926,\"./find_all_paths\":928,\"./make_crossings\":933,d3:148}],935:[function(t,e,r){\"use strict\";var n=t(\"../../plots/cartesian/axes\"),i=t(\"../../lib\");function a(t,e,r){var i={type:\"linear\",range:[t,e]};return n.autoTicks(i,(e-t)/(r||15)),i}e.exports=function(t){var e=t.contours;if(t.autocontour){var r=t.zmin,o=t.zmax;void 0!==r&&void 0!==o||(r=i.aggNums(Math.min,null,t._z),o=i.aggNums(Math.max,null,t._z));var s=a(r,o,t.ncontours);e.size=s.dtick,e.start=n.tickFirst(s),s.range.reverse(),e.end=n.tickFirst(s),e.start===r&&(e.start+=e.size),e.end===o&&(e.end-=e.size),e.start>e.end&&(e.start=e.end=(e.start+e.end)/2),t._input.contours||(t._input.contours={}),i.extendFlat(t._input.contours,{start:e.start,end:e.end,size:e.size}),t._input.autocontour=!0}else if(\"constraint\"!==e.type){var l,c=e.start,u=e.end,f=t._input.contours;if(c>u&&(e.start=f.start=u,u=e.end=f.end=c,c=e.start),!(e.size>0))l=c===u?1:a(c,u,t.ncontours).dtick,f.size=e.size=l}}},{\"../../lib\":696,\"../../plots/cartesian/axes\":744}],936:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../../components/drawing\"),a=t(\"../heatmap/style\"),o=t(\"./make_color_map\");e.exports=function(t){var e=n.select(t).selectAll(\"g.contour\");e.style(\"opacity\",function(t){return t[0].trace.opacity}),e.each(function(t){var e=n.select(this),r=t[0].trace,a=r.contours,s=r.line,l=a.size||1,c=a.start,u=\"constraint\"===a.type,f=!u&&\"lines\"===a.coloring,h=!u&&\"fill\"===a.coloring,p=f||h?o(r):null;e.selectAll(\"g.contourlevel\").each(function(t){n.select(this).selectAll(\"path\").call(i.lineGroupStyle,s.width,f?p(t.level):s.color,s.dash)});var d=a.labelfont;if(e.selectAll(\"g.contourlabels text\").each(function(t){i.font(n.select(this),{family:d.family,size:d.size,color:d.color||(f?p(t.level):s.color)})}),u)e.selectAll(\"g.contourfill path\").style(\"fill\",r.fillcolor);else if(h){var g;e.selectAll(\"g.contourfill path\").style(\"fill\",function(t){return void 0===g&&(g=t.level),p(t.level+.5*l)}),void 0===g&&(g=c),e.selectAll(\"g.contourbg path\").style(\"fill\",p(g-.5*l))}}),a(t)}},{\"../../components/drawing\":595,\"../heatmap/style\":958,\"./make_color_map\":932,d3:148}],937:[function(t,e,r){\"use strict\";var n=t(\"../../components/colorscale/defaults\"),i=t(\"./label_defaults\");e.exports=function(t,e,r,a,o){var s,l=r(\"contours.coloring\"),c=\"\";\"fill\"===l&&(s=r(\"contours.showlines\")),!1!==s&&(\"lines\"!==l&&(c=r(\"line.color\",\"#000\")),r(\"line.width\",.5),r(\"line.dash\")),\"none\"!==l&&(!0!==t.showlegend&&(e.showlegend=!1),e._dfltShowLegend=!1,n(t,e,a,r,{prefix:\"\",cLetter:\"z\"})),r(\"line.smoothing\"),i(r,a,c,o)}},{\"../../components/colorscale/defaults\":580,\"./label_defaults\":931}],938:[function(t,e,r){\"use strict\";var n=t(\"../heatmap/attributes\"),i=t(\"../contour/attributes\"),a=i.contours,o=t(\"../scatter/attributes\"),s=t(\"../../components/colorscale/attributes\"),l=t(\"../../components/colorbar/attributes\"),c=t(\"../../lib/extend\").extendFlat,u=o.line;e.exports=c({carpet:{valType:\"string\",editType:\"calc\"},z:n.z,a:n.x,a0:n.x0,da:n.dx,b:n.y,b0:n.y0,db:n.dy,text:n.text,transpose:n.transpose,atype:n.xtype,btype:n.ytype,fillcolor:i.fillcolor,autocontour:i.autocontour,ncontours:i.ncontours,contours:{type:a.type,start:a.start,end:a.end,size:a.size,coloring:{valType:\"enumerated\",values:[\"fill\",\"lines\",\"none\"],dflt:\"fill\",editType:\"calc\"},showlines:a.showlines,showlabels:a.showlabels,labelfont:a.labelfont,labelformat:a.labelformat,operation:a.operation,value:a.value,editType:\"calc\",impliedEdits:{autocontour:!1}},line:{color:c({},u.color,{}),width:u.width,dash:u.dash,smoothing:c({},u.smoothing,{}),editType:\"plot\"},transforms:void 0},s(\"\",{cLetter:\"z\",autoColorDflt:!1}),{colorbar:l})},{\"../../components/colorbar/attributes\":571,\"../../components/colorscale/attributes\":577,\"../../lib/extend\":685,\"../contour/attributes\":916,\"../heatmap/attributes\":945,\"../scatter/attributes\":1043}],939:[function(t,e,r){\"use strict\";var n=t(\"../../components/colorscale/calc\"),i=t(\"../../lib\").isArray1D,a=t(\"../heatmap/convert_column_xyz\"),o=t(\"../heatmap/clean_2d_array\"),s=t(\"../heatmap/max_row_length\"),l=t(\"../heatmap/interp2d\"),c=t(\"../heatmap/find_empties\"),u=t(\"../heatmap/make_bound_array\"),f=t(\"./defaults\"),h=t(\"../carpet/lookup_carpetid\"),p=t(\"../contour/set_contours\");e.exports=function(t,e){var r=e._carpetTrace=h(t,e);if(r&&r.visible&&\"legendonly\"!==r.visible){if(!e.a||!e.b){var d=t.data[r.index],g=t.data[e.index];g.a||(g.a=d.a),g.b||(g.b=d.b),f(g,e,e._defaultColor,t._fullLayout)}var v=function(t,e){var r,f,h,p,d,g,v,m=e._carpetTrace,y=m.aaxis,x=m.baxis;y._minDtick=0,x._minDtick=0,i(e.z)&&a(e,y,x,\"a\",\"b\",[\"z\"]);r=e._a=e._a||e.a,p=e._b=e._b||e.b,r=r?y.makeCalcdata(e,\"_a\"):[],p=p?x.makeCalcdata(e,\"_b\"):[],f=e.a0||0,h=e.da||1,d=e.b0||0,g=e.db||1,v=e._z=o(e._z||e.z,e.transpose),e._emptypoints=c(v),l(v,e._emptypoints);var b=s(v),_=\"scaled\"===e.xtype?\"\":r,w=u(e,_,f,h,b,y),k=\"scaled\"===e.ytype?\"\":p,M=u(e,k,d,g,v.length,x),A={a:w,b:M,z:v};\"levels\"===e.contours.type&&\"none\"!==e.contours.coloring&&n(e,v,\"\",\"z\");return[A]}(0,e);return p(e),v}}},{\"../../components/colorscale/calc\":578,\"../../lib\":696,\"../carpet/lookup_carpetid\":894,\"../contour/set_contours\":935,\"../heatmap/clean_2d_array\":947,\"../heatmap/convert_column_xyz\":949,\"../heatmap/find_empties\":951,\"../heatmap/interp2d\":954,\"../heatmap/make_bound_array\":955,\"../heatmap/max_row_length\":956,\"./defaults\":940}],940:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../heatmap/xyz_defaults\"),a=t(\"./attributes\"),o=t(\"../contour/constraint_defaults\"),s=t(\"../contour/contours_defaults\"),l=t(\"../contour/style_defaults\");e.exports=function(t,e,r,c){function u(r,i){return n.coerce(t,e,a,r,i)}if(u(\"carpet\"),t.a&&t.b){if(!i(t,e,u,c,\"a\",\"b\"))return void(e.visible=!1);u(\"text\"),\"constraint\"===u(\"contours.type\")?o(t,e,u,c,r,{hasHover:!1}):(s(t,e,u,function(r){return n.coerce2(t,e,a,r)}),l(t,e,u,c,{hasHover:!1}))}else e._defaultColor=r,e._length=null}},{\"../../lib\":696,\"../contour/constraint_defaults\":921,\"../contour/contours_defaults\":923,\"../contour/style_defaults\":937,\"../heatmap/xyz_defaults\":960,\"./attributes\":938}],941:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.supplyDefaults=t(\"./defaults\"),n.colorbar=t(\"../contour/colorbar\"),n.calc=t(\"./calc\"),n.plot=t(\"./plot\"),n.style=t(\"../contour/style\"),n.moduleType=\"trace\",n.name=\"contourcarpet\",n.basePlotModule=t(\"../../plots/cartesian\"),n.categories=[\"cartesian\",\"svg\",\"carpet\",\"contour\",\"symbols\",\"showLegend\",\"hasLines\",\"carpetDependent\"],n.meta={},e.exports=n},{\"../../plots/cartesian\":756,\"../contour/colorbar\":919,\"../contour/style\":936,\"./attributes\":938,\"./calc\":939,\"./defaults\":940,\"./plot\":944}],942:[function(t,e,r){\"use strict\";var n=t(\"../../components/drawing\"),i=t(\"../carpet/axis_aligned_line\"),a=t(\"../../lib\");e.exports=function(t,e,r,o,s,l,c,u){var f,h,p,d,g,v,m,y=\"\",x=e.edgepaths.map(function(t,e){return e}),b=!0,_=1e-4*Math.abs(r[0][0]-r[2][0]),w=1e-4*Math.abs(r[0][1]-r[2][1]);function k(t){return Math.abs(t[1]-r[0][1])<w}function M(t){return Math.abs(t[1]-r[2][1])<w}function A(t){return Math.abs(t[0]-r[0][0])<_}function T(t){return Math.abs(t[0]-r[2][0])<_}function S(t,e){var r,n,a,o,f=\"\";for(k(t)&&!T(t)||M(t)&&!A(t)?(o=s.aaxis,a=i(s,l,[t[0],e[0]],.5*(t[1]+e[1]))):(o=s.baxis,a=i(s,l,.5*(t[0]+e[0]),[t[1],e[1]])),r=1;r<a.length;r++)for(f+=o.smoothing?\"C\":\"L\",n=0;n<a[r].length;n++){var h=a[r][n];f+=[c.c2p(h[0]),u.c2p(h[1])]+\" \"}return f}for(f=0,h=null;x.length;){var E=e.edgepaths[f][0];for(h&&(y+=S(h,E)),m=n.smoothopen(e.edgepaths[f].map(o),e.smoothing),y+=b?m:m.replace(/^M/,\"L\"),x.splice(x.indexOf(f),1),h=e.edgepaths[f][e.edgepaths[f].length-1],g=-1,d=0;d<4;d++){if(!h){a.log(\"Missing end?\",f,e);break}for(k(h)&&!T(h)?p=r[1]:A(h)?p=r[0]:M(h)?p=r[3]:T(h)&&(p=r[2]),v=0;v<e.edgepaths.length;v++){var C=e.edgepaths[v][0];Math.abs(h[0]-p[0])<_?Math.abs(h[0]-C[0])<_&&(C[1]-h[1])*(p[1]-C[1])>=0&&(p=C,g=v):Math.abs(h[1]-p[1])<w?Math.abs(h[1]-C[1])<w&&(C[0]-h[0])*(p[0]-C[0])>=0&&(p=C,g=v):a.log(\"endpt to newendpt is not vert. or horz.\",h,p,C)}if(g>=0)break;y+=S(h,p),h=p}if(g===e.edgepaths.length){a.log(\"unclosed perimeter path\");break}f=g,(b=-1===x.indexOf(f))&&(f=x[0],y+=S(h,p)+\"Z\",h=null)}for(f=0;f<e.paths.length;f++)y+=n.smoothclosed(e.paths[f].map(o),e.smoothing);return y}},{\"../../components/drawing\":595,\"../../lib\":696,\"../carpet/axis_aligned_line\":878}],943:[function(t,e,r){\"use strict\";e.exports=function(t,e){var r,n,i,a,o,s,l,c,u;for(r=0;r<t.length;r++){for(o=(a=t[r]).pedgepaths=[],s=a.ppaths=[],n=0;n<a.edgepaths.length;n++){for(u=a.edgepaths[n],l=[],i=0;i<u.length;i++)l[i]=e(u[i]);o.push(l)}for(n=0;n<a.paths.length;n++){for(u=a.paths[n],c=[],i=0;i<u.length;i++)c[i]=e(u[i]);s.push(c)}}}},{}],944:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../carpet/map_1d_array\"),a=t(\"../carpet/makepath\"),o=t(\"../../components/drawing\"),s=t(\"../../lib\"),l=t(\"../contour/make_crossings\"),c=t(\"../contour/find_all_paths\"),u=t(\"../contour/plot\"),f=t(\"../contour/constants\"),h=t(\"../contour/convert_to_constraints\"),p=t(\"./join_all_paths\"),d=t(\"../contour/empty_pathinfo\"),g=t(\"./map_pathinfo\"),v=t(\"../carpet/lookup_carpetid\"),m=t(\"../contour/close_boundaries\");function y(t,e,r){var n=t.getPointAtLength(e),i=t.getPointAtLength(r),a=i.x-n.x,o=i.y-n.y,s=Math.sqrt(a*a+o*o);return[a/s,o/s]}function x(t){var e=Math.sqrt(t[0]*t[0]+t[1]*t[1]);return[t[0]/e,t[1]/e]}function b(t,e){var r=Math.abs(t[0]*e[0]+t[1]*e[1]);return Math.sqrt(1-r*r)/r}e.exports=function(t,e,r,_){var w=e.xaxis,k=e.yaxis;s.makeTraceGroups(_,r,\"contour\").each(function(r){var _=n.select(this),M=r[0],A=M.trace,T=A._carpetTrace=v(t,A),S=t.calcdata[T.index][0];if(T.visible&&\"legendonly\"!==T.visible){var E=M.a,C=M.b,L=A.contours,z=d(L,e,M),O=\"constraint\"===L.type,I=L._operation,P=O?\"=\"===I?\"lines\":\"fill\":L.coloring,D=[[E[0],C[C.length-1]],[E[E.length-1],C[C.length-1]],[E[E.length-1],C[0]],[E[0],C[0]]];l(z);var R=1e-8*(E[E.length-1]-E[0]),B=1e-8*(C[C.length-1]-C[0]);c(z,R,B);var F,N,j,V,U=z;\"constraint\"===L.type&&(U=h(z,I),m(U,I,D,A)),g(z,G);var q=[];for(V=S.clipsegments.length-1;V>=0;V--)F=S.clipsegments[V],N=i([],F.x,w.c2p),j=i([],F.y,k.c2p),N.reverse(),j.reverse(),q.push(a(N,j,F.bicubic));var H=\"M\"+q.join(\"L\")+\"Z\";!function(t,e,r,n,o,l){var c,u,f,h,p=s.ensureSingle(t,\"g\",\"contourbg\").selectAll(\"path\").data(\"fill\"!==l||o?[]:[0]);p.enter().append(\"path\"),p.exit().remove();var d=[];for(h=0;h<e.length;h++)c=e[h],u=i([],c.x,r.c2p),f=i([],c.y,n.c2p),d.push(a(u,f,c.bicubic));p.attr(\"d\",\"M\"+d.join(\"L\")+\"Z\").style(\"stroke\",\"none\")}(_,S.clipsegments,w,k,O,P),function(t,e,r,i,a,o,l,c,u,f,h){var d=s.ensureSingle(e,\"g\",\"contourfill\").selectAll(\"path\").data(\"fill\"===f?a:[]);d.enter().append(\"path\"),d.exit().remove(),d.each(function(e){var a=p(t,e,o,l,c,u,r,i);e.prefixBoundary&&(a=h+a),a?n.select(this).attr(\"d\",a).style(\"stroke\",\"none\"):n.select(this).remove()})}(A,_,w,k,U,D,G,T,S,P,H),function(t,e,r,i,a,l,c){var h=s.ensureSingle(t,\"g\",\"contourlines\"),p=!1!==a.showlines,d=a.showlabels,g=p&&d,v=u.createLines(h,p||d,e),m=u.createLineClip(h,g,r._fullLayout._defs,i.trace.uid),_=t.selectAll(\"g.contourlabels\").data(d?[0]:[]);if(_.exit().remove(),_.enter().append(\"g\").classed(\"contourlabels\",!0),d){var w=l.xaxis,k=l.yaxis,M=w._length,A=k._length,T=[[[0,0],[M,0],[M,A],[0,A]]],S=[];s.clearLocationCache();var E=u.labelFormatter(a,i.t.cb,r._fullLayout),C=o.tester.append(\"text\").attr(\"data-notex\",1).call(o.font,a.labelfont),L={left:0,right:M,center:M/2,top:0,bottom:A,middle:A/2},z=Math.sqrt(M*M+A*A),O=f.LABELDISTANCE*z/Math.max(1,e.length/f.LABELINCREASE);v.each(function(t){var e=u.calcTextOpts(t.level,E,C,r);n.select(this).selectAll(\"path\").each(function(r){var n=s.getVisibleSegment(this,L,e.height/2);if(n&&(function(t,e,r,n,i,a){for(var o,s=0;s<r.pedgepaths.length;s++)e===r.pedgepaths[s]&&(o=r.edgepaths[s]);if(!o)return;var l=i.a[0],c=i.a[i.a.length-1],u=i.b[0],f=i.b[i.b.length-1];function h(t,e){var r,n=0;return(Math.abs(t[0]-l)<.1||Math.abs(t[0]-c)<.1)&&(r=x(i.dxydb_rough(t[0],t[1],.1)),n=Math.max(n,a*b(e,r)/2)),(Math.abs(t[1]-u)<.1||Math.abs(t[1]-f)<.1)&&(r=x(i.dxyda_rough(t[0],t[1],.1)),n=Math.max(n,a*b(e,r)/2)),n}var p=y(t,0,1),d=y(t,n.total,n.total-1),g=h(o[0],p),v=n.total-h(o[o.length-1],d);n.min<g&&(n.min=g);n.max>v&&(n.max=v);n.len=n.max-n.min}(this,r,t,n,c,e.height),!(n.len<(e.width+e.height)*f.LABELMIN)))for(var i=Math.min(Math.ceil(n.len/O),f.LABELMAX),a=0;a<i;a++){var o=u.findBestTextLocation(this,n,e,S,L);if(!o)break;u.addLabelData(o,e,S,T)}})}),C.remove(),u.drawLabels(_,S,r,m,g?T:null)}d&&!p&&v.remove()}(_,z,t,M,L,e,T),o.setClipUrl(_,T._clipPathId)}function G(t){var e=T.ab2xy(t[0],t[1],!0);return[w.c2p(e[0]),k.c2p(e[1])]}})}},{\"../../components/drawing\":595,\"../../lib\":696,\"../carpet/lookup_carpetid\":894,\"../carpet/makepath\":895,\"../carpet/map_1d_array\":896,\"../contour/close_boundaries\":918,\"../contour/constants\":920,\"../contour/convert_to_constraints\":924,\"../contour/empty_pathinfo\":926,\"../contour/find_all_paths\":928,\"../contour/make_crossings\":933,\"../contour/plot\":934,\"./join_all_paths\":942,\"./map_pathinfo\":943,d3:148}],945:[function(t,e,r){\"use strict\";var n=t(\"../scatter/attributes\"),i=t(\"../../components/colorscale/attributes\"),a=t(\"../../components/colorbar/attributes\"),o=t(\"../../lib/extend\").extendFlat;e.exports=o({z:{valType:\"data_array\",editType:\"calc\"},x:o({},n.x,{impliedEdits:{xtype:\"array\"}}),x0:o({},n.x0,{impliedEdits:{xtype:\"scaled\"}}),dx:o({},n.dx,{impliedEdits:{xtype:\"scaled\"}}),y:o({},n.y,{impliedEdits:{ytype:\"array\"}}),y0:o({},n.y0,{impliedEdits:{ytype:\"scaled\"}}),dy:o({},n.dy,{impliedEdits:{ytype:\"scaled\"}}),text:{valType:\"data_array\",editType:\"calc\"},transpose:{valType:\"boolean\",dflt:!1,editType:\"calc\"},xtype:{valType:\"enumerated\",values:[\"array\",\"scaled\"],editType:\"calc+clearAxisTypes\"},ytype:{valType:\"enumerated\",values:[\"array\",\"scaled\"],editType:\"calc+clearAxisTypes\"},zsmooth:{valType:\"enumerated\",values:[\"fast\",\"best\",!1],dflt:!1,editType:\"calc\"},connectgaps:{valType:\"boolean\",dflt:!1,editType:\"calc\"},xgap:{valType:\"number\",dflt:0,min:0,editType:\"plot\"},ygap:{valType:\"number\",dflt:0,min:0,editType:\"plot\"},zhoverformat:{valType:\"string\",dflt:\"\",editType:\"none\"},transforms:void 0},i(\"\",{cLetter:\"z\",autoColorDflt:!1}),{colorbar:a})},{\"../../components/colorbar/attributes\":571,\"../../components/colorscale/attributes\":577,\"../../lib/extend\":685,\"../scatter/attributes\":1043}],946:[function(t,e,r){\"use strict\";var n=t(\"../../registry\"),i=t(\"../../lib\"),a=t(\"../../plots/cartesian/axes\"),o=t(\"../histogram2d/calc\"),s=t(\"../../components/colorscale/calc\"),l=t(\"./convert_column_xyz\"),c=t(\"./max_row_length\"),u=t(\"./clean_2d_array\"),f=t(\"./interp2d\"),h=t(\"./find_empties\"),p=t(\"./make_bound_array\");e.exports=function(t,e){var r,d,g,v,m,y,x,b,_,w=a.getFromId(t,e.xaxis||\"x\"),k=a.getFromId(t,e.yaxis||\"y\"),M=n.traceIs(e,\"contour\"),A=n.traceIs(e,\"histogram\"),T=n.traceIs(e,\"gl2d\"),S=M?\"best\":e.zsmooth;if(w._minDtick=0,k._minDtick=0,A)r=(_=o(t,e)).x,d=_.x0,g=_.dx,v=_.y,m=_.y0,y=_.dy,x=_.z;else{var E=e.z;i.isArray1D(E)?(l(e,w,k,\"x\",\"y\",[\"z\"]),r=e._x,v=e._y,E=e._z):(r=e.x?w.makeCalcdata(e,\"x\"):[],v=e.y?k.makeCalcdata(e,\"y\"):[]),d=e.x0||0,g=e.dx||1,m=e.y0||0,y=e.dy||1,x=u(E,e.transpose),(M||e.connectgaps)&&(e._emptypoints=h(x),f(x,e._emptypoints))}function C(t){S=e._input.zsmooth=e.zsmooth=!1,i.warn('cannot use zsmooth: \"fast\": '+t)}if(\"fast\"===S)if(\"log\"===w.type||\"log\"===k.type)C(\"log axis found\");else if(!A){if(r.length){var L=(r[r.length-1]-r[0])/(r.length-1),z=Math.abs(L/100);for(b=0;b<r.length-1;b++)if(Math.abs(r[b+1]-r[b]-L)>z){C(\"x scale is not linear\");break}}if(v.length&&\"fast\"===S){var O=(v[v.length-1]-v[0])/(v.length-1),I=Math.abs(O/100);for(b=0;b<v.length-1;b++)if(Math.abs(v[b+1]-v[b]-O)>I){C(\"y scale is not linear\");break}}}var P=c(x),D=\"scaled\"===e.xtype?\"\":r,R=p(e,D,d,g,P,w),B=\"scaled\"===e.ytype?\"\":v,F=p(e,B,m,y,x.length,k);T||(e._extremes[w._id]=a.findExtremes(w,R),e._extremes[k._id]=a.findExtremes(k,F));var N={x:R,y:F,z:x,text:e._text||e.text};if(D&&D.length===R.length-1&&(N.xCenter=D),B&&B.length===F.length-1&&(N.yCenter=B),A&&(N.xRanges=_.xRanges,N.yRanges=_.yRanges,N.pts=_.pts),M&&\"constraint\"===e.contours.type||s(e,x,\"\",\"z\"),M&&e.contours&&\"heatmap\"===e.contours.coloring){var j={type:\"contour\"===e.type?\"heatmap\":\"histogram2d\",xcalendar:e.xcalendar,ycalendar:e.ycalendar};N.xfill=p(j,D,d,g,P,w),N.yfill=p(j,B,m,y,x.length,k)}return[N]}},{\"../../components/colorscale/calc\":578,\"../../lib\":696,\"../../plots/cartesian/axes\":744,\"../../registry\":827,\"../histogram2d/calc\":977,\"./clean_2d_array\":947,\"./convert_column_xyz\":949,\"./find_empties\":951,\"./interp2d\":954,\"./make_bound_array\":955,\"./max_row_length\":956}],947:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\");e.exports=function(t,e){var r,i,a,o,s,l;function c(t){if(n(t))return+t}if(e){for(r=0,s=0;s<t.length;s++)r=Math.max(r,t[s].length);if(0===r)return!1;a=function(t){return t.length},o=function(t,e,r){return t[r][e]}}else r=t.length,a=function(t,e){return t[e].length},o=function(t,e,r){return t[e][r]};var u=new Array(r);for(s=0;s<r;s++)for(i=a(t,s),u[s]=new Array(i),l=0;l<i;l++)u[s][l]=c(o(t,s,l));return u}},{\"fast-isnumeric\":214}],948:[function(t,e,r){\"use strict\";e.exports={min:\"zmin\",max:\"zmax\"}},{}],949:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../constants/numerical\").BADNUM;e.exports=function(t,e,r,a,o,s){var l,c,u,f=t._length,h=t[a].slice(0,f),p=t[o].slice(0,f),d=t.text,g=void 0!==d&&n.isArray1D(d),v=t[a+\"calendar\"],m=t[o+\"calendar\"];for(l=0;l<f;l++)h[l]=e.d2c(h[l],0,v),p[l]=r.d2c(p[l],0,m);var y,x,b,_=n.distinctVals(h),w=_.vals,k=n.distinctVals(p),M=k.vals,A=[];for(l=0;l<s.length;l++)A[l]=n.init2dArray(M.length,w.length);for(g&&(b=n.init2dArray(M.length,w.length)),l=0;l<f;l++)if(h[l]!==i&&p[l]!==i){for(y=n.findBin(h[l]+_.minDiff/2,w),x=n.findBin(p[l]+k.minDiff/2,M),c=0;c<s.length;c++)u=t[s[c]],A[c][x][y]=u[l];g&&(b[x][y]=d[l])}for(t[\"_\"+a]=w,t[\"_\"+o]=M,c=0;c<s.length;c++)t[\"_\"+s[c]]=A[c];g&&(t._text=b)}},{\"../../constants/numerical\":673,\"../../lib\":696}],950:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"./xyz_defaults\"),a=t(\"./style_defaults\"),o=t(\"../../components/colorscale/defaults\"),s=t(\"./attributes\");e.exports=function(t,e,r,l){function c(r,i){return n.coerce(t,e,s,r,i)}i(t,e,c,l)?(c(\"text\"),a(t,e,c,l),c(\"connectgaps\",n.isArray1D(e.z)&&!1!==e.zsmooth),o(t,e,l,c,{prefix:\"\",cLetter:\"z\"})):e.visible=!1}},{\"../../components/colorscale/defaults\":580,\"../../lib\":696,\"./attributes\":945,\"./style_defaults\":959,\"./xyz_defaults\":960}],951:[function(t,e,r){\"use strict\";var n=t(\"./max_row_length\");e.exports=function(t){var e,r,i,a,o,s,l,c,u=[],f={},h=[],p=t[0],d=[],g=[0,0,0],v=n(t);for(r=0;r<t.length;r++)for(e=d,d=p,p=t[r+1]||[],i=0;i<v;i++)void 0===d[i]&&((s=(void 0!==d[i-1]?1:0)+(void 0!==d[i+1]?1:0)+(void 0!==e[i]?1:0)+(void 0!==p[i]?1:0))?(0===r&&s++,0===i&&s++,r===t.length-1&&s++,i===d.length-1&&s++,s<4&&(f[[r,i]]=[r,i,s]),u.push([r,i,s])):h.push([r,i]));for(;h.length;){for(l={},c=!1,o=h.length-1;o>=0;o--)(s=((f[[(r=(a=h[o])[0])-1,i=a[1]]]||g)[2]+(f[[r+1,i]]||g)[2]+(f[[r,i-1]]||g)[2]+(f[[r,i+1]]||g)[2])/20)&&(l[a]=[r,i,s],h.splice(o,1),c=!0);if(!c)throw\"findEmpties iterated with no new neighbors\";for(a in l)f[a]=l[a],u.push(l[a])}return u.sort(function(t,e){return e[2]-t[2]})}},{\"./max_row_length\":956}],952:[function(t,e,r){\"use strict\";var n=t(\"../../components/fx\"),i=t(\"../../lib\"),a=t(\"../../plots/cartesian/axes\");e.exports=function(t,e,r,o,s,l){var c,u,f,h,p=t.cd[0],d=p.trace,g=t.xa,v=t.ya,m=p.x,y=p.y,x=p.z,b=p.xCenter,_=p.yCenter,w=p.zmask,k=[d.zmin,d.zmax],M=d.zhoverformat,A=m,T=y;if(!1!==t.index){try{f=Math.round(t.index[1]),h=Math.round(t.index[0])}catch(e){return void i.error(\"Error hovering on heatmap, pointNumber must be [row,col], found:\",t.index)}if(f<0||f>=x[0].length||h<0||h>x.length)return}else{if(n.inbox(e-m[0],e-m[m.length-1],0)>0||n.inbox(r-y[0],r-y[y.length-1],0)>0)return;if(l){var S;for(A=[2*m[0]-m[1]],S=1;S<m.length;S++)A.push((m[S]+m[S-1])/2);for(A.push([2*m[m.length-1]-m[m.length-2]]),T=[2*y[0]-y[1]],S=1;S<y.length;S++)T.push((y[S]+y[S-1])/2);T.push([2*y[y.length-1]-y[y.length-2]])}f=Math.max(0,Math.min(A.length-2,i.findBin(e,A))),h=Math.max(0,Math.min(T.length-2,i.findBin(r,T)))}var E=g.c2p(m[f]),C=g.c2p(m[f+1]),L=v.c2p(y[h]),z=v.c2p(y[h+1]);l?(C=E,c=m[f],z=L,u=y[h]):(c=b?b[f]:(m[f]+m[f+1])/2,u=_?_[h]:(y[h]+y[h+1])/2,d.zsmooth&&(E=C=g.c2p(c),L=z=v.c2p(u)));var O,I,P=x[h][f];w&&!w[h][f]&&(P=void 0),Array.isArray(p.text)&&Array.isArray(p.text[h])&&(O=p.text[h][f]);var D={type:\"linear\",range:k,hoverformat:M,_separators:g._separators,_numFormat:g._numFormat};return I=a.tickText(D,P,\"hover\").text,[i.extendFlat(t,{index:[h,f],distance:t.maxHoverDistance,spikeDistance:t.maxSpikeDistance,x0:E,x1:C,y0:L,y1:z,xLabelVal:c,yLabelVal:u,zLabelVal:P,zLabel:I,text:O})]}},{\"../../components/fx\":612,\"../../lib\":696,\"../../plots/cartesian/axes\":744}],953:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.supplyDefaults=t(\"./defaults\"),n.calc=t(\"./calc\"),n.plot=t(\"./plot\"),n.colorbar=t(\"./colorbar\"),n.style=t(\"./style\"),n.hoverPoints=t(\"./hover\"),n.moduleType=\"trace\",n.name=\"heatmap\",n.basePlotModule=t(\"../../plots/cartesian\"),n.categories=[\"cartesian\",\"svg\",\"2dMap\"],n.meta={},e.exports=n},{\"../../plots/cartesian\":756,\"./attributes\":945,\"./calc\":946,\"./colorbar\":948,\"./defaults\":950,\"./hover\":952,\"./plot\":957,\"./style\":958}],954:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=[[-1,0],[1,0],[0,-1],[0,1]];function a(t){return.5-.25*Math.min(1,.5*t)}function o(t,e,r){var n,a,o,s,l,c,u,f,h,p,d,g,v,m=0;for(s=0;s<e.length;s++){for(a=(n=e[s])[0],o=n[1],d=t[a][o],p=0,h=0,l=0;l<4;l++)(u=t[a+(c=i[l])[0]])&&void 0!==(f=u[o+c[1]])&&(0===p?g=v=f:(g=Math.min(g,f),v=Math.max(v,f)),h++,p+=f);if(0===h)throw\"iterateInterp2d order is wrong: no defined neighbors\";t[a][o]=p/h,void 0===d?h<4&&(m=1):(t[a][o]=(1+r)*t[a][o]-r*d,v>g&&(m=Math.max(m,Math.abs(t[a][o]-d)/(v-g))))}return m}e.exports=function(t,e){var r,i=1;for(o(t,e),r=0;r<e.length&&!(e[r][2]<4);r++);for(e=e.slice(r),r=0;r<100&&i>.01;r++)i=o(t,e,a(i));return i>.01&&n.log(\"interp2d didn't converge quickly\",i),t}},{\"../../lib\":696}],955:[function(t,e,r){\"use strict\";var n=t(\"../../registry\"),i=t(\"../../lib\").isArrayOrTypedArray;e.exports=function(t,e,r,a,o,s){var l,c,u,f=[],h=n.traceIs(t,\"contour\"),p=n.traceIs(t,\"histogram\"),d=n.traceIs(t,\"gl2d\");if(i(e)&&e.length>1&&!p&&\"category\"!==s.type){var g=e.length;if(!(g<=o))return h?e.slice(0,o):e.slice(0,o+1);if(h||d)f=e.slice(0,o);else if(1===o)f=[e[0]-.5,e[0]+.5];else{for(f=[1.5*e[0]-.5*e[1]],u=1;u<g;u++)f.push(.5*(e[u-1]+e[u]));f.push(1.5*e[g-1]-.5*e[g-2])}if(g<o){var v=f[f.length-1],m=v-f[f.length-2];for(u=g;u<o;u++)v+=m,f.push(v)}}else{c=a||1;var y=t[s._id.charAt(0)+\"calendar\"];for(l=p||\"category\"===s.type?s.r2c(r,0,y)||0:i(e)&&1===e.length?e[0]:void 0===r?0:s.d2c(r,0,y),u=h||d?0:-.5;u<o;u++)f.push(l+c*u)}return f}},{\"../../lib\":696,\"../../registry\":827}],956:[function(t,e,r){\"use strict\";e.exports=function(t){for(var e=0,r=0;r<t.length;r++)e=Math.max(e,t[r].length);return e}},{}],957:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"tinycolor2\"),a=t(\"../../registry\"),o=t(\"../../lib\"),s=t(\"../../components/colorscale\"),l=t(\"../../constants/xmlns_namespaces\"),c=t(\"./max_row_length\");function u(t,e){var r=e.length-2,n=o.constrain(o.findBin(t,e),0,r),i=e[n],a=e[n+1],s=o.constrain(n+(t-i)/(a-i)-.5,0,r),l=Math.round(s),c=Math.abs(s-l);return s&&s!==r&&c?{bin0:l,frac:c,bin1:Math.round(l+c/(s-l))}:{bin0:l,bin1:l,frac:0}}function f(t,e){var r=e.length-1,n=o.constrain(o.findBin(t,e),0,r),i=e[n],a=(t-i)/(e[n+1]-i)||0;return a<=0?{bin0:n,bin1:n,frac:0}:a<.5?{bin0:n,bin1:n+1,frac:a}:{bin0:n+1,bin1:n,frac:1-a}}function h(t,e,r){t[e]=r[0],t[e+1]=r[1],t[e+2]=r[2],t[e+3]=Math.round(255*r[3])}e.exports=function(t,e,r,p){var d=e.xaxis,g=e.yaxis;o.makeTraceGroups(p,r,\"hm\").each(function(e){var r,p,v,m,y,x,b=n.select(this),_=e[0],w=_.trace,k=_.z,M=_.x,A=_.y,T=_.xCenter,S=_.yCenter,E=a.traceIs(w,\"contour\"),C=E?\"best\":w.zsmooth,L=k.length,z=c(k),O=!1,I=!1;for(x=0;void 0===r&&x<M.length-1;)r=d.c2p(M[x]),x++;for(x=M.length-1;void 0===p&&x>0;)p=d.c2p(M[x]),x--;for(p<r&&(v=p,p=r,r=v,O=!0),x=0;void 0===m&&x<A.length-1;)m=g.c2p(A[x]),x++;for(x=A.length-1;void 0===y&&x>0;)y=g.c2p(A[x]),x--;if(y<m&&(v=m,m=y,y=v,I=!0),E&&(T=M,S=A,M=_.xfill,A=_.yfill),\"fast\"!==C){var P=\"best\"===C?0:.5;r=Math.max(-P*d._length,r),p=Math.min((1+P)*d._length,p),m=Math.max(-P*g._length,m),y=Math.min((1+P)*g._length,y)}var D=Math.round(p-r),R=Math.round(y-m);if(D<=0||R<=0){b.selectAll(\"image\").data([]).exit().remove()}else{var B,F;\"fast\"===C?(B=z,F=L):(B=D,F=R);var N=document.createElement(\"canvas\");N.width=B,N.height=F;var j,V,U=N.getContext(\"2d\"),q=s.makeColorScaleFunc(s.extractScale(w.colorscale,w.zmin,w.zmax),{noNumericCheck:!0,returnArray:!0});\"fast\"===C?(j=O?function(t){return z-1-t}:o.identity,V=I?function(t){return L-1-t}:o.identity):(j=function(t){return o.constrain(Math.round(d.c2p(M[t])-r),0,D)},V=function(t){return o.constrain(Math.round(g.c2p(A[t])-m),0,R)});var H,G,W,Y,X,Z=V(0),$=[Z,Z],J=O?0:1,K=I?0:1,Q=0,tt=0,et=0,rt=0;if(C){var nt,it=0;try{nt=new Uint8Array(D*R*4)}catch(t){nt=new Array(D*R*4)}if(\"best\"===C){var at,ot,st,lt=T||M,ct=S||A,ut=new Array(lt.length),ft=new Array(ct.length),ht=new Array(D),pt=T?f:u,dt=S?f:u;for(x=0;x<lt.length;x++)ut[x]=Math.round(d.c2p(lt[x])-r);for(x=0;x<ct.length;x++)ft[x]=Math.round(g.c2p(ct[x])-m);for(x=0;x<D;x++)ht[x]=pt(x,ut);for(G=0;G<R;G++)for(ot=k[(at=dt(G,ft)).bin0],st=k[at.bin1],x=0;x<D;x++,it+=4)h(nt,it,X=At(ot,st,ht[x],at))}else for(G=0;G<L;G++)for(Y=k[G],$=V(G),x=0;x<D;x++)X=Mt(Y[x],1),h(nt,it=4*($*D+j(x)),X);var gt=U.createImageData(D,R);try{gt.data.set(nt)}catch(t){var vt=gt.data,mt=vt.length;for(G=0;G<mt;G++)vt[G]=nt[G]}U.putImageData(gt,0,0)}else{var yt=w.xgap,xt=w.ygap,bt=Math.floor(yt/2),_t=Math.floor(xt/2);for(G=0;G<L;G++)if(Y=k[G],$.reverse(),$[K]=V(G+1),$[0]!==$[1]&&void 0!==$[0]&&void 0!==$[1])for(H=[W=j(0),W],x=0;x<z;x++)H.reverse(),H[J]=j(x+1),H[0]!==H[1]&&void 0!==H[0]&&void 0!==H[1]&&(X=Mt(Y[x],(H[1]-H[0])*($[1]-$[0])),U.fillStyle=\"rgba(\"+X.join(\",\")+\")\",U.fillRect(H[0]+bt,$[0]+_t,H[1]-H[0]-yt,$[1]-$[0]-xt))}tt=Math.round(tt/Q),et=Math.round(et/Q),rt=Math.round(rt/Q);var wt=i(\"rgb(\"+tt+\",\"+et+\",\"+rt+\")\");t._hmpixcount=(t._hmpixcount||0)+Q,t._hmlumcount=(t._hmlumcount||0)+Q*wt.getLuminance();var kt=b.selectAll(\"image\").data(e);kt.enter().append(\"svg:image\").attr({xmlns:l.svg,preserveAspectRatio:\"none\"}),kt.attr({height:R,width:D,x:r,y:m,\"xlink:href\":N.toDataURL(\"image/png\")})}function Mt(t,e){if(void 0!==t){var r=q(t);return r[0]=Math.round(r[0]),r[1]=Math.round(r[1]),r[2]=Math.round(r[2]),Q+=e,tt+=r[0]*e,et+=r[1]*e,rt+=r[2]*e,r}return[0,0,0,0]}function At(t,e,r,n){var i=t[r.bin0];if(void 0===i)return Mt(void 0,1);var a,o=t[r.bin1],s=e[r.bin0],l=e[r.bin1],c=o-i||0,u=s-i||0;return a=void 0===o?void 0===l?0:void 0===s?2*(l-i):2*(2*l-s-i)/3:void 0===l?void 0===s?0:2*(2*i-o-s)/3:void 0===s?2*(2*l-o-i)/3:l+i-o-s,Mt(i+r.frac*c+n.frac*(u+r.frac*a))}})}},{\"../../components/colorscale\":585,\"../../constants/xmlns_namespaces\":674,\"../../lib\":696,\"../../registry\":827,\"./max_row_length\":956,d3:148,tinycolor2:514}],958:[function(t,e,r){\"use strict\";var n=t(\"d3\");e.exports=function(t){n.select(t).selectAll(\".hm image\").style(\"opacity\",function(t){return t.trace.opacity})}},{d3:148}],959:[function(t,e,r){\"use strict\";e.exports=function(t,e,r){!1===r(\"zsmooth\")&&(r(\"xgap\"),r(\"ygap\")),r(\"zhoverformat\")}},{}],960:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../../lib\"),a=t(\"../../registry\");function o(t,e){var r=e(t);return\"scaled\"===(r?e(t+\"type\",\"array\"):\"scaled\")&&(e(t+\"0\"),e(\"d\"+t)),r}e.exports=function(t,e,r,s,l,c){var u,f,h=r(\"z\");if(l=l||\"x\",c=c||\"y\",void 0===h||!h.length)return 0;if(i.isArray1D(t.z)){if(u=r(l),f=r(c),!(u&&u.length&&f&&f.length))return 0;e._length=Math.min(u.length,f.length,h.length)}else{if(u=o(l,r),f=o(c,r),!function(t){for(var e,r=!0,a=!1,o=!1,s=0;s<t.length;s++){if(e=t[s],!i.isArrayOrTypedArray(e)){r=!1;break}e.length>0&&(a=!0);for(var l=0;l<e.length;l++)if(n(e[l])){o=!0;break}}return r&&a&&o}(h))return 0;r(\"transpose\"),e._length=null}return a.getComponentMethod(\"calendars\",\"handleTraceDefaults\")(t,e,[l,c],s),!0}},{\"../../lib\":696,\"../../registry\":827,\"fast-isnumeric\":214}],961:[function(t,e,r){\"use strict\";for(var n=t(\"../heatmap/attributes\"),i=t(\"../../components/colorscale/attributes\"),a=t(\"../../components/colorbar/attributes\"),o=t(\"../../lib/extend\").extendFlat,s=t(\"../../plot_api/edit_types\").overrideAll,l=[\"z\",\"x\",\"x0\",\"dx\",\"y\",\"y0\",\"dy\",\"text\",\"transpose\",\"xtype\",\"ytype\"],c={},u=0;u<l.length;u++){var f=l[u];c[f]=n[f]}o(c,i(\"\",{cLetter:\"z\",autoColorDflt:!1}),{colorbar:a}),e.exports=s(c,\"calc\",\"nested\")},{\"../../components/colorbar/attributes\":571,\"../../components/colorscale/attributes\":577,\"../../lib/extend\":685,\"../../plot_api/edit_types\":727,\"../heatmap/attributes\":945}],962:[function(t,e,r){\"use strict\";var n=t(\"gl-heatmap2d\"),i=t(\"../../plots/cartesian/axes\"),a=t(\"../../lib/str2rgbarray\");function o(t,e){this.scene=t,this.uid=e,this.type=\"heatmapgl\",this.name=\"\",this.hoverinfo=\"all\",this.xData=[],this.yData=[],this.zData=[],this.textLabels=[],this.idToIndex=[],this.bounds=[0,0,0,0],this.options={z:[],x:[],y:[],shape:[0,0],colorLevels:[0],colorValues:[0,0,0,1]},this.heatmap=n(t.glplot,this.options),this.heatmap._trace=this}var s=o.prototype;s.handlePick=function(t){var e=this.options,r=e.shape,n=t.pointId,i=n%r[0],a=Math.floor(n/r[0]),o=n;return{trace:this,dataCoord:t.dataCoord,traceCoord:[e.x[i],e.y[a],e.z[o]],textLabel:this.textLabels[n],name:this.name,pointIndex:[a,i],hoverinfo:this.hoverinfo}},s.update=function(t,e){var r=e[0];this.index=t.index,this.name=t.name,this.hoverinfo=t.hoverinfo;var n=r.z;this.options.z=[].concat.apply([],n);var o=n[0].length,s=n.length;this.options.shape=[o,s],this.options.x=r.x,this.options.y=r.y;var l=function(t){for(var e=t.colorscale,r=t.zmin,n=t.zmax,i=e.length,o=new Array(i),s=new Array(4*i),l=0;l<i;l++){var c=e[l],u=a(c[1]);o[l]=r+c[0]*(n-r);for(var f=0;f<4;f++)s[4*l+f]=u[f]}return{colorLevels:o,colorValues:s}}(t);this.options.colorLevels=l.colorLevels,this.options.colorValues=l.colorValues,this.textLabels=[].concat.apply([],t.text),this.heatmap.update(this.options);var c=this.scene.xaxis,u=this.scene.yaxis;t._extremes[c._id]=i.findExtremes(c,r.x),t._extremes[u._id]=i.findExtremes(u,r.y)},s.dispose=function(){this.heatmap.dispose()},e.exports=function(t,e,r){var n=new o(t,e.uid);return n.update(e,r),n}},{\"../../lib/str2rgbarray\":719,\"../../plots/cartesian/axes\":744,\"gl-heatmap2d\":241}],963:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.supplyDefaults=t(\"../heatmap/defaults\"),n.colorbar=t(\"../heatmap/colorbar\"),n.calc=t(\"../heatmap/calc\"),n.plot=t(\"./convert\"),n.moduleType=\"trace\",n.name=\"heatmapgl\",n.basePlotModule=t(\"../../plots/gl2d\"),n.categories=[\"gl\",\"gl2d\",\"2dMap\"],n.meta={},e.exports=n},{\"../../plots/gl2d\":784,\"../heatmap/calc\":946,\"../heatmap/colorbar\":948,\"../heatmap/defaults\":950,\"./attributes\":961,\"./convert\":962}],964:[function(t,e,r){\"use strict\";var n=t(\"../bar/attributes\"),i=t(\"./bin_attributes\");e.exports={x:{valType:\"data_array\",editType:\"calc+clearAxisTypes\"},y:{valType:\"data_array\",editType:\"calc+clearAxisTypes\"},text:n.text,orientation:n.orientation,histfunc:{valType:\"enumerated\",values:[\"count\",\"sum\",\"avg\",\"min\",\"max\"],dflt:\"count\",editType:\"calc\"},histnorm:{valType:\"enumerated\",values:[\"\",\"percent\",\"probability\",\"density\",\"probability density\"],dflt:\"\",editType:\"calc\"},cumulative:{enabled:{valType:\"boolean\",dflt:!1,editType:\"calc\"},direction:{valType:\"enumerated\",values:[\"increasing\",\"decreasing\"],dflt:\"increasing\",editType:\"calc\"},currentbin:{valType:\"enumerated\",values:[\"include\",\"exclude\",\"half\"],dflt:\"include\",editType:\"calc\"},editType:\"calc\"},nbinsx:{valType:\"integer\",min:0,dflt:0,editType:\"calc\"},xbins:i(\"x\",!0),nbinsy:{valType:\"integer\",min:0,dflt:0,editType:\"calc\"},ybins:i(\"y\",!0),autobinx:{valType:\"boolean\",dflt:null,editType:\"calc\"},autobiny:{valType:\"boolean\",dflt:null,editType:\"calc\",impliedEdits:{\"ybins.start\":void 0,\"ybins.end\":void 0,\"ybins.size\":void 0}},marker:n.marker,selected:n.selected,unselected:n.unselected,_deprecated:{bardir:n._deprecated.bardir}}},{\"../bar/attributes\":837,\"./bin_attributes\":966}],965:[function(t,e,r){\"use strict\";e.exports=function(t,e){for(var r=t.length,n=0,i=0;i<r;i++)e[i]?(t[i]/=e[i],n+=t[i]):t[i]=null;return n}},{}],966:[function(t,e,r){\"use strict\";e.exports=function(t,e){return{start:{valType:\"any\",editType:\"calc\"},end:{valType:\"any\",editType:\"calc\"},size:{valType:\"any\",editType:\"calc\"},editType:\"calc\"}}},{}],967:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\");e.exports={count:function(t,e,r){return r[t]++,1},sum:function(t,e,r,i){var a=i[e];return n(a)?(a=Number(a),r[t]+=a,a):0},avg:function(t,e,r,i,a){var o=i[e];return n(o)&&(o=Number(o),r[t]+=o,a[t]++),0},min:function(t,e,r,i){var a=i[e];if(n(a)){if(a=Number(a),!n(r[t]))return r[t]=a,a;if(r[t]>a){var o=a-r[t];return r[t]=a,o}}return 0},max:function(t,e,r,i){var a=i[e];if(n(a)){if(a=Number(a),!n(r[t]))return r[t]=a,a;if(r[t]<a){var o=a-r[t];return r[t]=a,o}}return 0}}},{\"fast-isnumeric\":214}],968:[function(t,e,r){\"use strict\";var n=t(\"../../constants/numerical\"),i=n.ONEAVGYEAR,a=n.ONEAVGMONTH,o=n.ONEDAY,s=n.ONEHOUR,l=n.ONEMIN,c=n.ONESEC,u=t(\"../../plots/cartesian/axes\").tickIncrement;function f(t,e,r,n){if(t*e<=0)return 1/0;for(var i=Math.abs(e-t),a=\"date\"===r.type,o=h(i,a),s=0;s<10;s++){var l=h(80*o,a);if(o===l)break;if(!p(l,t,e,a,r,n))break;o=l}return o}function h(t,e){return e&&t>c?t>o?t>1.1*i?i:t>1.1*a?a:o:t>s?s:t>l?l:c:Math.pow(10,Math.floor(Math.log(t)/Math.LN10))}function p(t,e,r,n,a,s){if(n&&t>o){var l=d(e,a,s),c=d(r,a,s),u=t===i?0:1;return l[u]!==c[u]}return Math.floor(r/t)-Math.floor(e/t)>.1}function d(t,e,r){var n=e.c2d(t,i,r).split(\"-\");return\"\"===n[0]&&(n.unshift(),n[0]=\"-\"+n[0]),n}e.exports=function(t,e,r,n,a){var s,l,c=-1.1*e,h=-.1*e,p=t-h,d=r[0],g=r[1],v=Math.min(f(d+h,d+p,n,a),f(g+h,g+p,n,a)),m=Math.min(f(d+c,d+h,n,a),f(g+c,g+h,n,a));if(v>m&&m<Math.abs(g-d)/4e3?(s=v,l=!1):(s=Math.min(v,m),l=!0),\"date\"===n.type&&s>o){var y=s===i?1:6,x=s===i?\"M12\":\"M1\";return function(e,r){var o=n.c2d(e,i,a),s=o.indexOf(\"-\",y);s>0&&(o=o.substr(0,s));var c=n.d2c(o,0,a);if(c<e){var f=u(c,x,!1,a);(c+f)/2<e+t&&(c=f)}return r&&l?u(c,x,!0,a):c}}return function(e,r){var n=s*Math.round(e/s);return n+s/10<e&&n+.9*s<e+t&&(n+=s),r&&l&&(n-=s),n}}},{\"../../constants/numerical\":673,\"../../plots/cartesian/axes\":744}],969:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../../lib\"),a=t(\"../../plots/cartesian/axes\"),o=t(\"../bar/arrays_to_calcdata\"),s=t(\"./bin_functions\"),l=t(\"./norm_functions\"),c=t(\"./average\"),u=t(\"./bin_label_vals\");function f(t,e,r,o,s){var l,c,u,h,p,d,g,v=o+\"bins\",m=t._fullLayout,y=\"overlay\"===m.barmode,x=\"date\"===r.type?function(t){return t||0===t?i.cleanDate(t,null,r.calendar):null}:function(t){return n(t)?Number(t):null};function b(t,e,r){e[t+\"Found\"]?(e[t]=x(e[t]),null===e[t]&&(e[t]=r[t])):(d[t]=e[t]=r[t],i.nestedProperty(c[0],v+\".\"+t).set(r[t]))}var _=m._histogramBinOpts[e._groupName];if(e._autoBinFinished)delete e._autoBinFinished;else{c=_.traces;var w=_.sizeFound,k=[];d=c[0]._autoBin={};var M=!0;for(l=0;l<c.length;l++)p=(u=c[l])._pos0=r.makeCalcdata(u,o),k=i.concat(k,p),delete u._autoBinFinished,!0===e.visible&&(M?M=!1:(delete u._autoBin,u._autoBinFinished=1));h=c[0][o+\"calendar\"];var A=a.autoBin(k,r,_.nbins,!1,h,w&&_.size);if(y&&0===A._dataSpan&&\"category\"!==r.type){if(s)return[A,p,!0];A=function(t,e,r,n,a){var o,s,l=function(t,e){for(var r=e.xaxis,n=e.yaxis,i=e.orientation,a=[],o=t._fullData,s=0;s<o.length;s++){var l=o[s];\"histogram\"===l.type&&!0===l.visible&&l.orientation===i&&l.xaxis===r&&l.yaxis===n&&a.push(l)}return a}(t,e),c=!1,u=1/0,h=[e];for(o=0;o<l.length;o++)if((s=l[o])===e)c=!0;else if(c){var p=f(t,s,r,n,!0),d=p[0],g=p[2];s._autoBinFinished=1,s._pos0=p[1],g?h.push(s):u=Math.min(u,d.size)}else u=Math.min(u,s[a].size);var v=new Array(h.length);for(o=0;o<h.length;o++)for(var m=h[o]._pos0,y=0;y<m.length;y++)if(void 0!==m[y]){v[o]=m[y];break}isFinite(u)||(u=i.distinctVals(v).minDiff);for(o=0;o<h.length;o++){var x=(s=h[o])[n+\"calendar\"];s._input[a]=s[a]={start:r.c2r(v[o]-u/2,0,x),end:r.c2r(v[o]+u/2,0,x),size:u}}return e[a]}(t,e,r,o,v)}(g=u.cumulative).enabled&&\"include\"!==g.currentbin&&(\"decreasing\"===g.direction?A.start=r.c2r(a.tickIncrement(r.r2c(A.start,0,h),A.size,!0,h)):A.end=r.c2r(a.tickIncrement(r.r2c(A.end,0,h),A.size,!1,h))),_.size=A.size,w||(d.size=A.size,i.nestedProperty(c[0],v+\".size\").set(A.size)),b(\"start\",_,A),b(\"end\",_,A)}p=e._pos0,delete e._pos0;var T=e._input[v]||{},S=i.extendFlat({},_),E=_.start,C=r.r2l(T.start),L=void 0!==C;if((_.startFound||L)&&C!==r.r2l(E)){var z=L?C:i.aggNums(Math.min,null,p),O={type:\"category\"===r.type?\"linear\":r.type,r2l:r.r2l,dtick:_.size,tick0:E,calendar:h,range:[z,a.tickIncrement(z,_.size,!1,h)].map(r.l2r)},I=a.tickFirst(O);I>r.r2l(z)&&(I=a.tickIncrement(I,_.size,!0,h)),S.start=r.l2r(I),L||i.nestedProperty(e,v+\".start\").set(S.start)}var P=_.end,D=r.r2l(T.end),R=void 0!==D;if((_.endFound||R)&&D!==r.r2l(P)){var B=R?D:i.aggNums(Math.max,null,p);S.end=r.l2r(B),R||i.nestedProperty(e,v+\".start\").set(S.end)}var F=\"autobin\"+o;return!1===e._input[F]&&(e._input[v]=i.extendFlat({},e[v]||{}),delete e._input[F],delete e[F]),[S,p]}e.exports=function(t,e){if(!0===e.visible){var r,h,p,d,g=[],v=[],m=a.getFromId(t,\"h\"===e.orientation?e.yaxis||\"y\":e.xaxis||\"x\"),y=\"h\"===e.orientation?\"y\":\"x\",x={x:\"y\",y:\"x\"}[y],b=e[y+\"calendar\"],_=e.cumulative,w=f(t,e,m,y),k=w[0],M=w[1],A=\"string\"==typeof k.size,T=[],S=A?T:k,E=[],C=[],L=[],z=0,O=e.histnorm,I=e.histfunc,P=-1!==O.indexOf(\"density\");_.enabled&&P&&(O=O.replace(/ ?density$/,\"\"),P=!1);var D,R=\"max\"===I||\"min\"===I?null:0,B=s.count,F=l[O],N=!1,j=function(t){return m.r2c(t,0,b)};for(i.isArrayOrTypedArray(e[x])&&\"count\"!==I&&(D=e[x],N=\"avg\"===I,B=s[I]),r=j(k.start),p=j(k.end)+(r-a.tickIncrement(r,k.size,!1,b))/1e6;r<p&&g.length<1e6&&(h=a.tickIncrement(r,k.size,!1,b),g.push((r+h)/2),v.push(R),L.push([]),T.push(r),P&&E.push(1/(h-r)),N&&C.push(0),!(h<=r));)r=h;T.push(r),A||\"date\"!==m.type||(S={start:j(S.start),end:j(S.end),size:S.size});var V,U=v.length,q=!0,H=1/0,G=1/0,W={};for(r=0;r<M.length;r++){var Y=M[r];(d=i.findBin(Y,S))>=0&&d<U&&(z+=B(d,r,v,D,C),q&&L[d].length&&Y!==M[L[d][0]]&&(q=!1),L[d].push(r),W[r]=d,H=Math.min(H,Y-T[d]),G=Math.min(G,T[d+1]-Y))}q||(V=u(H,G,T,m,b)),N&&(z=c(v,C)),F&&F(v,z,E),_.enabled&&function(t,e,r){var n,i,a;function o(e){a=t[e],t[e]/=2}function s(e){i=t[e],t[e]=a+i/2,a+=i}if(\"half\"===r)if(\"increasing\"===e)for(o(0),n=1;n<t.length;n++)s(n);else for(o(t.length-1),n=t.length-2;n>=0;n--)s(n);else if(\"increasing\"===e){for(n=1;n<t.length;n++)t[n]+=t[n-1];\"exclude\"===r&&(t.unshift(0),t.pop())}else{for(n=t.length-2;n>=0;n--)t[n]+=t[n+1];\"exclude\"===r&&(t.push(0),t.shift())}}(v,_.direction,_.currentbin);var X=Math.min(g.length,v.length),Z=[],$=0,J=X-1;for(r=0;r<X;r++)if(v[r]){$=r;break}for(r=X-1;r>=$;r--)if(v[r]){J=r;break}for(r=$;r<=J;r++)if(n(g[r])&&n(v[r])){var K={p:g[r],s:v[r],b:0};_.enabled||(K.pts=L[r],q?K.ph0=K.ph1=L[r].length?M[L[r][0]]:g[r]:(K.ph0=V(T[r]),K.ph1=V(T[r+1],!0))),Z.push(K)}return 1===Z.length&&(Z[0].width1=a.tickIncrement(Z[0].p,k.size,!1,b)-Z[0].p),o(Z,e),i.isArrayOrTypedArray(e.selectedpoints)&&i.tagSelected(Z,e,W),Z}}},{\"../../lib\":696,\"../../plots/cartesian/axes\":744,\"../bar/arrays_to_calcdata\":836,\"./average\":965,\"./bin_functions\":967,\"./bin_label_vals\":968,\"./norm_functions\":975,\"fast-isnumeric\":214}],970:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=n.nestedProperty,a=t(\"./attributes\"),o={x:[{aStr:\"xbins.start\",name:\"start\"},{aStr:\"xbins.end\",name:\"end\"},{aStr:\"xbins.size\",name:\"size\"},{aStr:\"nbinsx\",name:\"nbins\"}],y:[{aStr:\"ybins.start\",name:\"start\"},{aStr:\"ybins.end\",name:\"end\"},{aStr:\"ybins.size\",name:\"size\"},{aStr:\"nbinsy\",name:\"nbins\"}]};e.exports=function(t,e){var r,s,l,c,u,f,h,p=e._histogramBinOpts={},d=\"overlay\"===e.barmode;function g(t){return n.coerce(l._input,l,a,t)}for(r=0;r<t.length;r++)\"histogram\"===(l=t[r]).type&&(delete l._autoBinFinished,u=\"v\"===l.orientation?\"x\":\"y\",f=d?l.uid:l.xaxis+l.yaxis+u,l._groupName=f,(h=p[f])?h.traces.push(l):h=p[f]={traces:[l],direction:u});for(f in p){u=(h=p[f]).direction;var v=o[u];for(s=0;s<v.length;s++){var m=v[s],y=m.name;if(\"nbins\"!==y||!h.sizeFound){var x=m.aStr;for(r=0;r<h.traces.length;r++){if(c=(l=h.traces[r])._input,void 0!==i(c,x).get()){h[y]=g(x),h[y+\"Found\"]=!0;break}var b=l._autoBin;b&&b[y]&&i(l,x).set(b[y])}if(\"start\"===y||\"end\"===y)for(;r<h.traces.length;r++)g(x,((l=h.traces[r])._autoBin||{})[y]);\"nbins\"!==y||h.sizeFound||h.nbinsFound||(l=h.traces[0],h[y]=g(x))}}}}},{\"../../lib\":696,\"./attributes\":964}],971:[function(t,e,r){\"use strict\";var n=t(\"../../registry\"),i=t(\"../../lib\"),a=t(\"../../components/color\"),o=t(\"../bar/style_defaults\"),s=t(\"./attributes\");e.exports=function(t,e,r,l){function c(r,n){return i.coerce(t,e,s,r,n)}var u=c(\"x\"),f=c(\"y\");c(\"cumulative.enabled\")&&(c(\"cumulative.direction\"),c(\"cumulative.currentbin\")),c(\"text\");var h=c(\"orientation\",f&&!u?\"h\":\"v\"),p=\"v\"===h?\"x\":\"y\",d=\"v\"===h?\"y\":\"x\",g=u&&f?Math.min(u.length&&f.length):(e[p]||[]).length;if(g){e._length=g,n.getComponentMethod(\"calendars\",\"handleTraceDefaults\")(t,e,[\"x\",\"y\"],l),e[d]&&c(\"histfunc\"),c(\"histnorm\"),c(\"autobin\"+p),o(t,e,c,r,l);var v=n.getComponentMethod(\"errorbars\",\"supplyDefaults\");v(t,e,a.defaultLine,{axis:\"y\"}),v(t,e,a.defaultLine,{axis:\"x\",inherit:\"y\"}),i.coerceSelectionMarkerOpacity(e,c)}else e.visible=!1}},{\"../../components/color\":570,\"../../lib\":696,\"../../registry\":827,\"../bar/style_defaults\":850,\"./attributes\":964}],972:[function(t,e,r){\"use strict\";e.exports=function(t,e,r,n,i){if(t.x=\"xVal\"in e?e.xVal:e.x,t.y=\"yVal\"in e?e.yVal:e.y,e.xa&&(t.xaxis=e.xa),e.ya&&(t.yaxis=e.ya),!(r.cumulative||{}).enabled){var a,o=Array.isArray(i)?n[0].pts[i[0]][i[1]]:n[i].pts;if(t.pointNumbers=o,t.binNumber=t.pointNumber,delete t.pointNumber,delete t.pointIndex,r._indexToPoints){a=[];for(var s=0;s<o.length;s++)a=a.concat(r._indexToPoints[o[s]])}else a=o;t.pointIndices=a}return t}},{}],973:[function(t,e,r){\"use strict\";var n=t(\"../bar/hover\").hoverPoints,i=t(\"../../plots/cartesian/axes\").hoverLabelText;e.exports=function(t,e,r,a){var o=n(t,e,r,a);if(o){var s=(t=o[0]).cd[t.index],l=t.cd[0].trace;if(!l.cumulative.enabled){var c=\"h\"===l.orientation?\"y\":\"x\";t[c+\"Label\"]=i(t[c+\"a\"],s.ph0,s.ph1)}return o}}},{\"../../plots/cartesian/axes\":744,\"../bar/hover\":842}],974:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.layoutAttributes=t(\"../bar/layout_attributes\"),n.supplyDefaults=t(\"./defaults\"),n.crossTraceDefaults=t(\"./cross_trace_defaults\"),n.supplyLayoutDefaults=t(\"../bar/layout_defaults\"),n.calc=t(\"./calc\"),n.crossTraceCalc=t(\"../bar/cross_trace_calc\").crossTraceCalc,n.plot=t(\"../bar/plot\"),n.layerName=\"barlayer\",n.style=t(\"../bar/style\").style,n.styleOnSelect=t(\"../bar/style\").styleOnSelect,n.colorbar=t(\"../scatter/marker_colorbar\"),n.hoverPoints=t(\"./hover\"),n.selectPoints=t(\"../bar/select\"),n.eventData=t(\"./event_data\"),n.moduleType=\"trace\",n.name=\"histogram\",n.basePlotModule=t(\"../../plots/cartesian\"),n.categories=[\"cartesian\",\"svg\",\"bar\",\"histogram\",\"oriented\",\"errorBarsOK\",\"showLegend\"],n.meta={},e.exports=n},{\"../../plots/cartesian\":756,\"../bar/cross_trace_calc\":839,\"../bar/layout_attributes\":844,\"../bar/layout_defaults\":845,\"../bar/plot\":846,\"../bar/select\":847,\"../bar/style\":849,\"../scatter/marker_colorbar\":1061,\"./attributes\":964,\"./calc\":969,\"./cross_trace_defaults\":970,\"./defaults\":971,\"./event_data\":972,\"./hover\":973}],975:[function(t,e,r){\"use strict\";e.exports={percent:function(t,e){for(var r=t.length,n=100/e,i=0;i<r;i++)t[i]*=n},probability:function(t,e){for(var r=t.length,n=0;n<r;n++)t[n]/=e},density:function(t,e,r,n){var i=t.length;n=n||1;for(var a=0;a<i;a++)t[a]*=r[a]*n},\"probability density\":function(t,e,r,n){var i=t.length;n&&(e/=n);for(var a=0;a<i;a++)t[a]*=r[a]/e}}},{}],976:[function(t,e,r){\"use strict\";var n=t(\"../histogram/attributes\"),i=t(\"../histogram/bin_attributes\"),a=t(\"../heatmap/attributes\"),o=t(\"../../components/colorscale/attributes\"),s=t(\"../../components/colorbar/attributes\"),l=t(\"../../lib/extend\").extendFlat;e.exports=l({x:n.x,y:n.y,z:{valType:\"data_array\",editType:\"calc\"},marker:{color:{valType:\"data_array\",editType:\"calc\"},editType:\"calc\"},histnorm:n.histnorm,histfunc:n.histfunc,nbinsx:n.nbinsx,xbins:i(\"x\"),nbinsy:n.nbinsy,ybins:i(\"y\"),autobinx:n.autobinx,autobiny:n.autobiny,xgap:a.xgap,ygap:a.ygap,zsmooth:a.zsmooth,zhoverformat:a.zhoverformat},o(\"\",{cLetter:\"z\",autoColorDflt:!1}),{colorbar:s})},{\"../../components/colorbar/attributes\":571,\"../../components/colorscale/attributes\":577,\"../../lib/extend\":685,\"../heatmap/attributes\":945,\"../histogram/attributes\":964,\"../histogram/bin_attributes\":966}],977:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../plots/cartesian/axes\"),a=t(\"../histogram/bin_functions\"),o=t(\"../histogram/norm_functions\"),s=t(\"../histogram/average\"),l=t(\"../histogram/bin_label_vals\");function c(t,e,r,a,o,s,l){var c=e+\"bins\",u=t[c];u||(u=t[c]={});var f=t._input[c]||{},h=t._autoBin={};f.size||delete u.size,void 0===f.start&&delete u.start,void 0===f.end&&delete u.end;var p=!u.size,d=void 0===u.start,g=void 0===u.end;if(p||d||g){var v=i.autoBin(r,a,t[\"nbins\"+e],\"2d\",l,u.size);\"histogram2dcontour\"===t.type&&(d&&(v.start=s(i.tickIncrement(o(v.start),v.size,!0,l))),g&&(v.end=s(i.tickIncrement(o(v.end),v.size,!1,l)))),p&&(u.size=h.size=v.size),d&&(u.start=h.start=v.start),g&&(u.end=h.end=v.end)}var m=\"autobin\"+e;!1===t._input[m]&&(t._input[c]=n.extendFlat({},u),delete t._input[m],delete t[m])}function u(t,e,r,n){var i,a=new Array(t);if(n)for(i=0;i<t;i++)a[i]=1/(e[i+1]-e[i]);else{var o=1/r;for(i=0;i<t;i++)a[i]=o}return a}function f(t,e){return{start:t(e.start),end:t(e.end),size:e.size}}function h(t,e,r,n,i,a){var o,s=t.length-1,c=new Array(s);if(e)for(o=0;o<s;o++)c[o]=[e[o],e[o]];else{var u=l(r,n,t,i,a);for(o=0;o<s;o++)c[o]=[u(t[o]),u(t[o+1],!0)]}return c}e.exports=function(t,e){var r,l,p,d,g=i.getFromId(t,e.xaxis||\"x\"),v=e.x?g.makeCalcdata(e,\"x\"):[],m=i.getFromId(t,e.yaxis||\"y\"),y=e.y?m.makeCalcdata(e,\"y\"):[],x=e.xcalendar,b=e.ycalendar,_=function(t){return g.r2c(t,0,x)},w=function(t){return m.r2c(t,0,b)},k=function(t){return g.c2r(t,0,x)},M=function(t){return m.c2r(t,0,b)},A=e._length;v.length>A&&v.splice(A,v.length-A),y.length>A&&y.splice(A,y.length-A),c(e,\"x\",v,g,_,k,x),c(e,\"y\",y,m,w,M,b);var T=[],S=[],E=[],C=\"string\"==typeof e.xbins.size,L=\"string\"==typeof e.ybins.size,z=[],O=[],I=C?z:e.xbins,P=L?O:e.ybins,D=0,R=[],B=[],F=e.histnorm,N=e.histfunc,j=-1!==F.indexOf(\"density\"),V=\"max\"===N||\"min\"===N?null:0,U=a.count,q=o[F],H=!1,G=[],W=[],Y=\"z\"in e?e.z:\"marker\"in e&&Array.isArray(e.marker.color)?e.marker.color:\"\";Y&&\"count\"!==N&&(H=\"avg\"===N,U=a[N]);var X=e.xbins,Z=_(X.start),$=_(X.end)+(Z-i.tickIncrement(Z,X.size,!1,x))/1e6;for(r=Z;r<$;r=i.tickIncrement(r,X.size,!1,x))S.push(V),z.push(r),H&&E.push(0);z.push(r);var J=S.length,K=_(e.xbins.start),Q=(r-K)/J,tt=k(K+Q/2);for(Z=w((X=e.ybins).start),$=w(X.end)+(Z-i.tickIncrement(Z,X.size,!1,b))/1e6,r=Z;r<$;r=i.tickIncrement(r,X.size,!1,b)){T.push(S.slice()),O.push(r);var et=new Array(J);for(l=0;l<J;l++)et[l]=[];B.push(et),H&&R.push(E.slice())}O.push(r);var rt=T.length,nt=w(e.ybins.start),it=(r-nt)/rt,at=M(nt+it/2);j&&(G=u(S.length,I,Q,C),W=u(T.length,P,it,L)),C||\"date\"!==g.type||(I=f(_,I)),L||\"date\"!==m.type||(P=f(w,P));var ot=!0,st=!0,lt=new Array(J),ct=new Array(rt),ut=1/0,ft=1/0,ht=1/0,pt=1/0;for(r=0;r<A;r++){var dt=v[r],gt=y[r];p=n.findBin(dt,I),d=n.findBin(gt,P),p>=0&&p<J&&d>=0&&d<rt&&(D+=U(p,r,T[d],Y,R[d]),B[d][p].push(r),ot&&(void 0===lt[p]?lt[p]=dt:lt[p]!==dt&&(ot=!1)),st&&(void 0===ct[p]?ct[p]=gt:ct[p]!==gt&&(st=!1)),ut=Math.min(ut,dt-z[p]),ft=Math.min(ft,z[p+1]-dt),ht=Math.min(ht,gt-O[d]),pt=Math.min(pt,O[d+1]-gt))}if(H)for(d=0;d<rt;d++)D+=s(T[d],R[d]);if(q)for(d=0;d<rt;d++)q(T[d],D,G,W[d]);return{x:v,xRanges:h(z,ot&&lt,ut,ft,g,x),x0:tt,dx:Q,y:y,yRanges:h(O,st&&ct,ht,pt,m,b),y0:at,dy:it,z:T,pts:B}}},{\"../../lib\":696,\"../../plots/cartesian/axes\":744,\"../histogram/average\":965,\"../histogram/bin_functions\":967,\"../histogram/bin_label_vals\":968,\"../histogram/norm_functions\":975}],978:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../../constants/numerical\").BADNUM,a=t(\"../../plots/cartesian/axis_ids\"),o=t(\"../../lib\"),s=t(\"./attributes\"),l=[\"x\",\"y\"];function c(t,e,r,s){var l=r[a.id2name(t[e+\"axis\"])].type,c=e+\"bins\",u=t[c],f=t[e+\"calendar\"];u||(u=t[c]={});var h=\"date\"===l?function(t,e){return t||0===t?o.cleanDate(t,i,f):e}:function(t,e){return n(t)?Number(t):e};u.start=h(u.start,s.start),u.end=h(u.end,s.end);var p=s.size,d=u.size;if(n(d))u.size=d>0?Number(d):p;else if(\"string\"!=typeof d)u.size=p;else{var g=d.charAt(0),v=d.substr(1);((v=n(v)?Number(v):0)<=0||\"date\"!==l||\"M\"!==g||v!==Math.round(v))&&(u.size=p)}}e.exports=function(t,e){var r,n,i,a;function u(t){return o.coerce(i._input,i,s,t)}for(r=0;r<t.length;r++){var f=(i=t[r]).type;if(\"histogram2d\"===f||\"histogram2dcontour\"===f)for(n=0;n<l.length;n++){var h=(a=l[n])+\"bins\",p=(i._autoBin||{})[a]||{};u(h+\".start\",p.start),u(h+\".end\",p.end),u(h+\".size\",p.size),c(i,a,e,p),(i[h]||{}).size||u(\"nbins\"+a)}}}},{\"../../constants/numerical\":673,\"../../lib\":696,\"../../plots/cartesian/axis_ids\":747,\"./attributes\":976,\"fast-isnumeric\":214}],979:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"./sample_defaults\"),a=t(\"../heatmap/style_defaults\"),o=t(\"../../components/colorscale/defaults\"),s=t(\"./attributes\");e.exports=function(t,e,r,l){function c(r,i){return n.coerce(t,e,s,r,i)}i(t,e,c,l),!1!==e.visible&&(a(t,e,c,l),o(t,e,l,c,{prefix:\"\",cLetter:\"z\"}))}},{\"../../components/colorscale/defaults\":580,\"../../lib\":696,\"../heatmap/style_defaults\":959,\"./attributes\":976,\"./sample_defaults\":982}],980:[function(t,e,r){\"use strict\";var n=t(\"../heatmap/hover\"),i=t(\"../../plots/cartesian/axes\").hoverLabelText;e.exports=function(t,e,r,a,o,s){var l=n(t,e,r,a,o,s);if(l){var c=(t=l[0]).index,u=c[0],f=c[1],h=t.cd[0],p=h.xRanges[f],d=h.yRanges[u];return t.xLabel=i(t.xa,p[0],p[1]),t.yLabel=i(t.ya,d[0],d[1]),l}}},{\"../../plots/cartesian/axes\":744,\"../heatmap/hover\":952}],981:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.supplyDefaults=t(\"./defaults\"),n.crossTraceDefaults=t(\"./cross_trace_defaults\"),n.calc=t(\"../heatmap/calc\"),n.plot=t(\"../heatmap/plot\"),n.layerName=\"heatmaplayer\",n.colorbar=t(\"../heatmap/colorbar\"),n.style=t(\"../heatmap/style\"),n.hoverPoints=t(\"./hover\"),n.eventData=t(\"../histogram/event_data\"),n.moduleType=\"trace\",n.name=\"histogram2d\",n.basePlotModule=t(\"../../plots/cartesian\"),n.categories=[\"cartesian\",\"svg\",\"2dMap\",\"histogram\"],n.meta={},e.exports=n},{\"../../plots/cartesian\":756,\"../heatmap/calc\":946,\"../heatmap/colorbar\":948,\"../heatmap/plot\":957,\"../heatmap/style\":958,\"../histogram/event_data\":972,\"./attributes\":976,\"./cross_trace_defaults\":978,\"./defaults\":979,\"./hover\":980}],982:[function(t,e,r){\"use strict\";var n=t(\"../../registry\");e.exports=function(t,e,r,i){var a=r(\"x\"),o=r(\"y\");a&&a.length&&o&&o.length?(e._length=Math.min(a.length,o.length),n.getComponentMethod(\"calendars\",\"handleTraceDefaults\")(t,e,[\"x\",\"y\"],i),(r(\"z\")||r(\"marker.color\"))&&r(\"histfunc\"),r(\"histnorm\"),r(\"autobinx\"),r(\"autobiny\")):e.visible=!1}},{\"../../registry\":827}],983:[function(t,e,r){\"use strict\";var n=t(\"../histogram2d/attributes\"),i=t(\"../contour/attributes\"),a=t(\"../../components/colorscale/attributes\"),o=t(\"../../components/colorbar/attributes\"),s=t(\"../../lib/extend\").extendFlat;e.exports=s({x:n.x,y:n.y,z:n.z,marker:n.marker,histnorm:n.histnorm,histfunc:n.histfunc,nbinsx:n.nbinsx,xbins:n.xbins,nbinsy:n.nbinsy,ybins:n.ybins,autobinx:n.autobinx,autobiny:n.autobiny,autocontour:i.autocontour,ncontours:i.ncontours,contours:i.contours,line:i.line,zhoverformat:n.zhoverformat},a(\"\",{cLetter:\"z\",editTypeOverride:\"calc\"}),{colorbar:o})},{\"../../components/colorbar/attributes\":571,\"../../components/colorscale/attributes\":577,\"../../lib/extend\":685,\"../contour/attributes\":916,\"../histogram2d/attributes\":976}],984:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../histogram2d/sample_defaults\"),a=t(\"../contour/contours_defaults\"),o=t(\"../contour/style_defaults\"),s=t(\"./attributes\");e.exports=function(t,e,r,l){function c(r,i){return n.coerce(t,e,s,r,i)}i(t,e,c,l),!1!==e.visible&&(a(t,e,c,function(r){return n.coerce2(t,e,s,r)}),o(t,e,c,l))}},{\"../../lib\":696,\"../contour/contours_defaults\":923,\"../contour/style_defaults\":937,\"../histogram2d/sample_defaults\":982,\"./attributes\":983}],985:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.supplyDefaults=t(\"./defaults\"),n.crossTraceDefaults=t(\"../histogram2d/cross_trace_defaults\"),n.calc=t(\"../contour/calc\"),n.plot=t(\"../contour/plot\").plot,n.layerName=\"contourlayer\",n.style=t(\"../contour/style\"),n.colorbar=t(\"../contour/colorbar\"),n.hoverPoints=t(\"../contour/hover\"),n.moduleType=\"trace\",n.name=\"histogram2dcontour\",n.basePlotModule=t(\"../../plots/cartesian\"),n.categories=[\"cartesian\",\"svg\",\"2dMap\",\"contour\",\"histogram\",\"showLegend\"],n.meta={},e.exports=n},{\"../../plots/cartesian\":756,\"../contour/calc\":917,\"../contour/colorbar\":919,\"../contour/hover\":929,\"../contour/plot\":934,\"../contour/style\":936,\"../histogram2d/cross_trace_defaults\":978,\"./attributes\":983,\"./defaults\":984}],986:[function(t,e,r){\"use strict\";var n=t(\"../../components/colorscale/attributes\"),i=t(\"../../components/colorbar/attributes\"),a=t(\"../surface/attributes\"),o=t(\"../../plots/attributes\"),s=t(\"../../lib/extend\").extendFlat;e.exports=s({x:{valType:\"data_array\",editType:\"calc+clearAxisTypes\"},y:{valType:\"data_array\",editType:\"calc+clearAxisTypes\"},z:{valType:\"data_array\",editType:\"calc+clearAxisTypes\"},i:{valType:\"data_array\",editType:\"calc\"},j:{valType:\"data_array\",editType:\"calc\"},k:{valType:\"data_array\",editType:\"calc\"},text:{valType:\"string\",dflt:\"\",arrayOk:!0,editType:\"calc\"},delaunayaxis:{valType:\"enumerated\",values:[\"x\",\"y\",\"z\"],dflt:\"z\",editType:\"calc\"},alphahull:{valType:\"number\",dflt:-1,editType:\"calc\"},intensity:{valType:\"data_array\",editType:\"calc\"},color:{valType:\"color\",editType:\"calc\"},vertexcolor:{valType:\"data_array\",editType:\"calc\"},facecolor:{valType:\"data_array\",editType:\"calc\"},transforms:void 0},n(\"\",{colorAttr:\"`intensity`\",showScaleDflt:!0,editTypeOverride:\"calc\"}),{colorbar:i,opacity:a.opacity,flatshading:{valType:\"boolean\",dflt:!1,editType:\"calc\"},contour:{show:s({},a.contours.x.show,{}),color:a.contours.x.color,width:a.contours.x.width,editType:\"calc\"},lightposition:{x:s({},a.lightposition.x,{dflt:1e5}),y:s({},a.lightposition.y,{dflt:1e5}),z:s({},a.lightposition.z,{dflt:0}),editType:\"calc\"},lighting:s({vertexnormalsepsilon:{valType:\"number\",min:0,max:1,dflt:1e-12,editType:\"calc\"},facenormalsepsilon:{valType:\"number\",min:0,max:1,dflt:1e-6,editType:\"calc\"},editType:\"calc\"},a.lighting),hoverinfo:s({},o.hoverinfo,{editType:\"calc\"})})},{\"../../components/colorbar/attributes\":571,\"../../components/colorscale/attributes\":577,\"../../lib/extend\":685,\"../../plots/attributes\":741,\"../surface/attributes\":1130}],987:[function(t,e,r){\"use strict\";var n=t(\"../../components/colorscale/calc\");e.exports=function(t,e){e.intensity&&n(e,e.intensity,\"\",\"c\")}},{\"../../components/colorscale/calc\":578}],988:[function(t,e,r){\"use strict\";var n=t(\"gl-mesh3d\"),i=t(\"delaunay-triangulate\"),a=t(\"alpha-shape\"),o=t(\"convex-hull\"),s=t(\"../../lib/gl_format_color\").parseColorScale,l=t(\"../../lib/str2rgbarray\"),c=t(\"../../plots/gl3d/zip3\");function u(t,e,r){this.scene=t,this.uid=r,this.mesh=e,this.name=\"\",this.color=\"#fff\",this.data=null,this.showContour=!1}var f=u.prototype;function h(t){return t.map(l)}f.handlePick=function(t){if(t.object===this.mesh){var e=t.index=t.data.index;t.traceCoordinate=[this.data.x[e],this.data.y[e],this.data.z[e]];var r=this.data.text;return Array.isArray(r)&&void 0!==r[e]?t.textLabel=r[e]:r&&(t.textLabel=r),!0}},f.update=function(t){var e=this.scene,r=e.fullSceneLayout;function n(t,e,r,n){return e.map(function(e){return t.d2l(e,0,n)*r})}this.data=t;var u,f=c(n(r.xaxis,t.x,e.dataScale[0],t.xcalendar),n(r.yaxis,t.y,e.dataScale[1],t.ycalendar),n(r.zaxis,t.z,e.dataScale[2],t.zcalendar));if(t.i&&t.j&&t.k)u=c(t.i,t.j,t.k);else if(0===t.alphahull)u=o(f);else if(t.alphahull>0)u=a(t.alphahull,f);else{var p=[\"x\",\"y\",\"z\"].indexOf(t.delaunayaxis);u=i(f.map(function(t){return[t[(p+1)%3],t[(p+2)%3]]}))}var d={positions:f,cells:u,lightPosition:[t.lightposition.x,t.lightposition.y,t.lightposition.z],ambient:t.lighting.ambient,diffuse:t.lighting.diffuse,specular:t.lighting.specular,roughness:t.lighting.roughness,fresnel:t.lighting.fresnel,vertexNormalsEpsilon:t.lighting.vertexnormalsepsilon,faceNormalsEpsilon:t.lighting.facenormalsepsilon,opacity:t.opacity,contourEnable:t.contour.show,contourColor:l(t.contour.color).slice(0,3),contourWidth:t.contour.width,useFacetNormals:t.flatshading};t.intensity?(this.color=\"#fff\",d.vertexIntensity=t.intensity,d.vertexIntensityBounds=[t.cmin,t.cmax],d.colormap=s(t.colorscale)):t.vertexcolor?(this.color=t.vertexcolor[0],d.vertexColors=h(t.vertexcolor)):t.facecolor?(this.color=t.facecolor[0],d.cellColors=h(t.facecolor)):(this.color=t.color,d.meshColor=l(t.color)),this.mesh.update(d)},f.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()},e.exports=function(t,e){var r=t.glplot.gl,i=n({gl:r}),a=new u(t,i,e.uid);return i._trace=a,a.update(e),t.glplot.add(i),a}},{\"../../lib/gl_format_color\":692,\"../../lib/str2rgbarray\":719,\"../../plots/gl3d/zip3\":798,\"alpha-shape\":52,\"convex-hull\":118,\"delaunay-triangulate\":150,\"gl-mesh3d\":268}],989:[function(t,e,r){\"use strict\";var n=t(\"../../registry\"),i=t(\"../../lib\"),a=t(\"../../components/colorscale/defaults\"),o=t(\"./attributes\");e.exports=function(t,e,r,s){function l(r,n){return i.coerce(t,e,o,r,n)}function c(t){var e=t.map(function(t){var e=l(t);return e&&i.isArrayOrTypedArray(e)?e:null});return e.every(function(t){return t&&t.length===e[0].length})&&e}var u=c([\"x\",\"y\",\"z\"]),f=c([\"i\",\"j\",\"k\"]);u?(f&&f.forEach(function(t){for(var e=0;e<t.length;++e)t[e]|=0}),n.getComponentMethod(\"calendars\",\"handleTraceDefaults\")(t,e,[\"x\",\"y\",\"z\"],s),[\"lighting.ambient\",\"lighting.diffuse\",\"lighting.specular\",\"lighting.roughness\",\"lighting.fresnel\",\"lighting.vertexnormalsepsilon\",\"lighting.facenormalsepsilon\",\"lightposition.x\",\"lightposition.y\",\"lightposition.z\",\"contour.show\",\"contour.color\",\"contour.width\",\"colorscale\",\"reversescale\",\"flatshading\",\"alphahull\",\"delaunayaxis\",\"opacity\"].forEach(function(t){l(t)}),\"intensity\"in t?(l(\"intensity\"),a(t,e,s,l,{prefix:\"\",cLetter:\"c\"})):(e.showscale=!1,\"facecolor\"in t?l(\"facecolor\"):\"vertexcolor\"in t?l(\"vertexcolor\"):l(\"color\",r)),l(\"text\"),e._length=null):e.visible=!1}},{\"../../components/colorscale/defaults\":580,\"../../lib\":696,\"../../registry\":827,\"./attributes\":986}],990:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.supplyDefaults=t(\"./defaults\"),n.calc=t(\"./calc\"),n.colorbar={min:\"cmin\",max:\"cmax\"},n.plot=t(\"./convert\"),n.moduleType=\"trace\",n.name=\"mesh3d\",n.basePlotModule=t(\"../../plots/gl3d\"),n.categories=[\"gl3d\"],n.meta={},e.exports=n},{\"../../plots/gl3d\":787,\"./attributes\":986,\"./calc\":987,\"./convert\":988,\"./defaults\":989}],991:[function(t,e,r){\"use strict\";var n=t(\"../../lib\").extendFlat,i=t(\"../scatter/attributes\"),a=t(\"../../components/drawing/attributes\").dash,o=t(\"../../components/fx/attributes\"),s=i.line;function l(t){return{line:{color:n({},s.color,{dflt:t}),width:s.width,dash:a,editType:\"style\"},editType:\"style\"}}e.exports={x:{valType:\"data_array\",editType:\"calc+clearAxisTypes\"},open:{valType:\"data_array\",editType:\"calc\"},high:{valType:\"data_array\",editType:\"calc\"},low:{valType:\"data_array\",editType:\"calc\"},close:{valType:\"data_array\",editType:\"calc\"},line:{width:n({},s.width,{}),dash:n({},a,{}),editType:\"style\"},increasing:l(\"#3D9970\"),decreasing:l(\"#FF4136\"),text:{valType:\"string\",dflt:\"\",arrayOk:!0,editType:\"calc\"},tickwidth:{valType:\"number\",min:0,max:.5,dflt:.3,editType:\"calc\"},hoverlabel:n({},o.hoverlabel,{split:{valType:\"boolean\",dflt:!1,editType:\"style\"}})}},{\"../../components/drawing/attributes\":594,\"../../components/fx/attributes\":604,\"../../lib\":696,\"../scatter/attributes\":1043}],992:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=n._,a=t(\"../../plots/cartesian/axes\"),o=t(\"../../constants/numerical\").BADNUM;function s(t,e,r,n){return{o:t,h:e,l:r,c:n}}function l(t,e,r,n,s){for(var l=n.makeCalcdata(e,\"open\"),c=n.makeCalcdata(e,\"high\"),u=n.makeCalcdata(e,\"low\"),f=n.makeCalcdata(e,\"close\"),h=Array.isArray(e.text),p=!0,d=null,g=[],v=0;v<r.length;v++){var m=r[v],y=l[v],x=c[v],b=u[v],_=f[v];if(m!==o&&y!==o&&x!==o&&b!==o&&_!==o){_===y?null!==d&&_!==d&&(p=_>d):p=_>y,d=_;var w=s(y,x,b,_);w.pos=m,w.yc=(y+_)/2,w.i=v,w.dir=p?\"increasing\":\"decreasing\",h&&(w.tx=e.text[v]),g.push(w)}}return e._extremes[n._id]=a.findExtremes(n,u.concat(c),{padded:!0}),g.length&&(g[0].t={labels:{open:i(t,\"open:\")+\" \",high:i(t,\"high:\")+\" \",low:i(t,\"low:\")+\" \",close:i(t,\"close:\")+\" \"}}),g}e.exports={calc:function(t,e){var r=a.getFromId(t,e.xaxis),i=a.getFromId(t,e.yaxis),o=function(t,e,r){var i=r._minDiff;if(!i){var a,o=t._fullData,s=[];for(i=1/0,a=0;a<o.length;a++){var l=o[a];if(\"ohlc\"===l.type&&!0===l.visible&&l.xaxis===e._id){s.push(l);var c=e.makeCalcdata(l,\"x\");l._xcalc=c;var u=n.distinctVals(c).minDiff;u&&isFinite(u)&&(i=Math.min(i,u))}}for(i===1/0&&(i=1),a=0;a<s.length;a++)s[a]._minDiff=i}return i*r.tickwidth}(t,r,e),c=e._minDiff;e._minDiff=null;var u=e._xcalc;e._xcalc=null;var f=l(t,e,u,i,s);return e._extremes[r._id]=a.findExtremes(r,u,{vpad:c/2}),f.length?(n.extendFlat(f[0].t,{wHover:c/2,tickLen:o}),f):[{t:{empty:!0}}]},calcCommon:l}},{\"../../constants/numerical\":673,\"../../lib\":696,\"../../plots/cartesian/axes\":744}],993:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"./ohlc_defaults\"),a=t(\"./attributes\");function o(t,e,r,n){r(n+\".line.color\"),r(n+\".line.width\",e.line.width),r(n+\".line.dash\",e.line.dash)}e.exports=function(t,e,r,s){function l(r,i){return n.coerce(t,e,a,r,i)}i(t,e,l,s)?(l(\"line.width\"),l(\"line.dash\"),o(t,e,l,\"increasing\"),o(t,e,l,\"decreasing\"),l(\"text\"),l(\"tickwidth\"),s._requestRangeslider[e.xaxis]=!0):e.visible=!1}},{\"../../lib\":696,\"./attributes\":991,\"./ohlc_defaults\":996}],994:[function(t,e,r){\"use strict\";var n=t(\"../../plots/cartesian/axes\"),i=t(\"../../lib\"),a=t(\"../../components/fx\"),o=t(\"../../components/color\"),s=t(\"../scatter/fill_hover_text\"),l={increasing:\"\\u25b2\",decreasing:\"\\u25bc\"};function c(t,e,r,n){var i,s,l=t.cd,c=t.xa,u=l[0].trace,f=l[0].t,h=u.type,p=\"ohlc\"===h?\"l\":\"min\",d=\"ohlc\"===h?\"h\":\"max\",g=f.bPos||0,v=function(t){return t.pos+g-e},m=f.bdPos||f.tickLen,y=f.wHover,x=Math.min(1,m/Math.abs(c.r2c(c.range[1])-c.r2c(c.range[0])));function b(t){var e=v(t);return a.inbox(e-y,e+y,i)}function _(t){return a.inbox(t[p]-r,t[d]-r,i)}function w(t){return(b(t)+_(t))/2}i=t.maxHoverDistance-x,s=t.maxSpikeDistance-x;var k=a.getDistanceFunction(n,b,_,w);if(a.getClosest(l,k,t),!1===t.index)return null;var M=l[t.index],A=u[M.dir],T=A.line.color;return o.opacity(T)&&A.line.width?t.color=T:t.color=A.fillcolor,t.x0=c.c2p(M.pos+g-m,!0),t.x1=c.c2p(M.pos+g+m,!0),t.xLabelVal=M.pos,t.spikeDistance=w(M)*s/i,t.xSpike=c.c2p(M.pos,!0),t}function u(t,e,r,a){var o=t.cd,s=t.ya,l=o[0].trace,u=o[0].t,f=[],h=c(t,e,r,a);if(!h)return[];var p=o[h.index].hi||l.hoverinfo,d=p.split(\"+\");if(!(\"all\"===p||-1!==d.indexOf(\"y\")))return[];for(var g=[\"high\",\"open\",\"close\",\"low\"],v={},m=0;m<g.length;m++){var y,x=g[m],b=l[x][h.index],_=s.c2p(b,!0);b in v?(y=v[b]).yLabel+=\"<br>\"+u.labels[x]+n.hoverLabelText(s,b):((y=i.extendFlat({},h)).y0=y.y1=_,y.yLabelVal=b,y.yLabel=u.labels[x]+n.hoverLabelText(s,b),y.name=\"\",f.push(y),v[b]=y)}return f}function f(t,e,r,i){var a=t.cd,o=t.ya,u=a[0].trace,f=a[0].t,h=c(t,e,r,i);if(!h)return[];var p=a[h.index],d=h.index=p.i,g=p.dir;function v(t){return f.labels[t]+n.hoverLabelText(o,u[t][d])}var m=p.hi||u.hoverinfo,y=m.split(\"+\"),x=\"all\"===m,b=x||-1!==y.indexOf(\"y\"),_=x||-1!==y.indexOf(\"text\"),w=b?[v(\"open\"),v(\"high\"),v(\"low\"),v(\"close\")+\" \"+l[g]]:[];return _&&s(p,u,w),h.extraText=w.join(\"<br>\"),h.y0=h.y1=o.c2p(p.yc,!0),[h]}e.exports={hoverPoints:function(t,e,r,n){return t.cd[0].trace.hoverlabel.split?u(t,e,r,n):f(t,e,r,n)},hoverSplit:u,hoverOnPoints:f}},{\"../../components/color\":570,\"../../components/fx\":612,\"../../lib\":696,\"../../plots/cartesian/axes\":744,\"../scatter/fill_hover_text\":1051}],995:[function(t,e,r){\"use strict\";e.exports={moduleType:\"trace\",name:\"ohlc\",basePlotModule:t(\"../../plots/cartesian\"),categories:[\"cartesian\",\"svg\",\"showLegend\"],meta:{},attributes:t(\"./attributes\"),supplyDefaults:t(\"./defaults\"),calc:t(\"./calc\").calc,plot:t(\"./plot\"),style:t(\"./style\"),hoverPoints:t(\"./hover\").hoverPoints,selectPoints:t(\"./select\")}},{\"../../plots/cartesian\":756,\"./attributes\":991,\"./calc\":992,\"./defaults\":993,\"./hover\":994,\"./plot\":997,\"./select\":998,\"./style\":999}],996:[function(t,e,r){\"use strict\";var n=t(\"../../registry\");e.exports=function(t,e,r,i){var a=r(\"x\"),o=r(\"open\"),s=r(\"high\"),l=r(\"low\"),c=r(\"close\");if(r(\"hoverlabel.split\"),n.getComponentMethod(\"calendars\",\"handleTraceDefaults\")(t,e,[\"x\"],i),o&&s&&l&&c){var u=Math.min(o.length,s.length,l.length,c.length);return a&&(u=Math.min(u,a.length)),e._length=u,u}}},{\"../../registry\":827}],997:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../../lib\");e.exports=function(t,e,r,a){var o=e.xaxis,s=e.yaxis;i.makeTraceGroups(a,r,\"trace ohlc\").each(function(t){var r=n.select(this),a=t[0],l=a.t,c=a.trace;if(e.isRangePlot||(a.node3=r),!0!==c.visible||l.empty)r.remove();else{var u=l.tickLen,f=r.selectAll(\"path\").data(i.identity);f.enter().append(\"path\"),f.exit().remove(),f.attr(\"d\",function(t){var e=o.c2p(t.pos,!0),r=o.c2p(t.pos-u,!0),n=o.c2p(t.pos+u,!0);return\"M\"+r+\",\"+s.c2p(t.o,!0)+\"H\"+e+\"M\"+e+\",\"+s.c2p(t.h,!0)+\"V\"+s.c2p(t.l,!0)+\"M\"+n+\",\"+s.c2p(t.c,!0)+\"H\"+e})}})}},{\"../../lib\":696,d3:148}],998:[function(t,e,r){\"use strict\";e.exports=function(t,e){var r,n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].t.bPos||0;if(!1===e)for(r=0;r<n.length;r++)n[r].selected=0;else for(r=0;r<n.length;r++){var l=n[r];e.contains([i.c2p(l.pos+s),a.c2p(l.yc)],null,l.i,t)?(o.push({pointNumber:l.i,x:i.c2d(l.pos),y:a.c2d(l.yc)}),l.selected=1):l.selected=0}return o}},{}],999:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../../components/drawing\"),a=t(\"../../components/color\");e.exports=function(t,e){var r=e?e[0].node3:n.select(t).selectAll(\"g.ohlclayer\").selectAll(\"g.trace\");r.style(\"opacity\",function(t){return t[0].trace.opacity}),r.each(function(t){var e=t[0].trace;n.select(this).selectAll(\"path\").each(function(t){var r=e[t.dir].line;n.select(this).style(\"fill\",\"none\").call(a.stroke,r.color).call(i.dashLine,r.dash,r.width).style(\"opacity\",e.selectedpoints&&!t.selected?.3:1)})})}},{\"../../components/color\":570,\"../../components/drawing\":595,d3:148}],1000:[function(t,e,r){\"use strict\";var n=t(\"../../lib/extend\").extendFlat,i=t(\"../../plots/attributes\"),a=t(\"../../plots/font_attributes\"),o=t(\"../../components/colorscale/attributes\"),s=t(\"../../plots/domain\").attributes,l=t(\"../scatter/attributes\").line,c=t(\"../../components/colorbar/attributes\"),u=n({editType:\"calc\"},o(\"line\",{editType:\"calc\"}),{showscale:l.showscale,colorbar:c,shape:{valType:\"enumerated\",values:[\"linear\",\"hspline\"],dflt:\"linear\",editType:\"plot\"}});e.exports={domain:s({name:\"parcats\",trace:!0,editType:\"calc\"}),hoverinfo:n({},i.hoverinfo,{flags:[\"count\",\"probability\"],editType:\"plot\",arrayOk:!1}),hoveron:{valType:\"enumerated\",values:[\"category\",\"color\",\"dimension\"],dflt:\"category\",editType:\"plot\"},arrangement:{valType:\"enumerated\",values:[\"perpendicular\",\"freeform\",\"fixed\"],dflt:\"perpendicular\",editType:\"plot\"},bundlecolors:{valType:\"boolean\",dflt:!0,editType:\"plot\"},sortpaths:{valType:\"enumerated\",values:[\"forward\",\"backward\"],dflt:\"forward\",editType:\"plot\"},labelfont:a({editType:\"calc\"}),tickfont:a({editType:\"calc\"}),dimensions:{_isLinkedToArray:\"dimension\",label:{valType:\"string\",editType:\"calc\"},categoryorder:{valType:\"enumerated\",values:[\"trace\",\"category ascending\",\"category descending\",\"array\"],dflt:\"trace\",editType:\"calc\"},categoryarray:{valType:\"data_array\",editType:\"calc\"},ticktext:{valType:\"data_array\",editType:\"calc\"},values:{valType:\"data_array\",dflt:[],editType:\"calc\"},displayindex:{valType:\"integer\",editType:\"calc\"},editType:\"calc\",visible:{valType:\"boolean\",dflt:!0,editType:\"calc\"}},line:u,counts:{valType:\"number\",min:0,dflt:1,arrayOk:!0,editType:\"calc\"},customdata:void 0,hoverlabel:void 0,ids:void 0,legendgroup:void 0,opacity:void 0,selectedpoints:void 0,showlegend:void 0}},{\"../../components/colorbar/attributes\":571,\"../../components/colorscale/attributes\":577,\"../../lib/extend\":685,\"../../plots/attributes\":741,\"../../plots/domain\":770,\"../../plots/font_attributes\":771,\"../scatter/attributes\":1043}],1001:[function(t,e,r){\"use strict\";var n=t(\"../../plots/get_data\").getModuleCalcData,i=t(\"./plot\");r.name=\"parcats\",r.plot=function(t,e,r,a){var o=n(t.calcdata,\"parcats\");if(o.length){var s=o[0];i(t,s,r,a)}},r.clean=function(t,e,r,n){var i=n._has&&n._has(\"parcats\"),a=e._has&&e._has(\"parcats\");i&&!a&&n._paperdiv.selectAll(\".parcats\").remove()}},{\"../../plots/get_data\":781,\"./plot\":1006}],1002:[function(t,e,r){\"use strict\";var n=t(\"../../lib/gup\").wrap,i=t(\"../../components/colorscale/has_colorscale\"),a=t(\"../../components/colorscale/calc\"),o=t(\"../../lib/filter_unique.js\"),s=t(\"../../components/drawing\"),l=t(\"../../lib\");function c(t,e,r){t.valueInds.push(e),t.count+=r}function u(t,e,r){t.valueInds.push(e),t.count+=r}e.exports=function(t,e){var r=l.filterVisible(e.dimensions);if(0===r.length)return[];var f,h,p,d=r.map(function(t){var e;return\"trace\"===t.categoryorder?e=null:\"array\"===t.categoryorder?e=t.categoryarray:(e=o(t.values).sort(),\"category descending\"===t.categoryorder&&(e=e.reverse())),function(t,e){e=null==e?[]:e.map(function(t){return t});var r={},n={},i=[];e.forEach(function(t,e){r[t]=0,n[t]=e});for(var a=0;a<t.length;a++){var o,s=t[a];void 0===r[s]?(r[s]=1,o=e.push(s)-1,n[s]=o):(r[s]++,o=n[s]),i.push(o)}var l=e.map(function(t){return r[t]});return{uniqueValues:e,uniqueCounts:l,inds:i}}(t.values,e)});f=l.isArrayOrTypedArray(e.counts)?e.counts:[e.counts],function(t){var e;if(function(t){for(var e=new Array(t.length),r=0;r<t.length;r++){if(t[r]<0||t[r]>=t.length)return!1;if(void 0!==e[t[r]])return!1;e[t[r]]=!0}return!0}(t.map(function(t){return t.displayindex})))for(e=0;e<t.length;e++)t[e]._displayindex=t[e].displayindex;else for(e=0;e<t.length;e++)t[e]._displayindex=e}(r),r.forEach(function(t,e){!function(t,e){t._categoryarray=e.uniqueValues,null===t.ticktext||void 0===t.ticktext?t._ticktext=[]:t._ticktext=t.ticktext.slice();for(var r=t._ticktext.length;r<e.uniqueValues.length;r++)t._ticktext.push(e.uniqueValues[r])}(t,d[e])});var g,v=e.line;v?(i(e,\"line\")&&a(e,e.line.color,\"line\",\"c\"),g=s.tryColorscale(v)):g=l.identity;var m,y,x,b,_=r[0].values.length,w={},k=d.map(function(t){return t.inds});for(p=0,m=0;m<_;m++){var M=[];for(y=0;y<k.length;y++)M.push(k[y][m]);h=f[m%f.length],p+=h;var A=(x=m,b=void 0,b=l.isArrayOrTypedArray(v.color)?v.color[x%v.color.length]:v.color,{color:g(b),rawColor:b}),T=M+\"-\"+A.rawColor;void 0===w[T]&&(w[T]={categoryInds:M,color:A.color,rawColor:A.rawColor,valueInds:[],count:0}),u(w[T],m,h)}var S,E=r.map(function(t,e){return r=e,n=t._index,i=t._displayindex,a=t.label,{dimensionInd:r,containerInd:n,displayInd:i,dimensionLabel:a,count:p,categories:[],dragX:null};var r,n,i,a});for(m=0;m<_;m++)for(h=f[m%f.length],y=0;y<E.length;y++){var C=E[y].containerInd,L=d[y].inds[m],z=E[y].categories;if(void 0===z[L]){var O=e.dimensions[C]._categoryarray[L],I=e.dimensions[C]._ticktext[L];z[L]={dimensionInd:y,categoryInd:S=L,categoryValue:O,displayInd:S,categoryLabel:I,valueInds:[],count:0,dragY:null}}c(z[L],m,h)}return n(function(t,e,r){var n=t.map(function(t){return t.categories.length}).reduce(function(t,e){return Math.max(t,e)});return{dimensions:t,paths:e,trace:void 0,maxCats:n,count:r}}(E,w,p))}},{\"../../components/colorscale/calc\":578,\"../../components/colorscale/has_colorscale\":584,\"../../components/drawing\":595,\"../../lib\":696,\"../../lib/filter_unique.js\":686,\"../../lib/gup\":693}],1003:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../components/colorscale/has_colorscale\"),a=t(\"../../components/colorscale/defaults\"),o=t(\"../../plots/domain\").defaults,s=t(\"../../plots/array_container_defaults\"),l=t(\"./attributes\"),c=t(\"../parcoords/merge_length\");function u(t,e){function r(r,i){return n.coerce(t,e,l.dimensions,r,i)}var i=r(\"values\"),a=r(\"visible\");if(i&&i.length||(a=e.visible=!1),a){r(\"label\"),r(\"displayindex\",e._index);var o,s=t.categoryarray,c=Array.isArray(s)&&s.length>0;c&&(o=\"array\");var u=r(\"categoryorder\",o);\"array\"===u?(r(\"categoryarray\"),r(\"ticktext\")):(delete t.categoryarray,delete t.ticktext),c||\"array\"!==u||(e.categoryorder=\"trace\")}}e.exports=function(t,e,r,f){function h(r,i){return n.coerce(t,e,l,r,i)}var p=s(t,e,{name:\"dimensions\",handleItemDefaults:u}),d=function(t,e,r,o,s){s(\"line.shape\");var l=s(\"line.color\",o.colorway[0]);if(i(t,\"line\")&&n.isArrayOrTypedArray(l)){if(l.length)return s(\"line.colorscale\"),a(t,e,o,s,{prefix:\"line.\",cLetter:\"c\"}),l.length;e.line.color=r}return 1/0}(t,e,r,f,h);o(e,f,h),Array.isArray(p)&&p.length||(e.visible=!1),c(e,p,\"values\",d),h(\"hoveron\"),h(\"arrangement\"),h(\"bundlecolors\"),h(\"sortpaths\"),h(\"counts\");var g={family:f.font.family,size:Math.round(f.font.size),color:f.font.color};n.coerceFont(h,\"labelfont\",g);var v={family:f.font.family,size:Math.round(f.font.size/1.2),color:f.font.color};n.coerceFont(h,\"tickfont\",v)}},{\"../../components/colorscale/defaults\":580,\"../../components/colorscale/has_colorscale\":584,\"../../lib\":696,\"../../plots/array_container_defaults\":740,\"../../plots/domain\":770,\"../parcoords/merge_length\":1015,\"./attributes\":1e3}],1004:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.supplyDefaults=t(\"./defaults\"),n.calc=t(\"./calc\"),n.plot=t(\"./plot\"),n.colorbar={container:\"line\",min:\"cmin\",max:\"cmax\"},n.moduleType=\"trace\",n.name=\"parcats\",n.basePlotModule=t(\"./base_plot\"),n.categories=[\"noOpacity\"],n.meta={},e.exports=n},{\"./attributes\":1e3,\"./base_plot\":1001,\"./calc\":1002,\"./defaults\":1003,\"./plot\":1006}],1005:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../../plot_api/plot_api\"),a=t(\"../../components/fx\"),o=t(\"../../lib\"),s=t(\"../../components/drawing\"),l=t(\"tinycolor2\"),c=t(\"../../lib/svg_text_utils\");function u(t,e,r,i){var a=t.map(function(t,e,r){var n,i=r[0],a=e.margin||{l:80,r:80,t:100,b:80},o=i.trace,s=o.domain,l=e.width,c=e.height,u=Math.floor(l*(s.x[1]-s.x[0])),f=Math.floor(c*(s.y[1]-s.y[0])),h=s.x[0]*l+a.l,p=e.height-s.y[1]*e.height+a.t,d=o.line.shape;n=\"all\"===o.hoverinfo?[\"count\",\"probability\"]:o.hoverinfo.split(\"+\");var g={key:o.uid,model:i,x:h,y:p,width:u,height:f,hoveron:o.hoveron,hoverinfoItems:n,arrangement:o.arrangement,bundlecolors:o.bundlecolors,sortpaths:o.sortpaths,labelfont:o.labelfont,categorylabelfont:o.tickfont,pathShape:d,dragDimension:null,margin:a,paths:[],dimensions:[],graphDiv:t,traceSelection:null,pathSelection:null,dimensionSelection:null};i.dimensions&&(R(g),D(g));return g}.bind(0,e,r)),l=i.selectAll(\"g.parcatslayer\").data([null]);l.enter().append(\"g\").attr(\"class\",\"parcatslayer\").style(\"pointer-events\",\"all\");var u=l.selectAll(\"g.trace.parcats\").data(a,f),v=u.enter().append(\"g\").attr(\"class\",\"trace parcats\");u.attr(\"transform\",function(t){return\"translate(\"+t.x+\", \"+t.y+\")\"}),v.append(\"g\").attr(\"class\",\"paths\");var x=u.select(\"g.paths\").selectAll(\"path.path\").data(function(t){return t.paths},f);x.attr(\"fill\",function(t){return t.model.color});var w=x.enter().append(\"path\").attr(\"class\",\"path\").attr(\"stroke-opacity\",0).attr(\"fill\",function(t){return t.model.color}).attr(\"fill-opacity\",0);y(w),x.attr(\"d\",function(t){return t.svgD}),w.empty()||x.sort(p),x.exit().remove(),x.on(\"mouseover\",d).on(\"mouseout\",g).on(\"click\",m),v.append(\"g\").attr(\"class\",\"dimensions\");var k=u.select(\"g.dimensions\").selectAll(\"g.dimension\").data(function(t){return t.dimensions},f);k.enter().append(\"g\").attr(\"class\",\"dimension\"),k.attr(\"transform\",function(t){return\"translate(\"+t.x+\", 0)\"}),k.exit().remove();var M=k.selectAll(\"g.category\").data(function(t){return t.categories},f),A=M.enter().append(\"g\").attr(\"class\",\"category\");M.attr(\"transform\",function(t){return\"translate(0, \"+t.y+\")\"}),A.append(\"rect\").attr(\"class\",\"catrect\").attr(\"pointer-events\",\"none\"),M.select(\"rect.catrect\").attr(\"fill\",\"none\").attr(\"width\",function(t){return t.width}).attr(\"height\",function(t){return t.height}),b(A);var z=M.selectAll(\"rect.bandrect\").data(function(t){return t.bands},f);z.each(function(){o.raiseToTop(this)}),z.attr(\"fill\",function(t){return t.color});var O=z.enter().append(\"rect\").attr(\"class\",\"bandrect\").attr(\"stroke-opacity\",0).attr(\"fill\",function(t){return t.color}).attr(\"fill-opacity\",0);z.attr(\"fill\",function(t){return t.color}).attr(\"width\",function(t){return t.width}).attr(\"height\",function(t){return t.height}).attr(\"y\",function(t){return t.y}).attr(\"cursor\",function(t){return\"fixed\"===t.parcatsViewModel.arrangement?\"default\":\"perpendicular\"===t.parcatsViewModel.arrangement?\"ns-resize\":\"move\"}),_(O),z.exit().remove(),A.append(\"text\").attr(\"class\",\"catlabel\").attr(\"pointer-events\",\"none\");var I=e._fullLayout.paper_bgcolor;M.select(\"text.catlabel\").attr(\"text-anchor\",function(t){return h(t)?\"start\":\"end\"}).attr(\"alignment-baseline\",\"middle\").style(\"text-shadow\",I+\" -1px 1px 2px, \"+I+\" 1px 1px 2px, \"+I+\" 1px -1px 2px, \"+I+\" -1px -1px 2px\").style(\"fill\",\"rgb(0, 0, 0)\").attr(\"x\",function(t){return h(t)?t.width+5:-5}).attr(\"y\",function(t){return t.height/2}).text(function(t){return t.model.categoryLabel}).each(function(t){s.font(n.select(this),t.parcatsViewModel.categorylabelfont),c.convertToTspans(n.select(this),e)}),A.append(\"text\").attr(\"class\",\"dimlabel\"),M.select(\"text.dimlabel\").attr(\"text-anchor\",\"middle\").attr(\"alignment-baseline\",\"baseline\").attr(\"cursor\",function(t){return\"fixed\"===t.parcatsViewModel.arrangement?\"default\":\"ew-resize\"}).attr(\"x\",function(t){return t.width/2}).attr(\"y\",-5).text(function(t,e){return 0===e?t.parcatsViewModel.model.dimensions[t.model.dimensionInd].dimensionLabel:null}).each(function(t){s.font(n.select(this),t.parcatsViewModel.labelfont)}),M.selectAll(\"rect.bandrect\").on(\"mouseover\",T).on(\"mouseout\",S),M.exit().remove(),k.call(n.behavior.drag().origin(function(t){return{x:t.x,y:0}}).on(\"dragstart\",E).on(\"drag\",C).on(\"dragend\",L)),u.each(function(t){t.traceSelection=n.select(this),t.pathSelection=n.select(this).selectAll(\"g.paths\").selectAll(\"path.path\"),t.dimensionSelection=n.select(this).selectAll(\"g.dimensions\").selectAll(\"g.dimension\")}),u.exit().remove()}function f(t){return t.key}function h(t){var e=t.parcatsViewModel.dimensions.length,r=t.parcatsViewModel.dimensions[e-1].model.dimensionInd;return t.model.dimensionInd===r}function p(t,e){return t.model.rawColor>e.model.rawColor?1:t.model.rawColor<e.model.rawColor?-1:0}function d(t){if(!t.parcatsViewModel.dragDimension&&-1===t.parcatsViewModel.hoverinfoItems.indexOf(\"skip\")){o.raiseToTop(this),x(n.select(this));var e=v(t);if(t.parcatsViewModel.graphDiv.emit(\"plotly_hover\",{points:e,event:n.event}),-1===t.parcatsViewModel.hoverinfoItems.indexOf(\"none\")){var r,i,s,c=n.mouse(this)[0],u=t.parcatsViewModel.graphDiv,f=u._fullLayout,h=f._paperdiv.node().getBoundingClientRect(),p=t.parcatsViewModel.graphDiv.getBoundingClientRect();for(s=0;s<t.leftXs.length-1;s++)if(t.leftXs[s]+t.dimWidths[s]-2<=c&&c<=t.leftXs[s+1]+2){var d=t.parcatsViewModel.dimensions[s],g=t.parcatsViewModel.dimensions[s+1];r=(d.x+d.width+g.x)/2,i=(t.topYs[s]+t.topYs[s+1]+t.height)/2;break}var m=t.parcatsViewModel.x+r,y=t.parcatsViewModel.y+i,b=l.mostReadable(t.model.color,[\"black\",\"white\"]),_=[];-1!==t.parcatsViewModel.hoverinfoItems.indexOf(\"count\")&&_.push([\"Count:\",t.model.count].join(\" \")),-1!==t.parcatsViewModel.hoverinfoItems.indexOf(\"probability\")&&_.push([\"P:\",(t.model.count/t.parcatsViewModel.model.count).toFixed(3)].join(\" \"));var w=_.join(\"<br>\"),k=n.mouse(u)[0];a.loneHover({x:m-h.left+p.left,y:y-h.top+p.top,text:w,color:t.model.color,borderColor:\"black\",fontFamily:'Monaco, \"Courier New\", monospace',fontSize:10,fontColor:b,idealAlign:k<m?\"right\":\"left\"},{container:f._hoverlayer.node(),outerContainer:f._paper.node(),gd:u})}}}function g(t){if(!t.parcatsViewModel.dragDimension&&(y(n.select(this)),a.loneUnhover(t.parcatsViewModel.graphDiv._fullLayout._hoverlayer.node()),t.parcatsViewModel.pathSelection.sort(p),-1===t.parcatsViewModel.hoverinfoItems.indexOf(\"skip\"))){var e=v(t);t.parcatsViewModel.graphDiv.emit(\"plotly_unhover\",{points:e,event:n.event})}}function v(t){for(var e=[],r=z(t.parcatsViewModel),n=0;n<t.model.valueInds.length;n++){var i=t.model.valueInds[n];e.push({curveNumber:r,pointNumber:i})}return e}function m(t){if(-1===t.parcatsViewModel.hoverinfoItems.indexOf(\"skip\")){var e=v(t);t.parcatsViewModel.graphDiv.emit(\"plotly_click\",{points:e,event:n.event})}}function y(t){t.attr(\"fill\",function(t){return t.model.color}).attr(\"fill-opacity\",.6).attr(\"stroke\",\"lightgray\").attr(\"stroke-width\",.2).attr(\"stroke-opacity\",1)}function x(t){t.attr(\"fill-opacity\",.8).attr(\"stroke\",function(t){return l.mostReadable(t.model.color,[\"black\",\"white\"])}).attr(\"stroke-width\",.3)}function b(t){t.select(\"rect.catrect\").attr(\"stroke\",\"black\").attr(\"stroke-width\",1).attr(\"stroke-opacity\",1)}function _(t){t.attr(\"stroke\",\"black\").attr(\"stroke-width\",.2).attr(\"stroke-opacity\",1).attr(\"fill-opacity\",1)}function w(t){var e=t.parcatsViewModel.pathSelection,r=t.categoryViewModel.model.dimensionInd,n=t.categoryViewModel.model.categoryInd;return e.filter(function(e){return e.model.categoryInds[r]===n&&e.model.color===t.color})}function k(t,e,r){var i=n.select(t).datum().parcatsViewModel.graphDiv,a=n.select(t.parentNode).selectAll(\"rect.bandrect\"),o=[];a.each(function(t){w(t).each(function(t){Array.prototype.push.apply(o,v(t))})}),i.emit(e,{points:o,event:r})}function M(t,e,r){var i=n.select(t).datum(),a=i.parcatsViewModel.graphDiv,o=w(i),s=[];o.each(function(t){Array.prototype.push.apply(s,v(t))}),a.emit(e,{points:s,event:r})}function A(t,e){var r,i,a=n.select(e.parentNode).select(\"rect.catrect\"),o=a.node().getBoundingClientRect(),s=a.datum(),l=s.parcatsViewModel,c=l.model.dimensions[s.model.dimensionInd],u=o.top+o.height/2;l.dimensions.length>1&&c.displayInd===l.dimensions.length-1?(r=o.left,i=\"left\"):(r=o.left+o.width,i=\"right\");var f=[];-1!==s.parcatsViewModel.hoverinfoItems.indexOf(\"count\")&&f.push([\"Count:\",s.model.count].join(\" \")),-1!==s.parcatsViewModel.hoverinfoItems.indexOf(\"probability\")&&f.push([\"P(\"+s.model.categoryLabel+\"):\",(s.model.count/s.parcatsViewModel.model.count).toFixed(3)].join(\" \"));var h=f.join(\"<br>\");return{x:r-t.left,y:u-t.top,text:h,color:\"lightgray\",borderColor:\"black\",fontFamily:'Monaco, \"Courier New\", monospace',fontSize:12,fontColor:\"black\",idealAlign:i}}function T(t){if(!t.parcatsViewModel.dragDimension&&-1===t.parcatsViewModel.hoverinfoItems.indexOf(\"skip\")){if(n.mouse(this)[1]<-1)return;var e,r=t.parcatsViewModel.graphDiv,i=r._fullLayout,s=i._paperdiv.node().getBoundingClientRect(),c=t.parcatsViewModel.hoveron;if(\"color\"===c?(!function(t){var e=n.select(t).datum(),r=w(e);x(r),r.each(function(){o.raiseToTop(this)}),n.select(t.parentNode).selectAll(\"rect.bandrect\").filter(function(t){return t.color===e.color}).each(function(){o.raiseToTop(this),n.select(this).attr(\"stroke\",\"black\").attr(\"stroke-width\",1.5)})}(this),M(this,\"plotly_hover\",n.event)):(!function(t){n.select(t.parentNode).selectAll(\"rect.bandrect\").each(function(t){var e=w(t);x(e),e.each(function(){o.raiseToTop(this)})}),n.select(t.parentNode).select(\"rect.catrect\").attr(\"stroke\",\"black\").attr(\"stroke-width\",2.5)}(this),k(this,\"plotly_hover\",n.event)),-1===t.parcatsViewModel.hoverinfoItems.indexOf(\"none\"))\"category\"===c?e=A(s,this):\"color\"===c?e=function(t,e){var r,i,a=e.getBoundingClientRect(),o=n.select(e).datum(),s=o.categoryViewModel,c=s.parcatsViewModel,u=c.model.dimensions[s.model.dimensionInd],f=a.y+a.height/2;c.dimensions.length>1&&u.displayInd===c.dimensions.length-1?(r=a.left,i=\"left\"):(r=a.left+a.width,i=\"right\");var h=s.model.categoryLabel,p=o.parcatsViewModel.model.count,d=0;o.categoryViewModel.bands.forEach(function(t){t.color===o.color&&(d+=t.count)});var g=s.model.count,v=0;c.pathSelection.each(function(t){t.model.color===o.color&&(v+=t.model.count)});var m=[];if(-1!==s.parcatsViewModel.hoverinfoItems.indexOf(\"count\")&&m.push([\"Count:\",d].join(\" \")),-1!==s.parcatsViewModel.hoverinfoItems.indexOf(\"probability\")){var y=\"P(color \\u2229 \"+h+\"): \"+(d/p).toFixed(3);m.push(y);var x=\"P(\"+h+\" | color): \"+(d/v).toFixed(3);m.push(x);var b=\"P(color | \"+h+\"): \"+(d/g).toFixed(3);m.push(b)}var _=m.join(\"<br>\"),w=l.mostReadable(o.color,[\"black\",\"white\"]);return{x:r-t.left,y:f-t.top,text:_,color:o.color,borderColor:\"black\",fontFamily:'Monaco, \"Courier New\", monospace',fontColor:w,fontSize:10,idealAlign:i}}(s,this):\"dimension\"===c&&(e=function(t,e){var r=[];return n.select(e.parentNode.parentNode).selectAll(\"g.category\").select(\"rect.catrect\").each(function(){r.push(A(t,this))}),r}(s,this)),e&&a.multiHovers(e,{container:i._hoverlayer.node(),outerContainer:i._paper.node(),gd:r})}}function S(t){var e=t.parcatsViewModel;if(!e.dragDimension&&(y(e.pathSelection),b(e.dimensionSelection.selectAll(\"g.category\")),_(e.dimensionSelection.selectAll(\"g.category\").selectAll(\"rect.bandrect\")),a.loneUnhover(e.graphDiv._fullLayout._hoverlayer.node()),e.pathSelection.sort(p),-1===e.hoverinfoItems.indexOf(\"skip\"))){\"color\"===t.parcatsViewModel.hoveron?M(this,\"plotly_unhover\",n.event):k(this,\"plotly_unhover\",n.event)}}function E(t){\"fixed\"!==t.parcatsViewModel.arrangement&&(t.dragDimensionDisplayInd=t.model.displayInd,t.initialDragDimensionDisplayInds=t.parcatsViewModel.model.dimensions.map(function(t){return t.displayInd}),t.dragHasMoved=!1,t.dragCategoryDisplayInd=null,n.select(this).selectAll(\"g.category\").select(\"rect.catrect\").each(function(e){var r=n.mouse(this)[0],i=n.mouse(this)[1];-2<=r&&r<=e.width+2&&-2<=i&&i<=e.height+2&&(t.dragCategoryDisplayInd=e.model.displayInd,t.initialDragCategoryDisplayInds=t.model.categories.map(function(t){return t.displayInd}),e.model.dragY=e.y,o.raiseToTop(this.parentNode),n.select(this.parentNode).selectAll(\"rect.bandrect\").each(function(e){e.y<i&&i<=e.y+e.height&&(t.potentialClickBand=this)}))}),t.parcatsViewModel.dragDimension=t,a.loneUnhover(t.parcatsViewModel.graphDiv._fullLayout._hoverlayer.node()))}function C(t){if(\"fixed\"!==t.parcatsViewModel.arrangement&&(t.dragHasMoved=!0,null!==t.dragDimensionDisplayInd)){var e=t.dragDimensionDisplayInd,r=e-1,i=e+1,a=t.parcatsViewModel.dimensions[e];if(null!==t.dragCategoryDisplayInd){var o=a.categories[t.dragCategoryDisplayInd];o.model.dragY+=n.event.dy;var s=o.model.dragY,l=o.model.displayInd,c=a.categories,u=c[l-1],f=c[l+1];void 0!==u&&s<u.y+u.height/2&&(o.model.displayInd=u.model.displayInd,u.model.displayInd=l),void 0!==f&&s+o.height>f.y+f.height/2&&(o.model.displayInd=f.model.displayInd,f.model.displayInd=l),t.dragCategoryDisplayInd=o.model.displayInd}if(null===t.dragCategoryDisplayInd||\"freeform\"===t.parcatsViewModel.arrangement){a.model.dragX=n.event.x;var h=t.parcatsViewModel.dimensions[r],p=t.parcatsViewModel.dimensions[i];void 0!==h&&a.model.dragX<h.x+h.width&&(a.model.displayInd=h.model.displayInd,h.model.displayInd=e),void 0!==p&&a.model.dragX+a.width>p.x&&(a.model.displayInd=p.model.displayInd,p.model.displayInd=t.dragDimensionDisplayInd),t.dragDimensionDisplayInd=a.model.displayInd}R(t.parcatsViewModel),D(t.parcatsViewModel),I(t.parcatsViewModel),O(t.parcatsViewModel)}}function L(t){if(\"fixed\"!==t.parcatsViewModel.arrangement&&null!==t.dragDimensionDisplayInd){n.select(this).selectAll(\"text\").attr(\"font-weight\",\"normal\");var e={},r=z(t.parcatsViewModel),a=t.parcatsViewModel.model.dimensions.map(function(t){return t.displayInd}),o=t.initialDragDimensionDisplayInds.some(function(t,e){return t!==a[e]});o&&a.forEach(function(r,n){var i=t.parcatsViewModel.model.dimensions[n].containerInd;e[\"dimensions[\"+i+\"].displayindex\"]=r});var s=!1;if(null!==t.dragCategoryDisplayInd){var l=t.model.categories.map(function(t){return t.displayInd});if(s=t.initialDragCategoryDisplayInds.some(function(t,e){return t!==l[e]})){var c=t.model.categories.slice().sort(function(t,e){return t.displayInd-e.displayInd}),u=c.map(function(t){return t.categoryValue}),f=c.map(function(t){return t.categoryLabel});e[\"dimensions[\"+t.model.containerInd+\"].categoryarray\"]=[u],e[\"dimensions[\"+t.model.containerInd+\"].ticktext\"]=[f],e[\"dimensions[\"+t.model.containerInd+\"].categoryorder\"]=\"array\"}}if(-1===t.parcatsViewModel.hoverinfoItems.indexOf(\"skip\")&&!t.dragHasMoved&&t.potentialClickBand&&(\"color\"===t.parcatsViewModel.hoveron?M(t.potentialClickBand,\"plotly_click\",n.event.sourceEvent):k(t.potentialClickBand,\"plotly_click\",n.event.sourceEvent)),t.model.dragX=null,null!==t.dragCategoryDisplayInd)t.parcatsViewModel.dimensions[t.dragDimensionDisplayInd].categories[t.dragCategoryDisplayInd].model.dragY=null,t.dragCategoryDisplayInd=null;t.dragDimensionDisplayInd=null,t.parcatsViewModel.dragDimension=null,t.dragHasMoved=null,t.potentialClickBand=null,R(t.parcatsViewModel),D(t.parcatsViewModel),n.transition().duration(300).ease(\"cubic-in-out\").each(function(){I(t.parcatsViewModel,!0),O(t.parcatsViewModel,!0)}).each(\"end\",function(){(o||s)&&i.restyle(t.parcatsViewModel.graphDiv,e,[r])})}}function z(t){for(var e,r=t.graphDiv._fullData,n=0;n<r.length;n++)if(t.key===r[n].uid){e=n;break}return e}function O(t,e){var r;void 0===e&&(e=!1),t.pathSelection.data(function(t){return t.paths},f),(r=t.pathSelection,e?r.transition():r).attr(\"d\",function(t){return t.svgD})}function I(t,e){function r(t){return e?t.transition():t}void 0===e&&(e=!1),t.dimensionSelection.data(function(t){return t.dimensions},f);var i=t.dimensionSelection.selectAll(\"g.category\").data(function(t){return t.categories},f);r(t.dimensionSelection).attr(\"transform\",function(t){return\"translate(\"+t.x+\", 0)\"}),r(i).attr(\"transform\",function(t){return\"translate(0, \"+t.y+\")\"}),i.select(\".dimlabel\").text(function(t,e){return 0===e?t.parcatsViewModel.model.dimensions[t.model.dimensionInd].dimensionLabel:null}),i.select(\".catlabel\").attr(\"text-anchor\",function(t){return h(t)?\"start\":\"end\"}).attr(\"x\",function(t){return h(t)?t.width+5:-5}).each(function(t){var e,r;h(t)?(e=t.width+5,r=\"start\"):(e=-5,r=\"end\"),n.select(this).selectAll(\"tspan\").attr(\"x\",e).attr(\"text-anchor\",r)});var a=i.selectAll(\"rect.bandrect\").data(function(t){return t.bands},f),s=a.enter().append(\"rect\").attr(\"class\",\"bandrect\").attr(\"cursor\",\"move\").attr(\"stroke-opacity\",0).attr(\"fill\",function(t){return t.color}).attr(\"fill-opacity\",0);a.attr(\"fill\",function(t){return t.color}).attr(\"width\",function(t){return t.width}).attr(\"height\",function(t){return t.height}).attr(\"y\",function(t){return t.y}),_(s),a.each(function(){o.raiseToTop(this)}),a.exit().remove()}function P(t,e,r,i,a){var o,s,l=[],c=[];for(s=0;s<r.length-1;s++)o=n.interpolateNumber(r[s]+t[s],t[s+1]),l.push(o(a)),c.push(o(1-a));var u=\"M \"+t[0]+\",\"+e[0];for(u+=\"l\"+r[0]+\",0 \",s=1;s<r.length;s++)u+=\"C\"+l[s-1]+\",\"+e[s-1]+\" \"+c[s-1]+\",\"+e[s]+\" \"+t[s]+\",\"+e[s],u+=\"l\"+r[s]+\",0 \";for(u+=\"l0,\"+i+\" \",u+=\"l -\"+r[r.length-1]+\",0 \",s=r.length-2;s>=0;s--)u+=\"C\"+c[s]+\",\"+(e[s+1]+i)+\" \"+l[s]+\",\"+(e[s]+i)+\" \"+(t[s]+r[s])+\",\"+(e[s]+i),u+=\"l-\"+r[s]+\",0 \";return u+=\"Z\"}function D(t){var e=t.dimensions,r=t.model,n=e.map(function(t){return t.categories.map(function(t){return t.y})}),i=t.model.dimensions.map(function(t){return t.categories.map(function(t){return t.displayInd})}),a=t.model.dimensions.map(function(t){return t.displayInd}),o=t.dimensions.map(function(t){return t.model.dimensionInd}),s=e.map(function(t){return t.x}),l=e.map(function(t){return t.width}),c=[];for(var u in r.paths)r.paths.hasOwnProperty(u)&&c.push(r.paths[u]);function f(t){var e=t.categoryInds.map(function(t,e){return i[e][t]});return o.map(function(t){return e[t]})}c.sort(function(e,r){var n=f(e),i=f(r);return\"backward\"===t.sortpaths&&(n.reverse(),i.reverse()),n.push(e.valueInds[0]),i.push(r.valueInds[0]),t.bundlecolors&&(n.unshift(e.rawColor),i.unshift(r.rawColor)),n<i?-1:n>i?1:0});for(var h=new Array(c.length),p=e[0].model.count,d=e[0].categories.map(function(t){return t.height}).reduce(function(t,e){return t+e}),g=0;g<c.length;g++){var v,m=c[g];v=p>0?d*(m.count/p):0;for(var y,x=new Array(n.length),b=0;b<m.categoryInds.length;b++){var _=m.categoryInds[b],w=i[b][_],k=a[b];x[k]=n[k][w],n[k][w]+=v;var M=t.dimensions[k].categories[w],A=M.bands.length,T=M.bands[A-1];if(void 0===T||m.rawColor!==T.rawColor){var S=void 0===T?0:T.y+T.height;M.bands.push({key:S,color:m.color,rawColor:m.rawColor,height:v,width:M.width,count:m.count,y:S,categoryViewModel:M,parcatsViewModel:t})}else{var E=M.bands[A-1];E.height+=v,E.count+=m.count}}y=\"hspline\"===t.pathShape?P(s,x,l,v,.5):P(s,x,l,v,0),h[g]={key:m.valueInds[0],model:m,height:v,leftXs:s,topYs:x,dimWidths:l,svgD:y,parcatsViewModel:t}}t.paths=h}function R(t){var e=t.model.dimensions.map(function(t){return{displayInd:t.displayInd,dimensionInd:t.dimensionInd}});e.sort(function(t,e){return t.displayInd-e.displayInd});var r=[];for(var n in e){var i=e[n].dimensionInd,a=t.model.dimensions[i];r.push(B(t,a))}t.dimensions=r}function B(t,e){var r,n=t.model.dimensions.length,i=e.displayInd;r=40+(n>1?(t.width-80-16)/(n-1):0)*i;var a,o,s,l,c,u=[],f=t.model.maxCats,h=e.categories.length,p=e.count,d=t.height-8*(f-1),g=8*(f-h)/2,v=e.categories.map(function(t){return{displayInd:t.displayInd,categoryInd:t.categoryInd}});for(v.sort(function(t,e){return t.displayInd-e.displayInd}),c=0;c<h;c++)l=v[c].categoryInd,o=e.categories[l],a=p>0?o.count/p*d:0,s={key:o.valueInds[0],model:o,width:16,height:a,y:null!==o.dragY?o.dragY:g,bands:[],parcatsViewModel:t},g=g+a+8,u.push(s);return{key:e.dimensionInd,x:null!==e.dragX?e.dragX:r,y:0,width:16,model:e,categories:u,parcatsViewModel:t,dragCategoryDisplayInd:null,dragDimensionDisplayInd:null,initialDragDimensionDisplayInds:null,initialDragCategoryDisplayInds:null,dragHasMoved:null,potentialClickBand:null}}e.exports=function(t,e,r,n){u(r,t,n,e)}},{\"../../components/drawing\":595,\"../../components/fx\":612,\"../../lib\":696,\"../../lib/svg_text_utils\":720,\"../../plot_api/plot_api\":731,d3:148,tinycolor2:514}],1006:[function(t,e,r){\"use strict\";var n=t(\"./parcats\");e.exports=function(t,e,r,i){var a=t._fullLayout,o=a._paper,s=a._size;n(t,o,e,{width:s.w,height:s.h,margin:{t:s.t,r:s.r,b:s.b,l:s.l}},r,i)}},{\"./parcats\":1005}],1007:[function(t,e,r){\"use strict\";var n=t(\"../../components/colorscale/attributes\"),i=t(\"../../components/colorbar/attributes\"),a=t(\"../../plots/cartesian/layout_attributes\"),o=t(\"../../plots/font_attributes\"),s=t(\"../../plots/domain\").attributes,l=t(\"../../lib/extend\").extendFlat,c=t(\"../../plot_api/plot_template\").templatedArray;e.exports={domain:s({name:\"parcoords\",trace:!0,editType:\"calc\"}),hoverlabel:void 0,labelfont:o({editType:\"calc\"}),tickfont:o({editType:\"calc\"}),rangefont:o({editType:\"calc\"}),dimensions:c(\"dimension\",{label:{valType:\"string\",editType:\"calc\"},tickvals:l({},a.tickvals,{editType:\"calc\"}),ticktext:l({},a.ticktext,{editType:\"calc\"}),tickformat:{valType:\"string\",dflt:\"3s\",editType:\"calc\"},visible:{valType:\"boolean\",dflt:!0,editType:\"calc\"},range:{valType:\"info_array\",items:[{valType:\"number\",editType:\"calc\"},{valType:\"number\",editType:\"calc\"}],editType:\"calc\"},constraintrange:{valType:\"info_array\",freeLength:!0,dimensions:\"1-2\",items:[{valType:\"number\",editType:\"calc\"},{valType:\"number\",editType:\"calc\"}],editType:\"calc\"},multiselect:{valType:\"boolean\",dflt:!0,editType:\"calc\"},values:{valType:\"data_array\",editType:\"calc\"},editType:\"calc\"}),line:l(n(\"line\",{colorscaleDflt:\"Viridis\",autoColorDflt:!1,editTypeOverride:\"calc\"}),{colorbar:i,editType:\"calc\"})}},{\"../../components/colorbar/attributes\":571,\"../../components/colorscale/attributes\":577,\"../../lib/extend\":685,\"../../plot_api/plot_template\":734,\"../../plots/cartesian/layout_attributes\":757,\"../../plots/domain\":770,\"../../plots/font_attributes\":771}],1008:[function(t,e,r){\"use strict\";var n=t(\"./constants\"),i=t(\"d3\"),a=t(\"../../lib/gup\").keyFun,o=t(\"../../lib/gup\").repeat,s=t(\"../../lib\").sorterAsc,l=n.bar.snapRatio;function c(t,e){return t*(1-l)+e*l}var u=n.bar.snapClose;function f(t,e){return t*(1-u)+e*u}function h(t,e,r){if(d(e,r))return e;for(var n=t[0],i=n,a=1;a<t.length;a++){var o=t[a];if(e<f(n,o))return c(n,i);if(e<o||a===t.length-1)return c(o,n);i=n,n=o}}function p(t,e,r){if(d(e,r))return e;for(var n=t[t.length-1],i=n,a=t.length-2;a>=0;a--){var o=t[a];if(e>f(n,o))return c(n,i);if(e>o||a===t.length-1)return c(o,n);i=n,n=o}}function d(t,e){for(var r=0;r<e.length;r++)if(t>=e[r][0]&&t<=e[r][1])return!0;return!1}function g(t){t.attr(\"x\",-n.bar.captureWidth/2).attr(\"width\",n.bar.captureWidth)}function v(t){t.attr(\"visibility\",\"visible\").style(\"visibility\",\"visible\").attr(\"fill\",\"yellow\").attr(\"opacity\",0)}function m(t){if(!t.brush.filterSpecified)return\"0,\"+t.height;for(var e,r,n,i=y(t.brush.filter.getConsolidated(),t.height),a=[0],o=i.length?i[0][0]:null,s=0;s<i.length;s++)r=(e=i[s])[1]-e[0],a.push(o),a.push(r),(n=s+1)<i.length&&(o=i[n][0]-e[1]);return a.push(t.height),a}function y(t,e){return t.map(function(t){return t.map(function(t){return t*e}).sort(s)})}function x(){i.select(document.body).style(\"cursor\",null)}function b(t){t.attr(\"stroke-dasharray\",m)}function _(t,e){var r=i.select(t).selectAll(\".highlight, .highlight-shadow\");b(e?r.transition().duration(n.bar.snapDuration).each(\"end\",e):r)}function w(t,e){var r,i=t.brush,a=NaN,o={};if(i.filterSpecified){var s=t.height,l=i.filter.getConsolidated(),c=y(l,s),u=NaN,f=NaN,h=NaN;for(r=0;r<=c.length;r++){var p=c[r];if(p&&p[0]<=e&&e<=p[1]){u=r;break}if(f=r?r-1:NaN,p&&p[0]>e){h=r;break}}if(a=u,isNaN(a)&&(a=isNaN(f)||isNaN(h)?isNaN(f)?h:f:e-c[f][1]<c[h][0]-e?f:h),!isNaN(a)){var d=c[a],g=function(t,e){var r=n.bar.handleHeight;if(!(e>t[1]+r||e<t[0]-r))return e>=.9*t[1]+.1*t[0]?\"n\":e<=.9*t[0]+.1*t[1]?\"s\":\"ns\"}(d,e);g&&(o.interval=l[a],o.intervalPix=d,o.region=g)}}if(t.ordinal&&!o.region){var v=t.unitTickvals,m=t.unitToPaddedPx.invert(e);for(r=0;r<v.length;r++){var x=[.25*v[Math.max(r-1,0)]+.75*v[r],.25*v[Math.min(r+1,v.length-1)]+.75*v[r]];if(m>=x[0]&&m<=x[1]){o.clickableOrdinalRange=x;break}}}return o}function k(t){t.on(\"mousemove\",function(t){if(i.event.preventDefault(),!t.parent.inBrushDrag){var e=w(t,t.height-i.mouse(this)[1]-2*n.verticalPadding),r=\"crosshair\";e.clickableOrdinalRange?r=\"pointer\":e.region&&(r=e.region+\"-resize\"),i.select(document.body).style(\"cursor\",r)}}).on(\"mouseleave\",function(t){t.parent.inBrushDrag||x()}).call(i.behavior.drag().on(\"dragstart\",function(t){i.event.sourceEvent.stopPropagation();var e=t.height-i.mouse(this)[1]-2*n.verticalPadding,r=t.unitToPaddedPx.invert(e),a=t.brush,o=w(t,e),s=o.interval,l=a.svgBrush;if(l.wasDragged=!1,l.grabbingBar=\"ns\"===o.region,l.grabbingBar){var c=s.map(t.unitToPaddedPx);l.grabPoint=e-c[0]-n.verticalPadding,l.barLength=c[1]-c[0]}l.clickableOrdinalRange=o.clickableOrdinalRange,l.stayingIntervals=t.multiselect&&a.filterSpecified?a.filter.getConsolidated():[],s&&(l.stayingIntervals=l.stayingIntervals.filter(function(t){return t[0]!==s[0]&&t[1]!==s[1]})),l.startExtent=o.region?s[\"s\"===o.region?1:0]:r,t.parent.inBrushDrag=!0,l.brushStartCallback()}).on(\"drag\",function(t){i.event.sourceEvent.stopPropagation();var e=t.height-i.mouse(this)[1]-2*n.verticalPadding,r=t.brush.svgBrush;r.wasDragged=!0,r.grabbingBar?r.newExtent=[e-r.grabPoint,e+r.barLength-r.grabPoint].map(t.unitToPaddedPx.invert):r.newExtent=[r.startExtent,t.unitToPaddedPx.invert(e)].sort(s);var a=Math.max(0,-r.newExtent[0]),o=Math.max(0,r.newExtent[1]-1);r.newExtent[0]+=a,r.newExtent[1]-=o,r.grabbingBar&&(r.newExtent[1]+=a,r.newExtent[0]-=o),t.brush.filterSpecified=!0,r.extent=r.stayingIntervals.concat([r.newExtent]),r.brushCallback(t),_(this.parentNode)}).on(\"dragend\",function(t){i.event.sourceEvent.stopPropagation();var e=t.brush,r=e.filter,n=e.svgBrush,a=n.grabbingBar;if(n.grabbingBar=!1,n.grabLocation=void 0,t.parent.inBrushDrag=!1,x(),!n.wasDragged)return n.wasDragged=void 0,n.clickableOrdinalRange?e.filterSpecified&&t.multiselect?n.extent.push(n.clickableOrdinalRange):(n.extent=[n.clickableOrdinalRange],e.filterSpecified=!0):a?(n.extent=n.stayingIntervals,0===n.extent.length&&A(e)):A(e),n.brushCallback(t),_(this.parentNode),void n.brushEndCallback(e.filterSpecified?r.getConsolidated():[]);var o=function(){r.set(r.getConsolidated())};if(t.ordinal){var s=t.unitTickvals;s[s.length-1]<s[0]&&s.reverse(),n.newExtent=[h(s,n.newExtent[0],n.stayingIntervals),p(s,n.newExtent[1],n.stayingIntervals)];var l=n.newExtent[1]>n.newExtent[0];n.extent=n.stayingIntervals.concat(l?[n.newExtent]:[]),n.extent.length||A(e),n.brushCallback(t),l?_(this.parentNode,o):(o(),_(this.parentNode))}else o();n.brushEndCallback(e.filterSpecified?r.getConsolidated():[])}))}function M(t,e){return t[0]-e[0]}function A(t){t.filterSpecified=!1,t.svgBrush.extent=[[0,1]]}function T(t){for(var e,r=t.slice(),n=[],i=r.shift();i;){for(e=i.slice();(i=r.shift())&&i[0]<=e[1];)e[1]=Math.max(e[1],i[1]);n.push(e)}return n}e.exports={makeBrush:function(t,e,r,n,i,a){var o,l=function(){var t,e,r=[];return{set:function(n){r=n.map(function(t){return t.slice().sort(s)}).sort(M),t=T(r),e=r.reduce(function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]},[1/0,-1/0])},get:function(){return r.slice()},getConsolidated:function(){return t},getBounds:function(){return e}}}();return l.set(r),{filter:l,filterSpecified:e,svgBrush:{extent:[],brushStartCallback:n,brushCallback:(o=i,function(t){var e=t.brush,r=function(t){return t.svgBrush.extent.map(function(t){return t.slice()})}(e).slice();e.filter.set(r),o()}),brushEndCallback:a}}},ensureAxisBrush:function(t){var e=t.selectAll(\".\"+n.cn.axisBrush).data(o,a);e.enter().append(\"g\").classed(n.cn.axisBrush,!0),function(t){var e=t.selectAll(\".background\").data(o);e.enter().append(\"rect\").classed(\"background\",!0).call(g).call(v).style(\"pointer-events\",\"auto\").attr(\"transform\",\"translate(0 \"+n.verticalPadding+\")\"),e.call(k).attr(\"height\",function(t){return t.height-n.verticalPadding});var r=t.selectAll(\".highlight-shadow\").data(o);r.enter().append(\"line\").classed(\"highlight-shadow\",!0).attr(\"x\",-n.bar.width/2).attr(\"stroke-width\",n.bar.width+n.bar.strokeWidth).attr(\"stroke\",n.bar.strokeColor).attr(\"opacity\",n.bar.strokeOpacity).attr(\"stroke-linecap\",\"butt\"),r.attr(\"y1\",function(t){return t.height}).call(b);var i=t.selectAll(\".highlight\").data(o);i.enter().append(\"line\").classed(\"highlight\",!0).attr(\"x\",-n.bar.width/2).attr(\"stroke-width\",n.bar.width-n.bar.strokeWidth).attr(\"stroke\",n.bar.fillColor).attr(\"opacity\",n.bar.fillOpacity).attr(\"stroke-linecap\",\"butt\"),i.attr(\"y1\",function(t){return t.height}).call(b)}(e)},cleanRanges:function(t,e){if(Array.isArray(t[0])?(t=t.map(function(t){return t.sort(s)}),t=e.multiselect?T(t.sort(M)):[t[0]]):t=[t.sort(s)],e.tickvals){var r=e.tickvals.slice().sort(s);if(!(t=t.map(function(t){var e=[h(r,t[0],[]),p(r,t[1],[])];if(e[1]>e[0])return e}).filter(function(t){return t})).length)return}return t.length>1?t:t[0]}}},{\"../../lib\":696,\"../../lib/gup\":693,\"./constants\":1011,d3:148}],1009:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../../plots/get_data\").getModuleCalcData,a=t(\"./plot\"),o=t(\"../../constants/xmlns_namespaces\");r.name=\"parcoords\",r.plot=function(t){var e=i(t.calcdata,\"parcoords\")[0];e.length&&a(t,e)},r.clean=function(t,e,r,n){var i=n._has&&n._has(\"parcoords\"),a=e._has&&e._has(\"parcoords\");i&&!a&&(n._paperdiv.selectAll(\".parcoords\").remove(),n._glimages.selectAll(\"*\").remove())},r.toSVG=function(t){var e=t._fullLayout._glimages,r=n.select(t).selectAll(\".svg-container\");r.filter(function(t,e){return e===r.size()-1}).selectAll(\".gl-canvas-context, .gl-canvas-focus\").each(function(){var t=this.toDataURL(\"image/png\");e.append(\"svg:image\").attr({xmlns:o.svg,\"xlink:href\":t,preserveAspectRatio:\"none\",x:0,y:0,width:this.width,height:this.height})}),window.setTimeout(function(){n.selectAll(\"#filterBarPattern\").attr(\"id\",\"filterBarPattern\")},60)}},{\"../../constants/xmlns_namespaces\":674,\"../../plots/get_data\":781,\"./plot\":1017,d3:148}],1010:[function(t,e,r){\"use strict\";var n=t(\"../../components/colorscale/has_colorscale\"),i=t(\"../../components/colorscale/calc\"),a=t(\"../../lib\"),o=t(\"../../lib/gup\").wrap;e.exports=function(t,e){var r=!!e.line.colorscale&&a.isArrayOrTypedArray(e.line.color),s=r?e.line.color:function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=.5;return e}(e._length),l=r?e.line.colorscale:[[0,e.line.color],[1,e.line.color]];return n(e,\"line\")&&i(e,s,\"line\",\"c\"),o({lineColor:s,cscale:l})}},{\"../../components/colorscale/calc\":578,\"../../components/colorscale/has_colorscale\":584,\"../../lib\":696,\"../../lib/gup\":693}],1011:[function(t,e,r){\"use strict\";e.exports={maxDimensionCount:60,overdrag:45,verticalPadding:2,tickDistance:50,canvasPixelRatio:1,blockLineCount:5e3,layers:[\"contextLineLayer\",\"focusLineLayer\",\"pickLineLayer\"],axisTitleOffset:28,axisExtentOffset:10,bar:{width:4,captureWidth:10,fillColor:\"magenta\",fillOpacity:1,snapDuration:150,snapRatio:.25,snapClose:.01,strokeColor:\"white\",strokeOpacity:1,strokeWidth:1,handleHeight:8,handleOpacity:1,handleOverlap:0},cn:{axisExtentText:\"axis-extent-text\",parcoordsLineLayers:\"parcoords-line-layers\",parcoordsLineLayer:\"parcoords-lines\",parcoords:\"parcoords\",parcoordsControlView:\"parcoords-control-view\",yAxis:\"y-axis\",axisOverlays:\"axis-overlays\",axis:\"axis\",axisHeading:\"axis-heading\",axisTitle:\"axis-title\",axisExtent:\"axis-extent\",axisExtentTop:\"axis-extent-top\",axisExtentTopText:\"axis-extent-top-text\",axisExtentBottom:\"axis-extent-bottom\",axisExtentBottomText:\"axis-extent-bottom-text\",axisBrush:\"axis-brush\"},id:{filterBarPattern:\"filter-bar-pattern\"}}},{}],1012:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../components/colorscale/has_colorscale\"),a=t(\"../../components/colorscale/defaults\"),o=t(\"../../plots/domain\").defaults,s=t(\"../../plots/array_container_defaults\"),l=t(\"./attributes\"),c=t(\"./axisbrush\"),u=t(\"./constants\").maxDimensionCount,f=t(\"./merge_length\");function h(t,e){function r(r,i){return n.coerce(t,e,l.dimensions,r,i)}var i=r(\"values\"),a=r(\"visible\");if(i&&i.length||(a=e.visible=!1),a){r(\"label\"),r(\"tickvals\"),r(\"ticktext\"),r(\"tickformat\"),r(\"range\"),r(\"multiselect\");var o=r(\"constraintrange\");o&&(e.constraintrange=c.cleanRanges(o,e))}}e.exports=function(t,e,r,c){function p(r,i){return n.coerce(t,e,l,r,i)}var d=t.dimensions;Array.isArray(d)&&d.length>u&&(n.log(\"parcoords traces support up to \"+u+\" dimensions at the moment\"),d.splice(u));var g=s(t,e,{name:\"dimensions\",handleItemDefaults:h}),v=function(t,e,r,o,s){var l=s(\"line.color\",r);if(i(t,\"line\")&&n.isArrayOrTypedArray(l)){if(l.length)return s(\"line.colorscale\"),a(t,e,o,s,{prefix:\"line.\",cLetter:\"c\"}),l.length;e.line.color=r}return 1/0}(t,e,r,c,p);o(e,c,p),Array.isArray(g)&&g.length||(e.visible=!1),f(e,g,\"values\",v);var m={family:c.font.family,size:Math.round(c.font.size/1.2),color:c.font.color};n.coerceFont(p,\"labelfont\",m),n.coerceFont(p,\"tickfont\",m),n.coerceFont(p,\"rangefont\",m)}},{\"../../components/colorscale/defaults\":580,\"../../components/colorscale/has_colorscale\":584,\"../../lib\":696,\"../../plots/array_container_defaults\":740,\"../../plots/domain\":770,\"./attributes\":1007,\"./axisbrush\":1008,\"./constants\":1011,\"./merge_length\":1015}],1013:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.supplyDefaults=t(\"./defaults\"),n.calc=t(\"./calc\"),n.plot=t(\"./plot\"),n.colorbar={container:\"line\",min:\"cmin\",max:\"cmax\"},n.moduleType=\"trace\",n.name=\"parcoords\",n.basePlotModule=t(\"./base_plot\"),n.categories=[\"gl\",\"regl\",\"noOpacity\"],n.meta={},e.exports=n},{\"./attributes\":1007,\"./base_plot\":1009,\"./calc\":1010,\"./defaults\":1012,\"./plot\":1017}],1014:[function(t,e,r){\"use strict\";var n=t(\"glslify\"),i=n([\"precision highp float;\\n#define GLSLIFY 1\\n\\nattribute vec4 p0, p1, p2, p3,\\n p4, p5, p6, p7,\\n p8, p9, pa, pb,\\n pc, pd, pe;\\n\\nattribute vec4 pf;\\n\\nuniform mat4 dim1A, dim2A, dim1B, dim2B, dim1C, dim2C, dim1D, dim2D,\\n loA, hiA, loB, hiB, loC, hiC, loD, hiD;\\n\\nuniform vec2 resolution,\\n viewBoxPosition,\\n viewBoxSize;\\n\\nuniform sampler2D palette;\\nuniform sampler2D mask;\\nuniform float maskHeight;\\n\\nuniform vec2 colorClamp;\\n\\nvarying vec4 fragColor;\\n\\nvec4 unit_1 = vec4(1, 1, 1, 1);\\n\\nfloat val(mat4 p, mat4 v) {\\n return dot(matrixCompMult(p, v) * unit_1, unit_1);\\n}\\n\\nfloat axisY(\\n float x,\\n mat4 d[4],\\n mat4 dim1A, mat4 dim2A, mat4 dim1B, mat4 dim2B, mat4 dim1C, mat4 dim2C, mat4 dim1D, mat4 dim2D\\n ) {\\n\\n float y1 = val(d[0], dim1A) + val(d[1], dim1B) + val(d[2], dim1C) + val(d[3], dim1D);\\n float y2 = val(d[0], dim2A) + val(d[1], dim2B) + val(d[2], dim2C) + val(d[3], dim2D);\\n return y1 * (1.0 - x) + y2 * x;\\n}\\n\\nconst int bitsPerByte = 8;\\n\\nint mod2(int a) {\\n return a - 2 * (a / 2);\\n}\\n\\nint mod8(int a) {\\n return a - 8 * (a / 8);\\n}\\n\\nvec4 zero = vec4(0, 0, 0, 0);\\nvec4 unit_0 = vec4(1, 1, 1, 1);\\nvec2 xyProjection = vec2(1, 1);\\n\\nmat4 mclamp(mat4 m, mat4 lo, mat4 hi) {\\n return mat4(clamp(m[0], lo[0], hi[0]),\\n clamp(m[1], lo[1], hi[1]),\\n clamp(m[2], lo[2], hi[2]),\\n clamp(m[3], lo[3], hi[3]));\\n}\\n\\nbool mshow(mat4 p, mat4 lo, mat4 hi) {\\n return mclamp(p, lo, hi) == p;\\n}\\n\\nbool withinBoundingBox(\\n mat4 d[4],\\n mat4 loA, mat4 hiA, mat4 loB, mat4 hiB, mat4 loC, mat4 hiC, mat4 loD, mat4 hiD\\n ) {\\n\\n return mshow(d[0], loA, hiA) &&\\n mshow(d[1], loB, hiB) &&\\n mshow(d[2], loC, hiC) &&\\n mshow(d[3], loD, hiD);\\n}\\n\\nbool withinRasterMask(mat4 d[4], sampler2D mask, float height) {\\n bool result = true;\\n int bitInByteStepper;\\n float valY, valueY, scaleX;\\n int hit, bitmask, valX;\\n for(int i = 0; i < 4; i++) {\\n for(int j = 0; j < 4; j++) {\\n for(int k = 0; k < 4; k++) {\\n bitInByteStepper = mod8(j * 4 + k);\\n valX = i * 2 + j / 2;\\n valY = d[i][j][k];\\n valueY = valY * (height - 1.0) + 0.5;\\n scaleX = (float(valX) + 0.5) / 8.0;\\n hit = int(texture2D(mask, vec2(scaleX, (valueY + 0.5) / height))[3] * 255.0) / int(pow(2.0, float(bitInByteStepper)));\\n result = result && mod2(hit) == 1;\\n }\\n }\\n }\\n return result;\\n}\\n\\nvec4 position(\\n float depth,\\n vec2 resolution, vec2 viewBoxPosition, vec2 viewBoxSize,\\n mat4 dims[4],\\n float signum,\\n mat4 dim1A, mat4 dim2A, mat4 dim1B, mat4 dim2B, mat4 dim1C, mat4 dim2C, mat4 dim1D, mat4 dim2D,\\n mat4 loA, mat4 hiA, mat4 loB, mat4 hiB, mat4 loC, mat4 hiC, mat4 loD, mat4 hiD,\\n sampler2D mask, float maskHeight\\n ) {\\n\\n float x = 0.5 * signum + 0.5;\\n float y = axisY(x, dims, dim1A, dim2A, dim1B, dim2B, dim1C, dim2C, dim1D, dim2D);\\n\\n float show = float(\\n withinBoundingBox(dims, loA, hiA, loB, hiB, loC, hiC, loD, hiD)\\n && withinRasterMask(dims, mask, maskHeight)\\n );\\n\\n vec2 viewBoxXY = viewBoxPosition + viewBoxSize * vec2(x, y);\\n float depthOrHide = depth + 2.0 * (1.0 - show);\\n\\n return vec4(\\n xyProjection * (2.0 * viewBoxXY / resolution - 1.0),\\n depthOrHide,\\n 1.0\\n );\\n}\\n\\nvoid main() {\\n\\n float prominence = abs(pf[3]);\\n\\n mat4 p[4];\\n p[0] = mat4(p0, p1, p2, p3);\\n p[1] = mat4(p4, p5, p6, p7);\\n p[2] = mat4(p8, p9, pa, pb);\\n p[3] = mat4(pc, pd, pe, abs(pf));\\n\\n gl_Position = position(\\n 1.0 - prominence,\\n resolution, viewBoxPosition, viewBoxSize,\\n p,\\n sign(pf[3]),\\n dim1A, dim2A, dim1B, dim2B, dim1C, dim2C, dim1D, dim2D,\\n loA, hiA, loB, hiB, loC, hiC, loD, hiD,\\n mask, maskHeight\\n );\\n\\n float clampedColorIndex = clamp((prominence - colorClamp[0]) / (colorClamp[1] - colorClamp[0]), 0.0, 1.0);\\n fragColor = texture2D(palette, vec2((clampedColorIndex * 255.0 + 0.5) / 256.0, 0.5));\\n}\\n\"]),a=n([\"precision highp float;\\n#define GLSLIFY 1\\n\\nattribute vec4 p0, p1, p2, p3,\\n p4, p5, p6, p7,\\n p8, p9, pa, pb,\\n pc, pd, pe;\\n\\nattribute vec4 pf;\\n\\nuniform mat4 dim1A, dim2A, dim1B, dim2B, dim1C, dim2C, dim1D, dim2D;\\n\\nuniform vec2 resolution,\\n viewBoxPosition,\\n viewBoxSize;\\n\\nuniform sampler2D palette;\\n\\nuniform vec2 colorClamp;\\n\\nvarying vec4 fragColor;\\n\\nvec2 xyProjection = vec2(1, 1);\\n\\nvec4 unit = vec4(1, 1, 1, 1);\\n\\nfloat val(mat4 p, mat4 v) {\\n return dot(matrixCompMult(p, v) * unit, unit);\\n}\\n\\nfloat axisY(\\n float x,\\n mat4 d[4],\\n mat4 dim1A, mat4 dim2A, mat4 dim1B, mat4 dim2B, mat4 dim1C, mat4 dim2C, mat4 dim1D, mat4 dim2D\\n ) {\\n\\n float y1 = val(d[0], dim1A) + val(d[1], dim1B) + val(d[2], dim1C) + val(d[3], dim1D);\\n float y2 = val(d[0], dim2A) + val(d[1], dim2B) + val(d[2], dim2C) + val(d[3], dim2D);\\n return y1 * (1.0 - x) + y2 * x;\\n}\\n\\nvec4 position(\\n float depth,\\n vec2 resolution, vec2 viewBoxPosition, vec2 viewBoxSize,\\n mat4 dims[4],\\n float signum,\\n mat4 dim1A, mat4 dim2A, mat4 dim1B, mat4 dim2B, mat4 dim1C, mat4 dim2C, mat4 dim1D, mat4 dim2D\\n ) {\\n\\n float x = 0.5 * signum + 0.5;\\n float y = axisY(x, dims, dim1A, dim2A, dim1B, dim2B, dim1C, dim2C, dim1D, dim2D);\\n\\n vec2 viewBoxXY = viewBoxPosition + viewBoxSize * vec2(x, y);\\n\\n return vec4(\\n xyProjection * (2.0 * viewBoxXY / resolution - 1.0),\\n depth,\\n 1.0\\n );\\n}\\n\\nvoid main() {\\n\\n float prominence = abs(pf[3]);\\n\\n mat4 p[4];\\n p[0] = mat4(p0, p1, p2, p3);\\n p[1] = mat4(p4, p5, p6, p7);\\n p[2] = mat4(p8, p9, pa, pb);\\n p[3] = mat4(pc, pd, pe, abs(pf));\\n\\n gl_Position = position(\\n 1.0 - prominence,\\n resolution, viewBoxPosition, viewBoxSize,\\n p,\\n sign(pf[3]),\\n dim1A, dim2A, dim1B, dim2B, dim1C, dim2C, dim1D, dim2D\\n );\\n\\n float clampedColorIndex = clamp((prominence - colorClamp[0]) / (colorClamp[1] - colorClamp[0]), 0.0, 1.0);\\n fragColor = texture2D(palette, vec2((clampedColorIndex * 255.0 + 0.5) / 256.0, 0.5));\\n}\\n\"]),o=n([\"precision highp float;\\n#define GLSLIFY 1\\n\\nattribute vec4 p0, p1, p2, p3,\\n p4, p5, p6, p7,\\n p8, p9, pa, pb,\\n pc, pd, pe;\\n\\nattribute vec4 pf;\\n\\nuniform mat4 dim1A, dim2A, dim1B, dim2B, dim1C, dim2C, dim1D, dim2D,\\n loA, hiA, loB, hiB, loC, hiC, loD, hiD;\\n\\nuniform vec2 resolution,\\n viewBoxPosition,\\n viewBoxSize;\\n\\nuniform sampler2D mask;\\nuniform float maskHeight;\\n\\nuniform vec2 colorClamp;\\n\\nvarying vec4 fragColor;\\n\\nvec4 unit_1 = vec4(1, 1, 1, 1);\\n\\nfloat val(mat4 p, mat4 v) {\\n return dot(matrixCompMult(p, v) * unit_1, unit_1);\\n}\\n\\nfloat axisY(\\n float x,\\n mat4 d[4],\\n mat4 dim1A, mat4 dim2A, mat4 dim1B, mat4 dim2B, mat4 dim1C, mat4 dim2C, mat4 dim1D, mat4 dim2D\\n ) {\\n\\n float y1 = val(d[0], dim1A) + val(d[1], dim1B) + val(d[2], dim1C) + val(d[3], dim1D);\\n float y2 = val(d[0], dim2A) + val(d[1], dim2B) + val(d[2], dim2C) + val(d[3], dim2D);\\n return y1 * (1.0 - x) + y2 * x;\\n}\\n\\nconst int bitsPerByte = 8;\\n\\nint mod2(int a) {\\n return a - 2 * (a / 2);\\n}\\n\\nint mod8(int a) {\\n return a - 8 * (a / 8);\\n}\\n\\nvec4 zero = vec4(0, 0, 0, 0);\\nvec4 unit_0 = vec4(1, 1, 1, 1);\\nvec2 xyProjection = vec2(1, 1);\\n\\nmat4 mclamp(mat4 m, mat4 lo, mat4 hi) {\\n return mat4(clamp(m[0], lo[0], hi[0]),\\n clamp(m[1], lo[1], hi[1]),\\n clamp(m[2], lo[2], hi[2]),\\n clamp(m[3], lo[3], hi[3]));\\n}\\n\\nbool mshow(mat4 p, mat4 lo, mat4 hi) {\\n return mclamp(p, lo, hi) == p;\\n}\\n\\nbool withinBoundingBox(\\n mat4 d[4],\\n mat4 loA, mat4 hiA, mat4 loB, mat4 hiB, mat4 loC, mat4 hiC, mat4 loD, mat4 hiD\\n ) {\\n\\n return mshow(d[0], loA, hiA) &&\\n mshow(d[1], loB, hiB) &&\\n mshow(d[2], loC, hiC) &&\\n mshow(d[3], loD, hiD);\\n}\\n\\nbool withinRasterMask(mat4 d[4], sampler2D mask, float height) {\\n bool result = true;\\n int bitInByteStepper;\\n float valY, valueY, scaleX;\\n int hit, bitmask, valX;\\n for(int i = 0; i < 4; i++) {\\n for(int j = 0; j < 4; j++) {\\n for(int k = 0; k < 4; k++) {\\n bitInByteStepper = mod8(j * 4 + k);\\n valX = i * 2 + j / 2;\\n valY = d[i][j][k];\\n valueY = valY * (height - 1.0) + 0.5;\\n scaleX = (float(valX) + 0.5) / 8.0;\\n hit = int(texture2D(mask, vec2(scaleX, (valueY + 0.5) / height))[3] * 255.0) / int(pow(2.0, float(bitInByteStepper)));\\n result = result && mod2(hit) == 1;\\n }\\n }\\n }\\n return result;\\n}\\n\\nvec4 position(\\n float depth,\\n vec2 resolution, vec2 viewBoxPosition, vec2 viewBoxSize,\\n mat4 dims[4],\\n float signum,\\n mat4 dim1A, mat4 dim2A, mat4 dim1B, mat4 dim2B, mat4 dim1C, mat4 dim2C, mat4 dim1D, mat4 dim2D,\\n mat4 loA, mat4 hiA, mat4 loB, mat4 hiB, mat4 loC, mat4 hiC, mat4 loD, mat4 hiD,\\n sampler2D mask, float maskHeight\\n ) {\\n\\n float x = 0.5 * signum + 0.5;\\n float y = axisY(x, dims, dim1A, dim2A, dim1B, dim2B, dim1C, dim2C, dim1D, dim2D);\\n\\n float show = float(\\n withinBoundingBox(dims, loA, hiA, loB, hiB, loC, hiC, loD, hiD)\\n && withinRasterMask(dims, mask, maskHeight)\\n );\\n\\n vec2 viewBoxXY = viewBoxPosition + viewBoxSize * vec2(x, y);\\n float depthOrHide = depth + 2.0 * (1.0 - show);\\n\\n return vec4(\\n xyProjection * (2.0 * viewBoxXY / resolution - 1.0),\\n depthOrHide,\\n 1.0\\n );\\n}\\n\\nvoid main() {\\n\\n float prominence = abs(pf[3]);\\n\\n mat4 p[4];\\n p[0] = mat4(p0, p1, p2, p3);\\n p[1] = mat4(p4, p5, p6, p7);\\n p[2] = mat4(p8, p9, pa, pb);\\n p[3] = mat4(pc, pd, pe, abs(pf));\\n\\n gl_Position = position(\\n 1.0 - prominence,\\n resolution, viewBoxPosition, viewBoxSize,\\n p,\\n sign(pf[3]),\\n dim1A, dim2A, dim1B, dim2B, dim1C, dim2C, dim1D, dim2D,\\n loA, hiA, loB, hiB, loC, hiC, loD, hiD,\\n mask, maskHeight\\n );\\n\\n fragColor = vec4(pf.rgb, 1.0);\\n}\\n\"]),s=n([\"precision lowp float;\\n#define GLSLIFY 1\\n\\nvarying vec4 fragColor;\\n\\nvoid main() {\\n gl_FragColor = fragColor;\\n}\\n\"]),l=t(\"../../lib\"),c=1e-6,u=1e-7,f=2048,h=64,p=2,d=4,g=8,v=h/g,m=[119,119,119],y=new Uint8Array(4),x=new Uint8Array(4),b={shape:[256,1],format:\"rgba\",type:\"uint8\",mag:\"nearest\",min:\"nearest\"};function _(t,e,r,n,i){var a=t._gl;a.enable(a.SCISSOR_TEST),a.scissor(e,r,n,i),t.clear({color:[0,0,0,0],depth:1})}function w(t,e,r,n,i,a){var o=a.key;r.drawCompleted||(!function(t){t.read({x:0,y:0,width:1,height:1,data:y})}(t),r.drawCompleted=!0),function s(l){var c;c=Math.min(n,i-l*n),a.offset=p*l*n,a.count=p*c,0===l&&(window.cancelAnimationFrame(r.currentRafs[o]),delete r.currentRafs[o],_(t,a.scissorX,a.scissorY,a.scissorWidth,a.viewBoxSize[1])),r.clearOnly||(e(a),l*n+c<i&&(r.currentRafs[o]=window.requestAnimationFrame(function(){s(l+1)})),r.drawCompleted=!1)}(0)}function k(t,e){return(t>>>8*e)%256/255}function M(t,e,r){var n,i,a,o=[];for(i=0;i<t;i++)for(a=0;a<p;a++)for(n=0;n<d;n++)o.push(e[i*h+r*d+n]),r*d+n===h-1&&a%2==0&&(o[o.length-1]*=-1);return o}e.exports=function(t,e){var r,n,p,d,y,A=e.context,T=e.pick,S=e.regl,E={currentRafs:{},drawCompleted:!0,clearOnly:!1},C=function(t){for(var e={},r=0;r<16;r++)e[\"p\"+r.toString(16)]=t.buffer({usage:\"dynamic\",type:\"float\",data:new Uint8Array(0)});return e}(S),L=S.texture(b);O(e);var z=S({profile:!1,blend:{enable:A,func:{srcRGB:\"src alpha\",dstRGB:\"one minus src alpha\",srcAlpha:1,dstAlpha:1},equation:{rgb:\"add\",alpha:\"add\"},color:[0,0,0,0]},depth:{enable:!A,mask:!0,func:\"less\",range:[0,1]},cull:{enable:!0,face:\"back\"},scissor:{enable:!0,box:{x:S.prop(\"scissorX\"),y:S.prop(\"scissorY\"),width:S.prop(\"scissorWidth\"),height:S.prop(\"scissorHeight\")}},viewport:{x:S.prop(\"viewportX\"),y:S.prop(\"viewportY\"),width:S.prop(\"viewportWidth\"),height:S.prop(\"viewportHeight\")},dither:!1,vert:T?o:A?a:i,frag:s,primitive:\"lines\",lineWidth:1,attributes:C,uniforms:{resolution:S.prop(\"resolution\"),viewBoxPosition:S.prop(\"viewBoxPosition\"),viewBoxSize:S.prop(\"viewBoxSize\"),dim1A:S.prop(\"dim1A\"),dim2A:S.prop(\"dim2A\"),dim1B:S.prop(\"dim1B\"),dim2B:S.prop(\"dim2B\"),dim1C:S.prop(\"dim1C\"),dim2C:S.prop(\"dim2C\"),dim1D:S.prop(\"dim1D\"),dim2D:S.prop(\"dim2D\"),loA:S.prop(\"loA\"),hiA:S.prop(\"hiA\"),loB:S.prop(\"loB\"),hiB:S.prop(\"hiB\"),loC:S.prop(\"loC\"),hiC:S.prop(\"hiC\"),loD:S.prop(\"loD\"),hiD:S.prop(\"hiD\"),palette:L,mask:S.prop(\"maskTexture\"),maskHeight:S.prop(\"maskHeight\"),colorClamp:S.prop(\"colorClamp\")},offset:S.prop(\"offset\"),count:S.prop(\"count\")});function O(t){r=t.model,n=t.viewModel,p=n.dimensions.slice(),d=p[0]?p[0].values.length:0;var e=r.lines,i=T?e.color.map(function(t,r){return r/e.color.length}):e.color,a=Math.max(1/255,Math.pow(1/i.length,1/3)),o=function(t,e,r){for(var n,i=e.length,a=[],o=0;o<t;o++)for(var s=0;s<h;s++)a.push(s<i?e[s].paddedUnitValues[o]:s===h-1?(n=r[o],Math.max(c,Math.min(1-c,n))):s>=h-4?k(o,h-2-s):.5);return a}(d,p,i);!function(t,e,r){for(var n=0;n<16;n++)t[\"p\"+n.toString(16)](M(e,r,n))}(C,d,o),L=S.texture(l.extendFlat({data:function(t,e,r){for(var n=[],i=0;i<256;i++){var a=t(i/255);n.push((e?m:a).concat(r))}return n}(r.unitToColor,A,Math.round(255*(A?a:1)))},b))}var I=[0,1];var P=[];function D(t,e,n,i,a,o,s,c,u,f,h){var p,d,g,v,m=[t,e],y=[0,1].map(function(){return[0,1,2,3].map(function(){return new Float32Array(16)})});for(p=0;p<2;p++)for(v=m[p],d=0;d<4;d++)for(g=0;g<16;g++)y[p][d][g]=g+16*d===v?1:0;var x=r.lines.canvasOverdrag,b=r.domain,_=r.canvasWidth,w=r.canvasHeight;return l.extendFlat({key:s,resolution:[_,w],viewBoxPosition:[n+x,i],viewBoxSize:[a,o],i:t,ii:e,dim1A:y[0][0],dim1B:y[0][1],dim1C:y[0][2],dim1D:y[0][3],dim2A:y[1][0],dim2B:y[1][1],dim2C:y[1][2],dim2D:y[1][3],colorClamp:I,scissorX:(c===u?0:n+x)+(r.pad.l-x)+r.layoutWidth*b.x[0],scissorWidth:(c===f?_-n+x:a+.5)+(c===u?n+x:0),scissorY:i+r.pad.b+r.layoutHeight*b.y[0],scissorHeight:o,viewportX:r.pad.l-x+r.layoutWidth*b.x[0],viewportY:r.pad.b+r.layoutHeight*b.y[0],viewportWidth:_,viewportHeight:w},h)}return{setColorDomain:function(t){I[0]=t[0],I[1]=t[1]},render:function(t,e,n){var i,a,o,s=t.length,l=1/0,c=-1/0;for(i=0;i<s;i++)t[i].dim2.canvasX>c&&(c=t[i].dim2.canvasX,o=i),t[i].dim1.canvasX<l&&(l=t[i].dim1.canvasX,a=i);0===s&&_(S,0,0,r.canvasWidth,r.canvasHeight);var h=A?{}:function(){var t,e,r,n=[0,1].map(function(){return[0,1,2,3].map(function(){return new Float32Array(16)})});for(t=0;t<2;t++)for(e=0;e<4;e++)for(r=0;r<16;r++){var i,a=r+16*e;i=a<p.length?p[a].brush.filter.getBounds()[t]:t,n[t][e][r]=i+(2*t-1)*u}function o(t,e){var r=f-1;return[Math.max(0,Math.floor(e[0]*r)),Math.min(r,Math.ceil(e[1]*r))]}for(var s=Array.apply(null,new Array(f*v)).map(function(){return 255}),l=0;l<p.length;l++){var c=l%g,h=(l-c)/g,d=Math.pow(2,c),m=p[l],x=m.brush.filter.get();if(!(x.length<2))for(var b=o(0,x[0])[1],_=1;_<x.length;_++){for(var w=o(0,x[_]),k=b+1;k<w[0];k++)s[k*v+h]&=~d;b=Math.max(b,w[1])}}var M={shape:[v,f],format:\"alpha\",type:\"uint8\",mag:\"nearest\",min:\"nearest\",data:s};return y?y(M):y=S.texture(M),{maskTexture:y,maskHeight:f,loA:n[0][0],loB:n[0][1],loC:n[0][2],loD:n[0][3],hiA:n[1][0],hiB:n[1][1],hiC:n[1][2],hiD:n[1][3]}}();for(i=0;i<s;i++){var m=t[i],x=m.dim1,b=x.crossfilterDimensionIndex,k=m.canvasX,M=m.canvasY,T=m.dim2.crossfilterDimensionIndex,C=m.panelSizeX,L=m.panelSizeY,O=k+C;if(e||!P[b]||P[b][0]!==k||P[b][1]!==O){P[b]=[k,O];var I=D(b,T,k,M,C,L,x.crossfilterDimensionIndex,i,a,o,h);E.clearOnly=n,w(S,z,E,e?r.lines.blockLineCount:d,d,I)}}},readPixel:function(t,e){return S.read({x:t,y:e,width:1,height:1,data:x}),x},readPixels:function(t,e,r,n){var i=new Uint8Array(4*r*n);return S.read({x:t,y:e,width:r,height:n,data:i}),i},destroy:function(){for(var e in t.style[\"pointer-events\"]=\"none\",L.destroy(),y&&y.destroy(),C)C[e].destroy()},update:O}}},{\"../../lib\":696,glslify:392}],1015:[function(t,e,r){\"use strict\";e.exports=function(t,e,r,n){var i,a;for(n||(n=1/0),i=0;i<e.length;i++)(a=e[i]).visible&&(n=Math.min(n,a[r].length));for(n===1/0&&(n=0),t._length=n,i=0;i<e.length;i++)(a=e[i]).visible&&(a._length=n);return n}},{}],1016:[function(t,e,r){\"use strict\";var n=t(\"./lines\"),i=t(\"./constants\"),a=t(\"../../lib\"),o=t(\"d3\"),s=t(\"../../components/drawing\"),l=t(\"../../lib/gup\"),c=l.keyFun,u=l.repeat,f=l.unwrap,h=t(\"./axisbrush\");function p(t){return!(\"visible\"in t)||t.visible}function d(t){var e=t.range?t.range[0]:a.aggNums(Math.min,null,t.values,t._length),r=t.range?t.range[1]:a.aggNums(Math.max,null,t.values,t._length);return!isNaN(e)&&isFinite(e)||(e=0),!isNaN(r)&&isFinite(r)||(r=0),e===r&&(0===e?(e-=1,r+=1):(e*=.9,r*=1.1)),[e,r]}function g(t){return t.dimensions.some(function(t){return t.brush.filterSpecified})}function v(t,e,r){var n=f(e),s=n.trace,l=n.lineColor,c=n.cscale,u=s.line,h=s.domain,g=s.dimensions,v=t.width,m=s.labelfont,y=s.tickfont,x=s.rangefont,b=a.extendDeepNoArrays({},u,{color:l.map(o.scale.linear().domain(d({values:l,range:[u.cmin,u.cmax],_length:s._length}))),blockLineCount:i.blockLineCount,canvasOverdrag:i.overdrag*i.canvasPixelRatio}),_=Math.floor(v*(h.x[1]-h.x[0])),w=Math.floor(t.height*(h.y[1]-h.y[0])),k=t.margin||{l:80,r:80,t:100,b:80},M=_,A=w;return{key:r,colCount:g.filter(p).length,dimensions:g,tickDistance:i.tickDistance,unitToColor:function(t){var e=t.map(function(t){return t[0]}),r=t.map(function(t){return o.rgb(t[1])}),n=\"rgb\".split(\"\").map(function(t){return o.scale.linear().clamp(!0).domain(e).range(r.map((n=t,function(t){return t[n]})));var n});return function(t){return n.map(function(e){return e(t)})}}(c),lines:b,labelFont:m,tickFont:y,rangeFont:x,layoutWidth:v,layoutHeight:t.height,domain:h,translateX:h.x[0]*v,translateY:t.height-h.y[1]*t.height,pad:k,canvasWidth:M*i.canvasPixelRatio+2*b.canvasOverdrag,canvasHeight:A*i.canvasPixelRatio,width:M,height:A,canvasPixelRatio:i.canvasPixelRatio}}function m(t,e,r){var n=r.width,s=r.height,l=r.dimensions,c=r.canvasPixelRatio,u=function(t){return n*t/Math.max(1,r.colCount-1)},f=i.verticalPadding/s,v=function(t,e){return o.scale.linear().range([e,t-e])}(s,i.verticalPadding),m={key:r.key,xScale:u,model:r,inBrushDrag:!1},y={};return m.dimensions=l.filter(p).map(function(n,l){var p=function(t,e){return o.scale.linear().domain(d(t)).range([e,1-e])}(n,f),x=y[n.label];y[n.label]=(x||0)+1;var b=n.label+(x?\"__\"+x:\"\"),_=n.constraintrange,w=_&&_.length;w&&!Array.isArray(_[0])&&(_=[_]);var k=w?_.map(function(t){return t.map(p)}):[[0,1]],M=n.values;M.length>n._length&&(M=M.slice(0,n._length));var A,T=n.tickvals;function S(t,e){return{val:t,text:A[e]}}function E(t,e){return t.val-e.val}if(Array.isArray(T)&&T.length){A=n.ticktext,Array.isArray(A)&&A.length?A.length>T.length?A=A.slice(0,T.length):T.length>A.length&&(T=T.slice(0,A.length)):A=T.map(o.format(n.tickformat));for(var C=1;C<T.length;C++)if(T[C]<T[C-1]){for(var L=T.map(S).sort(E),z=0;z<T.length;z++)T[z]=L[z].val,A[z]=L[z].text;break}}else T=void 0;return{key:b,label:n.label,tickFormat:n.tickformat,tickvals:T,ticktext:A,ordinal:!!T,multiselect:n.multiselect,xIndex:l,crossfilterDimensionIndex:l,visibleIndex:n._index,height:s,values:M,paddedUnitValues:M.map(p),unitTickvals:T&&T.map(p),xScale:u,x:u(l),canvasX:u(l)*c,unitToPaddedPx:v,domainScale:function(t,e,r,n,i){var a,s,l=d(r);return n?o.scale.ordinal().domain(n.map((a=o.format(r.tickformat),s=i,s?function(t,e){var r=s[e];return null==r?a(t):r}:a))).range(n.map(function(r){var n=(r-l[0])/(l[1]-l[0]);return t-e+n*(2*e-t)})):o.scale.linear().domain(l).range([t-e,e])}(s,i.verticalPadding,n,T,A),ordinalScale:function(t){if(t.tickvals){var e=d(t);return o.scale.ordinal().domain(t.tickvals).range(t.tickvals.map(function(t){return(t-e[0])/(e[1]-e[0])}))}}(n),parent:m,model:r,brush:h.makeBrush(t,w,k,function(){t.linePickActive(!1)},function(){var e=m;e.focusLayer&&e.focusLayer.render(e.panels,!0);var r=g(e);!t.contextShown()&&r?(e.contextLayer&&e.contextLayer.render(e.panels,!0),t.contextShown(!0)):t.contextShown()&&!r&&(e.contextLayer&&e.contextLayer.render(e.panels,!0,!0),t.contextShown(!1))},function(r){var i=m;if(i.focusLayer.render(i.panels,!0),i.pickLayer&&i.pickLayer.render(i.panels,!0),t.linePickActive(!0),e&&e.filterChanged){var o=p.invert,s=r.map(function(t){return t.map(o).sort(a.sorterAsc)}).sort(function(t,e){return t[0]-e[0]});e.filterChanged(i.key,n._index,s)}})}}),m}function y(t){t.classed(i.cn.axisExtentText,!0).attr(\"text-anchor\",\"middle\").style(\"cursor\",\"default\").style(\"user-select\",\"none\")}e.exports=function(t,e,r,l,p,d){var x,b,_=(x=!0,b=!1,{linePickActive:function(t){return arguments.length?x=!!t:x},contextShown:function(t){return arguments.length?b=!!t:b}}),w=l.filter(function(t){return f(t).trace.visible}).map(v.bind(0,p)).map(m.bind(0,_,d));r.each(function(t,e){return a.extendFlat(t,w[e])});var k=r.selectAll(\".gl-canvas\").each(function(t){t.viewModel=w[0],t.model=t.viewModel?t.viewModel.model:null}),M=null;k.filter(function(t){return t.pick}).style(\"pointer-events\",\"auto\").on(\"mousemove\",function(t){if(_.linePickActive()&&t.lineLayer&&d&&d.hover){var e=o.event,r=this.width,n=this.height,i=o.mouse(this),a=i[0],s=i[1];if(a<0||s<0||a>=r||s>=n)return;var l=t.lineLayer.readPixel(a,n-1-s),c=0!==l[3],u=c?l[2]+256*(l[1]+256*l[0]):null,f={x:a,y:s,clientX:e.clientX,clientY:e.clientY,dataIndex:t.model.key,curveNumber:u};u!==M&&(c?d.hover(f):d.unhover&&d.unhover(f),M=u)}}),k.style(\"opacity\",function(t){return t.pick?.01:1}),e.style(\"background\",\"rgba(255, 255, 255, 0)\");var A=e.selectAll(\".\"+i.cn.parcoords).data(w,c);A.exit().remove(),A.enter().append(\"g\").classed(i.cn.parcoords,!0).style(\"shape-rendering\",\"crispEdges\").style(\"pointer-events\",\"none\"),A.attr(\"transform\",function(t){return\"translate(\"+t.model.translateX+\",\"+t.model.translateY+\")\"});var T=A.selectAll(\".\"+i.cn.parcoordsControlView).data(u,c);T.enter().append(\"g\").classed(i.cn.parcoordsControlView,!0),T.attr(\"transform\",function(t){return\"translate(\"+t.model.pad.l+\",\"+t.model.pad.t+\")\"});var S=T.selectAll(\".\"+i.cn.yAxis).data(function(t){return t.dimensions},c);function E(t,e){for(var r=e.panels||(e.panels=[]),n=t.data(),i=n.length-1,a=0;a<i;a++){var o=r[a]||(r[a]={}),s=n[a],l=n[a+1];o.dim1=s,o.dim2=l,o.canvasX=s.canvasX,o.panelSizeX=l.canvasX-s.canvasX,o.panelSizeY=e.model.canvasHeight,o.y=0,o.canvasY=0}}S.enter().append(\"g\").classed(i.cn.yAxis,!0),T.each(function(t){E(S,t)}),k.each(function(t){if(t.viewModel){!t.lineLayer||d?t.lineLayer=n(this,t):t.lineLayer.update(t),(t.key||0===t.key)&&(t.viewModel[t.key]=t.lineLayer);var e=!t.context||d;t.lineLayer.render(t.viewModel.panels,e)}}),S.attr(\"transform\",function(t){return\"translate(\"+t.xScale(t.xIndex)+\", 0)\"}),S.call(o.behavior.drag().origin(function(t){return t}).on(\"drag\",function(t){var e=t.parent;_.linePickActive(!1),t.x=Math.max(-i.overdrag,Math.min(t.model.width+i.overdrag,o.event.x)),t.canvasX=t.x*t.model.canvasPixelRatio,S.sort(function(t,e){return t.x-e.x}).each(function(e,r){e.xIndex=r,e.x=t===e?e.x:e.xScale(e.xIndex),e.canvasX=e.x*e.model.canvasPixelRatio}),E(S,e),S.filter(function(e){return 0!==Math.abs(t.xIndex-e.xIndex)}).attr(\"transform\",function(t){return\"translate(\"+t.xScale(t.xIndex)+\", 0)\"}),o.select(this).attr(\"transform\",\"translate(\"+t.x+\", 0)\"),S.each(function(r,n,i){i===t.parent.key&&(e.dimensions[n]=r)}),e.contextLayer&&e.contextLayer.render(e.panels,!1,!g(e)),e.focusLayer.render&&e.focusLayer.render(e.panels)}).on(\"dragend\",function(t){var e=t.parent;t.x=t.xScale(t.xIndex),t.canvasX=t.x*t.model.canvasPixelRatio,E(S,e),o.select(this).attr(\"transform\",function(t){return\"translate(\"+t.x+\", 0)\"}),e.contextLayer&&e.contextLayer.render(e.panels,!1,!g(e)),e.focusLayer&&e.focusLayer.render(e.panels),e.pickLayer&&e.pickLayer.render(e.panels,!0),_.linePickActive(!0),d&&d.axesMoved&&d.axesMoved(e.key,e.dimensions.map(function(t){return t.crossfilterDimensionIndex}))})),S.exit().remove();var C=S.selectAll(\".\"+i.cn.axisOverlays).data(u,c);C.enter().append(\"g\").classed(i.cn.axisOverlays,!0),C.selectAll(\".\"+i.cn.axis).remove();var L=C.selectAll(\".\"+i.cn.axis).data(u,c);L.enter().append(\"g\").classed(i.cn.axis,!0),L.each(function(t){var e=t.model.height/t.model.tickDistance,r=t.domainScale,n=r.domain();o.select(this).call(o.svg.axis().orient(\"left\").tickSize(4).outerTickSize(2).ticks(e,t.tickFormat).tickValues(t.ordinal?n:null).tickFormat(t.ordinal?function(t){return t}:null).scale(r)),s.font(L.selectAll(\"text\"),t.model.tickFont)}),L.selectAll(\".domain, .tick>line\").attr(\"fill\",\"none\").attr(\"stroke\",\"black\").attr(\"stroke-opacity\",.25).attr(\"stroke-width\",\"1px\"),L.selectAll(\"text\").style(\"text-shadow\",\"1px 1px 1px #fff, -1px -1px 1px #fff, 1px -1px 1px #fff, -1px 1px 1px #fff\").style(\"cursor\",\"default\").style(\"user-select\",\"none\");var z=C.selectAll(\".\"+i.cn.axisHeading).data(u,c);z.enter().append(\"g\").classed(i.cn.axisHeading,!0);var O=z.selectAll(\".\"+i.cn.axisTitle).data(u,c);O.enter().append(\"text\").classed(i.cn.axisTitle,!0).attr(\"text-anchor\",\"middle\").style(\"cursor\",\"ew-resize\").style(\"user-select\",\"none\").style(\"pointer-events\",\"auto\"),O.attr(\"transform\",\"translate(0,\"+-i.axisTitleOffset+\")\").text(function(t){return t.label}).each(function(t){s.font(o.select(this),t.model.labelFont)});var I=C.selectAll(\".\"+i.cn.axisExtent).data(u,c);I.enter().append(\"g\").classed(i.cn.axisExtent,!0);var P=I.selectAll(\".\"+i.cn.axisExtentTop).data(u,c);P.enter().append(\"g\").classed(i.cn.axisExtentTop,!0),P.attr(\"transform\",\"translate(0,\"+-i.axisExtentOffset+\")\");var D=P.selectAll(\".\"+i.cn.axisExtentTopText).data(u,c);function R(t,e){if(t.ordinal)return\"\";var r=t.domainScale.domain();return o.format(t.tickFormat)(r[e?r.length-1:0])}D.enter().append(\"text\").classed(i.cn.axisExtentTopText,!0).call(y),D.text(function(t){return R(t,!0)}).each(function(t){s.font(o.select(this),t.model.rangeFont)});var B=I.selectAll(\".\"+i.cn.axisExtentBottom).data(u,c);B.enter().append(\"g\").classed(i.cn.axisExtentBottom,!0),B.attr(\"transform\",function(t){return\"translate(0,\"+(t.model.height+i.axisExtentOffset)+\")\"});var F=B.selectAll(\".\"+i.cn.axisExtentBottomText).data(u,c);F.enter().append(\"text\").classed(i.cn.axisExtentBottomText,!0).attr(\"dy\",\"0.75em\").call(y),F.text(function(t){return R(t)}).each(function(t){s.font(o.select(this),t.model.rangeFont)}),h.ensureAxisBrush(C)}},{\"../../components/drawing\":595,\"../../lib\":696,\"../../lib/gup\":693,\"./axisbrush\":1008,\"./constants\":1011,\"./lines\":1014,d3:148}],1017:[function(t,e,r){\"use strict\";var n=t(\"./parcoords\"),i=t(\"../../lib/prepare_regl\");e.exports=function(t,e){var r=t._fullLayout,a=r._toppaper,o=r._paperdiv,s=r._glcontainer;if(i(t)){var l={},c={},u=r._size;e.forEach(function(e,r){l[r]=t.data[r].dimensions,c[r]=t.data[r].dimensions.slice()});n(o,a,s,e,{width:u.w,height:u.h,margin:{t:u.t,r:u.r,b:u.b,l:u.l}},{filterChanged:function(e,r,n){var i=c[e][r],a=n.map(function(t){return t.slice()});a.length?(1===a.length&&(a=a[0]),i.constraintrange=a,a=[a]):(delete i.constraintrange,a=null);var o={};o[\"dimensions[\"+r+\"].constraintrange\"]=a,t.emit(\"plotly_restyle\",[o,[e]])},hover:function(e){t.emit(\"plotly_hover\",e)},unhover:function(e){t.emit(\"plotly_unhover\",e)},axesMoved:function(e,r){function n(t){return!(\"visible\"in t)||t.visible}function i(t,e,r){var n=e.indexOf(r),i=t.indexOf(n);return-1===i&&(i+=e.length),i}var a=function(t){return function(e,n){return i(r,t,e)-i(r,t,n)}}(c[e].filter(n));l[e].sort(a),c[e].filter(function(t){return!n(t)}).sort(function(t){return c[e].indexOf(t)}).forEach(function(t){l[e].splice(l[e].indexOf(t),1),l[e].splice(c[e].indexOf(t),0,t)}),t.emit(\"plotly_restyle\")}})}}},{\"../../lib/prepare_regl\":709,\"./parcoords\":1016}],1018:[function(t,e,r){\"use strict\";var n=t(\"../../components/color/attributes\"),i=t(\"../../plots/font_attributes\"),a=t(\"../../plots/attributes\"),o=t(\"../../plots/domain\").attributes,s=t(\"../../lib/extend\").extendFlat,l=i({editType:\"calc\",arrayOk:!0,colorEditType:\"plot\"});e.exports={labels:{valType:\"data_array\",editType:\"calc\"},label0:{valType:\"number\",dflt:0,editType:\"calc\"},dlabel:{valType:\"number\",dflt:1,editType:\"calc\"},values:{valType:\"data_array\",editType:\"calc\"},marker:{colors:{valType:\"data_array\",editType:\"calc\"},line:{color:{valType:\"color\",dflt:n.defaultLine,arrayOk:!0,editType:\"style\"},width:{valType:\"number\",min:0,dflt:0,arrayOk:!0,editType:\"style\"},editType:\"calc\"},editType:\"calc\"},text:{valType:\"data_array\",editType:\"calc\"},hovertext:{valType:\"string\",dflt:\"\",arrayOk:!0,editType:\"style\"},scalegroup:{valType:\"string\",dflt:\"\",editType:\"calc\"},textinfo:{valType:\"flaglist\",flags:[\"label\",\"text\",\"value\",\"percent\"],extras:[\"none\"],editType:\"calc\"},hoverinfo:s({},a.hoverinfo,{flags:[\"label\",\"text\",\"value\",\"percent\",\"name\"]}),textposition:{valType:\"enumerated\",values:[\"inside\",\"outside\",\"auto\",\"none\"],dflt:\"auto\",arrayOk:!0,editType:\"calc\"},textfont:s({},l,{}),insidetextfont:s({},l,{}),outsidetextfont:s({},l,{}),title:{valType:\"string\",dflt:\"\",editType:\"calc\"},titleposition:{valType:\"enumerated\",values:[\"top left\",\"top center\",\"top right\",\"middle center\",\"bottom left\",\"bottom center\",\"bottom right\"],editType:\"calc\"},titlefont:s({},l,{}),domain:o({name:\"pie\",trace:!0,editType:\"calc\"}),hole:{valType:\"number\",min:0,max:1,dflt:0,editType:\"calc\"},sort:{valType:\"boolean\",dflt:!0,editType:\"calc\"},direction:{valType:\"enumerated\",values:[\"clockwise\",\"counterclockwise\"],dflt:\"counterclockwise\",editType:\"calc\"},rotation:{valType:\"number\",min:-360,max:360,dflt:0,editType:\"calc\"},pull:{valType:\"number\",min:0,max:1,dflt:0,arrayOk:!0,editType:\"calc\"}}},{\"../../components/color/attributes\":569,\"../../lib/extend\":685,\"../../plots/attributes\":741,\"../../plots/domain\":770,\"../../plots/font_attributes\":771}],1019:[function(t,e,r){\"use strict\";var n=t(\"../../registry\"),i=t(\"../../plots/get_data\").getModuleCalcData;r.name=\"pie\",r.plot=function(t){var e=n.getModule(\"pie\"),r=i(t.calcdata,e)[0];r.length&&e.plot(t,r)},r.clean=function(t,e,r,n){var i=n._has&&n._has(\"pie\"),a=e._has&&e._has(\"pie\");i&&!a&&n._pielayer.selectAll(\"g.trace\").remove()}},{\"../../plots/get_data\":781,\"../../registry\":827}],1020:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../../lib\").isArrayOrTypedArray,a=t(\"tinycolor2\"),o=t(\"../../components/color\"),s=t(\"./helpers\");r.calc=function(t,e){var r,l,c,u,f,h=e.values,p=i(h)&&h.length,d=e.labels,g=e.marker.colors||[],v=[],m=t._fullLayout,y=m._piecolormap,x={},b=0,_=m.hiddenlabels||[];if(e.dlabel)for(d=new Array(h.length),r=0;r<h.length;r++)d[r]=String(e.label0+r*e.dlabel);function w(t,e){return!!t&&(!!(t=a(t)).isValid()&&(t=o.addOpacity(t,t.getAlpha()),y[e]||(y[e]=t),t))}var k=(p?h:d).length;for(r=0;r<k;r++){if(p){if(l=h[r],!n(l))continue;if((l=+l)<0)continue}else l=1;void 0!==(c=d[r])&&\"\"!==c||(c=r);var M=x[c=String(c)];void 0===M?(x[c]=v.length,(u=-1!==_.indexOf(c))||(b+=l),v.push({v:l,label:c,color:w(g[r],c),i:r,pts:[r],hidden:u})):((f=v[M]).v+=l,f.pts.push(r),f.hidden||(b+=l),!1===f.color&&g[r]&&(f.color=w(g[r],c)))}if(e.sort&&v.sort(function(t,e){return e.v-t.v}),v[0]&&(v[0].vTotal=b),e.textinfo&&\"none\"!==e.textinfo){var A,T=-1!==e.textinfo.indexOf(\"label\"),S=-1!==e.textinfo.indexOf(\"text\"),E=-1!==e.textinfo.indexOf(\"value\"),C=-1!==e.textinfo.indexOf(\"percent\"),L=m.separators;for(r=0;r<v.length;r++){if(f=v[r],A=T?[f.label]:[],S){var z=s.getFirstFilled(e.text,f.pts);z&&A.push(z)}E&&A.push(s.formatPieValue(f.v,L)),C&&A.push(s.formatPiePercent(f.v/b,L)),f.text=A.join(\"<br>\")}}return v},r.crossTraceCalc=function(t){var e=t._fullLayout,r=t.calcdata,n=e.piecolorway,i=e._piecolormap;e.extendpiecolors&&(n=function(t){var e,r=JSON.stringify(t),n=l[r];if(!n){for(n=t.slice(),e=0;e<t.length;e++)n.push(a(t[e]).lighten(20).toHexString());for(e=0;e<t.length;e++)n.push(a(t[e]).darken(20).toHexString());l[r]=n}return n}(n));var o,s,c,u,f=0;for(o=0;o<r.length;o++)if(\"pie\"===(c=r[o])[0].trace.type)for(s=0;s<c.length;s++)!1===(u=c[s]).color&&(i[u.label]?u.color=i[u.label]:(i[u.label]=u.color=n[f%n.length],f++))};var l={}},{\"../../components/color\":570,\"../../lib\":696,\"./helpers\":1023,\"fast-isnumeric\":214,tinycolor2:514}],1021:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"./attributes\"),a=t(\"../../plots/domain\").defaults;e.exports=function(t,e,r,o){function s(r,a){return n.coerce(t,e,i,r,a)}var l,c=n.coerceFont,u=s(\"values\"),f=n.isArrayOrTypedArray(u),h=s(\"labels\");if(Array.isArray(h)?(l=h.length,f&&(l=Math.min(l,u.length))):f&&(l=u.length,s(\"label0\"),s(\"dlabel\")),l){e._length=l,s(\"marker.line.width\")&&s(\"marker.line.color\"),s(\"marker.colors\"),s(\"scalegroup\");var p=s(\"text\"),d=s(\"textinfo\",Array.isArray(p)?\"text+percent\":\"percent\");if(s(\"hovertext\"),d&&\"none\"!==d){var g=s(\"textposition\"),v=Array.isArray(g)||\"auto\"===g,m=v||\"inside\"===g,y=v||\"outside\"===g;if(m||y){var x=c(s,\"textfont\",o.font);if(m){var b=n.extendFlat({},x);!(t.textfont&&t.textfont.color)&&delete b.color,c(s,\"insidetextfont\",b)}y&&c(s,\"outsidetextfont\",x)}}a(e,o,s);var _=s(\"hole\");if(s(\"title\")){var w=s(\"titleposition\",_?\"middle center\":\"top center\");_||\"middle center\"!==w||(e.titleposition=\"top center\"),c(s,\"titlefont\",o.font)}s(\"sort\"),s(\"direction\"),s(\"rotation\"),s(\"pull\")}else e.visible=!1}},{\"../../lib\":696,\"../../plots/domain\":770,\"./attributes\":1018}],1022:[function(t,e,r){\"use strict\";var n=t(\"../../components/fx/helpers\").appendArrayMultiPointValues;e.exports=function(t,e){var r={curveNumber:e.index,pointNumbers:t.pts,data:e._input,fullData:e,label:t.label,color:t.color,value:t.v,v:t.v};return 1===t.pts.length&&(r.pointNumber=r.i=t.pts[0]),n(r,e,t.pts),r}},{\"../../components/fx/helpers\":609}],1023:[function(t,e,r){\"use strict\";var n=t(\"../../lib\");r.formatPiePercent=function(t,e){var r=(100*t).toPrecision(3);return-1!==r.lastIndexOf(\".\")&&(r=r.replace(/[.]?0+$/,\"\")),n.numSeparate(r,e)+\"%\"},r.formatPieValue=function(t,e){var r=t.toPrecision(10);return-1!==r.lastIndexOf(\".\")&&(r=r.replace(/[.]?0+$/,\"\")),n.numSeparate(r,e)},r.getFirstFilled=function(t,e){if(Array.isArray(t))for(var r=0;r<e.length;r++){var n=t[e[r]];if(n||0===n)return n}},r.castOption=function(t,e){return Array.isArray(t)?r.getFirstFilled(t,e):t||void 0}},{\"../../lib\":696}],1024:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.supplyDefaults=t(\"./defaults\"),n.supplyLayoutDefaults=t(\"./layout_defaults\"),n.layoutAttributes=t(\"./layout_attributes\");var i=t(\"./calc\");n.calc=i.calc,n.crossTraceCalc=i.crossTraceCalc,n.plot=t(\"./plot\"),n.style=t(\"./style\"),n.styleOne=t(\"./style_one\"),n.moduleType=\"trace\",n.name=\"pie\",n.basePlotModule=t(\"./base_plot\"),n.categories=[\"pie\",\"showLegend\"],n.meta={},e.exports=n},{\"./attributes\":1018,\"./base_plot\":1019,\"./calc\":1020,\"./defaults\":1021,\"./layout_attributes\":1025,\"./layout_defaults\":1026,\"./plot\":1027,\"./style\":1028,\"./style_one\":1029}],1025:[function(t,e,r){\"use strict\";e.exports={hiddenlabels:{valType:\"data_array\",editType:\"calc\"},piecolorway:{valType:\"colorlist\",editType:\"calc\"},extendpiecolors:{valType:\"boolean\",dflt:!0,editType:\"calc\"}}},{}],1026:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"./layout_attributes\");e.exports=function(t,e){function r(r,a){return n.coerce(t,e,i,r,a)}r(\"hiddenlabels\"),r(\"piecolorway\",e.colorway),r(\"extendpiecolors\")}},{\"../../lib\":696,\"./layout_attributes\":1025}],1027:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../../components/fx\"),a=t(\"../../components/color\"),o=t(\"../../components/drawing\"),s=t(\"../../lib\"),l=t(\"../../lib/svg_text_utils\"),c=t(\"./helpers\"),u=t(\"./event_data\");function f(t,e){if(t.v===e.vTotal&&!e.trace.hole)return 1;var r=Math.PI*Math.min(t.v/e.vTotal,.5);return Math.min(1/(1+1/Math.sin(r)),(1-e.trace.hole)/2)}function h(t,e){var r=e.pxmid[0],n=e.pxmid[1],i=t.width/2,a=t.height/2;return r<0&&(i*=-1),n<0&&(a*=-1),{scale:1,rCenter:1,rotate:0,x:i+Math.abs(a)*(i>0?1:-1)/2,y:a/(1+r*r/(n*n)),outside:!0}}function p(t,e){var r=t.trace,n=e.h*(r.domain.y[1]-r.domain.y[0]);return Math.min(t.titleBox.height,n/2)}function d(t){var e,r=t.pull;if(Array.isArray(r))for(r=0,e=0;e<t.pull.length;e++)t.pull[e]>r&&(r=t.pull[e]);return r}e.exports=function(t,e){var r=t._fullLayout;!function(t,e){for(var r,n,i=0;i<t.length;i++)if(r=t[i][0],(n=r.trace).title){var a=o.tester.append(\"text\").attr(\"data-notex\",1).text(n.title).call(o.font,n.titlefont).call(l.convertToTspans,e),s=o.bBox(a.node(),!0);r.titleBox={width:s.width,height:s.height},a.remove()}}(e,t),function(t,e){var r,n,i,a,o,s,l,c,u,f=[];for(i=0;i<t.length;i++)o=t[i][0],s=o.trace,r=e.w*(s.domain.x[1]-s.domain.x[0]),n=e.h*(s.domain.y[1]-s.domain.y[0]),s.title&&\"middle center\"!==s.titleposition&&(n-=p(o,e)),l=d(s),o.r=Math.min(r,n)/(2+2*l),o.cx=e.l+e.w*(s.domain.x[1]+s.domain.x[0])/2,o.cy=e.t+e.h*(1-s.domain.y[0])-n/2,s.title&&-1!==s.titleposition.indexOf(\"bottom\")&&(o.cy-=p(o,e)),s.scalegroup&&-1===f.indexOf(s.scalegroup)&&f.push(s.scalegroup);for(a=0;a<f.length;a++){for(u=1/0,c=f[a],i=0;i<t.length;i++)(o=t[i][0]).trace.scalegroup===c&&(u=Math.min(u,o.r*o.r/o.vTotal));for(i=0;i<t.length;i++)(o=t[i][0]).trace.scalegroup===c&&(o.r=Math.sqrt(u*o.vTotal))}}(e,r._size);var g=s.makeTraceGroups(r._pielayer,e,\"trace\").each(function(e){var g=n.select(this),v=e[0],m=v.trace;!function(t){var e,r,n,i=t[0],a=i.trace,o=a.rotation*Math.PI/180,s=2*Math.PI/i.vTotal,l=\"px0\",c=\"px1\";if(\"counterclockwise\"===a.direction){for(e=0;e<t.length&&t[e].hidden;e++);if(e===t.length)return;o+=s*t[e].v,s*=-1,l=\"px1\",c=\"px0\"}function u(t){return[i.r*Math.sin(t),-i.r*Math.cos(t)]}for(n=u(o),e=0;e<t.length;e++)(r=t[e]).hidden||(r[l]=n,o+=s*r.v/2,r.pxmid=u(o),r.midangle=o,o+=s*r.v/2,n=u(o),r[c]=n,r.largeArc=r.v>i.vTotal/2?1:0)}(e),g.attr(\"stroke-linejoin\",\"round\"),g.each(function(){var g=n.select(this).selectAll(\"g.slice\").data(e);g.enter().append(\"g\").classed(\"slice\",!0),g.exit().remove();var y=[[[],[]],[[],[]]],x=!1;g.each(function(e){if(e.hidden)n.select(this).selectAll(\"path,g\").remove();else{e.pointNumber=e.i,e.curveNumber=m.index,y[e.pxmid[1]<0?0:1][e.pxmid[0]<0?0:1].push(e);var p=v.cx,d=v.cy,g=n.select(this),b=g.selectAll(\"path.surface\").data([e]),_=!1,w=!1;if(b.enter().append(\"path\").classed(\"surface\",!0).style({\"pointer-events\":\"all\"}),g.select(\"path.textline\").remove(),g.on(\"mouseover\",function(){var a=t._fullLayout,o=t._fullData[m.index];if(!t._dragging&&!1!==a.hovermode){var s=o.hoverinfo;if(Array.isArray(s)&&(s=i.castHoverinfo({hoverinfo:[c.castOption(s,e.pts)],_module:m._module},a,0)),\"all\"===s&&(s=\"label+text+value+percent+name\"),\"none\"!==s&&\"skip\"!==s&&s){var l=f(e,v),h=p+e.pxmid[0]*(1-l),g=d+e.pxmid[1]*(1-l),y=r.separators,x=[];if(-1!==s.indexOf(\"label\")&&x.push(e.label),-1!==s.indexOf(\"text\")){var b=c.castOption(o.hovertext||o.text,e.pts);b&&x.push(b)}-1!==s.indexOf(\"value\")&&x.push(c.formatPieValue(e.v,y)),-1!==s.indexOf(\"percent\")&&x.push(c.formatPiePercent(e.v/v.vTotal,y));var k=m.hoverlabel,M=k.font;i.loneHover({x0:h-l*v.r,x1:h+l*v.r,y:g,text:x.join(\"<br>\"),name:-1!==s.indexOf(\"name\")?o.name:void 0,idealAlign:e.pxmid[0]<0?\"left\":\"right\",color:c.castOption(k.bgcolor,e.pts)||e.color,borderColor:c.castOption(k.bordercolor,e.pts),fontFamily:c.castOption(M.family,e.pts),fontSize:c.castOption(M.size,e.pts),fontColor:c.castOption(M.color,e.pts)},{container:a._hoverlayer.node(),outerContainer:a._paper.node(),gd:t}),_=!0}t.emit(\"plotly_hover\",{points:[u(e,o)],event:n.event}),w=!0}}).on(\"mouseout\",function(r){var a=t._fullLayout,o=t._fullData[m.index];w&&(r.originalEvent=n.event,t.emit(\"plotly_unhover\",{points:[u(e,o)],event:n.event}),w=!1),_&&(i.loneUnhover(a._hoverlayer.node()),_=!1)}).on(\"click\",function(){var r=t._fullLayout,a=t._fullData[m.index];t._dragging||!1===r.hovermode||(t._hoverdata=[u(e,a)],i.click(t,n.event))}),m.pull){var k=+c.castOption(m.pull,e.pts)||0;k>0&&(p+=k*e.pxmid[0],d+=k*e.pxmid[1])}e.cxFinal=p,e.cyFinal=d;var M=m.hole;if(e.v===v.vTotal){var A=\"M\"+(p+e.px0[0])+\",\"+(d+e.px0[1])+L(e.px0,e.pxmid,!0,1)+L(e.pxmid,e.px0,!0,1)+\"Z\";M?b.attr(\"d\",\"M\"+(p+M*e.px0[0])+\",\"+(d+M*e.px0[1])+L(e.px0,e.pxmid,!1,M)+L(e.pxmid,e.px0,!1,M)+\"Z\"+A):b.attr(\"d\",A)}else{var T=L(e.px0,e.px1,!0,1);if(M){var S=1-M;b.attr(\"d\",\"M\"+(p+M*e.px1[0])+\",\"+(d+M*e.px1[1])+L(e.px1,e.px0,!1,M)+\"l\"+S*e.px0[0]+\",\"+S*e.px0[1]+T+\"Z\")}else b.attr(\"d\",\"M\"+p+\",\"+d+\"l\"+e.px0[0]+\",\"+e.px0[1]+T+\"Z\")}var E=c.castOption(m.textposition,e.pts),C=g.selectAll(\"g.slicetext\").data(e.text&&\"none\"!==E?[0]:[]);C.enter().append(\"g\").classed(\"slicetext\",!0),C.exit().remove(),C.each(function(){var r=s.ensureSingle(n.select(this),\"text\",\"\",function(t){t.attr(\"data-notex\",1)});r.text(e.text).attr({class:\"slicetext\",transform:\"\",\"text-anchor\":\"middle\"}).call(o.font,\"outside\"===E?function(t,e,r){var n=c.castOption(t.outsidetextfont.color,e.pts)||c.castOption(t.textfont.color,e.pts)||r.color,i=c.castOption(t.outsidetextfont.family,e.pts)||c.castOption(t.textfont.family,e.pts)||r.family,a=c.castOption(t.outsidetextfont.size,e.pts)||c.castOption(t.textfont.size,e.pts)||r.size;return{color:n,family:i,size:a}}(m,e,t._fullLayout.font):function(t,e,r){var n=c.castOption(t.insidetextfont.color,e.pts);!n&&t._input.textfont&&(n=c.castOption(t._input.textfont.color,e.pts));var i=c.castOption(t.insidetextfont.family,e.pts)||c.castOption(t.textfont.family,e.pts)||r.family,o=c.castOption(t.insidetextfont.size,e.pts)||c.castOption(t.textfont.size,e.pts)||r.size;return{color:n||a.contrast(e.color),family:i,size:o}}(m,e,t._fullLayout.font)).call(l.convertToTspans,t);var i,u=o.bBox(r.node());\"outside\"===E?i=h(u,e):(i=function(t,e,r){var n=Math.sqrt(t.width*t.width+t.height*t.height),i=t.width/t.height,a=Math.PI*Math.min(e.v/r.vTotal,.5),o=1-r.trace.hole,s=f(e,r),l={scale:s*r.r*2/n,rCenter:1-s,rotate:0};if(l.scale>=1)return l;var c=i+1/(2*Math.tan(a)),u=r.r*Math.min(1/(Math.sqrt(c*c+.5)+c),o/(Math.sqrt(i*i+o/2)+i)),h={scale:2*u/t.height,rCenter:Math.cos(u/r.r)-u*i/r.r,rotate:(180/Math.PI*e.midangle+720)%180-90},p=1/i,d=p+1/(2*Math.tan(a)),g=r.r*Math.min(1/(Math.sqrt(d*d+.5)+d),o/(Math.sqrt(p*p+o/2)+p)),v={scale:2*g/t.width,rCenter:Math.cos(g/r.r)-g/i/r.r,rotate:(180/Math.PI*e.midangle+810)%180-90},m=v.scale>h.scale?v:h;return l.scale<1&&m.scale>l.scale?m:l}(u,e,v),\"auto\"===E&&i.scale<1&&(r.call(o.font,m.outsidetextfont),m.outsidetextfont.family===m.insidetextfont.family&&m.outsidetextfont.size===m.insidetextfont.size||(u=o.bBox(r.node())),i=h(u,e)));var g=p+e.pxmid[0]*i.rCenter+(i.x||0),y=d+e.pxmid[1]*i.rCenter+(i.y||0);i.outside&&(e.yLabelMin=y-u.height/2,e.yLabelMid=y,e.yLabelMax=y+u.height/2,e.labelExtraX=0,e.labelExtraY=0,x=!0),r.attr(\"transform\",\"translate(\"+g+\",\"+y+\")\"+(i.scale<1?\"scale(\"+i.scale+\")\":\"\")+(i.rotate?\"rotate(\"+i.rotate+\")\":\"\")+\"translate(\"+-(u.left+u.right)/2+\",\"+-(u.top+u.bottom)/2+\")\")})}function L(t,r,n,i){return\"a\"+i*v.r+\",\"+i*v.r+\" 0 \"+e.largeArc+(n?\" 1 \":\" 0 \")+i*(r[0]-t[0])+\",\"+i*(r[1]-t[1])}});var b=n.select(this).selectAll(\"g.titletext\").data(m.title?[0]:[]);b.enter().append(\"g\").classed(\"titletext\",!0),b.exit().remove(),b.each(function(){var e,i=s.ensureSingle(n.select(this),\"text\",\"\",function(t){t.attr(\"data-notex\",1)});i.text(m.title).attr({class:\"titletext\",transform:\"\",\"text-anchor\":\"middle\"}).call(o.font,m.titlefont).call(l.convertToTspans,t),e=\"middle center\"===m.titleposition?function(t){var e=Math.sqrt(t.titleBox.width*t.titleBox.width+t.titleBox.height*t.titleBox.height);return{x:t.cx,y:t.cy,scale:t.trace.hole*t.r*2/e,tx:0,ty:-t.titleBox.height/2+t.trace.titlefont.size}}(v):function(t,e){var r,n,i=1,a=1,o=t.trace,s={x:t.cx,y:t.cy},l={tx:0,ty:0};l.ty+=o.titlefont.size,n=d(o),-1!==o.titleposition.indexOf(\"top\")?(s.y-=(1+n)*t.r,l.ty-=t.titleBox.height):-1!==o.titleposition.indexOf(\"bottom\")&&(s.y+=(1+n)*t.r);-1!==o.titleposition.indexOf(\"left\")?(r=e.w*(o.domain.x[1]-o.domain.x[0])/2+t.r,s.x-=(1+n)*t.r,l.tx+=t.titleBox.width/2):-1!==o.titleposition.indexOf(\"center\")?r=e.w*(o.domain.x[1]-o.domain.x[0]):-1!==o.titleposition.indexOf(\"right\")&&(r=e.w*(o.domain.x[1]-o.domain.x[0])/2+t.r,s.x+=(1+n)*t.r,l.tx-=t.titleBox.width/2);return i=r/t.titleBox.width,a=p(t,e)/t.titleBox.height,{x:s.x,y:s.y,scale:Math.min(i,a),tx:l.tx,ty:l.ty}}(v,r._size),i.attr(\"transform\",\"translate(\"+e.x+\",\"+e.y+\")\"+(e.scale<1?\"scale(\"+e.scale+\")\":\"\")+\"translate(\"+e.tx+\",\"+e.ty+\")\")}),x&&function(t,e){var r,n,i,a,o,s,l,u,f,h,p,d,g;function v(t,e){return t.pxmid[1]-e.pxmid[1]}function m(t,e){return e.pxmid[1]-t.pxmid[1]}function y(t,r){r||(r={});var i,u,f,p,d,g,v=r.labelExtraY+(n?r.yLabelMax:r.yLabelMin),m=n?t.yLabelMin:t.yLabelMax,y=n?t.yLabelMax:t.yLabelMin,x=t.cyFinal+o(t.px0[1],t.px1[1]),b=v-m;if(b*l>0&&(t.labelExtraY=b),Array.isArray(e.pull))for(u=0;u<h.length;u++)(f=h[u])===t||(c.castOption(e.pull,t.pts)||0)>=(c.castOption(e.pull,f.pts)||0)||((t.pxmid[1]-f.pxmid[1])*l>0?(p=f.cyFinal+o(f.px0[1],f.px1[1]),(b=p-m-t.labelExtraY)*l>0&&(t.labelExtraY+=b)):(y+t.labelExtraY-x)*l>0&&(i=3*s*Math.abs(u-h.indexOf(t)),d=f.cxFinal+a(f.px0[0],f.px1[0]),(g=d+i-(t.cxFinal+t.pxmid[0])-t.labelExtraX)*s>0&&(t.labelExtraX+=g)))}for(n=0;n<2;n++)for(i=n?v:m,o=n?Math.max:Math.min,l=n?1:-1,r=0;r<2;r++){for(a=r?Math.max:Math.min,s=r?1:-1,(u=t[n][r]).sort(i),f=t[1-n][r],h=f.concat(u),d=[],p=0;p<u.length;p++)void 0!==u[p].yLabelMid&&d.push(u[p]);for(g=!1,p=0;n&&p<f.length;p++)if(void 0!==f[p].yLabelMid){g=f[p];break}for(p=0;p<d.length;p++){var x=p&&d[p-1];g&&!p&&(x=g),y(d[p],x)}}}(y,m),g.each(function(t){if(t.labelExtraX||t.labelExtraY){var e=n.select(this),r=e.select(\"g.slicetext text\");r.attr(\"transform\",\"translate(\"+t.labelExtraX+\",\"+t.labelExtraY+\")\"+r.attr(\"transform\"));var i=t.cxFinal+t.pxmid[0],o=\"M\"+i+\",\"+(t.cyFinal+t.pxmid[1]),s=(t.yLabelMax-t.yLabelMin)*(t.pxmid[0]<0?-1:1)/4;if(t.labelExtraX){var l=t.labelExtraX*t.pxmid[1]/t.pxmid[0],c=t.yLabelMid+t.labelExtraY-(t.cyFinal+t.pxmid[1]);Math.abs(l)>Math.abs(c)?o+=\"l\"+c*t.pxmid[0]/t.pxmid[1]+\",\"+c+\"H\"+(i+t.labelExtraX+s):o+=\"l\"+t.labelExtraX+\",\"+l+\"v\"+(c-l)+\"h\"+s}else o+=\"V\"+(t.yLabelMid+t.labelExtraY)+\"h\"+s;e.append(\"path\").classed(\"textline\",!0).call(a.stroke,m.outsidetextfont.color).attr({\"stroke-width\":Math.min(2,m.outsidetextfont.size/8),d:o,fill:\"none\"})}})})});setTimeout(function(){g.selectAll(\"tspan\").each(function(){var t=n.select(this);t.attr(\"dy\")&&t.attr(\"dy\",t.attr(\"dy\"))})},0)}},{\"../../components/color\":570,\"../../components/drawing\":595,\"../../components/fx\":612,\"../../lib\":696,\"../../lib/svg_text_utils\":720,\"./event_data\":1022,\"./helpers\":1023,d3:148}],1028:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"./style_one\");e.exports=function(t){t._fullLayout._pielayer.selectAll(\".trace\").each(function(t){var e=t[0].trace,r=n.select(this);r.style({opacity:e.opacity}),r.selectAll(\"path.surface\").each(function(t){n.select(this).call(i,t,e)})})}},{\"./style_one\":1029,d3:148}],1029:[function(t,e,r){\"use strict\";var n=t(\"../../components/color\"),i=t(\"./helpers\").castOption;e.exports=function(t,e,r){var a=r.marker.line,o=i(a.color,e.pts)||n.defaultLine,s=i(a.width,e.pts)||0;t.style({\"stroke-width\":s}).call(n.fill,e.color).call(n.stroke,o)}},{\"../../components/color\":570,\"./helpers\":1023}],1030:[function(t,e,r){\"use strict\";var n=t(\"../scatter/attributes\");e.exports={x:n.x,y:n.y,xy:{valType:\"data_array\",editType:\"calc\"},indices:{valType:\"data_array\",editType:\"calc\"},xbounds:{valType:\"data_array\",editType:\"calc\"},ybounds:{valType:\"data_array\",editType:\"calc\"},text:n.text,marker:{color:{valType:\"color\",arrayOk:!1,editType:\"calc\"},opacity:{valType:\"number\",min:0,max:1,dflt:1,arrayOk:!1,editType:\"calc\"},blend:{valType:\"boolean\",dflt:null,editType:\"calc\"},sizemin:{valType:\"number\",min:.1,max:2,dflt:.5,editType:\"calc\"},sizemax:{valType:\"number\",min:.1,dflt:20,editType:\"calc\"},border:{color:{valType:\"color\",arrayOk:!1,editType:\"calc\"},arearatio:{valType:\"number\",min:0,max:1,dflt:0,editType:\"calc\"},editType:\"calc\"},editType:\"calc\"},transforms:void 0}},{\"../scatter/attributes\":1043}],1031:[function(t,e,r){\"use strict\";var n=t(\"gl-pointcloud2d\"),i=t(\"../../lib/str2rgbarray\"),a=t(\"../../plots/cartesian/autorange\").findExtremes,o=t(\"../scatter/get_trace_color\");function s(t,e){this.scene=t,this.uid=e,this.type=\"pointcloud\",this.pickXData=[],this.pickYData=[],this.xData=[],this.yData=[],this.textLabels=[],this.color=\"rgb(0, 0, 0)\",this.name=\"\",this.hoverinfo=\"all\",this.idToIndex=new Int32Array(0),this.bounds=[0,0,0,0],this.pointcloudOptions={positions:new Float32Array(0),idToIndex:this.idToIndex,sizemin:.5,sizemax:12,color:[0,0,0,1],areaRatio:1,borderColor:[0,0,0,1]},this.pointcloud=n(t.glplot,this.pointcloudOptions),this.pointcloud._trace=this}var l=s.prototype;l.handlePick=function(t){var e=this.idToIndex[t.pointId];return{trace:this,dataCoord:t.dataCoord,traceCoord:this.pickXYData?[this.pickXYData[2*e],this.pickXYData[2*e+1]]:[this.pickXData[e],this.pickYData[e]],textLabel:Array.isArray(this.textLabels)?this.textLabels[e]:this.textLabels,color:this.color,name:this.name,pointIndex:e,hoverinfo:this.hoverinfo}},l.update=function(t){this.index=t.index,this.textLabels=t.text,this.name=t.name,this.hoverinfo=t.hoverinfo,this.bounds=[1/0,1/0,-1/0,-1/0],this.updateFast(t),this.color=o(t,{})},l.updateFast=function(t){var e,r,n,o,s,l,c=this.xData=this.pickXData=t.x,u=this.yData=this.pickYData=t.y,f=this.pickXYData=t.xy,h=t.xbounds&&t.ybounds,p=t.indices,d=this.bounds;if(f){if(n=f,e=f.length>>>1,h)d[0]=t.xbounds[0],d[2]=t.xbounds[1],d[1]=t.ybounds[0],d[3]=t.ybounds[1];else for(l=0;l<e;l++)o=n[2*l],s=n[2*l+1],o<d[0]&&(d[0]=o),o>d[2]&&(d[2]=o),s<d[1]&&(d[1]=s),s>d[3]&&(d[3]=s);if(p)r=p;else for(r=new Int32Array(e),l=0;l<e;l++)r[l]=l}else for(e=c.length,n=new Float32Array(2*e),r=new Int32Array(e),l=0;l<e;l++)o=c[l],s=u[l],r[l]=l,n[2*l]=o,n[2*l+1]=s,o<d[0]&&(d[0]=o),o>d[2]&&(d[2]=o),s<d[1]&&(d[1]=s),s>d[3]&&(d[3]=s);this.idToIndex=r,this.pointcloudOptions.idToIndex=r,this.pointcloudOptions.positions=n;var g=i(t.marker.color),v=i(t.marker.border.color),m=t.opacity*t.marker.opacity;g[3]*=m,this.pointcloudOptions.color=g;var y=t.marker.blend;if(null===y){y=c.length<100||u.length<100}this.pointcloudOptions.blend=y,v[3]*=m,this.pointcloudOptions.borderColor=v;var x=t.marker.sizemin,b=Math.max(t.marker.sizemax,t.marker.sizemin);this.pointcloudOptions.sizeMin=x,this.pointcloudOptions.sizeMax=b,this.pointcloudOptions.areaRatio=t.marker.border.arearatio,this.pointcloud.update(this.pointcloudOptions);var _=this.scene.xaxis,w=this.scene.yaxis,k=b/2||.5;t._extremes[_._id]=a(_,[d[0],d[2]],{ppad:k}),t._extremes[w._id]=a(w,[d[1],d[3]],{ppad:k})},l.dispose=function(){this.pointcloud.dispose()},e.exports=function(t,e){var r=new s(t,e.uid);return r.update(e),r}},{\"../../lib/str2rgbarray\":719,\"../../plots/cartesian/autorange\":743,\"../scatter/get_trace_color\":1053,\"gl-pointcloud2d\":279}],1032:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"./attributes\");e.exports=function(t,e,r){function a(r,a){return n.coerce(t,e,i,r,a)}a(\"x\"),a(\"y\"),a(\"xbounds\"),a(\"ybounds\"),t.xy&&t.xy instanceof Float32Array&&(e.xy=t.xy),t.indices&&t.indices instanceof Int32Array&&(e.indices=t.indices),a(\"text\"),a(\"marker.color\",r),a(\"marker.opacity\"),a(\"marker.blend\"),a(\"marker.sizemin\"),a(\"marker.sizemax\"),a(\"marker.border.color\",r),a(\"marker.border.arearatio\"),e._length=null}},{\"../../lib\":696,\"./attributes\":1030}],1033:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.supplyDefaults=t(\"./defaults\"),n.calc=t(\"../scatter3d/calc\"),n.plot=t(\"./convert\"),n.moduleType=\"trace\",n.name=\"pointcloud\",n.basePlotModule=t(\"../../plots/gl2d\"),n.categories=[\"gl\",\"gl2d\",\"showLegend\"],n.meta={},e.exports=n},{\"../../plots/gl2d\":784,\"../scatter3d/calc\":1071,\"./attributes\":1030,\"./convert\":1031,\"./defaults\":1032}],1034:[function(t,e,r){\"use strict\";var n=t(\"../../plots/font_attributes\"),i=t(\"../../plots/attributes\"),a=t(\"../../components/color/attributes\"),o=t(\"../../components/fx/attributes\"),s=t(\"../../plots/domain\").attributes,l=t(\"../../lib/extend\").extendFlat,c=t(\"../../plot_api/edit_types\").overrideAll;(e.exports=c({hoverinfo:l({},i.hoverinfo,{flags:[],arrayOk:!1}),hoverlabel:o.hoverlabel,domain:s({name:\"sankey\",trace:!0}),orientation:{valType:\"enumerated\",values:[\"v\",\"h\"],dflt:\"h\"},valueformat:{valType:\"string\",dflt:\".3s\"},valuesuffix:{valType:\"string\",dflt:\"\"},arrangement:{valType:\"enumerated\",values:[\"snap\",\"perpendicular\",\"freeform\",\"fixed\"],dflt:\"snap\"},textfont:n({}),node:{label:{valType:\"data_array\",dflt:[]},color:{valType:\"color\",arrayOk:!0},line:{color:{valType:\"color\",dflt:a.defaultLine,arrayOk:!0},width:{valType:\"number\",min:0,dflt:.5,arrayOk:!0}},pad:{valType:\"number\",arrayOk:!1,min:0,dflt:20},thickness:{valType:\"number\",arrayOk:!1,min:1,dflt:20},hoverinfo:{valType:\"enumerated\",values:[\"all\",\"none\",\"skip\"],dflt:\"all\"},hoverlabel:o.hoverlabel},link:{label:{valType:\"data_array\",dflt:[]},color:{valType:\"color\",arrayOk:!0},line:{color:{valType:\"color\",dflt:a.defaultLine,arrayOk:!0},width:{valType:\"number\",min:0,dflt:0,arrayOk:!0}},source:{valType:\"data_array\",dflt:[]},target:{valType:\"data_array\",dflt:[]},value:{valType:\"data_array\",dflt:[]},hoverinfo:{valType:\"enumerated\",values:[\"all\",\"none\",\"skip\"],dflt:\"all\"},hoverlabel:o.hoverlabel}},\"calc\",\"nested\")).transforms=void 0},{\"../../components/color/attributes\":569,\"../../components/fx/attributes\":604,\"../../lib/extend\":685,\"../../plot_api/edit_types\":727,\"../../plots/attributes\":741,\"../../plots/domain\":770,\"../../plots/font_attributes\":771}],1035:[function(t,e,r){\"use strict\";var n=t(\"../../plot_api/edit_types\").overrideAll,i=t(\"../../plots/get_data\").getModuleCalcData,a=t(\"./plot\"),o=t(\"../../components/fx/layout_attributes\");r.name=\"sankey\",r.baseLayoutAttrOverrides=n({hoverlabel:o.hoverlabel},\"plot\",\"nested\"),r.plot=function(t){var e=i(t.calcdata,\"sankey\")[0];a(t,e)},r.clean=function(t,e,r,n){var i=n._has&&n._has(\"sankey\"),a=e._has&&e._has(\"sankey\");i&&!a&&n._paperdiv.selectAll(\".sankey\").remove()}},{\"../../components/fx/layout_attributes\":613,\"../../plot_api/edit_types\":727,\"../../plots/get_data\":781,\"./plot\":1040}],1036:[function(t,e,r){\"use strict\";var n=t(\"strongly-connected-components\"),i=t(\"../../lib\"),a=t(\"../../lib/gup\").wrap;e.exports=function(t,e){return function(t,e,r){for(var a=t.length,o=i.init2dArray(a,0),s=0;s<Math.min(e.length,r.length);s++)if(i.isIndex(e[s],a)&&i.isIndex(r[s],a)){if(e[s]===r[s])return!0;o[e[s]].push(r[s])}return n(o).components.some(function(t){return t.length>1})}(e.node.label,e.link.source,e.link.target)&&(i.error(\"Circularity is present in the Sankey data. Removing all nodes and links.\"),e.link.label=[],e.link.source=[],e.link.target=[],e.link.value=[],e.link.color=[],e.node.label=[],e.node.color=[]),a({link:e.link,node:e.node})}},{\"../../lib\":696,\"../../lib/gup\":693,\"strongly-connected-components\":506}],1037:[function(t,e,r){\"use strict\";e.exports={nodeTextOffsetHorizontal:4,nodeTextOffsetVertical:3,nodePadAcross:10,sankeyIterations:50,forceIterations:5,forceTicksPerFrame:10,duration:500,ease:\"cubic-in-out\",cn:{sankey:\"sankey\",sankeyLinks:\"sankey-links\",sankeyLink:\"sankey-link\",sankeyNodeSet:\"sankey-node-set\",sankeyNode:\"sankey-node\",nodeRect:\"node-rect\",nodeCapture:\"node-capture\",nodeCentered:\"node-entered\",nodeLabelGuide:\"node-label-guide\",nodeLabel:\"node-label\",nodeLabelTextPath:\"node-label-text-path\"}}},{}],1038:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"./attributes\"),a=t(\"../../components/color\"),o=t(\"tinycolor2\"),s=t(\"../../plots/domain\").defaults,l=t(\"../../components/fx/hoverlabel_defaults\"),c=t(\"../../plot_api/plot_template\");e.exports=function(t,e,r,u){function f(r,a){return n.coerce(t,e,i,r,a)}var h=n.extendDeep(u.hoverlabel,t.hoverlabel),p=t.node,d=c.newContainer(e,\"node\");function g(t,e){return n.coerce(p,d,i.node,t,e)}g(\"label\"),g(\"pad\"),g(\"thickness\"),g(\"line.color\"),g(\"line.width\"),g(\"hoverinfo\",t.hoverinfo),l(p,d,g,h);var v=u.colorway;g(\"color\",d.label.map(function(t,e){return a.addOpacity(function(t){return v[t%v.length]}(e),.8)}));var m=t.link,y=c.newContainer(e,\"link\");function x(t,e){return n.coerce(m,y,i.link,t,e)}x(\"label\"),x(\"source\"),x(\"target\"),x(\"value\"),x(\"line.color\"),x(\"line.width\"),x(\"hoverinfo\",t.hoverinfo),l(m,y,x,h);var b=o(u.paper_bgcolor).getLuminance()<.333?\"rgba(255, 255, 255, 0.6)\":\"rgba(0, 0, 0, 0.2)\";x(\"color\",n.repeat(b,y.value.length)),s(e,u,f),f(\"orientation\"),f(\"valueformat\"),f(\"valuesuffix\"),f(\"arrangement\"),n.coerceFont(f,\"textfont\",n.extendFlat({},u.font)),e._length=null}},{\"../../components/color\":570,\"../../components/fx/hoverlabel_defaults\":611,\"../../lib\":696,\"../../plot_api/plot_template\":734,\"../../plots/domain\":770,\"./attributes\":1034,tinycolor2:514}],1039:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.supplyDefaults=t(\"./defaults\"),n.calc=t(\"./calc\"),n.plot=t(\"./plot\"),n.moduleType=\"trace\",n.name=\"sankey\",n.basePlotModule=t(\"./base_plot\"),n.categories=[\"noOpacity\"],n.meta={},e.exports=n},{\"./attributes\":1034,\"./base_plot\":1035,\"./calc\":1036,\"./defaults\":1038,\"./plot\":1040}],1040:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"./render\"),a=t(\"../../components/fx\"),o=t(\"../../components/color\"),s=t(\"../../lib\"),l=t(\"./constants\").cn,c=s._;function u(t){return\"\"!==t}function f(t,e){return t.filter(function(t){return t.key===e.traceId})}function h(t,e){n.select(t).select(\"path\").style(\"fill-opacity\",e),n.select(t).select(\"rect\").style(\"fill-opacity\",e)}function p(t){n.select(t).select(\"text.name\").style(\"fill\",\"black\")}function d(t){return function(e){return-1!==t.node.sourceLinks.indexOf(e.link)||-1!==t.node.targetLinks.indexOf(e.link)}}function g(t){return function(e){return-1!==e.node.sourceLinks.indexOf(t.link)||-1!==e.node.targetLinks.indexOf(t.link)}}function v(t,e,r){e&&r&&f(r,e).selectAll(\".\"+l.sankeyLink).filter(d(e)).call(y.bind(0,e,r,!1))}function m(t,e,r){e&&r&&f(r,e).selectAll(\".\"+l.sankeyLink).filter(d(e)).call(x.bind(0,e,r,!1))}function y(t,e,r,n){var i=n.datum().link.label;n.style(\"fill-opacity\",.4),i&&f(e,t).selectAll(\".\"+l.sankeyLink).filter(function(t){return t.link.label===i}).style(\"fill-opacity\",.4),r&&f(e,t).selectAll(\".\"+l.sankeyNode).filter(g(t)).call(v)}function x(t,e,r,n){var i=n.datum().link.label;n.style(\"fill-opacity\",function(t){return t.tinyColorAlpha}),i&&f(e,t).selectAll(\".\"+l.sankeyLink).filter(function(t){return t.link.label===i}).style(\"fill-opacity\",function(t){return t.tinyColorAlpha}),r&&f(e,t).selectAll(l.sankeyNode).filter(g(t)).call(m)}function b(t,e){var r=t.hoverlabel||{},n=s.nestedProperty(r,e).get();return!Array.isArray(n)&&n}e.exports=function(t,e){var r=t._fullLayout,s=r._paper,f=r._size,d=c(t,\"source:\")+\" \",g=c(t,\"target:\")+\" \",_=c(t,\"incoming flow count:\")+\" \",w=c(t,\"outgoing flow count:\")+\" \";i(s,e,{width:f.w,height:f.h,margin:{t:f.t,r:f.r,b:f.b,l:f.l}},{linkEvents:{hover:function(e,r,i){!1!==t._fullLayout.hovermode&&(n.select(e).call(y.bind(0,r,i,!0)),\"skip\"!==r.link.trace.link.hoverinfo&&t.emit(\"plotly_hover\",{event:n.event,points:[r.link]}))},follow:function(e,i){if(!1!==t._fullLayout.hovermode){var s=i.link.trace.link;if(\"none\"!==s.hoverinfo&&\"skip\"!==s.hoverinfo){var l=t._fullLayout._paperdiv.node().getBoundingClientRect(),c=e.getBoundingClientRect(),f=c.left+c.width/2,v=c.top+c.height/2,m=a.loneHover({x:f-l.left,y:v-l.top,name:n.format(i.valueFormat)(i.link.value)+i.valueSuffix,text:[i.link.label||\"\",d+i.link.source.label,g+i.link.target.label].filter(u).join(\"<br>\"),color:b(s,\"bgcolor\")||o.addOpacity(i.tinyColorHue,1),borderColor:b(s,\"bordercolor\"),fontFamily:b(s,\"font.family\"),fontSize:b(s,\"font.size\"),fontColor:b(s,\"font.color\"),idealAlign:n.event.x<f?\"right\":\"left\"},{container:r._hoverlayer.node(),outerContainer:r._paper.node(),gd:t});h(m,.65),p(m)}}},unhover:function(e,i,o){!1!==t._fullLayout.hovermode&&(n.select(e).call(x.bind(0,i,o,!0)),\"skip\"!==i.link.trace.link.hoverinfo&&t.emit(\"plotly_unhover\",{event:n.event,points:[i.link]}),a.loneUnhover(r._hoverlayer.node()))},select:function(e,r){var i=r.link;i.originalEvent=n.event,t._hoverdata=[i],a.click(t,{target:!0})}},nodeEvents:{hover:function(e,r,i){!1!==t._fullLayout.hovermode&&(n.select(e).call(v,r,i),\"skip\"!==r.node.trace.node.hoverinfo&&t.emit(\"plotly_hover\",{event:n.event,points:[r.node]}))},follow:function(e,i){if(!1!==t._fullLayout.hovermode){var o=i.node.trace.node;if(\"none\"!==o.hoverinfo&&\"skip\"!==o.hoverinfo){var s=n.select(e).select(\".\"+l.nodeRect),c=t._fullLayout._paperdiv.node().getBoundingClientRect(),f=s.node().getBoundingClientRect(),d=f.left-2-c.left,g=f.right+2-c.left,v=f.top+f.height/4-c.top,m=a.loneHover({x0:d,x1:g,y:v,name:n.format(i.valueFormat)(i.node.value)+i.valueSuffix,text:[i.node.label,_+i.node.targetLinks.length,w+i.node.sourceLinks.length].filter(u).join(\"<br>\"),color:b(o,\"bgcolor\")||i.tinyColorHue,borderColor:b(o,\"bordercolor\"),fontFamily:b(o,\"font.family\"),fontSize:b(o,\"font.size\"),fontColor:b(o,\"font.color\"),idealAlign:\"left\"},{container:r._hoverlayer.node(),outerContainer:r._paper.node(),gd:t});h(m,.85),p(m)}}},unhover:function(e,i,o){!1!==t._fullLayout.hovermode&&(n.select(e).call(m,i,o),\"skip\"!==i.node.trace.node.hoverinfo&&t.emit(\"plotly_unhover\",{event:n.event,points:[i.node]}),a.loneUnhover(r._hoverlayer.node()))},select:function(e,r,i){var o=r.node;o.originalEvent=n.event,t._hoverdata=[o],n.select(e).call(m,r,i),a.click(t,{target:!0})}}})}},{\"../../components/color\":570,\"../../components/fx\":612,\"../../lib\":696,\"./constants\":1037,\"./render\":1041,d3:148}],1041:[function(t,e,r){\"use strict\";var n=t(\"./constants\"),i=t(\"d3\"),a=t(\"tinycolor2\"),o=t(\"../../components/color\"),s=t(\"../../components/drawing\"),l=t(\"@plotly/d3-sankey\").sankey,c=t(\"d3-force\"),u=t(\"../../lib\"),f=u.isArrayOrTypedArray,h=u.isIndex,p=t(\"../../lib/gup\"),d=p.keyFun,g=p.repeat,v=p.unwrap;function m(t){t.lastDraggedX=t.x,t.lastDraggedY=t.y}function y(t){return function(e){return e.node.originalX===t.node.originalX}}function x(t){for(var e=0;e<t.length;e++)t[e].y=t[e].y+t[e].dy/2}function b(t){t.attr(\"transform\",function(t){return\"translate(\"+t.node.x.toFixed(3)+\", \"+(t.node.y-t.node.dy/2).toFixed(3)+\")\"})}function _(t){var e=t.sankey.nodes();!function(t){for(var e=0;e<t.length;e++)t[e].y=t[e].y-t[e].dy/2}(e);var r=t.sankey.link()(t.link);return x(e),r}function w(t){t.call(b)}function k(t,e){t.call(w),e.attr(\"d\",_)}function M(t){t.attr(\"width\",function(t){return t.visibleWidth}).attr(\"height\",function(t){return t.visibleHeight})}function A(t){return t.link.dy>1||t.linkLineWidth>0}function T(t){return\"translate(\"+t.translateX+\",\"+t.translateY+\")\"+(t.horizontal?\"matrix(1 0 0 1 0 0)\":\"matrix(0 1 1 0 0 0)\")}function S(t){return\"translate(\"+(t.horizontal?0:t.labelY)+\" \"+(t.horizontal?t.labelY:0)+\")\"}function E(t){return i.svg.line()([[t.horizontal?t.left?-t.sizeAcross:t.visibleWidth+n.nodeTextOffsetHorizontal:n.nodeTextOffsetHorizontal,0],[t.horizontal?t.left?-n.nodeTextOffsetHorizontal:t.sizeAcross:t.visibleHeight-n.nodeTextOffsetHorizontal,0]])}function C(t){return t.horizontal?\"matrix(1 0 0 1 0 0)\":\"matrix(0 1 1 0 0 0)\"}function L(t){return t.horizontal?\"scale(1 1)\":\"scale(-1 1)\"}function z(t){return t.darkBackground&&!t.horizontal?\"rgb(255,255,255)\":\"rgb(0,0,0)\"}function O(t){return t.horizontal&&t.left?\"100%\":\"0%\"}function I(t,e,r){t.on(\".basic\",null).on(\"mouseover.basic\",function(t){t.interactionState.dragInProgress||(r.hover(this,t,e),t.interactionState.hovered=[this,t])}).on(\"mousemove.basic\",function(t){t.interactionState.dragInProgress||(r.follow(this,t),t.interactionState.hovered=[this,t])}).on(\"mouseout.basic\",function(t){t.interactionState.dragInProgress||(r.unhover(this,t,e),t.interactionState.hovered=!1)}).on(\"click.basic\",function(t){t.interactionState.hovered&&(r.unhover(this,t,e),t.interactionState.hovered=!1),t.interactionState.dragInProgress||r.select(this,t,e)})}function P(t,e,r){var a=i.behavior.drag().origin(function(t){return t.node}).on(\"dragstart\",function(i){if(\"fixed\"!==i.arrangement&&(u.raiseToTop(this),i.interactionState.dragInProgress=i.node,m(i.node),i.interactionState.hovered&&(r.nodeEvents.unhover.apply(0,i.interactionState.hovered),i.interactionState.hovered=!1),\"snap\"===i.arrangement)){var a=i.traceId+\"|\"+Math.floor(i.node.originalX);i.forceLayouts[a]?i.forceLayouts[a].alpha(1):function(t,e,r){var i=r.sankey.nodes().filter(function(t){return t.originalX===r.node.originalX});r.forceLayouts[e]=c.forceSimulation(i).alphaDecay(0).force(\"collide\",c.forceCollide().radius(function(t){return t.dy/2+r.nodePad/2}).strength(1).iterations(n.forceIterations)).force(\"constrain\",function(t,e,r,i){return function(){for(var t=0,a=0;a<r.length;a++){var o=r[a];o===i.interactionState.dragInProgress?(o.x=o.lastDraggedX,o.y=o.lastDraggedY):(o.vx=(o.originalX-o.x)/n.forceTicksPerFrame,o.y=Math.min(i.size-o.dy/2,Math.max(o.dy/2,o.y))),t=Math.max(t,Math.abs(o.vx),Math.abs(o.vy))}!i.interactionState.dragInProgress&&t<.1&&i.forceLayouts[e].alpha()>0&&i.forceLayouts[e].alpha(0)}}(0,e,i,r)).stop()}(0,a,i),function(t,e,r,i){window.requestAnimationFrame(function a(){for(var o=0;o<n.forceTicksPerFrame;o++)r.forceLayouts[i].tick();r.sankey.relayout(),k(t.filter(y(r)),e),r.forceLayouts[i].alpha()>0&&window.requestAnimationFrame(a)})}(t,e,i,a)}}).on(\"drag\",function(r){if(\"fixed\"!==r.arrangement){var n=i.event.x,a=i.event.y;\"snap\"===r.arrangement?(r.node.x=n,r.node.y=a):(\"freeform\"===r.arrangement&&(r.node.x=n),r.node.y=Math.max(r.node.dy/2,Math.min(r.size-r.node.dy/2,a))),m(r.node),\"snap\"!==r.arrangement&&(r.sankey.relayout(),k(t.filter(y(r)),e))}}).on(\"dragend\",function(t){t.interactionState.dragInProgress=!1});t.on(\".drag\",null).call(a)}e.exports=function(t,e,r,i){var c=t.selectAll(\".\"+n.cn.sankey).data(e.filter(function(t){return v(t).trace.visible}).map(function(t,e,r){var i,a=v(e).trace,o=a.domain,s=a.node,c=a.link,p=a.arrangement,d=\"h\"===a.orientation,g=a.node.pad,m=a.node.thickness,y=a.node.line.color,b=a.node.line.width,_=a.link.line.color,w=a.link.line.width,k=a.valueformat,M=a.valuesuffix,A=a.textfont,T=t.width*(o.x[1]-o.x[0]),S=t.height*(o.y[1]-o.y[0]),E=[],C=f(c.color),L={},z=s.label.length;for(i=0;i<c.value.length;i++){var O=c.value[i],I=c.source[i],P=c.target[i];O>0&&h(I,z)&&h(P,z)&&(P=+P,L[I=+I]=L[P]=!0,E.push({pointNumber:i,label:c.label[i],color:C?c.color[i]:c.color,source:I,target:P,value:+O}))}var D=f(s.color),R=[],B=!1,F={};for(i=0;i<z;i++)if(L[i]){var N=s.label[i];F[i]=R.length,R.push({pointNumber:i,label:N,color:D?s.color[i]:s.color})}else B=!0;if(B)for(i=0;i<E.length;i++)E[i].source=F[E[i].source],E[i].target=F[E[i].target];var j=l().size(d?[T,S]:[S,T]).nodeWidth(m).nodePadding(g).nodes(R).links(E).layout(n.sankeyIterations);j.nodePadding()<g&&u.warn(\"node.pad was reduced to \",j.nodePadding(),\" to fit within the figure.\");for(var V,U=j.nodes(),q=0;q<U.length;q++)(V=U[q]).width=T,V.height=S;return x(R),{key:r,trace:a,guid:Math.floor(1e12*(1+Math.random())),horizontal:d,width:T,height:S,nodePad:g,nodeLineColor:y,nodeLineWidth:b,linkLineColor:_,linkLineWidth:w,valueFormat:k,valueSuffix:M,textFont:A,translateX:o.x[0]*t.width+t.margin.l,translateY:t.height-o.y[1]*t.height+t.margin.t,dragParallel:d?S:T,dragPerpendicular:d?T:S,nodes:R,links:E,arrangement:p,sankey:j,forceLayouts:{},interactionState:{dragInProgress:!1,hovered:!1}}}.bind(null,r)),d);c.exit().remove(),c.enter().append(\"g\").classed(n.cn.sankey,!0).style(\"box-sizing\",\"content-box\").style(\"position\",\"absolute\").style(\"left\",0).style(\"shape-rendering\",\"geometricPrecision\").style(\"pointer-events\",\"auto\").attr(\"transform\",T),c.transition().ease(n.ease).duration(n.duration).attr(\"transform\",T);var p=c.selectAll(\".\"+n.cn.sankeyLinks).data(g,d);p.enter().append(\"g\").classed(n.cn.sankeyLinks,!0).style(\"fill\",\"none\");var m=p.selectAll(\".\"+n.cn.sankeyLink).data(function(t){return t.sankey.links().filter(function(t){return t.value}).map(function(t,e,r){var n=a(r.color),i=r.source.label+\"|\"+r.target.label,s=t[i];t[i]=(s||0)+1;var l=i+\"__\"+t[i];return r.trace=e.trace,r.curveNumber=e.trace.index,{key:l,traceId:e.key,link:r,tinyColorHue:o.tinyRGB(n),tinyColorAlpha:n.getAlpha(),linkLineColor:e.linkLineColor,linkLineWidth:e.linkLineWidth,valueFormat:e.valueFormat,valueSuffix:e.valueSuffix,sankey:e.sankey,interactionState:e.interactionState}}.bind(null,{},t))},d);m.enter().append(\"path\").classed(n.cn.sankeyLink,!0).attr(\"d\",_).call(I,c,i.linkEvents),m.style(\"stroke\",function(t){return A(t)?o.tinyRGB(a(t.linkLineColor)):t.tinyColorHue}).style(\"stroke-opacity\",function(t){return A(t)?o.opacity(t.linkLineColor):t.tinyColorAlpha}).style(\"stroke-width\",function(t){return A(t)?t.linkLineWidth:1}).style(\"fill\",function(t){return t.tinyColorHue}).style(\"fill-opacity\",function(t){return t.tinyColorAlpha}),m.transition().ease(n.ease).duration(n.duration).attr(\"d\",_),m.exit().transition().ease(n.ease).duration(n.duration).style(\"opacity\",0).remove();var y=c.selectAll(\".\"+n.cn.sankeyNodeSet).data(g,d);y.enter().append(\"g\").classed(n.cn.sankeyNodeSet,!0),y.style(\"cursor\",function(t){switch(t.arrangement){case\"fixed\":return\"default\";case\"perpendicular\":return\"ns-resize\";default:return\"move\"}});var w=y.selectAll(\".\"+n.cn.sankeyNode).data(function(t){var e=t.sankey.nodes();return function(t){var e,r=[];for(e=0;e<t.length;e++)t[e].originalX=t[e].x,t[e].originalY=t[e].y,-1===r.indexOf(t[e].x)&&r.push(t[e].x);for(r.sort(function(t,e){return t-e}),e=0;e<t.length;e++)t[e].originalLayerIndex=r.indexOf(t[e].originalX),t[e].originalLayer=t[e].originalLayerIndex/(r.length-1)}(e),e.filter(function(t){return t.value}).map(function(t,e,r){var i=a(r.color),s=n.nodePadAcross,l=e.nodePad/2,c=r.dx,u=Math.max(.5,r.dy),f=r.label,h=t[f];t[f]=(h||0)+1;var p=f+\"__\"+t[f];return r.trace=e.trace,r.curveNumber=e.trace.index,{key:p,traceId:e.key,node:r,nodePad:e.nodePad,nodeLineColor:e.nodeLineColor,nodeLineWidth:e.nodeLineWidth,textFont:e.textFont,size:e.horizontal?e.height:e.width,visibleWidth:Math.ceil(c),visibleHeight:u,zoneX:-s,zoneY:-l,zoneWidth:c+2*s,zoneHeight:u+2*l,labelY:e.horizontal?r.dy/2+1:r.dx/2+1,left:1===r.originalLayer,sizeAcross:e.width,forceLayouts:e.forceLayouts,horizontal:e.horizontal,darkBackground:i.getBrightness()<=128,tinyColorHue:o.tinyRGB(i),tinyColorAlpha:i.getAlpha(),valueFormat:e.valueFormat,valueSuffix:e.valueSuffix,sankey:e.sankey,arrangement:e.arrangement,uniqueNodeLabelPathId:[e.guid,e.key,p].join(\" \"),interactionState:e.interactionState}}.bind(null,{},t))},d);w.enter().append(\"g\").classed(n.cn.sankeyNode,!0).call(b).call(I,c,i.nodeEvents),w.call(P,m,i),w.transition().ease(n.ease).duration(n.duration).call(b),w.exit().transition().ease(n.ease).duration(n.duration).style(\"opacity\",0).remove();var k=w.selectAll(\".\"+n.cn.nodeRect).data(g);k.enter().append(\"rect\").classed(n.cn.nodeRect,!0).call(M),k.style(\"stroke-width\",function(t){return t.nodeLineWidth}).style(\"stroke\",function(t){return o.tinyRGB(a(t.nodeLineColor))}).style(\"stroke-opacity\",function(t){return o.opacity(t.nodeLineColor)}).style(\"fill\",function(t){return t.tinyColorHue}).style(\"fill-opacity\",function(t){return t.tinyColorAlpha}),k.transition().ease(n.ease).duration(n.duration).call(M);var D=w.selectAll(\".\"+n.cn.nodeCapture).data(g);D.enter().append(\"rect\").classed(n.cn.nodeCapture,!0).style(\"fill-opacity\",0),D.attr(\"x\",function(t){return t.zoneX}).attr(\"y\",function(t){return t.zoneY}).attr(\"width\",function(t){return t.zoneWidth}).attr(\"height\",function(t){return t.zoneHeight});var R=w.selectAll(\".\"+n.cn.nodeCentered).data(g);R.enter().append(\"g\").classed(n.cn.nodeCentered,!0).attr(\"transform\",S),R.transition().ease(n.ease).duration(n.duration).attr(\"transform\",S);var B=R.selectAll(\".\"+n.cn.nodeLabelGuide).data(g);B.enter().append(\"path\").classed(n.cn.nodeLabelGuide,!0).attr(\"id\",function(t){return t.uniqueNodeLabelPathId}).attr(\"d\",E).attr(\"transform\",C),B.transition().ease(n.ease).duration(n.duration).attr(\"d\",E).attr(\"transform\",C);var F=R.selectAll(\".\"+n.cn.nodeLabel).data(g);F.enter().append(\"text\").classed(n.cn.nodeLabel,!0).attr(\"transform\",L).style(\"user-select\",\"none\").style(\"cursor\",\"default\").style(\"fill\",\"black\"),F.style(\"text-shadow\",function(t){return t.horizontal?\"-1px 1px 1px #fff, 1px 1px 1px #fff, 1px -1px 1px #fff, -1px -1px 1px #fff\":\"none\"}).each(function(t){s.font(F,t.textFont)}),F.transition().ease(n.ease).duration(n.duration).attr(\"transform\",L);var N=F.selectAll(\".\"+n.cn.nodeLabelTextPath).data(g);N.enter().append(\"textPath\").classed(n.cn.nodeLabelTextPath,!0).attr(\"alignment-baseline\",\"middle\").attr(\"xlink:href\",function(t){return\"#\"+t.uniqueNodeLabelPathId}).attr(\"startOffset\",O).style(\"fill\",z),N.text(function(t){return t.horizontal||t.node.dy>5?t.node.label:\"\"}).attr(\"text-anchor\",function(t){return t.horizontal&&t.left?\"end\":\"start\"}),N.transition().ease(n.ease).duration(n.duration).attr(\"startOffset\",O).style(\"fill\",z)}},{\"../../components/color\":570,\"../../components/drawing\":595,\"../../lib\":696,\"../../lib/gup\":693,\"./constants\":1037,\"@plotly/d3-sankey\":46,d3:148,\"d3-force\":144,tinycolor2:514}],1042:[function(t,e,r){\"use strict\";var n=t(\"../../lib\");e.exports=function(t,e){for(var r=0;r<t.length;r++)t[r].i=r;n.mergeArray(e.text,t,\"tx\"),n.mergeArray(e.hovertext,t,\"htx\"),n.mergeArray(e.customdata,t,\"data\"),n.mergeArray(e.textposition,t,\"tp\"),e.textfont&&(n.mergeArray(e.textfont.size,t,\"ts\"),n.mergeArray(e.textfont.color,t,\"tc\"),n.mergeArray(e.textfont.family,t,\"tf\"));var i=e.marker;if(i){n.mergeArray(i.size,t,\"ms\"),n.mergeArray(i.opacity,t,\"mo\"),n.mergeArray(i.symbol,t,\"mx\"),n.mergeArray(i.color,t,\"mc\");var a=i.line;i.line&&(n.mergeArray(a.color,t,\"mlc\"),n.mergeArray(a.width,t,\"mlw\"));var o=i.gradient;o&&\"none\"!==o.type&&(n.mergeArray(o.type,t,\"mgt\"),n.mergeArray(o.color,t,\"mgc\"))}}},{\"../../lib\":696}],1043:[function(t,e,r){\"use strict\";var n=t(\"../../components/colorscale/attributes\"),i=t(\"../../components/colorbar/attributes\"),a=t(\"../../plots/font_attributes\"),o=t(\"../../components/drawing/attributes\").dash,s=t(\"../../components/drawing\"),l=(t(\"./constants\"),t(\"../../lib/extend\").extendFlat);e.exports={x:{valType:\"data_array\",editType:\"calc+clearAxisTypes\"},x0:{valType:\"any\",dflt:0,editType:\"calc+clearAxisTypes\"},dx:{valType:\"number\",dflt:1,editType:\"calc\"},y:{valType:\"data_array\",editType:\"calc+clearAxisTypes\"},y0:{valType:\"any\",dflt:0,editType:\"calc+clearAxisTypes\"},dy:{valType:\"number\",dflt:1,editType:\"calc\"},stackgroup:{valType:\"string\",dflt:\"\",editType:\"calc\"},orientation:{valType:\"enumerated\",values:[\"v\",\"h\"],editType:\"calc\"},groupnorm:{valType:\"enumerated\",values:[\"\",\"fraction\",\"percent\"],dflt:\"\",editType:\"calc\"},stackgaps:{valType:\"enumerated\",values:[\"infer zero\",\"interpolate\"],dflt:\"infer zero\",editType:\"calc\"},text:{valType:\"string\",dflt:\"\",arrayOk:!0,editType:\"calc\"},hovertext:{valType:\"string\",dflt:\"\",arrayOk:!0,editType:\"style\"},mode:{valType:\"flaglist\",flags:[\"lines\",\"markers\",\"text\"],extras:[\"none\"],editType:\"calc\"},hoveron:{valType:\"flaglist\",flags:[\"points\",\"fills\"],editType:\"style\"},line:{color:{valType:\"color\",editType:\"style\"},width:{valType:\"number\",min:0,dflt:2,editType:\"style\"},shape:{valType:\"enumerated\",values:[\"linear\",\"spline\",\"hv\",\"vh\",\"hvh\",\"vhv\"],dflt:\"linear\",editType:\"plot\"},smoothing:{valType:\"number\",min:0,max:1.3,dflt:1,editType:\"plot\"},dash:l({},o,{editType:\"style\"}),simplify:{valType:\"boolean\",dflt:!0,editType:\"plot\"},editType:\"plot\"},connectgaps:{valType:\"boolean\",dflt:!1,editType:\"calc\"},cliponaxis:{valType:\"boolean\",dflt:!0,editType:\"plot\"},fill:{valType:\"enumerated\",values:[\"none\",\"tozeroy\",\"tozerox\",\"tonexty\",\"tonextx\",\"toself\",\"tonext\"],editType:\"calc\"},fillcolor:{valType:\"color\",editType:\"style\"},marker:l({symbol:{valType:\"enumerated\",values:s.symbolList,dflt:\"circle\",arrayOk:!0,editType:\"style\"},opacity:{valType:\"number\",min:0,max:1,arrayOk:!0,editType:\"style\"},size:{valType:\"number\",min:0,dflt:6,arrayOk:!0,editType:\"calc\"},maxdisplayed:{valType:\"number\",min:0,dflt:0,editType:\"plot\"},sizeref:{valType:\"number\",dflt:1,editType:\"calc\"},sizemin:{valType:\"number\",min:0,dflt:0,editType:\"calc\"},sizemode:{valType:\"enumerated\",values:[\"diameter\",\"area\"],dflt:\"diameter\",editType:\"calc\"},colorbar:i,line:l({width:{valType:\"number\",min:0,arrayOk:!0,editType:\"style\"},editType:\"calc\"},n(\"marker.line\")),gradient:{type:{valType:\"enumerated\",values:[\"radial\",\"horizontal\",\"vertical\",\"none\"],arrayOk:!0,dflt:\"none\",editType:\"calc\"},color:{valType:\"color\",arrayOk:!0,editType:\"calc\"},editType:\"calc\"},editType:\"calc\"},n(\"marker\")),selected:{marker:{opacity:{valType:\"number\",min:0,max:1,editType:\"style\"},color:{valType:\"color\",editType:\"style\"},size:{valType:\"number\",min:0,editType:\"style\"},editType:\"style\"},textfont:{color:{valType:\"color\",editType:\"style\"},editType:\"style\"},editType:\"style\"},unselected:{marker:{opacity:{valType:\"number\",min:0,max:1,editType:\"style\"},color:{valType:\"color\",editType:\"style\"},size:{valType:\"number\",min:0,editType:\"style\"},editType:\"style\"},textfont:{color:{valType:\"color\",editType:\"style\"},editType:\"style\"},editType:\"style\"},textposition:{valType:\"enumerated\",values:[\"top left\",\"top center\",\"top right\",\"middle left\",\"middle center\",\"middle right\",\"bottom left\",\"bottom center\",\"bottom right\"],dflt:\"middle center\",arrayOk:!0,editType:\"calc\"},textfont:a({editType:\"calc\",colorEditType:\"style\",arrayOk:!0}),r:{valType:\"data_array\",editType:\"calc\"},t:{valType:\"data_array\",editType:\"calc\"}}},{\"../../components/colorbar/attributes\":571,\"../../components/colorscale/attributes\":577,\"../../components/drawing\":595,\"../../components/drawing/attributes\":594,\"../../lib/extend\":685,\"../../plots/font_attributes\":771,\"./constants\":1047}],1044:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../../lib\"),a=t(\"../../plots/cartesian/axes\"),o=t(\"../../constants/numerical\").BADNUM,s=t(\"./subtypes\"),l=t(\"./colorscale_calc\"),c=t(\"./arrays_to_calcdata\"),u=t(\"./calc_selection\");function f(t,e,r,n,i,o,l){var c=e._length,u=t._fullLayout,f=r._id,h=n._id,p=u._firstScatter[d(e)]===e.uid,v=(g(e,u,r,n)||{}).orientation,m=e.fill;r._minDtick=0,n._minDtick=0;var y={padded:!0},x={padded:!0};l&&(y.ppad=x.ppad=l);var b=c<2||i[0]!==i[c-1]||o[0]!==o[c-1];b&&(\"tozerox\"===m||\"tonextx\"===m&&(p||\"h\"===v))?y.tozero=!0:(e.error_y||{}).visible||\"tonexty\"!==m&&\"tozeroy\"!==m&&(s.hasMarkers(e)||s.hasText(e))||(y.padded=!1,y.ppad=0),b&&(\"tozeroy\"===m||\"tonexty\"===m&&(p||\"v\"===v))?x.tozero=!0:\"tonextx\"!==m&&\"tozerox\"!==m||(x.padded=!1),f&&(e._extremes[f]=a.findExtremes(r,i,y)),h&&(e._extremes[h]=a.findExtremes(n,o,x))}function h(t,e){if(s.hasMarkers(t)){var r,n=t.marker,o=1.6*(t.marker.sizeref||1);if(r=\"area\"===t.marker.sizemode?function(t){return Math.max(Math.sqrt((t||0)/o),3)}:function(t){return Math.max((t||0)/o,3)},i.isArrayOrTypedArray(n.size)){var l={type:\"linear\"};a.setConvert(l);for(var c=l.makeCalcdata(t.marker,\"size\"),u=new Array(e),f=0;f<e;f++)u[f]=r(c[f]);return u}return r(n.size)}}function p(t,e){var r=d(e),n=t._firstScatter;n[r]||(n[r]=e.uid)}function d(t){var e=t.stackgroup;return t.xaxis+t.yaxis+t.type+(e?\"-\"+e:\"\")}function g(t,e,r,n){var i=t.stackgroup;if(i){var a=e._scatterStackOpts[r._id+n._id][i],o=\"v\"===a.orientation?n:r;return\"linear\"===o.type||\"log\"===o.type?a:void 0}}e.exports={calc:function(t,e){var r,s,d,v,m,y,x=t._fullLayout,b=a.getFromId(t,e.xaxis||\"x\"),_=a.getFromId(t,e.yaxis||\"y\"),w=b.makeCalcdata(e,\"x\"),k=_.makeCalcdata(e,\"y\"),M=e._length,A=new Array(M),T=e.ids,S=g(e,x,b,_),E=!1;p(x,e);var C,L=\"x\",z=\"y\";for(S?(S.traceIndices.push(e.index),(r=\"v\"===S.orientation)?(z=\"s\",C=\"x\"):(L=\"s\",C=\"y\"),m=\"interpolate\"===S.stackgaps):f(t,e,b,_,w,k,h(e,M)),s=0;s<M;s++){var O=A[s]={},I=n(w[s]),P=n(k[s]);I&&P?(O[L]=w[s],O[z]=k[s]):S&&(r?I:P)?(O[C]=r?w[s]:k[s],O.gap=!0,m?(O.s=o,E=!0):O.s=0):O[L]=O[z]=o,T&&(O.id=String(T[s]))}if(c(A,e),l(e),u(A,e),S){for(s=0;s<A.length;)A[s][C]===o?A.splice(s,1):s++;if(i.sort(A,function(t,e){return t[C]-e[C]||t.i-e.i}),E){for(s=0;s<A.length-1&&A[s].gap;)s++;for((y=A[s].s)||(y=A[s].s=0),d=0;d<s;d++)A[d].s=y;for(v=A.length-1;v>s&&A[v].gap;)v--;for(y=A[v].s,d=A.length-1;d>v;d--)A[d].s=y;for(;s<v;)if(A[++s].gap){for(d=s+1;A[d].gap;)d++;for(var D=A[s-1][C],R=A[s-1].s,B=(A[d].s-R)/(A[d][C]-D);s<d;)A[s].s=R+(A[s][C]-D)*B,s++}}}return A},calcMarkerSize:h,calcAxisExpansion:f,setFirstScatter:p,getStackOpts:g}},{\"../../constants/numerical\":673,\"../../lib\":696,\"../../plots/cartesian/axes\":744,\"./arrays_to_calcdata\":1042,\"./calc_selection\":1045,\"./colorscale_calc\":1046,\"./subtypes\":1067,\"fast-isnumeric\":214}],1045:[function(t,e,r){\"use strict\";var n=t(\"../../lib\");e.exports=function(t,e){n.isArrayOrTypedArray(e.selectedpoints)&&n.tagSelected(t,e)}},{\"../../lib\":696}],1046:[function(t,e,r){\"use strict\";var n=t(\"../../components/colorscale/has_colorscale\"),i=t(\"../../components/colorscale/calc\"),a=t(\"./subtypes\");e.exports=function(t){a.hasLines(t)&&n(t,\"line\")&&i(t,t.line.color,\"line\",\"c\"),a.hasMarkers(t)&&(n(t,\"marker\")&&i(t,t.marker.color,\"marker\",\"c\"),n(t,\"marker.line\")&&i(t,t.marker.line.color,\"marker.line\",\"c\"))}},{\"../../components/colorscale/calc\":578,\"../../components/colorscale/has_colorscale\":584,\"./subtypes\":1067}],1047:[function(t,e,r){\"use strict\";e.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20}},{}],1048:[function(t,e,r){\"use strict\";var n=t(\"./calc\");function i(t,e,r,n,i,a,o){i[n]=!0;var s={i:null,gap:!0,s:0};if(s[o]=r,t.splice(e,0,s),e&&r===t[e-1][o]){var l=t[e-1];s.s=l.s,s.i=l.i,s.gap=l.gap}else a&&(s.s=function(t,e,r,n){var i=t[e-1],a=t[e+1];return a?i?i.s+(a.s-i.s)*(r-i[n])/(a[n]-i[n]):a.s:i.s}(t,e,r,o));e||(t[0].t=t[1].t,t[0].trace=t[1].trace,delete t[1].t,delete t[1].trace)}e.exports=function(t,e){var r=e.xaxis,a=e.yaxis,o=r._id+a._id,s=t._fullLayout._scatterStackOpts[o];if(s){var l,c,u,f,h,p,d,g,v,m,y,x,b,_,w,k=t.calcdata;for(var M in s){var A=(m=s[M]).traceIndices;if(A.length){for(y=\"interpolate\"===m.stackgaps,x=m.groupnorm,\"v\"===m.orientation?(b=\"x\",_=\"y\"):(b=\"y\",_=\"x\"),w=new Array(A.length),l=0;l<w.length;l++)w[l]=!1;p=k[A[0]];var T=new Array(p.length);for(l=0;l<p.length;l++)T[l]=p[l][b];for(l=1;l<A.length;l++){for(h=k[A[l]],c=u=0;c<h.length;c++){for(d=h[c][b];d>T[u]&&u<T.length;u++)i(h,c,T[u],l,w,y,b),c++;if(d!==T[u]){for(f=0;f<l;f++)i(k[A[f]],u,d,f,w,y,b);T.splice(u,0,d)}u++}for(;u<T.length;u++)i(h,c,T[u],l,w,y,b),c++}var S=T.length;for(c=0;c<p.length;c++){for(g=p[c][_]=p[c].s,l=1;l<A.length;l++)(h=k[A[l]])[0].trace._rawLength=h[0].trace._length,h[0].trace._length=S,g+=h[c].s,h[c][_]=g;if(x)for(v=(\"fraction\"===x?g:g/100)||1,l=0;l<A.length;l++){var E=k[A[l]][c];E[_]/=v,E.sNorm=E.s/v}}for(l=0;l<A.length;l++){var C=(h=k[A[l]])[0].trace,L=n.calcMarkerSize(C,C._rawLength),z=Array.isArray(L);if(L&&w[l]||z){var O=L;for(L=new Array(S),c=0;c<S;c++)L[c]=h[c].gap?0:z?O[h[c].i]:O}var I=new Array(S),P=new Array(S);for(c=0;c<S;c++)I[c]=h[c].x,P[c]=h[c].y;n.calcAxisExpansion(t,C,r,a,I,P,L),h[0].t.orientation=m.orientation}}}}}},{\"./calc\":1044}],1049:[function(t,e,r){\"use strict\";e.exports=function(t){for(var e=0;e<t.length;e++){var r=t[e];if(\"scatter\"===r.type){var n=r.fill;if(\"none\"!==n&&\"toself\"!==n&&(r.opacity=void 0,\"tonexty\"===n||\"tonextx\"===n))for(var i=e-1;i>=0;i--){var a=t[i];if(\"scatter\"===a.type&&a.xaxis===r.xaxis&&a.yaxis===r.yaxis){a.opacity=void 0;break}}}}}},{}],1050:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../registry\"),a=t(\"./attributes\"),o=t(\"./constants\"),s=t(\"./subtypes\"),l=t(\"./xy_defaults\"),c=t(\"./stack_defaults\"),u=t(\"./marker_defaults\"),f=t(\"./line_defaults\"),h=t(\"./line_shape_defaults\"),p=t(\"./text_defaults\"),d=t(\"./fillcolor_defaults\");e.exports=function(t,e,r,g){function v(r,i){return n.coerce(t,e,a,r,i)}var m=l(t,e,g,v);if(m||(e.visible=!1),e.visible){var y=c(t,e,g,v),x=!y&&m<o.PTS_LINESONLY?\"lines+markers\":\"lines\";v(\"text\"),v(\"hovertext\"),v(\"mode\",x),s.hasLines(e)&&(f(t,e,r,g,v),h(t,e,v),v(\"connectgaps\"),v(\"line.simplify\")),s.hasMarkers(e)&&u(t,e,r,g,v,{gradient:!0}),s.hasText(e)&&p(t,e,g,v);var b=[];(s.hasMarkers(e)||s.hasText(e))&&(v(\"cliponaxis\"),v(\"marker.maxdisplayed\"),b.push(\"points\")),v(\"fill\",y?y.fillDflt:\"none\"),\"none\"!==e.fill&&(d(t,e,r,v),s.hasLines(e)||h(t,e,v)),\"tonext\"!==e.fill&&\"toself\"!==e.fill||b.push(\"fills\"),v(\"hoveron\",b.join(\"+\")||\"points\");var _=i.getComponentMethod(\"errorbars\",\"supplyDefaults\");_(t,e,r,{axis:\"y\"}),_(t,e,r,{axis:\"x\",inherit:\"y\"}),n.coerceSelectionMarkerOpacity(e,v)}}},{\"../../lib\":696,\"../../registry\":827,\"./attributes\":1043,\"./constants\":1047,\"./fillcolor_defaults\":1052,\"./line_defaults\":1056,\"./line_shape_defaults\":1058,\"./marker_defaults\":1062,\"./stack_defaults\":1065,\"./subtypes\":1067,\"./text_defaults\":1068,\"./xy_defaults\":1069}],1051:[function(t,e,r){\"use strict\";var n=t(\"../../lib\");function i(t){return t||0===t}e.exports=function(t,e,r){var a=Array.isArray(r)?function(t){r.push(t)}:function(t){r.text=t},o=n.extractOption(t,e,\"htx\",\"hovertext\");if(i(o))return a(o);var s=n.extractOption(t,e,\"tx\",\"text\");return i(s)?a(s):void 0}},{\"../../lib\":696}],1052:[function(t,e,r){\"use strict\";var n=t(\"../../components/color\"),i=t(\"../../lib\").isArrayOrTypedArray;e.exports=function(t,e,r,a){var o=!1;if(e.marker){var s=e.marker.color,l=(e.marker.line||{}).color;s&&!i(s)?o=s:l&&!i(l)&&(o=l)}a(\"fillcolor\",n.addOpacity((e.line||{}).color||o||r,.5))}},{\"../../components/color\":570,\"../../lib\":696}],1053:[function(t,e,r){\"use strict\";var n=t(\"../../components/color\"),i=t(\"./subtypes\");e.exports=function(t,e){var r,a;if(\"lines\"===t.mode)return(r=t.line.color)&&n.opacity(r)?r:t.fillcolor;if(\"none\"===t.mode)return t.fill?t.fillcolor:\"\";var o=e.mcc||(t.marker||{}).color,s=e.mlcc||((t.marker||{}).line||{}).color;return(a=o&&n.opacity(o)?o:s&&n.opacity(s)&&(e.mlw||((t.marker||{}).line||{}).width)?s:\"\")?n.opacity(a)<.3?n.addOpacity(a,.3):a:(r=(t.line||{}).color)&&n.opacity(r)&&i.hasLines(t)&&t.line.width?r:t.fillcolor}},{\"../../components/color\":570,\"./subtypes\":1067}],1054:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../components/fx\"),a=t(\"../../registry\"),o=t(\"./get_trace_color\"),s=t(\"../../components/color\"),l=t(\"./fill_hover_text\");e.exports=function(t,e,r,c){var u=t.cd,f=u[0].trace,h=t.xa,p=t.ya,d=h.c2p(e),g=p.c2p(r),v=[d,g],m=f.hoveron||\"\",y=-1!==f.mode.indexOf(\"markers\")?3:.5;if(-1!==m.indexOf(\"points\")){var x=function(t){var e=Math.max(y,t.mrc||0),r=h.c2p(t.x)-d,n=p.c2p(t.y)-g;return Math.max(Math.sqrt(r*r+n*n)-e,1-y/e)},b=i.getDistanceFunction(c,function(t){var e=Math.max(3,t.mrc||0),r=1-1/e,n=Math.abs(h.c2p(t.x)-d);return n<e?r*n/e:n-e+r},function(t){var e=Math.max(3,t.mrc||0),r=1-1/e,n=Math.abs(p.c2p(t.y)-g);return n<e?r*n/e:n-e+r},x);if(i.getClosest(u,b,t),!1!==t.index){var _=u[t.index],w=h.c2p(_.x,!0),k=p.c2p(_.y,!0),M=_.mrc||1;t.index=_.i;var A=u[0].t.orientation,T=A&&(_.sNorm||_.s),S=\"h\"===A?T:_.x,E=\"v\"===A?T:_.y;return n.extendFlat(t,{color:o(f,_),x0:w-M,x1:w+M,xLabelVal:S,y0:k-M,y1:k+M,yLabelVal:E,spikeDistance:x(_)}),l(_,f,t),a.getComponentMethod(\"errorbars\",\"hoverInfo\")(_,f,t),[t]}}if(-1!==m.indexOf(\"fills\")&&f._polygons){var C,L,z,O,I,P,D,R,B,F=f._polygons,N=[],j=!1,V=1/0,U=-1/0,q=1/0,H=-1/0;for(C=0;C<F.length;C++)(z=F[C]).contains(v)&&(j=!j,N.push(z),q=Math.min(q,z.ymin),H=Math.max(H,z.ymax));if(j){var G=((q=Math.max(q,0))+(H=Math.min(H,p._length)))/2;for(C=0;C<N.length;C++)for(O=N[C].pts,L=1;L<O.length;L++)(R=O[L-1][1])>G!=(B=O[L][1])>=G&&(P=O[L-1][0],D=O[L][0],B-R&&(I=P+(D-P)*(G-R)/(B-R),V=Math.min(V,I),U=Math.max(U,I)));V=Math.max(V,0),U=Math.min(U,h._length);var W=s.defaultLine;return s.opacity(f.fillcolor)?W=f.fillcolor:s.opacity((f.line||{}).color)&&(W=f.line.color),n.extendFlat(t,{distance:t.maxHoverDistance,x0:V,x1:U,y0:G,y1:G,color:W}),delete t.index,f.text&&!Array.isArray(f.text)?t.text=String(f.text):t.text=f.name,[t]}}}},{\"../../components/color\":570,\"../../components/fx\":612,\"../../lib\":696,\"../../registry\":827,\"./fill_hover_text\":1051,\"./get_trace_color\":1053}],1055:[function(t,e,r){\"use strict\";var n={},i=t(\"./subtypes\");n.hasLines=i.hasLines,n.hasMarkers=i.hasMarkers,n.hasText=i.hasText,n.isBubble=i.isBubble,n.attributes=t(\"./attributes\"),n.supplyDefaults=t(\"./defaults\"),n.crossTraceDefaults=t(\"./cross_trace_defaults\"),n.calc=t(\"./calc\").calc,n.crossTraceCalc=t(\"./cross_trace_calc\"),n.arraysToCalcdata=t(\"./arrays_to_calcdata\"),n.plot=t(\"./plot\"),n.colorbar=t(\"./marker_colorbar\"),n.style=t(\"./style\").style,n.styleOnSelect=t(\"./style\").styleOnSelect,n.hoverPoints=t(\"./hover\"),n.selectPoints=t(\"./select\"),n.animatable=!0,n.moduleType=\"trace\",n.name=\"scatter\",n.basePlotModule=t(\"../../plots/cartesian\"),n.categories=[\"cartesian\",\"svg\",\"symbols\",\"errorBarsOK\",\"showLegend\",\"scatter-like\",\"zoomScale\"],n.meta={},e.exports=n},{\"../../plots/cartesian\":756,\"./arrays_to_calcdata\":1042,\"./attributes\":1043,\"./calc\":1044,\"./cross_trace_calc\":1048,\"./cross_trace_defaults\":1049,\"./defaults\":1050,\"./hover\":1054,\"./marker_colorbar\":1061,\"./plot\":1063,\"./select\":1064,\"./style\":1066,\"./subtypes\":1067}],1056:[function(t,e,r){\"use strict\";var n=t(\"../../lib\").isArrayOrTypedArray,i=t(\"../../components/colorscale/has_colorscale\"),a=t(\"../../components/colorscale/defaults\");e.exports=function(t,e,r,o,s,l){var c=(t.marker||{}).color;(s(\"line.color\",r),i(t,\"line\"))?a(t,e,o,s,{prefix:\"line.\",cLetter:\"c\",noScale:!0}):s(\"line.color\",!n(c)&&c||r);s(\"line.width\"),(l||{}).noDash||s(\"line.dash\")}},{\"../../components/colorscale/defaults\":580,\"../../components/colorscale/has_colorscale\":584,\"../../lib\":696}],1057:[function(t,e,r){\"use strict\";var n=t(\"../../constants/numerical\"),i=n.BADNUM,a=n.LOG_CLIP,o=a+.5,s=a-.5,l=t(\"../../lib\"),c=l.segmentsIntersect,u=l.constrain,f=t(\"./constants\");e.exports=function(t,e){var r,n,a,h,p,d,g,v,m,y,x,b,_,w,k,M,A,T,S=e.xaxis,E=e.yaxis,C=\"log\"===S.type,L=\"log\"===E.type,z=S._length,O=E._length,I=e.connectGaps,P=e.baseTolerance,D=e.shape,R=\"linear\"===D,B=[],F=f.minTolerance,N=new Array(t.length),j=0;function V(e){var r=t[e];if(!r)return!1;var n=S.c2p(r.x),a=E.c2p(r.y);if(n===i){if(C&&(n=S.c2p(r.x,!0)),n===i)return!1;L&&a===i&&(n*=Math.abs(S._m*O*(S._m>0?o:s)/(E._m*z*(E._m>0?o:s)))),n*=1e3}if(a===i){if(L&&(a=E.c2p(r.y,!0)),a===i)return!1;a*=1e3}return[n,a]}function U(t,e,r,n){var i=r-t,a=n-e,o=.5-t,s=.5-e,l=i*i+a*a,c=i*o+a*s;if(c>0&&c<l){var u=o*a-s*i;if(u*u<l)return!0}}function q(t,e){var r=t[0]/z,n=t[1]/O,i=Math.max(0,-r,r-1,-n,n-1);return i&&void 0!==A&&U(r,n,A,T)&&(i=0),i&&e&&U(r,n,e[0]/z,e[1]/O)&&(i=0),(1+f.toleranceGrowth*i)*P}function H(t,e){var r=t[0]-e[0],n=t[1]-e[1];return Math.sqrt(r*r+n*n)}var G,W,Y,X,Z,$,J,K=f.maxScreensAway,Q=-z*K,tt=z*(1+K),et=-O*K,rt=O*(1+K),nt=[[Q,et,tt,et],[tt,et,tt,rt],[tt,rt,Q,rt],[Q,rt,Q,et]];function it(t){if(t[0]<Q||t[0]>tt||t[1]<et||t[1]>rt)return[u(t[0],Q,tt),u(t[1],et,rt)]}function at(t,e){return t[0]===e[0]&&(t[0]===Q||t[0]===tt)||(t[1]===e[1]&&(t[1]===et||t[1]===rt)||void 0)}function ot(t,e,r){return function(n,i){var a=it(n),o=it(i),s=[];if(a&&o&&at(a,o))return s;a&&s.push(a),o&&s.push(o);var c=2*l.constrain((n[t]+i[t])/2,e,r)-((a||n)[t]+(o||i)[t]);c&&((a&&o?c>0==a[t]>o[t]?a:o:a||o)[t]+=c);return s}}function st(t){var e=t[0],r=t[1],n=e===N[j-1][0],i=r===N[j-1][1];if(!n||!i)if(j>1){var a=e===N[j-2][0],o=r===N[j-2][1];n&&(e===Q||e===tt)&&a?o?j--:N[j-1]=t:i&&(r===et||r===rt)&&o?a?j--:N[j-1]=t:N[j++]=t}else N[j++]=t}function lt(t){N[j-1][0]!==t[0]&&N[j-1][1]!==t[1]&&st([Y,X]),st(t),Z=null,Y=X=0}function ct(t){if(A=t[0]/z,T=t[1]/O,G=t[0]<Q?Q:t[0]>tt?tt:0,W=t[1]<et?et:t[1]>rt?rt:0,G||W){if(j)if(Z){var e=J(Z,t);e.length>1&&(lt(e[0]),N[j++]=e[1])}else $=J(N[j-1],t)[0],N[j++]=$;else N[j++]=[G||t[0],W||t[1]];var r=N[j-1];G&&W&&(r[0]!==G||r[1]!==W)?(Z&&(Y!==G&&X!==W?st(Y&&X?(n=Z,a=(i=t)[0]-n[0],o=(i[1]-n[1])/a,(n[1]*i[0]-i[1]*n[0])/a>0?[o>0?Q:tt,rt]:[o>0?tt:Q,et]):[Y||G,X||W]):Y&&X&&st([Y,X])),st([G,W])):Y-G&&X-W&&st([G||Y,W||X]),Z=t,Y=G,X=W}else Z&&lt(J(Z,t)[0]),N[j++]=t;var n,i,a,o}for(\"linear\"===D||\"spline\"===D?J=function(t,e){for(var r=[],n=0,i=0;i<4;i++){var a=nt[i],o=c(t[0],t[1],e[0],e[1],a[0],a[1],a[2],a[3]);o&&(!n||Math.abs(o.x-r[0][0])>1||Math.abs(o.y-r[0][1])>1)&&(o=[o.x,o.y],n&&H(o,t)<H(r[0],t)?r.unshift(o):r.push(o),n++)}return r}:\"hv\"===D||\"vh\"===D?J=function(t,e){var r=[],n=it(t),i=it(e);return n&&i&&at(n,i)?r:(n&&r.push(n),i&&r.push(i),r)}:\"hvh\"===D?J=ot(0,Q,tt):\"vhv\"===D&&(J=ot(1,et,rt)),r=0;r<t.length;r++)if(n=V(r)){for(j=0,Z=null,ct(n),r++;r<t.length;r++){if(!(h=V(r))){if(I)continue;break}if(R&&e.simplify){var ut=V(r+1);if(!((y=H(h,n))<q(h,ut)*F)){for(v=[(h[0]-n[0])/y,(h[1]-n[1])/y],p=n,x=y,b=w=k=0,g=!1,a=h,r++;r<t.length;r++){if(d=ut,ut=V(r+1),!d){if(I)continue;break}if(M=(m=[d[0]-n[0],d[1]-n[1]])[0]*v[1]-m[1]*v[0],w=Math.min(w,M),(k=Math.max(k,M))-w>q(d,ut))break;a=d,(_=m[0]*v[0]+m[1]*v[1])>x?(x=_,h=d,g=!1):_<b&&(b=_,p=d,g=!0)}if(g?(ct(h),a!==p&&ct(p)):(p!==n&&ct(p),a!==h&&ct(h)),ct(a),r>=t.length||!d)break;ct(d),n=d}}else ct(h)}Z&&st([Y||Z[0],X||Z[1]]),B.push(N.slice(0,j))}return B}},{\"../../constants/numerical\":673,\"../../lib\":696,\"./constants\":1047}],1058:[function(t,e,r){\"use strict\";e.exports=function(t,e,r){\"spline\"===r(\"line.shape\")&&r(\"line.smoothing\")}},{}],1059:[function(t,e,r){\"use strict\";var n={tonextx:1,tonexty:1,tonext:1};e.exports=function(t,e,r){var i,a,o,s,l,c={},u=!1,f=-1,h=0,p=-1;for(a=0;a<r.length;a++)(o=(i=r[a][0].trace).stackgroup||\"\")?o in c?l=c[o]:(l=c[o]=h,h++):i.fill in n&&p>=0?l=p:(l=p=h,h++),l<f&&(u=!0),i._groupIndex=f=l;var d=r.slice();u&&d.sort(function(t,e){var r=t[0].trace,n=e[0].trace;return r._groupIndex-n._groupIndex||r.index-n.index});var g={};for(a=0;a<d.length;a++)o=(i=d[a][0].trace).stackgroup||\"\",!0===i.visible?(i._nexttrace=null,i.fill in n&&(s=g[o],i._prevtrace=s||null,s&&(s._nexttrace=i)),i._ownfill=i.fill&&(\"tozero\"===i.fill.substr(0,6)||\"toself\"===i.fill||\"to\"===i.fill.substr(0,2)&&!i._prevtrace),g[o]=i):i._prevtrace=i._nexttrace=i._ownfill=null;return d}},{}],1060:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\");e.exports=function(t){var e=t.marker,r=e.sizeref||1,i=e.sizemin||0,a=\"area\"===e.sizemode?function(t){return Math.sqrt(t/r)}:function(t){return t/r};return function(t){var e=a(t/2);return n(e)&&e>0?Math.max(e,i):0}}},{\"fast-isnumeric\":214}],1061:[function(t,e,r){\"use strict\";e.exports={container:\"marker\",min:\"cmin\",max:\"cmax\"}},{}],1062:[function(t,e,r){\"use strict\";var n=t(\"../../components/color\"),i=t(\"../../components/colorscale/has_colorscale\"),a=t(\"../../components/colorscale/defaults\"),o=t(\"./subtypes\");e.exports=function(t,e,r,s,l,c){var u=o.isBubble(t),f=(t.line||{}).color;(c=c||{},f&&(r=f),l(\"marker.symbol\"),l(\"marker.opacity\",u?.7:1),l(\"marker.size\"),l(\"marker.color\",r),i(t,\"marker\")&&a(t,e,s,l,{prefix:\"marker.\",cLetter:\"c\"}),c.noSelect||(l(\"selected.marker.color\"),l(\"unselected.marker.color\"),l(\"selected.marker.size\"),l(\"unselected.marker.size\")),c.noLine||(l(\"marker.line.color\",f&&!Array.isArray(f)&&e.marker.color!==f?f:u?n.background:n.defaultLine),i(t,\"marker.line\")&&a(t,e,s,l,{prefix:\"marker.line.\",cLetter:\"c\"}),l(\"marker.line.width\",u?1:0)),u&&(l(\"marker.sizeref\"),l(\"marker.sizemin\"),l(\"marker.sizemode\")),c.gradient)&&(\"none\"!==l(\"marker.gradient.type\")&&l(\"marker.gradient.color\"))}},{\"../../components/color\":570,\"../../components/colorscale/defaults\":580,\"../../components/colorscale/has_colorscale\":584,\"./subtypes\":1067}],1063:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../../registry\"),a=t(\"../../lib\"),o=a.ensureSingle,s=a.identity,l=t(\"../../components/drawing\"),c=t(\"./subtypes\"),u=t(\"./line_points\"),f=t(\"./link_traces\"),h=t(\"../../lib/polygon\").tester;function p(t,e,r,f,p,d,g){var v;!function(t,e,r,i,o){var s=r.xaxis,l=r.yaxis,u=n.extent(a.simpleMap(s.range,s.r2c)),f=n.extent(a.simpleMap(l.range,l.r2c)),h=i[0].trace;if(!c.hasMarkers(h))return;var p=h.marker.maxdisplayed;if(0===p)return;var d=i.filter(function(t){return t.x>=u[0]&&t.x<=u[1]&&t.y>=f[0]&&t.y<=f[1]}),g=Math.ceil(d.length/p),v=0;o.forEach(function(t,r){var n=t[0].trace;c.hasMarkers(n)&&n.marker.maxdisplayed>0&&r<e&&v++});var m=Math.round(v*g/3+Math.floor(v/3)*g/7.1);i.forEach(function(t){delete t.vis}),d.forEach(function(t,e){0===Math.round((e+m)%g)&&(t.vis=!0)})}(0,e,r,f,p);var m=!!g&&g.duration>0;function y(t){return m?t.transition():t}var x=r.xaxis,b=r.yaxis,_=f[0].trace,w=_.line,k=n.select(d),M=o(k,\"g\",\"errorbars\"),A=o(k,\"g\",\"lines\"),T=o(k,\"g\",\"points\"),S=o(k,\"g\",\"text\");if(i.getComponentMethod(\"errorbars\",\"plot\")(M,r,g),!0===_.visible){var E,C;y(k).style(\"opacity\",_.opacity);var L=_.fill.charAt(_.fill.length-1);\"x\"!==L&&\"y\"!==L&&(L=\"\"),r.isRangePlot||(f[0].node3=k);var z=\"\",O=[],I=_._prevtrace;I&&(z=I._prevRevpath||\"\",C=I._nextFill,O=I._polygons);var P,D,R,B,F,N,j,V,U,q=\"\",H=\"\",G=[],W=a.noop;if(E=_._ownFill,c.hasLines(_)||\"none\"!==_.fill){for(C&&C.datum(f),-1!==[\"hv\",\"vh\",\"hvh\",\"vhv\"].indexOf(w.shape)?(R=l.steps(w.shape),B=l.steps(w.shape.split(\"\").reverse().join(\"\"))):R=B=\"spline\"===w.shape?function(t){var e=t[t.length-1];return t.length>1&&t[0][0]===e[0]&&t[0][1]===e[1]?l.smoothclosed(t.slice(1),w.smoothing):l.smoothopen(t,w.smoothing)}:function(t){return\"M\"+t.join(\"L\")},F=function(t){return B(t.reverse())},G=u(f,{xaxis:x,yaxis:b,connectGaps:_.connectgaps,baseTolerance:Math.max(w.width||1,3)/4,shape:w.shape,simplify:w.simplify}),U=_._polygons=new Array(G.length),v=0;v<G.length;v++)_._polygons[v]=h(G[v]);G.length&&(N=G[0][0],V=(j=G[G.length-1])[j.length-1]),W=function(t){return function(e){if(P=R(e),D=F(e),q?L?(q+=\"L\"+P.substr(1),H=D+\"L\"+H.substr(1)):(q+=\"Z\"+P,H=D+\"Z\"+H):(q=P,H=D),c.hasLines(_)&&e.length>1){var r=n.select(this);if(r.datum(f),t)y(r.style(\"opacity\",0).attr(\"d\",P).call(l.lineGroupStyle)).style(\"opacity\",1);else{var i=y(r);i.attr(\"d\",P),l.singleLineStyle(f,i)}}}}}var Y=A.selectAll(\".js-line\").data(G);y(Y.exit()).style(\"opacity\",0).remove(),Y.each(W(!1)),Y.enter().append(\"path\").classed(\"js-line\",!0).style(\"vector-effect\",\"non-scaling-stroke\").call(l.lineGroupStyle).each(W(!0)),l.setClipUrl(Y,r.layerClipId),G.length?(E?(E.datum(f),N&&V&&(L?(\"y\"===L?N[1]=V[1]=b.c2p(0,!0):\"x\"===L&&(N[0]=V[0]=x.c2p(0,!0)),y(E).attr(\"d\",\"M\"+V+\"L\"+N+\"L\"+q.substr(1)).call(l.singleFillStyle)):y(E).attr(\"d\",q+\"Z\").call(l.singleFillStyle))):C&&(\"tonext\"===_.fill.substr(0,6)&&q&&z?(\"tonext\"===_.fill?y(C).attr(\"d\",q+\"Z\"+z+\"Z\").call(l.singleFillStyle):y(C).attr(\"d\",q+\"L\"+z.substr(1)+\"Z\").call(l.singleFillStyle),_._polygons=_._polygons.concat(O)):(Z(C),_._polygons=null)),_._prevRevpath=H,_._prevPolygons=U):(E?Z(E):C&&Z(C),_._polygons=_._prevRevpath=_._prevPolygons=null),T.datum(f),S.datum(f),function(e,i,a){var o,u=a[0].trace,f=c.hasMarkers(u),h=c.hasText(u),p=tt(u),d=et,g=et;if(f||h){var v=s,_=u.stackgroup,w=_&&\"infer zero\"===t._fullLayout._scatterStackOpts[x._id+b._id][_].stackgaps;u.marker.maxdisplayed||u._needsCull?v=w?J:$:_&&!w&&(v=K),f&&(d=v),h&&(g=v)}var k,M=(o=e.selectAll(\"path.point\").data(d,p)).enter().append(\"path\").classed(\"point\",!0);m&&M.call(l.pointStyle,u,t).call(l.translatePoints,x,b).style(\"opacity\",0).transition().style(\"opacity\",1),o.order(),f&&(k=l.makePointStyleFns(u)),o.each(function(e){var i=n.select(this),a=y(i);l.translatePoint(e,a,x,b)?(l.singlePointStyle(e,a,u,k,t),r.layerClipId&&l.hideOutsideRangePoint(e,a,x,b,u.xcalendar,u.ycalendar),u.customdata&&i.classed(\"plotly-customdata\",null!==e.data&&void 0!==e.data)):a.remove()}),m?o.exit().transition().style(\"opacity\",0).remove():o.exit().remove(),(o=i.selectAll(\"g\").data(g,p)).enter().append(\"g\").classed(\"textpoint\",!0).append(\"text\"),o.order(),o.each(function(t){var e=n.select(this),i=y(e.select(\"text\"));l.translatePoint(t,i,x,b)?r.layerClipId&&l.hideOutsideRangePoint(t,e,x,b,u.xcalendar,u.ycalendar):e.remove()}),o.selectAll(\"text\").call(l.textPointStyle,u,t).each(function(t){var e=x.c2p(t.x),r=b.c2p(t.y);n.select(this).selectAll(\"tspan.line\").each(function(){y(n.select(this)).attr({x:e,y:r})})}),o.exit().remove()}(T,S,f);var X=!1===_.cliponaxis?null:r.layerClipId;l.setClipUrl(T,X),l.setClipUrl(S,X)}function Z(t){y(t).attr(\"d\",\"M0,0Z\")}function $(t){return t.filter(function(t){return!t.gap&&t.vis})}function J(t){return t.filter(function(t){return t.vis})}function K(t){return t.filter(function(t){return!t.gap})}function Q(t){return t.id}function tt(t){if(t.ids)return Q}function et(){return!1}}e.exports=function(t,e,r,i,a,c){var u,h,d=!a,g=!!a&&a.duration>0,v=f(t,e,r);((u=i.selectAll(\"g.trace\").data(v,function(t){return t[0].trace.uid})).enter().append(\"g\").attr(\"class\",function(t){return\"trace scatter trace\"+t[0].trace.uid}).style(\"stroke-miterlimit\",2),u.order(),function(t,e,r){e.each(function(t){var e=o(n.select(this),\"g\",\"fills\");l.setClipUrl(e,r.layerClipId);var i=t[0].trace,a=[];i._ownfill&&a.push(\"_ownFill\"),i._nexttrace&&a.push(\"_nextFill\");var c=e.selectAll(\"g\").data(a,s);c.enter().append(\"g\"),c.exit().each(function(t){i[t]=null}).remove(),c.order().each(function(t){i[t]=o(n.select(this),\"path\",\"js-fill\")})})}(0,u,e),g)?(c&&(h=c()),n.transition().duration(a.duration).ease(a.easing).each(\"end\",function(){h&&h()}).each(\"interrupt\",function(){h&&h()}).each(function(){i.selectAll(\"g.trace\").each(function(r,n){p(t,n,e,r,v,this,a)})})):u.each(function(r,n){p(t,n,e,r,v,this,a)});d&&u.exit().remove(),i.selectAll(\"path:not([d])\").remove()}},{\"../../components/drawing\":595,\"../../lib\":696,\"../../lib/polygon\":708,\"../../registry\":827,\"./line_points\":1057,\"./link_traces\":1059,\"./subtypes\":1067,d3:148}],1064:[function(t,e,r){\"use strict\";var n=t(\"./subtypes\");e.exports=function(t,e){var r,i,a,o,s=t.cd,l=t.xaxis,c=t.yaxis,u=[],f=s[0].trace;if(!n.hasMarkers(f)&&!n.hasText(f))return[];if(!1===e)for(r=0;r<s.length;r++)s[r].selected=0;else for(r=0;r<s.length;r++)i=s[r],a=l.c2p(i.x),o=c.c2p(i.y),null!==i.i&&e.contains([a,o],!1,r,t)?(u.push({pointNumber:i.i,x:l.c2d(i.x),y:c.c2d(i.y)}),i.selected=1):i.selected=0;return u}},{\"./subtypes\":1067}],1065:[function(t,e,r){\"use strict\";var n=[\"orientation\",\"groupnorm\",\"stackgaps\"];e.exports=function(t,e,r,i){var a=r._scatterStackOpts,o=i(\"stackgroup\");if(o){var s=e.xaxis+e.yaxis,l=a[s];l||(l=a[s]={});var c=l[o],u=!1;c?c.traces.push(e):(c=l[o]={traceIndices:[],traces:[e]},u=!0);for(var f={orientation:e.x&&!e.y?\"h\":\"v\"},h=0;h<n.length;h++){var p=n[h],d=p+\"Found\";if(!c[d]){var g=void 0!==t[p],v=\"orientation\"===p;if((g||u)&&(c[p]=i(p,f[p]),v&&(c.fillDflt=\"h\"===c[p]?\"tonextx\":\"tonexty\"),g&&(c[d]=!0,!u&&(delete c.traces[0][p],v))))for(var m=0;m<c.traces.length-1;m++){var y=c.traces[m];y._input.fill!==y.fill&&(y.fill=c.fillDflt)}}}return c}}},{}],1066:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../../components/drawing\"),a=t(\"../../registry\");function o(t,e,r){i.pointStyle(t.selectAll(\"path.point\"),e,r)}function s(t,e,r){i.textPointStyle(t.selectAll(\"text\"),e,r)}e.exports={style:function(t,e){var r=e?e[0].node3:n.select(t).selectAll(\"g.trace.scatter\");r.style(\"opacity\",function(t){return t[0].trace.opacity}),r.selectAll(\"g.points\").each(function(e){o(n.select(this),e.trace||e[0].trace,t)}),r.selectAll(\"g.text\").each(function(e){s(n.select(this),e.trace||e[0].trace,t)}),r.selectAll(\"g.trace path.js-line\").call(i.lineGroupStyle),r.selectAll(\"g.trace path.js-fill\").call(i.fillGroupStyle),a.getComponentMethod(\"errorbars\",\"style\")(r)},stylePoints:o,styleText:s,styleOnSelect:function(t,e){var r=e[0].node3,n=e[0].trace;n.selectedpoints?(i.selectedPointStyle(r.selectAll(\"path.point\"),n),i.selectedTextStyle(r.selectAll(\"text\"),n)):(o(r,n,t),s(r,n,t))}}},{\"../../components/drawing\":595,\"../../registry\":827,d3:148}],1067:[function(t,e,r){\"use strict\";var n=t(\"../../lib\");e.exports={hasLines:function(t){return t.visible&&t.mode&&-1!==t.mode.indexOf(\"lines\")},hasMarkers:function(t){return t.visible&&(t.mode&&-1!==t.mode.indexOf(\"markers\")||\"splom\"===t.type)},hasText:function(t){return t.visible&&t.mode&&-1!==t.mode.indexOf(\"text\")},isBubble:function(t){return n.isPlainObject(t.marker)&&n.isArrayOrTypedArray(t.marker.size)}}},{\"../../lib\":696}],1068:[function(t,e,r){\"use strict\";var n=t(\"../../lib\");e.exports=function(t,e,r,i,a){a=a||{},i(\"textposition\"),n.coerceFont(i,\"textfont\",r.font),a.noSelect||(i(\"selected.textfont.color\"),i(\"unselected.textfont.color\"))}},{\"../../lib\":696}],1069:[function(t,e,r){\"use strict\";var n=t(\"../../registry\");e.exports=function(t,e,r,i){var a,o=i(\"x\"),s=i(\"y\");if(n.getComponentMethod(\"calendars\",\"handleTraceDefaults\")(t,e,[\"x\",\"y\"],r),o)s?a=Math.min(o.length,s.length):(a=o.length,i(\"y0\"),i(\"dy\"));else{if(!s)return 0;a=e.y.length,i(\"x0\"),i(\"dx\")}return e._length=a,a}},{\"../../registry\":827}],1070:[function(t,e,r){\"use strict\";var n=t(\"../scatter/attributes\"),i=t(\"../../components/colorscale/attributes\"),a=t(\"../../plots/attributes\"),o=t(\"../../constants/gl3d_dashes\"),s=t(\"../../constants/gl3d_markers\"),l=t(\"../../lib/extend\").extendFlat,c=t(\"../../plot_api/edit_types\").overrideAll,u=n.line,f=n.marker,h=f.line,p=l({width:u.width,dash:{valType:\"enumerated\",values:Object.keys(o),dflt:\"solid\"}},i(\"line\"));delete p.showscale,delete p.colorbar;var d=e.exports=c({x:n.x,y:n.y,z:{valType:\"data_array\"},text:l({},n.text,{}),hovertext:l({},n.hovertext,{}),mode:l({},n.mode,{dflt:\"lines+markers\"}),surfaceaxis:{valType:\"enumerated\",values:[-1,0,1,2],dflt:-1},surfacecolor:{valType:\"color\"},projection:{x:{show:{valType:\"boolean\",dflt:!1},opacity:{valType:\"number\",min:0,max:1,dflt:1},scale:{valType:\"number\",min:0,max:10,dflt:2/3}},y:{show:{valType:\"boolean\",dflt:!1},opacity:{valType:\"number\",min:0,max:1,dflt:1},scale:{valType:\"number\",min:0,max:10,dflt:2/3}},z:{show:{valType:\"boolean\",dflt:!1},opacity:{valType:\"number\",min:0,max:1,dflt:1},scale:{valType:\"number\",min:0,max:10,dflt:2/3}}},connectgaps:n.connectgaps,line:p,marker:l({symbol:{valType:\"enumerated\",values:Object.keys(s),dflt:\"circle\",arrayOk:!0},size:l({},f.size,{dflt:8}),sizeref:f.sizeref,sizemin:f.sizemin,sizemode:f.sizemode,opacity:l({},f.opacity,{arrayOk:!1}),colorbar:f.colorbar,line:l({width:l({},h.width,{arrayOk:!1})},i(\"marker.line\"))},i(\"marker\")),textposition:l({},n.textposition,{dflt:\"top center\",arrayOk:!1}),textfont:{color:n.textfont.color,size:n.textfont.size,family:l({},n.textfont.family,{arrayOk:!1})},hoverinfo:l({},a.hoverinfo)},\"calc\",\"nested\");d.x.editType=d.y.editType=d.z.editType=\"calc+clearAxisTypes\"},{\"../../components/colorscale/attributes\":577,\"../../constants/gl3d_dashes\":670,\"../../constants/gl3d_markers\":671,\"../../lib/extend\":685,\"../../plot_api/edit_types\":727,\"../../plots/attributes\":741,\"../scatter/attributes\":1043}],1071:[function(t,e,r){\"use strict\";var n=t(\"../scatter/arrays_to_calcdata\"),i=t(\"../scatter/colorscale_calc\");e.exports=function(t,e){var r=[{x:!1,y:!1,trace:e,t:{}}];return n(r,e),i(e),r}},{\"../scatter/arrays_to_calcdata\":1042,\"../scatter/colorscale_calc\":1046}],1072:[function(t,e,r){\"use strict\";var n=t(\"../../registry\");function i(t,e,r,i){if(!e||!e.visible)return null;for(var a=n.getComponentMethod(\"errorbars\",\"makeComputeError\")(e),o=new Array(t.length),s=0;s<t.length;s++){var l=a(+t[s],s);if(\"log\"===i.type){var c=i.c2l(t[s]),u=t[s]-l[0],f=t[s]+l[1];if(o[s]=[(i.c2l(u,!0)-c)*r,(i.c2l(f,!0)-c)*r],u>0){var h=i.c2l(u);i._lowerLogErrorBound||(i._lowerLogErrorBound=h),i._lowerErrorBound=Math.min(i._lowerLogErrorBound,h)}}else o[s]=[-l[0]*r,l[1]*r]}return o}e.exports=function(t,e,r){var n=[i(t.x,t.error_x,e[0],r.xaxis),i(t.y,t.error_y,e[1],r.yaxis),i(t.z,t.error_z,e[2],r.zaxis)],a=function(t){for(var e=0;e<t.length;e++)if(t[e])return t[e].length;return 0}(n);if(0===a)return null;for(var o=new Array(a),s=0;s<a;s++){for(var l=[[0,0,0],[0,0,0]],c=0;c<3;c++)if(n[c])for(var u=0;u<2;u++)l[u][c]=n[c][s][u];o[s]=l}return o}},{\"../../registry\":827}],1073:[function(t,e,r){\"use strict\";var n=t(\"gl-line3d\"),i=t(\"gl-scatter3d\"),a=t(\"gl-error3d\"),o=t(\"gl-mesh3d\"),s=t(\"delaunay-triangulate\"),l=t(\"../../lib\"),c=t(\"../../lib/str2rgbarray\"),u=t(\"../../lib/gl_format_color\").formatColor,f=t(\"../scatter/make_bubble_size_func\"),h=t(\"../../constants/gl3d_dashes\"),p=t(\"../../constants/gl3d_markers\"),d=t(\"./calc_errors\");function g(t,e){this.scene=t,this.uid=e,this.linePlot=null,this.scatterPlot=null,this.errorBars=null,this.textMarkers=null,this.delaunayMesh=null,this.color=null,this.mode=\"\",this.dataPoints=[],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.textLabels=null,this.data=null}var v=g.prototype;function m(t,e){return e(4*t)}function y(t){return p[t]}function x(t,e,r,n,i){var a=null;if(l.isArrayOrTypedArray(t)){a=[];for(var o=0;o<e;o++)void 0===t[o]?a[o]=n:a[o]=r(t[o],i)}else a=r(t,l.identity);return a}function b(t,e){var r,n,i,a,o,s,h,p,g=[],v=t.fullSceneLayout,b=t.dataScale,_=v.xaxis,w=v.yaxis,k=v.zaxis,M=e.marker,A=e.line,T=e.x||[],S=e.y||[],E=e.z||[],C=T.length,L=e.xcalendar,z=e.ycalendar,O=e.zcalendar;for(n=0;n<C;n++)i=_.d2l(T[n],0,L)*b[0],a=w.d2l(S[n],0,z)*b[1],o=k.d2l(E[n],0,O)*b[2],g[n]=[i,a,o];if(Array.isArray(e.text))s=e.text;else if(void 0!==e.text)for(s=new Array(C),n=0;n<C;n++)s[n]=e.text;if(r={position:g,mode:e.mode,text:s},\"line\"in e&&(r.lineColor=u(A,1,C),r.lineWidth=A.width,r.lineDashes=A.dash),\"marker\"in e){var I=f(e);r.scatterColor=u(M,1,C),r.scatterSize=x(M.size,C,m,20,I),r.scatterMarker=x(M.symbol,C,y,\"\\u25cf\"),r.scatterLineWidth=M.line.width,r.scatterLineColor=u(M.line,1,C),r.scatterAngle=0}\"textposition\"in e&&(r.textOffset=(h=e.textposition,p=[0,0],Array.isArray(h)?[0,-1]:(h.indexOf(\"bottom\")>=0&&(p[1]+=1),h.indexOf(\"top\")>=0&&(p[1]-=1),h.indexOf(\"left\")>=0&&(p[0]-=1),h.indexOf(\"right\")>=0&&(p[0]+=1),p)),r.textColor=u(e.textfont,1,C),r.textSize=x(e.textfont.size,C,l.identity,12),r.textFont=e.textfont.family,r.textAngle=0);var P=[\"x\",\"y\",\"z\"];for(r.project=[!1,!1,!1],r.projectScale=[1,1,1],r.projectOpacity=[1,1,1],n=0;n<3;++n){var D=e.projection[P[n]];(r.project[n]=D.show)&&(r.projectOpacity[n]=D.opacity,r.projectScale[n]=D.scale)}r.errorBounds=d(e,b,v);var R=function(t){for(var e=[0,0,0],r=[[0,0,0],[0,0,0],[0,0,0]],n=[1,1,1],i=0;i<3;i++){var a=t[i];a&&!1!==a.copy_zstyle&&!1!==t[2].visible&&(a=t[2]),a&&a.visible&&(e[i]=a.width/2,r[i]=c(a.color),n[i]=a.thickness)}return{capSize:e,color:r,lineWidth:n}}([e.error_x,e.error_y,e.error_z]);return r.errorColor=R.color,r.errorLineWidth=R.lineWidth,r.errorCapSize=R.capSize,r.delaunayAxis=e.surfaceaxis,r.delaunayColor=c(e.surfacecolor),r}function _(t){if(Array.isArray(t)){var e=t[0];return Array.isArray(e)&&(t=e),\"rgb(\"+t.slice(0,3).map(function(t){return Math.round(255*t)})+\")\"}return null}v.handlePick=function(t){if(t.object&&(t.object===this.linePlot||t.object===this.delaunayMesh||t.object===this.textMarkers||t.object===this.scatterPlot)){var e=t.index=t.data.index;return t.object.highlight&&t.object.highlight(null),this.scatterPlot&&(t.object=this.scatterPlot,this.scatterPlot.highlight(t.data)),t.textLabel=\"\",this.textLabels&&(Array.isArray(this.textLabels)?(this.textLabels[e]||0===this.textLabels[e])&&(t.textLabel=this.textLabels[e]):t.textLabel=this.textLabels),t.traceCoordinate=[this.data.x[e],this.data.y[e],this.data.z[e]],!0}},v.update=function(t){var e,r,l,c,u=this.scene.glplot.gl,f=h.solid;this.data=t;var p=b(this.scene,t);\"mode\"in p&&(this.mode=p.mode),\"lineDashes\"in p&&p.lineDashes in h&&(f=h[p.lineDashes]),this.color=_(p.scatterColor)||_(p.lineColor),this.dataPoints=p.position,e={gl:u,position:p.position,color:p.lineColor,lineWidth:p.lineWidth||1,dashes:f[0],dashScale:f[1],opacity:t.opacity,connectGaps:t.connectgaps},-1!==this.mode.indexOf(\"lines\")?this.linePlot?this.linePlot.update(e):(this.linePlot=n(e),this.linePlot._trace=this,this.scene.glplot.add(this.linePlot)):this.linePlot&&(this.scene.glplot.remove(this.linePlot),this.linePlot.dispose(),this.linePlot=null);var d=t.opacity;if(t.marker&&t.marker.opacity&&(d*=t.marker.opacity),r={gl:u,position:p.position,color:p.scatterColor,size:p.scatterSize,glyph:p.scatterMarker,opacity:d,orthographic:!0,lineWidth:p.scatterLineWidth,lineColor:p.scatterLineColor,project:p.project,projectScale:p.projectScale,projectOpacity:p.projectOpacity},-1!==this.mode.indexOf(\"markers\")?this.scatterPlot?this.scatterPlot.update(r):(this.scatterPlot=i(r),this.scatterPlot._trace=this,this.scatterPlot.highlightScale=1,this.scene.glplot.add(this.scatterPlot)):this.scatterPlot&&(this.scene.glplot.remove(this.scatterPlot),this.scatterPlot.dispose(),this.scatterPlot=null),c={gl:u,position:p.position,glyph:p.text,color:p.textColor,size:p.textSize,angle:p.textAngle,alignment:p.textOffset,font:p.textFont,orthographic:!0,lineWidth:0,project:!1,opacity:t.opacity},this.textLabels=t.hovertext||t.text,-1!==this.mode.indexOf(\"text\")?this.textMarkers?this.textMarkers.update(c):(this.textMarkers=i(c),this.textMarkers._trace=this,this.textMarkers.highlightScale=1,this.scene.glplot.add(this.textMarkers)):this.textMarkers&&(this.scene.glplot.remove(this.textMarkers),this.textMarkers.dispose(),this.textMarkers=null),l={gl:u,position:p.position,color:p.errorColor,error:p.errorBounds,lineWidth:p.errorLineWidth,capSize:p.errorCapSize,opacity:t.opacity},this.errorBars?p.errorBounds?this.errorBars.update(l):(this.scene.glplot.remove(this.errorBars),this.errorBars.dispose(),this.errorBars=null):p.errorBounds&&(this.errorBars=a(l),this.errorBars._trace=this,this.scene.glplot.add(this.errorBars)),p.delaunayAxis>=0){var g=function(t,e,r){var n,i=(r+1)%3,a=(r+2)%3,o=[],l=[];for(n=0;n<t.length;++n){var c=t[n];!isNaN(c[i])&&isFinite(c[i])&&!isNaN(c[a])&&isFinite(c[a])&&(o.push([c[i],c[a]]),l.push(n))}var u=s(o);for(n=0;n<u.length;++n)for(var f=u[n],h=0;h<f.length;++h)f[h]=l[f[h]];return{positions:t,cells:u,meshColor:e}}(p.position,p.delaunayColor,p.delaunayAxis);g.opacity=t.opacity,this.delaunayMesh?this.delaunayMesh.update(g):(g.gl=u,this.delaunayMesh=o(g),this.delaunayMesh._trace=this,this.scene.glplot.add(this.delaunayMesh))}else this.delaunayMesh&&(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose(),this.delaunayMesh=null)},v.dispose=function(){this.linePlot&&(this.scene.glplot.remove(this.linePlot),this.linePlot.dispose()),this.scatterPlot&&(this.scene.glplot.remove(this.scatterPlot),this.scatterPlot.dispose()),this.errorBars&&(this.scene.glplot.remove(this.errorBars),this.errorBars.dispose()),this.textMarkers&&(this.scene.glplot.remove(this.textMarkers),this.textMarkers.dispose()),this.delaunayMesh&&(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose())},e.exports=function(t,e){var r=new g(t,e.uid);return r.update(e),r}},{\"../../constants/gl3d_dashes\":670,\"../../constants/gl3d_markers\":671,\"../../lib\":696,\"../../lib/gl_format_color\":692,\"../../lib/str2rgbarray\":719,\"../scatter/make_bubble_size_func\":1060,\"./calc_errors\":1072,\"delaunay-triangulate\":150,\"gl-error3d\":237,\"gl-line3d\":245,\"gl-mesh3d\":268,\"gl-scatter3d\":284}],1074:[function(t,e,r){\"use strict\";var n=t(\"../../registry\"),i=t(\"../../lib\"),a=t(\"../scatter/subtypes\"),o=t(\"../scatter/marker_defaults\"),s=t(\"../scatter/line_defaults\"),l=t(\"../scatter/text_defaults\"),c=t(\"./attributes\");e.exports=function(t,e,r,u){function f(r,n){return i.coerce(t,e,c,r,n)}if(function(t,e,r,i){var a=0,o=r(\"x\"),s=r(\"y\"),l=r(\"z\");n.getComponentMethod(\"calendars\",\"handleTraceDefaults\")(t,e,[\"x\",\"y\",\"z\"],i),o&&s&&l&&(a=Math.min(o.length,s.length,l.length),e._length=e._xlength=e._ylength=e._zlength=a);return a}(t,e,f,u)){f(\"text\"),f(\"hovertext\"),f(\"mode\"),a.hasLines(e)&&(f(\"connectgaps\"),s(t,e,r,u,f)),a.hasMarkers(e)&&o(t,e,r,u,f,{noSelect:!0}),a.hasText(e)&&l(t,e,u,f,{noSelect:!0});var h=(e.line||{}).color,p=(e.marker||{}).color;f(\"surfaceaxis\")>=0&&f(\"surfacecolor\",h||p);for(var d=[\"x\",\"y\",\"z\"],g=0;g<3;++g){var v=\"projection.\"+d[g];f(v+\".show\")&&(f(v+\".opacity\"),f(v+\".scale\"))}var m=n.getComponentMethod(\"errorbars\",\"supplyDefaults\");m(t,e,r,{axis:\"z\"}),m(t,e,r,{axis:\"y\",inherit:\"z\"}),m(t,e,r,{axis:\"x\",inherit:\"z\"})}else e.visible=!1}},{\"../../lib\":696,\"../../registry\":827,\"../scatter/line_defaults\":1056,\"../scatter/marker_defaults\":1062,\"../scatter/subtypes\":1067,\"../scatter/text_defaults\":1068,\"./attributes\":1070}],1075:[function(t,e,r){\"use strict\";var n={};n.plot=t(\"./convert\"),n.attributes=t(\"./attributes\"),n.markerSymbols=t(\"../../constants/gl3d_markers\"),n.supplyDefaults=t(\"./defaults\"),n.colorbar=t(\"../scatter/marker_colorbar\"),n.calc=t(\"./calc\"),n.moduleType=\"trace\",n.name=\"scatter3d\",n.basePlotModule=t(\"../../plots/gl3d\"),n.categories=[\"gl3d\",\"symbols\",\"showLegend\"],n.meta={},e.exports=n},{\"../../constants/gl3d_markers\":671,\"../../plots/gl3d\":787,\"../scatter/marker_colorbar\":1061,\"./attributes\":1070,\"./calc\":1071,\"./convert\":1073,\"./defaults\":1074}],1076:[function(t,e,r){\"use strict\";var n=t(\"../scatter/attributes\"),i=t(\"../../plots/attributes\"),a=t(\"../../components/colorscale/attributes\"),o=t(\"../../components/colorbar/attributes\"),s=t(\"../../lib/extend\").extendFlat,l=n.marker,c=n.line,u=l.line;e.exports={carpet:{valType:\"string\",editType:\"calc\"},a:{valType:\"data_array\",editType:\"calc\"},b:{valType:\"data_array\",editType:\"calc\"},mode:s({},n.mode,{dflt:\"markers\"}),text:s({},n.text,{}),line:{color:c.color,width:c.width,dash:c.dash,shape:s({},c.shape,{values:[\"linear\",\"spline\"]}),smoothing:c.smoothing,editType:\"calc\"},connectgaps:n.connectgaps,fill:s({},n.fill,{values:[\"none\",\"toself\",\"tonext\"],dflt:\"none\"}),fillcolor:n.fillcolor,marker:s({symbol:l.symbol,opacity:l.opacity,maxdisplayed:l.maxdisplayed,size:l.size,sizeref:l.sizeref,sizemin:l.sizemin,sizemode:l.sizemode,line:s({width:u.width,editType:\"calc\"},a(\"marker.line\")),gradient:l.gradient,editType:\"calc\"},a(\"marker\"),{colorbar:o}),textfont:n.textfont,textposition:n.textposition,selected:n.selected,unselected:n.unselected,hoverinfo:s({},i.hoverinfo,{flags:[\"a\",\"b\",\"text\",\"name\"]}),hoveron:n.hoveron}},{\"../../components/colorbar/attributes\":571,\"../../components/colorscale/attributes\":577,\"../../lib/extend\":685,\"../../plots/attributes\":741,\"../scatter/attributes\":1043}],1077:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../scatter/colorscale_calc\"),a=t(\"../scatter/arrays_to_calcdata\"),o=t(\"../scatter/calc_selection\"),s=t(\"../scatter/calc\").calcMarkerSize,l=t(\"../carpet/lookup_carpetid\");e.exports=function(t,e){var r=e._carpetTrace=l(t,e);if(r&&r.visible&&\"legendonly\"!==r.visible){var c;e.xaxis=r.xaxis,e.yaxis=r.yaxis;var u,f,h=e._length,p=new Array(h),d=!1;for(c=0;c<h;c++)if(u=e.a[c],f=e.b[c],n(u)&&n(f)){var g=r.ab2xy(+u,+f,!0),v=r.isVisible(+u,+f);v||(d=!0),p[c]={x:g[0],y:g[1],a:u,b:f,vis:v}}else p[c]={x:!1,y:!1};return e._needsCull=d,p[0].carpet=r,p[0].trace=e,s(e,h),i(e),a(p,e),o(p,e),p}}},{\"../carpet/lookup_carpetid\":894,\"../scatter/arrays_to_calcdata\":1042,\"../scatter/calc\":1044,\"../scatter/calc_selection\":1045,\"../scatter/colorscale_calc\":1046,\"fast-isnumeric\":214}],1078:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../scatter/constants\"),a=t(\"../scatter/subtypes\"),o=t(\"../scatter/marker_defaults\"),s=t(\"../scatter/line_defaults\"),l=t(\"../scatter/line_shape_defaults\"),c=t(\"../scatter/text_defaults\"),u=t(\"../scatter/fillcolor_defaults\"),f=t(\"./attributes\");e.exports=function(t,e,r,h){function p(r,i){return n.coerce(t,e,f,r,i)}p(\"carpet\"),e.xaxis=\"x\",e.yaxis=\"y\";var d=p(\"a\"),g=p(\"b\"),v=Math.min(d.length,g.length);if(v){e._length=v,p(\"text\"),p(\"mode\",v<i.PTS_LINESONLY?\"lines+markers\":\"lines\"),a.hasLines(e)&&(s(t,e,r,h,p),l(t,e,p),p(\"connectgaps\")),a.hasMarkers(e)&&o(t,e,r,h,p,{gradient:!0}),a.hasText(e)&&c(t,e,h,p);var m=[];(a.hasMarkers(e)||a.hasText(e))&&(p(\"marker.maxdisplayed\"),m.push(\"points\")),p(\"fill\"),\"none\"!==e.fill&&(u(t,e,r,p),a.hasLines(e)||l(t,e,p)),\"tonext\"!==e.fill&&\"toself\"!==e.fill||m.push(\"fills\"),p(\"hoveron\",m.join(\"+\")||\"points\"),n.coerceSelectionMarkerOpacity(e,p)}else e.visible=!1}},{\"../../lib\":696,\"../scatter/constants\":1047,\"../scatter/fillcolor_defaults\":1052,\"../scatter/line_defaults\":1056,\"../scatter/line_shape_defaults\":1058,\"../scatter/marker_defaults\":1062,\"../scatter/subtypes\":1067,\"../scatter/text_defaults\":1068,\"./attributes\":1076}],1079:[function(t,e,r){\"use strict\";e.exports=function(t,e,r,n,i){var a=n[i];return t.a=a.a,t.b=a.b,t}},{}],1080:[function(t,e,r){\"use strict\";var n=t(\"../scatter/hover\");e.exports=function(t,e,r,i){var a=n(t,e,r,i);if(a&&!1!==a[0].index){var o=a[0];if(void 0===o.index){var s=1-o.y0/t.ya._length,l=t.xa._length,c=l*s/2,u=l-c;return o.x0=Math.max(Math.min(o.x0,u),c),o.x1=Math.max(Math.min(o.x1,u),c),a}var f=o.cd[o.index];o.a=f.a,o.b=f.b,o.xLabelVal=void 0,o.yLabelVal=void 0;var h=o.trace,p=h._carpet,d=(f.hi||h.hoverinfo).split(\"+\"),g=[];-1!==d.indexOf(\"all\")&&(d=[\"a\",\"b\"]),-1!==d.indexOf(\"a\")&&w(p.aaxis,f.a),-1!==d.indexOf(\"b\")&&w(p.baxis,f.b);var v=p.ab2ij([f.a,f.b]),m=Math.floor(v[0]),y=v[0]-m,x=Math.floor(v[1]),b=v[1]-x,_=p.evalxy([],m,x,y,b);return g.push(\"y: \"+_[1].toFixed(3)),o.extraText=g.join(\"<br>\"),a}function w(t,e){var r;r=t.labelprefix&&t.labelprefix.length>0?t.labelprefix.replace(/ = $/,\"\"):t._hovertitle,g.push(r+\": \"+e.toFixed(3)+t.labelsuffix)}}},{\"../scatter/hover\":1054}],1081:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.supplyDefaults=t(\"./defaults\"),n.colorbar=t(\"../scatter/marker_colorbar\"),n.calc=t(\"./calc\"),n.plot=t(\"./plot\"),n.style=t(\"../scatter/style\").style,n.styleOnSelect=t(\"../scatter/style\").styleOnSelect,n.hoverPoints=t(\"./hover\"),n.selectPoints=t(\"../scatter/select\"),n.eventData=t(\"./event_data\"),n.moduleType=\"trace\",n.name=\"scattercarpet\",n.basePlotModule=t(\"../../plots/cartesian\"),n.categories=[\"svg\",\"carpet\",\"symbols\",\"showLegend\",\"carpetDependent\",\"zoomScale\"],n.meta={},e.exports=n},{\"../../plots/cartesian\":756,\"../scatter/marker_colorbar\":1061,\"../scatter/select\":1064,\"../scatter/style\":1066,\"./attributes\":1076,\"./calc\":1077,\"./defaults\":1078,\"./event_data\":1079,\"./hover\":1080,\"./plot\":1082}],1082:[function(t,e,r){\"use strict\";var n=t(\"../scatter/plot\"),i=t(\"../../plots/cartesian/axes\"),a=t(\"../../components/drawing\");e.exports=function(t,e,r,o){var s,l,c,u=r[0][0].carpet,f={xaxis:i.getFromId(t,u.xaxis||\"x\"),yaxis:i.getFromId(t,u.yaxis||\"y\"),plot:e.plot};for(n(t,f,r,o),s=0;s<r.length;s++)l=r[s][0].trace,c=o.selectAll(\"g.trace\"+l.uid+\" .js-line\"),a.setClipUrl(c,u._clipPathId)}},{\"../../components/drawing\":595,\"../../plots/cartesian/axes\":744,\"../scatter/plot\":1063}],1083:[function(t,e,r){\"use strict\";var n=t(\"../scatter/attributes\"),i=t(\"../../plots/attributes\"),a=t(\"../../components/colorscale/attributes\"),o=t(\"../../components/drawing/attributes\").dash,s=t(\"../../lib/extend\").extendFlat,l=t(\"../../plot_api/edit_types\").overrideAll,c=n.marker,u=n.line,f=c.line;e.exports=l({lon:{valType:\"data_array\"},lat:{valType:\"data_array\"},locations:{valType:\"data_array\"},locationmode:{valType:\"enumerated\",values:[\"ISO-3\",\"USA-states\",\"country names\"],dflt:\"ISO-3\"},mode:s({},n.mode,{dflt:\"markers\"}),text:s({},n.text,{}),hovertext:s({},n.hovertext,{}),textfont:n.textfont,textposition:n.textposition,line:{color:u.color,width:u.width,dash:o},connectgaps:n.connectgaps,marker:s({symbol:c.symbol,opacity:c.opacity,size:c.size,sizeref:c.sizeref,sizemin:c.sizemin,sizemode:c.sizemode,colorbar:c.colorbar,line:s({width:f.width},a(\"marker.line\")),gradient:c.gradient},a(\"marker\")),fill:{valType:\"enumerated\",values:[\"none\",\"toself\"],dflt:\"none\"},fillcolor:n.fillcolor,selected:n.selected,unselected:n.unselected,hoverinfo:s({},i.hoverinfo,{flags:[\"lon\",\"lat\",\"location\",\"text\",\"name\"]})},\"calc\",\"nested\")},{\"../../components/colorscale/attributes\":577,\"../../components/drawing/attributes\":594,\"../../lib/extend\":685,\"../../plot_api/edit_types\":727,\"../../plots/attributes\":741,\"../scatter/attributes\":1043}],1084:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../../constants/numerical\").BADNUM,a=t(\"../scatter/colorscale_calc\"),o=t(\"../scatter/arrays_to_calcdata\"),s=t(\"../scatter/calc_selection\"),l=t(\"../../lib\")._;e.exports=function(t,e){for(var r=Array.isArray(e.locations),c=r?e.locations.length:e._length,u=new Array(c),f=0;f<c;f++){var h=u[f]={};if(r){var p=e.locations[f];h.loc=\"string\"==typeof p?p:null}else{var d=e.lon[f],g=e.lat[f];n(d)&&n(g)?h.lonlat=[+d,+g]:h.lonlat=[i,i]}}return o(u,e),a(e),s(u,e),c&&(u[0].t={labels:{lat:l(t,\"lat:\")+\" \",lon:l(t,\"lon:\")+\" \"}}),u}},{\"../../constants/numerical\":673,\"../../lib\":696,\"../scatter/arrays_to_calcdata\":1042,\"../scatter/calc_selection\":1045,\"../scatter/colorscale_calc\":1046,\"fast-isnumeric\":214}],1085:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../scatter/subtypes\"),a=t(\"../scatter/marker_defaults\"),o=t(\"../scatter/line_defaults\"),s=t(\"../scatter/text_defaults\"),l=t(\"../scatter/fillcolor_defaults\"),c=t(\"./attributes\");e.exports=function(t,e,r,u){function f(r,i){return n.coerce(t,e,c,r,i)}!function(t,e,r){var n,i,a=0,o=r(\"locations\");if(o)return r(\"locationmode\"),a=o.length;return n=r(\"lon\")||[],i=r(\"lat\")||[],a=Math.min(n.length,i.length),e._length=a,a}(0,e,f)?e.visible=!1:(f(\"text\"),f(\"hovertext\"),f(\"mode\"),i.hasLines(e)&&(o(t,e,r,u,f),f(\"connectgaps\")),i.hasMarkers(e)&&a(t,e,r,u,f,{gradient:!0}),i.hasText(e)&&s(t,e,u,f),f(\"fill\"),\"none\"!==e.fill&&l(t,e,r,f),n.coerceSelectionMarkerOpacity(e,f))}},{\"../../lib\":696,\"../scatter/fillcolor_defaults\":1052,\"../scatter/line_defaults\":1056,\"../scatter/marker_defaults\":1062,\"../scatter/subtypes\":1067,\"../scatter/text_defaults\":1068,\"./attributes\":1083}],1086:[function(t,e,r){\"use strict\";e.exports=function(t,e){return t.lon=e.lon,t.lat=e.lat,t.location=e.loc?e.loc:null,t}},{}],1087:[function(t,e,r){\"use strict\";var n=t(\"../../components/fx\"),i=t(\"../../plots/cartesian/axes\"),a=t(\"../../constants/numerical\").BADNUM,o=t(\"../scatter/get_trace_color\"),s=t(\"../scatter/fill_hover_text\"),l=t(\"./attributes\");e.exports=function(t,e,r){var c=t.cd,u=c[0].trace,f=t.xa,h=t.ya,p=t.subplot,d=p.projection.isLonLatOverEdges,g=p.project;if(n.getClosest(c,function(t){var n=t.lonlat;if(n[0]===a)return 1/0;if(d(n))return 1/0;var i=g(n),o=g([e,r]),s=Math.abs(i[0]-o[0]),l=Math.abs(i[1]-o[1]),c=Math.max(3,t.mrc||0);return Math.max(Math.sqrt(s*s+l*l)-c,1-3/c)},t),!1!==t.index){var v=c[t.index],m=v.lonlat,y=[f.c2p(m),h.c2p(m)],x=v.mrc||1;return t.x0=y[0]-x,t.x1=y[0]+x,t.y0=y[1]-x,t.y1=y[1]+x,t.loc=v.loc,t.lon=m[0],t.lat=m[1],t.color=o(u,v),t.extraText=function(t,e,r,n){var a=e.hi||t.hoverinfo,o=\"all\"===a?l.hoverinfo.flags:a.split(\"+\"),c=-1!==o.indexOf(\"location\")&&Array.isArray(t.locations),u=-1!==o.indexOf(\"lon\"),f=-1!==o.indexOf(\"lat\"),h=-1!==o.indexOf(\"text\"),p=[];function d(t){return i.tickText(r,r.c2l(t),\"hover\").text+\"\\xb0\"}c?p.push(e.loc):u&&f?p.push(\"(\"+d(e.lonlat[0])+\", \"+d(e.lonlat[1])+\")\"):u?p.push(n.lon+d(e.lonlat[0])):f&&p.push(n.lat+d(e.lonlat[1]));h&&s(e,t,p);return p.join(\"<br>\")}(u,v,p.mockAxis,c[0].t.labels),[t]}}},{\"../../components/fx\":612,\"../../constants/numerical\":673,\"../../plots/cartesian/axes\":744,\"../scatter/fill_hover_text\":1051,\"../scatter/get_trace_color\":1053,\"./attributes\":1083}],1088:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.supplyDefaults=t(\"./defaults\"),n.colorbar=t(\"../scatter/marker_colorbar\"),n.calc=t(\"./calc\"),n.plot=t(\"./plot\"),n.style=t(\"./style\"),n.styleOnSelect=t(\"../scatter/style\").styleOnSelect,n.hoverPoints=t(\"./hover\"),n.eventData=t(\"./event_data\"),n.selectPoints=t(\"./select\"),n.moduleType=\"trace\",n.name=\"scattergeo\",n.basePlotModule=t(\"../../plots/geo\"),n.categories=[\"geo\",\"symbols\",\"showLegend\",\"scatter-like\"],n.meta={},e.exports=n},{\"../../plots/geo\":775,\"../scatter/marker_colorbar\":1061,\"../scatter/style\":1066,\"./attributes\":1083,\"./calc\":1084,\"./defaults\":1085,\"./event_data\":1086,\"./hover\":1087,\"./plot\":1089,\"./select\":1090,\"./style\":1091}],1089:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../../lib\"),a=t(\"../../constants/numerical\").BADNUM,o=t(\"../../lib/topojson_utils\").getTopojsonFeatures,s=t(\"../../lib/geo_location_utils\").locationToFeature,l=t(\"../../lib/geojson_utils\"),c=t(\"../scatter/subtypes\"),u=t(\"./style\");function f(t,e){var r=t[0].trace;if(Array.isArray(r.locations))for(var n=o(r,e),i=r.locationmode,l=0;l<t.length;l++){var c=t[l],u=s(i,c.loc,n);c.lonlat=u?u.properties.ct:[a,a]}}e.exports=function(t,e,r){for(var o=0;o<r.length;o++)f(r[o],e.topojson);function s(t,e){t.lonlat[0]===a&&n.select(e).remove()}var h=e.layers.frontplot.select(\".scatterlayer\"),p=i.makeTraceGroups(h,r,\"trace scattergeo\");p.selectAll(\"*\").remove(),p.each(function(e){var r=e[0].node3=n.select(this),a=e[0].trace;if(c.hasLines(a)||\"none\"!==a.fill){var o=l.calcTraceToLineCoords(e),f=\"none\"!==a.fill?l.makePolygon(o):l.makeLine(o);r.selectAll(\"path.js-line\").data([{geojson:f,trace:a}]).enter().append(\"path\").classed(\"js-line\",!0).style(\"stroke-miterlimit\",2)}c.hasMarkers(a)&&r.selectAll(\"path.point\").data(i.identity).enter().append(\"path\").classed(\"point\",!0).each(function(t){s(t,this)}),c.hasText(a)&&r.selectAll(\"g\").data(i.identity).enter().append(\"g\").append(\"text\").each(function(t){s(t,this)}),u(t,e)})}},{\"../../constants/numerical\":673,\"../../lib\":696,\"../../lib/geo_location_utils\":688,\"../../lib/geojson_utils\":689,\"../../lib/topojson_utils\":723,\"../scatter/subtypes\":1067,\"./style\":1091,d3:148}],1090:[function(t,e,r){\"use strict\";var n=t(\"../scatter/subtypes\"),i=t(\"../../constants/numerical\").BADNUM;e.exports=function(t,e){var r,a,o,s,l,c=t.cd,u=t.xaxis,f=t.yaxis,h=[],p=c[0].trace;if(!n.hasMarkers(p)&&!n.hasText(p))return[];if(!1===e)for(l=0;l<c.length;l++)c[l].selected=0;else for(l=0;l<c.length;l++)(a=(r=c[l]).lonlat)[0]!==i&&(o=u.c2p(a),s=f.c2p(a),e.contains([o,s],null,l,t)?(h.push({pointNumber:l,lon:a[0],lat:a[1]}),r.selected=1):r.selected=0);return h}},{\"../../constants/numerical\":673,\"../scatter/subtypes\":1067}],1091:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../../components/drawing\"),a=t(\"../../components/color\"),o=t(\"../scatter/style\"),s=o.stylePoints,l=o.styleText;e.exports=function(t,e){e&&function(t,e){var r=e[0].trace,o=e[0].node3;o.style(\"opacity\",e[0].trace.opacity),s(o,r,t),l(o,r,t),o.selectAll(\"path.js-line\").style(\"fill\",\"none\").each(function(t){var e=n.select(this),r=t.trace,o=r.line||{};e.call(a.stroke,o.color).call(i.dashLine,o.dash||\"\",o.width||0),\"none\"!==r.fill&&e.call(a.fill,r.fillcolor)})}(t,e)}},{\"../../components/color\":570,\"../../components/drawing\":595,\"../scatter/style\":1066,d3:148}],1092:[function(t,e,r){\"use strict\";var n=t(\"../../plots/attributes\"),i=t(\"../scatter/attributes\"),a=t(\"../../components/colorscale/attributes\"),o=t(\"../../lib/extend\").extendFlat,s=t(\"../../plot_api/edit_types\").overrideAll,l=t(\"./constants\").DASHES,c=i.line,u=i.marker,f=u.line,h=e.exports=s({x:i.x,x0:i.x0,dx:i.dx,y:i.y,y0:i.y0,dy:i.dy,text:i.text,hovertext:i.hovertext,textposition:i.textposition,textfont:i.textfont,mode:{valType:\"flaglist\",flags:[\"lines\",\"markers\",\"text\"],extras:[\"none\"]},line:{color:c.color,width:c.width,shape:{valType:\"enumerated\",values:[\"linear\",\"hv\",\"vh\",\"hvh\",\"vhv\"],dflt:\"linear\",editType:\"plot\"},dash:{valType:\"enumerated\",values:Object.keys(l),dflt:\"solid\"}},marker:o({},a(\"marker\"),{symbol:u.symbol,size:u.size,sizeref:u.sizeref,sizemin:u.sizemin,sizemode:u.sizemode,opacity:u.opacity,colorbar:u.colorbar,line:o({},a(\"marker.line\"),{width:f.width})}),connectgaps:i.connectgaps,fill:o({},i.fill,{dflt:\"none\"}),fillcolor:i.fillcolor,selected:{marker:i.selected.marker,textfont:i.selected.textfont},unselected:{marker:i.unselected.marker,textfont:i.unselected.textfont},opacity:n.opacity},\"calc\",\"nested\");h.x.editType=h.y.editType=h.x0.editType=h.y0.editType=\"calc+clearAxisTypes\"},{\"../../components/colorscale/attributes\":577,\"../../lib/extend\":685,\"../../plot_api/edit_types\":727,\"../../plots/attributes\":741,\"../scatter/attributes\":1043,\"./constants\":1093}],1093:[function(t,e,r){\"use strict\";e.exports={TOO_MANY_POINTS:1e5,SYMBOL_SDF_SIZE:200,SYMBOL_SIZE:20,SYMBOL_STROKE:1,DOT_RE:/-dot/,OPEN_RE:/-open/,DASHES:{solid:[1],dot:[1,1],dash:[4,1],longdash:[8,1],dashdot:[4,1,1,1],longdashdot:[8,1,1,1]}}},{}],1094:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"svg-path-sdf\"),a=t(\"color-normalize\"),o=t(\"../../registry\"),s=t(\"../../lib\"),l=t(\"../../components/drawing\"),c=t(\"../../plots/cartesian/axis_ids\"),u=t(\"../../lib/gl_format_color\").formatColor,f=t(\"../scatter/subtypes\"),h=t(\"../scatter/make_bubble_size_func\"),p=t(\"./constants\"),d=t(\"../../constants/interactions\").DESELECTDIM,g={start:1,left:1,end:-1,right:-1,middle:0,center:0,bottom:1,top:-1};function v(t){var e,r=t._length,i=t.textfont,a=t.textposition,o=Array.isArray(a)?a:[a],s=i.color,l=i.size,c=i.family,u={};for(u.text=t.text,u.opacity=t.opacity,u.font={},u.align=[],u.baseline=[],e=0;e<o.length;e++){var f=o[e].split(/\\s+/);switch(f[1]){case\"left\":u.align.push(\"right\");break;case\"right\":u.align.push(\"left\");break;default:u.align.push(f[1])}switch(f[0]){case\"top\":u.baseline.push(\"bottom\");break;case\"bottom\":u.baseline.push(\"top\");break;default:u.baseline.push(f[0])}}if(Array.isArray(s))for(u.color=new Array(r),e=0;e<r;e++)u.color[e]=s[e];else u.color=s;if(Array.isArray(l)||Array.isArray(c))for(u.font=new Array(r),e=0;e<r;e++){var h=u.font[e]={};h.size=Array.isArray(l)?n(l[e])?l[e]:0:l,h.family=Array.isArray(c)?c[e]:c}else u.font={size:l,family:c};return u}function m(t){var e,r,n=t._length,i=t.marker,o={},l=Array.isArray(i.symbol),c=s.isArrayOrTypedArray(i.color),f=s.isArrayOrTypedArray(i.line.color),d=s.isArrayOrTypedArray(i.opacity),g=s.isArrayOrTypedArray(i.size),v=s.isArrayOrTypedArray(i.line.width);if(l||(r=p.OPEN_RE.test(i.symbol)),l||c||f||d){o.colors=new Array(n),o.borderColors=new Array(n);var m=u(i,i.opacity,n),y=u(i.line,i.opacity,n);if(!Array.isArray(y[0])){var x=y;for(y=Array(n),e=0;e<n;e++)y[e]=x}if(!Array.isArray(m[0])){var b=m;for(m=Array(n),e=0;e<n;e++)m[e]=b}for(o.colors=m,o.borderColors=y,e=0;e<n;e++){if(l){var _=i.symbol[e];r=p.OPEN_RE.test(_)}r&&(y[e]=m[e].slice(),m[e]=m[e].slice(),m[e][3]=0)}o.opacity=t.opacity}else r?(o.color=a(i.color,\"uint8\"),o.color[3]=0,o.borderColor=a(i.color,\"uint8\")):(o.color=a(i.color,\"uint8\"),o.borderColor=a(i.line.color,\"uint8\")),o.opacity=t.opacity*i.opacity;if(l)for(o.markers=new Array(n),e=0;e<n;e++)o.markers[e]=T(i.symbol[e]);else o.marker=T(i.symbol);var w,k=h(t);if(g||v){var M,A=o.sizes=new Array(n),S=o.borderSizes=new Array(n),E=0;if(g){for(e=0;e<n;e++)A[e]=k(i.size[e]),E+=A[e];M=E/n}else for(w=k(i.size),e=0;e<n;e++)A[e]=w;if(v)for(e=0;e<n;e++)S[e]=i.line.width[e]/2;else for(w=i.line.width/2,e=0;e<n;e++)S[e]=w;o.sizeAvg=M}else o.size=k(i&&i.size||10),o.borderSizes=k(i.line.width);return o}function y(t,e){var r=t.marker,n={};return e?(e.marker&&e.marker.symbol?n=m(s.extendFlat({},r,e.marker)):e.marker&&(e.marker.size&&(n.size=e.marker.size/2),e.marker.color&&(n.colors=e.marker.color),void 0!==e.marker.opacity&&(n.opacity=e.marker.opacity)),n):n}function x(t,e){var r={};if(!e)return r;if(e.textfont){var n={opacity:1,text:t.text,textposition:t.textposition,textfont:s.extendFlat({},t.textfont)};e.textfont&&s.extendFlat(n.textfont,e.textfont),r=v(n)}return r}function b(t,e){var r={capSize:2*e.width,lineWidth:e.thickness,color:e.color};return e.copy_ystyle&&(r=t.error_y),r}var _=p.SYMBOL_SDF_SIZE,w=p.SYMBOL_SIZE,k=p.SYMBOL_STROKE,M={},A=l.symbolFuncs[0](.05*w);function T(t){if(\"circle\"===t)return null;var e,r,n=l.symbolNumber(t),a=l.symbolFuncs[n%100],o=!!l.symbolNoDot[n%100],s=!!l.symbolNoFill[n%100],c=p.DOT_RE.test(t);return M[t]?M[t]:(e=c&&!o?a(1.1*w)+A:a(w),r=i(e,{w:_,h:_,viewBox:[-w,-w,w,w],stroke:s?k:-k}),M[t]=r,r||null)}e.exports={style:function(t,e){var r,n={marker:void 0,markerSel:void 0,markerUnsel:void 0,line:void 0,fill:void 0,errorX:void 0,errorY:void 0,text:void 0,textSel:void 0,textUnsel:void 0};if(!0!==e.visible)return n;if(f.hasText(e)&&(n.text=v(e),n.textSel=x(e,e.selected),n.textUnsel=x(e,e.unselected)),f.hasMarkers(e)&&(n.marker=m(e),n.markerSel=y(e,e.selected),n.markerUnsel=y(e,e.unselected),!e.unselected&&Array.isArray(e.marker.opacity))){var i=e.marker.opacity;for(n.markerUnsel.opacity=new Array(i.length),r=0;r<i.length;r++)n.markerUnsel.opacity[r]=d*i[r]}if(f.hasLines(e)){n.line={overlay:!0,thickness:e.line.width,color:e.line.color,opacity:e.opacity};var a=(p.DASHES[e.line.dash]||[1]).slice();for(r=0;r<a.length;++r)a[r]*=e.line.width;n.line.dashes=a}return e.error_x&&e.error_x.visible&&(n.errorX=b(e,e.error_x)),e.error_y&&e.error_y.visible&&(n.errorY=b(e,e.error_y)),e.fill&&\"none\"!==e.fill&&(n.fill={closed:!0,fill:e.fillcolor,thickness:0}),n},markerStyle:m,markerSelection:y,linePositions:function(t,e,r){var n,i,a=r.length,o=a/2;if(f.hasLines(e)&&o)if(\"hv\"===e.line.shape){for(n=[],i=0;i<o-1;i++)isNaN(r[2*i])||isNaN(r[2*i+1])?n.push(NaN,NaN,NaN,NaN):(n.push(r[2*i],r[2*i+1]),isNaN(r[2*i+2])||isNaN(r[2*i+3])?n.push(NaN,NaN):n.push(r[2*i+2],r[2*i+1]));n.push(r[a-2],r[a-1])}else if(\"hvh\"===e.line.shape){for(n=[],i=0;i<o-1;i++)if(isNaN(r[2*i])||isNaN(r[2*i+1])||isNaN(r[2*i+2])||isNaN(r[2*i+3]))isNaN(r[2*i])||isNaN(r[2*i+1])?n.push(NaN,NaN):n.push(r[2*i],r[2*i+1]),n.push(NaN,NaN);else{var s=(r[2*i]+r[2*i+2])/2;n.push(r[2*i],r[2*i+1],s,r[2*i+1],s,r[2*i+3])}n.push(r[a-2],r[a-1])}else if(\"vhv\"===e.line.shape){for(n=[],i=0;i<o-1;i++)if(isNaN(r[2*i])||isNaN(r[2*i+1])||isNaN(r[2*i+2])||isNaN(r[2*i+3]))isNaN(r[2*i])||isNaN(r[2*i+1])?n.push(NaN,NaN):n.push(r[2*i],r[2*i+1]),n.push(NaN,NaN);else{var l=(r[2*i+1]+r[2*i+3])/2;n.push(r[2*i],r[2*i+1],r[2*i],l,r[2*i+2],l)}n.push(r[a-2],r[a-1])}else if(\"vh\"===e.line.shape){for(n=[],i=0;i<o-1;i++)isNaN(r[2*i])||isNaN(r[2*i+1])?n.push(NaN,NaN,NaN,NaN):(n.push(r[2*i],r[2*i+1]),isNaN(r[2*i+2])||isNaN(r[2*i+3])?n.push(NaN,NaN):n.push(r[2*i],r[2*i+3]));n.push(r[a-2],r[a-1])}else n=r;var c=!1;for(i=0;i<n.length;i++)if(isNaN(n[i])){c=!0;break}var u=c||n.length>p.TOO_MANY_POINTS?\"rect\":f.hasMarkers(e)?\"rect\":\"round\";if(c&&e.connectgaps){var h=n[0],d=n[1];for(i=0;i<n.length;i+=2)isNaN(n[i])||isNaN(n[i+1])?(n[i]=h,n[i+1]=d):(h=n[i],d=n[i+1])}return{join:u,positions:n}},errorBarPositions:function(t,e,r,i,a){var s=o.getComponentMethod(\"errorbars\",\"makeComputeError\"),l=c.getFromId(t,e.xaxis),u=c.getFromId(t,e.yaxis),f=r.length/2,h={};function p(t,i){var a=i._id.charAt(0),o=e[\"error_\"+a];if(o&&o.visible&&(\"linear\"===i.type||\"log\"===i.type)){for(var l=s(o),c={x:0,y:1}[a],u={x:[0,1,2,3],y:[2,3,0,1]}[a],p=new Float64Array(4*f),d=1/0,g=-1/0,v=0,m=0;v<f;v++,m+=4){var y=t[v];if(n(y)){var x=r[2*v+c],b=l(y,v),_=b[0],w=b[1];if(n(_)&&n(w)){var k=y-_,M=y+w;p[m+u[0]]=x-i.c2l(k),p[m+u[1]]=i.c2l(M)-x,p[m+u[2]]=0,p[m+u[3]]=0,d=Math.min(d,y-_),g=Math.max(g,y+w)}}}h[a]={positions:r,errors:p,_bnds:[d,g]}}}return p(i,l),p(a,u),h},textPosition:function(t,e,r,n){var i,a=e._length,o={};if(f.hasMarkers(e)){var s=r.font,l=r.align,c=r.baseline;for(o.offset=new Array(a),i=0;i<a;i++){var u=n.sizes?n.sizes[i]:n.size,h=Array.isArray(s)?s[i].size:s.size,p=Array.isArray(l)?l.length>1?l[i]:l[0]:l,d=Array.isArray(c)?c.length>1?c[i]:c[0]:c,v=g[p],m=g[d],y=u?u/.8+1:0,x=-m*y-.5*m;o.offset[i]=[v*y/h,x/h]}}return o}}},{\"../../components/drawing\":595,\"../../constants/interactions\":672,\"../../lib\":696,\"../../lib/gl_format_color\":692,\"../../plots/cartesian/axis_ids\":747,\"../../registry\":827,\"../scatter/make_bubble_size_func\":1060,\"../scatter/subtypes\":1067,\"./constants\":1093,\"color-normalize\":108,\"fast-isnumeric\":214,\"svg-path-sdf\":512}],1095:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../registry\"),a=t(\"./attributes\"),o=t(\"../scatter/constants\"),s=t(\"../scatter/subtypes\"),l=t(\"../scatter/xy_defaults\"),c=t(\"../scatter/marker_defaults\"),u=t(\"../scatter/line_defaults\"),f=t(\"../scatter/fillcolor_defaults\"),h=t(\"../scatter/text_defaults\");e.exports=function(t,e,r,p){function d(r,i){return n.coerce(t,e,a,r,i)}var g=!!t.marker&&/-open/.test(t.marker.symbol),v=s.isBubble(t),m=l(t,e,p,d);if(m){var y=m<o.PTS_LINESONLY?\"lines+markers\":\"lines\";d(\"text\"),d(\"hovertext\"),d(\"mode\",y),s.hasLines(e)&&(d(\"connectgaps\"),u(t,e,r,p,d),d(\"line.shape\")),s.hasMarkers(e)&&(c(t,e,r,p,d),d(\"marker.line.width\",g||v?1:0)),s.hasText(e)&&h(t,e,p,d),d(\"fill\"),\"none\"!==e.fill&&f(t,e,r,d);var x=i.getComponentMethod(\"errorbars\",\"supplyDefaults\");x(t,e,r,{axis:\"y\"}),x(t,e,r,{axis:\"x\",inherit:\"y\"}),n.coerceSelectionMarkerOpacity(e,d)}else e.visible=!1}},{\"../../lib\":696,\"../../registry\":827,\"../scatter/constants\":1047,\"../scatter/fillcolor_defaults\":1052,\"../scatter/line_defaults\":1056,\"../scatter/marker_defaults\":1062,\"../scatter/subtypes\":1067,\"../scatter/text_defaults\":1068,\"../scatter/xy_defaults\":1069,\"./attributes\":1092}],1096:[function(t,e,r){\"use strict\";var n=t(\"regl-scatter2d\"),i=t(\"regl-line2d\"),a=t(\"regl-error2d\"),o=t(\"point-cluster\"),s=t(\"array-range\"),l=t(\"gl-text\"),c=t(\"../../registry\"),u=t(\"../../lib\"),f=t(\"../../lib/prepare_regl\"),h=t(\"../../plots/cartesian/axis_ids\"),p=t(\"../../plots/cartesian/autorange\").findExtremes,d=t(\"../../components/color\"),g=t(\"../scatter/subtypes\"),v=t(\"../scatter/calc\"),m=v.calcMarkerSize,y=v.calcAxisExpansion,x=v.setFirstScatter,b=t(\"../scatter/colorscale_calc\"),_=t(\"../scatter/link_traces\"),w=t(\"../scatter/get_trace_color\"),k=t(\"../scatter/fill_hover_text\"),M=t(\"./convert\"),A=t(\"../../constants/numerical\").BADNUM,T=t(\"./constants\").TOO_MANY_POINTS,S=t(\"../../constants/interactions\").DESELECTDIM;function E(t,e,r){var n=t._extremes[e._id],i=p(e,r._bnds,{padded:!0});n.min=n.min.concat(i.min),n.max=n.max.concat(i.max)}function C(t,e){var r=e._scene,n={count:0,dirty:!0,lineOptions:[],fillOptions:[],markerOptions:[],markerSelectedOptions:[],markerUnselectedOptions:[],errorXOptions:[],errorYOptions:[],textOptions:[],textSelectedOptions:[],textUnselectedOptions:[]},i={selectBatch:null,unselectBatch:null,fill2d:!1,scatter2d:!1,error2d:!1,line2d:!1,glText:!1,select2d:null};return e._scene||((r=e._scene={}).init=function(){u.extendFlat(r,i,n)},r.init(),r.update=function(t){var e=u.repeat(t,r.count);if(r.fill2d&&r.fill2d.update(e),r.scatter2d&&r.scatter2d.update(e),r.line2d&&r.line2d.update(e),r.error2d&&r.error2d.update(e.concat(e)),r.select2d&&r.select2d.update(e),r.glText)for(var n=0;n<r.count;n++)r.glText[n].update(t)},r.draw=function(){for(var t=r.count,e=r.fill2d,n=r.error2d,i=r.line2d,a=r.scatter2d,o=r.glText,s=r.select2d,l=r.selectBatch,c=r.unselectBatch,u=0;u<t;u++)e&&r.fillOrder[u]&&e.draw(r.fillOrder[u]),i&&r.lineOptions[u]&&i.draw(u),n&&(r.errorXOptions[u]&&n.draw(u),r.errorYOptions[u]&&n.draw(u+t)),!a||!r.markerOptions[u]||l&&l[u]||a.draw(u),o[u]&&r.textOptions[u]&&o[u].render();a&&s&&l&&(s.draw(l),a.draw(c)),r.dirty=!1},r.destroy=function(){r.fill2d&&r.fill2d.destroy&&r.fill2d.destroy(),r.scatter2d&&r.scatter2d.destroy&&r.scatter2d.destroy(),r.error2d&&r.error2d.destroy&&r.error2d.destroy(),r.line2d&&r.line2d.destroy&&r.line2d.destroy(),r.select2d&&r.select2d.destroy&&r.select2d.destroy(),r.glText&&r.glText.forEach(function(t){t.destroy&&t.destroy()}),r.lineOptions=null,r.fillOptions=null,r.markerOptions=null,r.markerSelectedOptions=null,r.markerUnselectedOptions=null,r.errorXOptions=null,r.errorYOptions=null,r.textOptions=null,r.textSelectedOptions=null,r.textUnselectedOptions=null,r.selectBatch=null,r.unselectBatch=null,e._scene=null}),r.dirty||u.extendFlat(r,n),r}function L(t,e,r,n){var i=t.xa,a=t.ya,o=t.distance,s=t.dxy,l=t.index,f={pointNumber:l,x:e[l],y:r[l]};f.tx=Array.isArray(n.text)?n.text[l]:n.text,f.htx=Array.isArray(n.hovertext)?n.hovertext[l]:n.hovertext,f.data=Array.isArray(n.customdata)?n.customdata[l]:n.customdata,f.tp=Array.isArray(n.textposition)?n.textposition[l]:n.textposition;var h=n.textfont;h&&(f.ts=Array.isArray(h.size)?h.size[l]:h.size,f.tc=Array.isArray(h.color)?h.color[l]:h.color,f.tf=Array.isArray(h.family)?h.family[l]:h.family);var p=n.marker;p&&(f.ms=u.isArrayOrTypedArray(p.size)?p.size[l]:p.size,f.mo=u.isArrayOrTypedArray(p.opacity)?p.opacity[l]:p.opacity,f.mx=Array.isArray(p.symbol)?p.symbol[l]:p.symbol,f.mc=u.isArrayOrTypedArray(p.color)?p.color[l]:p.color);var d=p&&p.line;d&&(f.mlc=Array.isArray(d.color)?d.color[l]:d.color,f.mlw=u.isArrayOrTypedArray(d.width)?d.width[l]:d.width);var g=p&&p.gradient;g&&\"none\"!==g.type&&(f.mgt=Array.isArray(g.type)?g.type[l]:g.type,f.mgc=Array.isArray(g.color)?g.color[l]:g.color);var v=i.c2p(f.x,!0),m=a.c2p(f.y,!0),y=f.mrc||1,x=n.hoverlabel;x&&(f.hbg=Array.isArray(x.bgcolor)?x.bgcolor[l]:x.bgcolor,f.hbc=Array.isArray(x.bordercolor)?x.bordercolor[l]:x.bordercolor,f.hts=Array.isArray(x.font.size)?x.font.size[l]:x.font.size,f.htc=Array.isArray(x.font.color)?x.font.color[l]:x.font.color,f.htf=Array.isArray(x.font.family)?x.font.family[l]:x.font.family,f.hnl=Array.isArray(x.namelength)?x.namelength[l]:x.namelength);var b=n.hoverinfo;b&&(f.hi=Array.isArray(b)?b[l]:b);var _={};return _[t.index]=f,u.extendFlat(t,{color:w(n,f),x0:v-y,x1:v+y,xLabelVal:f.x,y0:m-y,y1:m+y,yLabelVal:f.y,cd:_,distance:o,spikeDistance:s}),f.htx?t.text=f.htx:f.tx?t.text=f.tx:n.text&&(t.text=n.text),k(f,n,t),c.getComponentMethod(\"errorbars\",\"hoverInfo\")(f,n,t),t}function z(t){var e,r,n=t[0],i=n.trace,a=n.t,o=a._scene,s=a.index,l=o.selectBatch[s],c=o.unselectBatch[s],f=o.textOptions[s],h=o.textSelectedOptions[s]||{},p=o.textUnselectedOptions[s]||{},g=u.extendFlat({},f);if(l&&c){var v=h.color,m=p.color,y=f.color,x=Array.isArray(y);for(g.color=new Array(i._length),e=0;e<l.length;e++)r=l[e],g.color[r]=v||(x?y[r]:y);for(e=0;e<c.length;e++){r=c[e];var b=x?y[r]:y;g.color[r]=m||(v?b:d.addOpacity(b,S))}}o.glText[s].update(g)}e.exports={moduleType:\"trace\",name:\"scattergl\",basePlotModule:t(\"../../plots/cartesian\"),categories:[\"gl\",\"regl\",\"cartesian\",\"symbols\",\"errorBarsOK\",\"showLegend\",\"scatter-like\"],attributes:t(\"./attributes\"),supplyDefaults:t(\"./defaults\"),crossTraceDefaults:t(\"../scatter/cross_trace_defaults\"),colorbar:t(\"../scatter/marker_colorbar\"),calc:function(t,e){var r,n,i,a=t._fullLayout,s=h.getFromId(t,e.xaxis),l=h.getFromId(t,e.yaxis),c=a._plots[e.xaxis+e.yaxis],f=e._length,p=2*f,d={},g=s.makeCalcdata(e,\"x\"),v=l.makeCalcdata(e,\"y\"),_=new Array(p);for(r=0;r<f;r++)n=g[r],i=v[r],_[2*r]=n===A?NaN:n,_[2*r+1]=i===A?NaN:i;if(\"log\"===s.type)for(r=0;r<p;r+=2)_[r]=s.c2l(_[r]);if(\"log\"===l.type)for(r=1;r<p;r+=2)_[r]=l.c2l(_[r]);if(\"log\"!==s.type&&\"log\"!==l.type)d.tree=o(_);else{var w=d.ids=new Array(f);for(r=0;r<f;r++)w[r]=r}b(e);var k,S=function(t,e,r,n,i,a){var o=M.style(t,r);if(o.marker&&(o.marker.positions=n),o.line&&n.length>1&&u.extendFlat(o.line,M.linePositions(t,r,n)),o.errorX||o.errorY){var s=M.errorBarPositions(t,r,n,i,a);o.errorX&&u.extendFlat(o.errorX,s.x),o.errorY&&u.extendFlat(o.errorY,s.y)}return o.text&&(u.extendFlat(o.text,{positions:n},M.textPosition(t,r,o.text,o.marker)),u.extendFlat(o.textSel,{positions:n},M.textPosition(t,r,o.text,o.markerSel)),u.extendFlat(o.textUnsel,{positions:n},M.textPosition(t,r,o.text,o.markerUnsel))),o}(t,0,e,_,g,v),L=C(0,c);return x(a,e),f<T?k=m(e,f):S.marker&&(k=2*(S.marker.sizeAvg||Math.max(S.marker.size,3))),y(t,e,s,l,g,v,k),S.errorX&&E(e,s,S.errorX),S.errorY&&E(e,l,S.errorY),S.fill&&!L.fill2d&&(L.fill2d=!0),S.marker&&!L.scatter2d&&(L.scatter2d=!0),S.line&&!L.line2d&&(L.line2d=!0),!S.errorX&&!S.errorY||L.error2d||(L.error2d=!0),S.text&&!L.glText&&(L.glText=!0),S.marker&&f>=T&&(S.marker.cluster=d.tree),L.lineOptions.push(S.line),L.errorXOptions.push(S.errorX),L.errorYOptions.push(S.errorY),L.fillOptions.push(S.fill),L.markerOptions.push(S.marker),L.markerSelectedOptions.push(S.markerSel),L.markerUnselectedOptions.push(S.markerUnsel),L.textOptions.push(S.text),L.textSelectedOptions.push(S.textSel),L.textUnselectedOptions.push(S.textUnsel),d._scene=L,d.index=L.count,d.x=g,d.y=v,d.positions=_,L.count++,[{x:!1,y:!1,t:d,trace:e}]},plot:function(t,e,r){if(r.length){var o,s,c=t._fullLayout,h=e._scene,p=e.xaxis,d=e.yaxis;if(h)if(f(t,[\"ANGLE_instanced_arrays\",\"OES_element_index_uint\"])){var g=c._glcanvas.data()[0].regl;if(_(t,e,r),h.dirty){if(!0===h.error2d&&(h.error2d=a(g)),!0===h.line2d&&(h.line2d=i(g)),!0===h.scatter2d&&(h.scatter2d=n(g)),!0===h.fill2d&&(h.fill2d=i(g)),!0===h.glText)for(h.glText=new Array(h.count),o=0;o<h.count;o++)h.glText[o]=new l(g);if(h.glText)for(o=0;o<h.count;o++)h.glText[o].update(h.textOptions[o]);if(h.line2d&&(h.line2d.update(h.lineOptions),h.lineOptions=h.lineOptions.map(function(t){if(t&&t.positions){for(var e=t.positions,r=0;r<e.length&&(isNaN(e[r])||isNaN(e[r+1]));)r+=2;for(var n=e.length-2;n>r&&(isNaN(e[n])||isNaN(e[n+1]));)n-=2;t.positions=e.slice(r,n+2)}return t}),h.line2d.update(h.lineOptions)),h.error2d){var v=(h.errorXOptions||[]).concat(h.errorYOptions||[]);h.error2d.update(v)}h.scatter2d&&h.scatter2d.update(h.markerOptions),h.fillOrder=u.repeat(null,h.count),h.fill2d&&(h.fillOptions=h.fillOptions.map(function(t,e){var n=r[e];if(t&&n&&n[0]&&n[0].trace){var i,a,o=n[0],s=o.trace,l=o.t,c=h.lineOptions[e],u=[];s._ownfill&&u.push(e),s._nexttrace&&u.push(e+1),u.length&&(h.fillOrder[e]=u);var f,p,d=[],g=c&&c.positions||l.positions;if(\"tozeroy\"===s.fill){for(f=0;f<g.length&&isNaN(g[f+1]);)f+=2;for(p=g.length-2;p>f&&isNaN(g[p+1]);)p-=2;0!==g[f+1]&&(d=[g[f],0]),d=d.concat(g.slice(f,p+2)),0!==g[p+1]&&(d=d.concat([g[p],0]))}else if(\"tozerox\"===s.fill){for(f=0;f<g.length&&isNaN(g[f]);)f+=2;for(p=g.length-2;p>f&&isNaN(g[p]);)p-=2;0!==g[f]&&(d=[0,g[f+1]]),d=d.concat(g.slice(f,p+2)),0!==g[p]&&(d=d.concat([0,g[p+1]]))}else if(\"toself\"===s.fill||\"tonext\"===s.fill){for(d=[],i=0,a=0;a<g.length;a+=2)(isNaN(g[a])||isNaN(g[a+1]))&&((d=d.concat(g.slice(i,a))).push(g[i],g[i+1]),i=a+2);d=d.concat(g.slice(i)),i&&d.push(g[i],g[i+1])}else{var v=s._nexttrace;if(v){var m=h.lineOptions[e+1];if(m){var y=m.positions;if(\"tonexty\"===s.fill){for(d=g.slice(),e=Math.floor(y.length/2);e--;){var x=y[2*e],b=y[2*e+1];isNaN(x)||isNaN(b)||d.push(x,b)}t.fill=v.fillcolor}}}}if(s._prevtrace&&\"tonext\"===s._prevtrace.fill){var _=h.lineOptions[e-1].positions,w=d.length/2,k=[i=w];for(a=0;a<_.length;a+=2)(isNaN(_[a])||isNaN(_[a+1]))&&(k.push(a/2+w+1),i=a+2);d=d.concat(_),t.hole=k}return t.fillmode=s.fill,t.opacity=s.opacity,t.positions=d,t}}),h.fill2d.update(h.fillOptions))}h.selectBatch=null,h.unselectBatch=null;var m=c.dragmode,y=\"lasso\"===m||\"select\"===m,x=c.clickmode.indexOf(\"select\")>-1;for(o=0;o<r.length;o++){var b=r[o][0],w=b.trace,k=b.t,M=k.index,A=w._length,T=k.x,S=k.y;if(w.selectedpoints||y||x){if(y||(y=!0),h.selectBatch||(h.selectBatch=[],h.unselectBatch=[]),w.selectedpoints){var E=h.selectBatch[M]=u.selIndices2selPoints(w),C={};for(s=0;s<E.length;s++)C[E[s]]=1;var L=[];for(s=0;s<A;s++)C[s]||L.push(s);h.unselectBatch[M]=L}var O=k.xpx=new Array(A),I=k.ypx=new Array(A);for(s=0;s<A;s++)O[s]=p.c2p(T[s]),I[s]=d.c2p(S[s])}else k.xpx=k.ypx=null}y?(h.select2d||(h.select2d=n(c._glcanvas.data()[1].regl)),h.scatter2d&&h.selectBatch&&h.selectBatch.length&&h.scatter2d.update(h.markerUnselectedOptions.map(function(t,e){return h.selectBatch[e]?t:null})),h.select2d&&(h.select2d.update(h.markerOptions),h.select2d.update(h.markerSelectedOptions)),h.glText&&r.forEach(function(t){t&&t[0]&&t[0].trace&&z(t)})):h.scatter2d&&h.scatter2d.update(h.markerOptions);var P={viewport:function(t,e,r){var n=t._size,i=t.width,a=t.height;return[n.l+e.domain[0]*n.w,n.b+r.domain[0]*n.h,i-n.r-(1-e.domain[1])*n.w,a-n.t-(1-r.domain[1])*n.h]}(c,p,d),range:[(p._rl||p.range)[0],(d._rl||d.range)[0],(p._rl||p.range)[1],(d._rl||d.range)[1]]},D=u.repeat(P,h.count);h.fill2d&&h.fill2d.update(D),h.line2d&&h.line2d.update(D),h.error2d&&h.error2d.update(D.concat(D)),h.scatter2d&&h.scatter2d.update(D),h.select2d&&h.select2d.update(D),h.glText&&h.glText.forEach(function(t){t.update(P)})}else h.init()}},hoverPoints:function(t,e,r,n){var i,a,o,s,l,c,u,f,h,p=t.cd,d=p[0].t,g=p[0].trace,v=t.xa,m=t.ya,y=d.x,x=d.y,b=v.c2p(e),_=m.c2p(r),w=t.distance;if(d.tree){var k=v.p2c(b-w),M=v.p2c(b+w),A=m.p2c(_-w),T=m.p2c(_+w);i=\"x\"===n?d.tree.range(Math.min(k,M),Math.min(m._rl[0],m._rl[1]),Math.max(k,M),Math.max(m._rl[0],m._rl[1])):d.tree.range(Math.min(k,M),Math.min(A,T),Math.max(k,M),Math.max(A,T))}else{if(!d.ids)return[t];i=d.ids}var S=w;if(\"x\"===n)for(l=0;l<i.length;l++)o=y[i[l]],(c=Math.abs(v.c2p(o)-b))<S&&(S=c,u=m.c2p(x[i[l]])-_,h=Math.sqrt(c*c+u*u),a=i[l]);else for(l=0;l<i.length;l++)o=y[i[l]],s=x[i[l]],c=v.c2p(o)-b,u=m.c2p(s)-_,(f=Math.sqrt(c*c+u*u))<S&&(S=h=f,a=i[l]);return t.index=a,t.distance=S,t.dxy=h,void 0===a?[t]:(L(t,y,x,g),[t])},selectPoints:function(t,e){var r=t.cd,n=[],i=r[0].trace,a=r[0].t,o=i._length,l=a.x,c=a.y,u=a._scene;if(!u)return n;var f=g.hasText(i),h=g.hasMarkers(i),p=!h&&!f;if(!0!==i.visible||p)return n;var d,v=null,m=null;if(!1===e||e.degenerate)m=s(o);else for(v=[],m=[],d=0;d<o;d++)e.contains([a.xpx[d],a.ypx[d]],!1,d,t)?(v.push(d),n.push({pointNumber:d,x:l[d],y:c[d]})):m.push(d);if(u.selectBatch||(u.selectBatch=[],u.unselectBatch=[]),!u.selectBatch[a.index]){for(d=0;d<u.count;d++)u.selectBatch[d]=[],u.unselectBatch[d]=[];h&&u.scatter2d.update(u.markerUnselectedOptions)}return u.selectBatch[a.index]=v,u.unselectBatch[a.index]=m,f&&z(r),n},sceneUpdate:C,calcHover:L,meta:{}}},{\"../../components/color\":570,\"../../constants/interactions\":672,\"../../constants/numerical\":673,\"../../lib\":696,\"../../lib/prepare_regl\":709,\"../../plots/cartesian\":756,\"../../plots/cartesian/autorange\":743,\"../../plots/cartesian/axis_ids\":747,\"../../registry\":827,\"../scatter/calc\":1044,\"../scatter/colorscale_calc\":1046,\"../scatter/cross_trace_defaults\":1049,\"../scatter/fill_hover_text\":1051,\"../scatter/get_trace_color\":1053,\"../scatter/link_traces\":1059,\"../scatter/marker_colorbar\":1061,\"../scatter/subtypes\":1067,\"./attributes\":1092,\"./constants\":1093,\"./convert\":1094,\"./defaults\":1095,\"array-range\":55,\"gl-text\":304,\"point-cluster\":452,\"regl-error2d\":473,\"regl-line2d\":474,\"regl-scatter2d\":475}],1097:[function(t,e,r){\"use strict\";var n=t(\"../scattergeo/attributes\"),i=t(\"../scatter/attributes\"),a=t(\"../../plots/mapbox/layout_attributes\"),o=t(\"../../plots/attributes\"),s=t(\"../../components/colorbar/attributes\"),l=t(\"../../lib/extend\").extendFlat,c=t(\"../../plot_api/edit_types\").overrideAll,u=n.line,f=n.marker;e.exports=c({lon:n.lon,lat:n.lat,mode:l({},i.mode,{dflt:\"markers\"}),text:l({},i.text,{}),hovertext:l({},i.hovertext,{}),line:{color:u.color,width:u.width},connectgaps:i.connectgaps,marker:{symbol:{valType:\"string\",dflt:\"circle\",arrayOk:!0},opacity:f.opacity,size:f.size,sizeref:f.sizeref,sizemin:f.sizemin,sizemode:f.sizemode,color:f.color,colorscale:f.colorscale,cauto:f.cauto,cmax:f.cmax,cmin:f.cmin,autocolorscale:f.autocolorscale,reversescale:f.reversescale,showscale:f.showscale,colorbar:s},fill:n.fill,fillcolor:i.fillcolor,textfont:a.layers.symbol.textfont,textposition:a.layers.symbol.textposition,selected:{marker:i.selected.marker},unselected:{marker:i.unselected.marker},hoverinfo:l({},o.hoverinfo,{flags:[\"lon\",\"lat\",\"text\",\"name\"]})},\"calc\",\"nested\")},{\"../../components/colorbar/attributes\":571,\"../../lib/extend\":685,\"../../plot_api/edit_types\":727,\"../../plots/attributes\":741,\"../../plots/mapbox/layout_attributes\":804,\"../scatter/attributes\":1043,\"../scattergeo/attributes\":1083}],1098:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../../lib\"),a=t(\"../../constants/numerical\").BADNUM,o=t(\"../../lib/geojson_utils\"),s=t(\"../../components/colorscale\"),l=t(\"../../components/drawing\"),c=t(\"../scatter/make_bubble_size_func\"),u=t(\"../scatter/subtypes\"),f=t(\"../../plots/mapbox/convert_text_opts\");function h(){return{geojson:o.makeBlank(),layout:{visibility:\"none\"},paint:{}}}function p(t){return i.isArrayOrTypedArray(t)?function(t){return t}:t?function(){return t}:d}function d(){return\"\"}function g(t){return t[0]===a}e.exports=function(t){var e,r=t[0].trace,a=!0===r.visible,v=\"none\"!==r.fill,m=u.hasLines(r),y=u.hasMarkers(r),x=u.hasText(r),b=y&&\"circle\"===r.marker.symbol,_=y&&\"circle\"!==r.marker.symbol,w=h(),k=h(),M=h(),A=h(),T={fill:w,line:k,circle:M,symbol:A};if(!a)return T;if((v||m)&&(e=o.calcTraceToLineCoords(t)),v&&(w.geojson=o.makePolygon(e),w.layout.visibility=\"visible\",i.extendFlat(w.paint,{\"fill-color\":r.fillcolor})),m&&(k.geojson=o.makeLine(e),k.layout.visibility=\"visible\",i.extendFlat(k.paint,{\"line-width\":r.line.width,\"line-color\":r.line.color,\"line-opacity\":r.opacity})),b){var S=function(t){var e,r,a,o,u=t[0].trace,f=u.marker,h=u.selectedpoints,p=i.isArrayOrTypedArray(f.color),d=i.isArrayOrTypedArray(f.size),v=i.isArrayOrTypedArray(f.opacity);function m(t){return u.opacity*t}p&&(r=s.hasColorscale(u,\"marker\")?s.makeColorScaleFunc(s.extractScale(f.colorscale,f.cmin,f.cmax)):i.identity);d&&(a=c(u));v&&(o=function(t){var e=n(t)?+i.constrain(t,0,1):0;return m(e)});var y,x=[];for(e=0;e<t.length;e++){var b=t[e],_=b.lonlat;if(!g(_)){var w={};r&&(w.mcc=b.mcc=r(b.mc)),a&&(w.mrc=b.mrc=a(b.ms)),o&&(w.mo=o(b.mo)),h&&(w.selected=b.selected||0),x.push({type:\"Feature\",geometry:{type:\"Point\",coordinates:_},properties:w})}}if(h)for(y=l.makeSelectedPointStyleFns(u),e=0;e<x.length;e++){var k=x[e].properties;y.selectedOpacityFn&&(k.mo=m(y.selectedOpacityFn(k))),y.selectedColorFn&&(k.mcc=y.selectedColorFn(k)),y.selectedSizeFn&&(k.mrc=y.selectedSizeFn(k))}return{geojson:{type:\"FeatureCollection\",features:x},mcc:p||y&&y.selectedColorFn?{type:\"identity\",property:\"mcc\"}:f.color,mrc:d||y&&y.selectedSizeFn?{type:\"identity\",property:\"mrc\"}:(M=f.size,M/2),mo:v||y&&y.selectedOpacityFn?{type:\"identity\",property:\"mo\"}:m(f.opacity)};var M}(t);M.geojson=S.geojson,M.layout.visibility=\"visible\",i.extendFlat(M.paint,{\"circle-color\":S.mcc,\"circle-radius\":S.mrc,\"circle-opacity\":S.mo})}if((_||x)&&(A.geojson=function(t){for(var e=t[0].trace,r=(e.marker||{}).symbol,n=e.text,i=\"circle\"!==r?p(r):d,a=u.hasText(e)?p(n):d,o=[],s=0;s<t.length;s++){var l=t[s];g(l.lonlat)||o.push({type:\"Feature\",geometry:{type:\"Point\",coordinates:l.lonlat},properties:{symbol:i(l.mx),text:a(l.tx)}})}return{type:\"FeatureCollection\",features:o}}(t),i.extendFlat(A.layout,{visibility:\"visible\",\"icon-image\":\"{symbol}-15\",\"text-field\":\"{text}\"}),_&&(i.extendFlat(A.layout,{\"icon-size\":r.marker.size/10}),i.extendFlat(A.paint,{\"icon-opacity\":r.opacity*r.marker.opacity,\"icon-color\":r.marker.color})),x)){var E=(r.marker||{}).size,C=f(r.textposition,E);i.extendFlat(A.layout,{\"text-size\":r.textfont.size,\"text-anchor\":C.anchor,\"text-offset\":C.offset}),i.extendFlat(A.paint,{\"text-color\":r.textfont.color,\"text-opacity\":r.opacity})}return T}},{\"../../components/colorscale\":585,\"../../components/drawing\":595,\"../../constants/numerical\":673,\"../../lib\":696,\"../../lib/geojson_utils\":689,\"../../plots/mapbox/convert_text_opts\":801,\"../scatter/make_bubble_size_func\":1060,\"../scatter/subtypes\":1067,\"fast-isnumeric\":214}],1099:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../scatter/subtypes\"),a=t(\"../scatter/marker_defaults\"),o=t(\"../scatter/line_defaults\"),s=t(\"../scatter/text_defaults\"),l=t(\"../scatter/fillcolor_defaults\"),c=t(\"./attributes\");e.exports=function(t,e,r,u){function f(r,i){return n.coerce(t,e,c,r,i)}if(function(t,e,r){var n=r(\"lon\")||[],i=r(\"lat\")||[],a=Math.min(n.length,i.length);return e._length=a,a}(0,e,f)){if(f(\"text\"),f(\"hovertext\"),f(\"mode\"),i.hasLines(e)&&(o(t,e,r,u,f,{noDash:!0}),f(\"connectgaps\")),i.hasMarkers(e)){a(t,e,r,u,f,{noLine:!0});var h=e.marker;\"circle\"!==h.symbol&&(n.isArrayOrTypedArray(h.size)&&(h.size=h.size[0]),n.isArrayOrTypedArray(h.color)&&(h.color=h.color[0]))}i.hasText(e)&&s(t,e,u,f,{noSelect:!0}),f(\"fill\"),\"none\"!==e.fill&&l(t,e,r,f),n.coerceSelectionMarkerOpacity(e,f)}else e.visible=!1}},{\"../../lib\":696,\"../scatter/fillcolor_defaults\":1052,\"../scatter/line_defaults\":1056,\"../scatter/marker_defaults\":1062,\"../scatter/subtypes\":1067,\"../scatter/text_defaults\":1068,\"./attributes\":1097}],1100:[function(t,e,r){\"use strict\";e.exports=function(t,e){return t.lon=e.lon,t.lat=e.lat,t}},{}],1101:[function(t,e,r){\"use strict\";var n=t(\"../../components/fx\"),i=t(\"../../lib\"),a=t(\"../scatter/get_trace_color\"),o=t(\"../scatter/fill_hover_text\"),s=t(\"../../constants/numerical\").BADNUM;e.exports=function(t,e,r){var l=t.cd,c=l[0].trace,u=t.xa,f=t.ya,h=t.subplot,p=360*(e>=0?Math.floor((e+180)/360):Math.ceil((e-180)/360)),d=e-p;if(n.getClosest(l,function(t){var e=t.lonlat;if(e[0]===s)return 1/0;var n=i.modHalf(e[0],360),a=e[1],o=h.project([n,a]),l=o.x-u.c2p([d,a]),c=o.y-f.c2p([n,r]),p=Math.max(3,t.mrc||0);return Math.max(Math.sqrt(l*l+c*c)-p,1-3/p)},t),!1!==t.index){var g=l[t.index],v=g.lonlat,m=[i.modHalf(v[0],360)+p,v[1]],y=u.c2p(m),x=f.c2p(m),b=g.mrc||1;return t.x0=y-b,t.x1=y+b,t.y0=x-b,t.y1=x+b,t.color=a(c,g),t.extraText=function(t,e,r){var n=(e.hi||t.hoverinfo).split(\"+\"),i=-1!==n.indexOf(\"all\"),a=-1!==n.indexOf(\"lon\"),s=-1!==n.indexOf(\"lat\"),l=e.lonlat,c=[];function u(t){return t+\"\\xb0\"}i||a&&s?c.push(\"(\"+u(l[0])+\", \"+u(l[1])+\")\"):a?c.push(r.lon+u(l[0])):s&&c.push(r.lat+u(l[1]));(i||-1!==n.indexOf(\"text\"))&&o(e,t,c);return c.join(\"<br>\")}(c,g,l[0].t.labels),[t]}}},{\"../../components/fx\":612,\"../../constants/numerical\":673,\"../../lib\":696,\"../scatter/fill_hover_text\":1051,\"../scatter/get_trace_color\":1053}],1102:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.supplyDefaults=t(\"./defaults\"),n.colorbar=t(\"../scatter/marker_colorbar\"),n.calc=t(\"../scattergeo/calc\"),n.plot=t(\"./plot\"),n.hoverPoints=t(\"./hover\"),n.eventData=t(\"./event_data\"),n.selectPoints=t(\"./select\"),n.style=function(t,e){e&&e[0].trace._glTrace.update(e)},n.moduleType=\"trace\",n.name=\"scattermapbox\",n.basePlotModule=t(\"../../plots/mapbox\"),n.categories=[\"mapbox\",\"gl\",\"symbols\",\"showLegend\",\"scatterlike\"],n.meta={},e.exports=n},{\"../../plots/mapbox\":802,\"../scatter/marker_colorbar\":1061,\"../scattergeo/calc\":1084,\"./attributes\":1097,\"./defaults\":1099,\"./event_data\":1100,\"./hover\":1101,\"./plot\":1103,\"./select\":1104}],1103:[function(t,e,r){\"use strict\";var n=t(\"./convert\");function i(t,e){this.subplot=t,this.uid=e,this.sourceIds={fill:e+\"-source-fill\",line:e+\"-source-line\",circle:e+\"-source-circle\",symbol:e+\"-source-symbol\"},this.layerIds={fill:e+\"-layer-fill\",line:e+\"-layer-line\",circle:e+\"-layer-circle\",symbol:e+\"-layer-symbol\"},this.order=[\"fill\",\"line\",\"circle\",\"symbol\"]}var a=i.prototype;a.addSource=function(t,e){this.subplot.map.addSource(this.sourceIds[t],{type:\"geojson\",data:e.geojson})},a.setSourceData=function(t,e){this.subplot.map.getSource(this.sourceIds[t]).setData(e.geojson)},a.addLayer=function(t,e){this.subplot.map.addLayer({type:t,id:this.layerIds[t],source:this.sourceIds[t],layout:e.layout,paint:e.paint})},a.update=function(t){for(var e=this.subplot,r=n(t),i=0;i<this.order.length;i++){var a=this.order[i],o=r[a];e.setOptions(this.layerIds[a],\"setLayoutProperty\",o.layout),\"visible\"===o.layout.visibility&&(this.setSourceData(a,o),e.setOptions(this.layerIds[a],\"setPaintProperty\",o.paint))}t[0].trace._glTrace=this},a.dispose=function(){for(var t=this.subplot.map,e=0;e<this.order.length;e++){var r=this.order[e];t.removeLayer(this.layerIds[r]),t.removeSource(this.sourceIds[r])}},e.exports=function(t,e){for(var r=new i(t,e[0].trace.uid),a=n(e),o=0;o<r.order.length;o++){var s=r.order[o],l=a[s];r.addSource(s,l),r.addLayer(s,l)}return e[0].trace._glTrace=r,r}},{\"./convert\":1098}],1104:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../scatter/subtypes\"),a=t(\"../../constants/numerical\").BADNUM;e.exports=function(t,e){var r,o=t.cd,s=t.xaxis,l=t.yaxis,c=[],u=o[0].trace;if(!i.hasMarkers(u))return[];if(!1===e)for(r=0;r<o.length;r++)o[r].selected=0;else for(r=0;r<o.length;r++){var f=o[r],h=f.lonlat;if(h[0]!==a){var p=[n.modHalf(h[0],360),h[1]],d=[s.c2p(p),l.c2p(p)];e.contains(d,null,r,t)?(c.push({pointNumber:r,lon:h[0],lat:h[1]}),f.selected=1):f.selected=0}}return c}},{\"../../constants/numerical\":673,\"../../lib\":696,\"../scatter/subtypes\":1067}],1105:[function(t,e,r){\"use strict\";var n=t(\"../../lib/extend\").extendFlat,i=t(\"../scatter/attributes\"),a=t(\"../../plots/attributes\"),o=i.line;e.exports={mode:i.mode,r:{valType:\"data_array\",editType:\"calc+clearAxisTypes\"},theta:{valType:\"data_array\",editType:\"calc+clearAxisTypes\"},r0:{valType:\"any\",dflt:0,editType:\"calc+clearAxisTypes\"},dr:{valType:\"number\",dflt:1,editType:\"calc\"},theta0:{valType:\"any\",dflt:0,editType:\"calc+clearAxisTypes\"},dtheta:{valType:\"number\",editType:\"calc\"},thetaunit:{valType:\"enumerated\",values:[\"radians\",\"degrees\",\"gradians\"],dflt:\"degrees\",editType:\"calc+clearAxisTypes\"},text:i.text,hovertext:i.hovertext,line:{color:o.color,width:o.width,dash:o.dash,shape:n({},o.shape,{values:[\"linear\",\"spline\"]}),smoothing:o.smoothing,editType:\"calc\"},connectgaps:i.connectgaps,marker:i.marker,cliponaxis:n({},i.cliponaxis,{dflt:!1}),textposition:i.textposition,textfont:i.textfont,fill:n({},i.fill,{values:[\"none\",\"toself\",\"tonext\"],dflt:\"none\"}),fillcolor:i.fillcolor,hoverinfo:n({},a.hoverinfo,{flags:[\"r\",\"theta\",\"text\",\"name\"]}),hoveron:i.hoveron,selected:i.selected,unselected:i.unselected}},{\"../../lib/extend\":685,\"../../plots/attributes\":741,\"../scatter/attributes\":1043}],1106:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../../constants/numerical\").BADNUM,a=t(\"../../plots/cartesian/axes\"),o=t(\"../scatter/colorscale_calc\"),s=t(\"../scatter/arrays_to_calcdata\"),l=t(\"../scatter/calc_selection\"),c=t(\"../scatter/calc\").calcMarkerSize;e.exports=function(t,e){for(var r=t._fullLayout,u=e.subplot,f=r[u].radialaxis,h=r[u].angularaxis,p=f.makeCalcdata(e,\"r\"),d=h.makeCalcdata(e,\"theta\"),g=e._length,v=new Array(g),m=0;m<g;m++){var y=p[m],x=d[m],b=v[m]={};n(y)&&n(x)?(b.r=y,b.theta=x):b.r=i}var _=c(e,g);return e._extremes.x=a.findExtremes(f,p,{ppad:_}),o(e),s(v,e),l(v,e),v}},{\"../../constants/numerical\":673,\"../../plots/cartesian/axes\":744,\"../scatter/arrays_to_calcdata\":1042,\"../scatter/calc\":1044,\"../scatter/calc_selection\":1045,\"../scatter/colorscale_calc\":1046,\"fast-isnumeric\":214}],1107:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../scatter/subtypes\"),a=t(\"../scatter/marker_defaults\"),o=t(\"../scatter/line_defaults\"),s=t(\"../scatter/line_shape_defaults\"),l=t(\"../scatter/text_defaults\"),c=t(\"../scatter/fillcolor_defaults\"),u=t(\"../scatter/constants\").PTS_LINESONLY,f=t(\"./attributes\");function h(t,e,r,n){var i,a=n(\"r\"),o=n(\"theta\");if(a)o?i=Math.min(a.length,o.length):(i=a.length,n(\"theta0\"),n(\"dtheta\"));else{if(!o)return 0;i=e.theta.length,n(\"r0\"),n(\"dr\")}return e._length=i,i}e.exports={handleRThetaDefaults:h,supplyDefaults:function(t,e,r,p){function d(r,i){return n.coerce(t,e,f,r,i)}var g=h(0,e,0,d);if(g){d(\"thetaunit\"),d(\"mode\",g<u?\"lines+markers\":\"lines\"),d(\"text\"),d(\"hovertext\"),i.hasLines(e)&&(o(t,e,r,p,d),s(t,e,d),d(\"connectgaps\")),i.hasMarkers(e)&&a(t,e,r,p,d,{gradient:!0}),i.hasText(e)&&l(t,e,p,d);var v=[];(i.hasMarkers(e)||i.hasText(e))&&(d(\"cliponaxis\"),d(\"marker.maxdisplayed\"),v.push(\"points\")),d(\"fill\"),\"none\"!==e.fill&&(c(t,e,r,d),i.hasLines(e)||s(t,e,d)),\"tonext\"!==e.fill&&\"toself\"!==e.fill||v.push(\"fills\"),d(\"hoveron\",v.join(\"+\")||\"points\"),n.coerceSelectionMarkerOpacity(e,d)}else e.visible=!1}}},{\"../../lib\":696,\"../scatter/constants\":1047,\"../scatter/fillcolor_defaults\":1052,\"../scatter/line_defaults\":1056,\"../scatter/line_shape_defaults\":1058,\"../scatter/marker_defaults\":1062,\"../scatter/subtypes\":1067,\"../scatter/text_defaults\":1068,\"./attributes\":1105}],1108:[function(t,e,r){\"use strict\";var n=t(\"../scatter/hover\"),i=t(\"../../plots/cartesian/axes\"),a=t(\"../../lib\");function o(t,e,r,n){var o=r.radialAxis,s=r.angularAxis,l=(t.hi||e.hoverinfo).split(\"+\"),c=[];function u(t,e){c.push(t._hovertitle+\": \"+i.tickText(t,e,\"hover\").text)}if(o._hovertitle=\"r\",s._hovertitle=\"\\u03b8\",-1!==l.indexOf(\"all\")&&(l=[\"r\",\"theta\",\"text\"]),-1!==l.indexOf(\"r\")&&u(o,o.c2l(t.r)),-1!==l.indexOf(\"theta\")){var f=t.theta;u(s,\"degrees\"===s.thetaunit?a.rad2deg(f):f)}-1!==l.indexOf(\"text\")&&n.text&&(c.push(n.text),delete n.text),n.extraText=c.join(\"<br>\")}e.exports={hoverPoints:function(t,e,r,i){var a=n(t,e,r,i);if(a&&!1!==a[0].index){var s=a[0];if(void 0===s.index)return a;var l=t.subplot,c=s.cd[s.index],u=s.trace;if(l.isPtInside(c))return s.xLabelVal=void 0,s.yLabelVal=void 0,o(c,u,l,s),a}},makeHoverPointText:o}},{\"../../lib\":696,\"../../plots/cartesian/axes\":744,\"../scatter/hover\":1054}],1109:[function(t,e,r){\"use strict\";e.exports={moduleType:\"trace\",name:\"scatterpolar\",basePlotModule:t(\"../../plots/polar\"),categories:[\"polar\",\"symbols\",\"showLegend\",\"scatter-like\"],attributes:t(\"./attributes\"),supplyDefaults:t(\"./defaults\").supplyDefaults,colorbar:t(\"../scatter/marker_colorbar\"),calc:t(\"./calc\"),plot:t(\"./plot\"),style:t(\"../scatter/style\").style,hoverPoints:t(\"./hover\").hoverPoints,selectPoints:t(\"../scatter/select\"),meta:{}}},{\"../../plots/polar\":811,\"../scatter/marker_colorbar\":1061,\"../scatter/select\":1064,\"../scatter/style\":1066,\"./attributes\":1105,\"./calc\":1106,\"./defaults\":1107,\"./hover\":1108,\"./plot\":1110}],1110:[function(t,e,r){\"use strict\";var n=t(\"../scatter/plot\"),i=t(\"../../constants/numerical\").BADNUM;e.exports=function(t,e,r){for(var a=e.layers.frontplot.select(\"g.scatterlayer\"),o={xaxis:e.xaxis,yaxis:e.yaxis,plot:e.framework,layerClipId:e._hasClipOnAxisFalse?e.clipIds.forTraces:null},s=e.radialAxis,l=e.angularAxis,c=0;c<r.length;c++)for(var u=r[c],f=0;f<u.length;f++){var h=u[f],p=h.r;if(p===i)h.x=h.y=i;else{var d=s.c2g(p),g=l.c2g(h.theta);h.x=d*Math.cos(g),h.y=d*Math.sin(g)}}n(t,o,r,a)}},{\"../../constants/numerical\":673,\"../scatter/plot\":1063}],1111:[function(t,e,r){\"use strict\";var n=t(\"../scatterpolar/attributes\"),i=t(\"../scattergl/attributes\");e.exports={mode:n.mode,r:n.r,theta:n.theta,r0:n.r0,dr:n.dr,theta0:n.theta0,dtheta:n.dtheta,thetaunit:n.thetaunit,text:n.text,hovertext:n.hovertext,line:i.line,connectgaps:i.connectgaps,marker:i.marker,fill:i.fill,fillcolor:i.fillcolor,textposition:i.textposition,textfont:i.textfont,hoverinfo:n.hoverinfo,selected:n.selected,unselected:n.unselected}},{\"../scattergl/attributes\":1092,\"../scatterpolar/attributes\":1105}],1112:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../scatter/subtypes\"),a=t(\"../scatterpolar/defaults\").handleRThetaDefaults,o=t(\"../scatter/marker_defaults\"),s=t(\"../scatter/line_defaults\"),l=t(\"../scatter/text_defaults\"),c=t(\"../scatter/fillcolor_defaults\"),u=t(\"../scatter/constants\").PTS_LINESONLY,f=t(\"./attributes\");e.exports=function(t,e,r,h){function p(r,i){return n.coerce(t,e,f,r,i)}var d=a(t,e,h,p);d?(p(\"thetaunit\"),p(\"mode\",d<u?\"lines+markers\":\"lines\"),p(\"text\"),p(\"hovertext\"),i.hasLines(e)&&(s(t,e,r,h,p),p(\"connectgaps\")),i.hasMarkers(e)&&o(t,e,r,h,p),i.hasText(e)&&l(t,e,h,p),p(\"fill\"),\"none\"!==e.fill&&c(t,e,r,p),n.coerceSelectionMarkerOpacity(e,p)):e.visible=!1}},{\"../../lib\":696,\"../scatter/constants\":1047,\"../scatter/fillcolor_defaults\":1052,\"../scatter/line_defaults\":1056,\"../scatter/marker_defaults\":1062,\"../scatter/subtypes\":1067,\"../scatter/text_defaults\":1068,\"../scatterpolar/defaults\":1107,\"./attributes\":1111}],1113:[function(t,e,r){\"use strict\";var n=t(\"point-cluster\"),i=t(\"fast-isnumeric\"),a=t(\"../scattergl\"),o=t(\"../scatter/colorscale_calc\"),s=t(\"../scatter/calc\").calcMarkerSize,l=t(\"../scattergl/convert\"),c=t(\"../../lib\"),u=t(\"../../plots/cartesian/axes\"),f=t(\"../scatterpolar/hover\").makeHoverPointText,h=t(\"../scattergl/constants\").TOO_MANY_POINTS;e.exports={moduleType:\"trace\",name:\"scatterpolargl\",basePlotModule:t(\"../../plots/polar\"),categories:[\"gl\",\"regl\",\"polar\",\"symbols\",\"showLegend\",\"scatter-like\"],attributes:t(\"./attributes\"),supplyDefaults:t(\"./defaults\"),colorbar:t(\"../scatter/marker_colorbar\"),calc:function(t,e){var r=t._fullLayout,n=e.subplot,i=r[n].radialaxis,a=r[n].angularaxis,c=i.makeCalcdata(e,\"r\"),f=a.makeCalcdata(e,\"theta\"),p=e._length,d={};p<c.length&&(c=c.slice(0,p)),p<f.length&&(f=f.slice(0,p)),d.r=c,d.theta=f,o(e);var g,v=d.opts=l.style(t,e);return p<h?g=s(e,p):v.marker&&(g=2*(v.marker.sizeAvg||Math.max(v.marker.size,3))),e._extremes.x=u.findExtremes(i,c,{ppad:g}),[{x:!1,y:!1,t:d,trace:e}]},plot:function(t,e,r){if(r.length){var o=e.radialAxis,s=e.angularAxis,u=a.sceneUpdate(t,e);return r.forEach(function(r){if(r&&r[0]&&r[0].trace){var a,f=r[0],p=f.trace,d=f.t,g=p._length,v=d.r,m=d.theta,y=d.opts,x=v.slice(),b=m.slice();for(a=0;a<v.length;a++)e.isPtInside({r:v[a],theta:m[a]})||(x[a]=NaN,b[a]=NaN);var _=new Array(2*g),w=Array(g),k=Array(g);for(a=0;a<g;a++){var M,A,T=x[a];if(i(T)){var S=o.c2g(T),E=s.c2g(b[a],p.thetaunit);M=S*Math.cos(E),A=S*Math.sin(E)}else M=A=NaN;w[a]=_[2*a]=M,k[a]=_[2*a+1]=A}d.tree=n(_),y.marker&&g>=h&&(y.marker.cluster=d.tree),y.marker&&(y.markerSel.positions=y.markerUnsel.positions=y.marker.positions=_),y.line&&_.length>1&&c.extendFlat(y.line,l.linePositions(t,p,_)),y.text&&(c.extendFlat(y.text,{positions:_},l.textPosition(t,p,y.text,y.marker)),c.extendFlat(y.textSel,{positions:_},l.textPosition(t,p,y.text,y.markerSel)),c.extendFlat(y.textUnsel,{positions:_},l.textPosition(t,p,y.text,y.markerUnsel))),y.fill&&!u.fill2d&&(u.fill2d=!0),y.marker&&!u.scatter2d&&(u.scatter2d=!0),y.line&&!u.line2d&&(u.line2d=!0),y.text&&!u.glText&&(u.glText=!0),u.lineOptions.push(y.line),u.fillOptions.push(y.fill),u.markerOptions.push(y.marker),u.markerSelectedOptions.push(y.markerSel),u.markerUnselectedOptions.push(y.markerUnsel),u.textOptions.push(y.text),u.textSelectedOptions.push(y.textSel),u.textUnselectedOptions.push(y.textUnsel),d.x=w,d.y=k,d.rawx=w,d.rawy=k,d.r=v,d.theta=m,d.positions=_,d._scene=u,d.index=u.count,u.count++}}),a.plot(t,e,r)}},hoverPoints:function(t,e,r,n){var i=t.cd[0].t,o=i.r,s=i.theta,l=a.hoverPoints(t,e,r,n);if(l&&!1!==l[0].index){var c=l[0];if(void 0===c.index)return l;var u=t.subplot,h=c.cd[c.index],p=c.trace;if(h.r=o[c.index],h.theta=s[c.index],u.isPtInside(h))return c.xLabelVal=void 0,c.yLabelVal=void 0,f(h,p,u,c),l}},selectPoints:a.selectPoints,meta:{}}},{\"../../lib\":696,\"../../plots/cartesian/axes\":744,\"../../plots/polar\":811,\"../scatter/calc\":1044,\"../scatter/colorscale_calc\":1046,\"../scatter/marker_colorbar\":1061,\"../scattergl\":1096,\"../scattergl/constants\":1093,\"../scattergl/convert\":1094,\"../scatterpolar/hover\":1108,\"./attributes\":1111,\"./defaults\":1112,\"fast-isnumeric\":214,\"point-cluster\":452}],1114:[function(t,e,r){\"use strict\";var n=t(\"../scatter/attributes\"),i=t(\"../../plots/attributes\"),a=t(\"../../components/colorscale/attributes\"),o=t(\"../../components/colorbar/attributes\"),s=t(\"../../components/drawing/attributes\").dash,l=t(\"../../lib/extend\").extendFlat,c=n.marker,u=n.line,f=c.line;e.exports={a:{valType:\"data_array\",editType:\"calc\"},b:{valType:\"data_array\",editType:\"calc\"},c:{valType:\"data_array\",editType:\"calc\"},sum:{valType:\"number\",dflt:0,min:0,editType:\"calc\"},mode:l({},n.mode,{dflt:\"markers\"}),text:l({},n.text,{}),hovertext:l({},n.hovertext,{}),line:{color:u.color,width:u.width,dash:s,shape:l({},u.shape,{values:[\"linear\",\"spline\"]}),smoothing:u.smoothing,editType:\"calc\"},connectgaps:n.connectgaps,cliponaxis:n.cliponaxis,fill:l({},n.fill,{values:[\"none\",\"toself\",\"tonext\"],dflt:\"none\"}),fillcolor:n.fillcolor,marker:l({symbol:c.symbol,opacity:c.opacity,maxdisplayed:c.maxdisplayed,size:c.size,sizeref:c.sizeref,sizemin:c.sizemin,sizemode:c.sizemode,line:l({width:f.width,editType:\"calc\"},a(\"marker.line\")),gradient:c.gradient,editType:\"calc\"},a(\"marker\"),{colorbar:o}),textfont:n.textfont,textposition:n.textposition,selected:n.selected,unselected:n.unselected,hoverinfo:l({},i.hoverinfo,{flags:[\"a\",\"b\",\"c\",\"text\",\"name\"]}),hoveron:n.hoveron}},{\"../../components/colorbar/attributes\":571,\"../../components/colorscale/attributes\":577,\"../../components/drawing/attributes\":594,\"../../lib/extend\":685,\"../../plots/attributes\":741,\"../scatter/attributes\":1043}],1115:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../scatter/colorscale_calc\"),a=t(\"../scatter/arrays_to_calcdata\"),o=t(\"../scatter/calc_selection\"),s=t(\"../scatter/calc\").calcMarkerSize,l=[\"a\",\"b\",\"c\"],c={a:[\"b\",\"c\"],b:[\"a\",\"c\"],c:[\"a\",\"b\"]};e.exports=function(t,e){var r,u,f,h,p,d,g=t._fullLayout[e.subplot].sum,v=e.sum||g,m={a:e.a,b:e.b,c:e.c};for(r=0;r<l.length;r++)if(!m[f=l[r]]){for(p=m[c[f][0]],d=m[c[f][1]],h=new Array(p.length),u=0;u<p.length;u++)h[u]=v-p[u]-d[u];m[f]=h}var y,x,b,_,w,k,M=e._length,A=new Array(M);for(r=0;r<M;r++)y=m.a[r],x=m.b[r],b=m.c[r],n(y)&&n(x)&&n(b)?(1!==(_=g/((y=+y)+(x=+x)+(b=+b)))&&(y*=_,x*=_,b*=_),k=y,w=b-x,A[r]={x:w,y:k,a:y,b:x,c:b}):A[r]={x:!1,y:!1};return s(e,M),i(e),a(A,e),o(A,e),A}},{\"../scatter/arrays_to_calcdata\":1042,\"../scatter/calc\":1044,\"../scatter/calc_selection\":1045,\"../scatter/colorscale_calc\":1046,\"fast-isnumeric\":214}],1116:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../scatter/constants\"),a=t(\"../scatter/subtypes\"),o=t(\"../scatter/marker_defaults\"),s=t(\"../scatter/line_defaults\"),l=t(\"../scatter/line_shape_defaults\"),c=t(\"../scatter/text_defaults\"),u=t(\"../scatter/fillcolor_defaults\"),f=t(\"./attributes\");e.exports=function(t,e,r,h){function p(r,i){return n.coerce(t,e,f,r,i)}var d,g=p(\"a\"),v=p(\"b\"),m=p(\"c\");if(g?(d=g.length,v?(d=Math.min(d,v.length),m&&(d=Math.min(d,m.length))):d=m?Math.min(d,m.length):0):v&&m&&(d=Math.min(v.length,m.length)),d){e._length=d,p(\"sum\"),p(\"text\"),p(\"hovertext\"),p(\"mode\",d<i.PTS_LINESONLY?\"lines+markers\":\"lines\"),a.hasLines(e)&&(s(t,e,r,h,p),l(t,e,p),p(\"connectgaps\")),a.hasMarkers(e)&&o(t,e,r,h,p,{gradient:!0}),a.hasText(e)&&c(t,e,h,p);var y=[];(a.hasMarkers(e)||a.hasText(e))&&(p(\"cliponaxis\"),p(\"marker.maxdisplayed\"),y.push(\"points\")),p(\"fill\"),\"none\"!==e.fill&&(u(t,e,r,p),a.hasLines(e)||l(t,e,p)),\"tonext\"!==e.fill&&\"toself\"!==e.fill||y.push(\"fills\"),p(\"hoveron\",y.join(\"+\")||\"points\"),n.coerceSelectionMarkerOpacity(e,p)}else e.visible=!1}},{\"../../lib\":696,\"../scatter/constants\":1047,\"../scatter/fillcolor_defaults\":1052,\"../scatter/line_defaults\":1056,\"../scatter/line_shape_defaults\":1058,\"../scatter/marker_defaults\":1062,\"../scatter/subtypes\":1067,\"../scatter/text_defaults\":1068,\"./attributes\":1114}],1117:[function(t,e,r){\"use strict\";e.exports=function(t,e,r,n,i){if(e.xa&&(t.xaxis=e.xa),e.ya&&(t.yaxis=e.ya),n[i]){var a=n[i];t.a=a.a,t.b=a.b,t.c=a.c}else t.a=e.a,t.b=e.b,t.c=e.c;return t}},{}],1118:[function(t,e,r){\"use strict\";var n=t(\"../scatter/hover\"),i=t(\"../../plots/cartesian/axes\");e.exports=function(t,e,r,a){var o=n(t,e,r,a);if(o&&!1!==o[0].index){var s=o[0];if(void 0===s.index){var l=1-s.y0/t.ya._length,c=t.xa._length,u=c*l/2,f=c-u;return s.x0=Math.max(Math.min(s.x0,f),u),s.x1=Math.max(Math.min(s.x1,f),u),o}var h=s.cd[s.index];s.a=h.a,s.b=h.b,s.c=h.c,s.xLabelVal=void 0,s.yLabelVal=void 0;var p=s.trace,d=s.subplot,g=(h.hi||p.hoverinfo).split(\"+\"),v=[];return-1!==g.indexOf(\"all\")&&(g=[\"a\",\"b\",\"c\"]),-1!==g.indexOf(\"a\")&&m(d.aaxis,h.a),-1!==g.indexOf(\"b\")&&m(d.baxis,h.b),-1!==g.indexOf(\"c\")&&m(d.caxis,h.c),s.extraText=v.join(\"<br>\"),o}function m(t,e){v.push(t._hovertitle+\": \"+i.tickText(t,e,\"hover\").text)}}},{\"../../plots/cartesian/axes\":744,\"../scatter/hover\":1054}],1119:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.supplyDefaults=t(\"./defaults\"),n.colorbar=t(\"../scatter/marker_colorbar\"),n.calc=t(\"./calc\"),n.plot=t(\"./plot\"),n.style=t(\"../scatter/style\").style,n.styleOnSelect=t(\"../scatter/style\").styleOnSelect,n.hoverPoints=t(\"./hover\"),n.selectPoints=t(\"../scatter/select\"),n.eventData=t(\"./event_data\"),n.moduleType=\"trace\",n.name=\"scatterternary\",n.basePlotModule=t(\"../../plots/ternary\"),n.categories=[\"ternary\",\"symbols\",\"showLegend\",\"scatter-like\"],n.meta={},e.exports=n},{\"../../plots/ternary\":823,\"../scatter/marker_colorbar\":1061,\"../scatter/select\":1064,\"../scatter/style\":1066,\"./attributes\":1114,\"./calc\":1115,\"./defaults\":1116,\"./event_data\":1117,\"./hover\":1118,\"./plot\":1120}],1120:[function(t,e,r){\"use strict\";var n=t(\"../scatter/plot\");e.exports=function(t,e,r){var i=e.plotContainer;i.select(\".scatterlayer\").selectAll(\"*\").remove();var a={xaxis:e.xaxis,yaxis:e.yaxis,plot:i,layerClipId:e._hasClipOnAxisFalse?e.clipIdRelative:null},o=e.layers.frontplot.select(\"g.scatterlayer\");n(t,a,r,o)}},{\"../scatter/plot\":1063}],1121:[function(t,e,r){\"use strict\";var n=t(\"../scatter/attributes\"),i=t(\"../../components/colorscale/attributes\"),a=t(\"../scattergl/attributes\"),o=t(\"../../plots/cartesian/constants\").idRegex,s=t(\"../../plot_api/plot_template\").templatedArray,l=t(\"../../lib/extend\").extendFlat,c=n.marker,u=c.line,f=l(i(\"marker.line\",{editTypeOverride:\"calc\"}),{width:l({},u.width,{editType:\"calc\"}),editType:\"calc\"}),h=l(i(\"marker\"),{symbol:c.symbol,size:l({},c.size,{editType:\"markerSize\"}),sizeref:c.sizeref,sizemin:c.sizemin,sizemode:c.sizemode,opacity:c.opacity,colorbar:c.colorbar,line:f,editType:\"calc\"});function p(t){return{valType:\"info_array\",freeLength:!0,editType:\"calc\",items:{valType:\"subplotid\",regex:o[t],editType:\"plot\"}}}h.color.editType=h.cmin.editType=h.cmax.editType=\"style\",e.exports={dimensions:s(\"dimension\",{visible:{valType:\"boolean\",dflt:!0,editType:\"calc\"},label:{valType:\"string\",editType:\"calc\"},values:{valType:\"data_array\",editType:\"calc+clearAxisTypes\"},axis:{type:{valType:\"enumerated\",values:[\"linear\",\"log\",\"date\",\"category\"],editType:\"calc+clearAxisTypes\"},editType:\"calc+clearAxisTypes\"},editType:\"calc+clearAxisTypes\"}),text:l({},a.text,{}),marker:h,xaxes:p(\"x\"),yaxes:p(\"y\"),diagonal:{visible:{valType:\"boolean\",dflt:!0,editType:\"calc\"},editType:\"calc\"},showupperhalf:{valType:\"boolean\",dflt:!0,editType:\"calc\"},showlowerhalf:{valType:\"boolean\",dflt:!0,editType:\"calc\"},selected:{marker:a.selected.marker,editType:\"calc\"},unselected:{marker:a.unselected.marker,editType:\"calc\"},opacity:a.opacity}},{\"../../components/colorscale/attributes\":577,\"../../lib/extend\":685,\"../../plot_api/plot_template\":734,\"../../plots/cartesian/constants\":750,\"../scatter/attributes\":1043,\"../scattergl/attributes\":1092}],1122:[function(t,e,r){\"use strict\";var n=t(\"regl-line2d\"),i=t(\"../../registry\"),a=t(\"../../lib/prepare_regl\"),o=t(\"../../plots/get_data\").getModuleCalcData,s=t(\"../../plots/cartesian\"),l=t(\"../../plots/cartesian/axis_ids\").getFromId,c=t(\"../../plots/cartesian/axes\").shouldShowZeroLine,u=\"splom\";function f(t,e,r){for(var n=r.matrixOptions.data.length,i=e._visibleDims,a=r.viewOpts.ranges=new Array(n),o=0;o<i.length;o++){var s=i[o],c=a[o]=new Array(4),u=l(t,e._diag[s][0]);u&&(c[0]=u.r2l(u.range[0]),c[2]=u.r2l(u.range[1]));var f=l(t,e._diag[s][1]);f&&(c[1]=f.r2l(f.range[0]),c[3]=f.r2l(f.range[1]))}r.selectBatch?r.matrix.update({ranges:a},{ranges:a}):r.matrix.update({ranges:a})}function h(t){var e=t._fullLayout,r=e._glcanvas.data()[0].regl,i=e._splomGrid;i||(i=e._splomGrid=n(r)),i.update(function(t){var e,r=t._fullLayout,n=r._size,i=[0,0,r.width,r.height],a={};function o(t,e,r,n,o,s){var l=e[t+\"color\"],c=e[t+\"width\"],u=String(l+c);u in a?a[u].data.push(NaN,NaN,r,n,o,s):a[u]={data:[r,n,o,s],join:\"rect\",thickness:c,color:l,viewport:i,range:i,overlay:!1}}for(e in r._splomSubplots){var s,l,u=r._plots[e],f=u.xaxis,h=u.yaxis,p=f._vals,d=h._vals,g=n.b+h.domain[0]*n.h,v=-h._m,m=-v*h.r2l(h.range[0],h.calendar);if(f.showgrid)for(e=0;e<p.length;e++)s=f._offset+f.l2p(p[e].x),o(\"grid\",f,s,g,s,g+h._length);if(h.showgrid)for(e=0;e<d.length;e++)l=g+m+v*d[e].x,o(\"grid\",h,f._offset,l,f._offset+f._length,l);c(t,f,h)&&(s=f._offset+f.l2p(0),o(\"zeroline\",f,s,g,s,g+h._length)),c(t,h,f)&&(l=g+m+0,o(\"zeroline\",h,f._offset,l,f._offset+f._length,l))}var y=[];for(e in a)y.push(a[e]);return y}(t))}e.exports={name:u,attr:s.attr,attrRegex:s.attrRegex,layoutAttributes:s.layoutAttributes,supplyLayoutDefaults:s.supplyLayoutDefaults,drawFramework:s.drawFramework,plot:function(t){var e=t._fullLayout,r=i.getModule(u),n=o(t.calcdata,r)[0];a(t,[\"ANGLE_instanced_arrays\",\"OES_element_index_uint\"])&&(e._hasOnlyLargeSploms&&h(t),r.plot(t,{},n))},drag:function(t){var e=t.calcdata,r=t._fullLayout;r._hasOnlyLargeSploms&&h(t);for(var n=0;n<e.length;n++){var i=e[n][0].trace,a=r._splomScenes[i.uid];\"splom\"===i.type&&a&&a.matrix&&f(t,i,a)}},updateGrid:h,clean:function(t,e,r,n){var i,a={};if(n._splomScenes){for(i=0;i<t.length;i++){var o=t[i];\"splom\"===o.type&&(a[o.uid]=1)}for(i=0;i<r.length;i++){var l=r[i];if(!a[l.uid]){var c=n._splomScenes[l.uid];c&&c.destroy&&c.destroy(),n._splomScenes[l.uid]=null,delete n._splomScenes[l.uid]}}}0===Object.keys(n._splomScenes||{}).length&&delete n._splomScenes,n._splomGrid&&!e._hasOnlyLargeSploms&&n._hasOnlyLargeSploms&&(n._splomGrid.destroy(),n._splomGrid=null,delete n._splomGrid),s.clean(t,e,r,n)},updateFx:function(t){s.updateFx(t);var e=t._fullLayout,r=e.dragmode;if(\"zoom\"===r||\"pan\"===r)for(var n=t.calcdata,i=0;i<n.length;i++){var a=n[i][0].trace;if(\"splom\"===a.type){var o=e._splomScenes[a.uid];null===o.selectBatch&&o.matrix.update(o.matrixOptions,null)}}},toSVG:s.toSVG}},{\"../../lib/prepare_regl\":709,\"../../plots/cartesian\":756,\"../../plots/cartesian/axes\":744,\"../../plots/cartesian/axis_ids\":747,\"../../plots/get_data\":781,\"../../registry\":827,\"regl-line2d\":474}],1123:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../plots/array_container_defaults\"),a=t(\"./attributes\"),o=t(\"../scatter/subtypes\"),s=t(\"../scatter/marker_defaults\"),l=t(\"../parcoords/merge_length\"),c=/-open/;function u(t,e){function r(r,i){return n.coerce(t,e,a.dimensions,r,i)}r(\"label\");var i=r(\"values\");i&&i.length?r(\"visible\"):e.visible=!1,r(\"axis.type\")}e.exports=function(t,e,r,f){function h(r,i){return n.coerce(t,e,a,r,i)}var p=i(t,e,{name:\"dimensions\",handleItemDefaults:u}),d=h(\"diagonal.visible\"),g=h(\"showupperhalf\"),v=h(\"showlowerhalf\");if(l(e,p,\"values\")&&(d||g||v)){h(\"text\"),s(t,e,r,f,h);var m=c.test(e.marker.symbol),y=o.isBubble(e);h(\"marker.line.width\",m||y?1:0),function(t,e,r,n){var i,a,o=e.dimensions,s=o.length,l=e.showupperhalf,c=e.showlowerhalf,u=e.diagonal.visible,f=new Array(s),h=new Array(s);for(i=0;i<s;i++){var p=i?i+1:\"\";f[i]=\"x\"+p,h[i]=\"y\"+p}var d=n(\"xaxes\",f),g=n(\"yaxes\",h),v=e._diag=new Array(s);e._xaxes={},e._yaxes={};var m=[],y=[];function x(t,n,i){if(t){var a=t.charAt(0),o=r._splomAxes[a];if(e[\"_\"+a+\"axes\"][t]=1,i.push(t),!(t in o)){var s=o[t]={};n&&(s.label=n.label||\"\",n.visible&&n.axis&&(s.type=n.axis.type))}}}var b=!u&&!c,_=!u&&!l;for(i=0;i<s;i++){var w=o[i],k=0===i,M=i===s-1,A=k&&b||M&&_?void 0:d[i],T=k&&_||M&&b?void 0:g[i];x(A,w,m),x(T,w,y),v[i]=[A,T]}for(i=0;i<m.length;i++)for(a=0;a<y.length;a++){var S=m[i]+y[a];i>a&&l?r._splomSubplots[S]=1:i<a&&c?r._splomSubplots[S]=1:i!==a||!u&&c&&l||(r._splomSubplots[S]=1)}(!c||!u&&l&&c)&&(r._splomGridDflt.xside=\"bottom\",r._splomGridDflt.yside=\"left\")}(0,e,f,h),n.coerceSelectionMarkerOpacity(e,h)}else e.visible=!1}},{\"../../lib\":696,\"../../plots/array_container_defaults\":740,\"../parcoords/merge_length\":1015,\"../scatter/marker_defaults\":1062,\"../scatter/subtypes\":1067,\"./attributes\":1121}],1124:[function(t,e,r){\"use strict\";var n=t(\"regl-splom\"),i=t(\"array-range\"),a=t(\"../../registry\"),o=t(\"../../components/grid\"),s=t(\"../../lib\"),l=t(\"../../plots/cartesian/axis_ids\"),c=t(\"../scatter/subtypes\"),u=t(\"../scatter/calc\").calcMarkerSize,f=t(\"../scatter/calc\").calcAxisExpansion,h=t(\"../scatter/colorscale_calc\"),p=t(\"../scattergl/convert\").markerSelection,d=t(\"../scattergl/convert\").markerStyle,g=t(\"../scattergl\").calcHover,v=t(\"../../constants/numerical\").BADNUM,m=t(\"../scattergl/constants\").TOO_MANY_POINTS;function y(t,e){var r,i,a,o,c,u=t._fullLayout,f=u._size,h=e.trace,p=e.t,d=u._splomScenes[h.uid],g=d.matrixOptions,v=g.cdata,m=u._glcanvas.data()[0].regl,y=u.dragmode;if(0!==v.length){g.lower=h.showupperhalf,g.upper=h.showlowerhalf,g.diagonal=h.diagonal.visible;var x=h._visibleDims,b=v.length,_=d.viewOpts={};for(_.ranges=new Array(b),_.domains=new Array(b),c=0;c<x.length;c++){a=x[c];var w=_.ranges[c]=new Array(4),k=_.domains[c]=new Array(4);(r=l.getFromId(t,h._diag[a][0]))&&(w[0]=r._rl[0],w[2]=r._rl[1],k[0]=r.domain[0],k[2]=r.domain[1]),(i=l.getFromId(t,h._diag[a][1]))&&(w[1]=i._rl[0],w[3]=i._rl[1],k[1]=i.domain[0],k[3]=i.domain[1])}_.viewport=[f.l,f.b,f.w+f.l,f.h+f.b],!0===d.matrix&&(d.matrix=n(m));var M=u.clickmode.indexOf(\"select\")>-1,A=\"lasso\"===y||\"select\"===y||!!h.selectedpoints||M;if(d.selectBatch=null,d.unselectBatch=null,A){var T=h._length;if(d.selectBatch||(d.selectBatch=[],d.unselectBatch=[]),h.selectedpoints){d.selectBatch=h.selectedpoints;var S=h.selectedpoints,E={};for(a=0;a<S.length;a++)E[S[a]]=!0;var C=[];for(a=0;a<T;a++)E[a]||C.push(a);d.unselectBatch=C}var L=p.xpx=new Array(b),z=p.ypx=new Array(b);for(c=0;c<x.length;c++){if(a=x[c],r=l.getFromId(t,h._diag[a][0]))for(L[c]=new Array(T),o=0;o<T;o++)L[c][o]=r.c2p(v[c][o]);if(i=l.getFromId(t,h._diag[a][1]))for(z[c]=new Array(T),o=0;o<T;o++)z[c][o]=i.c2p(v[c][o])}d.selectBatch?(d.matrix.update(g,g),d.matrix.update(d.unselectedOptions,d.selectedOptions),d.matrix.update(_,_)):d.matrix.update(_,null)}else{var O=s.extendFlat({},g,_);d.matrix.update(O,null),p.xpx=p.ypx=null}}}function x(t,e){for(var r=e._id,n={x:0,y:1}[r.charAt(0)],i=t._visibleDims,a=0;a<i.length;a++){var o=i[a];if(t._diag[o][n]===r)return a}return!1}e.exports={moduleType:\"trace\",name:\"splom\",basePlotModule:t(\"./base_plot\"),categories:[\"gl\",\"regl\",\"cartesian\",\"symbols\",\"showLegend\",\"scatter-like\"],attributes:t(\"./attributes\"),supplyDefaults:t(\"./defaults\"),colorbar:t(\"../scatter/marker_colorbar\"),calc:function(t,e){var r,n,i,a,o,c,g=e.dimensions,y=e._length,x={},b=x.cdata=[],_=x.data=[],w=e._visibleDims=[];function k(t,r){for(var n=t.makeCalcdata({v:r.values,vcalendar:e.calendar},\"v\"),i=0;i<n.length;i++)n[i]=n[i]===v?NaN:n[i];b.push(n),_.push(\"log\"===t.type?s.simpleMap(n,t.c2l):n)}for(r=0;r<g.length;r++)if((i=g[r]).visible){if(a=l.getFromId(t,e._diag[r][0]),o=l.getFromId(t,e._diag[r][1]),a&&o&&a.type!==o.type){s.log(\"Skipping splom dimension \"+r+\" with conflicting axis types\");continue}a?(k(a,i),o&&\"category\"===o.type&&(o._categories=a._categories.slice())):k(o,i),w.push(r)}for(h(e),s.extendFlat(x,d(e)),c=b.length*y>m?2*(x.sizeAvg||Math.max(x.size,3)):u(e,y),n=0;n<w.length;n++)i=g[r=w[n]],a=l.getFromId(t,e._diag[r][0])||{},o=l.getFromId(t,e._diag[r][1])||{},f(t,e,a,o,b[n],b[n],c);var M=function(t,e){var r=t._fullLayout,n=e.uid,i=r._splomScenes;i||(i=r._splomScenes={});var a={dirty:!0},o=i[e.uid];return o||((o=i[n]=s.extendFlat({},a,{selectBatch:null,unselectBatch:null,matrix:!1,select:null})).draw=function(){o.matrix&&o.matrix.draw&&(o.selectBatch?o.matrix.draw(o.unselectBatch,o.selectBatch):o.matrix.draw()),o.dirty=!1},o.destroy=function(){o.matrix&&o.matrix.destroy&&o.matrix.destroy(),o.matrixOptions=null,o.selectBatch=null,o.unselectBatch=null,o=null}),o.dirty||s.extendFlat(o,a),o}(t,e);return M.matrix||(M.matrix=!0),M.matrixOptions=x,M.selectedOptions=p(e,e.selected),M.unselectedOptions=p(e,e.unselected),[{x:!1,y:!1,t:{},trace:e}]},plot:function(t,e,r){if(r.length)for(var n=0;n<r.length;n++)y(t,r[n][0])},hoverPoints:function(t,e,r){var n=t.cd[0].trace,i=t.scene.matrixOptions.cdata,a=t.xa,o=t.ya,s=a.c2p(e),l=o.c2p(r),c=t.distance,u=x(n,a),f=x(n,o);if(!1===u||!1===f)return[t];for(var h,p,d=i[u],v=i[f],m=c,y=0;y<d.length;y++){var b=d[y],_=v[y],w=a.c2p(b)-s,k=o.c2p(_)-l,M=Math.sqrt(w*w+k*k);M<m&&(m=p=M,h=y)}return t.index=h,t.distance=m,t.dxy=p,void 0===h?[t]:(g(t,d,v,n),[t])},selectPoints:function(t,e){var r,n=t.cd,a=n[0].trace,o=n[0].t,s=t.scene,l=s.matrixOptions.cdata,u=t.xaxis,f=t.yaxis,h=[];if(!s)return h;var p=!c.hasMarkers(a)&&!c.hasText(a);if(!0!==a.visible||p)return h;var d=x(a,u),g=x(a,f);if(!1===d||!1===g)return h;var v=o.xpx[d],m=o.ypx[g],y=l[d],b=l[g],_=null,w=null;if(!1===e||e.degenerate)w=i(o.count);else for(_=[],w=[],r=0;r<y.length;r++)e.contains([v[r],m[r]],null,r,t)?(_.push(r),h.push({pointNumber:r,x:y[r],y:b[r]})):w.push(r);if(s.selectBatch||(s.selectBatch=[],s.unselectBatch=[]),!s.selectBatch){for(r=0;r<s.count;r++)s.selectBatch=[],s.unselectBatch=[];s.matrix.update(s.unselectedOptions,s.selectedOptions)}return s.selectBatch=_,s.unselectBatch=w,h},editStyle:function(t,e){var r=e.trace,n=t._fullLayout._splomScenes[r.uid];if(n){h(r),s.extendFlat(n.matrixOptions,d(r));var i=s.extendFlat({},n.matrixOptions,n.viewOpts);n.matrix.update(i,null)}},meta:{}},a.register(o)},{\"../../components/grid\":616,\"../../constants/numerical\":673,\"../../lib\":696,\"../../plots/cartesian/axis_ids\":747,\"../../registry\":827,\"../scatter/calc\":1044,\"../scatter/colorscale_calc\":1046,\"../scatter/marker_colorbar\":1061,\"../scatter/subtypes\":1067,\"../scattergl\":1096,\"../scattergl/constants\":1093,\"../scattergl/convert\":1094,\"./attributes\":1121,\"./base_plot\":1122,\"./defaults\":1123,\"array-range\":55,\"regl-splom\":477}],1125:[function(t,e,r){\"use strict\";var n=t(\"../../components/colorscale/attributes\"),i=t(\"../../components/colorbar/attributes\"),a=t(\"../mesh3d/attributes\"),o=t(\"../../plots/attributes\"),s=t(\"../../lib/extend\").extendFlat,l={x:{valType:\"data_array\",editType:\"calc+clearAxisTypes\"},y:{valType:\"data_array\",editType:\"calc+clearAxisTypes\"},z:{valType:\"data_array\",editType:\"calc+clearAxisTypes\"},u:{valType:\"data_array\",editType:\"calc\"},v:{valType:\"data_array\",editType:\"calc\"},w:{valType:\"data_array\",editType:\"calc\"},starts:{x:{valType:\"data_array\",editType:\"calc\"},y:{valType:\"data_array\",editType:\"calc\"},z:{valType:\"data_array\",editType:\"calc\"},editType:\"calc\"},maxdisplayed:{valType:\"integer\",min:0,dflt:1e3,editType:\"calc\"},sizeref:{valType:\"number\",editType:\"calc\",min:0,dflt:1},text:{valType:\"string\",dflt:\"\",editType:\"calc\"}};s(l,n(\"\",{colorAttr:\"u/v/w norm\",showScaleDflt:!0,editTypeOverride:\"calc\"}),{colorbar:i});[\"opacity\",\"lightposition\",\"lighting\"].forEach(function(t){l[t]=a[t]}),l.hoverinfo=s({},o.hoverinfo,{editType:\"calc\",flags:[\"x\",\"y\",\"z\",\"u\",\"v\",\"w\",\"norm\",\"divergence\",\"text\",\"name\"],dflt:\"x+y+z+norm+text+name\"}),l.transforms=void 0,e.exports=l},{\"../../components/colorbar/attributes\":571,\"../../components/colorscale/attributes\":577,\"../../lib/extend\":685,\"../../plots/attributes\":741,\"../mesh3d/attributes\":986}],1126:[function(t,e,r){\"use strict\";var n=t(\"../../components/colorscale/calc\");e.exports=function(t,e){var r,i,a,o,s=e.u,l=e.v,c=e.w,u=e.x,f=e.y,h=e.z,p=Math.min(u.length,f.length,h.length,s.length,l.length,c.length),d=0;e.starts&&(i=e.starts.x||[],a=e.starts.y||[],o=e.starts.z||[],d=Math.min(i.length,a.length,o.length));var g=0,v=1/0;for(r=0;r<p;r++){var m=s[r],y=l[r],x=c[r],b=Math.sqrt(m*m+y*y+x*x);g=Math.max(g,b),v=Math.min(v,b)}n(e,[v,g],\"\",\"c\");var _=-1/0,w=1/0,k=-1/0,M=1/0,A=-1/0,T=1/0;for(r=0;r<p;r++){var S=u[r];_=Math.max(_,S),w=Math.min(w,S);var E=f[r];k=Math.max(k,E),M=Math.min(M,E);var C=h[r];A=Math.max(A,C),T=Math.min(T,C)}for(r=0;r<d;r++){var L=i[r];_=Math.max(_,L),w=Math.min(w,L);var z=a[r];k=Math.max(k,z),M=Math.min(M,z);var O=o[r];A=Math.max(A,O),T=Math.min(T,O)}e._len=p,e._slen=d,e._normMax=g,e._xbnds=[w,_],e._ybnds=[M,k],e._zbnds=[T,A]}},{\"../../components/colorscale/calc\":578}],1127:[function(t,e,r){\"use strict\";var n=t(\"gl-streamtube3d\"),i=n.createTubeMesh,a=t(\"../../lib\"),o=t(\"../../lib/gl_format_color\").parseColorScale,s=t(\"../../plots/gl3d/zip3\"),l={xaxis:0,yaxis:1,zaxis:2};function c(t,e){this.scene=t,this.uid=e,this.mesh=null,this.data=null}var u=c.prototype;function f(t){return a.distinctVals(t).vals}function h(t){var e=t.length;return e>2?t.slice(1,e-1):2===e?[(t[0]+t[1])/2]:t}function p(t){var e=t.length;return 1===e?[.5,.5]:[t[1]-t[0],t[e-1]-t[e-2]]}function d(t,e){var r=t.fullSceneLayout,i=t.dataScale,c=e._len,u={};function d(t,e){var n=r[e],o=i[l[e]];return a.simpleMap(t,function(t){return n.d2l(t)*o})}u.vectors=s(d(e.u,\"xaxis\"),d(e.v,\"yaxis\"),d(e.w,\"zaxis\"),c);var g=f(e.x.slice(0,c)),v=f(e.y.slice(0,c)),m=f(e.z.slice(0,c));if(g.length*v.length*m.length>c)return{positions:[],cells:[]};var y=d(g,\"xaxis\"),x=d(v,\"yaxis\"),b=d(m,\"zaxis\");if(u.meshgrid=[y,x,b],e.starts){var _=e._slen;u.startingPositions=s(d(e.starts.x.slice(0,_),\"xaxis\"),d(e.starts.y.slice(0,_),\"yaxis\"),d(e.starts.z.slice(0,_),\"zaxis\"))}else{for(var w=x[0],k=h(y),M=h(b),A=new Array(k.length*M.length),T=0,S=0;S<k.length;S++)for(var E=0;E<M.length;E++)A[T++]=[k[S],w,M[E]];u.startingPositions=A}u.colormap=o(e.colorscale),u.tubeSize=e.sizeref,u.maxLength=e.maxdisplayed;var C=d(e._xbnds,\"xaxis\"),L=d(e._ybnds,\"yaxis\"),z=d(e._zbnds,\"zaxis\"),O=p(y),I=p(x),P=p(b),D=[[C[0]-O[0],L[0]-I[0],z[0]-P[0]],[C[1]+O[1],L[1]+I[1],z[1]+P[1]]],R=n(u,D);R.vertexIntensityBounds=[e.cmin/e._normMax,e.cmax/e._normMax];var B=e.lightposition;return R.lightPosition=[B.x,B.y,B.z],R.ambient=e.lighting.ambient,R.diffuse=e.lighting.diffuse,R.specular=e.lighting.specular,R.roughness=e.lighting.roughness,R.fresnel=e.lighting.fresnel,R.opacity=e.opacity,e._pad=R.tubeScale*e.sizeref*2,R}u.handlePick=function(t){var e=this.scene.fullSceneLayout,r=this.scene.dataScale;function n(t,n){var i=e[n],a=r[l[n]];return i.l2c(t)/a}if(t.object===this.mesh){var i=t.data.position,a=t.data.velocity;return t.traceCoordinate=[n(i[0],\"xaxis\"),n(i[1],\"yaxis\"),n(i[2],\"zaxis\"),n(a[0],\"xaxis\"),n(a[1],\"yaxis\"),n(a[2],\"zaxis\"),t.data.intensity*this.data._normMax,t.data.divergence],t.textLabel=this.data.text,!0}},u.update=function(t){this.data=t;var e=d(this.scene,t);this.mesh.update(e)},u.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()},e.exports=function(t,e){var r=t.glplot.gl,n=d(t,e),a=i(r,n),o=new c(t,e.uid);return o.mesh=a,o.data=e,a._trace=o,t.glplot.add(a),o}},{\"../../lib\":696,\"../../lib/gl_format_color\":692,\"../../plots/gl3d/zip3\":798,\"gl-streamtube3d\":301}],1128:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../components/colorscale/defaults\"),a=t(\"./attributes\");e.exports=function(t,e,r,o){function s(r,i){return n.coerce(t,e,a,r,i)}var l=s(\"u\"),c=s(\"v\"),u=s(\"w\"),f=s(\"x\"),h=s(\"y\"),p=s(\"z\");l&&l.length&&c&&c.length&&u&&u.length&&f&&f.length&&h&&h.length&&p&&p.length?(s(\"starts.x\"),s(\"starts.y\"),s(\"starts.z\"),s(\"maxdisplayed\"),s(\"sizeref\"),s(\"lighting.ambient\"),s(\"lighting.diffuse\"),s(\"lighting.specular\"),s(\"lighting.roughness\"),s(\"lighting.fresnel\"),s(\"lightposition.x\"),s(\"lightposition.y\"),s(\"lightposition.z\"),i(t,e,o,s,{prefix:\"\",cLetter:\"c\"}),s(\"text\"),e._length=null):e.visible=!1}},{\"../../components/colorscale/defaults\":580,\"../../lib\":696,\"./attributes\":1125}],1129:[function(t,e,r){\"use strict\";e.exports={moduleType:\"trace\",name:\"streamtube\",basePlotModule:t(\"../../plots/gl3d\"),categories:[\"gl3d\"],attributes:t(\"./attributes\"),supplyDefaults:t(\"./defaults\"),colorbar:{min:\"cmin\",max:\"cmax\"},calc:t(\"./calc\"),plot:t(\"./convert\"),eventData:function(t,e){return t.tubex=t.x,t.tubey=t.y,t.tubez=t.z,t.tubeu=e.traceCoordinate[3],t.tubev=e.traceCoordinate[4],t.tubew=e.traceCoordinate[5],t.norm=e.traceCoordinate[6],t.divergence=e.traceCoordinate[7],delete t.x,delete t.y,delete t.z,t},meta:{}}},{\"../../plots/gl3d\":787,\"./attributes\":1125,\"./calc\":1126,\"./convert\":1127,\"./defaults\":1128}],1130:[function(t,e,r){\"use strict\";var n=t(\"../../components/color\"),i=t(\"../../components/colorscale/attributes\"),a=t(\"../../components/colorbar/attributes\"),o=t(\"../../plots/attributes\"),s=t(\"../../lib/extend\").extendFlat,l=t(\"../../plot_api/edit_types\").overrideAll;function c(t){return{show:{valType:\"boolean\",dflt:!1},project:{x:{valType:\"boolean\",dflt:!1},y:{valType:\"boolean\",dflt:!1},z:{valType:\"boolean\",dflt:!1}},color:{valType:\"color\",dflt:n.defaultLine},usecolormap:{valType:\"boolean\",dflt:!1},width:{valType:\"number\",min:1,max:16,dflt:2},highlight:{valType:\"boolean\",dflt:!0},highlightcolor:{valType:\"color\",dflt:n.defaultLine},highlightwidth:{valType:\"number\",min:1,max:16,dflt:2}}}var u=e.exports=l(s({z:{valType:\"data_array\"},x:{valType:\"data_array\"},y:{valType:\"data_array\"},text:{valType:\"string\",dflt:\"\",arrayOk:!0},surfacecolor:{valType:\"data_array\"}},i(\"\",{colorAttr:\"z or surfacecolor\",showScaleDflt:!0,autoColorDflt:!1,editTypeOverride:\"calc\"}),{colorbar:a,contours:{x:c(),y:c(),z:c()},hidesurface:{valType:\"boolean\",dflt:!1},lightposition:{x:{valType:\"number\",min:-1e5,max:1e5,dflt:10},y:{valType:\"number\",min:-1e5,max:1e5,dflt:1e4},z:{valType:\"number\",min:-1e5,max:1e5,dflt:0}},lighting:{ambient:{valType:\"number\",min:0,max:1,dflt:.8},diffuse:{valType:\"number\",min:0,max:1,dflt:.8},specular:{valType:\"number\",min:0,max:2,dflt:.05},roughness:{valType:\"number\",min:0,max:1,dflt:.5},fresnel:{valType:\"number\",min:0,max:5,dflt:.2}},opacity:{valType:\"number\",min:0,max:1,dflt:1},_deprecated:{zauto:s({},i.zauto,{}),zmin:s({},i.zmin,{}),zmax:s({},i.zmax,{})},hoverinfo:s({},o.hoverinfo)}),\"calc\",\"nested\");u.x.editType=u.y.editType=u.z.editType=\"calc+clearAxisTypes\",u.transforms=void 0},{\"../../components/color\":570,\"../../components/colorbar/attributes\":571,\"../../components/colorscale/attributes\":577,\"../../lib/extend\":685,\"../../plot_api/edit_types\":727,\"../../plots/attributes\":741}],1131:[function(t,e,r){\"use strict\";var n=t(\"../../components/colorscale/calc\");e.exports=function(t,e){e.surfacecolor?n(e,e.surfacecolor,\"\",\"c\"):n(e,e.z,\"\",\"c\")}},{\"../../components/colorscale/calc\":578}],1132:[function(t,e,r){\"use strict\";var n=t(\"gl-surface3d\"),i=t(\"ndarray\"),a=t(\"ndarray-homography\"),o=t(\"ndarray-fill\"),s=t(\"ndarray-ops\"),l=t(\"../../lib\").isArrayOrTypedArray,c=t(\"../../lib/gl_format_color\").parseColorScale,u=t(\"../../lib/str2rgbarray\"),f=128;function h(t,e,r){this.scene=t,this.uid=r,this.surface=e,this.data=null,this.showContour=[!1,!1,!1],this.dataScale=1}var p=h.prototype;function d(t){var e=t.shape,r=[e[0]+2,e[1]+2],n=i(new Float32Array(r[0]*r[1]),r);return s.assign(n.lo(1,1).hi(e[0],e[1]),t),s.assign(n.lo(1).hi(e[0],1),t.hi(e[0],1)),s.assign(n.lo(1,r[1]-1).hi(e[0],1),t.lo(0,e[1]-1).hi(e[0],1)),s.assign(n.lo(0,1).hi(1,e[1]),t.hi(1)),s.assign(n.lo(r[0]-1,1).hi(1,e[1]),t.lo(e[0]-1)),n.set(0,0,t.get(0,0)),n.set(0,r[1]-1,t.get(0,e[1]-1)),n.set(r[0]-1,0,t.get(e[0]-1,0)),n.set(r[0]-1,r[1]-1,t.get(e[0]-1,e[1]-1)),n}p.handlePick=function(t){if(t.object===this.surface){var e=t.index=[Math.min(0|Math.round(t.data.index[0]/this.dataScale-1),this.data.z[0].length-1),Math.min(0|Math.round(t.data.index[1]/this.dataScale-1),this.data.z.length-1)],r=[0,0,0];l(this.data.x)?l(this.data.x[0])?r[0]=this.data.x[e[1]][e[0]]:r[0]=this.data.x[e[0]]:r[0]=e[0],l(this.data.y)?l(this.data.y[0])?r[1]=this.data.y[e[1]][e[0]]:r[1]=this.data.y[e[1]]:r[1]=e[1],r[2]=this.data.z[e[1]][e[0]],t.traceCoordinate=r;var n=this.scene.fullSceneLayout;t.dataCoordinate=[n.xaxis.d2l(r[0],0,this.data.xcalendar)*this.scene.dataScale[0],n.yaxis.d2l(r[1],0,this.data.ycalendar)*this.scene.dataScale[1],n.zaxis.d2l(r[2],0,this.data.zcalendar)*this.scene.dataScale[2]];var i=this.data.text;return Array.isArray(i)&&i[e[1]]&&void 0!==i[e[1]][e[0]]?t.textLabel=i[e[1]][e[0]]:t.textLabel=i||\"\",t.data.dataCoordinate=t.dataCoordinate.slice(),this.surface.highlight(t.data),this.scene.glplot.spikes.position=t.dataCoordinate,!0}},p.setContourLevels=function(){for(var t=[[],[],[]],e=!1,r=0;r<3;++r)this.showContour[r]&&(e=!0,t[r]=this.scene.contourLevels[r]);e&&this.surface.update({levels:t})},p.update=function(t){var e,r=this.scene,n=r.fullSceneLayout,s=this.surface,h=t.opacity,p=c(t.colorscale,h),g=t.z,v=t.x,m=t.y,y=n.xaxis,x=n.yaxis,b=n.zaxis,_=r.dataScale,w=g[0].length,k=t._ylength,M=[i(new Float32Array(w*k),[w,k]),i(new Float32Array(w*k),[w,k]),i(new Float32Array(w*k),[w,k])],A=M[0],T=M[1],S=r.contourLevels;this.data=t;var E=t.xcalendar,C=t.ycalendar,L=t.zcalendar;o(M[2],function(t,e){return b.d2l(g[e][t],0,L)*_[2]}),l(v)?l(v[0])?o(A,function(t,e){return y.d2l(v[e][t],0,E)*_[0]}):o(A,function(t){return y.d2l(v[t],0,E)*_[0]}):o(A,function(t){return y.d2l(t,0,E)*_[0]}),l(v)?l(m[0])?o(T,function(t,e){return x.d2l(m[e][t],0,C)*_[1]}):o(T,function(t,e){return x.d2l(m[e],0,C)*_[1]}):o(T,function(t,e){return x.d2l(e,0,E)*_[1]});var z={colormap:p,levels:[[],[],[]],showContour:[!0,!0,!0],showSurface:!t.hidesurface,contourProject:[[!1,!1,!1],[!1,!1,!1],[!1,!1,!1]],contourWidth:[1,1,1],contourColor:[[1,1,1,1],[1,1,1,1],[1,1,1,1]],contourTint:[1,1,1],dynamicColor:[[1,1,1,1],[1,1,1,1],[1,1,1,1]],dynamicWidth:[1,1,1],dynamicTint:[1,1,1],opacity:t.opacity};if(z.intensityBounds=[t.cmin,t.cmax],t.surfacecolor){var O=i(new Float32Array(w*k),[w,k]);o(O,function(e,r){return t.surfacecolor[r][e]}),M.push(O)}else z.intensityBounds[0]*=_[2],z.intensityBounds[1]*=_[2];this.dataScale=function(t){var e=Math.max(t[0].shape[0],t[0].shape[1]);if(e<f){for(var r=f/e,n=[0|Math.floor(t[0].shape[0]*r+1),0|Math.floor(t[0].shape[1]*r+1)],o=n[0]*n[1],s=0;s<t.length;++s){var l=d(t[s]),c=i(new Float32Array(o),n);a(c,l,[r,0,0,0,r,0,0,0,1]),t[s]=c}return r}return 1}(M),t.surfacecolor&&(z.intensity=M.pop());var I=[!0,!0,!0],P=[\"x\",\"y\",\"z\"];for(e=0;e<3;++e){var D=t.contours[P[e]];I[e]=D.highlight,z.showContour[e]=D.show||D.highlight,z.showContour[e]&&(z.contourProject[e]=[D.project.x,D.project.y,D.project.z],D.show?(this.showContour[e]=!0,z.levels[e]=S[e],s.highlightColor[e]=z.contourColor[e]=u(D.color),D.usecolormap?s.highlightTint[e]=z.contourTint[e]=0:s.highlightTint[e]=z.contourTint[e]=1,z.contourWidth[e]=D.width):this.showContour[e]=!1,D.highlight&&(z.dynamicColor[e]=u(D.highlightcolor),z.dynamicWidth[e]=D.highlightwidth))}(function(t){var e=t[0].rgb,r=t[t.length-1].rgb;return e[0]===r[0]&&e[1]===r[1]&&e[2]===r[2]&&e[3]===r[3]})(p)&&(z.vertexColor=!0),z.coords=M,s.update(z),s.visible=t.visible,s.enableDynamic=I,s.enableHighlight=I,s.snapToData=!0,\"lighting\"in t&&(s.ambientLight=t.lighting.ambient,s.diffuseLight=t.lighting.diffuse,s.specularLight=t.lighting.specular,s.roughness=t.lighting.roughness,s.fresnel=t.lighting.fresnel),\"lightposition\"in t&&(s.lightPosition=[t.lightposition.x,t.lightposition.y,t.lightposition.z]),h&&h<1&&(s.supportsTransparency=!0)},p.dispose=function(){this.scene.glplot.remove(this.surface),this.surface.dispose()},e.exports=function(t,e){var r=t.glplot.gl,i=n({gl:r}),a=new h(t,i,e.uid);return i._trace=a,a.update(e),t.glplot.add(i),a}},{\"../../lib\":696,\"../../lib/gl_format_color\":692,\"../../lib/str2rgbarray\":719,\"gl-surface3d\":303,ndarray:433,\"ndarray-fill\":423,\"ndarray-homography\":425,\"ndarray-ops\":427}],1133:[function(t,e,r){\"use strict\";var n=t(\"../../registry\"),i=t(\"../../lib\"),a=t(\"../../components/colorscale/defaults\"),o=t(\"./attributes\");function s(t,e,r){e in t&&!(r in t)&&(t[r]=t[e])}e.exports=function(t,e,r,l){var c,u;function f(r,n){return i.coerce(t,e,o,r,n)}var h=f(\"z\");if(h){var p=f(\"x\");f(\"y\"),e._xlength=Array.isArray(p)&&i.isArrayOrTypedArray(p[0])?h.length:h[0].length,e._ylength=h.length,n.getComponentMethod(\"calendars\",\"handleTraceDefaults\")(t,e,[\"x\",\"y\",\"z\"],l),f(\"text\"),[\"lighting.ambient\",\"lighting.diffuse\",\"lighting.specular\",\"lighting.roughness\",\"lighting.fresnel\",\"lightposition.x\",\"lightposition.y\",\"lightposition.z\",\"hidesurface\",\"opacity\"].forEach(function(t){f(t)});var d=f(\"surfacecolor\");f(\"colorscale\");var g=[\"x\",\"y\",\"z\"];for(c=0;c<3;++c){var v=\"contours.\"+g[c],m=f(v+\".show\"),y=f(v+\".highlight\");if(m||y)for(u=0;u<3;++u)f(v+\".project.\"+g[u]);m&&(f(v+\".color\"),f(v+\".width\"),f(v+\".usecolormap\")),y&&(f(v+\".highlightcolor\"),f(v+\".highlightwidth\"))}d||(s(t,\"zmin\",\"cmin\"),s(t,\"zmax\",\"cmax\"),s(t,\"zauto\",\"cauto\")),a(t,e,l,f,{prefix:\"\",cLetter:\"c\"}),e._length=null}else e.visible=!1}},{\"../../components/colorscale/defaults\":580,\"../../lib\":696,\"../../registry\":827,\"./attributes\":1130}],1134:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.supplyDefaults=t(\"./defaults\"),n.colorbar={min:\"cmin\",max:\"cmax\"},n.calc=t(\"./calc\"),n.plot=t(\"./convert\"),n.moduleType=\"trace\",n.name=\"surface\",n.basePlotModule=t(\"../../plots/gl3d\"),n.categories=[\"gl3d\",\"2dMap\",\"noOpacity\"],n.meta={},e.exports=n},{\"../../plots/gl3d\":787,\"./attributes\":1130,\"./calc\":1131,\"./convert\":1132,\"./defaults\":1133}],1135:[function(t,e,r){\"use strict\";var n=t(\"../../components/annotations/attributes\"),i=t(\"../../lib/extend\").extendFlat,a=t(\"../../plot_api/edit_types\").overrideAll,o=t(\"../../plots/font_attributes\"),s=t(\"../../plots/domain\").attributes;(e.exports=a({domain:s({name:\"table\",trace:!0}),columnwidth:{valType:\"number\",arrayOk:!0,dflt:null},columnorder:{valType:\"data_array\"},header:{values:{valType:\"data_array\",dflt:[]},format:{valType:\"data_array\",dflt:[]},prefix:{valType:\"string\",arrayOk:!0,dflt:null},suffix:{valType:\"string\",arrayOk:!0,dflt:null},height:{valType:\"number\",dflt:28},align:i({},n.align,{arrayOk:!0}),line:{width:{valType:\"number\",arrayOk:!0,dflt:1},color:{valType:\"color\",arrayOk:!0,dflt:\"grey\"}},fill:{color:{valType:\"color\",arrayOk:!0,dflt:\"white\"}},font:i({},o({arrayOk:!0}))},cells:{values:{valType:\"data_array\",dflt:[]},format:{valType:\"data_array\",dflt:[]},prefix:{valType:\"string\",arrayOk:!0,dflt:null},suffix:{valType:\"string\",arrayOk:!0,dflt:null},height:{valType:\"number\",dflt:20},align:i({},n.align,{arrayOk:!0}),line:{width:{valType:\"number\",arrayOk:!0,dflt:1},color:{valType:\"color\",arrayOk:!0,dflt:\"grey\"}},fill:{color:{valType:\"color\",arrayOk:!0,dflt:\"white\"}},font:i({},o({arrayOk:!0}))}},\"calc\",\"from-root\")).transforms=void 0},{\"../../components/annotations/attributes\":553,\"../../lib/extend\":685,\"../../plot_api/edit_types\":727,\"../../plots/domain\":770,\"../../plots/font_attributes\":771}],1136:[function(t,e,r){\"use strict\";var n=t(\"../../plots/get_data\").getModuleCalcData,i=t(\"./plot\");r.name=\"table\",r.plot=function(t){var e=n(t.calcdata,\"table\")[0];e.length&&i(t,e)},r.clean=function(t,e,r,n){var i=n._has&&n._has(\"table\"),a=e._has&&e._has(\"table\");i&&!a&&n._paperdiv.selectAll(\".table\").remove()}},{\"../../plots/get_data\":781,\"./plot\":1143}],1137:[function(t,e,r){\"use strict\";var n=t(\"../../lib/gup\").wrap;e.exports=function(){return n({})}},{\"../../lib/gup\":693}],1138:[function(t,e,r){\"use strict\";e.exports={cellPad:8,columnExtentOffset:10,columnTitleOffset:28,emptyHeaderHeight:16,latexCheck:/^\\$.*\\$$/,goldenRatio:1.618,lineBreaker:\"<br>\",maxDimensionCount:60,overdrag:45,releaseTransitionDuration:120,releaseTransitionEase:\"cubic-out\",scrollbarCaptureWidth:18,scrollbarHideDelay:1e3,scrollbarHideDuration:1e3,scrollbarOffset:5,scrollbarWidth:8,transitionDuration:100,transitionEase:\"cubic-out\",uplift:5,wrapSpacer:\" \",wrapSplitCharacter:\" \",cn:{table:\"table\",tableControlView:\"table-control-view\",scrollBackground:\"scroll-background\",yColumn:\"y-column\",columnBlock:\"column-block\",scrollAreaClip:\"scroll-area-clip\",scrollAreaClipRect:\"scroll-area-clip-rect\",columnBoundary:\"column-boundary\",columnBoundaryClippath:\"column-boundary-clippath\",columnBoundaryRect:\"column-boundary-rect\",columnCells:\"column-cells\",columnCell:\"column-cell\",cellRect:\"cell-rect\",cellText:\"cell-text\",cellTextHolder:\"cell-text-holder\",scrollbarKit:\"scrollbar-kit\",scrollbar:\"scrollbar\",scrollbarSlider:\"scrollbar-slider\",scrollbarGlyph:\"scrollbar-glyph\",scrollbarCaptureZone:\"scrollbar-capture-zone\"}}},{}],1139:[function(t,e,r){\"use strict\";var n=t(\"./constants\"),i=t(\"../../lib/extend\").extendFlat,a=t(\"fast-isnumeric\");function o(t){if(Array.isArray(t)){for(var e=0,r=0;r<t.length;r++)e=Math.max(e,o(t[r]));return e}return t}function s(t,e){return t+e}function l(t){var e,r=t.slice(),n=1/0,i=0;for(e=0;e<r.length;e++)Array.isArray(r[e])||(r[e]=[r[e]]),n=Math.min(n,r[e].length),i=Math.max(i,r[e].length);if(n!==i)for(e=0;e<r.length;e++){var a=i-r[e].length;a&&(r[e]=r[e].concat(c(a)))}return r}function c(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=\"\";return e}function u(t){return t.calcdata.columns.reduce(function(e,r){return r.xIndex<t.xIndex?e+r.columnWidth:e},0)}function f(t,e){return Object.keys(t).map(function(r){return i({},t[r],{auxiliaryBlocks:e})})}function h(t,e){for(var r,n={},i=0,a=0,o={firstRowIndex:null,lastRowIndex:null,rows:[]},s=0,l=0,c=0;c<t.length;c++)r=t[c],o.rows.push({rowIndex:c,rowHeight:r}),((a+=r)>=e||c===t.length-1)&&(n[i]=o,o.key=l++,o.firstRowIndex=s,o.lastRowIndex=c,o={firstRowIndex:null,lastRowIndex:null,rows:[]},i+=a,s=c+1,a=0);return n}e.exports=function(t,e){var r=l(e.cells.values),p=function(t){return t.slice(e.header.values.length,t.length)},d=l(e.header.values);d.length&&!d[0].length&&(d[0]=[\"\"],d=l(d));var g=d.concat(p(r).map(function(){return c((d[0]||[\"\"]).length)})),v=e.domain,m=Math.floor(t._fullLayout._size.w*(v.x[1]-v.x[0])),y=Math.floor(t._fullLayout._size.h*(v.y[1]-v.y[0])),x=e.header.values.length?g[0].map(function(){return e.header.height}):[n.emptyHeaderHeight],b=r.length?r[0].map(function(){return e.cells.height}):[],_=x.reduce(s,0),w=h(b,y-_+n.uplift),k=f(h(x,_),[]),M=f(w,k),A={},T=e._fullInput.columnorder.concat(p(r.map(function(t,e){return e}))),S=g.map(function(t,r){var n=Array.isArray(e.columnwidth)?e.columnwidth[Math.min(r,e.columnwidth.length-1)]:e.columnwidth;return a(n)?Number(n):1}),E=S.reduce(s,0);S=S.map(function(t){return t/E*m});var C=Math.max(o(e.header.line.width),o(e.cells.line.width)),L={key:e.index,translateX:v.x[0]*t._fullLayout._size.w,translateY:t._fullLayout._size.h*(1-v.y[1]),size:t._fullLayout._size,width:m,maxLineWidth:C,height:y,columnOrder:T,groupHeight:y,rowBlocks:M,headerRowBlocks:k,scrollY:0,cells:i({},e.cells,{values:r}),headerCells:i({},e.header,{values:g}),gdColumns:g.map(function(t){return t[0]}),gdColumnsOriginalOrder:g.map(function(t){return t[0]}),prevPages:[0,0],scrollbarState:{scrollbarScrollInProgress:!1},columns:g.map(function(t,e){var r=A[t];return A[t]=(r||0)+1,{key:t+\"__\"+A[t],label:t,specIndex:e,xIndex:T[e],xScale:u,x:void 0,calcdata:void 0,columnWidth:S[e]}})};return L.columns.forEach(function(t){t.calcdata=L,t.x=u(t)}),L}},{\"../../lib/extend\":685,\"./constants\":1138,\"fast-isnumeric\":214}],1140:[function(t,e,r){\"use strict\";var n=t(\"../../lib/extend\").extendFlat;r.splitToPanels=function(t){var e=[0,0],r=n({},t,{key:\"header\",type:\"header\",page:0,prevPages:e,currentRepaint:[null,null],dragHandle:!0,values:t.calcdata.headerCells.values[t.specIndex],rowBlocks:t.calcdata.headerRowBlocks,calcdata:n({},t.calcdata,{cells:t.calcdata.headerCells})});return[n({},t,{key:\"cells1\",type:\"cells\",page:0,prevPages:e,currentRepaint:[null,null],dragHandle:!1,values:t.calcdata.cells.values[t.specIndex],rowBlocks:t.calcdata.rowBlocks}),n({},t,{key:\"cells2\",type:\"cells\",page:1,prevPages:e,currentRepaint:[null,null],dragHandle:!1,values:t.calcdata.cells.values[t.specIndex],rowBlocks:t.calcdata.rowBlocks}),r]},r.splitToCells=function(t){var e=function(t){var e=t.rowBlocks[t.page],r=e?e.rows[0].rowIndex:0,n=e?r+e.rows.length:0;return[r,n]}(t);return(t.values||[]).slice(e[0],e[1]).map(function(r,n){return{keyWithinBlock:n+(\"string\"==typeof r&&r.match(/[<$&> ]/)?\"_keybuster_\"+Math.random():\"\"),key:e[0]+n,column:t,calcdata:t.calcdata,page:t.page,rowBlocks:t.rowBlocks,value:r}})}},{\"../../lib/extend\":685}],1141:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"./attributes\"),a=t(\"../../plots/domain\").defaults;e.exports=function(t,e,r,o){function s(r,a){return n.coerce(t,e,i,r,a)}a(e,o,s),s(\"columnwidth\"),s(\"header.values\"),s(\"header.format\"),s(\"header.align\"),s(\"header.prefix\"),s(\"header.suffix\"),s(\"header.height\"),s(\"header.line.width\"),s(\"header.line.color\"),s(\"header.fill.color\"),n.coerceFont(s,\"header.font\",n.extendFlat({},o.font)),function(t,e){for(var r=t.columnorder||[],n=t.header.values.length,i=r.slice(0,n),a=i.slice().sort(function(t,e){return t-e}),o=i.map(function(t){return a.indexOf(t)}),s=o.length;s<n;s++)o.push(s);e(\"columnorder\",o)}(e,s),s(\"cells.values\"),s(\"cells.format\"),s(\"cells.align\"),s(\"cells.prefix\"),s(\"cells.suffix\"),s(\"cells.height\"),s(\"cells.line.width\"),s(\"cells.line.color\"),s(\"cells.fill.color\"),n.coerceFont(s,\"cells.font\",n.extendFlat({},o.font)),e._length=null}},{\"../../lib\":696,\"../../plots/domain\":770,\"./attributes\":1135}],1142:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.supplyDefaults=t(\"./defaults\"),n.calc=t(\"./calc\"),n.plot=t(\"./plot\"),n.moduleType=\"trace\",n.name=\"table\",n.basePlotModule=t(\"./base_plot\"),n.categories=[\"noOpacity\"],n.meta={},e.exports=n},{\"./attributes\":1135,\"./base_plot\":1136,\"./calc\":1137,\"./defaults\":1141,\"./plot\":1143}],1143:[function(t,e,r){\"use strict\";var n=t(\"./constants\"),i=t(\"d3\"),a=t(\"../../lib/gup\"),o=t(\"../../components/drawing\"),s=t(\"../../lib/svg_text_utils\"),l=t(\"../../lib\").raiseToTop,c=t(\"../../lib\").cancelTransition,u=t(\"./data_preparation_helper\"),f=t(\"./data_split_helpers\"),h=t(\"../../components/color\");function p(t){return Math.ceil(t.calcdata.maxLineWidth/2)}function d(t,e){return\"clip\"+t._fullLayout._uid+\"_scrollAreaBottomClip_\"+e.key}function g(t,e){return\"clip\"+t._fullLayout._uid+\"_columnBoundaryClippath_\"+e.calcdata.key+\"_\"+e.specIndex}function v(t){return[].concat.apply([],t.map(function(t){return t})).map(function(t){return t.__data__})}function m(t,e,r){var o=t.selectAll(\".\"+n.cn.scrollbarKit).data(a.repeat,a.keyFun);o.enter().append(\"g\").classed(n.cn.scrollbarKit,!0).style(\"shape-rendering\",\"geometricPrecision\"),o.each(function(t){var e=t.scrollbarState;e.totalHeight=function(t){var e=t.rowBlocks;return I(e,e.length-1)+(e.length?P(e[e.length-1],1/0):1)}(t),e.scrollableAreaHeight=t.groupHeight-A(t),e.currentlyVisibleHeight=Math.min(e.totalHeight,e.scrollableAreaHeight),e.ratio=e.currentlyVisibleHeight/e.totalHeight,e.barLength=Math.max(e.ratio*e.currentlyVisibleHeight,n.goldenRatio*n.scrollbarWidth),e.barWiggleRoom=e.currentlyVisibleHeight-e.barLength,e.wiggleRoom=Math.max(0,e.totalHeight-e.scrollableAreaHeight),e.topY=0===e.barWiggleRoom?0:t.scrollY/e.wiggleRoom*e.barWiggleRoom,e.bottomY=e.topY+e.barLength,e.dragMultiplier=e.wiggleRoom/e.barWiggleRoom}).attr(\"transform\",function(t){return\"translate(\"+(t.width+n.scrollbarWidth/2+n.scrollbarOffset)+\" \"+A(t)+\")\"});var s=o.selectAll(\".\"+n.cn.scrollbar).data(a.repeat,a.keyFun);s.enter().append(\"g\").classed(n.cn.scrollbar,!0);var l=s.selectAll(\".\"+n.cn.scrollbarSlider).data(a.repeat,a.keyFun);l.enter().append(\"g\").classed(n.cn.scrollbarSlider,!0),l.attr(\"transform\",function(t){return\"translate(0 \"+(t.scrollbarState.topY||0)+\")\"});var c=l.selectAll(\".\"+n.cn.scrollbarGlyph).data(a.repeat,a.keyFun);c.enter().append(\"line\").classed(n.cn.scrollbarGlyph,!0).attr(\"stroke\",\"black\").attr(\"stroke-width\",n.scrollbarWidth).attr(\"stroke-linecap\",\"round\").attr(\"y1\",n.scrollbarWidth/2),c.attr(\"y2\",function(t){return t.scrollbarState.barLength-n.scrollbarWidth/2}).attr(\"stroke-opacity\",function(t){return t.columnDragInProgress||!t.scrollbarState.barWiggleRoom||r?0:.4}),c.transition().delay(0).duration(0),c.transition().delay(n.scrollbarHideDelay).duration(n.scrollbarHideDuration).attr(\"stroke-opacity\",0);var u=s.selectAll(\".\"+n.cn.scrollbarCaptureZone).data(a.repeat,a.keyFun);u.enter().append(\"line\").classed(n.cn.scrollbarCaptureZone,!0).attr(\"stroke\",\"white\").attr(\"stroke-opacity\",.01).attr(\"stroke-width\",n.scrollbarCaptureWidth).attr(\"stroke-linecap\",\"butt\").attr(\"y1\",0).on(\"mousedown\",function(r){var n=i.event.y,a=this.getBoundingClientRect(),o=r.scrollbarState,s=n-a.top,l=i.scale.linear().domain([0,o.scrollableAreaHeight]).range([0,o.totalHeight]).clamp(!0);o.topY<=s&&s<=o.bottomY||S(e,t,null,l(s-o.barLength/2))(r)}).call(i.behavior.drag().origin(function(t){return i.event.stopPropagation(),t.scrollbarState.scrollbarScrollInProgress=!0,t}).on(\"drag\",S(e,t)).on(\"dragend\",function(){})),u.attr(\"y2\",function(t){return t.scrollbarState.scrollableAreaHeight}),e._context.staticPlot&&(c.remove(),u.remove())}function y(t,e,r,s){var l=function(t){var e=t.selectAll(\".\"+n.cn.columnCell).data(f.splitToCells,function(t){return t.keyWithinBlock});return e.enter().append(\"g\").classed(n.cn.columnCell,!0),e.exit().remove(),e}(function(t){var e=t.selectAll(\".\"+n.cn.columnCells).data(a.repeat,a.keyFun);return e.enter().append(\"g\").classed(n.cn.columnCells,!0),e.exit().remove(),e}(r));!function(t){t.each(function(t,e){var r=t.calcdata.cells.font,n=t.column.specIndex,i={size:_(r.size,n,e),color:_(r.color,n,e),family:_(r.family,n,e)};t.rowNumber=t.key,t.align=_(t.calcdata.cells.align,n,e),t.cellBorderWidth=_(t.calcdata.cells.line.width,n,e),t.font=i})}(l),function(t){t.attr(\"width\",function(t){return t.column.columnWidth}).attr(\"stroke-width\",function(t){return t.cellBorderWidth}).each(function(t){var e=i.select(this);h.stroke(e,_(t.calcdata.cells.line.color,t.column.specIndex,t.rowNumber)),h.fill(e,_(t.calcdata.cells.fill.color,t.column.specIndex,t.rowNumber))})}(function(t){var e=t.selectAll(\".\"+n.cn.cellRect).data(a.repeat,function(t){return t.keyWithinBlock});return e.enter().append(\"rect\").classed(n.cn.cellRect,!0),e}(l));var c=function(t){var e=t.selectAll(\".\"+n.cn.cellText).data(a.repeat,function(t){return t.keyWithinBlock});return e.enter().append(\"text\").classed(n.cn.cellText,!0).style(\"cursor\",function(){return\"auto\"}).on(\"mousedown\",function(){i.event.stopPropagation()}),e}(function(t){var e=t.selectAll(\".\"+n.cn.cellTextHolder).data(a.repeat,function(t){return t.keyWithinBlock});return e.enter().append(\"g\").classed(n.cn.cellTextHolder,!0).style(\"shape-rendering\",\"geometricPrecision\"),e}(l));!function(t){t.each(function(t){o.font(i.select(this),t.font)})}(c),x(c,e,s,t),O(l)}function x(t,e,r,a){t.text(function(t){var e=t.column.specIndex,r=t.rowNumber,a=t.value,o=\"string\"==typeof a,s=o&&a.match(/<br>/i),l=!o||s;t.mayHaveMarkup=o&&a.match(/[<&>]/);var c,u=\"string\"==typeof(c=a)&&c.match(n.latexCheck);t.latex=u;var f,h,p=u?\"\":_(t.calcdata.cells.prefix,e,r)||\"\",d=u?\"\":_(t.calcdata.cells.suffix,e,r)||\"\",g=u?null:_(t.calcdata.cells.format,e,r)||null,v=p+(g?i.format(g)(t.value):t.value)+d;if(t.wrappingNeeded=!t.wrapped&&!l&&!u&&(f=b(v)),t.cellHeightMayIncrease=s||u||t.mayHaveMarkup||(void 0===f?b(v):f),t.needsConvertToTspans=t.mayHaveMarkup||t.wrappingNeeded||t.latex,t.wrappingNeeded){var m=(\" \"===n.wrapSplitCharacter?v.replace(/<a href=/gi,\"<a_href=\"):v).split(n.wrapSplitCharacter),y=\" \"===n.wrapSplitCharacter?m.map(function(t){return t.replace(/<a_href=/gi,\"<a href=\")}):m;t.fragments=y.map(function(t){return{text:t,width:null}}),t.fragments.push({fragment:n.wrapSpacer,width:null}),h=y.join(n.lineBreaker)+n.lineBreaker+n.wrapSpacer}else delete t.fragments,h=v;return h}).attr(\"dy\",function(t){return t.needsConvertToTspans?0:\"0.75em\"}).each(function(t){var o=i.select(this),l=t.wrappingNeeded?C:L;t.needsConvertToTspans?s.convertToTspans(o,a,l(r,this,e,a,t)):i.select(this.parentNode).attr(\"transform\",function(t){return\"translate(\"+z(t)+\" \"+n.cellPad+\")\"}).attr(\"text-anchor\",function(t){return{left:\"start\",center:\"middle\",right:\"end\"}[t.align]})})}function b(t){return-1!==t.indexOf(n.wrapSplitCharacter)}function _(t,e,r){if(Array.isArray(t)){var n=t[Math.min(e,t.length-1)];return Array.isArray(n)?n[Math.min(r,n.length-1)]:n}return t}function w(t,e,r){t.transition().ease(n.releaseTransitionEase).duration(n.releaseTransitionDuration).attr(\"transform\",\"translate(\"+e.x+\" \"+r+\")\")}function k(t){return\"cells\"===t.type}function M(t){return\"header\"===t.type}function A(t){return(t.rowBlocks.length?t.rowBlocks[0].auxiliaryBlocks:[]).reduce(function(t,e){return t+P(e,1/0)},0)}function T(t,e,r){var n=v(e)[0];if(void 0!==n){var i=n.rowBlocks,a=n.calcdata,o=I(i,i.length),s=n.calcdata.groupHeight-A(n),l=a.scrollY=Math.max(0,Math.min(o-s,a.scrollY)),c=function(t,e,r){for(var n=[],i=0,a=0;a<t.length;a++){for(var o=t[a],s=o.rows,l=0,c=0;c<s.length;c++)l+=s[c].rowHeight;o.allRowsHeight=l,e<i+l&&e+r>i&&n.push(a),i+=l}return n}(i,l,s);1===c.length&&(c[0]===i.length-1?c.unshift(c[0]-1):c.push(c[0]+1)),c[0]%2&&c.reverse(),e.each(function(t,e){t.page=c[e],t.scrollY=l}),e.attr(\"transform\",function(t){return\"translate(0 \"+(I(t.rowBlocks,t.page)-t.scrollY)+\")\"}),t&&(E(t,r,e,c,n.prevPages,n,0),E(t,r,e,c,n.prevPages,n,1),m(r,t))}}function S(t,e,r,a){return function(o){var s=o.calcdata?o.calcdata:o,l=e.filter(function(t){return s.key===t.key}),c=r||s.scrollbarState.dragMultiplier;s.scrollY=void 0===a?s.scrollY+c*i.event.dy:a;var u=l.selectAll(\".\"+n.cn.yColumn).selectAll(\".\"+n.cn.columnBlock).filter(k);T(t,u,l)}}function E(t,e,r,n,i,a,o){n[o]!==i[o]&&(clearTimeout(a.currentRepaint[o]),a.currentRepaint[o]=setTimeout(function(){var a=r.filter(function(t,e){return e===o&&n[e]!==i[e]});y(t,e,a,r),i[o]=n[o]}))}function C(t,e,r,a){return function(){var o=i.select(e.parentNode);o.each(function(t){var e=t.fragments;o.selectAll(\"tspan.line\").each(function(t,r){e[r].width=this.getComputedTextLength()});var r,i,a=e[e.length-1].width,s=e.slice(0,-1),l=[],c=0,u=t.column.columnWidth-2*n.cellPad;for(t.value=\"\";s.length;)c+(i=(r=s.shift()).width+a)>u&&(t.value+=l.join(n.wrapSpacer)+n.lineBreaker,l=[],c=0),l.push(r.text),c+=i;c&&(t.value+=l.join(n.wrapSpacer)),t.wrapped=!0}),o.selectAll(\"tspan.line\").remove(),x(o.select(\".\"+n.cn.cellText),r,t,a),i.select(e.parentNode.parentNode).call(O)}}function L(t,e,r,a,o){return function(){if(!o.settledY){var s=i.select(e.parentNode),l=R(o),c=o.key-l.firstRowIndex,u=l.rows[c].rowHeight,f=o.cellHeightMayIncrease?e.parentNode.getBoundingClientRect().height+2*n.cellPad:u,h=Math.max(f,u);h-l.rows[c].rowHeight&&(l.rows[c].rowHeight=h,t.selectAll(\".\"+n.cn.columnCell).call(O),T(null,t.filter(k),0),m(r,a,!0)),s.attr(\"transform\",function(){var t=this.parentNode.getBoundingClientRect(),e=i.select(this.parentNode).select(\".\"+n.cn.cellRect).node().getBoundingClientRect(),r=this.transform.baseVal.consolidate(),a=e.top-t.top+(r?r.matrix.f:n.cellPad);return\"translate(\"+z(o,i.select(this.parentNode).select(\".\"+n.cn.cellTextHolder).node().getBoundingClientRect().width)+\" \"+a+\")\"}),o.settledY=!0}}}function z(t,e){switch(t.align){case\"left\":return n.cellPad;case\"right\":return t.column.columnWidth-(e||0)-n.cellPad;case\"center\":return(t.column.columnWidth-(e||0))/2;default:return n.cellPad}}function O(t){t.attr(\"transform\",function(t){var e=t.rowBlocks[0].auxiliaryBlocks.reduce(function(t,e){return t+P(e,1/0)},0);return\"translate(0 \"+(P(R(t),t.key)+e)+\")\"}).selectAll(\".\"+n.cn.cellRect).attr(\"height\",function(t){return(e=R(t),r=t.key,e.rows[r-e.firstRowIndex]).rowHeight;var e,r})}function I(t,e){for(var r=0,n=e-1;n>=0;n--)r+=D(t[n]);return r}function P(t,e){for(var r=0,n=0;n<t.rows.length&&t.rows[n].rowIndex<e;n++)r+=t.rows[n].rowHeight;return r}function D(t){var e=t.allRowsHeight;if(void 0!==e)return e;for(var r=0,n=0;n<t.rows.length;n++)r+=t.rows[n].rowHeight;return t.allRowsHeight=r,r}function R(t){return t.rowBlocks[t.page]}e.exports=function(t,e){var r=t._fullLayout._paper.selectAll(\".\"+n.cn.table).data(e.map(function(e){var r=a.unwrap(e).trace;return u(t,r)}),a.keyFun);r.exit().remove(),r.enter().append(\"g\").classed(n.cn.table,!0).attr(\"overflow\",\"visible\").style(\"box-sizing\",\"content-box\").style(\"position\",\"absolute\").style(\"left\",0).style(\"overflow\",\"visible\").style(\"shape-rendering\",\"crispEdges\").style(\"pointer-events\",\"all\"),r.attr(\"width\",function(t){return t.width+t.size.l+t.size.r}).attr(\"height\",function(t){return t.height+t.size.t+t.size.b}).attr(\"transform\",function(t){return\"translate(\"+t.translateX+\",\"+t.translateY+\")\"});var s=r.selectAll(\".\"+n.cn.tableControlView).data(a.repeat,a.keyFun);s.enter().append(\"g\").classed(n.cn.tableControlView,!0).style(\"box-sizing\",\"content-box\").on(\"mousemove\",function(e){s.filter(function(t){return e===t}).call(m,t)}).on(\"mousewheel\",function(e){e.scrollbarState.wheeling||(e.scrollbarState.wheeling=!0,i.event.stopPropagation(),i.event.preventDefault(),S(t,s,null,e.scrollY+i.event.deltaY)(e),e.scrollbarState.wheeling=!1)}).call(m,t,!0),s.attr(\"transform\",function(t){return\"translate(\"+t.size.l+\" \"+t.size.t+\")\"});var h=s.selectAll(\".\"+n.cn.scrollBackground).data(a.repeat,a.keyFun);h.enter().append(\"rect\").classed(n.cn.scrollBackground,!0).attr(\"fill\",\"none\"),h.attr(\"width\",function(t){return t.width}).attr(\"height\",function(t){return t.height}),s.each(function(e){o.setClipUrl(i.select(this),d(t,e))});var x=s.selectAll(\".\"+n.cn.yColumn).data(function(t){return t.columns},a.keyFun);x.enter().append(\"g\").classed(n.cn.yColumn,!0),x.exit().remove(),x.attr(\"transform\",function(t){return\"translate(\"+t.x+\" 0)\"}).call(i.behavior.drag().origin(function(e){return w(i.select(this),e,-n.uplift),l(this),e.calcdata.columnDragInProgress=!0,m(s.filter(function(t){return e.calcdata.key===t.key}),t),e}).on(\"drag\",function(t){var e=i.select(this),r=function(e){return(t===e?i.event.x:e.x)+e.columnWidth/2};t.x=Math.max(-n.overdrag,Math.min(t.calcdata.width+n.overdrag-t.columnWidth,i.event.x)),v(x).filter(function(e){return e.calcdata.key===t.calcdata.key}).sort(function(t,e){return r(t)-r(e)}).forEach(function(e,r){e.xIndex=r,e.x=t===e?e.x:e.xScale(e)}),x.filter(function(e){return t!==e}).transition().ease(n.transitionEase).duration(n.transitionDuration).attr(\"transform\",function(t){return\"translate(\"+t.x+\" 0)\"}),e.call(c).attr(\"transform\",\"translate(\"+t.x+\" -\"+n.uplift+\" )\")}).on(\"dragend\",function(e){var r=i.select(this),n=e.calcdata;e.x=e.xScale(e),e.calcdata.columnDragInProgress=!1,w(r,e,0),function(t,e,r){var n=e.gdColumnsOriginalOrder;e.gdColumns.sort(function(t,e){return r[n.indexOf(t)]-r[n.indexOf(e)]}),e.columnorder=r,t.emit(\"plotly_restyle\")}(t,n,n.columns.map(function(t){return t.xIndex}))})),x.each(function(e){o.setClipUrl(i.select(this),g(t,e))});var b=x.selectAll(\".\"+n.cn.columnBlock).data(f.splitToPanels,a.keyFun);b.enter().append(\"g\").classed(n.cn.columnBlock,!0).attr(\"id\",function(t){return t.key}),b.style(\"cursor\",function(t){return t.dragHandle?\"ew-resize\":t.calcdata.scrollbarState.barWiggleRoom?\"ns-resize\":\"default\"});var _=b.filter(M),A=b.filter(k);A.call(i.behavior.drag().origin(function(t){return i.event.stopPropagation(),t}).on(\"drag\",S(t,s,-1)).on(\"dragend\",function(){})),y(t,s,_,b),y(t,s,A,b);var E=s.selectAll(\".\"+n.cn.scrollAreaClip).data(a.repeat,a.keyFun);E.enter().append(\"clipPath\").classed(n.cn.scrollAreaClip,!0).attr(\"id\",function(e){return d(t,e)});var C=E.selectAll(\".\"+n.cn.scrollAreaClipRect).data(a.repeat,a.keyFun);C.enter().append(\"rect\").classed(n.cn.scrollAreaClipRect,!0).attr(\"x\",-n.overdrag).attr(\"y\",-n.uplift).attr(\"fill\",\"none\"),C.attr(\"width\",function(t){return t.width+2*n.overdrag}).attr(\"height\",function(t){return t.height+n.uplift}),x.selectAll(\".\"+n.cn.columnBoundary).data(a.repeat,a.keyFun).enter().append(\"g\").classed(n.cn.columnBoundary,!0);var L=x.selectAll(\".\"+n.cn.columnBoundaryClippath).data(a.repeat,a.keyFun);L.enter().append(\"clipPath\").classed(n.cn.columnBoundaryClippath,!0),L.attr(\"id\",function(e){return g(t,e)});var z=L.selectAll(\".\"+n.cn.columnBoundaryRect).data(a.repeat,a.keyFun);z.enter().append(\"rect\").classed(n.cn.columnBoundaryRect,!0).attr(\"fill\",\"none\"),z.attr(\"width\",function(t){return t.columnWidth+2*p(t)}).attr(\"height\",function(t){return t.calcdata.height+2*p(t)+n.uplift}).attr(\"x\",function(t){return-p(t)}).attr(\"y\",function(t){return-p(t)}),T(null,A,s)}},{\"../../components/color\":570,\"../../components/drawing\":595,\"../../lib\":696,\"../../lib/gup\":693,\"../../lib/svg_text_utils\":720,\"./constants\":1138,\"./data_preparation_helper\":1139,\"./data_split_helpers\":1140,d3:148}],1144:[function(t,e,r){\"use strict\";var n=t(\"../box/attributes\"),i=t(\"../../lib/extend\").extendFlat;e.exports={y:n.y,x:n.x,x0:n.x0,y0:n.y0,name:n.name,orientation:i({},n.orientation,{}),bandwidth:{valType:\"number\",min:0,editType:\"calc\"},scalegroup:{valType:\"string\",dflt:\"\",editType:\"calc\"},scalemode:{valType:\"enumerated\",values:[\"width\",\"count\"],dflt:\"width\",editType:\"calc\"},spanmode:{valType:\"enumerated\",values:[\"soft\",\"hard\",\"manual\"],dflt:\"soft\",editType:\"calc\"},span:{valType:\"info_array\",items:[{valType:\"any\",editType:\"calc\"},{valType:\"any\",editType:\"calc\"}],editType:\"calc\"},line:{color:{valType:\"color\",editType:\"style\"},width:{valType:\"number\",min:0,dflt:2,editType:\"style\"},editType:\"plot\"},fillcolor:n.fillcolor,points:i({},n.boxpoints,{}),jitter:i({},n.jitter,{}),pointpos:i({},n.pointpos,{}),marker:n.marker,text:n.text,box:{visible:{valType:\"boolean\",dflt:!1,editType:\"plot\"},width:{valType:\"number\",min:0,max:1,dflt:.25,editType:\"plot\"},fillcolor:{valType:\"color\",editType:\"style\"},line:{color:{valType:\"color\",editType:\"style\"},width:{valType:\"number\",min:0,editType:\"style\"},editType:\"style\"},editType:\"plot\"},meanline:{visible:{valType:\"boolean\",dflt:!1,editType:\"plot\"},color:{valType:\"color\",editType:\"style\"},width:{valType:\"number\",min:0,editType:\"style\"},editType:\"plot\"},side:{valType:\"enumerated\",values:[\"both\",\"positive\",\"negative\"],dflt:\"both\",editType:\"plot\"},selected:n.selected,unselected:n.unselected,hoveron:{valType:\"flaglist\",flags:[\"violins\",\"points\",\"kde\"],dflt:\"violins+points+kde\",extras:[\"all\"],editType:\"style\"}}},{\"../../lib/extend\":685,\"../box/attributes\":859}],1145:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../plots/cartesian/axes\"),a=t(\"../box/calc\"),o=t(\"./helpers\"),s=t(\"../../constants/numerical\").BADNUM;function l(t,e,r){var i=e.max-e.min;if(!i)return 1;if(t.bandwidth)return Math.max(t.bandwidth,i/1e4);var a=r.length,o=n.stdev(r,a-1,e.mean);return Math.max(function(t,e,r){return 1.059*Math.min(e,r/1.349)*Math.pow(t,-.2)}(a,o,e.q3-e.q1),i/100)}function c(t,e,r,n){var a,o=t.spanmode,l=t.span||[],c=[e.min,e.max],u=[e.min-2*n,e.max+2*n];function f(n){var i=l[n],a=r.d2c(i,0,t[e.valLetter+\"calendar\"]);return a===s?u[n]:a}var h={type:\"linear\",range:a=\"soft\"===o?u:\"hard\"===o?c:[f(0),f(1)]};return i.setConvert(h),h.cleanRange(),a}e.exports=function(t,e){var r=a(t,e);if(r[0].t.empty)return r;var s=t._fullLayout,u=i.getFromId(t,e[\"h\"===e.orientation?\"xaxis\":\"yaxis\"]),f=s._violinScaleGroupStats,h=e.scalegroup,p=f[h];p||(p=f[h]={maxWidth:0,maxCount:0});for(var d=1/0,g=-1/0,v=0;v<r.length;v++){var m=r[v],y=m.pts.map(o.extractVal),x=m.bandwidth=l(e,m,y),b=m.span=c(e,m,u,x),_=b[1]-b[0],w=Math.ceil(_/(x/3)),k=_/w;if(!isFinite(k)||!isFinite(w))return n.error(\"Something went wrong with computing the violin span\"),r[0].t.empty=!0,r;var M=o.makeKDE(m,e,y);m.density=new Array(w);for(var A=0,T=b[0];T<b[1]+k/2;A++,T+=k){var S=M(T);p.maxWidth=Math.max(p.maxWidth,S),m.density[A]={v:S,t:T}}p.maxCount=Math.max(p.maxCount,y.length),d=Math.min(d,b[0]),g=Math.max(g,b[1])}var E=i.findExtremes(u,[d,g],{padded:!0});return e._extremes[u._id]=E,r[0].t.labels.kde=n._(t,\"kde:\"),r}},{\"../../constants/numerical\":673,\"../../lib\":696,\"../../plots/cartesian/axes\":744,\"../box/calc\":860,\"./helpers\":1148}],1146:[function(t,e,r){\"use strict\";var n=t(\"../box/cross_trace_calc\").setPositionOffset,i=[\"v\",\"h\"];e.exports=function(t,e){for(var r=t.calcdata,a=e.xaxis,o=e.yaxis,s=0;s<i.length;s++){for(var l=i[s],c=\"h\"===l?o:a,u=[],f=0,h=0,p=0;p<r.length;p++){var d=r[p],g=d[0].t,v=d[0].trace;!0!==v.visible||\"violin\"!==v.type||g.empty||v.orientation!==l||v.xaxis!==a._id||v.yaxis!==o._id||(u.push(p),!1!==v.points&&(f=Math.max(f,v.jitter-v.pointpos-1),h=Math.max(h,v.jitter+v.pointpos-1)))}n(\"violin\",t,u,c,[f,h])}}},{\"../box/cross_trace_calc\":861}],1147:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../components/color\"),a=t(\"../box/defaults\"),o=t(\"./attributes\");e.exports=function(t,e,r,s){function l(r,i){return n.coerce(t,e,o,r,i)}function c(r,i){return n.coerce2(t,e,o,r,i)}if(a.handleSampleDefaults(t,e,l,s),!1!==e.visible){l(\"bandwidth\"),l(\"scalegroup\",e.name),l(\"scalemode\"),l(\"side\");var u,f=l(\"span\");Array.isArray(f)&&(u=\"manual\"),l(\"spanmode\",u);var h=l(\"line.color\",(t.marker||{}).color||r),p=l(\"line.width\"),d=l(\"fillcolor\",i.addOpacity(e.line.color,.5));a.handlePointsDefaults(t,e,l,{prefix:\"\"});var g=c(\"box.width\"),v=c(\"box.fillcolor\",d),m=c(\"box.line.color\",h),y=c(\"box.line.width\",p);l(\"box.visible\",Boolean(g||v||m||y))||(e.box={visible:!1});var x=c(\"meanline.color\",h),b=c(\"meanline.width\",p);l(\"meanline.visible\",Boolean(x||b))||(e.meanline={visible:!1})}}},{\"../../components/color\":570,\"../../lib\":696,\"../box/defaults\":862,\"./attributes\":1144}],1148:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=function(t){return 1/Math.sqrt(2*Math.PI)*Math.exp(-.5*t*t)};r.makeKDE=function(t,e,r){var n=r.length,a=i,o=t.bandwidth,s=1/(n*o);return function(t){for(var e=0,i=0;i<n;i++)e+=a((t-r[i])/o);return s*e}},r.getPositionOnKdePath=function(t,e,r){var i,a;\"h\"===e.orientation?(i=\"y\",a=\"x\"):(i=\"x\",a=\"y\");var o=n.findPointOnPath(t.path,r,a,{pathLength:t.pathLength}),s=t.posCenterPx,l=o[i];return[l,\"both\"===e.side?2*s-l:s]},r.getKdeValue=function(t,e,n){var i=t.pts.map(r.extractVal);return r.makeKDE(t,e,i)(n)/t.posDensityScale},r.extractVal=function(t){return t.v}},{\"../../lib\":696}],1149:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../plots/cartesian/axes\"),a=t(\"../box/hover\"),o=t(\"./helpers\");e.exports=function(t,e,r,s,l){var c,u,f=t.cd,h=f[0].trace,p=h.hoveron,d=-1!==p.indexOf(\"violins\"),g=-1!==p.indexOf(\"kde\"),v=[];if(d||g){var m=a.hoverOnBoxes(t,e,r,s);if(d&&(v=v.concat(m)),g&&m.length>0){var y,x,b,_,w,k=t.xa,M=t.ya;\"h\"===h.orientation?(w=e,y=\"y\",b=M,x=\"x\",_=k):(w=r,y=\"x\",b=k,x=\"y\",_=M);var A=f[t.index];if(w>=A.span[0]&&w<=A.span[1]){var T=n.extendFlat({},t),S=_.c2p(w,!0),E=o.getKdeValue(A,h,w),C=o.getPositionOnKdePath(A,h,S),L=b._offset,z=b._length;T[y+\"0\"]=C[0],T[y+\"1\"]=C[1],T[x+\"0\"]=T[x+\"1\"]=S,T[x+\"Label\"]=x+\": \"+i.hoverLabelText(_,w)+\", \"+f[0].t.labels.kde+\" \"+E.toFixed(3),T.spikeDistance=m[0].spikeDistance;var O=y+\"Spike\";T[O]=m[0][O],m[0].spikeDistance=void 0,m[0][O]=void 0,v.push(T),(u={stroke:t.color})[y+\"1\"]=n.constrain(L+C[0],L,L+z),u[y+\"2\"]=n.constrain(L+C[1],L,L+z),u[x+\"1\"]=u[x+\"2\"]=_._offset+S}}}-1!==p.indexOf(\"points\")&&(c=a.hoverOnPoints(t,e,r));var I=l.selectAll(\".violinline-\"+h.uid).data(u?[0]:[]);return I.enter().append(\"line\").classed(\"violinline-\"+h.uid,!0).attr(\"stroke-width\",1.5),I.exit().remove(),I.attr(u),\"closest\"===s?c?[c]:v:c?(v.push(c),v):v}},{\"../../lib\":696,\"../../plots/cartesian/axes\":744,\"../box/hover\":864,\"./helpers\":1148}],1150:[function(t,e,r){\"use strict\";e.exports={attributes:t(\"./attributes\"),layoutAttributes:t(\"./layout_attributes\"),supplyDefaults:t(\"./defaults\"),supplyLayoutDefaults:t(\"./layout_defaults\"),calc:t(\"./calc\"),crossTraceCalc:t(\"./cross_trace_calc\"),plot:t(\"./plot\"),style:t(\"./style\"),styleOnSelect:t(\"../scatter/style\").styleOnSelect,hoverPoints:t(\"./hover\"),selectPoints:t(\"../box/select\"),moduleType:\"trace\",name:\"violin\",basePlotModule:t(\"../../plots/cartesian\"),categories:[\"cartesian\",\"svg\",\"symbols\",\"oriented\",\"box-violin\",\"showLegend\",\"violinLayout\",\"zoomScale\"],meta:{}}},{\"../../plots/cartesian\":756,\"../box/select\":869,\"../scatter/style\":1066,\"./attributes\":1144,\"./calc\":1145,\"./cross_trace_calc\":1146,\"./defaults\":1147,\"./hover\":1149,\"./layout_attributes\":1151,\"./layout_defaults\":1152,\"./plot\":1153,\"./style\":1154}],1151:[function(t,e,r){\"use strict\";var n=t(\"../box/layout_attributes\"),i=t(\"../../lib\").extendFlat;e.exports={violinmode:i({},n.boxmode,{}),violingap:i({},n.boxgap,{}),violingroupgap:i({},n.boxgroupgap,{})}},{\"../../lib\":696,\"../box/layout_attributes\":866}],1152:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"./layout_attributes\"),a=t(\"../box/layout_defaults\");e.exports=function(t,e,r){a._supply(t,e,r,function(r,a){return n.coerce(t,e,i,r,a)},\"violin\")}},{\"../../lib\":696,\"../box/layout_defaults\":867,\"./layout_attributes\":1151}],1153:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../../lib\"),a=t(\"../../components/drawing\"),o=t(\"../box/plot\"),s=t(\"../scatter/line_points\"),l=t(\"./helpers\");e.exports=function(t,e,r,c){var u=t._fullLayout,f=e.xaxis,h=e.yaxis;function p(t){var e=s(t,{xaxis:f,yaxis:h,connectGaps:!0,baseTolerance:.75,shape:\"spline\",simplify:!0});return a.smoothopen(e[0],1)}i.makeTraceGroups(c,r,\"trace violins\").each(function(t){var r=n.select(this),a=t[0],s=a.t,c=a.trace;e.isRangePlot||(a.node3=r);var d=u._numViolins,g=\"group\"===u.violinmode&&d>1,v=1-u.violingap,m=s.bdPos=s.dPos*v*(1-u.violingroupgap)/(g?d:1),y=s.bPos=g?2*s.dPos*((s.num+.5)/d-.5)*v:0;if(s.wHover=s.dPos*(g?v/d:1),!0!==c.visible||s.empty)r.remove();else{var x=e[s.valLetter+\"axis\"],b=e[s.posLetter+\"axis\"],_=\"both\"===c.side,w=_||\"positive\"===c.side,k=_||\"negative\"===c.side,M=u._violinScaleGroupStats[c.scalegroup],A=r.selectAll(\"path.violin\").data(i.identity);A.enter().append(\"path\").style(\"vector-effect\",\"non-scaling-stroke\").attr(\"class\",\"violin\"),A.exit().remove(),A.each(function(t){var e,r,i,a,o,l,u,f,h=n.select(this),d=t.density,g=d.length,v=t.pos+y,A=b.c2p(v);switch(c.scalemode){case\"width\":e=M.maxWidth/m;break;case\"count\":e=M.maxWidth/m*(M.maxCount/t.pts.length)}if(w){for(u=new Array(g),o=0;o<g;o++)(f=u[o]={})[s.posLetter]=v+d[o].v/e,f[s.valLetter]=d[o].t;r=p(u)}if(k){for(u=new Array(g),l=0,o=g-1;l<g;l++,o--)(f=u[l]={})[s.posLetter]=v-d[o].v/e,f[s.valLetter]=d[o].t;i=p(u)}if(_)a=r+\"L\"+i.substr(1)+\"Z\";else{var T=[A,x.c2p(d[0].t)],S=[A,x.c2p(d[g-1].t)];\"h\"===c.orientation&&(T.reverse(),S.reverse()),a=w?\"M\"+T+\"L\"+r.substr(1)+\"L\"+S:\"M\"+S+\"L\"+i.substr(1)+\"L\"+T}h.attr(\"d\",a),t.posCenterPx=A,t.posDensityScale=e*m,t.path=h.node(),t.pathLength=t.path.getTotalLength()/(_?2:1)});var T,S,E,C=c.box,L=C.width,z=(C.line||{}).width;_?(T=m*L,S=0):w?(T=[0,m*L/2],S=-z):(T=[m*L/2,0],S=z),o.plotBoxAndWhiskers(r,{pos:b,val:x},c,{bPos:y,bdPos:T,bPosPxOffset:S}),o.plotBoxMean(r,{pos:b,val:x},c,{bPos:y,bdPos:T,bPosPxOffset:S}),!c.box.visible&&c.meanline.visible&&(E=i.identity);var O=r.selectAll(\"path.meanline\").data(E||[]);O.enter().append(\"path\").attr(\"class\",\"meanline\").style(\"fill\",\"none\").style(\"vector-effect\",\"non-scaling-stroke\"),O.exit().remove(),O.each(function(t){var e=x.c2p(t.mean,!0),r=l.getPositionOnKdePath(t,c,e);n.select(this).attr(\"d\",\"h\"===c.orientation?\"M\"+e+\",\"+r[0]+\"V\"+r[1]:\"M\"+r[0]+\",\"+e+\"H\"+r[1])}),o.plotPoints(r,{x:f,y:h},c,s)}})}},{\"../../components/drawing\":595,\"../../lib\":696,\"../box/plot\":868,\"../scatter/line_points\":1057,\"./helpers\":1148,d3:148}],1154:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../../components/color\"),a=t(\"../scatter/style\").stylePoints;e.exports=function(t,e){var r=e?e[0].node3:n.select(t).selectAll(\"g.trace.violins\");r.style(\"opacity\",function(t){return t[0].trace.opacity}),r.each(function(e){var r=e[0].trace,o=n.select(this),s=r.box||{},l=s.line||{},c=r.meanline||{},u=c.width;o.selectAll(\"path.violin\").style(\"stroke-width\",r.line.width+\"px\").call(i.stroke,r.line.color).call(i.fill,r.fillcolor),o.selectAll(\"path.box\").style(\"stroke-width\",l.width+\"px\").call(i.stroke,l.color).call(i.fill,s.fillcolor);var f={\"stroke-width\":u+\"px\",\"stroke-dasharray\":2*u+\"px,\"+u+\"px\"};o.selectAll(\"path.mean\").style(f).call(i.stroke,c.color),o.selectAll(\"path.meanline\").style(f).call(i.stroke,c.color),a(o,r,t)})}},{\"../../components/color\":570,\"../scatter/style\":1066,d3:148}],1155:[function(t,e,r){\"use strict\";var n=t(\"../plots/cartesian/axes\"),i=t(\"../lib\"),a=t(\"../plot_api/plot_schema\"),o=t(\"./helpers\").pointsAccessorFunction,s=t(\"../constants/numerical\").BADNUM;r.moduleType=\"transform\",r.name=\"aggregate\";var l=r.attributes={enabled:{valType:\"boolean\",dflt:!0,editType:\"calc\"},groups:{valType:\"string\",strict:!0,noBlank:!0,arrayOk:!0,dflt:\"x\",editType:\"calc\"},aggregations:{_isLinkedToArray:\"aggregation\",target:{valType:\"string\",editType:\"calc\"},func:{valType:\"enumerated\",values:[\"count\",\"sum\",\"avg\",\"median\",\"mode\",\"rms\",\"stddev\",\"min\",\"max\",\"first\",\"last\",\"change\",\"range\"],dflt:\"first\",editType:\"calc\"},funcmode:{valType:\"enumerated\",values:[\"sample\",\"population\"],dflt:\"sample\",editType:\"calc\"},enabled:{valType:\"boolean\",dflt:!0,editType:\"calc\"},editType:\"calc\"},editType:\"calc\"},c=l.aggregations;function u(t,e,r,a){if(a.enabled){for(var o=a.target,l=i.nestedProperty(e,o),c=l.get(),u=function(t,e){var r=t.func,n=e.d2c,i=e.c2d;switch(r){case\"count\":return f;case\"first\":return h;case\"last\":return p;case\"sum\":return function(t,e){for(var r=0,a=0;a<e.length;a++){var o=n(t[e[a]]);o!==s&&(r+=o)}return i(r)};case\"avg\":return function(t,e){for(var r=0,a=0,o=0;o<e.length;o++){var l=n(t[e[o]]);l!==s&&(r+=l,a++)}return a?i(r/a):s};case\"min\":return function(t,e){for(var r=1/0,a=0;a<e.length;a++){var o=n(t[e[a]]);o!==s&&(r=Math.min(r,o))}return r===1/0?s:i(r)};case\"max\":return function(t,e){for(var r=-1/0,a=0;a<e.length;a++){var o=n(t[e[a]]);o!==s&&(r=Math.max(r,o))}return r===-1/0?s:i(r)};case\"range\":return function(t,e){for(var r=1/0,a=-1/0,o=0;o<e.length;o++){var l=n(t[e[o]]);l!==s&&(r=Math.min(r,l),a=Math.max(a,l))}return a===-1/0||r===1/0?s:i(a-r)};case\"change\":return function(t,e){var r=n(t[e[0]]),a=n(t[e[e.length-1]]);return r===s||a===s?s:i(a-r)};case\"median\":return function(t,e){for(var r=[],a=0;a<e.length;a++){var o=n(t[e[a]]);o!==s&&r.push(o)}if(!r.length)return s;r.sort();var l=(r.length-1)/2;return i((r[Math.floor(l)]+r[Math.ceil(l)])/2)};case\"mode\":return function(t,e){for(var r={},a=0,o=s,l=0;l<e.length;l++){var c=n(t[e[l]]);if(c!==s){var u=r[c]=(r[c]||0)+1;u>a&&(a=u,o=c)}}return a?i(o):s};case\"rms\":return function(t,e){for(var r=0,a=0,o=0;o<e.length;o++){var l=n(t[e[o]]);l!==s&&(r+=l*l,a++)}return a?i(Math.sqrt(r/a)):s};case\"stddev\":return function(e,r){var i,a=0,o=0,l=1,c=s;for(i=0;i<r.length&&c===s;i++)c=n(e[r[i]]);if(c===s)return s;for(;i<r.length;i++){var u=n(e[r[i]]);if(u!==s){var f=u-c;a+=f,o+=f*f,l++}}var h=\"sample\"===t.funcmode?l-1:l;return h?Math.sqrt((o-a*a/l)/h):0}}}(a,n.getDataConversions(t,e,o,c)),d=new Array(r.length),g=0;g<r.length;g++)d[g]=u(c,r[g]);l.set(d),\"count\"===a.func&&i.pushUnique(e._arrayAttrs,o)}}function f(t,e){return e.length}function h(t,e){return t[e[0]]}function p(t,e){return t[e[e.length-1]]}r.supplyDefaults=function(t,e){var r,n={};function o(e,r){return i.coerce(t,n,l,e,r)}if(!o(\"enabled\"))return n;var s=a.findArrayAttributes(e),u={};for(r=0;r<s.length;r++)u[s[r]]=1;var f=o(\"groups\");if(!Array.isArray(f)){if(!u[f])return n.enabled=!1,n;u[f]=0}var h,p=t.aggregations||[],d=n.aggregations=new Array(p.length);function g(t,e){return i.coerce(p[r],h,c,t,e)}for(r=0;r<p.length;r++){h={_index:r};var v=g(\"target\"),m=g(\"func\");g(\"enabled\")&&v&&(u[v]||\"count\"===m&&void 0===u[v])?(\"stddev\"===m&&g(\"funcmode\"),u[v]=0,d[r]=h):d[r]={enabled:!1,_index:r}}for(r=0;r<s.length;r++)u[s[r]]&&d.push({target:s[r],func:c.func.dflt,enabled:!0,_index:-1});return n},r.calcTransform=function(t,e,r){if(r.enabled){var n=r.groups,a=i.getTargetArray(e,{target:n});if(a){var s,l,c,f,h={},p={},d=[],g=o(e.transforms,r),v=a.length;for(e._length&&(v=Math.min(v,e._length)),s=0;s<v;s++)void 0===(c=h[l=a[s]])?(h[l]=d.length,f=[s],d.push(f),p[h[l]]=g(s)):(d[c].push(s),p[h[l]]=(p[h[l]]||[]).concat(g(s)));r._indexToPoints=p;var m=r.aggregations;for(s=0;s<m.length;s++)u(t,e,d,m[s]);\"string\"==typeof n&&u(t,e,d,{target:n,func:\"first\",enabled:!0}),e._length=d.length}}}},{\"../constants/numerical\":673,\"../lib\":696,\"../plot_api/plot_schema\":733,\"../plots/cartesian/axes\":744,\"./helpers\":1158}],1156:[function(t,e,r){\"use strict\";var n=t(\"../lib\"),i=t(\"../registry\"),a=t(\"../plots/cartesian/axes\"),o=t(\"./helpers\").pointsAccessorFunction,s=t(\"../constants/filter_ops\"),l=s.COMPARISON_OPS,c=s.INTERVAL_OPS,u=s.SET_OPS;r.moduleType=\"transform\",r.name=\"filter\",r.attributes={enabled:{valType:\"boolean\",dflt:!0,editType:\"calc\"},target:{valType:\"string\",strict:!0,noBlank:!0,arrayOk:!0,dflt:\"x\",editType:\"calc\"},operation:{valType:\"enumerated\",values:[].concat(l).concat(c).concat(u),dflt:\"=\",editType:\"calc\"},value:{valType:\"any\",dflt:0,editType:\"calc\"},preservegaps:{valType:\"boolean\",dflt:!1,editType:\"calc\"},editType:\"calc\"},r.supplyDefaults=function(t){var e={};function a(i,a){return n.coerce(t,e,r.attributes,i,a)}if(a(\"enabled\")){a(\"preservegaps\"),a(\"operation\"),a(\"value\"),a(\"target\");var o=i.getComponentMethod(\"calendars\",\"handleDefaults\");o(t,e,\"valuecalendar\",null),o(t,e,\"targetcalendar\",null)}return e},r.calcTransform=function(t,e,r){if(r.enabled){var i=n.getTargetArray(e,r);if(i){var s=r.target,f=i.length;e._length&&(f=Math.min(f,e._length));var h=r.targetcalendar,p=e._arrayAttrs,d=r.preservegaps;if(\"string\"==typeof s){var g=n.nestedProperty(e,s+\"calendar\").get();g&&(h=g)}var v,m,y=function(t,e,r){var n=t.operation,i=t.value,a=Array.isArray(i);function o(t){return-1!==t.indexOf(n)}var s,f=function(r){return e(r,0,t.valuecalendar)},h=function(t){return e(t,0,r)};o(l)?s=f(a?i[0]:i):o(c)?s=a?[f(i[0]),f(i[1])]:[f(i),f(i)]:o(u)&&(s=a?i.map(f):[f(i)]);switch(n){case\"=\":return function(t){return h(t)===s};case\"!=\":return function(t){return h(t)!==s};case\"<\":return function(t){return h(t)<s};case\"<=\":return function(t){return h(t)<=s};case\">\":return function(t){return h(t)>s};case\">=\":return function(t){return h(t)>=s};case\"[]\":return function(t){var e=h(t);return e>=s[0]&&e<=s[1]};case\"()\":return function(t){var e=h(t);return e>s[0]&&e<s[1]};case\"[)\":return function(t){var e=h(t);return e>=s[0]&&e<s[1]};case\"(]\":return function(t){var e=h(t);return e>s[0]&&e<=s[1]};case\"][\":return function(t){var e=h(t);return e<=s[0]||e>=s[1]};case\")(\":return function(t){var e=h(t);return e<s[0]||e>s[1]};case\"](\":return function(t){var e=h(t);return e<=s[0]||e>s[1]};case\")[\":return function(t){var e=h(t);return e<s[0]||e>=s[1]};case\"{}\":return function(t){return-1!==s.indexOf(h(t))};case\"}{\":return function(t){return-1===s.indexOf(h(t))}}}(r,a.getDataToCoordFunc(t,e,s,i),h),x={},b={},_=0;d?(v=function(t){x[t.astr]=n.extendDeep([],t.get()),t.set(new Array(f))},m=function(t,e){var r=x[t.astr][e];t.get()[e]=r}):(v=function(t){x[t.astr]=n.extendDeep([],t.get()),t.set([])},m=function(t,e){var r=x[t.astr][e];t.get().push(r)}),M(v);for(var w=o(e.transforms,r),k=0;k<f;k++){y(i[k])?(M(m,k),b[_++]=w(k)):d&&_++}r._indexToPoints=b,e._length=_}}function M(t,r){for(var i=0;i<p.length;i++){t(n.nestedProperty(e,p[i]),r)}}}},{\"../constants/filter_ops\":669,\"../lib\":696,\"../plots/cartesian/axes\":744,\"../registry\":827,\"./helpers\":1158}],1157:[function(t,e,r){\"use strict\";var n=t(\"../lib\"),i=t(\"../plot_api/plot_schema\"),a=t(\"../plots/plots\"),o=t(\"./helpers\").pointsAccessorFunction;function s(t,e){var r,s,c,u,f,h,p,d,g,v,m=e.transform,y=e.transformIndex,x=t.transforms[y].groups,b=o(t.transforms,m);if(!Array.isArray(x)||0===x.length)return[t];var _=n.filterUnique(x),w=new Array(_.length),k=x.length,M=i.findArrayAttributes(t),A=m.styles||[],T={};for(r=0;r<A.length;r++)T[A[r].target]=A[r].value;m.styles&&(v=n.keyedContainer(m,\"styles\",\"target\",\"value.name\"));var S={},E={};for(r=0;r<_.length;r++){S[h=_[r]]=r,E[h]=0,(p=w[r]=n.extendDeepNoArrays({},t))._group=h,p.updateStyle=l(h,y),p.transforms[y]._indexToPoints={};var C=null;for(v&&(C=v.get(h)),p.name=C||\"\"===C?C:n.templateString(m.nameformat,{trace:t.name,group:h}),d=p.transforms,p.transforms=[],s=0;s<d.length;s++)p.transforms[s]=n.extendDeepNoArrays({},d[s]);for(s=0;s<M.length;s++)n.nestedProperty(p,M[s]).set([])}for(c=0;c<M.length;c++){for(u=M[c],s=0,g=[];s<_.length;s++)g[s]=n.nestedProperty(w[s],u).get();for(f=n.nestedProperty(t,u).get(),s=0;s<k;s++)g[S[x[s]]].push(f[s])}for(s=0;s<k;s++){(p=w[S[x[s]]]).transforms[y]._indexToPoints[E[x[s]]]=b(s),E[x[s]]++}for(r=0;r<_.length;r++)h=_[r],p=w[r],a.clearExpandedTraceDefaultColors(p),p=n.extendDeepNoArrays(p,T[h]||{});return w}function l(t,e){return function(r,i,a){n.keyedContainer(r,\"transforms[\"+e+\"].styles\",\"target\",\"value.\"+i).set(String(t),a)}}r.moduleType=\"transform\",r.name=\"groupby\",r.attributes={enabled:{valType:\"boolean\",dflt:!0,editType:\"calc\"},groups:{valType:\"data_array\",dflt:[],editType:\"calc\"},nameformat:{valType:\"string\",editType:\"calc\"},styles:{_isLinkedToArray:\"style\",target:{valType:\"string\",editType:\"calc\"},value:{valType:\"any\",dflt:{},editType:\"calc\",_compareAsJSON:!0},editType:\"calc\"},editType:\"calc\"},r.supplyDefaults=function(t,e,i){var a,o={};function s(e,i){return n.coerce(t,o,r.attributes,e,i)}if(!s(\"enabled\"))return o;s(\"groups\"),s(\"nameformat\",i._dataLength>1?\"%{group} (%{trace})\":\"%{group}\");var l=t.styles,c=o.styles=[];if(l)for(a=0;a<l.length;a++){var u=c[a]={};n.coerce(l[a],c[a],r.attributes.styles,\"target\");var f=n.coerce(l[a],c[a],r.attributes.styles,\"value\");n.isPlainObject(f)?u.value=n.extendDeep({},f):f&&delete u.value}return o},r.transform=function(t,e){var r,n,i,a=[];for(n=0;n<t.length;n++)for(r=s(t[n],e),i=0;i<r.length;i++)a.push(r[i]);return a}},{\"../lib\":696,\"../plot_api/plot_schema\":733,\"../plots/plots\":808,\"./helpers\":1158}],1158:[function(t,e,r){\"use strict\";r.pointsAccessorFunction=function(t,e){for(var r,n,i=0;i<t.length&&(r=t[i])!==e;i++)r._indexToPoints&&!1!==r.enabled&&(n=r._indexToPoints);return n?function(t){return n[t]}:function(t){return[t]}}},{}],1159:[function(t,e,r){\"use strict\";var n=t(\"../lib\"),i=t(\"../plots/cartesian/axes\"),a=t(\"./helpers\").pointsAccessorFunction;r.moduleType=\"transform\",r.name=\"sort\",r.attributes={enabled:{valType:\"boolean\",dflt:!0,editType:\"calc\"},target:{valType:\"string\",strict:!0,noBlank:!0,arrayOk:!0,dflt:\"x\",editType:\"calc\"},order:{valType:\"enumerated\",values:[\"ascending\",\"descending\"],dflt:\"ascending\",editType:\"calc\"},editType:\"calc\"},r.supplyDefaults=function(t){var e={};function i(i,a){return n.coerce(t,e,r.attributes,i,a)}return i(\"enabled\")&&(i(\"target\"),i(\"order\")),e},r.calcTransform=function(t,e,r){if(r.enabled){var o=n.getTargetArray(e,r);if(o){var s=r.target,l=o.length;e._length&&(l=Math.min(l,e._length));var c,u,f=e._arrayAttrs,h=function(t,e,r,n){var i,a=new Array(n),o=new Array(n);for(i=0;i<n;i++)a[i]={v:e[i],i:i};for(a.sort(function(t,e){switch(t.order){case\"ascending\":return function(t,r){return e(t.v)-e(r.v)};case\"descending\":return function(t,r){return e(r.v)-e(t.v)}}}(t,r)),i=0;i<n;i++)o[i]=a[i].i;return o}(r,o,i.getDataToCoordFunc(t,e,s,o),l),p=a(e.transforms,r),d={};for(c=0;c<f.length;c++){var g=n.nestedProperty(e,f[c]),v=g.get(),m=new Array(l);for(u=0;u<l;u++)m[u]=v[h[u]];g.set(m)}for(u=0;u<l;u++)d[u]=p(h[u]);r._indexToPoints=d,e._length=l}}}},{\"../lib\":696,\"../plots/cartesian/axes\":744,\"./helpers\":1158}]},{},[22])(22)});});require(['plotly'], function(Plotly) {window._Plotly = Plotly;});}</script>" ], "text/vnd.plotly.v1+html": [ "<script type=\"text/javascript\">window.PlotlyConfig = {MathJaxConfig: 'local'};</script><script type=\"text/javascript\">if (window.MathJax) {MathJax.Hub.Config({SVG: {font: \"STIX-Web\"}});}</script><script type='text/javascript'>if(!window._Plotly){define('plotly', function(require, exports, module) {/**\n", "* plotly.js v1.42.5\n", "* Copyright 2012-2018, Plotly, Inc.\n", "* All rights reserved.\n", "* Licensed under the MIT license\n", "*/\n", "!function(t){if(\"object\"==typeof exports&&\"undefined\"!=typeof module)module.exports=t();else if(\"function\"==typeof define&&define.amd)define([],t);else{(\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:this).Plotly=t()}}(function(){return function(){return function t(e,r,n){function i(o,s){if(!r[o]){if(!e[o]){var l=\"function\"==typeof require&&require;if(!s&&l)return l(o,!0);if(a)return a(o,!0);var c=new Error(\"Cannot find module '\"+o+\"'\");throw c.code=\"MODULE_NOT_FOUND\",c}var u=r[o]={exports:{}};e[o][0].call(u.exports,function(t){return i(e[o][1][t]||t)},u,u.exports,t,e,r,n)}return r[o].exports}for(var a=\"function\"==typeof require&&require,o=0;o<n.length;o++)i(n[o]);return i}}()({1:[function(t,e,r){\"use strict\";var n=t(\"../src/lib\"),i={\"X,X div\":\"direction:ltr;font-family:'Open Sans', verdana, arial, sans-serif;margin:0;padding:0;\",\"X input,X button\":\"font-family:'Open Sans', verdana, arial, sans-serif;\",\"X input:focus,X button:focus\":\"outline:none;\",\"X a\":\"text-decoration:none;\",\"X a:hover\":\"text-decoration:none;\",\"X .crisp\":\"shape-rendering:crispEdges;\",\"X .user-select-none\":\"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;\",\"X svg\":\"overflow:hidden;\",\"X svg a\":\"fill:#447adb;\",\"X svg a:hover\":\"fill:#3c6dc5;\",\"X .main-svg\":\"position:absolute;top:0;left:0;pointer-events:none;\",\"X .main-svg .draglayer\":\"pointer-events:all;\",\"X .cursor-default\":\"cursor:default;\",\"X .cursor-pointer\":\"cursor:pointer;\",\"X .cursor-crosshair\":\"cursor:crosshair;\",\"X .cursor-move\":\"cursor:move;\",\"X .cursor-col-resize\":\"cursor:col-resize;\",\"X .cursor-row-resize\":\"cursor:row-resize;\",\"X .cursor-ns-resize\":\"cursor:ns-resize;\",\"X .cursor-ew-resize\":\"cursor:ew-resize;\",\"X .cursor-sw-resize\":\"cursor:sw-resize;\",\"X .cursor-s-resize\":\"cursor:s-resize;\",\"X .cursor-se-resize\":\"cursor:se-resize;\",\"X .cursor-w-resize\":\"cursor:w-resize;\",\"X .cursor-e-resize\":\"cursor:e-resize;\",\"X .cursor-nw-resize\":\"cursor:nw-resize;\",\"X .cursor-n-resize\":\"cursor:n-resize;\",\"X .cursor-ne-resize\":\"cursor:ne-resize;\",\"X .cursor-grab\":\"cursor:-webkit-grab;cursor:grab;\",\"X .modebar\":\"position:absolute;top:2px;right:2px;z-index:1001;\",\"X .modebar--hover\":\"opacity:0;-webkit-transition:opacity 0.3s ease 0s;-moz-transition:opacity 0.3s ease 0s;-ms-transition:opacity 0.3s ease 0s;-o-transition:opacity 0.3s ease 0s;transition:opacity 0.3s ease 0s;\",\"X:hover .modebar--hover\":\"opacity:1;\",\"X .modebar-group\":\"float:left;display:inline-block;box-sizing:border-box;margin-left:8px;position:relative;vertical-align:middle;white-space:nowrap;\",\"X .modebar-btn\":\"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;\",\"X .modebar-btn svg\":\"position:relative;top:2px;\",\"X .modebar.vertical\":\"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;\",\"X .modebar.vertical svg\":\"top:-1px;\",\"X .modebar.vertical .modebar-group\":\"display:block;float:none;margin-left:0px;margin-bottom:8px;\",\"X .modebar.vertical .modebar-group .modebar-btn\":\"display:block;text-align:center;\",\"X [data-title]:before,X [data-title]:after\":\"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;\",\"X [data-title]:hover:before,X [data-title]:hover:after\":\"display:block;opacity:1;\",\"X [data-title]:before\":\"content:'';position:absolute;background:transparent;border:6px solid transparent;z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;\",\"X [data-title]:after\":\"content:attr(data-title);background:#69738a;color:white;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;\",\"X .vertical [data-title]:before,X .vertical [data-title]:after\":\"top:0%;right:200%;\",\"X .vertical [data-title]:before\":\"border:6px solid transparent;border-left-color:#69738a;margin-top:8px;margin-right:-30px;\",\"X .select-outline\":\"fill:none;stroke-width:1;shape-rendering:crispEdges;\",\"X .select-outline-1\":\"stroke:white;\",\"X .select-outline-2\":\"stroke:black;stroke-dasharray:2px 2px;\",Y:\"font-family:'Open Sans';position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;\",\"Y p\":\"margin:0;\",\"Y .notifier-note\":\"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,0.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;\",\"Y .notifier-close\":\"color:#fff;opacity:0.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;\",\"Y .notifier-close:hover\":\"color:#444;text-decoration:none;cursor:pointer;\"};for(var a in i){var o=a.replace(/^,/,\" ,\").replace(/X/g,\".js-plotly-plot .plotly\").replace(/Y/g,\".plotly-notifier\");n.addStyleRule(o,i[a])}},{\"../src/lib\":696}],2:[function(t,e,r){\"use strict\";e.exports={undo:{width:857.1,height:1e3,path:\"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z\",transform:\"matrix(1 0 0 -1 0 850)\"},home:{width:928.6,height:1e3,path:\"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z\",transform:\"matrix(1 0 0 -1 0 850)\"},\"camera-retro\":{width:1e3,height:1e3,path:\"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z\",transform:\"matrix(1 0 0 -1 0 850)\"},zoombox:{width:1e3,height:1e3,path:\"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z\",transform:\"matrix(1 0 0 -1 0 850)\"},pan:{width:1e3,height:1e3,path:\"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z\",transform:\"matrix(1 0 0 -1 0 850)\"},zoom_plus:{width:875,height:1e3,path:\"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z\",transform:\"matrix(1 0 0 -1 0 850)\"},zoom_minus:{width:875,height:1e3,path:\"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z\",transform:\"matrix(1 0 0 -1 0 850)\"},autoscale:{width:1e3,height:1e3,path:\"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z\",transform:\"matrix(1 0 0 -1 0 850)\"},tooltip_basic:{width:1500,height:1e3,path:\"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z\",transform:\"matrix(1 0 0 -1 0 850)\"},tooltip_compare:{width:1125,height:1e3,path:\"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z\",transform:\"matrix(1 0 0 -1 0 850)\"},plotlylogo:{width:1542,height:1e3,path:\"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z\",transform:\"matrix(1 0 0 -1 0 850)\"},\"z-axis\":{width:1e3,height:1e3,path:\"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z\",transform:\"matrix(1 0 0 -1 0 850)\"},\"3d_rotate\":{width:1e3,height:1e3,path:\"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z\",transform:\"matrix(1 0 0 -1 0 850)\"},camera:{width:1e3,height:1e3,path:\"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z\",transform:\"matrix(1 0 0 -1 0 850)\"},movie:{width:1e3,height:1e3,path:\"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z\",transform:\"matrix(1 0 0 -1 0 850)\"},question:{width:857.1,height:1e3,path:\"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z\",transform:\"matrix(1 0 0 -1 0 850)\"},disk:{width:857.1,height:1e3,path:\"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z\",transform:\"matrix(1 0 0 -1 0 850)\"},lasso:{width:1031,height:1e3,path:\"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z\",transform:\"matrix(1 0 0 -1 0 850)\"},selectbox:{width:1e3,height:1e3,path:\"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z\",transform:\"matrix(1 0 0 -1 0 850)\"},spikeline:{width:1e3,height:1e3,path:\"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z\",transform:\"matrix(1.5 0 0 -1.5 0 850)\"},newplotlylogo:{name:\"newplotlylogo\",svg:\"<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 132 132'><defs><style>.cls-1 {fill: #119dff;} .cls-2 {fill: #25fefd;} .cls-3 {fill: #fff;}</style></defs><title>plotly-logomark</title><g id='symbol'><rect class='cls-1' width='132' height='132' rx='6' ry='6'/><circle class='cls-2' cx='78' cy='54' r='6'/><circle class='cls-2' cx='102' cy='30' r='6'/><circle class='cls-2' cx='78' cy='30' r='6'/><circle class='cls-2' cx='54' cy='30' r='6'/><circle class='cls-2' cx='30' cy='30' r='6'/><circle class='cls-2' cx='30' cy='54' r='6'/><path class='cls-3' d='M30,72a6,6,0,0,0-6,6v24a6,6,0,0,0,12,0V78A6,6,0,0,0,30,72Z'/><path class='cls-3' d='M78,72a6,6,0,0,0-6,6v24a6,6,0,0,0,12,0V78A6,6,0,0,0,78,72Z'/><path class='cls-3' d='M54,48a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V54A6,6,0,0,0,54,48Z'/><path class='cls-3' d='M102,48a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V54A6,6,0,0,0,102,48Z'/></g></svg>\"}}},{}],3:[function(t,e,r){\"use strict\";e.exports=t(\"../src/transforms/aggregate\")},{\"../src/transforms/aggregate\":1155}],4:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/bar\")},{\"../src/traces/bar\":843}],5:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/barpolar\")},{\"../src/traces/barpolar\":855}],6:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/box\")},{\"../src/traces/box\":865}],7:[function(t,e,r){\"use strict\";e.exports=t(\"../src/components/calendars\")},{\"../src/components/calendars\":568}],8:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/candlestick\")},{\"../src/traces/candlestick\":874}],9:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/carpet\")},{\"../src/traces/carpet\":893}],10:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/choropleth\")},{\"../src/traces/choropleth\":907}],11:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/cone\")},{\"../src/traces/cone\":915}],12:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/contour\")},{\"../src/traces/contour\":930}],13:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/contourcarpet\")},{\"../src/traces/contourcarpet\":941}],14:[function(t,e,r){\"use strict\";e.exports=t(\"../src/core\")},{\"../src/core\":675}],15:[function(t,e,r){\"use strict\";e.exports=t(\"../src/transforms/filter\")},{\"../src/transforms/filter\":1156}],16:[function(t,e,r){\"use strict\";e.exports=t(\"../src/transforms/groupby\")},{\"../src/transforms/groupby\":1157}],17:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/heatmap\")},{\"../src/traces/heatmap\":953}],18:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/heatmapgl\")},{\"../src/traces/heatmapgl\":963}],19:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/histogram\")},{\"../src/traces/histogram\":974}],20:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/histogram2d\")},{\"../src/traces/histogram2d\":981}],21:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/histogram2dcontour\")},{\"../src/traces/histogram2dcontour\":985}],22:[function(t,e,r){\"use strict\";var n=t(\"./core\");n.register([t(\"./bar\"),t(\"./box\"),t(\"./heatmap\"),t(\"./histogram\"),t(\"./histogram2d\"),t(\"./histogram2dcontour\"),t(\"./pie\"),t(\"./contour\"),t(\"./scatterternary\"),t(\"./violin\"),t(\"./scatter3d\"),t(\"./surface\"),t(\"./mesh3d\"),t(\"./cone\"),t(\"./streamtube\"),t(\"./scattergeo\"),t(\"./choropleth\"),t(\"./scattergl\"),t(\"./splom\"),t(\"./pointcloud\"),t(\"./heatmapgl\"),t(\"./parcoords\"),t(\"./parcats\"),t(\"./scattermapbox\"),t(\"./sankey\"),t(\"./table\"),t(\"./carpet\"),t(\"./scattercarpet\"),t(\"./contourcarpet\"),t(\"./ohlc\"),t(\"./candlestick\"),t(\"./scatterpolar\"),t(\"./scatterpolargl\"),t(\"./barpolar\")]),n.register([t(\"./aggregate\"),t(\"./filter\"),t(\"./groupby\"),t(\"./sort\")]),n.register([t(\"./calendars\")]),e.exports=n},{\"./aggregate\":3,\"./bar\":4,\"./barpolar\":5,\"./box\":6,\"./calendars\":7,\"./candlestick\":8,\"./carpet\":9,\"./choropleth\":10,\"./cone\":11,\"./contour\":12,\"./contourcarpet\":13,\"./core\":14,\"./filter\":15,\"./groupby\":16,\"./heatmap\":17,\"./heatmapgl\":18,\"./histogram\":19,\"./histogram2d\":20,\"./histogram2dcontour\":21,\"./mesh3d\":23,\"./ohlc\":24,\"./parcats\":25,\"./parcoords\":26,\"./pie\":27,\"./pointcloud\":28,\"./sankey\":29,\"./scatter3d\":30,\"./scattercarpet\":31,\"./scattergeo\":32,\"./scattergl\":33,\"./scattermapbox\":34,\"./scatterpolar\":35,\"./scatterpolargl\":36,\"./scatterternary\":37,\"./sort\":38,\"./splom\":39,\"./streamtube\":40,\"./surface\":41,\"./table\":42,\"./violin\":43}],23:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/mesh3d\")},{\"../src/traces/mesh3d\":990}],24:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/ohlc\")},{\"../src/traces/ohlc\":995}],25:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/parcats\")},{\"../src/traces/parcats\":1004}],26:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/parcoords\")},{\"../src/traces/parcoords\":1013}],27:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/pie\")},{\"../src/traces/pie\":1024}],28:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/pointcloud\")},{\"../src/traces/pointcloud\":1033}],29:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/sankey\")},{\"../src/traces/sankey\":1039}],30:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/scatter3d\")},{\"../src/traces/scatter3d\":1075}],31:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/scattercarpet\")},{\"../src/traces/scattercarpet\":1081}],32:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/scattergeo\")},{\"../src/traces/scattergeo\":1088}],33:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/scattergl\")},{\"../src/traces/scattergl\":1096}],34:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/scattermapbox\")},{\"../src/traces/scattermapbox\":1102}],35:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/scatterpolar\")},{\"../src/traces/scatterpolar\":1109}],36:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/scatterpolargl\")},{\"../src/traces/scatterpolargl\":1113}],37:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/scatterternary\")},{\"../src/traces/scatterternary\":1119}],38:[function(t,e,r){\"use strict\";e.exports=t(\"../src/transforms/sort\")},{\"../src/transforms/sort\":1159}],39:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/splom\")},{\"../src/traces/splom\":1124}],40:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/streamtube\")},{\"../src/traces/streamtube\":1129}],41:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/surface\")},{\"../src/traces/surface\":1134}],42:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/table\")},{\"../src/traces/table\":1142}],43:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/violin\")},{\"../src/traces/violin\":1150}],44:[function(t,e,r){\"use strict\";e.exports=function(t,e){t=t||document.body,e=e||{};var r=[.01,1/0];\"distanceLimits\"in e&&(r[0]=e.distanceLimits[0],r[1]=e.distanceLimits[1]);\"zoomMin\"in e&&(r[0]=e.zoomMin);\"zoomMax\"in e&&(r[1]=e.zoomMax);var c=i({center:e.center||[0,0,0],up:e.up||[0,1,0],eye:e.eye||[0,0,10],mode:e.mode||\"orbit\",distanceLimits:r}),u=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],f=0,h=t.clientWidth,p=t.clientHeight,d={view:c,element:t,delay:e.delay||16,rotateSpeed:e.rotateSpeed||1,zoomSpeed:e.zoomSpeed||1,translateSpeed:e.translateSpeed||1,flipX:!!e.flipX,flipY:!!e.flipY,modes:c.modes,tick:function(){var e=n(),r=this.delay;c.idle(e-r),c.flush(e-(100+2*r));var i=e-2*r;c.recalcMatrix(i);for(var a=!0,o=c.computedMatrix,s=0;s<16;++s)a=a&&u[s]===o[s],u[s]=o[s];var l=t.clientWidth===h&&t.clientHeight===p;return h=t.clientWidth,p=t.clientHeight,a?!l:(f=Math.exp(c.computedRadius[0]),!0)},lookAt:function(t,e,r){c.lookAt(c.lastT(),t,e,r)},rotate:function(t,e,r){c.rotate(c.lastT(),t,e,r)},pan:function(t,e,r){c.pan(c.lastT(),t,e,r)},translate:function(t,e,r){c.translate(c.lastT(),t,e,r)}};Object.defineProperties(d,{matrix:{get:function(){return c.computedMatrix},set:function(t){return c.setMatrix(c.lastT(),t),c.computedMatrix},enumerable:!0},mode:{get:function(){return c.getMode()},set:function(t){return c.setMode(t),c.getMode()},enumerable:!0},center:{get:function(){return c.computedCenter},set:function(t){return c.lookAt(c.lastT(),t),c.computedCenter},enumerable:!0},eye:{get:function(){return c.computedEye},set:function(t){return c.lookAt(c.lastT(),null,t),c.computedEye},enumerable:!0},up:{get:function(){return c.computedUp},set:function(t){return c.lookAt(c.lastT(),null,null,t),c.computedUp},enumerable:!0},distance:{get:function(){return f},set:function(t){return c.setDistance(c.lastT(),t),t},enumerable:!0},distanceLimits:{get:function(){return c.getDistanceLimits(r)},set:function(t){return c.setDistanceLimits(t),t},enumerable:!0}}),t.addEventListener(\"contextmenu\",function(t){return t.preventDefault(),!1});var g=0,v=0,m={shift:!1,control:!1,alt:!1,meta:!1};function y(e,r,i,a){var o=1/t.clientHeight,s=o*(r-g),l=o*(i-v),u=d.flipX?1:-1,h=d.flipY?1:-1,p=Math.PI*d.rotateSpeed,y=n();if(1&e)a.shift?c.rotate(y,0,0,-s*p):c.rotate(y,u*p*s,-h*p*l,0);else if(2&e)c.pan(y,-d.translateSpeed*s*f,d.translateSpeed*l*f,0);else if(4&e){var x=d.zoomSpeed*l/window.innerHeight*(y-c.lastT())*50;c.pan(y,0,0,f*(Math.exp(x)-1))}g=r,v=i,m=a}return a(t,y),t.addEventListener(\"touchstart\",function(e){var r=s(e.changedTouches[0],t);y(0,r[0],r[1],m),y(1,r[0],r[1],m),e.preventDefault()},!!l&&{passive:!1}),t.addEventListener(\"touchmove\",function(e){var r=s(e.changedTouches[0],t);y(1,r[0],r[1],m),e.preventDefault()},!!l&&{passive:!1}),t.addEventListener(\"touchend\",function(e){s(e.changedTouches[0],t),y(0,g,v,m),e.preventDefault()},!!l&&{passive:!1}),o(t,function(t,e,r){var i=d.flipX?1:-1,a=d.flipY?1:-1,o=n();if(Math.abs(t)>Math.abs(e))c.rotate(o,0,0,-t*i*Math.PI*d.rotateSpeed/window.innerWidth);else{var s=d.zoomSpeed*a*e/window.innerHeight*(o-c.lastT())/100;c.pan(o,0,0,f*(Math.exp(s)-1))}},!0),d};var n=t(\"right-now\"),i=t(\"3d-view\"),a=t(\"mouse-change\"),o=t(\"mouse-wheel\"),s=t(\"mouse-event-offset\"),l=t(\"has-passive-events\")},{\"3d-view\":45,\"has-passive-events\":394,\"mouse-change\":418,\"mouse-event-offset\":419,\"mouse-wheel\":421,\"right-now\":480}],45:[function(t,e,r){\"use strict\";e.exports=function(t){var e=(t=t||{}).eye||[0,0,1],r=t.center||[0,0,0],s=t.up||[0,1,0],l=t.distanceLimits||[0,1/0],c=t.mode||\"turntable\",u=n(),f=i(),h=a();return u.setDistanceLimits(l[0],l[1]),u.lookAt(0,e,r,s),f.setDistanceLimits(l[0],l[1]),f.lookAt(0,e,r,s),h.setDistanceLimits(l[0],l[1]),h.lookAt(0,e,r,s),new o({turntable:u,orbit:f,matrix:h},c)};var n=t(\"turntable-camera-controller\"),i=t(\"orbit-camera-controller\"),a=t(\"matrix-camera-controller\");function o(t,e){this._controllerNames=Object.keys(t),this._controllerList=this._controllerNames.map(function(e){return t[e]}),this._mode=e,this._active=t[e],this._active||(this._mode=\"turntable\",this._active=t.turntable),this.modes=this._controllerNames,this.computedMatrix=this._active.computedMatrix,this.computedEye=this._active.computedEye,this.computedUp=this._active.computedUp,this.computedCenter=this._active.computedCenter,this.computedRadius=this._active.computedRadius}var s=o.prototype;[[\"flush\",1],[\"idle\",1],[\"lookAt\",4],[\"rotate\",4],[\"pan\",4],[\"translate\",4],[\"setMatrix\",2],[\"setDistanceLimits\",2],[\"setDistance\",2]].forEach(function(t){for(var e=t[0],r=[],n=0;n<t[1];++n)r.push(\"a\"+n);var i=\"var cc=this._controllerList;for(var i=0;i<cc.length;++i){cc[i].\"+t[0]+\"(\"+r.join()+\")}\";s[e]=Function.apply(null,r.concat(i))}),s.recalcMatrix=function(t){this._active.recalcMatrix(t)},s.getDistance=function(t){return this._active.getDistance(t)},s.getDistanceLimits=function(t){return this._active.getDistanceLimits(t)},s.lastT=function(){return this._active.lastT()},s.setMode=function(t){if(t!==this._mode){var e=this._controllerNames.indexOf(t);if(!(e<0)){var r=this._active,n=this._controllerList[e],i=Math.max(r.lastT(),n.lastT());r.recalcMatrix(i),n.setMatrix(i,r.computedMatrix),this._active=n,this._mode=t,this.computedMatrix=this._active.computedMatrix,this.computedEye=this._active.computedEye,this.computedUp=this._active.computedUp,this.computedCenter=this._active.computedCenter,this.computedRadius=this._active.computedRadius}}},s.getMode=function(){return this._mode}},{\"matrix-camera-controller\":416,\"orbit-camera-controller\":439,\"turntable-camera-controller\":519}],46:[function(t,e,r){var n,i;n=this,i=function(t,e,r,n){\"use strict\";t.sankey=function(){var t={},i=24,a=8,o=[1,1],s=[],l=[],c=2/3;function u(){function t(t,e){return t.source.y-e.source.y||t.originalIndex-e.originalIndex}function e(t,e){return t.target.y-e.target.y||t.originalIndex-e.originalIndex}s.forEach(function(r){r.sourceLinks.sort(e),r.targetLinks.sort(t)}),s.forEach(function(t){var e=0,r=0;t.sourceLinks.forEach(function(t){t.sy=e,e+=t.dy}),t.targetLinks.forEach(function(t){t.ty=r,r+=t.dy})})}function f(t){return t.y+t.dy/2}function h(t){return t.value}return t.nodeWidth=function(e){return arguments.length?(i=+e,t):i},t.nodePadding=function(e){return arguments.length?(a=+e,t):a},t.nodes=function(e){return arguments.length?(s=e,t):s},t.links=function(e){return arguments.length?(l=e,t):l},t.size=function(e){return arguments.length?(o=e,t):o},t.layout=function(n){return s.forEach(function(t){t.sourceLinks=[],t.targetLinks=[]}),l.forEach(function(t,e){var r=t.source,n=t.target;\"number\"==typeof r&&(r=t.source=s[t.source]),\"number\"==typeof n&&(n=t.target=s[t.target]),t.originalIndex=e,r.sourceLinks.push(t),n.targetLinks.push(t)}),s.forEach(function(t){t.value=Math.max(e.sum(t.sourceLinks,h),e.sum(t.targetLinks,h))}),function(){for(var t,e,r=s,n=0;r.length;)t=[],r.forEach(function(e){e.x=n,e.dx=i,e.sourceLinks.forEach(function(e){t.indexOf(e.target)<0&&t.push(e.target)})}),r=t,++n;(function(t){s.forEach(function(e){e.sourceLinks.length||(e.x=t-1)})})(n),e=(o[0]-i)/(n-1),s.forEach(function(t){t.x*=e})}(),function(t){var n=r.nest().key(function(t){return t.x}).sortKeys(e.ascending).entries(s).map(function(t){return t.values});(function(){var t=e.max(n,function(t){return t.length}),r=c*o[1]/(t-1);a>r&&(a=r);var i=e.min(n,function(t){return(o[1]-(t.length-1)*a)/e.sum(t,h)});n.forEach(function(t){t.forEach(function(t,e){t.y=e,t.dy=t.value*i})}),l.forEach(function(t){t.dy=t.value*i})})(),d();for(var i=1;t>0;--t)p(i*=.99),d(),u(i),d();function u(t){function r(t){return f(t.source)*t.value}n.forEach(function(n){n.forEach(function(n){if(n.targetLinks.length){var i=e.sum(n.targetLinks,r)/e.sum(n.targetLinks,h);n.y+=(i-f(n))*t}})})}function p(t){function r(t){return f(t.target)*t.value}n.slice().reverse().forEach(function(n){n.forEach(function(n){if(n.sourceLinks.length){var i=e.sum(n.sourceLinks,r)/e.sum(n.sourceLinks,h);n.y+=(i-f(n))*t}})})}function d(){n.forEach(function(t){var e,r,n,i=0,s=t.length;for(t.sort(g),n=0;n<s;++n)e=t[n],(r=i-e.y)>0&&(e.y+=r),i=e.y+e.dy+a;if((r=i-a-o[1])>0)for(i=e.y-=r,n=s-2;n>=0;--n)e=t[n],(r=e.y+e.dy+a-i)>0&&(e.y-=r),i=e.y})}function g(t,e){return t.y-e.y}}(n),u(),t},t.relayout=function(){return u(),t},t.link=function(){var t=.5;function e(e){var r=e.source.x+e.source.dx,i=e.target.x,a=n.interpolateNumber(r,i),o=a(t),s=a(1-t),l=e.source.y+e.sy,c=l+e.dy,u=e.target.y+e.ty,f=u+e.dy;return\"M\"+r+\",\"+l+\"C\"+o+\",\"+l+\" \"+s+\",\"+u+\" \"+i+\",\"+u+\"L\"+i+\",\"+f+\"C\"+s+\",\"+f+\" \"+o+\",\"+c+\" \"+r+\",\"+c+\"Z\"}return e.curvature=function(r){return arguments.length?(t=+r,e):t},e},t},Object.defineProperty(t,\"__esModule\",{value:!0})},\"object\"==typeof r&&\"undefined\"!=typeof e?i(r,t(\"d3-array\"),t(\"d3-collection\"),t(\"d3-interpolate\")):i(n.d3=n.d3||{},n.d3,n.d3,n.d3)},{\"d3-array\":140,\"d3-collection\":141,\"d3-interpolate\":145}],47:[function(t,e,r){\"use strict\";var n=\"undefined\"==typeof WeakMap?t(\"weak-map\"):WeakMap,i=t(\"gl-buffer\"),a=t(\"gl-vao\"),o=new n;e.exports=function(t){var e=o.get(t),r=e&&(e._triangleBuffer.handle||e._triangleBuffer.buffer);if(!r||!t.isBuffer(r)){var n=i(t,new Float32Array([-1,-1,-1,4,4,-1]));(e=a(t,[{buffer:n,type:t.FLOAT,size:2}]))._triangleBuffer=n,o.set(t,e)}e.bind(),t.drawArrays(t.TRIANGLES,0,3),e.unbind()}},{\"gl-buffer\":230,\"gl-vao\":310,\"weak-map\":529}],48:[function(t,e,r){e.exports=function(t){var e=0,r=0,n=0,i=0;return t.map(function(t){var a=(t=t.slice())[0],o=a.toUpperCase();if(a!=o)switch(t[0]=o,a){case\"a\":t[6]+=n,t[7]+=i;break;case\"v\":t[1]+=i;break;case\"h\":t[1]+=n;break;default:for(var s=1;s<t.length;)t[s++]+=n,t[s++]+=i}switch(o){case\"Z\":n=e,i=r;break;case\"H\":n=t[1];break;case\"V\":i=t[1];break;case\"M\":n=e=t[1],i=r=t[2];break;default:n=t[t.length-2],i=t[t.length-1]}return t})}},{}],49:[function(t,e,r){var n=t(\"pad-left\");e.exports=function(t,e,r){e=\"number\"==typeof e?e:1,r=r||\": \";var i=t.split(/\\r?\\n/),a=String(i.length+e-1).length;return i.map(function(t,i){var o=i+e,s=String(o).length,l=n(o,a-s);return l+r+t}).join(\"\\n\")}},{\"pad-left\":440}],50:[function(t,e,r){\"use strict\";e.exports=function(t){var e=t.length;if(0===e)return[];if(1===e)return[0];for(var r=t[0].length,n=[t[0]],a=[0],o=1;o<e;++o)if(n.push(t[o]),i(n,r)){if(a.push(o),a.length===r+1)return a}else n.pop();return a};var n=t(\"robust-orientation\");function i(t,e){for(var r=new Array(e+1),i=0;i<t.length;++i)r[i]=t[i];for(i=0;i<=t.length;++i){for(var a=t.length;a<=e;++a){for(var o=new Array(e),s=0;s<e;++s)o[s]=Math.pow(a+1-i,s);r[a]=o}if(n.apply(void 0,r))return!0}return!1}},{\"robust-orientation\":486}],51:[function(t,e,r){\"use strict\";e.exports=function(t,e){return n(e).filter(function(r){for(var n=new Array(r.length),a=0;a<r.length;++a)n[a]=e[r[a]];return i(n)*t<1})};var n=t(\"delaunay-triangulate\"),i=t(\"circumradius\")},{circumradius:102,\"delaunay-triangulate\":150}],52:[function(t,e,r){e.exports=function(t,e){return i(n(t,e))};var n=t(\"alpha-complex\"),i=t(\"simplicial-complex-boundary\")},{\"alpha-complex\":51,\"simplicial-complex-boundary\":493}],53:[function(t,e,r){\"use strict\";e.exports=function(t,e){if(!t||null==t.length)throw Error(\"Argument should be an array\");e=null==e?1:Math.floor(e);for(var r=Array(2*e),n=0;n<e;n++){for(var i=-1/0,a=1/0,o=n,s=t.length;o<s;o+=e)t[o]>i&&(i=t[o]),t[o]<a&&(a=t[o]);r[n]=a,r[e+n]=i}return r}},{}],54:[function(t,e,r){\"use strict\";var n=t(\"array-bounds\");e.exports=function(t,e,r){if(!t||null==t.length)throw Error(\"Argument should be an array\");null==e&&(e=1);null==r&&(r=n(t,e));for(var i=0;i<e;i++){var a=r[e+i],o=r[i],s=i,l=t.length;if(a===1/0&&o===-1/0)for(s=i;s<l;s+=e)t[s]=t[s]===a?1:t[s]===o?0:.5;else if(a===1/0)for(s=i;s<l;s+=e)t[s]=t[s]===a?1:0;else if(o===-1/0)for(s=i;s<l;s+=e)t[s]=t[s]===o?0:1;else{var c=a-o;for(s=i;s<l;s+=e)t[s]=0===c?.5:(t[s]-o)/c}}return t}},{\"array-bounds\":53}],55:[function(t,e,r){e.exports=function(t,e){var r=\"number\"==typeof t,n=\"number\"==typeof e;r&&!n?(e=t,t=0):r||n||(t=0,e=0);var i=(e|=0)-(t|=0);if(i<0)throw new Error(\"array length must be positive\");for(var a=new Array(i),o=0,s=t;o<i;o++,s++)a[o]=s;return a}},{}],56:[function(t,e,r){(function(r){\"use strict\";function n(t,e){if(t===e)return 0;for(var r=t.length,n=e.length,i=0,a=Math.min(r,n);i<a;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0}function i(t){return r.Buffer&&\"function\"==typeof r.Buffer.isBuffer?r.Buffer.isBuffer(t):!(null==t||!t._isBuffer)}var a=t(\"util/\"),o=Object.prototype.hasOwnProperty,s=Array.prototype.slice,l=\"foo\"===function(){}.name;function c(t){return Object.prototype.toString.call(t)}function u(t){return!i(t)&&(\"function\"==typeof r.ArrayBuffer&&(\"function\"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):!!t&&(t instanceof DataView||!!(t.buffer&&t.buffer instanceof ArrayBuffer))))}var f=e.exports=m,h=/\\s*function\\s+([^\\(\\s]*)\\s*/;function p(t){if(a.isFunction(t)){if(l)return t.name;var e=t.toString().match(h);return e&&e[1]}}function d(t,e){return\"string\"==typeof t?t.length<e?t:t.slice(0,e):t}function g(t){if(l||!a.isFunction(t))return a.inspect(t);var e=p(t);return\"[Function\"+(e?\": \"+e:\"\")+\"]\"}function v(t,e,r,n,i){throw new f.AssertionError({message:r,actual:t,expected:e,operator:n,stackStartFunction:i})}function m(t,e){t||v(t,!0,e,\"==\",f.ok)}function y(t,e,r,o){if(t===e)return!0;if(i(t)&&i(e))return 0===n(t,e);if(a.isDate(t)&&a.isDate(e))return t.getTime()===e.getTime();if(a.isRegExp(t)&&a.isRegExp(e))return t.source===e.source&&t.global===e.global&&t.multiline===e.multiline&&t.lastIndex===e.lastIndex&&t.ignoreCase===e.ignoreCase;if(null!==t&&\"object\"==typeof t||null!==e&&\"object\"==typeof e){if(u(t)&&u(e)&&c(t)===c(e)&&!(t instanceof Float32Array||t instanceof Float64Array))return 0===n(new Uint8Array(t.buffer),new Uint8Array(e.buffer));if(i(t)!==i(e))return!1;var l=(o=o||{actual:[],expected:[]}).actual.indexOf(t);return-1!==l&&l===o.expected.indexOf(e)||(o.actual.push(t),o.expected.push(e),function(t,e,r,n){if(null==t||null==e)return!1;if(a.isPrimitive(t)||a.isPrimitive(e))return t===e;if(r&&Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return!1;var i=x(t),o=x(e);if(i&&!o||!i&&o)return!1;if(i)return t=s.call(t),e=s.call(e),y(t,e,r);var l,c,u=w(t),f=w(e);if(u.length!==f.length)return!1;for(u.sort(),f.sort(),c=u.length-1;c>=0;c--)if(u[c]!==f[c])return!1;for(c=u.length-1;c>=0;c--)if(l=u[c],!y(t[l],e[l],r,n))return!1;return!0}(t,e,r,o))}return r?t===e:t==e}function x(t){return\"[object Arguments]\"==Object.prototype.toString.call(t)}function b(t,e){if(!t||!e)return!1;if(\"[object RegExp]\"==Object.prototype.toString.call(e))return e.test(t);try{if(t instanceof e)return!0}catch(t){}return!Error.isPrototypeOf(e)&&!0===e.call({},t)}function _(t,e,r,n){var i;if(\"function\"!=typeof e)throw new TypeError('\"block\" argument must be a function');\"string\"==typeof r&&(n=r,r=null),i=function(t){var e;try{t()}catch(t){e=t}return e}(e),n=(r&&r.name?\" (\"+r.name+\").\":\".\")+(n?\" \"+n:\".\"),t&&!i&&v(i,r,\"Missing expected exception\"+n);var o=\"string\"==typeof n,s=!t&&i&&!r;if((!t&&a.isError(i)&&o&&b(i,r)||s)&&v(i,r,\"Got unwanted exception\"+n),t&&i&&r&&!b(i,r)||!t&&i)throw i}f.AssertionError=function(t){var e;this.name=\"AssertionError\",this.actual=t.actual,this.expected=t.expected,this.operator=t.operator,t.message?(this.message=t.message,this.generatedMessage=!1):(this.message=d(g((e=this).actual),128)+\" \"+e.operator+\" \"+d(g(e.expected),128),this.generatedMessage=!0);var r=t.stackStartFunction||v;if(Error.captureStackTrace)Error.captureStackTrace(this,r);else{var n=new Error;if(n.stack){var i=n.stack,a=p(r),o=i.indexOf(\"\\n\"+a);if(o>=0){var s=i.indexOf(\"\\n\",o+1);i=i.substring(s+1)}this.stack=i}}},a.inherits(f.AssertionError,Error),f.fail=v,f.ok=m,f.equal=function(t,e,r){t!=e&&v(t,e,r,\"==\",f.equal)},f.notEqual=function(t,e,r){t==e&&v(t,e,r,\"!=\",f.notEqual)},f.deepEqual=function(t,e,r){y(t,e,!1)||v(t,e,r,\"deepEqual\",f.deepEqual)},f.deepStrictEqual=function(t,e,r){y(t,e,!0)||v(t,e,r,\"deepStrictEqual\",f.deepStrictEqual)},f.notDeepEqual=function(t,e,r){y(t,e,!1)&&v(t,e,r,\"notDeepEqual\",f.notDeepEqual)},f.notDeepStrictEqual=function t(e,r,n){y(e,r,!0)&&v(e,r,n,\"notDeepStrictEqual\",t)},f.strictEqual=function(t,e,r){t!==e&&v(t,e,r,\"===\",f.strictEqual)},f.notStrictEqual=function(t,e,r){t===e&&v(t,e,r,\"!==\",f.notStrictEqual)},f.throws=function(t,e,r){_(!0,t,e,r)},f.doesNotThrow=function(t,e,r){_(!1,t,e,r)},f.ifError=function(t){if(t)throw t};var w=Object.keys||function(t){var e=[];for(var r in t)o.call(t,r)&&e.push(r);return e}}).call(this,\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{\"util/\":59}],57:[function(t,e,r){\"function\"==typeof Object.create?e.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}},{}],58:[function(t,e,r){e.exports=function(t){return t&&\"object\"==typeof t&&\"function\"==typeof t.copy&&\"function\"==typeof t.fill&&\"function\"==typeof t.readUInt8}},{}],59:[function(t,e,r){(function(e,n){var i=/%[sdj%]/g;r.format=function(t){if(!m(t)){for(var e=[],r=0;r<arguments.length;r++)e.push(s(arguments[r]));return e.join(\" \")}r=1;for(var n=arguments,a=n.length,o=String(t).replace(i,function(t){if(\"%%\"===t)return\"%\";if(r>=a)return t;switch(t){case\"%s\":return String(n[r++]);case\"%d\":return Number(n[r++]);case\"%j\":try{return JSON.stringify(n[r++])}catch(t){return\"[Circular]\"}default:return t}}),l=n[r];r<a;l=n[++r])g(l)||!b(l)?o+=\" \"+l:o+=\" \"+s(l);return o},r.deprecate=function(t,i){if(y(n.process))return function(){return r.deprecate(t,i).apply(this,arguments)};if(!0===e.noDeprecation)return t;var a=!1;return function(){if(!a){if(e.throwDeprecation)throw new Error(i);e.traceDeprecation?console.trace(i):console.error(i),a=!0}return t.apply(this,arguments)}};var a,o={};function s(t,e){var n={seen:[],stylize:c};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),d(e)?n.showHidden=e:e&&r._extend(n,e),y(n.showHidden)&&(n.showHidden=!1),y(n.depth)&&(n.depth=2),y(n.colors)&&(n.colors=!1),y(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=l),u(n,t,n.depth)}function l(t,e){var r=s.styles[e];return r?\"\\x1b[\"+s.colors[r][0]+\"m\"+t+\"\\x1b[\"+s.colors[r][1]+\"m\":t}function c(t,e){return t}function u(t,e,n){if(t.customInspect&&e&&k(e.inspect)&&e.inspect!==r.inspect&&(!e.constructor||e.constructor.prototype!==e)){var i=e.inspect(n,t);return m(i)||(i=u(t,i,n)),i}var a=function(t,e){if(y(e))return t.stylize(\"undefined\",\"undefined\");if(m(e)){var r=\"'\"+JSON.stringify(e).replace(/^\"|\"$/g,\"\").replace(/'/g,\"\\\\'\").replace(/\\\\\"/g,'\"')+\"'\";return t.stylize(r,\"string\")}if(v(e))return t.stylize(\"\"+e,\"number\");if(d(e))return t.stylize(\"\"+e,\"boolean\");if(g(e))return t.stylize(\"null\",\"null\")}(t,e);if(a)return a;var o=Object.keys(e),s=function(t){var e={};return t.forEach(function(t,r){e[t]=!0}),e}(o);if(t.showHidden&&(o=Object.getOwnPropertyNames(e)),w(e)&&(o.indexOf(\"message\")>=0||o.indexOf(\"description\")>=0))return f(e);if(0===o.length){if(k(e)){var l=e.name?\": \"+e.name:\"\";return t.stylize(\"[Function\"+l+\"]\",\"special\")}if(x(e))return t.stylize(RegExp.prototype.toString.call(e),\"regexp\");if(_(e))return t.stylize(Date.prototype.toString.call(e),\"date\");if(w(e))return f(e)}var c,b=\"\",M=!1,A=[\"{\",\"}\"];(p(e)&&(M=!0,A=[\"[\",\"]\"]),k(e))&&(b=\" [Function\"+(e.name?\": \"+e.name:\"\")+\"]\");return x(e)&&(b=\" \"+RegExp.prototype.toString.call(e)),_(e)&&(b=\" \"+Date.prototype.toUTCString.call(e)),w(e)&&(b=\" \"+f(e)),0!==o.length||M&&0!=e.length?n<0?x(e)?t.stylize(RegExp.prototype.toString.call(e),\"regexp\"):t.stylize(\"[Object]\",\"special\"):(t.seen.push(e),c=M?function(t,e,r,n,i){for(var a=[],o=0,s=e.length;o<s;++o)S(e,String(o))?a.push(h(t,e,r,n,String(o),!0)):a.push(\"\");return i.forEach(function(i){i.match(/^\\d+$/)||a.push(h(t,e,r,n,i,!0))}),a}(t,e,n,s,o):o.map(function(r){return h(t,e,n,s,r,M)}),t.seen.pop(),function(t,e,r){if(t.reduce(function(t,e){return 0,e.indexOf(\"\\n\")>=0&&0,t+e.replace(/\\u001b\\[\\d\\d?m/g,\"\").length+1},0)>60)return r[0]+(\"\"===e?\"\":e+\"\\n \")+\" \"+t.join(\",\\n \")+\" \"+r[1];return r[0]+e+\" \"+t.join(\", \")+\" \"+r[1]}(c,b,A)):A[0]+b+A[1]}function f(t){return\"[\"+Error.prototype.toString.call(t)+\"]\"}function h(t,e,r,n,i,a){var o,s,l;if((l=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?s=l.set?t.stylize(\"[Getter/Setter]\",\"special\"):t.stylize(\"[Getter]\",\"special\"):l.set&&(s=t.stylize(\"[Setter]\",\"special\")),S(n,i)||(o=\"[\"+i+\"]\"),s||(t.seen.indexOf(l.value)<0?(s=g(r)?u(t,l.value,null):u(t,l.value,r-1)).indexOf(\"\\n\")>-1&&(s=a?s.split(\"\\n\").map(function(t){return\" \"+t}).join(\"\\n\").substr(2):\"\\n\"+s.split(\"\\n\").map(function(t){return\" \"+t}).join(\"\\n\")):s=t.stylize(\"[Circular]\",\"special\")),y(o)){if(a&&i.match(/^\\d+$/))return s;(o=JSON.stringify(\"\"+i)).match(/^\"([a-zA-Z_][a-zA-Z_0-9]*)\"$/)?(o=o.substr(1,o.length-2),o=t.stylize(o,\"name\")):(o=o.replace(/'/g,\"\\\\'\").replace(/\\\\\"/g,'\"').replace(/(^\"|\"$)/g,\"'\"),o=t.stylize(o,\"string\"))}return o+\": \"+s}function p(t){return Array.isArray(t)}function d(t){return\"boolean\"==typeof t}function g(t){return null===t}function v(t){return\"number\"==typeof t}function m(t){return\"string\"==typeof t}function y(t){return void 0===t}function x(t){return b(t)&&\"[object RegExp]\"===M(t)}function b(t){return\"object\"==typeof t&&null!==t}function _(t){return b(t)&&\"[object Date]\"===M(t)}function w(t){return b(t)&&(\"[object Error]\"===M(t)||t instanceof Error)}function k(t){return\"function\"==typeof t}function M(t){return Object.prototype.toString.call(t)}function A(t){return t<10?\"0\"+t.toString(10):t.toString(10)}r.debuglog=function(t){if(y(a)&&(a=e.env.NODE_DEBUG||\"\"),t=t.toUpperCase(),!o[t])if(new RegExp(\"\\\\b\"+t+\"\\\\b\",\"i\").test(a)){var n=e.pid;o[t]=function(){var e=r.format.apply(r,arguments);console.error(\"%s %d: %s\",t,n,e)}}else o[t]=function(){};return o[t]},r.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:\"cyan\",number:\"yellow\",boolean:\"yellow\",undefined:\"grey\",null:\"bold\",string:\"green\",date:\"magenta\",regexp:\"red\"},r.isArray=p,r.isBoolean=d,r.isNull=g,r.isNullOrUndefined=function(t){return null==t},r.isNumber=v,r.isString=m,r.isSymbol=function(t){return\"symbol\"==typeof t},r.isUndefined=y,r.isRegExp=x,r.isObject=b,r.isDate=_,r.isError=w,r.isFunction=k,r.isPrimitive=function(t){return null===t||\"boolean\"==typeof t||\"number\"==typeof t||\"string\"==typeof t||\"symbol\"==typeof t||\"undefined\"==typeof t},r.isBuffer=t(\"./support/isBuffer\");var T=[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\"];function S(t,e){return Object.prototype.hasOwnProperty.call(t,e)}r.log=function(){var t,e;console.log(\"%s - %s\",(t=new Date,e=[A(t.getHours()),A(t.getMinutes()),A(t.getSeconds())].join(\":\"),[t.getDate(),T[t.getMonth()],e].join(\" \")),r.format.apply(r,arguments))},r.inherits=t(\"inherits\"),r._extend=function(t,e){if(!e||!b(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t}}).call(this,t(\"_process\"),\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{\"./support/isBuffer\":58,_process:465,inherits:57}],60:[function(t,e,r){e.exports=function(t){return atob(t)}},{}],61:[function(t,e,r){\"use strict\";e.exports=function(t,e){for(var r=e.length,a=new Array(r+1),o=0;o<r;++o){for(var s=new Array(r+1),l=0;l<=r;++l)s[l]=t[l][o];a[o]=s}a[r]=new Array(r+1);for(var o=0;o<=r;++o)a[r][o]=1;for(var c=new Array(r+1),o=0;o<r;++o)c[o]=e[o];c[r]=1;var u=n(a,c),f=i(u[r+1]);0===f&&(f=1);for(var h=new Array(r+1),o=0;o<=r;++o)h[o]=i(u[o])/f;return h};var n=t(\"robust-linear-solve\");function i(t){for(var e=0,r=0;r<t.length;++r)e+=t[r];return e}},{\"robust-linear-solve\":485}],62:[function(t,e,r){\"use strict\";r.byteLength=function(t){var e=c(t),r=e[0],n=e[1];return 3*(r+n)/4-n},r.toByteArray=function(t){for(var e,r=c(t),n=r[0],o=r[1],s=new a(function(t,e,r){return 3*(e+r)/4-r}(0,n,o)),l=0,u=o>0?n-4:n,f=0;f<u;f+=4)e=i[t.charCodeAt(f)]<<18|i[t.charCodeAt(f+1)]<<12|i[t.charCodeAt(f+2)]<<6|i[t.charCodeAt(f+3)],s[l++]=e>>16&255,s[l++]=e>>8&255,s[l++]=255&e;2===o&&(e=i[t.charCodeAt(f)]<<2|i[t.charCodeAt(f+1)]>>4,s[l++]=255&e);1===o&&(e=i[t.charCodeAt(f)]<<10|i[t.charCodeAt(f+1)]<<4|i[t.charCodeAt(f+2)]>>2,s[l++]=e>>8&255,s[l++]=255&e);return s},r.fromByteArray=function(t){for(var e,r=t.length,i=r%3,a=[],o=0,s=r-i;o<s;o+=16383)a.push(u(t,o,o+16383>s?s:o+16383));1===i?(e=t[r-1],a.push(n[e>>2]+n[e<<4&63]+\"==\")):2===i&&(e=(t[r-2]<<8)+t[r-1],a.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+\"=\"));return a.join(\"\")};for(var n=[],i=[],a=\"undefined\"!=typeof Uint8Array?Uint8Array:Array,o=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",s=0,l=o.length;s<l;++s)n[s]=o[s],i[o.charCodeAt(s)]=s;function c(t){var e=t.length;if(e%4>0)throw new Error(\"Invalid string. Length must be a multiple of 4\");var r=t.indexOf(\"=\");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function u(t,e,r){for(var i,a,o=[],s=e;s<r;s+=3)i=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(255&t[s+2]),o.push(n[(a=i)>>18&63]+n[a>>12&63]+n[a>>6&63]+n[63&a]);return o.join(\"\")}i[\"-\".charCodeAt(0)]=62,i[\"_\".charCodeAt(0)]=63},{}],63:[function(t,e,r){\"use strict\";var n=t(\"./lib/rationalize\");e.exports=function(t,e){return n(t[0].mul(e[1]).add(e[0].mul(t[1])),t[1].mul(e[1]))}},{\"./lib/rationalize\":73}],64:[function(t,e,r){\"use strict\";e.exports=function(t,e){return t[0].mul(e[1]).cmp(e[0].mul(t[1]))}},{}],65:[function(t,e,r){\"use strict\";var n=t(\"./lib/rationalize\");e.exports=function(t,e){return n(t[0].mul(e[1]),t[1].mul(e[0]))}},{\"./lib/rationalize\":73}],66:[function(t,e,r){\"use strict\";var n=t(\"./is-rat\"),i=t(\"./lib/is-bn\"),a=t(\"./lib/num-to-bn\"),o=t(\"./lib/str-to-bn\"),s=t(\"./lib/rationalize\"),l=t(\"./div\");e.exports=function t(e,r){if(n(e))return r?l(e,t(r)):[e[0].clone(),e[1].clone()];var c=0;var u,f;if(i(e))u=e.clone();else if(\"string\"==typeof e)u=o(e);else{if(0===e)return[a(0),a(1)];if(e===Math.floor(e))u=a(e);else{for(;e!==Math.floor(e);)e*=Math.pow(2,256),c-=256;u=a(e)}}if(n(r))u.mul(r[1]),f=r[0].clone();else if(i(r))f=r.clone();else if(\"string\"==typeof r)f=o(r);else if(r)if(r===Math.floor(r))f=a(r);else{for(;r!==Math.floor(r);)r*=Math.pow(2,256),c+=256;f=a(r)}else f=a(1);c>0?u=u.ushln(c):c<0&&(f=f.ushln(-c));return s(u,f)}},{\"./div\":65,\"./is-rat\":67,\"./lib/is-bn\":71,\"./lib/num-to-bn\":72,\"./lib/rationalize\":73,\"./lib/str-to-bn\":74}],67:[function(t,e,r){\"use strict\";var n=t(\"./lib/is-bn\");e.exports=function(t){return Array.isArray(t)&&2===t.length&&n(t[0])&&n(t[1])}},{\"./lib/is-bn\":71}],68:[function(t,e,r){\"use strict\";var n=t(\"bn.js\");e.exports=function(t){return t.cmp(new n(0))}},{\"bn.js\":82}],69:[function(t,e,r){\"use strict\";var n=t(\"./bn-sign\");e.exports=function(t){var e=t.length,r=t.words,i=0;if(1===e)i=r[0];else if(2===e)i=r[0]+67108864*r[1];else for(var a=0;a<e;a++){var o=r[a];i+=o*Math.pow(67108864,a)}return n(t)*i}},{\"./bn-sign\":68}],70:[function(t,e,r){\"use strict\";var n=t(\"double-bits\"),i=t(\"bit-twiddle\").countTrailingZeros;e.exports=function(t){var e=i(n.lo(t));if(e<32)return e;var r=i(n.hi(t));if(r>20)return 52;return r+32}},{\"bit-twiddle\":80,\"double-bits\":152}],71:[function(t,e,r){\"use strict\";t(\"bn.js\");e.exports=function(t){return t&&\"object\"==typeof t&&Boolean(t.words)}},{\"bn.js\":82}],72:[function(t,e,r){\"use strict\";var n=t(\"bn.js\"),i=t(\"double-bits\");e.exports=function(t){var e=i.exponent(t);return e<52?new n(t):new n(t*Math.pow(2,52-e)).ushln(e-52)}},{\"bn.js\":82,\"double-bits\":152}],73:[function(t,e,r){\"use strict\";var n=t(\"./num-to-bn\"),i=t(\"./bn-sign\");e.exports=function(t,e){var r=i(t),a=i(e);if(0===r)return[n(0),n(1)];if(0===a)return[n(0),n(0)];a<0&&(t=t.neg(),e=e.neg());var o=t.gcd(e);if(o.cmpn(1))return[t.div(o),e.div(o)];return[t,e]}},{\"./bn-sign\":68,\"./num-to-bn\":72}],74:[function(t,e,r){\"use strict\";var n=t(\"bn.js\");e.exports=function(t){return new n(t)}},{\"bn.js\":82}],75:[function(t,e,r){\"use strict\";var n=t(\"./lib/rationalize\");e.exports=function(t,e){return n(t[0].mul(e[0]),t[1].mul(e[1]))}},{\"./lib/rationalize\":73}],76:[function(t,e,r){\"use strict\";var n=t(\"./lib/bn-sign\");e.exports=function(t){return n(t[0])*n(t[1])}},{\"./lib/bn-sign\":68}],77:[function(t,e,r){\"use strict\";var n=t(\"./lib/rationalize\");e.exports=function(t,e){return n(t[0].mul(e[1]).sub(t[1].mul(e[0])),t[1].mul(e[1]))}},{\"./lib/rationalize\":73}],78:[function(t,e,r){\"use strict\";var n=t(\"./lib/bn-to-num\"),i=t(\"./lib/ctz\");e.exports=function(t){var e=t[0],r=t[1];if(0===e.cmpn(0))return 0;var a=e.abs().divmod(r.abs()),o=a.div,s=n(o),l=a.mod,c=e.negative!==r.negative?-1:1;if(0===l.cmpn(0))return c*s;if(s){var u=i(s)+4,f=n(l.ushln(u).divRound(r));return c*(s+f*Math.pow(2,-u))}var h=r.bitLength()-l.bitLength()+53,f=n(l.ushln(h).divRound(r));return h<1023?c*f*Math.pow(2,-h):(f*=Math.pow(2,-1023),c*f*Math.pow(2,1023-h))}},{\"./lib/bn-to-num\":69,\"./lib/ctz\":70}],79:[function(t,e,r){\"use strict\";function n(t,e,r,n,i,a){var o=[\"function \",t,\"(a,l,h,\",n.join(\",\"),\"){\",a?\"\":\"var i=\",r?\"l-1\":\"h+1\",\";while(l<=h){var m=(l+h)>>>1,x=a\",i?\".get(m)\":\"[m]\"];return a?e.indexOf(\"c\")<0?o.push(\";if(x===y){return m}else if(x<=y){\"):o.push(\";var p=c(x,y);if(p===0){return m}else if(p<=0){\"):o.push(\";if(\",e,\"){i=m;\"),r?o.push(\"l=m+1}else{h=m-1}\"):o.push(\"h=m-1}else{l=m+1}\"),o.push(\"}\"),a?o.push(\"return -1};\"):o.push(\"return i};\"),o.join(\"\")}function i(t,e,r,i){return new Function([n(\"A\",\"x\"+t+\"y\",e,[\"y\"],!1,i),n(\"B\",\"x\"+t+\"y\",e,[\"y\"],!0,i),n(\"P\",\"c(x,y)\"+t+\"0\",e,[\"y\",\"c\"],!1,i),n(\"Q\",\"c(x,y)\"+t+\"0\",e,[\"y\",\"c\"],!0,i),\"function dispatchBsearch\",r,\"(a,y,c,l,h){if(a.shape){if(typeof(c)==='function'){return Q(a,(l===undefined)?0:l|0,(h===undefined)?a.shape[0]-1:h|0,y,c)}else{return B(a,(c===undefined)?0:c|0,(l===undefined)?a.shape[0]-1:l|0,y)}}else{if(typeof(c)==='function'){return P(a,(l===undefined)?0:l|0,(h===undefined)?a.length-1:h|0,y,c)}else{return A(a,(c===undefined)?0:c|0,(l===undefined)?a.length-1:l|0,y)}}}return dispatchBsearch\",r].join(\"\"))()}e.exports={ge:i(\">=\",!1,\"GE\"),gt:i(\">\",!1,\"GT\"),lt:i(\"<\",!0,\"LT\"),le:i(\"<=\",!0,\"LE\"),eq:i(\"-\",!0,\"EQ\",!0)}},{}],80:[function(t,e,r){\"use strict\";function n(t){var e=32;return(t&=-t)&&e--,65535&t&&(e-=16),16711935&t&&(e-=8),252645135&t&&(e-=4),858993459&t&&(e-=2),1431655765&t&&(e-=1),e}r.INT_BITS=32,r.INT_MAX=2147483647,r.INT_MIN=-1<<31,r.sign=function(t){return(t>0)-(t<0)},r.abs=function(t){var e=t>>31;return(t^e)-e},r.min=function(t,e){return e^(t^e)&-(t<e)},r.max=function(t,e){return t^(t^e)&-(t<e)},r.isPow2=function(t){return!(t&t-1||!t)},r.log2=function(t){var e,r;return e=(t>65535)<<4,e|=r=((t>>>=e)>255)<<3,e|=r=((t>>>=r)>15)<<2,(e|=r=((t>>>=r)>3)<<1)|(t>>>=r)>>1},r.log10=function(t){return t>=1e9?9:t>=1e8?8:t>=1e7?7:t>=1e6?6:t>=1e5?5:t>=1e4?4:t>=1e3?3:t>=100?2:t>=10?1:0},r.popCount=function(t){return 16843009*((t=(858993459&(t-=t>>>1&1431655765))+(t>>>2&858993459))+(t>>>4)&252645135)>>>24},r.countTrailingZeros=n,r.nextPow2=function(t){return t+=0===t,--t,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,(t|=t>>>16)+1},r.prevPow2=function(t){return t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,(t|=t>>>16)-(t>>>1)},r.parity=function(t){return t^=t>>>16,t^=t>>>8,t^=t>>>4,27030>>>(t&=15)&1};var i=new Array(256);!function(t){for(var e=0;e<256;++e){var r=e,n=e,i=7;for(r>>>=1;r;r>>>=1)n<<=1,n|=1&r,--i;t[e]=n<<i&255}}(i),r.reverse=function(t){return i[255&t]<<24|i[t>>>8&255]<<16|i[t>>>16&255]<<8|i[t>>>24&255]},r.interleave2=function(t,e){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t&=65535)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e&=65535)|e<<8))|e<<4))|e<<2))|e<<1))<<1},r.deinterleave2=function(t,e){return(t=65535&((t=16711935&((t=252645135&((t=858993459&((t=t>>>e&1431655765)|t>>>1))|t>>>2))|t>>>4))|t>>>16))<<16>>16},r.interleave3=function(t,e,r){return t=1227133513&((t=3272356035&((t=251719695&((t=4278190335&((t&=1023)|t<<16))|t<<8))|t<<4))|t<<2),(t|=(e=1227133513&((e=3272356035&((e=251719695&((e=4278190335&((e&=1023)|e<<16))|e<<8))|e<<4))|e<<2))<<1)|(r=1227133513&((r=3272356035&((r=251719695&((r=4278190335&((r&=1023)|r<<16))|r<<8))|r<<4))|r<<2))<<2},r.deinterleave3=function(t,e){return(t=1023&((t=4278190335&((t=251719695&((t=3272356035&((t=t>>>e&1227133513)|t>>>2))|t>>>4))|t>>>8))|t>>>16))<<22>>22},r.nextCombination=function(t){var e=t|t-1;return e+1|(~e&-~e)-1>>>n(t)+1}},{}],81:[function(t,e,r){\"use strict\";var n=t(\"clamp\");e.exports=function(t,e){e||(e={});var r,o,s,l,c,u,f,h,p,d,g,v=null==e.cutoff?.25:e.cutoff,m=null==e.radius?8:e.radius,y=e.channel||0;if(ArrayBuffer.isView(t)||Array.isArray(t)){if(!e.width||!e.height)throw Error(\"For raw data width and height should be provided by options\");r=e.width,o=e.height,l=t,u=e.stride?e.stride:Math.floor(t.length/r/o)}else window.HTMLCanvasElement&&t instanceof window.HTMLCanvasElement?(f=(h=t).getContext(\"2d\"),r=h.width,o=h.height,p=f.getImageData(0,0,r,o),l=p.data,u=4):window.CanvasRenderingContext2D&&t instanceof window.CanvasRenderingContext2D?(h=t.canvas,f=t,r=h.width,o=h.height,p=f.getImageData(0,0,r,o),l=p.data,u=4):window.ImageData&&t instanceof window.ImageData&&(p=t,r=t.width,o=t.height,l=p.data,u=4);if(s=Math.max(r,o),window.Uint8ClampedArray&&l instanceof window.Uint8ClampedArray||window.Uint8Array&&l instanceof window.Uint8Array)for(c=l,l=Array(r*o),d=0,g=c.length;d<g;d++)l[d]=c[d*u+y]/255;else if(1!==u)throw Error(\"Raw data can have only 1 value per pixel\");var x=Array(r*o),b=Array(r*o),_=Array(s),w=Array(s),k=Array(s+1),M=Array(s);for(d=0,g=r*o;d<g;d++){var A=l[d];x[d]=1===A?0:0===A?i:Math.pow(Math.max(0,.5-A),2),b[d]=1===A?i:0===A?0:Math.pow(Math.max(0,A-.5),2)}a(x,r,o,_,w,M,k),a(b,r,o,_,w,M,k);var T=window.Float32Array?new Float32Array(r*o):new Array(r*o);for(d=0,g=r*o;d<g;d++)T[d]=n(1-((x[d]-b[d])/m+v),0,1);return T};var i=1e20;function a(t,e,r,n,i,a,s){for(var l=0;l<e;l++){for(var c=0;c<r;c++)n[c]=t[c*e+l];for(o(n,i,a,s,r),c=0;c<r;c++)t[c*e+l]=i[c]}for(c=0;c<r;c++){for(l=0;l<e;l++)n[l]=t[c*e+l];for(o(n,i,a,s,e),l=0;l<e;l++)t[c*e+l]=Math.sqrt(i[l])}}function o(t,e,r,n,a){r[0]=0,n[0]=-i,n[1]=+i;for(var o=1,s=0;o<a;o++){for(var l=(t[o]+o*o-(t[r[s]]+r[s]*r[s]))/(2*o-2*r[s]);l<=n[s];)s--,l=(t[o]+o*o-(t[r[s]]+r[s]*r[s]))/(2*o-2*r[s]);r[++s]=o,n[s]=l,n[s+1]=+i}for(o=0,s=0;o<a;o++){for(;n[s+1]<o;)s++;e[o]=(o-r[s])*(o-r[s])+t[r[s]]}}},{clamp:103}],82:[function(t,e,r){!function(e,r){\"use strict\";function n(t,e){if(!t)throw new Error(e||\"Assertion failed\")}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function a(t,e,r){if(a.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&(\"le\"!==e&&\"be\"!==e||(r=e,e=10),this._init(t||0,e||10,r||\"be\"))}var o;\"object\"==typeof e?e.exports=a:r.BN=a,a.BN=a,a.wordSize=26;try{o=t(\"buffer\").Buffer}catch(t){}function s(t,e,r){for(var n=0,i=Math.min(t.length,r),a=e;a<i;a++){var o=t.charCodeAt(a)-48;n<<=4,n|=o>=49&&o<=54?o-49+10:o>=17&&o<=22?o-17+10:15&o}return n}function l(t,e,r,n){for(var i=0,a=Math.min(t.length,r),o=e;o<a;o++){var s=t.charCodeAt(o)-48;i*=n,i+=s>=49?s-49+10:s>=17?s-17+10:s}return i}a.isBN=function(t){return t instanceof a||null!==t&&\"object\"==typeof t&&t.constructor.wordSize===a.wordSize&&Array.isArray(t.words)},a.max=function(t,e){return t.cmp(e)>0?t:e},a.min=function(t,e){return t.cmp(e)<0?t:e},a.prototype._init=function(t,e,r){if(\"number\"==typeof t)return this._initNumber(t,e,r);if(\"object\"==typeof t)return this._initArray(t,e,r);\"hex\"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var i=0;\"-\"===(t=t.toString().replace(/\\s+/g,\"\"))[0]&&i++,16===e?this._parseHex(t,i):this._parseBase(t,e,i),\"-\"===t[0]&&(this.negative=1),this.strip(),\"le\"===r&&this._initArray(this.toArray(),e,r)},a.prototype._initNumber=function(t,e,r){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),\"le\"===r&&this._initArray(this.toArray(),e,r)},a.prototype._initArray=function(t,e,r){if(n(\"number\"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var a,o,s=0;if(\"be\"===r)for(i=t.length-1,a=0;i>=0;i-=3)o=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[a]|=o<<s&67108863,this.words[a+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);else if(\"le\"===r)for(i=0,a=0;i<t.length;i+=3)o=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[a]|=o<<s&67108863,this.words[a+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);return this.strip()},a.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var n,i,a=0;for(r=t.length-6,n=0;r>=e;r-=6)i=s(t,r,r+6),this.words[n]|=i<<a&67108863,this.words[n+1]|=i>>>26-a&4194303,(a+=24)>=26&&(a-=26,n++);r+6!==e&&(i=s(t,e,r+6),this.words[n]|=i<<a&67108863,this.words[n+1]|=i>>>26-a&4194303),this.strip()},a.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var a=t.length-r,o=a%n,s=Math.min(a,a-o)+r,c=0,u=r;u<s;u+=n)c=l(t,u,u+n,e),this.imuln(i),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(0!==o){var f=1;for(c=l(t,u,t.length,e),u=0;u<o;u++)f*=e;this.imuln(f),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}},a.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},a.prototype.clone=function(){var t=new a(null);return this.copy(t),t},a.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},a.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?\"<BN-R: \":\"<BN: \")+this.toString(16)+\">\"};var c=[\"\",\"0\",\"00\",\"000\",\"0000\",\"00000\",\"000000\",\"0000000\",\"00000000\",\"000000000\",\"0000000000\",\"00000000000\",\"000000000000\",\"0000000000000\",\"00000000000000\",\"000000000000000\",\"0000000000000000\",\"00000000000000000\",\"000000000000000000\",\"0000000000000000000\",\"00000000000000000000\",\"000000000000000000000\",\"0000000000000000000000\",\"00000000000000000000000\",\"000000000000000000000000\",\"0000000000000000000000000\"],u=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],f=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function h(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],a=0|e.words[0],o=i*a,s=67108863&o,l=o/67108864|0;r.words[0]=s;for(var c=1;c<n;c++){for(var u=l>>>26,f=67108863&l,h=Math.min(c,e.length-1),p=Math.max(0,c-t.length+1);p<=h;p++){var d=c-p|0;u+=(o=(i=0|t.words[d])*(a=0|e.words[p])+f)/67108864|0,f=67108863&o}r.words[c]=0|f,l=0|u}return 0!==l?r.words[c]=0|l:r.length--,r.strip()}a.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||\"hex\"===t){r=\"\";for(var i=0,a=0,o=0;o<this.length;o++){var s=this.words[o],l=(16777215&(s<<i|a)).toString(16);r=0!==(a=s>>>24-i&16777215)||o!==this.length-1?c[6-l.length]+l+r:l+r,(i+=2)>=26&&(i-=26,o--)}for(0!==a&&(r=a.toString(16)+r);r.length%e!=0;)r=\"0\"+r;return 0!==this.negative&&(r=\"-\"+r),r}if(t===(0|t)&&t>=2&&t<=36){var h=u[t],p=f[t];r=\"\";var d=this.clone();for(d.negative=0;!d.isZero();){var g=d.modn(p).toString(t);r=(d=d.idivn(p)).isZero()?g+r:c[h-g.length]+g+r}for(this.isZero()&&(r=\"0\"+r);r.length%e!=0;)r=\"0\"+r;return 0!==this.negative&&(r=\"-\"+r),r}n(!1,\"Base should be between 2 and 36\")},a.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,\"Number can only safely store up to 53 bits\"),0!==this.negative?-t:t},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(t,e){return n(\"undefined\"!=typeof o),this.toArrayLike(o,t,e)},a.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},a.prototype.toArrayLike=function(t,e,r){var i=this.byteLength(),a=r||Math.max(1,i);n(i<=a,\"byte array longer than desired length\"),n(a>0,\"Requested array length <= 0\"),this.strip();var o,s,l=\"le\"===e,c=new t(a),u=this.clone();if(l){for(s=0;!u.isZero();s++)o=u.andln(255),u.iushrn(8),c[s]=o;for(;s<a;s++)c[s]=0}else{for(s=0;s<a-i;s++)c[s]=0;for(s=0;!u.isZero();s++)o=u.andln(255),u.iushrn(8),c[a-s-1]=o}return c},Math.clz32?a.prototype._countBits=function(t){return 32-Math.clz32(t)}:a.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},a.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0==(8191&e)&&(r+=13,e>>>=13),0==(127&e)&&(r+=7,e>>>=7),0==(15&e)&&(r+=4,e>>>=4),0==(3&e)&&(r+=2,e>>>=2),0==(1&e)&&r++,r},a.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},a.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return 0!==this.negative},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},a.prototype.ior=function(t){return n(0==(this.negative|t.negative)),this.iuor(t)},a.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},a.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},a.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this.strip()},a.prototype.iand=function(t){return n(0==(this.negative|t.negative)),this.iuand(t)},a.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},a.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},a.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this.strip()},a.prototype.ixor=function(t){return n(0==(this.negative|t.negative)),this.iuxor(t)},a.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},a.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},a.prototype.inotn=function(t){n(\"number\"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},a.prototype.notn=function(t){return this.clone().inotn(t)},a.prototype.setn=function(t,e){n(\"number\"==typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<i:this.words[r]&~(1<<i),this.strip()},a.prototype.iadd=function(t){var e,r,n;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(r=this,n=t):(r=t,n=this);for(var i=0,a=0;a<n.length;a++)e=(0|r.words[a])+(0|n.words[a])+i,this.words[a]=67108863&e,i=e>>>26;for(;0!==i&&a<r.length;a++)e=(0|r.words[a])+i,this.words[a]=67108863&e,i=e>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this},a.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},a.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var a=0,o=0;o<n.length;o++)a=(e=(0|r.words[o])-(0|n.words[o])+a)>>26,this.words[o]=67108863&e;for(;0!==a&&o<r.length;o++)a=(e=(0|r.words[o])+a)>>26,this.words[o]=67108863&e;if(0===a&&o<r.length&&r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this.length=Math.max(this.length,o),r!==this&&(this.negative=1),this.strip()},a.prototype.sub=function(t){return this.clone().isub(t)};var p=function(t,e,r){var n,i,a,o=t.words,s=e.words,l=r.words,c=0,u=0|o[0],f=8191&u,h=u>>>13,p=0|o[1],d=8191&p,g=p>>>13,v=0|o[2],m=8191&v,y=v>>>13,x=0|o[3],b=8191&x,_=x>>>13,w=0|o[4],k=8191&w,M=w>>>13,A=0|o[5],T=8191&A,S=A>>>13,E=0|o[6],C=8191&E,L=E>>>13,z=0|o[7],O=8191&z,I=z>>>13,P=0|o[8],D=8191&P,R=P>>>13,B=0|o[9],F=8191&B,N=B>>>13,j=0|s[0],V=8191&j,U=j>>>13,q=0|s[1],H=8191&q,G=q>>>13,W=0|s[2],Y=8191&W,X=W>>>13,Z=0|s[3],$=8191&Z,J=Z>>>13,K=0|s[4],Q=8191&K,tt=K>>>13,et=0|s[5],rt=8191&et,nt=et>>>13,it=0|s[6],at=8191&it,ot=it>>>13,st=0|s[7],lt=8191&st,ct=st>>>13,ut=0|s[8],ft=8191&ut,ht=ut>>>13,pt=0|s[9],dt=8191&pt,gt=pt>>>13;r.negative=t.negative^e.negative,r.length=19;var vt=(c+(n=Math.imul(f,V))|0)+((8191&(i=(i=Math.imul(f,U))+Math.imul(h,V)|0))<<13)|0;c=((a=Math.imul(h,U))+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(d,V),i=(i=Math.imul(d,U))+Math.imul(g,V)|0,a=Math.imul(g,U);var mt=(c+(n=n+Math.imul(f,H)|0)|0)+((8191&(i=(i=i+Math.imul(f,G)|0)+Math.imul(h,H)|0))<<13)|0;c=((a=a+Math.imul(h,G)|0)+(i>>>13)|0)+(mt>>>26)|0,mt&=67108863,n=Math.imul(m,V),i=(i=Math.imul(m,U))+Math.imul(y,V)|0,a=Math.imul(y,U),n=n+Math.imul(d,H)|0,i=(i=i+Math.imul(d,G)|0)+Math.imul(g,H)|0,a=a+Math.imul(g,G)|0;var yt=(c+(n=n+Math.imul(f,Y)|0)|0)+((8191&(i=(i=i+Math.imul(f,X)|0)+Math.imul(h,Y)|0))<<13)|0;c=((a=a+Math.imul(h,X)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(b,V),i=(i=Math.imul(b,U))+Math.imul(_,V)|0,a=Math.imul(_,U),n=n+Math.imul(m,H)|0,i=(i=i+Math.imul(m,G)|0)+Math.imul(y,H)|0,a=a+Math.imul(y,G)|0,n=n+Math.imul(d,Y)|0,i=(i=i+Math.imul(d,X)|0)+Math.imul(g,Y)|0,a=a+Math.imul(g,X)|0;var xt=(c+(n=n+Math.imul(f,$)|0)|0)+((8191&(i=(i=i+Math.imul(f,J)|0)+Math.imul(h,$)|0))<<13)|0;c=((a=a+Math.imul(h,J)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(k,V),i=(i=Math.imul(k,U))+Math.imul(M,V)|0,a=Math.imul(M,U),n=n+Math.imul(b,H)|0,i=(i=i+Math.imul(b,G)|0)+Math.imul(_,H)|0,a=a+Math.imul(_,G)|0,n=n+Math.imul(m,Y)|0,i=(i=i+Math.imul(m,X)|0)+Math.imul(y,Y)|0,a=a+Math.imul(y,X)|0,n=n+Math.imul(d,$)|0,i=(i=i+Math.imul(d,J)|0)+Math.imul(g,$)|0,a=a+Math.imul(g,J)|0;var bt=(c+(n=n+Math.imul(f,Q)|0)|0)+((8191&(i=(i=i+Math.imul(f,tt)|0)+Math.imul(h,Q)|0))<<13)|0;c=((a=a+Math.imul(h,tt)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(T,V),i=(i=Math.imul(T,U))+Math.imul(S,V)|0,a=Math.imul(S,U),n=n+Math.imul(k,H)|0,i=(i=i+Math.imul(k,G)|0)+Math.imul(M,H)|0,a=a+Math.imul(M,G)|0,n=n+Math.imul(b,Y)|0,i=(i=i+Math.imul(b,X)|0)+Math.imul(_,Y)|0,a=a+Math.imul(_,X)|0,n=n+Math.imul(m,$)|0,i=(i=i+Math.imul(m,J)|0)+Math.imul(y,$)|0,a=a+Math.imul(y,J)|0,n=n+Math.imul(d,Q)|0,i=(i=i+Math.imul(d,tt)|0)+Math.imul(g,Q)|0,a=a+Math.imul(g,tt)|0;var _t=(c+(n=n+Math.imul(f,rt)|0)|0)+((8191&(i=(i=i+Math.imul(f,nt)|0)+Math.imul(h,rt)|0))<<13)|0;c=((a=a+Math.imul(h,nt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(C,V),i=(i=Math.imul(C,U))+Math.imul(L,V)|0,a=Math.imul(L,U),n=n+Math.imul(T,H)|0,i=(i=i+Math.imul(T,G)|0)+Math.imul(S,H)|0,a=a+Math.imul(S,G)|0,n=n+Math.imul(k,Y)|0,i=(i=i+Math.imul(k,X)|0)+Math.imul(M,Y)|0,a=a+Math.imul(M,X)|0,n=n+Math.imul(b,$)|0,i=(i=i+Math.imul(b,J)|0)+Math.imul(_,$)|0,a=a+Math.imul(_,J)|0,n=n+Math.imul(m,Q)|0,i=(i=i+Math.imul(m,tt)|0)+Math.imul(y,Q)|0,a=a+Math.imul(y,tt)|0,n=n+Math.imul(d,rt)|0,i=(i=i+Math.imul(d,nt)|0)+Math.imul(g,rt)|0,a=a+Math.imul(g,nt)|0;var wt=(c+(n=n+Math.imul(f,at)|0)|0)+((8191&(i=(i=i+Math.imul(f,ot)|0)+Math.imul(h,at)|0))<<13)|0;c=((a=a+Math.imul(h,ot)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(O,V),i=(i=Math.imul(O,U))+Math.imul(I,V)|0,a=Math.imul(I,U),n=n+Math.imul(C,H)|0,i=(i=i+Math.imul(C,G)|0)+Math.imul(L,H)|0,a=a+Math.imul(L,G)|0,n=n+Math.imul(T,Y)|0,i=(i=i+Math.imul(T,X)|0)+Math.imul(S,Y)|0,a=a+Math.imul(S,X)|0,n=n+Math.imul(k,$)|0,i=(i=i+Math.imul(k,J)|0)+Math.imul(M,$)|0,a=a+Math.imul(M,J)|0,n=n+Math.imul(b,Q)|0,i=(i=i+Math.imul(b,tt)|0)+Math.imul(_,Q)|0,a=a+Math.imul(_,tt)|0,n=n+Math.imul(m,rt)|0,i=(i=i+Math.imul(m,nt)|0)+Math.imul(y,rt)|0,a=a+Math.imul(y,nt)|0,n=n+Math.imul(d,at)|0,i=(i=i+Math.imul(d,ot)|0)+Math.imul(g,at)|0,a=a+Math.imul(g,ot)|0;var kt=(c+(n=n+Math.imul(f,lt)|0)|0)+((8191&(i=(i=i+Math.imul(f,ct)|0)+Math.imul(h,lt)|0))<<13)|0;c=((a=a+Math.imul(h,ct)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(D,V),i=(i=Math.imul(D,U))+Math.imul(R,V)|0,a=Math.imul(R,U),n=n+Math.imul(O,H)|0,i=(i=i+Math.imul(O,G)|0)+Math.imul(I,H)|0,a=a+Math.imul(I,G)|0,n=n+Math.imul(C,Y)|0,i=(i=i+Math.imul(C,X)|0)+Math.imul(L,Y)|0,a=a+Math.imul(L,X)|0,n=n+Math.imul(T,$)|0,i=(i=i+Math.imul(T,J)|0)+Math.imul(S,$)|0,a=a+Math.imul(S,J)|0,n=n+Math.imul(k,Q)|0,i=(i=i+Math.imul(k,tt)|0)+Math.imul(M,Q)|0,a=a+Math.imul(M,tt)|0,n=n+Math.imul(b,rt)|0,i=(i=i+Math.imul(b,nt)|0)+Math.imul(_,rt)|0,a=a+Math.imul(_,nt)|0,n=n+Math.imul(m,at)|0,i=(i=i+Math.imul(m,ot)|0)+Math.imul(y,at)|0,a=a+Math.imul(y,ot)|0,n=n+Math.imul(d,lt)|0,i=(i=i+Math.imul(d,ct)|0)+Math.imul(g,lt)|0,a=a+Math.imul(g,ct)|0;var Mt=(c+(n=n+Math.imul(f,ft)|0)|0)+((8191&(i=(i=i+Math.imul(f,ht)|0)+Math.imul(h,ft)|0))<<13)|0;c=((a=a+Math.imul(h,ht)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(F,V),i=(i=Math.imul(F,U))+Math.imul(N,V)|0,a=Math.imul(N,U),n=n+Math.imul(D,H)|0,i=(i=i+Math.imul(D,G)|0)+Math.imul(R,H)|0,a=a+Math.imul(R,G)|0,n=n+Math.imul(O,Y)|0,i=(i=i+Math.imul(O,X)|0)+Math.imul(I,Y)|0,a=a+Math.imul(I,X)|0,n=n+Math.imul(C,$)|0,i=(i=i+Math.imul(C,J)|0)+Math.imul(L,$)|0,a=a+Math.imul(L,J)|0,n=n+Math.imul(T,Q)|0,i=(i=i+Math.imul(T,tt)|0)+Math.imul(S,Q)|0,a=a+Math.imul(S,tt)|0,n=n+Math.imul(k,rt)|0,i=(i=i+Math.imul(k,nt)|0)+Math.imul(M,rt)|0,a=a+Math.imul(M,nt)|0,n=n+Math.imul(b,at)|0,i=(i=i+Math.imul(b,ot)|0)+Math.imul(_,at)|0,a=a+Math.imul(_,ot)|0,n=n+Math.imul(m,lt)|0,i=(i=i+Math.imul(m,ct)|0)+Math.imul(y,lt)|0,a=a+Math.imul(y,ct)|0,n=n+Math.imul(d,ft)|0,i=(i=i+Math.imul(d,ht)|0)+Math.imul(g,ft)|0,a=a+Math.imul(g,ht)|0;var At=(c+(n=n+Math.imul(f,dt)|0)|0)+((8191&(i=(i=i+Math.imul(f,gt)|0)+Math.imul(h,dt)|0))<<13)|0;c=((a=a+Math.imul(h,gt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(F,H),i=(i=Math.imul(F,G))+Math.imul(N,H)|0,a=Math.imul(N,G),n=n+Math.imul(D,Y)|0,i=(i=i+Math.imul(D,X)|0)+Math.imul(R,Y)|0,a=a+Math.imul(R,X)|0,n=n+Math.imul(O,$)|0,i=(i=i+Math.imul(O,J)|0)+Math.imul(I,$)|0,a=a+Math.imul(I,J)|0,n=n+Math.imul(C,Q)|0,i=(i=i+Math.imul(C,tt)|0)+Math.imul(L,Q)|0,a=a+Math.imul(L,tt)|0,n=n+Math.imul(T,rt)|0,i=(i=i+Math.imul(T,nt)|0)+Math.imul(S,rt)|0,a=a+Math.imul(S,nt)|0,n=n+Math.imul(k,at)|0,i=(i=i+Math.imul(k,ot)|0)+Math.imul(M,at)|0,a=a+Math.imul(M,ot)|0,n=n+Math.imul(b,lt)|0,i=(i=i+Math.imul(b,ct)|0)+Math.imul(_,lt)|0,a=a+Math.imul(_,ct)|0,n=n+Math.imul(m,ft)|0,i=(i=i+Math.imul(m,ht)|0)+Math.imul(y,ft)|0,a=a+Math.imul(y,ht)|0;var Tt=(c+(n=n+Math.imul(d,dt)|0)|0)+((8191&(i=(i=i+Math.imul(d,gt)|0)+Math.imul(g,dt)|0))<<13)|0;c=((a=a+Math.imul(g,gt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(F,Y),i=(i=Math.imul(F,X))+Math.imul(N,Y)|0,a=Math.imul(N,X),n=n+Math.imul(D,$)|0,i=(i=i+Math.imul(D,J)|0)+Math.imul(R,$)|0,a=a+Math.imul(R,J)|0,n=n+Math.imul(O,Q)|0,i=(i=i+Math.imul(O,tt)|0)+Math.imul(I,Q)|0,a=a+Math.imul(I,tt)|0,n=n+Math.imul(C,rt)|0,i=(i=i+Math.imul(C,nt)|0)+Math.imul(L,rt)|0,a=a+Math.imul(L,nt)|0,n=n+Math.imul(T,at)|0,i=(i=i+Math.imul(T,ot)|0)+Math.imul(S,at)|0,a=a+Math.imul(S,ot)|0,n=n+Math.imul(k,lt)|0,i=(i=i+Math.imul(k,ct)|0)+Math.imul(M,lt)|0,a=a+Math.imul(M,ct)|0,n=n+Math.imul(b,ft)|0,i=(i=i+Math.imul(b,ht)|0)+Math.imul(_,ft)|0,a=a+Math.imul(_,ht)|0;var St=(c+(n=n+Math.imul(m,dt)|0)|0)+((8191&(i=(i=i+Math.imul(m,gt)|0)+Math.imul(y,dt)|0))<<13)|0;c=((a=a+Math.imul(y,gt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(F,$),i=(i=Math.imul(F,J))+Math.imul(N,$)|0,a=Math.imul(N,J),n=n+Math.imul(D,Q)|0,i=(i=i+Math.imul(D,tt)|0)+Math.imul(R,Q)|0,a=a+Math.imul(R,tt)|0,n=n+Math.imul(O,rt)|0,i=(i=i+Math.imul(O,nt)|0)+Math.imul(I,rt)|0,a=a+Math.imul(I,nt)|0,n=n+Math.imul(C,at)|0,i=(i=i+Math.imul(C,ot)|0)+Math.imul(L,at)|0,a=a+Math.imul(L,ot)|0,n=n+Math.imul(T,lt)|0,i=(i=i+Math.imul(T,ct)|0)+Math.imul(S,lt)|0,a=a+Math.imul(S,ct)|0,n=n+Math.imul(k,ft)|0,i=(i=i+Math.imul(k,ht)|0)+Math.imul(M,ft)|0,a=a+Math.imul(M,ht)|0;var Et=(c+(n=n+Math.imul(b,dt)|0)|0)+((8191&(i=(i=i+Math.imul(b,gt)|0)+Math.imul(_,dt)|0))<<13)|0;c=((a=a+Math.imul(_,gt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(F,Q),i=(i=Math.imul(F,tt))+Math.imul(N,Q)|0,a=Math.imul(N,tt),n=n+Math.imul(D,rt)|0,i=(i=i+Math.imul(D,nt)|0)+Math.imul(R,rt)|0,a=a+Math.imul(R,nt)|0,n=n+Math.imul(O,at)|0,i=(i=i+Math.imul(O,ot)|0)+Math.imul(I,at)|0,a=a+Math.imul(I,ot)|0,n=n+Math.imul(C,lt)|0,i=(i=i+Math.imul(C,ct)|0)+Math.imul(L,lt)|0,a=a+Math.imul(L,ct)|0,n=n+Math.imul(T,ft)|0,i=(i=i+Math.imul(T,ht)|0)+Math.imul(S,ft)|0,a=a+Math.imul(S,ht)|0;var Ct=(c+(n=n+Math.imul(k,dt)|0)|0)+((8191&(i=(i=i+Math.imul(k,gt)|0)+Math.imul(M,dt)|0))<<13)|0;c=((a=a+Math.imul(M,gt)|0)+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(F,rt),i=(i=Math.imul(F,nt))+Math.imul(N,rt)|0,a=Math.imul(N,nt),n=n+Math.imul(D,at)|0,i=(i=i+Math.imul(D,ot)|0)+Math.imul(R,at)|0,a=a+Math.imul(R,ot)|0,n=n+Math.imul(O,lt)|0,i=(i=i+Math.imul(O,ct)|0)+Math.imul(I,lt)|0,a=a+Math.imul(I,ct)|0,n=n+Math.imul(C,ft)|0,i=(i=i+Math.imul(C,ht)|0)+Math.imul(L,ft)|0,a=a+Math.imul(L,ht)|0;var Lt=(c+(n=n+Math.imul(T,dt)|0)|0)+((8191&(i=(i=i+Math.imul(T,gt)|0)+Math.imul(S,dt)|0))<<13)|0;c=((a=a+Math.imul(S,gt)|0)+(i>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,n=Math.imul(F,at),i=(i=Math.imul(F,ot))+Math.imul(N,at)|0,a=Math.imul(N,ot),n=n+Math.imul(D,lt)|0,i=(i=i+Math.imul(D,ct)|0)+Math.imul(R,lt)|0,a=a+Math.imul(R,ct)|0,n=n+Math.imul(O,ft)|0,i=(i=i+Math.imul(O,ht)|0)+Math.imul(I,ft)|0,a=a+Math.imul(I,ht)|0;var zt=(c+(n=n+Math.imul(C,dt)|0)|0)+((8191&(i=(i=i+Math.imul(C,gt)|0)+Math.imul(L,dt)|0))<<13)|0;c=((a=a+Math.imul(L,gt)|0)+(i>>>13)|0)+(zt>>>26)|0,zt&=67108863,n=Math.imul(F,lt),i=(i=Math.imul(F,ct))+Math.imul(N,lt)|0,a=Math.imul(N,ct),n=n+Math.imul(D,ft)|0,i=(i=i+Math.imul(D,ht)|0)+Math.imul(R,ft)|0,a=a+Math.imul(R,ht)|0;var Ot=(c+(n=n+Math.imul(O,dt)|0)|0)+((8191&(i=(i=i+Math.imul(O,gt)|0)+Math.imul(I,dt)|0))<<13)|0;c=((a=a+Math.imul(I,gt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(F,ft),i=(i=Math.imul(F,ht))+Math.imul(N,ft)|0,a=Math.imul(N,ht);var It=(c+(n=n+Math.imul(D,dt)|0)|0)+((8191&(i=(i=i+Math.imul(D,gt)|0)+Math.imul(R,dt)|0))<<13)|0;c=((a=a+Math.imul(R,gt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863;var Pt=(c+(n=Math.imul(F,dt))|0)+((8191&(i=(i=Math.imul(F,gt))+Math.imul(N,dt)|0))<<13)|0;return c=((a=Math.imul(N,gt))+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,l[0]=vt,l[1]=mt,l[2]=yt,l[3]=xt,l[4]=bt,l[5]=_t,l[6]=wt,l[7]=kt,l[8]=Mt,l[9]=At,l[10]=Tt,l[11]=St,l[12]=Et,l[13]=Ct,l[14]=Lt,l[15]=zt,l[16]=Ot,l[17]=It,l[18]=Pt,0!==c&&(l[19]=c,r.length++),r};function d(t,e,r){return(new g).mulp(t,e,r)}function g(t,e){this.x=t,this.y=e}Math.imul||(p=h),a.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?p(this,t,e):r<63?h(this,t,e):r<1024?function(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,a=0;a<r.length-1;a++){var o=i;i=0;for(var s=67108863&n,l=Math.min(a,e.length-1),c=Math.max(0,a-t.length+1);c<=l;c++){var u=a-c,f=(0|t.words[u])*(0|e.words[c]),h=67108863&f;s=67108863&(h=h+s|0),i+=(o=(o=o+(f/67108864|0)|0)+(h>>>26)|0)>>>26,o&=67108863}r.words[a]=s,n=o,o=i}return 0!==n?r.words[a]=n:r.length--,r.strip()}(this,t,e):d(this,t,e)},g.prototype.makeRBT=function(t){for(var e=new Array(t),r=a.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,r,t);return e},g.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},g.prototype.permute=function(t,e,r,n,i,a){for(var o=0;o<a;o++)n[o]=e[t[o]],i[o]=r[t[o]]},g.prototype.transform=function(t,e,r,n,i,a){this.permute(a,t,e,r,n,i);for(var o=1;o<i;o<<=1)for(var s=o<<1,l=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),u=0;u<i;u+=s)for(var f=l,h=c,p=0;p<o;p++){var d=r[u+p],g=n[u+p],v=r[u+p+o],m=n[u+p+o],y=f*v-h*m;m=f*m+h*v,v=y,r[u+p]=d+v,n[u+p]=g+m,r[u+p+o]=d-v,n[u+p+o]=g-m,p!==s&&(y=l*f-c*h,h=l*h+c*f,f=y)}},g.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},g.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},g.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&i,r=i<67108864?0:i/67108864|0}return t},g.prototype.convert13b=function(t,e,r,i){for(var a=0,o=0;o<e;o++)a+=0|t[o],r[2*o]=8191&a,a>>>=13,r[2*o+1]=8191&a,a>>>=13;for(o=2*e;o<i;++o)r[o]=0;n(0===a),n(0==(-8192&a))},g.prototype.stub=function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=0;return e},g.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),a=this.stub(n),o=new Array(n),s=new Array(n),l=new Array(n),c=new Array(n),u=new Array(n),f=new Array(n),h=r.words;h.length=n,this.convert13b(t.words,t.length,o,n),this.convert13b(e.words,e.length,c,n),this.transform(o,a,s,l,n,i),this.transform(c,a,u,f,n,i);for(var p=0;p<n;p++){var d=s[p]*u[p]-l[p]*f[p];l[p]=s[p]*f[p]+l[p]*u[p],s[p]=d}return this.conjugate(s,l,n),this.transform(s,l,h,a,n,i),this.conjugate(h,a,n),this.normalize13b(h,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r.strip()},a.prototype.mul=function(t){var e=new a(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},a.prototype.mulf=function(t){var e=new a(null);return e.words=new Array(this.length+t.length),d(this,t,e)},a.prototype.imul=function(t){return this.clone().mulTo(t,this)},a.prototype.imuln=function(t){n(\"number\"==typeof t),n(t<67108864);for(var e=0,r=0;r<this.length;r++){var i=(0|this.words[r])*t,a=(67108863&i)+(67108863&e);e>>=26,e+=i/67108864|0,e+=a>>>26,this.words[r]=67108863&a}return 0!==e&&(this.words[r]=e,this.length++),this},a.prototype.muln=function(t){return this.clone().imuln(t)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,i=r%26;e[r]=(t.words[n]&1<<i)>>>i}return e}(t);if(0===e.length)return new a(1);for(var r=this,n=0;n<e.length&&0===e[n];n++,r=r.sqr());if(++n<e.length)for(var i=r.sqr();n<e.length;n++,i=i.sqr())0!==e[n]&&(r=r.mul(i));return r},a.prototype.iushln=function(t){n(\"number\"==typeof t&&t>=0);var e,r=t%26,i=(t-r)/26,a=67108863>>>26-r<<26-r;if(0!==r){var o=0;for(e=0;e<this.length;e++){var s=this.words[e]&a,l=(0|this.words[e])-s<<r;this.words[e]=l|o,o=s>>>26-r}o&&(this.words[e]=o,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this.strip()},a.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},a.prototype.iushrn=function(t,e,r){var i;n(\"number\"==typeof t&&t>=0),i=e?(e-e%26)/26:0;var a=t%26,o=Math.min((t-a)/26,this.length),s=67108863^67108863>>>a<<a,l=r;if(i-=o,i=Math.max(0,i),l){for(var c=0;c<o;c++)l.words[c]=this.words[c];l.length=o}if(0===o);else if(this.length>o)for(this.length-=o,c=0;c<this.length;c++)this.words[c]=this.words[c+o];else this.words[0]=0,this.length=1;var u=0;for(c=this.length-1;c>=0&&(0!==u||c>=i);c--){var f=0|this.words[c];this.words[c]=u<<26-a|f>>>a,u=f&s}return l&&0!==u&&(l.words[l.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},a.prototype.shln=function(t){return this.clone().ishln(t)},a.prototype.ushln=function(t){return this.clone().iushln(t)},a.prototype.shrn=function(t){return this.clone().ishrn(t)},a.prototype.ushrn=function(t){return this.clone().iushrn(t)},a.prototype.testn=function(t){n(\"number\"==typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<<e;return!(this.length<=r)&&!!(this.words[r]&i)},a.prototype.imaskn=function(t){n(\"number\"==typeof t&&t>=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,\"imaskn works only with positive numbers\"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this.strip()},a.prototype.maskn=function(t){return this.clone().imaskn(t)},a.prototype.iaddn=function(t){return n(\"number\"==typeof t),n(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},a.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},a.prototype.isubn=function(t){if(n(\"number\"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},a.prototype.addn=function(t){return this.clone().iaddn(t)},a.prototype.subn=function(t){return this.clone().isubn(t)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(t,e,r){var i,a,o=t.length+r;this._expand(o);var s=0;for(i=0;i<t.length;i++){a=(0|this.words[i+r])+s;var l=(0|t.words[i])*e;s=((a-=67108863&l)>>26)-(l/67108864|0),this.words[i+r]=67108863&a}for(;i<this.length-r;i++)s=(a=(0|this.words[i+r])+s)>>26,this.words[i+r]=67108863&a;if(0===s)return this.strip();for(n(-1===s),s=0,i=0;i<this.length;i++)s=(a=-(0|this.words[i])+s)>>26,this.words[i]=67108863&a;return this.negative=1,this.strip()},a.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),i=t,o=0|i.words[i.length-1];0!==(r=26-this._countBits(o))&&(i=i.ushln(r),n.iushln(r),o=0|i.words[i.length-1]);var s,l=n.length-i.length;if(\"mod\"!==e){(s=new a(null)).length=l+1,s.words=new Array(s.length);for(var c=0;c<s.length;c++)s.words[c]=0}var u=n.clone()._ishlnsubmul(i,1,l);0===u.negative&&(n=u,s&&(s.words[l]=1));for(var f=l-1;f>=0;f--){var h=67108864*(0|n.words[i.length+f])+(0|n.words[i.length+f-1]);for(h=Math.min(h/o|0,67108863),n._ishlnsubmul(i,h,f);0!==n.negative;)h--,n.negative=0,n._ishlnsubmul(i,1,f),n.isZero()||(n.negative^=1);s&&(s.words[f]=h)}return s&&s.strip(),n.strip(),\"div\"!==e&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},a.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),\"mod\"!==e&&(i=s.div.neg()),\"div\"!==e&&(o=s.mod.neg(),r&&0!==o.negative&&o.iadd(t)),{div:i,mod:o}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),\"mod\"!==e&&(i=s.div.neg()),{div:i,mod:s.mod}):0!=(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),\"div\"!==e&&(o=s.mod.neg(),r&&0!==o.negative&&o.isub(t)),{div:s.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new a(0),mod:this}:1===t.length?\"div\"===e?{div:this.divn(t.words[0]),mod:null}:\"mod\"===e?{div:null,mod:new a(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new a(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,o,s},a.prototype.div=function(t){return this.divmod(t,\"div\",!1).div},a.prototype.mod=function(t){return this.divmod(t,\"mod\",!1).mod},a.prototype.umod=function(t){return this.divmod(t,\"mod\",!0).mod},a.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),a=r.cmp(n);return a<0||1===i&&0===a?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},a.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,r=0,i=this.length-1;i>=0;i--)r=(e*r+(0|this.words[i]))%t;return r},a.prototype.idivn=function(t){n(t<=67108863);for(var e=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*e;this.words[r]=i/t|0,e=i%t}return this.strip()},a.prototype.divn=function(t){return this.clone().idivn(t)},a.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new a(1),o=new a(0),s=new a(0),l=new a(1),c=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++c;for(var u=r.clone(),f=e.clone();!e.isZero();){for(var h=0,p=1;0==(e.words[0]&p)&&h<26;++h,p<<=1);if(h>0)for(e.iushrn(h);h-- >0;)(i.isOdd()||o.isOdd())&&(i.iadd(u),o.isub(f)),i.iushrn(1),o.iushrn(1);for(var d=0,g=1;0==(r.words[0]&g)&&d<26;++d,g<<=1);if(d>0)for(r.iushrn(d);d-- >0;)(s.isOdd()||l.isOdd())&&(s.iadd(u),l.isub(f)),s.iushrn(1),l.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(s),o.isub(l)):(r.isub(e),s.isub(i),l.isub(o))}return{a:s,b:l,gcd:r.iushln(c)}},a.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,o=new a(1),s=new a(0),l=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var c=0,u=1;0==(e.words[0]&u)&&c<26;++c,u<<=1);if(c>0)for(e.iushrn(c);c-- >0;)o.isOdd()&&o.iadd(l),o.iushrn(1);for(var f=0,h=1;0==(r.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(r.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(l),s.iushrn(1);e.cmp(r)>=0?(e.isub(r),o.isub(s)):(r.isub(e),s.isub(o))}return(i=0===e.cmpn(1)?o:s).cmpn(0)<0&&i.iadd(t),i},a.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var a=e;e=r,r=a}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},a.prototype.invm=function(t){return this.egcd(t).a.umod(t)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(t){return this.words[0]&t},a.prototype.bincn=function(t){n(\"number\"==typeof t);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var a=i,o=r;0!==a&&o<this.length;o++){var s=0|this.words[o];a=(s+=a)>>>26,s&=67108863,this.words[o]=s}return 0!==a&&(this.words[o]=a,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,\"Number is too big\");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},a.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},a.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:n>i&&(e=1);break}}return e},a.prototype.gtn=function(t){return 1===this.cmpn(t)},a.prototype.gt=function(t){return 1===this.cmp(t)},a.prototype.gten=function(t){return this.cmpn(t)>=0},a.prototype.gte=function(t){return this.cmp(t)>=0},a.prototype.ltn=function(t){return-1===this.cmpn(t)},a.prototype.lt=function(t){return-1===this.cmp(t)},a.prototype.lten=function(t){return this.cmpn(t)<=0},a.prototype.lte=function(t){return this.cmp(t)<=0},a.prototype.eqn=function(t){return 0===this.cmpn(t)},a.prototype.eq=function(t){return 0===this.cmp(t)},a.red=function(t){return new w(t)},a.prototype.toRed=function(t){return n(!this.red,\"Already a number in reduction context\"),n(0===this.negative,\"red works only with positives\"),t.convertTo(this)._forceRed(t)},a.prototype.fromRed=function(){return n(this.red,\"fromRed works only with numbers in reduction context\"),this.red.convertFrom(this)},a.prototype._forceRed=function(t){return this.red=t,this},a.prototype.forceRed=function(t){return n(!this.red,\"Already a number in reduction context\"),this._forceRed(t)},a.prototype.redAdd=function(t){return n(this.red,\"redAdd works only with red numbers\"),this.red.add(this,t)},a.prototype.redIAdd=function(t){return n(this.red,\"redIAdd works only with red numbers\"),this.red.iadd(this,t)},a.prototype.redSub=function(t){return n(this.red,\"redSub works only with red numbers\"),this.red.sub(this,t)},a.prototype.redISub=function(t){return n(this.red,\"redISub works only with red numbers\"),this.red.isub(this,t)},a.prototype.redShl=function(t){return n(this.red,\"redShl works only with red numbers\"),this.red.shl(this,t)},a.prototype.redMul=function(t){return n(this.red,\"redMul works only with red numbers\"),this.red._verify2(this,t),this.red.mul(this,t)},a.prototype.redIMul=function(t){return n(this.red,\"redMul works only with red numbers\"),this.red._verify2(this,t),this.red.imul(this,t)},a.prototype.redSqr=function(){return n(this.red,\"redSqr works only with red numbers\"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return n(this.red,\"redISqr works only with red numbers\"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return n(this.red,\"redSqrt works only with red numbers\"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return n(this.red,\"redInvm works only with red numbers\"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return n(this.red,\"redNeg works only with red numbers\"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(t){return n(this.red&&!t.red,\"redPow(normalNum)\"),this.red._verify1(this),this.red.pow(this,t)};var v={k256:null,p224:null,p192:null,p25519:null};function m(t,e){this.name=t,this.p=new a(e,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function y(){m.call(this,\"k256\",\"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f\")}function x(){m.call(this,\"p224\",\"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001\")}function b(){m.call(this,\"p192\",\"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff\")}function _(){m.call(this,\"25519\",\"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed\")}function w(t){if(\"string\"==typeof t){var e=a._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),\"modulus must be greater than 1\"),this.m=t,this.prime=null}function k(t){w.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}m.prototype._tmp=function(){var t=new a(null);return t.words=new Array(Math.ceil(this.n/13)),t},m.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):r.strip(),r},m.prototype.split=function(t,e){t.iushrn(this.n,0,e)},m.prototype.imulK=function(t){return t.imul(this.k)},i(y,m),y.prototype.split=function(t,e){for(var r=Math.min(t.length,9),n=0;n<r;n++)e.words[n]=t.words[n];if(e.length=r,t.length<=9)return t.words[0]=0,void(t.length=1);var i=t.words[9];for(e.words[e.length++]=4194303&i,n=10;n<t.length;n++){var a=0|t.words[n];t.words[n-10]=(4194303&a)<<4|i>>>22,i=a}i>>>=22,t.words[n-10]=i,0===i&&t.length>10?t.length-=10:t.length-=9},y.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(x,m),i(b,m),i(_,m),_.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=19*(0|t.words[r])+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},a._prime=function(t){if(v[t])return v[t];var e;if(\"k256\"===t)e=new y;else if(\"p224\"===t)e=new x;else if(\"p192\"===t)e=new b;else{if(\"p25519\"!==t)throw new Error(\"Unknown prime \"+t);e=new _}return v[t]=e,e},w.prototype._verify1=function(t){n(0===t.negative,\"red works only with positives\"),n(t.red,\"red works only with red numbers\")},w.prototype._verify2=function(t,e){n(0==(t.negative|e.negative),\"red works only with positives\"),n(t.red&&t.red===e.red,\"red works only with red numbers\")},w.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},w.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},w.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},w.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},w.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},w.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},w.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},w.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},w.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},w.prototype.isqr=function(t){return this.imul(t,t.clone())},w.prototype.sqr=function(t){return this.mul(t,t)},w.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var r=this.m.add(new a(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),o=0;!i.isZero()&&0===i.andln(1);)o++,i.iushrn(1);n(!i.isZero());var s=new a(1).toRed(this),l=s.redNeg(),c=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new a(2*u*u).toRed(this);0!==this.pow(u,c).cmp(l);)u.redIAdd(l);for(var f=this.pow(u,i),h=this.pow(t,i.addn(1).iushrn(1)),p=this.pow(t,i),d=o;0!==p.cmp(s);){for(var g=p,v=0;0!==g.cmp(s);v++)g=g.redSqr();n(v<d);var m=this.pow(f,new a(1).iushln(d-v-1));h=h.redMul(m),f=m.redSqr(),p=p.redMul(f),d=v}return h},w.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},w.prototype.pow=function(t,e){if(e.isZero())return new a(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=new Array(16);r[0]=new a(1).toRed(this),r[1]=t;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],t);var i=r[0],o=0,s=0,l=e.bitLength()%26;for(0===l&&(l=26),n=e.length-1;n>=0;n--){for(var c=e.words[n],u=l-1;u>=0;u--){var f=c>>u&1;i!==r[0]&&(i=this.sqr(i)),0!==f||0!==o?(o<<=1,o|=f,(4===++s||0===n&&0===u)&&(i=this.mul(i,r[o]),s=0,o=0)):s=0}l=26}return i},w.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},w.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},a.mont=function(t){return new k(t)},i(k,w),k.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},k.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},k.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},k.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new a(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},k.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(\"undefined\"==typeof e||e,this)},{buffer:91}],83:[function(t,e,r){\"use strict\";e.exports=function(t){var e,r,n,i=t.length,a=0;for(e=0;e<i;++e)a+=t[e].length;var o=new Array(a),s=0;for(e=0;e<i;++e){var l=t[e],c=l.length;for(r=0;r<c;++r){var u=o[s++]=new Array(c-1),f=0;for(n=0;n<c;++n)n!==r&&(u[f++]=l[n]);if(1&r){var h=u[1];u[1]=u[0],u[0]=h}}}return o}},{}],84:[function(t,e,r){\"use strict\";e.exports=function(t,e,r){switch(arguments.length){case 1:return n=[],c(i=t,i,u,!0),n;case 2:return\"function\"==typeof e?c(t,t,e,!0):function(t,e){return n=[],c(t,e,u,!1),n}(t,e);case 3:return c(t,e,r,!1);default:throw new Error(\"box-intersect: Invalid arguments\")}var i};var n,i=t(\"typedarray-pool\"),a=t(\"./lib/sweep\"),o=t(\"./lib/intersect\");function s(t,e){for(var r=0;r<t;++r)if(!(e[r]<=e[r+t]))return!0;return!1}function l(t,e,r,n){for(var i=0,a=0,o=0,l=t.length;o<l;++o){var c=t[o];if(!s(e,c)){for(var u=0;u<2*e;++u)r[i++]=c[u];n[a++]=o}}return a}function c(t,e,r,n){var s=t.length,c=e.length;if(!(s<=0||c<=0)){var u=t[0].length>>>1;if(!(u<=0)){var f,h=i.mallocDouble(2*u*s),p=i.mallocInt32(s);if((s=l(t,u,h,p))>0){if(1===u&&n)a.init(s),f=a.sweepComplete(u,r,0,s,h,p,0,s,h,p);else{var d=i.mallocDouble(2*u*c),g=i.mallocInt32(c);(c=l(e,u,d,g))>0&&(a.init(s+c),f=1===u?a.sweepBipartite(u,r,0,s,h,p,0,c,d,g):o(u,r,n,s,h,p,c,d,g),i.free(d),i.free(g))}i.free(h),i.free(p)}return f}}}function u(t,e){n.push([t,e])}},{\"./lib/intersect\":86,\"./lib/sweep\":90,\"typedarray-pool\":522}],85:[function(t,e,r){\"use strict\";var n=\"d\",i=\"ax\",a=\"vv\",o=\"fp\",s=\"es\",l=\"rs\",c=\"re\",u=\"rb\",f=\"ri\",h=\"rp\",p=\"bs\",d=\"be\",g=\"bb\",v=\"bi\",m=\"bp\",y=\"rv\",x=\"Q\",b=[n,i,a,l,c,u,f,p,d,g,v];function _(t){var e=\"bruteForce\"+(t?\"Full\":\"Partial\"),r=[],_=b.slice();t||_.splice(3,0,o);var w=[\"function \"+e+\"(\"+_.join()+\"){\"];function k(e,o){var _=function(t,e,r){var o=\"bruteForce\"+(t?\"Red\":\"Blue\")+(e?\"Flip\":\"\")+(r?\"Full\":\"\"),_=[\"function \",o,\"(\",b.join(),\"){\",\"var \",s,\"=2*\",n,\";\"],w=\"for(var i=\"+l+\",\"+h+\"=\"+s+\"*\"+l+\";i<\"+c+\";++i,\"+h+\"+=\"+s+\"){var x0=\"+u+\"[\"+i+\"+\"+h+\"],x1=\"+u+\"[\"+i+\"+\"+h+\"+\"+n+\"],xi=\"+f+\"[i];\",k=\"for(var j=\"+p+\",\"+m+\"=\"+s+\"*\"+p+\";j<\"+d+\";++j,\"+m+\"+=\"+s+\"){var y0=\"+g+\"[\"+i+\"+\"+m+\"],\"+(r?\"y1=\"+g+\"[\"+i+\"+\"+m+\"+\"+n+\"],\":\"\")+\"yi=\"+v+\"[j];\";return t?_.push(w,x,\":\",k):_.push(k,x,\":\",w),r?_.push(\"if(y1<x0||x1<y0)continue;\"):e?_.push(\"if(y0<=x0||x1<y0)continue;\"):_.push(\"if(y0<x0||x1<y0)continue;\"),_.push(\"for(var k=\"+i+\"+1;k<\"+n+\";++k){var r0=\"+u+\"[k+\"+h+\"],r1=\"+u+\"[k+\"+n+\"+\"+h+\"],b0=\"+g+\"[k+\"+m+\"],b1=\"+g+\"[k+\"+n+\"+\"+m+\"];if(r1<b0||b1<r0)continue \"+x+\";}var \"+y+\"=\"+a+\"(\"),e?_.push(\"yi,xi\"):_.push(\"xi,yi\"),_.push(\");if(\"+y+\"!==void 0)return \"+y+\";}}}\"),{name:o,code:_.join(\"\")}}(e,o,t);r.push(_.code),w.push(\"return \"+_.name+\"(\"+b.join()+\");\")}w.push(\"if(\"+c+\"-\"+l+\">\"+d+\"-\"+p+\"){\"),t?(k(!0,!1),w.push(\"}else{\"),k(!1,!1)):(w.push(\"if(\"+o+\"){\"),k(!0,!0),w.push(\"}else{\"),k(!0,!1),w.push(\"}}else{if(\"+o+\"){\"),k(!1,!0),w.push(\"}else{\"),k(!1,!1),w.push(\"}\")),w.push(\"}}return \"+e);var M=r.join(\"\")+w.join(\"\");return new Function(M)()}r.partial=_(!1),r.full=_(!0)},{}],86:[function(t,e,r){\"use strict\";e.exports=function(t,e,r,a,u,S,E,C,L){!function(t,e){var r=8*i.log2(e+1)*(t+1)|0,a=i.nextPow2(b*r);w.length<a&&(n.free(w),w=n.mallocInt32(a));var o=i.nextPow2(_*r);k<o&&(n.free(k),k=n.mallocDouble(o))}(t,a+E);var z,O=0,I=2*t;M(O++,0,0,a,0,E,r?16:0,-1/0,1/0),r||M(O++,0,0,E,0,a,1,-1/0,1/0);for(;O>0;){var P=(O-=1)*b,D=w[P],R=w[P+1],B=w[P+2],F=w[P+3],N=w[P+4],j=w[P+5],V=O*_,U=k[V],q=k[V+1],H=1&j,G=!!(16&j),W=u,Y=S,X=C,Z=L;if(H&&(W=C,Y=L,X=u,Z=S),!(2&j&&(B=v(t,D,R,B,W,Y,q),R>=B)||4&j&&(R=m(t,D,R,B,W,Y,U))>=B)){var $=B-R,J=N-F;if(G){if(t*$*($+J)<p){if(void 0!==(z=l.scanComplete(t,D,e,R,B,W,Y,F,N,X,Z)))return z;continue}}else{if(t*Math.min($,J)<f){if(void 0!==(z=o(t,D,e,H,R,B,W,Y,F,N,X,Z)))return z;continue}if(t*$*J<h){if(void 0!==(z=l.scanBipartite(t,D,e,H,R,B,W,Y,F,N,X,Z)))return z;continue}}var K=d(t,D,R,B,W,Y,U,q);if(R<K)if(t*(K-R)<f){if(void 0!==(z=s(t,D+1,e,R,K,W,Y,F,N,X,Z)))return z}else if(D===t-2){if(void 0!==(z=H?l.sweepBipartite(t,e,F,N,X,Z,R,K,W,Y):l.sweepBipartite(t,e,R,K,W,Y,F,N,X,Z)))return z}else M(O++,D+1,R,K,F,N,H,-1/0,1/0),M(O++,D+1,F,N,R,K,1^H,-1/0,1/0);if(K<B){var Q=c(t,D,F,N,X,Z),tt=X[I*Q+D],et=g(t,D,Q,N,X,Z,tt);if(et<N&&M(O++,D,K,B,et,N,(4|H)+(G?16:0),tt,q),F<Q&&M(O++,D,K,B,F,Q,(2|H)+(G?16:0),U,tt),Q+1===et){if(void 0!==(z=G?T(t,D,e,K,B,W,Y,Q,X,Z[Q]):A(t,D,e,H,K,B,W,Y,Q,X,Z[Q])))return z}else if(Q<et){var rt;if(G){if(rt=y(t,D,K,B,W,Y,tt),K<rt){var nt=g(t,D,K,rt,W,Y,tt);if(D===t-2){if(K<nt&&void 0!==(z=l.sweepComplete(t,e,K,nt,W,Y,Q,et,X,Z)))return z;if(nt<rt&&void 0!==(z=l.sweepBipartite(t,e,nt,rt,W,Y,Q,et,X,Z)))return z}else K<nt&&M(O++,D+1,K,nt,Q,et,16,-1/0,1/0),nt<rt&&(M(O++,D+1,nt,rt,Q,et,0,-1/0,1/0),M(O++,D+1,Q,et,nt,rt,1,-1/0,1/0))}}else rt=H?x(t,D,K,B,W,Y,tt):y(t,D,K,B,W,Y,tt),K<rt&&(D===t-2?z=H?l.sweepBipartite(t,e,Q,et,X,Z,K,rt,W,Y):l.sweepBipartite(t,e,K,rt,W,Y,Q,et,X,Z):(M(O++,D+1,K,rt,Q,et,H,-1/0,1/0),M(O++,D+1,Q,et,K,rt,1^H,-1/0,1/0)))}}}}};var n=t(\"typedarray-pool\"),i=t(\"bit-twiddle\"),a=t(\"./brute\"),o=a.partial,s=a.full,l=t(\"./sweep\"),c=t(\"./median\"),u=t(\"./partition\"),f=128,h=1<<22,p=1<<22,d=u(\"!(lo>=p0)&&!(p1>=hi)\",[\"p0\",\"p1\"]),g=u(\"lo===p0\",[\"p0\"]),v=u(\"lo<p0\",[\"p0\"]),m=u(\"hi<=p0\",[\"p0\"]),y=u(\"lo<=p0&&p0<=hi\",[\"p0\"]),x=u(\"lo<p0&&p0<=hi\",[\"p0\"]),b=6,_=2,w=n.mallocInt32(1024),k=n.mallocDouble(1024);function M(t,e,r,n,i,a,o,s,l){var c=b*t;w[c]=e,w[c+1]=r,w[c+2]=n,w[c+3]=i,w[c+4]=a,w[c+5]=o;var u=_*t;k[u]=s,k[u+1]=l}function A(t,e,r,n,i,a,o,s,l,c,u){var f=2*t,h=l*f,p=c[h+e];t:for(var d=i,g=i*f;d<a;++d,g+=f){var v=o[g+e],m=o[g+e+t];if(!(p<v||m<p)&&(!n||p!==v)){for(var y,x=s[d],b=e+1;b<t;++b){v=o[g+b],m=o[g+b+t];var _=c[h+b],w=c[h+b+t];if(m<_||w<v)continue t}if(void 0!==(y=n?r(u,x):r(x,u)))return y}}}function T(t,e,r,n,i,a,o,s,l,c){var u=2*t,f=s*u,h=l[f+e];t:for(var p=n,d=n*u;p<i;++p,d+=u){var g=o[p];if(g!==c){var v=a[d+e],m=a[d+e+t];if(!(h<v||m<h)){for(var y=e+1;y<t;++y){v=a[d+y],m=a[d+y+t];var x=l[f+y],b=l[f+y+t];if(m<x||b<v)continue t}var _=r(g,c);if(void 0!==_)return _}}}}},{\"./brute\":85,\"./median\":87,\"./partition\":88,\"./sweep\":90,\"bit-twiddle\":80,\"typedarray-pool\":522}],87:[function(t,e,r){\"use strict\";e.exports=function(t,e,r,o,s,l){if(o<=r+1)return r;var c=r,u=o,f=o+r>>>1,h=2*t,p=f,d=s[h*f+e];for(;c<u;){if(u-c<i){a(t,e,c,u,s,l),d=s[h*f+e];break}var g=u-c,v=Math.random()*g+c|0,m=s[h*v+e],y=Math.random()*g+c|0,x=s[h*y+e],b=Math.random()*g+c|0,_=s[h*b+e];m<=x?_>=x?(p=y,d=x):m>=_?(p=v,d=m):(p=b,d=_):x>=_?(p=y,d=x):_>=m?(p=v,d=m):(p=b,d=_);for(var w=h*(u-1),k=h*p,M=0;M<h;++M,++w,++k){var A=s[w];s[w]=s[k],s[k]=A}var T=l[u-1];l[u-1]=l[p],l[p]=T,p=n(t,e,c,u-1,s,l,d);for(var w=h*(u-1),k=h*p,M=0;M<h;++M,++w,++k){var A=s[w];s[w]=s[k],s[k]=A}var T=l[u-1];if(l[u-1]=l[p],l[p]=T,f<p){for(u=p-1;c<u&&s[h*(u-1)+e]===d;)u-=1;u+=1}else{if(!(p<f))break;for(c=p+1;c<u&&s[h*c+e]===d;)c+=1}}return n(t,e,r,f,s,l,s[h*f+e])};var n=t(\"./partition\")(\"lo<p0\",[\"p0\"]),i=8;function a(t,e,r,n,i,a){for(var o=2*t,s=o*(r+1)+e,l=r+1;l<n;++l,s+=o)for(var c=i[s],u=l,f=o*(l-1);u>r&&i[f+e]>c;--u,f-=o){for(var h=f,p=f+o,d=0;d<o;++d,++h,++p){var g=i[h];i[h]=i[p],i[p]=g}var v=a[u];a[u]=a[u-1],a[u-1]=v}}},{\"./partition\":88}],88:[function(t,e,r){\"use strict\";e.exports=function(t,e){var r=\"abcdef\".split(\"\").concat(e),i=[];t.indexOf(\"lo\")>=0&&i.push(\"lo=e[k+n]\");t.indexOf(\"hi\")>=0&&i.push(\"hi=e[k+o]\");return r.push(n.replace(\"_\",i.join()).replace(\"$\",t)),Function.apply(void 0,r)};var n=\"for(var j=2*a,k=j*c,l=k,m=c,n=b,o=a+b,p=c;d>p;++p,k+=j){var _;if($)if(m===p)m+=1,l+=j;else{for(var s=0;j>s;++s){var t=e[k+s];e[k+s]=e[l],e[l++]=t}var u=f[p];f[p]=f[m],f[m++]=u}}return m\"},{}],89:[function(t,e,r){\"use strict\";e.exports=function(t,e){e<=4*n?i(0,e-1,t):function t(e,r,f){var h=(r-e+1)/6|0,p=e+h,d=r-h,g=e+r>>1,v=g-h,m=g+h,y=p,x=v,b=g,_=m,w=d,k=e+1,M=r-1,A=0;c(y,x,f)&&(A=y,y=x,x=A);c(_,w,f)&&(A=_,_=w,w=A);c(y,b,f)&&(A=y,y=b,b=A);c(x,b,f)&&(A=x,x=b,b=A);c(y,_,f)&&(A=y,y=_,_=A);c(b,_,f)&&(A=b,b=_,_=A);c(x,w,f)&&(A=x,x=w,w=A);c(x,b,f)&&(A=x,x=b,b=A);c(_,w,f)&&(A=_,_=w,w=A);var T=f[2*x];var S=f[2*x+1];var E=f[2*_];var C=f[2*_+1];var L=2*y;var z=2*b;var O=2*w;var I=2*p;var P=2*g;var D=2*d;for(var R=0;R<2;++R){var B=f[L+R],F=f[z+R],N=f[O+R];f[I+R]=B,f[P+R]=F,f[D+R]=N}o(v,e,f);o(m,r,f);for(var j=k;j<=M;++j)if(u(j,T,S,f))j!==k&&a(j,k,f),++k;else if(!u(j,E,C,f))for(;;){if(u(M,E,C,f)){u(M,T,S,f)?(s(j,k,M,f),++k,--M):(a(j,M,f),--M);break}if(--M<j)break}l(e,k-1,T,S,f);l(r,M+1,E,C,f);k-2-e<=n?i(e,k-2,f):t(e,k-2,f);r-(M+2)<=n?i(M+2,r,f):t(M+2,r,f);M-k<=n?i(k,M,f):t(k,M,f)}(0,e-1,t)};var n=32;function i(t,e,r){for(var n=2*(t+1),i=t+1;i<=e;++i){for(var a=r[n++],o=r[n++],s=i,l=n-2;s-- >t;){var c=r[l-2],u=r[l-1];if(c<a)break;if(c===a&&u<o)break;r[l]=c,r[l+1]=u,l-=2}r[l]=a,r[l+1]=o}}function a(t,e,r){e*=2;var n=r[t*=2],i=r[t+1];r[t]=r[e],r[t+1]=r[e+1],r[e]=n,r[e+1]=i}function o(t,e,r){e*=2,r[t*=2]=r[e],r[t+1]=r[e+1]}function s(t,e,r,n){e*=2,r*=2;var i=n[t*=2],a=n[t+1];n[t]=n[e],n[t+1]=n[e+1],n[e]=n[r],n[e+1]=n[r+1],n[r]=i,n[r+1]=a}function l(t,e,r,n,i){e*=2,i[t*=2]=i[e],i[e]=r,i[t+1]=i[e+1],i[e+1]=n}function c(t,e,r){e*=2;var n=r[t*=2],i=r[e];return!(n<i)&&(n!==i||r[t+1]>r[e+1])}function u(t,e,r,n){var i=n[t*=2];return i<e||i===e&&n[t+1]<r}},{}],90:[function(t,e,r){\"use strict\";e.exports={init:function(t){var e=i.nextPow2(t);s.length<e&&(n.free(s),s=n.mallocInt32(e));l.length<e&&(n.free(l),l=n.mallocInt32(e));c.length<e&&(n.free(c),c=n.mallocInt32(e));u.length<e&&(n.free(u),u=n.mallocInt32(e));f.length<e&&(n.free(f),f=n.mallocInt32(e));h.length<e&&(n.free(h),h=n.mallocInt32(e));var r=8*e;p.length<r&&(n.free(p),p=n.mallocDouble(r))},sweepBipartite:function(t,e,r,n,i,f,h,v,m,y){for(var x=0,b=2*t,_=t-1,w=b-1,k=r;k<n;++k){var M=f[k],A=b*k;p[x++]=i[A+_],p[x++]=-(M+1),p[x++]=i[A+w],p[x++]=M}for(var k=h;k<v;++k){var M=y[k]+o,T=b*k;p[x++]=m[T+_],p[x++]=-M,p[x++]=m[T+w],p[x++]=M}var S=x>>>1;a(p,S);for(var E=0,C=0,k=0;k<S;++k){var L=0|p[2*k+1];if(L>=o)d(c,u,C--,L=L-o|0);else if(L>=0)d(s,l,E--,L);else if(L<=-o){L=-L-o|0;for(var z=0;z<E;++z){var O=e(s[z],L);if(void 0!==O)return O}g(c,u,C++,L)}else{L=-L-1|0;for(var z=0;z<C;++z){var O=e(L,c[z]);if(void 0!==O)return O}g(s,l,E++,L)}}},sweepComplete:function(t,e,r,n,i,o,v,m,y,x){for(var b=0,_=2*t,w=t-1,k=_-1,M=r;M<n;++M){var A=o[M]+1<<1,T=_*M;p[b++]=i[T+w],p[b++]=-A,p[b++]=i[T+k],p[b++]=A}for(var M=v;M<m;++M){var A=x[M]+1<<1,S=_*M;p[b++]=y[S+w],p[b++]=1|-A,p[b++]=y[S+k],p[b++]=1|A}var E=b>>>1;a(p,E);for(var C=0,L=0,z=0,M=0;M<E;++M){var O=0|p[2*M+1],I=1&O;if(M<E-1&&O>>1==p[2*M+3]>>1&&(I=2,M+=1),O<0){for(var P=-(O>>1)-1,D=0;D<z;++D){var R=e(f[D],P);if(void 0!==R)return R}if(0!==I)for(var D=0;D<C;++D){var R=e(s[D],P);if(void 0!==R)return R}if(1!==I)for(var D=0;D<L;++D){var R=e(c[D],P);if(void 0!==R)return R}0===I?g(s,l,C++,P):1===I?g(c,u,L++,P):2===I&&g(f,h,z++,P)}else{var P=(O>>1)-1;0===I?d(s,l,C--,P):1===I?d(c,u,L--,P):2===I&&d(f,h,z--,P)}}},scanBipartite:function(t,e,r,n,i,c,u,f,h,v,m,y){var x=0,b=2*t,_=e,w=e+t,k=1,M=1;n?M=o:k=o;for(var A=i;A<c;++A){var T=A+k,S=b*A;p[x++]=u[S+_],p[x++]=-T,p[x++]=u[S+w],p[x++]=T}for(var A=h;A<v;++A){var T=A+M,E=b*A;p[x++]=m[E+_],p[x++]=-T}var C=x>>>1;a(p,C);for(var L=0,A=0;A<C;++A){var z=0|p[2*A+1];if(z<0){var T=-z,O=!1;if(T>=o?(O=!n,T-=o):(O=!!n,T-=1),O)g(s,l,L++,T);else{var I=y[T],P=b*T,D=m[P+e+1],R=m[P+e+1+t];t:for(var B=0;B<L;++B){var F=s[B],N=b*F;if(!(R<u[N+e+1]||u[N+e+1+t]<D)){for(var j=e+2;j<t;++j)if(m[P+j+t]<u[N+j]||u[N+j+t]<m[P+j])continue t;var V,U=f[F];if(void 0!==(V=n?r(I,U):r(U,I)))return V}}}}else d(s,l,L--,z-k)}},scanComplete:function(t,e,r,n,i,l,c,u,f,h,d){for(var g=0,v=2*t,m=e,y=e+t,x=n;x<i;++x){var b=x+o,_=v*x;p[g++]=l[_+m],p[g++]=-b,p[g++]=l[_+y],p[g++]=b}for(var x=u;x<f;++x){var b=x+1,w=v*x;p[g++]=h[w+m],p[g++]=-b}var k=g>>>1;a(p,k);for(var M=0,x=0;x<k;++x){var A=0|p[2*x+1];if(A<0){var b=-A;if(b>=o)s[M++]=b-o;else{var T=d[b-=1],S=v*b,E=h[S+e+1],C=h[S+e+1+t];t:for(var L=0;L<M;++L){var z=s[L],O=c[z];if(O===T)break;var I=v*z;if(!(C<l[I+e+1]||l[I+e+1+t]<E)){for(var P=e+2;P<t;++P)if(h[S+P+t]<l[I+P]||l[I+P+t]<h[S+P])continue t;var D=r(O,T);if(void 0!==D)return D}}}}else{for(var b=A-o,L=M-1;L>=0;--L)if(s[L]===b){for(var P=L+1;P<M;++P)s[P-1]=s[P];break}--M}}}};var n=t(\"typedarray-pool\"),i=t(\"bit-twiddle\"),a=t(\"./sort\"),o=1<<28,s=n.mallocInt32(1024),l=n.mallocInt32(1024),c=n.mallocInt32(1024),u=n.mallocInt32(1024),f=n.mallocInt32(1024),h=n.mallocInt32(1024),p=n.mallocDouble(8192);function d(t,e,r,n){var i=e[n],a=t[r-1];t[i]=a,e[a]=i}function g(t,e,r,n){t[r]=n,e[n]=r}},{\"./sort\":89,\"bit-twiddle\":80,\"typedarray-pool\":522}],91:[function(t,e,r){},{}],92:[function(t,e,r){var n=Object.create||function(t){var e=function(){};return e.prototype=t,new e},i=Object.keys||function(t){var e=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.push(r);return r},a=Function.prototype.bind||function(t){var e=this;return function(){return e.apply(t,arguments)}};function o(){this._events&&Object.prototype.hasOwnProperty.call(this,\"_events\")||(this._events=n(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0}e.exports=o,o.EventEmitter=o,o.prototype._events=void 0,o.prototype._maxListeners=void 0;var s,l=10;try{var c={};Object.defineProperty&&Object.defineProperty(c,\"x\",{value:0}),s=0===c.x}catch(t){s=!1}function u(t){return void 0===t._maxListeners?o.defaultMaxListeners:t._maxListeners}function f(t,e,r,i){var a,o,s;if(\"function\"!=typeof r)throw new TypeError('\"listener\" argument must be a function');if((o=t._events)?(o.newListener&&(t.emit(\"newListener\",e,r.listener?r.listener:r),o=t._events),s=o[e]):(o=t._events=n(null),t._eventsCount=0),s){if(\"function\"==typeof s?s=o[e]=i?[r,s]:[s,r]:i?s.unshift(r):s.push(r),!s.warned&&(a=u(t))&&a>0&&s.length>a){s.warned=!0;var l=new Error(\"Possible EventEmitter memory leak detected. \"+s.length+' \"'+String(e)+'\" listeners added. Use emitter.setMaxListeners() to increase limit.');l.name=\"MaxListenersExceededWarning\",l.emitter=t,l.type=e,l.count=s.length,\"object\"==typeof console&&console.warn&&console.warn(\"%s: %s\",l.name,l.message)}}else s=o[e]=r,++t._eventsCount;return t}function h(){if(!this.fired)switch(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length){case 0:return this.listener.call(this.target);case 1:return this.listener.call(this.target,arguments[0]);case 2:return this.listener.call(this.target,arguments[0],arguments[1]);case 3:return this.listener.call(this.target,arguments[0],arguments[1],arguments[2]);default:for(var t=new Array(arguments.length),e=0;e<t.length;++e)t[e]=arguments[e];this.listener.apply(this.target,t)}}function p(t,e,r){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},i=a.call(h,n);return i.listener=r,n.wrapFn=i,i}function d(t,e,r){var n=t._events;if(!n)return[];var i=n[e];return i?\"function\"==typeof i?r?[i.listener||i]:[i]:r?function(t){for(var e=new Array(t.length),r=0;r<e.length;++r)e[r]=t[r].listener||t[r];return e}(i):v(i,i.length):[]}function g(t){var e=this._events;if(e){var r=e[t];if(\"function\"==typeof r)return 1;if(r)return r.length}return 0}function v(t,e){for(var r=new Array(e),n=0;n<e;++n)r[n]=t[n];return r}s?Object.defineProperty(o,\"defaultMaxListeners\",{enumerable:!0,get:function(){return l},set:function(t){if(\"number\"!=typeof t||t<0||t!=t)throw new TypeError('\"defaultMaxListeners\" must be a positive number');l=t}}):o.defaultMaxListeners=l,o.prototype.setMaxListeners=function(t){if(\"number\"!=typeof t||t<0||isNaN(t))throw new TypeError('\"n\" argument must be a positive number');return this._maxListeners=t,this},o.prototype.getMaxListeners=function(){return u(this)},o.prototype.emit=function(t){var e,r,n,i,a,o,s=\"error\"===t;if(o=this._events)s=s&&null==o.error;else if(!s)return!1;if(s){if(arguments.length>1&&(e=arguments[1]),e instanceof Error)throw e;var l=new Error('Unhandled \"error\" event. ('+e+\")\");throw l.context=e,l}if(!(r=o[t]))return!1;var c=\"function\"==typeof r;switch(n=arguments.length){case 1:!function(t,e,r){if(e)t.call(r);else for(var n=t.length,i=v(t,n),a=0;a<n;++a)i[a].call(r)}(r,c,this);break;case 2:!function(t,e,r,n){if(e)t.call(r,n);else for(var i=t.length,a=v(t,i),o=0;o<i;++o)a[o].call(r,n)}(r,c,this,arguments[1]);break;case 3:!function(t,e,r,n,i){if(e)t.call(r,n,i);else for(var a=t.length,o=v(t,a),s=0;s<a;++s)o[s].call(r,n,i)}(r,c,this,arguments[1],arguments[2]);break;case 4:!function(t,e,r,n,i,a){if(e)t.call(r,n,i,a);else for(var o=t.length,s=v(t,o),l=0;l<o;++l)s[l].call(r,n,i,a)}(r,c,this,arguments[1],arguments[2],arguments[3]);break;default:for(i=new Array(n-1),a=1;a<n;a++)i[a-1]=arguments[a];!function(t,e,r,n){if(e)t.apply(r,n);else for(var i=t.length,a=v(t,i),o=0;o<i;++o)a[o].apply(r,n)}(r,c,this,i)}return!0},o.prototype.addListener=function(t,e){return f(this,t,e,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(t,e){return f(this,t,e,!0)},o.prototype.once=function(t,e){if(\"function\"!=typeof e)throw new TypeError('\"listener\" argument must be a function');return this.on(t,p(this,t,e)),this},o.prototype.prependOnceListener=function(t,e){if(\"function\"!=typeof e)throw new TypeError('\"listener\" argument must be a function');return this.prependListener(t,p(this,t,e)),this},o.prototype.removeListener=function(t,e){var r,i,a,o,s;if(\"function\"!=typeof e)throw new TypeError('\"listener\" argument must be a function');if(!(i=this._events))return this;if(!(r=i[t]))return this;if(r===e||r.listener===e)0==--this._eventsCount?this._events=n(null):(delete i[t],i.removeListener&&this.emit(\"removeListener\",t,r.listener||e));else if(\"function\"!=typeof r){for(a=-1,o=r.length-1;o>=0;o--)if(r[o]===e||r[o].listener===e){s=r[o].listener,a=o;break}if(a<0)return this;0===a?r.shift():function(t,e){for(var r=e,n=r+1,i=t.length;n<i;r+=1,n+=1)t[r]=t[n];t.pop()}(r,a),1===r.length&&(i[t]=r[0]),i.removeListener&&this.emit(\"removeListener\",t,s||e)}return this},o.prototype.removeAllListeners=function(t){var e,r,a;if(!(r=this._events))return this;if(!r.removeListener)return 0===arguments.length?(this._events=n(null),this._eventsCount=0):r[t]&&(0==--this._eventsCount?this._events=n(null):delete r[t]),this;if(0===arguments.length){var o,s=i(r);for(a=0;a<s.length;++a)\"removeListener\"!==(o=s[a])&&this.removeAllListeners(o);return this.removeAllListeners(\"removeListener\"),this._events=n(null),this._eventsCount=0,this}if(\"function\"==typeof(e=r[t]))this.removeListener(t,e);else if(e)for(a=e.length-1;a>=0;a--)this.removeListener(t,e[a]);return this},o.prototype.listeners=function(t){return d(this,t,!0)},o.prototype.rawListeners=function(t){return d(this,t,!1)},o.listenerCount=function(t,e){return\"function\"==typeof t.listenerCount?t.listenerCount(e):g.call(t,e)},o.prototype.listenerCount=g,o.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]}},{}],93:[function(t,e,r){\"use strict\";var n=t(\"base64-js\"),i=t(\"ieee754\");r.Buffer=s,r.SlowBuffer=function(t){+t!=t&&(t=0);return s.alloc(+t)},r.INSPECT_MAX_BYTES=50;var a=2147483647;function o(t){if(t>a)throw new RangeError('The value \"'+t+'\" is invalid for option \"size\"');var e=new Uint8Array(t);return e.__proto__=s.prototype,e}function s(t,e,r){if(\"number\"==typeof t){if(\"string\"==typeof e)throw new TypeError('The \"string\" argument must be of type string. Received type number');return u(t)}return l(t,e,r)}function l(t,e,r){if(\"string\"==typeof t)return function(t,e){\"string\"==typeof e&&\"\"!==e||(e=\"utf8\");if(!s.isEncoding(e))throw new TypeError(\"Unknown encoding: \"+e);var r=0|p(t,e),n=o(r),i=n.write(t,e);i!==r&&(n=n.slice(0,i));return n}(t,e);if(ArrayBuffer.isView(t))return f(t);if(null==t)throw TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof t);if(j(t,ArrayBuffer)||t&&j(t.buffer,ArrayBuffer))return function(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('\"offset\" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('\"length\" is outside of buffer bounds');var n;n=void 0===e&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,e):new Uint8Array(t,e,r);return n.__proto__=s.prototype,n}(t,e,r);if(\"number\"==typeof t)throw new TypeError('The \"value\" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(null!=n&&n!==t)return s.from(n,e,r);var i=function(t){if(s.isBuffer(t)){var e=0|h(t.length),r=o(e);return 0===r.length?r:(t.copy(r,0,0,e),r)}if(void 0!==t.length)return\"number\"!=typeof t.length||V(t.length)?o(0):f(t);if(\"Buffer\"===t.type&&Array.isArray(t.data))return f(t.data)}(t);if(i)return i;if(\"undefined\"!=typeof Symbol&&null!=Symbol.toPrimitive&&\"function\"==typeof t[Symbol.toPrimitive])return s.from(t[Symbol.toPrimitive](\"string\"),e,r);throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof t)}function c(t){if(\"number\"!=typeof t)throw new TypeError('\"size\" argument must be of type number');if(t<0)throw new RangeError('The value \"'+t+'\" is invalid for option \"size\"')}function u(t){return c(t),o(t<0?0:0|h(t))}function f(t){for(var e=t.length<0?0:0|h(t.length),r=o(e),n=0;n<e;n+=1)r[n]=255&t[n];return r}function h(t){if(t>=a)throw new RangeError(\"Attempt to allocate Buffer larger than maximum size: 0x\"+a.toString(16)+\" bytes\");return 0|t}function p(t,e){if(s.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||j(t,ArrayBuffer))return t.byteLength;if(\"string\"!=typeof t)throw new TypeError('The \"string\" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(e){case\"ascii\":case\"latin1\":case\"binary\":return r;case\"utf8\":case\"utf-8\":return B(t).length;case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return 2*r;case\"hex\":return r>>>1;case\"base64\":return F(t).length;default:if(i)return n?-1:B(t).length;e=(\"\"+e).toLowerCase(),i=!0}}function d(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function g(t,e,r,n,i){if(0===t.length)return-1;if(\"string\"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),V(r=+r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if(\"string\"==typeof e&&(e=s.from(e,n)),s.isBuffer(e))return 0===e.length?-1:v(t,e,r,n,i);if(\"number\"==typeof e)return e&=255,\"function\"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):v(t,[e],r,n,i);throw new TypeError(\"val must be string, number or Buffer\")}function v(t,e,r,n,i){var a,o=1,s=t.length,l=e.length;if(void 0!==n&&(\"ucs2\"===(n=String(n).toLowerCase())||\"ucs-2\"===n||\"utf16le\"===n||\"utf-16le\"===n)){if(t.length<2||e.length<2)return-1;o=2,s/=2,l/=2,r/=2}function c(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(i){var u=-1;for(a=r;a<s;a++)if(c(t,a)===c(e,-1===u?0:a-u)){if(-1===u&&(u=a),a-u+1===l)return u*o}else-1!==u&&(a-=a-u),u=-1}else for(r+l>s&&(r=s-l),a=r;a>=0;a--){for(var f=!0,h=0;h<l;h++)if(c(t,a+h)!==c(e,h)){f=!1;break}if(f)return a}return-1}function m(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n))>i&&(n=i):n=i;var a=e.length;n>a/2&&(n=a/2);for(var o=0;o<n;++o){var s=parseInt(e.substr(2*o,2),16);if(V(s))return o;t[r+o]=s}return o}function y(t,e,r,n){return N(B(e,t.length-r),t,r,n)}function x(t,e,r,n){return N(function(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,n)}function b(t,e,r,n){return x(t,e,r,n)}function _(t,e,r,n){return N(F(e),t,r,n)}function w(t,e,r,n){return N(function(t,e){for(var r,n,i,a=[],o=0;o<t.length&&!((e-=2)<0);++o)r=t.charCodeAt(o),n=r>>8,i=r%256,a.push(i),a.push(n);return a}(e,t.length-r),t,r,n)}function k(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function M(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var a,o,s,l,c=t[i],u=null,f=c>239?4:c>223?3:c>191?2:1;if(i+f<=r)switch(f){case 1:c<128&&(u=c);break;case 2:128==(192&(a=t[i+1]))&&(l=(31&c)<<6|63&a)>127&&(u=l);break;case 3:a=t[i+1],o=t[i+2],128==(192&a)&&128==(192&o)&&(l=(15&c)<<12|(63&a)<<6|63&o)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:a=t[i+1],o=t[i+2],s=t[i+3],128==(192&a)&&128==(192&o)&&128==(192&s)&&(l=(15&c)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&l<1114112&&(u=l)}null===u?(u=65533,f=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|1023&u),n.push(u),i+=f}return function(t){var e=t.length;if(e<=A)return String.fromCharCode.apply(String,t);var r=\"\",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=A));return r}(n)}r.kMaxLength=a,s.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()}catch(t){return!1}}(),s.TYPED_ARRAY_SUPPORT||\"undefined\"==typeof console||\"function\"!=typeof console.error||console.error(\"This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.\"),Object.defineProperty(s.prototype,\"parent\",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,\"offset\",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),\"undefined\"!=typeof Symbol&&null!=Symbol.species&&s[Symbol.species]===s&&Object.defineProperty(s,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),s.poolSize=8192,s.from=function(t,e,r){return l(t,e,r)},s.prototype.__proto__=Uint8Array.prototype,s.__proto__=Uint8Array,s.alloc=function(t,e,r){return function(t,e,r){return c(t),t<=0?o(t):void 0!==e?\"string\"==typeof r?o(t).fill(e,r):o(t).fill(e):o(t)}(t,e,r)},s.allocUnsafe=function(t){return u(t)},s.allocUnsafeSlow=function(t){return u(t)},s.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==s.prototype},s.compare=function(t,e){if(j(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),j(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(t)||!s.isBuffer(e))throw new TypeError('The \"buf1\", \"buf2\" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var r=t.length,n=e.length,i=0,a=Math.min(r,n);i<a;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0},s.isEncoding=function(t){switch(String(t).toLowerCase()){case\"hex\":case\"utf8\":case\"utf-8\":case\"ascii\":case\"latin1\":case\"binary\":case\"base64\":case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return!0;default:return!1}},s.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('\"list\" argument must be an Array of Buffers');if(0===t.length)return s.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var n=s.allocUnsafe(e),i=0;for(r=0;r<t.length;++r){var a=t[r];if(j(a,Uint8Array)&&(a=s.from(a)),!s.isBuffer(a))throw new TypeError('\"list\" argument must be an Array of Buffers');a.copy(n,i),i+=a.length}return n},s.byteLength=p,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError(\"Buffer size must be a multiple of 16-bits\");for(var e=0;e<t;e+=2)d(this,e,e+1);return this},s.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError(\"Buffer size must be a multiple of 32-bits\");for(var e=0;e<t;e+=4)d(this,e,e+3),d(this,e+1,e+2);return this},s.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError(\"Buffer size must be a multiple of 64-bits\");for(var e=0;e<t;e+=8)d(this,e,e+7),d(this,e+1,e+6),d(this,e+2,e+5),d(this,e+3,e+4);return this},s.prototype.toString=function(){var t=this.length;return 0===t?\"\":0===arguments.length?M(this,0,t):function(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return\"\";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return\"\";if((r>>>=0)<=(e>>>=0))return\"\";for(t||(t=\"utf8\");;)switch(t){case\"hex\":return E(this,e,r);case\"utf8\":case\"utf-8\":return M(this,e,r);case\"ascii\":return T(this,e,r);case\"latin1\":case\"binary\":return S(this,e,r);case\"base64\":return k(this,e,r);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return C(this,e,r);default:if(n)throw new TypeError(\"Unknown encoding: \"+t);t=(t+\"\").toLowerCase(),n=!0}}.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(t){if(!s.isBuffer(t))throw new TypeError(\"Argument must be a Buffer\");return this===t||0===s.compare(this,t)},s.prototype.inspect=function(){var t=\"\",e=r.INSPECT_MAX_BYTES;return t=this.toString(\"hex\",0,e).replace(/(.{2})/g,\"$1 \").trim(),this.length>e&&(t+=\" ... \"),\"<Buffer \"+t+\">\"},s.prototype.compare=function(t,e,r,n,i){if(j(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(t))throw new TypeError('The \"target\" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError(\"out of range index\");if(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(this===t)return 0;for(var a=(i>>>=0)-(n>>>=0),o=(r>>>=0)-(e>>>=0),l=Math.min(a,o),c=this.slice(n,i),u=t.slice(e,r),f=0;f<l;++f)if(c[f]!==u[f]){a=c[f],o=u[f];break}return a<o?-1:o<a?1:0},s.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},s.prototype.indexOf=function(t,e,r){return g(this,t,e,r,!0)},s.prototype.lastIndexOf=function(t,e,r){return g(this,t,e,r,!1)},s.prototype.write=function(t,e,r,n){if(void 0===e)n=\"utf8\",r=this.length,e=0;else if(void 0===r&&\"string\"==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error(\"Buffer.write(string, encoding, offset[, length]) is no longer supported\");e>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n=\"utf8\")):(n=r,r=void 0)}var i=this.length-e;if((void 0===r||r>i)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError(\"Attempt to write outside buffer bounds\");n||(n=\"utf8\");for(var a=!1;;)switch(n){case\"hex\":return m(this,t,e,r);case\"utf8\":case\"utf-8\":return y(this,t,e,r);case\"ascii\":return x(this,t,e,r);case\"latin1\":case\"binary\":return b(this,t,e,r);case\"base64\":return _(this,t,e,r);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return w(this,t,e,r);default:if(a)throw new TypeError(\"Unknown encoding: \"+n);n=(\"\"+n).toLowerCase(),a=!0}},s.prototype.toJSON=function(){return{type:\"Buffer\",data:Array.prototype.slice.call(this._arr||this,0)}};var A=4096;function T(t,e,r){var n=\"\";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}function S(t,e,r){var n=\"\";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function E(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i=\"\",a=e;a<r;++a)i+=R(t[a]);return i}function C(t,e,r){for(var n=t.slice(e,r),i=\"\",a=0;a<n.length;a+=2)i+=String.fromCharCode(n[a]+256*n[a+1]);return i}function L(t,e,r){if(t%1!=0||t<0)throw new RangeError(\"offset is not uint\");if(t+e>r)throw new RangeError(\"Trying to access beyond buffer length\")}function z(t,e,r,n,i,a){if(!s.isBuffer(t))throw new TypeError('\"buffer\" argument must be a Buffer instance');if(e>i||e<a)throw new RangeError('\"value\" argument is out of bounds');if(r+n>t.length)throw new RangeError(\"Index out of range\")}function O(t,e,r,n,i,a){if(r+n>t.length)throw new RangeError(\"Index out of range\");if(r<0)throw new RangeError(\"Index out of range\")}function I(t,e,r,n,a){return e=+e,r>>>=0,a||O(t,0,r,4),i.write(t,e,r,n,23,4),r+4}function P(t,e,r,n,a){return e=+e,r>>>=0,a||O(t,0,r,8),i.write(t,e,r,n,52,8),r+8}s.prototype.slice=function(t,e){var r=this.length;(t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t);var n=this.subarray(t,e);return n.__proto__=s.prototype,n},s.prototype.readUIntLE=function(t,e,r){t>>>=0,e>>>=0,r||L(t,e,this.length);for(var n=this[t],i=1,a=0;++a<e&&(i*=256);)n+=this[t+a]*i;return n},s.prototype.readUIntBE=function(t,e,r){t>>>=0,e>>>=0,r||L(t,e,this.length);for(var n=this[t+--e],i=1;e>0&&(i*=256);)n+=this[t+--e]*i;return n},s.prototype.readUInt8=function(t,e){return t>>>=0,e||L(t,1,this.length),this[t]},s.prototype.readUInt16LE=function(t,e){return t>>>=0,e||L(t,2,this.length),this[t]|this[t+1]<<8},s.prototype.readUInt16BE=function(t,e){return t>>>=0,e||L(t,2,this.length),this[t]<<8|this[t+1]},s.prototype.readUInt32LE=function(t,e){return t>>>=0,e||L(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},s.prototype.readUInt32BE=function(t,e){return t>>>=0,e||L(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},s.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||L(t,e,this.length);for(var n=this[t],i=1,a=0;++a<e&&(i*=256);)n+=this[t+a]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*e)),n},s.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||L(t,e,this.length);for(var n=e,i=1,a=this[t+--n];n>0&&(i*=256);)a+=this[t+--n]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*e)),a},s.prototype.readInt8=function(t,e){return t>>>=0,e||L(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},s.prototype.readInt16LE=function(t,e){t>>>=0,e||L(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt16BE=function(t,e){t>>>=0,e||L(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt32LE=function(t,e){return t>>>=0,e||L(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},s.prototype.readInt32BE=function(t,e){return t>>>=0,e||L(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},s.prototype.readFloatLE=function(t,e){return t>>>=0,e||L(t,4,this.length),i.read(this,t,!0,23,4)},s.prototype.readFloatBE=function(t,e){return t>>>=0,e||L(t,4,this.length),i.read(this,t,!1,23,4)},s.prototype.readDoubleLE=function(t,e){return t>>>=0,e||L(t,8,this.length),i.read(this,t,!0,52,8)},s.prototype.readDoubleBE=function(t,e){return t>>>=0,e||L(t,8,this.length),i.read(this,t,!1,52,8)},s.prototype.writeUIntLE=function(t,e,r,n){(t=+t,e>>>=0,r>>>=0,n)||z(this,t,e,r,Math.pow(2,8*r)-1,0);var i=1,a=0;for(this[e]=255&t;++a<r&&(i*=256);)this[e+a]=t/i&255;return e+r},s.prototype.writeUIntBE=function(t,e,r,n){(t=+t,e>>>=0,r>>>=0,n)||z(this,t,e,r,Math.pow(2,8*r)-1,0);var i=r-1,a=1;for(this[e+i]=255&t;--i>=0&&(a*=256);)this[e+i]=t/a&255;return e+r},s.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||z(this,t,e,1,255,0),this[e]=255&t,e+1},s.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||z(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},s.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||z(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},s.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||z(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},s.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||z(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},s.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);z(this,t,e,r,i-1,-i)}var a=0,o=1,s=0;for(this[e]=255&t;++a<r&&(o*=256);)t<0&&0===s&&0!==this[e+a-1]&&(s=1),this[e+a]=(t/o>>0)-s&255;return e+r},s.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);z(this,t,e,r,i-1,-i)}var a=r-1,o=1,s=0;for(this[e+a]=255&t;--a>=0&&(o*=256);)t<0&&0===s&&0!==this[e+a+1]&&(s=1),this[e+a]=(t/o>>0)-s&255;return e+r},s.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||z(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},s.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||z(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},s.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||z(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},s.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||z(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},s.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||z(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},s.prototype.writeFloatLE=function(t,e,r){return I(this,t,e,!0,r)},s.prototype.writeFloatBE=function(t,e,r){return I(this,t,e,!1,r)},s.prototype.writeDoubleLE=function(t,e,r){return P(this,t,e,!0,r)},s.prototype.writeDoubleBE=function(t,e,r){return P(this,t,e,!1,r)},s.prototype.copy=function(t,e,r,n){if(!s.isBuffer(t))throw new TypeError(\"argument should be a Buffer\");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError(\"targetStart out of bounds\");if(r<0||r>=this.length)throw new RangeError(\"Index out of range\");if(n<0)throw new RangeError(\"sourceEnd out of bounds\");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var i=n-r;if(this===t&&\"function\"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(e,r,n);else if(this===t&&r<e&&e<n)for(var a=i-1;a>=0;--a)t[a+e]=this[a+r];else Uint8Array.prototype.set.call(t,this.subarray(r,n),e);return i},s.prototype.fill=function(t,e,r,n){if(\"string\"==typeof t){if(\"string\"==typeof e?(n=e,e=0,r=this.length):\"string\"==typeof r&&(n=r,r=this.length),void 0!==n&&\"string\"!=typeof n)throw new TypeError(\"encoding must be a string\");if(\"string\"==typeof n&&!s.isEncoding(n))throw new TypeError(\"Unknown encoding: \"+n);if(1===t.length){var i=t.charCodeAt(0);(\"utf8\"===n&&i<128||\"latin1\"===n)&&(t=i)}}else\"number\"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<r)throw new RangeError(\"Out of range index\");if(r<=e)return this;var a;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),\"number\"==typeof t)for(a=e;a<r;++a)this[a]=t;else{var o=s.isBuffer(t)?t:s.from(t,n),l=o.length;if(0===l)throw new TypeError('The value \"'+t+'\" is invalid for argument \"value\"');for(a=0;a<r-e;++a)this[a+e]=o[a%l]}return this};var D=/[^+\\/0-9A-Za-z-_]/g;function R(t){return t<16?\"0\"+t.toString(16):t.toString(16)}function B(t,e){var r;e=e||1/0;for(var n=t.length,i=null,a=[],o=0;o<n;++o){if((r=t.charCodeAt(o))>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&a.push(239,191,189);continue}if(o+1===n){(e-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&a.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;a.push(r)}else if(r<2048){if((e-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error(\"Invalid code point\");if((e-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return a}function F(t){return n.toByteArray(function(t){if((t=(t=t.split(\"=\")[0]).trim().replace(D,\"\")).length<2)return\"\";for(;t.length%4!=0;)t+=\"=\";return t}(t))}function N(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function j(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function V(t){return t!=t}},{\"base64-js\":62,ieee754:395}],94:[function(t,e,r){\"use strict\";var n=t(\"./lib/monotone\"),i=t(\"./lib/triangulation\"),a=t(\"./lib/delaunay\"),o=t(\"./lib/filter\");function s(t){return[Math.min(t[0],t[1]),Math.max(t[0],t[1])]}function l(t,e){return t[0]-e[0]||t[1]-e[1]}function c(t,e,r){return e in t?t[e]:r}e.exports=function(t,e,r){Array.isArray(e)?(r=r||{},e=e||[]):(r=e||{},e=[]);var u=!!c(r,\"delaunay\",!0),f=!!c(r,\"interior\",!0),h=!!c(r,\"exterior\",!0),p=!!c(r,\"infinity\",!1);if(!f&&!h||0===t.length)return[];var d=n(t,e);if(u||f!==h||p){for(var g=i(t.length,function(t){return t.map(s).sort(l)}(e)),v=0;v<d.length;++v){var m=d[v];g.addTriangle(m[0],m[1],m[2])}return u&&a(t,g),h?f?p?o(g,0,p):g.cells():o(g,1,p):o(g,-1)}return d}},{\"./lib/delaunay\":95,\"./lib/filter\":96,\"./lib/monotone\":97,\"./lib/triangulation\":98}],95:[function(t,e,r){\"use strict\";var n=t(\"robust-in-sphere\")[4];t(\"binary-search-bounds\");function i(t,e,r,i,a,o){var s=e.opposite(i,a);if(!(s<0)){if(a<i){var l=i;i=a,a=l,l=o,o=s,s=l}e.isConstraint(i,a)||n(t[i],t[a],t[o],t[s])<0&&r.push(i,a)}}e.exports=function(t,e){for(var r=[],a=t.length,o=e.stars,s=0;s<a;++s)for(var l=o[s],c=1;c<l.length;c+=2){var u=l[c];if(!(u<s)&&!e.isConstraint(s,u)){for(var f=l[c-1],h=-1,p=1;p<l.length;p+=2)if(l[p-1]===u){h=l[p];break}h<0||n(t[s],t[u],t[f],t[h])<0&&r.push(s,u)}}for(;r.length>0;){for(var u=r.pop(),s=r.pop(),f=-1,h=-1,l=o[s],d=1;d<l.length;d+=2){var g=l[d-1],v=l[d];g===u?h=v:v===u&&(f=g)}f<0||h<0||(n(t[s],t[u],t[f],t[h])>=0||(e.flip(s,u),i(t,e,r,f,s,h),i(t,e,r,s,h,f),i(t,e,r,h,u,f),i(t,e,r,u,f,h)))}}},{\"binary-search-bounds\":99,\"robust-in-sphere\":484}],96:[function(t,e,r){\"use strict\";var n,i=t(\"binary-search-bounds\");function a(t,e,r,n,i,a,o){this.cells=t,this.neighbor=e,this.flags=n,this.constraint=r,this.active=i,this.next=a,this.boundary=o}function o(t,e){return t[0]-e[0]||t[1]-e[1]||t[2]-e[2]}e.exports=function(t,e,r){var n=function(t,e){for(var r=t.cells(),n=r.length,i=0;i<n;++i){var s=r[i],l=s[0],c=s[1],u=s[2];c<u?c<l&&(s[0]=c,s[1]=u,s[2]=l):u<l&&(s[0]=u,s[1]=l,s[2]=c)}r.sort(o);for(var f=new Array(n),i=0;i<f.length;++i)f[i]=0;var h=[],p=[],d=new Array(3*n),g=new Array(3*n),v=null;e&&(v=[]);for(var m=new a(r,d,g,f,h,p,v),i=0;i<n;++i)for(var s=r[i],y=0;y<3;++y){var l=s[y],c=s[(y+1)%3],x=d[3*i+y]=m.locate(c,l,t.opposite(c,l)),b=g[3*i+y]=t.isConstraint(l,c);x<0&&(b?p.push(i):(h.push(i),f[i]=1),e&&v.push([c,l,-1]))}return m}(t,r);if(0===e)return r?n.cells.concat(n.boundary):n.cells;var i=1,s=n.active,l=n.next,c=n.flags,u=n.cells,f=n.constraint,h=n.neighbor;for(;s.length>0||l.length>0;){for(;s.length>0;){var p=s.pop();if(c[p]!==-i){c[p]=i;u[p];for(var d=0;d<3;++d){var g=h[3*p+d];g>=0&&0===c[g]&&(f[3*p+d]?l.push(g):(s.push(g),c[g]=i))}}}var v=l;l=s,s=v,l.length=0,i=-i}var m=function(t,e,r){for(var n=0,i=0;i<t.length;++i)e[i]===r&&(t[n++]=t[i]);return t.length=n,t}(u,c,e);if(r)return m.concat(n.boundary);return m},a.prototype.locate=(n=[0,0,0],function(t,e,r){var a=t,s=e,l=r;return e<r?e<t&&(a=e,s=r,l=t):r<t&&(a=r,s=t,l=e),a<0?-1:(n[0]=a,n[1]=s,n[2]=l,i.eq(this.cells,n,o))})},{\"binary-search-bounds\":99}],97:[function(t,e,r){\"use strict\";var n=t(\"binary-search-bounds\"),i=t(\"robust-orientation\")[3],a=0,o=1,s=2;function l(t,e,r,n,i){this.a=t,this.b=e,this.idx=r,this.lowerIds=n,this.upperIds=i}function c(t,e,r,n){this.a=t,this.b=e,this.type=r,this.idx=n}function u(t,e){var r=t.a[0]-e.a[0]||t.a[1]-e.a[1]||t.type-e.type;return r||(t.type!==a&&(r=i(t.a,t.b,e.b))?r:t.idx-e.idx)}function f(t,e){return i(t.a,t.b,e)}function h(t,e,r,a,o){for(var s=n.lt(e,a,f),l=n.gt(e,a,f),c=s;c<l;++c){for(var u=e[c],h=u.lowerIds,p=h.length;p>1&&i(r[h[p-2]],r[h[p-1]],a)>0;)t.push([h[p-1],h[p-2],o]),p-=1;h.length=p,h.push(o);var d=u.upperIds;for(p=d.length;p>1&&i(r[d[p-2]],r[d[p-1]],a)<0;)t.push([d[p-2],d[p-1],o]),p-=1;d.length=p,d.push(o)}}function p(t,e){var r;return(r=t.a[0]<e.a[0]?i(t.a,t.b,e.a):i(e.b,e.a,t.a))?r:(r=e.b[0]<t.b[0]?i(t.a,t.b,e.b):i(e.b,e.a,t.b))||t.idx-e.idx}function d(t,e,r){var i=n.le(t,r,p),a=t[i],o=a.upperIds,s=o[o.length-1];a.upperIds=[s],t.splice(i+1,0,new l(r.a,r.b,r.idx,[s],o))}function g(t,e,r){var i=r.a;r.a=r.b,r.b=i;var a=n.eq(t,r,p),o=t[a];t[a-1].upperIds=o.upperIds,t.splice(a,1)}e.exports=function(t,e){for(var r=t.length,n=e.length,i=[],f=0;f<r;++f)i.push(new c(t[f],null,a,f));for(var f=0;f<n;++f){var p=e[f],v=t[p[0]],m=t[p[1]];v[0]<m[0]?i.push(new c(v,m,s,f),new c(m,v,o,f)):v[0]>m[0]&&i.push(new c(m,v,s,f),new c(v,m,o,f))}i.sort(u);for(var y=i[0].a[0]-(1+Math.abs(i[0].a[0]))*Math.pow(2,-52),x=[new l([y,1],[y,0],-1,[],[],[],[])],b=[],f=0,_=i.length;f<_;++f){var w=i[f],k=w.type;k===a?h(b,x,t,w.a,w.idx):k===s?d(x,t,w):g(x,t,w)}return b}},{\"binary-search-bounds\":99,\"robust-orientation\":486}],98:[function(t,e,r){\"use strict\";var n=t(\"binary-search-bounds\");function i(t,e){this.stars=t,this.edges=e}e.exports=function(t,e){for(var r=new Array(t),n=0;n<t;++n)r[n]=[];return new i(r,e)};var a=i.prototype;function o(t,e,r){for(var n=1,i=t.length;n<i;n+=2)if(t[n-1]===e&&t[n]===r)return t[n-1]=t[i-2],t[n]=t[i-1],void(t.length=i-2)}a.isConstraint=function(){var t=[0,0];function e(t,e){return t[0]-e[0]||t[1]-e[1]}return function(r,i){return t[0]=Math.min(r,i),t[1]=Math.max(r,i),n.eq(this.edges,t,e)>=0}}(),a.removeTriangle=function(t,e,r){var n=this.stars;o(n[t],e,r),o(n[e],r,t),o(n[r],t,e)},a.addTriangle=function(t,e,r){var n=this.stars;n[t].push(e,r),n[e].push(r,t),n[r].push(t,e)},a.opposite=function(t,e){for(var r=this.stars[e],n=1,i=r.length;n<i;n+=2)if(r[n]===t)return r[n-1];return-1},a.flip=function(t,e){var r=this.opposite(t,e),n=this.opposite(e,t);this.removeTriangle(t,e,r),this.removeTriangle(e,t,n),this.addTriangle(t,n,r),this.addTriangle(e,r,n)},a.edges=function(){for(var t=this.stars,e=[],r=0,n=t.length;r<n;++r)for(var i=t[r],a=0,o=i.length;a<o;a+=2)e.push([i[a],i[a+1]]);return e},a.cells=function(){for(var t=this.stars,e=[],r=0,n=t.length;r<n;++r)for(var i=t[r],a=0,o=i.length;a<o;a+=2){var s=i[a],l=i[a+1];r<Math.min(s,l)&&e.push([r,s,l])}return e}},{\"binary-search-bounds\":99}],99:[function(t,e,r){\"use strict\";function n(t,e,r,n,i){var a=[\"function \",t,\"(a,l,h,\",n.join(\",\"),\"){\",i?\"\":\"var i=\",r?\"l-1\":\"h+1\",\";while(l<=h){var m=(l+h)>>>1,x=a[m]\"];return i?e.indexOf(\"c\")<0?a.push(\";if(x===y){return m}else if(x<=y){\"):a.push(\";var p=c(x,y);if(p===0){return m}else if(p<=0){\"):a.push(\";if(\",e,\"){i=m;\"),r?a.push(\"l=m+1}else{h=m-1}\"):a.push(\"h=m-1}else{l=m+1}\"),a.push(\"}\"),i?a.push(\"return -1};\"):a.push(\"return i};\"),a.join(\"\")}function i(t,e,r,i){return new Function([n(\"A\",\"x\"+t+\"y\",e,[\"y\"],i),n(\"P\",\"c(x,y)\"+t+\"0\",e,[\"y\",\"c\"],i),\"function dispatchBsearch\",r,\"(a,y,c,l,h){if(typeof(c)==='function'){return P(a,(l===void 0)?0:l|0,(h===void 0)?a.length-1:h|0,y,c)}else{return A(a,(c===void 0)?0:c|0,(l===void 0)?a.length-1:l|0,y)}}return dispatchBsearch\",r].join(\"\"))()}e.exports={ge:i(\">=\",!1,\"GE\"),gt:i(\">\",!1,\"GT\"),lt:i(\"<\",!0,\"LT\"),le:i(\"<=\",!0,\"LE\"),eq:i(\"-\",!0,\"EQ\",!0)}},{}],100:[function(t,e,r){\"use strict\";e.exports=function(t){for(var e=1,r=1;r<t.length;++r)for(var n=0;n<r;++n)if(t[r]<t[n])e=-e;else if(t[n]===t[r])return 0;return e}},{}],101:[function(t,e,r){\"use strict\";var n=t(\"dup\"),i=t(\"robust-linear-solve\");function a(t,e){for(var r=0,n=t.length,i=0;i<n;++i)r+=t[i]*e[i];return r}function o(t){var e=t.length;if(0===e)return[];t[0].length;var r=n([t.length+1,t.length+1],1),o=n([t.length+1],1);r[e][e]=0;for(var s=0;s<e;++s){for(var l=0;l<=s;++l)r[l][s]=r[s][l]=2*a(t[s],t[l]);o[s]=a(t[s],t[s])}var c=i(r,o),u=0,f=c[e+1];for(s=0;s<f.length;++s)u+=f[s];var h=new Array(e);for(s=0;s<e;++s){f=c[s];var p=0;for(l=0;l<f.length;++l)p+=f[l];h[s]=p/u}return h}function s(t){if(0===t.length)return[];for(var e=t[0].length,r=n([e]),i=o(t),a=0;a<t.length;++a)for(var s=0;s<e;++s)r[s]+=t[a][s]*i[a];return r}s.barycenetric=o,e.exports=s},{dup:155,\"robust-linear-solve\":485}],102:[function(t,e,r){e.exports=function(t){for(var e=n(t),r=0,i=0;i<t.length;++i)for(var a=t[i],o=0;o<e.length;++o)r+=Math.pow(a[o]-e[o],2);return Math.sqrt(r/t.length)};var n=t(\"circumcenter\")},{circumcenter:101}],103:[function(t,e,r){e.exports=function(t,e,r){return e<r?t<e?e:t>r?r:t:t<r?r:t>e?e:t}},{}],104:[function(t,e,r){\"use strict\";e.exports=function(t,e,r){var n;if(r){n=e;for(var i=new Array(e.length),a=0;a<e.length;++a){var o=e[a];i[a]=[o[0],o[1],r[a]]}e=i}var s=function(t,e,r){var n=d(t,[],p(t));return m(e,n,r),!!n}(t,e,!!r);for(;y(t,e,!!r);)s=!0;if(r&&s){n.length=0,r.length=0;for(var a=0;a<e.length;++a){var o=e[a];n.push([o[0],o[1]]),r.push(o[2])}}return s};var n=t(\"union-find\"),i=t(\"box-intersect\"),a=t(\"robust-segment-intersect\"),o=t(\"big-rat\"),s=t(\"big-rat/cmp\"),l=t(\"big-rat/to-float\"),c=t(\"rat-vec\"),u=t(\"nextafter\"),f=t(\"./lib/rat-seg-intersect\");function h(t){var e=l(t);return[u(e,-1/0),u(e,1/0)]}function p(t){for(var e=new Array(t.length),r=0;r<t.length;++r){var n=t[r];e[r]=[u(n[0],-1/0),u(n[1],-1/0),u(n[0],1/0),u(n[1],1/0)]}return e}function d(t,e,r){for(var a=e.length,o=new n(a),s=[],l=0;l<e.length;++l){var c=e[l],f=h(c[0]),p=h(c[1]);s.push([u(f[0],-1/0),u(p[0],-1/0),u(f[1],1/0),u(p[1],1/0)])}i(s,function(t,e){o.link(t,e)});var d=!0,g=new Array(a);for(l=0;l<a;++l){(m=o.find(l))!==l&&(d=!1,t[m]=[Math.min(t[l][0],t[m][0]),Math.min(t[l][1],t[m][1])])}if(d)return null;var v=0;for(l=0;l<a;++l){var m;(m=o.find(l))===l?(g[l]=v,t[v++]=t[l]):g[l]=-1}t.length=v;for(l=0;l<a;++l)g[l]<0&&(g[l]=g[o.find(l)]);return g}function g(t,e){return t[0]-e[0]||t[1]-e[1]}function v(t,e){var r=t[0]-e[0]||t[1]-e[1];return r||(t[2]<e[2]?-1:t[2]>e[2]?1:0)}function m(t,e,r){if(0!==t.length){if(e)for(var n=0;n<t.length;++n){var i=e[(o=t[n])[0]],a=e[o[1]];o[0]=Math.min(i,a),o[1]=Math.max(i,a)}else for(n=0;n<t.length;++n){var o;i=(o=t[n])[0],a=o[1];o[0]=Math.min(i,a),o[1]=Math.max(i,a)}r?t.sort(v):t.sort(g);var s=1;for(n=1;n<t.length;++n){var l=t[n-1],c=t[n];(c[0]!==l[0]||c[1]!==l[1]||r&&c[2]!==l[2])&&(t[s++]=c)}t.length=s}}function y(t,e,r){var n=function(t,e){for(var r=new Array(e.length),n=0;n<e.length;++n){var i=e[n],a=t[i[0]],o=t[i[1]];r[n]=[u(Math.min(a[0],o[0]),-1/0),u(Math.min(a[1],o[1]),-1/0),u(Math.max(a[0],o[0]),1/0),u(Math.max(a[1],o[1]),1/0)]}return r}(t,e),h=function(t,e,r){var n=[];return i(r,function(r,i){var o=e[r],s=e[i];if(o[0]!==s[0]&&o[0]!==s[1]&&o[1]!==s[0]&&o[1]!==s[1]){var l=t[o[0]],c=t[o[1]],u=t[s[0]],f=t[s[1]];a(l,c,u,f)&&n.push([r,i])}}),n}(t,e,n),g=p(t),v=function(t,e,r,n){var o=[];return i(r,n,function(r,n){var i=e[r];if(i[0]!==n&&i[1]!==n){var s=t[n],l=t[i[0]],c=t[i[1]];a(l,c,s,s)&&o.push([r,n])}}),o}(t,e,n,g),y=d(t,function(t,e,r,n,i){var a,u,h=t.map(function(t){return[o(t[0]),o(t[1])]});for(a=0;a<r.length;++a){var p=r[a];u=p[0];var d=p[1],g=e[u],v=e[d],m=f(c(t[g[0]]),c(t[g[1]]),c(t[v[0]]),c(t[v[1]]));if(m){var y=t.length;t.push([l(m[0]),l(m[1])]),h.push(m),n.push([u,y],[d,y])}}for(n.sort(function(t,e){if(t[0]!==e[0])return t[0]-e[0];var r=h[t[1]],n=h[e[1]];return s(r[0],n[0])||s(r[1],n[1])}),a=n.length-1;a>=0;--a){var x=e[u=(S=n[a])[0]],b=x[0],_=x[1],w=t[b],k=t[_];if((w[0]-k[0]||w[1]-k[1])<0){var M=b;b=_,_=M}x[0]=b;var A,T=x[1]=S[1];for(i&&(A=x[2]);a>0&&n[a-1][0]===u;){var S,E=(S=n[--a])[1];i?e.push([T,E,A]):e.push([T,E]),T=E}i?e.push([T,_,A]):e.push([T,_])}return h}(t,e,h,v,r));return m(e,y,r),!!y||(h.length>0||v.length>0)}},{\"./lib/rat-seg-intersect\":105,\"big-rat\":66,\"big-rat/cmp\":64,\"big-rat/to-float\":78,\"box-intersect\":84,nextafter:434,\"rat-vec\":469,\"robust-segment-intersect\":489,\"union-find\":523}],105:[function(t,e,r){\"use strict\";e.exports=function(t,e,r,n){var a=s(e,t),f=s(n,r),h=u(a,f);if(0===o(h))return null;var p=s(t,r),d=u(f,p),g=i(d,h),v=c(a,g);return l(t,v)};var n=t(\"big-rat/mul\"),i=t(\"big-rat/div\"),a=t(\"big-rat/sub\"),o=t(\"big-rat/sign\"),s=t(\"rat-vec/sub\"),l=t(\"rat-vec/add\"),c=t(\"rat-vec/muls\");function u(t,e){return a(n(t[0],e[1]),n(t[1],e[0]))}},{\"big-rat/div\":65,\"big-rat/mul\":75,\"big-rat/sign\":76,\"big-rat/sub\":77,\"rat-vec/add\":468,\"rat-vec/muls\":470,\"rat-vec/sub\":471}],106:[function(t,e,r){\"use strict\";var n=t(\"clamp\");function i(t,e){null==e&&(e=!0);var r=t[0],i=t[1],a=t[2],o=t[3];return null==o&&(o=e?1:255),e&&(r*=255,i*=255,a*=255,o*=255),16777216*(r=255&n(r,0,255))+((i=255&n(i,0,255))<<16)+((a=255&n(a,0,255))<<8)+(o=255&n(o,0,255))}e.exports=i,e.exports.to=i,e.exports.from=function(t,e){var r=(t=+t)>>>24,n=(16711680&t)>>>16,i=(65280&t)>>>8,a=255&t;return!1===e?[r,n,i,a]:[r/255,n/255,i/255,a/255]}},{clamp:103}],107:[function(t,e,r){\"use strict\";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},{}],108:[function(t,e,r){\"use strict\";var n=t(\"color-rgba\"),i=t(\"clamp\"),a=t(\"dtype\");e.exports=function(t,e){\"float\"!==e&&e||(e=\"array\"),\"uint\"===e&&(e=\"uint8\"),\"uint_clamped\"===e&&(e=\"uint8_clamped\");var r=new(a(e))(4),o=\"uint8\"!==e&&\"uint8_clamped\"!==e;return t.length&&\"string\"!=typeof t||((t=n(t))[0]/=255,t[1]/=255,t[2]/=255),function(t){return t instanceof Uint8Array||t instanceof Uint8ClampedArray||!!(Array.isArray(t)&&(t[0]>1||0===t[0])&&(t[1]>1||0===t[1])&&(t[2]>1||0===t[2])&&(!t[3]||t[3]>1))}(t)?(r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=null!=t[3]?t[3]:255,o&&(r[0]/=255,r[1]/=255,r[2]/=255,r[3]/=255),r):(o?(r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=null!=t[3]?t[3]:1):(r[0]=i(Math.floor(255*t[0]),0,255),r[1]=i(Math.floor(255*t[1]),0,255),r[2]=i(Math.floor(255*t[2]),0,255),r[3]=null==t[3]?255:i(Math.floor(255*t[3]),0,255)),r)}},{clamp:103,\"color-rgba\":110,dtype:154}],109:[function(t,e,r){(function(r){\"use strict\";var n=t(\"color-name\"),i=t(\"is-plain-obj\"),a=t(\"defined\");e.exports=function(t){var e,s,l=[],c=1;if(\"string\"==typeof t)if(n[t])l=n[t].slice(),s=\"rgb\";else if(\"transparent\"===t)c=0,s=\"rgb\",l=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(t)){var u=t.slice(1),f=u.length,h=f<=4;c=1,h?(l=[parseInt(u[0]+u[0],16),parseInt(u[1]+u[1],16),parseInt(u[2]+u[2],16)],4===f&&(c=parseInt(u[3]+u[3],16)/255)):(l=[parseInt(u[0]+u[1],16),parseInt(u[2]+u[3],16),parseInt(u[4]+u[5],16)],8===f&&(c=parseInt(u[6]+u[7],16)/255)),l[0]||(l[0]=0),l[1]||(l[1]=0),l[2]||(l[2]=0),s=\"rgb\"}else if(e=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\\s*\\(([^\\)]*)\\)/.exec(t)){var p=e[1],u=p.replace(/a$/,\"\");s=u;var f=\"cmyk\"===u?4:\"gray\"===u?1:3;l=e[2].trim().split(/\\s*,\\s*/).map(function(t,e){if(/%$/.test(t))return e===f?parseFloat(t)/100:\"rgb\"===u?255*parseFloat(t)/100:parseFloat(t);if(\"h\"===u[e]){if(/deg$/.test(t))return parseFloat(t);if(void 0!==o[t])return o[t]}return parseFloat(t)}),p===u&&l.push(1),c=void 0===l[f]?1:l[f],l=l.slice(0,f)}else t.length>10&&/[0-9](?:\\s|\\/)/.test(t)&&(l=t.match(/([0-9]+)/g).map(function(t){return parseFloat(t)}),s=t.match(/([a-z])/gi).join(\"\").toLowerCase());else if(isNaN(t))if(i(t)){var d=a(t.r,t.red,t.R,null);null!==d?(s=\"rgb\",l=[d,a(t.g,t.green,t.G),a(t.b,t.blue,t.B)]):(s=\"hsl\",l=[a(t.h,t.hue,t.H),a(t.s,t.saturation,t.S),a(t.l,t.lightness,t.L,t.b,t.brightness)]),c=a(t.a,t.alpha,t.opacity,1),null!=t.opacity&&(c/=100)}else(Array.isArray(t)||r.ArrayBuffer&&ArrayBuffer.isView&&ArrayBuffer.isView(t))&&(l=[t[0],t[1],t[2]],s=\"rgb\",c=4===t.length?t[3]:1);else s=\"rgb\",l=[t>>>16,(65280&t)>>>8,255&t];return{space:s,values:l,alpha:c}};var o={red:0,orange:60,yellow:120,green:180,blue:240,purple:300}}).call(this,\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{\"color-name\":107,defined:149,\"is-plain-obj\":405}],110:[function(t,e,r){\"use strict\";var n=t(\"color-parse\"),i=t(\"color-space/hsl\"),a=t(\"clamp\");e.exports=function(t){var e,r=n(t);return r.space?((e=Array(3))[0]=a(r.values[0],0,255),e[1]=a(r.values[1],0,255),e[2]=a(r.values[2],0,255),\"h\"===r.space[0]&&(e=i.rgb(e)),e.push(a(r.alpha,0,1)),e):[]}},{clamp:103,\"color-parse\":109,\"color-space/hsl\":111}],111:[function(t,e,r){\"use strict\";var n=t(\"./rgb\");e.exports={name:\"hsl\",min:[0,0,0],max:[360,100,100],channel:[\"hue\",\"saturation\",\"lightness\"],alias:[\"HSL\"],rgb:function(t){var e,r,n,i,a,o=t[0]/360,s=t[1]/100,l=t[2]/100;if(0===s)return[a=255*l,a,a];e=2*l-(r=l<.5?l*(1+s):l+s-l*s),i=[0,0,0];for(var c=0;c<3;c++)(n=o+1/3*-(c-1))<0?n++:n>1&&n--,a=6*n<1?e+6*(r-e)*n:2*n<1?r:3*n<2?e+(r-e)*(2/3-n)*6:e,i[c]=255*a;return i}},n.hsl=function(t){var e,r,n=t[0]/255,i=t[1]/255,a=t[2]/255,o=Math.min(n,i,a),s=Math.max(n,i,a),l=s-o;return s===o?e=0:n===s?e=(i-a)/l:i===s?e=2+(a-n)/l:a===s&&(e=4+(n-i)/l),(e=Math.min(60*e,360))<0&&(e+=360),r=(o+s)/2,[e,100*(s===o?0:r<=.5?l/(s+o):l/(2-s-o)),100*r]}},{\"./rgb\":112}],112:[function(t,e,r){\"use strict\";e.exports={name:\"rgb\",min:[0,0,0],max:[255,255,255],channel:[\"red\",\"green\",\"blue\"],alias:[\"RGB\"]}},{}],113:[function(t,e,r){e.exports={jet:[{index:0,rgb:[0,0,131]},{index:.125,rgb:[0,60,170]},{index:.375,rgb:[5,255,255]},{index:.625,rgb:[255,255,0]},{index:.875,rgb:[250,0,0]},{index:1,rgb:[128,0,0]}],hsv:[{index:0,rgb:[255,0,0]},{index:.169,rgb:[253,255,2]},{index:.173,rgb:[247,255,2]},{index:.337,rgb:[0,252,4]},{index:.341,rgb:[0,252,10]},{index:.506,rgb:[1,249,255]},{index:.671,rgb:[2,0,253]},{index:.675,rgb:[8,0,253]},{index:.839,rgb:[255,0,251]},{index:.843,rgb:[255,0,245]},{index:1,rgb:[255,0,6]}],hot:[{index:0,rgb:[0,0,0]},{index:.3,rgb:[230,0,0]},{index:.6,rgb:[255,210,0]},{index:1,rgb:[255,255,255]}],cool:[{index:0,rgb:[0,255,255]},{index:1,rgb:[255,0,255]}],spring:[{index:0,rgb:[255,0,255]},{index:1,rgb:[255,255,0]}],summer:[{index:0,rgb:[0,128,102]},{index:1,rgb:[255,255,102]}],autumn:[{index:0,rgb:[255,0,0]},{index:1,rgb:[255,255,0]}],winter:[{index:0,rgb:[0,0,255]},{index:1,rgb:[0,255,128]}],bone:[{index:0,rgb:[0,0,0]},{index:.376,rgb:[84,84,116]},{index:.753,rgb:[169,200,200]},{index:1,rgb:[255,255,255]}],copper:[{index:0,rgb:[0,0,0]},{index:.804,rgb:[255,160,102]},{index:1,rgb:[255,199,127]}],greys:[{index:0,rgb:[0,0,0]},{index:1,rgb:[255,255,255]}],yignbu:[{index:0,rgb:[8,29,88]},{index:.125,rgb:[37,52,148]},{index:.25,rgb:[34,94,168]},{index:.375,rgb:[29,145,192]},{index:.5,rgb:[65,182,196]},{index:.625,rgb:[127,205,187]},{index:.75,rgb:[199,233,180]},{index:.875,rgb:[237,248,217]},{index:1,rgb:[255,255,217]}],greens:[{index:0,rgb:[0,68,27]},{index:.125,rgb:[0,109,44]},{index:.25,rgb:[35,139,69]},{index:.375,rgb:[65,171,93]},{index:.5,rgb:[116,196,118]},{index:.625,rgb:[161,217,155]},{index:.75,rgb:[199,233,192]},{index:.875,rgb:[229,245,224]},{index:1,rgb:[247,252,245]}],yiorrd:[{index:0,rgb:[128,0,38]},{index:.125,rgb:[189,0,38]},{index:.25,rgb:[227,26,28]},{index:.375,rgb:[252,78,42]},{index:.5,rgb:[253,141,60]},{index:.625,rgb:[254,178,76]},{index:.75,rgb:[254,217,118]},{index:.875,rgb:[255,237,160]},{index:1,rgb:[255,255,204]}],bluered:[{index:0,rgb:[0,0,255]},{index:1,rgb:[255,0,0]}],rdbu:[{index:0,rgb:[5,10,172]},{index:.35,rgb:[106,137,247]},{index:.5,rgb:[190,190,190]},{index:.6,rgb:[220,170,132]},{index:.7,rgb:[230,145,90]},{index:1,rgb:[178,10,28]}],picnic:[{index:0,rgb:[0,0,255]},{index:.1,rgb:[51,153,255]},{index:.2,rgb:[102,204,255]},{index:.3,rgb:[153,204,255]},{index:.4,rgb:[204,204,255]},{index:.5,rgb:[255,255,255]},{index:.6,rgb:[255,204,255]},{index:.7,rgb:[255,153,255]},{index:.8,rgb:[255,102,204]},{index:.9,rgb:[255,102,102]},{index:1,rgb:[255,0,0]}],rainbow:[{index:0,rgb:[150,0,90]},{index:.125,rgb:[0,0,200]},{index:.25,rgb:[0,25,255]},{index:.375,rgb:[0,152,255]},{index:.5,rgb:[44,255,150]},{index:.625,rgb:[151,255,0]},{index:.75,rgb:[255,234,0]},{index:.875,rgb:[255,111,0]},{index:1,rgb:[255,0,0]}],portland:[{index:0,rgb:[12,51,131]},{index:.25,rgb:[10,136,186]},{index:.5,rgb:[242,211,56]},{index:.75,rgb:[242,143,56]},{index:1,rgb:[217,30,30]}],blackbody:[{index:0,rgb:[0,0,0]},{index:.2,rgb:[230,0,0]},{index:.4,rgb:[230,210,0]},{index:.7,rgb:[255,255,255]},{index:1,rgb:[160,200,255]}],earth:[{index:0,rgb:[0,0,130]},{index:.1,rgb:[0,180,180]},{index:.2,rgb:[40,210,40]},{index:.4,rgb:[230,230,50]},{index:.6,rgb:[120,70,20]},{index:1,rgb:[255,255,255]}],electric:[{index:0,rgb:[0,0,0]},{index:.15,rgb:[30,0,100]},{index:.4,rgb:[120,0,100]},{index:.6,rgb:[160,90,0]},{index:.8,rgb:[230,200,0]},{index:1,rgb:[255,250,220]}],alpha:[{index:0,rgb:[255,255,255,0]},{index:1,rgb:[255,255,255,1]}],viridis:[{index:0,rgb:[68,1,84]},{index:.13,rgb:[71,44,122]},{index:.25,rgb:[59,81,139]},{index:.38,rgb:[44,113,142]},{index:.5,rgb:[33,144,141]},{index:.63,rgb:[39,173,129]},{index:.75,rgb:[92,200,99]},{index:.88,rgb:[170,220,50]},{index:1,rgb:[253,231,37]}],inferno:[{index:0,rgb:[0,0,4]},{index:.13,rgb:[31,12,72]},{index:.25,rgb:[85,15,109]},{index:.38,rgb:[136,34,106]},{index:.5,rgb:[186,54,85]},{index:.63,rgb:[227,89,51]},{index:.75,rgb:[249,140,10]},{index:.88,rgb:[249,201,50]},{index:1,rgb:[252,255,164]}],magma:[{index:0,rgb:[0,0,4]},{index:.13,rgb:[28,16,68]},{index:.25,rgb:[79,18,123]},{index:.38,rgb:[129,37,129]},{index:.5,rgb:[181,54,122]},{index:.63,rgb:[229,80,100]},{index:.75,rgb:[251,135,97]},{index:.88,rgb:[254,194,135]},{index:1,rgb:[252,253,191]}],plasma:[{index:0,rgb:[13,8,135]},{index:.13,rgb:[75,3,161]},{index:.25,rgb:[125,3,168]},{index:.38,rgb:[168,34,150]},{index:.5,rgb:[203,70,121]},{index:.63,rgb:[229,107,93]},{index:.75,rgb:[248,148,65]},{index:.88,rgb:[253,195,40]},{index:1,rgb:[240,249,33]}],warm:[{index:0,rgb:[125,0,179]},{index:.13,rgb:[172,0,187]},{index:.25,rgb:[219,0,170]},{index:.38,rgb:[255,0,130]},{index:.5,rgb:[255,63,74]},{index:.63,rgb:[255,123,0]},{index:.75,rgb:[234,176,0]},{index:.88,rgb:[190,228,0]},{index:1,rgb:[147,255,0]}],cool:[{index:0,rgb:[125,0,179]},{index:.13,rgb:[116,0,218]},{index:.25,rgb:[98,74,237]},{index:.38,rgb:[68,146,231]},{index:.5,rgb:[0,204,197]},{index:.63,rgb:[0,247,146]},{index:.75,rgb:[0,255,88]},{index:.88,rgb:[40,255,8]},{index:1,rgb:[147,255,0]}],\"rainbow-soft\":[{index:0,rgb:[125,0,179]},{index:.1,rgb:[199,0,180]},{index:.2,rgb:[255,0,121]},{index:.3,rgb:[255,108,0]},{index:.4,rgb:[222,194,0]},{index:.5,rgb:[150,255,0]},{index:.6,rgb:[0,255,55]},{index:.7,rgb:[0,246,150]},{index:.8,rgb:[50,167,222]},{index:.9,rgb:[103,51,235]},{index:1,rgb:[124,0,186]}],bathymetry:[{index:0,rgb:[40,26,44]},{index:.13,rgb:[59,49,90]},{index:.25,rgb:[64,76,139]},{index:.38,rgb:[63,110,151]},{index:.5,rgb:[72,142,158]},{index:.63,rgb:[85,174,163]},{index:.75,rgb:[120,206,163]},{index:.88,rgb:[187,230,172]},{index:1,rgb:[253,254,204]}],cdom:[{index:0,rgb:[47,15,62]},{index:.13,rgb:[87,23,86]},{index:.25,rgb:[130,28,99]},{index:.38,rgb:[171,41,96]},{index:.5,rgb:[206,67,86]},{index:.63,rgb:[230,106,84]},{index:.75,rgb:[242,149,103]},{index:.88,rgb:[249,193,135]},{index:1,rgb:[254,237,176]}],chlorophyll:[{index:0,rgb:[18,36,20]},{index:.13,rgb:[25,63,41]},{index:.25,rgb:[24,91,59]},{index:.38,rgb:[13,119,72]},{index:.5,rgb:[18,148,80]},{index:.63,rgb:[80,173,89]},{index:.75,rgb:[132,196,122]},{index:.88,rgb:[175,221,162]},{index:1,rgb:[215,249,208]}],density:[{index:0,rgb:[54,14,36]},{index:.13,rgb:[89,23,80]},{index:.25,rgb:[110,45,132]},{index:.38,rgb:[120,77,178]},{index:.5,rgb:[120,113,213]},{index:.63,rgb:[115,151,228]},{index:.75,rgb:[134,185,227]},{index:.88,rgb:[177,214,227]},{index:1,rgb:[230,241,241]}],\"freesurface-blue\":[{index:0,rgb:[30,4,110]},{index:.13,rgb:[47,14,176]},{index:.25,rgb:[41,45,236]},{index:.38,rgb:[25,99,212]},{index:.5,rgb:[68,131,200]},{index:.63,rgb:[114,156,197]},{index:.75,rgb:[157,181,203]},{index:.88,rgb:[200,208,216]},{index:1,rgb:[241,237,236]}],\"freesurface-red\":[{index:0,rgb:[60,9,18]},{index:.13,rgb:[100,17,27]},{index:.25,rgb:[142,20,29]},{index:.38,rgb:[177,43,27]},{index:.5,rgb:[192,87,63]},{index:.63,rgb:[205,125,105]},{index:.75,rgb:[216,162,148]},{index:.88,rgb:[227,199,193]},{index:1,rgb:[241,237,236]}],oxygen:[{index:0,rgb:[64,5,5]},{index:.13,rgb:[106,6,15]},{index:.25,rgb:[144,26,7]},{index:.38,rgb:[168,64,3]},{index:.5,rgb:[188,100,4]},{index:.63,rgb:[206,136,11]},{index:.75,rgb:[220,174,25]},{index:.88,rgb:[231,215,44]},{index:1,rgb:[248,254,105]}],par:[{index:0,rgb:[51,20,24]},{index:.13,rgb:[90,32,35]},{index:.25,rgb:[129,44,34]},{index:.38,rgb:[159,68,25]},{index:.5,rgb:[182,99,19]},{index:.63,rgb:[199,134,22]},{index:.75,rgb:[212,171,35]},{index:.88,rgb:[221,210,54]},{index:1,rgb:[225,253,75]}],phase:[{index:0,rgb:[145,105,18]},{index:.13,rgb:[184,71,38]},{index:.25,rgb:[186,58,115]},{index:.38,rgb:[160,71,185]},{index:.5,rgb:[110,97,218]},{index:.63,rgb:[50,123,164]},{index:.75,rgb:[31,131,110]},{index:.88,rgb:[77,129,34]},{index:1,rgb:[145,105,18]}],salinity:[{index:0,rgb:[42,24,108]},{index:.13,rgb:[33,50,162]},{index:.25,rgb:[15,90,145]},{index:.38,rgb:[40,118,137]},{index:.5,rgb:[59,146,135]},{index:.63,rgb:[79,175,126]},{index:.75,rgb:[120,203,104]},{index:.88,rgb:[193,221,100]},{index:1,rgb:[253,239,154]}],temperature:[{index:0,rgb:[4,35,51]},{index:.13,rgb:[23,51,122]},{index:.25,rgb:[85,59,157]},{index:.38,rgb:[129,79,143]},{index:.5,rgb:[175,95,130]},{index:.63,rgb:[222,112,101]},{index:.75,rgb:[249,146,66]},{index:.88,rgb:[249,196,65]},{index:1,rgb:[232,250,91]}],turbidity:[{index:0,rgb:[34,31,27]},{index:.13,rgb:[65,50,41]},{index:.25,rgb:[98,69,52]},{index:.38,rgb:[131,89,57]},{index:.5,rgb:[161,112,59]},{index:.63,rgb:[185,140,66]},{index:.75,rgb:[202,174,88]},{index:.88,rgb:[216,209,126]},{index:1,rgb:[233,246,171]}],\"velocity-blue\":[{index:0,rgb:[17,32,64]},{index:.13,rgb:[35,52,116]},{index:.25,rgb:[29,81,156]},{index:.38,rgb:[31,113,162]},{index:.5,rgb:[50,144,169]},{index:.63,rgb:[87,173,176]},{index:.75,rgb:[149,196,189]},{index:.88,rgb:[203,221,211]},{index:1,rgb:[254,251,230]}],\"velocity-green\":[{index:0,rgb:[23,35,19]},{index:.13,rgb:[24,64,38]},{index:.25,rgb:[11,95,45]},{index:.38,rgb:[39,123,35]},{index:.5,rgb:[95,146,12]},{index:.63,rgb:[152,165,18]},{index:.75,rgb:[201,186,69]},{index:.88,rgb:[233,216,137]},{index:1,rgb:[255,253,205]}],cubehelix:[{index:0,rgb:[0,0,0]},{index:.07,rgb:[22,5,59]},{index:.13,rgb:[60,4,105]},{index:.2,rgb:[109,1,135]},{index:.27,rgb:[161,0,147]},{index:.33,rgb:[210,2,142]},{index:.4,rgb:[251,11,123]},{index:.47,rgb:[255,29,97]},{index:.53,rgb:[255,54,69]},{index:.6,rgb:[255,85,46]},{index:.67,rgb:[255,120,34]},{index:.73,rgb:[255,157,37]},{index:.8,rgb:[241,191,57]},{index:.87,rgb:[224,220,93]},{index:.93,rgb:[218,241,142]},{index:1,rgb:[227,253,198]}]}},{}],114:[function(t,e,r){\"use strict\";var n=t(\"./colorScale\"),i=t(\"lerp\");function a(t){return[t[0]/255,t[1]/255,t[2]/255,t[3]]}function o(t){for(var e,r=\"#\",n=0;n<3;++n)r+=(\"00\"+(e=(e=t[n]).toString(16))).substr(e.length);return r}function s(t){return\"rgba(\"+t.join(\",\")+\")\"}e.exports=function(t){var e,r,l,c,u,f,h,p,d,g;t||(t={});p=(t.nshades||72)-1,h=t.format||\"hex\",(f=t.colormap)||(f=\"jet\");if(\"string\"==typeof f){if(f=f.toLowerCase(),!n[f])throw Error(f+\" not a supported colorscale\");u=n[f]}else{if(!Array.isArray(f))throw Error(\"unsupported colormap option\",f);u=f.slice()}if(u.length>p)throw new Error(f+\" map requires nshades to be at least size \"+u.length);d=Array.isArray(t.alpha)?2!==t.alpha.length?[1,1]:t.alpha.slice():\"number\"==typeof t.alpha?[t.alpha,t.alpha]:[1,1];e=u.map(function(t){return Math.round(t.index*p)}),d[0]=Math.min(Math.max(d[0],0),1),d[1]=Math.min(Math.max(d[1],0),1);var v=u.map(function(t,e){var r=u[e].index,n=u[e].rgb.slice();return 4===n.length&&n[3]>=0&&n[3]<=1?n:(n[3]=d[0]+(d[1]-d[0])*r,n)}),m=[];for(g=0;g<e.length-1;++g){c=e[g+1]-e[g],r=v[g],l=v[g+1];for(var y=0;y<c;y++){var x=y/c;m.push([Math.round(i(r[0],l[0],x)),Math.round(i(r[1],l[1],x)),Math.round(i(r[2],l[2],x)),i(r[3],l[3],x)])}}m.push(u[u.length-1].rgb.concat(d[1])),\"hex\"===h?m=m.map(o):\"rgbaString\"===h?m=m.map(s):\"float\"===h&&(m=m.map(a));return m}},{\"./colorScale\":113,lerp:408}],115:[function(t,e,r){\"use strict\";e.exports=function(t,e,r,a){var o=n(e,r,a);if(0===o){var s=i(n(t,e,r)),c=i(n(t,e,a));if(s===c){if(0===s){var u=l(t,e,r),f=l(t,e,a);return u===f?0:u?1:-1}return 0}return 0===c?s>0?-1:l(t,e,a)?-1:1:0===s?c>0?1:l(t,e,r)?1:-1:i(c-s)}var h=n(t,e,r);if(h>0)return o>0&&n(t,e,a)>0?1:-1;if(h<0)return o>0||n(t,e,a)>0?1:-1;var p=n(t,e,a);return p>0?1:l(t,e,r)?1:-1};var n=t(\"robust-orientation\"),i=t(\"signum\"),a=t(\"two-sum\"),o=t(\"robust-product\"),s=t(\"robust-sum\");function l(t,e,r){var n=a(t[0],-e[0]),i=a(t[1],-e[1]),l=a(r[0],-e[0]),c=a(r[1],-e[1]),u=s(o(n,l),o(i,c));return u[u.length-1]>=0}},{\"robust-orientation\":486,\"robust-product\":487,\"robust-sum\":491,signum:492,\"two-sum\":521}],116:[function(t,e,r){e.exports=function(t,e){var r=t.length,a=t.length-e.length;if(a)return a;switch(r){case 0:return 0;case 1:return t[0]-e[0];case 2:return t[0]+t[1]-e[0]-e[1]||n(t[0],t[1])-n(e[0],e[1]);case 3:var o=t[0]+t[1],s=e[0]+e[1];if(a=o+t[2]-(s+e[2]))return a;var l=n(t[0],t[1]),c=n(e[0],e[1]);return n(l,t[2])-n(c,e[2])||n(l+t[2],o)-n(c+e[2],s);case 4:var u=t[0],f=t[1],h=t[2],p=t[3],d=e[0],g=e[1],v=e[2],m=e[3];return u+f+h+p-(d+g+v+m)||n(u,f,h,p)-n(d,g,v,m,d)||n(u+f,u+h,u+p,f+h,f+p,h+p)-n(d+g,d+v,d+m,g+v,g+m,v+m)||n(u+f+h,u+f+p,u+h+p,f+h+p)-n(d+g+v,d+g+m,d+v+m,g+v+m);default:for(var y=t.slice().sort(i),x=e.slice().sort(i),b=0;b<r;++b)if(a=y[b]-x[b])return a;return 0}};var n=Math.min;function i(t,e){return t-e}},{}],117:[function(t,e,r){\"use strict\";var n=t(\"compare-cell\"),i=t(\"cell-orientation\");e.exports=function(t,e){return n(t,e)||i(t)-i(e)}},{\"cell-orientation\":100,\"compare-cell\":116}],118:[function(t,e,r){\"use strict\";var n=t(\"./lib/ch1d\"),i=t(\"./lib/ch2d\"),a=t(\"./lib/chnd\");e.exports=function(t){var e=t.length;if(0===e)return[];if(1===e)return[[0]];var r=t[0].length;if(0===r)return[];if(1===r)return n(t);if(2===r)return i(t);return a(t,r)}},{\"./lib/ch1d\":119,\"./lib/ch2d\":120,\"./lib/chnd\":121}],119:[function(t,e,r){\"use strict\";e.exports=function(t){for(var e=0,r=0,n=1;n<t.length;++n)t[n][0]<t[e][0]&&(e=n),t[n][0]>t[r][0]&&(r=n);return e<r?[[e],[r]]:e>r?[[r],[e]]:[[e]]}},{}],120:[function(t,e,r){\"use strict\";e.exports=function(t){var e=n(t),r=e.length;if(r<=2)return[];for(var i=new Array(r),a=e[r-1],o=0;o<r;++o){var s=e[o];i[o]=[a,s],a=s}return i};var n=t(\"monotone-convex-hull-2d\")},{\"monotone-convex-hull-2d\":417}],121:[function(t,e,r){\"use strict\";e.exports=function(t,e){try{return n(t,!0)}catch(s){var r=i(t);if(r.length<=e)return[];var a=function(t,e){for(var r=t.length,n=new Array(r),i=0;i<e.length;++i)n[i]=t[e[i]];for(var a=e.length,i=0;i<r;++i)e.indexOf(i)<0&&(n[a++]=t[i]);return n}(t,r),o=n(a,!0);return function(t,e){for(var r=t.length,n=e.length,i=0;i<r;++i)for(var a=t[i],o=0;o<a.length;++o){var s=a[o];if(s<n)a[o]=e[s];else{s-=n;for(var l=0;l<n;++l)s>=e[l]&&(s+=1);a[o]=s}}return t}(o,r)}};var n=t(\"incremental-convex-hull\"),i=t(\"affine-hull\")},{\"affine-hull\":50,\"incremental-convex-hull\":396}],122:[function(t,e,r){e.exports={AFG:\"afghan\",ALA:\"\\\\b\\\\wland\",ALB:\"albania\",DZA:\"algeria\",ASM:\"^(?=.*americ).*samoa\",AND:\"andorra\",AGO:\"angola\",AIA:\"anguill?a\",ATA:\"antarctica\",ATG:\"antigua\",ARG:\"argentin\",ARM:\"armenia\",ABW:\"^(?!.*bonaire).*\\\\baruba\",AUS:\"australia\",AUT:\"^(?!.*hungary).*austria|\\\\baustri.*\\\\bemp\",AZE:\"azerbaijan\",BHS:\"bahamas\",BHR:\"bahrain\",BGD:\"bangladesh|^(?=.*east).*paki?stan\",BRB:\"barbados\",BLR:\"belarus|byelo\",BEL:\"^(?!.*luxem).*belgium\",BLZ:\"belize|^(?=.*british).*honduras\",BEN:\"benin|dahome\",BMU:\"bermuda\",BTN:\"bhutan\",BOL:\"bolivia\",BES:\"^(?=.*bonaire).*eustatius|^(?=.*carib).*netherlands|\\\\bbes.?islands\",BIH:\"herzegovina|bosnia\",BWA:\"botswana|bechuana\",BVT:\"bouvet\",BRA:\"brazil\",IOT:\"british.?indian.?ocean\",BRN:\"brunei\",BGR:\"bulgaria\",BFA:\"burkina|\\\\bfaso|upper.?volta\",BDI:\"burundi\",CPV:\"verde\",KHM:\"cambodia|kampuchea|khmer\",CMR:\"cameroon\",CAN:\"canada\",CYM:\"cayman\",CAF:\"\\\\bcentral.african.republic\",TCD:\"\\\\bchad\",CHL:\"\\\\bchile\",CHN:\"^(?!.*\\\\bmac)(?!.*\\\\bhong)(?!.*\\\\btai)(?!.*\\\\brep).*china|^(?=.*peo)(?=.*rep).*china\",CXR:\"christmas\",CCK:\"\\\\bcocos|keeling\",COL:\"colombia\",COM:\"comoro\",COG:\"^(?!.*\\\\bdem)(?!.*\\\\bd[\\\\.]?r)(?!.*kinshasa)(?!.*zaire)(?!.*belg)(?!.*l.opoldville)(?!.*free).*\\\\bcongo\",COK:\"\\\\bcook\",CRI:\"costa.?rica\",CIV:\"ivoire|ivory\",HRV:\"croatia\",CUB:\"\\\\bcuba\",CUW:\"^(?!.*bonaire).*\\\\bcura(c|\\xe7)ao\",CYP:\"cyprus\",CSK:\"czechoslovakia\",CZE:\"^(?=.*rep).*czech|czechia|bohemia\",COD:\"\\\\bdem.*congo|congo.*\\\\bdem|congo.*\\\\bd[\\\\.]?r|\\\\bd[\\\\.]?r.*congo|belgian.?congo|congo.?free.?state|kinshasa|zaire|l.opoldville|drc|droc|rdc\",DNK:\"denmark\",DJI:\"djibouti\",DMA:\"dominica(?!n)\",DOM:\"dominican.rep\",ECU:\"ecuador\",EGY:\"egypt\",SLV:\"el.?salvador\",GNQ:\"guine.*eq|eq.*guine|^(?=.*span).*guinea\",ERI:\"eritrea\",EST:\"estonia\",ETH:\"ethiopia|abyssinia\",FLK:\"falkland|malvinas\",FRO:\"faroe|faeroe\",FJI:\"fiji\",FIN:\"finland\",FRA:\"^(?!.*\\\\bdep)(?!.*martinique).*france|french.?republic|\\\\bgaul\",GUF:\"^(?=.*french).*guiana\",PYF:\"french.?polynesia|tahiti\",ATF:\"french.?southern\",GAB:\"gabon\",GMB:\"gambia\",GEO:\"^(?!.*south).*georgia\",DDR:\"german.?democratic.?republic|democratic.?republic.*germany|east.germany\",DEU:\"^(?!.*east).*germany|^(?=.*\\\\bfed.*\\\\brep).*german\",GHA:\"ghana|gold.?coast\",GIB:\"gibraltar\",GRC:\"greece|hellenic|hellas\",GRL:\"greenland\",GRD:\"grenada\",GLP:\"guadeloupe\",GUM:\"\\\\bguam\",GTM:\"guatemala\",GGY:\"guernsey\",GIN:\"^(?!.*eq)(?!.*span)(?!.*bissau)(?!.*portu)(?!.*new).*guinea\",GNB:\"bissau|^(?=.*portu).*guinea\",GUY:\"guyana|british.?guiana\",HTI:\"haiti\",HMD:\"heard.*mcdonald\",VAT:\"holy.?see|vatican|papal.?st\",HND:\"^(?!.*brit).*honduras\",HKG:\"hong.?kong\",HUN:\"^(?!.*austr).*hungary\",ISL:\"iceland\",IND:\"india(?!.*ocea)\",IDN:\"indonesia\",IRN:\"\\\\biran|persia\",IRQ:\"\\\\biraq|mesopotamia\",IRL:\"(^ireland)|(^republic.*ireland)\",IMN:\"^(?=.*isle).*\\\\bman\",ISR:\"israel\",ITA:\"italy\",JAM:\"jamaica\",JPN:\"japan\",JEY:\"jersey\",JOR:\"jordan\",KAZ:\"kazak\",KEN:\"kenya|british.?east.?africa|east.?africa.?prot\",KIR:\"kiribati\",PRK:\"^(?=.*democrat|people|north|d.*p.*.r).*\\\\bkorea|dprk|korea.*(d.*p.*r)\",KWT:\"kuwait\",KGZ:\"kyrgyz|kirghiz\",LAO:\"\\\\blaos?\\\\b\",LVA:\"latvia\",LBN:\"lebanon\",LSO:\"lesotho|basuto\",LBR:\"liberia\",LBY:\"libya\",LIE:\"liechtenstein\",LTU:\"lithuania\",LUX:\"^(?!.*belg).*luxem\",MAC:\"maca(o|u)\",MDG:\"madagascar|malagasy\",MWI:\"malawi|nyasa\",MYS:\"malaysia\",MDV:\"maldive\",MLI:\"\\\\bmali\\\\b\",MLT:\"\\\\bmalta\",MHL:\"marshall\",MTQ:\"martinique\",MRT:\"mauritania\",MUS:\"mauritius\",MYT:\"\\\\bmayotte\",MEX:\"\\\\bmexic\",FSM:\"fed.*micronesia|micronesia.*fed\",MCO:\"monaco\",MNG:\"mongolia\",MNE:\"^(?!.*serbia).*montenegro\",MSR:\"montserrat\",MAR:\"morocco|\\\\bmaroc\",MOZ:\"mozambique\",MMR:\"myanmar|burma\",NAM:\"namibia\",NRU:\"nauru\",NPL:\"nepal\",NLD:\"^(?!.*\\\\bant)(?!.*\\\\bcarib).*netherlands\",ANT:\"^(?=.*\\\\bant).*(nether|dutch)\",NCL:\"new.?caledonia\",NZL:\"new.?zealand\",NIC:\"nicaragua\",NER:\"\\\\bniger(?!ia)\",NGA:\"nigeria\",NIU:\"niue\",NFK:\"norfolk\",MNP:\"mariana\",NOR:\"norway\",OMN:\"\\\\boman|trucial\",PAK:\"^(?!.*east).*paki?stan\",PLW:\"palau\",PSE:\"palestin|\\\\bgaza|west.?bank\",PAN:\"panama\",PNG:\"papua|new.?guinea\",PRY:\"paraguay\",PER:\"peru\",PHL:\"philippines\",PCN:\"pitcairn\",POL:\"poland\",PRT:\"portugal\",PRI:\"puerto.?rico\",QAT:\"qatar\",KOR:\"^(?!.*d.*p.*r)(?!.*democrat)(?!.*people)(?!.*north).*\\\\bkorea(?!.*d.*p.*r)\",MDA:\"moldov|b(a|e)ssarabia\",REU:\"r(e|\\xe9)union\",ROU:\"r(o|u|ou)mania\",RUS:\"\\\\brussia|soviet.?union|u\\\\.?s\\\\.?s\\\\.?r|socialist.?republics\",RWA:\"rwanda\",BLM:\"barth(e|\\xe9)lemy\",SHN:\"helena\",KNA:\"kitts|\\\\bnevis\",LCA:\"\\\\blucia\",MAF:\"^(?=.*collectivity).*martin|^(?=.*france).*martin(?!ique)|^(?=.*french).*martin(?!ique)\",SPM:\"miquelon\",VCT:\"vincent\",WSM:\"^(?!.*amer).*samoa\",SMR:\"san.?marino\",STP:\"\\\\bs(a|\\xe3)o.?tom(e|\\xe9)\",SAU:\"\\\\bsa\\\\w*.?arabia\",SEN:\"senegal\",SRB:\"^(?!.*monte).*serbia\",SYC:\"seychell\",SLE:\"sierra\",SGP:\"singapore\",SXM:\"^(?!.*martin)(?!.*saba).*maarten\",SVK:\"^(?!.*cze).*slovak\",SVN:\"slovenia\",SLB:\"solomon\",SOM:\"somali\",ZAF:\"south.africa|s\\\\\\\\..?africa\",SGS:\"south.?georgia|sandwich\",SSD:\"\\\\bs\\\\w*.?sudan\",ESP:\"spain\",LKA:\"sri.?lanka|ceylon\",SDN:\"^(?!.*\\\\bs(?!u)).*sudan\",SUR:\"surinam|dutch.?guiana\",SJM:\"svalbard\",SWZ:\"swaziland\",SWE:\"sweden\",CHE:\"switz|swiss\",SYR:\"syria\",TWN:\"taiwan|taipei|formosa|^(?!.*peo)(?=.*rep).*china\",TJK:\"tajik\",THA:\"thailand|\\\\bsiam\",MKD:\"macedonia|fyrom\",TLS:\"^(?=.*leste).*timor|^(?=.*east).*timor\",TGO:\"togo\",TKL:\"tokelau\",TON:\"tonga\",TTO:\"trinidad|tobago\",TUN:\"tunisia\",TUR:\"turkey\",TKM:\"turkmen\",TCA:\"turks\",TUV:\"tuvalu\",UGA:\"uganda\",UKR:\"ukrain\",ARE:\"emirates|^u\\\\.?a\\\\.?e\\\\.?$|united.?arab.?em\",GBR:\"united.?kingdom|britain|^u\\\\.?k\\\\.?$\",TZA:\"tanzania\",USA:\"united.?states\\\\b(?!.*islands)|\\\\bu\\\\.?s\\\\.?a\\\\.?\\\\b|^\\\\s*u\\\\.?s\\\\.?\\\\b(?!.*islands)\",UMI:\"minor.?outlying.?is\",URY:\"uruguay\",UZB:\"uzbek\",VUT:\"vanuatu|new.?hebrides\",VEN:\"venezuela\",VNM:\"^(?!.*republic).*viet.?nam|^(?=.*socialist).*viet.?nam\",VGB:\"^(?=.*\\\\bu\\\\.?\\\\s?k).*virgin|^(?=.*brit).*virgin|^(?=.*kingdom).*virgin\",VIR:\"^(?=.*\\\\bu\\\\.?\\\\s?s).*virgin|^(?=.*states).*virgin\",WLF:\"futuna|wallis\",ESH:\"western.sahara\",YEM:\"^(?!.*arab)(?!.*north)(?!.*sana)(?!.*peo)(?!.*dem)(?!.*south)(?!.*aden)(?!.*\\\\bp\\\\.?d\\\\.?r).*yemen\",YMD:\"^(?=.*peo).*yemen|^(?!.*rep)(?=.*dem).*yemen|^(?=.*south).*yemen|^(?=.*aden).*yemen|^(?=.*\\\\bp\\\\.?d\\\\.?r).*yemen\",YUG:\"yugoslavia\",ZMB:\"zambia|northern.?rhodesia\",EAZ:\"zanzibar\",ZWE:\"zimbabwe|^(?!.*northern).*rhodesia\"}},{}],123:[function(t,e,r){e.exports=[\"xx-small\",\"x-small\",\"small\",\"medium\",\"large\",\"x-large\",\"xx-large\",\"larger\",\"smaller\"]},{}],124:[function(t,e,r){e.exports=[\"normal\",\"condensed\",\"semi-condensed\",\"extra-condensed\",\"ultra-condensed\",\"expanded\",\"semi-expanded\",\"extra-expanded\",\"ultra-expanded\"]},{}],125:[function(t,e,r){e.exports=[\"normal\",\"italic\",\"oblique\"]},{}],126:[function(t,e,r){e.exports=[\"normal\",\"bold\",\"bolder\",\"lighter\",\"100\",\"200\",\"300\",\"400\",\"500\",\"600\",\"700\",\"800\",\"900\"]},{}],127:[function(t,e,r){\"use strict\";e.exports={parse:t(\"./parse\"),stringify:t(\"./stringify\")}},{\"./parse\":129,\"./stringify\":130}],128:[function(t,e,r){\"use strict\";var n=t(\"css-font-size-keywords\");e.exports={isSize:function(t){return/^[\\d\\.]/.test(t)||-1!==t.indexOf(\"/\")||-1!==n.indexOf(t)}}},{\"css-font-size-keywords\":123}],129:[function(t,e,r){\"use strict\";var n=t(\"unquote\"),i=t(\"css-global-keywords\"),a=t(\"css-system-font-keywords\"),o=t(\"css-font-weight-keywords\"),s=t(\"css-font-style-keywords\"),l=t(\"css-font-stretch-keywords\"),c=t(\"string-split-by\"),u=t(\"./lib/util\").isSize;e.exports=h;var f=h.cache={};function h(t){if(\"string\"!=typeof t)throw new Error(\"Font argument must be a string.\");if(f[t])return f[t];if(\"\"===t)throw new Error(\"Cannot parse an empty string.\");if(-1!==a.indexOf(t))return f[t]={system:t};for(var e,r={style:\"normal\",variant:\"normal\",weight:\"normal\",stretch:\"normal\",lineHeight:\"normal\",size:\"1rem\",family:[\"serif\"]},h=c(t,/\\s+/);e=h.shift();){if(-1!==i.indexOf(e))return[\"style\",\"variant\",\"weight\",\"stretch\"].forEach(function(t){r[t]=e}),f[t]=r;if(-1===s.indexOf(e))if(\"normal\"!==e&&\"small-caps\"!==e)if(-1===l.indexOf(e)){if(-1===o.indexOf(e)){if(u(e)){var d=c(e,\"/\");if(r.size=d[0],null!=d[1]?r.lineHeight=p(d[1]):\"/\"===h[0]&&(h.shift(),r.lineHeight=p(h.shift())),!h.length)throw new Error(\"Missing required font-family.\");return r.family=c(h.join(\" \"),/\\s*,\\s*/).map(n),f[t]=r}throw new Error(\"Unknown or unsupported font token: \"+e)}r.weight=e}else r.stretch=e;else r.variant=e;else r.style=e}throw new Error(\"Missing required font-size.\")}function p(t){var e=parseFloat(t);return e.toString()===t?e:t}},{\"./lib/util\":128,\"css-font-stretch-keywords\":124,\"css-font-style-keywords\":125,\"css-font-weight-keywords\":126,\"css-global-keywords\":131,\"css-system-font-keywords\":132,\"string-split-by\":505,unquote:525}],130:[function(t,e,r){\"use strict\";var n=t(\"pick-by-alias\"),i=t(\"./lib/util\").isSize,a=g(t(\"css-global-keywords\")),o=g(t(\"css-system-font-keywords\")),s=g(t(\"css-font-weight-keywords\")),l=g(t(\"css-font-style-keywords\")),c=g(t(\"css-font-stretch-keywords\")),u={normal:1,\"small-caps\":1},f={serif:1,\"sans-serif\":1,monospace:1,cursive:1,fantasy:1,\"system-ui\":1},h=\"1rem\",p=\"serif\";function d(t,e){if(t&&!e[t]&&!a[t])throw Error(\"Unknown keyword `\"+t+\"`\");return t}function g(t){for(var e={},r=0;r<t.length;r++)e[t[r]]=1;return e}e.exports=function(t){if((t=n(t,{style:\"style fontstyle fontStyle font-style slope distinction\",variant:\"variant font-variant fontVariant fontvariant var capitalization\",weight:\"weight w font-weight fontWeight fontweight\",stretch:\"stretch font-stretch fontStretch fontstretch width\",size:\"size s font-size fontSize fontsize height em emSize\",lineHeight:\"lh line-height lineHeight lineheight leading\",family:\"font family fontFamily font-family fontfamily type typeface face\",system:\"system reserved default global\"})).system)return t.system&&d(t.system,o),t.system;if(d(t.style,l),d(t.variant,u),d(t.weight,s),d(t.stretch,c),null==t.size&&(t.size=h),\"number\"==typeof t.size&&(t.size+=\"px\"),!i)throw Error(\"Bad size value `\"+t.size+\"`\");t.family||(t.family=p),Array.isArray(t.family)&&(t.family.length||(t.family=[p]),t.family=t.family.map(function(t){return f[t]?t:'\"'+t+'\"'}).join(\", \"));var e=[];return e.push(t.style),t.variant!==t.style&&e.push(t.variant),t.weight!==t.variant&&t.weight!==t.style&&e.push(t.weight),t.stretch!==t.weight&&t.stretch!==t.variant&&t.stretch!==t.style&&e.push(t.stretch),e.push(t.size+(null==t.lineHeight||\"normal\"===t.lineHeight||t.lineHeight+\"\"==\"1\"?\"\":\"/\"+t.lineHeight)),e.push(t.family),e.filter(Boolean).join(\" \")}},{\"./lib/util\":128,\"css-font-stretch-keywords\":124,\"css-font-style-keywords\":125,\"css-font-weight-keywords\":126,\"css-global-keywords\":131,\"css-system-font-keywords\":132,\"pick-by-alias\":448}],131:[function(t,e,r){e.exports=[\"inherit\",\"initial\",\"unset\"]},{}],132:[function(t,e,r){e.exports=[\"caption\",\"icon\",\"menu\",\"message-box\",\"small-caption\",\"status-bar\"]},{}],133:[function(t,e,r){\"use strict\";e.exports=function(t,e,r,n,i,a){var o=i-1,s=i*i,l=o*o,c=(1+2*i)*l,u=i*l,f=s*(3-2*i),h=s*o;if(t.length){a||(a=new Array(t.length));for(var p=t.length-1;p>=0;--p)a[p]=c*t[p]+u*e[p]+f*r[p]+h*n[p];return a}return c*t+u*e+f*r+h*n},e.exports.derivative=function(t,e,r,n,i,a){var o=6*i*i-6*i,s=3*i*i-4*i+1,l=-6*i*i+6*i,c=3*i*i-2*i;if(t.length){a||(a=new Array(t.length));for(var u=t.length-1;u>=0;--u)a[u]=o*t[u]+s*e[u]+l*r[u]+c*n[u];return a}return o*t+s*e+l*r[u]+c*n}},{}],134:[function(t,e,r){\"use strict\";var n=t(\"./lib/thunk.js\");function i(){this.argTypes=[],this.shimArgs=[],this.arrayArgs=[],this.arrayBlockIndices=[],this.scalarArgs=[],this.offsetArgs=[],this.offsetArgIndex=[],this.indexArgs=[],this.shapeArgs=[],this.funcName=\"\",this.pre=null,this.body=null,this.post=null,this.debug=!1}e.exports=function(t){var e=new i;e.pre=t.pre,e.body=t.body,e.post=t.post;var r=t.args.slice(0);e.argTypes=r;for(var a=0;a<r.length;++a){var o=r[a];if(\"array\"===o||\"object\"==typeof o&&o.blockIndices){if(e.argTypes[a]=\"array\",e.arrayArgs.push(a),e.arrayBlockIndices.push(o.blockIndices?o.blockIndices:0),e.shimArgs.push(\"array\"+a),a<e.pre.args.length&&e.pre.args[a].count>0)throw new Error(\"cwise: pre() block may not reference array args\");if(a<e.post.args.length&&e.post.args[a].count>0)throw new Error(\"cwise: post() block may not reference array args\")}else if(\"scalar\"===o)e.scalarArgs.push(a),e.shimArgs.push(\"scalar\"+a);else if(\"index\"===o){if(e.indexArgs.push(a),a<e.pre.args.length&&e.pre.args[a].count>0)throw new Error(\"cwise: pre() block may not reference array index\");if(a<e.body.args.length&&e.body.args[a].lvalue)throw new Error(\"cwise: body() block may not write to array index\");if(a<e.post.args.length&&e.post.args[a].count>0)throw new Error(\"cwise: post() block may not reference array index\")}else if(\"shape\"===o){if(e.shapeArgs.push(a),a<e.pre.args.length&&e.pre.args[a].lvalue)throw new Error(\"cwise: pre() block may not write to array shape\");if(a<e.body.args.length&&e.body.args[a].lvalue)throw new Error(\"cwise: body() block may not write to array shape\");if(a<e.post.args.length&&e.post.args[a].lvalue)throw new Error(\"cwise: post() block may not write to array shape\")}else{if(\"object\"!=typeof o||!o.offset)throw new Error(\"cwise: Unknown argument type \"+r[a]);e.argTypes[a]=\"offset\",e.offsetArgs.push({array:o.array,offset:o.offset}),e.offsetArgIndex.push(a)}}if(e.arrayArgs.length<=0)throw new Error(\"cwise: No array arguments specified\");if(e.pre.args.length>r.length)throw new Error(\"cwise: Too many arguments in pre() block\");if(e.body.args.length>r.length)throw new Error(\"cwise: Too many arguments in body() block\");if(e.post.args.length>r.length)throw new Error(\"cwise: Too many arguments in post() block\");return e.debug=!!t.printCode||!!t.debug,e.funcName=t.funcName||\"cwise\",e.blockSize=t.blockSize||64,n(e)}},{\"./lib/thunk.js\":136}],135:[function(t,e,r){\"use strict\";var n=t(\"uniq\");function i(t,e,r){var n,i,a=t.length,o=e.arrayArgs.length,s=e.indexArgs.length>0,l=[],c=[],u=0,f=0;for(n=0;n<a;++n)c.push([\"i\",n,\"=0\"].join(\"\"));for(i=0;i<o;++i)for(n=0;n<a;++n)f=u,u=t[n],0===n?c.push([\"d\",i,\"s\",n,\"=t\",i,\"p\",u].join(\"\")):c.push([\"d\",i,\"s\",n,\"=(t\",i,\"p\",u,\"-s\",f,\"*t\",i,\"p\",f,\")\"].join(\"\"));for(c.length>0&&l.push(\"var \"+c.join(\",\")),n=a-1;n>=0;--n)u=t[n],l.push([\"for(i\",n,\"=0;i\",n,\"<s\",u,\";++i\",n,\"){\"].join(\"\"));for(l.push(r),n=0;n<a;++n){for(f=u,u=t[n],i=0;i<o;++i)l.push([\"p\",i,\"+=d\",i,\"s\",n].join(\"\"));s&&(n>0&&l.push([\"index[\",f,\"]-=s\",f].join(\"\")),l.push([\"++index[\",u,\"]\"].join(\"\"))),l.push(\"}\")}return l.join(\"\\n\")}function a(t,e,r){for(var n=t.body,i=[],a=[],o=0;o<t.args.length;++o){var s=t.args[o];if(!(s.count<=0)){var l=new RegExp(s.name,\"g\"),c=\"\",u=e.arrayArgs.indexOf(o);switch(e.argTypes[o]){case\"offset\":var f=e.offsetArgIndex.indexOf(o);u=e.offsetArgs[f].array,c=\"+q\"+f;case\"array\":c=\"p\"+u+c;var h=\"l\"+o,p=\"a\"+u;if(0===e.arrayBlockIndices[u])1===s.count?\"generic\"===r[u]?s.lvalue?(i.push([\"var \",h,\"=\",p,\".get(\",c,\")\"].join(\"\")),n=n.replace(l,h),a.push([p,\".set(\",c,\",\",h,\")\"].join(\"\"))):n=n.replace(l,[p,\".get(\",c,\")\"].join(\"\")):n=n.replace(l,[p,\"[\",c,\"]\"].join(\"\")):\"generic\"===r[u]?(i.push([\"var \",h,\"=\",p,\".get(\",c,\")\"].join(\"\")),n=n.replace(l,h),s.lvalue&&a.push([p,\".set(\",c,\",\",h,\")\"].join(\"\"))):(i.push([\"var \",h,\"=\",p,\"[\",c,\"]\"].join(\"\")),n=n.replace(l,h),s.lvalue&&a.push([p,\"[\",c,\"]=\",h].join(\"\")));else{for(var d=[s.name],g=[c],v=0;v<Math.abs(e.arrayBlockIndices[u]);v++)d.push(\"\\\\s*\\\\[([^\\\\]]+)\\\\]\"),g.push(\"$\"+(v+1)+\"*t\"+u+\"b\"+v);if(l=new RegExp(d.join(\"\"),\"g\"),c=g.join(\"+\"),\"generic\"===r[u])throw new Error(\"cwise: Generic arrays not supported in combination with blocks!\");n=n.replace(l,[p,\"[\",c,\"]\"].join(\"\"))}break;case\"scalar\":n=n.replace(l,\"Y\"+e.scalarArgs.indexOf(o));break;case\"index\":n=n.replace(l,\"index\");break;case\"shape\":n=n.replace(l,\"shape\")}}}return[i.join(\"\\n\"),n,a.join(\"\\n\")].join(\"\\n\").trim()}e.exports=function(t,e){for(var r=e[1].length-Math.abs(t.arrayBlockIndices[0])|0,o=new Array(t.arrayArgs.length),s=new Array(t.arrayArgs.length),l=0;l<t.arrayArgs.length;++l)s[l]=e[2*l],o[l]=e[2*l+1];var c=[],u=[],f=[],h=[],p=[];for(l=0;l<t.arrayArgs.length;++l){t.arrayBlockIndices[l]<0?(f.push(0),h.push(r),c.push(r),u.push(r+t.arrayBlockIndices[l])):(f.push(t.arrayBlockIndices[l]),h.push(t.arrayBlockIndices[l]+r),c.push(0),u.push(t.arrayBlockIndices[l]));for(var d=[],g=0;g<o[l].length;g++)f[l]<=o[l][g]&&o[l][g]<h[l]&&d.push(o[l][g]-f[l]);p.push(d)}var v=[\"SS\"],m=[\"'use strict'\"],y=[];for(g=0;g<r;++g)y.push([\"s\",g,\"=SS[\",g,\"]\"].join(\"\"));for(l=0;l<t.arrayArgs.length;++l){for(v.push(\"a\"+l),v.push(\"t\"+l),v.push(\"p\"+l),g=0;g<r;++g)y.push([\"t\",l,\"p\",g,\"=t\",l,\"[\",f[l]+g,\"]\"].join(\"\"));for(g=0;g<Math.abs(t.arrayBlockIndices[l]);++g)y.push([\"t\",l,\"b\",g,\"=t\",l,\"[\",c[l]+g,\"]\"].join(\"\"))}for(l=0;l<t.scalarArgs.length;++l)v.push(\"Y\"+l);if(t.shapeArgs.length>0&&y.push(\"shape=SS.slice(0)\"),t.indexArgs.length>0){var x=new Array(r);for(l=0;l<r;++l)x[l]=\"0\";y.push([\"index=[\",x.join(\",\"),\"]\"].join(\"\"))}for(l=0;l<t.offsetArgs.length;++l){var b=t.offsetArgs[l],_=[];for(g=0;g<b.offset.length;++g)0!==b.offset[g]&&(1===b.offset[g]?_.push([\"t\",b.array,\"p\",g].join(\"\")):_.push([b.offset[g],\"*t\",b.array,\"p\",g].join(\"\")));0===_.length?y.push(\"q\"+l+\"=0\"):y.push([\"q\",l,\"=\",_.join(\"+\")].join(\"\"))}var w=n([].concat(t.pre.thisVars).concat(t.body.thisVars).concat(t.post.thisVars));for((y=y.concat(w)).length>0&&m.push(\"var \"+y.join(\",\")),l=0;l<t.arrayArgs.length;++l)m.push(\"p\"+l+\"|=0\");t.pre.body.length>3&&m.push(a(t.pre,t,s));var k=a(t.body,t,s),M=function(t){for(var e=0,r=t[0].length;e<r;){for(var n=1;n<t.length;++n)if(t[n][e]!==t[0][e])return e;++e}return e}(p);M<r?m.push(function(t,e,r,n){for(var a=e.length,o=r.arrayArgs.length,s=r.blockSize,l=r.indexArgs.length>0,c=[],u=0;u<o;++u)c.push([\"var offset\",u,\"=p\",u].join(\"\"));for(u=t;u<a;++u)c.push([\"for(var j\"+u+\"=SS[\",e[u],\"]|0;j\",u,\">0;){\"].join(\"\")),c.push([\"if(j\",u,\"<\",s,\"){\"].join(\"\")),c.push([\"s\",e[u],\"=j\",u].join(\"\")),c.push([\"j\",u,\"=0\"].join(\"\")),c.push([\"}else{s\",e[u],\"=\",s].join(\"\")),c.push([\"j\",u,\"-=\",s,\"}\"].join(\"\")),l&&c.push([\"index[\",e[u],\"]=j\",u].join(\"\"));for(u=0;u<o;++u){for(var f=[\"offset\"+u],h=t;h<a;++h)f.push([\"j\",h,\"*t\",u,\"p\",e[h]].join(\"\"));c.push([\"p\",u,\"=(\",f.join(\"+\"),\")\"].join(\"\"))}for(c.push(i(e,r,n)),u=t;u<a;++u)c.push(\"}\");return c.join(\"\\n\")}(M,p[0],t,k)):m.push(i(p[0],t,k)),t.post.body.length>3&&m.push(a(t.post,t,s)),t.debug&&console.log(\"-----Generated cwise routine for \",e,\":\\n\"+m.join(\"\\n\")+\"\\n----------\");var A=[t.funcName||\"unnamed\",\"_cwise_loop_\",o[0].join(\"s\"),\"m\",M,function(t){for(var e=new Array(t.length),r=!0,n=0;n<t.length;++n){var i=t[n],a=i.match(/\\d+/);a=a?a[0]:\"\",0===i.charAt(0)?e[n]=\"u\"+i.charAt(1)+a:e[n]=i.charAt(0)+a,n>0&&(r=r&&e[n]===e[n-1])}return r?e[0]:e.join(\"\")}(s)].join(\"\");return new Function([\"function \",A,\"(\",v.join(\",\"),\"){\",m.join(\"\\n\"),\"} return \",A].join(\"\"))()}},{uniq:524}],136:[function(t,e,r){\"use strict\";var n=t(\"./compile.js\");e.exports=function(t){var e=[\"'use strict'\",\"var CACHED={}\"],r=[],i=t.funcName+\"_cwise_thunk\";e.push([\"return function \",i,\"(\",t.shimArgs.join(\",\"),\"){\"].join(\"\"));for(var a=[],o=[],s=[[\"array\",t.arrayArgs[0],\".shape.slice(\",Math.max(0,t.arrayBlockIndices[0]),t.arrayBlockIndices[0]<0?\",\"+t.arrayBlockIndices[0]+\")\":\")\"].join(\"\")],l=[],c=[],u=0;u<t.arrayArgs.length;++u){var f=t.arrayArgs[u];r.push([\"t\",f,\"=array\",f,\".dtype,\",\"r\",f,\"=array\",f,\".order\"].join(\"\")),a.push(\"t\"+f),a.push(\"r\"+f),o.push(\"t\"+f),o.push(\"r\"+f+\".join()\"),s.push(\"array\"+f+\".data\"),s.push(\"array\"+f+\".stride\"),s.push(\"array\"+f+\".offset|0\"),u>0&&(l.push(\"array\"+t.arrayArgs[0]+\".shape.length===array\"+f+\".shape.length+\"+(Math.abs(t.arrayBlockIndices[0])-Math.abs(t.arrayBlockIndices[u]))),c.push(\"array\"+t.arrayArgs[0]+\".shape[shapeIndex+\"+Math.max(0,t.arrayBlockIndices[0])+\"]===array\"+f+\".shape[shapeIndex+\"+Math.max(0,t.arrayBlockIndices[u])+\"]\"))}for(t.arrayArgs.length>1&&(e.push(\"if (!(\"+l.join(\" && \")+\")) throw new Error('cwise: Arrays do not all have the same dimensionality!')\"),e.push(\"for(var shapeIndex=array\"+t.arrayArgs[0]+\".shape.length-\"+Math.abs(t.arrayBlockIndices[0])+\"; shapeIndex--\\x3e0;) {\"),e.push(\"if (!(\"+c.join(\" && \")+\")) throw new Error('cwise: Arrays do not all have the same shape!')\"),e.push(\"}\")),u=0;u<t.scalarArgs.length;++u)s.push(\"scalar\"+t.scalarArgs[u]);return r.push([\"type=[\",o.join(\",\"),\"].join()\"].join(\"\")),r.push(\"proc=CACHED[type]\"),e.push(\"var \"+r.join(\",\")),e.push([\"if(!proc){\",\"CACHED[type]=proc=compile([\",a.join(\",\"),\"])}\",\"return proc(\",s.join(\",\"),\")}\"].join(\"\")),t.debug&&console.log(\"-----Generated thunk:\\n\"+e.join(\"\\n\")+\"\\n----------\"),new Function(\"compile\",e.join(\"\\n\"))(n.bind(void 0,t))}},{\"./compile.js\":135}],137:[function(t,e,r){e.exports=t(\"cwise-compiler\")},{\"cwise-compiler\":134}],138:[function(t,e,r){\"use strict\";var n,i=t(\"es5-ext/object/copy\"),a=t(\"es5-ext/object/normalize-options\"),o=t(\"es5-ext/object/valid-callable\"),s=t(\"es5-ext/object/map\"),l=t(\"es5-ext/object/valid-callable\"),c=t(\"es5-ext/object/valid-value\"),u=Function.prototype.bind,f=Object.defineProperty,h=Object.prototype.hasOwnProperty;n=function(t,e,r){var n,a=c(e)&&l(e.value);return delete(n=i(e)).writable,delete n.value,n.get=function(){return!r.overwriteDefinition&&h.call(this,t)?a:(e.value=u.call(a,r.resolveContext?r.resolveContext(this):this),f(this,t,e),this[t])},n},e.exports=function(t){var e=a(arguments[1]);return null!=e.resolveContext&&o(e.resolveContext),s(t,function(t,r){return n(r,t,e)})}},{\"es5-ext/object/copy\":174,\"es5-ext/object/map\":183,\"es5-ext/object/normalize-options\":184,\"es5-ext/object/valid-callable\":188,\"es5-ext/object/valid-value\":190}],139:[function(t,e,r){\"use strict\";var n=t(\"es5-ext/object/assign\"),i=t(\"es5-ext/object/normalize-options\"),a=t(\"es5-ext/object/is-callable\"),o=t(\"es5-ext/string/#/contains\");(e.exports=function(t,e){var r,a,s,l,c;return arguments.length<2||\"string\"!=typeof t?(l=e,e=t,t=null):l=arguments[2],null==t?(r=s=!0,a=!1):(r=o.call(t,\"c\"),a=o.call(t,\"e\"),s=o.call(t,\"w\")),c={value:e,configurable:r,enumerable:a,writable:s},l?n(i(l),c):c}).gs=function(t,e,r){var s,l,c,u;return\"string\"!=typeof t?(c=r,r=e,e=t,t=null):c=arguments[3],null==e?e=void 0:a(e)?null==r?r=void 0:a(r)||(c=r,r=void 0):(c=e,e=r=void 0),null==t?(s=!0,l=!1):(s=o.call(t,\"c\"),l=o.call(t,\"e\")),u={get:e,set:r,configurable:s,enumerable:l},c?n(i(c),u):u}},{\"es5-ext/object/assign\":171,\"es5-ext/object/is-callable\":177,\"es5-ext/object/normalize-options\":184,\"es5-ext/string/#/contains\":191}],140:[function(t,e,r){var n;n=this,function(t){\"use strict\";function e(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function r(t){var r;return 1===t.length&&(r=t,t=function(t,n){return e(r(t),n)}),{left:function(e,r,n,i){for(null==n&&(n=0),null==i&&(i=e.length);n<i;){var a=n+i>>>1;t(e[a],r)<0?n=a+1:i=a}return n},right:function(e,r,n,i){for(null==n&&(n=0),null==i&&(i=e.length);n<i;){var a=n+i>>>1;t(e[a],r)>0?i=a:n=a+1}return n}}}var n=r(e),i=n.right,a=n.left;function o(t,e){return[t,e]}function s(t){return null===t?NaN:+t}function l(t,e){var r,n,i=t.length,a=0,o=-1,l=0,c=0;if(null==e)for(;++o<i;)isNaN(r=s(t[o]))||(c+=(n=r-l)*(r-(l+=n/++a)));else for(;++o<i;)isNaN(r=s(e(t[o],o,t)))||(c+=(n=r-l)*(r-(l+=n/++a)));if(a>1)return c/(a-1)}function c(t,e){var r=l(t,e);return r?Math.sqrt(r):r}function u(t,e){var r,n,i,a=t.length,o=-1;if(null==e){for(;++o<a;)if(null!=(r=t[o])&&r>=r)for(n=i=r;++o<a;)null!=(r=t[o])&&(n>r&&(n=r),i<r&&(i=r))}else for(;++o<a;)if(null!=(r=e(t[o],o,t))&&r>=r)for(n=i=r;++o<a;)null!=(r=e(t[o],o,t))&&(n>r&&(n=r),i<r&&(i=r));return[n,i]}var f=Array.prototype,h=f.slice,p=f.map;function d(t){return function(){return t}}function g(t){return t}function v(t,e,r){t=+t,e=+e,r=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+r;for(var n=-1,i=0|Math.max(0,Math.ceil((e-t)/r)),a=new Array(i);++n<i;)a[n]=t+n*r;return a}var m=Math.sqrt(50),y=Math.sqrt(10),x=Math.sqrt(2);function b(t,e,r){var n=(e-t)/Math.max(0,r),i=Math.floor(Math.log(n)/Math.LN10),a=n/Math.pow(10,i);return i>=0?(a>=m?10:a>=y?5:a>=x?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(a>=m?10:a>=y?5:a>=x?2:1)}function _(t,e,r){var n=Math.abs(e-t)/Math.max(0,r),i=Math.pow(10,Math.floor(Math.log(n)/Math.LN10)),a=n/i;return a>=m?i*=10:a>=y?i*=5:a>=x&&(i*=2),e<t?-i:i}function w(t){return Math.ceil(Math.log(t.length)/Math.LN2)+1}function k(t,e,r){if(null==r&&(r=s),n=t.length){if((e=+e)<=0||n<2)return+r(t[0],0,t);if(e>=1)return+r(t[n-1],n-1,t);var n,i=(n-1)*e,a=Math.floor(i),o=+r(t[a],a,t);return o+(+r(t[a+1],a+1,t)-o)*(i-a)}}function M(t,e){var r,n,i=t.length,a=-1;if(null==e){for(;++a<i;)if(null!=(r=t[a])&&r>=r)for(n=r;++a<i;)null!=(r=t[a])&&n>r&&(n=r)}else for(;++a<i;)if(null!=(r=e(t[a],a,t))&&r>=r)for(n=r;++a<i;)null!=(r=e(t[a],a,t))&&n>r&&(n=r);return n}function A(t){if(!(i=t.length))return[];for(var e=-1,r=M(t,T),n=new Array(r);++e<r;)for(var i,a=-1,o=n[e]=new Array(i);++a<i;)o[a]=t[a][e];return n}function T(t){return t.length}t.bisect=i,t.bisectRight=i,t.bisectLeft=a,t.ascending=e,t.bisector=r,t.cross=function(t,e,r){var n,i,a,s,l=t.length,c=e.length,u=new Array(l*c);for(null==r&&(r=o),n=a=0;n<l;++n)for(s=t[n],i=0;i<c;++i,++a)u[a]=r(s,e[i]);return u},t.descending=function(t,e){return e<t?-1:e>t?1:e>=t?0:NaN},t.deviation=c,t.extent=u,t.histogram=function(){var t=g,e=u,r=w;function n(n){var a,o,s=n.length,l=new Array(s);for(a=0;a<s;++a)l[a]=t(n[a],a,n);var c=e(l),u=c[0],f=c[1],h=r(l,u,f);Array.isArray(h)||(h=_(u,f,h),h=v(Math.ceil(u/h)*h,f,h));for(var p=h.length;h[0]<=u;)h.shift(),--p;for(;h[p-1]>f;)h.pop(),--p;var d,g=new Array(p+1);for(a=0;a<=p;++a)(d=g[a]=[]).x0=a>0?h[a-1]:u,d.x1=a<p?h[a]:f;for(a=0;a<s;++a)u<=(o=l[a])&&o<=f&&g[i(h,o,0,p)].push(n[a]);return g}return n.value=function(e){return arguments.length?(t=\"function\"==typeof e?e:d(e),n):t},n.domain=function(t){return arguments.length?(e=\"function\"==typeof t?t:d([t[0],t[1]]),n):e},n.thresholds=function(t){return arguments.length?(r=\"function\"==typeof t?t:Array.isArray(t)?d(h.call(t)):d(t),n):r},n},t.thresholdFreedmanDiaconis=function(t,r,n){return t=p.call(t,s).sort(e),Math.ceil((n-r)/(2*(k(t,.75)-k(t,.25))*Math.pow(t.length,-1/3)))},t.thresholdScott=function(t,e,r){return Math.ceil((r-e)/(3.5*c(t)*Math.pow(t.length,-1/3)))},t.thresholdSturges=w,t.max=function(t,e){var r,n,i=t.length,a=-1;if(null==e){for(;++a<i;)if(null!=(r=t[a])&&r>=r)for(n=r;++a<i;)null!=(r=t[a])&&r>n&&(n=r)}else for(;++a<i;)if(null!=(r=e(t[a],a,t))&&r>=r)for(n=r;++a<i;)null!=(r=e(t[a],a,t))&&r>n&&(n=r);return n},t.mean=function(t,e){var r,n=t.length,i=n,a=-1,o=0;if(null==e)for(;++a<n;)isNaN(r=s(t[a]))?--i:o+=r;else for(;++a<n;)isNaN(r=s(e(t[a],a,t)))?--i:o+=r;if(i)return o/i},t.median=function(t,r){var n,i=t.length,a=-1,o=[];if(null==r)for(;++a<i;)isNaN(n=s(t[a]))||o.push(n);else for(;++a<i;)isNaN(n=s(r(t[a],a,t)))||o.push(n);return k(o.sort(e),.5)},t.merge=function(t){for(var e,r,n,i=t.length,a=-1,o=0;++a<i;)o+=t[a].length;for(r=new Array(o);--i>=0;)for(e=(n=t[i]).length;--e>=0;)r[--o]=n[e];return r},t.min=M,t.pairs=function(t,e){null==e&&(e=o);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r<n;)a[r]=e(i,i=t[++r]);return a},t.permute=function(t,e){for(var r=e.length,n=new Array(r);r--;)n[r]=t[e[r]];return n},t.quantile=k,t.range=v,t.scan=function(t,r){if(n=t.length){var n,i,a=0,o=0,s=t[o];for(null==r&&(r=e);++a<n;)(r(i=t[a],s)<0||0!==r(s,s))&&(s=i,o=a);return 0===r(s,s)?o:void 0}},t.shuffle=function(t,e,r){for(var n,i,a=(null==r?t.length:r)-(e=null==e?0:+e);a;)i=Math.random()*a--|0,n=t[a+e],t[a+e]=t[i+e],t[i+e]=n;return t},t.sum=function(t,e){var r,n=t.length,i=-1,a=0;if(null==e)for(;++i<n;)(r=+t[i])&&(a+=r);else for(;++i<n;)(r=+e(t[i],i,t))&&(a+=r);return a},t.ticks=function(t,e,r){var n,i,a,o,s=-1;if(r=+r,(t=+t)==(e=+e)&&r>0)return[t];if((n=e<t)&&(i=t,t=e,e=i),0===(o=b(t,e,r))||!isFinite(o))return[];if(o>0)for(t=Math.ceil(t/o),e=Math.floor(e/o),a=new Array(i=Math.ceil(e-t+1));++s<i;)a[s]=(t+s)*o;else for(t=Math.floor(t*o),e=Math.ceil(e*o),a=new Array(i=Math.ceil(t-e+1));++s<i;)a[s]=(t-s)/o;return n&&a.reverse(),a},t.tickIncrement=b,t.tickStep=_,t.transpose=A,t.variance=l,t.zip=function(){return A(arguments)},Object.defineProperty(t,\"__esModule\",{value:!0})}(\"object\"==typeof r&&\"undefined\"!=typeof e?r:n.d3=n.d3||{})},{}],141:[function(t,e,r){var n;n=this,function(t){\"use strict\";function e(){}function r(t,r){var n=new e;if(t instanceof e)t.each(function(t,e){n.set(e,t)});else if(Array.isArray(t)){var i,a=-1,o=t.length;if(null==r)for(;++a<o;)n.set(a,t[a]);else for(;++a<o;)n.set(r(i=t[a],a,t),i)}else if(t)for(var s in t)n.set(s,t[s]);return n}e.prototype=r.prototype={constructor:e,has:function(t){return\"$\"+t in this},get:function(t){return this[\"$\"+t]},set:function(t,e){return this[\"$\"+t]=e,this},remove:function(t){var e=\"$\"+t;return e in this&&delete this[e]},clear:function(){for(var t in this)\"$\"===t[0]&&delete this[t]},keys:function(){var t=[];for(var e in this)\"$\"===e[0]&&t.push(e.slice(1));return t},values:function(){var t=[];for(var e in this)\"$\"===e[0]&&t.push(this[e]);return t},entries:function(){var t=[];for(var e in this)\"$\"===e[0]&&t.push({key:e.slice(1),value:this[e]});return t},size:function(){var t=0;for(var e in this)\"$\"===e[0]&&++t;return t},empty:function(){for(var t in this)if(\"$\"===t[0])return!1;return!0},each:function(t){for(var e in this)\"$\"===e[0]&&t(this[e],e.slice(1),this)}};function n(){return{}}function i(t,e,r){t[e]=r}function a(){return r()}function o(t,e,r){t.set(e,r)}function s(){}var l=r.prototype;function c(t,e){var r=new s;if(t instanceof s)t.each(function(t){r.add(t)});else if(t){var n=-1,i=t.length;if(null==e)for(;++n<i;)r.add(t[n]);else for(;++n<i;)r.add(e(t[n],n,t))}return r}s.prototype=c.prototype={constructor:s,has:l.has,add:function(t){return this[\"$\"+(t+=\"\")]=t,this},remove:l.remove,clear:l.clear,values:l.keys,size:l.size,empty:l.empty,each:l.each};t.nest=function(){var t,e,s,l=[],c=[];function u(n,i,a,o){if(i>=l.length)return null!=t&&n.sort(t),null!=e?e(n):n;for(var s,c,f,h=-1,p=n.length,d=l[i++],g=r(),v=a();++h<p;)(f=g.get(s=d(c=n[h])+\"\"))?f.push(c):g.set(s,[c]);return g.each(function(t,e){o(v,e,u(t,i,a,o))}),v}return s={object:function(t){return u(t,0,n,i)},map:function(t){return u(t,0,a,o)},entries:function(t){return function t(r,n){if(++n>l.length)return r;var i,a=c[n-1];return null!=e&&n>=l.length?i=r.entries():(i=[],r.each(function(e,r){i.push({key:r,values:t(e,n)})})),null!=a?i.sort(function(t,e){return a(t.key,e.key)}):i}(u(t,0,a,o),0)},key:function(t){return l.push(t),s},sortKeys:function(t){return c[l.length-1]=t,s},sortValues:function(e){return t=e,s},rollup:function(t){return e=t,s}}},t.set=c,t.map=r,t.keys=function(t){var e=[];for(var r in t)e.push(r);return e},t.values=function(t){var e=[];for(var r in t)e.push(t[r]);return e},t.entries=function(t){var e=[];for(var r in t)e.push({key:r,value:t[r]});return e},Object.defineProperty(t,\"__esModule\",{value:!0})}(\"object\"==typeof r&&\"undefined\"!=typeof e?r:n.d3=n.d3||{})},{}],142:[function(t,e,r){var n;n=this,function(t){\"use strict\";function e(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function r(t,e){var r=Object.create(t.prototype);for(var n in e)r[n]=e[n];return r}function n(){}var i=\"\\\\s*([+-]?\\\\d+)\\\\s*\",a=\"\\\\s*([+-]?\\\\d*\\\\.?\\\\d+(?:[eE][+-]?\\\\d+)?)\\\\s*\",o=\"\\\\s*([+-]?\\\\d*\\\\.?\\\\d+(?:[eE][+-]?\\\\d+)?)%\\\\s*\",s=/^#([0-9a-f]{3})$/,l=/^#([0-9a-f]{6})$/,c=new RegExp(\"^rgb\\\\(\"+[i,i,i]+\"\\\\)$\"),u=new RegExp(\"^rgb\\\\(\"+[o,o,o]+\"\\\\)$\"),f=new RegExp(\"^rgba\\\\(\"+[i,i,i,a]+\"\\\\)$\"),h=new RegExp(\"^rgba\\\\(\"+[o,o,o,a]+\"\\\\)$\"),p=new RegExp(\"^hsl\\\\(\"+[a,o,o]+\"\\\\)$\"),d=new RegExp(\"^hsla\\\\(\"+[a,o,o,a]+\"\\\\)$\"),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};function v(t){var e;return t=(t+\"\").trim().toLowerCase(),(e=s.exec(t))?new _((e=parseInt(e[1],16))>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):(e=l.exec(t))?m(parseInt(e[1],16)):(e=c.exec(t))?new _(e[1],e[2],e[3],1):(e=u.exec(t))?new _(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=f.exec(t))?y(e[1],e[2],e[3],e[4]):(e=h.exec(t))?y(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=p.exec(t))?k(e[1],e[2]/100,e[3]/100,1):(e=d.exec(t))?k(e[1],e[2]/100,e[3]/100,e[4]):g.hasOwnProperty(t)?m(g[t]):\"transparent\"===t?new _(NaN,NaN,NaN,0):null}function m(t){return new _(t>>16&255,t>>8&255,255&t,1)}function y(t,e,r,n){return n<=0&&(t=e=r=NaN),new _(t,e,r,n)}function x(t){return t instanceof n||(t=v(t)),t?new _((t=t.rgb()).r,t.g,t.b,t.opacity):new _}function b(t,e,r,n){return 1===arguments.length?x(t):new _(t,e,r,null==n?1:n)}function _(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}function w(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?\"0\":\"\")+t.toString(16)}function k(t,e,r,n){return n<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new A(t,e,r,n)}function M(t,e,r,i){return 1===arguments.length?function(t){if(t instanceof A)return new A(t.h,t.s,t.l,t.opacity);if(t instanceof n||(t=v(t)),!t)return new A;if(t instanceof A)return t;var e=(t=t.rgb()).r/255,r=t.g/255,i=t.b/255,a=Math.min(e,r,i),o=Math.max(e,r,i),s=NaN,l=o-a,c=(o+a)/2;return l?(s=e===o?(r-i)/l+6*(r<i):r===o?(i-e)/l+2:(e-r)/l+4,l/=c<.5?o+a:2-o-a,s*=60):l=c>0&&c<1?0:s,new A(s,l,c,t.opacity)}(t):new A(t,e,r,null==i?1:i)}function A(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}function T(t,e,r){return 255*(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)}e(n,v,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+\"\"}}),e(_,b,r(n,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new _(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new _(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},hex:function(){return\"#\"+w(this.r)+w(this.g)+w(this.b)},toString:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?\"rgb(\":\"rgba(\")+Math.max(0,Math.min(255,Math.round(this.r)||0))+\", \"+Math.max(0,Math.min(255,Math.round(this.g)||0))+\", \"+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?\")\":\", \"+t+\")\")}})),e(A,M,r(n,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new A(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new A(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*e,i=2*r-n;return new _(T(t>=240?t-240:t+120,i,n),T(t,i,n),T(t<120?t+240:t-120,i,n),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var S=Math.PI/180,E=180/Math.PI,C=.96422,L=1,z=.82521,O=4/29,I=6/29,P=3*I*I,D=I*I*I;function R(t){if(t instanceof F)return new F(t.l,t.a,t.b,t.opacity);if(t instanceof G){if(isNaN(t.h))return new F(t.l,0,0,t.opacity);var e=t.h*S;return new F(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}t instanceof _||(t=x(t));var r,n,i=U(t.r),a=U(t.g),o=U(t.b),s=N((.2225045*i+.7168786*a+.0606169*o)/L);return i===a&&a===o?r=n=s:(r=N((.4360747*i+.3850649*a+.1430804*o)/C),n=N((.0139322*i+.0971045*a+.7141733*o)/z)),new F(116*s-16,500*(r-s),200*(s-n),t.opacity)}function B(t,e,r,n){return 1===arguments.length?R(t):new F(t,e,r,null==n?1:n)}function F(t,e,r,n){this.l=+t,this.a=+e,this.b=+r,this.opacity=+n}function N(t){return t>D?Math.pow(t,1/3):t/P+O}function j(t){return t>I?t*t*t:P*(t-O)}function V(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function U(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function q(t){if(t instanceof G)return new G(t.h,t.c,t.l,t.opacity);if(t instanceof F||(t=R(t)),0===t.a&&0===t.b)return new G(NaN,0,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*E;return new G(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function H(t,e,r,n){return 1===arguments.length?q(t):new G(t,e,r,null==n?1:n)}function G(t,e,r,n){this.h=+t,this.c=+e,this.l=+r,this.opacity=+n}e(F,B,r(n,{brighter:function(t){return new F(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new F(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,r=isNaN(this.b)?t:t-this.b/200;return new _(V(3.1338561*(e=C*j(e))-1.6168667*(t=L*j(t))-.4906146*(r=z*j(r))),V(-.9787684*e+1.9161415*t+.033454*r),V(.0719453*e-.2289914*t+1.4052427*r),this.opacity)}})),e(G,H,r(n,{brighter:function(t){return new G(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new G(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return R(this).rgb()}}));var W=-.14861,Y=1.78277,X=-.29227,Z=-.90649,$=1.97294,J=$*Z,K=$*Y,Q=Y*X-Z*W;function tt(t,e,r,n){return 1===arguments.length?function(t){if(t instanceof et)return new et(t.h,t.s,t.l,t.opacity);t instanceof _||(t=x(t));var e=t.r/255,r=t.g/255,n=t.b/255,i=(Q*n+J*e-K*r)/(Q+J-K),a=n-i,o=($*(r-i)-X*a)/Z,s=Math.sqrt(o*o+a*a)/($*i*(1-i)),l=s?Math.atan2(o,a)*E-120:NaN;return new et(l<0?l+360:l,s,i,t.opacity)}(t):new et(t,e,r,null==n?1:n)}function et(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}e(et,tt,r(n,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new et(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new et(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*S,e=+this.l,r=isNaN(this.s)?0:this.s*e*(1-e),n=Math.cos(t),i=Math.sin(t);return new _(255*(e+r*(W*n+Y*i)),255*(e+r*(X*n+Z*i)),255*(e+r*($*n)),this.opacity)}})),t.color=v,t.rgb=b,t.hsl=M,t.lab=B,t.hcl=H,t.lch=function(t,e,r,n){return 1===arguments.length?q(t):new G(r,e,t,null==n?1:n)},t.gray=function(t,e){return new F(t,0,0,null==e?1:e)},t.cubehelix=tt,Object.defineProperty(t,\"__esModule\",{value:!0})}(\"object\"==typeof r&&\"undefined\"!=typeof e?r:n.d3=n.d3||{})},{}],143:[function(t,e,r){var n;n=this,function(t){\"use strict\";var e={value:function(){}};function r(){for(var t,e=0,r=arguments.length,i={};e<r;++e){if(!(t=arguments[e]+\"\")||t in i)throw new Error(\"illegal type: \"+t);i[t]=[]}return new n(i)}function n(t){this._=t}function i(t,e){for(var r,n=0,i=t.length;n<i;++n)if((r=t[n]).name===e)return r.value}function a(t,r,n){for(var i=0,a=t.length;i<a;++i)if(t[i].name===r){t[i]=e,t=t.slice(0,i).concat(t.slice(i+1));break}return null!=n&&t.push({name:r,value:n}),t}n.prototype=r.prototype={constructor:n,on:function(t,e){var r,n,o=this._,s=(n=o,(t+\"\").trim().split(/^|\\s+/).map(function(t){var e=\"\",r=t.indexOf(\".\");if(r>=0&&(e=t.slice(r+1),t=t.slice(0,r)),t&&!n.hasOwnProperty(t))throw new Error(\"unknown type: \"+t);return{type:t,name:e}})),l=-1,c=s.length;if(!(arguments.length<2)){if(null!=e&&\"function\"!=typeof e)throw new Error(\"invalid callback: \"+e);for(;++l<c;)if(r=(t=s[l]).type)o[r]=a(o[r],t.name,e);else if(null==e)for(r in o)o[r]=a(o[r],t.name,null);return this}for(;++l<c;)if((r=(t=s[l]).type)&&(r=i(o[r],t.name)))return r},copy:function(){var t={},e=this._;for(var r in e)t[r]=e[r].slice();return new n(t)},call:function(t,e){if((r=arguments.length-2)>0)for(var r,n,i=new Array(r),a=0;a<r;++a)i[a]=arguments[a+2];if(!this._.hasOwnProperty(t))throw new Error(\"unknown type: \"+t);for(a=0,r=(n=this._[t]).length;a<r;++a)n[a].value.apply(e,i)},apply:function(t,e,r){if(!this._.hasOwnProperty(t))throw new Error(\"unknown type: \"+t);for(var n=this._[t],i=0,a=n.length;i<a;++i)n[i].value.apply(e,r)}},t.dispatch=r,Object.defineProperty(t,\"__esModule\",{value:!0})}(\"object\"==typeof r&&\"undefined\"!=typeof e?r:n.d3=n.d3||{})},{}],144:[function(t,e,r){var n,i;n=this,i=function(t,e,r,n,i){\"use strict\";var a=function(t){return function(){return t}},o=function(){return 1e-6*(Math.random()-.5)};function s(t){return t.x+t.vx}function l(t){return t.y+t.vy}function c(t){return t.index}function u(t,e){var r=t.get(e);if(!r)throw new Error(\"missing: \"+e);return r}function f(t){return t.x}function h(t){return t.y}var p=10,d=Math.PI*(3-Math.sqrt(5));t.forceCenter=function(t,e){var r;function n(){var n,i,a=r.length,o=0,s=0;for(n=0;n<a;++n)o+=(i=r[n]).x,s+=i.y;for(o=o/a-t,s=s/a-e,n=0;n<a;++n)(i=r[n]).x-=o,i.y-=s}return null==t&&(t=0),null==e&&(e=0),n.initialize=function(t){r=t},n.x=function(e){return arguments.length?(t=+e,n):t},n.y=function(t){return arguments.length?(e=+t,n):e},n},t.forceCollide=function(t){var r,n,i=1,c=1;function u(){for(var t,a,u,h,p,d,g,v=r.length,m=0;m<c;++m)for(a=e.quadtree(r,s,l).visitAfter(f),t=0;t<v;++t)u=r[t],d=n[u.index],g=d*d,h=u.x+u.vx,p=u.y+u.vy,a.visit(y);function y(t,e,r,n,a){var s=t.data,l=t.r,c=d+l;if(!s)return e>h+c||n<h-c||r>p+c||a<p-c;if(s.index>u.index){var f=h-s.x-s.vx,v=p-s.y-s.vy,m=f*f+v*v;m<c*c&&(0===f&&(m+=(f=o())*f),0===v&&(m+=(v=o())*v),m=(c-(m=Math.sqrt(m)))/m*i,u.vx+=(f*=m)*(c=(l*=l)/(g+l)),u.vy+=(v*=m)*c,s.vx-=f*(c=1-c),s.vy-=v*c)}}}function f(t){if(t.data)return t.r=n[t.data.index];for(var e=t.r=0;e<4;++e)t[e]&&t[e].r>t.r&&(t.r=t[e].r)}function h(){if(r){var e,i,a=r.length;for(n=new Array(a),e=0;e<a;++e)i=r[e],n[i.index]=+t(i,e,r)}}return\"function\"!=typeof t&&(t=a(null==t?1:+t)),u.initialize=function(t){r=t,h()},u.iterations=function(t){return arguments.length?(c=+t,u):c},u.strength=function(t){return arguments.length?(i=+t,u):i},u.radius=function(e){return arguments.length?(t=\"function\"==typeof e?e:a(+e),h(),u):t},u},t.forceLink=function(t){var e,n,i,s,l,f=c,h=function(t){return 1/Math.min(s[t.source.index],s[t.target.index])},p=a(30),d=1;function g(r){for(var i=0,a=t.length;i<d;++i)for(var s,c,u,f,h,p,g,v=0;v<a;++v)c=(s=t[v]).source,f=(u=s.target).x+u.vx-c.x-c.vx||o(),h=u.y+u.vy-c.y-c.vy||o(),f*=p=((p=Math.sqrt(f*f+h*h))-n[v])/p*r*e[v],h*=p,u.vx-=f*(g=l[v]),u.vy-=h*g,c.vx+=f*(g=1-g),c.vy+=h*g}function v(){if(i){var a,o,c=i.length,h=t.length,p=r.map(i,f);for(a=0,s=new Array(c);a<h;++a)(o=t[a]).index=a,\"object\"!=typeof o.source&&(o.source=u(p,o.source)),\"object\"!=typeof o.target&&(o.target=u(p,o.target)),s[o.source.index]=(s[o.source.index]||0)+1,s[o.target.index]=(s[o.target.index]||0)+1;for(a=0,l=new Array(h);a<h;++a)o=t[a],l[a]=s[o.source.index]/(s[o.source.index]+s[o.target.index]);e=new Array(h),m(),n=new Array(h),y()}}function m(){if(i)for(var r=0,n=t.length;r<n;++r)e[r]=+h(t[r],r,t)}function y(){if(i)for(var e=0,r=t.length;e<r;++e)n[e]=+p(t[e],e,t)}return null==t&&(t=[]),g.initialize=function(t){i=t,v()},g.links=function(e){return arguments.length?(t=e,v(),g):t},g.id=function(t){return arguments.length?(f=t,g):f},g.iterations=function(t){return arguments.length?(d=+t,g):d},g.strength=function(t){return arguments.length?(h=\"function\"==typeof t?t:a(+t),m(),g):h},g.distance=function(t){return arguments.length?(p=\"function\"==typeof t?t:a(+t),y(),g):p},g},t.forceManyBody=function(){var t,r,n,i,s=a(-30),l=1,c=1/0,u=.81;function p(i){var a,o=t.length,s=e.quadtree(t,f,h).visitAfter(g);for(n=i,a=0;a<o;++a)r=t[a],s.visit(v)}function d(){if(t){var e,r,n=t.length;for(i=new Array(n),e=0;e<n;++e)r=t[e],i[r.index]=+s(r,e,t)}}function g(t){var e,r,n,a,o,s=0,l=0;if(t.length){for(n=a=o=0;o<4;++o)(e=t[o])&&(r=Math.abs(e.value))&&(s+=e.value,l+=r,n+=r*e.x,a+=r*e.y);t.x=n/l,t.y=a/l}else{(e=t).x=e.data.x,e.y=e.data.y;do{s+=i[e.data.index]}while(e=e.next)}t.value=s}function v(t,e,a,s){if(!t.value)return!0;var f=t.x-r.x,h=t.y-r.y,p=s-e,d=f*f+h*h;if(p*p/u<d)return d<c&&(0===f&&(d+=(f=o())*f),0===h&&(d+=(h=o())*h),d<l&&(d=Math.sqrt(l*d)),r.vx+=f*t.value*n/d,r.vy+=h*t.value*n/d),!0;if(!(t.length||d>=c)){(t.data!==r||t.next)&&(0===f&&(d+=(f=o())*f),0===h&&(d+=(h=o())*h),d<l&&(d=Math.sqrt(l*d)));do{t.data!==r&&(p=i[t.data.index]*n/d,r.vx+=f*p,r.vy+=h*p)}while(t=t.next)}}return p.initialize=function(e){t=e,d()},p.strength=function(t){return arguments.length?(s=\"function\"==typeof t?t:a(+t),d(),p):s},p.distanceMin=function(t){return arguments.length?(l=t*t,p):Math.sqrt(l)},p.distanceMax=function(t){return arguments.length?(c=t*t,p):Math.sqrt(c)},p.theta=function(t){return arguments.length?(u=t*t,p):Math.sqrt(u)},p},t.forceRadial=function(t,e,r){var n,i,o,s=a(.1);function l(t){for(var a=0,s=n.length;a<s;++a){var l=n[a],c=l.x-e||1e-6,u=l.y-r||1e-6,f=Math.sqrt(c*c+u*u),h=(o[a]-f)*i[a]*t/f;l.vx+=c*h,l.vy+=u*h}}function c(){if(n){var e,r=n.length;for(i=new Array(r),o=new Array(r),e=0;e<r;++e)o[e]=+t(n[e],e,n),i[e]=isNaN(o[e])?0:+s(n[e],e,n)}}return\"function\"!=typeof t&&(t=a(+t)),null==e&&(e=0),null==r&&(r=0),l.initialize=function(t){n=t,c()},l.strength=function(t){return arguments.length?(s=\"function\"==typeof t?t:a(+t),c(),l):s},l.radius=function(e){return arguments.length?(t=\"function\"==typeof e?e:a(+e),c(),l):t},l.x=function(t){return arguments.length?(e=+t,l):e},l.y=function(t){return arguments.length?(r=+t,l):r},l},t.forceSimulation=function(t){var e,a=1,o=.001,s=1-Math.pow(o,1/300),l=0,c=.6,u=r.map(),f=i.timer(g),h=n.dispatch(\"tick\",\"end\");function g(){v(),h.call(\"tick\",e),a<o&&(f.stop(),h.call(\"end\",e))}function v(){var e,r,n=t.length;for(a+=(l-a)*s,u.each(function(t){t(a)}),e=0;e<n;++e)null==(r=t[e]).fx?r.x+=r.vx*=c:(r.x=r.fx,r.vx=0),null==r.fy?r.y+=r.vy*=c:(r.y=r.fy,r.vy=0)}function m(){for(var e,r=0,n=t.length;r<n;++r){if((e=t[r]).index=r,isNaN(e.x)||isNaN(e.y)){var i=p*Math.sqrt(r),a=r*d;e.x=i*Math.cos(a),e.y=i*Math.sin(a)}(isNaN(e.vx)||isNaN(e.vy))&&(e.vx=e.vy=0)}}function y(e){return e.initialize&&e.initialize(t),e}return null==t&&(t=[]),m(),e={tick:v,restart:function(){return f.restart(g),e},stop:function(){return f.stop(),e},nodes:function(r){return arguments.length?(t=r,m(),u.each(y),e):t},alpha:function(t){return arguments.length?(a=+t,e):a},alphaMin:function(t){return arguments.length?(o=+t,e):o},alphaDecay:function(t){return arguments.length?(s=+t,e):+s},alphaTarget:function(t){return arguments.length?(l=+t,e):l},velocityDecay:function(t){return arguments.length?(c=1-t,e):1-c},force:function(t,r){return arguments.length>1?(null==r?u.remove(t):u.set(t,y(r)),e):u.get(t)},find:function(e,r,n){var i,a,o,s,l,c=0,u=t.length;for(null==n?n=1/0:n*=n,c=0;c<u;++c)(o=(i=e-(s=t[c]).x)*i+(a=r-s.y)*a)<n&&(l=s,n=o);return l},on:function(t,r){return arguments.length>1?(h.on(t,r),e):h.on(t)}}},t.forceX=function(t){var e,r,n,i=a(.1);function o(t){for(var i,a=0,o=e.length;a<o;++a)(i=e[a]).vx+=(n[a]-i.x)*r[a]*t}function s(){if(e){var a,o=e.length;for(r=new Array(o),n=new Array(o),a=0;a<o;++a)r[a]=isNaN(n[a]=+t(e[a],a,e))?0:+i(e[a],a,e)}}return\"function\"!=typeof t&&(t=a(null==t?0:+t)),o.initialize=function(t){e=t,s()},o.strength=function(t){return arguments.length?(i=\"function\"==typeof t?t:a(+t),s(),o):i},o.x=function(e){return arguments.length?(t=\"function\"==typeof e?e:a(+e),s(),o):t},o},t.forceY=function(t){var e,r,n,i=a(.1);function o(t){for(var i,a=0,o=e.length;a<o;++a)(i=e[a]).vy+=(n[a]-i.y)*r[a]*t}function s(){if(e){var a,o=e.length;for(r=new Array(o),n=new Array(o),a=0;a<o;++a)r[a]=isNaN(n[a]=+t(e[a],a,e))?0:+i(e[a],a,e)}}return\"function\"!=typeof t&&(t=a(null==t?0:+t)),o.initialize=function(t){e=t,s()},o.strength=function(t){return arguments.length?(i=\"function\"==typeof t?t:a(+t),s(),o):i},o.y=function(e){return arguments.length?(t=\"function\"==typeof e?e:a(+e),s(),o):t},o},Object.defineProperty(t,\"__esModule\",{value:!0})},\"object\"==typeof r&&\"undefined\"!=typeof e?i(r,t(\"d3-quadtree\"),t(\"d3-collection\"),t(\"d3-dispatch\"),t(\"d3-timer\")):i(n.d3=n.d3||{},n.d3,n.d3,n.d3,n.d3)},{\"d3-collection\":141,\"d3-dispatch\":143,\"d3-quadtree\":146,\"d3-timer\":147}],145:[function(t,e,r){var n,i;n=this,i=function(t,e){\"use strict\";function r(t,e,r,n,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*r+(1+3*t+3*a-3*o)*n+o*i)/6}function n(t){var e=t.length-1;return function(n){var i=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),a=t[i],o=t[i+1],s=i>0?t[i-1]:2*a-o,l=i<e-1?t[i+2]:2*o-a;return r((n-i/e)*e,s,a,o,l)}}function i(t){var e=t.length;return function(n){var i=Math.floor(((n%=1)<0?++n:n)*e),a=t[(i+e-1)%e],o=t[i%e],s=t[(i+1)%e],l=t[(i+2)%e];return r((n-i/e)*e,a,o,s,l)}}function a(t){return function(){return t}}function o(t,e){return function(r){return t+r*e}}function s(t,e){var r=e-t;return r?o(t,r>180||r<-180?r-360*Math.round(r/360):r):a(isNaN(t)?e:t)}function l(t){return 1==(t=+t)?c:function(e,r){return r-e?function(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(n){return Math.pow(t+n*e,r)}}(e,r,t):a(isNaN(e)?r:e)}}function c(t,e){var r=e-t;return r?o(t,r):a(isNaN(t)?e:t)}var u=function t(r){var n=l(r);function i(t,r){var i=n((t=e.rgb(t)).r,(r=e.rgb(r)).r),a=n(t.g,r.g),o=n(t.b,r.b),s=c(t.opacity,r.opacity);return function(e){return t.r=i(e),t.g=a(e),t.b=o(e),t.opacity=s(e),t+\"\"}}return i.gamma=t,i}(1);function f(t){return function(r){var n,i,a=r.length,o=new Array(a),s=new Array(a),l=new Array(a);for(n=0;n<a;++n)i=e.rgb(r[n]),o[n]=i.r||0,s[n]=i.g||0,l[n]=i.b||0;return o=t(o),s=t(s),l=t(l),i.opacity=1,function(t){return i.r=o(t),i.g=s(t),i.b=l(t),i+\"\"}}}var h=f(n),p=f(i);function d(t,e){var r,n=e?e.length:0,i=t?Math.min(n,t.length):0,a=new Array(i),o=new Array(n);for(r=0;r<i;++r)a[r]=_(t[r],e[r]);for(;r<n;++r)o[r]=e[r];return function(t){for(r=0;r<i;++r)o[r]=a[r](t);return o}}function g(t,e){var r=new Date;return e-=t=+t,function(n){return r.setTime(t+e*n),r}}function v(t,e){return e-=t=+t,function(r){return t+e*r}}function m(t,e){var r,n={},i={};for(r in null!==t&&\"object\"==typeof t||(t={}),null!==e&&\"object\"==typeof e||(e={}),e)r in t?n[r]=_(t[r],e[r]):i[r]=e[r];return function(t){for(r in n)i[r]=n[r](t);return i}}var y=/[-+]?(?:\\d+\\.?\\d*|\\.?\\d+)(?:[eE][-+]?\\d+)?/g,x=new RegExp(y.source,\"g\");function b(t,e){var r,n,i,a=y.lastIndex=x.lastIndex=0,o=-1,s=[],l=[];for(t+=\"\",e+=\"\";(r=y.exec(t))&&(n=x.exec(e));)(i=n.index)>a&&(i=e.slice(a,i),s[o]?s[o]+=i:s[++o]=i),(r=r[0])===(n=n[0])?s[o]?s[o]+=n:s[++o]=n:(s[++o]=null,l.push({i:o,x:v(r,n)})),a=x.lastIndex;return a<e.length&&(i=e.slice(a),s[o]?s[o]+=i:s[++o]=i),s.length<2?l[0]?function(t){return function(e){return t(e)+\"\"}}(l[0].x):function(t){return function(){return t}}(e):(e=l.length,function(t){for(var r,n=0;n<e;++n)s[(r=l[n]).i]=r.x(t);return s.join(\"\")})}function _(t,r){var n,i=typeof r;return null==r||\"boolean\"===i?a(r):(\"number\"===i?v:\"string\"===i?(n=e.color(r))?(r=n,u):b:r instanceof e.color?u:r instanceof Date?g:Array.isArray(r)?d:\"function\"!=typeof r.valueOf&&\"function\"!=typeof r.toString||isNaN(r)?m:v)(t,r)}var w,k,M,A,T=180/Math.PI,S={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function E(t,e,r,n,i,a){var o,s,l;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(l=t*r+e*n)&&(r-=t*l,n-=e*l),(s=Math.sqrt(r*r+n*n))&&(r/=s,n/=s,l/=s),t*n<e*r&&(t=-t,e=-e,l=-l,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(e,t)*T,skewX:Math.atan(l)*T,scaleX:o,scaleY:s}}function C(t,e,r,n){function i(t){return t.length?t.pop()+\" \":\"\"}return function(a,o){var s=[],l=[];return a=t(a),o=t(o),function(t,n,i,a,o,s){if(t!==i||n!==a){var l=o.push(\"translate(\",null,e,null,r);s.push({i:l-4,x:v(t,i)},{i:l-2,x:v(n,a)})}else(i||a)&&o.push(\"translate(\"+i+e+a+r)}(a.translateX,a.translateY,o.translateX,o.translateY,s,l),function(t,e,r,a){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),a.push({i:r.push(i(r)+\"rotate(\",null,n)-2,x:v(t,e)})):e&&r.push(i(r)+\"rotate(\"+e+n)}(a.rotate,o.rotate,s,l),function(t,e,r,a){t!==e?a.push({i:r.push(i(r)+\"skewX(\",null,n)-2,x:v(t,e)}):e&&r.push(i(r)+\"skewX(\"+e+n)}(a.skewX,o.skewX,s,l),function(t,e,r,n,a,o){if(t!==r||e!==n){var s=a.push(i(a)+\"scale(\",null,\",\",null,\")\");o.push({i:s-4,x:v(t,r)},{i:s-2,x:v(e,n)})}else 1===r&&1===n||a.push(i(a)+\"scale(\"+r+\",\"+n+\")\")}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,s,l),a=o=null,function(t){for(var e,r=-1,n=l.length;++r<n;)s[(e=l[r]).i]=e.x(t);return s.join(\"\")}}}var L=C(function(t){return\"none\"===t?S:(w||(w=document.createElement(\"DIV\"),k=document.documentElement,M=document.defaultView),w.style.transform=t,t=M.getComputedStyle(k.appendChild(w),null).getPropertyValue(\"transform\"),k.removeChild(w),E(+(t=t.slice(7,-1).split(\",\"))[0],+t[1],+t[2],+t[3],+t[4],+t[5]))},\"px, \",\"px)\",\"deg)\"),z=C(function(t){return null==t?S:(A||(A=document.createElementNS(\"http://www.w3.org/2000/svg\",\"g\")),A.setAttribute(\"transform\",t),(t=A.transform.baseVal.consolidate())?E((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):S)},\", \",\")\",\")\"),O=Math.SQRT2,I=2,P=4,D=1e-12;function R(t){return((t=Math.exp(t))+1/t)/2}function B(t){return function(r,n){var i=t((r=e.hsl(r)).h,(n=e.hsl(n)).h),a=c(r.s,n.s),o=c(r.l,n.l),s=c(r.opacity,n.opacity);return function(t){return r.h=i(t),r.s=a(t),r.l=o(t),r.opacity=s(t),r+\"\"}}}var F=B(s),N=B(c);function j(t){return function(r,n){var i=t((r=e.hcl(r)).h,(n=e.hcl(n)).h),a=c(r.c,n.c),o=c(r.l,n.l),s=c(r.opacity,n.opacity);return function(t){return r.h=i(t),r.c=a(t),r.l=o(t),r.opacity=s(t),r+\"\"}}}var V=j(s),U=j(c);function q(t){return function r(n){function i(r,i){var a=t((r=e.cubehelix(r)).h,(i=e.cubehelix(i)).h),o=c(r.s,i.s),s=c(r.l,i.l),l=c(r.opacity,i.opacity);return function(t){return r.h=a(t),r.s=o(t),r.l=s(Math.pow(t,n)),r.opacity=l(t),r+\"\"}}return n=+n,i.gamma=r,i}(1)}var H=q(s),G=q(c);t.interpolate=_,t.interpolateArray=d,t.interpolateBasis=n,t.interpolateBasisClosed=i,t.interpolateDate=g,t.interpolateDiscrete=function(t){var e=t.length;return function(r){return t[Math.max(0,Math.min(e-1,Math.floor(r*e)))]}},t.interpolateHue=function(t,e){var r=s(+t,+e);return function(t){var e=r(t);return e-360*Math.floor(e/360)}},t.interpolateNumber=v,t.interpolateObject=m,t.interpolateRound=function(t,e){return e-=t=+t,function(r){return Math.round(t+e*r)}},t.interpolateString=b,t.interpolateTransformCss=L,t.interpolateTransformSvg=z,t.interpolateZoom=function(t,e){var r,n,i=t[0],a=t[1],o=t[2],s=e[0],l=e[1],c=e[2],u=s-i,f=l-a,h=u*u+f*f;if(h<D)n=Math.log(c/o)/O,r=function(t){return[i+t*u,a+t*f,o*Math.exp(O*t*n)]};else{var p=Math.sqrt(h),d=(c*c-o*o+P*h)/(2*o*I*p),g=(c*c-o*o-P*h)/(2*c*I*p),v=Math.log(Math.sqrt(d*d+1)-d),m=Math.log(Math.sqrt(g*g+1)-g);n=(m-v)/O,r=function(t){var e,r=t*n,s=R(v),l=o/(I*p)*(s*(e=O*r+v,((e=Math.exp(2*e))-1)/(e+1))-function(t){return((t=Math.exp(t))-1/t)/2}(v));return[i+l*u,a+l*f,o*s/R(O*r+v)]}}return r.duration=1e3*n,r},t.interpolateRgb=u,t.interpolateRgbBasis=h,t.interpolateRgbBasisClosed=p,t.interpolateHsl=F,t.interpolateHslLong=N,t.interpolateLab=function(t,r){var n=c((t=e.lab(t)).l,(r=e.lab(r)).l),i=c(t.a,r.a),a=c(t.b,r.b),o=c(t.opacity,r.opacity);return function(e){return t.l=n(e),t.a=i(e),t.b=a(e),t.opacity=o(e),t+\"\"}},t.interpolateHcl=V,t.interpolateHclLong=U,t.interpolateCubehelix=H,t.interpolateCubehelixLong=G,t.piecewise=function(t,e){for(var r=0,n=e.length-1,i=e[0],a=new Array(n<0?0:n);r<n;)a[r]=t(i,i=e[++r]);return function(t){var e=Math.max(0,Math.min(n-1,Math.floor(t*=n)));return a[e](t-e)}},t.quantize=function(t,e){for(var r=new Array(e),n=0;n<e;++n)r[n]=t(n/(e-1));return r},Object.defineProperty(t,\"__esModule\",{value:!0})},\"object\"==typeof r&&\"undefined\"!=typeof e?i(r,t(\"d3-color\")):i(n.d3=n.d3||{},n.d3)},{\"d3-color\":142}],146:[function(t,e,r){var n;n=this,function(t){\"use strict\";function e(t,e,r,n){if(isNaN(e)||isNaN(r))return t;var i,a,o,s,l,c,u,f,h,p=t._root,d={data:n},g=t._x0,v=t._y0,m=t._x1,y=t._y1;if(!p)return t._root=d,t;for(;p.length;)if((c=e>=(a=(g+m)/2))?g=a:m=a,(u=r>=(o=(v+y)/2))?v=o:y=o,i=p,!(p=p[f=u<<1|c]))return i[f]=d,t;if(s=+t._x.call(null,p.data),l=+t._y.call(null,p.data),e===s&&r===l)return d.next=p,i?i[f]=d:t._root=d,t;do{i=i?i[f]=new Array(4):t._root=new Array(4),(c=e>=(a=(g+m)/2))?g=a:m=a,(u=r>=(o=(v+y)/2))?v=o:y=o}while((f=u<<1|c)==(h=(l>=o)<<1|s>=a));return i[h]=p,i[f]=d,t}var r=function(t,e,r,n,i){this.node=t,this.x0=e,this.y0=r,this.x1=n,this.y1=i};function n(t){return t[0]}function i(t){return t[1]}function a(t,e,r){var a=new o(null==e?n:e,null==r?i:r,NaN,NaN,NaN,NaN);return null==t?a:a.addAll(t)}function o(t,e,r,n,i,a){this._x=t,this._y=e,this._x0=r,this._y0=n,this._x1=i,this._y1=a,this._root=void 0}function s(t){for(var e={data:t.data},r=e;t=t.next;)r=r.next={data:t.data};return e}var l=a.prototype=o.prototype;l.copy=function(){var t,e,r=new o(this._x,this._y,this._x0,this._y0,this._x1,this._y1),n=this._root;if(!n)return r;if(!n.length)return r._root=s(n),r;for(t=[{source:n,target:r._root=new Array(4)}];n=t.pop();)for(var i=0;i<4;++i)(e=n.source[i])&&(e.length?t.push({source:e,target:n.target[i]=new Array(4)}):n.target[i]=s(e));return r},l.add=function(t){var r=+this._x.call(null,t),n=+this._y.call(null,t);return e(this.cover(r,n),r,n,t)},l.addAll=function(t){var r,n,i,a,o=t.length,s=new Array(o),l=new Array(o),c=1/0,u=1/0,f=-1/0,h=-1/0;for(n=0;n<o;++n)isNaN(i=+this._x.call(null,r=t[n]))||isNaN(a=+this._y.call(null,r))||(s[n]=i,l[n]=a,i<c&&(c=i),i>f&&(f=i),a<u&&(u=a),a>h&&(h=a));for(f<c&&(c=this._x0,f=this._x1),h<u&&(u=this._y0,h=this._y1),this.cover(c,u).cover(f,h),n=0;n<o;++n)e(this,s[n],l[n],t[n]);return this},l.cover=function(t,e){if(isNaN(t=+t)||isNaN(e=+e))return this;var r=this._x0,n=this._y0,i=this._x1,a=this._y1;if(isNaN(r))i=(r=Math.floor(t))+1,a=(n=Math.floor(e))+1;else{if(!(r>t||t>i||n>e||e>a))return this;var o,s,l=i-r,c=this._root;switch(s=(e<(n+a)/2)<<1|t<(r+i)/2){case 0:do{(o=new Array(4))[s]=c,c=o}while(a=n+(l*=2),t>(i=r+l)||e>a);break;case 1:do{(o=new Array(4))[s]=c,c=o}while(a=n+(l*=2),(r=i-l)>t||e>a);break;case 2:do{(o=new Array(4))[s]=c,c=o}while(n=a-(l*=2),t>(i=r+l)||n>e);break;case 3:do{(o=new Array(4))[s]=c,c=o}while(n=a-(l*=2),(r=i-l)>t||n>e)}this._root&&this._root.length&&(this._root=c)}return this._x0=r,this._y0=n,this._x1=i,this._y1=a,this},l.data=function(){var t=[];return this.visit(function(e){if(!e.length)do{t.push(e.data)}while(e=e.next)}),t},l.extent=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},l.find=function(t,e,n){var i,a,o,s,l,c,u,f=this._x0,h=this._y0,p=this._x1,d=this._y1,g=[],v=this._root;for(v&&g.push(new r(v,f,h,p,d)),null==n?n=1/0:(f=t-n,h=e-n,p=t+n,d=e+n,n*=n);c=g.pop();)if(!(!(v=c.node)||(a=c.x0)>p||(o=c.y0)>d||(s=c.x1)<f||(l=c.y1)<h))if(v.length){var m=(a+s)/2,y=(o+l)/2;g.push(new r(v[3],m,y,s,l),new r(v[2],a,y,m,l),new r(v[1],m,o,s,y),new r(v[0],a,o,m,y)),(u=(e>=y)<<1|t>=m)&&(c=g[g.length-1],g[g.length-1]=g[g.length-1-u],g[g.length-1-u]=c)}else{var x=t-+this._x.call(null,v.data),b=e-+this._y.call(null,v.data),_=x*x+b*b;if(_<n){var w=Math.sqrt(n=_);f=t-w,h=e-w,p=t+w,d=e+w,i=v.data}}return i},l.remove=function(t){if(isNaN(a=+this._x.call(null,t))||isNaN(o=+this._y.call(null,t)))return this;var e,r,n,i,a,o,s,l,c,u,f,h,p=this._root,d=this._x0,g=this._y0,v=this._x1,m=this._y1;if(!p)return this;if(p.length)for(;;){if((c=a>=(s=(d+v)/2))?d=s:v=s,(u=o>=(l=(g+m)/2))?g=l:m=l,e=p,!(p=p[f=u<<1|c]))return this;if(!p.length)break;(e[f+1&3]||e[f+2&3]||e[f+3&3])&&(r=e,h=f)}for(;p.data!==t;)if(n=p,!(p=p.next))return this;return(i=p.next)&&delete p.next,n?(i?n.next=i:delete n.next,this):e?(i?e[f]=i:delete e[f],(p=e[0]||e[1]||e[2]||e[3])&&p===(e[3]||e[2]||e[1]||e[0])&&!p.length&&(r?r[h]=p:this._root=p),this):(this._root=i,this)},l.removeAll=function(t){for(var e=0,r=t.length;e<r;++e)this.remove(t[e]);return this},l.root=function(){return this._root},l.size=function(){var t=0;return this.visit(function(e){if(!e.length)do{++t}while(e=e.next)}),t},l.visit=function(t){var e,n,i,a,o,s,l=[],c=this._root;for(c&&l.push(new r(c,this._x0,this._y0,this._x1,this._y1));e=l.pop();)if(!t(c=e.node,i=e.x0,a=e.y0,o=e.x1,s=e.y1)&&c.length){var u=(i+o)/2,f=(a+s)/2;(n=c[3])&&l.push(new r(n,u,f,o,s)),(n=c[2])&&l.push(new r(n,i,f,u,s)),(n=c[1])&&l.push(new r(n,u,a,o,f)),(n=c[0])&&l.push(new r(n,i,a,u,f))}return this},l.visitAfter=function(t){var e,n=[],i=[];for(this._root&&n.push(new r(this._root,this._x0,this._y0,this._x1,this._y1));e=n.pop();){var a=e.node;if(a.length){var o,s=e.x0,l=e.y0,c=e.x1,u=e.y1,f=(s+c)/2,h=(l+u)/2;(o=a[0])&&n.push(new r(o,s,l,f,h)),(o=a[1])&&n.push(new r(o,f,l,c,h)),(o=a[2])&&n.push(new r(o,s,h,f,u)),(o=a[3])&&n.push(new r(o,f,h,c,u))}i.push(e)}for(;e=i.pop();)t(e.node,e.x0,e.y0,e.x1,e.y1);return this},l.x=function(t){return arguments.length?(this._x=t,this):this._x},l.y=function(t){return arguments.length?(this._y=t,this):this._y},t.quadtree=a,Object.defineProperty(t,\"__esModule\",{value:!0})}(\"object\"==typeof r&&\"undefined\"!=typeof e?r:n.d3=n.d3||{})},{}],147:[function(t,e,r){var n;n=this,function(t){\"use strict\";var e,r,n=0,i=0,a=0,o=1e3,s=0,l=0,c=0,u=\"object\"==typeof performance&&performance.now?performance:Date,f=\"object\"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function h(){return l||(f(p),l=u.now()+c)}function p(){l=0}function d(){this._call=this._time=this._next=null}function g(t,e,r){var n=new d;return n.restart(t,e,r),n}function v(){h(),++n;for(var t,r=e;r;)(t=l-r._time)>=0&&r._call.call(null,t),r=r._next;--n}function m(){l=(s=u.now())+c,n=i=0;try{v()}finally{n=0,function(){var t,n,i=e,a=1/0;for(;i;)i._call?(a>i._time&&(a=i._time),t=i,i=i._next):(n=i._next,i._next=null,i=t?t._next=n:e=n);r=t,x(a)}(),l=0}}function y(){var t=u.now(),e=t-s;e>o&&(c-=e,s=t)}function x(t){n||(i&&(i=clearTimeout(i)),t-l>24?(t<1/0&&(i=setTimeout(m,t-u.now()-c)),a&&(a=clearInterval(a))):(a||(s=u.now(),a=setInterval(y,o)),n=1,f(m)))}d.prototype=g.prototype={constructor:d,restart:function(t,n,i){if(\"function\"!=typeof t)throw new TypeError(\"callback is not a function\");i=(null==i?h():+i)+(null==n?0:+n),this._next||r===this||(r?r._next=this:e=this,r=this),this._call=t,this._time=i,x()},stop:function(){this._call&&(this._call=null,this._time=1/0,x())}};t.now=h,t.timer=g,t.timerFlush=v,t.timeout=function(t,e,r){var n=new d;return e=null==e?0:+e,n.restart(function(r){n.stop(),t(r+e)},e,r),n},t.interval=function(t,e,r){var n=new d,i=e;return null==e?(n.restart(t,e,r),n):(e=+e,r=null==r?h():+r,n.restart(function a(o){o+=i,n.restart(a,i+=e,r),t(o)},e,r),n)},Object.defineProperty(t,\"__esModule\",{value:!0})}(\"object\"==typeof r&&\"undefined\"!=typeof e?r:n.d3=n.d3||{})},{}],148:[function(t,e,r){!function(){var t={version:\"3.5.17\"},r=[].slice,n=function(t){return r.call(t)},i=this.document;function a(t){return t&&(t.ownerDocument||t.document||t).documentElement}function o(t){return t&&(t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView)}if(i)try{n(i.documentElement.childNodes)[0].nodeType}catch(t){n=function(t){for(var e=t.length,r=new Array(e);e--;)r[e]=t[e];return r}}if(Date.now||(Date.now=function(){return+new Date}),i)try{i.createElement(\"DIV\").style.setProperty(\"opacity\",0,\"\")}catch(t){var s=this.Element.prototype,l=s.setAttribute,c=s.setAttributeNS,u=this.CSSStyleDeclaration.prototype,f=u.setProperty;s.setAttribute=function(t,e){l.call(this,t,e+\"\")},s.setAttributeNS=function(t,e,r){c.call(this,t,e,r+\"\")},u.setProperty=function(t,e,r){f.call(this,t,e+\"\",r)}}function h(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function p(t){return null===t?NaN:+t}function d(t){return!isNaN(t)}function g(t){return{left:function(e,r,n,i){for(arguments.length<3&&(n=0),arguments.length<4&&(i=e.length);n<i;){var a=n+i>>>1;t(e[a],r)<0?n=a+1:i=a}return n},right:function(e,r,n,i){for(arguments.length<3&&(n=0),arguments.length<4&&(i=e.length);n<i;){var a=n+i>>>1;t(e[a],r)>0?i=a:n=a+1}return n}}}t.ascending=h,t.descending=function(t,e){return e<t?-1:e>t?1:e>=t?0:NaN},t.min=function(t,e){var r,n,i=-1,a=t.length;if(1===arguments.length){for(;++i<a;)if(null!=(n=t[i])&&n>=n){r=n;break}for(;++i<a;)null!=(n=t[i])&&r>n&&(r=n)}else{for(;++i<a;)if(null!=(n=e.call(t,t[i],i))&&n>=n){r=n;break}for(;++i<a;)null!=(n=e.call(t,t[i],i))&&r>n&&(r=n)}return r},t.max=function(t,e){var r,n,i=-1,a=t.length;if(1===arguments.length){for(;++i<a;)if(null!=(n=t[i])&&n>=n){r=n;break}for(;++i<a;)null!=(n=t[i])&&n>r&&(r=n)}else{for(;++i<a;)if(null!=(n=e.call(t,t[i],i))&&n>=n){r=n;break}for(;++i<a;)null!=(n=e.call(t,t[i],i))&&n>r&&(r=n)}return r},t.extent=function(t,e){var r,n,i,a=-1,o=t.length;if(1===arguments.length){for(;++a<o;)if(null!=(n=t[a])&&n>=n){r=i=n;break}for(;++a<o;)null!=(n=t[a])&&(r>n&&(r=n),i<n&&(i=n))}else{for(;++a<o;)if(null!=(n=e.call(t,t[a],a))&&n>=n){r=i=n;break}for(;++a<o;)null!=(n=e.call(t,t[a],a))&&(r>n&&(r=n),i<n&&(i=n))}return[r,i]},t.sum=function(t,e){var r,n=0,i=t.length,a=-1;if(1===arguments.length)for(;++a<i;)d(r=+t[a])&&(n+=r);else for(;++a<i;)d(r=+e.call(t,t[a],a))&&(n+=r);return n},t.mean=function(t,e){var r,n=0,i=t.length,a=-1,o=i;if(1===arguments.length)for(;++a<i;)d(r=p(t[a]))?n+=r:--o;else for(;++a<i;)d(r=p(e.call(t,t[a],a)))?n+=r:--o;if(o)return n/o},t.quantile=function(t,e){var r=(t.length-1)*e+1,n=Math.floor(r),i=+t[n-1],a=r-n;return a?i+a*(t[n]-i):i},t.median=function(e,r){var n,i=[],a=e.length,o=-1;if(1===arguments.length)for(;++o<a;)d(n=p(e[o]))&&i.push(n);else for(;++o<a;)d(n=p(r.call(e,e[o],o)))&&i.push(n);if(i.length)return t.quantile(i.sort(h),.5)},t.variance=function(t,e){var r,n,i=t.length,a=0,o=0,s=-1,l=0;if(1===arguments.length)for(;++s<i;)d(r=p(t[s]))&&(o+=(n=r-a)*(r-(a+=n/++l)));else for(;++s<i;)d(r=p(e.call(t,t[s],s)))&&(o+=(n=r-a)*(r-(a+=n/++l)));if(l>1)return o/(l-1)},t.deviation=function(){var e=t.variance.apply(this,arguments);return e?Math.sqrt(e):e};var v=g(h);function m(t){return t.length}t.bisectLeft=v.left,t.bisect=t.bisectRight=v.right,t.bisector=function(t){return g(1===t.length?function(e,r){return h(t(e),r)}:t)},t.shuffle=function(t,e,r){(a=arguments.length)<3&&(r=t.length,a<2&&(e=0));for(var n,i,a=r-e;a;)i=Math.random()*a--|0,n=t[a+e],t[a+e]=t[i+e],t[i+e]=n;return t},t.permute=function(t,e){for(var r=e.length,n=new Array(r);r--;)n[r]=t[e[r]];return n},t.pairs=function(t){for(var e=0,r=t.length-1,n=t[0],i=new Array(r<0?0:r);e<r;)i[e]=[n,n=t[++e]];return i},t.transpose=function(e){if(!(a=e.length))return[];for(var r=-1,n=t.min(e,m),i=new Array(n);++r<n;)for(var a,o=-1,s=i[r]=new Array(a);++o<a;)s[o]=e[o][r];return i},t.zip=function(){return t.transpose(arguments)},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e},t.values=function(t){var e=[];for(var r in t)e.push(t[r]);return e},t.entries=function(t){var e=[];for(var r in t)e.push({key:r,value:t[r]});return e},t.merge=function(t){for(var e,r,n,i=t.length,a=-1,o=0;++a<i;)o+=t[a].length;for(r=new Array(o);--i>=0;)for(e=(n=t[i]).length;--e>=0;)r[--o]=n[e];return r};var y=Math.abs;function x(t,e){for(var r in e)Object.defineProperty(t.prototype,r,{value:e[r],enumerable:!1})}function b(){this._=Object.create(null)}t.range=function(t,e,r){if(arguments.length<3&&(r=1,arguments.length<2&&(e=t,t=0)),(e-t)/r==1/0)throw new Error(\"infinite range\");var n,i=[],a=function(t){var e=1;for(;t*e%1;)e*=10;return e}(y(r)),o=-1;if(t*=a,e*=a,(r*=a)<0)for(;(n=t+r*++o)>e;)i.push(n/a);else for(;(n=t+r*++o)<e;)i.push(n/a);return i},t.map=function(t,e){var r=new b;if(t instanceof b)t.forEach(function(t,e){r.set(t,e)});else if(Array.isArray(t)){var n,i=-1,a=t.length;if(1===arguments.length)for(;++i<a;)r.set(i,t[i]);else for(;++i<a;)r.set(e.call(t,n=t[i],i),n)}else for(var o in t)r.set(o,t[o]);return r};var _=\"__proto__\",w=\"\\0\";function k(t){return(t+=\"\")===_||t[0]===w?w+t:t}function M(t){return(t+=\"\")[0]===w?t.slice(1):t}function A(t){return k(t)in this._}function T(t){return(t=k(t))in this._&&delete this._[t]}function S(){var t=[];for(var e in this._)t.push(M(e));return t}function E(){var t=0;for(var e in this._)++t;return t}function C(){for(var t in this._)return!1;return!0}function L(){this._=Object.create(null)}function z(t){return t}function O(t,e,r){return function(){var n=r.apply(e,arguments);return n===e?t:n}}function I(t,e){if(e in t)return e;e=e.charAt(0).toUpperCase()+e.slice(1);for(var r=0,n=P.length;r<n;++r){var i=P[r]+e;if(i in t)return i}}x(b,{has:A,get:function(t){return this._[k(t)]},set:function(t,e){return this._[k(t)]=e},remove:T,keys:S,values:function(){var t=[];for(var e in this._)t.push(this._[e]);return t},entries:function(){var t=[];for(var e in this._)t.push({key:M(e),value:this._[e]});return t},size:E,empty:C,forEach:function(t){for(var e in this._)t.call(this,M(e),this._[e])}}),t.nest=function(){var e,r,n={},i=[],a=[];function o(t,a,s){if(s>=i.length)return r?r.call(n,a):e?a.sort(e):a;for(var l,c,u,f,h=-1,p=a.length,d=i[s++],g=new b;++h<p;)(f=g.get(l=d(c=a[h])))?f.push(c):g.set(l,[c]);return t?(c=t(),u=function(e,r){c.set(e,o(t,r,s))}):(c={},u=function(e,r){c[e]=o(t,r,s)}),g.forEach(u),c}return n.map=function(t,e){return o(e,t,0)},n.entries=function(e){return function t(e,r){if(r>=i.length)return e;var n=[],o=a[r++];return e.forEach(function(e,i){n.push({key:e,values:t(i,r)})}),o?n.sort(function(t,e){return o(t.key,e.key)}):n}(o(t.map,e,0),0)},n.key=function(t){return i.push(t),n},n.sortKeys=function(t){return a[i.length-1]=t,n},n.sortValues=function(t){return e=t,n},n.rollup=function(t){return r=t,n},n},t.set=function(t){var e=new L;if(t)for(var r=0,n=t.length;r<n;++r)e.add(t[r]);return e},x(L,{has:A,add:function(t){return this._[k(t+=\"\")]=!0,t},remove:T,values:S,size:E,empty:C,forEach:function(t){for(var e in this._)t.call(this,M(e))}}),t.behavior={},t.rebind=function(t,e){for(var r,n=1,i=arguments.length;++n<i;)t[r=arguments[n]]=O(t,e,e[r]);return t};var P=[\"webkit\",\"ms\",\"moz\",\"Moz\",\"o\",\"O\"];function D(){}function R(){}function B(t){var e=[],r=new b;function n(){for(var r,n=e,i=-1,a=n.length;++i<a;)(r=n[i].on)&&r.apply(this,arguments);return t}return n.on=function(n,i){var a,o=r.get(n);return arguments.length<2?o&&o.on:(o&&(o.on=null,e=e.slice(0,a=e.indexOf(o)).concat(e.slice(a+1)),r.remove(n)),i&&e.push(r.set(n,{on:i})),t)},n}function F(){t.event.preventDefault()}function N(){for(var e,r=t.event;e=r.sourceEvent;)r=e;return r}function j(e){for(var r=new R,n=0,i=arguments.length;++n<i;)r[arguments[n]]=B(r);return r.of=function(n,i){return function(a){try{var o=a.sourceEvent=t.event;a.target=e,t.event=a,r[a.type].apply(n,i)}finally{t.event=o}}},r}t.dispatch=function(){for(var t=new R,e=-1,r=arguments.length;++e<r;)t[arguments[e]]=B(t);return t},R.prototype.on=function(t,e){var r=t.indexOf(\".\"),n=\"\";if(r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),t)return arguments.length<2?this[t].on(n):this[t].on(n,e);if(2===arguments.length){if(null==e)for(t in this)this.hasOwnProperty(t)&&this[t].on(n,null);return this}},t.event=null,t.requote=function(t){return t.replace(V,\"\\\\$&\")};var V=/[\\\\\\^\\$\\*\\+\\?\\|\\[\\]\\(\\)\\.\\{\\}]/g,U={}.__proto__?function(t,e){t.__proto__=e}:function(t,e){for(var r in e)t[r]=e[r]};function q(t){return U(t,Y),t}var H=function(t,e){return e.querySelector(t)},G=function(t,e){return e.querySelectorAll(t)},W=function(t,e){var r=t.matches||t[I(t,\"matchesSelector\")];return(W=function(t,e){return r.call(t,e)})(t,e)};\"function\"==typeof Sizzle&&(H=function(t,e){return Sizzle(t,e)[0]||null},G=Sizzle,W=Sizzle.matchesSelector),t.selection=function(){return t.select(i.documentElement)};var Y=t.selection.prototype=[];function X(t){return\"function\"==typeof t?t:function(){return H(t,this)}}function Z(t){return\"function\"==typeof t?t:function(){return G(t,this)}}Y.select=function(t){var e,r,n,i,a=[];t=X(t);for(var o=-1,s=this.length;++o<s;){a.push(e=[]),e.parentNode=(n=this[o]).parentNode;for(var l=-1,c=n.length;++l<c;)(i=n[l])?(e.push(r=t.call(i,i.__data__,l,o)),r&&\"__data__\"in i&&(r.__data__=i.__data__)):e.push(null)}return q(a)},Y.selectAll=function(t){var e,r,i=[];t=Z(t);for(var a=-1,o=this.length;++a<o;)for(var s=this[a],l=-1,c=s.length;++l<c;)(r=s[l])&&(i.push(e=n(t.call(r,r.__data__,l,a))),e.parentNode=r);return q(i)};var $=\"http://www.w3.org/1999/xhtml\",J={svg:\"http://www.w3.org/2000/svg\",xhtml:$,xlink:\"http://www.w3.org/1999/xlink\",xml:\"http://www.w3.org/XML/1998/namespace\",xmlns:\"http://www.w3.org/2000/xmlns/\"};function K(e,r){return e=t.ns.qualify(e),null==r?e.local?function(){this.removeAttributeNS(e.space,e.local)}:function(){this.removeAttribute(e)}:\"function\"==typeof r?e.local?function(){var t=r.apply(this,arguments);null==t?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,t)}:function(){var t=r.apply(this,arguments);null==t?this.removeAttribute(e):this.setAttribute(e,t)}:e.local?function(){this.setAttributeNS(e.space,e.local,r)}:function(){this.setAttribute(e,r)}}function Q(t){return t.trim().replace(/\\s+/g,\" \")}function tt(e){return new RegExp(\"(?:^|\\\\s+)\"+t.requote(e)+\"(?:\\\\s+|$)\",\"g\")}function et(t){return(t+\"\").trim().split(/^|\\s+/)}function rt(t,e){var r=(t=et(t).map(nt)).length;return\"function\"==typeof e?function(){for(var n=-1,i=e.apply(this,arguments);++n<r;)t[n](this,i)}:function(){for(var n=-1;++n<r;)t[n](this,e)}}function nt(t){var e=tt(t);return function(r,n){if(i=r.classList)return n?i.add(t):i.remove(t);var i=r.getAttribute(\"class\")||\"\";n?(e.lastIndex=0,e.test(i)||r.setAttribute(\"class\",Q(i+\" \"+t))):r.setAttribute(\"class\",Q(i.replace(e,\" \")))}}function it(t,e,r){return null==e?function(){this.style.removeProperty(t)}:\"function\"==typeof e?function(){var n=e.apply(this,arguments);null==n?this.style.removeProperty(t):this.style.setProperty(t,n,r)}:function(){this.style.setProperty(t,e,r)}}function at(t,e){return null==e?function(){delete this[t]}:\"function\"==typeof e?function(){var r=e.apply(this,arguments);null==r?delete this[t]:this[t]=r}:function(){this[t]=e}}function ot(e){return\"function\"==typeof e?e:(e=t.ns.qualify(e)).local?function(){return this.ownerDocument.createElementNS(e.space,e.local)}:function(){var t=this.ownerDocument,r=this.namespaceURI;return r===$&&t.documentElement.namespaceURI===$?t.createElement(e):t.createElementNS(r,e)}}function st(){var t=this.parentNode;t&&t.removeChild(this)}function lt(t){return{__data__:t}}function ct(t){return function(){return W(this,t)}}function ut(t,e){for(var r=0,n=t.length;r<n;r++)for(var i,a=t[r],o=0,s=a.length;o<s;o++)(i=a[o])&&e(i,o,r);return t}function ft(t){return U(t,ht),t}t.ns={prefix:J,qualify:function(t){var e=t.indexOf(\":\"),r=t;return e>=0&&\"xmlns\"!==(r=t.slice(0,e))&&(t=t.slice(e+1)),J.hasOwnProperty(r)?{space:J[r],local:t}:t}},Y.attr=function(e,r){if(arguments.length<2){if(\"string\"==typeof e){var n=this.node();return(e=t.ns.qualify(e)).local?n.getAttributeNS(e.space,e.local):n.getAttribute(e)}for(r in e)this.each(K(r,e[r]));return this}return this.each(K(e,r))},Y.classed=function(t,e){if(arguments.length<2){if(\"string\"==typeof t){var r=this.node(),n=(t=et(t)).length,i=-1;if(e=r.classList){for(;++i<n;)if(!e.contains(t[i]))return!1}else for(e=r.getAttribute(\"class\");++i<n;)if(!tt(t[i]).test(e))return!1;return!0}for(e in t)this.each(rt(e,t[e]));return this}return this.each(rt(t,e))},Y.style=function(t,e,r){var n=arguments.length;if(n<3){if(\"string\"!=typeof t){for(r in n<2&&(e=\"\"),t)this.each(it(r,t[r],e));return this}if(n<2){var i=this.node();return o(i).getComputedStyle(i,null).getPropertyValue(t)}r=\"\"}return this.each(it(t,e,r))},Y.property=function(t,e){if(arguments.length<2){if(\"string\"==typeof t)return this.node()[t];for(e in t)this.each(at(e,t[e]));return this}return this.each(at(t,e))},Y.text=function(t){return arguments.length?this.each(\"function\"==typeof t?function(){var e=t.apply(this,arguments);this.textContent=null==e?\"\":e}:null==t?function(){this.textContent=\"\"}:function(){this.textContent=t}):this.node().textContent},Y.html=function(t){return arguments.length?this.each(\"function\"==typeof t?function(){var e=t.apply(this,arguments);this.innerHTML=null==e?\"\":e}:null==t?function(){this.innerHTML=\"\"}:function(){this.innerHTML=t}):this.node().innerHTML},Y.append=function(t){return t=ot(t),this.select(function(){return this.appendChild(t.apply(this,arguments))})},Y.insert=function(t,e){return t=ot(t),e=X(e),this.select(function(){return this.insertBefore(t.apply(this,arguments),e.apply(this,arguments)||null)})},Y.remove=function(){return this.each(st)},Y.data=function(t,e){var r,n,i=-1,a=this.length;if(!arguments.length){for(t=new Array(a=(r=this[0]).length);++i<a;)(n=r[i])&&(t[i]=n.__data__);return t}function o(t,r){var n,i,a,o=t.length,u=r.length,f=Math.min(o,u),h=new Array(u),p=new Array(u),d=new Array(o);if(e){var g,v=new b,m=new Array(o);for(n=-1;++n<o;)(i=t[n])&&(v.has(g=e.call(i,i.__data__,n))?d[n]=i:v.set(g,i),m[n]=g);for(n=-1;++n<u;)(i=v.get(g=e.call(r,a=r[n],n)))?!0!==i&&(h[n]=i,i.__data__=a):p[n]=lt(a),v.set(g,!0);for(n=-1;++n<o;)n in m&&!0!==v.get(m[n])&&(d[n]=t[n])}else{for(n=-1;++n<f;)i=t[n],a=r[n],i?(i.__data__=a,h[n]=i):p[n]=lt(a);for(;n<u;++n)p[n]=lt(r[n]);for(;n<o;++n)d[n]=t[n]}p.update=h,p.parentNode=h.parentNode=d.parentNode=t.parentNode,s.push(p),l.push(h),c.push(d)}var s=ft([]),l=q([]),c=q([]);if(\"function\"==typeof t)for(;++i<a;)o(r=this[i],t.call(r,r.parentNode.__data__,i));else for(;++i<a;)o(r=this[i],t);return l.enter=function(){return s},l.exit=function(){return c},l},Y.datum=function(t){return arguments.length?this.property(\"__data__\",t):this.property(\"__data__\")},Y.filter=function(t){var e,r,n,i=[];\"function\"!=typeof t&&(t=ct(t));for(var a=0,o=this.length;a<o;a++){i.push(e=[]),e.parentNode=(r=this[a]).parentNode;for(var s=0,l=r.length;s<l;s++)(n=r[s])&&t.call(n,n.__data__,s,a)&&e.push(n)}return q(i)},Y.order=function(){for(var t=-1,e=this.length;++t<e;)for(var r,n=this[t],i=n.length-1,a=n[i];--i>=0;)(r=n[i])&&(a&&a!==r.nextSibling&&a.parentNode.insertBefore(r,a),a=r);return this},Y.sort=function(t){t=function(t){arguments.length||(t=h);return function(e,r){return e&&r?t(e.__data__,r.__data__):!e-!r}}.apply(this,arguments);for(var e=-1,r=this.length;++e<r;)this[e].sort(t);return this.order()},Y.each=function(t){return ut(this,function(e,r,n){t.call(e,e.__data__,r,n)})},Y.call=function(t){var e=n(arguments);return t.apply(e[0]=this,e),this},Y.empty=function(){return!this.node()},Y.node=function(){for(var t=0,e=this.length;t<e;t++)for(var r=this[t],n=0,i=r.length;n<i;n++){var a=r[n];if(a)return a}return null},Y.size=function(){var t=0;return ut(this,function(){++t}),t};var ht=[];function pt(e,r,i){var a=\"__on\"+e,o=e.indexOf(\".\"),s=gt;o>0&&(e=e.slice(0,o));var l=dt.get(e);function c(){var t=this[a];t&&(this.removeEventListener(e,t,t.$),delete this[a])}return l&&(e=l,s=vt),o?r?function(){var t=s(r,n(arguments));c.call(this),this.addEventListener(e,this[a]=t,t.$=i),t._=r}:c:r?D:function(){var r,n=new RegExp(\"^__on([^.]+)\"+t.requote(e)+\"$\");for(var i in this)if(r=i.match(n)){var a=this[i];this.removeEventListener(r[1],a,a.$),delete this[i]}}}t.selection.enter=ft,t.selection.enter.prototype=ht,ht.append=Y.append,ht.empty=Y.empty,ht.node=Y.node,ht.call=Y.call,ht.size=Y.size,ht.select=function(t){for(var e,r,n,i,a,o=[],s=-1,l=this.length;++s<l;){n=(i=this[s]).update,o.push(e=[]),e.parentNode=i.parentNode;for(var c=-1,u=i.length;++c<u;)(a=i[c])?(e.push(n[c]=r=t.call(i.parentNode,a.__data__,c,s)),r.__data__=a.__data__):e.push(null)}return q(o)},ht.insert=function(t,e){var r,n,i;return arguments.length<2&&(r=this,e=function(t,e,a){var o,s=r[a].update,l=s.length;for(a!=i&&(i=a,n=0),e>=n&&(n=e+1);!(o=s[n])&&++n<l;);return o}),Y.insert.call(this,t,e)},t.select=function(t){var e;return\"string\"==typeof t?(e=[H(t,i)]).parentNode=i.documentElement:(e=[t]).parentNode=a(t),q([e])},t.selectAll=function(t){var e;return\"string\"==typeof t?(e=n(G(t,i))).parentNode=i.documentElement:(e=n(t)).parentNode=null,q([e])},Y.on=function(t,e,r){var n=arguments.length;if(n<3){if(\"string\"!=typeof t){for(r in n<2&&(e=!1),t)this.each(pt(r,t[r],e));return this}if(n<2)return(n=this.node()[\"__on\"+t])&&n._;r=!1}return this.each(pt(t,e,r))};var dt=t.map({mouseenter:\"mouseover\",mouseleave:\"mouseout\"});function gt(e,r){return function(n){var i=t.event;t.event=n,r[0]=this.__data__;try{e.apply(this,r)}finally{t.event=i}}}function vt(t,e){var r=gt(t,e);return function(t){var e=t.relatedTarget;e&&(e===this||8&e.compareDocumentPosition(this))||r.call(this,t)}}i&&dt.forEach(function(t){\"on\"+t in i&&dt.remove(t)});var mt,yt=0;function xt(e){var r=\".dragsuppress-\"+ ++yt,n=\"click\"+r,i=t.select(o(e)).on(\"touchmove\"+r,F).on(\"dragstart\"+r,F).on(\"selectstart\"+r,F);if(null==mt&&(mt=!(\"onselectstart\"in e)&&I(e.style,\"userSelect\")),mt){var s=a(e).style,l=s[mt];s[mt]=\"none\"}return function(t){if(i.on(r,null),mt&&(s[mt]=l),t){var e=function(){i.on(n,null)};i.on(n,function(){F(),e()},!0),setTimeout(e,0)}}}t.mouse=function(t){return _t(t,N())};var bt=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function _t(e,r){r.changedTouches&&(r=r.changedTouches[0]);var n=e.ownerSVGElement||e;if(n.createSVGPoint){var i=n.createSVGPoint();if(bt<0){var a=o(e);if(a.scrollX||a.scrollY){var s=(n=t.select(\"body\").append(\"svg\").style({position:\"absolute\",top:0,left:0,margin:0,padding:0,border:\"none\"},\"important\"))[0][0].getScreenCTM();bt=!(s.f||s.e),n.remove()}}return bt?(i.x=r.pageX,i.y=r.pageY):(i.x=r.clientX,i.y=r.clientY),[(i=i.matrixTransform(e.getScreenCTM().inverse())).x,i.y]}var l=e.getBoundingClientRect();return[r.clientX-l.left-e.clientLeft,r.clientY-l.top-e.clientTop]}function wt(){return t.event.changedTouches[0].identifier}t.touch=function(t,e,r){if(arguments.length<3&&(r=e,e=N().changedTouches),e)for(var n,i=0,a=e.length;i<a;++i)if((n=e[i]).identifier===r)return _t(t,n)},t.behavior.drag=function(){var e=j(a,\"drag\",\"dragstart\",\"dragend\"),r=null,n=s(D,t.mouse,o,\"mousemove\",\"mouseup\"),i=s(wt,t.touch,z,\"touchmove\",\"touchend\");function a(){this.on(\"mousedown.drag\",n).on(\"touchstart.drag\",i)}function s(n,i,a,o,s){return function(){var l,c=t.event.target.correspondingElement||t.event.target,u=this.parentNode,f=e.of(this,arguments),h=0,p=n(),d=\".drag\"+(null==p?\"\":\"-\"+p),g=t.select(a(c)).on(o+d,function(){var t,e,r=i(u,p);if(!r)return;t=r[0]-m[0],e=r[1]-m[1],h|=t|e,m=r,f({type:\"drag\",x:r[0]+l[0],y:r[1]+l[1],dx:t,dy:e})}).on(s+d,function(){if(!i(u,p))return;g.on(o+d,null).on(s+d,null),v(h),f({type:\"dragend\"})}),v=xt(c),m=i(u,p);l=r?[(l=r.apply(this,arguments)).x-m[0],l.y-m[1]]:[0,0],f({type:\"dragstart\"})}}return a.origin=function(t){return arguments.length?(r=t,a):r},t.rebind(a,e,\"on\")},t.touches=function(t,e){return arguments.length<2&&(e=N().touches),e?n(e).map(function(e){var r=_t(t,e);return r.identifier=e.identifier,r}):[]};var kt=1e-6,Mt=kt*kt,At=Math.PI,Tt=2*At,St=Tt-kt,Et=At/2,Ct=At/180,Lt=180/At;function zt(t){return t>0?1:t<0?-1:0}function Ot(t,e,r){return(e[0]-t[0])*(r[1]-t[1])-(e[1]-t[1])*(r[0]-t[0])}function It(t){return t>1?0:t<-1?At:Math.acos(t)}function Pt(t){return t>1?Et:t<-1?-Et:Math.asin(t)}function Dt(t){return((t=Math.exp(t))+1/t)/2}function Rt(t){return(t=Math.sin(t/2))*t}var Bt=Math.SQRT2;t.interpolateZoom=function(t,e){var r,n,i=t[0],a=t[1],o=t[2],s=e[0],l=e[1],c=e[2],u=s-i,f=l-a,h=u*u+f*f;if(h<Mt)n=Math.log(c/o)/Bt,r=function(t){return[i+t*u,a+t*f,o*Math.exp(Bt*t*n)]};else{var p=Math.sqrt(h),d=(c*c-o*o+4*h)/(2*o*2*p),g=(c*c-o*o-4*h)/(2*c*2*p),v=Math.log(Math.sqrt(d*d+1)-d),m=Math.log(Math.sqrt(g*g+1)-g);n=(m-v)/Bt,r=function(t){var e,r=t*n,s=Dt(v),l=o/(2*p)*(s*(e=Bt*r+v,((e=Math.exp(2*e))-1)/(e+1))-function(t){return((t=Math.exp(t))-1/t)/2}(v));return[i+l*u,a+l*f,o*s/Dt(Bt*r+v)]}}return r.duration=1e3*n,r},t.behavior.zoom=function(){var e,r,n,a,s,l,c,u,f,h={x:0,y:0,k:1},p=[960,500],d=jt,g=250,v=0,m=\"mousedown.zoom\",y=\"mousemove.zoom\",x=\"mouseup.zoom\",b=\"touchstart.zoom\",_=j(w,\"zoomstart\",\"zoom\",\"zoomend\");function w(t){t.on(m,z).on(Nt+\".zoom\",I).on(\"dblclick.zoom\",P).on(b,O)}function k(t){return[(t[0]-h.x)/h.k,(t[1]-h.y)/h.k]}function M(t){h.k=Math.max(d[0],Math.min(d[1],t))}function A(t,e){e=function(t){return[t[0]*h.k+h.x,t[1]*h.k+h.y]}(e),h.x+=t[0]-e[0],h.y+=t[1]-e[1]}function T(e,n,i,a){e.__chart__={x:h.x,y:h.y,k:h.k},M(Math.pow(2,a)),A(r=n,i),e=t.select(e),g>0&&(e=e.transition().duration(g)),e.call(w.event)}function S(){c&&c.domain(l.range().map(function(t){return(t-h.x)/h.k}).map(l.invert)),f&&f.domain(u.range().map(function(t){return(t-h.y)/h.k}).map(u.invert))}function E(t){v++||t({type:\"zoomstart\"})}function C(t){S(),t({type:\"zoom\",scale:h.k,translate:[h.x,h.y]})}function L(t){--v||(t({type:\"zoomend\"}),r=null)}function z(){var e=this,r=_.of(e,arguments),n=0,i=t.select(o(e)).on(y,function(){n=1,A(t.mouse(e),a),C(r)}).on(x,function(){i.on(y,null).on(x,null),s(n),L(r)}),a=k(t.mouse(e)),s=xt(e);fs.call(e),E(r)}function O(){var e,r=this,n=_.of(r,arguments),i={},a=0,o=\".zoom-\"+t.event.changedTouches[0].identifier,l=\"touchmove\"+o,c=\"touchend\"+o,u=[],f=t.select(r),p=xt(r);function d(){var n=t.touches(r);return e=h.k,n.forEach(function(t){t.identifier in i&&(i[t.identifier]=k(t))}),n}function g(){var e=t.event.target;t.select(e).on(l,v).on(c,y),u.push(e);for(var n=t.event.changedTouches,o=0,f=n.length;o<f;++o)i[n[o].identifier]=null;var p=d(),g=Date.now();if(1===p.length){if(g-s<500){var m=p[0];T(r,m,i[m.identifier],Math.floor(Math.log(h.k)/Math.LN2)+1),F()}s=g}else if(p.length>1){m=p[0];var x=p[1],b=m[0]-x[0],_=m[1]-x[1];a=b*b+_*_}}function v(){var o,l,c,u,f=t.touches(r);fs.call(r);for(var h=0,p=f.length;h<p;++h,u=null)if(c=f[h],u=i[c.identifier]){if(l)break;o=c,l=u}if(u){var d=(d=c[0]-o[0])*d+(d=c[1]-o[1])*d,g=a&&Math.sqrt(d/a);o=[(o[0]+c[0])/2,(o[1]+c[1])/2],l=[(l[0]+u[0])/2,(l[1]+u[1])/2],M(g*e)}s=null,A(o,l),C(n)}function y(){if(t.event.touches.length){for(var e=t.event.changedTouches,r=0,a=e.length;r<a;++r)delete i[e[r].identifier];for(var s in i)return void d()}t.selectAll(u).on(o,null),f.on(m,z).on(b,O),p(),L(n)}g(),E(n),f.on(m,null).on(b,g)}function I(){var i=_.of(this,arguments);a?clearTimeout(a):(fs.call(this),e=k(r=n||t.mouse(this)),E(i)),a=setTimeout(function(){a=null,L(i)},50),F(),M(Math.pow(2,.002*Ft())*h.k),A(r,e),C(i)}function P(){var e=t.mouse(this),r=Math.log(h.k)/Math.LN2;T(this,e,k(e),t.event.shiftKey?Math.ceil(r)-1:Math.floor(r)+1)}return Nt||(Nt=\"onwheel\"in i?(Ft=function(){return-t.event.deltaY*(t.event.deltaMode?120:1)},\"wheel\"):\"onmousewheel\"in i?(Ft=function(){return t.event.wheelDelta},\"mousewheel\"):(Ft=function(){return-t.event.detail},\"MozMousePixelScroll\")),w.event=function(e){e.each(function(){var e=_.of(this,arguments),n=h;ds?t.select(this).transition().each(\"start.zoom\",function(){h=this.__chart__||{x:0,y:0,k:1},E(e)}).tween(\"zoom:zoom\",function(){var i=p[0],a=p[1],o=r?r[0]:i/2,s=r?r[1]:a/2,l=t.interpolateZoom([(o-h.x)/h.k,(s-h.y)/h.k,i/h.k],[(o-n.x)/n.k,(s-n.y)/n.k,i/n.k]);return function(t){var r=l(t),n=i/r[2];this.__chart__=h={x:o-r[0]*n,y:s-r[1]*n,k:n},C(e)}}).each(\"interrupt.zoom\",function(){L(e)}).each(\"end.zoom\",function(){L(e)}):(this.__chart__=h,E(e),C(e),L(e))})},w.translate=function(t){return arguments.length?(h={x:+t[0],y:+t[1],k:h.k},S(),w):[h.x,h.y]},w.scale=function(t){return arguments.length?(h={x:h.x,y:h.y,k:null},M(+t),S(),w):h.k},w.scaleExtent=function(t){return arguments.length?(d=null==t?jt:[+t[0],+t[1]],w):d},w.center=function(t){return arguments.length?(n=t&&[+t[0],+t[1]],w):n},w.size=function(t){return arguments.length?(p=t&&[+t[0],+t[1]],w):p},w.duration=function(t){return arguments.length?(g=+t,w):g},w.x=function(t){return arguments.length?(c=t,l=t.copy(),h={x:0,y:0,k:1},w):c},w.y=function(t){return arguments.length?(f=t,u=t.copy(),h={x:0,y:0,k:1},w):f},t.rebind(w,_,\"on\")};var Ft,Nt,jt=[0,1/0];function Vt(){}function Ut(t,e,r){return this instanceof Ut?(this.h=+t,this.s=+e,void(this.l=+r)):arguments.length<2?t instanceof Ut?new Ut(t.h,t.s,t.l):ue(\"\"+t,fe,Ut):new Ut(t,e,r)}t.color=Vt,Vt.prototype.toString=function(){return this.rgb()+\"\"},t.hsl=Ut;var qt=Ut.prototype=new Vt;function Ht(t,e,r){var n,i;function a(t){return Math.round(255*function(t){return t>360?t-=360:t<0&&(t+=360),t<60?n+(i-n)*t/60:t<180?i:t<240?n+(i-n)*(240-t)/60:n}(t))}return t=isNaN(t)?0:(t%=360)<0?t+360:t,e=isNaN(e)?0:e<0?0:e>1?1:e,n=2*(r=r<0?0:r>1?1:r)-(i=r<=.5?r*(1+e):r+e-r*e),new ae(a(t+120),a(t),a(t-120))}function Gt(e,r,n){return this instanceof Gt?(this.h=+e,this.c=+r,void(this.l=+n)):arguments.length<2?e instanceof Gt?new Gt(e.h,e.c,e.l):ee(e instanceof Xt?e.l:(e=he((e=t.rgb(e)).r,e.g,e.b)).l,e.a,e.b):new Gt(e,r,n)}qt.brighter=function(t){return t=Math.pow(.7,arguments.length?t:1),new Ut(this.h,this.s,this.l/t)},qt.darker=function(t){return t=Math.pow(.7,arguments.length?t:1),new Ut(this.h,this.s,t*this.l)},qt.rgb=function(){return Ht(this.h,this.s,this.l)},t.hcl=Gt;var Wt=Gt.prototype=new Vt;function Yt(t,e,r){return isNaN(t)&&(t=0),isNaN(e)&&(e=0),new Xt(r,Math.cos(t*=Ct)*e,Math.sin(t)*e)}function Xt(t,e,r){return this instanceof Xt?(this.l=+t,this.a=+e,void(this.b=+r)):arguments.length<2?t instanceof Xt?new Xt(t.l,t.a,t.b):t instanceof Gt?Yt(t.h,t.c,t.l):he((t=ae(t)).r,t.g,t.b):new Xt(t,e,r)}Wt.brighter=function(t){return new Gt(this.h,this.c,Math.min(100,this.l+Zt*(arguments.length?t:1)))},Wt.darker=function(t){return new Gt(this.h,this.c,Math.max(0,this.l-Zt*(arguments.length?t:1)))},Wt.rgb=function(){return Yt(this.h,this.c,this.l).rgb()},t.lab=Xt;var Zt=18,$t=.95047,Jt=1,Kt=1.08883,Qt=Xt.prototype=new Vt;function te(t,e,r){var n=(t+16)/116,i=n+e/500,a=n-r/200;return new ae(ie(3.2404542*(i=re(i)*$t)-1.5371385*(n=re(n)*Jt)-.4985314*(a=re(a)*Kt)),ie(-.969266*i+1.8760108*n+.041556*a),ie(.0556434*i-.2040259*n+1.0572252*a))}function ee(t,e,r){return t>0?new Gt(Math.atan2(r,e)*Lt,Math.sqrt(e*e+r*r),t):new Gt(NaN,NaN,t)}function re(t){return t>.206893034?t*t*t:(t-4/29)/7.787037}function ne(t){return t>.008856?Math.pow(t,1/3):7.787037*t+4/29}function ie(t){return Math.round(255*(t<=.00304?12.92*t:1.055*Math.pow(t,1/2.4)-.055))}function ae(t,e,r){return this instanceof ae?(this.r=~~t,this.g=~~e,void(this.b=~~r)):arguments.length<2?t instanceof ae?new ae(t.r,t.g,t.b):ue(\"\"+t,ae,Ht):new ae(t,e,r)}function oe(t){return new ae(t>>16,t>>8&255,255&t)}function se(t){return oe(t)+\"\"}Qt.brighter=function(t){return new Xt(Math.min(100,this.l+Zt*(arguments.length?t:1)),this.a,this.b)},Qt.darker=function(t){return new Xt(Math.max(0,this.l-Zt*(arguments.length?t:1)),this.a,this.b)},Qt.rgb=function(){return te(this.l,this.a,this.b)},t.rgb=ae;var le=ae.prototype=new Vt;function ce(t){return t<16?\"0\"+Math.max(0,t).toString(16):Math.min(255,t).toString(16)}function ue(t,e,r){var n,i,a,o=0,s=0,l=0;if(n=/([a-z]+)\\((.*)\\)/.exec(t=t.toLowerCase()))switch(i=n[2].split(\",\"),n[1]){case\"hsl\":return r(parseFloat(i[0]),parseFloat(i[1])/100,parseFloat(i[2])/100);case\"rgb\":return e(de(i[0]),de(i[1]),de(i[2]))}return(a=ge.get(t))?e(a.r,a.g,a.b):(null==t||\"#\"!==t.charAt(0)||isNaN(a=parseInt(t.slice(1),16))||(4===t.length?(o=(3840&a)>>4,o|=o>>4,s=240&a,s|=s>>4,l=15&a,l|=l<<4):7===t.length&&(o=(16711680&a)>>16,s=(65280&a)>>8,l=255&a)),e(o,s,l))}function fe(t,e,r){var n,i,a=Math.min(t/=255,e/=255,r/=255),o=Math.max(t,e,r),s=o-a,l=(o+a)/2;return s?(i=l<.5?s/(o+a):s/(2-o-a),n=t==o?(e-r)/s+(e<r?6:0):e==o?(r-t)/s+2:(t-e)/s+4,n*=60):(n=NaN,i=l>0&&l<1?0:n),new Ut(n,i,l)}function he(t,e,r){var n=ne((.4124564*(t=pe(t))+.3575761*(e=pe(e))+.1804375*(r=pe(r)))/$t),i=ne((.2126729*t+.7151522*e+.072175*r)/Jt);return Xt(116*i-16,500*(n-i),200*(i-ne((.0193339*t+.119192*e+.9503041*r)/Kt)))}function pe(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function de(t){var e=parseFloat(t);return\"%\"===t.charAt(t.length-1)?Math.round(2.55*e):e}le.brighter=function(t){t=Math.pow(.7,arguments.length?t:1);var e=this.r,r=this.g,n=this.b,i=30;return e||r||n?(e&&e<i&&(e=i),r&&r<i&&(r=i),n&&n<i&&(n=i),new ae(Math.min(255,e/t),Math.min(255,r/t),Math.min(255,n/t))):new ae(i,i,i)},le.darker=function(t){return new ae((t=Math.pow(.7,arguments.length?t:1))*this.r,t*this.g,t*this.b)},le.hsl=function(){return fe(this.r,this.g,this.b)},le.toString=function(){return\"#\"+ce(this.r)+ce(this.g)+ce(this.b)};var ge=t.map({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});function ve(t){return\"function\"==typeof t?t:function(){return t}}function me(t){return function(e,r,n){return 2===arguments.length&&\"function\"==typeof r&&(n=r,r=null),ye(e,r,t,n)}}function ye(e,r,i,a){var o={},s=t.dispatch(\"beforesend\",\"progress\",\"load\",\"error\"),l={},c=new XMLHttpRequest,u=null;function f(){var t,e=c.status;if(!e&&function(t){var e=t.responseType;return e&&\"text\"!==e?t.response:t.responseText}(c)||e>=200&&e<300||304===e){try{t=i.call(o,c)}catch(t){return void s.error.call(o,t)}s.load.call(o,t)}else s.error.call(o,c)}return!this.XDomainRequest||\"withCredentials\"in c||!/^(http(s)?:)?\\/\\//.test(e)||(c=new XDomainRequest),\"onload\"in c?c.onload=c.onerror=f:c.onreadystatechange=function(){c.readyState>3&&f()},c.onprogress=function(e){var r=t.event;t.event=e;try{s.progress.call(o,c)}finally{t.event=r}},o.header=function(t,e){return t=(t+\"\").toLowerCase(),arguments.length<2?l[t]:(null==e?delete l[t]:l[t]=e+\"\",o)},o.mimeType=function(t){return arguments.length?(r=null==t?null:t+\"\",o):r},o.responseType=function(t){return arguments.length?(u=t,o):u},o.response=function(t){return i=t,o},[\"get\",\"post\"].forEach(function(t){o[t]=function(){return o.send.apply(o,[t].concat(n(arguments)))}}),o.send=function(t,n,i){if(2===arguments.length&&\"function\"==typeof n&&(i=n,n=null),c.open(t,e,!0),null==r||\"accept\"in l||(l.accept=r+\",*/*\"),c.setRequestHeader)for(var a in l)c.setRequestHeader(a,l[a]);return null!=r&&c.overrideMimeType&&c.overrideMimeType(r),null!=u&&(c.responseType=u),null!=i&&o.on(\"error\",i).on(\"load\",function(t){i(null,t)}),s.beforesend.call(o,c),c.send(null==n?null:n),o},o.abort=function(){return c.abort(),o},t.rebind(o,s,\"on\"),null==a?o:o.get(function(t){return 1===t.length?function(e,r){t(null==e?r:null)}:t}(a))}ge.forEach(function(t,e){ge.set(t,oe(e))}),t.functor=ve,t.xhr=me(z),t.dsv=function(t,e){var r=new RegExp('[\"'+t+\"\\n]\"),n=t.charCodeAt(0);function i(t,r,n){arguments.length<3&&(n=r,r=null);var i=ye(t,e,null==r?a:o(r),n);return i.row=function(t){return arguments.length?i.response(null==(r=t)?a:o(t)):r},i}function a(t){return i.parse(t.responseText)}function o(t){return function(e){return i.parse(e.responseText,t)}}function s(e){return e.map(l).join(t)}function l(t){return r.test(t)?'\"'+t.replace(/\\\"/g,'\"\"')+'\"':t}return i.parse=function(t,e){var r;return i.parseRows(t,function(t,n){if(r)return r(t,n-1);var i=new Function(\"d\",\"return {\"+t.map(function(t,e){return JSON.stringify(t)+\": d[\"+e+\"]\"}).join(\",\")+\"}\");r=e?function(t,r){return e(i(t),r)}:i})},i.parseRows=function(t,e){var r,i,a={},o={},s=[],l=t.length,c=0,u=0;function f(){if(c>=l)return o;if(i)return i=!1,a;var e=c;if(34===t.charCodeAt(e)){for(var r=e;r++<l;)if(34===t.charCodeAt(r)){if(34!==t.charCodeAt(r+1))break;++r}return c=r+2,13===(s=t.charCodeAt(r+1))?(i=!0,10===t.charCodeAt(r+2)&&++c):10===s&&(i=!0),t.slice(e+1,r).replace(/\"\"/g,'\"')}for(;c<l;){var s,u=1;if(10===(s=t.charCodeAt(c++)))i=!0;else if(13===s)i=!0,10===t.charCodeAt(c)&&(++c,++u);else if(s!==n)continue;return t.slice(e,c-u)}return t.slice(e)}for(;(r=f())!==o;){for(var h=[];r!==a&&r!==o;)h.push(r),r=f();e&&null==(h=e(h,u++))||s.push(h)}return s},i.format=function(e){if(Array.isArray(e[0]))return i.formatRows(e);var r=new L,n=[];return e.forEach(function(t){for(var e in t)r.has(e)||n.push(r.add(e))}),[n.map(l).join(t)].concat(e.map(function(e){return n.map(function(t){return l(e[t])}).join(t)})).join(\"\\n\")},i.formatRows=function(t){return t.map(s).join(\"\\n\")},i},t.csv=t.dsv(\",\",\"text/csv\"),t.tsv=t.dsv(\"\\t\",\"text/tab-separated-values\");var xe,be,_e,we,ke=this[I(this,\"requestAnimationFrame\")]||function(t){setTimeout(t,17)};function Me(t,e,r){var n=arguments.length;n<2&&(e=0),n<3&&(r=Date.now());var i={c:t,t:r+e,n:null};return be?be.n=i:xe=i,be=i,_e||(we=clearTimeout(we),_e=1,ke(Ae)),i}function Ae(){var t=Te(),e=Se()-t;e>24?(isFinite(e)&&(clearTimeout(we),we=setTimeout(Ae,e)),_e=0):(_e=1,ke(Ae))}function Te(){for(var t=Date.now(),e=xe;e;)t>=e.t&&e.c(t-e.t)&&(e.c=null),e=e.n;return t}function Se(){for(var t,e=xe,r=1/0;e;)e.c?(e.t<r&&(r=e.t),e=(t=e).n):e=t?t.n=e.n:xe=e.n;return be=t,r}function Ee(t,e){return e-(t?Math.ceil(Math.log(t)/Math.LN10):1)}t.timer=function(){Me.apply(this,arguments)},t.timer.flush=function(){Te(),Se()},t.round=function(t,e){return e?Math.round(t*(e=Math.pow(10,e)))/e:Math.round(t)};var Ce=[\"y\",\"z\",\"a\",\"f\",\"p\",\"n\",\"\\xb5\",\"m\",\"\",\"k\",\"M\",\"G\",\"T\",\"P\",\"E\",\"Z\",\"Y\"].map(function(t,e){var r=Math.pow(10,3*y(8-e));return{scale:e>8?function(t){return t/r}:function(t){return t*r},symbol:t}});t.formatPrefix=function(e,r){var n=0;return(e=+e)&&(e<0&&(e*=-1),r&&(e=t.round(e,Ee(e,r))),n=1+Math.floor(1e-12+Math.log(e)/Math.LN10),n=Math.max(-24,Math.min(24,3*Math.floor((n-1)/3)))),Ce[8+n/3]};var Le=/(?:([^{])?([<>=^]))?([+\\- ])?([$#])?(0)?(\\d+)?(,)?(\\.-?\\d+)?([a-z%])?/i,ze=t.map({b:function(t){return t.toString(2)},c:function(t){return String.fromCharCode(t)},o:function(t){return t.toString(8)},x:function(t){return t.toString(16)},X:function(t){return t.toString(16).toUpperCase()},g:function(t,e){return t.toPrecision(e)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},r:function(e,r){return(e=t.round(e,Ee(e,r))).toFixed(Math.max(0,Math.min(20,Ee(e*(1+1e-15),r))))}});function Oe(t){return t+\"\"}var Ie=t.time={},Pe=Date;function De(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}De.prototype={getDate:function(){return this._.getUTCDate()},getDay:function(){return this._.getUTCDay()},getFullYear:function(){return this._.getUTCFullYear()},getHours:function(){return this._.getUTCHours()},getMilliseconds:function(){return this._.getUTCMilliseconds()},getMinutes:function(){return this._.getUTCMinutes()},getMonth:function(){return this._.getUTCMonth()},getSeconds:function(){return this._.getUTCSeconds()},getTime:function(){return this._.getTime()},getTimezoneOffset:function(){return 0},valueOf:function(){return this._.valueOf()},setDate:function(){Re.setUTCDate.apply(this._,arguments)},setDay:function(){Re.setUTCDay.apply(this._,arguments)},setFullYear:function(){Re.setUTCFullYear.apply(this._,arguments)},setHours:function(){Re.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){Re.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){Re.setUTCMinutes.apply(this._,arguments)},setMonth:function(){Re.setUTCMonth.apply(this._,arguments)},setSeconds:function(){Re.setUTCSeconds.apply(this._,arguments)},setTime:function(){Re.setTime.apply(this._,arguments)}};var Re=Date.prototype;function Be(t,e,r){function n(e){var r=t(e),n=a(r,1);return e-r<n-e?r:n}function i(r){return e(r=t(new Pe(r-1)),1),r}function a(t,r){return e(t=new Pe(+t),r),t}function o(t,n,a){var o=i(t),s=[];if(a>1)for(;o<n;)r(o)%a||s.push(new Date(+o)),e(o,1);else for(;o<n;)s.push(new Date(+o)),e(o,1);return s}t.floor=t,t.round=n,t.ceil=i,t.offset=a,t.range=o;var s=t.utc=Fe(t);return s.floor=s,s.round=Fe(n),s.ceil=Fe(i),s.offset=Fe(a),s.range=function(t,e,r){try{Pe=De;var n=new De;return n._=t,o(n,e,r)}finally{Pe=Date}},t}function Fe(t){return function(e,r){try{Pe=De;var n=new De;return n._=e,t(n,r)._}finally{Pe=Date}}}Ie.year=Be(function(t){return(t=Ie.day(t)).setMonth(0,1),t},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t){return t.getFullYear()}),Ie.years=Ie.year.range,Ie.years.utc=Ie.year.utc.range,Ie.day=Be(function(t){var e=new Pe(2e3,0);return e.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),e},function(t,e){t.setDate(t.getDate()+e)},function(t){return t.getDate()-1}),Ie.days=Ie.day.range,Ie.days.utc=Ie.day.utc.range,Ie.dayOfYear=function(t){var e=Ie.year(t);return Math.floor((t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/864e5)},[\"sunday\",\"monday\",\"tuesday\",\"wednesday\",\"thursday\",\"friday\",\"saturday\"].forEach(function(t,e){e=7-e;var r=Ie[t]=Be(function(t){return(t=Ie.day(t)).setDate(t.getDate()-(t.getDay()+e)%7),t},function(t,e){t.setDate(t.getDate()+7*Math.floor(e))},function(t){var r=Ie.year(t).getDay();return Math.floor((Ie.dayOfYear(t)+(r+e)%7)/7)-(r!==e)});Ie[t+\"s\"]=r.range,Ie[t+\"s\"].utc=r.utc.range,Ie[t+\"OfYear\"]=function(t){var r=Ie.year(t).getDay();return Math.floor((Ie.dayOfYear(t)+(r+e)%7)/7)}}),Ie.week=Ie.sunday,Ie.weeks=Ie.sunday.range,Ie.weeks.utc=Ie.sunday.utc.range,Ie.weekOfYear=Ie.sundayOfYear;var Ne={\"-\":\"\",_:\" \",0:\"0\"},je=/^\\s*\\d+/,Ve=/^%/;function Ue(t,e,r){var n=t<0?\"-\":\"\",i=(n?-t:t)+\"\",a=i.length;return n+(a<r?new Array(r-a+1).join(e)+i:i)}function qe(e){return new RegExp(\"^(?:\"+e.map(t.requote).join(\"|\")+\")\",\"i\")}function He(t){for(var e=new b,r=-1,n=t.length;++r<n;)e.set(t[r].toLowerCase(),r);return e}function Ge(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r,r+1));return n?(t.w=+n[0],r+n[0].length):-1}function We(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r));return n?(t.U=+n[0],r+n[0].length):-1}function Ye(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r));return n?(t.W=+n[0],r+n[0].length):-1}function Xe(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r,r+4));return n?(t.y=+n[0],r+n[0].length):-1}function Ze(t,e,r){je.lastIndex=0;var n,i=je.exec(e.slice(r,r+2));return i?(t.y=(n=+i[0])+(n>68?1900:2e3),r+i[0].length):-1}function $e(t,e,r){return/^[+-]\\d{4}$/.test(e=e.slice(r,r+5))?(t.Z=-e,r+5):-1}function Je(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function Ke(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function Qe(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r,r+3));return n?(t.j=+n[0],r+n[0].length):-1}function tr(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function er(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function rr(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function nr(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function ir(t){var e=t.getTimezoneOffset(),r=e>0?\"-\":\"+\",n=y(e)/60|0,i=y(e)%60;return r+Ue(n,\"0\",2)+Ue(i,\"0\",2)}function ar(t,e,r){Ve.lastIndex=0;var n=Ve.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function or(t){for(var e=t.length,r=-1;++r<e;)t[r][0]=this(t[r][0]);return function(e){for(var r=0,n=t[r];!n[1](e);)n=t[++r];return n[0](e)}}t.locale=function(e){return{numberFormat:function(e){var r=e.decimal,n=e.thousands,i=e.grouping,a=e.currency,o=i&&n?function(t,e){for(var r=t.length,a=[],o=0,s=i[0],l=0;r>0&&s>0&&(l+s+1>e&&(s=Math.max(1,e-l)),a.push(t.substring(r-=s,r+s)),!((l+=s+1)>e));)s=i[o=(o+1)%i.length];return a.reverse().join(n)}:z;return function(e){var n=Le.exec(e),i=n[1]||\" \",s=n[2]||\">\",l=n[3]||\"-\",c=n[4]||\"\",u=n[5],f=+n[6],h=n[7],p=n[8],d=n[9],g=1,v=\"\",m=\"\",y=!1,x=!0;switch(p&&(p=+p.substring(1)),(u||\"0\"===i&&\"=\"===s)&&(u=i=\"0\",s=\"=\"),d){case\"n\":h=!0,d=\"g\";break;case\"%\":g=100,m=\"%\",d=\"f\";break;case\"p\":g=100,m=\"%\",d=\"r\";break;case\"b\":case\"o\":case\"x\":case\"X\":\"#\"===c&&(v=\"0\"+d.toLowerCase());case\"c\":x=!1;case\"d\":y=!0,p=0;break;case\"s\":g=-1,d=\"r\"}\"$\"===c&&(v=a[0],m=a[1]),\"r\"!=d||p||(d=\"g\"),null!=p&&(\"g\"==d?p=Math.max(1,Math.min(21,p)):\"e\"!=d&&\"f\"!=d||(p=Math.max(0,Math.min(20,p)))),d=ze.get(d)||Oe;var b=u&&h;return function(e){var n=m;if(y&&e%1)return\"\";var a=e<0||0===e&&1/e<0?(e=-e,\"-\"):\"-\"===l?\"\":l;if(g<0){var c=t.formatPrefix(e,p);e=c.scale(e),n=c.symbol+m}else e*=g;var _,w,k=(e=d(e,p)).lastIndexOf(\".\");if(k<0){var M=x?e.lastIndexOf(\"e\"):-1;M<0?(_=e,w=\"\"):(_=e.substring(0,M),w=e.substring(M))}else _=e.substring(0,k),w=r+e.substring(k+1);!u&&h&&(_=o(_,1/0));var A=v.length+_.length+w.length+(b?0:a.length),T=A<f?new Array(A=f-A+1).join(i):\"\";return b&&(_=o(T+_,T.length?f-w.length:1/0)),a+=v,e=_+w,(\"<\"===s?a+e+T:\">\"===s?T+a+e:\"^\"===s?T.substring(0,A>>=1)+a+e+T.substring(A):a+(b?e:T+e))+n}}}(e),timeFormat:function(e){var r=e.dateTime,n=e.date,i=e.time,a=e.periods,o=e.days,s=e.shortDays,l=e.months,c=e.shortMonths;function u(t){var e=t.length;function r(r){for(var n,i,a,o=[],s=-1,l=0;++s<e;)37===t.charCodeAt(s)&&(o.push(t.slice(l,s)),null!=(i=Ne[n=t.charAt(++s)])&&(n=t.charAt(++s)),(a=_[n])&&(n=a(r,null==i?\"e\"===n?\" \":\"0\":i)),o.push(n),l=s+1);return o.push(t.slice(l,s)),o.join(\"\")}return r.parse=function(e){var r={y:1900,m:0,d:1,H:0,M:0,S:0,L:0,Z:null};if(f(r,t,e,0)!=e.length)return null;\"p\"in r&&(r.H=r.H%12+12*r.p);var n=null!=r.Z&&Pe!==De,i=new(n?De:Pe);return\"j\"in r?i.setFullYear(r.y,0,r.j):\"W\"in r||\"U\"in r?(\"w\"in r||(r.w=\"W\"in r?1:0),i.setFullYear(r.y,0,1),i.setFullYear(r.y,0,\"W\"in r?(r.w+6)%7+7*r.W-(i.getDay()+5)%7:r.w+7*r.U-(i.getDay()+6)%7)):i.setFullYear(r.y,r.m,r.d),i.setHours(r.H+(r.Z/100|0),r.M+r.Z%100,r.S,r.L),n?i._:i},r.toString=function(){return t},r}function f(t,e,r,n){for(var i,a,o,s=0,l=e.length,c=r.length;s<l;){if(n>=c)return-1;if(37===(i=e.charCodeAt(s++))){if(o=e.charAt(s++),!(a=w[o in Ne?e.charAt(s++):o])||(n=a(t,r,n))<0)return-1}else if(i!=r.charCodeAt(n++))return-1}return n}u.utc=function(t){var e=u(t);function r(t){try{var r=new(Pe=De);return r._=t,e(r)}finally{Pe=Date}}return r.parse=function(t){try{Pe=De;var r=e.parse(t);return r&&r._}finally{Pe=Date}},r.toString=e.toString,r},u.multi=u.utc.multi=or;var h=t.map(),p=qe(o),d=He(o),g=qe(s),v=He(s),m=qe(l),y=He(l),x=qe(c),b=He(c);a.forEach(function(t,e){h.set(t.toLowerCase(),e)});var _={a:function(t){return s[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return c[t.getMonth()]},B:function(t){return l[t.getMonth()]},c:u(r),d:function(t,e){return Ue(t.getDate(),e,2)},e:function(t,e){return Ue(t.getDate(),e,2)},H:function(t,e){return Ue(t.getHours(),e,2)},I:function(t,e){return Ue(t.getHours()%12||12,e,2)},j:function(t,e){return Ue(1+Ie.dayOfYear(t),e,3)},L:function(t,e){return Ue(t.getMilliseconds(),e,3)},m:function(t,e){return Ue(t.getMonth()+1,e,2)},M:function(t,e){return Ue(t.getMinutes(),e,2)},p:function(t){return a[+(t.getHours()>=12)]},S:function(t,e){return Ue(t.getSeconds(),e,2)},U:function(t,e){return Ue(Ie.sundayOfYear(t),e,2)},w:function(t){return t.getDay()},W:function(t,e){return Ue(Ie.mondayOfYear(t),e,2)},x:u(n),X:u(i),y:function(t,e){return Ue(t.getFullYear()%100,e,2)},Y:function(t,e){return Ue(t.getFullYear()%1e4,e,4)},Z:ir,\"%\":function(){return\"%\"}},w={a:function(t,e,r){g.lastIndex=0;var n=g.exec(e.slice(r));return n?(t.w=v.get(n[0].toLowerCase()),r+n[0].length):-1},A:function(t,e,r){p.lastIndex=0;var n=p.exec(e.slice(r));return n?(t.w=d.get(n[0].toLowerCase()),r+n[0].length):-1},b:function(t,e,r){x.lastIndex=0;var n=x.exec(e.slice(r));return n?(t.m=b.get(n[0].toLowerCase()),r+n[0].length):-1},B:function(t,e,r){m.lastIndex=0;var n=m.exec(e.slice(r));return n?(t.m=y.get(n[0].toLowerCase()),r+n[0].length):-1},c:function(t,e,r){return f(t,_.c.toString(),e,r)},d:Ke,e:Ke,H:tr,I:tr,j:Qe,L:nr,m:Je,M:er,p:function(t,e,r){var n=h.get(e.slice(r,r+=2).toLowerCase());return null==n?-1:(t.p=n,r)},S:rr,U:We,w:Ge,W:Ye,x:function(t,e,r){return f(t,_.x.toString(),e,r)},X:function(t,e,r){return f(t,_.X.toString(),e,r)},y:Ze,Y:Xe,Z:$e,\"%\":ar};return u}(e)}};var sr=t.locale({decimal:\".\",thousands:\",\",grouping:[3],currency:[\"$\",\"\"],dateTime:\"%a %b %e %X %Y\",date:\"%m/%d/%Y\",time:\"%H:%M:%S\",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 lr(){}t.format=sr.numberFormat,t.geo={},lr.prototype={s:0,t:0,add:function(t){ur(t,this.t,cr),ur(cr.s,this.s,this),this.s?this.t+=cr.t:this.s=cr.t},reset:function(){this.s=this.t=0},valueOf:function(){return this.s}};var cr=new lr;function ur(t,e,r){var n=r.s=t+e,i=n-t,a=n-i;r.t=t-a+(e-i)}function fr(t,e){t&&pr.hasOwnProperty(t.type)&&pr[t.type](t,e)}t.geo.stream=function(t,e){t&&hr.hasOwnProperty(t.type)?hr[t.type](t,e):fr(t,e)};var hr={Feature:function(t,e){fr(t.geometry,e)},FeatureCollection:function(t,e){for(var r=t.features,n=-1,i=r.length;++n<i;)fr(r[n].geometry,e)}},pr={Sphere:function(t,e){e.sphere()},Point:function(t,e){t=t.coordinates,e.point(t[0],t[1],t[2])},MultiPoint:function(t,e){for(var r=t.coordinates,n=-1,i=r.length;++n<i;)t=r[n],e.point(t[0],t[1],t[2])},LineString:function(t,e){dr(t.coordinates,e,0)},MultiLineString:function(t,e){for(var r=t.coordinates,n=-1,i=r.length;++n<i;)dr(r[n],e,0)},Polygon:function(t,e){gr(t.coordinates,e)},MultiPolygon:function(t,e){for(var r=t.coordinates,n=-1,i=r.length;++n<i;)gr(r[n],e)},GeometryCollection:function(t,e){for(var r=t.geometries,n=-1,i=r.length;++n<i;)fr(r[n],e)}};function dr(t,e,r){var n,i=-1,a=t.length-r;for(e.lineStart();++i<a;)n=t[i],e.point(n[0],n[1],n[2]);e.lineEnd()}function gr(t,e){var r=-1,n=t.length;for(e.polygonStart();++r<n;)dr(t[r],e,1);e.polygonEnd()}t.geo.area=function(e){return vr=0,t.geo.stream(e,Cr),vr};var vr,mr,yr,xr,br,_r,wr,kr,Mr,Ar,Tr,Sr,Er=new lr,Cr={sphere:function(){vr+=4*At},point:D,lineStart:D,lineEnd:D,polygonStart:function(){Er.reset(),Cr.lineStart=Lr},polygonEnd:function(){var t=2*Er;vr+=t<0?4*At+t:t,Cr.lineStart=Cr.lineEnd=Cr.point=D}};function Lr(){var t,e,r,n,i;function a(t,e){e=e*Ct/2+At/4;var a=(t*=Ct)-r,o=a>=0?1:-1,s=o*a,l=Math.cos(e),c=Math.sin(e),u=i*c,f=n*l+u*Math.cos(s),h=u*o*Math.sin(s);Er.add(Math.atan2(h,f)),r=t,n=l,i=c}Cr.point=function(o,s){Cr.point=a,r=(t=o)*Ct,n=Math.cos(s=(e=s)*Ct/2+At/4),i=Math.sin(s)},Cr.lineEnd=function(){a(t,e)}}function zr(t){var e=t[0],r=t[1],n=Math.cos(r);return[n*Math.cos(e),n*Math.sin(e),Math.sin(r)]}function Or(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function Ir(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function Pr(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function Dr(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function Rr(t){var e=Math.sqrt(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}function Br(t){return[Math.atan2(t[1],t[0]),Pt(t[2])]}function Fr(t,e){return y(t[0]-e[0])<kt&&y(t[1]-e[1])<kt}t.geo.bounds=function(){var e,r,n,i,a,o,s,l,c,u,f,h={point:p,lineStart:g,lineEnd:v,polygonStart:function(){h.point=m,h.lineStart=x,h.lineEnd=b,c=0,Cr.polygonStart()},polygonEnd:function(){Cr.polygonEnd(),h.point=p,h.lineStart=g,h.lineEnd=v,Er<0?(e=-(n=180),r=-(i=90)):c>kt?i=90:c<-kt&&(r=-90),f[0]=e,f[1]=n}};function p(t,a){u.push(f=[e=t,n=t]),a<r&&(r=a),a>i&&(i=a)}function d(t,o){var s=zr([t*Ct,o*Ct]);if(l){var c=Ir(l,s),u=Ir([c[1],-c[0],0],c);Rr(u),u=Br(u);var f=t-a,h=f>0?1:-1,d=u[0]*Lt*h,g=y(f)>180;if(g^(h*a<d&&d<h*t))(v=u[1]*Lt)>i&&(i=v);else if(g^(h*a<(d=(d+360)%360-180)&&d<h*t)){var v;(v=-u[1]*Lt)<r&&(r=v)}else o<r&&(r=o),o>i&&(i=o);g?t<a?_(e,t)>_(e,n)&&(n=t):_(t,n)>_(e,n)&&(e=t):n>=e?(t<e&&(e=t),t>n&&(n=t)):t>a?_(e,t)>_(e,n)&&(n=t):_(t,n)>_(e,n)&&(e=t)}else p(t,o);l=s,a=t}function g(){h.point=d}function v(){f[0]=e,f[1]=n,h.point=p,l=null}function m(t,e){if(l){var r=t-a;c+=y(r)>180?r+(r>0?360:-360):r}else o=t,s=e;Cr.point(t,e),d(t,e)}function x(){Cr.lineStart()}function b(){m(o,s),Cr.lineEnd(),y(c)>kt&&(e=-(n=180)),f[0]=e,f[1]=n,l=null}function _(t,e){return(e-=t)<0?e+360:e}function w(t,e){return t[0]-e[0]}function k(t,e){return e[0]<=e[1]?e[0]<=t&&t<=e[1]:t<e[0]||e[1]<t}return function(a){if(i=n=-(e=r=1/0),u=[],t.geo.stream(a,h),c=u.length){u.sort(w);for(var o=1,s=[g=u[0]];o<c;++o)k((p=u[o])[0],g)||k(p[1],g)?(_(g[0],p[1])>_(g[0],g[1])&&(g[1]=p[1]),_(p[0],g[1])>_(g[0],g[1])&&(g[0]=p[0])):s.push(g=p);for(var l,c,p,d=-1/0,g=(o=0,s[c=s.length-1]);o<=c;g=p,++o)p=s[o],(l=_(g[1],p[0]))>d&&(d=l,e=p[0],n=g[1])}return u=f=null,e===1/0||r===1/0?[[NaN,NaN],[NaN,NaN]]:[[e,r],[n,i]]}}(),t.geo.centroid=function(e){mr=yr=xr=br=_r=wr=kr=Mr=Ar=Tr=Sr=0,t.geo.stream(e,Nr);var r=Ar,n=Tr,i=Sr,a=r*r+n*n+i*i;return a<Mt&&(r=wr,n=kr,i=Mr,yr<kt&&(r=xr,n=br,i=_r),(a=r*r+n*n+i*i)<Mt)?[NaN,NaN]:[Math.atan2(n,r)*Lt,Pt(i/Math.sqrt(a))*Lt]};var Nr={sphere:D,point:jr,lineStart:Ur,lineEnd:qr,polygonStart:function(){Nr.lineStart=Hr},polygonEnd:function(){Nr.lineStart=Ur}};function jr(t,e){t*=Ct;var r=Math.cos(e*=Ct);Vr(r*Math.cos(t),r*Math.sin(t),Math.sin(e))}function Vr(t,e,r){xr+=(t-xr)/++mr,br+=(e-br)/mr,_r+=(r-_r)/mr}function Ur(){var t,e,r;function n(n,i){n*=Ct;var a=Math.cos(i*=Ct),o=a*Math.cos(n),s=a*Math.sin(n),l=Math.sin(i),c=Math.atan2(Math.sqrt((c=e*l-r*s)*c+(c=r*o-t*l)*c+(c=t*s-e*o)*c),t*o+e*s+r*l);yr+=c,wr+=c*(t+(t=o)),kr+=c*(e+(e=s)),Mr+=c*(r+(r=l)),Vr(t,e,r)}Nr.point=function(i,a){i*=Ct;var o=Math.cos(a*=Ct);t=o*Math.cos(i),e=o*Math.sin(i),r=Math.sin(a),Nr.point=n,Vr(t,e,r)}}function qr(){Nr.point=jr}function Hr(){var t,e,r,n,i;function a(t,e){t*=Ct;var a=Math.cos(e*=Ct),o=a*Math.cos(t),s=a*Math.sin(t),l=Math.sin(e),c=n*l-i*s,u=i*o-r*l,f=r*s-n*o,h=Math.sqrt(c*c+u*u+f*f),p=r*o+n*s+i*l,d=h&&-It(p)/h,g=Math.atan2(h,p);Ar+=d*c,Tr+=d*u,Sr+=d*f,yr+=g,wr+=g*(r+(r=o)),kr+=g*(n+(n=s)),Mr+=g*(i+(i=l)),Vr(r,n,i)}Nr.point=function(o,s){t=o,e=s,Nr.point=a,o*=Ct;var l=Math.cos(s*=Ct);r=l*Math.cos(o),n=l*Math.sin(o),i=Math.sin(s),Vr(r,n,i)},Nr.lineEnd=function(){a(t,e),Nr.lineEnd=qr,Nr.point=jr}}function Gr(t,e){function r(r,n){return r=t(r,n),e(r[0],r[1])}return t.invert&&e.invert&&(r.invert=function(r,n){return(r=e.invert(r,n))&&t.invert(r[0],r[1])}),r}function Wr(){return!0}function Yr(t,e,r,n,i){var a=[],o=[];if(t.forEach(function(t){if(!((e=t.length-1)<=0)){var e,r=t[0],n=t[e];if(Fr(r,n)){i.lineStart();for(var s=0;s<e;++s)i.point((r=t[s])[0],r[1]);i.lineEnd()}else{var l=new Zr(r,t,null,!0),c=new Zr(r,null,l,!1);l.o=c,a.push(l),o.push(c),l=new Zr(n,t,null,!1),c=new Zr(n,null,l,!0),l.o=c,a.push(l),o.push(c)}}}),o.sort(e),Xr(a),Xr(o),a.length){for(var s=0,l=r,c=o.length;s<c;++s)o[s].e=l=!l;for(var u,f,h=a[0];;){for(var p=h,d=!0;p.v;)if((p=p.n)===h)return;u=p.z,i.lineStart();do{if(p.v=p.o.v=!0,p.e){if(d)for(s=0,c=u.length;s<c;++s)i.point((f=u[s])[0],f[1]);else n(p.x,p.n.x,1,i);p=p.n}else{if(d)for(s=(u=p.p.z).length-1;s>=0;--s)i.point((f=u[s])[0],f[1]);else n(p.x,p.p.x,-1,i);p=p.p}u=(p=p.o).z,d=!d}while(!p.v);i.lineEnd()}}}function Xr(t){if(e=t.length){for(var e,r,n=0,i=t[0];++n<e;)i.n=r=t[n],r.p=i,i=r;i.n=r=t[0],r.p=i}}function Zr(t,e,r,n){this.x=t,this.z=e,this.o=r,this.e=n,this.v=!1,this.n=this.p=null}function $r(e,r,n,i){return function(a,o){var s,l=r(o),c=a.invert(i[0],i[1]),u={point:f,lineStart:p,lineEnd:d,polygonStart:function(){u.point=b,u.lineStart=_,u.lineEnd=w,s=[],g=[]},polygonEnd:function(){u.point=f,u.lineStart=p,u.lineEnd=d,s=t.merge(s);var e=function(t,e){var r=t[0],n=t[1],i=[Math.sin(r),-Math.cos(r),0],a=0,o=0;Er.reset();for(var s=0,l=e.length;s<l;++s){var c=e[s],u=c.length;if(u)for(var f=c[0],h=f[0],p=f[1]/2+At/4,d=Math.sin(p),g=Math.cos(p),v=1;;){v===u&&(v=0);var m=(t=c[v])[0],y=t[1]/2+At/4,x=Math.sin(y),b=Math.cos(y),_=m-h,w=_>=0?1:-1,k=w*_,M=k>At,A=d*x;if(Er.add(Math.atan2(A*w*Math.sin(k),g*b+A*Math.cos(k))),a+=M?_+w*Tt:_,M^h>=r^m>=r){var T=Ir(zr(f),zr(t));Rr(T);var S=Ir(i,T);Rr(S);var E=(M^_>=0?-1:1)*Pt(S[2]);(n>E||n===E&&(T[0]||T[1]))&&(o+=M^_>=0?1:-1)}if(!v++)break;h=m,d=x,g=b,f=t}}return(a<-kt||a<kt&&Er<-kt)^1&o}(c,g);s.length?(x||(o.polygonStart(),x=!0),Yr(s,Qr,e,n,o)):e&&(x||(o.polygonStart(),x=!0),o.lineStart(),n(null,null,1,o),o.lineEnd()),x&&(o.polygonEnd(),x=!1),s=g=null},sphere:function(){o.polygonStart(),o.lineStart(),n(null,null,1,o),o.lineEnd(),o.polygonEnd()}};function f(t,r){var n=a(t,r);e(t=n[0],r=n[1])&&o.point(t,r)}function h(t,e){var r=a(t,e);l.point(r[0],r[1])}function p(){u.point=h,l.lineStart()}function d(){u.point=f,l.lineEnd()}var g,v,m=Kr(),y=r(m),x=!1;function b(t,e){v.push([t,e]);var r=a(t,e);y.point(r[0],r[1])}function _(){y.lineStart(),v=[]}function w(){b(v[0][0],v[0][1]),y.lineEnd();var t,e=y.clean(),r=m.buffer(),n=r.length;if(v.pop(),g.push(v),v=null,n)if(1&e){var i,a=-1;if((n=(t=r[0]).length-1)>0){for(x||(o.polygonStart(),x=!0),o.lineStart();++a<n;)o.point((i=t[a])[0],i[1]);o.lineEnd()}}else n>1&&2&e&&r.push(r.pop().concat(r.shift())),s.push(r.filter(Jr))}return u}}function Jr(t){return t.length>1}function Kr(){var t,e=[];return{lineStart:function(){e.push(t=[])},point:function(e,r){t.push([e,r])},lineEnd:D,buffer:function(){var r=e;return e=[],t=null,r},rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))}}}function Qr(t,e){return((t=t.x)[0]<0?t[1]-Et-kt:Et-t[1])-((e=e.x)[0]<0?e[1]-Et-kt:Et-e[1])}var tn=$r(Wr,function(t){var e,r=NaN,n=NaN,i=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(a,o){var s=a>0?At:-At,l=y(a-r);y(l-At)<kt?(t.point(r,n=(n+o)/2>0?Et:-Et),t.point(i,n),t.lineEnd(),t.lineStart(),t.point(s,n),t.point(a,n),e=0):i!==s&&l>=At&&(y(r-i)<kt&&(r-=i*kt),y(a-s)<kt&&(a-=s*kt),n=function(t,e,r,n){var i,a,o=Math.sin(t-r);return y(o)>kt?Math.atan((Math.sin(e)*(a=Math.cos(n))*Math.sin(r)-Math.sin(n)*(i=Math.cos(e))*Math.sin(t))/(i*a*o)):(e+n)/2}(r,n,a,o),t.point(i,n),t.lineEnd(),t.lineStart(),t.point(s,n),e=0),t.point(r=a,n=o),i=s},lineEnd:function(){t.lineEnd(),r=n=NaN},clean:function(){return 2-e}}},function(t,e,r,n){var i;if(null==t)i=r*Et,n.point(-At,i),n.point(0,i),n.point(At,i),n.point(At,0),n.point(At,-i),n.point(0,-i),n.point(-At,-i),n.point(-At,0),n.point(-At,i);else if(y(t[0]-e[0])>kt){var a=t[0]<e[0]?At:-At;i=r*a/2,n.point(-a,i),n.point(0,i),n.point(a,i)}else n.point(e[0],e[1])},[-At,-At/2]);function en(t,e,r,n){return function(i){var a,o=i.a,s=i.b,l=o.x,c=o.y,u=0,f=1,h=s.x-l,p=s.y-c;if(a=t-l,h||!(a>0)){if(a/=h,h<0){if(a<u)return;a<f&&(f=a)}else if(h>0){if(a>f)return;a>u&&(u=a)}if(a=r-l,h||!(a<0)){if(a/=h,h<0){if(a>f)return;a>u&&(u=a)}else if(h>0){if(a<u)return;a<f&&(f=a)}if(a=e-c,p||!(a>0)){if(a/=p,p<0){if(a<u)return;a<f&&(f=a)}else if(p>0){if(a>f)return;a>u&&(u=a)}if(a=n-c,p||!(a<0)){if(a/=p,p<0){if(a>f)return;a>u&&(u=a)}else if(p>0){if(a<u)return;a<f&&(f=a)}return u>0&&(i.a={x:l+u*h,y:c+u*p}),f<1&&(i.b={x:l+f*h,y:c+f*p}),i}}}}}}var rn=1e9;function nn(e,r,n,i){return function(l){var c,u,f,h,p,d,g,v,m,y,x,b=l,_=Kr(),w=en(e,r,n,i),k={point:T,lineStart:function(){k.point=S,u&&u.push(f=[]);y=!0,m=!1,g=v=NaN},lineEnd:function(){c&&(S(h,p),d&&m&&_.rejoin(),c.push(_.buffer()));k.point=T,m&&l.lineEnd()},polygonStart:function(){l=_,c=[],u=[],x=!0},polygonEnd:function(){l=b,c=t.merge(c);var r=function(t){for(var e=0,r=u.length,n=t[1],i=0;i<r;++i)for(var a,o=1,s=u[i],l=s.length,c=s[0];o<l;++o)a=s[o],c[1]<=n?a[1]>n&&Ot(c,a,t)>0&&++e:a[1]<=n&&Ot(c,a,t)<0&&--e,c=a;return 0!==e}([e,i]),n=x&&r,a=c.length;(n||a)&&(l.polygonStart(),n&&(l.lineStart(),M(null,null,1,l),l.lineEnd()),a&&Yr(c,o,r,M,l),l.polygonEnd()),c=u=f=null}};function M(t,o,l,c){var u=0,f=0;if(null==t||(u=a(t,l))!==(f=a(o,l))||s(t,o)<0^l>0)do{c.point(0===u||3===u?e:n,u>1?i:r)}while((u=(u+l+4)%4)!==f);else c.point(o[0],o[1])}function A(t,a){return e<=t&&t<=n&&r<=a&&a<=i}function T(t,e){A(t,e)&&l.point(t,e)}function S(t,e){var r=A(t=Math.max(-rn,Math.min(rn,t)),e=Math.max(-rn,Math.min(rn,e)));if(u&&f.push([t,e]),y)h=t,p=e,d=r,y=!1,r&&(l.lineStart(),l.point(t,e));else if(r&&m)l.point(t,e);else{var n={a:{x:g,y:v},b:{x:t,y:e}};w(n)?(m||(l.lineStart(),l.point(n.a.x,n.a.y)),l.point(n.b.x,n.b.y),r||l.lineEnd(),x=!1):r&&(l.lineStart(),l.point(t,e),x=!1)}g=t,v=e,m=r}return k};function a(t,i){return y(t[0]-e)<kt?i>0?0:3:y(t[0]-n)<kt?i>0?2:1:y(t[1]-r)<kt?i>0?1:0:i>0?3:2}function o(t,e){return s(t.x,e.x)}function s(t,e){var r=a(t,1),n=a(e,1);return r!==n?r-n:0===r?e[1]-t[1]:1===r?t[0]-e[0]:2===r?t[1]-e[1]:e[0]-t[0]}}function an(t){var e=0,r=At/3,n=Cn(t),i=n(e,r);return i.parallels=function(t){return arguments.length?n(e=t[0]*At/180,r=t[1]*At/180):[e/At*180,r/At*180]},i}function on(t,e){var r=Math.sin(t),n=(r+Math.sin(e))/2,i=1+r*(2*n-r),a=Math.sqrt(i)/n;function o(t,e){var r=Math.sqrt(i-2*n*Math.sin(e))/n;return[r*Math.sin(t*=n),a-r*Math.cos(t)]}return o.invert=function(t,e){var r=a-e;return[Math.atan2(t,r)/n,Pt((i-(t*t+r*r)*n*n)/(2*n))]},o}t.geo.clipExtent=function(){var t,e,r,n,i,a,o={stream:function(t){return i&&(i.valid=!1),(i=a(t)).valid=!0,i},extent:function(s){return arguments.length?(a=nn(t=+s[0][0],e=+s[0][1],r=+s[1][0],n=+s[1][1]),i&&(i.valid=!1,i=null),o):[[t,e],[r,n]]}};return o.extent([[0,0],[960,500]])},(t.geo.conicEqualArea=function(){return an(on)}).raw=on,t.geo.albers=function(){return t.geo.conicEqualArea().rotate([96,0]).center([-.6,38.7]).parallels([29.5,45.5]).scale(1070)},t.geo.albersUsa=function(){var e,r,n,i,a=t.geo.albers(),o=t.geo.conicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),s=t.geo.conicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),l={point:function(t,r){e=[t,r]}};function c(t){var a=t[0],o=t[1];return e=null,r(a,o),e||(n(a,o),e)||i(a,o),e}return c.invert=function(t){var e=a.scale(),r=a.translate(),n=(t[0]-r[0])/e,i=(t[1]-r[1])/e;return(i>=.12&&i<.234&&n>=-.425&&n<-.214?o:i>=.166&&i<.234&&n>=-.214&&n<-.115?s:a).invert(t)},c.stream=function(t){var e=a.stream(t),r=o.stream(t),n=s.stream(t);return{point:function(t,i){e.point(t,i),r.point(t,i),n.point(t,i)},sphere:function(){e.sphere(),r.sphere(),n.sphere()},lineStart:function(){e.lineStart(),r.lineStart(),n.lineStart()},lineEnd:function(){e.lineEnd(),r.lineEnd(),n.lineEnd()},polygonStart:function(){e.polygonStart(),r.polygonStart(),n.polygonStart()},polygonEnd:function(){e.polygonEnd(),r.polygonEnd(),n.polygonEnd()}}},c.precision=function(t){return arguments.length?(a.precision(t),o.precision(t),s.precision(t),c):a.precision()},c.scale=function(t){return arguments.length?(a.scale(t),o.scale(.35*t),s.scale(t),c.translate(a.translate())):a.scale()},c.translate=function(t){if(!arguments.length)return a.translate();var e=a.scale(),u=+t[0],f=+t[1];return r=a.translate(t).clipExtent([[u-.455*e,f-.238*e],[u+.455*e,f+.238*e]]).stream(l).point,n=o.translate([u-.307*e,f+.201*e]).clipExtent([[u-.425*e+kt,f+.12*e+kt],[u-.214*e-kt,f+.234*e-kt]]).stream(l).point,i=s.translate([u-.205*e,f+.212*e]).clipExtent([[u-.214*e+kt,f+.166*e+kt],[u-.115*e-kt,f+.234*e-kt]]).stream(l).point,c},c.scale(1070)};var sn,ln,cn,un,fn,hn,pn={point:D,lineStart:D,lineEnd:D,polygonStart:function(){ln=0,pn.lineStart=dn},polygonEnd:function(){pn.lineStart=pn.lineEnd=pn.point=D,sn+=y(ln/2)}};function dn(){var t,e,r,n;function i(t,e){ln+=n*t-r*e,r=t,n=e}pn.point=function(a,o){pn.point=i,t=r=a,e=n=o},pn.lineEnd=function(){i(t,e)}}var gn={point:function(t,e){t<cn&&(cn=t);t>fn&&(fn=t);e<un&&(un=e);e>hn&&(hn=e)},lineStart:D,lineEnd:D,polygonStart:D,polygonEnd:D};function vn(){var t=mn(4.5),e=[],r={point:n,lineStart:function(){r.point=i},lineEnd:o,polygonStart:function(){r.lineEnd=s},polygonEnd:function(){r.lineEnd=o,r.point=n},pointRadius:function(e){return t=mn(e),r},result:function(){if(e.length){var t=e.join(\"\");return e=[],t}}};function n(r,n){e.push(\"M\",r,\",\",n,t)}function i(t,n){e.push(\"M\",t,\",\",n),r.point=a}function a(t,r){e.push(\"L\",t,\",\",r)}function o(){r.point=n}function s(){e.push(\"Z\")}return r}function mn(t){return\"m0,\"+t+\"a\"+t+\",\"+t+\" 0 1,1 0,\"+-2*t+\"a\"+t+\",\"+t+\" 0 1,1 0,\"+2*t+\"z\"}var yn,xn={point:bn,lineStart:_n,lineEnd:wn,polygonStart:function(){xn.lineStart=kn},polygonEnd:function(){xn.point=bn,xn.lineStart=_n,xn.lineEnd=wn}};function bn(t,e){xr+=t,br+=e,++_r}function _n(){var t,e;function r(r,n){var i=r-t,a=n-e,o=Math.sqrt(i*i+a*a);wr+=o*(t+r)/2,kr+=o*(e+n)/2,Mr+=o,bn(t=r,e=n)}xn.point=function(n,i){xn.point=r,bn(t=n,e=i)}}function wn(){xn.point=bn}function kn(){var t,e,r,n;function i(t,e){var i=t-r,a=e-n,o=Math.sqrt(i*i+a*a);wr+=o*(r+t)/2,kr+=o*(n+e)/2,Mr+=o,Ar+=(o=n*t-r*e)*(r+t),Tr+=o*(n+e),Sr+=3*o,bn(r=t,n=e)}xn.point=function(a,o){xn.point=i,bn(t=r=a,e=n=o)},xn.lineEnd=function(){i(t,e)}}function Mn(t){var e=4.5,r={point:n,lineStart:function(){r.point=i},lineEnd:o,polygonStart:function(){r.lineEnd=s},polygonEnd:function(){r.lineEnd=o,r.point=n},pointRadius:function(t){return e=t,r},result:D};function n(r,n){t.moveTo(r+e,n),t.arc(r,n,e,0,Tt)}function i(e,n){t.moveTo(e,n),r.point=a}function a(e,r){t.lineTo(e,r)}function o(){r.point=n}function s(){t.closePath()}return r}function An(t){var e=.5,r=Math.cos(30*Ct),n=16;function i(e){return(n?function(e){var r,i,o,s,l,c,u,f,h,p,d,g,v={point:m,lineStart:y,lineEnd:b,polygonStart:function(){e.polygonStart(),v.lineStart=_},polygonEnd:function(){e.polygonEnd(),v.lineStart=y}};function m(r,n){r=t(r,n),e.point(r[0],r[1])}function y(){f=NaN,v.point=x,e.lineStart()}function x(r,i){var o=zr([r,i]),s=t(r,i);a(f,h,u,p,d,g,f=s[0],h=s[1],u=r,p=o[0],d=o[1],g=o[2],n,e),e.point(f,h)}function b(){v.point=m,e.lineEnd()}function _(){y(),v.point=w,v.lineEnd=k}function w(t,e){x(r=t,e),i=f,o=h,s=p,l=d,c=g,v.point=x}function k(){a(f,h,u,p,d,g,i,o,r,s,l,c,n,e),v.lineEnd=b,b()}return v}:function(e){return Sn(e,function(r,n){r=t(r,n),e.point(r[0],r[1])})})(e)}function a(n,i,o,s,l,c,u,f,h,p,d,g,v,m){var x=u-n,b=f-i,_=x*x+b*b;if(_>4*e&&v--){var w=s+p,k=l+d,M=c+g,A=Math.sqrt(w*w+k*k+M*M),T=Math.asin(M/=A),S=y(y(M)-1)<kt||y(o-h)<kt?(o+h)/2:Math.atan2(k,w),E=t(S,T),C=E[0],L=E[1],z=C-n,O=L-i,I=b*z-x*O;(I*I/_>e||y((x*z+b*O)/_-.5)>.3||s*p+l*d+c*g<r)&&(a(n,i,o,s,l,c,C,L,S,w/=A,k/=A,M,v,m),m.point(C,L),a(C,L,S,w,k,M,u,f,h,p,d,g,v,m))}}return i.precision=function(t){return arguments.length?(n=(e=t*t)>0&&16,i):Math.sqrt(e)},i}function Tn(t){this.stream=t}function Sn(t,e){return{point:e,sphere:function(){t.sphere()},lineStart:function(){t.lineStart()},lineEnd:function(){t.lineEnd()},polygonStart:function(){t.polygonStart()},polygonEnd:function(){t.polygonEnd()}}}function En(t){return Cn(function(){return t})()}function Cn(e){var r,n,i,a,o,s,l=An(function(t,e){return[(t=r(t,e))[0]*c+a,o-t[1]*c]}),c=150,u=480,f=250,h=0,p=0,d=0,g=0,v=0,m=tn,x=z,b=null,_=null;function w(t){return[(t=i(t[0]*Ct,t[1]*Ct))[0]*c+a,o-t[1]*c]}function k(t){return(t=i.invert((t[0]-a)/c,(o-t[1])/c))&&[t[0]*Lt,t[1]*Lt]}function M(){i=Gr(n=In(d,g,v),r);var t=r(h,p);return a=u-t[0]*c,o=f+t[1]*c,A()}function A(){return s&&(s.valid=!1,s=null),w}return w.stream=function(t){return s&&(s.valid=!1),(s=Ln(m(n,l(x(t))))).valid=!0,s},w.clipAngle=function(t){return arguments.length?(m=null==t?(b=t,tn):function(t){var e=Math.cos(t),r=e>0,n=y(e)>kt;return $r(i,function(t){var e,s,l,c,u;return{lineStart:function(){c=l=!1,u=1},point:function(f,h){var p,d=[f,h],g=i(f,h),v=r?g?0:o(f,h):g?o(f+(f<0?At:-At),h):0;if(!e&&(c=l=g)&&t.lineStart(),g!==l&&(p=a(e,d),(Fr(e,p)||Fr(d,p))&&(d[0]+=kt,d[1]+=kt,g=i(d[0],d[1]))),g!==l)u=0,g?(t.lineStart(),p=a(d,e),t.point(p[0],p[1])):(p=a(e,d),t.point(p[0],p[1]),t.lineEnd()),e=p;else if(n&&e&&r^g){var m;v&s||!(m=a(d,e,!0))||(u=0,r?(t.lineStart(),t.point(m[0][0],m[0][1]),t.point(m[1][0],m[1][1]),t.lineEnd()):(t.point(m[1][0],m[1][1]),t.lineEnd(),t.lineStart(),t.point(m[0][0],m[0][1])))}!g||e&&Fr(e,d)||t.point(d[0],d[1]),e=d,l=g,s=v},lineEnd:function(){l&&t.lineEnd(),e=null},clean:function(){return u|(c&&l)<<1}}},Bn(t,6*Ct),r?[0,-t]:[-At,t-At]);function i(t,r){return Math.cos(t)*Math.cos(r)>e}function a(t,r,n){var i=[1,0,0],a=Ir(zr(t),zr(r)),o=Or(a,a),s=a[0],l=o-s*s;if(!l)return!n&&t;var c=e*o/l,u=-e*s/l,f=Ir(i,a),h=Dr(i,c);Pr(h,Dr(a,u));var p=f,d=Or(h,p),g=Or(p,p),v=d*d-g*(Or(h,h)-1);if(!(v<0)){var m=Math.sqrt(v),x=Dr(p,(-d-m)/g);if(Pr(x,h),x=Br(x),!n)return x;var b,_=t[0],w=r[0],k=t[1],M=r[1];w<_&&(b=_,_=w,w=b);var A=w-_,T=y(A-At)<kt;if(!T&&M<k&&(b=k,k=M,M=b),T||A<kt?T?k+M>0^x[1]<(y(x[0]-_)<kt?k:M):k<=x[1]&&x[1]<=M:A>At^(_<=x[0]&&x[0]<=w)){var S=Dr(p,(-d+m)/g);return Pr(S,h),[x,Br(S)]}}}function o(e,n){var i=r?t:At-t,a=0;return e<-i?a|=1:e>i&&(a|=2),n<-i?a|=4:n>i&&(a|=8),a}}((b=+t)*Ct),A()):b},w.clipExtent=function(t){return arguments.length?(_=t,x=t?nn(t[0][0],t[0][1],t[1][0],t[1][1]):z,A()):_},w.scale=function(t){return arguments.length?(c=+t,M()):c},w.translate=function(t){return arguments.length?(u=+t[0],f=+t[1],M()):[u,f]},w.center=function(t){return arguments.length?(h=t[0]%360*Ct,p=t[1]%360*Ct,M()):[h*Lt,p*Lt]},w.rotate=function(t){return arguments.length?(d=t[0]%360*Ct,g=t[1]%360*Ct,v=t.length>2?t[2]%360*Ct:0,M()):[d*Lt,g*Lt,v*Lt]},t.rebind(w,l,\"precision\"),function(){return r=e.apply(this,arguments),w.invert=r.invert&&k,M()}}function Ln(t){return Sn(t,function(e,r){t.point(e*Ct,r*Ct)})}function zn(t,e){return[t,e]}function On(t,e){return[t>At?t-Tt:t<-At?t+Tt:t,e]}function In(t,e,r){return t?e||r?Gr(Dn(t),Rn(e,r)):Dn(t):e||r?Rn(e,r):On}function Pn(t){return function(e,r){return[(e+=t)>At?e-Tt:e<-At?e+Tt:e,r]}}function Dn(t){var e=Pn(t);return e.invert=Pn(-t),e}function Rn(t,e){var r=Math.cos(t),n=Math.sin(t),i=Math.cos(e),a=Math.sin(e);function o(t,e){var o=Math.cos(e),s=Math.cos(t)*o,l=Math.sin(t)*o,c=Math.sin(e),u=c*r+s*n;return[Math.atan2(l*i-u*a,s*r-c*n),Pt(u*i+l*a)]}return o.invert=function(t,e){var o=Math.cos(e),s=Math.cos(t)*o,l=Math.sin(t)*o,c=Math.sin(e),u=c*i-l*a;return[Math.atan2(l*i+c*a,s*r+u*n),Pt(u*r-s*n)]},o}function Bn(t,e){var r=Math.cos(t),n=Math.sin(t);return function(i,a,o,s){var l=o*e;null!=i?(i=Fn(r,i),a=Fn(r,a),(o>0?i<a:i>a)&&(i+=o*Tt)):(i=t+o*Tt,a=t-.5*l);for(var c,u=i;o>0?u>a:u<a;u-=l)s.point((c=Br([r,-n*Math.cos(u),-n*Math.sin(u)]))[0],c[1])}}function Fn(t,e){var r=zr(e);r[0]-=t,Rr(r);var n=It(-r[1]);return((-r[2]<0?-n:n)+2*Math.PI-kt)%(2*Math.PI)}function Nn(e,r,n){var i=t.range(e,r-kt,n).concat(r);return function(t){return i.map(function(e){return[t,e]})}}function jn(e,r,n){var i=t.range(e,r-kt,n).concat(r);return function(t){return i.map(function(e){return[e,t]})}}function Vn(t){return t.source}function Un(t){return t.target}t.geo.path=function(){var e,r,n,i,a,o=4.5;function s(e){return e&&(\"function\"==typeof o&&i.pointRadius(+o.apply(this,arguments)),a&&a.valid||(a=n(i)),t.geo.stream(e,a)),i.result()}function l(){return a=null,s}return s.area=function(e){return sn=0,t.geo.stream(e,n(pn)),sn},s.centroid=function(e){return xr=br=_r=wr=kr=Mr=Ar=Tr=Sr=0,t.geo.stream(e,n(xn)),Sr?[Ar/Sr,Tr/Sr]:Mr?[wr/Mr,kr/Mr]:_r?[xr/_r,br/_r]:[NaN,NaN]},s.bounds=function(e){return fn=hn=-(cn=un=1/0),t.geo.stream(e,n(gn)),[[cn,un],[fn,hn]]},s.projection=function(t){return arguments.length?(n=(e=t)?t.stream||(r=t,i=An(function(t,e){return r([t*Lt,e*Lt])}),function(t){return Ln(i(t))}):z,l()):e;var r,i},s.context=function(t){return arguments.length?(i=null==(r=t)?new vn:new Mn(t),\"function\"!=typeof o&&i.pointRadius(o),l()):r},s.pointRadius=function(t){return arguments.length?(o=\"function\"==typeof t?t:(i.pointRadius(+t),+t),s):o},s.projection(t.geo.albersUsa()).context(null)},t.geo.transform=function(t){return{stream:function(e){var r=new Tn(e);for(var n in t)r[n]=t[n];return r}}},Tn.prototype={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()}},t.geo.projection=En,t.geo.projectionMutator=Cn,(t.geo.equirectangular=function(){return En(zn)}).raw=zn.invert=zn,t.geo.rotation=function(t){function e(e){return(e=t(e[0]*Ct,e[1]*Ct))[0]*=Lt,e[1]*=Lt,e}return t=In(t[0]%360*Ct,t[1]*Ct,t.length>2?t[2]*Ct:0),e.invert=function(e){return(e=t.invert(e[0]*Ct,e[1]*Ct))[0]*=Lt,e[1]*=Lt,e},e},On.invert=zn,t.geo.circle=function(){var t,e,r=[0,0],n=6;function i(){var t=\"function\"==typeof r?r.apply(this,arguments):r,n=In(-t[0]*Ct,-t[1]*Ct,0).invert,i=[];return e(null,null,1,{point:function(t,e){i.push(t=n(t,e)),t[0]*=Lt,t[1]*=Lt}}),{type:\"Polygon\",coordinates:[i]}}return i.origin=function(t){return arguments.length?(r=t,i):r},i.angle=function(r){return arguments.length?(e=Bn((t=+r)*Ct,n*Ct),i):t},i.precision=function(r){return arguments.length?(e=Bn(t*Ct,(n=+r)*Ct),i):n},i.angle(90)},t.geo.distance=function(t,e){var r,n=(e[0]-t[0])*Ct,i=t[1]*Ct,a=e[1]*Ct,o=Math.sin(n),s=Math.cos(n),l=Math.sin(i),c=Math.cos(i),u=Math.sin(a),f=Math.cos(a);return Math.atan2(Math.sqrt((r=f*o)*r+(r=c*u-l*f*s)*r),l*u+c*f*s)},t.geo.graticule=function(){var e,r,n,i,a,o,s,l,c,u,f,h,p=10,d=p,g=90,v=360,m=2.5;function x(){return{type:\"MultiLineString\",coordinates:b()}}function b(){return t.range(Math.ceil(i/g)*g,n,g).map(f).concat(t.range(Math.ceil(l/v)*v,s,v).map(h)).concat(t.range(Math.ceil(r/p)*p,e,p).filter(function(t){return y(t%g)>kt}).map(c)).concat(t.range(Math.ceil(o/d)*d,a,d).filter(function(t){return y(t%v)>kt}).map(u))}return x.lines=function(){return b().map(function(t){return{type:\"LineString\",coordinates:t}})},x.outline=function(){return{type:\"Polygon\",coordinates:[f(i).concat(h(s).slice(1),f(n).reverse().slice(1),h(l).reverse().slice(1))]}},x.extent=function(t){return arguments.length?x.majorExtent(t).minorExtent(t):x.minorExtent()},x.majorExtent=function(t){return arguments.length?(i=+t[0][0],n=+t[1][0],l=+t[0][1],s=+t[1][1],i>n&&(t=i,i=n,n=t),l>s&&(t=l,l=s,s=t),x.precision(m)):[[i,l],[n,s]]},x.minorExtent=function(t){return arguments.length?(r=+t[0][0],e=+t[1][0],o=+t[0][1],a=+t[1][1],r>e&&(t=r,r=e,e=t),o>a&&(t=o,o=a,a=t),x.precision(m)):[[r,o],[e,a]]},x.step=function(t){return arguments.length?x.majorStep(t).minorStep(t):x.minorStep()},x.majorStep=function(t){return arguments.length?(g=+t[0],v=+t[1],x):[g,v]},x.minorStep=function(t){return arguments.length?(p=+t[0],d=+t[1],x):[p,d]},x.precision=function(t){return arguments.length?(m=+t,c=Nn(o,a,90),u=jn(r,e,m),f=Nn(l,s,90),h=jn(i,n,m),x):m},x.majorExtent([[-180,-90+kt],[180,90-kt]]).minorExtent([[-180,-80-kt],[180,80+kt]])},t.geo.greatArc=function(){var e,r,n=Vn,i=Un;function a(){return{type:\"LineString\",coordinates:[e||n.apply(this,arguments),r||i.apply(this,arguments)]}}return a.distance=function(){return t.geo.distance(e||n.apply(this,arguments),r||i.apply(this,arguments))},a.source=function(t){return arguments.length?(n=t,e=\"function\"==typeof t?null:t,a):n},a.target=function(t){return arguments.length?(i=t,r=\"function\"==typeof t?null:t,a):i},a.precision=function(){return arguments.length?a:0},a},t.geo.interpolate=function(t,e){return r=t[0]*Ct,n=t[1]*Ct,i=e[0]*Ct,a=e[1]*Ct,o=Math.cos(n),s=Math.sin(n),l=Math.cos(a),c=Math.sin(a),u=o*Math.cos(r),f=o*Math.sin(r),h=l*Math.cos(i),p=l*Math.sin(i),d=2*Math.asin(Math.sqrt(Rt(a-n)+o*l*Rt(i-r))),g=1/Math.sin(d),(v=d?function(t){var e=Math.sin(t*=d)*g,r=Math.sin(d-t)*g,n=r*u+e*h,i=r*f+e*p,a=r*s+e*c;return[Math.atan2(i,n)*Lt,Math.atan2(a,Math.sqrt(n*n+i*i))*Lt]}:function(){return[r*Lt,n*Lt]}).distance=d,v;var r,n,i,a,o,s,l,c,u,f,h,p,d,g,v},t.geo.length=function(e){return yn=0,t.geo.stream(e,qn),yn};var qn={sphere:D,point:D,lineStart:function(){var t,e,r;function n(n,i){var a=Math.sin(i*=Ct),o=Math.cos(i),s=y((n*=Ct)-t),l=Math.cos(s);yn+=Math.atan2(Math.sqrt((s=o*Math.sin(s))*s+(s=r*a-e*o*l)*s),e*a+r*o*l),t=n,e=a,r=o}qn.point=function(i,a){t=i*Ct,e=Math.sin(a*=Ct),r=Math.cos(a),qn.point=n},qn.lineEnd=function(){qn.point=qn.lineEnd=D}},lineEnd:D,polygonStart:D,polygonEnd:D};function Hn(t,e){function r(e,r){var n=Math.cos(e),i=Math.cos(r),a=t(n*i);return[a*i*Math.sin(e),a*Math.sin(r)]}return r.invert=function(t,r){var n=Math.sqrt(t*t+r*r),i=e(n),a=Math.sin(i),o=Math.cos(i);return[Math.atan2(t*a,n*o),Math.asin(n&&r*a/n)]},r}var Gn=Hn(function(t){return Math.sqrt(2/(1+t))},function(t){return 2*Math.asin(t/2)});(t.geo.azimuthalEqualArea=function(){return En(Gn)}).raw=Gn;var Wn=Hn(function(t){var e=Math.acos(t);return e&&e/Math.sin(e)},z);function Yn(t,e){var r=Math.cos(t),n=function(t){return Math.tan(At/4+t/2)},i=t===e?Math.sin(t):Math.log(r/Math.cos(e))/Math.log(n(e)/n(t)),a=r*Math.pow(n(t),i)/i;if(!i)return $n;function o(t,e){a>0?e<-Et+kt&&(e=-Et+kt):e>Et-kt&&(e=Et-kt);var r=a/Math.pow(n(e),i);return[r*Math.sin(i*t),a-r*Math.cos(i*t)]}return o.invert=function(t,e){var r=a-e,n=zt(i)*Math.sqrt(t*t+r*r);return[Math.atan2(t,r)/i,2*Math.atan(Math.pow(a/n,1/i))-Et]},o}function Xn(t,e){var r=Math.cos(t),n=t===e?Math.sin(t):(r-Math.cos(e))/(e-t),i=r/n+t;if(y(n)<kt)return zn;function a(t,e){var r=i-e;return[r*Math.sin(n*t),i-r*Math.cos(n*t)]}return a.invert=function(t,e){var r=i-e;return[Math.atan2(t,r)/n,i-zt(n)*Math.sqrt(t*t+r*r)]},a}(t.geo.azimuthalEquidistant=function(){return En(Wn)}).raw=Wn,(t.geo.conicConformal=function(){return an(Yn)}).raw=Yn,(t.geo.conicEquidistant=function(){return an(Xn)}).raw=Xn;var Zn=Hn(function(t){return 1/t},Math.atan);function $n(t,e){return[t,Math.log(Math.tan(At/4+e/2))]}function Jn(t){var e,r=En(t),n=r.scale,i=r.translate,a=r.clipExtent;return r.scale=function(){var t=n.apply(r,arguments);return t===r?e?r.clipExtent(null):r:t},r.translate=function(){var t=i.apply(r,arguments);return t===r?e?r.clipExtent(null):r:t},r.clipExtent=function(t){var o=a.apply(r,arguments);if(o===r){if(e=null==t){var s=At*n(),l=i();a([[l[0]-s,l[1]-s],[l[0]+s,l[1]+s]])}}else e&&(o=null);return o},r.clipExtent(null)}(t.geo.gnomonic=function(){return En(Zn)}).raw=Zn,$n.invert=function(t,e){return[t,2*Math.atan(Math.exp(e))-Et]},(t.geo.mercator=function(){return Jn($n)}).raw=$n;var Kn=Hn(function(){return 1},Math.asin);(t.geo.orthographic=function(){return En(Kn)}).raw=Kn;var Qn=Hn(function(t){return 1/(1+t)},function(t){return 2*Math.atan(t)});function ti(t,e){return[Math.log(Math.tan(At/4+e/2)),-t]}function ei(t){return t[0]}function ri(t){return t[1]}function ni(t){for(var e=t.length,r=[0,1],n=2,i=2;i<e;i++){for(;n>1&&Ot(t[r[n-2]],t[r[n-1]],t[i])<=0;)--n;r[n++]=i}return r.slice(0,n)}function ii(t,e){return t[0]-e[0]||t[1]-e[1]}(t.geo.stereographic=function(){return En(Qn)}).raw=Qn,ti.invert=function(t,e){return[-e,2*Math.atan(Math.exp(t))-Et]},(t.geo.transverseMercator=function(){var t=Jn(ti),e=t.center,r=t.rotate;return t.center=function(t){return t?e([-t[1],t[0]]):[(t=e())[1],-t[0]]},t.rotate=function(t){return t?r([t[0],t[1],t.length>2?t[2]+90:90]):[(t=r())[0],t[1],t[2]-90]},r([0,0,90])}).raw=ti,t.geom={},t.geom.hull=function(t){var e=ei,r=ri;if(arguments.length)return n(t);function n(t){if(t.length<3)return[];var n,i=ve(e),a=ve(r),o=t.length,s=[],l=[];for(n=0;n<o;n++)s.push([+i.call(this,t[n],n),+a.call(this,t[n],n),n]);for(s.sort(ii),n=0;n<o;n++)l.push([s[n][0],-s[n][1]]);var c=ni(s),u=ni(l),f=u[0]===c[0],h=u[u.length-1]===c[c.length-1],p=[];for(n=c.length-1;n>=0;--n)p.push(t[s[c[n]][2]]);for(n=+f;n<u.length-h;++n)p.push(t[s[u[n]][2]]);return p}return n.x=function(t){return arguments.length?(e=t,n):e},n.y=function(t){return arguments.length?(r=t,n):r},n},t.geom.polygon=function(t){return U(t,ai),t};var ai=t.geom.polygon.prototype=[];function oi(t,e,r){return(r[0]-e[0])*(t[1]-e[1])<(r[1]-e[1])*(t[0]-e[0])}function si(t,e,r,n){var i=t[0],a=r[0],o=e[0]-i,s=n[0]-a,l=t[1],c=r[1],u=e[1]-l,f=n[1]-c,h=(s*(l-c)-f*(i-a))/(f*o-s*u);return[i+h*o,l+h*u]}function li(t){var e=t[0],r=t[t.length-1];return!(e[0]-r[0]||e[1]-r[1])}ai.area=function(){for(var t,e=-1,r=this.length,n=this[r-1],i=0;++e<r;)t=n,n=this[e],i+=t[1]*n[0]-t[0]*n[1];return.5*i},ai.centroid=function(t){var e,r,n=-1,i=this.length,a=0,o=0,s=this[i-1];for(arguments.length||(t=-1/(6*this.area()));++n<i;)e=s,s=this[n],r=e[0]*s[1]-s[0]*e[1],a+=(e[0]+s[0])*r,o+=(e[1]+s[1])*r;return[a*t,o*t]},ai.clip=function(t){for(var e,r,n,i,a,o,s=li(t),l=-1,c=this.length-li(this),u=this[c-1];++l<c;){for(e=t.slice(),t.length=0,i=this[l],a=e[(n=e.length-s)-1],r=-1;++r<n;)oi(o=e[r],u,i)?(oi(a,u,i)||t.push(si(a,o,u,i)),t.push(o)):oi(a,u,i)&&t.push(si(a,o,u,i)),a=o;s&&t.push(t[0]),u=i}return t};var ci,ui,fi,hi,pi,di=[],gi=[];function vi(){Pi(this),this.edge=this.site=this.circle=null}function mi(t){var e=di.pop()||new vi;return e.site=t,e}function yi(t){Si(t),fi.remove(t),di.push(t),Pi(t)}function xi(t){var e=t.circle,r=e.x,n=e.cy,i={x:r,y:n},a=t.P,o=t.N,s=[t];yi(t);for(var l=a;l.circle&&y(r-l.circle.x)<kt&&y(n-l.circle.cy)<kt;)a=l.P,s.unshift(l),yi(l),l=a;s.unshift(l),Si(l);for(var c=o;c.circle&&y(r-c.circle.x)<kt&&y(n-c.circle.cy)<kt;)o=c.N,s.push(c),yi(c),c=o;s.push(c),Si(c);var u,f=s.length;for(u=1;u<f;++u)c=s[u],l=s[u-1],zi(c.edge,l.site,c.site,i);l=s[0],(c=s[f-1]).edge=Li(l.site,c.site,null,i),Ti(l),Ti(c)}function bi(t){for(var e,r,n,i,a=t.x,o=t.y,s=fi._;s;)if((n=_i(s,o)-a)>kt)s=s.L;else{if(!((i=a-wi(s,o))>kt)){n>-kt?(e=s.P,r=s):i>-kt?(e=s,r=s.N):e=r=s;break}if(!s.R){e=s;break}s=s.R}var l=mi(t);if(fi.insert(e,l),e||r){if(e===r)return Si(e),r=mi(e.site),fi.insert(l,r),l.edge=r.edge=Li(e.site,l.site),Ti(e),void Ti(r);if(r){Si(e),Si(r);var c=e.site,u=c.x,f=c.y,h=t.x-u,p=t.y-f,d=r.site,g=d.x-u,v=d.y-f,m=2*(h*v-p*g),y=h*h+p*p,x=g*g+v*v,b={x:(v*y-p*x)/m+u,y:(h*x-g*y)/m+f};zi(r.edge,c,d,b),l.edge=Li(c,t,null,b),r.edge=Li(t,d,null,b),Ti(e),Ti(r)}else l.edge=Li(e.site,l.site)}}function _i(t,e){var r=t.site,n=r.x,i=r.y,a=i-e;if(!a)return n;var o=t.P;if(!o)return-1/0;var s=(r=o.site).x,l=r.y,c=l-e;if(!c)return s;var u=s-n,f=1/a-1/c,h=u/c;return f?(-h+Math.sqrt(h*h-2*f*(u*u/(-2*c)-l+c/2+i-a/2)))/f+n:(n+s)/2}function wi(t,e){var r=t.N;if(r)return _i(r,e);var n=t.site;return n.y===e?n.x:1/0}function ki(t){this.site=t,this.edges=[]}function Mi(t,e){return e.angle-t.angle}function Ai(){Pi(this),this.x=this.y=this.arc=this.site=this.cy=null}function Ti(t){var e=t.P,r=t.N;if(e&&r){var n=e.site,i=t.site,a=r.site;if(n!==a){var o=i.x,s=i.y,l=n.x-o,c=n.y-s,u=a.x-o,f=2*(l*(v=a.y-s)-c*u);if(!(f>=-Mt)){var h=l*l+c*c,p=u*u+v*v,d=(v*h-c*p)/f,g=(l*p-u*h)/f,v=g+s,m=gi.pop()||new Ai;m.arc=t,m.site=i,m.x=d+o,m.y=v+Math.sqrt(d*d+g*g),m.cy=v,t.circle=m;for(var y=null,x=pi._;x;)if(m.y<x.y||m.y===x.y&&m.x<=x.x){if(!x.L){y=x.P;break}x=x.L}else{if(!x.R){y=x;break}x=x.R}pi.insert(y,m),y||(hi=m)}}}}function Si(t){var e=t.circle;e&&(e.P||(hi=e.N),pi.remove(e),gi.push(e),Pi(e),t.circle=null)}function Ei(t,e){var r=t.b;if(r)return!0;var n,i,a=t.a,o=e[0][0],s=e[1][0],l=e[0][1],c=e[1][1],u=t.l,f=t.r,h=u.x,p=u.y,d=f.x,g=f.y,v=(h+d)/2,m=(p+g)/2;if(g===p){if(v<o||v>=s)return;if(h>d){if(a){if(a.y>=c)return}else a={x:v,y:l};r={x:v,y:c}}else{if(a){if(a.y<l)return}else a={x:v,y:c};r={x:v,y:l}}}else if(i=m-(n=(h-d)/(g-p))*v,n<-1||n>1)if(h>d){if(a){if(a.y>=c)return}else a={x:(l-i)/n,y:l};r={x:(c-i)/n,y:c}}else{if(a){if(a.y<l)return}else a={x:(c-i)/n,y:c};r={x:(l-i)/n,y:l}}else if(p<g){if(a){if(a.x>=s)return}else a={x:o,y:n*o+i};r={x:s,y:n*s+i}}else{if(a){if(a.x<o)return}else a={x:s,y:n*s+i};r={x:o,y:n*o+i}}return t.a=a,t.b=r,!0}function Ci(t,e){this.l=t,this.r=e,this.a=this.b=null}function Li(t,e,r,n){var i=new Ci(t,e);return ci.push(i),r&&zi(i,t,e,r),n&&zi(i,e,t,n),ui[t.i].edges.push(new Oi(i,t,e)),ui[e.i].edges.push(new Oi(i,e,t)),i}function zi(t,e,r,n){t.a||t.b?t.l===r?t.b=n:t.a=n:(t.a=n,t.l=e,t.r=r)}function Oi(t,e,r){var n=t.a,i=t.b;this.edge=t,this.site=e,this.angle=r?Math.atan2(r.y-e.y,r.x-e.x):t.l===e?Math.atan2(i.x-n.x,n.y-i.y):Math.atan2(n.x-i.x,i.y-n.y)}function Ii(){this._=null}function Pi(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function Di(t,e){var r=e,n=e.R,i=r.U;i?i.L===r?i.L=n:i.R=n:t._=n,n.U=i,r.U=n,r.R=n.L,r.R&&(r.R.U=r),n.L=r}function Ri(t,e){var r=e,n=e.L,i=r.U;i?i.L===r?i.L=n:i.R=n:t._=n,n.U=i,r.U=n,r.L=n.R,r.L&&(r.L.U=r),n.R=r}function Bi(t){for(;t.L;)t=t.L;return t}function Fi(t,e){var r,n,i,a=t.sort(Ni).pop();for(ci=[],ui=new Array(t.length),fi=new Ii,pi=new Ii;;)if(i=hi,a&&(!i||a.y<i.y||a.y===i.y&&a.x<i.x))a.x===r&&a.y===n||(ui[a.i]=new ki(a),bi(a),r=a.x,n=a.y),a=t.pop();else{if(!i)break;xi(i.arc)}e&&(function(t){for(var e,r=ci,n=en(t[0][0],t[0][1],t[1][0],t[1][1]),i=r.length;i--;)(!Ei(e=r[i],t)||!n(e)||y(e.a.x-e.b.x)<kt&&y(e.a.y-e.b.y)<kt)&&(e.a=e.b=null,r.splice(i,1))}(e),function(t){for(var e,r,n,i,a,o,s,l,c,u,f=t[0][0],h=t[1][0],p=t[0][1],d=t[1][1],g=ui,v=g.length;v--;)if((a=g[v])&&a.prepare())for(l=(s=a.edges).length,o=0;o<l;)n=(u=s[o].end()).x,i=u.y,e=(c=s[++o%l].start()).x,r=c.y,(y(n-e)>kt||y(i-r)>kt)&&(s.splice(o,0,new Oi((m=a.site,x=u,b=y(n-f)<kt&&d-i>kt?{x:f,y:y(e-f)<kt?r:d}:y(i-d)<kt&&h-n>kt?{x:y(r-d)<kt?e:h,y:d}:y(n-h)<kt&&i-p>kt?{x:h,y:y(e-h)<kt?r:p}:y(i-p)<kt&&n-f>kt?{x:y(r-p)<kt?e:f,y:p}:null,_=void 0,_=new Ci(m,null),_.a=x,_.b=b,ci.push(_),_),a.site,null)),++l);var m,x,b,_}(e));var o={cells:ui,edges:ci};return fi=pi=ci=ui=null,o}function Ni(t,e){return e.y-t.y||e.x-t.x}ki.prototype.prepare=function(){for(var t,e=this.edges,r=e.length;r--;)(t=e[r].edge).b&&t.a||e.splice(r,1);return e.sort(Mi),e.length},Oi.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}},Ii.prototype={insert:function(t,e){var r,n,i;if(t){if(e.P=t,e.N=t.N,t.N&&(t.N.P=e),t.N=e,t.R){for(t=t.R;t.L;)t=t.L;t.L=e}else t.R=e;r=t}else this._?(t=Bi(this._),e.P=null,e.N=t,t.P=t.L=e,r=t):(e.P=e.N=null,this._=e,r=null);for(e.L=e.R=null,e.U=r,e.C=!0,t=e;r&&r.C;)r===(n=r.U).L?(i=n.R)&&i.C?(r.C=i.C=!1,n.C=!0,t=n):(t===r.R&&(Di(this,r),r=(t=r).U),r.C=!1,n.C=!0,Ri(this,n)):(i=n.L)&&i.C?(r.C=i.C=!1,n.C=!0,t=n):(t===r.L&&(Ri(this,r),r=(t=r).U),r.C=!1,n.C=!0,Di(this,n)),r=t.U;this._.C=!1},remove:function(t){t.N&&(t.N.P=t.P),t.P&&(t.P.N=t.N),t.N=t.P=null;var e,r,n,i=t.U,a=t.L,o=t.R;if(r=a?o?Bi(o):a:o,i?i.L===t?i.L=r:i.R=r:this._=r,a&&o?(n=r.C,r.C=t.C,r.L=a,a.U=r,r!==o?(i=r.U,r.U=t.U,t=r.R,i.L=t,r.R=o,o.U=r):(r.U=i,i=r,t=r.R)):(n=t.C,t=r),t&&(t.U=i),!n)if(t&&t.C)t.C=!1;else{do{if(t===this._)break;if(t===i.L){if((e=i.R).C&&(e.C=!1,i.C=!0,Di(this,i),e=i.R),e.L&&e.L.C||e.R&&e.R.C){e.R&&e.R.C||(e.L.C=!1,e.C=!0,Ri(this,e),e=i.R),e.C=i.C,i.C=e.R.C=!1,Di(this,i),t=this._;break}}else if((e=i.L).C&&(e.C=!1,i.C=!0,Ri(this,i),e=i.L),e.L&&e.L.C||e.R&&e.R.C){e.L&&e.L.C||(e.R.C=!1,e.C=!0,Di(this,e),e=i.L),e.C=i.C,i.C=e.L.C=!1,Ri(this,i),t=this._;break}e.C=!0,t=i,i=i.U}while(!t.C);t&&(t.C=!1)}}},t.geom.voronoi=function(t){var e=ei,r=ri,n=e,i=r,a=ji;if(t)return o(t);function o(t){var e=new Array(t.length),r=a[0][0],n=a[0][1],i=a[1][0],o=a[1][1];return Fi(s(t),a).cells.forEach(function(a,s){var l=a.edges,c=a.site;(e[s]=l.length?l.map(function(t){var e=t.start();return[e.x,e.y]}):c.x>=r&&c.x<=i&&c.y>=n&&c.y<=o?[[r,o],[i,o],[i,n],[r,n]]:[]).point=t[s]}),e}function s(t){return t.map(function(t,e){return{x:Math.round(n(t,e)/kt)*kt,y:Math.round(i(t,e)/kt)*kt,i:e}})}return o.links=function(t){return Fi(s(t)).edges.filter(function(t){return t.l&&t.r}).map(function(e){return{source:t[e.l.i],target:t[e.r.i]}})},o.triangles=function(t){var e=[];return Fi(s(t)).cells.forEach(function(r,n){for(var i,a,o,s,l=r.site,c=r.edges.sort(Mi),u=-1,f=c.length,h=c[f-1].edge,p=h.l===l?h.r:h.l;++u<f;)h,i=p,p=(h=c[u].edge).l===l?h.r:h.l,n<i.i&&n<p.i&&(o=i,s=p,((a=l).x-s.x)*(o.y-a.y)-(a.x-o.x)*(s.y-a.y)<0)&&e.push([t[n],t[i.i],t[p.i]])}),e},o.x=function(t){return arguments.length?(n=ve(e=t),o):e},o.y=function(t){return arguments.length?(i=ve(r=t),o):r},o.clipExtent=function(t){return arguments.length?(a=null==t?ji:t,o):a===ji?null:a},o.size=function(t){return arguments.length?o.clipExtent(t&&[[0,0],t]):a===ji?null:a&&a[1]},o};var ji=[[-1e6,-1e6],[1e6,1e6]];function Vi(t){return t.x}function Ui(t){return t.y}function qi(e,r){e=t.rgb(e),r=t.rgb(r);var n=e.r,i=e.g,a=e.b,o=r.r-n,s=r.g-i,l=r.b-a;return function(t){return\"#\"+ce(Math.round(n+o*t))+ce(Math.round(i+s*t))+ce(Math.round(a+l*t))}}function Hi(t,e){var r,n={},i={};for(r in t)r in e?n[r]=Zi(t[r],e[r]):i[r]=t[r];for(r in e)r in t||(i[r]=e[r]);return function(t){for(r in n)i[r]=n[r](t);return i}}function Gi(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}function Wi(t,e){var r,n,i,a=Yi.lastIndex=Xi.lastIndex=0,o=-1,s=[],l=[];for(t+=\"\",e+=\"\";(r=Yi.exec(t))&&(n=Xi.exec(e));)(i=n.index)>a&&(i=e.slice(a,i),s[o]?s[o]+=i:s[++o]=i),(r=r[0])===(n=n[0])?s[o]?s[o]+=n:s[++o]=n:(s[++o]=null,l.push({i:o,x:Gi(r,n)})),a=Xi.lastIndex;return a<e.length&&(i=e.slice(a),s[o]?s[o]+=i:s[++o]=i),s.length<2?l[0]?(e=l[0].x,function(t){return e(t)+\"\"}):function(){return e}:(e=l.length,function(t){for(var r,n=0;n<e;++n)s[(r=l[n]).i]=r.x(t);return s.join(\"\")})}t.geom.delaunay=function(e){return t.geom.voronoi().triangles(e)},t.geom.quadtree=function(t,e,r,n,i){var a,o=ei,s=ri;if(a=arguments.length)return o=Vi,s=Ui,3===a&&(i=r,n=e,r=e=0),l(t);function l(t){var l,c,u,f,h,p,d,g,v,m=ve(o),x=ve(s);if(null!=e)p=e,d=r,g=n,v=i;else if(g=v=-(p=d=1/0),c=[],u=[],h=t.length,a)for(f=0;f<h;++f)(l=t[f]).x<p&&(p=l.x),l.y<d&&(d=l.y),l.x>g&&(g=l.x),l.y>v&&(v=l.y),c.push(l.x),u.push(l.y);else for(f=0;f<h;++f){var b=+m(l=t[f],f),_=+x(l,f);b<p&&(p=b),_<d&&(d=_),b>g&&(g=b),_>v&&(v=_),c.push(b),u.push(_)}var w=g-p,k=v-d;function M(t,e,r,n,i,a,o,s){if(!isNaN(r)&&!isNaN(n))if(t.leaf){var l=t.x,c=t.y;if(null!=l)if(y(l-r)+y(c-n)<.01)A(t,e,r,n,i,a,o,s);else{var u=t.point;t.x=t.y=t.point=null,A(t,u,l,c,i,a,o,s),A(t,e,r,n,i,a,o,s)}else t.x=r,t.y=n,t.point=e}else A(t,e,r,n,i,a,o,s)}function A(t,e,r,n,i,a,o,s){var l=.5*(i+o),c=.5*(a+s),u=r>=l,f=n>=c,h=f<<1|u;t.leaf=!1,u?i=l:o=l,f?a=c:s=c,M(t=t.nodes[h]||(t.nodes[h]={leaf:!0,nodes:[],point:null,x:null,y:null,add:function(t){M(T,t,+m(t,++f),+x(t,f),p,d,g,v)}}),e,r,n,i,a,o,s)}w>k?v=d+w:g=p+k;var T={leaf:!0,nodes:[],point:null,x:null,y:null,add:function(t){M(T,t,+m(t,++f),+x(t,f),p,d,g,v)}};if(T.visit=function(t){!function t(e,r,n,i,a,o){if(!e(r,n,i,a,o)){var s=.5*(n+a),l=.5*(i+o),c=r.nodes;c[0]&&t(e,c[0],n,i,s,l),c[1]&&t(e,c[1],s,i,a,l),c[2]&&t(e,c[2],n,l,s,o),c[3]&&t(e,c[3],s,l,a,o)}}(t,T,p,d,g,v)},T.find=function(t){return function(t,e,r,n,i,a,o){var s,l=1/0;return function t(c,u,f,h,p){if(!(u>a||f>o||h<n||p<i)){if(d=c.point){var d,g=e-c.x,v=r-c.y,m=g*g+v*v;if(m<l){var y=Math.sqrt(l=m);n=e-y,i=r-y,a=e+y,o=r+y,s=d}}for(var x=c.nodes,b=.5*(u+h),_=.5*(f+p),w=(r>=_)<<1|e>=b,k=w+4;w<k;++w)if(c=x[3&w])switch(3&w){case 0:t(c,u,f,b,_);break;case 1:t(c,b,f,h,_);break;case 2:t(c,u,_,b,p);break;case 3:t(c,b,_,h,p)}}}(t,n,i,a,o),s}(T,t[0],t[1],p,d,g,v)},f=-1,null==e){for(;++f<h;)M(T,t[f],c[f],u[f],p,d,g,v);--f}else t.forEach(T.add);return c=u=t=l=null,T}return l.x=function(t){return arguments.length?(o=t,l):o},l.y=function(t){return arguments.length?(s=t,l):s},l.extent=function(t){return arguments.length?(null==t?e=r=n=i=null:(e=+t[0][0],r=+t[0][1],n=+t[1][0],i=+t[1][1]),l):null==e?null:[[e,r],[n,i]]},l.size=function(t){return arguments.length?(null==t?e=r=n=i=null:(e=r=0,n=+t[0],i=+t[1]),l):null==e?null:[n-e,i-r]},l},t.interpolateRgb=qi,t.interpolateObject=Hi,t.interpolateNumber=Gi,t.interpolateString=Wi;var Yi=/[-+]?(?:\\d+\\.?\\d*|\\.?\\d+)(?:[eE][-+]?\\d+)?/g,Xi=new RegExp(Yi.source,\"g\");function Zi(e,r){for(var n,i=t.interpolators.length;--i>=0&&!(n=t.interpolators[i](e,r)););return n}function $i(t,e){var r,n=[],i=[],a=t.length,o=e.length,s=Math.min(t.length,e.length);for(r=0;r<s;++r)n.push(Zi(t[r],e[r]));for(;r<a;++r)i[r]=t[r];for(;r<o;++r)i[r]=e[r];return function(t){for(r=0;r<s;++r)i[r]=n[r](t);return i}}t.interpolate=Zi,t.interpolators=[function(t,e){var r=typeof e;return(\"string\"===r?ge.has(e.toLowerCase())||/^(#|rgb\\(|hsl\\()/i.test(e)?qi:Wi:e instanceof Vt?qi:Array.isArray(e)?$i:\"object\"===r&&isNaN(e)?Hi:Gi)(t,e)}],t.interpolateArray=$i;var Ji=function(){return z},Ki=t.map({linear:Ji,poly:function(t){return function(e){return Math.pow(e,t)}},quad:function(){return ra},cubic:function(){return na},sin:function(){return aa},exp:function(){return oa},circle:function(){return sa},elastic:function(t,e){var r;arguments.length<2&&(e=.45);arguments.length?r=e/Tt*Math.asin(1/t):(t=1,r=e/4);return function(n){return 1+t*Math.pow(2,-10*n)*Math.sin((n-r)*Tt/e)}},back:function(t){t||(t=1.70158);return function(e){return e*e*((t+1)*e-t)}},bounce:function(){return la}}),Qi=t.map({in:z,out:ta,\"in-out\":ea,\"out-in\":function(t){return ea(ta(t))}});function ta(t){return function(e){return 1-t(1-e)}}function ea(t){return function(e){return.5*(e<.5?t(2*e):2-t(2-2*e))}}function ra(t){return t*t}function na(t){return t*t*t}function ia(t){if(t<=0)return 0;if(t>=1)return 1;var e=t*t,r=e*t;return 4*(t<.5?r:3*(t-e)+r-.75)}function aa(t){return 1-Math.cos(t*Et)}function oa(t){return Math.pow(2,10*(t-1))}function sa(t){return 1-Math.sqrt(1-t*t)}function la(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}function ca(t,e){return e-=t,function(r){return Math.round(t+e*r)}}function ua(t){var e,r,n,i=[t.a,t.b],a=[t.c,t.d],o=ha(i),s=fa(i,a),l=ha(((e=a)[0]+=(n=-s)*(r=i)[0],e[1]+=n*r[1],e))||0;i[0]*a[1]<a[0]*i[1]&&(i[0]*=-1,i[1]*=-1,o*=-1,s*=-1),this.rotate=(o?Math.atan2(i[1],i[0]):Math.atan2(-a[0],a[1]))*Lt,this.translate=[t.e,t.f],this.scale=[o,l],this.skew=l?Math.atan2(s,l)*Lt:0}function fa(t,e){return t[0]*e[0]+t[1]*e[1]}function ha(t){var e=Math.sqrt(fa(t,t));return e&&(t[0]/=e,t[1]/=e),e}t.ease=function(t){var e,n=t.indexOf(\"-\"),i=n>=0?t.slice(0,n):t,a=n>=0?t.slice(n+1):\"in\";return i=Ki.get(i)||Ji,a=Qi.get(a)||z,e=a(i.apply(null,r.call(arguments,1))),function(t){return t<=0?0:t>=1?1:e(t)}},t.interpolateHcl=function(e,r){e=t.hcl(e),r=t.hcl(r);var n=e.h,i=e.c,a=e.l,o=r.h-n,s=r.c-i,l=r.l-a;isNaN(s)&&(s=0,i=isNaN(i)?r.c:i);isNaN(o)?(o=0,n=isNaN(n)?r.h:n):o>180?o-=360:o<-180&&(o+=360);return function(t){return Yt(n+o*t,i+s*t,a+l*t)+\"\"}},t.interpolateHsl=function(e,r){e=t.hsl(e),r=t.hsl(r);var n=e.h,i=e.s,a=e.l,o=r.h-n,s=r.s-i,l=r.l-a;isNaN(s)&&(s=0,i=isNaN(i)?r.s:i);isNaN(o)?(o=0,n=isNaN(n)?r.h:n):o>180?o-=360:o<-180&&(o+=360);return function(t){return Ht(n+o*t,i+s*t,a+l*t)+\"\"}},t.interpolateLab=function(e,r){e=t.lab(e),r=t.lab(r);var n=e.l,i=e.a,a=e.b,o=r.l-n,s=r.a-i,l=r.b-a;return function(t){return te(n+o*t,i+s*t,a+l*t)+\"\"}},t.interpolateRound=ca,t.transform=function(e){var r=i.createElementNS(t.ns.prefix.svg,\"g\");return(t.transform=function(t){if(null!=t){r.setAttribute(\"transform\",t);var e=r.transform.baseVal.consolidate()}return new ua(e?e.matrix:pa)})(e)},ua.prototype.toString=function(){return\"translate(\"+this.translate+\")rotate(\"+this.rotate+\")skewX(\"+this.skew+\")scale(\"+this.scale+\")\"};var pa={a:1,b:0,c:0,d:1,e:0,f:0};function da(t){return t.length?t.pop()+\",\":\"\"}function ga(e,r){var n=[],i=[];return e=t.transform(e),r=t.transform(r),function(t,e,r,n){if(t[0]!==e[0]||t[1]!==e[1]){var i=r.push(\"translate(\",null,\",\",null,\")\");n.push({i:i-4,x:Gi(t[0],e[0])},{i:i-2,x:Gi(t[1],e[1])})}else(e[0]||e[1])&&r.push(\"translate(\"+e+\")\")}(e.translate,r.translate,n,i),function(t,e,r,n){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),n.push({i:r.push(da(r)+\"rotate(\",null,\")\")-2,x:Gi(t,e)})):e&&r.push(da(r)+\"rotate(\"+e+\")\")}(e.rotate,r.rotate,n,i),function(t,e,r,n){t!==e?n.push({i:r.push(da(r)+\"skewX(\",null,\")\")-2,x:Gi(t,e)}):e&&r.push(da(r)+\"skewX(\"+e+\")\")}(e.skew,r.skew,n,i),function(t,e,r,n){if(t[0]!==e[0]||t[1]!==e[1]){var i=r.push(da(r)+\"scale(\",null,\",\",null,\")\");n.push({i:i-4,x:Gi(t[0],e[0])},{i:i-2,x:Gi(t[1],e[1])})}else 1===e[0]&&1===e[1]||r.push(da(r)+\"scale(\"+e+\")\")}(e.scale,r.scale,n,i),e=r=null,function(t){for(var e,r=-1,a=i.length;++r<a;)n[(e=i[r]).i]=e.x(t);return n.join(\"\")}}function va(t,e){return e=(e-=t=+t)||1/e,function(r){return(r-t)/e}}function ma(t,e){return e=(e-=t=+t)||1/e,function(r){return Math.max(0,Math.min(1,(r-t)/e))}}function ya(t){for(var e=t.source,r=t.target,n=function(t,e){if(t===e)return t;var r=xa(t),n=xa(e),i=r.pop(),a=n.pop(),o=null;for(;i===a;)o=i,i=r.pop(),a=n.pop();return o}(e,r),i=[e];e!==n;)e=e.parent,i.push(e);for(var a=i.length;r!==n;)i.splice(a,0,r),r=r.parent;return i}function xa(t){for(var e=[],r=t.parent;null!=r;)e.push(t),t=r,r=r.parent;return e.push(t),e}function ba(t){t.fixed|=2}function _a(t){t.fixed&=-7}function wa(t){t.fixed|=4,t.px=t.x,t.py=t.y}function ka(t){t.fixed&=-5}t.interpolateTransform=ga,t.layout={},t.layout.bundle=function(){return function(t){for(var e=[],r=-1,n=t.length;++r<n;)e.push(ya(t[r]));return e}},t.layout.chord=function(){var e,r,n,i,a,o,s,l={},c=0;function u(){var l,u,h,p,d,g={},v=[],m=t.range(i),y=[];for(e=[],r=[],l=0,p=-1;++p<i;){for(u=0,d=-1;++d<i;)u+=n[p][d];v.push(u),y.push(t.range(i)),l+=u}for(a&&m.sort(function(t,e){return a(v[t],v[e])}),o&&y.forEach(function(t,e){t.sort(function(t,r){return o(n[e][t],n[e][r])})}),l=(Tt-c*i)/l,u=0,p=-1;++p<i;){for(h=u,d=-1;++d<i;){var x=m[p],b=y[x][d],_=n[x][b],w=u,k=u+=_*l;g[x+\"-\"+b]={index:x,subindex:b,startAngle:w,endAngle:k,value:_}}r[x]={index:x,startAngle:h,endAngle:u,value:v[x]},u+=c}for(p=-1;++p<i;)for(d=p-1;++d<i;){var M=g[p+\"-\"+d],A=g[d+\"-\"+p];(M.value||A.value)&&e.push(M.value<A.value?{source:A,target:M}:{source:M,target:A})}s&&f()}function f(){e.sort(function(t,e){return s((t.source.value+t.target.value)/2,(e.source.value+e.target.value)/2)})}return l.matrix=function(t){return arguments.length?(i=(n=t)&&n.length,e=r=null,l):n},l.padding=function(t){return arguments.length?(c=t,e=r=null,l):c},l.sortGroups=function(t){return arguments.length?(a=t,e=r=null,l):a},l.sortSubgroups=function(t){return arguments.length?(o=t,e=null,l):o},l.sortChords=function(t){return arguments.length?(s=t,e&&f(),l):s},l.chords=function(){return e||u(),e},l.groups=function(){return r||u(),r},l},t.layout.force=function(){var e,r,n,i,a,o,s={},l=t.dispatch(\"start\",\"tick\",\"end\"),c=[1,1],u=.9,f=Ma,h=Aa,p=-30,d=Ta,g=.1,v=.64,m=[],y=[];function x(t){return function(e,r,n,i){if(e.point!==t){var a=e.cx-t.x,o=e.cy-t.y,s=i-r,l=a*a+o*o;if(s*s/v<l){if(l<d){var c=e.charge/l;t.px-=a*c,t.py-=o*c}return!0}if(e.point&&l&&l<d){c=e.pointCharge/l;t.px-=a*c,t.py-=o*c}}return!e.charge}}function b(e){e.px=t.event.x,e.py=t.event.y,s.resume()}return s.tick=function(){if((n*=.99)<.005)return e=null,l.end({type:\"end\",alpha:n=0}),!0;var r,s,f,h,d,v,b,_,w,k=m.length,M=y.length;for(s=0;s<M;++s)h=(f=y[s]).source,(v=(_=(d=f.target).x-h.x)*_+(w=d.y-h.y)*w)&&(_*=v=n*a[s]*((v=Math.sqrt(v))-i[s])/v,w*=v,d.x-=_*(b=h.weight+d.weight?h.weight/(h.weight+d.weight):.5),d.y-=w*b,h.x+=_*(b=1-b),h.y+=w*b);if((b=n*g)&&(_=c[0]/2,w=c[1]/2,s=-1,b))for(;++s<k;)(f=m[s]).x+=(_-f.x)*b,f.y+=(w-f.y)*b;if(p)for(!function t(e,r,n){var i=0,a=0;e.charge=0;if(!e.leaf)for(var o,s=e.nodes,l=s.length,c=-1;++c<l;)null!=(o=s[c])&&(t(o,r,n),e.charge+=o.charge,i+=o.charge*o.cx,a+=o.charge*o.cy);if(e.point){e.leaf||(e.point.x+=Math.random()-.5,e.point.y+=Math.random()-.5);var u=r*n[e.point.index];e.charge+=e.pointCharge=u,i+=u*e.point.x,a+=u*e.point.y}e.cx=i/e.charge;e.cy=a/e.charge}(r=t.geom.quadtree(m),n,o),s=-1;++s<k;)(f=m[s]).fixed||r.visit(x(f));for(s=-1;++s<k;)(f=m[s]).fixed?(f.x=f.px,f.y=f.py):(f.x-=(f.px-(f.px=f.x))*u,f.y-=(f.py-(f.py=f.y))*u);l.tick({type:\"tick\",alpha:n})},s.nodes=function(t){return arguments.length?(m=t,s):m},s.links=function(t){return arguments.length?(y=t,s):y},s.size=function(t){return arguments.length?(c=t,s):c},s.linkDistance=function(t){return arguments.length?(f=\"function\"==typeof t?t:+t,s):f},s.distance=s.linkDistance,s.linkStrength=function(t){return arguments.length?(h=\"function\"==typeof t?t:+t,s):h},s.friction=function(t){return arguments.length?(u=+t,s):u},s.charge=function(t){return arguments.length?(p=\"function\"==typeof t?t:+t,s):p},s.chargeDistance=function(t){return arguments.length?(d=t*t,s):Math.sqrt(d)},s.gravity=function(t){return arguments.length?(g=+t,s):g},s.theta=function(t){return arguments.length?(v=t*t,s):Math.sqrt(v)},s.alpha=function(t){return arguments.length?(t=+t,n?t>0?n=t:(e.c=null,e.t=NaN,e=null,l.end({type:\"end\",alpha:n=0})):t>0&&(l.start({type:\"start\",alpha:n=t}),e=Me(s.tick)),s):n},s.start=function(){var t,e,r,n=m.length,l=y.length,u=c[0],d=c[1];for(t=0;t<n;++t)(r=m[t]).index=t,r.weight=0;for(t=0;t<l;++t)\"number\"==typeof(r=y[t]).source&&(r.source=m[r.source]),\"number\"==typeof r.target&&(r.target=m[r.target]),++r.source.weight,++r.target.weight;for(t=0;t<n;++t)r=m[t],isNaN(r.x)&&(r.x=g(\"x\",u)),isNaN(r.y)&&(r.y=g(\"y\",d)),isNaN(r.px)&&(r.px=r.x),isNaN(r.py)&&(r.py=r.y);if(i=[],\"function\"==typeof f)for(t=0;t<l;++t)i[t]=+f.call(this,y[t],t);else for(t=0;t<l;++t)i[t]=f;if(a=[],\"function\"==typeof h)for(t=0;t<l;++t)a[t]=+h.call(this,y[t],t);else for(t=0;t<l;++t)a[t]=h;if(o=[],\"function\"==typeof p)for(t=0;t<n;++t)o[t]=+p.call(this,m[t],t);else for(t=0;t<n;++t)o[t]=p;function g(r,i){if(!e){for(e=new Array(n),c=0;c<n;++c)e[c]=[];for(c=0;c<l;++c){var a=y[c];e[a.source.index].push(a.target),e[a.target.index].push(a.source)}}for(var o,s=e[t],c=-1,u=s.length;++c<u;)if(!isNaN(o=s[c][r]))return o;return Math.random()*i}return s.resume()},s.resume=function(){return s.alpha(.1)},s.stop=function(){return s.alpha(0)},s.drag=function(){if(r||(r=t.behavior.drag().origin(z).on(\"dragstart.force\",ba).on(\"drag.force\",b).on(\"dragend.force\",_a)),!arguments.length)return r;this.on(\"mouseover.force\",wa).on(\"mouseout.force\",ka).call(r)},t.rebind(s,l,\"on\")};var Ma=20,Aa=1,Ta=1/0;function Sa(e,r){return t.rebind(e,r,\"sort\",\"children\",\"value\"),e.nodes=e,e.links=Ia,e}function Ea(t,e){for(var r=[t];null!=(t=r.pop());)if(e(t),(i=t.children)&&(n=i.length))for(var n,i;--n>=0;)r.push(i[n])}function Ca(t,e){for(var r=[t],n=[];null!=(t=r.pop());)if(n.push(t),(a=t.children)&&(i=a.length))for(var i,a,o=-1;++o<i;)r.push(a[o]);for(;null!=(t=n.pop());)e(t)}function La(t){return t.children}function za(t){return t.value}function Oa(t,e){return e.value-t.value}function Ia(e){return t.merge(e.map(function(t){return(t.children||[]).map(function(e){return{source:t,target:e}})}))}t.layout.hierarchy=function(){var t=Oa,e=La,r=za;function n(i){var a,o=[i],s=[];for(i.depth=0;null!=(a=o.pop());)if(s.push(a),(c=e.call(n,a,a.depth))&&(l=c.length)){for(var l,c,u;--l>=0;)o.push(u=c[l]),u.parent=a,u.depth=a.depth+1;r&&(a.value=0),a.children=c}else r&&(a.value=+r.call(n,a,a.depth)||0),delete a.children;return Ca(i,function(e){var n,i;t&&(n=e.children)&&n.sort(t),r&&(i=e.parent)&&(i.value+=e.value)}),s}return n.sort=function(e){return arguments.length?(t=e,n):t},n.children=function(t){return arguments.length?(e=t,n):e},n.value=function(t){return arguments.length?(r=t,n):r},n.revalue=function(t){return r&&(Ea(t,function(t){t.children&&(t.value=0)}),Ca(t,function(t){var e;t.children||(t.value=+r.call(n,t,t.depth)||0),(e=t.parent)&&(e.value+=t.value)})),t},n},t.layout.partition=function(){var e=t.layout.hierarchy(),r=[1,1];function n(t,n){var i=e.call(this,t,n);return function t(e,r,n,i){var a=e.children;if(e.x=r,e.y=e.depth*i,e.dx=n,e.dy=i,a&&(o=a.length)){var o,s,l,c=-1;for(n=e.value?n/e.value:0;++c<o;)t(s=a[c],r,l=s.value*n,i),r+=l}}(i[0],0,r[0],r[1]/function t(e){var r=e.children,n=0;if(r&&(i=r.length))for(var i,a=-1;++a<i;)n=Math.max(n,t(r[a]));return 1+n}(i[0])),i}return n.size=function(t){return arguments.length?(r=t,n):r},Sa(n,e)},t.layout.pie=function(){var e=Number,r=Pa,n=0,i=Tt,a=0;function o(s){var l,c=s.length,u=s.map(function(t,r){return+e.call(o,t,r)}),f=+(\"function\"==typeof n?n.apply(this,arguments):n),h=(\"function\"==typeof i?i.apply(this,arguments):i)-f,p=Math.min(Math.abs(h)/c,+(\"function\"==typeof a?a.apply(this,arguments):a)),d=p*(h<0?-1:1),g=t.sum(u),v=g?(h-c*d)/g:0,m=t.range(c),y=[];return null!=r&&m.sort(r===Pa?function(t,e){return u[e]-u[t]}:function(t,e){return r(s[t],s[e])}),m.forEach(function(t){y[t]={data:s[t],value:l=u[t],startAngle:f,endAngle:f+=l*v+d,padAngle:p}}),y}return o.value=function(t){return arguments.length?(e=t,o):e},o.sort=function(t){return arguments.length?(r=t,o):r},o.startAngle=function(t){return arguments.length?(n=t,o):n},o.endAngle=function(t){return arguments.length?(i=t,o):i},o.padAngle=function(t){return arguments.length?(a=t,o):a},o};var Pa={};function Da(t){return t.x}function Ra(t){return t.y}function Ba(t,e,r){t.y0=e,t.y=r}t.layout.stack=function(){var e=z,r=ja,n=Va,i=Ba,a=Da,o=Ra;function s(l,c){if(!(p=l.length))return l;var u=l.map(function(t,r){return e.call(s,t,r)}),f=u.map(function(t){return t.map(function(t,e){return[a.call(s,t,e),o.call(s,t,e)]})}),h=r.call(s,f,c);u=t.permute(u,h),f=t.permute(f,h);var p,d,g,v,m=n.call(s,f,c),y=u[0].length;for(g=0;g<y;++g)for(i.call(s,u[0][g],v=m[g],f[0][g][1]),d=1;d<p;++d)i.call(s,u[d][g],v+=f[d-1][g][1],f[d][g][1]);return l}return s.values=function(t){return arguments.length?(e=t,s):e},s.order=function(t){return arguments.length?(r=\"function\"==typeof t?t:Fa.get(t)||ja,s):r},s.offset=function(t){return arguments.length?(n=\"function\"==typeof t?t:Na.get(t)||Va,s):n},s.x=function(t){return arguments.length?(a=t,s):a},s.y=function(t){return arguments.length?(o=t,s):o},s.out=function(t){return arguments.length?(i=t,s):i},s};var Fa=t.map({\"inside-out\":function(e){var r,n,i=e.length,a=e.map(Ua),o=e.map(qa),s=t.range(i).sort(function(t,e){return a[t]-a[e]}),l=0,c=0,u=[],f=[];for(r=0;r<i;++r)n=s[r],l<c?(l+=o[n],u.push(n)):(c+=o[n],f.push(n));return f.reverse().concat(u)},reverse:function(e){return t.range(e.length).reverse()},default:ja}),Na=t.map({silhouette:function(t){var e,r,n,i=t.length,a=t[0].length,o=[],s=0,l=[];for(r=0;r<a;++r){for(e=0,n=0;e<i;e++)n+=t[e][r][1];n>s&&(s=n),o.push(n)}for(r=0;r<a;++r)l[r]=(s-o[r])/2;return l},wiggle:function(t){var e,r,n,i,a,o,s,l,c,u=t.length,f=t[0],h=f.length,p=[];for(p[0]=l=c=0,r=1;r<h;++r){for(e=0,i=0;e<u;++e)i+=t[e][r][1];for(e=0,a=0,s=f[r][0]-f[r-1][0];e<u;++e){for(n=0,o=(t[e][r][1]-t[e][r-1][1])/(2*s);n<e;++n)o+=(t[n][r][1]-t[n][r-1][1])/s;a+=o*t[e][r][1]}p[r]=l-=i?a/i*s:0,l<c&&(c=l)}for(r=0;r<h;++r)p[r]-=c;return p},expand:function(t){var e,r,n,i=t.length,a=t[0].length,o=1/i,s=[];for(r=0;r<a;++r){for(e=0,n=0;e<i;e++)n+=t[e][r][1];if(n)for(e=0;e<i;e++)t[e][r][1]/=n;else for(e=0;e<i;e++)t[e][r][1]=o}for(r=0;r<a;++r)s[r]=0;return s},zero:Va});function ja(e){return t.range(e.length)}function Va(t){for(var e=-1,r=t[0].length,n=[];++e<r;)n[e]=0;return n}function Ua(t){for(var e,r=1,n=0,i=t[0][1],a=t.length;r<a;++r)(e=t[r][1])>i&&(n=r,i=e);return n}function qa(t){return t.reduce(Ha,0)}function Ha(t,e){return t+e[1]}function Ga(t,e){return Wa(t,Math.ceil(Math.log(e.length)/Math.LN2+1))}function Wa(t,e){for(var r=-1,n=+t[0],i=(t[1]-n)/e,a=[];++r<=e;)a[r]=i*r+n;return a}function Ya(e){return[t.min(e),t.max(e)]}function Xa(t,e){return t.value-e.value}function Za(t,e){var r=t._pack_next;t._pack_next=e,e._pack_prev=t,e._pack_next=r,r._pack_prev=e}function $a(t,e){t._pack_next=e,e._pack_prev=t}function Ja(t,e){var r=e.x-t.x,n=e.y-t.y,i=t.r+e.r;return.999*i*i>r*r+n*n}function Ka(t){if((e=t.children)&&(l=e.length)){var e,r,n,i,a,o,s,l,c=1/0,u=-1/0,f=1/0,h=-1/0;if(e.forEach(Qa),(r=e[0]).x=-r.r,r.y=0,x(r),l>1&&((n=e[1]).x=n.r,n.y=0,x(n),l>2))for(eo(r,n,i=e[2]),x(i),Za(r,i),r._pack_prev=i,Za(i,n),n=r._pack_next,a=3;a<l;a++){eo(r,n,i=e[a]);var p=0,d=1,g=1;for(o=n._pack_next;o!==n;o=o._pack_next,d++)if(Ja(o,i)){p=1;break}if(1==p)for(s=r._pack_prev;s!==o._pack_prev&&!Ja(s,i);s=s._pack_prev,g++);p?(d<g||d==g&&n.r<r.r?$a(r,n=o):$a(r=s,n),a--):(Za(r,i),n=i,x(i))}var v=(c+u)/2,m=(f+h)/2,y=0;for(a=0;a<l;a++)(i=e[a]).x-=v,i.y-=m,y=Math.max(y,i.r+Math.sqrt(i.x*i.x+i.y*i.y));t.r=y,e.forEach(to)}function x(t){c=Math.min(t.x-t.r,c),u=Math.max(t.x+t.r,u),f=Math.min(t.y-t.r,f),h=Math.max(t.y+t.r,h)}}function Qa(t){t._pack_next=t._pack_prev=t}function to(t){delete t._pack_next,delete t._pack_prev}function eo(t,e,r){var n=t.r+r.r,i=e.x-t.x,a=e.y-t.y;if(n&&(i||a)){var o=e.r+r.r,s=i*i+a*a,l=.5+((n*=n)-(o*=o))/(2*s),c=Math.sqrt(Math.max(0,2*o*(n+s)-(n-=s)*n-o*o))/(2*s);r.x=t.x+l*i+c*a,r.y=t.y+l*a-c*i}else r.x=t.x+n,r.y=t.y}function ro(t,e){return t.parent==e.parent?1:2}function no(t){var e=t.children;return e.length?e[0]:t.t}function io(t){var e,r=t.children;return(e=r.length)?r[e-1]:t.t}function ao(t,e,r){var n=r/(e.i-t.i);e.c-=n,e.s+=r,t.c+=n,e.z+=r,e.m+=r}function oo(t,e,r){return t.a.parent===e.parent?t.a:r}function so(t){return{x:t.x,y:t.y,dx:t.dx,dy:t.dy}}function lo(t,e){var r=t.x+e[3],n=t.y+e[0],i=t.dx-e[1]-e[3],a=t.dy-e[0]-e[2];return i<0&&(r+=i/2,i=0),a<0&&(n+=a/2,a=0),{x:r,y:n,dx:i,dy:a}}function co(t){var e=t[0],r=t[t.length-1];return e<r?[e,r]:[r,e]}function uo(t){return t.rangeExtent?t.rangeExtent():co(t.range())}function fo(t,e,r,n){var i=r(t[0],t[1]),a=n(e[0],e[1]);return function(t){return a(i(t))}}function ho(t,e){var r,n=0,i=t.length-1,a=t[n],o=t[i];return o<a&&(r=n,n=i,i=r,r=a,a=o,o=r),t[n]=e.floor(a),t[i]=e.ceil(o),t}function po(t){return t?{floor:function(e){return Math.floor(e/t)*t},ceil:function(e){return Math.ceil(e/t)*t}}:go}t.layout.histogram=function(){var e=!0,r=Number,n=Ya,i=Ga;function a(a,o){for(var s,l,c=[],u=a.map(r,this),f=n.call(this,u,o),h=i.call(this,f,u,o),p=(o=-1,u.length),d=h.length-1,g=e?1:1/p;++o<d;)(s=c[o]=[]).dx=h[o+1]-(s.x=h[o]),s.y=0;if(d>0)for(o=-1;++o<p;)(l=u[o])>=f[0]&&l<=f[1]&&((s=c[t.bisect(h,l,1,d)-1]).y+=g,s.push(a[o]));return c}return a.value=function(t){return arguments.length?(r=t,a):r},a.range=function(t){return arguments.length?(n=ve(t),a):n},a.bins=function(t){return arguments.length?(i=\"number\"==typeof t?function(e){return Wa(e,t)}:ve(t),a):i},a.frequency=function(t){return arguments.length?(e=!!t,a):e},a},t.layout.pack=function(){var e,r=t.layout.hierarchy().sort(Xa),n=0,i=[1,1];function a(t,a){var o=r.call(this,t,a),s=o[0],l=i[0],c=i[1],u=null==e?Math.sqrt:\"function\"==typeof e?e:function(){return e};if(s.x=s.y=0,Ca(s,function(t){t.r=+u(t.value)}),Ca(s,Ka),n){var f=n*(e?1:Math.max(2*s.r/l,2*s.r/c))/2;Ca(s,function(t){t.r+=f}),Ca(s,Ka),Ca(s,function(t){t.r-=f})}return function t(e,r,n,i){var a=e.children;e.x=r+=i*e.x;e.y=n+=i*e.y;e.r*=i;if(a)for(var o=-1,s=a.length;++o<s;)t(a[o],r,n,i)}(s,l/2,c/2,e?1:1/Math.max(2*s.r/l,2*s.r/c)),o}return a.size=function(t){return arguments.length?(i=t,a):i},a.radius=function(t){return arguments.length?(e=null==t||\"function\"==typeof t?t:+t,a):e},a.padding=function(t){return arguments.length?(n=+t,a):n},Sa(a,r)},t.layout.tree=function(){var e=t.layout.hierarchy().sort(null).value(null),r=ro,n=[1,1],i=null;function a(t,a){var c=e.call(this,t,a),u=c[0],f=function(t){var e,r={A:null,children:[t]},n=[r];for(;null!=(e=n.pop());)for(var i,a=e.children,o=0,s=a.length;o<s;++o)n.push((a[o]=i={_:a[o],parent:e,children:(i=a[o].children)&&i.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:o}).a=i);return r.children[0]}(u);if(Ca(f,o),f.parent.m=-f.z,Ea(f,s),i)Ea(u,l);else{var h=u,p=u,d=u;Ea(u,function(t){t.x<h.x&&(h=t),t.x>p.x&&(p=t),t.depth>d.depth&&(d=t)});var g=r(h,p)/2-h.x,v=n[0]/(p.x+r(p,h)/2+g),m=n[1]/(d.depth||1);Ea(u,function(t){t.x=(t.x+g)*v,t.y=t.depth*m})}return c}function o(t){var e=t.children,n=t.parent.children,i=t.i?n[t.i-1]:null;if(e.length){!function(t){var e,r=0,n=0,i=t.children,a=i.length;for(;--a>=0;)(e=i[a]).z+=r,e.m+=r,r+=e.s+(n+=e.c)}(t);var a=(e[0].z+e[e.length-1].z)/2;i?(t.z=i.z+r(t._,i._),t.m=t.z-a):t.z=a}else i&&(t.z=i.z+r(t._,i._));t.parent.A=function(t,e,n){if(e){for(var i,a=t,o=t,s=e,l=a.parent.children[0],c=a.m,u=o.m,f=s.m,h=l.m;s=io(s),a=no(a),s&&a;)l=no(l),(o=io(o)).a=t,(i=s.z+f-a.z-c+r(s._,a._))>0&&(ao(oo(s,t,n),t,i),c+=i,u+=i),f+=s.m,c+=a.m,h+=l.m,u+=o.m;s&&!io(o)&&(o.t=s,o.m+=f-u),a&&!no(l)&&(l.t=a,l.m+=c-h,n=t)}return n}(t,i,t.parent.A||n[0])}function s(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function l(t){t.x*=n[0],t.y=t.depth*n[1]}return a.separation=function(t){return arguments.length?(r=t,a):r},a.size=function(t){return arguments.length?(i=null==(n=t)?l:null,a):i?null:n},a.nodeSize=function(t){return arguments.length?(i=null==(n=t)?null:l,a):i?n:null},Sa(a,e)},t.layout.cluster=function(){var e=t.layout.hierarchy().sort(null).value(null),r=ro,n=[1,1],i=!1;function a(a,o){var s,l=e.call(this,a,o),c=l[0],u=0;Ca(c,function(e){var n=e.children;n&&n.length?(e.x=function(t){return t.reduce(function(t,e){return t+e.x},0)/t.length}(n),e.y=function(e){return 1+t.max(e,function(t){return t.y})}(n)):(e.x=s?u+=r(e,s):0,e.y=0,s=e)});var f=function t(e){var r=e.children;return r&&r.length?t(r[0]):e}(c),h=function t(e){var r,n=e.children;return n&&(r=n.length)?t(n[r-1]):e}(c),p=f.x-r(f,h)/2,d=h.x+r(h,f)/2;return Ca(c,i?function(t){t.x=(t.x-c.x)*n[0],t.y=(c.y-t.y)*n[1]}:function(t){t.x=(t.x-p)/(d-p)*n[0],t.y=(1-(c.y?t.y/c.y:1))*n[1]}),l}return a.separation=function(t){return arguments.length?(r=t,a):r},a.size=function(t){return arguments.length?(i=null==(n=t),a):i?null:n},a.nodeSize=function(t){return arguments.length?(i=null!=(n=t),a):i?n:null},Sa(a,e)},t.layout.treemap=function(){var e,r=t.layout.hierarchy(),n=Math.round,i=[1,1],a=null,o=so,s=!1,l=\"squarify\",c=.5*(1+Math.sqrt(5));function u(t,e){for(var r,n,i=-1,a=t.length;++i<a;)n=(r=t[i]).value*(e<0?0:e),r.area=isNaN(n)||n<=0?0:n}function f(t){var e=t.children;if(e&&e.length){var r,n,i,a=o(t),s=[],c=e.slice(),h=1/0,g=\"slice\"===l?a.dx:\"dice\"===l?a.dy:\"slice-dice\"===l?1&t.depth?a.dy:a.dx:Math.min(a.dx,a.dy);for(u(c,a.dx*a.dy/t.value),s.area=0;(i=c.length)>0;)s.push(r=c[i-1]),s.area+=r.area,\"squarify\"!==l||(n=p(s,g))<=h?(c.pop(),h=n):(s.area-=s.pop().area,d(s,g,a,!1),g=Math.min(a.dx,a.dy),s.length=s.area=0,h=1/0);s.length&&(d(s,g,a,!0),s.length=s.area=0),e.forEach(f)}}function h(t){var e=t.children;if(e&&e.length){var r,n=o(t),i=e.slice(),a=[];for(u(i,n.dx*n.dy/t.value),a.area=0;r=i.pop();)a.push(r),a.area+=r.area,null!=r.z&&(d(a,r.z?n.dx:n.dy,n,!i.length),a.length=a.area=0);e.forEach(h)}}function p(t,e){for(var r,n=t.area,i=0,a=1/0,o=-1,s=t.length;++o<s;)(r=t[o].area)&&(r<a&&(a=r),r>i&&(i=r));return e*=e,(n*=n)?Math.max(e*i*c/n,n/(e*a*c)):1/0}function d(t,e,r,i){var a,o=-1,s=t.length,l=r.x,c=r.y,u=e?n(t.area/e):0;if(e==r.dx){for((i||u>r.dy)&&(u=r.dy);++o<s;)(a=t[o]).x=l,a.y=c,a.dy=u,l+=a.dx=Math.min(r.x+r.dx-l,u?n(a.area/u):0);a.z=!0,a.dx+=r.x+r.dx-l,r.y+=u,r.dy-=u}else{for((i||u>r.dx)&&(u=r.dx);++o<s;)(a=t[o]).x=l,a.y=c,a.dx=u,c+=a.dy=Math.min(r.y+r.dy-c,u?n(a.area/u):0);a.z=!1,a.dy+=r.y+r.dy-c,r.x+=u,r.dx-=u}}function g(t){var n=e||r(t),a=n[0];return a.x=a.y=0,a.value?(a.dx=i[0],a.dy=i[1]):a.dx=a.dy=0,e&&r.revalue(a),u([a],a.dx*a.dy/a.value),(e?h:f)(a),s&&(e=n),n}return g.size=function(t){return arguments.length?(i=t,g):i},g.padding=function(t){if(!arguments.length)return a;function e(e){return lo(e,t)}var r;return o=null==(a=t)?so:\"function\"==(r=typeof t)?function(e){var r=t.call(g,e,e.depth);return null==r?so(e):lo(e,\"number\"==typeof r?[r,r,r,r]:r)}:\"number\"===r?(t=[t,t,t,t],e):e,g},g.round=function(t){return arguments.length?(n=t?Math.round:Number,g):n!=Number},g.sticky=function(t){return arguments.length?(s=t,e=null,g):s},g.ratio=function(t){return arguments.length?(c=t,g):c},g.mode=function(t){return arguments.length?(l=t+\"\",g):l},Sa(g,r)},t.random={normal:function(t,e){var r=arguments.length;return r<2&&(e=1),r<1&&(t=0),function(){var r,n,i;do{i=(r=2*Math.random()-1)*r+(n=2*Math.random()-1)*n}while(!i||i>1);return t+e*r*Math.sqrt(-2*Math.log(i)/i)}},logNormal:function(){var e=t.random.normal.apply(t,arguments);return function(){return Math.exp(e())}},bates:function(e){var r=t.random.irwinHall(e);return function(){return r()/e}},irwinHall:function(t){return function(){for(var e=0,r=0;r<t;r++)e+=Math.random();return e}}},t.scale={};var go={floor:z,ceil:z};function vo(e,r,n,i){var a=[],o=[],s=0,l=Math.min(e.length,r.length)-1;for(e[l]<e[0]&&(e=e.slice().reverse(),r=r.slice().reverse());++s<=l;)a.push(n(e[s-1],e[s])),o.push(i(r[s-1],r[s]));return function(r){var n=t.bisect(e,r,1,l)-1;return o[n](a[n](r))}}function mo(e,r){return t.rebind(e,r,\"range\",\"rangeRound\",\"interpolate\",\"clamp\")}function yo(t,e){return ho(t,po(xo(t,e)[2])),ho(t,po(xo(t,e)[2])),t}function xo(t,e){null==e&&(e=10);var r=co(t),n=r[1]-r[0],i=Math.pow(10,Math.floor(Math.log(n/e)/Math.LN10)),a=e/n*i;return a<=.15?i*=10:a<=.35?i*=5:a<=.75&&(i*=2),r[0]=Math.ceil(r[0]/i)*i,r[1]=Math.floor(r[1]/i)*i+.5*i,r[2]=i,r}function bo(e,r){return t.range.apply(t,xo(e,r))}function _o(e,r,n){var i=xo(e,r);if(n){var a=Le.exec(n);if(a.shift(),\"s\"===a[8]){var o=t.formatPrefix(Math.max(y(i[0]),y(i[1])));return a[7]||(a[7]=\".\"+ko(o.scale(i[2]))),a[8]=\"f\",n=t.format(a.join(\"\")),function(t){return n(o.scale(t))+o.symbol}}a[7]||(a[7]=\".\"+function(t,e){var r=ko(e[2]);return t in wo?Math.abs(r-ko(Math.max(y(e[0]),y(e[1]))))+ +(\"e\"!==t):r-2*(\"%\"===t)}(a[8],i)),n=a.join(\"\")}else n=\",.\"+ko(i[2])+\"f\";return t.format(n)}t.scale.linear=function(){return function t(e,r,n,i){var a,o;function s(){var t=Math.min(e.length,r.length)>2?vo:fo,s=i?ma:va;return a=t(e,r,s,n),o=t(r,e,s,Zi),l}function l(t){return a(t)}l.invert=function(t){return o(t)};l.domain=function(t){return arguments.length?(e=t.map(Number),s()):e};l.range=function(t){return arguments.length?(r=t,s()):r};l.rangeRound=function(t){return l.range(t).interpolate(ca)};l.clamp=function(t){return arguments.length?(i=t,s()):i};l.interpolate=function(t){return arguments.length?(n=t,s()):n};l.ticks=function(t){return bo(e,t)};l.tickFormat=function(t,r){return _o(e,t,r)};l.nice=function(t){return yo(e,t),s()};l.copy=function(){return t(e,r,n,i)};return s()}([0,1],[0,1],Zi,!1)};var wo={s:1,g:1,p:1,r:1,e:1};function ko(t){return-Math.floor(Math.log(t)/Math.LN10+.01)}t.scale.log=function(){return function e(r,n,i,a){function o(t){return(i?Math.log(t<0?0:t):-Math.log(t>0?0:-t))/Math.log(n)}function s(t){return i?Math.pow(n,t):-Math.pow(n,-t)}function l(t){return r(o(t))}l.invert=function(t){return s(r.invert(t))};l.domain=function(t){return arguments.length?(i=t[0]>=0,r.domain((a=t.map(Number)).map(o)),l):a};l.base=function(t){return arguments.length?(n=+t,r.domain(a.map(o)),l):n};l.nice=function(){var t=ho(a.map(o),i?Math:Ao);return r.domain(t),a=t.map(s),l};l.ticks=function(){var t=co(a),e=[],r=t[0],l=t[1],c=Math.floor(o(r)),u=Math.ceil(o(l)),f=n%1?2:n;if(isFinite(u-c)){if(i){for(;c<u;c++)for(var h=1;h<f;h++)e.push(s(c)*h);e.push(s(c))}else for(e.push(s(c));c++<u;)for(var h=f-1;h>0;h--)e.push(s(c)*h);for(c=0;e[c]<r;c++);for(u=e.length;e[u-1]>l;u--);e=e.slice(c,u)}return e};l.tickFormat=function(e,r){if(!arguments.length)return Mo;arguments.length<2?r=Mo:\"function\"!=typeof r&&(r=t.format(r));var i=Math.max(1,n*e/l.ticks().length);return function(t){var e=t/s(Math.round(o(t)));return e*n<n-.5&&(e*=n),e<=i?r(t):\"\"}};l.copy=function(){return e(r.copy(),n,i,a)};return mo(l,r)}(t.scale.linear().domain([0,1]),10,!0,[1,10])};var Mo=t.format(\".0e\"),Ao={floor:function(t){return-Math.ceil(-t)},ceil:function(t){return-Math.floor(-t)}};function To(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}t.scale.pow=function(){return function t(e,r,n){var i=To(r),a=To(1/r);function o(t){return e(i(t))}o.invert=function(t){return a(e.invert(t))};o.domain=function(t){return arguments.length?(e.domain((n=t.map(Number)).map(i)),o):n};o.ticks=function(t){return bo(n,t)};o.tickFormat=function(t,e){return _o(n,t,e)};o.nice=function(t){return o.domain(yo(n,t))};o.exponent=function(t){return arguments.length?(i=To(r=t),a=To(1/r),e.domain(n.map(i)),o):r};o.copy=function(){return t(e.copy(),r,n)};return mo(o,e)}(t.scale.linear(),1,[0,1])},t.scale.sqrt=function(){return t.scale.pow().exponent(.5)},t.scale.ordinal=function(){return function e(r,n){var i,a,o;function s(t){return a[((i.get(t)||(\"range\"===n.t?i.set(t,r.push(t)):NaN))-1)%a.length]}function l(e,n){return t.range(r.length).map(function(t){return e+n*t})}s.domain=function(t){if(!arguments.length)return r;r=[],i=new b;for(var e,a=-1,o=t.length;++a<o;)i.has(e=t[a])||i.set(e,r.push(e));return s[n.t].apply(s,n.a)};s.range=function(t){return arguments.length?(a=t,o=0,n={t:\"range\",a:arguments},s):a};s.rangePoints=function(t,e){arguments.length<2&&(e=0);var i=t[0],c=t[1],u=r.length<2?(i=(i+c)/2,0):(c-i)/(r.length-1+e);return a=l(i+u*e/2,u),o=0,n={t:\"rangePoints\",a:arguments},s};s.rangeRoundPoints=function(t,e){arguments.length<2&&(e=0);var i=t[0],c=t[1],u=r.length<2?(i=c=Math.round((i+c)/2),0):(c-i)/(r.length-1+e)|0;return a=l(i+Math.round(u*e/2+(c-i-(r.length-1+e)*u)/2),u),o=0,n={t:\"rangeRoundPoints\",a:arguments},s};s.rangeBands=function(t,e,i){arguments.length<2&&(e=0),arguments.length<3&&(i=e);var c=t[1]<t[0],u=t[c-0],f=t[1-c],h=(f-u)/(r.length-e+2*i);return a=l(u+h*i,h),c&&a.reverse(),o=h*(1-e),n={t:\"rangeBands\",a:arguments},s};s.rangeRoundBands=function(t,e,i){arguments.length<2&&(e=0),arguments.length<3&&(i=e);var c=t[1]<t[0],u=t[c-0],f=t[1-c],h=Math.floor((f-u)/(r.length-e+2*i));return a=l(u+Math.round((f-u-(r.length-e)*h)/2),h),c&&a.reverse(),o=Math.round(h*(1-e)),n={t:\"rangeRoundBands\",a:arguments},s};s.rangeBand=function(){return o};s.rangeExtent=function(){return co(n.a[0])};s.copy=function(){return e(r,n)};return s.domain(r)}([],{t:\"range\",a:[[]]})},t.scale.category10=function(){return t.scale.ordinal().range(So)},t.scale.category20=function(){return t.scale.ordinal().range(Eo)},t.scale.category20b=function(){return t.scale.ordinal().range(Co)},t.scale.category20c=function(){return t.scale.ordinal().range(Lo)};var So=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(se),Eo=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(se),Co=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(se),Lo=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(se);function zo(){return 0}t.scale.quantile=function(){return function e(r,n){var i;function a(){var e=0,a=n.length;for(i=[];++e<a;)i[e-1]=t.quantile(r,e/a);return o}function o(e){if(!isNaN(e=+e))return n[t.bisect(i,e)]}o.domain=function(t){return arguments.length?(r=t.map(p).filter(d).sort(h),a()):r};o.range=function(t){return arguments.length?(n=t,a()):n};o.quantiles=function(){return i};o.invertExtent=function(t){return(t=n.indexOf(t))<0?[NaN,NaN]:[t>0?i[t-1]:r[0],t<i.length?i[t]:r[r.length-1]]};o.copy=function(){return e(r,n)};return a()}([],[])},t.scale.quantize=function(){return function t(e,r,n){var i,a;function o(t){return n[Math.max(0,Math.min(a,Math.floor(i*(t-e))))]}function s(){return i=n.length/(r-e),a=n.length-1,o}o.domain=function(t){return arguments.length?(e=+t[0],r=+t[t.length-1],s()):[e,r]};o.range=function(t){return arguments.length?(n=t,s()):n};o.invertExtent=function(t){return[t=(t=n.indexOf(t))<0?NaN:t/i+e,t+1/i]};o.copy=function(){return t(e,r,n)};return s()}(0,1,[0,1])},t.scale.threshold=function(){return function e(r,n){function i(e){if(e<=e)return n[t.bisect(r,e)]}i.domain=function(t){return arguments.length?(r=t,i):r};i.range=function(t){return arguments.length?(n=t,i):n};i.invertExtent=function(t){return t=n.indexOf(t),[r[t-1],r[t]]};i.copy=function(){return e(r,n)};return i}([.5],[0,1])},t.scale.identity=function(){return function t(e){function r(t){return+t}r.invert=r;r.domain=r.range=function(t){return arguments.length?(e=t.map(r),r):e};r.ticks=function(t){return bo(e,t)};r.tickFormat=function(t,r){return _o(e,t,r)};r.copy=function(){return t(e)};return r}([0,1])},t.svg={},t.svg.arc=function(){var t=Io,e=Po,r=zo,n=Oo,i=Do,a=Ro,o=Bo;function s(){var s=Math.max(0,+t.apply(this,arguments)),c=Math.max(0,+e.apply(this,arguments)),u=i.apply(this,arguments)-Et,f=a.apply(this,arguments)-Et,h=Math.abs(f-u),p=u>f?0:1;if(c<s&&(d=c,c=s,s=d),h>=St)return l(c,p)+(s?l(s,1-p):\"\")+\"Z\";var d,g,v,m,y,x,b,_,w,k,M,A,T=0,S=0,E=[];if((m=(+o.apply(this,arguments)||0)/2)&&(v=n===Oo?Math.sqrt(s*s+c*c):+n.apply(this,arguments),p||(S*=-1),c&&(S=Pt(v/c*Math.sin(m))),s&&(T=Pt(v/s*Math.sin(m)))),c){y=c*Math.cos(u+S),x=c*Math.sin(u+S),b=c*Math.cos(f-S),_=c*Math.sin(f-S);var C=Math.abs(f-u-2*S)<=At?0:1;if(S&&Fo(y,x,b,_)===p^C){var L=(u+f)/2;y=c*Math.cos(L),x=c*Math.sin(L),b=_=null}}else y=x=0;if(s){w=s*Math.cos(f-T),k=s*Math.sin(f-T),M=s*Math.cos(u+T),A=s*Math.sin(u+T);var z=Math.abs(u-f+2*T)<=At?0:1;if(T&&Fo(w,k,M,A)===1-p^z){var O=(u+f)/2;w=s*Math.cos(O),k=s*Math.sin(O),M=A=null}}else w=k=0;if(h>kt&&(d=Math.min(Math.abs(c-s)/2,+r.apply(this,arguments)))>.001){g=s<c^p?0:1;var I=d,P=d;if(h<At){var D=null==M?[w,k]:null==b?[y,x]:si([y,x],[M,A],[b,_],[w,k]),R=y-D[0],B=x-D[1],F=b-D[0],N=_-D[1],j=1/Math.sin(Math.acos((R*F+B*N)/(Math.sqrt(R*R+B*B)*Math.sqrt(F*F+N*N)))/2),V=Math.sqrt(D[0]*D[0]+D[1]*D[1]);P=Math.min(d,(s-V)/(j-1)),I=Math.min(d,(c-V)/(j+1))}if(null!=b){var U=No(null==M?[w,k]:[M,A],[y,x],c,I,p),q=No([b,_],[w,k],c,I,p);d===I?E.push(\"M\",U[0],\"A\",I,\",\",I,\" 0 0,\",g,\" \",U[1],\"A\",c,\",\",c,\" 0 \",1-p^Fo(U[1][0],U[1][1],q[1][0],q[1][1]),\",\",p,\" \",q[1],\"A\",I,\",\",I,\" 0 0,\",g,\" \",q[0]):E.push(\"M\",U[0],\"A\",I,\",\",I,\" 0 1,\",g,\" \",q[0])}else E.push(\"M\",y,\",\",x);if(null!=M){var H=No([y,x],[M,A],s,-P,p),G=No([w,k],null==b?[y,x]:[b,_],s,-P,p);d===P?E.push(\"L\",G[0],\"A\",P,\",\",P,\" 0 0,\",g,\" \",G[1],\"A\",s,\",\",s,\" 0 \",p^Fo(G[1][0],G[1][1],H[1][0],H[1][1]),\",\",1-p,\" \",H[1],\"A\",P,\",\",P,\" 0 0,\",g,\" \",H[0]):E.push(\"L\",G[0],\"A\",P,\",\",P,\" 0 0,\",g,\" \",H[0])}else E.push(\"L\",w,\",\",k)}else E.push(\"M\",y,\",\",x),null!=b&&E.push(\"A\",c,\",\",c,\" 0 \",C,\",\",p,\" \",b,\",\",_),E.push(\"L\",w,\",\",k),null!=M&&E.push(\"A\",s,\",\",s,\" 0 \",z,\",\",1-p,\" \",M,\",\",A);return E.push(\"Z\"),E.join(\"\")}function l(t,e){return\"M0,\"+t+\"A\"+t+\",\"+t+\" 0 1,\"+e+\" 0,\"+-t+\"A\"+t+\",\"+t+\" 0 1,\"+e+\" 0,\"+t}return s.innerRadius=function(e){return arguments.length?(t=ve(e),s):t},s.outerRadius=function(t){return arguments.length?(e=ve(t),s):e},s.cornerRadius=function(t){return arguments.length?(r=ve(t),s):r},s.padRadius=function(t){return arguments.length?(n=t==Oo?Oo:ve(t),s):n},s.startAngle=function(t){return arguments.length?(i=ve(t),s):i},s.endAngle=function(t){return arguments.length?(a=ve(t),s):a},s.padAngle=function(t){return arguments.length?(o=ve(t),s):o},s.centroid=function(){var r=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,n=(+i.apply(this,arguments)+ +a.apply(this,arguments))/2-Et;return[Math.cos(n)*r,Math.sin(n)*r]},s};var Oo=\"auto\";function Io(t){return t.innerRadius}function Po(t){return t.outerRadius}function Do(t){return t.startAngle}function Ro(t){return t.endAngle}function Bo(t){return t&&t.padAngle}function Fo(t,e,r,n){return(t-r)*e-(e-n)*t>0?0:1}function No(t,e,r,n,i){var a=t[0]-e[0],o=t[1]-e[1],s=(i?n:-n)/Math.sqrt(a*a+o*o),l=s*o,c=-s*a,u=t[0]+l,f=t[1]+c,h=e[0]+l,p=e[1]+c,d=(u+h)/2,g=(f+p)/2,v=h-u,m=p-f,y=v*v+m*m,x=r-n,b=u*p-h*f,_=(m<0?-1:1)*Math.sqrt(Math.max(0,x*x*y-b*b)),w=(b*m-v*_)/y,k=(-b*v-m*_)/y,M=(b*m+v*_)/y,A=(-b*v+m*_)/y,T=w-d,S=k-g,E=M-d,C=A-g;return T*T+S*S>E*E+C*C&&(w=M,k=A),[[w-l,k-c],[w*r/x,k*r/x]]}function jo(t){var e=ei,r=ri,n=Wr,i=Uo,a=i.key,o=.7;function s(a){var s,l=[],c=[],u=-1,f=a.length,h=ve(e),p=ve(r);function d(){l.push(\"M\",i(t(c),o))}for(;++u<f;)n.call(this,s=a[u],u)?c.push([+h.call(this,s,u),+p.call(this,s,u)]):c.length&&(d(),c=[]);return c.length&&d(),l.length?l.join(\"\"):null}return s.x=function(t){return arguments.length?(e=t,s):e},s.y=function(t){return arguments.length?(r=t,s):r},s.defined=function(t){return arguments.length?(n=t,s):n},s.interpolate=function(t){return arguments.length?(a=\"function\"==typeof t?i=t:(i=Vo.get(t)||Uo).key,s):a},s.tension=function(t){return arguments.length?(o=t,s):o},s}t.svg.line=function(){return jo(z)};var Vo=t.map({linear:Uo,\"linear-closed\":qo,step:function(t){var e=0,r=t.length,n=t[0],i=[n[0],\",\",n[1]];for(;++e<r;)i.push(\"H\",(n[0]+(n=t[e])[0])/2,\"V\",n[1]);r>1&&i.push(\"H\",n[0]);return i.join(\"\")},\"step-before\":Ho,\"step-after\":Go,basis:Xo,\"basis-open\":function(t){if(t.length<4)return Uo(t);var e,r=[],n=-1,i=t.length,a=[0],o=[0];for(;++n<3;)e=t[n],a.push(e[0]),o.push(e[1]);r.push(Zo(Ko,a)+\",\"+Zo(Ko,o)),--n;for(;++n<i;)e=t[n],a.shift(),a.push(e[0]),o.shift(),o.push(e[1]),Qo(r,a,o);return r.join(\"\")},\"basis-closed\":function(t){var e,r,n=-1,i=t.length,a=i+4,o=[],s=[];for(;++n<4;)r=t[n%i],o.push(r[0]),s.push(r[1]);e=[Zo(Ko,o),\",\",Zo(Ko,s)],--n;for(;++n<a;)r=t[n%i],o.shift(),o.push(r[0]),s.shift(),s.push(r[1]),Qo(e,o,s);return e.join(\"\")},bundle:function(t,e){var r=t.length-1;if(r)for(var n,i,a=t[0][0],o=t[0][1],s=t[r][0]-a,l=t[r][1]-o,c=-1;++c<=r;)n=t[c],i=c/r,n[0]=e*n[0]+(1-e)*(a+i*s),n[1]=e*n[1]+(1-e)*(o+i*l);return Xo(t)},cardinal:function(t,e){return t.length<3?Uo(t):t[0]+Wo(t,Yo(t,e))},\"cardinal-open\":function(t,e){return t.length<4?Uo(t):t[1]+Wo(t.slice(1,-1),Yo(t,e))},\"cardinal-closed\":function(t,e){return t.length<3?qo(t):t[0]+Wo((t.push(t[0]),t),Yo([t[t.length-2]].concat(t,[t[1]]),e))},monotone:function(t){return t.length<3?Uo(t):t[0]+Wo(t,function(t){var e,r,n,i,a=[],o=function(t){var e=0,r=t.length-1,n=[],i=t[0],a=t[1],o=n[0]=ts(i,a);for(;++e<r;)n[e]=(o+(o=ts(i=a,a=t[e+1])))/2;return n[e]=o,n}(t),s=-1,l=t.length-1;for(;++s<l;)e=ts(t[s],t[s+1]),y(e)<kt?o[s]=o[s+1]=0:(r=o[s]/e,n=o[s+1]/e,(i=r*r+n*n)>9&&(i=3*e/Math.sqrt(i),o[s]=i*r,o[s+1]=i*n));s=-1;for(;++s<=l;)i=(t[Math.min(l,s+1)][0]-t[Math.max(0,s-1)][0])/(6*(1+o[s]*o[s])),a.push([i||0,o[s]*i||0]);return a}(t))}});function Uo(t){return t.length>1?t.join(\"L\"):t+\"Z\"}function qo(t){return t.join(\"L\")+\"Z\"}function Ho(t){for(var e=0,r=t.length,n=t[0],i=[n[0],\",\",n[1]];++e<r;)i.push(\"V\",(n=t[e])[1],\"H\",n[0]);return i.join(\"\")}function Go(t){for(var e=0,r=t.length,n=t[0],i=[n[0],\",\",n[1]];++e<r;)i.push(\"H\",(n=t[e])[0],\"V\",n[1]);return i.join(\"\")}function Wo(t,e){if(e.length<1||t.length!=e.length&&t.length!=e.length+2)return Uo(t);var r=t.length!=e.length,n=\"\",i=t[0],a=t[1],o=e[0],s=o,l=1;if(r&&(n+=\"Q\"+(a[0]-2*o[0]/3)+\",\"+(a[1]-2*o[1]/3)+\",\"+a[0]+\",\"+a[1],i=t[1],l=2),e.length>1){s=e[1],a=t[l],l++,n+=\"C\"+(i[0]+o[0])+\",\"+(i[1]+o[1])+\",\"+(a[0]-s[0])+\",\"+(a[1]-s[1])+\",\"+a[0]+\",\"+a[1];for(var c=2;c<e.length;c++,l++)a=t[l],s=e[c],n+=\"S\"+(a[0]-s[0])+\",\"+(a[1]-s[1])+\",\"+a[0]+\",\"+a[1]}if(r){var u=t[l];n+=\"Q\"+(a[0]+2*s[0]/3)+\",\"+(a[1]+2*s[1]/3)+\",\"+u[0]+\",\"+u[1]}return n}function Yo(t,e){for(var r,n=[],i=(1-e)/2,a=t[0],o=t[1],s=1,l=t.length;++s<l;)r=a,a=o,o=t[s],n.push([i*(o[0]-r[0]),i*(o[1]-r[1])]);return n}function Xo(t){if(t.length<3)return Uo(t);var e=1,r=t.length,n=t[0],i=n[0],a=n[1],o=[i,i,i,(n=t[1])[0]],s=[a,a,a,n[1]],l=[i,\",\",a,\"L\",Zo(Ko,o),\",\",Zo(Ko,s)];for(t.push(t[r-1]);++e<=r;)n=t[e],o.shift(),o.push(n[0]),s.shift(),s.push(n[1]),Qo(l,o,s);return t.pop(),l.push(\"L\",n),l.join(\"\")}function Zo(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}Vo.forEach(function(t,e){e.key=t,e.closed=/-closed$/.test(t)});var $o=[0,2/3,1/3,0],Jo=[0,1/3,2/3,0],Ko=[0,1/6,2/3,1/6];function Qo(t,e,r){t.push(\"C\",Zo($o,e),\",\",Zo($o,r),\",\",Zo(Jo,e),\",\",Zo(Jo,r),\",\",Zo(Ko,e),\",\",Zo(Ko,r))}function ts(t,e){return(e[1]-t[1])/(e[0]-t[0])}function es(t){for(var e,r,n,i=-1,a=t.length;++i<a;)r=(e=t[i])[0],n=e[1]-Et,e[0]=r*Math.cos(n),e[1]=r*Math.sin(n);return t}function rs(t){var e=ei,r=ei,n=0,i=ri,a=Wr,o=Uo,s=o.key,l=o,c=\"L\",u=.7;function f(s){var f,h,p,d=[],g=[],v=[],m=-1,y=s.length,x=ve(e),b=ve(n),_=e===r?function(){return h}:ve(r),w=n===i?function(){return p}:ve(i);function k(){d.push(\"M\",o(t(v),u),c,l(t(g.reverse()),u),\"Z\")}for(;++m<y;)a.call(this,f=s[m],m)?(g.push([h=+x.call(this,f,m),p=+b.call(this,f,m)]),v.push([+_.call(this,f,m),+w.call(this,f,m)])):g.length&&(k(),g=[],v=[]);return g.length&&k(),d.length?d.join(\"\"):null}return f.x=function(t){return arguments.length?(e=r=t,f):r},f.x0=function(t){return arguments.length?(e=t,f):e},f.x1=function(t){return arguments.length?(r=t,f):r},f.y=function(t){return arguments.length?(n=i=t,f):i},f.y0=function(t){return arguments.length?(n=t,f):n},f.y1=function(t){return arguments.length?(i=t,f):i},f.defined=function(t){return arguments.length?(a=t,f):a},f.interpolate=function(t){return arguments.length?(s=\"function\"==typeof t?o=t:(o=Vo.get(t)||Uo).key,l=o.reverse||o,c=o.closed?\"M\":\"L\",f):s},f.tension=function(t){return arguments.length?(u=t,f):u},f}function ns(t){return t.radius}function is(t){return[t.x,t.y]}function as(){return 64}function os(){return\"circle\"}function ss(t){var e=Math.sqrt(t/At);return\"M0,\"+e+\"A\"+e+\",\"+e+\" 0 1,1 0,\"+-e+\"A\"+e+\",\"+e+\" 0 1,1 0,\"+e+\"Z\"}t.svg.line.radial=function(){var t=jo(es);return t.radius=t.x,delete t.x,t.angle=t.y,delete t.y,t},Ho.reverse=Go,Go.reverse=Ho,t.svg.area=function(){return rs(z)},t.svg.area.radial=function(){var t=rs(es);return t.radius=t.x,delete t.x,t.innerRadius=t.x0,delete t.x0,t.outerRadius=t.x1,delete t.x1,t.angle=t.y,delete t.y,t.startAngle=t.y0,delete t.y0,t.endAngle=t.y1,delete t.y1,t},t.svg.chord=function(){var t=Vn,e=Un,r=ns,n=Do,i=Ro;function a(r,n){var i,a,c=o(this,t,r,n),u=o(this,e,r,n);return\"M\"+c.p0+s(c.r,c.p1,c.a1-c.a0)+(a=u,(i=c).a0==a.a0&&i.a1==a.a1?l(c.r,c.p1,c.r,c.p0):l(c.r,c.p1,u.r,u.p0)+s(u.r,u.p1,u.a1-u.a0)+l(u.r,u.p1,c.r,c.p0))+\"Z\"}function o(t,e,a,o){var s=e.call(t,a,o),l=r.call(t,s,o),c=n.call(t,s,o)-Et,u=i.call(t,s,o)-Et;return{r:l,a0:c,a1:u,p0:[l*Math.cos(c),l*Math.sin(c)],p1:[l*Math.cos(u),l*Math.sin(u)]}}function s(t,e,r){return\"A\"+t+\",\"+t+\" 0 \"+ +(r>At)+\",1 \"+e}function l(t,e,r,n){return\"Q 0,0 \"+n}return a.radius=function(t){return arguments.length?(r=ve(t),a):r},a.source=function(e){return arguments.length?(t=ve(e),a):t},a.target=function(t){return arguments.length?(e=ve(t),a):e},a.startAngle=function(t){return arguments.length?(n=ve(t),a):n},a.endAngle=function(t){return arguments.length?(i=ve(t),a):i},a},t.svg.diagonal=function(){var t=Vn,e=Un,r=is;function n(n,i){var a=t.call(this,n,i),o=e.call(this,n,i),s=(a.y+o.y)/2,l=[a,{x:a.x,y:s},{x:o.x,y:s},o];return\"M\"+(l=l.map(r))[0]+\"C\"+l[1]+\" \"+l[2]+\" \"+l[3]}return n.source=function(e){return arguments.length?(t=ve(e),n):t},n.target=function(t){return arguments.length?(e=ve(t),n):e},n.projection=function(t){return arguments.length?(r=t,n):r},n},t.svg.diagonal.radial=function(){var e=t.svg.diagonal(),r=is,n=e.projection;return e.projection=function(t){return arguments.length?n(function(t){return function(){var e=t.apply(this,arguments),r=e[0],n=e[1]-Et;return[r*Math.cos(n),r*Math.sin(n)]}}(r=t)):r},e},t.svg.symbol=function(){var t=os,e=as;function r(r,n){return(ls.get(t.call(this,r,n))||ss)(e.call(this,r,n))}return r.type=function(e){return arguments.length?(t=ve(e),r):t},r.size=function(t){return arguments.length?(e=ve(t),r):e},r};var ls=t.map({circle:ss,cross:function(t){var e=Math.sqrt(t/5)/2;return\"M\"+-3*e+\",\"+-e+\"H\"+-e+\"V\"+-3*e+\"H\"+e+\"V\"+-e+\"H\"+3*e+\"V\"+e+\"H\"+e+\"V\"+3*e+\"H\"+-e+\"V\"+e+\"H\"+-3*e+\"Z\"},diamond:function(t){var e=Math.sqrt(t/(2*us)),r=e*us;return\"M0,\"+-e+\"L\"+r+\",0 0,\"+e+\" \"+-r+\",0Z\"},square:function(t){var e=Math.sqrt(t)/2;return\"M\"+-e+\",\"+-e+\"L\"+e+\",\"+-e+\" \"+e+\",\"+e+\" \"+-e+\",\"+e+\"Z\"},\"triangle-down\":function(t){var e=Math.sqrt(t/cs),r=e*cs/2;return\"M0,\"+r+\"L\"+e+\",\"+-r+\" \"+-e+\",\"+-r+\"Z\"},\"triangle-up\":function(t){var e=Math.sqrt(t/cs),r=e*cs/2;return\"M0,\"+-r+\"L\"+e+\",\"+r+\" \"+-e+\",\"+r+\"Z\"}});t.svg.symbolTypes=ls.keys();var cs=Math.sqrt(3),us=Math.tan(30*Ct);Y.transition=function(t){for(var e,r,n=ds||++ms,i=bs(t),a=[],o=gs||{time:Date.now(),ease:ia,delay:0,duration:250},s=-1,l=this.length;++s<l;){a.push(e=[]);for(var c=this[s],u=-1,f=c.length;++u<f;)(r=c[u])&&_s(r,u,i,n,o),e.push(r)}return ps(a,i,n)},Y.interrupt=function(t){return this.each(null==t?fs:hs(bs(t)))};var fs=hs(bs());function hs(t){return function(){var e,r,n;(e=this[t])&&(n=e[r=e.active])&&(n.timer.c=null,n.timer.t=NaN,--e.count?delete e[r]:delete this[t],e.active+=.5,n.event&&n.event.interrupt.call(this,this.__data__,n.index))}}function ps(t,e,r){return U(t,vs),t.namespace=e,t.id=r,t}var ds,gs,vs=[],ms=0;function ys(t,e,r,n){var i=t.id,a=t.namespace;return ut(t,\"function\"==typeof r?function(t,o,s){t[a][i].tween.set(e,n(r.call(t,t.__data__,o,s)))}:(r=n(r),function(t){t[a][i].tween.set(e,r)}))}function xs(t){return null==t&&(t=\"\"),function(){this.textContent=t}}function bs(t){return null==t?\"__transition__\":\"__transition_\"+t+\"__\"}function _s(t,e,r,n,i){var a,o,s,l,c,u=t[r]||(t[r]={active:0,count:0}),f=u[n];function h(r){var i=u.active,h=u[i];for(var d in h&&(h.timer.c=null,h.timer.t=NaN,--u.count,delete u[i],h.event&&h.event.interrupt.call(t,t.__data__,h.index)),u)if(+d<n){var g=u[d];g.timer.c=null,g.timer.t=NaN,--u.count,delete u[d]}o.c=p,Me(function(){return o.c&&p(r||1)&&(o.c=null,o.t=NaN),1},0,a),u.active=n,f.event&&f.event.start.call(t,t.__data__,e),c=[],f.tween.forEach(function(r,n){(n=n.call(t,t.__data__,e))&&c.push(n)}),l=f.ease,s=f.duration}function p(i){for(var a=i/s,o=l(a),h=c.length;h>0;)c[--h].call(t,o);if(a>=1)return f.event&&f.event.end.call(t,t.__data__,e),--u.count?delete u[n]:delete t[r],1}f||(a=i.time,o=Me(function(t){var e=f.delay;if(o.t=e+a,e<=t)return h(t-e);o.c=h},0,a),f=u[n]={tween:new b,time:a,timer:o,delay:i.delay,duration:i.duration,ease:i.ease,index:e},i=null,++u.count)}vs.call=Y.call,vs.empty=Y.empty,vs.node=Y.node,vs.size=Y.size,t.transition=function(e,r){return e&&e.transition?ds?e.transition(r):e:t.selection().transition(e)},t.transition.prototype=vs,vs.select=function(t){var e,r,n,i=this.id,a=this.namespace,o=[];t=X(t);for(var s=-1,l=this.length;++s<l;){o.push(e=[]);for(var c=this[s],u=-1,f=c.length;++u<f;)(n=c[u])&&(r=t.call(n,n.__data__,u,s))?(\"__data__\"in n&&(r.__data__=n.__data__),_s(r,u,a,i,n[a][i]),e.push(r)):e.push(null)}return ps(o,a,i)},vs.selectAll=function(t){var e,r,n,i,a,o=this.id,s=this.namespace,l=[];t=Z(t);for(var c=-1,u=this.length;++c<u;)for(var f=this[c],h=-1,p=f.length;++h<p;)if(n=f[h]){a=n[s][o],r=t.call(n,n.__data__,h,c),l.push(e=[]);for(var d=-1,g=r.length;++d<g;)(i=r[d])&&_s(i,d,s,o,a),e.push(i)}return ps(l,s,o)},vs.filter=function(t){var e,r,n=[];\"function\"!=typeof t&&(t=ct(t));for(var i=0,a=this.length;i<a;i++){n.push(e=[]);for(var o,s=0,l=(o=this[i]).length;s<l;s++)(r=o[s])&&t.call(r,r.__data__,s,i)&&e.push(r)}return ps(n,this.namespace,this.id)},vs.tween=function(t,e){var r=this.id,n=this.namespace;return arguments.length<2?this.node()[n][r].tween.get(t):ut(this,null==e?function(e){e[n][r].tween.remove(t)}:function(i){i[n][r].tween.set(t,e)})},vs.attr=function(e,r){if(arguments.length<2){for(r in e)this.attr(r,e[r]);return this}var n=\"transform\"==e?ga:Zi,i=t.ns.qualify(e);function a(){this.removeAttribute(i)}function o(){this.removeAttributeNS(i.space,i.local)}return ys(this,\"attr.\"+e,r,i.local?function(t){return null==t?o:(t+=\"\",function(){var e,r=this.getAttributeNS(i.space,i.local);return r!==t&&(e=n(r,t),function(t){this.setAttributeNS(i.space,i.local,e(t))})})}:function(t){return null==t?a:(t+=\"\",function(){var e,r=this.getAttribute(i);return r!==t&&(e=n(r,t),function(t){this.setAttribute(i,e(t))})})})},vs.attrTween=function(e,r){var n=t.ns.qualify(e);return this.tween(\"attr.\"+e,n.local?function(t,e){var i=r.call(this,t,e,this.getAttributeNS(n.space,n.local));return i&&function(t){this.setAttributeNS(n.space,n.local,i(t))}}:function(t,e){var i=r.call(this,t,e,this.getAttribute(n));return i&&function(t){this.setAttribute(n,i(t))}})},vs.style=function(t,e,r){var n=arguments.length;if(n<3){if(\"string\"!=typeof t){for(r in n<2&&(e=\"\"),t)this.style(r,t[r],e);return this}r=\"\"}function i(){this.style.removeProperty(t)}return ys(this,\"style.\"+t,e,function(e){return null==e?i:(e+=\"\",function(){var n,i=o(this).getComputedStyle(this,null).getPropertyValue(t);return i!==e&&(n=Zi(i,e),function(e){this.style.setProperty(t,n(e),r)})})})},vs.styleTween=function(t,e,r){return arguments.length<3&&(r=\"\"),this.tween(\"style.\"+t,function(n,i){var a=e.call(this,n,i,o(this).getComputedStyle(this,null).getPropertyValue(t));return a&&function(e){this.style.setProperty(t,a(e),r)}})},vs.text=function(t){return ys(this,\"text\",t,xs)},vs.remove=function(){var t=this.namespace;return this.each(\"end.transition\",function(){var e;this[t].count<2&&(e=this.parentNode)&&e.removeChild(this)})},vs.ease=function(e){var r=this.id,n=this.namespace;return arguments.length<1?this.node()[n][r].ease:(\"function\"!=typeof e&&(e=t.ease.apply(t,arguments)),ut(this,function(t){t[n][r].ease=e}))},vs.delay=function(t){var e=this.id,r=this.namespace;return arguments.length<1?this.node()[r][e].delay:ut(this,\"function\"==typeof t?function(n,i,a){n[r][e].delay=+t.call(n,n.__data__,i,a)}:(t=+t,function(n){n[r][e].delay=t}))},vs.duration=function(t){var e=this.id,r=this.namespace;return arguments.length<1?this.node()[r][e].duration:ut(this,\"function\"==typeof t?function(n,i,a){n[r][e].duration=Math.max(1,t.call(n,n.__data__,i,a))}:(t=Math.max(1,t),function(n){n[r][e].duration=t}))},vs.each=function(e,r){var n=this.id,i=this.namespace;if(arguments.length<2){var a=gs,o=ds;try{ds=n,ut(this,function(t,r,a){gs=t[i][n],e.call(t,t.__data__,r,a)})}finally{gs=a,ds=o}}else ut(this,function(a){var o=a[i][n];(o.event||(o.event=t.dispatch(\"start\",\"end\",\"interrupt\"))).on(e,r)});return this},vs.transition=function(){for(var t,e,r,n=this.id,i=++ms,a=this.namespace,o=[],s=0,l=this.length;s<l;s++){o.push(t=[]);for(var c,u=0,f=(c=this[s]).length;u<f;u++)(e=c[u])&&_s(e,u,a,i,{time:(r=e[a][n]).time,ease:r.ease,delay:r.delay+r.duration,duration:r.duration}),t.push(e)}return ps(o,a,i)},t.svg.axis=function(){var e,r=t.scale.linear(),i=ws,a=6,o=6,s=3,l=[10],c=null;function u(n){n.each(function(){var n,u=t.select(this),f=this.__chart__||r,h=this.__chart__=r.copy(),p=null==c?h.ticks?h.ticks.apply(h,l):h.domain():c,d=null==e?h.tickFormat?h.tickFormat.apply(h,l):z:e,g=u.selectAll(\".tick\").data(p,h),v=g.enter().insert(\"g\",\".domain\").attr(\"class\",\"tick\").style(\"opacity\",kt),m=t.transition(g.exit()).style(\"opacity\",kt).remove(),y=t.transition(g.order()).style(\"opacity\",1),x=Math.max(a,0)+s,b=uo(h),_=u.selectAll(\".domain\").data([0]),w=(_.enter().append(\"path\").attr(\"class\",\"domain\"),t.transition(_));v.append(\"line\"),v.append(\"text\");var k,M,A,T,S=v.select(\"line\"),E=y.select(\"line\"),C=g.select(\"text\").text(d),L=v.select(\"text\"),O=y.select(\"text\"),I=\"top\"===i||\"left\"===i?-1:1;if(\"bottom\"===i||\"top\"===i?(n=Ms,k=\"x\",A=\"y\",M=\"x2\",T=\"y2\",C.attr(\"dy\",I<0?\"0em\":\".71em\").style(\"text-anchor\",\"middle\"),w.attr(\"d\",\"M\"+b[0]+\",\"+I*o+\"V0H\"+b[1]+\"V\"+I*o)):(n=As,k=\"y\",A=\"x\",M=\"y2\",T=\"x2\",C.attr(\"dy\",\".32em\").style(\"text-anchor\",I<0?\"end\":\"start\"),w.attr(\"d\",\"M\"+I*o+\",\"+b[0]+\"H0V\"+b[1]+\"H\"+I*o)),S.attr(T,I*a),L.attr(A,I*x),E.attr(M,0).attr(T,I*a),O.attr(k,0).attr(A,I*x),h.rangeBand){var P=h,D=P.rangeBand()/2;f=h=function(t){return P(t)+D}}else f.rangeBand?f=h:m.call(n,h,f);v.call(n,f,h),y.call(n,h,h)})}return u.scale=function(t){return arguments.length?(r=t,u):r},u.orient=function(t){return arguments.length?(i=t in ks?t+\"\":ws,u):i},u.ticks=function(){return arguments.length?(l=n(arguments),u):l},u.tickValues=function(t){return arguments.length?(c=t,u):c},u.tickFormat=function(t){return arguments.length?(e=t,u):e},u.tickSize=function(t){var e=arguments.length;return e?(a=+t,o=+arguments[e-1],u):a},u.innerTickSize=function(t){return arguments.length?(a=+t,u):a},u.outerTickSize=function(t){return arguments.length?(o=+t,u):o},u.tickPadding=function(t){return arguments.length?(s=+t,u):s},u.tickSubdivide=function(){return arguments.length&&u},u};var ws=\"bottom\",ks={top:1,right:1,bottom:1,left:1};function Ms(t,e,r){t.attr(\"transform\",function(t){var n=e(t);return\"translate(\"+(isFinite(n)?n:r(t))+\",0)\"})}function As(t,e,r){t.attr(\"transform\",function(t){var n=e(t);return\"translate(0,\"+(isFinite(n)?n:r(t))+\")\"})}t.svg.brush=function(){var e,r,n=j(h,\"brushstart\",\"brush\",\"brushend\"),i=null,a=null,s=[0,0],l=[0,0],c=!0,u=!0,f=Ss[0];function h(e){e.each(function(){var e=t.select(this).style(\"pointer-events\",\"all\").style(\"-webkit-tap-highlight-color\",\"rgba(0,0,0,0)\").on(\"mousedown.brush\",v).on(\"touchstart.brush\",v),r=e.selectAll(\".background\").data([0]);r.enter().append(\"rect\").attr(\"class\",\"background\").style(\"visibility\",\"hidden\").style(\"cursor\",\"crosshair\"),e.selectAll(\".extent\").data([0]).enter().append(\"rect\").attr(\"class\",\"extent\").style(\"cursor\",\"move\");var n=e.selectAll(\".resize\").data(f,z);n.exit().remove(),n.enter().append(\"g\").attr(\"class\",function(t){return\"resize \"+t}).style(\"cursor\",function(t){return Ts[t]}).append(\"rect\").attr(\"x\",function(t){return/[ew]$/.test(t)?-3:null}).attr(\"y\",function(t){return/^[ns]/.test(t)?-3:null}).attr(\"width\",6).attr(\"height\",6).style(\"visibility\",\"hidden\"),n.style(\"display\",h.empty()?\"none\":null);var o,s=t.transition(e),l=t.transition(r);i&&(o=uo(i),l.attr(\"x\",o[0]).attr(\"width\",o[1]-o[0]),d(s)),a&&(o=uo(a),l.attr(\"y\",o[0]).attr(\"height\",o[1]-o[0]),g(s)),p(s)})}function p(t){t.selectAll(\".resize\").attr(\"transform\",function(t){return\"translate(\"+s[+/e$/.test(t)]+\",\"+l[+/^s/.test(t)]+\")\"})}function d(t){t.select(\".extent\").attr(\"x\",s[0]),t.selectAll(\".extent,.n>rect,.s>rect\").attr(\"width\",s[1]-s[0])}function g(t){t.select(\".extent\").attr(\"y\",l[0]),t.selectAll(\".extent,.e>rect,.w>rect\").attr(\"height\",l[1]-l[0])}function v(){var f,v,m=this,y=t.select(t.event.target),x=n.of(m,arguments),b=t.select(m),_=y.datum(),w=!/^(n|s)$/.test(_)&&i,k=!/^(e|w)$/.test(_)&&a,M=y.classed(\"extent\"),A=xt(m),T=t.mouse(m),S=t.select(o(m)).on(\"keydown.brush\",function(){32==t.event.keyCode&&(M||(f=null,T[0]-=s[1],T[1]-=l[1],M=2),F())}).on(\"keyup.brush\",function(){32==t.event.keyCode&&2==M&&(T[0]+=s[1],T[1]+=l[1],M=0,F())});if(t.event.changedTouches?S.on(\"touchmove.brush\",L).on(\"touchend.brush\",O):S.on(\"mousemove.brush\",L).on(\"mouseup.brush\",O),b.interrupt().selectAll(\"*\").interrupt(),M)T[0]=s[0]-T[0],T[1]=l[0]-T[1];else if(_){var E=+/w$/.test(_),C=+/^n/.test(_);v=[s[1-E]-T[0],l[1-C]-T[1]],T[0]=s[E],T[1]=l[C]}else t.event.altKey&&(f=T.slice());function L(){var e=t.mouse(m),r=!1;v&&(e[0]+=v[0],e[1]+=v[1]),M||(t.event.altKey?(f||(f=[(s[0]+s[1])/2,(l[0]+l[1])/2]),T[0]=s[+(e[0]<f[0])],T[1]=l[+(e[1]<f[1])]):f=null),w&&z(e,i,0)&&(d(b),r=!0),k&&z(e,a,1)&&(g(b),r=!0),r&&(p(b),x({type:\"brush\",mode:M?\"move\":\"resize\"}))}function z(t,n,i){var a,o,h=uo(n),p=h[0],d=h[1],g=T[i],v=i?l:s,m=v[1]-v[0];if(M&&(p-=g,d-=m+g),a=(i?u:c)?Math.max(p,Math.min(d,t[i])):t[i],M?o=(a+=g)+m:(f&&(g=Math.max(p,Math.min(d,2*f[i]-a))),g<a?(o=a,a=g):o=g),v[0]!=a||v[1]!=o)return i?r=null:e=null,v[0]=a,v[1]=o,!0}function O(){L(),b.style(\"pointer-events\",\"all\").selectAll(\".resize\").style(\"display\",h.empty()?\"none\":null),t.select(\"body\").style(\"cursor\",null),S.on(\"mousemove.brush\",null).on(\"mouseup.brush\",null).on(\"touchmove.brush\",null).on(\"touchend.brush\",null).on(\"keydown.brush\",null).on(\"keyup.brush\",null),A(),x({type:\"brushend\"})}b.style(\"pointer-events\",\"none\").selectAll(\".resize\").style(\"display\",null),t.select(\"body\").style(\"cursor\",y.style(\"cursor\")),x({type:\"brushstart\"}),L()}return h.event=function(i){i.each(function(){var i=n.of(this,arguments),a={x:s,y:l,i:e,j:r},o=this.__chart__||a;this.__chart__=a,ds?t.select(this).transition().each(\"start.brush\",function(){e=o.i,r=o.j,s=o.x,l=o.y,i({type:\"brushstart\"})}).tween(\"brush:brush\",function(){var t=$i(s,a.x),n=$i(l,a.y);return e=r=null,function(e){s=a.x=t(e),l=a.y=n(e),i({type:\"brush\",mode:\"resize\"})}}).each(\"end.brush\",function(){e=a.i,r=a.j,i({type:\"brush\",mode:\"resize\"}),i({type:\"brushend\"})}):(i({type:\"brushstart\"}),i({type:\"brush\",mode:\"resize\"}),i({type:\"brushend\"}))})},h.x=function(t){return arguments.length?(f=Ss[!(i=t)<<1|!a],h):i},h.y=function(t){return arguments.length?(f=Ss[!i<<1|!(a=t)],h):a},h.clamp=function(t){return arguments.length?(i&&a?(c=!!t[0],u=!!t[1]):i?c=!!t:a&&(u=!!t),h):i&&a?[c,u]:i?c:a?u:null},h.extent=function(t){var n,o,c,u,f;return arguments.length?(i&&(n=t[0],o=t[1],a&&(n=n[0],o=o[0]),e=[n,o],i.invert&&(n=i(n),o=i(o)),o<n&&(f=n,n=o,o=f),n==s[0]&&o==s[1]||(s=[n,o])),a&&(c=t[0],u=t[1],i&&(c=c[1],u=u[1]),r=[c,u],a.invert&&(c=a(c),u=a(u)),u<c&&(f=c,c=u,u=f),c==l[0]&&u==l[1]||(l=[c,u])),h):(i&&(e?(n=e[0],o=e[1]):(n=s[0],o=s[1],i.invert&&(n=i.invert(n),o=i.invert(o)),o<n&&(f=n,n=o,o=f))),a&&(r?(c=r[0],u=r[1]):(c=l[0],u=l[1],a.invert&&(c=a.invert(c),u=a.invert(u)),u<c&&(f=c,c=u,u=f))),i&&a?[[n,c],[o,u]]:i?[n,o]:a&&[c,u])},h.clear=function(){return h.empty()||(s=[0,0],l=[0,0],e=r=null),h},h.empty=function(){return!!i&&s[0]==s[1]||!!a&&l[0]==l[1]},t.rebind(h,n,\"on\")};var Ts={n:\"ns-resize\",e:\"ew-resize\",s:\"ns-resize\",w:\"ew-resize\",nw:\"nwse-resize\",ne:\"nesw-resize\",se:\"nwse-resize\",sw:\"nesw-resize\"},Ss=[[\"n\",\"e\",\"s\",\"w\",\"nw\",\"ne\",\"se\",\"sw\"],[\"e\",\"w\"],[\"n\",\"s\"],[]],Es=Ie.format=sr.timeFormat,Cs=Es.utc,Ls=Cs(\"%Y-%m-%dT%H:%M:%S.%LZ\");function zs(t){return t.toISOString()}function Os(e,r,n){function i(t){return e(t)}function a(e,n){var i=(e[1]-e[0])/n,a=t.bisect(Ps,i);return a==Ps.length?[r.year,xo(e.map(function(t){return t/31536e6}),n)[2]]:a?r[i/Ps[a-1]<Ps[a]/i?a-1:a]:[Bs,xo(e,n)[2]]}return i.invert=function(t){return Is(e.invert(t))},i.domain=function(t){return arguments.length?(e.domain(t),i):e.domain().map(Is)},i.nice=function(t,e){var r=i.domain(),n=co(r),o=null==t?a(n,10):\"number\"==typeof t&&a(n,t);function s(r){return!isNaN(r)&&!t.range(r,Is(+r+1),e).length}return o&&(t=o[0],e=o[1]),i.domain(ho(r,e>1?{floor:function(e){for(;s(e=t.floor(e));)e=Is(e-1);return e},ceil:function(e){for(;s(e=t.ceil(e));)e=Is(+e+1);return e}}:t))},i.ticks=function(t,e){var r=co(i.domain()),n=null==t?a(r,10):\"number\"==typeof t?a(r,t):!t.range&&[{range:t},e];return n&&(t=n[0],e=n[1]),t.range(r[0],Is(+r[1]+1),e<1?1:e)},i.tickFormat=function(){return n},i.copy=function(){return Os(e.copy(),r,n)},mo(i,e)}function Is(t){return new Date(t)}Es.iso=Date.prototype.toISOString&&+new Date(\"2000-01-01T00:00:00.000Z\")?zs:Ls,zs.parse=function(t){var e=new Date(t);return isNaN(e)?null:e},zs.toString=Ls.toString,Ie.second=Be(function(t){return new Pe(1e3*Math.floor(t/1e3))},function(t,e){t.setTime(t.getTime()+1e3*Math.floor(e))},function(t){return t.getSeconds()}),Ie.seconds=Ie.second.range,Ie.seconds.utc=Ie.second.utc.range,Ie.minute=Be(function(t){return new Pe(6e4*Math.floor(t/6e4))},function(t,e){t.setTime(t.getTime()+6e4*Math.floor(e))},function(t){return t.getMinutes()}),Ie.minutes=Ie.minute.range,Ie.minutes.utc=Ie.minute.utc.range,Ie.hour=Be(function(t){var e=t.getTimezoneOffset()/60;return new Pe(36e5*(Math.floor(t/36e5-e)+e))},function(t,e){t.setTime(t.getTime()+36e5*Math.floor(e))},function(t){return t.getHours()}),Ie.hours=Ie.hour.range,Ie.hours.utc=Ie.hour.utc.range,Ie.month=Be(function(t){return(t=Ie.day(t)).setDate(1),t},function(t,e){t.setMonth(t.getMonth()+e)},function(t){return t.getMonth()}),Ie.months=Ie.month.range,Ie.months.utc=Ie.month.utc.range;var Ps=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],Ds=[[Ie.second,1],[Ie.second,5],[Ie.second,15],[Ie.second,30],[Ie.minute,1],[Ie.minute,5],[Ie.minute,15],[Ie.minute,30],[Ie.hour,1],[Ie.hour,3],[Ie.hour,6],[Ie.hour,12],[Ie.day,1],[Ie.day,2],[Ie.week,1],[Ie.month,1],[Ie.month,3],[Ie.year,1]],Rs=Es.multi([[\".%L\",function(t){return t.getMilliseconds()}],[\":%S\",function(t){return t.getSeconds()}],[\"%I:%M\",function(t){return t.getMinutes()}],[\"%I %p\",function(t){return t.getHours()}],[\"%a %d\",function(t){return t.getDay()&&1!=t.getDate()}],[\"%b %d\",function(t){return 1!=t.getDate()}],[\"%B\",function(t){return t.getMonth()}],[\"%Y\",Wr]]),Bs={range:function(e,r,n){return t.range(Math.ceil(e/n)*n,+r,n).map(Is)},floor:z,ceil:z};Ds.year=Ie.year,Ie.scale=function(){return Os(t.scale.linear(),Ds,Rs)};var Fs=Ds.map(function(t){return[t[0].utc,t[1]]}),Ns=Cs.multi([[\".%L\",function(t){return t.getUTCMilliseconds()}],[\":%S\",function(t){return t.getUTCSeconds()}],[\"%I:%M\",function(t){return t.getUTCMinutes()}],[\"%I %p\",function(t){return t.getUTCHours()}],[\"%a %d\",function(t){return t.getUTCDay()&&1!=t.getUTCDate()}],[\"%b %d\",function(t){return 1!=t.getUTCDate()}],[\"%B\",function(t){return t.getUTCMonth()}],[\"%Y\",Wr]]);function js(t){return JSON.parse(t.responseText)}function Vs(t){var e=i.createRange();return e.selectNode(i.body),e.createContextualFragment(t.responseText)}Fs.year=Ie.year.utc,Ie.scale.utc=function(){return Os(t.scale.linear(),Fs,Ns)},t.text=me(function(t){return t.responseText}),t.json=function(t,e){return ye(t,\"application/json\",js,e)},t.html=function(t,e){return ye(t,\"text/html\",Vs,e)},t.xml=me(function(t){return t.responseXML}),\"object\"==typeof e&&e.exports?e.exports=t:this.d3=t}()},{}],149:[function(t,e,r){e.exports=function(){for(var t=0;t<arguments.length;t++)if(void 0!==arguments[t])return arguments[t]}},{}],150:[function(t,e,r){\"use strict\";var n=t(\"incremental-convex-hull\"),i=t(\"uniq\");function a(t,e){this.point=t,this.index=e}function o(t,e){for(var r=t.point,n=e.point,i=r.length,a=0;a<i;++a){var o=n[a]-r[a];if(o)return o}return 0}e.exports=function(t,e){var r=t.length;if(0===r)return[];var s=t[0].length;if(s<1)return[];if(1===s)return function(t,e,r){if(1===t)return r?[[-1,0]]:[];var n=e.map(function(t,e){return[t[0],e]});n.sort(function(t,e){return t[0]-e[0]});for(var i=new Array(t-1),a=1;a<t;++a){var o=n[a-1],s=n[a];i[a-1]=[o[1],s[1]]}r&&i.push([-1,i[0][1]],[i[t-1][1],-1]);return i}(r,t,e);for(var l=new Array(r),c=1,u=0;u<r;++u){for(var f=t[u],h=new Array(s+1),p=0,d=0;d<s;++d){var g=f[d];h[d]=g,p+=g*g}h[s]=p,l[u]=new a(h,u),c=Math.max(p,c)}i(l,o),r=l.length;for(var v=new Array(r+s+1),m=new Array(r+s+1),y=(s+1)*(s+1)*c,x=new Array(s+1),u=0;u<=s;++u)x[u]=0;x[s]=y,v[0]=x.slice(),m[0]=-1;for(var u=0;u<=s;++u){var h=x.slice();h[u]=1,v[u+1]=h,m[u+1]=-1}for(var u=0;u<r;++u){var b=l[u];v[u+s+1]=b.point,m[u+s+1]=b.index}var _=n(v,!1);_=e?_.filter(function(t){for(var e=0,r=0;r<=s;++r){var n=m[t[r]];if(n<0&&++e>=2)return!1;t[r]=n}return!0}):_.filter(function(t){for(var e=0;e<=s;++e){var r=m[t[e]];if(r<0)return!1;t[e]=r}return!0});if(1&s)for(var u=0;u<_.length;++u){var b=_[u],h=b[0];b[0]=b[1],b[1]=h}return _}},{\"incremental-convex-hull\":396,uniq:524}],151:[function(t,e,r){\"use strict\";e.exports=a;var n=(a.canvas=document.createElement(\"canvas\")).getContext(\"2d\"),i=o([32,126]);function a(t,e){Array.isArray(t)&&(t=t.join(\", \"));var r,a={},s=16,l=.05;e&&(2===e.length&&\"number\"==typeof e[0]?r=o(e):Array.isArray(e)?r=e:(e.o?r=o(e.o):e.pairs&&(r=e.pairs),e.fontSize&&(s=e.fontSize),null!=e.threshold&&(l=e.threshold))),r||(r=i),n.font=s+\"px \"+t;for(var c=0;c<r.length;c++){var u=r[c],f=n.measureText(u[0]).width+n.measureText(u[1]).width,h=n.measureText(u).width;if(Math.abs(f-h)>s*l){var p=(h-f)/s;a[u]=1e3*p}}return a}function o(t){for(var e=[],r=t[0];r<=t[1];r++)for(var n=String.fromCharCode(r),i=t[0];i<t[1];i++){var a=n+String.fromCharCode(i);e.push(a)}return e}a.createPairs=o,a.ascii=i},{}],152:[function(t,e,r){(function(t){var r=!1;if(\"undefined\"!=typeof Float64Array){var n=new Float64Array(1),i=new Uint32Array(n.buffer);if(n[0]=1,r=!0,1072693248===i[1]){e.exports=function(t){return n[0]=t,[i[0],i[1]]},e.exports.pack=function(t,e){return i[0]=t,i[1]=e,n[0]},e.exports.lo=function(t){return n[0]=t,i[0]},e.exports.hi=function(t){return n[0]=t,i[1]}}else if(1072693248===i[0]){e.exports=function(t){return n[0]=t,[i[1],i[0]]},e.exports.pack=function(t,e){return i[1]=t,i[0]=e,n[0]},e.exports.lo=function(t){return n[0]=t,i[1]},e.exports.hi=function(t){return n[0]=t,i[0]}}else r=!1}if(!r){var a=new t(8);e.exports=function(t){return a.writeDoubleLE(t,0,!0),[a.readUInt32LE(0,!0),a.readUInt32LE(4,!0)]},e.exports.pack=function(t,e){return a.writeUInt32LE(t,0,!0),a.writeUInt32LE(e,4,!0),a.readDoubleLE(0,!0)},e.exports.lo=function(t){return a.writeDoubleLE(t,0,!0),a.readUInt32LE(0,!0)},e.exports.hi=function(t){return a.writeDoubleLE(t,0,!0),a.readUInt32LE(4,!0)}}e.exports.sign=function(t){return e.exports.hi(t)>>>31},e.exports.exponent=function(t){return(e.exports.hi(t)<<1>>>21)-1023},e.exports.fraction=function(t){var r=e.exports.lo(t),n=e.exports.hi(t),i=1048575&n;return 2146435072&n&&(i+=1<<20),[r,i]},e.exports.denormalized=function(t){return!(2146435072&e.exports.hi(t))}}).call(this,t(\"buffer\").Buffer)},{buffer:93}],153:[function(t,e,r){var n=t(\"abs-svg-path\"),i=t(\"normalize-svg-path\"),a={M:\"moveTo\",C:\"bezierCurveTo\"};e.exports=function(t,e){t.beginPath(),i(n(e)).forEach(function(e){var r=e[0],n=e.slice(1);t[a[r]].apply(t,n)}),t.closePath()}},{\"abs-svg-path\":48,\"normalize-svg-path\":435}],154:[function(t,e,r){e.exports=function(t){switch(t){case\"int8\":return Int8Array;case\"int16\":return Int16Array;case\"int32\":return Int32Array;case\"uint8\":return Uint8Array;case\"uint16\":return Uint16Array;case\"uint32\":return Uint32Array;case\"float32\":return Float32Array;case\"float64\":return Float64Array;case\"array\":return Array;case\"uint8_clamped\":return Uint8ClampedArray}}},{}],155:[function(t,e,r){\"use strict\";e.exports=function(t,e){switch(\"undefined\"==typeof e&&(e=0),typeof t){case\"number\":if(t>0)return function(t,e){var r,n;for(r=new Array(t),n=0;n<t;++n)r[n]=e;return r}(0|t,e);break;case\"object\":if(\"number\"==typeof t.length)return function t(e,r,n){var i=0|e[n];if(i<=0)return[];var a,o=new Array(i);if(n===e.length-1)for(a=0;a<i;++a)o[a]=r;else for(a=0;a<i;++a)o[a]=t(e,r,n+1);return o}(t,e,0)}return[]}},{}],156:[function(t,e,r){\"use strict\";function n(t,e,r){r=r||2;var n,s,l,c,u,p,g,v=e&&e.length,m=v?e[0]*r:t.length,y=i(t,0,m,r,!0),x=[];if(!y)return x;if(v&&(y=function(t,e,r,n){var o,s,l,c,u,p=[];for(o=0,s=e.length;o<s;o++)l=e[o]*n,c=o<s-1?e[o+1]*n:t.length,(u=i(t,l,c,n,!1))===u.next&&(u.steiner=!0),p.push(d(u));for(p.sort(f),o=0;o<p.length;o++)h(p[o],r),r=a(r,r.next);return r}(t,e,y,r)),t.length>80*r){n=l=t[0],s=c=t[1];for(var b=r;b<m;b+=r)(u=t[b])<n&&(n=u),(p=t[b+1])<s&&(s=p),u>l&&(l=u),p>c&&(c=p);g=0!==(g=Math.max(l-n,c-s))?1/g:0}return o(y,x,r,n,s,g),x}function i(t,e,r,n,i){var a,o;if(i===A(t,e,r,n)>0)for(a=e;a<r;a+=n)o=w(a,t[a],t[a+1],o);else for(a=r-n;a>=e;a-=n)o=w(a,t[a],t[a+1],o);return o&&y(o,o.next)&&(k(o),o=o.next),o}function a(t,e){if(!t)return t;e||(e=t);var r,n=t;do{if(r=!1,n.steiner||!y(n,n.next)&&0!==m(n.prev,n,n.next))n=n.next;else{if(k(n),(n=e=n.prev)===n.next)break;r=!0}}while(r||n!==e);return e}function o(t,e,r,n,i,f,h){if(t){!h&&f&&function(t,e,r,n){var i=t;do{null===i.z&&(i.z=p(i.x,i.y,e,r,n)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==t);i.prevZ.nextZ=null,i.prevZ=null,function(t){var e,r,n,i,a,o,s,l,c=1;do{for(r=t,t=null,a=null,o=0;r;){for(o++,n=r,s=0,e=0;e<c&&(s++,n=n.nextZ);e++);for(l=c;s>0||l>0&&n;)0!==s&&(0===l||!n||r.z<=n.z)?(i=r,r=r.nextZ,s--):(i=n,n=n.nextZ,l--),a?a.nextZ=i:t=i,i.prevZ=a,a=i;r=n}a.nextZ=null,c*=2}while(o>1)}(i)}(t,n,i,f);for(var d,g,v=t;t.prev!==t.next;)if(d=t.prev,g=t.next,f?l(t,n,i,f):s(t))e.push(d.i/r),e.push(t.i/r),e.push(g.i/r),k(t),t=g.next,v=g.next;else if((t=g)===v){h?1===h?o(t=c(t,e,r),e,r,n,i,f,2):2===h&&u(t,e,r,n,i,f):o(a(t),e,r,n,i,f,1);break}}}function s(t){var e=t.prev,r=t,n=t.next;if(m(e,r,n)>=0)return!1;for(var i=t.next.next;i!==t.prev;){if(g(e.x,e.y,r.x,r.y,n.x,n.y,i.x,i.y)&&m(i.prev,i,i.next)>=0)return!1;i=i.next}return!0}function l(t,e,r,n){var i=t.prev,a=t,o=t.next;if(m(i,a,o)>=0)return!1;for(var s=i.x<a.x?i.x<o.x?i.x:o.x:a.x<o.x?a.x:o.x,l=i.y<a.y?i.y<o.y?i.y:o.y:a.y<o.y?a.y:o.y,c=i.x>a.x?i.x>o.x?i.x:o.x:a.x>o.x?a.x:o.x,u=i.y>a.y?i.y>o.y?i.y:o.y:a.y>o.y?a.y:o.y,f=p(s,l,e,r,n),h=p(c,u,e,r,n),d=t.prevZ,v=t.nextZ;d&&d.z>=f&&v&&v.z<=h;){if(d!==t.prev&&d!==t.next&&g(i.x,i.y,a.x,a.y,o.x,o.y,d.x,d.y)&&m(d.prev,d,d.next)>=0)return!1;if(d=d.prevZ,v!==t.prev&&v!==t.next&&g(i.x,i.y,a.x,a.y,o.x,o.y,v.x,v.y)&&m(v.prev,v,v.next)>=0)return!1;v=v.nextZ}for(;d&&d.z>=f;){if(d!==t.prev&&d!==t.next&&g(i.x,i.y,a.x,a.y,o.x,o.y,d.x,d.y)&&m(d.prev,d,d.next)>=0)return!1;d=d.prevZ}for(;v&&v.z<=h;){if(v!==t.prev&&v!==t.next&&g(i.x,i.y,a.x,a.y,o.x,o.y,v.x,v.y)&&m(v.prev,v,v.next)>=0)return!1;v=v.nextZ}return!0}function c(t,e,r){var n=t;do{var i=n.prev,a=n.next.next;!y(i,a)&&x(i,n,n.next,a)&&b(i,a)&&b(a,i)&&(e.push(i.i/r),e.push(n.i/r),e.push(a.i/r),k(n),k(n.next),n=t=a),n=n.next}while(n!==t);return n}function u(t,e,r,n,i,s){var l=t;do{for(var c=l.next.next;c!==l.prev;){if(l.i!==c.i&&v(l,c)){var u=_(l,c);return l=a(l,l.next),u=a(u,u.next),o(l,e,r,n,i,s),void o(u,e,r,n,i,s)}c=c.next}l=l.next}while(l!==t)}function f(t,e){return t.x-e.x}function h(t,e){if(e=function(t,e){var r,n=e,i=t.x,a=t.y,o=-1/0;do{if(a<=n.y&&a>=n.next.y&&n.next.y!==n.y){var s=n.x+(a-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(s<=i&&s>o){if(o=s,s===i){if(a===n.y)return n;if(a===n.next.y)return n.next}r=n.x<n.next.x?n:n.next}}n=n.next}while(n!==e);if(!r)return null;if(i===o)return r.prev;var l,c=r,u=r.x,f=r.y,h=1/0;n=r.next;for(;n!==c;)i>=n.x&&n.x>=u&&i!==n.x&&g(a<f?i:o,a,u,f,a<f?o:i,a,n.x,n.y)&&((l=Math.abs(a-n.y)/(i-n.x))<h||l===h&&n.x>r.x)&&b(n,t)&&(r=n,h=l),n=n.next;return r}(t,e)){var r=_(e,t);a(r,r.next)}}function p(t,e,r,n,i){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-r)*i)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-n)*i)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function d(t){var e=t,r=t;do{e.x<r.x&&(r=e),e=e.next}while(e!==t);return r}function g(t,e,r,n,i,a,o,s){return(i-o)*(e-s)-(t-o)*(a-s)>=0&&(t-o)*(n-s)-(r-o)*(e-s)>=0&&(r-o)*(a-s)-(i-o)*(n-s)>=0}function v(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){var r=t;do{if(r.i!==t.i&&r.next.i!==t.i&&r.i!==e.i&&r.next.i!==e.i&&x(r,r.next,t,e))return!0;r=r.next}while(r!==t);return!1}(t,e)&&b(t,e)&&b(e,t)&&function(t,e){var r=t,n=!1,i=(t.x+e.x)/2,a=(t.y+e.y)/2;do{r.y>a!=r.next.y>a&&r.next.y!==r.y&&i<(r.next.x-r.x)*(a-r.y)/(r.next.y-r.y)+r.x&&(n=!n),r=r.next}while(r!==t);return n}(t,e)}function m(t,e,r){return(e.y-t.y)*(r.x-e.x)-(e.x-t.x)*(r.y-e.y)}function y(t,e){return t.x===e.x&&t.y===e.y}function x(t,e,r,n){return!!(y(t,e)&&y(r,n)||y(t,n)&&y(r,e))||m(t,e,r)>0!=m(t,e,n)>0&&m(r,n,t)>0!=m(r,n,e)>0}function b(t,e){return m(t.prev,t,t.next)<0?m(t,e,t.next)>=0&&m(t,t.prev,e)>=0:m(t,e,t.prev)<0||m(t,t.next,e)<0}function _(t,e){var r=new M(t.i,t.x,t.y),n=new M(e.i,e.x,e.y),i=t.next,a=e.prev;return t.next=e,e.prev=t,r.next=i,i.prev=r,n.next=r,r.prev=n,a.next=n,n.prev=a,n}function w(t,e,r,n){var i=new M(t,e,r);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function k(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function M(t,e,r){this.i=t,this.x=e,this.y=r,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function A(t,e,r,n){for(var i=0,a=e,o=r-n;a<r;a+=n)i+=(t[o]-t[a])*(t[a+1]+t[o+1]),o=a;return i}e.exports=n,e.exports.default=n,n.deviation=function(t,e,r,n){var i=e&&e.length,a=i?e[0]*r:t.length,o=Math.abs(A(t,0,a,r));if(i)for(var s=0,l=e.length;s<l;s++){var c=e[s]*r,u=s<l-1?e[s+1]*r:t.length;o-=Math.abs(A(t,c,u,r))}var f=0;for(s=0;s<n.length;s+=3){var h=n[s]*r,p=n[s+1]*r,d=n[s+2]*r;f+=Math.abs((t[h]-t[d])*(t[p+1]-t[h+1])-(t[h]-t[p])*(t[d+1]-t[h+1]))}return 0===o&&0===f?0:Math.abs((f-o)/o)},n.flatten=function(t){for(var e=t[0][0].length,r={vertices:[],holes:[],dimensions:e},n=0,i=0;i<t.length;i++){for(var a=0;a<t[i].length;a++)for(var o=0;o<e;o++)r.vertices.push(t[i][a][o]);i>0&&(n+=t[i-1].length,r.holes.push(n))}return r}},{}],157:[function(t,e,r){\"use strict\";e.exports=function(t,e){var r=t.length;if(\"number\"!=typeof e){e=0;for(var i=0;i<r;++i){var a=t[i];e=Math.max(e,a[0],a[1])}e=1+(0|e)}e|=0;for(var o=new Array(e),i=0;i<e;++i)o[i]=[];for(var i=0;i<r;++i){var a=t[i];o[a[0]].push(a[1]),o[a[1]].push(a[0])}for(var s=0;s<e;++s)n(o[s],function(t,e){return t-e});return o};var n=t(\"uniq\")},{uniq:524}],158:[function(t,e,r){\"use strict\";var n=t(\"../../object/valid-value\");e.exports=function(){return n(this).length=0,this}},{\"../../object/valid-value\":190}],159:[function(t,e,r){\"use strict\";e.exports=t(\"./is-implemented\")()?Array.from:t(\"./shim\")},{\"./is-implemented\":160,\"./shim\":161}],160:[function(t,e,r){\"use strict\";e.exports=function(){var t,e,r=Array.from;return\"function\"==typeof r&&(e=r(t=[\"raz\",\"dwa\"]),Boolean(e&&e!==t&&\"dwa\"===e[1]))}},{}],161:[function(t,e,r){\"use strict\";var n=t(\"es6-symbol\").iterator,i=t(\"../../function/is-arguments\"),a=t(\"../../function/is-function\"),o=t(\"../../number/to-pos-integer\"),s=t(\"../../object/valid-callable\"),l=t(\"../../object/valid-value\"),c=t(\"../../object/is-value\"),u=t(\"../../string/is-string\"),f=Array.isArray,h=Function.prototype.call,p={configurable:!0,enumerable:!0,writable:!0,value:null},d=Object.defineProperty;e.exports=function(t){var e,r,g,v,m,y,x,b,_,w,k=arguments[1],M=arguments[2];if(t=Object(l(t)),c(k)&&s(k),this&&this!==Array&&a(this))e=this;else{if(!k){if(i(t))return 1!==(m=t.length)?Array.apply(null,t):((v=new Array(1))[0]=t[0],v);if(f(t)){for(v=new Array(m=t.length),r=0;r<m;++r)v[r]=t[r];return v}}v=[]}if(!f(t))if(void 0!==(_=t[n])){for(x=s(_).call(t),e&&(v=new e),b=x.next(),r=0;!b.done;)w=k?h.call(k,M,b.value,r):b.value,e?(p.value=w,d(v,r,p)):v[r]=w,b=x.next(),++r;m=r}else if(u(t)){for(m=t.length,e&&(v=new e),r=0,g=0;r<m;++r)w=t[r],r+1<m&&(y=w.charCodeAt(0))>=55296&&y<=56319&&(w+=t[++r]),w=k?h.call(k,M,w,g):w,e?(p.value=w,d(v,g,p)):v[g]=w,++g;m=g}if(void 0===m)for(m=o(t.length),e&&(v=new e(m)),r=0;r<m;++r)w=k?h.call(k,M,t[r],r):t[r],e?(p.value=w,d(v,r,p)):v[r]=w;return e&&(p.value=null,v.length=m),v}},{\"../../function/is-arguments\":162,\"../../function/is-function\":163,\"../../number/to-pos-integer\":169,\"../../object/is-value\":179,\"../../object/valid-callable\":188,\"../../object/valid-value\":190,\"../../string/is-string\":194,\"es6-symbol\":204}],162:[function(t,e,r){\"use strict\";var n=Object.prototype.toString,i=n.call(function(){return arguments}());e.exports=function(t){return n.call(t)===i}},{}],163:[function(t,e,r){\"use strict\";var n=Object.prototype.toString,i=n.call(t(\"./noop\"));e.exports=function(t){return\"function\"==typeof t&&n.call(t)===i}},{\"./noop\":164}],164:[function(t,e,r){\"use strict\";e.exports=function(){}},{}],165:[function(t,e,r){\"use strict\";e.exports=t(\"./is-implemented\")()?Math.sign:t(\"./shim\")},{\"./is-implemented\":166,\"./shim\":167}],166:[function(t,e,r){\"use strict\";e.exports=function(){var t=Math.sign;return\"function\"==typeof t&&(1===t(10)&&-1===t(-20))}},{}],167:[function(t,e,r){\"use strict\";e.exports=function(t){return t=Number(t),isNaN(t)||0===t?t:t>0?1:-1}},{}],168:[function(t,e,r){\"use strict\";var n=t(\"../math/sign\"),i=Math.abs,a=Math.floor;e.exports=function(t){return isNaN(t)?0:0!==(t=Number(t))&&isFinite(t)?n(t)*a(i(t)):t}},{\"../math/sign\":165}],169:[function(t,e,r){\"use strict\";var n=t(\"./to-integer\"),i=Math.max;e.exports=function(t){return i(0,n(t))}},{\"./to-integer\":168}],170:[function(t,e,r){\"use strict\";var n=t(\"./valid-callable\"),i=t(\"./valid-value\"),a=Function.prototype.bind,o=Function.prototype.call,s=Object.keys,l=Object.prototype.propertyIsEnumerable;e.exports=function(t,e){return function(r,c){var u,f=arguments[2],h=arguments[3];return r=Object(i(r)),n(c),u=s(r),h&&u.sort(\"function\"==typeof h?a.call(h,r):void 0),\"function\"!=typeof t&&(t=u[t]),o.call(t,u,function(t,n){return l.call(r,t)?o.call(c,f,r[t],t,r,n):e})}}},{\"./valid-callable\":188,\"./valid-value\":190}],171:[function(t,e,r){\"use strict\";e.exports=t(\"./is-implemented\")()?Object.assign:t(\"./shim\")},{\"./is-implemented\":172,\"./shim\":173}],172:[function(t,e,r){\"use strict\";e.exports=function(){var t,e=Object.assign;return\"function\"==typeof e&&(e(t={foo:\"raz\"},{bar:\"dwa\"},{trzy:\"trzy\"}),t.foo+t.bar+t.trzy===\"razdwatrzy\")}},{}],173:[function(t,e,r){\"use strict\";var n=t(\"../keys\"),i=t(\"../valid-value\"),a=Math.max;e.exports=function(t,e){var r,o,s,l=a(arguments.length,2);for(t=Object(i(t)),s=function(n){try{t[n]=e[n]}catch(t){r||(r=t)}},o=1;o<l;++o)e=arguments[o],n(e).forEach(s);if(void 0!==r)throw r;return t}},{\"../keys\":180,\"../valid-value\":190}],174:[function(t,e,r){\"use strict\";var n=t(\"../array/from\"),i=t(\"./assign\"),a=t(\"./valid-value\");e.exports=function(t){var e=Object(a(t)),r=arguments[1],o=Object(arguments[2]);if(e!==t&&!r)return e;var s={};return r?n(r,function(e){(o.ensure||e in t)&&(s[e]=t[e])}):i(s,t),s}},{\"../array/from\":159,\"./assign\":171,\"./valid-value\":190}],175:[function(t,e,r){\"use strict\";var n,i,a,o,s=Object.create;t(\"./set-prototype-of/is-implemented\")()||(n=t(\"./set-prototype-of/shim\")),e.exports=n?1!==n.level?s:(i={},a={},o={configurable:!1,enumerable:!1,writable:!0,value:void 0},Object.getOwnPropertyNames(Object.prototype).forEach(function(t){a[t]=\"__proto__\"!==t?o:{configurable:!0,enumerable:!1,writable:!0,value:void 0}}),Object.defineProperties(i,a),Object.defineProperty(n,\"nullPolyfill\",{configurable:!1,enumerable:!1,writable:!1,value:i}),function(t,e){return s(null===t?i:t,e)}):s},{\"./set-prototype-of/is-implemented\":186,\"./set-prototype-of/shim\":187}],176:[function(t,e,r){\"use strict\";e.exports=t(\"./_iterate\")(\"forEach\")},{\"./_iterate\":170}],177:[function(t,e,r){\"use strict\";e.exports=function(t){return\"function\"==typeof t}},{}],178:[function(t,e,r){\"use strict\";var n=t(\"./is-value\"),i={function:!0,object:!0};e.exports=function(t){return n(t)&&i[typeof t]||!1}},{\"./is-value\":179}],179:[function(t,e,r){\"use strict\";var n=t(\"../function/noop\")();e.exports=function(t){return t!==n&&null!==t}},{\"../function/noop\":164}],180:[function(t,e,r){\"use strict\";e.exports=t(\"./is-implemented\")()?Object.keys:t(\"./shim\")},{\"./is-implemented\":181,\"./shim\":182}],181:[function(t,e,r){\"use strict\";e.exports=function(){try{return Object.keys(\"primitive\"),!0}catch(t){return!1}}},{}],182:[function(t,e,r){\"use strict\";var n=t(\"../is-value\"),i=Object.keys;e.exports=function(t){return i(n(t)?Object(t):t)}},{\"../is-value\":179}],183:[function(t,e,r){\"use strict\";var n=t(\"./valid-callable\"),i=t(\"./for-each\"),a=Function.prototype.call;e.exports=function(t,e){var r={},o=arguments[2];return n(e),i(t,function(t,n,i,s){r[n]=a.call(e,o,t,n,i,s)}),r}},{\"./for-each\":176,\"./valid-callable\":188}],184:[function(t,e,r){\"use strict\";var n=t(\"./is-value\"),i=Array.prototype.forEach,a=Object.create;e.exports=function(t){var e=a(null);return i.call(arguments,function(t){n(t)&&function(t,e){var r;for(r in t)e[r]=t[r]}(Object(t),e)}),e}},{\"./is-value\":179}],185:[function(t,e,r){\"use strict\";e.exports=t(\"./is-implemented\")()?Object.setPrototypeOf:t(\"./shim\")},{\"./is-implemented\":186,\"./shim\":187}],186:[function(t,e,r){\"use strict\";var n=Object.create,i=Object.getPrototypeOf,a={};e.exports=function(){var t=Object.setPrototypeOf,e=arguments[0]||n;return\"function\"==typeof t&&i(t(e(null),a))===a}},{}],187:[function(t,e,r){\"use strict\";var n,i,a,o,s=t(\"../is-object\"),l=t(\"../valid-value\"),c=Object.prototype.isPrototypeOf,u=Object.defineProperty,f={configurable:!0,enumerable:!1,writable:!0,value:void 0};n=function(t,e){if(l(t),null===e||s(e))return t;throw new TypeError(\"Prototype must be null or an object\")},e.exports=(i=function(){var t,e=Object.create(null),r={},n=Object.getOwnPropertyDescriptor(Object.prototype,\"__proto__\");if(n){try{(t=n.set).call(e,r)}catch(t){}if(Object.getPrototypeOf(e)===r)return{set:t,level:2}}return e.__proto__=r,Object.getPrototypeOf(e)===r?{level:2}:((e={}).__proto__=r,Object.getPrototypeOf(e)===r&&{level:1})}())?(2===i.level?i.set?(o=i.set,a=function(t,e){return o.call(n(t,e),e),t}):a=function(t,e){return n(t,e).__proto__=e,t}:a=function t(e,r){var i;return n(e,r),(i=c.call(t.nullPolyfill,e))&&delete t.nullPolyfill.__proto__,null===r&&(r=t.nullPolyfill),e.__proto__=r,i&&u(t.nullPolyfill,\"__proto__\",f),e},Object.defineProperty(a,\"level\",{configurable:!1,enumerable:!1,writable:!1,value:i.level})):null,t(\"../create\")},{\"../create\":175,\"../is-object\":178,\"../valid-value\":190}],188:[function(t,e,r){\"use strict\";e.exports=function(t){if(\"function\"!=typeof t)throw new TypeError(t+\" is not a function\");return t}},{}],189:[function(t,e,r){\"use strict\";var n=t(\"./is-object\");e.exports=function(t){if(!n(t))throw new TypeError(t+\" is not an Object\");return t}},{\"./is-object\":178}],190:[function(t,e,r){\"use strict\";var n=t(\"./is-value\");e.exports=function(t){if(!n(t))throw new TypeError(\"Cannot use null or undefined\");return t}},{\"./is-value\":179}],191:[function(t,e,r){\"use strict\";e.exports=t(\"./is-implemented\")()?String.prototype.contains:t(\"./shim\")},{\"./is-implemented\":192,\"./shim\":193}],192:[function(t,e,r){\"use strict\";var n=\"razdwatrzy\";e.exports=function(){return\"function\"==typeof n.contains&&(!0===n.contains(\"dwa\")&&!1===n.contains(\"foo\"))}},{}],193:[function(t,e,r){\"use strict\";var n=String.prototype.indexOf;e.exports=function(t){return n.call(this,t,arguments[1])>-1}},{}],194:[function(t,e,r){\"use strict\";var n=Object.prototype.toString,i=n.call(\"\");e.exports=function(t){return\"string\"==typeof t||t&&\"object\"==typeof t&&(t instanceof String||n.call(t)===i)||!1}},{}],195:[function(t,e,r){\"use strict\";var n=Object.create(null),i=Math.random;e.exports=function(){var t;do{t=i().toString(36).slice(2)}while(n[t]);return t}},{}],196:[function(t,e,r){\"use strict\";var n,i=t(\"es5-ext/object/set-prototype-of\"),a=t(\"es5-ext/string/#/contains\"),o=t(\"d\"),s=t(\"es6-symbol\"),l=t(\"./\"),c=Object.defineProperty;n=e.exports=function(t,e){if(!(this instanceof n))throw new TypeError(\"Constructor requires 'new'\");l.call(this,t),e=e?a.call(e,\"key+value\")?\"key+value\":a.call(e,\"key\")?\"key\":\"value\":\"value\",c(this,\"__kind__\",o(\"\",e))},i&&i(n,l),delete n.prototype.constructor,n.prototype=Object.create(l.prototype,{_resolve:o(function(t){return\"value\"===this.__kind__?this.__list__[t]:\"key+value\"===this.__kind__?[t,this.__list__[t]]:t})}),c(n.prototype,s.toStringTag,o(\"c\",\"Array Iterator\"))},{\"./\":199,d:139,\"es5-ext/object/set-prototype-of\":185,\"es5-ext/string/#/contains\":191,\"es6-symbol\":204}],197:[function(t,e,r){\"use strict\";var n=t(\"es5-ext/function/is-arguments\"),i=t(\"es5-ext/object/valid-callable\"),a=t(\"es5-ext/string/is-string\"),o=t(\"./get\"),s=Array.isArray,l=Function.prototype.call,c=Array.prototype.some;e.exports=function(t,e){var r,u,f,h,p,d,g,v,m=arguments[2];if(s(t)||n(t)?r=\"array\":a(t)?r=\"string\":t=o(t),i(e),f=function(){h=!0},\"array\"!==r)if(\"string\"!==r)for(u=t.next();!u.done;){if(l.call(e,m,u.value,f),h)return;u=t.next()}else for(d=t.length,p=0;p<d&&(g=t[p],p+1<d&&(v=g.charCodeAt(0))>=55296&&v<=56319&&(g+=t[++p]),l.call(e,m,g,f),!h);++p);else c.call(t,function(t){return l.call(e,m,t,f),h})}},{\"./get\":198,\"es5-ext/function/is-arguments\":162,\"es5-ext/object/valid-callable\":188,\"es5-ext/string/is-string\":194}],198:[function(t,e,r){\"use strict\";var n=t(\"es5-ext/function/is-arguments\"),i=t(\"es5-ext/string/is-string\"),a=t(\"./array\"),o=t(\"./string\"),s=t(\"./valid-iterable\"),l=t(\"es6-symbol\").iterator;e.exports=function(t){return\"function\"==typeof s(t)[l]?t[l]():n(t)?new a(t):i(t)?new o(t):new a(t)}},{\"./array\":196,\"./string\":201,\"./valid-iterable\":202,\"es5-ext/function/is-arguments\":162,\"es5-ext/string/is-string\":194,\"es6-symbol\":204}],199:[function(t,e,r){\"use strict\";var n,i=t(\"es5-ext/array/#/clear\"),a=t(\"es5-ext/object/assign\"),o=t(\"es5-ext/object/valid-callable\"),s=t(\"es5-ext/object/valid-value\"),l=t(\"d\"),c=t(\"d/auto-bind\"),u=t(\"es6-symbol\"),f=Object.defineProperty,h=Object.defineProperties;e.exports=n=function(t,e){if(!(this instanceof n))throw new TypeError(\"Constructor requires 'new'\");h(this,{__list__:l(\"w\",s(t)),__context__:l(\"w\",e),__nextIndex__:l(\"w\",0)}),e&&(o(e.on),e.on(\"_add\",this._onAdd),e.on(\"_delete\",this._onDelete),e.on(\"_clear\",this._onClear))},delete n.prototype.constructor,h(n.prototype,a({_next:l(function(){var t;if(this.__list__)return this.__redo__&&void 0!==(t=this.__redo__.shift())?t:this.__nextIndex__<this.__list__.length?this.__nextIndex__++:void this._unBind()}),next:l(function(){return this._createResult(this._next())}),_createResult:l(function(t){return void 0===t?{done:!0,value:void 0}:{done:!1,value:this._resolve(t)}}),_resolve:l(function(t){return this.__list__[t]}),_unBind:l(function(){this.__list__=null,delete this.__redo__,this.__context__&&(this.__context__.off(\"_add\",this._onAdd),this.__context__.off(\"_delete\",this._onDelete),this.__context__.off(\"_clear\",this._onClear),this.__context__=null)}),toString:l(function(){return\"[object \"+(this[u.toStringTag]||\"Object\")+\"]\"})},c({_onAdd:l(function(t){t>=this.__nextIndex__||(++this.__nextIndex__,this.__redo__?(this.__redo__.forEach(function(e,r){e>=t&&(this.__redo__[r]=++e)},this),this.__redo__.push(t)):f(this,\"__redo__\",l(\"c\",[t])))}),_onDelete:l(function(t){var e;t>=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&&(-1!==(e=this.__redo__.indexOf(t))&&this.__redo__.splice(e,1),this.__redo__.forEach(function(e,r){e>t&&(this.__redo__[r]=--e)},this)))}),_onClear:l(function(){this.__redo__&&i.call(this.__redo__),this.__nextIndex__=0})}))),f(n.prototype,u.iterator,l(function(){return this}))},{d:139,\"d/auto-bind\":138,\"es5-ext/array/#/clear\":158,\"es5-ext/object/assign\":171,\"es5-ext/object/valid-callable\":188,\"es5-ext/object/valid-value\":190,\"es6-symbol\":204}],200:[function(t,e,r){\"use strict\";var n=t(\"es5-ext/function/is-arguments\"),i=t(\"es5-ext/object/is-value\"),a=t(\"es5-ext/string/is-string\"),o=t(\"es6-symbol\").iterator,s=Array.isArray;e.exports=function(t){return!!i(t)&&(!!s(t)||(!!a(t)||(!!n(t)||\"function\"==typeof t[o])))}},{\"es5-ext/function/is-arguments\":162,\"es5-ext/object/is-value\":179,\"es5-ext/string/is-string\":194,\"es6-symbol\":204}],201:[function(t,e,r){\"use strict\";var n,i=t(\"es5-ext/object/set-prototype-of\"),a=t(\"d\"),o=t(\"es6-symbol\"),s=t(\"./\"),l=Object.defineProperty;n=e.exports=function(t){if(!(this instanceof n))throw new TypeError(\"Constructor requires 'new'\");t=String(t),s.call(this,t),l(this,\"__length__\",a(\"\",t.length))},i&&i(n,s),delete n.prototype.constructor,n.prototype=Object.create(s.prototype,{_next:a(function(){if(this.__list__)return this.__nextIndex__<this.__length__?this.__nextIndex__++:void this._unBind()}),_resolve:a(function(t){var e,r=this.__list__[t];return this.__nextIndex__===this.__length__?r:(e=r.charCodeAt(0))>=55296&&e<=56319?r+this.__list__[this.__nextIndex__++]:r})}),l(n.prototype,o.toStringTag,a(\"c\",\"String Iterator\"))},{\"./\":199,d:139,\"es5-ext/object/set-prototype-of\":185,\"es6-symbol\":204}],202:[function(t,e,r){\"use strict\";var n=t(\"./is-iterable\");e.exports=function(t){if(!n(t))throw new TypeError(t+\" is not iterable\");return t}},{\"./is-iterable\":200}],203:[function(t,e,r){(function(n,i){!function(t,n){\"object\"==typeof r&&\"undefined\"!=typeof e?e.exports=n():t.ES6Promise=n()}(this,function(){\"use strict\";function e(t){return\"function\"==typeof t}var r=Array.isArray?Array.isArray:function(t){return\"[object Array]\"===Object.prototype.toString.call(t)},a=0,o=void 0,s=void 0,l=function(t,e){g[a]=t,g[a+1]=e,2===(a+=2)&&(s?s(v):_())};var c=\"undefined\"!=typeof window?window:void 0,u=c||{},f=u.MutationObserver||u.WebKitMutationObserver,h=\"undefined\"==typeof self&&\"undefined\"!=typeof n&&\"[object process]\"==={}.toString.call(n),p=\"undefined\"!=typeof Uint8ClampedArray&&\"undefined\"!=typeof importScripts&&\"undefined\"!=typeof MessageChannel;function d(){var t=setTimeout;return function(){return t(v,1)}}var g=new Array(1e3);function v(){for(var t=0;t<a;t+=2){(0,g[t])(g[t+1]),g[t]=void 0,g[t+1]=void 0}a=0}var m,y,x,b,_=void 0;function w(t,e){var r=arguments,n=this,i=new this.constructor(A);void 0===i[M]&&U(i);var a,o=n._state;return o?(a=r[o-1],l(function(){return j(o,i,a,n._result)})):R(n,i,t,e),i}function k(t){if(t&&\"object\"==typeof t&&t.constructor===this)return t;var e=new this(A);return O(e,t),e}h?_=function(){return n.nextTick(v)}:f?(y=0,x=new f(v),b=document.createTextNode(\"\"),x.observe(b,{characterData:!0}),_=function(){b.data=y=++y%2}):p?((m=new MessageChannel).port1.onmessage=v,_=function(){return m.port2.postMessage(0)}):_=void 0===c&&\"function\"==typeof t?function(){try{var e=t(\"vertx\");return o=e.runOnLoop||e.runOnContext,function(){o(v)}}catch(t){return d()}}():d();var M=Math.random().toString(36).substring(16);function A(){}var T=void 0,S=1,E=2,C=new F;function L(t){try{return t.then}catch(t){return C.error=t,C}}function z(t,r,n){r.constructor===t.constructor&&n===w&&r.constructor.resolve===k?function(t,e){e._state===S?P(t,e._result):e._state===E?D(t,e._result):R(e,void 0,function(e){return O(t,e)},function(e){return D(t,e)})}(t,r):n===C?D(t,C.error):void 0===n?P(t,r):e(n)?function(t,e,r){l(function(t){var n=!1,i=function(t,e,r,n){try{t.call(e,r,n)}catch(t){return t}}(r,e,function(r){n||(n=!0,e!==r?O(t,r):P(t,r))},function(e){n||(n=!0,D(t,e))},t._label);!n&&i&&(n=!0,D(t,i))},t)}(t,r,n):P(t,r)}function O(t,e){var r;t===e?D(t,new TypeError(\"You cannot resolve a promise with itself\")):\"function\"==typeof(r=e)||\"object\"==typeof r&&null!==r?z(t,e,L(e)):P(t,e)}function I(t){t._onerror&&t._onerror(t._result),B(t)}function P(t,e){t._state===T&&(t._result=e,t._state=S,0!==t._subscribers.length&&l(B,t))}function D(t,e){t._state===T&&(t._state=E,t._result=e,l(I,t))}function R(t,e,r,n){var i=t._subscribers,a=i.length;t._onerror=null,i[a]=e,i[a+S]=r,i[a+E]=n,0===a&&t._state&&l(B,t)}function B(t){var e=t._subscribers,r=t._state;if(0!==e.length){for(var n=void 0,i=void 0,a=t._result,o=0;o<e.length;o+=3)n=e[o],i=e[o+r],n?j(r,n,i,a):i(a);t._subscribers.length=0}}function F(){this.error=null}var N=new F;function j(t,r,n,i){var a=e(n),o=void 0,s=void 0,l=void 0,c=void 0;if(a){if((o=function(t,e){try{return t(e)}catch(t){return N.error=t,N}}(n,i))===N?(c=!0,s=o.error,o=null):l=!0,r===o)return void D(r,new TypeError(\"A promises callback cannot return that same promise.\"))}else o=i,l=!0;r._state!==T||(a&&l?O(r,o):c?D(r,s):t===S?P(r,o):t===E&&D(r,o))}var V=0;function U(t){t[M]=V++,t._state=void 0,t._result=void 0,t._subscribers=[]}function q(t,e){this._instanceConstructor=t,this.promise=new t(A),this.promise[M]||U(this.promise),r(e)?(this._input=e,this.length=e.length,this._remaining=e.length,this._result=new Array(this.length),0===this.length?P(this.promise,this._result):(this.length=this.length||0,this._enumerate(),0===this._remaining&&P(this.promise,this._result))):D(this.promise,new Error(\"Array Methods must be provided an Array\"))}function H(t){this[M]=V++,this._result=this._state=void 0,this._subscribers=[],A!==t&&(\"function\"!=typeof t&&function(){throw new TypeError(\"You must pass a resolver function as the first argument to the promise constructor\")}(),this instanceof H?function(t,e){try{e(function(e){O(t,e)},function(e){D(t,e)})}catch(e){D(t,e)}}(this,t):function(){throw new TypeError(\"Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.\")}())}function G(){var t=void 0;if(\"undefined\"!=typeof i)t=i;else if(\"undefined\"!=typeof self)t=self;else try{t=Function(\"return this\")()}catch(t){throw new Error(\"polyfill failed because global object is unavailable in this environment\")}var e=t.Promise;if(e){var r=null;try{r=Object.prototype.toString.call(e.resolve())}catch(t){}if(\"[object Promise]\"===r&&!e.cast)return}t.Promise=H}return q.prototype._enumerate=function(){for(var t=this.length,e=this._input,r=0;this._state===T&&r<t;r++)this._eachEntry(e[r],r)},q.prototype._eachEntry=function(t,e){var r=this._instanceConstructor,n=r.resolve;if(n===k){var i=L(t);if(i===w&&t._state!==T)this._settledAt(t._state,e,t._result);else if(\"function\"!=typeof i)this._remaining--,this._result[e]=t;else if(r===H){var a=new r(A);z(a,t,i),this._willSettleAt(a,e)}else this._willSettleAt(new r(function(e){return e(t)}),e)}else this._willSettleAt(n(t),e)},q.prototype._settledAt=function(t,e,r){var n=this.promise;n._state===T&&(this._remaining--,t===E?D(n,r):this._result[e]=r),0===this._remaining&&P(n,this._result)},q.prototype._willSettleAt=function(t,e){var r=this;R(t,void 0,function(t){return r._settledAt(S,e,t)},function(t){return r._settledAt(E,e,t)})},H.all=function(t){return new q(this,t).promise},H.race=function(t){var e=this;return r(t)?new e(function(r,n){for(var i=t.length,a=0;a<i;a++)e.resolve(t[a]).then(r,n)}):new e(function(t,e){return e(new TypeError(\"You must pass an array to race.\"))})},H.resolve=k,H.reject=function(t){var e=new this(A);return D(e,t),e},H._setScheduler=function(t){s=t},H._setAsap=function(t){l=t},H._asap=l,H.prototype={constructor:H,then:w,catch:function(t){return this.then(null,t)}},G(),H.polyfill=G,H.Promise=H,H})}).call(this,t(\"_process\"),\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{_process:465}],204:[function(t,e,r){\"use strict\";e.exports=t(\"./is-implemented\")()?Symbol:t(\"./polyfill\")},{\"./is-implemented\":205,\"./polyfill\":207}],205:[function(t,e,r){\"use strict\";var n={object:!0,symbol:!0};e.exports=function(){var t;if(\"function\"!=typeof Symbol)return!1;t=Symbol(\"test symbol\");try{String(t)}catch(t){return!1}return!!n[typeof Symbol.iterator]&&(!!n[typeof Symbol.toPrimitive]&&!!n[typeof Symbol.toStringTag])}},{}],206:[function(t,e,r){\"use strict\";e.exports=function(t){return!!t&&(\"symbol\"==typeof t||!!t.constructor&&(\"Symbol\"===t.constructor.name&&\"Symbol\"===t[t.constructor.toStringTag]))}},{}],207:[function(t,e,r){\"use strict\";var n,i,a,o,s=t(\"d\"),l=t(\"./validate-symbol\"),c=Object.create,u=Object.defineProperties,f=Object.defineProperty,h=Object.prototype,p=c(null);if(\"function\"==typeof Symbol){n=Symbol;try{String(n()),o=!0}catch(t){}}var d,g=(d=c(null),function(t){for(var e,r,n=0;d[t+(n||\"\")];)++n;return d[t+=n||\"\"]=!0,f(h,e=\"@@\"+t,s.gs(null,function(t){r||(r=!0,f(this,e,s(t)),r=!1)})),e});a=function(t){if(this instanceof a)throw new TypeError(\"Symbol is not a constructor\");return i(t)},e.exports=i=function t(e){var r;if(this instanceof t)throw new TypeError(\"Symbol is not a constructor\");return o?n(e):(r=c(a.prototype),e=void 0===e?\"\":String(e),u(r,{__description__:s(\"\",e),__name__:s(\"\",g(e))}))},u(i,{for:s(function(t){return p[t]?p[t]:p[t]=i(String(t))}),keyFor:s(function(t){var e;for(e in l(t),p)if(p[e]===t)return e}),hasInstance:s(\"\",n&&n.hasInstance||i(\"hasInstance\")),isConcatSpreadable:s(\"\",n&&n.isConcatSpreadable||i(\"isConcatSpreadable\")),iterator:s(\"\",n&&n.iterator||i(\"iterator\")),match:s(\"\",n&&n.match||i(\"match\")),replace:s(\"\",n&&n.replace||i(\"replace\")),search:s(\"\",n&&n.search||i(\"search\")),species:s(\"\",n&&n.species||i(\"species\")),split:s(\"\",n&&n.split||i(\"split\")),toPrimitive:s(\"\",n&&n.toPrimitive||i(\"toPrimitive\")),toStringTag:s(\"\",n&&n.toStringTag||i(\"toStringTag\")),unscopables:s(\"\",n&&n.unscopables||i(\"unscopables\"))}),u(a.prototype,{constructor:s(i),toString:s(\"\",function(){return this.__name__})}),u(i.prototype,{toString:s(function(){return\"Symbol (\"+l(this).__description__+\")\"}),valueOf:s(function(){return l(this)})}),f(i.prototype,i.toPrimitive,s(\"\",function(){var t=l(this);return\"symbol\"==typeof t?t:t.toString()})),f(i.prototype,i.toStringTag,s(\"c\",\"Symbol\")),f(a.prototype,i.toStringTag,s(\"c\",i.prototype[i.toStringTag])),f(a.prototype,i.toPrimitive,s(\"c\",i.prototype[i.toPrimitive]))},{\"./validate-symbol\":208,d:139}],208:[function(t,e,r){\"use strict\";var n=t(\"./is-symbol\");e.exports=function(t){if(!n(t))throw new TypeError(t+\" is not a symbol\");return t}},{\"./is-symbol\":206}],209:[function(t,e,r){\"use strict\";e.exports=t(\"./is-implemented\")()?WeakMap:t(\"./polyfill\")},{\"./is-implemented\":210,\"./polyfill\":212}],210:[function(t,e,r){\"use strict\";e.exports=function(){var t,e;if(\"function\"!=typeof WeakMap)return!1;try{t=new WeakMap([[e={},\"one\"],[{},\"two\"],[{},\"three\"]])}catch(t){return!1}return\"[object WeakMap]\"===String(t)&&(\"function\"==typeof t.set&&(t.set({},1)===t&&(\"function\"==typeof t.delete&&(\"function\"==typeof t.has&&\"one\"===t.get(e)))))}},{}],211:[function(t,e,r){\"use strict\";e.exports=\"function\"==typeof WeakMap&&\"[object WeakMap]\"===Object.prototype.toString.call(new WeakMap)},{}],212:[function(t,e,r){\"use strict\";var n,i=t(\"es5-ext/object/set-prototype-of\"),a=t(\"es5-ext/object/valid-object\"),o=t(\"es5-ext/object/valid-value\"),s=t(\"es5-ext/string/random-uniq\"),l=t(\"d\"),c=t(\"es6-iterator/get\"),u=t(\"es6-iterator/for-of\"),f=t(\"es6-symbol\").toStringTag,h=t(\"./is-native-implemented\"),p=Array.isArray,d=Object.defineProperty,g=Object.prototype.hasOwnProperty,v=Object.getPrototypeOf;e.exports=n=function(){var t,e=arguments[0];if(!(this instanceof n))throw new TypeError(\"Constructor requires 'new'\");return t=h&&i&&WeakMap!==n?i(new WeakMap,v(this)):this,null!=e&&(p(e)||(e=c(e))),d(t,\"__weakMapData__\",l(\"c\",\"$weakMap$\"+s())),e?(u(e,function(e){o(e),t.set(e[0],e[1])}),t):t},h&&(i&&i(n,WeakMap),n.prototype=Object.create(WeakMap.prototype,{constructor:l(n)})),Object.defineProperties(n.prototype,{delete:l(function(t){return!!g.call(a(t),this.__weakMapData__)&&(delete t[this.__weakMapData__],!0)}),get:l(function(t){if(g.call(a(t),this.__weakMapData__))return t[this.__weakMapData__]}),has:l(function(t){return g.call(a(t),this.__weakMapData__)}),set:l(function(t,e){return d(a(t),this.__weakMapData__,l(\"c\",e)),this}),toString:l(function(){return\"[object WeakMap]\"})}),d(n.prototype,f,l(\"c\",\"WeakMap\"))},{\"./is-native-implemented\":211,d:139,\"es5-ext/object/set-prototype-of\":185,\"es5-ext/object/valid-object\":189,\"es5-ext/object/valid-value\":190,\"es5-ext/string/random-uniq\":195,\"es6-iterator/for-of\":197,\"es6-iterator/get\":198,\"es6-symbol\":204}],213:[function(t,e,r){\"use strict\";e.exports=function(t,e,r){var n=e||0,i=r||1;return[[t[12]+t[0],t[13]+t[1],t[14]+t[2],t[15]+t[3]],[t[12]-t[0],t[13]-t[1],t[14]-t[2],t[15]-t[3]],[t[12]+t[4],t[13]+t[5],t[14]+t[6],t[15]+t[7]],[t[12]-t[4],t[13]-t[5],t[14]-t[6],t[15]-t[7]],[n*t[12]+t[8],n*t[13]+t[9],n*t[14]+t[10],n*t[15]+t[11]],[i*t[12]-t[8],i*t[13]-t[9],i*t[14]-t[10],i*t[15]-t[11]]]}},{}],214:[function(t,e,r){\"use strict\";var n=t(\"is-string-blank\");e.exports=function(t){var e=typeof t;if(\"string\"===e){var r=t;if(0===(t=+t)&&n(r))return!1}else if(\"number\"!==e)return!1;return t-t<1}},{\"is-string-blank\":406}],215:[function(t,e,r){\"use strict\";e.exports=function(t,e,r){switch(arguments.length){case 0:return new o([0],[0],0);case 1:if(\"number\"==typeof t){var n=l(t);return new o(n,n,0)}return new o(t,l(t.length),0);case 2:if(\"number\"==typeof e){var n=l(t.length);return new o(t,n,+e)}r=0;case 3:if(t.length!==e.length)throw new Error(\"state and velocity lengths must match\");return new o(t,e,r)}};var n=t(\"cubic-hermite\"),i=t(\"binary-search-bounds\");function a(t,e,r){return Math.min(e,Math.max(t,r))}function o(t,e,r){this.dimension=t.length,this.bounds=[new Array(this.dimension),new Array(this.dimension)];for(var n=0;n<this.dimension;++n)this.bounds[0][n]=-1/0,this.bounds[1][n]=1/0;this._state=t.slice().reverse(),this._velocity=e.slice().reverse(),this._time=[r],this._scratch=[t.slice(),t.slice(),t.slice(),t.slice(),t.slice()]}var s=o.prototype;function l(t){for(var e=new Array(t),r=0;r<t;++r)e[r]=0;return e}s.flush=function(t){var e=i.gt(this._time,t)-1;e<=0||(this._time.splice(0,e),this._state.splice(0,e*this.dimension),this._velocity.splice(0,e*this.dimension))},s.curve=function(t){var e=this._time,r=e.length,o=i.le(e,t),s=this._scratch[0],l=this._state,c=this._velocity,u=this.dimension,f=this.bounds;if(o<0)for(var h=u-1,p=0;p<u;++p,--h)s[p]=l[h];else if(o>=r-1){h=l.length-1;var d=t-e[r-1];for(p=0;p<u;++p,--h)s[p]=l[h]+d*c[h]}else{h=u*(o+1)-1;var g=e[o],v=e[o+1]-g||1,m=this._scratch[1],y=this._scratch[2],x=this._scratch[3],b=this._scratch[4],_=!0;for(p=0;p<u;++p,--h)m[p]=l[h],x[p]=c[h]*v,y[p]=l[h+u],b[p]=c[h+u]*v,_=_&&m[p]===y[p]&&x[p]===b[p]&&0===x[p];if(_)for(p=0;p<u;++p)s[p]=m[p];else n(m,x,y,b,(t-g)/v,s)}var w=f[0],k=f[1];for(p=0;p<u;++p)s[p]=a(w[p],k[p],s[p]);return s},s.dcurve=function(t){var e=this._time,r=e.length,a=i.le(e,t),o=this._scratch[0],s=this._state,l=this._velocity,c=this.dimension;if(a>=r-1)for(var u=s.length-1,f=(e[r-1],0);f<c;++f,--u)o[f]=l[u];else{u=c*(a+1)-1;var h=e[a],p=e[a+1]-h||1,d=this._scratch[1],g=this._scratch[2],v=this._scratch[3],m=this._scratch[4],y=!0;for(f=0;f<c;++f,--u)d[f]=s[u],v[f]=l[u]*p,g[f]=s[u+c],m[f]=l[u+c]*p,y=y&&d[f]===g[f]&&v[f]===m[f]&&0===v[f];if(y)for(f=0;f<c;++f)o[f]=0;else{n.derivative(d,v,g,m,(t-h)/p,o);for(f=0;f<c;++f)o[f]/=p}}return o},s.lastT=function(){var t=this._time;return t[t.length-1]},s.stable=function(){for(var t=this._velocity,e=t.length,r=this.dimension-1;r>=0;--r)if(t[--e])return!1;return!0},s.jump=function(t){var e=this.lastT(),r=this.dimension;if(!(t<e||arguments.length!==r+1)){var n=this._state,i=this._velocity,o=n.length-this.dimension,s=this.bounds,l=s[0],c=s[1];this._time.push(e,t);for(var u=0;u<2;++u)for(var f=0;f<r;++f)n.push(n[o++]),i.push(0);this._time.push(t);for(f=r;f>0;--f)n.push(a(l[f-1],c[f-1],arguments[f])),i.push(0)}},s.push=function(t){var e=this.lastT(),r=this.dimension;if(!(t<e||arguments.length!==r+1)){var n=this._state,i=this._velocity,o=n.length-this.dimension,s=t-e,l=this.bounds,c=l[0],u=l[1],f=s>1e-6?1/s:0;this._time.push(t);for(var h=r;h>0;--h){var p=a(c[h-1],u[h-1],arguments[h]);n.push(p),i.push((p-n[o++])*f)}}},s.set=function(t){var e=this.dimension;if(!(t<this.lastT()||arguments.length!==e+1)){var r=this._state,n=this._velocity,i=this.bounds,o=i[0],s=i[1];this._time.push(t);for(var l=e;l>0;--l)r.push(a(o[l-1],s[l-1],arguments[l])),n.push(0)}},s.move=function(t){var e=this.lastT(),r=this.dimension;if(!(t<=e||arguments.length!==r+1)){var n=this._state,i=this._velocity,o=n.length-this.dimension,s=this.bounds,l=s[0],c=s[1],u=t-e,f=u>1e-6?1/u:0;this._time.push(t);for(var h=r;h>0;--h){var p=arguments[h];n.push(a(l[h-1],c[h-1],n[o++]+p)),i.push(p*f)}}},s.idle=function(t){var e=this.lastT();if(!(t<e)){var r=this.dimension,n=this._state,i=this._velocity,o=n.length-r,s=this.bounds,l=s[0],c=s[1],u=t-e;this._time.push(t);for(var f=r-1;f>=0;--f)n.push(a(l[f],c[f],n[o]+u*i[o])),i.push(0),o+=1}}},{\"binary-search-bounds\":79,\"cubic-hermite\":133}],216:[function(t,e,r){var n=t(\"dtype\");e.exports=function(t,e,r){if(!t)throw new TypeError(\"must specify data as first parameter\");if(r=0|+(r||0),Array.isArray(t)&&t[0]&&\"number\"==typeof t[0][0]){var i,a,o,s,l=t[0].length,c=t.length*l;e&&\"string\"!=typeof e||(e=new(n(e||\"float32\"))(c+r));var u=e.length-r;if(c!==u)throw new Error(\"source length \"+c+\" (\"+l+\"x\"+t.length+\") does not match destination length \"+u);for(i=0,o=r;i<t.length;i++)for(a=0;a<l;a++)e[o++]=null===t[i][a]?NaN:t[i][a]}else if(e&&\"string\"!=typeof e)e.set(t,r);else{var f=n(e||\"float32\");if(Array.isArray(t)||\"array\"===e)for(e=new f(t.length+r),i=0,o=r,s=e.length;o<s;o++,i++)e[o]=null===t[i]?NaN:t[i];else 0===r?e=new f(t):(e=new f(t.length+r)).set(t,r)}return e}},{dtype:154}],217:[function(t,e,r){\"use strict\";var n=t(\"css-font/stringify\"),i=[32,126];e.exports=function(t){var e=(t=t||{}).shape?t.shape:t.canvas?[t.canvas.width,t.canvas.height]:[512,512],r=t.canvas||document.createElement(\"canvas\"),a=t.font,o=\"number\"==typeof t.step?[t.step,t.step]:t.step||[32,32],s=t.chars||i;a&&\"string\"!=typeof a&&(a=n(a));if(Array.isArray(s)){if(2===s.length&&\"number\"==typeof s[0]&&\"number\"==typeof s[1]){for(var l=[],c=s[0],u=0;c<=s[1];c++)l[u++]=String.fromCharCode(c);s=l}}else s=String(s).split(\"\");e=e.slice(),r.width=e[0],r.height=e[1];var f=r.getContext(\"2d\");f.fillStyle=\"#000\",f.fillRect(0,0,r.width,r.height),f.font=a,f.textAlign=\"center\",f.textBaseline=\"middle\",f.fillStyle=\"#fff\";for(var h=o[0]/2,p=o[1]/2,c=0;c<s.length;c++)f.fillText(s[c],h,p),(h+=o[0])>e[0]-o[0]/2&&(h=o[0]/2,p+=o[1]);return r}},{\"css-font/stringify\":130}],218:[function(t,e,r){\"use strict\";function n(t,e){e||(e={}),(\"string\"==typeof t||Array.isArray(t))&&(e.family=t);var r=Array.isArray(e.family)?e.family.join(\", \"):e.family;if(!r)throw Error(\"`family` must be defined\");var s=e.size||e.fontSize||e.em||48,l=e.weight||e.fontWeight||\"\",c=(t=[e.style||e.fontStyle||\"\",l,s].join(\" \")+\"px \"+r,e.origin||\"top\");if(n.cache[r]&&s<=n.cache[r].em)return i(n.cache[r],c);var u=e.canvas||n.canvas,f=u.getContext(\"2d\"),h={upper:void 0!==e.upper?e.upper:\"H\",lower:void 0!==e.lower?e.lower:\"x\",descent:void 0!==e.descent?e.descent:\"p\",ascent:void 0!==e.ascent?e.ascent:\"h\",tittle:void 0!==e.tittle?e.tittle:\"i\",overshoot:void 0!==e.overshoot?e.overshoot:\"O\"},p=Math.ceil(1.5*s);u.height=p,u.width=.5*p,f.font=t;var d={top:0};f.clearRect(0,0,p,p),f.textBaseline=\"top\",f.fillStyle=\"black\",f.fillText(\"H\",0,0);var g=a(f.getImageData(0,0,p,p));f.clearRect(0,0,p,p),f.textBaseline=\"bottom\",f.fillText(\"H\",0,p);var v=a(f.getImageData(0,0,p,p));d.lineHeight=d.bottom=p-v+g,f.clearRect(0,0,p,p),f.textBaseline=\"alphabetic\",f.fillText(\"H\",0,p);var m=p-a(f.getImageData(0,0,p,p))-1+g;d.baseline=d.alphabetic=m,f.clearRect(0,0,p,p),f.textBaseline=\"middle\",f.fillText(\"H\",0,.5*p);var y=a(f.getImageData(0,0,p,p));d.median=d.middle=p-y-1+g-.5*p,f.clearRect(0,0,p,p),f.textBaseline=\"hanging\",f.fillText(\"H\",0,.5*p);var x=a(f.getImageData(0,0,p,p));d.hanging=p-x-1+g-.5*p,f.clearRect(0,0,p,p),f.textBaseline=\"ideographic\",f.fillText(\"H\",0,p);var b=a(f.getImageData(0,0,p,p));if(d.ideographic=p-b-1+g,h.upper&&(f.clearRect(0,0,p,p),f.textBaseline=\"top\",f.fillText(h.upper,0,0),d.upper=a(f.getImageData(0,0,p,p)),d.capHeight=d.baseline-d.upper),h.lower&&(f.clearRect(0,0,p,p),f.textBaseline=\"top\",f.fillText(h.lower,0,0),d.lower=a(f.getImageData(0,0,p,p)),d.xHeight=d.baseline-d.lower),h.tittle&&(f.clearRect(0,0,p,p),f.textBaseline=\"top\",f.fillText(h.tittle,0,0),d.tittle=a(f.getImageData(0,0,p,p))),h.ascent&&(f.clearRect(0,0,p,p),f.textBaseline=\"top\",f.fillText(h.ascent,0,0),d.ascent=a(f.getImageData(0,0,p,p))),h.descent&&(f.clearRect(0,0,p,p),f.textBaseline=\"top\",f.fillText(h.descent,0,0),d.descent=o(f.getImageData(0,0,p,p))),h.overshoot){f.clearRect(0,0,p,p),f.textBaseline=\"top\",f.fillText(h.overshoot,0,0);var _=o(f.getImageData(0,0,p,p));d.overshoot=_-m}for(var w in d)d[w]/=s;return d.em=s,n.cache[r]=d,i(d,c)}function i(t,e){var r={};for(var n in\"string\"==typeof e&&(e=t[e]),t)\"em\"!==n&&(r[n]=t[n]-e);return r}function a(t){for(var e=t.height,r=t.data,n=3;n<r.length;n+=4)if(0!==r[n])return Math.floor(.25*(n-3)/e)}function o(t){for(var e=t.height,r=t.data,n=r.length-1;n>0;n-=4)if(0!==r[n])return Math.floor(.25*(n-3)/e)}e.exports=n,n.canvas=document.createElement(\"canvas\"),n.cache={}},{}],219:[function(t,e,r){\"use strict\";e.exports=function(t){return new c(t||d,null)};var n=0,i=1;function a(t,e,r,n,i,a){this._color=t,this.key=e,this.value=r,this.left=n,this.right=i,this._count=a}function o(t){return new a(t._color,t.key,t.value,t.left,t.right,t._count)}function s(t,e){return new a(t,e.key,e.value,e.left,e.right,e._count)}function l(t){t._count=1+(t.left?t.left._count:0)+(t.right?t.right._count:0)}function c(t,e){this._compare=t,this.root=e}var u=c.prototype;function f(t,e){this.tree=t,this._stack=e}Object.defineProperty(u,\"keys\",{get:function(){var t=[];return this.forEach(function(e,r){t.push(e)}),t}}),Object.defineProperty(u,\"values\",{get:function(){var t=[];return this.forEach(function(e,r){t.push(r)}),t}}),Object.defineProperty(u,\"length\",{get:function(){return this.root?this.root._count:0}}),u.insert=function(t,e){for(var r=this._compare,o=this.root,u=[],f=[];o;){var h=r(t,o.key);u.push(o),f.push(h),o=h<=0?o.left:o.right}u.push(new a(n,t,e,null,null,1));for(var p=u.length-2;p>=0;--p){o=u[p];f[p]<=0?u[p]=new a(o._color,o.key,o.value,u[p+1],o.right,o._count+1):u[p]=new a(o._color,o.key,o.value,o.left,u[p+1],o._count+1)}for(p=u.length-1;p>1;--p){var d=u[p-1];o=u[p];if(d._color===i||o._color===i)break;var g=u[p-2];if(g.left===d)if(d.left===o){if(!(v=g.right)||v._color!==n){if(g._color=n,g.left=d.right,d._color=i,d.right=g,u[p-2]=d,u[p-1]=o,l(g),l(d),p>=3)(m=u[p-3]).left===g?m.left=d:m.right=d;break}d._color=i,g.right=s(i,v),g._color=n,p-=1}else{if(!(v=g.right)||v._color!==n){if(d.right=o.left,g._color=n,g.left=o.right,o._color=i,o.left=d,o.right=g,u[p-2]=o,u[p-1]=d,l(g),l(d),l(o),p>=3)(m=u[p-3]).left===g?m.left=o:m.right=o;break}d._color=i,g.right=s(i,v),g._color=n,p-=1}else if(d.right===o){if(!(v=g.left)||v._color!==n){if(g._color=n,g.right=d.left,d._color=i,d.left=g,u[p-2]=d,u[p-1]=o,l(g),l(d),p>=3)(m=u[p-3]).right===g?m.right=d:m.left=d;break}d._color=i,g.left=s(i,v),g._color=n,p-=1}else{var v;if(!(v=g.left)||v._color!==n){var m;if(d.left=o.right,g._color=n,g.right=o.left,o._color=i,o.right=d,o.left=g,u[p-2]=o,u[p-1]=d,l(g),l(d),l(o),p>=3)(m=u[p-3]).right===g?m.right=o:m.left=o;break}d._color=i,g.left=s(i,v),g._color=n,p-=1}}return u[0]._color=i,new c(r,u[0])},u.forEach=function(t,e,r){if(this.root)switch(arguments.length){case 1:return function t(e,r){var n;if(r.left&&(n=t(e,r.left)))return n;return(n=e(r.key,r.value))||(r.right?t(e,r.right):void 0)}(t,this.root);case 2:return function t(e,r,n,i){if(r(e,i.key)<=0){var a;if(i.left&&(a=t(e,r,n,i.left)))return a;if(a=n(i.key,i.value))return a}if(i.right)return t(e,r,n,i.right)}(e,this._compare,t,this.root);case 3:if(this._compare(e,r)>=0)return;return function t(e,r,n,i,a){var o,s=n(e,a.key),l=n(r,a.key);if(s<=0){if(a.left&&(o=t(e,r,n,i,a.left)))return o;if(l>0&&(o=i(a.key,a.value)))return o}if(l>0&&a.right)return t(e,r,n,i,a.right)}(e,r,this._compare,t,this.root)}},Object.defineProperty(u,\"begin\",{get:function(){for(var t=[],e=this.root;e;)t.push(e),e=e.left;return new f(this,t)}}),Object.defineProperty(u,\"end\",{get:function(){for(var t=[],e=this.root;e;)t.push(e),e=e.right;return new f(this,t)}}),u.at=function(t){if(t<0)return new f(this,[]);for(var e=this.root,r=[];;){if(r.push(e),e.left){if(t<e.left._count){e=e.left;continue}t-=e.left._count}if(!t)return new f(this,r);if(t-=1,!e.right)break;if(t>=e.right._count)break;e=e.right}return new f(this,[])},u.ge=function(t){for(var e=this._compare,r=this.root,n=[],i=0;r;){var a=e(t,r.key);n.push(r),a<=0&&(i=n.length),r=a<=0?r.left:r.right}return n.length=i,new f(this,n)},u.gt=function(t){for(var e=this._compare,r=this.root,n=[],i=0;r;){var a=e(t,r.key);n.push(r),a<0&&(i=n.length),r=a<0?r.left:r.right}return n.length=i,new f(this,n)},u.lt=function(t){for(var e=this._compare,r=this.root,n=[],i=0;r;){var a=e(t,r.key);n.push(r),a>0&&(i=n.length),r=a<=0?r.left:r.right}return n.length=i,new f(this,n)},u.le=function(t){for(var e=this._compare,r=this.root,n=[],i=0;r;){var a=e(t,r.key);n.push(r),a>=0&&(i=n.length),r=a<0?r.left:r.right}return n.length=i,new f(this,n)},u.find=function(t){for(var e=this._compare,r=this.root,n=[];r;){var i=e(t,r.key);if(n.push(r),0===i)return new f(this,n);r=i<=0?r.left:r.right}return new f(this,[])},u.remove=function(t){var e=this.find(t);return e?e.remove():this},u.get=function(t){for(var e=this._compare,r=this.root;r;){var n=e(t,r.key);if(0===n)return r.value;r=n<=0?r.left:r.right}};var h=f.prototype;function p(t,e){t.key=e.key,t.value=e.value,t.left=e.left,t.right=e.right,t._color=e._color,t._count=e._count}function d(t,e){return t<e?-1:t>e?1:0}Object.defineProperty(h,\"valid\",{get:function(){return this._stack.length>0}}),Object.defineProperty(h,\"node\",{get:function(){return this._stack.length>0?this._stack[this._stack.length-1]:null},enumerable:!0}),h.clone=function(){return new f(this.tree,this._stack.slice())},h.remove=function(){var t=this._stack;if(0===t.length)return this.tree;var e=new Array(t.length),r=t[t.length-1];e[e.length-1]=new a(r._color,r.key,r.value,r.left,r.right,r._count);for(var u=t.length-2;u>=0;--u){(r=t[u]).left===t[u+1]?e[u]=new a(r._color,r.key,r.value,e[u+1],r.right,r._count):e[u]=new a(r._color,r.key,r.value,r.left,e[u+1],r._count)}if((r=e[e.length-1]).left&&r.right){var f=e.length;for(r=r.left;r.right;)e.push(r),r=r.right;var h=e[f-1];e.push(new a(r._color,h.key,h.value,r.left,r.right,r._count)),e[f-1].key=r.key,e[f-1].value=r.value;for(u=e.length-2;u>=f;--u)r=e[u],e[u]=new a(r._color,r.key,r.value,r.left,e[u+1],r._count);e[f-1].left=e[f]}if((r=e[e.length-1])._color===n){var d=e[e.length-2];d.left===r?d.left=null:d.right===r&&(d.right=null),e.pop();for(u=0;u<e.length;++u)e[u]._count--;return new c(this.tree._compare,e[0])}if(r.left||r.right){r.left?p(r,r.left):r.right&&p(r,r.right),r._color=i;for(u=0;u<e.length-1;++u)e[u]._count--;return new c(this.tree._compare,e[0])}if(1===e.length)return new c(this.tree._compare,null);for(u=0;u<e.length;++u)e[u]._count--;var g=e[e.length-2];return function(t){for(var e,r,a,c,u=t.length-1;u>=0;--u){if(e=t[u],0===u)return void(e._color=i);if((r=t[u-1]).left===e){if((a=r.right).right&&a.right._color===n)return c=(a=r.right=o(a)).right=o(a.right),r.right=a.left,a.left=r,a.right=c,a._color=r._color,e._color=i,r._color=i,c._color=i,l(r),l(a),u>1&&((f=t[u-2]).left===r?f.left=a:f.right=a),void(t[u-1]=a);if(a.left&&a.left._color===n)return c=(a=r.right=o(a)).left=o(a.left),r.right=c.left,a.left=c.right,c.left=r,c.right=a,c._color=r._color,r._color=i,a._color=i,e._color=i,l(r),l(a),l(c),u>1&&((f=t[u-2]).left===r?f.left=c:f.right=c),void(t[u-1]=c);if(a._color===i){if(r._color===n)return r._color=i,void(r.right=s(n,a));r.right=s(n,a);continue}a=o(a),r.right=a.left,a.left=r,a._color=r._color,r._color=n,l(r),l(a),u>1&&((f=t[u-2]).left===r?f.left=a:f.right=a),t[u-1]=a,t[u]=r,u+1<t.length?t[u+1]=e:t.push(e),u+=2}else{if((a=r.left).left&&a.left._color===n)return c=(a=r.left=o(a)).left=o(a.left),r.left=a.right,a.right=r,a.left=c,a._color=r._color,e._color=i,r._color=i,c._color=i,l(r),l(a),u>1&&((f=t[u-2]).right===r?f.right=a:f.left=a),void(t[u-1]=a);if(a.right&&a.right._color===n)return c=(a=r.left=o(a)).right=o(a.right),r.left=c.right,a.right=c.left,c.right=r,c.left=a,c._color=r._color,r._color=i,a._color=i,e._color=i,l(r),l(a),l(c),u>1&&((f=t[u-2]).right===r?f.right=c:f.left=c),void(t[u-1]=c);if(a._color===i){if(r._color===n)return r._color=i,void(r.left=s(n,a));r.left=s(n,a);continue}var f;a=o(a),r.left=a.right,a.right=r,a._color=r._color,r._color=n,l(r),l(a),u>1&&((f=t[u-2]).right===r?f.right=a:f.left=a),t[u-1]=a,t[u]=r,u+1<t.length?t[u+1]=e:t.push(e),u+=2}}}(e),g.left===r?g.left=null:g.right=null,new c(this.tree._compare,e[0])},Object.defineProperty(h,\"key\",{get:function(){if(this._stack.length>0)return this._stack[this._stack.length-1].key},enumerable:!0}),Object.defineProperty(h,\"value\",{get:function(){if(this._stack.length>0)return this._stack[this._stack.length-1].value},enumerable:!0}),Object.defineProperty(h,\"index\",{get:function(){var t=0,e=this._stack;if(0===e.length){var r=this.tree.root;return r?r._count:0}e[e.length-1].left&&(t=e[e.length-1].left._count);for(var n=e.length-2;n>=0;--n)e[n+1]===e[n].right&&(++t,e[n].left&&(t+=e[n].left._count));return t},enumerable:!0}),h.next=function(){var t=this._stack;if(0!==t.length){var e=t[t.length-1];if(e.right)for(e=e.right;e;)t.push(e),e=e.left;else for(t.pop();t.length>0&&t[t.length-1].right===e;)e=t[t.length-1],t.pop()}},Object.defineProperty(h,\"hasNext\",{get:function(){var t=this._stack;if(0===t.length)return!1;if(t[t.length-1].right)return!0;for(var e=t.length-1;e>0;--e)if(t[e-1].left===t[e])return!0;return!1}}),h.update=function(t){var e=this._stack;if(0===e.length)throw new Error(\"Can't update empty node!\");var r=new Array(e.length),n=e[e.length-1];r[r.length-1]=new a(n._color,n.key,t,n.left,n.right,n._count);for(var i=e.length-2;i>=0;--i)(n=e[i]).left===e[i+1]?r[i]=new a(n._color,n.key,n.value,r[i+1],n.right,n._count):r[i]=new a(n._color,n.key,n.value,n.left,r[i+1],n._count);return new c(this.tree._compare,r[0])},h.prev=function(){var t=this._stack;if(0!==t.length){var e=t[t.length-1];if(e.left)for(e=e.left;e;)t.push(e),e=e.right;else for(t.pop();t.length>0&&t[t.length-1].left===e;)e=t[t.length-1],t.pop()}},Object.defineProperty(h,\"hasPrev\",{get:function(){var t=this._stack;if(0===t.length)return!1;if(t[t.length-1].left)return!0;for(var e=t.length-1;e>0;--e)if(t[e-1].right===t[e])return!0;return!1}})},{}],220:[function(t,e,r){var n=[.9999999999998099,676.5203681218851,-1259.1392167224028,771.3234287776531,-176.6150291621406,12.507343278686905,-.13857109526572012,9984369578019572e-21,1.5056327351493116e-7],i=607/128,a=[.9999999999999971,57.15623566586292,-59.59796035547549,14.136097974741746,-.4919138160976202,3399464998481189e-20,4652362892704858e-20,-9837447530487956e-20,.0001580887032249125,-.00021026444172410488,.00021743961811521265,-.0001643181065367639,8441822398385275e-20,-26190838401581408e-21,36899182659531625e-22];function o(t){if(t<0)return Number(\"0/0\");for(var e=a[0],r=a.length-1;r>0;--r)e+=a[r]/(t+r);var n=t+i+.5;return.5*Math.log(2*Math.PI)+(t+.5)*Math.log(n)-n+Math.log(e)-Math.log(t)}e.exports=function t(e){if(e<.5)return Math.PI/(Math.sin(Math.PI*e)*t(1-e));if(e>100)return Math.exp(o(e));e-=1;for(var r=n[0],i=1;i<9;i++)r+=n[i]/(e+i);var a=e+7+.5;return Math.sqrt(2*Math.PI)*Math.pow(a,e+.5)*Math.exp(-a)*r},e.exports.log=o},{}],221:[function(t,e,r){e.exports=function(t,e){if(\"string\"!=typeof t)throw new TypeError(\"must specify type string\");if(e=e||{},\"undefined\"==typeof document&&!e.canvas)return null;var r=e.canvas||document.createElement(\"canvas\");\"number\"==typeof e.width&&(r.width=e.width);\"number\"==typeof e.height&&(r.height=e.height);var n,i=e;try{var a=[t];0===t.indexOf(\"webgl\")&&a.push(\"experimental-\"+t);for(var o=0;o<a.length;o++)if(n=r.getContext(a[o],i))return n}catch(t){n=null}return n||null}},{}],222:[function(t,e,r){\"use strict\";e.exports=function(t,e){var r=new u(t);return r.update(e),r};var n=t(\"./lib/text.js\"),i=t(\"./lib/lines.js\"),a=t(\"./lib/background.js\"),o=t(\"./lib/cube.js\"),s=t(\"./lib/ticks.js\"),l=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]);function c(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function u(t){this.gl=t,this.pixelRatio=1,this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.autoTicks=!0,this.tickSpacing=[1,1,1],this.tickEnable=[!0,!0,!0],this.tickFont=[\"sans-serif\",\"sans-serif\",\"sans-serif\"],this.tickSize=[12,12,12],this.tickAngle=[0,0,0],this._tickAlign=[\"auto\",\"auto\",\"auto\"],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[10,10,10],this.lastCubeProps={cubeEdges:[0,0,0],axis:[0,0,0]},this.labels=[\"x\",\"y\",\"z\"],this.labelEnable=[!0,!0,!0],this.labelFont=\"sans-serif\",this.labelSize=[20,20,20],this._labelAngle=[0,0,0],this._labelAlign=[\"auto\",\"auto\",\"auto\"],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[10,10,10],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[0,0,0],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!1,!1,!1],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._firstInit=!0,this._text=null,this._lines=null,this._background=a(t)}var f=u.prototype;function h(){this.primalOffset=[0,0,0],this.primalMinor=[0,0,0],this.mirrorOffset=[0,0,0],this.mirrorMinor=[0,0,0]}f.update=function(t){function e(e,r,n){if(n in t){var i,a=t[n],o=this[n];(e?Array.isArray(a)&&Array.isArray(a[0]):Array.isArray(a))?this[n]=i=[r(a[0]),r(a[1]),r(a[2])]:this[n]=i=[r(a),r(a),r(a)];for(var s=0;s<3;++s)if(i[s]!==o[s])return!0}return!1}t=t||{};var r,a=e.bind(this,!1,Number),o=e.bind(this,!1,Boolean),l=e.bind(this,!1,String),c=e.bind(this,!0,function(t){if(Array.isArray(t)){if(3===t.length)return[+t[0],+t[1],+t[2],1];if(4===t.length)return[+t[0],+t[1],+t[2],+t[3]]}return[0,0,0,1]}),u=!1,f=!1;if(\"bounds\"in t)for(var h=t.bounds,p=0;p<2;++p)for(var d=0;d<3;++d)h[p][d]!==this.bounds[p][d]&&(f=!0),this.bounds[p][d]=h[p][d];if(\"ticks\"in t){r=t.ticks,u=!0,this.autoTicks=!1;for(p=0;p<3;++p)this.tickSpacing[p]=0}else a(\"tickSpacing\")&&(this.autoTicks=!0,f=!0);if(this._firstInit&&(\"ticks\"in t||\"tickSpacing\"in t||(this.autoTicks=!0),f=!0,u=!0,this._firstInit=!1),f&&this.autoTicks&&(r=s.create(this.bounds,this.tickSpacing),u=!0),u){for(p=0;p<3;++p)r[p].sort(function(t,e){return t.x-e.x});s.equal(r,this.ticks)?u=!1:this.ticks=r}o(\"tickEnable\"),l(\"tickFont\")&&(u=!0),a(\"tickSize\"),a(\"tickAngle\"),a(\"tickPad\"),c(\"tickColor\");var g=l(\"labels\");l(\"labelFont\")&&(g=!0),o(\"labelEnable\"),a(\"labelSize\"),a(\"labelPad\"),c(\"labelColor\"),o(\"lineEnable\"),o(\"lineMirror\"),a(\"lineWidth\"),c(\"lineColor\"),o(\"lineTickEnable\"),o(\"lineTickMirror\"),a(\"lineTickLength\"),a(\"lineTickWidth\"),c(\"lineTickColor\"),o(\"gridEnable\"),a(\"gridWidth\"),c(\"gridColor\"),o(\"zeroEnable\"),c(\"zeroLineColor\"),a(\"zeroLineWidth\"),o(\"backgroundEnable\"),c(\"backgroundColor\"),this._text?this._text&&(g||u)&&this._text.update(this.bounds,this.labels,this.labelFont,this.ticks,this.tickFont):this._text=n(this.gl,this.bounds,this.labels,this.labelFont,this.ticks,this.tickFont),this._lines&&u&&(this._lines.dispose(),this._lines=null),this._lines||(this._lines=i(this.gl,this.bounds,this.ticks))};var p=[new h,new h,new h];function d(t,e,r,n,i){for(var a=t.primalOffset,o=t.primalMinor,s=t.mirrorOffset,l=t.mirrorMinor,c=n[e],u=0;u<3;++u)if(e!==u){var f=a,h=s,p=o,d=l;c&1<<u&&(f=s,h=a,p=l,d=o),f[u]=r[0][u],h[u]=r[1][u],i[u]>0?(p[u]=-1,d[u]=0):(p[u]=0,d[u]=1)}}var g=[0,0,0],v={model:l,view:l,projection:l};f.isOpaque=function(){return!0},f.isTransparent=function(){return!1},f.drawTransparent=function(t){};var m=[0,0,0],y=[0,0,0],x=[0,0,0];f.draw=function(t){t=t||v;for(var e=this.gl,r=t.model||l,n=t.view||l,i=t.projection||l,a=this.bounds,s=o(r,n,i,a),u=s.cubeEdges,f=s.axis,h=n[12],b=n[13],_=n[14],w=n[15],k=this.pixelRatio*(i[3]*h+i[7]*b+i[11]*_+i[15]*w)/e.drawingBufferHeight,M=0;M<3;++M)this.lastCubeProps.cubeEdges[M]=u[M],this.lastCubeProps.axis[M]=f[M];var A=p;for(M=0;M<3;++M)d(p[M],M,this.bounds,u,f);e=this.gl;var T,S=g;for(M=0;M<3;++M)this.backgroundEnable[M]?S[M]=f[M]:S[M]=0;this._background.draw(r,n,i,a,S,this.backgroundColor),this._lines.bind(r,n,i,this);for(M=0;M<3;++M){var E=[0,0,0];f[M]>0?E[M]=a[1][M]:E[M]=a[0][M];for(var C=0;C<2;++C){var L=(M+1+C)%3,z=(M+1+(1^C))%3;this.gridEnable[L]&&this._lines.drawGrid(L,z,this.bounds,E,this.gridColor[L],this.gridWidth[L]*this.pixelRatio)}for(C=0;C<2;++C){L=(M+1+C)%3,z=(M+1+(1^C))%3;this.zeroEnable[z]&&Math.min(a[0][z],a[1][z])<=0&&Math.max(a[0][z],a[1][z])>=0&&this._lines.drawZero(L,z,this.bounds,E,this.zeroLineColor[z],this.zeroLineWidth[z]*this.pixelRatio)}}for(M=0;M<3;++M){this.lineEnable[M]&&this._lines.drawAxisLine(M,this.bounds,A[M].primalOffset,this.lineColor[M],this.lineWidth[M]*this.pixelRatio),this.lineMirror[M]&&this._lines.drawAxisLine(M,this.bounds,A[M].mirrorOffset,this.lineColor[M],this.lineWidth[M]*this.pixelRatio);var O=c(m,A[M].primalMinor),I=c(y,A[M].mirrorMinor),P=this.lineTickLength;for(C=0;C<3;++C){var D=k/r[5*C];O[C]*=P[C]*D,I[C]*=P[C]*D}this.lineTickEnable[M]&&this._lines.drawAxisTicks(M,A[M].primalOffset,O,this.lineTickColor[M],this.lineTickWidth[M]*this.pixelRatio),this.lineTickMirror[M]&&this._lines.drawAxisTicks(M,A[M].mirrorOffset,I,this.lineTickColor[M],this.lineTickWidth[M]*this.pixelRatio)}this._lines.unbind(),this._text.bind(r,n,i,this.pixelRatio);var R,B;function F(t){(B=[0,0,0])[t]=1}function N(t,e,r){var n=(t+1)%3,i=(t+2)%3,a=e[n],o=e[i],s=r[n],l=r[i];a>0&&l>0?F(n):a>0&&l<0?F(n):a<0&&l>0?F(n):a<0&&l<0?F(n):o>0&&s>0?F(i):o>0&&s<0?F(i):o<0&&s>0?F(i):o<0&&s<0&&F(i)}for(M=0;M<3;++M){var j=A[M].primalMinor,V=A[M].mirrorMinor,U=c(x,A[M].primalOffset);for(C=0;C<3;++C)this.lineTickEnable[M]&&(U[C]+=k*j[C]*Math.max(this.lineTickLength[C],0)/r[5*C]);var q=[0,0,0];if(q[M]=1,this.tickEnable[M]){-3600===this.tickAngle[M]?(this.tickAngle[M]=0,this._tickAlign[M]=\"auto\"):this._tickAlign[M]=-1,R=1,\"auto\"===(T=[this._tickAlign[M],.5,R])[0]?T[0]=0:T[0]=parseInt(\"\"+T[0]),B=[0,0,0],N(M,j,V);for(C=0;C<3;++C)U[C]+=k*j[C]*this.tickPad[C]/r[5*C];this._text.drawTicks(M,this.tickSize[M],this.tickAngle[M],U,this.tickColor[M],q,B,T)}if(this.labelEnable[M]){R=0,B=[0,0,0],this.labels[M].length>4&&(F(M),R=1),\"auto\"===(T=[this._labelAlign[M],.5,R])[0]?T[0]=0:T[0]=parseInt(\"\"+T[0]);for(C=0;C<3;++C)U[C]+=k*j[C]*this.labelPad[C]/r[5*C];U[M]+=.5*(a[0][M]+a[1][M]),this._text.drawLabel(M,this.labelSize[M],this._labelAngle[M],U,this.labelColor[M],[0,0,0],B,T)}}this._text.unbind()},f.dispose=function(){this._text.dispose(),this._lines.dispose(),this._background.dispose(),this._lines=null,this._text=null,this._background=null,this.gl=null}},{\"./lib/background.js\":223,\"./lib/cube.js\":224,\"./lib/lines.js\":225,\"./lib/text.js\":227,\"./lib/ticks.js\":228}],223:[function(t,e,r){\"use strict\";e.exports=function(t){for(var e=[],r=[],s=0,l=0;l<3;++l)for(var c=(l+1)%3,u=(l+2)%3,f=[0,0,0],h=[0,0,0],p=-1;p<=1;p+=2){r.push(s,s+2,s+1,s+1,s+2,s+3),f[l]=p,h[l]=p;for(var d=-1;d<=1;d+=2){f[c]=d;for(var g=-1;g<=1;g+=2)f[u]=g,e.push(f[0],f[1],f[2],h[0],h[1],h[2]),s+=1}var v=c;c=u,u=v}var m=n(t,new Float32Array(e)),y=n(t,new Uint16Array(r),t.ELEMENT_ARRAY_BUFFER),x=i(t,[{buffer:m,type:t.FLOAT,size:3,offset:0,stride:24},{buffer:m,type:t.FLOAT,size:3,offset:12,stride:24}],y),b=a(t);return b.attributes.position.location=0,b.attributes.normal.location=1,new o(t,m,x,b)};var n=t(\"gl-buffer\"),i=t(\"gl-vao\"),a=t(\"./shaders\").bg;function o(t,e,r,n){this.gl=t,this.buffer=e,this.vao=r,this.shader=n}var s=o.prototype;s.draw=function(t,e,r,n,i,a){for(var o=!1,s=0;s<3;++s)o=o||i[s];if(o){var l=this.gl;l.enable(l.POLYGON_OFFSET_FILL),l.polygonOffset(1,2),this.shader.bind(),this.shader.uniforms={model:t,view:e,projection:r,bounds:n,enable:i,colors:a},this.vao.bind(),this.vao.draw(this.gl.TRIANGLES,36),this.vao.unbind(),l.disable(l.POLYGON_OFFSET_FILL)}},s.dispose=function(){this.vao.dispose(),this.buffer.dispose(),this.shader.dispose()}},{\"./shaders\":226,\"gl-buffer\":230,\"gl-vao\":310}],224:[function(t,e,r){\"use strict\";e.exports=function(t,e,r,a){i(s,e,t),i(s,r,s);for(var p=0,y=0;y<2;++y){u[2]=a[y][2];for(var x=0;x<2;++x){u[1]=a[x][1];for(var b=0;b<2;++b)u[0]=a[b][0],h(l[p],u,s),p+=1}}for(var _=-1,y=0;y<8;++y){for(var w=l[y][3],k=0;k<3;++k)c[y][k]=l[y][k]/w;w<0&&(_<0?_=y:c[y][2]<c[_][2]&&(_=y))}if(_<0){_=0;for(var M=0;M<3;++M){for(var A=(M+2)%3,T=(M+1)%3,S=-1,E=-1,C=0;C<2;++C){var L=C<<M,z=L+(C<<A)+(1-C<<T),O=L+(1-C<<A)+(C<<T);o(c[L],c[z],c[O],f)<0||(C?S=1:E=1)}if(S<0||E<0)E>S&&(_|=1<<M);else{for(var C=0;C<2;++C){var L=C<<M,z=L+(C<<A)+(1-C<<T),O=L+(1-C<<A)+(C<<T),I=d([l[L],l[z],l[O],l[L+(1<<A)+(1<<T)]]);C?S=I:E=I}E>S&&(_|=1<<M)}}}for(var P=7^_,D=-1,y=0;y<8;++y)y!==_&&y!==P&&(D<0?D=y:c[D][1]>c[y][1]&&(D=y));for(var R=-1,y=0;y<3;++y){var B=D^1<<y;if(B!==_&&B!==P){R<0&&(R=B);var T=c[B];T[0]<c[R][0]&&(R=B)}}for(var F=-1,y=0;y<3;++y){var B=D^1<<y;if(B!==_&&B!==P&&B!==R){F<0&&(F=B);var T=c[B];T[0]>c[F][0]&&(F=B)}}var N=g;N[0]=N[1]=N[2]=0,N[n.log2(R^D)]=D&R,N[n.log2(D^F)]=D&F;var j=7^F;j===_||j===P?(j=7^R,N[n.log2(F^j)]=j&F):N[n.log2(R^j)]=j&R;for(var V=v,U=_,M=0;M<3;++M)V[M]=U&1<<M?-1:1;return m};var n=t(\"bit-twiddle\"),i=t(\"gl-mat4/multiply\"),a=(t(\"gl-mat4/invert\"),t(\"split-polygon\")),o=t(\"robust-orientation\"),s=new Array(16),l=(new Array(16),new Array(8)),c=new Array(8),u=new Array(3),f=[0,0,0];function h(t,e,r){for(var n=0;n<4;++n){t[n]=r[12+n];for(var i=0;i<3;++i)t[n]+=e[i]*r[4*i+n]}}!function(){for(var t=0;t<8;++t)l[t]=[1,1,1,1],c[t]=[1,1,1]}();var p=[[0,0,1,0,0],[0,0,-1,1,0],[0,-1,0,1,0],[0,1,0,1,0],[-1,0,0,1,0],[1,0,0,1,0]];function d(t){for(var e=0;e<p.length;++e)if((t=a.positive(t,p[e])).length<3)return 0;var r=t[0],n=r[0]/r[3],i=r[1]/r[3],o=0;for(e=1;e+1<t.length;++e){var s=t[e],l=t[e+1],c=s[0]/s[3]-n,u=s[1]/s[3]-i,f=l[0]/l[3]-n,h=l[1]/l[3]-i;o+=Math.abs(c*h-u*f)}return o}var g=[1,1,1],v=[0,0,0],m={cubeEdges:g,axis:v}},{\"bit-twiddle\":80,\"gl-mat4/invert\":254,\"gl-mat4/multiply\":256,\"robust-orientation\":486,\"split-polygon\":503}],225:[function(t,e,r){\"use strict\";e.exports=function(t,e,r){var o=[],s=[0,0,0],l=[0,0,0],c=[0,0,0],u=[0,0,0];o.push(0,0,1,0,1,1,0,0,-1,0,0,-1,0,1,1,0,1,-1);for(var f=0;f<3;++f){for(var h=o.length/3|0,d=0;d<r[f].length;++d){var g=+r[f][d].x;o.push(g,0,1,g,1,1,g,0,-1,g,0,-1,g,1,1,g,1,-1)}var v=o.length/3|0;s[f]=h,l[f]=v-h;for(var h=o.length/3|0,m=0;m<r[f].length;++m){var g=+r[f][m].x;o.push(g,0,1,g,1,1,g,0,-1,g,0,-1,g,1,1,g,1,-1)}var v=o.length/3|0;c[f]=h,u[f]=v-h}var y=n(t,new Float32Array(o)),x=i(t,[{buffer:y,type:t.FLOAT,size:3,stride:0,offset:0}]),b=a(t);return b.attributes.position.location=0,new p(t,y,x,b,l,s,u,c)};var n=t(\"gl-buffer\"),i=t(\"gl-vao\"),a=t(\"./shaders\").line,o=[0,0,0],s=[0,0,0],l=[0,0,0],c=[0,0,0],u=[1,1];function f(t){return t[0]=t[1]=t[2]=0,t}function h(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function p(t,e,r,n,i,a,o,s){this.gl=t,this.vertBuffer=e,this.vao=r,this.shader=n,this.tickCount=i,this.tickOffset=a,this.gridCount=o,this.gridOffset=s}var d=p.prototype;d.bind=function(t,e,r){this.shader.bind(),this.shader.uniforms.model=t,this.shader.uniforms.view=e,this.shader.uniforms.projection=r,u[0]=this.gl.drawingBufferWidth,u[1]=this.gl.drawingBufferHeight,this.shader.uniforms.screenShape=u,this.vao.bind()},d.unbind=function(){this.vao.unbind()},d.drawAxisLine=function(t,e,r,n,i){var a=f(s);this.shader.uniforms.majorAxis=s,a[t]=e[1][t]-e[0][t],this.shader.uniforms.minorAxis=a;var o,u=h(c,r);u[t]+=e[0][t],this.shader.uniforms.offset=u,this.shader.uniforms.lineWidth=i,this.shader.uniforms.color=n,(o=f(l))[(t+2)%3]=1,this.shader.uniforms.screenAxis=o,this.vao.draw(this.gl.TRIANGLES,6),(o=f(l))[(t+1)%3]=1,this.shader.uniforms.screenAxis=o,this.vao.draw(this.gl.TRIANGLES,6)},d.drawAxisTicks=function(t,e,r,n,i){if(this.tickCount[t]){var a=f(o);a[t]=1,this.shader.uniforms.majorAxis=a,this.shader.uniforms.offset=e,this.shader.uniforms.minorAxis=r,this.shader.uniforms.color=n,this.shader.uniforms.lineWidth=i;var s=f(l);s[t]=1,this.shader.uniforms.screenAxis=s,this.vao.draw(this.gl.TRIANGLES,this.tickCount[t],this.tickOffset[t])}},d.drawGrid=function(t,e,r,n,i,a){if(this.gridCount[t]){var u=f(s);u[e]=r[1][e]-r[0][e],this.shader.uniforms.minorAxis=u;var p=h(c,n);p[e]+=r[0][e],this.shader.uniforms.offset=p;var d=f(o);d[t]=1,this.shader.uniforms.majorAxis=d;var g=f(l);g[t]=1,this.shader.uniforms.screenAxis=g,this.shader.uniforms.lineWidth=a,this.shader.uniforms.color=i,this.vao.draw(this.gl.TRIANGLES,this.gridCount[t],this.gridOffset[t])}},d.drawZero=function(t,e,r,n,i,a){var o=f(s);this.shader.uniforms.majorAxis=o,o[t]=r[1][t]-r[0][t],this.shader.uniforms.minorAxis=o;var u=h(c,n);u[t]+=r[0][t],this.shader.uniforms.offset=u;var p=f(l);p[e]=1,this.shader.uniforms.screenAxis=p,this.shader.uniforms.lineWidth=a,this.shader.uniforms.color=i,this.vao.draw(this.gl.TRIANGLES,6)},d.dispose=function(){this.vao.dispose(),this.vertBuffer.dispose(),this.shader.dispose()}},{\"./shaders\":226,\"gl-buffer\":230,\"gl-vao\":310}],226:[function(t,e,r){\"use strict\";var n=t(\"glslify\"),i=t(\"gl-shader\"),a=n([\"#define GLSLIFY 1\\nattribute vec3 position;\\n\\nuniform mat4 model, view, projection;\\nuniform vec3 offset, majorAxis, minorAxis, screenAxis;\\nuniform float lineWidth;\\nuniform vec2 screenShape;\\n\\nvec3 project(vec3 p) {\\n vec4 pp = projection * view * model * vec4(p, 1.0);\\n return pp.xyz / max(pp.w, 0.0001);\\n}\\n\\nvoid main() {\\n vec3 major = position.x * majorAxis;\\n vec3 minor = position.y * minorAxis;\\n\\n vec3 vPosition = major + minor + offset;\\n vec3 pPosition = project(vPosition);\\n vec3 offset = project(vPosition + screenAxis * position.z);\\n\\n vec2 screen = normalize((offset - pPosition).xy * screenShape) / screenShape;\\n\\n gl_Position = vec4(pPosition + vec3(0.5 * screen * lineWidth, 0), 1.0);\\n}\\n\"]),o=n([\"precision mediump float;\\n#define GLSLIFY 1\\nuniform vec4 color;\\nvoid main() {\\n gl_FragColor = color;\\n}\"]);r.line=function(t){return i(t,a,o,null,[{name:\"position\",type:\"vec3\"}])};var s=n([\"#define GLSLIFY 1\\nattribute vec3 position;\\n\\nuniform mat4 model, view, projection;\\nuniform vec3 offset, axis, alignDir, alignOpt;\\nuniform float scale, angle, pixelScale;\\nuniform vec2 resolution;\\n\\nvec3 project(vec3 p) {\\n vec4 pp = projection * view * model * vec4(p, 1.0);\\n return pp.xyz / max(pp.w, 0.0001);\\n}\\n\\nfloat computeViewAngle(vec3 a, vec3 b) {\\n vec3 A = project(a);\\n vec3 B = project(b);\\n\\n return atan(\\n (B.y - A.y) * resolution.y,\\n (B.x - A.x) * resolution.x\\n );\\n}\\n\\nconst float PI = 3.141592;\\nconst float TWO_PI = 2.0 * PI;\\nconst float HALF_PI = 0.5 * PI;\\nconst float ONE_AND_HALF_PI = 1.5 * PI;\\n\\nint option = int(floor(alignOpt.x + 0.001));\\nfloat hv_ratio = alignOpt.y;\\nbool enableAlign = (alignOpt.z != 0.0);\\n\\nfloat mod_angle(float a) {\\n return mod(a, PI);\\n}\\n\\nfloat positive_angle(float a) {\\n return mod_angle((a < 0.0) ?\\n a + TWO_PI :\\n a\\n );\\n}\\n\\nfloat look_upwards(float a) {\\n float b = positive_angle(a);\\n return ((b > HALF_PI) && (b <= ONE_AND_HALF_PI)) ?\\n b - PI :\\n b;\\n}\\n\\nfloat look_horizontal_or_vertical(float a, float ratio) {\\n // ratio controls the ratio between being horizontal to (vertical + horizontal)\\n // if ratio is set to 0.5 then it is 50%, 50%.\\n // when using a higher ratio e.g. 0.75 the result would\\n // likely be more horizontal than vertical.\\n\\n float b = positive_angle(a);\\n\\n return\\n (b < ( ratio) * HALF_PI) ? 0.0 :\\n (b < (2.0 - ratio) * HALF_PI) ? -HALF_PI :\\n (b < (2.0 + ratio) * HALF_PI) ? 0.0 :\\n (b < (4.0 - ratio) * HALF_PI) ? HALF_PI :\\n 0.0;\\n}\\n\\nfloat roundTo(float a, float b) {\\n return float(b * floor((a + 0.5 * b) / b));\\n}\\n\\nfloat look_round_n_directions(float a, int n) {\\n float b = positive_angle(a);\\n float div = TWO_PI / float(n);\\n float c = roundTo(b, div);\\n return look_upwards(c);\\n}\\n\\nfloat applyAlignOption(float rawAngle, float delta) {\\n return\\n (option > 2) ? look_round_n_directions(rawAngle + delta, option) : // option 3-n: round to n directions\\n (option == 2) ? look_horizontal_or_vertical(rawAngle + delta, hv_ratio) : // horizontal or vertical\\n (option == 1) ? rawAngle + delta : // use free angle, and flip to align with one direction of the axis\\n (option == 0) ? look_upwards(rawAngle) : // use free angle, and stay upwards\\n (option ==-1) ? 0.0 : // useful for backward compatibility, all texts remains horizontal\\n rawAngle; // otherwise return back raw input angle\\n}\\n\\nbool isAxisTitle = (axis.x == 0.0) &&\\n (axis.y == 0.0) &&\\n (axis.z == 0.0);\\n\\nvoid main() {\\n //Compute world offset\\n float axisDistance = position.z;\\n vec3 dataPosition = axisDistance * axis + offset;\\n\\n float beta = angle; // i.e. user defined attributes for each tick\\n\\n float axisAngle;\\n float clipAngle;\\n float flip;\\n\\n if (enableAlign) {\\n axisAngle = (isAxisTitle) ? HALF_PI :\\n computeViewAngle(dataPosition, dataPosition + axis);\\n clipAngle = computeViewAngle(dataPosition, dataPosition + alignDir);\\n\\n axisAngle += (sin(axisAngle) < 0.0) ? PI : 0.0;\\n clipAngle += (sin(clipAngle) < 0.0) ? PI : 0.0;\\n\\n flip = (dot(vec2(cos(axisAngle), sin(axisAngle)),\\n vec2(sin(clipAngle),-cos(clipAngle))) > 0.0) ? 1.0 : 0.0;\\n\\n beta += applyAlignOption(clipAngle, flip * PI);\\n }\\n\\n //Compute plane offset\\n vec2 planeCoord = position.xy * pixelScale;\\n\\n mat2 planeXform = scale * mat2(\\n cos(beta), sin(beta),\\n -sin(beta), cos(beta)\\n );\\n\\n vec2 viewOffset = 2.0 * planeXform * planeCoord / resolution;\\n\\n //Compute clip position\\n vec3 clipPosition = project(dataPosition);\\n\\n //Apply text offset in clip coordinates\\n clipPosition += vec3(viewOffset, 0.0);\\n\\n //Done\\n gl_Position = vec4(clipPosition, 1.0);\\n}\"]),l=n([\"precision mediump float;\\n#define GLSLIFY 1\\nuniform vec4 color;\\nvoid main() {\\n gl_FragColor = color;\\n}\"]);r.text=function(t){return i(t,s,l,null,[{name:\"position\",type:\"vec3\"}])};var c=n([\"#define GLSLIFY 1\\nattribute vec3 position;\\nattribute vec3 normal;\\n\\nuniform mat4 model, view, projection;\\nuniform vec3 enable;\\nuniform vec3 bounds[2];\\n\\nvarying vec3 colorChannel;\\n\\nvoid main() {\\n\\n vec3 signAxis = sign(bounds[1] - bounds[0]);\\n\\n vec3 realNormal = signAxis * normal;\\n\\n if(dot(realNormal, enable) > 0.0) {\\n vec3 minRange = min(bounds[0], bounds[1]);\\n vec3 maxRange = max(bounds[0], bounds[1]);\\n vec3 nPosition = mix(minRange, maxRange, 0.5 * (position + 1.0));\\n gl_Position = projection * view * model * vec4(nPosition, 1.0);\\n } else {\\n gl_Position = vec4(0,0,0,0);\\n }\\n\\n colorChannel = abs(realNormal);\\n}\"]),u=n([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nuniform vec4 colors[3];\\n\\nvarying vec3 colorChannel;\\n\\nvoid main() {\\n gl_FragColor = colorChannel.x * colors[0] +\\n colorChannel.y * colors[1] +\\n colorChannel.z * colors[2];\\n}\"]);r.bg=function(t){return i(t,c,u,null,[{name:\"position\",type:\"vec3\"},{name:\"normal\",type:\"vec3\"}])}},{\"gl-shader\":288,glslify:392}],227:[function(t,e,r){(function(r){\"use strict\";e.exports=function(t,e,r,a,s,l){var u=n(t),f=i(t,[{buffer:u,size:3}]),h=o(t);h.attributes.position.location=0;var p=new c(t,h,u,f);return p.update(e,r,a,s,l),p};var n=t(\"gl-buffer\"),i=t(\"gl-vao\"),a=t(\"vectorize-text\"),o=t(\"./shaders\").text,s=window||r.global||{},l=s.__TEXT_CACHE||{};s.__TEXT_CACHE={};function c(t,e,r,n){this.gl=t,this.shader=e,this.buffer=r,this.vao=n,this.tickOffset=this.tickCount=this.labelOffset=this.labelCount=null}var u=c.prototype,f=[0,0];u.bind=function(t,e,r,n){this.vao.bind(),this.shader.bind();var i=this.shader.uniforms;i.model=t,i.view=e,i.projection=r,i.pixelScale=n,f[0]=this.gl.drawingBufferWidth,f[1]=this.gl.drawingBufferHeight,this.shader.uniforms.resolution=f},u.unbind=function(){this.vao.unbind()},u.update=function(t,e,r,n,i){this.gl;var o=[];function s(t,e,r,n){var i=l[r];i||(i=l[r]={});var s=i[e];s||(s=i[e]=function(t,e){try{return a(t,e)}catch(t){return console.warn(\"error vectorizing text:\",t),{cells:[],positions:[]}}}(e,{triangles:!0,font:r,textAlign:\"center\",textBaseline:\"middle\"}));for(var c=(n||12)/12,u=s.positions,f=s.cells,h=0,p=f.length;h<p;++h)for(var d=f[h],g=2;g>=0;--g){var v=u[d[g]];o.push(c*v[0],-c*v[1],t)}}for(var c=[0,0,0],u=[0,0,0],f=[0,0,0],h=[0,0,0],p=0;p<3;++p){f[p]=o.length/3|0,s(.5*(t[0][p]+t[1][p]),e[p],r),h[p]=(o.length/3|0)-f[p],c[p]=o.length/3|0;for(var d=0;d<n[p].length;++d)n[p][d].text&&s(n[p][d].x,n[p][d].text,n[p][d].font||i,n[p][d].fontSize||12);u[p]=(o.length/3|0)-c[p]}this.buffer.update(o),this.tickOffset=c,this.tickCount=u,this.labelOffset=f,this.labelCount=h},u.drawTicks=function(t,e,r,n,i,a,o,s){this.tickCount[t]&&(this.shader.uniforms.axis=a,this.shader.uniforms.color=i,this.shader.uniforms.angle=r,this.shader.uniforms.scale=e,this.shader.uniforms.offset=n,this.shader.uniforms.alignDir=o,this.shader.uniforms.alignOpt=s,this.vao.draw(this.gl.TRIANGLES,this.tickCount[t],this.tickOffset[t]))},u.drawLabel=function(t,e,r,n,i,a,o,s){this.labelCount[t]&&(this.shader.uniforms.axis=a,this.shader.uniforms.color=i,this.shader.uniforms.angle=r,this.shader.uniforms.scale=e,this.shader.uniforms.offset=n,this.shader.uniforms.alignDir=o,this.shader.uniforms.alignOpt=s,this.vao.draw(this.gl.TRIANGLES,this.labelCount[t],this.labelOffset[t]))},u.dispose=function(){this.shader.dispose(),this.vao.dispose(),this.buffer.dispose()}}).call(this,t(\"_process\"))},{\"./shaders\":226,_process:465,\"gl-buffer\":230,\"gl-vao\":310,\"vectorize-text\":527}],228:[function(t,e,r){\"use strict\";function n(t,e){var r=t+\"\",n=r.indexOf(\".\"),i=0;n>=0&&(i=r.length-n-1);var a=Math.pow(10,i),o=Math.round(t*e*a),s=o+\"\";if(s.indexOf(\"e\")>=0)return s;var l=o/a,c=o%a;o<0?(l=0|-Math.ceil(l),c=0|-c):(l=0|Math.floor(l),c|=0);var u=\"\"+l;if(o<0&&(u=\"-\"+u),i){for(var f=\"\"+c;f.length<i;)f=\"0\"+f;return u+\".\"+f}return u}r.create=function(t,e){for(var r=[],i=0;i<3;++i){for(var a=[],o=(t[0][i],t[1][i],0);o*e[i]<=t[1][i];++o)a.push({x:o*e[i],text:n(e[i],o)});for(var o=-1;o*e[i]>=t[0][i];--o)a.push({x:o*e[i],text:n(e[i],o)});r.push(a)}return r},r.equal=function(t,e){for(var r=0;r<3;++r){if(t[r].length!==e[r].length)return!1;for(var n=0;n<t[r].length;++n){var i=t[r][n],a=e[r][n];if(i.x!==a.x||i.text!==a.text||i.font!==a.font||i.fontColor!==a.fontColor||i.fontSize!==a.fontSize||i.dx!==a.dx||i.dy!==a.dy)return!1}}return!0}},{}],229:[function(t,e,r){\"use strict\";e.exports=function(t,e,r,l,f){var h=e.model||c,p=e.view||c,m=e.projection||c,y=t.bounds,x=(f=f||a(h,p,m,y)).axis;f.edges;o(u,p,h),o(u,m,u);for(var b=g,_=0;_<3;++_)b[_].lo=1/0,b[_].hi=-1/0,b[_].pixelsPerDataUnit=1/0;var w=n(s(u,u));s(u,u);for(var k=0;k<3;++k){var M=(k+1)%3,A=(k+2)%3,T=v;t:for(var _=0;_<2;++_){var S=[];if(x[k]<0!=!!_){T[k]=y[_][k];for(var E=0;E<2;++E){T[M]=y[E^_][M];for(var C=0;C<2;++C)T[A]=y[C^E^_][A],S.push(T.slice())}for(var E=0;E<w.length;++E){if(0===S.length)continue t;S=i.positive(S,w[E])}for(var E=0;E<S.length;++E)for(var A=S[E],L=d(v,u,A,r,l),C=0;C<3;++C)b[C].lo=Math.min(b[C].lo,A[C]),b[C].hi=Math.max(b[C].hi,A[C]),C!==k&&(b[C].pixelsPerDataUnit=Math.min(b[C].pixelsPerDataUnit,Math.abs(L[C])))}}}return b};var n=t(\"extract-frustum-planes\"),i=t(\"split-polygon\"),a=t(\"./lib/cube.js\"),o=t(\"gl-mat4/multiply\"),s=t(\"gl-mat4/transpose\"),l=t(\"gl-vec4/transformMat4\"),c=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),u=new Float32Array(16);function f(t,e,r){this.lo=t,this.hi=e,this.pixelsPerDataUnit=r}var h=[0,0,0,1],p=[0,0,0,1];function d(t,e,r,n,i){for(var a=0;a<3;++a){for(var o=h,s=p,c=0;c<3;++c)s[c]=o[c]=r[c];s[3]=o[3]=1,s[a]+=1,l(s,s,e),s[3]<0&&(t[a]=1/0),o[a]-=1,l(o,o,e),o[3]<0&&(t[a]=1/0);var u=(o[0]/o[3]-s[0]/s[3])*n,f=(o[1]/o[3]-s[1]/s[3])*i;t[a]=.25*Math.sqrt(u*u+f*f)}return t}var g=[new f(1/0,-1/0,1/0),new f(1/0,-1/0,1/0),new f(1/0,-1/0,1/0)],v=[0,0,0]},{\"./lib/cube.js\":224,\"extract-frustum-planes\":213,\"gl-mat4/multiply\":256,\"gl-mat4/transpose\":264,\"gl-vec4/transformMat4\":381,\"split-polygon\":503}],230:[function(t,e,r){\"use strict\";var n=t(\"typedarray-pool\"),i=t(\"ndarray-ops\"),a=t(\"ndarray\"),o=[\"uint8\",\"uint8_clamped\",\"uint16\",\"uint32\",\"int8\",\"int16\",\"int32\",\"float32\"];function s(t,e,r,n,i){this.gl=t,this.type=e,this.handle=r,this.length=n,this.usage=i}var l=s.prototype;function c(t,e,r,n,i,a){var o=i.length*i.BYTES_PER_ELEMENT;if(a<0)return t.bufferData(e,i,n),o;if(o+a>r)throw new Error(\"gl-buffer: If resizing buffer, must not specify offset\");return t.bufferSubData(e,a,i),r}function u(t,e){for(var r=n.malloc(t.length,e),i=t.length,a=0;a<i;++a)r[a]=t[a];return r}l.bind=function(){this.gl.bindBuffer(this.type,this.handle)},l.unbind=function(){this.gl.bindBuffer(this.type,null)},l.dispose=function(){this.gl.deleteBuffer(this.handle)},l.update=function(t,e){if(\"number\"!=typeof e&&(e=-1),this.bind(),\"object\"==typeof t&&\"undefined\"!=typeof t.shape){var r=t.dtype;if(o.indexOf(r)<0&&(r=\"float32\"),this.type===this.gl.ELEMENT_ARRAY_BUFFER)r=gl.getExtension(\"OES_element_index_uint\")&&\"uint16\"!==r?\"uint32\":\"uint16\";if(r===t.dtype&&function(t,e){for(var r=1,n=e.length-1;n>=0;--n){if(e[n]!==r)return!1;r*=t[n]}return!0}(t.shape,t.stride))0===t.offset&&t.data.length===t.shape[0]?this.length=c(this.gl,this.type,this.length,this.usage,t.data,e):this.length=c(this.gl,this.type,this.length,this.usage,t.data.subarray(t.offset,t.shape[0]),e);else{var s=n.malloc(t.size,r),l=a(s,t.shape);i.assign(l,t),this.length=c(this.gl,this.type,this.length,this.usage,e<0?s:s.subarray(0,t.size),e),n.free(s)}}else if(Array.isArray(t)){var f;f=this.type===this.gl.ELEMENT_ARRAY_BUFFER?u(t,\"uint16\"):u(t,\"float32\"),this.length=c(this.gl,this.type,this.length,this.usage,e<0?f:f.subarray(0,t.length),e),n.free(f)}else if(\"object\"==typeof t&&\"number\"==typeof t.length)this.length=c(this.gl,this.type,this.length,this.usage,t,e);else{if(\"number\"!=typeof t&&void 0!==t)throw new Error(\"gl-buffer: Invalid data type\");if(e>=0)throw new Error(\"gl-buffer: Cannot specify offset when resizing buffer\");(t|=0)<=0&&(t=1),this.gl.bufferData(this.type,0|t,this.usage),this.length=t}},e.exports=function(t,e,r,n){if(r=r||t.ARRAY_BUFFER,n=n||t.DYNAMIC_DRAW,r!==t.ARRAY_BUFFER&&r!==t.ELEMENT_ARRAY_BUFFER)throw new Error(\"gl-buffer: Invalid type for webgl buffer, must be either gl.ARRAY_BUFFER or gl.ELEMENT_ARRAY_BUFFER\");if(n!==t.DYNAMIC_DRAW&&n!==t.STATIC_DRAW&&n!==t.STREAM_DRAW)throw new Error(\"gl-buffer: Invalid usage for buffer, must be either gl.DYNAMIC_DRAW, gl.STATIC_DRAW or gl.STREAM_DRAW\");var i=t.createBuffer(),a=new s(t,r,i,0,n);return a.update(e),a}},{ndarray:433,\"ndarray-ops\":427,\"typedarray-pool\":522}],231:[function(t,e,r){\"use strict\";var n=t(\"gl-vec3\"),i=(t(\"gl-vec4\"),function(t,e){for(var r=0;r<t.length;r++)if(t[r]>=e)return r-1;return r}),a=n.create(),o=n.create(),s=function(t,e,r){return t<e?e:t>r?r:t},l=function(t,e,r,l){var c=t[0],u=t[1],f=t[2],h=r[0].length,p=r[1].length,d=r[2].length,g=i(r[0],c),v=i(r[1],u),m=i(r[2],f),y=g+1,x=v+1,b=m+1;if(l&&(g=s(g,0,h-1),y=s(y,0,h-1),v=s(v,0,p-1),x=s(x,0,p-1),m=s(m,0,d-1),b=s(b,0,d-1)),g<0||v<0||m<0||y>=h||x>=p||b>=d)return n.create();var _=(c-r[0][g])/(r[0][y]-r[0][g]),w=(u-r[1][v])/(r[1][x]-r[1][v]),k=(f-r[2][m])/(r[2][b]-r[2][m]);(_<0||_>1||isNaN(_))&&(_=0),(w<0||w>1||isNaN(w))&&(w=0),(k<0||k>1||isNaN(k))&&(k=0);var M=m*h*p,A=b*h*p,T=v*h,S=x*h,E=g,C=y,L=e[T+M+E],z=e[T+M+C],O=e[S+M+E],I=e[S+M+C],P=e[T+A+E],D=e[T+A+C],R=e[S+A+E],B=e[S+A+C],F=n.create();return n.lerp(F,L,z,_),n.lerp(a,O,I,_),n.lerp(F,F,a,w),n.lerp(a,P,D,_),n.lerp(o,R,B,_),n.lerp(a,a,o,w),n.lerp(F,F,a,k),F};e.exports=function(t,e){var r;r=t.positions?t.positions:function(t){for(var e=t[0],r=t[1],n=t[2],i=[],a=0;a<n.length;a++)for(var o=0;o<r.length;o++)for(var s=0;s<e.length;s++)i.push([n[a],r[o],e[s]]);return i}(t.meshgrid);var i=t.meshgrid,a=t.vectors,o={positions:[],vertexIntensity:[],vertexIntensityBounds:t.vertexIntensityBounds,vertexNormals:[],vectors:[],cells:[],coneOffset:t.coneOffset,colormap:t.colormap};if(0===t.positions.length)return e&&(e[0]=[0,0,0],e[1]=[0,0,0]),o;for(var s=0,c=1/0,u=-1/0,f=1/0,h=-1/0,p=1/0,d=-1/0,g=null,v=null,m=[],y=1/0,x=0;x<r.length;x++){var b,_=r[x];c=Math.min(_[0],c),u=Math.max(_[0],u),f=Math.min(_[1],f),h=Math.max(_[1],h),p=Math.min(_[2],p),d=Math.max(_[2],d),b=i?l(_,a,i,!0):a[x],n.length(b)>s&&(s=n.length(b)),x&&(y=Math.min(y,2*n.distance(g,_)/(n.length(v)+n.length(b)))),g=_,v=b,m.push(b)}var w=[c,f,p],k=[u,h,d];e&&(e[0]=w,e[1]=k),0===s&&(s=1);var M=1/s;isFinite(y)&&!isNaN(y)||(y=1),o.vectorScale=y;var A=function(t,e,r){var i=n.create();return void 0!==t&&n.set(i,t,e,r),i}(0,1,0),T=t.coneSize||.5;t.absoluteConeSize&&(T=t.absoluteConeSize*M),o.coneScale=T;x=0;for(var S=0;x<r.length;x++)for(var E=(_=r[x])[0],C=_[1],L=_[2],z=m[x],O=n.length(z)*M,I=0;I<8;I++){o.positions.push([E,C,L,S++]),o.positions.push([E,C,L,S++]),o.positions.push([E,C,L,S++]),o.positions.push([E,C,L,S++]),o.positions.push([E,C,L,S++]),o.positions.push([E,C,L,S++]),o.vectors.push(z),o.vectors.push(z),o.vectors.push(z),o.vectors.push(z),o.vectors.push(z),o.vectors.push(z),o.vertexIntensity.push(O,O,O),o.vertexIntensity.push(O,O,O),o.vertexNormals.push(A,A,A),o.vertexNormals.push(A,A,A);var P=o.positions.length;o.cells.push([P-6,P-5,P-4],[P-3,P-2,P-1])}return o},e.exports.createConeMesh=t(\"./lib/conemesh\")},{\"./lib/conemesh\":233,\"gl-vec3\":329,\"gl-vec4\":365}],232:[function(t,e,r){\"use strict\";var n=t(\"barycentric\"),i=t(\"polytope-closest-point/lib/closest_point_2d.js\");function a(t,e){for(var r=[0,0,0,0],n=0;n<4;++n)for(var i=0;i<4;++i)r[i]+=t[4*n+i]*e[n];return r}function o(t,e,r,n,i){for(var o=a(n,a(r,a(e,[t[0],t[1],t[2],1]))),s=0;s<3;++s)o[s]/=o[3];return[.5*i[0]*(1+o[0]),.5*i[1]*(1-o[1])]}e.exports=function(t,e,r,a,s,l){if(1===t.length)return[0,t[0].slice()];for(var c=new Array(t.length),u=0;u<t.length;++u)c[u]=o(t[u],r,a,s,l);for(var f=0,h=1/0,u=0;u<c.length;++u){for(var p=0,d=0;d<2;++d)p+=Math.pow(c[u][d]-e[d],2);p<h&&(h=p,f=u)}for(var g=function(t,e){if(2===t.length){for(var r=0,a=0,o=0;o<2;++o)r+=Math.pow(e[o]-t[0][o],2),a+=Math.pow(e[o]-t[1][o],2);return r=Math.sqrt(r),a=Math.sqrt(a),r+a<1e-6?[1,0]:[a/(r+a),r/(a+r)]}if(3===t.length){var s=[0,0];return i(t[0],t[1],t[2],e,s),n(t,s)}return[]}(c,e),v=0,u=0;u<3;++u){if(g[u]<-.001||g[u]>1.0001)return null;v+=g[u]}if(Math.abs(v-1)>.001)return null;return[f,function(t,e){for(var r=[0,0,0],n=0;n<t.length;++n)for(var i=t[n],a=e[n],o=0;o<3;++o)r[o]+=a*i[o];return r}(t,g),g]}},{barycentric:61,\"polytope-closest-point/lib/closest_point_2d.js\":464}],233:[function(t,e,r){\"use strict\";var n=t(\"gl-shader\"),i=t(\"gl-buffer\"),a=t(\"gl-vao\"),o=t(\"gl-texture2d\"),s=t(\"normals\"),l=t(\"gl-mat4/multiply\"),c=t(\"gl-mat4/invert\"),u=t(\"ndarray\"),f=t(\"colormap\"),h=t(\"simplicial-complex-contour\"),p=t(\"typedarray-pool\"),d=t(\"./shaders\"),g=(t(\"./closest-point\"),d.meshShader),v=d.pickShader,m=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function y(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,g,v,y,x,b,_,w,k,M,A,T,S,E){this.gl=t,this.cells=[],this.positions=[],this.intensity=[],this.texture=e,this.dirty=!0,this.triShader=r,this.lineShader=n,this.pointShader=i,this.pickShader=a,this.pointPickShader=o,this.contourShader=s,this.trianglePositions=l,this.triangleVectors=c,this.triangleColors=f,this.triangleNormals=p,this.triangleUVs=h,this.triangleIds=u,this.triangleVAO=d,this.triangleCount=0,this.lineWidth=1,this.edgePositions=g,this.edgeColors=y,this.edgeUVs=x,this.edgeIds=v,this.edgeVAO=b,this.edgeCount=0,this.pointPositions=_,this.pointColors=k,this.pointUVs=M,this.pointSizes=A,this.pointIds=w,this.pointVAO=T,this.pointCount=0,this.contourLineWidth=1,this.contourPositions=S,this.contourVAO=E,this.contourCount=0,this.contourColor=[0,0,0],this.contourEnable=!0,this.pickId=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lightPosition=[1e5,1e5,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.opacity=1,this.coneScale=2,this.vectorScale=1,this.coneOffset=.25,this._model=m,this._view=m,this._projection=m,this._resolution=[1,1]}var x=y.prototype;function b(t){var e=n(t,v.vertex,v.fragment,null,v.attributes);return e.attributes.position.location=0,e.attributes.id.location=1,e.attributes.vector.location=5,e}x.isOpaque=function(){return this.opacity>=1},x.isTransparent=function(){return this.opacity<1},x.pickSlots=1,x.setPickBase=function(t){this.pickId=t},x.highlight=function(t){if(t&&this.contourEnable){for(var e=h(this.cells,this.intensity,t.intensity),r=e.cells,n=e.vertexIds,i=e.vertexWeights,a=r.length,o=p.mallocFloat32(6*a),s=0,l=0;l<a;++l)for(var c=r[l],u=0;u<2;++u){var f=c[0];2===c.length&&(f=c[u]);for(var d=n[f][0],g=n[f][1],v=i[f],m=1-v,y=this.positions[d],x=this.positions[g],b=0;b<3;++b)o[s++]=v*y[b]+m*x[b]}this.contourCount=s/3|0,this.contourPositions.update(o.subarray(0,s)),p.free(o)}else this.contourCount=0},x.update=function(t){t=t||{};var e=this.gl;this.dirty=!0,\"contourEnable\"in t&&(this.contourEnable=t.contourEnable),\"contourColor\"in t&&(this.contourColor=t.contourColor),\"lineWidth\"in t&&(this.lineWidth=t.lineWidth),\"lightPosition\"in t&&(this.lightPosition=t.lightPosition),\"opacity\"in t&&(this.opacity=t.opacity),\"ambient\"in t&&(this.ambientLight=t.ambient),\"diffuse\"in t&&(this.diffuseLight=t.diffuse),\"specular\"in t&&(this.specularLight=t.specular),\"roughness\"in t&&(this.roughness=t.roughness),\"fresnel\"in t&&(this.fresnel=t.fresnel),void 0!==t.vectorScale&&(this.vectorScale=t.vectorScale),void 0!==t.coneScale&&(this.coneScale=t.coneScale),void 0!==t.coneOffset&&(this.coneOffset=t.coneOffset),t.texture?(this.texture.dispose(),this.texture=o(e,t.texture)):t.colormap&&(this.texture.shape=[256,256],this.texture.minFilter=e.LINEAR_MIPMAP_LINEAR,this.texture.magFilter=e.LINEAR,this.texture.setPixels(function(t){for(var e=f({colormap:t,nshades:256,format:\"rgba\"}),r=new Uint8Array(1024),n=0;n<256;++n){for(var i=e[n],a=0;a<3;++a)r[4*n+a]=i[a];r[4*n+3]=255*i[3]}return u(r,[256,256,4],[4,0,1])}(t.colormap)),this.texture.generateMipmap());var r=t.cells,n=t.positions,i=t.vectors;if(n&&r&&i){var a=[],l=[],c=[],h=[],p=[],d=[],g=[],v=[],m=[],y=[],x=[],b=[],_=[],w=[],k=[];this.cells=r,this.positions=n;var M=t.vertexNormals,A=t.cellNormals,T=void 0===t.vertexNormalsEpsilon?1e-6:t.vertexNormalsEpsilon,S=void 0===t.faceNormalsEpsilon?1e-6:t.faceNormalsEpsilon;t.useFacetNormals&&!A&&(A=s.faceNormals(r,n,S)),A||M||(M=s.vertexNormals(r,n,T));var E=t.vertexColors,C=t.cellColors,L=t.meshColor||[1,1,1,1],z=t.vertexUVs,O=t.vertexIntensity,I=t.cellUVs,P=t.cellIntensity,D=1/0,R=-1/0;if(!z&&!I)if(O)if(t.vertexIntensityBounds)D=+t.vertexIntensityBounds[0],R=+t.vertexIntensityBounds[1];else for(var B=0;B<O.length;++B){var F=O[B];D=Math.min(D,F),R=Math.max(R,F)}else if(P)for(B=0;B<P.length;++B){F=P[B];D=Math.min(D,F),R=Math.max(R,F)}else for(B=0;B<n.length;++B){F=n[B][2];D=Math.min(D,F),R=Math.max(R,F)}this.intensity=O||(P?function(t,e,r){for(var n=new Array(e),i=0;i<e;++i)n[i]=0;var a=t.length;for(i=0;i<a;++i)for(var o=t[i],s=0;s<o.length;++s)n[o[s]]=r[i];return n}(r,n.length,P):function(t){for(var e=t.length,r=new Array(e),n=0;n<e;++n)r[n]=t[n][2];return r}(n));var N=t.pointSizes,j=t.pointSize||1;this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]];for(B=0;B<n.length;++B)for(var V=n[B],U=0;U<3;++U)!isNaN(V[U])&&isFinite(V[U])&&(this.bounds[0][U]=Math.min(this.bounds[0][U],V[U]),this.bounds[1][U]=Math.max(this.bounds[1][U],V[U]));var q=0,H=0,G=0;t:for(B=0;B<r.length;++B){var W=r[B];switch(W.length){case 1:for(V=n[X=W[0]],U=0;U<3;++U)if(isNaN(V[U])||!isFinite(V[U]))continue t;x.push(V[0],V[1],V[2],V[3]),3===(Z=E?E[X]:C?C[B]:L).length?b.push(Z[0],Z[1],Z[2],1):b.push(Z[0],Z[1],Z[2],Z[3]),$=z?z[X]:O?[(O[X]-D)/(R-D),0]:I?I[B]:P?[(P[B]-D)/(R-D),0]:[(V[2]-D)/(R-D),0],_.push($[0],$[1]),N?w.push(N[X]):w.push(j),k.push(B),G+=1;break;case 2:for(U=0;U<2;++U){V=n[X=W[U]];for(var Y=0;Y<3;++Y)if(isNaN(V[Y])||!isFinite(V[Y]))continue t}for(U=0;U<2;++U){V=n[X=W[U]];g.push(V[0],V[1],V[2]),3===(Z=E?E[X]:C?C[B]:L).length?v.push(Z[0],Z[1],Z[2],1):v.push(Z[0],Z[1],Z[2],Z[3]),$=z?z[X]:O?[(O[X]-D)/(R-D),0]:I?I[B]:P?[(P[B]-D)/(R-D),0]:[(V[2]-D)/(R-D),0],m.push($[0],$[1]),y.push(B)}H+=1;break;case 3:for(U=0;U<3;++U)for(V=n[X=W[U]],Y=0;Y<3;++Y)if(isNaN(V[Y])||!isFinite(V[Y]))continue t;for(U=0;U<3;++U){var X;V=n[X=W[U]];a.push(V[0],V[1],V[2],V[3]);var Z,$,J,K=i[X];l.push(K[0],K[1],K[2]),3===(Z=E?E[X]:C?C[B]:L).length?c.push(Z[0],Z[1],Z[2],1):c.push(Z[0],Z[1],Z[2],Z[3]),$=z?z[X]:O?[(O[X]-D)/(R-D),0]:I?I[B]:P?[(P[B]-D)/(R-D),0]:[(V[2]-D)/(R-D),0],p.push($[0],$[1]),J=M?M[X]:A[B],h.push(J[0],J[1],J[2]),d.push(B)}q+=1}}this.pointCount=G,this.edgeCount=H,this.triangleCount=q,this.pointPositions.update(x),this.pointColors.update(b),this.pointUVs.update(_),this.pointSizes.update(w),this.pointIds.update(new Uint32Array(k)),this.edgePositions.update(g),this.edgeColors.update(v),this.edgeUVs.update(m),this.edgeIds.update(new Uint32Array(y)),this.trianglePositions.update(a),this.triangleVectors.update(l),this.triangleColors.update(c),this.triangleUVs.update(p),this.triangleNormals.update(h),this.triangleIds.update(new Uint32Array(d))}},x.drawTransparent=x.draw=function(t){t=t||{};for(var e=this.gl,r=t.model||m,n=t.view||m,i=t.projection||m,a=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],o=0;o<3;++o)a[0][o]=Math.max(a[0][o],this.clipBounds[0][o]),a[1][o]=Math.min(a[1][o],this.clipBounds[1][o]);var s={model:r,view:n,projection:i,clipBounds:a,kambient:this.ambientLight,kdiffuse:this.diffuseLight,kspecular:this.specularLight,roughness:this.roughness,fresnel:this.fresnel,eyePosition:[0,0,0],lightPosition:[0,0,0],opacity:this.opacity,vectorScale:this.vectorScale,coneScale:this.coneScale,coneOffset:this.coneOffset,contourColor:this.contourColor,texture:0};this.texture.bind(0);var u=new Array(16);l(u,s.view,s.model),l(u,s.projection,u),c(u,u);for(o=0;o<3;++o)s.eyePosition[o]=u[12+o]/u[15];var f,h=u[15];for(o=0;o<3;++o)h+=this.lightPosition[o]*u[4*o+3];for(o=0;o<3;++o){for(var p=u[12+o],d=0;d<3;++d)p+=u[4*d+o]*this.lightPosition[d];s.lightPosition[o]=p/h}this.triangleCount>0&&((f=this.triShader).bind(),f.uniforms=s,this.triangleVAO.bind(),e.drawArrays(e.TRIANGLES,0,3*this.triangleCount),this.triangleVAO.unbind());this.edgeCount>0&&this.lineWidth>0&&((f=this.lineShader).bind(),f.uniforms=s,this.edgeVAO.bind(),e.lineWidth(this.lineWidth),e.drawArrays(e.LINES,0,2*this.edgeCount),this.edgeVAO.unbind());this.pointCount>0&&((f=this.pointShader).bind(),f.uniforms=s,this.pointVAO.bind(),e.drawArrays(e.POINTS,0,this.pointCount),this.pointVAO.unbind());this.contourEnable&&this.contourCount>0&&this.contourLineWidth>0&&((f=this.contourShader).bind(),f.uniforms=s,this.contourVAO.bind(),e.drawArrays(e.LINES,0,this.contourCount),this.contourVAO.unbind())},x.drawPick=function(t){t=t||{};for(var e=this.gl,r=t.model||m,n=t.view||m,i=t.projection||m,a=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],o=0;o<3;++o)a[0][o]=Math.max(a[0][o],this.clipBounds[0][o]),a[1][o]=Math.min(a[1][o],this.clipBounds[1][o]);this._model=[].slice.call(r),this._view=[].slice.call(n),this._projection=[].slice.call(i),this._resolution=[e.drawingBufferWidth,e.drawingBufferHeight];var s,l={model:r,view:n,projection:i,clipBounds:a,vectorScale:this.vectorScale,coneScale:this.coneScale,coneOffset:this.coneOffset,pickId:this.pickId/255};((s=this.pickShader).bind(),s.uniforms=l,this.triangleCount>0&&(this.triangleVAO.bind(),e.drawArrays(e.TRIANGLES,0,3*this.triangleCount),this.triangleVAO.unbind()),this.edgeCount>0&&(this.edgeVAO.bind(),e.lineWidth(this.lineWidth),e.drawArrays(e.LINES,0,2*this.edgeCount),this.edgeVAO.unbind()),this.pointCount>0)&&((s=this.pointPickShader).bind(),s.uniforms=l,this.pointVAO.bind(),e.drawArrays(e.POINTS,0,this.pointCount),this.pointVAO.unbind())},x.pick=function(t){if(!t)return null;if(t.id!==this.pickId)return null;var e=t.value[0]+256*t.value[1]+65536*t.value[2],r=this.cells[e],n=this.positions[r[1]].slice(0,3);return{index:Math.floor(r[1]/48),position:n,dataCoordinate:n}},x.dispose=function(){this.texture.dispose(),this.triShader.dispose(),this.pickShader.dispose(),this.triangleVAO.dispose(),this.trianglePositions.dispose(),this.triangleVectors.dispose(),this.triangleColors.dispose(),this.triangleUVs.dispose(),this.triangleNormals.dispose(),this.triangleIds.dispose(),this.edgeVAO.dispose(),this.edgePositions.dispose(),this.edgeColors.dispose(),this.edgeUVs.dispose(),this.edgeIds.dispose(),this.pointVAO.dispose(),this.pointPositions.dispose(),this.pointColors.dispose(),this.pointUVs.dispose(),this.pointSizes.dispose(),this.pointIds.dispose(),this.contourVAO.dispose(),this.contourPositions.dispose()},e.exports=function(t,e){1===arguments.length&&(t=(e=t).gl);var r=e.triShader||function(t){var e=n(t,g.vertex,g.fragment,null,g.attributes);return e.attributes.position.location=0,e.attributes.color.location=2,e.attributes.uv.location=3,e.attributes.vector.location=5,e}(t),s=b(t),l=o(t,u(new Uint8Array([255,255,255,255]),[1,1,4]));l.generateMipmap(),l.minFilter=t.LINEAR_MIPMAP_LINEAR,l.magFilter=t.LINEAR;var c=i(t),f=i(t),h=i(t),p=i(t),d=i(t),v=i(t),m=a(t,[{buffer:c,type:t.FLOAT,size:4},{buffer:v,type:t.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:h,type:t.FLOAT,size:4},{buffer:p,type:t.FLOAT,size:2},{buffer:d,type:t.FLOAT,size:3},{buffer:f,type:t.FLOAT,size:3}]),x=i(t),_=i(t),w=i(t),k=i(t),M=a(t,[{buffer:x,type:t.FLOAT,size:3},{buffer:k,type:t.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:_,type:t.FLOAT,size:4},{buffer:w,type:t.FLOAT,size:2}]),A=i(t),T=i(t),S=i(t),E=i(t),C=i(t),L=a(t,[{buffer:A,type:t.FLOAT,size:3},{buffer:C,type:t.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:T,type:t.FLOAT,size:4},{buffer:S,type:t.FLOAT,size:2},{buffer:E,type:t.FLOAT,size:1}]),z=i(t),O=new y(t,l,r,null,null,s,null,null,c,f,v,h,p,d,m,x,k,_,w,M,A,C,T,S,E,L,z,a(t,[{buffer:z,type:t.FLOAT,size:3}]));return O.update(e),O}},{\"./closest-point\":232,\"./shaders\":234,colormap:114,\"gl-buffer\":230,\"gl-mat4/invert\":254,\"gl-mat4/multiply\":256,\"gl-shader\":288,\"gl-texture2d\":305,\"gl-vao\":310,ndarray:433,normals:436,\"simplicial-complex-contour\":494,\"typedarray-pool\":522}],234:[function(t,e,r){var n=t(\"glslify\"),i=n([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nfloat inverse(float m) {\\n return 1.0 / m;\\n}\\n\\nmat2 inverse(mat2 m) {\\n return mat2(m[1][1],-m[0][1],\\n -m[1][0], m[0][0]) / (m[0][0]*m[1][1] - m[0][1]*m[1][0]);\\n}\\n\\nmat3 inverse(mat3 m) {\\n float a00 = m[0][0], a01 = m[0][1], a02 = m[0][2];\\n float a10 = m[1][0], a11 = m[1][1], a12 = m[1][2];\\n float a20 = m[2][0], a21 = m[2][1], a22 = m[2][2];\\n\\n float b01 = a22 * a11 - a12 * a21;\\n float b11 = -a22 * a10 + a12 * a20;\\n float b21 = a21 * a10 - a11 * a20;\\n\\n float det = a00 * b01 + a01 * b11 + a02 * b21;\\n\\n return mat3(b01, (-a22 * a01 + a02 * a21), (a12 * a01 - a02 * a11),\\n b11, (a22 * a00 - a02 * a20), (-a12 * a00 + a02 * a10),\\n b21, (-a21 * a00 + a01 * a20), (a11 * a00 - a01 * a10)) / det;\\n}\\n\\nmat4 inverse(mat4 m) {\\n float\\n a00 = m[0][0], a01 = m[0][1], a02 = m[0][2], a03 = m[0][3],\\n a10 = m[1][0], a11 = m[1][1], a12 = m[1][2], a13 = m[1][3],\\n a20 = m[2][0], a21 = m[2][1], a22 = m[2][2], a23 = m[2][3],\\n a30 = m[3][0], a31 = m[3][1], a32 = m[3][2], a33 = m[3][3],\\n\\n b00 = a00 * a11 - a01 * a10,\\n b01 = a00 * a12 - a02 * a10,\\n b02 = a00 * a13 - a03 * a10,\\n b03 = a01 * a12 - a02 * a11,\\n b04 = a01 * a13 - a03 * a11,\\n b05 = a02 * a13 - a03 * a12,\\n b06 = a20 * a31 - a21 * a30,\\n b07 = a20 * a32 - a22 * a30,\\n b08 = a20 * a33 - a23 * a30,\\n b09 = a21 * a32 - a22 * a31,\\n b10 = a21 * a33 - a23 * a31,\\n b11 = a22 * a33 - a23 * a32,\\n\\n det = b00 * b11 - b01 * b10 + b02 * b09 + b03 * b08 - b04 * b07 + b05 * b06;\\n\\n return mat4(\\n a11 * b11 - a12 * b10 + a13 * b09,\\n a02 * b10 - a01 * b11 - a03 * b09,\\n a31 * b05 - a32 * b04 + a33 * b03,\\n a22 * b04 - a21 * b05 - a23 * b03,\\n a12 * b08 - a10 * b11 - a13 * b07,\\n a00 * b11 - a02 * b08 + a03 * b07,\\n a32 * b02 - a30 * b05 - a33 * b01,\\n a20 * b05 - a22 * b02 + a23 * b01,\\n a10 * b10 - a11 * b08 + a13 * b06,\\n a01 * b08 - a00 * b10 - a03 * b06,\\n a30 * b04 - a31 * b02 + a33 * b00,\\n a21 * b02 - a20 * b04 - a23 * b00,\\n a11 * b07 - a10 * b09 - a12 * b06,\\n a00 * b09 - a01 * b07 + a02 * b06,\\n a31 * b01 - a30 * b03 - a32 * b00,\\n a20 * b03 - a21 * b01 + a22 * b00) / det;\\n}\\n\\nvec3 getOrthogonalVector(vec3 v) {\\n // Return up-vector for only-z vector.\\n // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0).\\n // From the above if-statement we have ||a|| > 0 U ||b|| > 0.\\n // Assign z = 0, x = -b, y = a:\\n // a*-b + b*a + c*0 = -ba + ba + 0 = 0\\n if (v.x*v.x > v.z*v.z || v.y*v.y > v.z*v.z) {\\n return normalize(vec3(-v.y, v.x, 0.0));\\n } else {\\n return normalize(vec3(0.0, v.z, -v.y));\\n }\\n}\\n\\n// Calculate the cone vertex and normal at the given index.\\n//\\n// The returned vertex is for a cone with its top at origin and height of 1.0,\\n// pointing in the direction of the vector attribute.\\n//\\n// Each cone is made up of a top vertex, a center base vertex and base perimeter vertices.\\n// These vertices are used to make up the triangles of the cone by the following:\\n// segment + 0 top vertex\\n// segment + 1 perimeter vertex a+1\\n// segment + 2 perimeter vertex a\\n// segment + 3 center base vertex\\n// segment + 4 perimeter vertex a\\n// segment + 5 perimeter vertex a+1\\n// Where segment is the number of the radial segment * 6 and a is the angle at that radial segment.\\n// To go from index to segment, floor(index / 6)\\n// To go from segment to angle, 2*pi * (segment/segmentCount)\\n// To go from index to segment index, index - (segment*6)\\n//\\nvec3 getConePosition(vec3 d, float index, float coneOffset, out vec3 normal) {\\n\\n const float segmentCount = 8.0;\\n\\n index = mod(index, segmentCount * 6.0);\\n\\n float segment = floor(index/6.0);\\n float segmentIndex = index - (segment*6.0);\\n\\n normal = -normalize(d);\\n\\n if (segmentIndex == 3.0) {\\n return mix(vec3(0.0), -d, coneOffset);\\n }\\n\\n // angle = 2pi * ((segment + ((segmentIndex == 1.0 || segmentIndex == 5.0) ? 1.0 : 0.0)) / segmentCount)\\n float nextAngle = float(segmentIndex == 1.0 || segmentIndex == 5.0);\\n float angle = 2.0 * 3.14159 * ((segment + nextAngle) / segmentCount);\\n\\n vec3 v1 = mix(d, vec3(0.0), coneOffset);\\n vec3 v2 = v1 - d;\\n\\n vec3 u = getOrthogonalVector(d);\\n vec3 v = normalize(cross(u, d));\\n\\n vec3 x = u * cos(angle) * length(d)*0.25;\\n vec3 y = v * sin(angle) * length(d)*0.25;\\n vec3 v3 = v2 + x + y;\\n if (segmentIndex <= 2.0) {\\n vec3 tx = u * sin(angle);\\n vec3 ty = v * -cos(angle);\\n vec3 tangent = tx + ty;\\n normal = normalize(cross(v3 - v1, tangent));\\n }\\n\\n if (segmentIndex == 0.0) {\\n return mix(d, vec3(0.0), coneOffset);\\n }\\n return v3;\\n}\\n\\nattribute vec3 vector;\\nattribute vec4 color, position;\\nattribute vec2 uv;\\nuniform float vectorScale;\\nuniform float coneScale;\\n\\nuniform float coneOffset;\\n\\nuniform mat4 model\\n , view\\n , projection;\\nuniform vec3 eyePosition\\n , lightPosition;\\n\\nvarying vec3 f_normal\\n , f_lightDirection\\n , f_eyeDirection\\n , f_data\\n , f_position;\\nvarying vec4 f_color;\\nvarying vec2 f_uv;\\n\\nvoid main() {\\n // Scale the vector magnitude to stay constant with\\n // model & view changes.\\n vec3 normal;\\n vec3 XYZ = getConePosition(mat3(model) * ((vectorScale * coneScale) * vector), position.w, coneOffset, normal);\\n vec4 conePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\\n normal = normalize(normal * inverse(mat3(model)));\\n\\n // vec4 m_position = model * vec4(conePosition, 1.0);\\n vec4 t_position = view * conePosition;\\n gl_Position = projection * t_position;\\n f_color = color; //vec4(position.w, color.r, 0, 0);\\n f_normal = normal;\\n f_data = conePosition.xyz;\\n f_position = position.xyz;\\n f_eyeDirection = eyePosition - conePosition.xyz;\\n f_lightDirection = lightPosition - conePosition.xyz;\\n f_uv = uv;\\n}\\n\"]),a=n([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nfloat beckmannDistribution(float x, float roughness) {\\n float NdotH = max(x, 0.0001);\\n float cos2Alpha = NdotH * NdotH;\\n float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\\n float roughness2 = roughness * roughness;\\n float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\\n return exp(tan2Alpha / roughness2) / denom;\\n}\\n\\nfloat cookTorranceSpecular(\\n vec3 lightDirection,\\n vec3 viewDirection,\\n vec3 surfaceNormal,\\n float roughness,\\n float fresnel) {\\n\\n float VdotN = max(dot(viewDirection, surfaceNormal), 0.0);\\n float LdotN = max(dot(lightDirection, surfaceNormal), 0.0);\\n\\n //Half angle vector\\n vec3 H = normalize(lightDirection + viewDirection);\\n\\n //Geometric term\\n float NdotH = max(dot(surfaceNormal, H), 0.0);\\n float VdotH = max(dot(viewDirection, H), 0.000001);\\n float LdotH = max(dot(lightDirection, H), 0.000001);\\n float G1 = (2.0 * NdotH * VdotN) / VdotH;\\n float G2 = (2.0 * NdotH * LdotN) / LdotH;\\n float G = min(1.0, min(G1, G2));\\n \\n //Distribution term\\n float D = beckmannDistribution(NdotH, roughness);\\n\\n //Fresnel term\\n float F = pow(1.0 - VdotN, fresnel);\\n\\n //Multiply terms and done\\n return G * F * D / max(3.14159265 * VdotN, 0.000001);\\n}\\n\\nbool outOfRange(float a, float b, float p) {\\n return ((p > max(a, b)) || \\n (p < min(a, b)));\\n}\\n\\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y));\\n}\\n\\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y) ||\\n outOfRange(a.z, b.z, p.z));\\n}\\n\\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\\n return outOfRange(a.xyz, b.xyz, p.xyz);\\n}\\n\\nuniform vec3 clipBounds[2];\\nuniform float roughness\\n , fresnel\\n , kambient\\n , kdiffuse\\n , kspecular\\n , opacity;\\nuniform sampler2D texture;\\n\\nvarying vec3 f_normal\\n , f_lightDirection\\n , f_eyeDirection\\n , f_data\\n , f_position;\\nvarying vec4 f_color;\\nvarying vec2 f_uv;\\n\\nvoid main() {\\n\\n if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\\n\\n vec3 N = normalize(f_normal);\\n vec3 L = normalize(f_lightDirection);\\n vec3 V = normalize(f_eyeDirection);\\n\\n if(!gl_FrontFacing) {\\n N = -N;\\n }\\n\\n float specular = cookTorranceSpecular(L, V, N, roughness, fresnel);\\n float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\\n\\n vec4 surfaceColor = texture2D(texture, f_uv);\\n vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0);\\n\\n gl_FragColor = litColor * opacity;\\n}\"]),o=n([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nvec3 getOrthogonalVector(vec3 v) {\\n // Return up-vector for only-z vector.\\n // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0).\\n // From the above if-statement we have ||a|| > 0 U ||b|| > 0.\\n // Assign z = 0, x = -b, y = a:\\n // a*-b + b*a + c*0 = -ba + ba + 0 = 0\\n if (v.x*v.x > v.z*v.z || v.y*v.y > v.z*v.z) {\\n return normalize(vec3(-v.y, v.x, 0.0));\\n } else {\\n return normalize(vec3(0.0, v.z, -v.y));\\n }\\n}\\n\\n// Calculate the cone vertex and normal at the given index.\\n//\\n// The returned vertex is for a cone with its top at origin and height of 1.0,\\n// pointing in the direction of the vector attribute.\\n//\\n// Each cone is made up of a top vertex, a center base vertex and base perimeter vertices.\\n// These vertices are used to make up the triangles of the cone by the following:\\n// segment + 0 top vertex\\n// segment + 1 perimeter vertex a+1\\n// segment + 2 perimeter vertex a\\n// segment + 3 center base vertex\\n// segment + 4 perimeter vertex a\\n// segment + 5 perimeter vertex a+1\\n// Where segment is the number of the radial segment * 6 and a is the angle at that radial segment.\\n// To go from index to segment, floor(index / 6)\\n// To go from segment to angle, 2*pi * (segment/segmentCount)\\n// To go from index to segment index, index - (segment*6)\\n//\\nvec3 getConePosition(vec3 d, float index, float coneOffset, out vec3 normal) {\\n\\n const float segmentCount = 8.0;\\n\\n index = mod(index, segmentCount * 6.0);\\n\\n float segment = floor(index/6.0);\\n float segmentIndex = index - (segment*6.0);\\n\\n normal = -normalize(d);\\n\\n if (segmentIndex == 3.0) {\\n return mix(vec3(0.0), -d, coneOffset);\\n }\\n\\n // angle = 2pi * ((segment + ((segmentIndex == 1.0 || segmentIndex == 5.0) ? 1.0 : 0.0)) / segmentCount)\\n float nextAngle = float(segmentIndex == 1.0 || segmentIndex == 5.0);\\n float angle = 2.0 * 3.14159 * ((segment + nextAngle) / segmentCount);\\n\\n vec3 v1 = mix(d, vec3(0.0), coneOffset);\\n vec3 v2 = v1 - d;\\n\\n vec3 u = getOrthogonalVector(d);\\n vec3 v = normalize(cross(u, d));\\n\\n vec3 x = u * cos(angle) * length(d)*0.25;\\n vec3 y = v * sin(angle) * length(d)*0.25;\\n vec3 v3 = v2 + x + y;\\n if (segmentIndex <= 2.0) {\\n vec3 tx = u * sin(angle);\\n vec3 ty = v * -cos(angle);\\n vec3 tangent = tx + ty;\\n normal = normalize(cross(v3 - v1, tangent));\\n }\\n\\n if (segmentIndex == 0.0) {\\n return mix(d, vec3(0.0), coneOffset);\\n }\\n return v3;\\n}\\n\\nattribute vec3 vector;\\nattribute vec4 position;\\nattribute vec4 id;\\n\\nuniform mat4 model, view, projection;\\n\\nuniform float vectorScale;\\nuniform float coneScale;\\nuniform float coneOffset;\\n\\nvarying vec3 f_position;\\nvarying vec4 f_id;\\n\\nvoid main() {\\n vec3 normal;\\n vec3 XYZ = getConePosition(mat3(model) * ((vectorScale * coneScale) * vector), position.w, coneOffset, normal);\\n vec4 conePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\\n gl_Position = projection * view * conePosition;\\n f_id = id;\\n f_position = position.xyz;\\n}\\n\"]),s=n([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nbool outOfRange(float a, float b, float p) {\\n return ((p > max(a, b)) || \\n (p < min(a, b)));\\n}\\n\\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y));\\n}\\n\\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y) ||\\n outOfRange(a.z, b.z, p.z));\\n}\\n\\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\\n return outOfRange(a.xyz, b.xyz, p.xyz);\\n}\\n\\nuniform vec3 clipBounds[2];\\nuniform float pickId;\\n\\nvarying vec3 f_position;\\nvarying vec4 f_id;\\n\\nvoid main() {\\n if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\\n\\n gl_FragColor = vec4(pickId, f_id.xyz);\\n}\"]);r.meshShader={vertex:i,fragment:a,attributes:[{name:\"position\",type:\"vec4\"},{name:\"normal\",type:\"vec3\"},{name:\"color\",type:\"vec4\"},{name:\"uv\",type:\"vec2\"},{name:\"vector\",type:\"vec3\"}]},r.pickShader={vertex:o,fragment:s,attributes:[{name:\"position\",type:\"vec4\"},{name:\"id\",type:\"vec4\"},{name:\"vector\",type:\"vec3\"}]}},{glslify:392}],235:[function(t,e,r){e.exports={0:\"NONE\",1:\"ONE\",2:\"LINE_LOOP\",3:\"LINE_STRIP\",4:\"TRIANGLES\",5:\"TRIANGLE_STRIP\",6:\"TRIANGLE_FAN\",256:\"DEPTH_BUFFER_BIT\",512:\"NEVER\",513:\"LESS\",514:\"EQUAL\",515:\"LEQUAL\",516:\"GREATER\",517:\"NOTEQUAL\",518:\"GEQUAL\",519:\"ALWAYS\",768:\"SRC_COLOR\",769:\"ONE_MINUS_SRC_COLOR\",770:\"SRC_ALPHA\",771:\"ONE_MINUS_SRC_ALPHA\",772:\"DST_ALPHA\",773:\"ONE_MINUS_DST_ALPHA\",774:\"DST_COLOR\",775:\"ONE_MINUS_DST_COLOR\",776:\"SRC_ALPHA_SATURATE\",1024:\"STENCIL_BUFFER_BIT\",1028:\"FRONT\",1029:\"BACK\",1032:\"FRONT_AND_BACK\",1280:\"INVALID_ENUM\",1281:\"INVALID_VALUE\",1282:\"INVALID_OPERATION\",1285:\"OUT_OF_MEMORY\",1286:\"INVALID_FRAMEBUFFER_OPERATION\",2304:\"CW\",2305:\"CCW\",2849:\"LINE_WIDTH\",2884:\"CULL_FACE\",2885:\"CULL_FACE_MODE\",2886:\"FRONT_FACE\",2928:\"DEPTH_RANGE\",2929:\"DEPTH_TEST\",2930:\"DEPTH_WRITEMASK\",2931:\"DEPTH_CLEAR_VALUE\",2932:\"DEPTH_FUNC\",2960:\"STENCIL_TEST\",2961:\"STENCIL_CLEAR_VALUE\",2962:\"STENCIL_FUNC\",2963:\"STENCIL_VALUE_MASK\",2964:\"STENCIL_FAIL\",2965:\"STENCIL_PASS_DEPTH_FAIL\",2966:\"STENCIL_PASS_DEPTH_PASS\",2967:\"STENCIL_REF\",2968:\"STENCIL_WRITEMASK\",2978:\"VIEWPORT\",3024:\"DITHER\",3042:\"BLEND\",3088:\"SCISSOR_BOX\",3089:\"SCISSOR_TEST\",3106:\"COLOR_CLEAR_VALUE\",3107:\"COLOR_WRITEMASK\",3317:\"UNPACK_ALIGNMENT\",3333:\"PACK_ALIGNMENT\",3379:\"MAX_TEXTURE_SIZE\",3386:\"MAX_VIEWPORT_DIMS\",3408:\"SUBPIXEL_BITS\",3410:\"RED_BITS\",3411:\"GREEN_BITS\",3412:\"BLUE_BITS\",3413:\"ALPHA_BITS\",3414:\"DEPTH_BITS\",3415:\"STENCIL_BITS\",3553:\"TEXTURE_2D\",4352:\"DONT_CARE\",4353:\"FASTEST\",4354:\"NICEST\",5120:\"BYTE\",5121:\"UNSIGNED_BYTE\",5122:\"SHORT\",5123:\"UNSIGNED_SHORT\",5124:\"INT\",5125:\"UNSIGNED_INT\",5126:\"FLOAT\",5386:\"INVERT\",5890:\"TEXTURE\",6401:\"STENCIL_INDEX\",6402:\"DEPTH_COMPONENT\",6406:\"ALPHA\",6407:\"RGB\",6408:\"RGBA\",6409:\"LUMINANCE\",6410:\"LUMINANCE_ALPHA\",7680:\"KEEP\",7681:\"REPLACE\",7682:\"INCR\",7683:\"DECR\",7936:\"VENDOR\",7937:\"RENDERER\",7938:\"VERSION\",9728:\"NEAREST\",9729:\"LINEAR\",9984:\"NEAREST_MIPMAP_NEAREST\",9985:\"LINEAR_MIPMAP_NEAREST\",9986:\"NEAREST_MIPMAP_LINEAR\",9987:\"LINEAR_MIPMAP_LINEAR\",10240:\"TEXTURE_MAG_FILTER\",10241:\"TEXTURE_MIN_FILTER\",10242:\"TEXTURE_WRAP_S\",10243:\"TEXTURE_WRAP_T\",10497:\"REPEAT\",10752:\"POLYGON_OFFSET_UNITS\",16384:\"COLOR_BUFFER_BIT\",32769:\"CONSTANT_COLOR\",32770:\"ONE_MINUS_CONSTANT_COLOR\",32771:\"CONSTANT_ALPHA\",32772:\"ONE_MINUS_CONSTANT_ALPHA\",32773:\"BLEND_COLOR\",32774:\"FUNC_ADD\",32777:\"BLEND_EQUATION_RGB\",32778:\"FUNC_SUBTRACT\",32779:\"FUNC_REVERSE_SUBTRACT\",32819:\"UNSIGNED_SHORT_4_4_4_4\",32820:\"UNSIGNED_SHORT_5_5_5_1\",32823:\"POLYGON_OFFSET_FILL\",32824:\"POLYGON_OFFSET_FACTOR\",32854:\"RGBA4\",32855:\"RGB5_A1\",32873:\"TEXTURE_BINDING_2D\",32926:\"SAMPLE_ALPHA_TO_COVERAGE\",32928:\"SAMPLE_COVERAGE\",32936:\"SAMPLE_BUFFERS\",32937:\"SAMPLES\",32938:\"SAMPLE_COVERAGE_VALUE\",32939:\"SAMPLE_COVERAGE_INVERT\",32968:\"BLEND_DST_RGB\",32969:\"BLEND_SRC_RGB\",32970:\"BLEND_DST_ALPHA\",32971:\"BLEND_SRC_ALPHA\",33071:\"CLAMP_TO_EDGE\",33170:\"GENERATE_MIPMAP_HINT\",33189:\"DEPTH_COMPONENT16\",33306:\"DEPTH_STENCIL_ATTACHMENT\",33635:\"UNSIGNED_SHORT_5_6_5\",33648:\"MIRRORED_REPEAT\",33901:\"ALIASED_POINT_SIZE_RANGE\",33902:\"ALIASED_LINE_WIDTH_RANGE\",33984:\"TEXTURE0\",33985:\"TEXTURE1\",33986:\"TEXTURE2\",33987:\"TEXTURE3\",33988:\"TEXTURE4\",33989:\"TEXTURE5\",33990:\"TEXTURE6\",33991:\"TEXTURE7\",33992:\"TEXTURE8\",33993:\"TEXTURE9\",33994:\"TEXTURE10\",33995:\"TEXTURE11\",33996:\"TEXTURE12\",33997:\"TEXTURE13\",33998:\"TEXTURE14\",33999:\"TEXTURE15\",34000:\"TEXTURE16\",34001:\"TEXTURE17\",34002:\"TEXTURE18\",34003:\"TEXTURE19\",34004:\"TEXTURE20\",34005:\"TEXTURE21\",34006:\"TEXTURE22\",34007:\"TEXTURE23\",34008:\"TEXTURE24\",34009:\"TEXTURE25\",34010:\"TEXTURE26\",34011:\"TEXTURE27\",34012:\"TEXTURE28\",34013:\"TEXTURE29\",34014:\"TEXTURE30\",34015:\"TEXTURE31\",34016:\"ACTIVE_TEXTURE\",34024:\"MAX_RENDERBUFFER_SIZE\",34041:\"DEPTH_STENCIL\",34055:\"INCR_WRAP\",34056:\"DECR_WRAP\",34067:\"TEXTURE_CUBE_MAP\",34068:\"TEXTURE_BINDING_CUBE_MAP\",34069:\"TEXTURE_CUBE_MAP_POSITIVE_X\",34070:\"TEXTURE_CUBE_MAP_NEGATIVE_X\",34071:\"TEXTURE_CUBE_MAP_POSITIVE_Y\",34072:\"TEXTURE_CUBE_MAP_NEGATIVE_Y\",34073:\"TEXTURE_CUBE_MAP_POSITIVE_Z\",34074:\"TEXTURE_CUBE_MAP_NEGATIVE_Z\",34076:\"MAX_CUBE_MAP_TEXTURE_SIZE\",34338:\"VERTEX_ATTRIB_ARRAY_ENABLED\",34339:\"VERTEX_ATTRIB_ARRAY_SIZE\",34340:\"VERTEX_ATTRIB_ARRAY_STRIDE\",34341:\"VERTEX_ATTRIB_ARRAY_TYPE\",34342:\"CURRENT_VERTEX_ATTRIB\",34373:\"VERTEX_ATTRIB_ARRAY_POINTER\",34466:\"NUM_COMPRESSED_TEXTURE_FORMATS\",34467:\"COMPRESSED_TEXTURE_FORMATS\",34660:\"BUFFER_SIZE\",34661:\"BUFFER_USAGE\",34816:\"STENCIL_BACK_FUNC\",34817:\"STENCIL_BACK_FAIL\",34818:\"STENCIL_BACK_PASS_DEPTH_FAIL\",34819:\"STENCIL_BACK_PASS_DEPTH_PASS\",34877:\"BLEND_EQUATION_ALPHA\",34921:\"MAX_VERTEX_ATTRIBS\",34922:\"VERTEX_ATTRIB_ARRAY_NORMALIZED\",34930:\"MAX_TEXTURE_IMAGE_UNITS\",34962:\"ARRAY_BUFFER\",34963:\"ELEMENT_ARRAY_BUFFER\",34964:\"ARRAY_BUFFER_BINDING\",34965:\"ELEMENT_ARRAY_BUFFER_BINDING\",34975:\"VERTEX_ATTRIB_ARRAY_BUFFER_BINDING\",35040:\"STREAM_DRAW\",35044:\"STATIC_DRAW\",35048:\"DYNAMIC_DRAW\",35632:\"FRAGMENT_SHADER\",35633:\"VERTEX_SHADER\",35660:\"MAX_VERTEX_TEXTURE_IMAGE_UNITS\",35661:\"MAX_COMBINED_TEXTURE_IMAGE_UNITS\",35663:\"SHADER_TYPE\",35664:\"FLOAT_VEC2\",35665:\"FLOAT_VEC3\",35666:\"FLOAT_VEC4\",35667:\"INT_VEC2\",35668:\"INT_VEC3\",35669:\"INT_VEC4\",35670:\"BOOL\",35671:\"BOOL_VEC2\",35672:\"BOOL_VEC3\",35673:\"BOOL_VEC4\",35674:\"FLOAT_MAT2\",35675:\"FLOAT_MAT3\",35676:\"FLOAT_MAT4\",35678:\"SAMPLER_2D\",35680:\"SAMPLER_CUBE\",35712:\"DELETE_STATUS\",35713:\"COMPILE_STATUS\",35714:\"LINK_STATUS\",35715:\"VALIDATE_STATUS\",35716:\"INFO_LOG_LENGTH\",35717:\"ATTACHED_SHADERS\",35718:\"ACTIVE_UNIFORMS\",35719:\"ACTIVE_UNIFORM_MAX_LENGTH\",35720:\"SHADER_SOURCE_LENGTH\",35721:\"ACTIVE_ATTRIBUTES\",35722:\"ACTIVE_ATTRIBUTE_MAX_LENGTH\",35724:\"SHADING_LANGUAGE_VERSION\",35725:\"CURRENT_PROGRAM\",36003:\"STENCIL_BACK_REF\",36004:\"STENCIL_BACK_VALUE_MASK\",36005:\"STENCIL_BACK_WRITEMASK\",36006:\"FRAMEBUFFER_BINDING\",36007:\"RENDERBUFFER_BINDING\",36048:\"FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE\",36049:\"FRAMEBUFFER_ATTACHMENT_OBJECT_NAME\",36050:\"FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL\",36051:\"FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE\",36053:\"FRAMEBUFFER_COMPLETE\",36054:\"FRAMEBUFFER_INCOMPLETE_ATTACHMENT\",36055:\"FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT\",36057:\"FRAMEBUFFER_INCOMPLETE_DIMENSIONS\",36061:\"FRAMEBUFFER_UNSUPPORTED\",36064:\"COLOR_ATTACHMENT0\",36096:\"DEPTH_ATTACHMENT\",36128:\"STENCIL_ATTACHMENT\",36160:\"FRAMEBUFFER\",36161:\"RENDERBUFFER\",36162:\"RENDERBUFFER_WIDTH\",36163:\"RENDERBUFFER_HEIGHT\",36164:\"RENDERBUFFER_INTERNAL_FORMAT\",36168:\"STENCIL_INDEX8\",36176:\"RENDERBUFFER_RED_SIZE\",36177:\"RENDERBUFFER_GREEN_SIZE\",36178:\"RENDERBUFFER_BLUE_SIZE\",36179:\"RENDERBUFFER_ALPHA_SIZE\",36180:\"RENDERBUFFER_DEPTH_SIZE\",36181:\"RENDERBUFFER_STENCIL_SIZE\",36194:\"RGB565\",36336:\"LOW_FLOAT\",36337:\"MEDIUM_FLOAT\",36338:\"HIGH_FLOAT\",36339:\"LOW_INT\",36340:\"MEDIUM_INT\",36341:\"HIGH_INT\",36346:\"SHADER_COMPILER\",36347:\"MAX_VERTEX_UNIFORM_VECTORS\",36348:\"MAX_VARYING_VECTORS\",36349:\"MAX_FRAGMENT_UNIFORM_VECTORS\",37440:\"UNPACK_FLIP_Y_WEBGL\",37441:\"UNPACK_PREMULTIPLY_ALPHA_WEBGL\",37442:\"CONTEXT_LOST_WEBGL\",37443:\"UNPACK_COLORSPACE_CONVERSION_WEBGL\",37444:\"BROWSER_DEFAULT_WEBGL\"}},{}],236:[function(t,e,r){var n=t(\"./1.0/numbers\");e.exports=function(t){return n[t]}},{\"./1.0/numbers\":235}],237:[function(t,e,r){\"use strict\";e.exports=function(t){var e=t.gl,r=n(e),o=i(e,[{buffer:r,type:e.FLOAT,size:3,offset:0,stride:40},{buffer:r,type:e.FLOAT,size:4,offset:12,stride:40},{buffer:r,type:e.FLOAT,size:3,offset:28,stride:40}]),l=a(e);l.attributes.position.location=0,l.attributes.color.location=1,l.attributes.offset.location=2;var c=new s(e,r,o,l);return c.update(t),c};var n=t(\"gl-buffer\"),i=t(\"gl-vao\"),a=t(\"./shaders/index\"),o=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function s(t,e,r,n){this.gl=t,this.shader=n,this.buffer=e,this.vao=r,this.pixelRatio=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lineWidth=[1,1,1],this.capSize=[10,10,10],this.lineCount=[0,0,0],this.lineOffset=[0,0,0],this.opacity=1}var l=s.prototype;function c(t,e){for(var r=0;r<3;++r)t[0][r]=Math.min(t[0][r],e[r]),t[1][r]=Math.max(t[1][r],e[r])}l.isOpaque=function(){return this.opacity>=1},l.isTransparent=function(){return this.opacity<1},l.drawTransparent=l.draw=function(t){var e=this.gl,r=this.shader.uniforms;this.shader.bind();var n=r.view=t.view||o,i=r.projection=t.projection||o;r.model=t.model||o,r.clipBounds=this.clipBounds,r.opacity=this.opacity;var a=n[12],s=n[13],l=n[14],c=n[15],u=this.pixelRatio*(i[3]*a+i[7]*s+i[11]*l+i[15]*c)/e.drawingBufferHeight;this.vao.bind();for(var f=0;f<3;++f)e.lineWidth(this.lineWidth[f]),r.capSize=this.capSize[f]*u,this.lineCount[f]&&e.drawArrays(e.LINES,this.lineOffset[f],this.lineCount[f]);this.vao.unbind()};var u=function(){for(var t=new Array(3),e=0;e<3;++e){for(var r=[],n=1;n<=2;++n)for(var i=-1;i<=1;i+=2){var a=[0,0,0];a[(n+e)%3]=i,r.push(a)}t[e]=r}return t}();function f(t,e,r,n){for(var i=u[n],a=0;a<i.length;++a){var o=i[a];t.push(e[0],e[1],e[2],r[0],r[1],r[2],r[3],o[0],o[1],o[2])}return i.length}l.update=function(t){\"lineWidth\"in(t=t||{})&&(this.lineWidth=t.lineWidth,Array.isArray(this.lineWidth)||(this.lineWidth=[this.lineWidth,this.lineWidth,this.lineWidth])),\"capSize\"in t&&(this.capSize=t.capSize,Array.isArray(this.capSize)||(this.capSize=[this.capSize,this.capSize,this.capSize])),\"opacity\"in t&&(this.opacity=t.opacity);var e=t.color||[[0,0,0],[0,0,0],[0,0,0]],r=t.position,n=t.error;if(Array.isArray(e[0])||(e=[e,e,e]),r&&n){var i=[],a=r.length,o=0;this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.lineCount=[0,0,0];for(var s=0;s<3;++s){this.lineOffset[s]=o;t:for(var l=0;l<a;++l){for(var u=r[l],h=0;h<3;++h)if(isNaN(u[h])||!isFinite(u[h]))continue t;var p=n[l],d=e[s];if(Array.isArray(d[0])&&(d=e[l]),3===d.length&&(d=[d[0],d[1],d[2],1]),!isNaN(p[0][s])&&!isNaN(p[1][s])){var g;if(p[0][s]<0)(g=u.slice())[s]+=p[0][s],i.push(u[0],u[1],u[2],d[0],d[1],d[2],d[3],0,0,0,g[0],g[1],g[2],d[0],d[1],d[2],d[3],0,0,0),c(this.bounds,g),o+=2+f(i,g,d,s);if(p[1][s]>0)(g=u.slice())[s]+=p[1][s],i.push(u[0],u[1],u[2],d[0],d[1],d[2],d[3],0,0,0,g[0],g[1],g[2],d[0],d[1],d[2],d[3],0,0,0),c(this.bounds,g),o+=2+f(i,g,d,s)}}this.lineCount[s]=o-this.lineOffset[s]}this.buffer.update(i)}},l.dispose=function(){this.shader.dispose(),this.buffer.dispose(),this.vao.dispose()}},{\"./shaders/index\":238,\"gl-buffer\":230,\"gl-vao\":310}],238:[function(t,e,r){\"use strict\";var n=t(\"glslify\"),i=t(\"gl-shader\"),a=n([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute vec3 position, offset;\\nattribute vec4 color;\\nuniform mat4 model, view, projection;\\nuniform float capSize;\\nvarying vec4 fragColor;\\nvarying vec3 fragPosition;\\n\\nvoid main() {\\n vec4 worldPosition = model * vec4(position, 1.0);\\n worldPosition = (worldPosition / worldPosition.w) + vec4(capSize * offset, 0.0);\\n gl_Position = projection * view * worldPosition;\\n fragColor = color;\\n fragPosition = position;\\n}\"]),o=n([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nbool outOfRange(float a, float b, float p) {\\n return ((p > max(a, b)) || \\n (p < min(a, b)));\\n}\\n\\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y));\\n}\\n\\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y) ||\\n outOfRange(a.z, b.z, p.z));\\n}\\n\\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\\n return outOfRange(a.xyz, b.xyz, p.xyz);\\n}\\n\\nuniform vec3 clipBounds[2];\\nuniform float opacity;\\nvarying vec3 fragPosition;\\nvarying vec4 fragColor;\\n\\nvoid main() {\\n if (outOfRange(clipBounds[0], clipBounds[1], fragPosition)) discard;\\n\\n gl_FragColor = opacity * fragColor;\\n}\"]);e.exports=function(t){return i(t,a,o,null,[{name:\"position\",type:\"vec3\"},{name:\"color\",type:\"vec4\"},{name:\"offset\",type:\"vec3\"}])}},{\"gl-shader\":288,glslify:392}],239:[function(t,e,r){\"use strict\";var n=t(\"gl-texture2d\");e.exports=function(t,e,r,n){i||(i=t.FRAMEBUFFER_UNSUPPORTED,a=t.FRAMEBUFFER_INCOMPLETE_ATTACHMENT,o=t.FRAMEBUFFER_INCOMPLETE_DIMENSIONS,s=t.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT);var c=t.getExtension(\"WEBGL_draw_buffers\");!l&&c&&function(t,e){var r=t.getParameter(e.MAX_COLOR_ATTACHMENTS_WEBGL);l=new Array(r+1);for(var n=0;n<=r;++n){for(var i=new Array(r),a=0;a<n;++a)i[a]=t.COLOR_ATTACHMENT0+a;for(var a=n;a<r;++a)i[a]=t.NONE;l[n]=i}}(t,c);Array.isArray(e)&&(n=r,r=0|e[1],e=0|e[0]);if(\"number\"!=typeof e)throw new Error(\"gl-fbo: Missing shape parameter\");var u=t.getParameter(t.MAX_RENDERBUFFER_SIZE);if(e<0||e>u||r<0||r>u)throw new Error(\"gl-fbo: Parameters are too large for FBO\");var f=1;if(\"color\"in(n=n||{})){if((f=Math.max(0|n.color,0))<0)throw new Error(\"gl-fbo: Must specify a nonnegative number of colors\");if(f>1){if(!c)throw new Error(\"gl-fbo: Multiple draw buffer extension not supported\");if(f>t.getParameter(c.MAX_COLOR_ATTACHMENTS_WEBGL))throw new Error(\"gl-fbo: Context does not support \"+f+\" draw buffers\")}}var h=t.UNSIGNED_BYTE,p=t.getExtension(\"OES_texture_float\");if(n.float&&f>0){if(!p)throw new Error(\"gl-fbo: Context does not support floating point textures\");h=t.FLOAT}else n.preferFloat&&f>0&&p&&(h=t.FLOAT);var g=!0;\"depth\"in n&&(g=!!n.depth);var v=!1;\"stencil\"in n&&(v=!!n.stencil);return new d(t,e,r,h,f,g,v,c)};var i,a,o,s,l=null;function c(t){return[t.getParameter(t.FRAMEBUFFER_BINDING),t.getParameter(t.RENDERBUFFER_BINDING),t.getParameter(t.TEXTURE_BINDING_2D)]}function u(t,e){t.bindFramebuffer(t.FRAMEBUFFER,e[0]),t.bindRenderbuffer(t.RENDERBUFFER,e[1]),t.bindTexture(t.TEXTURE_2D,e[2])}function f(t){switch(t){case i:throw new Error(\"gl-fbo: Framebuffer unsupported\");case a:throw new Error(\"gl-fbo: Framebuffer incomplete attachment\");case o:throw new Error(\"gl-fbo: Framebuffer incomplete dimensions\");case s:throw new Error(\"gl-fbo: Framebuffer incomplete missing attachment\");default:throw new Error(\"gl-fbo: Framebuffer failed for unspecified reason\")}}function h(t,e,r,i,a,o){if(!i)return null;var s=n(t,e,r,a,i);return s.magFilter=t.NEAREST,s.minFilter=t.NEAREST,s.mipSamples=1,s.bind(),t.framebufferTexture2D(t.FRAMEBUFFER,o,t.TEXTURE_2D,s.handle,0),s}function p(t,e,r,n,i){var a=t.createRenderbuffer();return t.bindRenderbuffer(t.RENDERBUFFER,a),t.renderbufferStorage(t.RENDERBUFFER,n,e,r),t.framebufferRenderbuffer(t.FRAMEBUFFER,i,t.RENDERBUFFER,a),a}function d(t,e,r,n,i,a,o,s){this.gl=t,this._shape=[0|e,0|r],this._destroyed=!1,this._ext=s,this.color=new Array(i);for(var d=0;d<i;++d)this.color[d]=null;this._color_rb=null,this.depth=null,this._depth_rb=null,this._colorType=n,this._useDepth=a,this._useStencil=o;var g=this,v=[0|e,0|r];Object.defineProperties(v,{0:{get:function(){return g._shape[0]},set:function(t){return g.width=t}},1:{get:function(){return g._shape[1]},set:function(t){return g.height=t}}}),this._shapeVector=v,function(t){var e=c(t.gl),r=t.gl,n=t.handle=r.createFramebuffer(),i=t._shape[0],a=t._shape[1],o=t.color.length,s=t._ext,d=t._useStencil,g=t._useDepth,v=t._colorType;r.bindFramebuffer(r.FRAMEBUFFER,n);for(var m=0;m<o;++m)t.color[m]=h(r,i,a,v,r.RGBA,r.COLOR_ATTACHMENT0+m);0===o?(t._color_rb=p(r,i,a,r.RGBA4,r.COLOR_ATTACHMENT0),s&&s.drawBuffersWEBGL(l[0])):o>1&&s.drawBuffersWEBGL(l[o]);var y=r.getExtension(\"WEBGL_depth_texture\");y?d?t.depth=h(r,i,a,y.UNSIGNED_INT_24_8_WEBGL,r.DEPTH_STENCIL,r.DEPTH_STENCIL_ATTACHMENT):g&&(t.depth=h(r,i,a,r.UNSIGNED_SHORT,r.DEPTH_COMPONENT,r.DEPTH_ATTACHMENT)):g&&d?t._depth_rb=p(r,i,a,r.DEPTH_STENCIL,r.DEPTH_STENCIL_ATTACHMENT):g?t._depth_rb=p(r,i,a,r.DEPTH_COMPONENT16,r.DEPTH_ATTACHMENT):d&&(t._depth_rb=p(r,i,a,r.STENCIL_INDEX,r.STENCIL_ATTACHMENT));var x=r.checkFramebufferStatus(r.FRAMEBUFFER);if(x!==r.FRAMEBUFFER_COMPLETE){for(t._destroyed=!0,r.bindFramebuffer(r.FRAMEBUFFER,null),r.deleteFramebuffer(t.handle),t.handle=null,t.depth&&(t.depth.dispose(),t.depth=null),t._depth_rb&&(r.deleteRenderbuffer(t._depth_rb),t._depth_rb=null),m=0;m<t.color.length;++m)t.color[m].dispose(),t.color[m]=null;t._color_rb&&(r.deleteRenderbuffer(t._color_rb),t._color_rb=null),u(r,e),f(x)}u(r,e)}(this)}var g=d.prototype;function v(t,e,r){if(t._destroyed)throw new Error(\"gl-fbo: Can't resize destroyed FBO\");if(t._shape[0]!==e||t._shape[1]!==r){var n=t.gl,i=n.getParameter(n.MAX_RENDERBUFFER_SIZE);if(e<0||e>i||r<0||r>i)throw new Error(\"gl-fbo: Can't resize FBO, invalid dimensions\");t._shape[0]=e,t._shape[1]=r;for(var a=c(n),o=0;o<t.color.length;++o)t.color[o].shape=t._shape;t._color_rb&&(n.bindRenderbuffer(n.RENDERBUFFER,t._color_rb),n.renderbufferStorage(n.RENDERBUFFER,n.RGBA4,t._shape[0],t._shape[1])),t.depth&&(t.depth.shape=t._shape),t._depth_rb&&(n.bindRenderbuffer(n.RENDERBUFFER,t._depth_rb),t._useDepth&&t._useStencil?n.renderbufferStorage(n.RENDERBUFFER,n.DEPTH_STENCIL,t._shape[0],t._shape[1]):t._useDepth?n.renderbufferStorage(n.RENDERBUFFER,n.DEPTH_COMPONENT16,t._shape[0],t._shape[1]):t._useStencil&&n.renderbufferStorage(n.RENDERBUFFER,n.STENCIL_INDEX,t._shape[0],t._shape[1])),n.bindFramebuffer(n.FRAMEBUFFER,t.handle);var s=n.checkFramebufferStatus(n.FRAMEBUFFER);s!==n.FRAMEBUFFER_COMPLETE&&(t.dispose(),u(n,a),f(s)),u(n,a)}}Object.defineProperties(g,{shape:{get:function(){return this._destroyed?[0,0]:this._shapeVector},set:function(t){if(Array.isArray(t)||(t=[0|t,0|t]),2!==t.length)throw new Error(\"gl-fbo: Shape vector must be length 2\");var e=0|t[0],r=0|t[1];return v(this,e,r),[e,r]},enumerable:!1},width:{get:function(){return this._destroyed?0:this._shape[0]},set:function(t){return v(this,t|=0,this._shape[1]),t},enumerable:!1},height:{get:function(){return this._destroyed?0:this._shape[1]},set:function(t){return t|=0,v(this,this._shape[0],t),t},enumerable:!1}}),g.bind=function(){if(!this._destroyed){var t=this.gl;t.bindFramebuffer(t.FRAMEBUFFER,this.handle),t.viewport(0,0,this._shape[0],this._shape[1])}},g.dispose=function(){if(!this._destroyed){this._destroyed=!0;var t=this.gl;t.deleteFramebuffer(this.handle),this.handle=null,this.depth&&(this.depth.dispose(),this.depth=null),this._depth_rb&&(t.deleteRenderbuffer(this._depth_rb),this._depth_rb=null);for(var e=0;e<this.color.length;++e)this.color[e].dispose(),this.color[e]=null;this._color_rb&&(t.deleteRenderbuffer(this._color_rb),this._color_rb=null)}}},{\"gl-texture2d\":305}],240:[function(t,e,r){var n=t(\"sprintf-js\").sprintf,i=t(\"gl-constants/lookup\"),a=t(\"glsl-shader-name\"),o=t(\"add-line-numbers\");e.exports=function(t,e,r){\"use strict\";var s=a(e)||\"of unknown name (see npm glsl-shader-name)\",l=\"unknown type\";void 0!==r&&(l=r===i.FRAGMENT_SHADER?\"fragment\":\"vertex\");for(var c=n(\"Error compiling %s shader %s:\\n\",l,s),u=n(\"%s%s\",c,t),f=t.split(\"\\n\"),h={},p=0;p<f.length;p++){var d=f[p];if(\"\"!==d&&\"\\0\"!==d){var g=parseInt(d.split(\":\")[2]);if(isNaN(g))throw new Error(n(\"Could not parse error: %s\",d));h[g]=d}}for(var v=o(e).split(\"\\n\"),p=0;p<v.length;p++)if(h[p+3]||h[p+2]||h[p+1]){var m=v[p];if(c+=m+\"\\n\",h[p+1]){var y=h[p+1];y=y.substr(y.split(\":\",3).join(\":\").length+1).trim(),c+=n(\"^^^ %s\\n\\n\",y)}}return{long:c.trim(),short:u.trim()}}},{\"add-line-numbers\":49,\"gl-constants/lookup\":236,\"glsl-shader-name\":384,\"sprintf-js\":504}],241:[function(t,e,r){\"use strict\";e.exports=function(t,e){var r=t.gl,n=o(r,l.vertex,l.fragment),i=o(r,l.pickVertex,l.pickFragment),a=s(r),u=s(r),f=s(r),h=s(r),p=new c(t,n,i,a,u,f,h);return p.update(e),t.addObject(p),p};var n=t(\"binary-search-bounds\"),i=t(\"iota-array\"),a=t(\"typedarray-pool\"),o=t(\"gl-shader\"),s=t(\"gl-buffer\"),l=t(\"./lib/shaders\");function c(t,e,r,n,i,a,o){this.plot=t,this.shader=e,this.pickShader=r,this.positionBuffer=n,this.weightBuffer=i,this.colorBuffer=a,this.idBuffer=o,this.xData=[],this.yData=[],this.shape=[0,0],this.bounds=[1/0,1/0,-1/0,-1/0],this.pickOffset=0}var u,f=c.prototype,h=[0,0,1,0,0,1,1,0,1,1,0,1];f.draw=(u=[1,0,0,0,1,0,0,0,1],function(){var t=this.plot,e=this.shader,r=this.bounds,n=this.numVertices;if(!(n<=0)){var i=t.gl,a=t.dataBox,o=r[2]-r[0],s=r[3]-r[1],l=a[2]-a[0],c=a[3]-a[1];u[0]=2*o/l,u[4]=2*s/c,u[6]=2*(r[0]-a[0])/l-1,u[7]=2*(r[1]-a[1])/c-1,e.bind();var f=e.uniforms;f.viewTransform=u,f.shape=this.shape;var h=e.attributes;this.positionBuffer.bind(),h.position.pointer(),this.weightBuffer.bind(),h.weight.pointer(i.UNSIGNED_BYTE,!1),this.colorBuffer.bind(),h.color.pointer(i.UNSIGNED_BYTE,!0),i.drawArrays(i.TRIANGLES,0,n)}}),f.drawPick=function(){var t=[1,0,0,0,1,0,0,0,1],e=[0,0,0,0];return function(r){var n=this.plot,i=this.pickShader,a=this.bounds,o=this.numVertices;if(!(o<=0)){var s=n.gl,l=n.dataBox,c=a[2]-a[0],u=a[3]-a[1],f=l[2]-l[0],h=l[3]-l[1];t[0]=2*c/f,t[4]=2*u/h,t[6]=2*(a[0]-l[0])/f-1,t[7]=2*(a[1]-l[1])/h-1;for(var p=0;p<4;++p)e[p]=r>>8*p&255;this.pickOffset=r,i.bind();var d=i.uniforms;d.viewTransform=t,d.pickOffset=e,d.shape=this.shape;var g=i.attributes;return this.positionBuffer.bind(),g.position.pointer(),this.weightBuffer.bind(),g.weight.pointer(s.UNSIGNED_BYTE,!1),this.idBuffer.bind(),g.pickId.pointer(s.UNSIGNED_BYTE,!1),s.drawArrays(s.TRIANGLES,0,o),r+this.shape[0]*this.shape[1]}}}(),f.pick=function(t,e,r){var n=this.pickOffset,i=this.shape[0]*this.shape[1];if(r<n||r>=n+i)return null;var a=r-n,o=this.xData,s=this.yData;return{object:this,pointId:a,dataCoord:[o[a%this.shape[0]],s[a/this.shape[0]|0]]}},f.update=function(t){var e=(t=t||{}).shape||[0,0],r=t.x||i(e[0]),o=t.y||i(e[1]),s=t.z||new Float32Array(e[0]*e[1]);this.xData=r,this.yData=o;var l=t.colorLevels||[0],c=t.colorValues||[0,0,0,1],u=l.length,f=this.bounds,p=f[0]=r[0],d=f[1]=o[0],g=1/((f[2]=r[r.length-1])-p),v=1/((f[3]=o[o.length-1])-d),m=e[0],y=e[1];this.shape=[m,y];var x=(m-1)*(y-1)*(h.length>>>1);this.numVertices=x;for(var b=a.mallocUint8(4*x),_=a.mallocFloat32(2*x),w=a.mallocUint8(2*x),k=a.mallocUint32(x),M=0,A=0;A<y-1;++A)for(var T=v*(o[A]-d),S=v*(o[A+1]-d),E=0;E<m-1;++E)for(var C=g*(r[E]-p),L=g*(r[E+1]-p),z=0;z<h.length;z+=2){var O,I,P,D,R=h[z],B=h[z+1],F=s[(A+B)*m+(E+R)],N=n.le(l,F);if(N<0)O=c[0],I=c[1],P=c[2],D=c[3];else if(N===u-1)O=c[4*u-4],I=c[4*u-3],P=c[4*u-2],D=c[4*u-1];else{var j=(F-l[N])/(l[N+1]-l[N]),V=1-j,U=4*N,q=4*(N+1);O=V*c[U]+j*c[q],I=V*c[U+1]+j*c[q+1],P=V*c[U+2]+j*c[q+2],D=V*c[U+3]+j*c[q+3]}b[4*M]=255*O,b[4*M+1]=255*I,b[4*M+2]=255*P,b[4*M+3]=255*D,_[2*M]=.5*C+.5*L,_[2*M+1]=.5*T+.5*S,w[2*M]=R,w[2*M+1]=B,k[M]=A*m+E,M+=1}this.positionBuffer.update(_),this.weightBuffer.update(w),this.colorBuffer.update(b),this.idBuffer.update(k),a.free(_),a.free(b),a.free(w),a.free(k)},f.dispose=function(){this.shader.dispose(),this.pickShader.dispose(),this.positionBuffer.dispose(),this.weightBuffer.dispose(),this.colorBuffer.dispose(),this.idBuffer.dispose(),this.plot.removeObject(this)}},{\"./lib/shaders\":242,\"binary-search-bounds\":243,\"gl-buffer\":230,\"gl-shader\":288,\"iota-array\":399,\"typedarray-pool\":522}],242:[function(t,e,r){\"use strict\";var n=t(\"glslify\");e.exports={fragment:n([\"precision lowp float;\\n#define GLSLIFY 1\\nvarying vec4 fragColor;\\nvoid main() {\\n gl_FragColor = vec4(fragColor.rgb * fragColor.a, fragColor.a);\\n}\\n\"]),vertex:n([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute vec2 position;\\nattribute vec4 color;\\nattribute vec2 weight;\\n\\nuniform vec2 shape;\\nuniform mat3 viewTransform;\\n\\nvarying vec4 fragColor;\\n\\nvoid main() {\\n vec3 vPosition = viewTransform * vec3( position + (weight-.5)/(shape-1.) , 1.0);\\n fragColor = color;\\n gl_Position = vec4(vPosition.xy, 0, vPosition.z);\\n}\\n\"]),pickFragment:n([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nvarying vec4 fragId;\\nvarying vec2 vWeight;\\n\\nuniform vec2 shape;\\nuniform vec4 pickOffset;\\n\\nvoid main() {\\n vec2 d = step(.5, vWeight);\\n vec4 id = fragId + pickOffset;\\n id.x += d.x + d.y*shape.x;\\n\\n id.y += floor(id.x / 256.0);\\n id.x -= floor(id.x / 256.0) * 256.0;\\n\\n id.z += floor(id.y / 256.0);\\n id.y -= floor(id.y / 256.0) * 256.0;\\n\\n id.w += floor(id.z / 256.0);\\n id.z -= floor(id.z / 256.0) * 256.0;\\n\\n gl_FragColor = id/255.;\\n}\\n\"]),pickVertex:n([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute vec2 position;\\nattribute vec4 pickId;\\nattribute vec2 weight;\\n\\nuniform vec2 shape;\\nuniform mat3 viewTransform;\\n\\nvarying vec4 fragId;\\nvarying vec2 vWeight;\\n\\nvoid main() {\\n vWeight = weight;\\n\\n fragId = pickId;\\n\\n vec3 vPosition = viewTransform * vec3( position + (weight-.5)/(shape-1.) , 1.0);\\n gl_Position = vec4(vPosition.xy, 0, vPosition.z);\\n}\\n\"])}},{glslify:392}],243:[function(t,e,r){arguments[4][99][0].apply(r,arguments)},{dup:99}],244:[function(t,e,r){var n=t(\"glslify\"),i=t(\"gl-shader\"),a=n([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute vec3 position, nextPosition;\\nattribute float arcLength, lineWidth;\\nattribute vec4 color;\\n\\nuniform vec2 screenShape;\\nuniform float pixelRatio;\\nuniform mat4 model, view, projection;\\n\\nvarying vec4 fragColor;\\nvarying vec3 worldPosition;\\nvarying float pixelArcLength;\\n\\nvec4 project(vec3 p) {\\n return projection * view * model * vec4(p, 1.0);\\n}\\n\\nvoid main() {\\n vec4 startPoint = project(position);\\n vec4 endPoint = project(nextPosition);\\n\\n vec2 A = startPoint.xy / startPoint.w;\\n vec2 B = endPoint.xy / endPoint.w;\\n\\n float clipAngle = atan(\\n (B.y - A.y) * screenShape.y,\\n (B.x - A.x) * screenShape.x\\n );\\n\\n vec2 offset = 0.5 * pixelRatio * lineWidth * vec2(\\n sin(clipAngle),\\n -cos(clipAngle)\\n ) / screenShape;\\n\\n gl_Position = vec4(startPoint.xy + startPoint.w * offset, startPoint.zw);\\n\\n worldPosition = position;\\n pixelArcLength = arcLength;\\n fragColor = color;\\n}\\n\"]),o=n([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nbool outOfRange(float a, float b, float p) {\\n return ((p > max(a, b)) || \\n (p < min(a, b)));\\n}\\n\\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y));\\n}\\n\\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y) ||\\n outOfRange(a.z, b.z, p.z));\\n}\\n\\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\\n return outOfRange(a.xyz, b.xyz, p.xyz);\\n}\\n\\nuniform vec3 clipBounds[2];\\nuniform sampler2D dashTexture;\\nuniform float dashScale;\\nuniform float opacity;\\n\\nvarying vec3 worldPosition;\\nvarying float pixelArcLength;\\nvarying vec4 fragColor;\\n\\nvoid main() {\\n if (outOfRange(clipBounds[0], clipBounds[1], worldPosition)) discard;\\n\\n float dashWeight = texture2D(dashTexture, vec2(dashScale * pixelArcLength, 0)).r;\\n if(dashWeight < 0.5) {\\n discard;\\n }\\n gl_FragColor = fragColor * opacity;\\n}\\n\"]),s=n([\"precision mediump float;\\n#define GLSLIFY 1\\n\\n#define FLOAT_MAX 1.70141184e38\\n#define FLOAT_MIN 1.17549435e-38\\n\\nlowp vec4 encode_float_1540259130(highp float v) {\\n highp float av = abs(v);\\n\\n //Handle special cases\\n if(av < FLOAT_MIN) {\\n return vec4(0.0, 0.0, 0.0, 0.0);\\n } else if(v > FLOAT_MAX) {\\n return vec4(127.0, 128.0, 0.0, 0.0) / 255.0;\\n } else if(v < -FLOAT_MAX) {\\n return vec4(255.0, 128.0, 0.0, 0.0) / 255.0;\\n }\\n\\n highp vec4 c = vec4(0,0,0,0);\\n\\n //Compute exponent and mantissa\\n highp float e = floor(log2(av));\\n highp float m = av * pow(2.0, -e) - 1.0;\\n \\n //Unpack mantissa\\n c[1] = floor(128.0 * m);\\n m -= c[1] / 128.0;\\n c[2] = floor(32768.0 * m);\\n m -= c[2] / 32768.0;\\n c[3] = floor(8388608.0 * m);\\n \\n //Unpack exponent\\n highp float ebias = e + 127.0;\\n c[0] = floor(ebias / 2.0);\\n ebias -= c[0] * 2.0;\\n c[1] += floor(ebias) * 128.0; \\n\\n //Unpack sign bit\\n c[0] += 128.0 * step(0.0, -v);\\n\\n //Scale back to range\\n return c / 255.0;\\n}\\n\\nbool outOfRange(float a, float b, float p) {\\n return ((p > max(a, b)) || \\n (p < min(a, b)));\\n}\\n\\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y));\\n}\\n\\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y) ||\\n outOfRange(a.z, b.z, p.z));\\n}\\n\\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\\n return outOfRange(a.xyz, b.xyz, p.xyz);\\n}\\n\\nuniform float pickId;\\nuniform vec3 clipBounds[2];\\n\\nvarying vec3 worldPosition;\\nvarying float pixelArcLength;\\nvarying vec4 fragColor;\\n\\nvoid main() {\\n if (outOfRange(clipBounds[0], clipBounds[1], worldPosition)) discard;\\n\\n gl_FragColor = vec4(pickId/255.0, encode_float_1540259130(pixelArcLength).xyz);\\n}\"]),l=[{name:\"position\",type:\"vec3\"},{name:\"nextPosition\",type:\"vec3\"},{name:\"arcLength\",type:\"float\"},{name:\"lineWidth\",type:\"float\"},{name:\"color\",type:\"vec4\"}];r.createShader=function(t){return i(t,a,o,null,l)},r.createPickShader=function(t){return i(t,a,s,null,l)}},{\"gl-shader\":288,glslify:392}],245:[function(t,e,r){\"use strict\";e.exports=function(t){var e=t.gl||t.scene&&t.scene.gl,r=u(e);r.attributes.position.location=0,r.attributes.nextPosition.location=1,r.attributes.arcLength.location=2,r.attributes.lineWidth.location=3,r.attributes.color.location=4;var o=f(e);o.attributes.position.location=0,o.attributes.nextPosition.location=1,o.attributes.arcLength.location=2,o.attributes.lineWidth.location=3,o.attributes.color.location=4;for(var s=n(e),c=i(e,[{buffer:s,size:3,offset:0,stride:48},{buffer:s,size:3,offset:12,stride:48},{buffer:s,size:1,offset:24,stride:48},{buffer:s,size:1,offset:28,stride:48},{buffer:s,size:4,offset:32,stride:48}]),h=l(new Array(1024),[256,1,4]),p=0;p<1024;++p)h.data[p]=255;var d=a(e,h);d.wrap=e.REPEAT;var g=new v(e,r,o,s,c,d);return g.update(t),g};var n=t(\"gl-buffer\"),i=t(\"gl-vao\"),a=t(\"gl-texture2d\"),o=t(\"glsl-read-float\"),s=t(\"binary-search-bounds\"),l=t(\"ndarray\"),c=t(\"./lib/shaders\"),u=c.createShader,f=c.createPickShader,h=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function p(t,e){for(var r=0,n=0;n<3;++n){var i=t[n]-e[n];r+=i*i}return Math.sqrt(r)}function d(t){for(var e=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],r=0;r<3;++r)e[0][r]=Math.max(t[0][r],e[0][r]),e[1][r]=Math.min(t[1][r],e[1][r]);return e}function g(t,e,r,n){this.arcLength=t,this.position=e,this.index=r,this.dataCoordinate=n}function v(t,e,r,n,i,a){this.gl=t,this.shader=e,this.pickShader=r,this.buffer=n,this.vao=i,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.points=[],this.arcLength=[],this.vertexCount=0,this.bounds=[[0,0,0],[0,0,0]],this.pickId=0,this.lineWidth=1,this.texture=a,this.dashScale=1,this.opacity=1,this.dirty=!0,this.pixelRatio=1}var m=v.prototype;m.isTransparent=function(){return this.opacity<1},m.isOpaque=function(){return this.opacity>=1},m.pickSlots=1,m.setPickBase=function(t){this.pickId=t},m.drawTransparent=m.draw=function(t){if(this.vertexCount){var e=this.gl,r=this.shader,n=this.vao;r.bind(),r.uniforms={model:t.model||h,view:t.view||h,projection:t.projection||h,clipBounds:d(this.clipBounds),dashTexture:this.texture.bind(),dashScale:this.dashScale/this.arcLength[this.arcLength.length-1],opacity:this.opacity,screenShape:[e.drawingBufferWidth,e.drawingBufferHeight],pixelRatio:this.pixelRatio},n.bind(),n.draw(e.TRIANGLE_STRIP,this.vertexCount),n.unbind()}},m.drawPick=function(t){if(this.vertexCount){var e=this.gl,r=this.pickShader,n=this.vao;r.bind(),r.uniforms={model:t.model||h,view:t.view||h,projection:t.projection||h,pickId:this.pickId,clipBounds:d(this.clipBounds),screenShape:[e.drawingBufferWidth,e.drawingBufferHeight],pixelRatio:this.pixelRatio},n.bind(),n.draw(e.TRIANGLE_STRIP,this.vertexCount),n.unbind()}},m.update=function(t){var e,r;this.dirty=!0;var n=!!t.connectGaps;\"dashScale\"in t&&(this.dashScale=t.dashScale),\"opacity\"in t&&(this.opacity=+t.opacity);var i=[],a=[],o=[],c=0,u=0,f=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],h=t.position||t.positions;if(h){var d=t.color||t.colors||[0,0,0,1],g=t.lineWidth||1,v=!1;t:for(e=1;e<h.length;++e){var m,y,x,b=h[e-1],_=h[e];for(a.push(c),o.push(b.slice()),r=0;r<3;++r){if(isNaN(b[r])||isNaN(_[r])||!isFinite(b[r])||!isFinite(_[r])){if(!n&&i.length>0){for(var w=0;w<24;++w)i.push(i[i.length-12]);u+=2,v=!0}continue t}f[0][r]=Math.min(f[0][r],b[r],_[r]),f[1][r]=Math.max(f[1][r],b[r],_[r])}Array.isArray(d[0])?(m=d.length>e-1?d[e-1]:d.length>0?d[d.length-1]:[0,0,0,1],y=d.length>e?d[e]:d.length>0?d[d.length-1]:[0,0,0,1]):m=y=d,3===m.length&&(m=[m[0],m[1],m[2],1]),3===y.length&&(y=[y[0],y[1],y[2],1]),x=Array.isArray(g)?g.length>e-1?g[e-1]:g.length>0?g[g.length-1]:[0,0,0,1]:g;var k=c;if(c+=p(b,_),v){for(r=0;r<2;++r)i.push(b[0],b[1],b[2],_[0],_[1],_[2],k,x,m[0],m[1],m[2],m[3]);u+=2,v=!1}i.push(b[0],b[1],b[2],_[0],_[1],_[2],k,x,m[0],m[1],m[2],m[3],b[0],b[1],b[2],_[0],_[1],_[2],k,-x,m[0],m[1],m[2],m[3],_[0],_[1],_[2],b[0],b[1],b[2],c,-x,y[0],y[1],y[2],y[3],_[0],_[1],_[2],b[0],b[1],b[2],c,x,y[0],y[1],y[2],y[3]),u+=4}}if(this.buffer.update(i),a.push(c),o.push(h[h.length-1].slice()),this.bounds=f,this.vertexCount=u,this.points=o,this.arcLength=a,\"dashes\"in t){var M=t.dashes.slice();for(M.unshift(0),e=1;e<M.length;++e)M[e]=M[e-1]+M[e];var A=l(new Array(1024),[256,1,4]);for(e=0;e<256;++e){for(r=0;r<4;++r)A.set(e,0,r,0);1&s.le(M,M[M.length-1]*e/255)?A.set(e,0,0,0):A.set(e,0,0,255)}this.texture.setPixels(A)}},m.dispose=function(){this.shader.dispose(),this.vao.dispose(),this.buffer.dispose()},m.pick=function(t){if(!t)return null;if(t.id!==this.pickId)return null;var e=o(t.value[0],t.value[1],t.value[2],0),r=s.le(this.arcLength,e);if(r<0)return null;if(r===this.arcLength.length-1)return new g(this.arcLength[this.arcLength.length-1],this.points[this.points.length-1].slice(),r);for(var n=this.points[r],i=this.points[Math.min(r+1,this.points.length-1)],a=(e-this.arcLength[r])/(this.arcLength[r+1]-this.arcLength[r]),l=1-a,c=[0,0,0],u=0;u<3;++u)c[u]=l*n[u]+a*i[u];var f=Math.min(a<.5?r:r+1,this.points.length-1);return new g(e,c,f,this.points[f])}},{\"./lib/shaders\":244,\"binary-search-bounds\":79,\"gl-buffer\":230,\"gl-texture2d\":305,\"gl-vao\":310,\"glsl-read-float\":383,ndarray:433}],246:[function(t,e,r){e.exports=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=r*a-i*n;return o?(o=1/o,t[0]=a*o,t[1]=-n*o,t[2]=-i*o,t[3]=r*o,t):null}},{}],247:[function(t,e,r){e.exports=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=e[4],s=e[5],l=e[6],c=e[7],u=e[8],f=u*o-s*c,h=-u*a+s*l,p=c*a-o*l,d=r*f+n*h+i*p;return d?(d=1/d,t[0]=f*d,t[1]=(-u*n+i*c)*d,t[2]=(s*n-i*o)*d,t[3]=h*d,t[4]=(u*r-i*l)*d,t[5]=(-s*r+i*a)*d,t[6]=p*d,t[7]=(-c*r+n*l)*d,t[8]=(o*r-n*a)*d,t):null}},{}],248:[function(t,e,r){e.exports=function(t){var e=new Float32Array(16);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}},{}],249:[function(t,e,r){e.exports=function(){var t=new Float32Array(16);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},{}],250:[function(t,e,r){e.exports=function(t){var e=t[0],r=t[1],n=t[2],i=t[3],a=t[4],o=t[5],s=t[6],l=t[7],c=t[8],u=t[9],f=t[10],h=t[11],p=t[12],d=t[13],g=t[14],v=t[15];return(e*o-r*a)*(f*v-h*g)-(e*s-n*a)*(u*v-h*d)+(e*l-i*a)*(u*g-f*d)+(r*s-n*o)*(c*v-h*p)-(r*l-i*o)*(c*g-f*p)+(n*l-i*s)*(c*d-u*p)}},{}],251:[function(t,e,r){e.exports=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=r+r,s=n+n,l=i+i,c=r*o,u=n*o,f=n*s,h=i*o,p=i*s,d=i*l,g=a*o,v=a*s,m=a*l;return t[0]=1-f-d,t[1]=u+m,t[2]=h-v,t[3]=0,t[4]=u-m,t[5]=1-c-d,t[6]=p+g,t[7]=0,t[8]=h+v,t[9]=p-g,t[10]=1-c-f,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},{}],252:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=n+n,l=i+i,c=a+a,u=n*s,f=n*l,h=n*c,p=i*l,d=i*c,g=a*c,v=o*s,m=o*l,y=o*c;return t[0]=1-(p+g),t[1]=f+y,t[2]=h-m,t[3]=0,t[4]=f-y,t[5]=1-(u+g),t[6]=d+v,t[7]=0,t[8]=h+m,t[9]=d-v,t[10]=1-(u+p),t[11]=0,t[12]=r[0],t[13]=r[1],t[14]=r[2],t[15]=1,t}},{}],253:[function(t,e,r){e.exports=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},{}],254:[function(t,e,r){e.exports=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=e[4],s=e[5],l=e[6],c=e[7],u=e[8],f=e[9],h=e[10],p=e[11],d=e[12],g=e[13],v=e[14],m=e[15],y=r*s-n*o,x=r*l-i*o,b=r*c-a*o,_=n*l-i*s,w=n*c-a*s,k=i*c-a*l,M=u*g-f*d,A=u*v-h*d,T=u*m-p*d,S=f*v-h*g,E=f*m-p*g,C=h*m-p*v,L=y*C-x*E+b*S+_*T-w*A+k*M;if(!L)return null;return L=1/L,t[0]=(s*C-l*E+c*S)*L,t[1]=(i*E-n*C-a*S)*L,t[2]=(g*k-v*w+m*_)*L,t[3]=(h*w-f*k-p*_)*L,t[4]=(l*T-o*C-c*A)*L,t[5]=(r*C-i*T+a*A)*L,t[6]=(v*b-d*k-m*x)*L,t[7]=(u*k-h*b+p*x)*L,t[8]=(o*E-s*T+c*M)*L,t[9]=(n*T-r*E-a*M)*L,t[10]=(d*w-g*b+m*y)*L,t[11]=(f*b-u*w-p*y)*L,t[12]=(s*A-o*S-l*M)*L,t[13]=(r*S-n*A+i*M)*L,t[14]=(g*x-d*_-v*y)*L,t[15]=(u*_-f*x+h*y)*L,t}},{}],255:[function(t,e,r){var n=t(\"./identity\");e.exports=function(t,e,r,i){var a,o,s,l,c,u,f,h,p,d,g=e[0],v=e[1],m=e[2],y=i[0],x=i[1],b=i[2],_=r[0],w=r[1],k=r[2];if(Math.abs(g-_)<1e-6&&Math.abs(v-w)<1e-6&&Math.abs(m-k)<1e-6)return n(t);f=g-_,h=v-w,p=m-k,d=1/Math.sqrt(f*f+h*h+p*p),a=x*(p*=d)-b*(h*=d),o=b*(f*=d)-y*p,s=y*h-x*f,(d=Math.sqrt(a*a+o*o+s*s))?(a*=d=1/d,o*=d,s*=d):(a=0,o=0,s=0);l=h*s-p*o,c=p*a-f*s,u=f*o-h*a,(d=Math.sqrt(l*l+c*c+u*u))?(l*=d=1/d,c*=d,u*=d):(l=0,c=0,u=0);return t[0]=a,t[1]=l,t[2]=f,t[3]=0,t[4]=o,t[5]=c,t[6]=h,t[7]=0,t[8]=s,t[9]=u,t[10]=p,t[11]=0,t[12]=-(a*g+o*v+s*m),t[13]=-(l*g+c*v+u*m),t[14]=-(f*g+h*v+p*m),t[15]=1,t}},{\"./identity\":253}],256:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],c=e[6],u=e[7],f=e[8],h=e[9],p=e[10],d=e[11],g=e[12],v=e[13],m=e[14],y=e[15],x=r[0],b=r[1],_=r[2],w=r[3];return t[0]=x*n+b*s+_*f+w*g,t[1]=x*i+b*l+_*h+w*v,t[2]=x*a+b*c+_*p+w*m,t[3]=x*o+b*u+_*d+w*y,x=r[4],b=r[5],_=r[6],w=r[7],t[4]=x*n+b*s+_*f+w*g,t[5]=x*i+b*l+_*h+w*v,t[6]=x*a+b*c+_*p+w*m,t[7]=x*o+b*u+_*d+w*y,x=r[8],b=r[9],_=r[10],w=r[11],t[8]=x*n+b*s+_*f+w*g,t[9]=x*i+b*l+_*h+w*v,t[10]=x*a+b*c+_*p+w*m,t[11]=x*o+b*u+_*d+w*y,x=r[12],b=r[13],_=r[14],w=r[15],t[12]=x*n+b*s+_*f+w*g,t[13]=x*i+b*l+_*h+w*v,t[14]=x*a+b*c+_*p+w*m,t[15]=x*o+b*u+_*d+w*y,t}},{}],257:[function(t,e,r){e.exports=function(t,e,r,n,i){var a=1/Math.tan(e/2),o=1/(n-i);return t[0]=a/r,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=(i+n)*o,t[11]=-1,t[12]=0,t[13]=0,t[14]=2*i*n*o,t[15]=0,t}},{}],258:[function(t,e,r){e.exports=function(t,e,r,n){var i,a,o,s,l,c,u,f,h,p,d,g,v,m,y,x,b,_,w,k,M,A,T,S,E=n[0],C=n[1],L=n[2],z=Math.sqrt(E*E+C*C+L*L);if(Math.abs(z)<1e-6)return null;E*=z=1/z,C*=z,L*=z,i=Math.sin(r),a=Math.cos(r),o=1-a,s=e[0],l=e[1],c=e[2],u=e[3],f=e[4],h=e[5],p=e[6],d=e[7],g=e[8],v=e[9],m=e[10],y=e[11],x=E*E*o+a,b=C*E*o+L*i,_=L*E*o-C*i,w=E*C*o-L*i,k=C*C*o+a,M=L*C*o+E*i,A=E*L*o+C*i,T=C*L*o-E*i,S=L*L*o+a,t[0]=s*x+f*b+g*_,t[1]=l*x+h*b+v*_,t[2]=c*x+p*b+m*_,t[3]=u*x+d*b+y*_,t[4]=s*w+f*k+g*M,t[5]=l*w+h*k+v*M,t[6]=c*w+p*k+m*M,t[7]=u*w+d*k+y*M,t[8]=s*A+f*T+g*S,t[9]=l*A+h*T+v*S,t[10]=c*A+p*T+m*S,t[11]=u*A+d*T+y*S,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]);return t}},{}],259:[function(t,e,r){e.exports=function(t,e,r){var n=Math.sin(r),i=Math.cos(r),a=e[4],o=e[5],s=e[6],l=e[7],c=e[8],u=e[9],f=e[10],h=e[11];e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]);return t[4]=a*i+c*n,t[5]=o*i+u*n,t[6]=s*i+f*n,t[7]=l*i+h*n,t[8]=c*i-a*n,t[9]=u*i-o*n,t[10]=f*i-s*n,t[11]=h*i-l*n,t}},{}],260:[function(t,e,r){e.exports=function(t,e,r){var n=Math.sin(r),i=Math.cos(r),a=e[0],o=e[1],s=e[2],l=e[3],c=e[8],u=e[9],f=e[10],h=e[11];e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]);return t[0]=a*i-c*n,t[1]=o*i-u*n,t[2]=s*i-f*n,t[3]=l*i-h*n,t[8]=a*n+c*i,t[9]=o*n+u*i,t[10]=s*n+f*i,t[11]=l*n+h*i,t}},{}],261:[function(t,e,r){e.exports=function(t,e,r){var n=Math.sin(r),i=Math.cos(r),a=e[0],o=e[1],s=e[2],l=e[3],c=e[4],u=e[5],f=e[6],h=e[7];e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]);return t[0]=a*i+c*n,t[1]=o*i+u*n,t[2]=s*i+f*n,t[3]=l*i+h*n,t[4]=c*i-a*n,t[5]=u*i-o*n,t[6]=f*i-s*n,t[7]=h*i-l*n,t}},{}],262:[function(t,e,r){e.exports=function(t,e,r){var n=r[0],i=r[1],a=r[2];return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*i,t[5]=e[5]*i,t[6]=e[6]*i,t[7]=e[7]*i,t[8]=e[8]*a,t[9]=e[9]*a,t[10]=e[10]*a,t[11]=e[11]*a,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}},{}],263:[function(t,e,r){e.exports=function(t,e,r){var n,i,a,o,s,l,c,u,f,h,p,d,g=r[0],v=r[1],m=r[2];e===t?(t[12]=e[0]*g+e[4]*v+e[8]*m+e[12],t[13]=e[1]*g+e[5]*v+e[9]*m+e[13],t[14]=e[2]*g+e[6]*v+e[10]*m+e[14],t[15]=e[3]*g+e[7]*v+e[11]*m+e[15]):(n=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],c=e[6],u=e[7],f=e[8],h=e[9],p=e[10],d=e[11],t[0]=n,t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t[6]=c,t[7]=u,t[8]=f,t[9]=h,t[10]=p,t[11]=d,t[12]=n*g+s*v+f*m+e[12],t[13]=i*g+l*v+h*m+e[13],t[14]=a*g+c*v+p*m+e[14],t[15]=o*g+u*v+d*m+e[15]);return t}},{}],264:[function(t,e,r){e.exports=function(t,e){if(t===e){var r=e[1],n=e[2],i=e[3],a=e[6],o=e[7],s=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=r,t[6]=e[9],t[7]=e[13],t[8]=n,t[9]=a,t[11]=e[14],t[12]=i,t[13]=o,t[14]=s}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}},{}],265:[function(t,e,r){\"use strict\";e.exports=function(t,e){switch(e.length){case 0:break;case 1:t[0]=1/e[0];break;case 4:n(t,e);break;case 9:i(t,e);break;case 16:a(t,e);break;default:throw new Error(\"currently supports matrices up to 4x4\")}return t};var n=t(\"gl-mat2/invert\"),i=t(\"gl-mat3/invert\"),a=t(\"gl-mat4/invert\")},{\"gl-mat2/invert\":246,\"gl-mat3/invert\":247,\"gl-mat4/invert\":254}],266:[function(t,e,r){arguments[4][232][0].apply(r,arguments)},{barycentric:61,dup:232,\"polytope-closest-point/lib/closest_point_2d.js\":464}],267:[function(t,e,r){var n=t(\"glslify\"),i=n([\"precision highp float;\\n#define GLSLIFY 1\\n\\nattribute vec3 position, normal;\\nattribute vec4 color;\\nattribute vec2 uv;\\n\\nuniform mat4 model\\n , view\\n , projection;\\nuniform vec3 eyePosition\\n , lightPosition;\\n\\nvarying vec3 f_normal\\n , f_lightDirection\\n , f_eyeDirection\\n , f_data;\\nvarying vec4 f_color;\\nvarying vec2 f_uv;\\n\\nvoid main() {\\n vec4 m_position = model * vec4(position, 1.0);\\n vec4 t_position = view * m_position;\\n gl_Position = projection * t_position;\\n f_color = color;\\n f_normal = normal;\\n f_data = position;\\n f_eyeDirection = eyePosition - position;\\n f_lightDirection = lightPosition - position;\\n f_uv = uv;\\n}\\n\"]),a=n([\"#extension GL_OES_standard_derivatives : enable\\n\\nprecision highp float;\\n#define GLSLIFY 1\\n\\nfloat beckmannDistribution(float x, float roughness) {\\n float NdotH = max(x, 0.0001);\\n float cos2Alpha = NdotH * NdotH;\\n float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\\n float roughness2 = roughness * roughness;\\n float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\\n return exp(tan2Alpha / roughness2) / denom;\\n}\\n\\nfloat cookTorranceSpecular(\\n vec3 lightDirection,\\n vec3 viewDirection,\\n vec3 surfaceNormal,\\n float roughness,\\n float fresnel) {\\n\\n float VdotN = max(dot(viewDirection, surfaceNormal), 0.0);\\n float LdotN = max(dot(lightDirection, surfaceNormal), 0.0);\\n\\n //Half angle vector\\n vec3 H = normalize(lightDirection + viewDirection);\\n\\n //Geometric term\\n float NdotH = max(dot(surfaceNormal, H), 0.0);\\n float VdotH = max(dot(viewDirection, H), 0.000001);\\n float LdotH = max(dot(lightDirection, H), 0.000001);\\n float G1 = (2.0 * NdotH * VdotN) / VdotH;\\n float G2 = (2.0 * NdotH * LdotN) / LdotH;\\n float G = min(1.0, min(G1, G2));\\n \\n //Distribution term\\n float D = beckmannDistribution(NdotH, roughness);\\n\\n //Fresnel term\\n float F = pow(1.0 - VdotN, fresnel);\\n\\n //Multiply terms and done\\n return G * F * D / max(3.14159265 * VdotN, 0.000001);\\n}\\n\\nvec3 normals(vec3 pos) {\\n vec3 fdx = dFdx(pos);\\n vec3 fdy = dFdy(pos);\\n return normalize(cross(fdx, fdy));\\n}\\n\\nbool outOfRange(float a, float b, float p) {\\n return ((p > max(a, b)) || \\n (p < min(a, b)));\\n}\\n\\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y));\\n}\\n\\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y) ||\\n outOfRange(a.z, b.z, p.z));\\n}\\n\\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\\n return outOfRange(a.xyz, b.xyz, p.xyz);\\n}\\n\\nuniform vec3 clipBounds[2];\\nuniform float roughness\\n , fresnel\\n , kambient\\n , kdiffuse\\n , kspecular\\n , opacity;\\nuniform sampler2D texture;\\n\\nvarying vec3 f_normal\\n , f_lightDirection\\n , f_eyeDirection\\n , f_data;\\nvarying vec4 f_color;\\nvarying vec2 f_uv;\\n\\nvoid main() {\\n if (outOfRange(clipBounds[0], clipBounds[1], f_data)) discard;\\n\\n vec3 N = normalize(f_normal);\\n vec3 L = normalize(f_lightDirection);\\n vec3 V = normalize(f_eyeDirection);\\n\\n vec3 normal = normals(f_data);\\n\\n if (dot(N, normal) < 0.0) {\\n N = -N;\\n }\\n\\n float specular = cookTorranceSpecular(L, V, N, roughness, fresnel);\\n float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\\n\\n vec4 surfaceColor = f_color * texture2D(texture, f_uv);\\n vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0);\\n\\n gl_FragColor = litColor * opacity;\\n}\\n\"]),o=n([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute vec3 position;\\nattribute vec4 color;\\nattribute vec2 uv;\\n\\nuniform mat4 model, view, projection;\\n\\nvarying vec4 f_color;\\nvarying vec3 f_data;\\nvarying vec2 f_uv;\\n\\nvoid main() {\\n gl_Position = projection * view * model * vec4(position, 1.0);\\n f_color = color;\\n f_data = position;\\n f_uv = uv;\\n}\"]),s=n([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nbool outOfRange(float a, float b, float p) {\\n return ((p > max(a, b)) || \\n (p < min(a, b)));\\n}\\n\\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y));\\n}\\n\\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y) ||\\n outOfRange(a.z, b.z, p.z));\\n}\\n\\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\\n return outOfRange(a.xyz, b.xyz, p.xyz);\\n}\\n\\nuniform vec3 clipBounds[2];\\nuniform sampler2D texture;\\nuniform float opacity;\\n\\nvarying vec4 f_color;\\nvarying vec3 f_data;\\nvarying vec2 f_uv;\\n\\nvoid main() {\\n if (outOfRange(clipBounds[0], clipBounds[1], f_data)) discard;\\n\\n gl_FragColor = f_color * texture2D(texture, f_uv) * opacity;\\n}\"]),l=n([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nbool outOfRange(float a, float b, float p) {\\n return ((p > max(a, b)) || \\n (p < min(a, b)));\\n}\\n\\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y));\\n}\\n\\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y) ||\\n outOfRange(a.z, b.z, p.z));\\n}\\n\\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\\n return outOfRange(a.xyz, b.xyz, p.xyz);\\n}\\n\\nattribute vec3 position;\\nattribute vec4 color;\\nattribute vec2 uv;\\nattribute float pointSize;\\n\\nuniform mat4 model, view, projection;\\nuniform vec3 clipBounds[2];\\n\\nvarying vec4 f_color;\\nvarying vec2 f_uv;\\n\\nvoid main() {\\n if (outOfRange(clipBounds[0], clipBounds[1], position)) {\\n\\n gl_Position = vec4(0,0,0,0);\\n } else {\\n gl_Position = projection * view * model * vec4(position, 1.0);\\n }\\n gl_PointSize = pointSize;\\n f_color = color;\\n f_uv = uv;\\n}\"]),c=n([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nuniform sampler2D texture;\\nuniform float opacity;\\n\\nvarying vec4 f_color;\\nvarying vec2 f_uv;\\n\\nvoid main() {\\n vec2 pointR = gl_PointCoord.xy - vec2(0.5,0.5);\\n if(dot(pointR, pointR) > 0.25) {\\n discard;\\n }\\n gl_FragColor = f_color * texture2D(texture, f_uv) * opacity;\\n}\"]),u=n([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute vec3 position;\\nattribute vec4 id;\\n\\nuniform mat4 model, view, projection;\\n\\nvarying vec3 f_position;\\nvarying vec4 f_id;\\n\\nvoid main() {\\n gl_Position = projection * view * model * vec4(position, 1.0);\\n f_id = id;\\n f_position = position;\\n}\"]),f=n([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nbool outOfRange(float a, float b, float p) {\\n return ((p > max(a, b)) || \\n (p < min(a, b)));\\n}\\n\\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y));\\n}\\n\\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y) ||\\n outOfRange(a.z, b.z, p.z));\\n}\\n\\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\\n return outOfRange(a.xyz, b.xyz, p.xyz);\\n}\\n\\nuniform vec3 clipBounds[2];\\nuniform float pickId;\\n\\nvarying vec3 f_position;\\nvarying vec4 f_id;\\n\\nvoid main() {\\n if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\\n\\n gl_FragColor = vec4(pickId, f_id.xyz);\\n}\"]),h=n([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nbool outOfRange(float a, float b, float p) {\\n return ((p > max(a, b)) || \\n (p < min(a, b)));\\n}\\n\\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y));\\n}\\n\\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y) ||\\n outOfRange(a.z, b.z, p.z));\\n}\\n\\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\\n return outOfRange(a.xyz, b.xyz, p.xyz);\\n}\\n\\nattribute vec3 position;\\nattribute float pointSize;\\nattribute vec4 id;\\n\\nuniform mat4 model, view, projection;\\nuniform vec3 clipBounds[2];\\n\\nvarying vec3 f_position;\\nvarying vec4 f_id;\\n\\nvoid main() {\\n if (outOfRange(clipBounds[0], clipBounds[1], position)) {\\n\\n gl_Position = vec4(0,0,0,0);\\n } else {\\n gl_Position = projection * view * model * vec4(position, 1.0);\\n gl_PointSize = pointSize;\\n }\\n f_id = id;\\n f_position = position;\\n}\"]),p=n([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute vec3 position;\\n\\nuniform mat4 model, view, projection;\\n\\nvoid main() {\\n gl_Position = projection * view * model * vec4(position, 1.0);\\n}\"]),d=n([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nuniform vec3 contourColor;\\n\\nvoid main() {\\n gl_FragColor = vec4(contourColor,1);\\n}\\n\"]);r.meshShader={vertex:i,fragment:a,attributes:[{name:\"position\",type:\"vec3\"},{name:\"normal\",type:\"vec3\"},{name:\"color\",type:\"vec4\"},{name:\"uv\",type:\"vec2\"}]},r.wireShader={vertex:o,fragment:s,attributes:[{name:\"position\",type:\"vec3\"},{name:\"color\",type:\"vec4\"},{name:\"uv\",type:\"vec2\"}]},r.pointShader={vertex:l,fragment:c,attributes:[{name:\"position\",type:\"vec3\"},{name:\"color\",type:\"vec4\"},{name:\"uv\",type:\"vec2\"},{name:\"pointSize\",type:\"float\"}]},r.pickShader={vertex:u,fragment:f,attributes:[{name:\"position\",type:\"vec3\"},{name:\"id\",type:\"vec4\"}]},r.pointPickShader={vertex:h,fragment:f,attributes:[{name:\"position\",type:\"vec3\"},{name:\"pointSize\",type:\"float\"},{name:\"id\",type:\"vec4\"}]},r.contourShader={vertex:p,fragment:d,attributes:[{name:\"position\",type:\"vec3\"}]}},{glslify:392}],268:[function(t,e,r){\"use strict\";var n=t(\"gl-shader\"),i=t(\"gl-buffer\"),a=t(\"gl-vao\"),o=t(\"gl-texture2d\"),s=t(\"normals\"),l=t(\"gl-mat4/multiply\"),c=t(\"gl-mat4/invert\"),u=t(\"ndarray\"),f=t(\"colormap\"),h=t(\"simplicial-complex-contour\"),p=t(\"typedarray-pool\"),d=t(\"./lib/shaders\"),g=t(\"./lib/closest-point\"),v=d.meshShader,m=d.wireShader,y=d.pointShader,x=d.pickShader,b=d.pointPickShader,_=d.contourShader,w=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function k(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,g,v,m,y,x,b,_,k,M,A,T,S){this.gl=t,this.cells=[],this.positions=[],this.intensity=[],this.texture=e,this.dirty=!0,this.triShader=r,this.lineShader=n,this.pointShader=i,this.pickShader=a,this.pointPickShader=o,this.contourShader=s,this.trianglePositions=l,this.triangleColors=u,this.triangleNormals=h,this.triangleUVs=f,this.triangleIds=c,this.triangleVAO=p,this.triangleCount=0,this.lineWidth=1,this.edgePositions=d,this.edgeColors=v,this.edgeUVs=m,this.edgeIds=g,this.edgeVAO=y,this.edgeCount=0,this.pointPositions=x,this.pointColors=_,this.pointUVs=k,this.pointSizes=M,this.pointIds=b,this.pointVAO=A,this.pointCount=0,this.contourLineWidth=1,this.contourPositions=T,this.contourVAO=S,this.contourCount=0,this.contourColor=[0,0,0],this.contourEnable=!0,this.pickId=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lightPosition=[1e5,1e5,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.opacity=1,this._model=w,this._view=w,this._projection=w,this._resolution=[1,1]}var M=k.prototype;function A(t){var e=n(t,y.vertex,y.fragment);return e.attributes.position.location=0,e.attributes.color.location=2,e.attributes.uv.location=3,e.attributes.pointSize.location=4,e}function T(t){var e=n(t,x.vertex,x.fragment);return e.attributes.position.location=0,e.attributes.id.location=1,e}function S(t){var e=n(t,b.vertex,b.fragment);return e.attributes.position.location=0,e.attributes.id.location=1,e.attributes.pointSize.location=4,e}function E(t){var e=n(t,_.vertex,_.fragment);return e.attributes.position.location=0,e}M.isOpaque=function(){return this.opacity>=1},M.isTransparent=function(){return this.opacity<1},M.pickSlots=1,M.setPickBase=function(t){this.pickId=t},M.highlight=function(t){if(t&&this.contourEnable){for(var e=h(this.cells,this.intensity,t.intensity),r=e.cells,n=e.vertexIds,i=e.vertexWeights,a=r.length,o=p.mallocFloat32(6*a),s=0,l=0;l<a;++l)for(var c=r[l],u=0;u<2;++u){var f=c[0];2===c.length&&(f=c[u]);for(var d=n[f][0],g=n[f][1],v=i[f],m=1-v,y=this.positions[d],x=this.positions[g],b=0;b<3;++b)o[s++]=v*y[b]+m*x[b]}this.contourCount=s/3|0,this.contourPositions.update(o.subarray(0,s)),p.free(o)}else this.contourCount=0},M.update=function(t){t=t||{};var e=this.gl;this.dirty=!0,\"contourEnable\"in t&&(this.contourEnable=t.contourEnable),\"contourColor\"in t&&(this.contourColor=t.contourColor),\"lineWidth\"in t&&(this.lineWidth=t.lineWidth),\"lightPosition\"in t&&(this.lightPosition=t.lightPosition),\"opacity\"in t&&(this.opacity=t.opacity),\"ambient\"in t&&(this.ambientLight=t.ambient),\"diffuse\"in t&&(this.diffuseLight=t.diffuse),\"specular\"in t&&(this.specularLight=t.specular),\"roughness\"in t&&(this.roughness=t.roughness),\"fresnel\"in t&&(this.fresnel=t.fresnel),t.texture?(this.texture.dispose(),this.texture=o(e,t.texture)):t.colormap&&(this.texture.shape=[256,256],this.texture.minFilter=e.LINEAR_MIPMAP_LINEAR,this.texture.magFilter=e.LINEAR,this.texture.setPixels(function(t){for(var e=f({colormap:t,nshades:256,format:\"rgba\"}),r=new Uint8Array(1024),n=0;n<256;++n){for(var i=e[n],a=0;a<3;++a)r[4*n+a]=i[a];r[4*n+3]=255*i[3]}return u(r,[256,256,4],[4,0,1])}(t.colormap)),this.texture.generateMipmap());var r=t.cells,n=t.positions;if(n&&r){var i=[],a=[],l=[],c=[],h=[],p=[],d=[],g=[],v=[],m=[],y=[],x=[],b=[],_=[];this.cells=r,this.positions=n;var w=t.vertexNormals,k=t.cellNormals,M=void 0===t.vertexNormalsEpsilon?1e-6:t.vertexNormalsEpsilon,A=void 0===t.faceNormalsEpsilon?1e-6:t.faceNormalsEpsilon;t.useFacetNormals&&!k&&(k=s.faceNormals(r,n,A)),k||w||(w=s.vertexNormals(r,n,M));var T=t.vertexColors,S=t.cellColors,E=t.meshColor||[1,1,1,1],C=t.vertexUVs,L=t.vertexIntensity,z=t.cellUVs,O=t.cellIntensity,I=1/0,P=-1/0;if(!C&&!z)if(L)if(t.vertexIntensityBounds)I=+t.vertexIntensityBounds[0],P=+t.vertexIntensityBounds[1];else for(var D=0;D<L.length;++D){var R=L[D];I=Math.min(I,R),P=Math.max(P,R)}else if(O)for(D=0;D<O.length;++D){R=O[D];I=Math.min(I,R),P=Math.max(P,R)}else for(D=0;D<n.length;++D){R=n[D][2];I=Math.min(I,R),P=Math.max(P,R)}this.intensity=L||(O?function(t,e,r){for(var n=new Array(e),i=0;i<e;++i)n[i]=0;var a=t.length;for(i=0;i<a;++i)for(var o=t[i],s=0;s<o.length;++s)n[o[s]]=r[i];return n}(r,n.length,O):function(t){for(var e=t.length,r=new Array(e),n=0;n<e;++n)r[n]=t[n][2];return r}(n));var B=t.pointSizes,F=t.pointSize||1;this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]];for(D=0;D<n.length;++D)for(var N=n[D],j=0;j<3;++j)!isNaN(N[j])&&isFinite(N[j])&&(this.bounds[0][j]=Math.min(this.bounds[0][j],N[j]),this.bounds[1][j]=Math.max(this.bounds[1][j],N[j]));var V=0,U=0,q=0;t:for(D=0;D<r.length;++D){var H=r[D];switch(H.length){case 1:for(N=n[W=H[0]],j=0;j<3;++j)if(isNaN(N[j])||!isFinite(N[j]))continue t;m.push(N[0],N[1],N[2]),3===(Y=T?T[W]:S?S[D]:E).length?y.push(Y[0],Y[1],Y[2],1):y.push(Y[0],Y[1],Y[2],Y[3]),X=C?C[W]:L?[(L[W]-I)/(P-I),0]:z?z[D]:O?[(O[D]-I)/(P-I),0]:[(N[2]-I)/(P-I),0],x.push(X[0],X[1]),B?b.push(B[W]):b.push(F),_.push(D),q+=1;break;case 2:for(j=0;j<2;++j){N=n[W=H[j]];for(var G=0;G<3;++G)if(isNaN(N[G])||!isFinite(N[G]))continue t}for(j=0;j<2;++j){N=n[W=H[j]];p.push(N[0],N[1],N[2]),3===(Y=T?T[W]:S?S[D]:E).length?d.push(Y[0],Y[1],Y[2],1):d.push(Y[0],Y[1],Y[2],Y[3]),X=C?C[W]:L?[(L[W]-I)/(P-I),0]:z?z[D]:O?[(O[D]-I)/(P-I),0]:[(N[2]-I)/(P-I),0],g.push(X[0],X[1]),v.push(D)}U+=1;break;case 3:for(j=0;j<3;++j)for(N=n[W=H[j]],G=0;G<3;++G)if(isNaN(N[G])||!isFinite(N[G]))continue t;for(j=0;j<3;++j){var W,Y,X,Z;N=n[W=H[j]];i.push(N[0],N[1],N[2]),3===(Y=T?T[W]:S?S[D]:E).length?a.push(Y[0],Y[1],Y[2],1):a.push(Y[0],Y[1],Y[2],Y[3]),X=C?C[W]:L?[(L[W]-I)/(P-I),0]:z?z[D]:O?[(O[D]-I)/(P-I),0]:[(N[2]-I)/(P-I),0],c.push(X[0],X[1]),Z=w?w[W]:k[D],l.push(Z[0],Z[1],Z[2]),h.push(D)}V+=1}}this.pointCount=q,this.edgeCount=U,this.triangleCount=V,this.pointPositions.update(m),this.pointColors.update(y),this.pointUVs.update(x),this.pointSizes.update(b),this.pointIds.update(new Uint32Array(_)),this.edgePositions.update(p),this.edgeColors.update(d),this.edgeUVs.update(g),this.edgeIds.update(new Uint32Array(v)),this.trianglePositions.update(i),this.triangleColors.update(a),this.triangleUVs.update(c),this.triangleNormals.update(l),this.triangleIds.update(new Uint32Array(h))}},M.drawTransparent=M.draw=function(t){t=t||{};for(var e=this.gl,r=t.model||w,n=t.view||w,i=t.projection||w,a=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],o=0;o<3;++o)a[0][o]=Math.max(a[0][o],this.clipBounds[0][o]),a[1][o]=Math.min(a[1][o],this.clipBounds[1][o]);var s={model:r,view:n,projection:i,clipBounds:a,kambient:this.ambientLight,kdiffuse:this.diffuseLight,kspecular:this.specularLight,roughness:this.roughness,fresnel:this.fresnel,eyePosition:[0,0,0],lightPosition:[0,0,0],opacity:this.opacity,contourColor:this.contourColor,texture:0};this.texture.bind(0);var u=new Array(16);l(u,s.view,s.model),l(u,s.projection,u),c(u,u);for(o=0;o<3;++o)s.eyePosition[o]=u[12+o]/u[15];var f,h=u[15];for(o=0;o<3;++o)h+=this.lightPosition[o]*u[4*o+3];for(o=0;o<3;++o){for(var p=u[12+o],d=0;d<3;++d)p+=u[4*d+o]*this.lightPosition[d];s.lightPosition[o]=p/h}this.triangleCount>0&&((f=this.triShader).bind(),f.uniforms=s,this.triangleVAO.bind(),e.drawArrays(e.TRIANGLES,0,3*this.triangleCount),this.triangleVAO.unbind());this.edgeCount>0&&this.lineWidth>0&&((f=this.lineShader).bind(),f.uniforms=s,this.edgeVAO.bind(),e.lineWidth(this.lineWidth),e.drawArrays(e.LINES,0,2*this.edgeCount),this.edgeVAO.unbind());this.pointCount>0&&((f=this.pointShader).bind(),f.uniforms=s,this.pointVAO.bind(),e.drawArrays(e.POINTS,0,this.pointCount),this.pointVAO.unbind());this.contourEnable&&this.contourCount>0&&this.contourLineWidth>0&&((f=this.contourShader).bind(),f.uniforms=s,this.contourVAO.bind(),e.drawArrays(e.LINES,0,this.contourCount),this.contourVAO.unbind())},M.drawPick=function(t){t=t||{};for(var e=this.gl,r=t.model||w,n=t.view||w,i=t.projection||w,a=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],o=0;o<3;++o)a[0][o]=Math.max(a[0][o],this.clipBounds[0][o]),a[1][o]=Math.min(a[1][o],this.clipBounds[1][o]);this._model=[].slice.call(r),this._view=[].slice.call(n),this._projection=[].slice.call(i),this._resolution=[e.drawingBufferWidth,e.drawingBufferHeight];var s,l={model:r,view:n,projection:i,clipBounds:a,pickId:this.pickId/255};((s=this.pickShader).bind(),s.uniforms=l,this.triangleCount>0&&(this.triangleVAO.bind(),e.drawArrays(e.TRIANGLES,0,3*this.triangleCount),this.triangleVAO.unbind()),this.edgeCount>0&&(this.edgeVAO.bind(),e.lineWidth(this.lineWidth),e.drawArrays(e.LINES,0,2*this.edgeCount),this.edgeVAO.unbind()),this.pointCount>0)&&((s=this.pointPickShader).bind(),s.uniforms=l,this.pointVAO.bind(),e.drawArrays(e.POINTS,0,this.pointCount),this.pointVAO.unbind())},M.pick=function(t){if(!t)return null;if(t.id!==this.pickId)return null;for(var e=t.value[0]+256*t.value[1]+65536*t.value[2],r=this.cells[e],n=this.positions,i=new Array(r.length),a=0;a<r.length;++a)i[a]=n[r[a]];var o=g(i,[t.coord[0],this._resolution[1]-t.coord[1]],this._model,this._view,this._projection,this._resolution);if(!o)return null;var s=o[2],l=0;for(a=0;a<r.length;++a)l+=s[a]*this.intensity[r[a]];return{position:o[1],index:r[o[0]],cell:r,cellId:e,intensity:l,dataCoordinate:this.positions[r[o[0]]]}},M.dispose=function(){this.texture.dispose(),this.triShader.dispose(),this.lineShader.dispose(),this.pointShader.dispose(),this.pickShader.dispose(),this.pointPickShader.dispose(),this.triangleVAO.dispose(),this.trianglePositions.dispose(),this.triangleColors.dispose(),this.triangleUVs.dispose(),this.triangleNormals.dispose(),this.triangleIds.dispose(),this.edgeVAO.dispose(),this.edgePositions.dispose(),this.edgeColors.dispose(),this.edgeUVs.dispose(),this.edgeIds.dispose(),this.pointVAO.dispose(),this.pointPositions.dispose(),this.pointColors.dispose(),this.pointUVs.dispose(),this.pointSizes.dispose(),this.pointIds.dispose(),this.contourVAO.dispose(),this.contourPositions.dispose(),this.contourShader.dispose()},e.exports=function(t,e){if(1===arguments.length&&(t=(e=t).gl),!(t.getExtension(\"OES_standard_derivatives\")||t.getExtension(\"MOZ_OES_standard_derivatives\")||t.getExtension(\"WEBKIT_OES_standard_derivatives\")))throw new Error(\"derivatives not supported\");var r=function(t){var e=n(t,v.vertex,v.fragment);return e.attributes.position.location=0,e.attributes.color.location=2,e.attributes.uv.location=3,e.attributes.normal.location=4,e}(t),s=function(t){var e=n(t,m.vertex,m.fragment);return e.attributes.position.location=0,e.attributes.color.location=2,e.attributes.uv.location=3,e}(t),l=A(t),c=T(t),f=S(t),h=E(t),p=o(t,u(new Uint8Array([255,255,255,255]),[1,1,4]));p.generateMipmap(),p.minFilter=t.LINEAR_MIPMAP_LINEAR,p.magFilter=t.LINEAR;var d=i(t),g=i(t),y=i(t),x=i(t),b=i(t),_=a(t,[{buffer:d,type:t.FLOAT,size:3},{buffer:b,type:t.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:g,type:t.FLOAT,size:4},{buffer:y,type:t.FLOAT,size:2},{buffer:x,type:t.FLOAT,size:3}]),w=i(t),M=i(t),C=i(t),L=i(t),z=a(t,[{buffer:w,type:t.FLOAT,size:3},{buffer:L,type:t.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:M,type:t.FLOAT,size:4},{buffer:C,type:t.FLOAT,size:2}]),O=i(t),I=i(t),P=i(t),D=i(t),R=i(t),B=a(t,[{buffer:O,type:t.FLOAT,size:3},{buffer:R,type:t.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:I,type:t.FLOAT,size:4},{buffer:P,type:t.FLOAT,size:2},{buffer:D,type:t.FLOAT,size:1}]),F=i(t),N=new k(t,p,r,s,l,c,f,h,d,b,g,y,x,_,w,L,M,C,z,O,R,I,P,D,B,F,a(t,[{buffer:F,type:t.FLOAT,size:3}]));return N.update(e),N}},{\"./lib/closest-point\":266,\"./lib/shaders\":267,colormap:114,\"gl-buffer\":230,\"gl-mat4/invert\":254,\"gl-mat4/multiply\":256,\"gl-shader\":288,\"gl-texture2d\":305,\"gl-vao\":310,ndarray:433,normals:436,\"simplicial-complex-contour\":494,\"typedarray-pool\":522}],269:[function(t,e,r){\"use strict\";e.exports=function(t){var e=t.gl,r=n(e,[0,0,0,1,1,0,1,1]),s=i(e,a.boxVert,a.lineFrag);return new o(t,r,s)};var n=t(\"gl-buffer\"),i=t(\"gl-shader\"),a=t(\"./shaders\");function o(t,e,r){this.plot=t,this.vbo=e,this.shader=r}var s,l,c=o.prototype;c.bind=function(){var t=this.shader;this.vbo.bind(),this.shader.bind(),t.attributes.coord.pointer(),t.uniforms.screenBox=this.plot.screenBox},c.drawBox=(s=[0,0],l=[0,0],function(t,e,r,n,i){var a=this.plot,o=this.shader,c=a.gl;s[0]=t,s[1]=e,l[0]=r,l[1]=n,o.uniforms.lo=s,o.uniforms.hi=l,o.uniforms.color=i,c.drawArrays(c.TRIANGLE_STRIP,0,4)}),c.dispose=function(){this.vbo.dispose(),this.shader.dispose()}},{\"./shaders\":272,\"gl-buffer\":230,\"gl-shader\":288}],270:[function(t,e,r){\"use strict\";e.exports=function(t){var e=t.gl,r=n(e),a=i(e,o.gridVert,o.gridFrag),l=i(e,o.tickVert,o.gridFrag);return new s(t,r,a,l)};var n=t(\"gl-buffer\"),i=t(\"gl-shader\"),a=t(\"binary-search-bounds\"),o=t(\"./shaders\");function s(t,e,r,n){this.plot=t,this.vbo=e,this.shader=r,this.tickShader=n,this.ticks=[[],[]]}function l(t,e){return t-e}var c,u,f,h,p,d=s.prototype;d.draw=(c=[0,0],u=[0,0],f=[0,0],function(){for(var t=this.plot,e=this.vbo,r=this.shader,n=this.ticks,i=t.gl,a=t._tickBounds,o=t.dataBox,s=t.viewBox,l=t.gridLineWidth,h=t.gridLineColor,p=t.gridLineEnable,d=t.pixelRatio,g=0;g<2;++g){var v=a[g],m=a[g+2]-v,y=.5*(o[g+2]+o[g]),x=o[g+2]-o[g];u[g]=2*m/x,c[g]=2*(v-y)/x}r.bind(),e.bind(),r.attributes.dataCoord.pointer(),r.uniforms.dataShift=c,r.uniforms.dataScale=u;var b=0;for(g=0;g<2;++g){f[0]=f[1]=0,f[g]=1,r.uniforms.dataAxis=f,r.uniforms.lineWidth=l[g]/(s[g+2]-s[g])*d,r.uniforms.color=h[g];var _=6*n[g].length;p[g]&&_&&i.drawArrays(i.TRIANGLES,b,_),b+=_}}),d.drawTickMarks=function(){var t=[0,0],e=[0,0],r=[1,0],n=[0,1],i=[0,0],o=[0,0];return function(){for(var s=this.plot,c=this.vbo,u=this.tickShader,f=this.ticks,h=s.gl,p=s._tickBounds,d=s.dataBox,g=s.viewBox,v=s.pixelRatio,m=s.screenBox,y=m[2]-m[0],x=m[3]-m[1],b=g[2]-g[0],_=g[3]-g[1],w=0;w<2;++w){var k=p[w],M=p[w+2]-k,A=.5*(d[w+2]+d[w]),T=d[w+2]-d[w];e[w]=2*M/T,t[w]=2*(k-A)/T}e[0]*=b/y,t[0]*=b/y,e[1]*=_/x,t[1]*=_/x,u.bind(),c.bind(),u.attributes.dataCoord.pointer();var S=u.uniforms;S.dataShift=t,S.dataScale=e;var E=s.tickMarkLength,C=s.tickMarkWidth,L=s.tickMarkColor,z=6*f[0].length,O=Math.min(a.ge(f[0],(d[0]-p[0])/(p[2]-p[0]),l),f[0].length),I=Math.min(a.gt(f[0],(d[2]-p[0])/(p[2]-p[0]),l),f[0].length),P=0+6*O,D=6*Math.max(0,I-O),R=Math.min(a.ge(f[1],(d[1]-p[1])/(p[3]-p[1]),l),f[1].length),B=Math.min(a.gt(f[1],(d[3]-p[1])/(p[3]-p[1]),l),f[1].length),F=z+6*R,N=6*Math.max(0,B-R);i[0]=2*(g[0]-E[1])/y-1,i[1]=(g[3]+g[1])/x-1,o[0]=E[1]*v/y,o[1]=C[1]*v/x,N&&(S.color=L[1],S.tickScale=o,S.dataAxis=n,S.screenOffset=i,h.drawArrays(h.TRIANGLES,F,N)),i[0]=(g[2]+g[0])/y-1,i[1]=2*(g[1]-E[0])/x-1,o[0]=C[0]*v/y,o[1]=E[0]*v/x,D&&(S.color=L[0],S.tickScale=o,S.dataAxis=r,S.screenOffset=i,h.drawArrays(h.TRIANGLES,P,D)),i[0]=2*(g[2]+E[3])/y-1,i[1]=(g[3]+g[1])/x-1,o[0]=E[3]*v/y,o[1]=C[3]*v/x,N&&(S.color=L[3],S.tickScale=o,S.dataAxis=n,S.screenOffset=i,h.drawArrays(h.TRIANGLES,F,N)),i[0]=(g[2]+g[0])/y-1,i[1]=2*(g[3]+E[2])/x-1,o[0]=C[2]*v/y,o[1]=E[2]*v/x,D&&(S.color=L[2],S.tickScale=o,S.dataAxis=r,S.screenOffset=i,h.drawArrays(h.TRIANGLES,P,D))}}(),d.update=(h=[1,1,-1,-1,1,-1],p=[1,-1,1,1,-1,-1],function(t){for(var e=t.ticks,r=t.bounds,n=new Float32Array(18*(e[0].length+e[1].length)),i=(this.plot.zeroLineEnable,0),a=[[],[]],o=0;o<2;++o)for(var s=a[o],l=e[o],c=r[o],u=r[o+2],f=0;f<l.length;++f){var d=(l[f].x-c)/(u-c);s.push(d);for(var g=0;g<6;++g)n[i++]=d,n[i++]=h[g],n[i++]=p[g]}this.ticks=a,this.vbo.update(n)}),d.dispose=function(){this.vbo.dispose(),this.shader.dispose(),this.tickShader.dispose()}},{\"./shaders\":272,\"binary-search-bounds\":274,\"gl-buffer\":230,\"gl-shader\":288}],271:[function(t,e,r){\"use strict\";e.exports=function(t){var e=t.gl,r=n(e,[-1,-1,-1,1,1,-1,1,1]),s=i(e,a.lineVert,a.lineFrag);return new o(t,r,s)};var n=t(\"gl-buffer\"),i=t(\"gl-shader\"),a=t(\"./shaders\");function o(t,e,r){this.plot=t,this.vbo=e,this.shader=r}var s,l,c=o.prototype;c.bind=function(){var t=this.shader;this.vbo.bind(),this.shader.bind(),t.attributes.coord.pointer(),t.uniforms.screenBox=this.plot.screenBox},c.drawLine=(s=[0,0],l=[0,0],function(t,e,r,n,i,a){var o=this.plot,c=this.shader,u=o.gl;s[0]=t,s[1]=e,l[0]=r,l[1]=n,c.uniforms.start=s,c.uniforms.end=l,c.uniforms.width=i*o.pixelRatio,c.uniforms.color=a,u.drawArrays(u.TRIANGLE_STRIP,0,4)}),c.dispose=function(){this.vbo.dispose(),this.shader.dispose()}},{\"./shaders\":272,\"gl-buffer\":230,\"gl-shader\":288}],272:[function(t,e,r){\"use strict\";var n=t(\"glslify\"),i=n([\"precision lowp float;\\n#define GLSLIFY 1\\nuniform vec4 color;\\nvoid main() {\\n gl_FragColor = vec4(color.xyz * color.w, color.w);\\n}\\n\"]);e.exports={lineVert:n([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute vec2 coord;\\n\\nuniform vec4 screenBox;\\nuniform vec2 start, end;\\nuniform float width;\\n\\nvec2 perp(vec2 v) {\\n return vec2(v.y, -v.x);\\n}\\n\\nvec2 screen(vec2 v) {\\n return 2.0 * (v - screenBox.xy) / (screenBox.zw - screenBox.xy) - 1.0;\\n}\\n\\nvoid main() {\\n vec2 delta = normalize(perp(start - end));\\n vec2 offset = mix(start, end, 0.5 * (coord.y+1.0));\\n gl_Position = vec4(screen(offset + 0.5 * width * delta * coord.x), 0, 1);\\n}\\n\"]),lineFrag:i,textVert:n([\"#define GLSLIFY 1\\nattribute vec3 textCoordinate;\\n\\nuniform vec2 dataScale, dataShift, dataAxis, screenOffset, textScale;\\nuniform float angle;\\n\\nvoid main() {\\n float dataOffset = textCoordinate.z;\\n vec2 glyphOffset = textCoordinate.xy;\\n mat2 glyphMatrix = mat2(cos(angle), sin(angle), -sin(angle), cos(angle));\\n vec2 screenCoordinate = dataAxis * (dataScale * dataOffset + dataShift) +\\n glyphMatrix * glyphOffset * textScale + screenOffset;\\n gl_Position = vec4(screenCoordinate, 0, 1);\\n}\\n\"]),textFrag:i,gridVert:n([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute vec3 dataCoord;\\n\\nuniform vec2 dataAxis, dataShift, dataScale;\\nuniform float lineWidth;\\n\\nvoid main() {\\n vec2 pos = dataAxis * (dataScale * dataCoord.x + dataShift);\\n pos += 10.0 * dataCoord.y * vec2(dataAxis.y, -dataAxis.x) + dataCoord.z * lineWidth;\\n gl_Position = vec4(pos, 0, 1);\\n}\\n\"]),gridFrag:i,boxVert:n([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute vec2 coord;\\n\\nuniform vec4 screenBox;\\nuniform vec2 lo, hi;\\n\\nvec2 screen(vec2 v) {\\n return 2.0 * (v - screenBox.xy) / (screenBox.zw - screenBox.xy) - 1.0;\\n}\\n\\nvoid main() {\\n gl_Position = vec4(screen(mix(lo, hi, coord)), 0, 1);\\n}\\n\"]),tickVert:n([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute vec3 dataCoord;\\n\\nuniform vec2 dataAxis, dataShift, dataScale, screenOffset, tickScale;\\n\\nvoid main() {\\n vec2 pos = dataAxis * (dataScale * dataCoord.x + dataShift);\\n gl_Position = vec4(pos + tickScale*dataCoord.yz + screenOffset, 0, 1);\\n}\\n\"])}},{glslify:392}],273:[function(t,e,r){\"use strict\";e.exports=function(t){var e=t.gl,r=n(e),a=i(e,s.textVert,s.textFrag);return new l(t,r,a)};var n=t(\"gl-buffer\"),i=t(\"gl-shader\"),a=t(\"text-cache\"),o=t(\"binary-search-bounds\"),s=t(\"./shaders\");function l(t,e,r){this.plot=t,this.vbo=e,this.shader=r,this.tickOffset=[[],[]],this.tickX=[[],[]],this.labelOffset=[0,0],this.labelCount=[0,0]}var c,u,f,h,p,d,g=l.prototype;g.drawTicks=(c=[0,0],u=[0,0],f=[0,0],function(t){var e=this.plot,r=this.shader,n=this.tickX[t],i=this.tickOffset[t],a=e.gl,s=e.viewBox,l=e.dataBox,h=e.screenBox,p=e.pixelRatio,d=e.tickEnable,g=e.tickPad,v=e.tickColor,m=e.tickAngle,y=e.labelEnable,x=e.labelPad,b=e.labelColor,_=e.labelAngle,w=this.labelOffset[t],k=this.labelCount[t],M=o.lt(n,l[t]),A=o.le(n,l[t+2]);c[0]=c[1]=0,c[t]=1,u[t]=(s[2+t]+s[t])/(h[2+t]-h[t])-1;var T=2/h[2+(1^t)]-h[1^t];u[1^t]=T*s[1^t]-1,d[t]&&(u[1^t]-=T*p*g[t],M<A&&i[A]>i[M]&&(r.uniforms.dataAxis=c,r.uniforms.screenOffset=u,r.uniforms.color=v[t],r.uniforms.angle=m[t],a.drawArrays(a.TRIANGLES,i[M],i[A]-i[M]))),y[t]&&k&&(u[1^t]-=T*p*x[t],r.uniforms.dataAxis=f,r.uniforms.screenOffset=u,r.uniforms.color=b[t],r.uniforms.angle=_[t],a.drawArrays(a.TRIANGLES,w,k)),u[1^t]=T*s[2+(1^t)]-1,d[t+2]&&(u[1^t]+=T*p*g[t+2],M<A&&i[A]>i[M]&&(r.uniforms.dataAxis=c,r.uniforms.screenOffset=u,r.uniforms.color=v[t+2],r.uniforms.angle=m[t+2],a.drawArrays(a.TRIANGLES,i[M],i[A]-i[M]))),y[t+2]&&k&&(u[1^t]+=T*p*x[t+2],r.uniforms.dataAxis=f,r.uniforms.screenOffset=u,r.uniforms.color=b[t+2],r.uniforms.angle=_[t+2],a.drawArrays(a.TRIANGLES,w,k))}),g.drawTitle=function(){var t=[0,0],e=[0,0];return function(){var r=this.plot,n=this.shader,i=r.gl,a=r.screenBox,o=r.titleCenter,s=r.titleAngle,l=r.titleColor,c=r.pixelRatio;if(this.titleCount){for(var u=0;u<2;++u)e[u]=2*(o[u]*c-a[u])/(a[2+u]-a[u])-1;n.bind(),n.uniforms.dataAxis=t,n.uniforms.screenOffset=e,n.uniforms.angle=s,n.uniforms.color=l,i.drawArrays(i.TRIANGLES,this.titleOffset,this.titleCount)}}}(),g.bind=(h=[0,0],p=[0,0],d=[0,0],function(){var t=this.plot,e=this.shader,r=t._tickBounds,n=t.dataBox,i=t.screenBox,a=t.viewBox;e.bind();for(var o=0;o<2;++o){var s=r[o],l=r[o+2]-s,c=.5*(n[o+2]+n[o]),u=n[o+2]-n[o],f=a[o],g=a[o+2]-f,v=i[o],m=i[o+2]-v;p[o]=2*l/u*g/m,h[o]=2*(s-c)/u*g/m}d[1]=2*t.pixelRatio/(i[3]-i[1]),d[0]=d[1]*(i[3]-i[1])/(i[2]-i[0]),e.uniforms.dataScale=p,e.uniforms.dataShift=h,e.uniforms.textScale=d,this.vbo.bind(),e.attributes.textCoordinate.pointer()}),g.update=function(t){var e,r,n,i,o,s=[],l=t.ticks,c=t.bounds;for(o=0;o<2;++o){var u=[Math.floor(s.length/3)],f=[-1/0],h=l[o];for(e=0;e<h.length;++e){var p=h[e],d=p.x,g=p.text,v=p.font||\"sans-serif\";i=p.fontSize||12;for(var m=1/(c[o+2]-c[o]),y=c[o],x=g.split(\"\\n\"),b=0;b<x.length;b++)for(n=a(v,x[b]).data,r=0;r<n.length;r+=2)s.push(n[r]*i,-n[r+1]*i-b*i*1.2,(d-y)*m);u.push(Math.floor(s.length/3)),f.push(d)}this.tickOffset[o]=u,this.tickX[o]=f}for(o=0;o<2;++o){for(this.labelOffset[o]=Math.floor(s.length/3),n=a(t.labelFont[o],t.labels[o],{textAlign:\"center\"}).data,i=t.labelSize[o],e=0;e<n.length;e+=2)s.push(n[e]*i,-n[e+1]*i,0);this.labelCount[o]=Math.floor(s.length/3)-this.labelOffset[o]}for(this.titleOffset=Math.floor(s.length/3),n=a(t.titleFont,t.title).data,i=t.titleSize,e=0;e<n.length;e+=2)s.push(n[e]*i,-n[e+1]*i,0);this.titleCount=Math.floor(s.length/3)-this.titleOffset,this.vbo.update(s)},g.dispose=function(){this.vbo.dispose(),this.shader.dispose()}},{\"./shaders\":272,\"binary-search-bounds\":274,\"gl-buffer\":230,\"gl-shader\":288,\"text-cache\":513}],274:[function(t,e,r){arguments[4][99][0].apply(r,arguments)},{dup:99}],275:[function(t,e,r){\"use strict\";e.exports=function(t){var e=t.gl,r=n(e,[e.drawingBufferWidth,e.drawingBufferHeight]),c=new l(e,r);return c.grid=i(c),c.text=a(c),c.line=o(c),c.box=s(c),c.update(t),c};var n=t(\"gl-select-static\"),i=t(\"./lib/grid\"),a=t(\"./lib/text\"),o=t(\"./lib/line\"),s=t(\"./lib/box\");function l(t,e){this.gl=t,this.pickBuffer=e,this.screenBox=[0,0,t.drawingBufferWidth,t.drawingBufferHeight],this.viewBox=[0,0,0,0],this.dataBox=[-10,-10,10,10],this.gridLineEnable=[!0,!0],this.gridLineWidth=[1,1],this.gridLineColor=[[0,0,0,1],[0,0,0,1]],this.pixelRatio=1,this.tickMarkLength=[0,0,0,0],this.tickMarkWidth=[0,0,0,0],this.tickMarkColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[15,15,15,15],this.tickAngle=[0,0,0,0],this.tickEnable=[!0,!0,!0,!0],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[15,15,15,15],this.labelAngle=[0,Math.PI/2,0,3*Math.PI/2],this.labelEnable=[!0,!0,!0,!0],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.titleCenter=[0,0],this.titleEnable=!0,this.titleAngle=0,this.titleColor=[0,0,0,1],this.borderColor=[0,0,0,0],this.backgroundColor=[0,0,0,0],this.zeroLineEnable=[!0,!0],this.zeroLineWidth=[4,4],this.zeroLineColor=[[0,0,0,1],[0,0,0,1]],this.borderLineEnable=[!0,!0,!0,!0],this.borderLineWidth=[2,2,2,2],this.borderLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.grid=null,this.text=null,this.line=null,this.box=null,this.objects=[],this.overlays=[],this._tickBounds=[1/0,1/0,-1/0,-1/0],this.static=!1,this.dirty=!1,this.pickDirty=!1,this.pickDelay=120,this.pickRadius=10,this._pickTimeout=null,this._drawPick=this.drawPick.bind(this),this._depthCounter=0}var c=l.prototype;function u(t){for(var e=t.slice(),r=0;r<e.length;++r)e[r]=e[r].slice();return e}function f(t,e){return t.x-e.x}c.setDirty=function(){this.dirty=this.pickDirty=!0},c.setOverlayDirty=function(){this.dirty=!0},c.nextDepthValue=function(){return this._depthCounter++/65536},c.draw=function(){var t=this.gl,e=this.screenBox,r=this.viewBox,n=this.dataBox,i=this.pixelRatio,a=this.grid,o=this.line,s=this.text,l=this.objects;if(this._depthCounter=0,this.pickDirty&&(this._pickTimeout&&clearTimeout(this._pickTimeout),this.pickDirty=!1,this._pickTimeout=setTimeout(this._drawPick,this.pickDelay)),this.dirty){if(this.dirty=!1,t.bindFramebuffer(t.FRAMEBUFFER,null),t.enable(t.SCISSOR_TEST),t.disable(t.DEPTH_TEST),t.depthFunc(t.LESS),t.depthMask(!1),t.enable(t.BLEND),t.blendEquation(t.FUNC_ADD,t.FUNC_ADD),t.blendFunc(t.ONE,t.ONE_MINUS_SRC_ALPHA),this.borderColor){t.scissor(e[0],e[1],e[2]-e[0],e[3]-e[1]);var c=this.borderColor;t.clearColor(c[0]*c[3],c[1]*c[3],c[2]*c[3],c[3]),t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT)}t.scissor(r[0],r[1],r[2]-r[0],r[3]-r[1]),t.viewport(r[0],r[1],r[2]-r[0],r[3]-r[1]);var u=this.backgroundColor;t.clearColor(u[0]*u[3],u[1]*u[3],u[2]*u[3],u[3]),t.clear(t.COLOR_BUFFER_BIT),a.draw();var f=this.zeroLineEnable,h=this.zeroLineColor,p=this.zeroLineWidth;if(f[0]||f[1]){o.bind();for(var d=0;d<2;++d)if(f[d]&&n[d]<=0&&n[d+2]>=0){var g=e[d]-n[d]*(e[d+2]-e[d])/(n[d+2]-n[d]);0===d?o.drawLine(g,e[1],g,e[3],p[d],h[d]):o.drawLine(e[0],g,e[2],g,p[d],h[d])}}for(d=0;d<l.length;++d)l[d].draw();t.viewport(e[0],e[1],e[2]-e[0],e[3]-e[1]),t.scissor(e[0],e[1],e[2]-e[0],e[3]-e[1]),this.grid.drawTickMarks(),o.bind();var v=this.borderLineEnable,m=this.borderLineWidth,y=this.borderLineColor;for(v[1]&&o.drawLine(r[0],r[1]-.5*m[1]*i,r[0],r[3]+.5*m[3]*i,m[1],y[1]),v[0]&&o.drawLine(r[0]-.5*m[0]*i,r[1],r[2]+.5*m[2]*i,r[1],m[0],y[0]),v[3]&&o.drawLine(r[2],r[1]-.5*m[1]*i,r[2],r[3]+.5*m[3]*i,m[3],y[3]),v[2]&&o.drawLine(r[0]-.5*m[0]*i,r[3],r[2]+.5*m[2]*i,r[3],m[2],y[2]),s.bind(),d=0;d<2;++d)s.drawTicks(d);this.titleEnable&&s.drawTitle();var x=this.overlays;for(d=0;d<x.length;++d)x[d].draw();t.disable(t.SCISSOR_TEST),t.disable(t.BLEND),t.depthMask(!0)}},c.drawPick=function(){if(!this.static){var t=this.pickBuffer;this.gl;this._pickTimeout=null,t.begin();for(var e=1,r=this.objects,n=0;n<r.length;++n)e=r[n].drawPick(e);t.end()}},c.pick=function(t,e){if(!this.static){var r=this.pixelRatio,n=this.pickPixelRatio,i=this.viewBox,a=0|Math.round((t-i[0]/r)*n),o=0|Math.round((e-i[1]/r)*n),s=this.pickBuffer.query(a,o,this.pickRadius);if(!s)return null;for(var l=s.id+(s.value[0]<<8)+(s.value[1]<<16)+(s.value[2]<<24),c=this.objects,u=0;u<c.length;++u){var f=c[u].pick(a,o,l);if(f)return f}return null}},c.setScreenBox=function(t){var e=this.screenBox,r=this.pixelRatio;e[0]=0|Math.round(t[0]*r),e[1]=0|Math.round(t[1]*r),e[2]=0|Math.round(t[2]*r),e[3]=0|Math.round(t[3]*r),this.setDirty()},c.setDataBox=function(t){var e=this.dataBox;(e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3])&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],this.setDirty())},c.setViewBox=function(t){var e=this.pixelRatio,r=this.viewBox;r[0]=0|Math.round(t[0]*e),r[1]=0|Math.round(t[1]*e),r[2]=0|Math.round(t[2]*e),r[3]=0|Math.round(t[3]*e);var n=this.pickPixelRatio;this.pickBuffer.shape=[0|Math.round((t[2]-t[0])*n),0|Math.round((t[3]-t[1])*n)],this.setDirty()},c.update=function(t){t=t||{};var e=this.gl;this.pixelRatio=t.pixelRatio||1;var r=this.pixelRatio;this.pickPixelRatio=Math.max(r,1),this.setScreenBox(t.screenBox||[0,0,e.drawingBufferWidth/r,e.drawingBufferHeight/r]);this.screenBox;this.setViewBox(t.viewBox||[.125*(this.screenBox[2]-this.screenBox[0])/r,.125*(this.screenBox[3]-this.screenBox[1])/r,.875*(this.screenBox[2]-this.screenBox[0])/r,.875*(this.screenBox[3]-this.screenBox[1])/r]);var n=this.viewBox,i=(n[2]-n[0])/(n[3]-n[1]);this.setDataBox(t.dataBox||[-10,-10/i,10,10/i]),this.borderColor=!1!==t.borderColor&&(t.borderColor||[0,0,0,0]).slice(),this.backgroundColor=(t.backgroundColor||[0,0,0,0]).slice(),this.gridLineEnable=(t.gridLineEnable||[!0,!0]).slice(),this.gridLineWidth=(t.gridLineWidth||[1,1]).slice(),this.gridLineColor=u(t.gridLineColor||[[.5,.5,.5,1],[.5,.5,.5,1]]),this.zeroLineEnable=(t.zeroLineEnable||[!0,!0]).slice(),this.zeroLineWidth=(t.zeroLineWidth||[4,4]).slice(),this.zeroLineColor=u(t.zeroLineColor||[[0,0,0,1],[0,0,0,1]]),this.tickMarkLength=(t.tickMarkLength||[0,0,0,0]).slice(),this.tickMarkWidth=(t.tickMarkWidth||[0,0,0,0]).slice(),this.tickMarkColor=u(t.tickMarkColor||[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]]),this.titleCenter=(t.titleCenter||[.5*(n[0]+n[2])/r,(n[3]+120)/r]).slice(),this.titleEnable=!(\"titleEnable\"in t&&!t.titleEnable),this.titleAngle=t.titleAngle||0,this.titleColor=(t.titleColor||[0,0,0,1]).slice(),this.labelPad=(t.labelPad||[15,15,15,15]).slice(),this.labelAngle=(t.labelAngle||[0,Math.PI/2,0,3*Math.PI/2]).slice(),this.labelEnable=(t.labelEnable||[!0,!0,!0,!0]).slice(),this.labelColor=u(t.labelColor||[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]]),this.tickPad=(t.tickPad||[15,15,15,15]).slice(),this.tickAngle=(t.tickAngle||[0,0,0,0]).slice(),this.tickEnable=(t.tickEnable||[!0,!0,!0,!0]).slice(),this.tickColor=u(t.tickColor||[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]]),this.borderLineEnable=(t.borderLineEnable||[!0,!0,!0,!0]).slice(),this.borderLineWidth=(t.borderLineWidth||[2,2,2,2]).slice(),this.borderLineColor=u(t.borderLineColor||[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]]);var a=t.ticks||[[],[]],o=this._tickBounds;o[0]=o[1]=1/0,o[2]=o[3]=-1/0;for(var s=0;s<2;++s){var l=a[s].slice(0);0!==l.length&&(l.sort(f),o[s]=Math.min(o[s],l[0].x),o[s+2]=Math.max(o[s+2],l[l.length-1].x))}this.grid.update({bounds:o,ticks:a}),this.text.update({bounds:o,ticks:a,labels:t.labels||[\"x\",\"y\"],labelSize:t.labelSize||[12,12],labelFont:t.labelFont||[\"sans-serif\",\"sans-serif\"],title:t.title||\"\",titleSize:t.titleSize||18,titleFont:t.titleFont||\"sans-serif\"}),this.static=!!t.static,this.setDirty()},c.dispose=function(){this.box.dispose(),this.grid.dispose(),this.text.dispose(),this.line.dispose();for(var t=this.objects.length-1;t>=0;--t)this.objects[t].dispose();this.objects.length=0;for(t=this.overlays.length-1;t>=0;--t)this.overlays[t].dispose();this.overlays.length=0,this.gl=null},c.addObject=function(t){this.objects.indexOf(t)<0&&(this.objects.push(t),this.setDirty())},c.removeObject=function(t){for(var e=this.objects,r=0;r<e.length;++r)if(e[r]===t){e.splice(r,1),this.setDirty();break}},c.addOverlay=function(t){this.overlays.indexOf(t)<0&&(this.overlays.push(t),this.setOverlayDirty())},c.removeOverlay=function(t){for(var e=this.overlays,r=0;r<e.length;++r)if(e[r]===t){e.splice(r,1),this.setOverlayDirty();break}}},{\"./lib/box\":269,\"./lib/grid\":270,\"./lib/line\":271,\"./lib/text\":273,\"gl-select-static\":287}],276:[function(t,e,r){var n=t(\"glslify\"),i=t(\"gl-shader\"),a=n([\"precision mediump float;\\n#define GLSLIFY 1\\nattribute vec2 position;\\nvarying vec2 uv;\\nvoid main() {\\n uv = position;\\n gl_Position = vec4(position, 0, 1);\\n}\"]),o=n([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nuniform sampler2D accumBuffer;\\nvarying vec2 uv;\\n\\nvoid main() {\\n vec4 accum = texture2D(accumBuffer, 0.5 * (uv + 1.0));\\n gl_FragColor = min(vec4(1,1,1,1), accum);\\n}\"]);e.exports=function(t){return i(t,a,o,null,[{name:\"position\",type:\"vec2\"}])}},{\"gl-shader\":288,glslify:392}],277:[function(t,e,r){\"use strict\";e.exports=function(t){var e=!1,r=((t=t||{}).pixelRatio||parseFloat(window.devicePixelRatio),t.canvas);if(!r)if(r=document.createElement(\"canvas\"),t.container){var m=t.container;m.appendChild(r)}else document.body.appendChild(r);var y=t.gl;y||(y=function(t,e){var r=null;try{(r=t.getContext(\"webgl\",e))||(r=t.getContext(\"experimental-webgl\",e))}catch(t){return null}return r}(r,t.glOptions||{premultipliedAlpha:!0,antialias:!0,preserveDrawingBuffer:p}));if(!y)throw new Error(\"webgl not supported\");var x=t.bounds||[[-10,-10,-10],[10,10,10]],b=new d,_=l(y,[y.drawingBufferWidth,y.drawingBufferHeight],{preferFloat:!p}),w=h(y),k=t.camera||{eye:[2,0,0],center:[0,0,0],up:[0,1,0],zoomMin:.1,zoomMax:100,mode:\"turntable\"},M=t.axes||{},A=i(y,M);A.enable=!M.disable;var T=t.spikes||{},S=o(y,T),E=[],C=[],L=[],z=[],O=!0,I=!0,P=new Array(16),D=new Array(16),R={view:null,projection:P,model:D},I=!0,B=[y.drawingBufferWidth,y.drawingBufferHeight],F={gl:y,contextLost:!1,pixelRatio:t.pixelRatio||parseFloat(window.devicePixelRatio),canvas:r,selection:b,camera:n(r,k),axes:A,axesPixels:null,spikes:S,bounds:x,objects:E,shape:B,aspect:t.aspectRatio||[1,1,1],pickRadius:t.pickRadius||10,zNear:t.zNear||.01,zFar:t.zFar||1e3,fovy:t.fovy||Math.PI/4,clearColor:t.clearColor||[0,0,0,0],autoResize:v(t.autoResize),autoBounds:v(t.autoBounds),autoScale:!!t.autoScale,autoCenter:v(t.autoCenter),clipToBounds:v(t.clipToBounds),snapToData:!!t.snapToData,onselect:t.onselect||null,onrender:t.onrender||null,onclick:t.onclick||null,cameraParams:R,oncontextloss:null,mouseListener:null},N=[y.drawingBufferWidth/F.pixelRatio|0,y.drawingBufferHeight/F.pixelRatio|0];function j(){if(!e&&F.autoResize){var t=r.parentNode,n=1,i=1;t&&t!==document.body?(n=t.clientWidth,i=t.clientHeight):(n=window.innerWidth,i=window.innerHeight);var a=0|Math.ceil(n*F.pixelRatio),o=0|Math.ceil(i*F.pixelRatio);if(a!==r.width||o!==r.height){r.width=a,r.height=o;var s=r.style;s.position=s.position||\"absolute\",s.left=\"0px\",s.top=\"0px\",s.width=n+\"px\",s.height=i+\"px\",O=!0}}}F.autoResize&&j();function V(){for(var t=E.length,e=z.length,r=0;r<e;++r)L[r]=0;t:for(var r=0;r<t;++r){var n=E[r],i=n.pickSlots;if(i){for(var a=0;a<e;++a)if(L[a]+i<255){C[r]=a,n.setPickBase(L[a]+1),L[a]+=i;continue t}var o=s(y,B);C[r]=e,z.push(o),L.push(i),n.setPickBase(1),e+=1}else C[r]=-1}for(;e>0&&0===L[e-1];)L.pop(),z.pop().dispose()}window.addEventListener(\"resize\",j),F.update=function(t){e||(t=t||{},O=!0,I=!0)},F.add=function(t){e||(t.axes=A,E.push(t),C.push(-1),O=!0,I=!0,V())},F.remove=function(t){if(!e){var r=E.indexOf(t);r<0||(E.splice(r,1),C.pop(),O=!0,I=!0,V())}},F.dispose=function(){if(!e&&(e=!0,window.removeEventListener(\"resize\",j),r.removeEventListener(\"webglcontextlost\",H),F.mouseListener.enabled=!1,!F.contextLost)){A.dispose(),S.dispose();for(var t=0;t<E.length;++t)E[t].dispose();_.dispose();for(var t=0;t<z.length;++t)z[t].dispose();w.dispose(),y=null,A=null,S=null,E=[]}};var U=!1,q=0;function H(){if(F.contextLost)return!0;y.isContextLost()&&(F.contextLost=!0,F.mouseListener.enabled=!1,F.selection.object=null,F.oncontextloss&&F.oncontextloss())}F.mouseListener=u(r,function(t,r,n){if(!e){var i=z.length,a=E.length,o=b.object;b.distance=1/0,b.mouse[0]=r,b.mouse[1]=n,b.object=null,b.screen=null,b.dataCoordinate=b.dataPosition=null;var s=!1;if(t&&q)U=!0;else{U&&(I=!0),U=!1;for(var l=0;l<i;++l){var c=z[l].query(r,N[1]-n-1,F.pickRadius);if(c){if(c.distance>b.distance)continue;for(var u=0;u<a;++u){var f=E[u];if(C[u]===l){var h=f.pick(c);h&&(b.buttons=t,b.screen=c.coord,b.distance=c.distance,b.object=f,b.index=h.distance,b.dataPosition=h.position,b.dataCoordinate=h.dataCoordinate,b.data=h,s=!0)}}}}}o&&o!==b.object&&(o.highlight&&o.highlight(null),O=!0),b.object&&(b.object.highlight&&b.object.highlight(b.data),O=!0),(s=s||b.object!==o)&&F.onselect&&F.onselect(b),1&t&&!(1&q)&&F.onclick&&F.onclick(b),q=t}}),r.addEventListener(\"webglcontextlost\",H);var G=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],W=[G[0].slice(),G[1].slice()];function Y(){if(!H()){j();var t=F.camera.tick();R.view=F.camera.matrix,O=O||t,I=I||t,A.pixelRatio=F.pixelRatio,S.pixelRatio=F.pixelRatio;var e=E.length,r=G[0],n=G[1];r[0]=r[1]=r[2]=1/0,n[0]=n[1]=n[2]=-1/0;for(var i=0;i<e;++i){var o=E[i];o.pixelRatio=F.pixelRatio,o.axes=F.axes,O=O||!!o.dirty,I=I||!!o.dirty;var s=o.bounds;if(s)for(var l=s[0],u=s[1],h=0;h<3;++h)r[h]=Math.min(r[h],l[h]),n[h]=Math.max(n[h],u[h])}var p=F.bounds;if(F.autoBounds)for(var h=0;h<3;++h){if(n[h]<r[h])r[h]=-1,n[h]=1;else{r[h]===n[h]&&(r[h]-=1,n[h]+=1);var d=.05*(n[h]-r[h]);r[h]=r[h]-d,n[h]=n[h]+d}p[0][h]=r[h],p[1][h]=n[h]}for(var v=!1,h=0;h<3;++h)v=v||W[0][h]!==p[0][h]||W[1][h]!==p[1][h],W[0][h]=p[0][h],W[1][h]=p[1][h];if(I=I||v,O=O||v){if(v){for(var m=[0,0,0],i=0;i<3;++i)m[i]=g((p[1][i]-p[0][i])/10);A.autoTicks?A.update({bounds:p,tickSpacing:m}):A.update({bounds:p})}var x=y.drawingBufferWidth,k=y.drawingBufferHeight;B[0]=x,B[1]=k,N[0]=0|Math.max(x/F.pixelRatio,1),N[1]=0|Math.max(k/F.pixelRatio,1),f(P,F.fovy,x/k,F.zNear,F.zFar);for(var i=0;i<16;++i)D[i]=0;D[15]=1;for(var M=0,i=0;i<3;++i)M=Math.max(M,p[1][i]-p[0][i]);for(var i=0;i<3;++i)F.autoScale?D[5*i]=F.aspect[i]/(p[1][i]-p[0][i]):D[5*i]=1/M,F.autoCenter&&(D[12+i]=.5*-D[5*i]*(p[0][i]+p[1][i]));for(var i=0;i<e;++i){var o=E[i];o.axesBounds=p,F.clipToBounds&&(o.clipBounds=p)}b.object&&(F.snapToData?S.position=b.dataCoordinate:S.position=b.dataPosition,S.bounds=p),I&&(I=!1,function(){if(H())return;y.colorMask(!0,!0,!0,!0),y.depthMask(!0),y.disable(y.BLEND),y.enable(y.DEPTH_TEST);for(var t=E.length,e=z.length,r=0;r<e;++r){var n=z[r];n.shape=N,n.begin();for(var i=0;i<t;++i)if(C[i]===r){var a=E[i];a.drawPick&&(a.pixelRatio=1,a.drawPick(R))}n.end()}}()),F.axesPixels=a(F.axes,R,x,k),F.onrender&&F.onrender(),y.bindFramebuffer(y.FRAMEBUFFER,null),y.viewport(0,0,x,k);var T=F.clearColor;y.clearColor(T[0],T[1],T[2],T[3]),y.clear(y.COLOR_BUFFER_BIT|y.DEPTH_BUFFER_BIT),y.depthMask(!0),y.colorMask(!0,!0,!0,!0),y.enable(y.DEPTH_TEST),y.depthFunc(y.LEQUAL),y.disable(y.BLEND),y.disable(y.CULL_FACE);var L=!1;A.enable&&(L=L||A.isTransparent(),A.draw(R)),S.axes=A,b.object&&S.draw(R),y.disable(y.CULL_FACE);for(var i=0;i<e;++i){var o=E[i];o.axes=A,o.pixelRatio=F.pixelRatio,o.isOpaque&&o.isOpaque()&&o.draw(R),o.isTransparent&&o.isTransparent()&&(L=!0)}if(L){_.shape=B,_.bind(),y.clear(y.DEPTH_BUFFER_BIT),y.colorMask(!1,!1,!1,!1),y.depthMask(!0),y.depthFunc(y.LESS),A.enable&&A.isTransparent()&&A.drawTransparent(R);for(var i=0;i<e;++i){var o=E[i];o.isOpaque&&o.isOpaque()&&o.draw(R)}y.enable(y.BLEND),y.blendEquation(y.FUNC_ADD),y.blendFunc(y.ONE,y.ONE_MINUS_SRC_ALPHA),y.colorMask(!0,!0,!0,!0),y.depthMask(!1),y.clearColor(0,0,0,0),y.clear(y.COLOR_BUFFER_BIT),A.isTransparent()&&A.drawTransparent(R);for(var i=0;i<e;++i){var o=E[i];o.isTransparent&&o.isTransparent()&&o.drawTransparent(R)}y.bindFramebuffer(y.FRAMEBUFFER,null),y.blendFunc(y.ONE,y.ONE_MINUS_SRC_ALPHA),y.disable(y.DEPTH_TEST),w.bind(),_.color[0].bind(0),w.uniforms.accumBuffer=0,c(y),y.disable(y.BLEND)}O=!1;for(var i=0;i<e;++i)E[i].dirty=!1}}}return function t(){e||F.contextLost||(Y(),requestAnimationFrame(t))}(),F.redraw=function(){e||(O=!0,Y())},F};var n=t(\"3d-view-controls\"),i=t(\"gl-axes3d\"),a=t(\"gl-axes3d/properties\"),o=t(\"gl-spikes3d\"),s=t(\"gl-select-static\"),l=t(\"gl-fbo\"),c=t(\"a-big-triangle\"),u=t(\"mouse-change\"),f=t(\"gl-mat4/perspective\"),h=t(\"./lib/shader\"),p=t(\"is-mobile\")({tablet:!0});function d(){this.mouse=[-1,-1],this.screen=null,this.distance=1/0,this.index=null,this.dataCoordinate=null,this.dataPosition=null,this.object=null,this.data=null}function g(t){var e=Math.round(Math.log(Math.abs(t))/Math.log(10));if(e<0){var r=Math.round(Math.pow(10,-e));return Math.ceil(t*r)/r}if(e>0){r=Math.round(Math.pow(10,e));return Math.ceil(t/r)*r}return Math.ceil(t)}function v(t){return\"boolean\"!=typeof t||t}},{\"./lib/shader\":276,\"3d-view-controls\":44,\"a-big-triangle\":47,\"gl-axes3d\":222,\"gl-axes3d/properties\":229,\"gl-fbo\":239,\"gl-mat4/perspective\":257,\"gl-select-static\":287,\"gl-spikes3d\":297,\"is-mobile\":403,\"mouse-change\":418}],278:[function(t,e,r){var n=t(\"glslify\");r.pointVertex=n([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute vec2 position;\\n\\nuniform mat3 matrix;\\nuniform float pointSize;\\nuniform float pointCloud;\\n\\nhighp float rand(vec2 co) {\\n highp float a = 12.9898;\\n highp float b = 78.233;\\n highp float c = 43758.5453;\\n highp float d = dot(co.xy, vec2(a, b));\\n highp float e = mod(d, 3.14);\\n return fract(sin(e) * c);\\n}\\n\\nvoid main() {\\n vec3 hgPosition = matrix * vec3(position, 1);\\n gl_Position = vec4(hgPosition.xy, 0, hgPosition.z);\\n // if we don't jitter the point size a bit, overall point cloud\\n // saturation 'jumps' on zooming, which is disturbing and confusing\\n gl_PointSize = pointSize * ((19.5 + rand(position)) / 20.0);\\n if(pointCloud != 0.0) { // pointCloud is truthy\\n // get the same square surface as circle would be\\n gl_PointSize *= 0.886;\\n }\\n}\"]),r.pointFragment=n([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nuniform vec4 color, borderColor;\\nuniform float centerFraction;\\nuniform float pointCloud;\\n\\nvoid main() {\\n float radius;\\n vec4 baseColor;\\n if(pointCloud != 0.0) { // pointCloud is truthy\\n if(centerFraction == 1.0) {\\n gl_FragColor = color;\\n } else {\\n gl_FragColor = mix(borderColor, color, centerFraction);\\n }\\n } else {\\n radius = length(2.0 * gl_PointCoord.xy - 1.0);\\n if(radius > 1.0) {\\n discard;\\n }\\n baseColor = mix(borderColor, color, step(radius, centerFraction));\\n gl_FragColor = vec4(baseColor.rgb * baseColor.a, baseColor.a);\\n }\\n}\\n\"]),r.pickVertex=n([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute vec2 position;\\nattribute vec4 pickId;\\n\\nuniform mat3 matrix;\\nuniform float pointSize;\\nuniform vec4 pickOffset;\\n\\nvarying vec4 fragId;\\n\\nvoid main() {\\n vec3 hgPosition = matrix * vec3(position, 1);\\n gl_Position = vec4(hgPosition.xy, 0, hgPosition.z);\\n gl_PointSize = pointSize;\\n\\n vec4 id = pickId + pickOffset;\\n id.y += floor(id.x / 256.0);\\n id.x -= floor(id.x / 256.0) * 256.0;\\n\\n id.z += floor(id.y / 256.0);\\n id.y -= floor(id.y / 256.0) * 256.0;\\n\\n id.w += floor(id.z / 256.0);\\n id.z -= floor(id.z / 256.0) * 256.0;\\n\\n fragId = id;\\n}\\n\"]),r.pickFragment=n([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nvarying vec4 fragId;\\n\\nvoid main() {\\n float radius = length(2.0 * gl_PointCoord.xy - 1.0);\\n if(radius > 1.0) {\\n discard;\\n }\\n gl_FragColor = fragId / 255.0;\\n}\\n\"])},{glslify:392}],279:[function(t,e,r){\"use strict\";var n=t(\"gl-shader\"),i=t(\"gl-buffer\"),a=t(\"typedarray-pool\"),o=t(\"./lib/shader\");function s(t,e,r,n,i){this.plot=t,this.offsetBuffer=e,this.pickBuffer=r,this.shader=n,this.pickShader=i,this.sizeMin=.5,this.sizeMinCap=2,this.sizeMax=20,this.areaRatio=1,this.pointCount=0,this.color=[1,0,0,1],this.borderColor=[0,0,0,1],this.blend=!1,this.pickOffset=0,this.points=null}e.exports=function(t,e){var r=t.gl,a=i(r),l=i(r),c=n(r,o.pointVertex,o.pointFragment),u=n(r,o.pickVertex,o.pickFragment),f=new s(t,a,l,c,u);return f.update(e),t.addObject(f),f};var l,c,u=s.prototype;u.dispose=function(){this.shader.dispose(),this.pickShader.dispose(),this.offsetBuffer.dispose(),this.pickBuffer.dispose(),this.plot.removeObject(this)},u.update=function(t){var e;function r(e,r){return e in t?t[e]:r}t=t||{},this.sizeMin=r(\"sizeMin\",.5),this.sizeMax=r(\"sizeMax\",20),this.color=r(\"color\",[1,0,0,1]).slice(),this.areaRatio=r(\"areaRatio\",1),this.borderColor=r(\"borderColor\",[0,0,0,1]).slice(),this.blend=r(\"blend\",!1);var n=t.positions.length>>>1,i=t.positions instanceof Float32Array,o=t.idToIndex instanceof Int32Array&&t.idToIndex.length>=n,s=t.positions,l=i?s:a.mallocFloat32(s.length),c=o?t.idToIndex:a.mallocInt32(n);if(i||l.set(s),!o)for(l.set(s),e=0;e<n;e++)c[e]=e;this.points=s,this.offsetBuffer.update(l),this.pickBuffer.update(c),i||a.free(l),o||a.free(c),this.pointCount=n,this.pickOffset=0},u.unifiedDraw=(l=[1,0,0,0,1,0,0,0,1],c=[0,0,0,0],function(t){var e=void 0!==t,r=e?this.pickShader:this.shader,n=this.plot.gl,i=this.plot.dataBox;if(0===this.pointCount)return t;var a=i[2]-i[0],o=i[3]-i[1],s=function(t,e){var r,n=0,i=t.length>>>1;for(r=0;r<i;r++){var a=t[2*r],o=t[2*r+1];a>=e[0]&&a<=e[2]&&o>=e[1]&&o<=e[3]&&n++}return n}(this.points,i),u=this.plot.pickPixelRatio*Math.max(Math.min(this.sizeMinCap,this.sizeMin),Math.min(this.sizeMax,this.sizeMax/Math.pow(s,.33333)));l[0]=2/a,l[4]=2/o,l[6]=-2*i[0]/a-1,l[7]=-2*i[1]/o-1,this.offsetBuffer.bind(),r.bind(),r.attributes.position.pointer(),r.uniforms.matrix=l,r.uniforms.color=this.color,r.uniforms.borderColor=this.borderColor,r.uniforms.pointCloud=u<5,r.uniforms.pointSize=u,r.uniforms.centerFraction=Math.min(1,Math.max(0,Math.sqrt(1-this.areaRatio))),e&&(c[0]=255&t,c[1]=t>>8&255,c[2]=t>>16&255,c[3]=t>>24&255,this.pickBuffer.bind(),r.attributes.pickId.pointer(n.UNSIGNED_BYTE),r.uniforms.pickOffset=c,this.pickOffset=t);var f=n.getParameter(n.BLEND),h=n.getParameter(n.DITHER);return f&&!this.blend&&n.disable(n.BLEND),h&&n.disable(n.DITHER),n.drawArrays(n.POINTS,0,this.pointCount),f&&!this.blend&&n.enable(n.BLEND),h&&n.enable(n.DITHER),t+this.pointCount}),u.draw=u.unifiedDraw,u.drawPick=u.unifiedDraw,u.pick=function(t,e,r){var n=this.pickOffset,i=this.pointCount;if(r<n||r>=n+i)return null;var a=r-n,o=this.points;return{object:this,pointId:a,dataCoord:[o[2*a],o[2*a+1]]}}},{\"./lib/shader\":278,\"gl-buffer\":230,\"gl-shader\":288,\"typedarray-pool\":522}],280:[function(t,e,r){e.exports=function(t,e,r,n){var i,a,o,s,l,c=e[0],u=e[1],f=e[2],h=e[3],p=r[0],d=r[1],g=r[2],v=r[3];(a=c*p+u*d+f*g+h*v)<0&&(a=-a,p=-p,d=-d,g=-g,v=-v);1-a>1e-6?(i=Math.acos(a),o=Math.sin(i),s=Math.sin((1-n)*i)/o,l=Math.sin(n*i)/o):(s=1-n,l=n);return t[0]=s*c+l*p,t[1]=s*u+l*d,t[2]=s*f+l*g,t[3]=s*h+l*v,t}},{}],281:[function(t,e,r){\"use strict\";e.exports=function(t){return t||0===t?t.toString():\"\"}},{}],282:[function(t,e,r){\"use strict\";var n=t(\"vectorize-text\");e.exports=function(t,e){var r=i[e];r||(r=i[e]={});if(t in r)return r[t];for(var a=n(t,{textAlign:\"center\",textBaseline:\"middle\",lineHeight:1,font:e}),o=n(t,{triangles:!0,textAlign:\"center\",textBaseline:\"middle\",lineHeight:1,font:e}),s=[[1/0,1/0],[-1/0,-1/0]],l=0;l<a.positions.length;++l)for(var c=a.positions[l],u=0;u<2;++u)s[0][u]=Math.min(s[0][u],c[u]),s[1][u]=Math.max(s[1][u],c[u]);return r[t]=[o,a,s]};var i={}},{\"vectorize-text\":527}],283:[function(t,e,r){var n=t(\"gl-shader\"),i=t(\"glslify\"),a=i([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nbool outOfRange(float a, float b, float p) {\\n return ((p > max(a, b)) || \\n (p < min(a, b)));\\n}\\n\\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y));\\n}\\n\\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y) ||\\n outOfRange(a.z, b.z, p.z));\\n}\\n\\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\\n return outOfRange(a.xyz, b.xyz, p.xyz);\\n}\\n\\nattribute vec3 position;\\nattribute vec4 color;\\nattribute vec2 glyph;\\nattribute vec4 id;\\n\\nuniform vec4 highlightId;\\nuniform float highlightScale;\\nuniform mat4 model, view, projection;\\nuniform vec3 clipBounds[2];\\n\\nvarying vec4 interpColor;\\nvarying vec4 pickId;\\nvarying vec3 dataCoordinate;\\n\\nvoid main() {\\n if (outOfRange(clipBounds[0], clipBounds[1], position)) {\\n\\n gl_Position = vec4(0,0,0,0);\\n } else {\\n float scale = 1.0;\\n if(distance(highlightId, id) < 0.0001) {\\n scale = highlightScale;\\n }\\n\\n vec4 worldPosition = model * vec4(position, 1);\\n vec4 viewPosition = view * worldPosition;\\n viewPosition = viewPosition / viewPosition.w;\\n vec4 clipPosition = projection * (viewPosition + scale * vec4(glyph.x, -glyph.y, 0, 0));\\n\\n gl_Position = clipPosition;\\n interpColor = color;\\n pickId = id;\\n dataCoordinate = position;\\n }\\n}\"]),o=i([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nbool outOfRange(float a, float b, float p) {\\n return ((p > max(a, b)) || \\n (p < min(a, b)));\\n}\\n\\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y));\\n}\\n\\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y) ||\\n outOfRange(a.z, b.z, p.z));\\n}\\n\\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\\n return outOfRange(a.xyz, b.xyz, p.xyz);\\n}\\n\\nattribute vec3 position;\\nattribute vec4 color;\\nattribute vec2 glyph;\\nattribute vec4 id;\\n\\nuniform mat4 model, view, projection;\\nuniform vec2 screenSize;\\nuniform vec3 clipBounds[2];\\nuniform float highlightScale, pixelRatio;\\nuniform vec4 highlightId;\\n\\nvarying vec4 interpColor;\\nvarying vec4 pickId;\\nvarying vec3 dataCoordinate;\\n\\nvoid main() {\\n if (outOfRange(clipBounds[0], clipBounds[1], position)) {\\n\\n gl_Position = vec4(0,0,0,0);\\n } else {\\n float scale = pixelRatio;\\n if(distance(highlightId.bgr, id.bgr) < 0.001) {\\n scale *= highlightScale;\\n }\\n\\n vec4 worldPosition = model * vec4(position, 1.0);\\n vec4 viewPosition = view * worldPosition;\\n vec4 clipPosition = projection * viewPosition;\\n clipPosition /= clipPosition.w;\\n\\n gl_Position = clipPosition + vec4(screenSize * scale * vec2(glyph.x, -glyph.y), 0.0, 0.0);\\n interpColor = color;\\n pickId = id;\\n dataCoordinate = position;\\n }\\n}\"]),s=i([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nbool outOfRange(float a, float b, float p) {\\n return ((p > max(a, b)) || \\n (p < min(a, b)));\\n}\\n\\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y));\\n}\\n\\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y) ||\\n outOfRange(a.z, b.z, p.z));\\n}\\n\\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\\n return outOfRange(a.xyz, b.xyz, p.xyz);\\n}\\n\\nattribute vec3 position;\\nattribute vec4 color;\\nattribute vec2 glyph;\\nattribute vec4 id;\\n\\nuniform float highlightScale;\\nuniform vec4 highlightId;\\nuniform vec3 axes[2];\\nuniform mat4 model, view, projection;\\nuniform vec2 screenSize;\\nuniform vec3 clipBounds[2];\\nuniform float scale, pixelRatio;\\n\\nvarying vec4 interpColor;\\nvarying vec4 pickId;\\nvarying vec3 dataCoordinate;\\n\\nvoid main() {\\n if (outOfRange(clipBounds[0], clipBounds[1], position)) {\\n\\n gl_Position = vec4(0,0,0,0);\\n } else {\\n float lscale = pixelRatio * scale;\\n if(distance(highlightId, id) < 0.0001) {\\n lscale *= highlightScale;\\n }\\n\\n vec4 clipCenter = projection * view * model * vec4(position, 1);\\n vec3 dataPosition = position + 0.5*lscale*(axes[0] * glyph.x + axes[1] * glyph.y) * clipCenter.w * screenSize.y;\\n vec4 clipPosition = projection * view * model * vec4(dataPosition, 1);\\n\\n gl_Position = clipPosition;\\n interpColor = color;\\n pickId = id;\\n dataCoordinate = dataPosition;\\n }\\n}\\n\"]),l=i([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nbool outOfRange(float a, float b, float p) {\\n return ((p > max(a, b)) || \\n (p < min(a, b)));\\n}\\n\\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y));\\n}\\n\\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y) ||\\n outOfRange(a.z, b.z, p.z));\\n}\\n\\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\\n return outOfRange(a.xyz, b.xyz, p.xyz);\\n}\\n\\nuniform vec3 fragClipBounds[2];\\nuniform float opacity;\\n\\nvarying vec4 interpColor;\\nvarying vec4 pickId;\\nvarying vec3 dataCoordinate;\\n\\nvoid main() {\\n if (outOfRange(fragClipBounds[0], fragClipBounds[1], dataCoordinate)) discard;\\n\\n gl_FragColor = interpColor * opacity;\\n}\\n\"]),c=i([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nbool outOfRange(float a, float b, float p) {\\n return ((p > max(a, b)) || \\n (p < min(a, b)));\\n}\\n\\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y));\\n}\\n\\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y) ||\\n outOfRange(a.z, b.z, p.z));\\n}\\n\\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\\n return outOfRange(a.xyz, b.xyz, p.xyz);\\n}\\n\\nuniform vec3 fragClipBounds[2];\\nuniform float pickGroup;\\n\\nvarying vec4 pickId;\\nvarying vec3 dataCoordinate;\\n\\nvoid main() {\\n if (outOfRange(fragClipBounds[0], fragClipBounds[1], dataCoordinate)) discard;\\n\\n gl_FragColor = vec4(pickGroup, pickId.bgr);\\n}\"]),u=[{name:\"position\",type:\"vec3\"},{name:\"color\",type:\"vec4\"},{name:\"glyph\",type:\"vec2\"},{name:\"id\",type:\"vec4\"}],f={vertex:a,fragment:l,attributes:u},h={vertex:o,fragment:l,attributes:u},p={vertex:s,fragment:l,attributes:u},d={vertex:a,fragment:c,attributes:u},g={vertex:o,fragment:c,attributes:u},v={vertex:s,fragment:c,attributes:u};function m(t,e){var r=n(t,e),i=r.attributes;return i.position.location=0,i.color.location=1,i.glyph.location=2,i.id.location=3,r}r.createPerspective=function(t){return m(t,f)},r.createOrtho=function(t){return m(t,h)},r.createProject=function(t){return m(t,p)},r.createPickPerspective=function(t){return m(t,d)},r.createPickOrtho=function(t){return m(t,g)},r.createPickProject=function(t){return m(t,v)}},{\"gl-shader\":288,glslify:392}],284:[function(t,e,r){\"use strict\";var n=t(\"is-string-blank\"),i=t(\"gl-buffer\"),a=t(\"gl-vao\"),o=t(\"typedarray-pool\"),s=t(\"gl-mat4/multiply\"),l=t(\"./lib/shaders\"),c=t(\"./lib/glyphs\"),u=t(\"./lib/get-simple-string\"),f=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function h(t,e){var r=t[0],n=t[1],i=t[2],a=t[3];return t[0]=e[0]*r+e[4]*n+e[8]*i+e[12]*a,t[1]=e[1]*r+e[5]*n+e[9]*i+e[13]*a,t[2]=e[2]*r+e[6]*n+e[10]*i+e[14]*a,t[3]=e[3]*r+e[7]*n+e[11]*i+e[15]*a,t}function p(t,e,r,n){return h(n,n),h(n,n),h(n,n)}function d(t,e){this.index=t,this.dataCoordinate=this.position=e}function g(t,e,r,n,i,a,o,s,l,c,u,f){this.gl=t,this.pixelRatio=1,this.shader=e,this.orthoShader=r,this.projectShader=n,this.pointBuffer=i,this.colorBuffer=a,this.glyphBuffer=o,this.idBuffer=s,this.vao=l,this.vertexCount=0,this.lineVertexCount=0,this.opacity=1,this.lineWidth=0,this.projectScale=[2/3,2/3,2/3],this.projectOpacity=[1,1,1],this.pickId=0,this.pickPerspectiveShader=c,this.pickOrthoShader=u,this.pickProjectShader=f,this.points=[],this._selectResult=new d(0,[0,0,0]),this.useOrtho=!0,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.axesProject=[!0,!0,!0],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.highlightId=[1,1,1,1],this.highlightScale=2,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.dirty=!0}e.exports=function(t){var e=t.gl,r=l.createPerspective(e),n=l.createOrtho(e),o=l.createProject(e),s=l.createPickPerspective(e),c=l.createPickOrtho(e),u=l.createPickProject(e),f=i(e),h=i(e),p=i(e),d=i(e),v=a(e,[{buffer:f,size:3,type:e.FLOAT},{buffer:h,size:4,type:e.FLOAT},{buffer:p,size:2,type:e.FLOAT},{buffer:d,size:4,type:e.UNSIGNED_BYTE,normalized:!0}]),m=new g(e,r,n,o,f,h,p,d,v,s,c,u);return m.update(t),m};var v=g.prototype;v.pickSlots=1,v.setPickBase=function(t){this.pickId=t},v.isTransparent=function(){if(this.opacity<1)return!0;for(var t=0;t<3;++t)if(this.axesProject[t]&&this.projectOpacity[t]<1)return!0;return!1},v.isOpaque=function(){if(this.opacity>=1)return!0;for(var t=0;t<3;++t)if(this.axesProject[t]&&this.projectOpacity[t]>=1)return!0;return!1};var m=[0,0],y=[0,0,0],x=[0,0,0],b=[0,0,0,1],_=[0,0,0,1],w=f.slice(),k=[0,0,0],M=[[0,0,0],[0,0,0]];function A(t){return t[0]=t[1]=t[2]=0,t}function T(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=1,t}function S(t,e,r,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[r]=n,t}function E(t,e,r,n,i){var a,o=e.axesProject,l=e.gl,c=t.uniforms,u=r.model||f,h=r.view||f,d=r.projection||f,g=e.axesBounds,v=function(t){for(var e=M,r=0;r<2;++r)for(var n=0;n<3;++n)e[r][n]=Math.max(Math.min(t[r][n],1e8),-1e8);return e}(e.clipBounds);a=e.axes&&e.axes.lastCubeProps?e.axes.lastCubeProps.axis:[1,1,1],m[0]=2/l.drawingBufferWidth,m[1]=2/l.drawingBufferHeight,t.bind(),c.view=h,c.projection=d,c.screenSize=m,c.highlightId=e.highlightId,c.highlightScale=e.highlightScale,c.clipBounds=v,c.pickGroup=e.pickId/255,c.pixelRatio=e.pixelRatio;for(var E=0;E<3;++E)if(o[E]&&e.projectOpacity[E]<1===n){c.scale=e.projectScale[E],c.opacity=e.projectOpacity[E];for(var C=w,L=0;L<16;++L)C[L]=0;for(L=0;L<4;++L)C[5*L]=1;C[5*E]=0,a[E]<0?C[12+E]=g[0][E]:C[12+E]=g[1][E],s(C,u,C),c.model=C;var z=(E+1)%3,O=(E+2)%3,I=A(y),P=A(x);I[z]=1,P[O]=1;var D=p(0,0,0,T(b,I)),R=p(0,0,0,T(_,P));if(Math.abs(D[1])>Math.abs(R[1])){var B=D;D=R,R=B,B=I,I=P,P=B;var F=z;z=O,O=F}D[0]<0&&(I[z]=-1),R[1]>0&&(P[O]=-1);var N=0,j=0;for(L=0;L<4;++L)N+=Math.pow(u[4*z+L],2),j+=Math.pow(u[4*O+L],2);I[z]/=Math.sqrt(N),P[O]/=Math.sqrt(j),c.axes[0]=I,c.axes[1]=P,c.fragClipBounds[0]=S(k,v[0],E,-1e8),c.fragClipBounds[1]=S(k,v[1],E,1e8),e.vao.draw(l.TRIANGLES,e.vertexCount),e.lineWidth>0&&(l.lineWidth(e.lineWidth),e.vao.draw(l.LINES,e.lineVertexCount,e.vertexCount))}}var C=[[-1e8,-1e8,-1e8],[1e8,1e8,1e8]];function L(t,e,r,n,i,a){var o=r.gl;if(r.vao.bind(),i===r.opacity<1||a){t.bind();var s=t.uniforms;s.model=n.model||f,s.view=n.view||f,s.projection=n.projection||f,m[0]=2/o.drawingBufferWidth,m[1]=2/o.drawingBufferHeight,s.screenSize=m,s.highlightId=r.highlightId,s.highlightScale=r.highlightScale,s.fragClipBounds=C,s.clipBounds=r.axes.bounds,s.opacity=r.opacity,s.pickGroup=r.pickId/255,s.pixelRatio=r.pixelRatio,r.vao.draw(o.TRIANGLES,r.vertexCount),r.lineWidth>0&&(o.lineWidth(r.lineWidth),r.vao.draw(o.LINES,r.lineVertexCount,r.vertexCount))}E(e,r,n,i),r.vao.unbind()}function z(t,e,r){var i;i=Array.isArray(t)?e<t.length?t[e]:void 0:t,i=u(i);var a=!0;n(i)&&(i=\"\\u25bc\",a=!1);var o=c(i,r);return{mesh:o[0],lines:o[1],bounds:o[2],visible:a}}v.draw=function(t){L(this.useOrtho?this.orthoShader:this.shader,this.projectShader,this,t,!1,!1)},v.drawTransparent=function(t){L(this.useOrtho?this.orthoShader:this.shader,this.projectShader,this,t,!0,!1)},v.drawPick=function(t){L(this.useOrtho?this.pickOrthoShader:this.pickPerspectiveShader,this.pickProjectShader,this,t,!1,!0)},v.pick=function(t){if(!t)return null;if(t.id!==this.pickId)return null;var e=t.value[2]+(t.value[1]<<8)+(t.value[0]<<16);if(e>=this.pointCount||e<0)return null;var r=this.points[e],n=this._selectResult;n.index=e;for(var i=0;i<3;++i)n.position[i]=n.dataCoordinate[i]=r[i];return n},v.highlight=function(t){if(t){var e=t.index,r=255&e,n=e>>8&255,i=e>>16&255;this.highlightId=[r/255,n/255,i/255,0]}else this.highlightId=[1,1,1,1]},v.update=function(t){if(\"perspective\"in(t=t||{})&&(this.useOrtho=!t.perspective),\"orthographic\"in t&&(this.useOrtho=!!t.orthographic),\"lineWidth\"in t&&(this.lineWidth=t.lineWidth),\"project\"in t)if(Array.isArray(t.project))this.axesProject=t.project;else{var e=!!t.project;this.axesProject=[e,e,e]}if(\"projectScale\"in t)if(Array.isArray(t.projectScale))this.projectScale=t.projectScale.slice();else{var r=+t.projectScale;this.projectScale=[r,r,r]}if(\"projectOpacity\"in t)if(Array.isArray(t.projectOpacity))this.projectOpacity=t.projectOpacity.slice();else{r=+t.projectOpacity;this.projectOpacity=[r,r,r]}\"opacity\"in t&&(this.opacity=t.opacity),this.dirty=!0;var n=t.position,i=t.font||\"normal\",a=t.alignment||[0,0],s=[1/0,1/0,1/0],l=[-1/0,-1/0,-1/0],c=t.glyph,u=t.color,f=t.size,h=t.angle,p=t.lineColor,d=-1,g=0,v=0,m=0;if(n.length){m=n.length;t:for(var y=0;y<m;++y){for(var x=n[y],b=0;b<3;++b)if(isNaN(x[b])||!isFinite(x[b]))continue t;var _=(R=z(c,y,i)).mesh,w=R.lines,k=R.bounds;g+=3*_.cells.length,v+=2*w.edges.length}}var M=g+v,A=o.mallocFloat(3*M),T=o.mallocFloat(4*M),S=o.mallocFloat(2*M),E=o.mallocUint32(M);if(M>0){var C=0,L=g,O=[0,0,0,1],I=[0,0,0,1],P=Array.isArray(u)&&Array.isArray(u[0]),D=Array.isArray(p)&&Array.isArray(p[0]);t:for(y=0;y<m;++y){d+=1;for(x=n[y],b=0;b<3;++b){if(isNaN(x[b])||!isFinite(x[b]))continue t;l[b]=Math.max(l[b],x[b]),s[b]=Math.min(s[b],x[b])}_=(R=z(c,y,i)).mesh,w=R.lines,k=R.bounds;var R,B=R.visible;if(B)if(Array.isArray(u)){if(3===(F=P?y<u.length?u[y]:[0,0,0,0]:u).length){for(b=0;b<3;++b)O[b]=F[b];O[3]=1}else if(4===F.length)for(b=0;b<4;++b)O[b]=F[b]}else O[0]=O[1]=O[2]=0,O[3]=1;else O=[1,1,1,0];if(B)if(Array.isArray(p)){var F;if(3===(F=D?y<p.length?p[y]:[0,0,0,0]:p).length){for(b=0;b<3;++b)I[b]=F[b];I[b]=1}else if(4===F.length)for(b=0;b<4;++b)I[b]=F[b]}else I[0]=I[1]=I[2]=0,I[3]=1;else I=[1,1,1,0];var N=.5;B?Array.isArray(f)?N=y<f.length?+f[y]:12:f?N=+f:this.useOrtho&&(N=12):N=0;var j=0;Array.isArray(h)?j=y<h.length?+h[y]:0:h&&(j=+h);var V=Math.cos(j),U=Math.sin(j);for(x=n[y],b=0;b<3;++b)l[b]=Math.max(l[b],x[b]),s[b]=Math.min(s[b],x[b]);var q=[a[0],a[1]];for(b=0;b<2;++b)a[b]>0?q[b]*=1-k[0][b]:a[b]<0&&(q[b]*=1+k[1][b]);var H=_.cells||[],G=_.positions||[];for(b=0;b<H.length;++b)for(var W=H[b],Y=0;Y<3;++Y){for(var X=0;X<3;++X)A[3*C+X]=x[X];for(X=0;X<4;++X)T[4*C+X]=O[X];E[C]=d;var Z=G[W[Y]];S[2*C]=N*(V*Z[0]-U*Z[1]+q[0]),S[2*C+1]=N*(U*Z[0]+V*Z[1]+q[1]),C+=1}for(H=w.edges,G=w.positions,b=0;b<H.length;++b)for(W=H[b],Y=0;Y<2;++Y){for(X=0;X<3;++X)A[3*L+X]=x[X];for(X=0;X<4;++X)T[4*L+X]=I[X];E[L]=d;Z=G[W[Y]];S[2*L]=N*(V*Z[0]-U*Z[1]+q[0]),S[2*L+1]=N*(U*Z[0]+V*Z[1]+q[1]),L+=1}}}this.bounds=[s,l],this.points=n,this.pointCount=n.length,this.vertexCount=g,this.lineVertexCount=v,this.pointBuffer.update(A),this.colorBuffer.update(T),this.glyphBuffer.update(S),this.idBuffer.update(E),o.free(A),o.free(T),o.free(S),o.free(E)},v.dispose=function(){this.shader.dispose(),this.orthoShader.dispose(),this.pickPerspectiveShader.dispose(),this.pickOrthoShader.dispose(),this.vao.dispose(),this.pointBuffer.dispose(),this.colorBuffer.dispose(),this.glyphBuffer.dispose(),this.idBuffer.dispose()}},{\"./lib/get-simple-string\":281,\"./lib/glyphs\":282,\"./lib/shaders\":283,\"gl-buffer\":230,\"gl-mat4/multiply\":256,\"gl-vao\":310,\"is-string-blank\":406,\"typedarray-pool\":522}],285:[function(t,e,r){\"use strict\";var n=t(\"glslify\");r.boxVertex=n([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute vec2 vertex;\\n\\nuniform vec2 cornerA, cornerB;\\n\\nvoid main() {\\n gl_Position = vec4(mix(cornerA, cornerB, vertex), 0, 1);\\n}\\n\"]),r.boxFragment=n([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nuniform vec4 color;\\n\\nvoid main() {\\n gl_FragColor = color;\\n}\\n\"])},{glslify:392}],286:[function(t,e,r){\"use strict\";var n=t(\"gl-shader\"),i=t(\"gl-buffer\"),a=t(\"./lib/shaders\");function o(t,e,r){this.plot=t,this.boxBuffer=e,this.boxShader=r,this.enabled=!0,this.selectBox=[1/0,1/0,-1/0,-1/0],this.borderColor=[0,0,0,1],this.innerFill=!1,this.innerColor=[0,0,0,.25],this.outerFill=!0,this.outerColor=[0,0,0,.5],this.borderWidth=10}e.exports=function(t,e){var r=t.gl,s=i(r,[0,0,0,1,1,0,1,1]),l=n(r,a.boxVertex,a.boxFragment),c=new o(t,s,l);return c.update(e),t.addOverlay(c),c};var s=o.prototype;s.draw=function(){if(this.enabled){var t=this.plot,e=this.selectBox,r=this.borderWidth,n=(this.innerFill,this.innerColor),i=(this.outerFill,this.outerColor),a=this.borderColor,o=t.box,s=t.screenBox,l=t.dataBox,c=t.viewBox,u=t.pixelRatio,f=(e[0]-l[0])*(c[2]-c[0])/(l[2]-l[0])+c[0],h=(e[1]-l[1])*(c[3]-c[1])/(l[3]-l[1])+c[1],p=(e[2]-l[0])*(c[2]-c[0])/(l[2]-l[0])+c[0],d=(e[3]-l[1])*(c[3]-c[1])/(l[3]-l[1])+c[1];if(f=Math.max(f,c[0]),h=Math.max(h,c[1]),p=Math.min(p,c[2]),d=Math.min(d,c[3]),!(p<f||d<h)){o.bind();var g=s[2]-s[0],v=s[3]-s[1];if(this.outerFill&&(o.drawBox(0,0,g,h,i),o.drawBox(0,h,f,d,i),o.drawBox(0,d,g,v,i),o.drawBox(p,h,g,d,i)),this.innerFill&&o.drawBox(f,h,p,d,n),r>0){var m=r*u;o.drawBox(f-m,h-m,p+m,h+m,a),o.drawBox(f-m,d-m,p+m,d+m,a),o.drawBox(f-m,h-m,f+m,d+m,a),o.drawBox(p-m,h-m,p+m,d+m,a)}}}},s.update=function(t){t=t||{},this.innerFill=!!t.innerFill,this.outerFill=!!t.outerFill,this.innerColor=(t.innerColor||[0,0,0,.5]).slice(),this.outerColor=(t.outerColor||[0,0,0,.5]).slice(),this.borderColor=(t.borderColor||[0,0,0,1]).slice(),this.borderWidth=t.borderWidth||0,this.selectBox=(t.selectBox||this.selectBox).slice()},s.dispose=function(){this.boxBuffer.dispose(),this.boxShader.dispose(),this.plot.removeOverlay(this)}},{\"./lib/shaders\":285,\"gl-buffer\":230,\"gl-shader\":288}],287:[function(t,e,r){\"use strict\";e.exports=function(t,e){var r=n(t,e),a=i.mallocUint8(e[0]*e[1]*4);return new c(t,r,a)};var n=t(\"gl-fbo\"),i=t(\"typedarray-pool\"),a=t(\"ndarray\"),o=t(\"bit-twiddle\").nextPow2,s=t(\"cwise/lib/wrapper\")({args:[\"array\",{offset:[0,0,1],array:0},{offset:[0,0,2],array:0},{offset:[0,0,3],array:0},\"scalar\",\"scalar\",\"index\"],pre:{body:\"{this_closestD2=1e8,this_closestX=-1,this_closestY=-1}\",args:[],thisVars:[\"this_closestD2\",\"this_closestX\",\"this_closestY\"],localVars:[]},body:{body:\"{if(_inline_16_arg0_<255||_inline_16_arg1_<255||_inline_16_arg2_<255||_inline_16_arg3_<255){var _inline_16_l=_inline_16_arg4_-_inline_16_arg6_[0],_inline_16_a=_inline_16_arg5_-_inline_16_arg6_[1],_inline_16_f=_inline_16_l*_inline_16_l+_inline_16_a*_inline_16_a;_inline_16_f<this_closestD2&&(this_closestD2=_inline_16_f,this_closestX=_inline_16_arg6_[0],this_closestY=_inline_16_arg6_[1])}}\",args:[{name:\"_inline_16_arg0_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_16_arg1_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_16_arg2_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_16_arg3_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_16_arg4_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_16_arg5_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_16_arg6_\",lvalue:!1,rvalue:!0,count:4}],thisVars:[\"this_closestD2\",\"this_closestX\",\"this_closestY\"],localVars:[\"_inline_16_a\",\"_inline_16_f\",\"_inline_16_l\"]},post:{body:\"{return[this_closestX,this_closestY,this_closestD2]}\",args:[],thisVars:[\"this_closestD2\",\"this_closestX\",\"this_closestY\"],localVars:[]},debug:!1,funcName:\"cwise\",blockSize:64});function l(t,e,r,n,i){this.coord=[t,e],this.id=r,this.value=n,this.distance=i}function c(t,e,r){this.gl=t,this.fbo=e,this.buffer=r,this._readTimeout=null;var n=this;this._readCallback=function(){n.gl&&(e.bind(),t.readPixels(0,0,e.shape[0],e.shape[1],t.RGBA,t.UNSIGNED_BYTE,n.buffer),n._readTimeout=null)}}var u=c.prototype;Object.defineProperty(u,\"shape\",{get:function(){return this.gl?this.fbo.shape.slice():[0,0]},set:function(t){if(this.gl){this.fbo.shape=t;var e=this.fbo.shape[0],r=this.fbo.shape[1];if(r*e*4>this.buffer.length){i.free(this.buffer);for(var n=this.buffer=i.mallocUint8(o(r*e*4)),a=0;a<r*e*4;++a)n[a]=255}return t}}}),u.begin=function(){var t=this.gl;this.shape;t&&(this.fbo.bind(),t.clearColor(1,1,1,1),t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT))},u.end=function(){var t=this.gl;t&&(t.bindFramebuffer(t.FRAMEBUFFER,null),this._readTimeout||clearTimeout(this._readTimeout),this._readTimeout=setTimeout(this._readCallback,1))},u.query=function(t,e,r){if(!this.gl)return null;var n=this.fbo.shape.slice();t|=0,e|=0,\"number\"!=typeof r&&(r=1);var i=0|Math.min(Math.max(t-r,0),n[0]),o=0|Math.min(Math.max(t+r,0),n[0]),c=0|Math.min(Math.max(e-r,0),n[1]),u=0|Math.min(Math.max(e+r,0),n[1]);if(o<=i||u<=c)return null;var f=[o-i,u-c],h=a(this.buffer,[f[0],f[1],4],[4,4*n[0],1],4*(i+n[0]*c)),p=s(h.hi(f[0],f[1],1),r,r),d=p[0],g=p[1];return d<0||Math.pow(this.radius,2)<p[2]?null:new l(d+i|0,g+c|0,h.get(d,g,0),[h.get(d,g,1),h.get(d,g,2),h.get(d,g,3)],Math.sqrt(p[2]))},u.dispose=function(){this.gl&&(this.fbo.dispose(),i.free(this.buffer),this.gl=null,this._readTimeout&&clearTimeout(this._readTimeout))}},{\"bit-twiddle\":80,\"cwise/lib/wrapper\":137,\"gl-fbo\":239,ndarray:433,\"typedarray-pool\":522}],288:[function(t,e,r){\"use strict\";var n=t(\"./lib/create-uniforms\"),i=t(\"./lib/create-attributes\"),a=t(\"./lib/reflect\"),o=t(\"./lib/shader-cache\"),s=t(\"./lib/runtime-reflect\"),l=t(\"./lib/GLError\");function c(t){this.gl=t,this.gl.lastAttribCount=0,this._vref=this._fref=this._relink=this.vertShader=this.fragShader=this.program=this.attributes=this.uniforms=this.types=null}var u=c.prototype;function f(t,e){return t.name<e.name?-1:1}u.bind=function(){var t;this.program||this._relink();var e=this.gl.getProgramParameter(this.program,this.gl.ACTIVE_ATTRIBUTES),r=this.gl.lastAttribCount;if(e>r)for(t=r;t<e;t++)this.gl.enableVertexAttribArray(t);else if(r>e)for(t=e;t<r;t++)this.gl.disableVertexAttribArray(t);this.gl.lastAttribCount=e,this.gl.useProgram(this.program)},u.dispose=function(){for(var t=this.gl.lastAttribCount,e=0;e<t;e++)this.gl.disableVertexAttribArray(e);this.gl.lastAttribCount=0,this._fref&&this._fref.dispose(),this._vref&&this._vref.dispose(),this.attributes=this.types=this.vertShader=this.fragShader=this.program=this._relink=this._fref=this._vref=null},u.update=function(t,e,r,c){if(!e||1===arguments.length){var u=t;t=u.vertex,e=u.fragment,r=u.uniforms,c=u.attributes}var h=this,p=h.gl,d=h._vref;h._vref=o.shader(p,p.VERTEX_SHADER,t),d&&d.dispose(),h.vertShader=h._vref.shader;var g=this._fref;if(h._fref=o.shader(p,p.FRAGMENT_SHADER,e),g&&g.dispose(),h.fragShader=h._fref.shader,!r||!c){var v=p.createProgram();if(p.attachShader(v,h.fragShader),p.attachShader(v,h.vertShader),p.linkProgram(v),!p.getProgramParameter(v,p.LINK_STATUS)){var m=p.getProgramInfoLog(v);throw new l(m,\"Error linking program:\"+m)}r=r||s.uniforms(p,v),c=c||s.attributes(p,v),p.deleteProgram(v)}(c=c.slice()).sort(f);var y,x=[],b=[],_=[];for(y=0;y<c.length;++y){var w=c[y];if(w.type.indexOf(\"mat\")>=0){for(var k=0|w.type.charAt(w.type.length-1),M=new Array(k),A=0;A<k;++A)M[A]=_.length,b.push(w.name+\"[\"+A+\"]\"),\"number\"==typeof w.location?_.push(w.location+A):Array.isArray(w.location)&&w.location.length===k&&\"number\"==typeof w.location[A]?_.push(0|w.location[A]):_.push(-1);x.push({name:w.name,type:w.type,locations:M})}else x.push({name:w.name,type:w.type,locations:[_.length]}),b.push(w.name),\"number\"==typeof w.location?_.push(0|w.location):_.push(-1)}var T=0;for(y=0;y<_.length;++y)if(_[y]<0){for(;_.indexOf(T)>=0;)T+=1;_[y]=T}var S=new Array(r.length);function E(){h.program=o.program(p,h._vref,h._fref,b,_);for(var t=0;t<r.length;++t)S[t]=p.getUniformLocation(h.program,r[t].name)}E(),h._relink=E,h.types={uniforms:a(r),attributes:a(c)},h.attributes=i(p,h,x,_),Object.defineProperty(h,\"uniforms\",n(p,h,r,S))},e.exports=function(t,e,r,n,i){var a=new c(t);return a.update(e,r,n,i),a}},{\"./lib/GLError\":289,\"./lib/create-attributes\":290,\"./lib/create-uniforms\":291,\"./lib/reflect\":292,\"./lib/runtime-reflect\":293,\"./lib/shader-cache\":294}],289:[function(t,e,r){function n(t,e,r){this.shortMessage=e||\"\",this.longMessage=r||\"\",this.rawError=t||\"\",this.message=\"gl-shader: \"+(e||t||\"\")+(r?\"\\n\"+r:\"\"),this.stack=(new Error).stack}n.prototype=new Error,n.prototype.name=\"GLError\",n.prototype.constructor=n,e.exports=n},{}],290:[function(t,e,r){\"use strict\";e.exports=function(t,e,r,i){for(var a={},l=0,c=r.length;l<c;++l){var u=r[l],f=u.name,h=u.type,p=u.locations;switch(h){case\"bool\":case\"int\":case\"float\":o(t,e,p[0],i,1,a,f);break;default:if(h.indexOf(\"vec\")>=0){var d=h.charCodeAt(h.length-1)-48;if(d<2||d>4)throw new n(\"\",\"Invalid data type for attribute \"+f+\": \"+h);o(t,e,p[0],i,d,a,f)}else{if(!(h.indexOf(\"mat\")>=0))throw new n(\"\",\"Unknown data type for attribute \"+f+\": \"+h);var d=h.charCodeAt(h.length-1)-48;if(d<2||d>4)throw new n(\"\",\"Invalid data type for attribute \"+f+\": \"+h);s(t,e,p,i,d,a,f)}}}return a};var n=t(\"./GLError\");function i(t,e,r,n,i,a){this._gl=t,this._wrapper=e,this._index=r,this._locations=n,this._dimension=i,this._constFunc=a}var a=i.prototype;function o(t,e,r,n,a,o,s){for(var l=[\"gl\",\"v\"],c=[],u=0;u<a;++u)l.push(\"x\"+u),c.push(\"x\"+u);l.push(\"if(x0.length===void 0){return gl.vertexAttrib\"+a+\"f(v,\"+c.join()+\")}else{return gl.vertexAttrib\"+a+\"fv(v,x0)}\");var f=Function.apply(null,l),h=new i(t,e,r,n,a,f);Object.defineProperty(o,s,{set:function(e){return t.disableVertexAttribArray(n[r]),f(t,n[r],e),e},get:function(){return h},enumerable:!0})}function s(t,e,r,n,i,a,s){for(var l=new Array(i),c=new Array(i),u=0;u<i;++u)o(t,e,r[u],n,i,l,u),c[u]=l[u];Object.defineProperty(l,\"location\",{set:function(t){if(Array.isArray(t))for(var e=0;e<i;++e)c[e].location=t[e];else for(e=0;e<i;++e)c[e].location=t+e;return t},get:function(){for(var t=new Array(i),e=0;e<i;++e)t[e]=n[r[e]];return t},enumerable:!0}),l.pointer=function(e,a,o,s){e=e||t.FLOAT,a=!!a,o=o||i*i,s=s||0;for(var l=0;l<i;++l){var c=n[r[l]];t.vertexAttribPointer(c,i,e,a,o,s+l*i),t.enableVertexAttribArray(c)}};var f=new Array(i),h=t[\"vertexAttrib\"+i+\"fv\"];Object.defineProperty(a,s,{set:function(e){for(var a=0;a<i;++a){var o=n[r[a]];if(t.disableVertexAttribArray(o),Array.isArray(e[0]))h.call(t,o,e[a]);else{for(var s=0;s<i;++s)f[s]=e[i*a+s];h.call(t,o,f)}}return e},get:function(){return l},enumerable:!0})}a.pointer=function(t,e,r,n){var i=this._gl,a=this._locations[this._index];i.vertexAttribPointer(a,this._dimension,t||i.FLOAT,!!e,r||0,n||0),i.enableVertexAttribArray(a)},a.set=function(t,e,r,n){return this._constFunc(this._locations[this._index],t,e,r,n)},Object.defineProperty(a,\"location\",{get:function(){return this._locations[this._index]},set:function(t){return t!==this._locations[this._index]&&(this._locations[this._index]=0|t,this._wrapper.program=null),0|t}})},{\"./GLError\":289}],291:[function(t,e,r){\"use strict\";var n=t(\"./reflect\"),i=t(\"./GLError\");function a(t){return new Function(\"y\",\"return function(){return y}\")(t)}function o(t,e){for(var r=new Array(t),n=0;n<t;++n)r[n]=e;return r}e.exports=function(t,e,r,s){function l(t,e,r){switch(r){case\"bool\":case\"int\":case\"sampler2D\":case\"samplerCube\":return\"gl.uniform1i(locations[\"+e+\"],obj\"+t+\")\";case\"float\":return\"gl.uniform1f(locations[\"+e+\"],obj\"+t+\")\";default:var n=r.indexOf(\"vec\");if(!(0<=n&&n<=1&&r.length===4+n)){if(0===r.indexOf(\"mat\")&&4===r.length){var a=r.charCodeAt(r.length-1)-48;if(a<2||a>4)throw new i(\"\",\"Invalid uniform dimension type for matrix \"+name+\": \"+r);return\"gl.uniformMatrix\"+a+\"fv(locations[\"+e+\"],false,obj\"+t+\")\"}throw new i(\"\",\"Unknown uniform data type for \"+name+\": \"+r)}var a=r.charCodeAt(r.length-1)-48;if(a<2||a>4)throw new i(\"\",\"Invalid data type\");switch(r.charAt(0)){case\"b\":case\"i\":return\"gl.uniform\"+a+\"iv(locations[\"+e+\"],obj\"+t+\")\";case\"v\":return\"gl.uniform\"+a+\"fv(locations[\"+e+\"],obj\"+t+\")\";default:throw new i(\"\",\"Unrecognized data type for vector \"+name+\": \"+r)}}}function c(e){for(var n=[\"return function updateProperty(obj){\"],i=function t(e,r){if(\"object\"!=typeof r)return[[e,r]];var n=[];for(var i in r){var a=r[i],o=e;parseInt(i)+\"\"===i?o+=\"[\"+i+\"]\":o+=\".\"+i,\"object\"==typeof a?n.push.apply(n,t(o,a)):n.push([o,a])}return n}(\"\",e),a=0;a<i.length;++a){var o=i[a],c=o[0],u=o[1];s[u]&&n.push(l(c,u,r[u].type))}n.push(\"return obj}\");var f=new Function(\"gl\",\"locations\",n.join(\"\\n\"));return f(t,s)}function u(n,l,u){if(\"object\"==typeof u){var h=f(u);Object.defineProperty(n,l,{get:a(h),set:c(u),enumerable:!0,configurable:!1})}else s[u]?Object.defineProperty(n,l,{get:(p=u,new Function(\"gl\",\"wrapper\",\"locations\",\"return function(){return gl.getUniform(wrapper.program,locations[\"+p+\"])}\")(t,e,s)),set:c(u),enumerable:!0,configurable:!1}):n[l]=function(t){switch(t){case\"bool\":return!1;case\"int\":case\"sampler2D\":case\"samplerCube\":case\"float\":return 0;default:var e=t.indexOf(\"vec\");if(0<=e&&e<=1&&t.length===4+e){var r=t.charCodeAt(t.length-1)-48;if(r<2||r>4)throw new i(\"\",\"Invalid data type\");return\"b\"===t.charAt(0)?o(r,!1):o(r,0)}if(0===t.indexOf(\"mat\")&&4===t.length){var r=t.charCodeAt(t.length-1)-48;if(r<2||r>4)throw new i(\"\",\"Invalid uniform dimension type for matrix \"+name+\": \"+t);return o(r*r,0)}throw new i(\"\",\"Unknown uniform data type for \"+name+\": \"+t)}}(r[u].type);var p}function f(t){var e;if(Array.isArray(t)){e=new Array(t.length);for(var r=0;r<t.length;++r)u(e,r,t[r])}else for(var n in e={},t)u(e,n,t[n]);return e}var h=n(r,!0);return{get:a(f(h)),set:c(h),enumerable:!0,configurable:!0}}},{\"./GLError\":289,\"./reflect\":292}],292:[function(t,e,r){\"use strict\";e.exports=function(t,e){for(var r={},n=0;n<t.length;++n)for(var i=t[n].name,a=i.split(\".\"),o=r,s=0;s<a.length;++s){var l=a[s].split(\"[\");if(l.length>1){l[0]in o||(o[l[0]]=[]),o=o[l[0]];for(var c=1;c<l.length;++c){var u=parseInt(l[c]);c<l.length-1||s<a.length-1?(u in o||(c<l.length-1?o[u]=[]:o[u]={}),o=o[u]):o[u]=e?n:t[n].type}}else s<a.length-1?(l[0]in o||(o[l[0]]={}),o=o[l[0]]):o[l[0]]=e?n:t[n].type}return r}},{}],293:[function(t,e,r){\"use strict\";r.uniforms=function(t,e){for(var r=t.getProgramParameter(e,t.ACTIVE_UNIFORMS),n=[],i=0;i<r;++i){var o=t.getActiveUniform(e,i);if(o){var s=a(t,o.type);if(o.size>1)for(var l=0;l<o.size;++l)n.push({name:o.name.replace(\"[0]\",\"[\"+l+\"]\"),type:s});else n.push({name:o.name,type:s})}}return n},r.attributes=function(t,e){for(var r=t.getProgramParameter(e,t.ACTIVE_ATTRIBUTES),n=[],i=0;i<r;++i){var o=t.getActiveAttrib(e,i);o&&n.push({name:o.name,type:a(t,o.type)})}return n};var n={FLOAT:\"float\",FLOAT_VEC2:\"vec2\",FLOAT_VEC3:\"vec3\",FLOAT_VEC4:\"vec4\",INT:\"int\",INT_VEC2:\"ivec2\",INT_VEC3:\"ivec3\",INT_VEC4:\"ivec4\",BOOL:\"bool\",BOOL_VEC2:\"bvec2\",BOOL_VEC3:\"bvec3\",BOOL_VEC4:\"bvec4\",FLOAT_MAT2:\"mat2\",FLOAT_MAT3:\"mat3\",FLOAT_MAT4:\"mat4\",SAMPLER_2D:\"sampler2D\",SAMPLER_CUBE:\"samplerCube\"},i=null;function a(t,e){if(!i){var r=Object.keys(n);i={};for(var a=0;a<r.length;++a){var o=r[a];i[t[o]]=n[o]}}return i[e]}},{}],294:[function(t,e,r){\"use strict\";r.shader=function(t,e,r){return u(t).getShaderReference(e,r)},r.program=function(t,e,r,n,i){return u(t).getProgram(e,r,n,i)};var n=t(\"./GLError\"),i=t(\"gl-format-compiler-error\"),a=new(\"undefined\"==typeof WeakMap?t(\"weakmap-shim\"):WeakMap),o=0;function s(t,e,r,n,i,a,o){this.id=t,this.src=e,this.type=r,this.shader=n,this.count=a,this.programs=[],this.cache=o}function l(t){this.gl=t,this.shaders=[{},{}],this.programs={}}s.prototype.dispose=function(){if(0==--this.count){for(var t=this.cache,e=t.gl,r=this.programs,n=0,i=r.length;n<i;++n){var a=t.programs[r[n]];a&&(delete t.programs[n],e.deleteProgram(a))}e.deleteShader(this.shader),delete t.shaders[this.type===e.FRAGMENT_SHADER|0][this.src]}};var c=l.prototype;function u(t){var e=a.get(t);return e||(e=new l(t),a.set(t,e)),e}c.getShaderReference=function(t,e){var r=this.gl,a=this.shaders[t===r.FRAGMENT_SHADER|0],l=a[e];if(l&&r.isShader(l.shader))l.count+=1;else{var c=function(t,e,r){var a=t.createShader(e);if(t.shaderSource(a,r),t.compileShader(a),!t.getShaderParameter(a,t.COMPILE_STATUS)){var o=t.getShaderInfoLog(a);try{var s=i(o,r,e)}catch(t){throw console.warn(\"Failed to format compiler error: \"+t),new n(o,\"Error compiling shader:\\n\"+o)}throw new n(o,s.short,s.long)}return a}(r,t,e);l=a[e]=new s(o++,e,t,c,[],1,this)}return l},c.getProgram=function(t,e,r,i){var a=[t.id,e.id,r.join(\":\"),i.join(\":\")].join(\"@\"),o=this.programs[a];return o&&this.gl.isProgram(o)||(this.programs[a]=o=function(t,e,r,i,a){var o=t.createProgram();t.attachShader(o,e),t.attachShader(o,r);for(var s=0;s<i.length;++s)t.bindAttribLocation(o,a[s],i[s]);if(t.linkProgram(o),!t.getProgramParameter(o,t.LINK_STATUS)){var l=t.getProgramInfoLog(o);throw new n(l,\"Error linking program: \"+l)}return o}(this.gl,t.shader,e.shader,r,i),t.programs.push(a),e.programs.push(a)),o}},{\"./GLError\":289,\"gl-format-compiler-error\":240,\"weakmap-shim\":532}],295:[function(t,e,r){\"use strict\";function n(t){this.plot=t,this.enable=[!0,!0,!1,!1],this.width=[1,1,1,1],this.color=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.center=[1/0,1/0]}e.exports=function(t,e){var r=new n(t);return r.update(e),t.addOverlay(r),r};var i=n.prototype;i.update=function(t){t=t||{},this.enable=(t.enable||[!0,!0,!1,!1]).slice(),this.width=(t.width||[1,1,1,1]).slice(),this.color=(t.color||[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]]).map(function(t){return t.slice()}),this.center=(t.center||[1/0,1/0]).slice(),this.plot.setOverlayDirty()},i.draw=function(){var t=this.enable,e=this.width,r=this.color,n=this.center,i=this.plot,a=i.line,o=i.dataBox,s=i.viewBox;if(a.bind(),o[0]<=n[0]&&n[0]<=o[2]&&o[1]<=n[1]&&n[1]<=o[3]){var l=s[0]+(n[0]-o[0])/(o[2]-o[0])*(s[2]-s[0]),c=s[1]+(n[1]-o[1])/(o[3]-o[1])*(s[3]-s[1]);t[0]&&a.drawLine(l,c,s[0],c,e[0],r[0]),t[1]&&a.drawLine(l,c,l,s[1],e[1],r[1]),t[2]&&a.drawLine(l,c,s[2],c,e[2],r[2]),t[3]&&a.drawLine(l,c,l,s[3],e[3],r[3])}},i.dispose=function(){this.plot.removeOverlay(this)}},{}],296:[function(t,e,r){\"use strict\";var n=t(\"glslify\"),i=t(\"gl-shader\"),a=n([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute vec3 position, color;\\nattribute float weight;\\n\\nuniform mat4 model, view, projection;\\nuniform vec3 coordinates[3];\\nuniform vec4 colors[3];\\nuniform vec2 screenShape;\\nuniform float lineWidth;\\n\\nvarying vec4 fragColor;\\n\\nvoid main() {\\n vec3 vertexPosition = mix(coordinates[0],\\n mix(coordinates[2], coordinates[1], 0.5 * (position + 1.0)), abs(position));\\n\\n vec4 clipPos = projection * view * model * vec4(vertexPosition, 1.0);\\n vec2 clipOffset = (projection * view * model * vec4(color, 0.0)).xy;\\n vec2 delta = weight * clipOffset * screenShape;\\n vec2 lineOffset = normalize(vec2(delta.y, -delta.x)) / screenShape;\\n\\n gl_Position = vec4(clipPos.xy + clipPos.w * 0.5 * lineWidth * lineOffset, clipPos.z, clipPos.w);\\n fragColor = color.x * colors[0] + color.y * colors[1] + color.z * colors[2];\\n}\\n\"]),o=n([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nvarying vec4 fragColor;\\n\\nvoid main() {\\n gl_FragColor = fragColor;\\n}\"]);e.exports=function(t){return i(t,a,o,null,[{name:\"position\",type:\"vec3\"},{name:\"color\",type:\"vec3\"},{name:\"weight\",type:\"float\"}])}},{\"gl-shader\":288,glslify:392}],297:[function(t,e,r){\"use strict\";var n=t(\"gl-buffer\"),i=t(\"gl-vao\"),a=t(\"./shaders/index\");e.exports=function(t,e){var r=[];function o(t,e,n,i,a,o){var s=[t,e,n,0,0,0,1];s[i+3]=1,s[i]=a,r.push.apply(r,s),s[6]=-1,r.push.apply(r,s),s[i]=o,r.push.apply(r,s),r.push.apply(r,s),s[6]=1,r.push.apply(r,s),s[i]=a,r.push.apply(r,s)}o(0,0,0,0,0,1),o(0,0,0,1,0,1),o(0,0,0,2,0,1),o(1,0,0,1,-1,1),o(1,0,0,2,-1,1),o(0,1,0,0,-1,1),o(0,1,0,2,-1,1),o(0,0,1,0,-1,1),o(0,0,1,1,-1,1);var l=n(t,r),c=i(t,[{type:t.FLOAT,buffer:l,size:3,offset:0,stride:28},{type:t.FLOAT,buffer:l,size:3,offset:12,stride:28},{type:t.FLOAT,buffer:l,size:1,offset:24,stride:28}]),u=a(t);u.attributes.position.location=0,u.attributes.color.location=1,u.attributes.weight.location=2;var f=new s(t,l,c,u);return f.update(e),f};var o=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function s(t,e,r,n){this.gl=t,this.buffer=e,this.vao=r,this.shader=n,this.pixelRatio=1,this.bounds=[[-1e3,-1e3,-1e3],[1e3,1e3,1e3]],this.position=[0,0,0],this.lineWidth=[2,2,2],this.colors=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.enabled=[!0,!0,!0],this.drawSides=[!0,!0,!0],this.axes=null}var l=s.prototype,c=[0,0,0],u=[0,0,0],f=[0,0];l.isTransparent=function(){return!1},l.drawTransparent=function(t){},l.draw=function(t){var e=this.gl,r=this.vao,n=this.shader;r.bind(),n.bind();var i,a=t.model||o,s=t.view||o,l=t.projection||o;this.axes&&(i=this.axes.lastCubeProps.axis);for(var h=c,p=u,d=0;d<3;++d)i&&i[d]<0?(h[d]=this.bounds[0][d],p[d]=this.bounds[1][d]):(h[d]=this.bounds[1][d],p[d]=this.bounds[0][d]);f[0]=e.drawingBufferWidth,f[1]=e.drawingBufferHeight,n.uniforms.model=a,n.uniforms.view=s,n.uniforms.projection=l,n.uniforms.coordinates=[this.position,h,p],n.uniforms.colors=this.colors,n.uniforms.screenShape=f;for(d=0;d<3;++d)n.uniforms.lineWidth=this.lineWidth[d]*this.pixelRatio,this.enabled[d]&&(r.draw(e.TRIANGLES,6,6*d),this.drawSides[d]&&r.draw(e.TRIANGLES,12,18+12*d));r.unbind()},l.update=function(t){t&&(\"bounds\"in t&&(this.bounds=t.bounds),\"position\"in t&&(this.position=t.position),\"lineWidth\"in t&&(this.lineWidth=t.lineWidth),\"colors\"in t&&(this.colors=t.colors),\"enabled\"in t&&(this.enabled=t.enabled),\"drawSides\"in t&&(this.drawSides=t.drawSides))},l.dispose=function(){this.vao.dispose(),this.buffer.dispose(),this.shader.dispose()}},{\"./shaders/index\":296,\"gl-buffer\":230,\"gl-vao\":310}],298:[function(t,e,r){arguments[4][232][0].apply(r,arguments)},{barycentric:61,dup:232,\"polytope-closest-point/lib/closest_point_2d.js\":464}],299:[function(t,e,r){var n=t(\"glslify\"),i=n([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nfloat inverse(float m) {\\n return 1.0 / m;\\n}\\n\\nmat2 inverse(mat2 m) {\\n return mat2(m[1][1],-m[0][1],\\n -m[1][0], m[0][0]) / (m[0][0]*m[1][1] - m[0][1]*m[1][0]);\\n}\\n\\nmat3 inverse(mat3 m) {\\n float a00 = m[0][0], a01 = m[0][1], a02 = m[0][2];\\n float a10 = m[1][0], a11 = m[1][1], a12 = m[1][2];\\n float a20 = m[2][0], a21 = m[2][1], a22 = m[2][2];\\n\\n float b01 = a22 * a11 - a12 * a21;\\n float b11 = -a22 * a10 + a12 * a20;\\n float b21 = a21 * a10 - a11 * a20;\\n\\n float det = a00 * b01 + a01 * b11 + a02 * b21;\\n\\n return mat3(b01, (-a22 * a01 + a02 * a21), (a12 * a01 - a02 * a11),\\n b11, (a22 * a00 - a02 * a20), (-a12 * a00 + a02 * a10),\\n b21, (-a21 * a00 + a01 * a20), (a11 * a00 - a01 * a10)) / det;\\n}\\n\\nmat4 inverse(mat4 m) {\\n float\\n a00 = m[0][0], a01 = m[0][1], a02 = m[0][2], a03 = m[0][3],\\n a10 = m[1][0], a11 = m[1][1], a12 = m[1][2], a13 = m[1][3],\\n a20 = m[2][0], a21 = m[2][1], a22 = m[2][2], a23 = m[2][3],\\n a30 = m[3][0], a31 = m[3][1], a32 = m[3][2], a33 = m[3][3],\\n\\n b00 = a00 * a11 - a01 * a10,\\n b01 = a00 * a12 - a02 * a10,\\n b02 = a00 * a13 - a03 * a10,\\n b03 = a01 * a12 - a02 * a11,\\n b04 = a01 * a13 - a03 * a11,\\n b05 = a02 * a13 - a03 * a12,\\n b06 = a20 * a31 - a21 * a30,\\n b07 = a20 * a32 - a22 * a30,\\n b08 = a20 * a33 - a23 * a30,\\n b09 = a21 * a32 - a22 * a31,\\n b10 = a21 * a33 - a23 * a31,\\n b11 = a22 * a33 - a23 * a32,\\n\\n det = b00 * b11 - b01 * b10 + b02 * b09 + b03 * b08 - b04 * b07 + b05 * b06;\\n\\n return mat4(\\n a11 * b11 - a12 * b10 + a13 * b09,\\n a02 * b10 - a01 * b11 - a03 * b09,\\n a31 * b05 - a32 * b04 + a33 * b03,\\n a22 * b04 - a21 * b05 - a23 * b03,\\n a12 * b08 - a10 * b11 - a13 * b07,\\n a00 * b11 - a02 * b08 + a03 * b07,\\n a32 * b02 - a30 * b05 - a33 * b01,\\n a20 * b05 - a22 * b02 + a23 * b01,\\n a10 * b10 - a11 * b08 + a13 * b06,\\n a01 * b08 - a00 * b10 - a03 * b06,\\n a30 * b04 - a31 * b02 + a33 * b00,\\n a21 * b02 - a20 * b04 - a23 * b00,\\n a11 * b07 - a10 * b09 - a12 * b06,\\n a00 * b09 - a01 * b07 + a02 * b06,\\n a31 * b01 - a30 * b03 - a32 * b00,\\n a20 * b03 - a21 * b01 + a22 * b00) / det;\\n}\\n\\nvec3 getOrthogonalVector(vec3 v) {\\n // Return up-vector for only-z vector.\\n // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0).\\n // From the above if-statement we have ||a|| > 0 U ||b|| > 0.\\n // Assign z = 0, x = -b, y = a:\\n // a*-b + b*a + c*0 = -ba + ba + 0 = 0\\n if (v.x*v.x > v.z*v.z || v.y*v.y > v.z*v.z) {\\n return normalize(vec3(-v.y, v.x, 0.0));\\n } else {\\n return normalize(vec3(0.0, v.z, -v.y));\\n }\\n}\\n\\n// Calculate the tube vertex and normal at the given index.\\n//\\n// The returned vertex is for a tube ring with its center at origin, radius of length(d), pointing in the direction of d.\\n//\\n// Each tube segment is made up of a ring of vertices.\\n// These vertices are used to make up the triangles of the tube by connecting them together in the vertex array.\\n// The indexes of tube segments run from 0 to 8.\\n//\\nvec3 getTubePosition(vec3 d, float index, out vec3 normal) {\\n float segmentCount = 8.0;\\n\\n float angle = 2.0 * 3.14159 * (index / segmentCount);\\n\\n vec3 u = getOrthogonalVector(d);\\n vec3 v = normalize(cross(u, d));\\n\\n vec3 x = u * cos(angle) * length(d);\\n vec3 y = v * sin(angle) * length(d);\\n vec3 v3 = x + y;\\n\\n normal = normalize(v3);\\n\\n return v3;\\n}\\n\\nattribute vec4 vector;\\nattribute vec4 color, position;\\nattribute vec2 uv;\\nuniform float tubeScale;\\n\\nuniform mat4 model\\n , view\\n , projection;\\nuniform vec3 eyePosition\\n , lightPosition;\\n\\nvarying vec3 f_normal\\n , f_lightDirection\\n , f_eyeDirection\\n , f_data\\n , f_position;\\nvarying vec4 f_color;\\nvarying vec2 f_uv;\\n\\nvoid main() {\\n // Scale the vector magnitude to stay constant with\\n // model & view changes.\\n vec3 normal;\\n vec3 XYZ = getTubePosition(mat3(model) * (tubeScale * vector.w * normalize(vector.xyz)), position.w, normal);\\n vec4 tubePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\\n normal = normalize(normal * inverse(mat3(model)));\\n\\n gl_Position = projection * view * tubePosition;\\n f_color = color;\\n f_normal = normal;\\n f_data = tubePosition.xyz;\\n f_position = position.xyz;\\n f_eyeDirection = eyePosition - tubePosition.xyz;\\n f_lightDirection = lightPosition - tubePosition.xyz;\\n f_uv = uv;\\n}\\n\"]),a=n([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nfloat beckmannDistribution(float x, float roughness) {\\n float NdotH = max(x, 0.0001);\\n float cos2Alpha = NdotH * NdotH;\\n float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\\n float roughness2 = roughness * roughness;\\n float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\\n return exp(tan2Alpha / roughness2) / denom;\\n}\\n\\nfloat cookTorranceSpecular(\\n vec3 lightDirection,\\n vec3 viewDirection,\\n vec3 surfaceNormal,\\n float roughness,\\n float fresnel) {\\n\\n float VdotN = max(dot(viewDirection, surfaceNormal), 0.0);\\n float LdotN = max(dot(lightDirection, surfaceNormal), 0.0);\\n\\n //Half angle vector\\n vec3 H = normalize(lightDirection + viewDirection);\\n\\n //Geometric term\\n float NdotH = max(dot(surfaceNormal, H), 0.0);\\n float VdotH = max(dot(viewDirection, H), 0.000001);\\n float LdotH = max(dot(lightDirection, H), 0.000001);\\n float G1 = (2.0 * NdotH * VdotN) / VdotH;\\n float G2 = (2.0 * NdotH * LdotN) / LdotH;\\n float G = min(1.0, min(G1, G2));\\n \\n //Distribution term\\n float D = beckmannDistribution(NdotH, roughness);\\n\\n //Fresnel term\\n float F = pow(1.0 - VdotN, fresnel);\\n\\n //Multiply terms and done\\n return G * F * D / max(3.14159265 * VdotN, 0.000001);\\n}\\n\\nbool outOfRange(float a, float b, float p) {\\n return ((p > max(a, b)) || \\n (p < min(a, b)));\\n}\\n\\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y));\\n}\\n\\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y) ||\\n outOfRange(a.z, b.z, p.z));\\n}\\n\\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\\n return outOfRange(a.xyz, b.xyz, p.xyz);\\n}\\n\\nuniform vec3 clipBounds[2];\\nuniform float roughness\\n , fresnel\\n , kambient\\n , kdiffuse\\n , kspecular\\n , opacity;\\nuniform sampler2D texture;\\n\\nvarying vec3 f_normal\\n , f_lightDirection\\n , f_eyeDirection\\n , f_data\\n , f_position;\\nvarying vec4 f_color;\\nvarying vec2 f_uv;\\n\\nvoid main() {\\n\\n if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\\n\\n vec3 N = normalize(f_normal);\\n vec3 L = normalize(f_lightDirection);\\n vec3 V = normalize(f_eyeDirection);\\n\\n if(!gl_FrontFacing) {\\n N = -N;\\n }\\n\\n float specular = cookTorranceSpecular(L, V, N, roughness, fresnel);\\n float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\\n\\n vec4 surfaceColor = texture2D(texture, f_uv);\\n vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0);\\n\\n gl_FragColor = litColor * opacity;\\n}\"]),o=n([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nvec3 getOrthogonalVector(vec3 v) {\\n // Return up-vector for only-z vector.\\n // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0).\\n // From the above if-statement we have ||a|| > 0 U ||b|| > 0.\\n // Assign z = 0, x = -b, y = a:\\n // a*-b + b*a + c*0 = -ba + ba + 0 = 0\\n if (v.x*v.x > v.z*v.z || v.y*v.y > v.z*v.z) {\\n return normalize(vec3(-v.y, v.x, 0.0));\\n } else {\\n return normalize(vec3(0.0, v.z, -v.y));\\n }\\n}\\n\\n// Calculate the tube vertex and normal at the given index.\\n//\\n// The returned vertex is for a tube ring with its center at origin, radius of length(d), pointing in the direction of d.\\n//\\n// Each tube segment is made up of a ring of vertices.\\n// These vertices are used to make up the triangles of the tube by connecting them together in the vertex array.\\n// The indexes of tube segments run from 0 to 8.\\n//\\nvec3 getTubePosition(vec3 d, float index, out vec3 normal) {\\n float segmentCount = 8.0;\\n\\n float angle = 2.0 * 3.14159 * (index / segmentCount);\\n\\n vec3 u = getOrthogonalVector(d);\\n vec3 v = normalize(cross(u, d));\\n\\n vec3 x = u * cos(angle) * length(d);\\n vec3 y = v * sin(angle) * length(d);\\n vec3 v3 = x + y;\\n\\n normal = normalize(v3);\\n\\n return v3;\\n}\\n\\nattribute vec4 vector;\\nattribute vec4 position;\\nattribute vec4 id;\\n\\nuniform mat4 model, view, projection;\\nuniform float tubeScale;\\n\\nvarying vec3 f_position;\\nvarying vec4 f_id;\\n\\nvoid main() {\\n vec3 normal;\\n vec3 XYZ = getTubePosition(mat3(model) * (tubeScale * vector.w * normalize(vector.xyz)), position.w, normal);\\n vec4 tubePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\\n\\n gl_Position = projection * view * tubePosition;\\n f_id = id;\\n f_position = position.xyz;\\n}\\n\"]),s=n([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nbool outOfRange(float a, float b, float p) {\\n return ((p > max(a, b)) || \\n (p < min(a, b)));\\n}\\n\\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y));\\n}\\n\\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y) ||\\n outOfRange(a.z, b.z, p.z));\\n}\\n\\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\\n return outOfRange(a.xyz, b.xyz, p.xyz);\\n}\\n\\nuniform vec3 clipBounds[2];\\nuniform float pickId;\\n\\nvarying vec3 f_position;\\nvarying vec4 f_id;\\n\\nvoid main() {\\n if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\\n\\n gl_FragColor = vec4(pickId, f_id.xyz);\\n}\"]);r.meshShader={vertex:i,fragment:a,attributes:[{name:\"position\",type:\"vec4\"},{name:\"normal\",type:\"vec3\"},{name:\"color\",type:\"vec4\"},{name:\"uv\",type:\"vec2\"},{name:\"vector\",type:\"vec4\"}]},r.pickShader={vertex:o,fragment:s,attributes:[{name:\"position\",type:\"vec4\"},{name:\"id\",type:\"vec4\"},{name:\"vector\",type:\"vec4\"}]}},{glslify:392}],300:[function(t,e,r){\"use strict\";var n=t(\"gl-shader\"),i=t(\"gl-buffer\"),a=t(\"gl-vao\"),o=t(\"gl-texture2d\"),s=t(\"normals\"),l=t(\"gl-mat4/multiply\"),c=t(\"gl-mat4/invert\"),u=t(\"ndarray\"),f=t(\"colormap\"),h=t(\"simplicial-complex-contour\"),p=t(\"typedarray-pool\"),d=t(\"./shaders\"),g=(t(\"./closest-point\"),d.meshShader),v=d.pickShader,m=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function y(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,g,v,y,x,b,_,w,k,M,A,T,S,E){this.gl=t,this.cells=[],this.positions=[],this.intensity=[],this.texture=e,this.dirty=!0,this.triShader=r,this.lineShader=n,this.pointShader=i,this.pickShader=a,this.pointPickShader=o,this.contourShader=s,this.trianglePositions=l,this.triangleVectors=c,this.triangleColors=f,this.triangleNormals=p,this.triangleUVs=h,this.triangleIds=u,this.triangleVAO=d,this.triangleCount=0,this.lineWidth=1,this.edgePositions=g,this.edgeColors=y,this.edgeUVs=x,this.edgeIds=v,this.edgeVAO=b,this.edgeCount=0,this.pointPositions=_,this.pointColors=k,this.pointUVs=M,this.pointSizes=A,this.pointIds=w,this.pointVAO=T,this.pointCount=0,this.contourLineWidth=1,this.contourPositions=S,this.contourVAO=E,this.contourCount=0,this.contourColor=[0,0,0],this.contourEnable=!1,this.pickId=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lightPosition=[1e5,1e5,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.opacity=1,this.tubeScale=1,this._model=m,this._view=m,this._projection=m,this._resolution=[1,1]}var x=y.prototype;function b(t){var e=n(t,v.vertex,v.fragment,null,v.attributes);return e.attributes.position.location=0,e.attributes.id.location=1,e.attributes.vector.location=5,e}x.isOpaque=function(){return this.opacity>=1},x.isTransparent=function(){return this.opacity<1},x.pickSlots=1,x.setPickBase=function(t){this.pickId=t},x.highlight=function(t){if(t&&this.contourEnable){for(var e=h(this.cells,this.intensity,t.intensity),r=e.cells,n=e.vertexIds,i=e.vertexWeights,a=r.length,o=p.mallocFloat32(6*a),s=0,l=0;l<a;++l)for(var c=r[l],u=0;u<2;++u){var f=c[0];2===c.length&&(f=c[u]);for(var d=n[f][0],g=n[f][1],v=i[f],m=1-v,y=this.positions[d],x=this.positions[g],b=0;b<3;++b)o[s++]=v*y[b]+m*x[b]}this.contourCount=s/3|0,this.contourPositions.update(o.subarray(0,s)),p.free(o)}else this.contourCount=0},x.update=function(t){t=t||{};var e=this.gl;this.dirty=!0,\"contourEnable\"in t&&(this.contourEnable=t.contourEnable),\"contourColor\"in t&&(this.contourColor=t.contourColor),\"lineWidth\"in t&&(this.lineWidth=t.lineWidth),\"lightPosition\"in t&&(this.lightPosition=t.lightPosition),\"opacity\"in t&&(this.opacity=t.opacity),\"ambient\"in t&&(this.ambientLight=t.ambient),\"diffuse\"in t&&(this.diffuseLight=t.diffuse),\"specular\"in t&&(this.specularLight=t.specular),\"roughness\"in t&&(this.roughness=t.roughness),\"fresnel\"in t&&(this.fresnel=t.fresnel),t.texture?(this.texture.dispose(),this.texture=o(e,t.texture)):t.colormap&&(this.texture.shape=[256,256],this.texture.minFilter=e.LINEAR_MIPMAP_LINEAR,this.texture.magFilter=e.LINEAR,this.texture.setPixels(function(t){for(var e=f({colormap:t,nshades:256,format:\"rgba\"}),r=new Uint8Array(1024),n=0;n<256;++n){for(var i=e[n],a=0;a<3;++a)r[4*n+a]=i[a];r[4*n+3]=255*i[3]}return u(r,[256,256,4],[4,0,1])}(t.colormap)),this.texture.generateMipmap());var r=t.cells,n=t.positions,i=t.vectors;if(n&&r&&i){void 0!==t.tubeScale&&(this.tubeScale=t.tubeScale);var a=[],l=[],c=[],h=[],p=[],d=[],g=[],v=[],m=[],y=[],x=[],b=[],_=[],w=[],k=[];this.cells=r,this.positions=n,this.vectors=i;var M=t.vertexNormals,A=t.cellNormals,T=void 0===t.vertexNormalsEpsilon?1e-6:t.vertexNormalsEpsilon,S=void 0===t.faceNormalsEpsilon?1e-6:t.faceNormalsEpsilon;t.useFacetNormals&&!A&&(A=s.faceNormals(r,n,S)),A||M||(M=s.vertexNormals(r,n,T));var E=t.vertexColors,C=t.cellColors,L=t.meshColor||[1,1,1,1],z=t.vertexUVs,O=t.vertexIntensity,I=t.cellUVs,P=t.cellIntensity,D=1/0,R=-1/0;if(!z&&!I)if(O)if(t.vertexIntensityBounds)D=+t.vertexIntensityBounds[0],R=+t.vertexIntensityBounds[1];else for(var B=0;B<O.length;++B){var F=O[B];D=Math.min(D,F),R=Math.max(R,F)}else if(P)for(B=0;B<P.length;++B){F=P[B];D=Math.min(D,F),R=Math.max(R,F)}else for(B=0;B<n.length;++B){F=n[B][2];D=Math.min(D,F),R=Math.max(R,F)}this.intensity=O||(P?function(t,e,r){for(var n=new Array(e),i=0;i<e;++i)n[i]=0;var a=t.length;for(i=0;i<a;++i)for(var o=t[i],s=0;s<o.length;++s)n[o[s]]=r[i];return n}(r,n.length,P):function(t){for(var e=t.length,r=new Array(e),n=0;n<e;++n)r[n]=t[n][2];return r}(n));var N=t.pointSizes,j=t.pointSize||1;this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]];for(B=0;B<n.length;++B)for(var V=n[B],U=0;U<3;++U)!isNaN(V[U])&&isFinite(V[U])&&(this.bounds[0][U]=Math.min(this.bounds[0][U],V[U]),this.bounds[1][U]=Math.max(this.bounds[1][U],V[U]));var q=0,H=0,G=0;t:for(B=0;B<r.length;++B){var W=r[B];switch(W.length){case 1:for(V=n[X=W[0]],U=0;U<3;++U)if(isNaN(V[U])||!isFinite(V[U]))continue t;x.push(V[0],V[1],V[2],V[3]),3===(Z=E?E[X]:C?C[B]:L).length?b.push(Z[0],Z[1],Z[2],1):b.push(Z[0],Z[1],Z[2],Z[3]),$=z?z[X]:O?[(O[X]-D)/(R-D),0]:I?I[B]:P?[(P[B]-D)/(R-D),0]:[(V[2]-D)/(R-D),0],_.push($[0],$[1]),N?w.push(N[X]):w.push(j),k.push(B),G+=1;break;case 2:for(U=0;U<2;++U){V=n[X=W[U]];for(var Y=0;Y<3;++Y)if(isNaN(V[Y])||!isFinite(V[Y]))continue t}for(U=0;U<2;++U){V=n[X=W[U]];g.push(V[0],V[1],V[2]),3===(Z=E?E[X]:C?C[B]:L).length?v.push(Z[0],Z[1],Z[2],1):v.push(Z[0],Z[1],Z[2],Z[3]),$=z?z[X]:O?[(O[X]-D)/(R-D),0]:I?I[B]:P?[(P[B]-D)/(R-D),0]:[(V[2]-D)/(R-D),0],m.push($[0],$[1]),y.push(B)}H+=1;break;case 3:for(U=0;U<3;++U)for(V=n[X=W[U]],Y=0;Y<3;++Y)if(isNaN(V[Y])||!isFinite(V[Y]))continue t;for(U=0;U<3;++U){var X;V=n[X=W[U]];a.push(V[0],V[1],V[2],V[3]);var Z,$,J,K=i[X];l.push(K[0],K[1],K[2],K[3]),3===(Z=E?E[X]:C?C[B]:L).length?c.push(Z[0],Z[1],Z[2],1):c.push(Z[0],Z[1],Z[2],Z[3]),$=z?z[X]:O?[(O[X]-D)/(R-D),0]:I?I[B]:P?[(P[B]-D)/(R-D),0]:[(V[2]-D)/(R-D),0],p.push($[0],$[1]),J=M?M[X]:A[B],h.push(J[0],J[1],J[2]),d.push(B)}q+=1}}this.pointCount=G,this.edgeCount=H,this.triangleCount=q,this.pointPositions.update(x),this.pointColors.update(b),this.pointUVs.update(_),this.pointSizes.update(w),this.pointIds.update(new Uint32Array(k)),this.edgePositions.update(g),this.edgeColors.update(v),this.edgeUVs.update(m),this.edgeIds.update(new Uint32Array(y)),this.trianglePositions.update(a),this.triangleVectors.update(l),this.triangleColors.update(c),this.triangleUVs.update(p),this.triangleNormals.update(h),this.triangleIds.update(new Uint32Array(d))}},x.drawTransparent=x.draw=function(t){t=t||{};for(var e=this.gl,r=t.model||m,n=t.view||m,i=t.projection||m,a=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],o=0;o<3;++o)a[0][o]=Math.max(a[0][o],this.clipBounds[0][o]),a[1][o]=Math.min(a[1][o],this.clipBounds[1][o]);var s={model:r,view:n,projection:i,clipBounds:a,kambient:this.ambientLight,kdiffuse:this.diffuseLight,kspecular:this.specularLight,roughness:this.roughness,fresnel:this.fresnel,eyePosition:[0,0,0],lightPosition:[0,0,0],opacity:this.opacity,tubeScale:this.tubeScale,contourColor:this.contourColor,texture:0};this.texture.bind(0);var u=new Array(16);l(u,s.view,s.model),l(u,s.projection,u),c(u,u);for(o=0;o<3;++o)s.eyePosition[o]=u[12+o]/u[15];var f,h=u[15];for(o=0;o<3;++o)h+=this.lightPosition[o]*u[4*o+3];for(o=0;o<3;++o){for(var p=u[12+o],d=0;d<3;++d)p+=u[4*d+o]*this.lightPosition[d];s.lightPosition[o]=p/h}this.triangleCount>0&&((f=this.triShader).bind(),f.uniforms=s,this.triangleVAO.bind(),e.drawArrays(e.TRIANGLES,0,3*this.triangleCount),this.triangleVAO.unbind());this.edgeCount>0&&this.lineWidth>0&&((f=this.lineShader).bind(),f.uniforms=s,this.edgeVAO.bind(),e.lineWidth(this.lineWidth),e.drawArrays(e.LINES,0,2*this.edgeCount),this.edgeVAO.unbind());this.pointCount>0&&((f=this.pointShader).bind(),f.uniforms=s,this.pointVAO.bind(),e.drawArrays(e.POINTS,0,this.pointCount),this.pointVAO.unbind());this.contourEnable&&this.contourCount>0&&this.contourLineWidth>0&&((f=this.contourShader).bind(),f.uniforms=s,this.contourVAO.bind(),e.drawArrays(e.LINES,0,this.contourCount),this.contourVAO.unbind())},x.drawPick=function(t){t=t||{};for(var e=this.gl,r=t.model||m,n=t.view||m,i=t.projection||m,a=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],o=0;o<3;++o)a[0][o]=Math.max(a[0][o],this.clipBounds[0][o]),a[1][o]=Math.min(a[1][o],this.clipBounds[1][o]);this._model=[].slice.call(r),this._view=[].slice.call(n),this._projection=[].slice.call(i),this._resolution=[e.drawingBufferWidth,e.drawingBufferHeight];var s,l={model:r,view:n,projection:i,clipBounds:a,tubeScale:this.tubeScale,pickId:this.pickId/255};((s=this.pickShader).bind(),s.uniforms=l,this.triangleCount>0&&(this.triangleVAO.bind(),e.drawArrays(e.TRIANGLES,0,3*this.triangleCount),this.triangleVAO.unbind()),this.edgeCount>0&&(this.edgeVAO.bind(),e.lineWidth(this.lineWidth),e.drawArrays(e.LINES,0,2*this.edgeCount),this.edgeVAO.unbind()),this.pointCount>0)&&((s=this.pointPickShader).bind(),s.uniforms=l,this.pointVAO.bind(),e.drawArrays(e.POINTS,0,this.pointCount),this.pointVAO.unbind())},x.pick=function(t){if(!t)return null;if(t.id!==this.pickId)return null;var e=t.value[0]+256*t.value[1]+65536*t.value[2],r=this.cells[e],n=this.positions[r[1]].slice(0,3);return{index:e,position:n,intensity:this.intensity[r[1]],velocity:this.vectors[r[1]].slice(0,3),divergence:this.vectors[r[1]][3],dataCoordinate:n}},x.dispose=function(){this.texture.dispose(),this.triShader.dispose(),this.pickShader.dispose(),this.triangleVAO.dispose(),this.trianglePositions.dispose(),this.triangleVectors.dispose(),this.triangleColors.dispose(),this.triangleUVs.dispose(),this.triangleNormals.dispose(),this.triangleIds.dispose(),this.edgeVAO.dispose(),this.edgePositions.dispose(),this.edgeColors.dispose(),this.edgeUVs.dispose(),this.edgeIds.dispose(),this.pointVAO.dispose(),this.pointPositions.dispose(),this.pointColors.dispose(),this.pointUVs.dispose(),this.pointSizes.dispose(),this.pointIds.dispose(),this.contourVAO.dispose(),this.contourPositions.dispose()},e.exports=function(t,e){1===arguments.length&&(t=(e=t).gl);var r=e.triShader||function(t){var e=n(t,g.vertex,g.fragment,null,g.attributes);return e.attributes.position.location=0,e.attributes.color.location=2,e.attributes.uv.location=3,e.attributes.vector.location=5,e}(t),s=b(t),l=o(t,u(new Uint8Array([255,255,255,255]),[1,1,4]));l.generateMipmap(),l.minFilter=t.LINEAR_MIPMAP_LINEAR,l.magFilter=t.LINEAR;var c=i(t),f=i(t),h=i(t),p=i(t),d=i(t),v=i(t),m=a(t,[{buffer:c,type:t.FLOAT,size:4},{buffer:v,type:t.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:h,type:t.FLOAT,size:4},{buffer:p,type:t.FLOAT,size:2},{buffer:d,type:t.FLOAT,size:3},{buffer:f,type:t.FLOAT,size:4}]),x=i(t),_=i(t),w=i(t),k=i(t),M=a(t,[{buffer:x,type:t.FLOAT,size:3},{buffer:k,type:t.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:_,type:t.FLOAT,size:4},{buffer:w,type:t.FLOAT,size:2}]),A=i(t),T=i(t),S=i(t),E=i(t),C=i(t),L=a(t,[{buffer:A,type:t.FLOAT,size:3},{buffer:C,type:t.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:T,type:t.FLOAT,size:4},{buffer:S,type:t.FLOAT,size:2},{buffer:E,type:t.FLOAT,size:1}]),z=i(t),O=new y(t,l,r,null,null,s,null,null,c,f,v,h,p,d,m,x,k,_,w,M,A,C,T,S,E,L,z,a(t,[{buffer:z,type:t.FLOAT,size:3}]));return O.update(e),O}},{\"./closest-point\":298,\"./shaders\":299,colormap:114,\"gl-buffer\":230,\"gl-mat4/invert\":254,\"gl-mat4/multiply\":256,\"gl-shader\":288,\"gl-texture2d\":305,\"gl-vao\":310,ndarray:433,normals:436,\"simplicial-complex-contour\":494,\"typedarray-pool\":522}],301:[function(t,e,r){\"use strict\";var n=t(\"gl-vec3\"),i=t(\"gl-vec4\"),a=function(t,e,r,a){for(var o=0,s=0;s<t.length;s++)for(var l=t[s].velocities,c=0;c<l.length;c++){var u=n.length(l[c]);u>o&&(o=u)}var f=t.map(function(t){return function(t,e,r,a){var o,s,l,c=t.points,u=t.velocities,f=t.divergences;n.set(n.create(),0,1,0),n.create(),n.create();n.create();for(var h=[],p=[],d=[],g=[],v=[],m=[],y=0,x=0,b=i.create(),_=i.create(),w=0;w<c.length;w++){o=c[w],s=u[w],l=f[w],0===e&&(l=.05*r),x=n.length(s)/a,b=i.create(),n.copy(b,s),b[3]=l;for(var k=0;k<8;k++)v[k]=[o[0],o[1],o[2],k];if(g.length>0)for(k=0;k<8;k++){var M=(k+1)%8;h.push(g[k],v[k],v[M],v[M],g[M],g[k]),d.push(_,b,b,b,_,_),m.push(y,x,x,x,y,y),p.push([h.length-6,h.length-5,h.length-4],[h.length-3,h.length-2,h.length-1])}var A=g;g=v,v=A,A=_,_=b,b=A,A=y,y=x,x=A}return{positions:h,cells:p,vectors:d,vertexIntensity:m}}(t,r,a,o)}),h=[],p=[],d=[],g=[];for(s=0;s<f.length;s++){var v=f[s],m=h.length;h=h.concat(v.positions),d=d.concat(v.vectors),g=g.concat(v.vertexIntensity);for(c=0;c<v.cells.length;c++){var y=v.cells[c],x=[];p.push(x);for(var b=0;b<y.length;b++)x.push(y[b]+m)}}return{positions:h,cells:p,vectors:d,vertexIntensity:g,colormap:e}},o=function(t,e){var r=n.create(),i=1e-4;n.add(r,t,[i,0,0]);var a=this.getVelocity(r);n.subtract(a,a,e),n.scale(a,a,1e4),n.add(r,t,[0,i,0]);var o=this.getVelocity(r);n.subtract(o,o,e),n.scale(o,o,1e4),n.add(r,t,[0,0,i]);var s=this.getVelocity(r);return n.subtract(s,s,e),n.scale(s,s,1e4),n.add(r,a,o),n.add(r,r,s),r},s=function(t){return h(t,this.vectors,this.meshgrid,this.clampBorders)},l=function(t,e){for(var r=0;r<t.length;r++){var n=t[r];if(n===e)return r;if(n>e)return r-1}return r},c=n.create(),u=n.create(),f=function(t,e,r){return t<e?e:t>r?r:t},h=function(t,e,r,i){var a=t[0],o=t[1],s=t[2],h=r[0].length,p=r[1].length,d=r[2].length,g=l(r[0],a),v=l(r[1],o),m=l(r[2],s),y=g+1,x=v+1,b=m+1;if(r[0][g]===a&&(y=g),r[1][v]===o&&(x=v),r[2][m]===s&&(b=m),i&&(g=f(g,0,h-1),y=f(y,0,h-1),v=f(v,0,p-1),x=f(x,0,p-1),m=f(m,0,d-1),b=f(b,0,d-1)),g<0||v<0||m<0||y>=h||x>=p||b>=d)return n.create();var _=(a-r[0][g])/(r[0][y]-r[0][g]),w=(o-r[1][v])/(r[1][x]-r[1][v]),k=(s-r[2][m])/(r[2][b]-r[2][m]);(_<0||_>1||isNaN(_))&&(_=0),(w<0||w>1||isNaN(w))&&(w=0),(k<0||k>1||isNaN(k))&&(k=0);var M=m*h*p,A=b*h*p,T=v*h,S=x*h,E=g,C=y,L=e[T+M+E],z=e[T+M+C],O=e[S+M+E],I=e[S+M+C],P=e[T+A+E],D=e[T+A+C],R=e[S+A+E],B=e[S+A+C],F=n.create();return n.lerp(F,L,z,_),n.lerp(c,O,I,_),n.lerp(F,F,c,w),n.lerp(c,P,D,_),n.lerp(u,R,B,_),n.lerp(c,c,u,w),n.lerp(F,F,c,k),F},p=function(t){var e=1/0;t.sort(function(t,e){return t-e});for(var r=1;r<t.length;r++){var n=Math.abs(t[r]-t[r-1]);n<e&&(e=n)}return e};e.exports=function(t,e){var r=t.startingPositions,i=t.maxLength||1e3,l=t.tubeSize||1,c=t.absoluteTubeSize;t.getDivergence||(t.getDivergence=o),t.getVelocity||(t.getVelocity=s),void 0===t.clampBorders&&(t.clampBorders=!0);var u=[],f=e[0][0],h=e[0][1],d=e[0][2],g=e[1][0],v=e[1][1],m=e[1][2],y=function(t,e){var r=e[0],n=e[1],i=e[2];return r>=f&&r<=g&&n>=h&&n<=v&&i>=d&&i<=m},x=10*n.distance(e[0],e[1])/i,b=x*x,_=1,w=0;n.create();r.length>=2&&(_=function(t){for(var e=[],r=[],n=[],i={},a={},o={},s=0;s<t.length;s++){var l=t[s],c=l[0],u=l[1],f=l[2];i[c]||(e.push(c),i[c]=!0),a[u]||(r.push(u),a[u]=!0),o[f]||(n.push(f),o[f]=!0)}var h=p(e),d=p(r),g=p(n),v=Math.min(h,d,g);return isFinite(v)?v:1}(r));for(var k=0;k<r.length;k++){var M=n.create();n.copy(M,r[k]);var A=[M],T=[],S=t.getVelocity(M),E=M;T.push(S);var C=[],L=t.getDivergence(M,S);(P=n.length(L))>w&&!isNaN(P)&&isFinite(P)&&(w=P),C.push(P),u.push({points:A,velocities:T,divergences:C});for(var z=0;z<100*i&&A.length<i&&y(0,M);){z++;var O=n.clone(S),I=n.squaredLength(O);if(0===I)break;if(I>b&&n.scale(O,O,x/Math.sqrt(I)),n.add(O,O,M),S=t.getVelocity(O),n.squaredDistance(E,O)-b>-1e-4*b){A.push(O),E=O,T.push(S);L=t.getDivergence(O,S);(P=n.length(L))>w&&!isNaN(P)&&isFinite(P)&&(w=P),C.push(P)}M=O}}for(k=0;k<C.length;k++){var P=C[k];!isNaN(P)&&isFinite(P)||(C[k]=w)}var D=a(u,t.colormap,w,_);return c?D.tubeScale=c:(0===w&&(w=1),D.tubeScale=.5*l*_/w),D},e.exports.createTubeMesh=t(\"./lib/tubemesh\")},{\"./lib/tubemesh\":300,\"gl-vec3\":329,\"gl-vec4\":365}],302:[function(t,e,r){var n=t(\"gl-shader\"),i=t(\"glslify\"),a=i([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute vec4 uv;\\nattribute vec3 f;\\nattribute vec3 normal;\\n\\nuniform mat4 model, view, projection, inverseModel;\\nuniform vec3 lightPosition, eyePosition;\\nuniform sampler2D colormap;\\n\\nvarying float value, kill;\\nvarying vec3 worldCoordinate;\\nvarying vec2 planeCoordinate;\\nvarying vec3 lightDirection, eyeDirection, surfaceNormal;\\nvarying vec4 vColor;\\n\\nvoid main() {\\n worldCoordinate = vec3(uv.zw, f.x);\\n vec4 worldPosition = model * vec4(worldCoordinate, 1.0);\\n vec4 clipPosition = projection * view * worldPosition;\\n gl_Position = clipPosition;\\n kill = f.y;\\n value = f.z;\\n planeCoordinate = uv.xy;\\n\\n vColor = texture2D(colormap, vec2(value, value));\\n\\n //Lighting geometry parameters\\n vec4 cameraCoordinate = view * worldPosition;\\n cameraCoordinate.xyz /= cameraCoordinate.w;\\n lightDirection = lightPosition - cameraCoordinate.xyz;\\n eyeDirection = eyePosition - cameraCoordinate.xyz;\\n surfaceNormal = normalize((vec4(normal,0) * inverseModel).xyz);\\n}\\n\"]),o=i([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nfloat beckmannDistribution(float x, float roughness) {\\n float NdotH = max(x, 0.0001);\\n float cos2Alpha = NdotH * NdotH;\\n float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\\n float roughness2 = roughness * roughness;\\n float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\\n return exp(tan2Alpha / roughness2) / denom;\\n}\\n\\nfloat beckmannSpecular(\\n vec3 lightDirection,\\n vec3 viewDirection,\\n vec3 surfaceNormal,\\n float roughness) {\\n return beckmannDistribution(dot(surfaceNormal, normalize(lightDirection + viewDirection)), roughness);\\n}\\n\\nbool outOfRange(float a, float b, float p) {\\n return ((p > max(a, b)) || \\n (p < min(a, b)));\\n}\\n\\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y));\\n}\\n\\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y) ||\\n outOfRange(a.z, b.z, p.z));\\n}\\n\\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\\n return outOfRange(a.xyz, b.xyz, p.xyz);\\n}\\n\\nuniform vec3 lowerBound, upperBound;\\nuniform float contourTint;\\nuniform vec4 contourColor;\\nuniform sampler2D colormap;\\nuniform vec3 clipBounds[2];\\nuniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity;\\nuniform float vertexColor;\\n\\nvarying float value, kill;\\nvarying vec3 worldCoordinate;\\nvarying vec3 lightDirection, eyeDirection, surfaceNormal;\\nvarying vec4 vColor;\\n\\nvoid main() {\\n if ((kill > 0.0) ||\\n (outOfRange(clipBounds[0], clipBounds[1], worldCoordinate))) discard;\\n\\n vec3 N = normalize(surfaceNormal);\\n vec3 V = normalize(eyeDirection);\\n vec3 L = normalize(lightDirection);\\n\\n if(gl_FrontFacing) {\\n N = -N;\\n }\\n\\n float specular = max(beckmannSpecular(L, V, N, roughness), 0.);\\n float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\\n\\n //decide how to interpolate color \\u2014 in vertex or in fragment\\n vec4 surfaceColor = step(vertexColor, .5) * texture2D(colormap, vec2(value, value)) + step(.5, vertexColor) * vColor;\\n\\n vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0);\\n\\n gl_FragColor = mix(litColor, contourColor, contourTint) * opacity;\\n}\\n\"]),s=i([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute vec4 uv;\\nattribute float f;\\n\\nuniform mat3 permutation;\\nuniform mat4 model, view, projection;\\nuniform float height, zOffset;\\nuniform sampler2D colormap;\\n\\nvarying float value, kill;\\nvarying vec3 worldCoordinate;\\nvarying vec2 planeCoordinate;\\nvarying vec3 lightDirection, eyeDirection, surfaceNormal;\\nvarying vec4 vColor;\\n\\nvoid main() {\\n vec3 dataCoordinate = permutation * vec3(uv.xy, height);\\n vec4 worldPosition = model * vec4(dataCoordinate, 1.0);\\n\\n vec4 clipPosition = projection * view * worldPosition;\\n clipPosition.z = clipPosition.z + zOffset;\\n\\n gl_Position = clipPosition;\\n value = f;\\n kill = -1.0;\\n worldCoordinate = dataCoordinate;\\n planeCoordinate = uv.zw;\\n\\n vColor = texture2D(colormap, vec2(value, value));\\n\\n //Don't do lighting for contours\\n surfaceNormal = vec3(1,0,0);\\n eyeDirection = vec3(0,1,0);\\n lightDirection = vec3(0,0,1);\\n}\\n\"]),l=i([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nbool outOfRange(float a, float b, float p) {\\n return ((p > max(a, b)) || \\n (p < min(a, b)));\\n}\\n\\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y));\\n}\\n\\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\\n return (outOfRange(a.x, b.x, p.x) ||\\n outOfRange(a.y, b.y, p.y) ||\\n outOfRange(a.z, b.z, p.z));\\n}\\n\\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\\n return outOfRange(a.xyz, b.xyz, p.xyz);\\n}\\n\\nuniform vec2 shape;\\nuniform vec3 clipBounds[2];\\nuniform float pickId;\\n\\nvarying float value, kill;\\nvarying vec3 worldCoordinate;\\nvarying vec2 planeCoordinate;\\nvarying vec3 surfaceNormal;\\n\\nvec2 splitFloat(float v) {\\n float vh = 255.0 * v;\\n float upper = floor(vh);\\n float lower = fract(vh);\\n return vec2(upper / 255.0, floor(lower * 16.0) / 16.0);\\n}\\n\\nvoid main() {\\n if ((kill > 0.0) ||\\n (outOfRange(clipBounds[0], clipBounds[1], worldCoordinate))) discard;\\n\\n vec2 ux = splitFloat(planeCoordinate.x / shape.x);\\n vec2 uy = splitFloat(planeCoordinate.y / shape.y);\\n gl_FragColor = vec4(pickId, ux.x, uy.x, ux.y + (uy.y/16.0));\\n}\\n\"]);r.createShader=function(t){var e=n(t,a,o,null,[{name:\"uv\",type:\"vec4\"},{name:\"f\",type:\"vec3\"},{name:\"normal\",type:\"vec3\"}]);return e.attributes.uv.location=0,e.attributes.f.location=1,e.attributes.normal.location=2,e},r.createPickShader=function(t){var e=n(t,a,l,null,[{name:\"uv\",type:\"vec4\"},{name:\"f\",type:\"vec3\"},{name:\"normal\",type:\"vec3\"}]);return e.attributes.uv.location=0,e.attributes.f.location=1,e.attributes.normal.location=2,e},r.createContourShader=function(t){var e=n(t,s,o,null,[{name:\"uv\",type:\"vec4\"},{name:\"f\",type:\"float\"}]);return e.attributes.uv.location=0,e.attributes.f.location=1,e},r.createPickContourShader=function(t){var e=n(t,s,l,null,[{name:\"uv\",type:\"vec4\"},{name:\"f\",type:\"float\"}]);return e.attributes.uv.location=0,e.attributes.f.location=1,e}},{\"gl-shader\":288,glslify:392}],303:[function(t,e,r){\"use strict\";e.exports=function(t){var e=t.gl,r=y(e),n=b(e),s=x(e),l=_(e),c=i(e),u=a(e,[{buffer:c,size:4,stride:w,offset:0},{buffer:c,size:3,stride:w,offset:16},{buffer:c,size:3,stride:w,offset:28}]),f=i(e),h=a(e,[{buffer:f,size:4,stride:20,offset:0},{buffer:f,size:1,stride:20,offset:16}]),p=i(e),d=a(e,[{buffer:p,size:2,type:e.FLOAT}]),g=o(e,1,S,e.RGBA,e.UNSIGNED_BYTE);g.minFilter=e.LINEAR,g.magFilter=e.LINEAR;var v=new E(e,[0,0],[[0,0,0],[0,0,0]],r,n,c,u,g,s,l,f,h,p,d),m={levels:[[],[],[]]};for(var k in t)m[k]=t[k];return m.colormap=m.colormap||\"jet\",v.update(m),v};var n=t(\"bit-twiddle\"),i=t(\"gl-buffer\"),a=t(\"gl-vao\"),o=t(\"gl-texture2d\"),s=t(\"typedarray-pool\"),l=t(\"colormap\"),c=t(\"ndarray-ops\"),u=t(\"ndarray-pack\"),f=t(\"ndarray\"),h=t(\"surface-nets\"),p=t(\"gl-mat4/multiply\"),d=t(\"gl-mat4/invert\"),g=t(\"binary-search-bounds\"),v=t(\"ndarray-gradient\"),m=t(\"./lib/shaders\"),y=m.createShader,x=m.createContourShader,b=m.createPickShader,_=m.createPickContourShader,w=40,k=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],M=[[0,0],[0,1],[1,0],[1,1],[1,0],[0,1]],A=[[0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0]];function T(t,e,r,n,i){this.position=t,this.index=e,this.uv=r,this.level=n,this.dataCoordinate=i}!function(){for(var t=0;t<3;++t){var e=A[t],r=(t+2)%3;e[(t+1)%3+0]=1,e[r+3]=1,e[t+6]=1}}();var S=256;function E(t,e,r,n,i,a,o,l,c,u,h,p,d,g){this.gl=t,this.shape=e,this.bounds=r,this.intensityBounds=[],this._shader=n,this._pickShader=i,this._coordinateBuffer=a,this._vao=o,this._colorMap=l,this._contourShader=c,this._contourPickShader=u,this._contourBuffer=h,this._contourVAO=p,this._contourOffsets=[[],[],[]],this._contourCounts=[[],[],[]],this._vertexCount=0,this._pickResult=new T([0,0,0],[0,0],[0,0],[0,0,0],[0,0,0]),this._dynamicBuffer=d,this._dynamicVAO=g,this._dynamicOffsets=[0,0,0],this._dynamicCounts=[0,0,0],this.contourWidth=[1,1,1],this.contourLevels=[[1],[1],[1]],this.contourTint=[0,0,0],this.contourColor=[[.5,.5,.5,1],[.5,.5,.5,1],[.5,.5,.5,1]],this.showContour=!0,this.showSurface=!0,this.enableHighlight=[!0,!0,!0],this.highlightColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.highlightTint=[1,1,1],this.highlightLevel=[-1,-1,-1],this.enableDynamic=[!0,!0,!0],this.dynamicLevel=[NaN,NaN,NaN],this.dynamicColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.dynamicTint=[1,1,1],this.dynamicWidth=[1,1,1],this.axesBounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.surfaceProject=[!1,!1,!1],this.contourProject=[[!1,!1,!1],[!1,!1,!1],[!1,!1,!1]],this.colorBounds=[!1,!1],this._field=[f(s.mallocFloat(1024),[0,0]),f(s.mallocFloat(1024),[0,0]),f(s.mallocFloat(1024),[0,0])],this.pickId=1,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.snapToData=!1,this.opacity=1,this.lightPosition=[10,1e4,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.vertexColor=0,this.dirty=!0}var C=E.prototype;C.isTransparent=function(){return this.opacity<1},C.isOpaque=function(){if(this.opacity>=1)return!0;for(var t=0;t<3;++t)if(this._contourCounts[t].length>0||this._dynamicCounts[t]>0)return!0;return!1},C.pickSlots=1,C.setPickBase=function(t){this.pickId=t};var L=[0,0,0],z={showSurface:!1,showContour:!1,projections:[k.slice(),k.slice(),k.slice()],clipBounds:[[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]]]};function O(t,e){var r,n,i,a=e.axes&&e.axes.lastCubeProps.axis||L,o=e.showSurface,s=e.showContour;for(r=0;r<3;++r)for(o=o||e.surfaceProject[r],n=0;n<3;++n)s=s||e.contourProject[r][n];for(r=0;r<3;++r){var l=z.projections[r];for(n=0;n<16;++n)l[n]=0;for(n=0;n<4;++n)l[5*n]=1;l[5*r]=0,l[12+r]=e.axesBounds[+(a[r]>0)][r],p(l,t.model,l);var c=z.clipBounds[r];for(i=0;i<2;++i)for(n=0;n<3;++n)c[i][n]=t.clipBounds[i][n];c[0][r]=-1e8,c[1][r]=1e8}return z.showSurface=o,z.showContour=s,z}var I={model:k,view:k,projection:k,inverseModel:k.slice(),lowerBound:[0,0,0],upperBound:[0,0,0],colorMap:0,clipBounds:[[0,0,0],[0,0,0]],height:0,contourTint:0,contourColor:[0,0,0,1],permutation:[1,0,0,0,1,0,0,0,1],zOffset:-1e-4,kambient:1,kdiffuse:1,kspecular:1,lightPosition:[1e3,1e3,1e3],eyePosition:[0,0,0],roughness:1,fresnel:1,opacity:1,vertexColor:0},P=k.slice(),D=[1,0,0,0,1,0,0,0,1];function R(t,e){t=t||{};var r=this.gl;r.disable(r.CULL_FACE),this._colorMap.bind(0);var n=I;n.model=t.model||k,n.view=t.view||k,n.projection=t.projection||k,n.lowerBound=[this.bounds[0][0],this.bounds[0][1],this.colorBounds[0]||this.bounds[0][2]],n.upperBound=[this.bounds[1][0],this.bounds[1][1],this.colorBounds[1]||this.bounds[1][2]],n.contourColor=this.contourColor[0],n.inverseModel=d(n.inverseModel,n.model);for(var i=0;i<2;++i)for(var a=n.clipBounds[i],o=0;o<3;++o)a[o]=Math.min(Math.max(this.clipBounds[i][o],-1e8),1e8);n.kambient=this.ambientLight,n.kdiffuse=this.diffuseLight,n.kspecular=this.specularLight,n.roughness=this.roughness,n.fresnel=this.fresnel,n.opacity=this.opacity,n.height=0,n.permutation=D,n.vertexColor=this.vertexColor;var s=P;for(p(s,n.view,n.model),p(s,n.projection,s),d(s,s),i=0;i<3;++i)n.eyePosition[i]=s[12+i]/s[15];var l=s[15];for(i=0;i<3;++i)l+=this.lightPosition[i]*s[4*i+3];for(i=0;i<3;++i){var c=s[12+i];for(o=0;o<3;++o)c+=s[4*o+i]*this.lightPosition[o];n.lightPosition[i]=c/l}var u=O(n,this);if(u.showSurface&&e===this.opacity<1){for(this._shader.bind(),this._shader.uniforms=n,this._vao.bind(),this.showSurface&&this._vertexCount&&this._vao.draw(r.TRIANGLES,this._vertexCount),i=0;i<3;++i)this.surfaceProject[i]&&this.vertexCount&&(this._shader.uniforms.model=u.projections[i],this._shader.uniforms.clipBounds=u.clipBounds[i],this._vao.draw(r.TRIANGLES,this._vertexCount));this._vao.unbind()}if(u.showContour&&!e){var f=this._contourShader;n.kambient=1,n.kdiffuse=0,n.kspecular=0,n.opacity=1,f.bind(),f.uniforms=n;var h=this._contourVAO;for(h.bind(),i=0;i<3;++i)for(f.uniforms.permutation=A[i],r.lineWidth(this.contourWidth[i]),o=0;o<this.contourLevels[i].length;++o)o===this.highlightLevel[i]?(f.uniforms.contourColor=this.highlightColor[i],f.uniforms.contourTint=this.highlightTint[i]):0!==o&&o-1!==this.highlightLevel[i]||(f.uniforms.contourColor=this.contourColor[i],f.uniforms.contourTint=this.contourTint[i]),this._contourCounts[i][o]&&(f.uniforms.height=this.contourLevels[i][o],h.draw(r.LINES,this._contourCounts[i][o],this._contourOffsets[i][o]));for(i=0;i<3;++i)for(f.uniforms.model=u.projections[i],f.uniforms.clipBounds=u.clipBounds[i],o=0;o<3;++o)if(this.contourProject[i][o]){f.uniforms.permutation=A[o],r.lineWidth(this.contourWidth[o]);for(var g=0;g<this.contourLevels[o].length;++g)g===this.highlightLevel[o]?(f.uniforms.contourColor=this.highlightColor[o],f.uniforms.contourTint=this.highlightTint[o]):0!==g&&g-1!==this.highlightLevel[o]||(f.uniforms.contourColor=this.contourColor[o],f.uniforms.contourTint=this.contourTint[o]),f.uniforms.height=this.contourLevels[o][g],h.draw(r.LINES,this._contourCounts[o][g],this._contourOffsets[o][g])}for(h.unbind(),(h=this._dynamicVAO).bind(),i=0;i<3;++i)if(0!==this._dynamicCounts[i])for(f.uniforms.model=n.model,f.uniforms.clipBounds=n.clipBounds,f.uniforms.permutation=A[i],r.lineWidth(this.dynamicWidth[i]),f.uniforms.contourColor=this.dynamicColor[i],f.uniforms.contourTint=this.dynamicTint[i],f.uniforms.height=this.dynamicLevel[i],h.draw(r.LINES,this._dynamicCounts[i],this._dynamicOffsets[i]),o=0;o<3;++o)this.contourProject[o][i]&&(f.uniforms.model=u.projections[o],f.uniforms.clipBounds=u.clipBounds[o],h.draw(r.LINES,this._dynamicCounts[i],this._dynamicOffsets[i]));h.unbind()}}C.draw=function(t){return R.call(this,t,!1)},C.drawTransparent=function(t){return R.call(this,t,!0)};var B={model:k,view:k,projection:k,inverseModel:k,clipBounds:[[0,0,0],[0,0,0]],height:0,shape:[0,0],pickId:0,lowerBound:[0,0,0],upperBound:[0,0,0],zOffset:0,permutation:[1,0,0,0,1,0,0,0,1],lightPosition:[0,0,0],eyePosition:[0,0,0]};function F(t,e){var r=e.shape.slice(),n=t.shape.slice();c.assign(t.lo(1,1).hi(r[0],r[1]),e),c.assign(t.lo(1).hi(r[0],1),e.hi(r[0],1)),c.assign(t.lo(1,n[1]-1).hi(r[0],1),e.lo(0,r[1]-1).hi(r[0],1)),c.assign(t.lo(0,1).hi(1,r[1]),e.hi(1)),c.assign(t.lo(n[0]-1,1).hi(1,r[1]),e.lo(r[0]-1)),t.set(0,0,e.get(0,0)),t.set(0,n[1]-1,e.get(0,r[1]-1)),t.set(n[0]-1,0,e.get(r[0]-1,0)),t.set(n[0]-1,n[1]-1,e.get(r[0]-1,r[1]-1))}function N(t,e){return Array.isArray(t)?[e(t[0]),e(t[1]),e(t[2])]:[e(t),e(t),e(t)]}function j(t){return Array.isArray(t)?3===t.length?[t[0],t[1],t[2],1]:[t[0],t[1],t[2],t[3]]:[0,0,0,1]}function V(t){if(Array.isArray(t)){if(Array.isArray(t))return[j(t[0]),j(t[1]),j(t[2])];var e=j(t);return[e.slice(),e.slice(),e.slice()]}}C.drawPick=function(t){t=t||{};var e=this.gl;e.disable(e.CULL_FACE);var r=B;r.model=t.model||k,r.view=t.view||k,r.projection=t.projection||k,r.shape=this._field[2].shape,r.pickId=this.pickId/255,r.lowerBound=this.bounds[0],r.upperBound=this.bounds[1],r.permutation=D;for(var n=0;n<2;++n)for(var i=r.clipBounds[n],a=0;a<3;++a)i[a]=Math.min(Math.max(this.clipBounds[n][a],-1e8),1e8);var o=O(r,this);if(o.showSurface){for(this._pickShader.bind(),this._pickShader.uniforms=r,this._vao.bind(),this._vao.draw(e.TRIANGLES,this._vertexCount),n=0;n<3;++n)this.surfaceProject[n]&&(this._pickShader.uniforms.model=o.projections[n],this._pickShader.uniforms.clipBounds=o.clipBounds[n],this._vao.draw(e.TRIANGLES,this._vertexCount));this._vao.unbind()}if(o.showContour){var s=this._contourPickShader;s.bind(),s.uniforms=r;var l=this._contourVAO;for(l.bind(),a=0;a<3;++a)for(e.lineWidth(this.contourWidth[a]),s.uniforms.permutation=A[a],n=0;n<this.contourLevels[a].length;++n)this._contourCounts[a][n]&&(s.uniforms.height=this.contourLevels[a][n],l.draw(e.LINES,this._contourCounts[a][n],this._contourOffsets[a][n]));for(n=0;n<3;++n)for(s.uniforms.model=o.projections[n],s.uniforms.clipBounds=o.clipBounds[n],a=0;a<3;++a)if(this.contourProject[n][a]){s.uniforms.permutation=A[a],e.lineWidth(this.contourWidth[a]);for(var c=0;c<this.contourLevels[a].length;++c)this._contourCounts[a][c]&&(s.uniforms.height=this.contourLevels[a][c],l.draw(e.LINES,this._contourCounts[a][c],this._contourOffsets[a][c]))}l.unbind()}},C.pick=function(t){if(!t)return null;if(t.id!==this.pickId)return null;var e=this._field[2].shape,r=this._pickResult,n=e[0]*(t.value[0]+(t.value[2]>>4)/16)/255,i=Math.floor(n),a=n-i,o=e[1]*(t.value[1]+(15&t.value[2])/16)/255,s=Math.floor(o),l=o-s;i+=1,s+=1;var c=r.position;c[0]=c[1]=c[2]=0;for(var u=0;u<2;++u)for(var f=u?a:1-a,h=0;h<2;++h)for(var p=i+u,d=s+h,v=f*(h?l:1-l),m=0;m<3;++m)c[m]+=this._field[m].get(p,d)*v;for(var y=this._pickResult.level,x=0;x<3;++x)if(y[x]=g.le(this.contourLevels[x],c[x]),y[x]<0)this.contourLevels[x].length>0&&(y[x]=0);else if(y[x]<this.contourLevels[x].length-1){var b=this.contourLevels[x][y[x]],_=this.contourLevels[x][y[x]+1];Math.abs(b-c[x])>Math.abs(_-c[x])&&(y[x]+=1)}for(r.index[0]=a<.5?i:i+1,r.index[1]=l<.5?s:s+1,r.uv[0]=n/e[0],r.uv[1]=o/e[1],m=0;m<3;++m)r.dataCoordinate[m]=this._field[m].get(r.index[0],r.index[1]);return r},C.update=function(t){t=t||{},this.dirty=!0,\"contourWidth\"in t&&(this.contourWidth=N(t.contourWidth,Number)),\"showContour\"in t&&(this.showContour=N(t.showContour,Boolean)),\"showSurface\"in t&&(this.showSurface=!!t.showSurface),\"contourTint\"in t&&(this.contourTint=N(t.contourTint,Boolean)),\"contourColor\"in t&&(this.contourColor=V(t.contourColor)),\"contourProject\"in t&&(this.contourProject=N(t.contourProject,function(t){return N(t,Boolean)})),\"surfaceProject\"in t&&(this.surfaceProject=t.surfaceProject),\"dynamicColor\"in t&&(this.dynamicColor=V(t.dynamicColor)),\"dynamicTint\"in t&&(this.dynamicTint=N(t.dynamicTint,Number)),\"dynamicWidth\"in t&&(this.dynamicWidth=N(t.dynamicWidth,Number)),\"opacity\"in t&&(this.opacity=t.opacity),\"colorBounds\"in t&&(this.colorBounds=t.colorBounds),\"vertexColor\"in t&&(this.vertexColor=t.vertexColor?1:0);var e=t.field||t.coords&&t.coords[2]||null,r=!1;if(e||(e=this._field[2].shape[0]||this._field[2].shape[2]?this._field[2].lo(1,1).hi(this._field[2].shape[0]-2,this._field[2].shape[1]-2):this._field[2].hi(0,0)),\"field\"in t||\"coords\"in t){var i=(e.shape[0]+2)*(e.shape[1]+2);i>this._field[2].data.length&&(s.freeFloat(this._field[2].data),this._field[2].data=s.mallocFloat(n.nextPow2(i))),this._field[2]=f(this._field[2].data,[e.shape[0]+2,e.shape[1]+2]),F(this._field[2],e),this.shape=e.shape.slice();for(var a=this.shape,o=0;o<2;++o)this._field[2].size>this._field[o].data.length&&(s.freeFloat(this._field[o].data),this._field[o].data=s.mallocFloat(this._field[2].size)),this._field[o]=f(this._field[o].data,[a[0]+2,a[1]+2]);if(t.coords){var p=t.coords;if(!Array.isArray(p)||3!==p.length)throw new Error(\"gl-surface: invalid coordinates for x/y\");for(o=0;o<2;++o){var d=p[o];for(b=0;b<2;++b)if(d.shape[b]!==a[b])throw new Error(\"gl-surface: coords have incorrect shape\");F(this._field[o],d)}}else if(t.ticks){var g=t.ticks;if(!Array.isArray(g)||2!==g.length)throw new Error(\"gl-surface: invalid ticks\");for(o=0;o<2;++o){var m=g[o];if((Array.isArray(m)||m.length)&&(m=f(m)),m.shape[0]!==a[o])throw new Error(\"gl-surface: invalid tick length\");var y=f(m.data,a);y.stride[o]=m.stride[0],y.stride[1^o]=0,F(this._field[o],y)}}else{for(o=0;o<2;++o){var x=[0,0];x[o]=1,this._field[o]=f(this._field[o].data,[a[0]+2,a[1]+2],x,0)}this._field[0].set(0,0,0);for(var b=0;b<a[0];++b)this._field[0].set(b+1,0,b);for(this._field[0].set(a[0]+1,0,a[0]-1),this._field[1].set(0,0,0),b=0;b<a[1];++b)this._field[1].set(0,b+1,b);this._field[1].set(0,a[1]+1,a[1]-1)}var _=this._field,w=f(s.mallocFloat(3*_[2].size*2),[3,a[0]+2,a[1]+2,2]);for(o=0;o<3;++o)v(w.pick(o),_[o],\"mirror\");var k=f(s.mallocFloat(3*_[2].size),[a[0]+2,a[1]+2,3]);for(o=0;o<a[0]+2;++o)for(b=0;b<a[1]+2;++b){var A=w.get(0,o,b,0),T=w.get(0,o,b,1),E=w.get(1,o,b,0),C=w.get(1,o,b,1),L=w.get(2,o,b,0),z=w.get(2,o,b,1),O=E*z-C*L,I=L*T-z*A,P=A*C-T*E,D=Math.sqrt(O*O+I*I+P*P);D<1e-8?(D=Math.max(Math.abs(O),Math.abs(I),Math.abs(P)))<1e-8?(P=1,I=O=0,D=1):D=1/D:D=1/Math.sqrt(D),k.set(o,b,0,O*D),k.set(o,b,1,I*D),k.set(o,b,2,P*D)}s.free(w.data);var R=[1/0,1/0,1/0],B=[-1/0,-1/0,-1/0],j=1/0,U=-1/0,q=(a[0]-1)*(a[1]-1)*6,H=s.mallocFloat(n.nextPow2(10*q)),G=0,W=0;for(o=0;o<a[0]-1;++o)t:for(b=0;b<a[1]-1;++b){for(var Y=0;Y<2;++Y)for(var X=0;X<2;++X)for(var Z=0;Z<3;++Z){var $=this._field[Z].get(1+o+Y,1+b+X);if(isNaN($)||!isFinite($))continue t}for(Z=0;Z<6;++Z){var J=o+M[Z][0],K=b+M[Z][1],Q=this._field[0].get(J+1,K+1),tt=this._field[1].get(J+1,K+1),et=$=this._field[2].get(J+1,K+1);O=k.get(J+1,K+1,0),I=k.get(J+1,K+1,1),P=k.get(J+1,K+1,2),t.intensity&&(et=t.intensity.get(J,K)),H[G++]=J,H[G++]=K,H[G++]=Q,H[G++]=tt,H[G++]=$,H[G++]=0,H[G++]=et,H[G++]=O,H[G++]=I,H[G++]=P,R[0]=Math.min(R[0],Q),R[1]=Math.min(R[1],tt),R[2]=Math.min(R[2],$),j=Math.min(j,et),B[0]=Math.max(B[0],Q),B[1]=Math.max(B[1],tt),B[2]=Math.max(B[2],$),U=Math.max(U,et),W+=1}}for(t.intensityBounds&&(j=+t.intensityBounds[0],U=+t.intensityBounds[1]),o=6;o<G;o+=10)H[o]=(H[o]-j)/(U-j);this._vertexCount=W,this._coordinateBuffer.update(H.subarray(0,G)),s.freeFloat(H),s.free(k.data),this.bounds=[R,B],this.intensity=t.intensity||this._field[2],this.intensityBounds[0]===j&&this.intensityBounds[1]===U||(r=!0),this.intensityBounds=[j,U]}if(\"levels\"in t){var rt=t.levels;for(rt=Array.isArray(rt[0])?rt.slice():[[],[],rt],o=0;o<3;++o)rt[o]=rt[o].slice(),rt.sort(function(t,e){return t-e});t:for(o=0;o<3;++o){if(rt[o].length!==this.contourLevels[o].length){r=!0;break}for(b=0;b<rt[o].length;++b)if(rt[o][b]!==this.contourLevels[o][b]){r=!0;break t}}this.contourLevels=rt}if(r){_=this._field,a=this.shape;for(var nt=[],it=0;it<3;++it){rt=this.contourLevels[it];var at=[],ot=[],st=[0,0,0];for(o=0;o<rt.length;++o){var lt=h(this._field[it],rt[o]);at.push(nt.length/5|0),W=0;t:for(b=0;b<lt.cells.length;++b){var ct=lt.cells[b];for(Z=0;Z<2;++Z){var ut=lt.positions[ct[Z]],ft=ut[0],ht=0|Math.floor(ft),pt=ft-ht,dt=ut[1],gt=0|Math.floor(dt),vt=dt-gt,mt=!1;e:for(var yt=0;yt<3;++yt){st[yt]=0;var xt=(it+yt+1)%3;for(Y=0;Y<2;++Y){var bt=Y?pt:1-pt;for(J=0|Math.min(Math.max(ht+Y,0),a[0]),X=0;X<2;++X){var _t=X?vt:1-vt;if(K=0|Math.min(Math.max(gt+X,0),a[1]),$=yt<2?this._field[xt].get(J,K):(this.intensity.get(J,K)-this.intensityBounds[0])/(this.intensityBounds[1]-this.intensityBounds[0]),!isFinite($)||isNaN($)){mt=!0;break e}var wt=bt*_t;st[yt]+=wt*$}}}if(mt){if(Z>0){for(var kt=0;kt<5;++kt)nt.pop();W-=1}continue t}nt.push(st[0],st[1],ut[0],ut[1],st[2]),W+=1}}ot.push(W)}this._contourOffsets[it]=at,this._contourCounts[it]=ot}var Mt=s.mallocFloat(nt.length);for(o=0;o<nt.length;++o)Mt[o]=nt[o];this._contourBuffer.update(Mt),s.freeFloat(Mt)}t.colormap&&this._colorMap.setPixels(function(t){var e=u([l({colormap:t,nshades:S,format:\"rgba\"}).map(function(t){return[t[0],t[1],t[2],255*t[3]]})]);return c.divseq(e,255),e}(t.colormap))},C.dispose=function(){this._shader.dispose(),this._vao.dispose(),this._coordinateBuffer.dispose(),this._colorMap.dispose(),this._contourBuffer.dispose(),this._contourVAO.dispose(),this._contourShader.dispose(),this._contourPickShader.dispose(),this._dynamicBuffer.dispose(),this._dynamicVAO.dispose();for(var t=0;t<3;++t)s.freeFloat(this._field[t].data)},C.highlight=function(t){if(!t)return this._dynamicCounts=[0,0,0],this.dyanamicLevel=[NaN,NaN,NaN],void(this.highlightLevel=[-1,-1,-1]);for(var e=0;e<3;++e)this.enableHighlight[e]?this.highlightLevel[e]=t.level[e]:this.highlightLevel[e]=-1;var r;if(r=this.snapToData?t.dataCoordinate:t.position,this.enableDynamic[0]&&r[0]!==this.dynamicLevel[0]||this.enableDynamic[1]&&r[1]!==this.dynamicLevel[1]||this.enableDynamic[2]&&r[2]!==this.dynamicLevel[2]){for(var n=0,i=this.shape,a=s.mallocFloat(12*i[0]*i[1]),o=0;o<3;++o)if(this.enableDynamic[o]){this.dynamicLevel[o]=r[o];var l=(o+1)%3,c=(o+2)%3,u=this._field[o],f=this._field[l],p=this._field[c],d=(this.intensity,h(u,r[o])),g=d.cells,v=d.positions;for(this._dynamicOffsets[o]=n,e=0;e<g.length;++e)for(var m=g[e],y=0;y<2;++y){var x=v[m[y]],b=+x[0],_=0|b,w=0|Math.min(_+1,i[0]),k=b-_,M=1-k,A=+x[1],T=0|A,S=0|Math.min(T+1,i[1]),E=A-T,C=1-E,L=M*C,z=M*E,O=k*C,I=k*E,P=L*f.get(_,T)+z*f.get(_,S)+O*f.get(w,T)+I*f.get(w,S),D=L*p.get(_,T)+z*p.get(_,S)+O*p.get(w,T)+I*p.get(w,S);if(isNaN(P)||isNaN(D)){y&&(n-=1);break}a[2*n+0]=P,a[2*n+1]=D,n+=1}this._dynamicCounts[o]=n-this._dynamicOffsets[o]}else this.dynamicLevel[o]=NaN,this._dynamicCounts[o]=0;this._dynamicBuffer.update(a.subarray(0,2*n)),s.freeFloat(a)}}},{\"./lib/shaders\":302,\"binary-search-bounds\":79,\"bit-twiddle\":80,colormap:114,\"gl-buffer\":230,\"gl-mat4/invert\":254,\"gl-mat4/multiply\":256,\"gl-texture2d\":305,\"gl-vao\":310,ndarray:433,\"ndarray-gradient\":424,\"ndarray-ops\":427,\"ndarray-pack\":428,\"surface-nets\":508,\"typedarray-pool\":522}],304:[function(t,e,r){\"use strict\";var n=t(\"css-font\"),i=t(\"pick-by-alias\"),a=t(\"regl\"),o=t(\"gl-util/context\"),s=t(\"es6-weak-map\"),l=t(\"color-normalize\"),c=t(\"font-atlas\"),u=t(\"typedarray-pool\"),f=t(\"parse-rect\"),h=t(\"is-plain-obj\"),p=t(\"parse-unit\"),d=t(\"to-px\"),g=t(\"detect-kerning\"),v=t(\"object-assign\"),m=t(\"font-measure\"),y=t(\"flatten-vertex-data\"),x=t(\"bit-twiddle\").nextPow2,b=new s,_=!1;if(document.body){var w=document.body.appendChild(document.createElement(\"div\"));w.style.font=\"italic small-caps bold condensed 16px/2 cursive\",getComputedStyle(w).fontStretch&&(_=!0),document.body.removeChild(w)}var k=function(t){!function(t){return\"function\"==typeof t&&t._gl&&t.prop&&t.texture&&t.buffer}(t)?this.gl=o(t):(t={regl:t},this.gl=t.regl._gl),this.shader=b.get(this.gl),this.shader?this.regl=this.shader.regl:this.regl=t.regl||a({gl:this.gl}),this.charBuffer=this.regl.buffer({type:\"uint8\",usage:\"stream\"}),this.sizeBuffer=this.regl.buffer({type:\"float\",usage:\"stream\"}),this.shader||(this.shader=this.createShader(),b.set(this.gl,this.shader)),this.batch=[],this.fontSize=[],this.font=[],this.fontAtlas=[],this.draw=this.shader.draw.bind(this),this.render=function(){this.regl._refresh(),this.draw(this.batch)},this.canvas=this.gl.canvas,this.update(h(t)?t:{})};k.prototype.createShader=function(){var t=this.regl,e=t({blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:\"src alpha\",dstRGB:\"one minus src alpha\",srcAlpha:\"one minus dst alpha\",dstAlpha:\"one\"}},stencil:{enable:!1},depth:{enable:!1},count:t.prop(\"count\"),offset:t.prop(\"offset\"),attributes:{charOffset:{offset:4,stride:8,buffer:t.this(\"sizeBuffer\")},width:{offset:0,stride:8,buffer:t.this(\"sizeBuffer\")},char:t.this(\"charBuffer\"),position:t.this(\"position\")},uniforms:{atlasSize:function(t,e){return[e.atlas.width,e.atlas.height]},atlasDim:function(t,e){return[e.atlas.cols,e.atlas.rows]},atlas:function(t,e){return e.atlas.texture},charStep:function(t,e){return e.atlas.step},em:function(t,e){return e.atlas.em},color:t.prop(\"color\"),opacity:t.prop(\"opacity\"),viewport:t.this(\"viewportArray\"),scale:t.this(\"scale\"),align:t.prop(\"align\"),baseline:t.prop(\"baseline\"),translate:t.this(\"translate\"),positionOffset:t.prop(\"positionOffset\")},primitive:\"points\",viewport:t.this(\"viewport\"),vert:\"\\n\\t\\t\\tprecision highp float;\\n\\t\\t\\tattribute float width, charOffset, char;\\n\\t\\t\\tattribute vec2 position;\\n\\t\\t\\tuniform float fontSize, charStep, em, align, baseline;\\n\\t\\t\\tuniform vec4 viewport;\\n\\t\\t\\tuniform vec4 color;\\n\\t\\t\\tuniform vec2 atlasSize, atlasDim, scale, translate, positionOffset;\\n\\t\\t\\tvarying vec2 charCoord, charId;\\n\\t\\t\\tvarying float charWidth;\\n\\t\\t\\tvarying vec4 fontColor;\\n\\t\\t\\tvoid main () {\\n\\t\\t\\t\\t\"+(k.normalViewport?\"\":\"vec2 positionOffset = vec2(positionOffset.x,- positionOffset.y);\")+\"\\n\\n\\t\\t\\t\\tvec2 offset = floor(em * (vec2(align + charOffset, baseline)\\n\\t\\t\\t\\t\\t+ positionOffset))\\n\\t\\t\\t\\t\\t/ (viewport.zw * scale.xy);\\n\\n\\t\\t\\t\\tvec2 position = (position + translate) * scale;\\n\\t\\t\\t\\tposition += offset * scale;\\n\\n\\t\\t\\t\\t\"+(k.normalViewport?\"position.y = 1. - position.y;\":\"\")+\"\\n\\n\\t\\t\\t\\tcharCoord = position * viewport.zw + viewport.xy;\\n\\n\\t\\t\\t\\tgl_Position = vec4(position * 2. - 1., 0, 1);\\n\\n\\t\\t\\t\\tgl_PointSize = charStep;\\n\\n\\t\\t\\t\\tcharId.x = mod(char, atlasDim.x);\\n\\t\\t\\t\\tcharId.y = floor(char / atlasDim.x);\\n\\n\\t\\t\\t\\tcharWidth = width * em;\\n\\n\\t\\t\\t\\tfontColor = color / 255.;\\n\\t\\t\\t}\",frag:\"\\n\\t\\t\\tprecision highp float;\\n\\t\\t\\tuniform sampler2D atlas;\\n\\t\\t\\tuniform float fontSize, charStep, opacity;\\n\\t\\t\\tuniform vec2 atlasSize;\\n\\t\\t\\tuniform vec4 viewport;\\n\\t\\t\\tvarying vec4 fontColor;\\n\\t\\t\\tvarying vec2 charCoord, charId;\\n\\t\\t\\tvarying float charWidth;\\n\\n\\t\\t\\tfloat lightness(vec4 color) {\\n\\t\\t\\t\\treturn color.r * 0.299 + color.g * 0.587 + color.b * 0.114;\\n\\t\\t\\t}\\n\\n\\t\\t\\tvoid main () {\\n\\t\\t\\t\\tvec2 uv = gl_FragCoord.xy - charCoord + charStep * .5;\\n\\t\\t\\t\\tfloat halfCharStep = floor(charStep * .5 + .5);\\n\\n\\t\\t\\t\\t// invert y and shift by 1px (FF expecially needs that)\\n\\t\\t\\t\\tuv.y = charStep - uv.y;\\n\\n\\t\\t\\t\\t// ignore points outside of character bounding box\\n\\t\\t\\t\\tfloat halfCharWidth = ceil(charWidth * .5);\\n\\t\\t\\t\\tif (floor(uv.x) > halfCharStep + halfCharWidth ||\\n\\t\\t\\t\\t\\tfloor(uv.x) < halfCharStep - halfCharWidth) return;\\n\\n\\t\\t\\t\\tuv += charId * charStep;\\n\\t\\t\\t\\tuv = uv / atlasSize;\\n\\n\\t\\t\\t\\tvec4 color = fontColor;\\n\\t\\t\\t\\tvec4 mask = texture2D(atlas, uv);\\n\\n\\t\\t\\t\\tfloat maskY = lightness(mask);\\n\\t\\t\\t\\t// float colorY = lightness(color);\\n\\t\\t\\t\\tcolor.a *= maskY;\\n\\t\\t\\t\\tcolor.a *= opacity;\\n\\n\\t\\t\\t\\t// color.a += .1;\\n\\n\\t\\t\\t\\t// antialiasing, see yiq color space y-channel formula\\n\\t\\t\\t\\t// color.rgb += (1. - color.rgb) * (1. - mask.rgb);\\n\\n\\t\\t\\t\\tgl_FragColor = color;\\n\\t\\t\\t}\"});return{regl:t,draw:e,atlas:{}}},k.prototype.update=function(t){var e=this;if(\"string\"==typeof t)t={text:t};else if(!t)return;null!=(t=i(t,{position:\"position positions coord coords coordinates\",font:\"font fontFace fontface typeface cssFont css-font family fontFamily\",fontSize:\"fontSize fontsize size font-size\",text:\"text texts chars characters value values symbols\",align:\"align alignment textAlign textbaseline\",baseline:\"baseline textBaseline textbaseline\",direction:\"dir direction textDirection\",color:\"color colour fill fill-color fillColor textColor textcolor\",kerning:\"kerning kern\",range:\"range dataBox\",viewport:\"vp viewport viewBox viewbox viewPort\",opacity:\"opacity alpha transparency visible visibility opaque\",offset:\"offset positionOffset padding shift indent indentation\"},!0)).opacity&&(Array.isArray(t.opacity)?this.opacity=t.opacity.map(function(t){return parseFloat(t)}):this.opacity=parseFloat(t.opacity)),null!=t.viewport&&(this.viewport=f(t.viewport),k.normalViewport&&(this.viewport.y=this.canvas.height-this.viewport.y-this.viewport.height),this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),null==this.viewport&&(this.viewport={x:0,y:0,width:this.gl.drawingBufferWidth,height:this.gl.drawingBufferHeight},this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),null!=t.kerning&&(this.kerning=t.kerning),null!=t.offset&&(\"number\"==typeof t.offset&&(t.offset=[t.offset,0]),this.positionOffset=y(t.offset)),t.direction&&(this.direction=t.direction),t.range&&(this.range=t.range,this.scale=[1/(t.range[2]-t.range[0]),1/(t.range[3]-t.range[1])],this.translate=[-t.range[0],-t.range[1]]),t.scale&&(this.scale=t.scale),t.translate&&(this.translate=t.translate),this.scale||(this.scale=[1/this.viewport.width,1/this.viewport.height]),this.translate||(this.translate=[0,0]),this.font.length||t.font||(t.font=k.baseFontSize+\"px sans-serif\");var r,a=!1,o=!1;if(t.font&&(Array.isArray(t.font)?t.font:[t.font]).forEach(function(t,r){if(\"string\"==typeof t)try{t=n.parse(t)}catch(e){t=n.parse(k.baseFontSize+\"px \"+t)}else t=n.parse(n.stringify(t));var i=n.stringify({size:k.baseFontSize,family:t.family,stretch:_?t.stretch:void 0,variant:t.variant,weight:t.weight,style:t.style}),s=p(t.size),l=Math.round(s[0]*d(s[1]));if(l!==e.fontSize[r]&&(o=!0,e.fontSize[r]=l),!(e.font[r]&&i==e.font[r].baseString||(a=!0,e.font[r]=k.fonts[i],e.font[r]))){var c=t.family.join(\", \"),u=[t.style];t.style!=t.variant&&u.push(t.variant),t.variant!=t.weight&&u.push(t.weight),_&&t.weight!=t.stretch&&u.push(t.stretch),e.font[r]={baseString:i,family:c,weight:t.weight,stretch:t.stretch,style:t.style,variant:t.variant,width:{},kerning:{},metrics:m(c,{origin:\"top\",fontSize:k.baseFontSize,fontStyle:u.join(\" \")})},k.fonts[i]=e.font[r]}}),(a||o)&&this.font.forEach(function(r,i){var a=n.stringify({size:e.fontSize[i],family:r.family,stretch:_?r.stretch:void 0,variant:r.variant,weight:r.weight,style:r.style});if(e.fontAtlas[i]=e.shader.atlas[a],!e.fontAtlas[i]){var o=r.metrics;e.shader.atlas[a]=e.fontAtlas[i]={fontString:a,step:2*Math.ceil(e.fontSize[i]*o.bottom*.5),em:e.fontSize[i],cols:0,rows:0,height:0,width:0,chars:[],ids:{},texture:e.regl.texture()}}null==t.text&&(t.text=e.text)}),\"string\"==typeof t.text&&t.position&&t.position.length>2){for(var s=Array(.5*t.position.length),h=0;h<s.length;h++)s[h]=t.text;t.text=s}if(null!=t.text||a){if(this.textOffsets=[0],Array.isArray(t.text)){this.count=t.text[0].length,this.counts=[this.count];for(var b=1;b<t.text.length;b++)e.textOffsets[b]=e.textOffsets[b-1]+t.text[b-1].length,e.count+=t.text[b].length,e.counts.push(t.text[b].length);this.text=t.text.join(\"\")}else this.text=t.text,this.count=this.text.length,this.counts=[this.count];r=[],this.font.forEach(function(t,n){k.atlasContext.font=t.baseString;for(var i=e.fontAtlas[n],a=0;a<e.text.length;a++){var o=e.text.charAt(a);if(null==i.ids[o]&&(i.ids[o]=i.chars.length,i.chars.push(o),r.push(o)),null==t.width[o]&&(t.width[o]=k.atlasContext.measureText(o).width/k.baseFontSize,e.kerning)){var s=[];for(var l in t.width)s.push(l+o,o+l);v(t.kerning,g(t.family,{pairs:s}))}}})}if(t.position)if(t.position.length>2){for(var w=!t.position[0].length,M=u.mallocFloat(2*this.count),A=0,T=0;A<this.counts.length;A++){var S=e.counts[A];if(w)for(var E=0;E<S;E++)M[T++]=t.position[2*A],M[T++]=t.position[2*A+1];else for(var C=0;C<S;C++)M[T++]=t.position[A][0],M[T++]=t.position[A][1]}this.position.call?this.position({type:\"float\",data:M}):this.position=this.regl.buffer({type:\"float\",data:M}),u.freeFloat(M)}else this.position.destroy&&this.position.destroy(),this.position={constant:t.position};if(t.text||a){var L=u.mallocUint8(this.count),z=u.mallocFloat(2*this.count);this.textWidth=[];for(var O=0,I=0;O<this.counts.length;O++){for(var P=e.counts[O],D=e.font[O]||e.font[0],R=e.fontAtlas[O]||e.fontAtlas[0],B=0;B<P;B++){var F=e.text.charAt(I),N=e.text.charAt(I-1);if(L[I]=R.ids[F],z[2*I]=D.width[F],B){var j=z[2*I-2],V=z[2*I],U=z[2*I-1]+.5*j+.5*V;if(e.kerning){var q=D.kerning[N+F];q&&(U+=.001*q)}z[2*I+1]=U}else z[2*I+1]=.5*z[2*I];I++}e.textWidth.push(z.length?.5*z[2*I-2]+z[2*I-1]:0)}t.align||(t.align=this.align),this.charBuffer({data:L,type:\"uint8\",usage:\"stream\"}),this.sizeBuffer({data:z,type:\"float\",usage:\"stream\"}),u.freeUint8(L),u.freeFloat(z),r.length&&this.font.forEach(function(t,r){var n=e.fontAtlas[r],i=n.step,a=Math.floor(k.maxAtlasSize/i),o=Math.min(a,n.chars.length),s=Math.ceil(n.chars.length/o),l=x(o*i),u=x(s*i);n.width=l,n.height=u,n.rows=s,n.cols=o,n.em&&n.texture({data:c({canvas:k.atlasCanvas,font:n.fontString,chars:n.chars,shape:[l,u],step:[i,i]})})})}if(t.align&&(this.align=t.align,this.alignOffset=this.textWidth.map(function(t,r){var n=Array.isArray(e.align)?e.align.length>1?e.align[r]:e.align[0]:e.align;if(\"number\"==typeof n)return n;switch(n){case\"right\":case\"end\":return-t;case\"center\":case\"centre\":case\"middle\":return.5*-t}return 0})),null==this.baseline&&null==t.baseline&&(t.baseline=0),null!=t.baseline&&(this.baseline=t.baseline,Array.isArray(this.baseline)||(this.baseline=[this.baseline]),this.baselineOffset=this.baseline.map(function(t,r){var n=(e.font[r]||e.font[0]).metrics,i=0;return i+=.5*n.bottom,i+=\"number\"==typeof t?t-n.baseline:-n[t],k.normalViewport||(i*=-1),i})),null!=t.color)if(t.color||(t.color=\"transparent\"),\"string\"!=typeof t.color&&isNaN(t.color)){var H;if(\"number\"==typeof t.color[0]&&t.color.length>this.counts.length){var G=t.color.length;H=u.mallocUint8(G);for(var W=(t.color.subarray||t.color.slice).bind(t.color),Y=0;Y<G;Y+=4)H.set(l(W(Y,Y+4),\"uint8\"),Y)}else{var X=t.color.length;H=u.mallocUint8(4*X);for(var Z=0;Z<X;Z++)H.set(l(t.color[Z]||0,\"uint8\"),4*Z)}this.color=H}else this.color=l(t.color,\"uint8\");if(t.position||t.text||t.color||t.baseline||t.align||t.font||t.offset||t.opacity)if(this.color.length>4||this.baselineOffset.length>1||this.align&&this.align.length>1||this.fontAtlas.length>1||this.positionOffset.length>2){var $=Math.max(.5*this.position.length||0,.25*this.color.length||0,this.baselineOffset.length||0,this.alignOffset.length||0,this.font.length||0,this.opacity.length||0,.5*this.positionOffset.length||0);this.batch=Array($);for(var J=0;J<this.batch.length;J++)e.batch[J]={count:e.counts.length>1?e.counts[J]:e.counts[0],offset:e.textOffsets.length>1?e.textOffsets[J]:e.textOffsets[0],color:e.color?e.color.length<=4?e.color:e.color.subarray(4*J,4*J+4):[0,0,0,255],opacity:Array.isArray(e.opacity)?e.opacity[J]:e.opacity,baseline:null!=e.baselineOffset[J]?e.baselineOffset[J]:e.baselineOffset[0],align:e.align?null!=e.alignOffset[J]?e.alignOffset[J]:e.alignOffset[0]:0,atlas:e.fontAtlas[J]||e.fontAtlas[0],positionOffset:e.positionOffset.length>2?e.positionOffset.subarray(2*J,2*J+2):e.positionOffset}}else this.count?this.batch=[{count:this.count,offset:0,color:this.color||[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[0]:this.opacity,baseline:this.baselineOffset[0],align:this.alignOffset?this.alignOffset[0]:0,atlas:this.fontAtlas[0],positionOffset:this.positionOffset}]:this.batch=[]},k.prototype.destroy=function(){},k.prototype.kerning=!0,k.prototype.position={constant:new Float32Array(2)},k.prototype.translate=null,k.prototype.scale=null,k.prototype.font=null,k.prototype.text=\"\",k.prototype.positionOffset=[0,0],k.prototype.opacity=1,k.prototype.color=new Uint8Array([0,0,0,255]),k.prototype.alignOffset=[0,0],k.normalViewport=!1,k.maxAtlasSize=1024,k.atlasCanvas=document.createElement(\"canvas\"),k.atlasContext=k.atlasCanvas.getContext(\"2d\",{alpha:!1}),k.baseFontSize=64,k.fonts={},e.exports=k},{\"bit-twiddle\":80,\"color-normalize\":108,\"css-font\":127,\"detect-kerning\":151,\"es6-weak-map\":209,\"flatten-vertex-data\":216,\"font-atlas\":217,\"font-measure\":218,\"gl-util/context\":306,\"is-plain-obj\":405,\"object-assign\":437,\"parse-rect\":442,\"parse-unit\":444,\"pick-by-alias\":448,regl:478,\"to-px\":516,\"typedarray-pool\":522}],305:[function(t,e,r){\"use strict\";var n=t(\"ndarray\"),i=t(\"ndarray-ops\"),a=t(\"typedarray-pool\");e.exports=function(t){if(arguments.length<=1)throw new Error(\"gl-texture2d: Missing arguments for texture2d constructor\");o||function(t){o=[t.LINEAR,t.NEAREST_MIPMAP_LINEAR,t.LINEAR_MIPMAP_NEAREST,t.LINEAR_MIPMAP_NEAREST],s=[t.NEAREST,t.LINEAR,t.NEAREST_MIPMAP_NEAREST,t.NEAREST_MIPMAP_LINEAR,t.LINEAR_MIPMAP_NEAREST,t.LINEAR_MIPMAP_LINEAR],l=[t.REPEAT,t.CLAMP_TO_EDGE,t.MIRRORED_REPEAT]}(t);if(\"number\"==typeof arguments[1])return v(t,arguments[1],arguments[2],arguments[3]||t.RGBA,arguments[4]||t.UNSIGNED_BYTE);if(Array.isArray(arguments[1]))return v(t,0|arguments[1][0],0|arguments[1][1],arguments[2]||t.RGBA,arguments[3]||t.UNSIGNED_BYTE);if(\"object\"==typeof arguments[1]){var e=arguments[1],r=c(e)?e:e.raw;if(r)return function(t,e,r,n,i,a){var o=g(t);return t.texImage2D(t.TEXTURE_2D,0,i,i,a,e),new h(t,o,r,n,i,a)}(t,r,0|e.width,0|e.height,arguments[2]||t.RGBA,arguments[3]||t.UNSIGNED_BYTE);if(e.shape&&e.data&&e.stride)return function(t,e){var r=e.dtype,o=e.shape.slice(),s=t.getParameter(t.MAX_TEXTURE_SIZE);if(o[0]<0||o[0]>s||o[1]<0||o[1]>s)throw new Error(\"gl-texture2d: Invalid texture size\");var l=d(o,e.stride.slice()),c=0;\"float32\"===r?c=t.FLOAT:\"float64\"===r?(c=t.FLOAT,l=!1,r=\"float32\"):\"uint8\"===r?c=t.UNSIGNED_BYTE:(c=t.UNSIGNED_BYTE,l=!1,r=\"uint8\");var f,p,v=0;if(2===o.length)v=t.LUMINANCE,o=[o[0],o[1],1],e=n(e.data,o,[e.stride[0],e.stride[1],1],e.offset);else{if(3!==o.length)throw new Error(\"gl-texture2d: Invalid shape for texture\");if(1===o[2])v=t.ALPHA;else if(2===o[2])v=t.LUMINANCE_ALPHA;else if(3===o[2])v=t.RGB;else{if(4!==o[2])throw new Error(\"gl-texture2d: Invalid shape for pixel coords\");v=t.RGBA}}c!==t.FLOAT||t.getExtension(\"OES_texture_float\")||(c=t.UNSIGNED_BYTE,l=!1);var m=e.size;if(l)f=0===e.offset&&e.data.length===m?e.data:e.data.subarray(e.offset,e.offset+m);else{var y=[o[2],o[2]*o[0],1];p=a.malloc(m,r);var x=n(p,o,y,0);\"float32\"!==r&&\"float64\"!==r||c!==t.UNSIGNED_BYTE?i.assign(x,e):u(x,e),f=p.subarray(0,m)}var b=g(t);t.texImage2D(t.TEXTURE_2D,0,v,o[0],o[1],0,v,c,f),l||a.free(p);return new h(t,b,o[0],o[1],v,c)}(t,e)}throw new Error(\"gl-texture2d: Invalid arguments for texture2d constructor\")};var o=null,s=null,l=null;function c(t){return\"undefined\"!=typeof HTMLCanvasElement&&t instanceof HTMLCanvasElement||\"undefined\"!=typeof HTMLImageElement&&t instanceof HTMLImageElement||\"undefined\"!=typeof HTMLVideoElement&&t instanceof HTMLVideoElement||\"undefined\"!=typeof ImageData&&t instanceof ImageData}var u=function(t,e){i.muls(t,e,255)};function f(t,e,r){var n=t.gl,i=n.getParameter(n.MAX_TEXTURE_SIZE);if(e<0||e>i||r<0||r>i)throw new Error(\"gl-texture2d: Invalid texture size\");return t._shape=[e,r],t.bind(),n.texImage2D(n.TEXTURE_2D,0,t.format,e,r,0,t.format,t.type,null),t._mipLevels=[0],t}function h(t,e,r,n,i,a){this.gl=t,this.handle=e,this.format=i,this.type=a,this._shape=[r,n],this._mipLevels=[0],this._magFilter=t.NEAREST,this._minFilter=t.NEAREST,this._wrapS=t.CLAMP_TO_EDGE,this._wrapT=t.CLAMP_TO_EDGE,this._anisoSamples=1;var o=this,s=[this._wrapS,this._wrapT];Object.defineProperties(s,[{get:function(){return o._wrapS},set:function(t){return o.wrapS=t}},{get:function(){return o._wrapT},set:function(t){return o.wrapT=t}}]),this._wrapVector=s;var l=[this._shape[0],this._shape[1]];Object.defineProperties(l,[{get:function(){return o._shape[0]},set:function(t){return o.width=t}},{get:function(){return o._shape[1]},set:function(t){return o.height=t}}]),this._shapeVector=l}var p=h.prototype;function d(t,e){return 3===t.length?1===e[2]&&e[1]===t[0]*t[2]&&e[0]===t[2]:1===e[0]&&e[1]===t[0]}function g(t){var e=t.createTexture();return t.bindTexture(t.TEXTURE_2D,e),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),e}function v(t,e,r,n,i){var a=t.getParameter(t.MAX_TEXTURE_SIZE);if(e<0||e>a||r<0||r>a)throw new Error(\"gl-texture2d: Invalid texture shape\");if(i===t.FLOAT&&!t.getExtension(\"OES_texture_float\"))throw new Error(\"gl-texture2d: Floating point textures not supported on this platform\");var o=g(t);return t.texImage2D(t.TEXTURE_2D,0,n,e,r,0,n,i,null),new h(t,o,e,r,n,i)}Object.defineProperties(p,{minFilter:{get:function(){return this._minFilter},set:function(t){this.bind();var e=this.gl;if(this.type===e.FLOAT&&o.indexOf(t)>=0&&(e.getExtension(\"OES_texture_float_linear\")||(t=e.NEAREST)),s.indexOf(t)<0)throw new Error(\"gl-texture2d: Unknown filter mode \"+t);return e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,t),this._minFilter=t}},magFilter:{get:function(){return this._magFilter},set:function(t){this.bind();var e=this.gl;if(this.type===e.FLOAT&&o.indexOf(t)>=0&&(e.getExtension(\"OES_texture_float_linear\")||(t=e.NEAREST)),s.indexOf(t)<0)throw new Error(\"gl-texture2d: Unknown filter mode \"+t);return e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,t),this._magFilter=t}},mipSamples:{get:function(){return this._anisoSamples},set:function(t){var e=this._anisoSamples;if(this._anisoSamples=0|Math.max(t,1),e!==this._anisoSamples){var r=this.gl.getExtension(\"EXT_texture_filter_anisotropic\");r&&this.gl.texParameterf(this.gl.TEXTURE_2D,r.TEXTURE_MAX_ANISOTROPY_EXT,this._anisoSamples)}return this._anisoSamples}},wrapS:{get:function(){return this._wrapS},set:function(t){if(this.bind(),l.indexOf(t)<0)throw new Error(\"gl-texture2d: Unknown wrap mode \"+t);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,t),this._wrapS=t}},wrapT:{get:function(){return this._wrapT},set:function(t){if(this.bind(),l.indexOf(t)<0)throw new Error(\"gl-texture2d: Unknown wrap mode \"+t);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,t),this._wrapT=t}},wrap:{get:function(){return this._wrapVector},set:function(t){if(Array.isArray(t)||(t=[t,t]),2!==t.length)throw new Error(\"gl-texture2d: Must specify wrap mode for rows and columns\");for(var e=0;e<2;++e)if(l.indexOf(t[e])<0)throw new Error(\"gl-texture2d: Unknown wrap mode \"+t);this._wrapS=t[0],this._wrapT=t[1];var r=this.gl;return this.bind(),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,this._wrapS),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,this._wrapT),t}},shape:{get:function(){return this._shapeVector},set:function(t){if(Array.isArray(t)){if(2!==t.length)throw new Error(\"gl-texture2d: Invalid texture shape\")}else t=[0|t,0|t];return f(this,0|t[0],0|t[1]),[0|t[0],0|t[1]]}},width:{get:function(){return this._shape[0]},set:function(t){return f(this,t|=0,this._shape[1]),t}},height:{get:function(){return this._shape[1]},set:function(t){return t|=0,f(this,this._shape[0],t),t}}}),p.bind=function(t){var e=this.gl;return void 0!==t&&e.activeTexture(e.TEXTURE0+(0|t)),e.bindTexture(e.TEXTURE_2D,this.handle),void 0!==t?0|t:e.getParameter(e.ACTIVE_TEXTURE)-e.TEXTURE0},p.dispose=function(){this.gl.deleteTexture(this.handle)},p.generateMipmap=function(){this.bind(),this.gl.generateMipmap(this.gl.TEXTURE_2D);for(var t=Math.min(this._shape[0],this._shape[1]),e=0;t>0;++e,t>>>=1)this._mipLevels.indexOf(e)<0&&this._mipLevels.push(e)},p.setPixels=function(t,e,r,o){var s=this.gl;this.bind(),Array.isArray(e)?(o=r,r=0|e[1],e=0|e[0]):(e=e||0,r=r||0),o=o||0;var l=c(t)?t:t.raw;if(l){this._mipLevels.indexOf(o)<0?(s.texImage2D(s.TEXTURE_2D,0,this.format,this.format,this.type,l),this._mipLevels.push(o)):s.texSubImage2D(s.TEXTURE_2D,o,e,r,this.format,this.type,l)}else{if(!(t.shape&&t.stride&&t.data))throw new Error(\"gl-texture2d: Unsupported data type\");if(t.shape.length<2||e+t.shape[1]>this._shape[1]>>>o||r+t.shape[0]>this._shape[0]>>>o||e<0||r<0)throw new Error(\"gl-texture2d: Texture dimensions are out of bounds\");!function(t,e,r,o,s,l,c,f){var h=f.dtype,p=f.shape.slice();if(p.length<2||p.length>3)throw new Error(\"gl-texture2d: Invalid ndarray, must be 2d or 3d\");var g=0,v=0,m=d(p,f.stride.slice());\"float32\"===h?g=t.FLOAT:\"float64\"===h?(g=t.FLOAT,m=!1,h=\"float32\"):\"uint8\"===h?g=t.UNSIGNED_BYTE:(g=t.UNSIGNED_BYTE,m=!1,h=\"uint8\");if(2===p.length)v=t.LUMINANCE,p=[p[0],p[1],1],f=n(f.data,p,[f.stride[0],f.stride[1],1],f.offset);else{if(3!==p.length)throw new Error(\"gl-texture2d: Invalid shape for texture\");if(1===p[2])v=t.ALPHA;else if(2===p[2])v=t.LUMINANCE_ALPHA;else if(3===p[2])v=t.RGB;else{if(4!==p[2])throw new Error(\"gl-texture2d: Invalid shape for pixel coords\");v=t.RGBA}p[2]}v!==t.LUMINANCE&&v!==t.ALPHA||s!==t.LUMINANCE&&s!==t.ALPHA||(v=s);if(v!==s)throw new Error(\"gl-texture2d: Incompatible texture format for setPixels\");var y=f.size,x=c.indexOf(o)<0;x&&c.push(o);if(g===l&&m)0===f.offset&&f.data.length===y?x?t.texImage2D(t.TEXTURE_2D,o,s,p[0],p[1],0,s,l,f.data):t.texSubImage2D(t.TEXTURE_2D,o,e,r,p[0],p[1],s,l,f.data):x?t.texImage2D(t.TEXTURE_2D,o,s,p[0],p[1],0,s,l,f.data.subarray(f.offset,f.offset+y)):t.texSubImage2D(t.TEXTURE_2D,o,e,r,p[0],p[1],s,l,f.data.subarray(f.offset,f.offset+y));else{var b;b=l===t.FLOAT?a.mallocFloat32(y):a.mallocUint8(y);var _=n(b,p,[p[2],p[2]*p[0],1]);g===t.FLOAT&&l===t.UNSIGNED_BYTE?u(_,f):i.assign(_,f),x?t.texImage2D(t.TEXTURE_2D,o,s,p[0],p[1],0,s,l,b.subarray(0,y)):t.texSubImage2D(t.TEXTURE_2D,o,e,r,p[0],p[1],s,l,b.subarray(0,y)),l===t.FLOAT?a.freeFloat32(b):a.freeUint8(b)}}(s,e,r,o,this.format,this.type,this._mipLevels,t)}}},{ndarray:433,\"ndarray-ops\":427,\"typedarray-pool\":522}],306:[function(t,e,r){\"use strict\";var n=t(\"pick-by-alias\");function i(t){if(t.container)if(t.container==document.body)document.body.style.width||(t.canvas.width=t.width||t.pixelRatio*window.innerWidth),document.body.style.height||(t.canvas.height=t.height||t.pixelRatio*window.innerHeight);else{var e=t.container.getBoundingClientRect();t.canvas.width=t.width||e.right-e.left,t.canvas.height=t.height||e.bottom-e.top}}function a(t){return\"function\"==typeof t.getContext&&\"width\"in t&&\"height\"in t}e.exports=function(t){var e;if(t?\"string\"==typeof t&&(t={container:t}):t={},a(t)?t={container:t}:t=\"string\"==typeof(e=t).nodeName&&\"function\"==typeof e.appendChild&&\"function\"==typeof e.getBoundingClientRect?{container:t}:function(t){return\"function\"==typeof t.drawArrays||\"function\"==typeof t.drawElements}(t)?{gl:t}:n(t,{container:\"container target element el canvas holder parent parentNode wrapper use ref root node\",gl:\"gl context webgl glContext\",attrs:\"attributes attrs contextAttributes\",pixelRatio:\"pixelRatio pxRatio px ratio pxratio pixelratio\"},!0),t.pixelRatio||(t.pixelRatio=window.pixelRatio||1),t.gl)return t.gl;if(t.canvas&&(t.container=t.canvas.parentNode),t.container){if(\"string\"==typeof t.container){var r=document.querySelector(t.container);if(!r)throw Error(\"Element \"+t.container+\" is not found\");t.container=r}a(t.container)?(t.canvas=t.container,t.container=t.canvas.parentNode):t.canvas||(t.canvas=document.createElement(\"canvas\"),t.container.appendChild(t.canvas),i(t))}else t.canvas||(t.container=document.body||document.documentElement,t.canvas=document.createElement(\"canvas\"),t.canvas.style.position=\"absolute\",t.canvas.style.top=0,t.canvas.style.left=0,t.container.appendChild(t.canvas),i(t));if(!t.gl)try{t.gl=t.canvas.getContext(\"webgl\",t.attrs)}catch(e){try{t.gl=t.canvas.getContext(\"experimental-webgl\",t.attrs)}catch(e){t.gl=t.canvas.getContext(\"webgl-experimental\",t.attrs)}}return t.gl}},{\"pick-by-alias\":448}],307:[function(t,e,r){\"use strict\";e.exports=function(t,e,r){e?e.bind():t.bindBuffer(t.ELEMENT_ARRAY_BUFFER,null);var n=0|t.getParameter(t.MAX_VERTEX_ATTRIBS);if(r){if(r.length>n)throw new Error(\"gl-vao: Too many vertex attributes\");for(var i=0;i<r.length;++i){var a=r[i];if(a.buffer){var o=a.buffer,s=a.size||4,l=a.type||t.FLOAT,c=!!a.normalized,u=a.stride||0,f=a.offset||0;o.bind(),t.enableVertexAttribArray(i),t.vertexAttribPointer(i,s,l,c,u,f)}else{if(\"number\"==typeof a)t.vertexAttrib1f(i,a);else if(1===a.length)t.vertexAttrib1f(i,a[0]);else if(2===a.length)t.vertexAttrib2f(i,a[0],a[1]);else if(3===a.length)t.vertexAttrib3f(i,a[0],a[1],a[2]);else{if(4!==a.length)throw new Error(\"gl-vao: Invalid vertex attribute\");t.vertexAttrib4f(i,a[0],a[1],a[2],a[3])}t.disableVertexAttribArray(i)}}for(;i<n;++i)t.disableVertexAttribArray(i)}else for(t.bindBuffer(t.ARRAY_BUFFER,null),i=0;i<n;++i)t.disableVertexAttribArray(i)}},{}],308:[function(t,e,r){\"use strict\";var n=t(\"./do-bind.js\");function i(t){this.gl=t,this._elements=null,this._attributes=null,this._elementsType=t.UNSIGNED_SHORT}i.prototype.bind=function(){n(this.gl,this._elements,this._attributes)},i.prototype.update=function(t,e,r){this._elements=e,this._attributes=t,this._elementsType=r||this.gl.UNSIGNED_SHORT},i.prototype.dispose=function(){},i.prototype.unbind=function(){},i.prototype.draw=function(t,e,r){r=r||0;var n=this.gl;this._elements?n.drawElements(t,e,this._elementsType,r):n.drawArrays(t,r,e)},e.exports=function(t){return new i(t)}},{\"./do-bind.js\":307}],309:[function(t,e,r){\"use strict\";var n=t(\"./do-bind.js\");function i(t,e,r,n,i,a){this.location=t,this.dimension=e,this.a=r,this.b=n,this.c=i,this.d=a}function a(t,e,r){this.gl=t,this._ext=e,this.handle=r,this._attribs=[],this._useElements=!1,this._elementsType=t.UNSIGNED_SHORT}i.prototype.bind=function(t){switch(this.dimension){case 1:t.vertexAttrib1f(this.location,this.a);break;case 2:t.vertexAttrib2f(this.location,this.a,this.b);break;case 3:t.vertexAttrib3f(this.location,this.a,this.b,this.c);break;case 4:t.vertexAttrib4f(this.location,this.a,this.b,this.c,this.d)}},a.prototype.bind=function(){this._ext.bindVertexArrayOES(this.handle);for(var t=0;t<this._attribs.length;++t)this._attribs[t].bind(this.gl)},a.prototype.unbind=function(){this._ext.bindVertexArrayOES(null)},a.prototype.dispose=function(){this._ext.deleteVertexArrayOES(this.handle)},a.prototype.update=function(t,e,r){if(this.bind(),n(this.gl,e,t),this.unbind(),this._attribs.length=0,t)for(var a=0;a<t.length;++a){var o=t[a];\"number\"==typeof o?this._attribs.push(new i(a,1,o)):Array.isArray(o)&&this._attribs.push(new i(a,o.length,o[0],o[1],o[2],o[3]))}this._useElements=!!e,this._elementsType=r||this.gl.UNSIGNED_SHORT},a.prototype.draw=function(t,e,r){r=r||0;var n=this.gl;this._useElements?n.drawElements(t,e,this._elementsType,r):n.drawArrays(t,r,e)},e.exports=function(t,e){return new a(t,e,e.createVertexArrayOES())}},{\"./do-bind.js\":307}],310:[function(t,e,r){\"use strict\";var n=t(\"./lib/vao-native.js\"),i=t(\"./lib/vao-emulated.js\");function a(t){this.bindVertexArrayOES=t.bindVertexArray.bind(t),this.createVertexArrayOES=t.createVertexArray.bind(t),this.deleteVertexArrayOES=t.deleteVertexArray.bind(t)}e.exports=function(t,e,r,o){var s,l=t.createVertexArray?new a(t):t.getExtension(\"OES_vertex_array_object\");return(s=l?n(t,l):i(t)).update(e,r,o),s}},{\"./lib/vao-emulated.js\":308,\"./lib/vao-native.js\":309}],311:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t}},{}],312:[function(t,e,r){e.exports=function(t,e){var r=n(t[0],t[1],t[2]),o=n(e[0],e[1],e[2]);i(r,r),i(o,o);var s=a(r,o);return s>1?0:Math.acos(s)};var n=t(\"./fromValues\"),i=t(\"./normalize\"),a=t(\"./dot\")},{\"./dot\":322,\"./fromValues\":328,\"./normalize\":339}],313:[function(t,e,r){e.exports=function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t}},{}],314:[function(t,e,r){e.exports=function(t){var e=new Float32Array(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}},{}],315:[function(t,e,r){e.exports=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}},{}],316:[function(t,e,r){e.exports=function(){var t=new Float32Array(3);return t[0]=0,t[1]=0,t[2]=0,t}},{}],317:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=r[0],s=r[1],l=r[2];return t[0]=i*l-a*s,t[1]=a*o-n*l,t[2]=n*s-i*o,t}},{}],318:[function(t,e,r){e.exports=t(\"./distance\")},{\"./distance\":319}],319:[function(t,e,r){e.exports=function(t,e){var r=e[0]-t[0],n=e[1]-t[1],i=e[2]-t[2];return Math.sqrt(r*r+n*n+i*i)}},{}],320:[function(t,e,r){e.exports=t(\"./divide\")},{\"./divide\":321}],321:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t[2]=e[2]/r[2],t}},{}],322:[function(t,e,r){e.exports=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}},{}],323:[function(t,e,r){e.exports=1e-6},{}],324:[function(t,e,r){e.exports=function(t,e){var r=t[0],i=t[1],a=t[2],o=e[0],s=e[1],l=e[2];return Math.abs(r-o)<=n*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(i-s)<=n*Math.max(1,Math.abs(i),Math.abs(s))&&Math.abs(a-l)<=n*Math.max(1,Math.abs(a),Math.abs(l))};var n=t(\"./epsilon\")},{\"./epsilon\":323}],325:[function(t,e,r){e.exports=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}},{}],326:[function(t,e,r){e.exports=function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t}},{}],327:[function(t,e,r){e.exports=function(t,e,r,i,a,o){var s,l;e||(e=3);r||(r=0);l=i?Math.min(i*e+r,t.length):t.length;for(s=r;s<l;s+=e)n[0]=t[s],n[1]=t[s+1],n[2]=t[s+2],a(n,n,o),t[s]=n[0],t[s+1]=n[1],t[s+2]=n[2];return t};var n=t(\"./create\")()},{\"./create\":316}],328:[function(t,e,r){e.exports=function(t,e,r){var n=new Float32Array(3);return n[0]=t,n[1]=e,n[2]=r,n}},{}],329:[function(t,e,r){e.exports={EPSILON:t(\"./epsilon\"),create:t(\"./create\"),clone:t(\"./clone\"),angle:t(\"./angle\"),fromValues:t(\"./fromValues\"),copy:t(\"./copy\"),set:t(\"./set\"),equals:t(\"./equals\"),exactEquals:t(\"./exactEquals\"),add:t(\"./add\"),subtract:t(\"./subtract\"),sub:t(\"./sub\"),multiply:t(\"./multiply\"),mul:t(\"./mul\"),divide:t(\"./divide\"),div:t(\"./div\"),min:t(\"./min\"),max:t(\"./max\"),floor:t(\"./floor\"),ceil:t(\"./ceil\"),round:t(\"./round\"),scale:t(\"./scale\"),scaleAndAdd:t(\"./scaleAndAdd\"),distance:t(\"./distance\"),dist:t(\"./dist\"),squaredDistance:t(\"./squaredDistance\"),sqrDist:t(\"./sqrDist\"),length:t(\"./length\"),len:t(\"./len\"),squaredLength:t(\"./squaredLength\"),sqrLen:t(\"./sqrLen\"),negate:t(\"./negate\"),inverse:t(\"./inverse\"),normalize:t(\"./normalize\"),dot:t(\"./dot\"),cross:t(\"./cross\"),lerp:t(\"./lerp\"),random:t(\"./random\"),transformMat4:t(\"./transformMat4\"),transformMat3:t(\"./transformMat3\"),transformQuat:t(\"./transformQuat\"),rotateX:t(\"./rotateX\"),rotateY:t(\"./rotateY\"),rotateZ:t(\"./rotateZ\"),forEach:t(\"./forEach\")}},{\"./add\":311,\"./angle\":312,\"./ceil\":313,\"./clone\":314,\"./copy\":315,\"./create\":316,\"./cross\":317,\"./dist\":318,\"./distance\":319,\"./div\":320,\"./divide\":321,\"./dot\":322,\"./epsilon\":323,\"./equals\":324,\"./exactEquals\":325,\"./floor\":326,\"./forEach\":327,\"./fromValues\":328,\"./inverse\":330,\"./len\":331,\"./length\":332,\"./lerp\":333,\"./max\":334,\"./min\":335,\"./mul\":336,\"./multiply\":337,\"./negate\":338,\"./normalize\":339,\"./random\":340,\"./rotateX\":341,\"./rotateY\":342,\"./rotateZ\":343,\"./round\":344,\"./scale\":345,\"./scaleAndAdd\":346,\"./set\":347,\"./sqrDist\":348,\"./sqrLen\":349,\"./squaredDistance\":350,\"./squaredLength\":351,\"./sub\":352,\"./subtract\":353,\"./transformMat3\":354,\"./transformMat4\":355,\"./transformQuat\":356}],330:[function(t,e,r){e.exports=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}},{}],331:[function(t,e,r){e.exports=t(\"./length\")},{\"./length\":332}],332:[function(t,e,r){e.exports=function(t){var e=t[0],r=t[1],n=t[2];return Math.sqrt(e*e+r*r+n*n)}},{}],333:[function(t,e,r){e.exports=function(t,e,r,n){var i=e[0],a=e[1],o=e[2];return t[0]=i+n*(r[0]-i),t[1]=a+n*(r[1]-a),t[2]=o+n*(r[2]-o),t}},{}],334:[function(t,e,r){e.exports=function(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t[2]=Math.max(e[2],r[2]),t}},{}],335:[function(t,e,r){e.exports=function(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t[2]=Math.min(e[2],r[2]),t}},{}],336:[function(t,e,r){e.exports=t(\"./multiply\")},{\"./multiply\":337}],337:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t[2]=e[2]*r[2],t}},{}],338:[function(t,e,r){e.exports=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}},{}],339:[function(t,e,r){e.exports=function(t,e){var r=e[0],n=e[1],i=e[2],a=r*r+n*n+i*i;a>0&&(a=1/Math.sqrt(a),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a);return t}},{}],340:[function(t,e,r){e.exports=function(t,e){e=e||1;var r=2*Math.random()*Math.PI,n=2*Math.random()-1,i=Math.sqrt(1-n*n)*e;return t[0]=Math.cos(r)*i,t[1]=Math.sin(r)*i,t[2]=n*e,t}},{}],341:[function(t,e,r){e.exports=function(t,e,r,n){var i=r[1],a=r[2],o=e[1]-i,s=e[2]-a,l=Math.sin(n),c=Math.cos(n);return t[0]=e[0],t[1]=i+o*c-s*l,t[2]=a+o*l+s*c,t}},{}],342:[function(t,e,r){e.exports=function(t,e,r,n){var i=r[0],a=r[2],o=e[0]-i,s=e[2]-a,l=Math.sin(n),c=Math.cos(n);return t[0]=i+s*l+o*c,t[1]=e[1],t[2]=a+s*c-o*l,t}},{}],343:[function(t,e,r){e.exports=function(t,e,r,n){var i=r[0],a=r[1],o=e[0]-i,s=e[1]-a,l=Math.sin(n),c=Math.cos(n);return t[0]=i+o*c-s*l,t[1]=a+o*l+s*c,t[2]=e[2],t}},{}],344:[function(t,e,r){e.exports=function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t}},{}],345:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t}},{}],346:[function(t,e,r){e.exports=function(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t}},{}],347:[function(t,e,r){e.exports=function(t,e,r,n){return t[0]=e,t[1]=r,t[2]=n,t}},{}],348:[function(t,e,r){e.exports=t(\"./squaredDistance\")},{\"./squaredDistance\":350}],349:[function(t,e,r){e.exports=t(\"./squaredLength\")},{\"./squaredLength\":351}],350:[function(t,e,r){e.exports=function(t,e){var r=e[0]-t[0],n=e[1]-t[1],i=e[2]-t[2];return r*r+n*n+i*i}},{}],351:[function(t,e,r){e.exports=function(t){var e=t[0],r=t[1],n=t[2];return e*e+r*r+n*n}},{}],352:[function(t,e,r){e.exports=t(\"./subtract\")},{\"./subtract\":353}],353:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t}},{}],354:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2];return t[0]=n*r[0]+i*r[3]+a*r[6],t[1]=n*r[1]+i*r[4]+a*r[7],t[2]=n*r[2]+i*r[5]+a*r[8],t}},{}],355:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=r[3]*n+r[7]*i+r[11]*a+r[15];return o=o||1,t[0]=(r[0]*n+r[4]*i+r[8]*a+r[12])/o,t[1]=(r[1]*n+r[5]*i+r[9]*a+r[13])/o,t[2]=(r[2]*n+r[6]*i+r[10]*a+r[14])/o,t}},{}],356:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=r[0],s=r[1],l=r[2],c=r[3],u=c*n+s*a-l*i,f=c*i+l*n-o*a,h=c*a+o*i-s*n,p=-o*n-s*i-l*a;return t[0]=u*c+p*-o+f*-l-h*-s,t[1]=f*c+p*-s+h*-o-u*-l,t[2]=h*c+p*-l+u*-s-f*-o,t}},{}],357:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t[3]=e[3]+r[3],t}},{}],358:[function(t,e,r){e.exports=function(t){var e=new Float32Array(4);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}},{}],359:[function(t,e,r){e.exports=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}},{}],360:[function(t,e,r){e.exports=function(){var t=new Float32Array(4);return t[0]=0,t[1]=0,t[2]=0,t[3]=0,t}},{}],361:[function(t,e,r){e.exports=function(t,e){var r=e[0]-t[0],n=e[1]-t[1],i=e[2]-t[2],a=e[3]-t[3];return Math.sqrt(r*r+n*n+i*i+a*a)}},{}],362:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t[2]=e[2]/r[2],t[3]=e[3]/r[3],t}},{}],363:[function(t,e,r){e.exports=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}},{}],364:[function(t,e,r){e.exports=function(t,e,r,n){var i=new Float32Array(4);return i[0]=t,i[1]=e,i[2]=r,i[3]=n,i}},{}],365:[function(t,e,r){e.exports={create:t(\"./create\"),clone:t(\"./clone\"),fromValues:t(\"./fromValues\"),copy:t(\"./copy\"),set:t(\"./set\"),add:t(\"./add\"),subtract:t(\"./subtract\"),multiply:t(\"./multiply\"),divide:t(\"./divide\"),min:t(\"./min\"),max:t(\"./max\"),scale:t(\"./scale\"),scaleAndAdd:t(\"./scaleAndAdd\"),distance:t(\"./distance\"),squaredDistance:t(\"./squaredDistance\"),length:t(\"./length\"),squaredLength:t(\"./squaredLength\"),negate:t(\"./negate\"),inverse:t(\"./inverse\"),normalize:t(\"./normalize\"),dot:t(\"./dot\"),lerp:t(\"./lerp\"),random:t(\"./random\"),transformMat4:t(\"./transformMat4\"),transformQuat:t(\"./transformQuat\")}},{\"./add\":357,\"./clone\":358,\"./copy\":359,\"./create\":360,\"./distance\":361,\"./divide\":362,\"./dot\":363,\"./fromValues\":364,\"./inverse\":366,\"./length\":367,\"./lerp\":368,\"./max\":369,\"./min\":370,\"./multiply\":371,\"./negate\":372,\"./normalize\":373,\"./random\":374,\"./scale\":375,\"./scaleAndAdd\":376,\"./set\":377,\"./squaredDistance\":378,\"./squaredLength\":379,\"./subtract\":380,\"./transformMat4\":381,\"./transformQuat\":382}],366:[function(t,e,r){e.exports=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t[3]=1/e[3],t}},{}],367:[function(t,e,r){e.exports=function(t){var e=t[0],r=t[1],n=t[2],i=t[3];return Math.sqrt(e*e+r*r+n*n+i*i)}},{}],368:[function(t,e,r){e.exports=function(t,e,r,n){var i=e[0],a=e[1],o=e[2],s=e[3];return t[0]=i+n*(r[0]-i),t[1]=a+n*(r[1]-a),t[2]=o+n*(r[2]-o),t[3]=s+n*(r[3]-s),t}},{}],369:[function(t,e,r){e.exports=function(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t[2]=Math.max(e[2],r[2]),t[3]=Math.max(e[3],r[3]),t}},{}],370:[function(t,e,r){e.exports=function(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t[2]=Math.min(e[2],r[2]),t[3]=Math.min(e[3],r[3]),t}},{}],371:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t[2]=e[2]*r[2],t[3]=e[3]*r[3],t}},{}],372:[function(t,e,r){e.exports=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t}},{}],373:[function(t,e,r){e.exports=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=r*r+n*n+i*i+a*a;o>0&&(o=1/Math.sqrt(o),t[0]=r*o,t[1]=n*o,t[2]=i*o,t[3]=a*o);return t}},{}],374:[function(t,e,r){var n=t(\"./normalize\"),i=t(\"./scale\");e.exports=function(t,e){return e=e||1,t[0]=Math.random(),t[1]=Math.random(),t[2]=Math.random(),t[3]=Math.random(),n(t,t),i(t,t,e),t}},{\"./normalize\":373,\"./scale\":375}],375:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t}},{}],376:[function(t,e,r){e.exports=function(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t[3]=e[3]+r[3]*n,t}},{}],377:[function(t,e,r){e.exports=function(t,e,r,n,i){return t[0]=e,t[1]=r,t[2]=n,t[3]=i,t}},{}],378:[function(t,e,r){e.exports=function(t,e){var r=e[0]-t[0],n=e[1]-t[1],i=e[2]-t[2],a=e[3]-t[3];return r*r+n*n+i*i+a*a}},{}],379:[function(t,e,r){e.exports=function(t){var e=t[0],r=t[1],n=t[2],i=t[3];return e*e+r*r+n*n+i*i}},{}],380:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t[3]=e[3]-r[3],t}},{}],381:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3];return t[0]=r[0]*n+r[4]*i+r[8]*a+r[12]*o,t[1]=r[1]*n+r[5]*i+r[9]*a+r[13]*o,t[2]=r[2]*n+r[6]*i+r[10]*a+r[14]*o,t[3]=r[3]*n+r[7]*i+r[11]*a+r[15]*o,t}},{}],382:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=r[0],s=r[1],l=r[2],c=r[3],u=c*n+s*a-l*i,f=c*i+l*n-o*a,h=c*a+o*i-s*n,p=-o*n-s*i-l*a;return t[0]=u*c+p*-o+f*-l-h*-s,t[1]=f*c+p*-s+h*-o-u*-l,t[2]=h*c+p*-l+u*-s-f*-o,t[3]=e[3],t}},{}],383:[function(t,e,r){e.exports=function(t,e,r,a){return n[0]=a,n[1]=r,n[2]=e,n[3]=t,i[0]};var n=new Uint8Array(4),i=new Float32Array(n.buffer)},{}],384:[function(t,e,r){var n=t(\"glsl-tokenizer\"),i=t(\"atob-lite\");e.exports=function(t){for(var e=Array.isArray(t)?t:n(t),r=0;r<e.length;r++){var a=e[r];if(\"preprocessor\"===a.type){var o=a.data.match(/\\#define\\s+SHADER_NAME(_B64)?\\s+(.+)$/);if(o&&o[2]){var s=o[1],l=o[2];return(s?i(l):l).trim()}}}}},{\"atob-lite\":60,\"glsl-tokenizer\":391}],385:[function(t,e,r){e.exports=function(t){var e,r,k,M=0,A=0,T=l,S=[],E=[],C=1,L=0,z=0,O=!1,I=!1,P=\"\",D=a,R=n;\"300 es\"===(t=t||{}).version&&(D=s,R=o);return function(t){return E=[],null!==t?function(t){var r;M=0,k=(P+=t).length;for(;e=P[M],M<k;){switch(r=M,T){case u:M=V();break;case f:case h:M=j();break;case p:M=U();break;case d:M=G();break;case _:M=H();break;case g:M=W();break;case c:M=Y();break;case x:M=N();break;case l:M=F()}if(r!==M)switch(P[r]){case\"\\n\":L=0,++C;break;default:++L}}return A+=M,P=P.slice(M),E}(t.replace?t.replace(/\\r\\n/g,\"\\n\"):t):function(t){S.length&&B(S.join(\"\"));return T=b,B(\"(eof)\"),E}()};function B(t){t.length&&E.push({type:w[T],data:t,position:z,line:C,column:L})}function F(){return S=S.length?[]:S,\"/\"===r&&\"*\"===e?(z=A+M-1,T=u,r=e,M+1):\"/\"===r&&\"/\"===e?(z=A+M-1,T=f,r=e,M+1):\"#\"===e?(T=h,z=A+M,M):/\\s/.test(e)?(T=x,z=A+M,M):(O=/\\d/.test(e),I=/[^\\w_]/.test(e),z=A+M,T=O?d:I?p:c,M)}function N(){return/[^\\s]/g.test(e)?(B(S.join(\"\")),T=l,M):(S.push(e),r=e,M+1)}function j(){return\"\\r\"!==e&&\"\\n\"!==e||\"\\\\\"===r?(S.push(e),r=e,M+1):(B(S.join(\"\")),T=l,M)}function V(){return\"/\"===e&&\"*\"===r?(S.push(e),B(S.join(\"\")),T=l,M+1):(S.push(e),r=e,M+1)}function U(){if(\".\"===r&&/\\d/.test(e))return T=g,M;if(\"/\"===r&&\"*\"===e)return T=u,M;if(\"/\"===r&&\"/\"===e)return T=f,M;if(\".\"===e&&S.length){for(;q(S););return T=g,M}if(\";\"===e||\")\"===e||\"(\"===e){if(S.length)for(;q(S););return B(e),T=l,M+1}var t=2===S.length&&\"=\"!==e;if(/[\\w_\\d\\s]/.test(e)||t){for(;q(S););return T=l,M}return S.push(e),r=e,M+1}function q(t){for(var e,r,n=0;;){if(e=i.indexOf(t.slice(0,t.length+n).join(\"\")),r=i[e],-1===e){if(n--+t.length>0)continue;r=t.slice(0,1).join(\"\")}return B(r),z+=r.length,(S=S.slice(r.length)).length}}function H(){return/[^a-fA-F0-9]/.test(e)?(B(S.join(\"\")),T=l,M):(S.push(e),r=e,M+1)}function G(){return\".\"===e?(S.push(e),T=g,r=e,M+1):/[eE]/.test(e)?(S.push(e),T=g,r=e,M+1):\"x\"===e&&1===S.length&&\"0\"===S[0]?(T=_,S.push(e),r=e,M+1):/[^\\d]/.test(e)?(B(S.join(\"\")),T=l,M):(S.push(e),r=e,M+1)}function W(){return\"f\"===e&&(S.push(e),r=e,M+=1),/[eE]/.test(e)?(S.push(e),r=e,M+1):\"-\"===e&&/[eE]/.test(r)?(S.push(e),r=e,M+1):/[^\\d]/.test(e)?(B(S.join(\"\")),T=l,M):(S.push(e),r=e,M+1)}function Y(){if(/[^\\d\\w_]/.test(e)){var t=S.join(\"\");return T=R.indexOf(t)>-1?y:D.indexOf(t)>-1?m:v,B(S.join(\"\")),T=l,M}return S.push(e),r=e,M+1}};var n=t(\"./lib/literals\"),i=t(\"./lib/operators\"),a=t(\"./lib/builtins\"),o=t(\"./lib/literals-300es\"),s=t(\"./lib/builtins-300es\"),l=999,c=9999,u=0,f=1,h=2,p=3,d=4,g=5,v=6,m=7,y=8,x=9,b=10,_=11,w=[\"block-comment\",\"line-comment\",\"preprocessor\",\"operator\",\"integer\",\"float\",\"ident\",\"builtin\",\"keyword\",\"whitespace\",\"eof\",\"integer\"]},{\"./lib/builtins\":387,\"./lib/builtins-300es\":386,\"./lib/literals\":389,\"./lib/literals-300es\":388,\"./lib/operators\":390}],386:[function(t,e,r){var n=t(\"./builtins\");n=n.slice().filter(function(t){return!/^(gl\\_|texture)/.test(t)}),e.exports=n.concat([\"gl_VertexID\",\"gl_InstanceID\",\"gl_Position\",\"gl_PointSize\",\"gl_FragCoord\",\"gl_FrontFacing\",\"gl_FragDepth\",\"gl_PointCoord\",\"gl_MaxVertexAttribs\",\"gl_MaxVertexUniformVectors\",\"gl_MaxVertexOutputVectors\",\"gl_MaxFragmentInputVectors\",\"gl_MaxVertexTextureImageUnits\",\"gl_MaxCombinedTextureImageUnits\",\"gl_MaxTextureImageUnits\",\"gl_MaxFragmentUniformVectors\",\"gl_MaxDrawBuffers\",\"gl_MinProgramTexelOffset\",\"gl_MaxProgramTexelOffset\",\"gl_DepthRangeParameters\",\"gl_DepthRange\",\"trunc\",\"round\",\"roundEven\",\"isnan\",\"isinf\",\"floatBitsToInt\",\"floatBitsToUint\",\"intBitsToFloat\",\"uintBitsToFloat\",\"packSnorm2x16\",\"unpackSnorm2x16\",\"packUnorm2x16\",\"unpackUnorm2x16\",\"packHalf2x16\",\"unpackHalf2x16\",\"outerProduct\",\"transpose\",\"determinant\",\"inverse\",\"texture\",\"textureSize\",\"textureProj\",\"textureLod\",\"textureOffset\",\"texelFetch\",\"texelFetchOffset\",\"textureProjOffset\",\"textureLodOffset\",\"textureProjLod\",\"textureProjLodOffset\",\"textureGrad\",\"textureGradOffset\",\"textureProjGrad\",\"textureProjGradOffset\"])},{\"./builtins\":387}],387:[function(t,e,r){e.exports=[\"abs\",\"acos\",\"all\",\"any\",\"asin\",\"atan\",\"ceil\",\"clamp\",\"cos\",\"cross\",\"dFdx\",\"dFdy\",\"degrees\",\"distance\",\"dot\",\"equal\",\"exp\",\"exp2\",\"faceforward\",\"floor\",\"fract\",\"gl_BackColor\",\"gl_BackLightModelProduct\",\"gl_BackLightProduct\",\"gl_BackMaterial\",\"gl_BackSecondaryColor\",\"gl_ClipPlane\",\"gl_ClipVertex\",\"gl_Color\",\"gl_DepthRange\",\"gl_DepthRangeParameters\",\"gl_EyePlaneQ\",\"gl_EyePlaneR\",\"gl_EyePlaneS\",\"gl_EyePlaneT\",\"gl_Fog\",\"gl_FogCoord\",\"gl_FogFragCoord\",\"gl_FogParameters\",\"gl_FragColor\",\"gl_FragCoord\",\"gl_FragData\",\"gl_FragDepth\",\"gl_FragDepthEXT\",\"gl_FrontColor\",\"gl_FrontFacing\",\"gl_FrontLightModelProduct\",\"gl_FrontLightProduct\",\"gl_FrontMaterial\",\"gl_FrontSecondaryColor\",\"gl_LightModel\",\"gl_LightModelParameters\",\"gl_LightModelProducts\",\"gl_LightProducts\",\"gl_LightSource\",\"gl_LightSourceParameters\",\"gl_MaterialParameters\",\"gl_MaxClipPlanes\",\"gl_MaxCombinedTextureImageUnits\",\"gl_MaxDrawBuffers\",\"gl_MaxFragmentUniformComponents\",\"gl_MaxLights\",\"gl_MaxTextureCoords\",\"gl_MaxTextureImageUnits\",\"gl_MaxTextureUnits\",\"gl_MaxVaryingFloats\",\"gl_MaxVertexAttribs\",\"gl_MaxVertexTextureImageUnits\",\"gl_MaxVertexUniformComponents\",\"gl_ModelViewMatrix\",\"gl_ModelViewMatrixInverse\",\"gl_ModelViewMatrixInverseTranspose\",\"gl_ModelViewMatrixTranspose\",\"gl_ModelViewProjectionMatrix\",\"gl_ModelViewProjectionMatrixInverse\",\"gl_ModelViewProjectionMatrixInverseTranspose\",\"gl_ModelViewProjectionMatrixTranspose\",\"gl_MultiTexCoord0\",\"gl_MultiTexCoord1\",\"gl_MultiTexCoord2\",\"gl_MultiTexCoord3\",\"gl_MultiTexCoord4\",\"gl_MultiTexCoord5\",\"gl_MultiTexCoord6\",\"gl_MultiTexCoord7\",\"gl_Normal\",\"gl_NormalMatrix\",\"gl_NormalScale\",\"gl_ObjectPlaneQ\",\"gl_ObjectPlaneR\",\"gl_ObjectPlaneS\",\"gl_ObjectPlaneT\",\"gl_Point\",\"gl_PointCoord\",\"gl_PointParameters\",\"gl_PointSize\",\"gl_Position\",\"gl_ProjectionMatrix\",\"gl_ProjectionMatrixInverse\",\"gl_ProjectionMatrixInverseTranspose\",\"gl_ProjectionMatrixTranspose\",\"gl_SecondaryColor\",\"gl_TexCoord\",\"gl_TextureEnvColor\",\"gl_TextureMatrix\",\"gl_TextureMatrixInverse\",\"gl_TextureMatrixInverseTranspose\",\"gl_TextureMatrixTranspose\",\"gl_Vertex\",\"greaterThan\",\"greaterThanEqual\",\"inversesqrt\",\"length\",\"lessThan\",\"lessThanEqual\",\"log\",\"log2\",\"matrixCompMult\",\"max\",\"min\",\"mix\",\"mod\",\"normalize\",\"not\",\"notEqual\",\"pow\",\"radians\",\"reflect\",\"refract\",\"sign\",\"sin\",\"smoothstep\",\"sqrt\",\"step\",\"tan\",\"texture2D\",\"texture2DLod\",\"texture2DProj\",\"texture2DProjLod\",\"textureCube\",\"textureCubeLod\",\"texture2DLodEXT\",\"texture2DProjLodEXT\",\"textureCubeLodEXT\",\"texture2DGradEXT\",\"texture2DProjGradEXT\",\"textureCubeGradEXT\"]},{}],388:[function(t,e,r){var n=t(\"./literals\");e.exports=n.slice().concat([\"layout\",\"centroid\",\"smooth\",\"case\",\"mat2x2\",\"mat2x3\",\"mat2x4\",\"mat3x2\",\"mat3x3\",\"mat3x4\",\"mat4x2\",\"mat4x3\",\"mat4x4\",\"uint\",\"uvec2\",\"uvec3\",\"uvec4\",\"samplerCubeShadow\",\"sampler2DArray\",\"sampler2DArrayShadow\",\"isampler2D\",\"isampler3D\",\"isamplerCube\",\"isampler2DArray\",\"usampler2D\",\"usampler3D\",\"usamplerCube\",\"usampler2DArray\",\"coherent\",\"restrict\",\"readonly\",\"writeonly\",\"resource\",\"atomic_uint\",\"noperspective\",\"patch\",\"sample\",\"subroutine\",\"common\",\"partition\",\"active\",\"filter\",\"image1D\",\"image2D\",\"image3D\",\"imageCube\",\"iimage1D\",\"iimage2D\",\"iimage3D\",\"iimageCube\",\"uimage1D\",\"uimage2D\",\"uimage3D\",\"uimageCube\",\"image1DArray\",\"image2DArray\",\"iimage1DArray\",\"iimage2DArray\",\"uimage1DArray\",\"uimage2DArray\",\"image1DShadow\",\"image2DShadow\",\"image1DArrayShadow\",\"image2DArrayShadow\",\"imageBuffer\",\"iimageBuffer\",\"uimageBuffer\",\"sampler1DArray\",\"sampler1DArrayShadow\",\"isampler1D\",\"isampler1DArray\",\"usampler1D\",\"usampler1DArray\",\"isampler2DRect\",\"usampler2DRect\",\"samplerBuffer\",\"isamplerBuffer\",\"usamplerBuffer\",\"sampler2DMS\",\"isampler2DMS\",\"usampler2DMS\",\"sampler2DMSArray\",\"isampler2DMSArray\",\"usampler2DMSArray\"])},{\"./literals\":389}],389:[function(t,e,r){e.exports=[\"precision\",\"highp\",\"mediump\",\"lowp\",\"attribute\",\"const\",\"uniform\",\"varying\",\"break\",\"continue\",\"do\",\"for\",\"while\",\"if\",\"else\",\"in\",\"out\",\"inout\",\"float\",\"int\",\"void\",\"bool\",\"true\",\"false\",\"discard\",\"return\",\"mat2\",\"mat3\",\"mat4\",\"vec2\",\"vec3\",\"vec4\",\"ivec2\",\"ivec3\",\"ivec4\",\"bvec2\",\"bvec3\",\"bvec4\",\"sampler1D\",\"sampler2D\",\"sampler3D\",\"samplerCube\",\"sampler1DShadow\",\"sampler2DShadow\",\"struct\",\"asm\",\"class\",\"union\",\"enum\",\"typedef\",\"template\",\"this\",\"packed\",\"goto\",\"switch\",\"default\",\"inline\",\"noinline\",\"volatile\",\"public\",\"static\",\"extern\",\"external\",\"interface\",\"long\",\"short\",\"double\",\"half\",\"fixed\",\"unsigned\",\"input\",\"output\",\"hvec2\",\"hvec3\",\"hvec4\",\"dvec2\",\"dvec3\",\"dvec4\",\"fvec2\",\"fvec3\",\"fvec4\",\"sampler2DRect\",\"sampler3DRect\",\"sampler2DRectShadow\",\"sizeof\",\"cast\",\"namespace\",\"using\"]},{}],390:[function(t,e,r){e.exports=[\"<<=\",\">>=\",\"++\",\"--\",\"<<\",\">>\",\"<=\",\">=\",\"==\",\"!=\",\"&&\",\"||\",\"+=\",\"-=\",\"*=\",\"/=\",\"%=\",\"&=\",\"^^\",\"^=\",\"|=\",\"(\",\")\",\"[\",\"]\",\".\",\"!\",\"~\",\"*\",\"/\",\"%\",\"+\",\"-\",\"<\",\">\",\"&\",\"^\",\"|\",\"?\",\":\",\"=\",\",\",\";\",\"{\",\"}\"]},{}],391:[function(t,e,r){var n=t(\"./index\");e.exports=function(t,e){var r=n(e),i=[];return i=(i=i.concat(r(t))).concat(r(null))}},{\"./index\":385}],392:[function(t,e,r){e.exports=function(t){\"string\"==typeof t&&(t=[t]);for(var e=[].slice.call(arguments,1),r=[],n=0;n<t.length-1;n++)r.push(t[n],e[n]||\"\");return r.push(t[n]),r.join(\"\")}},{}],393:[function(t,e,r){(function(r){\"use strict\";var n,i=t(\"is-browser\");n=\"function\"==typeof r.matchMedia?!r.matchMedia(\"(hover: none)\").matches:i,e.exports=n}).call(this,\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{\"is-browser\":400}],394:[function(t,e,r){\"use strict\";var n=t(\"is-browser\");e.exports=n&&function(){var t=!1;try{var e=Object.defineProperty({},\"passive\",{get:function(){t=!0}});window.addEventListener(\"test\",null,e),window.removeEventListener(\"test\",null,e)}catch(e){t=!1}return t}()},{\"is-browser\":400}],395:[function(t,e,r){r.read=function(t,e,r,n,i){var a,o,s=8*i-n-1,l=(1<<s)-1,c=l>>1,u=-7,f=r?i-1:0,h=r?-1:1,p=t[e+f];for(f+=h,a=p&(1<<-u)-1,p>>=-u,u+=s;u>0;a=256*a+t[e+f],f+=h,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=n;u>0;o=256*o+t[e+f],f+=h,u-=8);if(0===a)a=1-c;else{if(a===l)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,n),a-=c}return(p?-1:1)*o*Math.pow(2,a-n)},r.write=function(t,e,r,n,i,a){var o,s,l,c=8*a-i-1,u=(1<<c)-1,f=u>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:a-1,d=n?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,o=u):(o=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-o))<1&&(o--,l*=2),(e+=o+f>=1?h/l:h*Math.pow(2,1-f))*l>=2&&(o++,l/=2),o+f>=u?(s=0,o=u):o+f>=1?(s=(e*l-1)*Math.pow(2,i),o+=f):(s=e*Math.pow(2,f-1)*Math.pow(2,i),o=0));i>=8;t[r+p]=255&s,p+=d,s/=256,i-=8);for(o=o<<i|s,c+=i;c>0;t[r+p]=255&o,p+=d,o/=256,c-=8);t[r+p-d]|=128*g}},{}],396:[function(t,e,r){\"use strict\";e.exports=function(t,e){var r=t.length;if(0===r)throw new Error(\"Must have at least d+1 points\");var i=t[0].length;if(r<=i)throw new Error(\"Must input at least d+1 points\");var o=t.slice(0,i+1),s=n.apply(void 0,o);if(0===s)throw new Error(\"Input not in general position\");for(var l=new Array(i+1),u=0;u<=i;++u)l[u]=u;s<0&&(l[0]=1,l[1]=0);for(var f=new a(l,new Array(i+1),!1),h=f.adjacent,p=new Array(i+2),u=0;u<=i;++u){for(var d=l.slice(),g=0;g<=i;++g)g===u&&(d[g]=-1);var v=d[0];d[0]=d[1],d[1]=v;var m=new a(d,new Array(i+1),!0);h[u]=m,p[u]=m}p[i+1]=f;for(var u=0;u<=i;++u)for(var d=h[u].vertices,y=h[u].adjacent,g=0;g<=i;++g){var x=d[g];if(x<0)y[g]=f;else for(var b=0;b<=i;++b)h[b].vertices.indexOf(x)<0&&(y[g]=h[b])}for(var _=new c(i,o,p),w=!!e,u=i+1;u<r;++u)_.insert(t[u],w);return _.boundary()};var n=t(\"robust-orientation\"),i=t(\"simplicial-complex\").compareCells;function a(t,e,r){this.vertices=t,this.adjacent=e,this.boundary=r,this.lastVisited=-1}function o(t,e,r){this.vertices=t,this.cell=e,this.index=r}function s(t,e){return i(t.vertices,e.vertices)}a.prototype.flip=function(){var t=this.vertices[0];this.vertices[0]=this.vertices[1],this.vertices[1]=t;var e=this.adjacent[0];this.adjacent[0]=this.adjacent[1],this.adjacent[1]=e};var l=[];function c(t,e,r){this.dimension=t,this.vertices=e,this.simplices=r,this.interior=r.filter(function(t){return!t.boundary}),this.tuple=new Array(t+1);for(var i=0;i<=t;++i)this.tuple[i]=this.vertices[i];var a=l[t];a||(a=l[t]=function(t){for(var e=[\"function orient(){var tuple=this.tuple;return test(\"],r=0;r<=t;++r)r>0&&e.push(\",\"),e.push(\"tuple[\",r,\"]\");e.push(\")}return orient\");var i=new Function(\"test\",e.join(\"\")),a=n[t+1];return a||(a=n),i(a)}(t)),this.orient=a}var u=c.prototype;u.handleBoundaryDegeneracy=function(t,e){var r=this.dimension,n=this.vertices.length-1,i=this.tuple,a=this.vertices,o=[t];for(t.lastVisited=-n;o.length>0;){(t=o.pop()).vertices;for(var s=t.adjacent,l=0;l<=r;++l){var c=s[l];if(c.boundary&&!(c.lastVisited<=-n)){for(var u=c.vertices,f=0;f<=r;++f){var h=u[f];i[f]=h<0?e:a[h]}var p=this.orient();if(p>0)return c;c.lastVisited=-n,0===p&&o.push(c)}}}return null},u.walk=function(t,e){var r=this.vertices.length-1,n=this.dimension,i=this.vertices,a=this.tuple,o=e?this.interior.length*Math.random()|0:this.interior.length-1,s=this.interior[o];t:for(;!s.boundary;){for(var l=s.vertices,c=s.adjacent,u=0;u<=n;++u)a[u]=i[l[u]];s.lastVisited=r;for(u=0;u<=n;++u){var f=c[u];if(!(f.lastVisited>=r)){var h=a[u];a[u]=t;var p=this.orient();if(a[u]=h,p<0){s=f;continue t}f.boundary?f.lastVisited=-r:f.lastVisited=r}}return}return s},u.addPeaks=function(t,e){var r=this.vertices.length-1,n=this.dimension,i=this.vertices,l=this.tuple,c=this.interior,u=this.simplices,f=[e];e.lastVisited=r,e.vertices[e.vertices.indexOf(-1)]=r,e.boundary=!1,c.push(e);for(var h=[];f.length>0;){var p=(e=f.pop()).vertices,d=e.adjacent,g=p.indexOf(r);if(!(g<0))for(var v=0;v<=n;++v)if(v!==g){var m=d[v];if(m.boundary&&!(m.lastVisited>=r)){var y=m.vertices;if(m.lastVisited!==-r){for(var x=0,b=0;b<=n;++b)y[b]<0?(x=b,l[b]=t):l[b]=i[y[b]];if(this.orient()>0){y[x]=r,m.boundary=!1,c.push(m),f.push(m),m.lastVisited=r;continue}m.lastVisited=-r}var _=m.adjacent,w=p.slice(),k=d.slice(),M=new a(w,k,!0);u.push(M);var A=_.indexOf(e);if(!(A<0)){_[A]=M,k[g]=m,w[v]=-1,k[v]=e,d[v]=M,M.flip();for(b=0;b<=n;++b){var T=w[b];if(!(T<0||T===r)){for(var S=new Array(n-1),E=0,C=0;C<=n;++C){var L=w[C];L<0||C===b||(S[E++]=L)}h.push(new o(S,M,b))}}}}}}h.sort(s);for(v=0;v+1<h.length;v+=2){var z=h[v],O=h[v+1],I=z.index,P=O.index;I<0||P<0||(z.cell.adjacent[z.index]=O.cell,O.cell.adjacent[O.index]=z.cell)}},u.insert=function(t,e){var r=this.vertices;r.push(t);var n=this.walk(t,e);if(n){for(var i=this.dimension,a=this.tuple,o=0;o<=i;++o){var s=n.vertices[o];a[o]=s<0?t:r[s]}var l=this.orient(a);l<0||(0!==l||(n=this.handleBoundaryDegeneracy(n,t)))&&this.addPeaks(t,n)}},u.boundary=function(){for(var t=this.dimension,e=[],r=this.simplices,n=r.length,i=0;i<n;++i){var a=r[i];if(a.boundary){for(var o=new Array(t),s=a.vertices,l=0,c=0,u=0;u<=t;++u)s[u]>=0?o[l++]=s[u]:c=1&u;if(c===(1&t)){var f=o[0];o[0]=o[1],o[1]=f}e.push(o)}}return e}},{\"robust-orientation\":486,\"simplicial-complex\":496}],397:[function(t,e,r){\"use strict\";var n=t(\"binary-search-bounds\"),i=0,a=1;function o(t,e,r,n,i){this.mid=t,this.left=e,this.right=r,this.leftPoints=n,this.rightPoints=i,this.count=(e?e.count:0)+(r?r.count:0)+n.length}e.exports=function(t){if(!t||0===t.length)return new x(null);return new x(y(t))};var s=o.prototype;function l(t,e){t.mid=e.mid,t.left=e.left,t.right=e.right,t.leftPoints=e.leftPoints,t.rightPoints=e.rightPoints,t.count=e.count}function c(t,e){var r=y(e);t.mid=r.mid,t.left=r.left,t.right=r.right,t.leftPoints=r.leftPoints,t.rightPoints=r.rightPoints,t.count=r.count}function u(t,e){var r=t.intervals([]);r.push(e),c(t,r)}function f(t,e){var r=t.intervals([]),n=r.indexOf(e);return n<0?i:(r.splice(n,1),c(t,r),a)}function h(t,e,r){for(var n=0;n<t.length&&t[n][0]<=e;++n){var i=r(t[n]);if(i)return i}}function p(t,e,r){for(var n=t.length-1;n>=0&&t[n][1]>=e;--n){var i=r(t[n]);if(i)return i}}function d(t,e){for(var r=0;r<t.length;++r){var n=e(t[r]);if(n)return n}}function g(t,e){return t-e}function v(t,e){var r=t[0]-e[0];return r||t[1]-e[1]}function m(t,e){var r=t[1]-e[1];return r||t[0]-e[0]}function y(t){if(0===t.length)return null;for(var e=[],r=0;r<t.length;++r)e.push(t[r][0],t[r][1]);e.sort(g);var n=e[e.length>>1],i=[],a=[],s=[];for(r=0;r<t.length;++r){var l=t[r];l[1]<n?i.push(l):n<l[0]?a.push(l):s.push(l)}var c=s,u=s.slice();return c.sort(v),u.sort(m),new o(n,y(i),y(a),c,u)}function x(t){this.root=t}s.intervals=function(t){return t.push.apply(t,this.leftPoints),this.left&&this.left.intervals(t),this.right&&this.right.intervals(t),t},s.insert=function(t){var e=this.count-this.leftPoints.length;if(this.count+=1,t[1]<this.mid)this.left?4*(this.left.count+1)>3*(e+1)?u(this,t):this.left.insert(t):this.left=y([t]);else if(t[0]>this.mid)this.right?4*(this.right.count+1)>3*(e+1)?u(this,t):this.right.insert(t):this.right=y([t]);else{var r=n.ge(this.leftPoints,t,v),i=n.ge(this.rightPoints,t,m);this.leftPoints.splice(r,0,t),this.rightPoints.splice(i,0,t)}},s.remove=function(t){var e=this.count-this.leftPoints;if(t[1]<this.mid)return this.left?4*(this.right?this.right.count:0)>3*(e-1)?f(this,t):2===(c=this.left.remove(t))?(this.left=null,this.count-=1,a):(c===a&&(this.count-=1),c):i;if(t[0]>this.mid)return this.right?4*(this.left?this.left.count:0)>3*(e-1)?f(this,t):2===(c=this.right.remove(t))?(this.right=null,this.count-=1,a):(c===a&&(this.count-=1),c):i;if(1===this.count)return this.leftPoints[0]===t?2:i;if(1===this.leftPoints.length&&this.leftPoints[0]===t){if(this.left&&this.right){for(var r=this,o=this.left;o.right;)r=o,o=o.right;if(r===this)o.right=this.right;else{var s=this.left,c=this.right;r.count-=o.count,r.right=o.left,o.left=s,o.right=c}l(this,o),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?l(this,this.left):l(this,this.right);return a}for(s=n.ge(this.leftPoints,t,v);s<this.leftPoints.length&&this.leftPoints[s][0]===t[0];++s)if(this.leftPoints[s]===t){this.count-=1,this.leftPoints.splice(s,1);for(c=n.ge(this.rightPoints,t,m);c<this.rightPoints.length&&this.rightPoints[c][1]===t[1];++c)if(this.rightPoints[c]===t)return this.rightPoints.splice(c,1),a}return i},s.queryPoint=function(t,e){if(t<this.mid){if(this.left)if(r=this.left.queryPoint(t,e))return r;return h(this.leftPoints,t,e)}if(t>this.mid){var r;if(this.right)if(r=this.right.queryPoint(t,e))return r;return p(this.rightPoints,t,e)}return d(this.leftPoints,e)},s.queryInterval=function(t,e,r){var n;if(t<this.mid&&this.left&&(n=this.left.queryInterval(t,e,r)))return n;if(e>this.mid&&this.right&&(n=this.right.queryInterval(t,e,r)))return n;return e<this.mid?h(this.leftPoints,e,r):t>this.mid?p(this.rightPoints,t,r):d(this.leftPoints,r)};var b=x.prototype;b.insert=function(t){this.root?this.root.insert(t):this.root=new o(t[0],null,null,[t],[t])},b.remove=function(t){if(this.root){var e=this.root.remove(t);return 2===e&&(this.root=null),e!==i}return!1},b.queryPoint=function(t,e){if(this.root)return this.root.queryPoint(t,e)},b.queryInterval=function(t,e,r){if(t<=e&&this.root)return this.root.queryInterval(t,e,r)},Object.defineProperty(b,\"count\",{get:function(){return this.root?this.root.count:0}}),Object.defineProperty(b,\"intervals\",{get:function(){return this.root?this.root.intervals([]):[]}})},{\"binary-search-bounds\":79}],398:[function(t,e,r){\"use strict\";e.exports=function(t,e){e=e||new Array(t.length);for(var r=0;r<t.length;++r)e[t[r]]=r;return e}},{}],399:[function(t,e,r){\"use strict\";e.exports=function(t){for(var e=new Array(t),r=0;r<t;++r)e[r]=r;return e}},{}],400:[function(t,e,r){e.exports=!0},{}],401:[function(t,e,r){function n(t){return!!t.constructor&&\"function\"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}e.exports=function(t){return null!=t&&(n(t)||function(t){return\"function\"==typeof t.readFloatLE&&\"function\"==typeof t.slice&&n(t.slice(0,0))}(t)||!!t._isBuffer)}},{}],402:[function(t,e,r){\"use strict\";e.exports=\"undefined\"!=typeof navigator&&(/MSIE/.test(navigator.userAgent)||/Trident\\//.test(navigator.appVersion))},{}],403:[function(t,e,r){\"use strict\";e.exports=a,e.exports.isMobile=a;var n=/(android|bb\\d+|meego).+mobile|avantgo|bada\\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,i=/(android|bb\\d+|meego).+mobile|avantgo|bada\\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino|android|ipad|playbook|silk/i;function a(t){t||(t={});var e=t.ua;return e||\"undefined\"==typeof navigator||(e=navigator.userAgent),e&&e.headers&&\"string\"==typeof e.headers[\"user-agent\"]&&(e=e.headers[\"user-agent\"]),\"string\"==typeof e&&(t.tablet?i.test(e):n.test(e))}},{}],404:[function(t,e,r){\"use strict\";e.exports=function(t){var e=typeof t;return null!==t&&(\"object\"===e||\"function\"===e)}},{}],405:[function(t,e,r){\"use strict\";var n=Object.prototype.toString;e.exports=function(t){var e;return\"[object Object]\"===n.call(t)&&(null===(e=Object.getPrototypeOf(t))||e===Object.getPrototypeOf({}))}},{}],406:[function(t,e,r){\"use strict\";e.exports=function(t){for(var e,r=t.length,n=0;n<r;n++)if(((e=t.charCodeAt(n))<9||e>13)&&32!==e&&133!==e&&160!==e&&5760!==e&&6158!==e&&(e<8192||e>8205)&&8232!==e&&8233!==e&&8239!==e&&8287!==e&&8288!==e&&12288!==e&&65279!==e)return!1;return!0}},{}],407:[function(t,e,r){\"use strict\";e.exports=function(t){return\"string\"==typeof t&&(t=t.trim(),!!(/^[mzlhvcsqta]\\s*[-+.0-9][^mlhvzcsqta]+/i.test(t)&&/[\\dz]$/i.test(t)&&t.length>4))}},{}],408:[function(t,e,r){e.exports=function(t,e,r){return t*(1-r)+e*r}},{}],409:[function(t,e,r){(function(t){!function(t,n){\"object\"==typeof r&&\"undefined\"!=typeof e?e.exports=n():t.mapboxgl=n()}(this,function(){\"use strict\";var e,r,n;function i(t,i){if(e)if(r){var a=\"var sharedChunk = {}; (\"+e+\")(sharedChunk); (\"+r+\")(sharedChunk);\",o={};e(o),(n=i(o)).workerUrl=window.URL.createObjectURL(new Blob([a],{type:\"text/javascript\"}))}else r=i;else e=i}return i(0,function(e){var r=\"undefined\"!=typeof window?window:\"undefined\"!=typeof t?t:\"undefined\"!=typeof self?self:{};function n(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,\"default\")?t.default:t}function i(t,e){return t(e={exports:{}},e.exports),e.exports}var a=o;function o(t,e,r,n){this.cx=3*t,this.bx=3*(r-t)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*e,this.by=3*(n-e)-this.cy,this.ay=1-this.cy-this.by,this.p1x=t,this.p1y=n,this.p2x=r,this.p2y=n}o.prototype.sampleCurveX=function(t){return((this.ax*t+this.bx)*t+this.cx)*t},o.prototype.sampleCurveY=function(t){return((this.ay*t+this.by)*t+this.cy)*t},o.prototype.sampleCurveDerivativeX=function(t){return(3*this.ax*t+2*this.bx)*t+this.cx},o.prototype.solveCurveX=function(t,e){var r,n,i,a,o;for(void 0===e&&(e=1e-6),i=t,o=0;o<8;o++){if(a=this.sampleCurveX(i)-t,Math.abs(a)<e)return i;var s=this.sampleCurveDerivativeX(i);if(Math.abs(s)<1e-6)break;i-=a/s}if((i=t)<(r=0))return r;if(i>(n=1))return n;for(;r<n;){if(a=this.sampleCurveX(i),Math.abs(a-t)<e)return i;t>a?r=i:n=i,i=.5*(n-r)+r}return i},o.prototype.solve=function(t,e){return this.sampleCurveY(this.solveCurveX(t,e))};var s=function(t,e,r){this.column=t,this.row=e,this.zoom=r};s.prototype.clone=function(){return new s(this.column,this.row,this.zoom)},s.prototype.zoomTo=function(t){return this.clone()._zoomTo(t)},s.prototype.sub=function(t){return this.clone()._sub(t)},s.prototype._zoomTo=function(t){var e=Math.pow(2,t-this.zoom);return this.column*=e,this.row*=e,this.zoom=t,this},s.prototype._sub=function(t){return t=t.zoomTo(this.zoom),this.column-=t.column,this.row-=t.row,this};var l=c;function c(t,e){this.x=t,this.y=e}function u(t,e,r,n){var i=new a(t,e,r,n);return function(t){return i.solve(t)}}c.prototype={clone:function(){return new c(this.x,this.y)},add:function(t){return this.clone()._add(t)},sub:function(t){return this.clone()._sub(t)},multByPoint:function(t){return this.clone()._multByPoint(t)},divByPoint:function(t){return this.clone()._divByPoint(t)},mult:function(t){return this.clone()._mult(t)},div:function(t){return this.clone()._div(t)},rotate:function(t){return this.clone()._rotate(t)},rotateAround:function(t,e){return this.clone()._rotateAround(t,e)},matMult:function(t){return this.clone()._matMult(t)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(t){return this.x===t.x&&this.y===t.y},dist:function(t){return Math.sqrt(this.distSqr(t))},distSqr:function(t){var e=t.x-this.x,r=t.y-this.y;return e*e+r*r},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(t){return Math.atan2(this.y-t.y,this.x-t.x)},angleWith:function(t){return this.angleWithSep(t.x,t.y)},angleWithSep:function(t,e){return Math.atan2(this.x*e-this.y*t,this.x*t+this.y*e)},_matMult:function(t){var e=t[0]*this.x+t[1]*this.y,r=t[2]*this.x+t[3]*this.y;return this.x=e,this.y=r,this},_add:function(t){return this.x+=t.x,this.y+=t.y,this},_sub:function(t){return this.x-=t.x,this.y-=t.y,this},_mult:function(t){return this.x*=t,this.y*=t,this},_div:function(t){return this.x/=t,this.y/=t,this},_multByPoint:function(t){return this.x*=t.x,this.y*=t.y,this},_divByPoint:function(t){return this.x/=t.x,this.y/=t.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var t=this.y;return this.y=this.x,this.x=-t,this},_rotate:function(t){var e=Math.cos(t),r=Math.sin(t),n=e*this.x-r*this.y,i=r*this.x+e*this.y;return this.x=n,this.y=i,this},_rotateAround:function(t,e){var r=Math.cos(t),n=Math.sin(t),i=e.x+r*(this.x-e.x)-n*(this.y-e.y),a=e.y+n*(this.x-e.x)+r*(this.y-e.y);return this.x=i,this.y=a,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},c.convert=function(t){return t instanceof c?t:Array.isArray(t)?new c(t[0],t[1]):t};var f=u(.25,.1,.25,1);function h(t,e,r){return Math.min(r,Math.max(e,t))}function p(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];for(var n=0,i=e;n<i.length;n+=1){var a=i[n];for(var o in a)t[o]=a[o]}return t}var d=1;function g(t,e){t.forEach(function(t){e[t]&&(e[t]=e[t].bind(e))})}function v(t,e){return-1!==t.indexOf(e,t.length-e.length)}function m(t,e,r){var n={};for(var i in t)n[i]=e.call(r||this,t[i],i,t);return n}function y(t,e,r){var n={};for(var i in t)e.call(r||this,t[i],i,t)&&(n[i]=t[i]);return n}function x(t){return Array.isArray(t)?t.map(x):\"object\"==typeof t&&t?m(t,x):t}var b={};function _(t){b[t]||(\"undefined\"!=typeof console&&console.warn(t),b[t]=!0)}function w(t,e,r){return(r.y-t.y)*(e.x-t.x)>(e.y-t.y)*(r.x-t.x)}function k(t){for(var e=0,r=0,n=t.length,i=n-1,a=void 0,o=void 0;r<n;i=r++)a=t[r],e+=((o=t[i]).x-a.x)*(a.y+o.y);return e}var M={Unknown:\"Unknown\",Style:\"Style\",Source:\"Source\",Tile:\"Tile\",Glyphs:\"Glyphs\",SpriteImage:\"SpriteImage\",SpriteJSON:\"SpriteJSON\",Image:\"Image\"};\"function\"==typeof Object.freeze&&Object.freeze(M);var A=function(t){function e(e,r,n){t.call(this,e),this.status=r,this.url=n,this.name=this.constructor.name,this.message=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toString=function(){return this.name+\": \"+this.message+\" (\"+this.status+\"): \"+this.url},e}(Error);function T(t){var e=new self.XMLHttpRequest;for(var r in e.open(\"GET\",t.url,!0),t.headers)e.setRequestHeader(r,t.headers[r]);return e.withCredentials=\"include\"===t.credentials,e}var S=function(t,e){var r=T(t);return r.responseType=\"arraybuffer\",r.onerror=function(){e(new Error(r.statusText))},r.onload=function(){var n=r.response;if(0===n.byteLength&&200===r.status)return e(new Error(\"http status 200 returned without content.\"));r.status>=200&&r.status<300&&r.response?e(null,{data:n,cacheControl:r.getResponseHeader(\"Cache-Control\"),expires:r.getResponseHeader(\"Expires\")}):e(new A(r.statusText,r.status,t.url))},r.send(),r};function E(t,e,r){r[t]=r[t]||[],r[t].push(e)}function C(t,e,r){if(r&&r[t]){var n=r[t].indexOf(e);-1!==n&&r[t].splice(n,1)}}var L=function(t,e){void 0===e&&(e={}),p(this,e),this.type=t},z=function(t){function e(e,r){void 0===r&&(r={}),t.call(this,\"error\",p({error:e},r))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(L),O=function(){};O.prototype.on=function(t,e){return this._listeners=this._listeners||{},E(t,e,this._listeners),this},O.prototype.off=function(t,e){return C(t,e,this._listeners),C(t,e,this._oneTimeListeners),this},O.prototype.once=function(t,e){return this._oneTimeListeners=this._oneTimeListeners||{},E(t,e,this._oneTimeListeners),this},O.prototype.fire=function(t){\"string\"==typeof t&&(t=new L(t,arguments[1]||{}));var e=t.type;if(this.listens(e)){t.target=this;for(var r=0,n=this._listeners&&this._listeners[e]?this._listeners[e].slice():[];r<n.length;r+=1)n[r].call(this,t);for(var i=0,a=this._oneTimeListeners&&this._oneTimeListeners[e]?this._oneTimeListeners[e].slice():[];i<a.length;i+=1){var o=a[i];C(e,o,this._oneTimeListeners),o.call(this,t)}var s=this._eventedParent;s&&(p(t,\"function\"==typeof this._eventedParentData?this._eventedParentData():this._eventedParentData),s.fire(t))}else v(e,\"error\")?console.error(t&&t.error||t||\"Empty error event\"):v(e,\"warning\")&&console.warn(t&&t.warning||t||\"Empty warning event\");return this},O.prototype.listens=function(t){return this._listeners&&this._listeners[t]&&this._listeners[t].length>0||this._oneTimeListeners&&this._oneTimeListeners[t]&&this._oneTimeListeners[t].length>0||this._eventedParent&&this._eventedParent.listens(t)},O.prototype.setEventedParent=function(t,e){return this._eventedParent=t,this._eventedParentData=e,this};var I={$version:8,$root:{version:{required:!0,type:\"enum\",values:[8]},name:{type:\"string\"},metadata:{type:\"*\"},center:{type:\"array\",value:\"number\"},zoom:{type:\"number\"},bearing:{type:\"number\",default:0,period:360,units:\"degrees\"},pitch:{type:\"number\",default:0,units:\"degrees\"},light:{type:\"light\"},sources:{required:!0,type:\"sources\"},sprite:{type:\"string\"},glyphs:{type:\"string\"},transition:{type:\"transition\"},layers:{required:!0,type:\"array\",value:\"layer\"}},sources:{\"*\":{type:\"source\"}},source:[\"source_vector\",\"source_raster\",\"source_raster_dem\",\"source_geojson\",\"source_video\",\"source_image\"],source_vector:{type:{required:!0,type:\"enum\",values:{vector:{}}},url:{type:\"string\"},tiles:{type:\"array\",value:\"string\"},bounds:{type:\"array\",value:\"number\",length:4,default:[-180,-85.0511,180,85.0511]},minzoom:{type:\"number\",default:0},maxzoom:{type:\"number\",default:22},attribution:{type:\"string\"},\"*\":{type:\"*\"}},source_raster:{type:{required:!0,type:\"enum\",values:{raster:{}}},url:{type:\"string\"},tiles:{type:\"array\",value:\"string\"},bounds:{type:\"array\",value:\"number\",length:4,default:[-180,-85.0511,180,85.0511]},minzoom:{type:\"number\",default:0},maxzoom:{type:\"number\",default:22},tileSize:{type:\"number\",default:512,units:\"pixels\"},scheme:{type:\"enum\",values:{xyz:{},tms:{}},default:\"xyz\"},attribution:{type:\"string\"},\"*\":{type:\"*\"}},source_raster_dem:{type:{required:!0,type:\"enum\",values:{\"raster-dem\":{}}},url:{type:\"string\"},tiles:{type:\"array\",value:\"string\"},bounds:{type:\"array\",value:\"number\",length:4,default:[-180,-85.0511,180,85.0511]},minzoom:{type:\"number\",default:0},maxzoom:{type:\"number\",default:22},tileSize:{type:\"number\",default:512,units:\"pixels\"},attribution:{type:\"string\"},encoding:{type:\"enum\",values:{terrarium:{},mapbox:{}},default:\"mapbox\"},\"*\":{type:\"*\"}},source_geojson:{type:{required:!0,type:\"enum\",values:{geojson:{}}},data:{type:\"*\"},maxzoom:{type:\"number\",default:18},buffer:{type:\"number\",default:128,maximum:512,minimum:0},tolerance:{type:\"number\",default:.375},cluster:{type:\"boolean\",default:!1},clusterRadius:{type:\"number\",default:50,minimum:0},clusterMaxZoom:{type:\"number\"},lineMetrics:{type:\"boolean\",default:!1}},source_video:{type:{required:!0,type:\"enum\",values:{video:{}}},urls:{required:!0,type:\"array\",value:\"string\"},coordinates:{required:!0,type:\"array\",length:4,value:{type:\"array\",length:2,value:\"number\"}}},source_image:{type:{required:!0,type:\"enum\",values:{image:{}}},url:{required:!0,type:\"string\"},coordinates:{required:!0,type:\"array\",length:4,value:{type:\"array\",length:2,value:\"number\"}}},layer:{id:{type:\"string\",required:!0},type:{type:\"enum\",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},\"fill-extrusion\":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:\"*\"},source:{type:\"string\"},\"source-layer\":{type:\"string\"},minzoom:{type:\"number\",minimum:0,maximum:24},maxzoom:{type:\"number\",minimum:0,maximum:24},filter:{type:\"filter\"},layout:{type:\"layout\"},paint:{type:\"paint\"}},layout:[\"layout_fill\",\"layout_line\",\"layout_circle\",\"layout_heatmap\",\"layout_fill-extrusion\",\"layout_symbol\",\"layout_raster\",\"layout_hillshade\",\"layout_background\"],layout_background:{visibility:{type:\"enum\",values:{visible:{},none:{}},default:\"visible\"}},layout_fill:{visibility:{type:\"enum\",values:{visible:{},none:{}},default:\"visible\"}},layout_circle:{visibility:{type:\"enum\",values:{visible:{},none:{}},default:\"visible\"}},layout_heatmap:{visibility:{type:\"enum\",values:{visible:{},none:{}},default:\"visible\"}},layout_line:{\"line-cap\":{type:\"enum\",function:\"piecewise-constant\",\"zoom-function\":!0,values:{butt:{},round:{},square:{}},default:\"butt\"},\"line-join\":{type:\"enum\",function:\"piecewise-constant\",\"zoom-function\":!0,\"property-function\":!0,values:{bevel:{},round:{},miter:{}},default:\"miter\"},\"line-miter-limit\":{type:\"number\",default:2,function:\"interpolated\",\"zoom-function\":!0,requires:[{\"line-join\":\"miter\"}]},\"line-round-limit\":{type:\"number\",default:1.05,function:\"interpolated\",\"zoom-function\":!0,requires:[{\"line-join\":\"round\"}]},visibility:{type:\"enum\",values:{visible:{},none:{}},default:\"visible\"}},layout_symbol:{\"symbol-placement\":{type:\"enum\",function:\"piecewise-constant\",\"zoom-function\":!0,values:{point:{},line:{}},default:\"point\"},\"symbol-spacing\":{type:\"number\",default:250,minimum:1,function:\"interpolated\",\"zoom-function\":!0,units:\"pixels\",requires:[{\"symbol-placement\":\"line\"}]},\"symbol-avoid-edges\":{type:\"boolean\",function:\"piecewise-constant\",\"zoom-function\":!0,default:!1},\"icon-allow-overlap\":{type:\"boolean\",function:\"piecewise-constant\",\"zoom-function\":!0,default:!1,requires:[\"icon-image\"]},\"icon-ignore-placement\":{type:\"boolean\",function:\"piecewise-constant\",\"zoom-function\":!0,default:!1,requires:[\"icon-image\"]},\"icon-optional\":{type:\"boolean\",function:\"piecewise-constant\",\"zoom-function\":!0,default:!1,requires:[\"icon-image\",\"text-field\"]},\"icon-rotation-alignment\":{type:\"enum\",function:\"piecewise-constant\",\"zoom-function\":!0,values:{map:{},viewport:{},auto:{}},default:\"auto\",requires:[\"icon-image\"]},\"icon-size\":{type:\"number\",default:1,minimum:0,function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,units:\"factor of the original icon size\",requires:[\"icon-image\"]},\"icon-text-fit\":{type:\"enum\",function:\"piecewise-constant\",\"zoom-function\":!0,values:{none:{},width:{},height:{},both:{}},default:\"none\",requires:[\"icon-image\",\"text-field\"]},\"icon-text-fit-padding\":{type:\"array\",value:\"number\",length:4,default:[0,0,0,0],units:\"pixels\",function:\"interpolated\",\"zoom-function\":!0,requires:[\"icon-image\",\"text-field\",{\"icon-text-fit\":[\"both\",\"width\",\"height\"]}]},\"icon-image\":{type:\"string\",function:\"piecewise-constant\",\"zoom-function\":!0,\"property-function\":!0,tokens:!0},\"icon-rotate\":{type:\"number\",default:0,period:360,function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,units:\"degrees\",requires:[\"icon-image\"]},\"icon-padding\":{type:\"number\",default:2,minimum:0,function:\"interpolated\",\"zoom-function\":!0,units:\"pixels\",requires:[\"icon-image\"]},\"icon-keep-upright\":{type:\"boolean\",function:\"piecewise-constant\",\"zoom-function\":!0,default:!1,requires:[\"icon-image\",{\"icon-rotation-alignment\":\"map\"},{\"symbol-placement\":\"line\"}]},\"icon-offset\":{type:\"array\",value:\"number\",length:2,default:[0,0],function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,requires:[\"icon-image\"]},\"icon-anchor\":{type:\"enum\",function:\"piecewise-constant\",\"zoom-function\":!0,\"property-function\":!0,values:{center:{},left:{},right:{},top:{},bottom:{},\"top-left\":{},\"top-right\":{},\"bottom-left\":{},\"bottom-right\":{}},default:\"center\",requires:[\"icon-image\"]},\"icon-pitch-alignment\":{type:\"enum\",function:\"piecewise-constant\",\"zoom-function\":!0,values:{map:{},viewport:{},auto:{}},default:\"auto\",requires:[\"icon-image\"]},\"text-pitch-alignment\":{type:\"enum\",function:\"piecewise-constant\",\"zoom-function\":!0,values:{map:{},viewport:{},auto:{}},default:\"auto\",requires:[\"text-field\"]},\"text-rotation-alignment\":{type:\"enum\",function:\"piecewise-constant\",\"zoom-function\":!0,values:{map:{},viewport:{},auto:{}},default:\"auto\",requires:[\"text-field\"]},\"text-field\":{type:\"string\",function:\"piecewise-constant\",\"zoom-function\":!0,\"property-function\":!0,default:\"\",tokens:!0},\"text-font\":{type:\"array\",value:\"string\",function:\"piecewise-constant\",\"zoom-function\":!0,\"property-function\":!0,default:[\"Open Sans Regular\",\"Arial Unicode MS Regular\"],requires:[\"text-field\"]},\"text-size\":{type:\"number\",default:16,minimum:0,units:\"pixels\",function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,requires:[\"text-field\"]},\"text-max-width\":{type:\"number\",default:10,minimum:0,units:\"ems\",function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,requires:[\"text-field\"]},\"text-line-height\":{type:\"number\",default:1.2,units:\"ems\",function:\"interpolated\",\"zoom-function\":!0,requires:[\"text-field\"]},\"text-letter-spacing\":{type:\"number\",default:0,units:\"ems\",function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,requires:[\"text-field\"]},\"text-justify\":{type:\"enum\",function:\"piecewise-constant\",\"zoom-function\":!0,\"property-function\":!0,values:{left:{},center:{},right:{}},default:\"center\",requires:[\"text-field\"]},\"text-anchor\":{type:\"enum\",function:\"piecewise-constant\",\"zoom-function\":!0,\"property-function\":!0,values:{center:{},left:{},right:{},top:{},bottom:{},\"top-left\":{},\"top-right\":{},\"bottom-left\":{},\"bottom-right\":{}},default:\"center\",requires:[\"text-field\"]},\"text-max-angle\":{type:\"number\",default:45,units:\"degrees\",function:\"interpolated\",\"zoom-function\":!0,requires:[\"text-field\",{\"symbol-placement\":\"line\"}]},\"text-rotate\":{type:\"number\",default:0,period:360,units:\"degrees\",function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,requires:[\"text-field\"]},\"text-padding\":{type:\"number\",default:2,minimum:0,units:\"pixels\",function:\"interpolated\",\"zoom-function\":!0,requires:[\"text-field\"]},\"text-keep-upright\":{type:\"boolean\",function:\"piecewise-constant\",\"zoom-function\":!0,default:!0,requires:[\"text-field\",{\"text-rotation-alignment\":\"map\"},{\"symbol-placement\":\"line\"}]},\"text-transform\":{type:\"enum\",function:\"piecewise-constant\",\"zoom-function\":!0,\"property-function\":!0,values:{none:{},uppercase:{},lowercase:{}},default:\"none\",requires:[\"text-field\"]},\"text-offset\":{type:\"array\",value:\"number\",units:\"ems\",function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,length:2,default:[0,0],requires:[\"text-field\"]},\"text-allow-overlap\":{type:\"boolean\",function:\"piecewise-constant\",\"zoom-function\":!0,default:!1,requires:[\"text-field\"]},\"text-ignore-placement\":{type:\"boolean\",function:\"piecewise-constant\",\"zoom-function\":!0,default:!1,requires:[\"text-field\"]},\"text-optional\":{type:\"boolean\",function:\"piecewise-constant\",\"zoom-function\":!0,default:!1,requires:[\"text-field\",\"icon-image\"]},visibility:{type:\"enum\",values:{visible:{},none:{}},default:\"visible\"}},layout_raster:{visibility:{type:\"enum\",values:{visible:{},none:{}},default:\"visible\"}},layout_hillshade:{visibility:{type:\"enum\",values:{visible:{},none:{}},default:\"visible\"}},filter:{type:\"array\",value:\"*\"},filter_operator:{type:\"enum\",values:{\"==\":{},\"!=\":{},\">\":{},\">=\":{},\"<\":{},\"<=\":{},in:{},\"!in\":{},all:{},any:{},none:{},has:{},\"!has\":{}}},geometry_type:{type:\"enum\",values:{Point:{},LineString:{},Polygon:{}}},function_stop:{type:\"array\",minimum:0,maximum:22,value:[\"number\",\"color\"],length:2},expression:{type:\"array\",value:\"*\",minimum:1},expression_name:{type:\"enum\",values:{let:{group:\"Variable binding\"},var:{group:\"Variable binding\"},literal:{group:\"Types\"},array:{group:\"Types\"},at:{group:\"Lookup\"},case:{group:\"Decision\"},match:{group:\"Decision\"},coalesce:{group:\"Decision\"},step:{group:\"Ramps, scales, curves\"},interpolate:{group:\"Ramps, scales, curves\"},ln2:{group:\"Math\"},pi:{group:\"Math\"},e:{group:\"Math\"},typeof:{group:\"Types\"},string:{group:\"Types\"},number:{group:\"Types\"},boolean:{group:\"Types\"},object:{group:\"Types\"},collator:{group:\"Types\"},\"to-string\":{group:\"Types\"},\"to-number\":{group:\"Types\"},\"to-boolean\":{group:\"Types\"},\"to-rgba\":{group:\"Color\"},\"to-color\":{group:\"Types\"},rgb:{group:\"Color\"},rgba:{group:\"Color\"},get:{group:\"Lookup\"},has:{group:\"Lookup\"},length:{group:\"Lookup\"},properties:{group:\"Feature data\"},\"geometry-type\":{group:\"Feature data\"},id:{group:\"Feature data\"},zoom:{group:\"Zoom\"},\"heatmap-density\":{group:\"Heatmap\"},\"line-progress\":{group:\"Heatmap\"},\"+\":{group:\"Math\"},\"*\":{group:\"Math\"},\"-\":{group:\"Math\"},\"/\":{group:\"Math\"},\"%\":{group:\"Math\"},\"^\":{group:\"Math\"},sqrt:{group:\"Math\"},log10:{group:\"Math\"},ln:{group:\"Math\"},log2:{group:\"Math\"},sin:{group:\"Math\"},cos:{group:\"Math\"},tan:{group:\"Math\"},asin:{group:\"Math\"},acos:{group:\"Math\"},atan:{group:\"Math\"},min:{group:\"Math\"},max:{group:\"Math\"},round:{group:\"Math\"},abs:{group:\"Math\"},ceil:{group:\"Math\"},floor:{group:\"Math\"},\"==\":{group:\"Decision\"},\"!=\":{group:\"Decision\"},\">\":{group:\"Decision\"},\"<\":{group:\"Decision\"},\">=\":{group:\"Decision\"},\"<=\":{group:\"Decision\"},all:{group:\"Decision\"},any:{group:\"Decision\"},\"!\":{group:\"Decision\"},\"is-supported-script\":{group:\"String\"},upcase:{group:\"String\"},downcase:{group:\"String\"},concat:{group:\"String\"},\"resolved-locale\":{group:\"String\"}}},light:{anchor:{type:\"enum\",default:\"viewport\",values:{map:{},viewport:{}},transition:!1,\"zoom-function\":!0,\"property-function\":!1,function:\"piecewise-constant\"},position:{type:\"array\",default:[1.15,210,30],length:3,value:\"number\",transition:!0,function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!1},color:{type:\"color\",default:\"#ffffff\",function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!1,transition:!0},intensity:{type:\"number\",default:.5,minimum:0,maximum:1,function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!1,transition:!0}},paint:[\"paint_fill\",\"paint_line\",\"paint_circle\",\"paint_heatmap\",\"paint_fill-extrusion\",\"paint_symbol\",\"paint_raster\",\"paint_hillshade\",\"paint_background\"],paint_fill:{\"fill-antialias\":{type:\"boolean\",function:\"piecewise-constant\",\"zoom-function\":!0,default:!0},\"fill-opacity\":{type:\"number\",function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,default:1,minimum:0,maximum:1,transition:!0},\"fill-color\":{type:\"color\",default:\"#000000\",function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,requires:[{\"!\":\"fill-pattern\"}]},\"fill-outline-color\":{type:\"color\",function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,requires:[{\"!\":\"fill-pattern\"},{\"fill-antialias\":!0}]},\"fill-translate\":{type:\"array\",value:\"number\",length:2,default:[0,0],function:\"interpolated\",\"zoom-function\":!0,transition:!0,units:\"pixels\"},\"fill-translate-anchor\":{type:\"enum\",function:\"piecewise-constant\",\"zoom-function\":!0,values:{map:{},viewport:{}},default:\"map\",requires:[\"fill-translate\"]},\"fill-pattern\":{type:\"string\",function:\"piecewise-constant\",\"zoom-function\":!0,transition:!0}},paint_line:{\"line-opacity\":{type:\"number\",function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,default:1,minimum:0,maximum:1,transition:!0},\"line-color\":{type:\"color\",default:\"#000000\",function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,requires:[{\"!\":\"line-pattern\"}]},\"line-translate\":{type:\"array\",value:\"number\",length:2,default:[0,0],function:\"interpolated\",\"zoom-function\":!0,transition:!0,units:\"pixels\"},\"line-translate-anchor\":{type:\"enum\",function:\"piecewise-constant\",\"zoom-function\":!0,values:{map:{},viewport:{}},default:\"map\",requires:[\"line-translate\"]},\"line-width\":{type:\"number\",default:1,minimum:0,function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,units:\"pixels\"},\"line-gap-width\":{type:\"number\",default:0,minimum:0,function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,units:\"pixels\"},\"line-offset\":{type:\"number\",default:0,function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,units:\"pixels\"},\"line-blur\":{type:\"number\",default:0,minimum:0,function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,units:\"pixels\"},\"line-dasharray\":{type:\"array\",value:\"number\",function:\"piecewise-constant\",\"zoom-function\":!0,minimum:0,transition:!0,units:\"line widths\",requires:[{\"!\":\"line-pattern\"}]},\"line-pattern\":{type:\"string\",function:\"piecewise-constant\",\"zoom-function\":!0,transition:!0},\"line-gradient\":{type:\"color\",function:\"interpolated\",\"zoom-function\":!1,\"property-function\":!1,transition:!1,requires:[{\"!\":\"line-dasharray\"},{\"!\":\"line-pattern\"},{source:\"geojson\",has:{lineMetrics:!0}}]}},paint_circle:{\"circle-radius\":{type:\"number\",default:5,minimum:0,function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,units:\"pixels\"},\"circle-color\":{type:\"color\",default:\"#000000\",function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0},\"circle-blur\":{type:\"number\",default:0,function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0},\"circle-opacity\":{type:\"number\",default:1,minimum:0,maximum:1,function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0},\"circle-translate\":{type:\"array\",value:\"number\",length:2,default:[0,0],function:\"interpolated\",\"zoom-function\":!0,transition:!0,units:\"pixels\"},\"circle-translate-anchor\":{type:\"enum\",function:\"piecewise-constant\",\"zoom-function\":!0,values:{map:{},viewport:{}},default:\"map\",requires:[\"circle-translate\"]},\"circle-pitch-scale\":{type:\"enum\",function:\"piecewise-constant\",\"zoom-function\":!0,values:{map:{},viewport:{}},default:\"map\"},\"circle-pitch-alignment\":{type:\"enum\",function:\"piecewise-constant\",\"zoom-function\":!0,values:{map:{},viewport:{}},default:\"viewport\"},\"circle-stroke-width\":{type:\"number\",default:0,minimum:0,function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,units:\"pixels\"},\"circle-stroke-color\":{type:\"color\",default:\"#000000\",function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0},\"circle-stroke-opacity\":{type:\"number\",default:1,minimum:0,maximum:1,function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0}},paint_heatmap:{\"heatmap-radius\":{type:\"number\",default:30,minimum:1,function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,units:\"pixels\"},\"heatmap-weight\":{type:\"number\",default:1,minimum:0,function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!1},\"heatmap-intensity\":{type:\"number\",default:1,minimum:0,function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!1,transition:!0},\"heatmap-color\":{type:\"color\",default:[\"interpolate\",[\"linear\"],[\"heatmap-density\"],0,\"rgba(0, 0, 255, 0)\",.1,\"royalblue\",.3,\"cyan\",.5,\"lime\",.7,\"yellow\",1,\"red\"],function:\"interpolated\",\"zoom-function\":!1,\"property-function\":!1,transition:!1},\"heatmap-opacity\":{type:\"number\",default:1,minimum:0,maximum:1,function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!1,transition:!0}},paint_symbol:{\"icon-opacity\":{type:\"number\",default:1,minimum:0,maximum:1,function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,requires:[\"icon-image\"]},\"icon-color\":{type:\"color\",default:\"#000000\",function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,requires:[\"icon-image\"]},\"icon-halo-color\":{type:\"color\",default:\"rgba(0, 0, 0, 0)\",function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,requires:[\"icon-image\"]},\"icon-halo-width\":{type:\"number\",default:0,minimum:0,function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,units:\"pixels\",requires:[\"icon-image\"]},\"icon-halo-blur\":{type:\"number\",default:0,minimum:0,function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,units:\"pixels\",requires:[\"icon-image\"]},\"icon-translate\":{type:\"array\",value:\"number\",length:2,default:[0,0],function:\"interpolated\",\"zoom-function\":!0,transition:!0,units:\"pixels\",requires:[\"icon-image\"]},\"icon-translate-anchor\":{type:\"enum\",function:\"piecewise-constant\",\"zoom-function\":!0,values:{map:{},viewport:{}},default:\"map\",requires:[\"icon-image\",\"icon-translate\"]},\"text-opacity\":{type:\"number\",default:1,minimum:0,maximum:1,function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,requires:[\"text-field\"]},\"text-color\":{type:\"color\",default:\"#000000\",function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,requires:[\"text-field\"]},\"text-halo-color\":{type:\"color\",default:\"rgba(0, 0, 0, 0)\",function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,requires:[\"text-field\"]},\"text-halo-width\":{type:\"number\",default:0,minimum:0,function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,units:\"pixels\",requires:[\"text-field\"]},\"text-halo-blur\":{type:\"number\",default:0,minimum:0,function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,units:\"pixels\",requires:[\"text-field\"]},\"text-translate\":{type:\"array\",value:\"number\",length:2,default:[0,0],function:\"interpolated\",\"zoom-function\":!0,transition:!0,units:\"pixels\",requires:[\"text-field\"]},\"text-translate-anchor\":{type:\"enum\",function:\"piecewise-constant\",\"zoom-function\":!0,values:{map:{},viewport:{}},default:\"map\",requires:[\"text-field\",\"text-translate\"]}},paint_raster:{\"raster-opacity\":{type:\"number\",default:1,minimum:0,maximum:1,function:\"interpolated\",\"zoom-function\":!0,transition:!0},\"raster-hue-rotate\":{type:\"number\",default:0,period:360,function:\"interpolated\",\"zoom-function\":!0,transition:!0,units:\"degrees\"},\"raster-brightness-min\":{type:\"number\",function:\"interpolated\",\"zoom-function\":!0,default:0,minimum:0,maximum:1,transition:!0},\"raster-brightness-max\":{type:\"number\",function:\"interpolated\",\"zoom-function\":!0,default:1,minimum:0,maximum:1,transition:!0},\"raster-saturation\":{type:\"number\",default:0,minimum:-1,maximum:1,function:\"interpolated\",\"zoom-function\":!0,transition:!0},\"raster-contrast\":{type:\"number\",default:0,minimum:-1,maximum:1,function:\"interpolated\",\"zoom-function\":!0,transition:!0},\"raster-fade-duration\":{type:\"number\",default:300,minimum:0,function:\"interpolated\",\"zoom-function\":!0,transition:!1,units:\"milliseconds\"}},paint_hillshade:{\"hillshade-illumination-direction\":{type:\"number\",default:335,minimum:0,maximum:359,function:\"interpolated\",\"zoom-function\":!0,transition:!1},\"hillshade-illumination-anchor\":{type:\"enum\",function:\"piecewise-constant\",\"zoom-function\":!0,values:{map:{},viewport:{}},default:\"viewport\"},\"hillshade-exaggeration\":{type:\"number\",default:.5,minimum:0,maximum:1,function:\"interpolated\",\"zoom-function\":!0,transition:!0},\"hillshade-shadow-color\":{type:\"color\",default:\"#000000\",function:\"interpolated\",\"zoom-function\":!0,transition:!0},\"hillshade-highlight-color\":{type:\"color\",default:\"#FFFFFF\",function:\"interpolated\",\"zoom-function\":!0,transition:!0},\"hillshade-accent-color\":{type:\"color\",default:\"#000000\",function:\"interpolated\",\"zoom-function\":!0,transition:!0}},paint_background:{\"background-color\":{type:\"color\",default:\"#000000\",function:\"interpolated\",\"zoom-function\":!0,transition:!0,requires:[{\"!\":\"background-pattern\"}]},\"background-pattern\":{type:\"string\",function:\"piecewise-constant\",\"zoom-function\":!0,transition:!0},\"background-opacity\":{type:\"number\",default:1,minimum:0,maximum:1,function:\"interpolated\",\"zoom-function\":!0,transition:!0}},transition:{duration:{type:\"number\",default:300,minimum:0,units:\"milliseconds\"},delay:{type:\"number\",default:0,minimum:0,units:\"milliseconds\"}},\"layout_fill-extrusion\":{visibility:{type:\"enum\",values:{visible:{},none:{}},default:\"visible\"}},function:{expression:{type:\"expression\"},stops:{type:\"array\",value:\"function_stop\"},base:{type:\"number\",default:1,minimum:0},property:{type:\"string\",default:\"$zoom\"},type:{type:\"enum\",values:{identity:{},exponential:{},interval:{},categorical:{}},default:\"exponential\"},colorSpace:{type:\"enum\",values:{rgb:{},lab:{},hcl:{}},default:\"rgb\"},default:{type:\"*\",required:!1}},\"paint_fill-extrusion\":{\"fill-extrusion-opacity\":{type:\"number\",function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!1,default:1,minimum:0,maximum:1,transition:!0},\"fill-extrusion-color\":{type:\"color\",default:\"#000000\",function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,requires:[{\"!\":\"fill-extrusion-pattern\"}]},\"fill-extrusion-translate\":{type:\"array\",value:\"number\",length:2,default:[0,0],function:\"interpolated\",\"zoom-function\":!0,transition:!0,units:\"pixels\"},\"fill-extrusion-translate-anchor\":{type:\"enum\",function:\"piecewise-constant\",\"zoom-function\":!0,values:{map:{},viewport:{}},default:\"map\",requires:[\"fill-extrusion-translate\"]},\"fill-extrusion-pattern\":{type:\"string\",function:\"piecewise-constant\",\"zoom-function\":!0,transition:!0},\"fill-extrusion-height\":{type:\"number\",function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,default:0,minimum:0,units:\"meters\",transition:!0},\"fill-extrusion-base\":{type:\"number\",function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,default:0,minimum:0,units:\"meters\",transition:!0,requires:[\"fill-extrusion-height\"]}}},P=function(t,e,r,n){this.message=(t?t+\": \":\"\")+r,n&&(this.identifier=n),null!=e&&e.__line__&&(this.line=e.__line__)};function D(t){var e=t.key,r=t.value;return r?[new P(e,r,\"constants have been deprecated as of v8\")]:[]}function R(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];for(var n=0,i=e;n<i.length;n+=1){var a=i[n];for(var o in a)t[o]=a[o]}return t}function B(t){return t instanceof Number||t instanceof String||t instanceof Boolean?t.valueOf():t}function F(t){return Array.isArray(t)?t.map(F):B(t)}var N=function(t){function e(e,r){t.call(this,r),this.message=r,this.key=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Error),j=function(t,e){void 0===e&&(e=[]),this.parent=t,this.bindings={};for(var r=0,n=e;r<n.length;r+=1){var i=n[r],a=i[0],o=i[1];this.bindings[a]=o}};j.prototype.concat=function(t){return new j(this,t)},j.prototype.get=function(t){if(this.bindings[t])return this.bindings[t];if(this.parent)return this.parent.get(t);throw new Error(t+\" not found in scope.\")},j.prototype.has=function(t){return!!this.bindings[t]||!!this.parent&&this.parent.has(t)};var V={kind:\"null\"},U={kind:\"number\"},q={kind:\"string\"},H={kind:\"boolean\"},G={kind:\"color\"},W={kind:\"object\"},Y={kind:\"value\"},X={kind:\"collator\"};function Z(t,e){return{kind:\"array\",itemType:t,N:e}}function $(t){if(\"array\"===t.kind){var e=$(t.itemType);return\"number\"==typeof t.N?\"array<\"+e+\", \"+t.N+\">\":\"value\"===t.itemType.kind?\"array\":\"array<\"+e+\">\"}return t.kind}var J=[V,U,q,H,G,W,Z(Y)];function K(t,e){if(\"error\"===e.kind)return null;if(\"array\"===t.kind){if(\"array\"===e.kind&&!K(t.itemType,e.itemType)&&(\"number\"!=typeof t.N||t.N===e.N))return null}else{if(t.kind===e.kind)return null;if(\"value\"===t.kind)for(var r=0,n=J;r<n.length;r+=1)if(!K(n[r],e))return null}return\"Expected \"+$(t)+\" but found \"+$(e)+\" instead.\"}var Q=i(function(t,e){var r={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],rebeccapurple:[102,51,153,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function n(t){return(t=Math.round(t))<0?0:t>255?255:t}function i(t){return t<0?0:t>1?1:t}function a(t){return\"%\"===t[t.length-1]?n(parseFloat(t)/100*255):n(parseInt(t))}function o(t){return\"%\"===t[t.length-1]?i(parseFloat(t)/100):i(parseFloat(t))}function s(t,e,r){return r<0?r+=1:r>1&&(r-=1),6*r<1?t+(e-t)*r*6:2*r<1?e:3*r<2?t+(e-t)*(2/3-r)*6:t}try{e.parseCSSColor=function(t){var e,i=t.replace(/ /g,\"\").toLowerCase();if(i in r)return r[i].slice();if(\"#\"===i[0])return 4===i.length?(e=parseInt(i.substr(1),16))>=0&&e<=4095?[(3840&e)>>4|(3840&e)>>8,240&e|(240&e)>>4,15&e|(15&e)<<4,1]:null:7===i.length&&(e=parseInt(i.substr(1),16))>=0&&e<=16777215?[(16711680&e)>>16,(65280&e)>>8,255&e,1]:null;var l=i.indexOf(\"(\"),c=i.indexOf(\")\");if(-1!==l&&c+1===i.length){var u=i.substr(0,l),f=i.substr(l+1,c-(l+1)).split(\",\"),h=1;switch(u){case\"rgba\":if(4!==f.length)return null;h=o(f.pop());case\"rgb\":return 3!==f.length?null:[a(f[0]),a(f[1]),a(f[2]),h];case\"hsla\":if(4!==f.length)return null;h=o(f.pop());case\"hsl\":if(3!==f.length)return null;var p=(parseFloat(f[0])%360+360)%360/360,d=o(f[1]),g=o(f[2]),v=g<=.5?g*(d+1):g+d-g*d,m=2*g-v;return[n(255*s(m,v,p+1/3)),n(255*s(m,v,p)),n(255*s(m,v,p-1/3)),h];default:return null}}return null}}catch(t){}}).parseCSSColor,tt=function(t,e,r,n){void 0===n&&(n=1),this.r=t,this.g=e,this.b=r,this.a=n};tt.parse=function(t){if(t){if(t instanceof tt)return t;if(\"string\"==typeof t){var e=Q(t);if(e)return new tt(e[0]/255*e[3],e[1]/255*e[3],e[2]/255*e[3],e[3])}}},tt.prototype.toString=function(){var t=this.toArray(),e=t[0],r=t[1],n=t[2],i=t[3];return\"rgba(\"+Math.round(e)+\",\"+Math.round(r)+\",\"+Math.round(n)+\",\"+i+\")\"},tt.prototype.toArray=function(){var t=this.r,e=this.g,r=this.b,n=this.a;return 0===n?[0,0,0,0]:[255*t/n,255*e/n,255*r/n,n]},tt.black=new tt(0,0,0,1),tt.white=new tt(1,1,1,1),tt.transparent=new tt(0,0,0,0);var et=function(t,e,r){this.sensitivity=t?e?\"variant\":\"case\":e?\"accent\":\"base\",this.locale=r,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:\"search\"})};et.prototype.compare=function(t,e){return this.collator.compare(t,e)},et.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var rt=function(t,e,r){this.type=X,this.locale=r,this.caseSensitive=t,this.diacriticSensitive=e};function nt(t,e,r,n){return\"number\"==typeof t&&t>=0&&t<=255&&\"number\"==typeof e&&e>=0&&e<=255&&\"number\"==typeof r&&r>=0&&r<=255?void 0===n||\"number\"==typeof n&&n>=0&&n<=1?null:\"Invalid rgba value [\"+[t,e,r,n].join(\", \")+\"]: 'a' must be between 0 and 1.\":\"Invalid rgba value [\"+(\"number\"==typeof n?[t,e,r,n]:[t,e,r]).join(\", \")+\"]: 'r', 'g', and 'b' must be between 0 and 255.\"}function it(t){if(null===t)return V;if(\"string\"==typeof t)return q;if(\"boolean\"==typeof t)return H;if(\"number\"==typeof t)return U;if(t instanceof tt)return G;if(t instanceof et)return X;if(Array.isArray(t)){for(var e,r=t.length,n=0,i=t;n<i.length;n+=1){var a=it(i[n]);if(e){if(e===a)continue;e=Y;break}e=a}return Z(e||Y,r)}return W}rt.parse=function(t,e){if(2!==t.length)return e.error(\"Expected one argument.\");var r=t[1];if(\"object\"!=typeof r||Array.isArray(r))return e.error(\"Collator options argument must be an object.\");var n=e.parse(void 0!==r[\"case-sensitive\"]&&r[\"case-sensitive\"],1,H);if(!n)return null;var i=e.parse(void 0!==r[\"diacritic-sensitive\"]&&r[\"diacritic-sensitive\"],1,H);if(!i)return null;var a=null;return r.locale&&!(a=e.parse(r.locale,1,q))?null:new rt(n,i,a)},rt.prototype.evaluate=function(t){return new et(this.caseSensitive.evaluate(t),this.diacriticSensitive.evaluate(t),this.locale?this.locale.evaluate(t):null)},rt.prototype.eachChild=function(t){t(this.caseSensitive),t(this.diacriticSensitive),this.locale&&t(this.locale)},rt.prototype.possibleOutputs=function(){return[void 0]},rt.prototype.serialize=function(){var t={};return t[\"case-sensitive\"]=this.caseSensitive.serialize(),t[\"diacritic-sensitive\"]=this.diacriticSensitive.serialize(),this.locale&&(t.locale=this.locale.serialize()),[\"collator\",t]};var at=function(t,e){this.type=t,this.value=e};at.parse=function(t,e){if(2!==t.length)return e.error(\"'literal' expression requires exactly one argument, but found \"+(t.length-1)+\" instead.\");if(!function t(e){if(null===e)return!0;if(\"string\"==typeof e)return!0;if(\"boolean\"==typeof e)return!0;if(\"number\"==typeof e)return!0;if(e instanceof tt)return!0;if(e instanceof et)return!0;if(Array.isArray(e)){for(var r=0,n=e;r<n.length;r+=1)if(!t(n[r]))return!1;return!0}if(\"object\"==typeof e){for(var i in e)if(!t(e[i]))return!1;return!0}return!1}(t[1]))return e.error(\"invalid value\");var r=t[1],n=it(r),i=e.expectedType;return\"array\"!==n.kind||0!==n.N||!i||\"array\"!==i.kind||\"number\"==typeof i.N&&0!==i.N||(n=i),new at(n,r)},at.prototype.evaluate=function(){return this.value},at.prototype.eachChild=function(){},at.prototype.possibleOutputs=function(){return[this.value]},at.prototype.serialize=function(){return\"array\"===this.type.kind||\"object\"===this.type.kind?[\"literal\",this.value]:this.value instanceof tt?[\"rgba\"].concat(this.value.toArray()):this.value};var ot=function(t){this.name=\"ExpressionEvaluationError\",this.message=t};ot.prototype.toJSON=function(){return this.message};var st={string:q,number:U,boolean:H,object:W},lt=function(t,e){this.type=t,this.args=e};lt.parse=function(t,e){if(t.length<2)return e.error(\"Expected at least one argument.\");for(var r=t[0],n=st[r],i=[],a=1;a<t.length;a++){var o=e.parse(t[a],a,Y);if(!o)return null;i.push(o)}return new lt(n,i)},lt.prototype.evaluate=function(t){for(var e=0;e<this.args.length;e++){var r=this.args[e].evaluate(t);if(!K(this.type,it(r)))return r;if(e===this.args.length-1)throw new ot(\"Expected value to be of type \"+$(this.type)+\", but found \"+$(it(r))+\" instead.\")}return null},lt.prototype.eachChild=function(t){this.args.forEach(t)},lt.prototype.possibleOutputs=function(){return(t=[]).concat.apply(t,this.args.map(function(t){return t.possibleOutputs()}));var t},lt.prototype.serialize=function(){return[this.type.kind].concat(this.args.map(function(t){return t.serialize()}))};var ct={string:q,number:U,boolean:H},ut=function(t,e){this.type=t,this.input=e};ut.parse=function(t,e){if(t.length<2||t.length>4)return e.error(\"Expected 1, 2, or 3 arguments, but found \"+(t.length-1)+\" instead.\");var r,n;if(t.length>2){var i=t[1];if(\"string\"!=typeof i||!(i in ct))return e.error('The item type argument of \"array\" must be one of string, number, boolean',1);r=ct[i]}else r=Y;if(t.length>3){if(\"number\"!=typeof t[2]||t[2]<0||t[2]!==Math.floor(t[2]))return e.error('The length argument to \"array\" must be a positive integer literal',2);n=t[2]}var a=Z(r,n),o=e.parse(t[t.length-1],t.length-1,Y);return o?new ut(a,o):null},ut.prototype.evaluate=function(t){var e=this.input.evaluate(t);if(K(this.type,it(e)))throw new ot(\"Expected value to be of type \"+$(this.type)+\", but found \"+$(it(e))+\" instead.\");return e},ut.prototype.eachChild=function(t){t(this.input)},ut.prototype.possibleOutputs=function(){return this.input.possibleOutputs()},ut.prototype.serialize=function(){var t=[\"array\"],e=this.type.itemType;if(\"string\"===e.kind||\"number\"===e.kind||\"boolean\"===e.kind){t.push(e.kind);var r=this.type.N;\"number\"==typeof r&&t.push(r)}return t.push(this.input.serialize()),t};var ft={\"to-number\":U,\"to-color\":G},ht=function(t,e){this.type=t,this.args=e};ht.parse=function(t,e){if(t.length<2)return e.error(\"Expected at least one argument.\");for(var r=t[0],n=ft[r],i=[],a=1;a<t.length;a++){var o=e.parse(t[a],a,Y);if(!o)return null;i.push(o)}return new ht(n,i)},ht.prototype.evaluate=function(t){if(\"color\"===this.type.kind){for(var e,r,n=0,i=this.args;n<i.length;n+=1)if(r=null,\"string\"==typeof(e=i[n].evaluate(t))){var a=t.parseColor(e);if(a)return a}else if(Array.isArray(e)&&!(r=e.length<3||e.length>4?\"Invalid rbga value \"+JSON.stringify(e)+\": expected an array containing either three or four numeric values.\":nt(e[0],e[1],e[2],e[3])))return new tt(e[0]/255,e[1]/255,e[2]/255,e[3]);throw new ot(r||\"Could not parse color from value '\"+(\"string\"==typeof e?e:JSON.stringify(e))+\"'\")}for(var o=null,s=0,l=this.args;s<l.length;s+=1)if(null!==(o=l[s].evaluate(t))){var c=Number(o);if(!isNaN(c))return c}throw new ot(\"Could not convert \"+JSON.stringify(o)+\" to number.\")},ht.prototype.eachChild=function(t){this.args.forEach(t)},ht.prototype.possibleOutputs=function(){return(t=[]).concat.apply(t,this.args.map(function(t){return t.possibleOutputs()}));var t},ht.prototype.serialize=function(){var t=[\"to-\"+this.type.kind];return this.eachChild(function(e){t.push(e.serialize())}),t};var pt=[\"Unknown\",\"Point\",\"LineString\",\"Polygon\"],dt=function(){this._parseColorCache={}};dt.prototype.id=function(){return this.feature&&\"id\"in this.feature?this.feature.id:null},dt.prototype.geometryType=function(){return this.feature?\"number\"==typeof this.feature.type?pt[this.feature.type]:this.feature.type:null},dt.prototype.properties=function(){return this.feature&&this.feature.properties||{}},dt.prototype.parseColor=function(t){var e=this._parseColorCache[t];return e||(e=this._parseColorCache[t]=tt.parse(t)),e};var gt=function(t,e,r,n){this.name=t,this.type=e,this._evaluate=r,this.args=n};function vt(t){if(t instanceof gt){if(\"get\"===t.name&&1===t.args.length)return!1;if(\"has\"===t.name&&1===t.args.length)return!1;if(\"properties\"===t.name||\"geometry-type\"===t.name||\"id\"===t.name)return!1;if(/^filter-/.test(t.name))return!1}var e=!0;return t.eachChild(function(t){e&&!vt(t)&&(e=!1)}),e}function mt(t,e){if(t instanceof gt&&e.indexOf(t.name)>=0)return!1;var r=!0;return t.eachChild(function(t){r&&!mt(t,e)&&(r=!1)}),r}gt.prototype.evaluate=function(t){return this._evaluate(t,this.args)},gt.prototype.eachChild=function(t){this.args.forEach(t)},gt.prototype.possibleOutputs=function(){return[void 0]},gt.prototype.serialize=function(){return[this.name].concat(this.args.map(function(t){return t.serialize()}))},gt.parse=function(t,e){var r=t[0],n=gt.definitions[r];if(!n)return e.error('Unknown expression \"'+r+'\". If you wanted a literal array, use [\"literal\", [...]].',0);for(var i=Array.isArray(n)?n[0]:n.type,a=Array.isArray(n)?[[n[1],n[2]]]:n.overloads,o=a.filter(function(e){var r=e[0];return!Array.isArray(r)||r.length===t.length-1}),s=[],l=1;l<t.length;l++){var c=t[l],u=void 0;if(1===o.length){var f=o[0][0];u=Array.isArray(f)?f[l-1]:f.type}var h=e.parse(c,1+s.length,u);if(!h)return null;s.push(h)}for(var p=null,d=0,g=o;d<g.length;d+=1){var v=g[d],m=v[0],y=v[1];if(p=new xt(e.registry,e.path,null,e.scope),Array.isArray(m)&&m.length!==s.length)p.error(\"Expected \"+m.length+\" arguments, but found \"+s.length+\" instead.\");else{for(var x=0;x<s.length;x++){var b=Array.isArray(m)?m[x]:m.type,_=s[x];p.concat(x+1).checkSubtype(b,_.type)}if(0===p.errors.length)return new gt(r,i,y,s)}}if(1===o.length)e.errors.push.apply(e.errors,p.errors);else{var w=(o.length?o:a).map(function(t){var e;return e=t[0],Array.isArray(e)?\"(\"+e.map($).join(\", \")+\")\":\"(\"+$(e.type)+\"...)\"}).join(\" | \"),k=s.map(function(t){return $(t.type)}).join(\", \");e.error(\"Expected arguments of type \"+w+\", but found (\"+k+\") instead.\")}return null},gt.register=function(t,e){for(var r in gt.definitions=e,e)t[r]=gt};var yt=function(t,e){this.type=e.type,this.name=t,this.boundExpression=e};yt.parse=function(t,e){if(2!==t.length||\"string\"!=typeof t[1])return e.error(\"'var' expression requires exactly one string literal argument.\");var r=t[1];return e.scope.has(r)?new yt(r,e.scope.get(r)):e.error('Unknown variable \"'+r+'\". Make sure \"'+r+'\" has been bound in an enclosing \"let\" expression before using it.',1)},yt.prototype.evaluate=function(t){return this.boundExpression.evaluate(t)},yt.prototype.eachChild=function(){},yt.prototype.possibleOutputs=function(){return[void 0]},yt.prototype.serialize=function(){return[\"var\",this.name]};var xt=function(t,e,r,n,i){void 0===e&&(e=[]),void 0===n&&(n=new j),void 0===i&&(i=[]),this.registry=t,this.path=e,this.key=e.map(function(t){return\"[\"+t+\"]\"}).join(\"\"),this.scope=n,this.errors=i,this.expectedType=r};function bt(t,e){for(var r,n,i=0,a=t.length-1,o=0;i<=a;){if(r=t[o=Math.floor((i+a)/2)],n=t[o+1],e===r||e>r&&e<n)return o;if(r<e)i=o+1;else{if(!(r>e))throw new ot(\"Input is not a number.\");a=o-1}}return Math.max(o-1,0)}xt.prototype.parse=function(t,e,r,n,i){return void 0===i&&(i={}),e?this.concat(e,r,n)._parse(t,i):this._parse(t,i)},xt.prototype._parse=function(t,e){if(null!==t&&\"string\"!=typeof t&&\"boolean\"!=typeof t&&\"number\"!=typeof t||(t=[\"literal\",t]),Array.isArray(t)){if(0===t.length)return this.error('Expected an array with at least one element. If you wanted a literal array, use [\"literal\", []].');var r=t[0];if(\"string\"!=typeof r)return this.error(\"Expression name must be a string, but found \"+typeof r+' instead. If you wanted a literal array, use [\"literal\", [...]].',0),null;var n=this.registry[r];if(n){var i=n.parse(t,this);if(!i)return null;if(this.expectedType){var a=this.expectedType,o=i.type;if(\"string\"!==a.kind&&\"number\"!==a.kind&&\"boolean\"!==a.kind&&\"object\"!==a.kind||\"value\"!==o.kind)if(\"array\"===a.kind&&\"value\"===o.kind)e.omitTypeAnnotations||(i=new ut(a,i));else if(\"color\"!==a.kind||\"value\"!==o.kind&&\"string\"!==o.kind){if(this.checkSubtype(this.expectedType,i.type))return null}else e.omitTypeAnnotations||(i=new ht(a,[i]));else e.omitTypeAnnotations||(i=new lt(a,[i]))}if(!(i instanceof at)&&function t(e){if(e instanceof yt)return t(e.boundExpression);if(e instanceof gt&&\"error\"===e.name)return!1;if(e instanceof rt)return!1;var r=e instanceof ht||e instanceof lt||e instanceof ut,n=!0;return e.eachChild(function(e){n=r?n&&t(e):n&&e instanceof at}),!!n&&(vt(e)&&mt(e,[\"zoom\",\"heatmap-density\",\"line-progress\",\"is-supported-script\"]))}(i)){var s=new dt;try{i=new at(i.type,i.evaluate(s))}catch(t){return this.error(t.message),null}}return i}return this.error('Unknown expression \"'+r+'\". If you wanted a literal array, use [\"literal\", [...]].',0)}return void 0===t?this.error(\"'undefined' value invalid. Use null instead.\"):\"object\"==typeof t?this.error('Bare objects invalid. Use [\"literal\", {...}] instead.'):this.error(\"Expected an array, but found \"+typeof t+\" instead.\")},xt.prototype.concat=function(t,e,r){var n=\"number\"==typeof t?this.path.concat(t):this.path,i=r?this.scope.concat(r):this.scope;return new xt(this.registry,n,e||null,i,this.errors)},xt.prototype.error=function(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];var n=\"\"+this.key+e.map(function(t){return\"[\"+t+\"]\"}).join(\"\");this.errors.push(new N(n,t))},xt.prototype.checkSubtype=function(t,e){var r=K(t,e);return r&&this.error(r),r};var _t=function(t,e,r){this.type=t,this.input=e,this.labels=[],this.outputs=[];for(var n=0,i=r;n<i.length;n+=1){var a=i[n],o=a[0],s=a[1];this.labels.push(o),this.outputs.push(s)}};function wt(t,e,r){return t*(1-r)+e*r}_t.parse=function(t,e){var r=t[1],n=t.slice(2);if(t.length-1<4)return e.error(\"Expected at least 4 arguments, but found only \"+(t.length-1)+\".\");if((t.length-1)%2!=0)return e.error(\"Expected an even number of arguments.\");if(!(r=e.parse(r,1,U)))return null;var i=[],a=null;e.expectedType&&\"value\"!==e.expectedType.kind&&(a=e.expectedType),n.unshift(-1/0);for(var o=0;o<n.length;o+=2){var s=n[o],l=n[o+1],c=o+1,u=o+2;if(\"number\"!=typeof s)return e.error('Input/output pairs for \"step\" expressions must be defined using literal numeric values (not computed expressions) for the input values.',c);if(i.length&&i[i.length-1][0]>=s)return e.error('Input/output pairs for \"step\" expressions must be arranged with input values in strictly ascending order.',c);var f=e.parse(l,u,a);if(!f)return null;a=a||f.type,i.push([s,f])}return new _t(a,r,i)},_t.prototype.evaluate=function(t){var e=this.labels,r=this.outputs;if(1===e.length)return r[0].evaluate(t);var n=this.input.evaluate(t);if(n<=e[0])return r[0].evaluate(t);var i=e.length;return n>=e[i-1]?r[i-1].evaluate(t):r[bt(e,n)].evaluate(t)},_t.prototype.eachChild=function(t){t(this.input);for(var e=0,r=this.outputs;e<r.length;e+=1)t(r[e])},_t.prototype.possibleOutputs=function(){return(t=[]).concat.apply(t,this.outputs.map(function(t){return t.possibleOutputs()}));var t},_t.prototype.serialize=function(){for(var t=[\"step\",this.input.serialize()],e=0;e<this.labels.length;e++)e>0&&t.push(this.labels[e]),t.push(this.outputs[e].serialize());return t};var kt=Object.freeze({number:wt,color:function(t,e,r){return new tt(wt(t.r,e.r,r),wt(t.g,e.g,r),wt(t.b,e.b,r),wt(t.a,e.a,r))},array:function(t,e,r){return t.map(function(t,n){return wt(t,e[n],r)})}}),Mt=function(t,e,r,n){this.type=t,this.interpolation=e,this.input=r,this.labels=[],this.outputs=[];for(var i=0,a=n;i<a.length;i+=1){var o=a[i],s=o[0],l=o[1];this.labels.push(s),this.outputs.push(l)}};function At(t,e,r,n){var i=n-r,a=t-r;return 0===i?0:1===e?a/i:(Math.pow(e,a)-1)/(Math.pow(e,i)-1)}Mt.interpolationFactor=function(t,e,r,n){var i=0;if(\"exponential\"===t.name)i=At(e,t.base,r,n);else if(\"linear\"===t.name)i=At(e,1,r,n);else if(\"cubic-bezier\"===t.name){var o=t.controlPoints;i=new a(o[0],o[1],o[2],o[3]).solve(At(e,1,r,n))}return i},Mt.parse=function(t,e){var r=t[1],n=t[2],i=t.slice(3);if(!Array.isArray(r)||0===r.length)return e.error(\"Expected an interpolation type expression.\",1);if(\"linear\"===r[0])r={name:\"linear\"};else if(\"exponential\"===r[0]){var a=r[1];if(\"number\"!=typeof a)return e.error(\"Exponential interpolation requires a numeric base.\",1,1);r={name:\"exponential\",base:a}}else{if(\"cubic-bezier\"!==r[0])return e.error(\"Unknown interpolation type \"+String(r[0]),1,0);var o=r.slice(1);if(4!==o.length||o.some(function(t){return\"number\"!=typeof t||t<0||t>1}))return e.error(\"Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.\",1);r={name:\"cubic-bezier\",controlPoints:o}}if(t.length-1<4)return e.error(\"Expected at least 4 arguments, but found only \"+(t.length-1)+\".\");if((t.length-1)%2!=0)return e.error(\"Expected an even number of arguments.\");if(!(n=e.parse(n,2,U)))return null;var s=[],l=null;e.expectedType&&\"value\"!==e.expectedType.kind&&(l=e.expectedType);for(var c=0;c<i.length;c+=2){var u=i[c],f=i[c+1],h=c+3,p=c+4;if(\"number\"!=typeof u)return e.error('Input/output pairs for \"interpolate\" expressions must be defined using literal numeric values (not computed expressions) for the input values.',h);if(s.length&&s[s.length-1][0]>=u)return e.error('Input/output pairs for \"interpolate\" expressions must be arranged with input values in strictly ascending order.',h);var d=e.parse(f,p,l);if(!d)return null;l=l||d.type,s.push([u,d])}return\"number\"===l.kind||\"color\"===l.kind||\"array\"===l.kind&&\"number\"===l.itemType.kind&&\"number\"==typeof l.N?new Mt(l,r,n,s):e.error(\"Type \"+$(l)+\" is not interpolatable.\")},Mt.prototype.evaluate=function(t){var e=this.labels,r=this.outputs;if(1===e.length)return r[0].evaluate(t);var n=this.input.evaluate(t);if(n<=e[0])return r[0].evaluate(t);var i=e.length;if(n>=e[i-1])return r[i-1].evaluate(t);var a=bt(e,n),o=e[a],s=e[a+1],l=Mt.interpolationFactor(this.interpolation,n,o,s),c=r[a].evaluate(t),u=r[a+1].evaluate(t);return kt[this.type.kind.toLowerCase()](c,u,l)},Mt.prototype.eachChild=function(t){t(this.input);for(var e=0,r=this.outputs;e<r.length;e+=1)t(r[e])},Mt.prototype.possibleOutputs=function(){return(t=[]).concat.apply(t,this.outputs.map(function(t){return t.possibleOutputs()}));var t},Mt.prototype.serialize=function(){for(var t=[\"interpolate\",\"linear\"===this.interpolation.name?[\"linear\"]:\"exponential\"===this.interpolation.name?1===this.interpolation.base?[\"linear\"]:[\"exponential\",this.interpolation.base]:[\"cubic-bezier\"].concat(this.interpolation.controlPoints),this.input.serialize()],e=0;e<this.labels.length;e++)t.push(this.labels[e],this.outputs[e].serialize());return t};var Tt=function(t,e){this.type=t,this.args=e};Tt.parse=function(t,e){if(t.length<2)return e.error(\"Expectected at least one argument.\");var r=null,n=e.expectedType;n&&\"value\"!==n.kind&&(r=n);for(var i=[],a=0,o=t.slice(1);a<o.length;a+=1){var s=o[a],l=e.parse(s,1+i.length,r,void 0,{omitTypeAnnotations:!0});if(!l)return null;r=r||l.type,i.push(l)}var c=n&&i.some(function(t){return K(n,t.type)});return new Tt(c?Y:r,i)},Tt.prototype.evaluate=function(t){for(var e=null,r=0,n=this.args;r<n.length&&null===(e=n[r].evaluate(t));r+=1);return e},Tt.prototype.eachChild=function(t){this.args.forEach(t)},Tt.prototype.possibleOutputs=function(){return(t=[]).concat.apply(t,this.args.map(function(t){return t.possibleOutputs()}));var t},Tt.prototype.serialize=function(){var t=[\"coalesce\"];return this.eachChild(function(e){t.push(e.serialize())}),t};var St=function(t,e){this.type=e.type,this.bindings=[].concat(t),this.result=e};St.prototype.evaluate=function(t){return this.result.evaluate(t)},St.prototype.eachChild=function(t){for(var e=0,r=this.bindings;e<r.length;e+=1)t(r[e][1]);t(this.result)},St.parse=function(t,e){if(t.length<4)return e.error(\"Expected at least 3 arguments, but found \"+(t.length-1)+\" instead.\");for(var r=[],n=1;n<t.length-1;n+=2){var i=t[n];if(\"string\"!=typeof i)return e.error(\"Expected string, but found \"+typeof i+\" instead.\",n);if(/[^a-zA-Z0-9_]/.test(i))return e.error(\"Variable names must contain only alphanumeric characters or '_'.\",n);var a=e.parse(t[n+1],n+1);if(!a)return null;r.push([i,a])}var o=e.parse(t[t.length-1],t.length-1,void 0,r);return o?new St(r,o):null},St.prototype.possibleOutputs=function(){return this.result.possibleOutputs()},St.prototype.serialize=function(){for(var t=[\"let\"],e=0,r=this.bindings;e<r.length;e+=1){var n=r[e],i=n[0],a=n[1];t.push(i,a.serialize())}return t.push(this.result.serialize()),t};var Et=function(t,e,r){this.type=t,this.index=e,this.input=r};Et.parse=function(t,e){if(3!==t.length)return e.error(\"Expected 2 arguments, but found \"+(t.length-1)+\" instead.\");var r=e.parse(t[1],1,U),n=e.parse(t[2],2,Z(e.expectedType||Y));if(!r||!n)return null;var i=n.type;return new Et(i.itemType,r,n)},Et.prototype.evaluate=function(t){var e=this.index.evaluate(t),r=this.input.evaluate(t);if(e<0)throw new ot(\"Array index out of bounds: \"+e+\" < 0.\");if(e>=r.length)throw new ot(\"Array index out of bounds: \"+e+\" > \"+(r.length-1)+\".\");if(e!==Math.floor(e))throw new ot(\"Array index must be an integer, but found \"+e+\" instead.\");return r[e]},Et.prototype.eachChild=function(t){t(this.index),t(this.input)},Et.prototype.possibleOutputs=function(){return[void 0]},Et.prototype.serialize=function(){return[\"at\",this.index.serialize(),this.input.serialize()]};var Ct=function(t,e,r,n,i,a){this.inputType=t,this.type=e,this.input=r,this.cases=n,this.outputs=i,this.otherwise=a};Ct.parse=function(t,e){if(t.length<5)return e.error(\"Expected at least 4 arguments, but found only \"+(t.length-1)+\".\");if(t.length%2!=1)return e.error(\"Expected an even number of arguments.\");var r,n;e.expectedType&&\"value\"!==e.expectedType.kind&&(n=e.expectedType);for(var i={},a=[],o=2;o<t.length-1;o+=2){var s=t[o],l=t[o+1];Array.isArray(s)||(s=[s]);var c=e.concat(o);if(0===s.length)return c.error(\"Expected at least one branch label.\");for(var u=0,f=s;u<f.length;u+=1){var h=f[u];if(\"number\"!=typeof h&&\"string\"!=typeof h)return c.error(\"Branch labels must be numbers or strings.\");if(\"number\"==typeof h&&Math.abs(h)>Number.MAX_SAFE_INTEGER)return c.error(\"Branch labels must be integers no larger than \"+Number.MAX_SAFE_INTEGER+\".\");if(\"number\"==typeof h&&Math.floor(h)!==h)return c.error(\"Numeric branch labels must be integer values.\");if(r){if(c.checkSubtype(r,it(h)))return null}else r=it(h);if(void 0!==i[String(h)])return c.error(\"Branch labels must be unique.\");i[String(h)]=a.length}var p=e.parse(l,o,n);if(!p)return null;n=n||p.type,a.push(p)}var d=e.parse(t[1],1,r);if(!d)return null;var g=e.parse(t[t.length-1],t.length-1,n);return g?new Ct(r,n,d,i,a,g):null},Ct.prototype.evaluate=function(t){var e=this.input.evaluate(t);return(this.outputs[this.cases[e]]||this.otherwise).evaluate(t)},Ct.prototype.eachChild=function(t){t(this.input),this.outputs.forEach(t),t(this.otherwise)},Ct.prototype.possibleOutputs=function(){return(t=[]).concat.apply(t,this.outputs.map(function(t){return t.possibleOutputs()})).concat(this.otherwise.possibleOutputs());var t},Ct.prototype.serialize=function(){for(var t=this,e=[\"match\",this.input.serialize()],r=[],n={},i=0,a=Object.keys(this.cases).sort();i<a.length;i+=1){var o=a[i],s=n[t.cases[o]];void 0===s?(n[t.cases[o]]=r.length,r.push([t.cases[o],[o]])):r[s][1].push(o)}for(var l=function(e){return\"number\"===t.input.type.kind?Number(e):e},c=0,u=r;c<u.length;c+=1){var f=u[c],h=f[0],p=f[1];1===p.length?e.push(l(p[0])):e.push(p.map(l)),e.push(t.outputs[h].serialize())}return e.push(this.otherwise.serialize()),e};var Lt=function(t,e,r){this.type=t,this.branches=e,this.otherwise=r};function zt(t){return\"string\"===t.kind||\"number\"===t.kind||\"boolean\"===t.kind||\"null\"===t.kind}function Ot(t,e){return function(){function r(t,e,r){this.type=H,this.lhs=t,this.rhs=e,this.collator=r}return r.parse=function(t,e){if(3!==t.length&&4!==t.length)return e.error(\"Expected two or three arguments.\");var n=e.parse(t[1],1,Y);if(!n)return null;var i=e.parse(t[2],2,Y);if(!i)return null;if(!zt(n.type)&&!zt(i.type))return e.error(\"Expected at least one argument to be a string, number, boolean, or null, but found (\"+$(n.type)+\", \"+$(i.type)+\") instead.\");if(n.type.kind!==i.type.kind&&\"value\"!==n.type.kind&&\"value\"!==i.type.kind)return e.error(\"Cannot compare \"+$(n.type)+\" and \"+$(i.type)+\".\");var a=null;if(4===t.length){if(\"string\"!==n.type.kind&&\"string\"!==i.type.kind)return e.error(\"Cannot use collator to compare non-string types.\");if(!(a=e.parse(t[3],3,X)))return null}return new r(n,i,a)},r.prototype.evaluate=function(t){var r=this.collator?0===this.collator.evaluate(t).compare(this.lhs.evaluate(t),this.rhs.evaluate(t)):this.lhs.evaluate(t)===this.rhs.evaluate(t);return e?!r:r},r.prototype.eachChild=function(t){t(this.lhs),t(this.rhs),this.collator&&t(this.collator)},r.prototype.possibleOutputs=function(){return[!0,!1]},r.prototype.serialize=function(){var e=[t];return this.eachChild(function(t){e.push(t.serialize())}),e},r}()}Lt.parse=function(t,e){if(t.length<4)return e.error(\"Expected at least 3 arguments, but found only \"+(t.length-1)+\".\");if(t.length%2!=0)return e.error(\"Expected an odd number of arguments.\");var r;e.expectedType&&\"value\"!==e.expectedType.kind&&(r=e.expectedType);for(var n=[],i=1;i<t.length-1;i+=2){var a=e.parse(t[i],i,H);if(!a)return null;var o=e.parse(t[i+1],i+1,r);if(!o)return null;n.push([a,o]),r=r||o.type}var s=e.parse(t[t.length-1],t.length-1,r);return s?new Lt(r,n,s):null},Lt.prototype.evaluate=function(t){for(var e=0,r=this.branches;e<r.length;e+=1){var n=r[e],i=n[0],a=n[1];if(i.evaluate(t))return a.evaluate(t)}return this.otherwise.evaluate(t)},Lt.prototype.eachChild=function(t){for(var e=0,r=this.branches;e<r.length;e+=1){var n=r[e],i=n[0],a=n[1];t(i),t(a)}t(this.otherwise)},Lt.prototype.possibleOutputs=function(){return(t=[]).concat.apply(t,this.branches.map(function(t){return t[0],t[1].possibleOutputs()})).concat(this.otherwise.possibleOutputs());var t},Lt.prototype.serialize=function(){var t=[\"case\"];return this.eachChild(function(e){t.push(e.serialize())}),t};var It=Ot(\"==\",!1),Pt=Ot(\"!=\",!0),Dt=function(t){this.type=U,this.input=t};Dt.parse=function(t,e){if(2!==t.length)return e.error(\"Expected 1 argument, but found \"+(t.length-1)+\" instead.\");var r=e.parse(t[1],1);return r?\"array\"!==r.type.kind&&\"string\"!==r.type.kind&&\"value\"!==r.type.kind?e.error(\"Expected argument of type string or array, but found \"+$(r.type)+\" instead.\"):new Dt(r):null},Dt.prototype.evaluate=function(t){var e=this.input.evaluate(t);if(\"string\"==typeof e)return e.length;if(Array.isArray(e))return e.length;throw new ot(\"Expected value to be of type string or array, but found \"+$(it(e))+\" instead.\")},Dt.prototype.eachChild=function(t){t(this.input)},Dt.prototype.possibleOutputs=function(){return[void 0]},Dt.prototype.serialize=function(){var t=[\"length\"];return this.eachChild(function(e){t.push(e.serialize())}),t};var Rt={\"==\":It,\"!=\":Pt,array:ut,at:Et,boolean:lt,case:Lt,coalesce:Tt,collator:rt,interpolate:Mt,length:Dt,let:St,literal:at,match:Ct,number:lt,object:lt,step:_t,string:lt,\"to-color\":ht,\"to-number\":ht,var:yt};function Bt(t,e){var r=e[0],n=e[1],i=e[2],a=e[3];r=r.evaluate(t),n=n.evaluate(t),i=i.evaluate(t);var o=a?a.evaluate(t):1,s=nt(r,n,i,o);if(s)throw new ot(s);return new tt(r/255*o,n/255*o,i/255*o,o)}function Ft(t,e){return t in e}function Nt(t,e){var r=e[t];return void 0===r?null:r}function jt(t,e){var r=e[0],n=e[1];return r.evaluate(t)<n.evaluate(t)}function Vt(t,e){var r=e[0],n=e[1];return r.evaluate(t)>n.evaluate(t)}function Ut(t,e){var r=e[0],n=e[1];return r.evaluate(t)<=n.evaluate(t)}function qt(t,e){var r=e[0],n=e[1];return r.evaluate(t)>=n.evaluate(t)}function Ht(t){return{type:t}}function Gt(t){return{result:\"success\",value:t}}function Wt(t){return{result:\"error\",value:t}}gt.register(Rt,{error:[{kind:\"error\"},[q],function(t,e){var r=e[0];throw new ot(r.evaluate(t))}],typeof:[q,[Y],function(t,e){return $(it(e[0].evaluate(t)))}],\"to-string\":[q,[Y],function(t,e){var r=e[0],n=typeof(r=r.evaluate(t));return null===r?\"\":\"string\"===n||\"number\"===n||\"boolean\"===n?String(r):r instanceof tt?r.toString():JSON.stringify(r)}],\"to-boolean\":[H,[Y],function(t,e){var r=e[0];return Boolean(r.evaluate(t))}],\"to-rgba\":[Z(U,4),[G],function(t,e){return e[0].evaluate(t).toArray()}],rgb:[G,[U,U,U],Bt],rgba:[G,[U,U,U,U],Bt],has:{type:H,overloads:[[[q],function(t,e){return Ft(e[0].evaluate(t),t.properties())}],[[q,W],function(t,e){var r=e[0],n=e[1];return Ft(r.evaluate(t),n.evaluate(t))}]]},get:{type:Y,overloads:[[[q],function(t,e){return Nt(e[0].evaluate(t),t.properties())}],[[q,W],function(t,e){var r=e[0],n=e[1];return Nt(r.evaluate(t),n.evaluate(t))}]]},properties:[W,[],function(t){return t.properties()}],\"geometry-type\":[q,[],function(t){return t.geometryType()}],id:[Y,[],function(t){return t.id()}],zoom:[U,[],function(t){return t.globals.zoom}],\"heatmap-density\":[U,[],function(t){return t.globals.heatmapDensity||0}],\"line-progress\":[U,[],function(t){return t.globals.lineProgress||0}],\"+\":[U,Ht(U),function(t,e){for(var r=0,n=0,i=e;n<i.length;n+=1)r+=i[n].evaluate(t);return r}],\"*\":[U,Ht(U),function(t,e){for(var r=1,n=0,i=e;n<i.length;n+=1)r*=i[n].evaluate(t);return r}],\"-\":{type:U,overloads:[[[U,U],function(t,e){var r=e[0],n=e[1];return r.evaluate(t)-n.evaluate(t)}],[[U],function(t,e){return-e[0].evaluate(t)}]]},\"/\":[U,[U,U],function(t,e){var r=e[0],n=e[1];return r.evaluate(t)/n.evaluate(t)}],\"%\":[U,[U,U],function(t,e){var r=e[0],n=e[1];return r.evaluate(t)%n.evaluate(t)}],ln2:[U,[],function(){return Math.LN2}],pi:[U,[],function(){return Math.PI}],e:[U,[],function(){return Math.E}],\"^\":[U,[U,U],function(t,e){var r=e[0],n=e[1];return Math.pow(r.evaluate(t),n.evaluate(t))}],sqrt:[U,[U],function(t,e){var r=e[0];return Math.sqrt(r.evaluate(t))}],log10:[U,[U],function(t,e){var r=e[0];return Math.log10(r.evaluate(t))}],ln:[U,[U],function(t,e){var r=e[0];return Math.log(r.evaluate(t))}],log2:[U,[U],function(t,e){var r=e[0];return Math.log2(r.evaluate(t))}],sin:[U,[U],function(t,e){var r=e[0];return Math.sin(r.evaluate(t))}],cos:[U,[U],function(t,e){var r=e[0];return Math.cos(r.evaluate(t))}],tan:[U,[U],function(t,e){var r=e[0];return Math.tan(r.evaluate(t))}],asin:[U,[U],function(t,e){var r=e[0];return Math.asin(r.evaluate(t))}],acos:[U,[U],function(t,e){var r=e[0];return Math.acos(r.evaluate(t))}],atan:[U,[U],function(t,e){var r=e[0];return Math.atan(r.evaluate(t))}],min:[U,Ht(U),function(t,e){return Math.min.apply(Math,e.map(function(e){return e.evaluate(t)}))}],max:[U,Ht(U),function(t,e){return Math.max.apply(Math,e.map(function(e){return e.evaluate(t)}))}],abs:[U,[U],function(t,e){var r=e[0];return Math.abs(r.evaluate(t))}],round:[U,[U],function(t,e){var r=e[0].evaluate(t);return r<0?-Math.round(-r):Math.round(r)}],floor:[U,[U],function(t,e){var r=e[0];return Math.floor(r.evaluate(t))}],ceil:[U,[U],function(t,e){var r=e[0];return Math.ceil(r.evaluate(t))}],\"filter-==\":[H,[q,Y],function(t,e){var r=e[0],n=e[1];return t.properties()[r.value]===n.value}],\"filter-id-==\":[H,[Y],function(t,e){var r=e[0];return t.id()===r.value}],\"filter-type-==\":[H,[q],function(t,e){var r=e[0];return t.geometryType()===r.value}],\"filter-<\":[H,[q,Y],function(t,e){var r=e[0],n=e[1],i=t.properties()[r.value],a=n.value;return typeof i==typeof a&&i<a}],\"filter-id-<\":[H,[Y],function(t,e){var r=e[0],n=t.id(),i=r.value;return typeof n==typeof i&&n<i}],\"filter->\":[H,[q,Y],function(t,e){var r=e[0],n=e[1],i=t.properties()[r.value],a=n.value;return typeof i==typeof a&&i>a}],\"filter-id->\":[H,[Y],function(t,e){var r=e[0],n=t.id(),i=r.value;return typeof n==typeof i&&n>i}],\"filter-<=\":[H,[q,Y],function(t,e){var r=e[0],n=e[1],i=t.properties()[r.value],a=n.value;return typeof i==typeof a&&i<=a}],\"filter-id-<=\":[H,[Y],function(t,e){var r=e[0],n=t.id(),i=r.value;return typeof n==typeof i&&n<=i}],\"filter->=\":[H,[q,Y],function(t,e){var r=e[0],n=e[1],i=t.properties()[r.value],a=n.value;return typeof i==typeof a&&i>=a}],\"filter-id->=\":[H,[Y],function(t,e){var r=e[0],n=t.id(),i=r.value;return typeof n==typeof i&&n>=i}],\"filter-has\":[H,[Y],function(t,e){return e[0].value in t.properties()}],\"filter-has-id\":[H,[],function(t){return null!==t.id()}],\"filter-type-in\":[H,[Z(q)],function(t,e){return e[0].value.indexOf(t.geometryType())>=0}],\"filter-id-in\":[H,[Z(Y)],function(t,e){return e[0].value.indexOf(t.id())>=0}],\"filter-in-small\":[H,[q,Z(Y)],function(t,e){var r=e[0];return e[1].value.indexOf(t.properties()[r.value])>=0}],\"filter-in-large\":[H,[q,Z(Y)],function(t,e){var r=e[0],n=e[1];return function(t,e,r,n){for(;r<=n;){var i=r+n>>1;if(e[i]===t)return!0;e[i]>t?n=i-1:r=i+1}return!1}(t.properties()[r.value],n.value,0,n.value.length-1)}],\">\":{type:H,overloads:[[[U,U],Vt],[[q,q],Vt],[[q,q,X],function(t,e){var r=e[0],n=e[1];return e[2].evaluate(t).compare(r.evaluate(t),n.evaluate(t))>0}]]},\"<\":{type:H,overloads:[[[U,U],jt],[[q,q],jt],[[q,q,X],function(t,e){var r=e[0],n=e[1];return e[2].evaluate(t).compare(r.evaluate(t),n.evaluate(t))<0}]]},\">=\":{type:H,overloads:[[[U,U],qt],[[q,q],qt],[[q,q,X],function(t,e){var r=e[0],n=e[1];return e[2].evaluate(t).compare(r.evaluate(t),n.evaluate(t))>=0}]]},\"<=\":{type:H,overloads:[[[U,U],Ut],[[q,q],Ut],[[q,q,X],function(t,e){var r=e[0],n=e[1];return e[2].evaluate(t).compare(r.evaluate(t),n.evaluate(t))<=0}]]},all:{type:H,overloads:[[[H,H],function(t,e){var r=e[0],n=e[1];return r.evaluate(t)&&n.evaluate(t)}],[Ht(H),function(t,e){for(var r=0,n=e;r<n.length;r+=1)if(!n[r].evaluate(t))return!1;return!0}]]},any:{type:H,overloads:[[[H,H],function(t,e){var r=e[0],n=e[1];return r.evaluate(t)||n.evaluate(t)}],[Ht(H),function(t,e){for(var r=0,n=e;r<n.length;r+=1)if(n[r].evaluate(t))return!0;return!1}]]},\"!\":[H,[H],function(t,e){return!e[0].evaluate(t)}],\"is-supported-script\":[H,[q],function(t,e){var r=e[0],n=t.globals&&t.globals.isSupportedScript;return!n||n(r.evaluate(t))}],upcase:[q,[q],function(t,e){return e[0].evaluate(t).toUpperCase()}],downcase:[q,[q],function(t,e){return e[0].evaluate(t).toLowerCase()}],concat:[q,Ht(q),function(t,e){return e.map(function(e){return e.evaluate(t)}).join(\"\")}],\"resolved-locale\":[q,[X],function(t,e){return e[0].evaluate(t).resolvedLocale()}]});var Yt=.95047,Xt=1,Zt=1.08883,$t=4/29,Jt=6/29,Kt=3*Jt*Jt,Qt=Jt*Jt*Jt,te=Math.PI/180,ee=180/Math.PI;function re(t){return t>Qt?Math.pow(t,1/3):t/Kt+$t}function ne(t){return t>Jt?t*t*t:Kt*(t-$t)}function ie(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function ae(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function oe(t){var e=ae(t.r),r=ae(t.g),n=ae(t.b),i=re((.4124564*e+.3575761*r+.1804375*n)/Yt),a=re((.2126729*e+.7151522*r+.072175*n)/Xt);return{l:116*a-16,a:500*(i-a),b:200*(a-re((.0193339*e+.119192*r+.9503041*n)/Zt)),alpha:t.a}}function se(t){var e=(t.l+16)/116,r=isNaN(t.a)?e:e+t.a/500,n=isNaN(t.b)?e:e-t.b/200;return e=Xt*ne(e),r=Yt*ne(r),n=Zt*ne(n),new tt(ie(3.2404542*r-1.5371385*e-.4985314*n),ie(-.969266*r+1.8760108*e+.041556*n),ie(.0556434*r-.2040259*e+1.0572252*n),t.alpha)}var le={forward:oe,reverse:se,interpolate:function(t,e,r){return{l:wt(t.l,e.l,r),a:wt(t.a,e.a,r),b:wt(t.b,e.b,r),alpha:wt(t.alpha,e.alpha,r)}}},ce={forward:function(t){var e=oe(t),r=e.l,n=e.a,i=e.b,a=Math.atan2(i,n)*ee;return{h:a<0?a+360:a,c:Math.sqrt(n*n+i*i),l:r,alpha:t.a}},reverse:function(t){var e=t.h*te,r=t.c;return se({l:t.l,a:Math.cos(e)*r,b:Math.sin(e)*r,alpha:t.alpha})},interpolate:function(t,e,r){return{h:function(t,e,r){var n=e-t;return t+r*(n>180||n<-180?n-360*Math.round(n/360):n)}(t.h,e.h,r),c:wt(t.c,e.c,r),l:wt(t.l,e.l,r),alpha:wt(t.alpha,e.alpha,r)}}},ue=Object.freeze({lab:le,hcl:ce});function fe(t){return t instanceof Number?\"number\":t instanceof String?\"string\":t instanceof Boolean?\"boolean\":Array.isArray(t)?\"array\":null===t?\"null\":typeof t}function he(t){return\"object\"==typeof t&&null!==t&&!Array.isArray(t)}function pe(t){return t}function de(t,e,r){return void 0!==t?t:void 0!==e?e:void 0!==r?r:void 0}function ge(t,e,r,n,i){return de(typeof r===i?n[r]:void 0,t.default,e.default)}function ve(t,e,r){if(\"number\"!==fe(r))return de(t.default,e.default);var n=t.stops.length;if(1===n)return t.stops[0][1];if(r<=t.stops[0][0])return t.stops[0][1];if(r>=t.stops[n-1][0])return t.stops[n-1][1];var i=xe(t.stops,r);return t.stops[i][1]}function me(t,e,r){var n=void 0!==t.base?t.base:1;if(\"number\"!==fe(r))return de(t.default,e.default);var i=t.stops.length;if(1===i)return t.stops[0][1];if(r<=t.stops[0][0])return t.stops[0][1];if(r>=t.stops[i-1][0])return t.stops[i-1][1];var a=xe(t.stops,r),o=function(t,e,r,n){var i=n-r,a=t-r;return 0===i?0:1===e?a/i:(Math.pow(e,a)-1)/(Math.pow(e,i)-1)}(r,n,t.stops[a][0],t.stops[a+1][0]),s=t.stops[a][1],l=t.stops[a+1][1],c=kt[e.type]||pe;if(t.colorSpace&&\"rgb\"!==t.colorSpace){var u=ue[t.colorSpace];c=function(t,e){return u.reverse(u.interpolate(u.forward(t),u.forward(e),o))}}return\"function\"==typeof s.evaluate?{evaluate:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var r=s.evaluate.apply(void 0,t),n=l.evaluate.apply(void 0,t);if(void 0!==r&&void 0!==n)return c(r,n,o)}}:c(s,l,o)}function ye(t,e,r){return\"color\"===e.type?r=tt.parse(r):fe(r)===e.type||\"enum\"===e.type&&e.values[r]||(r=void 0),de(r,t.default,e.default)}function xe(t,e){for(var r,n,i=0,a=t.length-1,o=0;i<=a;){if(r=t[o=Math.floor((i+a)/2)][0],n=t[o+1][0],e===r||e>r&&e<n)return o;r<e?i=o+1:r>e&&(a=o-1)}return Math.max(o-1,0)}var be=function(t,e){var r;this.expression=t,this._warningHistory={},this._defaultValue=\"color\"===(r=e).type&&he(r.default)?new tt(0,0,0,0):\"color\"===r.type?tt.parse(r.default)||null:void 0===r.default?null:r.default,\"enum\"===e.type&&(this._enumValues=e.values)};function _e(t){return Array.isArray(t)&&t.length>0&&\"string\"==typeof t[0]&&t[0]in Rt}function we(t,e){var r=new xt(Rt,[],function(t){var e={color:G,string:q,number:U,enum:q,boolean:H};return\"array\"===t.type?Z(e[t.value]||Y,t.length):e[t.type]||null}(e)),n=r.parse(t);return n?Gt(new be(n,e)):Wt(r.errors)}be.prototype.evaluateWithoutErrorHandling=function(t,e){return this._evaluator||(this._evaluator=new dt),this._evaluator.globals=t,this._evaluator.feature=e,this.expression.evaluate(this._evaluator)},be.prototype.evaluate=function(t,e){this._evaluator||(this._evaluator=new dt),this._evaluator.globals=t,this._evaluator.feature=e;try{var r=this.expression.evaluate(this._evaluator);if(null==r)return this._defaultValue;if(this._enumValues&&!(r in this._enumValues))throw new ot(\"Expected value to be one of \"+Object.keys(this._enumValues).map(function(t){return JSON.stringify(t)}).join(\", \")+\", but found \"+JSON.stringify(r)+\" instead.\");return r}catch(t){return this._warningHistory[t.message]||(this._warningHistory[t.message]=!0,\"undefined\"!=typeof console&&console.warn(t.message)),this._defaultValue}};var ke=function(t,e){this.kind=t,this._styleExpression=e};ke.prototype.evaluateWithoutErrorHandling=function(t,e){return this._styleExpression.evaluateWithoutErrorHandling(t,e)},ke.prototype.evaluate=function(t,e){return this._styleExpression.evaluate(t,e)};var Me=function(t,e,r){this.kind=t,this.zoomStops=r.labels,this._styleExpression=e,r instanceof Mt&&(this._interpolationType=r.interpolation)};function Ae(t,e){if(\"error\"===(t=we(t,e)).result)return t;var r=t.value.expression,n=vt(r);if(!n&&!e[\"property-function\"])return Wt([new N(\"\",\"property expressions not supported\")]);var i=mt(r,[\"zoom\"]);if(!i&&!1===e[\"zoom-function\"])return Wt([new N(\"\",\"zoom expressions not supported\")]);var a=function t(e){var r=null;if(e instanceof St)r=t(e.result);else if(e instanceof Tt)for(var n=0,i=e.args;n<i.length;n+=1){var a=i[n];if(r=t(a))break}else(e instanceof _t||e instanceof Mt)&&e.input instanceof gt&&\"zoom\"===e.input.name&&(r=e);return r instanceof N?r:(e.eachChild(function(e){var n=t(e);n instanceof N?r=n:!r&&n?r=new N(\"\",'\"zoom\" expression may only be used as input to a top-level \"step\" or \"interpolate\" expression.'):r&&n&&r!==n&&(r=new N(\"\",'Only one zoom-based \"step\" or \"interpolate\" subexpression may be used in an expression.'))}),r)}(r);return a||i?a instanceof N?Wt([a]):a instanceof Mt&&\"piecewise-constant\"===e.function?Wt([new N(\"\",'\"interpolate\" expressions cannot be used with this property')]):Gt(a?new Me(n?\"camera\":\"composite\",t.value,a):new ke(n?\"constant\":\"source\",t.value)):Wt([new N(\"\",'\"zoom\" expression may only be used as input to a top-level \"step\" or \"interpolate\" expression.')])}Me.prototype.evaluateWithoutErrorHandling=function(t,e){return this._styleExpression.evaluateWithoutErrorHandling(t,e)},Me.prototype.evaluate=function(t,e){return this._styleExpression.evaluate(t,e)},Me.prototype.interpolationFactor=function(t,e,r){return this._interpolationType?Mt.interpolationFactor(this._interpolationType,t,e,r):0};var Te=function(t,e){this._parameters=t,this._specification=e,R(this,function t(e,r){var n,i,a,o=\"color\"===r.type,s=e.stops&&\"object\"==typeof e.stops[0][0],l=s||void 0!==e.property,c=s||!l,u=e.type||(\"interpolated\"===r.function?\"exponential\":\"interval\");if(o&&((e=R({},e)).stops&&(e.stops=e.stops.map(function(t){return[t[0],tt.parse(t[1])]})),e.default?e.default=tt.parse(e.default):e.default=tt.parse(r.default)),e.colorSpace&&\"rgb\"!==e.colorSpace&&!ue[e.colorSpace])throw new Error(\"Unknown color space: \"+e.colorSpace);if(\"exponential\"===u)n=me;else if(\"interval\"===u)n=ve;else if(\"categorical\"===u){n=ge,i=Object.create(null);for(var f=0,h=e.stops;f<h.length;f+=1){var p=h[f];i[p[0]]=p[1]}a=typeof e.stops[0][0]}else{if(\"identity\"!==u)throw new Error('Unknown function type \"'+u+'\"');n=ye}if(s){for(var d={},g=[],v=0;v<e.stops.length;v++){var m=e.stops[v],y=m[0].zoom;void 0===d[y]&&(d[y]={zoom:y,type:e.type,property:e.property,default:e.default,stops:[]},g.push(y)),d[y].stops.push([m[0].value,m[1]])}for(var x=[],b=0,_=g;b<_.length;b+=1){var w=_[b];x.push([d[w].zoom,t(d[w],r)])}return{kind:\"composite\",interpolationFactor:Mt.interpolationFactor.bind(void 0,{name:\"linear\"}),zoomStops:x.map(function(t){return t[0]}),evaluate:function(t,n){var i=t.zoom;return me({stops:x,base:e.base},r,i).evaluate(i,n)}}}return c?{kind:\"camera\",interpolationFactor:\"exponential\"===u?Mt.interpolationFactor.bind(void 0,{name:\"exponential\",base:void 0!==e.base?e.base:1}):function(){return 0},zoomStops:e.stops.map(function(t){return t[0]}),evaluate:function(t){var o=t.zoom;return n(e,r,o,i,a)}}:{kind:\"source\",evaluate:function(t,o){var s=o&&o.properties?o.properties[e.property]:void 0;return void 0===s?de(e.default,r.default):n(e,r,s,i,a)}}}(this._parameters,this._specification))};function Se(t,e){if(he(t))return new Te(t,e);if(_e(t)){var r=Ae(t,e);if(\"error\"===r.result)throw new Error(r.value.map(function(t){return t.key+\": \"+t.message}).join(\", \"));return r.value}var n=t;return\"string\"==typeof t&&\"color\"===e.type&&(n=tt.parse(t)),{kind:\"constant\",evaluate:function(){return n}}}function Ee(t){var e=t.key,r=t.value,n=t.valueSpec||{},i=t.objectElementValidators||{},a=t.style,o=t.styleSpec,s=[],l=fe(r);if(\"object\"!==l)return[new P(e,r,\"object expected, \"+l+\" found\")];for(var c in r){var u=c.split(\".\")[0],f=n[u]||n[\"*\"],h=void 0;if(i[u])h=i[u];else if(n[u])h=Ke;else if(i[\"*\"])h=i[\"*\"];else{if(!n[\"*\"]){s.push(new P(e,r[c],'unknown property \"'+c+'\"'));continue}h=Ke}s=s.concat(h({key:(e?e+\".\":e)+c,value:r[c],valueSpec:f,style:a,styleSpec:o,object:r,objectKey:c},r))}for(var p in n)i[p]||n[p].required&&void 0===n[p].default&&void 0===r[p]&&s.push(new P(e,r,'missing required property \"'+p+'\"'));return s}function Ce(t){var e=t.value,r=t.valueSpec,n=t.style,i=t.styleSpec,a=t.key,o=t.arrayElementValidator||Ke;if(\"array\"!==fe(e))return[new P(a,e,\"array expected, \"+fe(e)+\" found\")];if(r.length&&e.length!==r.length)return[new P(a,e,\"array length \"+r.length+\" expected, length \"+e.length+\" found\")];if(r[\"min-length\"]&&e.length<r[\"min-length\"])return[new P(a,e,\"array length at least \"+r[\"min-length\"]+\" expected, length \"+e.length+\" found\")];var s={type:r.value};i.$version<7&&(s.function=r.function),\"object\"===fe(r.value)&&(s=r.value);for(var l=[],c=0;c<e.length;c++)l=l.concat(o({array:e,arrayIndex:c,value:e[c],valueSpec:s,style:n,styleSpec:i,key:a+\"[\"+c+\"]\"}));return l}function Le(t){var e=t.key,r=t.value,n=t.valueSpec,i=fe(r);return\"number\"!==i?[new P(e,r,\"number expected, \"+i+\" found\")]:\"minimum\"in n&&r<n.minimum?[new P(e,r,r+\" is less than the minimum value \"+n.minimum)]:\"maximum\"in n&&r>n.maximum?[new P(e,r,r+\" is greater than the maximum value \"+n.maximum)]:[]}function ze(t){var e,r,n,i=t.valueSpec,a=B(t.value.type),o={},s=\"categorical\"!==a&&void 0===t.value.property,l=!s,c=\"array\"===fe(t.value.stops)&&\"array\"===fe(t.value.stops[0])&&\"object\"===fe(t.value.stops[0][0]),u=Ee({key:t.key,value:t.value,valueSpec:t.styleSpec.function,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{stops:function(t){if(\"identity\"===a)return[new P(t.key,t.value,'identity function may not have a \"stops\" property')];var e=[],r=t.value;return e=e.concat(Ce({key:t.key,value:r,valueSpec:t.valueSpec,style:t.style,styleSpec:t.styleSpec,arrayElementValidator:f})),\"array\"===fe(r)&&0===r.length&&e.push(new P(t.key,r,\"array must have at least one stop\")),e},default:function(t){return Ke({key:t.key,value:t.value,valueSpec:i,style:t.style,styleSpec:t.styleSpec})}}});return\"identity\"===a&&s&&u.push(new P(t.key,t.value,'missing required property \"property\"')),\"identity\"===a||t.value.stops||u.push(new P(t.key,t.value,'missing required property \"stops\"')),\"exponential\"===a&&\"piecewise-constant\"===t.valueSpec.function&&u.push(new P(t.key,t.value,\"exponential functions not supported\")),t.styleSpec.$version>=8&&(l&&!t.valueSpec[\"property-function\"]?u.push(new P(t.key,t.value,\"property functions not supported\")):s&&!t.valueSpec[\"zoom-function\"]&&\"heatmap-color\"!==t.objectKey&&\"line-gradient\"!==t.objectKey&&u.push(new P(t.key,t.value,\"zoom functions not supported\"))),\"categorical\"!==a&&!c||void 0!==t.value.property||u.push(new P(t.key,t.value,'\"property\" property is required')),u;function f(t){var e=[],a=t.value,s=t.key;if(\"array\"!==fe(a))return[new P(s,a,\"array expected, \"+fe(a)+\" found\")];if(2!==a.length)return[new P(s,a,\"array length 2 expected, length \"+a.length+\" found\")];if(c){if(\"object\"!==fe(a[0]))return[new P(s,a,\"object expected, \"+fe(a[0])+\" found\")];if(void 0===a[0].zoom)return[new P(s,a,\"object stop key must have zoom\")];if(void 0===a[0].value)return[new P(s,a,\"object stop key must have value\")];if(n&&n>B(a[0].zoom))return[new P(s,a[0].zoom,\"stop zoom values must appear in ascending order\")];B(a[0].zoom)!==n&&(n=B(a[0].zoom),r=void 0,o={}),e=e.concat(Ee({key:s+\"[0]\",value:a[0],valueSpec:{zoom:{}},style:t.style,styleSpec:t.styleSpec,objectElementValidators:{zoom:Le,value:h}}))}else e=e.concat(h({key:s+\"[0]\",value:a[0],valueSpec:{},style:t.style,styleSpec:t.styleSpec},a));return e.concat(Ke({key:s+\"[1]\",value:a[1],valueSpec:i,style:t.style,styleSpec:t.styleSpec}))}function h(t,n){var s=fe(t.value),l=B(t.value),c=null!==t.value?t.value:n;if(e){if(s!==e)return[new P(t.key,c,s+\" stop domain type must match previous stop domain type \"+e)]}else e=s;if(\"number\"!==s&&\"string\"!==s&&\"boolean\"!==s)return[new P(t.key,c,\"stop domain value must be a number, string, or boolean\")];if(\"number\"!==s&&\"categorical\"!==a){var u=\"number expected, \"+s+\" found\";return i[\"property-function\"]&&void 0===a&&(u+='\\nIf you intended to use a categorical function, specify `\"type\": \"categorical\"`.'),[new P(t.key,c,u)]}return\"categorical\"!==a||\"number\"!==s||isFinite(l)&&Math.floor(l)===l?\"categorical\"!==a&&\"number\"===s&&void 0!==r&&l<r?[new P(t.key,c,\"stop domain values must appear in ascending order\")]:(r=l,\"categorical\"===a&&l in o?[new P(t.key,c,\"stop domain values must be unique\")]:(o[l]=!0,[])):[new P(t.key,c,\"integer expected, found \"+l)]}}function Oe(t){var e=(\"property\"===t.expressionContext?Ae:we)(F(t.value),t.valueSpec);return\"error\"===e.result?e.value.map(function(e){return new P(\"\"+t.key+e.key,t.value,e.message)}):\"property\"===t.expressionContext&&\"text-font\"===t.propertyKey&&-1!==e.value._styleExpression.expression.possibleOutputs().indexOf(void 0)?[new P(t.key,t.value,'Invalid data expression for \"text-font\". Output values must be contained as literals within the expression.')]:[]}function Ie(t){var e=t.key,r=t.value,n=t.valueSpec,i=[];return Array.isArray(n.values)?-1===n.values.indexOf(B(r))&&i.push(new P(e,r,\"expected one of [\"+n.values.join(\", \")+\"], \"+JSON.stringify(r)+\" found\")):-1===Object.keys(n.values).indexOf(B(r))&&i.push(new P(e,r,\"expected one of [\"+Object.keys(n.values).join(\", \")+\"], \"+JSON.stringify(r)+\" found\")),i}function Pe(t){if(!Array.isArray(t)||0===t.length)return!1;switch(t[0]){case\"has\":return t.length>=2&&\"$id\"!==t[1]&&\"$type\"!==t[1];case\"in\":case\"!in\":case\"!has\":case\"none\":return!1;case\"==\":case\"!=\":case\">\":case\">=\":case\"<\":case\"<=\":return 3===t.length&&(Array.isArray(t[1])||Array.isArray(t[2]));case\"any\":case\"all\":for(var e=0,r=t.slice(1);e<r.length;e+=1){var n=r[e];if(!Pe(n)&&\"boolean\"!=typeof n)return!1}return!0;default:return!0}}Te.deserialize=function(t){return new Te(t._parameters,t._specification)},Te.serialize=function(t){return{_parameters:t._parameters,_specification:t._specification}};var De={type:\"boolean\",default:!1,function:!0,\"property-function\":!0,\"zoom-function\":!0};function Re(t){if(!t)return function(){return!0};Pe(t)||(t=Fe(t));var e=we(t,De);if(\"error\"===e.result)throw new Error(e.value.map(function(t){return t.key+\": \"+t.message}).join(\", \"));return function(t,r){return e.value.evaluate(t,r)}}function Be(t,e){return t<e?-1:t>e?1:0}function Fe(t){if(!t)return!0;var e,r=t[0];return t.length<=1?\"any\"!==r:\"==\"===r?Ne(t[1],t[2],\"==\"):\"!=\"===r?Ue(Ne(t[1],t[2],\"==\")):\"<\"===r||\">\"===r||\"<=\"===r||\">=\"===r?Ne(t[1],t[2],r):\"any\"===r?(e=t.slice(1),[\"any\"].concat(e.map(Fe))):\"all\"===r?[\"all\"].concat(t.slice(1).map(Fe)):\"none\"===r?[\"all\"].concat(t.slice(1).map(Fe).map(Ue)):\"in\"===r?je(t[1],t.slice(2)):\"!in\"===r?Ue(je(t[1],t.slice(2))):\"has\"===r?Ve(t[1]):\"!has\"!==r||Ue(Ve(t[1]))}function Ne(t,e,r){switch(t){case\"$type\":return[\"filter-type-\"+r,e];case\"$id\":return[\"filter-id-\"+r,e];default:return[\"filter-\"+r,t,e]}}function je(t,e){if(0===e.length)return!1;switch(t){case\"$type\":return[\"filter-type-in\",[\"literal\",e]];case\"$id\":return[\"filter-id-in\",[\"literal\",e]];default:return e.length>200&&!e.some(function(t){return typeof t!=typeof e[0]})?[\"filter-in-large\",t,[\"literal\",e.sort(Be)]]:[\"filter-in-small\",t,[\"literal\",e]]}}function Ve(t){switch(t){case\"$type\":return!0;case\"$id\":return[\"filter-has-id\"];default:return[\"filter-has\",t]}}function Ue(t){return[\"!\",t]}function qe(t){return Pe(F(t.value))?Oe(R({},t,{expressionContext:\"filter\",valueSpec:{value:\"boolean\"}})):function t(e){var r=e.value,n=e.key;if(\"array\"!==fe(r))return[new P(n,r,\"array expected, \"+fe(r)+\" found\")];var i,a=e.styleSpec,o=[];if(r.length<1)return[new P(n,r,\"filter array must have at least 1 element\")];switch(o=o.concat(Ie({key:n+\"[0]\",value:r[0],valueSpec:a.filter_operator,style:e.style,styleSpec:e.styleSpec})),B(r[0])){case\"<\":case\"<=\":case\">\":case\">=\":r.length>=2&&\"$type\"===B(r[1])&&o.push(new P(n,r,'\"$type\" cannot be use with operator \"'+r[0]+'\"'));case\"==\":case\"!=\":3!==r.length&&o.push(new P(n,r,'filter array for operator \"'+r[0]+'\" must have 3 elements'));case\"in\":case\"!in\":r.length>=2&&\"string\"!==(i=fe(r[1]))&&o.push(new P(n+\"[1]\",r[1],\"string expected, \"+i+\" found\"));for(var s=2;s<r.length;s++)i=fe(r[s]),\"$type\"===B(r[1])?o=o.concat(Ie({key:n+\"[\"+s+\"]\",value:r[s],valueSpec:a.geometry_type,style:e.style,styleSpec:e.styleSpec})):\"string\"!==i&&\"number\"!==i&&\"boolean\"!==i&&o.push(new P(n+\"[\"+s+\"]\",r[s],\"string, number, or boolean expected, \"+i+\" found\"));break;case\"any\":case\"all\":case\"none\":for(var l=1;l<r.length;l++)o=o.concat(t({key:n+\"[\"+l+\"]\",value:r[l],style:e.style,styleSpec:e.styleSpec}));break;case\"has\":case\"!has\":i=fe(r[1]),2!==r.length?o.push(new P(n,r,'filter array for \"'+r[0]+'\" operator must have 2 elements')):\"string\"!==i&&o.push(new P(n+\"[1]\",r[1],\"string expected, \"+i+\" found\"))}return o}(t)}function He(t,e){var r=t.key,n=t.style,i=t.styleSpec,a=t.value,o=t.objectKey,s=i[e+\"_\"+t.layerType];if(!s)return[];var l=o.match(/^(.*)-transition$/);if(\"paint\"===e&&l&&s[l[1]]&&s[l[1]].transition)return Ke({key:r,value:a,valueSpec:i.transition,style:n,styleSpec:i});var c,u=t.valueSpec||s[o];if(!u)return[new P(r,a,'unknown property \"'+o+'\"')];if(\"string\"===fe(a)&&u[\"property-function\"]&&!u.tokens&&(c=/^{([^}]+)}$/.exec(a)))return[new P(r,a,'\"'+o+'\" does not support interpolation syntax\\nUse an identity property function instead: `{ \"type\": \"identity\", \"property\": '+JSON.stringify(c[1])+\" }`.\")];var f=[];return\"symbol\"===t.layerType&&(\"text-field\"===o&&n&&!n.glyphs&&f.push(new P(r,a,'use of \"text-field\" requires a style \"glyphs\" property')),\"text-font\"===o&&he(F(a))&&\"identity\"===B(a.type)&&f.push(new P(r,a,'\"text-font\" does not support identity functions'))),f.concat(Ke({key:t.key,value:a,valueSpec:u,style:n,styleSpec:i,expressionContext:\"property\",propertyKey:o}))}function Ge(t){return He(t,\"paint\")}function We(t){return He(t,\"layout\")}function Ye(t){var e=[],r=t.value,n=t.key,i=t.style,a=t.styleSpec;r.type||r.ref||e.push(new P(n,r,'either \"type\" or \"ref\" is required'));var o,s=B(r.type),l=B(r.ref);if(r.id)for(var c=B(r.id),u=0;u<t.arrayIndex;u++){var f=i.layers[u];B(f.id)===c&&e.push(new P(n,r.id,'duplicate layer id \"'+r.id+'\", previously used at line '+f.id.__line__))}if(\"ref\"in r)[\"type\",\"source\",\"source-layer\",\"filter\",\"layout\"].forEach(function(t){t in r&&e.push(new P(n,r[t],'\"'+t+'\" is prohibited for ref layers'))}),i.layers.forEach(function(t){B(t.id)===l&&(o=t)}),o?o.ref?e.push(new P(n,r.ref,\"ref cannot reference another ref layer\")):s=B(o.type):e.push(new P(n,r.ref,'ref layer \"'+l+'\" not found'));else if(\"background\"!==s)if(r.source){var h=i.sources&&i.sources[r.source],p=h&&B(h.type);h?\"vector\"===p&&\"raster\"===s?e.push(new P(n,r.source,'layer \"'+r.id+'\" requires a raster source')):\"raster\"===p&&\"raster\"!==s?e.push(new P(n,r.source,'layer \"'+r.id+'\" requires a vector source')):\"vector\"!==p||r[\"source-layer\"]?\"raster-dem\"===p&&\"hillshade\"!==s?e.push(new P(n,r.source,\"raster-dem source can only be used with layer type 'hillshade'.\")):\"line\"!==s||!r.paint||!r.paint[\"line-gradient\"]||\"geojson\"===p&&h.lineMetrics||e.push(new P(n,r,'layer \"'+r.id+'\" specifies a line-gradient, which requires a GeoJSON source with `lineMetrics` enabled.')):e.push(new P(n,r,'layer \"'+r.id+'\" must specify a \"source-layer\"')):e.push(new P(n,r.source,'source \"'+r.source+'\" not found'))}else e.push(new P(n,r,'missing required property \"source\"'));return e=e.concat(Ee({key:n,value:r,valueSpec:a.layer,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{\"*\":function(){return[]},type:function(){return Ke({key:n+\".type\",value:r.type,valueSpec:a.layer.type,style:t.style,styleSpec:t.styleSpec,object:r,objectKey:\"type\"})},filter:qe,layout:function(t){return Ee({layer:r,key:t.key,value:t.value,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{\"*\":function(t){return We(R({layerType:s},t))}}})},paint:function(t){return Ee({layer:r,key:t.key,value:t.value,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{\"*\":function(t){return Ge(R({layerType:s},t))}}})}}}))}function Xe(t){var e=t.value,r=t.key,n=t.styleSpec,i=t.style;if(!e.type)return[new P(r,e,'\"type\" is required')];var a=B(e.type),o=[];switch(a){case\"vector\":case\"raster\":case\"raster-dem\":if(o=o.concat(Ee({key:r,value:e,valueSpec:n[\"source_\"+a.replace(\"-\",\"_\")],style:t.style,styleSpec:n})),\"url\"in e)for(var s in e)[\"type\",\"url\",\"tileSize\"].indexOf(s)<0&&o.push(new P(r+\".\"+s,e[s],'a source with a \"url\" property may not include a \"'+s+'\" property'));return o;case\"geojson\":return Ee({key:r,value:e,valueSpec:n.source_geojson,style:i,styleSpec:n});case\"video\":return Ee({key:r,value:e,valueSpec:n.source_video,style:i,styleSpec:n});case\"image\":return Ee({key:r,value:e,valueSpec:n.source_image,style:i,styleSpec:n});case\"canvas\":return o.push(new P(r,null,\"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.\",\"source.canvas\")),o;default:return Ie({key:r+\".type\",value:e.type,valueSpec:{values:[\"vector\",\"raster\",\"raster-dem\",\"geojson\",\"video\",\"image\"]},style:i,styleSpec:n})}}function Ze(t){var e=t.value,r=t.styleSpec,n=r.light,i=t.style,a=[],o=fe(e);if(void 0===e)return a;if(\"object\"!==o)return a.concat([new P(\"light\",e,\"object expected, \"+o+\" found\")]);for(var s in e){var l=s.match(/^(.*)-transition$/);a=l&&n[l[1]]&&n[l[1]].transition?a.concat(Ke({key:s,value:e[s],valueSpec:r.transition,style:i,styleSpec:r})):n[s]?a.concat(Ke({key:s,value:e[s],valueSpec:n[s],style:i,styleSpec:r})):a.concat([new P(s,e[s],'unknown property \"'+s+'\"')])}return a}function $e(t){var e=t.value,r=t.key,n=fe(e);return\"string\"!==n?[new P(r,e,\"string expected, \"+n+\" found\")]:[]}var Je={\"*\":function(){return[]},array:Ce,boolean:function(t){var e=t.value,r=t.key,n=fe(e);return\"boolean\"!==n?[new P(r,e,\"boolean expected, \"+n+\" found\")]:[]},number:Le,color:function(t){var e=t.key,r=t.value,n=fe(r);return\"string\"!==n?[new P(e,r,\"color expected, \"+n+\" found\")]:null===Q(r)?[new P(e,r,'color expected, \"'+r+'\" found')]:[]},constants:D,enum:Ie,filter:qe,function:ze,layer:Ye,object:Ee,source:Xe,light:Ze,string:$e};function Ke(t){var e=t.value,r=t.valueSpec,n=t.styleSpec;return r.function&&he(B(e))?ze(t):r.function&&_e(F(e))?Oe(t):r.type&&Je[r.type]?Je[r.type](t):Ee(R({},t,{valueSpec:r.type?n[r.type]:r}))}function Qe(t){var e=t.value,r=t.key,n=$e(t);return n.length?n:(-1===e.indexOf(\"{fontstack}\")&&n.push(new P(r,e,'\"glyphs\" url must include a \"{fontstack}\" token')),-1===e.indexOf(\"{range}\")&&n.push(new P(r,e,'\"glyphs\" url must include a \"{range}\" token')),n)}function tr(t,e){e=e||I;var r=[];return r=r.concat(Ke({key:\"\",value:t,valueSpec:e.$root,styleSpec:e,style:t,objectElementValidators:{glyphs:Qe,\"*\":function(){return[]}}})),t.constants&&(r=r.concat(D({key:\"constants\",value:t.constants,style:t,styleSpec:e}))),er(r)}function er(t){return[].concat(t).sort(function(t,e){return t.line-e.line})}function rr(t){return function(){return er(t.apply(this,arguments))}}tr.source=rr(Xe),tr.light=rr(Ze),tr.layer=rr(Ye),tr.filter=rr(qe),tr.paintProperty=rr(Ge),tr.layoutProperty=rr(We);var nr=tr,ir=tr.light,ar=tr.paintProperty,or=tr.layoutProperty;function sr(t,e){var r=!1;if(e&&e.length)for(var n=0,i=e;n<i.length;n+=1){var a=i[n];t.fire(new z(new Error(a.message))),r=!0}return r}var lr=ur,cr=3;function ur(t,e,r){var n=this.cells=[];if(t instanceof ArrayBuffer){this.arrayBuffer=t;var i=new Int32Array(this.arrayBuffer);t=i[0],e=i[1],r=i[2],this.d=e+2*r;for(var a=0;a<this.d*this.d;a++){var o=i[cr+a],s=i[cr+a+1];n.push(o===s?null:i.subarray(o,s))}var l=i[cr+n.length],c=i[cr+n.length+1];this.keys=i.subarray(l,c),this.bboxes=i.subarray(c),this.insert=this._insertReadonly}else{this.d=e+2*r;for(var u=0;u<this.d*this.d;u++)n.push([]);this.keys=[],this.bboxes=[]}this.n=e,this.extent=t,this.padding=r,this.scale=e/t,this.uid=0;var f=r/e*t;this.min=-f,this.max=t+f}ur.prototype.insert=function(t,e,r,n,i){this._forEachCell(e,r,n,i,this._insertCell,this.uid++),this.keys.push(t),this.bboxes.push(e),this.bboxes.push(r),this.bboxes.push(n),this.bboxes.push(i)},ur.prototype._insertReadonly=function(){throw\"Cannot insert into a GridIndex created from an ArrayBuffer.\"},ur.prototype._insertCell=function(t,e,r,n,i,a){this.cells[i].push(a)},ur.prototype.query=function(t,e,r,n){var i=this.min,a=this.max;if(t<=i&&e<=i&&a<=r&&a<=n)return Array.prototype.slice.call(this.keys);var o=[];return this._forEachCell(t,e,r,n,this._queryCell,o,{}),o},ur.prototype._queryCell=function(t,e,r,n,i,a,o){var s=this.cells[i];if(null!==s)for(var l=this.keys,c=this.bboxes,u=0;u<s.length;u++){var f=s[u];if(void 0===o[f]){var h=4*f;t<=c[h+2]&&e<=c[h+3]&&r>=c[h+0]&&n>=c[h+1]?(o[f]=!0,a.push(l[f])):o[f]=!1}}},ur.prototype._forEachCell=function(t,e,r,n,i,a,o){for(var s=this._convertToCellCoord(t),l=this._convertToCellCoord(e),c=this._convertToCellCoord(r),u=this._convertToCellCoord(n),f=s;f<=c;f++)for(var h=l;h<=u;h++){var p=this.d*h+f;if(i.call(this,t,e,r,n,p,a,o))return}},ur.prototype._convertToCellCoord=function(t){return Math.max(0,Math.min(this.d-1,Math.floor(t*this.scale)+this.padding))},ur.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var t=this.cells,e=cr+this.cells.length+1+1,r=0,n=0;n<this.cells.length;n++)r+=this.cells[n].length;var i=new Int32Array(e+r+this.keys.length+this.bboxes.length);i[0]=this.extent,i[1]=this.n,i[2]=this.padding;for(var a=e,o=0;o<t.length;o++){var s=t[o];i[cr+o]=a,i.set(s,a),a+=s.length}return i[cr+t.length]=a,i.set(this.keys,a),a+=this.keys.length,i[cr+t.length+1]=a,i.set(this.bboxes,a),a+=this.bboxes.length,i.buffer};var fr=self.ImageData,hr={};function pr(t,e,r){void 0===r&&(r={}),Object.defineProperty(e,\"_classRegistryKey\",{value:t,writeable:!1}),hr[t]={klass:e,omit:r.omit||[],shallow:r.shallow||[]}}for(var dr in pr(\"Object\",Object),lr.serialize=function(t,e){var r=t.toArrayBuffer();return e&&e.push(r),r},lr.deserialize=function(t){return new lr(t)},pr(\"Grid\",lr),pr(\"Color\",tt),pr(\"Error\",Error),pr(\"StylePropertyFunction\",Te),pr(\"StyleExpression\",be,{omit:[\"_evaluator\"]}),pr(\"ZoomDependentExpression\",Me),pr(\"ZoomConstantExpression\",ke),pr(\"CompoundExpression\",gt,{omit:[\"_evaluate\"]}),Rt)Rt[dr]._classRegistryKey||pr(\"Expression_\"+dr,Rt[dr]);function gr(t,e){if(null==t||\"boolean\"==typeof t||\"number\"==typeof t||\"string\"==typeof t||t instanceof Boolean||t instanceof Number||t instanceof String||t instanceof Date||t instanceof RegExp)return t;if(t instanceof ArrayBuffer)return e&&e.push(t),t;if(ArrayBuffer.isView(t)){var r=t;return e&&e.push(r.buffer),r}if(t instanceof fr)return e&&e.push(t.data.buffer),t;if(Array.isArray(t)){for(var n=[],i=0,a=t;i<a.length;i+=1){var o=a[i];n.push(gr(o,e))}return n}if(\"object\"==typeof t){var s=t.constructor,l=s._classRegistryKey;if(!l)throw new Error(\"can't serialize object of unregistered class\");var c={};if(s.serialize)c._serialized=s.serialize(t,e);else{for(var u in t)if(t.hasOwnProperty(u)&&!(hr[l].omit.indexOf(u)>=0)){var f=t[u];c[u]=hr[l].shallow.indexOf(u)>=0?f:gr(f,e)}t instanceof Error&&(c.message=t.message)}return{name:l,properties:c}}throw new Error(\"can't serialize object of type \"+typeof t)}function vr(t){if(null==t||\"boolean\"==typeof t||\"number\"==typeof t||\"string\"==typeof t||t instanceof Boolean||t instanceof Number||t instanceof String||t instanceof Date||t instanceof RegExp||t instanceof ArrayBuffer||ArrayBuffer.isView(t)||t instanceof fr)return t;if(Array.isArray(t))return t.map(function(t){return vr(t)});if(\"object\"==typeof t){var e=t,r=e.name,n=e.properties;if(!r)throw new Error(\"can't deserialize object of anonymous class\");var i=hr[r].klass;if(!i)throw new Error(\"can't deserialize unregistered class \"+r);if(i.deserialize)return i.deserialize(n._serialized);for(var a=Object.create(i.prototype),o=0,s=Object.keys(n);o<s.length;o+=1){var l=s[o];a[l]=hr[r].shallow.indexOf(l)>=0?n[l]:vr(n[l])}return a}throw new Error(\"can't deserialize object of type \"+typeof t)}var mr=function(){this.first=!0};mr.prototype.update=function(t,e){var r=Math.floor(t);return this.first?(this.first=!1,this.lastIntegerZoom=r,this.lastIntegerZoomTime=0,this.lastZoom=t,this.lastFloorZoom=r,!0):(this.lastFloorZoom>r?(this.lastIntegerZoom=r+1,this.lastIntegerZoomTime=e):this.lastFloorZoom<r&&(this.lastIntegerZoom=r,this.lastIntegerZoomTime=e),t!==this.lastZoom&&(this.lastZoom=t,this.lastFloorZoom=r,!0))};var yr={\"Latin-1 Supplement\":function(t){return t>=128&&t<=255},Arabic:function(t){return t>=1536&&t<=1791},\"Arabic Supplement\":function(t){return t>=1872&&t<=1919},\"Arabic Extended-A\":function(t){return t>=2208&&t<=2303},\"Hangul Jamo\":function(t){return t>=4352&&t<=4607},\"Unified Canadian Aboriginal Syllabics\":function(t){return t>=5120&&t<=5759},Khmer:function(t){return t>=6016&&t<=6143},\"Unified Canadian Aboriginal Syllabics Extended\":function(t){return t>=6320&&t<=6399},\"General Punctuation\":function(t){return t>=8192&&t<=8303},\"Letterlike Symbols\":function(t){return t>=8448&&t<=8527},\"Number Forms\":function(t){return t>=8528&&t<=8591},\"Miscellaneous Technical\":function(t){return t>=8960&&t<=9215},\"Control Pictures\":function(t){return t>=9216&&t<=9279},\"Optical Character Recognition\":function(t){return t>=9280&&t<=9311},\"Enclosed Alphanumerics\":function(t){return t>=9312&&t<=9471},\"Geometric Shapes\":function(t){return t>=9632&&t<=9727},\"Miscellaneous Symbols\":function(t){return t>=9728&&t<=9983},\"Miscellaneous Symbols and Arrows\":function(t){return t>=11008&&t<=11263},\"CJK Radicals Supplement\":function(t){return t>=11904&&t<=12031},\"Kangxi Radicals\":function(t){return t>=12032&&t<=12255},\"Ideographic Description Characters\":function(t){return t>=12272&&t<=12287},\"CJK Symbols and Punctuation\":function(t){return t>=12288&&t<=12351},Hiragana:function(t){return t>=12352&&t<=12447},Katakana:function(t){return t>=12448&&t<=12543},Bopomofo:function(t){return t>=12544&&t<=12591},\"Hangul Compatibility Jamo\":function(t){return t>=12592&&t<=12687},Kanbun:function(t){return t>=12688&&t<=12703},\"Bopomofo Extended\":function(t){return t>=12704&&t<=12735},\"CJK Strokes\":function(t){return t>=12736&&t<=12783},\"Katakana Phonetic Extensions\":function(t){return t>=12784&&t<=12799},\"Enclosed CJK Letters and Months\":function(t){return t>=12800&&t<=13055},\"CJK Compatibility\":function(t){return t>=13056&&t<=13311},\"CJK Unified Ideographs Extension A\":function(t){return t>=13312&&t<=19903},\"Yijing Hexagram Symbols\":function(t){return t>=19904&&t<=19967},\"CJK Unified Ideographs\":function(t){return t>=19968&&t<=40959},\"Yi Syllables\":function(t){return t>=40960&&t<=42127},\"Yi Radicals\":function(t){return t>=42128&&t<=42191},\"Hangul Jamo Extended-A\":function(t){return t>=43360&&t<=43391},\"Hangul Syllables\":function(t){return t>=44032&&t<=55215},\"Hangul Jamo Extended-B\":function(t){return t>=55216&&t<=55295},\"Private Use Area\":function(t){return t>=57344&&t<=63743},\"CJK Compatibility Ideographs\":function(t){return t>=63744&&t<=64255},\"Arabic Presentation Forms-A\":function(t){return t>=64336&&t<=65023},\"Vertical Forms\":function(t){return t>=65040&&t<=65055},\"CJK Compatibility Forms\":function(t){return t>=65072&&t<=65103},\"Small Form Variants\":function(t){return t>=65104&&t<=65135},\"Arabic Presentation Forms-B\":function(t){return t>=65136&&t<=65279},\"Halfwidth and Fullwidth Forms\":function(t){return t>=65280&&t<=65519}};function xr(t){for(var e=0,r=t;e<r.length;e+=1)if(_r(r[e].charCodeAt(0)))return!0;return!1}function br(t){return!(yr.Arabic(t)||yr[\"Arabic Supplement\"](t)||yr[\"Arabic Extended-A\"](t)||yr[\"Arabic Presentation Forms-A\"](t)||yr[\"Arabic Presentation Forms-B\"](t))}function _r(t){return!!(746===t||747===t||!(t<4352)&&(yr[\"Bopomofo Extended\"](t)||yr.Bopomofo(t)||yr[\"CJK Compatibility Forms\"](t)&&!(t>=65097&&t<=65103)||yr[\"CJK Compatibility Ideographs\"](t)||yr[\"CJK Compatibility\"](t)||yr[\"CJK Radicals Supplement\"](t)||yr[\"CJK Strokes\"](t)||!(!yr[\"CJK Symbols and Punctuation\"](t)||t>=12296&&t<=12305||t>=12308&&t<=12319||12336===t)||yr[\"CJK Unified Ideographs Extension A\"](t)||yr[\"CJK Unified Ideographs\"](t)||yr[\"Enclosed CJK Letters and Months\"](t)||yr[\"Hangul Compatibility Jamo\"](t)||yr[\"Hangul Jamo Extended-A\"](t)||yr[\"Hangul Jamo Extended-B\"](t)||yr[\"Hangul Jamo\"](t)||yr[\"Hangul Syllables\"](t)||yr.Hiragana(t)||yr[\"Ideographic Description Characters\"](t)||yr.Kanbun(t)||yr[\"Kangxi Radicals\"](t)||yr[\"Katakana Phonetic Extensions\"](t)||yr.Katakana(t)&&12540!==t||!(!yr[\"Halfwidth and Fullwidth Forms\"](t)||65288===t||65289===t||65293===t||t>=65306&&t<=65310||65339===t||65341===t||65343===t||t>=65371&&t<=65503||65507===t||t>=65512&&t<=65519)||!(!yr[\"Small Form Variants\"](t)||t>=65112&&t<=65118||t>=65123&&t<=65126)||yr[\"Unified Canadian Aboriginal Syllabics\"](t)||yr[\"Unified Canadian Aboriginal Syllabics Extended\"](t)||yr[\"Vertical Forms\"](t)||yr[\"Yijing Hexagram Symbols\"](t)||yr[\"Yi Syllables\"](t)||yr[\"Yi Radicals\"](t)))}function wr(t){return!(_r(t)||function(t){return!!(yr[\"Latin-1 Supplement\"](t)&&(167===t||169===t||174===t||177===t||188===t||189===t||190===t||215===t||247===t)||yr[\"General Punctuation\"](t)&&(8214===t||8224===t||8225===t||8240===t||8241===t||8251===t||8252===t||8258===t||8263===t||8264===t||8265===t||8273===t)||yr[\"Letterlike Symbols\"](t)||yr[\"Number Forms\"](t)||yr[\"Miscellaneous Technical\"](t)&&(t>=8960&&t<=8967||t>=8972&&t<=8991||t>=8996&&t<=9e3||9003===t||t>=9085&&t<=9114||t>=9150&&t<=9165||9167===t||t>=9169&&t<=9179||t>=9186&&t<=9215)||yr[\"Control Pictures\"](t)&&9251!==t||yr[\"Optical Character Recognition\"](t)||yr[\"Enclosed Alphanumerics\"](t)||yr[\"Geometric Shapes\"](t)||yr[\"Miscellaneous Symbols\"](t)&&!(t>=9754&&t<=9759)||yr[\"Miscellaneous Symbols and Arrows\"](t)&&(t>=11026&&t<=11055||t>=11088&&t<=11097||t>=11192&&t<=11243)||yr[\"CJK Symbols and Punctuation\"](t)||yr.Katakana(t)||yr[\"Private Use Area\"](t)||yr[\"CJK Compatibility Forms\"](t)||yr[\"Small Form Variants\"](t)||yr[\"Halfwidth and Fullwidth Forms\"](t)||8734===t||8756===t||8757===t||t>=9984&&t<=10087||t>=10102&&t<=10131||65532===t||65533===t)}(t))}function kr(t,e){return!(!e&&(t>=1424&&t<=2303||yr[\"Arabic Presentation Forms-A\"](t)||yr[\"Arabic Presentation Forms-B\"](t))||t>=2304&&t<=3583||t>=3840&&t<=4255||yr.Khmer(t))}var Mr,Ar=!1,Tr=null,Sr=!1,Er=new O,Cr={applyArabicShaping:null,processBidirectionalText:null,isLoaded:function(){return Sr||null!=Cr.applyArabicShaping}},Lr=function(t,e){this.zoom=t,e?(this.now=e.now,this.fadeDuration=e.fadeDuration,this.zoomHistory=e.zoomHistory,this.transition=e.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new mr,this.transition={})};Lr.prototype.isSupportedScript=function(t){return function(t,e){for(var r=0,n=t;r<n.length;r+=1)if(!kr(n[r].charCodeAt(0),e))return!1;return!0}(t,Cr.isLoaded())},Lr.prototype.crossFadingFactor=function(){return 0===this.fadeDuration?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)};var zr=function(t,e){this.property=t,this.value=e,this.expression=Se(void 0===e?t.specification.default:e,t.specification)};zr.prototype.isDataDriven=function(){return\"source\"===this.expression.kind||\"composite\"===this.expression.kind},zr.prototype.possiblyEvaluate=function(t){return this.property.possiblyEvaluate(this,t)};var Or=function(t){this.property=t,this.value=new zr(t,void 0)};Or.prototype.transitioned=function(t,e){return new Pr(this.property,this.value,e,p({},t.transition,this.transition),t.now)},Or.prototype.untransitioned=function(){return new Pr(this.property,this.value,null,{},0)};var Ir=function(t){this._properties=t,this._values=Object.create(t.defaultTransitionablePropertyValues)};Ir.prototype.getValue=function(t){return x(this._values[t].value.value)},Ir.prototype.setValue=function(t,e){this._values.hasOwnProperty(t)||(this._values[t]=new Or(this._values[t].property)),this._values[t].value=new zr(this._values[t].property,null===e?void 0:x(e))},Ir.prototype.getTransition=function(t){return x(this._values[t].transition)},Ir.prototype.setTransition=function(t,e){this._values.hasOwnProperty(t)||(this._values[t]=new Or(this._values[t].property)),this._values[t].transition=x(e)||void 0},Ir.prototype.serialize=function(){for(var t={},e=0,r=Object.keys(this._values);e<r.length;e+=1){var n=r[e],i=this.getValue(n);void 0!==i&&(t[n]=i);var a=this.getTransition(n);void 0!==a&&(t[n+\"-transition\"]=a)}return t},Ir.prototype.transitioned=function(t,e){for(var r=new Dr(this._properties),n=0,i=Object.keys(this._values);n<i.length;n+=1){var a=i[n];r._values[a]=this._values[a].transitioned(t,e._values[a])}return r},Ir.prototype.untransitioned=function(){for(var t=new Dr(this._properties),e=0,r=Object.keys(this._values);e<r.length;e+=1){var n=r[e];t._values[n]=this._values[n].untransitioned()}return t};var Pr=function(t,e,r,n,i){this.property=t,this.value=e,this.begin=i+n.delay||0,this.end=this.begin+n.duration||0,t.specification.transition&&(n.delay||n.duration)&&(this.prior=r)};Pr.prototype.possiblyEvaluate=function(t){var e=t.now||0,r=this.value.possiblyEvaluate(t),n=this.prior;if(n){if(e>this.end)return this.prior=null,r;if(this.value.isDataDriven())return this.prior=null,r;if(e<this.begin)return n.possiblyEvaluate(t);var i=(e-this.begin)/(this.end-this.begin);return this.property.interpolate(n.possiblyEvaluate(t),r,function(t){if(i<=0)return 0;if(i>=1)return 1;var e=i*i,r=e*i;return 4*(i<.5?r:3*(i-e)+r-.75)}())}return r};var Dr=function(t){this._properties=t,this._values=Object.create(t.defaultTransitioningPropertyValues)};Dr.prototype.possiblyEvaluate=function(t){for(var e=new Fr(this._properties),r=0,n=Object.keys(this._values);r<n.length;r+=1){var i=n[r];e._values[i]=this._values[i].possiblyEvaluate(t)}return e},Dr.prototype.hasTransition=function(){for(var t=0,e=Object.keys(this._values);t<e.length;t+=1){var r=e[t];if(this._values[r].prior)return!0}return!1};var Rr=function(t){this._properties=t,this._values=Object.create(t.defaultPropertyValues)};Rr.prototype.getValue=function(t){return x(this._values[t].value)},Rr.prototype.setValue=function(t,e){this._values[t]=new zr(this._values[t].property,null===e?void 0:x(e))},Rr.prototype.serialize=function(){for(var t={},e=0,r=Object.keys(this._values);e<r.length;e+=1){var n=r[e],i=this.getValue(n);void 0!==i&&(t[n]=i)}return t},Rr.prototype.possiblyEvaluate=function(t){for(var e=new Fr(this._properties),r=0,n=Object.keys(this._values);r<n.length;r+=1){var i=n[r];e._values[i]=this._values[i].possiblyEvaluate(t)}return e};var Br=function(t,e,r){this.property=t,this.value=e,this.globals=r};Br.prototype.isConstant=function(){return\"constant\"===this.value.kind},Br.prototype.constantOr=function(t){return\"constant\"===this.value.kind?this.value.value:t},Br.prototype.evaluate=function(t){return this.property.evaluate(this.value,this.globals,t)};var Fr=function(t){this._properties=t,this._values=Object.create(t.defaultPossiblyEvaluatedValues)};Fr.prototype.get=function(t){return this._values[t]};var Nr=function(t){this.specification=t};Nr.prototype.possiblyEvaluate=function(t,e){return t.expression.evaluate(e)},Nr.prototype.interpolate=function(t,e,r){var n=kt[this.specification.type];return n?n(t,e,r):t};var jr=function(t){this.specification=t};jr.prototype.possiblyEvaluate=function(t,e){return\"constant\"===t.expression.kind||\"camera\"===t.expression.kind?new Br(this,{kind:\"constant\",value:t.expression.evaluate(e)},e):new Br(this,t.expression,e)},jr.prototype.interpolate=function(t,e,r){if(\"constant\"!==t.value.kind||\"constant\"!==e.value.kind)return t;if(void 0===t.value.value||void 0===e.value.value)return new Br(this,{kind:\"constant\",value:void 0},t.globals);var n=kt[this.specification.type];return n?new Br(this,{kind:\"constant\",value:n(t.value.value,e.value.value,r)},t.globals):t},jr.prototype.evaluate=function(t,e,r){return\"constant\"===t.kind?t.value:t.evaluate(e,r)};var Vr=function(t){this.specification=t};Vr.prototype.possiblyEvaluate=function(t,e){if(void 0!==t.value){if(\"constant\"===t.expression.kind){var r=t.expression.evaluate(e);return this._calculate(r,r,r,e)}return this._calculate(t.expression.evaluate(new Lr(Math.floor(e.zoom-1),e)),t.expression.evaluate(new Lr(Math.floor(e.zoom),e)),t.expression.evaluate(new Lr(Math.floor(e.zoom+1),e)),e)}},Vr.prototype._calculate=function(t,e,r,n){var i=n.zoom,a=i-Math.floor(i),o=n.crossFadingFactor();return i>n.zoomHistory.lastIntegerZoom?{from:t,to:e,fromScale:2,toScale:1,t:a+(1-a)*o}:{from:r,to:e,fromScale:.5,toScale:1,t:1-(1-o)*a}},Vr.prototype.interpolate=function(t){return t};var Ur=function(t){this.specification=t};Ur.prototype.possiblyEvaluate=function(t,e){return!!t.expression.evaluate(e)},Ur.prototype.interpolate=function(){return!1};var qr=function(t){for(var e in this.properties=t,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},t){var r=t[e],n=this.defaultPropertyValues[e]=new zr(r,void 0),i=this.defaultTransitionablePropertyValues[e]=new Or(r);this.defaultTransitioningPropertyValues[e]=i.untransitioned(),this.defaultPossiblyEvaluatedValues[e]=n.possiblyEvaluate({})}};pr(\"DataDrivenProperty\",jr),pr(\"DataConstantProperty\",Nr),pr(\"CrossFadedProperty\",Vr),pr(\"ColorRampProperty\",Ur);var Hr=function(t){function e(e,r){for(var n in t.call(this),this.id=e.id,this.metadata=e.metadata,this.type=e.type,this.minzoom=e.minzoom,this.maxzoom=e.maxzoom,this.visibility=\"visible\",\"background\"!==e.type&&(this.source=e.source,this.sourceLayer=e[\"source-layer\"],this.filter=e.filter),this._featureFilter=function(){return!0},r.layout&&(this._unevaluatedLayout=new Rr(r.layout)),this._transitionablePaint=new Ir(r.paint),e.paint)this.setPaintProperty(n,e.paint[n],{validate:!1});for(var i in e.layout)this.setLayoutProperty(i,e.layout[i],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getLayoutProperty=function(t){return\"visibility\"===t?this.visibility:this._unevaluatedLayout.getValue(t)},e.prototype.setLayoutProperty=function(t,e,r){if(null!=e){var n=\"layers.\"+this.id+\".layout.\"+t;if(this._validate(or,n,t,e,r))return}\"visibility\"!==t?this._unevaluatedLayout.setValue(t,e):this.visibility=\"none\"===e?e:\"visible\"},e.prototype.getPaintProperty=function(t){return v(t,\"-transition\")?this._transitionablePaint.getTransition(t.slice(0,-\"-transition\".length)):this._transitionablePaint.getValue(t)},e.prototype.setPaintProperty=function(t,e,r){if(null!=e){var n=\"layers.\"+this.id+\".paint.\"+t;if(this._validate(ar,n,t,e,r))return}v(t,\"-transition\")?this._transitionablePaint.setTransition(t.slice(0,-\"-transition\".length),e||void 0):this._transitionablePaint.setValue(t,e)},e.prototype.isHidden=function(t){return!!(this.minzoom&&t<this.minzoom)||!!(this.maxzoom&&t>=this.maxzoom)||\"none\"===this.visibility},e.prototype.updateTransitions=function(t){this._transitioningPaint=this._transitionablePaint.transitioned(t,this._transitioningPaint)},e.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},e.prototype.recalculate=function(t){this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(t)),this.paint=this._transitioningPaint.possiblyEvaluate(t)},e.prototype.serialize=function(){var t={id:this.id,type:this.type,source:this.source,\"source-layer\":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return\"none\"===this.visibility&&(t.layout=t.layout||{},t.layout.visibility=\"none\"),y(t,function(t,e){return!(void 0===t||\"layout\"===e&&!Object.keys(t).length||\"paint\"===e&&!Object.keys(t).length)})},e.prototype._validate=function(t,e,r,n,i){return(!i||!1!==i.validate)&&sr(this,t.call(nr,{key:e,layerType:this.type,objectKey:r,value:n,styleSpec:I,style:{glyphs:!0,sprite:!0}}))},e.prototype.hasOffscreenPass=function(){return!1},e.prototype.resize=function(){},e}(O),Gr={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},Wr=function(t,e){this._structArray=t,this._pos1=e*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},Yr=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};function Xr(t,e){void 0===e&&(e=1);var r=0,n=0;return{members:t.map(function(t){var i,a=(i=t.type,Gr[i].BYTES_PER_ELEMENT),o=r=Zr(r,Math.max(e,a)),s=t.components||1;return n=Math.max(n,a),r+=a*s,{name:t.name,type:t.type,components:s,offset:o}}),size:Zr(r,Math.max(n,e)),alignment:e}}function Zr(t,e){return Math.ceil(t/e)*e}Yr.serialize=function(t,e){return t._trim(),e&&(t.isTransferred=!0,e.push(t.arrayBuffer)),{length:t.length,arrayBuffer:t.arrayBuffer}},Yr.deserialize=function(t){var e=Object.create(this.prototype);return e.arrayBuffer=t.arrayBuffer,e.length=t.length,e.capacity=t.arrayBuffer.byteLength/e.bytesPerElement,e._refreshViews(),e},Yr.prototype._trim=function(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},Yr.prototype.clear=function(){this.length=0},Yr.prototype.resize=function(t){this.reserve(t),this.length=t},Yr.prototype.reserve=function(t){if(t>this.capacity){this.capacity=Math.max(t,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var e=this.uint8;this._refreshViews(),e&&this.uint8.set(e)}},Yr.prototype._refreshViews=function(){throw new Error(\"_refreshViews() must be implemented by each concrete StructArray layout\")};var $r=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e){var r=this.length;this.resize(r+1);var n=2*r;return this.int16[n+0]=t,this.int16[n+1]=e,r},e}(Yr);$r.prototype.bytesPerElement=4,pr(\"StructArrayLayout2i4\",$r);var Jr=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n){var i=this.length;this.resize(i+1);var a=4*i;return this.int16[a+0]=t,this.int16[a+1]=e,this.int16[a+2]=r,this.int16[a+3]=n,i},e}(Yr);Jr.prototype.bytesPerElement=8,pr(\"StructArrayLayout4i8\",Jr);var Kr=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a){var o=this.length;this.resize(o+1);var s=6*o;return this.int16[s+0]=t,this.int16[s+1]=e,this.int16[s+2]=r,this.int16[s+3]=n,this.int16[s+4]=i,this.int16[s+5]=a,o},e}(Yr);Kr.prototype.bytesPerElement=12,pr(\"StructArrayLayout2i4i12\",Kr);var Qr=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a,o,s){var l=this.length;this.resize(l+1);var c=6*l,u=12*l;return this.int16[c+0]=t,this.int16[c+1]=e,this.int16[c+2]=r,this.int16[c+3]=n,this.uint8[u+8]=i,this.uint8[u+9]=a,this.uint8[u+10]=o,this.uint8[u+11]=s,l},e}(Yr);Qr.prototype.bytesPerElement=12,pr(\"StructArrayLayout4i4ub12\",Qr);var tn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a,o,s){var l=this.length;this.resize(l+1);var c=8*l;return this.int16[c+0]=t,this.int16[c+1]=e,this.int16[c+2]=r,this.int16[c+3]=n,this.uint16[c+4]=i,this.uint16[c+5]=a,this.uint16[c+6]=o,this.uint16[c+7]=s,l},e}(Yr);tn.prototype.bytesPerElement=16,pr(\"StructArrayLayout4i4ui16\",tn);var en=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r){var n=this.length;this.resize(n+1);var i=3*n;return this.float32[i+0]=t,this.float32[i+1]=e,this.float32[i+2]=r,n},e}(Yr);en.prototype.bytesPerElement=12,pr(\"StructArrayLayout3f12\",en);var rn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t){var e=this.length;this.resize(e+1);var r=1*e;return this.uint32[r+0]=t,e},e}(Yr);rn.prototype.bytesPerElement=4,pr(\"StructArrayLayout1ul4\",rn);var nn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a,o,s,l,c,u){var f=this.length;this.resize(f+1);var h=12*f,p=6*f;return this.int16[h+0]=t,this.int16[h+1]=e,this.int16[h+2]=r,this.int16[h+3]=n,this.int16[h+4]=i,this.int16[h+5]=a,this.uint32[p+3]=o,this.uint16[h+8]=s,this.uint16[h+9]=l,this.int16[h+10]=c,this.int16[h+11]=u,f},e}(Yr);nn.prototype.bytesPerElement=24,pr(\"StructArrayLayout6i1ul2ui2i24\",nn);var an=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a){var o=this.length;this.resize(o+1);var s=6*o;return this.int16[s+0]=t,this.int16[s+1]=e,this.int16[s+2]=r,this.int16[s+3]=n,this.int16[s+4]=i,this.int16[s+5]=a,o},e}(Yr);an.prototype.bytesPerElement=12,pr(\"StructArrayLayout2i2i2i12\",an);var on=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e){var r=this.length;this.resize(r+1);var n=4*r;return this.uint8[n+0]=t,this.uint8[n+1]=e,r},e}(Yr);on.prototype.bytesPerElement=4,pr(\"StructArrayLayout2ub4\",on);var sn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a,o,s,l,c,u,f,h,p){var d=this.length;this.resize(d+1);var g=20*d,v=10*d,m=40*d;return this.int16[g+0]=t,this.int16[g+1]=e,this.uint16[g+2]=r,this.uint16[g+3]=n,this.uint32[v+2]=i,this.uint32[v+3]=a,this.uint32[v+4]=o,this.uint16[g+10]=s,this.uint16[g+11]=l,this.uint16[g+12]=c,this.float32[v+7]=u,this.float32[v+8]=f,this.uint8[m+36]=h,this.uint8[m+37]=p,d},e}(Yr);sn.prototype.bytesPerElement=40,pr(\"StructArrayLayout2i2ui3ul3ui2f2ub40\",sn);var ln=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t){var e=this.length;this.resize(e+1);var r=1*e;return this.float32[r+0]=t,e},e}(Yr);ln.prototype.bytesPerElement=4,pr(\"StructArrayLayout1f4\",ln);var cn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r){var n=this.length;this.resize(n+1);var i=3*n;return this.int16[i+0]=t,this.int16[i+1]=e,this.int16[i+2]=r,n},e}(Yr);cn.prototype.bytesPerElement=6,pr(\"StructArrayLayout3i6\",cn);var un=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r){var n=this.length;this.resize(n+1);var i=2*n,a=4*n;return this.uint32[i+0]=t,this.uint16[a+2]=e,this.uint16[a+3]=r,n},e}(Yr);un.prototype.bytesPerElement=8,pr(\"StructArrayLayout1ul2ui8\",un);var fn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r){var n=this.length;this.resize(n+1);var i=3*n;return this.uint16[i+0]=t,this.uint16[i+1]=e,this.uint16[i+2]=r,n},e}(Yr);fn.prototype.bytesPerElement=6,pr(\"StructArrayLayout3ui6\",fn);var hn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e){var r=this.length;this.resize(r+1);var n=2*r;return this.uint16[n+0]=t,this.uint16[n+1]=e,r},e}(Yr);hn.prototype.bytesPerElement=4,pr(\"StructArrayLayout2ui4\",hn);var pn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e){var r=this.length;this.resize(r+1);var n=2*r;return this.float32[n+0]=t,this.float32[n+1]=e,r},e}(Yr);pn.prototype.bytesPerElement=8,pr(\"StructArrayLayout2f8\",pn);var dn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n){var i=this.length;this.resize(i+1);var a=4*i;return this.float32[a+0]=t,this.float32[a+1]=e,this.float32[a+2]=r,this.float32[a+3]=n,i},e}(Yr);dn.prototype.bytesPerElement=16,pr(\"StructArrayLayout4f16\",dn);var gn=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={anchorPointX:{configurable:!0},anchorPointY:{configurable:!0},x1:{configurable:!0},y1:{configurable:!0},x2:{configurable:!0},y2:{configurable:!0},featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0},radius:{configurable:!0},signedDistanceFromAnchor:{configurable:!0},anchorPoint:{configurable:!0}};return r.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},r.anchorPointX.set=function(t){this._structArray.int16[this._pos2+0]=t},r.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},r.anchorPointY.set=function(t){this._structArray.int16[this._pos2+1]=t},r.x1.get=function(){return this._structArray.int16[this._pos2+2]},r.x1.set=function(t){this._structArray.int16[this._pos2+2]=t},r.y1.get=function(){return this._structArray.int16[this._pos2+3]},r.y1.set=function(t){this._structArray.int16[this._pos2+3]=t},r.x2.get=function(){return this._structArray.int16[this._pos2+4]},r.x2.set=function(t){this._structArray.int16[this._pos2+4]=t},r.y2.get=function(){return this._structArray.int16[this._pos2+5]},r.y2.set=function(t){this._structArray.int16[this._pos2+5]=t},r.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},r.featureIndex.set=function(t){this._structArray.uint32[this._pos4+3]=t},r.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},r.sourceLayerIndex.set=function(t){this._structArray.uint16[this._pos2+8]=t},r.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},r.bucketIndex.set=function(t){this._structArray.uint16[this._pos2+9]=t},r.radius.get=function(){return this._structArray.int16[this._pos2+10]},r.radius.set=function(t){this._structArray.int16[this._pos2+10]=t},r.signedDistanceFromAnchor.get=function(){return this._structArray.int16[this._pos2+11]},r.signedDistanceFromAnchor.set=function(t){this._structArray.int16[this._pos2+11]=t},r.anchorPoint.get=function(){return new l(this.anchorPointX,this.anchorPointY)},Object.defineProperties(e.prototype,r),e}(Wr);gn.prototype.size=24;var vn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t){return new gn(this,t)},e}(nn);pr(\"CollisionBoxArray\",vn);var mn=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={anchorX:{configurable:!0},anchorY:{configurable:!0},glyphStartIndex:{configurable:!0},numGlyphs:{configurable:!0},vertexStartIndex:{configurable:!0},lineStartIndex:{configurable:!0},lineLength:{configurable:!0},segment:{configurable:!0},lowerSize:{configurable:!0},upperSize:{configurable:!0},lineOffsetX:{configurable:!0},lineOffsetY:{configurable:!0},writingMode:{configurable:!0},hidden:{configurable:!0}};return r.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},r.anchorX.set=function(t){this._structArray.int16[this._pos2+0]=t},r.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},r.anchorY.set=function(t){this._structArray.int16[this._pos2+1]=t},r.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},r.glyphStartIndex.set=function(t){this._structArray.uint16[this._pos2+2]=t},r.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},r.numGlyphs.set=function(t){this._structArray.uint16[this._pos2+3]=t},r.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},r.vertexStartIndex.set=function(t){this._structArray.uint32[this._pos4+2]=t},r.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},r.lineStartIndex.set=function(t){this._structArray.uint32[this._pos4+3]=t},r.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},r.lineLength.set=function(t){this._structArray.uint32[this._pos4+4]=t},r.segment.get=function(){return this._structArray.uint16[this._pos2+10]},r.segment.set=function(t){this._structArray.uint16[this._pos2+10]=t},r.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},r.lowerSize.set=function(t){this._structArray.uint16[this._pos2+11]=t},r.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},r.upperSize.set=function(t){this._structArray.uint16[this._pos2+12]=t},r.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},r.lineOffsetX.set=function(t){this._structArray.float32[this._pos4+7]=t},r.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},r.lineOffsetY.set=function(t){this._structArray.float32[this._pos4+8]=t},r.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},r.writingMode.set=function(t){this._structArray.uint8[this._pos1+36]=t},r.hidden.get=function(){return this._structArray.uint8[this._pos1+37]},r.hidden.set=function(t){this._structArray.uint8[this._pos1+37]=t},Object.defineProperties(e.prototype,r),e}(Wr);mn.prototype.size=40;var yn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t){return new mn(this,t)},e}(sn);pr(\"PlacedSymbolArray\",yn);var xn=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={offsetX:{configurable:!0}};return r.offsetX.get=function(){return this._structArray.float32[this._pos4+0]},r.offsetX.set=function(t){this._structArray.float32[this._pos4+0]=t},Object.defineProperties(e.prototype,r),e}(Wr);xn.prototype.size=4;var bn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getoffsetX=function(t){return this.float32[1*t+0]},e.prototype.get=function(t){return new xn(this,t)},e}(ln);pr(\"GlyphOffsetArray\",bn);var _n=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={x:{configurable:!0},y:{configurable:!0},tileUnitDistanceFromAnchor:{configurable:!0}};return r.x.get=function(){return this._structArray.int16[this._pos2+0]},r.x.set=function(t){this._structArray.int16[this._pos2+0]=t},r.y.get=function(){return this._structArray.int16[this._pos2+1]},r.y.set=function(t){this._structArray.int16[this._pos2+1]=t},r.tileUnitDistanceFromAnchor.get=function(){return this._structArray.int16[this._pos2+2]},r.tileUnitDistanceFromAnchor.set=function(t){this._structArray.int16[this._pos2+2]=t},Object.defineProperties(e.prototype,r),e}(Wr);_n.prototype.size=6;var wn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getx=function(t){return this.int16[3*t+0]},e.prototype.gety=function(t){return this.int16[3*t+1]},e.prototype.gettileUnitDistanceFromAnchor=function(t){return this.int16[3*t+2]},e.prototype.get=function(t){return new _n(this,t)},e}(cn);pr(\"SymbolLineVertexArray\",wn);var kn=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return r.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},r.featureIndex.set=function(t){this._structArray.uint32[this._pos4+0]=t},r.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},r.sourceLayerIndex.set=function(t){this._structArray.uint16[this._pos2+2]=t},r.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},r.bucketIndex.set=function(t){this._structArray.uint16[this._pos2+3]=t},Object.defineProperties(e.prototype,r),e}(Wr);kn.prototype.size=8;var Mn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t){return new kn(this,t)},e}(un);pr(\"FeatureIndexArray\",Mn);var An=Xr([{name:\"a_pos\",components:2,type:\"Int16\"}],4).members,Tn=function(t){void 0===t&&(t=[]),this.segments=t};Tn.prototype.prepareSegment=function(t,e,r){var n=this.segments[this.segments.length-1];return t>Tn.MAX_VERTEX_ARRAY_LENGTH&&_(\"Max vertices per segment is \"+Tn.MAX_VERTEX_ARRAY_LENGTH+\": bucket requested \"+t),(!n||n.vertexLength+t>Tn.MAX_VERTEX_ARRAY_LENGTH)&&(n={vertexOffset:e.length,primitiveOffset:r.length,vertexLength:0,primitiveLength:0},this.segments.push(n)),n},Tn.prototype.get=function(){return this.segments},Tn.prototype.destroy=function(){for(var t=0,e=this.segments;t<e.length;t+=1){var r=e[t];for(var n in r.vaos)r.vaos[n].destroy()}},Tn.MAX_VERTEX_ARRAY_LENGTH=Math.pow(2,16)-1,pr(\"SegmentVector\",Tn);var Sn=function(t,e){return 256*(t=h(Math.floor(t),0,255))+h(Math.floor(e),0,255)};function En(t){return[Sn(255*t.r,255*t.g),Sn(255*t.b,255*t.a)]}var Cn=function(t,e,r){this.value=t,this.name=e,this.type=r,this.statistics={max:-1/0}};Cn.prototype.defines=function(){return[\"#define HAS_UNIFORM_u_\"+this.name]},Cn.prototype.populatePaintArray=function(){},Cn.prototype.upload=function(){},Cn.prototype.destroy=function(){},Cn.prototype.setUniforms=function(t,e,r,n){var i=n.constantOr(this.value),a=t.gl;\"color\"===this.type?a.uniform4f(e.uniforms[\"u_\"+this.name],i.r,i.g,i.b,i.a):a.uniform1f(e.uniforms[\"u_\"+this.name],i)};var Ln=function(t,e,r){this.expression=t,this.name=e,this.type=r,this.statistics={max:-1/0};var n=\"color\"===r?pn:ln;this.paintVertexAttributes=[{name:\"a_\"+e,type:\"Float32\",components:\"color\"===r?2:1,offset:0}],this.paintVertexArray=new n};Ln.prototype.defines=function(){return[]},Ln.prototype.populatePaintArray=function(t,e){var r=this.paintVertexArray,n=r.length;r.reserve(t);var i=this.expression.evaluate(new Lr(0),e);if(\"color\"===this.type)for(var a=En(i),o=n;o<t;o++)r.emplaceBack(a[0],a[1]);else{for(var s=n;s<t;s++)r.emplaceBack(i);this.statistics.max=Math.max(this.statistics.max,i)}},Ln.prototype.upload=function(t){this.paintVertexArray&&(this.paintVertexBuffer=t.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes))},Ln.prototype.destroy=function(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()},Ln.prototype.setUniforms=function(t,e){t.gl.uniform1f(e.uniforms[\"a_\"+this.name+\"_t\"],0)};var zn=function(t,e,r,n,i){this.expression=t,this.name=e,this.type=r,this.useIntegerZoom=n,this.zoom=i,this.statistics={max:-1/0};var a=\"color\"===r?dn:pn;this.paintVertexAttributes=[{name:\"a_\"+e,type:\"Float32\",components:\"color\"===r?4:2,offset:0}],this.paintVertexArray=new a};zn.prototype.defines=function(){return[]},zn.prototype.populatePaintArray=function(t,e){var r=this.paintVertexArray,n=r.length;r.reserve(t);var i=this.expression.evaluate(new Lr(this.zoom),e),a=this.expression.evaluate(new Lr(this.zoom+1),e);if(\"color\"===this.type)for(var o=En(i),s=En(a),l=n;l<t;l++)r.emplaceBack(o[0],o[1],s[0],s[1]);else{for(var c=n;c<t;c++)r.emplaceBack(i,a);this.statistics.max=Math.max(this.statistics.max,i,a)}},zn.prototype.upload=function(t){this.paintVertexArray&&(this.paintVertexBuffer=t.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes))},zn.prototype.destroy=function(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()},zn.prototype.interpolationFactor=function(t){return this.useIntegerZoom?this.expression.interpolationFactor(Math.floor(t),this.zoom,this.zoom+1):this.expression.interpolationFactor(t,this.zoom,this.zoom+1)},zn.prototype.setUniforms=function(t,e,r){t.gl.uniform1f(e.uniforms[\"a_\"+this.name+\"_t\"],this.interpolationFactor(r.zoom))};var On=function(){this.binders={},this.cacheKey=\"\",this._buffers=[]};On.createDynamic=function(t,e,r){var n=new On,i=[];for(var a in t.paint._values)if(r(a)){var o=t.paint.get(a);if(o instanceof Br&&o.property.specification[\"property-function\"]){var s=Pn(a,t.type),l=o.property.specification.type,c=o.property.useIntegerZoom;\"constant\"===o.value.kind?(n.binders[a]=new Cn(o.value,s,l),i.push(\"/u_\"+s)):\"source\"===o.value.kind?(n.binders[a]=new Ln(o.value,s,l),i.push(\"/a_\"+s)):(n.binders[a]=new zn(o.value,s,l,c,e),i.push(\"/z_\"+s))}}return n.cacheKey=i.sort().join(\"\"),n},On.prototype.populatePaintArrays=function(t,e){for(var r in this.binders)this.binders[r].populatePaintArray(t,e)},On.prototype.defines=function(){var t=[];for(var e in this.binders)t.push.apply(t,this.binders[e].defines());return t},On.prototype.setUniforms=function(t,e,r,n){for(var i in this.binders)this.binders[i].setUniforms(t,e,n,r.get(i))},On.prototype.getPaintVertexBuffers=function(){return this._buffers},On.prototype.upload=function(t){for(var e in this.binders)this.binders[e].upload(t);var r=[];for(var n in this.binders){var i=this.binders[n];(i instanceof Ln||i instanceof zn)&&i.paintVertexBuffer&&r.push(i.paintVertexBuffer)}this._buffers=r},On.prototype.destroy=function(){for(var t in this.binders)this.binders[t].destroy()};var In=function(t,e,r,n){void 0===n&&(n=function(){return!0}),this.programConfigurations={};for(var i=0,a=e;i<a.length;i+=1){var o=a[i];this.programConfigurations[o.id]=On.createDynamic(o,r,n),this.programConfigurations[o.id].layoutAttributes=t}};function Pn(t,e){return{\"text-opacity\":\"opacity\",\"icon-opacity\":\"opacity\",\"text-color\":\"fill_color\",\"icon-color\":\"fill_color\",\"text-halo-color\":\"halo_color\",\"icon-halo-color\":\"halo_color\",\"text-halo-blur\":\"halo_blur\",\"icon-halo-blur\":\"halo_blur\",\"text-halo-width\":\"halo_width\",\"icon-halo-width\":\"halo_width\",\"line-gap-width\":\"gapwidth\"}[t]||t.replace(e+\"-\",\"\").replace(/-/g,\"_\")}In.prototype.populatePaintArrays=function(t,e){for(var r in this.programConfigurations)this.programConfigurations[r].populatePaintArrays(t,e)},In.prototype.get=function(t){return this.programConfigurations[t]},In.prototype.upload=function(t){for(var e in this.programConfigurations)this.programConfigurations[e].upload(t)},In.prototype.destroy=function(){for(var t in this.programConfigurations)this.programConfigurations[t].destroy()},pr(\"ConstantBinder\",Cn),pr(\"SourceExpressionBinder\",Ln),pr(\"CompositeExpressionBinder\",zn),pr(\"ProgramConfiguration\",On,{omit:[\"_buffers\"]}),pr(\"ProgramConfigurationSet\",In);var Dn=8192,Rn=(16,{min:-1*Math.pow(2,15),max:Math.pow(2,15)-1});function Bn(t){for(var e=Dn/t.extent,r=t.loadGeometry(),n=0;n<r.length;n++)for(var i=r[n],a=0;a<i.length;a++){var o=i[a];o.x=Math.round(o.x*e),o.y=Math.round(o.y*e),(o.x<Rn.min||o.x>Rn.max||o.y<Rn.min||o.y>Rn.max)&&_(\"Geometry exceeds allowed extent, reduce your vector tile buffer size\")}return r}function Fn(t,e,r,n,i){t.emplaceBack(2*e+(n+1)/2,2*r+(i+1)/2)}var Nn=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(function(t){return t.id}),this.index=t.index,this.layoutVertexArray=new $r,this.indexArray=new fn,this.segments=new Tn,this.programConfigurations=new In(An,t.layers,t.zoom)};function jn(t,e,r){for(var n=0;n<t.length;n++){var i=t[n];if(Zn(i,e))return!0;if(Wn(e,i,r))return!0}return!1}function Vn(t,e){if(1===t.length&&1===t[0].length)return Xn(e,t[0][0]);for(var r=0;r<e.length;r++)for(var n=e[r],i=0;i<n.length;i++)if(Xn(t,n[i]))return!0;for(var a=0;a<t.length;a++){for(var o=t[a],s=0;s<o.length;s++)if(Xn(e,o[s]))return!0;for(var l=0;l<e.length;l++)if(Hn(o,e[l]))return!0}return!1}function Un(t,e,r){for(var n=0;n<e.length;n++)for(var i=e[n],a=0;a<t.length;a++){var o=t[a];if(o.length>=3)for(var s=0;s<i.length;s++)if(Zn(o,i[s]))return!0;if(qn(o,i,r))return!0}return!1}function qn(t,e,r){if(t.length>1){if(Hn(t,e))return!0;for(var n=0;n<e.length;n++)if(Wn(e[n],t,r))return!0}for(var i=0;i<t.length;i++)if(Wn(t[i],e,r))return!0;return!1}function Hn(t,e){if(0===t.length||0===e.length)return!1;for(var r=0;r<t.length-1;r++)for(var n=t[r],i=t[r+1],a=0;a<e.length-1;a++)if(Gn(n,i,e[a],e[a+1]))return!0;return!1}function Gn(t,e,r,n){return w(t,r,n)!==w(e,r,n)&&w(t,e,r)!==w(t,e,n)}function Wn(t,e,r){var n=r*r;if(1===e.length)return t.distSqr(e[0])<n;for(var i=1;i<e.length;i++)if(Yn(t,e[i-1],e[i])<n)return!0;return!1}function Yn(t,e,r){var n=e.distSqr(r);if(0===n)return t.distSqr(e);var i=((t.x-e.x)*(r.x-e.x)+(t.y-e.y)*(r.y-e.y))/n;return i<0?t.distSqr(e):i>1?t.distSqr(r):t.distSqr(r.sub(e)._mult(i)._add(e))}function Xn(t,e){for(var r,n,i,a=!1,o=0;o<t.length;o++)for(var s=0,l=(r=t[o]).length-1;s<r.length;l=s++)n=r[s],i=r[l],n.y>e.y!=i.y>e.y&&e.x<(i.x-n.x)*(e.y-n.y)/(i.y-n.y)+n.x&&(a=!a);return a}function Zn(t,e){for(var r=!1,n=0,i=t.length-1;n<t.length;i=n++){var a=t[n],o=t[i];a.y>e.y!=o.y>e.y&&e.x<(o.x-a.x)*(e.y-a.y)/(o.y-a.y)+a.x&&(r=!r)}return r}function $n(t,e,r){var n=e.paint.get(t).value;return\"constant\"===n.kind?n.value:r.programConfigurations.get(e.id).binders[t].statistics.max}function Jn(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Kn(t,e,r,n,i){if(!e[0]&&!e[1])return t;var a=l.convert(e);\"viewport\"===r&&a._rotate(-n);for(var o=[],s=0;s<t.length;s++){for(var c=t[s],u=[],f=0;f<c.length;f++)u.push(c[f].sub(a._mult(i)));o.push(u)}return o}Nn.prototype.populate=function(t,e){for(var r=0,n=t;r<n.length;r+=1){var i=n[r],a=i.feature,o=i.index,s=i.sourceLayerIndex;if(this.layers[0]._featureFilter(new Lr(this.zoom),a)){var l=Bn(a);this.addFeature(a,l),e.featureIndex.insert(a,l,o,s,this.index)}}},Nn.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},Nn.prototype.upload=function(t){this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,An),this.indexBuffer=t.createIndexBuffer(this.indexArray),this.programConfigurations.upload(t)},Nn.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())},Nn.prototype.addFeature=function(t,e){for(var r=0,n=e;r<n.length;r+=1)for(var i=0,a=n[r];i<a.length;i+=1){var o=a[i],s=o.x,l=o.y;if(!(s<0||s>=Dn||l<0||l>=Dn)){var c=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray),u=c.vertexLength;Fn(this.layoutVertexArray,s,l,-1,-1),Fn(this.layoutVertexArray,s,l,1,-1),Fn(this.layoutVertexArray,s,l,1,1),Fn(this.layoutVertexArray,s,l,-1,1),this.indexArray.emplaceBack(u,u+1,u+2),this.indexArray.emplaceBack(u,u+3,u+2),c.vertexLength+=4,c.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t)},pr(\"CircleBucket\",Nn,{omit:[\"layers\"]});var Qn={paint:new qr({\"circle-radius\":new jr(I.paint_circle[\"circle-radius\"]),\"circle-color\":new jr(I.paint_circle[\"circle-color\"]),\"circle-blur\":new jr(I.paint_circle[\"circle-blur\"]),\"circle-opacity\":new jr(I.paint_circle[\"circle-opacity\"]),\"circle-translate\":new Nr(I.paint_circle[\"circle-translate\"]),\"circle-translate-anchor\":new Nr(I.paint_circle[\"circle-translate-anchor\"]),\"circle-pitch-scale\":new Nr(I.paint_circle[\"circle-pitch-scale\"]),\"circle-pitch-alignment\":new Nr(I.paint_circle[\"circle-pitch-alignment\"]),\"circle-stroke-width\":new jr(I.paint_circle[\"circle-stroke-width\"]),\"circle-stroke-color\":new jr(I.paint_circle[\"circle-stroke-color\"]),\"circle-stroke-opacity\":new jr(I.paint_circle[\"circle-stroke-opacity\"])})},ti=i(function(t,e){var r;t.exports=((r=new Float32Array(3))[0]=0,r[1]=0,r[2]=0,function(){var t=new Float32Array(4);t[0]=0,t[1]=0,t[2]=0,t[3]=0}(),{vec3:{transformMat3:function(t,e,r){var n=e[0],i=e[1],a=e[2];return t[0]=n*r[0]+i*r[3]+a*r[6],t[1]=n*r[1]+i*r[4]+a*r[7],t[2]=n*r[2]+i*r[5]+a*r[8],t}},vec4:{transformMat4:function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3];return t[0]=r[0]*n+r[4]*i+r[8]*a+r[12]*o,t[1]=r[1]*n+r[5]*i+r[9]*a+r[13]*o,t[2]=r[2]*n+r[6]*i+r[10]*a+r[14]*o,t[3]=r[3]*n+r[7]*i+r[11]*a+r[15]*o,t}},mat2:{create:function(){var t=new Float32Array(4);return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t},rotate:function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=Math.sin(r),l=Math.cos(r);return t[0]=n*l+a*s,t[1]=i*l+o*s,t[2]=n*-s+a*l,t[3]=i*-s+o*l,t},scale:function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=r[0],l=r[1];return t[0]=n*s,t[1]=i*s,t[2]=a*l,t[3]=o*l,t}},mat3:{create:function(){var t=new Float32Array(9);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromRotation:function(t,e){var r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=r,t[2]=0,t[3]=-r,t[4]=n,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}},mat4:{create:function(){var t=new Float32Array(16);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},translate:function(t,e,r){var n,i,a,o,s,l,c,u,f,h,p,d,g=r[0],v=r[1],m=r[2];return e===t?(t[12]=e[0]*g+e[4]*v+e[8]*m+e[12],t[13]=e[1]*g+e[5]*v+e[9]*m+e[13],t[14]=e[2]*g+e[6]*v+e[10]*m+e[14],t[15]=e[3]*g+e[7]*v+e[11]*m+e[15]):(n=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],c=e[6],u=e[7],f=e[8],h=e[9],p=e[10],d=e[11],t[0]=n,t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t[6]=c,t[7]=u,t[8]=f,t[9]=h,t[10]=p,t[11]=d,t[12]=n*g+s*v+f*m+e[12],t[13]=i*g+l*v+h*m+e[13],t[14]=a*g+c*v+p*m+e[14],t[15]=o*g+u*v+d*m+e[15]),t},scale:function(t,e,r){var n=r[0],i=r[1],a=r[2];return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*i,t[5]=e[5]*i,t[6]=e[6]*i,t[7]=e[7]*i,t[8]=e[8]*a,t[9]=e[9]*a,t[10]=e[10]*a,t[11]=e[11]*a,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},multiply:function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],c=e[6],u=e[7],f=e[8],h=e[9],p=e[10],d=e[11],g=e[12],v=e[13],m=e[14],y=e[15],x=r[0],b=r[1],_=r[2],w=r[3];return t[0]=x*n+b*s+_*f+w*g,t[1]=x*i+b*l+_*h+w*v,t[2]=x*a+b*c+_*p+w*m,t[3]=x*o+b*u+_*d+w*y,x=r[4],b=r[5],_=r[6],w=r[7],t[4]=x*n+b*s+_*f+w*g,t[5]=x*i+b*l+_*h+w*v,t[6]=x*a+b*c+_*p+w*m,t[7]=x*o+b*u+_*d+w*y,x=r[8],b=r[9],_=r[10],w=r[11],t[8]=x*n+b*s+_*f+w*g,t[9]=x*i+b*l+_*h+w*v,t[10]=x*a+b*c+_*p+w*m,t[11]=x*o+b*u+_*d+w*y,x=r[12],b=r[13],_=r[14],w=r[15],t[12]=x*n+b*s+_*f+w*g,t[13]=x*i+b*l+_*h+w*v,t[14]=x*a+b*c+_*p+w*m,t[15]=x*o+b*u+_*d+w*y,t},perspective:function(t,e,r,n,i){var a=1/Math.tan(e/2),o=1/(n-i);return t[0]=a/r,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=(i+n)*o,t[11]=-1,t[12]=0,t[13]=0,t[14]=2*i*n*o,t[15]=0,t},rotateX:function(t,e,r){var n=Math.sin(r),i=Math.cos(r),a=e[4],o=e[5],s=e[6],l=e[7],c=e[8],u=e[9],f=e[10],h=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=a*i+c*n,t[5]=o*i+u*n,t[6]=s*i+f*n,t[7]=l*i+h*n,t[8]=c*i-a*n,t[9]=u*i-o*n,t[10]=f*i-s*n,t[11]=h*i-l*n,t},rotateZ:function(t,e,r){var n=Math.sin(r),i=Math.cos(r),a=e[0],o=e[1],s=e[2],l=e[3],c=e[4],u=e[5],f=e[6],h=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=a*i+c*n,t[1]=o*i+u*n,t[2]=s*i+f*n,t[3]=l*i+h*n,t[4]=c*i-a*n,t[5]=u*i-o*n,t[6]=f*i-s*n,t[7]=h*i-l*n,t},invert:function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=e[4],s=e[5],l=e[6],c=e[7],u=e[8],f=e[9],h=e[10],p=e[11],d=e[12],g=e[13],v=e[14],m=e[15],y=r*s-n*o,x=r*l-i*o,b=r*c-a*o,_=n*l-i*s,w=n*c-a*s,k=i*c-a*l,M=u*g-f*d,A=u*v-h*d,T=u*m-p*d,S=f*v-h*g,E=f*m-p*g,C=h*m-p*v,L=y*C-x*E+b*S+_*T-w*A+k*M;return L?(L=1/L,t[0]=(s*C-l*E+c*S)*L,t[1]=(i*E-n*C-a*S)*L,t[2]=(g*k-v*w+m*_)*L,t[3]=(h*w-f*k-p*_)*L,t[4]=(l*T-o*C-c*A)*L,t[5]=(r*C-i*T+a*A)*L,t[6]=(v*b-d*k-m*x)*L,t[7]=(u*k-h*b+p*x)*L,t[8]=(o*E-s*T+c*M)*L,t[9]=(n*T-r*E-a*M)*L,t[10]=(d*w-g*b+m*y)*L,t[11]=(f*b-u*w-p*y)*L,t[12]=(s*A-o*S-l*M)*L,t[13]=(r*S-n*A+i*M)*L,t[14]=(g*x-d*_-v*y)*L,t[15]=(u*_-f*x+h*y)*L,t):null},ortho:function(t,e,r,n,i,a,o){var s=1/(e-r),l=1/(n-i),c=1/(a-o);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*c,t[11]=0,t[12]=(e+r)*s,t[13]=(i+n)*l,t[14]=(o+a)*c,t[15]=1,t}}})}),ei=(ti.vec3,ti.vec4),ri=(ti.mat2,ti.mat3,ti.mat4),ni=function(t){function e(e){t.call(this,e,Qn)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createBucket=function(t){return new Nn(t)},e.prototype.queryRadius=function(t){var e=t;return $n(\"circle-radius\",this,e)+$n(\"circle-stroke-width\",this,e)+Jn(this.paint.get(\"circle-translate\"))},e.prototype.queryIntersectsFeature=function(t,e,r,n,i,a,o){for(var s=Kn(t,this.paint.get(\"circle-translate\"),this.paint.get(\"circle-translate-anchor\"),i.angle,a),l=this.paint.get(\"circle-radius\").evaluate(e)+this.paint.get(\"circle-stroke-width\").evaluate(e),c=\"map\"===this.paint.get(\"circle-pitch-alignment\"),u=c?s:function(t,e,r){return s.map(function(t){return t.map(function(t){return ii(t,e,r)})})}(0,o,i),f=c?l*a:l,h=0,p=r;h<p.length;h+=1)for(var d=0,g=p[h];d<g.length;d+=1){var v=g[d],m=c?v:ii(v,o,i),y=f,x=ei.transformMat4([],[v.x,v.y,0,1],o);if(\"viewport\"===this.paint.get(\"circle-pitch-scale\")&&\"map\"===this.paint.get(\"circle-pitch-alignment\")?y*=x[3]/i.cameraToCenterDistance:\"map\"===this.paint.get(\"circle-pitch-scale\")&&\"viewport\"===this.paint.get(\"circle-pitch-alignment\")&&(y*=i.cameraToCenterDistance/x[3]),jn(u,m,y))return!0}return!1},e}(Hr);function ii(t,e,r){var n=ei.transformMat4([],[t.x,t.y,0,1],e);return new l((n[0]/n[3]+1)*r.width*.5,(n[1]/n[3]+1)*r.height*.5)}var ai=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Nn);function oi(t,e,r,n){var i=e.width,a=e.height;if(n){if(n.length!==i*a*r)throw new RangeError(\"mismatched image size\")}else n=new Uint8Array(i*a*r);return t.width=i,t.height=a,t.data=n,t}function si(t,e,r){var n=e.width,i=e.height;if(n!==t.width||i!==t.height){var a=oi({},{width:n,height:i},r);li(t,a,{x:0,y:0},{x:0,y:0},{width:Math.min(t.width,n),height:Math.min(t.height,i)},r),t.width=n,t.height=i,t.data=a.data}}function li(t,e,r,n,i,a){if(0===i.width||0===i.height)return e;if(i.width>t.width||i.height>t.height||r.x>t.width-i.width||r.y>t.height-i.height)throw new RangeError(\"out of range source coordinates for image copy\");if(i.width>e.width||i.height>e.height||n.x>e.width-i.width||n.y>e.height-i.height)throw new RangeError(\"out of range destination coordinates for image copy\");for(var o=t.data,s=e.data,l=0;l<i.height;l++)for(var c=((r.y+l)*t.width+r.x)*a,u=((n.y+l)*e.width+n.x)*a,f=0;f<i.width*a;f++)s[u+f]=o[c+f];return e}pr(\"HeatmapBucket\",ai,{omit:[\"layers\"]});var ci=function(t,e){oi(this,t,1,e)};ci.prototype.resize=function(t){si(this,t,1)},ci.prototype.clone=function(){return new ci({width:this.width,height:this.height},new Uint8Array(this.data))},ci.copy=function(t,e,r,n,i){li(t,e,r,n,i,1)};var ui=function(t,e){oi(this,t,4,e)};ui.prototype.resize=function(t){si(this,t,4)},ui.prototype.clone=function(){return new ui({width:this.width,height:this.height},new Uint8Array(this.data))},ui.copy=function(t,e,r,n,i){li(t,e,r,n,i,4)},pr(\"AlphaImage\",ci),pr(\"RGBAImage\",ui);var fi={paint:new qr({\"heatmap-radius\":new jr(I.paint_heatmap[\"heatmap-radius\"]),\"heatmap-weight\":new jr(I.paint_heatmap[\"heatmap-weight\"]),\"heatmap-intensity\":new Nr(I.paint_heatmap[\"heatmap-intensity\"]),\"heatmap-color\":new Ur(I.paint_heatmap[\"heatmap-color\"]),\"heatmap-opacity\":new Nr(I.paint_heatmap[\"heatmap-opacity\"])})};function hi(t,e){for(var r=new Uint8Array(1024),n={},i=0,a=0;i<256;i++,a+=4){n[e]=i/255;var o=t.evaluate(n);r[a+0]=Math.floor(255*o.r/o.a),r[a+1]=Math.floor(255*o.g/o.a),r[a+2]=Math.floor(255*o.b/o.a),r[a+3]=Math.floor(255*o.a)}return new ui({width:256,height:1},r)}var pi=function(t){function e(e){t.call(this,e,fi),this._updateColorRamp()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createBucket=function(t){return new ai(t)},e.prototype.setPaintProperty=function(e,r,n){t.prototype.setPaintProperty.call(this,e,r,n),\"heatmap-color\"===e&&this._updateColorRamp()},e.prototype._updateColorRamp=function(){var t=this._transitionablePaint._values[\"heatmap-color\"].value.expression;this.colorRamp=hi(t,\"heatmapDensity\"),this.colorRampTexture=null},e.prototype.resize=function(){this.heatmapFbo&&(this.heatmapFbo.destroy(),this.heatmapFbo=null)},e.prototype.queryRadius=function(){return 0},e.prototype.queryIntersectsFeature=function(){return!1},e.prototype.hasOffscreenPass=function(){return 0!==this.paint.get(\"heatmap-opacity\")&&\"none\"!==this.visibility},e}(Hr),di={paint:new qr({\"hillshade-illumination-direction\":new Nr(I.paint_hillshade[\"hillshade-illumination-direction\"]),\"hillshade-illumination-anchor\":new Nr(I.paint_hillshade[\"hillshade-illumination-anchor\"]),\"hillshade-exaggeration\":new Nr(I.paint_hillshade[\"hillshade-exaggeration\"]),\"hillshade-shadow-color\":new Nr(I.paint_hillshade[\"hillshade-shadow-color\"]),\"hillshade-highlight-color\":new Nr(I.paint_hillshade[\"hillshade-highlight-color\"]),\"hillshade-accent-color\":new Nr(I.paint_hillshade[\"hillshade-accent-color\"])})},gi=function(t){function e(e){t.call(this,e,di)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.hasOffscreenPass=function(){return 0!==this.paint.get(\"hillshade-exaggeration\")&&\"none\"!==this.visibility},e}(Hr),vi=Xr([{name:\"a_pos\",components:2,type:\"Int16\"}],4).members,mi=xi,yi=xi;function xi(t,e,r){r=r||2;var n,i,a,o,s,l,c,u=e&&e.length,f=u?e[0]*r:t.length,h=bi(t,0,f,r,!0),p=[];if(!h)return p;if(u&&(h=function(t,e,r,n){var i,a,o,s=[];for(i=0,a=e.length;i<a;i++)(o=bi(t,e[i]*n,i<a-1?e[i+1]*n:t.length,n,!1))===o.next&&(o.steiner=!0),s.push(Li(o));for(s.sort(Si),i=0;i<s.length;i++)Ei(s[i],r),r=_i(r,r.next);return r}(t,e,h,r)),t.length>80*r){n=a=t[0],i=o=t[1];for(var d=r;d<f;d+=r)(s=t[d])<n&&(n=s),(l=t[d+1])<i&&(i=l),s>a&&(a=s),l>o&&(o=l);c=0!==(c=Math.max(a-n,o-i))?1/c:0}return wi(h,p,r,n,i,c),p}function bi(t,e,r,n,i){var a,o;if(i===Vi(t,e,r,n)>0)for(a=e;a<r;a+=n)o=Fi(a,t[a],t[a+1],o);else for(a=r-n;a>=e;a-=n)o=Fi(a,t[a],t[a+1],o);return o&&Pi(o,o.next)&&(Ni(o),o=o.next),o}function _i(t,e){if(!t)return t;e||(e=t);var r,n=t;do{if(r=!1,n.steiner||!Pi(n,n.next)&&0!==Ii(n.prev,n,n.next))n=n.next;else{if(Ni(n),(n=e=n.prev)===n.next)break;r=!0}}while(r||n!==e);return e}function wi(t,e,r,n,i,a,o){if(t){!o&&a&&function(t,e,r,n){var i=t;do{null===i.z&&(i.z=Ci(i.x,i.y,e,r,n)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==t);i.prevZ.nextZ=null,i.prevZ=null,function(t){var e,r,n,i,a,o,s,l,c=1;do{for(r=t,t=null,a=null,o=0;r;){for(o++,n=r,s=0,e=0;e<c&&(s++,n=n.nextZ);e++);for(l=c;s>0||l>0&&n;)0!==s&&(0===l||!n||r.z<=n.z)?(i=r,r=r.nextZ,s--):(i=n,n=n.nextZ,l--),a?a.nextZ=i:t=i,i.prevZ=a,a=i;r=n}a.nextZ=null,c*=2}while(o>1)}(i)}(t,n,i,a);for(var s,l,c=t;t.prev!==t.next;)if(s=t.prev,l=t.next,a?Mi(t,n,i,a):ki(t))e.push(s.i/r),e.push(t.i/r),e.push(l.i/r),Ni(t),t=l.next,c=l.next;else if((t=l)===c){o?1===o?wi(t=Ai(t,e,r),e,r,n,i,a,2):2===o&&Ti(t,e,r,n,i,a):wi(_i(t),e,r,n,i,a,1);break}}}function ki(t){var e=t.prev,r=t,n=t.next;if(Ii(e,r,n)>=0)return!1;for(var i=t.next.next;i!==t.prev;){if(zi(e.x,e.y,r.x,r.y,n.x,n.y,i.x,i.y)&&Ii(i.prev,i,i.next)>=0)return!1;i=i.next}return!0}function Mi(t,e,r,n){var i=t.prev,a=t,o=t.next;if(Ii(i,a,o)>=0)return!1;for(var s=i.x<a.x?i.x<o.x?i.x:o.x:a.x<o.x?a.x:o.x,l=i.y<a.y?i.y<o.y?i.y:o.y:a.y<o.y?a.y:o.y,c=i.x>a.x?i.x>o.x?i.x:o.x:a.x>o.x?a.x:o.x,u=i.y>a.y?i.y>o.y?i.y:o.y:a.y>o.y?a.y:o.y,f=Ci(s,l,e,r,n),h=Ci(c,u,e,r,n),p=t.prevZ,d=t.nextZ;p&&p.z>=f&&d&&d.z<=h;){if(p!==t.prev&&p!==t.next&&zi(i.x,i.y,a.x,a.y,o.x,o.y,p.x,p.y)&&Ii(p.prev,p,p.next)>=0)return!1;if(p=p.prevZ,d!==t.prev&&d!==t.next&&zi(i.x,i.y,a.x,a.y,o.x,o.y,d.x,d.y)&&Ii(d.prev,d,d.next)>=0)return!1;d=d.nextZ}for(;p&&p.z>=f;){if(p!==t.prev&&p!==t.next&&zi(i.x,i.y,a.x,a.y,o.x,o.y,p.x,p.y)&&Ii(p.prev,p,p.next)>=0)return!1;p=p.prevZ}for(;d&&d.z<=h;){if(d!==t.prev&&d!==t.next&&zi(i.x,i.y,a.x,a.y,o.x,o.y,d.x,d.y)&&Ii(d.prev,d,d.next)>=0)return!1;d=d.nextZ}return!0}function Ai(t,e,r){var n=t;do{var i=n.prev,a=n.next.next;!Pi(i,a)&&Di(i,n,n.next,a)&&Ri(i,a)&&Ri(a,i)&&(e.push(i.i/r),e.push(n.i/r),e.push(a.i/r),Ni(n),Ni(n.next),n=t=a),n=n.next}while(n!==t);return n}function Ti(t,e,r,n,i,a){var o=t;do{for(var s=o.next.next;s!==o.prev;){if(o.i!==s.i&&Oi(o,s)){var l=Bi(o,s);return o=_i(o,o.next),l=_i(l,l.next),wi(o,e,r,n,i,a),void wi(l,e,r,n,i,a)}s=s.next}o=o.next}while(o!==t)}function Si(t,e){return t.x-e.x}function Ei(t,e){if(e=function(t,e){var r,n=e,i=t.x,a=t.y,o=-1/0;do{if(a<=n.y&&a>=n.next.y&&n.next.y!==n.y){var s=n.x+(a-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(s<=i&&s>o){if(o=s,s===i){if(a===n.y)return n;if(a===n.next.y)return n.next}r=n.x<n.next.x?n:n.next}}n=n.next}while(n!==e);if(!r)return null;if(i===o)return r.prev;var l,c=r,u=r.x,f=r.y,h=1/0;for(n=r.next;n!==c;)i>=n.x&&n.x>=u&&i!==n.x&&zi(a<f?i:o,a,u,f,a<f?o:i,a,n.x,n.y)&&((l=Math.abs(a-n.y)/(i-n.x))<h||l===h&&n.x>r.x)&&Ri(n,t)&&(r=n,h=l),n=n.next;return r}(t,e)){var r=Bi(e,t);_i(r,r.next)}}function Ci(t,e,r,n,i){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-r)*i)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-n)*i)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function Li(t){var e=t,r=t;do{e.x<r.x&&(r=e),e=e.next}while(e!==t);return r}function zi(t,e,r,n,i,a,o,s){return(i-o)*(e-s)-(t-o)*(a-s)>=0&&(t-o)*(n-s)-(r-o)*(e-s)>=0&&(r-o)*(a-s)-(i-o)*(n-s)>=0}function Oi(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){var r=t;do{if(r.i!==t.i&&r.next.i!==t.i&&r.i!==e.i&&r.next.i!==e.i&&Di(r,r.next,t,e))return!0;r=r.next}while(r!==t);return!1}(t,e)&&Ri(t,e)&&Ri(e,t)&&function(t,e){var r=t,n=!1,i=(t.x+e.x)/2,a=(t.y+e.y)/2;do{r.y>a!=r.next.y>a&&r.next.y!==r.y&&i<(r.next.x-r.x)*(a-r.y)/(r.next.y-r.y)+r.x&&(n=!n),r=r.next}while(r!==t);return n}(t,e)}function Ii(t,e,r){return(e.y-t.y)*(r.x-e.x)-(e.x-t.x)*(r.y-e.y)}function Pi(t,e){return t.x===e.x&&t.y===e.y}function Di(t,e,r,n){return!!(Pi(t,e)&&Pi(r,n)||Pi(t,n)&&Pi(r,e))||Ii(t,e,r)>0!=Ii(t,e,n)>0&&Ii(r,n,t)>0!=Ii(r,n,e)>0}function Ri(t,e){return Ii(t.prev,t,t.next)<0?Ii(t,e,t.next)>=0&&Ii(t,t.prev,e)>=0:Ii(t,e,t.prev)<0||Ii(t,t.next,e)<0}function Bi(t,e){var r=new ji(t.i,t.x,t.y),n=new ji(e.i,e.x,e.y),i=t.next,a=e.prev;return t.next=e,e.prev=t,r.next=i,i.prev=r,n.next=r,r.prev=n,a.next=n,n.prev=a,n}function Fi(t,e,r,n){var i=new ji(t,e,r);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function Ni(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function ji(t,e,r){this.i=t,this.x=e,this.y=r,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function Vi(t,e,r,n){for(var i=0,a=e,o=r-n;a<r;a+=n)i+=(t[o]-t[a])*(t[a+1]+t[o+1]),o=a;return i}xi.deviation=function(t,e,r,n){var i=e&&e.length,a=i?e[0]*r:t.length,o=Math.abs(Vi(t,0,a,r));if(i)for(var s=0,l=e.length;s<l;s++){var c=e[s]*r,u=s<l-1?e[s+1]*r:t.length;o-=Math.abs(Vi(t,c,u,r))}var f=0;for(s=0;s<n.length;s+=3){var h=n[s]*r,p=n[s+1]*r,d=n[s+2]*r;f+=Math.abs((t[h]-t[d])*(t[p+1]-t[h+1])-(t[h]-t[p])*(t[d+1]-t[h+1]))}return 0===o&&0===f?0:Math.abs((f-o)/o)},xi.flatten=function(t){for(var e=t[0][0].length,r={vertices:[],holes:[],dimensions:e},n=0,i=0;i<t.length;i++){for(var a=0;a<t[i].length;a++)for(var o=0;o<e;o++)r.vertices.push(t[i][a][o]);i>0&&(n+=t[i-1].length,r.holes.push(n))}return r},mi.default=yi;var Ui=Hi,qi=Hi;function Hi(t,e,r,n,i){!function t(e,r,n,i,a){for(;i>n;){if(i-n>600){var o=i-n+1,s=r-n+1,l=Math.log(o),c=.5*Math.exp(2*l/3),u=.5*Math.sqrt(l*c*(o-c)/o)*(s-o/2<0?-1:1);t(e,r,Math.max(n,Math.floor(r-s*c/o+u)),Math.min(i,Math.floor(r+(o-s)*c/o+u)),a)}var f=e[r],h=n,p=i;for(Gi(e,n,r),a(e[i],f)>0&&Gi(e,n,i);h<p;){for(Gi(e,h,p),h++,p--;a(e[h],f)<0;)h++;for(;a(e[p],f)>0;)p--}0===a(e[n],f)?Gi(e,n,p):Gi(e,++p,i),p<=r&&(n=p+1),r<=p&&(i=p-1)}}(t,e,r||0,n||t.length-1,i||Wi)}function Gi(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function Wi(t,e){return t<e?-1:t>e?1:0}function Yi(t,e){var r=t.length;if(r<=1)return[t];for(var n,i,a=[],o=0;o<r;o++){var s=k(t[o]);0!==s&&(t[o].area=Math.abs(s),void 0===i&&(i=s<0),i===s<0?(n&&a.push(n),n=[t[o]]):n.push(t[o]))}if(n&&a.push(n),e>1)for(var l=0;l<a.length;l++)a[l].length<=e||(Ui(a[l],e,1,a[l].length-1,Xi),a[l]=a[l].slice(0,e));return a}function Xi(t,e){return e.area-t.area}Ui.default=qi;var Zi=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(function(t){return t.id}),this.index=t.index,this.layoutVertexArray=new $r,this.indexArray=new fn,this.indexArray2=new hn,this.programConfigurations=new In(vi,t.layers,t.zoom),this.segments=new Tn,this.segments2=new Tn};Zi.prototype.populate=function(t,e){for(var r=0,n=t;r<n.length;r+=1){var i=n[r],a=i.feature,o=i.index,s=i.sourceLayerIndex;if(this.layers[0]._featureFilter(new Lr(this.zoom),a)){var l=Bn(a);this.addFeature(a,l),e.featureIndex.insert(a,l,o,s,this.index)}}},Zi.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},Zi.prototype.upload=function(t){this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,vi),this.indexBuffer=t.createIndexBuffer(this.indexArray),this.indexBuffer2=t.createIndexBuffer(this.indexArray2),this.programConfigurations.upload(t)},Zi.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())},Zi.prototype.addFeature=function(t,e){for(var r=0,n=Yi(e,500);r<n.length;r+=1){for(var i=n[r],a=0,o=0,s=i;o<s.length;o+=1)a+=s[o].length;for(var l=this.segments.prepareSegment(a,this.layoutVertexArray,this.indexArray),c=l.vertexLength,u=[],f=[],h=0,p=i;h<p.length;h+=1){var d=p[h];if(0!==d.length){d!==i[0]&&f.push(u.length/2);var g=this.segments2.prepareSegment(d.length,this.layoutVertexArray,this.indexArray2),v=g.vertexLength;this.layoutVertexArray.emplaceBack(d[0].x,d[0].y),this.indexArray2.emplaceBack(v+d.length-1,v),u.push(d[0].x),u.push(d[0].y);for(var m=1;m<d.length;m++)this.layoutVertexArray.emplaceBack(d[m].x,d[m].y),this.indexArray2.emplaceBack(v+m-1,v+m),u.push(d[m].x),u.push(d[m].y);g.vertexLength+=d.length,g.primitiveLength+=d.length}}for(var y=mi(u,f),x=0;x<y.length;x+=3)this.indexArray.emplaceBack(c+y[x],c+y[x+1],c+y[x+2]);l.vertexLength+=a,l.primitiveLength+=y.length/3}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t)},pr(\"FillBucket\",Zi,{omit:[\"layers\"]});var $i={paint:new qr({\"fill-antialias\":new Nr(I.paint_fill[\"fill-antialias\"]),\"fill-opacity\":new jr(I.paint_fill[\"fill-opacity\"]),\"fill-color\":new jr(I.paint_fill[\"fill-color\"]),\"fill-outline-color\":new jr(I.paint_fill[\"fill-outline-color\"]),\"fill-translate\":new Nr(I.paint_fill[\"fill-translate\"]),\"fill-translate-anchor\":new Nr(I.paint_fill[\"fill-translate-anchor\"]),\"fill-pattern\":new Vr(I.paint_fill[\"fill-pattern\"])})},Ji=function(t){function e(e){t.call(this,e,$i)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.recalculate=function(t){this.paint=this._transitioningPaint.possiblyEvaluate(t);var e=this.paint._values[\"fill-outline-color\"];\"constant\"===e.value.kind&&void 0===e.value.value&&(this.paint._values[\"fill-outline-color\"]=this.paint._values[\"fill-color\"])},e.prototype.createBucket=function(t){return new Zi(t)},e.prototype.queryRadius=function(){return Jn(this.paint.get(\"fill-translate\"))},e.prototype.queryIntersectsFeature=function(t,e,r,n,i,a){return Vn(Kn(t,this.paint.get(\"fill-translate\"),this.paint.get(\"fill-translate-anchor\"),i.angle,a),r)},e}(Hr),Ki=Xr([{name:\"a_pos\",components:2,type:\"Int16\"},{name:\"a_normal_ed\",components:4,type:\"Int16\"}],4).members,Qi=Math.pow(2,13);function ta(t,e,r,n,i,a,o,s){t.emplaceBack(e,r,2*Math.floor(n*Qi)+o,i*Qi*2,a*Qi*2,Math.round(s))}var ea=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(function(t){return t.id}),this.index=t.index,this.layoutVertexArray=new Kr,this.indexArray=new fn,this.programConfigurations=new In(Ki,t.layers,t.zoom),this.segments=new Tn};function ra(t,e){return t.x===e.x&&(t.x<0||t.x>Dn)||t.y===e.y&&(t.y<0||t.y>Dn)}function na(t){return t.every(function(t){return t.x<0})||t.every(function(t){return t.x>Dn})||t.every(function(t){return t.y<0})||t.every(function(t){return t.y>Dn})}ea.prototype.populate=function(t,e){for(var r=0,n=t;r<n.length;r+=1){var i=n[r],a=i.feature,o=i.index,s=i.sourceLayerIndex;if(this.layers[0]._featureFilter(new Lr(this.zoom),a)){var l=Bn(a);this.addFeature(a,l),e.featureIndex.insert(a,l,o,s,this.index)}}},ea.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},ea.prototype.upload=function(t){this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,Ki),this.indexBuffer=t.createIndexBuffer(this.indexArray),this.programConfigurations.upload(t)},ea.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())},ea.prototype.addFeature=function(t,e){for(var r=0,n=Yi(e,500);r<n.length;r+=1){for(var i=n[r],a=0,o=0,s=i;o<s.length;o+=1)a+=s[o].length;for(var l=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray),c=0,u=i;c<u.length;c+=1){var f=u[c];if(0!==f.length&&!na(f))for(var h=0,p=0;p<f.length;p++){var d=f[p];if(p>=1){var g=f[p-1];if(!ra(d,g)){l.vertexLength+4>Tn.MAX_VERTEX_ARRAY_LENGTH&&(l=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var v=d.sub(g)._perp()._unit(),m=g.dist(d);h+m>32768&&(h=0),ta(this.layoutVertexArray,d.x,d.y,v.x,v.y,0,0,h),ta(this.layoutVertexArray,d.x,d.y,v.x,v.y,0,1,h),h+=m,ta(this.layoutVertexArray,g.x,g.y,v.x,v.y,0,0,h),ta(this.layoutVertexArray,g.x,g.y,v.x,v.y,0,1,h);var y=l.vertexLength;this.indexArray.emplaceBack(y,y+1,y+2),this.indexArray.emplaceBack(y+1,y+2,y+3),l.vertexLength+=4,l.primitiveLength+=2}}}}l.vertexLength+a>Tn.MAX_VERTEX_ARRAY_LENGTH&&(l=this.segments.prepareSegment(a,this.layoutVertexArray,this.indexArray));for(var x=[],b=[],_=l.vertexLength,w=0,k=i;w<k.length;w+=1){var M=k[w];if(0!==M.length){M!==i[0]&&b.push(x.length/2);for(var A=0;A<M.length;A++){var T=M[A];ta(this.layoutVertexArray,T.x,T.y,0,0,1,1,0),x.push(T.x),x.push(T.y)}}}for(var S=mi(x,b),E=0;E<S.length;E+=3)this.indexArray.emplaceBack(_+S[E],_+S[E+1],_+S[E+2]);l.primitiveLength+=S.length/3,l.vertexLength+=a}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t)},pr(\"FillExtrusionBucket\",ea,{omit:[\"layers\"]});var ia={paint:new qr({\"fill-extrusion-opacity\":new Nr(I[\"paint_fill-extrusion\"][\"fill-extrusion-opacity\"]),\"fill-extrusion-color\":new jr(I[\"paint_fill-extrusion\"][\"fill-extrusion-color\"]),\"fill-extrusion-translate\":new Nr(I[\"paint_fill-extrusion\"][\"fill-extrusion-translate\"]),\"fill-extrusion-translate-anchor\":new Nr(I[\"paint_fill-extrusion\"][\"fill-extrusion-translate-anchor\"]),\"fill-extrusion-pattern\":new Vr(I[\"paint_fill-extrusion\"][\"fill-extrusion-pattern\"]),\"fill-extrusion-height\":new jr(I[\"paint_fill-extrusion\"][\"fill-extrusion-height\"]),\"fill-extrusion-base\":new jr(I[\"paint_fill-extrusion\"][\"fill-extrusion-base\"])})},aa=function(t){function e(e){t.call(this,e,ia)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createBucket=function(t){return new ea(t)},e.prototype.queryRadius=function(){return Jn(this.paint.get(\"fill-extrusion-translate\"))},e.prototype.queryIntersectsFeature=function(t,e,r,n,i,a){return Vn(Kn(t,this.paint.get(\"fill-extrusion-translate\"),this.paint.get(\"fill-extrusion-translate-anchor\"),i.angle,a),r)},e.prototype.hasOffscreenPass=function(){return 0!==this.paint.get(\"fill-extrusion-opacity\")&&\"none\"!==this.visibility},e.prototype.resize=function(){this.viewportFrame&&(this.viewportFrame.destroy(),this.viewportFrame=null)},e}(Hr),oa=Xr([{name:\"a_pos_normal\",components:4,type:\"Int16\"},{name:\"a_data\",components:4,type:\"Uint8\"}],4).members,sa=la;function la(t,e,r,n,i){this.properties={},this.extent=r,this.type=0,this._pbf=t,this._geometry=-1,this._keys=n,this._values=i,t.readFields(ca,this,e)}function ca(t,e,r){1==t?e.id=r.readVarint():2==t?function(t,e){for(var r=t.readVarint()+t.pos;t.pos<r;){var n=e._keys[t.readVarint()],i=e._values[t.readVarint()];e.properties[n]=i}}(r,e):3==t?e.type=r.readVarint():4==t&&(e._geometry=r.pos)}function ua(t){for(var e,r,n=0,i=0,a=t.length,o=a-1;i<a;o=i++)e=t[i],n+=((r=t[o]).x-e.x)*(e.y+r.y);return n}la.types=[\"Unknown\",\"Point\",\"LineString\",\"Polygon\"],la.prototype.loadGeometry=function(){var t=this._pbf;t.pos=this._geometry;for(var e,r=t.readVarint()+t.pos,n=1,i=0,a=0,o=0,s=[];t.pos<r;){if(i<=0){var c=t.readVarint();n=7&c,i=c>>3}if(i--,1===n||2===n)a+=t.readSVarint(),o+=t.readSVarint(),1===n&&(e&&s.push(e),e=[]),e.push(new l(a,o));else{if(7!==n)throw new Error(\"unknown command \"+n);e&&e.push(e[0].clone())}}return e&&s.push(e),s},la.prototype.bbox=function(){var t=this._pbf;t.pos=this._geometry;for(var e=t.readVarint()+t.pos,r=1,n=0,i=0,a=0,o=1/0,s=-1/0,l=1/0,c=-1/0;t.pos<e;){if(n<=0){var u=t.readVarint();r=7&u,n=u>>3}if(n--,1===r||2===r)(i+=t.readSVarint())<o&&(o=i),i>s&&(s=i),(a+=t.readSVarint())<l&&(l=a),a>c&&(c=a);else if(7!==r)throw new Error(\"unknown command \"+r)}return[o,l,s,c]},la.prototype.toGeoJSON=function(t,e,r){var n,i,a=this.extent*Math.pow(2,r),o=this.extent*t,s=this.extent*e,l=this.loadGeometry(),c=la.types[this.type];function u(t){for(var e=0;e<t.length;e++){var r=t[e],n=180-360*(r.y+s)/a;t[e]=[360*(r.x+o)/a-180,360/Math.PI*Math.atan(Math.exp(n*Math.PI/180))-90]}}switch(this.type){case 1:var f=[];for(n=0;n<l.length;n++)f[n]=l[n][0];u(l=f);break;case 2:for(n=0;n<l.length;n++)u(l[n]);break;case 3:for(l=function(t){var e=t.length;if(e<=1)return[t];for(var r,n,i=[],a=0;a<e;a++){var o=ua(t[a]);0!==o&&(void 0===n&&(n=o<0),n===o<0?(r&&i.push(r),r=[t[a]]):r.push(t[a]))}return r&&i.push(r),i}(l),n=0;n<l.length;n++)for(i=0;i<l[n].length;i++)u(l[n][i])}1===l.length?l=l[0]:c=\"Multi\"+c;var h={type:\"Feature\",geometry:{type:c,coordinates:l},properties:this.properties};return\"id\"in this&&(h.id=this.id),h};var fa=ha;function ha(t,e){this.version=1,this.name=null,this.extent=4096,this.length=0,this._pbf=t,this._keys=[],this._values=[],this._features=[],t.readFields(pa,this,e),this.length=this._features.length}function pa(t,e,r){15===t?e.version=r.readVarint():1===t?e.name=r.readString():5===t?e.extent=r.readVarint():2===t?e._features.push(r.pos):3===t?e._keys.push(r.readString()):4===t&&e._values.push(function(t){for(var e=null,r=t.readVarint()+t.pos;t.pos<r;){var n=t.readVarint()>>3;e=1===n?t.readString():2===n?t.readFloat():3===n?t.readDouble():4===n?t.readVarint64():5===n?t.readVarint():6===n?t.readSVarint():7===n?t.readBoolean():null}return e}(r))}function da(t,e,r){if(3===t){var n=new fa(r,r.readVarint()+r.pos);n.length&&(e[n.name]=n)}}ha.prototype.feature=function(t){if(t<0||t>=this._features.length)throw new Error(\"feature index out of bounds\");this._pbf.pos=this._features[t];var e=this._pbf.readVarint()+this._pbf.pos;return new sa(this._pbf,e,this.extent,this._keys,this._values)};var ga={VectorTile:function(t,e){this.layers=t.readFields(da,{},e)},VectorTileFeature:sa,VectorTileLayer:fa},va=ga.VectorTileFeature.types,ma=63,ya=Math.cos(Math.PI/180*37.5),xa=.5,ba=Math.pow(2,14)/xa;function _a(t,e,r,n,i,a,o){t.emplaceBack(e.x,e.y,n?1:0,i?1:-1,Math.round(ma*r.x)+128,Math.round(ma*r.y)+128,1+(0===a?0:a<0?-1:1)|(o*xa&63)<<2,o*xa>>6)}var wa=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(function(t){return t.id}),this.index=t.index,this.layoutVertexArray=new Qr,this.indexArray=new fn,this.programConfigurations=new In(oa,t.layers,t.zoom),this.segments=new Tn};function ka(t,e){return(t/e.tileTotal*(e.end-e.start)+e.start)*(ba-1)}wa.prototype.populate=function(t,e){for(var r=0,n=t;r<n.length;r+=1){var i=n[r],a=i.feature,o=i.index,s=i.sourceLayerIndex;if(this.layers[0]._featureFilter(new Lr(this.zoom),a)){var l=Bn(a);this.addFeature(a,l),e.featureIndex.insert(a,l,o,s,this.index)}}},wa.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},wa.prototype.upload=function(t){this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,oa),this.indexBuffer=t.createIndexBuffer(this.indexArray),this.programConfigurations.upload(t)},wa.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())},wa.prototype.addFeature=function(t,e){for(var r=this.layers[0].layout,n=r.get(\"line-join\").evaluate(t),i=r.get(\"line-cap\"),a=r.get(\"line-miter-limit\"),o=r.get(\"line-round-limit\"),s=0,l=e;s<l.length;s+=1){var c=l[s];this.addLine(c,t,n,i,a,o)}},wa.prototype.addLine=function(t,e,r,n,i,a){var o=null;e.properties&&e.properties.hasOwnProperty(\"mapbox_clip_start\")&&e.properties.hasOwnProperty(\"mapbox_clip_end\")&&(o={start:e.properties.mapbox_clip_start,end:e.properties.mapbox_clip_end,tileTotal:void 0});for(var s=\"Polygon\"===va[e.type],l=t.length;l>=2&&t[l-1].equals(t[l-2]);)l--;for(var c=0;c<l-1&&t[c].equals(t[c+1]);)c++;if(!(l<(s?3:2))){o&&(o.tileTotal=function(t,e,r){for(var n,i,a=0,o=c;o<r-1;o++)n=t[o],i=t[o+1],a+=n.dist(i);return a}(t,0,l)),\"bevel\"===r&&(i=1.05);var u=Dn/(512*this.overscaling)*15,f=t[c],h=this.segments.prepareSegment(10*l,this.layoutVertexArray,this.indexArray);this.distance=0;var p,d,g,v=n,m=s?\"butt\":n,y=!0,x=void 0,b=void 0,_=void 0,w=void 0;this.e1=this.e2=this.e3=-1,s&&(p=t[l-2],w=f.sub(p)._unit()._perp());for(var k=c;k<l;k++)if(!(b=s&&k===l-1?t[c+1]:t[k+1])||!t[k].equals(b)){w&&(_=w),p&&(x=p),p=t[k],w=b?b.sub(p)._unit()._perp():_;var M=(_=_||w).add(w);0===M.x&&0===M.y||M._unit();var A=M.x*w.x+M.y*w.y,T=0!==A?1/A:1/0,S=A<ya&&x&&b;if(S&&k>c){var E=p.dist(x);if(E>2*u){var C=p.sub(p.sub(x)._mult(u/E)._round());this.distance+=C.dist(x),this.addCurrentVertex(C,this.distance,_.mult(1),0,0,!1,h,o),x=C}}var L=x&&b,z=L?r:b?v:m;if(L&&\"round\"===z&&(T<a?z=\"miter\":T<=2&&(z=\"fakeround\")),\"miter\"===z&&T>i&&(z=\"bevel\"),\"bevel\"===z&&(T>2&&(z=\"flipbevel\"),T<i&&(z=\"miter\")),x&&(this.distance+=p.dist(x)),\"miter\"===z)M._mult(T),this.addCurrentVertex(p,this.distance,M,0,0,!1,h,o);else if(\"flipbevel\"===z){if(T>100)M=w.clone().mult(-1);else{var O=_.x*w.y-_.y*w.x>0?-1:1,I=T*_.add(w).mag()/_.sub(w).mag();M._perp()._mult(I*O)}this.addCurrentVertex(p,this.distance,M,0,0,!1,h,o),this.addCurrentVertex(p,this.distance,M.mult(-1),0,0,!1,h,o)}else if(\"bevel\"===z||\"fakeround\"===z){var P=_.x*w.y-_.y*w.x>0,D=-Math.sqrt(T*T-1);if(P?(g=0,d=D):(d=0,g=D),y||this.addCurrentVertex(p,this.distance,_,d,g,!1,h,o),\"fakeround\"===z){for(var R=Math.floor(8*(.5-(A-.5))),B=void 0,F=0;F<R;F++)B=w.mult((F+1)/(R+1))._add(_)._unit(),this.addPieSliceVertex(p,this.distance,B,P,h,o);this.addPieSliceVertex(p,this.distance,M,P,h,o);for(var N=R-1;N>=0;N--)B=_.mult((N+1)/(R+1))._add(w)._unit(),this.addPieSliceVertex(p,this.distance,B,P,h,o)}b&&this.addCurrentVertex(p,this.distance,w,-d,-g,!1,h,o)}else\"butt\"===z?(y||this.addCurrentVertex(p,this.distance,_,0,0,!1,h,o),b&&this.addCurrentVertex(p,this.distance,w,0,0,!1,h,o)):\"square\"===z?(y||(this.addCurrentVertex(p,this.distance,_,1,1,!1,h,o),this.e1=this.e2=-1),b&&this.addCurrentVertex(p,this.distance,w,-1,-1,!1,h,o)):\"round\"===z&&(y||(this.addCurrentVertex(p,this.distance,_,0,0,!1,h,o),this.addCurrentVertex(p,this.distance,_,1,1,!0,h,o),this.e1=this.e2=-1),b&&(this.addCurrentVertex(p,this.distance,w,-1,-1,!0,h,o),this.addCurrentVertex(p,this.distance,w,0,0,!1,h,o)));if(S&&k<l-1){var j=p.dist(b);if(j>2*u){var V=p.add(b.sub(p)._mult(u/j)._round());this.distance+=V.dist(p),this.addCurrentVertex(V,this.distance,w.mult(1),0,0,!1,h,o),p=V}}y=!1}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e)}},wa.prototype.addCurrentVertex=function(t,e,r,n,i,a,o,s){var l,c=this.layoutVertexArray,u=this.indexArray;s&&(e=ka(e,s)),l=r.clone(),n&&l._sub(r.perp()._mult(n)),_a(c,t,l,a,!1,n,e),this.e3=o.vertexLength++,this.e1>=0&&this.e2>=0&&(u.emplaceBack(this.e1,this.e2,this.e3),o.primitiveLength++),this.e1=this.e2,this.e2=this.e3,l=r.mult(-1),i&&l._sub(r.perp()._mult(i)),_a(c,t,l,a,!0,-i,e),this.e3=o.vertexLength++,this.e1>=0&&this.e2>=0&&(u.emplaceBack(this.e1,this.e2,this.e3),o.primitiveLength++),this.e1=this.e2,this.e2=this.e3,e>ba/2&&!s&&(this.distance=0,this.addCurrentVertex(t,this.distance,r,n,i,a,o))},wa.prototype.addPieSliceVertex=function(t,e,r,n,i,a){r=r.mult(n?-1:1);var o=this.layoutVertexArray,s=this.indexArray;a&&(e=ka(e,a)),_a(o,t,r,!1,n,0,e),this.e3=i.vertexLength++,this.e1>=0&&this.e2>=0&&(s.emplaceBack(this.e1,this.e2,this.e3),i.primitiveLength++),n?this.e2=this.e3:this.e1=this.e3},pr(\"LineBucket\",wa,{omit:[\"layers\"]});var Ma=new qr({\"line-cap\":new Nr(I.layout_line[\"line-cap\"]),\"line-join\":new jr(I.layout_line[\"line-join\"]),\"line-miter-limit\":new Nr(I.layout_line[\"line-miter-limit\"]),\"line-round-limit\":new Nr(I.layout_line[\"line-round-limit\"])}),Aa={paint:new qr({\"line-opacity\":new jr(I.paint_line[\"line-opacity\"]),\"line-color\":new jr(I.paint_line[\"line-color\"]),\"line-translate\":new Nr(I.paint_line[\"line-translate\"]),\"line-translate-anchor\":new Nr(I.paint_line[\"line-translate-anchor\"]),\"line-width\":new jr(I.paint_line[\"line-width\"]),\"line-gap-width\":new jr(I.paint_line[\"line-gap-width\"]),\"line-offset\":new jr(I.paint_line[\"line-offset\"]),\"line-blur\":new jr(I.paint_line[\"line-blur\"]),\"line-dasharray\":new Vr(I.paint_line[\"line-dasharray\"]),\"line-pattern\":new Vr(I.paint_line[\"line-pattern\"]),\"line-gradient\":new Ur(I.paint_line[\"line-gradient\"])}),layout:Ma},Ta=new(function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.possiblyEvaluate=function(e,r){return r=new Lr(Math.floor(r.zoom),{now:r.now,fadeDuration:r.fadeDuration,zoomHistory:r.zoomHistory,transition:r.transition}),t.prototype.possiblyEvaluate.call(this,e,r)},e.prototype.evaluate=function(e,r,n){return r=p({},r,{zoom:Math.floor(r.zoom)}),t.prototype.evaluate.call(this,e,r,n)},e}(jr))(Aa.paint.properties[\"line-width\"].specification);Ta.useIntegerZoom=!0;var Sa=function(t){function e(e){t.call(this,e,Aa)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setPaintProperty=function(e,r,n){t.prototype.setPaintProperty.call(this,e,r,n),\"line-gradient\"===e&&this._updateGradient()},e.prototype._updateGradient=function(){var t=this._transitionablePaint._values[\"line-gradient\"].value.expression;this.gradient=hi(t,\"lineProgress\"),this.gradientTexture=null},e.prototype.recalculate=function(e){t.prototype.recalculate.call(this,e),this.paint._values[\"line-floorwidth\"]=Ta.possiblyEvaluate(this._transitioningPaint._values[\"line-width\"].value,e)},e.prototype.createBucket=function(t){return new wa(t)},e.prototype.queryRadius=function(t){var e=t,r=Ea($n(\"line-width\",this,e),$n(\"line-gap-width\",this,e)),n=$n(\"line-offset\",this,e);return r/2+Math.abs(n)+Jn(this.paint.get(\"line-translate\"))},e.prototype.queryIntersectsFeature=function(t,e,r,n,i,a){var o=Kn(t,this.paint.get(\"line-translate\"),this.paint.get(\"line-translate-anchor\"),i.angle,a),s=a/2*Ea(this.paint.get(\"line-width\").evaluate(e),this.paint.get(\"line-gap-width\").evaluate(e)),c=this.paint.get(\"line-offset\").evaluate(e);return c&&(r=function(t,e){for(var r=[],n=new l(0,0),i=0;i<t.length;i++){for(var a=t[i],o=[],s=0;s<a.length;s++){var c=a[s-1],u=a[s],f=a[s+1],h=0===s?n:u.sub(c)._unit()._perp(),p=s===a.length-1?n:f.sub(u)._unit()._perp(),d=h._add(p)._unit(),g=d.x*p.x+d.y*p.y;d._mult(1/g),o.push(d._mult(e)._add(u))}r.push(o)}return r}(r,c*a)),Un(o,r,s)},e}(Hr);function Ea(t,e){return e>0?e+2*t:t}var Ca=Xr([{name:\"a_pos_offset\",components:4,type:\"Int16\"},{name:\"a_data\",components:4,type:\"Uint16\"}]),La=Xr([{name:\"a_projected_pos\",components:3,type:\"Float32\"}],4),za=(Xr([{name:\"a_fade_opacity\",components:1,type:\"Uint32\"}],4),Xr([{name:\"a_placed\",components:2,type:\"Uint8\"}],4)),Oa=(Xr([{type:\"Int16\",name:\"anchorPointX\"},{type:\"Int16\",name:\"anchorPointY\"},{type:\"Int16\",name:\"x1\"},{type:\"Int16\",name:\"y1\"},{type:\"Int16\",name:\"x2\"},{type:\"Int16\",name:\"y2\"},{type:\"Uint32\",name:\"featureIndex\"},{type:\"Uint16\",name:\"sourceLayerIndex\"},{type:\"Uint16\",name:\"bucketIndex\"},{type:\"Int16\",name:\"radius\"},{type:\"Int16\",name:\"signedDistanceFromAnchor\"}]),Xr([{name:\"a_pos\",components:2,type:\"Int16\"},{name:\"a_anchor_pos\",components:2,type:\"Int16\"},{name:\"a_extrude\",components:2,type:\"Int16\"}],4)),Ia=Xr([{name:\"a_pos\",components:2,type:\"Int16\"},{name:\"a_anchor_pos\",components:2,type:\"Int16\"},{name:\"a_extrude\",components:2,type:\"Int16\"}],4);function Pa(t,e,r){var n=e.layout.get(\"text-transform\").evaluate(r);return\"uppercase\"===n?t=t.toLocaleUpperCase():\"lowercase\"===n&&(t=t.toLocaleLowerCase()),Cr.applyArabicShaping&&(t=Cr.applyArabicShaping(t)),t}Xr([{type:\"Int16\",name:\"anchorX\"},{type:\"Int16\",name:\"anchorY\"},{type:\"Uint16\",name:\"glyphStartIndex\"},{type:\"Uint16\",name:\"numGlyphs\"},{type:\"Uint32\",name:\"vertexStartIndex\"},{type:\"Uint32\",name:\"lineStartIndex\"},{type:\"Uint32\",name:\"lineLength\"},{type:\"Uint16\",name:\"segment\"},{type:\"Uint16\",name:\"lowerSize\"},{type:\"Uint16\",name:\"upperSize\"},{type:\"Float32\",name:\"lineOffsetX\"},{type:\"Float32\",name:\"lineOffsetY\"},{type:\"Uint8\",name:\"writingMode\"},{type:\"Uint8\",name:\"hidden\"}]),Xr([{type:\"Float32\",name:\"offsetX\"}]),Xr([{type:\"Int16\",name:\"x\"},{type:\"Int16\",name:\"y\"},{type:\"Int16\",name:\"tileUnitDistanceFromAnchor\"}]);var Da={\"!\":\"\\ufe15\",\"#\":\"\\uff03\",$:\"\\uff04\",\"%\":\"\\uff05\",\"&\":\"\\uff06\",\"(\":\"\\ufe35\",\")\":\"\\ufe36\",\"*\":\"\\uff0a\",\"+\":\"\\uff0b\",\",\":\"\\ufe10\",\"-\":\"\\ufe32\",\".\":\"\\u30fb\",\"/\":\"\\uff0f\",\":\":\"\\ufe13\",\";\":\"\\ufe14\",\"<\":\"\\ufe3f\",\"=\":\"\\uff1d\",\">\":\"\\ufe40\",\"?\":\"\\ufe16\",\"@\":\"\\uff20\",\"[\":\"\\ufe47\",\"\\\\\":\"\\uff3c\",\"]\":\"\\ufe48\",\"^\":\"\\uff3e\",_:\"\\ufe33\",\"`\":\"\\uff40\",\"{\":\"\\ufe37\",\"|\":\"\\u2015\",\"}\":\"\\ufe38\",\"~\":\"\\uff5e\",\"\\xa2\":\"\\uffe0\",\"\\xa3\":\"\\uffe1\",\"\\xa5\":\"\\uffe5\",\"\\xa6\":\"\\uffe4\",\"\\xac\":\"\\uffe2\",\"\\xaf\":\"\\uffe3\",\"\\u2013\":\"\\ufe32\",\"\\u2014\":\"\\ufe31\",\"\\u2018\":\"\\ufe43\",\"\\u2019\":\"\\ufe44\",\"\\u201c\":\"\\ufe41\",\"\\u201d\":\"\\ufe42\",\"\\u2026\":\"\\ufe19\",\"\\u2027\":\"\\u30fb\",\"\\u20a9\":\"\\uffe6\",\"\\u3001\":\"\\ufe11\",\"\\u3002\":\"\\ufe12\",\"\\u3008\":\"\\ufe3f\",\"\\u3009\":\"\\ufe40\",\"\\u300a\":\"\\ufe3d\",\"\\u300b\":\"\\ufe3e\",\"\\u300c\":\"\\ufe41\",\"\\u300d\":\"\\ufe42\",\"\\u300e\":\"\\ufe43\",\"\\u300f\":\"\\ufe44\",\"\\u3010\":\"\\ufe3b\",\"\\u3011\":\"\\ufe3c\",\"\\u3014\":\"\\ufe39\",\"\\u3015\":\"\\ufe3a\",\"\\u3016\":\"\\ufe17\",\"\\u3017\":\"\\ufe18\",\"\\uff01\":\"\\ufe15\",\"\\uff08\":\"\\ufe35\",\"\\uff09\":\"\\ufe36\",\"\\uff0c\":\"\\ufe10\",\"\\uff0d\":\"\\ufe32\",\"\\uff0e\":\"\\u30fb\",\"\\uff1a\":\"\\ufe13\",\"\\uff1b\":\"\\ufe14\",\"\\uff1c\":\"\\ufe3f\",\"\\uff1e\":\"\\ufe40\",\"\\uff1f\":\"\\ufe16\",\"\\uff3b\":\"\\ufe47\",\"\\uff3d\":\"\\ufe48\",\"\\uff3f\":\"\\ufe33\",\"\\uff5b\":\"\\ufe37\",\"\\uff5c\":\"\\u2015\",\"\\uff5d\":\"\\ufe38\",\"\\uff5f\":\"\\ufe35\",\"\\uff60\":\"\\ufe36\",\"\\uff61\":\"\\ufe12\",\"\\uff62\":\"\\ufe41\",\"\\uff63\":\"\\ufe42\"},Ra=function(t){function e(e,r,n,i){t.call(this,e,r),this.angle=n,void 0!==i&&(this.segment=i)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){return new e(this.x,this.y,this.angle,this.segment)},e}(l);function Ba(t,e){var r=e.expression;if(\"constant\"===r.kind)return{functionType:\"constant\",layoutSize:r.evaluate(new Lr(t+1))};if(\"source\"===r.kind)return{functionType:\"source\"};for(var n=r.zoomStops,i=0;i<n.length&&n[i]<=t;)i++;for(var a=i=Math.max(0,i-1);a<n.length&&n[a]<t+1;)a++;a=Math.min(n.length-1,a);var o={min:n[i],max:n[a]};return\"composite\"===r.kind?{functionType:\"composite\",zoomRange:o,propertyValue:e.value}:{functionType:\"camera\",layoutSize:r.evaluate(new Lr(t+1)),zoomRange:o,sizeRange:{min:r.evaluate(new Lr(o.min)),max:r.evaluate(new Lr(o.max))},propertyValue:e.value}}pr(\"Anchor\",Ra);var Fa=ga.VectorTileFeature.types,Na=[{name:\"a_fade_opacity\",components:1,type:\"Uint8\",offset:0}];function ja(t,e,r,n,i,a,o,s){t.emplaceBack(e,r,Math.round(32*n),Math.round(32*i),a,o,s?s[0]:0,s?s[1]:0)}function Va(t,e,r){t.emplaceBack(e.x,e.y,r),t.emplaceBack(e.x,e.y,r),t.emplaceBack(e.x,e.y,r),t.emplaceBack(e.x,e.y,r)}var Ua=function(t){this.layoutVertexArray=new tn,this.indexArray=new fn,this.programConfigurations=t,this.segments=new Tn,this.dynamicLayoutVertexArray=new en,this.opacityVertexArray=new rn,this.placedSymbolArray=new yn};Ua.prototype.upload=function(t,e){this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,Ca.members),this.indexBuffer=t.createIndexBuffer(this.indexArray,e),this.programConfigurations.upload(t),this.dynamicLayoutVertexBuffer=t.createVertexBuffer(this.dynamicLayoutVertexArray,La.members,!0),this.opacityVertexBuffer=t.createVertexBuffer(this.opacityVertexArray,Na,!0),this.opacityVertexBuffer.itemSize=1},Ua.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.dynamicLayoutVertexBuffer.destroy(),this.opacityVertexBuffer.destroy())},pr(\"SymbolBuffers\",Ua);var qa=function(t,e,r){this.layoutVertexArray=new t,this.layoutAttributes=e,this.indexArray=new r,this.segments=new Tn,this.collisionVertexArray=new on};qa.prototype.upload=function(t){this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,this.layoutAttributes),this.indexBuffer=t.createIndexBuffer(this.indexArray),this.collisionVertexBuffer=t.createVertexBuffer(this.collisionVertexArray,za.members,!0)},qa.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.collisionVertexBuffer.destroy())},pr(\"CollisionBuffers\",qa);var Ha=function(t){this.collisionBoxArray=t.collisionBoxArray,this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(function(t){return t.id}),this.index=t.index,this.pixelRatio=t.pixelRatio,this.sourceLayerIndex=t.sourceLayerIndex;var e=this.layers[0]._unevaluatedLayout._values;this.textSizeData=Ba(this.zoom,e[\"text-size\"]),this.iconSizeData=Ba(this.zoom,e[\"icon-size\"]);var r=this.layers[0].layout;this.sortFeaturesByY=r.get(\"text-allow-overlap\")||r.get(\"icon-allow-overlap\")||r.get(\"text-ignore-placement\")||r.get(\"icon-ignore-placement\")};Ha.prototype.createArrays=function(){this.text=new Ua(new In(Ca.members,this.layers,this.zoom,function(t){return/^text/.test(t)})),this.icon=new Ua(new In(Ca.members,this.layers,this.zoom,function(t){return/^icon/.test(t)})),this.collisionBox=new qa(an,Oa.members,hn),this.collisionCircle=new qa(an,Ia.members,fn),this.glyphOffsetArray=new bn,this.lineVertexArray=new wn},Ha.prototype.populate=function(t,e){var r=this.layers[0],n=r.layout,i=n.get(\"text-font\"),a=n.get(\"text-field\"),o=n.get(\"icon-image\"),s=(\"constant\"!==a.value.kind||a.value.value.length>0)&&(\"constant\"!==i.value.kind||i.value.value.length>0),l=\"constant\"!==o.value.kind||o.value.value&&o.value.value.length>0;if(this.features=[],s||l){for(var c=e.iconDependencies,u=e.glyphDependencies,f=new Lr(this.zoom),h=0,p=t;h<p.length;h+=1){var d=p[h],g=d.feature,v=d.index,m=d.sourceLayerIndex;if(r._featureFilter(f,g)){var y=void 0;s&&(y=Pa(y=r.getValueAndResolveTokens(\"text-field\",g),r,g));var x=void 0;if(l&&(x=r.getValueAndResolveTokens(\"icon-image\",g)),y||x){var b={text:y,icon:x,index:v,sourceLayerIndex:m,geometry:Bn(g),properties:g.properties,type:Fa[g.type]};if(void 0!==g.id&&(b.id=g.id),this.features.push(b),x&&(c[x]=!0),y)for(var _=i.evaluate(g).join(\",\"),w=u[_]=u[_]||{},k=\"map\"===n.get(\"text-rotation-alignment\")&&\"line\"===n.get(\"symbol-placement\"),M=xr(y),A=0;A<y.length;A++)if(w[y.charCodeAt(A)]=!0,k&&M){var T=Da[y.charAt(A)];T&&(w[T.charCodeAt(0)]=!0)}}}}\"line\"===n.get(\"symbol-placement\")&&(this.features=function(t){var e={},r={},n=[],i=0;function a(e){n.push(t[e]),i++}function o(t,e,i){var a=r[t];return delete r[t],r[e]=a,n[a].geometry[0].pop(),n[a].geometry[0]=n[a].geometry[0].concat(i[0]),a}function s(t,r,i){var a=e[r];return delete e[r],e[t]=a,n[a].geometry[0].shift(),n[a].geometry[0]=i[0].concat(n[a].geometry[0]),a}function l(t,e,r){var n=r?e[0][e[0].length-1]:e[0][0];return t+\":\"+n.x+\":\"+n.y}for(var c=0;c<t.length;c++){var u=t[c],f=u.geometry,h=u.text;if(h){var p=l(h,f),d=l(h,f,!0);if(p in r&&d in e&&r[p]!==e[d]){var g=s(p,d,f),v=o(p,d,n[g].geometry);delete e[p],delete r[d],r[l(h,n[v].geometry,!0)]=v,n[g].geometry=null}else p in r?o(p,d,f):d in e?s(p,d,f):(a(c),e[p]=i-1,r[d]=i-1)}else a(c)}return n.filter(function(t){return t.geometry})}(this.features))}},Ha.prototype.isEmpty=function(){return 0===this.symbolInstances.length},Ha.prototype.upload=function(t){this.text.upload(t,this.sortFeaturesByY),this.icon.upload(t,this.sortFeaturesByY),this.collisionBox.upload(t),this.collisionCircle.upload(t)},Ha.prototype.destroy=function(){this.text.destroy(),this.icon.destroy(),this.collisionBox.destroy(),this.collisionCircle.destroy()},Ha.prototype.addToLineVertexArray=function(t,e){var r=this.lineVertexArray.length;if(void 0!==t.segment){for(var n=t.dist(e[t.segment+1]),i=t.dist(e[t.segment]),a={},o=t.segment+1;o<e.length;o++)a[o]={x:e[o].x,y:e[o].y,tileUnitDistanceFromAnchor:n},o<e.length-1&&(n+=e[o+1].dist(e[o]));for(var s=t.segment||0;s>=0;s--)a[s]={x:e[s].x,y:e[s].y,tileUnitDistanceFromAnchor:i},s>0&&(i+=e[s-1].dist(e[s]));for(var l=0;l<e.length;l++){var c=a[l];this.lineVertexArray.emplaceBack(c.x,c.y,c.tileUnitDistanceFromAnchor)}}return{lineStartIndex:r,lineLength:this.lineVertexArray.length-r}},Ha.prototype.addSymbols=function(t,e,r,n,i,a,o,s,l,c){for(var u=t.indexArray,f=t.layoutVertexArray,h=t.dynamicLayoutVertexArray,p=t.segments.prepareSegment(4*e.length,t.layoutVertexArray,t.indexArray),d=this.glyphOffsetArray.length,g=p.vertexLength,v=0,m=e;v<m.length;v+=1){var y=m[v],x=y.tl,b=y.tr,_=y.bl,w=y.br,k=y.tex,M=p.vertexLength,A=y.glyphOffset[1];ja(f,s.x,s.y,x.x,A+x.y,k.x,k.y,r),ja(f,s.x,s.y,b.x,A+b.y,k.x+k.w,k.y,r),ja(f,s.x,s.y,_.x,A+_.y,k.x,k.y+k.h,r),ja(f,s.x,s.y,w.x,A+w.y,k.x+k.w,k.y+k.h,r),Va(h,s,0),u.emplaceBack(M,M+1,M+2),u.emplaceBack(M+1,M+2,M+3),p.vertexLength+=4,p.primitiveLength+=2,this.glyphOffsetArray.emplaceBack(y.glyphOffset[0])}t.placedSymbolArray.emplaceBack(s.x,s.y,d,this.glyphOffsetArray.length-d,g,l,c,s.segment,r?r[0]:0,r?r[1]:0,n[0],n[1],o,!1),t.programConfigurations.populatePaintArrays(t.layoutVertexArray.length,a)},Ha.prototype._addCollisionDebugVertex=function(t,e,r,n,i){return e.emplaceBack(0,0),t.emplaceBack(r.x,r.y,n.x,n.y,Math.round(i.x),Math.round(i.y))},Ha.prototype.addCollisionDebugVertices=function(t,e,r,n,i,a,o,s){var c=i.segments.prepareSegment(4,i.layoutVertexArray,i.indexArray),u=c.vertexLength,f=i.layoutVertexArray,h=i.collisionVertexArray;if(this._addCollisionDebugVertex(f,h,a,o.anchor,new l(t,e)),this._addCollisionDebugVertex(f,h,a,o.anchor,new l(r,e)),this._addCollisionDebugVertex(f,h,a,o.anchor,new l(r,n)),this._addCollisionDebugVertex(f,h,a,o.anchor,new l(t,n)),c.vertexLength+=4,s){var p=i.indexArray;p.emplaceBack(u,u+1,u+2),p.emplaceBack(u,u+2,u+3),c.primitiveLength+=2}else{var d=i.indexArray;d.emplaceBack(u,u+1),d.emplaceBack(u+1,u+2),d.emplaceBack(u+2,u+3),d.emplaceBack(u+3,u),c.primitiveLength+=4}},Ha.prototype.generateCollisionDebugBuffers=function(){for(var t=0,e=this.symbolInstances;t<e.length;t+=1){var r=e[t];r.textCollisionFeature={boxStartIndex:r.textBoxStartIndex,boxEndIndex:r.textBoxEndIndex},r.iconCollisionFeature={boxStartIndex:r.iconBoxStartIndex,boxEndIndex:r.iconBoxEndIndex};for(var n=0;n<2;n++){var i=r[0===n?\"textCollisionFeature\":\"iconCollisionFeature\"];if(i)for(var a=i.boxStartIndex;a<i.boxEndIndex;a++){var o=this.collisionBoxArray.get(a),s=o.x1,l=o.y1,c=o.x2,u=o.y2,f=o.radius>0;this.addCollisionDebugVertices(s,l,c,u,f?this.collisionCircle:this.collisionBox,o.anchorPoint,r,f)}}}},Ha.prototype.deserializeCollisionBoxes=function(t,e,r,n,i){for(var a={},o=e;o<r;o++){var s=t.get(o);if(0===s.radius){a.textBox={x1:s.x1,y1:s.y1,x2:s.x2,y2:s.y2,anchorPointX:s.anchorPointX,anchorPointY:s.anchorPointY},a.textFeatureIndex=s.featureIndex;break}a.textCircles||(a.textCircles=[],a.textFeatureIndex=s.featureIndex),a.textCircles.push(s.anchorPointX,s.anchorPointY,s.radius,s.signedDistanceFromAnchor,1)}for(var l=n;l<i;l++){var c=t.get(l);if(0===c.radius){a.iconBox={x1:c.x1,y1:c.y1,x2:c.x2,y2:c.y2,anchorPointX:c.anchorPointX,anchorPointY:c.anchorPointY},a.iconFeatureIndex=c.featureIndex;break}}return a},Ha.prototype.hasTextData=function(){return this.text.segments.get().length>0},Ha.prototype.hasIconData=function(){return this.icon.segments.get().length>0},Ha.prototype.hasCollisionBoxData=function(){return this.collisionBox.segments.get().length>0},Ha.prototype.hasCollisionCircleData=function(){return this.collisionCircle.segments.get().length>0},Ha.prototype.sortFeatures=function(t){var e=this;if(this.sortFeaturesByY&&this.sortedAngle!==t&&(this.sortedAngle=t,!(this.text.segments.get().length>1||this.icon.segments.get().length>1))){for(var r=[],n=0;n<this.symbolInstances.length;n++)r.push(n);var i=Math.sin(t),a=Math.cos(t);r.sort(function(t,r){var n=e.symbolInstances[t],o=e.symbolInstances[r];return(i*n.anchor.x+a*n.anchor.y|0)-(i*o.anchor.x+a*o.anchor.y|0)||o.featureIndex-n.featureIndex}),this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var o=0,s=r;o<s.length;o+=1){var l=s[o],c=e.symbolInstances[l];e.featureSortOrder.push(c.featureIndex);for(var u=0,f=c.placedTextSymbolIndices;u<f.length;u+=1)for(var h=f[u],p=e.text.placedSymbolArray.get(h),d=p.vertexStartIndex+4*p.numGlyphs,g=p.vertexStartIndex;g<d;g+=4)e.text.indexArray.emplaceBack(g,g+1,g+2),e.text.indexArray.emplaceBack(g+1,g+2,g+3);var v=e.icon.placedSymbolArray.get(l);if(v.numGlyphs){var m=v.vertexStartIndex;e.icon.indexArray.emplaceBack(m,m+1,m+2),e.icon.indexArray.emplaceBack(m+1,m+2,m+3)}}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}},pr(\"SymbolBucket\",Ha,{omit:[\"layers\",\"collisionBoxArray\",\"features\",\"compareText\"],shallow:[\"symbolInstances\"]}),Ha.MAX_GLYPHS=65535,Ha.addDynamicAttributes=Va;var Ga=new qr({\"symbol-placement\":new Nr(I.layout_symbol[\"symbol-placement\"]),\"symbol-spacing\":new Nr(I.layout_symbol[\"symbol-spacing\"]),\"symbol-avoid-edges\":new Nr(I.layout_symbol[\"symbol-avoid-edges\"]),\"icon-allow-overlap\":new Nr(I.layout_symbol[\"icon-allow-overlap\"]),\"icon-ignore-placement\":new Nr(I.layout_symbol[\"icon-ignore-placement\"]),\"icon-optional\":new Nr(I.layout_symbol[\"icon-optional\"]),\"icon-rotation-alignment\":new Nr(I.layout_symbol[\"icon-rotation-alignment\"]),\"icon-size\":new jr(I.layout_symbol[\"icon-size\"]),\"icon-text-fit\":new Nr(I.layout_symbol[\"icon-text-fit\"]),\"icon-text-fit-padding\":new Nr(I.layout_symbol[\"icon-text-fit-padding\"]),\"icon-image\":new jr(I.layout_symbol[\"icon-image\"]),\"icon-rotate\":new jr(I.layout_symbol[\"icon-rotate\"]),\"icon-padding\":new Nr(I.layout_symbol[\"icon-padding\"]),\"icon-keep-upright\":new Nr(I.layout_symbol[\"icon-keep-upright\"]),\"icon-offset\":new jr(I.layout_symbol[\"icon-offset\"]),\"icon-anchor\":new jr(I.layout_symbol[\"icon-anchor\"]),\"icon-pitch-alignment\":new Nr(I.layout_symbol[\"icon-pitch-alignment\"]),\"text-pitch-alignment\":new Nr(I.layout_symbol[\"text-pitch-alignment\"]),\"text-rotation-alignment\":new Nr(I.layout_symbol[\"text-rotation-alignment\"]),\"text-field\":new jr(I.layout_symbol[\"text-field\"]),\"text-font\":new jr(I.layout_symbol[\"text-font\"]),\"text-size\":new jr(I.layout_symbol[\"text-size\"]),\"text-max-width\":new jr(I.layout_symbol[\"text-max-width\"]),\"text-line-height\":new Nr(I.layout_symbol[\"text-line-height\"]),\"text-letter-spacing\":new jr(I.layout_symbol[\"text-letter-spacing\"]),\"text-justify\":new jr(I.layout_symbol[\"text-justify\"]),\"text-anchor\":new jr(I.layout_symbol[\"text-anchor\"]),\"text-max-angle\":new Nr(I.layout_symbol[\"text-max-angle\"]),\"text-rotate\":new jr(I.layout_symbol[\"text-rotate\"]),\"text-padding\":new Nr(I.layout_symbol[\"text-padding\"]),\"text-keep-upright\":new Nr(I.layout_symbol[\"text-keep-upright\"]),\"text-transform\":new jr(I.layout_symbol[\"text-transform\"]),\"text-offset\":new jr(I.layout_symbol[\"text-offset\"]),\"text-allow-overlap\":new Nr(I.layout_symbol[\"text-allow-overlap\"]),\"text-ignore-placement\":new Nr(I.layout_symbol[\"text-ignore-placement\"]),\"text-optional\":new Nr(I.layout_symbol[\"text-optional\"])}),Wa={paint:new qr({\"icon-opacity\":new jr(I.paint_symbol[\"icon-opacity\"]),\"icon-color\":new jr(I.paint_symbol[\"icon-color\"]),\"icon-halo-color\":new jr(I.paint_symbol[\"icon-halo-color\"]),\"icon-halo-width\":new jr(I.paint_symbol[\"icon-halo-width\"]),\"icon-halo-blur\":new jr(I.paint_symbol[\"icon-halo-blur\"]),\"icon-translate\":new Nr(I.paint_symbol[\"icon-translate\"]),\"icon-translate-anchor\":new Nr(I.paint_symbol[\"icon-translate-anchor\"]),\"text-opacity\":new jr(I.paint_symbol[\"text-opacity\"]),\"text-color\":new jr(I.paint_symbol[\"text-color\"]),\"text-halo-color\":new jr(I.paint_symbol[\"text-halo-color\"]),\"text-halo-width\":new jr(I.paint_symbol[\"text-halo-width\"]),\"text-halo-blur\":new jr(I.paint_symbol[\"text-halo-blur\"]),\"text-translate\":new Nr(I.paint_symbol[\"text-translate\"]),\"text-translate-anchor\":new Nr(I.paint_symbol[\"text-translate-anchor\"])}),layout:Ga},Ya=function(t){function e(e){t.call(this,e,Wa)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.recalculate=function(e){t.prototype.recalculate.call(this,e),\"auto\"===this.layout.get(\"icon-rotation-alignment\")&&(\"line\"===this.layout.get(\"symbol-placement\")?this.layout._values[\"icon-rotation-alignment\"]=\"map\":this.layout._values[\"icon-rotation-alignment\"]=\"viewport\"),\"auto\"===this.layout.get(\"text-rotation-alignment\")&&(\"line\"===this.layout.get(\"symbol-placement\")?this.layout._values[\"text-rotation-alignment\"]=\"map\":this.layout._values[\"text-rotation-alignment\"]=\"viewport\"),\"auto\"===this.layout.get(\"text-pitch-alignment\")&&(this.layout._values[\"text-pitch-alignment\"]=this.layout.get(\"text-rotation-alignment\")),\"auto\"===this.layout.get(\"icon-pitch-alignment\")&&(this.layout._values[\"icon-pitch-alignment\"]=this.layout.get(\"icon-rotation-alignment\"))},e.prototype.getValueAndResolveTokens=function(t,e){var r,n=this.layout.get(t).evaluate(e),i=this._unevaluatedLayout._values[t];return i.isDataDriven()||_e(i.value)?n:(r=e.properties,n.replace(/{([^{}]+)}/g,function(t,e){return e in r?String(r[e]):\"\"}))},e.prototype.createBucket=function(t){return new Ha(t)},e.prototype.queryRadius=function(){return 0},e.prototype.queryIntersectsFeature=function(){return!1},e}(Hr),Xa={paint:new qr({\"background-color\":new Nr(I.paint_background[\"background-color\"]),\"background-pattern\":new Vr(I.paint_background[\"background-pattern\"]),\"background-opacity\":new Nr(I.paint_background[\"background-opacity\"])})},Za=function(t){function e(e){t.call(this,e,Xa)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Hr),$a={paint:new qr({\"raster-opacity\":new Nr(I.paint_raster[\"raster-opacity\"]),\"raster-hue-rotate\":new Nr(I.paint_raster[\"raster-hue-rotate\"]),\"raster-brightness-min\":new Nr(I.paint_raster[\"raster-brightness-min\"]),\"raster-brightness-max\":new Nr(I.paint_raster[\"raster-brightness-max\"]),\"raster-saturation\":new Nr(I.paint_raster[\"raster-saturation\"]),\"raster-contrast\":new Nr(I.paint_raster[\"raster-contrast\"]),\"raster-fade-duration\":new Nr(I.paint_raster[\"raster-fade-duration\"])})},Ja={circle:ni,heatmap:pi,hillshade:gi,fill:Ji,\"fill-extrusion\":aa,line:Sa,symbol:Ya,background:Za,raster:function(t){function e(e){t.call(this,e,$a)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Hr)},Ka=i(function(t,e){t.exports=function(){function t(t,e,r){r=r||{},this.w=t||64,this.h=e||64,this.autoResize=!!r.autoResize,this.shelves=[],this.freebins=[],this.stats={},this.bins={},this.maxId=0}function e(t,e,r){this.x=0,this.y=t,this.w=this.free=e,this.h=r}return t.prototype.pack=function(t,e){t=[].concat(t),e=e||{};for(var r,n,i,a,o=[],s=0;s<t.length;s++)if(r=t[s].w||t[s].width,n=t[s].h||t[s].height,i=t[s].id,r&&n){if(!(a=this.packOne(r,n,i)))continue;e.inPlace&&(t[s].x=a.x,t[s].y=a.y,t[s].id=a.id),o.push(a)}return this.shrink(),o},t.prototype.packOne=function(t,r,n){var i,a,o,s,l,c,u,f,h={freebin:-1,shelf:-1,waste:1/0},p=0;if(\"string\"==typeof n||\"number\"==typeof n){if(i=this.getBin(n))return this.ref(i),i;\"number\"==typeof n&&(this.maxId=Math.max(n,this.maxId))}else n=++this.maxId;for(s=0;s<this.freebins.length;s++){if(r===(i=this.freebins[s]).maxh&&t===i.maxw)return this.allocFreebin(s,t,r,n);r>i.maxh||t>i.maxw||r<=i.maxh&&t<=i.maxw&&(o=i.maxw*i.maxh-t*r)<h.waste&&(h.waste=o,h.freebin=s)}for(s=0;s<this.shelves.length;s++)if(p+=(a=this.shelves[s]).h,!(t>a.free)){if(r===a.h)return this.allocShelf(s,t,r,n);r>a.h||r<a.h&&(o=(a.h-r)*t)<h.waste&&(h.freebin=-1,h.waste=o,h.shelf=s)}return-1!==h.freebin?this.allocFreebin(h.freebin,t,r,n):-1!==h.shelf?this.allocShelf(h.shelf,t,r,n):r<=this.h-p&&t<=this.w?(a=new e(p,this.w,r),this.allocShelf(this.shelves.push(a)-1,t,r,n)):this.autoResize?(l=c=this.h,((u=f=this.w)<=l||t>u)&&(f=2*Math.max(t,u)),(l<u||r>l)&&(c=2*Math.max(r,l)),this.resize(f,c),this.packOne(t,r,n)):null},t.prototype.allocFreebin=function(t,e,r,n){var i=this.freebins.splice(t,1)[0];return i.id=n,i.w=e,i.h=r,i.refcount=0,this.bins[n]=i,this.ref(i),i},t.prototype.allocShelf=function(t,e,r,n){var i=this.shelves[t].alloc(e,r,n);return this.bins[n]=i,this.ref(i),i},t.prototype.shrink=function(){if(this.shelves.length>0){for(var t=0,e=0,r=0;r<this.shelves.length;r++){var n=this.shelves[r];e+=n.h,t=Math.max(n.w-n.free,t)}this.resize(t,e)}},t.prototype.getBin=function(t){return this.bins[t]},t.prototype.ref=function(t){if(1==++t.refcount){var e=t.h;this.stats[e]=1+(0|this.stats[e])}return t.refcount},t.prototype.unref=function(t){return 0===t.refcount?0:(0==--t.refcount&&(this.stats[t.h]--,delete this.bins[t.id],this.freebins.push(t)),t.refcount)},t.prototype.clear=function(){this.shelves=[],this.freebins=[],this.stats={},this.bins={},this.maxId=0},t.prototype.resize=function(t,e){this.w=t,this.h=e;for(var r=0;r<this.shelves.length;r++)this.shelves[r].resize(t);return!0},e.prototype.alloc=function(t,e,r){if(t>this.free||e>this.h)return null;var n=this.x;return this.x+=t,this.free-=t,new function(t,e,r,n,i,a,o){this.id=t,this.x=e,this.y=r,this.w=n,this.h=i,this.maxw=a||n,this.maxh=o||i,this.refcount=0}(r,n,this.y,t,e,t,this.h)},e.prototype.resize=function(t){return this.free+=t-this.w,this.w=t,!0},t}()}),Qa=function(t,e){var r=e.pixelRatio;this.paddedRect=t,this.pixelRatio=r},to={tl:{configurable:!0},br:{configurable:!0},displaySize:{configurable:!0}};to.tl.get=function(){return[this.paddedRect.x+1,this.paddedRect.y+1]},to.br.get=function(){return[this.paddedRect.x+this.paddedRect.w-1,this.paddedRect.y+this.paddedRect.h-1]},to.displaySize.get=function(){return[(this.paddedRect.w-2)/this.pixelRatio,(this.paddedRect.h-2)/this.pixelRatio]},Object.defineProperties(Qa.prototype,to);var eo=function(t){var e=new ui({width:0,height:0}),r={},n=new Ka(0,0,{autoResize:!0});for(var i in t){var a=t[i],o=n.packOne(a.data.width+2,a.data.height+2);e.resize({width:n.w,height:n.h}),ui.copy(a.data,e,{x:0,y:0},{x:o.x+1,y:o.y+1},a.data),r[i]=new Qa(o,a)}n.shrink(),e.resize({width:n.w,height:n.h}),this.image=e,this.positions=r};pr(\"ImagePosition\",Qa),pr(\"ImageAtlas\",eo);var ro=function(t,e,r,n,i){var a,o,s=8*i-n-1,l=(1<<s)-1,c=l>>1,u=-7,f=r?i-1:0,h=r?-1:1,p=t[e+f];for(f+=h,a=p&(1<<-u)-1,p>>=-u,u+=s;u>0;a=256*a+t[e+f],f+=h,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=n;u>0;o=256*o+t[e+f],f+=h,u-=8);if(0===a)a=1-c;else{if(a===l)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,n),a-=c}return(p?-1:1)*o*Math.pow(2,a-n)},no=function(t,e,r,n,i,a){var o,s,l,c=8*a-i-1,u=(1<<c)-1,f=u>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:a-1,d=n?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,o=u):(o=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-o))<1&&(o--,l*=2),(e+=o+f>=1?h/l:h*Math.pow(2,1-f))*l>=2&&(o++,l/=2),o+f>=u?(s=0,o=u):o+f>=1?(s=(e*l-1)*Math.pow(2,i),o+=f):(s=e*Math.pow(2,f-1)*Math.pow(2,i),o=0));i>=8;t[r+p]=255&s,p+=d,s/=256,i-=8);for(o=o<<i|s,c+=i;c>0;t[r+p]=255&o,p+=d,o/=256,c-=8);t[r+p-d]|=128*g},io=ao;function ao(t){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(t)?t:new Uint8Array(t||0),this.pos=0,this.type=0,this.length=this.buf.length}function oo(t){return t.type===ao.Bytes?t.readVarint()+t.pos:t.pos+1}function so(t,e,r){return r?4294967296*e+(t>>>0):4294967296*(e>>>0)+(t>>>0)}function lo(t,e,r){var n=e<=16383?1:e<=2097151?2:e<=268435455?3:Math.ceil(Math.log(e)/(7*Math.LN2));r.realloc(n);for(var i=r.pos-1;i>=t;i--)r.buf[i+n]=r.buf[i]}function co(t,e){for(var r=0;r<t.length;r++)e.writeVarint(t[r])}function uo(t,e){for(var r=0;r<t.length;r++)e.writeSVarint(t[r])}function fo(t,e){for(var r=0;r<t.length;r++)e.writeFloat(t[r])}function ho(t,e){for(var r=0;r<t.length;r++)e.writeDouble(t[r])}function po(t,e){for(var r=0;r<t.length;r++)e.writeBoolean(t[r])}function go(t,e){for(var r=0;r<t.length;r++)e.writeFixed32(t[r])}function vo(t,e){for(var r=0;r<t.length;r++)e.writeSFixed32(t[r])}function mo(t,e){for(var r=0;r<t.length;r++)e.writeFixed64(t[r])}function yo(t,e){for(var r=0;r<t.length;r++)e.writeSFixed64(t[r])}function xo(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16)+16777216*t[e+3]}function bo(t,e,r){t[r]=e,t[r+1]=e>>>8,t[r+2]=e>>>16,t[r+3]=e>>>24}function _o(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16)+(t[e+3]<<24)}ao.Varint=0,ao.Fixed64=1,ao.Bytes=2,ao.Fixed32=5,ao.prototype={destroy:function(){this.buf=null},readFields:function(t,e,r){for(r=r||this.length;this.pos<r;){var n=this.readVarint(),i=n>>3,a=this.pos;this.type=7&n,t(i,e,this),this.pos===a&&this.skip(n)}return e},readMessage:function(t,e){return this.readFields(t,e,this.readVarint()+this.pos)},readFixed32:function(){var t=xo(this.buf,this.pos);return this.pos+=4,t},readSFixed32:function(){var t=_o(this.buf,this.pos);return this.pos+=4,t},readFixed64:function(){var t=xo(this.buf,this.pos)+4294967296*xo(this.buf,this.pos+4);return this.pos+=8,t},readSFixed64:function(){var t=xo(this.buf,this.pos)+4294967296*_o(this.buf,this.pos+4);return this.pos+=8,t},readFloat:function(){var t=ro(this.buf,this.pos,!0,23,4);return this.pos+=4,t},readDouble:function(){var t=ro(this.buf,this.pos,!0,52,8);return this.pos+=8,t},readVarint:function(t){var e,r,n=this.buf;return e=127&(r=n[this.pos++]),r<128?e:(e|=(127&(r=n[this.pos++]))<<7,r<128?e:(e|=(127&(r=n[this.pos++]))<<14,r<128?e:(e|=(127&(r=n[this.pos++]))<<21,r<128?e:function(t,e,r){var n,i,a=r.buf;if(n=(112&(i=a[r.pos++]))>>4,i<128)return so(t,n,e);if(n|=(127&(i=a[r.pos++]))<<3,i<128)return so(t,n,e);if(n|=(127&(i=a[r.pos++]))<<10,i<128)return so(t,n,e);if(n|=(127&(i=a[r.pos++]))<<17,i<128)return so(t,n,e);if(n|=(127&(i=a[r.pos++]))<<24,i<128)return so(t,n,e);if(n|=(1&(i=a[r.pos++]))<<31,i<128)return so(t,n,e);throw new Error(\"Expected varint not more than 10 bytes\")}(e|=(15&(r=n[this.pos]))<<28,t,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var t=this.readVarint();return t%2==1?(t+1)/-2:t/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var t=this.readVarint()+this.pos,e=function(t,e,r){for(var n=\"\",i=e;i<r;){var a,o,s,l=t[i],c=null,u=l>239?4:l>223?3:l>191?2:1;if(i+u>r)break;1===u?l<128&&(c=l):2===u?128==(192&(a=t[i+1]))&&(c=(31&l)<<6|63&a)<=127&&(c=null):3===u?(a=t[i+1],o=t[i+2],128==(192&a)&&128==(192&o)&&((c=(15&l)<<12|(63&a)<<6|63&o)<=2047||c>=55296&&c<=57343)&&(c=null)):4===u&&(a=t[i+1],o=t[i+2],s=t[i+3],128==(192&a)&&128==(192&o)&&128==(192&s)&&((c=(15&l)<<18|(63&a)<<12|(63&o)<<6|63&s)<=65535||c>=1114112)&&(c=null)),null===c?(c=65533,u=1):c>65535&&(c-=65536,n+=String.fromCharCode(c>>>10&1023|55296),c=56320|1023&c),n+=String.fromCharCode(c),i+=u}return n}(this.buf,this.pos,t);return this.pos=t,e},readBytes:function(){var t=this.readVarint()+this.pos,e=this.buf.subarray(this.pos,t);return this.pos=t,e},readPackedVarint:function(t,e){var r=oo(this);for(t=t||[];this.pos<r;)t.push(this.readVarint(e));return t},readPackedSVarint:function(t){var e=oo(this);for(t=t||[];this.pos<e;)t.push(this.readSVarint());return t},readPackedBoolean:function(t){var e=oo(this);for(t=t||[];this.pos<e;)t.push(this.readBoolean());return t},readPackedFloat:function(t){var e=oo(this);for(t=t||[];this.pos<e;)t.push(this.readFloat());return t},readPackedDouble:function(t){var e=oo(this);for(t=t||[];this.pos<e;)t.push(this.readDouble());return t},readPackedFixed32:function(t){var e=oo(this);for(t=t||[];this.pos<e;)t.push(this.readFixed32());return t},readPackedSFixed32:function(t){var e=oo(this);for(t=t||[];this.pos<e;)t.push(this.readSFixed32());return t},readPackedFixed64:function(t){var e=oo(this);for(t=t||[];this.pos<e;)t.push(this.readFixed64());return t},readPackedSFixed64:function(t){var e=oo(this);for(t=t||[];this.pos<e;)t.push(this.readSFixed64());return t},skip:function(t){var e=7&t;if(e===ao.Varint)for(;this.buf[this.pos++]>127;);else if(e===ao.Bytes)this.pos=this.readVarint()+this.pos;else if(e===ao.Fixed32)this.pos+=4;else{if(e!==ao.Fixed64)throw new Error(\"Unimplemented type: \"+e);this.pos+=8}},writeTag:function(t,e){this.writeVarint(t<<3|e)},realloc:function(t){for(var e=this.length||16;e<this.pos+t;)e*=2;if(e!==this.length){var r=new Uint8Array(e);r.set(this.buf),this.buf=r,this.length=e}},finish:function(){return this.length=this.pos,this.pos=0,this.buf.subarray(0,this.length)},writeFixed32:function(t){this.realloc(4),bo(this.buf,t,this.pos),this.pos+=4},writeSFixed32:function(t){this.realloc(4),bo(this.buf,t,this.pos),this.pos+=4},writeFixed64:function(t){this.realloc(8),bo(this.buf,-1&t,this.pos),bo(this.buf,Math.floor(t*(1/4294967296)),this.pos+4),this.pos+=8},writeSFixed64:function(t){this.realloc(8),bo(this.buf,-1&t,this.pos),bo(this.buf,Math.floor(t*(1/4294967296)),this.pos+4),this.pos+=8},writeVarint:function(t){(t=+t||0)>268435455||t<0?function(t,e){var r,n;if(t>=0?(r=t%4294967296|0,n=t/4294967296|0):(n=~(-t/4294967296),4294967295^(r=~(-t%4294967296))?r=r+1|0:(r=0,n=n+1|0)),t>=0x10000000000000000||t<-0x10000000000000000)throw new Error(\"Given varint doesn't fit into 10 bytes\");e.realloc(10),function(t,e,r){r.buf[r.pos++]=127&t|128,t>>>=7,r.buf[r.pos++]=127&t|128,t>>>=7,r.buf[r.pos++]=127&t|128,t>>>=7,r.buf[r.pos++]=127&t|128,t>>>=7,r.buf[r.pos]=127&t}(r,0,e),function(t,e){var r=(7&t)<<4;e.buf[e.pos++]|=r|((t>>>=3)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t)))))}(n,e)}(t,this):(this.realloc(4),this.buf[this.pos++]=127&t|(t>127?128:0),t<=127||(this.buf[this.pos++]=127&(t>>>=7)|(t>127?128:0),t<=127||(this.buf[this.pos++]=127&(t>>>=7)|(t>127?128:0),t<=127||(this.buf[this.pos++]=t>>>7&127))))},writeSVarint:function(t){this.writeVarint(t<0?2*-t-1:2*t)},writeBoolean:function(t){this.writeVarint(Boolean(t))},writeString:function(t){t=String(t),this.realloc(4*t.length),this.pos++;var e=this.pos;this.pos=function(t,e,r){for(var n,i,a=0;a<e.length;a++){if((n=e.charCodeAt(a))>55295&&n<57344){if(!i){n>56319||a+1===e.length?(t[r++]=239,t[r++]=191,t[r++]=189):i=n;continue}if(n<56320){t[r++]=239,t[r++]=191,t[r++]=189,i=n;continue}n=i-55296<<10|n-56320|65536,i=null}else i&&(t[r++]=239,t[r++]=191,t[r++]=189,i=null);n<128?t[r++]=n:(n<2048?t[r++]=n>>6|192:(n<65536?t[r++]=n>>12|224:(t[r++]=n>>18|240,t[r++]=n>>12&63|128),t[r++]=n>>6&63|128),t[r++]=63&n|128)}return r}(this.buf,t,this.pos);var r=this.pos-e;r>=128&&lo(e,r,this),this.pos=e-1,this.writeVarint(r),this.pos+=r},writeFloat:function(t){this.realloc(4),no(this.buf,t,this.pos,!0,23,4),this.pos+=4},writeDouble:function(t){this.realloc(8),no(this.buf,t,this.pos,!0,52,8),this.pos+=8},writeBytes:function(t){var e=t.length;this.writeVarint(e),this.realloc(e);for(var r=0;r<e;r++)this.buf[this.pos++]=t[r]},writeRawMessage:function(t,e){this.pos++;var r=this.pos;t(e,this);var n=this.pos-r;n>=128&&lo(r,n,this),this.pos=r-1,this.writeVarint(n),this.pos+=n},writeMessage:function(t,e,r){this.writeTag(t,ao.Bytes),this.writeRawMessage(e,r)},writePackedVarint:function(t,e){this.writeMessage(t,co,e)},writePackedSVarint:function(t,e){this.writeMessage(t,uo,e)},writePackedBoolean:function(t,e){this.writeMessage(t,po,e)},writePackedFloat:function(t,e){this.writeMessage(t,fo,e)},writePackedDouble:function(t,e){this.writeMessage(t,ho,e)},writePackedFixed32:function(t,e){this.writeMessage(t,go,e)},writePackedSFixed32:function(t,e){this.writeMessage(t,vo,e)},writePackedFixed64:function(t,e){this.writeMessage(t,mo,e)},writePackedSFixed64:function(t,e){this.writeMessage(t,yo,e)},writeBytesField:function(t,e){this.writeTag(t,ao.Bytes),this.writeBytes(e)},writeFixed32Field:function(t,e){this.writeTag(t,ao.Fixed32),this.writeFixed32(e)},writeSFixed32Field:function(t,e){this.writeTag(t,ao.Fixed32),this.writeSFixed32(e)},writeFixed64Field:function(t,e){this.writeTag(t,ao.Fixed64),this.writeFixed64(e)},writeSFixed64Field:function(t,e){this.writeTag(t,ao.Fixed64),this.writeSFixed64(e)},writeVarintField:function(t,e){this.writeTag(t,ao.Varint),this.writeVarint(e)},writeSVarintField:function(t,e){this.writeTag(t,ao.Varint),this.writeSVarint(e)},writeStringField:function(t,e){this.writeTag(t,ao.Bytes),this.writeString(e)},writeFloatField:function(t,e){this.writeTag(t,ao.Fixed32),this.writeFloat(e)},writeDoubleField:function(t,e){this.writeTag(t,ao.Fixed64),this.writeDouble(e)},writeBooleanField:function(t,e){this.writeVarintField(t,Boolean(e))}};var wo=3;function ko(t,e,r){1===t&&r.readMessage(Mo,e)}function Mo(t,e,r){if(3===t){var n=r.readMessage(Ao,{}),i=n.id,a=n.bitmap,o=n.width,s=n.height,l=n.left,c=n.top,u=n.advance;e.push({id:i,bitmap:new ci({width:o+2*wo,height:s+2*wo},a),metrics:{width:o,height:s,left:l,top:c,advance:u}})}}function Ao(t,e,r){1===t?e.id=r.readVarint():2===t?e.bitmap=r.readBytes():3===t?e.width=r.readVarint():4===t?e.height=r.readVarint():5===t?e.left=r.readSVarint():6===t?e.top=r.readSVarint():7===t&&(e.advance=r.readVarint())}var To=wo,So=function(t,e,r){this.target=t,this.parent=e,this.mapId=r,this.callbacks={},this.callbackID=0,g([\"receive\"],this),this.target.addEventListener(\"message\",this.receive,!1)};So.prototype.send=function(t,e,r,n){var i=r?this.mapId+\":\"+this.callbackID++:null;r&&(this.callbacks[i]=r);var a=[];this.target.postMessage({targetMapId:n,sourceMapId:this.mapId,type:t,id:String(i),data:gr(e,a)},a)},So.prototype.receive=function(t){var e,r=this,n=t.data,i=n.id;if(!n.targetMapId||this.mapId===n.targetMapId){var a=function(t,e){var n=[];r.target.postMessage({sourceMapId:r.mapId,type:\"<response>\",id:String(i),error:t?gr(t):null,data:gr(e,n)},n)};if(\"<response>\"===n.type)e=this.callbacks[n.id],delete this.callbacks[n.id],e&&n.error?e(vr(n.error)):e&&e(null,vr(n.data));else if(void 0!==n.id&&this.parent[n.type])this.parent[n.type](n.sourceMapId,vr(n.data),a);else if(void 0!==n.id&&this.parent.getWorkerSource){var o=n.type.split(\".\");this.parent.getWorkerSource(n.sourceMapId,o[0],o[1])[o[2]](vr(n.data),a)}else this.parent[n.type](vr(n.data))}},So.prototype.remove=function(){this.target.removeEventListener(\"message\",this.receive,!1)};var Eo=n(i(function(t,e){!function(t){function e(t,e,n){var i=r(256*t,256*(e=Math.pow(2,n)-e-1),n),a=r(256*(t+1),256*(e+1),n);return i[0]+\",\"+i[1]+\",\"+a[0]+\",\"+a[1]}function r(t,e,r){var n=2*Math.PI*6378137/256/Math.pow(2,r);return[t*n-2*Math.PI*6378137/2,e*n-2*Math.PI*6378137/2]}t.getURL=function(t,r,n,i,a,o){return o=o||{},t+\"?\"+[\"bbox=\"+e(n,i,a),\"format=\"+(o.format||\"image/png\"),\"service=\"+(o.service||\"WMS\"),\"version=\"+(o.version||\"1.1.1\"),\"request=\"+(o.request||\"GetMap\"),\"srs=\"+(o.srs||\"EPSG:3857\"),\"width=\"+(o.width||256),\"height=\"+(o.height||256),\"layers=\"+r].join(\"&\")},t.getTileBBox=e,t.getMercCoords=r,Object.defineProperty(t,\"__esModule\",{value:!0})}(e)})),Co=function(t,e,r){this.z=t,this.x=e,this.y=r,this.key=Oo(0,t,e,r)};Co.prototype.equals=function(t){return this.z===t.z&&this.x===t.x&&this.y===t.y},Co.prototype.url=function(t,e){var r=Eo.getTileBBox(this.x,this.y,this.z),n=function(t,e,r){for(var n,i=\"\",a=t;a>0;a--)i+=(e&(n=1<<a-1)?1:0)+(r&n?2:0);return i}(this.z,this.x,this.y);return t[(this.x+this.y)%t.length].replace(\"{prefix}\",(this.x%16).toString(16)+(this.y%16).toString(16)).replace(\"{z}\",String(this.z)).replace(\"{x}\",String(this.x)).replace(\"{y}\",String(\"tms\"===e?Math.pow(2,this.z)-this.y-1:this.y)).replace(\"{quadkey}\",n).replace(\"{bbox-epsg-3857}\",r)};var Lo=function(t,e){this.wrap=t,this.canonical=e,this.key=Oo(t,e.z,e.x,e.y)},zo=function(t,e,r,n,i){this.overscaledZ=t,this.wrap=e,this.canonical=new Co(r,+n,+i),this.key=Oo(e,t,n,i)};function Oo(t,e,r,n){(t*=2)<0&&(t=-1*t-1);var i=1<<e;return 32*(i*i*t+i*n+r)+e}zo.prototype.equals=function(t){return this.overscaledZ===t.overscaledZ&&this.wrap===t.wrap&&this.canonical.equals(t.canonical)},zo.prototype.scaledTo=function(t){var e=this.canonical.z-t;return t>this.canonical.z?new zo(t,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new zo(t,this.wrap,t,this.canonical.x>>e,this.canonical.y>>e)},zo.prototype.isChildOf=function(t){var e=this.canonical.z-t.canonical.z;return 0===t.overscaledZ||t.overscaledZ<this.overscaledZ&&t.canonical.x===this.canonical.x>>e&&t.canonical.y===this.canonical.y>>e},zo.prototype.children=function(t){if(this.overscaledZ>=t)return[new zo(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var e=this.canonical.z+1,r=2*this.canonical.x,n=2*this.canonical.y;return[new zo(e,this.wrap,e,r,n),new zo(e,this.wrap,e,r+1,n),new zo(e,this.wrap,e,r,n+1),new zo(e,this.wrap,e,r+1,n+1)]},zo.prototype.isLessThan=function(t){return this.wrap<t.wrap||!(this.wrap>t.wrap)&&(this.overscaledZ<t.overscaledZ||!(this.overscaledZ>t.overscaledZ)&&(this.canonical.x<t.canonical.x||!(this.canonical.x>t.canonical.x)&&this.canonical.y<t.canonical.y))},zo.prototype.wrapped=function(){return new zo(this.overscaledZ,0,this.canonical.z,this.canonical.x,this.canonical.y)},zo.prototype.unwrapTo=function(t){return new zo(this.overscaledZ,t,this.canonical.z,this.canonical.x,this.canonical.y)},zo.prototype.overscaleFactor=function(){return Math.pow(2,this.overscaledZ-this.canonical.z)},zo.prototype.toUnwrapped=function(){return new Lo(this.wrap,this.canonical)},zo.prototype.toString=function(){return this.overscaledZ+\"/\"+this.canonical.x+\"/\"+this.canonical.y},zo.prototype.toCoordinate=function(){return new s(this.canonical.x+Math.pow(2,this.wrap),this.canonical.y,this.canonical.z)},pr(\"CanonicalTileID\",Co),pr(\"OverscaledTileID\",zo,{omit:[\"posMatrix\"]});var Io=function(t,e,r){if(t<=0)throw new RangeError(\"Level must have positive dimension\");this.dim=t,this.border=e,this.stride=this.dim+2*this.border,this.data=r||new Int32Array((this.dim+2*this.border)*(this.dim+2*this.border))};Io.prototype.set=function(t,e,r){this.data[this._idx(t,e)]=r+65536},Io.prototype.get=function(t,e){return this.data[this._idx(t,e)]-65536},Io.prototype._idx=function(t,e){if(t<-this.border||t>=this.dim+this.border||e<-this.border||e>=this.dim+this.border)throw new RangeError(\"out of range source coordinates for DEM data\");return(e+this.border)*this.stride+(t+this.border)},pr(\"Level\",Io);var Po=function(t,e,r){this.uid=t,this.scale=e||1,this.level=r||new Io(256,512),this.loaded=!!r};Po.prototype.loadFromImage=function(t,e){if(t.height!==t.width)throw new RangeError(\"DEM tiles must be square\");if(e&&\"mapbox\"!==e&&\"terrarium\"!==e)return _('\"'+e+'\" is not a valid encoding type. Valid types include \"mapbox\" and \"terrarium\".');var r=this.level=new Io(t.width,t.width/2),n=t.data;this._unpackData(r,n,e||\"mapbox\");for(var i=0;i<r.dim;i++)r.set(-1,i,r.get(0,i)),r.set(r.dim,i,r.get(r.dim-1,i)),r.set(i,-1,r.get(i,0)),r.set(i,r.dim,r.get(i,r.dim-1));r.set(-1,-1,r.get(0,0)),r.set(r.dim,-1,r.get(r.dim-1,0)),r.set(-1,r.dim,r.get(0,r.dim-1)),r.set(r.dim,r.dim,r.get(r.dim-1,r.dim-1)),this.loaded=!0},Po.prototype._unpackMapbox=function(t,e,r){return(256*t*256+256*e+r)/10-1e4},Po.prototype._unpackTerrarium=function(t,e,r){return 256*t+e+r/256-32768},Po.prototype._unpackData=function(t,e,r){for(var n={mapbox:this._unpackMapbox,terrarium:this._unpackTerrarium}[r],i=0;i<t.dim;i++)for(var a=0;a<t.dim;a++){var o=4*(i*t.dim+a);t.set(a,i,this.scale*n(e[o],e[o+1],e[o+2]))}},Po.prototype.getPixels=function(){return new ui({width:this.level.dim+2*this.level.border,height:this.level.dim+2*this.level.border},new Uint8Array(this.level.data.buffer))},Po.prototype.backfillBorder=function(t,e,r){var n=this.level,i=t.level;if(n.dim!==i.dim)throw new Error(\"level mismatch (dem dimension)\");var a=e*n.dim,o=e*n.dim+n.dim,s=r*n.dim,l=r*n.dim+n.dim;switch(e){case-1:a=o-1;break;case 1:o=a+1}switch(r){case-1:s=l-1;break;case 1:l=s+1}for(var c=h(a,-n.border,n.dim+n.border),u=h(o,-n.border,n.dim+n.border),f=h(s,-n.border,n.dim+n.border),p=h(l,-n.border,n.dim+n.border),d=-e*n.dim,g=-r*n.dim,v=f;v<p;v++)for(var m=c;m<u;m++)n.set(m,v,i.get(m+d,v+g))},pr(\"DEMData\",Po);var Do=function(t){this._stringToNumber={},this._numberToString=[];for(var e=0;e<t.length;e++){var r=t[e];this._stringToNumber[r]=e,this._numberToString[e]=r}};Do.prototype.encode=function(t){return this._stringToNumber[t]},Do.prototype.decode=function(t){return this._numberToString[t]};var Ro=function(t,e,r,n){this.type=\"Feature\",this._vectorTileFeature=t,t._z=e,t._x=r,t._y=n,this.properties=t.properties,null!=t.id&&(this.id=t.id)},Bo={geometry:{configurable:!0}};Bo.geometry.get=function(){return void 0===this._geometry&&(this._geometry=this._vectorTileFeature.toGeoJSON(this._vectorTileFeature._x,this._vectorTileFeature._y,this._vectorTileFeature._z).geometry),this._geometry},Bo.geometry.set=function(t){this._geometry=t},Ro.prototype.toJSON=function(){var t={geometry:this.geometry};for(var e in this)\"_geometry\"!==e&&\"_vectorTileFeature\"!==e&&(t[e]=this[e]);return t},Object.defineProperties(Ro.prototype,Bo);var Fo=function(t,e,r){this.tileID=t,this.x=t.canonical.x,this.y=t.canonical.y,this.z=t.canonical.z,this.grid=e||new lr(Dn,16,0),this.featureIndexArray=r||new Mn};function No(t,e){return e-t}Fo.prototype.insert=function(t,e,r,n,i){var a=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(r,n,i);for(var o=0;o<e.length;o++){for(var s=e[o],l=[1/0,1/0,-1/0,-1/0],c=0;c<s.length;c++){var u=s[c];l[0]=Math.min(l[0],u.x),l[1]=Math.min(l[1],u.y),l[2]=Math.max(l[2],u.x),l[3]=Math.max(l[3],u.y)}l[0]<Dn&&l[1]<Dn&&l[2]>=0&&l[3]>=0&&this.grid.insert(a,l[0],l[1],l[2],l[3])}},Fo.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new ga.VectorTile(new io(this.rawTileData)).layers,this.sourceLayerCoder=new Do(this.vtLayers?Object.keys(this.vtLayers).sort():[\"_geojsonTileLayer\"])),this.vtLayers},Fo.prototype.query=function(t,e){var r=this;this.loadVTLayers();for(var n=t.params||{},i=Dn/t.tileSize/t.scale,a=Re(n.filter),o=t.queryGeometry,s=t.queryPadding*i,l=1/0,c=1/0,u=-1/0,f=-1/0,h=0;h<o.length;h++)for(var p=o[h],d=0;d<p.length;d++){var g=p[d];l=Math.min(l,g.x),c=Math.min(c,g.y),u=Math.max(u,g.x),f=Math.max(f,g.y)}var v=this.grid.query(l-s,c-s,u+s,f+s);v.sort(No);for(var m,y={},x=function(s){var l=v[s];if(l!==m){m=l;var c=r.featureIndexArray.get(l),u=null;r.loadMatchingFeature(y,c.bucketIndex,c.sourceLayerIndex,c.featureIndex,a,n.layers,e,function(e,n){return u||(u=Bn(e)),n.queryIntersectsFeature(o,e,u,r.z,t.transform,i,t.posMatrix)})}},b=0;b<v.length;b++)x(b);return y},Fo.prototype.loadMatchingFeature=function(t,e,r,n,i,a,o,s){var l=this.bucketLayerIDs[e];if(!a||function(t,e){for(var r=0;r<t.length;r++)if(e.indexOf(t[r])>=0)return!0;return!1}(a,l)){var c=this.sourceLayerCoder.decode(r),u=this.vtLayers[c].feature(n);if(i(new Lr(this.tileID.overscaledZ),u))for(var f=0;f<l.length;f++){var h=l[f];if(!(a&&a.indexOf(h)<0)){var p=o[h];if(p&&(!s||s(u,p))){var d=new Ro(u,this.z,this.x,this.y);d.layer=p.serialize();var g=t[h];void 0===g&&(g=t[h]=[]),g.push({featureIndex:n,feature:d})}}}}},Fo.prototype.lookupSymbolFeatures=function(t,e,r,n,i,a){var o={};this.loadVTLayers();for(var s=Re(n),l=0,c=t;l<c.length;l+=1){var u=c[l];this.loadMatchingFeature(o,e,r,u,s,i,a)}return o},Fo.prototype.hasLayer=function(t){for(var e=0,r=this.bucketLayerIDs;e<r.length;e+=1)for(var n=0,i=r[e];n<i.length;n+=1)if(t===i[n])return!0;return!1},pr(\"FeatureIndex\",Fo,{omit:[\"rawTileData\",\"sourceLayerCoder\"]});var jo={horizontal:1,vertical:2,horizontalOnly:3},Vo={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},Uo={};function qo(t,e,r,n){var i=Math.pow(t-e,2);return n?t<e?i/2:2*i:i+Math.abs(r)*r}function Ho(t,e){var r=0;return 10===t&&(r-=1e4),40!==t&&65288!==t||(r+=50),41!==e&&65289!==e||(r+=50),r}function Go(t,e,r,n,i,a){for(var o=null,s=qo(e,r,i,a),l=0,c=n;l<c.length;l+=1){var u=c[l],f=qo(e-u.x,r,i,a)+u.badness;f<=s&&(o=u,s=f)}return{index:t,x:e,priorBreak:o,badness:s}}function Wo(t,e,r,n){if(!r)return[];if(!t)return[];for(var i,a=[],o=function(t,e,r,n){for(var i=0,a=0;a<t.length;a++){var o=n[t.charCodeAt(a)];o&&(i+=o.metrics.advance+e)}return i/Math.max(1,Math.ceil(i/r))}(t,e,r,n),s=0,l=0;l<t.length;l++){var c=t.charCodeAt(l),u=n[c];u&&!Vo[c]&&(s+=u.metrics.advance+e),l<t.length-1&&(Uo[c]||!((i=c)<11904)&&(yr[\"Bopomofo Extended\"](i)||yr.Bopomofo(i)||yr[\"CJK Compatibility Forms\"](i)||yr[\"CJK Compatibility Ideographs\"](i)||yr[\"CJK Compatibility\"](i)||yr[\"CJK Radicals Supplement\"](i)||yr[\"CJK Strokes\"](i)||yr[\"CJK Symbols and Punctuation\"](i)||yr[\"CJK Unified Ideographs Extension A\"](i)||yr[\"CJK Unified Ideographs\"](i)||yr[\"Enclosed CJK Letters and Months\"](i)||yr[\"Halfwidth and Fullwidth Forms\"](i)||yr.Hiragana(i)||yr[\"Ideographic Description Characters\"](i)||yr[\"Kangxi Radicals\"](i)||yr[\"Katakana Phonetic Extensions\"](i)||yr.Katakana(i)||yr[\"Vertical Forms\"](i)||yr[\"Yi Radicals\"](i)||yr[\"Yi Syllables\"](i)))&&a.push(Go(l+1,s,o,a,Ho(c,t.charCodeAt(l+1)),!1))}return function t(e){return e?t(e.priorBreak).concat(e.index):[]}(Go(t.length,s,o,a,0,!0))}function Yo(t){var e=.5,r=.5;switch(t){case\"right\":case\"top-right\":case\"bottom-right\":e=1;break;case\"left\":case\"top-left\":case\"bottom-left\":e=0}switch(t){case\"bottom\":case\"bottom-right\":case\"bottom-left\":r=1;break;case\"top\":case\"top-right\":case\"top-left\":r=0}return{horizontalAlign:e,verticalAlign:r}}function Xo(t,e,r,n,i){if(i){var a=e[t[n].glyph];if(a)for(var o=a.metrics.advance,s=(t[n].x+o)*i,l=r;l<=n;l++)t[l].x-=s}}Uo[10]=!0,Uo[32]=!0,Uo[38]=!0,Uo[40]=!0,Uo[41]=!0,Uo[43]=!0,Uo[45]=!0,Uo[47]=!0,Uo[173]=!0,Uo[183]=!0,Uo[8203]=!0,Uo[8208]=!0,Uo[8211]=!0,Uo[8231]=!0,e.commonjsGlobal=r,e.unwrapExports=n,e.createCommonjsModule=i,e.default=self,e.default$1=l,e.getJSON=function(t,e){var r=T(t);return r.setRequestHeader(\"Accept\",\"application/json\"),r.onerror=function(){e(new Error(r.statusText))},r.onload=function(){if(r.status>=200&&r.status<300&&r.response){var n;try{n=JSON.parse(r.response)}catch(t){return e(t)}e(null,n)}else 401===r.status&&t.url.match(/mapbox.com/)?e(new A(r.statusText+\": you may have provided an invalid Mapbox access token. See https://www.mapbox.com/api-documentation/#access-tokens\",r.status,t.url)):e(new A(r.statusText,r.status,t.url))},r.send(),r},e.getImage=function(t,e){return S(t,function(t,r){if(t)e(t);else if(r){var n=new self.Image,i=self.URL||self.webkitURL;n.onload=function(){e(null,n),i.revokeObjectURL(n.src)};var a=new self.Blob([new Uint8Array(r.data)],{type:\"image/png\"});n.cacheControl=r.cacheControl,n.expires=r.expires,n.src=r.data.byteLength?i.createObjectURL(a):\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=\"}})},e.ResourceType=M,e.RGBAImage=ui,e.default$2=Ka,e.ImagePosition=Qa,e.getArrayBuffer=S,e.default$3=function(t){return new io(t).readFields(ko,[])},e.default$4=yr,e.asyncAll=function(t,e,r){if(!t.length)return r(null,[]);var n=t.length,i=new Array(t.length),a=null;t.forEach(function(t,o){e(t,function(t,e){t&&(a=t),i[o]=e,0==--n&&r(a,i)})})},e.AlphaImage=ci,e.default$5=I,e.endsWith=v,e.extend=p,e.sphericalToCartesian=function(t){var e=t[0],r=t[1],n=t[2];return r+=90,r*=Math.PI/180,n*=Math.PI/180,{x:e*Math.cos(r)*Math.sin(n),y:e*Math.sin(r)*Math.sin(n),z:e*Math.cos(n)}},e.Evented=O,e.validateStyle=nr,e.validateLight=ir,e.emitValidationErrors=sr,e.default$6=tt,e.number=wt,e.Properties=qr,e.Transitionable=Ir,e.Transitioning=Dr,e.PossiblyEvaluated=Fr,e.DataConstantProperty=Nr,e.warnOnce=_,e.uniqueId=function(){return d++},e.default$7=So,e.pick=function(t,e){for(var r={},n=0;n<e.length;n++){var i=e[n];i in t&&(r[i]=t[i])}return r},e.wrap=function(t,e,r){var n=r-e,i=((t-e)%n+n)%n+e;return i===e?r:i},e.clamp=h,e.Event=L,e.ErrorEvent=z,e.OverscaledTileID=zo,e.default$8=Dn,e.createLayout=Xr,e.getCoordinatesCenter=function(t){for(var e=1/0,r=1/0,n=-1/0,i=-1/0,a=0;a<t.length;a++)e=Math.min(e,t[a].column),r=Math.min(r,t[a].row),n=Math.max(n,t[a].column),i=Math.max(i,t[a].row);var o=n-e,l=i-r,c=Math.max(o,l),u=Math.max(0,Math.floor(-Math.log(c)/Math.LN2));return new s((e+n)/2,(r+i)/2,0).zoomTo(u)},e.CanonicalTileID=Co,e.RasterBoundsArray=Jr,e.getVideo=function(t,e){var r,n,i=self.document.createElement(\"video\");i.onloadstart=function(){e(null,i)};for(var a=0;a<t.length;a++){var o=self.document.createElement(\"source\");r=t[a],n=void 0,(n=self.document.createElement(\"a\")).href=r,(n.protocol!==self.document.location.protocol||n.host!==self.document.location.host)&&(i.crossOrigin=\"Anonymous\"),o.src=t[a],i.appendChild(o)}return i},e.default$9=P,e.bindAll=g,e.default$10=function t(e,r){if(Array.isArray(e)){if(!Array.isArray(r)||e.length!==r.length)return!1;for(var n=0;n<e.length;n++)if(!t(e[n],r[n]))return!1;return!0}if(\"object\"==typeof e&&null!==e&&null!==r){if(\"object\"!=typeof r)return!1;if(Object.keys(e).length!==Object.keys(r).length)return!1;for(var i in e)if(!t(e[i],r[i]))return!1;return!0}return e===r},e.parseCacheControl=function(t){var e={};if(t.replace(/(?:^|(?:\\s*\\,\\s*))([^\\x00-\\x20\\(\\)<>@\\,;\\:\\\\\"\\/\\[\\]\\?\\=\\{\\}\\x7F]+)(?:\\=(?:([^\\x00-\\x20\\(\\)<>@\\,;\\:\\\\\"\\/\\[\\]\\?\\=\\{\\}\\x7F]+)|(?:\\\"((?:[^\"\\\\]|\\\\.)*)\\\")))?/g,function(t,r,n,i){var a=n||i;return e[r]=!a||a.toLowerCase(),\"\"}),e[\"max-age\"]){var r=parseInt(e[\"max-age\"],10);isNaN(r)?delete e[\"max-age\"]:e[\"max-age\"]=r}return e},e.default$11=Fo,e.default$12=Ro,e.default$13=Re,e.default$14=Ha,e.CollisionBoxArray=vn,e.default$15=Tn,e.TriangleIndexArray=fn,e.default$16=Lr,e.default$17=s,e.keysDifference=function(t,e){var r=[];for(var n in t)n in e||r.push(n);return r},e.default$18=[\"type\",\"source\",\"source-layer\",\"minzoom\",\"maxzoom\",\"filter\",\"layout\"],e.mat4=ri,e.vec4=ei,e.getSizeData=Ba,e.evaluateSizeForFeature=function(t,e,r){var n=e;return\"source\"===t.functionType?r.lowerSize/10:\"composite\"===t.functionType?wt(r.lowerSize/10,r.upperSize/10,n.uSizeT):n.uSize},e.evaluateSizeForZoom=function(t,e,r){if(\"constant\"===t.functionType)return{uSizeT:0,uSize:t.layoutSize};if(\"source\"===t.functionType)return{uSizeT:0,uSize:0};if(\"camera\"===t.functionType){var n=t.propertyValue,i=t.zoomRange,a=t.sizeRange,o=h(Se(n,r.specification).interpolationFactor(e,i.min,i.max),0,1);return{uSizeT:0,uSize:a.min+o*(a.max-a.min)}}var s=t.propertyValue,l=t.zoomRange;return{uSizeT:h(Se(s,r.specification).interpolationFactor(e,l.min,l.max),0,1),uSize:0}},e.addDynamicAttributes=Va,e.default$19=Wa,e.WritingMode=jo,e.multiPolygonIntersectsBufferedPoint=jn,e.multiPolygonIntersectsMultiPolygon=Vn,e.multiPolygonIntersectsBufferedMultiLine=Un,e.polygonIntersectsPolygon=function(t,e){for(var r=0;r<t.length;r++)if(Zn(e,t[r]))return!0;for(var n=0;n<e.length;n++)if(Zn(t,e[n]))return!0;return!!Hn(t,e)},e.distToSegmentSquared=Yn,e.default$20=ti,e.default$21=Hr,e.default$22=function(t){return new Ja[t.type](t)},e.clone=x,e.filterObject=y,e.mapObject=m,e.registerForPluginAvailability=function(t){return Tr?t({pluginURL:Tr,completionCallback:Mr}):Er.once(\"pluginAvailable\",t),t},e.evented=Er,e.default$23=mr,e.default$24=On,e.PosArray=$r,e.UnwrappedTileID=Lo,e.ease=f,e.bezier=u,e.setRTLTextPlugin=function(t,e){if(Ar)throw new Error(\"setRTLTextPlugin cannot be called multiple times.\");Ar=!0,Tr=t,Mr=function(t){t?(Ar=!1,Tr=null,e&&e(t)):Sr=!0},Er.fire(new L(\"pluginAvailable\",{pluginURL:Tr,completionCallback:Mr}))},e.values=function(t){var e=[];for(var r in t)e.push(t[r]);return e},e.default$25=Ra,e.register=pr,e.GLYPH_PBF_BORDER=To,e.shapeText=function(t,e,r,n,i,a,o,s,l,c){var u=t.trim();c===jo.vertical&&(u=function(t){for(var e=\"\",r=0;r<t.length;r++){var n=t.charCodeAt(r+1)||null,i=t.charCodeAt(r-1)||null;n&&wr(n)&&!Da[t[r+1]]||i&&wr(i)&&!Da[t[r-1]]||!Da[t[r]]?e+=t[r]:e+=Da[t[r]]}return e}(u));var f=[],h={positionedGlyphs:f,text:u,top:s[1],bottom:s[1],left:s[0],right:s[0],writingMode:c},p=Cr.processBidirectionalText;return function(t,e,r,n,i,a,o,s,l){for(var c=0,u=-17,f=0,h=t.positionedGlyphs,p=\"right\"===a?1:\"left\"===a?0:.5,d=0,g=r;d<g.length;d+=1){var v=g[d];if((v=v.trim()).length){for(var m=h.length,y=0;y<v.length;y++){var x=v.charCodeAt(y),b=e[x];b&&(_r(x)&&o!==jo.horizontal?(h.push({glyph:x,x:c,y:0,vertical:!0}),c+=l+s):(h.push({glyph:x,x:c,y:u,vertical:!1}),c+=b.metrics.advance+s))}if(h.length!==m){var _=c-s;f=Math.max(_,f),Xo(h,e,m,h.length-1,p)}c=0,u+=n}else u+=n}var w=Yo(i),k=w.horizontalAlign,M=w.verticalAlign;!function(t,e,r,n,i,a,o){for(var s=(e-r)*i,l=(-n*o+.5)*a,c=0;c<t.length;c++)t[c].x+=s,t[c].y+=l}(h,p,k,M,f,n,r.length);var A=r.length*n;t.top+=-M*A,t.bottom=t.top+A,t.left+=-k*f,t.right=t.left+f}(h,e,p?p(u,Wo(u,o,r,e)):function(t,e){for(var r=[],n=0,i=0,a=e;i<a.length;i+=1){var o=a[i];r.push(t.substring(n,o)),n=o}return n<t.length&&r.push(t.substring(n,t.length)),r}(u,Wo(u,o,r,e)),n,i,a,c,o,l),!!f.length&&h},e.shapeIcon=function(t,e,r){var n=Yo(r),i=n.horizontalAlign,a=n.verticalAlign,o=e[0],s=e[1],l=o-t.displaySize[0]*i,c=l+t.displaySize[0],u=s-t.displaySize[1]*a;return{image:t,top:u,bottom:u+t.displaySize[1],left:l,right:c}},e.allowsVerticalWritingMode=xr,e.allowsLetterSpacing=function(t){for(var e=0,r=t;e<r.length;e+=1)if(!br(r[e].charCodeAt(0)))return!1;return!0},e.default$26=Yi,e.default$27=Do,e.default$28=eo,e.default$29=ga,e.default$30=io,e.default$31=Po,e.__moduleExports=ga,e.default$32=l,e.__moduleExports$1=io,e.plugin=Cr}),i(0,function(t){function e(t){var r=typeof t;if(\"number\"===r||\"boolean\"===r||\"string\"===r||null==t)return JSON.stringify(t);if(Array.isArray(t)){for(var n=\"[\",i=0,a=t;i<a.length;i+=1)n+=e(a[i])+\",\";return n+\"]\"}for(var o=Object.keys(t).sort(),s=\"{\",l=0;l<o.length;l++)s+=JSON.stringify(o[l])+\":\"+e(t[o[l]])+\",\";return s+\"}\"}function r(r){for(var n=\"\",i=0,a=t.default$18;i<a.length;i+=1)n+=\"/\"+e(r[a[i]]);return n}var n=function(t){t&&this.replace(t)};function i(t,e,r,n,i){if(void 0===e.segment)return!0;for(var a=e,o=e.segment+1,s=0;s>-r/2;){if(--o<0)return!1;s-=t[o].dist(a),a=t[o]}s+=t[o].dist(t[o+1]),o++;for(var l=[],c=0;s<r/2;){var u=t[o-1],f=t[o],h=t[o+1];if(!h)return!1;var p=u.angleTo(f)-f.angleTo(h);for(p=Math.abs((p+3*Math.PI)%(2*Math.PI)-Math.PI),l.push({distance:s,angleDelta:p}),c+=p;s-l[0].distance>n;)c-=l.shift().angleDelta;if(c>i)return!1;o++,s+=f.dist(h)}return!0}function a(e,r,n,a,o,s,l,c,u){var f=a?.6*s*l:0,h=Math.max(a?a.right-a.left:0,o?o.right-o.left:0),p=0===e[0].x||e[0].x===u||0===e[0].y||e[0].y===u;return r-h*l<r/4&&(r=h*l+r/4),function e(r,n,a,o,s,l,c,u,f){for(var h=l/2,p=0,d=0;d<r.length-1;d++)p+=r[d].dist(r[d+1]);for(var g=0,v=n-a,m=[],y=0;y<r.length-1;y++){for(var x=r[y],b=r[y+1],_=x.dist(b),w=b.angleTo(x);v+a<g+_;){var k=((v+=a)-g)/_,M=t.number(x.x,b.x,k),A=t.number(x.y,b.y,k);if(M>=0&&M<f&&A>=0&&A<f&&v-h>=0&&v+h<=p){var T=new t.default$25(M,A,w,y);T._round(),o&&!i(r,T,l,o,s)||m.push(T)}}g+=_}return u||m.length||c||(m=e(r,g/2,a,o,s,l,c,!0,f)),m}(e,p?r/2*c%r:(h/2+2*s)*l*c%r,r,f,n,h*l,p,!1,u)}n.prototype.replace=function(t){this._layerConfigs={},this._layers={},this.update(t,[])},n.prototype.update=function(e,n){for(var i=this,a=0,o=e;a<o.length;a+=1){var s=o[a];i._layerConfigs[s.id]=s;var l=i._layers[s.id]=t.default$22(s);l._featureFilter=t.default$13(l.filter)}for(var c=0,u=n;c<u.length;c+=1){var f=u[c];delete i._layerConfigs[f],delete i._layers[f]}this.familiesBySource={};for(var h=0,p=function(t){for(var e={},n=0;n<t.length;n++){var i=r(t[n]),a=e[i];a||(a=e[i]=[]),a.push(t[n])}var o=[];for(var s in e)o.push(e[s]);return o}(t.values(this._layerConfigs));h<p.length;h+=1){var d=p[h].map(function(t){return i._layers[t.id]}),g=d[0];if(\"none\"!==g.visibility){var v=g.source||\"\",m=i.familiesBySource[v];m||(m=i.familiesBySource[v]={});var y=g.sourceLayer||\"_geojsonTileLayer\",x=m[y];x||(x=m[y]=[]),x.push(d)}}};var o=function(){this.opacity=0,this.targetOpacity=0,this.time=0};o.prototype.clone=function(){var t=new o;return t.opacity=this.opacity,t.targetOpacity=this.targetOpacity,t.time=this.time,t},t.register(\"OpacityState\",o);var s=function(t,e,r,n,i,a,o,s,l,c,u){var f=o.top*s-l,h=o.bottom*s+l,p=o.left*s-l,d=o.right*s+l;if(this.boxStartIndex=t.length,c){var g=h-f,v=d-p;g>0&&(g=Math.max(10*s,g),this._addLineCollisionCircles(t,e,r,r.segment,v,g,n,i,a,u))}else t.emplaceBack(r.x,r.y,p,f,d,h,n,i,a,0,0);this.boxEndIndex=t.length};s.prototype._addLineCollisionCircles=function(t,e,r,n,i,a,o,s,l,c){var u=a/2,f=Math.floor(i/u),h=1+.4*Math.log(c)/Math.LN2,p=Math.floor(f*h/2),d=-a/2,g=r,v=n+1,m=d,y=-i/2,x=y-i/4;do{if(--v<0){if(m>y)return;v=0;break}m-=e[v].dist(g),g=e[v]}while(m>x);for(var b=e[v].dist(e[v+1]),_=-p;_<f+p;_++){var w=_*u,k=y+w;if(w<0&&(k+=w),w>i&&(k+=w-i),!(k<m)){for(;m+b<k;){if(m+=b,++v+1>=e.length)return;b=e[v].dist(e[v+1])}var M=k-m,A=e[v],T=e[v+1].sub(A)._unit()._mult(M)._add(A)._round(),S=Math.abs(k-d)<u?0:.8*(k-d);t.emplaceBack(T.x,T.y,-a/2,-a/2,a/2,a/2,o,s,l,a/2,S)}}};var l=u,c=u;function u(t,e){if(!(this instanceof u))return new u(t,e);if(this.data=t||[],this.length=this.data.length,this.compare=e||f,this.length>0)for(var r=(this.length>>1)-1;r>=0;r--)this._down(r)}function f(t,e){return t<e?-1:t>e?1:0}function h(e,r,n){void 0===r&&(r=1),void 0===n&&(n=!1);for(var i=1/0,a=1/0,o=-1/0,s=-1/0,c=e[0],u=0;u<c.length;u++){var f=c[u];(!u||f.x<i)&&(i=f.x),(!u||f.y<a)&&(a=f.y),(!u||f.x>o)&&(o=f.x),(!u||f.y>s)&&(s=f.y)}var h=o-i,g=s-a,v=Math.min(h,g),m=v/2,y=new l(null,p);if(0===v)return new t.default$1(i,a);for(var x=i;x<o;x+=v)for(var b=a;b<s;b+=v)y.push(new d(x+m,b+m,m,e));for(var _=function(t){for(var e=0,r=0,n=0,i=t[0],a=0,o=i.length,s=o-1;a<o;s=a++){var l=i[a],c=i[s],u=l.x*c.y-c.x*l.y;r+=(l.x+c.x)*u,n+=(l.y+c.y)*u,e+=3*u}return new d(r/e,n/e,0,t)}(e),w=y.length;y.length;){var k=y.pop();(k.d>_.d||!_.d)&&(_=k,n&&console.log(\"found best %d after %d probes\",Math.round(1e4*k.d)/1e4,w)),k.max-_.d<=r||(m=k.h/2,y.push(new d(k.p.x-m,k.p.y-m,m,e)),y.push(new d(k.p.x+m,k.p.y-m,m,e)),y.push(new d(k.p.x-m,k.p.y+m,m,e)),y.push(new d(k.p.x+m,k.p.y+m,m,e)),w+=4)}return n&&(console.log(\"num probes: \"+w),console.log(\"best distance: \"+_.d)),_.p}function p(t,e){return e.max-t.max}function d(e,r,n,i){this.p=new t.default$1(e,r),this.h=n,this.d=function(e,r){for(var n=!1,i=1/0,a=0;a<r.length;a++)for(var o=r[a],s=0,l=o.length,c=l-1;s<l;c=s++){var u=o[s],f=o[c];u.y>e.y!=f.y>e.y&&e.x<(f.x-u.x)*(e.y-u.y)/(f.y-u.y)+u.x&&(n=!n),i=Math.min(i,t.distToSegmentSquared(e,u,f))}return(n?1:-1)*Math.sqrt(i)}(this.p,i),this.max=this.d+this.h*Math.SQRT2}function g(e,r,n,i,a,o){e.createArrays(),e.symbolInstances=[];var s=512*e.overscaling;e.tilePixelRatio=t.default$8/s,e.compareText={},e.iconsNeedLinear=!1;var l=e.layers[0].layout,c=e.layers[0]._unevaluatedLayout._values,u={};if(\"composite\"===e.textSizeData.functionType){var f=e.textSizeData.zoomRange,h=f.min,p=f.max;u.compositeTextSizes=[c[\"text-size\"].possiblyEvaluate(new t.default$16(h)),c[\"text-size\"].possiblyEvaluate(new t.default$16(p))]}if(\"composite\"===e.iconSizeData.functionType){var d=e.iconSizeData.zoomRange,g=d.min,m=d.max;u.compositeIconSizes=[c[\"icon-size\"].possiblyEvaluate(new t.default$16(g)),c[\"icon-size\"].possiblyEvaluate(new t.default$16(m))]}u.layoutTextSize=c[\"text-size\"].possiblyEvaluate(new t.default$16(e.zoom+1)),u.layoutIconSize=c[\"icon-size\"].possiblyEvaluate(new t.default$16(e.zoom+1)),u.textMaxSize=c[\"text-size\"].possiblyEvaluate(new t.default$16(18));for(var y=24*l.get(\"text-line-height\"),x=\"map\"===l.get(\"text-rotation-alignment\")&&\"line\"===l.get(\"symbol-placement\"),b=l.get(\"text-keep-upright\"),_=0,w=e.features;_<w.length;_+=1){var k=w[_],M=l.get(\"text-font\").evaluate(k).join(\",\"),A=r[M]||{},T=n[M]||{},S={},E=k.text;if(E){var C=l.get(\"text-offset\").evaluate(k).map(function(t){return 24*t}),L=24*l.get(\"text-letter-spacing\").evaluate(k),z=t.allowsLetterSpacing(E)?L:0,O=l.get(\"text-anchor\").evaluate(k),I=l.get(\"text-justify\").evaluate(k),P=\"line\"!==l.get(\"symbol-placement\")?24*l.get(\"text-max-width\").evaluate(k):0;S.horizontal=t.shapeText(E,A,P,y,O,I,z,C,24,t.WritingMode.horizontal),t.allowsVerticalWritingMode(E)&&x&&b&&(S.vertical=t.shapeText(E,A,P,y,O,I,z,C,24,t.WritingMode.vertical))}var D=void 0;if(k.icon){var R=i[k.icon];R&&(D=t.shapeIcon(a[k.icon],l.get(\"icon-offset\").evaluate(k),l.get(\"icon-anchor\").evaluate(k)),void 0===e.sdfIcons?e.sdfIcons=R.sdf:e.sdfIcons!==R.sdf&&t.warnOnce(\"Style sheet warning: Cannot mix SDF and non-SDF icons in one buffer\"),R.pixelRatio!==e.pixelRatio?e.iconsNeedLinear=!0:0!==l.get(\"icon-rotate\").constantOr(1)&&(e.iconsNeedLinear=!0))}(S.horizontal||D)&&v(e,k,S,D,T,u)}o&&e.generateCollisionDebugBuffers()}function v(e,r,n,i,l,c){var u=c.layoutTextSize.evaluate(r),f=c.layoutIconSize.evaluate(r),p=c.textMaxSize.evaluate(r);void 0===p&&(p=u);var d=e.layers[0].layout,g=d.get(\"text-offset\").evaluate(r),v=d.get(\"icon-offset\").evaluate(r),x=u/24,b=e.tilePixelRatio*x,_=e.tilePixelRatio*p/24,w=e.tilePixelRatio*f,k=e.tilePixelRatio*d.get(\"symbol-spacing\"),M=d.get(\"text-padding\")*e.tilePixelRatio,A=d.get(\"icon-padding\")*e.tilePixelRatio,T=d.get(\"text-max-angle\")/180*Math.PI,S=\"map\"===d.get(\"text-rotation-alignment\")&&\"line\"===d.get(\"symbol-placement\"),E=\"map\"===d.get(\"icon-rotation-alignment\")&&\"line\"===d.get(\"symbol-placement\"),C=k/2,L=function(a,u){u.x<0||u.x>=t.default$8||u.y<0||u.y>=t.default$8||e.symbolInstances.push(function(e,r,n,i,a,l,c,u,f,h,p,d,g,v,y,x,b,_,w,k,M){var A,T,S=e.addToLineVertexArray(r,n),E=0,C=0,L=0,z=i.horizontal?i.horizontal.text:\"\",O=[];i.horizontal&&(A=new s(c,n,r,u,f,h,i.horizontal,p,d,g,e.overscaling),C+=m(e,r,i.horizontal,l,g,w,v,S,i.vertical?t.WritingMode.horizontal:t.WritingMode.horizontalOnly,O,k,M),i.vertical&&(L+=m(e,r,i.vertical,l,g,w,v,S,t.WritingMode.vertical,O,k,M)));var I=A?A.boxStartIndex:e.collisionBoxArray.length,P=A?A.boxEndIndex:e.collisionBoxArray.length;if(a){var D=function(e,r,n,i,a,o){var s,l,c,u,f=r.image,h=n.layout,p=r.top-1/f.pixelRatio,d=r.left-1/f.pixelRatio,g=r.bottom+1/f.pixelRatio,v=r.right+1/f.pixelRatio;if(\"none\"!==h.get(\"icon-text-fit\")&&a){var m=v-d,y=g-p,x=h.get(\"text-size\").evaluate(o)/24,b=a.left*x,_=a.right*x,w=a.top*x,k=_-b,M=a.bottom*x-w,A=h.get(\"icon-text-fit-padding\")[0],T=h.get(\"icon-text-fit-padding\")[1],S=h.get(\"icon-text-fit-padding\")[2],E=h.get(\"icon-text-fit-padding\")[3],C=\"width\"===h.get(\"icon-text-fit\")?.5*(M-y):0,L=\"height\"===h.get(\"icon-text-fit\")?.5*(k-m):0,z=\"width\"===h.get(\"icon-text-fit\")||\"both\"===h.get(\"icon-text-fit\")?k:m,O=\"height\"===h.get(\"icon-text-fit\")||\"both\"===h.get(\"icon-text-fit\")?M:y;s=new t.default$1(b+L-E,w+C-A),l=new t.default$1(b+L+T+z,w+C-A),c=new t.default$1(b+L+T+z,w+C+S+O),u=new t.default$1(b+L-E,w+C+S+O)}else s=new t.default$1(d,p),l=new t.default$1(v,p),c=new t.default$1(v,g),u=new t.default$1(d,g);var I=n.layout.get(\"icon-rotate\").evaluate(o)*Math.PI/180;if(I){var P=Math.sin(I),D=Math.cos(I),R=[D,-P,P,D];s._matMult(R),l._matMult(R),u._matMult(R),c._matMult(R)}return[{tl:s,tr:l,bl:u,br:c,tex:f.paddedRect,writingMode:void 0,glyphOffset:[0,0]}]}(0,a,l,0,i.horizontal,w);T=new s(c,n,r,u,f,h,a,y,x,!1,e.overscaling),E=4*D.length;var R=e.iconSizeData,B=null;\"source\"===R.functionType?B=[10*l.layout.get(\"icon-size\").evaluate(w)]:\"composite\"===R.functionType&&(B=[10*M.compositeIconSizes[0].evaluate(w),10*M.compositeIconSizes[1].evaluate(w)]),e.addSymbols(e.icon,D,B,_,b,w,!1,r,S.lineStartIndex,S.lineLength)}var F=T?T.boxStartIndex:e.collisionBoxArray.length,N=T?T.boxEndIndex:e.collisionBoxArray.length;return e.glyphOffsetArray.length>=t.default$14.MAX_GLYPHS&&t.warnOnce(\"Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907\"),{key:z,textBoxStartIndex:I,textBoxEndIndex:P,iconBoxStartIndex:F,iconBoxEndIndex:N,textOffset:v,iconOffset:_,anchor:r,line:n,featureIndex:u,feature:w,numGlyphVertices:C,numVerticalGlyphVertices:L,numIconVertices:E,textOpacityState:new o,iconOpacityState:new o,isDuplicate:!1,placedTextSymbolIndices:O,crossTileID:0}}(e,u,a,n,i,e.layers[0],e.collisionBoxArray,r.index,r.sourceLayerIndex,e.index,b,M,S,g,w,A,E,v,r,l,c))};if(\"line\"===d.get(\"symbol-placement\"))for(var z=0,O=function(e,r,n,i,a){for(var o=[],s=0;s<e.length;s++)for(var l=e[s],c=void 0,u=0;u<l.length-1;u++){var f=l[u],h=l[u+1];f.x<0&&h.x<0||(f.x<0?f=new t.default$1(0,f.y+(h.y-f.y)*((0-f.x)/(h.x-f.x)))._round():h.x<0&&(h=new t.default$1(0,f.y+(h.y-f.y)*((0-f.x)/(h.x-f.x)))._round()),f.y<0&&h.y<0||(f.y<0?f=new t.default$1(f.x+(h.x-f.x)*((0-f.y)/(h.y-f.y)),0)._round():h.y<0&&(h=new t.default$1(f.x+(h.x-f.x)*((0-f.y)/(h.y-f.y)),0)._round()),f.x>=i&&h.x>=i||(f.x>=i?f=new t.default$1(i,f.y+(h.y-f.y)*((i-f.x)/(h.x-f.x)))._round():h.x>=i&&(h=new t.default$1(i,f.y+(h.y-f.y)*((i-f.x)/(h.x-f.x)))._round()),f.y>=a&&h.y>=a||(f.y>=a?f=new t.default$1(f.x+(h.x-f.x)*((a-f.y)/(h.y-f.y)),a)._round():h.y>=a&&(h=new t.default$1(f.x+(h.x-f.x)*((a-f.y)/(h.y-f.y)),a)._round()),c&&f.equals(c[c.length-1])||(c=[f],o.push(c)),c.push(h)))))}return o}(r.geometry,0,0,t.default$8,t.default$8);z<O.length;z+=1)for(var I=O[z],P=0,D=a(I,k,T,n.vertical||n.horizontal,i,24,_,e.overscaling,t.default$8);P<D.length;P+=1){var R=D[P],B=n.horizontal;B&&y(e,B.text,C,R)||L(I,R)}else if(\"Polygon\"===r.type)for(var F=0,N=t.default$26(r.geometry,0);F<N.length;F+=1){var j=N[F],V=h(j,16);L(j[0],new t.default$25(V.x,V.y,0))}else if(\"LineString\"===r.type)for(var U=0,q=r.geometry;U<q.length;U+=1){var H=q[U];L(H,new t.default$25(H[0].x,H[0].y,0))}else if(\"Point\"===r.type)for(var G=0,W=r.geometry;G<W.length;G+=1)for(var Y=0,X=W[G];Y<X.length;Y+=1){var Z=X[Y];L([Z],new t.default$25(Z.x,Z.y,0))}}function m(e,r,n,i,a,o,s,l,c,u,f,h){var p=function(e,r,n,i,a,o){for(var s=n.layout.get(\"text-rotate\").evaluate(a)*Math.PI/180,l=n.layout.get(\"text-offset\").evaluate(a).map(function(t){return 24*t}),c=r.positionedGlyphs,u=[],f=0;f<c.length;f++){var h=c[f],p=o[h.glyph];if(p){var d=p.rect;if(d){var g=t.GLYPH_PBF_BORDER+1,v=p.metrics.advance/2,m=i?[h.x+v,h.y]:[0,0],y=i?[0,0]:[h.x+v+l[0],h.y+l[1]],x=p.metrics.left-g-v+y[0],b=-p.metrics.top-g+y[1],_=x+d.w,w=b+d.h,k=new t.default$1(x,b),M=new t.default$1(_,b),A=new t.default$1(x,w),T=new t.default$1(_,w);if(i&&h.vertical){var S=new t.default$1(-v,v),E=-Math.PI/2,C=new t.default$1(5,0);k._rotateAround(E,S)._add(C),M._rotateAround(E,S)._add(C),A._rotateAround(E,S)._add(C),T._rotateAround(E,S)._add(C)}if(s){var L=Math.sin(s),z=Math.cos(s),O=[z,-L,L,z];k._matMult(O),M._matMult(O),A._matMult(O),T._matMult(O)}u.push({tl:k,tr:M,bl:A,br:T,tex:d,writingMode:r.writingMode,glyphOffset:m})}}}return u}(0,n,i,a,o,f),d=e.textSizeData,g=null;return\"source\"===d.functionType?g=[10*i.layout.get(\"text-size\").evaluate(o)]:\"composite\"===d.functionType&&(g=[10*h.compositeTextSizes[0].evaluate(o),10*h.compositeTextSizes[1].evaluate(o)]),e.addSymbols(e.text,p,g,s,a,o,c,r,l.lineStartIndex,l.lineLength),u.push(e.text.placedSymbolArray.length-1),4*p.length}function y(t,e,r,n){var i=t.compareText;if(e in i){for(var a=i[e],o=a.length-1;o>=0;o--)if(n.dist(a[o])<r)return!0}else i[e]=[];return i[e].push(n),!1}u.prototype={push:function(t){this.data.push(t),this.length++,this._up(this.length-1)},pop:function(){if(0!==this.length){var t=this.data[0];return this.length--,this.length>0&&(this.data[0]=this.data[this.length],this._down(0)),this.data.pop(),t}},peek:function(){return this.data[0]},_up:function(t){for(var e=this.data,r=this.compare,n=e[t];t>0;){var i=t-1>>1,a=e[i];if(r(n,a)>=0)break;e[t]=a,t=i}e[t]=n},_down:function(t){for(var e=this.data,r=this.compare,n=this.length>>1,i=e[t];t<n;){var a=1+(t<<1),o=a+1,s=e[a];if(o<this.length&&r(e[o],s)<0&&(a=o,s=e[o]),r(s,i)>=0)break;e[t]=s,t=a}e[t]=i}},l.default=c;var x=function(e){var r=new t.AlphaImage({width:0,height:0}),n={},i=new t.default$2(0,0,{autoResize:!0});for(var a in e){var o=e[a],s=n[a]={};for(var l in o){var c=o[+l];if(c&&0!==c.bitmap.width&&0!==c.bitmap.height){var u=i.packOne(c.bitmap.width+2,c.bitmap.height+2);r.resize({width:i.w,height:i.h}),t.AlphaImage.copy(c.bitmap,r,{x:0,y:0},{x:u.x+1,y:u.y+1},c.bitmap),s[l]={rect:u,metrics:c.metrics}}}}i.shrink(),r.resize({width:i.w,height:i.h}),this.image=r,this.positions=n};t.register(\"GlyphAtlas\",x);var b=function(e){this.tileID=new t.OverscaledTileID(e.tileID.overscaledZ,e.tileID.wrap,e.tileID.canonical.z,e.tileID.canonical.x,e.tileID.canonical.y),this.uid=e.uid,this.zoom=e.zoom,this.pixelRatio=e.pixelRatio,this.tileSize=e.tileSize,this.source=e.source,this.overscaling=this.tileID.overscaleFactor(),this.showCollisionBoxes=e.showCollisionBoxes,this.collectResourceTiming=!!e.collectResourceTiming};function _(e,r){for(var n=new t.default$16(r),i=0,a=e;i<a.length;i+=1)a[i].recalculate(n)}b.prototype.parse=function(e,r,n,i){var a=this;this.status=\"parsing\",this.data=e,this.collisionBoxArray=new t.CollisionBoxArray;var o=new t.default$27(Object.keys(e.layers).sort()),s=new t.default$11(this.tileID);s.bucketLayerIDs=[];var l,c,u,f={},h={featureIndex:s,iconDependencies:{},glyphDependencies:{}},p=r.familiesBySource[this.source];for(var d in p){var v=e.layers[d];if(v){1===v.version&&t.warnOnce('Vector tile source \"'+a.source+'\" layer \"'+d+'\" does not use vector tile spec v2 and therefore may have some rendering errors.');for(var m=o.encode(d),y=[],b=0;b<v.length;b++){var w=v.feature(b);y.push({feature:w,index:b,sourceLayerIndex:m})}for(var k=0,M=p[d];k<M.length;k+=1){var A=M[k],T=A[0];T.minzoom&&a.zoom<Math.floor(T.minzoom)||T.maxzoom&&a.zoom>=T.maxzoom||\"none\"!==T.visibility&&(_(A,a.zoom),(f[T.id]=T.createBucket({index:s.bucketLayerIDs.length,layers:A,zoom:a.zoom,pixelRatio:a.pixelRatio,overscaling:a.overscaling,collisionBoxArray:a.collisionBoxArray,sourceLayerIndex:m})).populate(y,h),s.bucketLayerIDs.push(A.map(function(t){return t.id})))}}}var S=t.mapObject(h.glyphDependencies,function(t){return Object.keys(t).map(Number)});Object.keys(S).length?n.send(\"getGlyphs\",{uid:this.uid,stacks:S},function(t,e){l||(l=t,c=e,C.call(a))}):c={};var E=Object.keys(h.iconDependencies);function C(){if(l)return i(l);if(c&&u){var e=new x(c),r=new t.default$28(u);for(var n in f){var a=f[n];a instanceof t.default$14&&(_(a.layers,this.zoom),g(a,c,e.positions,u,r.positions,this.showCollisionBoxes))}this.status=\"done\",i(null,{buckets:t.values(f).filter(function(t){return!t.isEmpty()}),featureIndex:s,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:e.image,iconAtlasImage:r.image})}}E.length?n.send(\"getImages\",{icons:E},function(t,e){l||(l=t,u=e,C.call(a))}):u={},C.call(this)};var w=function(t){return!(!performance||!performance.getEntriesByName)&&performance.getEntriesByName(t)};function k(e,r){var n=t.getArrayBuffer(e.request,function(e,n){e?r(e):n&&r(null,{vectorTile:new t.default$29.VectorTile(new t.default$30(n.data)),rawData:n.data,cacheControl:n.cacheControl,expires:n.expires})});return function(){n.abort(),r()}}var M=function(t,e,r){this.actor=t,this.layerIndex=e,this.loadVectorData=r||k,this.loading={},this.loaded={}};M.prototype.loadTile=function(e,r){var n=this,i=e.uid;this.loading||(this.loading={});var a=this.loading[i]=new b(e);a.abort=this.loadVectorData(e,function(o,s){if(delete n.loading[i],o||!s)return r(o);var l=s.rawData,c={};s.expires&&(c.expires=s.expires),s.cacheControl&&(c.cacheControl=s.cacheControl);var u={};if(e.request&&e.request.collectResourceTiming){var f=w(e.request.url);f&&(u.resourceTiming=JSON.parse(JSON.stringify(f)))}a.vectorTile=s.vectorTile,a.parse(s.vectorTile,n.layerIndex,n.actor,function(e,n){if(e||!n)return r(e);r(null,t.extend({rawTileData:l.slice(0)},n,c,u))}),n.loaded=n.loaded||{},n.loaded[i]=a})},M.prototype.reloadTile=function(t,e){var r=this.loaded,n=t.uid,i=this;if(r&&r[n]){var a=r[n];a.showCollisionBoxes=t.showCollisionBoxes;var o=function(t,r){var n=a.reloadCallback;n&&(delete a.reloadCallback,a.parse(a.vectorTile,i.layerIndex,i.actor,n)),e(t,r)};\"parsing\"===a.status?a.reloadCallback=o:\"done\"===a.status&&a.parse(a.vectorTile,this.layerIndex,this.actor,o)}},M.prototype.abortTile=function(t,e){var r=this.loading,n=t.uid;r&&r[n]&&r[n].abort&&(r[n].abort(),delete r[n]),e()},M.prototype.removeTile=function(t,e){var r=this.loaded,n=t.uid;r&&r[n]&&delete r[n],e()};var A=function(){this.loading={},this.loaded={}};A.prototype.loadTile=function(e,r){var n=e.uid,i=e.encoding,a=new t.default$31(n);this.loading[n]=a,a.loadFromImage(e.rawImageData,i),delete this.loading[n],this.loaded=this.loaded||{},this.loaded[n]=a,r(null,a)},A.prototype.removeTile=function(t){var e=this.loaded,r=t.uid;e&&e[r]&&delete e[r]};var T={RADIUS:6378137,FLATTENING:1/298.257223563,POLAR_RADIUS:6356752.3142};function S(t){var e=0;if(t&&t.length>0){e+=Math.abs(E(t[0]));for(var r=1;r<t.length;r++)e-=Math.abs(E(t[r]))}return e}function E(t){var e,r,n,i,a,o,s=0,l=t.length;if(l>2){for(o=0;o<l;o++)o===l-2?(n=l-2,i=l-1,a=0):o===l-1?(n=l-1,i=0,a=1):(n=o,i=o+1,a=o+2),e=t[n],r=t[i],s+=(C(t[a][0])-C(e[0]))*Math.sin(C(r[1]));s=s*T.RADIUS*T.RADIUS/2}return s}function C(t){return t*Math.PI/180}var L={geometry:function t(e){var r,n=0;switch(e.type){case\"Polygon\":return S(e.coordinates);case\"MultiPolygon\":for(r=0;r<e.coordinates.length;r++)n+=S(e.coordinates[r]);return n;case\"Point\":case\"MultiPoint\":case\"LineString\":case\"MultiLineString\":return 0;case\"GeometryCollection\":for(r=0;r<e.geometries.length;r++)n+=t(e.geometries[r]);return n}},ring:E};function z(t,e){return function(r){return t(r,e)}}function O(t,e){e=!!e,t[0]=I(t[0],e);for(var r=1;r<t.length;r++)t[r]=I(t[r],!e);return t}function I(t,e){return function(t){return L.ring(t)>=0}(t)===e?t:t.reverse()}var P=t.default$29.VectorTileFeature.prototype.toGeoJSON,D=function(e){this._feature=e,this.extent=t.default$8,this.type=e.type,this.properties=e.tags,\"id\"in e&&!isNaN(e.id)&&(this.id=parseInt(e.id,10))};D.prototype.loadGeometry=function(){if(1===this._feature.type){for(var e=[],r=0,n=this._feature.geometry;r<n.length;r+=1){var i=n[r];e.push([new t.default$1(i[0],i[1])])}return e}for(var a=[],o=0,s=this._feature.geometry;o<s.length;o+=1){for(var l=[],c=0,u=s[o];c<u.length;c+=1){var f=u[c];l.push(new t.default$1(f[0],f[1]))}a.push(l)}return a},D.prototype.toGeoJSON=function(t,e,r){return P.call(this,t,e,r)};var R=function(e){this.layers={_geojsonTileLayer:this},this.name=\"_geojsonTileLayer\",this.extent=t.default$8,this.length=e.length,this._features=e};R.prototype.feature=function(t){return new D(this._features[t])};var B=t.__moduleExports.VectorTileFeature,F=N;function N(t,e){this.options=e||{},this.features=t,this.length=t.length}function j(t,e){this.id=\"number\"==typeof t.id?t.id:void 0,this.type=t.type,this.rawGeometry=1===t.type?[t.geometry]:t.geometry,this.properties=t.tags,this.extent=e||4096}N.prototype.feature=function(t){return new j(this.features[t],this.options.extent)},j.prototype.loadGeometry=function(){var e=this.rawGeometry;this.geometry=[];for(var r=0;r<e.length;r++){for(var n=e[r],i=[],a=0;a<n.length;a++)i.push(new t.default$32(n[a][0],n[a][1]));this.geometry.push(i)}return this.geometry},j.prototype.bbox=function(){this.geometry||this.loadGeometry();for(var t=this.geometry,e=1/0,r=-1/0,n=1/0,i=-1/0,a=0;a<t.length;a++)for(var o=t[a],s=0;s<o.length;s++){var l=o[s];e=Math.min(e,l.x),r=Math.max(r,l.x),n=Math.min(n,l.y),i=Math.max(i,l.y)}return[e,n,r,i]},j.prototype.toGeoJSON=B.prototype.toGeoJSON;var V=H,U=H,q=F;function H(e){var r=new t.__moduleExports$1;return function(t,e){for(var r in t.layers)e.writeMessage(3,G,t.layers[r])}(e,r),r.finish()}function G(t,e){var r;e.writeVarintField(15,t.version||1),e.writeStringField(1,t.name||\"\"),e.writeVarintField(5,t.extent||4096);var n={keys:[],values:[],keycache:{},valuecache:{}};for(r=0;r<t.length;r++)n.feature=t.feature(r),e.writeMessage(2,W,n);var i=n.keys;for(r=0;r<i.length;r++)e.writeStringField(3,i[r]);var a=n.values;for(r=0;r<a.length;r++)e.writeMessage(4,J,a[r])}function W(t,e){var r=t.feature;void 0!==r.id&&e.writeVarintField(1,r.id),e.writeMessage(2,Y,t),e.writeVarintField(3,r.type),e.writeMessage(4,$,r)}function Y(t,e){var r=t.feature,n=t.keys,i=t.values,a=t.keycache,o=t.valuecache;for(var s in r.properties){var l=a[s];void 0===l&&(n.push(s),l=n.length-1,a[s]=l),e.writeVarint(l);var c=r.properties[s],u=typeof c;\"string\"!==u&&\"boolean\"!==u&&\"number\"!==u&&(c=JSON.stringify(c));var f=u+\":\"+c,h=o[f];void 0===h&&(i.push(c),h=i.length-1,o[f]=h),e.writeVarint(h)}}function X(t,e){return(e<<3)+(7&t)}function Z(t){return t<<1^t>>31}function $(t,e){for(var r=t.loadGeometry(),n=t.type,i=0,a=0,o=r.length,s=0;s<o;s++){var l=r[s],c=1;1===n&&(c=l.length),e.writeVarint(X(1,c));for(var u=3===n?l.length-1:l.length,f=0;f<u;f++){1===f&&1!==n&&e.writeVarint(X(2,u-1));var h=l[f].x-i,p=l[f].y-a;e.writeVarint(Z(h)),e.writeVarint(Z(p)),i+=h,a+=p}3===n&&e.writeVarint(X(7,0))}}function J(t,e){var r=typeof t;\"string\"===r?e.writeStringField(1,t):\"boolean\"===r?e.writeBooleanField(7,t):\"number\"===r&&(t%1!=0?e.writeDoubleField(3,t):t<0?e.writeSVarintField(6,t):e.writeVarintField(5,t))}V.fromVectorTileJs=U,V.fromGeojsonVt=function(t,e){e=e||{};var r={};for(var n in t)r[n]=new F(t[n].features,e),r[n].name=n,r[n].version=e.version,r[n].extent=e.extent;return H({layers:r})},V.GeoJSONWrapper=q;var K=function t(e,r,n,i,a,o){if(!(a-i<=n)){var s=Math.floor((i+a)/2);!function t(e,r,n,i,a,o){for(;a>i;){if(a-i>600){var s=a-i+1,l=n-i+1,c=Math.log(s),u=.5*Math.exp(2*c/3),f=.5*Math.sqrt(c*u*(s-u)/s)*(l-s/2<0?-1:1);t(e,r,n,Math.max(i,Math.floor(n-l*u/s+f)),Math.min(a,Math.floor(n+(s-l)*u/s+f)),o)}var h=r[2*n+o],p=i,d=a;for(Q(e,r,i,n),r[2*a+o]>h&&Q(e,r,i,a);p<d;){for(Q(e,r,p,d),p++,d--;r[2*p+o]<h;)p++;for(;r[2*d+o]>h;)d--}r[2*i+o]===h?Q(e,r,i,d):Q(e,r,++d,a),d<=n&&(i=d+1),n<=d&&(a=d-1)}}(e,r,s,i,a,o%2),t(e,r,n,i,s-1,o+1),t(e,r,n,s+1,a,o+1)}};function Q(t,e,r,n){tt(t,r,n),tt(e,2*r,2*n),tt(e,2*r+1,2*n+1)}function tt(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function et(t,e,r,n){var i=t-r,a=e-n;return i*i+a*a}var rt=function(t,e,r,n,i){return new nt(t,e,r,n,i)};function nt(t,e,r,n,i){e=e||it,r=r||at,i=i||Array,this.nodeSize=n||64,this.points=t,this.ids=new i(t.length),this.coords=new i(2*t.length);for(var a=0;a<t.length;a++)this.ids[a]=a,this.coords[2*a]=e(t[a]),this.coords[2*a+1]=r(t[a]);K(this.ids,this.coords,this.nodeSize,0,this.ids.length-1,0)}function it(t){return t[0]}function at(t){return t[1]}nt.prototype={range:function(t,e,r,n){return function(t,e,r,n,i,a,o){for(var s,l,c=[0,t.length-1,0],u=[];c.length;){var f=c.pop(),h=c.pop(),p=c.pop();if(h-p<=o)for(var d=p;d<=h;d++)s=e[2*d],l=e[2*d+1],s>=r&&s<=i&&l>=n&&l<=a&&u.push(t[d]);else{var g=Math.floor((p+h)/2);s=e[2*g],l=e[2*g+1],s>=r&&s<=i&&l>=n&&l<=a&&u.push(t[g]);var v=(f+1)%2;(0===f?r<=s:n<=l)&&(c.push(p),c.push(g-1),c.push(v)),(0===f?i>=s:a>=l)&&(c.push(g+1),c.push(h),c.push(v))}}return u}(this.ids,this.coords,t,e,r,n,this.nodeSize)},within:function(t,e,r){return function(t,e,r,n,i,a){for(var o=[0,t.length-1,0],s=[],l=i*i;o.length;){var c=o.pop(),u=o.pop(),f=o.pop();if(u-f<=a)for(var h=f;h<=u;h++)et(e[2*h],e[2*h+1],r,n)<=l&&s.push(t[h]);else{var p=Math.floor((f+u)/2),d=e[2*p],g=e[2*p+1];et(d,g,r,n)<=l&&s.push(t[p]);var v=(c+1)%2;(0===c?r-i<=d:n-i<=g)&&(o.push(f),o.push(p-1),o.push(v)),(0===c?r+i>=d:n+i>=g)&&(o.push(p+1),o.push(u),o.push(v))}}return s}(this.ids,this.coords,t,e,r,this.nodeSize)}};function ot(t){this.options=pt(Object.create(this.options),t),this.trees=new Array(this.options.maxZoom+1)}function st(t,e,r,n,i){return{x:t,y:e,zoom:1/0,id:n,properties:i,parentId:-1,numPoints:r}}function lt(t,e){var r=t.geometry.coordinates;return{x:ft(r[0]),y:ht(r[1]),zoom:1/0,id:e,parentId:-1}}function ct(t){return{type:\"Feature\",properties:ut(t),geometry:{type:\"Point\",coordinates:[(n=t.x,360*(n-.5)),(e=t.y,r=(180-360*e)*Math.PI/180,360*Math.atan(Math.exp(r))/Math.PI-90)]}};var e,r,n}function ut(t){var e=t.numPoints,r=e>=1e4?Math.round(e/1e3)+\"k\":e>=1e3?Math.round(e/100)/10+\"k\":e;return pt(pt({},t.properties),{cluster:!0,cluster_id:t.id,point_count:e,point_count_abbreviated:r})}function ft(t){return t/360+.5}function ht(t){var e=Math.sin(t*Math.PI/180),r=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return r<0?0:r>1?1:r}function pt(t,e){for(var r in e)t[r]=e[r];return t}function dt(t){return t.x}function gt(t){return t.y}function vt(t,e,r,n,i,a){var o=i-r,s=a-n;if(0!==o||0!==s){var l=((t-r)*o+(e-n)*s)/(o*o+s*s);l>1?(r=i,n=a):l>0&&(r+=o*l,n+=s*l)}return(o=t-r)*o+(s=e-n)*s}function mt(t,e,r,n){var i={id:t||null,type:e,geometry:r,tags:n,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return function(t){var e=t.geometry,r=t.type;if(\"Point\"===r||\"MultiPoint\"===r||\"LineString\"===r)yt(t,e);else if(\"Polygon\"===r||\"MultiLineString\"===r)for(var n=0;n<e.length;n++)yt(t,e[n]);else if(\"MultiPolygon\"===r)for(n=0;n<e.length;n++)for(var i=0;i<e[n].length;i++)yt(t,e[n][i])}(i),i}function yt(t,e){for(var r=0;r<e.length;r+=3)t.minX=Math.min(t.minX,e[r]),t.minY=Math.min(t.minY,e[r+1]),t.maxX=Math.max(t.maxX,e[r]),t.maxY=Math.max(t.maxY,e[r+1])}function xt(t,e,r){if(e.geometry){var n=e.geometry.coordinates,i=e.geometry.type,a=Math.pow(r.tolerance/((1<<r.maxZoom)*r.extent),2),o=[];if(\"Point\"===i)bt(n,o);else if(\"MultiPoint\"===i)for(var s=0;s<n.length;s++)bt(n[s],o);else if(\"LineString\"===i)_t(n,o,a,!1);else if(\"MultiLineString\"===i)if(r.lineMetrics)for(s=0;s<n.length;s++)return o=[],_t(n[s],o,a,!1),void t.push(mt(e.id,\"LineString\",o,e.properties));else wt(n,o,a,!1);else if(\"Polygon\"===i)wt(n,o,a,!0);else{if(\"MultiPolygon\"!==i){if(\"GeometryCollection\"===i){for(s=0;s<e.geometry.geometries.length;s++)xt(t,{id:e.id,geometry:e.geometry.geometries[s],properties:e.properties},r);return}throw new Error(\"Input data is not a valid GeoJSON object.\")}for(s=0;s<n.length;s++){var l=[];wt(n[s],l,a,!0),o.push(l)}}t.push(mt(e.id,i,o,e.properties))}}function bt(t,e){e.push(kt(t[0])),e.push(Mt(t[1])),e.push(0)}function _t(t,e,r,n){for(var i,a,o=0,s=0;s<t.length;s++){var l=kt(t[s][0]),c=Mt(t[s][1]);e.push(l),e.push(c),e.push(0),s>0&&(o+=n?(i*c-l*a)/2:Math.sqrt(Math.pow(l-i,2)+Math.pow(c-a,2))),i=l,a=c}var u=e.length-3;e[2]=1,function t(e,r,n,i){for(var a,o=i,s=e[r],l=e[r+1],c=e[n],u=e[n+1],f=r+3;f<n;f+=3){var h=vt(e[f],e[f+1],s,l,c,u);h>o&&(a=f,o=h)}o>i&&(a-r>3&&t(e,r,a,i),e[a+2]=o,n-a>3&&t(e,a,n,i))}(e,0,u,r),e[u+2]=1,e.size=Math.abs(o),e.start=0,e.end=e.size}function wt(t,e,r,n){for(var i=0;i<t.length;i++){var a=[];_t(t[i],a,r,n),e.push(a)}}function kt(t){return t/360+.5}function Mt(t){var e=Math.sin(t*Math.PI/180),r=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return r<0?0:r>1?1:r}function At(t,e,r,n,i,a,o,s){if(n/=e,a>=(r/=e)&&o<=n)return t;if(a>n||o<r)return null;for(var l=[],c=0;c<t.length;c++){var u=t[c],f=u.geometry,h=u.type,p=0===i?u.minX:u.minY,d=0===i?u.maxX:u.maxY;if(p>=r&&d<=n)l.push(u);else if(!(p>n||d<r)){var g=[];if(\"Point\"===h||\"MultiPoint\"===h)Tt(f,g,r,n,i);else if(\"LineString\"===h)St(f,g,r,n,i,!1,s.lineMetrics);else if(\"MultiLineString\"===h)Ct(f,g,r,n,i,!1);else if(\"Polygon\"===h)Ct(f,g,r,n,i,!0);else if(\"MultiPolygon\"===h)for(var v=0;v<f.length;v++){var m=[];Ct(f[v],m,r,n,i,!0),m.length&&g.push(m)}if(g.length){if(s.lineMetrics&&\"LineString\"===h){for(v=0;v<g.length;v++)l.push(mt(u.id,h,g[v],u.tags));continue}\"LineString\"!==h&&\"MultiLineString\"!==h||(1===g.length?(h=\"LineString\",g=g[0]):h=\"MultiLineString\"),\"Point\"!==h&&\"MultiPoint\"!==h||(h=3===g.length?\"Point\":\"MultiPoint\"),l.push(mt(u.id,h,g,u.tags))}}}return l.length?l:null}function Tt(t,e,r,n,i){for(var a=0;a<t.length;a+=3){var o=t[a+i];o>=r&&o<=n&&(e.push(t[a]),e.push(t[a+1]),e.push(t[a+2]))}}function St(t,e,r,n,i,a,o){for(var s,l,c=Et(t),u=0===i?zt:Ot,f=t.start,h=0;h<t.length-3;h+=3){var p=t[h],d=t[h+1],g=t[h+2],v=t[h+3],m=t[h+4],y=0===i?p:d,x=0===i?v:m,b=!1;o&&(s=Math.sqrt(Math.pow(p-v,2)+Math.pow(d-m,2))),y<r?x>=r&&(l=u(c,p,d,v,m,r),o&&(c.start=f+s*l)):y>n?x<=n&&(l=u(c,p,d,v,m,n),o&&(c.start=f+s*l)):Lt(c,p,d,g),x<r&&y>=r&&(l=u(c,p,d,v,m,r),b=!0),x>n&&y<=n&&(l=u(c,p,d,v,m,n),b=!0),!a&&b&&(o&&(c.end=f+s*l),e.push(c),c=Et(t)),o&&(f+=s)}var _=t.length-3;p=t[_],d=t[_+1],g=t[_+2],(y=0===i?p:d)>=r&&y<=n&&Lt(c,p,d,g),_=c.length-3,a&&_>=3&&(c[_]!==c[0]||c[_+1]!==c[1])&&Lt(c,c[0],c[1],c[2]),c.length&&e.push(c)}function Et(t){var e=[];return e.size=t.size,e.start=t.start,e.end=t.end,e}function Ct(t,e,r,n,i,a){for(var o=0;o<t.length;o++)St(t[o],e,r,n,i,a,!1)}function Lt(t,e,r,n){t.push(e),t.push(r),t.push(n)}function zt(t,e,r,n,i,a){var o=(a-e)/(n-e);return t.push(a),t.push(r+(i-r)*o),t.push(1),o}function Ot(t,e,r,n,i,a){var o=(a-r)/(i-r);return t.push(e+(n-e)*o),t.push(a),t.push(1),o}function It(t,e){for(var r=[],n=0;n<t.length;n++){var i,a=t[n],o=a.type;if(\"Point\"===o||\"MultiPoint\"===o||\"LineString\"===o)i=Pt(a.geometry,e);else if(\"MultiLineString\"===o||\"Polygon\"===o){i=[];for(var s=0;s<a.geometry.length;s++)i.push(Pt(a.geometry[s],e))}else if(\"MultiPolygon\"===o)for(i=[],s=0;s<a.geometry.length;s++){for(var l=[],c=0;c<a.geometry[s].length;c++)l.push(Pt(a.geometry[s][c],e));i.push(l)}r.push(mt(a.id,o,i,a.tags))}return r}function Pt(t,e){var r=[];r.size=t.size,void 0!==t.start&&(r.start=t.start,r.end=t.end);for(var n=0;n<t.length;n+=3)r.push(t[n]+e,t[n+1],t[n+2]);return r}function Dt(t,e){if(t.transformed)return t;var r,n,i,a=1<<t.z,o=t.x,s=t.y;for(r=0;r<t.features.length;r++){var l=t.features[r],c=l.geometry,u=l.type;if(l.geometry=[],1===u)for(n=0;n<c.length;n+=2)l.geometry.push(Rt(c[n],c[n+1],e,a,o,s));else for(n=0;n<c.length;n++){var f=[];for(i=0;i<c[n].length;i+=2)f.push(Rt(c[n][i],c[n][i+1],e,a,o,s));l.geometry.push(f)}}return t.transformed=!0,t}function Rt(t,e,r,n,i,a){return[Math.round(r*(t*n-i)),Math.round(r*(e*n-a))]}function Bt(t,e,r,n,i){for(var a=e===i.maxZoom?0:i.tolerance/((1<<e)*i.extent),o={features:[],numPoints:0,numSimplified:0,numFeatures:0,source:null,x:r,y:n,z:e,transformed:!1,minX:2,minY:1,maxX:-1,maxY:0},s=0;s<t.length;s++){o.numFeatures++,Ft(o,t[s],a,i);var l=t[s].minX,c=t[s].minY,u=t[s].maxX,f=t[s].maxY;l<o.minX&&(o.minX=l),c<o.minY&&(o.minY=c),u>o.maxX&&(o.maxX=u),f>o.maxY&&(o.maxY=f)}return o}function Ft(t,e,r,n){var i=e.geometry,a=e.type,o=[];if(\"Point\"===a||\"MultiPoint\"===a)for(var s=0;s<i.length;s+=3)o.push(i[s]),o.push(i[s+1]),t.numPoints++,t.numSimplified++;else if(\"LineString\"===a)Nt(o,i,t,r,!1,!1);else if(\"MultiLineString\"===a||\"Polygon\"===a)for(s=0;s<i.length;s++)Nt(o,i[s],t,r,\"Polygon\"===a,0===s);else if(\"MultiPolygon\"===a)for(var l=0;l<i.length;l++){var c=i[l];for(s=0;s<c.length;s++)Nt(o,c[s],t,r,!0,0===s)}if(o.length){var u=e.tags||null;if(\"LineString\"===a&&n.lineMetrics){for(var f in u={},e.tags)u[f]=e.tags[f];u.mapbox_clip_start=i.start/i.size,u.mapbox_clip_end=i.end/i.size}var h={geometry:o,type:\"Polygon\"===a||\"MultiPolygon\"===a?3:\"LineString\"===a||\"MultiLineString\"===a?2:1,tags:u};null!==e.id&&(h.id=e.id),t.features.push(h)}}function Nt(t,e,r,n,i,a){var o=n*n;if(n>0&&e.size<(i?o:n))r.numPoints+=e.length/3;else{for(var s=[],l=0;l<e.length;l+=3)(0===n||e[l+2]>o)&&(r.numSimplified++,s.push(e[l]),s.push(e[l+1])),r.numPoints++;i&&function(t,e){for(var r=0,n=0,i=t.length,a=i-2;n<i;a=n,n+=2)r+=(t[n]-t[a])*(t[n+1]+t[a+1]);if(r>0===e)for(n=0,i=t.length;n<i/2;n+=2){var o=t[n],s=t[n+1];t[n]=t[i-2-n],t[n+1]=t[i-1-n],t[i-2-n]=o,t[i-1-n]=s}}(s,a),t.push(s)}}function jt(t,e){var r=(e=this.options=function(t,e){for(var r in e)t[r]=e[r];return t}(Object.create(this.options),e)).debug;if(r&&console.time(\"preprocess data\"),e.maxZoom<0||e.maxZoom>24)throw new Error(\"maxZoom should be in the 0-24 range\");var n=function(t,e){var r=[];if(\"FeatureCollection\"===t.type)for(var n=0;n<t.features.length;n++)xt(r,t.features[n],e);else\"Feature\"===t.type?xt(r,t,e):xt(r,{geometry:t},e);return r}(t,e);this.tiles={},this.tileCoords=[],r&&(console.timeEnd(\"preprocess data\"),console.log(\"index: maxZoom: %d, maxPoints: %d\",e.indexMaxZoom,e.indexMaxPoints),console.time(\"generate tiles\"),this.stats={},this.total=0),(n=function(t,e){var r=e.buffer/e.extent,n=t,i=At(t,1,-1-r,r,0,-1,2,e),a=At(t,1,1-r,2+r,0,-1,2,e);return(i||a)&&(n=At(t,1,-r,1+r,0,-1,2,e)||[],i&&(n=It(i,1).concat(n)),a&&(n=n.concat(It(a,-1)))),n}(n,e)).length&&this.splitTile(n,0,0,0),r&&(n.length&&console.log(\"features: %d, points: %d\",this.tiles[0].numFeatures,this.tiles[0].numPoints),console.timeEnd(\"generate tiles\"),console.log(\"tiles generated:\",this.total,JSON.stringify(this.stats)))}function Vt(t,e,r){return 32*((1<<t)*r+e)+t}function Ut(t,e){var r=t.tileID.canonical;if(!this._geoJSONIndex)return e(null,null);var n=this._geoJSONIndex.getTile(r.z,r.x,r.y);if(!n)return e(null,null);var i=new R(n.features),a=V(i);0===a.byteOffset&&a.byteLength===a.buffer.byteLength||(a=new Uint8Array(a)),e(null,{vectorTile:i,rawData:a.buffer})}ot.prototype={options:{minZoom:0,maxZoom:16,radius:40,extent:512,nodeSize:64,log:!1,reduce:null,initial:function(){return{}},map:function(t){return t}},load:function(t){var e=this.options.log;e&&console.time(\"total time\");var r=\"prepare \"+t.length+\" points\";e&&console.time(r),this.points=t;var n=t.map(lt);e&&console.timeEnd(r);for(var i=this.options.maxZoom;i>=this.options.minZoom;i--){var a=+Date.now();this.trees[i+1]=rt(n,dt,gt,this.options.nodeSize,Float32Array),n=this._cluster(n,i),e&&console.log(\"z%d: %d clusters in %dms\",i,n.length,+Date.now()-a)}return this.trees[this.options.minZoom]=rt(n,dt,gt,this.options.nodeSize,Float32Array),e&&console.timeEnd(\"total time\"),this},getClusters:function(t,e){for(var r=this.trees[this._limitZoom(e)],n=r.range(ft(t[0]),ht(t[3]),ft(t[2]),ht(t[1])),i=[],a=0;a<n.length;a++){var o=r.points[n[a]];i.push(o.numPoints?ct(o):this.points[o.id])}return i},getChildren:function(t,e){for(var r=this.trees[e+1].points[t],n=this.options.radius/(this.options.extent*Math.pow(2,e)),i=this.trees[e+1].within(r.x,r.y,n),a=[],o=0;o<i.length;o++){var s=this.trees[e+1].points[i[o]];s.parentId===t&&a.push(s.numPoints?ct(s):this.points[s.id])}return a},getLeaves:function(t,e,r,n){r=r||10,n=n||0;var i=[];return this._appendLeaves(i,t,e,r,n,0),i},getTile:function(t,e,r){var n=this.trees[this._limitZoom(t)],i=Math.pow(2,t),a=this.options.extent,o=this.options.radius/a,s=(r-o)/i,l=(r+1+o)/i,c={features:[]};return this._addTileFeatures(n.range((e-o)/i,s,(e+1+o)/i,l),n.points,e,r,i,c),0===e&&this._addTileFeatures(n.range(1-o/i,s,1,l),n.points,i,r,i,c),e===i-1&&this._addTileFeatures(n.range(0,s,o/i,l),n.points,-1,r,i,c),c.features.length?c:null},getClusterExpansionZoom:function(t,e){for(;e<this.options.maxZoom;){var r=this.getChildren(t,e);if(e++,1!==r.length)break;t=r[0].properties.cluster_id}return e},_appendLeaves:function(t,e,r,n,i,a){for(var o=this.getChildren(e,r),s=0;s<o.length;s++){var l=o[s].properties;if(l.cluster?a+l.point_count<=i?a+=l.point_count:a=this._appendLeaves(t,l.cluster_id,r+1,n,i,a):a<i?a++:t.push(o[s]),t.length===n)break}return a},_addTileFeatures:function(t,e,r,n,i,a){for(var o=0;o<t.length;o++){var s=e[t[o]];a.features.push({type:1,geometry:[[Math.round(this.options.extent*(s.x*i-r)),Math.round(this.options.extent*(s.y*i-n))]],tags:s.numPoints?ut(s):this.points[s.id].properties})}},_limitZoom:function(t){return Math.max(this.options.minZoom,Math.min(t,this.options.maxZoom+1))},_cluster:function(t,e){for(var r=[],n=this.options.radius/(this.options.extent*Math.pow(2,e)),i=0;i<t.length;i++){var a=t[i];if(!(a.zoom<=e)){a.zoom=e;var o=this.trees[e+1],s=o.within(a.x,a.y,n),l=a.numPoints||1,c=a.x*l,u=a.y*l,f=null;this.options.reduce&&(f=this.options.initial(),this._accumulate(f,a));for(var h=0;h<s.length;h++){var p=o.points[s[h]];if(e<p.zoom){var d=p.numPoints||1;p.zoom=e,c+=p.x*d,u+=p.y*d,l+=d,p.parentId=i,this.options.reduce&&this._accumulate(f,p)}}1===l?r.push(a):(a.parentId=i,r.push(st(c/l,u/l,l,i,f)))}}return r},_accumulate:function(t,e){var r=e.numPoints?e.properties:this.options.map(this.points[e.id].properties);this.options.reduce(t,r)}},jt.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,debug:0},jt.prototype.splitTile=function(t,e,r,n,i,a,o){for(var s=[t,e,r,n],l=this.options,c=l.debug;s.length;){n=s.pop(),r=s.pop(),e=s.pop(),t=s.pop();var u=1<<e,f=Vt(e,r,n),h=this.tiles[f];if(!h&&(c>1&&console.time(\"creation\"),h=this.tiles[f]=Bt(t,e,r,n,l),this.tileCoords.push({z:e,x:r,y:n}),c)){c>1&&(console.log(\"tile z%d-%d-%d (features: %d, points: %d, simplified: %d)\",e,r,n,h.numFeatures,h.numPoints,h.numSimplified),console.timeEnd(\"creation\"));var p=\"z\"+e;this.stats[p]=(this.stats[p]||0)+1,this.total++}if(h.source=t,i){if(e===l.maxZoom||e===i)continue;var d=1<<i-e;if(r!==Math.floor(a/d)||n!==Math.floor(o/d))continue}else if(e===l.indexMaxZoom||h.numPoints<=l.indexMaxPoints)continue;if(h.source=null,0!==t.length){c>1&&console.time(\"clipping\");var g,v,m,y,x,b,_=.5*l.buffer/l.extent,w=.5-_,k=.5+_,M=1+_;g=v=m=y=null,x=At(t,u,r-_,r+k,0,h.minX,h.maxX,l),b=At(t,u,r+w,r+M,0,h.minX,h.maxX,l),t=null,x&&(g=At(x,u,n-_,n+k,1,h.minY,h.maxY,l),v=At(x,u,n+w,n+M,1,h.minY,h.maxY,l),x=null),b&&(m=At(b,u,n-_,n+k,1,h.minY,h.maxY,l),y=At(b,u,n+w,n+M,1,h.minY,h.maxY,l),b=null),c>1&&console.timeEnd(\"clipping\"),s.push(g||[],e+1,2*r,2*n),s.push(v||[],e+1,2*r,2*n+1),s.push(m||[],e+1,2*r+1,2*n),s.push(y||[],e+1,2*r+1,2*n+1)}}},jt.prototype.getTile=function(t,e,r){var n=this.options,i=n.extent,a=n.debug;if(t<0||t>24)return null;var o=1<<t,s=Vt(t,e=(e%o+o)%o,r);if(this.tiles[s])return Dt(this.tiles[s],i);a>1&&console.log(\"drilling down to z%d-%d-%d\",t,e,r);for(var l,c=t,u=e,f=r;!l&&c>0;)c--,u=Math.floor(u/2),f=Math.floor(f/2),l=this.tiles[Vt(c,u,f)];return l&&l.source?(a>1&&console.log(\"found parent tile z%d-%d-%d\",c,u,f),a>1&&console.time(\"drilling down\"),this.splitTile(l.source,c,u,f,t,e,r),a>1&&console.timeEnd(\"drilling down\"),this.tiles[s]?Dt(this.tiles[s],i):null):null};var qt=function(e){function r(t,r,n){e.call(this,t,r,Ut),n&&(this.loadGeoJSON=n)}return e&&(r.__proto__=e),r.prototype=Object.create(e&&e.prototype),r.prototype.constructor=r,r.prototype.loadData=function(t,e){this._pendingCallback&&this._pendingCallback(null,{abandoned:!0}),this._pendingCallback=e,this._pendingLoadDataParams=t,this._state&&\"Idle\"!==this._state?this._state=\"NeedsLoadData\":(this._state=\"Coalescing\",this._loadData())},r.prototype._loadData=function(){var t=this;if(this._pendingCallback&&this._pendingLoadDataParams){var e=this._pendingCallback,r=this._pendingLoadDataParams;delete this._pendingCallback,delete this._pendingLoadDataParams,this.loadGeoJSON(r,function(n,i){if(n||!i)return e(n);if(\"object\"!=typeof i)return e(new Error(\"Input data is not a valid GeoJSON object.\"));!function t(e,r){switch(e&&e.type||null){case\"FeatureCollection\":return e.features=e.features.map(z(t,r)),e;case\"Feature\":return e.geometry=t(e.geometry,r),e;case\"Polygon\":case\"MultiPolygon\":return function(t,e){return\"Polygon\"===t.type?t.coordinates=O(t.coordinates,e):\"MultiPolygon\"===t.type&&(t.coordinates=t.coordinates.map(z(O,e))),t}(e,r);default:return e}}(i,!0);try{t._geoJSONIndex=r.cluster?function(t){return new ot(t)}(r.superclusterOptions).load(i.features):new jt(i,r.geojsonVtOptions)}catch(n){return e(n)}t.loaded={};var a={};if(r.request&&r.request.collectResourceTiming){var o=w(r.request.url);o&&(a.resourceTiming={},a.resourceTiming[r.source]=JSON.parse(JSON.stringify(o)))}e(null,a)})}},r.prototype.coalesce=function(){\"Coalescing\"===this._state?this._state=\"Idle\":\"NeedsLoadData\"===this._state&&(this._state=\"Coalescing\",this._loadData())},r.prototype.reloadTile=function(t,r){var n=this.loaded,i=t.uid;return n&&n[i]?e.prototype.reloadTile.call(this,t,r):this.loadTile(t,r)},r.prototype.loadGeoJSON=function(e,r){if(e.request)t.getJSON(e.request,r);else{if(\"string\"!=typeof e.data)return r(new Error(\"Input data is not a valid GeoJSON object.\"));try{return r(null,JSON.parse(e.data))}catch(t){return r(new Error(\"Input data is not a valid GeoJSON object.\"))}}},r.prototype.removeSource=function(t,e){this._pendingCallback&&this._pendingCallback(null,{abandoned:!0}),e()},r}(M),Ht=function(e){var r=this;this.self=e,this.actor=new t.default$7(e,this),this.layerIndexes={},this.workerSourceTypes={vector:M,geojson:qt},this.workerSources={},this.demWorkerSources={},this.self.registerWorkerSource=function(t,e){if(r.workerSourceTypes[t])throw new Error('Worker source with name \"'+t+'\" already registered.');r.workerSourceTypes[t]=e},this.self.registerRTLTextPlugin=function(e){if(t.plugin.isLoaded())throw new Error(\"RTL text plugin already registered.\");t.plugin.applyArabicShaping=e.applyArabicShaping,t.plugin.processBidirectionalText=e.processBidirectionalText}};return Ht.prototype.setLayers=function(t,e,r){this.getLayerIndex(t).replace(e),r()},Ht.prototype.updateLayers=function(t,e,r){this.getLayerIndex(t).update(e.layers,e.removedIds),r()},Ht.prototype.loadTile=function(t,e,r){this.getWorkerSource(t,e.type,e.source).loadTile(e,r)},Ht.prototype.loadDEMTile=function(t,e,r){this.getDEMWorkerSource(t,e.source).loadTile(e,r)},Ht.prototype.reloadTile=function(t,e,r){this.getWorkerSource(t,e.type,e.source).reloadTile(e,r)},Ht.prototype.abortTile=function(t,e,r){this.getWorkerSource(t,e.type,e.source).abortTile(e,r)},Ht.prototype.removeTile=function(t,e,r){this.getWorkerSource(t,e.type,e.source).removeTile(e,r)},Ht.prototype.removeDEMTile=function(t,e){this.getDEMWorkerSource(t,e.source).removeTile(e)},Ht.prototype.removeSource=function(t,e,r){if(this.workerSources[t]&&this.workerSources[t][e.type]&&this.workerSources[t][e.type][e.source]){var n=this.workerSources[t][e.type][e.source];delete this.workerSources[t][e.type][e.source],void 0!==n.removeSource?n.removeSource(e,r):r()}},Ht.prototype.loadWorkerSource=function(t,e,r){try{this.self.importScripts(e.url),r()}catch(t){r(t.toString())}},Ht.prototype.loadRTLTextPlugin=function(e,r,n){try{t.plugin.isLoaded()||(this.self.importScripts(r),n(t.plugin.isLoaded()?null:new Error(\"RTL Text Plugin failed to import scripts from \"+r)))}catch(t){n(t.toString())}},Ht.prototype.getLayerIndex=function(t){var e=this.layerIndexes[t];return e||(e=this.layerIndexes[t]=new n),e},Ht.prototype.getWorkerSource=function(t,e,r){var n=this;if(this.workerSources[t]||(this.workerSources[t]={}),this.workerSources[t][e]||(this.workerSources[t][e]={}),!this.workerSources[t][e][r]){var i={send:function(e,r,i){n.actor.send(e,r,i,t)}};this.workerSources[t][e][r]=new this.workerSourceTypes[e](i,this.getLayerIndex(t))}return this.workerSources[t][e][r]},Ht.prototype.getDEMWorkerSource=function(t,e){return this.demWorkerSources[t]||(this.demWorkerSources[t]={}),this.demWorkerSources[t][e]||(this.demWorkerSources[t][e]=new A),this.demWorkerSources[t][e]},\"undefined\"!=typeof WorkerGlobalScope&&\"undefined\"!=typeof self&&self instanceof WorkerGlobalScope&&new Ht(self),Ht}),i(0,function(t){var e=t.createCommonjsModule(function(t){function e(t){return!!(\"undefined\"!=typeof window&&\"undefined\"!=typeof document&&Array.prototype&&Array.prototype.every&&Array.prototype.filter&&Array.prototype.forEach&&Array.prototype.indexOf&&Array.prototype.lastIndexOf&&Array.prototype.map&&Array.prototype.some&&Array.prototype.reduce&&Array.prototype.reduceRight&&Array.isArray&&Function.prototype&&Function.prototype.bind&&Object.keys&&Object.create&&Object.getPrototypeOf&&Object.getOwnPropertyNames&&Object.isSealed&&Object.isFrozen&&Object.isExtensible&&Object.getOwnPropertyDescriptor&&Object.defineProperty&&Object.defineProperties&&Object.seal&&Object.freeze&&Object.preventExtensions&&\"JSON\"in window&&\"parse\"in JSON&&\"stringify\"in JSON&&function(){if(!(\"Worker\"in window&&\"Blob\"in window&&\"URL\"in window))return!1;var t,e,r=new Blob([\"\"],{type:\"text/javascript\"}),n=URL.createObjectURL(r);try{e=new Worker(n),t=!0}catch(e){t=!1}return e&&e.terminate(),URL.revokeObjectURL(n),t}()&&\"Uint8ClampedArray\"in window&&function(t){return void 0===r[t]&&(r[t]=function(t){var r=document.createElement(\"canvas\"),n=Object.create(e.webGLContextAttributes);return n.failIfMajorPerformanceCaveat=t,r.probablySupportsContext?r.probablySupportsContext(\"webgl\",n)||r.probablySupportsContext(\"experimental-webgl\",n):r.supportsContext?r.supportsContext(\"webgl\",n)||r.supportsContext(\"experimental-webgl\",n):r.getContext(\"webgl\",n)||r.getContext(\"experimental-webgl\",n)}(t)),r[t]}(t&&t.failIfMajorPerformanceCaveat))}t.exports?t.exports=e:window&&(window.mapboxgl=window.mapboxgl||{},window.mapboxgl.supported=e);var r={};e.webGLContextAttributes={antialias:!1,alpha:!0,stencil:!0,depth:!0}}),r=t.default.performance&&t.default.performance.now?t.default.performance.now.bind(t.default.performance):Date.now.bind(Date),n=t.default.requestAnimationFrame||t.default.mozRequestAnimationFrame||t.default.webkitRequestAnimationFrame||t.default.msRequestAnimationFrame,i=t.default.cancelAnimationFrame||t.default.mozCancelAnimationFrame||t.default.webkitCancelAnimationFrame||t.default.msCancelAnimationFrame,a={now:r,frame:function(t){return n(t)},cancelFrame:function(t){return i(t)},getImageData:function(e){var r=t.default.document.createElement(\"canvas\"),n=r.getContext(\"2d\");if(!n)throw new Error(\"failed to create canvas 2d context\");return r.width=e.width,r.height=e.height,n.drawImage(e,0,0,e.width,e.height),n.getImageData(0,0,e.width,e.height)},hardwareConcurrency:t.default.navigator.hardwareConcurrency||4,get devicePixelRatio(){return t.default.devicePixelRatio},supportsWebp:!1};if(t.default.document){var o=t.default.document.createElement(\"img\");o.onload=function(){a.supportsWebp=!0},o.src=\"data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=\"}var s={create:function(e,r,n){var i=t.default.document.createElement(e);return r&&(i.className=r),n&&n.appendChild(i),i},createNS:function(e,r){return t.default.document.createElementNS(e,r)}},l=t.default.document?t.default.document.documentElement.style:null;function c(t){if(!l)return null;for(var e=0;e<t.length;e++)if(t[e]in l)return t[e];return t[0]}var u,f=c([\"userSelect\",\"MozUserSelect\",\"WebkitUserSelect\",\"msUserSelect\"]);s.disableDrag=function(){l&&f&&(u=l[f],l[f]=\"none\")},s.enableDrag=function(){l&&f&&(l[f]=u)};var h=c([\"transform\",\"WebkitTransform\"]);s.setTransform=function(t,e){t.style[h]=e};var p=!1;try{var d=Object.defineProperty({},\"passive\",{get:function(){p=!0}});t.default.addEventListener(\"test\",d,d),t.default.removeEventListener(\"test\",d,d)}catch(t){p=!1}s.addEventListener=function(t,e,r,n){void 0===n&&(n={}),\"passive\"in n&&p?t.addEventListener(e,r,n):t.addEventListener(e,r,n.capture)},s.removeEventListener=function(t,e,r,n){void 0===n&&(n={}),\"passive\"in n&&p?t.removeEventListener(e,r,n):t.removeEventListener(e,r,n.capture)};var g=function(e){e.preventDefault(),e.stopPropagation(),t.default.removeEventListener(\"click\",g,!0)};s.suppressClick=function(){t.default.addEventListener(\"click\",g,!0),t.default.setTimeout(function(){t.default.removeEventListener(\"click\",g,!0)},0)},s.mousePos=function(e,r){var n=e.getBoundingClientRect();return r=r.touches?r.touches[0]:r,new t.default$1(r.clientX-n.left-e.clientLeft,r.clientY-n.top-e.clientTop)},s.touchPos=function(e,r){for(var n=e.getBoundingClientRect(),i=[],a=\"touchend\"===r.type?r.changedTouches:r.touches,o=0;o<a.length;o++)i.push(new t.default$1(a[o].clientX-n.left-e.clientLeft,a[o].clientY-n.top-e.clientTop));return i},s.mouseButton=function(e){return void 0!==t.default.InstallTrigger&&2===e.button&&e.ctrlKey&&t.default.navigator.platform.toUpperCase().indexOf(\"MAC\")>=0?0:e.button},s.remove=function(t){t.parentNode&&t.parentNode.removeChild(t)};var v={API_URL:\"https://api.mapbox.com\",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null},m=\"See https://www.mapbox.com/api-documentation/#access-tokens\";function y(t,e){var r=A(v.API_URL);if(t.protocol=r.protocol,t.authority=r.authority,\"/\"!==r.path&&(t.path=\"\"+r.path+t.path),!v.REQUIRE_ACCESS_TOKEN)return T(t);if(!(e=e||v.ACCESS_TOKEN))throw new Error(\"An API access token is required to use Mapbox GL. \"+m);if(\"s\"===e[0])throw new Error(\"Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). \"+m);return t.params.push(\"access_token=\"+e),T(t)}function x(t){return 0===t.indexOf(\"mapbox:\")}var b=function(t,e){if(!x(t))return t;var r=A(t);return r.path=\"/v4/\"+r.authority+\".json\",r.params.push(\"secure\"),y(r,e)},_=function(t,e,r,n){var i=A(t);return x(t)?(i.path=\"/styles/v1\"+i.path+\"/sprite\"+e+r,y(i,n)):(i.path+=\"\"+e+r,T(i))},w=/(\\.(png|jpg)\\d*)(?=$)/,k=function(t,e,r){if(!e||!x(e))return t;var n=A(t),i=a.devicePixelRatio>=2||512===r?\"@2x\":\"\",o=a.supportsWebp?\".webp\":\"$1\";return n.path=n.path.replace(w,\"\"+i+o),function(t){for(var e=0;e<t.length;e++)0===t[e].indexOf(\"access_token=tk.\")&&(t[e]=\"access_token=\"+(v.ACCESS_TOKEN||\"\"))}(n.params),T(n)},M=/^(\\w+):\\/\\/([^\\/?]*)(\\/[^?]+)?\\??(.+)?/;function A(t){var e=t.match(M);if(!e)throw new Error(\"Unable to parse URL object\");return{protocol:e[1],authority:e[2],path:e[3]||\"/\",params:e[4]?e[4].split(\"&\"):[]}}function T(t){var e=t.params.length?\"?\"+t.params.join(\"&\"):\"\";return t.protocol+\"://\"+t.authority+t.path+e}var S=t.default.HTMLImageElement,E=t.default.HTMLCanvasElement,C=t.default.HTMLVideoElement,L=t.default.ImageData,z=function(t,e,r,n){this.context=t,this.format=r,this.texture=t.gl.createTexture(),this.update(e,n)};z.prototype.update=function(t,e){var r=t.width,n=t.height,i=!this.size||this.size[0]!==r||this.size[1]!==n,a=this.context,o=a.gl;this.useMipmap=Boolean(e&&e.useMipmap),o.bindTexture(o.TEXTURE_2D,this.texture),i?(this.size=[r,n],a.pixelStoreUnpack.set(1),this.format!==o.RGBA||e&&!1===e.premultiply||a.pixelStoreUnpackPremultiplyAlpha.set(!0),t instanceof S||t instanceof E||t instanceof C||t instanceof L?o.texImage2D(o.TEXTURE_2D,0,this.format,this.format,o.UNSIGNED_BYTE,t):o.texImage2D(o.TEXTURE_2D,0,this.format,r,n,0,this.format,o.UNSIGNED_BYTE,t.data)):t instanceof S||t instanceof E||t instanceof C||t instanceof L?o.texSubImage2D(o.TEXTURE_2D,0,0,0,o.RGBA,o.UNSIGNED_BYTE,t):o.texSubImage2D(o.TEXTURE_2D,0,0,0,r,n,o.RGBA,o.UNSIGNED_BYTE,t.data),this.useMipmap&&this.isSizePowerOfTwo()&&o.generateMipmap(o.TEXTURE_2D)},z.prototype.bind=function(t,e,r){var n=this.context.gl;n.bindTexture(n.TEXTURE_2D,this.texture),r!==n.LINEAR_MIPMAP_NEAREST||this.isSizePowerOfTwo()||(r=n.LINEAR),t!==this.filter&&(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,t),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,r||t),this.filter=t),e!==this.wrap&&(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,e),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,e),this.wrap=e)},z.prototype.isSizePowerOfTwo=function(){return this.size[0]===this.size[1]&&Math.log(this.size[0])/Math.LN2%1==0},z.prototype.destroy=function(){this.context.gl.deleteTexture(this.texture),this.texture=null};var O=function(){this.images={},this.loaded=!1,this.requestors=[],this.shelfPack=new t.default$2(64,64,{autoResize:!0}),this.patterns={},this.atlasImage=new t.RGBAImage({width:64,height:64}),this.dirty=!0};O.prototype.isLoaded=function(){return this.loaded},O.prototype.setLoaded=function(t){if(this.loaded!==t&&(this.loaded=t,t)){for(var e=0,r=this.requestors;e<r.length;e+=1){var n=r[e],i=n.ids,a=n.callback;this._notify(i,a)}this.requestors=[]}},O.prototype.getImage=function(t){return this.images[t]},O.prototype.addImage=function(t,e){this.images[t]=e},O.prototype.removeImage=function(t){delete this.images[t];var e=this.patterns[t];e&&(this.shelfPack.unref(e.bin),delete this.patterns[t])},O.prototype.getImages=function(t,e){var r=!0;if(!this.isLoaded())for(var n=0,i=t;n<i.length;n+=1){var a=i[n];this.images[a]||(r=!1)}this.isLoaded()||r?this._notify(t,e):this.requestors.push({ids:t,callback:e})},O.prototype._notify=function(t,e){for(var r={},n=0,i=t;n<i.length;n+=1){var a=i[n],o=this.images[a];o&&(r[a]={data:o.data.clone(),pixelRatio:o.pixelRatio,sdf:o.sdf})}e(null,r)},O.prototype.getPixelSize=function(){return{width:this.shelfPack.w,height:this.shelfPack.h}},O.prototype.getPattern=function(e){var r=this.patterns[e];if(r)return r.position;var n=this.getImage(e);if(!n)return null;var i=n.data.width+2,a=n.data.height+2,o=this.shelfPack.packOne(i,a);if(!o)return null;this.atlasImage.resize(this.getPixelSize());var s=n.data,l=this.atlasImage,c=o.x+1,u=o.y+1,f=s.width,h=s.height;t.RGBAImage.copy(s,l,{x:0,y:0},{x:c,y:u},{width:f,height:h}),t.RGBAImage.copy(s,l,{x:0,y:h-1},{x:c,y:u-1},{width:f,height:1}),t.RGBAImage.copy(s,l,{x:0,y:0},{x:c,y:u+h},{width:f,height:1}),t.RGBAImage.copy(s,l,{x:f-1,y:0},{x:c-1,y:u},{width:1,height:h}),t.RGBAImage.copy(s,l,{x:0,y:0},{x:c+f,y:u},{width:1,height:h}),this.dirty=!0;var p=new t.ImagePosition(o,n);return this.patterns[e]={bin:o,position:p},p},O.prototype.bind=function(t){var e=t.gl;this.atlasTexture?this.dirty&&(this.atlasTexture.update(this.atlasImage),this.dirty=!1):this.atlasTexture=new z(t,this.atlasImage,e.RGBA),this.atlasTexture.bind(e.LINEAR,e.CLAMP_TO_EDGE)};var I=D,P=1e20;function D(t,e,r,n,i,a){this.fontSize=t||24,this.buffer=void 0===e?3:e,this.cutoff=n||.25,this.fontFamily=i||\"sans-serif\",this.fontWeight=a||\"normal\",this.radius=r||8;var o=this.size=this.fontSize+2*this.buffer;this.canvas=document.createElement(\"canvas\"),this.canvas.width=this.canvas.height=o,this.ctx=this.canvas.getContext(\"2d\"),this.ctx.font=this.fontWeight+\" \"+this.fontSize+\"px \"+this.fontFamily,this.ctx.textBaseline=\"middle\",this.ctx.fillStyle=\"black\",this.gridOuter=new Float64Array(o*o),this.gridInner=new Float64Array(o*o),this.f=new Float64Array(o),this.d=new Float64Array(o),this.z=new Float64Array(o+1),this.v=new Int16Array(o),this.middle=Math.round(o/2*(navigator.userAgent.indexOf(\"Gecko/\")>=0?1.2:1))}function R(t,e,r,n,i,a,o){for(var s=0;s<e;s++){for(var l=0;l<r;l++)n[l]=t[l*e+s];for(B(n,i,a,o,r),l=0;l<r;l++)t[l*e+s]=i[l]}for(l=0;l<r;l++){for(s=0;s<e;s++)n[s]=t[l*e+s];for(B(n,i,a,o,e),s=0;s<e;s++)t[l*e+s]=Math.sqrt(i[s])}}function B(t,e,r,n,i){r[0]=0,n[0]=-P,n[1]=+P;for(var a=1,o=0;a<i;a++){for(var s=(t[a]+a*a-(t[r[o]]+r[o]*r[o]))/(2*a-2*r[o]);s<=n[o];)o--,s=(t[a]+a*a-(t[r[o]]+r[o]*r[o]))/(2*a-2*r[o]);r[++o]=a,n[o]=s,n[o+1]=+P}for(a=0,o=0;a<i;a++){for(;n[o+1]<a;)o++;e[a]=(a-r[o])*(a-r[o])+t[r[o]]}}D.prototype.draw=function(t){this.ctx.clearRect(0,0,this.size,this.size),this.ctx.fillText(t,this.buffer,this.middle);for(var e=this.ctx.getImageData(0,0,this.size,this.size),r=new Uint8ClampedArray(this.size*this.size),n=0;n<this.size*this.size;n++){var i=e.data[4*n+3]/255;this.gridOuter[n]=1===i?0:0===i?P:Math.pow(Math.max(0,.5-i),2),this.gridInner[n]=1===i?P:0===i?0:Math.pow(Math.max(0,i-.5),2)}for(R(this.gridOuter,this.size,this.size,this.f,this.d,this.v,this.z),R(this.gridInner,this.size,this.size,this.f,this.d,this.v,this.z),n=0;n<this.size*this.size;n++){var a=this.gridOuter[n]-this.gridInner[n];r[n]=Math.max(0,Math.min(255,Math.round(255-255*(a/this.radius+this.cutoff))))}return r};var F=function(t,e){this.requestTransform=t,this.localIdeographFontFamily=e,this.entries={}};F.prototype.setURL=function(t){this.url=t},F.prototype.getGlyphs=function(e,r){var n=this,i=[];for(var a in e)for(var o=0,s=e[a];o<s.length;o+=1){var l=s[o];i.push({stack:a,id:l})}t.asyncAll(i,function(t,e){var r=t.stack,i=t.id,a=n.entries[r];a||(a=n.entries[r]={glyphs:{},requests:{}});var o=a.glyphs[i];if(void 0===o)if(o=n._tinySDF(a,r,i))e(null,{stack:r,id:i,glyph:o});else{var s=Math.floor(i/256);if(256*s>65535)e(new Error(\"glyphs > 65535 not supported\"));else{var l=a.requests[s];l||(l=a.requests[s]=[],F.loadGlyphRange(r,s,n.url,n.requestTransform,function(t,e){if(e)for(var r in e)a.glyphs[+r]=e[+r];for(var n=0,i=l;n<i.length;n+=1)(0,i[n])(t,e);delete a.requests[s]})),l.push(function(t,n){t?e(t):n&&e(null,{stack:r,id:i,glyph:n[i]||null})})}}else e(null,{stack:r,id:i,glyph:o})},function(t,e){if(t)r(t);else if(e){for(var n={},i=0,a=e;i<a.length;i+=1){var o=a[i],s=o.stack,l=o.id,c=o.glyph;(n[s]||(n[s]={}))[l]=c&&{id:c.id,bitmap:c.bitmap.clone(),metrics:c.metrics}}r(null,n)}})},F.prototype._tinySDF=function(e,r,n){var i=this.localIdeographFontFamily;if(i&&(t.default$4[\"CJK Unified Ideographs\"](n)||t.default$4[\"Hangul Syllables\"](n))){var a=e.tinySDF;if(!a){var o=\"400\";/bold/i.test(r)?o=\"900\":/medium/i.test(r)?o=\"500\":/light/i.test(r)&&(o=\"200\"),a=e.tinySDF=new F.TinySDF(24,3,8,.25,i,o)}return{id:n,bitmap:new t.AlphaImage({width:30,height:30},a.draw(String.fromCharCode(n))),metrics:{width:24,height:24,left:0,top:-8,advance:24}}}},F.loadGlyphRange=function(e,r,n,i,a){var o=256*r,s=o+255,l=i(function(t,e){if(!x(t))return t;var r=A(t);return r.path=\"/fonts/v1\"+r.path,y(r,e)}(n).replace(\"{fontstack}\",e).replace(\"{range}\",o+\"-\"+s),t.ResourceType.Glyphs);t.getArrayBuffer(l,function(e,r){if(e)a(e);else if(r){for(var n={},i=0,o=t.default$3(r.data);i<o.length;i+=1){var s=o[i];n[s.id]=s}a(null,n)}})},F.TinySDF=I;var N=function(){this.specification=t.default$5.light.position};N.prototype.possiblyEvaluate=function(e,r){return t.sphericalToCartesian(e.expression.evaluate(r))},N.prototype.interpolate=function(e,r,n){return{x:t.number(e.x,r.x,n),y:t.number(e.y,r.y,n),z:t.number(e.z,r.z,n)}};var j=new t.Properties({anchor:new t.DataConstantProperty(t.default$5.light.anchor),position:new N,color:new t.DataConstantProperty(t.default$5.light.color),intensity:new t.DataConstantProperty(t.default$5.light.intensity)}),V=function(e){function r(r){e.call(this),this._transitionable=new t.Transitionable(j),this.setLight(r),this._transitioning=this._transitionable.untransitioned()}return e&&(r.__proto__=e),r.prototype=Object.create(e&&e.prototype),r.prototype.constructor=r,r.prototype.getLight=function(){return this._transitionable.serialize()},r.prototype.setLight=function(e){if(!this._validate(t.validateLight,e))for(var r in e){var n=e[r];t.endsWith(r,\"-transition\")?this._transitionable.setTransition(r.slice(0,-\"-transition\".length),n):this._transitionable.setValue(r,n)}},r.prototype.updateTransitions=function(t){this._transitioning=this._transitionable.transitioned(t,this._transitioning)},r.prototype.hasTransition=function(){return this._transitioning.hasTransition()},r.prototype.recalculate=function(t){this.properties=this._transitioning.possiblyEvaluate(t)},r.prototype._validate=function(e,r){return t.emitValidationErrors(this,e.call(t.validateStyle,t.extend({value:r,style:{glyphs:!0,sprite:!0},styleSpec:t.default$5})))},r}(t.Evented),U=function(t,e){this.width=t,this.height=e,this.nextRow=0,this.bytes=4,this.data=new Uint8Array(this.width*this.height*this.bytes),this.positions={}};U.prototype.getDash=function(t,e){var r=t.join(\",\")+String(e);return this.positions[r]||(this.positions[r]=this.addDash(t,e)),this.positions[r]},U.prototype.addDash=function(e,r){var n=r?7:0,i=2*n+1;if(this.nextRow+i>this.height)return t.warnOnce(\"LineAtlas out of space\"),null;for(var a=0,o=0;o<e.length;o++)a+=e[o];for(var s=this.width/a,l=s/2,c=e.length%2==1,u=-n;u<=n;u++)for(var f=this.nextRow+n+u,h=this.width*f,p=c?-e[e.length-1]:0,d=e[0],g=1,v=0;v<this.width;v++){for(;d<v/s;)p=d,d+=e[g],c&&g===e.length-1&&(d+=e[0]),g++;var m=Math.abs(v-p*s),y=Math.abs(v-d*s),x=Math.min(m,y),b=g%2==1,_=void 0;if(r){var w=n?u/n*(l+1):0;if(b){var k=l-Math.abs(w);_=Math.sqrt(x*x+k*k)}else _=l-Math.sqrt(x*x+w*w)}else _=(b?1:-1)*x;this.data[3+4*(h+v)]=Math.max(0,Math.min(255,_+128))}var M={y:(this.nextRow+n+.5)/this.height,height:2*n/this.height,width:a};return this.nextRow+=i,this.dirty=!0,M},U.prototype.bind=function(t){var e=t.gl;this.texture?(e.bindTexture(e.TEXTURE_2D,this.texture),this.dirty&&(this.dirty=!1,e.texSubImage2D(e.TEXTURE_2D,0,0,0,this.width,this.height,e.RGBA,e.UNSIGNED_BYTE,this.data))):(this.texture=e.createTexture(),e.bindTexture(e.TEXTURE_2D,this.texture),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.REPEAT),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.REPEAT),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,this.width,this.height,0,e.RGBA,e.UNSIGNED_BYTE,this.data))};var q=function e(r,n){this.workerPool=r,this.actors=[],this.currentActor=0,this.id=t.uniqueId();for(var i=this.workerPool.acquire(this.id),a=0;a<i.length;a++){var o=i[a],s=new e.Actor(o,n,this.id);s.name=\"Worker \"+a,this.actors.push(s)}};function H(e,r,n){var i=function(e,r){if(e)return n(e);if(r){var i=t.pick(r,[\"tiles\",\"minzoom\",\"maxzoom\",\"attribution\",\"mapbox_logo\",\"bounds\"]);r.vector_layers&&(i.vectorLayers=r.vector_layers,i.vectorLayerIds=i.vectorLayers.map(function(t){return t.id})),n(null,i)}};e.url?t.getJSON(r(b(e.url),t.ResourceType.Source),i):a.frame(function(){return i(null,e)})}q.prototype.broadcast=function(e,r,n){n=n||function(){},t.asyncAll(this.actors,function(t,n){t.send(e,r,n)},n)},q.prototype.send=function(t,e,r,n){return(\"number\"!=typeof n||isNaN(n))&&(n=this.currentActor=(this.currentActor+1)%this.actors.length),this.actors[n].send(t,e,r),n},q.prototype.remove=function(){this.actors.forEach(function(t){t.remove()}),this.actors=[],this.workerPool.release(this.id)},q.Actor=t.default$7;var G=function(t,e){if(isNaN(t)||isNaN(e))throw new Error(\"Invalid LngLat object: (\"+t+\", \"+e+\")\");if(this.lng=+t,this.lat=+e,this.lat>90||this.lat<-90)throw new Error(\"Invalid LngLat latitude value: must be between -90 and 90\")};G.prototype.wrap=function(){return new G(t.wrap(this.lng,-180,180),this.lat)},G.prototype.toArray=function(){return[this.lng,this.lat]},G.prototype.toString=function(){return\"LngLat(\"+this.lng+\", \"+this.lat+\")\"},G.prototype.toBounds=function(t){var e=360*t/40075017,r=e/Math.cos(Math.PI/180*this.lat);return new W(new G(this.lng-r,this.lat-e),new G(this.lng+r,this.lat+e))},G.convert=function(t){if(t instanceof G)return t;if(Array.isArray(t)&&(2===t.length||3===t.length))return new G(Number(t[0]),Number(t[1]));if(!Array.isArray(t)&&\"object\"==typeof t&&null!==t)return new G(Number(t.lng),Number(t.lat));throw new Error(\"`LngLatLike` argument must be specified as a LngLat instance, an object {lng: <lng>, lat: <lat>}, or an array of [<lng>, <lat>]\")};var W=function(t,e){t&&(e?this.setSouthWest(t).setNorthEast(e):4===t.length?this.setSouthWest([t[0],t[1]]).setNorthEast([t[2],t[3]]):this.setSouthWest(t[0]).setNorthEast(t[1]))};W.prototype.setNorthEast=function(t){return this._ne=t instanceof G?new G(t.lng,t.lat):G.convert(t),this},W.prototype.setSouthWest=function(t){return this._sw=t instanceof G?new G(t.lng,t.lat):G.convert(t),this},W.prototype.extend=function(t){var e,r,n=this._sw,i=this._ne;if(t instanceof G)e=t,r=t;else{if(!(t instanceof W))return Array.isArray(t)?t.every(Array.isArray)?this.extend(W.convert(t)):this.extend(G.convert(t)):this;if(e=t._sw,r=t._ne,!e||!r)return this}return n||i?(n.lng=Math.min(e.lng,n.lng),n.lat=Math.min(e.lat,n.lat),i.lng=Math.max(r.lng,i.lng),i.lat=Math.max(r.lat,i.lat)):(this._sw=new G(e.lng,e.lat),this._ne=new G(r.lng,r.lat)),this},W.prototype.getCenter=function(){return new G((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},W.prototype.getSouthWest=function(){return this._sw},W.prototype.getNorthEast=function(){return this._ne},W.prototype.getNorthWest=function(){return new G(this.getWest(),this.getNorth())},W.prototype.getSouthEast=function(){return new G(this.getEast(),this.getSouth())},W.prototype.getWest=function(){return this._sw.lng},W.prototype.getSouth=function(){return this._sw.lat},W.prototype.getEast=function(){return this._ne.lng},W.prototype.getNorth=function(){return this._ne.lat},W.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},W.prototype.toString=function(){return\"LngLatBounds(\"+this._sw.toString()+\", \"+this._ne.toString()+\")\"},W.prototype.isEmpty=function(){return!(this._sw&&this._ne)},W.convert=function(t){return!t||t instanceof W?t:new W(t)};var Y=function(t,e,r){this.bounds=W.convert(this.validateBounds(t)),this.minzoom=e||0,this.maxzoom=r||24};Y.prototype.validateBounds=function(t){return Array.isArray(t)&&4===t.length?[Math.max(-180,t[0]),Math.max(-90,t[1]),Math.min(180,t[2]),Math.min(90,t[3])]:[-180,-90,180,90]},Y.prototype.contains=function(t){var e=Math.floor(this.lngX(this.bounds.getWest(),t.z)),r=Math.floor(this.latY(this.bounds.getNorth(),t.z)),n=Math.ceil(this.lngX(this.bounds.getEast(),t.z)),i=Math.ceil(this.latY(this.bounds.getSouth(),t.z));return t.x>=e&&t.x<n&&t.y>=r&&t.y<i},Y.prototype.lngX=function(t,e){return(t+180)*(Math.pow(2,e)/360)},Y.prototype.latY=function(e,r){var n=t.clamp(Math.sin(Math.PI/180*e),-.9999,.9999),i=Math.pow(2,r)/(2*Math.PI);return Math.pow(2,r-1)+.5*Math.log((1+n)/(1-n))*-i};var X=function(e){function r(r,n,i,a){if(e.call(this),this.id=r,this.dispatcher=i,this.type=\"vector\",this.minzoom=0,this.maxzoom=22,this.scheme=\"xyz\",this.tileSize=512,this.reparseOverscaled=!0,this.isTileClipped=!0,t.extend(this,t.pick(n,[\"url\",\"scheme\",\"tileSize\"])),this._options=t.extend({type:\"vector\"},n),this._collectResourceTiming=n.collectResourceTiming,512!==this.tileSize)throw new Error(\"vector tile sources must have a tileSize of 512\");this.setEventedParent(a)}return e&&(r.__proto__=e),r.prototype=Object.create(e&&e.prototype),r.prototype.constructor=r,r.prototype.load=function(){var e=this;this.fire(new t.Event(\"dataloading\",{dataType:\"source\"})),H(this._options,this.map._transformRequest,function(r,n){r?e.fire(new t.ErrorEvent(r)):n&&(t.extend(e,n),n.bounds&&(e.tileBounds=new Y(n.bounds,e.minzoom,e.maxzoom)),e.fire(new t.Event(\"data\",{dataType:\"source\",sourceDataType:\"metadata\"})),e.fire(new t.Event(\"data\",{dataType:\"source\",sourceDataType:\"content\"})))})},r.prototype.hasTile=function(t){return!this.tileBounds||this.tileBounds.contains(t.canonical)},r.prototype.onAdd=function(t){this.map=t,this.load()},r.prototype.serialize=function(){return t.extend({},this._options)},r.prototype.loadTile=function(e,r){var n=k(e.tileID.canonical.url(this.tiles,this.scheme),this.url),i={request:this.map._transformRequest(n,t.ResourceType.Tile),uid:e.uid,tileID:e.tileID,zoom:e.tileID.overscaledZ,tileSize:this.tileSize*e.tileID.overscaleFactor(),type:this.type,source:this.id,pixelRatio:a.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes};function o(t,n){return e.aborted?r(null):t?r(t):(n&&n.resourceTiming&&(e.resourceTiming=n.resourceTiming),this.map._refreshExpiredTiles&&e.setExpiryData(n),e.loadVectorData(n,this.map.painter),r(null),void(e.reloadCallback&&(this.loadTile(e,e.reloadCallback),e.reloadCallback=null)))}i.request.collectResourceTiming=this._collectResourceTiming,void 0===e.workerID||\"expired\"===e.state?e.workerID=this.dispatcher.send(\"loadTile\",i,o.bind(this)):\"loading\"===e.state?e.reloadCallback=r:this.dispatcher.send(\"reloadTile\",i,o.bind(this),e.workerID)},r.prototype.abortTile=function(t){this.dispatcher.send(\"abortTile\",{uid:t.uid,type:this.type,source:this.id},void 0,t.workerID)},r.prototype.unloadTile=function(t){t.unloadVectorData(),this.dispatcher.send(\"removeTile\",{uid:t.uid,type:this.type,source:this.id},void 0,t.workerID)},r.prototype.hasTransition=function(){return!1},r}(t.Evented),Z=function(e){function r(r,n,i,a){e.call(this),this.id=r,this.dispatcher=i,this.setEventedParent(a),this.type=\"raster\",this.minzoom=0,this.maxzoom=22,this.roundZoom=!0,this.scheme=\"xyz\",this.tileSize=512,this._loaded=!1,this._options=t.extend({},n),t.extend(this,t.pick(n,[\"url\",\"scheme\",\"tileSize\"]))}return e&&(r.__proto__=e),r.prototype=Object.create(e&&e.prototype),r.prototype.constructor=r,r.prototype.load=function(){var e=this;this.fire(new t.Event(\"dataloading\",{dataType:\"source\"})),H(this._options,this.map._transformRequest,function(r,n){r?e.fire(new t.ErrorEvent(r)):n&&(t.extend(e,n),n.bounds&&(e.tileBounds=new Y(n.bounds,e.minzoom,e.maxzoom)),e.fire(new t.Event(\"data\",{dataType:\"source\",sourceDataType:\"metadata\"})),e.fire(new t.Event(\"data\",{dataType:\"source\",sourceDataType:\"content\"})))})},r.prototype.onAdd=function(t){this.map=t,this.load()},r.prototype.serialize=function(){return t.extend({},this._options)},r.prototype.hasTile=function(t){return!this.tileBounds||this.tileBounds.contains(t.canonical)},r.prototype.loadTile=function(e,r){var n=this,i=k(e.tileID.canonical.url(this.tiles,this.scheme),this.url,this.tileSize);e.request=t.getImage(this.map._transformRequest(i,t.ResourceType.Tile),function(t,i){if(delete e.request,e.aborted)e.state=\"unloaded\",r(null);else if(t)e.state=\"errored\",r(t);else if(i){n.map._refreshExpiredTiles&&e.setExpiryData(i),delete i.cacheControl,delete i.expires;var a=n.map.painter.context,o=a.gl;e.texture=n.map.painter.getTileTexture(i.width),e.texture?e.texture.update(i,{useMipmap:!0}):(e.texture=new z(a,i,o.RGBA,{useMipmap:!0}),e.texture.bind(o.LINEAR,o.CLAMP_TO_EDGE,o.LINEAR_MIPMAP_NEAREST),a.extTextureFilterAnisotropic&&o.texParameterf(o.TEXTURE_2D,a.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,a.extTextureFilterAnisotropicMax)),e.state=\"loaded\",r(null)}})},r.prototype.abortTile=function(t,e){t.request&&(t.request.abort(),delete t.request),e()},r.prototype.unloadTile=function(t,e){t.texture&&this.map.painter.saveTileTexture(t.texture),e()},r.prototype.hasTransition=function(){return!1},r}(t.Evented),$=function(e){function r(r,n,i,a){e.call(this,r,n,i,a),this.type=\"raster-dem\",this.maxzoom=22,this._options=t.extend({},n),this.encoding=n.encoding||\"mapbox\"}return e&&(r.__proto__=e),r.prototype=Object.create(e&&e.prototype),r.prototype.constructor=r,r.prototype.serialize=function(){return{type:\"raster-dem\",url:this.url,tileSize:this.tileSize,tiles:this.tiles,bounds:this.bounds,encoding:this.encoding}},r.prototype.loadTile=function(e,r){var n=k(e.tileID.canonical.url(this.tiles,this.scheme),this.url,this.tileSize);e.request=t.getImage(this.map._transformRequest(n,t.ResourceType.Tile),function(t,n){if(delete e.request,e.aborted)e.state=\"unloaded\",r(null);else if(t)e.state=\"errored\",r(t);else if(n){this.map._refreshExpiredTiles&&e.setExpiryData(n),delete n.cacheControl,delete n.expires;var i=a.getImageData(n),o={uid:e.uid,coord:e.tileID,source:this.id,rawImageData:i,encoding:this.encoding};e.workerID&&\"expired\"!==e.state||(e.workerID=this.dispatcher.send(\"loadDEMTile\",o,function(t,n){t&&(e.state=\"errored\",r(t)),n&&(e.dem=n,e.needsHillshadePrepare=!0,e.state=\"loaded\",r(null))}.bind(this)))}}.bind(this)),e.neighboringTiles=this._getNeighboringTiles(e.tileID)},r.prototype._getNeighboringTiles=function(e){var r=e.canonical,n=Math.pow(2,r.z),i=(r.x-1+n)%n,a=0===r.x?e.wrap-1:e.wrap,o=(r.x+1+n)%n,s=r.x+1===n?e.wrap+1:e.wrap,l={};return l[new t.OverscaledTileID(e.overscaledZ,a,r.z,i,r.y).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,s,r.z,o,r.y).key]={backfilled:!1},r.y>0&&(l[new t.OverscaledTileID(e.overscaledZ,a,r.z,i,r.y-1).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,e.wrap,r.z,r.x,r.y-1).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,s,r.z,o,r.y-1).key]={backfilled:!1}),r.y+1<n&&(l[new t.OverscaledTileID(e.overscaledZ,a,r.z,i,r.y+1).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,e.wrap,r.z,r.x,r.y+1).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,s,r.z,o,r.y+1).key]={backfilled:!1}),l},r.prototype.unloadTile=function(t){t.demTexture&&this.map.painter.saveTileTexture(t.demTexture),t.fbo&&(t.fbo.destroy(),delete t.fbo),t.dem&&delete t.dem,delete t.neighboringTiles,t.state=\"unloaded\",this.dispatcher.send(\"removeDEMTile\",{uid:t.uid,source:this.id},void 0,t.workerID)},r}(Z),J=function(e){function r(r,n,i,a){e.call(this),this.id=r,this.type=\"geojson\",this.minzoom=0,this.maxzoom=18,this.tileSize=512,this.isTileClipped=!0,this.reparseOverscaled=!0,this._removed=!1,this.dispatcher=i,this.setEventedParent(a),this._data=n.data,this._options=t.extend({},n),this._collectResourceTiming=n.collectResourceTiming,this._resourceTiming=[],void 0!==n.maxzoom&&(this.maxzoom=n.maxzoom),n.type&&(this.type=n.type);var o=t.default$8/this.tileSize;this.workerOptions=t.extend({source:this.id,cluster:n.cluster||!1,geojsonVtOptions:{buffer:(void 0!==n.buffer?n.buffer:128)*o,tolerance:(void 0!==n.tolerance?n.tolerance:.375)*o,extent:t.default$8,maxZoom:this.maxzoom,lineMetrics:n.lineMetrics||!1},superclusterOptions:{maxZoom:void 0!==n.clusterMaxZoom?Math.min(n.clusterMaxZoom,this.maxzoom-1):this.maxzoom-1,extent:t.default$8,radius:(n.clusterRadius||50)*o,log:!1}},n.workerOptions)}return e&&(r.__proto__=e),r.prototype=Object.create(e&&e.prototype),r.prototype.constructor=r,r.prototype.load=function(){var e=this;this.fire(new t.Event(\"dataloading\",{dataType:\"source\"})),this._updateWorkerData(function(r){if(r)e.fire(new t.ErrorEvent(r));else{var n={dataType:\"source\",sourceDataType:\"metadata\"};e._collectResourceTiming&&e._resourceTiming&&e._resourceTiming.length>0&&(n.resourceTiming=e._resourceTiming,e._resourceTiming=[]),e.fire(new t.Event(\"data\",n))}})},r.prototype.onAdd=function(t){this.map=t,this.load()},r.prototype.setData=function(e){var r=this;return this._data=e,this.fire(new t.Event(\"dataloading\",{dataType:\"source\"})),this._updateWorkerData(function(e){if(e)return r.fire(new t.ErrorEvent(e));var n={dataType:\"source\",sourceDataType:\"content\"};r._collectResourceTiming&&r._resourceTiming&&r._resourceTiming.length>0&&(n.resourceTiming=r._resourceTiming,r._resourceTiming=[]),r.fire(new t.Event(\"data\",n))}),this},r.prototype._updateWorkerData=function(e){var r,n,i=this,a=t.extend({},this.workerOptions),o=this._data;\"string\"==typeof o?(a.request=this.map._transformRequest((r=o,(n=t.default.document.createElement(\"a\")).href=r,n.href),t.ResourceType.Source),a.request.collectResourceTiming=this._collectResourceTiming):a.data=JSON.stringify(o),this.workerID=this.dispatcher.send(this.type+\".\"+a.source+\".loadData\",a,function(t,r){i._removed||r&&r.abandoned||(i._loaded=!0,r&&r.resourceTiming&&r.resourceTiming[i.id]&&(i._resourceTiming=r.resourceTiming[i.id].slice(0)),i.dispatcher.send(i.type+\".\"+a.source+\".coalesce\",null,null,i.workerID),e(t))},this.workerID)},r.prototype.loadTile=function(t,e){var r=this,n=void 0===t.workerID?\"loadTile\":\"reloadTile\",i={type:this.type,uid:t.uid,tileID:t.tileID,zoom:t.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:a.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes};t.workerID=this.dispatcher.send(n,i,function(i,a){return t.unloadVectorData(),t.aborted?e(null):i?e(i):(t.loadVectorData(a,r.map.painter,\"reloadTile\"===n),e(null))},this.workerID)},r.prototype.abortTile=function(t){t.aborted=!0},r.prototype.unloadTile=function(t){t.unloadVectorData(),this.dispatcher.send(\"removeTile\",{uid:t.uid,type:this.type,source:this.id},null,t.workerID)},r.prototype.onRemove=function(){this._removed=!0,this.dispatcher.send(\"removeSource\",{type:this.type,source:this.id},null,this.workerID)},r.prototype.serialize=function(){return t.extend({},this._options,{type:this.type,data:this._data})},r.prototype.hasTransition=function(){return!1},r}(t.Evented),K=t.createLayout([{name:\"a_pos\",type:\"Int16\",components:2},{name:\"a_texture_pos\",type:\"Int16\",components:2}]),Q=function(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null};Q.prototype.bind=function(t,e,r,n,i,a,o,s){this.context=t;for(var l=this.boundPaintVertexBuffers.length!==n.length,c=0;!l&&c<n.length;c++)this.boundPaintVertexBuffers[c]!==n[c]&&(l=!0);var u=!this.vao||this.boundProgram!==e||this.boundLayoutVertexBuffer!==r||l||this.boundIndexBuffer!==i||this.boundVertexOffset!==a||this.boundDynamicVertexBuffer!==o||this.boundDynamicVertexBuffer2!==s;!t.extVertexArrayObject||u?this.freshBind(e,r,n,i,a,o,s):(t.bindVertexArrayOES.set(this.vao),o&&o.bind(),i&&i.dynamicDraw&&i.bind(),s&&s.bind())},Q.prototype.freshBind=function(t,e,r,n,i,a,o){var s,l=t.numAttributes,c=this.context,u=c.gl;if(c.extVertexArrayObject)this.vao&&this.destroy(),this.vao=c.extVertexArrayObject.createVertexArrayOES(),c.bindVertexArrayOES.set(this.vao),s=0,this.boundProgram=t,this.boundLayoutVertexBuffer=e,this.boundPaintVertexBuffers=r,this.boundIndexBuffer=n,this.boundVertexOffset=i,this.boundDynamicVertexBuffer=a,this.boundDynamicVertexBuffer2=o;else{s=c.currentNumAttributes||0;for(var f=l;f<s;f++)u.disableVertexAttribArray(f)}e.enableAttributes(u,t);for(var h=0,p=r;h<p.length;h+=1)p[h].enableAttributes(u,t);a&&a.enableAttributes(u,t),o&&o.enableAttributes(u,t),e.bind(),e.setVertexAttribPointers(u,t,i);for(var d=0,g=r;d<g.length;d+=1){var v=g[d];v.bind(),v.setVertexAttribPointers(u,t,i)}a&&(a.bind(),a.setVertexAttribPointers(u,t,i)),n&&n.bind(),o&&(o.bind(),o.setVertexAttribPointers(u,t,i)),c.currentNumAttributes=l},Q.prototype.destroy=function(){this.vao&&(this.context.extVertexArrayObject.deleteVertexArrayOES(this.vao),this.vao=null)};var tt=function(e){function r(t,r,n,i){e.call(this),this.id=t,this.dispatcher=n,this.coordinates=r.coordinates,this.type=\"image\",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this.setEventedParent(i),this.options=r}return e&&(r.__proto__=e),r.prototype=Object.create(e&&e.prototype),r.prototype.constructor=r,r.prototype.load=function(){var e=this;this.fire(new t.Event(\"dataloading\",{dataType:\"source\"})),this.url=this.options.url,t.getImage(this.map._transformRequest(this.url,t.ResourceType.Image),function(r,n){r?e.fire(new t.ErrorEvent(r)):n&&(e.image=a.getImageData(n),e._finishLoading())})},r.prototype._finishLoading=function(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new t.Event(\"data\",{dataType:\"source\",sourceDataType:\"metadata\"})))},r.prototype.onAdd=function(t){this.map=t,this.load()},r.prototype.setCoordinates=function(e){this.coordinates=e;var r=this.map,n=e.map(function(t){return r.transform.locationCoordinate(G.convert(t)).zoomTo(0)}),i=this.centerCoord=t.getCoordinatesCenter(n);i.column=Math.floor(i.column),i.row=Math.floor(i.row),this.tileID=new t.CanonicalTileID(i.zoom,i.column,i.row),this.minzoom=this.maxzoom=i.zoom;var a=n.map(function(e){var r=e.zoomTo(i.zoom);return new t.default$1(Math.round((r.column-i.column)*t.default$8),Math.round((r.row-i.row)*t.default$8))});return this._boundsArray=new t.RasterBoundsArray,this._boundsArray.emplaceBack(a[0].x,a[0].y,0,0),this._boundsArray.emplaceBack(a[1].x,a[1].y,t.default$8,0),this._boundsArray.emplaceBack(a[3].x,a[3].y,0,t.default$8),this._boundsArray.emplaceBack(a[2].x,a[2].y,t.default$8,t.default$8),this.boundsBuffer&&(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new t.Event(\"data\",{dataType:\"source\",sourceDataType:\"content\"})),this},r.prototype.prepare=function(){if(0!==Object.keys(this.tiles).length&&this.image){var t=this.map.painter.context,e=t.gl;for(var r in this.boundsBuffer||(this.boundsBuffer=t.createVertexBuffer(this._boundsArray,K.members)),this.boundsVAO||(this.boundsVAO=new Q),this.texture||(this.texture=new z(t,this.image,e.RGBA),this.texture.bind(e.LINEAR,e.CLAMP_TO_EDGE)),this.tiles){var n=this.tiles[r];\"loaded\"!==n.state&&(n.state=\"loaded\",n.texture=this.texture)}}},r.prototype.loadTile=function(t,e){this.tileID&&this.tileID.equals(t.tileID.canonical)?(this.tiles[String(t.tileID.wrap)]=t,t.buckets={},e(null)):(t.state=\"errored\",e(null))},r.prototype.serialize=function(){return{type:\"image\",url:this.options.url,coordinates:this.coordinates}},r.prototype.hasTransition=function(){return!1},r}(t.Evented),et=function(e){function r(t,r,n,i){e.call(this,t,r,n,i),this.roundZoom=!0,this.type=\"video\",this.options=r}return e&&(r.__proto__=e),r.prototype=Object.create(e&&e.prototype),r.prototype.constructor=r,r.prototype.load=function(){var e=this,r=this.options;this.urls=[];for(var n=0,i=r.urls;n<i.length;n+=1){var a=i[n];e.urls.push(e.map._transformRequest(a,t.ResourceType.Source).url)}t.getVideo(this.urls,function(r,n){r?e.fire(new t.ErrorEvent(r)):n&&(e.video=n,e.video.loop=!0,e.video.addEventListener(\"playing\",function(){e.map._rerender()}),e.map&&e.video.play(),e._finishLoading())})},r.prototype.getVideo=function(){return this.video},r.prototype.onAdd=function(t){this.map||(this.map=t,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))},r.prototype.prepare=function(){if(!(0===Object.keys(this.tiles).length||this.video.readyState<2)){var t=this.map.painter.context,e=t.gl;for(var r in this.boundsBuffer||(this.boundsBuffer=t.createVertexBuffer(this._boundsArray,K.members)),this.boundsVAO||(this.boundsVAO=new Q),this.texture?this.video.paused||(this.texture.bind(e.LINEAR,e.CLAMP_TO_EDGE),e.texSubImage2D(e.TEXTURE_2D,0,0,0,e.RGBA,e.UNSIGNED_BYTE,this.video)):(this.texture=new z(t,this.video,e.RGBA),this.texture.bind(e.LINEAR,e.CLAMP_TO_EDGE)),this.tiles){var n=this.tiles[r];\"loaded\"!==n.state&&(n.state=\"loaded\",n.texture=this.texture)}}},r.prototype.serialize=function(){return{type:\"video\",urls:this.urls,coordinates:this.coordinates}},r.prototype.hasTransition=function(){return this.video&&!this.video.paused},r}(tt),rt=function(e){function r(r,n,i,a){e.call(this,r,n,i,a),n.coordinates?Array.isArray(n.coordinates)&&4===n.coordinates.length&&!n.coordinates.some(function(t){return!Array.isArray(t)||2!==t.length||t.some(function(t){return\"number\"!=typeof t})})||this.fire(new t.ErrorEvent(new t.default$9(\"sources.\"+r,null,'\"coordinates\" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new t.ErrorEvent(new t.default$9(\"sources.\"+r,null,'missing required property \"coordinates\"'))),n.animate&&\"boolean\"!=typeof n.animate&&this.fire(new t.ErrorEvent(new t.default$9(\"sources.\"+r,null,'optional \"animate\" property must be a boolean value'))),n.canvas?\"string\"==typeof n.canvas||n.canvas instanceof t.default.HTMLCanvasElement||this.fire(new t.ErrorEvent(new t.default$9(\"sources.\"+r,null,'\"canvas\" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new t.ErrorEvent(new t.default$9(\"sources.\"+r,null,'missing required property \"canvas\"'))),this.options=n,this.animate=void 0===n.animate||n.animate}return e&&(r.__proto__=e),r.prototype=Object.create(e&&e.prototype),r.prototype.constructor=r,r.prototype.load=function(){this.canvas||(this.canvas=this.options.canvas instanceof t.default.HTMLCanvasElement?this.options.canvas:t.default.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new t.ErrorEvent(new Error(\"Canvas dimensions cannot be less than or equal to zero.\"))):(this.play=function(){this._playing=!0,this.map._rerender()},this.pause=function(){this._playing=!1},this._finishLoading())},r.prototype.getCanvas=function(){return this.canvas},r.prototype.onAdd=function(t){this.map=t,this.load(),this.canvas&&this.animate&&this.play()},r.prototype.onRemove=function(){this.pause()},r.prototype.prepare=function(){var t=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,t=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,t=!0),!this._hasInvalidDimensions()&&0!==Object.keys(this.tiles).length){var e=this.map.painter.context,r=e.gl;for(var n in this.boundsBuffer||(this.boundsBuffer=e.createVertexBuffer(this._boundsArray,K.members)),this.boundsVAO||(this.boundsVAO=new Q),this.texture?t?this.texture.update(this.canvas):this._playing&&(this.texture.bind(r.LINEAR,r.CLAMP_TO_EDGE),r.texSubImage2D(r.TEXTURE_2D,0,0,0,r.RGBA,r.UNSIGNED_BYTE,this.canvas)):(this.texture=new z(e,this.canvas,r.RGBA),this.texture.bind(r.LINEAR,r.CLAMP_TO_EDGE)),this.tiles){var i=this.tiles[n];\"loaded\"!==i.state&&(i.state=\"loaded\",i.texture=this.texture)}}},r.prototype.serialize=function(){return{type:\"canvas\",coordinates:this.coordinates}},r.prototype.hasTransition=function(){return this._playing},r.prototype._hasInvalidDimensions=function(){for(var t=0,e=[this.canvas.width,this.canvas.height];t<e.length;t+=1){var r=e[t];if(isNaN(r)||r<=0)return!0}return!1},r}(tt),nt={vector:X,raster:Z,\"raster-dem\":$,geojson:J,video:et,image:tt,canvas:rt},it=function(e,r,n,i){var a=new nt[r.type](e,r,n,i);if(a.id!==e)throw new Error(\"Expected Source id to be \"+e+\" instead of \"+a.id);return t.bindAll([\"load\",\"abort\",\"unload\",\"serialize\",\"prepare\"],a),a};function at(t,e,r,n,i){var a=i.maxPitchScaleFactor(),o=t.tilesIn(r,a);o.sort(ot);for(var s=[],l=0,c=o;l<c.length;l+=1){var u=c[l];s.push({wrappedTileID:u.tileID.wrapped().key,queryResults:u.tile.queryRenderedFeatures(e,u.queryGeometry,u.scale,n,i,a,t.transform.calculatePosMatrix(u.tileID.toUnwrapped()))})}return function(t){for(var e={},r={},n=0,i=t;n<i.length;n+=1){var a=i[n],o=a.queryResults,s=a.wrappedTileID,l=r[s]=r[s]||{};for(var c in o)for(var u=o[c],f=l[c]=l[c]||{},h=e[c]=e[c]||[],p=0,d=u;p<d.length;p+=1){var g=d[p];f[g.featureIndex]||(f[g.featureIndex]=!0,h.push(g.feature))}}return e}(s)}function ot(t,e){var r=t.tileID,n=e.tileID;return r.overscaledZ-n.overscaledZ||r.canonical.y-n.canonical.y||r.wrap-n.wrap||r.canonical.x-n.canonical.x}var st=function(e,r){this.tileID=e,this.uid=t.uniqueId(),this.uses=0,this.tileSize=r,this.buckets={},this.expirationTime=null,this.queryPadding=0,this.expiredRequestCount=0,this.state=\"loading\"};st.prototype.registerFadeDuration=function(t){var e=t+this.timeAdded;e<a.now()||this.fadeEndTime&&e<this.fadeEndTime||(this.fadeEndTime=e)},st.prototype.wasRequested=function(){return\"errored\"===this.state||\"loaded\"===this.state||\"reloading\"===this.state},st.prototype.loadVectorData=function(e,r,n){if(this.hasData()&&this.unloadVectorData(),this.state=\"loaded\",e){if(e.featureIndex&&(this.latestFeatureIndex=e.featureIndex,e.rawTileData?(this.latestRawTileData=e.rawTileData,this.latestFeatureIndex.rawTileData=e.rawTileData):this.latestRawTileData&&(this.latestFeatureIndex.rawTileData=this.latestRawTileData)),this.collisionBoxArray=e.collisionBoxArray,this.buckets=function(t,e){var r={};if(!e)return r;for(var n=0,i=t;n<i.length;n+=1){var a=i[n],o=a.layerIds.map(function(t){return e.getLayer(t)}).filter(Boolean);if(0!==o.length){a.layers=o;for(var s=0,l=o;s<l.length;s+=1)r[l[s].id]=a}}return r}(e.buckets,r.style),n)for(var i in this.buckets){var a=this.buckets[i];a instanceof t.default$14&&(a.justReloaded=!0)}for(var o in this.queryPadding=0,this.buckets){var s=this.buckets[o];this.queryPadding=Math.max(this.queryPadding,r.style.getLayer(s.layerIds[0]).queryRadius(s))}e.iconAtlasImage&&(this.iconAtlasImage=e.iconAtlasImage),e.glyphAtlasImage&&(this.glyphAtlasImage=e.glyphAtlasImage)}else this.collisionBoxArray=new t.CollisionBoxArray},st.prototype.unloadVectorData=function(){for(var t in this.buckets)this.buckets[t].destroy();this.buckets={},this.iconAtlasTexture&&this.iconAtlasTexture.destroy(),this.glyphAtlasTexture&&this.glyphAtlasTexture.destroy(),this.latestFeatureIndex=null,this.state=\"unloaded\"},st.prototype.unloadDEMData=function(){this.dem=null,this.neighboringTiles=null,this.state=\"unloaded\"},st.prototype.getBucket=function(t){return this.buckets[t.id]},st.prototype.upload=function(t){for(var e in this.buckets){var r=this.buckets[e];r.uploaded||(r.upload(t),r.uploaded=!0)}var n=t.gl;this.iconAtlasImage&&(this.iconAtlasTexture=new z(t,this.iconAtlasImage,n.RGBA),this.iconAtlasImage=null),this.glyphAtlasImage&&(this.glyphAtlasTexture=new z(t,this.glyphAtlasImage,n.ALPHA),this.glyphAtlasImage=null)},st.prototype.queryRenderedFeatures=function(t,e,r,n,i,a,o){return this.latestFeatureIndex&&this.latestFeatureIndex.rawTileData?this.latestFeatureIndex.query({queryGeometry:e,scale:r,tileSize:this.tileSize,posMatrix:o,transform:i,params:n,queryPadding:this.queryPadding*a},t):{}},st.prototype.querySourceFeatures=function(e,r){if(this.latestFeatureIndex&&this.latestFeatureIndex.rawTileData){var n=this.latestFeatureIndex.loadVTLayers(),i=r?r.sourceLayer:\"\",a=n._geojsonTileLayer||n[i];if(a)for(var o=t.default$13(r&&r.filter),s={z:this.tileID.overscaledZ,x:this.tileID.canonical.x,y:this.tileID.canonical.y},l=0;l<a.length;l++){var c=a.feature(l);if(o(new t.default$16(this.tileID.overscaledZ),c)){var u=new t.default$12(c,s.z,s.x,s.y);u.tile=s,e.push(u)}}}},st.prototype.clearMask=function(){this.segments&&(this.segments.destroy(),delete this.segments),this.maskedBoundsBuffer&&(this.maskedBoundsBuffer.destroy(),delete this.maskedBoundsBuffer),this.maskedIndexBuffer&&(this.maskedIndexBuffer.destroy(),delete this.maskedIndexBuffer)},st.prototype.setMask=function(e,r){if(!t.default$10(this.mask,e)&&(this.mask=e,this.clearMask(),!t.default$10(e,{0:!0}))){var n=new t.RasterBoundsArray,i=new t.TriangleIndexArray;this.segments=new t.default$15,this.segments.prepareSegment(0,n,i);for(var a=Object.keys(e),o=0;o<a.length;o++){var s=e[a[o]],l=t.default$8>>s.z,c=new t.default$1(s.x*l,s.y*l),u=new t.default$1(c.x+l,c.y+l),f=this.segments.prepareSegment(4,n,i);n.emplaceBack(c.x,c.y,c.x,c.y),n.emplaceBack(u.x,c.y,u.x,c.y),n.emplaceBack(c.x,u.y,c.x,u.y),n.emplaceBack(u.x,u.y,u.x,u.y);var h=f.vertexLength;i.emplaceBack(h,h+1,h+2),i.emplaceBack(h+1,h+2,h+3),f.vertexLength+=4,f.primitiveLength+=2}this.maskedBoundsBuffer=r.createVertexBuffer(n,K.members),this.maskedIndexBuffer=r.createIndexBuffer(i)}},st.prototype.hasData=function(){return\"loaded\"===this.state||\"reloading\"===this.state||\"expired\"===this.state},st.prototype.setExpiryData=function(e){var r=this.expirationTime;if(e.cacheControl){var n=t.parseCacheControl(e.cacheControl);n[\"max-age\"]&&(this.expirationTime=Date.now()+1e3*n[\"max-age\"])}else e.expires&&(this.expirationTime=new Date(e.expires).getTime());if(this.expirationTime){var i=Date.now(),a=!1;if(this.expirationTime>i)a=!1;else if(r)if(this.expirationTime<r)a=!0;else{var o=this.expirationTime-r;o?this.expirationTime=i+Math.max(o,3e4):a=!0}else a=!0;a?(this.expiredRequestCount++,this.state=\"expired\"):this.expiredRequestCount=0}},st.prototype.getExpiryTimeout=function(){if(this.expirationTime)return this.expiredRequestCount?1e3*(1<<Math.min(this.expiredRequestCount-1,31)):Math.min(this.expirationTime-(new Date).getTime(),Math.pow(2,31)-1)};var lt=function(t,e){this.max=t,this.onRemove=e,this.reset()};lt.prototype.reset=function(){for(var t in this.data)for(var e=0,r=this.data[t];e<r.length;e+=1){var n=r[e];n.timeout&&clearTimeout(n.timeout),this.onRemove(n.value)}return this.data={},this.order=[],this},lt.prototype.add=function(t,e,r){var n=this,i=t.wrapped().key;void 0===this.data[i]&&(this.data[i]=[]);var a={value:e,timeout:void 0};if(void 0!==r&&(a.timeout=setTimeout(function(){n.remove(t,a)},r)),this.data[i].push(a),this.order.push(i),this.order.length>this.max){var o=this._getAndRemoveByKey(this.order[0]);o&&this.onRemove(o)}return this},lt.prototype.has=function(t){return t.wrapped().key in this.data},lt.prototype.getAndRemove=function(t){return this.has(t)?this._getAndRemoveByKey(t.wrapped().key):null},lt.prototype._getAndRemoveByKey=function(t){var e=this.data[t].shift();return e.timeout&&clearTimeout(e.timeout),0===this.data[t].length&&delete this.data[t],this.order.splice(this.order.indexOf(t),1),e.value},lt.prototype.get=function(t){return this.has(t)?this.data[t.wrapped().key][0].value:null},lt.prototype.remove=function(t,e){if(!this.has(t))return this;var r=t.wrapped().key,n=void 0===e?0:this.data[r].indexOf(e),i=this.data[r][n];return this.data[r].splice(n,1),i.timeout&&clearTimeout(i.timeout),0===this.data[r].length&&delete this.data[r],this.onRemove(i.value),this.order.splice(this.order.indexOf(r),1),this},lt.prototype.setMaxSize=function(t){for(this.max=t;this.order.length>this.max;){var e=this._getAndRemoveByKey(this.order[0]);e&&this.onRemove(e)}return this};var ct=function(t,e,r){this.context=t;var n=t.gl;this.buffer=n.createBuffer(),this.dynamicDraw=Boolean(r),this.unbindVAO(),t.bindElementBuffer.set(this.buffer),n.bufferData(n.ELEMENT_ARRAY_BUFFER,e.arrayBuffer,this.dynamicDraw?n.DYNAMIC_DRAW:n.STATIC_DRAW),this.dynamicDraw||delete e.arrayBuffer};ct.prototype.unbindVAO=function(){this.context.extVertexArrayObject&&this.context.bindVertexArrayOES.set(null)},ct.prototype.bind=function(){this.context.bindElementBuffer.set(this.buffer)},ct.prototype.updateData=function(t){var e=this.context.gl;this.unbindVAO(),this.bind(),e.bufferSubData(e.ELEMENT_ARRAY_BUFFER,0,t.arrayBuffer)},ct.prototype.destroy=function(){var t=this.context.gl;this.buffer&&(t.deleteBuffer(this.buffer),delete this.buffer)};var ut={Int8:\"BYTE\",Uint8:\"UNSIGNED_BYTE\",Int16:\"SHORT\",Uint16:\"UNSIGNED_SHORT\",Int32:\"INT\",Uint32:\"UNSIGNED_INT\",Float32:\"FLOAT\"},ft=function(t,e,r,n){this.length=e.length,this.attributes=r,this.itemSize=e.bytesPerElement,this.dynamicDraw=n,this.context=t;var i=t.gl;this.buffer=i.createBuffer(),t.bindVertexBuffer.set(this.buffer),i.bufferData(i.ARRAY_BUFFER,e.arrayBuffer,this.dynamicDraw?i.DYNAMIC_DRAW:i.STATIC_DRAW),this.dynamicDraw||delete e.arrayBuffer};ft.prototype.bind=function(){this.context.bindVertexBuffer.set(this.buffer)},ft.prototype.updateData=function(t){var e=this.context.gl;this.bind(),e.bufferSubData(e.ARRAY_BUFFER,0,t.arrayBuffer)},ft.prototype.enableAttributes=function(t,e){for(var r=0;r<this.attributes.length;r++){var n=this.attributes[r],i=e.attributes[n.name];void 0!==i&&t.enableVertexAttribArray(i)}},ft.prototype.setVertexAttribPointers=function(t,e,r){for(var n=0;n<this.attributes.length;n++){var i=this.attributes[n],a=e.attributes[i.name];void 0!==a&&t.vertexAttribPointer(a,i.components,t[ut[i.type]],!1,this.itemSize,i.offset+this.itemSize*(r||0))}},ft.prototype.destroy=function(){var t=this.context.gl;this.buffer&&(t.deleteBuffer(this.buffer),delete this.buffer)};var ht=function(e){this.context=e,this.current=t.default$6.transparent};ht.prototype.get=function(){return this.current},ht.prototype.set=function(t){var e=this.current;t.r===e.r&&t.g===e.g&&t.b===e.b&&t.a===e.a||(this.context.gl.clearColor(t.r,t.g,t.b,t.a),this.current=t)};var pt=function(t){this.context=t,this.current=1};pt.prototype.get=function(){return this.current},pt.prototype.set=function(t){this.current!==t&&(this.context.gl.clearDepth(t),this.current=t)};var dt=function(t){this.context=t,this.current=0};dt.prototype.get=function(){return this.current},dt.prototype.set=function(t){this.current!==t&&(this.context.gl.clearStencil(t),this.current=t)};var gt=function(t){this.context=t,this.current=[!0,!0,!0,!0]};gt.prototype.get=function(){return this.current},gt.prototype.set=function(t){var e=this.current;t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]||(this.context.gl.colorMask(t[0],t[1],t[2],t[3]),this.current=t)};var vt=function(t){this.context=t,this.current=!0};vt.prototype.get=function(){return this.current},vt.prototype.set=function(t){this.current!==t&&(this.context.gl.depthMask(t),this.current=t)};var mt=function(t){this.context=t,this.current=255};mt.prototype.get=function(){return this.current},mt.prototype.set=function(t){this.current!==t&&(this.context.gl.stencilMask(t),this.current=t)};var yt=function(t){this.context=t,this.current={func:t.gl.ALWAYS,ref:0,mask:255}};yt.prototype.get=function(){return this.current},yt.prototype.set=function(t){var e=this.current;t.func===e.func&&t.ref===e.ref&&t.mask===e.mask||(this.context.gl.stencilFunc(t.func,t.ref,t.mask),this.current=t)};var xt=function(t){this.context=t;var e=this.context.gl;this.current=[e.KEEP,e.KEEP,e.KEEP]};xt.prototype.get=function(){return this.current},xt.prototype.set=function(t){var e=this.current;t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]||(this.context.gl.stencilOp(t[0],t[1],t[2]),this.current=t)};var bt=function(t){this.context=t,this.current=!1};bt.prototype.get=function(){return this.current},bt.prototype.set=function(t){if(this.current!==t){var e=this.context.gl;t?e.enable(e.STENCIL_TEST):e.disable(e.STENCIL_TEST),this.current=t}};var _t=function(t){this.context=t,this.current=[0,1]};_t.prototype.get=function(){return this.current},_t.prototype.set=function(t){var e=this.current;t[0]===e[0]&&t[1]===e[1]||(this.context.gl.depthRange(t[0],t[1]),this.current=t)};var wt=function(t){this.context=t,this.current=!1};wt.prototype.get=function(){return this.current},wt.prototype.set=function(t){if(this.current!==t){var e=this.context.gl;t?e.enable(e.DEPTH_TEST):e.disable(e.DEPTH_TEST),this.current=t}};var kt=function(t){this.context=t,this.current=t.gl.LESS};kt.prototype.get=function(){return this.current},kt.prototype.set=function(t){this.current!==t&&(this.context.gl.depthFunc(t),this.current=t)};var Mt=function(t){this.context=t,this.current=!1};Mt.prototype.get=function(){return this.current},Mt.prototype.set=function(t){if(this.current!==t){var e=this.context.gl;t?e.enable(e.BLEND):e.disable(e.BLEND),this.current=t}};var At=function(t){this.context=t;var e=this.context.gl;this.current=[e.ONE,e.ZERO]};At.prototype.get=function(){return this.current},At.prototype.set=function(t){var e=this.current;t[0]===e[0]&&t[1]===e[1]||(this.context.gl.blendFunc(t[0],t[1]),this.current=t)};var Tt=function(e){this.context=e,this.current=t.default$6.transparent};Tt.prototype.get=function(){return this.current},Tt.prototype.set=function(t){var e=this.current;t.r===e.r&&t.g===e.g&&t.b===e.b&&t.a===e.a||(this.context.gl.blendColor(t.r,t.g,t.b,t.a),this.current=t)};var St=function(t){this.context=t,this.current=null};St.prototype.get=function(){return this.current},St.prototype.set=function(t){this.current!==t&&(this.context.gl.useProgram(t),this.current=t)};var Et=function(t){this.context=t,this.current=1};Et.prototype.get=function(){return this.current},Et.prototype.set=function(e){var r=this.context.lineWidthRange,n=t.clamp(e,r[0],r[1]);this.current!==n&&(this.context.gl.lineWidth(n),this.current=e)};var Ct=function(t){this.context=t,this.current=t.gl.TEXTURE0};Ct.prototype.get=function(){return this.current},Ct.prototype.set=function(t){this.current!==t&&(this.context.gl.activeTexture(t),this.current=t)};var Lt=function(t){this.context=t;var e=this.context.gl;this.current=[0,0,e.drawingBufferWidth,e.drawingBufferHeight]};Lt.prototype.get=function(){return this.current},Lt.prototype.set=function(t){var e=this.current;t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]||(this.context.gl.viewport(t[0],t[1],t[2],t[3]),this.current=t)};var zt=function(t){this.context=t,this.current=null};zt.prototype.get=function(){return this.current},zt.prototype.set=function(t){if(this.current!==t){var e=this.context.gl;e.bindFramebuffer(e.FRAMEBUFFER,t),this.current=t}};var Ot=function(t){this.context=t,this.current=null};Ot.prototype.get=function(){return this.current},Ot.prototype.set=function(t){if(this.current!==t){var e=this.context.gl;e.bindRenderbuffer(e.RENDERBUFFER,t),this.current=t}};var It=function(t){this.context=t,this.current=null};It.prototype.get=function(){return this.current},It.prototype.set=function(t){if(this.current!==t){var e=this.context.gl;e.bindTexture(e.TEXTURE_2D,t),this.current=t}};var Pt=function(t){this.context=t,this.current=null};Pt.prototype.get=function(){return this.current},Pt.prototype.set=function(t){if(this.current!==t){var e=this.context.gl;e.bindBuffer(e.ARRAY_BUFFER,t),this.current=t}};var Dt=function(t){this.context=t,this.current=null};Dt.prototype.get=function(){return this.current},Dt.prototype.set=function(t){var e=this.context.gl;e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,t),this.current=t};var Rt=function(t){this.context=t,this.current=null};Rt.prototype.get=function(){return this.current},Rt.prototype.set=function(t){this.current!==t&&this.context.extVertexArrayObject&&(this.context.extVertexArrayObject.bindVertexArrayOES(t),this.current=t)};var Bt=function(t){this.context=t,this.current=4};Bt.prototype.get=function(){return this.current},Bt.prototype.set=function(t){if(this.current!==t){var e=this.context.gl;e.pixelStorei(e.UNPACK_ALIGNMENT,t),this.current=t}};var Ft=function(t){this.context=t,this.current=!1};Ft.prototype.get=function(){return this.current},Ft.prototype.set=function(t){if(this.current!==t){var e=this.context.gl;e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,t),this.current=t}};var Nt=function(t,e){this.context=t,this.current=null,this.parent=e};Nt.prototype.get=function(){return this.current};var jt=function(t){function e(e,r){t.call(this,e,r),this.dirty=!1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.set=function(t){if(this.dirty||this.current!==t){var e=this.context.gl;this.context.bindFramebuffer.set(this.parent),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,t,0),this.current=t,this.dirty=!1}},e.prototype.setDirty=function(){this.dirty=!0},e}(Nt),Vt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.set=function(t){if(this.current!==t){var e=this.context.gl;this.context.bindFramebuffer.set(this.parent),e.framebufferRenderbuffer(e.FRAMEBUFFER,e.DEPTH_ATTACHMENT,e.RENDERBUFFER,t),this.current=t}},e}(Nt),Ut=function(t,e,r){this.context=t,this.width=e,this.height=r;var n=t.gl,i=this.framebuffer=n.createFramebuffer();this.colorAttachment=new jt(t,i),this.depthAttachment=new Vt(t,i)};Ut.prototype.destroy=function(){var t=this.context.gl,e=this.colorAttachment.get();e&&t.deleteTexture(e);var r=this.depthAttachment.get();r&&t.deleteRenderbuffer(r),t.deleteFramebuffer(this.framebuffer)};var qt=function(t,e,r){this.func=t,this.mask=e,this.range=r};qt.ReadOnly=!1,qt.ReadWrite=!0,qt.disabled=new qt(519,qt.ReadOnly,[0,1]);var Ht=function(t,e,r,n,i,a){this.test=t,this.ref=e,this.mask=r,this.fail=n,this.depthFail=i,this.pass=a};Ht.disabled=new Ht({func:519,mask:0},0,0,7680,7680,7680);var Gt=function(t,e,r){this.blendFunction=t,this.blendColor=e,this.mask=r};Gt.disabled=new Gt(Gt.Replace=[1,0],t.default$6.transparent,[!1,!1,!1,!1]),Gt.unblended=new Gt(Gt.Replace,t.default$6.transparent,[!0,!0,!0,!0]),Gt.alphaBlended=new Gt([1,771],t.default$6.transparent,[!0,!0,!0,!0]);var Wt=function(t){this.gl=t,this.extVertexArrayObject=this.gl.getExtension(\"OES_vertex_array_object\"),this.lineWidthRange=t.getParameter(t.ALIASED_LINE_WIDTH_RANGE),this.clearColor=new ht(this),this.clearDepth=new pt(this),this.clearStencil=new dt(this),this.colorMask=new gt(this),this.depthMask=new vt(this),this.stencilMask=new mt(this),this.stencilFunc=new yt(this),this.stencilOp=new xt(this),this.stencilTest=new bt(this),this.depthRange=new _t(this),this.depthTest=new wt(this),this.depthFunc=new kt(this),this.blend=new Mt(this),this.blendFunc=new At(this),this.blendColor=new Tt(this),this.program=new St(this),this.lineWidth=new Et(this),this.activeTexture=new Ct(this),this.viewport=new Lt(this),this.bindFramebuffer=new zt(this),this.bindRenderbuffer=new Ot(this),this.bindTexture=new It(this),this.bindVertexBuffer=new Pt(this),this.bindElementBuffer=new Dt(this),this.bindVertexArrayOES=this.extVertexArrayObject&&new Rt(this),this.pixelStoreUnpack=new Bt(this),this.pixelStoreUnpackPremultiplyAlpha=new Ft(this),this.extTextureFilterAnisotropic=t.getExtension(\"EXT_texture_filter_anisotropic\")||t.getExtension(\"MOZ_EXT_texture_filter_anisotropic\")||t.getExtension(\"WEBKIT_EXT_texture_filter_anisotropic\"),this.extTextureFilterAnisotropic&&(this.extTextureFilterAnisotropicMax=t.getParameter(this.extTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT)),this.extTextureHalfFloat=t.getExtension(\"OES_texture_half_float\"),this.extTextureHalfFloat&&t.getExtension(\"OES_texture_half_float_linear\")};Wt.prototype.createIndexBuffer=function(t,e){return new ct(this,t,e)},Wt.prototype.createVertexBuffer=function(t,e,r){return new ft(this,t,e,r)},Wt.prototype.createRenderbuffer=function(t,e,r){var n=this.gl,i=n.createRenderbuffer();return this.bindRenderbuffer.set(i),n.renderbufferStorage(n.RENDERBUFFER,t,e,r),this.bindRenderbuffer.set(null),i},Wt.prototype.createFramebuffer=function(t,e){return new Ut(this,t,e)},Wt.prototype.clear=function(t){var e=t.color,r=t.depth,n=this.gl,i=0;e&&(i|=n.COLOR_BUFFER_BIT,this.clearColor.set(e),this.colorMask.set([!0,!0,!0,!0])),void 0!==r&&(i|=n.DEPTH_BUFFER_BIT,this.clearDepth.set(r),this.depthMask.set(!0)),n.clear(i)},Wt.prototype.setDepthMode=function(t){t.func!==this.gl.ALWAYS||t.mask?(this.depthTest.set(!0),this.depthFunc.set(t.func),this.depthMask.set(t.mask),this.depthRange.set(t.range)):this.depthTest.set(!1)},Wt.prototype.setStencilMode=function(t){t.test.func!==this.gl.ALWAYS||t.mask?(this.stencilTest.set(!0),this.stencilMask.set(t.mask),this.stencilOp.set([t.fail,t.depthFail,t.pass]),this.stencilFunc.set({func:t.test.func,ref:t.ref,mask:t.test.mask})):this.stencilTest.set(!1)},Wt.prototype.setColorMode=function(e){t.default$10(e.blendFunction,Gt.Replace)?this.blend.set(!1):(this.blend.set(!0),this.blendFunc.set(e.blendFunction),this.blendColor.set(e.blendColor)),this.colorMask.set(e.mask)};var Yt=function(e){function r(t,r,n){var i=this;e.call(this),this.id=t,this.dispatcher=n,this.on(\"data\",function(t){\"source\"===t.dataType&&\"metadata\"===t.sourceDataType&&(i._sourceLoaded=!0),i._sourceLoaded&&!i._paused&&\"source\"===t.dataType&&\"content\"===t.sourceDataType&&(i.reload(),i.transform&&i.update(i.transform))}),this.on(\"error\",function(){i._sourceErrored=!0}),this._source=it(t,r,n,this),this._tiles={},this._cache=new lt(0,this._unloadTile.bind(this)),this._timers={},this._cacheTimers={},this._maxTileCacheSize=null,this._isIdRenderable=this._isIdRenderable.bind(this),this._coveredTiles={}}return e&&(r.__proto__=e),r.prototype=Object.create(e&&e.prototype),r.prototype.constructor=r,r.prototype.onAdd=function(t){this.map=t,this._maxTileCacheSize=t?t._maxTileCacheSize:null,this._source&&this._source.onAdd&&this._source.onAdd(t)},r.prototype.onRemove=function(t){this._source&&this._source.onRemove&&this._source.onRemove(t)},r.prototype.loaded=function(){if(this._sourceErrored)return!0;if(!this._sourceLoaded)return!1;for(var t in this._tiles){var e=this._tiles[t];if(\"loaded\"!==e.state&&\"errored\"!==e.state)return!1}return!0},r.prototype.getSource=function(){return this._source},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){if(this._paused){var t=this._shouldReloadOnResume;this._paused=!1,this._shouldReloadOnResume=!1,t&&this.reload(),this.transform&&this.update(this.transform)}},r.prototype._loadTile=function(t,e){return this._source.loadTile(t,e)},r.prototype._unloadTile=function(t){if(this._source.unloadTile)return this._source.unloadTile(t,function(){})},r.prototype._abortTile=function(t){if(this._source.abortTile)return this._source.abortTile(t,function(){})},r.prototype.serialize=function(){return this._source.serialize()},r.prototype.prepare=function(t){for(var e in this._source.prepare&&this._source.prepare(),this._tiles)this._tiles[e].upload(t)},r.prototype.getIds=function(){var e=this;return Object.keys(this._tiles).map(Number).sort(function(r,n){var i=e._tiles[r].tileID,a=e._tiles[n].tileID,o=new t.default$1(i.canonical.x,i.canonical.y).rotate(e.transform.angle),s=new t.default$1(a.canonical.x,a.canonical.y).rotate(e.transform.angle);return i.overscaledZ-a.overscaledZ||s.y-o.y||s.x-o.x})},r.prototype.getRenderableIds=function(){return this.getIds().filter(this._isIdRenderable)},r.prototype.hasRenderableParent=function(t){var e=this.findLoadedParent(t,0,{});return!!e&&this._isIdRenderable(e.tileID.key)},r.prototype._isIdRenderable=function(t){return this._tiles[t]&&this._tiles[t].hasData()&&!this._coveredTiles[t]},r.prototype.reload=function(){if(this._paused)this._shouldReloadOnResume=!0;else for(var t in this._cache.reset(),this._tiles)this._reloadTile(t,\"reloading\")},r.prototype._reloadTile=function(t,e){var r=this._tiles[t];r&&(\"loading\"!==r.state&&(r.state=e),this._loadTile(r,this._tileLoaded.bind(this,r,t,e)))},r.prototype._tileLoaded=function(e,r,n,i){if(i)return e.state=\"errored\",void(404!==i.status?this._source.fire(new t.ErrorEvent(i,{tile:e})):this.update(this.transform));e.timeAdded=a.now(),\"expired\"===n&&(e.refreshedUponExpiration=!0),this._setTileReloadTimer(r,e),\"raster-dem\"===this.getSource().type&&e.dem&&this._backfillDEM(e),this._source.fire(new t.Event(\"data\",{dataType:\"source\",tile:e,coord:e.tileID})),this.map&&(this.map.painter.tileExtentVAO.vao=null)},r.prototype._backfillDEM=function(t){for(var e=this.getRenderableIds(),r=0;r<e.length;r++){var n=e[r];if(t.neighboringTiles&&t.neighboringTiles[n]){var i=this.getTileByID(n);a(t,i),a(i,t)}}function a(t,e){t.needsHillshadePrepare=!0;var r=e.tileID.canonical.x-t.tileID.canonical.x,n=e.tileID.canonical.y-t.tileID.canonical.y,i=Math.pow(2,t.tileID.canonical.z),a=e.tileID.key;0===r&&0===n||Math.abs(n)>1||(Math.abs(r)>1&&(1===Math.abs(r+i)?r+=i:1===Math.abs(r-i)&&(r-=i)),e.dem&&t.dem&&(t.dem.backfillBorder(e.dem,r,n),t.neighboringTiles&&t.neighboringTiles[a]&&(t.neighboringTiles[a].backfilled=!0)))}},r.prototype.getTile=function(t){return this.getTileByID(t.key)},r.prototype.getTileByID=function(t){return this._tiles[t]},r.prototype.getZoom=function(t){return t.zoom+t.scaleZoom(t.tileSize/this._source.tileSize)},r.prototype._findLoadedChildren=function(t,e,r){var n=!1;for(var i in this._tiles){var a=this._tiles[i];if(!(r[i]||!a.hasData()||a.tileID.overscaledZ<=t.overscaledZ||a.tileID.overscaledZ>e)){var o=Math.pow(2,a.tileID.canonical.z-t.canonical.z);if(Math.floor(a.tileID.canonical.x/o)===t.canonical.x&&Math.floor(a.tileID.canonical.y/o)===t.canonical.y)for(r[i]=a.tileID,n=!0;a&&a.tileID.overscaledZ-1>t.overscaledZ;){var s=a.tileID.scaledTo(a.tileID.overscaledZ-1);if(!s)break;(a=this._tiles[s.key])&&a.hasData()&&(delete r[i],r[s.key]=s)}}}return n},r.prototype.findLoadedParent=function(t,e,r){for(var n=t.overscaledZ-1;n>=e;n--){var i=t.scaledTo(n);if(!i)return;var a=String(i.key),o=this._tiles[a];if(o&&o.hasData())return r[a]=i,o;if(this._cache.has(i))return r[a]=i,this._cache.get(i)}},r.prototype.updateCacheSize=function(t){var e=(Math.ceil(t.width/this._source.tileSize)+1)*(Math.ceil(t.height/this._source.tileSize)+1),r=Math.floor(5*e),n=\"number\"==typeof this._maxTileCacheSize?Math.min(this._maxTileCacheSize,r):r;this._cache.setMaxSize(n)},r.prototype.handleWrapJump=function(t){var e=(t-(void 0===this._prevLng?t:this._prevLng))/360,r=Math.round(e);if(this._prevLng=t,r){var n={};for(var i in this._tiles){var a=this._tiles[i];a.tileID=a.tileID.unwrapTo(a.tileID.wrap+r),n[a.tileID.key]=a}for(var o in this._tiles=n,this._timers)clearTimeout(this._timers[o]),delete this._timers[o];for(var s in this._tiles){var l=this._tiles[s];this._setTileReloadTimer(s,l)}}},r.prototype.update=function(e){var n=this;if(this.transform=e,this._sourceLoaded&&!this._paused){var i;this.updateCacheSize(e),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used?this._source.tileID?i=e.getVisibleUnwrappedCoordinates(this._source.tileID).map(function(e){return new t.OverscaledTileID(e.canonical.z,e.wrap,e.canonical.z,e.canonical.x,e.canonical.y)}):(i=e.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}),this._source.hasTile&&(i=i.filter(function(t){return n._source.hasTile(t)}))):i=[];var o,s=(this._source.roundZoom?Math.round:Math.floor)(this.getZoom(e)),l=Math.max(s-r.maxOverzooming,this._source.minzoom),c=Math.max(s+r.maxUnderzooming,this._source.minzoom),u=this._updateRetainedTiles(i,s),f={};if(Zt(this._source.type))for(var h=Object.keys(u),p=0;p<h.length;p++){var d=h[p],g=u[d],v=n._tiles[d];if(v&&(void 0===v.fadeEndTime||v.fadeEndTime>=a.now())){n._findLoadedChildren(g,c,u)&&(u[d]=g);var m=n.findLoadedParent(g,l,f);m&&n._addTile(m.tileID)}}for(o in f)u[o]||(n._coveredTiles[o]=!0);for(o in f)u[o]=f[o];for(var y=t.keysDifference(this._tiles,u),x=0;x<y.length;x++)n._removeTile(y[x])}},r.prototype._updateRetainedTiles=function(t,e){for(var n={},i={},a=Math.max(e-r.maxOverzooming,this._source.minzoom),o=Math.max(e+r.maxUnderzooming,this._source.minzoom),s=0;s<t.length;s++){var l=t[s],c=this._addTile(l),u=!1;if(c.hasData())n[l.key]=l;else{u=c.wasRequested(),n[l.key]=l;var f=!0;if(e+1>this._source.maxzoom){var h=l.children(this._source.maxzoom)[0],p=this.getTile(h);p&&p.hasData()?n[h.key]=h:f=!1}else{this._findLoadedChildren(l,o,n);for(var d=l.children(this._source.maxzoom),g=0;g<d.length;g++)if(!n[d[g].key]){f=!1;break}}if(!f)for(var v=l.overscaledZ-1;v>=a;--v){var m=l.scaledTo(v);if(i[m.key])break;if(i[m.key]=!0,!(c=this.getTile(m))&&u&&(c=this._addTile(m)),c&&(n[m.key]=m,u=c.wasRequested(),c.hasData()))break}}}return n},r.prototype._addTile=function(e){var r=this._tiles[e.key];if(r)return r;(r=this._cache.getAndRemove(e))&&(this._setTileReloadTimer(e.key,r),r.tileID=e);var n=Boolean(r);return n||(r=new st(e,this._source.tileSize*e.overscaleFactor()),this._loadTile(r,this._tileLoaded.bind(this,r,e.key,r.state))),r?(r.uses++,this._tiles[e.key]=r,n||this._source.fire(new t.Event(\"dataloading\",{tile:r,coord:r.tileID,dataType:\"source\"})),r):null},r.prototype._setTileReloadTimer=function(t,e){var r=this;t in this._timers&&(clearTimeout(this._timers[t]),delete this._timers[t]);var n=e.getExpiryTimeout();n&&(this._timers[t]=setTimeout(function(){r._reloadTile(t,\"expired\"),delete r._timers[t]},n))},r.prototype._removeTile=function(t){var e=this._tiles[t];e&&(e.uses--,delete this._tiles[t],this._timers[t]&&(clearTimeout(this._timers[t]),delete this._timers[t]),e.uses>0||(e.hasData()?this._cache.add(e.tileID,e,e.getExpiryTimeout()):(e.aborted=!0,this._abortTile(e),this._unloadTile(e))))},r.prototype.clearTiles=function(){for(var t in this._shouldReloadOnResume=!1,this._paused=!1,this._tiles)this._removeTile(t);this._cache.reset()},r.prototype.tilesIn=function(e,r){for(var n=[],i=this.getIds(),a=1/0,o=1/0,s=-1/0,l=-1/0,c=e[0].zoom,u=0;u<e.length;u++){var f=e[u];a=Math.min(a,f.column),o=Math.min(o,f.row),s=Math.max(s,f.column),l=Math.max(l,f.row)}for(var h=0;h<i.length;h++){var p=this._tiles[i[h]],d=p.tileID,g=Math.pow(2,this.transform.zoom-p.tileID.overscaledZ),v=r*p.queryPadding*t.default$8/p.tileSize/g,m=[Xt(d,new t.default$17(a,o,c)),Xt(d,new t.default$17(s,l,c))];if(m[0].x-v<t.default$8&&m[0].y-v<t.default$8&&m[1].x+v>=0&&m[1].y+v>=0){for(var y=[],x=0;x<e.length;x++)y.push(Xt(d,e[x]));n.push({tile:p,tileID:d,queryGeometry:[y],scale:g})}}return n},r.prototype.getVisibleCoordinates=function(){for(var t=this,e=this.getRenderableIds().map(function(e){return t._tiles[e].tileID}),r=0,n=e;r<n.length;r+=1){var i=n[r];i.posMatrix=t.transform.calculatePosMatrix(i.toUnwrapped())}return e},r.prototype.hasTransition=function(){if(this._source.hasTransition())return!0;if(Zt(this._source.type))for(var t in this._tiles){var e=this._tiles[t];if(void 0!==e.fadeEndTime&&e.fadeEndTime>=a.now())return!0}return!1},r}(t.Evented);function Xt(e,r){var n=r.zoomTo(e.canonical.z);return new t.default$1((n.column-(e.canonical.x+e.wrap*Math.pow(2,e.canonical.z)))*t.default$8,(n.row-e.canonical.y)*t.default$8)}function Zt(t){return\"raster\"===t||\"image\"===t||\"video\"===t}function $t(){return new t.default.Worker(En.workerUrl)}Yt.maxOverzooming=10,Yt.maxUnderzooming=3;var Jt,Kt=function(){this.active={}};function Qt(e,r){var n={};for(var i in e)\"ref\"!==i&&(n[i]=e[i]);return t.default$18.forEach(function(t){t in r&&(n[t]=r[t])}),n}function te(t){t=t.slice();for(var e=Object.create(null),r=0;r<t.length;r++)e[t[r].id]=t[r];for(var n=0;n<t.length;n++)\"ref\"in t[n]&&(t[n]=Qt(t[n],e[t[n].ref]));return t}Kt.prototype.acquire=function(t){if(!this.workers){var e=En.workerCount;for(this.workers=[];this.workers.length<e;)this.workers.push(new $t)}return this.active[t]=!0,this.workers.slice()},Kt.prototype.release=function(t){delete this.active[t],0===Object.keys(this.active).length&&(this.workers.forEach(function(t){t.terminate()}),this.workers=null)};var ee={setStyle:\"setStyle\",addLayer:\"addLayer\",removeLayer:\"removeLayer\",setPaintProperty:\"setPaintProperty\",setLayoutProperty:\"setLayoutProperty\",setFilter:\"setFilter\",addSource:\"addSource\",removeSource:\"removeSource\",setGeoJSONSourceData:\"setGeoJSONSourceData\",setLayerZoomRange:\"setLayerZoomRange\",setLayerProperty:\"setLayerProperty\",setCenter:\"setCenter\",setZoom:\"setZoom\",setBearing:\"setBearing\",setPitch:\"setPitch\",setSprite:\"setSprite\",setGlyphs:\"setGlyphs\",setTransition:\"setTransition\",setLight:\"setLight\"};function re(t,e,r){r.push({command:ee.addSource,args:[t,e[t]]})}function ne(t,e,r){e.push({command:ee.removeSource,args:[t]}),r[t]=!0}function ie(t,e,r,n){ne(t,r,n),re(t,e,r)}function ae(e,r,n){var i;for(i in e[n])if(e[n].hasOwnProperty(i)&&\"data\"!==i&&!t.default$10(e[n][i],r[n][i]))return!1;for(i in r[n])if(r[n].hasOwnProperty(i)&&\"data\"!==i&&!t.default$10(e[n][i],r[n][i]))return!1;return!0}function oe(e,r,n,i,a,o){var s;for(s in r=r||{},e=e||{})e.hasOwnProperty(s)&&(t.default$10(e[s],r[s])||n.push({command:o,args:[i,s,r[s],a]}));for(s in r)r.hasOwnProperty(s)&&!e.hasOwnProperty(s)&&(t.default$10(e[s],r[s])||n.push({command:o,args:[i,s,r[s],a]}))}function se(t){return t.id}function le(t,e){return t[e.id]=e,t}var ce=function(t,e,r){var n=this.boxCells=[],i=this.circleCells=[];this.xCellCount=Math.ceil(t/r),this.yCellCount=Math.ceil(e/r);for(var a=0;a<this.xCellCount*this.yCellCount;a++)n.push([]),i.push([]);this.circleKeys=[],this.boxKeys=[],this.bboxes=[],this.circles=[],this.width=t,this.height=e,this.xScale=this.xCellCount/t,this.yScale=this.yCellCount/e,this.boxUid=0,this.circleUid=0};ce.prototype.keysLength=function(){return this.boxKeys.length+this.circleKeys.length},ce.prototype.insert=function(t,e,r,n,i){this._forEachCell(e,r,n,i,this._insertBoxCell,this.boxUid++),this.boxKeys.push(t),this.bboxes.push(e),this.bboxes.push(r),this.bboxes.push(n),this.bboxes.push(i)},ce.prototype.insertCircle=function(t,e,r,n){this._forEachCell(e-n,r-n,e+n,r+n,this._insertCircleCell,this.circleUid++),this.circleKeys.push(t),this.circles.push(e),this.circles.push(r),this.circles.push(n)},ce.prototype._insertBoxCell=function(t,e,r,n,i,a){this.boxCells[i].push(a)},ce.prototype._insertCircleCell=function(t,e,r,n,i,a){this.circleCells[i].push(a)},ce.prototype._query=function(t,e,r,n,i){if(r<0||t>this.width||n<0||e>this.height)return!i&&[];var a=[];if(t<=0&&e<=0&&this.width<=r&&this.height<=n){if(i)return!0;for(var o=0;o<this.boxKeys.length;o++)a.push({key:this.boxKeys[o],x1:this.bboxes[4*o],y1:this.bboxes[4*o+1],x2:this.bboxes[4*o+2],y2:this.bboxes[4*o+3]});for(var s=0;s<this.circleKeys.length;s++){var l=this.circles[3*s],c=this.circles[3*s+1],u=this.circles[3*s+2];a.push({key:this.circleKeys[s],x1:l-u,y1:c-u,x2:l+u,y2:c+u})}}else{var f={hitTest:i,seenUids:{box:{},circle:{}}};this._forEachCell(t,e,r,n,this._queryCell,a,f)}return i?a.length>0:a},ce.prototype._queryCircle=function(t,e,r,n){var i=t-r,a=t+r,o=e-r,s=e+r;if(a<0||i>this.width||s<0||o>this.height)return!n&&[];var l=[],c={hitTest:n,circle:{x:t,y:e,radius:r},seenUids:{box:{},circle:{}}};return this._forEachCell(i,o,a,s,this._queryCellCircle,l,c),n?l.length>0:l},ce.prototype.query=function(t,e,r,n){return this._query(t,e,r,n,!1)},ce.prototype.hitTest=function(t,e,r,n){return this._query(t,e,r,n,!0)},ce.prototype.hitTestCircle=function(t,e,r){return this._queryCircle(t,e,r,!0)},ce.prototype._queryCell=function(t,e,r,n,i,a,o){var s=o.seenUids,l=this.boxCells[i];if(null!==l)for(var c=this.bboxes,u=0,f=l;u<f.length;u+=1){var h=f[u];if(!s.box[h]){s.box[h]=!0;var p=4*h;if(t<=c[p+2]&&e<=c[p+3]&&r>=c[p+0]&&n>=c[p+1]){if(o.hitTest)return a.push(!0),!0;a.push({key:this.boxKeys[h],x1:c[p],y1:c[p+1],x2:c[p+2],y2:c[p+3]})}}}var d=this.circleCells[i];if(null!==d)for(var g=this.circles,v=0,m=d;v<m.length;v+=1){var y=m[v];if(!s.circle[y]){s.circle[y]=!0;var x=3*y;if(this._circleAndRectCollide(g[x],g[x+1],g[x+2],t,e,r,n)){if(o.hitTest)return a.push(!0),!0;var b=g[x],_=g[x+1],w=g[x+2];a.push({key:this.circleKeys[y],x1:b-w,y1:_-w,x2:b+w,y2:_+w})}}}},ce.prototype._queryCellCircle=function(t,e,r,n,i,a,o){var s=o.circle,l=o.seenUids,c=this.boxCells[i];if(null!==c)for(var u=this.bboxes,f=0,h=c;f<h.length;f+=1){var p=h[f];if(!l.box[p]){l.box[p]=!0;var d=4*p;if(this._circleAndRectCollide(s.x,s.y,s.radius,u[d+0],u[d+1],u[d+2],u[d+3]))return a.push(!0),!0}}var g=this.circleCells[i];if(null!==g)for(var v=this.circles,m=0,y=g;m<y.length;m+=1){var x=y[m];if(!l.circle[x]){l.circle[x]=!0;var b=3*x;if(this._circlesCollide(v[b],v[b+1],v[b+2],s.x,s.y,s.radius))return a.push(!0),!0}}},ce.prototype._forEachCell=function(t,e,r,n,i,a,o){for(var s=this._convertToXCellCoord(t),l=this._convertToYCellCoord(e),c=this._convertToXCellCoord(r),u=this._convertToYCellCoord(n),f=s;f<=c;f++)for(var h=l;h<=u;h++){var p=this.xCellCount*h+f;if(i.call(this,t,e,r,n,p,a,o))return}},ce.prototype._convertToXCellCoord=function(t){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(t*this.xScale)))},ce.prototype._convertToYCellCoord=function(t){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(t*this.yScale)))},ce.prototype._circlesCollide=function(t,e,r,n,i,a){var o=n-t,s=i-e,l=r+a;return l*l>o*o+s*s},ce.prototype._circleAndRectCollide=function(t,e,r,n,i,a,o){var s=(a-n)/2,l=Math.abs(t-(n+s));if(l>s+r)return!1;var c=(o-i)/2,u=Math.abs(e-(i+c));if(u>c+r)return!1;if(l<=s||u<=c)return!0;var f=l-s,h=u-c;return f*f+h*h<=r*r};var ue=t.default$19.layout;function fe(e,r,n,i,a){var o=t.mat4.identity(new Float32Array(16));return r?(t.mat4.identity(o),t.mat4.scale(o,o,[1/a,1/a,1]),n||t.mat4.rotateZ(o,o,i.angle)):(t.mat4.scale(o,o,[i.width/2,-i.height/2,1]),t.mat4.translate(o,o,[1,-1,0]),t.mat4.multiply(o,o,e)),o}function he(e,r,n,i,a){var o=t.mat4.identity(new Float32Array(16));return r?(t.mat4.multiply(o,o,e),t.mat4.scale(o,o,[a,a,1]),n||t.mat4.rotateZ(o,o,-i.angle)):(t.mat4.scale(o,o,[1,-1,1]),t.mat4.translate(o,o,[-1,-1,0]),t.mat4.scale(o,o,[2/i.width,2/i.height,1])),o}function pe(e,r){var n=[e.x,e.y,0,1];ke(n,n,r);var i=n[3];return{point:new t.default$1(n[0]/i,n[1]/i),signedDistanceFromCamera:i}}function de(t,e){var r=t[0]/t[3],n=t[1]/t[3];return r>=-e[0]&&r<=e[0]&&n>=-e[1]&&n<=e[1]}function ge(e,r,n,i,a,o,s,l){var c=i?e.textSizeData:e.iconSizeData,u=t.evaluateSizeForZoom(c,n.transform.zoom,ue.properties[i?\"text-size\":\"icon-size\"]),f=[256/n.width*2+1,256/n.height*2+1],h=i?e.text.dynamicLayoutVertexArray:e.icon.dynamicLayoutVertexArray;h.clear();for(var p=e.lineVertexArray,d=i?e.text.placedSymbolArray:e.icon.placedSymbolArray,g=n.transform.width/n.transform.height,v=!1,m=0;m<d.length;m++){var y=d.get(m);if(y.hidden||y.writingMode===t.WritingMode.vertical&&!v)we(y.numGlyphs,h);else{v=!1;var x=[y.anchorX,y.anchorY,0,1];if(t.vec4.transformMat4(x,x,r),de(x,f)){var b=.5+x[3]/n.transform.cameraToCenterDistance*.5,_=t.evaluateSizeForFeature(c,u,y),w=s?_*b:_/b,k=new t.default$1(y.anchorX,y.anchorY),M=pe(k,a).point,A={},T=ye(y,w,!1,l,r,a,o,e.glyphOffsetArray,p,h,M,k,A,g);v=T.useVertical,(T.notEnoughRoom||v||T.needsFlipping&&ye(y,w,!0,l,r,a,o,e.glyphOffsetArray,p,h,M,k,A,g).notEnoughRoom)&&we(y.numGlyphs,h)}else we(y.numGlyphs,h)}}i?e.text.dynamicLayoutVertexBuffer.updateData(h):e.icon.dynamicLayoutVertexBuffer.updateData(h)}function ve(t,e,r,n,i,a,o,s,l,c,u,f){var h=s.glyphStartIndex+s.numGlyphs,p=s.lineStartIndex,d=s.lineStartIndex+s.lineLength,g=e.getoffsetX(s.glyphStartIndex),v=e.getoffsetX(h-1),m=be(t*g,r,n,i,a,o,s.segment,p,d,l,c,u,f);if(!m)return null;var y=be(t*v,r,n,i,a,o,s.segment,p,d,l,c,u,f);return y?{first:m,last:y}:null}function me(e,r,n,i){return e===t.WritingMode.horizontal&&Math.abs(n.y-r.y)>Math.abs(n.x-r.x)*i?{useVertical:!0}:(e===t.WritingMode.vertical?r.y<n.y:r.x>n.x)?{needsFlipping:!0}:null}function ye(e,r,n,i,a,o,s,l,c,u,f,h,p,d){var g,v=r/24,m=e.lineOffsetX*r,y=e.lineOffsetY*r;if(e.numGlyphs>1){var x=e.glyphStartIndex+e.numGlyphs,b=e.lineStartIndex,_=e.lineStartIndex+e.lineLength,w=ve(v,l,m,y,n,f,h,e,c,o,p,!1);if(!w)return{notEnoughRoom:!0};var k=pe(w.first.point,s).point,M=pe(w.last.point,s).point;if(i&&!n){var A=me(e.writingMode,k,M,d);if(A)return A}g=[w.first];for(var T=e.glyphStartIndex+1;T<x-1;T++)g.push(be(v*l.getoffsetX(T),m,y,n,f,h,e.segment,b,_,c,o,p,!1));g.push(w.last)}else{if(i&&!n){var S=pe(h,a).point,E=e.lineStartIndex+e.segment+1,C=new t.default$1(c.getx(E),c.gety(E)),L=pe(C,a),z=L.signedDistanceFromCamera>0?L.point:xe(h,C,S,1,a),O=me(e.writingMode,S,z,d);if(O)return O}var I=be(v*l.getoffsetX(e.glyphStartIndex),m,y,n,f,h,e.segment,e.lineStartIndex,e.lineStartIndex+e.lineLength,c,o,p,!1);if(!I)return{notEnoughRoom:!0};g=[I]}for(var P=0,D=g;P<D.length;P+=1){var R=D[P];t.addDynamicAttributes(u,R.point,R.angle)}return{}}function xe(t,e,r,n,i){var a=pe(t.add(t.sub(e)._unit()),i).point,o=r.sub(a);return r.add(o._mult(n/o.mag()))}function be(e,r,n,i,a,o,s,l,c,u,f,h,p){var d=i?e-r:e+r,g=d>0?1:-1,v=0;i&&(g*=-1,v=Math.PI),g<0&&(v+=Math.PI);for(var m=g>0?l+s:l+s+1,y=m,x=a,b=a,_=0,w=0,k=Math.abs(d);_+w<=k;){if((m+=g)<l||m>=c)return null;if(b=x,void 0===(x=h[m])){var M=new t.default$1(u.getx(m),u.gety(m)),A=pe(M,f);if(A.signedDistanceFromCamera>0)x=h[m]=A.point;else{var T=m-g;x=xe(0===_?o:new t.default$1(u.getx(T),u.gety(T)),M,b,k-_+1,f)}}_+=w,w=b.dist(x)}var S=(k-_)/w,E=x.sub(b),C=E.mult(S)._add(b);return C._add(E._unit()._perp()._mult(n*g)),{point:C,angle:v+Math.atan2(x.y-b.y,x.x-b.x),tileDistance:p?{prevTileDistance:m-g===y?0:u.gettileUnitDistanceFromAnchor(m-g),lastSegmentViewportDistance:k-_}:null}}var _e=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function we(t,e){for(var r=0;r<t;r++){var n=e.length;e.resize(n+4),e.float32.set(_e,3*n)}}function ke(t,e,r){var n=e[0],i=e[1];return t[0]=r[0]*n+r[4]*i+r[12],t[1]=r[1]*n+r[5]*i+r[13],t[3]=r[3]*n+r[7]*i+r[15],t}t.default$20.mat4;var Me=function(t,e,r){void 0===e&&(e=new ce(t.width+200,t.height+200,25)),void 0===r&&(r=new ce(t.width+200,t.height+200,25)),this.transform=t,this.grid=e,this.ignoredGrid=r,this.pitchfactor=Math.cos(t._pitch)*t.cameraToCenterDistance,this.screenRightBoundary=t.width+100,this.screenBottomBoundary=t.height+100};function Ae(t,e,r){t[e+4]=r?1:0}function Te(e,r,n){return r*(t.default$8/(e.tileSize*Math.pow(2,n-e.tileID.overscaledZ)))}Me.prototype.placeCollisionBox=function(t,e,r,n){var i=this.projectAndGetPerspectiveRatio(n,t.anchorPointX,t.anchorPointY),a=r*i.perspectiveRatio,o=t.x1*a+i.point.x,s=t.y1*a+i.point.y,l=t.x2*a+i.point.x,c=t.y2*a+i.point.y;return!e&&this.grid.hitTest(o,s,l,c)?{box:[],offscreen:!1}:{box:[o,s,l,c],offscreen:this.isOffscreen(o,s,l,c)}},Me.prototype.approximateTileDistance=function(t,e,r,n,i){var a=i?1:n/this.pitchfactor,o=t.lastSegmentViewportDistance*r;return t.prevTileDistance+o+(a-1)*o*Math.abs(Math.sin(e))},Me.prototype.placeCollisionCircles=function(e,r,n,i,a,o,s,l,c,u,f,h,p){var d=[],g=this.projectAnchor(u,o.anchorX,o.anchorY),v=c/24,m=o.lineOffsetX*c,y=o.lineOffsetY*c,x=new t.default$1(o.anchorX,o.anchorY),b=ve(v,l,m,y,!1,pe(x,f).point,x,o,s,f,{},!0),_=!1,w=!0,k=g.perspectiveRatio*i,M=1/(i*n),A=0,T=0;b&&(A=this.approximateTileDistance(b.first.tileDistance,b.first.angle,M,g.cameraDistance,p),T=this.approximateTileDistance(b.last.tileDistance,b.last.angle,M,g.cameraDistance,p));for(var S=0;S<e.length;S+=5){var E=e[S],C=e[S+1],L=e[S+2],z=e[S+3];if(!b||z<-A||z>T)Ae(e,S,!1);else{var O=this.projectPoint(u,E,C),I=L*k;if(d.length>0){var P=O.x-d[d.length-4],D=O.y-d[d.length-3];if(I*I*2>P*P+D*D&&S+8<e.length){var R=e[S+8];if(R>-A&&R<T){Ae(e,S,!1);continue}}}var B=S/5;if(d.push(O.x,O.y,I,B),Ae(e,S,!0),w=w&&this.isOffscreen(O.x-I,O.y-I,O.x+I,O.y+I),!r&&this.grid.hitTestCircle(O.x,O.y,I)){if(!h)return{circles:[],offscreen:!1};_=!0}}}return{circles:_?[]:d,offscreen:w}},Me.prototype.queryRenderedSymbols=function(e){if(0===e.length||0===this.grid.keysLength()&&0===this.ignoredGrid.keysLength())return{};for(var r=[],n=1/0,i=1/0,a=-1/0,o=-1/0,s=0,l=e;s<l.length;s+=1){var c=l[s],u=new t.default$1(c.x+100,c.y+100);n=Math.min(n,u.x),i=Math.min(i,u.y),a=Math.max(a,u.x),o=Math.max(o,u.y),r.push(u)}for(var f={},h={},p=0,d=this.grid.query(n,i,a,o).concat(this.ignoredGrid.query(n,i,a,o));p<d.length;p+=1){var g=d[p],v=g.key;if(void 0===f[v.bucketInstanceId]&&(f[v.bucketInstanceId]={}),!f[v.bucketInstanceId][v.featureIndex]){var m=[new t.default$1(g.x1,g.y1),new t.default$1(g.x2,g.y1),new t.default$1(g.x2,g.y2),new t.default$1(g.x1,g.y2)];t.polygonIntersectsPolygon(r,m)&&(f[v.bucketInstanceId][v.featureIndex]=!0,void 0===h[v.bucketInstanceId]&&(h[v.bucketInstanceId]=[]),h[v.bucketInstanceId].push(v.featureIndex))}}return h},Me.prototype.insertCollisionBox=function(t,e,r,n){var i={bucketInstanceId:r,featureIndex:n};(e?this.ignoredGrid:this.grid).insert(i,t[0],t[1],t[2],t[3])},Me.prototype.insertCollisionCircles=function(t,e,r,n){for(var i=e?this.ignoredGrid:this.grid,a={bucketInstanceId:r,featureIndex:n},o=0;o<t.length;o+=4)i.insertCircle(a,t[o],t[o+1],t[o+2])},Me.prototype.projectAnchor=function(t,e,r){var n=[e,r,0,1];return ke(n,n,t),{perspectiveRatio:.5+this.transform.cameraToCenterDistance/n[3]*.5,cameraDistance:n[3]}},Me.prototype.projectPoint=function(e,r,n){var i=[r,n,0,1];return ke(i,i,e),new t.default$1((i[0]/i[3]+1)/2*this.transform.width+100,(-i[1]/i[3]+1)/2*this.transform.height+100)},Me.prototype.projectAndGetPerspectiveRatio=function(e,r,n){var i=[r,n,0,1];return ke(i,i,e),{point:new t.default$1((i[0]/i[3]+1)/2*this.transform.width+100,(-i[1]/i[3]+1)/2*this.transform.height+100),perspectiveRatio:.5+this.transform.cameraToCenterDistance/i[3]*.5}},Me.prototype.isOffscreen=function(t,e,r,n){return r<100||t>=this.screenRightBoundary||n<100||e>this.screenBottomBoundary};var Se=t.default$19.layout,Ee=function(t,e,r,n){this.opacity=t?Math.max(0,Math.min(1,t.opacity+(t.placed?e:-e))):n&&r?1:0,this.placed=r};Ee.prototype.isHidden=function(){return 0===this.opacity&&!this.placed};var Ce=function(t,e,r,n,i){this.text=new Ee(t?t.text:null,e,r,i),this.icon=new Ee(t?t.icon:null,e,n,i)};Ce.prototype.isHidden=function(){return this.text.isHidden()&&this.icon.isHidden()};var Le=function(t,e,r){this.text=t,this.icon=e,this.skipFade=r},ze=function(t,e){this.transform=t.clone(),this.collisionIndex=new Me(this.transform),this.placements={},this.opacities={},this.stale=!1,this.fadeDuration=e,this.retainedQueryData={}};function Oe(t,e,r){t.emplaceBack(e?1:0,r?1:0),t.emplaceBack(e?1:0,r?1:0),t.emplaceBack(e?1:0,r?1:0),t.emplaceBack(e?1:0,r?1:0)}ze.prototype.placeLayerTile=function(e,r,n,i){var a=r.getBucket(e),o=r.latestFeatureIndex;if(a&&o&&e.id===a.layerIds[0]){var s=r.collisionBoxArray,l=a.layers[0].layout,c=Math.pow(2,this.transform.zoom-r.tileID.overscaledZ),u=r.tileSize/t.default$8,f=this.transform.calculatePosMatrix(r.tileID.toUnwrapped()),h=fe(f,\"map\"===l.get(\"text-pitch-alignment\"),\"map\"===l.get(\"text-rotation-alignment\"),this.transform,Te(r,1,this.transform.zoom)),p=fe(f,\"map\"===l.get(\"icon-pitch-alignment\"),\"map\"===l.get(\"icon-rotation-alignment\"),this.transform,Te(r,1,this.transform.zoom));this.retainedQueryData[a.bucketInstanceId]=new function(t,e,r,n,i){this.bucketInstanceId=t,this.featureIndex=e,this.sourceLayerIndex=r,this.bucketIndex=n,this.tileID=i}(a.bucketInstanceId,o,a.sourceLayerIndex,a.index,r.tileID),this.placeLayerBucket(a,f,h,p,c,u,n,i,s)}},ze.prototype.placeLayerBucket=function(e,r,n,i,a,o,s,l,c){for(var u=e.layers[0].layout,f=t.evaluateSizeForZoom(e.textSizeData,this.transform.zoom,Se.properties[\"text-size\"]),h=!e.hasTextData()||u.get(\"text-optional\"),p=!e.hasIconData()||u.get(\"icon-optional\"),d=0,g=e.symbolInstances;d<g.length;d+=1){var v=g[d];if(!l[v.crossTileID]){var m=void 0!==v.feature.text,y=void 0!==v.feature.icon,x=!0,b=null,_=null,w=null,k=0,M=0;v.collisionArrays||(v.collisionArrays=e.deserializeCollisionBoxes(c,v.textBoxStartIndex,v.textBoxEndIndex,v.iconBoxStartIndex,v.iconBoxEndIndex)),v.collisionArrays.textFeatureIndex&&(k=v.collisionArrays.textFeatureIndex),v.collisionArrays.textBox&&(m=(b=this.collisionIndex.placeCollisionBox(v.collisionArrays.textBox,u.get(\"text-allow-overlap\"),o,r)).box.length>0,x=x&&b.offscreen);var A=v.collisionArrays.textCircles;if(A){var T=e.text.placedSymbolArray.get(v.placedTextSymbolIndices[0]),S=t.evaluateSizeForFeature(e.textSizeData,f,T);_=this.collisionIndex.placeCollisionCircles(A,u.get(\"text-allow-overlap\"),a,o,v.key,T,e.lineVertexArray,e.glyphOffsetArray,S,r,n,s,\"map\"===u.get(\"text-pitch-alignment\")),m=u.get(\"text-allow-overlap\")||_.circles.length>0,x=x&&_.offscreen}v.collisionArrays.iconFeatureIndex&&(M=v.collisionArrays.iconFeatureIndex),v.collisionArrays.iconBox&&(y=(w=this.collisionIndex.placeCollisionBox(v.collisionArrays.iconBox,u.get(\"icon-allow-overlap\"),o,r)).box.length>0,x=x&&w.offscreen),h||p?p?h||(y=y&&m):m=y&&m:y=m=y&&m,m&&b&&this.collisionIndex.insertCollisionBox(b.box,u.get(\"text-ignore-placement\"),e.bucketInstanceId,k),y&&w&&this.collisionIndex.insertCollisionBox(w.box,u.get(\"icon-ignore-placement\"),e.bucketInstanceId,M),m&&_&&this.collisionIndex.insertCollisionCircles(_.circles,u.get(\"text-ignore-placement\"),e.bucketInstanceId,k),this.placements[v.crossTileID]=new Le(m,y,x||e.justReloaded),l[v.crossTileID]=!0}}e.justReloaded=!1},ze.prototype.commit=function(t,e){this.commitTime=e;var r=!1,n=t&&0!==this.fadeDuration?(this.commitTime-t.commitTime)/this.fadeDuration:1,i=t?t.opacities:{};for(var a in this.placements){var o=this.placements[a],s=i[a];s?(this.opacities[a]=new Ce(s,n,o.text,o.icon),r=r||o.text!==s.text.placed||o.icon!==s.icon.placed):(this.opacities[a]=new Ce(null,n,o.text,o.icon,o.skipFade),r=r||o.text||o.icon)}for(var l in i){var c=i[l];if(!this.opacities[l]){var u=new Ce(c,n,!1,!1);u.isHidden()||(this.opacities[l]=u,r=r||c.text.placed||c.icon.placed)}}r?this.lastPlacementChangeTime=e:\"number\"!=typeof this.lastPlacementChangeTime&&(this.lastPlacementChangeTime=t?t.lastPlacementChangeTime:e)},ze.prototype.updateLayerOpacities=function(t,e){for(var r={},n=0,i=e;n<i.length;n+=1){var a=i[n],o=a.getBucket(t);o&&a.latestFeatureIndex&&t.id===o.layerIds[0]&&this.updateBucketOpacities(o,r,a.collisionBoxArray)}},ze.prototype.updateBucketOpacities=function(t,e,r){t.hasTextData()&&t.text.opacityVertexArray.clear(),t.hasIconData()&&t.icon.opacityVertexArray.clear(),t.hasCollisionBoxData()&&t.collisionBox.collisionVertexArray.clear(),t.hasCollisionCircleData()&&t.collisionCircle.collisionVertexArray.clear();for(var n=t.layers[0].layout,i=new Ce(null,0,!1,!1,!0),a=new Ce(null,0,n.get(\"text-allow-overlap\"),n.get(\"icon-allow-overlap\"),!0),o=0;o<t.symbolInstances.length;o++){var s=t.symbolInstances[o],l=e[s.crossTileID],c=this.opacities[s.crossTileID];l?c=i:c||(c=a,this.opacities[s.crossTileID]=c),e[s.crossTileID]=!0;var u=s.numGlyphVertices>0||s.numVerticalGlyphVertices>0,f=s.numIconVertices>0;if(u){for(var h=je(c.text),p=(s.numGlyphVertices+s.numVerticalGlyphVertices)/4,d=0;d<p;d++)t.text.opacityVertexArray.emplaceBack(h);for(var g=0,v=s.placedTextSymbolIndices;g<v.length;g+=1){var m=v[g];t.text.placedSymbolArray.get(m).hidden=c.text.isHidden()}}if(f){for(var y=je(c.icon),x=0;x<s.numIconVertices/4;x++)t.icon.opacityVertexArray.emplaceBack(y);t.icon.placedSymbolArray.get(o).hidden=c.icon.isHidden()}s.collisionArrays||(s.collisionArrays=t.deserializeCollisionBoxes(r,s.textBoxStartIndex,s.textBoxEndIndex,s.iconBoxStartIndex,s.iconBoxEndIndex));var b=s.collisionArrays;if(b){b.textBox&&t.hasCollisionBoxData()&&Oe(t.collisionBox.collisionVertexArray,c.text.placed,!1),b.iconBox&&t.hasCollisionBoxData()&&Oe(t.collisionBox.collisionVertexArray,c.icon.placed,!1);var _=b.textCircles;if(_&&t.hasCollisionCircleData())for(var w=0;w<_.length;w+=5){var k=l||0===_[w+4];Oe(t.collisionCircle.collisionVertexArray,c.text.placed,k)}}}t.sortFeatures(this.transform.angle),this.retainedQueryData[t.bucketInstanceId]&&(this.retainedQueryData[t.bucketInstanceId].featureSortOrder=t.featureSortOrder),t.hasTextData()&&t.text.opacityVertexBuffer&&t.text.opacityVertexBuffer.updateData(t.text.opacityVertexArray),t.hasIconData()&&t.icon.opacityVertexBuffer&&t.icon.opacityVertexBuffer.updateData(t.icon.opacityVertexArray),t.hasCollisionBoxData()&&t.collisionBox.collisionVertexBuffer&&t.collisionBox.collisionVertexBuffer.updateData(t.collisionBox.collisionVertexArray),t.hasCollisionCircleData()&&t.collisionCircle.collisionVertexBuffer&&t.collisionCircle.collisionVertexBuffer.updateData(t.collisionCircle.collisionVertexArray)},ze.prototype.symbolFadeChange=function(t){return 0===this.fadeDuration?1:(t-this.commitTime)/this.fadeDuration},ze.prototype.hasTransitions=function(t){return this.stale||t-this.lastPlacementChangeTime<this.fadeDuration},ze.prototype.stillRecent=function(t){return\"undefined\"!==this.commitTime&&this.commitTime+this.fadeDuration>t},ze.prototype.setStale=function(){this.stale=!0};var Ie=Math.pow(2,25),Pe=Math.pow(2,24),De=Math.pow(2,17),Re=Math.pow(2,16),Be=Math.pow(2,9),Fe=Math.pow(2,8),Ne=Math.pow(2,1);function je(t){if(0===t.opacity&&!t.placed)return 0;if(1===t.opacity&&t.placed)return 4294967295;var e=t.placed?1:0,r=Math.floor(127*t.opacity);return r*Ie+e*Pe+r*De+e*Re+r*Be+e*Fe+r*Ne+e}var Ve=function(){this._currentTileIndex=0,this._seenCrossTileIDs={}};Ve.prototype.continuePlacement=function(t,e,r,n,i){for(;this._currentTileIndex<t.length;){var a=t[this._currentTileIndex];if(e.placeLayerTile(n,a,r,this._seenCrossTileIDs),this._currentTileIndex++,i())return!0}};var Ue=function(t,e,r,n,i){this.placement=new ze(t,i),this._currentPlacementIndex=e.length-1,this._forceFullPlacement=r,this._showCollisionBoxes=n,this._done=!1};Ue.prototype.isDone=function(){return this._done},Ue.prototype.continuePlacement=function(t,e,r){for(var n=this,i=a.now(),o=function(){var t=a.now()-i;return!n._forceFullPlacement&&t>2};this._currentPlacementIndex>=0;){var s=e[t[n._currentPlacementIndex]],l=n.placement.collisionIndex.transform.zoom;if(\"symbol\"===s.type&&(!s.minzoom||s.minzoom<=l)&&(!s.maxzoom||s.maxzoom>l)){if(n._inProgressLayer||(n._inProgressLayer=new Ve),n._inProgressLayer.continuePlacement(r[s.source],n.placement,n._showCollisionBoxes,s,o))return;delete n._inProgressLayer}n._currentPlacementIndex--}this._done=!0},Ue.prototype.commit=function(t,e){return this.placement.commit(t,e),this.placement};var qe=512/t.default$8/2,He=function(t,e,r){this.tileID=t,this.indexedSymbolInstances={},this.bucketInstanceId=r;for(var n=0,i=e;n<i.length;n+=1){var a=i[n],o=a.key;this.indexedSymbolInstances[o]||(this.indexedSymbolInstances[o]=[]),this.indexedSymbolInstances[o].push({crossTileID:a.crossTileID,coord:this.getScaledCoordinates(a,t)})}};He.prototype.getScaledCoordinates=function(e,r){var n=r.canonical.z-this.tileID.canonical.z,i=qe/Math.pow(2,n),a=e.anchor;return{x:Math.floor((r.canonical.x*t.default$8+a.x)*i),y:Math.floor((r.canonical.y*t.default$8+a.y)*i)}},He.prototype.findMatches=function(t,e,r){for(var n=this.tileID.canonical.z<e.canonical.z?1:Math.pow(2,this.tileID.canonical.z-e.canonical.z),i=0,a=t;i<a.length;i+=1){var o=a[i];if(!o.crossTileID){var s=this.indexedSymbolInstances[o.key];if(s)for(var l=this.getScaledCoordinates(o,e),c=0,u=s;c<u.length;c+=1){var f=u[c];if(Math.abs(f.coord.x-l.x)<=n&&Math.abs(f.coord.y-l.y)<=n&&!r[f.crossTileID]){r[f.crossTileID]=!0,o.crossTileID=f.crossTileID;break}}}}};var Ge=function(){this.maxCrossTileID=0};Ge.prototype.generate=function(){return++this.maxCrossTileID};var We=function(){this.indexes={},this.usedCrossTileIDs={},this.lng=0};We.prototype.handleWrapJump=function(t){var e=Math.round((t-this.lng)/360);if(0!==e)for(var r in this.indexes){var n=this.indexes[r],i={};for(var a in n){var o=n[a];o.tileID=o.tileID.unwrapTo(o.tileID.wrap+e),i[o.tileID.key]=o}this.indexes[r]=i}this.lng=t},We.prototype.addBucket=function(t,e,r){if(this.indexes[t.overscaledZ]&&this.indexes[t.overscaledZ][t.key]){if(this.indexes[t.overscaledZ][t.key].bucketInstanceId===e.bucketInstanceId)return!1;this.removeBucketCrossTileIDs(t.overscaledZ,this.indexes[t.overscaledZ][t.key])}for(var n=0,i=e.symbolInstances;n<i.length;n+=1)i[n].crossTileID=0;this.usedCrossTileIDs[t.overscaledZ]||(this.usedCrossTileIDs[t.overscaledZ]={});var a=this.usedCrossTileIDs[t.overscaledZ];for(var o in this.indexes){var s=this.indexes[o];if(Number(o)>t.overscaledZ)for(var l in s){var c=s[l];c.tileID.isChildOf(t)&&c.findMatches(e.symbolInstances,t,a)}else{var u=s[t.scaledTo(Number(o)).key];u&&u.findMatches(e.symbolInstances,t,a)}}for(var f=0,h=e.symbolInstances;f<h.length;f+=1){var p=h[f];p.crossTileID||(p.crossTileID=r.generate(),a[p.crossTileID]=!0)}return void 0===this.indexes[t.overscaledZ]&&(this.indexes[t.overscaledZ]={}),this.indexes[t.overscaledZ][t.key]=new He(t,e.symbolInstances,e.bucketInstanceId),!0},We.prototype.removeBucketCrossTileIDs=function(t,e){for(var r in e.indexedSymbolInstances)for(var n=0,i=e.indexedSymbolInstances[r];n<i.length;n+=1){var a=i[n];delete this.usedCrossTileIDs[t][a.crossTileID]}},We.prototype.removeStaleBuckets=function(t){var e=!1;for(var r in this.indexes){var n=this.indexes[r];for(var i in n)t[n[i].bucketInstanceId]||(this.removeBucketCrossTileIDs(r,n[i]),delete n[i],e=!0)}return e};var Ye=function(){this.layerIndexes={},this.crossTileIDs=new Ge,this.maxBucketInstanceId=0,this.bucketsInCurrentPlacement={}};Ye.prototype.addLayer=function(t,e,r){var n=this.layerIndexes[t.id];void 0===n&&(n=this.layerIndexes[t.id]=new We);var i=!1,a={};n.handleWrapJump(r);for(var o=0,s=e;o<s.length;o+=1){var l=s[o],c=l.getBucket(t);c&&t.id===c.layerIds[0]&&(c.bucketInstanceId||(c.bucketInstanceId=++this.maxBucketInstanceId),n.addBucket(l.tileID,c,this.crossTileIDs)&&(i=!0),a[c.bucketInstanceId]=!0)}return n.removeStaleBuckets(a)&&(i=!0),i},Ye.prototype.pruneUnusedLayers=function(t){var e={};for(var r in t.forEach(function(t){e[t]=!0}),this.layerIndexes)e[r]||delete this.layerIndexes[r]};var Xe=function(e,r){return t.emitValidationErrors(e,r&&r.filter(function(t){return\"source.canvas\"!==t.identifier}))},Ze=t.pick(ee,[\"addLayer\",\"removeLayer\",\"setPaintProperty\",\"setLayoutProperty\",\"setFilter\",\"addSource\",\"removeSource\",\"setLayerZoomRange\",\"setLight\",\"setTransition\",\"setGeoJSONSourceData\"]),$e=t.pick(ee,[\"setCenter\",\"setZoom\",\"setBearing\",\"setPitch\"]),Je=function(e){function r(n,i){var a=this;void 0===i&&(i={}),e.call(this),this.map=n,this.dispatcher=new q((Jt||(Jt=new Kt),Jt),this),this.imageManager=new O,this.glyphManager=new F(n._transformRequest,i.localIdeographFontFamily),this.lineAtlas=new U(256,512),this.crossTileSymbolIndex=new Ye,this._layers={},this._order=[],this.sourceCaches={},this.zoomHistory=new t.default$23,this._loaded=!1,this._resetUpdates();var o=this;this._rtlTextPluginCallback=r.registerForPluginAvailability(function(t){for(var e in o.dispatcher.broadcast(\"loadRTLTextPlugin\",t.pluginURL,t.completionCallback),o.sourceCaches)o.sourceCaches[e].reload()}),this.on(\"data\",function(t){if(\"source\"===t.dataType&&\"metadata\"===t.sourceDataType){var e=a.sourceCaches[t.sourceId];if(e){var r=e.getSource();if(r&&r.vectorLayerIds)for(var n in a._layers){var i=a._layers[n];i.source===r.id&&a._validateLayer(i)}}}})}return e&&(r.__proto__=e),r.prototype=Object.create(e&&e.prototype),r.prototype.constructor=r,r.prototype.loadURL=function(e,r){var n=this;void 0===r&&(r={}),this.fire(new t.Event(\"dataloading\",{dataType:\"style\"}));var i=\"boolean\"==typeof r.validate?r.validate:!x(e);e=function(t,e){if(!x(t))return t;var r=A(t);return r.path=\"/styles/v1\"+r.path,y(r,e)}(e,r.accessToken);var a=this.map._transformRequest(e,t.ResourceType.Style);t.getJSON(a,function(e,r){e?n.fire(new t.ErrorEvent(e)):r&&n._load(r,i)})},r.prototype.loadJSON=function(e,r){var n=this;void 0===r&&(r={}),this.fire(new t.Event(\"dataloading\",{dataType:\"style\"})),a.frame(function(){n._load(e,!1!==r.validate)})},r.prototype._load=function(e,r){var n=this;if(!r||!Xe(this,t.validateStyle(e))){for(var i in this._loaded=!0,this.stylesheet=e,e.sources)n.addSource(i,e.sources[i],{validate:!1});e.sprite?function(e,r,n){var i,o,s,l=a.devicePixelRatio>1?\"@2x\":\"\";function c(){if(s)n(s);else if(i&&o){var e=a.getImageData(o),r={};for(var l in i){var c=i[l],u=c.width,f=c.height,h=c.x,p=c.y,d=c.sdf,g=c.pixelRatio,v=new t.RGBAImage({width:u,height:f});t.RGBAImage.copy(e,v,{x:h,y:p},{x:0,y:0},{width:u,height:f}),r[l]={data:v,pixelRatio:g,sdf:d}}n(null,r)}}t.getJSON(r(_(e,l,\".json\"),t.ResourceType.SpriteJSON),function(t,e){s||(s=t,i=e,c())}),t.getImage(r(_(e,l,\".png\"),t.ResourceType.SpriteImage),function(t,e){s||(s=t,o=e,c())})}(e.sprite,this.map._transformRequest,function(e,r){if(e)n.fire(new t.ErrorEvent(e));else if(r)for(var i in r)n.imageManager.addImage(i,r[i]);n.imageManager.setLoaded(!0),n.fire(new t.Event(\"data\",{dataType:\"style\"}))}):this.imageManager.setLoaded(!0),this.glyphManager.setURL(e.glyphs);var o=te(this.stylesheet.layers);this._order=o.map(function(t){return t.id}),this._layers={};for(var s=0,l=o;s<l.length;s+=1){var c=l[s];(c=t.default$22(c)).setEventedParent(n,{layer:{id:c.id}}),n._layers[c.id]=c}this.dispatcher.broadcast(\"setLayers\",this._serializeLayers(this._order)),this.light=new V(this.stylesheet.light),this.fire(new t.Event(\"data\",{dataType:\"style\"})),this.fire(new t.Event(\"style.load\"))}},r.prototype._validateLayer=function(e){var r=this.sourceCaches[e.source];if(r){var n=e.sourceLayer;if(n){var i=r.getSource();(\"geojson\"===i.type||i.vectorLayerIds&&-1===i.vectorLayerIds.indexOf(n))&&this.fire(new t.ErrorEvent(new Error('Source layer \"'+n+'\" does not exist on source \"'+i.id+'\" as specified by style layer \"'+e.id+'\"')))}}},r.prototype.loaded=function(){if(!this._loaded)return!1;if(Object.keys(this._updatedSources).length)return!1;for(var t in this.sourceCaches)if(!this.sourceCaches[t].loaded())return!1;return!!this.imageManager.isLoaded()},r.prototype._serializeLayers=function(t){var e=this;return t.map(function(t){return e._layers[t].serialize()})},r.prototype.hasTransitions=function(){if(this.light&&this.light.hasTransition())return!0;for(var t in this.sourceCaches)if(this.sourceCaches[t].hasTransition())return!0;for(var e in this._layers)if(this._layers[e].hasTransition())return!0;return!1},r.prototype._checkLoaded=function(){if(!this._loaded)throw new Error(\"Style is not done loading\")},r.prototype.update=function(e){if(this._loaded){if(this._changed){var r=Object.keys(this._updatedLayers),n=Object.keys(this._removedLayers);for(var i in(r.length||n.length)&&this._updateWorkerLayers(r,n),this._updatedSources){var a=this._updatedSources[i];\"reload\"===a?this._reloadSource(i):\"clear\"===a&&this._clearSource(i)}for(var o in this._updatedPaintProps)this._layers[o].updateTransitions(e);this.light.updateTransitions(e),this._resetUpdates(),this.fire(new t.Event(\"data\",{dataType:\"style\"}))}for(var s in this.sourceCaches)this.sourceCaches[s].used=!1;for(var l=0,c=this._order;l<c.length;l+=1){var u=c[l],f=this._layers[u];f.recalculate(e),!f.isHidden(e.zoom)&&f.source&&(this.sourceCaches[f.source].used=!0)}this.light.recalculate(e),this.z=e.zoom}},r.prototype._updateWorkerLayers=function(t,e){this.dispatcher.broadcast(\"updateLayers\",{layers:this._serializeLayers(t),removedIds:e})},r.prototype._resetUpdates=function(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSources={},this._updatedPaintProps={}},r.prototype.setState=function(e){var r=this;if(this._checkLoaded(),Xe(this,t.validateStyle(e)))return!1;(e=t.clone(e)).layers=te(e.layers);var n=function(e,r){if(!e)return[{command:ee.setStyle,args:[r]}];var n=[];try{if(!t.default$10(e.version,r.version))return[{command:ee.setStyle,args:[r]}];t.default$10(e.center,r.center)||n.push({command:ee.setCenter,args:[r.center]}),t.default$10(e.zoom,r.zoom)||n.push({command:ee.setZoom,args:[r.zoom]}),t.default$10(e.bearing,r.bearing)||n.push({command:ee.setBearing,args:[r.bearing]}),t.default$10(e.pitch,r.pitch)||n.push({command:ee.setPitch,args:[r.pitch]}),t.default$10(e.sprite,r.sprite)||n.push({command:ee.setSprite,args:[r.sprite]}),t.default$10(e.glyphs,r.glyphs)||n.push({command:ee.setGlyphs,args:[r.glyphs]}),t.default$10(e.transition,r.transition)||n.push({command:ee.setTransition,args:[r.transition]}),t.default$10(e.light,r.light)||n.push({command:ee.setLight,args:[r.light]});var i={},a=[];!function(e,r,n,i){var a;for(a in r=r||{},e=e||{})e.hasOwnProperty(a)&&(r.hasOwnProperty(a)||ne(a,n,i));for(a in r)r.hasOwnProperty(a)&&(e.hasOwnProperty(a)?t.default$10(e[a],r[a])||(\"geojson\"===e[a].type&&\"geojson\"===r[a].type&&ae(e,r,a)?n.push({command:ee.setGeoJSONSourceData,args:[a,r[a].data]}):ie(a,r,n,i)):re(a,r,n))}(e.sources,r.sources,a,i);var o=[];e.layers&&e.layers.forEach(function(t){i[t.source]?n.push({command:ee.removeLayer,args:[t.id]}):o.push(t)}),n=n.concat(a),function(e,r,n){r=r||[];var i,a,o,s,l,c,u,f=(e=e||[]).map(se),h=r.map(se),p=e.reduce(le,{}),d=r.reduce(le,{}),g=f.slice(),v=Object.create(null);for(i=0,a=0;i<f.length;i++)o=f[i],d.hasOwnProperty(o)?a++:(n.push({command:ee.removeLayer,args:[o]}),g.splice(g.indexOf(o,a),1));for(i=0,a=0;i<h.length;i++)o=h[h.length-1-i],g[g.length-1-i]!==o&&(p.hasOwnProperty(o)?(n.push({command:ee.removeLayer,args:[o]}),g.splice(g.lastIndexOf(o,g.length-a),1)):a++,c=g[g.length-i],n.push({command:ee.addLayer,args:[d[o],c]}),g.splice(g.length-i,0,o),v[o]=!0);for(i=0;i<h.length;i++)if(s=p[o=h[i]],l=d[o],!v[o]&&!t.default$10(s,l))if(t.default$10(s.source,l.source)&&t.default$10(s[\"source-layer\"],l[\"source-layer\"])&&t.default$10(s.type,l.type)){for(u in oe(s.layout,l.layout,n,o,null,ee.setLayoutProperty),oe(s.paint,l.paint,n,o,null,ee.setPaintProperty),t.default$10(s.filter,l.filter)||n.push({command:ee.setFilter,args:[o,l.filter]}),t.default$10(s.minzoom,l.minzoom)&&t.default$10(s.maxzoom,l.maxzoom)||n.push({command:ee.setLayerZoomRange,args:[o,l.minzoom,l.maxzoom]}),s)s.hasOwnProperty(u)&&\"layout\"!==u&&\"paint\"!==u&&\"filter\"!==u&&\"metadata\"!==u&&\"minzoom\"!==u&&\"maxzoom\"!==u&&(0===u.indexOf(\"paint.\")?oe(s[u],l[u],n,o,u.slice(6),ee.setPaintProperty):t.default$10(s[u],l[u])||n.push({command:ee.setLayerProperty,args:[o,u,l[u]]}));for(u in l)l.hasOwnProperty(u)&&!s.hasOwnProperty(u)&&\"layout\"!==u&&\"paint\"!==u&&\"filter\"!==u&&\"metadata\"!==u&&\"minzoom\"!==u&&\"maxzoom\"!==u&&(0===u.indexOf(\"paint.\")?oe(s[u],l[u],n,o,u.slice(6),ee.setPaintProperty):t.default$10(s[u],l[u])||n.push({command:ee.setLayerProperty,args:[o,u,l[u]]}))}else n.push({command:ee.removeLayer,args:[o]}),c=g[g.lastIndexOf(o)+1],n.push({command:ee.addLayer,args:[l,c]})}(o,r.layers,n)}catch(t){console.warn(\"Unable to compute style diff:\",t),n=[{command:ee.setStyle,args:[r]}]}return n}(this.serialize(),e).filter(function(t){return!(t.command in $e)});if(0===n.length)return!1;var i=n.filter(function(t){return!(t.command in Ze)});if(i.length>0)throw new Error(\"Unimplemented: \"+i.map(function(t){return t.command}).join(\", \")+\".\");return n.forEach(function(t){\"setTransition\"!==t.command&&r[t.command].apply(r,t.args)}),this.stylesheet=e,!0},r.prototype.addImage=function(e,r){if(this.getImage(e))return this.fire(new t.ErrorEvent(new Error(\"An image with this name already exists.\")));this.imageManager.addImage(e,r),this.fire(new t.Event(\"data\",{dataType:\"style\"}))},r.prototype.getImage=function(t){return this.imageManager.getImage(t)},r.prototype.removeImage=function(e){if(!this.getImage(e))return this.fire(new t.ErrorEvent(new Error(\"No image with this name exists.\")));this.imageManager.removeImage(e),this.fire(new t.Event(\"data\",{dataType:\"style\"}))},r.prototype.addSource=function(e,r,n){var i=this;if(this._checkLoaded(),void 0!==this.sourceCaches[e])throw new Error(\"There is already a source with this ID\");if(!r.type)throw new Error(\"The type property must be defined, but the only the following properties were given: \"+Object.keys(r).join(\", \")+\".\");if(!([\"vector\",\"raster\",\"geojson\",\"video\",\"image\"].indexOf(r.type)>=0&&this._validate(t.validateStyle.source,\"sources.\"+e,r,null,n))){this.map&&this.map._collectResourceTiming&&(r.collectResourceTiming=!0);var a=this.sourceCaches[e]=new Yt(e,r,this.dispatcher);a.style=this,a.setEventedParent(this,function(){return{isSourceLoaded:i.loaded(),source:a.serialize(),sourceId:e}}),a.onAdd(this.map),this._changed=!0}},r.prototype.removeSource=function(e){if(this._checkLoaded(),void 0===this.sourceCaches[e])throw new Error(\"There is no source with this ID\");for(var r in this._layers)if(this._layers[r].source===e)return this.fire(new t.ErrorEvent(new Error('Source \"'+e+'\" cannot be removed while layer \"'+r+'\" is using it.')));var n=this.sourceCaches[e];delete this.sourceCaches[e],delete this._updatedSources[e],n.fire(new t.Event(\"data\",{sourceDataType:\"metadata\",dataType:\"source\",sourceId:e})),n.setEventedParent(null),n.clearTiles(),n.onRemove&&n.onRemove(this.map),this._changed=!0},r.prototype.setGeoJSONSourceData=function(t,e){this._checkLoaded(),this.sourceCaches[t].getSource().setData(e),this._changed=!0},r.prototype.getSource=function(t){return this.sourceCaches[t]&&this.sourceCaches[t].getSource()},r.prototype.addLayer=function(e,r,n){this._checkLoaded();var i=e.id;if(this.getLayer(i))this.fire(new t.ErrorEvent(new Error('Layer with id \"'+i+'\" already exists on this map')));else if(\"object\"==typeof e.source&&(this.addSource(i,e.source),e=t.clone(e),e=t.extend(e,{source:i})),!this._validate(t.validateStyle.layer,\"layers.\"+i,e,{arrayIndex:-1},n)){var a=t.default$22(e);this._validateLayer(a),a.setEventedParent(this,{layer:{id:i}});var o=r?this._order.indexOf(r):this._order.length;if(r&&-1===o)this.fire(new t.ErrorEvent(new Error('Layer with id \"'+r+'\" does not exist on this map.')));else{if(this._order.splice(o,0,i),this._layerOrderChanged=!0,this._layers[i]=a,this._removedLayers[i]&&a.source){var s=this._removedLayers[i];delete this._removedLayers[i],s.type!==a.type?this._updatedSources[a.source]=\"clear\":(this._updatedSources[a.source]=\"reload\",this.sourceCaches[a.source].pause())}this._updateLayer(a)}}},r.prototype.moveLayer=function(e,r){if(this._checkLoaded(),this._changed=!0,this._layers[e]){if(e!==r){var n=this._order.indexOf(e);this._order.splice(n,1);var i=r?this._order.indexOf(r):this._order.length;r&&-1===i?this.fire(new t.ErrorEvent(new Error('Layer with id \"'+r+'\" does not exist on this map.'))):(this._order.splice(i,0,e),this._layerOrderChanged=!0)}}else this.fire(new t.ErrorEvent(new Error(\"The layer '\"+e+\"' does not exist in the map's style and cannot be moved.\")))},r.prototype.removeLayer=function(e){this._checkLoaded();var r=this._layers[e];if(r){r.setEventedParent(null);var n=this._order.indexOf(e);this._order.splice(n,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[e]=r,delete this._layers[e],delete this._updatedLayers[e],delete this._updatedPaintProps[e]}else this.fire(new t.ErrorEvent(new Error(\"The layer '\"+e+\"' does not exist in the map's style and cannot be removed.\")))},r.prototype.getLayer=function(t){return this._layers[t]},r.prototype.setLayerZoomRange=function(e,r,n){this._checkLoaded();var i=this.getLayer(e);i?i.minzoom===r&&i.maxzoom===n||(null!=r&&(i.minzoom=r),null!=n&&(i.maxzoom=n),this._updateLayer(i)):this.fire(new t.ErrorEvent(new Error(\"The layer '\"+e+\"' does not exist in the map's style and cannot have zoom extent.\")))},r.prototype.setFilter=function(e,r){this._checkLoaded();var n=this.getLayer(e);if(n){if(!t.default$10(n.filter,r))return null==r?(n.filter=void 0,void this._updateLayer(n)):void(this._validate(t.validateStyle.filter,\"layers.\"+n.id+\".filter\",r)||(n.filter=t.clone(r),this._updateLayer(n)))}else this.fire(new t.ErrorEvent(new Error(\"The layer '\"+e+\"' does not exist in the map's style and cannot be filtered.\")))},r.prototype.getFilter=function(e){return t.clone(this.getLayer(e).filter)},r.prototype.setLayoutProperty=function(e,r,n){this._checkLoaded();var i=this.getLayer(e);i?t.default$10(i.getLayoutProperty(r),n)||(i.setLayoutProperty(r,n),this._updateLayer(i)):this.fire(new t.ErrorEvent(new Error(\"The layer '\"+e+\"' does not exist in the map's style and cannot be styled.\")))},r.prototype.getLayoutProperty=function(t,e){return this.getLayer(t).getLayoutProperty(e)},r.prototype.setPaintProperty=function(e,r,n){this._checkLoaded();var i=this.getLayer(e);if(i){if(!t.default$10(i.getPaintProperty(r),n)){var a=i._transitionablePaint._values[r].value.isDataDriven();i.setPaintProperty(r,n),(i._transitionablePaint._values[r].value.isDataDriven()||a)&&this._updateLayer(i),this._changed=!0,this._updatedPaintProps[e]=!0}}else this.fire(new t.ErrorEvent(new Error(\"The layer '\"+e+\"' does not exist in the map's style and cannot be styled.\")))},r.prototype.getPaintProperty=function(t,e){return this.getLayer(t).getPaintProperty(e)},r.prototype.getTransition=function(){return t.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)},r.prototype.serialize=function(){var e=this;return t.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,sources:t.mapObject(this.sourceCaches,function(t){return t.serialize()}),layers:this._order.map(function(t){return e._layers[t].serialize()})},function(t){return void 0!==t})},r.prototype._updateLayer=function(t){this._updatedLayers[t.id]=!0,t.source&&!this._updatedSources[t.source]&&(this._updatedSources[t.source]=\"reload\",this.sourceCaches[t.source].pause()),this._changed=!0},r.prototype._flattenRenderedFeatures=function(t){for(var e=[],r=this._order.length-1;r>=0;r--)for(var n=this._order[r],i=0,a=t;i<a.length;i+=1){var o=a[i][n];if(o)for(var s=0,l=o;s<l.length;s+=1){var c=l[s];e.push(c)}}return e},r.prototype.queryRenderedFeatures=function(e,r,n){r&&r.filter&&this._validate(t.validateStyle.filter,\"queryRenderedFeatures.filter\",r.filter);var i={};if(r&&r.layers){if(!Array.isArray(r.layers))return this.fire(new t.ErrorEvent(new Error(\"parameters.layers must be an Array.\"))),[];for(var a=0,o=r.layers;a<o.length;a+=1){var s=o[a],l=this._layers[s];if(!l)return this.fire(new t.ErrorEvent(new Error(\"The layer '\"+s+\"' does not exist in the map's style and cannot be queried for features.\"))),[];i[l.source]=!0}}var c=[];for(var u in this.sourceCaches)r.layers&&!i[u]||c.push(at(this.sourceCaches[u],this._layers,e.worldCoordinate,r,n));return this.placement&&c.push(function(t,e,r,n,i){for(var a={},o=n.queryRenderedSymbols(e),s=[],l=0,c=Object.keys(o).map(Number);l<c.length;l+=1){var u=c[l];s.push(i[u])}s.sort(ot);for(var f=function(){var e=p[h],n=e.featureIndex.lookupSymbolFeatures(o[e.bucketInstanceId],e.bucketIndex,e.sourceLayerIndex,r.filter,r.layers,t);for(var i in n){var s=a[i]=a[i]||[],l=n[i];l.sort(function(t,r){var n=e.featureSortOrder;if(n){var i=n.indexOf(t.featureIndex);return n.indexOf(r.featureIndex)-i}return r.featureIndex-t.featureIndex});for(var c=0,u=l;c<u.length;c+=1){var f=u[c];s.push(f.feature)}}},h=0,p=s;h<p.length;h+=1)f();return a}(this._layers,e.viewport,r,this.placement.collisionIndex,this.placement.retainedQueryData)),this._flattenRenderedFeatures(c)},r.prototype.querySourceFeatures=function(e,r){r&&r.filter&&this._validate(t.validateStyle.filter,\"querySourceFeatures.filter\",r.filter);var n=this.sourceCaches[e];return n?function(t,e){for(var r=t.getRenderableIds().map(function(e){return t.getTileByID(e)}),n=[],i={},a=0;a<r.length;a++){var o=r[a],s=o.tileID.canonical.key;i[s]||(i[s]=!0,o.querySourceFeatures(n,e))}return n}(n,r):[]},r.prototype.addSourceType=function(t,e,n){return r.getSourceType(t)?n(new Error('A source type called \"'+t+'\" already exists.')):(r.setSourceType(t,e),e.workerSourceURL?void this.dispatcher.broadcast(\"loadWorkerSource\",{name:t,url:e.workerSourceURL},n):n(null,null))},r.prototype.getLight=function(){return this.light.getLight()},r.prototype.setLight=function(e){this._checkLoaded();var r=this.light.getLight(),n=!1;for(var i in e)if(!t.default$10(e[i],r[i])){n=!0;break}if(n){var o={now:a.now(),transition:t.extend({duration:300,delay:0},this.stylesheet.transition)};this.light.setLight(e),this.light.updateTransitions(o)}},r.prototype._validate=function(e,r,n,i,a){return(!a||!1!==a.validate)&&Xe(this,e.call(t.validateStyle,t.extend({key:r,style:this.serialize(),value:n,styleSpec:t.default$5},i)))},r.prototype._remove=function(){for(var e in t.evented.off(\"pluginAvailable\",this._rtlTextPluginCallback),this.sourceCaches)this.sourceCaches[e].clearTiles();this.dispatcher.remove()},r.prototype._clearSource=function(t){this.sourceCaches[t].clearTiles()},r.prototype._reloadSource=function(t){this.sourceCaches[t].resume(),this.sourceCaches[t].reload()},r.prototype._updateSources=function(t){for(var e in this.sourceCaches)this.sourceCaches[e].update(t)},r.prototype._generateCollisionBoxes=function(){for(var t in this.sourceCaches)this._reloadSource(t)},r.prototype._updatePlacement=function(t,e,r){for(var n=!1,i=!1,o={},s=0,l=this._order;s<l.length;s+=1){var c=l[s],u=this._layers[c];if(\"symbol\"===u.type){if(!o[u.source]){var f=this.sourceCaches[u.source];o[u.source]=f.getRenderableIds().map(function(t){return f.getTileByID(t)}).sort(function(t,e){return e.tileID.overscaledZ-t.tileID.overscaledZ||(t.tileID.isLessThan(e.tileID)?-1:1)})}var h=this.crossTileSymbolIndex.addLayer(u,o[u.source],t.center.lng);n=n||h}}this.crossTileSymbolIndex.pruneUnusedLayers(this._order);var p=this._layerOrderChanged;if((p||!this.pauseablePlacement||this.pauseablePlacement.isDone()&&!this.placement.stillRecent(a.now()))&&(this.pauseablePlacement=new Ue(t,this._order,p,e,r),this._layerOrderChanged=!1),this.pauseablePlacement.isDone()?this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._order,this._layers,o),this.pauseablePlacement.isDone()&&(this.placement=this.pauseablePlacement.commit(this.placement,a.now()),i=!0),n&&this.pauseablePlacement.placement.setStale()),i||n)for(var d=0,g=this._order;d<g.length;d+=1){var v=g[d],m=this._layers[v];\"symbol\"===m.type&&this.placement.updateLayerOpacities(m,o[m.source])}return!this.pauseablePlacement.isDone()||this.placement.hasTransitions(a.now())},r.prototype.getImages=function(t,e,r){this.imageManager.getImages(e.icons,r)},r.prototype.getGlyphs=function(t,e,r){this.glyphManager.getGlyphs(e.stacks,r)},r}(t.Evented);Je.getSourceType=function(t){return nt[t]},Je.setSourceType=function(t,e){nt[t]=e},Je.registerForPluginAvailability=t.registerForPluginAvailability;var Ke=t.createLayout([{name:\"a_pos\",type:\"Int16\",components:2}]),Qe={prelude:{fragmentSource:\"#ifdef GL_ES\\nprecision mediump float;\\n#else\\n\\n#if !defined(lowp)\\n#define lowp\\n#endif\\n\\n#if !defined(mediump)\\n#define mediump\\n#endif\\n\\n#if !defined(highp)\\n#define highp\\n#endif\\n\\n#endif\\n\",vertexSource:\"#ifdef GL_ES\\nprecision highp float;\\n#else\\n\\n#if !defined(lowp)\\n#define lowp\\n#endif\\n\\n#if !defined(mediump)\\n#define mediump\\n#endif\\n\\n#if !defined(highp)\\n#define highp\\n#endif\\n\\n#endif\\n\\n// Unpack a pair of values that have been packed into a single float.\\n// The packed values are assumed to be 8-bit unsigned integers, and are\\n// packed like so:\\n// packedValue = floor(input[0]) * 256 + input[1],\\nvec2 unpack_float(const float packedValue) {\\n int packedIntValue = int(packedValue);\\n int v0 = packedIntValue / 256;\\n return vec2(v0, packedIntValue - v0 * 256);\\n}\\n\\nvec2 unpack_opacity(const float packedOpacity) {\\n int intOpacity = int(packedOpacity) / 2;\\n return vec2(float(intOpacity) / 127.0, mod(packedOpacity, 2.0));\\n}\\n\\n// To minimize the number of attributes needed, we encode a 4-component\\n// color into a pair of floats (i.e. a vec2) as follows:\\n// [ floor(color.r * 255) * 256 + color.g * 255,\\n// floor(color.b * 255) * 256 + color.g * 255 ]\\nvec4 decode_color(const vec2 encodedColor) {\\n return vec4(\\n unpack_float(encodedColor[0]) / 255.0,\\n unpack_float(encodedColor[1]) / 255.0\\n );\\n}\\n\\n// Unpack a pair of paint values and interpolate between them.\\nfloat unpack_mix_vec2(const vec2 packedValue, const float t) {\\n return mix(packedValue[0], packedValue[1], t);\\n}\\n\\n// Unpack a pair of paint values and interpolate between them.\\nvec4 unpack_mix_vec4(const vec4 packedColors, const float t) {\\n vec4 minColor = decode_color(vec2(packedColors[0], packedColors[1]));\\n vec4 maxColor = decode_color(vec2(packedColors[2], packedColors[3]));\\n return mix(minColor, maxColor, t);\\n}\\n\\n// The offset depends on how many pixels are between the world origin and the edge of the tile:\\n// vec2 offset = mod(pixel_coord, size)\\n//\\n// At high zoom levels there are a ton of pixels between the world origin and the edge of the tile.\\n// The glsl spec only guarantees 16 bits of precision for highp floats. We need more than that.\\n//\\n// The pixel_coord is passed in as two 16 bit values:\\n// pixel_coord_upper = floor(pixel_coord / 2^16)\\n// pixel_coord_lower = mod(pixel_coord, 2^16)\\n//\\n// The offset is calculated in a series of steps that should preserve this precision:\\nvec2 get_pattern_pos(const vec2 pixel_coord_upper, const vec2 pixel_coord_lower,\\n const vec2 pattern_size, const float tile_units_to_pixels, const vec2 pos) {\\n\\n vec2 offset = mod(mod(mod(pixel_coord_upper, pattern_size) * 256.0, pattern_size) * 256.0 + pixel_coord_lower, pattern_size);\\n return (tile_units_to_pixels * pos + offset) / pattern_size;\\n}\\n\"},background:{fragmentSource:\"uniform vec4 u_color;\\nuniform float u_opacity;\\n\\nvoid main() {\\n gl_FragColor = u_color * u_opacity;\\n\\n#ifdef OVERDRAW_INSPECTOR\\n gl_FragColor = vec4(1.0);\\n#endif\\n}\\n\",vertexSource:\"attribute vec2 a_pos;\\n\\nuniform mat4 u_matrix;\\n\\nvoid main() {\\n gl_Position = u_matrix * vec4(a_pos, 0, 1);\\n}\\n\"},backgroundPattern:{fragmentSource:\"uniform vec2 u_pattern_tl_a;\\nuniform vec2 u_pattern_br_a;\\nuniform vec2 u_pattern_tl_b;\\nuniform vec2 u_pattern_br_b;\\nuniform vec2 u_texsize;\\nuniform float u_mix;\\nuniform float u_opacity;\\n\\nuniform sampler2D u_image;\\n\\nvarying vec2 v_pos_a;\\nvarying vec2 v_pos_b;\\n\\nvoid main() {\\n vec2 imagecoord = mod(v_pos_a, 1.0);\\n vec2 pos = mix(u_pattern_tl_a / u_texsize, u_pattern_br_a / u_texsize, imagecoord);\\n vec4 color1 = texture2D(u_image, pos);\\n\\n vec2 imagecoord_b = mod(v_pos_b, 1.0);\\n vec2 pos2 = mix(u_pattern_tl_b / u_texsize, u_pattern_br_b / u_texsize, imagecoord_b);\\n vec4 color2 = texture2D(u_image, pos2);\\n\\n gl_FragColor = mix(color1, color2, u_mix) * u_opacity;\\n\\n#ifdef OVERDRAW_INSPECTOR\\n gl_FragColor = vec4(1.0);\\n#endif\\n}\\n\",vertexSource:\"uniform mat4 u_matrix;\\nuniform vec2 u_pattern_size_a;\\nuniform vec2 u_pattern_size_b;\\nuniform vec2 u_pixel_coord_upper;\\nuniform vec2 u_pixel_coord_lower;\\nuniform float u_scale_a;\\nuniform float u_scale_b;\\nuniform float u_tile_units_to_pixels;\\n\\nattribute vec2 a_pos;\\n\\nvarying vec2 v_pos_a;\\nvarying vec2 v_pos_b;\\n\\nvoid main() {\\n gl_Position = u_matrix * vec4(a_pos, 0, 1);\\n\\n v_pos_a = get_pattern_pos(u_pixel_coord_upper, u_pixel_coord_lower, u_scale_a * u_pattern_size_a, u_tile_units_to_pixels, a_pos);\\n v_pos_b = get_pattern_pos(u_pixel_coord_upper, u_pixel_coord_lower, u_scale_b * u_pattern_size_b, u_tile_units_to_pixels, a_pos);\\n}\\n\"},circle:{fragmentSource:\"#pragma mapbox: define highp vec4 color\\n#pragma mapbox: define mediump float radius\\n#pragma mapbox: define lowp float blur\\n#pragma mapbox: define lowp float opacity\\n#pragma mapbox: define highp vec4 stroke_color\\n#pragma mapbox: define mediump float stroke_width\\n#pragma mapbox: define lowp float stroke_opacity\\n\\nvarying vec3 v_data;\\n\\nvoid main() {\\n #pragma mapbox: initialize highp vec4 color\\n #pragma mapbox: initialize mediump float radius\\n #pragma mapbox: initialize lowp float blur\\n #pragma mapbox: initialize lowp float opacity\\n #pragma mapbox: initialize highp vec4 stroke_color\\n #pragma mapbox: initialize mediump float stroke_width\\n #pragma mapbox: initialize lowp float stroke_opacity\\n\\n vec2 extrude = v_data.xy;\\n float extrude_length = length(extrude);\\n\\n lowp float antialiasblur = v_data.z;\\n float antialiased_blur = -max(blur, antialiasblur);\\n\\n float opacity_t = smoothstep(0.0, antialiased_blur, extrude_length - 1.0);\\n\\n float color_t = stroke_width < 0.01 ? 0.0 : smoothstep(\\n antialiased_blur,\\n 0.0,\\n extrude_length - radius / (radius + stroke_width)\\n );\\n\\n gl_FragColor = opacity_t * mix(color * opacity, stroke_color * stroke_opacity, color_t);\\n\\n#ifdef OVERDRAW_INSPECTOR\\n gl_FragColor = vec4(1.0);\\n#endif\\n}\\n\",vertexSource:\"uniform mat4 u_matrix;\\nuniform bool u_scale_with_map;\\nuniform bool u_pitch_with_map;\\nuniform vec2 u_extrude_scale;\\nuniform highp float u_camera_to_center_distance;\\n\\nattribute vec2 a_pos;\\n\\n#pragma mapbox: define highp vec4 color\\n#pragma mapbox: define mediump float radius\\n#pragma mapbox: define lowp float blur\\n#pragma mapbox: define lowp float opacity\\n#pragma mapbox: define highp vec4 stroke_color\\n#pragma mapbox: define mediump float stroke_width\\n#pragma mapbox: define lowp float stroke_opacity\\n\\nvarying vec3 v_data;\\n\\nvoid main(void) {\\n #pragma mapbox: initialize highp vec4 color\\n #pragma mapbox: initialize mediump float radius\\n #pragma mapbox: initialize lowp float blur\\n #pragma mapbox: initialize lowp float opacity\\n #pragma mapbox: initialize highp vec4 stroke_color\\n #pragma mapbox: initialize mediump float stroke_width\\n #pragma mapbox: initialize lowp float stroke_opacity\\n\\n // unencode the extrusion vector that we snuck into the a_pos vector\\n vec2 extrude = vec2(mod(a_pos, 2.0) * 2.0 - 1.0);\\n\\n // multiply a_pos by 0.5, since we had it * 2 in order to sneak\\n // in extrusion data\\n vec2 circle_center = floor(a_pos * 0.5);\\n if (u_pitch_with_map) {\\n vec2 corner_position = circle_center;\\n if (u_scale_with_map) {\\n corner_position += extrude * (radius + stroke_width) * u_extrude_scale;\\n } else {\\n // Pitching the circle with the map effectively scales it with the map\\n // To counteract the effect for pitch-scale: viewport, we rescale the\\n // whole circle based on the pitch scaling effect at its central point\\n vec4 projected_center = u_matrix * vec4(circle_center, 0, 1);\\n corner_position += extrude * (radius + stroke_width) * u_extrude_scale * (projected_center.w / u_camera_to_center_distance);\\n }\\n\\n gl_Position = u_matrix * vec4(corner_position, 0, 1);\\n } else {\\n gl_Position = u_matrix * vec4(circle_center, 0, 1);\\n\\n if (u_scale_with_map) {\\n gl_Position.xy += extrude * (radius + stroke_width) * u_extrude_scale * u_camera_to_center_distance;\\n } else {\\n gl_Position.xy += extrude * (radius + stroke_width) * u_extrude_scale * gl_Position.w;\\n }\\n }\\n\\n // This is a minimum blur distance that serves as a faux-antialiasing for\\n // the circle. since blur is a ratio of the circle's size and the intent is\\n // to keep the blur at roughly 1px, the two are inversely related.\\n lowp float antialiasblur = 1.0 / DEVICE_PIXEL_RATIO / (radius + stroke_width);\\n\\n v_data = vec3(extrude.x, extrude.y, antialiasblur);\\n}\\n\"},clippingMask:{fragmentSource:\"void main() {\\n gl_FragColor = vec4(1.0);\\n}\\n\",vertexSource:\"attribute vec2 a_pos;\\n\\nuniform mat4 u_matrix;\\n\\nvoid main() {\\n gl_Position = u_matrix * vec4(a_pos, 0, 1);\\n}\\n\"},heatmap:{fragmentSource:\"#pragma mapbox: define highp float weight\\n\\nuniform highp float u_intensity;\\nvarying vec2 v_extrude;\\n\\n// Gaussian kernel coefficient: 1 / sqrt(2 * PI)\\n#define GAUSS_COEF 0.3989422804014327\\n\\nvoid main() {\\n #pragma mapbox: initialize highp float weight\\n\\n // Kernel density estimation with a Gaussian kernel of size 5x5\\n float d = -0.5 * 3.0 * 3.0 * dot(v_extrude, v_extrude);\\n float val = weight * u_intensity * GAUSS_COEF * exp(d);\\n\\n gl_FragColor = vec4(val, 1.0, 1.0, 1.0);\\n\\n#ifdef OVERDRAW_INSPECTOR\\n gl_FragColor = vec4(1.0);\\n#endif\\n}\\n\",vertexSource:\"#pragma mapbox: define highp float weight\\n#pragma mapbox: define mediump float radius\\n\\nuniform mat4 u_matrix;\\nuniform float u_extrude_scale;\\nuniform float u_opacity;\\nuniform float u_intensity;\\n\\nattribute vec2 a_pos;\\n\\nvarying vec2 v_extrude;\\n\\n// Effective \\\"0\\\" in the kernel density texture to adjust the kernel size to;\\n// this empirically chosen number minimizes artifacts on overlapping kernels\\n// for typical heatmap cases (assuming clustered source)\\nconst highp float ZERO = 1.0 / 255.0 / 16.0;\\n\\n// Gaussian kernel coefficient: 1 / sqrt(2 * PI)\\n#define GAUSS_COEF 0.3989422804014327\\n\\nvoid main(void) {\\n #pragma mapbox: initialize highp float weight\\n #pragma mapbox: initialize mediump float radius\\n\\n // unencode the extrusion vector that we snuck into the a_pos vector\\n vec2 unscaled_extrude = vec2(mod(a_pos, 2.0) * 2.0 - 1.0);\\n\\n // This 'extrude' comes in ranging from [-1, -1], to [1, 1]. We'll use\\n // it to produce the vertices of a square mesh framing the point feature\\n // we're adding to the kernel density texture. We'll also pass it as\\n // a varying, so that the fragment shader can determine the distance of\\n // each fragment from the point feature.\\n // Before we do so, we need to scale it up sufficiently so that the\\n // kernel falls effectively to zero at the edge of the mesh.\\n // That is, we want to know S such that\\n // weight * u_intensity * GAUSS_COEF * exp(-0.5 * 3.0^2 * S^2) == ZERO\\n // Which solves to:\\n // S = sqrt(-2.0 * log(ZERO / (weight * u_intensity * GAUSS_COEF))) / 3.0\\n float S = sqrt(-2.0 * log(ZERO / weight / u_intensity / GAUSS_COEF)) / 3.0;\\n\\n // Pass the varying in units of radius\\n v_extrude = S * unscaled_extrude;\\n\\n // Scale by radius and the zoom-based scale factor to produce actual\\n // mesh position\\n vec2 extrude = v_extrude * radius * u_extrude_scale;\\n\\n // multiply a_pos by 0.5, since we had it * 2 in order to sneak\\n // in extrusion data\\n vec4 pos = vec4(floor(a_pos * 0.5) + extrude, 0, 1);\\n\\n gl_Position = u_matrix * pos;\\n}\\n\"},heatmapTexture:{fragmentSource:\"uniform sampler2D u_image;\\nuniform sampler2D u_color_ramp;\\nuniform float u_opacity;\\nvarying vec2 v_pos;\\n\\nvoid main() {\\n float t = texture2D(u_image, v_pos).r;\\n vec4 color = texture2D(u_color_ramp, vec2(t, 0.5));\\n gl_FragColor = color * u_opacity;\\n\\n#ifdef OVERDRAW_INSPECTOR\\n gl_FragColor = vec4(0.0);\\n#endif\\n}\\n\",vertexSource:\"uniform mat4 u_matrix;\\nuniform vec2 u_world;\\nattribute vec2 a_pos;\\nvarying vec2 v_pos;\\n\\nvoid main() {\\n gl_Position = u_matrix * vec4(a_pos * u_world, 0, 1);\\n\\n v_pos.x = a_pos.x;\\n v_pos.y = 1.0 - a_pos.y;\\n}\\n\"},collisionBox:{fragmentSource:\"\\nvarying float v_placed;\\nvarying float v_notUsed;\\n\\nvoid main() {\\n\\n float alpha = 0.5;\\n\\n // Red = collision, hide label\\n gl_FragColor = vec4(1.0, 0.0, 0.0, 1.0) * alpha;\\n\\n // Blue = no collision, label is showing\\n if (v_placed > 0.5) {\\n gl_FragColor = vec4(0.0, 0.0, 1.0, 0.5) * alpha;\\n }\\n\\n if (v_notUsed > 0.5) {\\n // This box not used, fade it out\\n gl_FragColor *= .1;\\n }\\n}\",vertexSource:\"attribute vec2 a_pos;\\nattribute vec2 a_anchor_pos;\\nattribute vec2 a_extrude;\\nattribute vec2 a_placed;\\n\\nuniform mat4 u_matrix;\\nuniform vec2 u_extrude_scale;\\nuniform float u_camera_to_center_distance;\\n\\nvarying float v_placed;\\nvarying float v_notUsed;\\n\\nvoid main() {\\n vec4 projectedPoint = u_matrix * vec4(a_anchor_pos, 0, 1);\\n highp float camera_to_anchor_distance = projectedPoint.w;\\n highp float collision_perspective_ratio = clamp(\\n 0.5 + 0.5 * (u_camera_to_center_distance / camera_to_anchor_distance),\\n 0.0, // Prevents oversized near-field boxes in pitched/overzoomed tiles\\n 4.0);\\n\\n gl_Position = u_matrix * vec4(a_pos, 0.0, 1.0);\\n gl_Position.xy += a_extrude * u_extrude_scale * gl_Position.w * collision_perspective_ratio;\\n\\n v_placed = a_placed.x;\\n v_notUsed = a_placed.y;\\n}\\n\"},collisionCircle:{fragmentSource:\"uniform float u_overscale_factor;\\n\\nvarying float v_placed;\\nvarying float v_notUsed;\\nvarying float v_radius;\\nvarying vec2 v_extrude;\\nvarying vec2 v_extrude_scale;\\n\\nvoid main() {\\n float alpha = 0.5;\\n\\n // Red = collision, hide label\\n vec4 color = vec4(1.0, 0.0, 0.0, 1.0) * alpha;\\n\\n // Blue = no collision, label is showing\\n if (v_placed > 0.5) {\\n color = vec4(0.0, 0.0, 1.0, 0.5) * alpha;\\n }\\n\\n if (v_notUsed > 0.5) {\\n // This box not used, fade it out\\n color *= .2;\\n }\\n\\n float extrude_scale_length = length(v_extrude_scale);\\n float extrude_length = length(v_extrude) * extrude_scale_length;\\n float stroke_width = 15.0 * extrude_scale_length / u_overscale_factor;\\n float radius = v_radius * extrude_scale_length;\\n\\n float distance_to_edge = abs(extrude_length - radius);\\n float opacity_t = smoothstep(-stroke_width, 0.0, -distance_to_edge);\\n\\n gl_FragColor = opacity_t * color;\\n}\\n\",vertexSource:\"attribute vec2 a_pos;\\nattribute vec2 a_anchor_pos;\\nattribute vec2 a_extrude;\\nattribute vec2 a_placed;\\n\\nuniform mat4 u_matrix;\\nuniform vec2 u_extrude_scale;\\nuniform float u_camera_to_center_distance;\\n\\nvarying float v_placed;\\nvarying float v_notUsed;\\nvarying float v_radius;\\n\\nvarying vec2 v_extrude;\\nvarying vec2 v_extrude_scale;\\n\\nvoid main() {\\n vec4 projectedPoint = u_matrix * vec4(a_anchor_pos, 0, 1);\\n highp float camera_to_anchor_distance = projectedPoint.w;\\n highp float collision_perspective_ratio = clamp(\\n 0.5 + 0.5 * (u_camera_to_center_distance / camera_to_anchor_distance),\\n 0.0, // Prevents oversized near-field circles in pitched/overzoomed tiles\\n 4.0);\\n\\n gl_Position = u_matrix * vec4(a_pos, 0.0, 1.0);\\n\\n highp float padding_factor = 1.2; // Pad the vertices slightly to make room for anti-alias blur\\n gl_Position.xy += a_extrude * u_extrude_scale * padding_factor * gl_Position.w * collision_perspective_ratio;\\n\\n v_placed = a_placed.x;\\n v_notUsed = a_placed.y;\\n v_radius = abs(a_extrude.y); // We don't pitch the circles, so both units of the extrusion vector are equal in magnitude to the radius\\n\\n v_extrude = a_extrude * padding_factor;\\n v_extrude_scale = u_extrude_scale * u_camera_to_center_distance * collision_perspective_ratio;\\n}\\n\"},debug:{fragmentSource:\"uniform highp vec4 u_color;\\n\\nvoid main() {\\n gl_FragColor = u_color;\\n}\\n\",vertexSource:\"attribute vec2 a_pos;\\n\\nuniform mat4 u_matrix;\\n\\nvoid main() {\\n gl_Position = u_matrix * vec4(a_pos, 0, 1);\\n}\\n\"},fill:{fragmentSource:\"#pragma mapbox: define highp vec4 color\\n#pragma mapbox: define lowp float opacity\\n\\nvoid main() {\\n #pragma mapbox: initialize highp vec4 color\\n #pragma mapbox: initialize lowp float opacity\\n\\n gl_FragColor = color * opacity;\\n\\n#ifdef OVERDRAW_INSPECTOR\\n gl_FragColor = vec4(1.0);\\n#endif\\n}\\n\",vertexSource:\"attribute vec2 a_pos;\\n\\nuniform mat4 u_matrix;\\n\\n#pragma mapbox: define highp vec4 color\\n#pragma mapbox: define lowp float opacity\\n\\nvoid main() {\\n #pragma mapbox: initialize highp vec4 color\\n #pragma mapbox: initialize lowp float opacity\\n\\n gl_Position = u_matrix * vec4(a_pos, 0, 1);\\n}\\n\"},fillOutline:{fragmentSource:\"#pragma mapbox: define highp vec4 outline_color\\n#pragma mapbox: define lowp float opacity\\n\\nvarying vec2 v_pos;\\n\\nvoid main() {\\n #pragma mapbox: initialize highp vec4 outline_color\\n #pragma mapbox: initialize lowp float opacity\\n\\n float dist = length(v_pos - gl_FragCoord.xy);\\n float alpha = 1.0 - smoothstep(0.0, 1.0, dist);\\n gl_FragColor = outline_color * (alpha * opacity);\\n\\n#ifdef OVERDRAW_INSPECTOR\\n gl_FragColor = vec4(1.0);\\n#endif\\n}\\n\",vertexSource:\"attribute vec2 a_pos;\\n\\nuniform mat4 u_matrix;\\nuniform vec2 u_world;\\n\\nvarying vec2 v_pos;\\n\\n#pragma mapbox: define highp vec4 outline_color\\n#pragma mapbox: define lowp float opacity\\n\\nvoid main() {\\n #pragma mapbox: initialize highp vec4 outline_color\\n #pragma mapbox: initialize lowp float opacity\\n\\n gl_Position = u_matrix * vec4(a_pos, 0, 1);\\n v_pos = (gl_Position.xy / gl_Position.w + 1.0) / 2.0 * u_world;\\n}\\n\"},fillOutlinePattern:{fragmentSource:\"uniform vec2 u_pattern_tl_a;\\nuniform vec2 u_pattern_br_a;\\nuniform vec2 u_pattern_tl_b;\\nuniform vec2 u_pattern_br_b;\\nuniform vec2 u_texsize;\\nuniform float u_mix;\\n\\nuniform sampler2D u_image;\\n\\nvarying vec2 v_pos_a;\\nvarying vec2 v_pos_b;\\nvarying vec2 v_pos;\\n\\n#pragma mapbox: define lowp float opacity\\n\\nvoid main() {\\n #pragma mapbox: initialize lowp float opacity\\n\\n vec2 imagecoord = mod(v_pos_a, 1.0);\\n vec2 pos = mix(u_pattern_tl_a / u_texsize, u_pattern_br_a / u_texsize, imagecoord);\\n vec4 color1 = texture2D(u_image, pos);\\n\\n vec2 imagecoord_b = mod(v_pos_b, 1.0);\\n vec2 pos2 = mix(u_pattern_tl_b / u_texsize, u_pattern_br_b / u_texsize, imagecoord_b);\\n vec4 color2 = texture2D(u_image, pos2);\\n\\n // find distance to outline for alpha interpolation\\n\\n float dist = length(v_pos - gl_FragCoord.xy);\\n float alpha = 1.0 - smoothstep(0.0, 1.0, dist);\\n\\n\\n gl_FragColor = mix(color1, color2, u_mix) * alpha * opacity;\\n\\n#ifdef OVERDRAW_INSPECTOR\\n gl_FragColor = vec4(1.0);\\n#endif\\n}\\n\",vertexSource:\"uniform mat4 u_matrix;\\nuniform vec2 u_world;\\nuniform vec2 u_pattern_size_a;\\nuniform vec2 u_pattern_size_b;\\nuniform vec2 u_pixel_coord_upper;\\nuniform vec2 u_pixel_coord_lower;\\nuniform float u_scale_a;\\nuniform float u_scale_b;\\nuniform float u_tile_units_to_pixels;\\n\\nattribute vec2 a_pos;\\n\\nvarying vec2 v_pos_a;\\nvarying vec2 v_pos_b;\\nvarying vec2 v_pos;\\n\\n#pragma mapbox: define lowp float opacity\\n\\nvoid main() {\\n #pragma mapbox: initialize lowp float opacity\\n\\n gl_Position = u_matrix * vec4(a_pos, 0, 1);\\n\\n v_pos_a = get_pattern_pos(u_pixel_coord_upper, u_pixel_coord_lower, u_scale_a * u_pattern_size_a, u_tile_units_to_pixels, a_pos);\\n v_pos_b = get_pattern_pos(u_pixel_coord_upper, u_pixel_coord_lower, u_scale_b * u_pattern_size_b, u_tile_units_to_pixels, a_pos);\\n\\n v_pos = (gl_Position.xy / gl_Position.w + 1.0) / 2.0 * u_world;\\n}\\n\"},fillPattern:{fragmentSource:\"uniform vec2 u_pattern_tl_a;\\nuniform vec2 u_pattern_br_a;\\nuniform vec2 u_pattern_tl_b;\\nuniform vec2 u_pattern_br_b;\\nuniform vec2 u_texsize;\\nuniform float u_mix;\\n\\nuniform sampler2D u_image;\\n\\nvarying vec2 v_pos_a;\\nvarying vec2 v_pos_b;\\n\\n#pragma mapbox: define lowp float opacity\\n\\nvoid main() {\\n #pragma mapbox: initialize lowp float opacity\\n\\n vec2 imagecoord = mod(v_pos_a, 1.0);\\n vec2 pos = mix(u_pattern_tl_a / u_texsize, u_pattern_br_a / u_texsize, imagecoord);\\n vec4 color1 = texture2D(u_image, pos);\\n\\n vec2 imagecoord_b = mod(v_pos_b, 1.0);\\n vec2 pos2 = mix(u_pattern_tl_b / u_texsize, u_pattern_br_b / u_texsize, imagecoord_b);\\n vec4 color2 = texture2D(u_image, pos2);\\n\\n gl_FragColor = mix(color1, color2, u_mix) * opacity;\\n\\n#ifdef OVERDRAW_INSPECTOR\\n gl_FragColor = vec4(1.0);\\n#endif\\n}\\n\",vertexSource:\"uniform mat4 u_matrix;\\nuniform vec2 u_pattern_size_a;\\nuniform vec2 u_pattern_size_b;\\nuniform vec2 u_pixel_coord_upper;\\nuniform vec2 u_pixel_coord_lower;\\nuniform float u_scale_a;\\nuniform float u_scale_b;\\nuniform float u_tile_units_to_pixels;\\n\\nattribute vec2 a_pos;\\n\\nvarying vec2 v_pos_a;\\nvarying vec2 v_pos_b;\\n\\n#pragma mapbox: define lowp float opacity\\n\\nvoid main() {\\n #pragma mapbox: initialize lowp float opacity\\n\\n gl_Position = u_matrix * vec4(a_pos, 0, 1);\\n\\n v_pos_a = get_pattern_pos(u_pixel_coord_upper, u_pixel_coord_lower, u_scale_a * u_pattern_size_a, u_tile_units_to_pixels, a_pos);\\n v_pos_b = get_pattern_pos(u_pixel_coord_upper, u_pixel_coord_lower, u_scale_b * u_pattern_size_b, u_tile_units_to_pixels, a_pos);\\n}\\n\"},fillExtrusion:{fragmentSource:\"varying vec4 v_color;\\n#pragma mapbox: define lowp float base\\n#pragma mapbox: define lowp float height\\n#pragma mapbox: define highp vec4 color\\n\\nvoid main() {\\n #pragma mapbox: initialize lowp float base\\n #pragma mapbox: initialize lowp float height\\n #pragma mapbox: initialize highp vec4 color\\n\\n gl_FragColor = v_color;\\n\\n#ifdef OVERDRAW_INSPECTOR\\n gl_FragColor = vec4(1.0);\\n#endif\\n}\\n\",vertexSource:\"uniform mat4 u_matrix;\\nuniform vec3 u_lightcolor;\\nuniform lowp vec3 u_lightpos;\\nuniform lowp float u_lightintensity;\\n\\nattribute vec2 a_pos;\\nattribute vec4 a_normal_ed;\\n\\nvarying vec4 v_color;\\n\\n#pragma mapbox: define lowp float base\\n#pragma mapbox: define lowp float height\\n\\n#pragma mapbox: define highp vec4 color\\n\\nvoid main() {\\n #pragma mapbox: initialize lowp float base\\n #pragma mapbox: initialize lowp float height\\n #pragma mapbox: initialize highp vec4 color\\n\\n vec3 normal = a_normal_ed.xyz;\\n\\n base = max(0.0, base);\\n height = max(0.0, height);\\n\\n float t = mod(normal.x, 2.0);\\n\\n gl_Position = u_matrix * vec4(a_pos, t > 0.0 ? height : base, 1);\\n\\n // Relative luminance (how dark/bright is the surface color?)\\n float colorvalue = color.r * 0.2126 + color.g * 0.7152 + color.b * 0.0722;\\n\\n v_color = vec4(0.0, 0.0, 0.0, 1.0);\\n\\n // Add slight ambient lighting so no extrusions are totally black\\n vec4 ambientlight = vec4(0.03, 0.03, 0.03, 1.0);\\n color += ambientlight;\\n\\n // Calculate cos(theta), where theta is the angle between surface normal and diffuse light ray\\n float directional = clamp(dot(normal / 16384.0, u_lightpos), 0.0, 1.0);\\n\\n // Adjust directional so that\\n // the range of values for highlight/shading is narrower\\n // with lower light intensity\\n // and with lighter/brighter surface colors\\n directional = mix((1.0 - u_lightintensity), max((1.0 - colorvalue + u_lightintensity), 1.0), directional);\\n\\n // Add gradient along z axis of side surfaces\\n if (normal.y != 0.0) {\\n directional *= clamp((t + base) * pow(height / 150.0, 0.5), mix(0.7, 0.98, 1.0 - u_lightintensity), 1.0);\\n }\\n\\n // Assign final color based on surface + ambient light color, diffuse light directional, and light color\\n // with lower bounds adjusted to hue of light\\n // so that shading is tinted with the complementary (opposite) color to the light color\\n v_color.r += clamp(color.r * directional * u_lightcolor.r, mix(0.0, 0.3, 1.0 - u_lightcolor.r), 1.0);\\n v_color.g += clamp(color.g * directional * u_lightcolor.g, mix(0.0, 0.3, 1.0 - u_lightcolor.g), 1.0);\\n v_color.b += clamp(color.b * directional * u_lightcolor.b, mix(0.0, 0.3, 1.0 - u_lightcolor.b), 1.0);\\n}\\n\"},fillExtrusionPattern:{fragmentSource:\"uniform vec2 u_pattern_tl_a;\\nuniform vec2 u_pattern_br_a;\\nuniform vec2 u_pattern_tl_b;\\nuniform vec2 u_pattern_br_b;\\nuniform vec2 u_texsize;\\nuniform float u_mix;\\n\\nuniform sampler2D u_image;\\n\\nvarying vec2 v_pos_a;\\nvarying vec2 v_pos_b;\\nvarying vec4 v_lighting;\\n\\n#pragma mapbox: define lowp float base\\n#pragma mapbox: define lowp float height\\n\\nvoid main() {\\n #pragma mapbox: initialize lowp float base\\n #pragma mapbox: initialize lowp float height\\n\\n vec2 imagecoord = mod(v_pos_a, 1.0);\\n vec2 pos = mix(u_pattern_tl_a / u_texsize, u_pattern_br_a / u_texsize, imagecoord);\\n vec4 color1 = texture2D(u_image, pos);\\n\\n vec2 imagecoord_b = mod(v_pos_b, 1.0);\\n vec2 pos2 = mix(u_pattern_tl_b / u_texsize, u_pattern_br_b / u_texsize, imagecoord_b);\\n vec4 color2 = texture2D(u_image, pos2);\\n\\n vec4 mixedColor = mix(color1, color2, u_mix);\\n\\n gl_FragColor = mixedColor * v_lighting;\\n\\n#ifdef OVERDRAW_INSPECTOR\\n gl_FragColor = vec4(1.0);\\n#endif\\n}\\n\",vertexSource:\"uniform mat4 u_matrix;\\nuniform vec2 u_pattern_size_a;\\nuniform vec2 u_pattern_size_b;\\nuniform vec2 u_pixel_coord_upper;\\nuniform vec2 u_pixel_coord_lower;\\nuniform float u_scale_a;\\nuniform float u_scale_b;\\nuniform float u_tile_units_to_pixels;\\nuniform float u_height_factor;\\n\\nuniform vec3 u_lightcolor;\\nuniform lowp vec3 u_lightpos;\\nuniform lowp float u_lightintensity;\\n\\nattribute vec2 a_pos;\\nattribute vec4 a_normal_ed;\\n\\nvarying vec2 v_pos_a;\\nvarying vec2 v_pos_b;\\nvarying vec4 v_lighting;\\nvarying float v_directional;\\n\\n#pragma mapbox: define lowp float base\\n#pragma mapbox: define lowp float height\\n\\nvoid main() {\\n #pragma mapbox: initialize lowp float base\\n #pragma mapbox: initialize lowp float height\\n\\n vec3 normal = a_normal_ed.xyz;\\n float edgedistance = a_normal_ed.w;\\n\\n base = max(0.0, base);\\n height = max(0.0, height);\\n\\n float t = mod(normal.x, 2.0);\\n float z = t > 0.0 ? height : base;\\n\\n gl_Position = u_matrix * vec4(a_pos, z, 1);\\n\\n vec2 pos = normal.x == 1.0 && normal.y == 0.0 && normal.z == 16384.0\\n ? a_pos // extrusion top\\n : vec2(edgedistance, z * u_height_factor); // extrusion side\\n\\n v_pos_a = get_pattern_pos(u_pixel_coord_upper, u_pixel_coord_lower, u_scale_a * u_pattern_size_a, u_tile_units_to_pixels, pos);\\n v_pos_b = get_pattern_pos(u_pixel_coord_upper, u_pixel_coord_lower, u_scale_b * u_pattern_size_b, u_tile_units_to_pixels, pos);\\n\\n v_lighting = vec4(0.0, 0.0, 0.0, 1.0);\\n float directional = clamp(dot(normal / 16383.0, u_lightpos), 0.0, 1.0);\\n directional = mix((1.0 - u_lightintensity), max((0.5 + u_lightintensity), 1.0), directional);\\n\\n if (normal.y != 0.0) {\\n directional *= clamp((t + base) * pow(height / 150.0, 0.5), mix(0.7, 0.98, 1.0 - u_lightintensity), 1.0);\\n }\\n\\n v_lighting.rgb += clamp(directional * u_lightcolor, mix(vec3(0.0), vec3(0.3), 1.0 - u_lightcolor), vec3(1.0));\\n}\\n\"},extrusionTexture:{fragmentSource:\"uniform sampler2D u_image;\\nuniform float u_opacity;\\nvarying vec2 v_pos;\\n\\nvoid main() {\\n gl_FragColor = texture2D(u_image, v_pos) * u_opacity;\\n\\n#ifdef OVERDRAW_INSPECTOR\\n gl_FragColor = vec4(0.0);\\n#endif\\n}\\n\",vertexSource:\"uniform mat4 u_matrix;\\nuniform vec2 u_world;\\nattribute vec2 a_pos;\\nvarying vec2 v_pos;\\n\\nvoid main() {\\n gl_Position = u_matrix * vec4(a_pos * u_world, 0, 1);\\n\\n v_pos.x = a_pos.x;\\n v_pos.y = 1.0 - a_pos.y;\\n}\\n\"},hillshadePrepare:{fragmentSource:\"#ifdef GL_ES\\nprecision highp float;\\n#endif\\n\\nuniform sampler2D u_image;\\nvarying vec2 v_pos;\\nuniform vec2 u_dimension;\\nuniform float u_zoom;\\nuniform float u_maxzoom;\\n\\nfloat getElevation(vec2 coord, float bias) {\\n // Convert encoded elevation value to meters\\n vec4 data = texture2D(u_image, coord) * 255.0;\\n return (data.r + data.g * 256.0 + data.b * 256.0 * 256.0) / 4.0;\\n}\\n\\nvoid main() {\\n vec2 epsilon = 1.0 / u_dimension;\\n\\n // queried pixels:\\n // +-----------+\\n // | | | |\\n // | a | b | c |\\n // | | | |\\n // +-----------+\\n // | | | |\\n // | d | e | f |\\n // | | | |\\n // +-----------+\\n // | | | |\\n // | g | h | i |\\n // | | | |\\n // +-----------+\\n\\n float a = getElevation(v_pos + vec2(-epsilon.x, -epsilon.y), 0.0);\\n float b = getElevation(v_pos + vec2(0, -epsilon.y), 0.0);\\n float c = getElevation(v_pos + vec2(epsilon.x, -epsilon.y), 0.0);\\n float d = getElevation(v_pos + vec2(-epsilon.x, 0), 0.0);\\n float e = getElevation(v_pos, 0.0);\\n float f = getElevation(v_pos + vec2(epsilon.x, 0), 0.0);\\n float g = getElevation(v_pos + vec2(-epsilon.x, epsilon.y), 0.0);\\n float h = getElevation(v_pos + vec2(0, epsilon.y), 0.0);\\n float i = getElevation(v_pos + vec2(epsilon.x, epsilon.y), 0.0);\\n\\n // here we divide the x and y slopes by 8 * pixel size\\n // where pixel size (aka meters/pixel) is:\\n // circumference of the world / (pixels per tile * number of tiles)\\n // which is equivalent to: 8 * 40075016.6855785 / (512 * pow(2, u_zoom))\\n // which can be reduced to: pow(2, 19.25619978527 - u_zoom)\\n // we want to vertically exaggerate the hillshading though, because otherwise\\n // it is barely noticeable at low zooms. to do this, we multiply this by some\\n // scale factor pow(2, (u_zoom - u_maxzoom) * a) where a is an arbitrary value\\n // Here we use a=0.3 which works out to the expression below. see \\n // nickidlugash's awesome breakdown for more info\\n // https://github.com/mapbox/mapbox-gl-js/pull/5286#discussion_r148419556\\n float exaggeration = u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;\\n\\n vec2 deriv = vec2(\\n (c + f + f + i) - (a + d + d + g),\\n (g + h + h + i) - (a + b + b + c)\\n ) / pow(2.0, (u_zoom - u_maxzoom) * exaggeration + 19.2562 - u_zoom);\\n\\n gl_FragColor = clamp(vec4(\\n deriv.x / 2.0 + 0.5,\\n deriv.y / 2.0 + 0.5,\\n 1.0,\\n 1.0), 0.0, 1.0);\\n\\n#ifdef OVERDRAW_INSPECTOR\\n gl_FragColor = vec4(1.0);\\n#endif\\n}\\n\",vertexSource:\"uniform mat4 u_matrix;\\n\\nattribute vec2 a_pos;\\nattribute vec2 a_texture_pos;\\n\\nvarying vec2 v_pos;\\n\\nvoid main() {\\n gl_Position = u_matrix * vec4(a_pos, 0, 1);\\n v_pos = (a_texture_pos / 8192.0) / 2.0 + 0.25;\\n}\\n\"},hillshade:{fragmentSource:\"uniform sampler2D u_image;\\nvarying vec2 v_pos;\\n\\nuniform vec2 u_latrange;\\nuniform vec2 u_light;\\nuniform vec4 u_shadow;\\nuniform vec4 u_highlight;\\nuniform vec4 u_accent;\\n\\n#define PI 3.141592653589793\\n\\nvoid main() {\\n vec4 pixel = texture2D(u_image, v_pos);\\n\\n vec2 deriv = ((pixel.rg * 2.0) - 1.0);\\n\\n // We divide the slope by a scale factor based on the cosin of the pixel's approximate latitude\\n // to account for mercator projection distortion. see #4807 for details\\n float scaleFactor = cos(radians((u_latrange[0] - u_latrange[1]) * (1.0 - v_pos.y) + u_latrange[1]));\\n // We also multiply the slope by an arbitrary z-factor of 1.25\\n float slope = atan(1.25 * length(deriv) / scaleFactor);\\n float aspect = deriv.x != 0.0 ? atan(deriv.y, -deriv.x) : PI / 2.0 * (deriv.y > 0.0 ? 1.0 : -1.0);\\n\\n float intensity = u_light.x;\\n // We add PI to make this property match the global light object, which adds PI/2 to the light's azimuthal\\n // position property to account for 0deg corresponding to north/the top of the viewport in the style spec\\n // and the original shader was written to accept (-illuminationDirection - 90) as the azimuthal.\\n float azimuth = u_light.y + PI;\\n\\n // We scale the slope exponentially based on intensity, using a calculation similar to\\n // the exponential interpolation function in the style spec:\\n // https://github.com/mapbox/mapbox-gl-js/blob/master/src/style-spec/expression/definitions/interpolate.js#L217-L228\\n // so that higher intensity values create more opaque hillshading.\\n float base = 1.875 - intensity * 1.75;\\n float maxValue = 0.5 * PI;\\n float scaledSlope = intensity != 0.5 ? ((pow(base, slope) - 1.0) / (pow(base, maxValue) - 1.0)) * maxValue : slope;\\n\\n // The accent color is calculated with the cosine of the slope while the shade color is calculated with the sine\\n // so that the accent color's rate of change eases in while the shade color's eases out.\\n float accent = cos(scaledSlope);\\n // We multiply both the accent and shade color by a clamped intensity value\\n // so that intensities >= 0.5 do not additionally affect the color values\\n // while intensity values < 0.5 make the overall color more transparent.\\n vec4 accent_color = (1.0 - accent) * u_accent * clamp(intensity * 2.0, 0.0, 1.0);\\n float shade = abs(mod((aspect + azimuth) / PI + 0.5, 2.0) - 1.0);\\n vec4 shade_color = mix(u_shadow, u_highlight, shade) * sin(scaledSlope) * clamp(intensity * 2.0, 0.0, 1.0);\\n gl_FragColor = accent_color * (1.0 - shade_color.a) + shade_color;\\n\\n#ifdef OVERDRAW_INSPECTOR\\n gl_FragColor = vec4(1.0);\\n#endif\\n}\\n\",vertexSource:\"uniform mat4 u_matrix;\\n\\nattribute vec2 a_pos;\\nattribute vec2 a_texture_pos;\\n\\nvarying vec2 v_pos;\\n\\nvoid main() {\\n gl_Position = u_matrix * vec4(a_pos, 0, 1);\\n v_pos = a_texture_pos / 8192.0;\\n}\\n\"},line:{fragmentSource:\"#pragma mapbox: define highp vec4 color\\n#pragma mapbox: define lowp float blur\\n#pragma mapbox: define lowp float opacity\\n\\nvarying vec2 v_width2;\\nvarying vec2 v_normal;\\nvarying float v_gamma_scale;\\n\\nvoid main() {\\n #pragma mapbox: initialize highp vec4 color\\n #pragma mapbox: initialize lowp float blur\\n #pragma mapbox: initialize lowp float opacity\\n\\n // Calculate the distance of the pixel from the line in pixels.\\n float dist = length(v_normal) * v_width2.s;\\n\\n // Calculate the antialiasing fade factor. This is either when fading in\\n // the line in case of an offset line (v_width2.t) or when fading out\\n // (v_width2.s)\\n float blur2 = (blur + 1.0 / DEVICE_PIXEL_RATIO) * v_gamma_scale;\\n float alpha = clamp(min(dist - (v_width2.t - blur2), v_width2.s - dist) / blur2, 0.0, 1.0);\\n\\n gl_FragColor = color * (alpha * opacity);\\n\\n#ifdef OVERDRAW_INSPECTOR\\n gl_FragColor = vec4(1.0);\\n#endif\\n}\\n\",vertexSource:\"\\n\\n// the distance over which the line edge fades out.\\n// Retina devices need a smaller distance to avoid aliasing.\\n#define ANTIALIASING 1.0 / DEVICE_PIXEL_RATIO / 2.0\\n\\n// floor(127 / 2) == 63.0\\n// the maximum allowed miter limit is 2.0 at the moment. the extrude normal is\\n// stored in a byte (-128..127). we scale regular normals up to length 63, but\\n// there are also \\\"special\\\" normals that have a bigger length (of up to 126 in\\n// this case).\\n// #define scale 63.0\\n#define scale 0.015873016\\n\\nattribute vec4 a_pos_normal;\\nattribute vec4 a_data;\\n\\nuniform mat4 u_matrix;\\nuniform mediump float u_ratio;\\nuniform vec2 u_gl_units_to_pixels;\\n\\nvarying vec2 v_normal;\\nvarying vec2 v_width2;\\nvarying float v_gamma_scale;\\nvarying highp float v_linesofar;\\n\\n#pragma mapbox: define highp vec4 color\\n#pragma mapbox: define lowp float blur\\n#pragma mapbox: define lowp float opacity\\n#pragma mapbox: define mediump float gapwidth\\n#pragma mapbox: define lowp float offset\\n#pragma mapbox: define mediump float width\\n\\nvoid main() {\\n #pragma mapbox: initialize highp vec4 color\\n #pragma mapbox: initialize lowp float blur\\n #pragma mapbox: initialize lowp float opacity\\n #pragma mapbox: initialize mediump float gapwidth\\n #pragma mapbox: initialize lowp float offset\\n #pragma mapbox: initialize mediump float width\\n\\n vec2 a_extrude = a_data.xy - 128.0;\\n float a_direction = mod(a_data.z, 4.0) - 1.0;\\n\\n v_linesofar = (floor(a_data.z / 4.0) + a_data.w * 64.0) * 2.0;\\n\\n vec2 pos = a_pos_normal.xy;\\n\\n // x is 1 if it's a round cap, 0 otherwise\\n // y is 1 if the normal points up, and -1 if it points down\\n mediump vec2 normal = a_pos_normal.zw;\\n v_normal = normal;\\n\\n // these transformations used to be applied in the JS and native code bases.\\n // moved them into the shader for clarity and simplicity.\\n gapwidth = gapwidth / 2.0;\\n float halfwidth = width / 2.0;\\n offset = -1.0 * offset;\\n\\n float inset = gapwidth + (gapwidth > 0.0 ? ANTIALIASING : 0.0);\\n float outset = gapwidth + halfwidth * (gapwidth > 0.0 ? 2.0 : 1.0) + ANTIALIASING;\\n\\n // Scale the extrusion vector down to a normal and then up by the line width\\n // of this vertex.\\n mediump vec2 dist = outset * a_extrude * scale;\\n\\n // Calculate the offset when drawing a line that is to the side of the actual line.\\n // We do this by creating a vector that points towards the extrude, but rotate\\n // it when we're drawing round end points (a_direction = -1 or 1) since their\\n // extrude vector points in another direction.\\n mediump float u = 0.5 * a_direction;\\n mediump float t = 1.0 - abs(u);\\n mediump vec2 offset2 = offset * a_extrude * scale * normal.y * mat2(t, -u, u, t);\\n\\n vec4 projected_extrude = u_matrix * vec4(dist / u_ratio, 0.0, 0.0);\\n gl_Position = u_matrix * vec4(pos + offset2 / u_ratio, 0.0, 1.0) + projected_extrude;\\n\\n // calculate how much the perspective view squishes or stretches the extrude\\n float extrude_length_without_perspective = length(dist);\\n float extrude_length_with_perspective = length(projected_extrude.xy / gl_Position.w * u_gl_units_to_pixels);\\n v_gamma_scale = extrude_length_without_perspective / extrude_length_with_perspective;\\n\\n v_width2 = vec2(outset, inset);\\n}\\n\"},lineGradient:{fragmentSource:\"\\n#pragma mapbox: define lowp float blur\\n#pragma mapbox: define lowp float opacity\\n\\nuniform sampler2D u_image;\\n\\nvarying vec2 v_width2;\\nvarying vec2 v_normal;\\nvarying float v_gamma_scale;\\nvarying highp float v_lineprogress;\\n\\nvoid main() {\\n #pragma mapbox: initialize lowp float blur\\n #pragma mapbox: initialize lowp float opacity\\n\\n // Calculate the distance of the pixel from the line in pixels.\\n float dist = length(v_normal) * v_width2.s;\\n\\n // Calculate the antialiasing fade factor. This is either when fading in\\n // the line in case of an offset line (v_width2.t) or when fading out\\n // (v_width2.s)\\n float blur2 = (blur + 1.0 / DEVICE_PIXEL_RATIO) * v_gamma_scale;\\n float alpha = clamp(min(dist - (v_width2.t - blur2), v_width2.s - dist) / blur2, 0.0, 1.0);\\n\\n // For gradient lines, v_lineprogress is the ratio along the entire line,\\n // scaled to [0, 2^15), and the gradient ramp is stored in a texture.\\n vec4 color = texture2D(u_image, vec2(v_lineprogress, 0.5));\\n\\n gl_FragColor = color * (alpha * opacity);\\n\\n#ifdef OVERDRAW_INSPECTOR\\n gl_FragColor = vec4(1.0);\\n#endif\\n}\\n\",vertexSource:\"\\n// the attribute conveying progress along a line is scaled to [0, 2^15)\\n#define MAX_LINE_DISTANCE 32767.0\\n\\n// the distance over which the line edge fades out.\\n// Retina devices need a smaller distance to avoid aliasing.\\n#define ANTIALIASING 1.0 / DEVICE_PIXEL_RATIO / 2.0\\n\\n// floor(127 / 2) == 63.0\\n// the maximum allowed miter limit is 2.0 at the moment. the extrude normal is\\n// stored in a byte (-128..127). we scale regular normals up to length 63, but\\n// there are also \\\"special\\\" normals that have a bigger length (of up to 126 in\\n// this case).\\n// #define scale 63.0\\n#define scale 0.015873016\\n\\nattribute vec4 a_pos_normal;\\nattribute vec4 a_data;\\n\\nuniform mat4 u_matrix;\\nuniform mediump float u_ratio;\\nuniform vec2 u_gl_units_to_pixels;\\n\\nvarying vec2 v_normal;\\nvarying vec2 v_width2;\\nvarying float v_gamma_scale;\\nvarying highp float v_lineprogress;\\n\\n#pragma mapbox: define lowp float blur\\n#pragma mapbox: define lowp float opacity\\n#pragma mapbox: define mediump float gapwidth\\n#pragma mapbox: define lowp float offset\\n#pragma mapbox: define mediump float width\\n\\nvoid main() {\\n #pragma mapbox: initialize lowp float blur\\n #pragma mapbox: initialize lowp float opacity\\n #pragma mapbox: initialize mediump float gapwidth\\n #pragma mapbox: initialize lowp float offset\\n #pragma mapbox: initialize mediump float width\\n\\n vec2 a_extrude = a_data.xy - 128.0;\\n float a_direction = mod(a_data.z, 4.0) - 1.0;\\n\\n v_lineprogress = (floor(a_data.z / 4.0) + a_data.w * 64.0) * 2.0 / MAX_LINE_DISTANCE;\\n\\n vec2 pos = a_pos_normal.xy;\\n\\n // x is 1 if it's a round cap, 0 otherwise\\n // y is 1 if the normal points up, and -1 if it points down\\n mediump vec2 normal = a_pos_normal.zw;\\n v_normal = normal;\\n\\n // these transformations used to be applied in the JS and native code bases.\\n // moved them into the shader for clarity and simplicity.\\n gapwidth = gapwidth / 2.0;\\n float halfwidth = width / 2.0;\\n offset = -1.0 * offset;\\n\\n float inset = gapwidth + (gapwidth > 0.0 ? ANTIALIASING : 0.0);\\n float outset = gapwidth + halfwidth * (gapwidth > 0.0 ? 2.0 : 1.0) + ANTIALIASING;\\n\\n // Scale the extrusion vector down to a normal and then up by the line width\\n // of this vertex.\\n mediump vec2 dist = outset * a_extrude * scale;\\n\\n // Calculate the offset when drawing a line that is to the side of the actual line.\\n // We do this by creating a vector that points towards the extrude, but rotate\\n // it when we're drawing round end points (a_direction = -1 or 1) since their\\n // extrude vector points in another direction.\\n mediump float u = 0.5 * a_direction;\\n mediump float t = 1.0 - abs(u);\\n mediump vec2 offset2 = offset * a_extrude * scale * normal.y * mat2(t, -u, u, t);\\n\\n vec4 projected_extrude = u_matrix * vec4(dist / u_ratio, 0.0, 0.0);\\n gl_Position = u_matrix * vec4(pos + offset2 / u_ratio, 0.0, 1.0) + projected_extrude;\\n\\n // calculate how much the perspective view squishes or stretches the extrude\\n float extrude_length_without_perspective = length(dist);\\n float extrude_length_with_perspective = length(projected_extrude.xy / gl_Position.w * u_gl_units_to_pixels);\\n v_gamma_scale = extrude_length_without_perspective / extrude_length_with_perspective;\\n\\n v_width2 = vec2(outset, inset);\\n}\\n\"},linePattern:{fragmentSource:\"uniform vec2 u_pattern_size_a;\\nuniform vec2 u_pattern_size_b;\\nuniform vec2 u_pattern_tl_a;\\nuniform vec2 u_pattern_br_a;\\nuniform vec2 u_pattern_tl_b;\\nuniform vec2 u_pattern_br_b;\\nuniform vec2 u_texsize;\\nuniform float u_fade;\\n\\nuniform sampler2D u_image;\\n\\nvarying vec2 v_normal;\\nvarying vec2 v_width2;\\nvarying float v_linesofar;\\nvarying float v_gamma_scale;\\n\\n#pragma mapbox: define lowp float blur\\n#pragma mapbox: define lowp float opacity\\n\\nvoid main() {\\n #pragma mapbox: initialize lowp float blur\\n #pragma mapbox: initialize lowp float opacity\\n\\n // Calculate the distance of the pixel from the line in pixels.\\n float dist = length(v_normal) * v_width2.s;\\n\\n // Calculate the antialiasing fade factor. This is either when fading in\\n // the line in case of an offset line (v_width2.t) or when fading out\\n // (v_width2.s)\\n float blur2 = (blur + 1.0 / DEVICE_PIXEL_RATIO) * v_gamma_scale;\\n float alpha = clamp(min(dist - (v_width2.t - blur2), v_width2.s - dist) / blur2, 0.0, 1.0);\\n\\n float x_a = mod(v_linesofar / u_pattern_size_a.x, 1.0);\\n float x_b = mod(v_linesofar / u_pattern_size_b.x, 1.0);\\n\\n // v_normal.y is 0 at the midpoint of the line, -1 at the lower edge, 1 at the upper edge\\n // we clamp the line width outset to be between 0 and half the pattern height plus padding (2.0)\\n // to ensure we don't sample outside the designated symbol on the sprite sheet.\\n // 0.5 is added to shift the component to be bounded between 0 and 1 for interpolation of\\n // the texture coordinate\\n float y_a = 0.5 + (v_normal.y * clamp(v_width2.s, 0.0, (u_pattern_size_a.y + 2.0) / 2.0) / u_pattern_size_a.y);\\n float y_b = 0.5 + (v_normal.y * clamp(v_width2.s, 0.0, (u_pattern_size_b.y + 2.0) / 2.0) / u_pattern_size_b.y);\\n vec2 pos_a = mix(u_pattern_tl_a / u_texsize, u_pattern_br_a / u_texsize, vec2(x_a, y_a));\\n vec2 pos_b = mix(u_pattern_tl_b / u_texsize, u_pattern_br_b / u_texsize, vec2(x_b, y_b));\\n\\n vec4 color = mix(texture2D(u_image, pos_a), texture2D(u_image, pos_b), u_fade);\\n\\n gl_FragColor = color * alpha * opacity;\\n\\n#ifdef OVERDRAW_INSPECTOR\\n gl_FragColor = vec4(1.0);\\n#endif\\n}\\n\",vertexSource:\"// floor(127 / 2) == 63.0\\n// the maximum allowed miter limit is 2.0 at the moment. the extrude normal is\\n// stored in a byte (-128..127). we scale regular normals up to length 63, but\\n// there are also \\\"special\\\" normals that have a bigger length (of up to 126 in\\n// this case).\\n// #define scale 63.0\\n#define scale 0.015873016\\n\\n// We scale the distance before adding it to the buffers so that we can store\\n// long distances for long segments. Use this value to unscale the distance.\\n#define LINE_DISTANCE_SCALE 2.0\\n\\n// the distance over which the line edge fades out.\\n// Retina devices need a smaller distance to avoid aliasing.\\n#define ANTIALIASING 1.0 / DEVICE_PIXEL_RATIO / 2.0\\n\\nattribute vec4 a_pos_normal;\\nattribute vec4 a_data;\\n\\nuniform mat4 u_matrix;\\nuniform mediump float u_ratio;\\nuniform vec2 u_gl_units_to_pixels;\\n\\nvarying vec2 v_normal;\\nvarying vec2 v_width2;\\nvarying float v_linesofar;\\nvarying float v_gamma_scale;\\n\\n#pragma mapbox: define lowp float blur\\n#pragma mapbox: define lowp float opacity\\n#pragma mapbox: define lowp float offset\\n#pragma mapbox: define mediump float gapwidth\\n#pragma mapbox: define mediump float width\\n\\nvoid main() {\\n #pragma mapbox: initialize lowp float blur\\n #pragma mapbox: initialize lowp float opacity\\n #pragma mapbox: initialize lowp float offset\\n #pragma mapbox: initialize mediump float gapwidth\\n #pragma mapbox: initialize mediump float width\\n\\n vec2 a_extrude = a_data.xy - 128.0;\\n float a_direction = mod(a_data.z, 4.0) - 1.0;\\n float a_linesofar = (floor(a_data.z / 4.0) + a_data.w * 64.0) * LINE_DISTANCE_SCALE;\\n\\n vec2 pos = a_pos_normal.xy;\\n\\n // x is 1 if it's a round cap, 0 otherwise\\n // y is 1 if the normal points up, and -1 if it points down\\n mediump vec2 normal = a_pos_normal.zw;\\n v_normal = normal;\\n\\n // these transformations used to be applied in the JS and native code bases.\\n // moved them into the shader for clarity and simplicity.\\n gapwidth = gapwidth / 2.0;\\n float halfwidth = width / 2.0;\\n offset = -1.0 * offset;\\n\\n float inset = gapwidth + (gapwidth > 0.0 ? ANTIALIASING : 0.0);\\n float outset = gapwidth + halfwidth * (gapwidth > 0.0 ? 2.0 : 1.0) + ANTIALIASING;\\n\\n // Scale the extrusion vector down to a normal and then up by the line width\\n // of this vertex.\\n mediump vec2 dist = outset * a_extrude * scale;\\n\\n // Calculate the offset when drawing a line that is to the side of the actual line.\\n // We do this by creating a vector that points towards the extrude, but rotate\\n // it when we're drawing round end points (a_direction = -1 or 1) since their\\n // extrude vector points in another direction.\\n mediump float u = 0.5 * a_direction;\\n mediump float t = 1.0 - abs(u);\\n mediump vec2 offset2 = offset * a_extrude * scale * normal.y * mat2(t, -u, u, t);\\n\\n vec4 projected_extrude = u_matrix * vec4(dist / u_ratio, 0.0, 0.0);\\n gl_Position = u_matrix * vec4(pos + offset2 / u_ratio, 0.0, 1.0) + projected_extrude;\\n\\n // calculate how much the perspective view squishes or stretches the extrude\\n float extrude_length_without_perspective = length(dist);\\n float extrude_length_with_perspective = length(projected_extrude.xy / gl_Position.w * u_gl_units_to_pixels);\\n v_gamma_scale = extrude_length_without_perspective / extrude_length_with_perspective;\\n\\n v_linesofar = a_linesofar;\\n v_width2 = vec2(outset, inset);\\n}\\n\"},lineSDF:{fragmentSource:\"\\nuniform sampler2D u_image;\\nuniform float u_sdfgamma;\\nuniform float u_mix;\\n\\nvarying vec2 v_normal;\\nvarying vec2 v_width2;\\nvarying vec2 v_tex_a;\\nvarying vec2 v_tex_b;\\nvarying float v_gamma_scale;\\n\\n#pragma mapbox: define highp vec4 color\\n#pragma mapbox: define lowp float blur\\n#pragma mapbox: define lowp float opacity\\n#pragma mapbox: define mediump float width\\n#pragma mapbox: define lowp float floorwidth\\n\\nvoid main() {\\n #pragma mapbox: initialize highp vec4 color\\n #pragma mapbox: initialize lowp float blur\\n #pragma mapbox: initialize lowp float opacity\\n #pragma mapbox: initialize mediump float width\\n #pragma mapbox: initialize lowp float floorwidth\\n\\n // Calculate the distance of the pixel from the line in pixels.\\n float dist = length(v_normal) * v_width2.s;\\n\\n // Calculate the antialiasing fade factor. This is either when fading in\\n // the line in case of an offset line (v_width2.t) or when fading out\\n // (v_width2.s)\\n float blur2 = (blur + 1.0 / DEVICE_PIXEL_RATIO) * v_gamma_scale;\\n float alpha = clamp(min(dist - (v_width2.t - blur2), v_width2.s - dist) / blur2, 0.0, 1.0);\\n\\n float sdfdist_a = texture2D(u_image, v_tex_a).a;\\n float sdfdist_b = texture2D(u_image, v_tex_b).a;\\n float sdfdist = mix(sdfdist_a, sdfdist_b, u_mix);\\n alpha *= smoothstep(0.5 - u_sdfgamma / floorwidth, 0.5 + u_sdfgamma / floorwidth, sdfdist);\\n\\n gl_FragColor = color * (alpha * opacity);\\n\\n#ifdef OVERDRAW_INSPECTOR\\n gl_FragColor = vec4(1.0);\\n#endif\\n}\\n\",vertexSource:\"// floor(127 / 2) == 63.0\\n// the maximum allowed miter limit is 2.0 at the moment. the extrude normal is\\n// stored in a byte (-128..127). we scale regular normals up to length 63, but\\n// there are also \\\"special\\\" normals that have a bigger length (of up to 126 in\\n// this case).\\n// #define scale 63.0\\n#define scale 0.015873016\\n\\n// We scale the distance before adding it to the buffers so that we can store\\n// long distances for long segments. Use this value to unscale the distance.\\n#define LINE_DISTANCE_SCALE 2.0\\n\\n// the distance over which the line edge fades out.\\n// Retina devices need a smaller distance to avoid aliasing.\\n#define ANTIALIASING 1.0 / DEVICE_PIXEL_RATIO / 2.0\\n\\nattribute vec4 a_pos_normal;\\nattribute vec4 a_data;\\n\\nuniform mat4 u_matrix;\\nuniform mediump float u_ratio;\\nuniform vec2 u_patternscale_a;\\nuniform float u_tex_y_a;\\nuniform vec2 u_patternscale_b;\\nuniform float u_tex_y_b;\\nuniform vec2 u_gl_units_to_pixels;\\n\\nvarying vec2 v_normal;\\nvarying vec2 v_width2;\\nvarying vec2 v_tex_a;\\nvarying vec2 v_tex_b;\\nvarying float v_gamma_scale;\\n\\n#pragma mapbox: define highp vec4 color\\n#pragma mapbox: define lowp float blur\\n#pragma mapbox: define lowp float opacity\\n#pragma mapbox: define mediump float gapwidth\\n#pragma mapbox: define lowp float offset\\n#pragma mapbox: define mediump float width\\n#pragma mapbox: define lowp float floorwidth\\n\\nvoid main() {\\n #pragma mapbox: initialize highp vec4 color\\n #pragma mapbox: initialize lowp float blur\\n #pragma mapbox: initialize lowp float opacity\\n #pragma mapbox: initialize mediump float gapwidth\\n #pragma mapbox: initialize lowp float offset\\n #pragma mapbox: initialize mediump float width\\n #pragma mapbox: initialize lowp float floorwidth\\n\\n vec2 a_extrude = a_data.xy - 128.0;\\n float a_direction = mod(a_data.z, 4.0) - 1.0;\\n float a_linesofar = (floor(a_data.z / 4.0) + a_data.w * 64.0) * LINE_DISTANCE_SCALE;\\n\\n vec2 pos = a_pos_normal.xy;\\n\\n // x is 1 if it's a round cap, 0 otherwise\\n // y is 1 if the normal points up, and -1 if it points down\\n mediump vec2 normal = a_pos_normal.zw;\\n v_normal = normal;\\n\\n // these transformations used to be applied in the JS and native code bases.\\n // moved them into the shader for clarity and simplicity.\\n gapwidth = gapwidth / 2.0;\\n float halfwidth = width / 2.0;\\n offset = -1.0 * offset;\\n\\n float inset = gapwidth + (gapwidth > 0.0 ? ANTIALIASING : 0.0);\\n float outset = gapwidth + halfwidth * (gapwidth > 0.0 ? 2.0 : 1.0) + ANTIALIASING;\\n\\n // Scale the extrusion vector down to a normal and then up by the line width\\n // of this vertex.\\n mediump vec2 dist =outset * a_extrude * scale;\\n\\n // Calculate the offset when drawing a line that is to the side of the actual line.\\n // We do this by creating a vector that points towards the extrude, but rotate\\n // it when we're drawing round end points (a_direction = -1 or 1) since their\\n // extrude vector points in another direction.\\n mediump float u = 0.5 * a_direction;\\n mediump float t = 1.0 - abs(u);\\n mediump vec2 offset2 = offset * a_extrude * scale * normal.y * mat2(t, -u, u, t);\\n\\n vec4 projected_extrude = u_matrix * vec4(dist / u_ratio, 0.0, 0.0);\\n gl_Position = u_matrix * vec4(pos + offset2 / u_ratio, 0.0, 1.0) + projected_extrude;\\n\\n // calculate how much the perspective view squishes or stretches the extrude\\n float extrude_length_without_perspective = length(dist);\\n float extrude_length_with_perspective = length(projected_extrude.xy / gl_Position.w * u_gl_units_to_pixels);\\n v_gamma_scale = extrude_length_without_perspective / extrude_length_with_perspective;\\n\\n v_tex_a = vec2(a_linesofar * u_patternscale_a.x / floorwidth, normal.y * u_patternscale_a.y + u_tex_y_a);\\n v_tex_b = vec2(a_linesofar * u_patternscale_b.x / floorwidth, normal.y * u_patternscale_b.y + u_tex_y_b);\\n\\n v_width2 = vec2(outset, inset);\\n}\\n\"},raster:{fragmentSource:\"uniform float u_fade_t;\\nuniform float u_opacity;\\nuniform sampler2D u_image0;\\nuniform sampler2D u_image1;\\nvarying vec2 v_pos0;\\nvarying vec2 v_pos1;\\n\\nuniform float u_brightness_low;\\nuniform float u_brightness_high;\\n\\nuniform float u_saturation_factor;\\nuniform float u_contrast_factor;\\nuniform vec3 u_spin_weights;\\n\\nvoid main() {\\n\\n // read and cross-fade colors from the main and parent tiles\\n vec4 color0 = texture2D(u_image0, v_pos0);\\n vec4 color1 = texture2D(u_image1, v_pos1);\\n if (color0.a > 0.0) {\\n color0.rgb = color0.rgb / color0.a;\\n }\\n if (color1.a > 0.0) {\\n color1.rgb = color1.rgb / color1.a;\\n }\\n vec4 color = mix(color0, color1, u_fade_t);\\n color.a *= u_opacity;\\n vec3 rgb = color.rgb;\\n\\n // spin\\n rgb = vec3(\\n dot(rgb, u_spin_weights.xyz),\\n dot(rgb, u_spin_weights.zxy),\\n dot(rgb, u_spin_weights.yzx));\\n\\n // saturation\\n float average = (color.r + color.g + color.b) / 3.0;\\n rgb += (average - rgb) * u_saturation_factor;\\n\\n // contrast\\n rgb = (rgb - 0.5) * u_contrast_factor + 0.5;\\n\\n // brightness\\n vec3 u_high_vec = vec3(u_brightness_low, u_brightness_low, u_brightness_low);\\n vec3 u_low_vec = vec3(u_brightness_high, u_brightness_high, u_brightness_high);\\n\\n gl_FragColor = vec4(mix(u_high_vec, u_low_vec, rgb) * color.a, color.a);\\n\\n#ifdef OVERDRAW_INSPECTOR\\n gl_FragColor = vec4(1.0);\\n#endif\\n}\\n\",vertexSource:\"uniform mat4 u_matrix;\\nuniform vec2 u_tl_parent;\\nuniform float u_scale_parent;\\nuniform float u_buffer_scale;\\n\\nattribute vec2 a_pos;\\nattribute vec2 a_texture_pos;\\n\\nvarying vec2 v_pos0;\\nvarying vec2 v_pos1;\\n\\nvoid main() {\\n gl_Position = u_matrix * vec4(a_pos, 0, 1);\\n // We are using Int16 for texture position coordinates to give us enough precision for\\n // fractional coordinates. We use 8192 to scale the texture coordinates in the buffer\\n // as an arbitrarily high number to preserve adequate precision when rendering.\\n // This is also the same value as the EXTENT we are using for our tile buffer pos coordinates,\\n // so math for modifying either is consistent.\\n v_pos0 = (((a_texture_pos / 8192.0) - 0.5) / u_buffer_scale ) + 0.5;\\n v_pos1 = (v_pos0 * u_scale_parent) + u_tl_parent;\\n}\\n\"},symbolIcon:{fragmentSource:\"uniform sampler2D u_texture;\\n\\n#pragma mapbox: define lowp float opacity\\n\\nvarying vec2 v_tex;\\nvarying float v_fade_opacity;\\n\\nvoid main() {\\n #pragma mapbox: initialize lowp float opacity\\n\\n lowp float alpha = opacity * v_fade_opacity;\\n gl_FragColor = texture2D(u_texture, v_tex) * alpha;\\n\\n#ifdef OVERDRAW_INSPECTOR\\n gl_FragColor = vec4(1.0);\\n#endif\\n}\\n\",vertexSource:\"const float PI = 3.141592653589793;\\n\\nattribute vec4 a_pos_offset;\\nattribute vec4 a_data;\\nattribute vec3 a_projected_pos;\\nattribute float a_fade_opacity;\\n\\nuniform bool u_is_size_zoom_constant;\\nuniform bool u_is_size_feature_constant;\\nuniform highp float u_size_t; // used to interpolate between zoom stops when size is a composite function\\nuniform highp float u_size; // used when size is both zoom and feature constant\\nuniform highp float u_camera_to_center_distance;\\nuniform highp float u_pitch;\\nuniform bool u_rotate_symbol;\\nuniform highp float u_aspect_ratio;\\nuniform float u_fade_change;\\n\\n#pragma mapbox: define lowp float opacity\\n\\nuniform mat4 u_matrix;\\nuniform mat4 u_label_plane_matrix;\\nuniform mat4 u_gl_coord_matrix;\\n\\nuniform bool u_is_text;\\nuniform bool u_pitch_with_map;\\n\\nuniform vec2 u_texsize;\\n\\nvarying vec2 v_tex;\\nvarying float v_fade_opacity;\\n\\nvoid main() {\\n #pragma mapbox: initialize lowp float opacity\\n\\n vec2 a_pos = a_pos_offset.xy;\\n vec2 a_offset = a_pos_offset.zw;\\n\\n vec2 a_tex = a_data.xy;\\n vec2 a_size = a_data.zw;\\n\\n highp float segment_angle = -a_projected_pos[2];\\n\\n float size;\\n if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {\\n size = mix(a_size[0], a_size[1], u_size_t) / 10.0;\\n } else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {\\n size = a_size[0] / 10.0;\\n } else if (!u_is_size_zoom_constant && u_is_size_feature_constant) {\\n size = u_size;\\n } else {\\n size = u_size;\\n }\\n\\n vec4 projectedPoint = u_matrix * vec4(a_pos, 0, 1);\\n highp float camera_to_anchor_distance = projectedPoint.w;\\n // See comments in symbol_sdf.vertex\\n highp float distance_ratio = u_pitch_with_map ?\\n camera_to_anchor_distance / u_camera_to_center_distance :\\n u_camera_to_center_distance / camera_to_anchor_distance;\\n highp float perspective_ratio = clamp(\\n 0.5 + 0.5 * distance_ratio,\\n 0.0, // Prevents oversized near-field symbols in pitched/overzoomed tiles\\n 4.0);\\n\\n size *= perspective_ratio;\\n\\n float fontScale = u_is_text ? size / 24.0 : size;\\n\\n highp float symbol_rotation = 0.0;\\n if (u_rotate_symbol) {\\n // See comments in symbol_sdf.vertex\\n vec4 offsetProjectedPoint = u_matrix * vec4(a_pos + vec2(1, 0), 0, 1);\\n\\n vec2 a = projectedPoint.xy / projectedPoint.w;\\n vec2 b = offsetProjectedPoint.xy / offsetProjectedPoint.w;\\n\\n symbol_rotation = atan((b.y - a.y) / u_aspect_ratio, b.x - a.x);\\n }\\n\\n highp float angle_sin = sin(segment_angle + symbol_rotation);\\n highp float angle_cos = cos(segment_angle + symbol_rotation);\\n mat2 rotation_matrix = mat2(angle_cos, -1.0 * angle_sin, angle_sin, angle_cos);\\n\\n vec4 projected_pos = u_label_plane_matrix * vec4(a_projected_pos.xy, 0.0, 1.0);\\n gl_Position = u_gl_coord_matrix * vec4(projected_pos.xy / projected_pos.w + rotation_matrix * (a_offset / 32.0 * fontScale), 0.0, 1.0);\\n\\n v_tex = a_tex / u_texsize;\\n vec2 fade_opacity = unpack_opacity(a_fade_opacity);\\n float fade_change = fade_opacity[1] > 0.5 ? u_fade_change : -u_fade_change;\\n v_fade_opacity = max(0.0, min(1.0, fade_opacity[0] + fade_change));\\n}\\n\"},symbolSDF:{fragmentSource:\"#define SDF_PX 8.0\\n#define EDGE_GAMMA 0.105/DEVICE_PIXEL_RATIO\\n\\nuniform bool u_is_halo;\\n#pragma mapbox: define highp vec4 fill_color\\n#pragma mapbox: define highp vec4 halo_color\\n#pragma mapbox: define lowp float opacity\\n#pragma mapbox: define lowp float halo_width\\n#pragma mapbox: define lowp float halo_blur\\n\\nuniform sampler2D u_texture;\\nuniform highp float u_gamma_scale;\\nuniform bool u_is_text;\\n\\nvarying vec2 v_data0;\\nvarying vec3 v_data1;\\n\\nvoid main() {\\n #pragma mapbox: initialize highp vec4 fill_color\\n #pragma mapbox: initialize highp vec4 halo_color\\n #pragma mapbox: initialize lowp float opacity\\n #pragma mapbox: initialize lowp float halo_width\\n #pragma mapbox: initialize lowp float halo_blur\\n\\n vec2 tex = v_data0.xy;\\n float gamma_scale = v_data1.x;\\n float size = v_data1.y;\\n float fade_opacity = v_data1[2];\\n\\n float fontScale = u_is_text ? size / 24.0 : size;\\n\\n lowp vec4 color = fill_color;\\n highp float gamma = EDGE_GAMMA / (fontScale * u_gamma_scale);\\n lowp float buff = (256.0 - 64.0) / 256.0;\\n if (u_is_halo) {\\n color = halo_color;\\n gamma = (halo_blur * 1.19 / SDF_PX + EDGE_GAMMA) / (fontScale * u_gamma_scale);\\n buff = (6.0 - halo_width / fontScale) / SDF_PX;\\n }\\n\\n lowp float dist = texture2D(u_texture, tex).a;\\n highp float gamma_scaled = gamma * gamma_scale;\\n highp float alpha = smoothstep(buff - gamma_scaled, buff + gamma_scaled, dist);\\n\\n gl_FragColor = color * (alpha * opacity * fade_opacity);\\n\\n#ifdef OVERDRAW_INSPECTOR\\n gl_FragColor = vec4(1.0);\\n#endif\\n}\\n\",vertexSource:\"const float PI = 3.141592653589793;\\n\\nattribute vec4 a_pos_offset;\\nattribute vec4 a_data;\\nattribute vec3 a_projected_pos;\\nattribute float a_fade_opacity;\\n\\n// contents of a_size vary based on the type of property value\\n// used for {text,icon}-size.\\n// For constants, a_size is disabled.\\n// For source functions, we bind only one value per vertex: the value of {text,icon}-size evaluated for the current feature.\\n// For composite functions:\\n// [ text-size(lowerZoomStop, feature),\\n// text-size(upperZoomStop, feature) ]\\nuniform bool u_is_size_zoom_constant;\\nuniform bool u_is_size_feature_constant;\\nuniform highp float u_size_t; // used to interpolate between zoom stops when size is a composite function\\nuniform highp float u_size; // used when size is both zoom and feature constant\\n\\n#pragma mapbox: define highp vec4 fill_color\\n#pragma mapbox: define highp vec4 halo_color\\n#pragma mapbox: define lowp float opacity\\n#pragma mapbox: define lowp float halo_width\\n#pragma mapbox: define lowp float halo_blur\\n\\nuniform mat4 u_matrix;\\nuniform mat4 u_label_plane_matrix;\\nuniform mat4 u_gl_coord_matrix;\\n\\nuniform bool u_is_text;\\nuniform bool u_pitch_with_map;\\nuniform highp float u_pitch;\\nuniform bool u_rotate_symbol;\\nuniform highp float u_aspect_ratio;\\nuniform highp float u_camera_to_center_distance;\\nuniform float u_fade_change;\\n\\nuniform vec2 u_texsize;\\n\\nvarying vec2 v_data0;\\nvarying vec3 v_data1;\\n\\nvoid main() {\\n #pragma mapbox: initialize highp vec4 fill_color\\n #pragma mapbox: initialize highp vec4 halo_color\\n #pragma mapbox: initialize lowp float opacity\\n #pragma mapbox: initialize lowp float halo_width\\n #pragma mapbox: initialize lowp float halo_blur\\n\\n vec2 a_pos = a_pos_offset.xy;\\n vec2 a_offset = a_pos_offset.zw;\\n\\n vec2 a_tex = a_data.xy;\\n vec2 a_size = a_data.zw;\\n\\n highp float segment_angle = -a_projected_pos[2];\\n float size;\\n\\n if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {\\n size = mix(a_size[0], a_size[1], u_size_t) / 10.0;\\n } else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {\\n size = a_size[0] / 10.0;\\n } else if (!u_is_size_zoom_constant && u_is_size_feature_constant) {\\n size = u_size;\\n } else {\\n size = u_size;\\n }\\n\\n vec4 projectedPoint = u_matrix * vec4(a_pos, 0, 1);\\n highp float camera_to_anchor_distance = projectedPoint.w;\\n // If the label is pitched with the map, layout is done in pitched space,\\n // which makes labels in the distance smaller relative to viewport space.\\n // We counteract part of that effect by multiplying by the perspective ratio.\\n // If the label isn't pitched with the map, we do layout in viewport space,\\n // which makes labels in the distance larger relative to the features around\\n // them. We counteract part of that effect by dividing by the perspective ratio.\\n highp float distance_ratio = u_pitch_with_map ?\\n camera_to_anchor_distance / u_camera_to_center_distance :\\n u_camera_to_center_distance / camera_to_anchor_distance;\\n highp float perspective_ratio = clamp(\\n 0.5 + 0.5 * distance_ratio,\\n 0.0, // Prevents oversized near-field symbols in pitched/overzoomed tiles\\n 4.0);\\n\\n size *= perspective_ratio;\\n\\n float fontScale = u_is_text ? size / 24.0 : size;\\n\\n highp float symbol_rotation = 0.0;\\n if (u_rotate_symbol) {\\n // Point labels with 'rotation-alignment: map' are horizontal with respect to tile units\\n // To figure out that angle in projected space, we draw a short horizontal line in tile\\n // space, project it, and measure its angle in projected space.\\n vec4 offsetProjectedPoint = u_matrix * vec4(a_pos + vec2(1, 0), 0, 1);\\n\\n vec2 a = projectedPoint.xy / projectedPoint.w;\\n vec2 b = offsetProjectedPoint.xy / offsetProjectedPoint.w;\\n\\n symbol_rotation = atan((b.y - a.y) / u_aspect_ratio, b.x - a.x);\\n }\\n\\n highp float angle_sin = sin(segment_angle + symbol_rotation);\\n highp float angle_cos = cos(segment_angle + symbol_rotation);\\n mat2 rotation_matrix = mat2(angle_cos, -1.0 * angle_sin, angle_sin, angle_cos);\\n\\n vec4 projected_pos = u_label_plane_matrix * vec4(a_projected_pos.xy, 0.0, 1.0);\\n gl_Position = u_gl_coord_matrix * vec4(projected_pos.xy / projected_pos.w + rotation_matrix * (a_offset / 32.0 * fontScale), 0.0, 1.0);\\n float gamma_scale = gl_Position.w;\\n\\n vec2 tex = a_tex / u_texsize;\\n vec2 fade_opacity = unpack_opacity(a_fade_opacity);\\n float fade_change = fade_opacity[1] > 0.5 ? u_fade_change : -u_fade_change;\\n float interpolated_fade_opacity = max(0.0, min(1.0, fade_opacity[0] + fade_change));\\n\\n v_data0 = vec2(tex.x, tex.y);\\n v_data1 = vec3(gamma_scale, size, interpolated_fade_opacity);\\n}\\n\"}},tr=/#pragma mapbox: ([\\w]+) ([\\w]+) ([\\w]+) ([\\w]+)/g,er=function(t){var e=Qe[t],r={};e.fragmentSource=e.fragmentSource.replace(tr,function(t,e,n,i,a){return r[a]=!0,\"define\"===e?\"\\n#ifndef HAS_UNIFORM_u_\"+a+\"\\nvarying \"+n+\" \"+i+\" \"+a+\";\\n#else\\nuniform \"+n+\" \"+i+\" u_\"+a+\";\\n#endif\\n\":\"\\n#ifdef HAS_UNIFORM_u_\"+a+\"\\n \"+n+\" \"+i+\" \"+a+\" = u_\"+a+\";\\n#endif\\n\"}),e.vertexSource=e.vertexSource.replace(tr,function(t,e,n,i,a){var o=\"float\"===i?\"vec2\":\"vec4\";return r[a]?\"define\"===e?\"\\n#ifndef HAS_UNIFORM_u_\"+a+\"\\nuniform lowp float a_\"+a+\"_t;\\nattribute \"+n+\" \"+o+\" a_\"+a+\";\\nvarying \"+n+\" \"+i+\" \"+a+\";\\n#else\\nuniform \"+n+\" \"+i+\" u_\"+a+\";\\n#endif\\n\":\"\\n#ifndef HAS_UNIFORM_u_\"+a+\"\\n \"+a+\" = unpack_mix_\"+o+\"(a_\"+a+\", a_\"+a+\"_t);\\n#else\\n \"+n+\" \"+i+\" \"+a+\" = u_\"+a+\";\\n#endif\\n\":\"define\"===e?\"\\n#ifndef HAS_UNIFORM_u_\"+a+\"\\nuniform lowp float a_\"+a+\"_t;\\nattribute \"+n+\" \"+o+\" a_\"+a+\";\\n#else\\nuniform \"+n+\" \"+i+\" u_\"+a+\";\\n#endif\\n\":\"\\n#ifndef HAS_UNIFORM_u_\"+a+\"\\n \"+n+\" \"+i+\" \"+a+\" = unpack_mix_\"+o+\"(a_\"+a+\", a_\"+a+\"_t);\\n#else\\n \"+n+\" \"+i+\" \"+a+\" = u_\"+a+\";\\n#endif\\n\"})};for(var rr in Qe)er(rr);var nr=Qe,ir=function(t,e,r,n){var i=t.gl;this.program=i.createProgram();var o=r.defines().concat(\"#define DEVICE_PIXEL_RATIO \"+a.devicePixelRatio.toFixed(1));n&&o.push(\"#define OVERDRAW_INSPECTOR;\");var s=o.concat(nr.prelude.fragmentSource,e.fragmentSource).join(\"\\n\"),l=o.concat(nr.prelude.vertexSource,e.vertexSource).join(\"\\n\"),c=i.createShader(i.FRAGMENT_SHADER);i.shaderSource(c,s),i.compileShader(c),i.attachShader(this.program,c);var u=i.createShader(i.VERTEX_SHADER);i.shaderSource(u,l),i.compileShader(u),i.attachShader(this.program,u);for(var f=r.layoutAttributes||[],h=0;h<f.length;h++)i.bindAttribLocation(this.program,h,f[h].name);i.linkProgram(this.program),this.numAttributes=i.getProgramParameter(this.program,i.ACTIVE_ATTRIBUTES),this.attributes={},this.uniforms={};for(var p=0;p<this.numAttributes;p++){var d=i.getActiveAttrib(this.program,p);d&&(this.attributes[d.name]=i.getAttribLocation(this.program,d.name))}for(var g=i.getProgramParameter(this.program,i.ACTIVE_UNIFORMS),v=0;v<g;v++){var m=i.getActiveUniform(this.program,v);m&&(this.uniforms[m.name]=i.getUniformLocation(this.program,m.name))}};function ar(e,r,n,i,a){for(var o=0;o<n.length;o++){var s=n[o];if(i.isLessThan(s.tileID))break;if(r.key===s.tileID.key)return;if(s.tileID.isChildOf(r)){for(var l=r.children(1/0),c=0;c<l.length;c++)ar(e,l[c],n.slice(o),i,a);return}}var u=r.overscaledZ-e.overscaledZ,f=new t.CanonicalTileID(u,r.canonical.x-(e.canonical.x<<u),r.canonical.y-(e.canonical.y<<u));a[f.key]=a[f.key]||f}function or(t,e,r,n,i){var a=t.context,o=a.gl,s=i?t.useProgram(\"collisionCircle\"):t.useProgram(\"collisionBox\");a.setDepthMode(qt.disabled),a.setStencilMode(Ht.disabled),a.setColorMode(t.colorModeForRenderPass());for(var l=0;l<n.length;l++){var c=n[l],u=e.getTile(c),f=u.getBucket(r);if(f){var h=i?f.collisionCircle:f.collisionBox;if(h){o.uniformMatrix4fv(s.uniforms.u_matrix,!1,c.posMatrix),i||a.lineWidth.set(1),o.uniform1f(s.uniforms.u_camera_to_center_distance,t.transform.cameraToCenterDistance);var p=Te(u,1,t.transform.zoom),d=Math.pow(2,t.transform.zoom-u.tileID.overscaledZ);o.uniform1f(s.uniforms.u_pixels_to_tile_units,p),o.uniform2f(s.uniforms.u_extrude_scale,t.transform.pixelsToGLUnits[0]/(p*d),t.transform.pixelsToGLUnits[1]/(p*d)),o.uniform1f(s.uniforms.u_overscale_factor,u.tileID.overscaleFactor()),s.draw(a,i?o.TRIANGLES:o.LINES,r.id,h.layoutVertexBuffer,h.indexBuffer,h.segments,null,h.collisionVertexBuffer,null)}}}}ir.prototype.draw=function(t,e,r,n,i,a,o,s,l){for(var c,u=t.gl,f=(c={},c[u.LINES]=2,c[u.TRIANGLES]=3,c)[e],h=0,p=a.get();h<p.length;h+=1){var d=p[h],g=d.vaos||(d.vaos={});(g[r]||(g[r]=new Q)).bind(t,this,n,o?o.getPaintVertexBuffers():[],i,d.vertexOffset,s,l),u.drawElements(e,d.primitiveLength*f,u.UNSIGNED_SHORT,d.primitiveOffset*f*2)}};var sr=t.mat4.identity(new Float32Array(16)),lr=t.default$19.layout;function cr(t,e,r,n,i,a,o,s,l,c){var u,f=t.context,h=f.gl,p=t.transform,d=\"map\"===s,g=\"map\"===l,v=d&&\"line\"===r.layout.get(\"symbol-placement\"),m=d&&!g&&!v,y=g;f.setDepthMode(y?t.depthModeForSublayer(0,qt.ReadOnly):qt.disabled);for(var x=0,b=n;x<b.length;x+=1){var _=b[x],w=e.getTile(_),k=w.getBucket(r);if(k){var M=i?k.text:k.icon;if(M&&M.segments.get().length){var A=M.programConfigurations.get(r.id),T=i||k.sdfIcons,S=i?k.textSizeData:k.iconSizeData;if(u||(u=t.useProgram(T?\"symbolSDF\":\"symbolIcon\",A),A.setUniforms(t.context,u,r.paint,{zoom:t.transform.zoom}),ur(u,t,r,i,m,g,S)),f.activeTexture.set(h.TEXTURE0),h.uniform1i(u.uniforms.u_texture,0),i)w.glyphAtlasTexture.bind(h.LINEAR,h.CLAMP_TO_EDGE),h.uniform2fv(u.uniforms.u_texsize,w.glyphAtlasTexture.size);else{var E=1!==r.layout.get(\"icon-size\").constantOr(0)||k.iconsNeedLinear,C=g||0!==p.pitch;w.iconAtlasTexture.bind(T||t.options.rotating||t.options.zooming||E||C?h.LINEAR:h.NEAREST,h.CLAMP_TO_EDGE),h.uniform2fv(u.uniforms.u_texsize,w.iconAtlasTexture.size)}h.uniformMatrix4fv(u.uniforms.u_matrix,!1,t.translatePosMatrix(_.posMatrix,w,a,o));var L=Te(w,1,t.transform.zoom),z=fe(_.posMatrix,g,d,t.transform,L),O=he(_.posMatrix,g,d,t.transform,L);h.uniformMatrix4fv(u.uniforms.u_gl_coord_matrix,!1,t.translatePosMatrix(O,w,a,o,!0)),v?(h.uniformMatrix4fv(u.uniforms.u_label_plane_matrix,!1,sr),ge(k,_.posMatrix,t,i,z,O,g,c)):h.uniformMatrix4fv(u.uniforms.u_label_plane_matrix,!1,z),h.uniform1f(u.uniforms.u_fade_change,t.options.fadeDuration?t.symbolFadeChange:1),fr(u,A,t,r,w,M,i,T,g)}}}}function ur(e,r,n,i,a,o,s){var l=r.context.gl,c=r.transform;l.uniform1i(e.uniforms.u_pitch_with_map,o?1:0),l.uniform1f(e.uniforms.u_is_text,i?1:0),l.uniform1f(e.uniforms.u_pitch,c.pitch/360*2*Math.PI);var u=\"constant\"===s.functionType||\"source\"===s.functionType,f=\"constant\"===s.functionType||\"camera\"===s.functionType;l.uniform1i(e.uniforms.u_is_size_zoom_constant,u?1:0),l.uniform1i(e.uniforms.u_is_size_feature_constant,f?1:0),l.uniform1f(e.uniforms.u_camera_to_center_distance,c.cameraToCenterDistance);var h=t.evaluateSizeForZoom(s,c.zoom,lr.properties[i?\"text-size\":\"icon-size\"]);void 0!==h.uSizeT&&l.uniform1f(e.uniforms.u_size_t,h.uSizeT),void 0!==h.uSize&&l.uniform1f(e.uniforms.u_size,h.uSize),l.uniform1f(e.uniforms.u_aspect_ratio,c.width/c.height),l.uniform1i(e.uniforms.u_rotate_symbol,a?1:0)}function fr(t,e,r,n,i,a,o,s,l){var c=r.context,u=c.gl,f=r.transform;if(s){var h=0!==n.paint.get(o?\"text-halo-width\":\"icon-halo-width\").constantOr(1),p=l?Math.cos(f._pitch)*f.cameraToCenterDistance:1;u.uniform1f(t.uniforms.u_gamma_scale,p),h&&(u.uniform1f(t.uniforms.u_is_halo,1),hr(a,n,c,t)),u.uniform1f(t.uniforms.u_is_halo,0)}hr(a,n,c,t)}function hr(t,e,r,n){n.draw(r,r.gl.TRIANGLES,e.id,t.layoutVertexBuffer,t.indexBuffer,t.segments,t.programConfigurations.get(e.id),t.dynamicLayoutVertexBuffer,t.opacityVertexBuffer)}function pr(t,e,r,n,i,o,s,l,c){var u,f,h,p,d=e.context,g=d.gl,v=i.paint.get(\"line-dasharray\"),m=i.paint.get(\"line-pattern\");if(l||c){var y=1/Te(r,1,e.transform.tileZoom);if(v){u=e.lineAtlas.getDash(v.from,\"round\"===i.layout.get(\"line-cap\")),f=e.lineAtlas.getDash(v.to,\"round\"===i.layout.get(\"line-cap\"));var x=u.width*v.fromScale,b=f.width*v.toScale;g.uniform2f(t.uniforms.u_patternscale_a,y/x,-u.height/2),g.uniform2f(t.uniforms.u_patternscale_b,y/b,-f.height/2),g.uniform1f(t.uniforms.u_sdfgamma,e.lineAtlas.width/(256*Math.min(x,b)*a.devicePixelRatio)/2)}else if(m){if(h=e.imageManager.getPattern(m.from),p=e.imageManager.getPattern(m.to),!h||!p)return;g.uniform2f(t.uniforms.u_pattern_size_a,h.displaySize[0]*m.fromScale/y,h.displaySize[1]),g.uniform2f(t.uniforms.u_pattern_size_b,p.displaySize[0]*m.toScale/y,p.displaySize[1]);var _=e.imageManager.getPixelSize(),w=_.width,k=_.height;g.uniform2fv(t.uniforms.u_texsize,[w,k])}g.uniform2f(t.uniforms.u_gl_units_to_pixels,1/e.transform.pixelsToGLUnits[0],1/e.transform.pixelsToGLUnits[1])}l&&(v?(g.uniform1i(t.uniforms.u_image,0),d.activeTexture.set(g.TEXTURE0),e.lineAtlas.bind(d),g.uniform1f(t.uniforms.u_tex_y_a,u.y),g.uniform1f(t.uniforms.u_tex_y_b,f.y),g.uniform1f(t.uniforms.u_mix,v.t)):m&&(g.uniform1i(t.uniforms.u_image,0),d.activeTexture.set(g.TEXTURE0),e.imageManager.bind(d),g.uniform2fv(t.uniforms.u_pattern_tl_a,h.tl),g.uniform2fv(t.uniforms.u_pattern_br_a,h.br),g.uniform2fv(t.uniforms.u_pattern_tl_b,p.tl),g.uniform2fv(t.uniforms.u_pattern_br_b,p.br),g.uniform1f(t.uniforms.u_fade,m.t))),d.setStencilMode(e.stencilModeForClipping(o));var M=e.translatePosMatrix(o.posMatrix,r,i.paint.get(\"line-translate\"),i.paint.get(\"line-translate-anchor\"));if(g.uniformMatrix4fv(t.uniforms.u_matrix,!1,M),g.uniform1f(t.uniforms.u_ratio,1/Te(r,1,e.transform.zoom)),i.paint.get(\"line-gradient\")){d.activeTexture.set(g.TEXTURE0);var A=i.gradientTexture;if(!i.gradient)return;A||(A=i.gradientTexture=new z(d,i.gradient,g.RGBA)),A.bind(g.LINEAR,g.CLAMP_TO_EDGE),g.uniform1i(t.uniforms.u_image,0)}t.draw(d,g.TRIANGLES,i.id,n.layoutVertexBuffer,n.indexBuffer,n.segments,s)}var dr=function(t,e){if(!t)return!1;var r=e.imageManager.getPattern(t.from),n=e.imageManager.getPattern(t.to);return!r||!n},gr=function(t,e,r){var n=e.context,i=n.gl,a=e.imageManager.getPattern(t.from),o=e.imageManager.getPattern(t.to);i.uniform1i(r.uniforms.u_image,0),i.uniform2fv(r.uniforms.u_pattern_tl_a,a.tl),i.uniform2fv(r.uniforms.u_pattern_br_a,a.br),i.uniform2fv(r.uniforms.u_pattern_tl_b,o.tl),i.uniform2fv(r.uniforms.u_pattern_br_b,o.br);var s=e.imageManager.getPixelSize(),l=s.width,c=s.height;i.uniform2fv(r.uniforms.u_texsize,[l,c]),i.uniform1f(r.uniforms.u_mix,t.t),i.uniform2fv(r.uniforms.u_pattern_size_a,a.displaySize),i.uniform2fv(r.uniforms.u_pattern_size_b,o.displaySize),i.uniform1f(r.uniforms.u_scale_a,t.fromScale),i.uniform1f(r.uniforms.u_scale_b,t.toScale),n.activeTexture.set(i.TEXTURE0),e.imageManager.bind(e.context)},vr=function(t,e,r){var n=e.context.gl;n.uniform1f(r.uniforms.u_tile_units_to_pixels,1/Te(t,1,e.transform.tileZoom));var i=Math.pow(2,t.tileID.overscaledZ),a=t.tileSize*Math.pow(2,e.transform.tileZoom)/i,o=a*(t.tileID.canonical.x+t.tileID.wrap*i),s=a*t.tileID.canonical.y;n.uniform2f(r.uniforms.u_pixel_coord_upper,o>>16,s>>16),n.uniform2f(r.uniforms.u_pixel_coord_lower,65535&o,65535&s)};function mr(t,e,r,n,i){if(!dr(r.paint.get(\"fill-pattern\"),t))for(var a=!0,o=0,s=n;o<s.length;o+=1){var l=s[o],c=e.getTile(l),u=c.getBucket(r);u&&(t.context.setStencilMode(t.stencilModeForClipping(l)),i(t,e,r,c,l,u,a),a=!1)}}function yr(t,e,r,n,i,a,o){var s=t.context.gl,l=a.programConfigurations.get(r.id);br(\"fill\",r.paint.get(\"fill-pattern\"),t,l,r,n,i,o).draw(t.context,s.TRIANGLES,r.id,a.layoutVertexBuffer,a.indexBuffer,a.segments,l)}function xr(t,e,r,n,i,a,o){var s=t.context.gl,l=a.programConfigurations.get(r.id),c=br(\"fillOutline\",r.getPaintProperty(\"fill-outline-color\")?null:r.paint.get(\"fill-pattern\"),t,l,r,n,i,o);s.uniform2f(c.uniforms.u_world,s.drawingBufferWidth,s.drawingBufferHeight),c.draw(t.context,s.LINES,r.id,a.layoutVertexBuffer,a.indexBuffer2,a.segments2,l)}function br(t,e,r,n,i,a,o,s){var l,c=r.context.program.get();return e?(l=r.useProgram(t+\"Pattern\",n),(s||l.program!==c)&&(n.setUniforms(r.context,l,i.paint,{zoom:r.transform.zoom}),gr(e,r,l)),vr(a,r,l)):(l=r.useProgram(t,n),(s||l.program!==c)&&n.setUniforms(r.context,l,i.paint,{zoom:r.transform.zoom})),r.context.gl.uniformMatrix4fv(l.uniforms.u_matrix,!1,r.translatePosMatrix(o.posMatrix,a,i.paint.get(\"fill-translate\"),i.paint.get(\"fill-translate-anchor\"))),l}var _r=t.default$20.mat3,wr=t.default$20.mat4,kr=t.default$20.vec3;function Mr(t,e,r,n,i,a,o){var s=t.context,l=s.gl,c=r.paint.get(\"fill-extrusion-pattern\"),u=t.context.program.get(),f=a.programConfigurations.get(r.id),h=t.useProgram(c?\"fillExtrusionPattern\":\"fillExtrusion\",f);if((o||h.program!==u)&&f.setUniforms(s,h,r.paint,{zoom:t.transform.zoom}),c){if(dr(c,t))return;gr(c,t,h),vr(n,t,h),l.uniform1f(h.uniforms.u_height_factor,-Math.pow(2,i.overscaledZ)/n.tileSize/8)}t.context.gl.uniformMatrix4fv(h.uniforms.u_matrix,!1,t.translatePosMatrix(i.posMatrix,n,r.paint.get(\"fill-extrusion-translate\"),r.paint.get(\"fill-extrusion-translate-anchor\"))),function(t,e){var r=e.context.gl,n=e.style.light,i=n.properties.get(\"position\"),a=[i.x,i.y,i.z],o=_r.create();\"viewport\"===n.properties.get(\"anchor\")&&_r.fromRotation(o,-e.transform.angle),kr.transformMat3(a,a,o);var s=n.properties.get(\"color\");r.uniform3fv(t.uniforms.u_lightpos,a),r.uniform1f(t.uniforms.u_lightintensity,n.properties.get(\"intensity\")),r.uniform3f(t.uniforms.u_lightcolor,s.r,s.g,s.b)}(h,t),h.draw(s,l.TRIANGLES,r.id,a.layoutVertexBuffer,a.indexBuffer,a.segments,f)}function Ar(e,r,n){var i=e.context,a=i.gl,o=r.fbo;if(o){var s=e.useProgram(\"hillshade\"),l=e.transform.calculatePosMatrix(r.tileID.toUnwrapped(),!0);!function(t,e,r){var n=r.paint.get(\"hillshade-illumination-direction\")*(Math.PI/180);\"viewport\"===r.paint.get(\"hillshade-illumination-anchor\")&&(n-=e.transform.angle),e.context.gl.uniform2f(t.uniforms.u_light,r.paint.get(\"hillshade-exaggeration\"),n)}(s,e,n);var c=function(e,r){var n=r.toCoordinate(),i=new t.default$17(n.column,n.row+1,n.zoom);return[e.transform.coordinateLocation(n).lat,e.transform.coordinateLocation(i).lat]}(e,r.tileID);i.activeTexture.set(a.TEXTURE0),a.bindTexture(a.TEXTURE_2D,o.colorAttachment.get()),a.uniformMatrix4fv(s.uniforms.u_matrix,!1,l),a.uniform2fv(s.uniforms.u_latrange,c),a.uniform1i(s.uniforms.u_image,0);var u=n.paint.get(\"hillshade-shadow-color\");a.uniform4f(s.uniforms.u_shadow,u.r,u.g,u.b,u.a);var f=n.paint.get(\"hillshade-highlight-color\");a.uniform4f(s.uniforms.u_highlight,f.r,f.g,f.b,f.a);var h=n.paint.get(\"hillshade-accent-color\");if(a.uniform4f(s.uniforms.u_accent,h.r,h.g,h.b,h.a),r.maskedBoundsBuffer&&r.maskedIndexBuffer&&r.segments)s.draw(i,a.TRIANGLES,n.id,r.maskedBoundsBuffer,r.maskedIndexBuffer,r.segments);else{var p=e.rasterBoundsBuffer;e.rasterBoundsVAO.bind(i,s,p,[]),a.drawArrays(a.TRIANGLE_STRIP,0,p.length)}}}function Tr(e,r,n){var i=e.context,a=i.gl;if(r.dem&&r.dem.level){var o=r.dem.level.dim,s=r.dem.getPixels();if(i.activeTexture.set(a.TEXTURE1),i.pixelStoreUnpackPremultiplyAlpha.set(!1),r.demTexture=r.demTexture||e.getTileTexture(r.tileSize),r.demTexture){var l=r.demTexture;l.update(s,{premultiply:!1}),l.bind(a.NEAREST,a.CLAMP_TO_EDGE)}else r.demTexture=new z(i,s,a.RGBA,{premultiply:!1}),r.demTexture.bind(a.NEAREST,a.CLAMP_TO_EDGE);i.activeTexture.set(a.TEXTURE0);var c=r.fbo;if(!c){var u=new z(i,{width:o,height:o,data:null},a.RGBA);u.bind(a.LINEAR,a.CLAMP_TO_EDGE),(c=r.fbo=i.createFramebuffer(o,o)).colorAttachment.set(u.texture)}i.bindFramebuffer.set(c.framebuffer),i.viewport.set([0,0,o,o]);var f=t.mat4.create();t.mat4.ortho(f,0,t.default$8,-t.default$8,0,0,1),t.mat4.translate(f,f,[0,-t.default$8,0]);var h=e.useProgram(\"hillshadePrepare\");a.uniformMatrix4fv(h.uniforms.u_matrix,!1,f),a.uniform1f(h.uniforms.u_zoom,r.tileID.overscaledZ),a.uniform2fv(h.uniforms.u_dimension,[2*o,2*o]),a.uniform1i(h.uniforms.u_image,1),a.uniform1f(h.uniforms.u_maxzoom,n);var p=e.rasterBoundsBuffer;e.rasterBoundsVAO.bind(i,h,p,[]),a.drawArrays(a.TRIANGLE_STRIP,0,p.length),r.needsHillshadePrepare=!1}}function Sr(e,r,n,i,o){var s=i.paint.get(\"raster-fade-duration\");if(s>0){var l=a.now(),c=(l-e.timeAdded)/s,u=r?(l-r.timeAdded)/s:-1,f=n.getSource(),h=o.coveringZoomLevel({tileSize:f.tileSize,roundZoom:f.roundZoom}),p=!r||Math.abs(r.tileID.overscaledZ-h)>Math.abs(e.tileID.overscaledZ-h),d=p&&e.refreshedUponExpiration?1:t.clamp(p?c:1-u,0,1);return e.refreshedUponExpiration&&c>=1&&(e.refreshedUponExpiration=!1),r?{opacity:1,mix:1-d}:{opacity:d,mix:0}}return{opacity:1,mix:0}}function Er(e,r,n){var i=e.context,o=i.gl;i.lineWidth.set(1*a.devicePixelRatio);var s=n.posMatrix,l=e.useProgram(\"debug\");i.setDepthMode(qt.disabled),i.setStencilMode(Ht.disabled),i.setColorMode(e.colorModeForRenderPass()),o.uniformMatrix4fv(l.uniforms.u_matrix,!1,s),o.uniform4f(l.uniforms.u_color,1,0,0,1),e.debugVAO.bind(i,l,e.debugBuffer,[]),o.drawArrays(o.LINE_STRIP,0,e.debugBuffer.length);for(var c=function(t,e,r,n){n=n||1;var i,a,o,s,l,c,u,f,h=[];for(i=0,a=t.length;i<a;i++)if(l=Cr[t[i]]){for(f=null,o=0,s=l[1].length;o<s;o+=2)-1===l[1][o]&&-1===l[1][o+1]?f=null:(c=e+l[1][o]*n,u=200-l[1][o+1]*n,f&&h.push(f.x,f.y,c,u),f={x:c,y:u});e+=l[0]*n}return h}(n.toString(),50,0,5),u=new t.PosArray,f=0;f<c.length;f+=2)u.emplaceBack(c[f],c[f+1]);var h=i.createVertexBuffer(u,Ke.members);(new Q).bind(i,l,h,[]),o.uniform4f(l.uniforms.u_color,1,1,1,1);for(var p=r.getTile(n).tileSize,d=t.default$8/(Math.pow(2,e.transform.zoom-n.overscaledZ)*p),g=[[-1,-1],[-1,1],[1,-1],[1,1]],v=0;v<g.length;v++){var m=g[v];o.uniformMatrix4fv(l.uniforms.u_matrix,!1,t.mat4.translate([],s,[d*m[0],d*m[1],0])),o.drawArrays(o.LINES,0,h.length)}o.uniform4f(l.uniforms.u_color,0,0,0,1),o.uniformMatrix4fv(l.uniforms.u_matrix,!1,s),o.drawArrays(o.LINES,0,h.length)}var Cr={\" \":[16,[]],\"!\":[10,[5,21,5,7,-1,-1,5,2,4,1,5,0,6,1,5,2]],'\"':[16,[4,21,4,14,-1,-1,12,21,12,14]],\"#\":[21,[11,25,4,-7,-1,-1,17,25,10,-7,-1,-1,4,12,18,12,-1,-1,3,6,17,6]],$:[20,[8,25,8,-4,-1,-1,12,25,12,-4,-1,-1,17,18,15,20,12,21,8,21,5,20,3,18,3,16,4,14,5,13,7,12,13,10,15,9,16,8,17,6,17,3,15,1,12,0,8,0,5,1,3,3]],\"%\":[24,[21,21,3,0,-1,-1,8,21,10,19,10,17,9,15,7,14,5,14,3,16,3,18,4,20,6,21,8,21,10,20,13,19,16,19,19,20,21,21,-1,-1,17,7,15,6,14,4,14,2,16,0,18,0,20,1,21,3,21,5,19,7,17,7]],\"&\":[26,[23,12,23,13,22,14,21,14,20,13,19,11,17,6,15,3,13,1,11,0,7,0,5,1,4,2,3,4,3,6,4,8,5,9,12,13,13,14,14,16,14,18,13,20,11,21,9,20,8,18,8,16,9,13,11,10,16,3,18,1,20,0,22,0,23,1,23,2]],\"'\":[10,[5,19,4,20,5,21,6,20,6,18,5,16,4,15]],\"(\":[14,[11,25,9,23,7,20,5,16,4,11,4,7,5,2,7,-2,9,-5,11,-7]],\")\":[14,[3,25,5,23,7,20,9,16,10,11,10,7,9,2,7,-2,5,-5,3,-7]],\"*\":[16,[8,21,8,9,-1,-1,3,18,13,12,-1,-1,13,18,3,12]],\"+\":[26,[13,18,13,0,-1,-1,4,9,22,9]],\",\":[10,[6,1,5,0,4,1,5,2,6,1,6,-1,5,-3,4,-4]],\"-\":[26,[4,9,22,9]],\".\":[10,[5,2,4,1,5,0,6,1,5,2]],\"/\":[22,[20,25,2,-7]],0:[20,[9,21,6,20,4,17,3,12,3,9,4,4,6,1,9,0,11,0,14,1,16,4,17,9,17,12,16,17,14,20,11,21,9,21]],1:[20,[6,17,8,18,11,21,11,0]],2:[20,[4,16,4,17,5,19,6,20,8,21,12,21,14,20,15,19,16,17,16,15,15,13,13,10,3,0,17,0]],3:[20,[5,21,16,21,10,13,13,13,15,12,16,11,17,8,17,6,16,3,14,1,11,0,8,0,5,1,4,2,3,4]],4:[20,[13,21,3,7,18,7,-1,-1,13,21,13,0]],5:[20,[15,21,5,21,4,12,5,13,8,14,11,14,14,13,16,11,17,8,17,6,16,3,14,1,11,0,8,0,5,1,4,2,3,4]],6:[20,[16,18,15,20,12,21,10,21,7,20,5,17,4,12,4,7,5,3,7,1,10,0,11,0,14,1,16,3,17,6,17,7,16,10,14,12,11,13,10,13,7,12,5,10,4,7]],7:[20,[17,21,7,0,-1,-1,3,21,17,21]],8:[20,[8,21,5,20,4,18,4,16,5,14,7,13,11,12,14,11,16,9,17,7,17,4,16,2,15,1,12,0,8,0,5,1,4,2,3,4,3,7,4,9,6,11,9,12,13,13,15,14,16,16,16,18,15,20,12,21,8,21]],9:[20,[16,14,15,11,13,9,10,8,9,8,6,9,4,11,3,14,3,15,4,18,6,20,9,21,10,21,13,20,15,18,16,14,16,9,15,4,13,1,10,0,8,0,5,1,4,3]],\":\":[10,[5,14,4,13,5,12,6,13,5,14,-1,-1,5,2,4,1,5,0,6,1,5,2]],\";\":[10,[5,14,4,13,5,12,6,13,5,14,-1,-1,6,1,5,0,4,1,5,2,6,1,6,-1,5,-3,4,-4]],\"<\":[24,[20,18,4,9,20,0]],\"=\":[26,[4,12,22,12,-1,-1,4,6,22,6]],\">\":[24,[4,18,20,9,4,0]],\"?\":[18,[3,16,3,17,4,19,5,20,7,21,11,21,13,20,14,19,15,17,15,15,14,13,13,12,9,10,9,7,-1,-1,9,2,8,1,9,0,10,1,9,2]],\"@\":[27,[18,13,17,15,15,16,12,16,10,15,9,14,8,11,8,8,9,6,11,5,14,5,16,6,17,8,-1,-1,12,16,10,14,9,11,9,8,10,6,11,5,-1,-1,18,16,17,8,17,6,19,5,21,5,23,7,24,10,24,12,23,15,22,17,20,19,18,20,15,21,12,21,9,20,7,19,5,17,4,15,3,12,3,9,4,6,5,4,7,2,9,1,12,0,15,0,18,1,20,2,21,3,-1,-1,19,16,18,8,18,6,19,5]],A:[18,[9,21,1,0,-1,-1,9,21,17,0,-1,-1,4,7,14,7]],B:[21,[4,21,4,0,-1,-1,4,21,13,21,16,20,17,19,18,17,18,15,17,13,16,12,13,11,-1,-1,4,11,13,11,16,10,17,9,18,7,18,4,17,2,16,1,13,0,4,0]],C:[21,[18,16,17,18,15,20,13,21,9,21,7,20,5,18,4,16,3,13,3,8,4,5,5,3,7,1,9,0,13,0,15,1,17,3,18,5]],D:[21,[4,21,4,0,-1,-1,4,21,11,21,14,20,16,18,17,16,18,13,18,8,17,5,16,3,14,1,11,0,4,0]],E:[19,[4,21,4,0,-1,-1,4,21,17,21,-1,-1,4,11,12,11,-1,-1,4,0,17,0]],F:[18,[4,21,4,0,-1,-1,4,21,17,21,-1,-1,4,11,12,11]],G:[21,[18,16,17,18,15,20,13,21,9,21,7,20,5,18,4,16,3,13,3,8,4,5,5,3,7,1,9,0,13,0,15,1,17,3,18,5,18,8,-1,-1,13,8,18,8]],H:[22,[4,21,4,0,-1,-1,18,21,18,0,-1,-1,4,11,18,11]],I:[8,[4,21,4,0]],J:[16,[12,21,12,5,11,2,10,1,8,0,6,0,4,1,3,2,2,5,2,7]],K:[21,[4,21,4,0,-1,-1,18,21,4,7,-1,-1,9,12,18,0]],L:[17,[4,21,4,0,-1,-1,4,0,16,0]],M:[24,[4,21,4,0,-1,-1,4,21,12,0,-1,-1,20,21,12,0,-1,-1,20,21,20,0]],N:[22,[4,21,4,0,-1,-1,4,21,18,0,-1,-1,18,21,18,0]],O:[22,[9,21,7,20,5,18,4,16,3,13,3,8,4,5,5,3,7,1,9,0,13,0,15,1,17,3,18,5,19,8,19,13,18,16,17,18,15,20,13,21,9,21]],P:[21,[4,21,4,0,-1,-1,4,21,13,21,16,20,17,19,18,17,18,14,17,12,16,11,13,10,4,10]],Q:[22,[9,21,7,20,5,18,4,16,3,13,3,8,4,5,5,3,7,1,9,0,13,0,15,1,17,3,18,5,19,8,19,13,18,16,17,18,15,20,13,21,9,21,-1,-1,12,4,18,-2]],R:[21,[4,21,4,0,-1,-1,4,21,13,21,16,20,17,19,18,17,18,15,17,13,16,12,13,11,4,11,-1,-1,11,11,18,0]],S:[20,[17,18,15,20,12,21,8,21,5,20,3,18,3,16,4,14,5,13,7,12,13,10,15,9,16,8,17,6,17,3,15,1,12,0,8,0,5,1,3,3]],T:[16,[8,21,8,0,-1,-1,1,21,15,21]],U:[22,[4,21,4,6,5,3,7,1,10,0,12,0,15,1,17,3,18,6,18,21]],V:[18,[1,21,9,0,-1,-1,17,21,9,0]],W:[24,[2,21,7,0,-1,-1,12,21,7,0,-1,-1,12,21,17,0,-1,-1,22,21,17,0]],X:[20,[3,21,17,0,-1,-1,17,21,3,0]],Y:[18,[1,21,9,11,9,0,-1,-1,17,21,9,11]],Z:[20,[17,21,3,0,-1,-1,3,21,17,21,-1,-1,3,0,17,0]],\"[\":[14,[4,25,4,-7,-1,-1,5,25,5,-7,-1,-1,4,25,11,25,-1,-1,4,-7,11,-7]],\"\\\\\":[14,[0,21,14,-3]],\"]\":[14,[9,25,9,-7,-1,-1,10,25,10,-7,-1,-1,3,25,10,25,-1,-1,3,-7,10,-7]],\"^\":[16,[6,15,8,18,10,15,-1,-1,3,12,8,17,13,12,-1,-1,8,17,8,0]],_:[16,[0,-2,16,-2]],\"`\":[10,[6,21,5,20,4,18,4,16,5,15,6,16,5,17]],a:[19,[15,14,15,0,-1,-1,15,11,13,13,11,14,8,14,6,13,4,11,3,8,3,6,4,3,6,1,8,0,11,0,13,1,15,3]],b:[19,[4,21,4,0,-1,-1,4,11,6,13,8,14,11,14,13,13,15,11,16,8,16,6,15,3,13,1,11,0,8,0,6,1,4,3]],c:[18,[15,11,13,13,11,14,8,14,6,13,4,11,3,8,3,6,4,3,6,1,8,0,11,0,13,1,15,3]],d:[19,[15,21,15,0,-1,-1,15,11,13,13,11,14,8,14,6,13,4,11,3,8,3,6,4,3,6,1,8,0,11,0,13,1,15,3]],e:[18,[3,8,15,8,15,10,14,12,13,13,11,14,8,14,6,13,4,11,3,8,3,6,4,3,6,1,8,0,11,0,13,1,15,3]],f:[12,[10,21,8,21,6,20,5,17,5,0,-1,-1,2,14,9,14]],g:[19,[15,14,15,-2,14,-5,13,-6,11,-7,8,-7,6,-6,-1,-1,15,11,13,13,11,14,8,14,6,13,4,11,3,8,3,6,4,3,6,1,8,0,11,0,13,1,15,3]],h:[19,[4,21,4,0,-1,-1,4,10,7,13,9,14,12,14,14,13,15,10,15,0]],i:[8,[3,21,4,20,5,21,4,22,3,21,-1,-1,4,14,4,0]],j:[10,[5,21,6,20,7,21,6,22,5,21,-1,-1,6,14,6,-3,5,-6,3,-7,1,-7]],k:[17,[4,21,4,0,-1,-1,14,14,4,4,-1,-1,8,8,15,0]],l:[8,[4,21,4,0]],m:[30,[4,14,4,0,-1,-1,4,10,7,13,9,14,12,14,14,13,15,10,15,0,-1,-1,15,10,18,13,20,14,23,14,25,13,26,10,26,0]],n:[19,[4,14,4,0,-1,-1,4,10,7,13,9,14,12,14,14,13,15,10,15,0]],o:[19,[8,14,6,13,4,11,3,8,3,6,4,3,6,1,8,0,11,0,13,1,15,3,16,6,16,8,15,11,13,13,11,14,8,14]],p:[19,[4,14,4,-7,-1,-1,4,11,6,13,8,14,11,14,13,13,15,11,16,8,16,6,15,3,13,1,11,0,8,0,6,1,4,3]],q:[19,[15,14,15,-7,-1,-1,15,11,13,13,11,14,8,14,6,13,4,11,3,8,3,6,4,3,6,1,8,0,11,0,13,1,15,3]],r:[13,[4,14,4,0,-1,-1,4,8,5,11,7,13,9,14,12,14]],s:[17,[14,11,13,13,10,14,7,14,4,13,3,11,4,9,6,8,11,7,13,6,14,4,14,3,13,1,10,0,7,0,4,1,3,3]],t:[12,[5,21,5,4,6,1,8,0,10,0,-1,-1,2,14,9,14]],u:[19,[4,14,4,4,5,1,7,0,10,0,12,1,15,4,-1,-1,15,14,15,0]],v:[16,[2,14,8,0,-1,-1,14,14,8,0]],w:[22,[3,14,7,0,-1,-1,11,14,7,0,-1,-1,11,14,15,0,-1,-1,19,14,15,0]],x:[17,[3,14,14,0,-1,-1,14,14,3,0]],y:[16,[2,14,8,0,-1,-1,14,14,8,0,6,-4,4,-6,2,-7,1,-7]],z:[17,[14,14,3,0,-1,-1,3,14,14,14,-1,-1,3,0,14,0]],\"{\":[14,[9,25,7,24,6,23,5,21,5,19,6,17,7,16,8,14,8,12,6,10,-1,-1,7,24,6,22,6,20,7,18,8,17,9,15,9,13,8,11,4,9,8,7,9,5,9,3,8,1,7,0,6,-2,6,-4,7,-6,-1,-1,6,8,8,6,8,4,7,2,6,1,5,-1,5,-3,6,-5,7,-6,9,-7]],\"|\":[8,[4,25,4,-7]],\"}\":[14,[5,25,7,24,8,23,9,21,9,19,8,17,7,16,6,14,6,12,8,10,-1,-1,7,24,8,22,8,20,7,18,6,17,5,15,5,13,6,11,10,9,6,7,5,5,5,3,6,1,7,0,8,-2,8,-4,7,-6,-1,-1,8,8,6,6,6,4,7,2,8,1,9,-1,9,-3,8,-5,7,-6,5,-7]],\"~\":[24,[3,6,3,8,4,11,6,12,8,12,10,11,14,8,16,7,18,7,20,8,21,10,-1,-1,3,8,4,10,6,11,8,11,10,10,14,7,16,6,18,6,20,7,21,10,21,12]]},Lr={symbol:function(t,e,r,n){if(\"translucent\"===t.renderPass){var i=t.context;i.setStencilMode(Ht.disabled),i.setColorMode(t.colorModeForRenderPass()),0!==r.paint.get(\"icon-opacity\").constantOr(1)&&cr(t,e,r,n,!1,r.paint.get(\"icon-translate\"),r.paint.get(\"icon-translate-anchor\"),r.layout.get(\"icon-rotation-alignment\"),r.layout.get(\"icon-pitch-alignment\"),r.layout.get(\"icon-keep-upright\")),0!==r.paint.get(\"text-opacity\").constantOr(1)&&cr(t,e,r,n,!0,r.paint.get(\"text-translate\"),r.paint.get(\"text-translate-anchor\"),r.layout.get(\"text-rotation-alignment\"),r.layout.get(\"text-pitch-alignment\"),r.layout.get(\"text-keep-upright\")),e.map.showCollisionBoxes&&function(t,e,r,n){or(t,e,r,n,!1),or(t,e,r,n,!0)}(t,e,r,n)}},circle:function(t,e,r,n){if(\"translucent\"===t.renderPass){var i=r.paint.get(\"circle-opacity\"),a=r.paint.get(\"circle-stroke-width\"),o=r.paint.get(\"circle-stroke-opacity\");if(0!==i.constantOr(1)||0!==a.constantOr(1)&&0!==o.constantOr(1)){var s=t.context,l=s.gl;s.setDepthMode(t.depthModeForSublayer(0,qt.ReadOnly)),s.setStencilMode(Ht.disabled),s.setColorMode(t.colorModeForRenderPass());for(var c=!0,u=0;u<n.length;u++){var f=n[u],h=e.getTile(f),p=h.getBucket(r);if(p){var d=t.context.program.get(),g=p.programConfigurations.get(r.id),v=t.useProgram(\"circle\",g);if((c||v.program!==d)&&(g.setUniforms(s,v,r.paint,{zoom:t.transform.zoom}),c=!1),l.uniform1f(v.uniforms.u_camera_to_center_distance,t.transform.cameraToCenterDistance),l.uniform1i(v.uniforms.u_scale_with_map,\"map\"===r.paint.get(\"circle-pitch-scale\")?1:0),\"map\"===r.paint.get(\"circle-pitch-alignment\")){l.uniform1i(v.uniforms.u_pitch_with_map,1);var m=Te(h,1,t.transform.zoom);l.uniform2f(v.uniforms.u_extrude_scale,m,m)}else l.uniform1i(v.uniforms.u_pitch_with_map,0),l.uniform2fv(v.uniforms.u_extrude_scale,t.transform.pixelsToGLUnits);l.uniformMatrix4fv(v.uniforms.u_matrix,!1,t.translatePosMatrix(f.posMatrix,h,r.paint.get(\"circle-translate\"),r.paint.get(\"circle-translate-anchor\"))),v.draw(s,l.TRIANGLES,r.id,p.layoutVertexBuffer,p.indexBuffer,p.segments,g)}}}}},heatmap:function(e,r,n,i){if(0!==n.paint.get(\"heatmap-opacity\"))if(\"offscreen\"===e.renderPass){var a=e.context,o=a.gl;a.setDepthMode(e.depthModeForSublayer(0,qt.ReadOnly)),a.setStencilMode(Ht.disabled),function(t,e,r){var n=t.gl;t.activeTexture.set(n.TEXTURE1),t.viewport.set([0,0,e.width/4,e.height/4]);var i=r.heatmapFbo;if(i)n.bindTexture(n.TEXTURE_2D,i.colorAttachment.get()),t.bindFramebuffer.set(i.framebuffer);else{var a=n.createTexture();n.bindTexture(n.TEXTURE_2D,a),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,n.CLAMP_TO_EDGE),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,n.CLAMP_TO_EDGE),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,n.LINEAR),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,n.LINEAR),i=r.heatmapFbo=t.createFramebuffer(e.width/4,e.height/4),function t(e,r,n,i){var a=e.gl;a.texImage2D(a.TEXTURE_2D,0,a.RGBA,r.width/4,r.height/4,0,a.RGBA,e.extTextureHalfFloat?e.extTextureHalfFloat.HALF_FLOAT_OES:a.UNSIGNED_BYTE,null),i.colorAttachment.set(n),e.extTextureHalfFloat&&a.checkFramebufferStatus(a.FRAMEBUFFER)!==a.FRAMEBUFFER_COMPLETE&&(e.extTextureHalfFloat=null,i.colorAttachment.setDirty(),t(e,r,n,i))}(t,e,a,i)}}(a,e,n),a.clear({color:t.default$6.transparent}),a.setColorMode(new Gt([o.ONE,o.ONE],t.default$6.transparent,[!0,!0,!0,!0]));for(var s=!0,l=0;l<i.length;l++){var c=i[l];if(!r.hasRenderableParent(c)){var u=r.getTile(c),f=u.getBucket(n);if(f){var h=e.context.program.get(),p=f.programConfigurations.get(n.id),d=e.useProgram(\"heatmap\",p),g=e.transform.zoom;(s||d.program!==h)&&(p.setUniforms(e.context,d,n.paint,{zoom:g}),s=!1),o.uniform1f(d.uniforms.u_extrude_scale,Te(u,1,g)),o.uniform1f(d.uniforms.u_intensity,n.paint.get(\"heatmap-intensity\")),o.uniformMatrix4fv(d.uniforms.u_matrix,!1,c.posMatrix),d.draw(a,o.TRIANGLES,n.id,f.layoutVertexBuffer,f.indexBuffer,f.segments,p)}}}a.viewport.set([0,0,e.width,e.height])}else\"translucent\"===e.renderPass&&(e.context.setColorMode(e.colorModeForRenderPass()),function(e,r){var n=e.context,i=n.gl,a=r.heatmapFbo;if(a){n.activeTexture.set(i.TEXTURE0),i.bindTexture(i.TEXTURE_2D,a.colorAttachment.get()),n.activeTexture.set(i.TEXTURE1);var o=r.colorRampTexture;o||(o=r.colorRampTexture=new z(n,r.colorRamp,i.RGBA)),o.bind(i.LINEAR,i.CLAMP_TO_EDGE),n.setDepthMode(qt.disabled);var s=e.useProgram(\"heatmapTexture\"),l=r.paint.get(\"heatmap-opacity\");i.uniform1f(s.uniforms.u_opacity,l),i.uniform1i(s.uniforms.u_image,0),i.uniform1i(s.uniforms.u_color_ramp,1);var c=t.mat4.create();t.mat4.ortho(c,0,e.width,e.height,0,0,1),i.uniformMatrix4fv(s.uniforms.u_matrix,!1,c),i.uniform2f(s.uniforms.u_world,i.drawingBufferWidth,i.drawingBufferHeight),e.viewportVAO.bind(e.context,s,e.viewportBuffer,[]),i.drawArrays(i.TRIANGLE_STRIP,0,4)}}(e,n))},line:function(t,e,r,n){if(\"translucent\"===t.renderPass&&0!==r.paint.get(\"line-opacity\").constantOr(1)){var i=t.context;i.setDepthMode(t.depthModeForSublayer(0,qt.ReadOnly)),i.setColorMode(t.colorModeForRenderPass());for(var a,o=r.paint.get(\"line-dasharray\")?\"lineSDF\":r.paint.get(\"line-pattern\")?\"linePattern\":r.paint.get(\"line-gradient\")?\"lineGradient\":\"line\",s=!0,l=0,c=n;l<c.length;l+=1){var u=c[l],f=e.getTile(u),h=f.getBucket(r);if(h){var p=h.programConfigurations.get(r.id),d=t.context.program.get(),g=t.useProgram(o,p),v=s||g.program!==d,m=a!==f.tileID.overscaledZ;v&&p.setUniforms(t.context,g,r.paint,{zoom:t.transform.zoom}),pr(g,t,f,h,r,u,p,v,m),a=f.tileID.overscaledZ,s=!1}}}},fill:function(e,r,n,i){var a=n.paint.get(\"fill-color\"),o=n.paint.get(\"fill-opacity\");if(0!==o.constantOr(1)){var s=e.context;s.setColorMode(e.colorModeForRenderPass());var l=n.paint.get(\"fill-pattern\")||1!==a.constantOr(t.default$6.transparent).a||1!==o.constantOr(0)?\"translucent\":\"opaque\";e.renderPass===l&&(s.setDepthMode(e.depthModeForSublayer(1,\"opaque\"===e.renderPass?qt.ReadWrite:qt.ReadOnly)),mr(e,r,n,i,yr)),\"translucent\"===e.renderPass&&n.paint.get(\"fill-antialias\")&&(s.lineWidth.set(2),s.setDepthMode(e.depthModeForSublayer(n.getPaintProperty(\"fill-outline-color\")?2:0,qt.ReadOnly)),mr(e,r,n,i,xr))}},\"fill-extrusion\":function(e,r,n,i){if(0!==n.paint.get(\"fill-extrusion-opacity\"))if(\"offscreen\"===e.renderPass){!function(e,r){var n=e.context,i=n.gl,a=r.viewportFrame;if(e.depthRboNeedsClear&&e.setupOffscreenDepthRenderbuffer(),!a){var o=new z(n,{width:e.width,height:e.height,data:null},i.RGBA);o.bind(i.LINEAR,i.CLAMP_TO_EDGE),(a=r.viewportFrame=n.createFramebuffer(e.width,e.height)).colorAttachment.set(o.texture)}n.bindFramebuffer.set(a.framebuffer),a.depthAttachment.set(e.depthRbo),e.depthRboNeedsClear&&(n.clear({depth:1}),e.depthRboNeedsClear=!1),n.clear({color:t.default$6.transparent}),n.setStencilMode(Ht.disabled),n.setDepthMode(new qt(i.LEQUAL,qt.ReadWrite,[0,1])),n.setColorMode(e.colorModeForRenderPass())}(e,n);for(var a=!0,o=0,s=i;o<s.length;o+=1){var l=s[o],c=r.getTile(l),u=c.getBucket(n);u&&(Mr(e,0,n,c,l,u,a),a=!1)}}else\"translucent\"===e.renderPass&&function(t,e){var r=e.viewportFrame;if(r){var n=t.context,i=n.gl,a=t.useProgram(\"extrusionTexture\");n.setStencilMode(Ht.disabled),n.setDepthMode(qt.disabled),n.setColorMode(t.colorModeForRenderPass()),n.activeTexture.set(i.TEXTURE0),i.bindTexture(i.TEXTURE_2D,r.colorAttachment.get()),i.uniform1f(a.uniforms.u_opacity,e.paint.get(\"fill-extrusion-opacity\")),i.uniform1i(a.uniforms.u_image,0);var o=wr.create();wr.ortho(o,0,t.width,t.height,0,0,1),i.uniformMatrix4fv(a.uniforms.u_matrix,!1,o),i.uniform2f(a.uniforms.u_world,i.drawingBufferWidth,i.drawingBufferHeight),t.viewportVAO.bind(n,a,t.viewportBuffer,[]),i.drawArrays(i.TRIANGLE_STRIP,0,4)}}(e,n)},hillshade:function(t,e,r,n){if(\"offscreen\"===t.renderPass||\"translucent\"===t.renderPass){var i=t.context,a=e.getSource().maxzoom;i.setDepthMode(t.depthModeForSublayer(0,qt.ReadOnly)),i.setStencilMode(Ht.disabled),i.setColorMode(t.colorModeForRenderPass());for(var o=0,s=n;o<s.length;o+=1){var l=s[o],c=e.getTile(l);c.needsHillshadePrepare&&\"offscreen\"===t.renderPass?Tr(t,c,a):\"translucent\"===t.renderPass&&Ar(t,c,r)}i.viewport.set([0,0,t.width,t.height])}},raster:function(t,e,r,n){if(\"translucent\"===t.renderPass&&0!==r.paint.get(\"raster-opacity\")){var i,a,o=t.context,s=o.gl,l=e.getSource(),c=t.useProgram(\"raster\");o.setStencilMode(Ht.disabled),o.setColorMode(t.colorModeForRenderPass()),s.uniform1f(c.uniforms.u_brightness_low,r.paint.get(\"raster-brightness-min\")),s.uniform1f(c.uniforms.u_brightness_high,r.paint.get(\"raster-brightness-max\")),s.uniform1f(c.uniforms.u_saturation_factor,(i=r.paint.get(\"raster-saturation\"))>0?1-1/(1.001-i):-i),s.uniform1f(c.uniforms.u_contrast_factor,(a=r.paint.get(\"raster-contrast\"))>0?1/(1-a):1+a),s.uniform3fv(c.uniforms.u_spin_weights,function(t){t*=Math.PI/180;var e=Math.sin(t),r=Math.cos(t);return[(2*r+1)/3,(-Math.sqrt(3)*e-r+1)/3,(Math.sqrt(3)*e-r+1)/3]}(r.paint.get(\"raster-hue-rotate\"))),s.uniform1f(c.uniforms.u_buffer_scale,1),s.uniform1i(c.uniforms.u_image0,0),s.uniform1i(c.uniforms.u_image1,1);for(var u=n.length&&n[0].overscaledZ,f=0,h=n;f<h.length;f+=1){var p=h[f];o.setDepthMode(t.depthModeForSublayer(p.overscaledZ-u,1===r.paint.get(\"raster-opacity\")?qt.ReadWrite:qt.ReadOnly,s.LESS));var d=e.getTile(p),g=t.transform.calculatePosMatrix(p.toUnwrapped(),!0);d.registerFadeDuration(r.paint.get(\"raster-fade-duration\")),s.uniformMatrix4fv(c.uniforms.u_matrix,!1,g);var v=e.findLoadedParent(p,0,{}),m=Sr(d,v,e,r,t.transform),y=void 0,x=void 0;if(o.activeTexture.set(s.TEXTURE0),d.texture.bind(s.LINEAR,s.CLAMP_TO_EDGE,s.LINEAR_MIPMAP_NEAREST),o.activeTexture.set(s.TEXTURE1),v?(v.texture.bind(s.LINEAR,s.CLAMP_TO_EDGE,s.LINEAR_MIPMAP_NEAREST),y=Math.pow(2,v.tileID.overscaledZ-d.tileID.overscaledZ),x=[d.tileID.canonical.x*y%1,d.tileID.canonical.y*y%1]):d.texture.bind(s.LINEAR,s.CLAMP_TO_EDGE,s.LINEAR_MIPMAP_NEAREST),s.uniform2fv(c.uniforms.u_tl_parent,x||[0,0]),s.uniform1f(c.uniforms.u_scale_parent,y||1),s.uniform1f(c.uniforms.u_fade_t,m.mix),s.uniform1f(c.uniforms.u_opacity,m.opacity*r.paint.get(\"raster-opacity\")),l instanceof tt){var b=l.boundsBuffer;l.boundsVAO.bind(o,c,b,[]),s.drawArrays(s.TRIANGLE_STRIP,0,b.length)}else if(d.maskedBoundsBuffer&&d.maskedIndexBuffer&&d.segments)c.draw(o,s.TRIANGLES,r.id,d.maskedBoundsBuffer,d.maskedIndexBuffer,d.segments);else{var _=t.rasterBoundsBuffer;t.rasterBoundsVAO.bind(o,c,_,[]),s.drawArrays(s.TRIANGLE_STRIP,0,_.length)}}}},background:function(t,e,r){var n=r.paint.get(\"background-color\"),i=r.paint.get(\"background-opacity\");if(0!==i){var a=t.context,o=a.gl,s=t.transform,l=s.tileSize,c=r.paint.get(\"background-pattern\"),u=c||1!==n.a||1!==i?\"translucent\":\"opaque\";if(t.renderPass===u){var f;if(a.setStencilMode(Ht.disabled),a.setDepthMode(t.depthModeForSublayer(0,\"opaque\"===u?qt.ReadWrite:qt.ReadOnly)),a.setColorMode(t.colorModeForRenderPass()),c){if(dr(c,t))return;f=t.useProgram(\"backgroundPattern\"),gr(c,t,f),t.tileExtentPatternVAO.bind(a,f,t.tileExtentBuffer,[])}else f=t.useProgram(\"background\"),o.uniform4fv(f.uniforms.u_color,[n.r,n.g,n.b,n.a]),t.tileExtentVAO.bind(a,f,t.tileExtentBuffer,[]);o.uniform1f(f.uniforms.u_opacity,i);for(var h=0,p=s.coveringTiles({tileSize:l});h<p.length;h+=1){var d=p[h];c&&vr({tileID:d,tileSize:l},t,f),o.uniformMatrix4fv(f.uniforms.u_matrix,!1,t.transform.calculatePosMatrix(d.toUnwrapped())),o.drawArrays(o.TRIANGLE_STRIP,0,t.tileExtentBuffer.length)}}}},debug:function(t,e,r){for(var n=0;n<r.length;n++)Er(t,e,r[n])}},zr=function(e,r){this.context=new Wt(e),this.transform=r,this._tileTextures={},this.setup(),this.numSublayers=Yt.maxUnderzooming+Yt.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.depthRboNeedsClear=!0,this.emptyProgramConfiguration=new t.default$24,this.crossTileSymbolIndex=new Ye};function Or(t,e){if(t.row>e.row){var r=t;t=e,e=r}return{x0:t.column,y0:t.row,x1:e.column,y1:e.row,dx:e.column-t.column,dy:e.row-t.row}}function Ir(t,e,r,n,i){var a=Math.max(r,Math.floor(e.y0)),o=Math.min(n,Math.ceil(e.y1));if(t.x0===e.x0&&t.y0===e.y0?t.x0+e.dy/t.dy*t.dx<e.x1:t.x1-e.dy/t.dy*t.dx<e.x0){var s=t;t=e,e=s}for(var l=t.dx/t.dy,c=e.dx/e.dy,u=t.dx>0,f=e.dx<0,h=a;h<o;h++){var p=l*Math.max(0,Math.min(t.dy,h+u-t.y0))+t.x0,d=c*Math.max(0,Math.min(e.dy,h+f-e.y0))+e.x0;i(Math.floor(d),Math.ceil(p),h)}}function Pr(t,e,r,n,i,a){var o,s=Or(t,e),l=Or(e,r),c=Or(r,t);s.dy>l.dy&&(o=s,s=l,l=o),s.dy>c.dy&&(o=s,s=c,c=o),l.dy>c.dy&&(o=l,l=c,c=o),s.dy&&Ir(c,s,n,i,a),l.dy&&Ir(c,l,n,i,a)}zr.prototype.resize=function(t,e){var r=this.context.gl;if(this.width=t*a.devicePixelRatio,this.height=e*a.devicePixelRatio,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(var n=0,i=this.style._order;n<i.length;n+=1){var o=i[n];this.style._layers[o].resize()}this.depthRbo&&(r.deleteRenderbuffer(this.depthRbo),this.depthRbo=null)},zr.prototype.setup=function(){var e=this.context,r=new t.PosArray;r.emplaceBack(0,0),r.emplaceBack(t.default$8,0),r.emplaceBack(0,t.default$8),r.emplaceBack(t.default$8,t.default$8),this.tileExtentBuffer=e.createVertexBuffer(r,Ke.members),this.tileExtentVAO=new Q,this.tileExtentPatternVAO=new Q;var n=new t.PosArray;n.emplaceBack(0,0),n.emplaceBack(t.default$8,0),n.emplaceBack(t.default$8,t.default$8),n.emplaceBack(0,t.default$8),n.emplaceBack(0,0),this.debugBuffer=e.createVertexBuffer(n,Ke.members),this.debugVAO=new Q;var i=new t.RasterBoundsArray;i.emplaceBack(0,0,0,0),i.emplaceBack(t.default$8,0,t.default$8,0),i.emplaceBack(0,t.default$8,0,t.default$8),i.emplaceBack(t.default$8,t.default$8,t.default$8,t.default$8),this.rasterBoundsBuffer=e.createVertexBuffer(i,K.members),this.rasterBoundsVAO=new Q;var a=new t.PosArray;a.emplaceBack(0,0),a.emplaceBack(1,0),a.emplaceBack(0,1),a.emplaceBack(1,1),this.viewportBuffer=e.createVertexBuffer(a,Ke.members),this.viewportVAO=new Q},zr.prototype.clearStencil=function(){var e=this.context,r=e.gl;e.setColorMode(Gt.disabled),e.setDepthMode(qt.disabled),e.setStencilMode(new Ht({func:r.ALWAYS,mask:0},0,255,r.ZERO,r.ZERO,r.ZERO));var n=t.mat4.create();t.mat4.ortho(n,0,this.width,this.height,0,0,1),t.mat4.scale(n,n,[r.drawingBufferWidth,r.drawingBufferHeight,0]);var i=this.useProgram(\"clippingMask\");r.uniformMatrix4fv(i.uniforms.u_matrix,!1,n),this.viewportVAO.bind(e,i,this.viewportBuffer,[]),r.drawArrays(r.TRIANGLE_STRIP,0,4)},zr.prototype._renderTileClippingMasks=function(t){var e=this.context,r=e.gl;e.setColorMode(Gt.disabled),e.setDepthMode(qt.disabled);var n=1;this._tileClippingMaskIDs={};for(var i=0,a=t;i<a.length;i+=1){var o=a[i],s=this._tileClippingMaskIDs[o.key]=n++;e.setStencilMode(new Ht({func:r.ALWAYS,mask:0},s,255,r.KEEP,r.KEEP,r.REPLACE));var l=this.useProgram(\"clippingMask\");r.uniformMatrix4fv(l.uniforms.u_matrix,!1,o.posMatrix),this.tileExtentVAO.bind(this.context,l,this.tileExtentBuffer,[]),r.drawArrays(r.TRIANGLE_STRIP,0,this.tileExtentBuffer.length)}},zr.prototype.stencilModeForClipping=function(t){var e=this.context.gl;return new Ht({func:e.EQUAL,mask:255},this._tileClippingMaskIDs[t.key],0,e.KEEP,e.KEEP,e.REPLACE)},zr.prototype.colorModeForRenderPass=function(){var e=this.context.gl;return this._showOverdrawInspector?new Gt([e.CONSTANT_COLOR,e.ONE],new t.default$6(1/8,1/8,1/8,0),[!0,!0,!0,!0]):\"opaque\"===this.renderPass?Gt.unblended:Gt.alphaBlended},zr.prototype.depthModeForSublayer=function(t,e,r){var n=1-((1+this.currentLayer)*this.numSublayers+t)*this.depthEpsilon,i=n-1+this.depthRange;return new qt(r||this.context.gl.LEQUAL,e,[i,n])},zr.prototype.render=function(e,r){var n=this;for(var i in this.style=e,this.options=r,this.lineAtlas=e.lineAtlas,this.imageManager=e.imageManager,this.glyphManager=e.glyphManager,this.symbolFadeChange=e.placement.symbolFadeChange(a.now()),e.sourceCaches){var o=n.style.sourceCaches[i];o.used&&o.prepare(n.context)}var s=this.style._order,l=t.filterObject(this.style.sourceCaches,function(t){return\"raster\"===t.getSource().type||\"raster-dem\"===t.getSource().type}),c=function(e){var r=l[e];!function(e,r){for(var n=e.sort(function(t,e){return t.tileID.isLessThan(e.tileID)?-1:e.tileID.isLessThan(t.tileID)?1:0}),i=0;i<n.length;i++){var a={},o=n[i],s=n.slice(i+1);ar(o.tileID.wrapped(),o.tileID,s,new t.OverscaledTileID(0,o.tileID.wrap+1,0,0,0),a),o.setMask(a,r)}}(r.getVisibleCoordinates().map(function(t){return r.getTile(t)}),n.context)};for(var u in l)c(u);this.renderPass=\"offscreen\";var f,h=[];this.depthRboNeedsClear=!0;for(var p=0;p<s.length;p++){var d=n.style._layers[s[p]];d.hasOffscreenPass()&&!d.isHidden(n.transform.zoom)&&(d.source!==(f&&f.id)&&(h=[],(f=n.style.sourceCaches[d.source])&&(h=f.getVisibleCoordinates()).reverse()),h.length&&n.renderLayer(n,f,d,h))}this.context.bindFramebuffer.set(null),this.context.clear({color:r.showOverdrawInspector?t.default$6.black:t.default$6.transparent,depth:1}),this._showOverdrawInspector=r.showOverdrawInspector,this.depthRange=(e._order.length+2)*this.numSublayers*this.depthEpsilon,this.renderPass=\"opaque\";var g,v=[];for(this.currentLayer=s.length-1,this.currentLayer;this.currentLayer>=0;this.currentLayer--){var m=n.style._layers[s[n.currentLayer]];m.source!==(g&&g.id)&&(v=[],(g=n.style.sourceCaches[m.source])&&(n.clearStencil(),v=g.getVisibleCoordinates(),g.getSource().isTileClipped&&n._renderTileClippingMasks(v))),n.renderLayer(n,g,m,v)}this.renderPass=\"translucent\";var y,x=[];for(this.currentLayer=0,this.currentLayer;this.currentLayer<s.length;this.currentLayer++){var b=n.style._layers[s[n.currentLayer]];b.source!==(y&&y.id)&&(x=[],(y=n.style.sourceCaches[b.source])&&(n.clearStencil(),x=y.getVisibleCoordinates(),y.getSource().isTileClipped&&n._renderTileClippingMasks(x)),x.reverse()),n.renderLayer(n,y,b,x)}if(this.options.showTileBoundaries){var _=this.style.sourceCaches[Object.keys(this.style.sourceCaches)[0]];_&&Lr.debug(this,_,_.getVisibleCoordinates())}},zr.prototype.setupOffscreenDepthRenderbuffer=function(){var t=this.context;this.depthRbo||(this.depthRbo=t.createRenderbuffer(t.gl.DEPTH_COMPONENT16,this.width,this.height))},zr.prototype.renderLayer=function(t,e,r,n){r.isHidden(this.transform.zoom)||(\"background\"===r.type||n.length)&&(this.id=r.id,Lr[r.type](t,e,r,n))},zr.prototype.translatePosMatrix=function(e,r,n,i,a){if(!n[0]&&!n[1])return e;var o=a?\"map\"===i?this.transform.angle:0:\"viewport\"===i?-this.transform.angle:0;if(o){var s=Math.sin(o),l=Math.cos(o);n=[n[0]*l-n[1]*s,n[0]*s+n[1]*l]}var c=[a?n[0]:Te(r,n[0],this.transform.zoom),a?n[1]:Te(r,n[1],this.transform.zoom),0],u=new Float32Array(16);return t.mat4.translate(u,e,c),u},zr.prototype.saveTileTexture=function(t){var e=this._tileTextures[t.size[0]];e?e.push(t):this._tileTextures[t.size[0]]=[t]},zr.prototype.getTileTexture=function(t){var e=this._tileTextures[t];return e&&e.length>0?e.pop():null},zr.prototype._createProgramCached=function(t,e){this.cache=this.cache||{};var r=\"\"+t+(e.cacheKey||\"\")+(this._showOverdrawInspector?\"/overdraw\":\"\");return this.cache[r]||(this.cache[r]=new ir(this.context,nr[t],e,this._showOverdrawInspector)),this.cache[r]},zr.prototype.useProgram=function(t,e){var r=this._createProgramCached(t,e||this.emptyProgramConfiguration);return this.context.program.set(r.program),r};var Dr=t.default$20.vec4,Rr=t.default$20.mat4,Br=t.default$20.mat2,Fr=function(t,e,r){this.tileSize=512,this._renderWorldCopies=void 0===r||r,this._minZoom=t||0,this._maxZoom=e||22,this.latRange=[-85.05113,85.05113],this.width=0,this.height=0,this._center=new G(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._posMatrixCache={},this._alignedPosMatrixCache={}},Nr={minZoom:{configurable:!0},maxZoom:{configurable:!0},renderWorldCopies:{configurable:!0},worldSize:{configurable:!0},centerPoint:{configurable:!0},size:{configurable:!0},bearing:{configurable:!0},pitch:{configurable:!0},fov:{configurable:!0},zoom:{configurable:!0},center:{configurable:!0},unmodified:{configurable:!0},x:{configurable:!0},y:{configurable:!0},point:{configurable:!0}};Fr.prototype.clone=function(){var t=new Fr(this._minZoom,this._maxZoom,this._renderWorldCopies);return t.tileSize=this.tileSize,t.latRange=this.latRange,t.width=this.width,t.height=this.height,t._center=this._center,t.zoom=this.zoom,t.angle=this.angle,t._fov=this._fov,t._pitch=this._pitch,t._unmodified=this._unmodified,t._calcMatrices(),t},Nr.minZoom.get=function(){return this._minZoom},Nr.minZoom.set=function(t){this._minZoom!==t&&(this._minZoom=t,this.zoom=Math.max(this.zoom,t))},Nr.maxZoom.get=function(){return this._maxZoom},Nr.maxZoom.set=function(t){this._maxZoom!==t&&(this._maxZoom=t,this.zoom=Math.min(this.zoom,t))},Nr.renderWorldCopies.get=function(){return this._renderWorldCopies},Nr.renderWorldCopies.set=function(t){void 0===t?t=!0:null===t&&(t=!1),this._renderWorldCopies=t},Nr.worldSize.get=function(){return this.tileSize*this.scale},Nr.centerPoint.get=function(){return this.size._div(2)},Nr.size.get=function(){return new t.default$1(this.width,this.height)},Nr.bearing.get=function(){return-this.angle/Math.PI*180},Nr.bearing.set=function(e){var r=-t.wrap(e,-180,180)*Math.PI/180;this.angle!==r&&(this._unmodified=!1,this.angle=r,this._calcMatrices(),this.rotationMatrix=Br.create(),Br.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},Nr.pitch.get=function(){return this._pitch/Math.PI*180},Nr.pitch.set=function(e){var r=t.clamp(e,0,60)/180*Math.PI;this._pitch!==r&&(this._unmodified=!1,this._pitch=r,this._calcMatrices())},Nr.fov.get=function(){return this._fov/Math.PI*180},Nr.fov.set=function(t){t=Math.max(.01,Math.min(60,t)),this._fov!==t&&(this._unmodified=!1,this._fov=t/180*Math.PI,this._calcMatrices())},Nr.zoom.get=function(){return this._zoom},Nr.zoom.set=function(t){var e=Math.min(Math.max(t,this.minZoom),this.maxZoom);this._zoom!==e&&(this._unmodified=!1,this._zoom=e,this.scale=this.zoomScale(e),this.tileZoom=Math.floor(e),this.zoomFraction=e-this.tileZoom,this._constrain(),this._calcMatrices())},Nr.center.get=function(){return this._center},Nr.center.set=function(t){t.lat===this._center.lat&&t.lng===this._center.lng||(this._unmodified=!1,this._center=t,this._constrain(),this._calcMatrices())},Fr.prototype.coveringZoomLevel=function(t){return(t.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/t.tileSize))},Fr.prototype.getVisibleUnwrappedCoordinates=function(e){var r=this.pointCoordinate(new t.default$1(0,0),0),n=this.pointCoordinate(new t.default$1(this.width,0),0),i=Math.floor(r.column),a=Math.floor(n.column),o=[new t.UnwrappedTileID(0,e)];if(this._renderWorldCopies)for(var s=i;s<=a;s++)0!==s&&o.push(new t.UnwrappedTileID(s,e));return o},Fr.prototype.coveringTiles=function(e){var r=this.coveringZoomLevel(e),n=r;if(void 0!==e.minzoom&&r<e.minzoom)return[];void 0!==e.maxzoom&&r>e.maxzoom&&(r=e.maxzoom);var i=this.pointCoordinate(this.centerPoint,r),a=new t.default$1(i.column-.5,i.row-.5);return function(e,r,n,i){void 0===i&&(i=!0);var a=1<<e,o={};function s(r,s,l){var c,u,f,h;if(l>=0&&l<=a)for(c=r;c<s;c++)u=Math.floor(c/a),f=(c%a+a)%a,0!==u&&!0!==i||(h=new t.OverscaledTileID(n,u,e,f,l),o[h.key]=h)}return Pr(r[0],r[1],r[2],0,a,s),Pr(r[2],r[3],r[0],0,a,s),Object.keys(o).map(function(t){return o[t]})}(r,[this.pointCoordinate(new t.default$1(0,0),r),this.pointCoordinate(new t.default$1(this.width,0),r),this.pointCoordinate(new t.default$1(this.width,this.height),r),this.pointCoordinate(new t.default$1(0,this.height),r)],e.reparseOverscaled?n:r,this._renderWorldCopies).sort(function(t,e){return a.dist(t.canonical)-a.dist(e.canonical)})},Fr.prototype.resize=function(t,e){this.width=t,this.height=e,this.pixelsToGLUnits=[2/t,-2/e],this._constrain(),this._calcMatrices()},Nr.unmodified.get=function(){return this._unmodified},Fr.prototype.zoomScale=function(t){return Math.pow(2,t)},Fr.prototype.scaleZoom=function(t){return Math.log(t)/Math.LN2},Fr.prototype.project=function(e){return new t.default$1(this.lngX(e.lng),this.latY(e.lat))},Fr.prototype.unproject=function(t){return new G(this.xLng(t.x),this.yLat(t.y))},Nr.x.get=function(){return this.lngX(this.center.lng)},Nr.y.get=function(){return this.latY(this.center.lat)},Nr.point.get=function(){return new t.default$1(this.x,this.y)},Fr.prototype.lngX=function(t){return(180+t)*this.worldSize/360},Fr.prototype.latY=function(t){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t*Math.PI/360)))*this.worldSize/360},Fr.prototype.xLng=function(t){return 360*t/this.worldSize-180},Fr.prototype.yLat=function(t){var e=180-360*t/this.worldSize;return 360/Math.PI*Math.atan(Math.exp(e*Math.PI/180))-90},Fr.prototype.setLocationAtPoint=function(t,e){var r=this.pointCoordinate(e)._sub(this.pointCoordinate(this.centerPoint));this.center=this.coordinateLocation(this.locationCoordinate(t)._sub(r)),this._renderWorldCopies&&(this.center=this.center.wrap())},Fr.prototype.locationPoint=function(t){return this.coordinatePoint(this.locationCoordinate(t))},Fr.prototype.pointLocation=function(t){return this.coordinateLocation(this.pointCoordinate(t))},Fr.prototype.locationCoordinate=function(e){return new t.default$17(this.lngX(e.lng)/this.tileSize,this.latY(e.lat)/this.tileSize,this.zoom).zoomTo(this.tileZoom)},Fr.prototype.coordinateLocation=function(t){var e=t.zoomTo(this.zoom);return new G(this.xLng(e.column*this.tileSize),this.yLat(e.row*this.tileSize))},Fr.prototype.pointCoordinate=function(e,r){void 0===r&&(r=this.tileZoom);var n=[e.x,e.y,0,1],i=[e.x,e.y,1,1];Dr.transformMat4(n,n,this.pixelMatrixInverse),Dr.transformMat4(i,i,this.pixelMatrixInverse);var a=n[3],o=i[3],s=n[0]/a,l=i[0]/o,c=n[1]/a,u=i[1]/o,f=n[2]/a,h=i[2]/o,p=f===h?0:(0-f)/(h-f);return new t.default$17(t.number(s,l,p)/this.tileSize,t.number(c,u,p)/this.tileSize,this.zoom)._zoomTo(r)},Fr.prototype.coordinatePoint=function(e){var r=e.zoomTo(this.zoom),n=[r.column*this.tileSize,r.row*this.tileSize,0,1];return Dr.transformMat4(n,n,this.pixelMatrix),new t.default$1(n[0]/n[3],n[1]/n[3])},Fr.prototype.calculatePosMatrix=function(e,r){void 0===r&&(r=!1);var n=e.key,i=r?this._alignedPosMatrixCache:this._posMatrixCache;if(i[n])return i[n];var a=e.canonical,o=this.worldSize/this.zoomScale(a.z),s=a.x+Math.pow(2,a.z)*e.wrap,l=Rr.identity(new Float64Array(16));return Rr.translate(l,l,[s*o,a.y*o,0]),Rr.scale(l,l,[o/t.default$8,o/t.default$8,1]),Rr.multiply(l,r?this.alignedProjMatrix:this.projMatrix,l),i[n]=new Float32Array(l),i[n]},Fr.prototype._constrain=function(){if(this.center&&this.width&&this.height&&!this._constraining){this._constraining=!0;var e,r,n,i,a=-90,o=90,s=-180,l=180,c=this.size,u=this._unmodified;if(this.latRange){var f=this.latRange;a=this.latY(f[1]),e=(o=this.latY(f[0]))-a<c.y?c.y/(o-a):0}if(this.lngRange){var h=this.lngRange;s=this.lngX(h[0]),r=(l=this.lngX(h[1]))-s<c.x?c.x/(l-s):0}var p=Math.max(r||0,e||0);if(p)return this.center=this.unproject(new t.default$1(r?(l+s)/2:this.x,e?(o+a)/2:this.y)),this.zoom+=this.scaleZoom(p),this._unmodified=u,void(this._constraining=!1);if(this.latRange){var d=this.y,g=c.y/2;d-g<a&&(i=a+g),d+g>o&&(i=o-g)}if(this.lngRange){var v=this.x,m=c.x/2;v-m<s&&(n=s+m),v+m>l&&(n=l-m)}void 0===n&&void 0===i||(this.center=this.unproject(new t.default$1(void 0!==n?n:this.x,void 0!==i?i:this.y))),this._unmodified=u,this._constraining=!1}},Fr.prototype._calcMatrices=function(){if(this.height){this.cameraToCenterDistance=.5/Math.tan(this._fov/2)*this.height;var t=this._fov/2,e=Math.PI/2+this._pitch,r=Math.sin(t)*this.cameraToCenterDistance/Math.sin(Math.PI-e-t),n=this.x,i=this.y,a=1.01*(Math.cos(Math.PI/2-this._pitch)*r+this.cameraToCenterDistance),o=new Float64Array(16);Rr.perspective(o,this._fov,this.width/this.height,1,a),Rr.scale(o,o,[1,-1,1]),Rr.translate(o,o,[0,0,-this.cameraToCenterDistance]),Rr.rotateX(o,o,this._pitch),Rr.rotateZ(o,o,this.angle),Rr.translate(o,o,[-n,-i,0]);var s=this.worldSize/(2*Math.PI*6378137*Math.abs(Math.cos(this.center.lat*(Math.PI/180))));Rr.scale(o,o,[1,1,s,1]),this.projMatrix=o;var l=this.width%2/2,c=this.height%2/2,u=Math.cos(this.angle),f=Math.sin(this.angle),h=n-Math.round(n)+u*l+f*c,p=i-Math.round(i)+u*c+f*l,d=new Float64Array(o);if(Rr.translate(d,d,[h>.5?h-1:h,p>.5?p-1:p,0]),this.alignedProjMatrix=d,o=Rr.create(),Rr.scale(o,o,[this.width/2,-this.height/2,1]),Rr.translate(o,o,[1,-1,0]),this.pixelMatrix=Rr.multiply(new Float64Array(16),o,this.projMatrix),!(o=Rr.invert(new Float64Array(16),this.pixelMatrix)))throw new Error(\"failed to invert matrix\");this.pixelMatrixInverse=o,this._posMatrixCache={},this._alignedPosMatrixCache={}}},Fr.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var e=this.pointCoordinate(new t.default$1(0,0)).zoomTo(this.zoom),r=[e.column*this.tileSize,e.row*this.tileSize,0,1];return Dr.transformMat4(r,r,this.pixelMatrix)[3]/this.cameraToCenterDistance},Object.defineProperties(Fr.prototype,Nr);var jr=function(){var e,r,n,i;t.bindAll([\"_onHashChange\",\"_updateHash\"],this),this._updateHash=(e=this._updateHashUnthrottled.bind(this),300,r=!1,n=0,i=function(){n=0,r&&(e(),n=setTimeout(i,300),r=!1)},function(){return r=!0,n||i(),n})};jr.prototype.addTo=function(e){return this._map=e,t.default.addEventListener(\"hashchange\",this._onHashChange,!1),this._map.on(\"moveend\",this._updateHash),this},jr.prototype.remove=function(){return t.default.removeEventListener(\"hashchange\",this._onHashChange,!1),this._map.off(\"moveend\",this._updateHash),clearTimeout(this._updateHash()),delete this._map,this},jr.prototype.getHashString=function(t){var e=this._map.getCenter(),r=Math.round(100*this._map.getZoom())/100,n=Math.ceil((r*Math.LN2+Math.log(512/360/.5))/Math.LN10),i=Math.pow(10,n),a=Math.round(e.lng*i)/i,o=Math.round(e.lat*i)/i,s=this._map.getBearing(),l=this._map.getPitch(),c=\"\";return c+=t?\"#/\"+a+\"/\"+o+\"/\"+r:\"#\"+r+\"/\"+o+\"/\"+a,(s||l)&&(c+=\"/\"+Math.round(10*s)/10),l&&(c+=\"/\"+Math.round(l)),c},jr.prototype._onHashChange=function(){var e=t.default.location.hash.replace(\"#\",\"\").split(\"/\");return e.length>=3&&(this._map.jumpTo({center:[+e[2],+e[1]],zoom:+e[0],bearing:+(e[3]||0),pitch:+(e[4]||0)}),!0)},jr.prototype._updateHashUnthrottled=function(){var e=this.getHashString();t.default.history.replaceState(t.default.history.state,\"\",e)};var Vr=function(e){function r(r,n,i,a){void 0===a&&(a={});var o=s.mousePos(n.getCanvasContainer(),i),l=n.unproject(o);e.call(this,r,t.extend({point:o,lngLat:l,originalEvent:i},a)),this._defaultPrevented=!1,this.target=n}e&&(r.__proto__=e),r.prototype=Object.create(e&&e.prototype),r.prototype.constructor=r;var n={defaultPrevented:{configurable:!0}};return r.prototype.preventDefault=function(){this._defaultPrevented=!0},n.defaultPrevented.get=function(){return this._defaultPrevented},Object.defineProperties(r.prototype,n),r}(t.Event),Ur=function(e){function r(r,n,i){var a=s.touchPos(n.getCanvasContainer(),i),o=a.map(function(t){return n.unproject(t)}),l=a.reduce(function(t,e,r,n){return t.add(e.div(n.length))},new t.default$1(0,0)),c=n.unproject(l);e.call(this,r,{points:a,point:l,lngLats:o,lngLat:c,originalEvent:i}),this._defaultPrevented=!1}e&&(r.__proto__=e),r.prototype=Object.create(e&&e.prototype),r.prototype.constructor=r;var n={defaultPrevented:{configurable:!0}};return r.prototype.preventDefault=function(){this._defaultPrevented=!0},n.defaultPrevented.get=function(){return this._defaultPrevented},Object.defineProperties(r.prototype,n),r}(t.Event),qr=function(t){function e(e,r,n){t.call(this,e,{originalEvent:n}),this._defaultPrevented=!1}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={defaultPrevented:{configurable:!0}};return e.prototype.preventDefault=function(){this._defaultPrevented=!0},r.defaultPrevented.get=function(){return this._defaultPrevented},Object.defineProperties(e.prototype,r),e}(t.Event),Hr=function(e){this._map=e,this._el=e.getCanvasContainer(),this._delta=0,t.bindAll([\"_onWheel\",\"_onTimeout\",\"_onScrollFrame\",\"_onScrollFinished\"],this)};Hr.prototype.isEnabled=function(){return!!this._enabled},Hr.prototype.isActive=function(){return!!this._active},Hr.prototype.enable=function(t){this.isEnabled()||(this._enabled=!0,this._aroundCenter=t&&\"center\"===t.around)},Hr.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},Hr.prototype.onWheel=function(e){if(this.isEnabled()){var r=e.deltaMode===t.default.WheelEvent.DOM_DELTA_LINE?40*e.deltaY:e.deltaY,n=a.now(),i=n-(this._lastWheelEventTime||0);this._lastWheelEventTime=n,0!==r&&r%4.000244140625==0?this._type=\"wheel\":0!==r&&Math.abs(r)<4?this._type=\"trackpad\":i>400?(this._type=null,this._lastValue=r,this._timeout=setTimeout(this._onTimeout,40,e)):this._type||(this._type=Math.abs(i*r)<200?\"trackpad\":\"wheel\",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,r+=this._lastValue)),e.shiftKey&&r&&(r/=4),this._type&&(this._lastWheelEvent=e,this._delta-=r,this.isActive()||this._start(e)),e.preventDefault()}},Hr.prototype._onTimeout=function(t){this._type=\"wheel\",this._delta-=this._lastValue,this.isActive()||this._start(t)},Hr.prototype._start=function(e){if(this._delta){this._frameId&&(this._map._cancelRenderFrame(this._frameId),this._frameId=null),this._active=!0,this._map.fire(new t.Event(\"movestart\",{originalEvent:e})),this._map.fire(new t.Event(\"zoomstart\",{originalEvent:e})),this._finishTimeout&&clearTimeout(this._finishTimeout);var r=s.mousePos(this._el,e);this._around=G.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(r)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=this._map._requestRenderFrame(this._onScrollFrame))}},Hr.prototype._onScrollFrame=function(){var e=this;if(this._frameId=null,this.isActive()){var r=this._map.transform;if(0!==this._delta){var n=\"wheel\"===this._type&&Math.abs(this._delta)>4.000244140625?1/450:.01,i=2/(1+Math.exp(-Math.abs(this._delta*n)));this._delta<0&&0!==i&&(i=1/i);var o=\"number\"==typeof this._targetZoom?r.zoomScale(this._targetZoom):r.scale;this._targetZoom=Math.min(r.maxZoom,Math.max(r.minZoom,r.scaleZoom(o*i))),\"wheel\"===this._type&&(this._startZoom=r.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var s=!1;if(\"wheel\"===this._type){var l=Math.min((a.now()-this._lastWheelEventTime)/200,1),c=this._easing(l);r.zoom=t.number(this._startZoom,this._targetZoom,c),l<1?this._frameId||(this._frameId=this._map._requestRenderFrame(this._onScrollFrame)):s=!0}else r.zoom=this._targetZoom,s=!0;r.setLocationAtPoint(this._around,this._aroundPoint),this._map.fire(new t.Event(\"move\",{originalEvent:this._lastWheelEvent})),this._map.fire(new t.Event(\"zoom\",{originalEvent:this._lastWheelEvent})),s&&(this._active=!1,this._finishTimeout=setTimeout(function(){e._map.fire(new t.Event(\"zoomend\",{originalEvent:e._lastWheelEvent})),e._map.fire(new t.Event(\"moveend\",{originalEvent:e._lastWheelEvent})),delete e._targetZoom},200))}},Hr.prototype._smoothOutEasing=function(e){var r=t.ease;if(this._prevEase){var n=this._prevEase,i=(a.now()-n.start)/n.duration,o=n.easing(i+.01)-n.easing(i),s=.27/Math.sqrt(o*o+1e-4)*.01,l=Math.sqrt(.0729-s*s);r=t.bezier(s,l,.25,1)}return this._prevEase={start:a.now(),duration:e,easing:r},r};var Gr=function(e){this._map=e,this._el=e.getCanvasContainer(),this._container=e.getContainer(),t.bindAll([\"_onMouseMove\",\"_onMouseUp\",\"_onKeyDown\"],this)};Gr.prototype.isEnabled=function(){return!!this._enabled},Gr.prototype.isActive=function(){return!!this._active},Gr.prototype.enable=function(){this.isEnabled()||(this._enabled=!0)},Gr.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},Gr.prototype.onMouseDown=function(e){this.isEnabled()&&e.shiftKey&&0===e.button&&(t.default.document.addEventListener(\"mousemove\",this._onMouseMove,!1),t.default.document.addEventListener(\"keydown\",this._onKeyDown,!1),t.default.document.addEventListener(\"mouseup\",this._onMouseUp,!1),s.disableDrag(),this._startPos=s.mousePos(this._el,e),this._active=!0)},Gr.prototype._onMouseMove=function(t){var e=this._startPos,r=s.mousePos(this._el,t);this._box||(this._box=s.create(\"div\",\"mapboxgl-boxzoom\",this._container),this._container.classList.add(\"mapboxgl-crosshair\"),this._fireEvent(\"boxzoomstart\",t));var n=Math.min(e.x,r.x),i=Math.max(e.x,r.x),a=Math.min(e.y,r.y),o=Math.max(e.y,r.y);s.setTransform(this._box,\"translate(\"+n+\"px,\"+a+\"px)\"),this._box.style.width=i-n+\"px\",this._box.style.height=o-a+\"px\"},Gr.prototype._onMouseUp=function(e){if(0===e.button){var r=this._startPos,n=s.mousePos(this._el,e),i=(new W).extend(this._map.unproject(r)).extend(this._map.unproject(n));this._finish(),s.suppressClick(),r.x===n.x&&r.y===n.y?this._fireEvent(\"boxzoomcancel\",e):this._map.fitBounds(i,{linear:!0}).fire(new t.Event(\"boxzoomend\",{originalEvent:e,boxZoomBounds:i}))}},Gr.prototype._onKeyDown=function(t){27===t.keyCode&&(this._finish(),this._fireEvent(\"boxzoomcancel\",t))},Gr.prototype._finish=function(){this._active=!1,t.default.document.removeEventListener(\"mousemove\",this._onMouseMove,!1),t.default.document.removeEventListener(\"keydown\",this._onKeyDown,!1),t.default.document.removeEventListener(\"mouseup\",this._onMouseUp,!1),this._container.classList.remove(\"mapboxgl-crosshair\"),this._box&&(s.remove(this._box),this._box=null),s.enableDrag()},Gr.prototype._fireEvent=function(e,r){return this._map.fire(new t.Event(e,{originalEvent:r}))};var Wr=t.bezier(0,0,.25,1),Yr=function(e,r){this._map=e,this._el=r.element||e.getCanvasContainer(),this._state=\"disabled\",this._button=r.button||\"right\",this._bearingSnap=r.bearingSnap||0,this._pitchWithRotate=!1!==r.pitchWithRotate,t.bindAll([\"_onMouseMove\",\"_onMouseUp\",\"_onBlur\",\"_onDragFrame\"],this)};Yr.prototype.isEnabled=function(){return\"disabled\"!==this._state},Yr.prototype.isActive=function(){return\"active\"===this._state},Yr.prototype.enable=function(){this.isEnabled()||(this._state=\"enabled\")},Yr.prototype.disable=function(){if(this.isEnabled())switch(this._state){case\"active\":this._state=\"disabled\",this._unbind(),this._deactivate(),this._fireEvent(\"rotateend\"),this._pitchWithRotate&&this._fireEvent(\"pitchend\"),this._fireEvent(\"moveend\");break;case\"pending\":this._state=\"disabled\",this._unbind();break;default:this._state=\"disabled\"}},Yr.prototype.onMouseDown=function(e){if(\"enabled\"===this._state){if(\"right\"===this._button){if(this._eventButton=s.mouseButton(e),this._eventButton!==(e.ctrlKey?0:2))return}else{if(e.ctrlKey||0!==s.mouseButton(e))return;this._eventButton=0}s.disableDrag(),t.default.document.addEventListener(\"mousemove\",this._onMouseMove,{capture:!0}),t.default.document.addEventListener(\"mouseup\",this._onMouseUp),t.default.addEventListener(\"blur\",this._onBlur),this._state=\"pending\",this._inertia=[[a.now(),this._map.getBearing()]],this._previousPos=s.mousePos(this._el,e),this._center=this._map.transform.centerPoint,e.preventDefault()}},Yr.prototype._onMouseMove=function(t){this._lastMoveEvent=t,this._pos=s.mousePos(this._el,t),\"pending\"===this._state&&(this._state=\"active\",this._fireEvent(\"rotatestart\",t),this._fireEvent(\"movestart\",t),this._pitchWithRotate&&this._fireEvent(\"pitchstart\",t)),this._frameId||(this._frameId=this._map._requestRenderFrame(this._onDragFrame))},Yr.prototype._onDragFrame=function(){this._frameId=null;var t=this._lastMoveEvent;if(t){var e=this._map.transform,r=this._previousPos,n=this._pos,i=.8*(r.x-n.x),o=-.5*(r.y-n.y),s=e.bearing-i,l=e.pitch-o,c=this._inertia,u=c[c.length-1];this._drainInertiaBuffer(),c.push([a.now(),this._map._normalizeBearing(s,u[1])]),e.bearing=s,this._pitchWithRotate&&(this._fireEvent(\"pitch\",t),e.pitch=l),this._fireEvent(\"rotate\",t),this._fireEvent(\"move\",t),delete this._lastMoveEvent,this._previousPos=this._pos}},Yr.prototype._onMouseUp=function(t){if(s.mouseButton(t)===this._eventButton)switch(this._state){case\"active\":this._state=\"enabled\",s.suppressClick(),this._unbind(),this._deactivate(),this._inertialRotate(t);break;case\"pending\":this._state=\"enabled\",this._unbind()}},Yr.prototype._onBlur=function(t){switch(this._state){case\"active\":this._state=\"enabled\",this._unbind(),this._deactivate(),this._fireEvent(\"rotateend\",t),this._pitchWithRotate&&this._fireEvent(\"pitchend\",t),this._fireEvent(\"moveend\",t);break;case\"pending\":this._state=\"enabled\",this._unbind()}},Yr.prototype._unbind=function(){t.default.document.removeEventListener(\"mousemove\",this._onMouseMove,{capture:!0}),t.default.document.removeEventListener(\"mouseup\",this._onMouseUp),t.default.removeEventListener(\"blur\",this._onBlur),s.enableDrag()},Yr.prototype._deactivate=function(){this._frameId&&(this._map._cancelRenderFrame(this._frameId),this._frameId=null),delete this._lastMoveEvent,delete this._previousPos},Yr.prototype._inertialRotate=function(t){var e=this;this._fireEvent(\"rotateend\",t),this._drainInertiaBuffer();var r=this._map,n=r.getBearing(),i=this._inertia,a=function(){Math.abs(n)<e._bearingSnap?r.resetNorth({noMoveStart:!0},{originalEvent:t}):e._fireEvent(\"moveend\",t),e._pitchWithRotate&&e._fireEvent(\"pitchend\",t)};if(i.length<2)a();else{var o=i[0],s=i[i.length-1],l=i[i.length-2],c=r._normalizeBearing(n,l[1]),u=s[1]-o[1],f=u<0?-1:1,h=(s[0]-o[0])/1e3;if(0!==u&&0!==h){var p=Math.abs(u*(.25/h));p>180&&(p=180);var d=p/180;c+=f*p*(d/2),Math.abs(r._normalizeBearing(c,0))<this._bearingSnap&&(c=r._normalizeBearing(0,c)),r.rotateTo(c,{duration:1e3*d,easing:Wr,noMoveStart:!0},{originalEvent:t})}else a()}},Yr.prototype._fireEvent=function(e,r){return this._map.fire(new t.Event(e,r?{originalEvent:r}:{}))},Yr.prototype._drainInertiaBuffer=function(){for(var t=this._inertia,e=a.now();t.length>0&&e-t[0][0]>160;)t.shift()};var Xr=t.bezier(0,0,.3,1),Zr=function(e){this._map=e,this._el=e.getCanvasContainer(),this._state=\"disabled\",t.bindAll([\"_onMove\",\"_onMouseUp\",\"_onTouchEnd\",\"_onBlur\",\"_onDragFrame\"],this)};Zr.prototype.isEnabled=function(){return\"disabled\"!==this._state},Zr.prototype.isActive=function(){return\"active\"===this._state},Zr.prototype.enable=function(){this.isEnabled()||(this._el.classList.add(\"mapboxgl-touch-drag-pan\"),this._state=\"enabled\")},Zr.prototype.disable=function(){if(this.isEnabled())switch(this._el.classList.remove(\"mapboxgl-touch-drag-pan\"),this._state){case\"active\":this._state=\"disabled\",this._unbind(),this._deactivate(),this._fireEvent(\"dragend\"),this._fireEvent(\"moveend\");break;case\"pending\":this._state=\"disabled\",this._unbind();break;default:this._state=\"disabled\"}},Zr.prototype.onMouseDown=function(e){\"enabled\"===this._state&&(e.ctrlKey||0!==s.mouseButton(e)||(s.addEventListener(t.default.document,\"mousemove\",this._onMove,{capture:!0}),s.addEventListener(t.default.document,\"mouseup\",this._onMouseUp),this._start(e)))},Zr.prototype.onTouchStart=function(e){\"enabled\"===this._state&&(e.touches.length>1||(s.addEventListener(t.default.document,\"touchmove\",this._onMove,{capture:!0,passive:!1}),s.addEventListener(t.default.document,\"touchend\",this._onTouchEnd),this._start(e)))},Zr.prototype._start=function(e){t.default.addEventListener(\"blur\",this._onBlur),this._state=\"pending\",this._previousPos=s.mousePos(this._el,e),this._inertia=[[a.now(),this._previousPos]]},Zr.prototype._onMove=function(t){this._lastMoveEvent=t,t.preventDefault(),this._pos=s.mousePos(this._el,t),this._drainInertiaBuffer(),this._inertia.push([a.now(),this._pos]),\"pending\"===this._state&&(this._state=\"active\",this._fireEvent(\"dragstart\",t),this._fireEvent(\"movestart\",t)),this._frameId||(this._frameId=this._map._requestRenderFrame(this._onDragFrame))},Zr.prototype._onDragFrame=function(){this._frameId=null;var t=this._lastMoveEvent;if(t){var e=this._map.transform;e.setLocationAtPoint(e.pointLocation(this._previousPos),this._pos),this._fireEvent(\"drag\",t),this._fireEvent(\"move\",t),this._previousPos=this._pos,delete this._lastMoveEvent}},Zr.prototype._onMouseUp=function(t){if(0===s.mouseButton(t))switch(this._state){case\"active\":this._state=\"enabled\",s.suppressClick(),this._unbind(),this._deactivate(),this._inertialPan(t);break;case\"pending\":this._state=\"enabled\",this._unbind()}},Zr.prototype._onTouchEnd=function(t){switch(this._state){case\"active\":this._state=\"enabled\",this._unbind(),this._deactivate(),this._inertialPan(t);break;case\"pending\":this._state=\"enabled\",this._unbind()}},Zr.prototype._onBlur=function(t){switch(this._state){case\"active\":this._state=\"enabled\",this._unbind(),this._deactivate(),this._fireEvent(\"dragend\",t),this._fireEvent(\"moveend\",t);break;case\"pending\":this._state=\"enabled\",this._unbind()}},Zr.prototype._unbind=function(){s.removeEventListener(t.default.document,\"touchmove\",this._onMove,{capture:!0,passive:!1}),s.removeEventListener(t.default.document,\"touchend\",this._onTouchEnd),s.removeEventListener(t.default.document,\"mousemove\",this._onMove,{capture:!0}),s.removeEventListener(t.default.document,\"mouseup\",this._onMouseUp),s.removeEventListener(t.default,\"blur\",this._onBlur)},Zr.prototype._deactivate=function(){this._frameId&&(this._map._cancelRenderFrame(this._frameId),this._frameId=null),delete this._lastMoveEvent,delete this._previousPos,delete this._pos},Zr.prototype._inertialPan=function(t){this._fireEvent(\"dragend\",t),this._drainInertiaBuffer();var e=this._inertia;if(e.length<2)this._fireEvent(\"moveend\",t);else{var r=e[e.length-1],n=e[0],i=r[1].sub(n[1]),a=(r[0]-n[0])/1e3;if(0===a||r[1].equals(n[1]))this._fireEvent(\"moveend\",t);else{var o=i.mult(.3/a),s=o.mag();s>1400&&(s=1400,o._unit()._mult(s));var l=s/750,c=o.mult(-l/2);this._map.panBy(c,{duration:1e3*l,easing:Xr,noMoveStart:!0},{originalEvent:t})}}},Zr.prototype._fireEvent=function(e,r){return this._map.fire(new t.Event(e,r?{originalEvent:r}:{}))},Zr.prototype._drainInertiaBuffer=function(){for(var t=this._inertia,e=a.now();t.length>0&&e-t[0][0]>160;)t.shift()};var $r=function(e){this._map=e,this._el=e.getCanvasContainer(),t.bindAll([\"_onKeyDown\"],this)};function Jr(t){return t*(2-t)}$r.prototype.isEnabled=function(){return!!this._enabled},$r.prototype.enable=function(){this.isEnabled()||(this._el.addEventListener(\"keydown\",this._onKeyDown,!1),this._enabled=!0)},$r.prototype.disable=function(){this.isEnabled()&&(this._el.removeEventListener(\"keydown\",this._onKeyDown),this._enabled=!1)},$r.prototype._onKeyDown=function(t){if(!(t.altKey||t.ctrlKey||t.metaKey)){var e=0,r=0,n=0,i=0,a=0;switch(t.keyCode){case 61:case 107:case 171:case 187:e=1;break;case 189:case 109:case 173:e=-1;break;case 37:t.shiftKey?r=-1:(t.preventDefault(),i=-1);break;case 39:t.shiftKey?r=1:(t.preventDefault(),i=1);break;case 38:t.shiftKey?n=1:(t.preventDefault(),a=-1);break;case 40:t.shiftKey?n=-1:(a=1,t.preventDefault());break;default:return}var o=this._map,s=o.getZoom(),l={duration:300,delayEndEvents:500,easing:Jr,zoom:e?Math.round(s)+e*(t.shiftKey?2:1):s,bearing:o.getBearing()+15*r,pitch:o.getPitch()+10*n,offset:[100*-i,100*-a],center:o.getCenter()};o.easeTo(l,{originalEvent:t})}};var Kr=function(e){this._map=e,t.bindAll([\"_onDblClick\",\"_onZoomEnd\"],this)};Kr.prototype.isEnabled=function(){return!!this._enabled},Kr.prototype.isActive=function(){return!!this._active},Kr.prototype.enable=function(){this.isEnabled()||(this._enabled=!0)},Kr.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},Kr.prototype.onTouchStart=function(t){var e=this;this.isEnabled()&&(t.points.length>1||(this._tapped?(clearTimeout(this._tapped),this._tapped=null,this._zoom(t)):this._tapped=setTimeout(function(){e._tapped=null},300)))},Kr.prototype.onDblClick=function(t){this.isEnabled()&&(t.originalEvent.preventDefault(),this._zoom(t))},Kr.prototype._zoom=function(t){this._active=!0,this._map.on(\"zoomend\",this._onZoomEnd),this._map.zoomTo(this._map.getZoom()+(t.originalEvent.shiftKey?-1:1),{around:t.lngLat},t)},Kr.prototype._onZoomEnd=function(){this._active=!1,this._map.off(\"zoomend\",this._onZoomEnd)};var Qr=t.bezier(0,0,.15,1),tn=function(e){this._map=e,this._el=e.getCanvasContainer(),t.bindAll([\"_onMove\",\"_onEnd\",\"_onTouchFrame\"],this)};tn.prototype.isEnabled=function(){return!!this._enabled},tn.prototype.enable=function(t){this.isEnabled()||(this._el.classList.add(\"mapboxgl-touch-zoom-rotate\"),this._enabled=!0,this._aroundCenter=!!t&&\"center\"===t.around)},tn.prototype.disable=function(){this.isEnabled()&&(this._el.classList.remove(\"mapboxgl-touch-zoom-rotate\"),this._enabled=!1)},tn.prototype.disableRotation=function(){this._rotationDisabled=!0},tn.prototype.enableRotation=function(){this._rotationDisabled=!1},tn.prototype.onStart=function(e){if(this.isEnabled()&&2===e.touches.length){var r=s.mousePos(this._el,e.touches[0]),n=s.mousePos(this._el,e.touches[1]);this._startVec=r.sub(n),this._gestureIntent=void 0,this._inertia=[],s.addEventListener(t.default.document,\"touchmove\",this._onMove,{passive:!1}),s.addEventListener(t.default.document,\"touchend\",this._onEnd)}},tn.prototype._getTouchEventData=function(t){var e=s.mousePos(this._el,t.touches[0]),r=s.mousePos(this._el,t.touches[1]),n=e.sub(r);return{vec:n,center:e.add(r).div(2),scale:n.mag()/this._startVec.mag(),bearing:this._rotationDisabled?0:180*n.angleWith(this._startVec)/Math.PI}},tn.prototype._onMove=function(e){if(2===e.touches.length){var r=this._getTouchEventData(e),n=r.vec,i=r.scale,a=r.bearing;if(!this._gestureIntent){var o=Math.abs(1-i)>.15;Math.abs(a)>10?this._gestureIntent=\"rotate\":o&&(this._gestureIntent=\"zoom\"),this._gestureIntent&&(this._map.fire(new t.Event(this._gestureIntent+\"start\",{originalEvent:e})),this._map.fire(new t.Event(\"movestart\",{originalEvent:e})),this._startVec=n)}this._lastTouchEvent=e,this._frameId||(this._frameId=this._map._requestRenderFrame(this._onTouchFrame)),e.preventDefault()}},tn.prototype._onTouchFrame=function(){this._frameId=null;var e=this._gestureIntent;if(e){var r=this._map.transform;this._startScale||(this._startScale=r.scale,this._startBearing=r.bearing);var n=this._getTouchEventData(this._lastTouchEvent),i=n.center,o=n.bearing,s=n.scale,l=r.pointLocation(i),c=r.locationPoint(l);\"rotate\"===e&&(r.bearing=this._startBearing+o),r.zoom=r.scaleZoom(this._startScale*s),r.setLocationAtPoint(l,c),this._map.fire(new t.Event(e,{originalEvent:this._lastTouchEvent})),this._map.fire(new t.Event(\"move\",{originalEvent:this._lastTouchEvent})),this._drainInertiaBuffer(),this._inertia.push([a.now(),s,i])}},tn.prototype._onEnd=function(e){s.removeEventListener(t.default.document,\"touchmove\",this._onMove,{passive:!1}),s.removeEventListener(t.default.document,\"touchend\",this._onEnd);var r=this._gestureIntent,n=this._startScale;if(this._frameId&&(this._map._cancelRenderFrame(this._frameId),this._frameId=null),delete this._gestureIntent,delete this._startScale,delete this._startBearing,delete this._lastTouchEvent,r){this._map.fire(new t.Event(r+\"end\",{originalEvent:e})),this._drainInertiaBuffer();var i=this._inertia,a=this._map;if(i.length<2)a.snapToNorth({},{originalEvent:e});else{var o=i[i.length-1],l=i[0],c=a.transform.scaleZoom(n*o[1]),u=a.transform.scaleZoom(n*l[1]),f=c-u,h=(o[0]-l[0])/1e3,p=o[2];if(0!==h&&c!==u){var d=.15*f/h;Math.abs(d)>2.5&&(d=d>0?2.5:-2.5);var g=1e3*Math.abs(d/(12*.15)),v=c+d*g/2e3;v<0&&(v=0),a.easeTo({zoom:v,duration:g,easing:Qr,around:this._aroundCenter?a.getCenter():a.unproject(p),noMoveStart:!0},{originalEvent:e})}else a.snapToNorth({},{originalEvent:e})}}},tn.prototype._drainInertiaBuffer=function(){for(var t=this._inertia,e=a.now();t.length>2&&e-t[0][0]>160;)t.shift()};var en={scrollZoom:Hr,boxZoom:Gr,dragRotate:Yr,dragPan:Zr,keyboard:$r,doubleClickZoom:Kr,touchZoomRotate:tn},rn=function(e){function r(r,n){e.call(this),this._moving=!1,this._zooming=!1,this.transform=r,this._bearingSnap=n.bearingSnap,t.bindAll([\"_renderFrameCallback\"],this)}return e&&(r.__proto__=e),r.prototype=Object.create(e&&e.prototype),r.prototype.constructor=r,r.prototype.getCenter=function(){return this.transform.center},r.prototype.setCenter=function(t,e){return this.jumpTo({center:t},e)},r.prototype.panBy=function(e,r,n){return e=t.default$1.convert(e).mult(-1),this.panTo(this.transform.center,t.extend({offset:e},r),n)},r.prototype.panTo=function(e,r,n){return this.easeTo(t.extend({center:e},r),n)},r.prototype.getZoom=function(){return this.transform.zoom},r.prototype.setZoom=function(t,e){return this.jumpTo({zoom:t},e),this},r.prototype.zoomTo=function(e,r,n){return this.easeTo(t.extend({zoom:e},r),n)},r.prototype.zoomIn=function(t,e){return this.zoomTo(this.getZoom()+1,t,e),this},r.prototype.zoomOut=function(t,e){return this.zoomTo(this.getZoom()-1,t,e),this},r.prototype.getBearing=function(){return this.transform.bearing},r.prototype.setBearing=function(t,e){return this.jumpTo({bearing:t},e),this},r.prototype.rotateTo=function(e,r,n){return this.easeTo(t.extend({bearing:e},r),n)},r.prototype.resetNorth=function(e,r){return this.rotateTo(0,t.extend({duration:1e3},e),r),this},r.prototype.snapToNorth=function(t,e){return Math.abs(this.getBearing())<this._bearingSnap?this.resetNorth(t,e):this},r.prototype.getPitch=function(){return this.transform.pitch},r.prototype.setPitch=function(t,e){return this.jumpTo({pitch:t},e),this},r.prototype.fitBounds=function(e,r,n){if(\"number\"==typeof(r=t.extend({padding:{top:0,bottom:0,right:0,left:0},offset:[0,0],maxZoom:this.transform.maxZoom},r)).padding){var i=r.padding;r.padding={top:i,bottom:i,right:i,left:i}}if(!t.default$10(Object.keys(r.padding).sort(function(t,e){return t<e?-1:t>e?1:0}),[\"bottom\",\"left\",\"right\",\"top\"]))return t.warnOnce(\"options.padding must be a positive number, or an Object with keys 'bottom', 'left', 'right', 'top'\"),this;e=W.convert(e);var a=[(r.padding.left-r.padding.right)/2,(r.padding.top-r.padding.bottom)/2],o=Math.min(r.padding.right,r.padding.left),s=Math.min(r.padding.top,r.padding.bottom);r.offset=[r.offset[0]+a[0],r.offset[1]+a[1]];var l=t.default$1.convert(r.offset),c=this.transform,u=c.project(e.getNorthWest()),f=c.project(e.getSouthEast()),h=f.sub(u),p=(c.width-2*o-2*Math.abs(l.x))/h.x,d=(c.height-2*s-2*Math.abs(l.y))/h.y;return d<0||p<0?(t.warnOnce(\"Map cannot fit within canvas with the given bounds, padding, and/or offset.\"),this):(r.center=c.unproject(u.add(f).div(2)),r.zoom=Math.min(c.scaleZoom(c.scale*Math.min(p,d)),r.maxZoom),r.bearing=0,r.linear?this.easeTo(r,n):this.flyTo(r,n))},r.prototype.jumpTo=function(e,r){this.stop();var n=this.transform,i=!1,a=!1,o=!1;return\"zoom\"in e&&n.zoom!==+e.zoom&&(i=!0,n.zoom=+e.zoom),void 0!==e.center&&(n.center=G.convert(e.center)),\"bearing\"in e&&n.bearing!==+e.bearing&&(a=!0,n.bearing=+e.bearing),\"pitch\"in e&&n.pitch!==+e.pitch&&(o=!0,n.pitch=+e.pitch),this.fire(new t.Event(\"movestart\",r)).fire(new t.Event(\"move\",r)),i&&this.fire(new t.Event(\"zoomstart\",r)).fire(new t.Event(\"zoom\",r)).fire(new t.Event(\"zoomend\",r)),a&&this.fire(new t.Event(\"rotatestart\",r)).fire(new t.Event(\"rotate\",r)).fire(new t.Event(\"rotateend\",r)),o&&this.fire(new t.Event(\"pitchstart\",r)).fire(new t.Event(\"pitch\",r)).fire(new t.Event(\"pitchend\",r)),this.fire(new t.Event(\"moveend\",r))},r.prototype.easeTo=function(e,r){var n=this;this.stop(),!1===(e=t.extend({offset:[0,0],duration:500,easing:t.ease},e)).animate&&(e.duration=0);var i=this.transform,a=this.getZoom(),o=this.getBearing(),s=this.getPitch(),l=\"zoom\"in e?+e.zoom:a,c=\"bearing\"in e?this._normalizeBearing(e.bearing,o):o,u=\"pitch\"in e?+e.pitch:s,f=i.centerPoint.add(t.default$1.convert(e.offset)),h=i.pointLocation(f),p=G.convert(e.center||h);this._normalizeCenter(p);var d,g,v=i.project(h),m=i.project(p).sub(v),y=i.zoomScale(l-a);return e.around&&(d=G.convert(e.around),g=i.locationPoint(d)),this._zooming=l!==a,this._rotating=o!==c,this._pitching=u!==s,this._prepareEase(r,e.noMoveStart),clearTimeout(this._easeEndTimeoutID),this._ease(function(e){if(n._zooming&&(i.zoom=t.number(a,l,e)),n._rotating&&(i.bearing=t.number(o,c,e)),n._pitching&&(i.pitch=t.number(s,u,e)),d)i.setLocationAtPoint(d,g);else{var h=i.zoomScale(i.zoom-a),p=l>a?Math.min(2,y):Math.max(.5,y),x=Math.pow(p,1-e),b=i.unproject(v.add(m.mult(e*x)).mult(h));i.setLocationAtPoint(i.renderWorldCopies?b.wrap():b,f)}n._fireMoveEvents(r)},function(){e.delayEndEvents?n._easeEndTimeoutID=setTimeout(function(){return n._afterEase(r)},e.delayEndEvents):n._afterEase(r)},e),this},r.prototype._prepareEase=function(e,r){this._moving=!0,r||this.fire(new t.Event(\"movestart\",e)),this._zooming&&this.fire(new t.Event(\"zoomstart\",e)),this._rotating&&this.fire(new t.Event(\"rotatestart\",e)),this._pitching&&this.fire(new t.Event(\"pitchstart\",e))},r.prototype._fireMoveEvents=function(e){this.fire(new t.Event(\"move\",e)),this._zooming&&this.fire(new t.Event(\"zoom\",e)),this._rotating&&this.fire(new t.Event(\"rotate\",e)),this._pitching&&this.fire(new t.Event(\"pitch\",e))},r.prototype._afterEase=function(e){var r=this._zooming,n=this._rotating,i=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,r&&this.fire(new t.Event(\"zoomend\",e)),n&&this.fire(new t.Event(\"rotateend\",e)),i&&this.fire(new t.Event(\"pitchend\",e)),this.fire(new t.Event(\"moveend\",e))},r.prototype.flyTo=function(e,r){var n=this;this.stop(),e=t.extend({offset:[0,0],speed:1.2,curve:1.42,easing:t.ease},e);var i=this.transform,a=this.getZoom(),o=this.getBearing(),s=this.getPitch(),l=\"zoom\"in e?t.clamp(+e.zoom,i.minZoom,i.maxZoom):a,c=\"bearing\"in e?this._normalizeBearing(e.bearing,o):o,u=\"pitch\"in e?+e.pitch:s,f=i.zoomScale(l-a),h=i.centerPoint.add(t.default$1.convert(e.offset)),p=i.pointLocation(h),d=G.convert(e.center||p);this._normalizeCenter(d);var g=i.project(p),v=i.project(d).sub(g),m=e.curve,y=Math.max(i.width,i.height),x=y/f,b=v.mag();if(\"minZoom\"in e){var _=t.clamp(Math.min(e.minZoom,a,l),i.minZoom,i.maxZoom),w=y/i.zoomScale(_-a);m=Math.sqrt(w/b*2)}var k=m*m;function M(t){var e=(x*x-y*y+(t?-1:1)*k*k*b*b)/(2*(t?x:y)*k*b);return Math.log(Math.sqrt(e*e+1)-e)}function A(t){return(Math.exp(t)-Math.exp(-t))/2}function T(t){return(Math.exp(t)+Math.exp(-t))/2}var S=M(0),E=function(t){return T(S)/T(S+m*t)},C=function(t){return y*((T(S)*(A(e=S+m*t)/T(e))-A(S))/k)/b;var e},L=(M(1)-S)/m;if(Math.abs(b)<1e-6||!isFinite(L)){if(Math.abs(y-x)<1e-6)return this.easeTo(e,r);var z=x<y?-1:1;L=Math.abs(Math.log(x/y))/m,C=function(){return 0},E=function(t){return Math.exp(z*m*t)}}if(\"duration\"in e)e.duration=+e.duration;else{var O=\"screenSpeed\"in e?+e.screenSpeed/m:+e.speed;e.duration=1e3*L/O}return e.maxDuration&&e.duration>e.maxDuration&&(e.duration=0),this._zooming=!0,this._rotating=o!==c,this._pitching=u!==s,this._prepareEase(r,!1),this._ease(function(e){var l=e*L,f=1/E(l);i.zoom=a+i.scaleZoom(f),n._rotating&&(i.bearing=t.number(o,c,e)),n._pitching&&(i.pitch=t.number(s,u,e));var p=i.unproject(g.add(v.mult(C(l))).mult(f));i.setLocationAtPoint(i.renderWorldCopies?p.wrap():p,h),n._fireMoveEvents(r)},function(){return n._afterEase(r)},e),this},r.prototype.isEasing=function(){return!!this._easeFrameId},r.prototype.stop=function(){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var t=this._onEaseEnd;delete this._onEaseEnd,t.call(this)}return this},r.prototype._ease=function(t,e,r){!1===r.animate||0===r.duration?(t(1),e()):(this._easeStart=a.now(),this._easeOptions=r,this._onEaseFrame=t,this._onEaseEnd=e,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},r.prototype._renderFrameCallback=function(){var t=Math.min((a.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(t)),t<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},r.prototype._normalizeBearing=function(e,r){e=t.wrap(e,-180,180);var n=Math.abs(e-r);return Math.abs(e-360-r)<n&&(e-=360),Math.abs(e+360-r)<n&&(e+=360),e},r.prototype._normalizeCenter=function(t){var e=this.transform;if(e.renderWorldCopies&&!e.lngRange){var r=t.lng-e.center.lng;t.lng+=r>180?-360:r<-180?360:0}},r}(t.Evented),nn=function(e){void 0===e&&(e={}),this.options=e,t.bindAll([\"_updateEditLink\",\"_updateData\",\"_updateCompact\"],this)};nn.prototype.getDefaultPosition=function(){return\"bottom-right\"},nn.prototype.onAdd=function(t){var e=this.options&&this.options.compact;return this._map=t,this._container=s.create(\"div\",\"mapboxgl-ctrl mapboxgl-ctrl-attrib\"),e&&this._container.classList.add(\"mapboxgl-compact\"),this._updateAttributions(),this._updateEditLink(),this._map.on(\"sourcedata\",this._updateData),this._map.on(\"moveend\",this._updateEditLink),void 0===e&&(this._map.on(\"resize\",this._updateCompact),this._updateCompact()),this._container},nn.prototype.onRemove=function(){s.remove(this._container),this._map.off(\"sourcedata\",this._updateData),this._map.off(\"moveend\",this._updateEditLink),this._map.off(\"resize\",this._updateCompact),this._map=void 0},nn.prototype._updateEditLink=function(){var t=this._editLink;t||(t=this._editLink=this._container.querySelector(\".mapbox-improve-map\"));var e=[{key:\"owner\",value:this.styleOwner},{key:\"id\",value:this.styleId},{key:\"access_token\",value:v.ACCESS_TOKEN}];if(t){var r=e.reduce(function(t,r,n){return r.value&&(t+=r.key+\"=\"+r.value+(n<e.length-1?\"&\":\"\")),t},\"?\");t.href=\"https://www.mapbox.com/feedback/\"+r+(this._map._hash?this._map._hash.getHashString(!0):\"\")}},nn.prototype._updateData=function(t){t&&\"metadata\"===t.sourceDataType&&(this._updateAttributions(),this._updateEditLink())},nn.prototype._updateAttributions=function(){if(this._map.style){var t=[];if(this._map.style.stylesheet){var e=this._map.style.stylesheet;this.styleOwner=e.owner,this.styleId=e.id}var r=this._map.style.sourceCaches;for(var n in r){var i=r[n].getSource();i.attribution&&t.indexOf(i.attribution)<0&&t.push(i.attribution)}t.sort(function(t,e){return t.length-e.length}),(t=t.filter(function(e,r){for(var n=r+1;n<t.length;n++)if(t[n].indexOf(e)>=0)return!1;return!0})).length?(this._container.innerHTML=t.join(\" | \"),this._container.classList.remove(\"mapboxgl-attrib-empty\")):this._container.classList.add(\"mapboxgl-attrib-empty\"),this._editLink=null}},nn.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add(\"mapboxgl-compact\"):this._container.classList.remove(\"mapboxgl-compact\")};var an=function(){t.bindAll([\"_updateLogo\"],this)};an.prototype.onAdd=function(t){this._map=t,this._container=s.create(\"div\",\"mapboxgl-ctrl\");var e=s.create(\"a\",\"mapboxgl-ctrl-logo\");return e.target=\"_blank\",e.href=\"https://www.mapbox.com/\",e.setAttribute(\"aria-label\",\"Mapbox logo\"),this._container.appendChild(e),this._container.style.display=\"none\",this._map.on(\"sourcedata\",this._updateLogo),this._updateLogo(),this._container},an.prototype.onRemove=function(){s.remove(this._container),this._map.off(\"sourcedata\",this._updateLogo)},an.prototype.getDefaultPosition=function(){return\"bottom-left\"},an.prototype._updateLogo=function(t){t&&\"metadata\"!==t.sourceDataType||(this._container.style.display=this._logoRequired()?\"block\":\"none\")},an.prototype._logoRequired=function(){if(this._map.style){var t=this._map.style.sourceCaches;for(var e in t)if(t[e].getSource().mapbox_logo)return!0;return!1}};var on=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};on.prototype.add=function(t){var e=++this._id;return this._queue.push({callback:t,id:e,cancelled:!1}),e},on.prototype.remove=function(t){for(var e=this._currentlyRunning,r=0,n=e?this._queue.concat(e):this._queue;r<n.length;r+=1){var i=n[r];if(i.id===t)return void(i.cancelled=!0)}},on.prototype.run=function(){var t=this._currentlyRunning=this._queue;this._queue=[];for(var e=0,r=t;e<r.length;e+=1){var n=r[e];if(!n.cancelled&&(n.callback(),this._cleared))break}this._cleared=!1,this._currentlyRunning=!1},on.prototype.clear=function(){this._currentlyRunning&&(this._cleared=!0),this._queue=[]};var sn=t.default.HTMLImageElement,ln=t.default.HTMLElement,cn={center:[0,0],zoom:0,bearing:0,pitch:0,minZoom:0,maxZoom:22,interactive:!0,scrollZoom:!0,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,bearingSnap:7,hash:!1,attributionControl:!0,failIfMajorPerformanceCaveat:!1,preserveDrawingBuffer:!1,trackResize:!0,renderWorldCopies:!0,refreshExpiredTiles:!0,maxTileCacheSize:null,transformRequest:null,fadeDuration:300},un=function(r){function n(e){if(null!=(e=t.extend({},cn,e)).minZoom&&null!=e.maxZoom&&e.minZoom>e.maxZoom)throw new Error(\"maxZoom must be greater than minZoom\");var n=new Fr(e.minZoom,e.maxZoom,e.renderWorldCopies);r.call(this,n,e),this._interactive=e.interactive,this._maxTileCacheSize=e.maxTileCacheSize,this._failIfMajorPerformanceCaveat=e.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=e.preserveDrawingBuffer,this._trackResize=e.trackResize,this._bearingSnap=e.bearingSnap,this._refreshExpiredTiles=e.refreshExpiredTiles,this._fadeDuration=e.fadeDuration,this._crossFadingFactor=1,this._collectResourceTiming=e.collectResourceTiming,this._renderTaskQueue=new on;var i=e.transformRequest;if(this._transformRequest=i?function(t,e){return i(t,e)||{url:t}}:function(t){return{url:t}},\"string\"==typeof e.container){var a=t.default.document.getElementById(e.container);if(!a)throw new Error(\"Container '\"+e.container+\"' not found.\");this._container=a}else{if(!(e.container instanceof ln))throw new Error(\"Invalid type: 'container' must be a String or HTMLElement.\");this._container=e.container}e.maxBounds&&this.setMaxBounds(e.maxBounds),t.bindAll([\"_onWindowOnline\",\"_onWindowResize\",\"_contextLost\",\"_contextRestored\",\"_update\",\"_render\",\"_onData\",\"_onDataLoading\"],this),this._setupContainer(),this._setupPainter(),this.on(\"move\",this._update.bind(this,!1)),this.on(\"zoom\",this._update.bind(this,!0)),void 0!==t.default&&(t.default.addEventListener(\"online\",this._onWindowOnline,!1),t.default.addEventListener(\"resize\",this._onWindowResize,!1)),function(t,e){var r=t.getCanvasContainer(),n=null,i=!1;for(var a in en)t[a]=new en[a](t,e),e.interactive&&e[a]&&t[a].enable(e[a]);s.addEventListener(r,\"mouseout\",function(e){t.fire(new Vr(\"mouseout\",t,e))}),s.addEventListener(r,\"mousedown\",function(r){i=!0;var n=new Vr(\"mousedown\",t,r);t.fire(n),n.defaultPrevented||(e.interactive&&!t.doubleClickZoom.isActive()&&t.stop(),t.boxZoom.onMouseDown(r),t.boxZoom.isActive()||t.dragPan.isActive()||t.dragRotate.onMouseDown(r),t.boxZoom.isActive()||t.dragRotate.isActive()||t.dragPan.onMouseDown(r))}),s.addEventListener(r,\"mouseup\",function(e){var r=t.dragRotate.isActive();n&&!r&&t.fire(new Vr(\"contextmenu\",t,n)),n=null,i=!1,t.fire(new Vr(\"mouseup\",t,e))}),s.addEventListener(r,\"mousemove\",function(e){if(!t.dragPan.isActive()&&!t.dragRotate.isActive()){for(var n=e.toElement||e.target;n&&n!==r;)n=n.parentNode;n===r&&t.fire(new Vr(\"mousemove\",t,e))}}),s.addEventListener(r,\"mouseover\",function(e){for(var n=e.toElement||e.target;n&&n!==r;)n=n.parentNode;n===r&&t.fire(new Vr(\"mouseover\",t,e))}),s.addEventListener(r,\"touchstart\",function(r){var n=new Ur(\"touchstart\",t,r);t.fire(n),n.defaultPrevented||(e.interactive&&t.stop(),t.boxZoom.isActive()||t.dragRotate.isActive()||t.dragPan.onTouchStart(r),t.touchZoomRotate.onStart(r),t.doubleClickZoom.onTouchStart(n))},{passive:!1}),s.addEventListener(r,\"touchmove\",function(e){t.fire(new Ur(\"touchmove\",t,e))},{passive:!1}),s.addEventListener(r,\"touchend\",function(e){t.fire(new Ur(\"touchend\",t,e))}),s.addEventListener(r,\"touchcancel\",function(e){t.fire(new Ur(\"touchcancel\",t,e))}),s.addEventListener(r,\"click\",function(e){t.fire(new Vr(\"click\",t,e))}),s.addEventListener(r,\"dblclick\",function(e){var r=new Vr(\"dblclick\",t,e);t.fire(r),r.defaultPrevented||t.doubleClickZoom.onDblClick(r)}),s.addEventListener(r,\"contextmenu\",function(e){var r=t.dragRotate.isActive();i||r?i&&(n=e):t.fire(new Vr(\"contextmenu\",t,e)),e.preventDefault()}),s.addEventListener(r,\"wheel\",function(e){var r=new qr(\"wheel\",t,e);t.fire(r),r.defaultPrevented||t.scrollZoom.onWheel(e)},{passive:!1})}(this,e),this._hash=e.hash&&(new jr).addTo(this),this._hash&&this._hash._onHashChange()||this.jumpTo({center:e.center,zoom:e.zoom,bearing:e.bearing,pitch:e.pitch}),this.resize(),e.style&&this.setStyle(e.style,{localIdeographFontFamily:e.localIdeographFontFamily}),e.attributionControl&&this.addControl(new nn),this.addControl(new an,e.logoPosition),this.on(\"style.load\",function(){this.transform.unmodified&&this.jumpTo(this.style.stylesheet)}),this.on(\"data\",this._onData),this.on(\"dataloading\",this._onDataLoading)}r&&(n.__proto__=r),n.prototype=Object.create(r&&r.prototype),n.prototype.constructor=n;var i={showTileBoundaries:{configurable:!0},showCollisionBoxes:{configurable:!0},showOverdrawInspector:{configurable:!0},repaint:{configurable:!0},vertices:{configurable:!0}};return n.prototype.addControl=function(t,e){void 0===e&&t.getDefaultPosition&&(e=t.getDefaultPosition()),void 0===e&&(e=\"top-right\");var r=t.onAdd(this),n=this._controlPositions[e];return-1!==e.indexOf(\"bottom\")?n.insertBefore(r,n.firstChild):n.appendChild(r),this},n.prototype.removeControl=function(t){return t.onRemove(this),this},n.prototype.resize=function(e){var r=this._containerDimensions(),n=r[0],i=r[1];return this._resizeCanvas(n,i),this.transform.resize(n,i),this.painter.resize(n,i),this.fire(new t.Event(\"movestart\",e)).fire(new t.Event(\"move\",e)).fire(new t.Event(\"resize\",e)).fire(new t.Event(\"moveend\",e))},n.prototype.getBounds=function(){var e=new W(this.transform.pointLocation(new t.default$1(0,this.transform.height)),this.transform.pointLocation(new t.default$1(this.transform.width,0)));return(this.transform.angle||this.transform.pitch)&&(e.extend(this.transform.pointLocation(new t.default$1(this.transform.size.x,0))),e.extend(this.transform.pointLocation(new t.default$1(0,this.transform.size.y)))),e},n.prototype.getMaxBounds=function(){return this.transform.latRange&&2===this.transform.latRange.length&&this.transform.lngRange&&2===this.transform.lngRange.length?new W([this.transform.lngRange[0],this.transform.latRange[0]],[this.transform.lngRange[1],this.transform.latRange[1]]):null},n.prototype.setMaxBounds=function(t){if(t){var e=W.convert(t);this.transform.lngRange=[e.getWest(),e.getEast()],this.transform.latRange=[e.getSouth(),e.getNorth()],this.transform._constrain(),this._update()}else null==t&&(this.transform.lngRange=null,this.transform.latRange=null,this._update());return this},n.prototype.setMinZoom=function(t){if((t=null==t?0:t)>=0&&t<=this.transform.maxZoom)return this.transform.minZoom=t,this._update(),this.getZoom()<t&&this.setZoom(t),this;throw new Error(\"minZoom must be between 0 and the current maxZoom, inclusive\")},n.prototype.getMinZoom=function(){return this.transform.minZoom},n.prototype.setMaxZoom=function(t){if((t=null==t?22:t)>=this.transform.minZoom)return this.transform.maxZoom=t,this._update(),this.getZoom()>t&&this.setZoom(t),this;throw new Error(\"maxZoom must be greater than the current minZoom\")},n.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},n.prototype.setRenderWorldCopies=function(t){return this.transform.renderWorldCopies=t,this._update(),this},n.prototype.getMaxZoom=function(){return this.transform.maxZoom},n.prototype.project=function(t){return this.transform.locationPoint(G.convert(t))},n.prototype.unproject=function(e){return this.transform.pointLocation(t.default$1.convert(e))},n.prototype.isMoving=function(){return this._moving||this.dragPan.isActive()||this.dragRotate.isActive()||this.scrollZoom.isActive()},n.prototype.isZooming=function(){return this._zooming||this.scrollZoom.isActive()},n.prototype.isRotating=function(){return this._rotating||this.dragRotate.isActive()},n.prototype.on=function(t,e,n){var i,a=this;if(void 0===n)return r.prototype.on.call(this,t,e);var o=function(){if(\"mouseenter\"===t||\"mouseover\"===t){var r=!1;return{layer:e,listener:n,delegates:{mousemove:function(i){var o=a.getLayer(e)?a.queryRenderedFeatures(i.point,{layers:[e]}):[];o.length?r||(r=!0,n.call(a,new Vr(t,a,i.originalEvent,{features:o}))):r=!1},mouseout:function(){r=!1}}}}if(\"mouseleave\"===t||\"mouseout\"===t){var o=!1;return{layer:e,listener:n,delegates:{mousemove:function(r){(a.getLayer(e)?a.queryRenderedFeatures(r.point,{layers:[e]}):[]).length?o=!0:o&&(o=!1,n.call(a,new Vr(t,a,r.originalEvent)))},mouseout:function(e){o&&(o=!1,n.call(a,new Vr(t,a,e.originalEvent)))}}}}return{layer:e,listener:n,delegates:(i={},i[t]=function(t){var r=a.getLayer(e)?a.queryRenderedFeatures(t.point,{layers:[e]}):[];r.length&&(t.features=r,n.call(a,t),delete t.features)},i)}}();for(var s in this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[t]=this._delegatedListeners[t]||[],this._delegatedListeners[t].push(o),o.delegates)a.on(s,o.delegates[s]);return this},n.prototype.off=function(t,e,n){if(void 0===n)return r.prototype.off.call(this,t,e);if(this._delegatedListeners&&this._delegatedListeners[t])for(var i=this._delegatedListeners[t],a=0;a<i.length;a++){var o=i[a];if(o.layer===e&&o.listener===n){for(var s in o.delegates)this.off(s,o.delegates[s]);return i.splice(a,1),this}}return this},n.prototype.queryRenderedFeatures=function(e,r){var n;return 2===arguments.length?(e=arguments[0],r=arguments[1]):1===arguments.length&&((n=arguments[0])instanceof t.default$1||Array.isArray(n))?(e=arguments[0],r={}):1===arguments.length?(e=void 0,r=arguments[0]):(e=void 0,r={}),this.style?this.style.queryRenderedFeatures(this._makeQueryGeometry(e),r,this.transform):[]},n.prototype._makeQueryGeometry=function(e){var r,n=this;if(void 0===e&&(e=[t.default$1.convert([0,0]),t.default$1.convert([this.transform.width,this.transform.height])]),e instanceof t.default$1||\"number\"==typeof e[0])r=[t.default$1.convert(e)];else{var i=[t.default$1.convert(e[0]),t.default$1.convert(e[1])];r=[i[0],new t.default$1(i[1].x,i[0].y),i[1],new t.default$1(i[0].x,i[1].y),i[0]]}return{viewport:r,worldCoordinate:r.map(function(t){return n.transform.pointCoordinate(t)})}},n.prototype.querySourceFeatures=function(t,e){return this.style.querySourceFeatures(t,e)},n.prototype.setStyle=function(e,r){if((!r||!1!==r.diff&&!r.localIdeographFontFamily)&&this.style&&e&&\"object\"==typeof e)try{return this.style.setState(e)&&this._update(!0),this}catch(e){t.warnOnce(\"Unable to perform style diff: \"+(e.message||e.error||e)+\". Rebuilding the style from scratch.\")}return this.style&&(this.style.setEventedParent(null),this.style._remove()),e?(this.style=new Je(this,r||{}),this.style.setEventedParent(this,{style:this.style}),\"string\"==typeof e?this.style.loadURL(e):this.style.loadJSON(e),this):(delete this.style,this)},n.prototype.getStyle=function(){if(this.style)return this.style.serialize()},n.prototype.isStyleLoaded=function(){return this.style?this.style.loaded():t.warnOnce(\"There is no style added to the map.\")},n.prototype.addSource=function(t,e){return this.style.addSource(t,e),this._update(!0),this},n.prototype.isSourceLoaded=function(e){var r=this.style&&this.style.sourceCaches[e];if(void 0!==r)return r.loaded();this.fire(new t.ErrorEvent(new Error(\"There is no source with ID '\"+e+\"'\")))},n.prototype.areTilesLoaded=function(){var t=this.style&&this.style.sourceCaches;for(var e in t){var r=t[e]._tiles;for(var n in r){var i=r[n];if(\"loaded\"!==i.state&&\"errored\"!==i.state)return!1}}return!0},n.prototype.addSourceType=function(t,e,r){return this.style.addSourceType(t,e,r)},n.prototype.removeSource=function(t){return this.style.removeSource(t),this._update(!0),this},n.prototype.getSource=function(t){return this.style.getSource(t)},n.prototype.addImage=function(e,r,n){void 0===n&&(n={});var i=n.pixelRatio;void 0===i&&(i=1);var o=n.sdf;if(void 0===o&&(o=!1),r instanceof sn){var s=a.getImageData(r),l=s.width,c=s.height,u=s.data;this.style.addImage(e,{data:new t.RGBAImage({width:l,height:c},u),pixelRatio:i,sdf:o})}else{if(void 0===r.width||void 0===r.height)return this.fire(new t.ErrorEvent(new Error(\"Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`\")));var f=r.width,h=r.height,p=r.data;this.style.addImage(e,{data:new t.RGBAImage({width:f,height:h},p.slice(0)),pixelRatio:i,sdf:o})}},n.prototype.hasImage=function(e){return e?!!this.style.getImage(e):(this.fire(new t.ErrorEvent(new Error(\"Missing required image id\"))),!1)},n.prototype.removeImage=function(t){this.style.removeImage(t)},n.prototype.loadImage=function(e,r){t.getImage(this._transformRequest(e,t.ResourceType.Image),r)},n.prototype.addLayer=function(t,e){return this.style.addLayer(t,e),this._update(!0),this},n.prototype.moveLayer=function(t,e){return this.style.moveLayer(t,e),this._update(!0),this},n.prototype.removeLayer=function(t){return this.style.removeLayer(t),this._update(!0),this},n.prototype.getLayer=function(t){return this.style.getLayer(t)},n.prototype.setFilter=function(t,e){return this.style.setFilter(t,e),this._update(!0),this},n.prototype.setLayerZoomRange=function(t,e,r){return this.style.setLayerZoomRange(t,e,r),this._update(!0),this},n.prototype.getFilter=function(t){return this.style.getFilter(t)},n.prototype.setPaintProperty=function(t,e,r){return this.style.setPaintProperty(t,e,r),this._update(!0),this},n.prototype.getPaintProperty=function(t,e){return this.style.getPaintProperty(t,e)},n.prototype.setLayoutProperty=function(t,e,r){return this.style.setLayoutProperty(t,e,r),this._update(!0),this},n.prototype.getLayoutProperty=function(t,e){return this.style.getLayoutProperty(t,e)},n.prototype.setLight=function(t){return this.style.setLight(t),this._update(!0),this},n.prototype.getLight=function(){return this.style.getLight()},n.prototype.getContainer=function(){return this._container},n.prototype.getCanvasContainer=function(){return this._canvasContainer},n.prototype.getCanvas=function(){return this._canvas},n.prototype._containerDimensions=function(){var t=0,e=0;return this._container&&(t=this._container.offsetWidth||400,e=this._container.offsetHeight||300),[t,e]},n.prototype._setupContainer=function(){var t=this._container;t.classList.add(\"mapboxgl-map\"),(this._missingCSSContainer=s.create(\"div\",\"mapboxgl-missing-css\",t)).innerHTML=\"Missing Mapbox GL JS CSS\";var e=this._canvasContainer=s.create(\"div\",\"mapboxgl-canvas-container\",t);this._interactive&&e.classList.add(\"mapboxgl-interactive\"),this._canvas=s.create(\"canvas\",\"mapboxgl-canvas\",e),this._canvas.style.position=\"absolute\",this._canvas.addEventListener(\"webglcontextlost\",this._contextLost,!1),this._canvas.addEventListener(\"webglcontextrestored\",this._contextRestored,!1),this._canvas.setAttribute(\"tabindex\",\"0\"),this._canvas.setAttribute(\"aria-label\",\"Map\");var r=this._containerDimensions();this._resizeCanvas(r[0],r[1]);var n=this._controlContainer=s.create(\"div\",\"mapboxgl-control-container\",t),i=this._controlPositions={};[\"top-left\",\"top-right\",\"bottom-left\",\"bottom-right\"].forEach(function(t){i[t]=s.create(\"div\",\"mapboxgl-ctrl-\"+t,n)})},n.prototype._resizeCanvas=function(e,r){var n=t.default.devicePixelRatio||1;this._canvas.width=n*e,this._canvas.height=n*r,this._canvas.style.width=e+\"px\",this._canvas.style.height=r+\"px\"},n.prototype._setupPainter=function(){var r=t.extend({failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer},e.webGLContextAttributes),n=this._canvas.getContext(\"webgl\",r)||this._canvas.getContext(\"experimental-webgl\",r);n?this.painter=new zr(n,this.transform):this.fire(new t.ErrorEvent(new Error(\"Failed to initialize WebGL\")))},n.prototype._contextLost=function(e){e.preventDefault(),this._frameId&&(a.cancelFrame(this._frameId),this._frameId=null),this.fire(new t.Event(\"webglcontextlost\",{originalEvent:e}))},n.prototype._contextRestored=function(e){this._setupPainter(),this.resize(),this._update(),this.fire(new t.Event(\"webglcontextrestored\",{originalEvent:e}))},n.prototype.loaded=function(){return!this._styleDirty&&!this._sourcesDirty&&!(!this.style||!this.style.loaded())},n.prototype._update=function(t){this.style&&(this._styleDirty=this._styleDirty||t,this._sourcesDirty=!0,this._rerender())},n.prototype._requestRenderFrame=function(t){return this._update(),this._renderTaskQueue.add(t)},n.prototype._cancelRenderFrame=function(t){this._renderTaskQueue.remove(t)},n.prototype._render=function(){this._renderTaskQueue.run();var e=!1;if(this.style&&this._styleDirty){this._styleDirty=!1;var r=this.transform.zoom,n=a.now();this.style.zoomHistory.update(r,n);var i=new t.default$16(r,{now:n,fadeDuration:this._fadeDuration,zoomHistory:this.style.zoomHistory,transition:this.style.getTransition()}),o=i.crossFadingFactor();1===o&&o===this._crossFadingFactor||(e=!0,this._crossFadingFactor=o),this.style.update(i)}return this.style&&this._sourcesDirty&&(this._sourcesDirty=!1,this.style._updateSources(this.transform)),this._placementDirty=this.style&&this.style._updatePlacement(this.painter.transform,this.showCollisionBoxes,this._fadeDuration),this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showOverdrawInspector:this._showOverdrawInspector,rotating:this.isRotating(),zooming:this.isZooming(),fadeDuration:this._fadeDuration}),this.fire(new t.Event(\"render\")),this.loaded()&&!this._loaded&&(this._loaded=!0,this.fire(new t.Event(\"load\"))),this.style&&(this.style.hasTransitions()||e)&&(this._styleDirty=!0),(this._sourcesDirty||this._repaint||this._styleDirty||this._placementDirty)&&this._rerender(),this},n.prototype.remove=function(){this._hash&&this._hash.remove(),a.cancelFrame(this._frameId),this._renderTaskQueue.clear(),this._frameId=null,this.setStyle(null),void 0!==t.default&&(t.default.removeEventListener(\"resize\",this._onWindowResize,!1),t.default.removeEventListener(\"online\",this._onWindowOnline,!1));var e=this.painter.context.gl.getExtension(\"WEBGL_lose_context\");e&&e.loseContext(),fn(this._canvasContainer),fn(this._controlContainer),fn(this._missingCSSContainer),this._container.classList.remove(\"mapboxgl-map\"),this.fire(new t.Event(\"remove\"))},n.prototype._rerender=function(){var t=this;this.style&&!this._frameId&&(this._frameId=a.frame(function(){t._frameId=null,t._render()}))},n.prototype._onWindowOnline=function(){this._update()},n.prototype._onWindowResize=function(){this._trackResize&&this.stop().resize()._update()},i.showTileBoundaries.get=function(){return!!this._showTileBoundaries},i.showTileBoundaries.set=function(t){this._showTileBoundaries!==t&&(this._showTileBoundaries=t,this._update())},i.showCollisionBoxes.get=function(){return!!this._showCollisionBoxes},i.showCollisionBoxes.set=function(t){this._showCollisionBoxes!==t&&(this._showCollisionBoxes=t,t?this.style._generateCollisionBoxes():this._update())},i.showOverdrawInspector.get=function(){return!!this._showOverdrawInspector},i.showOverdrawInspector.set=function(t){this._showOverdrawInspector!==t&&(this._showOverdrawInspector=t,this._update())},i.repaint.get=function(){return!!this._repaint},i.repaint.set=function(t){this._repaint=t,this._update()},i.vertices.get=function(){return!!this._vertices},i.vertices.set=function(t){this._vertices=t,this._update()},n.prototype._onData=function(e){this._update(\"style\"===e.dataType),this.fire(new t.Event(e.dataType+\"data\",e))},n.prototype._onDataLoading=function(e){this.fire(new t.Event(e.dataType+\"dataloading\",e))},Object.defineProperties(n.prototype,i),n}(rn);function fn(t){t.parentNode&&t.parentNode.removeChild(t)}var hn={showCompass:!0,showZoom:!0},pn=function(e){var r=this;this.options=t.extend({},hn,e),this._container=s.create(\"div\",\"mapboxgl-ctrl mapboxgl-ctrl-group\"),this._container.addEventListener(\"contextmenu\",function(t){return t.preventDefault()}),this.options.showZoom&&(this._zoomInButton=this._createButton(\"mapboxgl-ctrl-icon mapboxgl-ctrl-zoom-in\",\"Zoom In\",function(){return r._map.zoomIn()}),this._zoomOutButton=this._createButton(\"mapboxgl-ctrl-icon mapboxgl-ctrl-zoom-out\",\"Zoom Out\",function(){return r._map.zoomOut()})),this.options.showCompass&&(t.bindAll([\"_rotateCompassArrow\"],this),this._compass=this._createButton(\"mapboxgl-ctrl-icon mapboxgl-ctrl-compass\",\"Reset North\",function(){return r._map.resetNorth()}),this._compassArrow=s.create(\"span\",\"mapboxgl-ctrl-compass-arrow\",this._compass))};function dn(t,e,r){if(t=new G(t.lng,t.lat),e){var n=new G(t.lng-360,t.lat),i=new G(t.lng+360,t.lat),a=r.locationPoint(t).distSqr(e);r.locationPoint(n).distSqr(e)<a?t=n:r.locationPoint(i).distSqr(e)<a&&(t=i)}for(;Math.abs(t.lng-r.center.lng)>180;){var o=r.locationPoint(t);if(o.x>=0&&o.y>=0&&o.x<=r.width&&o.y<=r.height)break;t.lng>r.center.lng?t.lng-=360:t.lng+=360}return t}pn.prototype._rotateCompassArrow=function(){var t=\"rotate(\"+this._map.transform.angle*(180/Math.PI)+\"deg)\";this._compassArrow.style.transform=t},pn.prototype.onAdd=function(t){return this._map=t,this.options.showCompass&&(this._map.on(\"rotate\",this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new Yr(t,{button:\"left\",element:this._compass}),this._handler.enable()),this._container},pn.prototype.onRemove=function(){s.remove(this._container),this.options.showCompass&&(this._map.off(\"rotate\",this._rotateCompassArrow),this._handler.disable(),delete this._handler),delete this._map},pn.prototype._createButton=function(t,e,r){var n=s.create(\"button\",t,this._container);return n.type=\"button\",n.setAttribute(\"aria-label\",e),n.addEventListener(\"click\",r),n};var gn={center:\"translate(-50%,-50%)\",top:\"translate(-50%,0)\",\"top-left\":\"translate(0,0)\",\"top-right\":\"translate(-100%,0)\",bottom:\"translate(-50%,-100%)\",\"bottom-left\":\"translate(0,-100%)\",\"bottom-right\":\"translate(-100%,-100%)\",left:\"translate(0,-50%)\",right:\"translate(-100%,-50%)\"};function vn(t,e,r){var n=t.classList;for(var i in gn)n.remove(\"mapboxgl-\"+r+\"-anchor-\"+i);n.add(\"mapboxgl-\"+r+\"-anchor-\"+e)}var mn=function(e){if((arguments[0]instanceof t.default.HTMLElement||2===arguments.length)&&(e=t.extend({element:e},arguments[1])),t.bindAll([\"_update\",\"_onMapClick\"],this),this._anchor=e&&e.anchor||\"center\",this._color=e&&e.color||\"#3FB1CE\",e&&e.element)this._element=e.element,this._offset=t.default$1.convert(e&&e.offset||[0,0]);else{this._defaultMarker=!0,this._element=s.create(\"div\");var r=s.createNS(\"http://www.w3.org/2000/svg\",\"svg\");r.setAttributeNS(null,\"height\",\"41px\"),r.setAttributeNS(null,\"width\",\"27px\"),r.setAttributeNS(null,\"viewBox\",\"0 0 27 41\");var n=s.createNS(\"http://www.w3.org/2000/svg\",\"g\");n.setAttributeNS(null,\"stroke\",\"none\"),n.setAttributeNS(null,\"stroke-width\",\"1\"),n.setAttributeNS(null,\"fill\",\"none\"),n.setAttributeNS(null,\"fill-rule\",\"evenodd\");var i=s.createNS(\"http://www.w3.org/2000/svg\",\"g\");i.setAttributeNS(null,\"fill-rule\",\"nonzero\");var a=s.createNS(\"http://www.w3.org/2000/svg\",\"g\");a.setAttributeNS(null,\"transform\",\"translate(3.0, 29.0)\"),a.setAttributeNS(null,\"fill\",\"#000000\");for(var o=0,l=[{rx:\"10.5\",ry:\"5.25002273\"},{rx:\"10.5\",ry:\"5.25002273\"},{rx:\"9.5\",ry:\"4.77275007\"},{rx:\"8.5\",ry:\"4.29549936\"},{rx:\"7.5\",ry:\"3.81822308\"},{rx:\"6.5\",ry:\"3.34094679\"},{rx:\"5.5\",ry:\"2.86367051\"},{rx:\"4.5\",ry:\"2.38636864\"}];o<l.length;o+=1){var c=l[o],u=s.createNS(\"http://www.w3.org/2000/svg\",\"ellipse\");u.setAttributeNS(null,\"opacity\",\"0.04\"),u.setAttributeNS(null,\"cx\",\"10.5\"),u.setAttributeNS(null,\"cy\",\"5.80029008\"),u.setAttributeNS(null,\"rx\",c.rx),u.setAttributeNS(null,\"ry\",c.ry),a.appendChild(u)}var f=s.createNS(\"http://www.w3.org/2000/svg\",\"g\");f.setAttributeNS(null,\"fill\",this._color);var h=s.createNS(\"http://www.w3.org/2000/svg\",\"path\");h.setAttributeNS(null,\"d\",\"M27,13.5 C27,19.074644 20.250001,27.000002 14.75,34.500002 C14.016665,35.500004 12.983335,35.500004 12.25,34.500002 C6.7499993,27.000002 0,19.222562 0,13.5 C0,6.0441559 6.0441559,0 13.5,0 C20.955844,0 27,6.0441559 27,13.5 Z\"),f.appendChild(h);var p=s.createNS(\"http://www.w3.org/2000/svg\",\"g\");p.setAttributeNS(null,\"opacity\",\"0.25\"),p.setAttributeNS(null,\"fill\",\"#000000\");var d=s.createNS(\"http://www.w3.org/2000/svg\",\"path\");d.setAttributeNS(null,\"d\",\"M13.5,0 C6.0441559,0 0,6.0441559 0,13.5 C0,19.222562 6.7499993,27 12.25,34.5 C13,35.522727 14.016664,35.500004 14.75,34.5 C20.250001,27 27,19.074644 27,13.5 C27,6.0441559 20.955844,0 13.5,0 Z M13.5,1 C20.415404,1 26,6.584596 26,13.5 C26,15.898657 24.495584,19.181431 22.220703,22.738281 C19.945823,26.295132 16.705119,30.142167 13.943359,33.908203 C13.743445,34.180814 13.612715,34.322738 13.5,34.441406 C13.387285,34.322738 13.256555,34.180814 13.056641,33.908203 C10.284481,30.127985 7.4148684,26.314159 5.015625,22.773438 C2.6163816,19.232715 1,15.953538 1,13.5 C1,6.584596 6.584596,1 13.5,1 Z\"),p.appendChild(d);var g=s.createNS(\"http://www.w3.org/2000/svg\",\"g\");g.setAttributeNS(null,\"transform\",\"translate(6.0, 7.0)\"),g.setAttributeNS(null,\"fill\",\"#FFFFFF\");var v=s.createNS(\"http://www.w3.org/2000/svg\",\"g\");v.setAttributeNS(null,\"transform\",\"translate(8.0, 8.0)\");var m=s.createNS(\"http://www.w3.org/2000/svg\",\"circle\");m.setAttributeNS(null,\"fill\",\"#000000\"),m.setAttributeNS(null,\"opacity\",\"0.25\"),m.setAttributeNS(null,\"cx\",\"5.5\"),m.setAttributeNS(null,\"cy\",\"5.5\"),m.setAttributeNS(null,\"r\",\"5.4999962\");var y=s.createNS(\"http://www.w3.org/2000/svg\",\"circle\");y.setAttributeNS(null,\"fill\",\"#FFFFFF\"),y.setAttributeNS(null,\"cx\",\"5.5\"),y.setAttributeNS(null,\"cy\",\"5.5\"),y.setAttributeNS(null,\"r\",\"5.4999962\"),v.appendChild(m),v.appendChild(y),i.appendChild(a),i.appendChild(f),i.appendChild(p),i.appendChild(g),i.appendChild(v),r.appendChild(i),this._element.appendChild(r),this._offset=t.default$1.convert(e&&e.offset||[0,-14])}this._element.classList.add(\"mapboxgl-marker\"),this._popup=null};mn.prototype.addTo=function(t){return this.remove(),this._map=t,t.getCanvasContainer().appendChild(this._element),t.on(\"move\",this._update),t.on(\"moveend\",this._update),this._update(),this._map.on(\"click\",this._onMapClick),this},mn.prototype.remove=function(){return this._map&&(this._map.off(\"click\",this._onMapClick),this._map.off(\"move\",this._update),this._map.off(\"moveend\",this._update),delete this._map),s.remove(this._element),this._popup&&this._popup.remove(),this},mn.prototype.getLngLat=function(){return this._lngLat},mn.prototype.setLngLat=function(t){return this._lngLat=G.convert(t),this._pos=null,this._popup&&this._popup.setLngLat(this._lngLat),this._update(),this},mn.prototype.getElement=function(){return this._element},mn.prototype.setPopup=function(t){if(this._popup&&(this._popup.remove(),this._popup=null),t){if(!(\"offset\"in t.options)){var e=Math.sqrt(Math.pow(13.5,2)/2);t.options.offset=this._defaultMarker?{top:[0,0],\"top-left\":[0,0],\"top-right\":[0,0],bottom:[0,-38.1],\"bottom-left\":[e,-1*(24.6+e)],\"bottom-right\":[-e,-1*(24.6+e)],left:[13.5,-24.6],right:[-13.5,-24.6]}:this._offset}this._popup=t,this._lngLat&&this._popup.setLngLat(this._lngLat)}return this},mn.prototype._onMapClick=function(t){var e=t.originalEvent.target,r=this._element;this._popup&&(e===r||r.contains(e))&&this.togglePopup()},mn.prototype.getPopup=function(){return this._popup},mn.prototype.togglePopup=function(){var t=this._popup;return t?(t.isOpen()?t.remove():t.addTo(this._map),this):this},mn.prototype._update=function(t){this._map&&(this._map.transform.renderWorldCopies&&(this._lngLat=dn(this._lngLat,this._pos,this._map.transform)),this._pos=this._map.project(this._lngLat)._add(this._offset),t&&\"moveend\"!==t.type||(this._pos=this._pos.round()),s.setTransform(this._element,gn[this._anchor]+\" translate(\"+this._pos.x+\"px, \"+this._pos.y+\"px)\"),vn(this._element,this._anchor,\"marker\"))},mn.prototype.getOffset=function(){return this._offset},mn.prototype.setOffset=function(e){return this._offset=t.default$1.convert(e),this._update(),this};var yn,xn={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showUserLocation:!0},bn=function(e){function r(r){e.call(this),this.options=t.extend({},xn,r),t.bindAll([\"_onSuccess\",\"_onError\",\"_finish\",\"_setupUI\",\"_updateCamera\",\"_updateMarker\"],this)}return e&&(r.__proto__=e),r.prototype=Object.create(e&&e.prototype),r.prototype.constructor=r,r.prototype.onAdd=function(e){var r;return this._map=e,this._container=s.create(\"div\",\"mapboxgl-ctrl mapboxgl-ctrl-group\"),r=this._setupUI,void 0!==yn?r(yn):void 0!==t.default.navigator.permissions?t.default.navigator.permissions.query({name:\"geolocation\"}).then(function(t){yn=\"denied\"!==t.state,r(yn)}):(yn=!!t.default.navigator.geolocation,r(yn)),this._container},r.prototype.onRemove=function(){void 0!==this._geolocationWatchID&&(t.default.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker.remove(),s.remove(this._container),this._map=void 0},r.prototype._onSuccess=function(e){if(this.options.trackUserLocation)switch(this._lastKnownPosition=e,this._watchState){case\"WAITING_ACTIVE\":case\"ACTIVE_LOCK\":case\"ACTIVE_ERROR\":this._watchState=\"ACTIVE_LOCK\",this._geolocateButton.classList.remove(\"mapboxgl-ctrl-geolocate-waiting\"),this._geolocateButton.classList.remove(\"mapboxgl-ctrl-geolocate-active-error\"),this._geolocateButton.classList.add(\"mapboxgl-ctrl-geolocate-active\");break;case\"BACKGROUND\":case\"BACKGROUND_ERROR\":this._watchState=\"BACKGROUND\",this._geolocateButton.classList.remove(\"mapboxgl-ctrl-geolocate-waiting\"),this._geolocateButton.classList.remove(\"mapboxgl-ctrl-geolocate-background-error\"),this._geolocateButton.classList.add(\"mapboxgl-ctrl-geolocate-background\")}this.options.showUserLocation&&\"OFF\"!==this._watchState&&this._updateMarker(e),this.options.trackUserLocation&&\"ACTIVE_LOCK\"!==this._watchState||this._updateCamera(e),this.options.showUserLocation&&this._dotElement.classList.remove(\"mapboxgl-user-location-dot-stale\"),this.fire(new t.Event(\"geolocate\",e)),this._finish()},r.prototype._updateCamera=function(t){var e=new G(t.coords.longitude,t.coords.latitude),r=t.coords.accuracy;this._map.fitBounds(e.toBounds(r),this.options.fitBoundsOptions,{geolocateSource:!0})},r.prototype._updateMarker=function(t){t?this._userLocationDotMarker.setLngLat([t.coords.longitude,t.coords.latitude]).addTo(this._map):this._userLocationDotMarker.remove()},r.prototype._onError=function(e){if(this.options.trackUserLocation)if(1===e.code)this._watchState=\"OFF\",this._geolocateButton.classList.remove(\"mapboxgl-ctrl-geolocate-waiting\"),this._geolocateButton.classList.remove(\"mapboxgl-ctrl-geolocate-active\"),this._geolocateButton.classList.remove(\"mapboxgl-ctrl-geolocate-active-error\"),this._geolocateButton.classList.remove(\"mapboxgl-ctrl-geolocate-background\"),this._geolocateButton.classList.remove(\"mapboxgl-ctrl-geolocate-background-error\"),void 0!==this._geolocationWatchID&&this._clearWatch();else switch(this._watchState){case\"WAITING_ACTIVE\":this._watchState=\"ACTIVE_ERROR\",this._geolocateButton.classList.remove(\"mapboxgl-ctrl-geolocate-active\"),this._geolocateButton.classList.add(\"mapboxgl-ctrl-geolocate-active-error\");break;case\"ACTIVE_LOCK\":this._watchState=\"ACTIVE_ERROR\",this._geolocateButton.classList.remove(\"mapboxgl-ctrl-geolocate-active\"),this._geolocateButton.classList.add(\"mapboxgl-ctrl-geolocate-active-error\"),this._geolocateButton.classList.add(\"mapboxgl-ctrl-geolocate-waiting\");break;case\"BACKGROUND\":this._watchState=\"BACKGROUND_ERROR\",this._geolocateButton.classList.remove(\"mapboxgl-ctrl-geolocate-background\"),this._geolocateButton.classList.add(\"mapboxgl-ctrl-geolocate-background-error\"),this._geolocateButton.classList.add(\"mapboxgl-ctrl-geolocate-waiting\")}\"OFF\"!==this._watchState&&this.options.showUserLocation&&this._dotElement.classList.add(\"mapboxgl-user-location-dot-stale\"),this.fire(new t.Event(\"error\",e)),this._finish()},r.prototype._finish=function(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},r.prototype._setupUI=function(e){var r=this;!1!==e&&(this._container.addEventListener(\"contextmenu\",function(t){return t.preventDefault()}),this._geolocateButton=s.create(\"button\",\"mapboxgl-ctrl-icon mapboxgl-ctrl-geolocate\",this._container),this._geolocateButton.type=\"button\",this._geolocateButton.setAttribute(\"aria-label\",\"Geolocate\"),this.options.trackUserLocation&&(this._geolocateButton.setAttribute(\"aria-pressed\",\"false\"),this._watchState=\"OFF\"),this.options.showUserLocation&&(this._dotElement=s.create(\"div\",\"mapboxgl-user-location-dot\"),this._userLocationDotMarker=new mn(this._dotElement),this.options.trackUserLocation&&(this._watchState=\"OFF\")),this._geolocateButton.addEventListener(\"click\",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on(\"movestart\",function(e){e.geolocateSource||\"ACTIVE_LOCK\"!==r._watchState||(r._watchState=\"BACKGROUND\",r._geolocateButton.classList.add(\"mapboxgl-ctrl-geolocate-background\"),r._geolocateButton.classList.remove(\"mapboxgl-ctrl-geolocate-active\"),r.fire(new t.Event(\"trackuserlocationend\")))}))},r.prototype.trigger=function(){if(!this._setup)return t.warnOnce(\"Geolocate control triggered before added to a map\"),!1;if(this.options.trackUserLocation){switch(this._watchState){case\"OFF\":this._watchState=\"WAITING_ACTIVE\",this.fire(new t.Event(\"trackuserlocationstart\"));break;case\"WAITING_ACTIVE\":case\"ACTIVE_LOCK\":case\"ACTIVE_ERROR\":case\"BACKGROUND_ERROR\":this._watchState=\"OFF\",this._geolocateButton.classList.remove(\"mapboxgl-ctrl-geolocate-waiting\"),this._geolocateButton.classList.remove(\"mapboxgl-ctrl-geolocate-active\"),this._geolocateButton.classList.remove(\"mapboxgl-ctrl-geolocate-active-error\"),this._geolocateButton.classList.remove(\"mapboxgl-ctrl-geolocate-background\"),this._geolocateButton.classList.remove(\"mapboxgl-ctrl-geolocate-background-error\"),this.fire(new t.Event(\"trackuserlocationend\"));break;case\"BACKGROUND\":this._watchState=\"ACTIVE_LOCK\",this._geolocateButton.classList.remove(\"mapboxgl-ctrl-geolocate-background\"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new t.Event(\"trackuserlocationstart\"))}switch(this._watchState){case\"WAITING_ACTIVE\":this._geolocateButton.classList.add(\"mapboxgl-ctrl-geolocate-waiting\"),this._geolocateButton.classList.add(\"mapboxgl-ctrl-geolocate-active\");break;case\"ACTIVE_LOCK\":this._geolocateButton.classList.add(\"mapboxgl-ctrl-geolocate-active\");break;case\"ACTIVE_ERROR\":this._geolocateButton.classList.add(\"mapboxgl-ctrl-geolocate-waiting\"),this._geolocateButton.classList.add(\"mapboxgl-ctrl-geolocate-active-error\");break;case\"BACKGROUND\":this._geolocateButton.classList.add(\"mapboxgl-ctrl-geolocate-background\");break;case\"BACKGROUND_ERROR\":this._geolocateButton.classList.add(\"mapboxgl-ctrl-geolocate-waiting\"),this._geolocateButton.classList.add(\"mapboxgl-ctrl-geolocate-background-error\")}\"OFF\"===this._watchState&&void 0!==this._geolocationWatchID?this._clearWatch():void 0===this._geolocationWatchID&&(this._geolocateButton.classList.add(\"mapboxgl-ctrl-geolocate-waiting\"),this._geolocateButton.setAttribute(\"aria-pressed\",\"true\"),this._geolocationWatchID=t.default.navigator.geolocation.watchPosition(this._onSuccess,this._onError,this.options.positionOptions))}else t.default.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0},r.prototype._clearWatch=function(){t.default.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove(\"mapboxgl-ctrl-geolocate-waiting\"),this._geolocateButton.setAttribute(\"aria-pressed\",\"false\"),this.options.showUserLocation&&this._updateMarker(null)},r}(t.Evented),_n={maxWidth:100,unit:\"metric\"},wn=function(e){this.options=t.extend({},_n,e),t.bindAll([\"_onMove\",\"setUnit\"],this)};function kn(t,e,r){var n,i,a,o,s,l,c=r&&r.maxWidth||100,u=t._container.clientHeight/2,f=(n=t.unproject([0,u]),i=t.unproject([c,u]),a=Math.PI/180,o=n.lat*a,s=i.lat*a,l=Math.sin(o)*Math.sin(s)+Math.cos(o)*Math.cos(s)*Math.cos((i.lng-n.lng)*a),6371e3*Math.acos(Math.min(l,1)));if(r&&\"imperial\"===r.unit){var h=3.2808*f;h>5280?Mn(e,c,h/5280,\"mi\"):Mn(e,c,h,\"ft\")}else r&&\"nautical\"===r.unit?Mn(e,c,f/1852,\"nm\"):Mn(e,c,f,\"m\")}function Mn(t,e,r,n){var i,a,o,s=(i=r,(a=Math.pow(10,(\"\"+Math.floor(i)).length-1))*(o=(o=i/a)>=10?10:o>=5?5:o>=3?3:o>=2?2:1)),l=s/r;\"m\"===n&&s>=1e3&&(s/=1e3,n=\"km\"),t.style.width=e*l+\"px\",t.innerHTML=s+n}wn.prototype.getDefaultPosition=function(){return\"bottom-left\"},wn.prototype._onMove=function(){kn(this._map,this._container,this.options)},wn.prototype.onAdd=function(t){return this._map=t,this._container=s.create(\"div\",\"mapboxgl-ctrl mapboxgl-ctrl-scale\",t.getContainer()),this._map.on(\"move\",this._onMove),this._onMove(),this._container},wn.prototype.onRemove=function(){s.remove(this._container),this._map.off(\"move\",this._onMove),this._map=void 0},wn.prototype.setUnit=function(t){this.options.unit=t,kn(this._map,this._container,this.options)};var An=function(){this._fullscreen=!1,t.bindAll([\"_onClickFullscreen\",\"_changeIcon\"],this),\"onfullscreenchange\"in t.default.document?this._fullscreenchange=\"fullscreenchange\":\"onmozfullscreenchange\"in t.default.document?this._fullscreenchange=\"mozfullscreenchange\":\"onwebkitfullscreenchange\"in t.default.document?this._fullscreenchange=\"webkitfullscreenchange\":\"onmsfullscreenchange\"in t.default.document&&(this._fullscreenchange=\"MSFullscreenChange\"),this._className=\"mapboxgl-ctrl\"};An.prototype.onAdd=function(e){return this._map=e,this._mapContainer=this._map.getContainer(),this._container=s.create(\"div\",this._className+\" mapboxgl-ctrl-group\"),this._checkFullscreenSupport()?this._setupUI():(this._container.style.display=\"none\",t.warnOnce(\"This device does not support fullscreen mode.\")),this._container},An.prototype.onRemove=function(){s.remove(this._container),this._map=null,t.default.document.removeEventListener(this._fullscreenchange,this._changeIcon)},An.prototype._checkFullscreenSupport=function(){return!!(t.default.document.fullscreenEnabled||t.default.document.mozFullScreenEnabled||t.default.document.msFullscreenEnabled||t.default.document.webkitFullscreenEnabled)},An.prototype._setupUI=function(){var e=this._fullscreenButton=s.create(\"button\",this._className+\"-icon \"+this._className+\"-fullscreen\",this._container);e.setAttribute(\"aria-label\",\"Toggle fullscreen\"),e.type=\"button\",this._fullscreenButton.addEventListener(\"click\",this._onClickFullscreen),t.default.document.addEventListener(this._fullscreenchange,this._changeIcon)},An.prototype._isFullscreen=function(){return this._fullscreen},An.prototype._changeIcon=function(){(t.default.document.fullscreenElement||t.default.document.mozFullScreenElement||t.default.document.webkitFullscreenElement||t.default.document.msFullscreenElement)===this._mapContainer!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle(this._className+\"-shrink\"),this._fullscreenButton.classList.toggle(this._className+\"-fullscreen\"))},An.prototype._onClickFullscreen=function(){this._isFullscreen()?t.default.document.exitFullscreen?t.default.document.exitFullscreen():t.default.document.mozCancelFullScreen?t.default.document.mozCancelFullScreen():t.default.document.msExitFullscreen?t.default.document.msExitFullscreen():t.default.document.webkitCancelFullScreen&&t.default.document.webkitCancelFullScreen():this._mapContainer.requestFullscreen?this._mapContainer.requestFullscreen():this._mapContainer.mozRequestFullScreen?this._mapContainer.mozRequestFullScreen():this._mapContainer.msRequestFullscreen?this._mapContainer.msRequestFullscreen():this._mapContainer.webkitRequestFullscreen&&this._mapContainer.webkitRequestFullscreen()};var Tn={closeButton:!0,closeOnClick:!0},Sn=function(e){function r(r){e.call(this),this.options=t.extend(Object.create(Tn),r),t.bindAll([\"_update\",\"_onClickClose\"],this)}return e&&(r.__proto__=e),r.prototype=Object.create(e&&e.prototype),r.prototype.constructor=r,r.prototype.addTo=function(e){return this._map=e,this._map.on(\"move\",this._update),this.options.closeOnClick&&this._map.on(\"click\",this._onClickClose),this._update(),this.fire(new t.Event(\"open\")),this},r.prototype.isOpen=function(){return!!this._map},r.prototype.remove=function(){return this._content&&s.remove(this._content),this._container&&(s.remove(this._container),delete this._container),this._map&&(this._map.off(\"move\",this._update),this._map.off(\"click\",this._onClickClose),delete this._map),this.fire(new t.Event(\"close\")),this},r.prototype.getLngLat=function(){return this._lngLat},r.prototype.setLngLat=function(t){return this._lngLat=G.convert(t),this._pos=null,this._update(),this},r.prototype.setText=function(e){return this.setDOMContent(t.default.document.createTextNode(e))},r.prototype.setHTML=function(e){var r,n=t.default.document.createDocumentFragment(),i=t.default.document.createElement(\"body\");for(i.innerHTML=e;r=i.firstChild;)n.appendChild(r);return this.setDOMContent(n)},r.prototype.setDOMContent=function(t){return this._createContent(),this._content.appendChild(t),this._update(),this},r.prototype._createContent=function(){this._content&&s.remove(this._content),this._content=s.create(\"div\",\"mapboxgl-popup-content\",this._container),this.options.closeButton&&(this._closeButton=s.create(\"button\",\"mapboxgl-popup-close-button\",this._content),this._closeButton.type=\"button\",this._closeButton.setAttribute(\"aria-label\",\"Close popup\"),this._closeButton.innerHTML=\"&#215;\",this._closeButton.addEventListener(\"click\",this._onClickClose))},r.prototype._update=function(){if(this._map&&this._lngLat&&this._content){this._container||(this._container=s.create(\"div\",\"mapboxgl-popup\",this._map.getContainer()),this._tip=s.create(\"div\",\"mapboxgl-popup-tip\",this._container),this._container.appendChild(this._content)),this._map.transform.renderWorldCopies&&(this._lngLat=dn(this._lngLat,this._pos,this._map.transform));var e=this._pos=this._map.project(this._lngLat),r=this.options.anchor,n=function e(r){if(r){if(\"number\"==typeof r){var n=Math.round(Math.sqrt(.5*Math.pow(r,2)));return{center:new t.default$1(0,0),top:new t.default$1(0,r),\"top-left\":new t.default$1(n,n),\"top-right\":new t.default$1(-n,n),bottom:new t.default$1(0,-r),\"bottom-left\":new t.default$1(n,-n),\"bottom-right\":new t.default$1(-n,-n),left:new t.default$1(r,0),right:new t.default$1(-r,0)}}if(r instanceof t.default$1||Array.isArray(r)){var i=t.default$1.convert(r);return{center:i,top:i,\"top-left\":i,\"top-right\":i,bottom:i,\"bottom-left\":i,\"bottom-right\":i,left:i,right:i}}return{center:t.default$1.convert(r.center||[0,0]),top:t.default$1.convert(r.top||[0,0]),\"top-left\":t.default$1.convert(r[\"top-left\"]||[0,0]),\"top-right\":t.default$1.convert(r[\"top-right\"]||[0,0]),bottom:t.default$1.convert(r.bottom||[0,0]),\"bottom-left\":t.default$1.convert(r[\"bottom-left\"]||[0,0]),\"bottom-right\":t.default$1.convert(r[\"bottom-right\"]||[0,0]),left:t.default$1.convert(r.left||[0,0]),right:t.default$1.convert(r.right||[0,0])}}return e(new t.default$1(0,0))}(this.options.offset);if(!r){var i,a=this._container.offsetWidth,o=this._container.offsetHeight;i=e.y+n.bottom.y<o?[\"top\"]:e.y>this._map.transform.height-o?[\"bottom\"]:[],e.x<a/2?i.push(\"left\"):e.x>this._map.transform.width-a/2&&i.push(\"right\"),r=0===i.length?\"bottom\":i.join(\"-\")}var l=e.add(n[r]).round();s.setTransform(this._container,gn[r]+\" translate(\"+l.x+\"px,\"+l.y+\"px)\"),vn(this._container,r,\"popup\")}},r.prototype._onClickClose=function(){this.remove()},r}(t.Evented),En={version:\"0.45.0\",supported:e,workerCount:Math.max(Math.floor(a.hardwareConcurrency/2),1),setRTLTextPlugin:t.setRTLTextPlugin,Map:un,NavigationControl:pn,GeolocateControl:bn,AttributionControl:nn,ScaleControl:wn,FullscreenControl:An,Popup:Sn,Marker:mn,Style:Je,LngLat:G,LngLatBounds:W,Point:t.default$1,Evented:t.Evented,config:v,get accessToken(){return v.ACCESS_TOKEN},set accessToken(t){v.ACCESS_TOKEN=t},workerUrl:\"\"};return En}),n})}).call(this,\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{}],410:[function(t,e,r){\"use strict\";e.exports=function(t){for(var e=1<<t+1,r=new Array(e),n=0;n<e;++n)r[n]=a(t,n);return r};var n=t(\"convex-hull\");function i(t,e,r){for(var n=new Array(t),i=0;i<t;++i)n[i]=0,i===e&&(n[i]+=.5),i===r&&(n[i]+=.5);return n}function a(t,e){if(0===e||e===(1<<t+1)-1)return[];for(var r=[],a=[],o=0;o<=t;++o)if(e&1<<o){r.push(i(t,o-1,o-1)),a.push(null);for(var s=0;s<=t;++s)~e&1<<s&&(r.push(i(t,o-1,s-1)),a.push([o,s]))}var l=n(r),c=[];t:for(o=0;o<l.length;++o){var u=l[o],f=[];for(s=0;s<u.length;++s){if(!a[u[s]])continue t;f.push(a[u[s]].slice())}c.push(f)}return c}},{\"convex-hull\":118}],411:[function(t,e,r){var n=t(\"./normalize\"),i=t(\"gl-mat4/create\"),a=t(\"gl-mat4/clone\"),o=t(\"gl-mat4/determinant\"),s=t(\"gl-mat4/invert\"),l=t(\"gl-mat4/transpose\"),c={length:t(\"gl-vec3/length\"),normalize:t(\"gl-vec3/normalize\"),dot:t(\"gl-vec3/dot\"),cross:t(\"gl-vec3/cross\")},u=i(),f=i(),h=[0,0,0,0],p=[[0,0,0],[0,0,0],[0,0,0]],d=[0,0,0];function g(t,e,r,n,i){t[0]=e[0]*n+r[0]*i,t[1]=e[1]*n+r[1]*i,t[2]=e[2]*n+r[2]*i}e.exports=function(t,e,r,i,v,m){if(e||(e=[0,0,0]),r||(r=[0,0,0]),i||(i=[0,0,0]),v||(v=[0,0,0,1]),m||(m=[0,0,0,1]),!n(u,t))return!1;if(a(f,u),f[3]=0,f[7]=0,f[11]=0,f[15]=1,Math.abs(o(f)<1e-8))return!1;var y,x,b,_,w,k,M,A=u[3],T=u[7],S=u[11],E=u[12],C=u[13],L=u[14],z=u[15];if(0!==A||0!==T||0!==S){if(h[0]=A,h[1]=T,h[2]=S,h[3]=z,!s(f,f))return!1;l(f,f),y=v,b=f,_=(x=h)[0],w=x[1],k=x[2],M=x[3],y[0]=b[0]*_+b[4]*w+b[8]*k+b[12]*M,y[1]=b[1]*_+b[5]*w+b[9]*k+b[13]*M,y[2]=b[2]*_+b[6]*w+b[10]*k+b[14]*M,y[3]=b[3]*_+b[7]*w+b[11]*k+b[15]*M}else v[0]=v[1]=v[2]=0,v[3]=1;if(e[0]=E,e[1]=C,e[2]=L,function(t,e){t[0][0]=e[0],t[0][1]=e[1],t[0][2]=e[2],t[1][0]=e[4],t[1][1]=e[5],t[1][2]=e[6],t[2][0]=e[8],t[2][1]=e[9],t[2][2]=e[10]}(p,u),r[0]=c.length(p[0]),c.normalize(p[0],p[0]),i[0]=c.dot(p[0],p[1]),g(p[1],p[1],p[0],1,-i[0]),r[1]=c.length(p[1]),c.normalize(p[1],p[1]),i[0]/=r[1],i[1]=c.dot(p[0],p[2]),g(p[2],p[2],p[0],1,-i[1]),i[2]=c.dot(p[1],p[2]),g(p[2],p[2],p[1],1,-i[2]),r[2]=c.length(p[2]),c.normalize(p[2],p[2]),i[1]/=r[2],i[2]/=r[2],c.cross(d,p[1],p[2]),c.dot(p[0],d)<0)for(var O=0;O<3;O++)r[O]*=-1,p[O][0]*=-1,p[O][1]*=-1,p[O][2]*=-1;return m[0]=.5*Math.sqrt(Math.max(1+p[0][0]-p[1][1]-p[2][2],0)),m[1]=.5*Math.sqrt(Math.max(1-p[0][0]+p[1][1]-p[2][2],0)),m[2]=.5*Math.sqrt(Math.max(1-p[0][0]-p[1][1]+p[2][2],0)),m[3]=.5*Math.sqrt(Math.max(1+p[0][0]+p[1][1]+p[2][2],0)),p[2][1]>p[1][2]&&(m[0]=-m[0]),p[0][2]>p[2][0]&&(m[1]=-m[1]),p[1][0]>p[0][1]&&(m[2]=-m[2]),!0}},{\"./normalize\":412,\"gl-mat4/clone\":248,\"gl-mat4/create\":249,\"gl-mat4/determinant\":250,\"gl-mat4/invert\":254,\"gl-mat4/transpose\":264,\"gl-vec3/cross\":317,\"gl-vec3/dot\":322,\"gl-vec3/length\":332,\"gl-vec3/normalize\":339}],412:[function(t,e,r){e.exports=function(t,e){var r=e[15];if(0===r)return!1;for(var n=1/r,i=0;i<16;i++)t[i]=e[i]*n;return!0}},{}],413:[function(t,e,r){var n=t(\"gl-vec3/lerp\"),i=t(\"mat4-recompose\"),a=t(\"mat4-decompose\"),o=t(\"gl-mat4/determinant\"),s=t(\"quat-slerp\"),l=f(),c=f(),u=f();function f(){return{translate:h(),scale:h(1),skew:h(),perspective:[0,0,0,1],quaternion:[0,0,0,1]}}function h(t){return[t||0,t||0,t||0]}e.exports=function(t,e,r,f){if(0===o(e)||0===o(r))return!1;var h=a(e,l.translate,l.scale,l.skew,l.perspective,l.quaternion),p=a(r,c.translate,c.scale,c.skew,c.perspective,c.quaternion);return!(!h||!p||(n(u.translate,l.translate,c.translate,f),n(u.skew,l.skew,c.skew,f),n(u.scale,l.scale,c.scale,f),n(u.perspective,l.perspective,c.perspective,f),s(u.quaternion,l.quaternion,c.quaternion,f),i(t,u.translate,u.scale,u.skew,u.perspective,u.quaternion),0))}},{\"gl-mat4/determinant\":250,\"gl-vec3/lerp\":333,\"mat4-decompose\":411,\"mat4-recompose\":414,\"quat-slerp\":466}],414:[function(t,e,r){var n={identity:t(\"gl-mat4/identity\"),translate:t(\"gl-mat4/translate\"),multiply:t(\"gl-mat4/multiply\"),create:t(\"gl-mat4/create\"),scale:t(\"gl-mat4/scale\"),fromRotationTranslation:t(\"gl-mat4/fromRotationTranslation\")},i=(n.create(),n.create());e.exports=function(t,e,r,a,o,s){return n.identity(t),n.fromRotationTranslation(t,s,e),t[3]=o[0],t[7]=o[1],t[11]=o[2],t[15]=o[3],n.identity(i),0!==a[2]&&(i[9]=a[2],n.multiply(t,t,i)),0!==a[1]&&(i[9]=0,i[8]=a[1],n.multiply(t,t,i)),0!==a[0]&&(i[8]=0,i[4]=a[0],n.multiply(t,t,i)),n.scale(t,t,r),t}},{\"gl-mat4/create\":249,\"gl-mat4/fromRotationTranslation\":252,\"gl-mat4/identity\":253,\"gl-mat4/multiply\":256,\"gl-mat4/scale\":262,\"gl-mat4/translate\":263}],415:[function(t,e,r){\"use strict\";e.exports=Math.log2||function(t){return Math.log(t)*Math.LOG2E}},{}],416:[function(t,e,r){\"use strict\";var n=t(\"binary-search-bounds\"),i=t(\"mat4-interpolate\"),a=t(\"gl-mat4/invert\"),o=t(\"gl-mat4/rotateX\"),s=t(\"gl-mat4/rotateY\"),l=t(\"gl-mat4/rotateZ\"),c=t(\"gl-mat4/lookAt\"),u=t(\"gl-mat4/translate\"),f=(t(\"gl-mat4/scale\"),t(\"gl-vec3/normalize\")),h=[0,0,0];function p(t){this._components=t.slice(),this._time=[0],this.prevMatrix=t.slice(),this.nextMatrix=t.slice(),this.computedMatrix=t.slice(),this.computedInverse=t.slice(),this.computedEye=[0,0,0],this.computedUp=[0,0,0],this.computedCenter=[0,0,0],this.computedRadius=[0],this._limits=[-1/0,1/0]}e.exports=function(t){return new p((t=t||{}).matrix||[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])};var d=p.prototype;d.recalcMatrix=function(t){var e=this._time,r=n.le(e,t),o=this.computedMatrix;if(!(r<0)){var s=this._components;if(r===e.length-1)for(var l=16*r,c=0;c<16;++c)o[c]=s[l++];else{var u=e[r+1]-e[r],h=(l=16*r,this.prevMatrix),p=!0;for(c=0;c<16;++c)h[c]=s[l++];var d=this.nextMatrix;for(c=0;c<16;++c)d[c]=s[l++],p=p&&h[c]===d[c];if(u<1e-6||p)for(c=0;c<16;++c)o[c]=h[c];else i(o,h,d,(t-e[r])/u)}var g=this.computedUp;g[0]=o[1],g[1]=o[5],g[2]=o[9],f(g,g);var v=this.computedInverse;a(v,o);var m=this.computedEye,y=v[15];m[0]=v[12]/y,m[1]=v[13]/y,m[2]=v[14]/y;var x=this.computedCenter,b=Math.exp(this.computedRadius[0]);for(c=0;c<3;++c)x[c]=m[c]-o[2+4*c]*b}},d.idle=function(t){if(!(t<this.lastT())){for(var e=this._components,r=e.length-16,n=0;n<16;++n)e.push(e[r++]);this._time.push(t)}},d.flush=function(t){var e=n.gt(this._time,t)-2;e<0||(this._time.splice(0,e),this._components.splice(0,16*e))},d.lastT=function(){return this._time[this._time.length-1]},d.lookAt=function(t,e,r,n){this.recalcMatrix(t),e=e||this.computedEye,r=r||h,n=n||this.computedUp,this.setMatrix(t,c(this.computedMatrix,e,r,n));for(var i=0,a=0;a<3;++a)i+=Math.pow(r[a]-e[a],2);i=Math.log(Math.sqrt(i)),this.computedRadius[0]=i},d.rotate=function(t,e,r,n){this.recalcMatrix(t);var i=this.computedInverse;e&&s(i,i,e),r&&o(i,i,r),n&&l(i,i,n),this.setMatrix(t,a(this.computedMatrix,i))};var g=[0,0,0];d.pan=function(t,e,r,n){g[0]=-(e||0),g[1]=-(r||0),g[2]=-(n||0),this.recalcMatrix(t);var i=this.computedInverse;u(i,i,g),this.setMatrix(t,a(i,i))},d.translate=function(t,e,r,n){g[0]=e||0,g[1]=r||0,g[2]=n||0,this.recalcMatrix(t);var i=this.computedMatrix;u(i,i,g),this.setMatrix(t,i)},d.setMatrix=function(t,e){if(!(t<this.lastT())){this._time.push(t);for(var r=0;r<16;++r)this._components.push(e[r])}},d.setDistance=function(t,e){this.computedRadius[0]=e},d.setDistanceLimits=function(t,e){var r=this._limits;r[0]=t,r[1]=e},d.getDistanceLimits=function(t){var e=this._limits;return t?(t[0]=e[0],t[1]=e[1],t):e}},{\"binary-search-bounds\":79,\"gl-mat4/invert\":254,\"gl-mat4/lookAt\":255,\"gl-mat4/rotateX\":259,\"gl-mat4/rotateY\":260,\"gl-mat4/rotateZ\":261,\"gl-mat4/scale\":262,\"gl-mat4/translate\":263,\"gl-vec3/normalize\":339,\"mat4-interpolate\":413}],417:[function(t,e,r){\"use strict\";e.exports=function(t){var e=t.length;if(e<3){for(var r=new Array(e),i=0;i<e;++i)r[i]=i;return 2===e&&t[0][0]===t[1][0]&&t[0][1]===t[1][1]?[0]:r}for(var a=new Array(e),i=0;i<e;++i)a[i]=i;a.sort(function(e,r){var n=t[e][0]-t[r][0];return n||t[e][1]-t[r][1]});for(var o=[a[0],a[1]],s=[a[0],a[1]],i=2;i<e;++i){for(var l=a[i],c=t[l],u=o.length;u>1&&n(t[o[u-2]],t[o[u-1]],c)<=0;)u-=1,o.pop();for(o.push(l),u=s.length;u>1&&n(t[s[u-2]],t[s[u-1]],c)>=0;)u-=1,s.pop();s.push(l)}for(var r=new Array(s.length+o.length-2),f=0,i=0,h=o.length;i<h;++i)r[f++]=o[i];for(var p=s.length-2;p>0;--p)r[f++]=s[p];return r};var n=t(\"robust-orientation\")[3]},{\"robust-orientation\":486}],418:[function(t,e,r){\"use strict\";e.exports=function(t,e){e||(e=t,t=window);var r=0,i=0,a=0,o={shift:!1,alt:!1,control:!1,meta:!1},s=!1;function l(t){var e=!1;return\"altKey\"in t&&(e=e||t.altKey!==o.alt,o.alt=!!t.altKey),\"shiftKey\"in t&&(e=e||t.shiftKey!==o.shift,o.shift=!!t.shiftKey),\"ctrlKey\"in t&&(e=e||t.ctrlKey!==o.control,o.control=!!t.ctrlKey),\"metaKey\"in t&&(e=e||t.metaKey!==o.meta,o.meta=!!t.metaKey),e}function c(t,s){var c=n.x(s),u=n.y(s);\"buttons\"in s&&(t=0|s.buttons),(t!==r||c!==i||u!==a||l(s))&&(r=0|t,i=c||0,a=u||0,e&&e(r,i,a,o))}function u(t){c(0,t)}function f(){(r||i||a||o.shift||o.alt||o.meta||o.control)&&(i=a=0,r=0,o.shift=o.alt=o.control=o.meta=!1,e&&e(0,0,0,o))}function h(t){l(t)&&e&&e(r,i,a,o)}function p(t){0===n.buttons(t)?c(0,t):c(r,t)}function d(t){c(r|n.buttons(t),t)}function g(t){c(r&~n.buttons(t),t)}function v(){s||(s=!0,t.addEventListener(\"mousemove\",p),t.addEventListener(\"mousedown\",d),t.addEventListener(\"mouseup\",g),t.addEventListener(\"mouseleave\",u),t.addEventListener(\"mouseenter\",u),t.addEventListener(\"mouseout\",u),t.addEventListener(\"mouseover\",u),t.addEventListener(\"blur\",f),t.addEventListener(\"keyup\",h),t.addEventListener(\"keydown\",h),t.addEventListener(\"keypress\",h),t!==window&&(window.addEventListener(\"blur\",f),window.addEventListener(\"keyup\",h),window.addEventListener(\"keydown\",h),window.addEventListener(\"keypress\",h)))}v();var m={element:t};return Object.defineProperties(m,{enabled:{get:function(){return s},set:function(e){e?v():s&&(s=!1,t.removeEventListener(\"mousemove\",p),t.removeEventListener(\"mousedown\",d),t.removeEventListener(\"mouseup\",g),t.removeEventListener(\"mouseleave\",u),t.removeEventListener(\"mouseenter\",u),t.removeEventListener(\"mouseout\",u),t.removeEventListener(\"mouseover\",u),t.removeEventListener(\"blur\",f),t.removeEventListener(\"keyup\",h),t.removeEventListener(\"keydown\",h),t.removeEventListener(\"keypress\",h),t!==window&&(window.removeEventListener(\"blur\",f),window.removeEventListener(\"keyup\",h),window.removeEventListener(\"keydown\",h),window.removeEventListener(\"keypress\",h)))},enumerable:!0},buttons:{get:function(){return r},enumerable:!0},x:{get:function(){return i},enumerable:!0},y:{get:function(){return a},enumerable:!0},mods:{get:function(){return o},enumerable:!0}}),m};var n=t(\"mouse-event\")},{\"mouse-event\":420}],419:[function(t,e,r){var n={left:0,top:0};e.exports=function(t,e,r){e=e||t.currentTarget||t.srcElement,Array.isArray(r)||(r=[0,0]);var i=t.clientX||0,a=t.clientY||0,o=(s=e,s===window||s===document||s===document.body?n:s.getBoundingClientRect());var s;return r[0]=i-o.left,r[1]=a-o.top,r}},{}],420:[function(t,e,r){\"use strict\";function n(t){return t.target||t.srcElement||window}r.buttons=function(t){if(\"object\"==typeof t){if(\"buttons\"in t)return t.buttons;if(\"which\"in t){if(2===(e=t.which))return 4;if(3===e)return 2;if(e>0)return 1<<e-1}else if(\"button\"in t){var e;if(1===(e=t.button))return 4;if(2===e)return 2;if(e>=0)return 1<<e}}return 0},r.element=n,r.x=function(t){if(\"object\"==typeof t){if(\"offsetX\"in t)return t.offsetX;var e=n(t).getBoundingClientRect();return t.clientX-e.left}return 0},r.y=function(t){if(\"object\"==typeof t){if(\"offsetY\"in t)return t.offsetY;var e=n(t).getBoundingClientRect();return t.clientY-e.top}return 0}},{}],421:[function(t,e,r){\"use strict\";var n=t(\"to-px\");e.exports=function(t,e,r){\"function\"==typeof t&&(r=!!e,e=t,t=window);var i=n(\"ex\",t),a=function(t){r&&t.preventDefault();var n=t.deltaX||0,a=t.deltaY||0,o=t.deltaZ||0,s=t.deltaMode,l=1;switch(s){case 1:l=i;break;case 2:l=window.innerHeight}if(a*=l,o*=l,(n*=l)||a||o)return e(n,a,o,t)};return t.addEventListener(\"wheel\",a),a}},{\"to-px\":516}],422:[function(t,e,r){\"use strict\";var n=t(\"typedarray-pool\");function i(t){return\"a\"+t}function a(t){return\"d\"+t}function o(t,e){return\"c\"+t+\"_\"+e}function s(t){return\"s\"+t}function l(t,e){return\"t\"+t+\"_\"+e}function c(t){return\"o\"+t}function u(t){return\"x\"+t}function f(t){return\"p\"+t}function h(t,e){return\"d\"+t+\"_\"+e}function p(t){return\"i\"+t}function d(t,e){return\"u\"+t+\"_\"+e}function g(t){return\"b\"+t}function v(t){return\"y\"+t}function m(t){return\"e\"+t}function y(t){return\"v\"+t}e.exports=function(t){function e(t){throw new Error(\"ndarray-extract-contour: \"+t)}\"object\"!=typeof t&&e(\"Must specify arguments\");var r=t.order;Array.isArray(r)||e(\"Must specify order\");var T=t.arrayArguments||1;T<1&&e(\"Must have at least one array argument\");var S=t.scalarArguments||0;S<0&&e(\"Scalar arg count must be > 0\");\"function\"!=typeof t.vertex&&e(\"Must specify vertex creation function\");\"function\"!=typeof t.cell&&e(\"Must specify cell creation function\");\"function\"!=typeof t.phase&&e(\"Must specify phase function\");for(var E=t.getters||[],C=new Array(T),L=0;L<T;++L)E.indexOf(L)>=0?C[L]=!0:C[L]=!1;return function(t,e,r,T,S,E){var C=E.length,L=S.length;if(L<2)throw new Error(\"ndarray-extract-contour: Dimension must be at least 2\");for(var z=\"extractContour\"+S.join(\"_\"),O=[],I=[],P=[],D=0;D<C;++D)P.push(i(D));for(var D=0;D<T;++D)P.push(u(D));for(var D=0;D<L;++D)I.push(s(D)+\"=\"+i(0)+\".shape[\"+D+\"]|0\");for(var D=0;D<C;++D){I.push(a(D)+\"=\"+i(D)+\".data\",c(D)+\"=\"+i(D)+\".offset|0\");for(var R=0;R<L;++R)I.push(l(D,R)+\"=\"+i(D)+\".stride[\"+R+\"]|0\")}for(var D=0;D<C;++D){I.push(f(D)+\"=\"+c(D)),I.push(o(D,0));for(var R=1;R<1<<L;++R){for(var B=[],F=0;F<L;++F)R&1<<F&&B.push(\"-\"+l(D,F));I.push(h(D,R)+\"=(\"+B.join(\"\")+\")|0\"),I.push(o(D,R)+\"=0\")}}for(var D=0;D<C;++D)for(var R=0;R<L;++R){var N=[l(D,S[R])];R>0&&N.push(l(D,S[R-1])+\"*\"+s(S[R-1])),I.push(d(D,S[R])+\"=(\"+N.join(\"-\")+\")|0\")}for(var D=0;D<L;++D)I.push(p(D)+\"=0\");I.push(_+\"=0\");for(var j=[\"2\"],D=L-2;D>=0;--D)j.push(s(S[D]));I.push(w+\"=(\"+j.join(\"*\")+\")|0\",b+\"=mallocUint32(\"+w+\")\",x+\"=mallocUint32(\"+w+\")\",k+\"=0\"),I.push(g(0)+\"=0\");for(var R=1;R<1<<L;++R){for(var V=[],U=[],F=0;F<L;++F)R&1<<F&&(0===U.length?V.push(\"1\"):V.unshift(U.join(\"*\"))),U.push(s(S[F]));var q=\"\";V[0].indexOf(s(S[L-2]))<0&&(q=\"-\");var H=A(L,R,S);I.push(m(H)+\"=(-\"+V.join(\"-\")+\")|0\",v(H)+\"=(\"+q+V.join(\"-\")+\")|0\",g(H)+\"=0\")}function G(t,e){O.push(\"for(\",p(S[t]),\"=\",e,\";\",p(S[t]),\"<\",s(S[t]),\";\",\"++\",p(S[t]),\"){\")}function W(t){for(var e=0;e<C;++e)O.push(f(e),\"+=\",d(e,S[t]),\";\");O.push(\"}\")}function Y(){for(var t=1;t<1<<L;++t)O.push(M,\"=\",m(t),\";\",m(t),\"=\",v(t),\";\",v(t),\"=\",M,\";\")}I.push(y(0)+\"=0\",M+\"=0\"),function t(e,r){if(e<0)return void function(t){for(var e=0;e<C;++e)E[e]?O.push(o(e,0),\"=\",a(e),\".get(\",f(e),\");\"):O.push(o(e,0),\"=\",a(e),\"[\",f(e),\"];\");for(var r=[],e=0;e<C;++e)r.push(o(e,0));for(var e=0;e<T;++e)r.push(u(e));O.push(g(0),\"=\",b,\"[\",k,\"]=phase(\",r.join(),\");\");for(var n=1;n<1<<L;++n)O.push(g(n),\"=\",b,\"[\",k,\"+\",m(n),\"];\");for(var i=[],n=1;n<1<<L;++n)i.push(\"(\"+g(0)+\"!==\"+g(n)+\")\");O.push(\"if(\",i.join(\"||\"),\"){\");for(var s=[],e=0;e<L;++e)s.push(p(e));for(var e=0;e<C;++e){s.push(o(e,0));for(var n=1;n<1<<L;++n)E[e]?O.push(o(e,n),\"=\",a(e),\".get(\",f(e),\"+\",h(e,n),\");\"):O.push(o(e,n),\"=\",a(e),\"[\",f(e),\"+\",h(e,n),\"];\"),s.push(o(e,n))}for(var e=0;e<1<<L;++e)s.push(g(e));for(var e=0;e<T;++e)s.push(u(e));O.push(\"vertex(\",s.join(),\");\",y(0),\"=\",x,\"[\",k,\"]=\",_,\"++;\");for(var l=(1<<L)-1,c=g(l),n=0;n<L;++n)if(0==(t&~(1<<n))){for(var d=l^1<<n,v=g(d),w=[],M=d;M>0;M=M-1&d)w.push(x+\"[\"+k+\"+\"+m(M)+\"]\");w.push(y(0));for(var M=0;M<C;++M)1&n?w.push(o(M,l),o(M,d)):w.push(o(M,d),o(M,l));1&n?w.push(c,v):w.push(v,c);for(var M=0;M<T;++M)w.push(u(M));O.push(\"if(\",c,\"!==\",v,\"){\",\"face(\",w.join(),\")}\")}O.push(\"}\",k,\"+=1;\")}(r);!function(t){for(var e=t-1;e>=0;--e)G(e,0);for(var r=[],e=0;e<C;++e)E[e]?r.push(a(e)+\".get(\"+f(e)+\")\"):r.push(a(e)+\"[\"+f(e)+\"]\");for(var e=0;e<T;++e)r.push(u(e));O.push(b,\"[\",k,\"++]=phase(\",r.join(),\");\");for(var e=0;e<t;++e)W(e);for(var n=0;n<C;++n)O.push(f(n),\"+=\",d(n,S[t]),\";\")}(e);O.push(\"if(\",s(S[e]),\">0){\",p(S[e]),\"=1;\");t(e-1,r|1<<S[e]);for(var n=0;n<C;++n)O.push(f(n),\"+=\",d(n,S[e]),\";\");e===L-1&&(O.push(k,\"=0;\"),Y());G(e,2);t(e-1,r);e===L-1&&(O.push(\"if(\",p(S[L-1]),\"&1){\",k,\"=0;}\"),Y());W(e);O.push(\"}\")}(L-1,0),O.push(\"freeUint32(\",x,\");freeUint32(\",b,\");\");var X=[\"'use strict';\",\"function \",z,\"(\",P.join(),\"){\",\"var \",I.join(),\";\",O.join(\"\"),\"}\",\"return \",z].join(\"\");return new Function(\"vertex\",\"face\",\"phase\",\"mallocUint32\",\"freeUint32\",X)(t,e,r,n.mallocUint32,n.freeUint32)}(t.vertex,t.cell,t.phase,S,r,C)};var x=\"V\",b=\"P\",_=\"N\",w=\"Q\",k=\"X\",M=\"T\";function A(t,e,r){for(var n=0,i=0;i<t;++i)e&1<<i&&(n|=1<<r[i]);return n}},{\"typedarray-pool\":522}],423:[function(t,e,r){\"use strict\";var n=t(\"cwise/lib/wrapper\")({args:[\"index\",\"array\",\"scalar\"],pre:{body:\"{}\",args:[],thisVars:[],localVars:[]},body:{body:\"{_inline_1_arg1_=_inline_1_arg2_.apply(void 0,_inline_1_arg0_)}\",args:[{name:\"_inline_1_arg0_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_1_arg1_\",lvalue:!0,rvalue:!1,count:1},{name:\"_inline_1_arg2_\",lvalue:!1,rvalue:!0,count:1}],thisVars:[],localVars:[]},post:{body:\"{}\",args:[],thisVars:[],localVars:[]},debug:!1,funcName:\"cwise\",blockSize:64});e.exports=function(t,e){return n(t,e),t}},{\"cwise/lib/wrapper\":137}],424:[function(t,e,r){\"use strict\";e.exports=function(t,e,r){if(Array.isArray(r)){if(r.length!==e.dimension)throw new Error(\"ndarray-gradient: invalid boundary conditions\")}else r=n(e.dimension,\"string\"==typeof r?r:\"clamp\");if(t.dimension!==e.dimension+1)throw new Error(\"ndarray-gradient: output dimension must be +1 input dimension\");if(t.shape[e.dimension]!==e.dimension)throw new Error(\"ndarray-gradient: output shape must match input shape\");for(var i=0;i<e.dimension;++i)if(t.shape[i]!==e.shape[i])throw new Error(\"ndarray-gradient: shape mismatch\");if(0===e.size)return t;if(e.dimension<=0)return t.set(0),t;return function(t){var e=t.join();if(m=o[e])return m;var r=t.length,n=[\"function gradient(dst,src){var s=src.shape.slice();\"];function i(e){for(var i=r-e.length,a=[],o=[],s=[],l=0;l<r;++l)e.indexOf(l+1)>=0?s.push(\"0\"):e.indexOf(-(l+1))>=0?s.push(\"s[\"+l+\"]-1\"):(s.push(\"-1\"),a.push(\"1\"),o.push(\"s[\"+l+\"]-2\"));var c=\".lo(\"+a.join()+\").hi(\"+o.join()+\")\";if(0===a.length&&(c=\"\"),i>0){n.push(\"if(1\");for(var l=0;l<r;++l)e.indexOf(l+1)>=0||e.indexOf(-(l+1))>=0||n.push(\"&&s[\",l,\"]>2\");n.push(\"){grad\",i,\"(src.pick(\",s.join(),\")\",c);for(var l=0;l<r;++l)e.indexOf(l+1)>=0||e.indexOf(-(l+1))>=0||n.push(\",dst.pick(\",s.join(),\",\",l,\")\",c);n.push(\");\")}for(var l=0;l<e.length;++l){var u=Math.abs(e[l])-1,f=\"dst.pick(\"+s.join()+\",\"+u+\")\"+c;switch(t[u]){case\"clamp\":var h=s.slice(),p=s.slice();e[l]<0?h[u]=\"s[\"+u+\"]-2\":p[u]=\"1\",0===i?n.push(\"if(s[\",u,\"]>1){dst.set(\",s.join(),\",\",u,\",0.5*(src.get(\",h.join(),\")-src.get(\",p.join(),\")))}else{dst.set(\",s.join(),\",\",u,\",0)};\"):n.push(\"if(s[\",u,\"]>1){diff(\",f,\",src.pick(\",h.join(),\")\",c,\",src.pick(\",p.join(),\")\",c,\");}else{zero(\",f,\");};\");break;case\"mirror\":0===i?n.push(\"dst.set(\",s.join(),\",\",u,\",0);\"):n.push(\"zero(\",f,\");\");break;case\"wrap\":var d=s.slice(),g=s.slice();e[l]<0?(d[u]=\"s[\"+u+\"]-2\",g[u]=\"0\"):(d[u]=\"s[\"+u+\"]-1\",g[u]=\"1\"),0===i?n.push(\"if(s[\",u,\"]>2){dst.set(\",s.join(),\",\",u,\",0.5*(src.get(\",d.join(),\")-src.get(\",g.join(),\")))}else{dst.set(\",s.join(),\",\",u,\",0)};\"):n.push(\"if(s[\",u,\"]>2){diff(\",f,\",src.pick(\",d.join(),\")\",c,\",src.pick(\",g.join(),\")\",c,\");}else{zero(\",f,\");};\");break;default:throw new Error(\"ndarray-gradient: Invalid boundary condition\")}}i>0&&n.push(\"};\")}for(var s=0;s<1<<r;++s){for(var f=[],h=0;h<r;++h)s&1<<h&&f.push(h+1);for(var p=0;p<1<<f.length;++p){for(var d=f.slice(),h=0;h<f.length;++h)p&1<<h&&(d[h]=-d[h]);i(d)}}n.push(\"return dst;};return gradient\");for(var g=[\"diff\",\"zero\"],v=[l,c],s=1;s<=r;++s)g.push(\"grad\"+s),v.push(u(s));g.push(n.join(\"\"));var m=Function.apply(void 0,g).apply(void 0,v);return a[e]=m,m}(r)(t,e)};var n=t(\"dup\"),i=t(\"cwise-compiler\"),a={},o={},s={body:\"\",args:[],thisVars:[],localVars:[]},l=i({args:[\"array\",\"array\",\"array\"],pre:s,post:s,body:{args:[{name:\"out\",lvalue:!0,rvalue:!1,count:1},{name:\"left\",lvalue:!1,rvalue:!0,count:1},{name:\"right\",lvalue:!1,rvalue:!0,count:1}],body:\"out=0.5*(left-right)\",thisVars:[],localVars:[]},funcName:\"cdiff\"}),c=i({args:[\"array\"],pre:s,post:s,body:{args:[{name:\"out\",lvalue:!0,rvalue:!1,count:1}],body:\"out=0\",thisVars:[],localVars:[]},funcName:\"zero\"});function u(t){if(t in a)return a[t];for(var e=[],r=0;r<t;++r)e.push(\"out\",r,\"s=0.5*(inp\",r,\"l-inp\",r,\"r);\");var o=[\"array\"],l=[\"junk\"];for(r=0;r<t;++r){o.push(\"array\"),l.push(\"out\"+r+\"s\");var c=n(t);c[r]=-1,o.push({array:0,offset:c.slice()}),c[r]=1,o.push({array:0,offset:c.slice()}),l.push(\"inp\"+r+\"l\",\"inp\"+r+\"r\")}return a[t]=i({args:o,pre:s,post:s,body:{body:e.join(\"\"),args:l.map(function(t){return{name:t,lvalue:0===t.indexOf(\"out\"),rvalue:0===t.indexOf(\"inp\"),count:\"junk\"!==t|0}}),thisVars:[],localVars:[]},funcName:\"fdTemplate\"+t})}},{\"cwise-compiler\":134,dup:155}],425:[function(t,e,r){\"use strict\";var n=t(\"ndarray-warp\"),i=t(\"gl-matrix-invert\");e.exports=function(t,e,r){var a=e.dimension,o=i([],r);return n(t,e,function(t,e){for(var r=0;r<a;++r){t[r]=o[(a+1)*a+r];for(var n=0;n<a;++n)t[r]+=o[(a+1)*n+r]*e[n]}var i=o[(a+1)*(a+1)-1];for(n=0;n<a;++n)i+=o[(a+1)*n+a]*e[n];var s=1/i;for(r=0;r<a;++r)t[r]*=s;return t}),t}},{\"gl-matrix-invert\":265,\"ndarray-warp\":432}],426:[function(t,e,r){\"use strict\";function n(t,e){var r=Math.floor(e),n=e-r,i=0<=r&&r<t.shape[0],a=0<=r+1&&r+1<t.shape[0];return(1-n)*(i?+t.get(r):0)+n*(a?+t.get(r+1):0)}function i(t,e,r){var n=Math.floor(e),i=e-n,a=0<=n&&n<t.shape[0],o=0<=n+1&&n+1<t.shape[0],s=Math.floor(r),l=r-s,c=0<=s&&s<t.shape[1],u=0<=s+1&&s+1<t.shape[1],f=a&&c?t.get(n,s):0,h=a&&u?t.get(n,s+1):0;return(1-l)*((1-i)*f+i*(o&&c?t.get(n+1,s):0))+l*((1-i)*h+i*(o&&u?t.get(n+1,s+1):0))}function a(t,e,r,n){var i=Math.floor(e),a=e-i,o=0<=i&&i<t.shape[0],s=0<=i+1&&i+1<t.shape[0],l=Math.floor(r),c=r-l,u=0<=l&&l<t.shape[1],f=0<=l+1&&l+1<t.shape[1],h=Math.floor(n),p=n-h,d=0<=h&&h<t.shape[2],g=0<=h+1&&h+1<t.shape[2],v=o&&u&&d?t.get(i,l,h):0,m=o&&f&&d?t.get(i,l+1,h):0,y=s&&u&&d?t.get(i+1,l,h):0,x=s&&f&&d?t.get(i+1,l+1,h):0,b=o&&u&&g?t.get(i,l,h+1):0,_=o&&f&&g?t.get(i,l+1,h+1):0;return(1-p)*((1-c)*((1-a)*v+a*y)+c*((1-a)*m+a*x))+p*((1-c)*((1-a)*b+a*(s&&u&&g?t.get(i+1,l,h+1):0))+c*((1-a)*_+a*(s&&f&&g?t.get(i+1,l+1,h+1):0)))}e.exports=function(t,e,r,o){switch(t.shape.length){case 0:return 0;case 1:return n(t,e);case 2:return i(t,e,r);case 3:return a(t,e,r,o);default:return function(t){var e,r,n=0|t.shape.length,i=new Array(n),a=new Array(n),o=new Array(n),s=new Array(n);for(e=0;e<n;++e)r=+arguments[e+1],i[e]=Math.floor(r),a[e]=r-i[e],o[e]=0<=i[e]&&i[e]<t.shape[e],s[e]=0<=i[e]+1&&i[e]+1<t.shape[e];var l,c,u,f=0;t:for(e=0;e<1<<n;++e){for(c=1,u=t.offset,l=0;l<n;++l)if(e&1<<l){if(!s[l])continue t;c*=a[l],u+=t.stride[l]*(i[l]+1)}else{if(!o[l])continue t;c*=1-a[l],u+=t.stride[l]*i[l]}f+=c*t.data[u]}return f}.apply(void 0,arguments)}},e.exports.d1=n,e.exports.d2=i,e.exports.d3=a},{}],427:[function(t,e,r){\"use strict\";var n=t(\"cwise-compiler\"),i={body:\"\",args:[],thisVars:[],localVars:[]};function a(t){if(!t)return i;for(var e=0;e<t.args.length;++e){var r=t.args[e];t.args[e]=0===e?{name:r,lvalue:!0,rvalue:!!t.rvalue,count:t.count||1}:{name:r,lvalue:!1,rvalue:!0,count:1}}return t.thisVars||(t.thisVars=[]),t.localVars||(t.localVars=[]),t}function o(t){for(var e=[],r=0;r<t.args.length;++r)e.push(\"a\"+r);return new Function(\"P\",[\"return function \",t.funcName,\"_ndarrayops(\",e.join(\",\"),\") {P(\",e.join(\",\"),\");return a0}\"].join(\"\"))(function(t){return n({args:t.args,pre:a(t.pre),body:a(t.body),post:a(t.proc),funcName:t.funcName})}(t))}var s={add:\"+\",sub:\"-\",mul:\"*\",div:\"/\",mod:\"%\",band:\"&\",bor:\"|\",bxor:\"^\",lshift:\"<<\",rshift:\">>\",rrshift:\">>>\"};!function(){for(var t in s){var e=s[t];r[t]=o({args:[\"array\",\"array\",\"array\"],body:{args:[\"a\",\"b\",\"c\"],body:\"a=b\"+e+\"c\"},funcName:t}),r[t+\"eq\"]=o({args:[\"array\",\"array\"],body:{args:[\"a\",\"b\"],body:\"a\"+e+\"=b\"},rvalue:!0,funcName:t+\"eq\"}),r[t+\"s\"]=o({args:[\"array\",\"array\",\"scalar\"],body:{args:[\"a\",\"b\",\"s\"],body:\"a=b\"+e+\"s\"},funcName:t+\"s\"}),r[t+\"seq\"]=o({args:[\"array\",\"scalar\"],body:{args:[\"a\",\"s\"],body:\"a\"+e+\"=s\"},rvalue:!0,funcName:t+\"seq\"})}}();var l={not:\"!\",bnot:\"~\",neg:\"-\",recip:\"1.0/\"};!function(){for(var t in l){var e=l[t];r[t]=o({args:[\"array\",\"array\"],body:{args:[\"a\",\"b\"],body:\"a=\"+e+\"b\"},funcName:t}),r[t+\"eq\"]=o({args:[\"array\"],body:{args:[\"a\"],body:\"a=\"+e+\"a\"},rvalue:!0,count:2,funcName:t+\"eq\"})}}();var c={and:\"&&\",or:\"||\",eq:\"===\",neq:\"!==\",lt:\"<\",gt:\">\",leq:\"<=\",geq:\">=\"};!function(){for(var t in c){var e=c[t];r[t]=o({args:[\"array\",\"array\",\"array\"],body:{args:[\"a\",\"b\",\"c\"],body:\"a=b\"+e+\"c\"},funcName:t}),r[t+\"s\"]=o({args:[\"array\",\"array\",\"scalar\"],body:{args:[\"a\",\"b\",\"s\"],body:\"a=b\"+e+\"s\"},funcName:t+\"s\"}),r[t+\"eq\"]=o({args:[\"array\",\"array\"],body:{args:[\"a\",\"b\"],body:\"a=a\"+e+\"b\"},rvalue:!0,count:2,funcName:t+\"eq\"}),r[t+\"seq\"]=o({args:[\"array\",\"scalar\"],body:{args:[\"a\",\"s\"],body:\"a=a\"+e+\"s\"},rvalue:!0,count:2,funcName:t+\"seq\"})}}();var u=[\"abs\",\"acos\",\"asin\",\"atan\",\"ceil\",\"cos\",\"exp\",\"floor\",\"log\",\"round\",\"sin\",\"sqrt\",\"tan\"];!function(){for(var t=0;t<u.length;++t){var e=u[t];r[e]=o({args:[\"array\",\"array\"],pre:{args:[],body:\"this_f=Math.\"+e,thisVars:[\"this_f\"]},body:{args:[\"a\",\"b\"],body:\"a=this_f(b)\",thisVars:[\"this_f\"]},funcName:e}),r[e+\"eq\"]=o({args:[\"array\"],pre:{args:[],body:\"this_f=Math.\"+e,thisVars:[\"this_f\"]},body:{args:[\"a\"],body:\"a=this_f(a)\",thisVars:[\"this_f\"]},rvalue:!0,count:2,funcName:e+\"eq\"})}}();var f=[\"max\",\"min\",\"atan2\",\"pow\"];!function(){for(var t=0;t<f.length;++t){var e=f[t];r[e]=o({args:[\"array\",\"array\",\"array\"],pre:{args:[],body:\"this_f=Math.\"+e,thisVars:[\"this_f\"]},body:{args:[\"a\",\"b\",\"c\"],body:\"a=this_f(b,c)\",thisVars:[\"this_f\"]},funcName:e}),r[e+\"s\"]=o({args:[\"array\",\"array\",\"scalar\"],pre:{args:[],body:\"this_f=Math.\"+e,thisVars:[\"this_f\"]},body:{args:[\"a\",\"b\",\"c\"],body:\"a=this_f(b,c)\",thisVars:[\"this_f\"]},funcName:e+\"s\"}),r[e+\"eq\"]=o({args:[\"array\",\"array\"],pre:{args:[],body:\"this_f=Math.\"+e,thisVars:[\"this_f\"]},body:{args:[\"a\",\"b\"],body:\"a=this_f(a,b)\",thisVars:[\"this_f\"]},rvalue:!0,count:2,funcName:e+\"eq\"}),r[e+\"seq\"]=o({args:[\"array\",\"scalar\"],pre:{args:[],body:\"this_f=Math.\"+e,thisVars:[\"this_f\"]},body:{args:[\"a\",\"b\"],body:\"a=this_f(a,b)\",thisVars:[\"this_f\"]},rvalue:!0,count:2,funcName:e+\"seq\"})}}();var h=[\"atan2\",\"pow\"];!function(){for(var t=0;t<h.length;++t){var e=h[t];r[e+\"op\"]=o({args:[\"array\",\"array\",\"array\"],pre:{args:[],body:\"this_f=Math.\"+e,thisVars:[\"this_f\"]},body:{args:[\"a\",\"b\",\"c\"],body:\"a=this_f(c,b)\",thisVars:[\"this_f\"]},funcName:e+\"op\"}),r[e+\"ops\"]=o({args:[\"array\",\"array\",\"scalar\"],pre:{args:[],body:\"this_f=Math.\"+e,thisVars:[\"this_f\"]},body:{args:[\"a\",\"b\",\"c\"],body:\"a=this_f(c,b)\",thisVars:[\"this_f\"]},funcName:e+\"ops\"}),r[e+\"opeq\"]=o({args:[\"array\",\"array\"],pre:{args:[],body:\"this_f=Math.\"+e,thisVars:[\"this_f\"]},body:{args:[\"a\",\"b\"],body:\"a=this_f(b,a)\",thisVars:[\"this_f\"]},rvalue:!0,count:2,funcName:e+\"opeq\"}),r[e+\"opseq\"]=o({args:[\"array\",\"scalar\"],pre:{args:[],body:\"this_f=Math.\"+e,thisVars:[\"this_f\"]},body:{args:[\"a\",\"b\"],body:\"a=this_f(b,a)\",thisVars:[\"this_f\"]},rvalue:!0,count:2,funcName:e+\"opseq\"})}}(),r.any=n({args:[\"array\"],pre:i,body:{args:[{name:\"a\",lvalue:!1,rvalue:!0,count:1}],body:\"if(a){return true}\",localVars:[],thisVars:[]},post:{args:[],localVars:[],thisVars:[],body:\"return false\"},funcName:\"any\"}),r.all=n({args:[\"array\"],pre:i,body:{args:[{name:\"x\",lvalue:!1,rvalue:!0,count:1}],body:\"if(!x){return false}\",localVars:[],thisVars:[]},post:{args:[],localVars:[],thisVars:[],body:\"return true\"},funcName:\"all\"}),r.sum=n({args:[\"array\"],pre:{args:[],localVars:[],thisVars:[\"this_s\"],body:\"this_s=0\"},body:{args:[{name:\"a\",lvalue:!1,rvalue:!0,count:1}],body:\"this_s+=a\",localVars:[],thisVars:[\"this_s\"]},post:{args:[],localVars:[],thisVars:[\"this_s\"],body:\"return this_s\"},funcName:\"sum\"}),r.prod=n({args:[\"array\"],pre:{args:[],localVars:[],thisVars:[\"this_s\"],body:\"this_s=1\"},body:{args:[{name:\"a\",lvalue:!1,rvalue:!0,count:1}],body:\"this_s*=a\",localVars:[],thisVars:[\"this_s\"]},post:{args:[],localVars:[],thisVars:[\"this_s\"],body:\"return this_s\"},funcName:\"prod\"}),r.norm2squared=n({args:[\"array\"],pre:{args:[],localVars:[],thisVars:[\"this_s\"],body:\"this_s=0\"},body:{args:[{name:\"a\",lvalue:!1,rvalue:!0,count:2}],body:\"this_s+=a*a\",localVars:[],thisVars:[\"this_s\"]},post:{args:[],localVars:[],thisVars:[\"this_s\"],body:\"return this_s\"},funcName:\"norm2squared\"}),r.norm2=n({args:[\"array\"],pre:{args:[],localVars:[],thisVars:[\"this_s\"],body:\"this_s=0\"},body:{args:[{name:\"a\",lvalue:!1,rvalue:!0,count:2}],body:\"this_s+=a*a\",localVars:[],thisVars:[\"this_s\"]},post:{args:[],localVars:[],thisVars:[\"this_s\"],body:\"return Math.sqrt(this_s)\"},funcName:\"norm2\"}),r.norminf=n({args:[\"array\"],pre:{args:[],localVars:[],thisVars:[\"this_s\"],body:\"this_s=0\"},body:{args:[{name:\"a\",lvalue:!1,rvalue:!0,count:4}],body:\"if(-a>this_s){this_s=-a}else if(a>this_s){this_s=a}\",localVars:[],thisVars:[\"this_s\"]},post:{args:[],localVars:[],thisVars:[\"this_s\"],body:\"return this_s\"},funcName:\"norminf\"}),r.norm1=n({args:[\"array\"],pre:{args:[],localVars:[],thisVars:[\"this_s\"],body:\"this_s=0\"},body:{args:[{name:\"a\",lvalue:!1,rvalue:!0,count:3}],body:\"this_s+=a<0?-a:a\",localVars:[],thisVars:[\"this_s\"]},post:{args:[],localVars:[],thisVars:[\"this_s\"],body:\"return this_s\"},funcName:\"norm1\"}),r.sup=n({args:[\"array\"],pre:{body:\"this_h=-Infinity\",args:[],thisVars:[\"this_h\"],localVars:[]},body:{body:\"if(_inline_1_arg0_>this_h)this_h=_inline_1_arg0_\",args:[{name:\"_inline_1_arg0_\",lvalue:!1,rvalue:!0,count:2}],thisVars:[\"this_h\"],localVars:[]},post:{body:\"return this_h\",args:[],thisVars:[\"this_h\"],localVars:[]}}),r.inf=n({args:[\"array\"],pre:{body:\"this_h=Infinity\",args:[],thisVars:[\"this_h\"],localVars:[]},body:{body:\"if(_inline_1_arg0_<this_h)this_h=_inline_1_arg0_\",args:[{name:\"_inline_1_arg0_\",lvalue:!1,rvalue:!0,count:2}],thisVars:[\"this_h\"],localVars:[]},post:{body:\"return this_h\",args:[],thisVars:[\"this_h\"],localVars:[]}}),r.argmin=n({args:[\"index\",\"array\",\"shape\"],pre:{body:\"{this_v=Infinity;this_i=_inline_0_arg2_.slice(0)}\",args:[{name:\"_inline_0_arg0_\",lvalue:!1,rvalue:!1,count:0},{name:\"_inline_0_arg1_\",lvalue:!1,rvalue:!1,count:0},{name:\"_inline_0_arg2_\",lvalue:!1,rvalue:!0,count:1}],thisVars:[\"this_i\",\"this_v\"],localVars:[]},body:{body:\"{if(_inline_1_arg1_<this_v){this_v=_inline_1_arg1_;for(var _inline_1_k=0;_inline_1_k<_inline_1_arg0_.length;++_inline_1_k){this_i[_inline_1_k]=_inline_1_arg0_[_inline_1_k]}}}\",args:[{name:\"_inline_1_arg0_\",lvalue:!1,rvalue:!0,count:2},{name:\"_inline_1_arg1_\",lvalue:!1,rvalue:!0,count:2}],thisVars:[\"this_i\",\"this_v\"],localVars:[\"_inline_1_k\"]},post:{body:\"{return this_i}\",args:[],thisVars:[\"this_i\"],localVars:[]}}),r.argmax=n({args:[\"index\",\"array\",\"shape\"],pre:{body:\"{this_v=-Infinity;this_i=_inline_0_arg2_.slice(0)}\",args:[{name:\"_inline_0_arg0_\",lvalue:!1,rvalue:!1,count:0},{name:\"_inline_0_arg1_\",lvalue:!1,rvalue:!1,count:0},{name:\"_inline_0_arg2_\",lvalue:!1,rvalue:!0,count:1}],thisVars:[\"this_i\",\"this_v\"],localVars:[]},body:{body:\"{if(_inline_1_arg1_>this_v){this_v=_inline_1_arg1_;for(var _inline_1_k=0;_inline_1_k<_inline_1_arg0_.length;++_inline_1_k){this_i[_inline_1_k]=_inline_1_arg0_[_inline_1_k]}}}\",args:[{name:\"_inline_1_arg0_\",lvalue:!1,rvalue:!0,count:2},{name:\"_inline_1_arg1_\",lvalue:!1,rvalue:!0,count:2}],thisVars:[\"this_i\",\"this_v\"],localVars:[\"_inline_1_k\"]},post:{body:\"{return this_i}\",args:[],thisVars:[\"this_i\"],localVars:[]}}),r.random=o({args:[\"array\"],pre:{args:[],body:\"this_f=Math.random\",thisVars:[\"this_f\"]},body:{args:[\"a\"],body:\"a=this_f()\",thisVars:[\"this_f\"]},funcName:\"random\"}),r.assign=o({args:[\"array\",\"array\"],body:{args:[\"a\",\"b\"],body:\"a=b\"},funcName:\"assign\"}),r.assigns=o({args:[\"array\",\"scalar\"],body:{args:[\"a\",\"b\"],body:\"a=b\"},funcName:\"assigns\"}),r.equals=n({args:[\"array\",\"array\"],pre:i,body:{args:[{name:\"x\",lvalue:!1,rvalue:!0,count:1},{name:\"y\",lvalue:!1,rvalue:!0,count:1}],body:\"if(x!==y){return false}\",localVars:[],thisVars:[]},post:{args:[],localVars:[],thisVars:[],body:\"return true\"},funcName:\"equals\"})},{\"cwise-compiler\":134}],428:[function(t,e,r){\"use strict\";var n=t(\"ndarray\"),i=t(\"./doConvert.js\");e.exports=function(t,e){for(var r=[],a=t,o=1;Array.isArray(a);)r.push(a.length),o*=a.length,a=a[0];return 0===r.length?n():(e||(e=n(new Float64Array(o),r)),i(e,t),e)}},{\"./doConvert.js\":429,ndarray:433}],429:[function(t,e,r){e.exports=t(\"cwise-compiler\")({args:[\"array\",\"scalar\",\"index\"],pre:{body:\"{}\",args:[],thisVars:[],localVars:[]},body:{body:\"{\\nvar _inline_1_v=_inline_1_arg1_,_inline_1_i\\nfor(_inline_1_i=0;_inline_1_i<_inline_1_arg2_.length-1;++_inline_1_i) {\\n_inline_1_v=_inline_1_v[_inline_1_arg2_[_inline_1_i]]\\n}\\n_inline_1_arg0_=_inline_1_v[_inline_1_arg2_[_inline_1_arg2_.length-1]]\\n}\",args:[{name:\"_inline_1_arg0_\",lvalue:!0,rvalue:!1,count:1},{name:\"_inline_1_arg1_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_1_arg2_\",lvalue:!1,rvalue:!0,count:4}],thisVars:[],localVars:[\"_inline_1_i\",\"_inline_1_v\"]},post:{body:\"{}\",args:[],thisVars:[],localVars:[]},funcName:\"convert\",blockSize:64})},{\"cwise-compiler\":134}],430:[function(t,e,r){\"use strict\";var n=t(\"typedarray-pool\"),i=32;function a(t){switch(t){case\"uint8\":return[n.mallocUint8,n.freeUint8];case\"uint16\":return[n.mallocUint16,n.freeUint16];case\"uint32\":return[n.mallocUint32,n.freeUint32];case\"int8\":return[n.mallocInt8,n.freeInt8];case\"int16\":return[n.mallocInt16,n.freeInt16];case\"int32\":return[n.mallocInt32,n.freeInt32];case\"float32\":return[n.mallocFloat,n.freeFloat];case\"float64\":return[n.mallocDouble,n.freeDouble];default:return null}}function o(t){for(var e=[],r=0;r<t;++r)e.push(\"s\"+r);for(r=0;r<t;++r)e.push(\"n\"+r);for(r=1;r<t;++r)e.push(\"d\"+r);for(r=1;r<t;++r)e.push(\"e\"+r);for(r=1;r<t;++r)e.push(\"f\"+r);return e}e.exports=function(t,e){var r=[\"'use strict'\"],n=[\"ndarraySortWrapper\",t.join(\"d\"),e].join(\"\");r.push([\"function \",n,\"(\",[\"array\"].join(\",\"),\"){\"].join(\"\"));for(var s=[\"data=array.data,offset=array.offset|0,shape=array.shape,stride=array.stride\"],l=0;l<t.length;++l)s.push([\"s\",l,\"=stride[\",l,\"]|0,n\",l,\"=shape[\",l,\"]|0\"].join(\"\"));var c=new Array(t.length),u=[];for(l=0;l<t.length;++l)0!==(p=t[l])&&(0===u.length?c[p]=\"1\":c[p]=u.join(\"*\"),u.push(\"n\"+p));var f=-1,h=-1;for(l=0;l<t.length;++l){var p,d=t[l];0!==d&&(f>0?s.push([\"d\",d,\"=s\",d,\"-d\",f,\"*n\",f].join(\"\")):s.push([\"d\",d,\"=s\",d].join(\"\")),f=d),0!=(p=t.length-1-l)&&(h>0?s.push([\"e\",p,\"=s\",p,\"-e\",h,\"*n\",h,\",f\",p,\"=\",c[p],\"-f\",h,\"*n\",h].join(\"\")):s.push([\"e\",p,\"=s\",p,\",f\",p,\"=\",c[p]].join(\"\")),h=p)}r.push(\"var \"+s.join(\",\"));var g=[\"0\",\"n0-1\",\"data\",\"offset\"].concat(o(t.length));r.push([\"if(n0<=\",i,\"){\",\"insertionSort(\",g.join(\",\"),\")}else{\",\"quickSort(\",g.join(\",\"),\")}\"].join(\"\")),r.push(\"}return \"+n);var v=new Function(\"insertionSort\",\"quickSort\",r.join(\"\\n\")),m=function(t,e){var r=[\"'use strict'\"],n=[\"ndarrayInsertionSort\",t.join(\"d\"),e].join(\"\"),i=[\"left\",\"right\",\"data\",\"offset\"].concat(o(t.length)),s=a(e),l=[\"i,j,cptr,ptr=left*s0+offset\"];if(t.length>1){for(var c=[],u=1;u<t.length;++u)l.push(\"i\"+u),c.push(\"n\"+u);s?l.push(\"scratch=malloc(\"+c.join(\"*\")+\")\"):l.push(\"scratch=new Array(\"+c.join(\"*\")+\")\"),l.push(\"dptr\",\"sptr\",\"a\",\"b\")}else l.push(\"scratch\");function f(t){return\"generic\"===e?[\"data.get(\",t,\")\"].join(\"\"):[\"data[\",t,\"]\"].join(\"\")}function h(t,r){return\"generic\"===e?[\"data.set(\",t,\",\",r,\")\"].join(\"\"):[\"data[\",t,\"]=\",r].join(\"\")}if(r.push([\"function \",n,\"(\",i.join(\",\"),\"){var \",l.join(\",\")].join(\"\"),\"for(i=left+1;i<=right;++i){\",\"j=i;ptr+=s0\",\"cptr=ptr\"),t.length>1){for(r.push(\"dptr=0;sptr=ptr\"),u=t.length-1;u>=0;--u)0!==(p=t[u])&&r.push([\"for(i\",p,\"=0;i\",p,\"<n\",p,\";++i\",p,\"){\"].join(\"\"));for(r.push(\"scratch[dptr++]=\",f(\"sptr\")),u=0;u<t.length;++u)0!==(p=t[u])&&r.push(\"sptr+=d\"+p,\"}\");for(r.push(\"__g:while(j--\\x3eleft){\",\"dptr=0\",\"sptr=cptr-s0\"),u=1;u<t.length;++u)1===u&&r.push(\"__l:\"),r.push([\"for(i\",u,\"=0;i\",u,\"<n\",u,\";++i\",u,\"){\"].join(\"\"));for(r.push([\"a=\",f(\"sptr\"),\"\\nb=scratch[dptr]\\nif(a<b){break __g}\\nif(a>b){break __l}\"].join(\"\")),u=t.length-1;u>=1;--u)r.push(\"sptr+=e\"+u,\"dptr+=f\"+u,\"}\");for(r.push(\"dptr=cptr;sptr=cptr-s0\"),u=t.length-1;u>=0;--u)0!==(p=t[u])&&r.push([\"for(i\",p,\"=0;i\",p,\"<n\",p,\";++i\",p,\"){\"].join(\"\"));for(r.push(h(\"dptr\",f(\"sptr\"))),u=0;u<t.length;++u)0!==(p=t[u])&&r.push([\"dptr+=d\",p,\";sptr+=d\",p].join(\"\"),\"}\");for(r.push(\"cptr-=s0\\n}\"),r.push(\"dptr=cptr;sptr=0\"),u=t.length-1;u>=0;--u)0!==(p=t[u])&&r.push([\"for(i\",p,\"=0;i\",p,\"<n\",p,\";++i\",p,\"){\"].join(\"\"));for(r.push(h(\"dptr\",\"scratch[sptr++]\")),u=0;u<t.length;++u){var p;0!==(p=t[u])&&r.push(\"dptr+=d\"+p,\"}\")}}else r.push(\"scratch=\"+f(\"ptr\"),\"while((j--\\x3eleft)&&(\"+f(\"cptr-s0\")+\">scratch)){\",h(\"cptr\",f(\"cptr-s0\")),\"cptr-=s0\",\"}\",h(\"cptr\",\"scratch\"));return r.push(\"}\"),t.length>1&&s&&r.push(\"free(scratch)\"),r.push(\"} return \"+n),s?new Function(\"malloc\",\"free\",r.join(\"\\n\"))(s[0],s[1]):new Function(r.join(\"\\n\"))()}(t,e),y=function(t,e,r){var n=[\"'use strict'\"],s=[\"ndarrayQuickSort\",t.join(\"d\"),e].join(\"\"),l=[\"left\",\"right\",\"data\",\"offset\"].concat(o(t.length)),c=a(e),u=0;n.push([\"function \",s,\"(\",l.join(\",\"),\"){\"].join(\"\"));var f=[\"sixth=((right-left+1)/6)|0\",\"index1=left+sixth\",\"index5=right-sixth\",\"index3=(left+right)>>1\",\"index2=index3-sixth\",\"index4=index3+sixth\",\"el1=index1\",\"el2=index2\",\"el3=index3\",\"el4=index4\",\"el5=index5\",\"less=left+1\",\"great=right-1\",\"pivots_are_equal=true\",\"tmp\",\"tmp0\",\"x\",\"y\",\"z\",\"k\",\"ptr0\",\"ptr1\",\"ptr2\",\"comp_pivot1=0\",\"comp_pivot2=0\",\"comp=0\"];if(t.length>1){for(var h=[],p=1;p<t.length;++p)h.push(\"n\"+p),f.push(\"i\"+p);for(p=0;p<8;++p)f.push(\"b_ptr\"+p);f.push(\"ptr3\",\"ptr4\",\"ptr5\",\"ptr6\",\"ptr7\",\"pivot_ptr\",\"ptr_shift\",\"elementSize=\"+h.join(\"*\")),c?f.push(\"pivot1=malloc(elementSize)\",\"pivot2=malloc(elementSize)\"):f.push(\"pivot1=new Array(elementSize),pivot2=new Array(elementSize)\")}else f.push(\"pivot1\",\"pivot2\");function d(t){return[\"(offset+\",t,\"*s0)\"].join(\"\")}function g(t){return\"generic\"===e?[\"data.get(\",t,\")\"].join(\"\"):[\"data[\",t,\"]\"].join(\"\")}function v(t,r){return\"generic\"===e?[\"data.set(\",t,\",\",r,\")\"].join(\"\"):[\"data[\",t,\"]=\",r].join(\"\")}function m(e,r,i){if(1===e.length)n.push(\"ptr0=\"+d(e[0]));else for(var a=0;a<e.length;++a)n.push([\"b_ptr\",a,\"=s0*\",e[a]].join(\"\"));for(r&&n.push(\"pivot_ptr=0\"),n.push(\"ptr_shift=offset\"),a=t.length-1;a>=0;--a)0!==(o=t[a])&&n.push([\"for(i\",o,\"=0;i\",o,\"<n\",o,\";++i\",o,\"){\"].join(\"\"));if(e.length>1)for(a=0;a<e.length;++a)n.push([\"ptr\",a,\"=b_ptr\",a,\"+ptr_shift\"].join(\"\"));for(n.push(i),r&&n.push(\"++pivot_ptr\"),a=0;a<t.length;++a){var o;0!==(o=t[a])&&(e.length>1?n.push(\"ptr_shift+=d\"+o):n.push(\"ptr0+=d\"+o),n.push(\"}\"))}}function y(e,r,i,a){if(1===r.length)n.push(\"ptr0=\"+d(r[0]));else{for(var o=0;o<r.length;++o)n.push([\"b_ptr\",o,\"=s0*\",r[o]].join(\"\"));n.push(\"ptr_shift=offset\")}for(i&&n.push(\"pivot_ptr=0\"),e&&n.push(e+\":\"),o=1;o<t.length;++o)n.push([\"for(i\",o,\"=0;i\",o,\"<n\",o,\";++i\",o,\"){\"].join(\"\"));if(r.length>1)for(o=0;o<r.length;++o)n.push([\"ptr\",o,\"=b_ptr\",o,\"+ptr_shift\"].join(\"\"));for(n.push(a),o=t.length-1;o>=1;--o)i&&n.push(\"pivot_ptr+=f\"+o),r.length>1?n.push(\"ptr_shift+=e\"+o):n.push(\"ptr0+=e\"+o),n.push(\"}\")}function x(){t.length>1&&c&&n.push(\"free(pivot1)\",\"free(pivot2)\")}function b(e,r){var i=\"el\"+e,a=\"el\"+r;if(t.length>1){var o=\"__l\"+ ++u;y(o,[i,a],!1,[\"comp=\",g(\"ptr0\"),\"-\",g(\"ptr1\"),\"\\n\",\"if(comp>0){tmp0=\",i,\";\",i,\"=\",a,\";\",a,\"=tmp0;break \",o,\"}\\n\",\"if(comp<0){break \",o,\"}\"].join(\"\"))}else n.push([\"if(\",g(d(i)),\">\",g(d(a)),\"){tmp0=\",i,\";\",i,\"=\",a,\";\",a,\"=tmp0}\"].join(\"\"))}function _(e,r){t.length>1?m([e,r],!1,v(\"ptr0\",g(\"ptr1\"))):n.push(v(d(e),g(d(r))))}function w(e,r,i){if(t.length>1){var a=\"__l\"+ ++u;y(a,[r],!0,[e,\"=\",g(\"ptr0\"),\"-pivot\",i,\"[pivot_ptr]\\n\",\"if(\",e,\"!==0){break \",a,\"}\"].join(\"\"))}else n.push([e,\"=\",g(d(r)),\"-pivot\",i].join(\"\"))}function k(e,r){t.length>1?m([e,r],!1,[\"tmp=\",g(\"ptr0\"),\"\\n\",v(\"ptr0\",g(\"ptr1\")),\"\\n\",v(\"ptr1\",\"tmp\")].join(\"\")):n.push([\"ptr0=\",d(e),\"\\n\",\"ptr1=\",d(r),\"\\n\",\"tmp=\",g(\"ptr0\"),\"\\n\",v(\"ptr0\",g(\"ptr1\")),\"\\n\",v(\"ptr1\",\"tmp\")].join(\"\"))}function M(e,r,i){t.length>1?(m([e,r,i],!1,[\"tmp=\",g(\"ptr0\"),\"\\n\",v(\"ptr0\",g(\"ptr1\")),\"\\n\",v(\"ptr1\",g(\"ptr2\")),\"\\n\",v(\"ptr2\",\"tmp\")].join(\"\")),n.push(\"++\"+r,\"--\"+i)):n.push([\"ptr0=\",d(e),\"\\n\",\"ptr1=\",d(r),\"\\n\",\"ptr2=\",d(i),\"\\n\",\"++\",r,\"\\n\",\"--\",i,\"\\n\",\"tmp=\",g(\"ptr0\"),\"\\n\",v(\"ptr0\",g(\"ptr1\")),\"\\n\",v(\"ptr1\",g(\"ptr2\")),\"\\n\",v(\"ptr2\",\"tmp\")].join(\"\"))}function A(t,e){k(t,e),n.push(\"--\"+e)}function T(e,r,i){t.length>1?m([e,r],!0,[v(\"ptr0\",g(\"ptr1\")),\"\\n\",v(\"ptr1\",[\"pivot\",i,\"[pivot_ptr]\"].join(\"\"))].join(\"\")):n.push(v(d(e),g(d(r))),v(d(r),\"pivot\"+i))}function S(e,r){n.push([\"if((\",r,\"-\",e,\")<=\",i,\"){\\n\",\"insertionSort(\",e,\",\",r,\",data,offset,\",o(t.length).join(\",\"),\")\\n\",\"}else{\\n\",s,\"(\",e,\",\",r,\",data,offset,\",o(t.length).join(\",\"),\")\\n\",\"}\"].join(\"\"))}function E(e,r,i){t.length>1?(n.push([\"__l\",++u,\":while(true){\"].join(\"\")),m([e],!0,[\"if(\",g(\"ptr0\"),\"!==pivot\",r,\"[pivot_ptr]){break __l\",u,\"}\"].join(\"\")),n.push(i,\"}\")):n.push([\"while(\",g(d(e)),\"===pivot\",r,\"){\",i,\"}\"].join(\"\"))}return n.push(\"var \"+f.join(\",\")),b(1,2),b(4,5),b(1,3),b(2,3),b(1,4),b(3,4),b(2,5),b(2,3),b(4,5),t.length>1?m([\"el1\",\"el2\",\"el3\",\"el4\",\"el5\",\"index1\",\"index3\",\"index5\"],!0,[\"pivot1[pivot_ptr]=\",g(\"ptr1\"),\"\\n\",\"pivot2[pivot_ptr]=\",g(\"ptr3\"),\"\\n\",\"pivots_are_equal=pivots_are_equal&&(pivot1[pivot_ptr]===pivot2[pivot_ptr])\\n\",\"x=\",g(\"ptr0\"),\"\\n\",\"y=\",g(\"ptr2\"),\"\\n\",\"z=\",g(\"ptr4\"),\"\\n\",v(\"ptr5\",\"x\"),\"\\n\",v(\"ptr6\",\"y\"),\"\\n\",v(\"ptr7\",\"z\")].join(\"\")):n.push([\"pivot1=\",g(d(\"el2\")),\"\\n\",\"pivot2=\",g(d(\"el4\")),\"\\n\",\"pivots_are_equal=pivot1===pivot2\\n\",\"x=\",g(d(\"el1\")),\"\\n\",\"y=\",g(d(\"el3\")),\"\\n\",\"z=\",g(d(\"el5\")),\"\\n\",v(d(\"index1\"),\"x\"),\"\\n\",v(d(\"index3\"),\"y\"),\"\\n\",v(d(\"index5\"),\"z\")].join(\"\")),_(\"index2\",\"left\"),_(\"index4\",\"right\"),n.push(\"if(pivots_are_equal){\"),n.push(\"for(k=less;k<=great;++k){\"),w(\"comp\",\"k\",1),n.push(\"if(comp===0){continue}\"),n.push(\"if(comp<0){\"),n.push(\"if(k!==less){\"),k(\"k\",\"less\"),n.push(\"}\"),n.push(\"++less\"),n.push(\"}else{\"),n.push(\"while(true){\"),w(\"comp\",\"great\",1),n.push(\"if(comp>0){\"),n.push(\"great--\"),n.push(\"}else if(comp<0){\"),M(\"k\",\"less\",\"great\"),n.push(\"break\"),n.push(\"}else{\"),A(\"k\",\"great\"),n.push(\"break\"),n.push(\"}\"),n.push(\"}\"),n.push(\"}\"),n.push(\"}\"),n.push(\"}else{\"),n.push(\"for(k=less;k<=great;++k){\"),w(\"comp_pivot1\",\"k\",1),n.push(\"if(comp_pivot1<0){\"),n.push(\"if(k!==less){\"),k(\"k\",\"less\"),n.push(\"}\"),n.push(\"++less\"),n.push(\"}else{\"),w(\"comp_pivot2\",\"k\",2),n.push(\"if(comp_pivot2>0){\"),n.push(\"while(true){\"),w(\"comp\",\"great\",2),n.push(\"if(comp>0){\"),n.push(\"if(--great<k){break}\"),n.push(\"continue\"),n.push(\"}else{\"),w(\"comp\",\"great\",1),n.push(\"if(comp<0){\"),M(\"k\",\"less\",\"great\"),n.push(\"}else{\"),A(\"k\",\"great\"),n.push(\"}\"),n.push(\"break\"),n.push(\"}\"),n.push(\"}\"),n.push(\"}\"),n.push(\"}\"),n.push(\"}\"),n.push(\"}\"),T(\"left\",\"(less-1)\",1),T(\"right\",\"(great+1)\",2),S(\"left\",\"(less-2)\"),S(\"(great+2)\",\"right\"),n.push(\"if(pivots_are_equal){\"),x(),n.push(\"return\"),n.push(\"}\"),n.push(\"if(less<index1&&great>index5){\"),E(\"less\",1,\"++less\"),E(\"great\",2,\"--great\"),n.push(\"for(k=less;k<=great;++k){\"),w(\"comp_pivot1\",\"k\",1),n.push(\"if(comp_pivot1===0){\"),n.push(\"if(k!==less){\"),k(\"k\",\"less\"),n.push(\"}\"),n.push(\"++less\"),n.push(\"}else{\"),w(\"comp_pivot2\",\"k\",2),n.push(\"if(comp_pivot2===0){\"),n.push(\"while(true){\"),w(\"comp\",\"great\",2),n.push(\"if(comp===0){\"),n.push(\"if(--great<k){break}\"),n.push(\"continue\"),n.push(\"}else{\"),w(\"comp\",\"great\",1),n.push(\"if(comp<0){\"),M(\"k\",\"less\",\"great\"),n.push(\"}else{\"),A(\"k\",\"great\"),n.push(\"}\"),n.push(\"break\"),n.push(\"}\"),n.push(\"}\"),n.push(\"}\"),n.push(\"}\"),n.push(\"}\"),n.push(\"}\"),x(),S(\"less\",\"great\"),n.push(\"}return \"+s),t.length>1&&c?new Function(\"insertionSort\",\"malloc\",\"free\",n.join(\"\\n\"))(r,c[0],c[1]):new Function(\"insertionSort\",n.join(\"\\n\"))(r)}(t,e,m);return v(m,y)}},{\"typedarray-pool\":522}],431:[function(t,e,r){\"use strict\";var n=t(\"./lib/compile_sort.js\"),i={};e.exports=function(t){var e=t.order,r=t.dtype,a=[e,r].join(\":\"),o=i[a];return o||(i[a]=o=n(e,r)),o(t),t}},{\"./lib/compile_sort.js\":430}],432:[function(t,e,r){\"use strict\";var n=t(\"ndarray-linear-interpolate\"),i=t(\"cwise/lib/wrapper\")({args:[\"index\",\"array\",\"scalar\",\"scalar\",\"scalar\"],pre:{body:\"{this_warped=new Array(_inline_3_arg4_)}\",args:[{name:\"_inline_3_arg0_\",lvalue:!1,rvalue:!1,count:0},{name:\"_inline_3_arg1_\",lvalue:!1,rvalue:!1,count:0},{name:\"_inline_3_arg2_\",lvalue:!1,rvalue:!1,count:0},{name:\"_inline_3_arg3_\",lvalue:!1,rvalue:!1,count:0},{name:\"_inline_3_arg4_\",lvalue:!1,rvalue:!0,count:1}],thisVars:[\"this_warped\"],localVars:[]},body:{body:\"{_inline_4_arg2_(this_warped,_inline_4_arg0_),_inline_4_arg1_=_inline_4_arg3_.apply(void 0,this_warped)}\",args:[{name:\"_inline_4_arg0_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_4_arg1_\",lvalue:!0,rvalue:!1,count:1},{name:\"_inline_4_arg2_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_4_arg3_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_4_arg4_\",lvalue:!1,rvalue:!1,count:0}],thisVars:[\"this_warped\"],localVars:[]},post:{body:\"{}\",args:[],thisVars:[],localVars:[]},debug:!1,funcName:\"warpND\",blockSize:64}),a=t(\"cwise/lib/wrapper\")({args:[\"index\",\"array\",\"scalar\",\"scalar\",\"scalar\"],pre:{body:\"{this_warped=[0]}\",args:[],thisVars:[\"this_warped\"],localVars:[]},body:{body:\"{_inline_7_arg2_(this_warped,_inline_7_arg0_),_inline_7_arg1_=_inline_7_arg3_(_inline_7_arg4_,this_warped[0])}\",args:[{name:\"_inline_7_arg0_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_7_arg1_\",lvalue:!0,rvalue:!1,count:1},{name:\"_inline_7_arg2_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_7_arg3_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_7_arg4_\",lvalue:!1,rvalue:!0,count:1}],thisVars:[\"this_warped\"],localVars:[]},post:{body:\"{}\",args:[],thisVars:[],localVars:[]},debug:!1,funcName:\"warp1D\",blockSize:64}),o=t(\"cwise/lib/wrapper\")({args:[\"index\",\"array\",\"scalar\",\"scalar\",\"scalar\"],pre:{body:\"{this_warped=[0,0]}\",args:[],thisVars:[\"this_warped\"],localVars:[]},body:{body:\"{_inline_10_arg2_(this_warped,_inline_10_arg0_),_inline_10_arg1_=_inline_10_arg3_(_inline_10_arg4_,this_warped[0],this_warped[1])}\",args:[{name:\"_inline_10_arg0_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_10_arg1_\",lvalue:!0,rvalue:!1,count:1},{name:\"_inline_10_arg2_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_10_arg3_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_10_arg4_\",lvalue:!1,rvalue:!0,count:1}],thisVars:[\"this_warped\"],localVars:[]},post:{body:\"{}\",args:[],thisVars:[],localVars:[]},debug:!1,funcName:\"warp2D\",blockSize:64}),s=t(\"cwise/lib/wrapper\")({args:[\"index\",\"array\",\"scalar\",\"scalar\",\"scalar\"],pre:{body:\"{this_warped=[0,0,0]}\",args:[],thisVars:[\"this_warped\"],localVars:[]},body:{body:\"{_inline_13_arg2_(this_warped,_inline_13_arg0_),_inline_13_arg1_=_inline_13_arg3_(_inline_13_arg4_,this_warped[0],this_warped[1],this_warped[2])}\",args:[{name:\"_inline_13_arg0_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_13_arg1_\",lvalue:!0,rvalue:!1,count:1},{name:\"_inline_13_arg2_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_13_arg3_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_13_arg4_\",lvalue:!1,rvalue:!0,count:1}],thisVars:[\"this_warped\"],localVars:[]},post:{body:\"{}\",args:[],thisVars:[],localVars:[]},debug:!1,funcName:\"warp3D\",blockSize:64});e.exports=function(t,e,r){switch(e.shape.length){case 1:a(t,r,n.d1,e);break;case 2:o(t,r,n.d2,e);break;case 3:s(t,r,n.d3,e);break;default:i(t,r,n.bind(void 0,e),e.shape.length)}return t}},{\"cwise/lib/wrapper\":137,\"ndarray-linear-interpolate\":426}],433:[function(t,e,r){var n=t(\"iota-array\"),i=t(\"is-buffer\"),a=\"undefined\"!=typeof Float64Array;function o(t,e){return t[0]-e[0]}function s(){var t,e=this.stride,r=new Array(e.length);for(t=0;t<r.length;++t)r[t]=[Math.abs(e[t]),t];r.sort(o);var n=new Array(r.length);for(t=0;t<n.length;++t)n[t]=r[t][1];return n}function l(t,e){var r=[\"View\",e,\"d\",t].join(\"\");e<0&&(r=\"View_Nil\"+t);var i=\"generic\"===t;if(-1===e){var a=\"function \"+r+\"(a){this.data=a;};var proto=\"+r+\".prototype;proto.dtype='\"+t+\"';proto.index=function(){return -1};proto.size=0;proto.dimension=-1;proto.shape=proto.stride=proto.order=[];proto.lo=proto.hi=proto.transpose=proto.step=function(){return new \"+r+\"(this.data);};proto.get=proto.set=function(){};proto.pick=function(){return null};return function construct_\"+r+\"(a){return new \"+r+\"(a);}\";return new Function(a)()}if(0===e){a=\"function \"+r+\"(a,d) {this.data = a;this.offset = d};var proto=\"+r+\".prototype;proto.dtype='\"+t+\"';proto.index=function(){return this.offset};proto.dimension=0;proto.size=1;proto.shape=proto.stride=proto.order=[];proto.lo=proto.hi=proto.transpose=proto.step=function \"+r+\"_copy() {return new \"+r+\"(this.data,this.offset)};proto.pick=function \"+r+\"_pick(){return TrivialArray(this.data);};proto.valueOf=proto.get=function \"+r+\"_get(){return \"+(i?\"this.data.get(this.offset)\":\"this.data[this.offset]\")+\"};proto.set=function \"+r+\"_set(v){return \"+(i?\"this.data.set(this.offset,v)\":\"this.data[this.offset]=v\")+\"};return function construct_\"+r+\"(a,b,c,d){return new \"+r+\"(a,d)}\";return new Function(\"TrivialArray\",a)(c[t][0])}a=[\"'use strict'\"];var o=n(e),l=o.map(function(t){return\"i\"+t}),u=\"this.offset+\"+o.map(function(t){return\"this.stride[\"+t+\"]*i\"+t}).join(\"+\"),f=o.map(function(t){return\"b\"+t}).join(\",\"),h=o.map(function(t){return\"c\"+t}).join(\",\");a.push(\"function \"+r+\"(a,\"+f+\",\"+h+\",d){this.data=a\",\"this.shape=[\"+f+\"]\",\"this.stride=[\"+h+\"]\",\"this.offset=d|0}\",\"var proto=\"+r+\".prototype\",\"proto.dtype='\"+t+\"'\",\"proto.dimension=\"+e),a.push(\"Object.defineProperty(proto,'size',{get:function \"+r+\"_size(){return \"+o.map(function(t){return\"this.shape[\"+t+\"]\"}).join(\"*\"),\"}})\"),1===e?a.push(\"proto.order=[0]\"):(a.push(\"Object.defineProperty(proto,'order',{get:\"),e<4?(a.push(\"function \"+r+\"_order(){\"),2===e?a.push(\"return (Math.abs(this.stride[0])>Math.abs(this.stride[1]))?[1,0]:[0,1]}})\"):3===e&&a.push(\"var s0=Math.abs(this.stride[0]),s1=Math.abs(this.stride[1]),s2=Math.abs(this.stride[2]);if(s0>s1){if(s1>s2){return [2,1,0];}else if(s0>s2){return [1,2,0];}else{return [1,0,2];}}else if(s0>s2){return [2,0,1];}else if(s2>s1){return [0,1,2];}else{return [0,2,1];}}})\")):a.push(\"ORDER})\")),a.push(\"proto.set=function \"+r+\"_set(\"+l.join(\",\")+\",v){\"),i?a.push(\"return this.data.set(\"+u+\",v)}\"):a.push(\"return this.data[\"+u+\"]=v}\"),a.push(\"proto.get=function \"+r+\"_get(\"+l.join(\",\")+\"){\"),i?a.push(\"return this.data.get(\"+u+\")}\"):a.push(\"return this.data[\"+u+\"]}\"),a.push(\"proto.index=function \"+r+\"_index(\",l.join(),\"){return \"+u+\"}\"),a.push(\"proto.hi=function \"+r+\"_hi(\"+l.join(\",\")+\"){return new \"+r+\"(this.data,\"+o.map(function(t){return[\"(typeof i\",t,\"!=='number'||i\",t,\"<0)?this.shape[\",t,\"]:i\",t,\"|0\"].join(\"\")}).join(\",\")+\",\"+o.map(function(t){return\"this.stride[\"+t+\"]\"}).join(\",\")+\",this.offset)}\");var p=o.map(function(t){return\"a\"+t+\"=this.shape[\"+t+\"]\"}),d=o.map(function(t){return\"c\"+t+\"=this.stride[\"+t+\"]\"});a.push(\"proto.lo=function \"+r+\"_lo(\"+l.join(\",\")+\"){var b=this.offset,d=0,\"+p.join(\",\")+\",\"+d.join(\",\"));for(var g=0;g<e;++g)a.push(\"if(typeof i\"+g+\"==='number'&&i\"+g+\">=0){d=i\"+g+\"|0;b+=c\"+g+\"*d;a\"+g+\"-=d}\");a.push(\"return new \"+r+\"(this.data,\"+o.map(function(t){return\"a\"+t}).join(\",\")+\",\"+o.map(function(t){return\"c\"+t}).join(\",\")+\",b)}\"),a.push(\"proto.step=function \"+r+\"_step(\"+l.join(\",\")+\"){var \"+o.map(function(t){return\"a\"+t+\"=this.shape[\"+t+\"]\"}).join(\",\")+\",\"+o.map(function(t){return\"b\"+t+\"=this.stride[\"+t+\"]\"}).join(\",\")+\",c=this.offset,d=0,ceil=Math.ceil\");for(g=0;g<e;++g)a.push(\"if(typeof i\"+g+\"==='number'){d=i\"+g+\"|0;if(d<0){c+=b\"+g+\"*(a\"+g+\"-1);a\"+g+\"=ceil(-a\"+g+\"/d)}else{a\"+g+\"=ceil(a\"+g+\"/d)}b\"+g+\"*=d}\");a.push(\"return new \"+r+\"(this.data,\"+o.map(function(t){return\"a\"+t}).join(\",\")+\",\"+o.map(function(t){return\"b\"+t}).join(\",\")+\",c)}\");var v=new Array(e),m=new Array(e);for(g=0;g<e;++g)v[g]=\"a[i\"+g+\"]\",m[g]=\"b[i\"+g+\"]\";a.push(\"proto.transpose=function \"+r+\"_transpose(\"+l+\"){\"+l.map(function(t,e){return t+\"=(\"+t+\"===undefined?\"+e+\":\"+t+\"|0)\"}).join(\";\"),\"var a=this.shape,b=this.stride;return new \"+r+\"(this.data,\"+v.join(\",\")+\",\"+m.join(\",\")+\",this.offset)}\"),a.push(\"proto.pick=function \"+r+\"_pick(\"+l+\"){var a=[],b=[],c=this.offset\");for(g=0;g<e;++g)a.push(\"if(typeof i\"+g+\"==='number'&&i\"+g+\">=0){c=(c+this.stride[\"+g+\"]*i\"+g+\")|0}else{a.push(this.shape[\"+g+\"]);b.push(this.stride[\"+g+\"])}\");return a.push(\"var ctor=CTOR_LIST[a.length+1];return ctor(this.data,a,b,c)}\"),a.push(\"return function construct_\"+r+\"(data,shape,stride,offset){return new \"+r+\"(data,\"+o.map(function(t){return\"shape[\"+t+\"]\"}).join(\",\")+\",\"+o.map(function(t){return\"stride[\"+t+\"]\"}).join(\",\")+\",offset)}\"),new Function(\"CTOR_LIST\",\"ORDER\",a.join(\"\\n\"))(c[t],s)}var c={float32:[],float64:[],int8:[],int16:[],int32:[],uint8:[],uint16:[],uint32:[],array:[],uint8_clamped:[],buffer:[],generic:[]};e.exports=function(t,e,r,n){if(void 0===t)return(0,c.array[0])([]);\"number\"==typeof t&&(t=[t]),void 0===e&&(e=[t.length]);var o=e.length;if(void 0===r){r=new Array(o);for(var s=o-1,u=1;s>=0;--s)r[s]=u,u*=e[s]}if(void 0===n)for(n=0,s=0;s<o;++s)r[s]<0&&(n-=(e[s]-1)*r[s]);for(var f=function(t){if(i(t))return\"buffer\";if(a)switch(Object.prototype.toString.call(t)){case\"[object Float64Array]\":return\"float64\";case\"[object Float32Array]\":return\"float32\";case\"[object Int8Array]\":return\"int8\";case\"[object Int16Array]\":return\"int16\";case\"[object Int32Array]\":return\"int32\";case\"[object Uint8Array]\":return\"uint8\";case\"[object Uint16Array]\":return\"uint16\";case\"[object Uint32Array]\":return\"uint32\";case\"[object Uint8ClampedArray]\":return\"uint8_clamped\"}return Array.isArray(t)?\"array\":\"generic\"}(t),h=c[f];h.length<=o+1;)h.push(l(f,h.length-1));return(0,h[o+1])(t,e,r,n)}},{\"iota-array\":399,\"is-buffer\":401}],434:[function(t,e,r){\"use strict\";var n=t(\"double-bits\"),i=Math.pow(2,-1074),a=-1>>>0;e.exports=function(t,e){if(isNaN(t)||isNaN(e))return NaN;if(t===e)return t;if(0===t)return e<0?-i:i;var r=n.hi(t),o=n.lo(t);e>t==t>0?o===a?(r+=1,o=0):o+=1:0===o?(o=a,r-=1):o-=1;return n.pack(o,r)}},{\"double-bits\":152}],435:[function(t,e,r){var n=Math.PI,i=c(120);function a(t,e,r,n){return[\"C\",t,e,r,n,r,n]}function o(t,e,r,n,i,a){return[\"C\",t/3+2/3*r,e/3+2/3*n,i/3+2/3*r,a/3+2/3*n,i,a]}function s(t,e,r,a,o,c,u,f,h,p){if(p)k=p[0],M=p[1],_=p[2],w=p[3];else{var d=l(t,e,-o);t=d.x,e=d.y;var g=(t-(f=(d=l(f,h,-o)).x))/2,v=(e-(h=d.y))/2,m=g*g/(r*r)+v*v/(a*a);m>1&&(r*=m=Math.sqrt(m),a*=m);var y=r*r,x=a*a,b=(c==u?-1:1)*Math.sqrt(Math.abs((y*x-y*v*v-x*g*g)/(y*v*v+x*g*g)));b==1/0&&(b=1);var _=b*r*v/a+(t+f)/2,w=b*-a*g/r+(e+h)/2,k=Math.asin(((e-w)/a).toFixed(9)),M=Math.asin(((h-w)/a).toFixed(9));(k=t<_?n-k:k)<0&&(k=2*n+k),(M=f<_?n-M:M)<0&&(M=2*n+M),u&&k>M&&(k-=2*n),!u&&M>k&&(M-=2*n)}if(Math.abs(M-k)>i){var A=M,T=f,S=h;M=k+i*(u&&M>k?1:-1);var E=s(f=_+r*Math.cos(M),h=w+a*Math.sin(M),r,a,o,0,u,T,S,[M,A,_,w])}var C=Math.tan((M-k)/4),L=4/3*r*C,z=4/3*a*C,O=[2*t-(t+L*Math.sin(k)),2*e-(e-z*Math.cos(k)),f+L*Math.sin(M),h-z*Math.cos(M),f,h];if(p)return O;E&&(O=O.concat(E));for(var I=0;I<O.length;){var P=l(O[I],O[I+1],o);O[I++]=P.x,O[I++]=P.y}return O}function l(t,e,r){return{x:t*Math.cos(r)-e*Math.sin(r),y:t*Math.sin(r)+e*Math.cos(r)}}function c(t){return t*(n/180)}e.exports=function(t){for(var e,r=[],n=0,i=0,l=0,u=0,f=null,h=null,p=0,d=0,g=0,v=t.length;g<v;g++){var m=t[g],y=m[0];switch(y){case\"M\":l=m[1],u=m[2];break;case\"A\":(m=s(p,d,m[1],m[2],c(m[3]),m[4],m[5],m[6],m[7])).unshift(\"C\"),m.length>7&&(r.push(m.splice(0,7)),m.unshift(\"C\"));break;case\"S\":var x=p,b=d;\"C\"!=e&&\"S\"!=e||(x+=x-n,b+=b-i),m=[\"C\",x,b,m[1],m[2],m[3],m[4]];break;case\"T\":\"Q\"==e||\"T\"==e?(f=2*p-f,h=2*d-h):(f=p,h=d),m=o(p,d,f,h,m[1],m[2]);break;case\"Q\":f=m[1],h=m[2],m=o(p,d,m[1],m[2],m[3],m[4]);break;case\"L\":m=a(p,d,m[1],m[2]);break;case\"H\":m=a(p,d,m[1],d);break;case\"V\":m=a(p,d,p,m[1]);break;case\"Z\":m=a(p,d,l,u)}e=y,p=m[m.length-2],d=m[m.length-1],m.length>4?(n=m[m.length-4],i=m[m.length-3]):(n=p,i=d),r.push(m)}return r}},{}],436:[function(t,e,r){r.vertexNormals=function(t,e,r){for(var n=e.length,i=new Array(n),a=void 0===r?1e-6:r,o=0;o<n;++o)i[o]=[0,0,0];for(o=0;o<t.length;++o)for(var s=t[o],l=0,c=s[s.length-1],u=s[0],f=0;f<s.length;++f){l=c,c=u,u=s[(f+1)%s.length];for(var h=e[l],p=e[c],d=e[u],g=new Array(3),v=0,m=new Array(3),y=0,x=0;x<3;++x)g[x]=h[x]-p[x],v+=g[x]*g[x],m[x]=d[x]-p[x],y+=m[x]*m[x];if(v*y>a){var b=i[c],_=1/Math.sqrt(v*y);for(x=0;x<3;++x){var w=(x+1)%3,k=(x+2)%3;b[x]+=_*(m[w]*g[k]-m[k]*g[w])}}}for(o=0;o<n;++o){b=i[o];var M=0;for(x=0;x<3;++x)M+=b[x]*b[x];if(M>a)for(_=1/Math.sqrt(M),x=0;x<3;++x)b[x]*=_;else for(x=0;x<3;++x)b[x]=0}return i},r.faceNormals=function(t,e,r){for(var n=t.length,i=new Array(n),a=void 0===r?1e-6:r,o=0;o<n;++o){for(var s=t[o],l=new Array(3),c=0;c<3;++c)l[c]=e[s[c]];var u=new Array(3),f=new Array(3);for(c=0;c<3;++c)u[c]=l[1][c]-l[0][c],f[c]=l[2][c]-l[0][c];var h=new Array(3),p=0;for(c=0;c<3;++c){var d=(c+1)%3,g=(c+2)%3;h[c]=u[d]*f[g]-u[g]*f[d],p+=h[c]*h[c]}p=p>a?1/Math.sqrt(p):0;for(c=0;c<3;++c)h[c]*=p;i[o]=h}return i}},{}],437:[function(t,e,r){\"use strict\";var n=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var t=new String(\"abc\");if(t[5]=\"de\",\"5\"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},r=0;r<10;r++)e[\"_\"+String.fromCharCode(r)]=r;if(\"0123456789\"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(\"\"))return!1;var n={};return\"abcdefghijklmnopqrst\".split(\"\").forEach(function(t){n[t]=t}),\"abcdefghijklmnopqrst\"===Object.keys(Object.assign({},n)).join(\"\")}catch(t){return!1}}()?Object.assign:function(t,e){for(var r,o,s=function(t){if(null==t)throw new TypeError(\"Object.assign cannot be called with null or undefined\");return Object(t)}(t),l=1;l<arguments.length;l++){for(var c in r=Object(arguments[l]))i.call(r,c)&&(s[c]=r[c]);if(n){o=n(r);for(var u=0;u<o.length;u++)a.call(r,o[u])&&(s[o[u]]=r[o[u]])}}return s}},{}],438:[function(t,e,r){\"use strict\";e.exports=function(t,e,r,n,i,a,o,s,l,c){var u=e+a+c;if(f>0){var f=Math.sqrt(u+1);t[0]=.5*(o-l)/f,t[1]=.5*(s-n)/f,t[2]=.5*(r-a)/f,t[3]=.5*f}else{var h=Math.max(e,a,c),f=Math.sqrt(2*h-u+1);e>=h?(t[0]=.5*f,t[1]=.5*(i+r)/f,t[2]=.5*(s+n)/f,t[3]=.5*(o-l)/f):a>=h?(t[0]=.5*(r+i)/f,t[1]=.5*f,t[2]=.5*(l+o)/f,t[3]=.5*(s-n)/f):(t[0]=.5*(n+s)/f,t[1]=.5*(o+l)/f,t[2]=.5*f,t[3]=.5*(r-i)/f)}return t}},{}],439:[function(t,e,r){\"use strict\";e.exports=function(t){var e=(t=t||{}).center||[0,0,0],r=t.rotation||[0,0,0,1],n=t.radius||1;e=[].slice.call(e,0,3),u(r=[].slice.call(r,0,4),r);var i=new f(r,e,Math.log(n));i.setDistanceLimits(t.zoomMin,t.zoomMax),(\"eye\"in t||\"up\"in t)&&i.lookAt(0,t.eye,t.center,t.up);return i};var n=t(\"filtered-vector\"),i=t(\"gl-mat4/lookAt\"),a=t(\"gl-mat4/fromQuat\"),o=t(\"gl-mat4/invert\"),s=t(\"./lib/quatFromFrame\");function l(t,e,r){return Math.sqrt(Math.pow(t,2)+Math.pow(e,2)+Math.pow(r,2))}function c(t,e,r,n){return Math.sqrt(Math.pow(t,2)+Math.pow(e,2)+Math.pow(r,2)+Math.pow(n,2))}function u(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=c(r,n,i,a);o>1e-6?(t[0]=r/o,t[1]=n/o,t[2]=i/o,t[3]=a/o):(t[0]=t[1]=t[2]=0,t[3]=1)}function f(t,e,r){this.radius=n([r]),this.center=n(e),this.rotation=n(t),this.computedRadius=this.radius.curve(0),this.computedCenter=this.center.curve(0),this.computedRotation=this.rotation.curve(0),this.computedUp=[.1,0,0],this.computedEye=[.1,0,0],this.computedMatrix=[.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.recalcMatrix(0)}var h=f.prototype;h.lastT=function(){return Math.max(this.radius.lastT(),this.center.lastT(),this.rotation.lastT())},h.recalcMatrix=function(t){this.radius.curve(t),this.center.curve(t),this.rotation.curve(t);var e=this.computedRotation;u(e,e);var r=this.computedMatrix;a(r,e);var n=this.computedCenter,i=this.computedEye,o=this.computedUp,s=Math.exp(this.computedRadius[0]);i[0]=n[0]+s*r[2],i[1]=n[1]+s*r[6],i[2]=n[2]+s*r[10],o[0]=r[1],o[1]=r[5],o[2]=r[9];for(var l=0;l<3;++l){for(var c=0,f=0;f<3;++f)c+=r[l+4*f]*i[f];r[12+l]=-c}},h.getMatrix=function(t,e){this.recalcMatrix(t);var r=this.computedMatrix;if(e){for(var n=0;n<16;++n)e[n]=r[n];return e}return r},h.idle=function(t){this.center.idle(t),this.radius.idle(t),this.rotation.idle(t)},h.flush=function(t){this.center.flush(t),this.radius.flush(t),this.rotation.flush(t)},h.pan=function(t,e,r,n){e=e||0,r=r||0,n=n||0,this.recalcMatrix(t);var i=this.computedMatrix,a=i[1],o=i[5],s=i[9],c=l(a,o,s);a/=c,o/=c,s/=c;var u=i[0],f=i[4],h=i[8],p=u*a+f*o+h*s,d=l(u-=a*p,f-=o*p,h-=s*p);u/=d,f/=d,h/=d;var g=i[2],v=i[6],m=i[10],y=g*a+v*o+m*s,x=g*u+v*f+m*h,b=l(g-=y*a+x*u,v-=y*o+x*f,m-=y*s+x*h);g/=b,v/=b,m/=b;var _=u*e+a*r,w=f*e+o*r,k=h*e+s*r;this.center.move(t,_,w,k);var M=Math.exp(this.computedRadius[0]);M=Math.max(1e-4,M+n),this.radius.set(t,Math.log(M))},h.rotate=function(t,e,r,n){this.recalcMatrix(t),e=e||0,r=r||0;var i=this.computedMatrix,a=i[0],o=i[4],s=i[8],u=i[1],f=i[5],h=i[9],p=i[2],d=i[6],g=i[10],v=e*a+r*u,m=e*o+r*f,y=e*s+r*h,x=-(d*y-g*m),b=-(g*v-p*y),_=-(p*m-d*v),w=Math.sqrt(Math.max(0,1-Math.pow(x,2)-Math.pow(b,2)-Math.pow(_,2))),k=c(x,b,_,w);k>1e-6?(x/=k,b/=k,_/=k,w/=k):(x=b=_=0,w=1);var M=this.computedRotation,A=M[0],T=M[1],S=M[2],E=M[3],C=A*w+E*x+T*_-S*b,L=T*w+E*b+S*x-A*_,z=S*w+E*_+A*b-T*x,O=E*w-A*x-T*b-S*_;if(n){x=p,b=d,_=g;var I=Math.sin(n)/l(x,b,_);x*=I,b*=I,_*=I,O=O*(w=Math.cos(e))-(C=C*w+O*x+L*_-z*b)*x-(L=L*w+O*b+z*x-C*_)*b-(z=z*w+O*_+C*b-L*x)*_}var P=c(C,L,z,O);P>1e-6?(C/=P,L/=P,z/=P,O/=P):(C=L=z=0,O=1),this.rotation.set(t,C,L,z,O)},h.lookAt=function(t,e,r,n){this.recalcMatrix(t),r=r||this.computedCenter,e=e||this.computedEye,n=n||this.computedUp;var a=this.computedMatrix;i(a,e,r,n);var o=this.computedRotation;s(o,a[0],a[1],a[2],a[4],a[5],a[6],a[8],a[9],a[10]),u(o,o),this.rotation.set(t,o[0],o[1],o[2],o[3]);for(var l=0,c=0;c<3;++c)l+=Math.pow(r[c]-e[c],2);this.radius.set(t,.5*Math.log(Math.max(l,1e-6))),this.center.set(t,r[0],r[1],r[2])},h.translate=function(t,e,r,n){this.center.move(t,e||0,r||0,n||0)},h.setMatrix=function(t,e){var r=this.computedRotation;s(r,e[0],e[1],e[2],e[4],e[5],e[6],e[8],e[9],e[10]),u(r,r),this.rotation.set(t,r[0],r[1],r[2],r[3]);var n=this.computedMatrix;o(n,e);var i=n[15];if(Math.abs(i)>1e-6){var a=n[12]/i,l=n[13]/i,c=n[14]/i;this.recalcMatrix(t);var f=Math.exp(this.computedRadius[0]);this.center.set(t,a-n[2]*f,l-n[6]*f,c-n[10]*f),this.radius.idle(t)}else this.center.idle(t),this.radius.idle(t)},h.setDistance=function(t,e){e>0&&this.radius.set(t,Math.log(e))},h.setDistanceLimits=function(t,e){t=t>0?Math.log(t):-1/0,e=e>0?Math.log(e):1/0,e=Math.max(e,t),this.radius.bounds[0][0]=t,this.radius.bounds[1][0]=e},h.getDistanceLimits=function(t){var e=this.radius.bounds;return t?(t[0]=Math.exp(e[0][0]),t[1]=Math.exp(e[1][0]),t):[Math.exp(e[0][0]),Math.exp(e[1][0])]},h.toJSON=function(){return this.recalcMatrix(this.lastT()),{center:this.computedCenter.slice(),rotation:this.computedRotation.slice(),distance:Math.log(this.computedRadius[0]),zoomMin:this.radius.bounds[0][0],zoomMax:this.radius.bounds[1][0]}},h.fromJSON=function(t){var e=this.lastT(),r=t.center;r&&this.center.set(e,r[0],r[1],r[2]);var n=t.rotation;n&&this.rotation.set(e,n[0],n[1],n[2],n[3]);var i=t.distance;i&&i>0&&this.radius.set(e,Math.log(i)),this.setDistanceLimits(t.zoomMin,t.zoomMax)}},{\"./lib/quatFromFrame\":438,\"filtered-vector\":215,\"gl-mat4/fromQuat\":251,\"gl-mat4/invert\":254,\"gl-mat4/lookAt\":255}],440:[function(t,e,r){\"use strict\";var n=t(\"repeat-string\");e.exports=function(t,e,r){return n(r=\"undefined\"!=typeof r?r+\"\":\" \",e)+t}},{\"repeat-string\":479}],441:[function(t,e,r){\"use strict\";function n(t,e){if(\"string\"!=typeof t)return[t];var r=[t];\"string\"==typeof e||Array.isArray(e)?e={brackets:e}:e||(e={});var n=e.brackets?Array.isArray(e.brackets)?e.brackets:[e.brackets]:[\"{}\",\"[]\",\"()\"],i=e.escape||\"___\",a=!!e.flat;n.forEach(function(t){var e=new RegExp([\"\\\\\",t[0],\"[^\\\\\",t[0],\"\\\\\",t[1],\"]*\\\\\",t[1]].join(\"\")),n=[];function a(e,a,o){var s=r.push(e.slice(t[0].length,-t[1].length))-1;return n.push(s),i+s}r.forEach(function(t,n){for(var i,o=0;t!=i;)if(i=t,t=t.replace(e,a),o++>1e4)throw Error(\"References have circular dependency. Please, check them.\");r[n]=t}),n=n.reverse(),r=r.map(function(e){return n.forEach(function(r){e=e.replace(new RegExp(\"(\\\\\"+i+r+\"(?![0-9]))\",\"g\"),t[0]+\"$1\"+t[1])}),e})});var o=new RegExp(\"\\\\\"+i+\"([0-9]+)\");return a?r:function t(e,r,n){for(var i,a=[],s=0;i=o.exec(e);){if(s++>1e4)throw Error(\"Circular references in parenthesis\");a.push(e.slice(0,i.index)),a.push(t(r[i[1]],r)),e=e.slice(i.index+i[0].length)}return a.push(e),a}(r[0],r)}function i(t,e){if(e&&e.flat){var r,n=e&&e.escape||\"___\",i=t[0];if(!i)return\"\";for(var a=new RegExp(\"\\\\\"+n+\"([0-9]+)\"),o=0;i!=r;){if(o++>1e4)throw Error(\"Circular references in \"+t);r=i,i=i.replace(a,s)}return i}return t.reduce(function t(e,r){return Array.isArray(r)&&(r=r.reduce(t,\"\")),e+r},\"\");function s(e,r){if(null==t[r])throw Error(\"Reference \"+r+\"is undefined\");return t[r]}}function a(t,e){return Array.isArray(t)?i(t,e):n(t,e)}a.parse=n,a.stringify=i,e.exports=a},{}],442:[function(t,e,r){\"use strict\";var n=t(\"pick-by-alias\");e.exports=function(t){var e;arguments.length>1&&(t=arguments);\"string\"==typeof t?t=t.split(/\\s/).map(parseFloat):\"number\"==typeof t&&(t=[t]);t.length&&\"number\"==typeof t[0]?e=1===t.length?{width:t[0],height:t[0],x:0,y:0}:2===t.length?{width:t[0],height:t[1],x:0,y:0}:{x:t[0],y:t[1],width:t[2]-t[0]||0,height:t[3]-t[1]||0}:t&&(t=n(t,{left:\"x l left Left\",top:\"y t top Top\",width:\"w width W Width\",height:\"h height W Width\",bottom:\"b bottom Bottom\",right:\"r right Right\"}),e={x:t.left||0,y:t.top||0},null==t.width?t.right?e.width=t.right-e.x:e.width=0:e.width=t.width,null==t.height?t.bottom?e.height=t.bottom-e.y:e.height=0:e.height=t.height);return e}},{\"pick-by-alias\":448}],443:[function(t,e,r){e.exports=function(t){var e=[];return t.replace(i,function(t,r,i){var o=r.toLowerCase();for(i=function(t){var e=t.match(a);return e?e.map(Number):[]}(i),\"m\"==o&&i.length>2&&(e.push([r].concat(i.splice(0,2))),o=\"l\",r=\"m\"==r?\"l\":\"L\");;){if(i.length==n[o])return i.unshift(r),e.push(i);if(i.length<n[o])throw new Error(\"malformed path data\");e.push([r].concat(i.splice(0,n[o])))}}),e};var n={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},i=/([astvzqmhlc])([^astvzqmhlc]*)/gi;var a=/-?[0-9]*\\.?[0-9]+(?:e[-+]?\\d+)?/gi},{}],444:[function(t,e,r){e.exports=function(t,e){e||(e=[0,\"\"]),t=String(t);var r=parseFloat(t,10);return e[0]=r,e[1]=t.match(/[\\d.\\-\\+]*\\s*(.*)/)[1]||\"\",e}},{}],445:[function(t,e,r){(function(t){(function(){var r,n,i,a,o,s;\"undefined\"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:\"undefined\"!=typeof t&&null!==t&&t.hrtime?(e.exports=function(){return(r()-o)/1e6},n=t.hrtime,a=(r=function(){var t;return 1e9*(t=n())[0]+t[1]})(),s=1e9*t.uptime(),o=a-s):Date.now?(e.exports=function(){return Date.now()-i},i=Date.now()):(e.exports=function(){return(new Date).getTime()-i},i=(new Date).getTime())}).call(this)}).call(this,t(\"_process\"))},{_process:465}],446:[function(t,e,r){\"use strict\";e.exports=function(t){var e=t.length;if(e<n){for(var r=1,a=0;a<e;++a)for(var o=0;o<a;++o)if(t[a]<t[o])r=-r;else if(t[a]===t[o])return 0;return r}for(var s=i.mallocUint8(e),a=0;a<e;++a)s[a]=0;for(var r=1,a=0;a<e;++a)if(!s[a]){var l=1;s[a]=1;for(var o=t[a];o!==a;o=t[o]){if(s[o])return i.freeUint8(s),0;l+=1,s[o]=1}1&l||(r=-r)}return i.freeUint8(s),r};var n=32,i=t(\"typedarray-pool\")},{\"typedarray-pool\":522}],447:[function(t,e,r){\"use strict\";var n=t(\"typedarray-pool\"),i=t(\"invert-permutation\");r.rank=function(t){var e=t.length;switch(e){case 0:case 1:return 0;case 2:return t[1]}var r,a,o,s=n.mallocUint32(e),l=n.mallocUint32(e),c=0;for(i(t,l),o=0;o<e;++o)s[o]=t[o];for(o=e-1;o>0;--o)a=l[o],r=s[o],s[o]=s[a],s[a]=r,l[o]=l[r],l[r]=a,c=(c+r)*o;return n.freeUint32(l),n.freeUint32(s),c},r.unrank=function(t,e,r){switch(t){case 0:return r||[];case 1:return r?(r[0]=0,r):[0];case 2:return r?(e?(r[0]=0,r[1]=1):(r[0]=1,r[1]=0),r):e?[0,1]:[1,0]}var n,i,a,o=1;for((r=r||new Array(t))[0]=0,a=1;a<t;++a)r[a]=a,o=o*a|0;for(a=t-1;a>0;--a)e=e-(n=e/o|0)*o|0,o=o/a|0,i=0|r[a],r[a]=0|r[n],r[n]=0|i;return r}},{\"invert-permutation\":398,\"typedarray-pool\":522}],448:[function(t,e,r){\"use strict\";e.exports=function(t,e,r){var n,a,o={};if(\"string\"==typeof e&&(e=i(e)),Array.isArray(e)){var s={};for(a=0;a<e.length;a++)s[e[a]]=!0;e=s}for(n in e)e[n]=i(e[n]);var l={};for(n in e){var c=e[n];if(Array.isArray(c))for(a=0;a<c.length;a++){var u=c[a];if(r&&(l[u]=!0),u in t){if(o[n]=t[u],r)for(var f=a;f<c.length;f++)l[c[f]]=!0;break}}else n in t&&(e[n]&&(o[n]=t[n]),r&&(l[n]=!0))}if(r)for(n in t)l[n]||(o[n]=t[n]);return o};var n={};function i(t){return n[t]?n[t]:(\"string\"==typeof t&&(t=n[t]=t.split(/\\s*,\\s*|\\s+/)),t)}},{}],449:[function(t,e,r){\"use strict\";e.exports=function(t,e){for(var r=0|e.length,i=t.length,a=[new Array(r),new Array(r)],o=0;o<r;++o)a[0][o]=[],a[1][o]=[];for(var o=0;o<i;++o){var s=t[o];a[0][s[0]].push(s),a[1][s[1]].push(s)}for(var l=[],o=0;o<r;++o)a[0][o].length+a[1][o].length===0&&l.push([o]);function c(t,e){var r=a[e][t[e]];r.splice(r.indexOf(t),1)}function u(t,r,i){for(var o,s,l,u=0;u<2;++u)if(a[u][r].length>0){o=a[u][r][0],l=u;break}s=o[1^l];for(var f=0;f<2;++f)for(var h=a[f][r],p=0;p<h.length;++p){var d=h[p],g=d[1^f],v=n(e[t],e[r],e[s],e[g]);v>0&&(o=d,s=g,l=f)}return i?s:(o&&c(o,l),s)}function f(t,r){var i=a[r][t][0],o=[t];c(i,r);for(var s=i[1^r];;){for(;s!==t;)o.push(s),s=u(o[o.length-2],s,!1);if(a[0][t].length+a[1][t].length===0)break;var l=o[o.length-1],f=t,h=o[1],p=u(l,f,!0);if(n(e[l],e[f],e[h],e[p])<0)break;o.push(t),s=u(l,f)}return o}function h(t,e){return e[1]===e[e.length-1]}for(var o=0;o<r;++o)for(var p=0;p<2;++p){for(var d=[];a[p][o].length>0;){a[0][o].length;var g=f(o,p);h(d,g)?d.push.apply(d,g):(d.length>0&&l.push(d),d=g)}d.length>0&&l.push(d)}return l};var n=t(\"compare-angle\")},{\"compare-angle\":115}],450:[function(t,e,r){\"use strict\";e.exports=function(t,e){for(var r=n(t,e.length),i=new Array(e.length),a=new Array(e.length),o=[],s=0;s<e.length;++s){var l=r[s].length;a[s]=l,i[s]=!0,l<=1&&o.push(s)}for(;o.length>0;){var c=o.pop();i[c]=!1;for(var u=r[c],s=0;s<u.length;++s){var f=u[s];0==--a[f]&&o.push(f)}}for(var h=new Array(e.length),p=[],s=0;s<e.length;++s)if(i[s]){var c=p.length;h[s]=c,p.push(e[s])}else h[s]=-1;for(var d=[],s=0;s<t.length;++s){var g=t[s];i[g[0]]&&i[g[1]]&&d.push([h[g[0]],h[g[1]]])}return[d,p]};var n=t(\"edges-to-adjacency-list\")},{\"edges-to-adjacency-list\":157}],451:[function(t,e,r){\"use strict\";e.exports=function(t,e){var r=c(t,e);t=r[0];for(var f=(e=r[1]).length,h=(t.length,n(t,e.length)),p=0;p<f;++p)if(h[p].length%2==1)throw new Error(\"planar-graph-to-polyline: graph must be manifold\");var d=i(t,e);for(var g=(d=d.filter(function(t){for(var r=t.length,n=[0],i=0;i<r;++i){var a=e[t[i]],l=e[t[(i+1)%r]],c=o(-a[0],a[1]),u=o(-a[0],l[1]),f=o(l[0],a[1]),h=o(l[0],l[1]);n=s(n,s(s(c,u),s(f,h)))}return n[n.length-1]>0})).length,v=new Array(g),m=new Array(g),p=0;p<g;++p){v[p]=p;var y=new Array(g),x=d[p].map(function(t){return e[t]}),b=a([x]),_=0;t:for(var w=0;w<g;++w)if(y[w]=0,p!==w){for(var k=d[w],M=k.length,A=0;A<M;++A){var T=b(e[k[A]]);if(0!==T){T<0&&(y[w]=1,_+=1);continue t}}y[w]=1,_+=1}m[p]=[_,p,y]}m.sort(function(t,e){return e[0]-t[0]});for(var p=0;p<g;++p)for(var y=m[p],S=y[1],E=y[2],w=0;w<g;++w)E[w]&&(v[w]=S);for(var C=function(t){for(var e=new Array(t),r=0;r<t;++r)e[r]=[];return e}(g),p=0;p<g;++p)C[p].push(v[p]),C[v[p]].push(p);for(var L={},z=u(f,!1),p=0;p<g;++p)for(var k=d[p],M=k.length,w=0;w<M;++w){var O=k[w],I=k[(w+1)%M],P=Math.min(O,I)+\":\"+Math.max(O,I);if(P in L){var D=L[P];C[D].push(p),C[p].push(D),z[O]=z[I]=!0}else L[P]=p}function R(t){for(var e=t.length,r=0;r<e;++r)if(!z[t[r]])return!1;return!0}for(var B=[],F=u(g,-1),p=0;p<g;++p)v[p]!==p||R(d[p])?F[p]=-1:(B.push(p),F[p]=0);var r=[];for(;B.length>0;){var N=B.pop(),j=C[N];l(j,function(t,e){return t-e});var V,U=j.length,q=F[N];if(0===q){var k=d[N];V=[k]}for(var p=0;p<U;++p){var H=j[p];if(!(F[H]>=0)&&(F[H]=1^q,B.push(H),0===q)){var k=d[H];R(k)||(k.reverse(),V.push(k))}}0===q&&r.push(V)}return r};var n=t(\"edges-to-adjacency-list\"),i=t(\"planar-dual\"),a=t(\"point-in-big-polygon\"),o=t(\"two-product\"),s=t(\"robust-sum\"),l=t(\"uniq\"),c=t(\"./lib/trim-leaves\");function u(t,e){for(var r=new Array(t),n=0;n<t;++n)r[n]=e;return r}},{\"./lib/trim-leaves\":450,\"edges-to-adjacency-list\":157,\"planar-dual\":449,\"point-in-big-polygon\":455,\"robust-sum\":491,\"two-product\":520,uniq:524}],452:[function(t,e,r){\"use strict\";e.exports=t(\"./quad\")},{\"./quad\":454}],453:[function(t,e,r){arguments[4][99][0].apply(r,arguments)},{dup:99}],454:[function(t,e,r){\"use strict\";var n=t(\"binary-search-bounds\"),i=t(\"clamp\"),a=t(\"parse-rect\"),o=t(\"array-bounds\"),s=t(\"pick-by-alias\"),l=t(\"defined\"),c=t(\"flatten-vertex-data\"),u=t(\"is-obj\"),f=t(\"dtype\"),h=t(\"math-log2\");function p(t,e){for(var r=e[0],n=e[1],a=1/(e[2]-r),o=1/(e[3]-n),s=new Array(t.length),l=0,c=t.length/2;l<c;l++)s[2*l]=i((t[2*l]-r)*a,0,1),s[2*l+1]=i((t[2*l+1]-n)*o,0,1);return s}e.exports=function(t,e){e||(e={}),t=c(t,\"float64\"),e=s(e,{bounds:\"range bounds dataBox databox\",maxDepth:\"depth maxDepth maxdepth level maxLevel maxlevel levels\",dtype:\"type dtype format out dst output destination\"});var r=l(e.maxDepth,255),i=l(e.bounds,o(t,2));i[0]===i[2]&&i[2]++,i[1]===i[3]&&i[3]++;var d,g=p(t,i),v=t.length>>>1;e.dtype||(e.dtype=\"array\"),\"string\"==typeof e.dtype?d=new(f(e.dtype))(v):e.dtype&&(d=e.dtype,Array.isArray(d)&&(d.length=v));for(var m=0;m<v;++m)d[m]=m;var y=[],x=[],b=[],_=[];!function t(e,n,i,a,o,s){if(!a.length)return null;var l=y[o]||(y[o]=[]);var c=b[o]||(b[o]=[]);var u=x[o]||(x[o]=[]);var f=l.length;o++;if(o>r){for(var h=0;h<a.length;h++)l.push(a[h]),c.push(s),u.push(null,null,null,null);return f}l.push(a[0]);c.push(s);if(a.length<=1)return u.push(null,null,null,null),f;var p=.5*i;var d=e+p,v=n+p;var m=[],_=[],w=[],k=[];for(var M=1,A=a.length;M<A;M++){var T=a[M],S=g[2*T],E=g[2*T+1];S<d?E<v?m.push(T):_.push(T):E<v?w.push(T):k.push(T)}s<<=2;u.push(t(e,n,p,m,o,s),t(e,v,p,_,o,s+1),t(d,n,p,w,o,s+2),t(d,v,p,k,o,s+3));return f}(0,0,1,d,0,1);for(var w=0,k=0;k<y.length;k++){var M=y[k];if(d.set)d.set(M,w);else for(var A=0,T=M.length;A<T;A++)d[A+w]=M[A];var S=w+y[k].length;_[k]=[w,S],w=S}return d.range=function(){var e,r=[],o=arguments.length;for(;o--;)r[o]=arguments[o];if(u(r[r.length-1])){var c=r.pop();r.length||null==c.x&&null==c.l&&null==c.left||(r=[c],e={}),e=s(c,{level:\"level maxLevel\",d:\"d diam diameter r radius px pxSize pixel pixelSize maxD size minSize\",lod:\"lod details ranges offsets\"})}else e={};r.length||(r=i);var f=a.apply(void 0,r),d=[Math.min(f.x,f.x+f.width),Math.min(f.y,f.y+f.height),Math.max(f.x,f.x+f.width),Math.max(f.y,f.y+f.height)],g=d[0],v=d[1],m=d[2],w=d[3],k=p([g,v,m,w],i),M=k[0],A=k[1],T=k[2],S=k[3],C=l(e.level,y.length);if(null!=e.d){var L;\"number\"==typeof e.d?L=[e.d,e.d]:e.d.length&&(L=e.d),C=Math.min(Math.max(Math.ceil(-h(Math.abs(L[0])/(i[2]-i[0]))),Math.ceil(-h(Math.abs(L[1])/(i[3]-i[1])))),C)}if(C=Math.min(C,y.length),e.lod)return function(t,e,r,i,a){for(var o=[],s=0;s<a;s++){var l=b[s],c=_[s][0],u=E(t,e,s),f=E(r,i,s),h=n.ge(l,u),p=n.gt(l,f,h,l.length-1);o[s]=[h+c,p+c]}return o}(M,A,T,S,C);var z=[];return function e(r,n,i,a,o,s){if(null!==o&&null!==s){var l=r+i,c=n+i;if(!(M>l||A>c||T<r||S<n||a>=C||o===s)){var u=y[a];void 0===s&&(s=u.length);for(var f=o;f<s;f++){var h=u[f],p=t[2*h],d=t[2*h+1];p>=g&&p<=m&&d>=v&&d<=w&&z.push(h)}var b=x[a],_=b[4*o+0],k=b[4*o+1],E=b[4*o+2],L=b[4*o+3],O=function(t,e){for(var r=null,n=0;null===r;)if(r=t[4*e+n],++n>t.length)return null;return r}(b,o+1),I=.5*i,P=a+1;e(r,n,I,P,_,k||E||L||O),e(r,n+I,I,P,k,E||L||O),e(r+I,n,I,P,E,L||O),e(r+I,n+I,I,P,L,O)}}}(0,0,1,0,0,1),z},d;function E(t,e,r){for(var n=1,i=.5,a=.5,o=.5,s=0;s<r;s++)n<<=2,n+=t<i?e<a?0:1:e<a?2:3,o*=.5,i+=t<i?-o:o,a+=e<a?-o:o;return n}}},{\"array-bounds\":53,\"binary-search-bounds\":453,clamp:103,defined:149,dtype:154,\"flatten-vertex-data\":216,\"is-obj\":404,\"math-log2\":415,\"parse-rect\":442,\"pick-by-alias\":448}],455:[function(t,e,r){e.exports=function(t){for(var e=t.length,r=[],a=[],s=0;s<e;++s)for(var u=t[s],f=u.length,h=f-1,p=0;p<f;h=p++){var d=u[h],g=u[p];d[0]===g[0]?a.push([d,g]):r.push([d,g])}if(0===r.length)return 0===a.length?c:(v=l(a),function(t){return v(t[0],t[1])?0:1});var v;var m=i(r),y=function(t,e){return function(r){var i=o.le(e,r[0]);if(i<0)return 1;var a=t[i];if(!a){if(!(i>0&&e[i]===r[0]))return 1;a=t[i-1]}for(var s=1;a;){var l=a.key,c=n(r,l[0],l[1]);if(l[0][0]<l[1][0])if(c<0)a=a.left;else{if(!(c>0))return 0;s=-1,a=a.right}else if(c>0)a=a.left;else{if(!(c<0))return 0;s=1,a=a.right}}return s}}(m.slabs,m.coordinates);return 0===a.length?y:function(t,e){return function(r){return t(r[0],r[1])?0:e(r)}}(l(a),y)};var n=t(\"robust-orientation\")[3],i=t(\"slab-decomposition\"),a=t(\"interval-tree-1d\"),o=t(\"binary-search-bounds\");function s(){return!0}function l(t){for(var e={},r=0;r<t.length;++r){var n=t[r],i=n[0][0],o=n[0][1],l=n[1][1],c=[Math.min(o,l),Math.max(o,l)];i in e?e[i].push(c):e[i]=[c]}var u={},f=Object.keys(e);for(r=0;r<f.length;++r){var h=e[f[r]];u[f[r]]=a(h)}return function(t){return function(e,r){var n=t[e];return!!n&&!!n.queryPoint(r,s)}}(u)}function c(t){return 1}},{\"binary-search-bounds\":79,\"interval-tree-1d\":397,\"robust-orientation\":486,\"slab-decomposition\":502}],456:[function(t,e,r){var n,i=t(\"./lib/build-log\"),a=t(\"./lib/epsilon\"),o=t(\"./lib/intersecter\"),s=t(\"./lib/segment-chainer\"),l=t(\"./lib/segment-selector\"),c=t(\"./lib/geojson\"),u=!1,f=a();function h(t,e,r){var i=n.segments(t),a=n.segments(e),o=r(n.combine(i,a));return n.polygon(o)}n={buildLog:function(t){return!0===t?u=i():!1===t&&(u=!1),!1!==u&&u.list},epsilon:function(t){return f.epsilon(t)},segments:function(t){var e=o(!0,f,u);return t.regions.forEach(e.addRegion),{segments:e.calculate(t.inverted),inverted:t.inverted}},combine:function(t,e){return{combined:o(!1,f,u).calculate(t.segments,t.inverted,e.segments,e.inverted),inverted1:t.inverted,inverted2:e.inverted}},selectUnion:function(t){return{segments:l.union(t.combined,u),inverted:t.inverted1||t.inverted2}},selectIntersect:function(t){return{segments:l.intersect(t.combined,u),inverted:t.inverted1&&t.inverted2}},selectDifference:function(t){return{segments:l.difference(t.combined,u),inverted:t.inverted1&&!t.inverted2}},selectDifferenceRev:function(t){return{segments:l.differenceRev(t.combined,u),inverted:!t.inverted1&&t.inverted2}},selectXor:function(t){return{segments:l.xor(t.combined,u),inverted:t.inverted1!==t.inverted2}},polygon:function(t){return{regions:s(t.segments,f,u),inverted:t.inverted}},polygonFromGeoJSON:function(t){return c.toPolygon(n,t)},polygonToGeoJSON:function(t){return c.fromPolygon(n,f,t)},union:function(t,e){return h(t,e,n.selectUnion)},intersect:function(t,e){return h(t,e,n.selectIntersect)},difference:function(t,e){return h(t,e,n.selectDifference)},differenceRev:function(t,e){return h(t,e,n.selectDifferenceRev)},xor:function(t,e){return h(t,e,n.selectXor)}},\"object\"==typeof window&&(window.PolyBool=n),e.exports=n},{\"./lib/build-log\":457,\"./lib/epsilon\":458,\"./lib/geojson\":459,\"./lib/intersecter\":460,\"./lib/segment-chainer\":462,\"./lib/segment-selector\":463}],457:[function(t,e,r){e.exports=function(){var t,e=0,r=!1;function n(e,r){return t.list.push({type:e,data:r?JSON.parse(JSON.stringify(r)):void 0}),t}return t={list:[],segmentId:function(){return e++},checkIntersection:function(t,e){return n(\"check\",{seg1:t,seg2:e})},segmentChop:function(t,e){return n(\"div_seg\",{seg:t,pt:e}),n(\"chop\",{seg:t,pt:e})},statusRemove:function(t){return n(\"pop_seg\",{seg:t})},segmentUpdate:function(t){return n(\"seg_update\",{seg:t})},segmentNew:function(t,e){return n(\"new_seg\",{seg:t,primary:e})},segmentRemove:function(t){return n(\"rem_seg\",{seg:t})},tempStatus:function(t,e,r){return n(\"temp_status\",{seg:t,above:e,below:r})},rewind:function(t){return n(\"rewind\",{seg:t})},status:function(t,e,r){return n(\"status\",{seg:t,above:e,below:r})},vert:function(e){return e===r?t:(r=e,n(\"vert\",{x:e}))},log:function(t){return\"string\"!=typeof t&&(t=JSON.stringify(t,!1,\" \")),n(\"log\",{txt:t})},reset:function(){return n(\"reset\")},selected:function(t){return n(\"selected\",{segs:t})},chainStart:function(t){return n(\"chain_start\",{seg:t})},chainRemoveHead:function(t,e){return n(\"chain_rem_head\",{index:t,pt:e})},chainRemoveTail:function(t,e){return n(\"chain_rem_tail\",{index:t,pt:e})},chainNew:function(t,e){return n(\"chain_new\",{pt1:t,pt2:e})},chainMatch:function(t){return n(\"chain_match\",{index:t})},chainClose:function(t){return n(\"chain_close\",{index:t})},chainAddHead:function(t,e){return n(\"chain_add_head\",{index:t,pt:e})},chainAddTail:function(t,e){return n(\"chain_add_tail\",{index:t,pt:e})},chainConnect:function(t,e){return n(\"chain_con\",{index1:t,index2:e})},chainReverse:function(t){return n(\"chain_rev\",{index:t})},chainJoin:function(t,e){return n(\"chain_join\",{index1:t,index2:e})},done:function(){return n(\"done\")}}}},{}],458:[function(t,e,r){e.exports=function(t){\"number\"!=typeof t&&(t=1e-10);var e={epsilon:function(e){return\"number\"==typeof e&&(t=e),t},pointAboveOrOnLine:function(e,r,n){var i=r[0],a=r[1],o=n[0],s=n[1],l=e[0];return(o-i)*(e[1]-a)-(s-a)*(l-i)>=-t},pointBetween:function(e,r,n){var i=e[1]-r[1],a=n[0]-r[0],o=e[0]-r[0],s=n[1]-r[1],l=o*a+i*s;return!(l<t||l-(a*a+s*s)>-t)},pointsSameX:function(e,r){return Math.abs(e[0]-r[0])<t},pointsSameY:function(e,r){return Math.abs(e[1]-r[1])<t},pointsSame:function(t,r){return e.pointsSameX(t,r)&&e.pointsSameY(t,r)},pointsCompare:function(t,r){return e.pointsSameX(t,r)?e.pointsSameY(t,r)?0:t[1]<r[1]?-1:1:t[0]<r[0]?-1:1},pointsCollinear:function(e,r,n){var i=e[0]-r[0],a=e[1]-r[1],o=r[0]-n[0],s=r[1]-n[1];return Math.abs(i*s-o*a)<t},linesIntersect:function(e,r,n,i){var a=r[0]-e[0],o=r[1]-e[1],s=i[0]-n[0],l=i[1]-n[1],c=a*l-o*s;if(Math.abs(c)<t)return!1;var u=e[0]-n[0],f=e[1]-n[1],h=(s*f-l*u)/c,p=(a*f-o*u)/c,d={alongA:0,alongB:0,pt:[e[0]+h*a,e[1]+h*o]};return d.alongA=h<=-t?-2:h<t?-1:h-1<=-t?0:h-1<t?1:2,d.alongB=p<=-t?-2:p<t?-1:p-1<=-t?0:p-1<t?1:2,d},pointInsideRegion:function(e,r){for(var n=e[0],i=e[1],a=r[r.length-1][0],o=r[r.length-1][1],s=!1,l=0;l<r.length;l++){var c=r[l][0],u=r[l][1];u-i>t!=o-i>t&&(a-c)*(i-u)/(o-u)+c-n>t&&(s=!s),a=c,o=u}return s}};return e}},{}],459:[function(t,e,r){var n={toPolygon:function(t,e){function r(e){if(e.length<=0)return t.segments({inverted:!1,regions:[]});function r(e){var r=e.slice(0,e.length-1);return t.segments({inverted:!1,regions:[r]})}for(var n=r(e[0]),i=1;i<e.length;i++)n=t.selectDifference(t.combine(n,r(e[i])));return n}if(\"Polygon\"===e.type)return t.polygon(r(e.coordinates));if(\"MultiPolygon\"===e.type){for(var n=t.segments({inverted:!1,regions:[]}),i=0;i<e.coordinates.length;i++)n=t.selectUnion(t.combine(n,r(e.coordinates[i])));return t.polygon(n)}throw new Error(\"PolyBool: Cannot convert GeoJSON object to PolyBool polygon\")},fromPolygon:function(t,e,r){function n(t,r){return e.pointInsideRegion([.5*(t[0][0]+t[1][0]),.5*(t[0][1]+t[1][1])],r)}function i(t){return{region:t,children:[]}}r=t.polygon(t.segments(r));var a=i(null);function o(t,e){for(var r=0;r<t.children.length;r++){if(n(e,(s=t.children[r]).region))return void o(s,e)}var a=i(e);for(r=0;r<t.children.length;r++){var s;n((s=t.children[r]).region,e)&&(a.children.push(s),t.children.splice(r,1),r--)}t.children.push(a)}for(var s=0;s<r.regions.length;s++){var l=r.regions[s];l.length<3||o(a,l)}function c(t,e){for(var r=0,n=t[t.length-1][0],i=t[t.length-1][1],a=[],o=0;o<t.length;o++){var s=t[o][0],l=t[o][1];a.push([s,l]),r+=l*n-s*i,n=s,i=l}return r<0!==e&&a.reverse(),a.push([a[0][0],a[0][1]]),a}var u=[];function f(t){var e=[c(t.region,!1)];u.push(e);for(var r=0;r<t.children.length;r++)e.push(h(t.children[r]))}function h(t){for(var e=0;e<t.children.length;e++)f(t.children[e]);return c(t.region,!0)}for(s=0;s<a.children.length;s++)f(a.children[s]);return u.length<=0?{type:\"Polygon\",coordinates:[]}:1==u.length?{type:\"Polygon\",coordinates:u[0]}:{type:\"MultiPolygon\",coordinates:u}}};e.exports=n},{}],460:[function(t,e,r){var n=t(\"./linked-list\");e.exports=function(t,e,r){function i(t,e,n){return{id:r?r.segmentId():-1,start:t,end:e,myFill:{above:n.myFill.above,below:n.myFill.below},otherFill:null}}var a=n.create();function o(t,r){a.insertBefore(t,function(n){return function(t,r,n,i,a,o){var s=e.pointsCompare(r,a);return 0!==s?s:e.pointsSame(n,o)?0:t!==i?t?1:-1:e.pointAboveOrOnLine(n,i?a:o,i?o:a)?1:-1}(t.isStart,t.pt,r,n.isStart,n.pt,n.other.pt)<0})}function s(t,e){var r=function(t,e){var r=n.node({isStart:!0,pt:t.start,seg:t,primary:e,other:null,status:null});return o(r,t.end),r}(t,e);return function(t,e,r){var i=n.node({isStart:!1,pt:e.end,seg:e,primary:r,other:t,status:null});t.other=i,o(i,t.pt)}(r,t,e),r}function l(t,e){var n=i(e,t.seg.end,t.seg);return function(t,e){r&&r.segmentChop(t.seg,e),t.other.remove(),t.seg.end=e,t.other.pt=e,o(t.other,t.pt)}(t,e),s(n,t.primary)}function c(i,o){var s=n.create();function c(t){return s.findTransition(function(r){var n,i,a,o,s,l;return n=t,i=r.ev,a=n.seg.start,o=n.seg.end,s=i.seg.start,l=i.seg.end,(e.pointsCollinear(a,s,l)?e.pointsCollinear(o,s,l)?1:e.pointAboveOrOnLine(o,s,l)?1:-1:e.pointAboveOrOnLine(a,s,l)?1:-1)>0})}function u(t,n){var i=t.seg,a=n.seg,o=i.start,s=i.end,c=a.start,u=a.end;r&&r.checkIntersection(i,a);var f=e.linesIntersect(o,s,c,u);if(!1===f){if(!e.pointsCollinear(o,s,c))return!1;if(e.pointsSame(o,u)||e.pointsSame(s,c))return!1;var h=e.pointsSame(o,c),p=e.pointsSame(s,u);if(h&&p)return n;var d=!h&&e.pointBetween(o,c,u),g=!p&&e.pointBetween(s,c,u);if(h)return g?l(n,s):l(t,u),n;d&&(p||(g?l(n,s):l(t,u)),l(n,o))}else 0===f.alongA&&(-1===f.alongB?l(t,c):0===f.alongB?l(t,f.pt):1===f.alongB&&l(t,u)),0===f.alongB&&(-1===f.alongA?l(n,o):0===f.alongA?l(n,f.pt):1===f.alongA&&l(n,s));return!1}for(var f=[];!a.isEmpty();){var h=a.getHead();if(r&&r.vert(h.pt[0]),h.isStart){r&&r.segmentNew(h.seg,h.primary);var p=c(h),d=p.before?p.before.ev:null,g=p.after?p.after.ev:null;function v(){if(d){var t=u(h,d);if(t)return t}return!!g&&u(h,g)}r&&r.tempStatus(h.seg,!!d&&d.seg,!!g&&g.seg);var m,y,x=v();if(x)t?(y=null===h.seg.myFill.below||h.seg.myFill.above!==h.seg.myFill.below)&&(x.seg.myFill.above=!x.seg.myFill.above):x.seg.otherFill=h.seg.myFill,r&&r.segmentUpdate(x.seg),h.other.remove(),h.remove();if(a.getHead()!==h){r&&r.rewind(h.seg);continue}t?(y=null===h.seg.myFill.below||h.seg.myFill.above!==h.seg.myFill.below,h.seg.myFill.below=g?g.seg.myFill.above:i,h.seg.myFill.above=y?!h.seg.myFill.below:h.seg.myFill.below):null===h.seg.otherFill&&(m=g?h.primary===g.primary?g.seg.otherFill.above:g.seg.myFill.above:h.primary?o:i,h.seg.otherFill={above:m,below:m}),r&&r.status(h.seg,!!d&&d.seg,!!g&&g.seg),h.other.status=p.insert(n.node({ev:h}))}else{var b=h.status;if(null===b)throw new Error(\"PolyBool: Zero-length segment detected; your epsilon is probably too small or too large\");if(s.exists(b.prev)&&s.exists(b.next)&&u(b.prev.ev,b.next.ev),r&&r.statusRemove(b.ev.seg),b.remove(),!h.primary){var _=h.seg.myFill;h.seg.myFill=h.seg.otherFill,h.seg.otherFill=_}f.push(h.seg)}a.getHead().remove()}return r&&r.done(),f}return t?{addRegion:function(t){for(var n,i,a,o=t[t.length-1],l=0;l<t.length;l++){n=o,o=t[l];var c=e.pointsCompare(n,o);0!==c&&s((i=c<0?n:o,a=c<0?o:n,{id:r?r.segmentId():-1,start:i,end:a,myFill:{above:null,below:null},otherFill:null}),!0)}},calculate:function(t){return c(t,!1)}}:{calculate:function(t,e,r,n){return t.forEach(function(t){s(i(t.start,t.end,t),!0)}),r.forEach(function(t){s(i(t.start,t.end,t),!1)}),c(e,n)}}}},{\"./linked-list\":461}],461:[function(t,e,r){e.exports={create:function(){var t={root:{root:!0,next:null},exists:function(e){return null!==e&&e!==t.root},isEmpty:function(){return null===t.root.next},getHead:function(){return t.root.next},insertBefore:function(e,r){for(var n=t.root,i=t.root.next;null!==i;){if(r(i))return e.prev=i.prev,e.next=i,i.prev.next=e,void(i.prev=e);n=i,i=i.next}n.next=e,e.prev=n,e.next=null},findTransition:function(e){for(var r=t.root,n=t.root.next;null!==n&&!e(n);)r=n,n=n.next;return{before:r===t.root?null:r,after:n,insert:function(t){return t.prev=r,t.next=n,r.next=t,null!==n&&(n.prev=t),t}}}};return t},node:function(t){return t.prev=null,t.next=null,t.remove=function(){t.prev.next=t.next,t.next&&(t.next.prev=t.prev),t.prev=null,t.next=null},t}}},{}],462:[function(t,e,r){e.exports=function(t,e,r){var n=[],i=[];return t.forEach(function(t){var a=t.start,o=t.end;if(e.pointsSame(a,o))console.warn(\"PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large\");else{r&&r.chainStart(t);for(var s={index:0,matches_head:!1,matches_pt1:!1},l={index:0,matches_head:!1,matches_pt1:!1},c=s,u=0;u<n.length;u++){var f=(v=n[u])[0],h=(v[1],v[v.length-1]);if(v[v.length-2],e.pointsSame(f,a)){if(M(u,!0,!0))break}else if(e.pointsSame(f,o)){if(M(u,!0,!1))break}else if(e.pointsSame(h,a)){if(M(u,!1,!0))break}else if(e.pointsSame(h,o)&&M(u,!1,!1))break}if(c===s)return n.push([a,o]),void(r&&r.chainNew(a,o));if(c===l){r&&r.chainMatch(s.index);var p=s.index,d=s.matches_pt1?o:a,g=s.matches_head,v=n[p],m=g?v[0]:v[v.length-1],y=g?v[1]:v[v.length-2],x=g?v[v.length-1]:v[0],b=g?v[v.length-2]:v[1];return e.pointsCollinear(y,m,d)&&(g?(r&&r.chainRemoveHead(s.index,d),v.shift()):(r&&r.chainRemoveTail(s.index,d),v.pop()),m=y),e.pointsSame(x,d)?(n.splice(p,1),e.pointsCollinear(b,x,m)&&(g?(r&&r.chainRemoveTail(s.index,m),v.pop()):(r&&r.chainRemoveHead(s.index,m),v.shift())),r&&r.chainClose(s.index),void i.push(v)):void(g?(r&&r.chainAddHead(s.index,d),v.unshift(d)):(r&&r.chainAddTail(s.index,d),v.push(d)))}var _=s.index,w=l.index;r&&r.chainConnect(_,w);var k=n[_].length<n[w].length;s.matches_head?l.matches_head?k?(A(_),T(_,w)):(A(w),T(w,_)):T(w,_):l.matches_head?T(_,w):k?(A(_),T(w,_)):(A(w),T(_,w))}function M(t,e,r){return c.index=t,c.matches_head=e,c.matches_pt1=r,c===s?(c=l,!1):(c=null,!0)}function A(t){r&&r.chainReverse(t),n[t].reverse()}function T(t,i){var a=n[t],o=n[i],s=a[a.length-1],l=a[a.length-2],c=o[0],u=o[1];e.pointsCollinear(l,s,c)&&(r&&r.chainRemoveTail(t,s),a.pop(),s=l),e.pointsCollinear(s,c,u)&&(r&&r.chainRemoveHead(i,c),o.shift()),r&&r.chainJoin(t,i),n[t]=a.concat(o),n.splice(i,1)}}),i}},{}],463:[function(t,e,r){function n(t,e,r){var n=[];return t.forEach(function(t){var i=(t.myFill.above?8:0)+(t.myFill.below?4:0)+(t.otherFill&&t.otherFill.above?2:0)+(t.otherFill&&t.otherFill.below?1:0);0!==e[i]&&n.push({id:r?r.segmentId():-1,start:t.start,end:t.end,myFill:{above:1===e[i],below:2===e[i]},otherFill:null})}),r&&r.selected(n),n}var i={union:function(t,e){return n(t,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],e)},intersect:function(t,e){return n(t,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],e)},difference:function(t,e){return n(t,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],e)},differenceRev:function(t,e){return n(t,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],e)},xor:function(t,e){return n(t,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],e)}};e.exports=i},{}],464:[function(t,e,r){\"use strict\";var n=new Float64Array(4),i=new Float64Array(4),a=new Float64Array(4);e.exports=function(t,e,r,o,s){n.length<o.length&&(n=new Float64Array(o.length),i=new Float64Array(o.length),a=new Float64Array(o.length));for(var l=0;l<o.length;++l)n[l]=t[l]-o[l],i[l]=e[l]-t[l],a[l]=r[l]-t[l];var c=0,u=0,f=0,h=0,p=0,d=0;for(l=0;l<o.length;++l){var g=i[l],v=a[l],m=n[l];c+=g*g,u+=g*v,f+=v*v,h+=m*g,p+=m*v,d+=m*m}var y,x,b,_,w,k=Math.abs(c*f-u*u),M=u*p-f*h,A=u*h-c*p;if(M+A<=k)if(M<0)A<0&&h<0?(A=0,-h>=c?(M=1,y=c+2*h+d):y=h*(M=-h/c)+d):(M=0,p>=0?(A=0,y=d):-p>=f?(A=1,y=f+2*p+d):y=p*(A=-p/f)+d);else if(A<0)A=0,h>=0?(M=0,y=d):-h>=c?(M=1,y=c+2*h+d):y=h*(M=-h/c)+d;else{var T=1/k;y=(M*=T)*(c*M+u*(A*=T)+2*h)+A*(u*M+f*A+2*p)+d}else M<0?(b=f+p)>(x=u+h)?(_=b-x)>=(w=c-2*u+f)?(M=1,A=0,y=c+2*h+d):y=(M=_/w)*(c*M+u*(A=1-M)+2*h)+A*(u*M+f*A+2*p)+d:(M=0,b<=0?(A=1,y=f+2*p+d):p>=0?(A=0,y=d):y=p*(A=-p/f)+d):A<0?(b=c+h)>(x=u+p)?(_=b-x)>=(w=c-2*u+f)?(A=1,M=0,y=f+2*p+d):y=(M=1-(A=_/w))*(c*M+u*A+2*h)+A*(u*M+f*A+2*p)+d:(A=0,b<=0?(M=1,y=c+2*h+d):h>=0?(M=0,y=d):y=h*(M=-h/c)+d):(_=f+p-u-h)<=0?(M=0,A=1,y=f+2*p+d):_>=(w=c-2*u+f)?(M=1,A=0,y=c+2*h+d):y=(M=_/w)*(c*M+u*(A=1-M)+2*h)+A*(u*M+f*A+2*p)+d;var S=1-M-A;for(l=0;l<o.length;++l)s[l]=S*t[l]+M*e[l]+A*r[l];return y<0?0:y}},{}],465:[function(t,e,r){var n,i,a=e.exports={};function o(){throw new Error(\"setTimeout has not been defined\")}function s(){throw new Error(\"clearTimeout has not been defined\")}function l(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,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(){try{n=\"function\"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{i=\"function\"==typeof clearTimeout?clearTimeout:s}catch(t){i=s}}();var c,u=[],f=!1,h=-1;function p(){f&&c&&(f=!1,c.length?u=c.concat(u):h=-1,u.length&&d())}function d(){if(!f){var t=l(p);f=!0;for(var e=u.length;e;){for(c=u,u=[];++h<e;)c&&c[h].run();h=-1,e=u.length}c=null,f=!1,function(t){if(i===clearTimeout)return clearTimeout(t);if((i===s||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(t);try{i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}(t)}}function g(t,e){this.fun=t,this.array=e}function v(){}a.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];u.push(new g(t,e)),1!==u.length||f||l(d)},g.prototype.run=function(){this.fun.apply(null,this.array)},a.title=\"browser\",a.browser=!0,a.env={},a.argv=[],a.version=\"\",a.versions={},a.on=v,a.addListener=v,a.once=v,a.off=v,a.removeListener=v,a.removeAllListeners=v,a.emit=v,a.prependListener=v,a.prependOnceListener=v,a.listeners=function(t){return[]},a.binding=function(t){throw new Error(\"process.binding is not supported\")},a.cwd=function(){return\"/\"},a.chdir=function(t){throw new Error(\"process.chdir is not supported\")},a.umask=function(){return 0}},{}],466:[function(t,e,r){e.exports=t(\"gl-quat/slerp\")},{\"gl-quat/slerp\":280}],467:[function(t,e,r){(function(r){for(var n=t(\"performance-now\"),i=\"undefined\"==typeof window?r:window,a=[\"moz\",\"webkit\"],o=\"AnimationFrame\",s=i[\"request\"+o],l=i[\"cancel\"+o]||i[\"cancelRequest\"+o],c=0;!s&&c<a.length;c++)s=i[a[c]+\"Request\"+o],l=i[a[c]+\"Cancel\"+o]||i[a[c]+\"CancelRequest\"+o];if(!s||!l){var u=0,f=0,h=[];s=function(t){if(0===h.length){var e=n(),r=Math.max(0,1e3/60-(e-u));u=r+e,setTimeout(function(){var t=h.slice(0);h.length=0;for(var e=0;e<t.length;e++)if(!t[e].cancelled)try{t[e].callback(u)}catch(t){setTimeout(function(){throw t},0)}},Math.round(r))}return h.push({handle:++f,callback:t,cancelled:!1}),f},l=function(t){for(var e=0;e<h.length;e++)h[e].handle===t&&(h[e].cancelled=!0)}}e.exports=function(t){return s.call(i,t)},e.exports.cancel=function(){l.apply(i,arguments)},e.exports.polyfill=function(t){t||(t=i),t.requestAnimationFrame=s,t.cancelAnimationFrame=l}}).call(this,\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{\"performance-now\":445}],468:[function(t,e,r){\"use strict\";var n=t(\"big-rat/add\");e.exports=function(t,e){for(var r=t.length,i=new Array(r),a=0;a<r;++a)i[a]=n(t[a],e[a]);return i}},{\"big-rat/add\":63}],469:[function(t,e,r){\"use strict\";e.exports=function(t){for(var e=new Array(t.length),r=0;r<t.length;++r)e[r]=n(t[r]);return e};var n=t(\"big-rat\")},{\"big-rat\":66}],470:[function(t,e,r){\"use strict\";var n=t(\"big-rat\"),i=t(\"big-rat/mul\");e.exports=function(t,e){for(var r=n(e),a=t.length,o=new Array(a),s=0;s<a;++s)o[s]=i(t[s],r);return o}},{\"big-rat\":66,\"big-rat/mul\":75}],471:[function(t,e,r){\"use strict\";var n=t(\"big-rat/sub\");e.exports=function(t,e){for(var r=t.length,i=new Array(r),a=0;a<r;++a)i[a]=n(t[a],e[a]);return i}},{\"big-rat/sub\":77}],472:[function(t,e,r){\"use strict\";var n=t(\"compare-cell\"),i=t(\"compare-oriented-cell\"),a=t(\"cell-orientation\");e.exports=function(t){t.sort(i);for(var e=t.length,r=0,o=0;o<e;++o){var s=t[o],l=a(s);if(0!==l){if(r>0){var c=t[r-1];if(0===n(s,c)&&a(c)!==l){r-=1;continue}}t[r++]=s}}return t.length=r,t}},{\"cell-orientation\":100,\"compare-cell\":116,\"compare-oriented-cell\":117}],473:[function(t,e,r){\"use strict\";var n=t(\"array-bounds\"),i=t(\"color-normalize\"),a=t(\"update-diff\"),o=t(\"pick-by-alias\"),s=t(\"object-assign\"),l=t(\"flatten-vertex-data\"),c=t(\"to-float32\"),u=c.float32,f=c.fract32;e.exports=function(t,e){\"function\"==typeof t?(e||(e={}),e.regl=t):e=t;e.length&&(e.positions=e);if(!(t=e.regl).hasExtension(\"ANGLE_instanced_arrays\"))throw Error(\"regl-error2d: `ANGLE_instanced_arrays` extension should be enabled\");var r,c,p,d,g,v,m=t._gl,y={color:\"black\",capSize:5,lineWidth:1,opacity:1,viewport:null,range:null,offset:0,count:0,bounds:null,positions:[],errors:[]},x=[];return d=t.buffer({usage:\"dynamic\",type:\"uint8\",data:new Uint8Array(0)}),c=t.buffer({usage:\"dynamic\",type:\"float\",data:new Uint8Array(0)}),p=t.buffer({usage:\"dynamic\",type:\"float\",data:new Uint8Array(0)}),g=t.buffer({usage:\"dynamic\",type:\"float\",data:new Uint8Array(0)}),v=t.buffer({usage:\"static\",type:\"float\",data:h}),k(e),r=t({vert:\"\\n\\t\\tprecision highp float;\\n\\n\\t\\tattribute vec2 position, positionFract;\\n\\t\\tattribute vec4 error;\\n\\t\\tattribute vec4 color;\\n\\n\\t\\tattribute vec2 direction, lineOffset, capOffset;\\n\\n\\t\\tuniform vec4 viewport;\\n\\t\\tuniform float lineWidth, capSize;\\n\\t\\tuniform vec2 scale, scaleFract, translate, translateFract;\\n\\n\\t\\tvarying vec4 fragColor;\\n\\n\\t\\tvoid main() {\\n\\t\\t\\tfragColor = color / 255.;\\n\\n\\t\\t\\tvec2 pixelOffset = lineWidth * lineOffset + (capSize + lineWidth) * capOffset;\\n\\n\\t\\t\\tvec2 dxy = -step(.5, direction.xy) * error.xz + step(direction.xy, vec2(-.5)) * error.yw;\\n\\n\\t\\t\\tvec2 position = position + dxy;\\n\\n\\t\\t\\tvec2 pos = (position + translate) * scale\\n\\t\\t\\t\\t+ (positionFract + translateFract) * scale\\n\\t\\t\\t\\t+ (position + translate) * scaleFract\\n\\t\\t\\t\\t+ (positionFract + translateFract) * scaleFract;\\n\\n\\t\\t\\tpos += pixelOffset / viewport.zw;\\n\\n\\t\\t\\tgl_Position = vec4(pos * 2. - 1., 0, 1);\\n\\t\\t}\\n\\t\\t\",frag:\"\\n\\t\\tprecision mediump float;\\n\\n\\t\\tvarying vec4 fragColor;\\n\\n\\t\\tuniform float opacity;\\n\\n\\t\\tvoid main() {\\n\\t\\t\\tgl_FragColor = fragColor;\\n\\t\\t\\tgl_FragColor.a *= opacity;\\n\\t\\t}\\n\\t\\t\",uniforms:{range:t.prop(\"range\"),lineWidth:t.prop(\"lineWidth\"),capSize:t.prop(\"capSize\"),opacity:t.prop(\"opacity\"),scale:t.prop(\"scale\"),translate:t.prop(\"translate\"),scaleFract:t.prop(\"scaleFract\"),translateFract:t.prop(\"translateFract\"),viewport:function(t,e){return[e.viewport.x,e.viewport.y,t.viewportWidth,t.viewportHeight]}},attributes:{color:{buffer:d,offset:function(t,e){return 4*e.offset},divisor:1},position:{buffer:c,offset:function(t,e){return 8*e.offset},divisor:1},positionFract:{buffer:p,offset:function(t,e){return 8*e.offset},divisor:1},error:{buffer:g,offset:function(t,e){return 16*e.offset},divisor:1},direction:{buffer:v,stride:24,offset:0},lineOffset:{buffer:v,stride:24,offset:8},capOffset:{buffer:v,stride:24,offset:16}},primitive:\"triangles\",blend:{enable:!0,color:[0,0,0,0],equation:{rgb:\"add\",alpha:\"add\"},func:{srcRGB:\"src alpha\",dstRGB:\"one minus src alpha\",srcAlpha:\"one minus dst alpha\",dstAlpha:\"one\"}},depth:{enable:!1},scissor:{enable:!0,box:t.prop(\"viewport\")},viewport:t.prop(\"viewport\"),stencil:!1,instances:t.prop(\"count\"),count:h.length}),s(b,{update:k,draw:_,destroy:M,regl:t,gl:m,canvas:m.canvas,groups:x}),b;function b(t){t?k(t):null===t&&M(),_()}function _(e){if(\"number\"==typeof e)return w(e);e&&!Array.isArray(e)&&(e=[e]),t._refresh(),x.forEach(function(t,r){t&&(e&&(e[r]?t.draw=!0:t.draw=!1),t.draw?w(r):t.draw=!0)})}function w(t){\"number\"==typeof t&&(t=x[t]),null!=t&&t&&t.count&&t.color&&t.opacity&&t.positions&&t.positions.length>1&&(t.scaleRatio=[t.scale[0]*t.viewport.width,t.scale[1]*t.viewport.height],r(t),t.after&&t.after(t))}function k(t){if(t){null!=t.length?\"number\"==typeof t[0]&&(t=[{positions:t}]):Array.isArray(t)||(t=[t]);var e=0,r=0;if(b.groups=x=t.map(function(t,c){var u=x[c];return t?(\"function\"==typeof t?t={after:t}:\"number\"==typeof t[0]&&(t={positions:t}),t=o(t,{color:\"color colors fill\",capSize:\"capSize cap capsize cap-size\",lineWidth:\"lineWidth line-width width line thickness\",opacity:\"opacity alpha\",range:\"range dataBox\",viewport:\"viewport viewBox\",errors:\"errors error\",positions:\"positions position data points\"}),u||(x[c]=u={id:c,scale:null,translate:null,scaleFract:null,translateFract:null,draw:!0},t=s({},y,t)),a(u,t,[{lineWidth:function(t){return.5*+t},capSize:function(t){return.5*+t},opacity:parseFloat,errors:function(t){return t=l(t),r+=t.length,t},positions:function(t,r){return t=l(t,\"float64\"),r.count=Math.floor(t.length/2),r.bounds=n(t,2),r.offset=e,e+=r.count,t}},{color:function(t,e){var r=e.count;if(t||(t=\"transparent\"),!Array.isArray(t)||\"number\"==typeof t[0]){var n=t;t=Array(r);for(var a=0;a<r;a++)t[a]=n}if(t.length<r)throw Error(\"Not enough colors\");for(var o=new Uint8Array(4*r),s=0;s<r;s++){var l=i(t[s],\"uint8\");o.set(l,4*s)}return o},range:function(t,e,r){var n=e.bounds;return t||(t=n),e.scale=[1/(t[2]-t[0]),1/(t[3]-t[1])],e.translate=[-t[0],-t[1]],e.scaleFract=f(e.scale),e.translateFract=f(e.translate),t},viewport:function(t){var e;return Array.isArray(t)?e={x:t[0],y:t[1],width:t[2]-t[0],height:t[3]-t[1]}:t?(e={x:t.x||t.left||0,y:t.y||t.top||0},t.right?e.width=t.right-e.x:e.width=t.w||t.width||0,t.bottom?e.height=t.bottom-e.y:e.height=t.h||t.height||0):e={x:0,y:0,width:m.drawingBufferWidth,height:m.drawingBufferHeight},e}}]),u):u}),e||r){var h=x.reduce(function(t,e,r){return t+(e?e.count:0)},0),v=new Float64Array(2*h),_=new Uint8Array(4*h),w=new Float32Array(4*h);x.forEach(function(t,e){if(t){var r=t.positions,n=t.count,i=t.offset,a=t.color,o=t.errors;n&&(_.set(a,4*i),w.set(o,4*i),v.set(r,2*i))}}),c(u(v)),p(f(v)),d(_),g(w)}}}function M(){c.destroy(),p.destroy(),d.destroy(),g.destroy(),v.destroy()}};var h=[[1,0,0,1,0,0],[1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,1,0,0],[1,0,0,1,0,0],[1,0,-1,0,0,1],[1,0,-1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,1],[1,0,-1,0,0,1],[-1,0,-1,0,0,1],[-1,0,-1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,1],[-1,0,-1,0,0,1],[0,1,1,0,0,0],[0,1,-1,0,0,0],[0,-1,-1,0,0,0],[0,-1,-1,0,0,0],[0,1,1,0,0,0],[0,-1,1,0,0,0],[0,1,0,-1,1,0],[0,1,0,-1,-1,0],[0,1,0,1,-1,0],[0,1,0,1,1,0],[0,1,0,-1,1,0],[0,1,0,1,-1,0],[0,-1,0,-1,1,0],[0,-1,0,-1,-1,0],[0,-1,0,1,-1,0],[0,-1,0,1,1,0],[0,-1,0,-1,1,0],[0,-1,0,1,-1,0]]},{\"array-bounds\":53,\"color-normalize\":108,\"flatten-vertex-data\":216,\"object-assign\":437,\"pick-by-alias\":448,\"to-float32\":515,\"update-diff\":526}],474:[function(t,e,r){\"use strict\";var n=t(\"color-normalize\"),i=t(\"array-bounds\"),a=t(\"object-assign\"),o=t(\"glslify\"),s=t(\"pick-by-alias\"),l=t(\"flatten-vertex-data\"),c=t(\"earcut\"),u=t(\"array-normalize\"),f=t(\"to-float32\"),h=f.float32,p=f.fract32,d=t(\"es6-weak-map\"),g=t(\"parse-rect\");function v(t,e){if(!(this instanceof v))return new v(t,e);if(\"function\"==typeof t?(e||(e={}),e.regl=t):e=t,e.length&&(e.positions=e),!(t=e.regl).hasExtension(\"ANGLE_instanced_arrays\"))throw Error(\"regl-error2d: `ANGLE_instanced_arrays` extension should be enabled\");this.gl=t._gl,this.regl=t,this.passes=[],this.shaders=v.shaders.has(t)?v.shaders.get(t):v.shaders.set(t,v.createShaders(t)).get(t),this.update(e)}e.exports=v,v.dashMult=2,v.maxPatternLength=256,v.precisionThreshold=3e6,v.maxPoints=1e4,v.maxLines=2048,v.shaders=new d,v.createShaders=function(t){var e,r=t.buffer({usage:\"static\",type:\"float\",data:[0,1,0,0,1,1,1,0]}),n={primitive:\"triangle strip\",instances:t.prop(\"count\"),count:4,offset:0,uniforms:{miterMode:function(t,e){return\"round\"===e.join?2:1},miterLimit:t.prop(\"miterLimit\"),scale:t.prop(\"scale\"),scaleFract:t.prop(\"scaleFract\"),translateFract:t.prop(\"translateFract\"),translate:t.prop(\"translate\"),thickness:t.prop(\"thickness\"),dashPattern:t.prop(\"dashTexture\"),opacity:t.prop(\"opacity\"),pixelRatio:t.context(\"pixelRatio\"),id:t.prop(\"id\"),dashSize:t.prop(\"dashLength\"),viewport:function(t,e){return[e.viewport.x,e.viewport.y,t.viewportWidth,t.viewportHeight]},depth:t.prop(\"depth\")},blend:{enable:!0,color:[0,0,0,0],equation:{rgb:\"add\",alpha:\"add\"},func:{srcRGB:\"src alpha\",dstRGB:\"one minus src alpha\",srcAlpha:\"one minus dst alpha\",dstAlpha:\"one\"}},depth:{enable:function(t,e){return!e.overlay}},stencil:{enable:!1},scissor:{enable:!0,box:t.prop(\"viewport\")},viewport:t.prop(\"viewport\")},i=t(a({vert:o([\"precision highp float;\\n#define GLSLIFY 1\\n\\nattribute vec2 aCoord, bCoord, aCoordFract, bCoordFract;\\nattribute vec4 color;\\nattribute float lineEnd, lineTop;\\n\\nuniform vec2 scale, scaleFract, translate, translateFract;\\nuniform float thickness, pixelRatio, id, depth;\\nuniform vec4 viewport;\\n\\nvarying vec4 fragColor;\\nvarying vec2 tangent;\\n\\nvec2 project(vec2 position, vec2 positionFract, vec2 scale, vec2 scaleFract, vec2 translate, vec2 translateFract) {\\n\\t// the order is important\\n\\treturn position * scale + translate\\n + positionFract * scale + translateFract\\n + position * scaleFract\\n + positionFract * scaleFract;\\n}\\n\\nvoid main() {\\n\\tfloat lineStart = 1. - lineEnd;\\n\\tfloat lineOffset = lineTop * 2. - 1.;\\n\\n\\tvec2 diff = (bCoord + bCoordFract - aCoord - aCoordFract);\\n\\ttangent = normalize(diff * scale * viewport.zw);\\n\\tvec2 normal = vec2(-tangent.y, tangent.x);\\n\\n\\tvec2 position = project(aCoord, aCoordFract, scale, scaleFract, translate, translateFract) * lineStart\\n\\t\\t+ project(bCoord, bCoordFract, scale, scaleFract, translate, translateFract) * lineEnd\\n\\n\\t\\t+ thickness * normal * .5 * lineOffset / viewport.zw;\\n\\n\\tgl_Position = vec4(position * 2.0 - 1.0, depth, 1);\\n\\n\\tfragColor = color / 255.;\\n}\\n\"]),frag:o([\"precision highp float;\\n#define GLSLIFY 1\\n\\nuniform sampler2D dashPattern;\\n\\nuniform float dashSize, pixelRatio, thickness, opacity, id;\\n\\nvarying vec4 fragColor;\\nvarying vec2 tangent;\\n\\nvoid main() {\\n\\tfloat alpha = 1.;\\n\\n\\tfloat t = fract(dot(tangent, gl_FragCoord.xy) / dashSize) * .5 + .25;\\n\\tfloat dash = texture2D(dashPattern, vec2(t, .5)).r;\\n\\n\\tgl_FragColor = fragColor;\\n\\tgl_FragColor.a *= alpha * opacity * dash;\\n}\\n\"]),attributes:{lineEnd:{buffer:r,divisor:0,stride:8,offset:0},lineTop:{buffer:r,divisor:0,stride:8,offset:4},aCoord:{buffer:t.prop(\"positionBuffer\"),stride:8,offset:8,divisor:1},bCoord:{buffer:t.prop(\"positionBuffer\"),stride:8,offset:16,divisor:1},aCoordFract:{buffer:t.prop(\"positionFractBuffer\"),stride:8,offset:8,divisor:1},bCoordFract:{buffer:t.prop(\"positionFractBuffer\"),stride:8,offset:16,divisor:1},color:{buffer:t.prop(\"colorBuffer\"),stride:4,offset:0,divisor:1}}},n));try{e=t(a({cull:{enable:!0,face:\"back\"},vert:o([\"precision highp float;\\n#define GLSLIFY 1\\n\\nattribute vec2 aCoord, bCoord, nextCoord, prevCoord;\\nattribute vec4 aColor, bColor;\\nattribute float lineEnd, lineTop;\\n\\nuniform vec2 scale, translate;\\nuniform float thickness, pixelRatio, id, depth;\\nuniform vec4 viewport;\\nuniform float miterLimit, miterMode;\\n\\nvarying vec4 fragColor;\\nvarying vec4 startCutoff, endCutoff;\\nvarying vec2 tangent;\\nvarying vec2 startCoord, endCoord;\\nvarying float enableStartMiter, enableEndMiter;\\n\\nconst float REVERSE_THRESHOLD = -.875;\\nconst float MIN_DIFF = 1e-6;\\n\\n// TODO: possible optimizations: avoid overcalculating all for vertices and calc just one instead\\n// TODO: precalculate dot products, normalize things beforehead etc.\\n// TODO: refactor to rectangular algorithm\\n\\nfloat distToLine(vec2 p, vec2 a, vec2 b) {\\n\\tvec2 diff = b - a;\\n\\tvec2 perp = normalize(vec2(-diff.y, diff.x));\\n\\treturn dot(p - a, perp);\\n}\\n\\nbool isNaN( float val ){\\n return ( val < 0.0 || 0.0 < val || val == 0.0 ) ? false : true;\\n}\\n\\nvoid main() {\\n\\tvec2 aCoord = aCoord, bCoord = bCoord, prevCoord = prevCoord, nextCoord = nextCoord;\\n\\n vec2 adjustedScale;\\n adjustedScale.x = (abs(scale.x) < MIN_DIFF) ? MIN_DIFF : scale.x;\\n adjustedScale.y = (abs(scale.y) < MIN_DIFF) ? MIN_DIFF : scale.y;\\n\\n vec2 scaleRatio = adjustedScale * viewport.zw;\\n\\tvec2 normalWidth = thickness / scaleRatio;\\n\\n\\tfloat lineStart = 1. - lineEnd;\\n\\tfloat lineBot = 1. - lineTop;\\n\\n\\tfragColor = (lineStart * aColor + lineEnd * bColor) / 255.;\\n\\n\\tif (isNaN(aCoord.x) || isNaN(aCoord.y) || isNaN(bCoord.x) || isNaN(bCoord.y)) return;\\n\\n\\tif (aCoord == prevCoord) prevCoord = aCoord + normalize(bCoord - aCoord);\\n\\tif (bCoord == nextCoord) nextCoord = bCoord - normalize(bCoord - aCoord);\\n\\n\\tvec2 prevDiff = aCoord - prevCoord;\\n\\tvec2 currDiff = bCoord - aCoord;\\n\\tvec2 nextDiff = nextCoord - bCoord;\\n\\n\\tvec2 prevTangent = normalize(prevDiff * scaleRatio);\\n\\tvec2 currTangent = normalize(currDiff * scaleRatio);\\n\\tvec2 nextTangent = normalize(nextDiff * scaleRatio);\\n\\n\\tvec2 prevNormal = vec2(-prevTangent.y, prevTangent.x);\\n\\tvec2 currNormal = vec2(-currTangent.y, currTangent.x);\\n\\tvec2 nextNormal = vec2(-nextTangent.y, nextTangent.x);\\n\\n\\tvec2 startJoinDirection = normalize(prevTangent - currTangent);\\n\\tvec2 endJoinDirection = normalize(currTangent - nextTangent);\\n\\n\\t// collapsed/unidirectional segment cases\\n\\t// FIXME: there should be more elegant solution\\n\\tvec2 prevTanDiff = abs(prevTangent - currTangent);\\n\\tvec2 nextTanDiff = abs(nextTangent - currTangent);\\n\\tif (max(prevTanDiff.x, prevTanDiff.y) < MIN_DIFF) {\\n\\t\\tstartJoinDirection = currNormal;\\n\\t}\\n\\tif (max(nextTanDiff.x, nextTanDiff.y) < MIN_DIFF) {\\n\\t\\tendJoinDirection = currNormal;\\n\\t}\\n\\tif (aCoord == bCoord) {\\n\\t\\tendJoinDirection = startJoinDirection;\\n\\t\\tcurrNormal = prevNormal;\\n\\t\\tcurrTangent = prevTangent;\\n\\t}\\n\\n\\ttangent = currTangent;\\n\\n\\t//calculate join shifts relative to normals\\n\\tfloat startJoinShift = dot(currNormal, startJoinDirection);\\n\\tfloat endJoinShift = dot(currNormal, endJoinDirection);\\n\\n\\tfloat startMiterRatio = abs(1. / startJoinShift);\\n\\tfloat endMiterRatio = abs(1. / endJoinShift);\\n\\n\\tvec2 startJoin = startJoinDirection * startMiterRatio;\\n\\tvec2 endJoin = endJoinDirection * endMiterRatio;\\n\\n\\tvec2 startTopJoin, startBotJoin, endTopJoin, endBotJoin;\\n\\tstartTopJoin = sign(startJoinShift) * startJoin * .5;\\n\\tstartBotJoin = -startTopJoin;\\n\\n\\tendTopJoin = sign(endJoinShift) * endJoin * .5;\\n\\tendBotJoin = -endTopJoin;\\n\\n\\tvec2 aTopCoord = aCoord + normalWidth * startTopJoin;\\n\\tvec2 bTopCoord = bCoord + normalWidth * endTopJoin;\\n\\tvec2 aBotCoord = aCoord + normalWidth * startBotJoin;\\n\\tvec2 bBotCoord = bCoord + normalWidth * endBotJoin;\\n\\n\\t//miter anti-clipping\\n\\tfloat baClipping = distToLine(bCoord, aCoord, aBotCoord) / dot(normalize(normalWidth * endBotJoin), normalize(normalWidth.yx * vec2(-startBotJoin.y, startBotJoin.x)));\\n\\tfloat abClipping = distToLine(aCoord, bCoord, bTopCoord) / dot(normalize(normalWidth * startBotJoin), normalize(normalWidth.yx * vec2(-endBotJoin.y, endBotJoin.x)));\\n\\n\\t//prevent close to reverse direction switch\\n\\tbool prevReverse = dot(currTangent, prevTangent) <= REVERSE_THRESHOLD && abs(dot(currTangent, prevNormal)) * min(length(prevDiff), length(currDiff)) < length(normalWidth * currNormal);\\n\\tbool nextReverse = dot(currTangent, nextTangent) <= REVERSE_THRESHOLD && abs(dot(currTangent, nextNormal)) * min(length(nextDiff), length(currDiff)) < length(normalWidth * currNormal);\\n\\n\\tif (prevReverse) {\\n\\t\\t//make join rectangular\\n\\t\\tvec2 miterShift = normalWidth * startJoinDirection * miterLimit * .5;\\n\\t\\tfloat normalAdjust = 1. - min(miterLimit / startMiterRatio, 1.);\\n\\t\\taBotCoord = aCoord + miterShift - normalAdjust * normalWidth * currNormal * .5;\\n\\t\\taTopCoord = aCoord + miterShift + normalAdjust * normalWidth * currNormal * .5;\\n\\t}\\n\\telse if (!nextReverse && baClipping > 0. && baClipping < length(normalWidth * endBotJoin)) {\\n\\t\\t//handle miter clipping\\n\\t\\tbTopCoord -= normalWidth * endTopJoin;\\n\\t\\tbTopCoord += normalize(endTopJoin * normalWidth) * baClipping;\\n\\t}\\n\\n\\tif (nextReverse) {\\n\\t\\t//make join rectangular\\n\\t\\tvec2 miterShift = normalWidth * endJoinDirection * miterLimit * .5;\\n\\t\\tfloat normalAdjust = 1. - min(miterLimit / endMiterRatio, 1.);\\n\\t\\tbBotCoord = bCoord + miterShift - normalAdjust * normalWidth * currNormal * .5;\\n\\t\\tbTopCoord = bCoord + miterShift + normalAdjust * normalWidth * currNormal * .5;\\n\\t}\\n\\telse if (!prevReverse && abClipping > 0. && abClipping < length(normalWidth * startBotJoin)) {\\n\\t\\t//handle miter clipping\\n\\t\\taBotCoord -= normalWidth * startBotJoin;\\n\\t\\taBotCoord += normalize(startBotJoin * normalWidth) * abClipping;\\n\\t}\\n\\n\\tvec2 aTopPosition = (aTopCoord) * adjustedScale + translate;\\n\\tvec2 aBotPosition = (aBotCoord) * adjustedScale + translate;\\n\\n\\tvec2 bTopPosition = (bTopCoord) * adjustedScale + translate;\\n\\tvec2 bBotPosition = (bBotCoord) * adjustedScale + translate;\\n\\n\\t//position is normalized 0..1 coord on the screen\\n\\tvec2 position = (aTopPosition * lineTop + aBotPosition * lineBot) * lineStart + (bTopPosition * lineTop + bBotPosition * lineBot) * lineEnd;\\n\\n\\tstartCoord = aCoord * scaleRatio + translate * viewport.zw + viewport.xy;\\n\\tendCoord = bCoord * scaleRatio + translate * viewport.zw + viewport.xy;\\n\\n\\tgl_Position = vec4(position * 2.0 - 1.0, depth, 1);\\n\\n\\tenableStartMiter = step(dot(currTangent, prevTangent), .5);\\n\\tenableEndMiter = step(dot(currTangent, nextTangent), .5);\\n\\n\\t//bevel miter cutoffs\\n\\tif (miterMode == 1.) {\\n\\t\\tif (enableStartMiter == 1.) {\\n\\t\\t\\tvec2 startMiterWidth = vec2(startJoinDirection) * thickness * miterLimit * .5;\\n\\t\\t\\tstartCutoff = vec4(aCoord, aCoord);\\n\\t\\t\\tstartCutoff.zw += vec2(-startJoinDirection.y, startJoinDirection.x) / scaleRatio;\\n\\t\\t\\tstartCutoff = startCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw;\\n\\t\\t\\tstartCutoff += viewport.xyxy;\\n\\t\\t\\tstartCutoff += startMiterWidth.xyxy;\\n\\t\\t}\\n\\n\\t\\tif (enableEndMiter == 1.) {\\n\\t\\t\\tvec2 endMiterWidth = vec2(endJoinDirection) * thickness * miterLimit * .5;\\n\\t\\t\\tendCutoff = vec4(bCoord, bCoord);\\n\\t\\t\\tendCutoff.zw += vec2(-endJoinDirection.y, endJoinDirection.x) / scaleRatio;\\n\\t\\t\\tendCutoff = endCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw;\\n\\t\\t\\tendCutoff += viewport.xyxy;\\n\\t\\t\\tendCutoff += endMiterWidth.xyxy;\\n\\t\\t}\\n\\t}\\n\\n\\t//round miter cutoffs\\n\\telse if (miterMode == 2.) {\\n\\t\\tif (enableStartMiter == 1.) {\\n\\t\\t\\tvec2 startMiterWidth = vec2(startJoinDirection) * thickness * abs(dot(startJoinDirection, currNormal)) * .5;\\n\\t\\t\\tstartCutoff = vec4(aCoord, aCoord);\\n\\t\\t\\tstartCutoff.zw += vec2(-startJoinDirection.y, startJoinDirection.x) / scaleRatio;\\n\\t\\t\\tstartCutoff = startCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw;\\n\\t\\t\\tstartCutoff += viewport.xyxy;\\n\\t\\t\\tstartCutoff += startMiterWidth.xyxy;\\n\\t\\t}\\n\\n\\t\\tif (enableEndMiter == 1.) {\\n\\t\\t\\tvec2 endMiterWidth = vec2(endJoinDirection) * thickness * abs(dot(endJoinDirection, currNormal)) * .5;\\n\\t\\t\\tendCutoff = vec4(bCoord, bCoord);\\n\\t\\t\\tendCutoff.zw += vec2(-endJoinDirection.y, endJoinDirection.x) / scaleRatio;\\n\\t\\t\\tendCutoff = endCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw;\\n\\t\\t\\tendCutoff += viewport.xyxy;\\n\\t\\t\\tendCutoff += endMiterWidth.xyxy;\\n\\t\\t}\\n\\t}\\n}\\n\"]),frag:o([\"precision highp float;\\n#define GLSLIFY 1\\n\\nuniform sampler2D dashPattern;\\nuniform float dashSize, pixelRatio, thickness, opacity, id, miterMode;\\n\\nvarying vec4 fragColor;\\nvarying vec2 tangent;\\nvarying vec4 startCutoff, endCutoff;\\nvarying vec2 startCoord, endCoord;\\nvarying float enableStartMiter, enableEndMiter;\\n\\nfloat distToLine(vec2 p, vec2 a, vec2 b) {\\n\\tvec2 diff = b - a;\\n\\tvec2 perp = normalize(vec2(-diff.y, diff.x));\\n\\treturn dot(p - a, perp);\\n}\\n\\nvoid main() {\\n\\tfloat alpha = 1., distToStart, distToEnd;\\n\\tfloat cutoff = thickness * .5;\\n\\n\\t//bevel miter\\n\\tif (miterMode == 1.) {\\n\\t\\tif (enableStartMiter == 1.) {\\n\\t\\t\\tdistToStart = distToLine(gl_FragCoord.xy, startCutoff.xy, startCutoff.zw);\\n\\t\\t\\tif (distToStart < -1.) {\\n\\t\\t\\t\\tdiscard;\\n\\t\\t\\t\\treturn;\\n\\t\\t\\t}\\n\\t\\t\\talpha *= min(max(distToStart + 1., 0.), 1.);\\n\\t\\t}\\n\\n\\t\\tif (enableEndMiter == 1.) {\\n\\t\\t\\tdistToEnd = distToLine(gl_FragCoord.xy, endCutoff.xy, endCutoff.zw);\\n\\t\\t\\tif (distToEnd < -1.) {\\n\\t\\t\\t\\tdiscard;\\n\\t\\t\\t\\treturn;\\n\\t\\t\\t}\\n\\t\\t\\talpha *= min(max(distToEnd + 1., 0.), 1.);\\n\\t\\t}\\n\\t}\\n\\n\\t// round miter\\n\\telse if (miterMode == 2.) {\\n\\t\\tif (enableStartMiter == 1.) {\\n\\t\\t\\tdistToStart = distToLine(gl_FragCoord.xy, startCutoff.xy, startCutoff.zw);\\n\\t\\t\\tif (distToStart < 0.) {\\n\\t\\t\\t\\tfloat radius = length(gl_FragCoord.xy - startCoord);\\n\\n\\t\\t\\t\\tif(radius > cutoff + .5) {\\n\\t\\t\\t\\t\\tdiscard;\\n\\t\\t\\t\\t\\treturn;\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\talpha -= smoothstep(cutoff - .5, cutoff + .5, radius);\\n\\t\\t\\t}\\n\\t\\t}\\n\\n\\t\\tif (enableEndMiter == 1.) {\\n\\t\\t\\tdistToEnd = distToLine(gl_FragCoord.xy, endCutoff.xy, endCutoff.zw);\\n\\t\\t\\tif (distToEnd < 0.) {\\n\\t\\t\\t\\tfloat radius = length(gl_FragCoord.xy - endCoord);\\n\\n\\t\\t\\t\\tif(radius > cutoff + .5) {\\n\\t\\t\\t\\t\\tdiscard;\\n\\t\\t\\t\\t\\treturn;\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\talpha -= smoothstep(cutoff - .5, cutoff + .5, radius);\\n\\t\\t\\t}\\n\\t\\t}\\n\\t}\\n\\n\\tfloat t = fract(dot(tangent, gl_FragCoord.xy) / dashSize) * .5 + .25;\\n\\tfloat dash = texture2D(dashPattern, vec2(t, .5)).r;\\n\\n\\tgl_FragColor = fragColor;\\n\\tgl_FragColor.a *= alpha * opacity * dash;\\n}\\n\"]),attributes:{lineEnd:{buffer:r,divisor:0,stride:8,offset:0},lineTop:{buffer:r,divisor:0,stride:8,offset:4},aColor:{buffer:t.prop(\"colorBuffer\"),stride:4,offset:0,divisor:1},bColor:{buffer:t.prop(\"colorBuffer\"),stride:4,offset:4,divisor:1},prevCoord:{buffer:t.prop(\"positionBuffer\"),stride:8,offset:0,divisor:1},aCoord:{buffer:t.prop(\"positionBuffer\"),stride:8,offset:8,divisor:1},bCoord:{buffer:t.prop(\"positionBuffer\"),stride:8,offset:16,divisor:1},nextCoord:{buffer:t.prop(\"positionBuffer\"),stride:8,offset:24,divisor:1}}},n))}catch(t){e=i}return{fill:t({primitive:\"triangle\",elements:function(t,e){return e.triangles},offset:0,vert:o([\"precision highp float;\\n#define GLSLIFY 1\\n\\nattribute vec2 position, positionFract;\\n\\nuniform vec4 color;\\nuniform vec2 scale, scaleFract, translate, translateFract;\\nuniform float pixelRatio, id;\\nuniform vec4 viewport;\\nuniform float opacity;\\n\\nvarying vec4 fragColor;\\n\\nconst float MAX_LINES = 256.;\\n\\nvoid main() {\\n\\tfloat depth = (MAX_LINES - 4. - id) / (MAX_LINES);\\n\\n\\tvec2 position = position * scale + translate\\n + positionFract * scale + translateFract\\n + position * scaleFract\\n + positionFract * scaleFract;\\n\\n\\tgl_Position = vec4(position * 2.0 - 1.0, depth, 1);\\n\\n\\tfragColor = color / 255.;\\n\\tfragColor.a *= opacity;\\n}\\n\"]),frag:o([\"precision highp float;\\n#define GLSLIFY 1\\n\\nvarying vec4 fragColor;\\n\\nvoid main() {\\n\\tgl_FragColor = fragColor;\\n}\\n\"]),uniforms:{scale:t.prop(\"scale\"),color:t.prop(\"fill\"),scaleFract:t.prop(\"scaleFract\"),translateFract:t.prop(\"translateFract\"),translate:t.prop(\"translate\"),opacity:t.prop(\"opacity\"),pixelRatio:t.context(\"pixelRatio\"),id:t.prop(\"id\"),viewport:function(t,e){return[e.viewport.x,e.viewport.y,t.viewportWidth,t.viewportHeight]}},attributes:{position:{buffer:t.prop(\"positionBuffer\"),stride:8,offset:8},positionFract:{buffer:t.prop(\"positionFractBuffer\"),stride:8,offset:8}},blend:n.blend,depth:{enable:!1},scissor:n.scissor,stencil:n.stencil,viewport:n.viewport}),rect:i,miter:e}},v.defaults={dashes:null,join:\"miter\",miterLimit:1,thickness:10,cap:\"square\",color:\"black\",opacity:1,overlay:!1,viewport:null,range:null,close:!1,fill:null},v.prototype.render=function(){for(var t,e=[],r=arguments.length;r--;)e[r]=arguments[r];e.length&&(t=this).update.apply(t,e),this.draw()},v.prototype.draw=function(){for(var t=this,e=[],r=arguments.length;r--;)e[r]=arguments[r];return(e.length?e:this.passes).forEach(function(e,r){var n;if(e&&Array.isArray(e))return(n=t).draw.apply(n,e);\"number\"==typeof e&&(e=t.passes[e]),e&&e.count>1&&e.opacity&&(t.regl._refresh(),e.fill&&e.triangles&&e.triangles.length>2&&t.shaders.fill(e),e.thickness&&(e.scale[0]*e.viewport.width>v.precisionThreshold||e.scale[1]*e.viewport.height>v.precisionThreshold?t.shaders.rect(e):\"rect\"===e.join||!e.join&&(e.thickness<=2||e.count>=v.maxPoints)?t.shaders.rect(e):t.shaders.miter(e)))}),this},v.prototype.update=function(t){var e=this;if(t){null!=t.length?\"number\"==typeof t[0]&&(t=[{positions:t}]):Array.isArray(t)||(t=[t]);var r=this.regl,o=this.gl;if(t.forEach(function(t,f){var d=e.passes[f];if(void 0!==t)if(null!==t){if(\"number\"==typeof t[0]&&(t={positions:t}),t=s(t,{positions:\"positions points data coords\",thickness:\"thickness lineWidth lineWidths line-width linewidth width stroke-width strokewidth strokeWidth\",join:\"lineJoin linejoin join type mode\",miterLimit:\"miterlimit miterLimit\",dashes:\"dash dashes dasharray dash-array dashArray\",color:\"color colour stroke colors colours stroke-color strokeColor\",fill:\"fill fill-color fillColor\",opacity:\"alpha opacity\",overlay:\"overlay crease overlap intersect\",close:\"closed close closed-path closePath\",range:\"range dataBox\",viewport:\"viewport viewBox\",hole:\"holes hole hollow\"}),d||(e.passes[f]=d={id:f,scale:null,scaleFract:null,translate:null,translateFract:null,count:0,hole:[],depth:0,dashLength:1,dashTexture:r.texture({channels:1,data:new Uint8Array([255]),width:1,height:1,mag:\"linear\",min:\"linear\"}),colorBuffer:r.buffer({usage:\"dynamic\",type:\"uint8\",data:new Uint8Array}),positionBuffer:r.buffer({usage:\"dynamic\",type:\"float\",data:new Uint8Array}),positionFractBuffer:r.buffer({usage:\"dynamic\",type:\"float\",data:new Uint8Array})},t=a({},v.defaults,t)),null!=t.thickness&&(d.thickness=parseFloat(t.thickness)),null!=t.opacity&&(d.opacity=parseFloat(t.opacity)),null!=t.miterLimit&&(d.miterLimit=parseFloat(t.miterLimit)),null!=t.overlay&&(d.overlay=!!t.overlay,f<v.maxLines&&(d.depth=2*(v.maxLines-1-f%v.maxLines)/v.maxLines-1)),null!=t.join&&(d.join=t.join),null!=t.hole&&(d.hole=t.hole),null!=t.fill&&(d.fill=t.fill?n(t.fill,\"uint8\"):null),null!=t.viewport&&(d.viewport=g(t.viewport)),d.viewport||(d.viewport=g([o.drawingBufferWidth,o.drawingBufferHeight])),null!=t.close&&(d.close=t.close),null===t.positions&&(t.positions=[]),t.positions){var m,y;if(t.positions.x&&t.positions.y){var x=t.positions.x,b=t.positions.y;y=d.count=Math.max(x.length,b.length),m=new Float64Array(2*y);for(var _=0;_<y;_++)m[2*_]=x[_],m[2*_+1]=b[_]}else m=l(t.positions,\"float64\"),y=d.count=Math.floor(m.length/2);var w=d.bounds=i(m,2);if(d.fill){for(var k=[],M={},A=0,T=0,S=0,E=d.count;T<E;T++){var C=m[2*T],L=m[2*T+1];isNaN(C)||isNaN(L)||null==C||null==L?(C=m[2*A],L=m[2*A+1],M[T]=A):A=T,k[S++]=C,k[S++]=L}for(var z=c(k,d.hole||[]),O=0,I=z.length;O<I;O++)null!=M[z[O]]&&(z[O]=M[z[O]]);d.triangles=z}var P=new Float64Array(m);u(P,2,w);var D=new Float64Array(2*y+6);d.close?m[0]===m[2*y-2]&&m[1]===m[2*y-1]?(D[0]=P[2*y-4],D[1]=P[2*y-3]):(D[0]=P[2*y-2],D[1]=P[2*y-1]):(D[0]=P[0],D[1]=P[1]),D.set(P,2),d.close?m[0]===m[2*y-2]&&m[1]===m[2*y-1]?(D[2*y+2]=P[2],D[2*y+3]=P[3],d.count-=1):(D[2*y+2]=P[0],D[2*y+3]=P[1],D[2*y+4]=P[2],D[2*y+5]=P[3]):(D[2*y+2]=P[2*y-2],D[2*y+3]=P[2*y-1],D[2*y+4]=P[2*y-2],D[2*y+5]=P[2*y-1]),d.positionBuffer(h(D)),d.positionFractBuffer(p(D))}if(t.range?d.range=t.range:d.range||(d.range=d.bounds),(t.range||t.positions)&&d.count){var R=d.bounds,B=R[2]-R[0],F=R[3]-R[1],N=d.range[2]-d.range[0],j=d.range[3]-d.range[1];d.scale=[B/N,F/j],d.translate=[-d.range[0]/N+R[0]/N||0,-d.range[1]/j+R[1]/j||0],d.scaleFract=p(d.scale),d.translateFract=p(d.translate)}if(t.dashes){var V,U=0;if(!t.dashes||t.dashes.length<2)U=1,V=new Uint8Array([255,255,255,255,255,255,255,255]);else{U=0;for(var q=0;q<t.dashes.length;++q)U+=t.dashes[q];V=new Uint8Array(U*v.dashMult);for(var H=0,G=255,W=0;W<2;W++)for(var Y=0;Y<t.dashes.length;++Y){for(var X=0,Z=t.dashes[Y]*v.dashMult*.5;X<Z;++X)V[H++]=G;G^=255}}d.dashLength=U,d.dashTexture({channels:1,data:V,width:V.length,height:1,mag:\"linear\",min:\"linear\"},0,0)}if(t.color){var $=d.count,J=t.color;J||(J=\"transparent\");var K=new Uint8Array(4*$+4);if(Array.isArray(J)&&\"number\"!=typeof J[0]){for(var Q=0;Q<$;Q++){var tt=n(J[Q],\"uint8\");K.set(tt,4*Q)}K.set(n(J[0],\"uint8\"),4*$)}else for(var et=n(J,\"uint8\"),rt=0;rt<$+1;rt++)K.set(et,4*rt);d.colorBuffer({usage:\"dynamic\",type:\"uint8\",data:K})}}else e.passes[f]=null}),t.length<this.passes.length){for(var f=t.length;f<this.passes.length;f++){var d=e.passes[f];d&&(d.colorBuffer.destroy(),d.positionBuffer.destroy(),d.dashTexture.destroy())}this.passes.length=t.length}for(var m=[],y=0;y<this.passes.length;y++)null!==e.passes[y]&&m.push(e.passes[y]);return this.passes=m,this}},v.prototype.destroy=function(){return this.passes.forEach(function(t){t.colorBuffer.destroy(),t.positionBuffer.destroy(),t.dashTexture.destroy()}),this.passes.length=0,this}},{\"array-bounds\":53,\"array-normalize\":54,\"color-normalize\":108,earcut:156,\"es6-weak-map\":209,\"flatten-vertex-data\":216,glslify:392,\"object-assign\":437,\"parse-rect\":442,\"pick-by-alias\":448,\"to-float32\":515}],475:[function(t,e,r){\"use strict\";var n=t(\"./scatter\"),i=t(\"object-assign\");e.exports=function(t,e){var r=new n(t,e),a=r.render.bind(r);return i(a,{render:a,update:r.update.bind(r),draw:r.draw.bind(r),destroy:r.destroy.bind(r),regl:r.regl,gl:r.gl,canvas:r.gl.canvas,groups:r.groups,markers:r.markerCache,palette:r.palette}),a}},{\"./scatter\":476,\"object-assign\":437}],476:[function(t,e,r){\"use strict\";var n=t(\"color-normalize\"),i=t(\"array-bounds\"),a=t(\"color-id\"),o=t(\"point-cluster\"),s=t(\"object-assign\"),l=t(\"glslify\"),c=t(\"pick-by-alias\"),u=t(\"update-diff\"),f=t(\"flatten-vertex-data\"),h=t(\"is-iexplorer\"),p=t(\"to-float32\"),d=t(\"parse-rect\");function g(t,e){var r=this;if(!(this instanceof g))return new g(t,e);\"function\"==typeof t?(e||(e={}),e.regl=t):(e=t,t=null),e&&e.length&&(e.positions=e);var n,i=(t=e.regl)._gl,a=[];this.tooManyColors=h,n=t.texture({data:new Uint8Array(1020),width:255,height:1,type:\"uint8\",format:\"rgba\",wrapS:\"clamp\",wrapT:\"clamp\",mag:\"nearest\",min:\"nearest\"}),s(this,{regl:t,gl:i,groups:[],markerCache:[null],markerTextures:[null],palette:a,paletteIds:{},paletteTexture:n,maxColors:255,maxSize:100,canvas:i.canvas}),this.update(e);var o={uniforms:{pixelRatio:t.context(\"pixelRatio\"),palette:n,paletteSize:function(t,e){return[r.tooManyColors?0:255,n.height]},scale:t.prop(\"scale\"),scaleFract:t.prop(\"scaleFract\"),translate:t.prop(\"translate\"),translateFract:t.prop(\"translateFract\"),opacity:t.prop(\"opacity\"),marker:t.prop(\"markerTexture\")},attributes:{x:function(t,e){return e.xAttr||{buffer:e.positionBuffer,stride:8,offset:0}},y:function(t,e){return e.yAttr||{buffer:e.positionBuffer,stride:8,offset:4}},xFract:function(t,e){return e.xAttr?{constant:[0,0]}:{buffer:e.positionFractBuffer,stride:8,offset:0}},yFract:function(t,e){return e.yAttr?{constant:[0,0]}:{buffer:e.positionFractBuffer,stride:8,offset:4}},size:function(t,e){return e.size.length?{buffer:e.sizeBuffer,stride:2,offset:0}:{constant:[Math.round(255*e.size/r.maxSize)]}},borderSize:function(t,e){return e.borderSize.length?{buffer:e.sizeBuffer,stride:2,offset:1}:{constant:[Math.round(255*e.borderSize/r.maxSize)]}},colorId:function(t,e){return e.color.length?{buffer:e.colorBuffer,stride:r.tooManyColors?8:4,offset:0}:{constant:r.tooManyColors?a.slice(4*e.color,4*e.color+4):[e.color]}},borderColorId:function(t,e){return e.borderColor.length?{buffer:e.colorBuffer,stride:r.tooManyColors?8:4,offset:r.tooManyColors?4:2}:{constant:r.tooManyColors?a.slice(4*e.borderColor,4*e.borderColor+4):[e.borderColor]}},isActive:function(t,e){return!0===e.activation?{constant:[1]}:e.activation?e.activation:{constant:[0]}}},blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:\"src alpha\",dstRGB:\"one minus src alpha\",srcAlpha:\"one minus dst alpha\",dstAlpha:\"one\"}},scissor:{enable:!0,box:t.prop(\"viewport\")},viewport:t.prop(\"viewport\"),stencil:{enable:!1},depth:{enable:!1},elements:t.prop(\"elements\"),count:t.prop(\"count\"),offset:t.prop(\"offset\"),primitive:\"points\"},c=s({},o);c.frag=l([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nvarying vec4 fragColor, fragBorderColor;\\nvarying float fragWidth, fragBorderColorLevel, fragColorLevel;\\n\\nuniform sampler2D marker;\\nuniform float pixelRatio, opacity;\\n\\nfloat smoothStep(float x, float y) {\\n return 1.0 / (1.0 + exp(50.0*(x - y)));\\n}\\n\\nvoid main() {\\n float dist = texture2D(marker, gl_PointCoord).r, delta = fragWidth;\\n\\n // max-distance alpha\\n if (dist < 0.003) discard;\\n\\n // null-border case\\n if (fragBorderColorLevel == fragColorLevel || fragBorderColor.a == 0.) {\\n float colorAmt = smoothstep(.5 - delta, .5 + delta, dist);\\n gl_FragColor = vec4(fragColor.rgb, colorAmt * fragColor.a * opacity);\\n }\\n else {\\n float borderColorAmt = smoothstep(fragBorderColorLevel - delta, fragBorderColorLevel + delta, dist);\\n float colorAmt = smoothstep(fragColorLevel - delta, fragColorLevel + delta, dist);\\n\\n vec4 color = fragBorderColor;\\n color.a *= borderColorAmt;\\n color = mix(color, fragColor, colorAmt);\\n color.a *= opacity;\\n\\n gl_FragColor = color;\\n }\\n\\n}\\n\"]),c.vert=l([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute float x, y, xFract, yFract;\\nattribute float size, borderSize;\\nattribute vec4 colorId, borderColorId;\\nattribute float isActive;\\n\\nuniform vec2 scale, scaleFract, translate, translateFract, paletteSize;\\nuniform float pixelRatio;\\nuniform sampler2D palette;\\n\\nconst float maxSize = 100.;\\nconst float borderLevel = .5;\\n\\nvarying vec4 fragColor, fragBorderColor;\\nvarying float fragPointSize, fragBorderRadius,\\n fragWidth, fragBorderColorLevel, fragColorLevel;\\n\\nvec2 paletteCoord(float id) {\\n return vec2(\\n (mod(id, paletteSize.x) + .5) / paletteSize.x,\\n (floor(id / paletteSize.x) + .5) / paletteSize.y\\n );\\n}\\nvec2 paletteCoord(vec2 id) {\\n return vec2(\\n (id.x + .5) / paletteSize.x,\\n (id.y + .5) / paletteSize.y\\n );\\n}\\nvec4 getColor(vec4 id) {\\n // zero-palette means we deal with direct buffer\\n if (paletteSize.x == 0.) return id / 255.;\\n return texture2D(palette, paletteCoord(id.xy));\\n}\\n\\nvoid main() {\\n if (isActive == 0.) return;\\n\\n vec2 position = vec2(x, y);\\n vec2 positionFract = vec2(xFract, yFract);\\n\\n vec4 color = getColor(colorId);\\n vec4 borderColor = getColor(borderColorId);\\n\\n float size = size * maxSize / 255.;\\n float borderSize = borderSize * maxSize / 255.;\\n\\n gl_PointSize = 2. * size * pixelRatio;\\n fragPointSize = size * pixelRatio;\\n\\n vec2 pos = (position + translate) * scale\\n + (positionFract + translateFract) * scale\\n + (position + translate) * scaleFract\\n + (positionFract + translateFract) * scaleFract;\\n\\n gl_Position = vec4(pos * 2. - 1., 0, 1);\\n\\n fragColor = color;\\n fragBorderColor = borderColor;\\n fragWidth = 1. / gl_PointSize;\\n\\n fragBorderColorLevel = clamp(borderLevel - borderLevel * borderSize / size, 0., 1.);\\n fragColorLevel = clamp(borderLevel + (1. - borderLevel) * borderSize / size, 0., 1.);\\n}\\n\"]),this.drawMarker=t(c);var u=s({},o);u.frag=l([\"precision highp float;\\n#define GLSLIFY 1\\n\\nvarying vec4 fragColor, fragBorderColor;\\n\\nuniform float opacity;\\nvarying float fragBorderRadius, fragWidth;\\n\\nfloat smoothStep(float edge0, float edge1, float x) {\\n\\tfloat t;\\n\\tt = clamp((x - edge0) / (edge1 - edge0), 0.0, 1.0);\\n\\treturn t * t * (3.0 - 2.0 * t);\\n}\\n\\nvoid main() {\\n\\tfloat radius, alpha = 1.0, delta = fragWidth;\\n\\n\\tradius = length(2.0 * gl_PointCoord.xy - 1.0);\\n\\n\\tif (radius > 1.0 + delta) {\\n\\t\\tdiscard;\\n\\t}\\n\\n\\talpha -= smoothstep(1.0 - delta, 1.0 + delta, radius);\\n\\n\\tfloat borderRadius = fragBorderRadius;\\n\\tfloat ratio = smoothstep(borderRadius - delta, borderRadius + delta, radius);\\n\\tvec4 color = mix(fragColor, fragBorderColor, ratio);\\n\\tcolor.a *= alpha * opacity;\\n\\tgl_FragColor = color;\\n}\\n\"]),u.vert=l([\"precision highp float;\\n#define GLSLIFY 1\\n\\nattribute float x, y, xFract, yFract;\\nattribute float size, borderSize;\\nattribute vec4 colorId, borderColorId;\\nattribute float isActive;\\n\\nuniform vec2 scale, scaleFract, translate, translateFract;\\nuniform float pixelRatio;\\nuniform sampler2D palette;\\nuniform vec2 paletteSize;\\n\\nconst float maxSize = 100.;\\n\\nvarying vec4 fragColor, fragBorderColor;\\nvarying float fragBorderRadius, fragWidth;\\n\\nvec2 paletteCoord(float id) {\\n return vec2(\\n (mod(id, paletteSize.x) + .5) / paletteSize.x,\\n (floor(id / paletteSize.x) + .5) / paletteSize.y\\n );\\n}\\nvec2 paletteCoord(vec2 id) {\\n return vec2(\\n (id.x + .5) / paletteSize.x,\\n (id.y + .5) / paletteSize.y\\n );\\n}\\n\\nvec4 getColor(vec4 id) {\\n // zero-palette means we deal with direct buffer\\n if (paletteSize.x == 0.) return id / 255.;\\n return texture2D(palette, paletteCoord(id.xy));\\n}\\n\\nvoid main() {\\n // ignore inactive points\\n if (isActive == 0.) return;\\n\\n vec2 position = vec2(x, y);\\n vec2 positionFract = vec2(xFract, yFract);\\n\\n vec4 color = getColor(colorId);\\n vec4 borderColor = getColor(borderColorId);\\n\\n float size = size * maxSize / 255.;\\n float borderSize = borderSize * maxSize / 255.;\\n\\n gl_PointSize = (size + borderSize) * pixelRatio;\\n\\n vec2 pos = (position + translate) * scale\\n + (positionFract + translateFract) * scale\\n + (position + translate) * scaleFract\\n + (positionFract + translateFract) * scaleFract;\\n\\n gl_Position = vec4(pos * 2. - 1., 0, 1);\\n\\n fragBorderRadius = 1. - 2. * borderSize / (size + borderSize);\\n fragColor = color;\\n fragBorderColor = borderColor.a == 0. || borderSize == 0. ? vec4(color.rgb, 0.) : borderColor;\\n fragWidth = 1. / gl_PointSize;\\n}\\n\"]),h&&(u.frag=u.frag.replace(\"smoothstep\",\"smoothStep\"),c.frag=c.frag.replace(\"smoothstep\",\"smoothStep\")),this.drawCircle=t(u)}e.exports=g,g.defaults={color:\"black\",borderColor:\"transparent\",borderSize:0,size:12,opacity:1,marker:void 0,viewport:null,range:null,pixelSize:null,count:0,offset:0,bounds:null,positions:[],snap:1e4},g.prototype.render=function(){for(var t,e=[],r=arguments.length;r--;)e[r]=arguments[r];return e.length&&(t=this).update.apply(t,e),this.draw(),this},g.prototype.draw=function(){for(var t=this,e=[],r=arguments.length;r--;)e[r]=arguments[r];var n=this.groups;if(1===e.length&&Array.isArray(e[0])&&(null===e[0][0]||Array.isArray(e[0][0]))&&(e=e[0]),this.regl._refresh(),e.length)for(var i=0;i<e.length;i++)t.drawItem(i,e[i]);else n.forEach(function(e,r){t.drawItem(r)});return this},g.prototype.drawItem=function(t,e){var r=this.groups,n=r[t];if(\"number\"==typeof e&&(t=e,n=r[e],e=null),n&&n.count&&n.opacity){n.activation[0]&&this.drawCircle(this.getMarkerDrawOptions(0,n,e));for(var i=[],a=1;a<n.activation.length;a++)n.activation[a]&&(!0===n.activation[a]||n.activation[a].data.length)&&i.push.apply(i,this.getMarkerDrawOptions(a,n,e));i.length&&this.drawMarker(i)}},g.prototype.getMarkerDrawOptions=function(t,e,r){var n=e.range,i=e.tree,a=e.viewport,o=e.activation,l=e.selectionBuffer,c=e.count;this.regl;if(!i)return r?[s({},e,{markerTexture:this.markerTextures[t],activation:o[t],count:r.length,elements:r,offset:0})]:[s({},e,{markerTexture:this.markerTextures[t],activation:o[t],offset:0})];var u=[],f=i.range(n,{lod:!0,px:[(n[2]-n[0])/a.width,(n[3]-n[1])/a.height]});if(r){for(var h=o[t].data,p=new Uint8Array(c),d=0;d<r.length;d++){var g=r[d];p[g]=h?h[g]:1}l.subdata(p)}for(var v=f.length;v--;){var m=f[v],y=m[0],x=m[1];u.push(s({},e,{markerTexture:this.markerTextures[t],activation:r?l:o[t],offset:y,count:x-y}))}return u},g.prototype.update=function(){for(var t=this,e=[],r=arguments.length;r--;)e[r]=arguments[r];if(e.length){1===e.length&&Array.isArray(e[0])&&(e=e[0]);var n=this.groups,a=this.gl,l=this.regl,h=this.maxSize,v=this.maxColors,m=this.palette;this.groups=n=e.map(function(e,r){var y=n[r];if(void 0===e)return y;null===e?e={positions:null}:\"function\"==typeof e?e={ondraw:e}:\"number\"==typeof e[0]&&(e={positions:e}),null===(e=c(e,{positions:\"positions data points\",snap:\"snap cluster lod tree\",size:\"sizes size radius\",borderSize:\"borderSizes borderSize border-size bordersize borderWidth borderWidths border-width borderwidth stroke-width strokeWidth strokewidth outline\",color:\"colors color fill fill-color fillColor\",borderColor:\"borderColors borderColor stroke stroke-color strokeColor\",marker:\"markers marker shape\",range:\"range dataBox databox\",viewport:\"viewport viewPort viewBox viewbox\",opacity:\"opacity alpha transparency\",bounds:\"bound bounds boundaries limits\"})).positions&&(e.positions=[]),y||(n[r]=y={id:r,scale:null,translate:null,scaleFract:null,translateFract:null,activation:[],selectionBuffer:l.buffer({data:new Uint8Array(0),usage:\"stream\",type:\"uint8\"}),sizeBuffer:l.buffer({data:new Uint8Array(0),usage:\"dynamic\",type:\"uint8\"}),colorBuffer:l.buffer({data:new Uint8Array(0),usage:\"dynamic\",type:\"uint8\"}),positionBuffer:l.buffer({data:new Uint8Array(0),usage:\"dynamic\",type:\"float\"}),positionFractBuffer:l.buffer({data:new Uint8Array(0),usage:\"dynamic\",type:\"float\"})},e=s({},g.defaults,e)),!e.positions||\"marker\"in e||(e.marker=y.marker,delete y.marker),!e.marker||\"positions\"in e||(e.positions=y.positions,delete y.positions);var x=0,b=0;if(u(y,e,[{snap:!0,size:function(t,e){return null==t&&(t=g.defaults.size),x+=t&&t.length?1:0,t},borderSize:function(t,e){return null==t&&(t=g.defaults.borderSize),x+=t&&t.length?1:0,t},opacity:parseFloat,color:function(e,r){return null==e&&(e=g.defaults.color),e=t.updateColor(e),b++,e},borderColor:function(e,r){return null==e&&(e=g.defaults.borderColor),e=t.updateColor(e),b++,e},bounds:function(t,e,r){return\"range\"in r||(r.range=null),t},positions:function(t,e,r){var n=e.snap,a=e.positionBuffer,s=e.positionFractBuffer,c=e.selectionBuffer;if(t.x||t.y)return t.x.length?e.xAttr={buffer:l.buffer(t.x),offset:0,stride:4,count:t.x.length}:e.xAttr={buffer:t.x.buffer,offset:4*t.x.offset||0,stride:4*(t.x.stride||1),count:t.x.count},t.y.length?e.yAttr={buffer:l.buffer(t.y),offset:0,stride:4,count:t.y.length}:e.yAttr={buffer:t.y.buffer,offset:4*t.y.offset||0,stride:4*(t.y.stride||1),count:t.y.count},e.count=Math.max(e.xAttr.count,e.yAttr.count),t;t=f(t,\"float64\");var u=e.count=Math.floor(t.length/2),h=e.bounds=u?i(t,2):null;if(r.range||e.range||(delete e.range,r.range=h),r.marker||e.marker||(delete e.marker,r.marker=null),n&&(!0===n||u>n)?e.tree=o(t,{bounds:h}):n&&n.length&&(e.tree=n),e.tree){var d={primitive:\"points\",usage:\"static\",data:e.tree,type:\"uint32\"};e.elements?e.elements(d):e.elements=l.elements(d)}return a({data:p.float(t),usage:\"dynamic\"}),s({data:p.fract(t),usage:\"dynamic\"}),c({data:new Uint8Array(u),type:\"uint8\",usage:\"stream\"}),t}},{marker:function(e,r,n){var i=r.activation;if(i.forEach(function(t){return t&&t.destroy&&t.destroy()}),i.length=0,e&&\"number\"!=typeof e[0]){for(var a=[],o=0,s=Math.min(e.length,r.count);o<s;o++){var c=t.addMarker(e[o]);a[c]||(a[c]=new Uint8Array(r.count)),a[c][o]=1}for(var u=0;u<a.length;u++)if(a[u]){var f={data:a[u],type:\"uint8\",usage:\"static\"};i[u]?i[u](f):i[u]=l.buffer(f),i[u].data=a[u]}}else{i[t.addMarker(e)]=!0}return e},range:function(t,e,r){var n=e.bounds;if(n)return t||(t=n),e.scale=[1/(t[2]-t[0]),1/(t[3]-t[1])],e.translate=[-t[0],-t[1]],e.scaleFract=p.fract(e.scale),e.translateFract=p.fract(e.translate),t},viewport:function(t){return d(t||[a.drawingBufferWidth,a.drawingBufferHeight])}}]),x){var _=y.count,w=y.size,k=y.borderSize,M=y.sizeBuffer,A=new Uint8Array(2*_);if(w.length||k.length)for(var T=0;T<_;T++)A[2*T]=Math.round(255*(null==w[T]?w:w[T])/h),A[2*T+1]=Math.round(255*(null==k[T]?k:k[T])/h);M({data:A,usage:\"dynamic\"})}if(b){var S,E=y.count,C=y.color,L=y.borderColor,z=y.colorBuffer;if(t.tooManyColors){if(C.length||L.length){S=new Uint8Array(8*E);for(var O=0;O<E;O++){var I=C[O];S[8*O]=m[4*I],S[8*O+1]=m[4*I+1],S[8*O+2]=m[4*I+2],S[8*O+3]=m[4*I+3];var P=L[O];S[8*O+4]=m[4*P],S[8*O+5]=m[4*P+1],S[8*O+6]=m[4*P+2],S[8*O+7]=m[4*P+3]}}}else if(C.length||L.length){S=new Uint8Array(4*E+2);for(var D=0;D<E;D++)null!=C[D]&&(S[4*D]=C[D]%v,S[4*D+1]=Math.floor(C[D]/v)),null!=L[D]&&(S[4*D+2]=L[D]%v,S[4*D+3]=Math.floor(L[D]/v))}z({data:S||new Uint8Array(0),type:\"uint8\",usage:\"dynamic\"})}return y})}},g.prototype.addMarker=function(t){var e,r=this.markerTextures,n=this.regl,i=this.markerCache,a=null==t?0:i.indexOf(t);if(a>=0)return a;if(t instanceof Uint8Array||t instanceof Uint8ClampedArray)e=t;else{e=new Uint8Array(t.length);for(var o=0,s=t.length;o<s;o++)e[o]=255*t[o]}var l=Math.floor(Math.sqrt(e.length));return a=r.length,i.push(t),r.push(n.texture({channels:1,data:e,radius:l,mag:\"linear\",min:\"linear\"})),a},g.prototype.updateColor=function(t){var e=this.paletteIds,r=this.palette,i=this.maxColors;Array.isArray(t)||(t=[t]);var o=[];if(\"number\"==typeof t[0]){var s=[];if(Array.isArray(t))for(var l=0;l<t.length;l+=4)s.push(t.slice(l,l+4));else for(var c=0;c<t.length;c+=4)s.push(t.subarray(c,c+4));t=s}for(var u=0;u<t.length;u++){var f=t[u];f=n(f,\"uint8\");var h=a(f,!1);if(null==e[h]){var p=r.length;e[h]=Math.floor(p/4),r[p]=f[0],r[p+1]=f[1],r[p+2]=f[2],r[p+3]=f[3]}o[u]=e[h]}return!this.tooManyColors&&r.length>i*i*4&&(this.tooManyColors=!0),this.updatePalette(r),1===o.length?o[0]:o},g.prototype.updatePalette=function(t){if(!this.tooManyColors){var e=this.maxColors,r=this.paletteTexture,n=Math.ceil(.25*t.length/e);if(n>1)for(var i=.25*(t=t.slice()).length%e;i<n*e;i++)t.push(0,0,0,0);r.height<n&&r.resize(e,n),r.subimage({width:Math.min(.25*t.length,e),height:n,data:t},0,0)}},g.prototype.destroy=function(){return this.groups.forEach(function(t){t.sizeBuffer.destroy(),t.positionBuffer.destroy(),t.positionFractBuffer.destroy(),t.colorBuffer.destroy(),t.activation.forEach(function(t){return t&&t.destroy&&t.destroy()}),t.selectionBuffer.destroy(),t.elements&&t.elements.destroy()}),this.groups.length=0,this.paletteTexture.destroy(),this.markerTextures.forEach(function(t){return t&&t.destroy&&t.destroy()}),this}},{\"array-bounds\":53,\"color-id\":106,\"color-normalize\":108,\"flatten-vertex-data\":216,glslify:392,\"is-iexplorer\":402,\"object-assign\":437,\"parse-rect\":442,\"pick-by-alias\":448,\"point-cluster\":452,\"to-float32\":515,\"update-diff\":526}],477:[function(t,e,r){\"use strict\";var n=t(\"regl-scatter2d/scatter\"),i=t(\"pick-by-alias\"),a=t(\"array-bounds\"),o=t(\"raf\"),s=t(\"array-range\"),l=t(\"parse-rect\"),c=t(\"flatten-vertex-data\");function u(t,e){if(!(this instanceof u))return new u(t,e);this.traces=[],this.passes={},this.regl=t,this.scatter=n(t),this.canvas=this.scatter.canvas}function f(t,e,r){return(null!=t.id?t.id:t)<<16|(255&e)<<8|255&r}function h(t,e,r){var n,i,a,o,s=t[e],l=t[r];return s.length>2?(s[0],s[2],n=s[1],i=s[3]):s.length?(n=s[0],i=s[1]):(s.x,n=s.y,s.x+s.width,i=s.y+s.height),l.length>2?(a=l[0],o=l[2],l[1],l[3]):l.length?(a=l[0],o=l[1]):(a=l.x,l.y,o=l.x+l.width,l.y+l.height),[a,n,o,i]}function p(t){if(\"number\"==typeof t)return[t,t,t,t];if(2===t.length)return[t[0],t[1],t[0],t[1]];var e=l(t);return[e.x,e.y,e.x+e.width,e.y+e.height]}e.exports=u,u.prototype.render=function(){for(var t,e=this,r=[],n=arguments.length;n--;)r[n]=arguments[n];return r.length&&(t=this).update.apply(t,r),this.regl.attributes.preserveDrawingBuffer?this.draw():(this.dirty?null==this.planned&&(this.planned=o(function(){e.draw(),e.dirty=!0,e.planned=null})):(this.draw(),this.dirty=!0,o(function(){e.dirty=!1})),this)},u.prototype.update=function(){for(var t,e=[],r=arguments.length;r--;)e[r]=arguments[r];if(e.length){for(var n=0;n<e.length;n++)this.updateItem(n,e[n]);this.traces=this.traces.filter(Boolean);for(var i=[],a=0,o=0;o<this.traces.length;o++){for(var s=this.traces[o],l=this.traces[o].passes,c=0;c<l.length;c++)i.push(this.passes[l[c]]);s.passOffset=a,a+=s.passes.length}return(t=this.scatter).update.apply(t,i),this}},u.prototype.updateItem=function(t,e){var r=this.regl;if(null===e)return this.traces[t]=null,this;if(!e)return this;var n,o=i(e,{data:\"data items columns rows values dimensions samples x\",snap:\"snap cluster\",size:\"sizes size radius\",color:\"colors color fill fill-color fillColor\",opacity:\"opacity alpha transparency opaque\",borderSize:\"borderSizes borderSize border-size bordersize borderWidth borderWidths border-width borderwidth stroke-width strokeWidth strokewidth outline\",borderColor:\"borderColors borderColor bordercolor stroke stroke-color strokeColor\",marker:\"markers marker shape\",range:\"range ranges databox dataBox\",viewport:\"viewport viewBox viewbox\",domain:\"domain domains area areas\",padding:\"pad padding paddings pads margin margins\",transpose:\"transpose transposed\",diagonal:\"diagonal diag showDiagonal\",upper:\"upper up top upperhalf upperHalf showupperhalf showUpper showUpperHalf\",lower:\"lower low bottom lowerhalf lowerHalf showlowerhalf showLowerHalf showLower\"}),s=this.traces[t]||(this.traces[t]={id:t,buffer:r.buffer({usage:\"dynamic\",type:\"float\",data:new Uint8Array}),color:\"black\",marker:null,size:12,borderColor:\"transparent\",borderSize:1,viewport:l([r._gl.drawingBufferWidth,r._gl.drawingBufferHeight]),padding:[0,0,0,0],opacity:1,diagonal:!0,upper:!0,lower:!0});if(null!=o.color&&(s.color=o.color),null!=o.size&&(s.size=o.size),null!=o.marker&&(s.marker=o.marker),null!=o.borderColor&&(s.borderColor=o.borderColor),null!=o.borderSize&&(s.borderSize=o.borderSize),null!=o.opacity&&(s.opacity=o.opacity),o.viewport&&(s.viewport=l(o.viewport)),null!=o.diagonal&&(s.diagonal=o.diagonal),null!=o.upper&&(s.upper=o.upper),null!=o.lower&&(s.lower=o.lower),o.data){s.buffer(c(o.data)),s.columns=o.data.length,s.count=o.data[0].length,s.bounds=[];for(var u=0;u<s.columns;u++)s.bounds[u]=a(o.data[u],1)}o.range&&(s.range=o.range,n=s.range&&\"number\"!=typeof s.range[0]),o.domain&&(s.domain=o.domain);var d=!1;null!=o.padding&&(Array.isArray(o.padding)&&o.padding.length===s.columns&&\"number\"==typeof o.padding[o.padding.length-1]?(s.padding=o.padding.map(p),d=!0):s.padding=p(o.padding));var g=s.columns,v=s.count,m=s.viewport.width,y=s.viewport.height,x=s.viewport.x,b=s.viewport.y,_=m/g,w=y/g;s.passes=[];for(var k=0;k<g;k++)for(var M=0;M<g;M++)if((s.diagonal||M!==k)&&(s.upper||!(k>M))&&(s.lower||!(k<M))){var A=f(s.id,k,M),T=this.passes[A]||(this.passes[A]={});if(o.data&&(o.transpose?T.positions={x:{buffer:s.buffer,offset:M,count:v,stride:g},y:{buffer:s.buffer,offset:k,count:v,stride:g}}:T.positions={x:{buffer:s.buffer,offset:M*v,count:v},y:{buffer:s.buffer,offset:k*v,count:v}},T.bounds=h(s.bounds,k,M)),o.domain||o.viewport||o.data){var S=d?h(s.padding,k,M):s.padding;if(s.domain){var E=h(s.domain,k,M),C=E[0],L=E[1],z=E[2],O=E[3];T.viewport=[x+C*m+S[0],b+L*y+S[1],x+z*m-S[2],b+O*y-S[3]]}else T.viewport=[x+M*_+_*S[0],b+k*w+w*S[1],x+(M+1)*_-_*S[2],b+(k+1)*w-w*S[3]]}o.color&&(T.color=s.color),o.size&&(T.size=s.size),o.marker&&(T.marker=s.marker),o.borderSize&&(T.borderSize=s.borderSize),o.borderColor&&(T.borderColor=s.borderColor),o.opacity&&(T.opacity=s.opacity),o.range&&(T.range=n?h(s.range,k,M):s.range||T.bounds),s.passes.push(A)}return this},u.prototype.draw=function(){for(var t,e=[],r=arguments.length;r--;)e[r]=arguments[r];if(e.length){for(var n=[],i=0;i<e.length;i++)if(\"number\"==typeof e[i]){var a=this.traces[e[i]],o=a.passes,l=a.passOffset;n.push.apply(n,s(l,l+o.length))}else if(e[i].length){var c=e[i],u=this.traces[i],f=u.passes,h=u.passOffset;f=f.map(function(t,e){n[h+e]=c})}(t=this.scatter).draw.apply(t,n)}else this.scatter.draw();return this},u.prototype.destroy=function(){return this.traces.forEach(function(t){t.buffer&&t.buffer.destroy&&t.buffer.destroy()}),this.traces=null,this.passes=null,this.scatter.destroy(),this}},{\"array-bounds\":53,\"array-range\":55,\"flatten-vertex-data\":216,\"parse-rect\":442,\"pick-by-alias\":448,raf:467,\"regl-scatter2d/scatter\":476}],478:[function(t,e,r){var n,i;n=this,i=function(){function t(t,e){this.id=V++,this.type=t,this.data=e}function e(t){return\"[\"+function t(e){if(0===e.length)return[];var r=e.charAt(0),n=e.charAt(e.length-1);if(1<e.length&&r===n&&('\"'===r||\"'\"===r))return['\"'+e.substr(1,e.length-2).replace(/\\\\/g,\"\\\\\\\\\").replace(/\"/g,'\\\\\"')+'\"'];if(r=/\\[(false|true|null|\\d+|'[^']*'|\"[^\"]*\")\\]/.exec(e))return t(e.substr(0,r.index)).concat(t(r[1])).concat(t(e.substr(r.index+r[0].length)));if(1===(r=e.split(\".\")).length)return['\"'+e.replace(/\\\\/g,\"\\\\\\\\\").replace(/\"/g,'\\\\\"')+'\"'];for(e=[],n=0;n<r.length;++n)e=e.concat(t(r[n]));return e}(t).join(\"][\")+\"]\"}function r(t){return\"string\"==typeof t?t.split():t}function n(t){return\"string\"==typeof t?document.querySelector(t):t}function i(t){var e,i,a,o,s=t||{};t={};var l=[],c=[],u=\"undefined\"==typeof window?1:window.devicePixelRatio,f=!1,h=function(t){},p=function(){};if(\"string\"==typeof s?e=document.querySelector(s):\"object\"==typeof s&&(\"string\"==typeof s.nodeName&&\"function\"==typeof s.appendChild&&\"function\"==typeof s.getBoundingClientRect?e=s:\"function\"==typeof s.drawArrays||\"function\"==typeof s.drawElements?a=(o=s).canvas:(\"gl\"in s?o=s.gl:\"canvas\"in s?a=n(s.canvas):\"container\"in s&&(i=n(s.container)),\"attributes\"in s&&(t=s.attributes),\"extensions\"in s&&(l=r(s.extensions)),\"optionalExtensions\"in s&&(c=r(s.optionalExtensions)),\"onDone\"in s&&(h=s.onDone),\"profile\"in s&&(f=!!s.profile),\"pixelRatio\"in s&&(u=+s.pixelRatio))),e&&(\"canvas\"===e.nodeName.toLowerCase()?a=e:i=e),!o){if(!a){if(!(e=function(t,e,r){function n(){var e=window.innerWidth,n=window.innerHeight;t!==document.body&&(e=(n=t.getBoundingClientRect()).right-n.left,n=n.bottom-n.top),i.width=r*e,i.height=r*n,j(i.style,{width:e+\"px\",height:n+\"px\"})}var i=document.createElement(\"canvas\");return j(i.style,{border:0,margin:0,padding:0,top:0,left:0}),t.appendChild(i),t===document.body&&(i.style.position=\"absolute\",j(t.style,{margin:0,padding:0})),window.addEventListener(\"resize\",n,!1),n(),{canvas:i,onDestroy:function(){window.removeEventListener(\"resize\",n),t.removeChild(i)}}}(i||document.body,0,u)))return null;a=e.canvas,p=e.onDestroy}o=function(t,e){function r(r){try{return t.getContext(r,e)}catch(t){return null}}return r(\"webgl\")||r(\"experimental-webgl\")||r(\"webgl-experimental\")}(a,t)}return o?{gl:o,canvas:a,container:i,extensions:l,optionalExtensions:c,pixelRatio:u,profile:f,onDone:h,onDestroy:p}:(p(),h(\"webgl not supported, try upgrading your browser or graphics drivers http://get.webgl.org\"),null)}function a(t,e){for(var r=Array(t),n=0;n<t;++n)r[n]=e(n);return r}function o(t){var e,r;return e=(65535<t)<<4,e|=r=(255<(t>>>=e))<<3,(e|=r=(15<(t>>>=r))<<2)|(r=(3<(t>>>=r))<<1)|t>>>r>>1}function s(){function t(t){t:{for(var e=16;268435456>=e;e*=16)if(t<=e){t=e;break t}t=0}return 0<(e=r[o(t)>>2]).length?e.pop():new ArrayBuffer(t)}function e(t){r[o(t.byteLength)>>2].push(t)}var r=a(8,function(){return[]});return{alloc:t,free:e,allocType:function(e,r){var n=null;switch(e){case 5120:n=new Int8Array(t(r),0,r);break;case 5121:n=new Uint8Array(t(r),0,r);break;case 5122:n=new Int16Array(t(2*r),0,r);break;case 5123:n=new Uint16Array(t(2*r),0,r);break;case 5124:n=new Int32Array(t(4*r),0,r);break;case 5125:n=new Uint32Array(t(4*r),0,r);break;case 5126:n=new Float32Array(t(4*r),0,r);break;default:return null}return n.length!==r?n.subarray(0,r):n},freeType:function(t){e(t.buffer)}}}function l(t){return!!t&&\"object\"==typeof t&&Array.isArray(t.shape)&&Array.isArray(t.stride)&&\"number\"==typeof t.offset&&t.shape.length===t.stride.length&&(Array.isArray(t.data)||Y(t.data))}function c(t,e,r,n,i,a){for(var o=0;o<e;++o)for(var s=t[o],l=0;l<r;++l)for(var c=s[l],u=0;u<n;++u)i[a++]=c[u]}function u(t){return 0|$[Object.prototype.toString.call(t)]}function f(t,e){for(var r=0;r<e.length;++r)t[r]=e[r]}function h(t,e,r,n,i,a,o){for(var s=0,l=0;l<r;++l)for(var c=0;c<n;++c)t[s++]=e[i*l+a*c+o]}function p(t,e,r,n){function i(e){this.id=c++,this.buffer=t.createBuffer(),this.type=e,this.usage=35044,this.byteLength=0,this.dimension=1,this.dtype=5121,this.persistentData=null,r.profile&&(this.stats={size:0})}function a(e,r,n){e.byteLength=r.byteLength,t.bufferData(e.type,r,n)}function o(t,e,r,n,i,o){if(t.usage=r,Array.isArray(e)){if(t.dtype=n||5126,0<e.length)if(Array.isArray(e[0])){i=tt(e);for(var s=n=1;s<i.length;++s)n*=i[s];t.dimension=n,a(t,e=Q(e,i,t.dtype),r),o?t.persistentData=e:G.freeType(e)}else\"number\"==typeof e[0]?(t.dimension=i,f(i=G.allocType(t.dtype,e.length),e),a(t,i,r),o?t.persistentData=i:G.freeType(i)):Y(e[0])&&(t.dimension=e[0].length,t.dtype=n||u(e[0])||5126,a(t,e=Q(e,[e.length,e[0].length],t.dtype),r),o?t.persistentData=e:G.freeType(e))}else if(Y(e))t.dtype=n||u(e),t.dimension=i,a(t,e,r),o&&(t.persistentData=new Uint8Array(new Uint8Array(e.buffer)));else if(l(e)){i=e.shape;var c=e.stride,p=(s=e.offset,0),d=0,g=0,v=0;1===i.length?(p=i[0],d=1,g=c[0],v=0):2===i.length&&(p=i[0],d=i[1],g=c[0],v=c[1]),t.dtype=n||u(e.data)||5126,t.dimension=d,h(i=G.allocType(t.dtype,p*d),e.data,p,d,g,v,s),a(t,i,r),o?t.persistentData=i:G.freeType(i)}}function s(r){e.bufferCount--;for(var i=0;i<n.state.length;++i){var a=n.state[i];a.buffer===r&&(t.disableVertexAttribArray(i),a.buffer=null)}t.deleteBuffer(r.buffer),r.buffer=null,delete p[r.id]}var c=0,p={};i.prototype.bind=function(){t.bindBuffer(this.type,this.buffer)},i.prototype.destroy=function(){s(this)};var d=[];return r.profile&&(e.getTotalBufferSize=function(){var t=0;return Object.keys(p).forEach(function(e){t+=p[e].stats.size}),t}),{create:function(n,a,c,d){function g(e){var n=35044,i=null,a=0,s=0,c=1;return Array.isArray(e)||Y(e)||l(e)?i=e:\"number\"==typeof e?a=0|e:e&&(\"data\"in e&&(i=e.data),\"usage\"in e&&(n=K[e.usage]),\"type\"in e&&(s=J[e.type]),\"dimension\"in e&&(c=0|e.dimension),\"length\"in e&&(a=0|e.length)),v.bind(),i?o(v,i,n,s,c,d):(a&&t.bufferData(v.type,a,n),v.dtype=s||5121,v.usage=n,v.dimension=c,v.byteLength=a),r.profile&&(v.stats.size=v.byteLength*et[v.dtype]),g}e.bufferCount++;var v=new i(a);return p[v.id]=v,c||g(n),g._reglType=\"buffer\",g._buffer=v,g.subdata=function(e,r){var n,i=0|(r||0);if(v.bind(),Y(e))t.bufferSubData(v.type,i,e);else if(Array.isArray(e)){if(0<e.length)if(\"number\"==typeof e[0]){var a=G.allocType(v.dtype,e.length);f(a,e),t.bufferSubData(v.type,i,a),G.freeType(a)}else(Array.isArray(e[0])||Y(e[0]))&&(n=tt(e),a=Q(e,n,v.dtype),t.bufferSubData(v.type,i,a),G.freeType(a))}else if(l(e)){n=e.shape;var o=e.stride,s=a=0,c=0,p=0;1===n.length?(a=n[0],s=1,c=o[0],p=0):2===n.length&&(a=n[0],s=n[1],c=o[0],p=o[1]),n=Array.isArray(e.data)?v.dtype:u(e.data),h(n=G.allocType(n,a*s),e.data,a,s,c,p,e.offset),t.bufferSubData(v.type,i,n),G.freeType(n)}return g},r.profile&&(g.stats=v.stats),g.destroy=function(){s(v)},g},createStream:function(t,e){var r=d.pop();return r||(r=new i(t)),r.bind(),o(r,e,35040,0,1,!1),r},destroyStream:function(t){d.push(t)},clear:function(){X(p).forEach(s),d.forEach(s)},getBuffer:function(t){return t&&t._buffer instanceof i?t._buffer:null},restore:function(){X(p).forEach(function(e){e.buffer=t.createBuffer(),t.bindBuffer(e.type,e.buffer),t.bufferData(e.type,e.persistentData||e.byteLength,e.usage)})},_initBuffer:o}}function d(t,e,r,n){function i(t){this.id=c++,s[this.id]=this,this.buffer=t,this.primType=4,this.type=this.vertCount=0}function a(n,i,a,o,s,c,u){if(n.buffer.bind(),i){var f=u;u||Y(i)&&(!l(i)||Y(i.data))||(f=e.oes_element_index_uint?5125:5123),r._initBuffer(n.buffer,i,a,f,3)}else t.bufferData(34963,c,a),n.buffer.dtype=f||5121,n.buffer.usage=a,n.buffer.dimension=3,n.buffer.byteLength=c;if(f=u,!u){switch(n.buffer.dtype){case 5121:case 5120:f=5121;break;case 5123:case 5122:f=5123;break;case 5125:case 5124:f=5125}n.buffer.dtype=f}n.type=f,0>(i=s)&&(i=n.buffer.byteLength,5123===f?i>>=1:5125===f&&(i>>=2)),n.vertCount=i,i=o,0>o&&(i=4,1===(o=n.buffer.dimension)&&(i=0),2===o&&(i=1),3===o&&(i=4)),n.primType=i}function o(t){n.elementsCount--,delete s[t.id],t.buffer.destroy(),t.buffer=null}var s={},c=0,u={uint8:5121,uint16:5123};e.oes_element_index_uint&&(u.uint32=5125),i.prototype.bind=function(){this.buffer.bind()};var f=[];return{create:function(t,e){function s(t){if(t)if(\"number\"==typeof t)c(t),f.primType=4,f.vertCount=0|t,f.type=5121;else{var e=null,r=35044,n=-1,i=-1,o=0,h=0;Array.isArray(t)||Y(t)||l(t)?e=t:(\"data\"in t&&(e=t.data),\"usage\"in t&&(r=K[t.usage]),\"primitive\"in t&&(n=rt[t.primitive]),\"count\"in t&&(i=0|t.count),\"type\"in t&&(h=u[t.type]),\"length\"in t?o=0|t.length:(o=i,5123===h||5122===h?o*=2:5125!==h&&5124!==h||(o*=4))),a(f,e,r,n,i,o,h)}else c(),f.primType=4,f.vertCount=0,f.type=5121;return s}var c=r.create(null,34963,!0),f=new i(c._buffer);return n.elementsCount++,s(t),s._reglType=\"elements\",s._elements=f,s.subdata=function(t,e){return c.subdata(t,e),s},s.destroy=function(){o(f)},s},createStream:function(t){var e=f.pop();return e||(e=new i(r.create(null,34963,!0,!1)._buffer)),a(e,t,35040,-1,-1,0,0),e},destroyStream:function(t){f.push(t)},getElements:function(t){return\"function\"==typeof t&&t._elements instanceof i?t._elements:null},clear:function(){X(s).forEach(o)}}}function g(t){for(var e=G.allocType(5123,t.length),r=0;r<t.length;++r)if(isNaN(t[r]))e[r]=65535;else if(1/0===t[r])e[r]=31744;else if(-1/0===t[r])e[r]=64512;else{nt[0]=t[r];var n=(a=it[0])>>>31<<15,i=(a<<1>>>24)-127,a=a>>13&1023;e[r]=-24>i?n:-14>i?n+(a+1024>>-14-i):15<i?n+31744:n+(i+15<<10)+a}return e}function v(t){return Array.isArray(t)||Y(t)}function m(t){return\"[object \"+t+\"]\"}function y(t){return Array.isArray(t)&&(0===t.length||\"number\"==typeof t[0])}function x(t){return!(!Array.isArray(t)||0===t.length||!v(t[0]))}function b(t){return Object.prototype.toString.call(t)}function _(t){if(!t)return!1;var e=b(t);return 0<=pt.indexOf(e)||(y(t)||x(t)||l(t))}function w(t,e){36193===t.type?(t.data=g(e),G.freeType(e)):t.data=e}function k(t,e,r,n,i,a){if(t=\"undefined\"!=typeof gt[t]?gt[t]:st[t]*dt[e],a&&(t*=6),i){for(n=0;1<=r;)n+=t*r*r,r/=2;return n}return t*r*n}function M(t,e,r,n,i,a,o){function s(){this.format=this.internalformat=6408,this.type=5121,this.flipY=this.premultiplyAlpha=this.compressed=!1,this.unpackAlignment=1,this.colorSpace=37444,this.channels=this.height=this.width=0}function c(t,e){t.internalformat=e.internalformat,t.format=e.format,t.type=e.type,t.compressed=e.compressed,t.premultiplyAlpha=e.premultiplyAlpha,t.flipY=e.flipY,t.unpackAlignment=e.unpackAlignment,t.colorSpace=e.colorSpace,t.width=e.width,t.height=e.height,t.channels=e.channels}function u(t,e){if(\"object\"==typeof e&&e){\"premultiplyAlpha\"in e&&(t.premultiplyAlpha=e.premultiplyAlpha),\"flipY\"in e&&(t.flipY=e.flipY),\"alignment\"in e&&(t.unpackAlignment=e.alignment),\"colorSpace\"in e&&(t.colorSpace=q[e.colorSpace]),\"type\"in e&&(t.type=H[e.type]);var r=t.width,n=t.height,i=t.channels,a=!1;\"shape\"in e?(r=e.shape[0],n=e.shape[1],3===e.shape.length&&(i=e.shape[2],a=!0)):(\"radius\"in e&&(r=n=e.radius),\"width\"in e&&(r=e.width),\"height\"in e&&(n=e.height),\"channels\"in e&&(i=e.channels,a=!0)),t.width=0|r,t.height=0|n,t.channels=0|i,r=!1,\"format\"in e&&(r=e.format,n=t.internalformat=W[r],t.format=pt[n],r in H&&!(\"type\"in e)&&(t.type=H[r]),r in J&&(t.compressed=!0),r=!0),!a&&r?t.channels=st[t.format]:a&&!r&&t.channels!==ot[t.format]&&(t.format=t.internalformat=ot[t.channels])}}function f(e){t.pixelStorei(37440,e.flipY),t.pixelStorei(37441,e.premultiplyAlpha),t.pixelStorei(37443,e.colorSpace),t.pixelStorei(3317,e.unpackAlignment)}function h(){s.call(this),this.yOffset=this.xOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function p(t,e){var r=null;if(_(e)?r=e:e&&(u(t,e),\"x\"in e&&(t.xOffset=0|e.x),\"y\"in e&&(t.yOffset=0|e.y),_(e.data)&&(r=e.data)),e.copy){var n=i.viewportWidth,a=i.viewportHeight;t.width=t.width||n-t.xOffset,t.height=t.height||a-t.yOffset,t.needsCopy=!0}else if(r){if(Y(r))t.channels=t.channels||4,t.data=r,\"type\"in e||5121!==t.type||(t.type=0|$[Object.prototype.toString.call(r)]);else if(y(r)){switch(t.channels=t.channels||4,a=(n=r).length,t.type){case 5121:case 5123:case 5125:case 5126:(a=G.allocType(t.type,a)).set(n),t.data=a;break;case 36193:t.data=g(n)}t.alignment=1,t.needsFree=!0}else if(l(r)){n=r.data,Array.isArray(n)||5121!==t.type||(t.type=0|$[Object.prototype.toString.call(n)]);a=r.shape;var o,s,c,f,h=r.stride;3===a.length?(c=a[2],f=h[2]):f=c=1,o=a[0],s=a[1],a=h[0],h=h[1],t.alignment=1,t.width=o,t.height=s,t.channels=c,t.format=t.internalformat=ot[c],t.needsFree=!0,o=f,r=r.offset,c=t.width,f=t.height,s=t.channels;for(var p=G.allocType(36193===t.type?5126:t.type,c*f*s),d=0,m=0;m<f;++m)for(var k=0;k<c;++k)for(var M=0;M<s;++M)p[d++]=n[a*k+h*m+o*M+r];w(t,p)}else if(b(r)===lt||b(r)===ct)b(r)===lt?t.element=r:t.element=r.canvas,t.width=t.element.width,t.height=t.element.height,t.channels=4;else if(b(r)===ut)t.element=r,t.width=r.width,t.height=r.height,t.channels=4;else if(b(r)===ft)t.element=r,t.width=r.naturalWidth,t.height=r.naturalHeight,t.channels=4;else if(b(r)===ht)t.element=r,t.width=r.videoWidth,t.height=r.videoHeight,t.channels=4;else if(x(r)){for(n=t.width||r[0].length,a=t.height||r.length,h=t.channels,h=v(r[0][0])?h||r[0][0].length:h||1,o=Z.shape(r),c=1,f=0;f<o.length;++f)c*=o[f];c=G.allocType(36193===t.type?5126:t.type,c),Z.flatten(r,o,\"\",c),w(t,c),t.alignment=1,t.width=n,t.height=a,t.channels=h,t.format=t.internalformat=ot[h],t.needsFree=!0}}else t.width=t.width||1,t.height=t.height||1,t.channels=t.channels||4}function d(e,r,i,a,o){var s=e.element,l=e.data,c=e.internalformat,u=e.format,h=e.type,p=e.width,d=e.height;f(e),s?t.texSubImage2D(r,o,i,a,u,h,s):e.compressed?t.compressedTexSubImage2D(r,o,i,a,c,p,d,l):e.needsCopy?(n(),t.copyTexSubImage2D(r,o,i,a,e.xOffset,e.yOffset,p,d)):t.texSubImage2D(r,o,i,a,p,d,u,h,l)}function m(){return dt.pop()||new h}function M(t){t.needsFree&&G.freeType(t.data),h.call(t),dt.push(t)}function A(){s.call(this),this.genMipmaps=!1,this.mipmapHint=4352,this.mipmask=0,this.images=Array(16)}function T(t,e,r){var n=t.images[0]=m();t.mipmask=1,n.width=t.width=e,n.height=t.height=r,n.channels=t.channels=4}function S(t,e){var r=null;if(_(e))c(r=t.images[0]=m(),t),p(r,e),t.mipmask=1;else if(u(t,e),Array.isArray(e.mipmap))for(var n=e.mipmap,i=0;i<n.length;++i)c(r=t.images[i]=m(),t),r.width>>=i,r.height>>=i,p(r,n[i]),t.mipmask|=1<<i;else c(r=t.images[0]=m(),t),p(r,e),t.mipmask=1;c(t,t.images[0])}function E(e,r){for(var i=e.images,a=0;a<i.length&&i[a];++a){var o=i[a],s=r,l=a,c=o.element,u=o.data,h=o.internalformat,p=o.format,d=o.type,g=o.width,v=o.height,m=o.channels;f(o),c?t.texImage2D(s,l,p,p,d,c):o.compressed?t.compressedTexImage2D(s,l,h,g,v,0,u):o.needsCopy?(n(),t.copyTexImage2D(s,l,p,o.xOffset,o.yOffset,g,v,0)):((o=!u)&&(u=G.zero.allocType(d,g*v*m)),t.texImage2D(s,l,p,g,v,0,p,d,u),o&&u&&G.zero.freeType(u))}}function C(){var t=gt.pop()||new A;s.call(t);for(var e=t.mipmask=0;16>e;++e)t.images[e]=null;return t}function L(t){for(var e=t.images,r=0;r<e.length;++r)e[r]&&M(e[r]),e[r]=null;gt.push(t)}function z(){this.magFilter=this.minFilter=9728,this.wrapT=this.wrapS=33071,this.anisotropic=1,this.genMipmaps=!1,this.mipmapHint=4352}function O(t,e){\"min\"in e&&(t.minFilter=U[e.min],0<=at.indexOf(t.minFilter)&&!(\"faces\"in e)&&(t.genMipmaps=!0)),\"mag\"in e&&(t.magFilter=V[e.mag]);var r=t.wrapS,n=t.wrapT;if(\"wrap\"in e){var i=e.wrap;\"string\"==typeof i?r=n=N[i]:Array.isArray(i)&&(r=N[i[0]],n=N[i[1]])}else\"wrapS\"in e&&(r=N[e.wrapS]),\"wrapT\"in e&&(n=N[e.wrapT]);if(t.wrapS=r,t.wrapT=n,\"anisotropic\"in e&&(t.anisotropic=e.anisotropic),\"mipmap\"in e){switch(r=!1,typeof e.mipmap){case\"string\":t.mipmapHint=F[e.mipmap],r=t.genMipmaps=!0;break;case\"boolean\":r=t.genMipmaps=e.mipmap;break;case\"object\":t.genMipmaps=!1,r=!0}!r||\"min\"in e||(t.minFilter=9984)}}function I(r,n){t.texParameteri(n,10241,r.minFilter),t.texParameteri(n,10240,r.magFilter),t.texParameteri(n,10242,r.wrapS),t.texParameteri(n,10243,r.wrapT),e.ext_texture_filter_anisotropic&&t.texParameteri(n,34046,r.anisotropic),r.genMipmaps&&(t.hint(33170,r.mipmapHint),t.generateMipmap(n))}function P(e){s.call(this),this.mipmask=0,this.internalformat=6408,this.id=vt++,this.refCount=1,this.target=e,this.texture=t.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new z,o.profile&&(this.stats={size:0})}function D(e){t.activeTexture(33984),t.bindTexture(e.target,e.texture)}function R(){var e=xt[0];e?t.bindTexture(e.target,e.texture):t.bindTexture(3553,null)}function B(e){var r=e.texture,n=e.unit,i=e.target;0<=n&&(t.activeTexture(33984+n),t.bindTexture(i,null),xt[n]=null),t.deleteTexture(r),e.texture=null,e.params=null,e.pixels=null,e.refCount=0,delete mt[e.id],a.textureCount--}var F={\"don't care\":4352,\"dont care\":4352,nice:4354,fast:4353},N={repeat:10497,clamp:33071,mirror:33648},V={nearest:9728,linear:9729},U=j({mipmap:9987,\"nearest mipmap nearest\":9984,\"linear mipmap nearest\":9985,\"nearest mipmap linear\":9986,\"linear mipmap linear\":9987},V),q={none:0,browser:37444},H={uint8:5121,rgba4:32819,rgb565:33635,\"rgb5 a1\":32820},W={alpha:6406,luminance:6409,\"luminance alpha\":6410,rgb:6407,rgba:6408,rgba4:32854,\"rgb5 a1\":32855,rgb565:36194},J={};e.ext_srgb&&(W.srgb=35904,W.srgba=35906),e.oes_texture_float&&(H.float32=H.float=5126),e.oes_texture_half_float&&(H.float16=H[\"half float\"]=36193),e.webgl_depth_texture&&(j(W,{depth:6402,\"depth stencil\":34041}),j(H,{uint16:5123,uint32:5125,\"depth stencil\":34042})),e.webgl_compressed_texture_s3tc&&j(J,{\"rgb s3tc dxt1\":33776,\"rgba s3tc dxt1\":33777,\"rgba s3tc dxt3\":33778,\"rgba s3tc dxt5\":33779}),e.webgl_compressed_texture_atc&&j(J,{\"rgb atc\":35986,\"rgba atc explicit alpha\":35987,\"rgba atc interpolated alpha\":34798}),e.webgl_compressed_texture_pvrtc&&j(J,{\"rgb pvrtc 4bppv1\":35840,\"rgb pvrtc 2bppv1\":35841,\"rgba pvrtc 4bppv1\":35842,\"rgba pvrtc 2bppv1\":35843}),e.webgl_compressed_texture_etc1&&(J[\"rgb etc1\"]=36196);var K=Array.prototype.slice.call(t.getParameter(34467));Object.keys(J).forEach(function(t){var e=J[t];0<=K.indexOf(e)&&(W[t]=e)});var Q=Object.keys(W);r.textureFormats=Q;var tt=[];Object.keys(W).forEach(function(t){tt[W[t]]=t});var et=[];Object.keys(H).forEach(function(t){et[H[t]]=t});var rt=[];Object.keys(V).forEach(function(t){rt[V[t]]=t});var nt=[];Object.keys(U).forEach(function(t){nt[U[t]]=t});var it=[];Object.keys(N).forEach(function(t){it[N[t]]=t});var pt=Q.reduce(function(t,e){var r=W[e];return 6409===r||6406===r||6409===r||6410===r||6402===r||34041===r?t[r]=r:32855===r||0<=e.indexOf(\"rgba\")?t[r]=6408:t[r]=6407,t},{}),dt=[],gt=[],vt=0,mt={},yt=r.maxTextureUnits,xt=Array(yt).map(function(){return null});return j(P.prototype,{bind:function(){this.bindCount+=1;var e=this.unit;if(0>e){for(var r=0;r<yt;++r){var n=xt[r];if(n){if(0<n.bindCount)continue;n.unit=-1}xt[r]=this,e=r;break}o.profile&&a.maxTextureUnits<e+1&&(a.maxTextureUnits=e+1),this.unit=e,t.activeTexture(33984+e),t.bindTexture(this.target,this.texture)}return e},unbind:function(){--this.bindCount},decRef:function(){0>=--this.refCount&&B(this)}}),o.profile&&(a.getTotalTextureSize=function(){var t=0;return Object.keys(mt).forEach(function(e){t+=mt[e].stats.size}),t}),{create2D:function(e,r){function n(t,e){var r=i.texInfo;z.call(r);var a=C();return\"number\"==typeof t?T(a,0|t,\"number\"==typeof e?0|e:0|t):t?(O(r,t),S(a,t)):T(a,1,1),r.genMipmaps&&(a.mipmask=(a.width<<1)-1),i.mipmask=a.mipmask,c(i,a),i.internalformat=a.internalformat,n.width=a.width,n.height=a.height,D(i),E(a,3553),I(r,3553),R(),L(a),o.profile&&(i.stats.size=k(i.internalformat,i.type,a.width,a.height,r.genMipmaps,!1)),n.format=tt[i.internalformat],n.type=et[i.type],n.mag=rt[r.magFilter],n.min=nt[r.minFilter],n.wrapS=it[r.wrapS],n.wrapT=it[r.wrapT],n}var i=new P(3553);return mt[i.id]=i,a.textureCount++,n(e,r),n.subimage=function(t,e,r,a){e|=0,r|=0,a|=0;var o=m();return c(o,i),o.width=0,o.height=0,p(o,t),o.width=o.width||(i.width>>a)-e,o.height=o.height||(i.height>>a)-r,D(i),d(o,3553,e,r,a),R(),M(o),n},n.resize=function(e,r){var a=0|e,s=0|r||a;if(a===i.width&&s===i.height)return n;n.width=i.width=a,n.height=i.height=s,D(i);for(var l,c=i.channels,u=i.type,f=0;i.mipmask>>f;++f){var h=a>>f,p=s>>f;if(!h||!p)break;l=G.zero.allocType(u,h*p*c),t.texImage2D(3553,f,i.format,h,p,0,i.format,i.type,l),l&&G.zero.freeType(l)}return R(),o.profile&&(i.stats.size=k(i.internalformat,i.type,a,s,!1,!1)),n},n._reglType=\"texture2d\",n._texture=i,o.profile&&(n.stats=i.stats),n.destroy=function(){i.decRef()},n},createCube:function(e,r,n,i,s,l){function f(t,e,r,n,i,a){var s,l=h.texInfo;for(z.call(l),s=0;6>s;++s)g[s]=C();if(\"number\"!=typeof t&&t){if(\"object\"==typeof t)if(e)S(g[0],t),S(g[1],e),S(g[2],r),S(g[3],n),S(g[4],i),S(g[5],a);else if(O(l,t),u(h,t),\"faces\"in t)for(t=t.faces,s=0;6>s;++s)c(g[s],h),S(g[s],t[s]);else for(s=0;6>s;++s)S(g[s],t)}else for(t=0|t||1,s=0;6>s;++s)T(g[s],t,t);for(c(h,g[0]),h.mipmask=l.genMipmaps?(g[0].width<<1)-1:g[0].mipmask,h.internalformat=g[0].internalformat,f.width=g[0].width,f.height=g[0].height,D(h),s=0;6>s;++s)E(g[s],34069+s);for(I(l,34067),R(),o.profile&&(h.stats.size=k(h.internalformat,h.type,f.width,f.height,l.genMipmaps,!0)),f.format=tt[h.internalformat],f.type=et[h.type],f.mag=rt[l.magFilter],f.min=nt[l.minFilter],f.wrapS=it[l.wrapS],f.wrapT=it[l.wrapT],s=0;6>s;++s)L(g[s]);return f}var h=new P(34067);mt[h.id]=h,a.cubeCount++;var g=Array(6);return f(e,r,n,i,s,l),f.subimage=function(t,e,r,n,i){r|=0,n|=0,i|=0;var a=m();return c(a,h),a.width=0,a.height=0,p(a,e),a.width=a.width||(h.width>>i)-r,a.height=a.height||(h.height>>i)-n,D(h),d(a,34069+t,r,n,i),R(),M(a),f},f.resize=function(e){if((e|=0)!==h.width){f.width=h.width=e,f.height=h.height=e,D(h);for(var r=0;6>r;++r)for(var n=0;h.mipmask>>n;++n)t.texImage2D(34069+r,n,h.format,e>>n,e>>n,0,h.format,h.type,null);return R(),o.profile&&(h.stats.size=k(h.internalformat,h.type,f.width,f.height,!1,!0)),f}},f._reglType=\"textureCube\",f._texture=h,o.profile&&(f.stats=h.stats),f.destroy=function(){h.decRef()},f},clear:function(){for(var e=0;e<yt;++e)t.activeTexture(33984+e),t.bindTexture(3553,null),xt[e]=null;X(mt).forEach(B),a.cubeCount=0,a.textureCount=0},getTexture:function(t){return null},restore:function(){X(mt).forEach(function(e){e.texture=t.createTexture(),t.bindTexture(e.target,e.texture);for(var r=0;32>r;++r)if(0!=(e.mipmask&1<<r))if(3553===e.target)t.texImage2D(3553,r,e.internalformat,e.width>>r,e.height>>r,0,e.internalformat,e.type,null);else for(var n=0;6>n;++n)t.texImage2D(34069+n,r,e.internalformat,e.width>>r,e.height>>r,0,e.internalformat,e.type,null);I(e.texInfo,e.target)})}}}function A(t,e,r,n,i,a){function o(t,e,r){this.target=t,this.texture=e,this.renderbuffer=r;var n=t=0;e?(t=e.width,n=e.height):r&&(t=r.width,n=r.height),this.width=t,this.height=n}function s(t){t&&(t.texture&&t.texture._texture.decRef(),t.renderbuffer&&t.renderbuffer._renderbuffer.decRef())}function l(t,e,r){t&&(t.texture?t.texture._texture.refCount+=1:t.renderbuffer._renderbuffer.refCount+=1)}function c(e,r){r&&(r.texture?t.framebufferTexture2D(36160,e,r.target,r.texture._texture.texture,0):t.framebufferRenderbuffer(36160,e,36161,r.renderbuffer._renderbuffer.renderbuffer))}function u(t){var e=3553,r=null,n=null,i=t;return\"object\"==typeof t&&(i=t.data,\"target\"in t&&(e=0|t.target)),\"texture2d\"===(t=i._reglType)?r=i:\"textureCube\"===t?r=i:\"renderbuffer\"===t&&(n=i,e=36161),new o(e,r,n)}function f(t,e,r,a,s){return r?((t=n.create2D({width:t,height:e,format:a,type:s}))._texture.refCount=0,new o(3553,t,null)):((t=i.create({width:t,height:e,format:a}))._renderbuffer.refCount=0,new o(36161,null,t))}function h(t){return t&&(t.texture||t.renderbuffer)}function p(t,e,r){t&&(t.texture?t.texture.resize(e,r):t.renderbuffer&&t.renderbuffer.resize(e,r))}function d(){this.id=k++,M[this.id]=this,this.framebuffer=t.createFramebuffer(),this.height=this.width=0,this.colorAttachments=[],this.depthStencilAttachment=this.stencilAttachment=this.depthAttachment=null}function g(t){t.colorAttachments.forEach(s),s(t.depthAttachment),s(t.stencilAttachment),s(t.depthStencilAttachment)}function v(e){t.deleteFramebuffer(e.framebuffer),e.framebuffer=null,a.framebufferCount--,delete M[e.id]}function m(e){var n;t.bindFramebuffer(36160,e.framebuffer);var i=e.colorAttachments;for(n=0;n<i.length;++n)c(36064+n,i[n]);for(n=i.length;n<r.maxColorAttachments;++n)t.framebufferTexture2D(36160,36064+n,3553,null,0);t.framebufferTexture2D(36160,33306,3553,null,0),t.framebufferTexture2D(36160,36096,3553,null,0),t.framebufferTexture2D(36160,36128,3553,null,0),c(36096,e.depthAttachment),c(36128,e.stencilAttachment),c(33306,e.depthStencilAttachment),t.checkFramebufferStatus(36160),t.bindFramebuffer(36160,x.next?x.next.framebuffer:null),x.cur=x.next,t.getError()}function y(t,e){function r(t,e){var i,a=0,o=0,s=!0,c=!0;i=null;var p=!0,d=\"rgba\",v=\"uint8\",y=1,x=null,w=null,k=null,M=!1;\"number\"==typeof t?(a=0|t,o=0|e||a):t?(\"shape\"in t?(a=(o=t.shape)[0],o=o[1]):(\"radius\"in t&&(a=o=t.radius),\"width\"in t&&(a=t.width),\"height\"in t&&(o=t.height)),(\"color\"in t||\"colors\"in t)&&(i=t.color||t.colors,Array.isArray(i)),i||(\"colorCount\"in t&&(y=0|t.colorCount),\"colorTexture\"in t&&(p=!!t.colorTexture,d=\"rgba4\"),\"colorType\"in t&&(v=t.colorType,!p)&&(\"half float\"===v||\"float16\"===v?d=\"rgba16f\":\"float\"!==v&&\"float32\"!==v||(d=\"rgba32f\")),\"colorFormat\"in t&&(d=t.colorFormat,0<=b.indexOf(d)?p=!0:0<=_.indexOf(d)&&(p=!1))),(\"depthTexture\"in t||\"depthStencilTexture\"in t)&&(M=!(!t.depthTexture&&!t.depthStencilTexture)),\"depth\"in t&&(\"boolean\"==typeof t.depth?s=t.depth:(x=t.depth,c=!1)),\"stencil\"in t&&(\"boolean\"==typeof t.stencil?c=t.stencil:(w=t.stencil,s=!1)),\"depthStencil\"in t&&(\"boolean\"==typeof t.depthStencil?s=c=t.depthStencil:(k=t.depthStencil,c=s=!1))):a=o=1;var A=null,T=null,S=null,E=null;if(Array.isArray(i))A=i.map(u);else if(i)A=[u(i)];else for(A=Array(y),i=0;i<y;++i)A[i]=f(a,o,p,d,v);for(a=a||A[0].width,o=o||A[0].height,x?T=u(x):s&&!c&&(T=f(a,o,M,\"depth\",\"uint32\")),w?S=u(w):c&&!s&&(S=f(a,o,!1,\"stencil\",\"uint8\")),k?E=u(k):!x&&!w&&c&&s&&(E=f(a,o,M,\"depth stencil\",\"depth stencil\")),s=null,i=0;i<A.length;++i)l(A[i]),A[i]&&A[i].texture&&(c=yt[A[i].texture._texture.format]*xt[A[i].texture._texture.type],null===s&&(s=c));return l(T),l(S),l(E),g(n),n.width=a,n.height=o,n.colorAttachments=A,n.depthAttachment=T,n.stencilAttachment=S,n.depthStencilAttachment=E,r.color=A.map(h),r.depth=h(T),r.stencil=h(S),r.depthStencil=h(E),r.width=n.width,r.height=n.height,m(n),r}var n=new d;return a.framebufferCount++,r(t,e),j(r,{resize:function(t,e){var i=0|t,a=0|e||i;if(i===n.width&&a===n.height)return r;for(var o=n.colorAttachments,s=0;s<o.length;++s)p(o[s],i,a);return p(n.depthAttachment,i,a),p(n.stencilAttachment,i,a),p(n.depthStencilAttachment,i,a),n.width=r.width=i,n.height=r.height=a,m(n),r},_reglType:\"framebuffer\",_framebuffer:n,destroy:function(){v(n),g(n)},use:function(t){x.setFBO({framebuffer:r},t)}})}var x={cur:null,next:null,dirty:!1,setFBO:null},b=[\"rgba\"],_=[\"rgba4\",\"rgb565\",\"rgb5 a1\"];e.ext_srgb&&_.push(\"srgba\"),e.ext_color_buffer_half_float&&_.push(\"rgba16f\",\"rgb16f\"),e.webgl_color_buffer_float&&_.push(\"rgba32f\");var w=[\"uint8\"];e.oes_texture_half_float&&w.push(\"half float\",\"float16\"),e.oes_texture_float&&w.push(\"float\",\"float32\");var k=0,M={};return j(x,{getFramebuffer:function(t){return\"function\"==typeof t&&\"framebuffer\"===t._reglType&&(t=t._framebuffer)instanceof d?t:null},create:y,createCube:function(t){function e(t){var i,a={color:null},o=0,s=null;i=\"rgba\";var l=\"uint8\",c=1;if(\"number\"==typeof t?o=0|t:t?(\"shape\"in t?o=t.shape[0]:(\"radius\"in t&&(o=0|t.radius),\"width\"in t?o=0|t.width:\"height\"in t&&(o=0|t.height)),(\"color\"in t||\"colors\"in t)&&(s=t.color||t.colors,Array.isArray(s)),s||(\"colorCount\"in t&&(c=0|t.colorCount),\"colorType\"in t&&(l=t.colorType),\"colorFormat\"in t&&(i=t.colorFormat)),\"depth\"in t&&(a.depth=t.depth),\"stencil\"in t&&(a.stencil=t.stencil),\"depthStencil\"in t&&(a.depthStencil=t.depthStencil)):o=1,s)if(Array.isArray(s))for(t=[],i=0;i<s.length;++i)t[i]=s[i];else t=[s];else for(t=Array(c),s={radius:o,format:i,type:l},i=0;i<c;++i)t[i]=n.createCube(s);for(a.color=Array(t.length),i=0;i<t.length;++i)c=t[i],o=o||c.width,a.color[i]={target:34069,data:t[i]};for(i=0;6>i;++i){for(c=0;c<t.length;++c)a.color[c].target=34069+i;0<i&&(a.depth=r[0].depth,a.stencil=r[0].stencil,a.depthStencil=r[0].depthStencil),r[i]?r[i](a):r[i]=y(a)}return j(e,{width:o,height:o,color:t})}var r=Array(6);return e(t),j(e,{faces:r,resize:function(t){var n=0|t;if(n===e.width)return e;var i=e.color;for(t=0;t<i.length;++t)i[t].resize(n);for(t=0;6>t;++t)r[t].resize(n);return e.width=e.height=n,e},_reglType:\"framebufferCube\",destroy:function(){r.forEach(function(t){t.destroy()})}})},clear:function(){X(M).forEach(v)},restore:function(){X(M).forEach(function(e){e.framebuffer=t.createFramebuffer(),m(e)})}})}function T(){this.w=this.z=this.y=this.x=this.state=0,this.buffer=null,this.size=0,this.normalized=!1,this.type=5126,this.divisor=this.stride=this.offset=0}function S(t,e,r,n){function i(t,e,r,n){this.name=t,this.id=e,this.location=r,this.info=n}function a(t,e){for(var r=0;r<t.length;++r)if(t[r].id===e.id)return void(t[r].location=e.location);t.push(e)}function o(r,n,i){if(!(o=(i=35632===r?c:u)[n])){var a=e.str(n),o=t.createShader(r);t.shaderSource(o,a),t.compileShader(o),i[n]=o}return o}function s(t,e){this.id=p++,this.fragId=t,this.vertId=e,this.program=null,this.uniforms=[],this.attributes=[],n.profile&&(this.stats={uniformsCount:0,attributesCount:0})}function l(r,s){var l,c;l=o(35632,r.fragId),c=o(35633,r.vertId);var u=r.program=t.createProgram();t.attachShader(u,l),t.attachShader(u,c),t.linkProgram(u);var f=t.getProgramParameter(u,35718);n.profile&&(r.stats.uniformsCount=f);var h=r.uniforms;for(l=0;l<f;++l)if(c=t.getActiveUniform(u,l))if(1<c.size)for(var p=0;p<c.size;++p){var d=c.name.replace(\"[0]\",\"[\"+p+\"]\");a(h,new i(d,e.id(d),t.getUniformLocation(u,d),c))}else a(h,new i(c.name,e.id(c.name),t.getUniformLocation(u,c.name),c));for(f=t.getProgramParameter(u,35721),n.profile&&(r.stats.attributesCount=f),h=r.attributes,l=0;l<f;++l)(c=t.getActiveAttrib(u,l))&&a(h,new i(c.name,e.id(c.name),t.getAttribLocation(u,c.name),c))}var c={},u={},f={},h=[],p=0;return n.profile&&(r.getMaxUniformsCount=function(){var t=0;return h.forEach(function(e){e.stats.uniformsCount>t&&(t=e.stats.uniformsCount)}),t},r.getMaxAttributesCount=function(){var t=0;return h.forEach(function(e){e.stats.attributesCount>t&&(t=e.stats.attributesCount)}),t}),{clear:function(){var e=t.deleteShader.bind(t);X(c).forEach(e),c={},X(u).forEach(e),u={},h.forEach(function(e){t.deleteProgram(e.program)}),h.length=0,f={},r.shaderCount=0},program:function(t,e,n){var i=f[e];i||(i=f[e]={});var a=i[t];return a||(a=new s(e,t),r.shaderCount++,l(a),i[t]=a,h.push(a)),a},restore:function(){c={},u={};for(var t=0;t<h.length;++t)l(h[t])},shader:o,frag:-1,vert:-1}}function E(t,e,r,n,i,a,o){function s(i){var a;a=null===e.next?5121:e.next.colorAttachments[0].texture._texture.type;var o=0,s=0,l=n.framebufferWidth,c=n.framebufferHeight,u=null;return Y(i)?u=i:i&&(o=0|i.x,s=0|i.y,l=0|(i.width||n.framebufferWidth-o),c=0|(i.height||n.framebufferHeight-s),u=i.data||null),r(),i=l*c*4,u||(5121===a?u=new Uint8Array(i):5126===a&&(u=u||new Float32Array(i))),t.pixelStorei(3333,4),t.readPixels(o,s,l,c,6408,a,u),u}return function(t){return t&&\"framebuffer\"in t?function(t){var r;return e.setFBO({framebuffer:t.framebuffer},function(){r=s(t)}),r}(t):s(t)}}function C(t){return Array.prototype.slice.call(t)}function L(t){return C(t).join(\"\")}function z(){function t(){var t=[],e=[];return j(function(){t.push.apply(t,C(arguments))},{def:function(){var n=\"v\"+r++;return e.push(n),0<arguments.length&&(t.push(n,\"=\"),t.push.apply(t,C(arguments)),t.push(\";\")),n},toString:function(){return L([0<e.length?\"var \"+e+\";\":\"\",L(t)])}})}function e(){function e(t,e){n(t,e,\"=\",r.def(t,e),\";\")}var r=t(),n=t(),i=r.toString,a=n.toString;return j(function(){r.apply(r,C(arguments))},{def:r.def,entry:r,exit:n,save:e,set:function(t,n,i){e(t,n),r(t,n,\"=\",i,\";\")},toString:function(){return i()+a()}})}var r=0,n=[],i=[],a=t(),o={};return{global:a,link:function(t){for(var e=0;e<i.length;++e)if(i[e]===t)return n[e];return e=\"g\"+r++,n.push(e),i.push(t),e},block:t,proc:function(t,r){function n(){var t=\"a\"+i.length;return i.push(t),t}var i=[];r=r||0;for(var a=0;a<r;++a)n();var s=(a=e()).toString;return o[t]=j(a,{arg:n,toString:function(){return L([\"function(\",i.join(),\"){\",s(),\"}\"])}})},scope:e,cond:function(){var t=L(arguments),r=e(),n=e(),i=r.toString,a=n.toString;return j(r,{then:function(){return r.apply(r,C(arguments)),this},else:function(){return n.apply(n,C(arguments)),this},toString:function(){var e=a();return e&&(e=\"else{\"+e+\"}\"),L([\"if(\",t,\"){\",i(),\"}\",e])}})},compile:function(){var t=['\"use strict\";',a,\"return {\"];Object.keys(o).forEach(function(e){t.push('\"',e,'\":',o[e].toString(),\",\")}),t.push(\"}\");var e=L(t).replace(/;/g,\";\\n\").replace(/}/g,\"}\\n\").replace(/{/g,\"{\\n\");return Function.apply(null,n.concat(e)).apply(null,i)}}}function O(t){return Array.isArray(t)||Y(t)||l(t)}function I(t){return t.sort(function(t,e){return\"viewport\"===t?-1:\"viewport\"===e?1:t<e?-1:1})}function P(t,e,r,n){this.thisDep=t,this.contextDep=e,this.propDep=r,this.append=n}function D(t){return t&&!(t.thisDep||t.contextDep||t.propDep)}function R(t){return new P(!1,!1,!1,t)}function B(t,e){var r=t.type;return 0===r?new P(!0,1<=(r=t.data.length),2<=r,e):4===r?new P((r=t.data).thisDep,r.contextDep,r.propDep,e):new P(3===r,2===r,1===r,e)}function F(t,e,r,n,i,o,s,l,c,u,f,h,p,d,g){function m(t){return t.replace(\".\",\"_\")}function y(t,e,r){var n=m(t);nt.push(t),et[n]=tt[n]=!!r,it[n]=e}function x(t,e,r){var n=m(t);nt.push(t),Array.isArray(r)?(tt[n]=r.slice(),et[n]=r.slice()):tt[n]=et[n]=r,at[n]=e}function b(){var t=z(),r=t.link,n=t.global;t.id=lt++,t.batchId=\"0\";var i=r(ot),a=t.shared={props:\"a0\"};Object.keys(ot).forEach(function(t){a[t]=n.def(i,\".\",t)});var o=t.next={},s=t.current={};Object.keys(at).forEach(function(t){Array.isArray(tt[t])&&(o[t]=n.def(a.next,\".\",t),s[t]=n.def(a.current,\".\",t))});var l=t.constants={};Object.keys(st).forEach(function(t){l[t]=n.def(JSON.stringify(st[t]))}),t.invoke=function(e,n){switch(n.type){case 0:var i=[\"this\",a.context,a.props,t.batchId];return e.def(r(n.data),\".call(\",i.slice(0,Math.max(n.data.length+1,4)),\")\");case 1:return e.def(a.props,n.data);case 2:return e.def(a.context,n.data);case 3:return e.def(\"this\",n.data);case 4:return n.data.append(t,e),n.data.ref}},t.attribCache={};var c={};return t.scopeAttrib=function(t){if((t=e.id(t))in c)return c[t];var n=u.scope[t];return n||(n=u.scope[t]=new Z),c[t]=r(n)},t}function _(t,e){var r=t.static,n=t.dynamic;if(\"framebuffer\"in r){var i=r.framebuffer;return i?(i=l.getFramebuffer(i),R(function(t,e){var r=t.link(i),n=t.shared;return e.set(n.framebuffer,\".next\",r),n=n.context,e.set(n,\".framebufferWidth\",r+\".width\"),e.set(n,\".framebufferHeight\",r+\".height\"),r})):R(function(t,e){var r=t.shared;return e.set(r.framebuffer,\".next\",\"null\"),r=r.context,e.set(r,\".framebufferWidth\",r+\".drawingBufferWidth\"),e.set(r,\".framebufferHeight\",r+\".drawingBufferHeight\"),\"null\"})}if(\"framebuffer\"in n){var a=n.framebuffer;return B(a,function(t,e){var r=t.invoke(e,a),n=t.shared,i=n.framebuffer;r=e.def(i,\".getFramebuffer(\",r,\")\");return e.set(i,\".next\",r),n=n.context,e.set(n,\".framebufferWidth\",r+\"?\"+r+\".width:\"+n+\".drawingBufferWidth\"),e.set(n,\".framebufferHeight\",r+\"?\"+r+\".height:\"+n+\".drawingBufferHeight\"),r})}return null}function w(t){function r(t){if(t in n){var r=e.id(n[t]);return(t=R(function(){return r})).id=r,t}if(t in i){var a=i[t];return B(a,function(t,e){var r=t.invoke(e,a);return e.def(t.shared.strings,\".id(\",r,\")\")})}return null}var n=t.static,i=t.dynamic,a=r(\"frag\"),o=r(\"vert\"),s=null;return D(a)&&D(o)?(s=f.program(o.id,a.id),t=R(function(t,e){return t.link(s)})):t=new P(a&&a.thisDep||o&&o.thisDep,a&&a.contextDep||o&&o.contextDep,a&&a.propDep||o&&o.propDep,function(t,e){var r,n,i=t.shared.shader;return r=a?a.append(t,e):e.def(i,\".\",\"frag\"),n=o?o.append(t,e):e.def(i,\".\",\"vert\"),e.def(i+\".program(\"+n+\",\"+r+\")\")}),{frag:a,vert:o,progVar:t,program:s}}function k(t,e){function r(t,e){if(t in n){var r=0|n[t];return R(function(t,n){return e&&(t.OFFSET=r),r})}if(t in i){var o=i[t];return B(o,function(t,r){var n=t.invoke(r,o);return e&&(t.OFFSET=n),n})}return e&&a?R(function(t,e){return t.OFFSET=\"0\",0}):null}var n=t.static,i=t.dynamic,a=function(){if(\"elements\"in n){var t=n.elements;O(t)?t=o.getElements(o.create(t,!0)):t&&(t=o.getElements(t));var e=R(function(e,r){if(t){var n=e.link(t);return e.ELEMENTS=n}return e.ELEMENTS=null});return e.value=t,e}if(\"elements\"in i){var r=i.elements;return B(r,function(t,e){var n=(i=t.shared).isBufferArgs,i=i.elements,a=t.invoke(e,r),o=e.def(\"null\");n=e.def(n,\"(\",a,\")\"),a=t.cond(n).then(o,\"=\",i,\".createStream(\",a,\");\").else(o,\"=\",i,\".getElements(\",a,\");\");return e.entry(a),e.exit(t.cond(n).then(i,\".destroyStream(\",o,\");\")),t.ELEMENTS=o})}return null}(),s=r(\"offset\",!0);return{elements:a,primitive:function(){if(\"primitive\"in n){var t=n.primitive;return R(function(e,r){return rt[t]})}if(\"primitive\"in i){var e=i.primitive;return B(e,function(t,r){var n=t.constants.primTypes,i=t.invoke(r,e);return r.def(n,\"[\",i,\"]\")})}return a?D(a)?a.value?R(function(t,e){return e.def(t.ELEMENTS,\".primType\")}):R(function(){return 4}):new P(a.thisDep,a.contextDep,a.propDep,function(t,e){var r=t.ELEMENTS;return e.def(r,\"?\",r,\".primType:\",4)}):null}(),count:function(){if(\"count\"in n){var t=0|n.count;return R(function(){return t})}if(\"count\"in i){var e=i.count;return B(e,function(t,r){return t.invoke(r,e)})}return a?D(a)?a?s?new P(s.thisDep,s.contextDep,s.propDep,function(t,e){return e.def(t.ELEMENTS,\".vertCount-\",t.OFFSET)}):R(function(t,e){return e.def(t.ELEMENTS,\".vertCount\")}):R(function(){return-1}):new P(a.thisDep||s.thisDep,a.contextDep||s.contextDep,a.propDep||s.propDep,function(t,e){var r=t.ELEMENTS;return t.OFFSET?e.def(r,\"?\",r,\".vertCount-\",t.OFFSET,\":-1\"):e.def(r,\"?\",r,\".vertCount:-1\")}):null}(),instances:r(\"instances\",!1),offset:s}}function M(t,r){var n=t.static,a=t.dynamic,o={};return Object.keys(n).forEach(function(t){var r=n[t],a=e.id(t),s=new Z;if(O(r))s.state=1,s.buffer=i.getBuffer(i.create(r,34962,!1,!0)),s.type=0;else if(c=i.getBuffer(r))s.state=1,s.buffer=c,s.type=0;else if(\"constant\"in r){var l=r.constant;s.buffer=\"null\",s.state=2,\"number\"==typeof l?s.x=l:bt.forEach(function(t,e){e<l.length&&(s[t]=l[e])})}else{var c=O(r.buffer)?i.getBuffer(i.create(r.buffer,34962,!1,!0)):i.getBuffer(r.buffer),u=0|r.offset,f=0|r.stride,h=0|r.size,p=!!r.normalized,d=0;\"type\"in r&&(d=J[r.type]),r=0|r.divisor,s.buffer=c,s.state=1,s.size=h,s.normalized=p,s.type=d||c.dtype,s.offset=u,s.stride=f,s.divisor=r}o[t]=R(function(t,e){var r=t.attribCache;if(a in r)return r[a];var n={isStream:!1};return Object.keys(s).forEach(function(t){n[t]=s[t]}),s.buffer&&(n.buffer=t.link(s.buffer),n.type=n.type||n.buffer+\".dtype\"),r[a]=n})}),Object.keys(a).forEach(function(t){var e=a[t];o[t]=B(e,function(t,r){function n(t){r(l[t],\"=\",i,\".\",t,\"|0;\")}var i=t.invoke(r,e),a=t.shared,o=a.isBufferArgs,s=a.buffer,l={isStream:r.def(!1)},c=new Z;c.state=1,Object.keys(c).forEach(function(t){l[t]=r.def(\"\"+c[t])});var u=l.buffer,f=l.type;return r(\"if(\",o,\"(\",i,\")){\",l.isStream,\"=true;\",u,\"=\",s,\".createStream(\",34962,\",\",i,\");\",f,\"=\",u,\".dtype;\",\"}else{\",u,\"=\",s,\".getBuffer(\",i,\");\",\"if(\",u,\"){\",f,\"=\",u,\".dtype;\",'}else if(\"constant\" in ',i,\"){\",l.state,\"=\",2,\";\",\"if(typeof \"+i+'.constant === \"number\"){',l[bt[0]],\"=\",i,\".constant;\",bt.slice(1).map(function(t){return l[t]}).join(\"=\"),\"=0;\",\"}else{\",bt.map(function(t,e){return l[t]+\"=\"+i+\".constant.length>\"+e+\"?\"+i+\".constant[\"+e+\"]:0;\"}).join(\"\"),\"}}else{\",\"if(\",o,\"(\",i,\".buffer)){\",u,\"=\",s,\".createStream(\",34962,\",\",i,\".buffer);\",\"}else{\",u,\"=\",s,\".getBuffer(\",i,\".buffer);\",\"}\",f,'=\"type\" in ',i,\"?\",a.glTypes,\"[\",i,\".type]:\",u,\".dtype;\",l.normalized,\"=!!\",i,\".normalized;\"),n(\"size\"),n(\"offset\"),n(\"stride\"),n(\"divisor\"),r(\"}}\"),r.exit(\"if(\",l.isStream,\"){\",s,\".destroyStream(\",u,\");\",\"}\"),l})}),o}function A(t,e,r,n,i){var o=_(t),s=function(t,e,r){function n(t){if(t in i){var r=i[t];t=!0;var n,o,s=0|r.x,l=0|r.y;return\"width\"in r?n=0|r.width:t=!1,\"height\"in r?o=0|r.height:t=!1,new P(!t&&e&&e.thisDep,!t&&e&&e.contextDep,!t&&e&&e.propDep,function(t,e){var i=t.shared.context,a=n;\"width\"in r||(a=e.def(i,\".\",\"framebufferWidth\",\"-\",s));var c=o;return\"height\"in r||(c=e.def(i,\".\",\"framebufferHeight\",\"-\",l)),[s,l,a,c]})}if(t in a){var c=a[t];return t=B(c,function(t,e){var r=t.invoke(e,c),n=t.shared.context,i=e.def(r,\".x|0\"),a=e.def(r,\".y|0\");return[i,a,e.def('\"width\" in ',r,\"?\",r,\".width|0:\",\"(\",n,\".\",\"framebufferWidth\",\"-\",i,\")\"),r=e.def('\"height\" in ',r,\"?\",r,\".height|0:\",\"(\",n,\".\",\"framebufferHeight\",\"-\",a,\")\")]}),e&&(t.thisDep=t.thisDep||e.thisDep,t.contextDep=t.contextDep||e.contextDep,t.propDep=t.propDep||e.propDep),t}return e?new P(e.thisDep,e.contextDep,e.propDep,function(t,e){var r=t.shared.context;return[0,0,e.def(r,\".\",\"framebufferWidth\"),e.def(r,\".\",\"framebufferHeight\")]}):null}var i=t.static,a=t.dynamic;if(t=n(\"viewport\")){var o=t;t=new P(t.thisDep,t.contextDep,t.propDep,function(t,e){var r=o.append(t,e),n=t.shared.context;return e.set(n,\".viewportWidth\",r[2]),e.set(n,\".viewportHeight\",r[3]),r})}return{viewport:t,scissor_box:n(\"scissor.box\")}}(t,o),l=k(t),c=function(t,e){var r=t.static,n=t.dynamic,i={};return nt.forEach(function(t){function e(e,a){if(t in r){var s=e(r[t]);i[o]=R(function(){return s})}else if(t in n){var l=n[t];i[o]=B(l,function(t,e){return a(t,e,t.invoke(e,l))})}}var o=m(t);switch(t){case\"cull.enable\":case\"blend.enable\":case\"dither\":case\"stencil.enable\":case\"depth.enable\":case\"scissor.enable\":case\"polygonOffset.enable\":case\"sample.alpha\":case\"sample.enable\":case\"depth.mask\":return e(function(t){return t},function(t,e,r){return r});case\"depth.func\":return e(function(t){return kt[t]},function(t,e,r){return e.def(t.constants.compareFuncs,\"[\",r,\"]\")});case\"depth.range\":return e(function(t){return t},function(t,e,r){return[e.def(\"+\",r,\"[0]\"),e=e.def(\"+\",r,\"[1]\")]});case\"blend.func\":return e(function(t){return[wt[\"srcRGB\"in t?t.srcRGB:t.src],wt[\"dstRGB\"in t?t.dstRGB:t.dst],wt[\"srcAlpha\"in t?t.srcAlpha:t.src],wt[\"dstAlpha\"in t?t.dstAlpha:t.dst]]},function(t,e,r){function n(t,n){return e.def('\"',t,n,'\" in ',r,\"?\",r,\".\",t,n,\":\",r,\".\",t)}t=t.constants.blendFuncs;var i=n(\"src\",\"RGB\"),a=n(\"dst\",\"RGB\"),o=(i=e.def(t,\"[\",i,\"]\"),e.def(t,\"[\",n(\"src\",\"Alpha\"),\"]\"));return[i,a=e.def(t,\"[\",a,\"]\"),o,t=e.def(t,\"[\",n(\"dst\",\"Alpha\"),\"]\")]});case\"blend.equation\":return e(function(t){return\"string\"==typeof t?[$[t],$[t]]:\"object\"==typeof t?[$[t.rgb],$[t.alpha]]:void 0},function(t,e,r){var n=t.constants.blendEquations,i=e.def(),a=e.def();return(t=t.cond(\"typeof \",r,'===\"string\"')).then(i,\"=\",a,\"=\",n,\"[\",r,\"];\"),t.else(i,\"=\",n,\"[\",r,\".rgb];\",a,\"=\",n,\"[\",r,\".alpha];\"),e(t),[i,a]});case\"blend.color\":return e(function(t){return a(4,function(e){return+t[e]})},function(t,e,r){return a(4,function(t){return e.def(\"+\",r,\"[\",t,\"]\")})});case\"stencil.mask\":return e(function(t){return 0|t},function(t,e,r){return e.def(r,\"|0\")});case\"stencil.func\":return e(function(t){return[kt[t.cmp||\"keep\"],t.ref||0,\"mask\"in t?t.mask:-1]},function(t,e,r){return[t=e.def('\"cmp\" in ',r,\"?\",t.constants.compareFuncs,\"[\",r,\".cmp]\",\":\",7680),e.def(r,\".ref|0\"),e=e.def('\"mask\" in ',r,\"?\",r,\".mask|0:-1\")]});case\"stencil.opFront\":case\"stencil.opBack\":return e(function(e){return[\"stencil.opBack\"===t?1029:1028,Mt[e.fail||\"keep\"],Mt[e.zfail||\"keep\"],Mt[e.zpass||\"keep\"]]},function(e,r,n){function i(t){return r.def('\"',t,'\" in ',n,\"?\",a,\"[\",n,\".\",t,\"]:\",7680)}var a=e.constants.stencilOps;return[\"stencil.opBack\"===t?1029:1028,i(\"fail\"),i(\"zfail\"),i(\"zpass\")]});case\"polygonOffset.offset\":return e(function(t){return[0|t.factor,0|t.units]},function(t,e,r){return[e.def(r,\".factor|0\"),e=e.def(r,\".units|0\")]});case\"cull.face\":return e(function(t){var e=0;return\"front\"===t?e=1028:\"back\"===t&&(e=1029),e},function(t,e,r){return e.def(r,'===\"front\"?',1028,\":\",1029)});case\"lineWidth\":return e(function(t){return t},function(t,e,r){return r});case\"frontFace\":return e(function(t){return At[t]},function(t,e,r){return e.def(r+'===\"cw\"?2304:2305')});case\"colorMask\":return e(function(t){return t.map(function(t){return!!t})},function(t,e,r){return a(4,function(t){return\"!!\"+r+\"[\"+t+\"]\"})});case\"sample.coverage\":return e(function(t){return[\"value\"in t?t.value:1,!!t.invert]},function(t,e,r){return[e.def('\"value\" in ',r,\"?+\",r,\".value:1\"),e=e.def(\"!!\",r,\".invert\")]})}}),i}(t),u=w(t),f=s.viewport;return f&&(c.viewport=f),(s=s[f=m(\"scissor.box\")])&&(c[f]=s),(o={framebuffer:o,draw:l,shader:u,state:c,dirty:s=0<Object.keys(c).length}).profile=function(t){var e,r=t.static;if(t=t.dynamic,\"profile\"in r){var n=!!r.profile;(e=R(function(t,e){return n})).enable=n}else if(\"profile\"in t){var i=t.profile;e=B(i,function(t,e){return t.invoke(e,i)})}return e}(t),o.uniforms=function(t,e){var r=t.static,n=t.dynamic,i={};return Object.keys(r).forEach(function(t){var e,n=r[t];if(\"number\"==typeof n||\"boolean\"==typeof n)e=R(function(){return n});else if(\"function\"==typeof n){var o=n._reglType;\"texture2d\"===o||\"textureCube\"===o?e=R(function(t){return t.link(n)}):\"framebuffer\"!==o&&\"framebufferCube\"!==o||(e=R(function(t){return t.link(n.color[0])}))}else v(n)&&(e=R(function(t){return t.global.def(\"[\",a(n.length,function(t){return n[t]}),\"]\")}));e.value=n,i[t]=e}),Object.keys(n).forEach(function(t){var e=n[t];i[t]=B(e,function(t,r){return t.invoke(r,e)})}),i}(r),o.attributes=M(e),o.context=function(t){var e=t.static,r=t.dynamic,n={};return Object.keys(e).forEach(function(t){var r=e[t];n[t]=R(function(t,e){return\"number\"==typeof r||\"boolean\"==typeof r?\"\"+r:t.link(r)})}),Object.keys(r).forEach(function(t){var e=r[t];n[t]=B(e,function(t,r){return t.invoke(r,e)})}),n}(n),o}function T(t,e,r){var n=t.shared.context,i=t.scope();Object.keys(r).forEach(function(a){e.save(n,\".\"+a),i(n,\".\",a,\"=\",r[a].append(t,e),\";\")}),e(i)}function S(t,e,r,n){var i,a=(s=t.shared).gl,o=s.framebuffer;Q&&(i=e.def(s.extensions,\".webgl_draw_buffers\"));var s=(l=t.constants).drawBuffer,l=l.backBuffer;t=r?r.append(t,e):e.def(o,\".next\"),n||e(\"if(\",t,\"!==\",o,\".cur){\"),e(\"if(\",t,\"){\",a,\".bindFramebuffer(\",36160,\",\",t,\".framebuffer);\"),Q&&e(i,\".drawBuffersWEBGL(\",s,\"[\",t,\".colorAttachments.length]);\"),e(\"}else{\",a,\".bindFramebuffer(\",36160,\",null);\"),Q&&e(i,\".drawBuffersWEBGL(\",l,\");\"),e(\"}\",o,\".cur=\",t,\";\"),n||e(\"}\")}function E(t,e,r){var n=t.shared,i=n.gl,o=t.current,s=t.next,l=n.current,c=n.next,u=t.cond(l,\".dirty\");nt.forEach(function(e){var n,f;if(!((e=m(e))in r.state))if(e in s){n=s[e],f=o[e];var h=a(tt[e].length,function(t){return u.def(n,\"[\",t,\"]\")});u(t.cond(h.map(function(t,e){return t+\"!==\"+f+\"[\"+e+\"]\"}).join(\"||\")).then(i,\".\",at[e],\"(\",h,\");\",h.map(function(t,e){return f+\"[\"+e+\"]=\"+t}).join(\";\"),\";\"))}else n=u.def(c,\".\",e),h=t.cond(n,\"!==\",l,\".\",e),u(h),e in it?h(t.cond(n).then(i,\".enable(\",it[e],\");\").else(i,\".disable(\",it[e],\");\"),l,\".\",e,\"=\",n,\";\"):h(i,\".\",at[e],\"(\",n,\");\",l,\".\",e,\"=\",n,\";\")}),0===Object.keys(r.state).length&&u(l,\".dirty=false;\"),e(u)}function C(t,e,r,n){var i=t.shared,a=t.current,o=i.current,s=i.gl;I(Object.keys(r)).forEach(function(i){var l=r[i];if(!n||n(l)){var c=l.append(t,e);if(it[i]){var u=it[i];D(l)?e(s,c?\".enable(\":\".disable(\",u,\");\"):e(t.cond(c).then(s,\".enable(\",u,\");\").else(s,\".disable(\",u,\");\")),e(o,\".\",i,\"=\",c,\";\")}else if(v(c)){var f=a[i];e(s,\".\",at[i],\"(\",c,\");\",c.map(function(t,e){return f+\"[\"+e+\"]=\"+t}).join(\";\"),\";\")}else e(s,\".\",at[i],\"(\",c,\");\",o,\".\",i,\"=\",c,\";\")}})}function L(t,e){K&&(t.instancing=e.def(t.shared.extensions,\".angle_instanced_arrays\"))}function F(t,e,r,n,i){function a(){return\"undefined\"==typeof performance?\"Date.now()\":\"performance.now()\"}function o(t){t(c=e.def(),\"=\",a(),\";\"),\"string\"==typeof i?t(h,\".count+=\",i,\";\"):t(h,\".count++;\"),d&&(n?t(u=e.def(),\"=\",g,\".getNumPendingQueries();\"):t(g,\".beginQuery(\",h,\");\"))}function s(t){t(h,\".cpuTime+=\",a(),\"-\",c,\";\"),d&&(n?t(g,\".pushScopeStats(\",u,\",\",g,\".getNumPendingQueries(),\",h,\");\"):t(g,\".endQuery();\"))}function l(t){var r=e.def(p,\".profile\");e(p,\".profile=\",t,\";\"),e.exit(p,\".profile=\",r,\";\")}var c,u,f=t.shared,h=t.stats,p=f.current,g=f.timer;if(r=r.profile){if(D(r))return void(r.enable?(o(e),s(e.exit),l(\"true\")):l(\"false\"));l(r=r.append(t,e))}else r=e.def(p,\".profile\");o(f=t.block()),e(\"if(\",r,\"){\",f,\"}\"),s(t=t.block()),e.exit(\"if(\",r,\"){\",t,\"}\")}function N(t,e,r,n,i){function a(r,n,i){function a(){e(\"if(!\",u,\".buffer){\",l,\".enableVertexAttribArray(\",c,\");}\");var r,a=i.type;r=i.size?e.def(i.size,\"||\",n):n,e(\"if(\",u,\".type!==\",a,\"||\",u,\".size!==\",r,\"||\",p.map(function(t){return u+\".\"+t+\"!==\"+i[t]}).join(\"||\"),\"){\",l,\".bindBuffer(\",34962,\",\",f,\".buffer);\",l,\".vertexAttribPointer(\",[c,r,a,i.normalized,i.stride,i.offset],\");\",u,\".type=\",a,\";\",u,\".size=\",r,\";\",p.map(function(t){return u+\".\"+t+\"=\"+i[t]+\";\"}).join(\"\"),\"}\"),K&&(a=i.divisor,e(\"if(\",u,\".divisor!==\",a,\"){\",t.instancing,\".vertexAttribDivisorANGLE(\",[c,a],\");\",u,\".divisor=\",a,\";}\"))}function s(){e(\"if(\",u,\".buffer){\",l,\".disableVertexAttribArray(\",c,\");\",\"}if(\",bt.map(function(t,e){return u+\".\"+t+\"!==\"+h[e]}).join(\"||\"),\"){\",l,\".vertexAttrib4f(\",c,\",\",h,\");\",bt.map(function(t,e){return u+\".\"+t+\"=\"+h[e]+\";\"}).join(\"\"),\"}\")}var l=o.gl,c=e.def(r,\".location\"),u=e.def(o.attributes,\"[\",c,\"]\");r=i.state;var f=i.buffer,h=[i.x,i.y,i.z,i.w],p=[\"buffer\",\"normalized\",\"offset\",\"stride\"];1===r?a():2===r?s():(e(\"if(\",r,\"===\",1,\"){\"),a(),e(\"}else{\"),s(),e(\"}\"))}var o=t.shared;n.forEach(function(n){var o,s=n.name,l=r.attributes[s];if(l){if(!i(l))return;o=l.append(t,e)}else{if(!i(Tt))return;var c=t.scopeAttrib(s);o={},Object.keys(new Z).forEach(function(t){o[t]=e.def(c,\".\",t)})}a(t.link(n),function(t){switch(t){case 35664:case 35667:case 35671:return 2;case 35665:case 35668:case 35672:return 3;case 35666:case 35669:case 35673:return 4;default:return 1}}(n.info.type),o)})}function j(t,r,n,i,o){for(var s,l=t.shared,c=l.gl,u=0;u<i.length;++u){var f,h=(g=i[u]).name,p=g.info.type,d=n.uniforms[h],g=t.link(g)+\".location\";if(d){if(!o(d))continue;if(D(d)){if(h=d.value,35678===p||35680===p)r(c,\".uniform1i(\",g,\",\",(p=t.link(h._texture||h.color[0]._texture))+\".bind());\"),r.exit(p,\".unbind();\");else if(35674===p||35675===p||35676===p)d=2,35675===p?d=3:35676===p&&(d=4),r(c,\".uniformMatrix\",d,\"fv(\",g,\",false,\",h=t.global.def(\"new Float32Array([\"+Array.prototype.slice.call(h)+\"])\"),\");\");else{switch(p){case 5126:s=\"1f\";break;case 35664:s=\"2f\";break;case 35665:s=\"3f\";break;case 35666:s=\"4f\";break;case 35670:case 5124:s=\"1i\";break;case 35671:case 35667:s=\"2i\";break;case 35672:case 35668:s=\"3i\";break;case 35673:s=\"4i\";break;case 35669:s=\"4i\"}r(c,\".uniform\",s,\"(\",g,\",\",v(h)?Array.prototype.slice.call(h):h,\");\")}continue}f=d.append(t,r)}else{if(!o(Tt))continue;f=r.def(l.uniforms,\"[\",e.id(h),\"]\")}switch(35678===p?r(\"if(\",f,\"&&\",f,'._reglType===\"framebuffer\"){',f,\"=\",f,\".color[0];\",\"}\"):35680===p&&r(\"if(\",f,\"&&\",f,'._reglType===\"framebufferCube\"){',f,\"=\",f,\".color[0];\",\"}\"),h=1,p){case 35678:case 35680:p=r.def(f,\"._texture\"),r(c,\".uniform1i(\",g,\",\",p,\".bind());\"),r.exit(p,\".unbind();\");continue;case 5124:case 35670:s=\"1i\";break;case 35667:case 35671:s=\"2i\",h=2;break;case 35668:case 35672:s=\"3i\",h=3;break;case 35669:case 35673:s=\"4i\",h=4;break;case 5126:s=\"1f\";break;case 35664:s=\"2f\",h=2;break;case 35665:s=\"3f\",h=3;break;case 35666:s=\"4f\",h=4;break;case 35674:s=\"Matrix2fv\";break;case 35675:s=\"Matrix3fv\";break;case 35676:s=\"Matrix4fv\"}if(r(c,\".uniform\",s,\"(\",g,\",\"),\"M\"===s.charAt(0)){g=Math.pow(p-35674+2,2);var m=t.global.def(\"new Float32Array(\",g,\")\");r(\"false,(Array.isArray(\",f,\")||\",f,\" instanceof Float32Array)?\",f,\":(\",a(g,function(t){return m+\"[\"+t+\"]=\"+f+\"[\"+t+\"]\"}),\",\",m,\")\")}else r(1<h?a(h,function(t){return f+\"[\"+t+\"]\"}):f);r(\");\")}}function V(t,e,r,n){function i(i){var a=h[i];return a?a.contextDep&&n.contextDynamic||a.propDep?a.append(t,r):a.append(t,e):e.def(f,\".\",i)}function a(){function t(){r(l,\".drawElementsInstancedANGLE(\",[d,v,m,g+\"<<((\"+m+\"-5121)>>1)\",s],\");\")}function e(){r(l,\".drawArraysInstancedANGLE(\",[d,g,v,s],\");\")}p?y?t():(r(\"if(\",p,\"){\"),t(),r(\"}else{\"),e(),r(\"}\")):e()}function o(){function t(){r(u+\".drawElements(\"+[d,v,m,g+\"<<((\"+m+\"-5121)>>1)\"]+\");\")}function e(){r(u+\".drawArrays(\"+[d,g,v]+\");\")}p?y?t():(r(\"if(\",p,\"){\"),t(),r(\"}else{\"),e(),r(\"}\")):e()}var s,l,c=t.shared,u=c.gl,f=c.draw,h=n.draw,p=function(){var i=h.elements,a=e;return i?((i.contextDep&&n.contextDynamic||i.propDep)&&(a=r),i=i.append(t,a)):i=a.def(f,\".\",\"elements\"),i&&a(\"if(\"+i+\")\"+u+\".bindBuffer(34963,\"+i+\".buffer.buffer);\"),i}(),d=i(\"primitive\"),g=i(\"offset\"),v=function(){var i=h.count,a=e;return i?((i.contextDep&&n.contextDynamic||i.propDep)&&(a=r),i=i.append(t,a)):i=a.def(f,\".\",\"count\"),i}();if(\"number\"==typeof v){if(0===v)return}else r(\"if(\",v,\"){\"),r.exit(\"}\");K&&(s=i(\"instances\"),l=t.instancing);var m=p+\".type\",y=h.elements&&D(h.elements);K&&(\"number\"!=typeof s||0<=s)?\"string\"==typeof s?(r(\"if(\",s,\">0){\"),a(),r(\"}else if(\",s,\"<0){\"),o(),r(\"}\")):a():o()}function q(t,e,r,n,i){return i=(e=b()).proc(\"body\",i),K&&(e.instancing=i.def(e.shared.extensions,\".angle_instanced_arrays\")),t(e,i,r,n),e.compile().body}function H(t,e,r,n){L(t,e),N(t,e,r,n.attributes,function(){return!0}),j(t,e,r,n.uniforms,function(){return!0}),V(t,e,e,r)}function G(t,e,r,n){function i(){return!0}t.batchId=\"a1\",L(t,e),N(t,e,r,n.attributes,i),j(t,e,r,n.uniforms,i),V(t,e,e,r)}function W(t,e,r,n){function i(t){return t.contextDep&&o||t.propDep}function a(t){return!i(t)}L(t,e);var o=r.contextDep,s=e.def(),l=e.def();t.shared.props=l,t.batchId=s;var c=t.scope(),u=t.scope();e(c.entry,\"for(\",s,\"=0;\",s,\"<\",\"a1\",\";++\",s,\"){\",l,\"=\",\"a0\",\"[\",s,\"];\",u,\"}\",c.exit),r.needsContext&&T(t,u,r.context),r.needsFramebuffer&&S(t,u,r.framebuffer),C(t,u,r.state,i),r.profile&&i(r.profile)&&F(t,u,r,!1,!0),n?(N(t,c,r,n.attributes,a),N(t,u,r,n.attributes,i),j(t,c,r,n.uniforms,a),j(t,u,r,n.uniforms,i),V(t,c,u,r)):(e=t.global.def(\"{}\"),n=r.shader.progVar.append(t,u),l=u.def(n,\".id\"),c=u.def(e,\"[\",l,\"]\"),u(t.shared.gl,\".useProgram(\",n,\".program);\",\"if(!\",c,\"){\",c,\"=\",e,\"[\",l,\"]=\",t.link(function(e){return q(G,t,r,e,2)}),\"(\",n,\");}\",c,\".call(this,a0[\",s,\"],\",s,\");\"))}function Y(t,r){function n(e){var n=r.shader[e];n&&i.set(a.shader,\".\"+e,n.append(t,i))}var i=t.proc(\"scope\",3);t.batchId=\"a2\";var a=t.shared,o=a.current;T(t,i,r.context),r.framebuffer&&r.framebuffer.append(t,i),I(Object.keys(r.state)).forEach(function(e){var n=r.state[e].append(t,i);v(n)?n.forEach(function(r,n){i.set(t.next[e],\"[\"+n+\"]\",r)}):i.set(a.next,\".\"+e,n)}),F(t,i,r,!0,!0),[\"elements\",\"offset\",\"count\",\"instances\",\"primitive\"].forEach(function(e){var n=r.draw[e];n&&i.set(a.draw,\".\"+e,\"\"+n.append(t,i))}),Object.keys(r.uniforms).forEach(function(n){i.set(a.uniforms,\"[\"+e.id(n)+\"]\",r.uniforms[n].append(t,i))}),Object.keys(r.attributes).forEach(function(e){var n=r.attributes[e].append(t,i),a=t.scopeAttrib(e);Object.keys(new Z).forEach(function(t){i.set(a,\".\"+t,n[t])})}),n(\"vert\"),n(\"frag\"),0<Object.keys(r.state).length&&(i(o,\".dirty=true;\"),i.exit(o,\".dirty=true;\")),i(\"a1(\",t.shared.context,\",a0,\",t.batchId,\");\")}function X(t,e,r){var n=e.static[r];if(n&&function(t){if(\"object\"==typeof t&&!v(t)){for(var e=Object.keys(t),r=0;r<e.length;++r)if(U.isDynamic(t[e[r]]))return!0;return!1}}(n)){var i=t.global,a=Object.keys(n),o=!1,s=!1,l=!1,c=t.global.def(\"{}\");a.forEach(function(e){var r=n[e];if(U.isDynamic(r))\"function\"==typeof r&&(r=n[e]=U.unbox(r)),e=B(r,null),o=o||e.thisDep,l=l||e.propDep,s=s||e.contextDep;else{switch(i(c,\".\",e,\"=\"),typeof r){case\"number\":i(r);break;case\"string\":i('\"',r,'\"');break;case\"object\":Array.isArray(r)&&i(\"[\",r.join(),\"]\");break;default:i(t.link(r))}i(\";\")}}),e.dynamic[r]=new U.DynamicVariable(4,{thisDep:o,contextDep:s,propDep:l,ref:c,append:function(t,e){a.forEach(function(r){var i=n[r];U.isDynamic(i)&&(i=t.invoke(e,i),e(c,\".\",r,\"=\",i,\";\"))})}}),delete e.static[r]}}var Z=u.Record,$={add:32774,subtract:32778,\"reverse subtract\":32779};r.ext_blend_minmax&&($.min=32775,$.max=32776);var K=r.angle_instanced_arrays,Q=r.webgl_draw_buffers,tt={dirty:!0,profile:g.profile},et={},nt=[],it={},at={};y(\"dither\",3024),y(\"blend.enable\",3042),x(\"blend.color\",\"blendColor\",[0,0,0,0]),x(\"blend.equation\",\"blendEquationSeparate\",[32774,32774]),x(\"blend.func\",\"blendFuncSeparate\",[1,0,1,0]),y(\"depth.enable\",2929,!0),x(\"depth.func\",\"depthFunc\",513),x(\"depth.range\",\"depthRange\",[0,1]),x(\"depth.mask\",\"depthMask\",!0),x(\"colorMask\",\"colorMask\",[!0,!0,!0,!0]),y(\"cull.enable\",2884),x(\"cull.face\",\"cullFace\",1029),x(\"frontFace\",\"frontFace\",2305),x(\"lineWidth\",\"lineWidth\",1),y(\"polygonOffset.enable\",32823),x(\"polygonOffset.offset\",\"polygonOffset\",[0,0]),y(\"sample.alpha\",32926),y(\"sample.enable\",32928),x(\"sample.coverage\",\"sampleCoverage\",[1,!1]),y(\"stencil.enable\",2960),x(\"stencil.mask\",\"stencilMask\",-1),x(\"stencil.func\",\"stencilFunc\",[519,0,-1]),x(\"stencil.opFront\",\"stencilOpSeparate\",[1028,7680,7680,7680]),x(\"stencil.opBack\",\"stencilOpSeparate\",[1029,7680,7680,7680]),y(\"scissor.enable\",3089),x(\"scissor.box\",\"scissor\",[0,0,t.drawingBufferWidth,t.drawingBufferHeight]),x(\"viewport\",\"viewport\",[0,0,t.drawingBufferWidth,t.drawingBufferHeight]);var ot={gl:t,context:p,strings:e,next:et,current:tt,draw:h,elements:o,buffer:i,shader:f,attributes:u.state,uniforms:c,framebuffer:l,extensions:r,timer:d,isBufferArgs:O},st={primTypes:rt,compareFuncs:kt,blendFuncs:wt,blendEquations:$,stencilOps:Mt,glTypes:J,orientationType:At};Q&&(st.backBuffer=[1029],st.drawBuffer=a(n.maxDrawbuffers,function(t){return 0===t?[0]:a(t,function(t){return 36064+t})}));var lt=0;return{next:et,current:tt,procs:function(){var t=b(),e=t.proc(\"poll\"),r=t.proc(\"refresh\"),i=t.block();e(i),r(i);var o,s=t.shared,l=s.gl,c=s.next,u=s.current;i(u,\".dirty=false;\"),S(t,e),S(t,r,null,!0),K&&(o=t.link(K));for(var f=0;f<n.maxAttributes;++f){var h=r.def(s.attributes,\"[\",f,\"]\"),p=t.cond(h,\".buffer\");p.then(l,\".enableVertexAttribArray(\",f,\");\",l,\".bindBuffer(\",34962,\",\",h,\".buffer.buffer);\",l,\".vertexAttribPointer(\",f,\",\",h,\".size,\",h,\".type,\",h,\".normalized,\",h,\".stride,\",h,\".offset);\").else(l,\".disableVertexAttribArray(\",f,\");\",l,\".vertexAttrib4f(\",f,\",\",h,\".x,\",h,\".y,\",h,\".z,\",h,\".w);\",h,\".buffer=null;\"),r(p),K&&r(o,\".vertexAttribDivisorANGLE(\",f,\",\",h,\".divisor);\")}return Object.keys(it).forEach(function(n){var a=it[n],o=i.def(c,\".\",n),s=t.block();s(\"if(\",o,\"){\",l,\".enable(\",a,\")}else{\",l,\".disable(\",a,\")}\",u,\".\",n,\"=\",o,\";\"),r(s),e(\"if(\",o,\"!==\",u,\".\",n,\"){\",s,\"}\")}),Object.keys(at).forEach(function(n){var o,s,f=at[n],h=tt[n],p=t.block();p(l,\".\",f,\"(\"),v(h)?(f=h.length,o=t.global.def(c,\".\",n),s=t.global.def(u,\".\",n),p(a(f,function(t){return o+\"[\"+t+\"]\"}),\");\",a(f,function(t){return s+\"[\"+t+\"]=\"+o+\"[\"+t+\"];\"}).join(\"\")),e(\"if(\",a(f,function(t){return o+\"[\"+t+\"]!==\"+s+\"[\"+t+\"]\"}).join(\"||\"),\"){\",p,\"}\")):(o=i.def(c,\".\",n),s=i.def(u,\".\",n),p(o,\");\",u,\".\",n,\"=\",o,\";\"),e(\"if(\",o,\"!==\",s,\"){\",p,\"}\")),r(p)}),t.compile()}(),compile:function(t,e,r,n,i){var a=b();return a.stats=a.link(i),Object.keys(e.static).forEach(function(t){X(a,e,t)}),_t.forEach(function(e){X(a,t,e)}),r=A(t,e,r,n),function(t,e){var r=t.proc(\"draw\",1);L(t,r),T(t,r,e.context),S(t,r,e.framebuffer),E(t,r,e),C(t,r,e.state),F(t,r,e,!1,!0);var n=e.shader.progVar.append(t,r);if(r(t.shared.gl,\".useProgram(\",n,\".program);\"),e.shader.program)H(t,r,e,e.shader.program);else{var i=t.global.def(\"{}\"),a=r.def(n,\".id\"),o=r.def(i,\"[\",a,\"]\");r(t.cond(o).then(o,\".call(this,a0);\").else(o,\"=\",i,\"[\",a,\"]=\",t.link(function(r){return q(H,t,e,r,1)}),\"(\",n,\");\",o,\".call(this,a0);\"))}0<Object.keys(e.state).length&&r(t.shared.current,\".dirty=true;\")}(a,r),Y(a,r),function(t,e){function r(t){return t.contextDep&&i||t.propDep}var n=t.proc(\"batch\",2);t.batchId=\"0\",L(t,n);var i=!1,a=!0;Object.keys(e.context).forEach(function(t){i=i||e.context[t].propDep}),i||(T(t,n,e.context),a=!1);var o=!1;if((s=e.framebuffer)?(s.propDep?i=o=!0:s.contextDep&&i&&(o=!0),o||S(t,n,s)):S(t,n,null),e.state.viewport&&e.state.viewport.propDep&&(i=!0),E(t,n,e),C(t,n,e.state,function(t){return!r(t)}),e.profile&&r(e.profile)||F(t,n,e,!1,\"a1\"),e.contextDep=i,e.needsContext=a,e.needsFramebuffer=o,(a=e.shader.progVar).contextDep&&i||a.propDep)W(t,n,e,null);else if(a=a.append(t,n),n(t.shared.gl,\".useProgram(\",a,\".program);\"),e.shader.program)W(t,n,e,e.shader.program);else{var s=t.global.def(\"{}\"),l=(o=n.def(a,\".id\"),n.def(s,\"[\",o,\"]\"));n(t.cond(l).then(l,\".call(this,a0,a1);\").else(l,\"=\",s,\"[\",o,\"]=\",t.link(function(r){return q(W,t,e,r,2)}),\"(\",a,\");\",l,\".call(this,a0,a1);\"))}0<Object.keys(e.state).length&&n(t.shared.current,\".dirty=true;\")}(a,r),a.compile()}}}function N(t,e){for(var r=0;r<t.length;++r)if(t[r]===e)return r;return-1}var j=function(t,e){for(var r=Object.keys(e),n=0;n<r.length;++n)t[r[n]]=e[r[n]];return t},V=0,U={DynamicVariable:t,define:function(r,n){return new t(r,e(n+\"\"))},isDynamic:function(e){return\"function\"==typeof e&&!e._reglType||e instanceof t},unbox:function(e,r){return\"function\"==typeof e?new t(0,e):e},accessor:e},q={next:\"function\"==typeof requestAnimationFrame?function(t){return requestAnimationFrame(t)}:function(t){return setTimeout(t,16)},cancel:\"function\"==typeof cancelAnimationFrame?function(t){return cancelAnimationFrame(t)}:clearTimeout},H=\"undefined\"!=typeof performance&&performance.now?function(){return performance.now()}:function(){return+new Date},G=s();G.zero=s();var W=function(t,e){var r=1;e.ext_texture_filter_anisotropic&&(r=t.getParameter(34047));var n=1,i=1;e.webgl_draw_buffers&&(n=t.getParameter(34852),i=t.getParameter(36063));var a=!!e.oes_texture_float;if(a){a=t.createTexture(),t.bindTexture(3553,a),t.texImage2D(3553,0,6408,1,1,0,6408,5126,null);var o=t.createFramebuffer();if(t.bindFramebuffer(36160,o),t.framebufferTexture2D(36160,36064,3553,a,0),t.bindTexture(3553,null),36053!==t.checkFramebufferStatus(36160))a=!1;else{t.viewport(0,0,1,1),t.clearColor(1,0,0,1),t.clear(16384);var s=G.allocType(5126,4);t.readPixels(0,0,1,1,6408,5126,s),t.getError()?a=!1:(t.deleteFramebuffer(o),t.deleteTexture(a),a=1===s[0]),G.freeType(s)}}return s=!0,s=t.createTexture(),o=G.allocType(5121,36),t.activeTexture(33984),t.bindTexture(34067,s),t.texImage2D(34069,0,6408,3,3,0,6408,5121,o),G.freeType(o),t.bindTexture(34067,null),t.deleteTexture(s),s=!t.getError(),{colorBits:[t.getParameter(3410),t.getParameter(3411),t.getParameter(3412),t.getParameter(3413)],depthBits:t.getParameter(3414),stencilBits:t.getParameter(3415),subpixelBits:t.getParameter(3408),extensions:Object.keys(e).filter(function(t){return!!e[t]}),maxAnisotropic:r,maxDrawbuffers:n,maxColorAttachments:i,pointSizeDims:t.getParameter(33901),lineWidthDims:t.getParameter(33902),maxViewportDims:t.getParameter(3386),maxCombinedTextureUnits:t.getParameter(35661),maxCubeMapSize:t.getParameter(34076),maxRenderbufferSize:t.getParameter(34024),maxTextureUnits:t.getParameter(34930),maxTextureSize:t.getParameter(3379),maxAttributes:t.getParameter(34921),maxVertexUniforms:t.getParameter(36347),maxVertexTextureUnits:t.getParameter(35660),maxVaryingVectors:t.getParameter(36348),maxFragmentUniforms:t.getParameter(36349),glsl:t.getParameter(35724),renderer:t.getParameter(7937),vendor:t.getParameter(7936),version:t.getParameter(7938),readFloat:a,npotTextureCube:s}},Y=function(t){return t instanceof Uint8Array||t instanceof Uint16Array||t instanceof Uint32Array||t instanceof Int8Array||t instanceof Int16Array||t instanceof Int32Array||t instanceof Float32Array||t instanceof Float64Array||t instanceof Uint8ClampedArray},X=function(t){return Object.keys(t).map(function(e){return t[e]})},Z={shape:function(t){for(var e=[];t.length;t=t[0])e.push(t.length);return e},flatten:function(t,e,r,n){var i=1;if(e.length)for(var a=0;a<e.length;++a)i*=e[a];else i=0;switch(r=n||G.allocType(r,i),e.length){case 0:break;case 1:for(n=e[0],e=0;e<n;++e)r[e]=t[e];break;case 2:for(n=e[0],e=e[1],a=i=0;a<n;++a)for(var o=t[a],s=0;s<e;++s)r[i++]=o[s];break;case 3:c(t,e[0],e[1],e[2],r,0);break;default:!function t(e,r,n,i,a){for(var o=1,s=n+1;s<r.length;++s)o*=r[s];var l=r[n];if(4==r.length-n){var u=r[n+1],f=r[n+2];for(r=r[n+3],s=0;s<l;++s)c(e[s],u,f,r,i,a),a+=o}else for(s=0;s<l;++s)t(e[s],r,n+1,i,a),a+=o}(t,e,0,r,0)}return r}},$={\"[object Int8Array]\":5120,\"[object Int16Array]\":5122,\"[object Int32Array]\":5124,\"[object Uint8Array]\":5121,\"[object Uint8ClampedArray]\":5121,\"[object Uint16Array]\":5123,\"[object Uint32Array]\":5125,\"[object Float32Array]\":5126,\"[object Float64Array]\":5121,\"[object ArrayBuffer]\":5121},J={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},K={dynamic:35048,stream:35040,static:35044},Q=Z.flatten,tt=Z.shape,et=[];et[5120]=1,et[5122]=2,et[5124]=4,et[5121]=1,et[5123]=2,et[5125]=4,et[5126]=4;var rt={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,\"line loop\":2,\"line strip\":3,\"triangle strip\":5,\"triangle fan\":6},nt=new Float32Array(1),it=new Uint32Array(nt.buffer),at=[9984,9986,9985,9987],ot=[0,6409,6410,6407,6408],st={};st[6409]=st[6406]=st[6402]=1,st[34041]=st[6410]=2,st[6407]=st[35904]=3,st[6408]=st[35906]=4;var lt=m(\"HTMLCanvasElement\"),ct=m(\"CanvasRenderingContext2D\"),ut=m(\"ImageBitmap\"),ft=m(\"HTMLImageElement\"),ht=m(\"HTMLVideoElement\"),pt=Object.keys($).concat([lt,ct,ut,ft,ht]),dt=[];dt[5121]=1,dt[5126]=4,dt[36193]=2,dt[5123]=2,dt[5125]=4;var gt=[];gt[32854]=2,gt[32855]=2,gt[36194]=2,gt[34041]=4,gt[33776]=.5,gt[33777]=.5,gt[33778]=1,gt[33779]=1,gt[35986]=.5,gt[35987]=1,gt[34798]=1,gt[35840]=.5,gt[35841]=.25,gt[35842]=.5,gt[35843]=.25,gt[36196]=.5;var vt=[];vt[32854]=2,vt[32855]=2,vt[36194]=2,vt[33189]=2,vt[36168]=1,vt[34041]=4,vt[35907]=4,vt[34836]=16,vt[34842]=8,vt[34843]=6;var mt=function(t,e,r,n,i){function a(t){this.id=c++,this.refCount=1,this.renderbuffer=t,this.format=32854,this.height=this.width=0,i.profile&&(this.stats={size:0})}function o(e){var r=e.renderbuffer;t.bindRenderbuffer(36161,null),t.deleteRenderbuffer(r),e.renderbuffer=null,e.refCount=0,delete u[e.id],n.renderbufferCount--}var s={rgba4:32854,rgb565:36194,\"rgb5 a1\":32855,depth:33189,stencil:36168,\"depth stencil\":34041};e.ext_srgb&&(s.srgba=35907),e.ext_color_buffer_half_float&&(s.rgba16f=34842,s.rgb16f=34843),e.webgl_color_buffer_float&&(s.rgba32f=34836);var l=[];Object.keys(s).forEach(function(t){l[s[t]]=t});var c=0,u={};return a.prototype.decRef=function(){0>=--this.refCount&&o(this)},i.profile&&(n.getTotalRenderbufferSize=function(){var t=0;return Object.keys(u).forEach(function(e){t+=u[e].stats.size}),t}),{create:function(e,r){function o(e,r){var n=0,a=0,u=32854;if(\"object\"==typeof e&&e?(\"shape\"in e?(n=0|(a=e.shape)[0],a=0|a[1]):(\"radius\"in e&&(n=a=0|e.radius),\"width\"in e&&(n=0|e.width),\"height\"in e&&(a=0|e.height)),\"format\"in e&&(u=s[e.format])):\"number\"==typeof e?(n=0|e,a=\"number\"==typeof r?0|r:n):e||(n=a=1),n!==c.width||a!==c.height||u!==c.format)return o.width=c.width=n,o.height=c.height=a,c.format=u,t.bindRenderbuffer(36161,c.renderbuffer),t.renderbufferStorage(36161,u,n,a),i.profile&&(c.stats.size=vt[c.format]*c.width*c.height),o.format=l[c.format],o}var c=new a(t.createRenderbuffer());return u[c.id]=c,n.renderbufferCount++,o(e,r),o.resize=function(e,r){var n=0|e,a=0|r||n;return n===c.width&&a===c.height?o:(o.width=c.width=n,o.height=c.height=a,t.bindRenderbuffer(36161,c.renderbuffer),t.renderbufferStorage(36161,c.format,n,a),i.profile&&(c.stats.size=vt[c.format]*c.width*c.height),o)},o._reglType=\"renderbuffer\",o._renderbuffer=c,i.profile&&(o.stats=c.stats),o.destroy=function(){c.decRef()},o},clear:function(){X(u).forEach(o)},restore:function(){X(u).forEach(function(e){e.renderbuffer=t.createRenderbuffer(),t.bindRenderbuffer(36161,e.renderbuffer),t.renderbufferStorage(36161,e.format,e.width,e.height)}),t.bindRenderbuffer(36161,null)}}},yt=[];yt[6408]=4,yt[6407]=3;var xt=[];xt[5121]=1,xt[5126]=4,xt[36193]=2;var bt=[\"x\",\"y\",\"z\",\"w\"],_t=\"blend.func blend.equation stencil.func stencil.opFront stencil.opBack sample.coverage viewport scissor.box polygonOffset.offset\".split(\" \"),wt={0:0,1:1,zero:0,one:1,\"src color\":768,\"one minus src color\":769,\"src alpha\":770,\"one minus src alpha\":771,\"dst color\":774,\"one minus dst color\":775,\"dst alpha\":772,\"one minus dst alpha\":773,\"constant color\":32769,\"one minus constant color\":32770,\"constant alpha\":32771,\"one minus constant alpha\":32772,\"src alpha saturate\":776},kt={never:512,less:513,\"<\":513,equal:514,\"=\":514,\"==\":514,\"===\":514,lequal:515,\"<=\":515,greater:516,\">\":516,notequal:517,\"!=\":517,\"!==\":517,gequal:518,\">=\":518,always:519},Mt={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,\"increment wrap\":34055,\"decrement wrap\":34056,invert:5386},At={cw:2304,ccw:2305},Tt=new P(!1,!1,!1,function(){});return function(t){function e(){if(0===Z.length)w&&w.update(),Q=null;else{Q=q.next(e),f();for(var t=Z.length-1;0<=t;--t){var r=Z[t];r&&r(z,null,0)}v.flush(),w&&w.update()}}function r(){!Q&&0<Z.length&&(Q=q.next(e))}function n(){Q&&(q.cancel(e),Q=null)}function a(t){t.preventDefault(),n(),$.forEach(function(t){t()})}function o(t){v.getError(),y.restore(),D.restore(),I.restore(),R.restore(),B.restore(),V.restore(),w&&w.restore(),G.procs.refresh(),r(),J.forEach(function(t){t()})}function s(t){function e(t){var e={},r={};return Object.keys(t).forEach(function(n){var i=t[n];U.isDynamic(i)?r[n]=U.unbox(i,n):e[n]=i}),{dynamic:r,static:e}}var r=e(t.context||{}),n=e(t.uniforms||{}),i=e(t.attributes||{}),a=e(function(t){function e(t){if(t in r){var e=r[t];delete r[t],Object.keys(e).forEach(function(n){r[t+\".\"+n]=e[n]})}}var r=j({},t);return delete r.uniforms,delete r.attributes,delete r.context,\"stencil\"in r&&r.stencil.op&&(r.stencil.opBack=r.stencil.opFront=r.stencil.op,delete r.stencil.op),e(\"blend\"),e(\"depth\"),e(\"cull\"),e(\"stencil\"),e(\"polygonOffset\"),e(\"scissor\"),e(\"sample\"),r}(t));t={gpuTime:0,cpuTime:0,count:0};var o=(r=G.compile(a,i,n,r,t)).draw,s=r.batch,l=r.scope,c=[];return j(function(t,e){var r;if(\"function\"==typeof t)return l.call(this,null,t,0);if(\"function\"==typeof e)if(\"number\"==typeof t)for(r=0;r<t;++r)l.call(this,null,e,r);else{if(!Array.isArray(t))return l.call(this,t,e,0);for(r=0;r<t.length;++r)l.call(this,t[r],e,r)}else if(\"number\"==typeof t){if(0<t)return s.call(this,function(t){for(;c.length<t;)c.push(null);return c}(0|t),0|t)}else{if(!Array.isArray(t))return o.call(this,t);if(t.length)return s.call(this,t,t.length)}},{stats:t})}function l(t,e){var r=0;G.procs.poll();var n=e.color;n&&(v.clearColor(+n[0]||0,+n[1]||0,+n[2]||0,+n[3]||0),r|=16384),\"depth\"in e&&(v.clearDepth(+e.depth),r|=256),\"stencil\"in e&&(v.clearStencil(0|e.stencil),r|=1024),v.clear(r)}function c(t){return Z.push(t),r(),{cancel:function(){var e=N(Z,t);Z[e]=function t(){var e=N(Z,t);Z[e]=Z[Z.length-1],--Z.length,0>=Z.length&&n()}}}}function u(){var t=Y.viewport,e=Y.scissor_box;t[0]=t[1]=e[0]=e[1]=0,z.viewportWidth=z.framebufferWidth=z.drawingBufferWidth=t[2]=e[2]=v.drawingBufferWidth,z.viewportHeight=z.framebufferHeight=z.drawingBufferHeight=t[3]=e[3]=v.drawingBufferHeight}function f(){z.tick+=1,z.time=g(),u(),G.procs.poll()}function h(){u(),G.procs.refresh(),w&&w.update()}function g(){return(H()-k)/1e3}if(!(t=i(t)))return null;var v=t.gl,m=v.getContextAttributes();v.isContextLost();var y=function(t,e){function r(e){var r;e=e.toLowerCase();try{r=n[e]=t.getExtension(e)}catch(t){}return!!r}for(var n={},i=0;i<e.extensions.length;++i){var a=e.extensions[i];if(!r(a))return e.onDestroy(),e.onDone('\"'+a+'\" extension is not supported by the current WebGL context, try upgrading your system or a different browser'),null}return e.optionalExtensions.forEach(r),{extensions:n,restore:function(){Object.keys(n).forEach(function(t){if(!r(t))throw Error(\"(regl): error restoring extension \"+t)})}}}(v,t);if(!y)return null;var x=function(){var t={\"\":0},e=[\"\"];return{id:function(r){var n=t[r];return n||(n=t[r]=e.length,e.push(r),n)},str:function(t){return e[t]}}}(),b={bufferCount:0,elementsCount:0,framebufferCount:0,shaderCount:0,textureCount:0,cubeCount:0,renderbufferCount:0,maxTextureUnits:0},_=y.extensions,w=function(t,e){function r(){this.endQueryIndex=this.startQueryIndex=-1,this.sum=0,this.stats=null}function n(t,e,n){var i=s.pop()||new r;i.startQueryIndex=t,i.endQueryIndex=e,i.sum=0,i.stats=n,l.push(i)}var i=e.ext_disjoint_timer_query;if(!i)return null;var a=[],o=[],s=[],l=[],c=[],u=[];return{beginQuery:function(t){var e=a.pop()||i.createQueryEXT();i.beginQueryEXT(35007,e),o.push(e),n(o.length-1,o.length,t)},endQuery:function(){i.endQueryEXT(35007)},pushScopeStats:n,update:function(){var t,e;if(0!==(t=o.length)){u.length=Math.max(u.length,t+1),c.length=Math.max(c.length,t+1),c[0]=0;var r=u[0]=0;for(e=t=0;e<o.length;++e){var n=o[e];i.getQueryObjectEXT(n,34919)?(r+=i.getQueryObjectEXT(n,34918),a.push(n)):o[t++]=n,c[e+1]=r,u[e+1]=t}for(o.length=t,e=t=0;e<l.length;++e){var f=(r=l[e]).startQueryIndex;n=r.endQueryIndex,r.sum+=c[n]-c[f],f=u[f],(n=u[n])===f?(r.stats.gpuTime+=r.sum/1e6,s.push(r)):(r.startQueryIndex=f,r.endQueryIndex=n,l[t++]=r)}l.length=t}},getNumPendingQueries:function(){return o.length},clear:function(){a.push.apply(a,o);for(var t=0;t<a.length;t++)i.deleteQueryEXT(a[t]);o.length=0,a.length=0},restore:function(){o.length=0,a.length=0}}}(0,_),k=H(),C=v.drawingBufferWidth,L=v.drawingBufferHeight,z={tick:0,time:0,viewportWidth:C,viewportHeight:L,framebufferWidth:C,framebufferHeight:L,drawingBufferWidth:C,drawingBufferHeight:L,pixelRatio:t.pixelRatio},O=W(v,_),I=(C=function(t,e,r,n){for(t=r.maxAttributes,e=Array(t),r=0;r<t;++r)e[r]=new T;return{Record:T,scope:{},state:e}}(v,_,O),p(v,b,t,C)),P=d(v,_,I,b),D=S(v,x,b,t),R=M(v,_,O,function(){G.procs.poll()},z,b,t),B=mt(v,_,0,b,t),V=A(v,_,O,R,B,b),G=F(v,x,_,O,I,P,0,V,{},C,D,{elements:null,primitive:4,count:-1,offset:0,instances:-1},z,w,t),Y=(x=E(v,V,G.procs.poll,z),G.next),X=v.canvas,Z=[],$=[],J=[],K=[t.onDestroy],Q=null;X&&(X.addEventListener(\"webglcontextlost\",a,!1),X.addEventListener(\"webglcontextrestored\",o,!1));var tt=V.setFBO=s({framebuffer:U.define.call(null,1,\"framebuffer\")});return h(),m=j(s,{clear:function(t){if(\"framebuffer\"in t)if(t.framebuffer&&\"framebufferCube\"===t.framebuffer_reglType)for(var e=0;6>e;++e)tt(j({framebuffer:t.framebuffer.faces[e]},t),l);else tt(t,l);else l(0,t)},prop:U.define.bind(null,1),context:U.define.bind(null,2),this:U.define.bind(null,3),draw:s({}),buffer:function(t){return I.create(t,34962,!1,!1)},elements:function(t){return P.create(t,!1)},texture:R.create2D,cube:R.createCube,renderbuffer:B.create,framebuffer:V.create,framebufferCube:V.createCube,attributes:m,frame:c,on:function(t,e){var r;switch(t){case\"frame\":return c(e);case\"lost\":r=$;break;case\"restore\":r=J;break;case\"destroy\":r=K}return r.push(e),{cancel:function(){for(var t=0;t<r.length;++t)if(r[t]===e){r[t]=r[r.length-1],r.pop();break}}}},limits:O,hasExtension:function(t){return 0<=O.extensions.indexOf(t.toLowerCase())},read:x,destroy:function(){Z.length=0,n(),X&&(X.removeEventListener(\"webglcontextlost\",a),X.removeEventListener(\"webglcontextrestored\",o)),D.clear(),V.clear(),B.clear(),R.clear(),P.clear(),I.clear(),w&&w.clear(),K.forEach(function(t){t()})},_gl:v,_refresh:h,poll:function(){f(),w&&w.update()},now:g,stats:b}),t.onDone(null,m),m}},\"object\"==typeof r&&\"undefined\"!=typeof e?e.exports=i():n.createREGL=i()},{}],479:[function(t,e,r){\"use strict\";var n,i=\"\";e.exports=function(t,e){if(\"string\"!=typeof t)throw new TypeError(\"expected a string\");if(1===e)return t;if(2===e)return t+t;var r=t.length*e;if(n!==t||\"undefined\"==typeof n)n=t,i=\"\";else if(i.length>=r)return i.substr(0,r);for(;r>i.length&&e>1;)1&e&&(i+=t),e>>=1,t+=t;return i=(i+=t).substr(0,r)}},{}],480:[function(t,e,r){(function(t){e.exports=t.performance&&t.performance.now?function(){return performance.now()}:Date.now||function(){return+new Date}}).call(this,\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{}],481:[function(t,e,r){\"use strict\";e.exports=function(t){for(var e=t.length,r=t[t.length-1],n=e,i=e-2;i>=0;--i){var a=r,o=t[i],s=(r=a+o)-a,l=o-s;l&&(t[--n]=r,r=l)}for(var c=0,i=n;i<e;++i){var a=t[i],o=r,s=(r=a+o)-a,l=o-s;l&&(t[c++]=l)}return t[c++]=r,t.length=c,t}},{}],482:[function(t,e,r){\"use strict\";var n=t(\"two-product\"),i=t(\"robust-sum\"),a=t(\"robust-scale\"),o=t(\"robust-compress\"),s=6;function l(t,e){for(var r=new Array(t.length-1),n=1;n<t.length;++n)for(var i=r[n-1]=new Array(t.length-1),a=0,o=0;a<t.length;++a)a!==e&&(i[o++]=t[n][a]);return r}function c(t){if(2===t.length)return[\"sum(prod(\",t[0][0],\",\",t[1][1],\"),prod(-\",t[0][1],\",\",t[1][0],\"))\"].join(\"\");for(var e=[],r=0;r<t.length;++r)e.push([\"scale(\",c(l(t,r)),\",\",(n=r,1&n?\"-\":\"\"),t[0][r],\")\"].join(\"\"));return function t(e){if(1===e.length)return e[0];if(2===e.length)return[\"sum(\",e[0],\",\",e[1],\")\"].join(\"\");var r=e.length>>1;return[\"sum(\",t(e.slice(0,r)),\",\",t(e.slice(r)),\")\"].join(\"\")}(e);var n}function u(t){return new Function(\"sum\",\"scale\",\"prod\",\"compress\",[\"function robustDeterminant\",t,\"(m){return compress(\",c(function(t){for(var e=new Array(t),r=0;r<t;++r){e[r]=new Array(t);for(var n=0;n<t;++n)e[r][n]=[\"m[\",r,\"][\",n,\"]\"].join(\"\")}return e}(t)),\")};return robustDeterminant\",t].join(\"\"))(i,a,n,o)}var f=[function(){return[0]},function(t){return[t[0][0]]}];!function(){for(;f.length<s;)f.push(u(f.length));for(var t=[],r=[\"function robustDeterminant(m){switch(m.length){\"],n=0;n<s;++n)t.push(\"det\"+n),r.push(\"case \",n,\":return det\",n,\"(m);\");r.push(\"}var det=CACHE[m.length];if(!det)det=CACHE[m.length]=gen(m.length);return det(m);}return robustDeterminant\"),t.push(\"CACHE\",\"gen\",r.join(\"\"));var i=Function.apply(void 0,t);for(e.exports=i.apply(void 0,f.concat([f,u])),n=0;n<f.length;++n)e.exports[n]=f[n]}()},{\"robust-compress\":481,\"robust-scale\":488,\"robust-sum\":491,\"two-product\":520}],483:[function(t,e,r){\"use strict\";var n=t(\"two-product\"),i=t(\"robust-sum\");e.exports=function(t,e){for(var r=n(t[0],e[0]),a=1;a<t.length;++a)r=i(r,n(t[a],e[a]));return r}},{\"robust-sum\":491,\"two-product\":520}],484:[function(t,e,r){\"use strict\";var n=t(\"two-product\"),i=t(\"robust-sum\"),a=t(\"robust-subtract\"),o=t(\"robust-scale\"),s=6;function l(t,e){for(var r=new Array(t.length-1),n=1;n<t.length;++n)for(var i=r[n-1]=new Array(t.length-1),a=0,o=0;a<t.length;++a)a!==e&&(i[o++]=t[n][a]);return r}function c(t){if(1===t.length)return t[0];if(2===t.length)return[\"sum(\",t[0],\",\",t[1],\")\"].join(\"\");var e=t.length>>1;return[\"sum(\",c(t.slice(0,e)),\",\",c(t.slice(e)),\")\"].join(\"\")}function u(t,e){if(\"m\"===t.charAt(0)){if(\"w\"===e.charAt(0)){var r=t.split(\"[\");return[\"w\",e.substr(1),\"m\",r[0].substr(1)].join(\"\")}return[\"prod(\",t,\",\",e,\")\"].join(\"\")}return u(e,t)}function f(t){if(2===t.length)return[[\"diff(\",u(t[0][0],t[1][1]),\",\",u(t[1][0],t[0][1]),\")\"].join(\"\")];for(var e=[],r=0;r<t.length;++r)e.push([\"scale(\",c(f(l(t,r))),\",\",(n=r,!0&n?\"-\":\"\"),t[0][r],\")\"].join(\"\"));return e;var n}function h(t,e){for(var r=[],n=0;n<e-2;++n)r.push([\"prod(m\",t,\"[\",n,\"],m\",t,\"[\",n,\"])\"].join(\"\"));return c(r)}function p(t){for(var e=[],r=[],s=function(t){for(var e=new Array(t),r=0;r<t;++r){e[r]=new Array(t);for(var n=0;n<t;++n)e[r][n]=[\"m\",n,\"[\",t-r-2,\"]\"].join(\"\")}return e}(t),u=0;u<t;++u)s[0][u]=\"1\",s[t-1][u]=\"w\"+u;for(u=0;u<t;++u)0==(1&u)?e.push.apply(e,f(l(s,u))):r.push.apply(r,f(l(s,u)));var p=c(e),d=c(r),g=\"exactInSphere\"+t,v=[];for(u=0;u<t;++u)v.push(\"m\"+u);var m=[\"function \",g,\"(\",v.join(),\"){\"];for(u=0;u<t;++u){m.push(\"var w\",u,\"=\",h(u,t),\";\");for(var y=0;y<t;++y)y!==u&&m.push(\"var w\",u,\"m\",y,\"=scale(w\",u,\",m\",y,\"[0]);\")}return m.push(\"var p=\",p,\",n=\",d,\",d=diff(p,n);return d[d.length-1];}return \",g),new Function(\"sum\",\"diff\",\"prod\",\"scale\",m.join(\"\"))(i,a,n,o)}var d=[function(){return 0},function(){return 0},function(){return 0}];!function(){for(;d.length<=s;)d.push(p(d.length));for(var t=[],r=[\"slow\"],n=0;n<=s;++n)t.push(\"a\"+n),r.push(\"o\"+n);var i=[\"function testInSphere(\",t.join(),\"){switch(arguments.length){case 0:case 1:return 0;\"];for(n=2;n<=s;++n)i.push(\"case \",n,\":return o\",n,\"(\",t.slice(0,n).join(),\");\");i.push(\"}var s=new Array(arguments.length);for(var i=0;i<arguments.length;++i){s[i]=arguments[i]};return slow(s);}return testInSphere\"),r.push(i.join(\"\"));var a=Function.apply(void 0,r);for(e.exports=a.apply(void 0,[function(t){var e=d[t.length];return e||(e=d[t.length]=p(t.length)),e.apply(void 0,t)}].concat(d)),n=0;n<=s;++n)e.exports[n]=d[n]}()},{\"robust-scale\":488,\"robust-subtract\":490,\"robust-sum\":491,\"two-product\":520}],485:[function(t,e,r){\"use strict\";var n=t(\"robust-determinant\"),i=6;function a(t){for(var e=\"robustLinearSolve\"+t+\"d\",r=[\"function \",e,\"(A,b){return [\"],i=0;i<t;++i){r.push(\"det([\");for(var a=0;a<t;++a){a>0&&r.push(\",\"),r.push(\"[\");for(var o=0;o<t;++o)o>0&&r.push(\",\"),o===i?r.push(\"+b[\",a,\"]\"):r.push(\"+A[\",a,\"][\",o,\"]\");r.push(\"]\")}r.push(\"]),\")}r.push(\"det(A)]}return \",e);var s=new Function(\"det\",r.join(\"\"));return s(t<6?n[t]:n)}var o=[function(){return[0]},function(t,e){return[[e[0]],[t[0][0]]]}];!function(){for(;o.length<i;)o.push(a(o.length));for(var t=[],r=[\"function dispatchLinearSolve(A,b){switch(A.length){\"],n=0;n<i;++n)t.push(\"s\"+n),r.push(\"case \",n,\":return s\",n,\"(A,b);\");r.push(\"}var s=CACHE[A.length];if(!s)s=CACHE[A.length]=g(A.length);return s(A,b)}return dispatchLinearSolve\"),t.push(\"CACHE\",\"g\",r.join(\"\"));var s=Function.apply(void 0,t);for(e.exports=s.apply(void 0,o.concat([o,a])),n=0;n<i;++n)e.exports[n]=o[n]}()},{\"robust-determinant\":482}],486:[function(t,e,r){\"use strict\";var n=t(\"two-product\"),i=t(\"robust-sum\"),a=t(\"robust-scale\"),o=t(\"robust-subtract\"),s=5;function l(t,e){for(var r=new Array(t.length-1),n=1;n<t.length;++n)for(var i=r[n-1]=new Array(t.length-1),a=0,o=0;a<t.length;++a)a!==e&&(i[o++]=t[n][a]);return r}function c(t){if(1===t.length)return t[0];if(2===t.length)return[\"sum(\",t[0],\",\",t[1],\")\"].join(\"\");var e=t.length>>1;return[\"sum(\",c(t.slice(0,e)),\",\",c(t.slice(e)),\")\"].join(\"\")}function u(t){if(2===t.length)return[[\"sum(prod(\",t[0][0],\",\",t[1][1],\"),prod(-\",t[0][1],\",\",t[1][0],\"))\"].join(\"\")];for(var e=[],r=0;r<t.length;++r)e.push([\"scale(\",c(u(l(t,r))),\",\",(n=r,1&n?\"-\":\"\"),t[0][r],\")\"].join(\"\"));return e;var n}function f(t){for(var e=[],r=[],s=function(t){for(var e=new Array(t),r=0;r<t;++r){e[r]=new Array(t);for(var n=0;n<t;++n)e[r][n]=[\"m\",n,\"[\",t-r-1,\"]\"].join(\"\")}return e}(t),f=[],h=0;h<t;++h)0==(1&h)?e.push.apply(e,u(l(s,h))):r.push.apply(r,u(l(s,h))),f.push(\"m\"+h);var p=c(e),d=c(r),g=\"orientation\"+t+\"Exact\",v=[\"function \",g,\"(\",f.join(),\"){var p=\",p,\",n=\",d,\",d=sub(p,n);return d[d.length-1];};return \",g].join(\"\");return new Function(\"sum\",\"prod\",\"scale\",\"sub\",v)(i,n,a,o)}var h=f(3),p=f(4),d=[function(){return 0},function(){return 0},function(t,e){return e[0]-t[0]},function(t,e,r){var n,i=(t[1]-r[1])*(e[0]-r[0]),a=(t[0]-r[0])*(e[1]-r[1]),o=i-a;if(i>0){if(a<=0)return o;n=i+a}else{if(!(i<0))return o;if(a>=0)return o;n=-(i+a)}var s=3.3306690738754716e-16*n;return o>=s||o<=-s?o:h(t,e,r)},function(t,e,r,n){var i=t[0]-n[0],a=e[0]-n[0],o=r[0]-n[0],s=t[1]-n[1],l=e[1]-n[1],c=r[1]-n[1],u=t[2]-n[2],f=e[2]-n[2],h=r[2]-n[2],d=a*c,g=o*l,v=o*s,m=i*c,y=i*l,x=a*s,b=u*(d-g)+f*(v-m)+h*(y-x),_=7.771561172376103e-16*((Math.abs(d)+Math.abs(g))*Math.abs(u)+(Math.abs(v)+Math.abs(m))*Math.abs(f)+(Math.abs(y)+Math.abs(x))*Math.abs(h));return b>_||-b>_?b:p(t,e,r,n)}];!function(){for(;d.length<=s;)d.push(f(d.length));for(var t=[],r=[\"slow\"],n=0;n<=s;++n)t.push(\"a\"+n),r.push(\"o\"+n);var i=[\"function getOrientation(\",t.join(),\"){switch(arguments.length){case 0:case 1:return 0;\"];for(n=2;n<=s;++n)i.push(\"case \",n,\":return o\",n,\"(\",t.slice(0,n).join(),\");\");i.push(\"}var s=new Array(arguments.length);for(var i=0;i<arguments.length;++i){s[i]=arguments[i]};return slow(s);}return getOrientation\"),r.push(i.join(\"\"));var a=Function.apply(void 0,r);for(e.exports=a.apply(void 0,[function(t){var e=d[t.length];return e||(e=d[t.length]=f(t.length)),e.apply(void 0,t)}].concat(d)),n=0;n<=s;++n)e.exports[n]=d[n]}()},{\"robust-scale\":488,\"robust-subtract\":490,\"robust-sum\":491,\"two-product\":520}],487:[function(t,e,r){\"use strict\";var n=t(\"robust-sum\"),i=t(\"robust-scale\");e.exports=function(t,e){if(1===t.length)return i(e,t[0]);if(1===e.length)return i(t,e[0]);if(0===t.length||0===e.length)return[0];var r=[0];if(t.length<e.length)for(var a=0;a<t.length;++a)r=n(r,i(e,t[a]));else for(var a=0;a<e.length;++a)r=n(r,i(t,e[a]));return r}},{\"robust-scale\":488,\"robust-sum\":491}],488:[function(t,e,r){\"use strict\";var n=t(\"two-product\"),i=t(\"two-sum\");e.exports=function(t,e){var r=t.length;if(1===r){var a=n(t[0],e);return a[0]?a:[a[1]]}var o=new Array(2*r),s=[.1,.1],l=[.1,.1],c=0;n(t[0],e,s),s[0]&&(o[c++]=s[0]);for(var u=1;u<r;++u){n(t[u],e,l);var f=s[1];i(f,l[0],s),s[0]&&(o[c++]=s[0]);var h=l[1],p=s[1],d=h+p,g=d-h,v=p-g;s[1]=d,v&&(o[c++]=v)}s[1]&&(o[c++]=s[1]);0===c&&(o[c++]=0);return o.length=c,o}},{\"two-product\":520,\"two-sum\":521}],489:[function(t,e,r){\"use strict\";e.exports=function(t,e,r,i){var a=n(t,r,i),o=n(e,r,i);if(a>0&&o>0||a<0&&o<0)return!1;var s=n(r,t,e),l=n(i,t,e);if(s>0&&l>0||s<0&&l<0)return!1;if(0===a&&0===o&&0===s&&0===l)return function(t,e,r,n){for(var i=0;i<2;++i){var a=t[i],o=e[i],s=Math.min(a,o),l=Math.max(a,o),c=r[i],u=n[i],f=Math.min(c,u),h=Math.max(c,u);if(h<s||l<f)return!1}return!0}(t,e,r,i);return!0};var n=t(\"robust-orientation\")[3]},{\"robust-orientation\":486}],490:[function(t,e,r){\"use strict\";e.exports=function(t,e){var r=0|t.length,n=0|e.length;if(1===r&&1===n)return function(t,e){var r=t+e,n=r-t,i=t-(r-n)+(e-n);if(i)return[i,r];return[r]}(t[0],-e[0]);var i,a,o=new Array(r+n),s=0,l=0,c=0,u=Math.abs,f=t[l],h=u(f),p=-e[c],d=u(p);h<d?(a=f,(l+=1)<r&&(f=t[l],h=u(f))):(a=p,(c+=1)<n&&(p=-e[c],d=u(p)));l<r&&h<d||c>=n?(i=f,(l+=1)<r&&(f=t[l],h=u(f))):(i=p,(c+=1)<n&&(p=-e[c],d=u(p)));var g,v,m=i+a,y=m-i,x=a-y,b=x,_=m;for(;l<r&&c<n;)h<d?(i=f,(l+=1)<r&&(f=t[l],h=u(f))):(i=p,(c+=1)<n&&(p=-e[c],d=u(p))),(x=(a=b)-(y=(m=i+a)-i))&&(o[s++]=x),b=_-((g=_+m)-(v=g-_))+(m-v),_=g;for(;l<r;)(x=(a=b)-(y=(m=(i=f)+a)-i))&&(o[s++]=x),b=_-((g=_+m)-(v=g-_))+(m-v),_=g,(l+=1)<r&&(f=t[l]);for(;c<n;)(x=(a=b)-(y=(m=(i=p)+a)-i))&&(o[s++]=x),b=_-((g=_+m)-(v=g-_))+(m-v),_=g,(c+=1)<n&&(p=-e[c]);b&&(o[s++]=b);_&&(o[s++]=_);s||(o[s++]=0);return o.length=s,o}},{}],491:[function(t,e,r){\"use strict\";e.exports=function(t,e){var r=0|t.length,n=0|e.length;if(1===r&&1===n)return function(t,e){var r=t+e,n=r-t,i=t-(r-n)+(e-n);if(i)return[i,r];return[r]}(t[0],e[0]);var i,a,o=new Array(r+n),s=0,l=0,c=0,u=Math.abs,f=t[l],h=u(f),p=e[c],d=u(p);h<d?(a=f,(l+=1)<r&&(f=t[l],h=u(f))):(a=p,(c+=1)<n&&(p=e[c],d=u(p)));l<r&&h<d||c>=n?(i=f,(l+=1)<r&&(f=t[l],h=u(f))):(i=p,(c+=1)<n&&(p=e[c],d=u(p)));var g,v,m=i+a,y=m-i,x=a-y,b=x,_=m;for(;l<r&&c<n;)h<d?(i=f,(l+=1)<r&&(f=t[l],h=u(f))):(i=p,(c+=1)<n&&(p=e[c],d=u(p))),(x=(a=b)-(y=(m=i+a)-i))&&(o[s++]=x),b=_-((g=_+m)-(v=g-_))+(m-v),_=g;for(;l<r;)(x=(a=b)-(y=(m=(i=f)+a)-i))&&(o[s++]=x),b=_-((g=_+m)-(v=g-_))+(m-v),_=g,(l+=1)<r&&(f=t[l]);for(;c<n;)(x=(a=b)-(y=(m=(i=p)+a)-i))&&(o[s++]=x),b=_-((g=_+m)-(v=g-_))+(m-v),_=g,(c+=1)<n&&(p=e[c]);b&&(o[s++]=b);_&&(o[s++]=_);s||(o[s++]=0);return o.length=s,o}},{}],492:[function(t,e,r){\"use strict\";e.exports=function(t){return t<0?-1:t>0?1:0}},{}],493:[function(t,e,r){\"use strict\";e.exports=function(t){return i(n(t))};var n=t(\"boundary-cells\"),i=t(\"reduce-simplicial-complex\")},{\"boundary-cells\":83,\"reduce-simplicial-complex\":472}],494:[function(t,e,r){\"use strict\";e.exports=function(t,e,r,s){r=r||0,\"undefined\"==typeof s&&(s=function(t){for(var e=t.length,r=0,n=0;n<e;++n)r=0|Math.max(r,t[n].length);return r-1}(t));if(0===t.length||s<1)return{cells:[],vertexIds:[],vertexWeights:[]};var l=function(t,e){for(var r=t.length,n=i.mallocUint8(r),a=0;a<r;++a)n[a]=t[a]<e|0;return n}(e,+r),c=function(t,e){for(var r=t.length,o=e*(e+1)/2*r|0,s=i.mallocUint32(2*o),l=0,c=0;c<r;++c)for(var u=t[c],e=u.length,f=0;f<e;++f)for(var h=0;h<f;++h){var p=u[h],d=u[f];s[l++]=0|Math.min(p,d),s[l++]=0|Math.max(p,d)}a(n(s,[l/2|0,2]));for(var g=2,c=2;c<l;c+=2)s[c-2]===s[c]&&s[c-1]===s[c+1]||(s[g++]=s[c],s[g++]=s[c+1]);return n(s,[g/2|0,2])}(t,s),u=function(t,e,r,a){for(var o=t.data,s=t.shape[0],l=i.mallocDouble(s),c=0,u=0;u<s;++u){var f=o[2*u],h=o[2*u+1];if(r[f]!==r[h]){var p=e[f],d=e[h];o[2*c]=f,o[2*c+1]=h,l[c++]=(d-a)/(d-p)}}return t.shape[0]=c,n(l,[c])}(c,e,l,+r),f=function(t,e){var r=i.mallocInt32(2*e),n=t.shape[0],a=t.data;r[0]=0;for(var o=0,s=0;s<n;++s){var l=a[2*s];if(l!==o){for(r[2*o+1]=s;++o<l;)r[2*o]=s,r[2*o+1]=s;r[2*o]=s}}r[2*o+1]=n;for(;++o<e;)r[2*o]=r[2*o+1]=n;return r}(c,0|e.length),h=o(s)(t,c.data,f,l),p=function(t){for(var e=0|t.shape[0],r=t.data,n=new Array(e),i=0;i<e;++i)n[i]=[r[2*i],r[2*i+1]];return n}(c),d=[].slice.call(u.data,0,u.shape[0]);return i.free(l),i.free(c.data),i.free(u.data),i.free(f),{cells:h,vertexIds:p,vertexWeights:d}};var n=t(\"ndarray\"),i=t(\"typedarray-pool\"),a=t(\"ndarray-sort\"),o=t(\"./lib/codegen\")},{\"./lib/codegen\":495,ndarray:433,\"ndarray-sort\":431,\"typedarray-pool\":522}],495:[function(t,e,r){\"use strict\";e.exports=function(t){var e=a[t];e||(e=a[t]=function(t){var e=0,r=new Array(t+1);r[0]=[[]];for(var a=1;a<=t;++a)for(var o=r[a]=i(a),s=0;s<o.length;++s)e=Math.max(e,o[a].length);var l=[\"function B(C,E,i,j){\",\"var a=Math.min(i,j)|0,b=Math.max(i,j)|0,l=C[2*a],h=C[2*a+1];\",\"while(l<h){\",\"var m=(l+h)>>1,v=E[2*m+1];\",\"if(v===b){return m}\",\"if(b<v){h=m}else{l=m+1}\",\"}\",\"return l;\",\"};\",\"function getContour\",t,\"d(F,E,C,S){\",\"var n=F.length,R=[];\",\"for(var i=0;i<n;++i){var c=F[i],l=c.length;\"];function c(t){if(!(t.length<=0)){l.push(\"R.push(\");for(var e=0;e<t.length;++e){var r=t[e];e>0&&l.push(\",\"),l.push(\"[\");for(var n=0;n<r.length;++n){var i=r[n];n>0&&l.push(\",\"),l.push(\"B(C,E,c[\",i[0],\"],c[\",i[1],\"])\")}l.push(\"]\")}l.push(\");\")}}for(var a=t+1;a>1;--a){a<t+1&&l.push(\"else \"),l.push(\"if(l===\",a,\"){\");for(var u=[],s=0;s<a;++s)u.push(\"(S[c[\"+s+\"]]<<\"+s+\")\");l.push(\"var M=\",u.join(\"+\"),\";if(M===0||M===\",(1<<a)-1,\"){continue}switch(M){\");for(var o=r[a-1],s=0;s<o.length;++s)l.push(\"case \",s,\":\"),c(o[s]),l.push(\"break;\");l.push(\"}}\")}return l.push(\"}return R;};return getContour\",t,\"d\"),new Function(\"pool\",l.join(\"\"))(n)}(t));return e};var n=t(\"typedarray-pool\"),i=t(\"marching-simplex-table\"),a={}},{\"marching-simplex-table\":410,\"typedarray-pool\":522}],496:[function(t,e,r){\"use strict\";var n=t(\"bit-twiddle\"),i=t(\"union-find\");function a(t,e){var r=t.length,n=t.length-e.length,i=Math.min;if(n)return n;switch(r){case 0:return 0;case 1:return t[0]-e[0];case 2:return(s=t[0]+t[1]-e[0]-e[1])||i(t[0],t[1])-i(e[0],e[1]);case 3:var a=t[0]+t[1],o=e[0]+e[1];if(s=a+t[2]-(o+e[2]))return s;var s,l=i(t[0],t[1]),c=i(e[0],e[1]);return(s=i(l,t[2])-i(c,e[2]))||i(l+t[2],a)-i(c+e[2],o);default:var u=t.slice(0);u.sort();var f=e.slice(0);f.sort();for(var h=0;h<r;++h)if(n=u[h]-f[h])return n;return 0}}function o(t,e){return a(t[0],e[0])}function s(t,e){if(e){for(var r=t.length,n=new Array(r),i=0;i<r;++i)n[i]=[t[i],e[i]];n.sort(o);for(i=0;i<r;++i)t[i]=n[i][0],e[i]=n[i][1];return t}return t.sort(a),t}function l(t){if(0===t.length)return[];for(var e=1,r=t.length,n=1;n<r;++n){var i=t[n];if(a(i,t[n-1])){if(n===e){e++;continue}t[e++]=i}}return t.length=e,t}function c(t,e){for(var r=0,n=t.length-1,i=-1;r<=n;){var o=r+n>>1,s=a(t[o],e);s<=0?(0===s&&(i=o),r=o+1):s>0&&(n=o-1)}return i}function u(t,e){for(var r=new Array(t.length),i=0,o=r.length;i<o;++i)r[i]=[];for(var s=[],l=(i=0,e.length);i<l;++i)for(var u=e[i],f=u.length,h=1,p=1<<f;h<p;++h){s.length=n.popCount(h);for(var d=0,g=0;g<f;++g)h&1<<g&&(s[d++]=u[g]);var v=c(t,s);if(!(v<0))for(;r[v++].push(i),!(v>=t.length||0!==a(t[v],s)););}return r}function f(t,e){if(e<0)return[];for(var r=[],i=(1<<e+1)-1,a=0;a<t.length;++a)for(var o=t[a],l=i;l<1<<o.length;l=n.nextCombination(l)){for(var c=new Array(e+1),u=0,f=0;f<o.length;++f)l&1<<f&&(c[u++]=o[f]);r.push(c)}return s(r)}r.dimension=function(t){for(var e=0,r=Math.max,n=0,i=t.length;n<i;++n)e=r(e,t[n].length);return e-1},r.countVertices=function(t){for(var e=-1,r=Math.max,n=0,i=t.length;n<i;++n)for(var a=t[n],o=0,s=a.length;o<s;++o)e=r(e,a[o]);return e+1},r.cloneCells=function(t){for(var e=new Array(t.length),r=0,n=t.length;r<n;++r)e[r]=t[r].slice(0);return e},r.compareCells=a,r.normalize=s,r.unique=l,r.findCell=c,r.incidence=u,r.dual=function(t,e){if(!e)return u(l(f(t,0)),t);for(var r=new Array(e),n=0;n<e;++n)r[n]=[];n=0;for(var i=t.length;n<i;++n)for(var a=t[n],o=0,s=a.length;o<s;++o)r[a[o]].push(n);return r},r.explode=function(t){for(var e=[],r=0,n=t.length;r<n;++r)for(var i=t[r],a=0|i.length,o=1,l=1<<a;o<l;++o){for(var c=[],u=0;u<a;++u)o>>>u&1&&c.push(i[u]);e.push(c)}return s(e)},r.skeleton=f,r.boundary=function(t){for(var e=[],r=0,n=t.length;r<n;++r)for(var i=t[r],a=0,o=i.length;a<o;++a){for(var l=new Array(i.length-1),c=0,u=0;c<o;++c)c!==a&&(l[u++]=i[c]);e.push(l)}return s(e)},r.connectedComponents=function(t,e){return e?function(t,e){for(var r=new i(e),n=0;n<t.length;++n)for(var a=t[n],o=0;o<a.length;++o)for(var s=o+1;s<a.length;++s)r.link(a[o],a[s]);var l=[],c=r.ranks;for(n=0;n<c.length;++n)c[n]=-1;for(n=0;n<t.length;++n){var u=r.find(t[n][0]);c[u]<0?(c[u]=l.length,l.push([t[n].slice(0)])):l[c[u]].push(t[n].slice(0))}return l}(t,e):function(t){for(var e=l(s(f(t,0))),r=new i(e.length),n=0;n<t.length;++n)for(var a=t[n],o=0;o<a.length;++o)for(var u=c(e,[a[o]]),h=o+1;h<a.length;++h)r.link(u,c(e,[a[h]]));var p=[],d=r.ranks;for(n=0;n<d.length;++n)d[n]=-1;for(n=0;n<t.length;++n){var g=r.find(c(e,[t[n][0]]));d[g]<0?(d[g]=p.length,p.push([t[n].slice(0)])):p[d[g]].push(t[n].slice(0))}return p}(t)}},{\"bit-twiddle\":80,\"union-find\":523}],497:[function(t,e,r){arguments[4][80][0].apply(r,arguments)},{dup:80}],498:[function(t,e,r){arguments[4][496][0].apply(r,arguments)},{\"bit-twiddle\":497,dup:496,\"union-find\":499}],499:[function(t,e,r){\"use strict\";function n(t){this.roots=new Array(t),this.ranks=new Array(t);for(var e=0;e<t;++e)this.roots[e]=e,this.ranks[e]=0}e.exports=n,n.prototype.length=function(){return this.roots.length},n.prototype.makeSet=function(){var t=this.roots.length;return this.roots.push(t),this.ranks.push(0),t},n.prototype.find=function(t){for(var e=this.roots;e[t]!==t;){var r=e[t];e[t]=e[r],t=r}return t},n.prototype.link=function(t,e){var r=this.find(t),n=this.find(e);if(r!==n){var i=this.ranks,a=this.roots,o=i[r],s=i[n];o<s?a[r]=n:s<o?a[n]=r:(a[n]=r,++i[r])}}},{}],500:[function(t,e,r){\"use strict\";e.exports=function(t,e,r){for(var a=e.length,o=t.length,s=new Array(a),l=new Array(a),c=new Array(a),u=new Array(a),f=0;f<a;++f)s[f]=l[f]=-1,c[f]=1/0,u[f]=!1;for(var f=0;f<o;++f){var h=t[f];if(2!==h.length)throw new Error(\"Input must be a graph\");var p=h[1],d=h[0];-1!==l[d]?l[d]=-2:l[d]=p,-1!==s[p]?s[p]=-2:s[p]=d}function g(t){if(u[t])return 1/0;var r,i,a,o,c,f=s[t],h=l[t];return f<0||h<0?1/0:(r=e[t],i=e[f],a=e[h],o=Math.abs(n(r,i,a)),c=Math.sqrt(Math.pow(i[0]-a[0],2)+Math.pow(i[1]-a[1],2)),o/c)}function v(t,e){var r=M[t],n=M[e];M[t]=n,M[e]=r,A[r]=e,A[n]=t}function m(t){return c[M[t]]}function y(t){return 1&t?t-1>>1:(t>>1)-1}function x(t){for(var e=m(t);;){var r=e,n=2*t+1,i=2*(t+1),a=t;if(n<S){var o=m(n);o<r&&(a=n,r=o)}if(i<S){var s=m(i);s<r&&(a=i)}if(a===t)return t;v(t,a),t=a}}function b(t){for(var e=m(t);t>0;){var r=y(t);if(r>=0){var n=m(r);if(e<n){v(t,r),t=r;continue}}return t}}function _(){if(S>0){var t=M[0];return v(0,S-1),S-=1,x(0),t}return-1}function w(t,e){var r=M[t];return c[r]===e?t:(c[r]=-1/0,b(t),_(),c[r]=e,b((S+=1)-1))}function k(t){if(!u[t]){u[t]=!0;var e=s[t],r=l[t];s[r]>=0&&(s[r]=e),l[e]>=0&&(l[e]=r),A[e]>=0&&w(A[e],g(e)),A[r]>=0&&w(A[r],g(r))}}for(var M=[],A=new Array(a),f=0;f<a;++f){var T=c[f]=g(f);T<1/0?(A[f]=M.length,M.push(f)):A[f]=-1}for(var S=M.length,f=S>>1;f>=0;--f)x(f);for(;;){var E=_();if(E<0||c[E]>r)break;k(E)}for(var C=[],f=0;f<a;++f)u[f]||(A[f]=C.length,C.push(e[f].slice()));C.length;function L(t,e){if(t[e]<0)return e;var r=e,n=e;do{var i=t[n];if(!u[n]||i<0||i===n)break;if(i=t[n=i],!u[n]||i<0||i===n)break;n=i,r=t[r]}while(r!==n);for(var a=e;a!==n;a=t[a])t[a]=n;return n}var z=[];return t.forEach(function(t){var e=L(s,t[0]),r=L(l,t[1]);if(e>=0&&r>=0&&e!==r){var n=A[e],i=A[r];n!==i&&z.push([n,i])}}),i.unique(i.normalize(z)),{positions:C,edges:z}};var n=t(\"robust-orientation\"),i=t(\"simplicial-complex\")},{\"robust-orientation\":486,\"simplicial-complex\":498}],501:[function(t,e,r){\"use strict\";e.exports=function(t,e){var r,a,o,s;if(e[0][0]<e[1][0])r=e[0],a=e[1];else{if(!(e[0][0]>e[1][0]))return i(e,t);r=e[1],a=e[0]}if(t[0][0]<t[1][0])o=t[0],s=t[1];else{if(!(t[0][0]>t[1][0]))return-i(t,e);o=t[1],s=t[0]}var l=n(r,a,s),c=n(r,a,o);if(l<0){if(c<=0)return l}else if(l>0){if(c>=0)return l}else if(c)return c;if(l=n(s,o,a),c=n(s,o,r),l<0){if(c<=0)return l}else if(l>0){if(c>=0)return l}else if(c)return c;return a[0]-s[0]};var n=t(\"robust-orientation\");function i(t,e){var r,i,a,o;if(e[0][0]<e[1][0])r=e[0],i=e[1];else{if(!(e[0][0]>e[1][0])){var s=Math.min(t[0][1],t[1][1]),l=Math.max(t[0][1],t[1][1]),c=Math.min(e[0][1],e[1][1]),u=Math.max(e[0][1],e[1][1]);return l<c?l-c:s>u?s-u:l-u}r=e[1],i=e[0]}t[0][1]<t[1][1]?(a=t[0],o=t[1]):(a=t[1],o=t[0]);var f=n(i,r,a);return f||((f=n(i,r,o))||o-i)}},{\"robust-orientation\":486}],502:[function(t,e,r){\"use strict\";e.exports=function(t){for(var e=t.length,r=2*e,n=new Array(r),a=0;a<e;++a){var l=t[a],c=l[0][0]<l[1][0];n[2*a]=new f(l[0][0],l,c,a),n[2*a+1]=new f(l[1][0],l,!c,a)}n.sort(function(t,e){var r=t.x-e.x;return r||((r=t.create-e.create)||Math.min(t.segment[0][1],t.segment[1][1])-Math.min(e.segment[0][1],e.segment[1][1]))});for(var h=i(o),p=[],d=[],g=[],a=0;a<r;){for(var v=n[a].x,m=[];a<r;){var y=n[a];if(y.x!==v)break;a+=1,y.segment[0][0]===y.x&&y.segment[1][0]===y.x?y.create&&(y.segment[0][1]<y.segment[1][1]?(m.push(new u(y.segment[0][1],y.index,!0,!0)),m.push(new u(y.segment[1][1],y.index,!1,!1))):(m.push(new u(y.segment[1][1],y.index,!0,!1)),m.push(new u(y.segment[0][1],y.index,!1,!0)))):h=y.create?h.insert(y.segment,y.index):h.remove(y.segment)}p.push(h.root),d.push(v),g.push(m)}return new s(p,d,g)};var n=t(\"binary-search-bounds\"),i=t(\"functional-red-black-tree\"),a=t(\"robust-orientation\"),o=t(\"./lib/order-segments\");function s(t,e,r){this.slabs=t,this.coordinates=e,this.horizontal=r}function l(t,e){return t.y-e}function c(t,e){for(var r=null;t;){var n,i,o=t.key;o[0][0]<o[1][0]?(n=o[0],i=o[1]):(n=o[1],i=o[0]);var s=a(n,i,e);if(s<0)t=t.left;else if(s>0)if(e[0]!==o[1][0])r=t,t=t.right;else{if(l=c(t.right,e))return l;t=t.left}else{if(e[0]!==o[1][0])return t;var l;if(l=c(t.right,e))return l;t=t.left}}return r}function u(t,e,r,n){this.y=t,this.index=e,this.start=r,this.closed=n}function f(t,e,r,n){this.x=t,this.segment=e,this.create=r,this.index=n}s.prototype.castUp=function(t){var e=n.le(this.coordinates,t[0]);if(e<0)return-1;this.slabs[e];var r=c(this.slabs[e],t),i=-1;if(r&&(i=r.value),this.coordinates[e]===t[0]){var s=null;if(r&&(s=r.key),e>0){var u=c(this.slabs[e-1],t);u&&(s?o(u.key,s)>0&&(s=u.key,i=u.value):(i=u.value,s=u.key))}var f=this.horizontal[e];if(f.length>0){var h=n.ge(f,t[1],l);if(h<f.length){var p=f[h];if(t[1]===p.y){if(p.closed)return p.index;for(;h<f.length-1&&f[h+1].y===t[1];)if((p=f[h+=1]).closed)return p.index;if(p.y===t[1]&&!p.start){if((h+=1)>=f.length)return i;p=f[h]}}if(p.start)if(s){var d=a(s[0],s[1],[t[0],p.y]);s[0][0]>s[1][0]&&(d=-d),d>0&&(i=p.index)}else i=p.index;else p.y!==t[1]&&(i=p.index)}}}return i}},{\"./lib/order-segments\":501,\"binary-search-bounds\":79,\"functional-red-black-tree\":219,\"robust-orientation\":486}],503:[function(t,e,r){\"use strict\";var n=t(\"robust-dot-product\"),i=t(\"robust-sum\");function a(t,e){var r=i(n(t,e),[e[e.length-1]]);return r[r.length-1]}function o(t,e,r,n){var i=-e/(n-e);i<0?i=0:i>1&&(i=1);for(var a=1-i,o=t.length,s=new Array(o),l=0;l<o;++l)s[l]=i*t[l]+a*r[l];return s}e.exports=function(t,e){for(var r=[],n=[],i=a(t[t.length-1],e),s=t[t.length-1],l=t[0],c=0;c<t.length;++c,s=l){var u=a(l=t[c],e);if(i<0&&u>0||i>0&&u<0){var f=o(s,u,l,i);r.push(f),n.push(f.slice())}u<0?n.push(l.slice()):u>0?r.push(l.slice()):(r.push(l.slice()),n.push(l.slice())),i=u}return{positive:r,negative:n}},e.exports.positive=function(t,e){for(var r=[],n=a(t[t.length-1],e),i=t[t.length-1],s=t[0],l=0;l<t.length;++l,i=s){var c=a(s=t[l],e);(n<0&&c>0||n>0&&c<0)&&r.push(o(i,c,s,n)),c>=0&&r.push(s.slice()),n=c}return r},e.exports.negative=function(t,e){for(var r=[],n=a(t[t.length-1],e),i=t[t.length-1],s=t[0],l=0;l<t.length;++l,i=s){var c=a(s=t[l],e);(n<0&&c>0||n>0&&c<0)&&r.push(o(i,c,s,n)),c<=0&&r.push(s.slice()),n=c}return r}},{\"robust-dot-product\":483,\"robust-sum\":491}],504:[function(t,e,r){!function(){\"use strict\";var t={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\\x25]+/,modulo:/^\\x25{2}/,placeholder:/^\\x25(?:([1-9]\\d*)\\$|\\(([^\\)]+)\\))?(\\+)?(0|'[^$])?(-)?(\\d+)?(?:\\.(\\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\\d]*)/i,key_access:/^\\.([a-z_][a-z_\\d]*)/i,index_access:/^\\[(\\d+)\\]/,sign:/^[\\+\\-]/};function e(r){return function(r,n){var i,a,o,s,l,c,u,f,h,p=1,d=r.length,g=\"\";for(a=0;a<d;a++)if(\"string\"==typeof r[a])g+=r[a];else if(Array.isArray(r[a])){if((s=r[a])[2])for(i=n[p],o=0;o<s[2].length;o++){if(!i.hasOwnProperty(s[2][o]))throw new Error(e('[sprintf] property \"%s\" does not exist',s[2][o]));i=i[s[2][o]]}else i=s[1]?n[s[1]]:n[p++];if(t.not_type.test(s[8])&&t.not_primitive.test(s[8])&&i instanceof Function&&(i=i()),t.numeric_arg.test(s[8])&&\"number\"!=typeof i&&isNaN(i))throw new TypeError(e(\"[sprintf] expecting number but found %T\",i));switch(t.number.test(s[8])&&(f=i>=0),s[8]){case\"b\":i=parseInt(i,10).toString(2);break;case\"c\":i=String.fromCharCode(parseInt(i,10));break;case\"d\":case\"i\":i=parseInt(i,10);break;case\"j\":i=JSON.stringify(i,null,s[6]?parseInt(s[6]):0);break;case\"e\":i=s[7]?parseFloat(i).toExponential(s[7]):parseFloat(i).toExponential();break;case\"f\":i=s[7]?parseFloat(i).toFixed(s[7]):parseFloat(i);break;case\"g\":i=s[7]?String(Number(i.toPrecision(s[7]))):parseFloat(i);break;case\"o\":i=(parseInt(i,10)>>>0).toString(8);break;case\"s\":i=String(i),i=s[7]?i.substring(0,s[7]):i;break;case\"t\":i=String(!!i),i=s[7]?i.substring(0,s[7]):i;break;case\"T\":i=Object.prototype.toString.call(i).slice(8,-1).toLowerCase(),i=s[7]?i.substring(0,s[7]):i;break;case\"u\":i=parseInt(i,10)>>>0;break;case\"v\":i=i.valueOf(),i=s[7]?i.substring(0,s[7]):i;break;case\"x\":i=(parseInt(i,10)>>>0).toString(16);break;case\"X\":i=(parseInt(i,10)>>>0).toString(16).toUpperCase()}t.json.test(s[8])?g+=i:(!t.number.test(s[8])||f&&!s[3]?h=\"\":(h=f?\"+\":\"-\",i=i.toString().replace(t.sign,\"\")),c=s[4]?\"0\"===s[4]?\"0\":s[4].charAt(1):\" \",u=s[6]-(h+i).length,l=s[6]&&u>0?c.repeat(u):\"\",g+=s[5]?h+i+l:\"0\"===c?h+l+i:l+h+i)}return g}(function(e){if(i[e])return i[e];var r,n=e,a=[],o=0;for(;n;){if(null!==(r=t.text.exec(n)))a.push(r[0]);else if(null!==(r=t.modulo.exec(n)))a.push(\"%\");else{if(null===(r=t.placeholder.exec(n)))throw new SyntaxError(\"[sprintf] unexpected placeholder\");if(r[2]){o|=1;var s=[],l=r[2],c=[];if(null===(c=t.key.exec(l)))throw new SyntaxError(\"[sprintf] failed to parse named argument key\");for(s.push(c[1]);\"\"!==(l=l.substring(c[0].length));)if(null!==(c=t.key_access.exec(l)))s.push(c[1]);else{if(null===(c=t.index_access.exec(l)))throw new SyntaxError(\"[sprintf] failed to parse named argument key\");s.push(c[1])}r[2]=s}else o|=2;if(3===o)throw new Error(\"[sprintf] mixing positional and named placeholders is not (yet) supported\");a.push(r)}n=n.substring(r[0].length)}return i[e]=a}(r),arguments)}function n(t,r){return e.apply(null,[t].concat(r||[]))}var i=Object.create(null);\"undefined\"!=typeof r&&(r.sprintf=e,r.vsprintf=n),\"undefined\"!=typeof window&&(window.sprintf=e,window.vsprintf=n)}()},{}],505:[function(t,e,r){\"use strict\";var n=t(\"parenthesis\");e.exports=function(t,e,r){if(null==t)throw Error(\"First argument should be a string\");if(null==e)throw Error(\"Separator should be a string or a RegExp\");r?(\"string\"==typeof r||Array.isArray(r))&&(r={ignore:r}):r={},null==r.escape&&(r.escape=!0),null==r.ignore?r.ignore=[\"[]\",\"()\",\"{}\",\"<>\",'\"\"',\"''\",\"``\",\"\\u201c\\u201d\",\"\\xab\\xbb\"]:(\"string\"==typeof r.ignore&&(r.ignore=[r.ignore]),r.ignore=r.ignore.map(function(t){return 1===t.length&&(t+=t),t}));var i=n.parse(t,{flat:!0,brackets:r.ignore}),a=i[0].split(e);if(r.escape){for(var o=[],s=0;s<a.length;s++){var l=a[s],c=a[s+1];\"\\\\\"===l[l.length-1]&&\"\\\\\"!==l[l.length-2]?(o.push(l+e+c),s++):o.push(l)}a=o}for(s=0;s<a.length;s++)i[0]=a[s],a[s]=n.stringify(i,{flat:!0});return a}},{parenthesis:441}],506:[function(t,e,r){\"use strict\";e.exports=function(t){for(var e=t.length,r=new Array(e),n=new Array(e),i=new Array(e),a=new Array(e),o=new Array(e),s=new Array(e),l=0;l<e;++l)r[l]=-1,n[l]=0,i[l]=!1,a[l]=0,o[l]=-1,s[l]=[];var c,u=0,f=[],h=[];function p(e){var l=[e],c=[e];for(r[e]=n[e]=u,i[e]=!0,u+=1;c.length>0;){e=c[c.length-1];var p=t[e];if(a[e]<p.length){for(var d=a[e];d<p.length;++d){var g=p[d];if(r[g]<0){r[g]=n[g]=u,i[g]=!0,u+=1,l.push(g),c.push(g);break}i[g]&&(n[e]=0|Math.min(n[e],n[g])),o[g]>=0&&s[e].push(o[g])}a[e]=d}else{if(n[e]===r[e]){for(var v=[],m=[],y=0,d=l.length-1;d>=0;--d){var x=l[d];if(i[x]=!1,v.push(x),m.push(s[x]),y+=s[x].length,o[x]=f.length,x===e){l.length=d;break}}f.push(v);for(var b=new Array(y),d=0;d<m.length;d++)for(var _=0;_<m[d].length;_++)b[--y]=m[d][_];h.push(b)}c.pop()}}}for(var l=0;l<e;++l)r[l]<0&&p(l);for(var l=0;l<h.length;l++){var d=h[l];if(0!==d.length){d.sort(function(t,e){return t-e}),c=[d[0]];for(var g=1;g<d.length;g++)d[g]!==d[g-1]&&c.push(d[g]);h[l]=c}}return{components:f,adjacencyList:h}}},{}],507:[function(t,e,r){\"use strict\";e.exports=function(t){return t.split(\"\").map(function(t){return t in n?n[t]:\"\"}).join(\"\")};var n={\" \":\" \",0:\"\\u2070\",1:\"\\xb9\",2:\"\\xb2\",3:\"\\xb3\",4:\"\\u2074\",5:\"\\u2075\",6:\"\\u2076\",7:\"\\u2077\",8:\"\\u2078\",9:\"\\u2079\",\"+\":\"\\u207a\",\"-\":\"\\u207b\",a:\"\\u1d43\",b:\"\\u1d47\",c:\"\\u1d9c\",d:\"\\u1d48\",e:\"\\u1d49\",f:\"\\u1da0\",g:\"\\u1d4d\",h:\"\\u02b0\",i:\"\\u2071\",j:\"\\u02b2\",k:\"\\u1d4f\",l:\"\\u02e1\",m:\"\\u1d50\",n:\"\\u207f\",o:\"\\u1d52\",p:\"\\u1d56\",r:\"\\u02b3\",s:\"\\u02e2\",t:\"\\u1d57\",u:\"\\u1d58\",v:\"\\u1d5b\",w:\"\\u02b7\",x:\"\\u02e3\",y:\"\\u02b8\",z:\"\\u1dbb\"}},{}],508:[function(t,e,r){\"use strict\";e.exports=function(t,e){if(t.dimension<=0)return{positions:[],cells:[]};if(1===t.dimension)return function(t,e){for(var r=a(t,e),n=r.length,i=new Array(n),o=new Array(n),s=0;s<n;++s)i[s]=[r[s]],o[s]=[s];return{positions:i,cells:o}}(t,e);var r=t.order.join()+\"-\"+t.dtype,s=o[r],e=+e||0;s||(s=o[r]=function(t,e){var r=t.length,a=[\"'use strict';\"],o=\"surfaceNets\"+t.join(\"_\")+\"d\"+e;a.push(\"var contour=genContour({\",\"order:[\",t.join(),\"],\",\"scalarArguments: 3,\",\"phase:function phaseFunc(p,a,b,c) { return (p > c)|0 },\"),\"generic\"===e&&a.push(\"getters:[0],\");for(var s=[],l=[],c=0;c<r;++c)s.push(\"d\"+c),l.push(\"d\"+c);for(var c=0;c<1<<r;++c)s.push(\"v\"+c),l.push(\"v\"+c);for(var c=0;c<1<<r;++c)s.push(\"p\"+c),l.push(\"p\"+c);s.push(\"a\",\"b\",\"c\"),l.push(\"a\",\"c\"),a.push(\"vertex:function vertexFunc(\",s.join(),\"){\");for(var u=[],c=0;c<1<<r;++c)u.push(\"(p\"+c+\"<<\"+c+\")\");a.push(\"var m=(\",u.join(\"+\"),\")|0;if(m===0||m===\",(1<<(1<<r))-1,\"){return}\");var f=[],h=[];1<<(1<<r)<=128?(a.push(\"switch(m){\"),h=a):a.push(\"switch(m>>>7){\");for(var c=0;c<1<<(1<<r);++c){if(1<<(1<<r)>128&&c%128==0){f.length>0&&h.push(\"}}\");var p=\"vExtra\"+f.length;a.push(\"case \",c>>>7,\":\",p,\"(m&0x7f,\",l.join(),\");break;\"),h=[\"function \",p,\"(m,\",l.join(),\"){switch(m){\"],f.push(h)}h.push(\"case \",127&c,\":\");for(var d=new Array(r),g=new Array(r),v=new Array(r),m=new Array(r),y=0,x=0;x<r;++x)d[x]=[],g[x]=[],v[x]=0,m[x]=0;for(var x=0;x<1<<r;++x)for(var b=0;b<r;++b){var _=x^1<<b;if(!(_>x)&&!(c&1<<_)!=!(c&1<<x)){var w=1;c&1<<_?g[b].push(\"v\"+_+\"-v\"+x):(g[b].push(\"v\"+x+\"-v\"+_),w=-w),w<0?(d[b].push(\"-v\"+x+\"-v\"+_),v[b]+=2):(d[b].push(\"v\"+x+\"+v\"+_),v[b]-=2),y+=1;for(var k=0;k<r;++k)k!==b&&(_&1<<k?m[k]+=1:m[k]-=1)}}for(var M=[],b=0;b<r;++b)if(0===d[b].length)M.push(\"d\"+b+\"-0.5\");else{var A=\"\";v[b]<0?A=v[b]+\"*c\":v[b]>0&&(A=\"+\"+v[b]+\"*c\");var T=d[b].length/y*.5,S=.5+m[b]/y*.5;M.push(\"d\"+b+\"-\"+S+\"-\"+T+\"*(\"+d[b].join(\"+\")+A+\")/(\"+g[b].join(\"+\")+\")\")}h.push(\"a.push([\",M.join(),\"]);\",\"break;\")}a.push(\"}},\"),f.length>0&&h.push(\"}}\");for(var E=[],c=0;c<1<<r-1;++c)E.push(\"v\"+c);E.push(\"c0\",\"c1\",\"p0\",\"p1\",\"a\",\"b\",\"c\"),a.push(\"cell:function cellFunc(\",E.join(),\"){\");var C=i(r-1);a.push(\"if(p0){b.push(\",C.map(function(t){return\"[\"+t.map(function(t){return\"v\"+t})+\"]\"}).join(),\")}else{b.push(\",C.map(function(t){var e=t.slice();return e.reverse(),\"[\"+e.map(function(t){return\"v\"+t})+\"]\"}).join(),\")}}});function \",o,\"(array,level){var verts=[],cells=[];contour(array,verts,cells,level);return {positions:verts,cells:cells};} return \",o,\";\");for(var c=0;c<f.length;++c)a.push(f[c].join(\"\"));return new Function(\"genContour\",a.join(\"\"))(n)}(t.order,t.dtype));return s(t,e)};var n=t(\"ndarray-extract-contour\"),i=t(\"triangulate-hypercube\"),a=t(\"zero-crossings\");var o={}},{\"ndarray-extract-contour\":422,\"triangulate-hypercube\":518,\"zero-crossings\":551}],509:[function(t,e,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0});var n=function(){return function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var r=[],n=!0,i=!1,a=void 0;try{for(var o,s=t[Symbol.iterator]();!(n=(o=s.next()).done)&&(r.push(o.value),!e||r.length!==e);n=!0);}catch(t){i=!0,a=t}finally{try{!n&&s.return&&s.return()}finally{if(i)throw a}}return r}(t,e);throw new TypeError(\"Invalid attempt to destructure non-iterable instance\")}}(),i=2*Math.PI,a=function(t,e,r,n,i,a,o){var s=t.x,l=t.y;return{x:n*(s*=e)-i*(l*=r)+a,y:i*s+n*l+o}},o=function(t,e){var r=.551915024494,n=Math.cos(t),i=Math.sin(t),a=Math.cos(t+e),o=Math.sin(t+e);return[{x:n-i*r,y:i+n*r},{x:a+o*r,y:o-a*r},{x:a,y:o}]},s=function(t,e,r,n){var i=t*n-e*r<0?-1:1,a=(t*r+e*n)/(Math.sqrt(t*t+e*e)*Math.sqrt(t*t+e*e));return a>1&&(a=1),a<-1&&(a=-1),i*Math.acos(a)};r.default=function(t){var e=t.px,r=t.py,l=t.cx,c=t.cy,u=t.rx,f=t.ry,h=t.xAxisRotation,p=void 0===h?0:h,d=t.largeArcFlag,g=void 0===d?0:d,v=t.sweepFlag,m=void 0===v?0:v,y=[];if(0===u||0===f)return[];var x=Math.sin(p*i/360),b=Math.cos(p*i/360),_=b*(e-l)/2+x*(r-c)/2,w=-x*(e-l)/2+b*(r-c)/2;if(0===_&&0===w)return[];u=Math.abs(u),f=Math.abs(f);var k=Math.pow(_,2)/Math.pow(u,2)+Math.pow(w,2)/Math.pow(f,2);k>1&&(u*=Math.sqrt(k),f*=Math.sqrt(k));var M=function(t,e,r,n,a,o,l,c,u,f,h,p){var d=Math.pow(a,2),g=Math.pow(o,2),v=Math.pow(h,2),m=Math.pow(p,2),y=d*g-d*m-g*v;y<0&&(y=0),y/=d*m+g*v;var x=(y=Math.sqrt(y)*(l===c?-1:1))*a/o*p,b=y*-o/a*h,_=f*x-u*b+(t+r)/2,w=u*x+f*b+(e+n)/2,k=(h-x)/a,M=(p-b)/o,A=(-h-x)/a,T=(-p-b)/o,S=s(1,0,k,M),E=s(k,M,A,T);return 0===c&&E>0&&(E-=i),1===c&&E<0&&(E+=i),[_,w,S,E]}(e,r,l,c,u,f,g,m,x,b,_,w),A=n(M,4),T=A[0],S=A[1],E=A[2],C=A[3],L=Math.abs(C)/(i/4);Math.abs(1-L)<1e-7&&(L=1);var z=Math.max(Math.ceil(L),1);C/=z;for(var O=0;O<z;O++)y.push(o(E,C)),E+=C;return y.map(function(t){var e=a(t[0],u,f,b,x,T,S),r=e.x,n=e.y,i=a(t[1],u,f,b,x,T,S),o=i.x,s=i.y,l=a(t[2],u,f,b,x,T,S);return{x1:r,y1:n,x2:o,y2:s,x:l.x,y:l.y}})},e.exports=r.default},{}],510:[function(t,e,r){\"use strict\";var n=t(\"parse-svg-path\"),i=t(\"abs-svg-path\"),a=t(\"normalize-svg-path\"),o=t(\"is-svg-path\"),s=t(\"assert\");e.exports=function(t){Array.isArray(t)&&1===t.length&&\"string\"==typeof t[0]&&(t=t[0]);\"string\"==typeof t&&(s(o(t),\"String is not an SVG path.\"),t=n(t));if(s(Array.isArray(t),\"Argument should be a string or an array of path segments.\"),t=i(t),!(t=a(t)).length)return[0,0,0,0];for(var e=[1/0,1/0,-1/0,-1/0],r=0,l=t.length;r<l;r++)for(var c=t[r].slice(1),u=0;u<c.length;u+=2)c[u+0]<e[0]&&(e[0]=c[u+0]),c[u+1]<e[1]&&(e[1]=c[u+1]),c[u+0]>e[2]&&(e[2]=c[u+0]),c[u+1]>e[3]&&(e[3]=c[u+1]);return e}},{\"abs-svg-path\":48,assert:56,\"is-svg-path\":407,\"normalize-svg-path\":511,\"parse-svg-path\":443}],511:[function(t,e,r){\"use strict\";e.exports=function(t){for(var e,r=[],o=0,s=0,l=0,c=0,u=null,f=null,h=0,p=0,d=0,g=t.length;d<g;d++){var v=t[d],m=v[0];switch(m){case\"M\":l=v[1],c=v[2];break;case\"A\":var y=n({px:h,py:p,cx:v[6],cy:v[7],rx:v[1],ry:v[2],xAxisRotation:v[3],largeArcFlag:v[4],sweepFlag:v[5]});if(!y.length)continue;for(var x,b=0;b<y.length;b++)x=y[b],v=[\"C\",x.x1,x.y1,x.x2,x.y2,x.x,x.y],b<y.length-1&&r.push(v);break;case\"S\":var _=h,w=p;\"C\"!=e&&\"S\"!=e||(_+=_-o,w+=w-s),v=[\"C\",_,w,v[1],v[2],v[3],v[4]];break;case\"T\":\"Q\"==e||\"T\"==e?(u=2*h-u,f=2*p-f):(u=h,f=p),v=a(h,p,u,f,v[1],v[2]);break;case\"Q\":u=v[1],f=v[2],v=a(h,p,v[1],v[2],v[3],v[4]);break;case\"L\":v=i(h,p,v[1],v[2]);break;case\"H\":v=i(h,p,v[1],p);break;case\"V\":v=i(h,p,h,v[1]);break;case\"Z\":v=i(h,p,l,c)}e=m,h=v[v.length-2],p=v[v.length-1],v.length>4?(o=v[v.length-4],s=v[v.length-3]):(o=h,s=p),r.push(v)}return r};var n=t(\"svg-arc-to-cubic-bezier\");function i(t,e,r,n){return[\"C\",t,e,r,n,r,n]}function a(t,e,r,n,i,a){return[\"C\",t/3+2/3*r,e/3+2/3*n,i/3+2/3*r,a/3+2/3*n,i,a]}},{\"svg-arc-to-cubic-bezier\":509}],512:[function(t,e,r){\"use strict\";var n=t(\"svg-path-bounds\"),i=t(\"parse-svg-path\"),a=t(\"draw-svg-path\"),o=t(\"is-svg-path\"),s=t(\"bitmap-sdf\"),l=document.createElement(\"canvas\"),c=l.getContext(\"2d\");e.exports=function(t,e){if(!o(t))throw Error(\"Argument should be valid svg path string\");e||(e={});var r,u;e.shape?(r=e.shape[0],u=e.shape[1]):(r=l.width=e.w||e.width||200,u=l.height=e.h||e.height||200);var f=Math.min(r,u),h=e.stroke||0,p=e.viewbox||e.viewBox||n(t),d=[r/(p[2]-p[0]),u/(p[3]-p[1])],g=Math.min(d[0]||0,d[1]||0)/2;c.fillStyle=\"black\",c.fillRect(0,0,r,u),c.fillStyle=\"white\",h&&(\"number\"!=typeof h&&(h=1),c.strokeStyle=h>0?\"white\":\"black\",c.lineWidth=Math.abs(h));if(c.translate(.5*r,.5*u),c.scale(g,g),function(){var t=document.createElement(\"canvas\").getContext(\"2d\");t.canvas.width=t.canvas.height=1;var e=new Path2D(\"M0,0h1v1h-1v-1Z\");t.fillStyle=\"black\",t.fill(e);var r=t.getImageData(0,0,1,1);return r&&r.data&&255===r.data[3]}()){var v=new Path2D(t);c.fill(v),h&&c.stroke(v)}else{var m=i(t);a(c,m),c.fill(),h&&c.stroke()}return c.setTransform(1,0,0,1,0,0),s(c,{cutoff:null!=e.cutoff?e.cutoff:.5,radius:null!=e.radius?e.radius:.5*f})}},{\"bitmap-sdf\":81,\"draw-svg-path\":153,\"is-svg-path\":407,\"parse-svg-path\":443,\"svg-path-bounds\":510}],513:[function(t,e,r){(function(r){\"use strict\";e.exports=function t(e,r,i){var i=i||{};var o=a[e];o||(o=a[e]={\" \":{data:new Float32Array(0),shape:.2}});var s=o[r];if(!s)if(r.length<=1||!/\\d/.test(r))s=o[r]=function(t){for(var e=t.cells,r=t.positions,n=new Float32Array(6*e.length),i=0,a=0,o=0;o<e.length;++o)for(var s=e[o],l=0;l<3;++l){var c=r[s[l]];n[i++]=c[0],n[i++]=c[1]+1.4,a=Math.max(c[0],a)}return{data:n,shape:a}}(n(r,{triangles:!0,font:e,textAlign:i.textAlign||\"left\",textBaseline:\"alphabetic\"}));else{for(var l=r.split(/(\\d|\\s)/),c=new Array(l.length),u=0,f=0,h=0;h<l.length;++h)c[h]=t(e,l[h]),u+=c[h].data.length,f+=c[h].shape,h>0&&(f+=.02);for(var p=new Float32Array(u),d=0,g=-.5*f,h=0;h<c.length;++h){for(var v=c[h].data,m=0;m<v.length;m+=2)p[d++]=v[m]+g,p[d++]=v[m+1];g+=c[h].shape+.02}s=o[r]={data:p,shape:f}}return s};var n=t(\"vectorize-text\"),i=window||r.global||{},a=i.__TEXT_CACHE||{};i.__TEXT_CACHE={}}).call(this,t(\"_process\"))},{_process:465,\"vectorize-text\":527}],514:[function(t,e,r){!function(t){var r=/^\\s+/,n=/\\s+$/,i=0,a=t.round,o=t.min,s=t.max,l=t.random;function c(e,l){if(l=l||{},(e=e||\"\")instanceof c)return e;if(!(this instanceof c))return new c(e,l);var u=function(e){var i={r:0,g:0,b:0},a=1,l=null,c=null,u=null,f=!1,h=!1;\"string\"==typeof e&&(e=function(t){t=t.replace(r,\"\").replace(n,\"\").toLowerCase();var e,i=!1;if(S[t])t=S[t],i=!0;else if(\"transparent\"==t)return{r:0,g:0,b:0,a:0,format:\"name\"};if(e=j.rgb.exec(t))return{r:e[1],g:e[2],b:e[3]};if(e=j.rgba.exec(t))return{r:e[1],g:e[2],b:e[3],a:e[4]};if(e=j.hsl.exec(t))return{h:e[1],s:e[2],l:e[3]};if(e=j.hsla.exec(t))return{h:e[1],s:e[2],l:e[3],a:e[4]};if(e=j.hsv.exec(t))return{h:e[1],s:e[2],v:e[3]};if(e=j.hsva.exec(t))return{h:e[1],s:e[2],v:e[3],a:e[4]};if(e=j.hex8.exec(t))return{r:O(e[1]),g:O(e[2]),b:O(e[3]),a:R(e[4]),format:i?\"name\":\"hex8\"};if(e=j.hex6.exec(t))return{r:O(e[1]),g:O(e[2]),b:O(e[3]),format:i?\"name\":\"hex\"};if(e=j.hex4.exec(t))return{r:O(e[1]+\"\"+e[1]),g:O(e[2]+\"\"+e[2]),b:O(e[3]+\"\"+e[3]),a:R(e[4]+\"\"+e[4]),format:i?\"name\":\"hex8\"};if(e=j.hex3.exec(t))return{r:O(e[1]+\"\"+e[1]),g:O(e[2]+\"\"+e[2]),b:O(e[3]+\"\"+e[3]),format:i?\"name\":\"hex\"};return!1}(e));\"object\"==typeof e&&(V(e.r)&&V(e.g)&&V(e.b)?(p=e.r,d=e.g,g=e.b,i={r:255*L(p,255),g:255*L(d,255),b:255*L(g,255)},f=!0,h=\"%\"===String(e.r).substr(-1)?\"prgb\":\"rgb\"):V(e.h)&&V(e.s)&&V(e.v)?(l=P(e.s),c=P(e.v),i=function(e,r,n){e=6*L(e,360),r=L(r,100),n=L(n,100);var i=t.floor(e),a=e-i,o=n*(1-r),s=n*(1-a*r),l=n*(1-(1-a)*r),c=i%6;return{r:255*[n,s,o,o,l,n][c],g:255*[l,n,n,s,o,o][c],b:255*[o,o,l,n,n,s][c]}}(e.h,l,c),f=!0,h=\"hsv\"):V(e.h)&&V(e.s)&&V(e.l)&&(l=P(e.s),u=P(e.l),i=function(t,e,r){var n,i,a;function o(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+6*(e-t)*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}if(t=L(t,360),e=L(e,100),r=L(r,100),0===e)n=i=a=r;else{var s=r<.5?r*(1+e):r+e-r*e,l=2*r-s;n=o(l,s,t+1/3),i=o(l,s,t),a=o(l,s,t-1/3)}return{r:255*n,g:255*i,b:255*a}}(e.h,l,u),f=!0,h=\"hsl\"),e.hasOwnProperty(\"a\")&&(a=e.a));var p,d,g;return a=C(a),{ok:f,format:e.format||h,r:o(255,s(i.r,0)),g:o(255,s(i.g,0)),b:o(255,s(i.b,0)),a:a}}(e);this._originalInput=e,this._r=u.r,this._g=u.g,this._b=u.b,this._a=u.a,this._roundA=a(100*this._a)/100,this._format=l.format||u.format,this._gradientType=l.gradientType,this._r<1&&(this._r=a(this._r)),this._g<1&&(this._g=a(this._g)),this._b<1&&(this._b=a(this._b)),this._ok=u.ok,this._tc_id=i++}function u(t,e,r){t=L(t,255),e=L(e,255),r=L(r,255);var n,i,a=s(t,e,r),l=o(t,e,r),c=(a+l)/2;if(a==l)n=i=0;else{var u=a-l;switch(i=c>.5?u/(2-a-l):u/(a+l),a){case t:n=(e-r)/u+(e<r?6:0);break;case e:n=(r-t)/u+2;break;case r:n=(t-e)/u+4}n/=6}return{h:n,s:i,l:c}}function f(t,e,r){t=L(t,255),e=L(e,255),r=L(r,255);var n,i,a=s(t,e,r),l=o(t,e,r),c=a,u=a-l;if(i=0===a?0:u/a,a==l)n=0;else{switch(a){case t:n=(e-r)/u+(e<r?6:0);break;case e:n=(r-t)/u+2;break;case r:n=(t-e)/u+4}n/=6}return{h:n,s:i,v:c}}function h(t,e,r,n){var i=[I(a(t).toString(16)),I(a(e).toString(16)),I(a(r).toString(16))];return n&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join(\"\")}function p(t,e,r,n){return[I(D(n)),I(a(t).toString(16)),I(a(e).toString(16)),I(a(r).toString(16))].join(\"\")}function d(t,e){e=0===e?0:e||10;var r=c(t).toHsl();return r.s-=e/100,r.s=z(r.s),c(r)}function g(t,e){e=0===e?0:e||10;var r=c(t).toHsl();return r.s+=e/100,r.s=z(r.s),c(r)}function v(t){return c(t).desaturate(100)}function m(t,e){e=0===e?0:e||10;var r=c(t).toHsl();return r.l+=e/100,r.l=z(r.l),c(r)}function y(t,e){e=0===e?0:e||10;var r=c(t).toRgb();return r.r=s(0,o(255,r.r-a(-e/100*255))),r.g=s(0,o(255,r.g-a(-e/100*255))),r.b=s(0,o(255,r.b-a(-e/100*255))),c(r)}function x(t,e){e=0===e?0:e||10;var r=c(t).toHsl();return r.l-=e/100,r.l=z(r.l),c(r)}function b(t,e){var r=c(t).toHsl(),n=(r.h+e)%360;return r.h=n<0?360+n:n,c(r)}function _(t){var e=c(t).toHsl();return e.h=(e.h+180)%360,c(e)}function w(t){var e=c(t).toHsl(),r=e.h;return[c(t),c({h:(r+120)%360,s:e.s,l:e.l}),c({h:(r+240)%360,s:e.s,l:e.l})]}function k(t){var e=c(t).toHsl(),r=e.h;return[c(t),c({h:(r+90)%360,s:e.s,l:e.l}),c({h:(r+180)%360,s:e.s,l:e.l}),c({h:(r+270)%360,s:e.s,l:e.l})]}function M(t){var e=c(t).toHsl(),r=e.h;return[c(t),c({h:(r+72)%360,s:e.s,l:e.l}),c({h:(r+216)%360,s:e.s,l:e.l})]}function A(t,e,r){e=e||6,r=r||30;var n=c(t).toHsl(),i=360/r,a=[c(t)];for(n.h=(n.h-(i*e>>1)+720)%360;--e;)n.h=(n.h+i)%360,a.push(c(n));return a}function T(t,e){e=e||6;for(var r=c(t).toHsv(),n=r.h,i=r.s,a=r.v,o=[],s=1/e;e--;)o.push(c({h:n,s:i,v:a})),a=(a+s)%1;return o}c.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var e,r,n,i=this.toRgb();return e=i.r/255,r=i.g/255,n=i.b/255,.2126*(e<=.03928?e/12.92:t.pow((e+.055)/1.055,2.4))+.7152*(r<=.03928?r/12.92:t.pow((r+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:t.pow((n+.055)/1.055,2.4))},setAlpha:function(t){return this._a=C(t),this._roundA=a(100*this._a)/100,this},toHsv:function(){var t=f(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=f(this._r,this._g,this._b),e=a(360*t.h),r=a(100*t.s),n=a(100*t.v);return 1==this._a?\"hsv(\"+e+\", \"+r+\"%, \"+n+\"%)\":\"hsva(\"+e+\", \"+r+\"%, \"+n+\"%, \"+this._roundA+\")\"},toHsl:function(){var t=u(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=u(this._r,this._g,this._b),e=a(360*t.h),r=a(100*t.s),n=a(100*t.l);return 1==this._a?\"hsl(\"+e+\", \"+r+\"%, \"+n+\"%)\":\"hsla(\"+e+\", \"+r+\"%, \"+n+\"%, \"+this._roundA+\")\"},toHex:function(t){return h(this._r,this._g,this._b,t)},toHexString:function(t){return\"#\"+this.toHex(t)},toHex8:function(t){return function(t,e,r,n,i){var o=[I(a(t).toString(16)),I(a(e).toString(16)),I(a(r).toString(16)),I(D(n))];if(i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1))return o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0);return o.join(\"\")}(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return\"#\"+this.toHex8(t)},toRgb:function(){return{r:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return 1==this._a?\"rgb(\"+a(this._r)+\", \"+a(this._g)+\", \"+a(this._b)+\")\":\"rgba(\"+a(this._r)+\", \"+a(this._g)+\", \"+a(this._b)+\", \"+this._roundA+\")\"},toPercentageRgb:function(){return{r:a(100*L(this._r,255))+\"%\",g:a(100*L(this._g,255))+\"%\",b:a(100*L(this._b,255))+\"%\",a:this._a}},toPercentageRgbString:function(){return 1==this._a?\"rgb(\"+a(100*L(this._r,255))+\"%, \"+a(100*L(this._g,255))+\"%, \"+a(100*L(this._b,255))+\"%)\":\"rgba(\"+a(100*L(this._r,255))+\"%, \"+a(100*L(this._g,255))+\"%, \"+a(100*L(this._b,255))+\"%, \"+this._roundA+\")\"},toName:function(){return 0===this._a?\"transparent\":!(this._a<1)&&(E[h(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e=\"#\"+p(this._r,this._g,this._b,this._a),r=e,n=this._gradientType?\"GradientType = 1, \":\"\";if(t){var i=c(t);r=\"#\"+p(i._r,i._g,i._b,i._a)}return\"progid:DXImageTransform.Microsoft.gradient(\"+n+\"startColorstr=\"+e+\",endColorstr=\"+r+\")\"},toString:function(t){var e=!!t;t=t||this._format;var r=!1,n=this._a<1&&this._a>=0;return e||!n||\"hex\"!==t&&\"hex6\"!==t&&\"hex3\"!==t&&\"hex4\"!==t&&\"hex8\"!==t&&\"name\"!==t?(\"rgb\"===t&&(r=this.toRgbString()),\"prgb\"===t&&(r=this.toPercentageRgbString()),\"hex\"!==t&&\"hex6\"!==t||(r=this.toHexString()),\"hex3\"===t&&(r=this.toHexString(!0)),\"hex4\"===t&&(r=this.toHex8String(!0)),\"hex8\"===t&&(r=this.toHex8String()),\"name\"===t&&(r=this.toName()),\"hsl\"===t&&(r=this.toHslString()),\"hsv\"===t&&(r=this.toHsvString()),r||this.toHexString()):\"name\"===t&&0===this._a?this.toName():this.toRgbString()},clone:function(){return c(this.toString())},_applyModification:function(t,e){var r=t.apply(null,[this].concat([].slice.call(e)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(m,arguments)},brighten:function(){return this._applyModification(y,arguments)},darken:function(){return this._applyModification(x,arguments)},desaturate:function(){return this._applyModification(d,arguments)},saturate:function(){return this._applyModification(g,arguments)},greyscale:function(){return this._applyModification(v,arguments)},spin:function(){return this._applyModification(b,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(A,arguments)},complement:function(){return this._applyCombination(_,arguments)},monochromatic:function(){return this._applyCombination(T,arguments)},splitcomplement:function(){return this._applyCombination(M,arguments)},triad:function(){return this._applyCombination(w,arguments)},tetrad:function(){return this._applyCombination(k,arguments)}},c.fromRatio=function(t,e){if(\"object\"==typeof t){var r={};for(var n in t)t.hasOwnProperty(n)&&(r[n]=\"a\"===n?t[n]:P(t[n]));t=r}return c(t,e)},c.equals=function(t,e){return!(!t||!e)&&c(t).toRgbString()==c(e).toRgbString()},c.random=function(){return c.fromRatio({r:l(),g:l(),b:l()})},c.mix=function(t,e,r){r=0===r?0:r||50;var n=c(t).toRgb(),i=c(e).toRgb(),a=r/100;return c({r:(i.r-n.r)*a+n.r,g:(i.g-n.g)*a+n.g,b:(i.b-n.b)*a+n.b,a:(i.a-n.a)*a+n.a})},c.readability=function(e,r){var n=c(e),i=c(r);return(t.max(n.getLuminance(),i.getLuminance())+.05)/(t.min(n.getLuminance(),i.getLuminance())+.05)},c.isReadable=function(t,e,r){var n,i,a=c.readability(t,e);switch(i=!1,(n=function(t){var e,r;e=((t=t||{level:\"AA\",size:\"small\"}).level||\"AA\").toUpperCase(),r=(t.size||\"small\").toLowerCase(),\"AA\"!==e&&\"AAA\"!==e&&(e=\"AA\");\"small\"!==r&&\"large\"!==r&&(r=\"small\");return{level:e,size:r}}(r)).level+n.size){case\"AAsmall\":case\"AAAlarge\":i=a>=4.5;break;case\"AAlarge\":i=a>=3;break;case\"AAAsmall\":i=a>=7}return i},c.mostReadable=function(t,e,r){var n,i,a,o,s=null,l=0;i=(r=r||{}).includeFallbackColors,a=r.level,o=r.size;for(var u=0;u<e.length;u++)(n=c.readability(t,e[u]))>l&&(l=n,s=c(e[u]));return c.isReadable(t,s,{level:a,size:o})||!i?s:(r.includeFallbackColors=!1,c.mostReadable(t,[\"#fff\",\"#000\"],r))};var S=c.names={aliceblue:\"f0f8ff\",antiquewhite:\"faebd7\",aqua:\"0ff\",aquamarine:\"7fffd4\",azure:\"f0ffff\",beige:\"f5f5dc\",bisque:\"ffe4c4\",black:\"000\",blanchedalmond:\"ffebcd\",blue:\"00f\",blueviolet:\"8a2be2\",brown:\"a52a2a\",burlywood:\"deb887\",burntsienna:\"ea7e5d\",cadetblue:\"5f9ea0\",chartreuse:\"7fff00\",chocolate:\"d2691e\",coral:\"ff7f50\",cornflowerblue:\"6495ed\",cornsilk:\"fff8dc\",crimson:\"dc143c\",cyan:\"0ff\",darkblue:\"00008b\",darkcyan:\"008b8b\",darkgoldenrod:\"b8860b\",darkgray:\"a9a9a9\",darkgreen:\"006400\",darkgrey:\"a9a9a9\",darkkhaki:\"bdb76b\",darkmagenta:\"8b008b\",darkolivegreen:\"556b2f\",darkorange:\"ff8c00\",darkorchid:\"9932cc\",darkred:\"8b0000\",darksalmon:\"e9967a\",darkseagreen:\"8fbc8f\",darkslateblue:\"483d8b\",darkslategray:\"2f4f4f\",darkslategrey:\"2f4f4f\",darkturquoise:\"00ced1\",darkviolet:\"9400d3\",deeppink:\"ff1493\",deepskyblue:\"00bfff\",dimgray:\"696969\",dimgrey:\"696969\",dodgerblue:\"1e90ff\",firebrick:\"b22222\",floralwhite:\"fffaf0\",forestgreen:\"228b22\",fuchsia:\"f0f\",gainsboro:\"dcdcdc\",ghostwhite:\"f8f8ff\",gold:\"ffd700\",goldenrod:\"daa520\",gray:\"808080\",green:\"008000\",greenyellow:\"adff2f\",grey:\"808080\",honeydew:\"f0fff0\",hotpink:\"ff69b4\",indianred:\"cd5c5c\",indigo:\"4b0082\",ivory:\"fffff0\",khaki:\"f0e68c\",lavender:\"e6e6fa\",lavenderblush:\"fff0f5\",lawngreen:\"7cfc00\",lemonchiffon:\"fffacd\",lightblue:\"add8e6\",lightcoral:\"f08080\",lightcyan:\"e0ffff\",lightgoldenrodyellow:\"fafad2\",lightgray:\"d3d3d3\",lightgreen:\"90ee90\",lightgrey:\"d3d3d3\",lightpink:\"ffb6c1\",lightsalmon:\"ffa07a\",lightseagreen:\"20b2aa\",lightskyblue:\"87cefa\",lightslategray:\"789\",lightslategrey:\"789\",lightsteelblue:\"b0c4de\",lightyellow:\"ffffe0\",lime:\"0f0\",limegreen:\"32cd32\",linen:\"faf0e6\",magenta:\"f0f\",maroon:\"800000\",mediumaquamarine:\"66cdaa\",mediumblue:\"0000cd\",mediumorchid:\"ba55d3\",mediumpurple:\"9370db\",mediumseagreen:\"3cb371\",mediumslateblue:\"7b68ee\",mediumspringgreen:\"00fa9a\",mediumturquoise:\"48d1cc\",mediumvioletred:\"c71585\",midnightblue:\"191970\",mintcream:\"f5fffa\",mistyrose:\"ffe4e1\",moccasin:\"ffe4b5\",navajowhite:\"ffdead\",navy:\"000080\",oldlace:\"fdf5e6\",olive:\"808000\",olivedrab:\"6b8e23\",orange:\"ffa500\",orangered:\"ff4500\",orchid:\"da70d6\",palegoldenrod:\"eee8aa\",palegreen:\"98fb98\",paleturquoise:\"afeeee\",palevioletred:\"db7093\",papayawhip:\"ffefd5\",peachpuff:\"ffdab9\",peru:\"cd853f\",pink:\"ffc0cb\",plum:\"dda0dd\",powderblue:\"b0e0e6\",purple:\"800080\",rebeccapurple:\"663399\",red:\"f00\",rosybrown:\"bc8f8f\",royalblue:\"4169e1\",saddlebrown:\"8b4513\",salmon:\"fa8072\",sandybrown:\"f4a460\",seagreen:\"2e8b57\",seashell:\"fff5ee\",sienna:\"a0522d\",silver:\"c0c0c0\",skyblue:\"87ceeb\",slateblue:\"6a5acd\",slategray:\"708090\",slategrey:\"708090\",snow:\"fffafa\",springgreen:\"00ff7f\",steelblue:\"4682b4\",tan:\"d2b48c\",teal:\"008080\",thistle:\"d8bfd8\",tomato:\"ff6347\",turquoise:\"40e0d0\",violet:\"ee82ee\",wheat:\"f5deb3\",white:\"fff\",whitesmoke:\"f5f5f5\",yellow:\"ff0\",yellowgreen:\"9acd32\"},E=c.hexNames=function(t){var e={};for(var r in t)t.hasOwnProperty(r)&&(e[t[r]]=r);return e}(S);function C(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function L(e,r){(function(t){return\"string\"==typeof t&&-1!=t.indexOf(\".\")&&1===parseFloat(t)})(e)&&(e=\"100%\");var n=function(t){return\"string\"==typeof t&&-1!=t.indexOf(\"%\")}(e);return e=o(r,s(0,parseFloat(e))),n&&(e=parseInt(e*r,10)/100),t.abs(e-r)<1e-6?1:e%r/parseFloat(r)}function z(t){return o(1,s(0,t))}function O(t){return parseInt(t,16)}function I(t){return 1==t.length?\"0\"+t:\"\"+t}function P(t){return t<=1&&(t=100*t+\"%\"),t}function D(e){return t.round(255*parseFloat(e)).toString(16)}function R(t){return O(t)/255}var B,F,N,j=(F=\"[\\\\s|\\\\(]+(\"+(B=\"(?:[-\\\\+]?\\\\d*\\\\.\\\\d+%?)|(?:[-\\\\+]?\\\\d+%?)\")+\")[,|\\\\s]+(\"+B+\")[,|\\\\s]+(\"+B+\")\\\\s*\\\\)?\",N=\"[\\\\s|\\\\(]+(\"+B+\")[,|\\\\s]+(\"+B+\")[,|\\\\s]+(\"+B+\")[,|\\\\s]+(\"+B+\")\\\\s*\\\\)?\",{CSS_UNIT:new RegExp(B),rgb:new RegExp(\"rgb\"+F),rgba:new RegExp(\"rgba\"+N),hsl:new RegExp(\"hsl\"+F),hsla:new RegExp(\"hsla\"+N),hsv:new RegExp(\"hsv\"+F),hsva:new RegExp(\"hsva\"+N),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function V(t){return!!j.CSS_UNIT.exec(t)}\"undefined\"!=typeof e&&e.exports?e.exports=c:window.tinycolor=c}(Math)},{}],515:[function(t,e,r){\"use strict\";function n(t){if(t instanceof Float32Array)return t;if(\"number\"==typeof t)return new Float32Array([t])[0];var e=new Float32Array(t);return e.set(t),e}e.exports=n,e.exports.float32=e.exports.float=n,e.exports.fract32=e.exports.fract=function(t){if(\"number\"==typeof t)return n(t-n(t));for(var e=n(t),r=0,i=e.length;r<i;r++)e[r]=t[r]-e[r];return e}},{}],516:[function(t,e,r){\"use strict\";var n=t(\"parse-unit\");e.exports=o;var i=96;function a(t,e){var r=n(getComputedStyle(t).getPropertyValue(e));return r[0]*o(r[1],t)}function o(t,e){switch(e=e||document.body,t=(t||\"px\").trim().toLowerCase(),e!==window&&e!==document||(e=document.body),t){case\"%\":return e.clientHeight/100;case\"ch\":case\"ex\":return function(t,e){var r=document.createElement(\"div\");r.style[\"font-size\"]=\"128\"+t,e.appendChild(r);var n=a(r,\"font-size\")/128;return e.removeChild(r),n}(t,e);case\"em\":return a(e,\"font-size\");case\"rem\":return a(document.body,\"font-size\");case\"vw\":return window.innerWidth/100;case\"vh\":return window.innerHeight/100;case\"vmin\":return Math.min(window.innerWidth,window.innerHeight)/100;case\"vmax\":return Math.max(window.innerWidth,window.innerHeight)/100;case\"in\":return i;case\"cm\":return i/2.54;case\"mm\":return i/25.4;case\"pt\":return i/72;case\"pc\":return i/6}return 1}},{\"parse-unit\":444}],517:[function(t,e,r){var n;n=this,function(t){\"use strict\";var e=function(t){return t},r=function(t){if(null==(r=t.transform))return e;var r,n,i,a=r.scale[0],o=r.scale[1],s=r.translate[0],l=r.translate[1];return function(t,e){return e||(n=i=0),t[0]=(n+=t[0])*a+s,t[1]=(i+=t[1])*o+l,t}},n=function(t){var e=t.bbox;function n(t){l[0]=t[0],l[1]=t[1],s(l),l[0]<c&&(c=l[0]),l[0]>f&&(f=l[0]),l[1]<u&&(u=l[1]),l[1]>h&&(h=l[1])}function i(t){switch(t.type){case\"GeometryCollection\":t.geometries.forEach(i);break;case\"Point\":n(t.coordinates);break;case\"MultiPoint\":t.coordinates.forEach(n)}}if(!e){var a,o,s=r(t),l=new Array(2),c=1/0,u=c,f=-c,h=-c;for(o in t.arcs.forEach(function(t){for(var e=-1,r=t.length;++e<r;)a=t[e],l[0]=a[0],l[1]=a[1],s(l,e),l[0]<c&&(c=l[0]),l[0]>f&&(f=l[0]),l[1]<u&&(u=l[1]),l[1]>h&&(h=l[1])}),t.objects)i(t.objects[o]);e=t.bbox=[c,u,f,h]}return e},i=function(t,e){for(var r,n=t.length,i=n-e;i<--n;)r=t[i],t[i++]=t[n],t[n]=r};function a(t,e){var r=e.id,n=e.bbox,i=null==e.properties?{}:e.properties,a=o(t,e);return null==r&&null==n?{type:\"Feature\",properties:i,geometry:a}:null==n?{type:\"Feature\",id:r,properties:i,geometry:a}:{type:\"Feature\",id:r,bbox:n,properties:i,geometry:a}}function o(t,e){var n=r(t),a=t.arcs;function o(t,e){e.length&&e.pop();for(var r=a[t<0?~t:t],o=0,s=r.length;o<s;++o)e.push(n(r[o].slice(),o));t<0&&i(e,s)}function s(t){return n(t.slice())}function l(t){for(var e=[],r=0,n=t.length;r<n;++r)o(t[r],e);return e.length<2&&e.push(e[0].slice()),e}function c(t){for(var e=l(t);e.length<4;)e.push(e[0].slice());return e}function u(t){return t.map(c)}return function t(e){var r,n=e.type;switch(n){case\"GeometryCollection\":return{type:n,geometries:e.geometries.map(t)};case\"Point\":r=s(e.coordinates);break;case\"MultiPoint\":r=e.coordinates.map(s);break;case\"LineString\":r=l(e.arcs);break;case\"MultiLineString\":r=e.arcs.map(l);break;case\"Polygon\":r=u(e.arcs);break;case\"MultiPolygon\":r=e.arcs.map(u);break;default:return null}return{type:n,coordinates:r}}(e)}var s=function(t,e){var r={},n={},i={},a=[],o=-1;function s(t,e){for(var n in t){var i=t[n];delete e[i.start],delete i.start,delete i.end,i.forEach(function(t){r[t<0?~t:t]=1}),a.push(i)}}return e.forEach(function(r,n){var i,a=t.arcs[r<0?~r:r];a.length<3&&!a[1][0]&&!a[1][1]&&(i=e[++o],e[o]=r,e[n]=i)}),e.forEach(function(e){var r,a,o=function(e){var r,n=t.arcs[e<0?~e:e],i=n[0];t.transform?(r=[0,0],n.forEach(function(t){r[0]+=t[0],r[1]+=t[1]})):r=n[n.length-1];return e<0?[r,i]:[i,r]}(e),s=o[0],l=o[1];if(r=i[s])if(delete i[r.end],r.push(e),r.end=l,a=n[l]){delete n[a.start];var c=a===r?r:r.concat(a);n[c.start=r.start]=i[c.end=a.end]=c}else n[r.start]=i[r.end]=r;else if(r=n[l])if(delete n[r.start],r.unshift(e),r.start=s,a=i[s]){delete i[a.end];var u=a===r?r:a.concat(r);n[u.start=a.start]=i[u.end=r.end]=u}else n[r.start]=i[r.end]=r;else n[(r=[e]).start=s]=i[r.end=l]=r}),s(i,n),s(n,i),e.forEach(function(t){r[t<0?~t:t]||a.push([t])}),a};function l(t,e,r){var n,i,a;if(arguments.length>1)n=function(t,e,r){var n,i=[],a=[];function o(t){var e=t<0?~t:t;(a[e]||(a[e]=[])).push({i:t,g:n})}function s(t){t.forEach(o)}function l(t){t.forEach(s)}return function t(e){switch(n=e,e.type){case\"GeometryCollection\":e.geometries.forEach(t);break;case\"LineString\":s(e.arcs);break;case\"MultiLineString\":case\"Polygon\":l(e.arcs);break;case\"MultiPolygon\":e.arcs.forEach(l)}}(e),a.forEach(null==r?function(t){i.push(t[0].i)}:function(t){r(t[0].g,t[t.length-1].g)&&i.push(t[0].i)}),i}(0,e,r);else for(i=0,n=new Array(a=t.arcs.length);i<a;++i)n[i]=i;return{type:\"MultiLineString\",arcs:s(t,n)}}function c(t,e){var r={},n=[],i=[];function a(t){t.forEach(function(e){e.forEach(function(e){(r[e=e<0?~e:e]||(r[e]=[])).push(t)})}),n.push(t)}function l(e){return function(t){for(var e,r=-1,n=t.length,i=t[n-1],a=0;++r<n;)e=i,i=t[r],a+=e[0]*i[1]-e[1]*i[0];return Math.abs(a)}(o(t,{type:\"Polygon\",arcs:[e]}).coordinates[0])}return e.forEach(function t(e){switch(e.type){case\"GeometryCollection\":e.geometries.forEach(t);break;case\"Polygon\":a(e.arcs);break;case\"MultiPolygon\":e.arcs.forEach(a)}}),n.forEach(function(t){if(!t._){var e=[],n=[t];for(t._=1,i.push(e);t=n.pop();)e.push(t),t.forEach(function(t){t.forEach(function(t){r[t<0?~t:t].forEach(function(t){t._||(t._=1,n.push(t))})})})}}),n.forEach(function(t){delete t._}),{type:\"MultiPolygon\",arcs:i.map(function(e){var n,i=[];if(e.forEach(function(t){t.forEach(function(t){t.forEach(function(t){r[t<0?~t:t].length<2&&i.push(t)})})}),(n=(i=s(t,i)).length)>1)for(var a,o,c=1,u=l(i[0]);c<n;++c)(a=l(i[c]))>u&&(o=i[0],i[0]=i[c],i[c]=o,u=a);return i})}}var u=function(t,e){for(var r=0,n=t.length;r<n;){var i=r+n>>>1;t[i]<e?r=i+1:n=i}return r};t.bbox=n,t.feature=function(t,e){return\"GeometryCollection\"===e.type?{type:\"FeatureCollection\",features:e.geometries.map(function(e){return a(t,e)})}:a(t,e)},t.mesh=function(t){return o(t,l.apply(this,arguments))},t.meshArcs=l,t.merge=function(t){return o(t,c.apply(this,arguments))},t.mergeArcs=c,t.neighbors=function(t){var e={},r=t.map(function(){return[]});function n(t,r){t.forEach(function(t){t<0&&(t=~t);var n=e[t];n?n.push(r):e[t]=[r]})}function i(t,e){t.forEach(function(t){n(t,e)})}var a={LineString:n,MultiLineString:i,Polygon:i,MultiPolygon:function(t,e){t.forEach(function(t){i(t,e)})}};for(var o in t.forEach(function t(e,r){\"GeometryCollection\"===e.type?e.geometries.forEach(function(e){t(e,r)}):e.type in a&&a[e.type](e.arcs,r)}),e)for(var s=e[o],l=s.length,c=0;c<l;++c)for(var f=c+1;f<l;++f){var h,p=s[c],d=s[f];(h=r[p])[o=u(h,d)]!==d&&h.splice(o,0,d),(h=r[d])[o=u(h,p)]!==p&&h.splice(o,0,p)}return r},t.quantize=function(t,e){if(!((e=Math.floor(e))>=2))throw new Error(\"n must be \\u22652\");if(t.transform)throw new Error(\"already quantized\");var r,i=n(t),a=i[0],o=(i[2]-a)/(e-1)||1,s=i[1],l=(i[3]-s)/(e-1)||1;function c(t){t[0]=Math.round((t[0]-a)/o),t[1]=Math.round((t[1]-s)/l)}function u(t){switch(t.type){case\"GeometryCollection\":t.geometries.forEach(u);break;case\"Point\":c(t.coordinates);break;case\"MultiPoint\":t.coordinates.forEach(c)}}for(r in t.arcs.forEach(function(t){for(var e,r,n,i=1,c=1,u=t.length,f=t[0],h=f[0]=Math.round((f[0]-a)/o),p=f[1]=Math.round((f[1]-s)/l);i<u;++i)f=t[i],r=Math.round((f[0]-a)/o),n=Math.round((f[1]-s)/l),r===h&&n===p||((e=t[c++])[0]=r-h,h=r,e[1]=n-p,p=n);c<2&&((e=t[c++])[0]=0,e[1]=0),t.length=c}),t.objects)u(t.objects[r]);return t.transform={scale:[o,l],translate:[a,s]},t},t.transform=r,t.untransform=function(t){if(null==(r=t.transform))return e;var r,n,i,a=r.scale[0],o=r.scale[1],s=r.translate[0],l=r.translate[1];return function(t,e){e||(n=i=0);var r=Math.round((t[0]-s)/a),c=Math.round((t[1]-l)/o);return t[0]=r-n,n=r,t[1]=c-i,i=c,t}},Object.defineProperty(t,\"__esModule\",{value:!0})}(\"object\"==typeof r&&\"undefined\"!=typeof e?r:n.topojson=n.topojson||{})},{}],518:[function(t,e,r){\"use strict\";e.exports=function(t){if(t<0)return[];if(0===t)return[[0]];for(var e=0|Math.round(a(t+1)),r=[],o=0;o<e;++o){for(var s=n.unrank(t,o),l=[0],c=0,u=0;u<s.length;++u)c+=1<<s[u],l.push(c);i(s)<1&&(l[0]=c,l[t]=0),r.push(l)}return r};var n=t(\"permutation-rank\"),i=t(\"permutation-parity\"),a=t(\"gamma\")},{gamma:220,\"permutation-parity\":446,\"permutation-rank\":447}],519:[function(t,e,r){\"use strict\";e.exports=function(t){var e=(t=t||{}).center||[0,0,0],r=t.up||[0,1,0],n=t.right||f(r),i=t.radius||1,a=t.theta||0,u=t.phi||0;if(e=[].slice.call(e,0,3),r=[].slice.call(r,0,3),s(r,r),n=[].slice.call(n,0,3),s(n,n),\"eye\"in t){var p=t.eye,d=[p[0]-e[0],p[1]-e[1],p[2]-e[2]];o(n,d,r),c(n[0],n[1],n[2])<1e-6?n=f(r):s(n,n),i=c(d[0],d[1],d[2]);var g=l(r,d)/i,v=l(n,d)/i;u=Math.acos(g),a=Math.acos(v)}return i=Math.log(i),new h(t.zoomMin,t.zoomMax,e,r,n,i,a,u)};var n=t(\"filtered-vector\"),i=t(\"gl-mat4/invert\"),a=t(\"gl-mat4/rotate\"),o=t(\"gl-vec3/cross\"),s=t(\"gl-vec3/normalize\"),l=t(\"gl-vec3/dot\");function c(t,e,r){return Math.sqrt(Math.pow(t,2)+Math.pow(e,2)+Math.pow(r,2))}function u(t){return Math.min(1,Math.max(-1,t))}function f(t){var e=Math.abs(t[0]),r=Math.abs(t[1]),n=Math.abs(t[2]),i=[0,0,0];e>Math.max(r,n)?i[2]=1:r>Math.max(e,n)?i[0]=1:i[1]=1;for(var a=0,o=0,l=0;l<3;++l)a+=t[l]*t[l],o+=i[l]*t[l];for(l=0;l<3;++l)i[l]-=o/a*t[l];return s(i,i),i}function h(t,e,r,i,a,o,s,l){this.center=n(r),this.up=n(i),this.right=n(a),this.radius=n([o]),this.angle=n([s,l]),this.angle.bounds=[[-1/0,-Math.PI/2],[1/0,Math.PI/2]],this.setDistanceLimits(t,e),this.computedCenter=this.center.curve(0),this.computedUp=this.up.curve(0),this.computedRight=this.right.curve(0),this.computedRadius=this.radius.curve(0),this.computedAngle=this.angle.curve(0),this.computedToward=[0,0,0],this.computedEye=[0,0,0],this.computedMatrix=new Array(16);for(var c=0;c<16;++c)this.computedMatrix[c]=.5;this.recalcMatrix(0)}var p=h.prototype;p.setDistanceLimits=function(t,e){t=t>0?Math.log(t):-1/0,e=e>0?Math.log(e):1/0,e=Math.max(e,t),this.radius.bounds[0][0]=t,this.radius.bounds[1][0]=e},p.getDistanceLimits=function(t){var e=this.radius.bounds[0];return t?(t[0]=Math.exp(e[0][0]),t[1]=Math.exp(e[1][0]),t):[Math.exp(e[0][0]),Math.exp(e[1][0])]},p.recalcMatrix=function(t){this.center.curve(t),this.up.curve(t),this.right.curve(t),this.radius.curve(t),this.angle.curve(t);for(var e=this.computedUp,r=this.computedRight,n=0,i=0,a=0;a<3;++a)i+=e[a]*r[a],n+=e[a]*e[a];var l=Math.sqrt(n),u=0;for(a=0;a<3;++a)r[a]-=e[a]*i/n,u+=r[a]*r[a],e[a]/=l;var f=Math.sqrt(u);for(a=0;a<3;++a)r[a]/=f;var h=this.computedToward;o(h,e,r),s(h,h);var p=Math.exp(this.computedRadius[0]),d=this.computedAngle[0],g=this.computedAngle[1],v=Math.cos(d),m=Math.sin(d),y=Math.cos(g),x=Math.sin(g),b=this.computedCenter,_=v*y,w=m*y,k=x,M=-v*x,A=-m*x,T=y,S=this.computedEye,E=this.computedMatrix;for(a=0;a<3;++a){var C=_*r[a]+w*h[a]+k*e[a];E[4*a+1]=M*r[a]+A*h[a]+T*e[a],E[4*a+2]=C,E[4*a+3]=0}var L=E[1],z=E[5],O=E[9],I=E[2],P=E[6],D=E[10],R=z*D-O*P,B=O*I-L*D,F=L*P-z*I,N=c(R,B,F);R/=N,B/=N,F/=N,E[0]=R,E[4]=B,E[8]=F;for(a=0;a<3;++a)S[a]=b[a]+E[2+4*a]*p;for(a=0;a<3;++a){u=0;for(var j=0;j<3;++j)u+=E[a+4*j]*S[j];E[12+a]=-u}E[15]=1},p.getMatrix=function(t,e){this.recalcMatrix(t);var r=this.computedMatrix;if(e){for(var n=0;n<16;++n)e[n]=r[n];return e}return r};var d=[0,0,0];p.rotate=function(t,e,r,n){if(this.angle.move(t,e,r),n){this.recalcMatrix(t);var i=this.computedMatrix;d[0]=i[2],d[1]=i[6],d[2]=i[10];for(var o=this.computedUp,s=this.computedRight,l=this.computedToward,c=0;c<3;++c)i[4*c]=o[c],i[4*c+1]=s[c],i[4*c+2]=l[c];a(i,i,n,d);for(c=0;c<3;++c)o[c]=i[4*c],s[c]=i[4*c+1];this.up.set(t,o[0],o[1],o[2]),this.right.set(t,s[0],s[1],s[2])}},p.pan=function(t,e,r,n){e=e||0,r=r||0,n=n||0,this.recalcMatrix(t);var i=this.computedMatrix,a=(Math.exp(this.computedRadius[0]),i[1]),o=i[5],s=i[9],l=c(a,o,s);a/=l,o/=l,s/=l;var u=i[0],f=i[4],h=i[8],p=u*a+f*o+h*s,d=c(u-=a*p,f-=o*p,h-=s*p),g=(u/=d)*e+a*r,v=(f/=d)*e+o*r,m=(h/=d)*e+s*r;this.center.move(t,g,v,m);var y=Math.exp(this.computedRadius[0]);y=Math.max(1e-4,y+n),this.radius.set(t,Math.log(y))},p.translate=function(t,e,r,n){this.center.move(t,e||0,r||0,n||0)},p.setMatrix=function(t,e,r,n){var a=1;\"number\"==typeof r&&(a=0|r),(a<0||a>3)&&(a=1);var o=(a+2)%3;e||(this.recalcMatrix(t),e=this.computedMatrix);var s=e[a],l=e[a+4],f=e[a+8];if(n){var h=Math.abs(s),p=Math.abs(l),d=Math.abs(f),g=Math.max(h,p,d);h===g?(s=s<0?-1:1,l=f=0):d===g?(f=f<0?-1:1,s=l=0):(l=l<0?-1:1,s=f=0)}else{var v=c(s,l,f);s/=v,l/=v,f/=v}var m,y,x=e[o],b=e[o+4],_=e[o+8],w=x*s+b*l+_*f,k=c(x-=s*w,b-=l*w,_-=f*w),M=l*(_/=k)-f*(b/=k),A=f*(x/=k)-s*_,T=s*b-l*x,S=c(M,A,T);if(M/=S,A/=S,T/=S,this.center.jump(t,H,G,W),this.radius.idle(t),this.up.jump(t,s,l,f),this.right.jump(t,x,b,_),2===a){var E=e[1],C=e[5],L=e[9],z=E*x+C*b+L*_,O=E*M+C*A+L*T;m=R<0?-Math.PI/2:Math.PI/2,y=Math.atan2(O,z)}else{var I=e[2],P=e[6],D=e[10],R=I*s+P*l+D*f,B=I*x+P*b+D*_,F=I*M+P*A+D*T;m=Math.asin(u(R)),y=Math.atan2(F,B)}this.angle.jump(t,y,m),this.recalcMatrix(t);var N=e[2],j=e[6],V=e[10],U=this.computedMatrix;i(U,e);var q=U[15],H=U[12]/q,G=U[13]/q,W=U[14]/q,Y=Math.exp(this.computedRadius[0]);this.center.jump(t,H-N*Y,G-j*Y,W-V*Y)},p.lastT=function(){return Math.max(this.center.lastT(),this.up.lastT(),this.right.lastT(),this.radius.lastT(),this.angle.lastT())},p.idle=function(t){this.center.idle(t),this.up.idle(t),this.right.idle(t),this.radius.idle(t),this.angle.idle(t)},p.flush=function(t){this.center.flush(t),this.up.flush(t),this.right.flush(t),this.radius.flush(t),this.angle.flush(t)},p.setDistance=function(t,e){e>0&&this.radius.set(t,Math.log(e))},p.lookAt=function(t,e,r,n){this.recalcMatrix(t),e=e||this.computedEye,r=r||this.computedCenter;var i=(n=n||this.computedUp)[0],a=n[1],o=n[2],s=c(i,a,o);if(!(s<1e-6)){i/=s,a/=s,o/=s;var l=e[0]-r[0],f=e[1]-r[1],h=e[2]-r[2],p=c(l,f,h);if(!(p<1e-6)){l/=p,f/=p,h/=p;var d=this.computedRight,g=d[0],v=d[1],m=d[2],y=i*g+a*v+o*m,x=c(g-=y*i,v-=y*a,m-=y*o);if(!(x<.01&&(x=c(g=a*h-o*f,v=o*l-i*h,m=i*f-a*l))<1e-6)){g/=x,v/=x,m/=x,this.up.set(t,i,a,o),this.right.set(t,g,v,m),this.center.set(t,r[0],r[1],r[2]),this.radius.set(t,Math.log(p));var b=a*m-o*v,_=o*g-i*m,w=i*v-a*g,k=c(b,_,w),M=i*l+a*f+o*h,A=g*l+v*f+m*h,T=(b/=k)*l+(_/=k)*f+(w/=k)*h,S=Math.asin(u(M)),E=Math.atan2(T,A),C=this.angle._state,L=C[C.length-1],z=C[C.length-2];L%=2*Math.PI;var O=Math.abs(L+2*Math.PI-E),I=Math.abs(L-E),P=Math.abs(L-2*Math.PI-E);O<I&&(L+=2*Math.PI),P<I&&(L-=2*Math.PI),this.angle.jump(this.angle.lastT(),L,z),this.angle.set(t,E,S)}}}}},{\"filtered-vector\":215,\"gl-mat4/invert\":254,\"gl-mat4/rotate\":258,\"gl-vec3/cross\":317,\"gl-vec3/dot\":322,\"gl-vec3/normalize\":339}],520:[function(t,e,r){\"use strict\";e.exports=function(t,e,r){var i=t*e,a=n*t,o=a-(a-t),s=t-o,l=n*e,c=l-(l-e),u=e-c,f=s*u-(i-o*c-s*c-o*u);if(r)return r[0]=f,r[1]=i,r;return[f,i]};var n=+(Math.pow(2,27)+1)},{}],521:[function(t,e,r){\"use strict\";e.exports=function(t,e,r){var n=t+e,i=n-t,a=e-i,o=t-(n-i);if(r)return r[0]=o+a,r[1]=n,r;return[o+a,n]}},{}],522:[function(t,e,r){(function(e,n){\"use strict\";var i=t(\"bit-twiddle\"),a=t(\"dup\");e.__TYPEDARRAY_POOL||(e.__TYPEDARRAY_POOL={UINT8:a([32,0]),UINT16:a([32,0]),UINT32:a([32,0]),INT8:a([32,0]),INT16:a([32,0]),INT32:a([32,0]),FLOAT:a([32,0]),DOUBLE:a([32,0]),DATA:a([32,0]),UINT8C:a([32,0]),BUFFER:a([32,0])});var o=\"undefined\"!=typeof Uint8ClampedArray,s=e.__TYPEDARRAY_POOL;s.UINT8C||(s.UINT8C=a([32,0])),s.BUFFER||(s.BUFFER=a([32,0]));var l=s.DATA,c=s.BUFFER;function u(t){if(t){var e=t.length||t.byteLength,r=i.log2(e);l[r].push(t)}}function f(t){t=i.nextPow2(t);var e=i.log2(t),r=l[e];return r.length>0?r.pop():new ArrayBuffer(t)}function h(t){return new Uint8Array(f(t),0,t)}function p(t){return new Uint16Array(f(2*t),0,t)}function d(t){return new Uint32Array(f(4*t),0,t)}function g(t){return new Int8Array(f(t),0,t)}function v(t){return new Int16Array(f(2*t),0,t)}function m(t){return new Int32Array(f(4*t),0,t)}function y(t){return new Float32Array(f(4*t),0,t)}function x(t){return new Float64Array(f(8*t),0,t)}function b(t){return o?new Uint8ClampedArray(f(t),0,t):h(t)}function _(t){return new DataView(f(t),0,t)}function w(t){t=i.nextPow2(t);var e=i.log2(t),r=c[e];return r.length>0?r.pop():new n(t)}r.free=function(t){if(n.isBuffer(t))c[i.log2(t.length)].push(t);else{if(\"[object ArrayBuffer]\"!==Object.prototype.toString.call(t)&&(t=t.buffer),!t)return;var e=t.length||t.byteLength,r=0|i.log2(e);l[r].push(t)}},r.freeUint8=r.freeUint16=r.freeUint32=r.freeInt8=r.freeInt16=r.freeInt32=r.freeFloat32=r.freeFloat=r.freeFloat64=r.freeDouble=r.freeUint8Clamped=r.freeDataView=function(t){u(t.buffer)},r.freeArrayBuffer=u,r.freeBuffer=function(t){c[i.log2(t.length)].push(t)},r.malloc=function(t,e){if(void 0===e||\"arraybuffer\"===e)return f(t);switch(e){case\"uint8\":return h(t);case\"uint16\":return p(t);case\"uint32\":return d(t);case\"int8\":return g(t);case\"int16\":return v(t);case\"int32\":return m(t);case\"float\":case\"float32\":return y(t);case\"double\":case\"float64\":return x(t);case\"uint8_clamped\":return b(t);case\"buffer\":return w(t);case\"data\":case\"dataview\":return _(t);default:return null}return null},r.mallocArrayBuffer=f,r.mallocUint8=h,r.mallocUint16=p,r.mallocUint32=d,r.mallocInt8=g,r.mallocInt16=v,r.mallocInt32=m,r.mallocFloat32=r.mallocFloat=y,r.mallocFloat64=r.mallocDouble=x,r.mallocUint8Clamped=b,r.mallocDataView=_,r.mallocBuffer=w,r.clearCache=function(){for(var t=0;t<32;++t)s.UINT8[t].length=0,s.UINT16[t].length=0,s.UINT32[t].length=0,s.INT8[t].length=0,s.INT16[t].length=0,s.INT32[t].length=0,s.FLOAT[t].length=0,s.DOUBLE[t].length=0,s.UINT8C[t].length=0,l[t].length=0,c[t].length=0}}).call(this,\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{},t(\"buffer\").Buffer)},{\"bit-twiddle\":80,buffer:93,dup:155}],523:[function(t,e,r){\"use strict\";function n(t){this.roots=new Array(t),this.ranks=new Array(t);for(var e=0;e<t;++e)this.roots[e]=e,this.ranks[e]=0}e.exports=n;var i=n.prototype;Object.defineProperty(i,\"length\",{get:function(){return this.roots.length}}),i.makeSet=function(){var t=this.roots.length;return this.roots.push(t),this.ranks.push(0),t},i.find=function(t){for(var e=t,r=this.roots;r[t]!==t;)t=r[t];for(;r[e]!==t;){var n=r[e];r[e]=t,e=n}return t},i.link=function(t,e){var r=this.find(t),n=this.find(e);if(r!==n){var i=this.ranks,a=this.roots,o=i[r],s=i[n];o<s?a[r]=n:s<o?a[n]=r:(a[n]=r,++i[r])}}},{}],524:[function(t,e,r){\"use strict\";e.exports=function(t,e,r){return 0===t.length?t:e?(r||t.sort(e),function(t,e){for(var r=1,n=t.length,i=t[0],a=t[0],o=1;o<n;++o)if(a=i,e(i=t[o],a)){if(o===r){r++;continue}t[r++]=i}return t.length=r,t}(t,e)):(r||t.sort(),function(t){for(var e=1,r=t.length,n=t[0],i=t[0],a=1;a<r;++a,i=n)if(i=n,(n=t[a])!==i){if(a===e){e++;continue}t[e++]=n}return t.length=e,t}(t))}},{}],525:[function(t,e,r){var n=/[\\'\\\"]/;e.exports=function(t){return t?(n.test(t.charAt(0))&&(t=t.substr(1)),n.test(t.charAt(t.length-1))&&(t=t.substr(0,t.length-1)),t):\"\"}},{}],526:[function(t,e,r){\"use strict\";e.exports=function(t,e,r){Array.isArray(r)||(r=[].slice.call(arguments,2));for(var n=0,i=r.length;n<i;n++){var a=r[n];for(var o in a)if((void 0===e[o]||Array.isArray(e[o])||t[o]!==e[o])&&o in e){var s;if(!0===a[o])s=e[o];else{if(!1===a[o])continue;if(\"function\"==typeof a[o]&&void 0===(s=a[o](e[o],t,e)))continue}t[o]=s}}return t}},{}],527:[function(t,e,r){\"use strict\";e.exports=function(t,e){\"object\"==typeof e&&null!==e||(e={});return n(t,e.canvas||i,e.context||a,e)};var n=t(\"./lib/vtext\"),i=null,a=null;\"undefined\"!=typeof document&&((i=document.createElement(\"canvas\")).width=8192,i.height=1024,a=i.getContext(\"2d\"))},{\"./lib/vtext\":528}],528:[function(t,e,r){\"use strict\";e.exports=function(t,e,r,n){var a=n.size||64,o=n.font||\"normal\";return r.font=a+\"px \"+o,r.textAlign=\"start\",r.textBaseline=\"alphabetic\",r.direction=\"ltr\",f(function(t,e,r,n){var a=0|Math.ceil(e.measureText(r).width+2*n);if(a>8192)throw new Error(\"vectorize-text: String too long (sorry, this will get fixed later)\");var o=3*n;t.height<o&&(t.height=o),e.fillStyle=\"#000\",e.fillRect(0,0,t.width,t.height),e.fillStyle=\"#fff\",e.fillText(r,n,2*n);var s=e.getImageData(0,0,a,o);return i(s.data,[o,a,4]).pick(-1,-1,0).transpose(1,0)}(e,r,t,a),n,a)},e.exports.processPixels=f;var n=t(\"surface-nets\"),i=t(\"ndarray\"),a=t(\"simplify-planar-graph\"),o=t(\"clean-pslg\"),s=t(\"cdt2d\"),l=t(\"planar-graph-to-polyline\");function c(t,e){var r=n(t,128);return e?a(r.cells,r.positions,.25):{edges:r.cells,positions:r.positions}}function u(t,e,r,n){var i=c(t,n),a=function(t,e,r){for(var n=e.textAlign||\"start\",i=e.textBaseline||\"alphabetic\",a=[1<<30,1<<30],o=[0,0],s=t.length,l=0;l<s;++l)for(var c=t[l],u=0;u<2;++u)a[u]=0|Math.min(a[u],c[u]),o[u]=0|Math.max(o[u],c[u]);var f=0;switch(n){case\"center\":f=-.5*(a[0]+o[0]);break;case\"right\":case\"end\":f=-o[0];break;case\"left\":case\"start\":f=-a[0];break;default:throw new Error(\"vectorize-text: Unrecognized textAlign: '\"+n+\"'\")}var h=0;switch(i){case\"hanging\":case\"top\":h=-a[1];break;case\"middle\":h=-.5*(a[1]+o[1]);break;case\"alphabetic\":case\"ideographic\":h=-3*r;break;case\"bottom\":h=-o[1];break;default:throw new Error(\"vectorize-text: Unrecoginized textBaseline: '\"+i+\"'\")}var p=1/r;return\"lineHeight\"in e?p*=+e.lineHeight:\"width\"in e?p=e.width/(o[0]-a[0]):\"height\"in e&&(p=e.height/(o[1]-a[1])),t.map(function(t){return[p*(t[0]+f),p*(t[1]+h)]})}(i.positions,e,r),u=i.edges,f=\"ccw\"===e.orientation;if(o(a,u),e.polygons||e.polygon||e.polyline){for(var h=l(u,a),p=new Array(h.length),d=0;d<h.length;++d){for(var g=h[d],v=new Array(g.length),m=0;m<g.length;++m){for(var y=g[m],x=new Array(y.length),b=0;b<y.length;++b)x[b]=a[y[b]].slice();f&&x.reverse(),v[m]=x}p[d]=v}return p}return e.triangles||e.triangulate||e.triangle?{cells:s(a,u,{delaunay:!1,exterior:!1,interior:!0}),positions:a}:{edges:u,positions:a}}function f(t,e,r){try{return u(t,e,r,!0)}catch(t){}try{return u(t,e,r,!1)}catch(t){}return e.polygons||e.polyline||e.polygon?[]:e.triangles||e.triangulate||e.triangle?{cells:[],positions:[]}:{edges:[],positions:[]}}},{cdt2d:94,\"clean-pslg\":104,ndarray:433,\"planar-graph-to-polyline\":451,\"simplify-planar-graph\":500,\"surface-nets\":508}],529:[function(t,e,r){!function(){\"use strict\";if(\"undefined\"==typeof ses||!ses.ok||ses.ok()){\"undefined\"!=typeof ses&&(ses.weakMapPermitHostObjects=v);var t=!1;if(\"function\"==typeof WeakMap){var r=WeakMap;if(\"undefined\"!=typeof navigator&&/Firefox/.test(navigator.userAgent));else{var n=new r,i=Object.freeze({});if(n.set(i,1),1===n.get(i))return void(e.exports=WeakMap);t=!0}}Object.prototype.hasOwnProperty;var a=Object.getOwnPropertyNames,o=Object.defineProperty,s=Object.isExtensible,l=\"weakmap:\",c=l+\"ident:\"+Math.random()+\"___\";if(\"undefined\"!=typeof crypto&&\"function\"==typeof crypto.getRandomValues&&\"function\"==typeof ArrayBuffer&&\"function\"==typeof Uint8Array){var u=new ArrayBuffer(25),f=new Uint8Array(u);crypto.getRandomValues(f),c=l+\"rand:\"+Array.prototype.map.call(f,function(t){return(t%36).toString(36)}).join(\"\")+\"___\"}if(o(Object,\"getOwnPropertyNames\",{value:function(t){return a(t).filter(m)}}),\"getPropertyNames\"in Object){var h=Object.getPropertyNames;o(Object,\"getPropertyNames\",{value:function(t){return h(t).filter(m)}})}!function(){var t=Object.freeze;o(Object,\"freeze\",{value:function(e){return y(e),t(e)}});var e=Object.seal;o(Object,\"seal\",{value:function(t){return y(t),e(t)}});var r=Object.preventExtensions;o(Object,\"preventExtensions\",{value:function(t){return y(t),r(t)}})}();var p=!1,d=0,g=function(){this instanceof g||b();var t=[],e=[],r=d++;return Object.create(g.prototype,{get___:{value:x(function(n,i){var a,o=y(n);return o?r in o?o[r]:i:(a=t.indexOf(n))>=0?e[a]:i})},has___:{value:x(function(e){var n=y(e);return n?r in n:t.indexOf(e)>=0})},set___:{value:x(function(n,i){var a,o=y(n);return o?o[r]=i:(a=t.indexOf(n))>=0?e[a]=i:(a=t.length,e[a]=i,t[a]=n),this})},delete___:{value:x(function(n){var i,a,o=y(n);return o?r in o&&delete o[r]:!((i=t.indexOf(n))<0||(a=t.length-1,t[i]=void 0,e[i]=e[a],t[i]=t[a],t.length=a,e.length=a,0))})}})};g.prototype=Object.create(Object.prototype,{get:{value:function(t,e){return this.get___(t,e)},writable:!0,configurable:!0},has:{value:function(t){return this.has___(t)},writable:!0,configurable:!0},set:{value:function(t,e){return this.set___(t,e)},writable:!0,configurable:!0},delete:{value:function(t){return this.delete___(t)},writable:!0,configurable:!0}}),\"function\"==typeof r?function(){function n(){this instanceof g||b();var e,n=new r,i=void 0,a=!1;return e=t?function(t,e){return n.set(t,e),n.has(t)||(i||(i=new g),i.set(t,e)),this}:function(t,e){if(a)try{n.set(t,e)}catch(r){i||(i=new g),i.set___(t,e)}else n.set(t,e);return this},Object.create(g.prototype,{get___:{value:x(function(t,e){return i?n.has(t)?n.get(t):i.get___(t,e):n.get(t,e)})},has___:{value:x(function(t){return n.has(t)||!!i&&i.has___(t)})},set___:{value:x(e)},delete___:{value:x(function(t){var e=!!n.delete(t);return i&&i.delete___(t)||e})},permitHostObjects___:{value:x(function(t){if(t!==v)throw new Error(\"bogus call to permitHostObjects___\");a=!0})}})}t&&\"undefined\"!=typeof Proxy&&(Proxy=void 0),n.prototype=g.prototype,e.exports=n,Object.defineProperty(WeakMap.prototype,\"constructor\",{value:WeakMap,enumerable:!1,configurable:!0,writable:!0})}():(\"undefined\"!=typeof Proxy&&(Proxy=void 0),e.exports=g)}function v(t){t.permitHostObjects___&&t.permitHostObjects___(v)}function m(t){return!(t.substr(0,l.length)==l&&\"___\"===t.substr(t.length-3))}function y(t){if(t!==Object(t))throw new TypeError(\"Not an object: \"+t);var e=t[c];if(e&&e.key===t)return e;if(s(t)){e={key:t};try{return o(t,c,{value:e,writable:!1,enumerable:!1,configurable:!1}),e}catch(t){return}}}function x(t){return t.prototype=null,Object.freeze(t)}function b(){p||\"undefined\"==typeof console||(p=!0,console.warn(\"WeakMap should be invoked as new WeakMap(), not WeakMap(). This will be an error in the future.\"))}}()},{}],530:[function(t,e,r){var n=t(\"./hidden-store.js\");e.exports=function(){var t={};return function(e){if((\"object\"!=typeof e||null===e)&&\"function\"!=typeof e)throw new Error(\"Weakmap-shim: Key must be object\");var r=e.valueOf(t);return r&&r.identity===t?r:n(e,t)}}},{\"./hidden-store.js\":531}],531:[function(t,e,r){e.exports=function(t,e){var r={identity:e},n=t.valueOf;return Object.defineProperty(t,\"valueOf\",{value:function(t){return t!==e?n.apply(this,arguments):r},writable:!0}),r}},{}],532:[function(t,e,r){var n=t(\"./create-store.js\");e.exports=function(){var t=n();return{get:function(e,r){var n=t(e);return n.hasOwnProperty(\"value\")?n.value:r},set:function(e,r){return t(e).value=r,this},has:function(e){return\"value\"in t(e)},delete:function(e){return delete t(e).value}}}},{\"./create-store.js\":530}],533:[function(t,e,r){var n=t(\"get-canvas-context\");e.exports=function(t){return n(\"webgl\",t)}},{\"get-canvas-context\":221}],534:[function(t,e,r){var n=t(\"../main\"),i=t(\"object-assign\"),a=n.instance();function o(t){this.local=this.regionalOptions[t||\"\"]||this.regionalOptions[\"\"]}o.prototype=new n.baseCalendar,i(o.prototype,{name:\"Chinese\",jdEpoch:1721425.5,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{\"\":{name:\"Chinese\",epochs:[\"BEC\",\"EC\"],monthNumbers:function(t,e){if(\"string\"==typeof t){var r=t.match(l);return r?r[0]:\"\"}var n=this._validateYear(t),i=t.month(),a=\"\"+this.toChineseMonth(n,i);return e&&a.length<2&&(a=\"0\"+a),this.isIntercalaryMonth(n,i)&&(a+=\"i\"),a},monthNames:function(t){if(\"string\"==typeof t){var e=t.match(c);return e?e[0]:\"\"}var r=this._validateYear(t),n=t.month(),i=[\"\\u4e00\\u6708\",\"\\u4e8c\\u6708\",\"\\u4e09\\u6708\",\"\\u56db\\u6708\",\"\\u4e94\\u6708\",\"\\u516d\\u6708\",\"\\u4e03\\u6708\",\"\\u516b\\u6708\",\"\\u4e5d\\u6708\",\"\\u5341\\u6708\",\"\\u5341\\u4e00\\u6708\",\"\\u5341\\u4e8c\\u6708\"][this.toChineseMonth(r,n)-1];return this.isIntercalaryMonth(r,n)&&(i=\"\\u95f0\"+i),i},monthNamesShort:function(t){if(\"string\"==typeof t){var e=t.match(u);return e?e[0]:\"\"}var r=this._validateYear(t),n=t.month(),i=[\"\\u4e00\",\"\\u4e8c\",\"\\u4e09\",\"\\u56db\",\"\\u4e94\",\"\\u516d\",\"\\u4e03\",\"\\u516b\",\"\\u4e5d\",\"\\u5341\",\"\\u5341\\u4e00\",\"\\u5341\\u4e8c\"][this.toChineseMonth(r,n)-1];return this.isIntercalaryMonth(r,n)&&(i=\"\\u95f0\"+i),i},parseMonth:function(t,e){t=this._validateYear(t);var r,n=parseInt(e);if(isNaN(n))\"\\u95f0\"===e[0]&&(r=!0,e=e.substring(1)),\"\\u6708\"===e[e.length-1]&&(e=e.substring(0,e.length-1)),n=1+[\"\\u4e00\",\"\\u4e8c\",\"\\u4e09\",\"\\u56db\",\"\\u4e94\",\"\\u516d\",\"\\u4e03\",\"\\u516b\",\"\\u4e5d\",\"\\u5341\",\"\\u5341\\u4e00\",\"\\u5341\\u4e8c\"].indexOf(e);else{var i=e[e.length-1];r=\"i\"===i||\"I\"===i}return this.toMonthIndex(t,n,r)},dayNames:[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"],dayNamesShort:[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],dayNamesMin:[\"Su\",\"Mo\",\"Tu\",\"We\",\"Th\",\"Fr\",\"Sa\"],digits:null,dateFormat:\"yyyy/mm/dd\",firstDay:1,isRTL:!1}},_validateYear:function(t,e){if(t.year&&(t=t.year()),\"number\"!=typeof t||t<1888||t>2111)throw e.replace(/\\{0\\}/,this.local.name);return t},toMonthIndex:function(t,e,r){var i=this.intercalaryMonth(t);if(r&&e!==i||e<1||e>12)throw n.local.invalidMonth.replace(/\\{0\\}/,this.local.name);return i?!r&&e<=i?e-1:e:e-1},toChineseMonth:function(t,e){t.year&&(e=(t=t.year()).month());var r=this.intercalaryMonth(t);if(e<0||e>(r?12:11))throw n.local.invalidMonth.replace(/\\{0\\}/,this.local.name);return r?e<r?e+1:e:e+1},intercalaryMonth:function(t){return t=this._validateYear(t),f[t-f[0]]>>13},isIntercalaryMonth:function(t,e){t.year&&(e=(t=t.year()).month());var r=this.intercalaryMonth(t);return!!r&&r===e},leapYear:function(t){return 0!==this.intercalaryMonth(t)},weekOfYear:function(t,e,r){var i,o=this._validateYear(t,n.local.invalidyear),s=h[o-h[0]],l=s>>9&4095,c=s>>5&15,u=31&s;(i=a.newDate(l,c,u)).add(4-(i.dayOfWeek()||7),\"d\");var f=this.toJD(t,e,r)-i.toJD();return 1+Math.floor(f/7)},monthsInYear:function(t){return this.leapYear(t)?13:12},daysInMonth:function(t,e){t.year&&(e=t.month(),t=t.year()),t=this._validateYear(t);var r=f[t-f[0]];if(e>(r>>13?12:11))throw n.local.invalidMonth.replace(/\\{0\\}/,this.local.name);return r&1<<12-e?30:29},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)<6},toJD:function(t,e,r){var i=this._validate(t,s,r,n.local.invalidDate);t=this._validateYear(i.year()),e=i.month(),r=i.day();var o=this.isIntercalaryMonth(t,e),s=this.toChineseMonth(t,e),l=function(t,e,r,n,i){var a,o,s;if(\"object\"==typeof t)o=t,a=e||{};else{var l=\"number\"==typeof t&&t>=1888&&t<=2111;if(!l)throw new Error(\"Lunar year outside range 1888-2111\");var c=\"number\"==typeof e&&e>=1&&e<=12;if(!c)throw new Error(\"Lunar month outside range 1 - 12\");var u,p=\"number\"==typeof r&&r>=1&&r<=30;if(!p)throw new Error(\"Lunar day outside range 1 - 30\");\"object\"==typeof n?(u=!1,a=n):(u=!!n,a=i||{}),o={year:t,month:e,day:r,isIntercalary:u}}s=o.day-1;var d,g=f[o.year-f[0]],v=g>>13;d=v?o.month>v?o.month:o.isIntercalary?o.month:o.month-1:o.month-1;for(var m=0;m<d;m++){var y=g&1<<12-m?30:29;s+=y}var x=h[o.year-h[0]],b=new Date(x>>9&4095,(x>>5&15)-1,(31&x)+s);return a.year=b.getFullYear(),a.month=1+b.getMonth(),a.day=b.getDate(),a}(t,s,r,o);return a.toJD(l.year,l.month,l.day)},fromJD:function(t){var e=a.fromJD(t),r=function(t,e,r,n){var i,a;if(\"object\"==typeof t)i=t,a=e||{};else{var o=\"number\"==typeof t&&t>=1888&&t<=2111;if(!o)throw new Error(\"Solar year outside range 1888-2111\");var s=\"number\"==typeof e&&e>=1&&e<=12;if(!s)throw new Error(\"Solar month outside range 1 - 12\");var l=\"number\"==typeof r&&r>=1&&r<=31;if(!l)throw new Error(\"Solar day outside range 1 - 31\");i={year:t,month:e,day:r},a=n||{}}var c=h[i.year-h[0]],u=i.year<<9|i.month<<5|i.day;a.year=u>=c?i.year:i.year-1,c=h[a.year-h[0]];var p,d=new Date(c>>9&4095,(c>>5&15)-1,31&c),g=new Date(i.year,i.month-1,i.day);p=Math.round((g-d)/864e5);var v,m=f[a.year-f[0]];for(v=0;v<13;v++){var y=m&1<<12-v?30:29;if(p<y)break;p-=y}var x=m>>13;!x||v<x?(a.isIntercalary=!1,a.month=1+v):v===x?(a.isIntercalary=!0,a.month=v):(a.isIntercalary=!1,a.month=v);return a.day=1+p,a}(e.year(),e.month(),e.day()),n=this.toMonthIndex(r.year,r.month,r.isIntercalary);return this.newDate(r.year,n,r.day)},fromString:function(t){var e=t.match(s),r=this._validateYear(+e[1]),n=+e[2],i=!!e[3],a=this.toMonthIndex(r,n,i),o=+e[4];return this.newDate(r,a,o)},add:function(t,e,r){var n=t.year(),i=t.month(),a=this.isIntercalaryMonth(n,i),s=this.toChineseMonth(n,i),l=Object.getPrototypeOf(o.prototype).add.call(this,t,e,r);if(\"y\"===r){var c=l.year(),u=l.month(),f=this.isIntercalaryMonth(c,s),h=a&&f?this.toMonthIndex(c,s,!0):this.toMonthIndex(c,s,!1);h!==u&&l.month(h)}return l}});var s=/^\\s*(-?\\d\\d\\d\\d|\\d\\d)[-\\/](\\d?\\d)([iI]?)[-\\/](\\d?\\d)/m,l=/^\\d?\\d[iI]?/m,c=/^\\u95f0?\\u5341?[\\u4e00\\u4e8c\\u4e09\\u56db\\u4e94\\u516d\\u4e03\\u516b\\u4e5d]?\\u6708/m,u=/^\\u95f0?\\u5341?[\\u4e00\\u4e8c\\u4e09\\u56db\\u4e94\\u516d\\u4e03\\u516b\\u4e5d]?/m;n.calendars.chinese=o;var f=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],h=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904]},{\"../main\":548,\"object-assign\":437}],535:[function(t,e,r){var n=t(\"../main\"),i=t(\"object-assign\");function a(t){this.local=this.regionalOptions[t||\"\"]||this.regionalOptions[\"\"]}a.prototype=new n.baseCalendar,i(a.prototype,{name:\"Coptic\",jdEpoch:1825029.5,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{\"\":{name:\"Coptic\",epochs:[\"BAM\",\"AM\"],monthNames:[\"Thout\",\"Paopi\",\"Hathor\",\"Koiak\",\"Tobi\",\"Meshir\",\"Paremhat\",\"Paremoude\",\"Pashons\",\"Paoni\",\"Epip\",\"Mesori\",\"Pi Kogi Enavot\"],monthNamesShort:[\"Tho\",\"Pao\",\"Hath\",\"Koi\",\"Tob\",\"Mesh\",\"Pat\",\"Pad\",\"Pash\",\"Pao\",\"Epi\",\"Meso\",\"PiK\"],dayNames:[\"Tkyriaka\",\"Pesnau\",\"Pshoment\",\"Peftoou\",\"Ptiou\",\"Psoou\",\"Psabbaton\"],dayNamesShort:[\"Tky\",\"Pes\",\"Psh\",\"Pef\",\"Pti\",\"Pso\",\"Psa\"],dayNamesMin:[\"Tk\",\"Pes\",\"Psh\",\"Pef\",\"Pt\",\"Pso\",\"Psa\"],digits:null,dateFormat:\"dd/mm/yyyy\",firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);return(t=e.year()+(e.year()<0?1:0))%4==3||t%4==-1},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear||n.regionalOptions[\"\"].invalidYear),13},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),\"d\"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(13===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)<6},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return(t=i.year())<0&&t++,i.day()+30*(i.month()-1)+365*(t-1)+Math.floor(t/4)+this.jdEpoch-1},fromJD:function(t){var e=Math.floor(t)+.5-this.jdEpoch,r=Math.floor((e-Math.floor((e+366)/1461))/365)+1;r<=0&&r--,e=Math.floor(t)+.5-this.newDate(r,1,1).toJD();var n=Math.floor(e/30)+1,i=e-30*(n-1)+1;return this.newDate(r,n,i)}}),n.calendars.coptic=a},{\"../main\":548,\"object-assign\":437}],536:[function(t,e,r){var n=t(\"../main\"),i=t(\"object-assign\");function a(t){this.local=this.regionalOptions[t||\"\"]||this.regionalOptions[\"\"]}a.prototype=new n.baseCalendar,i(a.prototype,{name:\"Discworld\",jdEpoch:1721425.5,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{\"\":{name:\"Discworld\",epochs:[\"BUC\",\"UC\"],monthNames:[\"Ick\",\"Offle\",\"February\",\"March\",\"April\",\"May\",\"June\",\"Grune\",\"August\",\"Spune\",\"Sektober\",\"Ember\",\"December\"],monthNamesShort:[\"Ick\",\"Off\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Gru\",\"Aug\",\"Spu\",\"Sek\",\"Emb\",\"Dec\"],dayNames:[\"Sunday\",\"Octeday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"],dayNamesShort:[\"Sun\",\"Oct\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],dayNamesMin:[\"Su\",\"Oc\",\"Mo\",\"Tu\",\"We\",\"Th\",\"Fr\",\"Sa\"],digits:null,dateFormat:\"yyyy/mm/dd\",firstDay:2,isRTL:!1}},leapYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),!1},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),13},daysInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),400},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),\"d\"),Math.floor((n.dayOfYear()-1)/8)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(t,e,r){return(this._validate(t,e,r,n.local.invalidDate).day()+1)%8},weekDay:function(t,e,r){var n=this.dayOfWeek(t,e,r);return n>=2&&n<=6},extraInfo:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return{century:o[Math.floor((i.year()-1)/100)+1]||\"\"}},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return t=i.year()+(i.year()<0?1:0),e=i.month(),(r=i.day())+(e>1?16:0)+(e>2?32*(e-2):0)+400*(t-1)+this.jdEpoch-1},fromJD:function(t){t=Math.floor(t+.5)-Math.floor(this.jdEpoch)-1;var e=Math.floor(t/400)+1;t-=400*(e-1),t+=t>15?16:0;var r=Math.floor(t/32)+1,n=t-32*(r-1)+1;return this.newDate(e<=0?e-1:e,r,n)}});var o={20:\"Fruitbat\",21:\"Anchovy\"};n.calendars.discworld=a},{\"../main\":548,\"object-assign\":437}],537:[function(t,e,r){var n=t(\"../main\"),i=t(\"object-assign\");function a(t){this.local=this.regionalOptions[t||\"\"]||this.regionalOptions[\"\"]}a.prototype=new n.baseCalendar,i(a.prototype,{name:\"Ethiopian\",jdEpoch:1724220.5,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{\"\":{name:\"Ethiopian\",epochs:[\"BEE\",\"EE\"],monthNames:[\"Meskerem\",\"Tikemet\",\"Hidar\",\"Tahesas\",\"Tir\",\"Yekatit\",\"Megabit\",\"Miazia\",\"Genbot\",\"Sene\",\"Hamle\",\"Nehase\",\"Pagume\"],monthNamesShort:[\"Mes\",\"Tik\",\"Hid\",\"Tah\",\"Tir\",\"Yek\",\"Meg\",\"Mia\",\"Gen\",\"Sen\",\"Ham\",\"Neh\",\"Pag\"],dayNames:[\"Ehud\",\"Segno\",\"Maksegno\",\"Irob\",\"Hamus\",\"Arb\",\"Kidame\"],dayNamesShort:[\"Ehu\",\"Seg\",\"Mak\",\"Iro\",\"Ham\",\"Arb\",\"Kid\"],dayNamesMin:[\"Eh\",\"Se\",\"Ma\",\"Ir\",\"Ha\",\"Ar\",\"Ki\"],digits:null,dateFormat:\"dd/mm/yyyy\",firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);return(t=e.year()+(e.year()<0?1:0))%4==3||t%4==-1},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear||n.regionalOptions[\"\"].invalidYear),13},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),\"d\"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(13===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)<6},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return(t=i.year())<0&&t++,i.day()+30*(i.month()-1)+365*(t-1)+Math.floor(t/4)+this.jdEpoch-1},fromJD:function(t){var e=Math.floor(t)+.5-this.jdEpoch,r=Math.floor((e-Math.floor((e+366)/1461))/365)+1;r<=0&&r--,e=Math.floor(t)+.5-this.newDate(r,1,1).toJD();var n=Math.floor(e/30)+1,i=e-30*(n-1)+1;return this.newDate(r,n,i)}}),n.calendars.ethiopian=a},{\"../main\":548,\"object-assign\":437}],538:[function(t,e,r){var n=t(\"../main\"),i=t(\"object-assign\");function a(t){this.local=this.regionalOptions[t||\"\"]||this.regionalOptions[\"\"]}function o(t,e){return t-e*Math.floor(t/e)}a.prototype=new n.baseCalendar,i(a.prototype,{name:\"Hebrew\",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{\"\":{name:\"Hebrew\",epochs:[\"BAM\",\"AM\"],monthNames:[\"Nisan\",\"Iyar\",\"Sivan\",\"Tammuz\",\"Av\",\"Elul\",\"Tishrei\",\"Cheshvan\",\"Kislev\",\"Tevet\",\"Shevat\",\"Adar\",\"Adar II\"],monthNamesShort:[\"Nis\",\"Iya\",\"Siv\",\"Tam\",\"Av\",\"Elu\",\"Tis\",\"Che\",\"Kis\",\"Tev\",\"She\",\"Ada\",\"Ad2\"],dayNames:[\"Yom Rishon\",\"Yom Sheni\",\"Yom Shlishi\",\"Yom Revi'i\",\"Yom Chamishi\",\"Yom Shishi\",\"Yom Shabbat\"],dayNamesShort:[\"Ris\",\"She\",\"Shl\",\"Rev\",\"Cha\",\"Shi\",\"Sha\"],dayNamesMin:[\"Ri\",\"She\",\"Shl\",\"Re\",\"Ch\",\"Shi\",\"Sha\"],digits:null,dateFormat:\"dd/mm/yyyy\",firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);return this._leapYear(e.year())},_leapYear:function(t){return o(7*(t=t<0?t+1:t)+1,19)<7},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),this._leapYear(t.year?t.year():t)?13:12},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),\"d\"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(t){return t=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear).year(),this.toJD(-1===t?1:t+1,7,1)-this.toJD(t,7,1)},daysInMonth:function(t,e){return t.year&&(e=t.month(),t=t.year()),this._validate(t,e,this.minDay,n.local.invalidMonth),12===e&&this.leapYear(t)?30:8===e&&5===o(this.daysInYear(t),10)?30:9===e&&3===o(this.daysInYear(t),10)?29:this.daysPerMonth[e-1]},weekDay:function(t,e,r){return 6!==this.dayOfWeek(t,e,r)},extraInfo:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return{yearType:(this.leapYear(i)?\"embolismic\":\"common\")+\" \"+[\"deficient\",\"regular\",\"complete\"][this.daysInYear(i)%10-3]}},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);t=i.year(),e=i.month(),r=i.day();var a=t<=0?t+1:t,o=this.jdEpoch+this._delay1(a)+this._delay2(a)+r+1;if(e<7){for(var s=7;s<=this.monthsInYear(t);s++)o+=this.daysInMonth(t,s);for(s=1;s<e;s++)o+=this.daysInMonth(t,s)}else for(s=7;s<e;s++)o+=this.daysInMonth(t,s);return o},_delay1:function(t){var e=Math.floor((235*t-234)/19),r=12084+13753*e,n=29*e+Math.floor(r/25920);return o(3*(n+1),7)<3&&n++,n},_delay2:function(t){var e=this._delay1(t-1),r=this._delay1(t);return this._delay1(t+1)-r==356?2:r-e==382?1:0},fromJD:function(t){t=Math.floor(t)+.5;for(var e=Math.floor(98496*(t-this.jdEpoch)/35975351)-1;t>=this.toJD(-1===e?1:e+1,7,1);)e++;for(var r=t<this.toJD(e,1,1)?7:1;t>this.toJD(e,r,this.daysInMonth(e,r));)r++;var n=t-this.toJD(e,r,1)+1;return this.newDate(e,r,n)}}),n.calendars.hebrew=a},{\"../main\":548,\"object-assign\":437}],539:[function(t,e,r){var n=t(\"../main\"),i=t(\"object-assign\");function a(t){this.local=this.regionalOptions[t||\"\"]||this.regionalOptions[\"\"]}a.prototype=new n.baseCalendar,i(a.prototype,{name:\"Islamic\",jdEpoch:1948439.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{\"\":{name:\"Islamic\",epochs:[\"BH\",\"AH\"],monthNames:[\"Muharram\",\"Safar\",\"Rabi' al-awwal\",\"Rabi' al-thani\",\"Jumada al-awwal\",\"Jumada al-thani\",\"Rajab\",\"Sha'aban\",\"Ramadan\",\"Shawwal\",\"Dhu al-Qi'dah\",\"Dhu al-Hijjah\"],monthNamesShort:[\"Muh\",\"Saf\",\"Rab1\",\"Rab2\",\"Jum1\",\"Jum2\",\"Raj\",\"Sha'\",\"Ram\",\"Shaw\",\"DhuQ\",\"DhuH\"],dayNames:[\"Yawm al-ahad\",\"Yawm al-ithnayn\",\"Yawm ath-thulaathaa'\",\"Yawm al-arbi'aa'\",\"Yawm al-kham\\u012bs\",\"Yawm al-jum'a\",\"Yawm as-sabt\"],dayNamesShort:[\"Aha\",\"Ith\",\"Thu\",\"Arb\",\"Kha\",\"Jum\",\"Sab\"],dayNamesMin:[\"Ah\",\"It\",\"Th\",\"Ar\",\"Kh\",\"Ju\",\"Sa\"],digits:null,dateFormat:\"yyyy/mm/dd\",firstDay:6,isRTL:!1}},leapYear:function(t){return(11*this._validate(t,this.minMonth,this.minDay,n.local.invalidYear).year()+14)%30<11},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),\"d\"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(t){return this.leapYear(t)?355:354},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(12===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return 5!==this.dayOfWeek(t,e,r)},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return t=i.year(),e=i.month(),t=t<=0?t+1:t,(r=i.day())+Math.ceil(29.5*(e-1))+354*(t-1)+Math.floor((3+11*t)/30)+this.jdEpoch-1},fromJD:function(t){t=Math.floor(t)+.5;var e=Math.floor((30*(t-this.jdEpoch)+10646)/10631);e=e<=0?e-1:e;var r=Math.min(12,Math.ceil((t-29-this.toJD(e,1,1))/29.5)+1),n=t-this.toJD(e,r,1)+1;return this.newDate(e,r,n)}}),n.calendars.islamic=a},{\"../main\":548,\"object-assign\":437}],540:[function(t,e,r){var n=t(\"../main\"),i=t(\"object-assign\");function a(t){this.local=this.regionalOptions[t||\"\"]||this.regionalOptions[\"\"]}a.prototype=new n.baseCalendar,i(a.prototype,{name:\"Julian\",jdEpoch:1721423.5,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{\"\":{name:\"Julian\",epochs:[\"BC\",\"AD\"],monthNames:[\"January\",\"February\",\"March\",\"April\",\"May\",\"June\",\"July\",\"August\",\"September\",\"October\",\"November\",\"December\"],monthNamesShort:[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\"],dayNames:[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"],dayNamesShort:[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],dayNamesMin:[\"Su\",\"Mo\",\"Tu\",\"We\",\"Th\",\"Fr\",\"Sa\"],digits:null,dateFormat:\"mm/dd/yyyy\",firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);return(t=e.year()<0?e.year()+1:e.year())%4==0},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(4-(n.dayOfWeek()||7),\"d\"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(2===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)<6},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return t=i.year(),e=i.month(),r=i.day(),t<0&&t++,e<=2&&(t--,e+=12),Math.floor(365.25*(t+4716))+Math.floor(30.6001*(e+1))+r-1524.5},fromJD:function(t){var e=Math.floor(t+.5)+1524,r=Math.floor((e-122.1)/365.25),n=Math.floor(365.25*r),i=Math.floor((e-n)/30.6001),a=i-Math.floor(i<14?1:13),o=r-Math.floor(a>2?4716:4715),s=e-n-Math.floor(30.6001*i);return o<=0&&o--,this.newDate(o,a,s)}}),n.calendars.julian=a},{\"../main\":548,\"object-assign\":437}],541:[function(t,e,r){var n=t(\"../main\"),i=t(\"object-assign\");function a(t){this.local=this.regionalOptions[t||\"\"]||this.regionalOptions[\"\"]}function o(t,e){return t-e*Math.floor(t/e)}function s(t,e){return o(t-1,e)+1}a.prototype=new n.baseCalendar,i(a.prototype,{name:\"Mayan\",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{\"\":{name:\"Mayan\",epochs:[\"\",\"\"],monthNames:[\"0\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\",\"13\",\"14\",\"15\",\"16\",\"17\"],monthNamesShort:[\"0\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\",\"13\",\"14\",\"15\",\"16\",\"17\"],dayNames:[\"0\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\",\"13\",\"14\",\"15\",\"16\",\"17\",\"18\",\"19\"],dayNamesShort:[\"0\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\",\"13\",\"14\",\"15\",\"16\",\"17\",\"18\",\"19\"],dayNamesMin:[\"0\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\",\"13\",\"14\",\"15\",\"16\",\"17\",\"18\",\"19\"],digits:null,dateFormat:\"YYYY.m.d\",firstDay:0,isRTL:!1,haabMonths:[\"Pop\",\"Uo\",\"Zip\",\"Zotz\",\"Tzec\",\"Xul\",\"Yaxkin\",\"Mol\",\"Chen\",\"Yax\",\"Zac\",\"Ceh\",\"Mac\",\"Kankin\",\"Muan\",\"Pax\",\"Kayab\",\"Cumku\",\"Uayeb\"],tzolkinMonths:[\"Imix\",\"Ik\",\"Akbal\",\"Kan\",\"Chicchan\",\"Cimi\",\"Manik\",\"Lamat\",\"Muluc\",\"Oc\",\"Chuen\",\"Eb\",\"Ben\",\"Ix\",\"Men\",\"Cib\",\"Caban\",\"Etznab\",\"Cauac\",\"Ahau\"]}},leapYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),!1},formatYear:function(t){t=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear).year();var e=Math.floor(t/400);return t%=400,t+=t<0?400:0,e+\".\"+Math.floor(t/20)+\".\"+t%20},forYear:function(t){if((t=t.split(\".\")).length<3)throw\"Invalid Mayan year\";for(var e=0,r=0;r<t.length;r++){var n=parseInt(t[r],10);if(Math.abs(n)>19||r>0&&n<0)throw\"Invalid Mayan year\";e=20*e+n}return e},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),18},weekOfYear:function(t,e,r){return this._validate(t,e,r,n.local.invalidDate),0},daysInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),360},daysInMonth:function(t,e){return this._validate(t,e,this.minDay,n.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(t,e,r){return this._validate(t,e,r,n.local.invalidDate).day()},weekDay:function(t,e,r){return this._validate(t,e,r,n.local.invalidDate),!0},extraInfo:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate).toJD(),a=this._toHaab(i),o=this._toTzolkin(i);return{haabMonthName:this.local.haabMonths[a[0]-1],haabMonth:a[0],haabDay:a[1],tzolkinDayName:this.local.tzolkinMonths[o[0]-1],tzolkinDay:o[0],tzolkinTrecena:o[1]}},_toHaab:function(t){var e=o((t-=this.jdEpoch)+8+340,365);return[Math.floor(e/20)+1,o(e,20)]},_toTzolkin:function(t){return[s((t-=this.jdEpoch)+20,20),s(t+4,13)]},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return i.day()+20*i.month()+360*i.year()+this.jdEpoch},fromJD:function(t){t=Math.floor(t)+.5-this.jdEpoch;var e=Math.floor(t/360);t%=360,t+=t<0?360:0;var r=Math.floor(t/20),n=t%20;return this.newDate(e,r,n)}}),n.calendars.mayan=a},{\"../main\":548,\"object-assign\":437}],542:[function(t,e,r){var n=t(\"../main\"),i=t(\"object-assign\");function a(t){this.local=this.regionalOptions[t||\"\"]||this.regionalOptions[\"\"]}a.prototype=new n.baseCalendar;var o=n.instance(\"gregorian\");i(a.prototype,{name:\"Nanakshahi\",jdEpoch:2257673.5,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{\"\":{name:\"Nanakshahi\",epochs:[\"BN\",\"AN\"],monthNames:[\"Chet\",\"Vaisakh\",\"Jeth\",\"Harh\",\"Sawan\",\"Bhadon\",\"Assu\",\"Katak\",\"Maghar\",\"Poh\",\"Magh\",\"Phagun\"],monthNamesShort:[\"Che\",\"Vai\",\"Jet\",\"Har\",\"Saw\",\"Bha\",\"Ass\",\"Kat\",\"Mgr\",\"Poh\",\"Mgh\",\"Pha\"],dayNames:[\"Somvaar\",\"Mangalvar\",\"Budhvaar\",\"Veervaar\",\"Shukarvaar\",\"Sanicharvaar\",\"Etvaar\"],dayNamesShort:[\"Som\",\"Mangal\",\"Budh\",\"Veer\",\"Shukar\",\"Sanichar\",\"Et\"],dayNamesMin:[\"So\",\"Ma\",\"Bu\",\"Ve\",\"Sh\",\"Sa\",\"Et\"],digits:null,dateFormat:\"dd-mm-yyyy\",firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear||n.regionalOptions[\"\"].invalidYear);return o.leapYear(e.year()+(e.year()<1?1:0)+1469)},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(1-(n.dayOfWeek()||7),\"d\"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(12===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)<6},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidMonth);(t=i.year())<0&&t++;for(var a=i.day(),s=1;s<i.month();s++)a+=this.daysPerMonth[s-1];return a+o.toJD(t+1468,3,13)},fromJD:function(t){t=Math.floor(t+.5);for(var e=Math.floor((t-(this.jdEpoch-1))/366);t>=this.toJD(e+1,1,1);)e++;for(var r=t-Math.floor(this.toJD(e,1,1)+.5)+1,n=1;r>this.daysInMonth(e,n);)r-=this.daysInMonth(e,n),n++;return this.newDate(e,n,r)}}),n.calendars.nanakshahi=a},{\"../main\":548,\"object-assign\":437}],543:[function(t,e,r){var n=t(\"../main\"),i=t(\"object-assign\");function a(t){this.local=this.regionalOptions[t||\"\"]||this.regionalOptions[\"\"]}a.prototype=new n.baseCalendar,i(a.prototype,{name:\"Nepali\",jdEpoch:1700709.5,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{\"\":{name:\"Nepali\",epochs:[\"BBS\",\"ABS\"],monthNames:[\"Baisakh\",\"Jestha\",\"Ashadh\",\"Shrawan\",\"Bhadra\",\"Ashwin\",\"Kartik\",\"Mangsir\",\"Paush\",\"Mangh\",\"Falgun\",\"Chaitra\"],monthNamesShort:[\"Bai\",\"Je\",\"As\",\"Shra\",\"Bha\",\"Ash\",\"Kar\",\"Mang\",\"Pau\",\"Ma\",\"Fal\",\"Chai\"],dayNames:[\"Aaitabaar\",\"Sombaar\",\"Manglbaar\",\"Budhabaar\",\"Bihibaar\",\"Shukrabaar\",\"Shanibaar\"],dayNamesShort:[\"Aaita\",\"Som\",\"Mangl\",\"Budha\",\"Bihi\",\"Shukra\",\"Shani\"],dayNamesMin:[\"Aai\",\"So\",\"Man\",\"Bu\",\"Bi\",\"Shu\",\"Sha\"],digits:null,dateFormat:\"dd/mm/yyyy\",firstDay:1,isRTL:!1}},leapYear:function(t){return this.daysInYear(t)!==this.daysPerYear},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),\"d\"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(t){if(t=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear).year(),\"undefined\"==typeof this.NEPALI_CALENDAR_DATA[t])return this.daysPerYear;for(var e=0,r=this.minMonth;r<=12;r++)e+=this.NEPALI_CALENDAR_DATA[t][r];return e},daysInMonth:function(t,e){return t.year&&(e=t.month(),t=t.year()),this._validate(t,e,this.minDay,n.local.invalidMonth),\"undefined\"==typeof this.NEPALI_CALENDAR_DATA[t]?this.daysPerMonth[e-1]:this.NEPALI_CALENDAR_DATA[t][e]},weekDay:function(t,e,r){return 6!==this.dayOfWeek(t,e,r)},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);t=i.year(),e=i.month(),r=i.day();var a=n.instance(),o=0,s=e,l=t;this._createMissingCalendarData(t);var c=t-(s>9||9===s&&r>=this.NEPALI_CALENDAR_DATA[l][0]?56:57);for(9!==e&&(o=r,s--);9!==s;)s<=0&&(s=12,l--),o+=this.NEPALI_CALENDAR_DATA[l][s],s--;return 9===e?(o+=r-this.NEPALI_CALENDAR_DATA[l][0])<0&&(o+=a.daysInYear(c)):o+=this.NEPALI_CALENDAR_DATA[l][9]-this.NEPALI_CALENDAR_DATA[l][0],a.newDate(c,1,1).add(o,\"d\").toJD()},fromJD:function(t){var e=n.instance().fromJD(t),r=e.year(),i=e.dayOfYear(),a=r+56;this._createMissingCalendarData(a);for(var o=9,s=this.NEPALI_CALENDAR_DATA[a][0],l=this.NEPALI_CALENDAR_DATA[a][o]-s+1;i>l;)++o>12&&(o=1,a++),l+=this.NEPALI_CALENDAR_DATA[a][o];var c=this.NEPALI_CALENDAR_DATA[a][o]-(l-i);return this.newDate(a,o,c)},_createMissingCalendarData:function(t){var e=this.daysPerMonth.slice(0);e.unshift(17);for(var r=t-1;r<t+2;r++)\"undefined\"==typeof this.NEPALI_CALENDAR_DATA[r]&&(this.NEPALI_CALENDAR_DATA[r]=e)},NEPALI_CALENDAR_DATA:{1970:[18,31,31,32,31,31,31,30,29,30,29,30,30],1971:[18,31,31,32,31,32,30,30,29,30,29,30,30],1972:[17,31,32,31,32,31,30,30,30,29,29,30,30],1973:[19,30,32,31,32,31,30,30,30,29,30,29,31],1974:[19,31,31,32,30,31,31,30,29,30,29,30,30],1975:[18,31,31,32,32,30,31,30,29,30,29,30,30],1976:[17,31,32,31,32,31,30,30,30,29,29,30,31],1977:[18,31,32,31,32,31,31,29,30,29,30,29,31],1978:[18,31,31,32,31,31,31,30,29,30,29,30,30],1979:[18,31,31,32,32,31,30,30,29,30,29,30,30],1980:[17,31,32,31,32,31,30,30,30,29,29,30,31],1981:[18,31,31,31,32,31,31,29,30,30,29,30,30],1982:[18,31,31,32,31,31,31,30,29,30,29,30,30],1983:[18,31,31,32,32,31,30,30,29,30,29,30,30],1984:[17,31,32,31,32,31,30,30,30,29,29,30,31],1985:[18,31,31,31,32,31,31,29,30,30,29,30,30],1986:[18,31,31,32,31,31,31,30,29,30,29,30,30],1987:[18,31,32,31,32,31,30,30,29,30,29,30,30],1988:[17,31,32,31,32,31,30,30,30,29,29,30,31],1989:[18,31,31,31,32,31,31,30,29,30,29,30,30],1990:[18,31,31,32,31,31,31,30,29,30,29,30,30],1991:[18,31,32,31,32,31,30,30,29,30,29,30,30],1992:[17,31,32,31,32,31,30,30,30,29,30,29,31],1993:[18,31,31,31,32,31,31,30,29,30,29,30,30],1994:[18,31,31,32,31,31,31,30,29,30,29,30,30],1995:[17,31,32,31,32,31,30,30,30,29,29,30,30],1996:[17,31,32,31,32,31,30,30,30,29,30,29,31],1997:[18,31,31,32,31,31,31,30,29,30,29,30,30],1998:[18,31,31,32,31,31,31,30,29,30,29,30,30],1999:[17,31,32,31,32,31,30,30,30,29,29,30,31],2000:[17,30,32,31,32,31,30,30,30,29,30,29,31],2001:[18,31,31,32,31,31,31,30,29,30,29,30,30],2002:[18,31,31,32,32,31,30,30,29,30,29,30,30],2003:[17,31,32,31,32,31,30,30,30,29,29,30,31],2004:[17,30,32,31,32,31,30,30,30,29,30,29,31],2005:[18,31,31,32,31,31,31,30,29,30,29,30,30],2006:[18,31,31,32,32,31,30,30,29,30,29,30,30],2007:[17,31,32,31,32,31,30,30,30,29,29,30,31],2008:[17,31,31,31,32,31,31,29,30,30,29,29,31],2009:[18,31,31,32,31,31,31,30,29,30,29,30,30],2010:[18,31,31,32,32,31,30,30,29,30,29,30,30],2011:[17,31,32,31,32,31,30,30,30,29,29,30,31],2012:[17,31,31,31,32,31,31,29,30,30,29,30,30],2013:[18,31,31,32,31,31,31,30,29,30,29,30,30],2014:[18,31,31,32,32,31,30,30,29,30,29,30,30],2015:[17,31,32,31,32,31,30,30,30,29,29,30,31],2016:[17,31,31,31,32,31,31,29,30,30,29,30,30],2017:[18,31,31,32,31,31,31,30,29,30,29,30,30],2018:[18,31,32,31,32,31,30,30,29,30,29,30,30],2019:[17,31,32,31,32,31,30,30,30,29,30,29,31],2020:[17,31,31,31,32,31,31,30,29,30,29,30,30],2021:[18,31,31,32,31,31,31,30,29,30,29,30,30],2022:[17,31,32,31,32,31,30,30,30,29,29,30,30],2023:[17,31,32,31,32,31,30,30,30,29,30,29,31],2024:[17,31,31,31,32,31,31,30,29,30,29,30,30],2025:[18,31,31,32,31,31,31,30,29,30,29,30,30],2026:[17,31,32,31,32,31,30,30,30,29,29,30,31],2027:[17,30,32,31,32,31,30,30,30,29,30,29,31],2028:[17,31,31,32,31,31,31,30,29,30,29,30,30],2029:[18,31,31,32,31,32,30,30,29,30,29,30,30],2030:[17,31,32,31,32,31,30,30,30,30,30,30,31],2031:[17,31,32,31,32,31,31,31,31,31,31,31,31],2032:[17,32,32,32,32,32,32,32,32,32,32,32,32],2033:[18,31,31,32,32,31,30,30,29,30,29,30,30],2034:[17,31,32,31,32,31,30,30,30,29,29,30,31],2035:[17,30,32,31,32,31,31,29,30,30,29,29,31],2036:[17,31,31,32,31,31,31,30,29,30,29,30,30],2037:[18,31,31,32,32,31,30,30,29,30,29,30,30],2038:[17,31,32,31,32,31,30,30,30,29,29,30,31],2039:[17,31,31,31,32,31,31,29,30,30,29,30,30],2040:[17,31,31,32,31,31,31,30,29,30,29,30,30],2041:[18,31,31,32,32,31,30,30,29,30,29,30,30],2042:[17,31,32,31,32,31,30,30,30,29,29,30,31],2043:[17,31,31,31,32,31,31,29,30,30,29,30,30],2044:[17,31,31,32,31,31,31,30,29,30,29,30,30],2045:[18,31,32,31,32,31,30,30,29,30,29,30,30],2046:[17,31,32,31,32,31,30,30,30,29,29,30,31],2047:[17,31,31,31,32,31,31,30,29,30,29,30,30],2048:[17,31,31,32,31,31,31,30,29,30,29,30,30],2049:[17,31,32,31,32,31,30,30,30,29,29,30,30],2050:[17,31,32,31,32,31,30,30,30,29,30,29,31],2051:[17,31,31,31,32,31,31,30,29,30,29,30,30],2052:[17,31,31,32,31,31,31,30,29,30,29,30,30],2053:[17,31,32,31,32,31,30,30,30,29,29,30,30],2054:[17,31,32,31,32,31,30,30,30,29,30,29,31],2055:[17,31,31,32,31,31,31,30,29,30,30,29,30],2056:[17,31,31,32,31,32,30,30,29,30,29,30,30],2057:[17,31,32,31,32,31,30,30,30,29,29,30,31],2058:[17,30,32,31,32,31,30,30,30,29,30,29,31],2059:[17,31,31,32,31,31,31,30,29,30,29,30,30],2060:[17,31,31,32,32,31,30,30,29,30,29,30,30],2061:[17,31,32,31,32,31,30,30,30,29,29,30,31],2062:[17,30,32,31,32,31,31,29,30,29,30,29,31],2063:[17,31,31,32,31,31,31,30,29,30,29,30,30],2064:[17,31,31,32,32,31,30,30,29,30,29,30,30],2065:[17,31,32,31,32,31,30,30,30,29,29,30,31],2066:[17,31,31,31,32,31,31,29,30,30,29,29,31],2067:[17,31,31,32,31,31,31,30,29,30,29,30,30],2068:[17,31,31,32,32,31,30,30,29,30,29,30,30],2069:[17,31,32,31,32,31,30,30,30,29,29,30,31],2070:[17,31,31,31,32,31,31,29,30,30,29,30,30],2071:[17,31,31,32,31,31,31,30,29,30,29,30,30],2072:[17,31,32,31,32,31,30,30,29,30,29,30,30],2073:[17,31,32,31,32,31,30,30,30,29,29,30,31],2074:[17,31,31,31,32,31,31,30,29,30,29,30,30],2075:[17,31,31,32,31,31,31,30,29,30,29,30,30],2076:[16,31,32,31,32,31,30,30,30,29,29,30,30],2077:[17,31,32,31,32,31,30,30,30,29,30,29,31],2078:[17,31,31,31,32,31,31,30,29,30,29,30,30],2079:[17,31,31,32,31,31,31,30,29,30,29,30,30],2080:[16,31,32,31,32,31,30,30,30,29,29,30,30],2081:[17,31,31,32,32,31,30,30,30,29,30,30,30],2082:[17,31,32,31,32,31,30,30,30,29,30,30,30],2083:[17,31,31,32,31,31,30,30,30,29,30,30,30],2084:[17,31,31,32,31,31,30,30,30,29,30,30,30],2085:[17,31,32,31,32,31,31,30,30,29,30,30,30],2086:[17,31,32,31,32,31,30,30,30,29,30,30,30],2087:[16,31,31,32,31,31,31,30,30,29,30,30,30],2088:[16,30,31,32,32,30,31,30,30,29,30,30,30],2089:[17,31,32,31,32,31,30,30,30,29,30,30,30],2090:[17,31,32,31,32,31,30,30,30,29,30,30,30],2091:[16,31,31,32,31,31,31,30,30,29,30,30,30],2092:[16,31,31,32,32,31,30,30,30,29,30,30,30],2093:[17,31,32,31,32,31,30,30,30,29,30,30,30],2094:[17,31,31,32,31,31,30,30,30,29,30,30,30],2095:[17,31,31,32,31,31,31,30,29,30,30,30,30],2096:[17,30,31,32,32,31,30,30,29,30,29,30,30],2097:[17,31,32,31,32,31,30,30,30,29,30,30,30],2098:[17,31,31,32,31,31,31,29,30,29,30,30,31],2099:[17,31,31,32,31,31,31,30,29,29,30,30,30],2100:[17,31,32,31,32,30,31,30,29,30,29,30,30]}}),n.calendars.nepali=a},{\"../main\":548,\"object-assign\":437}],544:[function(t,e,r){var n=t(\"../main\"),i=t(\"object-assign\");function a(t){this.local=this.regionalOptions[t||\"\"]||this.regionalOptions[\"\"]}function o(t,e){return t-e*Math.floor(t/e)}a.prototype=new n.baseCalendar,i(a.prototype,{name:\"Persian\",jdEpoch:1948320.5,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{\"\":{name:\"Persian\",epochs:[\"BP\",\"AP\"],monthNames:[\"Farvardin\",\"Ordibehesht\",\"Khordad\",\"Tir\",\"Mordad\",\"Shahrivar\",\"Mehr\",\"Aban\",\"Azar\",\"Day\",\"Bahman\",\"Esfand\"],monthNamesShort:[\"Far\",\"Ord\",\"Kho\",\"Tir\",\"Mor\",\"Sha\",\"Meh\",\"Aba\",\"Aza\",\"Day\",\"Bah\",\"Esf\"],dayNames:[\"Yekshambe\",\"Doshambe\",\"Seshambe\",\"Ch\\xe6harshambe\",\"Panjshambe\",\"Jom'e\",\"Shambe\"],dayNamesShort:[\"Yek\",\"Do\",\"Se\",\"Ch\\xe6\",\"Panj\",\"Jom\",\"Sha\"],dayNamesMin:[\"Ye\",\"Do\",\"Se\",\"Ch\",\"Pa\",\"Jo\",\"Sh\"],digits:null,dateFormat:\"yyyy/mm/dd\",firstDay:6,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);return 682*((e.year()-(e.year()>0?474:473))%2820+474+38)%2816<682},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-(n.dayOfWeek()+1)%7,\"d\"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(12===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return 5!==this.dayOfWeek(t,e,r)},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);t=i.year(),e=i.month(),r=i.day();var a=t-(t>=0?474:473),s=474+o(a,2820);return r+(e<=7?31*(e-1):30*(e-1)+6)+Math.floor((682*s-110)/2816)+365*(s-1)+1029983*Math.floor(a/2820)+this.jdEpoch-1},fromJD:function(t){var e=(t=Math.floor(t)+.5)-this.toJD(475,1,1),r=Math.floor(e/1029983),n=o(e,1029983),i=2820;if(1029982!==n){var a=Math.floor(n/366),s=o(n,366);i=Math.floor((2134*a+2816*s+2815)/1028522)+a+1}var l=i+2820*r+474;l=l<=0?l-1:l;var c=t-this.toJD(l,1,1)+1,u=c<=186?Math.ceil(c/31):Math.ceil((c-6)/30),f=t-this.toJD(l,u,1)+1;return this.newDate(l,u,f)}}),n.calendars.persian=a,n.calendars.jalali=a},{\"../main\":548,\"object-assign\":437}],545:[function(t,e,r){var n=t(\"../main\"),i=t(\"object-assign\"),a=n.instance();function o(t){this.local=this.regionalOptions[t||\"\"]||this.regionalOptions[\"\"]}o.prototype=new n.baseCalendar,i(o.prototype,{name:\"Taiwan\",jdEpoch:2419402.5,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{\"\":{name:\"Taiwan\",epochs:[\"BROC\",\"ROC\"],monthNames:[\"January\",\"February\",\"March\",\"April\",\"May\",\"June\",\"July\",\"August\",\"September\",\"October\",\"November\",\"December\"],monthNamesShort:[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\"],dayNames:[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"],dayNamesShort:[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],dayNamesMin:[\"Su\",\"Mo\",\"Tu\",\"We\",\"Th\",\"Fr\",\"Sa\"],digits:null,dateFormat:\"yyyy/mm/dd\",firstDay:1,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);t=this._t2gYear(e.year());return a.leapYear(t)},weekOfYear:function(t,e,r){var i=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);t=this._t2gYear(i.year());return a.weekOfYear(t,i.month(),i.day())},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(2===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)<6},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);t=this._t2gYear(i.year());return a.toJD(t,i.month(),i.day())},fromJD:function(t){var e=a.fromJD(t),r=this._g2tYear(e.year());return this.newDate(r,e.month(),e.day())},_t2gYear:function(t){return t+this.yearsOffset+(t>=-this.yearsOffset&&t<=-1?1:0)},_g2tYear:function(t){return t-this.yearsOffset-(t>=1&&t<=this.yearsOffset?1:0)}}),n.calendars.taiwan=o},{\"../main\":548,\"object-assign\":437}],546:[function(t,e,r){var n=t(\"../main\"),i=t(\"object-assign\"),a=n.instance();function o(t){this.local=this.regionalOptions[t||\"\"]||this.regionalOptions[\"\"]}o.prototype=new n.baseCalendar,i(o.prototype,{name:\"Thai\",jdEpoch:1523098.5,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{\"\":{name:\"Thai\",epochs:[\"BBE\",\"BE\"],monthNames:[\"January\",\"February\",\"March\",\"April\",\"May\",\"June\",\"July\",\"August\",\"September\",\"October\",\"November\",\"December\"],monthNamesShort:[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\"],dayNames:[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"],dayNamesShort:[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],dayNamesMin:[\"Su\",\"Mo\",\"Tu\",\"We\",\"Th\",\"Fr\",\"Sa\"],digits:null,dateFormat:\"dd/mm/yyyy\",firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);t=this._t2gYear(e.year());return a.leapYear(t)},weekOfYear:function(t,e,r){var i=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);t=this._t2gYear(i.year());return a.weekOfYear(t,i.month(),i.day())},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(2===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)<6},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);t=this._t2gYear(i.year());return a.toJD(t,i.month(),i.day())},fromJD:function(t){var e=a.fromJD(t),r=this._g2tYear(e.year());return this.newDate(r,e.month(),e.day())},_t2gYear:function(t){return t-this.yearsOffset-(t>=1&&t<=this.yearsOffset?1:0)},_g2tYear:function(t){return t+this.yearsOffset+(t>=-this.yearsOffset&&t<=-1?1:0)}}),n.calendars.thai=o},{\"../main\":548,\"object-assign\":437}],547:[function(t,e,r){var n=t(\"../main\"),i=t(\"object-assign\");function a(t){this.local=this.regionalOptions[t||\"\"]||this.regionalOptions[\"\"]}a.prototype=new n.baseCalendar,i(a.prototype,{name:\"UmmAlQura\",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{\"\":{name:\"Umm al-Qura\",epochs:[\"BH\",\"AH\"],monthNames:[\"Al-Muharram\",\"Safar\",\"Rabi' al-awwal\",\"Rabi' Al-Thani\",\"Jumada Al-Awwal\",\"Jumada Al-Thani\",\"Rajab\",\"Sha'aban\",\"Ramadan\",\"Shawwal\",\"Dhu al-Qi'dah\",\"Dhu al-Hijjah\"],monthNamesShort:[\"Muh\",\"Saf\",\"Rab1\",\"Rab2\",\"Jum1\",\"Jum2\",\"Raj\",\"Sha'\",\"Ram\",\"Shaw\",\"DhuQ\",\"DhuH\"],dayNames:[\"Yawm al-Ahad\",\"Yawm al-Ithnain\",\"Yawm al-Thal\\u0101th\\u0101\\u2019\",\"Yawm al-Arba\\u2018\\u0101\\u2019\",\"Yawm al-Kham\\u012bs\",\"Yawm al-Jum\\u2018a\",\"Yawm al-Sabt\"],dayNamesMin:[\"Ah\",\"Ith\",\"Th\",\"Ar\",\"Kh\",\"Ju\",\"Sa\"],digits:null,dateFormat:\"yyyy/mm/dd\",firstDay:6,isRTL:!0}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);return 355===this.daysInYear(e.year())},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),\"d\"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(t){for(var e=0,r=1;r<=12;r++)e+=this.daysInMonth(t,r);return e},daysInMonth:function(t,e){for(var r=this._validate(t,e,this.minDay,n.local.invalidMonth).toJD()-24e5+.5,i=0,a=0;a<o.length;a++){if(o[a]>r)return o[i]-o[i-1];i++}return 30},weekDay:function(t,e,r){return 5!==this.dayOfWeek(t,e,r)},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate),a=12*(i.year()-1)+i.month()-15292;return i.day()+o[a-1]-1+24e5-.5},fromJD:function(t){for(var e=t-24e5+.5,r=0,n=0;n<o.length&&!(o[n]>e);n++)r++;var i=r+15292,a=Math.floor((i-1)/12),s=a+1,l=i-12*a,c=e-o[r-1]+1;return this.newDate(s,l,c)},isValid:function(t,e,r){var i=n.baseCalendar.prototype.isValid.apply(this,arguments);return i&&(i=(t=null!=t.year?t.year:t)>=1276&&t<=1500),i},_validate:function(t,e,r,i){var a=n.baseCalendar.prototype._validate.apply(this,arguments);if(a.year<1276||a.year>1500)throw i.replace(/\\{0\\}/,this.local.name);return a}}),n.calendars.ummalqura=a;var o=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]},{\"../main\":548,\"object-assign\":437}],548:[function(t,e,r){var n=t(\"object-assign\");function i(){this.regionalOptions=[],this.regionalOptions[\"\"]={invalidCalendar:\"Calendar {0} not found\",invalidDate:\"Invalid {0} date\",invalidMonth:\"Invalid {0} month\",invalidYear:\"Invalid {0} year\",differentCalendars:\"Cannot mix {0} and {1} dates\"},this.local=this.regionalOptions[\"\"],this.calendars={},this._localCals={}}function a(t,e,r,n){if(this._calendar=t,this._year=e,this._month=r,this._day=n,0===this._calendar._validateLevel&&!this._calendar.isValid(this._year,this._month,this._day))throw(c.local.invalidDate||c.regionalOptions[\"\"].invalidDate).replace(/\\{0\\}/,this._calendar.local.name)}function o(t,e){return\"000000\".substring(0,e-(t=\"\"+t).length)+t}function s(){this.shortYearCutoff=\"+10\"}function l(t){this.local=this.regionalOptions[t]||this.regionalOptions[\"\"]}n(i.prototype,{instance:function(t,e){t=(t||\"gregorian\").toLowerCase(),e=e||\"\";var r=this._localCals[t+\"-\"+e];if(!r&&this.calendars[t]&&(r=new this.calendars[t](e),this._localCals[t+\"-\"+e]=r),!r)throw(this.local.invalidCalendar||this.regionalOptions[\"\"].invalidCalendar).replace(/\\{0\\}/,t);return r},newDate:function(t,e,r,n,i){return(n=(null!=t&&t.year?t.calendar():\"string\"==typeof n?this.instance(n,i):n)||this.instance()).newDate(t,e,r)},substituteDigits:function(t){return function(e){return(e+\"\").replace(/[0-9]/g,function(e){return t[e]})}},substituteChineseDigits:function(t,e){return function(r){for(var n=\"\",i=0;r>0;){var a=r%10;n=(0===a?\"\":t[a]+e[i])+n,i++,r=Math.floor(r/10)}return 0===n.indexOf(t[1]+e[1])&&(n=n.substr(1)),n||t[0]}}}),n(a.prototype,{newDate:function(t,e,r){return this._calendar.newDate(null==t?this:t,e,r)},year:function(t){return 0===arguments.length?this._year:this.set(t,\"y\")},month:function(t){return 0===arguments.length?this._month:this.set(t,\"m\")},day:function(t){return 0===arguments.length?this._day:this.set(t,\"d\")},date:function(t,e,r){if(!this._calendar.isValid(t,e,r))throw(c.local.invalidDate||c.regionalOptions[\"\"].invalidDate).replace(/\\{0\\}/,this._calendar.local.name);return this._year=t,this._month=e,this._day=r,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(t,e){return this._calendar.add(this,t,e)},set:function(t,e){return this._calendar.set(this,t,e)},compareTo:function(t){if(this._calendar.name!==t._calendar.name)throw(c.local.differentCalendars||c.regionalOptions[\"\"].differentCalendars).replace(/\\{0\\}/,this._calendar.local.name).replace(/\\{1\\}/,t._calendar.local.name);var e=this._year!==t._year?this._year-t._year:this._month!==t._month?this.monthOfYear()-t.monthOfYear():this._day-t._day;return 0===e?0:e<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(t){return this._calendar.fromJD(t)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(t){return this._calendar.fromJSDate(t)},toString:function(){return(this.year()<0?\"-\":\"\")+o(Math.abs(this.year()),4)+\"-\"+o(this.month(),2)+\"-\"+o(this.day(),2)}}),n(s.prototype,{_validateLevel:0,newDate:function(t,e,r){return null==t?this.today():(t.year&&(this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[\"\"].invalidDate),r=t.day(),e=t.month(),t=t.year()),new a(this,t,e,r))},today:function(){return this.fromJSDate(new Date)},epoch:function(t){return this._validate(t,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[\"\"].invalidYear).year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[\"\"].invalidYear);return(e.year()<0?\"-\":\"\")+o(Math.abs(e.year()),4)},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[\"\"].invalidYear),12},monthOfYear:function(t,e){var r=this._validate(t,e,this.minDay,c.local.invalidMonth||c.regionalOptions[\"\"].invalidMonth);return(r.month()+this.monthsInYear(r)-this.firstMonth)%this.monthsInYear(r)+this.minMonth},fromMonthOfYear:function(t,e){var r=(e+this.firstMonth-2*this.minMonth)%this.monthsInYear(t)+this.minMonth;return this._validate(t,r,this.minDay,c.local.invalidMonth||c.regionalOptions[\"\"].invalidMonth),r},daysInYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[\"\"].invalidYear);return this.leapYear(e)?366:365},dayOfYear:function(t,e,r){var n=this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[\"\"].invalidDate);return n.toJD()-this.newDate(n.year(),this.fromMonthOfYear(n.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(t,e,r){var n=this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[\"\"].invalidDate);return(Math.floor(this.toJD(n))+2)%this.daysInWeek()},extraInfo:function(t,e,r){return this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[\"\"].invalidDate),{}},add:function(t,e,r){return this._validate(t,this.minMonth,this.minDay,c.local.invalidDate||c.regionalOptions[\"\"].invalidDate),this._correctAdd(t,this._add(t,e,r),e,r)},_add:function(t,e,r){if(this._validateLevel++,\"d\"===r||\"w\"===r){var n=t.toJD()+e*(\"w\"===r?this.daysInWeek():1),i=t.calendar().fromJD(n);return this._validateLevel--,[i.year(),i.month(),i.day()]}try{var a=t.year()+(\"y\"===r?e:0),o=t.monthOfYear()+(\"m\"===r?e:0);i=t.day();\"y\"===r?(t.month()!==this.fromMonthOfYear(a,o)&&(o=this.newDate(a,t.month(),this.minDay).monthOfYear()),o=Math.min(o,this.monthsInYear(a)),i=Math.min(i,this.daysInMonth(a,this.fromMonthOfYear(a,o)))):\"m\"===r&&(!function(t){for(;o<t.minMonth;)a--,o+=t.monthsInYear(a);for(var e=t.monthsInYear(a);o>e-1+t.minMonth;)a++,o-=e,e=t.monthsInYear(a)}(this),i=Math.min(i,this.daysInMonth(a,this.fromMonthOfYear(a,o))));var s=[a,this.fromMonthOfYear(a,o),i];return this._validateLevel--,s}catch(t){throw this._validateLevel--,t}},_correctAdd:function(t,e,r,n){if(!(this.hasYearZero||\"y\"!==n&&\"m\"!==n||0!==e[0]&&t.year()>0==e[0]>0)){var i={y:[1,1,\"y\"],m:[1,this.monthsInYear(-1),\"m\"],w:[this.daysInWeek(),this.daysInYear(-1),\"d\"],d:[1,this.daysInYear(-1),\"d\"]}[n],a=r<0?-1:1;e=this._add(t,r*i[0]+a*i[1],i[2])}return t.date(e[0],e[1],e[2])},set:function(t,e,r){this._validate(t,this.minMonth,this.minDay,c.local.invalidDate||c.regionalOptions[\"\"].invalidDate);var n=\"y\"===r?e:t.year(),i=\"m\"===r?e:t.month(),a=\"d\"===r?e:t.day();return\"y\"!==r&&\"m\"!==r||(a=Math.min(a,this.daysInMonth(n,i))),t.date(n,i,a)},isValid:function(t,e,r){this._validateLevel++;var n=this.hasYearZero||0!==t;if(n){var i=this.newDate(t,e,this.minDay);n=e>=this.minMonth&&e-this.minMonth<this.monthsInYear(i)&&r>=this.minDay&&r-this.minDay<this.daysInMonth(i)}return this._validateLevel--,n},toJSDate:function(t,e,r){var n=this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[\"\"].invalidDate);return c.instance().fromJD(this.toJD(n)).toJSDate()},fromJSDate:function(t){return this.fromJD(c.instance().fromJSDate(t).toJD())},_validate:function(t,e,r,n){if(t.year){if(0===this._validateLevel&&this.name!==t.calendar().name)throw(c.local.differentCalendars||c.regionalOptions[\"\"].differentCalendars).replace(/\\{0\\}/,this.local.name).replace(/\\{1\\}/,t.calendar().local.name);return t}try{if(this._validateLevel++,1===this._validateLevel&&!this.isValid(t,e,r))throw n.replace(/\\{0\\}/,this.local.name);var i=this.newDate(t,e,r);return this._validateLevel--,i}catch(t){throw this._validateLevel--,t}}}),l.prototype=new s,n(l.prototype,{name:\"Gregorian\",jdEpoch:1721425.5,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{\"\":{name:\"Gregorian\",epochs:[\"BCE\",\"CE\"],monthNames:[\"January\",\"February\",\"March\",\"April\",\"May\",\"June\",\"July\",\"August\",\"September\",\"October\",\"November\",\"December\"],monthNamesShort:[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\"],dayNames:[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"],dayNamesShort:[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],dayNamesMin:[\"Su\",\"Mo\",\"Tu\",\"We\",\"Th\",\"Fr\",\"Sa\"],digits:null,dateFormat:\"mm/dd/yyyy\",firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[\"\"].invalidYear);return(t=e.year()+(e.year()<0?1:0))%4==0&&(t%100!=0||t%400==0)},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(4-(n.dayOfWeek()||7),\"d\"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,c.local.invalidMonth||c.regionalOptions[\"\"].invalidMonth);return this.daysPerMonth[r.month()-1]+(2===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)<6},toJD:function(t,e,r){var n=this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[\"\"].invalidDate);t=n.year(),e=n.month(),r=n.day(),t<0&&t++,e<3&&(e+=12,t--);var i=Math.floor(t/100),a=2-i+Math.floor(i/4);return Math.floor(365.25*(t+4716))+Math.floor(30.6001*(e+1))+r+a-1524.5},fromJD:function(t){var e=Math.floor(t+.5),r=Math.floor((e-1867216.25)/36524.25),n=(r=e+1+r-Math.floor(r/4))+1524,i=Math.floor((n-122.1)/365.25),a=Math.floor(365.25*i),o=Math.floor((n-a)/30.6001),s=n-a-Math.floor(30.6001*o),l=o-(o>13.5?13:1),c=i-(l>2.5?4716:4715);return c<=0&&c--,this.newDate(c,l,s)},toJSDate:function(t,e,r){var n=this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[\"\"].invalidDate),i=new Date(n.year(),n.month()-1,n.day());return i.setHours(0),i.setMinutes(0),i.setSeconds(0),i.setMilliseconds(0),i.setHours(i.getHours()>12?i.getHours()+2:0),i},fromJSDate:function(t){return this.newDate(t.getFullYear(),t.getMonth()+1,t.getDate())}});var c=e.exports=new i;c.cdate=a,c.baseCalendar=s,c.calendars.gregorian=l},{\"object-assign\":437}],549:[function(t,e,r){var n=t(\"object-assign\"),i=t(\"./main\");n(i.regionalOptions[\"\"],{invalidArguments:\"Invalid arguments\",invalidFormat:\"Cannot format a date from another calendar\",missingNumberAt:\"Missing number at position {0}\",unknownNameAt:\"Unknown name at position {0}\",unexpectedLiteralAt:\"Unexpected literal at position {0}\",unexpectedText:\"Additional text found at end\"}),i.local=i.regionalOptions[\"\"],n(i.cdate.prototype,{formatDate:function(t,e){return\"string\"!=typeof t&&(e=t,t=\"\"),this._calendar.formatDate(t||\"\",this,e)}}),n(i.baseCalendar.prototype,{UNIX_EPOCH:i.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:86400,TICKS_EPOCH:i.instance().jdEpoch,TICKS_PER_DAY:864e9,ATOM:\"yyyy-mm-dd\",COOKIE:\"D, dd M yyyy\",FULL:\"DD, MM d, yyyy\",ISO_8601:\"yyyy-mm-dd\",JULIAN:\"J\",RFC_822:\"D, d M yy\",RFC_850:\"DD, dd-M-yy\",RFC_1036:\"D, d M yy\",RFC_1123:\"D, d M yyyy\",RFC_2822:\"D, d M yyyy\",RSS:\"D, d M yy\",TICKS:\"!\",TIMESTAMP:\"@\",W3C:\"yyyy-mm-dd\",formatDate:function(t,e,r){if(\"string\"!=typeof t&&(r=e,e=t,t=\"\"),!e)return\"\";if(e.calendar()!==this)throw i.local.invalidFormat||i.regionalOptions[\"\"].invalidFormat;t=t||this.local.dateFormat;for(var n,a,o,s,l=(r=r||{}).dayNamesShort||this.local.dayNamesShort,c=r.dayNames||this.local.dayNames,u=r.monthNumbers||this.local.monthNumbers,f=r.monthNamesShort||this.local.monthNamesShort,h=r.monthNames||this.local.monthNames,p=(r.calculateWeek||this.local.calculateWeek,function(e,r){for(var n=1;w+n<t.length&&t.charAt(w+n)===e;)n++;return w+=n-1,Math.floor(n/(r||1))>1}),d=function(t,e,r,n){var i=\"\"+e;if(p(t,n))for(;i.length<r;)i=\"0\"+i;return i},g=this,v=function(t){return\"function\"==typeof u?u.call(g,t,p(\"m\")):x(d(\"m\",t.month(),2))},m=function(t,e){return e?\"function\"==typeof h?h.call(g,t):h[t.month()-g.minMonth]:\"function\"==typeof f?f.call(g,t):f[t.month()-g.minMonth]},y=this.local.digits,x=function(t){return r.localNumbers&&y?y(t):t},b=\"\",_=!1,w=0;w<t.length;w++)if(_)\"'\"!==t.charAt(w)||p(\"'\")?b+=t.charAt(w):_=!1;else switch(t.charAt(w)){case\"d\":b+=x(d(\"d\",e.day(),2));break;case\"D\":b+=(n=\"D\",a=e.dayOfWeek(),o=l,s=c,p(n)?s[a]:o[a]);break;case\"o\":b+=d(\"o\",e.dayOfYear(),3);break;case\"w\":b+=d(\"w\",e.weekOfYear(),2);break;case\"m\":b+=v(e);break;case\"M\":b+=m(e,p(\"M\"));break;case\"y\":b+=p(\"y\",2)?e.year():(e.year()%100<10?\"0\":\"\")+e.year()%100;break;case\"Y\":p(\"Y\",2),b+=e.formatYear();break;case\"J\":b+=e.toJD();break;case\"@\":b+=(e.toJD()-this.UNIX_EPOCH)*this.SECS_PER_DAY;break;case\"!\":b+=(e.toJD()-this.TICKS_EPOCH)*this.TICKS_PER_DAY;break;case\"'\":p(\"'\")?b+=\"'\":_=!0;break;default:b+=t.charAt(w)}return b},parseDate:function(t,e,r){if(null==e)throw i.local.invalidArguments||i.regionalOptions[\"\"].invalidArguments;if(\"\"===(e=\"object\"==typeof e?e.toString():e+\"\"))return null;t=t||this.local.dateFormat;var n=(r=r||{}).shortYearCutoff||this.shortYearCutoff;n=\"string\"!=typeof n?n:this.today().year()%100+parseInt(n,10);for(var a=r.dayNamesShort||this.local.dayNamesShort,o=r.dayNames||this.local.dayNames,s=r.parseMonth||this.local.parseMonth,l=r.monthNumbers||this.local.monthNumbers,c=r.monthNamesShort||this.local.monthNamesShort,u=r.monthNames||this.local.monthNames,f=-1,h=-1,p=-1,d=-1,g=-1,v=!1,m=!1,y=function(e,r){for(var n=1;T+n<t.length&&t.charAt(T+n)===e;)n++;return T+=n-1,Math.floor(n/(r||1))>1},x=function(t,r){var n=y(t,r),a=[2,3,n?4:2,n?4:2,10,11,20][\"oyYJ@!\".indexOf(t)+1],o=new RegExp(\"^-?\\\\d{1,\"+a+\"}\"),s=e.substring(A).match(o);if(!s)throw(i.local.missingNumberAt||i.regionalOptions[\"\"].missingNumberAt).replace(/\\{0\\}/,A);return A+=s[0].length,parseInt(s[0],10)},b=this,_=function(){if(\"function\"==typeof l){y(\"m\");var t=l.call(b,e.substring(A));return A+=t.length,t}return x(\"m\")},w=function(t,r,n,a){for(var o=y(t,a)?n:r,s=0;s<o.length;s++)if(e.substr(A,o[s].length).toLowerCase()===o[s].toLowerCase())return A+=o[s].length,s+b.minMonth;throw(i.local.unknownNameAt||i.regionalOptions[\"\"].unknownNameAt).replace(/\\{0\\}/,A)},k=function(){if(\"function\"==typeof u){var t=y(\"M\")?u.call(b,e.substring(A)):c.call(b,e.substring(A));return A+=t.length,t}return w(\"M\",c,u)},M=function(){if(e.charAt(A)!==t.charAt(T))throw(i.local.unexpectedLiteralAt||i.regionalOptions[\"\"].unexpectedLiteralAt).replace(/\\{0\\}/,A);A++},A=0,T=0;T<t.length;T++)if(m)\"'\"!==t.charAt(T)||y(\"'\")?M():m=!1;else switch(t.charAt(T)){case\"d\":d=x(\"d\");break;case\"D\":w(\"D\",a,o);break;case\"o\":g=x(\"o\");break;case\"w\":x(\"w\");break;case\"m\":p=_();break;case\"M\":p=k();break;case\"y\":var S=T;v=!y(\"y\",2),T=S,h=x(\"y\",2);break;case\"Y\":h=x(\"Y\",2);break;case\"J\":f=x(\"J\")+.5,\".\"===e.charAt(A)&&(A++,x(\"J\"));break;case\"@\":f=x(\"@\")/this.SECS_PER_DAY+this.UNIX_EPOCH;break;case\"!\":f=x(\"!\")/this.TICKS_PER_DAY+this.TICKS_EPOCH;break;case\"*\":A=e.length;break;case\"'\":y(\"'\")?M():m=!0;break;default:M()}if(A<e.length)throw i.local.unexpectedText||i.regionalOptions[\"\"].unexpectedText;if(-1===h?h=this.today().year():h<100&&v&&(h+=-1===n?1900:this.today().year()-this.today().year()%100-(h<=n?0:100)),\"string\"==typeof p&&(p=s.call(this,h,p)),g>-1){p=1,d=g;for(var E=this.daysInMonth(h,p);d>E;E=this.daysInMonth(h,p))p++,d-=E}return f>-1?this.fromJD(f):this.newDate(h,p,d)},determineDate:function(t,e,r,n,i){r&&\"object\"!=typeof r&&(i=n,n=r,r=null),\"string\"!=typeof n&&(i=n,n=\"\");var a=this;return e=e?e.newDate():null,t=null==t?e:\"string\"==typeof t?function(t){try{return a.parseDate(n,t,i)}catch(t){}for(var e=((t=t.toLowerCase()).match(/^c/)&&r?r.newDate():null)||a.today(),o=/([+-]?[0-9]+)\\s*(d|w|m|y)?/g,s=o.exec(t);s;)e.add(parseInt(s[1],10),s[2]||\"d\"),s=o.exec(t);return e}(t):\"number\"==typeof t?isNaN(t)||t===1/0||t===-1/0?e:a.today().add(t,\"d\"):a.newDate(t)}})},{\"./main\":548,\"object-assign\":437}],550:[function(t,e,r){e.exports=t(\"cwise-compiler\")({args:[\"array\",{offset:[1],array:0},\"scalar\",\"scalar\",\"index\"],pre:{body:\"{}\",args:[],thisVars:[],localVars:[]},post:{body:\"{}\",args:[],thisVars:[],localVars:[]},body:{body:\"{\\n var _inline_1_da = _inline_1_arg0_ - _inline_1_arg3_\\n var _inline_1_db = _inline_1_arg1_ - _inline_1_arg3_\\n if((_inline_1_da >= 0) !== (_inline_1_db >= 0)) {\\n _inline_1_arg2_.push(_inline_1_arg4_[0] + 0.5 + 0.5 * (_inline_1_da + _inline_1_db) / (_inline_1_da - _inline_1_db))\\n }\\n }\",args:[{name:\"_inline_1_arg0_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_1_arg1_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_1_arg2_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_1_arg3_\",lvalue:!1,rvalue:!0,count:2},{name:\"_inline_1_arg4_\",lvalue:!1,rvalue:!0,count:1}],thisVars:[],localVars:[\"_inline_1_da\",\"_inline_1_db\"]},funcName:\"zeroCrossings\"})},{\"cwise-compiler\":134}],551:[function(t,e,r){\"use strict\";e.exports=function(t,e){var r=[];return e=+e||0,n(t.hi(t.shape[0]-1),r,e),r};var n=t(\"./lib/zc-core\")},{\"./lib/zc-core\":550}],552:[function(t,e,r){\"use strict\";e.exports=[{path:\"\",backoff:0},{path:\"M-2.4,-3V3L0.6,0Z\",backoff:.6},{path:\"M-3.7,-2.5V2.5L1.3,0Z\",backoff:1.3},{path:\"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z\",backoff:1.55},{path:\"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z\",backoff:1.6},{path:\"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z\",backoff:2},{path:\"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z\",backoff:0,noRotate:!0},{path:\"M2,2V-2H-2V2Z\",backoff:0,noRotate:!0}]},{}],553:[function(t,e,r){\"use strict\";var n=t(\"./arrow_paths\"),i=t(\"../../plots/font_attributes\"),a=t(\"../../plots/cartesian/constants\"),o=t(\"../../plot_api/plot_template\").templatedArray;e.exports=o(\"annotation\",{visible:{valType:\"boolean\",dflt:!0,editType:\"calc+arraydraw\"},text:{valType:\"string\",editType:\"calc+arraydraw\"},textangle:{valType:\"angle\",dflt:0,editType:\"calc+arraydraw\"},font:i({editType:\"calc+arraydraw\",colorEditType:\"arraydraw\"}),width:{valType:\"number\",min:1,dflt:null,editType:\"calc+arraydraw\"},height:{valType:\"number\",min:1,dflt:null,editType:\"calc+arraydraw\"},opacity:{valType:\"number\",min:0,max:1,dflt:1,editType:\"arraydraw\"},align:{valType:\"enumerated\",values:[\"left\",\"center\",\"right\"],dflt:\"center\",editType:\"arraydraw\"},valign:{valType:\"enumerated\",values:[\"top\",\"middle\",\"bottom\"],dflt:\"middle\",editType:\"arraydraw\"},bgcolor:{valType:\"color\",dflt:\"rgba(0,0,0,0)\",editType:\"arraydraw\"},bordercolor:{valType:\"color\",dflt:\"rgba(0,0,0,0)\",editType:\"arraydraw\"},borderpad:{valType:\"number\",min:0,dflt:1,editType:\"calc+arraydraw\"},borderwidth:{valType:\"number\",min:0,dflt:1,editType:\"calc+arraydraw\"},showarrow:{valType:\"boolean\",dflt:!0,editType:\"calc+arraydraw\"},arrowcolor:{valType:\"color\",editType:\"arraydraw\"},arrowhead:{valType:\"integer\",min:0,max:n.length,dflt:1,editType:\"arraydraw\"},startarrowhead:{valType:\"integer\",min:0,max:n.length,dflt:1,editType:\"arraydraw\"},arrowside:{valType:\"flaglist\",flags:[\"end\",\"start\"],extras:[\"none\"],dflt:\"end\",editType:\"arraydraw\"},arrowsize:{valType:\"number\",min:.3,dflt:1,editType:\"calc+arraydraw\"},startarrowsize:{valType:\"number\",min:.3,dflt:1,editType:\"calc+arraydraw\"},arrowwidth:{valType:\"number\",min:.1,editType:\"calc+arraydraw\"},standoff:{valType:\"number\",min:0,dflt:0,editType:\"calc+arraydraw\"},startstandoff:{valType:\"number\",min:0,dflt:0,editType:\"calc+arraydraw\"},ax:{valType:\"any\",editType:\"calc+arraydraw\"},ay:{valType:\"any\",editType:\"calc+arraydraw\"},axref:{valType:\"enumerated\",dflt:\"pixel\",values:[\"pixel\",a.idRegex.x.toString()],editType:\"calc\"},ayref:{valType:\"enumerated\",dflt:\"pixel\",values:[\"pixel\",a.idRegex.y.toString()],editType:\"calc\"},xref:{valType:\"enumerated\",values:[\"paper\",a.idRegex.x.toString()],editType:\"calc\"},x:{valType:\"any\",editType:\"calc+arraydraw\"},xanchor:{valType:\"enumerated\",values:[\"auto\",\"left\",\"center\",\"right\"],dflt:\"auto\",editType:\"calc+arraydraw\"},xshift:{valType:\"number\",dflt:0,editType:\"calc+arraydraw\"},yref:{valType:\"enumerated\",values:[\"paper\",a.idRegex.y.toString()],editType:\"calc\"},y:{valType:\"any\",editType:\"calc+arraydraw\"},yanchor:{valType:\"enumerated\",values:[\"auto\",\"top\",\"middle\",\"bottom\"],dflt:\"auto\",editType:\"calc+arraydraw\"},yshift:{valType:\"number\",dflt:0,editType:\"calc+arraydraw\"},clicktoshow:{valType:\"enumerated\",values:[!1,\"onoff\",\"onout\"],dflt:!1,editType:\"arraydraw\"},xclick:{valType:\"any\",editType:\"arraydraw\"},yclick:{valType:\"any\",editType:\"arraydraw\"},hovertext:{valType:\"string\",editType:\"arraydraw\"},hoverlabel:{bgcolor:{valType:\"color\",editType:\"arraydraw\"},bordercolor:{valType:\"color\",editType:\"arraydraw\"},font:i({editType:\"arraydraw\"}),editType:\"arraydraw\"},captureevents:{valType:\"boolean\",editType:\"arraydraw\"},editType:\"calc\",_deprecated:{ref:{valType:\"string\",editType:\"calc\"}}})},{\"../../plot_api/plot_template\":734,\"../../plots/cartesian/constants\":750,\"../../plots/font_attributes\":771,\"./arrow_paths\":552}],554:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../plots/cartesian/axes\"),a=t(\"./draw\").draw;function o(t){var e=t._fullLayout;n.filterVisible(e.annotations).forEach(function(e){var r=i.getFromId(t,e.xref),n=i.getFromId(t,e.yref);e._extremes={},r&&s(e,r),n&&s(e,n)})}function s(t,e){var r,n=e._id,a=n.charAt(0),o=t[a],s=t[\"a\"+a],l=t[a+\"ref\"],c=t[\"a\"+a+\"ref\"],u=t[\"_\"+a+\"padplus\"],f=t[\"_\"+a+\"padminus\"],h={x:1,y:-1}[a]*t[a+\"shift\"],p=3*t.arrowsize*t.arrowwidth||0,d=p+h,g=p-h,v=3*t.startarrowsize*t.arrowwidth||0,m=v+h,y=v-h;if(c===l){var x=i.findExtremes(e,[e.r2c(o)],{ppadplus:d,ppadminus:g}),b=i.findExtremes(e,[e.r2c(s)],{ppadplus:Math.max(u,m),ppadminus:Math.max(f,y)});r={min:[x.min[0],b.min[0]],max:[x.max[0],b.max[0]]}}else m=s?m+s:m,y=s?y-s:y,r=i.findExtremes(e,[e.r2c(o)],{ppadplus:Math.max(u,d,m),ppadminus:Math.max(f,g,y)});t._extremes[n]=r}e.exports=function(t){var e=t._fullLayout;if(n.filterVisible(e.annotations).length&&t._fullData.length)return n.syncOrAsync([a,o],t)}},{\"../../lib\":696,\"../../plots/cartesian/axes\":744,\"./draw\":559}],555:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../registry\"),a=t(\"../../plot_api/plot_template\").arrayEditor;function o(t,e){var r,n,i,a,o,l,c,u=t._fullLayout.annotations,f=[],h=[],p=[],d=(e||[]).length;for(r=0;r<u.length;r++)if(a=(i=u[r]).clicktoshow){for(n=0;n<d;n++)if(l=(o=e[n]).xaxis,c=o.yaxis,l._id===i.xref&&c._id===i.yref&&l.d2r(o.x)===s(i._xclick,l)&&c.d2r(o.y)===s(i._yclick,c)){(i.visible?\"onout\"===a?h:p:f).push(r);break}n===d&&i.visible&&\"onout\"===a&&h.push(r)}return{on:f,off:h,explicitOff:p}}function s(t,e){return\"log\"===e.type?e.l2r(t):e.d2r(t)}e.exports={hasClickToShow:function(t,e){var r=o(t,e);return r.on.length>0||r.explicitOff.length>0},onClick:function(t,e){var r,s,l=o(t,e),c=l.on,u=l.off.concat(l.explicitOff),f={},h=t._fullLayout.annotations;if(!c.length&&!u.length)return;for(r=0;r<c.length;r++)(s=a(t.layout,\"annotations\",h[c[r]])).modifyItem(\"visible\",!0),n.extendFlat(f,s.getUpdateObj());for(r=0;r<u.length;r++)(s=a(t.layout,\"annotations\",h[u[r]])).modifyItem(\"visible\",!1),n.extendFlat(f,s.getUpdateObj());return i.call(\"update\",t,{},f)}}},{\"../../lib\":696,\"../../plot_api/plot_template\":734,\"../../registry\":827}],556:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../color\");e.exports=function(t,e,r,a){a(\"opacity\");var o=a(\"bgcolor\"),s=a(\"bordercolor\"),l=i.opacity(s);a(\"borderpad\");var c=a(\"borderwidth\"),u=a(\"showarrow\");if(a(\"text\",u?\" \":r._dfltTitle.annotation),a(\"textangle\"),n.coerceFont(a,\"font\",r.font),a(\"width\"),a(\"align\"),a(\"height\")&&a(\"valign\"),u){var f,h,p=a(\"arrowside\");-1!==p.indexOf(\"end\")&&(f=a(\"arrowhead\"),h=a(\"arrowsize\")),-1!==p.indexOf(\"start\")&&(a(\"startarrowhead\",f),a(\"startarrowsize\",h)),a(\"arrowcolor\",l?e.bordercolor:i.defaultLine),a(\"arrowwidth\",2*(l&&c||1)),a(\"standoff\"),a(\"startstandoff\")}var d=a(\"hovertext\"),g=r.hoverlabel||{};if(d){var v=a(\"hoverlabel.bgcolor\",g.bgcolor||(i.opacity(o)?i.rgb(o):i.defaultLine)),m=a(\"hoverlabel.bordercolor\",g.bordercolor||i.contrast(v));n.coerceFont(a,\"hoverlabel.font\",{family:g.font.family,size:g.font.size,color:g.font.color||m})}a(\"captureevents\",!!d)}},{\"../../lib\":696,\"../color\":570}],557:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../../lib/to_log_range\");e.exports=function(t,e,r,a){e=e||{};var o=\"log\"===r&&\"linear\"===e.type,s=\"linear\"===r&&\"log\"===e.type;if(o||s)for(var l,c,u=t._fullLayout.annotations,f=e._id.charAt(0),h=0;h<u.length;h++)l=u[h],c=\"annotations[\"+h+\"].\",l[f+\"ref\"]===e._id&&p(f),l[\"a\"+f+\"ref\"]===e._id&&p(\"a\"+f);function p(t){var r=l[t],s=null;s=o?i(r,e.range):Math.pow(10,r),n(s)||(s=null),a(c+t,s)}}},{\"../../lib/to_log_range\":722,\"fast-isnumeric\":214}],558:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../plots/cartesian/axes\"),a=t(\"../../plots/array_container_defaults\"),o=t(\"./common_defaults\"),s=t(\"./attributes\");function l(t,e,r){function a(r,i){return n.coerce(t,e,s,r,i)}var l=a(\"visible\"),c=a(\"clicktoshow\");if(l||c){o(t,e,r,a);for(var u=e.showarrow,f=[\"x\",\"y\"],h=[-10,-30],p={_fullLayout:r},d=0;d<2;d++){var g=f[d],v=i.coerceRef(t,e,p,g,\"\",\"paper\");if(\"paper\"!==v)i.getFromId(p,v)._annIndices.push(e._index);if(i.coercePosition(e,p,a,v,g,.5),u){var m=\"a\"+g,y=i.coerceRef(t,e,p,m,\"pixel\");\"pixel\"!==y&&y!==v&&(y=e[m]=\"pixel\");var x=\"pixel\"===y?h[d]:.4;i.coercePosition(e,p,a,y,m,x)}a(g+\"anchor\"),a(g+\"shift\")}if(n.noneOrAll(t,e,[\"x\",\"y\"]),u&&n.noneOrAll(t,e,[\"ax\",\"ay\"]),c){var b=a(\"xclick\"),_=a(\"yclick\");e._xclick=void 0===b?e.x:i.cleanPosition(b,p,e.xref),e._yclick=void 0===_?e.y:i.cleanPosition(_,p,e.yref)}}}e.exports=function(t,e){a(t,e,{name:\"annotations\",handleItemDefaults:l})}},{\"../../lib\":696,\"../../plots/array_container_defaults\":740,\"../../plots/cartesian/axes\":744,\"./attributes\":553,\"./common_defaults\":556}],559:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../../registry\"),a=t(\"../../plots/plots\"),o=t(\"../../lib\"),s=t(\"../../plots/cartesian/axes\"),l=t(\"../color\"),c=t(\"../drawing\"),u=t(\"../fx\"),f=t(\"../../lib/svg_text_utils\"),h=t(\"../../lib/setcursor\"),p=t(\"../dragelement\"),d=t(\"../../plot_api/plot_template\").arrayEditor,g=t(\"./draw_arrow_head\");function v(t,e){var r=t._fullLayout.annotations[e]||{};m(t,r,e,!1,s.getFromId(t,r.xref),s.getFromId(t,r.yref))}function m(t,e,r,a,s,v){var m,y,x=t._fullLayout,b=t._fullLayout._size,_=t._context.edits;a?(m=\"annotation-\"+a,y=a+\".annotations\"):(m=\"annotation\",y=\"annotations\");var w=d(t.layout,y,e),k=w.modifyBase,M=w.modifyItem,A=w.getUpdateObj;x._infolayer.selectAll(\".\"+m+'[data-index=\"'+r+'\"]').remove();var T=\"clip\"+x._uid+\"_ann\"+r;if(e._input&&!1!==e.visible){var S={x:{},y:{}},E=+e.textangle||0,C=x._infolayer.append(\"g\").classed(m,!0).attr(\"data-index\",String(r)).style(\"opacity\",e.opacity),L=C.append(\"g\").classed(\"annotation-text-g\",!0),z=_[e.showarrow?\"annotationTail\":\"annotationPosition\"],O=e.captureevents||_.annotationText||z,I=L.append(\"g\").style(\"pointer-events\",O?\"all\":null).call(h,\"pointer\").on(\"click\",function(){t._dragging=!1;var i={index:r,annotation:e._input,fullAnnotation:e,event:n.event};a&&(i.subplotId=a),t.emit(\"plotly_clickannotation\",i)});e.hovertext&&I.on(\"mouseover\",function(){var r=e.hoverlabel,n=r.font,i=this.getBoundingClientRect(),a=t.getBoundingClientRect();u.loneHover({x0:i.left-a.left,x1:i.right-a.left,y:(i.top+i.bottom)/2-a.top,text:e.hovertext,color:r.bgcolor,borderColor:r.bordercolor,fontFamily:n.family,fontSize:n.size,fontColor:n.color},{container:x._hoverlayer.node(),outerContainer:x._paper.node(),gd:t})}).on(\"mouseout\",function(){u.loneUnhover(x._hoverlayer.node())});var P=e.borderwidth,D=e.borderpad,R=P+D,B=I.append(\"rect\").attr(\"class\",\"bg\").style(\"stroke-width\",P+\"px\").call(l.stroke,e.bordercolor).call(l.fill,e.bgcolor),F=e.width||e.height,N=x._topclips.selectAll(\"#\"+T).data(F?[0]:[]);N.enter().append(\"clipPath\").classed(\"annclip\",!0).attr(\"id\",T).append(\"rect\"),N.exit().remove();var j=e.font,V=I.append(\"text\").classed(\"annotation-text\",!0).text(e.text);_.annotationText?V.call(f.makeEditable,{delegate:I,gd:t}).call(U).on(\"edit\",function(r){e.text=r,this.call(U),M(\"text\",r),s&&s.autorange&&k(s._name+\".autorange\",!0),v&&v.autorange&&k(v._name+\".autorange\",!0),i.call(\"relayout\",t,A())}):V.call(U)}else n.selectAll(\"#\"+T).remove();function U(r){return r.call(c.font,j).attr({\"text-anchor\":{left:\"start\",right:\"end\"}[e.align]||\"middle\"}),f.convertToTspans(r,t,q),r}function q(){var r=V.selectAll(\"a\");1===r.size()&&r.text()===V.text()&&I.insert(\"a\",\":first-child\").attr({\"xlink:xlink:href\":r.attr(\"xlink:href\"),\"xlink:xlink:show\":r.attr(\"xlink:show\")}).style({cursor:\"pointer\"}).node().appendChild(B.node());var n=I.select(\".annotation-text-math-group\"),u=!n.empty(),d=c.bBox((u?n:V).node()),m=d.width,y=d.height,w=e.width||m,O=e.height||y,D=Math.round(w+2*R),j=Math.round(O+2*R);function U(t,e){return\"auto\"===e&&(e=t<1/3?\"left\":t>2/3?\"right\":\"center\"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[e]}for(var q=!1,H=[\"x\",\"y\"],G=0;G<H.length;G++){var W,Y,X,Z,$,J=H[G],K=e[J+\"ref\"]||J,Q=e[\"a\"+J+\"ref\"],tt={x:s,y:v}[J],et=(E+(\"x\"===J?0:-90))*Math.PI/180,rt=D*Math.cos(et),nt=j*Math.sin(et),it=Math.abs(rt)+Math.abs(nt),at=e[J+\"anchor\"],ot=e[J+\"shift\"]*(\"x\"===J?1:-1),st=S[J];if(tt){var lt=tt.r2fraction(e[J]);(lt<0||lt>1)&&(Q===K?((lt=tt.r2fraction(e[\"a\"+J]))<0||lt>1)&&(q=!0):q=!0),W=tt._offset+tt.r2p(e[J]),Z=.5}else\"x\"===J?(X=e[J],W=b.l+b.w*X):(X=1-e[J],W=b.t+b.h*X),Z=e.showarrow?.5:X;if(e.showarrow){st.head=W;var ct=e[\"a\"+J];$=rt*U(.5,e.xanchor)-nt*U(.5,e.yanchor),Q===K?(st.tail=tt._offset+tt.r2p(ct),Y=$):(st.tail=W+ct,Y=$+ct),st.text=st.tail+$;var ut=x[\"x\"===J?\"width\":\"height\"];if(\"paper\"===K&&(st.head=o.constrain(st.head,1,ut-1)),\"pixel\"===Q){var ft=-Math.max(st.tail-3,st.text),ht=Math.min(st.tail+3,st.text)-ut;ft>0?(st.tail+=ft,st.text+=ft):ht>0&&(st.tail-=ht,st.text-=ht)}st.tail+=ot,st.head+=ot}else Y=$=it*U(Z,at),st.text=W+$;st.text+=ot,$+=ot,Y+=ot,e[\"_\"+J+\"padplus\"]=it/2+Y,e[\"_\"+J+\"padminus\"]=it/2-Y,e[\"_\"+J+\"size\"]=it,e[\"_\"+J+\"shift\"]=$}if(t._dragging||!q){var pt=0,dt=0;if(\"left\"!==e.align&&(pt=(w-m)*(\"center\"===e.align?.5:1)),\"top\"!==e.valign&&(dt=(O-y)*(\"middle\"===e.valign?.5:1)),u)n.select(\"svg\").attr({x:R+pt-1,y:R+dt}).call(c.setClipUrl,F?T:null);else{var gt=R+dt-d.top,vt=R+pt-d.left;V.call(f.positionText,vt,gt).call(c.setClipUrl,F?T:null)}N.select(\"rect\").call(c.setRect,R,R,w,O),B.call(c.setRect,P/2,P/2,D-P,j-P),I.call(c.setTranslate,Math.round(S.x.text-D/2),Math.round(S.y.text-j/2)),L.attr({transform:\"rotate(\"+E+\",\"+S.x.text+\",\"+S.y.text+\")\"});var mt,yt=function(r,n){C.selectAll(\".annotation-arrow-g\").remove();var u=S.x.head,f=S.y.head,h=S.x.tail+r,d=S.y.tail+n,m=S.x.text+r,y=S.y.text+n,x=o.rotationXYMatrix(E,m,y),w=o.apply2DTransform(x),T=o.apply2DTransform2(x),z=+B.attr(\"width\"),O=+B.attr(\"height\"),P=m-.5*z,D=P+z,R=y-.5*O,F=R+O,N=[[P,R,P,F],[P,F,D,F],[D,F,D,R],[D,R,P,R]].map(T);if(!N.reduce(function(t,e){return t^!!o.segmentsIntersect(u,f,u+1e6,f+1e6,e[0],e[1],e[2],e[3])},!1)){N.forEach(function(t){var e=o.segmentsIntersect(h,d,u,f,t[0],t[1],t[2],t[3]);e&&(h=e.x,d=e.y)});var j=e.arrowwidth,V=e.arrowcolor,U=e.arrowside,q=C.append(\"g\").style({opacity:l.opacity(V)}).classed(\"annotation-arrow-g\",!0),H=q.append(\"path\").attr(\"d\",\"M\"+h+\",\"+d+\"L\"+u+\",\"+f).style(\"stroke-width\",j+\"px\").call(l.stroke,l.rgb(V));if(g(H,U,e),_.annotationPosition&&H.node().parentNode&&!a){var G=u,W=f;if(e.standoff){var Y=Math.sqrt(Math.pow(u-h,2)+Math.pow(f-d,2));G+=e.standoff*(h-u)/Y,W+=e.standoff*(d-f)/Y}var X,Z,$=q.append(\"path\").classed(\"annotation-arrow\",!0).classed(\"anndrag\",!0).classed(\"cursor-move\",!0).attr({d:\"M3,3H-3V-3H3ZM0,0L\"+(h-G)+\",\"+(d-W),transform:\"translate(\"+G+\",\"+W+\")\"}).style(\"stroke-width\",j+6+\"px\").call(l.stroke,\"rgba(0,0,0,0)\").call(l.fill,\"rgba(0,0,0,0)\");p.init({element:$.node(),gd:t,prepFn:function(){var t=c.getTranslate(I);X=t.x,Z=t.y,s&&s.autorange&&k(s._name+\".autorange\",!0),v&&v.autorange&&k(v._name+\".autorange\",!0)},moveFn:function(t,r){var n=w(X,Z),i=n[0]+t,a=n[1]+r;I.call(c.setTranslate,i,a),M(\"x\",s?s.p2r(s.r2p(e.x)+t):e.x+t/b.w),M(\"y\",v?v.p2r(v.r2p(e.y)+r):e.y-r/b.h),e.axref===e.xref&&M(\"ax\",s.p2r(s.r2p(e.ax)+t)),e.ayref===e.yref&&M(\"ay\",v.p2r(v.r2p(e.ay)+r)),q.attr(\"transform\",\"translate(\"+t+\",\"+r+\")\"),L.attr({transform:\"rotate(\"+E+\",\"+i+\",\"+a+\")\"})},doneFn:function(){i.call(\"relayout\",t,A());var e=document.querySelector(\".js-notes-box-panel\");e&&e.redraw(e.selectedObj)}})}}};if(e.showarrow&&yt(0,0),z)p.init({element:I.node(),gd:t,prepFn:function(){mt=L.attr(\"transform\")},moveFn:function(t,r){var n=\"pointer\";if(e.showarrow)e.axref===e.xref?M(\"ax\",s.p2r(s.r2p(e.ax)+t)):M(\"ax\",e.ax+t),e.ayref===e.yref?M(\"ay\",v.p2r(v.r2p(e.ay)+r)):M(\"ay\",e.ay+r),yt(t,r);else{if(a)return;var i,o;if(s)i=s.p2r(s.r2p(e.x)+t);else{var l=e._xsize/b.w,c=e.x+(e._xshift-e.xshift)/b.w-l/2;i=p.align(c+t/b.w,l,0,1,e.xanchor)}if(v)o=v.p2r(v.r2p(e.y)+r);else{var u=e._ysize/b.h,f=e.y-(e._yshift+e.yshift)/b.h-u/2;o=p.align(f-r/b.h,u,0,1,e.yanchor)}M(\"x\",i),M(\"y\",o),s&&v||(n=p.getCursor(s?.5:i,v?.5:o,e.xanchor,e.yanchor))}L.attr({transform:\"translate(\"+t+\",\"+r+\")\"+mt}),h(I,n)},doneFn:function(){h(I),i.call(\"relayout\",t,A());var e=document.querySelector(\".js-notes-box-panel\");e&&e.redraw(e.selectedObj)}})}else I.remove()}}e.exports={draw:function(t){var e=t._fullLayout;e._infolayer.selectAll(\".annotation\").remove();for(var r=0;r<e.annotations.length;r++)e.annotations[r].visible&&v(t,r);return a.previousPromises(t)},drawOne:v,drawRaw:m}},{\"../../lib\":696,\"../../lib/setcursor\":716,\"../../lib/svg_text_utils\":720,\"../../plot_api/plot_template\":734,\"../../plots/cartesian/axes\":744,\"../../plots/plots\":808,\"../../registry\":827,\"../color\":570,\"../dragelement\":592,\"../drawing\":595,\"../fx\":612,\"./draw_arrow_head\":560,d3:148}],560:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../color\"),a=t(\"./arrow_paths\");e.exports=function(t,e,r){var o,s,l,c,u=t.node(),f=a[r.arrowhead||0],h=a[r.startarrowhead||0],p=(r.arrowwidth||1)*(r.arrowsize||1),d=(r.arrowwidth||1)*(r.startarrowsize||1),g=e.indexOf(\"start\")>=0,v=e.indexOf(\"end\")>=0,m=f.backoff*p+r.standoff,y=h.backoff*d+r.startstandoff;if(\"line\"===u.nodeName){o={x:+t.attr(\"x1\"),y:+t.attr(\"y1\")},s={x:+t.attr(\"x2\"),y:+t.attr(\"y2\")};var x=o.x-s.x,b=o.y-s.y;if(c=(l=Math.atan2(b,x))+Math.PI,m&&y&&m+y>Math.sqrt(x*x+b*b))return void z();if(m){if(m*m>x*x+b*b)return void z();var _=m*Math.cos(l),w=m*Math.sin(l);s.x+=_,s.y+=w,t.attr({x2:s.x,y2:s.y})}if(y){if(y*y>x*x+b*b)return void z();var k=y*Math.cos(l),M=y*Math.sin(l);o.x-=k,o.y-=M,t.attr({x1:o.x,y1:o.y})}}else if(\"path\"===u.nodeName){var A=u.getTotalLength(),T=\"\";if(A<m+y)return void z();var S=u.getPointAtLength(0),E=u.getPointAtLength(.1);l=Math.atan2(S.y-E.y,S.x-E.x),o=u.getPointAtLength(Math.min(y,A)),T=\"0px,\"+y+\"px,\";var C=u.getPointAtLength(A),L=u.getPointAtLength(A-.1);c=Math.atan2(C.y-L.y,C.x-L.x),s=u.getPointAtLength(Math.max(0,A-m)),T+=A-(T?y+m:m)+\"px,\"+A+\"px\",t.style(\"stroke-dasharray\",T)}function z(){t.style(\"stroke-dasharray\",\"0px,100px\")}function O(e,a,o,s){e.path&&(e.noRotate&&(o=0),n.select(u.parentNode).append(\"path\").attr({class:t.attr(\"class\"),d:e.path,transform:\"translate(\"+a.x+\",\"+a.y+\")\"+(o?\"rotate(\"+180*o/Math.PI+\")\":\"\")+\"scale(\"+s+\")\"}).style({fill:i.rgb(r.arrowcolor),\"stroke-width\":0}))}g&&O(h,o,l,d),v&&O(f,s,c,p)}},{\"../color\":570,\"./arrow_paths\":552,d3:148}],561:[function(t,e,r){\"use strict\";var n=t(\"./draw\"),i=t(\"./click\");e.exports={moduleType:\"component\",name:\"annotations\",layoutAttributes:t(\"./attributes\"),supplyLayoutDefaults:t(\"./defaults\"),includeBasePlot:t(\"../../plots/cartesian/include_components\")(\"annotations\"),calcAutorange:t(\"./calc_autorange\"),draw:n.draw,drawOne:n.drawOne,drawRaw:n.drawRaw,hasClickToShow:i.hasClickToShow,onClick:i.onClick,convertCoords:t(\"./convert_coords\")}},{\"../../plots/cartesian/include_components\":755,\"./attributes\":553,\"./calc_autorange\":554,\"./click\":555,\"./convert_coords\":557,\"./defaults\":558,\"./draw\":559}],562:[function(t,e,r){\"use strict\";var n=t(\"../annotations/attributes\"),i=t(\"../../plot_api/edit_types\").overrideAll,a=t(\"../../plot_api/plot_template\").templatedArray;e.exports=i(a(\"annotation\",{visible:n.visible,x:{valType:\"any\"},y:{valType:\"any\"},z:{valType:\"any\"},ax:{valType:\"number\"},ay:{valType:\"number\"},xanchor:n.xanchor,xshift:n.xshift,yanchor:n.yanchor,yshift:n.yshift,text:n.text,textangle:n.textangle,font:n.font,width:n.width,height:n.height,opacity:n.opacity,align:n.align,valign:n.valign,bgcolor:n.bgcolor,bordercolor:n.bordercolor,borderpad:n.borderpad,borderwidth:n.borderwidth,showarrow:n.showarrow,arrowcolor:n.arrowcolor,arrowhead:n.arrowhead,startarrowhead:n.startarrowhead,arrowside:n.arrowside,arrowsize:n.arrowsize,startarrowsize:n.startarrowsize,arrowwidth:n.arrowwidth,standoff:n.standoff,startstandoff:n.startstandoff,hovertext:n.hovertext,hoverlabel:n.hoverlabel,captureevents:n.captureevents}),\"calc\",\"from-root\")},{\"../../plot_api/edit_types\":727,\"../../plot_api/plot_template\":734,\"../annotations/attributes\":553}],563:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../plots/cartesian/axes\");function a(t,e){var r=e.fullSceneLayout.domain,a=e.fullLayout._size,o={pdata:null,type:\"linear\",autorange:!1,range:[-1/0,1/0]};t._xa={},n.extendFlat(t._xa,o),i.setConvert(t._xa),t._xa._offset=a.l+r.x[0]*a.w,t._xa.l2p=function(){return.5*(1+t._pdata[0]/t._pdata[3])*a.w*(r.x[1]-r.x[0])},t._ya={},n.extendFlat(t._ya,o),i.setConvert(t._ya),t._ya._offset=a.t+(1-r.y[1])*a.h,t._ya.l2p=function(){return.5*(1-t._pdata[1]/t._pdata[3])*a.h*(r.y[1]-r.y[0])}}e.exports=function(t){for(var e=t.fullSceneLayout.annotations,r=0;r<e.length;r++)a(e[r],t);t.fullLayout._infolayer.selectAll(\".annotation-\"+t.id).remove()}},{\"../../lib\":696,\"../../plots/cartesian/axes\":744}],564:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../plots/cartesian/axes\"),a=t(\"../../plots/array_container_defaults\"),o=t(\"../annotations/common_defaults\"),s=t(\"./attributes\");function l(t,e,r,a){function l(r,i){return n.coerce(t,e,s,r,i)}function c(t){var n=t+\"axis\",a={_fullLayout:{}};return a._fullLayout[n]=r[n],i.coercePosition(e,a,l,t,t,.5)}l(\"visible\")&&(o(t,e,a.fullLayout,l),c(\"x\"),c(\"y\"),c(\"z\"),n.noneOrAll(t,e,[\"x\",\"y\",\"z\"]),e.xref=\"x\",e.yref=\"y\",e.zref=\"z\",l(\"xanchor\"),l(\"yanchor\"),l(\"xshift\"),l(\"yshift\"),e.showarrow&&(e.axref=\"pixel\",e.ayref=\"pixel\",l(\"ax\",-10),l(\"ay\",-30),n.noneOrAll(t,e,[\"ax\",\"ay\"])))}e.exports=function(t,e,r){a(t,e,{name:\"annotations\",handleItemDefaults:l,fullLayout:r.fullLayout})}},{\"../../lib\":696,\"../../plots/array_container_defaults\":740,\"../../plots/cartesian/axes\":744,\"../annotations/common_defaults\":556,\"./attributes\":562}],565:[function(t,e,r){\"use strict\";var n=t(\"../annotations/draw\").drawRaw,i=t(\"../../plots/gl3d/project\"),a=[\"x\",\"y\",\"z\"];e.exports=function(t){for(var e=t.fullSceneLayout,r=t.dataScale,o=e.annotations,s=0;s<o.length;s++){for(var l=o[s],c=!1,u=0;u<3;u++){var f=a[u],h=l[f],p=e[f+\"axis\"].r2fraction(h);if(p<0||p>1){c=!0;break}}c?t.fullLayout._infolayer.select(\".annotation-\"+t.id+'[data-index=\"'+s+'\"]').remove():(l._pdata=i(t.glplot.cameraParams,[e.xaxis.r2l(l.x)*r[0],e.yaxis.r2l(l.y)*r[1],e.zaxis.r2l(l.z)*r[2]]),n(t.graphDiv,l,s,t.id,l._xa,l._ya))}}},{\"../../plots/gl3d/project\":796,\"../annotations/draw\":559}],566:[function(t,e,r){\"use strict\";var n=t(\"../../registry\"),i=t(\"../../lib\");e.exports={moduleType:\"component\",name:\"annotations3d\",schema:{subplots:{scene:{annotations:t(\"./attributes\")}}},layoutAttributes:t(\"./attributes\"),handleDefaults:t(\"./defaults\"),includeBasePlot:function(t,e){var r=n.subplotsRegistry.gl3d;if(!r)return;for(var a=r.attrRegex,o=Object.keys(t),s=0;s<o.length;s++){var l=o[s];a.test(l)&&(t[l].annotations||[]).length&&(i.pushUnique(e._basePlotModules,r),i.pushUnique(e._subplots.gl3d,l))}},convert:t(\"./convert\"),draw:t(\"./draw\")}},{\"../../lib\":696,\"../../registry\":827,\"./attributes\":562,\"./convert\":563,\"./defaults\":564,\"./draw\":565}],567:[function(t,e,r){\"use strict\";e.exports=t(\"world-calendars/dist/main\"),t(\"world-calendars/dist/plus\"),t(\"world-calendars/dist/calendars/chinese\"),t(\"world-calendars/dist/calendars/coptic\"),t(\"world-calendars/dist/calendars/discworld\"),t(\"world-calendars/dist/calendars/ethiopian\"),t(\"world-calendars/dist/calendars/hebrew\"),t(\"world-calendars/dist/calendars/islamic\"),t(\"world-calendars/dist/calendars/julian\"),t(\"world-calendars/dist/calendars/mayan\"),t(\"world-calendars/dist/calendars/nanakshahi\"),t(\"world-calendars/dist/calendars/nepali\"),t(\"world-calendars/dist/calendars/persian\"),t(\"world-calendars/dist/calendars/taiwan\"),t(\"world-calendars/dist/calendars/thai\"),t(\"world-calendars/dist/calendars/ummalqura\")},{\"world-calendars/dist/calendars/chinese\":534,\"world-calendars/dist/calendars/coptic\":535,\"world-calendars/dist/calendars/discworld\":536,\"world-calendars/dist/calendars/ethiopian\":537,\"world-calendars/dist/calendars/hebrew\":538,\"world-calendars/dist/calendars/islamic\":539,\"world-calendars/dist/calendars/julian\":540,\"world-calendars/dist/calendars/mayan\":541,\"world-calendars/dist/calendars/nanakshahi\":542,\"world-calendars/dist/calendars/nepali\":543,\"world-calendars/dist/calendars/persian\":544,\"world-calendars/dist/calendars/taiwan\":545,\"world-calendars/dist/calendars/thai\":546,\"world-calendars/dist/calendars/ummalqura\":547,\"world-calendars/dist/main\":548,\"world-calendars/dist/plus\":549}],568:[function(t,e,r){\"use strict\";var n=t(\"./calendars\"),i=t(\"../../lib\"),a=t(\"../../constants/numerical\"),o=a.EPOCHJD,s=a.ONEDAY,l={valType:\"enumerated\",values:Object.keys(n.calendars),editType:\"calc\",dflt:\"gregorian\"},c=function(t,e,r,n){var a={};return a[r]=l,i.coerce(t,e,a,r,n)},u=\"##\",f={d:{0:\"dd\",\"-\":\"d\"},e:{0:\"d\",\"-\":\"d\"},a:{0:\"D\",\"-\":\"D\"},A:{0:\"DD\",\"-\":\"DD\"},j:{0:\"oo\",\"-\":\"o\"},W:{0:\"ww\",\"-\":\"w\"},m:{0:\"mm\",\"-\":\"m\"},b:{0:\"M\",\"-\":\"M\"},B:{0:\"MM\",\"-\":\"MM\"},y:{0:\"yy\",\"-\":\"yy\"},Y:{0:\"yyyy\",\"-\":\"yyyy\"},U:u,w:u,c:{0:\"D M d %X yyyy\",\"-\":\"D M d %X yyyy\"},x:{0:\"mm/dd/yyyy\",\"-\":\"mm/dd/yyyy\"}};var h={};function p(t){var e=h[t];return e||(e=h[t]=n.instance(t))}function d(t){return i.extendFlat({},l,{description:t})}function g(t){return\"Sets the calendar system to use with `\"+t+\"` date data.\"}var v={xcalendar:d(g(\"x\"))},m=i.extendFlat({},v,{ycalendar:d(g(\"y\"))}),y=i.extendFlat({},m,{zcalendar:d(g(\"z\"))}),x=d([\"Sets the calendar system to use for `range` and `tick0`\",\"if this is a date axis. This does not set the calendar for\",\"interpreting data on this axis, that's specified in the trace\",\"or via the global `layout.calendar`\"].join(\" \"));e.exports={moduleType:\"component\",name:\"calendars\",schema:{traces:{scatter:m,bar:m,box:m,heatmap:m,contour:m,histogram:m,histogram2d:m,histogram2dcontour:m,scatter3d:y,surface:y,mesh3d:y,scattergl:m,ohlc:v,candlestick:v},layout:{calendar:d([\"Sets the default calendar system to use for interpreting and\",\"displaying dates throughout the plot.\"].join(\" \"))},subplots:{xaxis:{calendar:x},yaxis:{calendar:x},scene:{xaxis:{calendar:x},yaxis:{calendar:x},zaxis:{calendar:x}},polar:{radialaxis:{calendar:x}}},transforms:{filter:{valuecalendar:d([\"Sets the calendar system to use for `value`, if it is a date.\"].join(\" \")),targetcalendar:d([\"Sets the calendar system to use for `target`, if it is an\",\"array of dates. If `target` is a string (eg *x*) we use the\",\"corresponding trace attribute (eg `xcalendar`) if it exists,\",\"even if `targetcalendar` is provided.\"].join(\" \"))}}},layoutAttributes:l,handleDefaults:c,handleTraceDefaults:function(t,e,r,n){for(var i=0;i<r.length;i++)c(t,e,r[i]+\"calendar\",n.calendar)},CANONICAL_SUNDAY:{chinese:\"2000-01-02\",coptic:\"2000-01-03\",discworld:\"2000-01-03\",ethiopian:\"2000-01-05\",hebrew:\"5000-01-01\",islamic:\"1000-01-02\",julian:\"2000-01-03\",mayan:\"5000-01-01\",nanakshahi:\"1000-01-05\",nepali:\"2000-01-05\",persian:\"1000-01-01\",jalali:\"1000-01-01\",taiwan:\"1000-01-04\",thai:\"2000-01-04\",ummalqura:\"1400-01-06\"},CANONICAL_TICK:{chinese:\"2000-01-01\",coptic:\"2000-01-01\",discworld:\"2000-01-01\",ethiopian:\"2000-01-01\",hebrew:\"5000-01-01\",islamic:\"1000-01-01\",julian:\"2000-01-01\",mayan:\"5000-01-01\",nanakshahi:\"1000-01-01\",nepali:\"2000-01-01\",persian:\"1000-01-01\",jalali:\"1000-01-01\",taiwan:\"1000-01-01\",thai:\"2000-01-01\",ummalqura:\"1400-01-01\"},DFLTRANGE:{chinese:[\"2000-01-01\",\"2001-01-01\"],coptic:[\"1700-01-01\",\"1701-01-01\"],discworld:[\"1800-01-01\",\"1801-01-01\"],ethiopian:[\"2000-01-01\",\"2001-01-01\"],hebrew:[\"5700-01-01\",\"5701-01-01\"],islamic:[\"1400-01-01\",\"1401-01-01\"],julian:[\"2000-01-01\",\"2001-01-01\"],mayan:[\"5200-01-01\",\"5201-01-01\"],nanakshahi:[\"0500-01-01\",\"0501-01-01\"],nepali:[\"2000-01-01\",\"2001-01-01\"],persian:[\"1400-01-01\",\"1401-01-01\"],jalali:[\"1400-01-01\",\"1401-01-01\"],taiwan:[\"0100-01-01\",\"0101-01-01\"],thai:[\"2500-01-01\",\"2501-01-01\"],ummalqura:[\"1400-01-01\",\"1401-01-01\"]},getCal:p,worldCalFmt:function(t,e,r){for(var n,i,a,l,c,h=Math.floor((e+.05)/s)+o,d=p(r).fromJD(h),g=0;-1!==(g=t.indexOf(\"%\",g));)\"0\"===(n=t.charAt(g+1))||\"-\"===n||\"_\"===n?(a=3,i=t.charAt(g+2),\"_\"===n&&(n=\"-\")):(i=n,n=\"0\",a=2),(l=f[i])?(c=l===u?u:d.formatDate(l[n]),t=t.substr(0,g)+c+t.substr(g+a),g+=c.length):g+=a;return t}}},{\"../../constants/numerical\":673,\"../../lib\":696,\"./calendars\":567}],569:[function(t,e,r){\"use strict\";r.defaults=[\"#1f77b4\",\"#ff7f0e\",\"#2ca02c\",\"#d62728\",\"#9467bd\",\"#8c564b\",\"#e377c2\",\"#7f7f7f\",\"#bcbd22\",\"#17becf\"],r.defaultLine=\"#444\",r.lightLine=\"#eee\",r.background=\"#fff\",r.borderLine=\"#BEC8D9\",r.lightFraction=1e3/11},{}],570:[function(t,e,r){\"use strict\";var n=t(\"tinycolor2\"),i=t(\"fast-isnumeric\"),a=e.exports={},o=t(\"./attributes\");a.defaults=o.defaults;var s=a.defaultLine=o.defaultLine;a.lightLine=o.lightLine;var l=a.background=o.background;function c(t){if(i(t)||\"string\"!=typeof t)return t;var e=t.trim();if(\"rgb\"!==e.substr(0,3))return t;var r=e.match(/^rgba?\\s*\\(([^()]*)\\)$/);if(!r)return t;var n=r[1].trim().split(/\\s*[\\s,]\\s*/),a=\"a\"===e.charAt(3)&&4===n.length;if(!a&&3!==n.length)return t;for(var o=0;o<n.length;o++){if(!n[o].length)return t;if(n[o]=Number(n[o]),!(n[o]>=0))return t;if(3===o)n[o]>1&&(n[o]=1);else if(n[o]>=1)return t}var s=Math.round(255*n[0])+\", \"+Math.round(255*n[1])+\", \"+Math.round(255*n[2]);return a?\"rgba(\"+s+\", \"+n[3]+\")\":\"rgb(\"+s+\")\"}a.tinyRGB=function(t){var e=t.toRgb();return\"rgb(\"+Math.round(e.r)+\", \"+Math.round(e.g)+\", \"+Math.round(e.b)+\")\"},a.rgb=function(t){return a.tinyRGB(n(t))},a.opacity=function(t){return t?n(t).getAlpha():0},a.addOpacity=function(t,e){var r=n(t).toRgb();return\"rgba(\"+Math.round(r.r)+\", \"+Math.round(r.g)+\", \"+Math.round(r.b)+\", \"+e+\")\"},a.combine=function(t,e){var r=n(t).toRgb();if(1===r.a)return n(t).toRgbString();var i=n(e||l).toRgb(),a=1===i.a?i:{r:255*(1-i.a)+i.r*i.a,g:255*(1-i.a)+i.g*i.a,b:255*(1-i.a)+i.b*i.a},o={r:a.r*(1-r.a)+r.r*r.a,g:a.g*(1-r.a)+r.g*r.a,b:a.b*(1-r.a)+r.b*r.a};return n(o).toRgbString()},a.contrast=function(t,e,r){var i=n(t);return 1!==i.getAlpha()&&(i=n(a.combine(t,l))),(i.isDark()?e?i.lighten(e):l:r?i.darken(r):s).toString()},a.stroke=function(t,e){var r=n(e);t.style({stroke:a.tinyRGB(r),\"stroke-opacity\":r.getAlpha()})},a.fill=function(t,e){var r=n(e);t.style({fill:a.tinyRGB(r),\"fill-opacity\":r.getAlpha()})},a.clean=function(t){if(t&&\"object\"==typeof t){var e,r,n,i,o=Object.keys(t);for(e=0;e<o.length;e++)if(i=t[n=o[e]],\"color\"===n.substr(n.length-5))if(Array.isArray(i))for(r=0;r<i.length;r++)i[r]=c(i[r]);else t[n]=c(i);else if(\"colorscale\"===n.substr(n.length-10)&&Array.isArray(i))for(r=0;r<i.length;r++)Array.isArray(i[r])&&(i[r][1]=c(i[r][1]));else if(Array.isArray(i)){var s=i[0];if(!Array.isArray(s)&&s&&\"object\"==typeof s)for(r=0;r<i.length;r++)a.clean(i[r])}else i&&\"object\"==typeof i&&a.clean(i)}}},{\"./attributes\":569,\"fast-isnumeric\":214,tinycolor2:514}],571:[function(t,e,r){\"use strict\";var n=t(\"../../plots/cartesian/layout_attributes\"),i=t(\"../../plots/font_attributes\"),a=t(\"../../lib/extend\").extendFlat,o=t(\"../../plot_api/edit_types\").overrideAll;e.exports=o({thicknessmode:{valType:\"enumerated\",values:[\"fraction\",\"pixels\"],dflt:\"pixels\"},thickness:{valType:\"number\",min:0,dflt:30},lenmode:{valType:\"enumerated\",values:[\"fraction\",\"pixels\"],dflt:\"fraction\"},len:{valType:\"number\",min:0,dflt:1},x:{valType:\"number\",dflt:1.02,min:-2,max:3},xanchor:{valType:\"enumerated\",values:[\"left\",\"center\",\"right\"],dflt:\"left\"},xpad:{valType:\"number\",min:0,dflt:10},y:{valType:\"number\",dflt:.5,min:-2,max:3},yanchor:{valType:\"enumerated\",values:[\"top\",\"middle\",\"bottom\"],dflt:\"middle\"},ypad:{valType:\"number\",min:0,dflt:10},outlinecolor:n.linecolor,outlinewidth:n.linewidth,bordercolor:n.linecolor,borderwidth:{valType:\"number\",min:0,dflt:0},bgcolor:{valType:\"color\",dflt:\"rgba(0,0,0,0)\"},tickmode:n.tickmode,nticks:n.nticks,tick0:n.tick0,dtick:n.dtick,tickvals:n.tickvals,ticktext:n.ticktext,ticks:a({},n.ticks,{dflt:\"\"}),ticklen:n.ticklen,tickwidth:n.tickwidth,tickcolor:n.tickcolor,showticklabels:n.showticklabels,tickfont:i({}),tickangle:n.tickangle,tickformat:n.tickformat,tickformatstops:n.tickformatstops,tickprefix:n.tickprefix,showtickprefix:n.showtickprefix,ticksuffix:n.ticksuffix,showticksuffix:n.showticksuffix,separatethousands:n.separatethousands,exponentformat:n.exponentformat,showexponent:n.showexponent,title:{valType:\"string\"},titlefont:i({}),titleside:{valType:\"enumerated\",values:[\"right\",\"top\",\"bottom\"],dflt:\"top\"}},\"colorbars\",\"from-root\")},{\"../../lib/extend\":685,\"../../plot_api/edit_types\":727,\"../../plots/cartesian/layout_attributes\":757,\"../../plots/font_attributes\":771}],572:[function(t,e,r){\"use strict\";var n=t(\"./draw\");e.exports=function(t,e,r){if(\"function\"==typeof r)return r(t,e);var i=e[0].trace,a=\"cb\"+i.uid,o=r.container,s=o?i[o]:i;(t._fullLayout._infolayer.selectAll(\".\"+a).remove(),s&&s.showscale)&&(e[0].t.cb=n(t,a)).fillgradient(s.colorscale).zrange([s[r.min],s[r.max]]).options(s.colorbar)()}},{\"./draw\":575}],573:[function(t,e,r){\"use strict\";e.exports={cn:{colorbar:\"colorbar\",cbbg:\"cbbg\",cbfill:\"cbfill\",cbfills:\"cbfills\",cbline:\"cbline\",cblines:\"cblines\",cbaxis:\"cbaxis\",cbtitleunshift:\"cbtitleunshift\",cbtitle:\"cbtitle\",cboutline:\"cboutline\",crisp:\"crisp\",jsPlaceholder:\"js-placeholder\"}}},{}],574:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../plot_api/plot_template\"),a=t(\"../../plots/cartesian/tick_value_defaults\"),o=t(\"../../plots/cartesian/tick_mark_defaults\"),s=t(\"../../plots/cartesian/tick_label_defaults\"),l=t(\"./attributes\");e.exports=function(t,e,r){var c=i.newContainer(e,\"colorbar\"),u=t.colorbar||{};function f(t,e){return n.coerce(u,c,l,t,e)}var h=f(\"thicknessmode\");f(\"thickness\",\"fraction\"===h?30/(r.width-r.margin.l-r.margin.r):30);var p=f(\"lenmode\");f(\"len\",\"fraction\"===p?1:r.height-r.margin.t-r.margin.b),f(\"x\"),f(\"xanchor\"),f(\"xpad\"),f(\"y\"),f(\"yanchor\"),f(\"ypad\"),n.noneOrAll(u,c,[\"x\",\"y\"]),f(\"outlinecolor\"),f(\"outlinewidth\"),f(\"bordercolor\"),f(\"borderwidth\"),f(\"bgcolor\"),a(u,c,f,\"linear\");var d={outerTicks:!1,font:r.font};s(u,c,f,\"linear\",d),o(u,c,f,\"linear\",d),f(\"title\",r._dfltTitle.colorbar),n.coerceFont(f,\"titlefont\",r.font),f(\"titleside\")}},{\"../../lib\":696,\"../../plot_api/plot_template\":734,\"../../plots/cartesian/tick_label_defaults\":764,\"../../plots/cartesian/tick_mark_defaults\":765,\"../../plots/cartesian/tick_value_defaults\":766,\"./attributes\":571}],575:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"tinycolor2\"),a=t(\"../../plots/plots\"),o=t(\"../../registry\"),s=t(\"../../plots/cartesian/axes\"),l=t(\"../dragelement\"),c=t(\"../../lib\"),u=t(\"../../lib/extend\").extendFlat,f=t(\"../../lib/setcursor\"),h=t(\"../drawing\"),p=t(\"../color\"),d=t(\"../titles\"),g=t(\"../../lib/svg_text_utils\"),v=t(\"../../constants/alignment\"),m=v.LINE_SPACING,y=v.FROM_TL,x=v.FROM_BR,b=t(\"../../plots/cartesian/axis_defaults\"),_=t(\"../../plots/cartesian/position_defaults\"),w=t(\"../../plots/cartesian/layout_attributes\"),k=t(\"./attributes\"),M=t(\"./constants\").cn;e.exports=function(t,e){var r={};for(var v in k)r[v]=null;function A(){var v=t._fullLayout,k=v._size;if(\"function\"==typeof r.fillcolor||\"function\"==typeof r.line.color||r.fillgradient){var S,E,C=r.zrange||n.extent((\"function\"==typeof r.fillcolor?r.fillcolor:r.line.color).domain()),L=[],z=[],O=\"function\"==typeof r.line.color?r.line.color:function(){return r.line.color},I=\"function\"==typeof r.fillcolor?r.fillcolor:function(){return r.fillcolor},P=r.levels.end+r.levels.size/100,D=r.levels.size,R=1.001*C[0]-.001*C[1],B=1.001*C[1]-.001*C[0];for(E=0;E<1e5&&(S=r.levels.start+E*D,!(D>0?S>=P:S<=P));E++)S>R&&S<B&&L.push(S);if(r.fillgradient)z=[0];else if(\"function\"==typeof r.fillcolor)if(r.filllevels)for(P=r.filllevels.end+r.filllevels.size/100,D=r.filllevels.size,E=0;E<1e5&&(S=r.filllevels.start+E*D,!(D>0?S>=P:S<=P));E++)S>C[0]&&S<C[1]&&z.push(S);else(z=L.map(function(t){return t-r.levels.size/2})).push(z[z.length-1]+r.levels.size);else r.fillcolor&&\"string\"==typeof r.fillcolor&&(z=[0]);r.levels.size<0&&(L.reverse(),z.reverse());var F,N=k.h,j=k.w,V=Math.round(r.thickness*(\"fraction\"===r.thicknessmode?j:1)),U=V/k.w,q=Math.round(r.len*(\"fraction\"===r.lenmode?N:1)),H=q/k.h,G=r.xpad/k.w,W=(r.borderwidth+r.outlinewidth)/2,Y=r.ypad/k.h,X=Math.round(r.x*k.w+r.xpad),Z=r.x-U*({middle:.5,right:1}[r.xanchor]||0),$=r.y+H*(({top:-.5,bottom:.5}[r.yanchor]||0)-.5),J=Math.round(k.h*(1-$)),K=J-q,Q={type:\"linear\",range:C,tickmode:r.tickmode,nticks:r.nticks,tick0:r.tick0,dtick:r.dtick,tickvals:r.tickvals,ticktext:r.ticktext,ticks:r.ticks,ticklen:r.ticklen,tickwidth:r.tickwidth,tickcolor:r.tickcolor,showticklabels:r.showticklabels,tickfont:r.tickfont,tickangle:r.tickangle,tickformat:r.tickformat,exponentformat:r.exponentformat,separatethousands:r.separatethousands,showexponent:r.showexponent,showtickprefix:r.showtickprefix,tickprefix:r.tickprefix,showticksuffix:r.showticksuffix,ticksuffix:r.ticksuffix,title:r.title,titlefont:r.titlefont,showline:!0,anchor:\"free\",position:1},tt={type:\"linear\",_id:\"y\"+e},et={letter:\"y\",font:v.font,noHover:!0,calendar:v.calendar};if(b(Q,tt,vt,et,v),_(Q,tt,vt,et),tt.position=r.x+G+U,A.axis=tt,-1!==[\"top\",\"bottom\"].indexOf(r.titleside)&&(tt.titleside=r.titleside,tt.titlex=r.x+G,tt.titley=$+(\"top\"===r.titleside?H-Y:Y)),r.line.color&&\"auto\"===r.tickmode){tt.tickmode=\"linear\",tt.tick0=r.levels.start;var rt=r.levels.size,nt=c.constrain((J-K)/50,4,15)+1,it=(C[1]-C[0])/((r.nticks||nt)*rt);if(it>1){var at=Math.pow(10,Math.floor(Math.log(it)/Math.LN10));rt*=at*c.roundUp(it/at,[2,5,10]),(Math.abs(r.levels.start)/r.levels.size+1e-6)%1<2e-6&&(tt.tick0=0)}tt.dtick=rt}tt.domain=[$+Y,$+H-Y],tt.setScale();var ot=c.ensureSingle(v._infolayer,\"g\",e,function(t){t.classed(M.colorbar,!0).each(function(){var t=n.select(this);t.append(\"rect\").classed(M.cbbg,!0),t.append(\"g\").classed(M.cbfills,!0),t.append(\"g\").classed(M.cblines,!0),t.append(\"g\").classed(M.cbaxis,!0).classed(M.crisp,!0),t.append(\"g\").classed(M.cbtitleunshift,!0).append(\"g\").classed(M.cbtitle,!0),t.append(\"rect\").classed(M.cboutline,!0),t.select(\".cbtitle\").datum(0)})});ot.attr(\"transform\",\"translate(\"+Math.round(k.l)+\",\"+Math.round(k.t)+\")\");var st=ot.select(\".cbtitleunshift\").attr(\"transform\",\"translate(-\"+Math.round(k.l)+\",-\"+Math.round(k.t)+\")\");tt._axislayer=ot.select(\".cbaxis\");var lt=0;if(-1!==[\"top\",\"bottom\"].indexOf(r.titleside)){var ct,ut=k.l+(r.x+G)*k.w,ft=tt.titlefont.size;ct=\"top\"===r.titleside?(1-($+H-Y))*k.h+k.t+3+.75*ft:(1-($+Y))*k.h+k.t-3-.25*ft,mt(tt._id+\"title\",{attributes:{x:ut,y:ct,\"text-anchor\":\"start\"}})}var ht,pt,dt,gt=c.syncOrAsync([a.previousPromises,function(){if(-1!==[\"top\",\"bottom\"].indexOf(r.titleside)){var a=ot.select(\".cbtitle\"),o=a.select(\"text\"),l=[-r.outlinewidth/2,r.outlinewidth/2],u=a.select(\".h\"+tt._id+\"title-math-group\").node(),f=15.6;if(o.node()&&(f=parseInt(o.node().style.fontSize,10)*m),u?(lt=h.bBox(u).height)>f&&(l[1]-=(lt-f)/2):o.node()&&!o.classed(M.jsPlaceholder)&&(lt=h.bBox(o.node()).height),lt){if(lt+=5,\"top\"===r.titleside)tt.domain[1]-=lt/k.h,l[1]*=-1;else{tt.domain[0]+=lt/k.h;var p=g.lineCount(o);l[1]+=(1-p)*f}a.attr(\"transform\",\"translate(\"+l+\")\"),tt.setScale()}}ot.selectAll(\".cbfills,.cblines\").attr(\"transform\",\"translate(0,\"+Math.round(k.h*(1-tt.domain[1]))+\")\"),tt._axislayer.attr(\"transform\",\"translate(0,\"+Math.round(-k.t)+\")\");var d=ot.select(\".cbfills\").selectAll(\"rect.cbfill\").data(z);d.enter().append(\"rect\").classed(M.cbfill,!0).style(\"stroke\",\"none\"),d.exit().remove();var y=C.map(tt.c2p).map(Math.round).sort(function(t,e){return t-e});d.each(function(a,o){var s=[0===o?C[0]:(z[o]+z[o-1])/2,o===z.length-1?C[1]:(z[o]+z[o+1])/2].map(tt.c2p).map(Math.round);s[1]=c.constrain(s[1]+(s[1]>s[0])?1:-1,y[0],y[1]);var l=n.select(this).attr({x:X,width:Math.max(V,2),y:n.min(s),height:Math.max(n.max(s)-n.min(s),2)});if(r.fillgradient)h.gradient(l,t,e,\"vertical\",r.fillgradient,\"fill\");else{var u=I(a).replace(\"e-\",\"\");l.attr(\"fill\",i(u).toHexString())}});var x=ot.select(\".cblines\").selectAll(\"path.cbline\").data(r.line.color&&r.line.width?L:[]);return x.enter().append(\"path\").classed(M.cbline,!0),x.exit().remove(),x.each(function(t){n.select(this).attr(\"d\",\"M\"+X+\",\"+(Math.round(tt.c2p(t))+r.line.width/2%1)+\"h\"+V).call(h.lineGroupStyle,r.line.width,O(t),r.line.dash)}),tt._axislayer.selectAll(\"g.\"+tt._id+\"tick,path\").remove(),tt._pos=X+V+(r.outlinewidth||0)/2-(\"outside\"===r.ticks?1:0),tt.side=\"right\",c.syncOrAsync([function(){return s.doTicksSingle(t,tt,!0)},function(){if(-1===[\"top\",\"bottom\"].indexOf(r.titleside)){var e=tt.titlefont.size,i=tt._offset+tt._length/2,a=k.l+(tt.position||0)*k.w+(\"right\"===tt.side?10+e*(tt.showticklabels?1:.5):-10-e*(tt.showticklabels?.5:0));mt(\"h\"+tt._id+\"title\",{avoid:{selection:n.select(t).selectAll(\"g.\"+tt._id+\"tick\"),side:r.titleside,offsetLeft:k.l,offsetTop:0,maxShift:v.width},attributes:{x:a,y:i,\"text-anchor\":\"middle\"},transform:{rotate:\"-90\",offset:0}})}}])},a.previousPromises,function(){var n=V+r.outlinewidth/2+h.bBox(tt._axislayer.node()).width;if((F=st.select(\"text\")).node()&&!F.classed(M.jsPlaceholder)){var i,o=st.select(\".h\"+tt._id+\"title-math-group\").node();i=o&&-1!==[\"top\",\"bottom\"].indexOf(r.titleside)?h.bBox(o).width:h.bBox(st.node()).right-X-k.l,n=Math.max(n,i)}var s=2*r.xpad+n+r.borderwidth+r.outlinewidth/2,l=J-K;ot.select(\".cbbg\").attr({x:X-r.xpad-(r.borderwidth+r.outlinewidth)/2,y:K-W,width:Math.max(s,2),height:Math.max(l+2*W,2)}).call(p.fill,r.bgcolor).call(p.stroke,r.bordercolor).style({\"stroke-width\":r.borderwidth}),ot.selectAll(\".cboutline\").attr({x:X,y:K+r.ypad+(\"top\"===r.titleside?lt:0),width:Math.max(V,2),height:Math.max(l-2*r.ypad-lt,2)}).call(p.stroke,r.outlinecolor).style({fill:\"None\",\"stroke-width\":r.outlinewidth});var c=({center:.5,right:1}[r.xanchor]||0)*s;ot.attr(\"transform\",\"translate(\"+(k.l-c)+\",\"+k.t+\")\");var u={},f=y[r.yanchor],d=x[r.yanchor];\"pixels\"===r.lenmode?(u.y=r.y,u.t=l*f,u.b=l*d):(u.t=u.b=0,u.yt=r.y+r.len*f,u.yb=r.y-r.len*d);var g=y[r.xanchor],v=x[r.xanchor];if(\"pixels\"===r.thicknessmode)u.x=r.x,u.l=s*g,u.r=s*v;else{var m=s-V;u.l=m*g,u.r=m*v,u.xl=r.x-r.thickness*g,u.xr=r.x+r.thickness*v}a.autoMargin(t,e,u)}],t);if(gt&&gt.then&&(t._promises||[]).push(gt),t._context.edits.colorbarPosition)l.init({element:ot.node(),gd:t,prepFn:function(){ht=ot.attr(\"transform\"),f(ot)},moveFn:function(t,e){ot.attr(\"transform\",ht+\" translate(\"+t+\",\"+e+\")\"),pt=l.align(Z+t/k.w,U,0,1,r.xanchor),dt=l.align($-e/k.h,H,0,1,r.yanchor);var n=l.getCursor(pt,dt,r.xanchor,r.yanchor);f(ot,n)},doneFn:function(){f(ot),void 0!==pt&&void 0!==dt&&o.call(\"restyle\",t,{\"colorbar.x\":pt,\"colorbar.y\":dt},T().index)}});return gt}function vt(t,e){return c.coerce(Q,tt,w,t,e)}function mt(e,r){var n=T(),i=\"colorbar.title\",a=n._module.colorbar.container;a&&(i=a+\".\"+i);var o={propContainer:tt,propName:i,traceIndex:n.index,placeholder:v._dfltTitle.colorbar,containerGroup:ot.select(\".cbtitle\")},s=\"h\"===e.charAt(0)?e.substr(1):\"h\"+e;ot.selectAll(\".\"+s+\",.\"+s+\"-math-group\").remove(),d.draw(t,e,u(o,r||{}))}v._infolayer.selectAll(\"g.\"+e).remove()}function T(){var r,n,i=e.substr(2);for(r=0;r<t._fullData.length;r++)if((n=t._fullData[r]).uid===i)return n}return r.fillcolor=null,r.line={color:null,width:null,dash:null},r.levels={start:null,end:null,size:null},r.filllevels=null,r.fillgradient=null,r.zrange=null,Object.keys(r).forEach(function(t){A[t]=function(e){return arguments.length?(r[t]=c.isPlainObject(r[t])?c.extendFlat(r[t],e):e,A):r[t]}}),A.options=function(t){for(var e in t)\"function\"==typeof A[e]&&A[e](t[e]);return A},A._opts=r,A}},{\"../../constants/alignment\":668,\"../../lib\":696,\"../../lib/extend\":685,\"../../lib/setcursor\":716,\"../../lib/svg_text_utils\":720,\"../../plots/cartesian/axes\":744,\"../../plots/cartesian/axis_defaults\":746,\"../../plots/cartesian/layout_attributes\":757,\"../../plots/cartesian/position_defaults\":760,\"../../plots/plots\":808,\"../../registry\":827,\"../color\":570,\"../dragelement\":592,\"../drawing\":595,\"../titles\":661,\"./attributes\":571,\"./constants\":573,d3:148,tinycolor2:514}],576:[function(t,e,r){\"use strict\";var n=t(\"../../lib\");e.exports=function(t){return n.isPlainObject(t.colorbar)}},{\"../../lib\":696}],577:[function(t,e,r){\"use strict\";var n=t(\"./scales.js\");Object.keys(n);function i(t){return\"`\"+t+\"`\"}e.exports=function(t,e){t=t||\"\";var r,a=(e=e||{}).cLetter||\"c\",o=(\"onlyIfNumerical\"in e?e.onlyIfNumerical:Boolean(t),\"noScale\"in e?e.noScale:\"marker.line\"===t),s=\"showScaleDflt\"in e?e.showScaleDflt:\"z\"===a,l=\"string\"==typeof e.colorscaleDflt?n[e.colorscaleDflt]:null,c=e.editTypeOverride||\"\",u=t?t+\".\":\"\";\"colorAttr\"in e?(r=e.colorAttr,e.colorAttr):i(u+(r={z:\"z\",c:\"color\"}[a]));var f=a+\"auto\",h=a+\"min\",p=a+\"max\",d=(i(u+h),i(u+p),{});d[h]=d[p]=void 0;var g={};g[f]=!1;var v={};return\"color\"===r&&(v.color={valType:\"color\",arrayOk:!0,editType:c||\"style\"}),v[f]={valType:\"boolean\",dflt:!0,editType:\"calc\",impliedEdits:d},v[h]={valType:\"number\",dflt:null,editType:c||\"plot\",impliedEdits:g},v[p]={valType:\"number\",dflt:null,editType:c||\"plot\",impliedEdits:g},v.colorscale={valType:\"colorscale\",editType:\"calc\",dflt:l,impliedEdits:{autocolorscale:!1}},v.autocolorscale={valType:\"boolean\",dflt:!1!==e.autoColorDflt,editType:\"calc\",impliedEdits:{colorscale:void 0}},v.reversescale={valType:\"boolean\",dflt:!1,editType:\"calc\"},o||(v.showscale={valType:\"boolean\",dflt:s,editType:\"calc\"}),v}},{\"./scales.js\":589}],578:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"./scales\"),a=t(\"./flip_scale\");e.exports=function(t,e,r,o){var s=t,l=t._input,c=t._fullInput,u=t.updateStyle;function f(e,n,i){void 0===i&&(i=n),u?u(t._input,r?r+\".\"+e:e,n):l[e]=n,s[e]=i,c&&t!==t._fullInput&&(u?u(t._fullInput,r?r+\".\"+e:e,i):c[e]=i)}r&&(s=n.nestedProperty(s,r).get(),l=n.nestedProperty(l,r).get(),c=n.nestedProperty(c,r).get()||{});var h=o+\"auto\",p=o+\"min\",d=o+\"max\",g=s[h],v=s[p],m=s[d],y=s.colorscale;!1===g&&void 0!==v||(v=n.aggNums(Math.min,null,e)),!1===g&&void 0!==m||(m=n.aggNums(Math.max,null,e)),v===m&&(v-=.5,m+=.5),f(p,v),f(d,m),f(h,!1!==g||void 0===v&&void 0===m),s.autocolorscale&&(f(\"colorscale\",y=v*m<0?i.RdBu:v>=0?i.Reds:i.Blues,s.reversescale?a(y):y),l.autocolorscale||f(\"autocolorscale\",!1))}},{\"../../lib\":696,\"./flip_scale\":582,\"./scales\":589}],579:[function(t,e,r){\"use strict\";var n=t(\"./scales\");e.exports=n.RdBu},{\"./scales\":589}],580:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../../lib\"),a=t(\"../colorbar/has_colorbar\"),o=t(\"../colorbar/defaults\"),s=t(\"./is_valid_scale\"),l=t(\"./flip_scale\");e.exports=function(t,e,r,c,u){var f,h=u.prefix,p=u.cLetter,d=h.slice(0,h.length-1),g=h?i.nestedProperty(t,d).get()||{}:t,v=h?i.nestedProperty(e,d).get()||{}:e,m=g[p+\"min\"],y=g[p+\"max\"],x=g.colorscale;c(h+p+\"auto\",!(n(m)&&n(y)&&m<y)),c(h+p+\"min\"),c(h+p+\"max\"),void 0!==x&&(f=!s(x)),c(h+\"autocolorscale\",f);var b,_=c(h+\"colorscale\");(c(h+\"reversescale\")&&(v.colorscale=l(_)),\"marker.line.\"!==h)&&(u.noScale||(h&&(b=a(g)),c(h+\"showscale\",b)&&o(g,v,r)))}},{\"../../lib\":696,\"../colorbar/defaults\":574,\"../colorbar/has_colorbar\":576,\"./flip_scale\":582,\"./is_valid_scale\":586,\"fast-isnumeric\":214}],581:[function(t,e,r){\"use strict\";e.exports=function(t,e,r){for(var n=t.length,i=new Array(n),a=new Array(n),o=0;o<n;o++){var s=t[o];i[o]=e+s[0]*(r-e),a[o]=s[1]}return{domain:i,range:a}}},{}],582:[function(t,e,r){\"use strict\";e.exports=function(t){for(var e,r=t.length,n=new Array(r),i=r-1,a=0;i>=0;i--,a++)e=t[i],n[a]=[1-e[0],e[1]];return n}},{}],583:[function(t,e,r){\"use strict\";var n=t(\"./scales\"),i=t(\"./default_scale\"),a=t(\"./is_valid_scale_array\");e.exports=function(t,e){if(e||(e=i),!t)return e;function r(){try{t=n[t]||JSON.parse(t)}catch(r){t=e}}return\"string\"==typeof t&&(r(),\"string\"==typeof t&&r()),a(t)?t:e}},{\"./default_scale\":579,\"./is_valid_scale_array\":587,\"./scales\":589}],584:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../../lib\"),a=t(\"./is_valid_scale\");e.exports=function(t,e){var r=e?i.nestedProperty(t,e).get()||{}:t,o=r.color,s=!1;if(i.isArrayOrTypedArray(o))for(var l=0;l<o.length;l++)if(n(o[l])){s=!0;break}return i.isPlainObject(r)&&(s||!0===r.showscale||n(r.cmin)&&n(r.cmax)||a(r.colorscale)||i.isPlainObject(r.colorbar))}},{\"../../lib\":696,\"./is_valid_scale\":586,\"fast-isnumeric\":214}],585:[function(t,e,r){\"use strict\";r.scales=t(\"./scales\"),r.defaultScale=t(\"./default_scale\"),r.attributes=t(\"./attributes\"),r.handleDefaults=t(\"./defaults\"),r.calc=t(\"./calc\"),r.hasColorscale=t(\"./has_colorscale\"),r.isValidScale=t(\"./is_valid_scale\"),r.getScale=t(\"./get_scale\"),r.flipScale=t(\"./flip_scale\"),r.extractScale=t(\"./extract_scale\"),r.makeColorScaleFunc=t(\"./make_color_scale_func\")},{\"./attributes\":577,\"./calc\":578,\"./default_scale\":579,\"./defaults\":580,\"./extract_scale\":581,\"./flip_scale\":582,\"./get_scale\":583,\"./has_colorscale\":584,\"./is_valid_scale\":586,\"./make_color_scale_func\":588,\"./scales\":589}],586:[function(t,e,r){\"use strict\";var n=t(\"./scales\"),i=t(\"./is_valid_scale_array\");e.exports=function(t){return void 0!==n[t]||i(t)}},{\"./is_valid_scale_array\":587,\"./scales\":589}],587:[function(t,e,r){\"use strict\";var n=t(\"tinycolor2\");e.exports=function(t){var e=0;if(!Array.isArray(t)||t.length<2)return!1;if(!t[0]||!t[t.length-1])return!1;if(0!=+t[0][0]||1!=+t[t.length-1][0])return!1;for(var r=0;r<t.length;r++){var i=t[r];if(2!==i.length||+i[0]<e||!n(i[1]).isValid())return!1;e=+i[0]}return!0}},{tinycolor2:514}],588:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"tinycolor2\"),a=t(\"fast-isnumeric\"),o=t(\"../color\");function s(t){var e={r:t[0],g:t[1],b:t[2],a:t[3]};return i(e).toRgbString()}e.exports=function(t,e){e=e||{};for(var r=t.domain,l=t.range,c=l.length,u=new Array(c),f=0;f<c;f++){var h=i(l[f]).toRgb();u[f]=[h.r,h.g,h.b,h.a]}var p,d=n.scale.linear().domain(r).range(u).clamp(!0),g=e.noNumericCheck,v=e.returnArray;return(p=g&&v?d:g?function(t){return s(d(t))}:v?function(t){return a(t)?d(t):i(t).isValid()?t:o.defaultLine}:function(t){return a(t)?s(d(t)):i(t).isValid()?t:o.defaultLine}).domain=d.domain,p.range=function(){return l},p}},{\"../color\":570,d3:148,\"fast-isnumeric\":214,tinycolor2:514}],589:[function(t,e,r){\"use strict\";e.exports={Greys:[[0,\"rgb(0,0,0)\"],[1,\"rgb(255,255,255)\"]],YlGnBu:[[0,\"rgb(8,29,88)\"],[.125,\"rgb(37,52,148)\"],[.25,\"rgb(34,94,168)\"],[.375,\"rgb(29,145,192)\"],[.5,\"rgb(65,182,196)\"],[.625,\"rgb(127,205,187)\"],[.75,\"rgb(199,233,180)\"],[.875,\"rgb(237,248,217)\"],[1,\"rgb(255,255,217)\"]],Greens:[[0,\"rgb(0,68,27)\"],[.125,\"rgb(0,109,44)\"],[.25,\"rgb(35,139,69)\"],[.375,\"rgb(65,171,93)\"],[.5,\"rgb(116,196,118)\"],[.625,\"rgb(161,217,155)\"],[.75,\"rgb(199,233,192)\"],[.875,\"rgb(229,245,224)\"],[1,\"rgb(247,252,245)\"]],YlOrRd:[[0,\"rgb(128,0,38)\"],[.125,\"rgb(189,0,38)\"],[.25,\"rgb(227,26,28)\"],[.375,\"rgb(252,78,42)\"],[.5,\"rgb(253,141,60)\"],[.625,\"rgb(254,178,76)\"],[.75,\"rgb(254,217,118)\"],[.875,\"rgb(255,237,160)\"],[1,\"rgb(255,255,204)\"]],Bluered:[[0,\"rgb(0,0,255)\"],[1,\"rgb(255,0,0)\"]],RdBu:[[0,\"rgb(5,10,172)\"],[.35,\"rgb(106,137,247)\"],[.5,\"rgb(190,190,190)\"],[.6,\"rgb(220,170,132)\"],[.7,\"rgb(230,145,90)\"],[1,\"rgb(178,10,28)\"]],Reds:[[0,\"rgb(220,220,220)\"],[.2,\"rgb(245,195,157)\"],[.4,\"rgb(245,160,105)\"],[1,\"rgb(178,10,28)\"]],Blues:[[0,\"rgb(5,10,172)\"],[.35,\"rgb(40,60,190)\"],[.5,\"rgb(70,100,245)\"],[.6,\"rgb(90,120,245)\"],[.7,\"rgb(106,137,247)\"],[1,\"rgb(220,220,220)\"]],Picnic:[[0,\"rgb(0,0,255)\"],[.1,\"rgb(51,153,255)\"],[.2,\"rgb(102,204,255)\"],[.3,\"rgb(153,204,255)\"],[.4,\"rgb(204,204,255)\"],[.5,\"rgb(255,255,255)\"],[.6,\"rgb(255,204,255)\"],[.7,\"rgb(255,153,255)\"],[.8,\"rgb(255,102,204)\"],[.9,\"rgb(255,102,102)\"],[1,\"rgb(255,0,0)\"]],Rainbow:[[0,\"rgb(150,0,90)\"],[.125,\"rgb(0,0,200)\"],[.25,\"rgb(0,25,255)\"],[.375,\"rgb(0,152,255)\"],[.5,\"rgb(44,255,150)\"],[.625,\"rgb(151,255,0)\"],[.75,\"rgb(255,234,0)\"],[.875,\"rgb(255,111,0)\"],[1,\"rgb(255,0,0)\"]],Portland:[[0,\"rgb(12,51,131)\"],[.25,\"rgb(10,136,186)\"],[.5,\"rgb(242,211,56)\"],[.75,\"rgb(242,143,56)\"],[1,\"rgb(217,30,30)\"]],Jet:[[0,\"rgb(0,0,131)\"],[.125,\"rgb(0,60,170)\"],[.375,\"rgb(5,255,255)\"],[.625,\"rgb(255,255,0)\"],[.875,\"rgb(250,0,0)\"],[1,\"rgb(128,0,0)\"]],Hot:[[0,\"rgb(0,0,0)\"],[.3,\"rgb(230,0,0)\"],[.6,\"rgb(255,210,0)\"],[1,\"rgb(255,255,255)\"]],Blackbody:[[0,\"rgb(0,0,0)\"],[.2,\"rgb(230,0,0)\"],[.4,\"rgb(230,210,0)\"],[.7,\"rgb(255,255,255)\"],[1,\"rgb(160,200,255)\"]],Earth:[[0,\"rgb(0,0,130)\"],[.1,\"rgb(0,180,180)\"],[.2,\"rgb(40,210,40)\"],[.4,\"rgb(230,230,50)\"],[.6,\"rgb(120,70,20)\"],[1,\"rgb(255,255,255)\"]],Electric:[[0,\"rgb(0,0,0)\"],[.15,\"rgb(30,0,100)\"],[.4,\"rgb(120,0,100)\"],[.6,\"rgb(160,90,0)\"],[.8,\"rgb(230,200,0)\"],[1,\"rgb(255,250,220)\"]],Viridis:[[0,\"#440154\"],[.06274509803921569,\"#48186a\"],[.12549019607843137,\"#472d7b\"],[.18823529411764706,\"#424086\"],[.25098039215686274,\"#3b528b\"],[.3137254901960784,\"#33638d\"],[.3764705882352941,\"#2c728e\"],[.4392156862745098,\"#26828e\"],[.5019607843137255,\"#21918c\"],[.5647058823529412,\"#1fa088\"],[.6274509803921569,\"#28ae80\"],[.6901960784313725,\"#3fbc73\"],[.7529411764705882,\"#5ec962\"],[.8156862745098039,\"#84d44b\"],[.8784313725490196,\"#addc30\"],[.9411764705882353,\"#d8e219\"],[1,\"#fde725\"]],Cividis:[[0,\"rgb(0,32,76)\"],[.058824,\"rgb(0,42,102)\"],[.117647,\"rgb(0,52,110)\"],[.176471,\"rgb(39,63,108)\"],[.235294,\"rgb(60,74,107)\"],[.294118,\"rgb(76,85,107)\"],[.352941,\"rgb(91,95,109)\"],[.411765,\"rgb(104,106,112)\"],[.470588,\"rgb(117,117,117)\"],[.529412,\"rgb(131,129,120)\"],[.588235,\"rgb(146,140,120)\"],[.647059,\"rgb(161,152,118)\"],[.705882,\"rgb(176,165,114)\"],[.764706,\"rgb(192,177,109)\"],[.823529,\"rgb(209,191,102)\"],[.882353,\"rgb(225,204,92)\"],[.941176,\"rgb(243,219,79)\"],[1,\"rgb(255,233,69)\"]]}},{}],590:[function(t,e,r){\"use strict\";e.exports=function(t,e,r,n,i){var a=(t-r)/(n-r),o=a+e/(n-r),s=(a+o)/2;return\"left\"===i||\"bottom\"===i?a:\"center\"===i||\"middle\"===i?s:\"right\"===i||\"top\"===i?o:a<2/3-s?a:o>4/3-s?o:s}},{}],591:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=[[\"sw-resize\",\"s-resize\",\"se-resize\"],[\"w-resize\",\"move\",\"e-resize\"],[\"nw-resize\",\"n-resize\",\"ne-resize\"]];e.exports=function(t,e,r,a){return t=\"left\"===r?0:\"center\"===r?1:\"right\"===r?2:n.constrain(Math.floor(3*t),0,2),e=\"bottom\"===a?0:\"middle\"===a?1:\"top\"===a?2:n.constrain(Math.floor(3*e),0,2),i[e][t]}},{\"../../lib\":696}],592:[function(t,e,r){\"use strict\";var n=t(\"mouse-event-offset\"),i=t(\"has-hover\"),a=t(\"has-passive-events\"),o=t(\"../../registry\"),s=t(\"../../lib\"),l=t(\"../../plots/cartesian/constants\"),c=t(\"../../constants/interactions\"),u=e.exports={};u.align=t(\"./align\"),u.getCursor=t(\"./cursor\");var f=t(\"./unhover\");function h(){var t=document.createElement(\"div\");t.className=\"dragcover\";var e=t.style;return e.position=\"fixed\",e.left=0,e.right=0,e.top=0,e.bottom=0,e.zIndex=999999999,e.background=\"none\",document.body.appendChild(t),t}function p(t){return n(t.changedTouches?t.changedTouches[0]:t,document.body)}u.unhover=f.wrapped,u.unhoverRaw=f.raw,u.init=function(t){var e,r,n,f,d,g,v,m,y=t.gd,x=1,b=c.DBLCLICKDELAY,_=t.element;y._mouseDownTime||(y._mouseDownTime=0),_.style.pointerEvents=\"all\",_.onmousedown=k,a?(_._ontouchstart&&_.removeEventListener(\"touchstart\",_._ontouchstart),_._ontouchstart=k,_.addEventListener(\"touchstart\",k,{passive:!1})):_.ontouchstart=k;var w=t.clampFn||function(t,e,r){return Math.abs(t)<r&&(t=0),Math.abs(e)<r&&(e=0),[t,e]};function k(a){a.preventDefault(),y._dragged=!1,y._dragging=!0;var o=p(a);e=o[0],r=o[1],v=a.target,g=a,m=2===a.buttons||a.ctrlKey,\"undefined\"==typeof a.clientX&&\"undefined\"==typeof a.clientY&&(a.clientX=e,a.clientY=r),(n=(new Date).getTime())-y._mouseDownTime<b?x+=1:(x=1,y._mouseDownTime=n),t.prepFn&&t.prepFn(a,e,r),i&&!m?(d=h()).style.cursor=window.getComputedStyle(_).cursor:i||(d=document,f=window.getComputedStyle(document.documentElement).cursor,document.documentElement.style.cursor=window.getComputedStyle(_).cursor),document.addEventListener(\"mousemove\",M),document.addEventListener(\"mouseup\",A),document.addEventListener(\"touchmove\",M),document.addEventListener(\"touchend\",A)}function M(n){n.preventDefault();var i=p(n),a=t.minDrag||l.MINDRAG,o=w(i[0]-e,i[1]-r,a),s=o[0],c=o[1];(s||c)&&(y._dragged=!0,u.unhover(y)),y._dragged&&t.moveFn&&!m&&t.moveFn(s,c)}function A(e){if(document.removeEventListener(\"mousemove\",M),document.removeEventListener(\"mouseup\",A),document.removeEventListener(\"touchmove\",M),document.removeEventListener(\"touchend\",A),e.preventDefault(),i?s.removeElement(d):f&&(d.documentElement.style.cursor=f,f=null),y._dragging){if(y._dragging=!1,(new Date).getTime()-y._mouseDownTime>b&&(x=Math.max(x-1,1)),y._dragged)t.doneFn&&t.doneFn();else if(t.clickFn&&t.clickFn(x,g),!m){var r;try{r=new MouseEvent(\"click\",e)}catch(t){var n=p(e);(r=document.createEvent(\"MouseEvents\")).initMouseEvent(\"click\",e.bubbles,e.cancelable,e.view,e.detail,e.screenX,e.screenY,n[0],n[1],e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,e.button,e.relatedTarget)}v.dispatchEvent(r)}!function(t){t._dragging=!1,t._replotPending&&o.call(\"plot\",t)}(y),y._dragged=!1}else y._dragged=!1}},u.coverSlip=h},{\"../../constants/interactions\":672,\"../../lib\":696,\"../../plots/cartesian/constants\":750,\"../../registry\":827,\"./align\":590,\"./cursor\":591,\"./unhover\":593,\"has-hover\":393,\"has-passive-events\":394,\"mouse-event-offset\":419}],593:[function(t,e,r){\"use strict\";var n=t(\"../../lib/events\"),i=t(\"../../lib/throttle\"),a=t(\"../../lib/get_graph_div\"),o=t(\"../fx/constants\"),s=e.exports={};s.wrapped=function(t,e,r){(t=a(t))._fullLayout&&i.clear(t._fullLayout._uid+o.HOVERID),s.raw(t,e,r)},s.raw=function(t,e){var r=t._fullLayout,i=t._hoverdata;e||(e={}),e.target&&!1===n.triggerHandler(t,\"plotly_beforehover\",e)||(r._hoverlayer.selectAll(\"g\").remove(),r._hoverlayer.selectAll(\"line\").remove(),r._hoverlayer.selectAll(\"circle\").remove(),t._hoverdata=void 0,e.target&&i&&t.emit(\"plotly_unhover\",{event:e,points:i}))}},{\"../../lib/events\":684,\"../../lib/get_graph_div\":691,\"../../lib/throttle\":721,\"../fx/constants\":607}],594:[function(t,e,r){\"use strict\";r.dash={valType:\"string\",values:[\"solid\",\"dot\",\"dash\",\"longdash\",\"dashdot\",\"longdashdot\"],dflt:\"solid\",editType:\"style\"}},{}],595:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"fast-isnumeric\"),a=t(\"tinycolor2\"),o=t(\"../../registry\"),s=t(\"../color\"),l=t(\"../colorscale\"),c=t(\"../../lib\"),u=t(\"../../lib/svg_text_utils\"),f=t(\"../../constants/xmlns_namespaces\"),h=t(\"../../constants/alignment\").LINE_SPACING,p=t(\"../../constants/interactions\").DESELECTDIM,d=t(\"../../traces/scatter/subtypes\"),g=t(\"../../traces/scatter/make_bubble_size_func\"),v=e.exports={};v.font=function(t,e,r,n){c.isPlainObject(e)&&(n=e.color,r=e.size,e=e.family),e&&t.style(\"font-family\",e),r+1&&t.style(\"font-size\",r+\"px\"),n&&t.call(s.fill,n)},v.setPosition=function(t,e,r){t.attr(\"x\",e).attr(\"y\",r)},v.setSize=function(t,e,r){t.attr(\"width\",e).attr(\"height\",r)},v.setRect=function(t,e,r,n,i){t.call(v.setPosition,e,r).call(v.setSize,n,i)},v.translatePoint=function(t,e,r,n){var a=r.c2p(t.x),o=n.c2p(t.y);return!!(i(a)&&i(o)&&e.node())&&(\"text\"===e.node().nodeName?e.attr(\"x\",a).attr(\"y\",o):e.attr(\"transform\",\"translate(\"+a+\",\"+o+\")\"),!0)},v.translatePoints=function(t,e,r){t.each(function(t){var i=n.select(this);v.translatePoint(t,i,e,r)})},v.hideOutsideRangePoint=function(t,e,r,n,i,a){e.attr(\"display\",r.isPtWithinRange(t,i)&&n.isPtWithinRange(t,a)?null:\"none\")},v.hideOutsideRangePoints=function(t,e){if(e._hasClipOnAxisFalse){var r=e.xaxis,i=e.yaxis;t.each(function(e){var a=e[0].trace,o=a.xcalendar,s=a.ycalendar,l=\"bar\"===a.type?\".bartext\":\".point,.textpoint\";t.selectAll(l).each(function(t){v.hideOutsideRangePoint(t,n.select(this),r,i,o,s)})})}},v.crispRound=function(t,e,r){return e&&i(e)?t._context.staticPlot?e:e<1?1:Math.round(e):r||0},v.singleLineStyle=function(t,e,r,n,i){e.style(\"fill\",\"none\");var a=(((t||[])[0]||{}).trace||{}).line||{},o=r||a.width||0,l=i||a.dash||\"\";s.stroke(e,n||a.color),v.dashLine(e,l,o)},v.lineGroupStyle=function(t,e,r,i){t.style(\"fill\",\"none\").each(function(t){var a=(((t||[])[0]||{}).trace||{}).line||{},o=e||a.width||0,l=i||a.dash||\"\";n.select(this).call(s.stroke,r||a.color).call(v.dashLine,l,o)})},v.dashLine=function(t,e,r){r=+r||0,e=v.dashStyle(e,r),t.style({\"stroke-dasharray\":e,\"stroke-width\":r+\"px\"})},v.dashStyle=function(t,e){e=+e||1;var r=Math.max(e,3);return\"solid\"===t?t=\"\":\"dot\"===t?t=r+\"px,\"+r+\"px\":\"dash\"===t?t=3*r+\"px,\"+3*r+\"px\":\"longdash\"===t?t=5*r+\"px,\"+5*r+\"px\":\"dashdot\"===t?t=3*r+\"px,\"+r+\"px,\"+r+\"px,\"+r+\"px\":\"longdashdot\"===t&&(t=5*r+\"px,\"+2*r+\"px,\"+r+\"px,\"+2*r+\"px\"),t},v.singleFillStyle=function(t){var e=(((n.select(t.node()).data()[0]||[])[0]||{}).trace||{}).fillcolor;e&&t.call(s.fill,e)},v.fillGroupStyle=function(t){t.style(\"stroke-width\",0).each(function(t){n.select(this).call(s.fill,t[0].trace.fillcolor)})};var m=t(\"./symbol_defs\");v.symbolNames=[],v.symbolFuncs=[],v.symbolNeedLines={},v.symbolNoDot={},v.symbolNoFill={},v.symbolList=[],Object.keys(m).forEach(function(t){var e=m[t];v.symbolList=v.symbolList.concat([e.n,t,e.n+100,t+\"-open\"]),v.symbolNames[e.n]=t,v.symbolFuncs[e.n]=e.f,e.needLine&&(v.symbolNeedLines[e.n]=!0),e.noDot?v.symbolNoDot[e.n]=!0:v.symbolList=v.symbolList.concat([e.n+200,t+\"-dot\",e.n+300,t+\"-open-dot\"]),e.noFill&&(v.symbolNoFill[e.n]=!0)});var y=v.symbolNames.length,x=\"M0,0.5L0.5,0L0,-0.5L-0.5,0Z\";function b(t,e){var r=t%100;return v.symbolFuncs[r](e)+(t>=200?x:\"\")}v.symbolNumber=function(t){if(\"string\"==typeof t){var e=0;t.indexOf(\"-open\")>0&&(e=100,t=t.replace(\"-open\",\"\")),t.indexOf(\"-dot\")>0&&(e+=200,t=t.replace(\"-dot\",\"\")),(t=v.symbolNames.indexOf(t))>=0&&(t+=e)}return t%100>=y||t>=400?0:Math.floor(Math.max(t,0))};var _={x1:1,x2:0,y1:0,y2:0},w={x1:0,x2:0,y1:1,y2:0},k=n.format(\"~.1f\"),M={radial:{node:\"radialGradient\"},radialreversed:{node:\"radialGradient\",reversed:!0},horizontal:{node:\"linearGradient\",attrs:_},horizontalreversed:{node:\"linearGradient\",attrs:_,reversed:!0},vertical:{node:\"linearGradient\",attrs:w},verticalreversed:{node:\"linearGradient\",attrs:w,reversed:!0}};v.gradient=function(t,e,r,i,o,l){for(var u=o.length,f=M[i],h=new Array(u),p=0;p<u;p++)f.reversed?h[u-1-p]=[k(100*(1-o[p][0])),o[p][1]]:h[p]=[k(100*o[p][0]),o[p][1]];var d=\"g\"+e._fullLayout._uid+\"-\"+r,g=e._fullLayout._defs.select(\".gradients\").selectAll(\"#\"+d).data([i+h.join(\";\")],c.identity);g.exit().remove(),g.enter().append(f.node).each(function(){var t=n.select(this);f.attrs&&t.attr(f.attrs),t.attr(\"id\",d);var e=t.selectAll(\"stop\").data(h);e.exit().remove(),e.enter().append(\"stop\"),e.each(function(t){var e=a(t[1]);n.select(this).attr({offset:t[0]+\"%\",\"stop-color\":s.tinyRGB(e),\"stop-opacity\":e.getAlpha()})})}),t.style(l,\"url(#\"+d+\")\").style(l+\"-opacity\",null)},v.initGradients=function(t){c.ensureSingle(t._fullLayout._defs,\"g\",\"gradients\").selectAll(\"linearGradient,radialGradient\").remove()},v.pointStyle=function(t,e,r){if(t.size()){var i=v.makePointStyleFns(e);t.each(function(t){v.singlePointStyle(t,n.select(this),e,i,r)})}},v.singlePointStyle=function(t,e,r,n,i){var a=r.marker,o=a.line;if(e.style(\"opacity\",n.selectedOpacityFn?n.selectedOpacityFn(t):void 0===t.mo?a.opacity:t.mo),n.ms2mrc){var l;l=\"various\"===t.ms||\"various\"===a.size?3:n.ms2mrc(t.ms),t.mrc=l,n.selectedSizeFn&&(l=t.mrc=n.selectedSizeFn(t));var u=v.symbolNumber(t.mx||a.symbol)||0;t.om=u%200>=100,e.attr(\"d\",b(u,l))}var f,h,p,d=!1;if(t.so)p=o.outlierwidth,h=o.outliercolor,f=a.outliercolor;else{var g=(o||{}).width;p=(t.mlw+1||g+1||(t.trace?(t.trace.marker.line||{}).width:0)+1)-1||0,h=\"mlc\"in t?t.mlcc=n.lineScale(t.mlc):c.isArrayOrTypedArray(o.color)?s.defaultLine:o.color,c.isArrayOrTypedArray(a.color)&&(f=s.defaultLine,d=!0),f=\"mc\"in t?t.mcc=n.markerScale(t.mc):a.color||\"rgba(0,0,0,0)\",n.selectedColorFn&&(f=n.selectedColorFn(t))}if(t.om)e.call(s.stroke,f).style({\"stroke-width\":(p||1)+\"px\",fill:\"none\"});else{e.style(\"stroke-width\",p+\"px\");var m=a.gradient,y=t.mgt;if(y?d=!0:y=m&&m.type,Array.isArray(y)&&(y=y[0],M[y]||(y=0)),y&&\"none\"!==y){var x=t.mgc;x?d=!0:x=m.color;var _=r.uid;d&&(_+=\"-\"+t.i),v.gradient(e,i,_,y,[[0,x],[1,f]],\"fill\")}else s.fill(e,f);p&&s.stroke(e,h)}},v.makePointStyleFns=function(t){var e={},r=t.marker;return e.markerScale=v.tryColorscale(r,\"\"),e.lineScale=v.tryColorscale(r,\"line\"),o.traceIs(t,\"symbols\")&&(e.ms2mrc=d.isBubble(t)?g(t):function(){return(r.size||6)/2}),t.selectedpoints&&c.extendFlat(e,v.makeSelectedPointStyleFns(t)),e},v.makeSelectedPointStyleFns=function(t){var e={},r=t.selected||{},n=t.unselected||{},i=t.marker||{},a=r.marker||{},s=n.marker||{},l=i.opacity,u=a.opacity,f=s.opacity,h=void 0!==u,d=void 0!==f;(c.isArrayOrTypedArray(l)||h||d)&&(e.selectedOpacityFn=function(t){var e=void 0===t.mo?i.opacity:t.mo;return t.selected?h?u:e:d?f:p*e});var g=i.color,v=a.color,m=s.color;(v||m)&&(e.selectedColorFn=function(t){var e=t.mcc||g;return t.selected?v||e:m||e});var y=i.size,x=a.size,b=s.size,_=void 0!==x,w=void 0!==b;return o.traceIs(t,\"symbols\")&&(_||w)&&(e.selectedSizeFn=function(t){var e=t.mrc||y/2;return t.selected?_?x/2:e:w?b/2:e}),e},v.makeSelectedTextStyleFns=function(t){var e={},r=t.selected||{},n=t.unselected||{},i=t.textfont||{},a=r.textfont||{},o=n.textfont||{},l=i.color,c=a.color,u=o.color;return e.selectedTextColorFn=function(t){var e=t.tc||l;return t.selected?c||e:u||(c?e:s.addOpacity(e,p))},e},v.selectedPointStyle=function(t,e){if(t.size()&&e.selectedpoints){var r=v.makeSelectedPointStyleFns(e),i=e.marker||{},a=[];r.selectedOpacityFn&&a.push(function(t,e){t.style(\"opacity\",r.selectedOpacityFn(e))}),r.selectedColorFn&&a.push(function(t,e){s.fill(t,r.selectedColorFn(e))}),r.selectedSizeFn&&a.push(function(t,e){var n=e.mx||i.symbol||0,a=r.selectedSizeFn(e);t.attr(\"d\",b(v.symbolNumber(n),a)),e.mrc2=a}),a.length&&t.each(function(t){for(var e=n.select(this),r=0;r<a.length;r++)a[r](e,t)})}},v.tryColorscale=function(t,e){var r=e?c.nestedProperty(t,e).get():t;if(r){var n=r.colorscale,i=r.color;if(n&&c.isArrayOrTypedArray(i))return l.makeColorScaleFunc(l.extractScale(n,r.cmin,r.cmax))}return c.identity};var A={start:1,end:-1,middle:0,bottom:1,top:-1};function T(t,e,r,i){var a=n.select(t.node().parentNode),o=-1!==e.indexOf(\"top\")?\"top\":-1!==e.indexOf(\"bottom\")?\"bottom\":\"middle\",s=-1!==e.indexOf(\"left\")?\"end\":-1!==e.indexOf(\"right\")?\"start\":\"middle\",l=i?i/.8+1:0,c=(u.lineCount(t)-1)*h+1,f=A[s]*l,p=.75*r+A[o]*l+(A[o]-1)*c*r/2;t.attr(\"text-anchor\",s),a.attr(\"transform\",\"translate(\"+f+\",\"+p+\")\")}function S(t,e){var r=t.ts||e.textfont.size;return i(r)&&r>0?r:0}v.textPointStyle=function(t,e,r){if(t.size()){var i;if(e.selectedpoints){var a=v.makeSelectedTextStyleFns(e);i=a.selectedTextColorFn}t.each(function(t){var a=n.select(this),o=c.extractOption(t,e,\"tx\",\"text\");if(o||0===o){var s=t.tp||e.textposition,l=S(t,e),f=i?i(t):t.tc||e.textfont.color;a.call(v.font,t.tf||e.textfont.family,l,f).text(o).call(u.convertToTspans,r).call(T,s,l,t.mrc)}else a.remove()})}},v.selectedTextStyle=function(t,e){if(t.size()&&e.selectedpoints){var r=v.makeSelectedTextStyleFns(e);t.each(function(t){var i=n.select(this),a=r.selectedTextColorFn(t),o=t.tp||e.textposition,l=S(t,e);s.fill(i,a),T(i,o,l,t.mrc2||t.mrc)})}};var E=.5;function C(t,e,r,i){var a=t[0]-e[0],o=t[1]-e[1],s=r[0]-e[0],l=r[1]-e[1],c=Math.pow(a*a+o*o,E/2),u=Math.pow(s*s+l*l,E/2),f=(u*u*a-c*c*s)*i,h=(u*u*o-c*c*l)*i,p=3*u*(c+u),d=3*c*(c+u);return[[n.round(e[0]+(p&&f/p),2),n.round(e[1]+(p&&h/p),2)],[n.round(e[0]-(d&&f/d),2),n.round(e[1]-(d&&h/d),2)]]}v.smoothopen=function(t,e){if(t.length<3)return\"M\"+t.join(\"L\");var r,n=\"M\"+t[0],i=[];for(r=1;r<t.length-1;r++)i.push(C(t[r-1],t[r],t[r+1],e));for(n+=\"Q\"+i[0][0]+\" \"+t[1],r=2;r<t.length-1;r++)n+=\"C\"+i[r-2][1]+\" \"+i[r-1][0]+\" \"+t[r];return n+=\"Q\"+i[t.length-3][1]+\" \"+t[t.length-1]},v.smoothclosed=function(t,e){if(t.length<3)return\"M\"+t.join(\"L\")+\"Z\";var r,n=\"M\"+t[0],i=t.length-1,a=[C(t[i],t[0],t[1],e)];for(r=1;r<i;r++)a.push(C(t[r-1],t[r],t[r+1],e));for(a.push(C(t[i-1],t[i],t[0],e)),r=1;r<=i;r++)n+=\"C\"+a[r-1][1]+\" \"+a[r][0]+\" \"+t[r];return n+=\"C\"+a[i][1]+\" \"+a[0][0]+\" \"+t[0]+\"Z\"};var L={hv:function(t,e){return\"H\"+n.round(e[0],2)+\"V\"+n.round(e[1],2)},vh:function(t,e){return\"V\"+n.round(e[1],2)+\"H\"+n.round(e[0],2)},hvh:function(t,e){return\"H\"+n.round((t[0]+e[0])/2,2)+\"V\"+n.round(e[1],2)+\"H\"+n.round(e[0],2)},vhv:function(t,e){return\"V\"+n.round((t[1]+e[1])/2,2)+\"H\"+n.round(e[0],2)+\"V\"+n.round(e[1],2)}},z=function(t,e){return\"L\"+n.round(e[0],2)+\",\"+n.round(e[1],2)};v.steps=function(t){var e=L[t]||z;return function(t){for(var r=\"M\"+n.round(t[0][0],2)+\",\"+n.round(t[0][1],2),i=1;i<t.length;i++)r+=e(t[i-1],t[i]);return r}},v.makeTester=function(){var t=c.ensureSingleById(n.select(\"body\"),\"svg\",\"js-plotly-tester\",function(t){t.attr(f.svgAttrs).style({position:\"absolute\",left:\"-10000px\",top:\"-10000px\",width:\"9000px\",height:\"9000px\",\"z-index\":\"1\"})}),e=c.ensureSingle(t,\"path\",\"js-reference-point\",function(t){t.attr(\"d\",\"M0,0H1V1H0Z\").style({\"stroke-width\":0,fill:\"black\"})});v.tester=t,v.testref=e},v.savedBBoxes={};var O=0;function I(t){var e=t.getAttribute(\"data-unformatted\");if(null!==e)return e+t.getAttribute(\"data-math\")+t.getAttribute(\"text-anchor\")+t.getAttribute(\"style\")}v.bBox=function(t,e,r){var i,a,o;if(r||(r=I(t)),r){if(i=v.savedBBoxes[r])return c.extendFlat({},i)}else if(1===t.childNodes.length){var s=t.childNodes[0];if(r=I(s)){var l=+s.getAttribute(\"x\")||0,f=+s.getAttribute(\"y\")||0,h=s.getAttribute(\"transform\");if(!h){var p=v.bBox(s,!1,r);return l&&(p.left+=l,p.right+=l),f&&(p.top+=f,p.bottom+=f),p}if(r+=\"~\"+l+\"~\"+f+\"~\"+h,i=v.savedBBoxes[r])return c.extendFlat({},i)}}e?a=t:(o=v.tester.node(),a=t.cloneNode(!0),o.appendChild(a)),n.select(a).attr(\"transform\",null).call(u.positionText,0,0);var d=a.getBoundingClientRect(),g=v.testref.node().getBoundingClientRect();e||o.removeChild(a);var m={height:d.height,width:d.width,left:d.left-g.left,top:d.top-g.top,right:d.right-g.left,bottom:d.bottom-g.top};return O>=1e4&&(v.savedBBoxes={},O=0),r&&(v.savedBBoxes[r]=m),O++,c.extendFlat({},m)},v.setClipUrl=function(t,e){if(e){if(void 0===v.baseUrl){var r=n.select(\"base\");r.size()&&r.attr(\"href\")?v.baseUrl=window.location.href.split(\"#\")[0]:v.baseUrl=\"\"}t.attr(\"clip-path\",\"url(\"+v.baseUrl+\"#\"+e+\")\")}else t.attr(\"clip-path\",null)},v.getTranslate=function(t){var e=(t[t.attr?\"attr\":\"getAttribute\"](\"transform\")||\"\").replace(/.*\\btranslate\\((-?\\d*\\.?\\d*)[^-\\d]*(-?\\d*\\.?\\d*)[^\\d].*/,function(t,e,r){return[e,r].join(\" \")}).split(\" \");return{x:+e[0]||0,y:+e[1]||0}},v.setTranslate=function(t,e,r){var n=t.attr?\"attr\":\"getAttribute\",i=t.attr?\"attr\":\"setAttribute\",a=t[n](\"transform\")||\"\";return e=e||0,r=r||0,a=a.replace(/(\\btranslate\\(.*?\\);?)/,\"\").trim(),a=(a+=\" translate(\"+e+\", \"+r+\")\").trim(),t[i](\"transform\",a),a},v.getScale=function(t){var e=(t[t.attr?\"attr\":\"getAttribute\"](\"transform\")||\"\").replace(/.*\\bscale\\((\\d*\\.?\\d*)[^\\d]*(\\d*\\.?\\d*)[^\\d].*/,function(t,e,r){return[e,r].join(\" \")}).split(\" \");return{x:+e[0]||1,y:+e[1]||1}},v.setScale=function(t,e,r){var n=t.attr?\"attr\":\"getAttribute\",i=t.attr?\"attr\":\"setAttribute\",a=t[n](\"transform\")||\"\";return e=e||1,r=r||1,a=a.replace(/(\\bscale\\(.*?\\);?)/,\"\").trim(),a=(a+=\" scale(\"+e+\", \"+r+\")\").trim(),t[i](\"transform\",a),a};var P=/\\s*sc.*/;v.setPointGroupScale=function(t,e,r){if(e=e||1,r=r||1,t){var n=1===e&&1===r?\"\":\" scale(\"+e+\",\"+r+\")\";t.each(function(){var t=(this.getAttribute(\"transform\")||\"\").replace(P,\"\");t=(t+=n).trim(),this.setAttribute(\"transform\",t)})}};var D=/translate\\([^)]*\\)\\s*$/;v.setTextPointsScale=function(t,e,r){t&&t.each(function(){var t,i=n.select(this),a=i.select(\"text\");if(a.node()){var o=parseFloat(a.attr(\"x\")||0),s=parseFloat(a.attr(\"y\")||0),l=(i.attr(\"transform\")||\"\").match(D);t=1===e&&1===r?[]:[\"translate(\"+o+\",\"+s+\")\",\"scale(\"+e+\",\"+r+\")\",\"translate(\"+-o+\",\"+-s+\")\"],l&&t.push(l),i.attr(\"transform\",t.join(\" \"))}})}},{\"../../constants/alignment\":668,\"../../constants/interactions\":672,\"../../constants/xmlns_namespaces\":674,\"../../lib\":696,\"../../lib/svg_text_utils\":720,\"../../registry\":827,\"../../traces/scatter/make_bubble_size_func\":1060,\"../../traces/scatter/subtypes\":1067,\"../color\":570,\"../colorscale\":585,\"./symbol_defs\":596,d3:148,\"fast-isnumeric\":214,tinycolor2:514}],596:[function(t,e,r){\"use strict\";var n=t(\"d3\");e.exports={circle:{n:0,f:function(t){var e=n.round(t,2);return\"M\"+e+\",0A\"+e+\",\"+e+\" 0 1,1 0,-\"+e+\"A\"+e+\",\"+e+\" 0 0,1 \"+e+\",0Z\"}},square:{n:1,f:function(t){var e=n.round(t,2);return\"M\"+e+\",\"+e+\"H-\"+e+\"V-\"+e+\"H\"+e+\"Z\"}},diamond:{n:2,f:function(t){var e=n.round(1.3*t,2);return\"M\"+e+\",0L0,\"+e+\"L-\"+e+\",0L0,-\"+e+\"Z\"}},cross:{n:3,f:function(t){var e=n.round(.4*t,2),r=n.round(1.2*t,2);return\"M\"+r+\",\"+e+\"H\"+e+\"V\"+r+\"H-\"+e+\"V\"+e+\"H-\"+r+\"V-\"+e+\"H-\"+e+\"V-\"+r+\"H\"+e+\"V-\"+e+\"H\"+r+\"Z\"}},x:{n:4,f:function(t){var e=n.round(.8*t/Math.sqrt(2),2),r=\"l\"+e+\",\"+e,i=\"l\"+e+\",-\"+e,a=\"l-\"+e+\",-\"+e,o=\"l-\"+e+\",\"+e;return\"M0,\"+e+r+i+a+i+a+o+a+o+r+o+r+\"Z\"}},\"triangle-up\":{n:5,f:function(t){var e=n.round(2*t/Math.sqrt(3),2);return\"M-\"+e+\",\"+n.round(t/2,2)+\"H\"+e+\"L0,-\"+n.round(t,2)+\"Z\"}},\"triangle-down\":{n:6,f:function(t){var e=n.round(2*t/Math.sqrt(3),2);return\"M-\"+e+\",-\"+n.round(t/2,2)+\"H\"+e+\"L0,\"+n.round(t,2)+\"Z\"}},\"triangle-left\":{n:7,f:function(t){var e=n.round(2*t/Math.sqrt(3),2);return\"M\"+n.round(t/2,2)+\",-\"+e+\"V\"+e+\"L-\"+n.round(t,2)+\",0Z\"}},\"triangle-right\":{n:8,f:function(t){var e=n.round(2*t/Math.sqrt(3),2);return\"M-\"+n.round(t/2,2)+\",-\"+e+\"V\"+e+\"L\"+n.round(t,2)+\",0Z\"}},\"triangle-ne\":{n:9,f:function(t){var e=n.round(.6*t,2),r=n.round(1.2*t,2);return\"M-\"+r+\",-\"+e+\"H\"+e+\"V\"+r+\"Z\"}},\"triangle-se\":{n:10,f:function(t){var e=n.round(.6*t,2),r=n.round(1.2*t,2);return\"M\"+e+\",-\"+r+\"V\"+e+\"H-\"+r+\"Z\"}},\"triangle-sw\":{n:11,f:function(t){var e=n.round(.6*t,2),r=n.round(1.2*t,2);return\"M\"+r+\",\"+e+\"H-\"+e+\"V-\"+r+\"Z\"}},\"triangle-nw\":{n:12,f:function(t){var e=n.round(.6*t,2),r=n.round(1.2*t,2);return\"M-\"+e+\",\"+r+\"V-\"+e+\"H\"+r+\"Z\"}},pentagon:{n:13,f:function(t){var e=n.round(.951*t,2),r=n.round(.588*t,2),i=n.round(-t,2),a=n.round(-.309*t,2);return\"M\"+e+\",\"+a+\"L\"+r+\",\"+n.round(.809*t,2)+\"H-\"+r+\"L-\"+e+\",\"+a+\"L0,\"+i+\"Z\"}},hexagon:{n:14,f:function(t){var e=n.round(t,2),r=n.round(t/2,2),i=n.round(t*Math.sqrt(3)/2,2);return\"M\"+i+\",-\"+r+\"V\"+r+\"L0,\"+e+\"L-\"+i+\",\"+r+\"V-\"+r+\"L0,-\"+e+\"Z\"}},hexagon2:{n:15,f:function(t){var e=n.round(t,2),r=n.round(t/2,2),i=n.round(t*Math.sqrt(3)/2,2);return\"M-\"+r+\",\"+i+\"H\"+r+\"L\"+e+\",0L\"+r+\",-\"+i+\"H-\"+r+\"L-\"+e+\",0Z\"}},octagon:{n:16,f:function(t){var e=n.round(.924*t,2),r=n.round(.383*t,2);return\"M-\"+r+\",-\"+e+\"H\"+r+\"L\"+e+\",-\"+r+\"V\"+r+\"L\"+r+\",\"+e+\"H-\"+r+\"L-\"+e+\",\"+r+\"V-\"+r+\"Z\"}},star:{n:17,f:function(t){var e=1.4*t,r=n.round(.225*e,2),i=n.round(.951*e,2),a=n.round(.363*e,2),o=n.round(.588*e,2),s=n.round(-e,2),l=n.round(-.309*e,2),c=n.round(.118*e,2),u=n.round(.809*e,2);return\"M\"+r+\",\"+l+\"H\"+i+\"L\"+a+\",\"+c+\"L\"+o+\",\"+u+\"L0,\"+n.round(.382*e,2)+\"L-\"+o+\",\"+u+\"L-\"+a+\",\"+c+\"L-\"+i+\",\"+l+\"H-\"+r+\"L0,\"+s+\"Z\"}},hexagram:{n:18,f:function(t){var e=n.round(.66*t,2),r=n.round(.38*t,2),i=n.round(.76*t,2);return\"M-\"+i+\",0l-\"+r+\",-\"+e+\"h\"+i+\"l\"+r+\",-\"+e+\"l\"+r+\",\"+e+\"h\"+i+\"l-\"+r+\",\"+e+\"l\"+r+\",\"+e+\"h-\"+i+\"l-\"+r+\",\"+e+\"l-\"+r+\",-\"+e+\"h-\"+i+\"Z\"}},\"star-triangle-up\":{n:19,f:function(t){var e=n.round(t*Math.sqrt(3)*.8,2),r=n.round(.8*t,2),i=n.round(1.6*t,2),a=n.round(4*t,2),o=\"A \"+a+\",\"+a+\" 0 0 1 \";return\"M-\"+e+\",\"+r+o+e+\",\"+r+o+\"0,-\"+i+o+\"-\"+e+\",\"+r+\"Z\"}},\"star-triangle-down\":{n:20,f:function(t){var e=n.round(t*Math.sqrt(3)*.8,2),r=n.round(.8*t,2),i=n.round(1.6*t,2),a=n.round(4*t,2),o=\"A \"+a+\",\"+a+\" 0 0 1 \";return\"M\"+e+\",-\"+r+o+\"-\"+e+\",-\"+r+o+\"0,\"+i+o+e+\",-\"+r+\"Z\"}},\"star-square\":{n:21,f:function(t){var e=n.round(1.1*t,2),r=n.round(2*t,2),i=\"A \"+r+\",\"+r+\" 0 0 1 \";return\"M-\"+e+\",-\"+e+i+\"-\"+e+\",\"+e+i+e+\",\"+e+i+e+\",-\"+e+i+\"-\"+e+\",-\"+e+\"Z\"}},\"star-diamond\":{n:22,f:function(t){var e=n.round(1.4*t,2),r=n.round(1.9*t,2),i=\"A \"+r+\",\"+r+\" 0 0 1 \";return\"M-\"+e+\",0\"+i+\"0,\"+e+i+e+\",0\"+i+\"0,-\"+e+i+\"-\"+e+\",0Z\"}},\"diamond-tall\":{n:23,f:function(t){var e=n.round(.7*t,2),r=n.round(1.4*t,2);return\"M0,\"+r+\"L\"+e+\",0L0,-\"+r+\"L-\"+e+\",0Z\"}},\"diamond-wide\":{n:24,f:function(t){var e=n.round(1.4*t,2),r=n.round(.7*t,2);return\"M0,\"+r+\"L\"+e+\",0L0,-\"+r+\"L-\"+e+\",0Z\"}},hourglass:{n:25,f:function(t){var e=n.round(t,2);return\"M\"+e+\",\"+e+\"H-\"+e+\"L\"+e+\",-\"+e+\"H-\"+e+\"Z\"},noDot:!0},bowtie:{n:26,f:function(t){var e=n.round(t,2);return\"M\"+e+\",\"+e+\"V-\"+e+\"L-\"+e+\",\"+e+\"V-\"+e+\"Z\"},noDot:!0},\"circle-cross\":{n:27,f:function(t){var e=n.round(t,2);return\"M0,\"+e+\"V-\"+e+\"M\"+e+\",0H-\"+e+\"M\"+e+\",0A\"+e+\",\"+e+\" 0 1,1 0,-\"+e+\"A\"+e+\",\"+e+\" 0 0,1 \"+e+\",0Z\"},needLine:!0,noDot:!0},\"circle-x\":{n:28,f:function(t){var e=n.round(t,2),r=n.round(t/Math.sqrt(2),2);return\"M\"+r+\",\"+r+\"L-\"+r+\",-\"+r+\"M\"+r+\",-\"+r+\"L-\"+r+\",\"+r+\"M\"+e+\",0A\"+e+\",\"+e+\" 0 1,1 0,-\"+e+\"A\"+e+\",\"+e+\" 0 0,1 \"+e+\",0Z\"},needLine:!0,noDot:!0},\"square-cross\":{n:29,f:function(t){var e=n.round(t,2);return\"M0,\"+e+\"V-\"+e+\"M\"+e+\",0H-\"+e+\"M\"+e+\",\"+e+\"H-\"+e+\"V-\"+e+\"H\"+e+\"Z\"},needLine:!0,noDot:!0},\"square-x\":{n:30,f:function(t){var e=n.round(t,2);return\"M\"+e+\",\"+e+\"L-\"+e+\",-\"+e+\"M\"+e+\",-\"+e+\"L-\"+e+\",\"+e+\"M\"+e+\",\"+e+\"H-\"+e+\"V-\"+e+\"H\"+e+\"Z\"},needLine:!0,noDot:!0},\"diamond-cross\":{n:31,f:function(t){var e=n.round(1.3*t,2);return\"M\"+e+\",0L0,\"+e+\"L-\"+e+\",0L0,-\"+e+\"ZM0,-\"+e+\"V\"+e+\"M-\"+e+\",0H\"+e},needLine:!0,noDot:!0},\"diamond-x\":{n:32,f:function(t){var e=n.round(1.3*t,2),r=n.round(.65*t,2);return\"M\"+e+\",0L0,\"+e+\"L-\"+e+\",0L0,-\"+e+\"ZM-\"+r+\",-\"+r+\"L\"+r+\",\"+r+\"M-\"+r+\",\"+r+\"L\"+r+\",-\"+r},needLine:!0,noDot:!0},\"cross-thin\":{n:33,f:function(t){var e=n.round(1.4*t,2);return\"M0,\"+e+\"V-\"+e+\"M\"+e+\",0H-\"+e},needLine:!0,noDot:!0,noFill:!0},\"x-thin\":{n:34,f:function(t){var e=n.round(t,2);return\"M\"+e+\",\"+e+\"L-\"+e+\",-\"+e+\"M\"+e+\",-\"+e+\"L-\"+e+\",\"+e},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(t){var e=n.round(1.2*t,2),r=n.round(.85*t,2);return\"M0,\"+e+\"V-\"+e+\"M\"+e+\",0H-\"+e+\"M\"+r+\",\"+r+\"L-\"+r+\",-\"+r+\"M\"+r+\",-\"+r+\"L-\"+r+\",\"+r},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(t){var e=n.round(t/2,2),r=n.round(t,2);return\"M\"+e+\",\"+r+\"V-\"+r+\"m-\"+r+\",0V\"+r+\"M\"+r+\",\"+e+\"H-\"+r+\"m0,-\"+r+\"H\"+r},needLine:!0,noFill:!0},\"y-up\":{n:37,f:function(t){var e=n.round(1.2*t,2),r=n.round(1.6*t,2),i=n.round(.8*t,2);return\"M-\"+e+\",\"+i+\"L0,0M\"+e+\",\"+i+\"L0,0M0,-\"+r+\"L0,0\"},needLine:!0,noDot:!0,noFill:!0},\"y-down\":{n:38,f:function(t){var e=n.round(1.2*t,2),r=n.round(1.6*t,2),i=n.round(.8*t,2);return\"M-\"+e+\",-\"+i+\"L0,0M\"+e+\",-\"+i+\"L0,0M0,\"+r+\"L0,0\"},needLine:!0,noDot:!0,noFill:!0},\"y-left\":{n:39,f:function(t){var e=n.round(1.2*t,2),r=n.round(1.6*t,2),i=n.round(.8*t,2);return\"M\"+i+\",\"+e+\"L0,0M\"+i+\",-\"+e+\"L0,0M-\"+r+\",0L0,0\"},needLine:!0,noDot:!0,noFill:!0},\"y-right\":{n:40,f:function(t){var e=n.round(1.2*t,2),r=n.round(1.6*t,2),i=n.round(.8*t,2);return\"M-\"+i+\",\"+e+\"L0,0M-\"+i+\",-\"+e+\"L0,0M\"+r+\",0L0,0\"},needLine:!0,noDot:!0,noFill:!0},\"line-ew\":{n:41,f:function(t){var e=n.round(1.4*t,2);return\"M\"+e+\",0H-\"+e},needLine:!0,noDot:!0,noFill:!0},\"line-ns\":{n:42,f:function(t){var e=n.round(1.4*t,2);return\"M0,\"+e+\"V-\"+e},needLine:!0,noDot:!0,noFill:!0},\"line-ne\":{n:43,f:function(t){var e=n.round(t,2);return\"M\"+e+\",-\"+e+\"L-\"+e+\",\"+e},needLine:!0,noDot:!0,noFill:!0},\"line-nw\":{n:44,f:function(t){var e=n.round(t,2);return\"M\"+e+\",\"+e+\"L-\"+e+\",-\"+e},needLine:!0,noDot:!0,noFill:!0}}},{d3:148}],597:[function(t,e,r){\"use strict\";e.exports={visible:{valType:\"boolean\",editType:\"calc\"},type:{valType:\"enumerated\",values:[\"percent\",\"constant\",\"sqrt\",\"data\"],editType:\"calc\"},symmetric:{valType:\"boolean\",editType:\"calc\"},array:{valType:\"data_array\",editType:\"calc\"},arrayminus:{valType:\"data_array\",editType:\"calc\"},value:{valType:\"number\",min:0,dflt:10,editType:\"calc\"},valueminus:{valType:\"number\",min:0,dflt:10,editType:\"calc\"},traceref:{valType:\"integer\",min:0,dflt:0,editType:\"style\"},tracerefminus:{valType:\"integer\",min:0,dflt:0,editType:\"style\"},copy_ystyle:{valType:\"boolean\",editType:\"plot\"},copy_zstyle:{valType:\"boolean\",editType:\"style\"},color:{valType:\"color\",editType:\"style\"},thickness:{valType:\"number\",min:0,dflt:2,editType:\"style\"},width:{valType:\"number\",min:0,editType:\"plot\"},editType:\"calc\",_deprecated:{opacity:{valType:\"number\",editType:\"style\"}}}},{}],598:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../../registry\"),a=t(\"../../plots/cartesian/axes\"),o=t(\"./compute_error\");function s(t,e,r,i){var s=e[\"error_\"+i]||{},l=[];if(s.visible&&-1!==[\"linear\",\"log\"].indexOf(r.type)){for(var c=o(s),u=0;u<t.length;u++){var f=t[u],h=f.i;if(void 0===h)h=u;else if(null===h)continue;var p=f[i];if(n(r.c2l(p))){var d=c(p,h);if(n(d[0])&&n(d[1])){var g=f[i+\"s\"]=p-d[0],v=f[i+\"h\"]=p+d[1];l.push(g,v)}}}var m=a.findExtremes(r,l,{padded:!0}),y=r._id;e._extremes[y].min=e._extremes[y].min.concat(m.min),e._extremes[y].max=e._extremes[y].max.concat(m.max)}}e.exports=function(t){for(var e=t.calcdata,r=0;r<e.length;r++){var n=e[r],o=n[0].trace;if(!0===o.visible&&i.traceIs(o,\"errorBarsOK\")){var l=a.getFromId(t,o.xaxis),c=a.getFromId(t,o.yaxis);s(n,o,l,\"x\"),s(n,o,c,\"y\")}}}},{\"../../plots/cartesian/axes\":744,\"../../registry\":827,\"./compute_error\":599,\"fast-isnumeric\":214}],599:[function(t,e,r){\"use strict\";function n(t,e){return\"percent\"===t?function(t){return Math.abs(t*e/100)}:\"constant\"===t?function(){return Math.abs(e)}:\"sqrt\"===t?function(t){return Math.sqrt(Math.abs(t))}:void 0}e.exports=function(t){var e=t.type,r=t.symmetric;if(\"data\"===e){var i=t.array||[];if(r)return function(t,e){var r=+i[e];return[r,r]};var a=t.arrayminus||[];return function(t,e){var r=+i[e],n=+a[e];return isNaN(r)&&isNaN(n)?[NaN,NaN]:[n||0,r||0]}}var o=n(e,t.value),s=n(e,t.valueminus);return r||void 0===t.valueminus?function(t){var e=o(t);return[e,e]}:function(t){return[s(t),o(t)]}}},{}],600:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../../registry\"),a=t(\"../../lib\"),o=t(\"../../plot_api/plot_template\"),s=t(\"./attributes\");e.exports=function(t,e,r,l){var c=\"error_\"+l.axis,u=o.newContainer(e,c),f=t[c]||{};function h(t,e){return a.coerce(f,u,s,t,e)}if(!1!==h(\"visible\",void 0!==f.array||void 0!==f.value||\"sqrt\"===f.type)){var p=h(\"type\",\"array\"in f?\"data\":\"percent\"),d=!0;\"sqrt\"!==p&&(d=h(\"symmetric\",!((\"data\"===p?\"arrayminus\":\"valueminus\")in f))),\"data\"===p?(h(\"array\"),h(\"traceref\"),d||(h(\"arrayminus\"),h(\"tracerefminus\"))):\"percent\"!==p&&\"constant\"!==p||(h(\"value\"),d||h(\"valueminus\"));var g=\"copy_\"+l.inherit+\"style\";if(l.inherit)(e[\"error_\"+l.inherit]||{}).visible&&h(g,!(f.color||n(f.thickness)||n(f.width)));l.inherit&&u[g]||(h(\"color\",r),h(\"thickness\"),h(\"width\",i.traceIs(e,\"gl3d\")?0:4))}}},{\"../../lib\":696,\"../../plot_api/plot_template\":734,\"../../registry\":827,\"./attributes\":597,\"fast-isnumeric\":214}],601:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../plot_api/edit_types\").overrideAll,a=t(\"./attributes\"),o={error_x:n.extendFlat({},a),error_y:n.extendFlat({},a)};delete o.error_x.copy_zstyle,delete o.error_y.copy_zstyle,delete o.error_y.copy_ystyle;var s={error_x:n.extendFlat({},a),error_y:n.extendFlat({},a),error_z:n.extendFlat({},a)};delete s.error_x.copy_ystyle,delete s.error_y.copy_ystyle,delete s.error_z.copy_ystyle,delete s.error_z.copy_zstyle,e.exports={moduleType:\"component\",name:\"errorbars\",schema:{traces:{scatter:o,bar:o,histogram:o,scatter3d:i(s,\"calc\",\"nested\"),scattergl:i(o,\"calc\",\"nested\")}},supplyDefaults:t(\"./defaults\"),calc:t(\"./calc\"),makeComputeError:t(\"./compute_error\"),plot:t(\"./plot\"),style:t(\"./style\"),hoverInfo:function(t,e,r){(e.error_y||{}).visible&&(r.yerr=t.yh-t.y,e.error_y.symmetric||(r.yerrneg=t.y-t.ys));(e.error_x||{}).visible&&(r.xerr=t.xh-t.x,e.error_x.symmetric||(r.xerrneg=t.x-t.xs))}}},{\"../../lib\":696,\"../../plot_api/edit_types\":727,\"./attributes\":597,\"./calc\":598,\"./compute_error\":599,\"./defaults\":600,\"./plot\":602,\"./style\":603}],602:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"fast-isnumeric\"),a=t(\"../drawing\"),o=t(\"../../traces/scatter/subtypes\");e.exports=function(t,e,r){var s=e.xaxis,l=e.yaxis,c=r&&r.duration>0;t.each(function(t){var u,f=t[0].trace,h=f.error_x||{},p=f.error_y||{};f.ids&&(u=function(t){return t.id});var d=o.hasMarkers(f)&&f.marker.maxdisplayed>0;p.visible||h.visible||(t=[]);var g=n.select(this).selectAll(\"g.errorbar\").data(t,u);if(g.exit().remove(),t.length){h.visible||g.selectAll(\"path.xerror\").remove(),p.visible||g.selectAll(\"path.yerror\").remove(),g.style(\"opacity\",1);var v=g.enter().append(\"g\").classed(\"errorbar\",!0);c&&v.style(\"opacity\",0).transition().duration(r.duration).style(\"opacity\",1),a.setClipUrl(g,e.layerClipId),g.each(function(t){var e=n.select(this),a=function(t,e,r){var n={x:e.c2p(t.x),y:r.c2p(t.y)};void 0!==t.yh&&(n.yh=r.c2p(t.yh),n.ys=r.c2p(t.ys),i(n.ys)||(n.noYS=!0,n.ys=r.c2p(t.ys,!0)));void 0!==t.xh&&(n.xh=e.c2p(t.xh),n.xs=e.c2p(t.xs),i(n.xs)||(n.noXS=!0,n.xs=e.c2p(t.xs,!0)));return n}(t,s,l);if(!d||t.vis){var o,u=e.select(\"path.yerror\");if(p.visible&&i(a.x)&&i(a.yh)&&i(a.ys)){var f=p.width;o=\"M\"+(a.x-f)+\",\"+a.yh+\"h\"+2*f+\"m-\"+f+\",0V\"+a.ys,a.noYS||(o+=\"m-\"+f+\",0h\"+2*f),!u.size()?u=e.append(\"path\").style(\"vector-effect\",\"non-scaling-stroke\").classed(\"yerror\",!0):c&&(u=u.transition().duration(r.duration).ease(r.easing)),u.attr(\"d\",o)}else u.remove();var g=e.select(\"path.xerror\");if(h.visible&&i(a.y)&&i(a.xh)&&i(a.xs)){var v=(h.copy_ystyle?p:h).width;o=\"M\"+a.xh+\",\"+(a.y-v)+\"v\"+2*v+\"m0,-\"+v+\"H\"+a.xs,a.noXS||(o+=\"m0,-\"+v+\"v\"+2*v),!g.size()?g=e.append(\"path\").style(\"vector-effect\",\"non-scaling-stroke\").classed(\"xerror\",!0):c&&(g=g.transition().duration(r.duration).ease(r.easing)),g.attr(\"d\",o)}else g.remove()}})}})}},{\"../../traces/scatter/subtypes\":1067,\"../drawing\":595,d3:148,\"fast-isnumeric\":214}],603:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../color\");e.exports=function(t){t.each(function(t){var e=t[0].trace,r=e.error_y||{},a=e.error_x||{},o=n.select(this);o.selectAll(\"path.yerror\").style(\"stroke-width\",r.thickness+\"px\").call(i.stroke,r.color),a.copy_ystyle&&(a=r),o.selectAll(\"path.xerror\").style(\"stroke-width\",a.thickness+\"px\").call(i.stroke,a.color)})}},{\"../color\":570,d3:148}],604:[function(t,e,r){\"use strict\";var n=t(\"../../plots/font_attributes\");e.exports={hoverlabel:{bgcolor:{valType:\"color\",arrayOk:!0,editType:\"none\"},bordercolor:{valType:\"color\",arrayOk:!0,editType:\"none\"},font:n({arrayOk:!0,editType:\"none\"}),namelength:{valType:\"integer\",min:-1,arrayOk:!0,editType:\"none\"},editType:\"calc\"}}},{\"../../plots/font_attributes\":771}],605:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../registry\");function a(t,e,r,i){i=i||n.identity,Array.isArray(t)&&(e[0][r]=i(t))}e.exports=function(t){var e=t.calcdata,r=t._fullLayout;function o(t){return function(e){return n.coerceHoverinfo({hoverinfo:e},{_module:t._module},r)}}for(var s=0;s<e.length;s++){var l=e[s],c=l[0].trace;if(!i.traceIs(c,\"pie\")){var u=i.traceIs(c,\"2dMap\")?a:n.fillArray;u(c.hoverinfo,l,\"hi\",o(c)),c.hoverlabel&&(u(c.hoverlabel.bgcolor,l,\"hbg\"),u(c.hoverlabel.bordercolor,l,\"hbc\"),u(c.hoverlabel.font.size,l,\"hts\"),u(c.hoverlabel.font.color,l,\"htc\"),u(c.hoverlabel.font.family,l,\"htf\"),u(c.hoverlabel.namelength,l,\"hnl\"))}}}},{\"../../lib\":696,\"../../registry\":827}],606:[function(t,e,r){\"use strict\";var n=t(\"../../registry\"),i=t(\"./hover\").hover;e.exports=function(t,e,r){var a=n.getComponentMethod(\"annotations\",\"onClick\")(t,t._hoverdata);function o(){t.emit(\"plotly_click\",{points:t._hoverdata,event:e})}void 0!==r&&i(t,e,r,!0),t._hoverdata&&e&&e.target&&(a&&a.then?a.then(o):o(),e.stopImmediatePropagation&&e.stopImmediatePropagation())}},{\"../../registry\":827,\"./hover\":610}],607:[function(t,e,r){\"use strict\";e.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:\"Arial, sans-serif\",HOVERMINTIME:50,HOVERID:\"-hover\"}},{}],608:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"./attributes\"),a=t(\"./hoverlabel_defaults\");e.exports=function(t,e,r,o){a(t,e,function(r,a){return n.coerce(t,e,i,r,a)},o.hoverlabel)}},{\"../../lib\":696,\"./attributes\":604,\"./hoverlabel_defaults\":611}],609:[function(t,e,r){\"use strict\";var n=t(\"../../lib\");r.getSubplot=function(t){return t.subplot||t.xaxis+t.yaxis||t.geo},r.isTraceInSubplots=function(t,e){if(\"splom\"===t.type){for(var n=t.xaxes||[],i=t.yaxes||[],a=0;a<n.length;a++)for(var o=0;o<i.length;o++)if(-1!==e.indexOf(n[a]+i[o]))return!0;return!1}return-1!==e.indexOf(r.getSubplot(t))},r.flat=function(t,e){for(var r=new Array(t.length),n=0;n<t.length;n++)r[n]=e;return r},r.p2c=function(t,e){for(var r=new Array(t.length),n=0;n<t.length;n++)r[n]=t[n].p2c(e);return r},r.getDistanceFunction=function(t,e,n,i){return\"closest\"===t?i||r.quadrature(e,n):\"x\"===t?e:n},r.getClosest=function(t,e,r){if(!1!==r.index)r.index>=0&&r.index<t.length?r.distance=0:r.index=!1;else for(var n=0;n<t.length;n++){var i=e(t[n]);i<=r.distance&&(r.index=n,r.distance=i)}return r},r.inbox=function(t,e,r){return t*e<0||0===t?r:1/0},r.quadrature=function(t,e){return function(r){var n=t(r),i=e(r);return Math.sqrt(n*n+i*i)}},r.makeEventData=function(t,e,n){var i=\"index\"in t?t.index:t.pointNumber,a={data:e._input,fullData:e,curveNumber:e.index,pointNumber:i};if(e._indexToPoints){var o=e._indexToPoints[i];1===o.length?a.pointIndex=o[0]:a.pointIndices=o}else a.pointIndex=i;return e._module.eventData?a=e._module.eventData(a,t,e,n,i):(\"xVal\"in t?a.x=t.xVal:\"x\"in t&&(a.x=t.x),\"yVal\"in t?a.y=t.yVal:\"y\"in t&&(a.y=t.y),t.xa&&(a.xaxis=t.xa),t.ya&&(a.yaxis=t.ya),void 0!==t.zLabelVal&&(a.z=t.zLabelVal)),r.appendArrayPointValue(a,e,i),a},r.appendArrayPointValue=function(t,e,r){var i=e._arrayAttrs;if(i)for(var s=0;s<i.length;s++){var l=i[s],c=a(l);if(void 0===t[c]){var u=o(n.nestedProperty(e,l).get(),r);void 0!==u&&(t[c]=u)}}},r.appendArrayMultiPointValues=function(t,e,r){var i=e._arrayAttrs;if(i)for(var s=0;s<i.length;s++){var l=i[s],c=a(l);if(void 0===t[c]){for(var u=n.nestedProperty(e,l).get(),f=new Array(r.length),h=0;h<r.length;h++)f[h]=o(u,r[h]);t[c]=f}}};var i={ids:\"id\",locations:\"location\",labels:\"label\",values:\"value\",\"marker.colors\":\"color\"};function a(t){return i[t]||t}function o(t,e){return Array.isArray(e)?Array.isArray(t)&&Array.isArray(t[e[0]])?t[e[0]][e[1]]:void 0:t[e]}},{\"../../lib\":696}],610:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"fast-isnumeric\"),a=t(\"tinycolor2\"),o=t(\"../../lib\"),s=t(\"../../lib/events\"),l=t(\"../../lib/svg_text_utils\"),c=t(\"../../lib/override_cursor\"),u=t(\"../drawing\"),f=t(\"../color\"),h=t(\"../dragelement\"),p=t(\"../../plots/cartesian/axes\"),d=t(\"../../registry\"),g=t(\"./helpers\"),v=t(\"./constants\"),m=v.YANGLE,y=Math.PI*m/180,x=1/Math.sin(y),b=Math.cos(y),_=Math.sin(y),w=v.HOVERARROWSIZE,k=v.HOVERTEXTPAD;function M(t,e,r){var i=e.hovermode,a=e.rotateLabels,s=e.bgColor,c=e.container,h=e.outerContainer,p=e.commonLabelOpts||{},d=e.fontFamily||v.HOVERFONT,g=e.fontSize||v.HOVERFONTSIZE,y=t[0],x=y.xa,b=y.ya,_=\"y\"===i?\"yLabel\":\"xLabel\",M=y[_],A=(String(M)||\"\").split(\" \")[0],T=h.node().getBoundingClientRect(),S=T.top,E=T.width,C=T.height,L=void 0!==M&&y.distance<=e.hoverdistance&&(\"x\"===i||\"y\"===i);if(L){var z,O,I=!0;for(z=0;z<t.length;z++){I&&void 0===t[z].zLabel&&(I=!1),O=t[z].hoverinfo||t[z].trace.hoverinfo;var P=Array.isArray(O)?O:O.split(\"+\");if(-1===P.indexOf(\"all\")&&-1===P.indexOf(i)){L=!1;break}}I&&(L=!1)}var D=c.selectAll(\"g.axistext\").data(L?[0]:[]);D.enter().append(\"g\").classed(\"axistext\",!0),D.exit().remove(),D.each(function(){var e=n.select(this),a=o.ensureSingle(e,\"path\",\"\",function(t){t.style({\"stroke-width\":\"1px\"})}),s=o.ensureSingle(e,\"text\",\"\",function(t){t.attr(\"data-notex\",1)}),c=p.bgcolor||f.defaultLine,h=p.bordercolor||f.contrast(c),v=f.contrast(c);a.style({fill:c,stroke:h}),s.text(M).call(u.font,p.font.family||d,p.font.size||g,p.font.color||v).call(l.positionText,0,0).call(l.convertToTspans,r),e.attr(\"transform\",\"\");var m=s.node().getBoundingClientRect();if(\"x\"===i){s.attr(\"text-anchor\",\"middle\").call(l.positionText,0,\"top\"===x.side?S-m.bottom-w-k:S-m.top+w+k);var T=\"top\"===x.side?\"-\":\"\";a.attr(\"d\",\"M0,0L\"+w+\",\"+T+w+\"H\"+(k+m.width/2)+\"v\"+T+(2*k+m.height)+\"H-\"+(k+m.width/2)+\"V\"+T+w+\"H-\"+w+\"Z\"),e.attr(\"transform\",\"translate(\"+(x._offset+(y.x0+y.x1)/2)+\",\"+(b._offset+(\"top\"===x.side?0:b._length))+\")\")}else{s.attr(\"text-anchor\",\"right\"===b.side?\"start\":\"end\").call(l.positionText,(\"right\"===b.side?1:-1)*(k+w),S-m.top-m.height/2);var E=\"right\"===b.side?\"\":\"-\";a.attr(\"d\",\"M0,0L\"+E+w+\",\"+w+\"V\"+(k+m.height/2)+\"h\"+E+(2*k+m.width)+\"V-\"+(k+m.height/2)+\"H\"+E+w+\"V-\"+w+\"Z\"),e.attr(\"transform\",\"translate(\"+(x._offset+(\"right\"===b.side?x._length:0))+\",\"+(b._offset+(y.y0+y.y1)/2)+\")\")}t=t.filter(function(t){return void 0!==t.zLabelVal||(t[_]||\"\").split(\" \")[0]===A})});var R=c.selectAll(\"g.hovertext\").data(t,function(t){return[t.trace.index,t.index,t.x0,t.y0,t.name,t.attr,t.xa,t.ya||\"\"].join(\",\")});return R.enter().append(\"g\").classed(\"hovertext\",!0).each(function(){var t=n.select(this);t.append(\"rect\").call(f.fill,f.addOpacity(s,.8)),t.append(\"text\").classed(\"name\",!0),t.append(\"path\").style(\"stroke-width\",\"1px\"),t.append(\"text\").classed(\"nums\",!0).call(u.font,d,g)}),R.exit().remove(),R.each(function(t){var e=n.select(this).attr(\"transform\",\"\"),o=\"\",c=\"\",h=t.bgcolor||t.color,p=f.combine(f.opacity(h)?h:f.defaultLine,s),v=f.combine(f.opacity(t.color)?t.color:f.defaultLine,s),y=t.borderColor||f.contrast(p);if(void 0!==t.nameOverride&&(t.name=t.nameOverride),t.name){o=l.plainText(t.name||\"\");var x=Math.round(t.nameLength);x>-1&&o.length>x&&(o=x>3?o.substr(0,x-3)+\"...\":o.substr(0,x))}void 0!==t.zLabel?(void 0!==t.xLabel&&(c+=\"x: \"+t.xLabel+\"<br>\"),void 0!==t.yLabel&&(c+=\"y: \"+t.yLabel+\"<br>\"),c+=(c?\"z: \":\"\")+t.zLabel):L&&t[i+\"Label\"]===M?c=t[(\"x\"===i?\"y\":\"x\")+\"Label\"]||\"\":void 0===t.xLabel?void 0!==t.yLabel&&(c=t.yLabel):c=void 0===t.yLabel?t.xLabel:\"(\"+t.xLabel+\", \"+t.yLabel+\")\",!t.text&&0!==t.text||Array.isArray(t.text)||(c+=(c?\"<br>\":\"\")+t.text),void 0!==t.extraText&&(c+=(c?\"<br>\":\"\")+t.extraText),\"\"===c&&(\"\"===o&&e.remove(),c=o);var b=e.select(\"text.nums\").call(u.font,t.fontFamily||d,t.fontSize||g,t.fontColor||y).text(c).attr(\"data-notex\",1).call(l.positionText,0,0).call(l.convertToTspans,r),_=e.select(\"text.name\"),A=0;o&&o!==c?(_.call(u.font,t.fontFamily||d,t.fontSize||g,v).text(o).attr(\"data-notex\",1).call(l.positionText,0,0).call(l.convertToTspans,r),A=_.node().getBoundingClientRect().width+2*k):(_.remove(),e.select(\"rect\").remove()),e.select(\"path\").style({fill:p,stroke:y});var T,z,O=b.node().getBoundingClientRect(),I=t.xa._offset+(t.x0+t.x1)/2,P=t.ya._offset+(t.y0+t.y1)/2,D=Math.abs(t.x1-t.x0),R=Math.abs(t.y1-t.y0),B=O.width+w+k+A;t.ty0=S-O.top,t.bx=O.width+2*k,t.by=O.height+2*k,t.anchor=\"start\",t.txwidth=O.width,t.tx2width=A,t.offset=0,a?(t.pos=I,T=P+R/2+B<=C,z=P-R/2-B>=0,\"top\"!==t.idealAlign&&T||!z?T?(P+=R/2,t.anchor=\"start\"):t.anchor=\"middle\":(P-=R/2,t.anchor=\"end\")):(t.pos=P,T=I+D/2+B<=E,z=I-D/2-B>=0,\"left\"!==t.idealAlign&&T||!z?T?(I+=D/2,t.anchor=\"start\"):t.anchor=\"middle\":(I-=D/2,t.anchor=\"end\")),b.attr(\"text-anchor\",t.anchor),A&&_.attr(\"text-anchor\",t.anchor),e.attr(\"transform\",\"translate(\"+I+\",\"+P+\")\"+(a?\"rotate(\"+m+\")\":\"\"))}),R}function A(t,e){t.each(function(t){var r=n.select(this);if(t.del)r.remove();else{var i=\"end\"===t.anchor?-1:1,a=r.select(\"text.nums\"),o={start:1,end:-1,middle:0}[t.anchor],s=o*(w+k),c=s+o*(t.txwidth+k),f=0,h=t.offset;\"middle\"===t.anchor&&(s-=t.tx2width/2,c+=t.txwidth/2+k),e&&(h*=-_,f=t.offset*b),r.select(\"path\").attr(\"d\",\"middle\"===t.anchor?\"M-\"+(t.bx/2+t.tx2width/2)+\",\"+(h-t.by/2)+\"h\"+t.bx+\"v\"+t.by+\"h-\"+t.bx+\"Z\":\"M0,0L\"+(i*w+f)+\",\"+(w+h)+\"v\"+(t.by/2-w)+\"h\"+i*t.bx+\"v-\"+t.by+\"H\"+(i*w+f)+\"V\"+(h-w)+\"Z\"),a.call(l.positionText,s+f,h+t.ty0-t.by/2+k),t.tx2width&&(r.select(\"text.name\").call(l.positionText,c+o*k+f,h+t.ty0-t.by/2+k),r.select(\"rect\").call(u.setRect,c+(o-1)*t.tx2width/2+f,h-t.by/2-1,t.tx2width,t.by+2))}})}function T(t,e){var r=t.index,n=t.trace||{},i=t.cd[0],a=t.cd[r]||{},s=Array.isArray(r)?function(t,e){return o.castOption(i,r,t)||o.extractOption({},n,\"\",e)}:function(t,e){return o.extractOption(a,n,t,e)};function l(e,r,n){var i=s(r,n);i&&(t[e]=i)}if(l(\"hoverinfo\",\"hi\",\"hoverinfo\"),l(\"bgcolor\",\"hbg\",\"hoverlabel.bgcolor\"),l(\"borderColor\",\"hbc\",\"hoverlabel.bordercolor\"),l(\"fontFamily\",\"htf\",\"hoverlabel.font.family\"),l(\"fontSize\",\"hts\",\"hoverlabel.font.size\"),l(\"fontColor\",\"htc\",\"hoverlabel.font.color\"),l(\"nameLength\",\"hnl\",\"hoverlabel.namelength\"),t.posref=\"y\"===e?t.xa._offset+(t.x0+t.x1)/2:t.ya._offset+(t.y0+t.y1)/2,t.x0=o.constrain(t.x0,0,t.xa._length),t.x1=o.constrain(t.x1,0,t.xa._length),t.y0=o.constrain(t.y0,0,t.ya._length),t.y1=o.constrain(t.y1,0,t.ya._length),void 0!==t.xLabelVal&&(t.xLabel=\"xLabel\"in t?t.xLabel:p.hoverLabelText(t.xa,t.xLabelVal),t.xVal=t.xa.c2d(t.xLabelVal)),void 0!==t.yLabelVal&&(t.yLabel=\"yLabel\"in t?t.yLabel:p.hoverLabelText(t.ya,t.yLabelVal),t.yVal=t.ya.c2d(t.yLabelVal)),void 0!==t.zLabelVal&&void 0===t.zLabel&&(t.zLabel=String(t.zLabelVal)),!(isNaN(t.xerr)||\"log\"===t.xa.type&&t.xerr<=0)){var c=p.tickText(t.xa,t.xa.c2l(t.xerr),\"hover\").text;void 0!==t.xerrneg?t.xLabel+=\" +\"+c+\" / -\"+p.tickText(t.xa,t.xa.c2l(t.xerrneg),\"hover\").text:t.xLabel+=\" \\xb1 \"+c,\"x\"===e&&(t.distance+=1)}if(!(isNaN(t.yerr)||\"log\"===t.ya.type&&t.yerr<=0)){var u=p.tickText(t.ya,t.ya.c2l(t.yerr),\"hover\").text;void 0!==t.yerrneg?t.yLabel+=\" +\"+u+\" / -\"+p.tickText(t.ya,t.ya.c2l(t.yerrneg),\"hover\").text:t.yLabel+=\" \\xb1 \"+u,\"y\"===e&&(t.distance+=1)}var f=t.hoverinfo||t.trace.hoverinfo;return\"all\"!==f&&(-1===(f=Array.isArray(f)?f:f.split(\"+\")).indexOf(\"x\")&&(t.xLabel=void 0),-1===f.indexOf(\"y\")&&(t.yLabel=void 0),-1===f.indexOf(\"z\")&&(t.zLabel=void 0),-1===f.indexOf(\"text\")&&(t.text=void 0),-1===f.indexOf(\"name\")&&(t.name=void 0)),t}function S(t,e){var r,n,i=e.container,o=e.fullLayout,s=e.event,l=!!t.hLinePoint,c=!!t.vLinePoint;if(i.selectAll(\".spikeline\").remove(),c||l){var h=f.combine(o.plot_bgcolor,o.paper_bgcolor);if(l){var p,d,g=t.hLinePoint;r=g&&g.xa,\"cursor\"===(n=g&&g.ya).spikesnap?(p=s.pointerX,d=s.pointerY):(p=r._offset+g.x,d=n._offset+g.y);var v,m,y=a.readability(g.color,h)<1.5?f.contrast(h):g.color,x=n.spikemode,b=n.spikethickness,_=n.spikecolor||y,w=n._boundingBox,k=(w.left+w.right)/2<p?w.right:w.left;-1===x.indexOf(\"toaxis\")&&-1===x.indexOf(\"across\")||(-1!==x.indexOf(\"toaxis\")&&(v=k,m=p),-1!==x.indexOf(\"across\")&&(v=n._counterSpan[0],m=n._counterSpan[1]),i.insert(\"line\",\":first-child\").attr({x1:v,x2:m,y1:d,y2:d,\"stroke-width\":b,stroke:_,\"stroke-dasharray\":u.dashStyle(n.spikedash,b)}).classed(\"spikeline\",!0).classed(\"crisp\",!0),i.insert(\"line\",\":first-child\").attr({x1:v,x2:m,y1:d,y2:d,\"stroke-width\":b+2,stroke:h}).classed(\"spikeline\",!0).classed(\"crisp\",!0)),-1!==x.indexOf(\"marker\")&&i.insert(\"circle\",\":first-child\").attr({cx:k+(\"right\"!==n.side?b:-b),cy:d,r:b,fill:_}).classed(\"spikeline\",!0)}if(c){var M,A,T=t.vLinePoint;r=T&&T.xa,n=T&&T.ya,\"cursor\"===r.spikesnap?(M=s.pointerX,A=s.pointerY):(M=r._offset+T.x,A=n._offset+T.y);var S,E,C=a.readability(T.color,h)<1.5?f.contrast(h):T.color,L=r.spikemode,z=r.spikethickness,O=r.spikecolor||C,I=r._boundingBox,P=(I.top+I.bottom)/2<A?I.bottom:I.top;-1===L.indexOf(\"toaxis\")&&-1===L.indexOf(\"across\")||(-1!==L.indexOf(\"toaxis\")&&(S=P,E=A),-1!==L.indexOf(\"across\")&&(S=r._counterSpan[0],E=r._counterSpan[1]),i.insert(\"line\",\":first-child\").attr({x1:M,x2:M,y1:S,y2:E,\"stroke-width\":z,stroke:O,\"stroke-dasharray\":u.dashStyle(r.spikedash,z)}).classed(\"spikeline\",!0).classed(\"crisp\",!0),i.insert(\"line\",\":first-child\").attr({x1:M,x2:M,y1:S,y2:E,\"stroke-width\":z+2,stroke:h}).classed(\"spikeline\",!0).classed(\"crisp\",!0)),-1!==L.indexOf(\"marker\")&&i.insert(\"circle\",\":first-child\").attr({cx:M,cy:P-(\"top\"!==r.side?z:-z),r:z,fill:O}).classed(\"spikeline\",!0)}}}function E(t,e){return!e||(e.vLinePoint!==t._spikepoints.vLinePoint||e.hLinePoint!==t._spikepoints.hLinePoint)}r.hover=function(t,e,r,a){t=o.getGraphDiv(t),o.throttle(t._fullLayout._uid+v.HOVERID,v.HOVERMINTIME,function(){!function(t,e,r,a){r||(r=\"xy\");var l=Array.isArray(r)?r:[r],u=t._fullLayout,v=u._plots||[],m=v[r],y=u._has(\"cartesian\");if(m){var b=m.overlays.map(function(t){return t.id});l=l.concat(b)}for(var _=l.length,w=new Array(_),k=new Array(_),C=!1,L=0;L<_;L++){var z=l[L],O=v[z];if(O)C=!0,w[L]=p.getFromId(t,O.xaxis._id),k[L]=p.getFromId(t,O.yaxis._id);else{var I=u[z]._subplot;w[L]=I.xaxis,k[L]=I.yaxis}}var P=e.hovermode||u.hovermode;P&&!C&&(P=\"closest\");if(-1===[\"x\",\"y\",\"closest\"].indexOf(P)||!t.calcdata||t.querySelector(\".zoombox\")||t._dragging)return h.unhoverRaw(t,e);var D,R,B,F,N,j,V,U,q,H,G,W,Y,X=-1===u.hoverdistance?1/0:u.hoverdistance,Z=-1===u.spikedistance?1/0:u.spikedistance,$=[],J=[],K={hLinePoint:null,vLinePoint:null},Q=!1;if(Array.isArray(e))for(P=\"array\",B=0;B<e.length;B++)N=t.calcdata[e[B].curveNumber||0],j=N[0].trace,\"skip\"!==N[0].trace.hoverinfo&&(J.push(N),\"h\"===j.orientation&&(Q=!0));else{for(F=0;F<t.calcdata.length;F++)N=t.calcdata[F],\"skip\"!==(j=N[0].trace).hoverinfo&&g.isTraceInSubplots(j,l)&&(J.push(N),\"h\"===j.orientation&&(Q=!0));var tt,et,rt=!e.target;if(rt)tt=\"xpx\"in e?e.xpx:w[0]._length/2,et=\"ypx\"in e?e.ypx:k[0]._length/2;else{if(!1===s.triggerHandler(t,\"plotly_beforehover\",e))return;var nt=e.target.getBoundingClientRect();if(tt=e.clientX-nt.left,et=e.clientY-nt.top,tt<0||tt>w[0]._length||et<0||et>k[0]._length)return h.unhoverRaw(t,e)}if(e.pointerX=tt+w[0]._offset,e.pointerY=et+k[0]._offset,D=\"xval\"in e?g.flat(l,e.xval):g.p2c(w,tt),R=\"yval\"in e?g.flat(l,e.yval):g.p2c(k,et),!i(D[0])||!i(R[0]))return o.warn(\"Fx.hover failed\",e,t),h.unhoverRaw(t,e)}var it=1/0;for(F=0;F<J.length;F++)if((N=J[F])&&N[0]&&N[0].trace&&!0===N[0].trace.visible&&(j=N[0].trace,-1===[\"carpet\",\"contourcarpet\"].indexOf(j._module.name))){if(\"splom\"===j.type?V=l[U=0]:(V=g.getSubplot(j),U=l.indexOf(V)),q=P,W={cd:N,trace:j,xa:w[U],ya:k[U],maxHoverDistance:X,maxSpikeDistance:Z,index:!1,distance:Math.min(it,X),spikeDistance:1/0,xSpike:void 0,ySpike:void 0,color:f.defaultLine,name:j.name,x0:void 0,x1:void 0,y0:void 0,y1:void 0,xLabelVal:void 0,yLabelVal:void 0,zLabelVal:void 0,text:void 0},u[V]&&(W.subplot=u[V]._subplot),u._splomScenes&&u._splomScenes[j.uid]&&(W.scene=u._splomScenes[j.uid]),Y=$.length,\"array\"===q){var at=e[F];\"pointNumber\"in at?(W.index=at.pointNumber,q=\"closest\"):(q=\"\",\"xval\"in at&&(H=at.xval,q=\"x\"),\"yval\"in at&&(G=at.yval,q=q?\"closest\":\"y\"))}else H=D[U],G=R[U];if(0!==X)if(j._module&&j._module.hoverPoints){var ot=j._module.hoverPoints(W,H,G,q,u._hoverlayer);if(ot)for(var st,lt=0;lt<ot.length;lt++)st=ot[lt],i(st.x0)&&i(st.y0)&&$.push(T(st,P))}else o.log(\"Unrecognized trace type in hover:\",j);if(\"closest\"===P&&$.length>Y&&($.splice(0,Y),it=$[0].distance),y&&0!==Z&&0===$.length){W.distance=Z,W.index=!1;var ct=j._module.hoverPoints(W,H,G,\"closest\",u._hoverlayer);if(ct&&(ct=ct.filter(function(t){return t.spikeDistance<=Z})),ct&&ct.length){var ut,ft=ct.filter(function(t){return t.xa.showspikes});if(ft.length){var ht=ft[0];i(ht.x0)&&i(ht.y0)&&(ut=vt(ht),(!K.vLinePoint||K.vLinePoint.spikeDistance>ut.spikeDistance)&&(K.vLinePoint=ut))}var pt=ct.filter(function(t){return t.ya.showspikes});if(pt.length){var dt=pt[0];i(dt.x0)&&i(dt.y0)&&(ut=vt(dt),(!K.hLinePoint||K.hLinePoint.spikeDistance>ut.spikeDistance)&&(K.hLinePoint=ut))}}}}function gt(t,e){for(var r,n=null,i=1/0,a=0;a<t.length;a++)(r=t[a].spikeDistance)<i&&r<=e&&(n=t[a],i=r);return n}function vt(t){return t?{xa:t.xa,ya:t.ya,x:void 0!==t.xSpike?t.xSpike:(t.x0+t.x1)/2,y:void 0!==t.ySpike?t.ySpike:(t.y0+t.y1)/2,distance:t.distance,spikeDistance:t.spikeDistance,curveNumber:t.trace.index,color:t.color,pointNumber:t.index}:null}var mt={fullLayout:u,container:u._hoverlayer,outerContainer:u._paperdiv,event:e},yt=t._spikepoints,xt={vLinePoint:K.vLinePoint,hLinePoint:K.hLinePoint};if(t._spikepoints=xt,y&&0!==Z&&0!==$.length){var bt=$.filter(function(t){return t.ya.showspikes}),_t=gt(bt,Z);K.hLinePoint=vt(_t);var wt=$.filter(function(t){return t.xa.showspikes}),kt=gt(wt,Z);K.vLinePoint=vt(kt)}if(0===$.length){var Mt=h.unhoverRaw(t,e);return!y||null===K.hLinePoint&&null===K.vLinePoint||E(yt)&&S(K,mt),Mt}y&&E(yt)&&S(K,mt);$.sort(function(t,e){return t.distance-e.distance});var At=t._hoverdata,Tt=[];for(B=0;B<$.length;B++){var St=$[B];Tt.push(g.makeEventData(St,St.trace,St.cd))}t._hoverdata=Tt;var Et=\"y\"===P&&(J.length>1||$.length>1)||\"closest\"===P&&Q&&$.length>1,Ct=f.combine(u.plot_bgcolor||f.background,u.paper_bgcolor),Lt={hovermode:P,rotateLabels:Et,bgColor:Ct,container:u._hoverlayer,outerContainer:u._paperdiv,commonLabelOpts:u.hoverlabel,hoverdistance:u.hoverdistance},zt=M($,Lt,t);if(function(t,e,r){var n,i,a,o,s,l,c,u=0,f=1,h=t.map(function(t,n){var i=t[e],a=\"x\"===i._id.charAt(0),o=i.range;return!n&&o&&o[0]>o[1]!==a&&(f=-1),[{i:n,traceIndex:t.trace.index,dp:0,pos:t.pos,posref:t.posref,size:t.by*(a?x:1)/2,pmin:0,pmax:a?r.width:r.height}]}).sort(function(t,e){return t[0].posref-e[0].posref||f*(e[0].traceIndex-t[0].traceIndex)});function p(t){var e=t[0],r=t[t.length-1];if(i=e.pmin-e.pos-e.dp+e.size,a=r.pos+r.dp+r.size-e.pmax,i>.01){for(s=t.length-1;s>=0;s--)t[s].dp+=i;n=!1}if(!(a<.01)){if(i<-.01){for(s=t.length-1;s>=0;s--)t[s].dp-=a;n=!1}if(n){var c=0;for(o=0;o<t.length;o++)(l=t[o]).pos+l.dp+l.size>e.pmax&&c++;for(o=t.length-1;o>=0&&!(c<=0);o--)(l=t[o]).pos>e.pmax-1&&(l.del=!0,c--);for(o=0;o<t.length&&!(c<=0);o++)if((l=t[o]).pos<e.pmin+1)for(l.del=!0,c--,a=2*l.size,s=t.length-1;s>=0;s--)t[s].dp-=a;for(o=t.length-1;o>=0&&!(c<=0);o--)(l=t[o]).pos+l.dp+l.size>e.pmax&&(l.del=!0,c--)}}}for(;!n&&u<=t.length;){for(u++,n=!0,o=0;o<h.length-1;){var d=h[o],g=h[o+1],v=d[d.length-1],m=g[0];if((i=v.pos+v.dp+v.size-m.pos-m.dp+m.size)>.01&&v.pmin===m.pmin&&v.pmax===m.pmax){for(s=g.length-1;s>=0;s--)g[s].dp+=i;for(d.push.apply(d,g),h.splice(o+1,1),c=0,s=d.length-1;s>=0;s--)c+=d[s].dp;for(a=c/d.length,s=d.length-1;s>=0;s--)d[s].dp-=a;n=!1}else o++}h.forEach(p)}for(o=h.length-1;o>=0;o--){var y=h[o];for(s=y.length-1;s>=0;s--){var b=y[s],_=t[b.i];_.offset=b.dp,_.del=b.del}}}($,Et?\"xa\":\"ya\",u),A(zt,Et),e.target&&e.target.tagName){var Ot=d.getComponentMethod(\"annotations\",\"hasClickToShow\")(t,Tt);c(n.select(e.target),Ot?\"pointer\":\"\")}if(!e.target||a||!function(t,e,r){if(!r||r.length!==t._hoverdata.length)return!0;for(var n=r.length-1;n>=0;n--){var i=r[n],a=t._hoverdata[n];if(i.curveNumber!==a.curveNumber||String(i.pointNumber)!==String(a.pointNumber))return!0}return!1}(t,0,At))return;At&&t.emit(\"plotly_unhover\",{event:e,points:At});t.emit(\"plotly_hover\",{event:e,points:t._hoverdata,xaxes:w,yaxes:k,xvals:D,yvals:R})}(t,e,r,a)})},r.loneHover=function(t,e){var r={color:t.color||f.defaultLine,x0:t.x0||t.x||0,x1:t.x1||t.x||0,y0:t.y0||t.y||0,y1:t.y1||t.y||0,xLabel:t.xLabel,yLabel:t.yLabel,zLabel:t.zLabel,text:t.text,name:t.name,idealAlign:t.idealAlign,borderColor:t.borderColor,fontFamily:t.fontFamily,fontSize:t.fontSize,fontColor:t.fontColor,trace:{index:0,hoverinfo:\"\"},xa:{_offset:0},ya:{_offset:0},index:0},i=n.select(e.container),a=e.outerContainer?n.select(e.outerContainer):i,o={hovermode:\"closest\",rotateLabels:!1,bgColor:e.bgColor||f.background,container:i,outerContainer:a},s=M([r],o,e.gd);return A(s,o.rotateLabels),s.node()},r.multiHovers=function(t,e){Array.isArray(t)||(t=[t]);var r=t.map(function(t){return{color:t.color||f.defaultLine,x0:t.x0||t.x||0,x1:t.x1||t.x||0,y0:t.y0||t.y||0,y1:t.y1||t.y||0,xLabel:t.xLabel,yLabel:t.yLabel,zLabel:t.zLabel,text:t.text,name:t.name,idealAlign:t.idealAlign,borderColor:t.borderColor,fontFamily:t.fontFamily,fontSize:t.fontSize,fontColor:t.fontColor,trace:{index:0,hoverinfo:\"\"},xa:{_offset:0},ya:{_offset:0},index:0}}),i=n.select(e.container),a=e.outerContainer?n.select(e.outerContainer):i,o={hovermode:\"closest\",rotateLabels:!1,bgColor:e.bgColor||f.background,container:i,outerContainer:a},s=M(r,o,e.gd),l=0;return s.sort(function(t,e){return t.y0-e.y0}).each(function(t){var e=t.y0-t.by/2;t.offset=e-5<l?l-e+5:0,l=e+t.by+t.offset}),A(s,o.rotateLabels),s.node()}},{\"../../lib\":696,\"../../lib/events\":684,\"../../lib/override_cursor\":707,\"../../lib/svg_text_utils\":720,\"../../plots/cartesian/axes\":744,\"../../registry\":827,\"../color\":570,\"../dragelement\":592,\"../drawing\":595,\"./constants\":607,\"./helpers\":609,d3:148,\"fast-isnumeric\":214,tinycolor2:514}],611:[function(t,e,r){\"use strict\";var n=t(\"../../lib\");e.exports=function(t,e,r,i){r(\"hoverlabel.bgcolor\",(i=i||{}).bgcolor),r(\"hoverlabel.bordercolor\",i.bordercolor),r(\"hoverlabel.namelength\",i.namelength),n.coerceFont(r,\"hoverlabel.font\",i.font)}},{\"../../lib\":696}],612:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../../lib\"),a=t(\"../dragelement\"),o=t(\"./helpers\"),s=t(\"./layout_attributes\"),l=t(\"./hover\");e.exports={moduleType:\"component\",name:\"fx\",constants:t(\"./constants\"),schema:{layout:s},attributes:t(\"./attributes\"),layoutAttributes:s,supplyLayoutGlobalDefaults:t(\"./layout_global_defaults\"),supplyDefaults:t(\"./defaults\"),supplyLayoutDefaults:t(\"./layout_defaults\"),calc:t(\"./calc\"),getDistanceFunction:o.getDistanceFunction,getClosest:o.getClosest,inbox:o.inbox,quadrature:o.quadrature,appendArrayPointValue:o.appendArrayPointValue,castHoverOption:function(t,e,r){return i.castOption(t,e,\"hoverlabel.\"+r)},castHoverinfo:function(t,e,r){return i.castOption(t,r,\"hoverinfo\",function(r){return i.coerceHoverinfo({hoverinfo:r},{_module:t._module},e)})},hover:l.hover,unhover:a.unhover,loneHover:l.loneHover,multiHovers:l.multiHovers,loneUnhover:function(t){var e=i.isD3Selection(t)?t:n.select(t);e.selectAll(\"g.hovertext\").remove(),e.selectAll(\".spikeline\").remove()},click:t(\"./click\")}},{\"../../lib\":696,\"../dragelement\":592,\"./attributes\":604,\"./calc\":605,\"./click\":606,\"./constants\":607,\"./defaults\":608,\"./helpers\":609,\"./hover\":610,\"./layout_attributes\":613,\"./layout_defaults\":614,\"./layout_global_defaults\":615,d3:148}],613:[function(t,e,r){\"use strict\";var n=t(\"./constants\"),i=t(\"../../plots/font_attributes\")({editType:\"none\"});i.family.dflt=n.HOVERFONT,i.size.dflt=n.HOVERFONTSIZE,e.exports={clickmode:{valType:\"flaglist\",flags:[\"event\",\"select\"],dflt:\"event\",editType:\"plot\",extras:[\"none\"]},dragmode:{valType:\"enumerated\",values:[\"zoom\",\"pan\",\"select\",\"lasso\",\"orbit\",\"turntable\"],dflt:\"zoom\",editType:\"modebar\"},hovermode:{valType:\"enumerated\",values:[\"x\",\"y\",\"closest\",!1],editType:\"modebar\"},hoverdistance:{valType:\"integer\",min:-1,dflt:20,editType:\"none\"},spikedistance:{valType:\"integer\",min:-1,dflt:20,editType:\"none\"},hoverlabel:{bgcolor:{valType:\"color\",editType:\"none\"},bordercolor:{valType:\"color\",editType:\"none\"},font:i,namelength:{valType:\"integer\",min:-1,dflt:15,editType:\"none\"},editType:\"none\"},selectdirection:{valType:\"enumerated\",values:[\"h\",\"v\",\"d\",\"any\"],dflt:\"any\",editType:\"none\"}}},{\"../../plots/font_attributes\":771,\"./constants\":607}],614:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"./layout_attributes\");e.exports=function(t,e,r){function a(r,a){return n.coerce(t,e,i,r,a)}var o,s=a(\"clickmode\");\"select\"===a(\"dragmode\")&&a(\"selectdirection\"),e._has(\"cartesian\")?s.indexOf(\"select\")>-1?o=\"closest\":(e._isHoriz=function(t){for(var e=!0,r=0;r<t.length;r++){var n=t[r];if(\"h\"!==n.orientation){e=!1;break}}return e}(r),o=e._isHoriz?\"y\":\"x\"):o=\"closest\",a(\"hovermode\",o)&&(a(\"hoverdistance\"),a(\"spikedistance\"));var l=e._has(\"mapbox\"),c=e._has(\"geo\"),u=e._basePlotModules.length;\"zoom\"===e.dragmode&&((l||c)&&1===u||l&&c&&2===u)&&(e.dragmode=\"pan\")}},{\"../../lib\":696,\"./layout_attributes\":613}],615:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"./hoverlabel_defaults\"),a=t(\"./layout_attributes\");e.exports=function(t,e){i(t,e,function(r,i){return n.coerce(t,e,a,r,i)})}},{\"../../lib\":696,\"./hoverlabel_defaults\":611,\"./layout_attributes\":613}],616:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../lib/regex\").counter,a=t(\"../../plots/domain\").attributes,o=t(\"../../plots/cartesian/constants\").idRegex,s=t(\"../../plot_api/plot_template\"),l={rows:{valType:\"integer\",min:1,editType:\"plot\"},roworder:{valType:\"enumerated\",values:[\"top to bottom\",\"bottom to top\"],dflt:\"top to bottom\",editType:\"plot\"},columns:{valType:\"integer\",min:1,editType:\"plot\"},subplots:{valType:\"info_array\",freeLength:!0,dimensions:2,items:{valType:\"enumerated\",values:[i(\"xy\").toString(),\"\"],editType:\"plot\"},editType:\"plot\"},xaxes:{valType:\"info_array\",freeLength:!0,items:{valType:\"enumerated\",values:[o.x.toString(),\"\"],editType:\"plot\"},editType:\"plot\"},yaxes:{valType:\"info_array\",freeLength:!0,items:{valType:\"enumerated\",values:[o.y.toString(),\"\"],editType:\"plot\"},editType:\"plot\"},pattern:{valType:\"enumerated\",values:[\"independent\",\"coupled\"],dflt:\"coupled\",editType:\"plot\"},xgap:{valType:\"number\",min:0,max:1,editType:\"plot\"},ygap:{valType:\"number\",min:0,max:1,editType:\"plot\"},domain:a({name:\"grid\",editType:\"plot\",noGridCell:!0},{}),xside:{valType:\"enumerated\",values:[\"bottom\",\"bottom plot\",\"top plot\",\"top\"],dflt:\"bottom plot\",editType:\"plot\"},yside:{valType:\"enumerated\",values:[\"left\",\"left plot\",\"right plot\",\"right\"],dflt:\"left plot\",editType:\"plot\"},editType:\"plot\"};function c(t,e,r){var n=e[r+\"axes\"],i=Object.keys((t._splomAxes||{})[r]||{});return Array.isArray(n)?n:i.length?i:void 0}function u(t,e,r,n,i,a){var o=e(t+\"gap\",r),s=e(\"domain.\"+t);e(t+\"side\",n);for(var l=new Array(i),c=s[0],u=(s[1]-c)/(i-o),f=u*(1-o),h=0;h<i;h++){var p=c+u*h;l[a?i-1-h:h]=[p,p+f]}return l}function f(t,e,r,n,i){var a,o=new Array(r);function s(t,r){-1!==e.indexOf(r)&&void 0===n[r]?(o[t]=r,n[r]=t):o[t]=\"\"}if(Array.isArray(t))for(a=0;a<r;a++)s(a,t[a]);else for(s(0,i),a=1;a<r;a++)s(a,i+(a+1));return o}e.exports={moduleType:\"component\",name:\"grid\",schema:{layout:{grid:l}},layoutAttributes:l,sizeDefaults:function(t,e){var r=t.grid||{},i=c(e,r,\"x\"),a=c(e,r,\"y\");if(t.grid||i||a){var o,f,h=Array.isArray(r.subplots)&&Array.isArray(r.subplots[0]),p=Array.isArray(i),d=Array.isArray(a),g=p&&i!==r.xaxes&&d&&a!==r.yaxes;h?(o=r.subplots.length,f=r.subplots[0].length):(d&&(o=a.length),p&&(f=i.length));var v=s.newContainer(e,\"grid\"),m=M(\"rows\",o),y=M(\"columns\",f);if(m*y>1){h||p||d||\"independent\"===M(\"pattern\")&&(h=!0),v._hasSubplotGrid=h;var x,b,_=\"top to bottom\"===M(\"roworder\"),w=h?.2:.1,k=h?.3:.1;g&&e._splomGridDflt&&(x=e._splomGridDflt.xside,b=e._splomGridDflt.yside),v._domains={x:u(\"x\",M,w,x,y),y:u(\"y\",M,k,b,m,_)}}else delete e.grid}function M(t,e){return n.coerce(r,v,l,t,e)}},contentDefaults:function(t,e){var r=e.grid;if(r&&r._domains){var n,i,a,o,s,l,u,h=t.grid||{},p=e._subplots,d=r._hasSubplotGrid,g=r.rows,v=r.columns,m=\"independent\"===r.pattern,y=r._axisMap={};if(d){var x=h.subplots||[];l=r.subplots=new Array(g);var b=1;for(n=0;n<g;n++){var _=l[n]=new Array(v),w=x[n]||[];for(i=0;i<v;i++)if(m?(s=1===b?\"xy\":\"x\"+b+\"y\"+b,b++):s=w[i],_[i]=\"\",-1!==p.cartesian.indexOf(s)){if(u=s.indexOf(\"y\"),a=s.slice(0,u),o=s.slice(u),void 0!==y[a]&&y[a]!==i||void 0!==y[o]&&y[o]!==n)continue;_[i]=s,y[a]=i,y[o]=n}}}else{var k=c(e,h,\"x\"),M=c(e,h,\"y\");r.xaxes=f(k,p.xaxis,v,y,\"x\"),r.yaxes=f(M,p.yaxis,g,y,\"y\")}var A=r._anchors={},T=\"top to bottom\"===r.roworder;for(var S in y){var E,C,L,z=S.charAt(0),O=r[z+\"side\"];if(O.length<8)A[S]=\"free\";else if(\"x\"===z){if(\"t\"===O.charAt(0)===T?(E=0,C=1,L=g):(E=g-1,C=-1,L=-1),d){var I=y[S];for(n=E;n!==L;n+=C)if((s=l[n][I])&&(u=s.indexOf(\"y\"),s.slice(0,u)===S)){A[S]=s.slice(u);break}}else for(n=E;n!==L;n+=C)if(o=r.yaxes[n],-1!==p.cartesian.indexOf(S+o)){A[S]=o;break}}else if(\"l\"===O.charAt(0)?(E=0,C=1,L=v):(E=v-1,C=-1,L=-1),d){var P=y[S];for(n=E;n!==L;n+=C)if((s=l[P][n])&&(u=s.indexOf(\"y\"),s.slice(u)===S)){A[S]=s.slice(0,u);break}}else for(n=E;n!==L;n+=C)if(a=r.xaxes[n],-1!==p.cartesian.indexOf(a+S)){A[S]=a;break}}}}}},{\"../../lib\":696,\"../../lib/regex\":712,\"../../plot_api/plot_template\":734,\"../../plots/cartesian/constants\":750,\"../../plots/domain\":770}],617:[function(t,e,r){\"use strict\";var n=t(\"../../plots/cartesian/constants\"),i=t(\"../../plot_api/plot_template\").templatedArray;e.exports=i(\"image\",{visible:{valType:\"boolean\",dflt:!0,editType:\"arraydraw\"},source:{valType:\"string\",editType:\"arraydraw\"},layer:{valType:\"enumerated\",values:[\"below\",\"above\"],dflt:\"above\",editType:\"arraydraw\"},sizex:{valType:\"number\",dflt:0,editType:\"arraydraw\"},sizey:{valType:\"number\",dflt:0,editType:\"arraydraw\"},sizing:{valType:\"enumerated\",values:[\"fill\",\"contain\",\"stretch\"],dflt:\"contain\",editType:\"arraydraw\"},opacity:{valType:\"number\",min:0,max:1,dflt:1,editType:\"arraydraw\"},x:{valType:\"any\",dflt:0,editType:\"arraydraw\"},y:{valType:\"any\",dflt:0,editType:\"arraydraw\"},xanchor:{valType:\"enumerated\",values:[\"left\",\"center\",\"right\"],dflt:\"left\",editType:\"arraydraw\"},yanchor:{valType:\"enumerated\",values:[\"top\",\"middle\",\"bottom\"],dflt:\"top\",editType:\"arraydraw\"},xref:{valType:\"enumerated\",values:[\"paper\",n.idRegex.x.toString()],dflt:\"paper\",editType:\"arraydraw\"},yref:{valType:\"enumerated\",values:[\"paper\",n.idRegex.y.toString()],dflt:\"paper\",editType:\"arraydraw\"},editType:\"arraydraw\"})},{\"../../plot_api/plot_template\":734,\"../../plots/cartesian/constants\":750}],618:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../../lib/to_log_range\");e.exports=function(t,e,r,a){e=e||{};var o=\"log\"===r&&\"linear\"===e.type,s=\"linear\"===r&&\"log\"===e.type;if(o||s)for(var l,c,u=t._fullLayout.images,f=e._id.charAt(0),h=0;h<u.length;h++)if(c=\"images[\"+h+\"].\",(l=u[h])[f+\"ref\"]===e._id){var p=l[f],d=l[\"size\"+f],g=null,v=null;if(o){g=i(p,e.range);var m=d/Math.pow(10,g)/2;v=2*Math.log(m+Math.sqrt(1+m*m))/Math.LN10}else v=(g=Math.pow(10,p))*(Math.pow(10,d/2)-Math.pow(10,-d/2));n(g)?n(v)||(v=null):(g=null,v=null),a(c+f,g),a(c+\"size\"+f,v)}}},{\"../../lib/to_log_range\":722,\"fast-isnumeric\":214}],619:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../plots/cartesian/axes\"),a=t(\"../../plots/array_container_defaults\"),o=t(\"./attributes\");function s(t,e,r){function a(r,i){return n.coerce(t,e,o,r,i)}var s=a(\"source\");if(!a(\"visible\",!!s))return e;a(\"layer\"),a(\"xanchor\"),a(\"yanchor\"),a(\"sizex\"),a(\"sizey\"),a(\"sizing\"),a(\"opacity\");for(var l={_fullLayout:r},c=[\"x\",\"y\"],u=0;u<2;u++){var f=c[u],h=i.coerceRef(t,e,l,f,\"paper\");i.coercePosition(e,l,a,h,f,0)}return e}e.exports=function(t,e){a(t,e,{name:\"images\",handleItemDefaults:s})}},{\"../../lib\":696,\"../../plots/array_container_defaults\":740,\"../../plots/cartesian/axes\":744,\"./attributes\":617}],620:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../drawing\"),a=t(\"../../plots/cartesian/axes\"),o=t(\"../../constants/xmlns_namespaces\");e.exports=function(t){var e,r,s=t._fullLayout,l=[],c={},u=[];for(r=0;r<s.images.length;r++){var f=s.images[r];if(f.visible)if(\"below\"===f.layer&&\"paper\"!==f.xref&&\"paper\"!==f.yref){e=f.xref+f.yref;var h=s._plots[e];if(!h){u.push(f);continue}h.mainplot&&(e=h.mainplot.id),c[e]||(c[e]=[]),c[e].push(f)}else\"above\"===f.layer?l.push(f):u.push(f)}var p={x:{left:{sizing:\"xMin\",offset:0},center:{sizing:\"xMid\",offset:-.5},right:{sizing:\"xMax\",offset:-1}},y:{top:{sizing:\"YMin\",offset:0},middle:{sizing:\"YMid\",offset:-.5},bottom:{sizing:\"YMax\",offset:-1}}};function d(e){var r=n.select(this);if(!this.img||this.img.src!==e.source){r.attr(\"xmlns\",o.svg);var i=new Promise(function(t){var n=new Image;function i(){r.remove(),t()}this.img=n,n.setAttribute(\"crossOrigin\",\"anonymous\"),n.onerror=i,n.onload=function(){var e=document.createElement(\"canvas\");e.width=this.width,e.height=this.height,e.getContext(\"2d\").drawImage(this,0,0);var n=e.toDataURL(\"image/png\");r.attr(\"xlink:href\",n),t()},r.on(\"error\",i),n.src=e.source}.bind(this));t._promises.push(i)}}function g(e){var r=n.select(this),o=a.getFromId(t,e.xref),l=a.getFromId(t,e.yref),c=s._size,u=o?Math.abs(o.l2p(e.sizex)-o.l2p(0)):e.sizex*c.w,f=l?Math.abs(l.l2p(e.sizey)-l.l2p(0)):e.sizey*c.h,h=u*p.x[e.xanchor].offset,d=f*p.y[e.yanchor].offset,g=p.x[e.xanchor].sizing+p.y[e.yanchor].sizing,v=(o?o.r2p(e.x)+o._offset:e.x*c.w+c.l)+h,m=(l?l.r2p(e.y)+l._offset:c.h-e.y*c.h+c.t)+d;switch(e.sizing){case\"fill\":g+=\" slice\";break;case\"stretch\":g=\"none\"}r.attr({x:v,y:m,width:u,height:f,preserveAspectRatio:g,opacity:e.opacity});var y=(o?o._id:\"\")+(l?l._id:\"\");r.call(i.setClipUrl,y?\"clip\"+s._uid+y:null)}var v=s._imageLowerLayer.selectAll(\"image\").data(u),m=s._imageUpperLayer.selectAll(\"image\").data(l);v.enter().append(\"image\"),m.enter().append(\"image\"),v.exit().remove(),m.exit().remove(),v.each(function(t){d.bind(this)(t),g.bind(this)(t)}),m.each(function(t){d.bind(this)(t),g.bind(this)(t)});var y=Object.keys(s._plots);for(r=0;r<y.length;r++){e=y[r];var x=s._plots[e];if(x.imagelayer){var b=x.imagelayer.selectAll(\"image\").data(c[e]||[]);b.enter().append(\"image\"),b.exit().remove(),b.each(function(t){d.bind(this)(t),g.bind(this)(t)})}}}},{\"../../constants/xmlns_namespaces\":674,\"../../plots/cartesian/axes\":744,\"../drawing\":595,d3:148}],621:[function(t,e,r){\"use strict\";e.exports={moduleType:\"component\",name:\"images\",layoutAttributes:t(\"./attributes\"),supplyLayoutDefaults:t(\"./defaults\"),includeBasePlot:t(\"../../plots/cartesian/include_components\")(\"images\"),draw:t(\"./draw\"),convertCoords:t(\"./convert_coords\")}},{\"../../plots/cartesian/include_components\":755,\"./attributes\":617,\"./convert_coords\":618,\"./defaults\":619,\"./draw\":620}],622:[function(t,e,r){\"use strict\";r.isRightAnchor=function(t){return\"right\"===t.xanchor||\"auto\"===t.xanchor&&t.x>=2/3},r.isCenterAnchor=function(t){return\"center\"===t.xanchor||\"auto\"===t.xanchor&&t.x>1/3&&t.x<2/3},r.isBottomAnchor=function(t){return\"bottom\"===t.yanchor||\"auto\"===t.yanchor&&t.y<=1/3},r.isMiddleAnchor=function(t){return\"middle\"===t.yanchor||\"auto\"===t.yanchor&&t.y>1/3&&t.y<2/3}},{}],623:[function(t,e,r){\"use strict\";var n=t(\"../../plots/font_attributes\"),i=t(\"../color/attributes\");e.exports={bgcolor:{valType:\"color\",editType:\"legend\"},bordercolor:{valType:\"color\",dflt:i.defaultLine,editType:\"legend\"},borderwidth:{valType:\"number\",min:0,dflt:0,editType:\"legend\"},font:n({editType:\"legend\"}),orientation:{valType:\"enumerated\",values:[\"v\",\"h\"],dflt:\"v\",editType:\"legend\"},traceorder:{valType:\"flaglist\",flags:[\"reversed\",\"grouped\"],extras:[\"normal\"],editType:\"legend\"},tracegroupgap:{valType:\"number\",min:0,dflt:10,editType:\"legend\"},x:{valType:\"number\",min:-2,max:3,dflt:1.02,editType:\"legend\"},xanchor:{valType:\"enumerated\",values:[\"auto\",\"left\",\"center\",\"right\"],dflt:\"left\",editType:\"legend\"},y:{valType:\"number\",min:-2,max:3,dflt:1,editType:\"legend\"},yanchor:{valType:\"enumerated\",values:[\"auto\",\"top\",\"middle\",\"bottom\"],dflt:\"auto\",editType:\"legend\"},editType:\"legend\"}},{\"../../plots/font_attributes\":771,\"../color/attributes\":569}],624:[function(t,e,r){\"use strict\";e.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:\"#808BA4\",scrollBarMargin:4,textOffsetX:40}},{}],625:[function(t,e,r){\"use strict\";var n=t(\"../../registry\"),i=t(\"../../lib\"),a=t(\"../../plot_api/plot_template\"),o=t(\"./attributes\"),s=t(\"../../plots/layout_attributes\"),l=t(\"./helpers\");e.exports=function(t,e,r){for(var c,u,f,h,p=t.legend||{},d=0,g=!1,v=\"normal\",m=0;m<r.length;m++){var y=r[m];y.visible&&((y.showlegend||y._dfltShowLegend)&&(d++,y.showlegend&&(g=!0,(n.traceIs(y,\"pie\")||!0===y._input.showlegend)&&d++)),(n.traceIs(y,\"bar\")&&\"stack\"===e.barmode||-1!==[\"tonextx\",\"tonexty\"].indexOf(y.fill))&&(v=l.isGrouped({traceorder:v})?\"grouped+reversed\":\"reversed\"),void 0!==y.legendgroup&&\"\"!==y.legendgroup&&(v=l.isReversed({traceorder:v})?\"reversed+grouped\":\"grouped\"))}if(!1!==i.coerce(t,e,s,\"showlegend\",g&&d>1)){var x=a.newContainer(e,\"legend\");if(_(\"bgcolor\",e.paper_bgcolor),_(\"bordercolor\"),_(\"borderwidth\"),i.coerceFont(_,\"font\",e.font),_(\"orientation\"),\"h\"===x.orientation){var b=t.xaxis;b&&b.rangeslider&&b.rangeslider.visible?(c=0,f=\"left\",u=1.1,h=\"bottom\"):(c=0,f=\"left\",u=-.1,h=\"top\")}_(\"traceorder\",v),l.isGrouped(e.legend)&&_(\"tracegroupgap\"),_(\"x\",c),_(\"xanchor\",f),_(\"y\",u),_(\"yanchor\",h),i.noneOrAll(p,x,[\"x\",\"y\"])}function _(t,e){return i.coerce(p,x,o,t,e)}}},{\"../../lib\":696,\"../../plot_api/plot_template\":734,\"../../plots/layout_attributes\":799,\"../../registry\":827,\"./attributes\":623,\"./helpers\":629}],626:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../../lib\"),a=t(\"../../plots/plots\"),o=t(\"../../registry\"),s=t(\"../../lib/events\"),l=t(\"../dragelement\"),c=t(\"../drawing\"),u=t(\"../color\"),f=t(\"../../lib/svg_text_utils\"),h=t(\"./handle_click\"),p=t(\"./constants\"),d=t(\"../../constants/interactions\"),g=t(\"../../constants/alignment\"),v=g.LINE_SPACING,m=g.FROM_TL,y=g.FROM_BR,x=t(\"./get_legend_data\"),b=t(\"./style\"),_=t(\"./helpers\"),w=t(\"./anchor_utils\"),k=d.DBLCLICKDELAY;function M(t,e,r,n,i){var a=r.data()[0][0].trace,o={event:i,node:r.node(),curveNumber:a.index,expandedIndex:a._expandedIndex,data:t.data,layout:t.layout,frames:t._transitionData._frames,config:t._context,fullData:t._fullData,fullLayout:t._fullLayout};if(a._group&&(o.group=a._group),\"pie\"===a.type&&(o.label=r.datum()[0].label),!1!==s.triggerHandler(t,\"plotly_legendclick\",o))if(1===n)e._clickTimeout=setTimeout(function(){h(r,t,n)},k);else if(2===n){e._clickTimeout&&clearTimeout(e._clickTimeout),t._legendMouseDownTime=0,!1!==s.triggerHandler(t,\"plotly_legenddoubleclick\",o)&&h(r,t,n)}}function A(t,e,r){var n=t.data()[0][0],a=e._fullLayout,s=n.trace,l=o.traceIs(s,\"pie\"),u=s.index,h=l?n.label:s.name,d=e._context.edits.legendText&&!l,g=i.ensureSingle(t,\"text\",\"legendtext\");function m(r){f.convertToTspans(r,e,function(){!function(t,e){var r=t.data()[0][0];if(!r.trace.showlegend)return void t.remove();var n,i,a=t.select(\"g[class*=math-group]\"),o=a.node(),s=e._fullLayout.legend.font.size*v;if(o){var l=c.bBox(o);n=l.height,i=l.width,c.setTranslate(a,0,n/4)}else{var u=t.select(\".legendtext\"),h=f.lineCount(u),d=u.node();n=s*h,i=d?c.bBox(d).width:0;var g=s*(.3+(1-h)/2);f.positionText(u,p.textOffsetX,g)}n=Math.max(n,16)+3,r.height=n,r.width=i}(t,e)})}g.attr(\"text-anchor\",\"start\").classed(\"user-select-none\",!0).call(c.font,a.legend.font).text(d?T(h,r):h),f.positionText(g,p.textOffsetX,0),d?g.call(f.makeEditable,{gd:e,text:h}).call(m).on(\"edit\",function(t){this.text(T(t,r)).call(m);var a=n.trace._fullInput||{},s={};if(o.hasTransform(a,\"groupby\")){var l=o.getTransformIndices(a,\"groupby\"),c=l[l.length-1],f=i.keyedContainer(a,\"transforms[\"+c+\"].styles\",\"target\",\"value.name\");f.set(n.trace._group,t),s=f.constructUpdate()}else s.name=t;return o.call(\"restyle\",e,s,u)}):m(g)}function T(t,e){var r=Math.max(4,e);if(t&&t.trim().length>=r/2)return t;for(var n=r-(t=t||\"\").length;n>0;n--)t+=\" \";return t}function S(t,e){var r,a=1,o=i.ensureSingle(t,\"rect\",\"legendtoggle\",function(t){t.style(\"cursor\",\"pointer\").attr(\"pointer-events\",\"all\").call(u.fill,\"rgba(0,0,0,0)\")});o.on(\"mousedown\",function(){(r=(new Date).getTime())-e._legendMouseDownTime<k?a+=1:(a=1,e._legendMouseDownTime=r)}),o.on(\"mouseup\",function(){if(!e._dragged&&!e._editing){var r=e._fullLayout.legend;(new Date).getTime()-e._legendMouseDownTime>k&&(a=Math.max(a-1,1)),M(e,r,t,a,n.event)}})}function E(t,e,r){var i=t._fullLayout,a=i.legend,o=a.borderwidth,s=_.isGrouped(a),l=0;if(a._width=0,a._height=0,_.isVertical(a))s&&e.each(function(t,e){c.setTranslate(this,0,e*a.tracegroupgap)}),r.each(function(t){var e=t[0],r=e.height,n=e.width;c.setTranslate(this,o,5+o+a._height+r/2),a._height+=r,a._width=Math.max(a._width,n)}),a._width+=45+2*o,a._height+=10+2*o,s&&(a._height+=(a._lgroupsLength-1)*a.tracegroupgap),l=40;else if(s){for(var u=[a._width],f=e.data(),h=0,p=f.length;h<p;h++){var d=f[h].map(function(t){return t[0].width}),g=40+Math.max.apply(null,d);a._width+=a.tracegroupgap+g,u.push(a._width)}e.each(function(t,e){c.setTranslate(this,u[e],0)}),e.each(function(){var t=n.select(this).selectAll(\"g.traces\"),e=0;t.each(function(t){var r=t[0].height;c.setTranslate(this,0,5+o+e+r/2),e+=r}),a._height=Math.max(a._height,e)}),a._height+=10+2*o,a._width+=2*o}else{var v,m=0,y=0,x=0,b=0,w=0,k=a.tracegroupgap||5;r.each(function(t){x=Math.max(40+t[0].width,x),w+=40+t[0].width+k}),v=i._size.w>o+w-k,r.each(function(t){var e=t[0],r=v?40+t[0].width:x;o+b+k+r>i._size.w&&(b=0,m+=y,a._height=a._height+y,y=0),c.setTranslate(this,o+b,5+o+e.height/2+m),a._width+=k+r,a._height=Math.max(a._height,e.height),b+=k+r,y=Math.max(e.height,y)}),a._width+=2*o,a._height+=10+2*o}a._width=Math.ceil(a._width),a._height=Math.ceil(a._height);var M=t._context.edits.legendText||t._context.edits.legendPosition;r.each(function(t){var e=t[0],r=n.select(this).select(\".legendtoggle\");c.setRect(r,0,-e.height/2,(M?0:a._width)+l,e.height)})}function C(t){var e=t._fullLayout.legend,r=\"left\";w.isRightAnchor(e)?r=\"right\":w.isCenterAnchor(e)&&(r=\"center\");var n=\"top\";w.isBottomAnchor(e)?n=\"bottom\":w.isMiddleAnchor(e)&&(n=\"middle\"),a.autoMargin(t,\"legend\",{x:e.x,y:e.y,l:e._width*m[r],r:e._width*y[r],b:e._height*y[n],t:e._height*m[n]})}e.exports=function(t){var e=t._fullLayout,r=\"legend\"+e._uid;if(e._infolayer&&t.calcdata){t._legendMouseDownTime||(t._legendMouseDownTime=0);var s=e.legend,f=e.showlegend&&x(t.calcdata,s),h=e.hiddenlabels||[];if(!e.showlegend||!f.length)return e._infolayer.selectAll(\".legend\").remove(),e._topdefs.select(\"#\"+r).remove(),void a.autoMargin(t,\"legend\");for(var d=0,g=0;g<f.length;g++)for(var v=0;v<f[g].length;v++){var _=f[g][v][0],k=_.trace,T=o.traceIs(k,\"pie\")?_.label:k.name;d=Math.max(d,T&&T.length||0)}var L=!1,z=i.ensureSingle(e._infolayer,\"g\",\"legend\",function(t){t.attr(\"pointer-events\",\"all\"),L=!0}),O=i.ensureSingleById(e._topdefs,\"clipPath\",r,function(t){t.append(\"rect\")}),I=i.ensureSingle(z,\"rect\",\"bg\",function(t){t.attr(\"shape-rendering\",\"crispEdges\")});I.call(u.stroke,s.bordercolor).call(u.fill,s.bgcolor).style(\"stroke-width\",s.borderwidth+\"px\");var P=i.ensureSingle(z,\"g\",\"scrollbox\"),D=i.ensureSingle(z,\"rect\",\"scrollbar\",function(t){t.attr({rx:20,ry:3,width:0,height:0}).call(u.fill,\"#808BA4\")}),R=P.selectAll(\"g.groups\").data(f);R.enter().append(\"g\").attr(\"class\",\"groups\"),R.exit().remove();var B=R.selectAll(\"g.traces\").data(i.identity);B.enter().append(\"g\").attr(\"class\",\"traces\"),B.exit().remove(),B.call(b,t).style(\"opacity\",function(t){var e=t[0].trace;return o.traceIs(e,\"pie\")?-1!==h.indexOf(t[0].label)?.5:1:\"legendonly\"===e.visible?.5:1}).each(function(){n.select(this).call(A,t,d).call(S,t)}),i.syncOrAsync([a.previousPromises,function(){L&&(E(t,R,B),C(t));var u=e.width,f=e.height;E(t,R,B),s._height>f?function(t){var e=t._fullLayout.legend,r=\"left\";w.isRightAnchor(e)?r=\"right\":w.isCenterAnchor(e)&&(r=\"center\");a.autoMargin(t,\"legend\",{x:e.x,y:.5,l:e._width*m[r],r:e._width*y[r],b:0,t:0})}(t):C(t);var h=e._size,d=h.l+h.w*s.x,g=h.t+h.h*(1-s.y);w.isRightAnchor(s)?d-=s._width:w.isCenterAnchor(s)&&(d-=s._width/2),w.isBottomAnchor(s)?g-=s._height:w.isMiddleAnchor(s)&&(g-=s._height/2);var v=s._width,x=h.w;v>x?(d=h.l,v=x):(d+v>u&&(d=u-v),d<0&&(d=0),v=Math.min(u-d,s._width));var b,_,k,A,T=s._height,S=h.h;if(T>S?(g=h.t,T=S):(g+T>f&&(g=f-T),g<0&&(g=0),T=Math.min(f-g,s._height)),c.setTranslate(z,d,g),D.on(\".drag\",null),z.on(\"wheel\",null),s._height<=T||t._context.staticPlot)I.attr({width:v-s.borderwidth,height:T-s.borderwidth,x:s.borderwidth/2,y:s.borderwidth/2}),c.setTranslate(P,0,0),O.select(\"rect\").attr({width:v-2*s.borderwidth,height:T-2*s.borderwidth,x:s.borderwidth,y:s.borderwidth}),c.setClipUrl(P,r),c.setRect(D,0,0,0,0),delete s._scrollY;else{var F,N,j=Math.max(p.scrollBarMinHeight,T*T/s._height),V=T-j-2*p.scrollBarMargin,U=s._height-T,q=V/U,H=Math.min(s._scrollY||0,U);I.attr({width:v-2*s.borderwidth+p.scrollBarWidth+p.scrollBarMargin,height:T-s.borderwidth,x:s.borderwidth/2,y:s.borderwidth/2}),O.select(\"rect\").attr({width:v-2*s.borderwidth+p.scrollBarWidth+p.scrollBarMargin,height:T-2*s.borderwidth,x:s.borderwidth,y:s.borderwidth+H}),c.setClipUrl(P,r),W(H,j,q),z.on(\"wheel\",function(){W(H=i.constrain(s._scrollY+n.event.deltaY/V*U,0,U),j,q),0!==H&&H!==U&&n.event.preventDefault()});var G=n.behavior.drag().on(\"dragstart\",function(){F=n.event.sourceEvent.clientY,N=H}).on(\"drag\",function(){var t=n.event.sourceEvent;2===t.buttons||t.ctrlKey||W(H=i.constrain((t.clientY-F)/q+N,0,U),j,q)});D.call(G)}function W(e,r,n){s._scrollY=t._fullLayout.legend._scrollY=e,c.setTranslate(P,0,-e),c.setRect(D,v,p.scrollBarMargin+e*n,p.scrollBarWidth,r),O.select(\"rect\").attr({y:s.borderwidth+e})}t._context.edits.legendPosition&&(z.classed(\"cursor-move\",!0),l.init({element:z.node(),gd:t,prepFn:function(){var t=c.getTranslate(z);k=t.x,A=t.y},moveFn:function(t,e){var r=k+t,n=A+e;c.setTranslate(z,r,n),b=l.align(r,0,h.l,h.l+h.w,s.xanchor),_=l.align(n,0,h.t+h.h,h.t,s.yanchor)},doneFn:function(){void 0!==b&&void 0!==_&&o.call(\"relayout\",t,{\"legend.x\":b,\"legend.y\":_})},clickFn:function(r,n){var i=e._infolayer.selectAll(\"g.traces\").filter(function(){var t=this.getBoundingClientRect();return n.clientX>=t.left&&n.clientX<=t.right&&n.clientY>=t.top&&n.clientY<=t.bottom});i.size()>0&&M(t,z,i,r,n)}}))}],t)}}},{\"../../constants/alignment\":668,\"../../constants/interactions\":672,\"../../lib\":696,\"../../lib/events\":684,\"../../lib/svg_text_utils\":720,\"../../plots/plots\":808,\"../../registry\":827,\"../color\":570,\"../dragelement\":592,\"../drawing\":595,\"./anchor_utils\":622,\"./constants\":624,\"./get_legend_data\":627,\"./handle_click\":628,\"./helpers\":629,\"./style\":631,d3:148}],627:[function(t,e,r){\"use strict\";var n=t(\"../../registry\"),i=t(\"./helpers\");e.exports=function(t,e){var r,a,o={},s=[],l=!1,c={},u=0;function f(t,r){if(\"\"!==t&&i.isGrouped(e))-1===s.indexOf(t)?(s.push(t),l=!0,o[t]=[[r]]):o[t].push([r]);else{var n=\"~~i\"+u;s.push(n),o[n]=[[r]],u++}}for(r=0;r<t.length;r++){var h=t[r],p=h[0],d=p.trace,g=d.legendgroup;if(d.visible&&d.showlegend)if(n.traceIs(d,\"pie\"))for(c[g]||(c[g]={}),a=0;a<h.length;a++){var v=h[a].label;c[g][v]||(f(g,{label:v,color:h[a].color,i:h[a].i,trace:d,pts:h[a].pts}),c[g][v]=!0)}else f(g,p)}if(!s.length)return[];var m,y,x=s.length;if(l&&i.isGrouped(e))for(y=new Array(x),r=0;r<x;r++)m=o[s[r]],y[r]=i.isReversed(e)?m.reverse():m;else{for(y=[new Array(x)],r=0;r<x;r++)m=o[s[r]][0],y[0][i.isReversed(e)?x-r-1:r]=m;x=1}return e._lgroupsLength=x,y}},{\"../../registry\":827,\"./helpers\":629}],628:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../registry\"),a=!0;e.exports=function(t,e,r){if(!e._dragged&&!e._editing){var o,s,l,c,u,f=e._fullLayout.hiddenlabels?e._fullLayout.hiddenlabels.slice():[],h=t.data()[0][0],p=e._fullData,d=h.trace,g=d.legendgroup,v={},m=[],y=[],x=[];if(1===r&&a&&e.data&&e._context.showTips?(n.notifier(n._(e,\"Double-click on legend to isolate one trace\"),\"long\"),a=!1):a=!1,i.traceIs(d,\"pie\")){var b=h.label,_=f.indexOf(b);1===r?-1===_?f.push(b):f.splice(_,1):2===r&&(f=[],e.calcdata[0].forEach(function(t){b!==t.label&&f.push(t.label)}),e._fullLayout.hiddenlabels&&e._fullLayout.hiddenlabels.length===f.length&&-1===_&&(f=[])),i.call(\"relayout\",e,\"hiddenlabels\",f)}else{var w,k=g&&g.length,M=[];if(k)for(o=0;o<p.length;o++)(w=p[o]).visible&&w.legendgroup===g&&M.push(o);if(1===r){var A;switch(d.visible){case!0:A=\"legendonly\";break;case!1:A=!1;break;case\"legendonly\":A=!0}if(k)for(o=0;o<p.length;o++)!1!==p[o].visible&&p[o].legendgroup===g&&O(p[o],A);else O(d,A)}else if(2===r){var T,S,E=!0;for(o=0;o<p.length;o++)if(!(p[o]===d)&&!(T=k&&p[o].legendgroup===g)&&!0===p[o].visible&&!i.traceIs(p[o],\"notLegendIsolatable\")){E=!1;break}for(o=0;o<p.length;o++)if(!1!==p[o].visible&&!i.traceIs(p[o],\"notLegendIsolatable\"))switch(d.visible){case\"legendonly\":O(p[o],!0);break;case!0:S=!!E||\"legendonly\",T=p[o]===d||k&&p[o].legendgroup===g,O(p[o],!!T||S)}}for(o=0;o<y.length;o++)if(l=y[o]){var C=l.constructUpdate(),L=Object.keys(C);for(s=0;s<L.length;s++)c=L[s],(v[c]=v[c]||[])[x[o]]=C[c]}for(u=Object.keys(v),o=0;o<u.length;o++)for(c=u[o],s=0;s<m.length;s++)v[c].hasOwnProperty(s)||(v[c][s]=void 0);i.call(\"restyle\",e,v,m)}}function z(t,e,r){var n=m.indexOf(t),i=v[e];return i||(i=v[e]=[]),-1===m.indexOf(t)&&(m.push(t),n=m.length-1),i[n]=r,n}function O(t,e){var r=t._fullInput;if(i.hasTransform(r,\"groupby\")){var a=y[r.index];if(!a){var o=i.getTransformIndices(r,\"groupby\"),s=o[o.length-1];a=n.keyedContainer(r,\"transforms[\"+s+\"].styles\",\"target\",\"value.visible\"),y[r.index]=a}var l=a.get(t._group);void 0===l&&(l=!0),!1!==l&&a.set(t._group,e),x[r.index]=z(r.index,\"visible\",!1!==r.visible)}else{var c=!1!==r.visible&&e;z(r.index,\"visible\",c)}}}},{\"../../lib\":696,\"../../registry\":827}],629:[function(t,e,r){\"use strict\";r.isGrouped=function(t){return-1!==(t.traceorder||\"\").indexOf(\"grouped\")},r.isVertical=function(t){return\"h\"!==t.orientation},r.isReversed=function(t){return-1!==(t.traceorder||\"\").indexOf(\"reversed\")}},{}],630:[function(t,e,r){\"use strict\";e.exports={moduleType:\"component\",name:\"legend\",layoutAttributes:t(\"./attributes\"),supplyLayoutDefaults:t(\"./defaults\"),draw:t(\"./draw\"),style:t(\"./style\")}},{\"./attributes\":623,\"./defaults\":625,\"./draw\":626,\"./style\":631}],631:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../../registry\"),a=t(\"../../lib\"),o=t(\"../drawing\"),s=t(\"../color\"),l=t(\"../../traces/scatter/subtypes\"),c=t(\"../../traces/pie/style_one\");e.exports=function(t,e){t.each(function(t){var e=n.select(this),r=a.ensureSingle(e,\"g\",\"layers\");r.style(\"opacity\",t[0].trace.opacity),r.selectAll(\"g.legendfill\").data([t]).enter().append(\"g\").classed(\"legendfill\",!0),r.selectAll(\"g.legendlines\").data([t]).enter().append(\"g\").classed(\"legendlines\",!0);var i=r.selectAll(\"g.legendsymbols\").data([t]);i.enter().append(\"g\").classed(\"legendsymbols\",!0),i.selectAll(\"g.legendpoints\").data([t]).enter().append(\"g\").classed(\"legendpoints\",!0)}).each(function(t){var e=t[0].trace,r=e.marker||{},a=r.line||{},o=n.select(this).select(\"g.legendpoints\").selectAll(\"path.legendbar\").data(i.traceIs(e,\"bar\")?[t]:[]);o.enter().append(\"path\").classed(\"legendbar\",!0).attr(\"d\",\"M6,6H-6V-6H6Z\").attr(\"transform\",\"translate(20,0)\"),o.exit().remove(),o.each(function(t){var e=n.select(this),i=t[0],o=(i.mlw+1||a.width+1)-1;e.style(\"stroke-width\",o+\"px\").call(s.fill,i.mc||r.color),o&&e.call(s.stroke,i.mlc||a.color)})}).each(function(t){var e=t[0].trace,r=n.select(this).select(\"g.legendpoints\").selectAll(\"path.legendbox\").data(i.traceIs(e,\"box-violin\")&&e.visible?[t]:[]);r.enter().append(\"path\").classed(\"legendbox\",!0).attr(\"d\",\"M6,6H-6V-6H6Z\").attr(\"transform\",\"translate(20,0)\"),r.exit().remove(),r.each(function(){var t=e.line.width,r=n.select(this);r.style(\"stroke-width\",t+\"px\").call(s.fill,e.fillcolor),t&&s.stroke(r,e.line.color)})}).each(function(t){var e=t[0].trace,r=n.select(this).select(\"g.legendpoints\").selectAll(\"path.legendpie\").data(i.traceIs(e,\"pie\")&&e.visible?[t]:[]);r.enter().append(\"path\").classed(\"legendpie\",!0).attr(\"d\",\"M6,6H-6V-6H6Z\").attr(\"transform\",\"translate(20,0)\"),r.exit().remove(),r.size()&&r.call(c,t[0],e)}).each(function(t){var r=t[0].trace,i=r.visible&&r.fill&&\"none\"!==r.fill,a=l.hasLines(r),s=r.contours,c=!1,u=!1;if(s){var f=s.coloring;\"lines\"===f?c=!0:a=\"none\"===f||\"heatmap\"===f||s.showlines,\"constraint\"===s.type?i=\"=\"!==s._operation:\"fill\"!==f&&\"heatmap\"!==f||(u=!0)}var h=l.hasMarkers(r)||l.hasText(r),p=i||u,d=a||c,g=h||!p?\"M5,0\":d?\"M5,-2\":\"M5,-3\",v=n.select(this),m=v.select(\".legendfill\").selectAll(\"path\").data(i||u?[t]:[]);m.enter().append(\"path\").classed(\"js-fill\",!0),m.exit().remove(),m.attr(\"d\",g+\"h30v6h-30z\").call(i?o.fillGroupStyle:function(t){if(t.size()){var n=\"legendfill-\"+r.uid;o.gradient(t,e,n,\"horizontalreversed\",r.colorscale,\"fill\")}});var y=v.select(\".legendlines\").selectAll(\"path\").data(a||c?[t]:[]);y.enter().append(\"path\").classed(\"js-line\",!0),y.exit().remove(),y.attr(\"d\",g+(c?\"l30,0.0001\":\"h30\")).call(a?o.lineGroupStyle:function(t){if(t.size()){var n=\"legendline-\"+r.uid;o.lineGroupStyle(t),o.gradient(t,e,n,\"horizontalreversed\",r.colorscale,\"stroke\")}})}).each(function(t){var r,i,s=t[0],c=s.trace,u=l.hasMarkers(c),f=l.hasText(c),h=l.hasLines(c);function p(t,e,r){var n=a.nestedProperty(c,t).get(),i=a.isArrayOrTypedArray(n)&&e?e(n):n;if(r){if(i<r[0])return r[0];if(i>r[1])return r[1]}return i}function d(t){return t[0]}if(u||f||h){var g={},v={};if(u){g.mc=p(\"marker.color\",d),g.mx=p(\"marker.symbol\",d),g.mo=p(\"marker.opacity\",a.mean,[.2,1]),g.mlc=p(\"marker.line.color\",d),g.mlw=p(\"marker.line.width\",a.mean,[0,5]),v.marker={sizeref:1,sizemin:1,sizemode:\"diameter\"};var m=p(\"marker.size\",a.mean,[2,16]);g.ms=m,v.marker.size=m}h&&(v.line={width:p(\"line.width\",d,[0,10])}),f&&(g.tx=\"Aa\",g.tp=p(\"textposition\",d),g.ts=10,g.tc=p(\"textfont.color\",d),g.tf=p(\"textfont.family\",d)),r=[a.minExtend(s,g)],(i=a.minExtend(c,v)).selectedpoints=null}var y=n.select(this).select(\"g.legendpoints\"),x=y.selectAll(\"path.scatterpts\").data(u?r:[]);x.enter().insert(\"path\",\":first-child\").classed(\"scatterpts\",!0).attr(\"transform\",\"translate(20,0)\"),x.exit().remove(),x.call(o.pointStyle,i,e),u&&(r[0].mrc=3);var b=y.selectAll(\"g.pointtext\").data(f?r:[]);b.enter().append(\"g\").classed(\"pointtext\",!0).append(\"text\").attr(\"transform\",\"translate(20,0)\"),b.exit().remove(),b.selectAll(\"text\").call(o.textPointStyle,i,e)}).each(function(t){var e=t[0].trace,r=n.select(this).select(\"g.legendpoints\").selectAll(\"path.legendcandle\").data(\"candlestick\"===e.type&&e.visible?[t,t]:[]);r.enter().append(\"path\").classed(\"legendcandle\",!0).attr(\"d\",function(t,e){return e?\"M-15,0H-8M-8,6V-6H8Z\":\"M15,0H8M8,-6V6H-8Z\"}).attr(\"transform\",\"translate(20,0)\").style(\"stroke-miterlimit\",1),r.exit().remove(),r.each(function(t,r){var i=e[r?\"increasing\":\"decreasing\"],a=i.line.width,o=n.select(this);o.style(\"stroke-width\",a+\"px\").call(s.fill,i.fillcolor),a&&s.stroke(o,i.line.color)})}).each(function(t){var e=t[0].trace,r=n.select(this).select(\"g.legendpoints\").selectAll(\"path.legendohlc\").data(\"ohlc\"===e.type&&e.visible?[t,t]:[]);r.enter().append(\"path\").classed(\"legendohlc\",!0).attr(\"d\",function(t,e){return e?\"M-15,0H0M-8,-6V0\":\"M15,0H0M8,6V0\"}).attr(\"transform\",\"translate(20,0)\").style(\"stroke-miterlimit\",1),r.exit().remove(),r.each(function(t,r){var i=e[r?\"increasing\":\"decreasing\"],a=i.line.width,l=n.select(this);l.style(\"fill\",\"none\").call(o.dashLine,i.line.dash,a),a&&s.stroke(l,i.line.color)})})}},{\"../../lib\":696,\"../../registry\":827,\"../../traces/pie/style_one\":1029,\"../../traces/scatter/subtypes\":1067,\"../color\":570,\"../drawing\":595,d3:148}],632:[function(t,e,r){\"use strict\";var n=t(\"../../registry\"),i=t(\"../../plots/plots\"),a=t(\"../../plots/cartesian/axis_ids\"),o=t(\"../../lib\"),s=t(\"../../../build/ploticon\"),l=o._,c=e.exports={};function u(t,e){var r,i,o=e.currentTarget,s=o.getAttribute(\"data-attr\"),l=o.getAttribute(\"data-val\")||!0,c=t._fullLayout,u={},f=a.list(t,null,!0),h=\"on\";if(\"zoom\"===s){var p,d=\"in\"===l?.5:2,g=(1+d)/2,v=(1-d)/2;for(i=0;i<f.length;i++)if(!(r=f[i]).fixedrange)if(p=r._name,\"auto\"===l)u[p+\".autorange\"]=!0;else if(\"reset\"===l){if(void 0===r._rangeInitial)u[p+\".autorange\"]=!0;else{var m=r._rangeInitial.slice();u[p+\".range[0]\"]=m[0],u[p+\".range[1]\"]=m[1]}void 0!==r._showSpikeInitial&&(u[p+\".showspikes\"]=r._showSpikeInitial,\"on\"!==h||r._showSpikeInitial||(h=\"off\"))}else{var y=[r.r2l(r.range[0]),r.r2l(r.range[1])],x=[g*y[0]+v*y[1],g*y[1]+v*y[0]];u[p+\".range[0]\"]=r.l2r(x[0]),u[p+\".range[1]\"]=r.l2r(x[1])}c._cartesianSpikesEnabled=h}else{if(\"hovermode\"!==s||\"x\"!==l&&\"y\"!==l){if(\"hovermode\"===s&&\"closest\"===l){for(i=0;i<f.length;i++)r=f[i],\"on\"!==h||r.showspikes||(h=\"off\");c._cartesianSpikesEnabled=h}}else l=c._isHoriz?\"y\":\"x\",o.setAttribute(\"data-val\",l);u[s]=l}n.call(\"relayout\",t,u)}function f(t,e){for(var r=e.currentTarget,i=r.getAttribute(\"data-attr\"),a=r.getAttribute(\"data-val\")||!0,o=t._fullLayout._subplots.gl3d,s={},l=i.split(\".\"),c=0;c<o.length;c++)s[o[c]+\".\"+l[1]]=a;var u=\"pan\"===a?a:\"zoom\";s.dragmode=u,n.call(\"relayout\",t,s)}function h(t,e){for(var r=e.currentTarget.getAttribute(\"data-attr\"),i=t._fullLayout,a=i._subplots.gl3d,s={},l=0;l<a.length;l++){var c=a[l],u=c+\".camera\",f=i[c]._scene;\"resetDefault\"===r?s[u]=null:\"resetLastSave\"===r&&(s[u]=o.extendDeep({},f.cameraInitial))}n.call(\"relayout\",t,s)}function p(t,e){var r=e.currentTarget,i=r._previousVal||!1,a=t.layout,s=t._fullLayout,l=s._subplots.gl3d,c=[\"xaxis\",\"yaxis\",\"zaxis\"],u=[\"showspikes\",\"spikesides\",\"spikethickness\",\"spikecolor\"],f={},h={},p={};if(i)p=o.extendDeep(a,i),r._previousVal=null;else{p={\"allaxes.showspikes\":!1};for(var d=0;d<l.length;d++){var g=l[d],v=s[g],m=f[g]={};m.hovermode=v.hovermode,p[g+\".hovermode\"]=!1;for(var y=0;y<3;y++){var x=c[y];h=m[x]={};for(var b=0;b<u.length;b++){var _=u[b];h[_]=v[x][_]}}}r._previousVal=o.extendDeep({},f)}n.call(\"relayout\",t,p)}function d(t,e){for(var r=e.currentTarget,i=r.getAttribute(\"data-attr\"),a=r.getAttribute(\"data-val\")||!0,o=t._fullLayout,s=o._subplots.geo,l=0;l<s.length;l++){var c=s[l],u=o[c];if(\"zoom\"===i){var f=u.projection.scale,h=\"in\"===a?2*f:.5*f;n.call(\"relayout\",t,c+\".projection.scale\",h)}else\"reset\"===i&&v(t,\"geo\")}}function g(t){var e,r=t._fullLayout;e=r._has(\"cartesian\")?r._isHoriz?\"y\":\"x\":\"closest\";var i=!t._fullLayout.hovermode&&e;n.call(\"relayout\",t,\"hovermode\",i)}function v(t,e){for(var r=t._fullLayout,i=r._subplots[e],a={},o=0;o<i.length;o++)for(var s=i[o],l=r[s]._subplot.viewInitial,c=Object.keys(l),u=0;u<c.length;u++){var f=c[u];a[s+\".\"+f]=l[f]}n.call(\"relayout\",t,a)}c.toImage={name:\"toImage\",title:function(t){var e=(t._context.toImageButtonOptions||{}).format||\"png\";return l(t,\"png\"===e?\"Download plot as a png\":\"Download plot\")},icon:s.camera,click:function(t){var e=t._context.toImageButtonOptions,r={format:e.format||\"png\"};o.notifier(l(t,\"Taking snapshot - this may take a few seconds\"),\"long\"),\"svg\"!==r.format&&o.isIE()&&(o.notifier(l(t,\"IE only supports svg. Changing format to svg.\"),\"long\"),r.format=\"svg\"),[\"filename\",\"width\",\"height\",\"scale\"].forEach(function(t){e[t]&&(r[t]=e[t])}),n.call(\"downloadImage\",t,r).then(function(e){o.notifier(l(t,\"Snapshot succeeded\")+\" - \"+e,\"long\")}).catch(function(){o.notifier(l(t,\"Sorry, there was a problem downloading your snapshot!\"),\"long\")})}},c.sendDataToCloud={name:\"sendDataToCloud\",title:function(t){return l(t,\"Edit in Chart Studio\")},icon:s.disk,click:function(t){i.sendDataToCloud(t)}},c.zoom2d={name:\"zoom2d\",title:function(t){return l(t,\"Zoom\")},attr:\"dragmode\",val:\"zoom\",icon:s.zoombox,click:u},c.pan2d={name:\"pan2d\",title:function(t){return l(t,\"Pan\")},attr:\"dragmode\",val:\"pan\",icon:s.pan,click:u},c.select2d={name:\"select2d\",title:function(t){return l(t,\"Box Select\")},attr:\"dragmode\",val:\"select\",icon:s.selectbox,click:u},c.lasso2d={name:\"lasso2d\",title:function(t){return l(t,\"Lasso Select\")},attr:\"dragmode\",val:\"lasso\",icon:s.lasso,click:u},c.zoomIn2d={name:\"zoomIn2d\",title:function(t){return l(t,\"Zoom in\")},attr:\"zoom\",val:\"in\",icon:s.zoom_plus,click:u},c.zoomOut2d={name:\"zoomOut2d\",title:function(t){return l(t,\"Zoom out\")},attr:\"zoom\",val:\"out\",icon:s.zoom_minus,click:u},c.autoScale2d={name:\"autoScale2d\",title:function(t){return l(t,\"Autoscale\")},attr:\"zoom\",val:\"auto\",icon:s.autoscale,click:u},c.resetScale2d={name:\"resetScale2d\",title:function(t){return l(t,\"Reset axes\")},attr:\"zoom\",val:\"reset\",icon:s.home,click:u},c.hoverClosestCartesian={name:\"hoverClosestCartesian\",title:function(t){return l(t,\"Show closest data on hover\")},attr:\"hovermode\",val:\"closest\",icon:s.tooltip_basic,gravity:\"ne\",click:u},c.hoverCompareCartesian={name:\"hoverCompareCartesian\",title:function(t){return l(t,\"Compare data on hover\")},attr:\"hovermode\",val:function(t){return t._fullLayout._isHoriz?\"y\":\"x\"},icon:s.tooltip_compare,gravity:\"ne\",click:u},c.zoom3d={name:\"zoom3d\",title:function(t){return l(t,\"Zoom\")},attr:\"scene.dragmode\",val:\"zoom\",icon:s.zoombox,click:f},c.pan3d={name:\"pan3d\",title:function(t){return l(t,\"Pan\")},attr:\"scene.dragmode\",val:\"pan\",icon:s.pan,click:f},c.orbitRotation={name:\"orbitRotation\",title:function(t){return l(t,\"Orbital rotation\")},attr:\"scene.dragmode\",val:\"orbit\",icon:s[\"3d_rotate\"],click:f},c.tableRotation={name:\"tableRotation\",title:function(t){return l(t,\"Turntable rotation\")},attr:\"scene.dragmode\",val:\"turntable\",icon:s[\"z-axis\"],click:f},c.resetCameraDefault3d={name:\"resetCameraDefault3d\",title:function(t){return l(t,\"Reset camera to default\")},attr:\"resetDefault\",icon:s.home,click:h},c.resetCameraLastSave3d={name:\"resetCameraLastSave3d\",title:function(t){return l(t,\"Reset camera to last save\")},attr:\"resetLastSave\",icon:s.movie,click:h},c.hoverClosest3d={name:\"hoverClosest3d\",title:function(t){return l(t,\"Toggle show closest data on hover\")},attr:\"hovermode\",val:null,toggle:!0,icon:s.tooltip_basic,gravity:\"ne\",click:p},c.zoomInGeo={name:\"zoomInGeo\",title:function(t){return l(t,\"Zoom in\")},attr:\"zoom\",val:\"in\",icon:s.zoom_plus,click:d},c.zoomOutGeo={name:\"zoomOutGeo\",title:function(t){return l(t,\"Zoom out\")},attr:\"zoom\",val:\"out\",icon:s.zoom_minus,click:d},c.resetGeo={name:\"resetGeo\",title:function(t){return l(t,\"Reset\")},attr:\"reset\",val:null,icon:s.autoscale,click:d},c.hoverClosestGeo={name:\"hoverClosestGeo\",title:function(t){return l(t,\"Toggle show closest data on hover\")},attr:\"hovermode\",val:null,toggle:!0,icon:s.tooltip_basic,gravity:\"ne\",click:g},c.hoverClosestGl2d={name:\"hoverClosestGl2d\",title:function(t){return l(t,\"Toggle show closest data on hover\")},attr:\"hovermode\",val:null,toggle:!0,icon:s.tooltip_basic,gravity:\"ne\",click:g},c.hoverClosestPie={name:\"hoverClosestPie\",title:function(t){return l(t,\"Toggle show closest data on hover\")},attr:\"hovermode\",val:\"closest\",icon:s.tooltip_basic,gravity:\"ne\",click:g},c.toggleHover={name:\"toggleHover\",title:function(t){return l(t,\"Toggle show closest data on hover\")},attr:\"hovermode\",val:null,toggle:!0,icon:s.tooltip_basic,gravity:\"ne\",click:function(t,e){g(t),p(t,e)}},c.resetViews={name:\"resetViews\",title:function(t){return l(t,\"Reset views\")},icon:s.home,click:function(t,e){var r=e.currentTarget;r.setAttribute(\"data-attr\",\"zoom\"),r.setAttribute(\"data-val\",\"reset\"),u(t,e),r.setAttribute(\"data-attr\",\"resetLastSave\"),h(t,e),v(t,\"geo\"),v(t,\"mapbox\")}},c.toggleSpikelines={name:\"toggleSpikelines\",title:function(t){return l(t,\"Toggle Spike Lines\")},icon:s.spikeline,attr:\"_cartesianSpikesEnabled\",val:\"on\",click:function(t){var e=t._fullLayout;e._cartesianSpikesEnabled=\"on\"===e._cartesianSpikesEnabled?\"off\":\"on\";var r=function(t){for(var e,r,n=t._fullLayout,i=a.list(t,null,!0),o={},s=0;s<i.length;s++)e=i[s],r=e._name,o[r+\".showspikes\"]=\"on\"===n._cartesianSpikesEnabled||e._showSpikeInitial;return o}(t);n.call(\"relayout\",t,r)}},c.resetViewMapbox={name:\"resetViewMapbox\",title:function(t){return l(t,\"Reset view\")},attr:\"reset\",icon:s.home,click:function(t){v(t,\"mapbox\")}}},{\"../../../build/ploticon\":2,\"../../lib\":696,\"../../plots/cartesian/axis_ids\":747,\"../../plots/plots\":808,\"../../registry\":827}],633:[function(t,e,r){\"use strict\";r.manage=t(\"./manage\")},{\"./manage\":634}],634:[function(t,e,r){\"use strict\";var n=t(\"../../plots/cartesian/axis_ids\"),i=t(\"../../traces/scatter/subtypes\"),a=t(\"../../registry\"),o=t(\"./modebar\"),s=t(\"./buttons\");e.exports=function(t){var e=t._fullLayout,r=t._context,l=e._modeBar;if(r.displayModeBar){if(!Array.isArray(r.modeBarButtonsToRemove))throw new Error([\"*modeBarButtonsToRemove* configuration options\",\"must be an array.\"].join(\" \"));if(!Array.isArray(r.modeBarButtonsToAdd))throw new Error([\"*modeBarButtonsToAdd* configuration options\",\"must be an array.\"].join(\" \"));var c,u=r.modeBarButtons;c=Array.isArray(u)&&u.length?function(t){for(var e=0;e<t.length;e++)for(var r=t[e],n=0;n<r.length;n++){var i=r[n];if(\"string\"==typeof i){if(void 0===s[i])throw new Error([\"*modeBarButtons* configuration options\",\"invalid button name\"].join(\" \"));t[e][n]=s[i]}}return t}(u):function(t,e,r){var o=t._fullLayout,l=t._fullData,c=o._has(\"cartesian\"),u=o._has(\"gl3d\"),f=o._has(\"geo\"),h=o._has(\"pie\"),p=o._has(\"gl2d\"),d=o._has(\"ternary\"),g=o._has(\"mapbox\"),v=o._has(\"polar\"),m=function(t){for(var e=n.list({_fullLayout:t},null,!0),r=0;r<e.length;r++)if(!e[r].fixedrange)return!1;return!0}(o),y=[];function x(t){if(t.length){for(var r=[],n=0;n<t.length;n++){var i=t[n];-1===e.indexOf(i)&&r.push(s[i])}y.push(r)}}x([\"toImage\",\"sendDataToCloud\"]);var b=[],_=[],w=[],k=[];(c||p||h||d)+f+u+g+v>1?(_=[\"toggleHover\"],w=[\"resetViews\"]):f?(b=[\"zoomInGeo\",\"zoomOutGeo\"],_=[\"hoverClosestGeo\"],w=[\"resetGeo\"]):u?(_=[\"hoverClosest3d\"],w=[\"resetCameraDefault3d\",\"resetCameraLastSave3d\"]):g?(_=[\"toggleHover\"],w=[\"resetViewMapbox\"]):_=p?[\"hoverClosestGl2d\"]:h?[\"hoverClosestPie\"]:[\"toggleHover\"];c&&(_=[\"toggleSpikelines\",\"hoverClosestCartesian\",\"hoverCompareCartesian\"]);!c&&!p||m||(b=[\"zoomIn2d\",\"zoomOut2d\",\"autoScale2d\"],\"resetViews\"!==w[0]&&(w=[\"resetScale2d\"]));u?k=[\"zoom3d\",\"pan3d\",\"orbitRotation\",\"tableRotation\"]:(c||p)&&!m||d?k=[\"zoom2d\",\"pan2d\"]:g||f?k=[\"pan2d\"]:v&&(k=[\"zoom2d\"]);(function(t){for(var e=!1,r=0;r<t.length&&!e;r++){var n=t[r];n._module&&n._module.selectPoints&&(a.traceIs(n,\"scatter-like\")?(i.hasMarkers(n)||i.hasText(n))&&(e=!0):a.traceIs(n,\"box-violin\")&&\"all\"!==n.boxpoints&&\"all\"!==n.points||(e=!0))}return e})(l)&&k.push(\"select2d\",\"lasso2d\");return x(k),x(b.concat(w)),x(_),function(t,e){if(e.length)if(Array.isArray(e[0]))for(var r=0;r<e.length;r++)t.push(e[r]);else t.push(e);return t}(y,r)}(t,r.modeBarButtonsToRemove,r.modeBarButtonsToAdd),l?l.update(t,c):e._modeBar=o(t,c)}else l&&(l.destroy(),delete e._modeBar)}},{\"../../plots/cartesian/axis_ids\":747,\"../../registry\":827,\"../../traces/scatter/subtypes\":1067,\"./buttons\":632,\"./modebar\":635}],635:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"fast-isnumeric\"),a=t(\"../../lib\"),o=t(\"../../../build/ploticon\"),s=new DOMParser;function l(t){this.container=t.container,this.element=document.createElement(\"div\"),this.update(t.graphInfo,t.buttons),this.container.appendChild(this.element)}var c=l.prototype;c.update=function(t,e){this.graphInfo=t;var r=this.graphInfo._context,n=this.graphInfo._fullLayout,i=\"modebar-\"+n._uid;this.element.setAttribute(\"id\",i),this._uid=i,\"hover\"===r.displayModeBar?this.element.className=\"modebar modebar--hover\":this.element.className=\"modebar\",\"v\"===n.modebar.orientation&&(this.element.className+=\" vertical\",e=e.reverse()),a.deleteRelatedStyleRule(i),a.addRelatedStyleRule(i,\"#\"+i,\"background-color: \"+n.modebar.bgcolor),a.addRelatedStyleRule(i,\"#\"+i+\" .modebar-btn .icon path\",\"fill: \"+n.modebar.color),a.addRelatedStyleRule(i,\"#\"+i+\" .modebar-btn:hover .icon path\",\"fill: \"+n.modebar.activecolor),a.addRelatedStyleRule(i,\"#\"+i+\" .modebar-btn.active .icon path\",\"fill: \"+n.modebar.activecolor);var o=!this.hasButtons(e),s=this.hasLogo!==r.displaylogo,l=this.locale!==r.locale;this.locale=r.locale,(o||s||l)&&(this.removeAllButtons(),this.updateButtons(e),r.displaylogo&&(\"v\"===n.modebar.orientation?this.element.prepend(this.getLogo()):this.element.appendChild(this.getLogo()),this.hasLogo=!0)),this.updateActiveButton()},c.updateButtons=function(t){var e=this;this.buttons=t,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(t){var r=e.createGroup();t.forEach(function(t){var n=t.name;if(!n)throw new Error(\"must provide button 'name' in button config\");if(-1!==e.buttonsNames.indexOf(n))throw new Error(\"button name '\"+n+\"' is taken\");e.buttonsNames.push(n);var i=e.createButton(t);e.buttonElements.push(i),r.appendChild(i)}),e.element.appendChild(r)})},c.createGroup=function(){var t=document.createElement(\"div\");return t.className=\"modebar-group\",t},c.createButton=function(t){var e=this,r=document.createElement(\"a\");r.setAttribute(\"rel\",\"tooltip\"),r.className=\"modebar-btn\";var i=t.title;void 0===i?i=t.name:\"function\"==typeof i&&(i=i(this.graphInfo)),(i||0===i)&&r.setAttribute(\"data-title\",i),void 0!==t.attr&&r.setAttribute(\"data-attr\",t.attr);var a=t.val;if(void 0!==a&&(\"function\"==typeof a&&(a=a(this.graphInfo)),r.setAttribute(\"data-val\",a)),\"function\"!=typeof t.click)throw new Error(\"must provide button 'click' function in button config\");r.addEventListener(\"click\",function(r){t.click(e.graphInfo,r),e.updateActiveButton(r.currentTarget)}),r.setAttribute(\"data-toggle\",t.toggle||!1),t.toggle&&n.select(r).classed(\"active\",!0);var s=t.icon;return\"function\"==typeof s?r.appendChild(s()):r.appendChild(this.createIcon(s||o.question)),r.setAttribute(\"data-gravity\",t.gravity||\"n\"),r},c.createIcon=function(t){var e,r=i(t.height)?Number(t.height):t.ascent-t.descent,n=\"http://www.w3.org/2000/svg\";if(t.path){(e=document.createElementNS(n,\"svg\")).setAttribute(\"viewBox\",[0,0,t.width,r].join(\" \")),e.setAttribute(\"class\",\"icon\");var a=document.createElementNS(n,\"path\");a.setAttribute(\"d\",t.path),t.transform?a.setAttribute(\"transform\",t.transform):void 0!==t.ascent&&a.setAttribute(\"transform\",\"matrix(1 0 0 -1 0 \"+t.ascent+\")\"),e.appendChild(a)}t.svg&&(e=s.parseFromString(t.svg,\"application/xml\").childNodes[0]);return e.setAttribute(\"height\",\"1em\"),e.setAttribute(\"width\",\"1em\"),e},c.updateActiveButton=function(t){var e=this.graphInfo._fullLayout,r=void 0!==t?t.getAttribute(\"data-attr\"):null;this.buttonElements.forEach(function(t){var i=t.getAttribute(\"data-val\")||!0,o=t.getAttribute(\"data-attr\"),s=\"true\"===t.getAttribute(\"data-toggle\"),l=n.select(t);if(s)o===r&&l.classed(\"active\",!l.classed(\"active\"));else{var c=null===o?o:a.nestedProperty(e,o).get();l.classed(\"active\",c===i)}})},c.hasButtons=function(t){var e=this.buttons;if(!e)return!1;if(t.length!==e.length)return!1;for(var r=0;r<t.length;++r){if(t[r].length!==e[r].length)return!1;for(var n=0;n<t[r].length;n++)if(t[r][n].name!==e[r][n].name)return!1}return!0},c.getLogo=function(){var t=this.createGroup(),e=document.createElement(\"a\");return e.href=\"https://plot.ly/\",e.target=\"_blank\",e.setAttribute(\"data-title\",a._(this.graphInfo,\"Produced with Plotly\")),e.className=\"modebar-btn plotlyjsicon modebar-btn--logo\",e.appendChild(this.createIcon(o.newplotlylogo)),t.appendChild(e),t},c.removeAllButtons=function(){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.hasLogo=!1},c.destroy=function(){a.removeElement(this.container.querySelector(\".modebar\")),a.deleteRelatedStyleRule(this._uid)},e.exports=function(t,e){var r=t._fullLayout,i=new l({graphInfo:t,container:r._paperdiv.node(),buttons:e});return r._privateplot&&n.select(i.element).append(\"span\").classed(\"badge-private float--left\",!0).text(\"PRIVATE\"),i}},{\"../../../build/ploticon\":2,\"../../lib\":696,d3:148,\"fast-isnumeric\":214}],636:[function(t,e,r){\"use strict\";var n=t(\"../../plots/font_attributes\"),i=t(\"../color/attributes\"),a=(0,t(\"../../plot_api/plot_template\").templatedArray)(\"button\",{visible:{valType:\"boolean\",dflt:!0,editType:\"plot\"},step:{valType:\"enumerated\",values:[\"month\",\"year\",\"day\",\"hour\",\"minute\",\"second\",\"all\"],dflt:\"month\",editType:\"plot\"},stepmode:{valType:\"enumerated\",values:[\"backward\",\"todate\"],dflt:\"backward\",editType:\"plot\"},count:{valType:\"number\",min:0,dflt:1,editType:\"plot\"},label:{valType:\"string\",editType:\"plot\"},editType:\"plot\"});e.exports={visible:{valType:\"boolean\",editType:\"plot\"},buttons:a,x:{valType:\"number\",min:-2,max:3,editType:\"plot\"},xanchor:{valType:\"enumerated\",values:[\"auto\",\"left\",\"center\",\"right\"],dflt:\"left\",editType:\"plot\"},y:{valType:\"number\",min:-2,max:3,editType:\"plot\"},yanchor:{valType:\"enumerated\",values:[\"auto\",\"top\",\"middle\",\"bottom\"],dflt:\"bottom\",editType:\"plot\"},font:n({editType:\"plot\"}),bgcolor:{valType:\"color\",dflt:i.lightLine,editType:\"plot\"},activecolor:{valType:\"color\",editType:\"plot\"},bordercolor:{valType:\"color\",dflt:i.defaultLine,editType:\"plot\"},borderwidth:{valType:\"number\",min:0,dflt:0,editType:\"plot\"},editType:\"plot\"}},{\"../../plot_api/plot_template\":734,\"../../plots/font_attributes\":771,\"../color/attributes\":569}],637:[function(t,e,r){\"use strict\";e.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}},{}],638:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../color\"),a=t(\"../../plot_api/plot_template\"),o=t(\"../../plots/array_container_defaults\"),s=t(\"./attributes\"),l=t(\"./constants\");function c(t,e,r,i){var a=i.calendar;function o(r,i){return n.coerce(t,e,s.buttons,r,i)}if(o(\"visible\")){var l=o(\"step\");\"all\"!==l&&(!a||\"gregorian\"===a||\"month\"!==l&&\"year\"!==l?o(\"stepmode\"):e.stepmode=\"backward\",o(\"count\")),o(\"label\")}}e.exports=function(t,e,r,u,f){var h=t.rangeselector||{},p=a.newContainer(e,\"rangeselector\");function d(t,e){return n.coerce(h,p,s,t,e)}if(d(\"visible\",o(h,p,{name:\"buttons\",handleItemDefaults:c,calendar:f}).length>0)){var g=function(t,e,r){for(var n=r.filter(function(r){return e[r].anchor===t._id}),i=0,a=0;a<n.length;a++){var o=e[n[a]].domain;o&&(i=Math.max(o[1],i))}return[t.domain[0],i+l.yPad]}(e,r,u);d(\"x\",g[0]),d(\"y\",g[1]),n.noneOrAll(t,e,[\"x\",\"y\"]),d(\"xanchor\"),d(\"yanchor\"),n.coerceFont(d,\"font\",r.font);var v=d(\"bgcolor\");d(\"activecolor\",i.contrast(v,l.lightAmount,l.darkAmount)),d(\"bordercolor\"),d(\"borderwidth\")}}},{\"../../lib\":696,\"../../plot_api/plot_template\":734,\"../../plots/array_container_defaults\":740,\"../color\":570,\"./attributes\":636,\"./constants\":637}],639:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../../registry\"),a=t(\"../../plots/plots\"),o=t(\"../color\"),s=t(\"../drawing\"),l=t(\"../../lib\"),c=t(\"../../lib/svg_text_utils\"),u=t(\"../../plots/cartesian/axis_ids\"),f=t(\"../legend/anchor_utils\"),h=t(\"../../constants/alignment\"),p=h.LINE_SPACING,d=h.FROM_TL,g=h.FROM_BR,v=t(\"./constants\"),m=t(\"./get_update_object\");function y(t){return t._id}function x(t,e,r){var n=l.ensureSingle(t,\"rect\",\"selector-rect\",function(t){t.attr(\"shape-rendering\",\"crispEdges\")});n.attr({rx:v.rx,ry:v.ry}),n.call(o.stroke,e.bordercolor).call(o.fill,function(t,e){return e._isActive||e._isHovered?t.activecolor:t.bgcolor}(e,r)).style(\"stroke-width\",e.borderwidth+\"px\")}function b(t,e,r,n){var i;l.ensureSingle(t,\"text\",\"selector-text\",function(t){t.classed(\"user-select-none\",!0).attr(\"text-anchor\",\"middle\")}).call(s.font,e.font).text((i=r,i.label?i.label:\"all\"===i.step?\"all\":i.count+i.step.charAt(0))).call(function(t){c.convertToTspans(t,n)})}e.exports=function(t){var e=t._fullLayout._infolayer.selectAll(\".rangeselector\").data(function(t){for(var e=u.list(t,\"x\",!0),r=[],n=0;n<e.length;n++){var i=e[n];i.rangeselector&&i.rangeselector.visible&&r.push(i)}return r}(t),y);e.enter().append(\"g\").classed(\"rangeselector\",!0),e.exit().remove(),e.style({cursor:\"pointer\",\"pointer-events\":\"all\"}),e.each(function(e){var r=n.select(this),o=e,u=o.rangeselector,h=r.selectAll(\"g.button\").data(l.filterVisible(u.buttons));h.enter().append(\"g\").classed(\"button\",!0),h.exit().remove(),h.each(function(e){var r=n.select(this),a=m(o,e);e._isActive=function(t,e,r){if(\"all\"===e.step)return!0===t.autorange;var n=Object.keys(r);return t.range[0]===r[n[0]]&&t.range[1]===r[n[1]]}(o,e,a),r.call(x,u,e),r.call(b,u,e,t),r.on(\"click\",function(){t._dragged||i.call(\"relayout\",t,a)}),r.on(\"mouseover\",function(){e._isHovered=!0,r.call(x,u,e)}),r.on(\"mouseout\",function(){e._isHovered=!1,r.call(x,u,e)})}),function(t,e,r,i,o){var l=0,u=0,h=r.borderwidth;e.each(function(){var t=n.select(this),e=t.select(\".selector-text\"),i=r.font.size*p,a=Math.max(i*c.lineCount(e),16)+3;u=Math.max(u,a)}),e.each(function(){var t=n.select(this),e=t.select(\".selector-rect\"),i=t.select(\".selector-text\"),a=i.node()&&s.bBox(i.node()).width,o=r.font.size*p,f=c.lineCount(i),d=Math.max(a+10,v.minButtonWidth);t.attr(\"transform\",\"translate(\"+(h+l)+\",\"+h+\")\"),e.attr({x:0,y:0,width:d,height:u}),c.positionText(i,d/2,u/2-(f-1)*o/2+3),l+=d+5});var m=t._fullLayout._size,y=m.l+m.w*r.x,x=m.t+m.h*(1-r.y),b=\"left\";f.isRightAnchor(r)&&(y-=l,b=\"right\");f.isCenterAnchor(r)&&(y-=l/2,b=\"center\");var _=\"top\";f.isBottomAnchor(r)&&(x-=u,_=\"bottom\");f.isMiddleAnchor(r)&&(x-=u/2,_=\"middle\");l=Math.ceil(l),u=Math.ceil(u),y=Math.round(y),x=Math.round(x),a.autoMargin(t,i+\"-range-selector\",{x:r.x,y:r.y,l:l*d[b],r:l*g[b],b:u*g[_],t:u*d[_]}),o.attr(\"transform\",\"translate(\"+y+\",\"+x+\")\")}(t,h,u,o._name,r)})}},{\"../../constants/alignment\":668,\"../../lib\":696,\"../../lib/svg_text_utils\":720,\"../../plots/cartesian/axis_ids\":747,\"../../plots/plots\":808,\"../../registry\":827,\"../color\":570,\"../drawing\":595,\"../legend/anchor_utils\":622,\"./constants\":637,\"./get_update_object\":640,d3:148}],640:[function(t,e,r){\"use strict\";var n=t(\"d3\");e.exports=function(t,e){var r=t._name,i={};if(\"all\"===e.step)i[r+\".autorange\"]=!0;else{var a=function(t,e){var r,i=t.range,a=new Date(t.r2l(i[1])),o=e.step,s=e.count;switch(e.stepmode){case\"backward\":r=t.l2r(+n.time[o].utc.offset(a,-s));break;case\"todate\":var l=n.time[o].utc.offset(a,-s);r=t.l2r(+n.time[o].utc.ceil(l))}var c=i[1];return[r,c]}(t,e);i[r+\".range[0]\"]=a[0],i[r+\".range[1]\"]=a[1]}return i}},{d3:148}],641:[function(t,e,r){\"use strict\";e.exports={moduleType:\"component\",name:\"rangeselector\",schema:{subplots:{xaxis:{rangeselector:t(\"./attributes\")}}},layoutAttributes:t(\"./attributes\"),handleDefaults:t(\"./defaults\"),draw:t(\"./draw\")}},{\"./attributes\":636,\"./defaults\":638,\"./draw\":639}],642:[function(t,e,r){\"use strict\";var n=t(\"../color/attributes\");e.exports={bgcolor:{valType:\"color\",dflt:n.background,editType:\"plot\"},bordercolor:{valType:\"color\",dflt:n.defaultLine,editType:\"plot\"},borderwidth:{valType:\"integer\",dflt:0,min:0,editType:\"plot\"},autorange:{valType:\"boolean\",dflt:!0,editType:\"calc\",impliedEdits:{\"range[0]\":void 0,\"range[1]\":void 0}},range:{valType:\"info_array\",items:[{valType:\"any\",editType:\"calc\",impliedEdits:{\"^autorange\":!1}},{valType:\"any\",editType:\"calc\",impliedEdits:{\"^autorange\":!1}}],editType:\"calc\",impliedEdits:{autorange:!1}},thickness:{valType:\"number\",dflt:.15,min:0,max:1,editType:\"plot\"},visible:{valType:\"boolean\",dflt:!0,editType:\"calc\"},editType:\"calc\"}},{\"../color/attributes\":569}],643:[function(t,e,r){\"use strict\";var n=t(\"../../plots/cartesian/axis_ids\").list,i=t(\"../../plots/cartesian/autorange\").getAutoRange,a=t(\"./constants\");e.exports=function(t){for(var e=n(t,\"x\",!0),r=0;r<e.length;r++){var o=e[r],s=o[a.name];s&&s.visible&&s.autorange&&(s._input.autorange=!0,s._input.range=s.range=i(t,o))}}},{\"../../plots/cartesian/autorange\":743,\"../../plots/cartesian/axis_ids\":747,\"./constants\":644}],644:[function(t,e,r){\"use strict\";e.exports={name:\"rangeslider\",containerClassName:\"rangeslider-container\",bgClassName:\"rangeslider-bg\",rangePlotClassName:\"rangeslider-rangeplot\",maskMinClassName:\"rangeslider-mask-min\",maskMaxClassName:\"rangeslider-mask-max\",slideBoxClassName:\"rangeslider-slidebox\",grabberMinClassName:\"rangeslider-grabber-min\",grabAreaMinClassName:\"rangeslider-grabarea-min\",handleMinClassName:\"rangeslider-handle-min\",grabberMaxClassName:\"rangeslider-grabber-max\",grabAreaMaxClassName:\"rangeslider-grabarea-max\",handleMaxClassName:\"rangeslider-handle-max\",maskMinOppAxisClassName:\"rangeslider-mask-min-opp-axis\",maskMaxOppAxisClassName:\"rangeslider-mask-max-opp-axis\",maskColor:\"rgba(0,0,0,0.4)\",maskOppAxisColor:\"rgba(0,0,0,0.2)\",slideBoxFill:\"transparent\",slideBoxCursor:\"ew-resize\",grabAreaFill:\"transparent\",grabAreaCursor:\"col-resize\",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}},{}],645:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../plot_api/plot_template\"),a=t(\"../../plots/cartesian/axis_ids\"),o=t(\"./attributes\"),s=t(\"./oppaxis_attributes\");e.exports=function(t,e,r){var l=t[r],c=e[r];if(l.rangeslider||e._requestRangeslider[c._id]){n.isPlainObject(l.rangeslider)||(l.rangeslider={});var u,f,h=l.rangeslider,p=i.newContainer(c,\"rangeslider\");if(_(\"visible\")){_(\"bgcolor\",e.plot_bgcolor),_(\"bordercolor\"),_(\"borderwidth\"),_(\"thickness\"),_(\"autorange\",!c.isValidRange(h.range)),_(\"range\");var d=e._subplots;if(d)for(var g=d.cartesian.filter(function(t){return t.substr(0,t.indexOf(\"y\"))===a.name2id(r)}).map(function(t){return t.substr(t.indexOf(\"y\"),t.length)}),v=n.simpleMap(g,a.id2name),m=0;m<v.length;m++){var y=v[m];u=h[y]||{},f=i.newContainer(p,y,\"yaxis\");var x,b=e[y];u.range&&b.isValidRange(u.range)&&(x=\"fixed\"),\"match\"!==w(\"rangemode\",x)&&w(\"range\",b.range.slice())}p._input=h}}function _(t,e){return n.coerce(h,p,o,t,e)}function w(t,e){return n.coerce(u,f,s,t,e)}}},{\"../../lib\":696,\"../../plot_api/plot_template\":734,\"../../plots/cartesian/axis_ids\":747,\"./attributes\":642,\"./oppaxis_attributes\":648}],646:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../../registry\"),a=t(\"../../plots/plots\"),o=t(\"../../lib\"),s=t(\"../drawing\"),l=t(\"../color\"),c=t(\"../titles\"),u=t(\"../../plots/cartesian\"),f=t(\"../../plots/cartesian/axes\"),h=t(\"../dragelement\"),p=t(\"../../lib/setcursor\"),d=t(\"./constants\");function g(t,e,r,n){var i=o.ensureSingle(t,\"rect\",d.bgClassName,function(t){t.attr({x:0,y:0,\"shape-rendering\":\"crispEdges\"})}),a=n.borderwidth%2==0?n.borderwidth:n.borderwidth-1,l=-n._offsetShift,c=s.crispRound(e,n.borderwidth);i.attr({width:n._width+a,height:n._height+a,transform:\"translate(\"+l+\",\"+l+\")\",fill:n.bgcolor,stroke:n.bordercolor,\"stroke-width\":c})}function v(t,e,r,n){var i=e._fullLayout;o.ensureSingleById(i._topdefs,\"clipPath\",n._clipId,function(t){t.append(\"rect\").attr({x:0,y:0})}).select(\"rect\").attr({width:n._width,height:n._height})}function m(t,e,r,i){var l,c=f.getSubplots(e,r),h=e.calcdata,p=t.selectAll(\"g.\"+d.rangePlotClassName).data(c,o.identity);p.enter().append(\"g\").attr(\"class\",function(t){return d.rangePlotClassName+\" \"+t}).call(s.setClipUrl,i._clipId),p.order(),p.exit().remove(),p.each(function(t,o){var s=n.select(this),c=0===o,p=f.getFromId(e,t,\"y\"),d=p._name,g=i[d],v={data:[],layout:{xaxis:{type:r.type,domain:[0,1],range:i.range.slice(),calendar:r.calendar},width:i._width,height:i._height,margin:{t:0,b:0,l:0,r:0}},_context:e._context};v.layout[d]={type:p.type,domain:[0,1],range:\"match\"!==g.rangemode?g.range.slice():p.range.slice(),calendar:p.calendar},a.supplyDefaults(v);var m={id:t,plotgroup:s,xaxis:v._fullLayout.xaxis,yaxis:v._fullLayout[d],isRangePlot:!0};c?l=m:(m.mainplot=\"xy\",m.mainplotinfo=l),u.rangePlot(e,m,function(t,e){for(var r=[],n=0;n<t.length;n++){var i=t[n],a=i[0].trace;a.xaxis+a.yaxis===e&&r.push(i)}return r}(h,t))})}function y(t,e,r,n,i){(o.ensureSingle(t,\"rect\",d.maskMinClassName,function(t){t.attr({x:0,y:0,\"shape-rendering\":\"crispEdges\"})}).attr(\"height\",n._height).call(l.fill,d.maskColor),o.ensureSingle(t,\"rect\",d.maskMaxClassName,function(t){t.attr({y:0,\"shape-rendering\":\"crispEdges\"})}).attr(\"height\",n._height).call(l.fill,d.maskColor),\"match\"!==i.rangemode)&&(o.ensureSingle(t,\"rect\",d.maskMinOppAxisClassName,function(t){t.attr({y:0,\"shape-rendering\":\"crispEdges\"})}).attr(\"width\",n._width).call(l.fill,d.maskOppAxisColor),o.ensureSingle(t,\"rect\",d.maskMaxOppAxisClassName,function(t){t.attr({y:0,\"shape-rendering\":\"crispEdges\"})}).attr(\"width\",n._width).style(\"border-top\",d.maskOppBorder).call(l.fill,d.maskOppAxisColor))}function x(t,e,r,n){e._context.staticPlot||o.ensureSingle(t,\"rect\",d.slideBoxClassName,function(t){t.attr({y:0,cursor:d.slideBoxCursor,\"shape-rendering\":\"crispEdges\"})}).attr({height:n._height,fill:d.slideBoxFill})}function b(t,e,r,n){var i=o.ensureSingle(t,\"g\",d.grabberMinClassName),a=o.ensureSingle(t,\"g\",d.grabberMaxClassName),s={x:0,width:d.handleWidth,rx:d.handleRadius,fill:l.background,stroke:l.defaultLine,\"stroke-width\":d.handleStrokeWidth,\"shape-rendering\":\"crispEdges\"},c={y:Math.round(n._height/4),height:Math.round(n._height/2)};if(o.ensureSingle(i,\"rect\",d.handleMinClassName,function(t){t.attr(s)}).attr(c),o.ensureSingle(a,\"rect\",d.handleMaxClassName,function(t){t.attr(s)}).attr(c),!e._context.staticPlot){var u={width:d.grabAreaWidth,x:0,y:0,fill:d.grabAreaFill,cursor:d.grabAreaCursor};o.ensureSingle(i,\"rect\",d.grabAreaMinClassName,function(t){t.attr(u)}).attr(\"height\",n._height),o.ensureSingle(a,\"rect\",d.grabAreaMaxClassName,function(t){t.attr(u)}).attr(\"height\",n._height)}}e.exports=function(t){var e=t._fullLayout,r=function(t){var e=f.list({_fullLayout:t},\"x\",!0),r=d.name,n=[];if(t._has(\"gl2d\"))return n;for(var i=0;i<e.length;i++){var a=e[i];a[r]&&a[r].visible&&n.push(a)}return n}(e);var s=e._infolayer.selectAll(\"g.\"+d.containerClassName).data(r,function(t){return t._name});s.enter().append(\"g\").classed(d.containerClassName,!0).attr(\"pointer-events\",\"all\"),s.exit().each(function(t){var r=t[d.name];e._topdefs.select(\"#\"+r._clipId).remove()}).remove(),0!==r.length&&s.each(function(r){var s=n.select(this),l=r[d.name],u=e[f.id2name(r.anchor)],_=l[f.id2name(r.anchor)];if(l.range){var w=l.range,k=r.range;w[0]=r.l2r(Math.min(r.r2l(w[0]),r.r2l(k[0]))),w[1]=r.l2r(Math.max(r.r2l(w[1]),r.r2l(k[1]))),l._input.range=w.slice()}r.cleanRange(\"rangeslider.range\");for(var M=e.margin,A=e._size,T=r.domain,S=(r._boundingBox||{}).height||0,E=1/0,C=f.getSubplots(t,r),L=0;L<C.length;L++){var z=f.getFromId(t,C[L].substr(C[L].indexOf(\"y\")));E=Math.min(E,z.domain[0])}l._id=d.name+r._id,l._clipId=l._id+\"-\"+e._uid,l._width=A.w*(T[1]-T[0]),l._height=(e.height-M.b-M.t)*l.thickness,l._offsetShift=Math.floor(l.borderwidth/2);var O=Math.round(M.l+A.w*T[0]),I=Math.round(A.t+A.h*(1-E)+S+l._offsetShift+d.extraPad);s.attr(\"transform\",\"translate(\"+O+\",\"+I+\")\");var P=r.r2l(l.range[0]),D=r.r2l(l.range[1]),R=D-P;if(l.p2d=function(t){return t/l._width*R+P},l.d2p=function(t){return(t-P)/R*l._width},l._rl=[P,D],\"match\"!==_.rangemode){var B=u.r2l(_.range[0]),F=u.r2l(_.range[1])-B;l.d2pOppAxis=function(t){return(t-B)/F*l._height}}s.call(g,t,r,l).call(v,t,r,l).call(m,t,r,l).call(y,t,r,l,_).call(x,t,r,l).call(b,t,r,l),function(t,e,r,a){var s=t.select(\"rect.\"+d.slideBoxClassName).node(),l=t.select(\"rect.\"+d.grabAreaMinClassName).node(),c=t.select(\"rect.\"+d.grabAreaMaxClassName).node();t.on(\"mousedown\",function(){var u=n.event,f=u.target,d=u.clientX,g=d-t.node().getBoundingClientRect().left,v=a.d2p(r._rl[0]),m=a.d2p(r._rl[1]),y=h.coverSlip();function x(t){var u,h,x,b=+t.clientX-d;switch(f){case s:x=\"ew-resize\",u=v+b,h=m+b;break;case l:x=\"col-resize\",u=v+b,h=m;break;case c:x=\"col-resize\",u=v,h=m+b;break;default:x=\"ew-resize\",u=g,h=g+b}if(h<u){var _=h;h=u,u=_}a._pixelMin=u,a._pixelMax=h,p(n.select(y),x),function(t,e,r,n){function a(t){return r.l2r(o.constrain(t,n._rl[0],n._rl[1]))}var s=a(n.p2d(n._pixelMin)),l=a(n.p2d(n._pixelMax));window.requestAnimationFrame(function(){i.call(\"relayout\",e,r._name+\".range\",[s,l])})}(0,e,r,a)}y.addEventListener(\"mousemove\",x),y.addEventListener(\"mouseup\",function t(){y.removeEventListener(\"mousemove\",x);y.removeEventListener(\"mouseup\",t);o.removeElement(y)})})}(s,t,r,l),function(t,e,r,n,i,a){var s=d.handleWidth/2;function l(t){return o.constrain(t,0,n._width)}function c(t){return o.constrain(t,0,n._height)}function u(t){return o.constrain(t,-s,n._width+s)}var f=l(n.d2p(r._rl[0])),h=l(n.d2p(r._rl[1]));if(t.select(\"rect.\"+d.slideBoxClassName).attr(\"x\",f).attr(\"width\",h-f),t.select(\"rect.\"+d.maskMinClassName).attr(\"width\",f),t.select(\"rect.\"+d.maskMaxClassName).attr(\"x\",h).attr(\"width\",n._width-h),\"match\"!==a.rangemode){var p=n._height-c(n.d2pOppAxis(i._rl[1])),g=n._height-c(n.d2pOppAxis(i._rl[0]));t.select(\"rect.\"+d.maskMinOppAxisClassName).attr(\"x\",f).attr(\"height\",p).attr(\"width\",h-f),t.select(\"rect.\"+d.maskMaxOppAxisClassName).attr(\"x\",f).attr(\"y\",g).attr(\"height\",n._height-g).attr(\"width\",h-f),t.select(\"rect.\"+d.slideBoxClassName).attr(\"y\",p).attr(\"height\",g-p)}var v=Math.round(u(f-s))-.5,m=Math.round(u(h-s))+.5;t.select(\"g.\"+d.grabberMinClassName).attr(\"transform\",\"translate(\"+v+\",0.5)\"),t.select(\"g.\"+d.grabberMaxClassName).attr(\"transform\",\"translate(\"+m+\",0.5)\")}(s,0,r,l,u,_),\"bottom\"===r.side&&c.draw(t,r._id+\"title\",{propContainer:r,propName:r._name+\".title\",placeholder:e._dfltTitle.x,attributes:{x:r._offset+r._length/2,y:I+l._height+l._offsetShift+10+1.5*r.titlefont.size,\"text-anchor\":\"middle\"}}),a.autoMargin(t,l._id,{x:T[0],y:E,l:0,r:0,t:0,b:l._height+M.b+S,pad:d.extraPad+2*l._offsetShift})})}},{\"../../lib\":696,\"../../lib/setcursor\":716,\"../../plots/cartesian\":756,\"../../plots/cartesian/axes\":744,\"../../plots/plots\":808,\"../../registry\":827,\"../color\":570,\"../dragelement\":592,\"../drawing\":595,\"../titles\":661,\"./constants\":644,d3:148}],647:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"./attributes\"),a=t(\"./oppaxis_attributes\");e.exports={moduleType:\"component\",name:\"rangeslider\",schema:{subplots:{xaxis:{rangeslider:n.extendFlat({},i,{yaxis:a})}}},layoutAttributes:t(\"./attributes\"),handleDefaults:t(\"./defaults\"),calcAutorange:t(\"./calc_autorange\"),draw:t(\"./draw\")}},{\"../../lib\":696,\"./attributes\":642,\"./calc_autorange\":643,\"./defaults\":645,\"./draw\":646,\"./oppaxis_attributes\":648}],648:[function(t,e,r){\"use strict\";e.exports={_isSubplotObj:!0,rangemode:{valType:\"enumerated\",values:[\"auto\",\"fixed\",\"match\"],dflt:\"match\",editType:\"calc\"},range:{valType:\"info_array\",items:[{valType:\"any\",editType:\"plot\"},{valType:\"any\",editType:\"plot\"}],editType:\"plot\"},editType:\"calc\"}},{}],649:[function(t,e,r){\"use strict\";var n=t(\"../annotations/attributes\"),i=t(\"../../traces/scatter/attributes\").line,a=t(\"../drawing/attributes\").dash,o=t(\"../../lib/extend\").extendFlat,s=t(\"../../plot_api/plot_template\").templatedArray;e.exports=s(\"shape\",{visible:{valType:\"boolean\",dflt:!0,editType:\"calc+arraydraw\"},type:{valType:\"enumerated\",values:[\"circle\",\"rect\",\"path\",\"line\"],editType:\"calc+arraydraw\"},layer:{valType:\"enumerated\",values:[\"below\",\"above\"],dflt:\"above\",editType:\"arraydraw\"},xref:o({},n.xref,{}),xsizemode:{valType:\"enumerated\",values:[\"scaled\",\"pixel\"],dflt:\"scaled\",editType:\"calc+arraydraw\"},xanchor:{valType:\"any\",editType:\"calc+arraydraw\"},x0:{valType:\"any\",editType:\"calc+arraydraw\"},x1:{valType:\"any\",editType:\"calc+arraydraw\"},yref:o({},n.yref,{}),ysizemode:{valType:\"enumerated\",values:[\"scaled\",\"pixel\"],dflt:\"scaled\",editType:\"calc+arraydraw\"},yanchor:{valType:\"any\",editType:\"calc+arraydraw\"},y0:{valType:\"any\",editType:\"calc+arraydraw\"},y1:{valType:\"any\",editType:\"calc+arraydraw\"},path:{valType:\"string\",editType:\"calc+arraydraw\"},opacity:{valType:\"number\",min:0,max:1,dflt:1,editType:\"arraydraw\"},line:{color:o({},i.color,{editType:\"arraydraw\"}),width:o({},i.width,{editType:\"calc+arraydraw\"}),dash:o({},a,{editType:\"arraydraw\"}),editType:\"calc+arraydraw\"},fillcolor:{valType:\"color\",dflt:\"rgba(0,0,0,0)\",editType:\"arraydraw\"},editType:\"arraydraw\"})},{\"../../lib/extend\":685,\"../../plot_api/plot_template\":734,\"../../traces/scatter/attributes\":1043,\"../annotations/attributes\":553,\"../drawing/attributes\":594}],650:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../plots/cartesian/axes\"),a=t(\"./constants\"),o=t(\"./helpers\");function s(t){return c(t.line.width,t.xsizemode,t.x0,t.x1,t.path,!1)}function l(t){return c(t.line.width,t.ysizemode,t.y0,t.y1,t.path,!0)}function c(t,e,r,i,s,l){var c=t/2,u=l;if(\"pixel\"===e){var f=s?o.extractPathCoords(s,l?a.paramIsY:a.paramIsX):[r,i],h=n.aggNums(Math.max,null,f),p=n.aggNums(Math.min,null,f),d=p<0?Math.abs(p)+c:c,g=h>0?h+c:c;return{ppad:c,ppadplus:u?d:g,ppadminus:u?g:d}}return{ppad:c}}function u(t,e,r,n,i){var s=\"category\"===t.type?t.r2c:t.d2c;if(void 0!==e)return[s(e),s(r)];if(n){var l,c,u,f,h=1/0,p=-1/0,d=n.match(a.segmentRE);for(\"date\"===t.type&&(s=o.decodeDate(s)),l=0;l<d.length;l++)void 0!==(c=i[d[l].charAt(0)].drawn)&&(!(u=d[l].substr(1).match(a.paramRE))||u.length<c||((f=s(u[c]))<h&&(h=f),f>p&&(p=f)));return p>=h?[h,p]:void 0}}e.exports=function(t){var e=t._fullLayout,r=n.filterVisible(e.shapes);if(r.length&&t._fullData.length)for(var o=0;o<r.length;o++){var c,f,h=r[o];if(h._extremes={},\"paper\"!==h.xref){var p=\"pixel\"===h.xsizemode?h.xanchor:h.x0,d=\"pixel\"===h.xsizemode?h.xanchor:h.x1;(f=u(c=i.getFromId(t,h.xref),p,d,h.path,a.paramIsX))&&(h._extremes[c._id]=i.findExtremes(c,f,s(h)))}if(\"paper\"!==h.yref){var g=\"pixel\"===h.ysizemode?h.yanchor:h.y0,v=\"pixel\"===h.ysizemode?h.yanchor:h.y1;(f=u(c=i.getFromId(t,h.yref),g,v,h.path,a.paramIsY))&&(h._extremes[c._id]=i.findExtremes(c,f,l(h)))}}}},{\"../../lib\":696,\"../../plots/cartesian/axes\":744,\"./constants\":651,\"./helpers\":654}],651:[function(t,e,r){\"use strict\";e.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}},{}],652:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../plots/cartesian/axes\"),a=t(\"../../plots/array_container_defaults\"),o=t(\"./attributes\"),s=t(\"./helpers\");function l(t,e,r){function a(r,i){return n.coerce(t,e,o,r,i)}if(a(\"visible\")){a(\"layer\"),a(\"opacity\"),a(\"fillcolor\"),a(\"line.color\"),a(\"line.width\"),a(\"line.dash\");for(var l=a(\"type\",t.path?\"path\":\"rect\"),c=a(\"xsizemode\"),u=a(\"ysizemode\"),f=[\"x\",\"y\"],h=0;h<2;h++){var p,d,g,v=f[h],m=v+\"anchor\",y=\"x\"===v?c:u,x={_fullLayout:r},b=i.coerceRef(t,e,x,v,\"\",\"paper\");if(\"paper\"!==b?((p=i.getFromId(x,b))._shapeIndices.push(e._index),g=s.rangeToShapePosition(p),d=s.shapePositionToRange(p)):d=g=n.identity,\"path\"!==l){var _=v+\"0\",w=v+\"1\",k=t[_],M=t[w];t[_]=d(t[_],!0),t[w]=d(t[w],!0),\"pixel\"===y?(a(_,0),a(w,10)):(i.coercePosition(e,x,a,b,_,.25),i.coercePosition(e,x,a,b,w,.75)),e[_]=g(e[_]),e[w]=g(e[w]),t[_]=k,t[w]=M}if(\"pixel\"===y){var A=t[m];t[m]=d(t[m],!0),i.coercePosition(e,x,a,b,m,.25),e[m]=g(e[m]),t[m]=A}}\"path\"===l?a(\"path\"):n.noneOrAll(t,e,[\"x0\",\"x1\",\"y0\",\"y1\"])}}e.exports=function(t,e){a(t,e,{name:\"shapes\",handleItemDefaults:l})}},{\"../../lib\":696,\"../../plots/array_container_defaults\":740,\"../../plots/cartesian/axes\":744,\"./attributes\":649,\"./helpers\":654}],653:[function(t,e,r){\"use strict\";var n=t(\"../../registry\"),i=t(\"../../lib\"),a=t(\"../../plots/cartesian/axes\"),o=t(\"../color\"),s=t(\"../drawing\"),l=t(\"../../plot_api/plot_template\").arrayEditor,c=t(\"../dragelement\"),u=t(\"../../lib/setcursor\"),f=t(\"./constants\"),h=t(\"./helpers\");function p(t,e){t._fullLayout._paperdiv.selectAll('.shapelayer [data-index=\"'+e+'\"]').remove();var r=t._fullLayout.shapes[e]||{};if(r._input&&!1!==r.visible)if(\"below\"!==r.layer)m(t._fullLayout._shapeUpperLayer);else if(\"paper\"===r.xref||\"paper\"===r.yref)m(t._fullLayout._shapeLowerLayer);else{var p=t._fullLayout._plots[r.xref+r.yref];if(p)m((p.mainplotinfo||p).shapelayer);else m(t._fullLayout._shapeLowerLayer)}function m(p){var m={\"data-index\":e,\"fill-rule\":\"evenodd\",d:g(t,r)},y=r.line.width?r.line.color:\"rgba(0,0,0,0)\",x=p.append(\"path\").attr(m).style(\"opacity\",r.opacity).call(o.stroke,y).call(o.fill,r.fillcolor).call(s.dashLine,r.line.dash,r.line.width);d(x,t,r),t._context.edits.shapePosition&&function(t,e,r,o,p){var m,y,x,b,_,w,k,M,A,T,S,E,C,L,z,O,I=10,P=10,D=\"pixel\"===r.xsizemode,R=\"pixel\"===r.ysizemode,B=\"line\"===r.type,F=\"path\"===r.type,N=l(t.layout,\"shapes\",r),j=N.modifyItem,V=a.getFromId(t,r.xref),U=a.getFromId(t,r.yref),q=h.getDataToPixel(t,V),H=h.getDataToPixel(t,U,!0),G=h.getPixelToData(t,V),W=h.getPixelToData(t,U,!0),Y=B?function(){var t=Math.max(r.line.width,10),n=p.append(\"g\").attr(\"data-index\",o);n.append(\"path\").attr(\"d\",e.attr(\"d\")).style({cursor:\"move\",\"stroke-width\":t,\"stroke-opacity\":\"0\"});var i={\"fill-opacity\":\"0\"},a=t/2>10?t/2:10;return n.append(\"circle\").attr({\"data-line-point\":\"start-point\",cx:D?q(r.xanchor)+r.x0:q(r.x0),cy:R?H(r.yanchor)-r.y0:H(r.y0),r:a}).style(i).classed(\"cursor-grab\",!0),n.append(\"circle\").attr({\"data-line-point\":\"end-point\",cx:D?q(r.xanchor)+r.x1:q(r.x1),cy:R?H(r.yanchor)-r.y1:H(r.y1),r:a}).style(i).classed(\"cursor-grab\",!0),n}():e,X={element:Y.node(),gd:t,prepFn:function(n){D&&(_=q(r.xanchor));R&&(w=H(r.yanchor));\"path\"===r.type?z=r.path:(m=D?r.x0:q(r.x0),y=R?r.y0:H(r.y0),x=D?r.x1:q(r.x1),b=R?r.y1:H(r.y1));m<x?(A=m,C=\"x0\",T=x,L=\"x1\"):(A=x,C=\"x1\",T=m,L=\"x0\");!R&&y<b||R&&y>b?(k=y,S=\"y0\",M=b,E=\"y1\"):(k=b,S=\"y1\",M=y,E=\"y0\");Z(n),K(p,r),function(t,e,r){var n=e.xref,i=e.yref,o=a.getFromId(r,n),l=a.getFromId(r,i),c=\"\";\"paper\"===n||o.autorange||(c+=n);\"paper\"===i||l.autorange||(c+=i);t.call(s.setClipUrl,c?\"clip\"+r._fullLayout._uid+c:null)}(e,r,t),X.moveFn=\"move\"===O?$:J},doneFn:function(){u(e),Q(p),d(e,t,r),n.call(\"relayout\",t,N.getUpdateObj())},clickFn:function(){Q(p)}};function Z(t){if(B)O=\"path\"===t.target.tagName?\"move\":\"start-point\"===t.target.attributes[\"data-line-point\"].value?\"resize-over-start-point\":\"resize-over-end-point\";else{var r=X.element.getBoundingClientRect(),n=r.right-r.left,i=r.bottom-r.top,a=t.clientX-r.left,o=t.clientY-r.top,s=!F&&n>I&&i>P&&!t.shiftKey?c.getCursor(a/n,1-o/i):\"move\";u(e,s),O=s.split(\"-\")[0]}}function $(n,i){if(\"path\"===r.type){var a=function(t){return t},o=a,s=a;D?j(\"xanchor\",r.xanchor=G(_+n)):(o=function(t){return G(q(t)+n)},V&&\"date\"===V.type&&(o=h.encodeDate(o))),R?j(\"yanchor\",r.yanchor=W(w+i)):(s=function(t){return W(H(t)+i)},U&&\"date\"===U.type&&(s=h.encodeDate(s))),j(\"path\",r.path=v(z,o,s))}else D?j(\"xanchor\",r.xanchor=G(_+n)):(j(\"x0\",r.x0=G(m+n)),j(\"x1\",r.x1=G(x+n))),R?j(\"yanchor\",r.yanchor=W(w+i)):(j(\"y0\",r.y0=W(y+i)),j(\"y1\",r.y1=W(b+i)));e.attr(\"d\",g(t,r)),K(p,r)}function J(n,i){if(F){var a=function(t){return t},o=a,s=a;D?j(\"xanchor\",r.xanchor=G(_+n)):(o=function(t){return G(q(t)+n)},V&&\"date\"===V.type&&(o=h.encodeDate(o))),R?j(\"yanchor\",r.yanchor=W(w+i)):(s=function(t){return W(H(t)+i)},U&&\"date\"===U.type&&(s=h.encodeDate(s))),j(\"path\",r.path=v(z,o,s))}else if(B){if(\"resize-over-start-point\"===O){var l=m+n,c=R?y-i:y+i;j(\"x0\",r.x0=D?l:G(l)),j(\"y0\",r.y0=R?c:W(c))}else if(\"resize-over-end-point\"===O){var u=x+n,f=R?b-i:b+i;j(\"x1\",r.x1=D?u:G(u)),j(\"y1\",r.y1=R?f:W(f))}}else{var d=~O.indexOf(\"n\")?k+i:k,N=~O.indexOf(\"s\")?M+i:M,Y=~O.indexOf(\"w\")?A+n:A,X=~O.indexOf(\"e\")?T+n:T;~O.indexOf(\"n\")&&R&&(d=k-i),~O.indexOf(\"s\")&&R&&(N=M-i),(!R&&N-d>P||R&&d-N>P)&&(j(S,r[S]=R?d:W(d)),j(E,r[E]=R?N:W(N))),X-Y>I&&(j(C,r[C]=D?Y:G(Y)),j(L,r[L]=D?X:G(X)))}e.attr(\"d\",g(t,r)),K(p,r)}function K(t,e){(D||R)&&function(){var r=\"path\"!==e.type,n=t.selectAll(\".visual-cue\").data([0]);n.enter().append(\"path\").attr({fill:\"#fff\",\"fill-rule\":\"evenodd\",stroke:\"#000\",\"stroke-width\":1}).classed(\"visual-cue\",!0);var a=q(D?e.xanchor:i.midRange(r?[e.x0,e.x1]:h.extractPathCoords(e.path,f.paramIsX))),o=H(R?e.yanchor:i.midRange(r?[e.y0,e.y1]:h.extractPathCoords(e.path,f.paramIsY)));if(a=h.roundPositionForSharpStrokeRendering(a,1),o=h.roundPositionForSharpStrokeRendering(o,1),D&&R){var s=\"M\"+(a-1-1)+\",\"+(o-1-1)+\"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z\";n.attr(\"d\",s)}else if(D){var l=\"M\"+(a-1-1)+\",\"+(o-9-1)+\"v18 h2 v-18 Z\";n.attr(\"d\",l)}else{var c=\"M\"+(a-9-1)+\",\"+(o-1-1)+\"h18 v2 h-18 Z\";n.attr(\"d\",c)}}()}function Q(t){t.selectAll(\".visual-cue\").remove()}c.init(X),Y.node().onmousemove=Z}(t,x,r,e,p)}}function d(t,e,r){var n=(r.xref+r.yref).replace(/paper/g,\"\");t.call(s.setClipUrl,n?\"clip\"+e._fullLayout._uid+n:null)}function g(t,e){var r,n,o,s,l,c,u,p,d=e.type,g=a.getFromId(t,e.xref),v=a.getFromId(t,e.yref),m=t._fullLayout._size;if(g?(r=h.shapePositionToRange(g),n=function(t){return g._offset+g.r2p(r(t,!0))}):n=function(t){return m.l+m.w*t},v?(o=h.shapePositionToRange(v),s=function(t){return v._offset+v.r2p(o(t,!0))}):s=function(t){return m.t+m.h*(1-t)},\"path\"===d)return g&&\"date\"===g.type&&(n=h.decodeDate(n)),v&&\"date\"===v.type&&(s=h.decodeDate(s)),function(t,e,r){var n=t.path,a=t.xsizemode,o=t.ysizemode,s=t.xanchor,l=t.yanchor;return n.replace(f.segmentRE,function(t){var n=0,c=t.charAt(0),u=f.paramIsX[c],h=f.paramIsY[c],p=f.numParams[c],d=t.substr(1).replace(f.paramRE,function(t){return u[n]?t=\"pixel\"===a?e(s)+Number(t):e(t):h[n]&&(t=\"pixel\"===o?r(l)-Number(t):r(t)),++n>p&&(t=\"X\"),t});return n>p&&(d=d.replace(/[\\s,]*X.*/,\"\"),i.log(\"Ignoring extra params in segment \"+t)),c+d})}(e,n,s);if(\"pixel\"===e.xsizemode){var y=n(e.xanchor);l=y+e.x0,c=y+e.x1}else l=n(e.x0),c=n(e.x1);if(\"pixel\"===e.ysizemode){var x=s(e.yanchor);u=x-e.y0,p=x-e.y1}else u=s(e.y0),p=s(e.y1);if(\"line\"===d)return\"M\"+l+\",\"+u+\"L\"+c+\",\"+p;if(\"rect\"===d)return\"M\"+l+\",\"+u+\"H\"+c+\"V\"+p+\"H\"+l+\"Z\";var b=(l+c)/2,_=(u+p)/2,w=Math.abs(b-l),k=Math.abs(_-u),M=\"A\"+w+\",\"+k,A=b+w+\",\"+_;return\"M\"+A+M+\" 0 1,1 \"+(b+\",\"+(_-k))+M+\" 0 0,1 \"+A+\"Z\"}function v(t,e,r){return t.replace(f.segmentRE,function(t){var n=0,i=t.charAt(0),a=f.paramIsX[i],o=f.paramIsY[i],s=f.numParams[i];return i+t.substr(1).replace(f.paramRE,function(t){return n>=s?t:(a[n]?t=e(t):o[n]&&(t=r(t)),n++,t)})})}e.exports={draw:function(t){var e=t._fullLayout;for(var r in e._shapeUpperLayer.selectAll(\"path\").remove(),e._shapeLowerLayer.selectAll(\"path\").remove(),e._plots){var n=e._plots[r].shapelayer;n&&n.selectAll(\"path\").remove()}for(var i=0;i<e.shapes.length;i++)e.shapes[i].visible&&p(t,i)},drawOne:p}},{\"../../lib\":696,\"../../lib/setcursor\":716,\"../../plot_api/plot_template\":734,\"../../plots/cartesian/axes\":744,\"../../registry\":827,\"../color\":570,\"../dragelement\":592,\"../drawing\":595,\"./constants\":651,\"./helpers\":654}],654:[function(t,e,r){\"use strict\";var n=t(\"./constants\"),i=t(\"../../lib\");r.rangeToShapePosition=function(t){return\"log\"===t.type?t.r2d:function(t){return t}},r.shapePositionToRange=function(t){return\"log\"===t.type?t.d2r:function(t){return t}},r.decodeDate=function(t){return function(e){return e.replace&&(e=e.replace(\"_\",\" \")),t(e)}},r.encodeDate=function(t){return function(e){return t(e).replace(\" \",\"_\")}},r.extractPathCoords=function(t,e){var r=[];return t.match(n.segmentRE).forEach(function(t){var a=e[t.charAt(0)].drawn;if(void 0!==a){var o=t.substr(1).match(n.paramRE);!o||o.length<a||r.push(i.cleanNumber(o[a]))}}),r},r.getDataToPixel=function(t,e,n){var i,a=t._fullLayout._size;if(e){var o=r.shapePositionToRange(e);i=function(t){return e._offset+e.r2p(o(t,!0))},\"date\"===e.type&&(i=r.decodeDate(i))}else i=n?function(t){return a.t+a.h*(1-t)}:function(t){return a.l+a.w*t};return i},r.getPixelToData=function(t,e,n){var i,a=t._fullLayout._size;if(e){var o=r.rangeToShapePosition(e);i=function(t){return o(e.p2r(t-e._offset))}}else i=n?function(t){return 1-(t-a.t)/a.h}:function(t){return(t-a.l)/a.w};return i},r.roundPositionForSharpStrokeRendering=function(t,e){var r=1===Math.round(e%2),n=Math.round(t);return r?n+.5:n}},{\"../../lib\":696,\"./constants\":651}],655:[function(t,e,r){\"use strict\";var n=t(\"./draw\");e.exports={moduleType:\"component\",name:\"shapes\",layoutAttributes:t(\"./attributes\"),supplyLayoutDefaults:t(\"./defaults\"),includeBasePlot:t(\"../../plots/cartesian/include_components\")(\"shapes\"),calcAutorange:t(\"./calc_autorange\"),draw:n.draw,drawOne:n.drawOne}},{\"../../plots/cartesian/include_components\":755,\"./attributes\":649,\"./calc_autorange\":650,\"./defaults\":652,\"./draw\":653}],656:[function(t,e,r){\"use strict\";var n=t(\"../../plots/font_attributes\"),i=t(\"../../plots/pad_attributes\"),a=t(\"../../lib/extend\").extendDeepAll,o=t(\"../../plot_api/edit_types\").overrideAll,s=t(\"../../plots/animation_attributes\"),l=t(\"../../plot_api/plot_template\").templatedArray,c=t(\"./constants\"),u=l(\"step\",{visible:{valType:\"boolean\",dflt:!0},method:{valType:\"enumerated\",values:[\"restyle\",\"relayout\",\"animate\",\"update\",\"skip\"],dflt:\"restyle\"},args:{valType:\"info_array\",freeLength:!0,items:[{valType:\"any\"},{valType:\"any\"},{valType:\"any\"}]},label:{valType:\"string\"},value:{valType:\"string\"},execute:{valType:\"boolean\",dflt:!0}});e.exports=o(l(\"slider\",{visible:{valType:\"boolean\",dflt:!0},active:{valType:\"number\",min:0,dflt:0},steps:u,lenmode:{valType:\"enumerated\",values:[\"fraction\",\"pixels\"],dflt:\"fraction\"},len:{valType:\"number\",min:0,dflt:1},x:{valType:\"number\",min:-2,max:3,dflt:0},pad:a({},i,{},{t:{dflt:20}}),xanchor:{valType:\"enumerated\",values:[\"auto\",\"left\",\"center\",\"right\"],dflt:\"left\"},y:{valType:\"number\",min:-2,max:3,dflt:0},yanchor:{valType:\"enumerated\",values:[\"auto\",\"top\",\"middle\",\"bottom\"],dflt:\"top\"},transition:{duration:{valType:\"number\",min:0,dflt:150},easing:{valType:\"enumerated\",values:s.transition.easing.values,dflt:\"cubic-in-out\"}},currentvalue:{visible:{valType:\"boolean\",dflt:!0},xanchor:{valType:\"enumerated\",values:[\"left\",\"center\",\"right\"],dflt:\"left\"},offset:{valType:\"number\",dflt:10},prefix:{valType:\"string\"},suffix:{valType:\"string\"},font:n({})},font:n({}),activebgcolor:{valType:\"color\",dflt:c.gripBgActiveColor},bgcolor:{valType:\"color\",dflt:c.railBgColor},bordercolor:{valType:\"color\",dflt:c.railBorderColor},borderwidth:{valType:\"number\",min:0,dflt:c.railBorderWidth},ticklen:{valType:\"number\",min:0,dflt:c.tickLength},tickcolor:{valType:\"color\",dflt:c.tickColor},tickwidth:{valType:\"number\",min:0,dflt:1},minorticklen:{valType:\"number\",min:0,dflt:c.minorTickLength}}),\"arraydraw\",\"from-root\")},{\"../../lib/extend\":685,\"../../plot_api/edit_types\":727,\"../../plot_api/plot_template\":734,\"../../plots/animation_attributes\":739,\"../../plots/font_attributes\":771,\"../../plots/pad_attributes\":807,\"./constants\":657}],657:[function(t,e,r){\"use strict\";e.exports={name:\"sliders\",containerClassName:\"slider-container\",groupClassName:\"slider-group\",inputAreaClass:\"slider-input-area\",railRectClass:\"slider-rail-rect\",railTouchRectClass:\"slider-rail-touch-rect\",gripRectClass:\"slider-grip-rect\",tickRectClass:\"slider-tick-rect\",inputProxyClass:\"slider-input-proxy\",labelsClass:\"slider-labels\",labelGroupClass:\"slider-label-group\",labelClass:\"slider-label\",currentValueClass:\"slider-current-value\",railHeight:5,menuIndexAttrName:\"slider-active-index\",autoMarginIdRoot:\"slider-\",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:\"#bec8d9\",railBgColor:\"#f8fafc\",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:\"#bec8d9\",gripBgColor:\"#f6f8fa\",gripBgActiveColor:\"#dbdde0\",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:\"#333\",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:\"#333\",minorTickLength:4,currentValuePadding:8,currentValueInset:0}},{}],658:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../plots/array_container_defaults\"),a=t(\"./attributes\"),o=t(\"./constants\").name,s=a.steps;function l(t,e,r){function o(r,i){return n.coerce(t,e,a,r,i)}for(var s=i(t,e,{name:\"steps\",handleItemDefaults:c}),l=0,u=0;u<s.length;u++)s[u].visible&&l++;if(l<2?e.visible=!1:o(\"visible\")){e._stepCount=l;var f=e._visibleSteps=n.filterVisible(s);(s[o(\"active\")]||{}).visible||(e.active=f[0]._index),o(\"x\"),o(\"y\"),n.noneOrAll(t,e,[\"x\",\"y\"]),o(\"xanchor\"),o(\"yanchor\"),o(\"len\"),o(\"lenmode\"),o(\"pad.t\"),o(\"pad.r\"),o(\"pad.b\"),o(\"pad.l\"),n.coerceFont(o,\"font\",r.font),o(\"currentvalue.visible\")&&(o(\"currentvalue.xanchor\"),o(\"currentvalue.prefix\"),o(\"currentvalue.suffix\"),o(\"currentvalue.offset\"),n.coerceFont(o,\"currentvalue.font\",e.font)),o(\"transition.duration\"),o(\"transition.easing\"),o(\"bgcolor\"),o(\"activebgcolor\"),o(\"bordercolor\"),o(\"borderwidth\"),o(\"ticklen\"),o(\"tickwidth\"),o(\"tickcolor\"),o(\"minorticklen\")}}function c(t,e){function r(r,i){return n.coerce(t,e,s,r,i)}if(\"skip\"===t.method||Array.isArray(t.args)?r(\"visible\"):e.visible=!1){r(\"method\"),r(\"args\");var i=r(\"label\",\"step-\"+e._index);r(\"value\",i),r(\"execute\")}}e.exports=function(t,e){i(t,e,{name:o,handleItemDefaults:l})}},{\"../../lib\":696,\"../../plots/array_container_defaults\":740,\"./attributes\":656,\"./constants\":657}],659:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../../plots/plots\"),a=t(\"../color\"),o=t(\"../drawing\"),s=t(\"../../lib\"),l=t(\"../../lib/svg_text_utils\"),c=t(\"../legend/anchor_utils\"),u=t(\"../../plot_api/plot_template\").arrayEditor,f=t(\"./constants\"),h=t(\"../../constants/alignment\"),p=h.LINE_SPACING,d=h.FROM_TL,g=h.FROM_BR;function v(t){return f.autoMarginIdRoot+t._index}function m(t){return t._index}function y(t,e){var r=o.tester.selectAll(\"g.\"+f.labelGroupClass).data(e._visibleSteps);r.enter().append(\"g\").classed(f.labelGroupClass,!0);var a=0,s=0;r.each(function(t){var r=_(n.select(this),{step:t},e).node();if(r){var i=o.bBox(r);s=Math.max(s,i.height),a=Math.max(a,i.width)}}),r.remove();var u=e._dims={};u.inputAreaWidth=Math.max(f.railWidth,f.gripHeight);var h=t._fullLayout._size;u.lx=h.l+h.w*e.x,u.ly=h.t+h.h*(1-e.y),\"fraction\"===e.lenmode?u.outerLength=Math.round(h.w*e.len):u.outerLength=e.len,u.inputAreaStart=0,u.inputAreaLength=Math.round(u.outerLength-e.pad.l-e.pad.r);var p=(u.inputAreaLength-2*f.stepInset)/(e._stepCount-1),m=a+f.labelPadding;if(u.labelStride=Math.max(1,Math.ceil(m/p)),u.labelHeight=s,u.currentValueMaxWidth=0,u.currentValueHeight=0,u.currentValueTotalHeight=0,u.currentValueMaxLines=1,e.currentvalue.visible){var y=o.tester.append(\"g\");r.each(function(t){var r=x(y,e,t.label),n=r.node()&&o.bBox(r.node())||{width:0,height:0},i=l.lineCount(r);u.currentValueMaxWidth=Math.max(u.currentValueMaxWidth,Math.ceil(n.width)),u.currentValueHeight=Math.max(u.currentValueHeight,Math.ceil(n.height)),u.currentValueMaxLines=Math.max(u.currentValueMaxLines,i)}),u.currentValueTotalHeight=u.currentValueHeight+e.currentvalue.offset,y.remove()}u.height=u.currentValueTotalHeight+f.tickOffset+e.ticklen+f.labelOffset+u.labelHeight+e.pad.t+e.pad.b;var b=\"left\";c.isRightAnchor(e)&&(u.lx-=u.outerLength,b=\"right\"),c.isCenterAnchor(e)&&(u.lx-=u.outerLength/2,b=\"center\");var w=\"top\";c.isBottomAnchor(e)&&(u.ly-=u.height,w=\"bottom\"),c.isMiddleAnchor(e)&&(u.ly-=u.height/2,w=\"middle\"),u.outerLength=Math.ceil(u.outerLength),u.height=Math.ceil(u.height),u.lx=Math.round(u.lx),u.ly=Math.round(u.ly);var k={y:e.y,b:u.height*g[w],t:u.height*d[w]};\"fraction\"===e.lenmode?(k.l=0,k.xl=e.x-e.len*d[b],k.r=0,k.xr=e.x+e.len*g[b]):(k.x=e.x,k.l=u.outerLength*d[b],k.r=u.outerLength*g[b]),i.autoMargin(t,v(e),k)}function x(t,e,r){if(e.currentvalue.visible){var n,i,a=e._dims;switch(e.currentvalue.xanchor){case\"right\":n=a.inputAreaLength-f.currentValueInset-a.currentValueMaxWidth,i=\"left\";break;case\"center\":n=.5*a.inputAreaLength,i=\"middle\";break;default:n=f.currentValueInset,i=\"left\"}var c=s.ensureSingle(t,\"text\",f.labelClass,function(t){t.classed(\"user-select-none\",!0).attr({\"text-anchor\":i,\"data-notex\":1})}),u=e.currentvalue.prefix?e.currentvalue.prefix:\"\";if(\"string\"==typeof r)u+=r;else u+=e.steps[e.active].label;e.currentvalue.suffix&&(u+=e.currentvalue.suffix),c.call(o.font,e.currentvalue.font).text(u).call(l.convertToTspans,e._gd);var h=l.lineCount(c),d=(a.currentValueMaxLines+1-h)*e.currentvalue.font.size*p;return l.positionText(c,n,d),c}}function b(t,e,r){s.ensureSingle(t,\"rect\",f.gripRectClass,function(n){n.call(A,e,t,r).style(\"pointer-events\",\"all\")}).attr({width:f.gripWidth,height:f.gripHeight,rx:f.gripRadius,ry:f.gripRadius}).call(a.stroke,r.bordercolor).call(a.fill,r.bgcolor).style(\"stroke-width\",r.borderwidth+\"px\")}function _(t,e,r){var n=s.ensureSingle(t,\"text\",f.labelClass,function(t){t.classed(\"user-select-none\",!0).attr({\"text-anchor\":\"middle\",\"data-notex\":1})});return n.call(o.font,r.font).text(e.step.label).call(l.convertToTspans,r._gd),n}function w(t,e){var r=s.ensureSingle(t,\"g\",f.labelsClass),i=e._dims,a=r.selectAll(\"g.\"+f.labelGroupClass).data(i.labelSteps);a.enter().append(\"g\").classed(f.labelGroupClass,!0),a.exit().remove(),a.each(function(t){var r=n.select(this);r.call(_,t,e),o.setTranslate(r,E(e,t.fraction),f.tickOffset+e.ticklen+e.font.size*p+f.labelOffset+i.currentValueTotalHeight)})}function k(t,e,r,n,i){var a=Math.round(n*(r._stepCount-1)),o=r._visibleSteps[a]._index;o!==r.active&&M(t,e,r,o,!0,i)}function M(t,e,r,n,a,o){var s=r.active;r.active=n,u(t.layout,f.name,r).applyUpdate(\"active\",n);var l=r.steps[r.active];e.call(S,r,o),e.call(x,r),t.emit(\"plotly_sliderchange\",{slider:r,step:r.steps[r.active],interaction:a,previousActive:s}),l&&l.method&&a&&(e._nextMethod?(e._nextMethod.step=l,e._nextMethod.doCallback=a,e._nextMethod.doTransition=o):(e._nextMethod={step:l,doCallback:a,doTransition:o},e._nextMethodRaf=window.requestAnimationFrame(function(){var r=e._nextMethod.step;r.method&&(r.execute&&i.executeAPICommand(t,r.method,r.args),e._nextMethod=null,e._nextMethodRaf=null)})))}function A(t,e,r){var i=r.node(),o=n.select(e);function s(){return r.data()[0]}t.on(\"mousedown\",function(){var t=s();e.emit(\"plotly_sliderstart\",{slider:t});var l=r.select(\".\"+f.gripRectClass);n.event.stopPropagation(),n.event.preventDefault(),l.call(a.fill,t.activebgcolor);var c=C(t,n.mouse(i)[0]);k(e,r,t,c,!0),t._dragging=!0,o.on(\"mousemove\",function(){var t=s(),a=C(t,n.mouse(i)[0]);k(e,r,t,a,!1)}),o.on(\"mouseup\",function(){var t=s();t._dragging=!1,l.call(a.fill,t.bgcolor),o.on(\"mouseup\",null),o.on(\"mousemove\",null),e.emit(\"plotly_sliderend\",{slider:t,step:t.steps[t.active]})})})}function T(t,e){var r=t.selectAll(\"rect.\"+f.tickRectClass).data(e._visibleSteps),i=e._dims;r.enter().append(\"rect\").classed(f.tickRectClass,!0),r.exit().remove(),r.attr({width:e.tickwidth+\"px\",\"shape-rendering\":\"crispEdges\"}),r.each(function(t,r){var s=r%i.labelStride==0,l=n.select(this);l.attr({height:s?e.ticklen:e.minorticklen}).call(a.fill,e.tickcolor),o.setTranslate(l,E(e,r/(e._stepCount-1))-.5*e.tickwidth,(s?f.tickOffset:f.minorTickOffset)+i.currentValueTotalHeight)})}function S(t,e,r){for(var n=t.select(\"rect.\"+f.gripRectClass),i=0,a=0;a<e._stepCount;a++)if(e._visibleSteps[a]._index===e.active){i=a;break}var o=E(e,i/(e._stepCount-1));if(!e._invokingCommand){var s=n;r&&e.transition.duration>0&&(s=s.transition().duration(e.transition.duration).ease(e.transition.easing)),s.attr(\"transform\",\"translate(\"+(o-.5*f.gripWidth)+\",\"+e._dims.currentValueTotalHeight+\")\")}}function E(t,e){var r=t._dims;return r.inputAreaStart+f.stepInset+(r.inputAreaLength-2*f.stepInset)*Math.min(1,Math.max(0,e))}function C(t,e){var r=t._dims;return Math.min(1,Math.max(0,(e-f.stepInset-r.inputAreaStart)/(r.inputAreaLength-2*f.stepInset-2*r.inputAreaStart)))}function L(t,e,r){var n=r._dims,i=s.ensureSingle(t,\"rect\",f.railTouchRectClass,function(n){n.call(A,e,t,r).style(\"pointer-events\",\"all\")});i.attr({width:n.inputAreaLength,height:Math.max(n.inputAreaWidth,f.tickOffset+r.ticklen+n.labelHeight)}).call(a.fill,r.bgcolor).attr(\"opacity\",0),o.setTranslate(i,0,n.currentValueTotalHeight)}function z(t,e){var r=e._dims,n=r.inputAreaLength-2*f.railInset,i=s.ensureSingle(t,\"rect\",f.railRectClass);i.attr({width:n,height:f.railWidth,rx:f.railRadius,ry:f.railRadius,\"shape-rendering\":\"crispEdges\"}).call(a.stroke,e.bordercolor).call(a.fill,e.bgcolor).style(\"stroke-width\",e.borderwidth+\"px\"),o.setTranslate(i,f.railInset,.5*(r.inputAreaWidth-f.railWidth)+r.currentValueTotalHeight)}e.exports=function(t){var e=t._fullLayout,r=function(t,e){for(var r=t[f.name],n=[],i=0;i<r.length;i++){var a=r[i];a.visible&&(a._gd=e,n.push(a))}return n}(e,t),a=e._infolayer.selectAll(\"g.\"+f.containerClassName).data(r.length>0?[0]:[]);function s(e){e._commandObserver&&(e._commandObserver.remove(),delete e._commandObserver),i.autoMargin(t,v(e))}if(a.enter().append(\"g\").classed(f.containerClassName,!0).style(\"cursor\",\"ew-resize\"),a.exit().each(function(){n.select(this).selectAll(\"g.\"+f.groupClassName).each(s)}).remove(),0!==r.length){var l=a.selectAll(\"g.\"+f.groupClassName).data(r,m);l.enter().append(\"g\").classed(f.groupClassName,!0),l.exit().each(s).remove();for(var c=0;c<r.length;c++){var u=r[c];y(t,u)}l.each(function(e){var r=n.select(this);!function(t){var e=t._dims;e.labelSteps=[];for(var r=t._stepCount,n=0;n<r;n+=e.labelStride)e.labelSteps.push({fraction:n/(r-1),step:t._visibleSteps[n]})}(e),i.manageCommandObserver(t,e,e._visibleSteps,function(e){var n=r.data()[0];n.active!==e.index&&(n._dragging||M(t,r,n,e.index,!1,!0))}),function(t,e,r){(r.steps[r.active]||{}).visible||(r.active=r._visibleSteps[0]._index);e.call(x,r).call(z,r).call(w,r).call(T,r).call(L,t,r).call(b,t,r);var n=r._dims;o.setTranslate(e,n.lx+r.pad.l,n.ly+r.pad.t),e.call(S,r,!1),e.call(x,r)}(t,n.select(this),e)})}}},{\"../../constants/alignment\":668,\"../../lib\":696,\"../../lib/svg_text_utils\":720,\"../../plot_api/plot_template\":734,\"../../plots/plots\":808,\"../color\":570,\"../drawing\":595,\"../legend/anchor_utils\":622,\"./constants\":657,d3:148}],660:[function(t,e,r){\"use strict\";var n=t(\"./constants\");e.exports={moduleType:\"component\",name:n.name,layoutAttributes:t(\"./attributes\"),supplyLayoutDefaults:t(\"./defaults\"),draw:t(\"./draw\")}},{\"./attributes\":656,\"./constants\":657,\"./defaults\":658,\"./draw\":659}],661:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"fast-isnumeric\"),a=t(\"../../plots/plots\"),o=t(\"../../registry\"),s=t(\"../../lib\"),l=t(\"../drawing\"),c=t(\"../color\"),u=t(\"../../lib/svg_text_utils\"),f=t(\"../../constants/interactions\");e.exports={draw:function(t,e,r){var p,d=r.propContainer,g=r.propName,v=r.placeholder,m=r.traceIndex,y=r.avoid||{},x=r.attributes,b=r.transform,_=r.containerGroup,w=t._fullLayout,k=d.titlefont||{},M=k.family,A=k.size,T=k.color,S=1,E=!1,C=(d.title||\"\").trim();\"title\"===g?p=\"titleText\":-1!==g.indexOf(\"axis\")?p=\"axisTitleText\":g.indexOf(!0)&&(p=\"colorbarTitleText\");var L=t._context.edits[p];\"\"===C?S=0:C.replace(h,\" % \")===v.replace(h,\" % \")&&(S=.2,E=!0,L||(C=\"\"));var z=C||L;_||(_=s.ensureSingle(w._infolayer,\"g\",\"g-\"+e));var O=_.selectAll(\"text\").data(z?[0]:[]);if(O.enter().append(\"text\"),O.text(C).attr(\"class\",e),O.exit().remove(),!z)return _;function I(t){s.syncOrAsync([P,D],t)}function P(e){var r;return b?(r=\"\",b.rotate&&(r+=\"rotate(\"+[b.rotate,x.x,x.y]+\")\"),b.offset&&(r+=\"translate(0, \"+b.offset+\")\")):r=null,e.attr(\"transform\",r),e.style({\"font-family\":M,\"font-size\":n.round(A,2)+\"px\",fill:c.rgb(T),opacity:S*c.opacity(T),\"font-weight\":a.fontWeight}).attr(x).call(u.convertToTspans,t),a.previousPromises(t)}function D(t){var e=n.select(t.node().parentNode);if(y&&y.selection&&y.side&&C){e.attr(\"transform\",null);var r=0,a={left:\"right\",right:\"left\",top:\"bottom\",bottom:\"top\"}[y.side],o=-1!==[\"left\",\"top\"].indexOf(y.side)?-1:1,c=i(y.pad)?y.pad:2,u=l.bBox(e.node()),f={left:0,top:0,right:w.width,bottom:w.height},h=y.maxShift||(f[y.side]-u[y.side])*(\"left\"===y.side||\"top\"===y.side?-1:1);if(h<0)r=h;else{var p=y.offsetLeft||0,d=y.offsetTop||0;u.left-=p,u.right-=p,u.top-=d,u.bottom-=d,y.selection.each(function(){var t=l.bBox(this);s.bBoxIntersect(u,t,c)&&(r=Math.max(r,o*(t[y.side]-u[a])+c))}),r=Math.min(h,r)}if(r>0||h<0){var g={left:[-r,0],right:[r,0],top:[0,-r],bottom:[0,r]}[y.side];e.attr(\"transform\",\"translate(\"+g+\")\")}}}O.call(I),L&&(C?O.on(\".opacity\",null):(S=0,E=!0,O.text(v).on(\"mouseover.opacity\",function(){n.select(this).transition().duration(f.SHOW_PLACEHOLDER).style(\"opacity\",1)}).on(\"mouseout.opacity\",function(){n.select(this).transition().duration(f.HIDE_PLACEHOLDER).style(\"opacity\",0)})),O.call(u.makeEditable,{gd:t}).on(\"edit\",function(e){void 0!==m?o.call(\"restyle\",t,g,e,m):o.call(\"relayout\",t,g,e)}).on(\"cancel\",function(){this.text(this.attr(\"data-unformatted\")).call(I)}).on(\"input\",function(t){this.text(t||\" \").call(u.positionText,x.x,x.y)}));return O.classed(\"js-placeholder\",E),_}};var h=/ [XY][0-9]* /},{\"../../constants/interactions\":672,\"../../lib\":696,\"../../lib/svg_text_utils\":720,\"../../plots/plots\":808,\"../../registry\":827,\"../color\":570,\"../drawing\":595,d3:148,\"fast-isnumeric\":214}],662:[function(t,e,r){\"use strict\";var n=t(\"../../plots/font_attributes\"),i=t(\"../color/attributes\"),a=t(\"../../lib/extend\").extendFlat,o=t(\"../../plot_api/edit_types\").overrideAll,s=t(\"../../plots/pad_attributes\"),l=t(\"../../plot_api/plot_template\").templatedArray,c=l(\"button\",{visible:{valType:\"boolean\"},method:{valType:\"enumerated\",values:[\"restyle\",\"relayout\",\"animate\",\"update\",\"skip\"],dflt:\"restyle\"},args:{valType:\"info_array\",freeLength:!0,items:[{valType:\"any\"},{valType:\"any\"},{valType:\"any\"}]},label:{valType:\"string\",dflt:\"\"},execute:{valType:\"boolean\",dflt:!0}});e.exports=o(l(\"updatemenu\",{_arrayAttrRegexps:[/^updatemenus\\[(0|[1-9][0-9]+)\\]\\.buttons/],visible:{valType:\"boolean\"},type:{valType:\"enumerated\",values:[\"dropdown\",\"buttons\"],dflt:\"dropdown\"},direction:{valType:\"enumerated\",values:[\"left\",\"right\",\"up\",\"down\"],dflt:\"down\"},active:{valType:\"integer\",min:-1,dflt:0},showactive:{valType:\"boolean\",dflt:!0},buttons:c,x:{valType:\"number\",min:-2,max:3,dflt:-.05},xanchor:{valType:\"enumerated\",values:[\"auto\",\"left\",\"center\",\"right\"],dflt:\"right\"},y:{valType:\"number\",min:-2,max:3,dflt:1},yanchor:{valType:\"enumerated\",values:[\"auto\",\"top\",\"middle\",\"bottom\"],dflt:\"top\"},pad:a({},s,{}),font:n({}),bgcolor:{valType:\"color\"},bordercolor:{valType:\"color\",dflt:i.borderLine},borderwidth:{valType:\"number\",min:0,dflt:1,editType:\"arraydraw\"}}),\"arraydraw\",\"from-root\")},{\"../../lib/extend\":685,\"../../plot_api/edit_types\":727,\"../../plot_api/plot_template\":734,\"../../plots/font_attributes\":771,\"../../plots/pad_attributes\":807,\"../color/attributes\":569}],663:[function(t,e,r){\"use strict\";e.exports={name:\"updatemenus\",containerClassName:\"updatemenu-container\",headerGroupClassName:\"updatemenu-header-group\",headerClassName:\"updatemenu-header\",headerArrowClassName:\"updatemenu-header-arrow\",dropdownButtonGroupClassName:\"updatemenu-dropdown-button-group\",dropdownButtonClassName:\"updatemenu-dropdown-button\",buttonClassName:\"updatemenu-button\",itemRectClassName:\"updatemenu-item-rect\",itemTextClassName:\"updatemenu-item-text\",menuIndexAttrName:\"updatemenu-active-index\",autoMarginIdRoot:\"updatemenu-\",blankHeaderOpts:{label:\" \"},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:\"#F4FAFF\",hoverColor:\"#F4FAFF\",arrowSymbol:{left:\"\\u25c4\",right:\"\\u25ba\",up:\"\\u25b2\",down:\"\\u25bc\"}}},{}],664:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../plots/array_container_defaults\"),a=t(\"./attributes\"),o=t(\"./constants\").name,s=a.buttons;function l(t,e,r){function o(r,i){return n.coerce(t,e,a,r,i)}o(\"visible\",i(t,e,{name:\"buttons\",handleItemDefaults:c}).length>0)&&(o(\"active\"),o(\"direction\"),o(\"type\"),o(\"showactive\"),o(\"x\"),o(\"y\"),n.noneOrAll(t,e,[\"x\",\"y\"]),o(\"xanchor\"),o(\"yanchor\"),o(\"pad.t\"),o(\"pad.r\"),o(\"pad.b\"),o(\"pad.l\"),n.coerceFont(o,\"font\",r.font),o(\"bgcolor\",r.paper_bgcolor),o(\"bordercolor\"),o(\"borderwidth\"))}function c(t,e){function r(r,i){return n.coerce(t,e,s,r,i)}r(\"visible\",\"skip\"===t.method||Array.isArray(t.args))&&(r(\"method\"),r(\"args\"),r(\"label\"),r(\"execute\"))}e.exports=function(t,e){i(t,e,{name:o,handleItemDefaults:l})}},{\"../../lib\":696,\"../../plots/array_container_defaults\":740,\"./attributes\":662,\"./constants\":663}],665:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../../plots/plots\"),a=t(\"../color\"),o=t(\"../drawing\"),s=t(\"../../lib\"),l=t(\"../../lib/svg_text_utils\"),c=t(\"../legend/anchor_utils\"),u=t(\"../../plot_api/plot_template\").arrayEditor,f=t(\"../../constants/alignment\").LINE_SPACING,h=t(\"./constants\"),p=t(\"./scrollbox\");function d(t){return t._index}function g(t,e){return+t.attr(h.menuIndexAttrName)===e._index}function v(t,e,r,n,i,a,o,s){e.active=o,u(t.layout,h.name,e).applyUpdate(\"active\",o),\"buttons\"===e.type?y(t,n,null,null,e):\"dropdown\"===e.type&&(i.attr(h.menuIndexAttrName,\"-1\"),m(t,n,i,a,e),s||y(t,n,i,a,e))}function m(t,e,r,n,i){var a=s.ensureSingle(e,\"g\",h.headerClassName,function(t){t.style(\"pointer-events\",\"all\")}),l=i._dims,c=i.active,u=i.buttons[c]||h.blankHeaderOpts,f={y:i.pad.t,yPad:0,x:i.pad.l,xPad:0,index:0},p={width:l.headerWidth,height:l.headerHeight};a.call(x,i,u,t).call(S,i,f,p),s.ensureSingle(e,\"text\",h.headerArrowClassName,function(t){t.classed(\"user-select-none\",!0).attr(\"text-anchor\",\"end\").call(o.font,i.font).text(h.arrowSymbol[i.direction])}).attr({x:l.headerWidth-h.arrowOffsetX+i.pad.l,y:l.headerHeight/2+h.textOffsetY+i.pad.t}),a.on(\"click\",function(){r.call(E,String(g(r,i)?-1:i._index)),y(t,e,r,n,i)}),a.on(\"mouseover\",function(){a.call(k)}),a.on(\"mouseout\",function(){a.call(M,i)}),o.setTranslate(e,l.lx,l.ly)}function y(t,e,r,a,o){r||(r=e).attr(\"pointer-events\",\"all\");var l=function(t){return-1==+t.attr(h.menuIndexAttrName)}(r)&&\"buttons\"!==o.type?[]:o.buttons,c=\"dropdown\"===o.type?h.dropdownButtonClassName:h.buttonClassName,u=r.selectAll(\"g.\"+c).data(s.filterVisible(l)),f=u.enter().append(\"g\").classed(c,!0),p=u.exit();\"dropdown\"===o.type?(f.attr(\"opacity\",\"0\").transition().attr(\"opacity\",\"1\"),p.transition().attr(\"opacity\",\"0\").remove()):p.remove();var d=0,g=0,m=o._dims,y=-1!==[\"up\",\"down\"].indexOf(o.direction);\"dropdown\"===o.type&&(y?g=m.headerHeight+h.gapButtonHeader:d=m.headerWidth+h.gapButtonHeader),\"dropdown\"===o.type&&\"up\"===o.direction&&(g=-h.gapButtonHeader+h.gapButton-m.openHeight),\"dropdown\"===o.type&&\"left\"===o.direction&&(d=-h.gapButtonHeader+h.gapButton-m.openWidth);var b={x:m.lx+d+o.pad.l,y:m.ly+g+o.pad.t,yPad:h.gapButton,xPad:h.gapButton,index:0},_={l:b.x+o.borderwidth,t:b.y+o.borderwidth};u.each(function(s,l){var c=n.select(this);c.call(x,o,s,t).call(S,o,b),c.on(\"click\",function(){n.event.defaultPrevented||(v(t,o,0,e,r,a,l),s.execute&&i.executeAPICommand(t,s.method,s.args),t.emit(\"plotly_buttonclicked\",{menu:o,button:s,active:o.active}))}),c.on(\"mouseover\",function(){c.call(k)}),c.on(\"mouseout\",function(){c.call(M,o),u.call(w,o)})}),u.call(w,o),y?(_.w=Math.max(m.openWidth,m.headerWidth),_.h=b.y-_.t):(_.w=b.x-_.l,_.h=Math.max(m.openHeight,m.headerHeight)),_.direction=o.direction,a&&(u.size()?function(t,e,r,n,i,a){var o,s,l,c=i.direction,u=\"up\"===c||\"down\"===c,f=i._dims,p=i.active;if(u)for(s=0,l=0;l<p;l++)s+=f.heights[l]+h.gapButton;else for(o=0,l=0;l<p;l++)o+=f.widths[l]+h.gapButton;n.enable(a,o,s),n.hbar&&n.hbar.attr(\"opacity\",\"0\").transition().attr(\"opacity\",\"1\");n.vbar&&n.vbar.attr(\"opacity\",\"0\").transition().attr(\"opacity\",\"1\")}(0,0,0,a,o,_):function(t){var e=!!t.hbar,r=!!t.vbar;e&&t.hbar.transition().attr(\"opacity\",\"0\").each(\"end\",function(){e=!1,r||t.disable()});r&&t.vbar.transition().attr(\"opacity\",\"0\").each(\"end\",function(){r=!1,e||t.disable()})}(a))}function x(t,e,r,n){t.call(b,e).call(_,e,r,n)}function b(t,e){s.ensureSingle(t,\"rect\",h.itemRectClassName,function(t){t.attr({rx:h.rx,ry:h.ry,\"shape-rendering\":\"crispEdges\"})}).call(a.stroke,e.bordercolor).call(a.fill,e.bgcolor).style(\"stroke-width\",e.borderwidth+\"px\")}function _(t,e,r,n){s.ensureSingle(t,\"text\",h.itemTextClassName,function(t){t.classed(\"user-select-none\",!0).attr({\"text-anchor\":\"start\",\"data-notex\":1})}).call(o.font,e.font).text(r.label).call(l.convertToTspans,n)}function w(t,e){var r=e.active;t.each(function(t,i){var o=n.select(this);i===r&&e.showactive&&o.select(\"rect.\"+h.itemRectClassName).call(a.fill,h.activeColor)})}function k(t){t.select(\"rect.\"+h.itemRectClassName).call(a.fill,h.hoverColor)}function M(t,e){t.select(\"rect.\"+h.itemRectClassName).call(a.fill,e.bgcolor)}function A(t,e){var r=e._dims={width1:0,height1:0,heights:[],widths:[],totalWidth:0,totalHeight:0,openWidth:0,openHeight:0,lx:0,ly:0},a=o.tester.selectAll(\"g.\"+h.dropdownButtonClassName).data(s.filterVisible(e.buttons));a.enter().append(\"g\").classed(h.dropdownButtonClassName,!0);var u=-1!==[\"up\",\"down\"].indexOf(e.direction);a.each(function(i,a){var s=n.select(this);s.call(x,e,i,t);var c=s.select(\".\"+h.itemTextClassName),p=c.node()&&o.bBox(c.node()).width,d=Math.max(p+h.textPadX,h.minWidth),g=e.font.size*f,v=l.lineCount(c),m=Math.max(g*v,h.minHeight)+h.textOffsetY;m=Math.ceil(m),d=Math.ceil(d),r.widths[a]=d,r.heights[a]=m,r.height1=Math.max(r.height1,m),r.width1=Math.max(r.width1,d),u?(r.totalWidth=Math.max(r.totalWidth,d),r.openWidth=r.totalWidth,r.totalHeight+=m+h.gapButton,r.openHeight+=m+h.gapButton):(r.totalWidth+=d+h.gapButton,r.openWidth+=d+h.gapButton,r.totalHeight=Math.max(r.totalHeight,m),r.openHeight=r.totalHeight)}),u?r.totalHeight-=h.gapButton:r.totalWidth-=h.gapButton,r.headerWidth=r.width1+h.arrowPadX,r.headerHeight=r.height1,\"dropdown\"===e.type&&(u?(r.width1+=h.arrowPadX,r.totalHeight=r.height1):r.totalWidth=r.width1,r.totalWidth+=h.arrowPadX),a.remove();var p=r.totalWidth+e.pad.l+e.pad.r,d=r.totalHeight+e.pad.t+e.pad.b,g=t._fullLayout._size;r.lx=g.l+g.w*e.x,r.ly=g.t+g.h*(1-e.y);var v=\"left\";c.isRightAnchor(e)&&(r.lx-=p,v=\"right\"),c.isCenterAnchor(e)&&(r.lx-=p/2,v=\"center\");var m=\"top\";c.isBottomAnchor(e)&&(r.ly-=d,m=\"bottom\"),c.isMiddleAnchor(e)&&(r.ly-=d/2,m=\"middle\"),r.totalWidth=Math.ceil(r.totalWidth),r.totalHeight=Math.ceil(r.totalHeight),r.lx=Math.round(r.lx),r.ly=Math.round(r.ly),i.autoMargin(t,T(e),{x:e.x,y:e.y,l:p*({right:1,center:.5}[v]||0),r:p*({left:1,center:.5}[v]||0),b:d*({top:1,middle:.5}[m]||0),t:d*({bottom:1,middle:.5}[m]||0)})}function T(t){return h.autoMarginIdRoot+t._index}function S(t,e,r,n){n=n||{};var i=t.select(\".\"+h.itemRectClassName),a=t.select(\".\"+h.itemTextClassName),s=e.borderwidth,c=r.index,u=e._dims;o.setTranslate(t,s+r.x,s+r.y);var p=-1!==[\"up\",\"down\"].indexOf(e.direction),d=n.height||(p?u.heights[c]:u.height1);i.attr({x:0,y:0,width:n.width||(p?u.width1:u.widths[c]),height:d});var g=e.font.size*f,v=(l.lineCount(a)-1)*g/2;l.positionText(a,h.textOffsetX,d/2-v+h.textOffsetY),p?r.y+=u.heights[c]+r.yPad:r.x+=u.widths[c]+r.xPad,r.index++}function E(t,e){t.attr(h.menuIndexAttrName,e||\"-1\").selectAll(\"g.\"+h.dropdownButtonClassName).remove()}e.exports=function(t){var e=t._fullLayout,r=s.filterVisible(e[h.name]);function a(e){i.autoMargin(t,T(e))}var o=e._menulayer.selectAll(\"g.\"+h.containerClassName).data(r.length>0?[0]:[]);if(o.enter().append(\"g\").classed(h.containerClassName,!0).style(\"cursor\",\"pointer\"),o.exit().each(function(){n.select(this).selectAll(\"g.\"+h.headerGroupClassName).each(a)}).remove(),0!==r.length){var l=o.selectAll(\"g.\"+h.headerGroupClassName).data(r,d);l.enter().append(\"g\").classed(h.headerGroupClassName,!0);for(var c=s.ensureSingle(o,\"g\",h.dropdownButtonGroupClassName,function(t){t.style(\"pointer-events\",\"all\")}),u=0;u<r.length;u++){var f=r[u];A(t,f)}var x=\"updatemenus\"+e._uid,b=new p(t,c,x);l.enter().size()&&(c.node().parentNode.appendChild(c.node()),c.call(E)),l.exit().each(function(t){c.call(E),a(t)}).remove(),l.each(function(e){var r=n.select(this),a=\"dropdown\"===e.type?c:null;i.manageCommandObserver(t,e,e.buttons,function(n){v(t,e,e.buttons[n.index],r,a,b,n.index,!0)}),\"dropdown\"===e.type?(m(t,r,c,b,e),g(c,e)&&y(t,r,c,b,e)):y(t,r,null,null,e)})}}},{\"../../constants/alignment\":668,\"../../lib\":696,\"../../lib/svg_text_utils\":720,\"../../plot_api/plot_template\":734,\"../../plots/plots\":808,\"../color\":570,\"../drawing\":595,\"../legend/anchor_utils\":622,\"./constants\":663,\"./scrollbox\":667,d3:148}],666:[function(t,e,r){arguments[4][660][0].apply(r,arguments)},{\"./attributes\":662,\"./constants\":663,\"./defaults\":664,\"./draw\":665,dup:660}],667:[function(t,e,r){\"use strict\";e.exports=s;var n=t(\"d3\"),i=t(\"../color\"),a=t(\"../drawing\"),o=t(\"../../lib\");function s(t,e,r){this.gd=t,this.container=e,this.id=r,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll(\"rect.scrollbox-bg\").data([0]),this.bg.exit().on(\".drag\",null).on(\"wheel\",null).remove(),this.bg.enter().append(\"rect\").classed(\"scrollbox-bg\",!0).style(\"pointer-events\",\"all\").attr({opacity:0,x:0,y:0,width:0,height:0})}s.barWidth=2,s.barLength=20,s.barRadius=2,s.barPad=1,s.barColor=\"#808BA4\",s.prototype.enable=function(t,e,r){var o=this.gd._fullLayout,l=o.width,c=o.height;this.position=t;var u,f,h,p,d=this.position.l,g=this.position.w,v=this.position.t,m=this.position.h,y=this.position.direction,x=\"down\"===y,b=\"left\"===y,_=\"up\"===y,w=g,k=m;x||b||\"right\"===y||_||(this.position.direction=\"down\",x=!0),x||_?(f=(u=d)+w,x?(h=v,k=(p=Math.min(h+k,c))-h):k=(p=v+k)-(h=Math.max(p-k,0))):(p=(h=v)+k,b?w=(f=d+w)-(u=Math.max(f-w,0)):(u=d,w=(f=Math.min(u+w,l))-u)),this._box={l:u,t:h,w:w,h:k};var M=g>w,A=s.barLength+2*s.barPad,T=s.barWidth+2*s.barPad,S=d,E=v+m;E+T>c&&(E=c-T);var C=this.container.selectAll(\"rect.scrollbar-horizontal\").data(M?[0]:[]);C.exit().on(\".drag\",null).remove(),C.enter().append(\"rect\").classed(\"scrollbar-horizontal\",!0).call(i.fill,s.barColor),M?(this.hbar=C.attr({rx:s.barRadius,ry:s.barRadius,x:S,y:E,width:A,height:T}),this._hbarXMin=S+A/2,this._hbarTranslateMax=w-A):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var L=m>k,z=s.barWidth+2*s.barPad,O=s.barLength+2*s.barPad,I=d+g,P=v;I+z>l&&(I=l-z);var D=this.container.selectAll(\"rect.scrollbar-vertical\").data(L?[0]:[]);D.exit().on(\".drag\",null).remove(),D.enter().append(\"rect\").classed(\"scrollbar-vertical\",!0).call(i.fill,s.barColor),L?(this.vbar=D.attr({rx:s.barRadius,ry:s.barRadius,x:I,y:P,width:z,height:O}),this._vbarYMin=P+O/2,this._vbarTranslateMax=k-O):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var R=this.id,B=u-.5,F=L?f+z+.5:f+.5,N=h-.5,j=M?p+T+.5:p+.5,V=o._topdefs.selectAll(\"#\"+R).data(M||L?[0]:[]);if(V.exit().remove(),V.enter().append(\"clipPath\").attr(\"id\",R).append(\"rect\"),M||L?(this._clipRect=V.select(\"rect\").attr({x:Math.floor(B),y:Math.floor(N),width:Math.ceil(F)-Math.floor(B),height:Math.ceil(j)-Math.floor(N)}),this.container.call(a.setClipUrl,R),this.bg.attr({x:d,y:v,width:g,height:m})):(this.bg.attr({width:0,height:0}),this.container.on(\"wheel\",null).on(\".drag\",null).call(a.setClipUrl,null),delete this._clipRect),M||L){var U=n.behavior.drag().on(\"dragstart\",function(){n.event.sourceEvent.preventDefault()}).on(\"drag\",this._onBoxDrag.bind(this));this.container.on(\"wheel\",null).on(\"wheel\",this._onBoxWheel.bind(this)).on(\".drag\",null).call(U);var q=n.behavior.drag().on(\"dragstart\",function(){n.event.sourceEvent.preventDefault(),n.event.sourceEvent.stopPropagation()}).on(\"drag\",this._onBarDrag.bind(this));M&&this.hbar.on(\".drag\",null).call(q),L&&this.vbar.on(\".drag\",null).call(q)}this.setTranslate(e,r)},s.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on(\"wheel\",null).on(\".drag\",null).call(a.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(\".drag\",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(\".drag\",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)},s.prototype._onBoxDrag=function(){var t=this.translateX,e=this.translateY;this.hbar&&(t-=n.event.dx),this.vbar&&(e-=n.event.dy),this.setTranslate(t,e)},s.prototype._onBoxWheel=function(){var t=this.translateX,e=this.translateY;this.hbar&&(t+=n.event.deltaY),this.vbar&&(e+=n.event.deltaY),this.setTranslate(t,e)},s.prototype._onBarDrag=function(){var t=this.translateX,e=this.translateY;if(this.hbar){var r=t+this._hbarXMin,i=r+this._hbarTranslateMax;t=(o.constrain(n.event.x,r,i)-r)/(i-r)*(this.position.w-this._box.w)}if(this.vbar){var a=e+this._vbarYMin,s=a+this._vbarTranslateMax;e=(o.constrain(n.event.y,a,s)-a)/(s-a)*(this.position.h-this._box.h)}this.setTranslate(t,e)},s.prototype.setTranslate=function(t,e){var r=this.position.w-this._box.w,n=this.position.h-this._box.h;if(t=o.constrain(t||0,0,r),e=o.constrain(e||0,0,n),this.translateX=t,this.translateY=e,this.container.call(a.setTranslate,this._box.l-this.position.l-t,this._box.t-this.position.t-e),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+t-.5),y:Math.floor(this.position.t+e-.5)}),this.hbar){var i=t/r;this.hbar.call(a.setTranslate,t+i*this._hbarTranslateMax,e)}if(this.vbar){var s=e/n;this.vbar.call(a.setTranslate,t,e+s*this._vbarTranslateMax)}}},{\"../../lib\":696,\"../color\":570,\"../drawing\":595,d3:148}],668:[function(t,e,r){\"use strict\";e.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,MID_SHIFT:.35,OPPOSITE_SIDE:{left:\"right\",right:\"left\",top:\"bottom\",bottom:\"top\"}}},{}],669:[function(t,e,r){\"use strict\";e.exports={COMPARISON_OPS:[\"=\",\"!=\",\"<\",\">=\",\">\",\"<=\"],COMPARISON_OPS2:[\"=\",\"<\",\">=\",\">\",\"<=\"],INTERVAL_OPS:[\"[]\",\"()\",\"[)\",\"(]\",\"][\",\")(\",\"](\",\")[\"],SET_OPS:[\"{}\",\"}{\"],CONSTRAINT_REDUCTION:{\"=\":\"=\",\"<\":\"<\",\"<=\":\"<\",\">\":\">\",\">=\":\">\",\"[]\":\"[]\",\"()\":\"[]\",\"[)\":\"[]\",\"(]\":\"[]\",\"][\":\"][\",\")(\":\"][\",\"](\":\"][\",\")[\":\"][\"}}},{}],670:[function(t,e,r){\"use strict\";e.exports={solid:[[],0],dot:[[.5,1],200],dash:[[.5,1],50],longdash:[[.5,1],10],dashdot:[[.5,.625,.875,1],50],longdashdot:[[.5,.7,.8,1],10]}},{}],671:[function(t,e,r){\"use strict\";e.exports={circle:\"\\u25cf\",\"circle-open\":\"\\u25cb\",square:\"\\u25a0\",\"square-open\":\"\\u25a1\",diamond:\"\\u25c6\",\"diamond-open\":\"\\u25c7\",cross:\"+\",x:\"\\u274c\"}},{}],672:[function(t,e,r){\"use strict\";e.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DBLCLICKDELAY:300,DESELECTDIM:.2}},{}],673:[function(t,e,r){\"use strict\";e.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE/1e4,ONEAVGYEAR:315576e5,ONEAVGMONTH:26298e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,EPOCHJD:2440587.5,ALMOST_EQUAL:1-1e-6,LOG_CLIP:10,MINUS_SIGN:\"\\u2212\"}},{}],674:[function(t,e,r){\"use strict\";r.xmlns=\"http://www.w3.org/2000/xmlns/\",r.svg=\"http://www.w3.org/2000/svg\",r.xlink=\"http://www.w3.org/1999/xlink\",r.svgAttrs={xmlns:r.svg,\"xmlns:xlink\":r.xlink}},{}],675:[function(t,e,r){\"use strict\";r.version=\"1.42.5\",t(\"es6-promise\").polyfill(),t(\"../build/plotcss\"),t(\"./fonts/mathjax_config\");for(var n=t(\"./registry\"),i=r.register=n.register,a=t(\"./plot_api\"),o=Object.keys(a),s=0;s<o.length;s++){var l=o[s];r[l]=a[l],i({moduleType:\"apiMethod\",name:l,fn:a[l]})}i(t(\"./traces/scatter\")),i([t(\"./components/fx\"),t(\"./components/legend\"),t(\"./components/annotations\"),t(\"./components/annotations3d\"),t(\"./components/shapes\"),t(\"./components/images\"),t(\"./components/updatemenus\"),t(\"./components/sliders\"),t(\"./components/rangeslider\"),t(\"./components/rangeselector\"),t(\"./components/grid\"),t(\"./components/errorbars\")]),i([t(\"./locale-en\"),t(\"./locale-en-us\")]),r.Icons=t(\"../build/ploticon\"),r.Plots=t(\"./plots/plots\"),r.Fx=t(\"./components/fx\"),r.Snapshot=t(\"./snapshot\"),r.PlotSchema=t(\"./plot_api/plot_schema\"),r.Queue=t(\"./lib/queue\"),r.d3=t(\"d3\")},{\"../build/plotcss\":1,\"../build/ploticon\":2,\"./components/annotations\":561,\"./components/annotations3d\":566,\"./components/errorbars\":601,\"./components/fx\":612,\"./components/grid\":616,\"./components/images\":621,\"./components/legend\":630,\"./components/rangeselector\":641,\"./components/rangeslider\":647,\"./components/shapes\":655,\"./components/sliders\":660,\"./components/updatemenus\":666,\"./fonts/mathjax_config\":676,\"./lib/queue\":711,\"./locale-en\":725,\"./locale-en-us\":724,\"./plot_api\":729,\"./plot_api/plot_schema\":733,\"./plots/plots\":808,\"./registry\":827,\"./snapshot\":832,\"./traces/scatter\":1055,d3:148,\"es6-promise\":203}],676:[function(t,e,r){\"use strict\";\"undefined\"!=typeof MathJax?(r.MathJax=!0,\"local\"!==(window.PlotlyConfig||{}).MathJaxConfig&&(MathJax.Hub.Config({messageStyle:\"none\",skipStartupTypeset:!0,displayAlign:\"left\",tex2jax:{inlineMath:[[\"$\",\"$\"],[\"\\\\(\",\"\\\\)\"]]}}),MathJax.Hub.Configured())):r.MathJax=!1},{}],677:[function(t,e,r){\"use strict\";var n=t(\"./mod\"),i=n.mod,a=n.modHalf,o=Math.PI,s=2*o;function l(t){return Math.abs(t[1]-t[0])>s-1e-15}function c(t,e){return a(e-t,s)}function u(t,e){if(l(e))return!0;var r,n;e[0]<e[1]?(r=e[0],n=e[1]):(r=e[1],n=e[0]),(r=i(r,s))>(n=i(n,s))&&(n+=s);var a=i(t,s),o=a+s;return a>=r&&a<=n||o>=r&&o<=n}function f(t,e,r,n,i,a,c){i=i||0,a=a||0;var u,f,h,p,d,g=l([r,n]);function v(t,e){return[t*Math.cos(e)+i,a-t*Math.sin(e)]}g?(u=0,f=o,h=s):r<n?(u=r,h=n):(u=n,h=r),t<e?(p=t,d=e):(p=e,d=t);var m,y=Math.abs(h-u)<=o?0:1;function x(t,e,r){return\"A\"+[t,t]+\" \"+[0,y,r]+\" \"+v(t,e)}return g?m=null===p?\"M\"+v(d,u)+x(d,f,0)+x(d,h,0)+\"Z\":\"M\"+v(p,u)+x(p,f,0)+x(p,h,0)+\"ZM\"+v(d,u)+x(d,f,1)+x(d,h,1)+\"Z\":null===p?(m=\"M\"+v(d,u)+x(d,h,0),c&&(m+=\"L0,0Z\")):m=\"M\"+v(p,u)+\"L\"+v(d,u)+x(d,h,0)+\"L\"+v(p,h)+x(p,u,1)+\"Z\",m}e.exports={deg2rad:function(t){return t/180*o},rad2deg:function(t){return t/o*180},angleDelta:c,angleDist:function(t,e){return Math.abs(c(t,e))},isFullCircle:l,isAngleInsideSector:u,isPtInsideSector:function(t,e,r,n){return!!u(e,n)&&(r[0]<r[1]?(i=r[0],a=r[1]):(i=r[1],a=r[0]),t>=i&&t<=a);var i,a},pathArc:function(t,e,r,n,i){return f(null,t,e,r,n,i,0)},pathSector:function(t,e,r,n,i){return f(null,t,e,r,n,i,1)},pathAnnulus:function(t,e,r,n,i,a){return f(t,e,r,n,i,a,1)}}},{\"./mod\":703}],678:[function(t,e,r){\"use strict\";var n=Array.isArray,i=\"undefined\"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer:{isView:function(){return!1}},a=\"undefined\"==typeof DataView?function(){}:DataView;function o(t){return i.isView(t)&&!(t instanceof a)}function s(t){return n(t)||o(t)}r.isTypedArray=o,r.isArrayOrTypedArray=s,r.isArray1D=function(t){return!s(t[0])},r.ensureArray=function(t,e){return n(t)||(t=[]),t.length=e,t},r.concat=function(){var t,e,r,i,a,o,s,l,c=[],u=!0,f=0;for(r=0;r<arguments.length;r++)(o=(i=arguments[r]).length)&&(e?c.push(i):(e=i,a=o),n(i)?t=!1:(u=!1,f?t!==i.constructor&&(t=!1):t=i.constructor),f+=o);if(!f)return[];if(!c.length)return e;if(u)return e.concat.apply(e,c);if(t){for((s=new t(f)).set(e),r=0;r<c.length;r++)i=c[r],s.set(i,a),a+=i.length;return s}for(s=new Array(f),l=0;l<e.length;l++)s[l]=e[l];for(r=0;r<c.length;r++){for(i=c[r],l=0;l<i.length;l++)s[a+l]=i[l];a+=l}return s}},{}],679:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../constants/numerical\").BADNUM,a=/^['\"%,$#\\s']+|[, ]|['\"%,$#\\s']+$/g;e.exports=function(t){return\"string\"==typeof t&&(t=t.replace(a,\"\")),n(t)?Number(t):i}},{\"../constants/numerical\":673,\"fast-isnumeric\":214}],680:[function(t,e,r){\"use strict\";e.exports=function(t){var e=t._fullLayout;e._glcanvas&&e._glcanvas.size()&&e._glcanvas.each(function(t){t.regl&&t.regl.clear({color:!0,depth:!0})})}},{}],681:[function(t,e,r){\"use strict\";e.exports=function(t){t._responsiveChartHandler&&(window.removeEventListener(\"resize\",t._responsiveChartHandler),delete t._responsiveChartHandler)}},{}],682:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"tinycolor2\"),a=t(\"../plots/attributes\"),o=t(\"../components/colorscale/get_scale\"),s=(Object.keys(t(\"../components/colorscale/scales\")),t(\"./nested_property\")),l=t(\"./regex\").counter,c=t(\"../constants/interactions\").DESELECTDIM,u=t(\"./mod\").modHalf,f=t(\"./array\").isArrayOrTypedArray;function h(t,e){var n=r.valObjectMeta[e.valType];if(e.arrayOk&&f(t))return!0;if(n.validateFunction)return n.validateFunction(t,e);var i={},a=i,o={set:function(t){a=t}};return n.coerceFunction(t,o,i,e),a!==i}r.valObjectMeta={data_array:{coerceFunction:function(t,e,r){f(t)?e.set(t):void 0!==r&&e.set(r)}},enumerated:{coerceFunction:function(t,e,r,n){n.coerceNumber&&(t=+t),-1===n.values.indexOf(t)?e.set(r):e.set(t)},validateFunction:function(t,e){e.coerceNumber&&(t=+t);for(var r=e.values,n=0;n<r.length;n++){var i=String(r[n]);if(\"/\"===i.charAt(0)&&\"/\"===i.charAt(i.length-1)){if(new RegExp(i.substr(1,i.length-2)).test(t))return!0}else if(t===r[n])return!0}return!1}},boolean:{coerceFunction:function(t,e,r){!0===t||!1===t?e.set(t):e.set(r)}},number:{coerceFunction:function(t,e,r,i){!n(t)||void 0!==i.min&&t<i.min||void 0!==i.max&&t>i.max?e.set(r):e.set(+t)}},integer:{coerceFunction:function(t,e,r,i){t%1||!n(t)||void 0!==i.min&&t<i.min||void 0!==i.max&&t>i.max?e.set(r):e.set(+t)}},string:{coerceFunction:function(t,e,r,n){if(\"string\"!=typeof t){var i=\"number\"==typeof t;!0!==n.strict&&i?e.set(String(t)):e.set(r)}else n.noBlank&&!t?e.set(r):e.set(t)}},color:{coerceFunction:function(t,e,r){i(t).isValid()?e.set(t):e.set(r)}},colorlist:{coerceFunction:function(t,e,r){Array.isArray(t)&&t.length&&t.every(function(t){return i(t).isValid()})?e.set(t):e.set(r)}},colorscale:{coerceFunction:function(t,e,r){e.set(o(t,r))}},angle:{coerceFunction:function(t,e,r){\"auto\"===t?e.set(\"auto\"):n(t)?e.set(u(+t,360)):e.set(r)}},subplotid:{coerceFunction:function(t,e,r,n){var i=n.regex||l(r);\"string\"==typeof t&&i.test(t)?e.set(t):e.set(r)},validateFunction:function(t,e){var r=e.dflt;return t===r||\"string\"==typeof t&&!!l(r).test(t)}},flaglist:{coerceFunction:function(t,e,r,n){if(\"string\"==typeof t)if(-1===(n.extras||[]).indexOf(t)){for(var i=t.split(\"+\"),a=0;a<i.length;){var o=i[a];-1===n.flags.indexOf(o)||i.indexOf(o)<a?i.splice(a,1):a++}i.length?e.set(i.join(\"+\")):e.set(r)}else e.set(t);else e.set(r)}},any:{coerceFunction:function(t,e,r){void 0===t?e.set(r):e.set(t)}},info_array:{coerceFunction:function(t,e,n,i){function a(t,e,n){var i,a={set:function(t){i=t}};return void 0===n&&(n=e.dflt),r.valObjectMeta[e.valType].coerceFunction(t,a,n,e),i}var o=2===i.dimensions||\"1-2\"===i.dimensions&&Array.isArray(t)&&Array.isArray(t[0]);if(Array.isArray(t)){var s,l,c,u,f,h,p=i.items,d=[],g=Array.isArray(p),v=g&&o&&Array.isArray(p[0]),m=o&&g&&!v,y=g&&!m?p.length:t.length;if(n=Array.isArray(n)?n:[],o)for(s=0;s<y;s++)for(d[s]=[],c=Array.isArray(t[s])?t[s]:[],f=m?p.length:g?p[s].length:c.length,l=0;l<f;l++)u=m?p[l]:g?p[s][l]:p,void 0!==(h=a(c[l],u,(n[s]||[])[l]))&&(d[s][l]=h);else for(s=0;s<y;s++)void 0!==(h=a(t[s],g?p[s]:p,n[s]))&&(d[s]=h);e.set(d)}else e.set(n)},validateFunction:function(t,e){if(!Array.isArray(t))return!1;var r=e.items,n=Array.isArray(r),i=2===e.dimensions;if(!e.freeLength&&t.length!==r.length)return!1;for(var a=0;a<t.length;a++)if(i){if(!Array.isArray(t[a])||!e.freeLength&&t[a].length!==r[a].length)return!1;for(var o=0;o<t[a].length;o++)if(!h(t[a][o],n?r[a][o]:r))return!1}else if(!h(t[a],n?r[a]:r))return!1;return!0}}},r.coerce=function(t,e,n,i,a){var o=s(n,i).get(),l=s(t,i),c=s(e,i),u=l.get(),p=e._template;if(void 0===u&&p&&(u=s(p,i).get(),p=0),void 0===a&&(a=o.dflt),o.arrayOk&&f(u))return c.set(u),u;var d=r.valObjectMeta[o.valType].coerceFunction;d(u,c,a,o);var g=c.get();return p&&g===a&&!h(u,o)&&(d(u=s(p,i).get(),c,a,o),g=c.get()),g},r.coerce2=function(t,e,n,i,a){var o=s(t,i),l=r.coerce(t,e,n,i,a),c=o.get();return null!=c&&l},r.coerceFont=function(t,e,r){var n={};return r=r||{},n.family=t(e+\".family\",r.family),n.size=t(e+\".size\",r.size),n.color=t(e+\".color\",r.color),n},r.coerceHoverinfo=function(t,e,n){var i,o=e._module.attributes,s=o.hoverinfo?o:a,l=s.hoverinfo;if(1===n._dataLength){var c=\"all\"===l.dflt?l.flags.slice():l.dflt.split(\"+\");c.splice(c.indexOf(\"name\"),1),i=c.join(\"+\")}return r.coerce(t,e,s,\"hoverinfo\",i)},r.coerceSelectionMarkerOpacity=function(t,e){if(t.marker){var r,n,i=t.marker.opacity;if(void 0!==i)f(i)||t.selected||t.unselected||(r=i,n=c*i),e(\"selected.marker.opacity\",r),e(\"unselected.marker.opacity\",n)}},r.validate=h},{\"../components/colorscale/get_scale\":583,\"../components/colorscale/scales\":589,\"../constants/interactions\":672,\"../plots/attributes\":741,\"./array\":678,\"./mod\":703,\"./nested_property\":704,\"./regex\":712,\"fast-isnumeric\":214,tinycolor2:514}],683:[function(t,e,r){\"use strict\";var n,i,a=t(\"d3\"),o=t(\"fast-isnumeric\"),s=t(\"./loggers\"),l=t(\"./mod\").mod,c=t(\"../constants/numerical\"),u=c.BADNUM,f=c.ONEDAY,h=c.ONEHOUR,p=c.ONEMIN,d=c.ONESEC,g=c.EPOCHJD,v=t(\"../registry\"),m=a.time.format.utc,y=/^\\s*(-?\\d\\d\\d\\d|\\d\\d)(-(\\d?\\d)(-(\\d?\\d)([ Tt]([01]?\\d|2[0-3])(:([0-5]\\d)(:([0-5]\\d(\\.\\d+)?))?(Z|z|[+\\-]\\d\\d:?\\d\\d)?)?)?)?)?\\s*$/m,x=/^\\s*(-?\\d\\d\\d\\d|\\d\\d)(-(\\d?\\di?)(-(\\d?\\d)([ Tt]([01]?\\d|2[0-3])(:([0-5]\\d)(:([0-5]\\d(\\.\\d+)?))?(Z|z|[+\\-]\\d\\d:?\\d\\d)?)?)?)?)?\\s*$/m,b=(new Date).getFullYear()-70;function _(t){return t&&v.componentsRegistry.calendars&&\"string\"==typeof t&&\"gregorian\"!==t}function w(t,e){return String(t+Math.pow(10,e)).substr(1)}r.dateTick0=function(t,e){return _(t)?e?v.getComponentMethod(\"calendars\",\"CANONICAL_SUNDAY\")[t]:v.getComponentMethod(\"calendars\",\"CANONICAL_TICK\")[t]:e?\"2000-01-02\":\"2000-01-01\"},r.dfltRange=function(t){return _(t)?v.getComponentMethod(\"calendars\",\"DFLTRANGE\")[t]:[\"2000-01-01\",\"2001-01-01\"]},r.isJSDate=function(t){return\"object\"==typeof t&&null!==t&&\"function\"==typeof t.getTime},r.dateTime2ms=function(t,e){if(r.isJSDate(t)){var a=t.getTimezoneOffset()*p,o=(t.getUTCMinutes()-t.getMinutes())*p+(t.getUTCSeconds()-t.getSeconds())*d+(t.getUTCMilliseconds()-t.getMilliseconds());if(o){var s=3*p;a=a-s/2+l(o-a+s/2,s)}return(t=Number(t)-a)>=n&&t<=i?t:u}if(\"string\"!=typeof t&&\"number\"!=typeof t)return u;t=String(t);var c=_(e),m=t.charAt(0);!c||\"G\"!==m&&\"g\"!==m||(t=t.substr(1),e=\"\");var w=c&&\"chinese\"===e.substr(0,7),k=t.match(w?x:y);if(!k)return u;var M=k[1],A=k[3]||\"1\",T=Number(k[5]||1),S=Number(k[7]||0),E=Number(k[9]||0),C=Number(k[11]||0);if(c){if(2===M.length)return u;var L;M=Number(M);try{var z=v.getComponentMethod(\"calendars\",\"getCal\")(e);if(w){var O=\"i\"===A.charAt(A.length-1);A=parseInt(A,10),L=z.newDate(M,z.toMonthIndex(M,A,O),T)}else L=z.newDate(M,Number(A),T)}catch(t){return u}return L?(L.toJD()-g)*f+S*h+E*p+C*d:u}M=2===M.length?(Number(M)+2e3-b)%100+b:Number(M),A-=1;var I=new Date(Date.UTC(2e3,A,T,S,E));return I.setUTCFullYear(M),I.getUTCMonth()!==A?u:I.getUTCDate()!==T?u:I.getTime()+C*d},n=r.MIN_MS=r.dateTime2ms(\"-9999\"),i=r.MAX_MS=r.dateTime2ms(\"9999-12-31 23:59:59.9999\"),r.isDateTime=function(t,e){return r.dateTime2ms(t,e)!==u};var k=90*f,M=3*h,A=5*p;function T(t,e,r,n,i){if((e||r||n||i)&&(t+=\" \"+w(e,2)+\":\"+w(r,2),(n||i)&&(t+=\":\"+w(n,2),i))){for(var a=4;i%10==0;)a-=1,i/=10;t+=\".\"+w(i,a)}return t}r.ms2DateTime=function(t,e,r){if(\"number\"!=typeof t||!(t>=n&&t<=i))return u;e||(e=0);var a,o,s,c,y,x,b=Math.floor(10*l(t+.05,1)),w=Math.round(t-b/10);if(_(r)){var S=Math.floor(w/f)+g,E=Math.floor(l(t,f));try{a=v.getComponentMethod(\"calendars\",\"getCal\")(r).fromJD(S).formatDate(\"yyyy-mm-dd\")}catch(t){a=m(\"G%Y-%m-%d\")(new Date(w))}if(\"-\"===a.charAt(0))for(;a.length<11;)a=\"-0\"+a.substr(1);else for(;a.length<10;)a=\"0\"+a;o=e<k?Math.floor(E/h):0,s=e<k?Math.floor(E%h/p):0,c=e<M?Math.floor(E%p/d):0,y=e<A?E%d*10+b:0}else x=new Date(w),a=m(\"%Y-%m-%d\")(x),o=e<k?x.getUTCHours():0,s=e<k?x.getUTCMinutes():0,c=e<M?x.getUTCSeconds():0,y=e<A?10*x.getUTCMilliseconds()+b:0;return T(a,o,s,c,y)},r.ms2DateTimeLocal=function(t){if(!(t>=n+f&&t<=i-f))return u;var e=Math.floor(10*l(t+.05,1)),r=new Date(Math.round(t-e/10));return T(a.time.format(\"%Y-%m-%d\")(r),r.getHours(),r.getMinutes(),r.getSeconds(),10*r.getUTCMilliseconds()+e)},r.cleanDate=function(t,e,n){if(t===u)return e;if(r.isJSDate(t)||\"number\"==typeof t&&isFinite(t)){if(_(n))return s.error(\"JS Dates and milliseconds are incompatible with world calendars\",t),e;if(!(t=r.ms2DateTimeLocal(+t))&&void 0!==e)return e}else if(!r.isDateTime(t,n))return s.error(\"unrecognized date\",t),e;return t};var S=/%\\d?f/g;function E(t,e,r,n){t=t.replace(S,function(t){var r=Math.min(+t.charAt(1)||6,6);return(e/1e3%1+2).toFixed(r).substr(2).replace(/0+$/,\"\")||\"0\"});var i=new Date(Math.floor(e+.05));if(_(n))try{t=v.getComponentMethod(\"calendars\",\"worldCalFmt\")(t,e,n)}catch(t){return\"Invalid\"}return r(t)(i)}var C=[59,59.9,59.99,59.999,59.9999];r.formatDate=function(t,e,r,n,i,a){if(i=_(i)&&i,!e)if(\"y\"===r)e=a.year;else if(\"m\"===r)e=a.month;else{if(\"d\"!==r)return function(t,e){var r=l(t+.05,f),n=w(Math.floor(r/h),2)+\":\"+w(l(Math.floor(r/p),60),2);if(\"M\"!==e){o(e)||(e=0);var i=(100+Math.min(l(t/d,60),C[e])).toFixed(e).substr(1);e>0&&(i=i.replace(/0+$/,\"\").replace(/[\\.]$/,\"\")),n+=\":\"+i}return n}(t,r)+\"\\n\"+E(a.dayMonthYear,t,n,i);e=a.dayMonth+\"\\n\"+a.year}return E(e,t,n,i)};var L=3*f;r.incrementMonth=function(t,e,r){r=_(r)&&r;var n=l(t,f);if(t=Math.round(t-n),r)try{var i=Math.round(t/f)+g,a=v.getComponentMethod(\"calendars\",\"getCal\")(r),o=a.fromJD(i);return e%12?a.add(o,e,\"m\"):a.add(o,e/12,\"y\"),(o.toJD()-g)*f+n}catch(e){s.error(\"invalid ms \"+t+\" in calendar \"+r)}var c=new Date(t+L);return c.setUTCMonth(c.getUTCMonth()+e)+n-L},r.findExactDates=function(t,e){for(var r,n,i=0,a=0,s=0,l=0,c=_(e)&&v.getComponentMethod(\"calendars\",\"getCal\")(e),u=0;u<t.length;u++)if(n=t[u],o(n)){if(!(n%f))if(c)try{1===(r=c.fromJD(n/f+g)).day()?1===r.month()?i++:a++:s++}catch(t){}else 1===(r=new Date(n)).getUTCDate()?0===r.getUTCMonth()?i++:a++:s++}else l++;s+=a+=i;var h=t.length-l;return{exactYears:i/h,exactMonths:a/h,exactDays:s/h}}},{\"../constants/numerical\":673,\"../registry\":827,\"./loggers\":700,\"./mod\":703,d3:148,\"fast-isnumeric\":214}],684:[function(t,e,r){\"use strict\";var n=t(\"events\").EventEmitter,i={init:function(t){if(t._ev instanceof n)return t;var e=new n,r=new n;return t._ev=e,t._internalEv=r,t.on=e.on.bind(e),t.once=e.once.bind(e),t.removeListener=e.removeListener.bind(e),t.removeAllListeners=e.removeAllListeners.bind(e),t._internalOn=r.on.bind(r),t._internalOnce=r.once.bind(r),t._removeInternalListener=r.removeListener.bind(r),t._removeAllInternalListeners=r.removeAllListeners.bind(r),t.emit=function(n,i){\"undefined\"!=typeof jQuery&&jQuery(t).trigger(n,i),e.emit(n,i),r.emit(n,i)},t},triggerHandler:function(t,e,r){var n,i;\"undefined\"!=typeof jQuery&&(n=jQuery(t).triggerHandler(e,r));var a=t._ev;if(!a)return n;var o,s=a._events[e];if(!s)return n;function l(t){return t.listener?(a.removeListener(e,t.listener),t.fired?void 0:(t.fired=!0,t.listener.apply(a,[r]))):t.apply(a,[r])}for(s=Array.isArray(s)?s:[s],o=0;o<s.length-1;o++)l(s[o]);return i=l(s[o]),void 0!==n?n:i},purge:function(t){return delete t._ev,delete t.on,delete t.once,delete t.removeListener,delete t.removeAllListeners,delete t.emit,delete t._ev,delete t._internalEv,delete t._internalOn,delete t._internalOnce,delete t._removeInternalListener,delete t._removeAllInternalListeners,t}};e.exports=i},{events:92}],685:[function(t,e,r){\"use strict\";var n=t(\"./is_plain_object.js\"),i=Array.isArray;function a(t,e,r,o){var s,l,c,u,f,h,p=t[0],d=t.length;if(2===d&&i(p)&&i(t[1])&&0===p.length){if(function(t,e){var r,n;for(r=0;r<t.length;r++){if(null!==(n=t[r])&&\"object\"==typeof n)return!1;void 0!==n&&(e[r]=n)}return!0}(t[1],p))return p;p.splice(0,p.length)}for(var g=1;g<d;g++)for(l in s=t[g])c=p[l],u=s[l],o&&i(u)?p[l]=u:e&&u&&(n(u)||(f=i(u)))?(f?(f=!1,h=c&&i(c)?c:[]):h=c&&n(c)?c:{},p[l]=a([h,u],e,r,o)):(\"undefined\"!=typeof u||r)&&(p[l]=u);return p}r.extendFlat=function(){return a(arguments,!1,!1,!1)},r.extendDeep=function(){return a(arguments,!0,!1,!1)},r.extendDeepAll=function(){return a(arguments,!0,!0,!1)},r.extendDeepNoArrays=function(){return a(arguments,!0,!1,!0)}},{\"./is_plain_object.js\":697}],686:[function(t,e,r){\"use strict\";e.exports=function(t){for(var e={},r=[],n=0,i=0;i<t.length;i++){var a=t[i];1!==e[a]&&(e[a]=1,r[n++]=a)}return r}},{}],687:[function(t,e,r){\"use strict\";function n(t){return!0===t.visible}function i(t){return!0===t[0].trace.visible}e.exports=function(t){for(var e,r=(e=t,Array.isArray(e)&&Array.isArray(e[0])&&e[0][0]&&e[0][0].trace?i:n),a=[],o=0;o<t.length;o++){var s=t[o];r(s)&&a.push(s)}return a}},{}],688:[function(t,e,r){\"use strict\";var n=t(\"country-regex\"),i=t(\"../lib\"),a=Object.keys(n),o={\"ISO-3\":i.identity,\"USA-states\":i.identity,\"country names\":function(t){for(var e=0;e<a.length;e++){var r=a[e],o=new RegExp(n[r]);if(o.test(t.trim().toLowerCase()))return r}return i.log(\"Unrecognized country name: \"+t+\".\"),!1}};r.locationToFeature=function(t,e,r){if(!e||\"string\"!=typeof e)return!1;var n=function(t,e){return(0,o[t])(e)}(t,e);if(n){for(var a=0;a<r.length;a++){var s=r[a];if(s.id===n)return s}i.log([\"Location with id\",n,\"does not have a matching topojson feature at this resolution.\"].join(\" \"))}return!1}},{\"../lib\":696,\"country-regex\":122}],689:[function(t,e,r){\"use strict\";var n=t(\"../constants/numerical\").BADNUM;r.calcTraceToLineCoords=function(t){for(var e=t[0].trace.connectgaps,r=[],i=[],a=0;a<t.length;a++){var o=t[a].lonlat;o[0]!==n?i.push(o):!e&&i.length>0&&(r.push(i),i=[])}return i.length>0&&r.push(i),r},r.makeLine=function(t){return 1===t.length?{type:\"LineString\",coordinates:t[0]}:{type:\"MultiLineString\",coordinates:t}},r.makePolygon=function(t){if(1===t.length)return{type:\"Polygon\",coordinates:t};for(var e=new Array(t.length),r=0;r<t.length;r++)e[r]=[t[r]];return{type:\"MultiPolygon\",coordinates:e}},r.makeBlank=function(){return{type:\"Point\",coordinates:[]}}},{\"../constants/numerical\":673}],690:[function(t,e,r){\"use strict\";var n,i,a,o=t(\"./mod\").mod;function s(t,e,r,n,i,a,o,s){var l=r-t,c=i-t,u=o-i,f=n-e,h=a-e,p=s-a,d=l*p-u*f;if(0===d)return null;var g=(c*p-u*h)/d,v=(c*f-l*h)/d;return v<0||v>1||g<0||g>1?null:{x:t+l*g,y:e+f*g}}function l(t,e,r,n,i){var a=n*t+i*e;if(a<0)return n*n+i*i;if(a>r){var o=n-t,s=i-e;return o*o+s*s}var l=n*e-i*t;return l*l/r}r.segmentsIntersect=s,r.segmentDistance=function(t,e,r,n,i,a,o,c){if(s(t,e,r,n,i,a,o,c))return 0;var u=r-t,f=n-e,h=o-i,p=c-a,d=u*u+f*f,g=h*h+p*p,v=Math.min(l(u,f,d,i-t,a-e),l(u,f,d,o-t,c-e),l(h,p,g,t-i,e-a),l(h,p,g,r-i,n-a));return Math.sqrt(v)},r.getTextLocation=function(t,e,r,s){if(t===i&&s===a||(n={},i=t,a=s),n[r])return n[r];var l=t.getPointAtLength(o(r-s/2,e)),c=t.getPointAtLength(o(r+s/2,e)),u=Math.atan((c.y-l.y)/(c.x-l.x)),f=t.getPointAtLength(o(r,e)),h={x:(4*f.x+l.x+c.x)/6,y:(4*f.y+l.y+c.y)/6,theta:u};return n[r]=h,h},r.clearLocationCache=function(){i=null},r.getVisibleSegment=function(t,e,r){var n,i,a=e.left,o=e.right,s=e.top,l=e.bottom,c=0,u=t.getTotalLength(),f=u;function h(e){var r=t.getPointAtLength(e);0===e?n=r:e===u&&(i=r);var c=r.x<a?a-r.x:r.x>o?r.x-o:0,f=r.y<s?s-r.y:r.y>l?r.y-l:0;return Math.sqrt(c*c+f*f)}for(var p=h(c);p;){if((c+=p+r)>f)return;p=h(c)}for(p=h(f);p;){if(c>(f-=p+r))return;p=h(f)}return{min:c,max:f,len:f-c,total:u,isClosed:0===c&&f===u&&Math.abs(n.x-i.x)<.1&&Math.abs(n.y-i.y)<.1}},r.findPointOnPath=function(t,e,r,n){for(var i,a,o,s=(n=n||{}).pathLength||t.getTotalLength(),l=n.tolerance||.001,c=n.iterationLimit||30,u=t.getPointAtLength(0)[r]>t.getPointAtLength(s)[r]?-1:1,f=0,h=0,p=s;f<c;){if(i=(h+p)/2,o=(a=t.getPointAtLength(i))[r]-e,Math.abs(o)<l)return a;u*o>0?p=i:h=i,f++}return a}},{\"./mod\":703}],691:[function(t,e,r){\"use strict\";e.exports=function(t){var e;if(\"string\"==typeof t){if(null===(e=document.getElementById(t)))throw new Error(\"No DOM element with id '\"+t+\"' exists on the page.\");return e}if(null==t)throw new Error(\"DOM element provided is null or undefined\");return t}},{}],692:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"tinycolor2\"),a=t(\"color-normalize\"),o=t(\"../components/colorscale\"),s=t(\"../components/color/attributes\").defaultLine,l=t(\"./array\").isArrayOrTypedArray,c=a(s),u=1;function f(t,e){var r=t;return r[3]*=e,r}function h(t){if(n(t))return c;var e=a(t);return e.length?e:c}function p(t){return n(t)?t:u}e.exports={formatColor:function(t,e,r){var n,i,s,d,g,v=t.color,m=l(v),y=l(e),x=[];if(n=void 0!==t.colorscale?o.makeColorScaleFunc(o.extractScale(t.colorscale,t.cmin,t.cmax)):h,i=m?function(t,e){return void 0===t[e]?c:a(n(t[e]))}:h,s=y?function(t,e){return void 0===t[e]?u:p(t[e])}:p,m||y)for(var b=0;b<r;b++)d=i(v,b),g=s(e,b),x[b]=f(d,g);else x=f(a(v),e);return x},parseColorScale:function(t,e){return void 0===e&&(e=1),t.map(function(t){var r=t[0],n=i(t[1]).toRgb();return{index:r,rgb:[n.r,n.g,n.b,e]}})}}},{\"../components/color/attributes\":569,\"../components/colorscale\":585,\"./array\":678,\"color-normalize\":108,\"fast-isnumeric\":214,tinycolor2:514}],693:[function(t,e,r){\"use strict\";var n=t(\"./identity\");function i(t){return[t]}e.exports={keyFun:function(t){return t.key},repeat:i,descend:n,wrap:i,unwrap:function(t){return t[0]}}},{\"./identity\":695}],694:[function(t,e,r){\"use strict\";var n=t(\"superscript-text\"),i=t(\"./svg_text_utils\").convertEntities;e.exports=function(t){return\"\"+i(function(t){return t.replace(/\\<.*\\>/g,\"\")}(function(t){for(var e=0;(e=t.indexOf(\"<sup>\",e))>=0;){var r=t.indexOf(\"</sup>\",e);if(r<e)break;t=t.slice(0,e)+n(t.slice(e+5,r))+t.slice(r+6)}return t}(t.replace(/\\<br\\>/g,\"\\n\"))))}},{\"./svg_text_utils\":720,\"superscript-text\":507}],695:[function(t,e,r){\"use strict\";e.exports=function(t){return t}},{}],696:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"fast-isnumeric\"),a=t(\"../constants/numerical\"),o=a.FP_SAFE,s=a.BADNUM,l=e.exports={};l.nestedProperty=t(\"./nested_property\"),l.keyedContainer=t(\"./keyed_container\"),l.relativeAttr=t(\"./relative_attr\"),l.isPlainObject=t(\"./is_plain_object\"),l.toLogRange=t(\"./to_log_range\"),l.relinkPrivateKeys=t(\"./relink_private\");var c=t(\"./array\");l.isTypedArray=c.isTypedArray,l.isArrayOrTypedArray=c.isArrayOrTypedArray,l.isArray1D=c.isArray1D,l.ensureArray=c.ensureArray,l.concat=c.concat;var u=t(\"./mod\");l.mod=u.mod,l.modHalf=u.modHalf;var f=t(\"./coerce\");l.valObjectMeta=f.valObjectMeta,l.coerce=f.coerce,l.coerce2=f.coerce2,l.coerceFont=f.coerceFont,l.coerceHoverinfo=f.coerceHoverinfo,l.coerceSelectionMarkerOpacity=f.coerceSelectionMarkerOpacity,l.validate=f.validate;var h=t(\"./dates\");l.dateTime2ms=h.dateTime2ms,l.isDateTime=h.isDateTime,l.ms2DateTime=h.ms2DateTime,l.ms2DateTimeLocal=h.ms2DateTimeLocal,l.cleanDate=h.cleanDate,l.isJSDate=h.isJSDate,l.formatDate=h.formatDate,l.incrementMonth=h.incrementMonth,l.dateTick0=h.dateTick0,l.dfltRange=h.dfltRange,l.findExactDates=h.findExactDates,l.MIN_MS=h.MIN_MS,l.MAX_MS=h.MAX_MS;var p=t(\"./search\");l.findBin=p.findBin,l.sorterAsc=p.sorterAsc,l.sorterDes=p.sorterDes,l.distinctVals=p.distinctVals,l.roundUp=p.roundUp,l.sort=p.sort,l.findIndexOfMin=p.findIndexOfMin;var d=t(\"./stats\");l.aggNums=d.aggNums,l.len=d.len,l.mean=d.mean,l.midRange=d.midRange,l.variance=d.variance,l.stdev=d.stdev,l.interp=d.interp;var g=t(\"./matrix\");l.init2dArray=g.init2dArray,l.transposeRagged=g.transposeRagged,l.dot=g.dot,l.translationMatrix=g.translationMatrix,l.rotationMatrix=g.rotationMatrix,l.rotationXYMatrix=g.rotationXYMatrix,l.apply2DTransform=g.apply2DTransform,l.apply2DTransform2=g.apply2DTransform2;var v=t(\"./angles\");l.deg2rad=v.deg2rad,l.rad2deg=v.rad2deg,l.angleDelta=v.angleDelta,l.angleDist=v.angleDist,l.isFullCircle=v.isFullCircle,l.isAngleInsideSector=v.isAngleInsideSector,l.isPtInsideSector=v.isPtInsideSector,l.pathArc=v.pathArc,l.pathSector=v.pathSector,l.pathAnnulus=v.pathAnnulus;var m=t(\"./geometry2d\");l.segmentsIntersect=m.segmentsIntersect,l.segmentDistance=m.segmentDistance,l.getTextLocation=m.getTextLocation,l.clearLocationCache=m.clearLocationCache,l.getVisibleSegment=m.getVisibleSegment,l.findPointOnPath=m.findPointOnPath;var y=t(\"./extend\");l.extendFlat=y.extendFlat,l.extendDeep=y.extendDeep,l.extendDeepAll=y.extendDeepAll,l.extendDeepNoArrays=y.extendDeepNoArrays;var x=t(\"./loggers\");l.log=x.log,l.warn=x.warn,l.error=x.error;var b=t(\"./regex\");l.counterRegex=b.counter;var _=t(\"./throttle\");function w(t){var e={};for(var r in t)for(var n=t[r],i=0;i<n.length;i++)e[n[i]]=+r;return e}l.throttle=_.throttle,l.throttleDone=_.done,l.clearThrottle=_.clear,l.getGraphDiv=t(\"./get_graph_div\"),l.clearResponsive=t(\"./clear_responsive\"),l.makeTraceGroups=t(\"./make_trace_groups\"),l._=t(\"./localize\"),l.notifier=t(\"./notifier\"),l.filterUnique=t(\"./filter_unique\"),l.filterVisible=t(\"./filter_visible\"),l.pushUnique=t(\"./push_unique\"),l.cleanNumber=t(\"./clean_number\"),l.ensureNumber=function(t){return i(t)?(t=Number(t))<-o||t>o?s:i(t)?Number(t):s:s},l.isIndex=function(t,e){return!(void 0!==e&&t>=e)&&(i(t)&&t>=0&&t%1==0)},l.noop=t(\"./noop\"),l.identity=t(\"./identity\"),l.repeat=function(t,e){for(var r=new Array(e),n=0;n<e;n++)r[n]=t;return r},l.swapAttrs=function(t,e,r,n){r||(r=\"x\"),n||(n=\"y\");for(var i=0;i<e.length;i++){var a=e[i],o=l.nestedProperty(t,a.replace(\"?\",r)),s=l.nestedProperty(t,a.replace(\"?\",n)),c=o.get();o.set(s.get()),s.set(c)}},l.raiseToTop=function(t){t.parentNode.appendChild(t)},l.cancelTransition=function(t){return t.transition().duration(0)},l.constrain=function(t,e,r){return e>r?Math.max(r,Math.min(e,t)):Math.max(e,Math.min(r,t))},l.bBoxIntersect=function(t,e,r){return r=r||0,t.left<=e.right+r&&e.left<=t.right+r&&t.top<=e.bottom+r&&e.top<=t.bottom+r},l.simpleMap=function(t,e,r,n){for(var i=t.length,a=new Array(i),o=0;o<i;o++)a[o]=e(t[o],r,n);return a},l.randstr=function t(e,r,n,i){if(n||(n=16),void 0===r&&(r=24),r<=0)return\"0\";var a,o,s=Math.log(Math.pow(2,r))/Math.log(n),c=\"\";for(a=2;s===1/0;a*=2)s=Math.log(Math.pow(2,r/a))/Math.log(n)*a;var u=s-Math.floor(s);for(a=0;a<Math.floor(s);a++)c=Math.floor(Math.random()*n).toString(n)+c;u&&(o=Math.pow(n,u),c=Math.floor(Math.random()*o).toString(n)+c);var f=parseInt(c,n);return e&&e[c]||f!==1/0&&f>=Math.pow(2,r)?i>10?(l.warn(\"randstr failed uniqueness\"),c):t(e,r,n,(i||0)+1):c},l.OptionControl=function(t,e){t||(t={}),e||(e=\"opt\");var r={optionList:[],_newoption:function(n){n[e]=t,r[n.name]=n,r.optionList.push(n)}};return r[\"_\"+e]=t,r},l.smooth=function(t,e){if((e=Math.round(e)||0)<2)return t;var r,n,i,a,o=t.length,s=2*o,l=2*e-1,c=new Array(l),u=new Array(o);for(r=0;r<l;r++)c[r]=(1-Math.cos(Math.PI*(r+1)/e))/(2*e);for(r=0;r<o;r++){for(a=0,n=0;n<l;n++)(i=r+n+1-e)<-o?i-=s*Math.round(i/s):i>=s&&(i-=s*Math.floor(i/s)),i<0?i=-1-i:i>=o&&(i=s-1-i),a+=t[i]*c[n];u[r]=a}return u},l.syncOrAsync=function(t,e,r){var n;function i(){return l.syncOrAsync(t,e,r)}for(;t.length;)if((n=(0,t.splice(0,1)[0])(e))&&n.then)return n.then(i).then(void 0,l.promiseError);return r&&r(e)},l.stripTrailingSlash=function(t){return\"/\"===t.substr(-1)?t.substr(0,t.length-1):t},l.noneOrAll=function(t,e,r){if(t){var n,i=!1,a=!0;for(n=0;n<r.length;n++)null!=t[r[n]]?i=!0:a=!1;if(i&&!a)for(n=0;n<r.length;n++)t[r[n]]=e[r[n]]}},l.mergeArray=function(t,e,r){if(l.isArrayOrTypedArray(t))for(var n=Math.min(t.length,e.length),i=0;i<n;i++)e[i][r]=t[i]},l.fillArray=function(t,e,r,n){if(n=n||l.identity,l.isArrayOrTypedArray(t))for(var i=0;i<e.length;i++)e[i][r]=n(t[i])},l.castOption=function(t,e,r,n){n=n||l.identity;var i=l.nestedProperty(t,r).get();return l.isArrayOrTypedArray(i)?Array.isArray(e)&&l.isArrayOrTypedArray(i[e[0]])?n(i[e[0]][e[1]]):n(i[e]):i},l.extractOption=function(t,e,r,n){if(r in t)return t[r];var i=l.nestedProperty(e,n).get();return Array.isArray(i)?void 0:i},l.tagSelected=function(t,e,r){var n,i,a=e.selectedpoints,o=e._indexToPoints;o&&(n=w(o));for(var s=0;s<a.length;s++){var c=a[s];if(l.isIndex(c)){var u=n?n[c]:c,f=r?r[u]:u;void 0!==(i=f)&&i<t.length&&(t[f].selected=1)}}},l.selIndices2selPoints=function(t){var e=t.selectedpoints,r=t._indexToPoints;if(r){for(var n=w(r),i=[],a=0;a<e.length;a++){var o=e[a];if(l.isIndex(o)){var s=n[o];l.isIndex(s)&&i.push(s)}}return i}return e},l.getTargetArray=function(t,e){var r=e.target;if(\"string\"==typeof r&&r){var n=l.nestedProperty(t,r).get();return!!Array.isArray(n)&&n}return!!Array.isArray(r)&&r},l.minExtend=function(t,e){var r={};\"object\"!=typeof e&&(e={});var n,i,a,o=Object.keys(t);for(n=0;n<o.length;n++)a=t[i=o[n]],\"_\"!==i.charAt(0)&&\"function\"!=typeof a&&(\"module\"===i?r[i]=a:Array.isArray(a)?r[i]=a.slice(0,3):r[i]=a&&\"object\"==typeof a?l.minExtend(t[i],e[i]):a);for(o=Object.keys(e),n=0;n<o.length;n++)\"object\"==typeof(a=e[i=o[n]])&&i in r&&\"object\"==typeof r[i]||(r[i]=a);return r},l.titleCase=function(t){return t.charAt(0).toUpperCase()+t.substr(1)},l.containsAny=function(t,e){for(var r=0;r<e.length;r++)if(-1!==t.indexOf(e[r]))return!0;return!1},l.isPlotDiv=function(t){var e=n.select(t);return e.node()instanceof HTMLElement&&e.size()&&e.classed(\"js-plotly-plot\")},l.removeElement=function(t){var e=t&&t.parentNode;e&&e.removeChild(t)},l.addStyleRule=function(t,e){l.addRelatedStyleRule(\"global\",t,e)},l.addRelatedStyleRule=function(t,e,r){var n=\"plotly.js-style-\"+t,i=document.getElementById(n);i||((i=document.createElement(\"style\")).setAttribute(\"id\",n),i.appendChild(document.createTextNode(\"\")),document.head.appendChild(i));var a=i.sheet;a.insertRule?a.insertRule(e+\"{\"+r+\"}\",0):a.addRule?a.addRule(e,r,0):l.warn(\"addStyleRule failed\")},l.deleteRelatedStyleRule=function(t){var e=\"plotly.js-style-\"+t,r=document.getElementById(e);r&&l.removeElement(r)},l.isIE=function(){return\"undefined\"!=typeof window.navigator.msSaveBlob},l.isD3Selection=function(t){return t&&\"function\"==typeof t.classed},l.ensureSingle=function(t,e,r,n){var i=t.select(e+(r?\".\"+r:\"\"));if(i.size())return i;var a=t.append(e);return r&&a.classed(r,!0),n&&a.call(n),a},l.ensureSingleById=function(t,e,r,n){var i=t.select(e+\"#\"+r);if(i.size())return i;var a=t.append(e).attr(\"id\",r);return n&&a.call(n),a},l.objectFromPath=function(t,e){for(var r,n=t.split(\".\"),i=r={},a=0;a<n.length;a++){var o=n[a],s=null,l=n[a].match(/(.*)\\[([0-9]+)\\]/);l?(o=l[1],s=l[2],r=r[o]=[],a===n.length-1?r[s]=e:r[s]={},r=r[s]):(a===n.length-1?r[o]=e:r[o]={},r=r[o])}return i};var k=/^([^\\[\\.]+)\\.(.+)?/,M=/^([^\\.]+)\\[([0-9]+)\\](\\.)?(.+)?/;l.expandObjectPaths=function(t){var e,r,n,i,a,o,s;if(\"object\"==typeof t&&!Array.isArray(t))for(r in t)t.hasOwnProperty(r)&&((e=r.match(k))?(i=t[r],n=e[1],delete t[r],t[n]=l.extendDeepNoArrays(t[n]||{},l.objectFromPath(r,l.expandObjectPaths(i))[n])):(e=r.match(M))?(i=t[r],n=e[1],a=parseInt(e[2]),delete t[r],t[n]=t[n]||[],\".\"===e[3]?(s=e[4],o=t[n][a]=t[n][a]||{},l.extendDeepNoArrays(o,l.objectFromPath(s,l.expandObjectPaths(i)))):t[n][a]=l.expandObjectPaths(i)):t[r]=l.expandObjectPaths(t[r]));return t},l.numSeparate=function(t,e,r){if(r||(r=!1),\"string\"!=typeof e||0===e.length)throw new Error(\"Separator string required for formatting!\");\"number\"==typeof t&&(t=String(t));var n=/(\\d+)(\\d{3})/,i=e.charAt(0),a=e.charAt(1),o=t.split(\".\"),s=o[0],l=o.length>1?i+o[1]:\"\";if(a&&(o.length>1||s.length>4||r))for(;n.test(s);)s=s.replace(n,\"$1\"+a+\"$2\");return s+l};var A=/%{([^\\s%{}]*)}/g,T=/^\\w*$/;l.templateString=function(t,e){var r={};return t.replace(A,function(t,n){return T.test(n)?e[n]||\"\":(r[n]=r[n]||l.nestedProperty(e,n).get,r[n]()||\"\")})};l.subplotSort=function(t,e){for(var r=Math.min(t.length,e.length)+1,n=0,i=0,a=0;a<r;a++){var o=t.charCodeAt(a)||0,s=e.charCodeAt(a)||0,l=o>=48&&o<=57,c=s>=48&&s<=57;if(l&&(n=10*n+o-48),c&&(i=10*i+s-48),!l||!c){if(n!==i)return n-i;if(o!==s)return o-s}}return i-n};var S=2e9;l.seedPseudoRandom=function(){S=2e9},l.pseudoRandom=function(){var t=S;return S=(69069*S+1)%4294967296,Math.abs(S-t)<429496729?l.pseudoRandom():S/4294967296}},{\"../constants/numerical\":673,\"./angles\":677,\"./array\":678,\"./clean_number\":679,\"./clear_responsive\":681,\"./coerce\":682,\"./dates\":683,\"./extend\":685,\"./filter_unique\":686,\"./filter_visible\":687,\"./geometry2d\":690,\"./get_graph_div\":691,\"./identity\":695,\"./is_plain_object\":697,\"./keyed_container\":698,\"./localize\":699,\"./loggers\":700,\"./make_trace_groups\":701,\"./matrix\":702,\"./mod\":703,\"./nested_property\":704,\"./noop\":705,\"./notifier\":706,\"./push_unique\":710,\"./regex\":712,\"./relative_attr\":713,\"./relink_private\":714,\"./search\":715,\"./stats\":718,\"./throttle\":721,\"./to_log_range\":722,d3:148,\"fast-isnumeric\":214}],697:[function(t,e,r){\"use strict\";e.exports=function(t){return window&&window.process&&window.process.versions?\"[object Object]\"===Object.prototype.toString.call(t):\"[object Object]\"===Object.prototype.toString.call(t)&&Object.getPrototypeOf(t)===Object.prototype}},{}],698:[function(t,e,r){\"use strict\";var n=t(\"./nested_property\"),i=/^\\w*$/;e.exports=function(t,e,r,a){var o,s,l;r=r||\"name\",a=a||\"value\";var c={};e&&e.length?(l=n(t,e),s=l.get()):s=t,e=e||\"\";var u={};if(s)for(o=0;o<s.length;o++)u[s[o][r]]=o;var f=i.test(a),h={set:function(t,e){var i=null===e?4:0;if(!s){if(!l||4===i)return;s=[],l.set(s)}var o=u[t];if(void 0===o){if(4===i)return;i|=3,o=s.length,u[t]=o}else e!==(f?s[o][a]:n(s[o],a).get())&&(i|=2);var p=s[o]=s[o]||{};return p[r]=t,f?p[a]=e:n(p,a).set(e),null!==e&&(i&=-5),c[o]=c[o]|i,h},get:function(t){if(s){var e=u[t];return void 0===e?void 0:f?s[e][a]:n(s[e],a).get()}},rename:function(t,e){var n=u[t];return void 0===n?h:(c[n]=1|c[n],u[e]=n,delete u[t],s[n][r]=e,h)},remove:function(t){var e=u[t];if(void 0===e)return h;var i=s[e];if(Object.keys(i).length>2)return c[e]=2|c[e],h.set(t,null);if(f){for(o=e;o<s.length;o++)c[o]=3|c[o];for(o=e;o<s.length;o++)u[s[o][r]]--;s.splice(e,1),delete u[t]}else n(i,a).set(null),c[e]=6|c[e];return h},constructUpdate:function(){for(var t,i,o={},l=Object.keys(c),u=0;u<l.length;u++)i=l[u],t=e+\"[\"+i+\"]\",s[i]?(1&c[i]&&(o[t+\".\"+r]=s[i][r]),2&c[i]&&(o[t+\".\"+a]=f?4&c[i]?null:s[i][a]:4&c[i]?null:n(s[i],a).get())):o[t]=null;return o}};return h}},{\"./nested_property\":704}],699:[function(t,e,r){\"use strict\";var n=t(\"../registry\");e.exports=function(t,e){for(var r=t._context.locale,i=0;i<2;i++){for(var a=t._context.locales,o=0;o<2;o++){var s=(a[r]||{}).dictionary;if(s){var l=s[e];if(l)return l}a=n.localeRegistry}var c=r.split(\"-\")[0];if(c===r)break;r=c}return e}},{\"../registry\":827}],700:[function(t,e,r){\"use strict\";var n=t(\"../plot_api/plot_config\"),i=e.exports={};function a(t,e){if(t&&t.apply)try{return void t.apply(console,e)}catch(t){}for(var r=0;r<e.length;r++)try{t(e[r])}catch(t){console.log(e[r])}}i.log=function(){if(n.logging>1){for(var t=[\"LOG:\"],e=0;e<arguments.length;e++)t.push(arguments[e]);a(console.trace||console.log,t)}},i.warn=function(){if(n.logging>0){for(var t=[\"WARN:\"],e=0;e<arguments.length;e++)t.push(arguments[e]);a(console.trace||console.log,t)}},i.error=function(){if(n.logging>0){for(var t=[\"ERROR:\"],e=0;e<arguments.length;e++)t.push(arguments[e]);a(console.error,t)}}},{\"../plot_api/plot_config\":732}],701:[function(t,e,r){\"use strict\";e.exports=function(t,e,r){var n=t.selectAll(\"g.\"+r.replace(/\\s/g,\".\")).data(e,function(t){return t[0].trace.uid});return n.exit().remove(),n.enter().append(\"g\").attr(\"class\",r),n.order(),n}},{}],702:[function(t,e,r){\"use strict\";r.init2dArray=function(t,e){for(var r=new Array(t),n=0;n<t;n++)r[n]=new Array(e);return r},r.transposeRagged=function(t){var e,r,n=0,i=t.length;for(e=0;e<i;e++)n=Math.max(n,t[e].length);var a=new Array(n);for(e=0;e<n;e++)for(a[e]=new Array(i),r=0;r<i;r++)a[e][r]=t[r][e];return a},r.dot=function(t,e){if(!t.length||!e.length||t.length!==e.length)return null;var n,i,a=t.length;if(t[0].length)for(n=new Array(a),i=0;i<a;i++)n[i]=r.dot(t[i],e);else if(e[0].length){var o=r.transposeRagged(e);for(n=new Array(o.length),i=0;i<o.length;i++)n[i]=r.dot(t,o[i])}else for(n=0,i=0;i<a;i++)n+=t[i]*e[i];return n},r.translationMatrix=function(t,e){return[[1,0,t],[0,1,e],[0,0,1]]},r.rotationMatrix=function(t){var e=t*Math.PI/180;return[[Math.cos(e),-Math.sin(e),0],[Math.sin(e),Math.cos(e),0],[0,0,1]]},r.rotationXYMatrix=function(t,e,n){return r.dot(r.dot(r.translationMatrix(e,n),r.rotationMatrix(t)),r.translationMatrix(-e,-n))},r.apply2DTransform=function(t){return function(){var e=arguments;3===e.length&&(e=e[0]);var n=1===arguments.length?e[0]:[e[0],e[1]];return r.dot(t,[n[0],n[1],1]).slice(0,2)}},r.apply2DTransform2=function(t){var e=r.apply2DTransform(t);return function(t){return e(t.slice(0,2)).concat(e(t.slice(2,4)))}}},{}],703:[function(t,e,r){\"use strict\";e.exports={mod:function(t,e){var r=t%e;return r<0?r+e:r},modHalf:function(t,e){return Math.abs(t)>e/2?t-Math.round(t/e)*e:t}}},{}],704:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"./array\").isArrayOrTypedArray;e.exports=function(t,e){if(n(e))e=String(e);else if(\"string\"!=typeof e||\"[-1]\"===e.substr(e.length-4))throw\"bad property string\";for(var r,a,o,l=0,c=e.split(\".\");l<c.length;){if(r=String(c[l]).match(/^([^\\[\\]]*)((\\[\\-?[0-9]*\\])+)$/)){if(r[1])c[l]=r[1];else{if(0!==l)throw\"bad property string\";c.splice(0,1)}for(a=r[2].substr(1,r[2].length-2).split(\"][\"),o=0;o<a.length;o++)l++,c.splice(l,0,Number(a[o]))}l++}return\"object\"!=typeof t?function(t,e,r){return{set:function(){throw\"bad container\"},get:function(){},astr:e,parts:r,obj:t}}(t,e,c):{set:s(t,c,e),get:function t(e,r){return function(){var n,a,o,s,l,c=e;for(s=0;s<r.length-1;s++){if(-1===(n=r[s])){for(a=!0,o=[],l=0;l<c.length;l++)o[l]=t(c[l],r.slice(s+1))(),o[l]!==o[0]&&(a=!1);return a?o[0]:o}if(\"number\"==typeof n&&!i(c))return;if(\"object\"!=typeof(c=c[n])||null===c)return}if(\"object\"==typeof c&&null!==c&&null!==(o=c[r[s]]))return o}}(t,c),astr:e,parts:c,obj:t}};var a=/(^|\\.)args\\[/;function o(t,e){return void 0===t||null===t&&!e.match(a)}function s(t,e,r){return function(n){var a,s,f=t,h=\"\",p=[[t,h]],d=o(n,r);for(s=0;s<e.length-1;s++){if(\"number\"==typeof(a=e[s])&&!i(f))throw\"array index but container is not an array\";if(-1===a){if(d=!c(f,e.slice(s+1),n,r))break;return}if(!u(f,a,e[s+1],d))break;if(\"object\"!=typeof(f=f[a])||null===f)throw\"container is not an object\";h=l(h,a),p.push([f,h])}if(d){if(s===e.length-1&&(delete f[e[s]],Array.isArray(f)&&+e[s]==f.length-1))for(;f.length&&void 0===f[f.length-1];)f.pop()}else f[e[s]]=n}}function l(t,e){var r=e;return n(e)?r=\"[\"+e+\"]\":t&&(r=\".\"+e),t+r}function c(t,e,r,n){var a,l=i(r),c=!0,f=r,h=n.replace(\"-1\",0),p=!l&&o(r,h),d=e[0];for(a=0;a<t.length;a++)h=n.replace(\"-1\",a),l&&(p=o(f=r[a%r.length],h)),p&&(c=!1),u(t,a,d,p)&&s(t[a],e,n.replace(\"-1\",a))(f);return c}function u(t,e,r,n){if(void 0===t[e]){if(n)return!1;t[e]=\"number\"==typeof r?[]:{}}return!0}},{\"./array\":678,\"fast-isnumeric\":214}],705:[function(t,e,r){\"use strict\";e.exports=function(){}},{}],706:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"fast-isnumeric\"),a=[];e.exports=function(t,e){if(-1===a.indexOf(t)){a.push(t);var r=1e3;i(e)?r=e:\"long\"===e&&(r=3e3);var o=n.select(\"body\").selectAll(\".plotly-notifier\").data([0]);o.enter().append(\"div\").classed(\"plotly-notifier\",!0),o.selectAll(\".notifier-note\").data(a).enter().append(\"div\").classed(\"notifier-note\",!0).style(\"opacity\",0).each(function(t){var e=n.select(this);e.append(\"button\").classed(\"notifier-close\",!0).html(\"&times;\").on(\"click\",function(){e.transition().call(s)});for(var i=e.append(\"p\"),a=t.split(/<br\\s*\\/?>/g),o=0;o<a.length;o++)o&&i.append(\"br\"),i.append(\"span\").text(a[o]);e.transition().duration(700).style(\"opacity\",1).transition().delay(r).call(s)})}function s(t){t.duration(700).style(\"opacity\",0).each(\"end\",function(t){var e=a.indexOf(t);-1!==e&&a.splice(e,1),n.select(this).remove()})}}},{d3:148,\"fast-isnumeric\":214}],707:[function(t,e,r){\"use strict\";var n=t(\"./setcursor\"),i=\"data-savedcursor\";e.exports=function(t,e){var r=t.attr(i);if(e){if(!r){for(var a=(t.attr(\"class\")||\"\").split(\" \"),o=0;o<a.length;o++){var s=a[o];0===s.indexOf(\"cursor-\")&&t.attr(i,s.substr(7)).classed(s,!1)}t.attr(i)||t.attr(i,\"!!\")}n(t,e)}else r&&(t.attr(i,null),\"!!\"===r?n(t):n(t,r))}},{\"./setcursor\":716}],708:[function(t,e,r){\"use strict\";var n=t(\"./matrix\").dot,i=t(\"../constants/numerical\").BADNUM,a=e.exports={};a.tester=function(t){var e,r=t.slice(),n=r[0][0],a=n,o=r[0][1],s=o;for(r.push(r[0]),e=1;e<r.length;e++)n=Math.min(n,r[e][0]),a=Math.max(a,r[e][0]),o=Math.min(o,r[e][1]),s=Math.max(s,r[e][1]);var l,c=!1;5===r.length&&(r[0][0]===r[1][0]?r[2][0]===r[3][0]&&r[0][1]===r[3][1]&&r[1][1]===r[2][1]&&(c=!0,l=function(t){return t[0]===r[0][0]}):r[0][1]===r[1][1]&&r[2][1]===r[3][1]&&r[0][0]===r[3][0]&&r[1][0]===r[2][0]&&(c=!0,l=function(t){return t[1]===r[0][1]}));var u=!0,f=r[0];for(e=1;e<r.length;e++)if(f[0]!==r[e][0]||f[1]!==r[e][1]){u=!1;break}return{xmin:n,xmax:a,ymin:o,ymax:s,pts:r,contains:c?function(t,e){var r=t[0],c=t[1];return!(r===i||r<n||r>a||c===i||c<o||c>s||e&&l(t))}:function(t,e){var l=t[0],c=t[1];if(l===i||l<n||l>a||c===i||c<o||c>s)return!1;var u,f,h,p,d,g=r.length,v=r[0][0],m=r[0][1],y=0;for(u=1;u<g;u++)if(f=v,h=m,v=r[u][0],m=r[u][1],!(l<(p=Math.min(f,v))||l>Math.max(f,v)||c>Math.max(h,m)))if(c<Math.min(h,m))l!==p&&y++;else{if(c===(d=v===f?c:h+(l-f)*(m-h)/(v-f)))return 1!==u||!e;c<=d&&l!==p&&y++}return y%2==1},isRect:c,degenerate:u}};var o=a.isSegmentBent=function(t,e,r,i){var a,o,s,l=t[e],c=[t[r][0]-l[0],t[r][1]-l[1]],u=n(c,c),f=Math.sqrt(u),h=[-c[1]/f,c[0]/f];for(a=e+1;a<r;a++)if(o=[t[a][0]-l[0],t[a][1]-l[1]],(s=n(o,c))<0||s>u||Math.abs(n(o,h))>i)return!0;return!1};a.filter=function(t,e){var r=[t[0]],n=0,i=0;function a(a){t.push(a);var s=r.length,l=n;r.splice(i+1);for(var c=l+1;c<t.length;c++)(c===t.length-1||o(t,l,c+1,e))&&(r.push(t[c]),r.length<s-2&&(n=c,i=r.length-1),l=c)}t.length>1&&a(t.pop());return{addPt:a,raw:t,filtered:r}}},{\"../constants/numerical\":673,\"./matrix\":702}],709:[function(t,e,r){(function(r){\"use strict\";var n=t(\"./show_no_webgl_msg\"),i=t(\"regl\");e.exports=function(t,e){var a=t._fullLayout,o=!0;return a._glcanvas.each(function(n){if(!n.regl&&(!n.pick||a._has(\"parcoords\"))){try{n.regl=i({canvas:this,attributes:{antialias:!n.pick,preserveDrawingBuffer:!0},pixelRatio:t._context.plotGlPixelRatio||r.devicePixelRatio,extensions:e||[]})}catch(t){o=!1}o&&this.addEventListener(\"webglcontextlost\",function(e){t&&t.emit&&t.emit(\"plotly_webglcontextlost\",{event:e,layer:n.key})},!1)}}),o||n({container:a._glcontainer.node()}),o}}).call(this,\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{\"./show_no_webgl_msg\":717,regl:478}],710:[function(t,e,r){\"use strict\";e.exports=function(t,e){if(e instanceof RegExp){var r,n=e.toString();for(r=0;r<t.length;r++)if(t[r]instanceof RegExp&&t[r].toString()===n)return t;t.push(e)}else!e&&0!==e||-1!==t.indexOf(e)||t.push(e);return t}},{}],711:[function(t,e,r){\"use strict\";var n=t(\"../lib\"),i=t(\"../plot_api/plot_config\");var a={add:function(t,e,r,n,a){var o,s;t.undoQueue=t.undoQueue||{index:0,queue:[],sequence:!1},s=t.undoQueue.index,t.autoplay?t.undoQueue.inSequence||(t.autoplay=!1):(!t.undoQueue.sequence||t.undoQueue.beginSequence?(o={undo:{calls:[],args:[]},redo:{calls:[],args:[]}},t.undoQueue.queue.splice(s,t.undoQueue.queue.length-s,o),t.undoQueue.index+=1):o=t.undoQueue.queue[s-1],t.undoQueue.beginSequence=!1,o&&(o.undo.calls.unshift(e),o.undo.args.unshift(r),o.redo.calls.push(n),o.redo.args.push(a)),t.undoQueue.queue.length>i.queueLength&&(t.undoQueue.queue.shift(),t.undoQueue.index--))},startSequence:function(t){t.undoQueue=t.undoQueue||{index:0,queue:[],sequence:!1},t.undoQueue.sequence=!0,t.undoQueue.beginSequence=!0},stopSequence:function(t){t.undoQueue=t.undoQueue||{index:0,queue:[],sequence:!1},t.undoQueue.sequence=!1,t.undoQueue.beginSequence=!1},undo:function(t){var e,r;if(t.framework&&t.framework.isPolar)t.framework.undo();else if(!(void 0===t.undoQueue||isNaN(t.undoQueue.index)||t.undoQueue.index<=0)){for(t.undoQueue.index--,e=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,r=0;r<e.undo.calls.length;r++)a.plotDo(t,e.undo.calls[r],e.undo.args[r]);t.undoQueue.inSequence=!1,t.autoplay=!1}},redo:function(t){var e,r;if(t.framework&&t.framework.isPolar)t.framework.redo();else if(!(void 0===t.undoQueue||isNaN(t.undoQueue.index)||t.undoQueue.index>=t.undoQueue.queue.length)){for(e=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,r=0;r<e.redo.calls.length;r++)a.plotDo(t,e.redo.calls[r],e.redo.args[r]);t.undoQueue.inSequence=!1,t.autoplay=!1,t.undoQueue.index++}}};a.plotDo=function(t,e,r){t.autoplay=!0,r=function(t,e){for(var r,i=[],a=0;a<e.length;a++)r=e[a],i[a]=r===t?r:\"object\"==typeof r?Array.isArray(r)?n.extendDeep([],r):n.extendDeepAll({},r):r;return i}(t,r),e.apply(null,r)},e.exports=a},{\"../lib\":696,\"../plot_api/plot_config\":732}],712:[function(t,e,r){\"use strict\";r.counter=function(t,e,r){var n=(e||\"\")+(r?\"\":\"$\");return\"xy\"===t?new RegExp(\"^x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?\"+n):new RegExp(\"^\"+t+\"([2-9]|[1-9][0-9]+)?\"+n)}},{}],713:[function(t,e,r){\"use strict\";var n=/^(.*)(\\.[^\\.\\[\\]]+|\\[\\d\\])$/,i=/^[^\\.\\[\\]]+$/;e.exports=function(t,e){for(;e;){var r=t.match(n);if(r)t=r[1];else{if(!t.match(i))throw new Error(\"bad relativeAttr call:\"+[t,e]);t=\"\"}if(\"^\"!==e.charAt(0))break;e=e.slice(1)}return t&&\"[\"!==e.charAt(0)?t+\".\"+e:t+e}},{}],714:[function(t,e,r){\"use strict\";var n=t(\"./array\").isArrayOrTypedArray,i=t(\"./is_plain_object\");e.exports=function t(e,r){for(var a in r){var o=r[a],s=e[a];if(s!==o)if(\"_\"===a.charAt(0)||\"function\"==typeof o){if(a in e)continue;e[a]=o}else if(n(o)&&n(s)&&i(o[0])){if(\"customdata\"===a||\"ids\"===a)continue;for(var l=Math.min(o.length,s.length),c=0;c<l;c++)s[c]!==o[c]&&i(o[c])&&i(s[c])&&t(s[c],o[c])}else i(o)&&i(s)&&(t(s,o),Object.keys(s).length||delete e[a])}}},{\"./array\":678,\"./is_plain_object\":697}],715:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"./loggers\"),a=t(\"./identity\");function o(t,e){return t<e}function s(t,e){return t<=e}function l(t,e){return t>e}function c(t,e){return t>=e}r.findBin=function(t,e,r){if(n(e.start))return r?Math.ceil((t-e.start)/e.size-1e-9)-1:Math.floor((t-e.start)/e.size+1e-9);var a,u,f=0,h=e.length,p=0,d=h>1?(e[h-1]-e[0])/(h-1):1;for(u=d>=0?r?o:s:r?c:l,t+=1e-9*d*(r?-1:1)*(d>=0?1:-1);f<h&&p++<100;)u(e[a=Math.floor((f+h)/2)],t)?f=a+1:h=a;return p>90&&i.log(\"Long binary search...\"),f-1},r.sorterAsc=function(t,e){return t-e},r.sorterDes=function(t,e){return e-t},r.distinctVals=function(t){var e=t.slice();e.sort(r.sorterAsc);for(var n=e.length-1,i=e[n]-e[0]||1,a=i/(n||1)/1e4,o=[e[0]],s=0;s<n;s++)e[s+1]>e[s]+a&&(i=Math.min(i,e[s+1]-e[s]),o.push(e[s+1]));return{vals:o,minDiff:i}},r.roundUp=function(t,e,r){for(var n,i=0,a=e.length-1,o=0,s=r?0:1,l=r?1:0,c=r?Math.ceil:Math.floor;i<a&&o++<100;)e[n=c((i+a)/2)]<=t?i=n+s:a=n-l;return e[i]},r.sort=function(t,e){for(var r=0,n=0,i=1;i<t.length;i++){var a=e(t[i],t[i-1]);if(a<0?r=1:a>0&&(n=1),r&&n)return t.sort(e)}return n?t:t.reverse()},r.findIndexOfMin=function(t,e){e=e||a;for(var r,n=1/0,i=0;i<t.length;i++){var o=e(t[i]);o<n&&(n=o,r=i)}return r}},{\"./identity\":695,\"./loggers\":700,\"fast-isnumeric\":214}],716:[function(t,e,r){\"use strict\";e.exports=function(t,e){(t.attr(\"class\")||\"\").split(\" \").forEach(function(e){0===e.indexOf(\"cursor-\")&&t.classed(e,!1)}),e&&t.classed(\"cursor-\"+e,!0)}},{}],717:[function(t,e,r){\"use strict\";var n=t(\"../components/color\"),i=function(){};e.exports=function(t){for(var e in t)\"function\"==typeof t[e]&&(t[e]=i);t.destroy=function(){t.container.parentNode.removeChild(t.container)};var r=document.createElement(\"div\");r.className=\"no-webgl\",r.style.cursor=\"pointer\",r.style.fontSize=\"24px\",r.style.color=n.defaults[0],r.style.position=\"absolute\",r.style.left=r.style.top=\"0px\",r.style.width=r.style.height=\"100%\",r.style[\"background-color\"]=n.lightLine,r.style[\"z-index\"]=30;var a=document.createElement(\"p\");return a.textContent=\"WebGL is not supported by your browser - visit https://get.webgl.org for more info\",a.style.position=\"relative\",a.style.top=\"50%\",a.style.left=\"50%\",a.style.height=\"30%\",a.style.width=\"50%\",a.style.margin=\"-15% 0 0 -25%\",r.appendChild(a),t.container.appendChild(r),t.container.style.background=\"#FFFFFF\",t.container.onclick=function(){window.open(\"https://get.webgl.org\")},!1}},{\"../components/color\":570}],718:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"./array\").isArrayOrTypedArray;r.aggNums=function(t,e,a,o){var s,l;if((!o||o>a.length)&&(o=a.length),n(e)||(e=!1),i(a[0])){for(l=new Array(o),s=0;s<o;s++)l[s]=r.aggNums(t,e,a[s]);a=l}for(s=0;s<o;s++)n(e)?n(a[s])&&(e=t(+e,+a[s])):e=a[s];return e},r.len=function(t){return r.aggNums(function(t){return t+1},0,t)},r.mean=function(t,e){return e||(e=r.len(t)),r.aggNums(function(t,e){return t+e},0,t)/e},r.midRange=function(t){if(void 0!==t&&0!==t.length)return(r.aggNums(Math.max,null,t)+r.aggNums(Math.min,null,t))/2},r.variance=function(t,e,i){return e||(e=r.len(t)),n(i)||(i=r.mean(t,e)),r.aggNums(function(t,e){return t+Math.pow(e-i,2)},0,t)/e},r.stdev=function(t,e,n){return Math.sqrt(r.variance(t,e,n))},r.interp=function(t,e){if(!n(e))throw\"n should be a finite number\";if((e=e*t.length-.5)<0)return t[0];if(e>t.length-1)return t[t.length-1];var r=e%1;return r*t[Math.ceil(e)]+(1-r)*t[Math.floor(e)]}},{\"./array\":678,\"fast-isnumeric\":214}],719:[function(t,e,r){\"use strict\";var n=t(\"color-normalize\");e.exports=function(t){return t?n(t):[0,0,0,1]}},{\"color-normalize\":108}],720:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../lib\"),a=t(\"../constants/xmlns_namespaces\"),o=t(\"../constants/alignment\").LINE_SPACING;function s(t,e){return t.node().getBoundingClientRect()[e]}var l=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;r.convertToTspans=function(t,e,v){var S=t.text(),E=!t.attr(\"data-notex\")&&\"undefined\"!=typeof MathJax&&S.match(l),L=n.select(t.node().parentNode);if(!L.empty()){var z=t.attr(\"class\")?t.attr(\"class\").split(\" \")[0]:\"text\";return z+=\"-math\",L.selectAll(\"svg.\"+z).remove(),L.selectAll(\"g.\"+z+\"-group\").remove(),t.style(\"display\",null).attr({\"data-unformatted\":S,\"data-math\":\"N\"}),E?(e&&e._promises||[]).push(new Promise(function(e){t.style(\"display\",\"none\");var r=parseInt(t.node().style.fontSize,10),a={fontSize:r};!function(t,e,r){var a,o,s,l;MathJax.Hub.Queue(function(){return o=i.extendDeepAll({},MathJax.Hub.config),s=MathJax.Hub.processSectionDelay,void 0!==MathJax.Hub.processSectionDelay&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:\"none\",tex2jax:{inlineMath:[[\"$\",\"$\"],[\"\\\\(\",\"\\\\)\"]]},displayAlign:\"left\"})},function(){if(\"SVG\"!==(a=MathJax.Hub.config.menuSettings.renderer))return MathJax.Hub.setRenderer(\"SVG\")},function(){var r=\"math-output-\"+i.randstr({},64);return l=n.select(\"body\").append(\"div\").attr({id:r}).style({visibility:\"hidden\",position:\"absolute\"}).style({\"font-size\":e.fontSize+\"px\"}).text(t.replace(c,\"\\\\lt \").replace(u,\"\\\\gt \")),MathJax.Hub.Typeset(l.node())},function(){var e=n.select(\"body\").select(\"#MathJax_SVG_glyphs\");if(l.select(\".MathJax_SVG\").empty()||!l.select(\"svg\").node())i.log(\"There was an error in the tex syntax.\",t),r();else{var o=l.select(\"svg\").node().getBoundingClientRect();r(l.select(\".MathJax_SVG\"),e,o)}if(l.remove(),\"SVG\"!==a)return MathJax.Hub.setRenderer(a)},function(){return void 0!==s&&(MathJax.Hub.processSectionDelay=s),MathJax.Hub.Config(o)})}(E[2],a,function(n,i,a){L.selectAll(\"svg.\"+z).remove(),L.selectAll(\"g.\"+z+\"-group\").remove();var o=n&&n.select(\"svg\");if(!o||!o.node())return O(),void e();var l=L.append(\"g\").classed(z+\"-group\",!0).attr({\"pointer-events\":\"none\",\"data-unformatted\":S,\"data-math\":\"Y\"});l.node().appendChild(o.node()),i&&i.node()&&o.node().insertBefore(i.node().cloneNode(!0),o.node().firstChild),o.attr({class:z,height:a.height,preserveAspectRatio:\"xMinYMin meet\"}).style({overflow:\"visible\",\"pointer-events\":\"none\"});var c=t.node().style.fill||\"black\";o.select(\"g\").attr({fill:c,stroke:c});var u=s(o,\"width\"),f=s(o,\"height\"),h=+t.attr(\"x\")-u*{start:0,middle:.5,end:1}[t.attr(\"text-anchor\")||\"start\"],p=-(r||s(t,\"height\"))/4;\"y\"===z[0]?(l.attr({transform:\"rotate(\"+[-90,+t.attr(\"x\"),+t.attr(\"y\")]+\") translate(\"+[-u/2,p-f/2]+\")\"}),o.attr({x:+t.attr(\"x\"),y:+t.attr(\"y\")})):\"l\"===z[0]?o.attr({x:t.attr(\"x\"),y:p-f/2}):\"a\"===z[0]?o.attr({x:0,y:p}):o.attr({x:h,y:+t.attr(\"y\")+p-f/2}),v&&v.call(t,l),e(l)})})):O(),t}function O(){L.empty()||(z=t.attr(\"class\")+\"-math\",L.select(\"svg.\"+z).remove()),t.text(\"\").style(\"white-space\",\"pre\"),function(t,e){e=e.replace(m,\" \");var r,s=!1,l=[],c=-1;function u(){c++;var e=document.createElementNS(a.svg,\"tspan\");n.select(e).attr({class:\"line\",dy:c*o+\"em\"}),t.appendChild(e),r=e;var i=l;if(l=[{node:e}],i.length>1)for(var s=1;s<i.length;s++)v(i[s])}function v(t){var e,i=t.type,o={};if(\"a\"===i){e=\"a\";var s=t.target,c=t.href,u=t.popup;c&&(o={\"xlink:xlink:show\":\"_blank\"===s||\"_\"!==s.charAt(0)?\"new\":\"replace\",target:s,\"xlink:xlink:href\":c},u&&(o.onclick='window.open(this.href.baseVal,this.target.baseVal,\"'+u+'\");return false;'))}else e=\"tspan\";t.style&&(o.style=t.style);var f=document.createElementNS(a.svg,e);if(\"sup\"===i||\"sub\"===i){S(r,d),r.appendChild(f);var g=document.createElementNS(a.svg,\"tspan\");S(g,d),n.select(g).attr(\"dy\",p[i]),o.dy=h[i],r.appendChild(f),r.appendChild(g)}else r.appendChild(f);n.select(f).attr(o),r=t.node=f,l.push(t)}function S(t,e){t.appendChild(document.createTextNode(e))}function E(t){if(1!==l.length){var n=l.pop();t!==n.type&&i.log(\"Start tag <\"+n.type+\"> doesnt match end tag <\"+t+\">. Pretending it did match.\",e),r=l[l.length-1].node}else i.log(\"Ignoring unexpected end tag </\"+t+\">.\",e)}b.test(e)?u():(r=t,l=[{node:t}]);for(var L=e.split(y),z=0;z<L.length;z++){var O=L[z],I=O.match(x),P=I&&I[2].toLowerCase(),D=f[P];if(\"br\"===P)u();else if(void 0===D)S(r,C(O));else if(I[1])E(P);else{var R=I[4],B={type:P},F=A(R,_);if(F?(F=F.replace(T,\"$1 fill:\"),D&&(F+=\";\"+D)):D&&(F=D),F&&(B.style=F),\"a\"===P){s=!0;var N=A(R,w);if(N){var j=document.createElement(\"a\");j.href=N,-1!==g.indexOf(j.protocol)&&(B.href=encodeURI(decodeURI(N)),B.target=A(R,k)||\"_blank\",B.popup=A(R,M))}}v(B)}}return s}(t.node(),S)&&t.style(\"pointer-events\",\"all\"),r.positionText(t),v&&v.call(t)}};var c=/(<|&lt;|&#60;)/g,u=/(>|&gt;|&#62;)/g;var f={sup:\"font-size:70%\",sub:\"font-size:70%\",b:\"font-weight:bold\",i:\"font-style:italic\",a:\"cursor:pointer\",span:\"\",em:\"font-style:italic;font-weight:bold\"},h={sub:\"0.3em\",sup:\"-0.6em\"},p={sub:\"-0.21em\",sup:\"0.42em\"},d=\"\\u200b\",g=[\"http:\",\"https:\",\"mailto:\",\"\",void 0,\":\"],v=new RegExp(\"</?(\"+Object.keys(f).join(\"|\")+\")( [^>]*)?/?>\",\"g\"),m=/(\\r\\n?|\\n)/g,y=/(<[^<>]*>)/,x=/<(\\/?)([^ >]*)(\\s+(.*))?>/i,b=/<br(\\s+.*)?>/i,_=/(^|[\\s\"'])style\\s*=\\s*(\"([^\"]*);?\"|'([^']*);?')/i,w=/(^|[\\s\"'])href\\s*=\\s*(\"([^\"]*)\"|'([^']*)')/i,k=/(^|[\\s\"'])target\\s*=\\s*(\"([^\"\\s]*)\"|'([^'\\s]*)')/i,M=/(^|[\\s\"'])popup\\s*=\\s*(\"([\\w=,]*)\"|'([\\w=,]*)')/i;function A(t,e){if(!t)return null;var r=t.match(e),n=r&&(r[3]||r[4]);return n&&C(n)}var T=/(^|;)\\s*color:/;r.plainText=function(t){return(t||\"\").replace(v,\" \")};var S={mu:\"\\u03bc\",amp:\"&\",lt:\"<\",gt:\">\",nbsp:\"\\xa0\",times:\"\\xd7\",plusmn:\"\\xb1\",deg:\"\\xb0\"},E=/&(#\\d+|#x[\\da-fA-F]+|[a-z]+);/g;function C(t){return t.replace(E,function(t,e){return(\"#\"===e.charAt(0)?function(t){if(t>1114111)return;var e=String.fromCodePoint;if(e)return e(t);var r=String.fromCharCode;return t<=65535?r(t):r(55232+(t>>10),t%1024+56320)}(\"x\"===e.charAt(1)?parseInt(e.substr(2),16):parseInt(e.substr(1),10)):S[e])||t})}function L(t,e,r){var n,i,a,o=r.horizontalAlign,s=r.verticalAlign||\"top\",l=t.node().getBoundingClientRect(),c=e.node().getBoundingClientRect();return i=\"bottom\"===s?function(){return l.bottom-n.height}:\"middle\"===s?function(){return l.top+(l.height-n.height)/2}:function(){return l.top},a=\"right\"===o?function(){return l.right-n.width}:\"center\"===o?function(){return l.left+(l.width-n.width)/2}:function(){return l.left},function(){return n=this.node().getBoundingClientRect(),this.style({top:i()-c.top+\"px\",left:a()-c.left+\"px\",\"z-index\":1e3}),this}}r.convertEntities=C,r.lineCount=function(t){return t.selectAll(\"tspan.line\").size()||1},r.positionText=function(t,e,r){return t.each(function(){var t=n.select(this);function i(e,r){return void 0===r?null===(r=t.attr(e))&&(t.attr(e,0),r=0):t.attr(e,r),r}var a=i(\"x\",e),o=i(\"y\",r);\"text\"===this.nodeName&&t.selectAll(\"tspan.line\").attr({x:a,y:o})})},r.makeEditable=function(t,e){var r=e.gd,i=e.delegate,a=n.dispatch(\"edit\",\"input\",\"cancel\"),o=i||t;if(t.style({\"pointer-events\":i?\"none\":\"all\"}),1!==t.size())throw new Error(\"boo\");function s(){!function(){var i=n.select(r).select(\".svg-container\"),o=i.append(\"div\"),s=t.node().style,c=parseFloat(s.fontSize||12),u=e.text;void 0===u&&(u=t.attr(\"data-unformatted\"));o.classed(\"plugin-editable editable\",!0).style({position:\"absolute\",\"font-family\":s.fontFamily||\"Arial\",\"font-size\":c,color:e.fill||s.fill||\"black\",opacity:1,\"background-color\":e.background||\"transparent\",outline:\"#ffffff33 1px solid\",margin:[-c/8+1,0,0,-1].join(\"px \")+\"px\",padding:\"0\",\"box-sizing\":\"border-box\"}).attr({contenteditable:!0}).text(u).call(L(t,i,e)).on(\"blur\",function(){r._editing=!1,t.text(this.textContent).style({opacity:1});var e,i=n.select(this).attr(\"class\");(e=i?\".\"+i.split(\" \")[0]+\"-math-group\":\"[class*=-math-group]\")&&n.select(t.node().parentNode).select(e).style({opacity:0});var o=this.textContent;n.select(this).transition().duration(0).remove(),n.select(document).on(\"mouseup\",null),a.edit.call(t,o)}).on(\"focus\",function(){var t=this;r._editing=!0,n.select(document).on(\"mouseup\",function(){if(n.event.target===t)return!1;document.activeElement===o.node()&&o.node().blur()})}).on(\"keyup\",function(){27===n.event.which?(r._editing=!1,t.style({opacity:1}),n.select(this).style({opacity:0}).on(\"blur\",function(){return!1}).transition().remove(),a.cancel.call(t,this.textContent)):(a.input.call(t,this.textContent),n.select(this).call(L(t,i,e)))}).on(\"keydown\",function(){13===n.event.which&&this.blur()}).call(l)}(),t.style({opacity:0});var i,s=o.attr(\"class\");(i=s?\".\"+s.split(\" \")[0]+\"-math-group\":\"[class*=-math-group]\")&&n.select(t.node().parentNode).select(i).style({opacity:0})}function l(t){var e=t.node(),r=document.createRange();r.selectNodeContents(e);var n=window.getSelection();n.removeAllRanges(),n.addRange(r),e.focus()}return e.immediate?s():o.on(\"click\",s),n.rebind(t,a,\"on\")}},{\"../constants/alignment\":668,\"../constants/xmlns_namespaces\":674,\"../lib\":696,d3:148}],721:[function(t,e,r){\"use strict\";var n={};function i(t){t&&null!==t.timer&&(clearTimeout(t.timer),t.timer=null)}r.throttle=function(t,e,r){var a=n[t],o=Date.now();if(!a){for(var s in n)n[s].ts<o-6e4&&delete n[s];a=n[t]={ts:0,timer:null}}function l(){r(),a.ts=Date.now(),a.onDone&&(a.onDone(),a.onDone=null)}i(a),o>a.ts+e?l():a.timer=setTimeout(function(){l(),a.timer=null},e)},r.done=function(t){var e=n[t];return e&&e.timer?new Promise(function(t){var r=e.onDone;e.onDone=function(){r&&r(),t(),e.onDone=null}}):Promise.resolve()},r.clear=function(t){if(t)i(n[t]),delete n[t];else for(var e in n)r.clear(e)}},{}],722:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\");e.exports=function(t,e){if(t>0)return Math.log(t)/Math.LN10;var r=Math.log(Math.min(e[0],e[1]))/Math.LN10;return n(r)||(r=Math.log(Math.max(e[0],e[1]))/Math.LN10-6),r}},{\"fast-isnumeric\":214}],723:[function(t,e,r){\"use strict\";var n=e.exports={},i=t(\"../plots/geo/constants\").locationmodeToLayer,a=t(\"topojson-client\").feature;n.getTopojsonName=function(t){return[t.scope.replace(/ /g,\"-\"),\"_\",t.resolution.toString(),\"m\"].join(\"\")},n.getTopojsonPath=function(t,e){return t+e+\".json\"},n.getTopojsonFeatures=function(t,e){var r=i[t.locationmode],n=e.objects[r];return a(e,n).features}},{\"../plots/geo/constants\":773,\"topojson-client\":517}],724:[function(t,e,r){\"use strict\";e.exports={moduleType:\"locale\",name:\"en-US\",dictionary:{\"Click to enter Colorscale title\":\"Click to enter Colorscale title\"},format:{date:\"%m/%d/%Y\"}}},{}],725:[function(t,e,r){\"use strict\";e.exports={moduleType:\"locale\",name:\"en\",dictionary:{\"Click to enter Colorscale title\":\"Click to enter Colourscale title\"},format:{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\"],periods:[\"AM\",\"PM\"],dateTime:\"%a %b %e %X %Y\",date:\"%d/%m/%Y\",time:\"%H:%M:%S\",decimal:\".\",thousands:\",\",grouping:[3],currency:[\"$\",\"\"],year:\"%Y\",month:\"%b %Y\",dayMonth:\"%b %-d\",dayMonthYear:\"%b %-d, %Y\"}}},{}],726:[function(t,e,r){\"use strict\";var n=t(\"../registry\");e.exports=function(t){for(var e,r,i=n.layoutArrayContainers,a=n.layoutArrayRegexes,o=t.split(\"[\")[0],s=0;s<a.length;s++)if((r=t.match(a[s]))&&0===r.index){e=r[0];break}if(e||(e=i[i.indexOf(o)]),!e)return!1;var l=t.substr(e.length);return l?!!(r=l.match(/^\\[(0|[1-9][0-9]*)\\](\\.(.+))?$/))&&{array:e,index:Number(r[1]),property:r[3]||\"\"}:{array:e,index:\"\",property:\"\"}}},{\"../registry\":827}],727:[function(t,e,r){\"use strict\";var n=t(\"../lib\"),i=n.extendFlat,a=n.isPlainObject,o={valType:\"flaglist\",extras:[\"none\"],flags:[\"calc\",\"clearAxisTypes\",\"plot\",\"style\",\"markerSize\",\"colorbars\"]},s={valType:\"flaglist\",extras:[\"none\"],flags:[\"calc\",\"plot\",\"legend\",\"ticks\",\"axrange\",\"layoutstyle\",\"modebar\",\"camera\",\"arraydraw\"]},l=o.flags.slice().concat([\"fullReplot\"]),c=s.flags.slice().concat(\"layoutReplot\");function u(t){for(var e={},r=0;r<t.length;r++)e[t[r]]=!1;return e}function f(t,e,r){var n=i({},t);for(var o in n){var s=n[o];a(s)&&(n[o]=h(s,e,r,o))}return\"from-root\"===r&&(n.editType=e),n}function h(t,e,r,n){if(t.valType){var a=i({},t);if(a.editType=e,Array.isArray(t.items)){a.items=new Array(t.items.length);for(var o=0;o<t.items.length;o++)a.items[o]=h(t.items[o],e,\"from-root\")}return a}return f(t,e,\"_\"===n.charAt(0)?\"nested\":\"from-root\")}e.exports={traces:o,layout:s,traceFlags:function(){return u(l)},layoutFlags:function(){return u(c)},update:function(t,e){var r=e.editType;if(r&&\"none\"!==r)for(var n=r.split(\"+\"),i=0;i<n.length;i++)t[n[i]]=!0},overrideAll:f}},{\"../lib\":696}],728:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"gl-mat4/fromQuat\"),a=t(\"../registry\"),o=t(\"../lib\"),s=t(\"../plots/plots\"),l=t(\"../plots/cartesian/axis_ids\"),c=l.cleanId,u=l.getFromTrace,f=t(\"../components/color\");function h(t,e){var r=t[e],n=e.charAt(0);r&&\"paper\"!==r&&(t[e]=c(r,n))}function p(t){if(!o.isPlainObject(t))return!1;var e=t.name;return delete t.name,delete t.showlegend,(\"string\"==typeof e||\"number\"==typeof e)&&String(e)}function d(t,e,r,n){if(r&&!n)return t;if(n&&!r)return e;if(!t.trim())return e;if(!e.trim())return t;var i,a=Math.min(t.length,e.length);for(i=0;i<a&&t.charAt(i)===e.charAt(i);i++);return t.substr(0,i).trim()}function g(t){var e=\"middle\",r=\"center\";return-1!==t.indexOf(\"top\")?e=\"top\":-1!==t.indexOf(\"bottom\")&&(e=\"bottom\"),-1!==t.indexOf(\"left\")?r=\"left\":-1!==t.indexOf(\"right\")&&(r=\"right\"),e+\" \"+r}function v(t,e){return e in t&&\"object\"==typeof t[e]&&0===Object.keys(t[e]).length}r.clearPromiseQueue=function(t){Array.isArray(t._promises)&&t._promises.length>0&&o.log(\"Clearing previous rejected promises from queue.\"),t._promises=[]},r.cleanLayout=function(t){var e,r;t||(t={}),t.xaxis1&&(t.xaxis||(t.xaxis=t.xaxis1),delete t.xaxis1),t.yaxis1&&(t.yaxis||(t.yaxis=t.yaxis1),delete t.yaxis1),t.scene1&&(t.scene||(t.scene=t.scene1),delete t.scene1);var n=(s.subplotsRegistry.cartesian||{}).attrRegex,a=(s.subplotsRegistry.gl3d||{}).attrRegex,l=Object.keys(t);for(e=0;e<l.length;e++){var u=l[e];if(n&&n.test(u)){var p=t[u];p.anchor&&\"free\"!==p.anchor&&(p.anchor=c(p.anchor)),p.overlaying&&(p.overlaying=c(p.overlaying)),p.type||(p.isdate?p.type=\"date\":p.islog?p.type=\"log\":!1===p.isdate&&!1===p.islog&&(p.type=\"linear\")),\"withzero\"!==p.autorange&&\"tozero\"!==p.autorange||(p.autorange=!0,p.rangemode=\"tozero\"),delete p.islog,delete p.isdate,delete p.categories,v(p,\"domain\")&&delete p.domain,void 0!==p.autotick&&(void 0===p.tickmode&&(p.tickmode=p.autotick?\"auto\":\"linear\"),delete p.autotick)}else if(a&&a.test(u)){var d=t[u],g=d.cameraposition;if(Array.isArray(g)&&4===g[0].length){var m=g[0],y=g[1],x=g[2],b=i([],m),_=[];for(r=0;r<3;++r)_[r]=y[r]+x*b[2+4*r];d.camera={eye:{x:_[0],y:_[1],z:_[2]},center:{x:y[0],y:y[1],z:y[2]},up:{x:b[1],y:b[5],z:b[9]}},delete d.cameraposition}}}var w=Array.isArray(t.annotations)?t.annotations.length:0;for(e=0;e<w;e++){var k=t.annotations[e];o.isPlainObject(k)&&(k.ref&&(\"paper\"===k.ref?(k.xref=\"paper\",k.yref=\"paper\"):\"data\"===k.ref&&(k.xref=\"x\",k.yref=\"y\"),delete k.ref),h(k,\"xref\"),h(k,\"yref\"))}var M=Array.isArray(t.shapes)?t.shapes.length:0;for(e=0;e<M;e++){var A=t.shapes[e];o.isPlainObject(A)&&(h(A,\"xref\"),h(A,\"yref\"))}var T=t.legend;return T&&(T.x>3?(T.x=1.02,T.xanchor=\"left\"):T.x<-2&&(T.x=-.02,T.xanchor=\"right\"),T.y>3?(T.y=1.02,T.yanchor=\"bottom\"):T.y<-2&&(T.y=-.02,T.yanchor=\"top\")),\"rotate\"===t.dragmode&&(t.dragmode=\"orbit\"),f.clean(t),t},r.cleanData=function(t){for(var e=0;e<t.length;e++){var n,i=t[e];if(\"histogramy\"===i.type&&\"xbins\"in i&&!(\"ybins\"in i)&&(i.ybins=i.xbins,delete i.xbins),i.error_y&&\"opacity\"in i.error_y){var l=f.defaults,u=i.error_y.color||(a.traceIs(i,\"bar\")?f.defaultLine:l[e%l.length]);i.error_y.color=f.addOpacity(f.rgb(u),f.opacity(u)*i.error_y.opacity),delete i.error_y.opacity}if(\"bardir\"in i&&(\"h\"!==i.bardir||!a.traceIs(i,\"bar\")&&\"histogram\"!==i.type.substr(0,9)||(i.orientation=\"h\",r.swapXYData(i)),delete i.bardir),\"histogramy\"===i.type&&r.swapXYData(i),\"histogramx\"!==i.type&&\"histogramy\"!==i.type||(i.type=\"histogram\"),\"scl\"in i&&(i.colorscale=i.scl,delete i.scl),\"reversescl\"in i&&(i.reversescale=i.reversescl,delete i.reversescl),i.xaxis&&(i.xaxis=c(i.xaxis,\"x\")),i.yaxis&&(i.yaxis=c(i.yaxis,\"y\")),a.traceIs(i,\"gl3d\")&&i.scene&&(i.scene=s.subplotsRegistry.gl3d.cleanId(i.scene)),!a.traceIs(i,\"pie\")&&!a.traceIs(i,\"bar\"))if(Array.isArray(i.textposition))for(n=0;n<i.textposition.length;n++)i.textposition[n]=g(i.textposition[n]);else i.textposition&&(i.textposition=g(i.textposition));var h=a.getModule(i);if(h&&h.colorbar){var m=h.colorbar.container,y=m?i[m]:i;y&&y.colorscale&&(\"YIGnBu\"===y.colorscale&&(y.colorscale=\"YlGnBu\"),\"YIOrRd\"===y.colorscale&&(y.colorscale=\"YlOrRd\"))}if(\"surface\"===i.type&&o.isPlainObject(i.contours)){var x=[\"x\",\"y\",\"z\"];for(n=0;n<x.length;n++){var b=i.contours[x[n]];o.isPlainObject(b)&&(b.highlightColor&&(b.highlightcolor=b.highlightColor,delete b.highlightColor),b.highlightWidth&&(b.highlightwidth=b.highlightWidth,delete b.highlightWidth))}}if(\"candlestick\"===i.type||\"ohlc\"===i.type){var _=!1!==(i.increasing||{}).showlegend,w=!1!==(i.decreasing||{}).showlegend,k=p(i.increasing),M=p(i.decreasing);if(!1!==k&&!1!==M){var A=d(k,M,_,w);A&&(i.name=A)}else!k&&!M||i.name||(i.name=k||M)}if(Array.isArray(i.transforms)){var T=i.transforms;for(n=0;n<T.length;n++){var S=T[n];if(o.isPlainObject(S))switch(S.type){case\"filter\":S.filtersrc&&(S.target=S.filtersrc,delete S.filtersrc),S.calendar&&(S.valuecalendar||(S.valuecalendar=S.calendar),delete S.calendar);break;case\"groupby\":if(S.styles=S.styles||S.style,S.styles&&!Array.isArray(S.styles)){var E=S.styles,C=Object.keys(E);S.styles=[];for(var L=0;L<C.length;L++)S.styles.push({target:C[L],value:E[C[L]]})}}}}v(i,\"line\")&&delete i.line,\"marker\"in i&&(v(i.marker,\"line\")&&delete i.marker.line,v(i,\"marker\")&&delete i.marker),f.clean(i),i.autobinx&&(delete i.autobinx,delete i.xbins),i.autobiny&&(delete i.autobiny,delete i.ybins)}},r.swapXYData=function(t){var e;if(o.swapAttrs(t,[\"?\",\"?0\",\"d?\",\"?bins\",\"nbins?\",\"autobin?\",\"?src\",\"error_?\"]),Array.isArray(t.z)&&Array.isArray(t.z[0])&&(t.transpose?delete t.transpose:t.transpose=!0),t.error_x&&t.error_y){var r=t.error_y,n=\"copy_ystyle\"in r?r.copy_ystyle:!(r.color||r.thickness||r.width);o.swapAttrs(t,[\"error_?.copy_ystyle\"]),n&&o.swapAttrs(t,[\"error_?.color\",\"error_?.thickness\",\"error_?.width\"])}if(\"string\"==typeof t.hoverinfo){var i=t.hoverinfo.split(\"+\");for(e=0;e<i.length;e++)\"x\"===i[e]?i[e]=\"y\":\"y\"===i[e]&&(i[e]=\"x\");t.hoverinfo=i.join(\"+\")}},r.coerceTraceIndices=function(t,e){if(n(e))return[e];if(!Array.isArray(e)||!e.length)return t.data.map(function(t,e){return e});if(Array.isArray(e)){for(var r=[],i=0;i<e.length;i++)o.isIndex(e[i],t.data.length)?r.push(e[i]):o.warn(\"trace index (\",e[i],\") is not a number or is out of bounds\");return r}return e},r.manageArrayContainers=function(t,e,r){var i=t.obj,a=t.parts,s=a.length,l=a[s-1],c=n(l);if(c&&null===e){var u=a.slice(0,s-1).join(\".\");o.nestedProperty(i,u).get().splice(l,1)}else c&&void 0===t.get()?(void 0===t.get()&&(r[t.astr]=null),t.set(e)):t.set(e)};var m=/(\\.[^\\[\\]\\.]+|\\[[^\\[\\]\\.]+\\])$/;function y(t){var e=t.search(m);if(e>0)return t.substr(0,e)}r.hasParent=function(t,e){for(var r=y(e);r;){if(r in t)return!0;r=y(r)}return!1};var x=[\"x\",\"y\",\"z\"];r.clearAxisTypes=function(t,e,r){for(var n=0;n<e.length;n++)for(var i=t._fullData[n],a=0;a<3;a++){var s=u(t,i,x[a]);if(s&&\"log\"!==s.type){var l=s._name,c=s._id.substr(1);if(\"scene\"===c.substr(0,5)){if(void 0!==r[c])continue;l=c+\".\"+l}var f=l+\".type\";void 0===r[l]&&void 0===r[f]&&o.nestedProperty(t.layout,f).set(null)}}}},{\"../components/color\":570,\"../lib\":696,\"../plots/cartesian/axis_ids\":747,\"../plots/plots\":808,\"../registry\":827,\"fast-isnumeric\":214,\"gl-mat4/fromQuat\":251}],729:[function(t,e,r){\"use strict\";var n=t(\"./plot_api\");r.plot=n.plot,r.newPlot=n.newPlot,r.restyle=n.restyle,r.relayout=n.relayout,r.redraw=n.redraw,r.update=n.update,r.react=n.react,r.extendTraces=n.extendTraces,r.prependTraces=n.prependTraces,r.addTraces=n.addTraces,r.deleteTraces=n.deleteTraces,r.moveTraces=n.moveTraces,r.purge=n.purge,r.addFrames=n.addFrames,r.deleteFrames=n.deleteFrames,r.animate=n.animate,r.setPlotConfig=n.setPlotConfig,r.toImage=t(\"./to_image\"),r.validate=t(\"./validate\"),r.downloadImage=t(\"../snapshot/download\");var i=t(\"./template_api\");r.makeTemplate=i.makeTemplate,r.validateTemplate=i.validateTemplate},{\"../snapshot/download\":829,\"./plot_api\":731,\"./template_api\":736,\"./to_image\":737,\"./validate\":738}],730:[function(t,e,r){\"use strict\";var n=t(\"../lib/nested_property\"),i=t(\"../lib/is_plain_object\"),a=t(\"../lib/noop\"),o=t(\"../lib/loggers\"),s=t(\"../lib/search\").sorterAsc,l=t(\"../registry\");r.containerArrayMatch=t(\"./container_array_match\");var c=r.isAddVal=function(t){return\"add\"===t||i(t)},u=r.isRemoveVal=function(t){return null===t||\"remove\"===t};r.applyContainerArrayChanges=function(t,e,r,i){var f=e.astr,h=l.getComponentMethod(f,\"supplyLayoutDefaults\"),p=l.getComponentMethod(f,\"draw\"),d=l.getComponentMethod(f,\"drawOne\"),g=i.replot||i.recalc||h===a||p===a,v=t.layout,m=t._fullLayout;if(r[\"\"]){Object.keys(r).length>1&&o.warn(\"Full array edits are incompatible with other edits\",f);var y=r[\"\"][\"\"];if(u(y))e.set(null);else{if(!Array.isArray(y))return o.warn(\"Unrecognized full array edit value\",f,y),!0;e.set(y)}return!g&&(h(v,m),p(t),!0)}var x,b,_,w,k,M,A,T=Object.keys(r).map(Number).sort(s),S=e.get(),E=S||[],C=n(m,f).get(),L=[],z=-1,O=E.length;for(x=0;x<T.length;x++)if(w=r[_=T[x]],k=Object.keys(w),M=w[\"\"],A=c(M),_<0||_>E.length-(A?0:1))o.warn(\"index out of range\",f,_);else if(void 0!==M)k.length>1&&o.warn(\"Insertion & removal are incompatible with edits to the same index.\",f,_),u(M)?L.push(_):A?(\"add\"===M&&(M={}),E.splice(_,0,M),C&&C.splice(_,0,{})):o.warn(\"Unrecognized full object edit value\",f,_,M),-1===z&&(z=_);else for(b=0;b<k.length;b++)n(E[_],k[b]).set(w[k[b]]);for(x=L.length-1;x>=0;x--)E.splice(L[x],1),C&&C.splice(L[x],1);if(E.length?S||e.set(E):e.set(null),g)return!1;if(h(v,m),d!==a){var I;if(-1===z)I=T;else{for(O=Math.max(E.length,O),I=[],x=0;x<T.length&&!((_=T[x])>=z);x++)I.push(_);for(x=z;x<O;x++)I.push(x)}for(x=0;x<I.length;x++)d(t,I[x])}else p(t);return!0}},{\"../lib/is_plain_object\":697,\"../lib/loggers\":700,\"../lib/nested_property\":704,\"../lib/noop\":705,\"../lib/search\":715,\"../registry\":827,\"./container_array_match\":726}],731:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"fast-isnumeric\"),a=t(\"has-hover\"),o=t(\"../lib\"),s=t(\"../lib/events\"),l=t(\"../lib/queue\"),c=t(\"../registry\"),u=t(\"./plot_schema\"),f=t(\"../plots/plots\"),h=t(\"../plots/polar/legacy\"),p=t(\"../plots/cartesian/axes\"),d=t(\"../components/drawing\"),g=t(\"../components/color\"),v=t(\"../components/colorbar/connect\"),m=t(\"../plots/cartesian/graph_interact\").initInteractions,y=t(\"../constants/xmlns_namespaces\"),x=t(\"../lib/svg_text_utils\"),b=t(\"./plot_config\"),_=t(\"./manage_arrays\"),w=t(\"./helpers\"),k=t(\"./subroutines\"),M=t(\"./edit_types\"),A=t(\"../plots/cartesian/constants\").AX_NAME_PATTERN,T=0;function S(t){var e=t._fullLayout;e._redrawFromAutoMarginCount?e._redrawFromAutoMarginCount--:t.emit(\"plotly_afterplot\")}function E(t,e){try{t._fullLayout._paper.style(\"background\",e)}catch(t){o.error(t)}}function C(t,e){E(t,g.combine(e,\"white\"))}function L(t,e){t._context||(t._context=o.extendDeep({},b));var r,n,i,s=t._context;if(e){for(n=Object.keys(e),r=0;r<n.length;r++)\"editable\"!==(i=n[r])&&\"edits\"!==i&&i in s&&(\"setBackground\"===i&&\"opaque\"===e[i]?s[i]=C:s[i]=e[i]);e.plot3dPixelRatio&&!s.plotGlPixelRatio&&(s.plotGlPixelRatio=s.plot3dPixelRatio);var l=e.editable;if(void 0!==l)for(s.editable=l,n=Object.keys(s.edits),r=0;r<n.length;r++)s.edits[n[r]]=l;if(e.edits)for(n=Object.keys(e.edits),r=0;r<n.length;r++)(i=n[r])in s.edits&&(s.edits[i]=e.edits[i])}s.staticPlot&&(s.editable=!1,s.edits={},s.autosizable=!1,s.scrollZoom=!1,s.doubleClick=!1,s.showTips=!1,s.showLink=!1,s.displayModeBar=!1),\"hover\"!==s.displayModeBar||a||(s.displayModeBar=!0),\"transparent\"!==s.setBackground&&\"function\"==typeof s.setBackground||(s.setBackground=E),s._hasZeroHeight=s._hasZeroHeight||0===t.clientHeight,s._hasZeroWidth=s._hasZeroWidth||0===t.clientWidth}function z(t,e){var r,n,i=e+1,a=[];for(r=0;r<t.length;r++)(n=t[r])<0?a.push(i+n):a.push(n);return a}function O(t,e,r){var n,i;for(n=0;n<e.length;n++){if((i=e[n])!==parseInt(i,10))throw new Error(\"all values in \"+r+\" must be integers\");if(i>=t.data.length||i<-t.data.length)throw new Error(r+\" must be valid indices for gd.data.\");if(e.indexOf(i,n+1)>-1||i>=0&&e.indexOf(-t.data.length+i)>-1||i<0&&e.indexOf(t.data.length+i)>-1)throw new Error(\"each index in \"+r+\" must be unique.\")}}function I(t,e,r){if(!Array.isArray(t.data))throw new Error(\"gd.data must be an array.\");if(\"undefined\"==typeof e)throw new Error(\"currentIndices is a required argument.\");if(Array.isArray(e)||(e=[e]),O(t,e,\"currentIndices\"),\"undefined\"==typeof r||Array.isArray(r)||(r=[r]),\"undefined\"!=typeof r&&O(t,r,\"newIndices\"),\"undefined\"!=typeof r&&e.length!==r.length)throw new Error(\"current and new indices must be of equal length.\")}function P(t,e,r,n,a){!function(t,e,r,n){var i=o.isPlainObject(n);if(!Array.isArray(t.data))throw new Error(\"gd.data must be an array\");if(!o.isPlainObject(e))throw new Error(\"update must be a key:value object\");if(\"undefined\"==typeof r)throw new Error(\"indices must be an integer or array of integers\");for(var a in O(t,r,\"indices\"),e){if(!Array.isArray(e[a])||e[a].length!==r.length)throw new Error(\"attribute \"+a+\" must be an array of length equal to indices array length\");if(i&&(!(a in n)||!Array.isArray(n[a])||n[a].length!==e[a].length))throw new Error(\"when maxPoints is set as a key:value object it must contain a 1:1 corrispondence with the keys and number of traces in the update object\")}}(t,e,r,n);for(var s=function(t,e,r,n){var a,s,l,c,u,f=o.isPlainObject(n),h=[];for(var p in Array.isArray(r)||(r=[r]),r=z(r,t.data.length-1),e)for(var d=0;d<r.length;d++){if(a=t.data[r[d]],s=(l=o.nestedProperty(a,p)).get(),c=e[p][d],!o.isArrayOrTypedArray(c))throw new Error(\"attribute: \"+p+\" index: \"+d+\" must be an array\");if(!o.isArrayOrTypedArray(s))throw new Error(\"cannot extend missing or non-array attribute: \"+p);if(s.constructor!==c.constructor)throw new Error(\"cannot extend array with an array of a different type: \"+p);u=f?n[p][d]:n,i(u)||(u=-1),h.push({prop:l,target:s,insert:c,maxp:Math.floor(u)})}return h}(t,e,r,n),l={},c={},u=0;u<s.length;u++){var f=s[u].prop,h=s[u].maxp,p=a(s[u].target,s[u].insert,h);f.set(p[0]),Array.isArray(l[f.astr])||(l[f.astr]=[]),l[f.astr].push(p[1]),Array.isArray(c[f.astr])||(c[f.astr]=[]),c[f.astr].push(s[u].target.length)}return{update:l,maxPoints:c}}function D(t,e){var r=new t.constructor(t.length+e.length);return r.set(t),r.set(e,t.length),r}function R(t){return void 0===t?null:t}function B(t,e,r){var n,i,a=t._fullLayout,s=t._fullData,l=t.data,h=M.traceFlags(),d={},g={};function v(){return r.map(function(){})}function m(t){var e=p.id2name(t);-1===i.indexOf(e)&&i.push(e)}function y(t){return\"LAYOUT\"+t+\".autorange\"}function x(t){return\"LAYOUT\"+t+\".range\"}function b(n,i,a){var s;Array.isArray(n)?n.forEach(function(t){b(t,i,a)}):n in e||w.hasParent(e,n)||(s=\"LAYOUT\"===n.substr(0,6)?o.nestedProperty(t.layout,n.replace(\"LAYOUT\",\"\")):o.nestedProperty(l[r[a]],n),n in g||(g[n]=v()),void 0===g[n][a]&&(g[n][a]=R(s.get())),void 0!==i&&s.set(i))}function _(t){return function(e){return s[e][t]}}function k(t){return function(e,n){return!1===e?s[r[n]][t]:null}}for(var A in e){if(w.hasParent(e,A))throw new Error(\"cannot set \"+A+\"and a parent attribute simultaneously\");var T,S,E,C,L,z,O=e[A];if(\"autobinx\"!==A&&\"autobiny\"!==A||(A=A.charAt(A.length-1)+\"bins\",O=Array.isArray(O)?O.map(k(A)):!1===O?r.map(_(A)):null),d[A]=O,\"LAYOUT\"!==A.substr(0,6)){for(g[A]=v(),n=0;n<r.length;n++)if(T=l[r[n]],S=s[r[n]],C=(E=o.nestedProperty(T,A)).get(),void 0!==(L=Array.isArray(O)?O[n%O.length]:O)){var I=E.parts[E.parts.length-1],P=A.substr(0,A.length-I.length-1),D=P?P+\".\":\"\",B=P?o.nestedProperty(S,P).get():S;if((z=u.getTraceValObject(S,E.parts))&&z.impliedEdits&&null!==L)for(var F in z.impliedEdits)b(o.relativeAttr(A,F),z.impliedEdits[F],n);else if(\"thicknessmode\"!==I&&\"lenmode\"!==I||C===L||\"fraction\"!==L&&\"pixels\"!==L||!B){if(\"type\"===A&&\"pie\"===L!=(\"pie\"===C)){var N=\"x\",j=\"y\";\"bar\"!==L&&\"bar\"!==C||\"h\"!==T.orientation||(N=\"y\",j=\"x\"),o.swapAttrs(T,[\"?\",\"?src\"],\"labels\",N),o.swapAttrs(T,[\"d?\",\"?0\"],\"label\",N),o.swapAttrs(T,[\"?\",\"?src\"],\"values\",j),\"pie\"===C?(o.nestedProperty(T,\"marker.color\").set(o.nestedProperty(T,\"marker.colors\").get()),a._pielayer.selectAll(\"g.trace\").remove()):c.traceIs(T,\"cartesian\")&&o.nestedProperty(T,\"marker.colors\").set(o.nestedProperty(T,\"marker.color\").get())}}else{var V=a._size,U=B.orient,q=\"top\"===U||\"bottom\"===U;if(\"thicknessmode\"===I){var H=q?V.h:V.w;b(D+\"thickness\",B.thickness*(\"fraction\"===L?1/H:H),n)}else{var G=q?V.w:V.h;b(D+\"len\",B.len*(\"fraction\"===L?1/G:G),n)}}g[A][n]=R(C);if(-1!==[\"swapxy\",\"swapxyaxes\",\"orientation\",\"orientationaxes\"].indexOf(A)){if(\"orientation\"===A){E.set(L);var W=T.x&&!T.y?\"h\":\"v\";if((E.get()||W)===S.orientation)continue}else\"orientationaxes\"===A&&(T.orientation={v:\"h\",h:\"v\"}[S.orientation]);w.swapXYData(T),h.calc=h.clearAxisTypes=!0}else-1!==f.dataArrayContainers.indexOf(E.parts[0])?(w.manageArrayContainers(E,L,g),h.calc=!0):(z?z.arrayOk&&!c.traceIs(S,\"regl\")&&(o.isArrayOrTypedArray(L)||o.isArrayOrTypedArray(C))?h.calc=!0:M.update(h,z):h.calc=!0,E.set(L))}if(-1!==[\"swapxyaxes\",\"orientationaxes\"].indexOf(A)&&p.swap(t,r),\"orientationaxes\"===A){var Y=o.nestedProperty(t.layout,\"hovermode\");\"x\"===Y.get()?Y.set(\"y\"):\"y\"===Y.get()&&Y.set(\"x\")}if(-1!==[\"orientation\",\"type\"].indexOf(A)){for(i=[],n=0;n<r.length;n++){var X=l[r[n]];c.traceIs(X,\"cartesian\")&&(m(X.xaxis||\"x\"),m(X.yaxis||\"y\"))}b(i.map(y),!0,0),b(i.map(x),[0,1],0)}}else E=o.nestedProperty(t.layout,A.replace(\"LAYOUT\",\"\")),g[A]=[R(E.get())],E.set(Array.isArray(O)?O[0]:O),h.calc=!0}return(h.calc||h.plot)&&(h.fullReplot=!0),{flags:h,undoit:g,redoit:d,traces:r,eventData:o.extendDeepNoArrays([],[d,r])}}function F(t,e,r){var n;if(!e.axrange)return!1;for(n in e)if(\"axrange\"!==n&&e[n])return!1;for(n in r.rangesAltered){var i=p.id2name(n),a=t.layout[i],o=t._fullLayout[i];o.autorange=a.autorange,o.range=a.range.slice(),o.cleanRange()}return!0}function N(t,e){var r=e?function(t){return p.doTicks(t,Object.keys(e),!0)}:function(t){return p.doTicks(t,\"redraw\")};t.push(k.doAutoRangeAndConstraints,r,k.drawData,k.finalDraw)}r.plot=function(t,e,i,a){var l;if(t=o.getGraphDiv(t),s.init(t),o.isPlainObject(e)){var u=e;e=u.data,i=u.layout,a=u.config,l=u.frames}if(!1===s.triggerHandler(t,\"plotly_beforeplot\",[e,i,a]))return Promise.reject();e||i||o.isPlotDiv(t)||o.warn(\"Calling Plotly.plot as if redrawing but this container doesn't yet have a plot.\",t),L(t,a),i||(i={}),n.select(t).classed(\"js-plotly-plot\",!0),d.makeTester(),delete d.baseUrl,Array.isArray(t._promises)||(t._promises=[]);var g=0===(t.data||[]).length&&Array.isArray(e);if(Array.isArray(e)&&(w.cleanData(e),g?t.data=e:t.data.push.apply(t.data,e),t.empty=!1),t.layout&&!g||(t.layout=w.cleanLayout(i)),t._dragging&&!t._transitioning)return t._replotPending=!0,Promise.reject();t._replotPending=!1,f.supplyDefaults(t);var y=t._fullLayout,b=y._has(\"cartesian\");if(!y._has(\"polar\")&&e&&e[0]&&e[0].r)return o.log(\"Legacy polar charts are deprecated!\"),function(t,e,r){var i=n.select(t).selectAll(\".plot-container\").data([0]);i.enter().insert(\"div\",\":first-child\").classed(\"plot-container plotly\",!0);var a=i.selectAll(\".svg-container\").data([0]);a.enter().append(\"div\").classed(\"svg-container\",!0).style(\"position\",\"relative\"),a.html(\"\"),e&&(t.data=e);r&&(t.layout=r);h.manager.fillLayout(t),a.style({width:t._fullLayout.width+\"px\",height:t._fullLayout.height+\"px\"}),t.framework=h.manager.framework(t),t.framework({data:t.data,layout:t.layout},a.node()),t.framework.setUndoPoint();var s=t.framework.svg(),l=1,c=t._fullLayout.title;\"\"!==c&&c||(l=0);var u=function(){this.call(x.convertToTspans,t)},p=s.select(\".title-group text\").call(u);if(t._context.edits.titleText){var d=o._(t,\"Click to enter Plot title\");c&&c!==d||(l=.2,p.attr({\"data-unformatted\":d}).text(d).style({opacity:l}).on(\"mouseover.opacity\",function(){n.select(this).transition().duration(100).style(\"opacity\",1)}).on(\"mouseout.opacity\",function(){n.select(this).transition().duration(1e3).style(\"opacity\",0)}));var g=function(){this.call(x.makeEditable,{gd:t}).on(\"edit\",function(e){t.framework({layout:{title:e}}),this.text(e).call(u),this.call(g)}).on(\"cancel\",function(){var t=this.attr(\"data-unformatted\");this.text(t).call(u)})};p.call(g)}return t._context.setBackground(t,t._fullLayout.paper_bgcolor),f.addLinks(t),Promise.resolve()}(t,e,i);y._replotting=!0,g&&W(t),t.framework!==W&&(t.framework=W,W(t)),d.initGradients(t),g&&p.saveShowSpikeInitial(t);var _=!t.calcdata||t.calcdata.length!==(t._fullData||[]).length;_&&f.doCalcdata(t);for(var M=0;M<t.calcdata.length;M++)t.calcdata[M][0].trace=t._fullData[M];t._context.responsive?t._responsiveChartHandler||(t._responsiveChartHandler=function(){f.resize(t)},window.addEventListener(\"resize\",t._responsiveChartHandler)):o.clearResponsive(t);var A=JSON.stringify(y._size),T=0;function E(){var e,r,n,i=t.calcdata;for(f.clearAutoMarginIds(t),k.drawMarginPushers(t),p.allowAutoMargin(t),e=0;e<i.length;e++){var a=(n=(r=i[e])[0].trace)._module.colorbar;!0===n.visible&&a?v(t,r,a):f.autoMargin(t,\"cb\"+n.uid)}return f.doAutoMargin(t),f.previousPromises(t)}function C(){t._transitioning||(k.doAutoRangeAndConstraints(t),g&&p.saveRangeInitial(t))}var z=[f.previousPromises,function(){if(l)return r.addFrames(t,l)},function e(){for(var r=y._basePlotModules,n=0;n<r.length;n++)r[n].drawFramework&&r[n].drawFramework(t);if(!y._glcanvas&&y._has(\"gl\")&&(y._glcanvas=y._glcontainer.selectAll(\".gl-canvas\").data([{key:\"contextLayer\",context:!0,pick:!1},{key:\"focusLayer\",context:!1,pick:!1},{key:\"pickLayer\",context:!1,pick:!0}],function(t){return t.key}),y._glcanvas.enter().append(\"canvas\").attr(\"class\",function(t){return\"gl-canvas gl-canvas-\"+t.key.replace(\"Layer\",\"\")}).style({position:\"absolute\",top:0,left:0,width:\"100%\",height:\"100%\",overflow:\"visible\",\"pointer-events\":\"none\"})),y._glcanvas){y._glcanvas.attr(\"width\",y.width).attr(\"height\",y.height);var i=y._glcanvas.data()[0].regl;if(i&&(Math.floor(y.width)!==i._gl.drawingBufferWidth||Math.floor(y.height)!==i._gl.drawingBufferHeight)){var a=\"WebGL context buffer and canvas dimensions do not match due to browser/WebGL bug.\";if(!T)return o.log(a+\" Clearing graph and plotting again.\"),f.cleanPlot([],{},t._fullData,y),f.supplyDefaults(t),y=t._fullLayout,f.doCalcdata(t),T++,e();o.error(a)}}return f.previousPromises(t)},E,function(){if(JSON.stringify(y._size)!==A)return o.syncOrAsync([E,k.layoutStyles],t)}];b&&z.push(function(){if(_)return o.syncOrAsync([c.getComponentMethod(\"shapes\",\"calcAutorange\"),c.getComponentMethod(\"annotations\",\"calcAutorange\"),C,c.getComponentMethod(\"rangeslider\",\"calcAutorange\")],t);C()}),z.push(k.layoutStyles),b&&z.push(function(){return p.doTicks(t,g?\"\":\"redraw\")}),z.push(k.drawData,k.finalDraw,m,f.addLinks,f.rehover,f.doAutoMargin,f.previousPromises);var O=o.syncOrAsync(z,t);return O&&O.then||(O=Promise.resolve()),O.then(function(){return S(t),t})},r.setPlotConfig=function(t){return o.extendFlat(b,t)},r.redraw=function(t){if(t=o.getGraphDiv(t),!o.isPlotDiv(t))throw new Error(\"This element is not a Plotly plot: \"+t);return w.cleanData(t.data),w.cleanLayout(t.layout),t.calcdata=void 0,r.plot(t).then(function(){return t.emit(\"plotly_redraw\"),t})},r.newPlot=function(t,e,n,i){return t=o.getGraphDiv(t),f.cleanPlot([],{},t._fullData||[],t._fullLayout||{}),f.purge(t),r.plot(t,e,n,i)},r.extendTraces=function t(e,n,i,a){var s=P(e=o.getGraphDiv(e),n,i,a,function(t,e,r){var n,i;if(o.isTypedArray(t))if(r<0){var a=new t.constructor(0),s=D(t,e);r<0?(n=s,i=a):(n=a,i=s)}else if(n=new t.constructor(r),i=new t.constructor(t.length+e.length-r),r===e.length)n.set(e),i.set(t);else if(r<e.length){var l=e.length-r;n.set(e.subarray(l)),i.set(t),i.set(e.subarray(0,l),t.length)}else{var c=r-e.length,u=t.length-c;n.set(t.subarray(u)),n.set(e,c),i.set(t.subarray(0,u))}else n=t.concat(e),i=r>=0&&r<n.length?n.splice(0,n.length-r):[];return[n,i]}),c=r.redraw(e),u=[e,s.update,i,s.maxPoints];return l.add(e,r.prependTraces,u,t,arguments),c},r.prependTraces=function t(e,n,i,a){var s=P(e=o.getGraphDiv(e),n,i,a,function(t,e,r){var n,i;if(o.isTypedArray(t))if(r<=0){var a=new t.constructor(0),s=D(e,t);r<0?(n=s,i=a):(n=a,i=s)}else if(n=new t.constructor(r),i=new t.constructor(t.length+e.length-r),r===e.length)n.set(e),i.set(t);else if(r<e.length){var l=e.length-r;n.set(e.subarray(0,l)),i.set(e.subarray(l)),i.set(t,l)}else{var c=r-e.length;n.set(e),n.set(t.subarray(0,c),e.length),i.set(t.subarray(c))}else n=e.concat(t),i=r>=0&&r<n.length?n.splice(r,n.length):[];return[n,i]}),c=r.redraw(e),u=[e,s.update,i,s.maxPoints];return l.add(e,r.extendTraces,u,t,arguments),c},r.addTraces=function t(e,n,i){e=o.getGraphDiv(e);var a,s,c=[],u=r.deleteTraces,f=t,h=[e,c],p=[e,n];for(function(t,e,r){var n,i;if(!Array.isArray(t.data))throw new Error(\"gd.data must be an array.\");if(\"undefined\"==typeof e)throw new Error(\"traces must be defined.\");for(Array.isArray(e)||(e=[e]),n=0;n<e.length;n++)if(\"object\"!=typeof(i=e[n])||Array.isArray(i)||null===i)throw new Error(\"all values in traces array must be non-array objects\");if(\"undefined\"==typeof r||Array.isArray(r)||(r=[r]),\"undefined\"!=typeof r&&r.length!==e.length)throw new Error(\"if indices is specified, traces.length must equal indices.length\")}(e,n,i),Array.isArray(n)||(n=[n]),n=n.map(function(t){return o.extendFlat({},t)}),w.cleanData(n),a=0;a<n.length;a++)e.data.push(n[a]);for(a=0;a<n.length;a++)c.push(-n.length+a);if(\"undefined\"==typeof i)return s=r.redraw(e),l.add(e,u,h,f,p),s;Array.isArray(i)||(i=[i]);try{I(e,c,i)}catch(t){throw e.data.splice(e.data.length-n.length,n.length),t}return l.startSequence(e),l.add(e,u,h,f,p),s=r.moveTraces(e,c,i),l.stopSequence(e),s},r.deleteTraces=function t(e,n){e=o.getGraphDiv(e);var i,a,s=[],c=r.addTraces,u=t,f=[e,s,n],h=[e,n];if(\"undefined\"==typeof n)throw new Error(\"indices must be an integer or array of integers.\");for(Array.isArray(n)||(n=[n]),O(e,n,\"indices\"),(n=z(n,e.data.length-1)).sort(o.sorterDes),i=0;i<n.length;i+=1)a=e.data.splice(n[i],1)[0],s.push(a);var p=r.redraw(e);return l.add(e,c,f,u,h),p},r.moveTraces=function t(e,n,i){var a,s=[],c=[],u=t,f=t,h=[e=o.getGraphDiv(e),i,n],p=[e,n,i];if(I(e,n,i),n=Array.isArray(n)?n:[n],\"undefined\"==typeof i)for(i=[],a=0;a<n.length;a++)i.push(-n.length+a);for(i=Array.isArray(i)?i:[i],n=z(n,e.data.length-1),i=z(i,e.data.length-1),a=0;a<e.data.length;a++)-1===n.indexOf(a)&&s.push(e.data[a]);for(a=0;a<n.length;a++)c.push({newIndex:i[a],trace:e.data[n[a]]});for(c.sort(function(t,e){return t.newIndex-e.newIndex}),a=0;a<c.length;a+=1)s.splice(c[a].newIndex,0,c[a].trace);e.data=s;var d=r.redraw(e);return l.add(e,u,h,f,p),d},r.restyle=function t(e,n,i,a){e=o.getGraphDiv(e),w.clearPromiseQueue(e);var s={};if(\"string\"==typeof n)s[n]=i;else{if(!o.isPlainObject(n))return o.warn(\"Restyle fail.\",n,i,a),Promise.reject();s=o.extendFlat({},n),void 0===a&&(a=i)}Object.keys(s).length&&(e.changed=!0);var c=w.coerceTraceIndices(e,a),u=B(e,s,c),h=u.flags;h.calc&&(e.calcdata=void 0),h.clearAxisTypes&&w.clearAxisTypes(e,c,{});var p=[];h.fullReplot?p.push(r.plot):(p.push(f.previousPromises),f.supplyDefaults(e),h.markerSize&&(f.doCalcdata(e),N(p)),h.style&&p.push(k.doTraceStyle),h.colorbars&&p.push(k.doColorBars),p.push(S)),p.push(f.rehover),l.add(e,t,[e,u.undoit,u.traces],t,[e,u.redoit,u.traces]);var d=o.syncOrAsync(p,e);return d&&d.then||(d=Promise.resolve()),d.then(function(){return e.emit(\"plotly_restyle\",u.eventData),e})},r.relayout=function t(e,r,n){if(e=o.getGraphDiv(e),w.clearPromiseQueue(e),e.framework&&e.framework.isPolar)return Promise.resolve(e);var i={};if(\"string\"==typeof r)i[r]=n;else{if(!o.isPlainObject(r))return o.warn(\"Relayout fail.\",r,n),Promise.reject();i=o.extendFlat({},r)}Object.keys(i).length&&(e.changed=!0);var a=q(e,i),s=a.flags;s.calc&&(e.calcdata=void 0);var c=[f.previousPromises];s.layoutReplot?c.push(k.layoutReplot):Object.keys(i).length&&(F(e,s,a)||f.supplyDefaults(e),s.legend&&c.push(k.doLegend),s.layoutstyle&&c.push(k.layoutStyles),s.axrange&&N(c,a.rangesAltered),s.ticks&&c.push(k.doTicksRelayout),s.modebar&&c.push(k.doModeBar),s.camera&&c.push(k.doCamera),c.push(S)),c.push(f.rehover),l.add(e,t,[e,a.undoit],t,[e,a.redoit]);var u=o.syncOrAsync(c,e);return u&&u.then||(u=Promise.resolve(e)),u.then(function(){return e.emit(\"plotly_relayout\",a.eventData),e})};var j=/^[xyz]axis[0-9]*\\.range(\\[[0|1]\\])?$/,V=/^[xyz]axis[0-9]*\\.autorange$/,U=/^[xyz]axis[0-9]*\\.domain(\\[[0|1]\\])?$/;function q(t,e){var r,n,i,a=t.layout,s=t._fullLayout,l=Object.keys(e),f=p.list(t),h={};for(n=0;n<l.length;n++)if(0===l[n].indexOf(\"allaxes\")){for(i=0;i<f.length;i++){var d=f[i]._id.substr(1),g=-1!==d.indexOf(\"scene\")?d+\".\":\"\",v=l[n].replace(\"allaxes\",g+f[i]._name);e[v]||(e[v]=e[l[n]])}delete e[l[n]]}var m=M.layoutFlags(),y={},x={};function b(t,r){if(Array.isArray(t))t.forEach(function(t){b(t,r)});else if(!(t in e||w.hasParent(e,t))){var n=o.nestedProperty(a,t);t in x||(x[t]=R(n.get())),void 0!==r&&n.set(r)}}var k,T={};function S(t){var e=p.name2id(t.split(\".\")[0]);return T[e]=1,e}for(var E in e){if(w.hasParent(e,E))throw new Error(\"cannot set \"+E+\"and a parent attribute simultaneously\");for(var C=o.nestedProperty(a,E),L=e[E],z=C.parts.length-1;z>0&&\"string\"!=typeof C.parts[z];)z--;var O=C.parts[z],I=C.parts[z-1]+\".\"+O,P=C.parts.slice(0,z).join(\".\"),D=o.nestedProperty(t.layout,P).get(),B=o.nestedProperty(s,P).get(),F=C.get();if(void 0!==L){y[E]=L,x[E]=\"reverse\"===O?L:R(F);var N=u.getLayoutValObject(s,C.parts);if(N&&N.impliedEdits&&null!==L)for(var q in N.impliedEdits)b(o.relativeAttr(E,q),N.impliedEdits[q]);if(-1!==[\"width\",\"height\"].indexOf(E))if(L){b(\"autosize\",null);var G=\"height\"===E?\"width\":\"height\";b(G,s[G])}else s[E]=t._initialAutoSize[E];else if(\"autosize\"===E)b(\"width\",L?null:s.width),b(\"height\",L?null:s.height);else if(I.match(j))S(I),o.nestedProperty(s,P+\"._inputRange\").set(null);else if(I.match(V)){S(I),o.nestedProperty(s,P+\"._inputRange\").set(null);var W=o.nestedProperty(s,P).get();W._inputDomain&&(W._input.domain=W._inputDomain.slice())}else I.match(U)&&o.nestedProperty(s,P+\"._inputDomain\").set(null);if(\"type\"===O){var Y=D,X=\"linear\"===B.type&&\"log\"===L,Z=\"log\"===B.type&&\"linear\"===L;if(X||Z){if(Y&&Y.range)if(B.autorange)X&&(Y.range=Y.range[1]>Y.range[0]?[1,2]:[2,1]);else{var $=Y.range[0],J=Y.range[1];X?($<=0&&J<=0&&b(P+\".autorange\",!0),$<=0?$=J/1e6:J<=0&&(J=$/1e6),b(P+\".range[0]\",Math.log($)/Math.LN10),b(P+\".range[1]\",Math.log(J)/Math.LN10)):(b(P+\".range[0]\",Math.pow(10,$)),b(P+\".range[1]\",Math.pow(10,J)))}else b(P+\".autorange\",!0);Array.isArray(s._subplots.polar)&&s._subplots.polar.length&&s[C.parts[0]]&&\"radialaxis\"===C.parts[1]&&delete s[C.parts[0]]._subplot.viewInitial[\"radialaxis.range\"],c.getComponentMethod(\"annotations\",\"convertCoords\")(t,B,L,b),c.getComponentMethod(\"images\",\"convertCoords\")(t,B,L,b)}else b(P+\".autorange\",!0),b(P+\".range\",null);o.nestedProperty(s,P+\"._inputRange\").set(null)}else if(O.match(A)){var K=o.nestedProperty(s,E).get(),Q=(L||{}).type;Q&&\"-\"!==Q||(Q=\"linear\"),c.getComponentMethod(\"annotations\",\"convertCoords\")(t,K,Q,b),c.getComponentMethod(\"images\",\"convertCoords\")(t,K,Q,b)}var tt=_.containerArrayMatch(E);if(tt){r=tt.array,n=tt.index;var et=tt.property,rt=(o.nestedProperty(a,r)||[])[n]||{},nt=N||{editType:\"calc\"};\"\"!==n&&\"\"===et&&(_.isAddVal(L)?x[E]=null:_.isRemoveVal(L)?x[E]=rt:o.warn(\"unrecognized full object value\",e)),M.update(m,nt),h[r]||(h[r]={});var it=h[r][n];it||(it=h[r][n]={}),it[et]=L,delete e[E]}else\"reverse\"===O?(D.range?D.range.reverse():(b(P+\".autorange\",!0),D.range=[1,0]),B.autorange?m.calc=!0:m.plot=!0):(s._has(\"scatter-like\")&&s._has(\"regl\")&&\"dragmode\"===E&&(\"lasso\"===L||\"select\"===L)&&\"lasso\"!==F&&\"select\"!==F?m.plot=!0:N?M.update(m,N):m.calc=!0,C.set(L))}}for(r in h){_.applyContainerArrayChanges(t,o.nestedProperty(a,r),h[r],m)||(m.plot=!0)}var at=s._axisConstraintGroups||[];for(k in T)for(n=0;n<at.length;n++){var ot=at[n];if(ot[k])for(var st in m.calc=!0,ot)T[st]||(p.getFromId(t,st)._constraintShrinkable=!0)}return(H(t)||e.height||e.width)&&(m.plot=!0),(m.plot||m.calc)&&(m.layoutReplot=!0),{flags:m,rangesAltered:T,undoit:x,redoit:y,eventData:o.extendDeep({},y)}}function H(t){var e=t._fullLayout,r=e.width,n=e.height;return t.layout.autosize&&f.plotAutoSize(t,t.layout,e),e.width!==r||e.height!==n}function G(t,e,r,n){var i,a,s=n.getValObject,l=n.flags,c=n.immutable,u=n.inArray,f=n.arrayIndex;function h(){var t=i.editType;u&&-1!==t.indexOf(\"arraydraw\")?o.pushUnique(l.arrays[u],f):M.update(l,i)}function p(t){return\"data_array\"===t.valType||t.arrayOk}for(a in t){if(l.calc)return;var d=t[a],g=e[a];if(\"_\"!==a.charAt(0)&&\"function\"!=typeof d&&d!==g){if((\"tick0\"===a||\"dtick\"===a)&&\"geo\"!==r[0]){var v=e.tickmode;if(\"auto\"===v||\"array\"===v||!v)continue}if((\"range\"!==a||!e.autorange)&&(\"zmin\"!==a&&\"zmax\"!==a||\"contourcarpet\"!==e.type)){var m=r.concat(a);if((i=s(m))&&(!i._compareAsJSON||JSON.stringify(d)!==JSON.stringify(g))){var y,x=i.valType,b=p(i),_=Array.isArray(d),w=Array.isArray(g);if(_&&w){var k=\"_input_\"+a,A=t[k],T=e[k];if(Array.isArray(A)&&A===T)continue}if(void 0===g)b&&_?l.calc=!0:h();else if(i._isLinkedToArray){var S=[],E=!1;u||(l.arrays[a]=S);var C=Math.min(d.length,g.length),L=Math.max(d.length,g.length);if(C!==L){if(\"arraydraw\"!==i.editType){h();continue}E=!0}for(y=0;y<C;y++)G(d[y],g[y],m.concat(y),o.extendFlat({inArray:a,arrayIndex:y},n));if(E)for(y=C;y<L;y++)S.push(y)}else!x&&o.isPlainObject(d)?G(d,g,m,n):b?_&&w?c&&(l.calc=!0):_!==w?l.calc=!0:h():_&&w&&d.length===g.length&&String(d)===String(g)||h()}}}}for(a in e)if(!(a in t||\"_\"===a.charAt(0)||\"function\"==typeof e[a])){if(p(i=s(r.concat(a)))&&Array.isArray(e[a]))return void(l.calc=!0);h()}}function W(t){var e=n.select(t),r=t._fullLayout;if(r._container=e.selectAll(\".plot-container\").data([0]),r._container.enter().insert(\"div\",\":first-child\").classed(\"plot-container\",!0).classed(\"plotly\",!0),r._paperdiv=r._container.selectAll(\".svg-container\").data([0]),r._paperdiv.enter().append(\"div\").classed(\"svg-container\",!0).style(\"position\",\"relative\"),r._glcontainer=r._paperdiv.selectAll(\".gl-container\").data([{}]),r._glcontainer.enter().append(\"div\").classed(\"gl-container\",!0),r._paperdiv.selectAll(\".main-svg\").remove(),r._paper=r._paperdiv.insert(\"svg\",\":first-child\").classed(\"main-svg\",!0),r._toppaper=r._paperdiv.append(\"svg\").classed(\"main-svg\",!0),!r._uid){var i={};n.selectAll(\"defs\").each(function(){this.id&&(i[this.id.split(\"-\")[1]]=1)}),r._uid=o.randstr(i)}r._paperdiv.selectAll(\".main-svg\").attr(y.svgAttrs),r._defs=r._paper.append(\"defs\").attr(\"id\",\"defs-\"+r._uid),r._clips=r._defs.append(\"g\").classed(\"clips\",!0),r._topdefs=r._toppaper.append(\"defs\").attr(\"id\",\"topdefs-\"+r._uid),r._topclips=r._topdefs.append(\"g\").classed(\"clips\",!0),r._bgLayer=r._paper.append(\"g\").classed(\"bglayer\",!0),r._draggers=r._paper.append(\"g\").classed(\"draglayer\",!0);var a=r._paper.append(\"g\").classed(\"layer-below\",!0);r._imageLowerLayer=a.append(\"g\").classed(\"imagelayer\",!0),r._shapeLowerLayer=a.append(\"g\").classed(\"shapelayer\",!0),r._cartesianlayer=r._paper.append(\"g\").classed(\"cartesianlayer\",!0),r._polarlayer=r._paper.append(\"g\").classed(\"polarlayer\",!0),r._ternarylayer=r._paper.append(\"g\").classed(\"ternarylayer\",!0),r._geolayer=r._paper.append(\"g\").classed(\"geolayer\",!0),r._pielayer=r._paper.append(\"g\").classed(\"pielayer\",!0),r._glimages=r._paper.append(\"g\").classed(\"glimages\",!0);var s=r._toppaper.append(\"g\").classed(\"layer-above\",!0);r._imageUpperLayer=s.append(\"g\").classed(\"imagelayer\",!0),r._shapeUpperLayer=s.append(\"g\").classed(\"shapelayer\",!0),r._infolayer=r._toppaper.append(\"g\").classed(\"infolayer\",!0),r._menulayer=r._toppaper.append(\"g\").classed(\"menulayer\",!0),r._zoomlayer=r._toppaper.append(\"g\").classed(\"zoomlayer\",!0),r._hoverlayer=r._toppaper.append(\"g\").classed(\"hoverlayer\",!0),t.emit(\"plotly_framework\")}r.update=function t(e,n,i,a){if(e=o.getGraphDiv(e),w.clearPromiseQueue(e),e.framework&&e.framework.isPolar)return Promise.resolve(e);o.isPlainObject(n)||(n={}),o.isPlainObject(i)||(i={}),Object.keys(n).length&&(e.changed=!0),Object.keys(i).length&&(e.changed=!0);var s=w.coerceTraceIndices(e,a),c=B(e,o.extendFlat({},n),s),u=c.flags,h=q(e,o.extendFlat({},i)),p=h.flags;(u.calc||p.calc)&&(e.calcdata=void 0),u.clearAxisTypes&&w.clearAxisTypes(e,s,i);var d=[];if(u.fullReplot&&p.layoutReplot){var g=e.data,v=e.layout;e.data=void 0,e.layout=void 0,d.push(function(){return r.plot(e,g,v)})}else u.fullReplot?d.push(r.plot):p.layoutReplot?d.push(k.layoutReplot):(d.push(f.previousPromises),F(e,p,h)||f.supplyDefaults(e),u.style&&d.push(k.doTraceStyle),u.colorbars&&d.push(k.doColorBars),p.legend&&d.push(k.doLegend),p.layoutstyle&&d.push(k.layoutStyles),p.axrange&&N(d,h.rangesAltered),p.ticks&&d.push(k.doTicksRelayout),p.modebar&&d.push(k.doModeBar),p.camera&&d.push(k.doCamera),d.push(S));d.push(f.rehover),l.add(e,t,[e,c.undoit,h.undoit,c.traces],t,[e,c.redoit,h.redoit,c.traces]);var m=o.syncOrAsync(d,e);return m&&m.then||(m=Promise.resolve(e)),m.then(function(){return e.emit(\"plotly_update\",{data:c.eventData,layout:h.eventData}),e})},r.react=function(t,e,n,i){var a,s;var l=(t=o.getGraphDiv(t))._fullData,h=t._fullLayout;if(o.isPlotDiv(t)&&l&&h){if(o.isPlainObject(e)){var p=e;e=p.data,n=p.layout,i=p.config,a=p.frames}var d=!1;if(i){var g=o.extendDeep({},t._context);t._context=void 0,L(t,i),d=function t(e,r){var n;for(n in e)if(\"_\"!==n.charAt(0)){var i=e[n],a=r[n];if(i!==a)if(o.isPlainObject(i)&&o.isPlainObject(a)){if(t(i,a))return!0}else{if(!Array.isArray(i)||!Array.isArray(a))return!0;if(i.length!==a.length)return!0;for(var s=0;s<i.length;s++)if(i[s]!==a[s]){if(!o.isPlainObject(i[s])||!o.isPlainObject(a[s]))return!0;if(t(i[s],a[s]))return!0}}}}(g,t._context)}t.data=e||[],w.cleanData(t.data),t.layout=n||{},w.cleanLayout(t.layout),f.supplyDefaults(t,{skipUpdateCalc:!0});var v=t._fullData,m=t._fullLayout,y=void 0===m.datarevision,x=function(t,e,r,n){if(e.length!==r.length)return{fullReplot:!0,calc:!0};var i,a,o=M.traceFlags();o.arrays={};var s={getValObject:function(t){return u.getTraceValObject(a,t)},flags:o,immutable:n,gd:t},l={};for(i=0;i<e.length;i++)a=r[i]._fullInput,f.hasMakesDataTransform(a)&&(a=r[i]),l[a.uid]||(l[a.uid]=1,G(e[i]._fullInput,a,[],s));(o.calc||o.plot)&&(o.fullReplot=!0);return o}(t,l,v,y),b=function(t,e,r,n){var i=M.layoutFlags();i.arrays={},G(e,r,[],{getValObject:function(t){return u.getLayoutValObject(r,t)},flags:i,immutable:n,gd:t}),(i.plot||i.calc)&&(i.layoutReplot=!0);return i}(t,h,m,y);H(t)&&(b.layoutReplot=!0),x.calc||b.calc?t.calcdata=void 0:f.supplyDefaultsUpdateCalc(t.calcdata,v);var _=[];if(a&&(t._transitionData={},f.createTransitionData(t),_.push(function(){return r.addFrames(t,a)})),x.fullReplot||b.layoutReplot||d)t._fullLayout._skipDefaults=!0,_.push(r.plot);else{for(var A in b.arrays){var T=b.arrays[A];if(T.length){var E=c.getComponentMethod(A,\"drawOne\");if(E!==o.noop)for(var C=0;C<T.length;C++)E(t,T[C]);else{var z=c.getComponentMethod(A,\"draw\");if(z===o.noop)throw new Error(\"cannot draw components: \"+A);z(t)}}}_.push(f.previousPromises),x.style&&_.push(k.doTraceStyle),x.colorbars&&_.push(k.doColorBars),b.legend&&_.push(k.doLegend),b.layoutstyle&&_.push(k.layoutStyles),b.axrange&&N(_),b.ticks&&_.push(k.doTicksRelayout),b.modebar&&_.push(k.doModeBar),b.camera&&_.push(k.doCamera),_.push(S)}_.push(f.rehover),(s=o.syncOrAsync(_,t))&&s.then||(s=Promise.resolve(t))}else s=r.newPlot(t,e,n,i);return s.then(function(){return t.emit(\"plotly_react\",{data:e,layout:n}),t})},r.animate=function(t,e,r){if(t=o.getGraphDiv(t),!o.isPlotDiv(t))throw new Error(\"This element is not a Plotly plot: \"+t+\". It's likely that you've failed to create a plot before animating it. For more details, see https://plot.ly/javascript/animations/\");var n=t._transitionData;n._frameQueue||(n._frameQueue=[]);var i=(r=f.supplyAnimationDefaults(r)).transition,a=r.frame;function s(t){return Array.isArray(i)?t>=i.length?i[0]:i[t]:i}function l(t){return Array.isArray(a)?t>=a.length?a[0]:a[t]:a}function c(t,e){var r=0;return function(){if(t&&++r===e)return t()}}return void 0===n._frameWaitingCnt&&(n._frameWaitingCnt=0),new Promise(function(a,u){function h(){n._currentFrame&&n._currentFrame.onComplete&&n._currentFrame.onComplete();var e=n._currentFrame=n._frameQueue.shift();if(e){var r=e.name?e.name.toString():null;t._fullLayout._currentFrame=r,n._lastFrameAt=Date.now(),n._timeToNext=e.frameOpts.duration,f.transition(t,e.frame.data,e.frame.layout,w.coerceTraceIndices(t,e.frame.traces),e.frameOpts,e.transitionOpts).then(function(){e.onComplete&&e.onComplete()}),t.emit(\"plotly_animatingframe\",{name:r,frame:e.frame,animation:{frame:e.frameOpts,transition:e.transitionOpts}})}else t.emit(\"plotly_animated\"),window.cancelAnimationFrame(n._animationRaf),n._animationRaf=null}function p(){t.emit(\"plotly_animating\"),n._lastFrameAt=-1/0,n._timeToNext=0,n._runningTransitions=0,n._currentFrame=null;var e=function(){n._animationRaf=window.requestAnimationFrame(e),Date.now()-n._lastFrameAt>n._timeToNext&&h()};e()}var d,g,v=0;function m(t){return Array.isArray(i)?v>=i.length?t.transitionOpts=i[v]:t.transitionOpts=i[0]:t.transitionOpts=i,v++,t}var y=[],x=null==e,b=Array.isArray(e);if(!x&&!b&&o.isPlainObject(e))y.push({type:\"object\",data:m(o.extendFlat({},e))});else if(x||-1!==[\"string\",\"number\"].indexOf(typeof e))for(d=0;d<n._frames.length;d++)(g=n._frames[d])&&(x||String(g.group)===String(e))&&y.push({type:\"byname\",name:String(g.name),data:m({name:g.name})});else if(b)for(d=0;d<e.length;d++){var _=e[d];-1!==[\"number\",\"string\"].indexOf(typeof _)?(_=String(_),y.push({type:\"byname\",name:_,data:m({name:_})})):o.isPlainObject(_)&&y.push({type:\"object\",data:m(o.extendFlat({},_))})}for(d=0;d<y.length;d++)if(\"byname\"===(g=y[d]).type&&!n._frameHash[g.data.name])return o.warn('animate failure: frame not found: \"'+g.data.name+'\"'),void u();-1!==[\"next\",\"immediate\"].indexOf(r.mode)&&function(){if(0!==n._frameQueue.length){for(;n._frameQueue.length;){var e=n._frameQueue.pop();e.onInterrupt&&e.onInterrupt()}t.emit(\"plotly_animationinterrupted\",[])}}(),\"reverse\"===r.direction&&y.reverse();var k=t._fullLayout._currentFrame;if(k&&r.fromcurrent){var M=-1;for(d=0;d<y.length;d++)if(\"byname\"===(g=y[d]).type&&g.name===k){M=d;break}if(M>0&&M<y.length-1){var A=[];for(d=0;d<y.length;d++)g=y[d],(\"byname\"!==y[d].type||d>M)&&A.push(g);y=A}}y.length>0?function(e){if(0!==e.length){for(var i=0;i<e.length;i++){var o;o=\"byname\"===e[i].type?f.computeFrame(t,e[i].name):e[i].data;var h=l(i),d=s(i);d.duration=Math.min(d.duration,h.duration);var g={frame:o,name:e[i].name,frameOpts:h,transitionOpts:d};i===e.length-1&&(g.onComplete=c(a,2),g.onInterrupt=u),n._frameQueue.push(g)}\"immediate\"===r.mode&&(n._lastFrameAt=-1/0),n._animationRaf||p()}}(y):(t.emit(\"plotly_animated\"),a())})},r.addFrames=function(t,e,r){if(t=o.getGraphDiv(t),null==e)return Promise.resolve();if(!o.isPlotDiv(t))throw new Error(\"This element is not a Plotly plot: \"+t+\". It's likely that you've failed to create a plot before adding frames. For more details, see https://plot.ly/javascript/animations/\");var n,i,a,s,c=t._transitionData._frames,u=t._transitionData._frameHash;if(!Array.isArray(e))throw new Error(\"addFrames failure: frameList must be an Array of frame definitions\"+e);var h=c.length+2*e.length,p=[],d={};for(n=e.length-1;n>=0;n--)if(o.isPlainObject(e[n])){var g=e[n].name,v=(u[g]||d[g]||{}).name,m=e[n].name,y=u[v]||d[v];v&&m&&\"number\"==typeof m&&y&&T<5&&(T++,o.warn('addFrames: overwriting frame \"'+(u[v]||d[v]).name+'\" with a frame whose name of type \"number\" also equates to \"'+v+'\". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'),5===T&&o.warn(\"addFrames: This API call has yielded too many of these warnings. For the rest of this call, further warnings about numeric frame names will be suppressed.\")),d[g]={name:g},p.push({frame:f.supplyFrameDefaults(e[n]),index:r&&void 0!==r[n]&&null!==r[n]?r[n]:h+n})}p.sort(function(t,e){return t.index>e.index?-1:t.index<e.index?1:0});var x=[],b=[],_=c.length;for(n=p.length-1;n>=0;n--){if(\"number\"==typeof(i=p[n].frame).name&&o.warn(\"Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings\"),!i.name)for(;u[i.name=\"frame \"+t._transitionData._counter++];);if(u[i.name]){for(a=0;a<c.length&&(c[a]||{}).name!==i.name;a++);x.push({type:\"replace\",index:a,value:i}),b.unshift({type:\"replace\",index:a,value:c[a]})}else s=Math.max(0,Math.min(p[n].index,_)),x.push({type:\"insert\",index:s,value:i}),b.unshift({type:\"delete\",index:s}),_++}var w=f.modifyFrames,k=f.modifyFrames,M=[t,b],A=[t,x];return l&&l.add(t,w,M,k,A),f.modifyFrames(t,x)},r.deleteFrames=function(t,e){if(t=o.getGraphDiv(t),!o.isPlotDiv(t))throw new Error(\"This element is not a Plotly plot: \"+t);var r,n,i=t._transitionData._frames,a=[],s=[];if(!e)for(e=[],r=0;r<i.length;r++)e.push(r);for((e=e.slice(0)).sort(),r=e.length-1;r>=0;r--)n=e[r],a.push({type:\"delete\",index:n}),s.unshift({type:\"insert\",index:n,value:i[n]});var c=f.modifyFrames,u=f.modifyFrames,h=[t,s],p=[t,a];return l&&l.add(t,c,h,u,p),f.modifyFrames(t,a)},r.purge=function(t){var e=(t=o.getGraphDiv(t))._fullLayout||{},r=t._fullData||[];return f.cleanPlot([],{},r,e),f.purge(t),s.purge(t),e._container&&e._container.remove(),delete t._context,t}},{\"../components/color\":570,\"../components/colorbar/connect\":572,\"../components/drawing\":595,\"../constants/xmlns_namespaces\":674,\"../lib\":696,\"../lib/events\":684,\"../lib/queue\":711,\"../lib/svg_text_utils\":720,\"../plots/cartesian/axes\":744,\"../plots/cartesian/constants\":750,\"../plots/cartesian/graph_interact\":754,\"../plots/plots\":808,\"../plots/polar/legacy\":816,\"../registry\":827,\"./edit_types\":727,\"./helpers\":728,\"./manage_arrays\":730,\"./plot_config\":732,\"./plot_schema\":733,\"./subroutines\":735,d3:148,\"fast-isnumeric\":214,\"has-hover\":393}],732:[function(t,e,r){\"use strict\";e.exports={staticPlot:!1,plotlyServerURL:\"https://plot.ly\",editable:!1,edits:{annotationPosition:!1,annotationTail:!1,annotationText:!1,axisTitleText:!1,colorbarPosition:!1,colorbarTitleText:!1,legendPosition:!1,legendText:!1,shapePosition:!1,titleText:!1},autosizable:!1,responsive:!1,queueLength:0,fillFrame:!1,frameMargins:0,scrollZoom:!1,doubleClick:\"reset+autosize\",showTips:!0,showAxisDragHandles:!0,showAxisRangeEntryBoxes:!0,showLink:!1,sendData:!0,linkText:\"Edit chart\",showSources:!1,displayModeBar:\"hover\",modeBarButtonsToRemove:[],modeBarButtonsToAdd:[],modeBarButtons:!1,toImageButtonOptions:{},displaylogo:!0,plotGlPixelRatio:2,setBackground:\"transparent\",topojsonURL:\"https://cdn.plot.ly/\",mapboxAccessToken:null,logging:1,globalTransforms:[],locale:\"en-US\",locales:{}}},{}],733:[function(t,e,r){\"use strict\";var n=t(\"../registry\"),i=t(\"../lib\"),a=t(\"../plots/attributes\"),o=t(\"../plots/layout_attributes\"),s=t(\"../plots/frame_attributes\"),l=t(\"../plots/animation_attributes\"),c=t(\"../plots/polar/legacy/area_attributes\"),u=t(\"../plots/polar/legacy/axis_attributes\"),f=t(\"./edit_types\"),h=i.extendFlat,p=i.extendDeepAll,d=i.isPlainObject,g=\"_isSubplotObj\",v=\"_isLinkedToArray\",m=[g,v,\"_arrayAttrRegexps\",\"_deprecated\"];function y(t,e,r){if(!t)return!1;if(t._isLinkedToArray)if(x(e[r]))r++;else if(r<e.length)return!1;for(;r<e.length;r++){var n=t[e[r]];if(!d(n))break;if(t=n,r===e.length-1)break;if(t._isLinkedToArray){if(!x(e[++r]))return!1}else if(\"info_array\"===t.valType){var i=e[++r];if(!x(i))return!1;var a=t.items;if(Array.isArray(a)){if(i>=a.length)return!1;if(2===t.dimensions){if(r++,e.length===r)return t;var o=e[r];if(!x(o))return!1;t=a[i][o]}else t=a[i]}else t=a}}return t}function x(t){return t===Math.round(t)&&t>=0}function b(t){return function(t){r.crawl(t,function(t,e,n){r.isValObject(t)?\"data_array\"===t.valType?(t.role=\"data\",n[e+\"src\"]={valType:\"string\",editType:\"none\"}):!0===t.arrayOk&&(n[e+\"src\"]={valType:\"string\",editType:\"none\"}):d(t)&&(t.role=\"object\")})}(t),function(t){r.crawl(t,function(t,e,r){if(!t)return;var n=t[v];if(!n)return;delete t[v],r[e]={items:{}},r[e].items[n]=t,r[e].role=\"object\"})}(t),function(t){!function t(e){for(var r in e)if(d(e[r]))t(e[r]);else if(Array.isArray(e[r]))for(var n=0;n<e[r].length;n++)t(e[r][n]);else e[r]instanceof RegExp&&(e[r]=e[r].toString())}(t)}(t),t}function _(t,e,r){var n=i.nestedProperty(t,r),a=p({},e.layoutAttributes);a[g]=!0,n.set(a)}function w(t,e,r){var n=i.nestedProperty(t,r);n.set(p(n.get()||{},e))}r.IS_SUBPLOT_OBJ=g,r.IS_LINKED_TO_ARRAY=v,r.DEPRECATED=\"_deprecated\",r.UNDERSCORE_ATTRS=m,r.get=function(){var t={};n.allTypes.concat(\"area\").forEach(function(e){t[e]=function(t){var e,o;\"area\"===t?(e={attributes:c},o={}):(e=n.modules[t]._module,o=e.basePlotModule);var s={type:null},l=p({},a),u=p({},e.attributes);r.crawl(u,function(t,e,r,n,a){i.nestedProperty(l,a).set(void 0),void 0===t&&i.nestedProperty(u,a).set(void 0)}),p(s,l),p(s,u),o.attributes&&p(s,o.attributes);s.type=t;var f={meta:e.meta||{},attributes:b(s)};if(e.layoutAttributes){var h={};p(h,e.layoutAttributes),f.layoutAttributes=b(h)}return f}(e)});var e,d={};return Object.keys(n.transformsRegistry).forEach(function(t){d[t]=function(t){var e=n.transformsRegistry[t],r=p({},e.attributes);return Object.keys(n.componentsRegistry).forEach(function(e){var i=n.componentsRegistry[e];i.schema&&i.schema.transforms&&i.schema.transforms[t]&&Object.keys(i.schema.transforms[t]).forEach(function(e){w(r,i.schema.transforms[t][e],e)})}),{attributes:b(r)}}(t)}),{defs:{valObjects:i.valObjectMeta,metaKeys:m.concat([\"description\",\"role\",\"editType\",\"impliedEdits\"]),editType:{traces:f.traces,layout:f.layout},impliedEdits:{}},traces:t,layout:function(){var t,e,r={};for(t in p(r,o),n.subplotsRegistry)if((e=n.subplotsRegistry[t]).layoutAttributes)if(Array.isArray(e.attr))for(var i=0;i<e.attr.length;i++)_(r,e,e.attr[i]);else{var a=\"subplot\"===e.attr?e.name:e.attr;_(r,e,a)}for(t in r=function(t){return h(t,{radialaxis:u.radialaxis,angularaxis:u.angularaxis}),h(t,u.layout),t}(r),n.componentsRegistry){var s=(e=n.componentsRegistry[t]).schema;if(s&&(s.subplots||s.layout)){var l=s.subplots;if(l&&l.xaxis&&!l.yaxis)for(var c in l.xaxis)delete r.yaxis[c]}else e.layoutAttributes&&w(r,e.layoutAttributes,e.name)}return{layoutAttributes:b(r)}}(),transforms:d,frames:(e={frames:i.extendDeepAll({},s)},b(e),e.frames),animation:b(l)}},r.crawl=function(t,e,n,i){var a=n||0;i=i||\"\",Object.keys(t).forEach(function(n){var o=t[n];if(-1===m.indexOf(n)){var s=(i?i+\".\":\"\")+n;e(o,n,t,a,s),r.isValObject(o)||d(o)&&\"impliedEdits\"!==n&&r.crawl(o,e,a+1,s)}})},r.isValObject=function(t){return t&&void 0!==t.valType},r.findArrayAttributes=function(t){var e,n,o=[],s=[],l=[];function c(t,r,a,c){s=s.slice(0,c).concat([r]),l=l.slice(0,c).concat([t&&t._isLinkedToArray]),t&&(\"data_array\"===t.valType||!0===t.arrayOk)&&!(\"colorbar\"===s[c-1]&&(\"ticktext\"===r||\"tickvals\"===r))&&function t(e,r,a){var c=e[s[r]];var u=a+s[r];if(r===s.length-1)i.isArrayOrTypedArray(c)&&o.push(n+u);else if(l[r]){if(Array.isArray(c))for(var f=0;f<c.length;f++)i.isPlainObject(c[f])&&t(c[f],r+1,u+\"[\"+f+\"].\")}else i.isPlainObject(c)&&t(c,r+1,u+\".\")}(e,0,\"\")}e=t,n=\"\",r.crawl(a,c),t._module&&t._module.attributes&&r.crawl(t._module.attributes,c);var u=t.transforms;if(u)for(var f=0;f<u.length;f++){var h=u[f],p=h._module;p&&(n=\"transforms[\"+f+\"].\",e=h,r.crawl(p.attributes,c))}return o},r.getTraceValObject=function(t,e){var r,i,o=e[0],s=1;if(\"transforms\"===o){if(1===e.length)return a.transforms;var l=t.transforms;if(!Array.isArray(l)||!l.length)return!1;var u=e[1];if(!x(u)||u>=l.length)return!1;i=(r=(n.transformsRegistry[l[u].type]||{}).attributes)&&r[e[2]],s=3}else if(\"area\"===t.type)i=c[o];else{var f=t._module;if(f||(f=(n.modules[t.type||a.type.dflt]||{})._module),!f)return!1;if(!(i=(r=f.attributes)&&r[o])){var h=f.basePlotModule;h&&h.attributes&&(i=h.attributes[o])}i||(i=a[o])}return y(i,e,s)},r.getLayoutValObject=function(t,e){return y(function(t,e){var r,i,a,s,l=t._basePlotModules;if(l){var c;for(r=0;r<l.length;r++){if((a=l[r]).attrRegex&&a.attrRegex.test(e)){if(a.layoutAttrOverrides)return a.layoutAttrOverrides;!c&&a.layoutAttributes&&(c=a.layoutAttributes)}var f=a.baseLayoutAttrOverrides;if(f&&e in f)return f[e]}if(c)return c}var h=t._modules;if(h)for(r=0;r<h.length;r++)if((s=h[r].layoutAttributes)&&e in s)return s[e];for(i in n.componentsRegistry)if(!(a=n.componentsRegistry[i]).schema&&e===a.name)return a.layoutAttributes;if(e in o)return o[e];if(\"radialaxis\"===e||\"angularaxis\"===e)return u[e];return u.layout[e]||!1}(t,e[0]),e,1)}},{\"../lib\":696,\"../plots/animation_attributes\":739,\"../plots/attributes\":741,\"../plots/frame_attributes\":772,\"../plots/layout_attributes\":799,\"../plots/polar/legacy/area_attributes\":814,\"../plots/polar/legacy/axis_attributes\":815,\"../registry\":827,\"./edit_types\":727}],734:[function(t,e,r){\"use strict\";var n=t(\"../lib\"),i=t(\"../plots/attributes\"),a=\"templateitemname\",o={name:{valType:\"string\",editType:\"none\"}};function s(t){return t&&\"string\"==typeof t}function l(t){var e=t.length-1;return\"s\"!==t.charAt(e)&&n.warn(\"bad argument to arrayDefaultKey: \"+t),t.substr(0,t.length-1)+\"defaults\"}o[a]={valType:\"string\",editType:\"calc\"},r.templatedArray=function(t,e){return e._isLinkedToArray=t,e.name=o.name,e[a]=o[a],e},r.traceTemplater=function(t){var e,r,a={};for(e in t)r=t[e],Array.isArray(r)&&r.length&&(a[e]=0);return{newTrace:function(o){var s={type:e=n.coerce(o,{},i,\"type\"),_template:null};if(e in a){r=t[e];var l=a[e]%r.length;a[e]++,s._template=r[l]}return s}}},r.newContainer=function(t,e,r){var i=t._template,a=i&&(i[e]||r&&i[r]);return n.isPlainObject(a)||(a=null),t[e]={_template:a}},r.arrayTemplater=function(t,e,r){var n=t._template,i=n&&n[l(e)],o=n&&n[e];Array.isArray(o)&&o.length||(o=[]);var c={};return{newItem:function(t){var e={name:t.name,_input:t},n=e[a]=t[a];if(!s(n))return e._template=i,e;for(var l=0;l<o.length;l++){var u=o[l];if(u.name===n)return c[n]=1,e._template=u,e}return e[r]=t[r]||!1,e._template=!1,e},defaultItems:function(){for(var t=[],e=0;e<o.length;e++){var r=o[e],n=r.name;if(s(n)&&!c[n]){var i={_template:r,name:n,_input:{_templateitemname:n}};i[a]=r[a],t.push(i),c[n]=1}}return t}}},r.arrayDefaultKey=l,r.arrayEditor=function(t,e,r){var i=(n.nestedProperty(t,e).get()||[]).length,o=r._index,s=o>=i&&(r._input||{})._templateitemname;s&&(o=i);var l,c=e+\"[\"+o+\"]\";function u(){l={},s&&(l[c]={},l[c][a]=s)}function f(t,e){s?n.nestedProperty(l[c],t).set(e):l[c+\".\"+t]=e}function h(){var t=l;return u(),t}return u(),{modifyBase:function(t,e){l[t]=e},modifyItem:f,getUpdateObj:h,applyUpdate:function(e,r){e&&f(e,r);var i=h();for(var a in i)n.nestedProperty(t,a).set(i[a])}}}},{\"../lib\":696,\"../plots/attributes\":741}],735:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../registry\"),a=t(\"../plots/plots\"),o=t(\"../lib\"),s=t(\"../lib/clear_gl_canvases\"),l=t(\"../components/color\"),c=t(\"../components/drawing\"),u=t(\"../components/titles\"),f=t(\"../components/modebar\"),h=t(\"../plots/cartesian/axes\"),p=t(\"../constants/alignment\"),d=t(\"../plots/cartesian/constraints\"),g=d.enforce,v=d.clean,m=t(\"../plots/cartesian/autorange\").doAutoRange;function y(t,e,r){for(var n=0;n<r.length;n++){var i=r[n][0],a=r[n][1];if(!(i[0]>=t[1]||i[1]<=t[0])&&(a[0]<e[1]&&a[1]>e[0]))return!0}return!1}function x(t){var e,i,a,s,u,d=t._fullLayout,g=d._size,v=g.p,m=h.list(t,\"\",!0);if(d._paperdiv.style({width:t._context.responsive&&d.autosize&&!t._context._hasZeroWidth&&!t.layout.width?\"100%\":d.width+\"px\",height:t._context.responsive&&d.autosize&&!t._context._hasZeroHeight&&!t.layout.height?\"100%\":d.height+\"px\"}).selectAll(\".main-svg\").call(c.setSize,d.width,d.height),t._context.setBackground(t,d.paper_bgcolor),r.drawMainTitle(t),f.manage(t),!d._has(\"cartesian\"))return t._promises.length&&Promise.all(t._promises);function x(t,e,r){var n=t._lw/2;return\"x\"===t._id.charAt(0)?e?\"top\"===r?e._offset-v-n:e._offset+e._length+v+n:g.t+g.h*(1-(t.position||0))+n%1:e?\"right\"===r?e._offset+e._length+v+n:e._offset-v-n:g.l+g.w*(t.position||0)+n%1}for(e=0;e<m.length;e++){var w=m[e];w.setScale();var M=w._anchorAxis;w._linepositions={},w._lw=c.crispRound(t,w.linewidth,1),w._mainLinePosition=x(w,M,w.side),w._mainMirrorPosition=w.mirror&&M?x(w,M,p.OPPOSITE_SIDE[w.side]):null,w._mainSubplot=b(w,d)}var A=[],T=[],S=[],E=1===l.opacity(d.paper_bgcolor)&&1===l.opacity(d.plot_bgcolor)&&d.paper_bgcolor===d.plot_bgcolor;for(i in d._plots)if((a=d._plots[i]).mainplot)a.bg&&a.bg.remove(),a.bg=void 0;else{var C=a.xaxis.domain,L=a.yaxis.domain,z=a.plotgroup;if(y(C,L,S)){var O=z.node(),I=a.bg=o.ensureSingle(z,\"rect\",\"bg\");O.insertBefore(I.node(),O.childNodes[0]),T.push(i)}else z.select(\"rect.bg\").remove(),S.push([C,L]),E||(A.push(i),T.push(i))}var P,D,R,B,F,N,j,V,U,q,H,G,W,Y=d._bgLayer.selectAll(\".bg\").data(A);for(Y.enter().append(\"rect\").classed(\"bg\",!0),Y.exit().remove(),Y.each(function(t){d._plots[t].bg=n.select(this)}),e=0;e<T.length;e++)a=d._plots[T[e]],s=a.xaxis,u=a.yaxis,a.bg&&a.bg.call(c.setRect,s._offset-v,u._offset-v,s._length+2*v,u._length+2*v).call(l.fill,d.plot_bgcolor).style(\"stroke-width\",0);if(!d._hasOnlyLargeSploms)for(i in d._plots){a=d._plots[i],s=a.xaxis,u=a.yaxis;var X,Z,$=a.clipId=\"clip\"+d._uid+i+\"plot\",J=o.ensureSingleById(d._clips,\"clipPath\",$,function(t){t.classed(\"plotclip\",!0).append(\"rect\")});a.clipRect=J.select(\"rect\").attr({width:s._length,height:u._length}),c.setTranslate(a.plot,s._offset,u._offset),a._hasClipOnAxisFalse?(X=null,Z=$):(X=$,Z=null),c.setClipUrl(a.plot,X),a.layerClipId=Z}function K(t){return\"M\"+P+\",\"+t+\"H\"+D}function Q(t){return\"M\"+s._offset+\",\"+t+\"h\"+s._length}function tt(t){return\"M\"+t+\",\"+V+\"V\"+j}function et(t){return\"M\"+t+\",\"+u._offset+\"v\"+u._length}function rt(t,e,r){if(!t.showline||i!==t._mainSubplot)return\"\";if(!t._anchorAxis)return r(t._mainLinePosition);var n=e(t._mainLinePosition);return t.mirror&&(n+=e(t._mainMirrorPosition)),n}for(i in d._plots){a=d._plots[i],s=a.xaxis,u=a.yaxis;var nt=\"M0,0\";_(s,i)&&(F=k(s,\"left\",u,m),P=s._offset-(F?v+F:0),N=k(s,\"right\",u,m),D=s._offset+s._length+(N?v+N:0),R=x(s,u,\"bottom\"),B=x(s,u,\"top\"),!(W=!s._anchorAxis||i!==s._mainSubplot)||\"allticks\"!==s.mirror&&\"all\"!==s.mirror||(s._linepositions[i]=[R,B]),nt=rt(s,K,Q),W&&s.showline&&(\"all\"===s.mirror||\"allticks\"===s.mirror)&&(nt+=K(R)+K(B)),a.xlines.style(\"stroke-width\",s._lw+\"px\").call(l.stroke,s.showline?s.linecolor:\"rgba(0,0,0,0)\")),a.xlines.attr(\"d\",nt);var it=\"M0,0\";_(u,i)&&(H=k(u,\"bottom\",s,m),j=u._offset+u._length+(H?v:0),G=k(u,\"top\",s,m),V=u._offset-(G?v:0),U=x(u,s,\"left\"),q=x(u,s,\"right\"),!(W=!u._anchorAxis||i!==u._mainSubplot)||\"allticks\"!==u.mirror&&\"all\"!==u.mirror||(u._linepositions[i]=[U,q]),it=rt(u,tt,et),W&&u.showline&&(\"all\"===u.mirror||\"allticks\"===u.mirror)&&(it+=tt(U)+tt(q)),a.ylines.style(\"stroke-width\",u._lw+\"px\").call(l.stroke,u.showline?u.linecolor:\"rgba(0,0,0,0)\")),a.ylines.attr(\"d\",it)}return h.makeClipPaths(t),t._promises.length&&Promise.all(t._promises)}function b(t,e){var r=e._subplots,n=r.cartesian.concat(r.gl2d||[]),i={_fullLayout:e},a=\"x\"===t._id.charAt(0),o=t._mainAxis._anchorAxis,s=\"\",l=\"\",c=\"\";if(o&&(c=o._mainAxis._id,s=a?t._id+c:c+t._id),!s||!e._plots[s]){s=\"\";for(var u=0;u<n.length;u++){var f=n[u],p=f.indexOf(\"y\"),d=a?f.substr(0,p):f.substr(p),g=a?f.substr(p):f.substr(0,p);if(d===t._id){l||(l=f);var v=h.getFromId(i,g);if(c&&v.overlaying===c){s=f;break}}}}return s||l}function _(t,e){return(t.ticks||t.showline)&&(e===t._mainSubplot||\"all\"===t.mirror||\"allticks\"===t.mirror)}function w(t,e,r){if(!r.showline||!r._lw)return!1;if(\"all\"===r.mirror||\"allticks\"===r.mirror)return!0;var n=r._anchorAxis;if(!n)return!1;var i=p.FROM_BL[e];return r.side===e?n.domain[i]===t.domain[i]:r.mirror&&n.domain[1-i]===t.domain[1-i]}function k(t,e,r,n){if(w(t,e,r))return r._lw;for(var i=0;i<n.length;i++){var a=n[i];if(a._mainAxis===r._mainAxis&&w(t,e,a))return a._lw}return 0}r.layoutStyles=function(t){return o.syncOrAsync([a.doAutoMargin,x],t)},r.drawMainTitle=function(t){var e=t._fullLayout;u.draw(t,\"gtitle\",{propContainer:e,propName:\"title\",placeholder:e._dfltTitle.plot,attributes:{x:e.width/2,y:e._size.t/2,\"text-anchor\":\"middle\"}})},r.doTraceStyle=function(t){var e,n=t.calcdata,o=[];for(e=0;e<n.length;e++){var l=n[e],c=l[0]||{},u=c.trace||{},f=u._module||{},h=f.arraysToCalcdata;h&&h(l,u);var p=f.editStyle;p&&o.push({fn:p,cd0:c})}if(o.length){for(e=0;e<o.length;e++){var d=o[e];d.fn(t,d.cd0)}s(t),r.redrawReglTraces(t)}return a.style(t),i.getComponentMethod(\"legend\",\"draw\")(t),a.previousPromises(t)},r.doColorBars=function(t){for(var e=0;e<t.calcdata.length;e++){var r=t.calcdata[e][0];if((r.t||{}).cb){var n=r.trace,o=r.t.cb;i.traceIs(n,\"contour\")&&o.line({width:!1!==n.contours.showlines?n.line.width:0,dash:n.line.dash,color:\"line\"===n.contours.coloring?o._opts.line.color:n.line.color});var s=n._module.colorbar.container,l=(s?n[s]:n).colorbar;o.options(l)()}}return a.previousPromises(t)},r.layoutReplot=function(t){var e=t.layout;return t.layout=void 0,i.call(\"plot\",t,\"\",e)},r.doLegend=function(t){return i.getComponentMethod(\"legend\",\"draw\")(t),a.previousPromises(t)},r.doTicksRelayout=function(t){return h.doTicks(t,\"redraw\"),t._fullLayout._hasOnlyLargeSploms&&(i.subplotsRegistry.splom.updateGrid(t),s(t),r.redrawReglTraces(t)),r.drawMainTitle(t),a.previousPromises(t)},r.doModeBar=function(t){var e=t._fullLayout;f.manage(t);for(var r=0;r<e._basePlotModules.length;r++){var n=e._basePlotModules[r].updateFx;n&&n(t)}return a.previousPromises(t)},r.doCamera=function(t){for(var e=t._fullLayout,r=e._subplots.gl3d,n=0;n<r.length;n++){var i=e[r[n]];i._scene.setCamera(i.camera)}},r.drawData=function(t){var e,n=t._fullLayout,o=t.calcdata;for(e=0;e<o.length;e++){var l=o[e][0].trace;!0===l.visible&&l._module.colorbar||n._infolayer.select(\".cb\"+l.uid).remove()}s(t);var c=n._basePlotModules;for(e=0;e<c.length;e++)c[e].plot(t);return r.redrawReglTraces(t),a.style(t),i.getComponentMethod(\"shapes\",\"draw\")(t),i.getComponentMethod(\"annotations\",\"draw\")(t),n._replotting=!1,a.previousPromises(t)},r.redrawReglTraces=function(t){var e=t._fullLayout;if(e._has(\"regl\")){var r,n,i=t._fullData,a=[],s=[];for(e._hasOnlyLargeSploms&&e._splomGrid.draw(),r=0;r<i.length;r++){var l=i[r];!0===l.visible&&(\"splom\"===l.type?e._splomScenes[l.uid].draw():\"scattergl\"===l.type?o.pushUnique(a,l.xaxis+l.yaxis):\"scatterpolargl\"===l.type&&o.pushUnique(s,l.subplot))}for(r=0;r<a.length;r++)(n=e._plots[a[r]])._scene&&n._scene.draw();for(r=0;r<s.length;r++)(n=e[s[r]]._subplot)._scene&&n._scene.draw()}},r.doAutoRangeAndConstraints=function(t){for(var e=h.list(t,\"\",!0),r=0;r<e.length;r++){var n=e[r];v(t,n),m(t,n)}g(t)},r.finalDraw=function(t){i.getComponentMethod(\"shapes\",\"draw\")(t),i.getComponentMethod(\"images\",\"draw\")(t),i.getComponentMethod(\"annotations\",\"draw\")(t),i.getComponentMethod(\"rangeslider\",\"draw\")(t),i.getComponentMethod(\"rangeselector\",\"draw\")(t)},r.drawMarginPushers=function(t){i.getComponentMethod(\"legend\",\"draw\")(t),i.getComponentMethod(\"rangeselector\",\"draw\")(t),i.getComponentMethod(\"sliders\",\"draw\")(t),i.getComponentMethod(\"updatemenus\",\"draw\")(t)}},{\"../components/color\":570,\"../components/drawing\":595,\"../components/modebar\":633,\"../components/titles\":661,\"../constants/alignment\":668,\"../lib\":696,\"../lib/clear_gl_canvases\":680,\"../plots/cartesian/autorange\":743,\"../plots/cartesian/axes\":744,\"../plots/cartesian/constraints\":752,\"../plots/plots\":808,\"../registry\":827,d3:148}],736:[function(t,e,r){\"use strict\";var n=t(\"../lib\"),i=n.isPlainObject,a=t(\"./plot_schema\"),o=t(\"../plots/plots\"),s=t(\"../plots/attributes\"),l=t(\"./plot_template\"),c=t(\"./plot_config\");function u(t,e){t=n.extendDeep({},t);var r,a,o=Object.keys(t).sort();function s(e,r,n){if(i(r)&&i(e))u(e,r);else if(Array.isArray(r)&&Array.isArray(e)){var o=l.arrayTemplater({_template:t},n);for(a=0;a<r.length;a++){var s=r[a],c=o.newItem(s)._template;c&&u(c,s)}var f=o.defaultItems();for(a=0;a<f.length;a++)r.push(f[a]._template);for(a=0;a<r.length;a++)delete r[a].templateitemname}}for(r=0;r<o.length;r++){var c=o[r],h=t[c];if(c in e?s(h,e[c],c):e[c]=h,f(c)===c)for(var p in e){var d=f(p);p===d||d!==c||p in t||s(h,e[p],c)}}}function f(t){return t.replace(/[0-9]+$/,\"\")}function h(t,e,r,a,o){var s=o&&r(o);for(var c in t){var u=t[c],d=p(t,c,a),g=p(t,c,o),v=r(g);if(!v){var m=f(c);m!==c&&(v=r(g=p(t,m,o)))}if((!s||s!==v)&&!(!v||v._noTemplating||\"data_array\"===v.valType||v.arrayOk&&Array.isArray(u)))if(!v.valType&&i(u))h(u,e,r,d,g);else if(v._isLinkedToArray&&Array.isArray(u))for(var y=!1,x=0,b={},_=0;_<u.length;_++){var w=u[_];if(i(w)){var k=w.name;if(k)b[k]||(h(w,e,r,p(u,x,d),p(u,x,g)),x++,b[k]=1);else if(!y){var M=p(t,l.arrayDefaultKey(c),a),A=p(u,x,d);h(w,e,r,A,p(u,x,g));var T=n.nestedProperty(e,A);n.nestedProperty(e,M).set(T.get()),T.set(null),y=!0}}}else{n.nestedProperty(e,d).set(u)}}}function p(t,e,r){return r?Array.isArray(t)?r+\"[\"+e+\"]\":r+\".\"+e:e}function d(t){for(var e=0;e<t.length;e++)if(i(t[e]))return!0}function g(t){var e;switch(t.code){case\"data\":e=\"The template has no key data.\";break;case\"layout\":e=\"The template has no key layout.\";break;case\"missing\":e=t.path?\"There are no templates for item \"+t.path+\" with name \"+t.templateitemname:\"There are no templates for trace \"+t.index+\", of type \"+t.traceType+\".\";break;case\"unused\":e=t.path?\"The template item at \"+t.path+\" was not used in constructing the plot.\":t.dataCount?\"Some of the templates of type \"+t.traceType+\" were not used. The template has \"+t.templateCount+\" traces, the data only has \"+t.dataCount+\" of this type.\":\"The template has \"+t.templateCount+\" traces of type \"+t.traceType+\" but there are none in the data.\";break;case\"reused\":e=\"Some of the templates of type \"+t.traceType+\" were used more than once. The template has \"+t.templateCount+\" traces, the data has \"+t.dataCount+\" of this type.\"}return t.msg=e,t}r.makeTemplate=function(t){t=n.extendDeep({_context:c},{data:t.data,layout:t.layout}),o.supplyDefaults(t);var e=t.data||[],r=t.layout||{};r._basePlotModules=t._fullLayout._basePlotModules,r._modules=t._fullLayout._modules;var l={data:{},layout:{}};e.forEach(function(t){var e={};h(t,e,function(t,e){return a.getTraceValObject(t,n.nestedProperty({},e).parts)}.bind(null,t));var r=n.coerce(t,{},s,\"type\"),i=l.data[r];i||(i=l.data[r]=[]),i.push(e)}),h(r,l.layout,function(t,e){return a.getLayoutValObject(t,n.nestedProperty({},e).parts)}.bind(null,r)),delete l.layout.template;var f=r.template;if(i(f)){var p,d,g,v,m,y,x=f.layout;i(x)&&u(x,l.layout);var b=f.data;if(i(b)){for(d in l.data)if(g=b[d],Array.isArray(g)){for(y=(m=l.data[d]).length,v=g.length,p=0;p<y;p++)u(g[p%v],m[p]);for(p=y;p<v;p++)m.push(n.extendDeep({},g[p]))}for(d in b)d in l.data||(l.data[d]=n.extendDeep([],b[d]))}}return l},r.validateTemplate=function(t,e){var r=n.extendDeep({},{_context:c,data:t.data,layout:t.layout}),a=r.layout||{};i(e)||(e=a.template||{});var s=e.layout,l=e.data,u=[];r.layout=a,r.layout.template=e,o.supplyDefaults(r);var h=r._fullLayout,v=r._fullData,m={};if(i(s)?(!function t(e,r){for(var n in e)if(\"_\"!==n.charAt(0)&&i(e[n])){var a,o=f(n),s=[];for(a=0;a<r.length;a++)s.push(p(e,n,r[a])),o!==n&&s.push(p(e,o,r[a]));for(a=0;a<s.length;a++)m[s[a]]=1;t(e[n],s)}}(h,[\"layout\"]),function t(e,r){for(var n in e)if(-1===n.indexOf(\"defaults\")&&i(e[n])){var a=p(e,n,r);m[a]?t(e[n],a):u.push({code:\"unused\",path:a})}}(s,\"layout\")):u.push({code:\"layout\"}),i(l)){for(var y,x={},b=0;b<v.length;b++){var _=v[b];x[y=_.type]=(x[y]||0)+1,_._fullInput._template||u.push({code:\"missing\",index:_._fullInput.index,traceType:y})}for(y in l){var w=l[y].length,k=x[y]||0;w>k?u.push({code:\"unused\",traceType:y,templateCount:w,dataCount:k}):k>w&&u.push({code:\"reused\",traceType:y,templateCount:w,dataCount:k})}}else u.push({code:\"data\"});if(function t(e,r){for(var n in e)if(\"_\"!==n.charAt(0)){var a=e[n],o=p(e,n,r);i(a)?(Array.isArray(e)&&!1===a._template&&a.templateitemname&&u.push({code:\"missing\",path:o,templateitemname:a.templateitemname}),t(a,o)):Array.isArray(a)&&d(a)&&t(a,o)}}({data:v,layout:h},\"\"),u.length)return u.map(g)}},{\"../lib\":696,\"../plots/attributes\":741,\"../plots/plots\":808,\"./plot_config\":732,\"./plot_schema\":733,\"./plot_template\":734}],737:[function(t,e,r){\"use strict\";var n=t(\"./plot_api\"),i=t(\"../lib\"),a=t(\"../snapshot/helpers\"),o=t(\"../snapshot/tosvg\"),s=t(\"../snapshot/svgtoimg\"),l={format:{valType:\"enumerated\",values:[\"png\",\"jpeg\",\"webp\",\"svg\"],dflt:\"png\"},width:{valType:\"number\",min:1},height:{valType:\"number\",min:1},scale:{valType:\"number\",min:0,dflt:1},setBackground:{valType:\"any\",dflt:!1},imageDataOnly:{valType:\"boolean\",dflt:!1}},c=/^data:image\\/\\w+;base64,/;e.exports=function(t,e){var r,u,f;function h(t){return!(t in e)||i.validate(e[t],l[t])}if(e=e||{},i.isPlainObject(t)?(r=t.data||[],u=t.layout||{},f=t.config||{}):(t=i.getGraphDiv(t),r=i.extendDeep([],t.data),u=i.extendDeep({},t.layout),f=t._context),!h(\"width\")||!h(\"height\"))throw new Error(\"Height and width should be pixel values.\");if(!h(\"format\"))throw new Error(\"Image format is not jpeg, png, svg or webp.\");var p={};function d(t,r){return i.coerce(e,p,l,t,r)}var g=d(\"format\"),v=d(\"width\"),m=d(\"height\"),y=d(\"scale\"),x=d(\"setBackground\"),b=d(\"imageDataOnly\"),_=document.createElement(\"div\");_.style.position=\"absolute\",_.style.left=\"-5000px\",document.body.appendChild(_);var w=i.extendFlat({},u);v&&(w.width=v),m&&(w.height=m);var k=i.extendFlat({},f,{staticPlot:!0,setBackground:x}),M=a.getRedrawFunc(_);function A(){return new Promise(function(t){setTimeout(t,a.getDelay(_._fullLayout))})}function T(){return new Promise(function(t,e){var r=o(_,g,y),a=_._fullLayout.width,l=_._fullLayout.height;if(n.purge(_),document.body.removeChild(_),\"svg\"===g)return t(b?r:\"data:image/svg+xml,\"+encodeURIComponent(r));var c=document.createElement(\"canvas\");c.id=i.randstr(),s({format:g,width:a,height:l,scale:y,canvas:c,svg:r,promise:!0}).then(t).catch(e)})}return new Promise(function(t,e){n.plot(_,r,w,k).then(M).then(A).then(T).then(function(e){t(function(t){return b?t.replace(c,\"\"):t}(e))}).catch(function(t){e(t)})})}},{\"../lib\":696,\"../snapshot/helpers\":831,\"../snapshot/svgtoimg\":833,\"../snapshot/tosvg\":835,\"./plot_api\":731}],738:[function(t,e,r){\"use strict\";var n=t(\"../lib\"),i=t(\"../plots/plots\"),a=t(\"./plot_schema\"),o=t(\"./plot_config\"),s=n.isPlainObject,l=Array.isArray,c=n.isArrayOrTypedArray;function u(t,e,r,i,a,o){o=o||[];for(var f=Object.keys(t),h=0;h<f.length;h++){var v=f[h];if(\"transforms\"!==v){var m=o.slice();m.push(v);var y=t[v],x=e[v],b=g(r,v),_=\"info_array\"===(b||{}).valType,w=\"colorscale\"===(b||{}).valType,k=(b||{}).items;if(d(r,v))if(s(y)&&s(x))u(y,x,b,i,a,m);else if(_&&l(y)){y.length>x.length&&i.push(p(\"unused\",a,m.concat(x.length)));var M,A,T,S,E,C=x.length,L=Array.isArray(k);if(L&&(C=Math.min(C,k.length)),2===b.dimensions)for(A=0;A<C;A++)if(l(y[A])){y[A].length>x[A].length&&i.push(p(\"unused\",a,m.concat(A,x[A].length)));var z=x[A].length;for(M=0;M<(L?Math.min(z,k[A].length):z);M++)T=L?k[A][M]:k,S=y[A][M],E=x[A][M],n.validate(S,T)?E!==S&&E!==+S&&i.push(p(\"dynamic\",a,m.concat(A,M),S,E)):i.push(p(\"value\",a,m.concat(A,M),S))}else i.push(p(\"array\",a,m.concat(A),y[A]));else for(A=0;A<C;A++)T=L?k[A]:k,S=y[A],E=x[A],n.validate(S,T)?E!==S&&E!==+S&&i.push(p(\"dynamic\",a,m.concat(A),S,E)):i.push(p(\"value\",a,m.concat(A),S))}else if(b.items&&!_&&l(y)){var O,I,P=k[Object.keys(k)[0]],D=[];for(O=0;O<x.length;O++){var R=x[O]._index||O;if((I=m.slice()).push(R),s(y[R])&&s(x[O])){D.push(R);var B=y[R],F=x[O];s(B)&&!1!==B.visible&&!1===F.visible?i.push(p(\"invisible\",a,I)):u(B,F,P,i,a,I)}}for(O=0;O<y.length;O++)(I=m.slice()).push(O),s(y[O])?-1===D.indexOf(O)&&i.push(p(\"unused\",a,I)):i.push(p(\"object\",a,I,y[O]))}else!s(y)&&s(x)?i.push(p(\"object\",a,m,y)):c(y)||!c(x)||_||w?v in e?n.validate(y,b)?\"enumerated\"===b.valType&&(b.coerceNumber&&y!==+x||y!==x)&&i.push(p(\"dynamic\",a,m,y,x)):i.push(p(\"value\",a,m,y)):i.push(p(\"unused\",a,m,y)):i.push(p(\"array\",a,m,y));else i.push(p(\"schema\",a,m))}}return i}e.exports=function(t,e){var r,c,f=a.get(),h=[],d={_context:n.extendFlat({},o)};l(t)?(d.data=n.extendDeep([],t),r=t):(d.data=[],r=[],h.push(p(\"array\",\"data\"))),s(e)?(d.layout=n.extendDeep({},e),c=e):(d.layout={},c={},arguments.length>1&&h.push(p(\"object\",\"layout\"))),i.supplyDefaults(d);for(var g=d._fullData,v=r.length,m=0;m<v;m++){var y=r[m],x=[\"data\",m];if(s(y)){var b=g[m],_=b.type,w=f.traces[_].attributes;w.type={valType:\"enumerated\",values:[_]},!1===b.visible&&!1!==y.visible&&h.push(p(\"invisible\",x)),u(y,b,w,h,x);var k=y.transforms,M=b.transforms;if(k){l(k)||h.push(p(\"array\",x,[\"transforms\"])),x.push(\"transforms\");for(var A=0;A<k.length;A++){var T=[\"transforms\",A],S=k[A].type;if(s(k[A])){var E=f.transforms[S]?f.transforms[S].attributes:{};E.type={valType:\"enumerated\",values:Object.keys(f.transforms)},u(k[A],M[A],E,h,x,T)}else h.push(p(\"object\",x,T))}}}else h.push(p(\"object\",x))}return u(c,d._fullLayout,function(t,e){for(var r=t.layout.layoutAttributes,i=0;i<e.length;i++){var a=e[i],o=t.traces[a.type],s=o.layoutAttributes;s&&(a.subplot?n.extendFlat(r[o.attributes.subplot.dflt],s):n.extendFlat(r,s))}return r}(f,g),h,\"layout\"),0===h.length?void 0:h};var f={object:function(t,e){return(\"layout\"===t&&\"\"===e?\"The layout argument\":\"data\"===t[0]&&\"\"===e?\"Trace \"+t[1]+\" in the data argument\":h(t)+\"key \"+e)+\" must be linked to an object container\"},array:function(t,e){return(\"data\"===t?\"The data argument\":h(t)+\"key \"+e)+\" must be linked to an array container\"},schema:function(t,e){return h(t)+\"key \"+e+\" is not part of the schema\"},unused:function(t,e,r){var n=s(r)?\"container\":\"key\";return h(t)+n+\" \"+e+\" did not get coerced\"},dynamic:function(t,e,r,n){return[h(t)+\"key\",e,\"(set to '\"+r+\"')\",\"got reset to\",\"'\"+n+\"'\",\"during defaults.\"].join(\" \")},invisible:function(t,e){return(e?h(t)+\"item \"+e:\"Trace \"+t[1])+\" got defaulted to be not visible\"},value:function(t,e,r){return[h(t)+\"key \"+e,\"is set to an invalid value (\"+r+\")\"].join(\" \")}};function h(t){return l(t)?\"In data trace \"+t[1]+\", \":\"In \"+t+\", \"}function p(t,e,r,i,a){var o,s;r=r||\"\",l(e)?(o=e[0],s=e[1]):(o=e,s=null);var c=function(t){if(!l(t))return String(t);for(var e=\"\",r=0;r<t.length;r++){var n=t[r];\"number\"==typeof n?e=e.substr(0,e.length-1)+\"[\"+n+\"]\":e+=n,r<t.length-1&&(e+=\".\")}return e}(r),u=f[t](e,c,i,a);return n.log(u),{code:t,container:o,trace:s,path:r,astr:c,msg:u}}function d(t,e){var r=m(e),n=r.keyMinusId,i=r.id;return!!(n in t&&t[n]._isSubplotObj&&i)||e in t}function g(t,e){return e in t?t[e]:t[m(e).keyMinusId]}var v=n.counterRegex(\"([a-z]+)\");function m(t){var e=t.match(v);return{keyMinusId:e&&e[1],id:e&&e[2]}}},{\"../lib\":696,\"../plots/plots\":808,\"./plot_config\":732,\"./plot_schema\":733}],739:[function(t,e,r){\"use strict\";e.exports={mode:{valType:\"enumerated\",dflt:\"afterall\",values:[\"immediate\",\"next\",\"afterall\"]},direction:{valType:\"enumerated\",values:[\"forward\",\"reverse\"],dflt:\"forward\"},fromcurrent:{valType:\"boolean\",dflt:!1},frame:{duration:{valType:\"number\",min:0,dflt:500},redraw:{valType:\"boolean\",dflt:!0}},transition:{duration:{valType:\"number\",min:0,dflt:500},easing:{valType:\"enumerated\",dflt:\"cubic-in-out\",values:[\"linear\",\"quad\",\"cubic\",\"sin\",\"exp\",\"circle\",\"elastic\",\"back\",\"bounce\",\"linear-in\",\"quad-in\",\"cubic-in\",\"sin-in\",\"exp-in\",\"circle-in\",\"elastic-in\",\"back-in\",\"bounce-in\",\"linear-out\",\"quad-out\",\"cubic-out\",\"sin-out\",\"exp-out\",\"circle-out\",\"elastic-out\",\"back-out\",\"bounce-out\",\"linear-in-out\",\"quad-in-out\",\"cubic-in-out\",\"sin-in-out\",\"exp-in-out\",\"circle-in-out\",\"elastic-in-out\",\"back-in-out\",\"bounce-in-out\"]}}}},{}],740:[function(t,e,r){\"use strict\";var n=t(\"../lib\"),i=t(\"../plot_api/plot_template\");e.exports=function(t,e,r){var a,o,s=r.name,l=r.inclusionAttr||\"visible\",c=e[s],u=n.isArrayOrTypedArray(t[s])?t[s]:[],f=e[s]=[],h=i.arrayTemplater(e,s,l);for(a=0;a<u.length;a++){var p=u[a];n.isPlainObject(p)?o=h.newItem(p):(o=h.newItem({}))[l]=!1,o._index=a,!1!==o[l]&&r.handleItemDefaults(p,o,e,r),f.push(o)}var d=h.defaultItems();for(a=0;a<d.length;a++)(o=d[a])._index=f.length,r.handleItemDefaults({},o,e,r,{}),f.push(o);if(n.isArrayOrTypedArray(c)){var g=Math.min(c.length,f.length);for(a=0;a<g;a++)n.relinkPrivateKeys(f[a],c[a])}return f}},{\"../lib\":696,\"../plot_api/plot_template\":734}],741:[function(t,e,r){\"use strict\";var n=t(\"../components/fx/attributes\");e.exports={type:{valType:\"enumerated\",values:[],dflt:\"scatter\",editType:\"calc+clearAxisTypes\",_noTemplating:!0},visible:{valType:\"enumerated\",values:[!0,!1,\"legendonly\"],dflt:!0,editType:\"calc\"},showlegend:{valType:\"boolean\",dflt:!0,editType:\"style\"},legendgroup:{valType:\"string\",dflt:\"\",editType:\"style\"},opacity:{valType:\"number\",min:0,max:1,dflt:1,editType:\"style\"},name:{valType:\"string\",editType:\"style\"},uid:{valType:\"string\",editType:\"plot\"},ids:{valType:\"data_array\",editType:\"calc\"},customdata:{valType:\"data_array\",editType:\"calc\"},selectedpoints:{valType:\"any\",editType:\"calc\"},hoverinfo:{valType:\"flaglist\",flags:[\"x\",\"y\",\"z\",\"text\",\"name\"],extras:[\"all\",\"none\",\"skip\"],arrayOk:!0,dflt:\"all\",editType:\"none\"},hoverlabel:n.hoverlabel,stream:{token:{valType:\"string\",noBlank:!0,strict:!0,editType:\"calc\"},maxpoints:{valType:\"number\",min:0,max:1e4,dflt:500,editType:\"calc\"},editType:\"calc\"},transforms:{_isLinkedToArray:\"transform\",editType:\"calc\"}}},{\"../components/fx/attributes\":604}],742:[function(t,e,r){\"use strict\";e.exports={xaxis:{valType:\"subplotid\",dflt:\"x\",editType:\"calc+clearAxisTypes\"},yaxis:{valType:\"subplotid\",dflt:\"y\",editType:\"calc+clearAxisTypes\"}}},{}],743:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../../lib\"),a=t(\"../../constants/numerical\").FP_SAFE;function o(t,e){var r,n,a=[],o=s(e),c=l(t,e),u=c.min,f=c.max;if(0===u.length||0===f.length)return i.simpleMap(e.range,e.r2l);var h=u[0].val,p=f[0].val;for(r=1;r<u.length&&h===p;r++)h=Math.min(h,u[r].val);for(r=1;r<f.length&&h===p;r++)p=Math.max(p,f[r].val);var d=!1;if(e.range){var g=i.simpleMap(e.range,e.r2l);d=g[1]<g[0]}\"reversed\"===e.autorange&&(d=!0,e.autorange=!0);var v,m,y,x,b,_,w=e.rangemode,k=\"tozero\"===w,M=\"nonnegative\"===w,A=e._length,T=A/10,S=0;for(r=0;r<u.length;r++)for(v=u[r],n=0;n<f.length;n++)(_=(m=f[n]).val-v.val)>0&&((b=A-o(v)-o(m))>T?_/b>S&&(y=v,x=m,S=_/b):_/A>S&&(y={val:v.val,pad:0},x={val:m.val,pad:0},S=_/A));if(h===p){var E=h-1,C=h+1;if(k)if(0===h)a=[0,1];else{var L=(h>0?f:u).reduce(function(t,e){return Math.max(t,o(e))},0),z=h/(1-Math.min(.5,L/A));a=h>0?[0,z]:[z,0]}else a=M?[Math.max(0,E),Math.max(1,C)]:[E,C]}else k?(y.val>=0&&(y={val:0,pad:0}),x.val<=0&&(x={val:0,pad:0})):M&&(y.val-S*o(y)<0&&(y={val:0,pad:0}),x.val<=0&&(x={val:1,pad:0})),S=(x.val-y.val)/(A-o(y)-o(x)),a=[y.val-S*o(y),x.val+S*o(x)];return d&&a.reverse(),i.simpleMap(a,e.l2r||Number)}function s(t){var e=t._length/20;return\"domain\"===t.constrain&&t._inputDomain&&(e*=(t._inputDomain[1]-t._inputDomain[0])/(t.domain[1]-t.domain[0])),function(t){return t.pad+(t.extrapad?e:0)}}function l(t,e){var r,n,i,a=e._id,o=t._fullData,s=t._fullLayout,l=[],f=[];function h(t,e){for(r=0;r<e.length;r++){var o=t[e[r]],s=(o._extremes||{})[a];if(!0===o.visible&&s){for(n=0;n<s.min.length;n++)i=s.min[n],c(l,i.val,i.pad,{extrapad:i.extrapad});for(n=0;n<s.max.length;n++)i=s.max[n],u(f,i.val,i.pad,{extrapad:i.extrapad})}}}return h(o,e._traceIndices),h(s.annotations||[],e._annIndices||[]),h(s.shapes||[],e._shapeIndices||[]),{min:l,max:f}}function c(t,e,r,n){f(t,e,r,n,p)}function u(t,e,r,n){f(t,e,r,n,d)}function f(t,e,r,n,i){for(var a=n.tozero,o=n.extrapad,s=!0,l=0;l<t.length&&s;l++){var c=t[l];if(i(c.val,e)&&c.pad>=r&&(c.extrapad||!o)){s=!1;break}i(e,c.val)&&c.pad<=r&&(o||!c.extrapad)&&(t.splice(l,1),l--)}if(s){var u=a&&0===e;t.push({val:e,pad:u?0:r,extrapad:!u&&o})}}function h(t){return n(t)&&Math.abs(t)<a}function p(t,e){return t<=e}function d(t,e){return t>=e}e.exports={getAutoRange:o,makePadFn:s,doAutoRange:function(t,e){e._length||e.setScale();var r;e.autorange&&(e.range=o(t,e),e._r=e.range.slice(),e._rl=i.simpleMap(e._r,e.r2l),(r=e._input).range=e.range.slice(),r.autorange=e.autorange);if(e._anchorAxis&&e._anchorAxis.rangeslider){var n=e._anchorAxis.rangeslider[e._name];n&&\"auto\"===n.rangemode&&(n.range=o(t,e)),(r=e._anchorAxis._input).rangeslider[e._name]=i.extendFlat({},n)}},findExtremes:function(t,e,r){r||(r={});t._m||t.setScale();var i,o,s,l,f,p,d,g,v,m=[],y=[],x=e.length,b=r.padded||!1,_=r.tozero&&(\"linear\"===t.type||\"-\"===t.type),w=\"log\"===t.type,k=!1;function M(t){if(Array.isArray(t))return k=!0,function(e){return Math.max(Number(t[e]||0),0)};var e=Math.max(Number(t||0),0);return function(){return e}}var A=M((t._m>0?r.ppadplus:r.ppadminus)||r.ppad||0),T=M((t._m>0?r.ppadminus:r.ppadplus)||r.ppad||0),S=M(r.vpadplus||r.vpad),E=M(r.vpadminus||r.vpad);if(!k){if(g=1/0,v=-1/0,w)for(i=0;i<x;i++)(o=e[i])<g&&o>0&&(g=o),o>v&&o<a&&(v=o);else for(i=0;i<x;i++)(o=e[i])<g&&o>-a&&(g=o),o>v&&o<a&&(v=o);e=[g,v],x=2}var C={tozero:_,extrapad:b};function L(r){s=e[r],n(s)&&(p=A(r),d=T(r),g=s-E(r),v=s+S(r),w&&g<v/10&&(g=v/10),l=t.c2l(g),f=t.c2l(v),_&&(l=Math.min(0,l),f=Math.max(0,f)),h(l)&&c(m,l,d,C),h(f)&&u(y,f,p,C))}var z=Math.min(6,x);for(i=0;i<z;i++)L(i);for(i=x-1;i>=z;i--)L(i);return{min:m,max:y}},concatExtremes:l}},{\"../../constants/numerical\":673,\"../../lib\":696,\"fast-isnumeric\":214}],744:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"fast-isnumeric\"),a=t(\"../../plots/plots\"),o=t(\"../../registry\"),s=t(\"../../lib\"),l=t(\"../../lib/svg_text_utils\"),c=t(\"../../components/titles\"),u=t(\"../../components/color\"),f=t(\"../../components/drawing\"),h=t(\"./layout_attributes\"),p=t(\"./clean_ticks\"),d=t(\"../../constants/numerical\"),g=d.ONEAVGYEAR,v=d.ONEAVGMONTH,m=d.ONEDAY,y=d.ONEHOUR,x=d.ONEMIN,b=d.ONESEC,_=d.MINUS_SIGN,w=d.BADNUM,k=t(\"../../constants/alignment\").MID_SHIFT,M=t(\"../../constants/alignment\").LINE_SPACING,A=e.exports={};A.setConvert=t(\"./set_convert\");var T=t(\"./axis_autotype\"),S=t(\"./axis_ids\");A.id2name=S.id2name,A.name2id=S.name2id,A.cleanId=S.cleanId,A.list=S.list,A.listIds=S.listIds,A.getFromId=S.getFromId,A.getFromTrace=S.getFromTrace;var E=t(\"./autorange\");A.getAutoRange=E.getAutoRange,A.findExtremes=E.findExtremes,A.coerceRef=function(t,e,r,n,i,a){var o=n.charAt(n.length-1),l=r._fullLayout._subplots[o+\"axis\"],c=n+\"ref\",u={};return i||(i=l[0]||a),a||(a=i),u[c]={valType:\"enumerated\",values:l.concat(a?[a]:[]),dflt:i},s.coerce(t,e,u,c)},A.coercePosition=function(t,e,r,n,i,a){var o,l;if(\"paper\"===n||\"pixel\"===n)o=s.ensureNumber,l=r(i,a);else{var c=A.getFromId(e,n);l=r(i,a=c.fraction2r(a)),o=c.cleanPos}t[i]=o(l)},A.cleanPosition=function(t,e,r){return(\"paper\"===r||\"pixel\"===r?s.ensureNumber:A.getFromId(e,r).cleanPos)(t)};var C=A.getDataConversions=function(t,e,r,n){var i,a=\"x\"===r||\"y\"===r||\"z\"===r?r:n;if(Array.isArray(a)){if(i={type:T(n),_categories:[]},A.setConvert(i),\"category\"===i.type)for(var o=0;o<n.length;o++)i.d2c(n[o])}else i=A.getFromTrace(t,e,a);return i?{d2c:i.d2c,c2d:i.c2d}:\"ids\"===a?{d2c:z,c2d:z}:{d2c:L,c2d:L}};function L(t){return+t}function z(t){return String(t)}A.getDataToCoordFunc=function(t,e,r,n){return C(t,e,r,n).d2c},A.counterLetter=function(t){var e=t.charAt(0);return\"x\"===e?\"y\":\"y\"===e?\"x\":void 0},A.minDtick=function(t,e,r,n){-1===[\"log\",\"category\"].indexOf(t.type)&&n?void 0===t._minDtick?(t._minDtick=e,t._forceTick0=r):t._minDtick&&((t._minDtick/e+1e-6)%1<2e-6&&((r-t._forceTick0)/e%1+1.000001)%1<2e-6?(t._minDtick=e,t._forceTick0=r):((e/t._minDtick+1e-6)%1>2e-6||((r-t._forceTick0)/t._minDtick%1+1.000001)%1>2e-6)&&(t._minDtick=0)):t._minDtick=0},A.saveRangeInitial=function(t,e){for(var r=A.list(t,\"\",!0),n=!1,i=0;i<r.length;i++){var a=r[i],o=void 0===a._rangeInitial,s=o||!(a.range[0]===a._rangeInitial[0]&&a.range[1]===a._rangeInitial[1]);(o&&!1===a.autorange||e&&s)&&(a._rangeInitial=a.range.slice(),n=!0)}return n},A.saveShowSpikeInitial=function(t,e){for(var r=A.list(t,\"\",!0),n=!1,i=\"on\",a=0;a<r.length;a++){var o=r[a],s=void 0===o._showSpikeInitial,l=s||!(o.showspikes===o._showspikes);(s||e&&l)&&(o._showSpikeInitial=o.showspikes,n=!0),\"on\"!==i||o.showspikes||(i=\"off\")}return t._fullLayout._cartesianSpikesEnabled=i,n},A.autoBin=function(t,e,r,n,a,o){var l,c=s.aggNums(Math.min,null,t),u=s.aggNums(Math.max,null,t);if(\"category\"===e.type)return{start:c-.5,end:u+.5,size:Math.max(1,Math.round(o)||1),_dataSpan:u-c};if(a||(a=e.calendar),l=\"log\"===e.type?{type:\"linear\",range:[c,u]}:{type:e.type,range:s.simpleMap([c,u],e.c2r,0,a),calendar:a},A.setConvert(l),o=o&&p.dtick(o,l.type))l.dtick=o,l.tick0=p.tick0(void 0,l.type,a);else{var f;if(r)f=(u-c)/r;else{var h=s.distinctVals(t),d=Math.pow(10,Math.floor(Math.log(h.minDiff)/Math.LN10)),g=d*s.roundUp(h.minDiff/d,[.9,1.9,4.9,9.9],!0);f=Math.max(g,2*s.stdev(t)/Math.pow(t.length,n?.25:.4)),i(f)||(f=1)}A.autoTicks(l,f)}var v,y=l.dtick,x=A.tickIncrement(A.tickFirst(l),y,\"reverse\",a);if(\"number\"==typeof y)v=(x=function(t,e,r,n,a){var o=0,s=0,l=0,c=0;function u(e){return(1+100*(e-t)/r.dtick)%100<2}for(var f=0;f<e.length;f++)e[f]%1==0?l++:i(e[f])||c++,u(e[f])&&o++,u(e[f]+r.dtick/2)&&s++;var h=e.length-c;if(l===h&&\"date\"!==r.type)r.dtick<1?t=n-.5*r.dtick:(t-=.5)+r.dtick<n&&(t+=r.dtick);else if(s<.1*h&&(o>.3*h||u(n)||u(a))){var p=r.dtick/2;t+=t+p<n?p:-p}return t}(x,t,l,c,u))+(1+Math.floor((u-x)/y))*y;else for(\"M\"===l.dtick.charAt(0)&&(x=function(t,e,r,n,i){var a=s.findExactDates(e,i);if(a.exactDays>.8){var o=Number(r.substr(1));a.exactYears>.8&&o%12==0?t=A.tickIncrement(t,\"M6\",\"reverse\")+1.5*m:a.exactMonths>.8?t=A.tickIncrement(t,\"M1\",\"reverse\")+15.5*m:t-=m/2;var l=A.tickIncrement(t,r);if(l<=n)return l}return t}(x,t,y,c,a)),v=x,0;v<=u;)v=A.tickIncrement(v,y,!1,a),0;return{start:e.c2r(x,0,a),end:e.c2r(v,0,a),size:y,_dataSpan:u-c}},A.prepTicks=function(t){var e=s.simpleMap(t.range,t.r2l);if(\"auto\"===t.tickmode||!t.dtick){var r,n=t.nticks;n||(\"category\"===t.type?(r=t.tickfont?1.2*(t.tickfont.size||12):15,n=t._length/r):(r=\"y\"===t._id.charAt(0)?40:80,n=s.constrain(t._length/r,4,9)+1),\"radialaxis\"===t._name&&(n*=2)),\"array\"===t.tickmode&&(n*=100),A.autoTicks(t,Math.abs(e[1]-e[0])/n),t._minDtick>0&&t.dtick<2*t._minDtick&&(t.dtick=t._minDtick,t.tick0=t.l2r(t._forceTick0))}t.tick0||(t.tick0=\"date\"===t.type?\"2000-01-01\":0),\"date\"===t.type&&t.dtick<.1&&(t.dtick=.1),j(t)},A.calcTicks=function(t){A.prepTicks(t);var e=s.simpleMap(t.range,t.r2l);if(\"array\"===t.tickmode)return function(t){var e,r,n=t.tickvals,i=t.ticktext,a=new Array(n.length),o=s.simpleMap(t.range,t.r2l),l=1.0001*o[0]-1e-4*o[1],c=1.0001*o[1]-1e-4*o[0],u=Math.min(l,c),f=Math.max(l,c),h=0;Array.isArray(i)||(i=[]);var p=\"category\"===t.type?t.d2l_noadd:t.d2l;\"log\"===t.type&&\"L\"!==String(t.dtick).charAt(0)&&(t.dtick=\"L\"+Math.pow(10,Math.floor(Math.min(t.range[0],t.range[1]))-1));for(r=0;r<n.length;r++)(e=p(n[r]))>u&&e<f&&(void 0===i[r]?a[h]=A.tickText(t,e):a[h]=V(t,e,String(i[r])),h++);h<n.length&&a.splice(h,n.length-h);return a}(t);t._tmin=A.tickFirst(t);var r=1.0001*e[0]-1e-4*e[1],n=1.0001*e[1]-1e-4*e[0],i=e[1]<e[0];if(t._tmin<r!==i)return[];var a=[];\"category\"===t.type&&(n=i?Math.max(-.5,n):Math.min(t._categories.length-.5,n));for(var o=null,l=Math.max(1e3,t._length||0),c=t._tmin;(i?c>=n:c<=n)&&!(a.length>l||c===o);c=A.tickIncrement(c,t.dtick,i,t.calendar))o=c,a.push(c);$(t)&&360===Math.abs(e[1]-e[0])&&a.pop(),t._tmax=a[a.length-1],t._prevDateHead=\"\",t._inCalcTicks=!0;for(var u=new Array(a.length),f=0;f<a.length;f++)u[f]=A.tickText(t,a[f]);return t._inCalcTicks=!1,u};var O=[2,5,10],I=[1,2,3,6,12],P=[1,2,5,10,15,30],D=[1,2,3,7,14],R=[-.046,0,.301,.477,.602,.699,.778,.845,.903,.954,1],B=[-.301,0,.301,.699,1],F=[15,30,45,90,180];function N(t,e,r){return e*s.roundUp(t/e,r)}function j(t){var e=t.dtick;if(t._tickexponent=0,i(e)||\"string\"==typeof e||(e=1),\"category\"===t.type&&(t._tickround=null),\"date\"===t.type){var r=t.r2l(t.tick0),n=t.l2r(r).replace(/(^-|i)/g,\"\"),a=n.length;if(\"M\"===String(e).charAt(0))a>10||\"01-01\"!==n.substr(5)?t._tickround=\"d\":t._tickround=+e.substr(1)%12==0?\"y\":\"m\";else if(e>=m&&a<=10||e>=15*m)t._tickround=\"d\";else if(e>=x&&a<=16||e>=y)t._tickround=\"M\";else if(e>=b&&a<=19||e>=x)t._tickround=\"S\";else{var o=t.l2r(r+e).replace(/^-/,\"\").length;t._tickround=Math.max(a,o)-20,t._tickround<0&&(t._tickround=4)}}else if(i(e)||\"L\"===e.charAt(0)){var s=t.range.map(t.r2d||Number);i(e)||(e=Number(e.substr(1))),t._tickround=2-Math.floor(Math.log(e)/Math.LN10+.01);var l=Math.max(Math.abs(s[0]),Math.abs(s[1])),c=Math.floor(Math.log(l)/Math.LN10+.01);Math.abs(c)>3&&(q(t.exponentformat)&&!H(c)?t._tickexponent=3*Math.round((c-1)/3):t._tickexponent=c)}else t._tickround=null}function V(t,e,r){var n=t.tickfont||{};return{x:e,dx:0,dy:0,text:r||\"\",fontSize:n.size,font:n.family,fontColor:n.color}}A.autoTicks=function(t,e){var r;function n(t){return Math.pow(t,Math.floor(Math.log(e)/Math.LN10))}if(\"date\"===t.type){t.tick0=s.dateTick0(t.calendar);var a=2*e;a>g?(e/=g,r=n(10),t.dtick=\"M\"+12*N(e,r,O)):a>v?(e/=v,t.dtick=\"M\"+N(e,1,I)):a>m?(t.dtick=N(e,m,D),t.tick0=s.dateTick0(t.calendar,!0)):a>y?t.dtick=N(e,y,I):a>x?t.dtick=N(e,x,P):a>b?t.dtick=N(e,b,P):(r=n(10),t.dtick=N(e,r,O))}else if(\"log\"===t.type){t.tick0=0;var o=s.simpleMap(t.range,t.r2l);if(e>.7)t.dtick=Math.ceil(e);else if(Math.abs(o[1]-o[0])<1){var l=1.5*Math.abs((o[1]-o[0])/e);e=Math.abs(Math.pow(10,o[1])-Math.pow(10,o[0]))/l,r=n(10),t.dtick=\"L\"+N(e,r,O)}else t.dtick=e>.3?\"D2\":\"D1\"}else\"category\"===t.type?(t.tick0=0,t.dtick=Math.ceil(Math.max(e,1))):$(t)?(t.tick0=0,r=1,t.dtick=N(e,r,F)):(t.tick0=0,r=n(10),t.dtick=N(e,r,O));if(0===t.dtick&&(t.dtick=1),!i(t.dtick)&&\"string\"!=typeof t.dtick){var c=t.dtick;throw t.dtick=1,\"ax.dtick error: \"+String(c)}},A.tickIncrement=function(t,e,r,a){var o=r?-1:1;if(i(e))return t+o*e;var l=e.charAt(0),c=o*Number(e.substr(1));if(\"M\"===l)return s.incrementMonth(t,c,a);if(\"L\"===l)return Math.log(Math.pow(10,t)+c)/Math.LN10;if(\"D\"===l){var u=\"D2\"===e?B:R,f=t+.01*o,h=s.roundUp(s.mod(f,1),u,r);return Math.floor(f)+Math.log(n.round(Math.pow(10,h),1))/Math.LN10}throw\"unrecognized dtick \"+String(e)},A.tickFirst=function(t){var e=t.r2l||Number,r=s.simpleMap(t.range,e),a=r[1]<r[0],o=a?Math.floor:Math.ceil,l=1.0001*r[0]-1e-4*r[1],c=t.dtick,u=e(t.tick0);if(i(c)){var f=o((l-u)/c)*c+u;return\"category\"===t.type&&(f=s.constrain(f,0,t._categories.length-1)),f}var h=c.charAt(0),p=Number(c.substr(1));if(\"M\"===h){for(var d,g,v,m=0,y=u;m<10;){if(((d=A.tickIncrement(y,c,a,t.calendar))-l)*(y-l)<=0)return a?Math.min(y,d):Math.max(y,d);g=(l-(y+d)/2)/(d-y),v=h+(Math.abs(Math.round(g))||1)*p,y=A.tickIncrement(y,v,g<0?!a:a,t.calendar),m++}return s.error(\"tickFirst did not converge\",t),y}if(\"L\"===h)return Math.log(o((Math.pow(10,l)-u)/p)*p+u)/Math.LN10;if(\"D\"===h){var x=\"D2\"===c?B:R,b=s.roundUp(s.mod(l,1),x,a);return Math.floor(l)+Math.log(n.round(Math.pow(10,b),1))/Math.LN10}throw\"unrecognized dtick \"+String(c)},A.tickText=function(t,e,r){var n,a,o=V(t,e),l=\"array\"===t.tickmode,c=r||l,u=\"category\"===t.type?t.d2l_noadd:t.d2l;if(l&&Array.isArray(t.ticktext)){var f=s.simpleMap(t.range,t.r2l),h=Math.abs(f[1]-f[0])/1e4;for(a=0;a<t.ticktext.length&&!(Math.abs(e-u(t.tickvals[a]))<h);a++);if(a<t.ticktext.length)return o.text=String(t.ticktext[a]),o}function p(n){var i;return void 0===n||(r?\"none\"===n:(i={first:t._tmin,last:t._tmax}[n],\"all\"!==n&&e!==i))}return n=r?\"never\":\"none\"!==t.exponentformat&&p(t.showexponent)?\"hide\":\"\",\"date\"===t.type?function(t,e,r,n){var a=t._tickround,o=r&&t.hoverformat||A.getTickFormat(t);n&&(a=i(a)?4:{y:\"m\",m:\"d\",d:\"M\",M:\"S\",S:4}[a]);var l,c=s.formatDate(e.x,o,a,t._dateFormat,t.calendar,t._extraFormat),u=c.indexOf(\"\\n\");-1!==u&&(l=c.substr(u+1),c=c.substr(0,u));n&&(\"00:00:00\"===c||\"00:00\"===c?(c=l,l=\"\"):8===c.length&&(c=c.replace(/:00$/,\"\")));l&&(r?\"d\"===a?c+=\", \"+l:c=l+(c?\", \"+c:\"\"):t._inCalcTicks&&l===t._prevDateHead||(c+=\"<br>\"+l,t._prevDateHead=l));e.text=c}(t,o,r,c):\"log\"===t.type?function(t,e,r,n,a){var o=t.dtick,l=e.x,c=t.tickformat,u=\"string\"==typeof o&&o.charAt(0);\"never\"===a&&(a=\"\");n&&\"L\"!==u&&(o=\"L3\",u=\"L\");if(c||\"L\"===u)e.text=G(Math.pow(10,l),t,a,n);else if(i(o)||\"D\"===u&&s.mod(l+.01,1)<.1){var f=Math.round(l),h=Math.abs(f),p=t.exponentformat;\"power\"===p||q(p)&&H(f)?(e.text=0===f?1:1===f?\"10\":\"10<sup>\"+(f>1?\"\":_)+h+\"</sup>\",e.fontSize*=1.25):(\"e\"===p||\"E\"===p)&&h>2?e.text=\"1\"+p+(f>0?\"+\":_)+h:(e.text=G(Math.pow(10,l),t,\"\",\"fakehover\"),\"D1\"===o&&\"y\"===t._id.charAt(0)&&(e.dy-=e.fontSize/6))}else{if(\"D\"!==u)throw\"unrecognized dtick \"+String(o);e.text=String(Math.round(Math.pow(10,s.mod(l,1)))),e.fontSize*=.75}if(\"D1\"===t.dtick){var d=String(e.text).charAt(0);\"0\"!==d&&\"1\"!==d||(\"y\"===t._id.charAt(0)?e.dx-=e.fontSize/4:(e.dy+=e.fontSize/2,e.dx+=(t.range[1]>t.range[0]?1:-1)*e.fontSize*(l<0?.5:.25)))}}(t,o,0,c,n):\"category\"===t.type?function(t,e){var r=t._categories[Math.round(e.x)];void 0===r&&(r=\"\");e.text=String(r)}(t,o):$(t)?function(t,e,r,n,i){if(\"radians\"!==t.thetaunit||r)e.text=G(e.x,t,i,n);else{var a=e.x/180;if(0===a)e.text=\"0\";else{var o=function(t){function e(t,e){return Math.abs(t-e)<=1e-6}var r=function(t){var r=1;for(;!e(Math.round(t*r)/r,t);)r*=10;return r}(t),n=t*r,i=Math.abs(function t(r,n){return e(n,0)?r:t(n,r%n)}(n,r));return[Math.round(n/i),Math.round(r/i)]}(a);if(o[1]>=100)e.text=G(s.deg2rad(e.x),t,i,n);else{var l=e.x<0;1===o[1]?1===o[0]?e.text=\"\\u03c0\":e.text=o[0]+\"\\u03c0\":e.text=[\"<sup>\",o[0],\"</sup>\",\"\\u2044\",\"<sub>\",o[1],\"</sub>\",\"\\u03c0\"].join(\"\"),l&&(e.text=_+e.text)}}}}(t,o,r,c,n):function(t,e,r,n,i){\"never\"===i?i=\"\":\"all\"===t.showexponent&&Math.abs(e.x/t.dtick)<1e-6&&(i=\"hide\");e.text=G(e.x,t,i,n)}(t,o,0,c,n),t.tickprefix&&!p(t.showtickprefix)&&(o.text=t.tickprefix+o.text),t.ticksuffix&&!p(t.showticksuffix)&&(o.text+=t.ticksuffix),o},A.hoverLabelText=function(t,e,r){if(r!==w&&r!==e)return A.hoverLabelText(t,e)+\" - \"+A.hoverLabelText(t,r);var n=\"log\"===t.type&&e<=0,i=A.tickText(t,t.c2l(n?-e:e),\"hover\").text;return n?0===e?\"0\":_+i:i};var U=[\"f\",\"p\",\"n\",\"\\u03bc\",\"m\",\"\",\"k\",\"M\",\"G\",\"T\"];function q(t){return\"SI\"===t||\"B\"===t}function H(t){return t>14||t<-15}function G(t,e,r,n){var a=t<0,o=e._tickround,l=r||e.exponentformat||\"B\",c=e._tickexponent,u=A.getTickFormat(e),f=e.separatethousands;if(n){var h={exponentformat:l,dtick:\"none\"===e.showexponent?e.dtick:i(t)&&Math.abs(t)||1,range:\"none\"===e.showexponent?e.range.map(e.r2d):[0,t||1]};j(h),o=(Number(h._tickround)||0)+4,c=h._tickexponent,e.hoverformat&&(u=e.hoverformat)}if(u)return e._numFormat(u)(t).replace(/-/g,_);var p,d=Math.pow(10,-o)/2;if(\"none\"===l&&(c=0),(t=Math.abs(t))<d)t=\"0\",a=!1;else{if(t+=d,c&&(t*=Math.pow(10,-c),o+=c),0===o)t=String(Math.floor(t));else if(o<0){t=(t=String(Math.round(t))).substr(0,t.length+o);for(var g=o;g<0;g++)t+=\"0\"}else{var v=(t=String(t)).indexOf(\".\")+1;v&&(t=t.substr(0,v+o).replace(/\\.?0+$/,\"\"))}t=s.numSeparate(t,e._separators,f)}c&&\"hide\"!==l&&(q(l)&&H(c)&&(l=\"power\"),p=c<0?_+-c:\"power\"!==l?\"+\"+c:String(c),\"e\"===l||\"E\"===l?t+=l+p:\"power\"===l?t+=\"\\xd710<sup>\"+p+\"</sup>\":\"B\"===l&&9===c?t+=\"B\":q(l)&&(t+=U[c/3+5]));return a?_+t:t}function W(t,e){var r=t.l2p(e);return r>1&&r<t._length-1}function Y(t,e){for(var r=0;r<e.length;r++)-1===t.indexOf(e[r])&&t.push(e[r])}function X(t,e,r){var n,i,a=[],o=[],l=t.layout;for(n=0;n<e.length;n++)a.push(A.getFromId(t,e[n]));for(n=0;n<r.length;n++)o.push(A.getFromId(t,r[n]));var c=Object.keys(h),u=[\"anchor\",\"domain\",\"overlaying\",\"position\",\"side\",\"tickangle\",\"editType\"],f=[\"linear\",\"log\"];for(n=0;n<c.length;n++){var p=c[n],d=a[0][p],g=o[0][p],v=!0,m=!1,y=!1;if(\"_\"!==p.charAt(0)&&\"function\"!=typeof d&&-1===u.indexOf(p)){for(i=1;i<a.length&&v;i++){var x=a[i][p];\"type\"===p&&-1!==f.indexOf(d)&&-1!==f.indexOf(x)&&d!==x?m=!0:x!==d&&(v=!1)}for(i=1;i<o.length&&v;i++){var b=o[i][p];\"type\"===p&&-1!==f.indexOf(g)&&-1!==f.indexOf(b)&&g!==b?y=!0:o[i][p]!==g&&(v=!1)}v&&(m&&(l[a[0]._name].type=\"linear\"),y&&(l[o[0]._name].type=\"linear\"),Z(l,p,a,o,t._fullLayout._dfltTitle))}}for(n=0;n<t._fullLayout.annotations.length;n++){var _=t._fullLayout.annotations[n];-1!==e.indexOf(_.xref)&&-1!==r.indexOf(_.yref)&&s.swapAttrs(l.annotations[n],[\"?\"])}}function Z(t,e,r,n,i){var a,o=s.nestedProperty,l=o(t[r[0]._name],e).get(),c=o(t[n[0]._name],e).get();for(\"title\"===e&&(l===i.x&&(l=i.y),c===i.y&&(c=i.x)),a=0;a<r.length;a++)o(t,r[a]._name+\".\"+e).set(c);for(a=0;a<n.length;a++)o(t,n[a]._name+\".\"+e).set(l)}function $(t){return\"angularaxis\"===t._id}A.getTickFormat=function(t){var e,r,n,i,a,o,s,l;function c(t){return\"string\"!=typeof t?t:Number(t.replace(\"M\",\"\"))*v}function u(t,e){var r=[\"L\",\"D\"];if(typeof t==typeof e){if(\"number\"==typeof t)return t-e;var n=r.indexOf(t.charAt(0)),i=r.indexOf(e.charAt(0));return n===i?Number(t.replace(/(L|D)/g,\"\"))-Number(e.replace(/(L|D)/g,\"\")):n-i}return\"number\"==typeof t?1:-1}function f(t,e){var r=null===e[0],n=null===e[1],i=u(t,e[0])>=0,a=u(t,e[1])<=0;return(r||i)&&(n||a)}if(t.tickformatstops&&t.tickformatstops.length>0)switch(t.type){case\"date\":case\"linear\":for(e=0;e<t.tickformatstops.length;e++)if((n=t.tickformatstops[e]).enabled&&(i=t.dtick,a=n.dtickrange,o=void 0,void 0,void 0,o=c||function(t){return t},s=a[0],l=a[1],(!s&&\"number\"!=typeof s||o(s)<=o(i))&&(!l&&\"number\"!=typeof l||o(l)>=o(i)))){r=n;break}break;case\"log\":for(e=0;e<t.tickformatstops.length;e++)if((n=t.tickformatstops[e]).enabled&&f(t.dtick,n.dtickrange)){r=n;break}}return r?r.value:t.tickformat},A.getSubplots=function(t,e){var r=t._fullLayout._subplots,n=r.cartesian.concat(r.gl2d||[]),i=e?A.findSubplotsWithAxis(n,e):n;return i.sort(function(t,e){var r=t.substr(1).split(\"y\"),n=e.substr(1).split(\"y\");return r[0]===n[0]?+r[1]-+n[1]:+r[0]-+n[0]}),i},A.findSubplotsWithAxis=function(t,e){for(var r=new RegExp(\"x\"===e._id.charAt(0)?\"^\"+e._id+\"y\":e._id+\"$\"),n=[],i=0;i<t.length;i++){var a=t[i];r.test(a)&&n.push(a)}return n},A.makeClipPaths=function(t){var e=t._fullLayout;if(!e._hasOnlyLargeSploms){var r,i,a={_offset:0,_length:e.width,_id:\"\"},o={_offset:0,_length:e.height,_id:\"\"},s=A.list(t,\"x\",!0),l=A.list(t,\"y\",!0),c=[];for(r=0;r<s.length;r++)for(c.push({x:s[r],y:o}),i=0;i<l.length;i++)0===r&&c.push({x:a,y:l[i]}),c.push({x:s[r],y:l[i]});var u=e._clips.selectAll(\".axesclip\").data(c,function(t){return t.x._id+t.y._id});u.enter().append(\"clipPath\").classed(\"axesclip\",!0).attr(\"id\",function(t){return\"clip\"+e._uid+t.x._id+t.y._id}).append(\"rect\"),u.exit().remove(),u.each(function(t){n.select(this).select(\"rect\").attr({x:t.x._offset||0,y:t.y._offset||0,width:t.x._length||1,height:t.y._length||1})})}},A.doTicks=function(t,e,r){var n=t._fullLayout;\"redraw\"===e&&n._paper.selectAll(\"g.subplot\").each(function(t){var e=t[0],r=n._plots[e],i=r.xaxis,a=r.yaxis;r.xaxislayer.selectAll(\".\"+i._id+\"tick\").remove(),r.yaxislayer.selectAll(\".\"+a._id+\"tick\").remove(),r.gridlayer&&r.gridlayer.selectAll(\"path\").remove(),r.zerolinelayer&&r.zerolinelayer.selectAll(\"path\").remove(),n._infolayer.select(\".g-\"+i._id+\"title\").remove(),n._infolayer.select(\".g-\"+a._id+\"title\").remove()});var i=e&&\"redraw\"!==e?e:A.listIds(t);s.syncOrAsync(i.map(function(e){return function(){if(e){var n=A.doTicksSingle(t,e,r),i=A.getFromId(t,e);return i._r=i.range.slice(),i._rl=s.simpleMap(i._r,i.r2l),n}}}))},A.doTicksSingle=function(t,e,r){var o,h=t._fullLayout,p=!1;s.isPlainObject(e)?(o=e,p=!0):o=A.getFromId(t,e),o.setScale();var d,g,v,m,y,x,b=o._id,_=b.charAt(0),w=A.counterLetter(b),T=o._vals=A.calcTicks(o),E=function(t){return[t.text,t.x,o.mirror,t.font,t.fontSize,t.fontColor].join(\"_\")},C=b+\"tick\",L=b+\"grid\",z=b+\"zl\",O=(o.linewidth||1)/2,I=\"outside\"===o.ticks?o.ticklen:0,P=0,D=f.crispRound(t,o.gridwidth,1),R=f.crispRound(t,o.zerolinewidth,D),B=f.crispRound(t,o.tickwidth,1);if(o._counterangle&&\"outside\"===o.ticks){var F=o._counterangle*Math.PI/180;I=o.ticklen*Math.cos(F)+1,P=o.ticklen*Math.sin(F)}if(o.showticklabels&&(\"outside\"===o.ticks||o.showline)&&(I+=.2*o.tickfont.size),\"x\"===_)d=[\"bottom\",\"top\"],g=o._transfn||function(t){return\"translate(\"+(o._offset+o.l2p(t.x))+\",0)\"},v=function(t,e){if(o._counterangle){var r=o._counterangle*Math.PI/180;return\"M0,\"+t+\"l\"+Math.sin(r)*e+\",\"+Math.cos(r)*e}return\"M0,\"+t+\"v\"+e};else if(\"y\"===_)d=[\"left\",\"right\"],g=o._transfn||function(t){return\"translate(0,\"+(o._offset+o.l2p(t.x))+\")\"},v=function(t,e){if(o._counterangle){var r=o._counterangle*Math.PI/180;return\"M\"+t+\",0l\"+Math.cos(r)*e+\",\"+-Math.sin(r)*e}return\"M\"+t+\",0h\"+e};else{if(!$(o))return void s.warn(\"Unrecognized doTicks axis:\",b);d=[\"left\",\"right\"],g=o._transfn,v=function(t,e){return\"M\"+t+\",0h\"+e}}var N=o.side||d[0],j=[-1,1,N===d[1]?1:-1];if(\"inside\"!==o.ticks==(\"x\"===_)&&(j=j.map(function(t){return-t})),o.visible){o._tickFilter&&(T=T.filter(o._tickFilter));var V=o._valsClipped=$(o)?T:T.filter(function(t){return W(o,t.x)});if(p){if(Z(o._axislayer,v(o._pos+O*j[2],j[2]*o.ticklen)),o._counteraxis)Q({gridlayer:o._gridlayer,zerolinelayer:o._zerolinelayer},o._counteraxis);return J(o._axislayer,o._pos)}if(h._has(\"cartesian\")){m=A.getSubplots(t,o);var U={};m.map(function(t){var e=h._plots[t],r=e[w+\"axis\"],n=r._mainAxis._id;U[n]||(U[n]=1,Q(e,r))});var q=o._mainSubplot,H=h._plots[q],G=[];if(o.ticks){var Y=j[2],X=v(o._mainLinePosition+O*Y,Y*o.ticklen);o._anchorAxis&&o.mirror&&!0!==o.mirror&&(X+=v(o._mainMirrorPosition-O*Y,-Y*o.ticklen)),Z(H[_+\"axislayer\"],X),G=Object.keys(o._linepositions||{})}return G.map(function(t){var e=h._plots[t][_+\"axislayer\"],r=o._linepositions[t]||[];function n(t){var e=j[t];return v(r[t]+O*e,e*o.ticklen)}Z(e,n(0)+n(1))}),J(H[_+\"axislayer\"],o._mainLinePosition)}}function Z(t,e){var r=t.selectAll(\"path.\"+C).data(\"inside\"===o.ticks?V:T,E);e&&o.ticks?(r.enter().append(\"path\").classed(C,1).classed(\"ticks\",1).classed(\"crisp\",1).call(u.stroke,o.tickcolor).style(\"stroke-width\",B+\"px\").attr(\"d\",e),r.attr(\"transform\",g),r.exit().remove()):r.remove()}function J(e,r){if(y=e.selectAll(\"g.\"+C).data(T,E),!i(r))return y.remove(),void K();if(!o.showticklabels)return y.remove(),K(),void z();var c,u,p,d,v;\"x\"===_?(c=function(t){return t.dx+P*v},d=r+(I+O)*(v=\"bottom\"===N?1:-1),u=function(t){return t.dy+d+t.fontSize*(\"bottom\"===N?1:-.2)},p=function(t){return i(t)&&0!==t&&180!==t?t*v<0?\"end\":\"start\":\"middle\"}):\"y\"===_?(v=\"right\"===N?1:-1,u=function(t){return t.dy+t.fontSize*k-P*v},c=function(t){return t.dx+r+(I+O+(90===Math.abs(o.tickangle)?t.fontSize/2:0))*v},p=function(t){return i(t)&&90===Math.abs(t)?\"middle\":\"right\"===N?\"start\":\"end\"}):$(o)&&(o._labelShift=P,o._labelStandoff=I,o._pad=O,c=o._labelx,u=o._labely,p=o._labelanchor);var w=0,A=0,S=[];function L(t,e){t.each(function(t){var r=p(e,t),a=n.select(this),o=a.select(\".text-math-group\"),s=g.call(a.node(),t)+(i(e)&&0!=+e?\" rotate(\"+e+\",\"+c(t)+\",\"+(u(t)-t.fontSize/2)+\")\":\"\"),h=function(t,e,r){var n=(t-1)*e;if(\"x\"===_){if(r<-60||60<r)return-.5*n;if(\"top\"===N)return-n}else{if((r*=\"left\"===N?1:-1)<-30)return-n;if(r<30)return-.5*n}return 0}(l.lineCount(a),M*t.fontSize,i(e)?+e:0);if(h&&(s+=\" translate(0, \"+h+\")\"),o.empty())a.select(\"text\").attr({transform:s,\"text-anchor\":r});else{var d=f.bBox(o.node()).width*{end:-.5,start:.5}[r];o.attr(\"transform\",s+(d?\"translate(\"+d+\",0)\":\"\"))}})}function z(){if(o.showticklabels){var r=t.getBoundingClientRect(),n=e.node().getBoundingClientRect();o._boundingBox={width:n.width,height:n.height,left:n.left-r.left,right:n.right-r.left,top:n.top-r.top,bottom:n.bottom-r.top}}else{var i,a=h._size;\"x\"===_?(i=\"free\"===o.anchor?a.t+a.h*(1-o.position):a.t+a.h*(1-o._anchorAxis.domain[{bottom:0,top:1}[o.side]]),o._boundingBox={top:i,bottom:i,left:o._offset,right:o._offset+o._length,width:o._length,height:0}):(i=\"free\"===o.anchor?a.l+a.w*o.position:a.l+a.w*o._anchorAxis.domain[{left:0,right:1}[o.side]],o._boundingBox={left:i,right:i,bottom:o._offset+o._length,top:o._offset,height:o._length,width:0})}if(m){var s=o._counterSpan=[1/0,-1/0];for(x=0;x<m.length;x++){var l=h._plots[m[x]][\"x\"===_?\"yaxis\":\"xaxis\"];c(s,[l._offset,l._offset+l._length])}\"free\"===o.anchor&&c(s,\"x\"===_?[o._boundingBox.bottom,o._boundingBox.top]:[o._boundingBox.right,o._boundingBox.left])}function c(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.max(t[1],e[1])}}y.enter().append(\"g\").classed(C,1).append(\"text\").attr(\"text-anchor\",\"middle\").each(function(e){var r=n.select(this),i=t._promises.length;r.call(l.positionText,c(e),u(e)).call(f.font,e.font,e.fontSize,e.fontColor).text(e.text).call(l.convertToTspans,t),(i=t._promises[i])?S.push(t._promises.pop().then(function(){L(r,o.tickangle)})):L(r,o.tickangle)}),y.exit().remove(),y.each(function(t){w=Math.max(w,t.fontSize)}),$(o)&&y.each(function(t){n.select(this).select(\"text\").call(l.positionText,c(t),u(t))}),L(y,o._lastangle||o.tickangle);var D=s.syncOrAsync([function(){return S.length&&Promise.all(S)},function(){if(L(y,o.tickangle),\"x\"===_&&!i(o.tickangle)&&(\"log\"!==o.type||\"D\"!==String(o.dtick).charAt(0))){var t=[];for(y.each(function(e){var r=n.select(this),i=r.select(\".text-math-group\"),a=o.l2p(e.x);i.empty()&&(i=r.select(\"text\"));var s=f.bBox(i.node());t.push({top:0,bottom:10,height:10,left:a-s.width/2,right:a+s.width/2+2,width:s.width+2})}),x=0;x<t.length-1;x++)if(s.bBoxIntersect(t[x],t[x+1])){A=30;break}A&&(Math.abs((T[T.length-1].x-T[0].x)*o._m)/(T.length-1)<2.5*w&&(A=90),L(y,A)),o._lastangle=A}return K(),b+\" done\"},z,function(){var e=o._name+\".automargin\";if(\"x\"===_||\"y\"===_)if(o.automargin){var r=o.side[0],n={x:0,y:0,r:0,l:0,t:0,b:0};\"x\"===_?(n.y=\"free\"===o.anchor?o.position:o._anchorAxis.domain[\"t\"===r?1:0],n[r]+=o._boundingBox.height):(n.x=\"free\"===o.anchor?o.position:o._anchorAxis.domain[\"r\"===r?1:0],n[r]+=o._boundingBox.width),o.title!==h._dfltTitle[_]&&(n[r]+=o.titlefont.size),a.autoMargin(t,e,n)}else a.autoMargin(t,e)}]);return D&&D.then&&t._promises.push(D),D}function K(){if(!(r||o.rangeslider&&o.rangeslider.visible&&o._boundingBox&&\"bottom\"===o.side)){var e,n,i,a,s={selection:y,side:o.side},l=b.charAt(0),u=t._fullLayout._size,p=o.titlefont.size;if(y.size()){var d=f.getTranslate(y.node().parentNode);s.offsetLeft=d.x,s.offsetTop=d.y}var g=10+1.5*p+(o.linewidth?o.linewidth-1:0);\"x\"===l?(n=\"free\"===o.anchor?{_offset:u.t+(1-(o.position||0))*u.h,_length:0}:S.getFromId(t,o.anchor),i=o._offset+o._length/2,a=\"top\"===o.side?-g-p*(o.showticklabels?1:0):n._length+g+p*(o.showticklabels?1.5:.5),a+=n._offset,s.side||(s.side=\"bottom\")):(n=\"free\"===o.anchor?{_offset:u.l+(o.position||0)*u.w,_length:0}:S.getFromId(t,o.anchor),a=o._offset+o._length/2,i=\"right\"===o.side?n._length+g+p*(o.showticklabels?1:.5):-g-p*(o.showticklabels?.5:0),i+=n._offset,e={rotate:\"-90\",offset:0},s.side||(s.side=\"left\")),c.draw(t,b+\"title\",{propContainer:o,propName:o._name+\".title\",placeholder:h._dfltTitle[l],avoid:s,transform:e,attributes:{x:i,y:a,\"text-anchor\":\"middle\"}})}}function Q(e,r){if(!h._hasOnlyLargeSploms){var i=e.gridlayer.selectAll(\".\"+b),a=e.zerolinelayer,s=o._gridpath||(\"x\"===_?\"M0,\"+r._offset+\"v\":\"M\"+r._offset+\",0h\")+r._length,l=i.selectAll(\"path.\"+L).data(!1===o.showgrid?[]:V,E);if(l.enter().append(\"path\").classed(L,1).classed(\"crisp\",1).attr(\"d\",s).each(function(t){o.zeroline&&(\"linear\"===o.type||\"-\"===o.type)&&Math.abs(t.x)<o.dtick/100&&n.select(this).remove()}),l.attr(\"transform\",g).call(u.stroke,o.gridcolor||\"#ddd\").style(\"stroke-width\",D+\"px\"),\"function\"==typeof s&&l.attr(\"d\",s),l.exit().remove(),a){var c={x:0,id:b},f=A.shouldShowZeroLine(t,o,r),p=a.selectAll(\"path.\"+z).data(f?[c]:[]);p.enter().append(\"path\").classed(z,1).classed(\"zl\",1).classed(\"crisp\",1).attr(\"d\",s).each(function(){a.selectAll(\"path\").sort(function(t,e){return S.idSort(t.id,e.id)})}),p.attr(\"transform\",g).call(u.stroke,o.zerolinecolor||u.defaultLine).style(\"stroke-width\",R+\"px\"),p.exit().remove()}}}},A.shouldShowZeroLine=function(t,e,r){var n=s.simpleMap(e.range,e.r2l);return n[0]*n[1]<=0&&e.zeroline&&(\"linear\"===e.type||\"-\"===e.type)&&e._valsClipped.length&&(W(e,0)||!function(t,e,r,n){var i=r._mainAxis;if(!i)return;var a=t._fullLayout,o=e._id.charAt(0),s=A.counterLetter(e._id),l=e._offset+(Math.abs(n[0])<Math.abs(n[1])==(\"x\"===o)?0:e._length);function c(t){if(!t.showline||!t.linewidth)return!1;var r=Math.max((t.linewidth+e.zerolinewidth)/2,1);function n(t){return\"number\"==typeof t&&Math.abs(t-l)<r}if(n(t._mainLinePosition)||n(t._mainMirrorPosition))return!0;var i=t._linepositions||{};for(var a in i)if(n(i[a][0])||n(i[a][1]))return!0}var u=a._plots[r._mainSubplot];if(!(u.mainplotinfo||u).overlays.length)return c(r);for(var f=A.list(t,s),h=0;h<f.length;h++){var p=f[h];if(p._mainAxis===i&&c(p))return!0}}(t,e,r,n)||function(t,e){for(var r=t._fullData,n=e._mainSubplot,i=e._id.charAt(0),a=0;a<r.length;a++){var s=r[a];if(!0===s.visible&&s.xaxis+s.yaxis===n&&(o.traceIs(s,\"bar\")&&s.orientation==={x:\"h\",y:\"v\"}[i]||s.fill&&s.fill.charAt(s.fill.length-1)===i))return!0}return!1}(t,e))},A.allowAutoMargin=function(t){for(var e=A.list(t,\"\",!0),r=0;r<e.length;r++){var n=e[r];n.automargin&&a.allowAutoMargin(t,n._name+\".automargin\"),n.rangeslider&&n.rangeslider.visible&&a.allowAutoMargin(t,\"rangeslider\"+n._id)}},A.swap=function(t,e){for(var r=function(t,e){var r,n,i=[];for(r=0;r<e.length;r++){var a=[],o=t._fullData[e[r]].xaxis,s=t._fullData[e[r]].yaxis;if(o&&s){for(n=0;n<i.length;n++)-1===i[n].x.indexOf(o)&&-1===i[n].y.indexOf(s)||a.push(n);if(a.length){var l,c=i[a[0]];if(a.length>1)for(n=1;n<a.length;n++)l=i[a[n]],Y(c.x,l.x),Y(c.y,l.y);Y(c.x,[o]),Y(c.y,[s])}else i.push({x:[o],y:[s]})}}return i}(t,e),n=0;n<r.length;n++)X(t,r[n].x,r[n].y)}},{\"../../components/color\":570,\"../../components/drawing\":595,\"../../components/titles\":661,\"../../constants/alignment\":668,\"../../constants/numerical\":673,\"../../lib\":696,\"../../lib/svg_text_utils\":720,\"../../plots/plots\":808,\"../../registry\":827,\"./autorange\":743,\"./axis_autotype\":745,\"./axis_ids\":747,\"./clean_ticks\":749,\"./layout_attributes\":757,\"./set_convert\":763,d3:148,\"fast-isnumeric\":214}],745:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../../lib\"),a=t(\"../../constants/numerical\").BADNUM;e.exports=function(t,e){return function(t,e){for(var r=Math.max(1,(t.length-1)/1e3),a=0,o=0,s={},l=0;l<t.length;l+=r){var c=t[Math.round(l)],u=String(c);s[u]||(s[u]=1,i.isDateTime(c,e)&&(a+=1),n(c)&&(o+=1))}return a>2*o}(t,e)?\"date\":function(t){for(var e=Math.max(1,(t.length-1)/1e3),r=0,n=0,o={},s=0;s<t.length;s+=e){var l=t[Math.round(s)],c=String(l);o[c]||(o[c]=1,\"boolean\"==typeof l?n++:i.cleanNumber(l)!==a?r++:\"string\"==typeof l&&n++)}return n>2*r}(t)?\"category\":function(t){if(!t)return!1;for(var e=0;e<t.length;e++)if(n(t[e]))return!0;return!1}(t)?\"linear\":\"-\"}},{\"../../constants/numerical\":673,\"../../lib\":696,\"fast-isnumeric\":214}],746:[function(t,e,r){\"use strict\";var n=t(\"../../registry\"),i=t(\"../../lib\"),a=t(\"./layout_attributes\"),o=t(\"./tick_value_defaults\"),s=t(\"./tick_mark_defaults\"),l=t(\"./tick_label_defaults\"),c=t(\"./category_order_defaults\"),u=t(\"./line_grid_defaults\"),f=t(\"./set_convert\");e.exports=function(t,e,r,h,p){var d=h.letter,g=h.font||{},v=h.splomStash||{},m=r(\"visible\",!h.cheateronly),y=e.type;\"date\"===y&&n.getComponentMethod(\"calendars\",\"handleDefaults\")(t,e,\"calendar\",h.calendar);if(f(e,p),!r(\"autorange\",!e.isValidRange(t.range))||\"linear\"!==y&&\"-\"!==y||r(\"rangemode\"),r(\"range\"),e.cleanRange(),c(t,e,r,h),\"category\"===y||h.noHover||r(\"hoverformat\"),!m)return e;var x=r(\"color\"),b=x!==a.color.dflt?x:g.color;return r(\"title\",v.label||p._dfltTitle[d]),i.coerceFont(r,\"titlefont\",{family:g.family,size:Math.round(1.2*g.size),color:b}),o(t,e,r,y),l(t,e,r,y,h),s(t,e,r,h),u(t,e,r,{dfltColor:x,bgColor:h.bgColor,showGrid:h.showGrid,attributes:a}),(e.showline||e.ticks)&&r(\"mirror\"),h.automargin&&r(\"automargin\"),e}},{\"../../lib\":696,\"../../registry\":827,\"./category_order_defaults\":748,\"./layout_attributes\":757,\"./line_grid_defaults\":759,\"./set_convert\":763,\"./tick_label_defaults\":764,\"./tick_mark_defaults\":765,\"./tick_value_defaults\":766}],747:[function(t,e,r){\"use strict\";var n=t(\"../../registry\"),i=t(\"./constants\");r.id2name=function(t){if(\"string\"==typeof t&&t.match(i.AX_ID_PATTERN)){var e=t.substr(1);return\"1\"===e&&(e=\"\"),t.charAt(0)+\"axis\"+e}},r.name2id=function(t){if(t.match(i.AX_NAME_PATTERN)){var e=t.substr(5);return\"1\"===e&&(e=\"\"),t.charAt(0)+e}},r.cleanId=function(t,e){if(t.match(i.AX_ID_PATTERN)&&(!e||t.charAt(0)===e)){var r=t.substr(1).replace(/^0+/,\"\");return\"1\"===r&&(r=\"\"),t.charAt(0)+r}},r.list=function(t,e,n){var i=t._fullLayout;if(!i)return[];var a,o=r.listIds(t,e),s=new Array(o.length);for(a=0;a<o.length;a++){var l=o[a];s[a]=i[l.charAt(0)+\"axis\"+l.substr(1)]}if(!n){var c=i._subplots.gl3d||[];for(a=0;a<c.length;a++){var u=i[c[a]];e?s.push(u[e+\"axis\"]):s.push(u.xaxis,u.yaxis,u.zaxis)}}return s},r.listIds=function(t,e){var r=t._fullLayout;if(!r)return[];var n=r._subplots;return e?n[e+\"axis\"]:n.xaxis.concat(n.yaxis)},r.getFromId=function(t,e,n){var i=t._fullLayout;return\"x\"===n?e=e.replace(/y[0-9]*/,\"\"):\"y\"===n&&(e=e.replace(/x[0-9]*/,\"\")),i[r.id2name(e)]},r.getFromTrace=function(t,e,i){var a=t._fullLayout,o=null;if(n.traceIs(e,\"gl3d\")){var s=e.scene;\"scene\"===s.substr(0,5)&&(o=a[s][i+\"axis\"])}else o=r.getFromId(t,e[i+\"axis\"]||i);return o},r.idSort=function(t,e){var r=t.charAt(0),n=e.charAt(0);return r!==n?r>n?1:-1:+(t.substr(1)||1)-+(e.substr(1)||1)}},{\"../../registry\":827,\"./constants\":750}],748:[function(t,e,r){\"use strict\";e.exports=function(t,e,r,n){if(\"category\"===e.type){var i,a=t.categoryarray,o=Array.isArray(a)&&a.length>0;o&&(i=\"array\");var s,l=r(\"categoryorder\",i);\"array\"===l&&(s=r(\"categoryarray\")),o||\"array\"!==l||(l=e.categoryorder=\"trace\"),\"trace\"===l?e._initialCategories=[]:\"array\"===l?e._initialCategories=s.slice():(s=function(t,e){var r,n,i,a=e.dataAttr||t._id.charAt(0),o={};if(e.axData)r=e.axData;else for(r=[],n=0;n<e.data.length;n++){var s=e.data[n];s[a+\"axis\"]===t._id&&r.push(s)}for(n=0;n<r.length;n++){var l=r[n][a];for(i=0;i<l.length;i++){var c=l[i];null!=c&&(o[c]=1)}}return Object.keys(o)}(e,n).sort(),\"category ascending\"===l?e._initialCategories=s:\"category descending\"===l&&(e._initialCategories=s.reverse()))}}},{}],749:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../../lib\"),a=t(\"../../constants/numerical\").ONEDAY;r.dtick=function(t,e){var r=\"log\"===e,i=\"date\"===e,o=\"category\"===e,s=i?a:1;if(!t)return s;if(n(t))return(t=Number(t))<=0?s:o?Math.max(1,Math.round(t)):i?Math.max(.1,t):t;if(\"string\"!=typeof t||!i&&!r)return s;var l=t.charAt(0),c=t.substr(1);return(c=n(c)?Number(c):0)<=0||!(i&&\"M\"===l&&c===Math.round(c)||r&&\"L\"===l||r&&\"D\"===l&&(1===c||2===c))?s:t},r.tick0=function(t,e,r,a){return\"date\"===e?i.cleanDate(t,i.dateTick0(r)):\"D1\"!==a&&\"D2\"!==a?n(t)?Number(t):0:void 0}},{\"../../constants/numerical\":673,\"../../lib\":696,\"fast-isnumeric\":214}],750:[function(t,e,r){\"use strict\";var n=t(\"../../lib/regex\").counter;e.exports={idRegex:{x:n(\"x\"),y:n(\"y\")},attrRegex:n(\"[xy]axis\"),xAxisMatch:n(\"xaxis\"),yAxisMatch:n(\"yaxis\"),AX_ID_PATTERN:/^[xyz][0-9]*$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,MINDRAG:8,MINSELECT:12,MINZOOM:20,DRAGGERSIZE:20,BENDPX:1.5,REDRAWDELAY:50,SELECTDELAY:100,SELECTID:\"-select\",DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:[\"heatmaplayer\",\"contourcarpetlayer\",\"contourlayer\",\"barlayer\",\"carpetlayer\",\"violinlayer\",\"boxlayer\",\"ohlclayer\",\"scattercarpetlayer\",\"scatterlayer\"],layerValue2layerClass:{\"above traces\":\"above\",\"below traces\":\"below\"}}},{\"../../lib/regex\":712}],751:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"./axis_ids\").id2name;e.exports=function(t,e,r,a,o){var s=o._axisConstraintGroups,l=e._id,c=l.charAt(0);if(!e.fixedrange&&(r(\"constrain\"),n.coerce(t,e,{constraintoward:{valType:\"enumerated\",values:\"x\"===c?[\"left\",\"center\",\"right\"]:[\"bottom\",\"middle\",\"top\"],dflt:\"x\"===c?\"center\":\"middle\"}},\"constraintoward\"),t.scaleanchor)){var u=function(t,e,r,n){var a,o,s,l,c=n[i(e)].type,u=[];for(o=0;o<r.length;o++)(s=r[o])!==e&&((l=n[i(s)]).type!==c||l.fixedrange||u.push(s));for(a=0;a<t.length;a++)if(t[a][e]){var f=t[a],h=[];for(o=0;o<u.length;o++)s=u[o],f[s]||h.push(s);return{linkableAxes:h,thisGroup:f}}return{linkableAxes:u,thisGroup:null}}(s,l,a,o),f=n.coerce(t,e,{scaleanchor:{valType:\"enumerated\",values:u.linkableAxes}},\"scaleanchor\");if(f){var h=r(\"scaleratio\");h||(h=e.scaleratio=1),function(t,e,r,n,i){var a,o,s,l,c;null===e?((e={})[r]=1,c=t.length,t.push(e)):c=t.indexOf(e);var u=Object.keys(e);for(a=0;a<t.length;a++)if(s=t[a],a!==c&&s[n]){var f=s[n];for(o=0;o<u.length;o++)l=u[o],s[l]=f*i*e[l];return void t.splice(c,1)}if(1!==i)for(o=0;o<u.length;o++)e[u[o]]*=i;e[n]=1}(s,u.thisGroup,l,f,h)}else-1!==a.indexOf(t.scaleanchor)&&n.warn(\"ignored \"+e._name+'.scaleanchor: \"'+t.scaleanchor+'\" to avoid either an infinite loop and possibly inconsistent scaleratios, or because the targetaxis has fixed range.')}}},{\"../../lib\":696,\"./axis_ids\":747}],752:[function(t,e,r){\"use strict\";var n=t(\"./axis_ids\").id2name,i=t(\"./scale_zoom\"),a=t(\"./autorange\").makePadFn,o=t(\"./autorange\").concatExtremes,s=t(\"../../constants/numerical\").ALMOST_EQUAL,l=t(\"../../constants/alignment\").FROM_BL;function c(t,e){var r=t._inputDomain,n=l[t.constraintoward],i=r[0]+(r[1]-r[0])*n;t.domain=t._input.domain=[i+(r[0]-i)/e,i+(r[1]-i)/e]}r.enforce=function(t){var e,r,l,u,f,h,p,d=t._fullLayout,g=d._axisConstraintGroups||[];for(e=0;e<g.length;e++){var v=g[e],m=Object.keys(v),y=1/0,x=0,b=1/0,_={},w={},k=!1;for(r=0;r<m.length;r++)w[l=m[r]]=u=d[n(l)],u._inputDomain?u.domain=u._inputDomain.slice():u._inputDomain=u.domain.slice(),u._inputRange||(u._inputRange=u.range.slice()),u.setScale(),_[l]=f=Math.abs(u._m)/v[l],y=Math.min(y,f),\"domain\"!==u.constrain&&u._constraintShrinkable||(b=Math.min(b,f)),delete u._constraintShrinkable,x=Math.max(x,f),\"domain\"===u.constrain&&(k=!0);if(!(y>s*x)||k)for(r=0;r<m.length;r++)if(f=_[l=m[r]],h=(u=w[l]).constrain,f!==b||\"domain\"===h)if(p=f/b,\"range\"===h)i(u,p);else{var M=u._inputDomain,A=(u.domain[1]-u.domain[0])/(M[1]-M[0]),T=(u.r2l(u.range[1])-u.r2l(u.range[0]))/(u.r2l(u._inputRange[1])-u.r2l(u._inputRange[0]));if((p/=A)*T<1){u.domain=u._input.domain=M.slice(),i(u,p);continue}if(T<1&&(u.range=u._input.range=u._inputRange.slice(),p*=T),u.autorange){var S=u.r2l(u.range[0]),E=u.r2l(u.range[1]),C=(S+E)/2,L=C,z=C,O=Math.abs(E-C),I=C-O*p*1.0001,P=C+O*p*1.0001,D=a(u);c(u,p),u.setScale();var R,B,F=Math.abs(u._m),N=o(t,u),j=N.min,V=N.max;for(B=0;B<j.length;B++)(R=j[B].val-D(j[B])/F)>I&&R<L&&(L=R);for(B=0;B<V.length;B++)(R=V[B].val+D(V[B])/F)<P&&R>z&&(z=R);p/=(z-L)/(2*O),L=u.l2r(L),z=u.l2r(z),u.range=u._input.range=S<E?[L,z]:[z,L]}c(u,p)}}},r.clean=function(t,e){if(e._inputDomain){for(var r=!1,n=e._id,i=t._fullLayout._axisConstraintGroups,a=0;a<i.length;a++)if(i[a][n]){r=!0;break}r&&\"domain\"===e.constrain||(e._input.domain=e.domain=e._inputDomain,delete e._inputDomain)}}},{\"../../constants/alignment\":668,\"../../constants/numerical\":673,\"./autorange\":743,\"./axis_ids\":747,\"./scale_zoom\":761}],753:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"tinycolor2\"),a=t(\"has-passive-events\"),o=t(\"../../registry\"),s=t(\"../../lib\"),l=t(\"../../lib/svg_text_utils\"),c=t(\"../../components/color\"),u=t(\"../../components/drawing\"),f=t(\"../../components/fx\"),h=t(\"../../lib/setcursor\"),p=t(\"../../components/dragelement\"),d=t(\"../../constants/alignment\").FROM_TL,g=t(\"../../lib/clear_gl_canvases\"),v=t(\"../../plot_api/subroutines\").redrawReglTraces,m=t(\"../plots\"),y=t(\"./axes\").doTicksSingle,x=t(\"./axis_ids\").getFromId,b=t(\"./select\").prepSelect,_=t(\"./select\").clearSelect,w=t(\"./select\").selectOnClick,k=t(\"./scale_zoom\"),M=t(\"./constants\"),A=M.MINDRAG,T=M.MINZOOM,S=!0;function E(t,e,r,n){var i=s.ensureSingle(t.draglayer,e,r,function(e){e.classed(\"drag\",!0).style({fill:\"transparent\",\"stroke-width\":0}).attr(\"data-subplot\",t.id)});return i.call(h,n),i.node()}function C(t,e,r,i,a,o,s){var l=E(t,\"rect\",e,r);return n.select(l).call(u.setRect,i,a,o,s),l}function L(t,e){for(var r=0;r<t.length;r++)if(!t[r].fixedrange)return e;return\"\"}function z(t,e,r,n,i){var a,o,s,l;for(a=0;a<t.length;a++)(o=t[a]).fixedrange||(s=o._rl[0],l=o._rl[1]-s,o.range=[o.l2r(s+l*e),o.l2r(s+l*r)],n[o._name+\".range[0]\"]=o.range[0],n[o._name+\".range[1]\"]=o.range[1]);if(i&&i.length){var c=(e+(1-r))/2;z(i,c,1-c,n)}}function O(t,e){for(var r=0;r<t.length;r++){var n=t[r];n.fixedrange||(n.range=[n.l2r(n._rl[0]-e/n._m),n.l2r(n._rl[1]-e/n._m)])}}function I(t){return 1-(t>=0?Math.min(t,.9):1/(1/Math.max(t,-.3)+3.222))}function P(t,e,r,n,i){return t.append(\"path\").attr(\"class\",\"zoombox\").style({fill:e>.2?\"rgba(0,0,0,0)\":\"rgba(255,255,255,0)\",\"stroke-width\":0}).attr(\"transform\",\"translate(\"+r+\", \"+n+\")\").attr(\"d\",i+\"Z\")}function D(t,e,r){return t.append(\"path\").attr(\"class\",\"zoombox-corners\").style({fill:c.background,stroke:c.defaultLine,\"stroke-width\":1,opacity:0}).attr(\"transform\",\"translate(\"+e+\", \"+r+\")\").attr(\"d\",\"M0,0Z\")}function R(t,e,r,n,i,a){t.attr(\"d\",n+\"M\"+r.l+\",\"+r.t+\"v\"+r.h+\"h\"+r.w+\"v-\"+r.h+\"h-\"+r.w+\"Z\"),B(t,e,i,a)}function B(t,e,r,n){r||(t.transition().style(\"fill\",n>.2?\"rgba(0,0,0,0.4)\":\"rgba(255,255,255,0.3)\").duration(200),e.transition().style(\"opacity\",1).duration(200))}function F(t){n.select(t).selectAll(\".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners\").remove()}function N(t){S&&t.data&&t._context.showTips&&(s.notifier(s._(t,\"Double-click to zoom back out\"),\"long\"),S=!1)}function j(t){return\"lasso\"===t||\"select\"===t}function V(t){var e=Math.floor(Math.min(t.b-t.t,t.r-t.l,T)/2);return\"M\"+(t.l-3.5)+\",\"+(t.t-.5+e)+\"h3v\"+-e+\"h\"+e+\"v-3h-\"+(e+3)+\"ZM\"+(t.r+3.5)+\",\"+(t.t-.5+e)+\"h-3v\"+-e+\"h\"+-e+\"v-3h\"+(e+3)+\"ZM\"+(t.r+3.5)+\",\"+(t.b+.5-e)+\"h-3v\"+e+\"h\"+-e+\"v3h\"+(e+3)+\"ZM\"+(t.l-3.5)+\",\"+(t.b+.5-e)+\"h3v\"+e+\"h\"+e+\"v3h-\"+(e+3)+\"Z\"}function U(t,e){if(a){var r=void 0!==t.onwheel?\"wheel\":\"mousewheel\";t._onwheel&&t.removeEventListener(r,t._onwheel),t._onwheel=e,t.addEventListener(r,e,{passive:!1})}else void 0!==t.onwheel?t.onwheel=e:void 0!==t.onmousewheel&&(t.onmousewheel=e)}function q(t){var e=[];for(var r in t)e.push(t[r]);return e}e.exports={makeDragBox:function(t,e,r,a,c,h,S,E){var B,H,G,W,Y,X,Z,$,J,K,Q,tt,et,rt,nt,it,at,ot,st,lt,ct,ut=t._fullLayout._zoomlayer,ft=S+E===\"nsew\",ht=1===(S+E).length;function pt(){if(B=e.xaxis,H=e.yaxis,J=B._length,K=H._length,Z=B._offset,$=H._offset,(G={})[B._id]=B,(W={})[H._id]=H,S&&E)for(var r=e.overlays,n=0;n<r.length;n++){var i=r[n].xaxis;G[i._id]=i;var a=r[n].yaxis;W[a._id]=a}Y=q(G),X=q(W),tt=L(Y,E),et=L(X,S),rt=!et&&!tt,Q=function(t,e,r){for(var n,i,a,o,l=t._fullLayout._axisConstraintGroups,c=!1,u={},f={},h=0;h<l.length;h++){var p=l[h];for(n in e)if(p[n]){for(a in p)(\"x\"===a.charAt(0)?e:r)[a]||(u[a]=1);for(i in r)p[i]&&(c=!0)}for(i in r)if(p[i])for(o in p)(\"x\"===o.charAt(0)?e:r)[o]||(f[o]=1)}c&&(s.extendFlat(u,f),f={});var d={},g=[];for(a in u){var v=x(t,a);g.push(v),d[v._id]=v}var m={},y=[];for(o in f){var b=x(t,o);y.push(b),m[b._id]=b}return{xaHash:d,yaHash:m,xaxes:g,yaxes:y,isSubplotConstrained:c}}(t,G,W),nt=Q.isSubplotConstrained,it=E||nt,at=S||nt;var o=t._fullLayout;ot=o._has(\"scattergl\"),st=o._has(\"splom\"),lt=o._has(\"svg\")}pt();var dt=function(t,e,r){return t?\"nsew\"===t?r?\"\":\"pan\"===e?\"move\":\"crosshair\":t.toLowerCase()+\"-resize\":\"pointer\"}(et+tt,t._fullLayout.dragmode,ft),gt=C(e,S+E+\"drag\",dt,r,a,c,h);if(rt&&!ft)return gt.onmousedown=null,gt.style.pointerEvents=\"none\",gt;var vt,mt,yt,xt,bt,_t,wt,kt,Mt,At,Tt={element:gt,gd:t,plotinfo:e};function St(){Tt.plotinfo.selection=!1,_(ut)}function Et(r,i){var a=t._fullLayout.clickmode;if(F(t),2!==r||ht||function(){if(!t._transitioningWithDuration){var e,r,n,i=t._context.doubleClick,a=(tt?Y:[]).concat(et?X:[]),s={};if(\"reset+autosize\"===i)for(i=\"autosize\",r=0;r<a.length;r++)if((e=a[r])._rangeInitial&&(e.range[0]!==e._rangeInitial[0]||e.range[1]!==e._rangeInitial[1])||!e._rangeInitial&&!e.autorange){i=\"reset\";break}if(\"autosize\"===i)for(r=0;r<a.length;r++)(e=a[r]).fixedrange||(s[e._name+\".autorange\"]=!0);else if(\"reset\"===i)for((tt||nt)&&(a=a.concat(Q.xaxes)),et&&!nt&&(a=a.concat(Q.yaxes)),nt&&(tt?et||(a=a.concat(X)):a=a.concat(Y)),r=0;r<a.length;r++)(e=a[r])._rangeInitial?(n=e._rangeInitial,s[e._name+\".range[0]\"]=n[0],s[e._name+\".range[1]\"]=n[1]):s[e._name+\".autorange\"]=!0;t.emit(\"plotly_doubleclick\",null),o.call(\"relayout\",t,s)}}(),ft)a.indexOf(\"select\")>-1&&w(i,t,Y,X,e.id,Tt),a.indexOf(\"event\")>-1&&f.click(t,i,e.id);else if(1===r&&ht){var s=S?H:B,c=\"s\"===S||\"w\"===E?0:1,u=s._name+\".range[\"+c+\"]\",h=function(t,e){var r,i=t.range[e],a=Math.abs(i-t.range[1-e]);return\"date\"===t.type?i:\"log\"===t.type?(r=Math.ceil(Math.max(0,-Math.log(a)/Math.LN10))+3,n.format(\".\"+r+\"g\")(Math.pow(10,i))):(r=Math.floor(Math.log(Math.abs(i))/Math.LN10)-Math.floor(Math.log(a)/Math.LN10)+4,n.format(\".\"+String(r)+\"g\")(i))}(s,c),p=\"left\",d=\"middle\";if(s.fixedrange)return;S?(d=\"n\"===S?\"top\":\"bottom\",\"right\"===s.side&&(p=\"right\")):\"e\"===E&&(p=\"right\"),t._context.showAxisRangeEntryBoxes&&n.select(gt).call(l.makeEditable,{gd:t,immediate:!0,background:t._fullLayout.paper_bgcolor,text:String(h),fill:s.tickfont?s.tickfont.color:\"#444\",horizontalAlign:p,verticalAlign:d}).on(\"edit\",function(e){var r=s.d2r(e);void 0!==r&&o.call(\"relayout\",t,u,r)})}}function Ct(e,r){if(t._transitioningWithDuration)return!1;var n=Math.max(0,Math.min(J,e+vt)),i=Math.max(0,Math.min(K,r+mt)),a=Math.abs(n-vt),o=Math.abs(i-mt);function s(){wt=\"\",yt.r=yt.l,yt.t=yt.b,Mt.attr(\"d\",\"M0,0Z\")}yt.l=Math.min(vt,n),yt.r=Math.max(vt,n),yt.t=Math.min(mt,i),yt.b=Math.max(mt,i),nt?a>T||o>T?(wt=\"xy\",a/J>o/K?(o=a*K/J,mt>i?yt.t=mt-o:yt.b=mt+o):(a=o*J/K,vt>n?yt.l=vt-a:yt.r=vt+a),Mt.attr(\"d\",V(yt))):s():!et||o<Math.min(Math.max(.6*a,A),T)?a<A||!tt?s():(yt.t=0,yt.b=K,wt=\"x\",Mt.attr(\"d\",function(t,e){return\"M\"+(t.l-.5)+\",\"+(e-T-.5)+\"h-3v\"+(2*T+1)+\"h3ZM\"+(t.r+.5)+\",\"+(e-T-.5)+\"h3v\"+(2*T+1)+\"h-3Z\"}(yt,mt))):!tt||a<Math.min(.6*o,T)?(yt.l=0,yt.r=J,wt=\"y\",Mt.attr(\"d\",function(t,e){return\"M\"+(e-T-.5)+\",\"+(t.t-.5)+\"v-3h\"+(2*T+1)+\"v3ZM\"+(e-T-.5)+\",\"+(t.b+.5)+\"v3h\"+(2*T+1)+\"v-3Z\"}(yt,vt))):(wt=\"xy\",Mt.attr(\"d\",V(yt))),yt.w=yt.r-yt.l,yt.h=yt.b-yt.t,wt&&(At=!0),t._dragged=At,R(kt,Mt,yt,bt,_t,xt),_t=!0}function Lt(){if(ct={},Math.min(yt.h,yt.w)<2*A)return F(t);\"xy\"!==wt&&\"x\"!==wt||z(Y,yt.l/J,yt.r/J,ct,Q.xaxes),\"xy\"!==wt&&\"y\"!==wt||z(X,(K-yt.b)/K,(K-yt.t)/K,ct,Q.yaxes),F(t),Nt(),N(t)}Tt.prepFn=function(e,r,n){var a=Tt.dragmode,o=t._fullLayout.dragmode;o!==a&&(Tt.dragmode=o),pt(),rt||(ft?e.shiftKey?\"pan\"===o?o=\"zoom\":j(o)||(o=\"pan\"):e.ctrlKey&&(o=\"pan\"):o=\"pan\"),Tt.minDrag=\"lasso\"===o?1:void 0,j(o)?(Tt.xaxes=Y,Tt.yaxes=X,b(e,r,n,Tt,o)):(Tt.clickFn=Et,j(a)&&St(),rt||(\"zoom\"===o?(Tt.moveFn=Ct,Tt.doneFn=Lt,Tt.minDrag=1,function(e,r,n){var a=gt.getBoundingClientRect();vt=r-a.left,mt=n-a.top,yt={l:vt,r:vt,w:0,t:mt,b:mt,h:0},xt=t._hmpixcount?t._hmlumcount/t._hmpixcount:i(t._fullLayout.plot_bgcolor).getLuminance(),_t=!1,wt=\"xy\",At=!1,kt=P(ut,xt,Z,$,bt=\"M0,0H\"+J+\"V\"+K+\"H0V0\"),Mt=D(ut,Z,$)}(0,r,n)):\"pan\"===o&&(Tt.moveFn=Bt,Tt.doneFn=Nt)))},p.init(Tt);var zt,Ot,It=[0,0,J,K],Pt=null,Dt=M.REDRAWDELAY,Rt=e.mainplot?t._fullLayout._plots[e.mainplot]:e;function Bt(e,r){if(!t._transitioningWithDuration){if(\"ew\"===tt||\"ns\"===et)return tt&&O(Y,e),et&&O(X,r),jt([tt?-e:0,et?-r:0,J,K]),void Ft(et,tt);if(nt&&tt&&et){var n=\"w\"===tt==(\"n\"===et)?1:-1,i=(e/J+n*r/K)/2;e=i*J,r=n*i*K}\"w\"===tt?e=l(Y,0,e):\"e\"===tt?e=l(Y,1,-e):tt||(e=0),\"n\"===et?r=l(X,1,r):\"s\"===et?r=l(X,0,-r):et||(r=0);var a=\"w\"===tt?e:0,o=\"n\"===et?r:0;if(nt){var s;if(!tt&&1===et.length){for(s=0;s<Y.length;s++)Y[s].range=Y[s]._r.slice(),k(Y[s],1-r/K);a=(e=r*J/K)/2}if(!et&&1===tt.length){for(s=0;s<X.length;s++)X[s].range=X[s]._r.slice(),k(X[s],1-e/J);o=(r=e*K/J)/2}}jt([a,o,J-e,K-r]),Ft(et,tt)}function l(t,e,r){for(var n,i,a=1-e,o=0;o<t.length;o++){var s=t[o];if(!s.fixedrange){n=s,i=s._rl[a]+(s._rl[e]-s._rl[a])/I(r/s._length);var l=s.l2r(i);!1!==l&&void 0!==l&&(s.range[e]=l)}}return n._length*(n._rl[e]-i)/(n._rl[e]-n._rl[a])}}function Ft(e,r){var n,i=[];function a(t){for(n=0;n<t.length;n++)t[n].fixedrange||i.push(t[n]._id)}for(it&&(a(Y),a(Q.xaxes)),at&&(a(X),a(Q.yaxes)),ct={},n=0;n<i.length;n++){var s=i[n];y(t,s,!0);var l=x(t,s);ct[l._name+\".range[0]\"]=l.range[0],ct[l._name+\".range[1]\"]=l.range[1]}function c(a,o,s){for(n=0;n<a.length;n++){var l=a[n];if((r&&-1!==i.indexOf(l.xref)||e&&-1!==i.indexOf(l.yref))&&(o(t,n),s))return}}c(t._fullLayout.annotations||[],o.getComponentMethod(\"annotations\",\"drawOne\")),c(t._fullLayout.shapes||[],o.getComponentMethod(\"shapes\",\"drawOne\")),c(t._fullLayout.images||[],o.getComponentMethod(\"images\",\"draw\"),!0)}function Nt(){jt([0,0,J,K]),s.syncOrAsync([m.previousPromises,function(){o.call(\"relayout\",t,ct)}],t)}function jt(e){var r,n,i,a,l=t._fullLayout,c=l._plots,f=l._subplots.cartesian;if(st&&o.subplotsRegistry.splom.drag(t),ot)for(r=0;r<f.length;r++)if(i=(n=c[f[r]]).xaxis,a=n.yaxis,n._scene){var h=s.simpleMap(i.range,i.r2l),p=s.simpleMap(a.range,a.r2l);n._scene.update({range:[h[0],p[0],h[1],p[1]]})}if((st||ot)&&(g(t),v(t)),lt){var d=e[2]/B._length,m=e[3]/H._length;for(r=0;r<f.length;r++){i=(n=c[f[r]]).xaxis,a=n.yaxis;var y,x,b,_,w=it&&!i.fixedrange&&G[i._id],k=at&&!a.fixedrange&&W[a._id];if(w?(y=d,b=E?e[0]:qt(i,y)):b=Ut(i,y=Vt(i,d,m)),k?(x=m,_=S?e[1]:qt(a,x)):_=Ut(a,x=Vt(a,d,m)),y||x){y||(y=1),x||(x=1);var M=i._offset-b/y,A=a._offset-_/x;n.clipRect.call(u.setTranslate,b,_).call(u.setScale,y,x),n.plot.call(u.setTranslate,M,A).call(u.setScale,1/y,1/x),y===zt&&x===Ot||(u.setPointGroupScale(n.zoomScalePts,y,x),u.setTextPointsScale(n.zoomScaleTxt,y,x)),u.hideOutsideRangePoints(n.clipOnAxisFalseTraces,n),zt=y,Ot=x}}}}function Vt(t,e,r){return t.fixedrange?0:it&&Q.xaHash[t._id]?e:at&&(nt?Q.xaHash:Q.yaHash)[t._id]?r:0}function Ut(t,e){return e?(t.range=t._r.slice(),k(t,e),qt(t,e)):0}function qt(t,e){return t._length*(1-e)*d[t.constraintoward||\"middle\"]}return S.length*E.length!=1&&U(gt,function(e){if(t._context.scrollZoom||t._fullLayout._enablescrollzoom){if(St(),t._transitioningWithDuration)return e.preventDefault(),void e.stopPropagation();var r=t.querySelector(\".plotly\");if(pt(),!(r.scrollHeight-r.clientHeight>10||r.scrollWidth-r.clientWidth>10)){clearTimeout(Pt);var n=-e.deltaY;if(isFinite(n)||(n=e.wheelDelta/10),isFinite(n)){var i,a=Math.exp(-Math.min(Math.max(n,-20),20)/200),o=Rt.draglayer.select(\".nsewdrag\").node().getBoundingClientRect(),l=(e.clientX-o.left)/o.width,c=(o.bottom-e.clientY)/o.height;if(it){for(E||(l=.5),i=0;i<Y.length;i++)u(Y[i],l,a);It[2]*=a,It[0]+=It[2]*l*(1/a-1)}if(at){for(S||(c=.5),i=0;i<X.length;i++)u(X[i],c,a);It[3]*=a,It[1]+=It[3]*(1-c)*(1/a-1)}jt(It),Ft(S,E),Pt=setTimeout(function(){It=[0,0,J,K],Nt()},Dt),e.preventDefault()}else s.log(\"Did not find wheel motion attributes: \",e)}}function u(t,e,r){if(!t.fixedrange){var n=s.simpleMap(t.range,t.r2l),i=n[0]+(n[1]-n[0])*e;t.range=n.map(function(e){return t.l2r(i+(e-i)*r)})}}}),gt},makeDragger:E,makeRectDragger:C,makeZoombox:P,makeCorners:D,updateZoombox:R,xyCorners:V,transitionZoombox:B,removeZoombox:F,showDoubleClickNotifier:N,attachWheelEventHandler:U}},{\"../../components/color\":570,\"../../components/dragelement\":592,\"../../components/drawing\":595,\"../../components/fx\":612,\"../../constants/alignment\":668,\"../../lib\":696,\"../../lib/clear_gl_canvases\":680,\"../../lib/setcursor\":716,\"../../lib/svg_text_utils\":720,\"../../plot_api/subroutines\":735,\"../../registry\":827,\"../plots\":808,\"./axes\":744,\"./axis_ids\":747,\"./constants\":750,\"./scale_zoom\":761,\"./select\":762,d3:148,\"has-passive-events\":394,tinycolor2:514}],754:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../../components/fx\"),a=t(\"../../components/dragelement\"),o=t(\"../../lib/setcursor\"),s=t(\"./dragbox\").makeDragBox,l=t(\"./constants\").DRAGGERSIZE;r.initInteractions=function(t){var e=t._fullLayout;if(t._context.staticPlot)n.select(t).selectAll(\".drag\").remove();else if(e._has(\"cartesian\")||e._has(\"splom\")){Object.keys(e._plots||{}).sort(function(t,r){if((e._plots[t].mainplot&&!0)===(e._plots[r].mainplot&&!0)){var n=t.split(\"y\"),i=r.split(\"y\");return n[0]===i[0]?Number(n[1]||1)-Number(i[1]||1):Number(n[0]||1)-Number(i[0]||1)}return e._plots[t].mainplot?1:-1}).forEach(function(r){var n=e._plots[r],o=n.xaxis,c=n.yaxis;if(!n.mainplot){var u=s(t,n,o._offset,c._offset,o._length,c._length,\"ns\",\"ew\");u.onmousemove=function(e){t._fullLayout._rehover=function(){t._fullLayout._hoversubplot===r&&i.hover(t,e,r)},i.hover(t,e,r),t._fullLayout._lasthover=u,t._fullLayout._hoversubplot=r},u.onmouseout=function(e){t._dragging||(t._fullLayout._hoversubplot=null,a.unhover(t,e))},t._context.showAxisDragHandles&&(s(t,n,o._offset-l,c._offset-l,l,l,\"n\",\"w\"),s(t,n,o._offset+o._length,c._offset-l,l,l,\"n\",\"e\"),s(t,n,o._offset-l,c._offset+c._length,l,l,\"s\",\"w\"),s(t,n,o._offset+o._length,c._offset+c._length,l,l,\"s\",\"e\"))}if(t._context.showAxisDragHandles){if(r===o._mainSubplot){var f=o._mainLinePosition;\"top\"===o.side&&(f-=l),s(t,n,o._offset+.1*o._length,f,.8*o._length,l,\"\",\"ew\"),s(t,n,o._offset,f,.1*o._length,l,\"\",\"w\"),s(t,n,o._offset+.9*o._length,f,.1*o._length,l,\"\",\"e\")}if(r===c._mainSubplot){var h=c._mainLinePosition;\"right\"!==c.side&&(h-=l),s(t,n,h,c._offset+.1*c._length,l,.8*c._length,\"ns\",\"\"),s(t,n,h,c._offset+.9*c._length,l,.1*c._length,\"s\",\"\"),s(t,n,h,c._offset,l,.1*c._length,\"n\",\"\")}}});var o=e._hoverlayer.node();o.onmousemove=function(r){r.target=t._fullLayout._lasthover,i.hover(t,r,e._hoversubplot)},o.onclick=function(e){e.target=t._fullLayout._lasthover,i.click(t,e)},o.onmousedown=function(e){t._fullLayout._lasthover.onmousedown(e)},r.updateFx(t)}},r.updateFx=function(t){var e=t._fullLayout,r=\"pan\"===e.dragmode?\"move\":\"crosshair\";o(e._draggers,r)}},{\"../../components/dragelement\":592,\"../../components/fx\":612,\"../../lib/setcursor\":716,\"./constants\":750,\"./dragbox\":753,d3:148}],755:[function(t,e,r){\"use strict\";var n=t(\"../../registry\"),i=t(\"../../lib\");e.exports=function(t){return function(e,r){var a=e[t];if(Array.isArray(a))for(var o=n.subplotsRegistry.cartesian,s=o.idRegex,l=r._subplots,c=l.xaxis,u=l.yaxis,f=l.cartesian,h=r._has(\"cartesian\")||r._has(\"gl2d\"),p=0;p<a.length;p++){var d=a[p];if(i.isPlainObject(d)){var g=d.xref,v=d.yref,m=s.x.test(g),y=s.y.test(v);if(m||y){h||i.pushUnique(r._basePlotModules,o);var x=!1;m&&-1===c.indexOf(g)&&(c.push(g),x=!0),y&&-1===u.indexOf(v)&&(u.push(v),x=!0),x&&m&&y&&f.push(g+v)}}}}}},{\"../../lib\":696,\"../../registry\":827}],756:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../../registry\"),a=t(\"../../lib\"),o=t(\"../plots\"),s=t(\"../../components/drawing\"),l=t(\"../get_data\").getModuleCalcData,c=t(\"./axis_ids\"),u=t(\"./constants\"),f=t(\"../../constants/xmlns_namespaces\"),h=a.ensureSingle;function p(t,e,r){return a.ensureSingle(t,e,r,function(t){t.datum(r)})}function d(t,e,r,a,o){for(var c,f,h,p=u.traceLayerClasses,d=t._fullLayout,g=d._modules,v=[],m=[],y=0;y<g.length;y++){var x=(c=g[y]).name,b=i.modules[x].categories;if(b.svg){var _=c.layerName||x+\"layer\",w=c.plot;h=(f=l(r,w))[0],r=f[1],h.length&&v.push({i:p.indexOf(_),className:_,plotMethod:w,cdModule:h}),b.zoomScale&&m.push(\".\"+_)}}v.sort(function(t,e){return t.i-e.i});var k=e.plot.selectAll(\"g.mlayer\").data(v,function(t){return t.className});if(k.enter().append(\"g\").attr(\"class\",function(t){return t.className}).classed(\"mlayer\",!0),k.exit().remove(),k.order(),k.each(function(r){var i=n.select(this),l=r.className;r.plotMethod(t,e,r.cdModule,i,a,o),\"scatterlayer\"!==l&&\"barlayer\"!==l&&s.setClipUrl(i,e.layerClipId)}),d._has(\"scattergl\")&&(c=i.getModule(\"scattergl\"),h=l(r,c)[0],c.plot(t,e,h)),!t._context.staticPlot&&(e._hasClipOnAxisFalse&&(e.clipOnAxisFalseTraces=e.plot.selectAll(\".scatterlayer, .barlayer\").selectAll(\".trace\")),m.length)){var M=e.plot.selectAll(m.join(\",\")).selectAll(\".trace\");e.zoomScalePts=M.selectAll(\"path.point\"),e.zoomScaleTxt=M.selectAll(\".textpoint\")}}function g(t,e){var r=e.plotgroup,n=e.id,i=u.layerValue2layerClass[e.xaxis.layer],a=u.layerValue2layerClass[e.yaxis.layer],o=t._fullLayout._hasOnlyLargeSploms;if(e.mainplot){var s=e.mainplotinfo,l=s.plotgroup,f=n+\"-x\",d=n+\"-y\";e.gridlayer=s.gridlayer,e.zerolinelayer=s.zerolinelayer,h(s.overlinesBelow,\"path\",f),h(s.overlinesBelow,\"path\",d),h(s.overaxesBelow,\"g\",f),h(s.overaxesBelow,\"g\",d),e.plot=h(s.overplot,\"g\",n),h(s.overlinesAbove,\"path\",f),h(s.overlinesAbove,\"path\",d),h(s.overaxesAbove,\"g\",f),h(s.overaxesAbove,\"g\",d),e.xlines=l.select(\".overlines-\"+i).select(\".\"+f),e.ylines=l.select(\".overlines-\"+a).select(\".\"+d),e.xaxislayer=l.select(\".overaxes-\"+i).select(\".\"+f),e.yaxislayer=l.select(\".overaxes-\"+a).select(\".\"+d)}else if(o)e.xlines=h(r,\"path\",\"xlines-above\"),e.ylines=h(r,\"path\",\"ylines-above\"),e.xaxislayer=h(r,\"g\",\"xaxislayer-above\"),e.yaxislayer=h(r,\"g\",\"yaxislayer-above\");else{var g=h(r,\"g\",\"layer-subplot\");e.shapelayer=h(g,\"g\",\"shapelayer\"),e.imagelayer=h(g,\"g\",\"imagelayer\"),e.gridlayer=h(r,\"g\",\"gridlayer\"),e.zerolinelayer=h(r,\"g\",\"zerolinelayer\"),h(r,\"path\",\"xlines-below\"),h(r,\"path\",\"ylines-below\"),e.overlinesBelow=h(r,\"g\",\"overlines-below\"),h(r,\"g\",\"xaxislayer-below\"),h(r,\"g\",\"yaxislayer-below\"),e.overaxesBelow=h(r,\"g\",\"overaxes-below\"),e.plot=h(r,\"g\",\"plot\"),e.overplot=h(r,\"g\",\"overplot\"),e.xlines=h(r,\"path\",\"xlines-above\"),e.ylines=h(r,\"path\",\"ylines-above\"),e.overlinesAbove=h(r,\"g\",\"overlines-above\"),h(r,\"g\",\"xaxislayer-above\"),h(r,\"g\",\"yaxislayer-above\"),e.overaxesAbove=h(r,\"g\",\"overaxes-above\"),e.xlines=r.select(\".xlines-\"+i),e.ylines=r.select(\".ylines-\"+a),e.xaxislayer=r.select(\".xaxislayer-\"+i),e.yaxislayer=r.select(\".yaxislayer-\"+a)}o||(p(e.gridlayer,\"g\",e.xaxis._id),p(e.gridlayer,\"g\",e.yaxis._id),e.gridlayer.selectAll(\"g\").map(function(t){return t[0]}).sort(c.idSort)),e.xlines.style(\"fill\",\"none\").classed(\"crisp\",!0),e.ylines.style(\"fill\",\"none\").classed(\"crisp\",!0)}function v(t,e){if(t){var r={};for(var i in t.each(function(t){var i=t[0];n.select(this).remove(),m(i,e),r[i]=!0}),e._plots)for(var a=e._plots[i].overlays||[],o=0;o<a.length;o++){var s=a[o];r[s.id]&&s.plot.selectAll(\".trace\").remove()}}}function m(t,e){e._draggers.selectAll(\"g.\"+t).remove(),e._defs.select(\"#clip\"+e._uid+t+\"plot\").remove()}r.name=\"cartesian\",r.attr=[\"xaxis\",\"yaxis\"],r.idRoot=[\"x\",\"y\"],r.idRegex=u.idRegex,r.attrRegex=u.attrRegex,r.attributes=t(\"./attributes\"),r.layoutAttributes=t(\"./layout_attributes\"),r.supplyLayoutDefaults=t(\"./layout_defaults\"),r.transitionAxes=t(\"./transition_axes\"),r.finalizeSubplots=function(t,e){var r,n,i,o=e._subplots,s=o.xaxis,l=o.yaxis,f=o.cartesian,h=f.concat(o.gl2d||[]),p={},d={};for(r=0;r<h.length;r++){var g=h[r].split(\"y\");p[g[0]]=1,d[\"y\"+g[1]]=1}for(r=0;r<s.length;r++)p[n=s[r]]||(i=(t[c.id2name(n)]||{}).anchor,u.idRegex.y.test(i)||(i=\"y\"),f.push(n+i),h.push(n+i),d[i]||(d[i]=1,a.pushUnique(l,i)));for(r=0;r<l.length;r++)d[i=l[r]]||(n=(t[c.id2name(i)]||{}).anchor,u.idRegex.x.test(n)||(n=\"x\"),f.push(n+i),h.push(n+i),p[n]||(p[n]=1,a.pushUnique(s,n)));if(!h.length){for(var v in n=\"\",i=\"\",t){if(u.attrRegex.test(v))\"x\"===v.charAt(0)?(!n||+v.substr(5)<+n.substr(5))&&(n=v):(!i||+v.substr(5)<+i.substr(5))&&(i=v)}n=n?c.name2id(n):\"x\",i=i?c.name2id(i):\"y\",s.push(n),l.push(i),f.push(n+i)}},r.plot=function(t,e,r,n){var i,a=t._fullLayout,o=a._subplots.cartesian,s=t.calcdata;if(null!==e){if(!Array.isArray(e))for(e=[],i=0;i<s.length;i++)e.push(i);for(i=0;i<o.length;i++){for(var l,c=o[i],u=a._plots[c],f=[],h=0;h<s.length;h++){var p=s[h],g=p[0].trace;g.xaxis+g.yaxis===c&&((-1!==e.indexOf(g.index)||g.carpet)&&(l&&l[0].trace.xaxis+l[0].trace.yaxis===c&&-1!==[\"tonextx\",\"tonexty\",\"tonext\"].indexOf(g.fill)&&-1===f.indexOf(l)&&f.push(l),f.push(p)),l=p)}d(t,u,f,r,n)}}},r.clean=function(t,e,r,n){var i,a,o,s=n._plots||{},l=e._plots||{},u=n._subplots||{};if(n._hasOnlyLargeSploms&&!e._hasOnlyLargeSploms)for(o in s)(i=s[o]).plotgroup&&i.plotgroup.remove();var f=n._has&&n._has(\"gl\"),h=e._has&&e._has(\"gl\");if(f&&!h)for(o in s)(i=s[o])._scene&&i._scene.destroy();if(u.xaxis&&u.yaxis){var p=c.listIds({_fullLayout:n});for(a=0;a<p.length;a++){var d=p[a];e[c.id2name(d)]||n._infolayer.selectAll(\".g-\"+d+\"title\").remove()}}var g=n._has&&n._has(\"cartesian\"),y=e._has&&e._has(\"cartesian\");if(g&&!y)v(n._cartesianlayer.selectAll(\".subplot\"),n),n._defs.selectAll(\".axesclip\").remove(),delete n._axisConstraintGroups;else if(u.cartesian)for(a=0;a<u.cartesian.length;a++){var x=u.cartesian[a];if(!l[x]){var b=\".\"+x+\",.\"+x+\"-x,.\"+x+\"-y\";n._cartesianlayer.selectAll(b).remove(),m(x,n)}}},r.drawFramework=function(t){var e=t._fullLayout,r=function(t){var e,r,n,i,a,o,s=t._fullLayout,l=s._subplots.cartesian,c=l.length,u=[],f=[];for(e=0;e<c;e++){n=l[e],i=s._plots[n],a=i.xaxis,o=i.yaxis;var h=a._mainAxis,p=o._mainAxis,d=h._id+p._id,g=s._plots[d];i.overlays=[],d!==n&&g?(i.mainplot=d,i.mainplotinfo=g,f.push(n)):(i.mainplot=void 0,i.mainPlotinfo=void 0,u.push(n))}for(e=0;e<f.length;e++)n=f[e],(i=s._plots[n]).mainplotinfo.overlays.push(i);var v=u.concat(f),m=new Array(c);for(e=0;e<c;e++){n=v[e],i=s._plots[n],a=i.xaxis,o=i.yaxis;var y=[n,a.layer,o.layer,a.overlaying||\"\",o.overlaying||\"\"];for(r=0;r<i.overlays.length;r++)y.push(i.overlays[r].id);m[e]=y}return m}(t),i=e._cartesianlayer.selectAll(\".subplot\").data(r,String);i.enter().append(\"g\").attr(\"class\",function(t){return\"subplot \"+t[0]}),i.order(),i.exit().call(v,e),i.each(function(r){var i=r[0],a=e._plots[i];a.plotgroup=n.select(this),g(t,a),a.draglayer=h(e._draggers,\"g\",i)})},r.rangePlot=function(t,e,r){g(t,e),d(t,e,r),o.style(t)},r.toSVG=function(t){var e=t._fullLayout._glimages,r=n.select(t).selectAll(\".svg-container\");r.filter(function(t,e){return e===r.size()-1}).selectAll(\".gl-canvas-context, .gl-canvas-focus\").each(function(){var t=this.toDataURL(\"image/png\");e.append(\"svg:image\").attr({xmlns:f.svg,\"xlink:href\":t,preserveAspectRatio:\"none\",x:0,y:0,width:this.width,height:this.height})})},r.updateFx=t(\"./graph_interact\").updateFx},{\"../../components/drawing\":595,\"../../constants/xmlns_namespaces\":674,\"../../lib\":696,\"../../registry\":827,\"../get_data\":781,\"../plots\":808,\"./attributes\":742,\"./axis_ids\":747,\"./constants\":750,\"./graph_interact\":754,\"./layout_attributes\":757,\"./layout_defaults\":758,\"./transition_axes\":767,d3:148}],757:[function(t,e,r){\"use strict\";var n=t(\"../font_attributes\"),i=t(\"../../components/color/attributes\"),a=t(\"../../components/drawing/attributes\").dash,o=t(\"../../lib/extend\").extendFlat,s=t(\"../../plot_api/plot_template\").templatedArray,l=t(\"./constants\");e.exports={visible:{valType:\"boolean\",editType:\"plot\"},color:{valType:\"color\",dflt:i.defaultLine,editType:\"ticks\"},title:{valType:\"string\",editType:\"ticks\"},titlefont:n({editType:\"ticks\"}),type:{valType:\"enumerated\",values:[\"-\",\"linear\",\"log\",\"date\",\"category\"],dflt:\"-\",editType:\"calc\",_noTemplating:!0},autorange:{valType:\"enumerated\",values:[!0,!1,\"reversed\"],dflt:!0,editType:\"axrange\",impliedEdits:{\"range[0]\":void 0,\"range[1]\":void 0}},rangemode:{valType:\"enumerated\",values:[\"normal\",\"tozero\",\"nonnegative\"],dflt:\"normal\",editType:\"plot\"},range:{valType:\"info_array\",items:[{valType:\"any\",editType:\"axrange\",impliedEdits:{\"^autorange\":!1}},{valType:\"any\",editType:\"axrange\",impliedEdits:{\"^autorange\":!1}}],editType:\"axrange\",impliedEdits:{autorange:!1}},fixedrange:{valType:\"boolean\",dflt:!1,editType:\"calc\"},scaleanchor:{valType:\"enumerated\",values:[l.idRegex.x.toString(),l.idRegex.y.toString()],editType:\"plot\"},scaleratio:{valType:\"number\",min:0,dflt:1,editType:\"plot\"},constrain:{valType:\"enumerated\",values:[\"range\",\"domain\"],dflt:\"range\",editType:\"plot\"},constraintoward:{valType:\"enumerated\",values:[\"left\",\"center\",\"right\",\"top\",\"middle\",\"bottom\"],editType:\"plot\"},tickmode:{valType:\"enumerated\",values:[\"auto\",\"linear\",\"array\"],editType:\"ticks\",impliedEdits:{tick0:void 0,dtick:void 0}},nticks:{valType:\"integer\",min:0,dflt:0,editType:\"ticks\"},tick0:{valType:\"any\",editType:\"ticks\",impliedEdits:{tickmode:\"linear\"}},dtick:{valType:\"any\",editType:\"ticks\",impliedEdits:{tickmode:\"linear\"}},tickvals:{valType:\"data_array\",editType:\"ticks\"},ticktext:{valType:\"data_array\",editType:\"ticks\"},ticks:{valType:\"enumerated\",values:[\"outside\",\"inside\",\"\"],editType:\"ticks\"},mirror:{valType:\"enumerated\",values:[!0,\"ticks\",!1,\"all\",\"allticks\"],dflt:!1,editType:\"ticks+layoutstyle\"},ticklen:{valType:\"number\",min:0,dflt:5,editType:\"ticks\"},tickwidth:{valType:\"number\",min:0,dflt:1,editType:\"ticks\"},tickcolor:{valType:\"color\",dflt:i.defaultLine,editType:\"ticks\"},showticklabels:{valType:\"boolean\",dflt:!0,editType:\"ticks\"},automargin:{valType:\"boolean\",dflt:!1,editType:\"ticks\"},showspikes:{valType:\"boolean\",dflt:!1,editType:\"modebar\"},spikecolor:{valType:\"color\",dflt:null,editType:\"none\"},spikethickness:{valType:\"number\",dflt:3,editType:\"none\"},spikedash:o({},a,{dflt:\"dash\",editType:\"none\"}),spikemode:{valType:\"flaglist\",flags:[\"toaxis\",\"across\",\"marker\"],dflt:\"toaxis\",editType:\"none\"},spikesnap:{valType:\"enumerated\",values:[\"data\",\"cursor\"],dflt:\"data\",editType:\"none\"},tickfont:n({editType:\"ticks\"}),tickangle:{valType:\"angle\",dflt:\"auto\",editType:\"ticks\"},tickprefix:{valType:\"string\",dflt:\"\",editType:\"ticks\"},showtickprefix:{valType:\"enumerated\",values:[\"all\",\"first\",\"last\",\"none\"],dflt:\"all\",editType:\"ticks\"},ticksuffix:{valType:\"string\",dflt:\"\",editType:\"ticks\"},showticksuffix:{valType:\"enumerated\",values:[\"all\",\"first\",\"last\",\"none\"],dflt:\"all\",editType:\"ticks\"},showexponent:{valType:\"enumerated\",values:[\"all\",\"first\",\"last\",\"none\"],dflt:\"all\",editType:\"ticks\"},exponentformat:{valType:\"enumerated\",values:[\"none\",\"e\",\"E\",\"power\",\"SI\",\"B\"],dflt:\"B\",editType:\"ticks\"},separatethousands:{valType:\"boolean\",dflt:!1,editType:\"ticks\"},tickformat:{valType:\"string\",dflt:\"\",editType:\"ticks\"},tickformatstops:s(\"tickformatstop\",{enabled:{valType:\"boolean\",dflt:!0,editType:\"ticks\"},dtickrange:{valType:\"info_array\",items:[{valType:\"any\",editType:\"ticks\"},{valType:\"any\",editType:\"ticks\"}],editType:\"ticks\"},value:{valType:\"string\",dflt:\"\",editType:\"ticks\"},editType:\"ticks\"}),hoverformat:{valType:\"string\",dflt:\"\",editType:\"none\"},showline:{valType:\"boolean\",dflt:!1,editType:\"ticks+layoutstyle\"},linecolor:{valType:\"color\",dflt:i.defaultLine,editType:\"layoutstyle\"},linewidth:{valType:\"number\",min:0,dflt:1,editType:\"ticks+layoutstyle\"},showgrid:{valType:\"boolean\",editType:\"ticks\"},gridcolor:{valType:\"color\",dflt:i.lightLine,editType:\"ticks\"},gridwidth:{valType:\"number\",min:0,dflt:1,editType:\"ticks\"},zeroline:{valType:\"boolean\",editType:\"ticks\"},zerolinecolor:{valType:\"color\",dflt:i.defaultLine,editType:\"ticks\"},zerolinewidth:{valType:\"number\",dflt:1,editType:\"ticks\"},anchor:{valType:\"enumerated\",values:[\"free\",l.idRegex.x.toString(),l.idRegex.y.toString()],editType:\"plot\"},side:{valType:\"enumerated\",values:[\"top\",\"bottom\",\"left\",\"right\"],editType:\"plot\"},overlaying:{valType:\"enumerated\",values:[\"free\",l.idRegex.x.toString(),l.idRegex.y.toString()],editType:\"plot\"},layer:{valType:\"enumerated\",values:[\"above traces\",\"below traces\"],dflt:\"above traces\",editType:\"plot\"},domain:{valType:\"info_array\",items:[{valType:\"number\",min:0,max:1,editType:\"plot\"},{valType:\"number\",min:0,max:1,editType:\"plot\"}],dflt:[0,1],editType:\"plot\"},position:{valType:\"number\",min:0,max:1,dflt:0,editType:\"plot\"},categoryorder:{valType:\"enumerated\",values:[\"trace\",\"category ascending\",\"category descending\",\"array\"],dflt:\"trace\",editType:\"calc\"},categoryarray:{valType:\"data_array\",editType:\"calc\"},editType:\"calc\",_deprecated:{autotick:{valType:\"boolean\",editType:\"ticks\"}}}},{\"../../components/color/attributes\":569,\"../../components/drawing/attributes\":594,\"../../lib/extend\":685,\"../../plot_api/plot_template\":734,\"../font_attributes\":771,\"./constants\":750}],758:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../components/color\"),a=t(\"../../plot_api/plot_template\"),o=t(\"../layout_attributes\"),s=t(\"./layout_attributes\"),l=t(\"./type_defaults\"),c=t(\"./axis_defaults\"),u=t(\"./constraint_defaults\"),f=t(\"./position_defaults\"),h=t(\"./axis_ids\"),p=h.id2name,d=h.name2id,g=t(\"../../registry\"),v=g.traceIs,m=g.getComponentMethod;function y(t,e,r){Array.isArray(t[e])?t[e].push(r):t[e]=[r]}e.exports=function(t,e,r){var h,g,x={},b={},_={},w={},k={};for(h=0;h<r.length;h++){var M=r[h];if(v(M,\"cartesian\")||v(M,\"gl2d\")){var A,T;if(M.xaxis)y(x,A=p(M.xaxis),M);else if(M.xaxes)for(g=0;g<M.xaxes.length;g++)y(x,p(M.xaxes[g]),M);if(M.yaxis)y(x,T=p(M.yaxis),M);else if(M.yaxes)for(g=0;g<M.yaxes.length;g++)y(x,p(M.yaxes[g]),M);if(v(M,\"carpet\")&&(\"carpet\"!==M.type||M._cheater)||A&&(_[A]=1),\"carpet\"===M.type&&M._cheater&&A&&(b[A]=1),v(M,\"2dMap\")&&(w[A]=1,w[T]=1),v(M,\"oriented\"))k[\"h\"===M.orientation?T:A]=1}}var S=e._subplots,E=S.xaxis,C=S.yaxis,L=n.simpleMap(E,p),z=n.simpleMap(C,p),O=L.concat(z),I=i.background;E.length&&C.length&&(I=n.coerce(t,e,o,\"plot_bgcolor\"));var P,D,R,B,F=i.combine(I,e.paper_bgcolor);function N(t,e){return n.coerce(R,B,s,t,e)}function j(t,e){return n.coerce2(R,B,s,t,e)}function V(t){return\"x\"===t?C:E}var U={x:V(\"x\"),y:V(\"y\")};function q(e,r){for(var n=\"x\"===e?L:z,i=[],a=0;a<n.length;a++){var o=n[a];o===r||(t[o]||{}).overlaying||i.push(d(o))}return i}for(h=0;h<O.length;h++){D=(P=O[h]).charAt(0),n.isPlainObject(t[P])||(t[P]={}),R=t[P],B=a.newContainer(e,P,D+\"axis\");var H=x[P]||[];B._traceIndices=H.map(function(t){return t._expandedIndex}),B._annIndices=[],B._shapeIndices=[],B._name=P;var G=B._id=d(P),W=q(D,P),Y={letter:D,font:e.font,outerTicks:w[P],showGrid:!k[P],data:H,bgColor:F,calendar:e.calendar,automargin:!0,cheateronly:\"x\"===D&&b[P]&&!_[P],splomStash:((e._splomAxes||{})[D]||{})[G]};l(R,B,N,Y),c(R,B,N,Y,e);var X=j(\"spikecolor\"),Z=j(\"spikethickness\"),$=j(\"spikedash\"),J=j(\"spikemode\"),K=j(\"spikesnap\");N(\"showspikes\",!!(X||Z||$||J||K))||(delete B.spikecolor,delete B.spikethickness,delete B.spikedash,delete B.spikemode,delete B.spikesnap);var Q={letter:D,counterAxes:U[D],overlayableAxes:W,grid:e.grid};f(R,B,N,Q),B._input=R}var tt=m(\"rangeslider\",\"handleDefaults\"),et=m(\"rangeselector\",\"handleDefaults\");for(h=0;h<L.length;h++)P=L[h],R=t[P],B=e[P],tt(t,e,P),\"date\"===B.type&&et(R,B,e,z,B.calendar),N(\"fixedrange\");for(h=0;h<z.length;h++){P=z[h],R=t[P],B=e[P];var rt=e[p(B.anchor)];N(\"fixedrange\",rt&&rt.rangeslider&&rt.rangeslider.visible)}e._axisConstraintGroups=[];var nt=U.x.concat(U.y);for(h=0;h<O.length;h++)D=(P=O[h]).charAt(0),R=t[P],B=e[P],u(R,B,N,nt,e)}},{\"../../components/color\":570,\"../../lib\":696,\"../../plot_api/plot_template\":734,\"../../registry\":827,\"../layout_attributes\":799,\"./axis_defaults\":746,\"./axis_ids\":747,\"./constraint_defaults\":751,\"./layout_attributes\":757,\"./position_defaults\":760,\"./type_defaults\":768}],759:[function(t,e,r){\"use strict\";var n=t(\"tinycolor2\").mix,i=t(\"../../components/color/attributes\").lightFraction,a=t(\"../../lib\");e.exports=function(t,e,r,o){var s=(o=o||{}).dfltColor;function l(r,n){return a.coerce2(t,e,o.attributes,r,n)}var c=l(\"linecolor\",s),u=l(\"linewidth\");r(\"showline\",o.showLine||!!c||!!u)||(delete e.linecolor,delete e.linewidth);var f=l(\"gridcolor\",n(s,o.bgColor,o.blend||i).toRgbString()),h=l(\"gridwidth\");if(r(\"showgrid\",o.showGrid||!!f||!!h)||(delete e.gridcolor,delete e.gridwidth),!o.noZeroLine){var p=l(\"zerolinecolor\",s),d=l(\"zerolinewidth\");r(\"zeroline\",o.showGrid||!!p||!!d)||(delete e.zerolinecolor,delete e.zerolinewidth)}}},{\"../../components/color/attributes\":569,\"../../lib\":696,tinycolor2:514}],760:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../../lib\");e.exports=function(t,e,r,a){var o,s,l,c,u=a.counterAxes||[],f=a.overlayableAxes||[],h=a.letter,p=a.grid;p&&(s=p._domains[h][p._axisMap[e._id]],o=p._anchors[e._id],s&&(l=p[h+\"side\"].split(\" \")[0],c=p.domain[h][\"right\"===l||\"top\"===l?1:0])),s=s||[0,1],o=o||(n(t.position)?\"free\":u[0]||\"free\"),l=l||(\"x\"===h?\"bottom\":\"left\"),c=c||0,\"free\"===i.coerce(t,e,{anchor:{valType:\"enumerated\",values:[\"free\"].concat(u),dflt:o}},\"anchor\")&&r(\"position\",c),i.coerce(t,e,{side:{valType:\"enumerated\",values:\"x\"===h?[\"bottom\",\"top\"]:[\"left\",\"right\"],dflt:l}},\"side\");var d=!1;if(f.length&&(d=i.coerce(t,e,{overlaying:{valType:\"enumerated\",values:[!1].concat(f),dflt:!1}},\"overlaying\")),!d){var g=r(\"domain\",s);g[0]>g[1]-.01&&(e.domain=s),i.noneOrAll(t.domain,e.domain,s)}return r(\"layer\"),e}},{\"../../lib\":696,\"fast-isnumeric\":214}],761:[function(t,e,r){\"use strict\";var n=t(\"../../constants/alignment\").FROM_BL;e.exports=function(t,e,r){void 0===r&&(r=n[t.constraintoward||\"center\"]);var i=[t.r2l(t.range[0]),t.r2l(t.range[1])],a=i[0]+(i[1]-i[0])*r;t.range=t._input.range=[t.l2r(a+(i[0]-a)*e),t.l2r(a+(i[1]-a)*e)]}},{\"../../constants/alignment\":668}],762:[function(t,e,r){\"use strict\";var n=t(\"polybooljs\"),i=t(\"../../registry\"),a=t(\"../../components/color\"),o=t(\"../../components/fx\"),s=t(\"../../lib/polygon\"),l=t(\"../../lib/throttle\"),c=t(\"../../components/fx/helpers\").makeEventData,u=t(\"./axis_ids\").getFromId,f=t(\"../../lib/clear_gl_canvases\"),h=t(\"../../plot_api/subroutines\").redrawReglTraces,p=t(\"./constants\"),d=p.MINSELECT,g=s.filter,v=s.tester;function m(t){return t._id}function y(t,e,r,n,i,a,o){var s,l,c,u,f,h,p,d,g,v=e._hoverdata,m=e._fullLayout.clickmode.indexOf(\"event\")>-1,y=[];if(function(t){return t&&Array.isArray(t)&&!0!==t[0].hoverOnBox}(v)){w(t,e,a);var x=function(t,e){var r,n,i=t[0],a=-1,o=[];for(n=0;n<e.length;n++)if(r=e[n],i.fullData._expandedIndex===r.cd[0].trace._expandedIndex){if(!0===i.hoverOnBox)break;void 0!==i.pointNumber?a=i.pointNumber:void 0!==i.binNumber&&(a=i.binNumber,o=i.pointNumbers);break}return{pointNumber:a,pointNumbers:o,searchInfo:r}}(v,s=M(e,r,n,i));if(x.pointNumbers.length>0?function(t,e){var r,n,i,a=[];for(i=0;i<t.length;i++)(r=t[i]).cd[0].trace.selectedpoints&&r.cd[0].trace.selectedpoints.length>0&&a.push(r);if(1===a.length&&a[0]===e.searchInfo&&(n=e.searchInfo.cd[0].trace).selectedpoints.length===e.pointNumbers.length){for(i=0;i<e.pointNumbers.length;i++)if(n.selectedpoints.indexOf(e.pointNumbers[i])<0)return!1;return!0}return!1}(s,x):function(t){var e,r,n,i=0;for(n=0;n<t.length;n++)if(e=t[n],(r=e.cd[0].trace).selectedpoints){if(r.selectedpoints.length>1)return!1;if((i+=r.selectedpoints.length)>1)return!1}return 1===i}(s)&&(h=T(x))){for(o&&o.remove(),g=0;g<s.length;g++)(l=s[g])._module.selectPoints(l,!1);S(e,s),k(a),m&&e.emit(\"plotly_deselect\",null)}else{for(p=t.shiftKey&&(void 0!==h?h:T(x)),c=function(t,e,r){return{pointNumber:t,searchInfo:e,subtract:r}}(x.pointNumber,x.searchInfo,p),u=_(a.selectionDefs.concat([c])),g=0;g<s.length;g++)if(f=E(s[g]._module.selectPoints(s[g],u),s[g]),y.length)for(var b=0;b<f.length;b++)y.push(f[b]);else y=f;S(e,s,d={points:y}),c&&a&&a.selectionDefs.push(c),o&&A(a.mergedPolygons,o),m&&e.emit(\"plotly_selected\",d)}}}function x(t){return\"pointNumber\"in t&&\"searchInfo\"in t}function b(t){return{xmin:0,xmax:0,ymin:0,ymax:0,pts:[],contains:function(e,r,n,i){var a=t.searchInfo.cd[0].trace._expandedIndex;return i.cd[0].trace._expandedIndex===a&&n===t.pointNumber},isRect:!1,degenerate:!1,subtract:t.subtract}}function _(t){for(var e=[],r=x(t[0])?0:t[0][0][0],n=r,i=x(t[0])?0:t[0][0][1],a=i,o=0;o<t.length;o++)if(x(t[o]))e.push(b(t[o]));else{var l=s.tester(t[o]);l.subtract=t[o].subtract,e.push(l),r=Math.min(r,l.xmin),n=Math.max(n,l.xmax),i=Math.min(i,l.ymin),a=Math.max(a,l.ymax)}return{xmin:r,xmax:n,ymin:i,ymax:a,pts:[],contains:function(t,r,n,i){for(var a=!1,o=0;o<e.length;o++)e[o].contains(t,r,n,i)&&(a=!1===e[o].subtract);return a},isRect:!1,degenerate:!1}}function w(t,e,r){var n=e._fullLayout,i=n._zoomlayer,a=r.plotinfo,o=n._lastSelectedSubplot&&n._lastSelectedSubplot===a.id,s=t.shiftKey||t.altKey;o&&s&&a.selection&&a.selection.selectionDefs&&!r.selectionDefs?(r.selectionDefs=a.selection.selectionDefs,r.mergedPolygons=a.selection.mergedPolygons):s&&a.selection||k(r),o||(C(i),n._lastSelectedSubplot=a.id)}function k(t){var e=t.plotinfo;e.selection={},e.selection.selectionDefs=t.selectionDefs=[],e.selection.mergedPolygons=t.mergedPolygons=[]}function M(t,e,r,n){var i,a,o,s=[],l=e.map(m),c=r.map(m);for(o=0;o<t.calcdata.length;o++)if(!0===(a=(i=t.calcdata[o])[0].trace).visible&&a._module&&a._module.selectPoints)if(!n||a.subplot!==n&&a.geo!==n)if(\"splom\"===a.type&&a._xaxes[l[0]]&&a._yaxes[c[0]]){var f=h(a._module,i,e[0],r[0]);f.scene=t._fullLayout._splomScenes[a.uid],s.push(f)}else{if(-1===l.indexOf(a.xaxis))continue;if(-1===c.indexOf(a.yaxis))continue;s.push(h(a._module,i,u(t,a.xaxis),u(t,a.yaxis)))}else s.push(h(a._module,i,e[0],r[0]));return s;function h(t,e,r,n){return{_module:t,cd:e,xaxis:r,yaxis:n}}}function A(t,e){var r,n,i=[];for(r=0;r<t.length;r++){var a=t[r];i.push(a.join(\"L\")+\"L\"+a[0])}n=t.length>0?\"M\"+i.join(\"M\")+\"Z\":\"M0,0Z\",e.attr(\"d\",n)}function T(t){var e=t.searchInfo.cd[0].trace,r=t.pointNumber,n=t.pointNumbers,i=n.length>0?n[0]:r;return!!e.selectedpoints&&e.selectedpoints.indexOf(i)>-1}function S(t,e,r){var n,a,o,s;if(r){var l=r.points||[];for(n=0;n<e.length;n++)(s=e[n].cd[0].trace).selectedpoints=[],s._input.selectedpoints=[];for(n=0;n<l.length;n++){var c=l[n],u=c.data,p=c.fullData;c.pointIndices?([].push.apply(u.selectedpoints,c.pointIndices),[].push.apply(p.selectedpoints,c.pointIndices)):(u.selectedpoints.push(c.pointIndex),p.selectedpoints.push(c.pointIndex))}}else for(n=0;n<e.length;n++)delete(s=e[n].cd[0].trace).selectedpoints,delete s._input.selectedpoints;var d=!1;for(n=0;n<e.length;n++){s=(o=(a=e[n]).cd)[0].trace,i.traceIs(s,\"regl\")&&(d=!0);var g=a._module,v=g.styleOnSelect||g.style;v&&v(t,o)}d&&(f(t),h(t))}function E(t,e){if(Array.isArray(t))for(var r=e.cd,n=e.cd[0].trace,i=0;i<t.length;i++)t[i]=c(t[i],n,r);return t}function C(t){t.selectAll(\".select-outline\").remove()}e.exports={prepSelect:function(t,e,r,i,s){var c,u,f,h,m,x,b,T=i.gd,C=T._fullLayout,L=C._zoomlayer,z=i.element.getBoundingClientRect(),O=i.plotinfo,I=O.xaxis._offset,P=O.yaxis._offset,D=e-z.left,R=r-z.top,B=D,F=R,N=\"M\"+D+\",\"+R,j=i.xaxes[0]._length,V=i.yaxes[0]._length,U=i.xaxes.concat(i.yaxes),q=t.altKey;w(t,T,i),\"lasso\"===s&&(c=g([[D,R]],p.BENDPX));var H=L.selectAll(\"path.select-outline-\"+O.id).data([1,2]);H.enter().append(\"path\").attr(\"class\",function(t){return\"select-outline select-outline-\"+t+\" select-outline-\"+O.id}).attr(\"transform\",\"translate(\"+I+\", \"+P+\")\").attr(\"d\",N+\"Z\");var G,W=L.append(\"path\").attr(\"class\",\"zoombox-corners\").style({fill:a.background,stroke:a.defaultLine,\"stroke-width\":1}).attr(\"transform\",\"translate(\"+I+\", \"+P+\")\").attr(\"d\",\"M0,0Z\"),Y=C._uid+p.SELECTID,X=[],Z=M(T,i.xaxes,i.yaxes,i.subplot);function $(t){var e=\"y\"===t._id.charAt(0)?1:0;return function(r){return t.p2d(r[e])}}function J(t,e){return t-e}G=O.fillRangeItems?O.fillRangeItems:\"select\"===s?function(t,e){var r=t.range={};for(m=0;m<U.length;m++){var n=U[m],i=n._id.charAt(0);r[n._id]=[n.p2d(e[i+\"min\"]),n.p2d(e[i+\"max\"])].sort(J)}}:function(t,e,r){var n=t.lassoPoints={};for(m=0;m<U.length;m++){var i=U[m];n[i._id]=r.filtered.map($(i))}},i.moveFn=function(t,e){B=Math.max(0,Math.min(j,t+D)),F=Math.max(0,Math.min(V,e+R));var r=Math.abs(B-D),a=Math.abs(F-R);if(\"select\"===s){var o=C.selectdirection;\"h\"===(o=\"any\"===C.selectdirection?a<Math.min(.6*r,d)?\"h\":r<Math.min(.6*a,d)?\"v\":\"d\":C.selectdirection)?((h=[[D,0],[D,V],[B,V],[B,0]]).xmin=Math.min(D,B),h.xmax=Math.max(D,B),h.ymin=Math.min(0,V),h.ymax=Math.max(0,V),W.attr(\"d\",\"M\"+h.xmin+\",\"+(R-d)+\"h-4v\"+2*d+\"h4ZM\"+(h.xmax-1)+\",\"+(R-d)+\"h4v\"+2*d+\"h-4Z\")):\"v\"===o?((h=[[0,R],[0,F],[j,F],[j,R]]).xmin=Math.min(0,j),h.xmax=Math.max(0,j),h.ymin=Math.min(R,F),h.ymax=Math.max(R,F),W.attr(\"d\",\"M\"+(D-d)+\",\"+h.ymin+\"v-4h\"+2*d+\"v4ZM\"+(D-d)+\",\"+(h.ymax-1)+\"v4h\"+2*d+\"v-4Z\")):\"d\"===o&&((h=[[D,R],[D,F],[B,F],[B,R]]).xmin=Math.min(D,B),h.xmax=Math.max(D,B),h.ymin=Math.min(R,F),h.ymax=Math.max(R,F),W.attr(\"d\",\"M0,0Z\"))}else\"lasso\"===s&&(c.addPt([B,F]),h=c.filtered);i.selectionDefs&&i.selectionDefs.length?(f=function(t,e,r){return r?n.difference({regions:t,inverted:!1},{regions:[e],inverted:!1}).regions:n.union({regions:t,inverted:!1},{regions:[e],inverted:!1}).regions}(i.mergedPolygons,h,q),h.subtract=q,u=_(i.selectionDefs.concat([h]))):(f=[h],u=v(h)),A(f,H),l.throttle(Y,p.SELECTDELAY,function(){X=[];var t,e,r=[];for(m=0;m<Z.length;m++)if(e=(x=Z[m])._module.selectPoints(x,u),r.push(e),t=E(e,x),X.length)for(var n=0;n<t.length;n++)X.push(t[n]);else X=t;S(T,Z,b={points:X}),G(b,h,c),i.gd.emit(\"plotly_selecting\",b)})},i.clickFn=function(t,e){var r=C.clickmode;W.remove(),l.done(Y).then(function(){if(l.clear(Y),2===t){for(H.remove(),m=0;m<Z.length;m++)(x=Z[m])._module.selectPoints(x,!1);S(T,Z),k(i),T.emit(\"plotly_deselect\",null)}else r.indexOf(\"select\")>-1&&y(e,T,i.xaxes,i.yaxes,i.subplot,i,H),\"event\"===r&&T.emit(\"plotly_selected\",void 0);o.click(T,e)})},i.doneFn=function(){W.remove(),l.done(Y).then(function(){l.clear(Y),i.gd.emit(\"plotly_selected\",b),h&&i.selectionDefs&&(h.subtract=q,i.selectionDefs.push(h),i.mergedPolygons.length=0,[].push.apply(i.mergedPolygons,f))})}},clearSelect:C,selectOnClick:y}},{\"../../components/color\":570,\"../../components/fx\":612,\"../../components/fx/helpers\":609,\"../../lib/clear_gl_canvases\":680,\"../../lib/polygon\":708,\"../../lib/throttle\":721,\"../../plot_api/subroutines\":735,\"../../registry\":827,\"./axis_ids\":747,\"./constants\":750,polybooljs:456}],763:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"fast-isnumeric\"),a=t(\"../../lib\"),o=a.cleanNumber,s=a.ms2DateTime,l=a.dateTime2ms,c=a.ensureNumber,u=t(\"../../constants/numerical\"),f=u.FP_SAFE,h=u.BADNUM,p=u.LOG_CLIP,d=t(\"./constants\"),g=t(\"./axis_ids\");function v(t){return Math.pow(10,t)}e.exports=function(t,e){e=e||{};var r=(t._id||\"x\").charAt(0);function u(e,r){if(e>0)return Math.log(e)/Math.LN10;if(e<=0&&r&&t.range&&2===t.range.length){var n=t.range[0],i=t.range[1];return.5*(n+i-2*p*Math.abs(n-i))}return h}function m(e,r,n){var o=l(e,n||t.calendar);if(o===h){if(!i(e))return h;e=+e;var s=Math.floor(10*a.mod(e+.05,1)),c=Math.round(e-s/10);o=l(new Date(c))+s/10}return o}function y(e,r,n){return s(e,r,n||t.calendar)}function x(e){return t._categories[Math.round(e)]}function b(e){if(t._categoriesMap){var r=t._categoriesMap[e];if(void 0!==r)return r}if(i(e))return+e}function _(e){return i(e)?n.round(t._b+t._m*e,2):h}function w(e){return(e-t._b)/t._m}t.c2l=\"log\"===t.type?u:c,t.l2c=\"log\"===t.type?v:c,t.l2p=_,t.p2l=w,t.c2p=\"log\"===t.type?function(t,e){return _(u(t,e))}:_,t.p2c=\"log\"===t.type?function(t){return v(w(t))}:w,-1!==[\"linear\",\"-\"].indexOf(t.type)?(t.d2r=t.r2d=t.d2c=t.r2c=t.d2l=t.r2l=o,t.c2d=t.c2r=t.l2d=t.l2r=c,t.d2p=t.r2p=function(e){return t.l2p(o(e))},t.p2d=t.p2r=w,t.cleanPos=c):\"log\"===t.type?(t.d2r=t.d2l=function(t,e){return u(o(t),e)},t.r2d=t.r2c=function(t){return v(o(t))},t.d2c=t.r2l=o,t.c2d=t.l2r=c,t.c2r=u,t.l2d=v,t.d2p=function(e,r){return t.l2p(t.d2r(e,r))},t.p2d=function(t){return v(w(t))},t.r2p=function(e){return t.l2p(o(e))},t.p2r=w,t.cleanPos=c):\"date\"===t.type?(t.d2r=t.r2d=a.identity,t.d2c=t.r2c=t.d2l=t.r2l=m,t.c2d=t.c2r=t.l2d=t.l2r=y,t.d2p=t.r2p=function(e,r,n){return t.l2p(m(e,0,n))},t.p2d=t.p2r=function(t,e,r){return y(w(t),e,r)},t.cleanPos=function(e){return a.cleanDate(e,h,t.calendar)}):\"category\"===t.type&&(t.d2c=t.d2l=function(e){if(null!=e){if(void 0===t._categoriesMap&&(t._categoriesMap={}),void 0!==t._categoriesMap[e])return t._categoriesMap[e];t._categories.push(e);var r=t._categories.length-1;return t._categoriesMap[e]=r,r}return h},t.r2d=t.c2d=t.l2d=x,t.d2r=t.d2l_noadd=b,t.r2c=function(e){var r=b(e);return void 0!==r?r:t.fraction2r(.5)},t.l2r=t.c2r=c,t.r2l=b,t.d2p=function(e){return t.l2p(t.r2c(e))},t.p2d=function(t){return x(w(t))},t.r2p=t.d2p,t.p2r=w,t.cleanPos=function(t){return\"string\"==typeof t&&\"\"!==t?t:c(t)}),t.fraction2r=function(e){var r=t.r2l(t.range[0]),n=t.r2l(t.range[1]);return t.l2r(r+e*(n-r))},t.r2fraction=function(e){var r=t.r2l(t.range[0]),n=t.r2l(t.range[1]);return(t.r2l(e)-r)/(n-r)},t.cleanRange=function(e,n){n||(n={}),e||(e=\"range\");var o,s,l=a.nestedProperty(t,e).get();if(s=(s=\"date\"===t.type?a.dfltRange(t.calendar):\"y\"===r?d.DFLTRANGEY:n.dfltRange||d.DFLTRANGEX).slice(),l&&2===l.length)for(\"date\"===t.type&&(l[0]=a.cleanDate(l[0],h,t.calendar),l[1]=a.cleanDate(l[1],h,t.calendar)),o=0;o<2;o++)if(\"date\"===t.type){if(!a.isDateTime(l[o],t.calendar)){t[e]=s;break}if(t.r2l(l[0])===t.r2l(l[1])){var c=a.constrain(t.r2l(l[0]),a.MIN_MS+1e3,a.MAX_MS-1e3);l[0]=t.l2r(c-1e3),l[1]=t.l2r(c+1e3);break}}else{if(!i(l[o])){if(!i(l[1-o])){t[e]=s;break}l[o]=l[1-o]*(o?10:.1)}if(l[o]<-f?l[o]=-f:l[o]>f&&(l[o]=f),l[0]===l[1]){var u=Math.max(1,Math.abs(1e-6*l[0]));l[0]-=u,l[1]+=u}}else a.nestedProperty(t,e).set(s)},t.setScale=function(n){var i=e._size;if(t._categories||(t._categories=[]),t._categoriesMap||(t._categoriesMap={}),t.overlaying){var a=g.getFromId({_fullLayout:e},t.overlaying);t.domain=a.domain}var o=n&&t._r?\"_r\":\"range\",s=t.calendar;t.cleanRange(o);var l=t.r2l(t[o][0],s),c=t.r2l(t[o][1],s);if(\"y\"===r?(t._offset=i.t+(1-t.domain[1])*i.h,t._length=i.h*(t.domain[1]-t.domain[0]),t._m=t._length/(l-c),t._b=-t._m*c):(t._offset=i.l+t.domain[0]*i.w,t._length=i.w*(t.domain[1]-t.domain[0]),t._m=t._length/(c-l),t._b=-t._m*l),!isFinite(t._m)||!isFinite(t._b))throw e._replotting=!1,new Error(\"Something went wrong with axis scaling\")},t.makeCalcdata=function(e,r){var n,i,o,s,l=t.type,c=\"date\"===l&&e[r+\"calendar\"];if(r in e){if(n=e[r],s=e._length||n.length,a.isTypedArray(n)&&(\"linear\"===l||\"log\"===l)){if(s===n.length)return n;if(n.subarray)return n.subarray(0,s)}for(i=new Array(s),o=0;o<s;o++)i[o]=t.d2c(n[o],0,c)}else{var u=r+\"0\"in e?t.d2c(e[r+\"0\"],0,c):0,f=e[\"d\"+r]?Number(e[\"d\"+r]):1;for(n=e[{x:\"y\",y:\"x\"}[r]],s=e._length||n.length,i=new Array(s),o=0;o<s;o++)i[o]=u+o*f}return i},t.isValidRange=function(e){return Array.isArray(e)&&2===e.length&&i(t.r2l(e[0]))&&i(t.r2l(e[1]))},t.isPtWithinRange=function(e,n){var i=t.c2l(e[r],null,n),a=t.r2l(t.range[0]),o=t.r2l(t.range[1]);return a<o?a<=i&&i<=o:o<=i&&i<=a},t.clearCalc=function(){t._categories=(t._initialCategories||[]).slice(),t._categoriesMap={};for(var e=0;e<t._categories.length;e++)t._categoriesMap[t._categories[e]]=e};var k=e._d3locale;\"date\"===t.type&&(t._dateFormat=k?k.timeFormat.utc:n.time.format.utc,t._extraFormat=e._extraFormat),t._separators=e.separators,t._numFormat=k?k.numberFormat:n.format,delete t._minDtick,delete t._forceTick0}},{\"../../constants/numerical\":673,\"../../lib\":696,\"./axis_ids\":747,\"./constants\":750,d3:148,\"fast-isnumeric\":214}],764:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"./layout_attributes\"),a=t(\"../array_container_defaults\");function o(t,e){function r(r,a){return n.coerce(t,e,i.tickformatstops,r,a)}r(\"enabled\")&&(r(\"dtickrange\"),r(\"value\"))}e.exports=function(t,e,r,s,l){var c=function(t){var e=[\"showexponent\",\"showtickprefix\",\"showticksuffix\"].filter(function(e){return void 0!==t[e]});if(e.every(function(r){return t[r]===t[e[0]]})||1===e.length)return t[e[0]]}(t);if(r(\"tickprefix\")&&r(\"showtickprefix\",c),r(\"ticksuffix\",l.tickSuffixDflt)&&r(\"showticksuffix\",c),r(\"showticklabels\")){var u=l.font||{},f=e.color,h=f&&f!==i.color.dflt?f:u.color;if(n.coerceFont(r,\"tickfont\",{family:u.family,size:u.size,color:h}),r(\"tickangle\"),\"category\"!==s){var p=r(\"tickformat\"),d=t.tickformatstops;Array.isArray(d)&&d.length&&a(t,e,{name:\"tickformatstops\",inclusionAttr:\"enabled\",handleItemDefaults:o}),p||\"date\"===s||(r(\"showexponent\",c),r(\"exponentformat\"),r(\"separatethousands\"))}}}},{\"../../lib\":696,\"../array_container_defaults\":740,\"./layout_attributes\":757}],765:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"./layout_attributes\");e.exports=function(t,e,r,a){var o=n.coerce2(t,e,i,\"ticklen\"),s=n.coerce2(t,e,i,\"tickwidth\"),l=n.coerce2(t,e,i,\"tickcolor\",e.color);r(\"ticks\",a.outerTicks||o||s||l?\"outside\":\"\")||(delete e.ticklen,delete e.tickwidth,delete e.tickcolor)}},{\"../../lib\":696,\"./layout_attributes\":757}],766:[function(t,e,r){\"use strict\";var n=t(\"./clean_ticks\");e.exports=function(t,e,r,i){var a;\"array\"!==t.tickmode||\"log\"!==i&&\"date\"!==i?a=r(\"tickmode\",Array.isArray(t.tickvals)?\"array\":t.dtick?\"linear\":\"auto\"):a=e.tickmode=\"auto\";if(\"auto\"===a)r(\"nticks\");else if(\"linear\"===a){var o=e.dtick=n.dtick(t.dtick,i);e.tick0=n.tick0(t.tick0,i,e.calendar,o)}else{void 0===r(\"tickvals\")?e.tickmode=\"auto\":r(\"ticktext\")}}},{\"./clean_ticks\":749}],767:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../../registry\"),a=t(\"../../components/drawing\"),o=t(\"./axes\"),s=t(\"./constants\").attrRegex;e.exports=function(t,e,r,l){var c=t._fullLayout,u=[];var f,h,p,d,g=function(t){var e,r,n,i,a={};for(e in t)if((r=e.split(\".\"))[0].match(s)){var o=e.charAt(0),l=r[0];if(n=c[l],i={},Array.isArray(t[e])?i.to=t[e].slice(0):Array.isArray(t[e].range)&&(i.to=t[e].range.slice(0)),!i.to)continue;i.axisName=l,i.length=n._length,u.push(o),a[o]=i}return a}(e),v=Object.keys(g),m=function(t,e,r){var n,i,a,o=t._plots,s=[];for(n in o){var l=o[n];if(-1===s.indexOf(l)){var c=l.xaxis._id,u=l.yaxis._id,f=l.xaxis.range,h=l.yaxis.range;l.xaxis._r=l.xaxis.range.slice(),l.yaxis._r=l.yaxis.range.slice(),i=r[c]?r[c].to:f,a=r[u]?r[u].to:h,f[0]===i[0]&&f[1]===i[1]&&h[0]===a[0]&&h[1]===a[1]||-1===e.indexOf(c)&&-1===e.indexOf(u)||s.push(l)}}return s}(c,v,g);if(!m.length)return function(){function e(e,r,n){for(var i=0;i<e.length;i++)if(r(t,i),n)return}e(c.annotations||[],i.getComponentMethod(\"annotations\",\"drawOne\")),e(c.shapes||[],i.getComponentMethod(\"shapes\",\"drawOne\")),e(c.images||[],i.getComponentMethod(\"images\",\"draw\"),!0)}(),!1;function y(t){var e=t.xaxis,r=t.yaxis;c._defs.select(\"#\"+t.clipId+\"> rect\").call(a.setTranslate,0,0).call(a.setScale,1,1),t.plot.call(a.setTranslate,e._offset,r._offset).call(a.setScale,1,1);var n=t.plot.selectAll(\".scatterlayer .trace\");n.selectAll(\".point\").call(a.setPointGroupScale,1,1),n.selectAll(\".textpoint\").call(a.setTextPointsScale,1,1),n.call(a.hideOutsideRangePoints,t)}function x(e,r){var n,s,l,u=g[e.xaxis._id],f=g[e.yaxis._id],h=[];if(u){s=(n=t._fullLayout[u.axisName])._r,l=u.to,h[0]=(s[0]*(1-r)+r*l[0]-s[0])/(s[1]-s[0])*e.xaxis._length;var p=s[1]-s[0],d=l[1]-l[0];n.range[0]=s[0]*(1-r)+r*l[0],n.range[1]=s[1]*(1-r)+r*l[1],h[2]=e.xaxis._length*(1-r+r*d/p)}else h[0]=0,h[2]=e.xaxis._length;if(f){s=(n=t._fullLayout[f.axisName])._r,l=f.to,h[1]=(s[1]*(1-r)+r*l[1]-s[1])/(s[0]-s[1])*e.yaxis._length;var v=s[1]-s[0],m=l[1]-l[0];n.range[0]=s[0]*(1-r)+r*l[0],n.range[1]=s[1]*(1-r)+r*l[1],h[3]=e.yaxis._length*(1-r+r*m/v)}else h[1]=0,h[3]=e.yaxis._length;!function(e,r){var n,a=[];for(a=[e._id,r._id],n=0;n<a.length;n++)o.doTicksSingle(t,a[n],!0);function s(e,r,i){for(n=0;n<e.length;n++){var o=e[n];if(-1===a.indexOf(o.xref)&&-1===a.indexOf(o.yref)||r(t,n),i)return}}s(c.annotations||[],i.getComponentMethod(\"annotations\",\"drawOne\")),s(c.shapes||[],i.getComponentMethod(\"shapes\",\"drawOne\")),s(c.images||[],i.getComponentMethod(\"images\",\"draw\"),!0)}(e.xaxis,e.yaxis);var y=e.xaxis,x=e.yaxis,b=!!u,_=!!f,w=b?y._length/h[2]:1,k=_?x._length/h[3]:1,M=b?h[0]:0,A=_?h[1]:0,T=b?h[0]/h[2]*y._length:0,S=_?h[1]/h[3]*x._length:0,E=y._offset-T,C=x._offset-S;e.clipRect.call(a.setTranslate,M,A).call(a.setScale,1/w,1/k),e.plot.call(a.setTranslate,E,C).call(a.setScale,w,k),a.setPointGroupScale(e.zoomScalePts,1/w,1/k),a.setTextPointsScale(e.zoomScaleTxt,1/w,1/k)}l&&(f=l());var b=n.ease(r.easing);return t._transitionData._interruptCallbacks.push(function(){return window.cancelAnimationFrame(d),d=null,function(){for(var e={},r=0;r<v.length;r++){var n=t._fullLayout[v[r]+\"axis\"];e[n._name+\".range[0]\"]=n.range[0],e[n._name+\".range[1]\"]=n.range[1],n.range=n._r.slice()}return i.call(\"relayout\",t,e).then(function(){for(var t=0;t<m.length;t++)y(m[t])})}()}),h=Date.now(),d=window.requestAnimationFrame(function e(){p=Date.now();for(var n=Math.min(1,(p-h)/r.duration),a=b(n),o=0;o<m.length;o++)x(m[o],a);p-h>r.duration?(function(){for(var e={},r=0;r<v.length;r++){var n=t._fullLayout[g[v[r]].axisName],a=g[v[r]].to;e[n._name+\".range[0]\"]=a[0],e[n._name+\".range[1]\"]=a[1],n.range=a.slice()}f&&f(),i.call(\"relayout\",t,e).then(function(){for(var t=0;t<m.length;t++)y(m[t])})}(),d=window.cancelAnimationFrame(e)):d=window.requestAnimationFrame(e)}),Promise.resolve()}},{\"../../components/drawing\":595,\"../../registry\":827,\"./axes\":744,\"./constants\":750,d3:148}],768:[function(t,e,r){\"use strict\";var n=t(\"../../registry\"),i=t(\"./axis_autotype\");function a(t){return{v:\"x\",h:\"y\"}[t.orientation||\"v\"]}function o(t,e){var r=a(t),i=n.traceIs(t,\"box-violin\"),o=n.traceIs(t._fullInput||{},\"candlestick\");return i&&!o&&e===r&&void 0===t[r]&&void 0===t[r+\"0\"]}e.exports=function(t,e,r,s){\"-\"===r(\"type\",(s.splomStash||{}).type)&&(!function(t,e){if(\"-\"!==t.type)return;var r=t._id,s=r.charAt(0);-1!==r.indexOf(\"scene\")&&(r=s);var l=function(t,e,r){for(var n=0;n<t.length;n++){var i=t[n];if(\"splom\"===i.type&&i._length>0&&(i[\"_\"+r+\"axes\"]||{})[e])return i;if((i[r+\"axis\"]||r)===e){if(o(i,r))return i;if((i[r]||[]).length||i[r+\"0\"])return i}}}(e,r,s);if(!l)return;if(\"histogram\"===l.type&&s==={v:\"y\",h:\"x\"}[l.orientation||\"v\"])return void(t.type=\"linear\");var c,u=s+\"calendar\",f=l[u];if(o(l,s)){var h=a(l),p=[];for(c=0;c<e.length;c++){var d=e[c];n.traceIs(d,\"box-violin\")&&(d[s+\"axis\"]||s)===r&&(void 0!==d[h]?p.push(d[h][0]):void 0!==d.name?p.push(d.name):p.push(\"text\"),d[u]!==f&&(f=void 0))}t.type=i(p,f)}else if(\"splom\"===l.type){var g=l.dimensions,v=l._diag;for(c=0;c<g.length;c++){var m=g[c];if(m.visible&&(v[c][0]===r||v[c][1]===r)){t.type=i(m.values,f);break}}}else t.type=i(l[s]||[l[s+\"0\"]],f)}(e,s.data),\"-\"===e.type?e.type=\"linear\":t.type=e.type)}},{\"../../registry\":827,\"./axis_autotype\":745}],769:[function(t,e,r){\"use strict\";var n=t(\"../registry\"),i=t(\"../lib\");function a(t,e,r){var n,a,o,s=!1;if(\"data\"===e.type)n=t._fullData[null!==e.traces?e.traces[0]:0];else{if(\"layout\"!==e.type)return!1;n=t._fullLayout}return a=i.nestedProperty(n,e.prop).get(),(o=r[e.type]=r[e.type]||{}).hasOwnProperty(e.prop)&&o[e.prop]!==a&&(s=!0),o[e.prop]=a,{changed:s,value:a}}function o(t,e){var r=[],n=e[0],a={};if(\"string\"==typeof n)a[n]=e[1];else{if(!i.isPlainObject(n))return r;a=n}return l(a,function(t,e,n){r.push({type:\"layout\",prop:t,value:n})},\"\",0),r}function s(t,e){var r,n,a,o,s=[];if(n=e[0],a=e[1],r=e[2],o={},\"string\"==typeof n)o[n]=a;else{if(!i.isPlainObject(n))return s;o=n,void 0===r&&(r=a)}return void 0===r&&(r=null),l(o,function(e,n,i){var a;if(Array.isArray(i)){var o=Math.min(i.length,t.data.length);r&&(o=Math.min(o,r.length)),a=[];for(var l=0;l<o;l++)a[l]=r?r[l]:l}else a=r?r.slice(0):null;if(null===a)Array.isArray(i)&&(i=i[0]);else if(Array.isArray(a)){if(!Array.isArray(i)){var c=i;i=[];for(var u=0;u<a.length;u++)i[u]=c}i.length=Math.min(a.length,i.length)}s.push({type:\"data\",prop:e,traces:a,value:i})},\"\",0),s}function l(t,e,r,n){Object.keys(t).forEach(function(a){var o=t[a];if(\"_\"!==a[0]){var s=r+(n>0?\".\":\"\")+a;i.isPlainObject(o)?l(o,e,s,n+1):e(s,a,o)}})}r.manageCommandObserver=function(t,e,n,o){var s={},l=!0;e&&e._commandObserver&&(s=e._commandObserver),s.cache||(s.cache={}),s.lookupTable={};var c=r.hasSimpleAPICommandBindings(t,n,s.lookupTable);if(e&&e._commandObserver){if(c)return s;if(e._commandObserver.remove)return e._commandObserver.remove(),e._commandObserver=null,s}if(c){a(t,c,s.cache),s.check=function(){if(l){var e=a(t,c,s.cache);return e.changed&&o&&void 0!==s.lookupTable[e.value]&&(s.disable(),Promise.resolve(o({value:e.value,type:c.type,prop:c.prop,traces:c.traces,index:s.lookupTable[e.value]})).then(s.enable,s.enable)),e.changed}};for(var u=[\"plotly_relayout\",\"plotly_redraw\",\"plotly_restyle\",\"plotly_update\",\"plotly_animatingframe\",\"plotly_afterplot\"],f=0;f<u.length;f++)t._internalOn(u[f],s.check);s.remove=function(){for(var e=0;e<u.length;e++)t._removeInternalListener(u[e],s.check)}}else i.log(\"Unable to automatically bind plot updates to API command\"),s.lookupTable={},s.remove=function(){};return s.disable=function(){l=!1},s.enable=function(){l=!0},e&&(e._commandObserver=s),s},r.hasSimpleAPICommandBindings=function(t,e,n){var i,a,o=e.length;for(i=0;i<o;i++){var s,l=e[i],c=l.method,u=l.args;if(Array.isArray(u)||(u=[]),!c)return!1;var f=r.computeAPICommandBindings(t,c,u);if(1!==f.length)return!1;if(a){if((s=f[0]).type!==a.type)return!1;if(s.prop!==a.prop)return!1;if(Array.isArray(a.traces)){if(!Array.isArray(s.traces))return!1;s.traces.sort();for(var h=0;h<a.traces.length;h++)if(a.traces[h]!==s.traces[h])return!1}else if(s.prop!==a.prop)return!1}else a=f[0],Array.isArray(a.traces)&&a.traces.sort();var p=(s=f[0]).value;if(Array.isArray(p)){if(1!==p.length)return!1;p=p[0]}n&&(n[p]=i)}return a},r.executeAPICommand=function(t,e,r){if(\"skip\"===e)return Promise.resolve();var a=n.apiMethodRegistry[e],o=[t];Array.isArray(r)||(r=[]);for(var s=0;s<r.length;s++)o.push(r[s]);return a.apply(null,o).catch(function(t){return i.warn(\"API call to Plotly.\"+e+\" rejected.\",t),Promise.reject(t)})},r.computeAPICommandBindings=function(t,e,r){var n;switch(Array.isArray(r)||(r=[]),e){case\"restyle\":n=s(t,r);break;case\"relayout\":n=o(t,r);break;case\"update\":n=s(t,[r[0],r[2]]).concat(o(t,[r[1]]));break;case\"animate\":n=function(t,e){return Array.isArray(e[0])&&1===e[0].length&&-1!==[\"string\",\"number\"].indexOf(typeof e[0][0])?[{type:\"layout\",prop:\"_currentFrame\",value:e[0][0].toString()}]:[]}(0,r);break;default:n=[]}return n}},{\"../lib\":696,\"../registry\":827}],770:[function(t,e,r){\"use strict\";var n=t(\"../lib/extend\").extendFlat;r.attributes=function(t,e){e=e||{};var r={valType:\"info_array\",editType:(t=t||{}).editType,items:[{valType:\"number\",min:0,max:1,editType:t.editType},{valType:\"number\",min:0,max:1,editType:t.editType}],dflt:[0,1]},i=(t.name&&t.name,t.trace,e.description&&e.description,{x:n({},r,{}),y:n({},r,{}),editType:t.editType});return t.noGridCell||(i.row={valType:\"integer\",min:0,dflt:0,editType:t.editType},i.column={valType:\"integer\",min:0,dflt:0,editType:t.editType}),i},r.defaults=function(t,e,r,n){var i=n&&n.x||[0,1],a=n&&n.y||[0,1],o=e.grid;if(o){var s=r(\"domain.column\");void 0!==s&&(s<o.columns?i=o._domains.x[s]:delete t.domain.column);var l=r(\"domain.row\");void 0!==l&&(l<o.rows?a=o._domains.y[l]:delete t.domain.row)}r(\"domain.x\",i),r(\"domain.y\",a)}},{\"../lib/extend\":685}],771:[function(t,e,r){\"use strict\";e.exports=function(t){var e=t.editType,r=t.colorEditType;void 0===r&&(r=e);var n={family:{valType:\"string\",noBlank:!0,strict:!0,editType:e},size:{valType:\"number\",min:1,editType:e},color:{valType:\"color\",editType:r},editType:e};return t.arrayOk&&(n.family.arrayOk=!0,n.size.arrayOk=!0,n.color.arrayOk=!0),n}},{}],772:[function(t,e,r){\"use strict\";e.exports={_isLinkedToArray:\"frames_entry\",group:{valType:\"string\"},name:{valType:\"string\"},traces:{valType:\"any\"},baseframe:{valType:\"string\"},data:{valType:\"any\"},layout:{valType:\"any\"}}},{}],773:[function(t,e,r){\"use strict\";r.projNames={equirectangular:\"equirectangular\",mercator:\"mercator\",orthographic:\"orthographic\",\"natural earth\":\"naturalEarth\",kavrayskiy7:\"kavrayskiy7\",miller:\"miller\",robinson:\"robinson\",eckert4:\"eckert4\",\"azimuthal equal area\":\"azimuthalEqualArea\",\"azimuthal equidistant\":\"azimuthalEquidistant\",\"conic equal area\":\"conicEqualArea\",\"conic conformal\":\"conicConformal\",\"conic equidistant\":\"conicEquidistant\",gnomonic:\"gnomonic\",stereographic:\"stereographic\",mollweide:\"mollweide\",hammer:\"hammer\",\"transverse mercator\":\"transverseMercator\",\"albers usa\":\"albersUsa\",\"winkel tripel\":\"winkel3\",aitoff:\"aitoff\",sinusoidal:\"sinusoidal\"},r.axesNames=[\"lonaxis\",\"lataxis\"],r.lonaxisSpan={orthographic:180,\"azimuthal equal area\":360,\"azimuthal equidistant\":360,\"conic conformal\":180,gnomonic:160,stereographic:180,\"transverse mercator\":180,\"*\":360},r.lataxisSpan={\"conic conformal\":150,stereographic:179.5,\"*\":180},r.scopeDefaults={world:{lonaxisRange:[-180,180],lataxisRange:[-90,90],projType:\"equirectangular\",projRotate:[0,0,0]},usa:{lonaxisRange:[-180,-50],lataxisRange:[15,80],projType:\"albers usa\"},europe:{lonaxisRange:[-30,60],lataxisRange:[30,85],projType:\"conic conformal\",projRotate:[15,0,0],projParallels:[0,60]},asia:{lonaxisRange:[22,160],lataxisRange:[-15,55],projType:\"mercator\",projRotate:[0,0,0]},africa:{lonaxisRange:[-30,60],lataxisRange:[-40,40],projType:\"mercator\",projRotate:[0,0,0]},\"north america\":{lonaxisRange:[-180,-45],lataxisRange:[5,85],projType:\"conic conformal\",projRotate:[-100,0,0],projParallels:[29.5,45.5]},\"south america\":{lonaxisRange:[-100,-30],lataxisRange:[-60,15],projType:\"mercator\",projRotate:[0,0,0]}},r.clipPad=.001,r.precision=.1,r.landColor=\"#F0DC82\",r.waterColor=\"#3399FF\",r.locationmodeToLayer={\"ISO-3\":\"countries\",\"USA-states\":\"subunits\",\"country names\":\"countries\"},r.sphereSVG={type:\"Sphere\"},r.fillLayers={ocean:1,land:1,lakes:1},r.lineLayers={subunits:1,countries:1,coastlines:1,rivers:1,frame:1},r.layers=[\"bg\",\"ocean\",\"land\",\"lakes\",\"subunits\",\"countries\",\"coastlines\",\"rivers\",\"lataxis\",\"lonaxis\",\"frame\",\"backplot\",\"frontplot\"],r.layersForChoropleth=[\"bg\",\"ocean\",\"land\",\"subunits\",\"countries\",\"coastlines\",\"lataxis\",\"lonaxis\",\"frame\",\"backplot\",\"rivers\",\"lakes\",\"frontplot\"],r.layerNameToAdjective={ocean:\"ocean\",land:\"land\",lakes:\"lake\",subunits:\"subunit\",countries:\"country\",coastlines:\"coastline\",rivers:\"river\",frame:\"frame\"}},{}],774:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../../registry\"),a=t(\"../../lib\"),o=t(\"../../components/color\"),s=t(\"../../components/drawing\"),l=t(\"../../components/fx\"),c=t(\"../plots\"),u=t(\"../cartesian/axes\"),f=t(\"../../components/dragelement\"),h=t(\"../cartesian/select\").prepSelect,p=t(\"../cartesian/select\").selectOnClick,d=t(\"./zoom\"),g=t(\"./constants\"),v=t(\"../../lib/topojson_utils\"),m=t(\"topojson-client\").feature;function y(t){this.id=t.id,this.graphDiv=t.graphDiv,this.container=t.container,this.topojsonURL=t.topojsonURL,this.isStatic=t.staticPlot,this.topojsonName=null,this.topojson=null,this.projection=null,this.viewInitial=null,this.fitScale=null,this.bounds=null,this.midPt=null,this.hasChoropleth=!1,this.traceHash={},this.layers={},this.basePaths={},this.dataPaths={},this.dataPoints={},this.clipDef=null,this.clipRect=null,this.bgRect=null,this.makeFramework()}t(\"./projections\")(n);var x=y.prototype;e.exports=function(t){return new y(t)},x.plot=function(t,e,r){var n=this,i=e[this.id],a=v.getTopojsonName(i);null===n.topojson||a!==n.topojsonName?(n.topojsonName=a,void 0===PlotlyGeoAssets.topojson[n.topojsonName]?r.push(n.fetchTopojson().then(function(r){PlotlyGeoAssets.topojson[n.topojsonName]=r,n.topojson=r,n.update(t,e)})):(n.topojson=PlotlyGeoAssets.topojson[n.topojsonName],n.update(t,e))):n.update(t,e)},x.fetchTopojson=function(){var t=v.getTopojsonPath(this.topojsonURL,this.topojsonName);return new Promise(function(e,r){n.json(t,function(n,i){if(n)return 404===n.status?r(new Error([\"plotly.js could not find topojson file at\",t,\".\",\"Make sure the *topojsonURL* plot config option\",\"is set properly.\"].join(\" \"))):r(new Error([\"unexpected error while fetching topojson file at\",t].join(\" \")));e(i)})})},x.update=function(t,e){var r=e[this.id];if(!this.updateProjection(e,r)){this.hasChoropleth=!1;for(var n=0;n<t.length;n++)if(\"choropleth\"===t[n][0].trace.type){this.hasChoropleth=!0;break}this.viewInitial||this.saveViewInitial(r),this.updateBaseLayers(e,r),this.updateDims(e,r),this.updateFx(e,r),c.generalUpdatePerTraceModule(this.graphDiv,this,t,r);var i=this.layers.frontplot.select(\".scatterlayer\");this.dataPoints.point=i.selectAll(\".point\"),this.dataPoints.text=i.selectAll(\"text\"),this.dataPaths.line=i.selectAll(\".js-line\");var a=this.layers.backplot.select(\".choroplethlayer\");this.dataPaths.choropleth=a.selectAll(\"path\"),this.render()}},x.updateProjection=function(t,e){var r=t._size,o=e.domain,s=e.projection,l=s.rotation||{},c=e.center||{},u=this.projection=function(t){for(var e=t.projection.type,r=n.geo[g.projNames[e]](),i=t._isClipped?g.lonaxisSpan[e]/2:null,a=[\"center\",\"rotate\",\"parallels\",\"clipExtent\"],o=function(t){return t?r:[]},s=0;s<a.length;s++){var l=a[s];\"function\"!=typeof r[l]&&(r[l]=o)}r.isLonLatOverEdges=function(t){if(null===r(t))return!0;if(i){var e=r.rotate();return n.geo.distance(t,[-e[0],-e[1]])>i*Math.PI/180}return!1},r.getPath=function(){return n.geo.path().projection(r)},r.getBounds=function(t){return r.getPath().bounds(t)},r.fitExtent=function(t,e){var n=t[1][0]-t[0][0],i=t[1][1]-t[0][1],a=r.clipExtent&&r.clipExtent();r.scale(150).translate([0,0]),a&&r.clipExtent(null);var o=r.getBounds(e),s=Math.min(n/(o[1][0]-o[0][0]),i/(o[1][1]-o[0][1])),l=+t[0][0]+(n-s*(o[1][0]+o[0][0]))/2,c=+t[0][1]+(i-s*(o[1][1]+o[0][1]))/2;return a&&r.clipExtent(a),r.scale(150*s).translate([l,c])},r.precision(g.precision),i&&r.clipAngle(i-g.clipPad);return r}(e);u.center([c.lon-l.lon,c.lat-l.lat]).rotate([-l.lon,-l.lat,l.roll]).parallels(s.parallels);var f=[[r.l+r.w*o.x[0],r.t+r.h*(1-o.y[1])],[r.l+r.w*o.x[1],r.t+r.h*(1-o.y[0])]],h=e.lonaxis,p=e.lataxis,d=function(t,e){var r=g.clipPad,n=t[0]+r,i=t[1]-r,a=e[0]+r,o=e[1]-r;n>0&&i<0&&(i+=360);var s=(i-n)/4;return{type:\"Polygon\",coordinates:[[[n,a],[n,o],[n+s,o],[n+2*s,o],[n+3*s,o],[i,o],[i,a],[i-s,a],[i-2*s,a],[i-3*s,a],[n,a]]]}}(h.range,p.range);u.fitExtent(f,d);var v=this.bounds=u.getBounds(d),m=this.fitScale=u.scale(),y=u.translate();if(!isFinite(v[0][0])||!isFinite(v[0][1])||!isFinite(v[1][0])||!isFinite(v[1][1])||isNaN(y[0])||isNaN(y[0])){for(var x=this.graphDiv,b=[\"projection.rotation\",\"center\",\"lonaxis.range\",\"lataxis.range\"],_=\"Invalid geo settings, relayout'ing to default view.\",w={},k=0;k<b.length;k++)w[this.id+\".\"+b[k]]=null;return this.viewInitial=null,a.warn(_),x._promises.push(i.call(\"relayout\",x,w)),_}var M=this.midPt=[(v[0][0]+v[1][0])/2,(v[0][1]+v[1][1])/2];if(u.scale(s.scale*m).translate([y[0]+(M[0]-y[0]),y[1]+(M[1]-y[1])]).clipExtent(v),e._isAlbersUsa){var A=u([c.lon,c.lat]),T=u.translate();u.translate([T[0]-(A[0]-T[0]),T[1]-(A[1]-T[1])])}},x.updateBaseLayers=function(t,e){var r=this,i=r.topojson,a=r.layers,l=r.basePaths;function c(t){return\"lonaxis\"===t||\"lataxis\"===t}function u(t){return Boolean(g.lineLayers[t])}function f(t){return Boolean(g.fillLayers[t])}var h=(this.hasChoropleth?g.layersForChoropleth:g.layers).filter(function(t){return u(t)||f(t)?e[\"show\"+t]:!c(t)||e[t].showgrid}),p=r.framework.selectAll(\".layer\").data(h,String);p.exit().each(function(t){delete a[t],delete l[t],n.select(this).remove()}),p.enter().append(\"g\").attr(\"class\",function(t){return\"layer \"+t}).each(function(t){var e=a[t]=n.select(this);\"bg\"===t?r.bgRect=e.append(\"rect\").style(\"pointer-events\",\"all\"):c(t)?l[t]=e.append(\"path\").style(\"fill\",\"none\"):\"backplot\"===t?e.append(\"g\").classed(\"choroplethlayer\",!0):\"frontplot\"===t?e.append(\"g\").classed(\"scatterlayer\",!0):u(t)?l[t]=e.append(\"path\").style(\"fill\",\"none\").style(\"stroke-miterlimit\",2):f(t)&&(l[t]=e.append(\"path\").style(\"stroke\",\"none\"))}),p.order(),p.each(function(t){var r=l[t],a=g.layerNameToAdjective[t];\"frame\"===t?r.datum(g.sphereSVG):u(t)||f(t)?r.datum(m(i,i.objects[t])):c(t)&&r.datum(function(t,e){var r=e[t].dtick,i=g.scopeDefaults[e.scope],a=i.lonaxisRange,o=i.lataxisRange,s=\"lonaxis\"===t?[r]:[0,r];return n.geo.graticule().extent([[a[0],o[0]],[a[1],o[1]]]).step(s)}(t,e)).call(o.stroke,e[t].gridcolor).call(s.dashLine,\"\",e[t].gridwidth),u(t)?r.call(o.stroke,e[a+\"color\"]).call(s.dashLine,\"\",e[a+\"width\"]):f(t)&&r.call(o.fill,e[a+\"color\"])})},x.updateDims=function(t,e){var r=this.bounds,n=(e.framewidth||0)/2,i=r[0][0]-n,a=r[0][1]-n,l=r[1][0]-i+n,c=r[1][1]-a+n;s.setRect(this.clipRect,i,a,l,c),this.bgRect.call(s.setRect,i,a,l,c).call(o.fill,e.bgcolor),this.xaxis._offset=i,this.xaxis._length=l,this.yaxis._offset=a,this.yaxis._length=c},x.updateFx=function(t,e){var r=this,a=r.graphDiv,o=r.bgRect,s=t.dragmode,c=t.clickmode;if(!r.isStatic){var u;\"select\"===s?u=function(t,e){(t.range={})[r.id]=[v([e.xmin,e.ymin]),v([e.xmax,e.ymax])]}:\"lasso\"===s&&(u=function(t,e,n){(t.lassoPoints={})[r.id]=n.filtered.map(v)});var g={element:r.bgRect.node(),gd:a,plotinfo:{id:r.id,xaxis:r.xaxis,yaxis:r.yaxis,fillRangeItems:u},xaxes:[r.xaxis],yaxes:[r.yaxis],subplot:r.id,clickFn:function(e){2===e&&t._zoomlayer.selectAll(\".select-outline\").remove()}};\"pan\"===s?(o.node().onmousedown=null,o.call(d(r,e)),o.on(\"dblclick.zoom\",function(){var t=r.viewInitial,e={};for(var n in t)e[r.id+\".\"+n]=t[n];i.call(\"relayout\",a,e),a.emit(\"plotly_doubleclick\",null)})):\"select\"!==s&&\"lasso\"!==s||(o.on(\".zoom\",null),g.prepFn=function(t,e,r){h(t,e,r,g,s)},f.init(g)),o.on(\"mousemove\",function(){var t=r.projection.invert(n.mouse(this));if(!t||isNaN(t[0])||isNaN(t[1]))return f.unhover(a,n.event);r.xaxis.p2c=function(){return t[0]},r.yaxis.p2c=function(){return t[1]},l.hover(a,n.event,r.id)}),o.on(\"mouseout\",function(){a._dragging||f.unhover(a,n.event)}),o.on(\"click\",function(){\"select\"!==s&&\"lasso\"!==s&&(c.indexOf(\"select\")>-1&&p(n.event,a,[r.xaxis],[r.yaxis],r.id,g),c.indexOf(\"event\")>-1&&l.click(a,n.event))})}function v(t){return r.projection.invert([t[0]+r.xaxis._offset,t[1]+r.yaxis._offset])}},x.makeFramework=function(){var t=this,e=t.graphDiv._fullLayout,r=\"clip\"+e._uid+t.id;t.clipDef=e._clips.append(\"clipPath\").attr(\"id\",r),t.clipRect=t.clipDef.append(\"rect\"),t.framework=n.select(t.container).append(\"g\").attr(\"class\",\"geo \"+t.id).call(s.setClipUrl,r),t.project=function(e){var r=t.projection(e);return r?[r[0]-t.xaxis._offset,r[1]-t.yaxis._offset]:[null,null]},t.xaxis={_id:\"x\",c2p:function(e){return t.project(e)[0]}},t.yaxis={_id:\"y\",c2p:function(e){return t.project(e)[1]}},t.mockAxis={type:\"linear\",showexponent:\"all\",exponentformat:\"B\"},u.setConvert(t.mockAxis,e)},x.saveViewInitial=function(t){var e=t.center||{},r=t.projection,n=r.rotation||{};t._isScoped?this.viewInitial={\"center.lon\":e.lon,\"center.lat\":e.lat,\"projection.scale\":r.scale}:t._isClipped?this.viewInitial={\"projection.scale\":r.scale,\"projection.rotation.lon\":n.lon,\"projection.rotation.lat\":n.lat}:this.viewInitial={\"center.lon\":e.lon,\"center.lat\":e.lat,\"projection.scale\":r.scale,\"projection.rotation.lon\":n.lon}},x.render=function(){var t,e=this.projection,r=e.getPath();function n(t){var r=e(t.lonlat);return r?\"translate(\"+r[0]+\",\"+r[1]+\")\":null}function i(t){return e.isLonLatOverEdges(t.lonlat)?\"none\":null}for(t in this.basePaths)this.basePaths[t].attr(\"d\",r);for(t in this.dataPaths)this.dataPaths[t].attr(\"d\",function(t){return r(t.geojson)});for(t in this.dataPoints)this.dataPoints[t].attr(\"display\",i).attr(\"transform\",n)}},{\"../../components/color\":570,\"../../components/dragelement\":592,\"../../components/drawing\":595,\"../../components/fx\":612,\"../../lib\":696,\"../../lib/topojson_utils\":723,\"../../registry\":827,\"../cartesian/axes\":744,\"../cartesian/select\":762,\"../plots\":808,\"./constants\":773,\"./projections\":779,\"./zoom\":780,d3:148,\"topojson-client\":517}],775:[function(t,e,r){\"use strict\";var n=t(\"./geo\"),i=t(\"../../plots/get_data\").getSubplotCalcData,a=t(\"../../lib\").counterRegex,o=\"geo\";r.name=o,r.attr=o,r.idRoot=o,r.idRegex=r.attrRegex=a(o),r.attributes=t(\"./layout/attributes\"),r.layoutAttributes=t(\"./layout/layout_attributes\"),r.supplyLayoutDefaults=t(\"./layout/defaults\"),r.plot=function(t){var e=t._fullLayout,r=t.calcdata,a=e._subplots.geo;void 0===window.PlotlyGeoAssets&&(window.PlotlyGeoAssets={topojson:{}});for(var s=0;s<a.length;s++){var l=a[s],c=i(r,o,l),u=e[l]._subplot;u||(u=n({id:l,graphDiv:t,container:e._geolayer.node(),topojsonURL:t._context.topojsonURL,staticPlot:t._context.staticPlot}),e[l]._subplot=u),u.plot(c,e,t._promises)}},r.clean=function(t,e,r,n){for(var i=n._subplots.geo||[],a=0;a<i.length;a++){var o=i[a],s=n[o]._subplot;!e[o]&&s&&(s.framework.remove(),s.clipDef.remove())}},r.updateFx=function(t){for(var e=t._fullLayout,r=e._subplots.geo,n=0;n<r.length;n++){var i=e[r[n]];i._subplot.updateFx(e,i)}}},{\"../../lib\":696,\"../../plots/get_data\":781,\"./geo\":774,\"./layout/attributes\":776,\"./layout/defaults\":777,\"./layout/layout_attributes\":778}],776:[function(t,e,r){\"use strict\";e.exports={geo:{valType:\"subplotid\",dflt:\"geo\",editType:\"calc\"}}},{}],777:[function(t,e,r){\"use strict\";var n=t(\"../../subplot_defaults\"),i=t(\"../constants\"),a=t(\"./layout_attributes\"),o=i.axesNames;function s(t,e,r){var n=r(\"resolution\"),a=r(\"scope\"),s=i.scopeDefaults[a],l=r(\"projection.type\",s.projType),c=e._isAlbersUsa=\"albers usa\"===l;c&&(a=e.scope=\"usa\");var u=e._isScoped=\"world\"!==a,f=e._isConic=-1!==l.indexOf(\"conic\");e._isClipped=!!i.lonaxisSpan[l];for(var h=0;h<o.length;h++){var p,d=o[h],g=[30,10][h];if(u)p=s[d+\"Range\"];else{var v=i[d+\"Span\"],m=(v[l]||v[\"*\"])/2,y=r(\"projection.rotation.\"+d.substr(0,3),s.projRotate[h]);p=[y-m,y+m]}var x=r(d+\".range\",p);r(d+\".tick0\",x[0]),r(d+\".dtick\",g),r(d+\".showgrid\")&&(r(d+\".gridcolor\"),r(d+\".gridwidth\"))}var b=e.lonaxis.range,_=e.lataxis.range,w=b[0],k=b[1];w>0&&k<0&&(k+=360);var M,A,T,S=(w+k)/2;if(!c){var E=u?s.projRotate:[S,0,0];M=r(\"projection.rotation.lon\",E[0]),r(\"projection.rotation.lat\",E[1]),r(\"projection.rotation.roll\",E[2]),r(\"showcoastlines\",!u)&&(r(\"coastlinecolor\"),r(\"coastlinewidth\")),r(\"showocean\")&&r(\"oceancolor\")}(c?(A=-96.6,T=38.7):(A=u?S:M,T=(_[0]+_[1])/2),r(\"center.lon\",A),r(\"center.lat\",T),f)&&r(\"projection.parallels\",s.projParallels||[0,60]);r(\"projection.scale\"),r(\"showland\")&&r(\"landcolor\"),r(\"showlakes\")&&r(\"lakecolor\"),r(\"showrivers\")&&(r(\"rivercolor\"),r(\"riverwidth\")),r(\"showcountries\",u&&\"usa\"!==a)&&(r(\"countrycolor\"),r(\"countrywidth\")),(\"usa\"===a||\"north america\"===a&&50===n)&&(r(\"showsubunits\",!0),r(\"subunitcolor\"),r(\"subunitwidth\")),u||r(\"showframe\",!0)&&(r(\"framecolor\"),r(\"framewidth\")),r(\"bgcolor\")}e.exports=function(t,e,r){n(t,e,r,{type:\"geo\",attributes:a,handleDefaults:s,partition:\"y\"})}},{\"../../subplot_defaults\":822,\"../constants\":773,\"./layout_attributes\":778}],778:[function(t,e,r){\"use strict\";var n=t(\"../../../components/color/attributes\"),i=t(\"../../domain\").attributes,a=t(\"../constants\"),o=t(\"../../../plot_api/edit_types\").overrideAll,s={range:{valType:\"info_array\",items:[{valType:\"number\"},{valType:\"number\"}]},showgrid:{valType:\"boolean\",dflt:!1},tick0:{valType:\"number\"},dtick:{valType:\"number\"},gridcolor:{valType:\"color\",dflt:n.lightLine},gridwidth:{valType:\"number\",min:0,dflt:1}};e.exports=o({domain:i({name:\"geo\"},{}),resolution:{valType:\"enumerated\",values:[110,50],dflt:110,coerceNumber:!0},scope:{valType:\"enumerated\",values:Object.keys(a.scopeDefaults),dflt:\"world\"},projection:{type:{valType:\"enumerated\",values:Object.keys(a.projNames)},rotation:{lon:{valType:\"number\"},lat:{valType:\"number\"},roll:{valType:\"number\"}},parallels:{valType:\"info_array\",items:[{valType:\"number\"},{valType:\"number\"}]},scale:{valType:\"number\",min:0,dflt:1}},center:{lon:{valType:\"number\"},lat:{valType:\"number\"}},showcoastlines:{valType:\"boolean\"},coastlinecolor:{valType:\"color\",dflt:n.defaultLine},coastlinewidth:{valType:\"number\",min:0,dflt:1},showland:{valType:\"boolean\",dflt:!1},landcolor:{valType:\"color\",dflt:a.landColor},showocean:{valType:\"boolean\",dflt:!1},oceancolor:{valType:\"color\",dflt:a.waterColor},showlakes:{valType:\"boolean\",dflt:!1},lakecolor:{valType:\"color\",dflt:a.waterColor},showrivers:{valType:\"boolean\",dflt:!1},rivercolor:{valType:\"color\",dflt:a.waterColor},riverwidth:{valType:\"number\",min:0,dflt:1},showcountries:{valType:\"boolean\"},countrycolor:{valType:\"color\",dflt:n.defaultLine},countrywidth:{valType:\"number\",min:0,dflt:1},showsubunits:{valType:\"boolean\"},subunitcolor:{valType:\"color\",dflt:n.defaultLine},subunitwidth:{valType:\"number\",min:0,dflt:1},showframe:{valType:\"boolean\"},framecolor:{valType:\"color\",dflt:n.defaultLine},framewidth:{valType:\"number\",min:0,dflt:1},bgcolor:{valType:\"color\",dflt:n.background},lonaxis:s,lataxis:s},\"plot\",\"from-root\")},{\"../../../components/color/attributes\":569,\"../../../plot_api/edit_types\":727,\"../../domain\":770,\"../constants\":773}],779:[function(t,e,r){\"use strict\";e.exports=function(t){function e(t,e){return{type:\"Feature\",id:t.id,properties:t.properties,geometry:r(t.geometry,e)}}function r(e,n){if(!e)return null;if(\"GeometryCollection\"===e.type)return{type:\"GeometryCollection\",geometries:object.geometries.map(function(t){return r(t,n)})};if(!c.hasOwnProperty(e.type))return null;var i=c[e.type];return t.geo.stream(e,n(i)),i.result()}t.geo.project=function(t,e){var i=e.stream;if(!i)throw new Error(\"not yet supported\");return(t&&n.hasOwnProperty(t.type)?n[t.type]:r)(t,i)};var n={Feature:e,FeatureCollection:function(t,r){return{type:\"FeatureCollection\",features:t.features.map(function(t){return e(t,r)})}}},i=[],a=[],o={point:function(t,e){i.push([t,e])},result:function(){var t=i.length?i.length<2?{type:\"Point\",coordinates:i[0]}:{type:\"MultiPoint\",coordinates:i}:null;return i=[],t}},s={lineStart:u,point:function(t,e){i.push([t,e])},lineEnd:function(){i.length&&(a.push(i),i=[])},result:function(){var t=a.length?a.length<2?{type:\"LineString\",coordinates:a[0]}:{type:\"MultiLineString\",coordinates:a}:null;return a=[],t}},l={polygonStart:u,lineStart:u,point:function(t,e){i.push([t,e])},lineEnd:function(){var t=i.length;if(t){do{i.push(i[0].slice())}while(++t<4);a.push(i),i=[]}},polygonEnd:u,result:function(){if(!a.length)return null;var t=[],e=[];return a.forEach(function(r){!function(t){if((e=t.length)<4)return!1;for(var e,r=0,n=t[e-1][1]*t[0][0]-t[e-1][0]*t[0][1];++r<e;)n+=t[r-1][1]*t[r][0]-t[r-1][0]*t[r][1];return n<=0}(r)?e.push(r):t.push([r])}),e.forEach(function(e){var r=e[0];t.some(function(t){if(function(t,e){for(var r=e[0],n=e[1],i=!1,a=0,o=t.length,s=o-1;a<o;s=a++){var l=t[a],c=l[0],u=l[1],f=t[s],h=f[0],p=f[1];u>n^p>n&&r<(h-c)*(n-u)/(p-u)+c&&(i=!i)}return i}(t[0],r))return t.push(e),!0})||t.push([e])}),a=[],t.length?t.length>1?{type:\"MultiPolygon\",coordinates:t}:{type:\"Polygon\",coordinates:t[0]}:null}},c={Point:o,MultiPoint:o,LineString:s,MultiLineString:s,Polygon:l,MultiPolygon:l,Sphere:l};function u(){}var f=1e-6,h=f*f,p=Math.PI,d=p/2,g=(Math.sqrt(p),p/180),v=180/p;function m(t){return t>1?d:t<-1?-d:Math.asin(t)}function y(t){return t>1?0:t<-1?p:Math.acos(t)}var x=t.geo.projection,b=t.geo.projectionMutator;function _(t,e){var r=(2+d)*Math.sin(e);e/=2;for(var n=0,i=1/0;n<10&&Math.abs(i)>f;n++){var a=Math.cos(e);e-=i=(e+Math.sin(e)*(a+2)-r)/(2*a*(1+a))}return[2/Math.sqrt(p*(4+p))*t*(1+Math.cos(e)),2*Math.sqrt(p/(4+p))*Math.sin(e)]}t.geo.interrupt=function(e){var r,n=[[[[-p,0],[0,d],[p,0]]],[[[-p,0],[0,-d],[p,0]]]];function i(t,r){for(var i=r<0?-1:1,a=n[+(r<0)],o=0,s=a.length-1;o<s&&t>a[o][2][0];++o);var l=e(t-a[o][1][0],r);return l[0]+=e(a[o][1][0],i*r>i*a[o][0][1]?a[o][0][1]:r)[0],l}e.invert&&(i.invert=function(t,a){for(var o=r[+(a<0)],s=n[+(a<0)],c=0,u=o.length;c<u;++c){var f=o[c];if(f[0][0]<=t&&t<f[1][0]&&f[0][1]<=a&&a<f[1][1]){var h=e.invert(t-e(s[c][1][0],0)[0],a);return h[0]+=s[c][1][0],l(i(h[0],h[1]),[t,a])?h:null}}});var a=t.geo.projection(i),o=a.stream;function s(t,e){for(var r,n,i,a=-1,o=t.length,s=t[0],l=[];++a<o;){n=((r=t[a])[0]-s[0])/e,i=(r[1]-s[1])/e;for(var c=0;c<e;++c)l.push([s[0]+c*n,s[1]+c*i]);s=r}return l.push(r),l}function l(t,e){return Math.abs(t[0]-e[0])<f&&Math.abs(t[1]-e[1])<f}return a.stream=function(e){var r=a.rotate(),i=o(e),l=(a.rotate([0,0]),o(e));return a.rotate(r),i.sphere=function(){t.geo.stream(function(){for(var e=1e-6,r=[],i=0,a=n[0].length;i<a;++i){var o=n[0][i],l=180*o[0][0]/p,c=180*o[0][1]/p,u=180*o[1][1]/p,f=180*o[2][0]/p,h=180*o[2][1]/p;r.push(s([[l+e,c+e],[l+e,u-e],[f-e,u-e],[f-e,h+e]],30))}for(var i=n[1].length-1;i>=0;--i){var o=n[1][i],l=180*o[0][0]/p,c=180*o[0][1]/p,u=180*o[1][1]/p,f=180*o[2][0]/p,h=180*o[2][1]/p;r.push(s([[f-e,h-e],[f-e,u+e],[l+e,u+e],[l+e,c-e]],30))}return{type:\"Polygon\",coordinates:[t.merge(r)]}}(),l)},i},a.lobes=function(t){return arguments.length?(n=t.map(function(t){return t.map(function(t){return[[t[0][0]*p/180,t[0][1]*p/180],[t[1][0]*p/180,t[1][1]*p/180],[t[2][0]*p/180,t[2][1]*p/180]]})}),r=n.map(function(t){return t.map(function(t){var r,n=e(t[0][0],t[0][1])[0],i=e(t[2][0],t[2][1])[0],a=e(t[1][0],t[0][1])[1],o=e(t[1][0],t[1][1])[1];return a>o&&(r=a,a=o,o=r),[[n,a],[i,o]]})}),a):n.map(function(t){return t.map(function(t){return[[180*t[0][0]/p,180*t[0][1]/p],[180*t[1][0]/p,180*t[1][1]/p],[180*t[2][0]/p,180*t[2][1]/p]]})})},a},_.invert=function(t,e){var r=.5*e*Math.sqrt((4+p)/p),n=m(r),i=Math.cos(n);return[t/(2/Math.sqrt(p*(4+p))*(1+i)),m((n+r*(i+2))/(2+d))]},(t.geo.eckert4=function(){return x(_)}).raw=_;var w=t.geo.azimuthalEqualArea.raw;function k(t,e){if(arguments.length<2&&(e=t),1===e)return w;if(e===1/0)return M;function r(r,n){var i=w(r/e,n);return i[0]*=t,i}return r.invert=function(r,n){var i=w.invert(r/t,n);return i[0]*=e,i},r}function M(t,e){return[t*Math.cos(e)/Math.cos(e/=2),2*Math.sin(e)]}function A(t,e){return[3*t/(2*p)*Math.sqrt(p*p/3-e*e),e]}function T(t,e){return[t,1.25*Math.log(Math.tan(p/4+.4*e))]}function S(t){return function(e){var r,n=t*Math.sin(e),i=30;do{e-=r=(e+Math.sin(e)-n)/(1+Math.cos(e))}while(Math.abs(r)>f&&--i>0);return e/2}}M.invert=function(t,e){var r=2*m(e/2);return[t*Math.cos(r/2)/Math.cos(r),r]},(t.geo.hammer=function(){var t=2,e=b(k),r=e(t);return r.coefficient=function(r){return arguments.length?e(t=+r):t},r}).raw=k,A.invert=function(t,e){return[2/3*p*t/Math.sqrt(p*p/3-e*e),e]},(t.geo.kavrayskiy7=function(){return x(A)}).raw=A,T.invert=function(t,e){return[t,2.5*Math.atan(Math.exp(.8*e))-.625*p]},(t.geo.miller=function(){return x(T)}).raw=T,S(p);var E=function(t,e,r){var n=S(r);function i(r,i){return[t*r*Math.cos(i=n(i)),e*Math.sin(i)]}return i.invert=function(n,i){var a=m(i/e);return[n/(t*Math.cos(a)),m((2*a+Math.sin(2*a))/r)]},i}(Math.SQRT2/d,Math.SQRT2,p);function C(t,e){var r=e*e,n=r*r;return[t*(.8707-.131979*r+n*(n*(.003971*r-.001529*n)-.013791)),e*(1.007226+r*(.015085+n*(.028874*r-.044475-.005916*n)))]}(t.geo.mollweide=function(){return x(E)}).raw=E,C.invert=function(t,e){var r,n=e,i=25;do{var a=n*n,o=a*a;n-=r=(n*(1.007226+a*(.015085+o*(.028874*a-.044475-.005916*o)))-e)/(1.007226+a*(.045255+o*(.259866*a-.311325-.005916*11*o)))}while(Math.abs(r)>f&&--i>0);return[t/(.8707+(a=n*n)*(a*(a*a*a*(.003971-.001529*a)-.013791)-.131979)),n]},(t.geo.naturalEarth=function(){return x(C)}).raw=C;var L=[[.9986,-.062],[1,0],[.9986,.062],[.9954,.124],[.99,.186],[.9822,.248],[.973,.31],[.96,.372],[.9427,.434],[.9216,.4958],[.8962,.5571],[.8679,.6176],[.835,.6769],[.7986,.7346],[.7597,.7903],[.7186,.8435],[.6732,.8936],[.6213,.9394],[.5722,.9761],[.5322,1]];function z(t,e){var r,n=Math.min(18,36*Math.abs(e)/p),i=Math.floor(n),a=n-i,o=(r=L[i])[0],s=r[1],l=(r=L[++i])[0],c=r[1],u=(r=L[Math.min(19,++i)])[0],f=r[1];return[t*(l+a*(u-o)/2+a*a*(u-2*l+o)/2),(e>0?d:-d)*(c+a*(f-s)/2+a*a*(f-2*c+s)/2)]}function O(t,e){return[t*Math.cos(e),e]}function I(t,e){var r,n=Math.cos(e),i=(r=y(n*Math.cos(t/=2)))?r/Math.sin(r):1;return[2*n*Math.sin(t)*i,Math.sin(e)*i]}function P(t,e){var r=I(t,e);return[(r[0]+t/d)/2,(r[1]+e)/2]}L.forEach(function(t){t[1]*=1.0144}),z.invert=function(t,e){var r=e/d,n=90*r,i=Math.min(18,Math.abs(n/5)),a=Math.max(0,Math.floor(i));do{var o=L[a][1],s=L[a+1][1],l=L[Math.min(19,a+2)][1],c=l-o,u=l-2*s+o,f=2*(Math.abs(r)-s)/c,p=u/c,m=f*(1-p*f*(1-2*p*f));if(m>=0||1===a){n=(e>=0?5:-5)*(m+i);var y,x=50;do{m=(i=Math.min(18,Math.abs(n)/5))-(a=Math.floor(i)),o=L[a][1],s=L[a+1][1],l=L[Math.min(19,a+2)][1],n-=(y=(e>=0?d:-d)*(s+m*(l-o)/2+m*m*(l-2*s+o)/2)-e)*v}while(Math.abs(y)>h&&--x>0);break}}while(--a>=0);var b=L[a][0],_=L[a+1][0],w=L[Math.min(19,a+2)][0];return[t/(_+m*(w-b)/2+m*m*(w-2*_+b)/2),n*g]},(t.geo.robinson=function(){return x(z)}).raw=z,O.invert=function(t,e){return[t/Math.cos(e),e]},(t.geo.sinusoidal=function(){return x(O)}).raw=O,I.invert=function(t,e){if(!(t*t+4*e*e>p*p+f)){var r=t,n=e,i=25;do{var a,o=Math.sin(r),s=Math.sin(r/2),l=Math.cos(r/2),c=Math.sin(n),u=Math.cos(n),h=Math.sin(2*n),d=c*c,g=u*u,v=s*s,m=1-g*l*l,x=m?y(u*l)*Math.sqrt(a=1/m):a=0,b=2*x*u*s-t,_=x*c-e,w=a*(g*v+x*u*l*d),k=a*(.5*o*h-2*x*c*s),M=.25*a*(h*s-x*c*g*o),A=a*(d*l+x*v*u),T=k*M-A*w;if(!T)break;var S=(_*k-b*A)/T,E=(b*M-_*w)/T;r-=S,n-=E}while((Math.abs(S)>f||Math.abs(E)>f)&&--i>0);return[r,n]}},(t.geo.aitoff=function(){return x(I)}).raw=I,P.invert=function(t,e){var r=t,n=e,i=25;do{var a,o=Math.cos(n),s=Math.sin(n),l=Math.sin(2*n),c=s*s,u=o*o,h=Math.sin(r),p=Math.cos(r/2),g=Math.sin(r/2),v=g*g,m=1-u*p*p,x=m?y(o*p)*Math.sqrt(a=1/m):a=0,b=.5*(2*x*o*g+r/d)-t,_=.5*(x*s+n)-e,w=.5*a*(u*v+x*o*p*c)+.5/d,k=a*(h*l/4-x*s*g),M=.125*a*(l*g-x*s*u*h),A=.5*a*(c*p+x*v*o)+.5,T=k*M-A*w,S=(_*k-b*A)/T,E=(b*M-_*w)/T;r-=S,n-=E}while((Math.abs(S)>f||Math.abs(E)>f)&&--i>0);return[r,n]},(t.geo.winkel3=function(){return x(P)}).raw=P}},{}],780:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../../lib\"),a=Math.PI/180,o=180/Math.PI,s={cursor:\"pointer\"},l={cursor:\"auto\"};function c(t,e){return n.behavior.zoom().translate(e.translate()).scale(e.scale())}function u(t,e,r){var n=t.id,a=t.graphDiv,o=a.layout[n],s=a._fullLayout[n],l={};function c(t,e){var r=i.nestedProperty(s,t);r.get()!==e&&(r.set(e),i.nestedProperty(o,t).set(e),l[n+\".\"+t]=e)}r(c),c(\"projection.scale\",e.scale()/t.fitScale),a.emit(\"plotly_relayout\",l)}function f(t,e){var r=c(0,e);function i(r){var n=e.invert(t.midPt);r(\"center.lon\",n[0]),r(\"center.lat\",n[1])}return r.on(\"zoomstart\",function(){n.select(this).style(s)}).on(\"zoom\",function(){e.scale(n.event.scale).translate(n.event.translate),t.render()}).on(\"zoomend\",function(){n.select(this).style(l),u(t,e,i)}),r}function h(t,e){var r,i,a,o,f,h,p,d,g,v=c(0,e),m=2;function y(t){return e.invert(t)}function x(r){var n=e.rotate(),i=e.invert(t.midPt);r(\"projection.rotation.lon\",-n[0]),r(\"center.lon\",i[0]),r(\"center.lat\",i[1])}return v.on(\"zoomstart\",function(){n.select(this).style(s),r=n.mouse(this),i=e.rotate(),a=e.translate(),o=i,f=y(r)}).on(\"zoom\",function(){if(h=n.mouse(this),function(t){var r=y(t);if(!r)return!0;var n=e(r);return Math.abs(n[0]-t[0])>m||Math.abs(n[1]-t[1])>m}(r))return v.scale(e.scale()),void v.translate(e.translate());e.scale(n.event.scale),e.translate([a[0],n.event.translate[1]]),f?y(h)&&(d=y(h),p=[o[0]+(d[0]-f[0]),i[1],i[2]],e.rotate(p),o=p):f=y(r=h),g=!0,t.render()}).on(\"zoomend\",function(){n.select(this).style(l),g&&u(t,e,x)}),v}function p(t,e){var r,i={r:e.rotate(),k:e.scale()},f=c(0,e),h=function(t){var e=0,r=arguments.length,i=[];for(;++e<r;)i.push(arguments[e]);var a=n.dispatch.apply(null,i);return a.of=function(e,r){return function(i){var o;try{o=i.sourceEvent=n.event,i.target=t,n.event=i,a[i.type].apply(e,r)}finally{n.event=o}}},a}(f,\"zoomstart\",\"zoom\",\"zoomend\"),p=0,v=f.on;function x(t){var r=e.rotate();t(\"projection.rotation.lon\",-r[0]),t(\"projection.rotation.lat\",-r[1])}return f.on(\"zoomstart\",function(){n.select(this).style(s);var t,l,c,u,x,b,_,w,k,M,A,T=n.mouse(this),S=e.rotate(),E=S,C=e.translate(),L=(l=.5*(t=S)[0]*a,c=.5*t[1]*a,u=.5*t[2]*a,x=Math.sin(l),b=Math.cos(l),_=Math.sin(c),w=Math.cos(c),k=Math.sin(u),M=Math.cos(u),[b*w*M+x*_*k,x*w*M-b*_*k,b*_*M+x*w*k,b*w*k-x*_*M]);r=d(e,T),v.call(f,\"zoom\",function(){var t,a,s,l,c,u,f,p,v,x,b=n.mouse(this);if(e.scale(i.k=n.event.scale),r){if(d(e,b)){e.rotate(S).translate(C);var _=d(e,b),w=function(t,e){if(!t||!e)return;var r=function(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}(t,e),n=Math.sqrt(y(r,r)),i=.5*Math.acos(Math.max(-1,Math.min(1,y(t,e)))),a=Math.sin(i)/n;return n&&[Math.cos(i),r[2]*a,-r[1]*a,r[0]*a]}(r,_),k=function(t){return[Math.atan2(2*(t[0]*t[1]+t[2]*t[3]),1-2*(t[1]*t[1]+t[2]*t[2]))*o,Math.asin(Math.max(-1,Math.min(1,2*(t[0]*t[2]-t[3]*t[1]))))*o,Math.atan2(2*(t[0]*t[3]+t[1]*t[2]),1-2*(t[2]*t[2]+t[3]*t[3]))*o]}((a=w,s=(t=L)[0],l=t[1],c=t[2],u=t[3],f=a[0],p=a[1],v=a[2],x=a[3],[s*f-l*p-c*v-u*x,s*p+l*f+c*x-u*v,s*v-l*x+c*f+u*p,s*x+l*v-c*p+u*f])),M=i.r=function(t,e,r){var n=m(e,2,t[0]);n=m(n,1,t[1]),n=m(n,0,t[2]-r[2]);var i,a,s=e[0],l=e[1],c=e[2],u=n[0],f=n[1],h=n[2],p=Math.atan2(l,s)*o,d=Math.sqrt(s*s+l*l);Math.abs(f)>d?(a=(f>0?90:-90)-p,i=0):(a=Math.asin(f/d)*o-p,i=Math.sqrt(d*d-f*f));var v=180-a-2*p,y=(Math.atan2(h,u)-Math.atan2(c,i))*o,x=(Math.atan2(h,u)-Math.atan2(c,-i))*o,b=g(r[0],r[1],a,y),_=g(r[0],r[1],v,x);return b<=_?[a,y,r[2]]:[v,x,r[2]]}(k,r,E);isFinite(M[0])&&isFinite(M[1])&&isFinite(M[2])||(M=E),e.rotate(M),E=M}}else r=d(e,T=b);h.of(this,arguments)({type:\"zoom\"})}),A=h.of(this,arguments),p++||A({type:\"zoomstart\"})}).on(\"zoomend\",function(){var r;n.select(this).style(l),v.call(f,\"zoom\",null),r=h.of(this,arguments),--p||r({type:\"zoomend\"}),u(t,e,x)}).on(\"zoom.redraw\",function(){t.render()}),n.rebind(f,h,\"on\")}function d(t,e){var r=t.invert(e);return r&&isFinite(r[0])&&isFinite(r[1])&&function(t){var e=t[0]*a,r=t[1]*a,n=Math.cos(r);return[n*Math.cos(e),n*Math.sin(e),Math.sin(r)]}(r)}function g(t,e,r,n){var i=v(r-t),a=v(n-e);return Math.sqrt(i*i+a*a)}function v(t){return(t%360+540)%360-180}function m(t,e,r){var n=r*a,i=t.slice(),o=0===e?1:0,s=2===e?1:2,l=Math.cos(n),c=Math.sin(n);return i[o]=t[o]*l-t[s]*c,i[s]=t[s]*l+t[o]*c,i}function y(t,e){for(var r=0,n=0,i=t.length;n<i;++n)r+=t[n]*e[n];return r}e.exports=function(t,e){var r=t.projection;return(e._isScoped?f:e._isClipped?p:h)(t,r)}},{\"../../lib\":696,d3:148}],781:[function(t,e,r){\"use strict\";var n=t(\"../registry\"),i=t(\"./cartesian/constants\").SUBPLOT_PATTERN;r.getSubplotCalcData=function(t,e,r){var i=n.subplotsRegistry[e];if(!i)return[];for(var a=i.attr,o=[],s=0;s<t.length;s++){var l=t[s];l[0].trace[a]===r&&o.push(l)}return o},r.getModuleCalcData=function(t,e){var r,i=[],a=[];if(!(r=\"string\"==typeof e?n.getModule(e).plot:\"function\"==typeof e?e:e.plot))return[i,t];for(var o=0;o<t.length;o++){var s=t[o],l=s[0].trace;!0===l.visible&&(l._module.plot===r?i.push(s):a.push(s))}return[i,a]},r.getSubplotData=function(t,e,r){if(!n.subplotsRegistry[e])return[];var a,o,s,l=n.subplotsRegistry[e].attr,c=[];if(\"gl2d\"===e){var u=r.match(i);o=\"x\"+u[1],s=\"y\"+u[2]}for(var f=0;f<t.length;f++)a=t[f],\"gl2d\"===e&&n.traceIs(a,\"gl2d\")?a[l[0]]===o&&a[l[1]]===s&&c.push(a):a[l]===r&&c.push(a);return c}},{\"../registry\":827,\"./cartesian/constants\":750}],782:[function(t,e,r){\"use strict\";var n=t(\"mouse-change\"),i=t(\"mouse-wheel\"),a=t(\"mouse-event-offset\"),o=t(\"../cartesian/constants\"),s=t(\"has-passive-events\");function l(t,e){this.element=t,this.plot=e,this.mouseListener=null,this.wheelListener=null,this.lastInputTime=Date.now(),this.lastPos=[0,0],this.boxEnabled=!1,this.boxInited=!1,this.boxStart=[0,0],this.boxEnd=[0,0],this.dragStart=[0,0]}e.exports=function(t){var e=t.mouseContainer,r=t.glplot,c=new l(e,r);function u(){t.xaxis.autorange=!1,t.yaxis.autorange=!1}function f(e,n,i){var a,s,l=t.calcDataBox(),f=r.viewBox,h=c.lastPos[0],p=c.lastPos[1],d=o.MINDRAG*r.pixelRatio,g=o.MINZOOM*r.pixelRatio;function v(e,r,n){var i=Math.min(r,n),a=Math.max(r,n);i!==a?(l[e]=i,l[e+2]=a,c.dataBox=l,t.setRanges(l)):(t.selectBox.selectBox=[0,0,1,1],t.glplot.setDirty())}switch(n*=r.pixelRatio,i*=r.pixelRatio,i=f[3]-f[1]-i,t.fullLayout.dragmode){case\"zoom\":if(e){var m=n/(f[2]-f[0])*(l[2]-l[0])+l[0],y=i/(f[3]-f[1])*(l[3]-l[1])+l[1];c.boxInited||(c.boxStart[0]=m,c.boxStart[1]=y,c.dragStart[0]=n,c.dragStart[1]=i),c.boxEnd[0]=m,c.boxEnd[1]=y,c.boxInited=!0,c.boxEnabled||c.boxStart[0]===c.boxEnd[0]&&c.boxStart[1]===c.boxEnd[1]||(c.boxEnabled=!0);var x=Math.abs(c.dragStart[0]-n)<g,b=Math.abs(c.dragStart[1]-i)<g;if(!function(){for(var e=t.graphDiv._fullLayout._axisConstraintGroups,r=t.xaxis._id,n=t.yaxis._id,i=0;i<e.length;i++)if(-1!==e[i][r]){if(-1!==e[i][n])return!0;break}return!1}()||x&&b)x&&(c.boxEnd[0]=c.boxStart[0]),b&&(c.boxEnd[1]=c.boxStart[1]);else{a=c.boxEnd[0]-c.boxStart[0],s=c.boxEnd[1]-c.boxStart[1];var _=(l[3]-l[1])/(l[2]-l[0]);Math.abs(a*_)>Math.abs(s)?(c.boxEnd[1]=c.boxStart[1]+Math.abs(a)*_*(s>=0?1:-1),c.boxEnd[1]<l[1]?(c.boxEnd[1]=l[1],c.boxEnd[0]=c.boxStart[0]+(l[1]-c.boxStart[1])/Math.abs(_)):c.boxEnd[1]>l[3]&&(c.boxEnd[1]=l[3],c.boxEnd[0]=c.boxStart[0]+(l[3]-c.boxStart[1])/Math.abs(_))):(c.boxEnd[0]=c.boxStart[0]+Math.abs(s)/_*(a>=0?1:-1),c.boxEnd[0]<l[0]?(c.boxEnd[0]=l[0],c.boxEnd[1]=c.boxStart[1]+(l[0]-c.boxStart[0])*Math.abs(_)):c.boxEnd[0]>l[2]&&(c.boxEnd[0]=l[2],c.boxEnd[1]=c.boxStart[1]+(l[2]-c.boxStart[0])*Math.abs(_)))}}else c.boxEnabled?(a=c.boxStart[0]!==c.boxEnd[0],s=c.boxStart[1]!==c.boxEnd[1],a||s?(a&&(v(0,c.boxStart[0],c.boxEnd[0]),t.xaxis.autorange=!1),s&&(v(1,c.boxStart[1],c.boxEnd[1]),t.yaxis.autorange=!1),t.relayoutCallback()):t.glplot.setDirty(),c.boxEnabled=!1,c.boxInited=!1):c.boxInited&&(c.boxInited=!1);break;case\"pan\":c.boxEnabled=!1,c.boxInited=!1,e?(c.panning||(c.dragStart[0]=n,c.dragStart[1]=i),Math.abs(c.dragStart[0]-n)<d&&(n=c.dragStart[0]),Math.abs(c.dragStart[1]-i)<d&&(i=c.dragStart[1]),a=(h-n)*(l[2]-l[0])/(r.viewBox[2]-r.viewBox[0]),s=(p-i)*(l[3]-l[1])/(r.viewBox[3]-r.viewBox[1]),l[0]+=a,l[2]+=a,l[1]+=s,l[3]+=s,t.setRanges(l),c.panning=!0,c.lastInputTime=Date.now(),u(),t.cameraChanged(),t.handleAnnotations()):c.panning&&(c.panning=!1,t.relayoutCallback())}c.lastPos[0]=n,c.lastPos[1]=i}return c.mouseListener=n(e,f),e.addEventListener(\"touchstart\",function(t){var r=a(t.changedTouches[0],e);f(0,r[0],r[1]),f(1,r[0],r[1]),t.preventDefault()},!!s&&{passive:!1}),e.addEventListener(\"touchmove\",function(t){t.preventDefault();var r=a(t.changedTouches[0],e);f(1,r[0],r[1]),t.preventDefault()},!!s&&{passive:!1}),e.addEventListener(\"touchend\",function(t){f(0,c.lastPos[0],c.lastPos[1]),t.preventDefault()},!!s&&{passive:!1}),c.wheelListener=i(e,function(e,n){if(!t.scrollZoom)return!1;var i=t.calcDataBox(),a=r.viewBox,o=c.lastPos[0],s=c.lastPos[1],l=Math.exp(5*n/(a[3]-a[1])),f=o/(a[2]-a[0])*(i[2]-i[0])+i[0],h=s/(a[3]-a[1])*(i[3]-i[1])+i[1];return i[0]=(i[0]-f)*l+f,i[2]=(i[2]-f)*l+f,i[1]=(i[1]-h)*l+h,i[3]=(i[3]-h)*l+h,t.setRanges(i),c.lastInputTime=Date.now(),u(),t.cameraChanged(),t.handleAnnotations(),t.relayoutCallback(),!0},!0),c}},{\"../cartesian/constants\":750,\"has-passive-events\":394,\"mouse-change\":418,\"mouse-event-offset\":419,\"mouse-wheel\":421}],783:[function(t,e,r){\"use strict\";var n=t(\"../cartesian/axes\"),i=t(\"../../lib/html2unicode\"),a=t(\"../../lib/str2rgbarray\");function o(t){this.scene=t,this.gl=t.gl,this.pixelRatio=t.pixelRatio,this.screenBox=[0,0,1,1],this.viewBox=[0,0,1,1],this.dataBox=[-1,-1,1,1],this.borderLineEnable=[!1,!1,!1,!1],this.borderLineWidth=[1,1,1,1],this.borderLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.ticks=[[],[]],this.tickEnable=[!0,!0,!1,!1],this.tickPad=[15,15,15,15],this.tickAngle=[0,0,0,0],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickMarkLength=[0,0,0,0],this.tickMarkWidth=[0,0,0,0],this.tickMarkColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labels=[\"x\",\"y\"],this.labelEnable=[!0,!0,!1,!1],this.labelAngle=[0,Math.PI/2,0,3*Math.PI/2],this.labelPad=[15,15,15,15],this.labelSize=[12,12],this.labelFont=[\"sans-serif\",\"sans-serif\"],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.title=\"\",this.titleEnable=!0,this.titleCenter=[0,0,0,0],this.titleAngle=0,this.titleColor=[0,0,0,1],this.titleFont=\"sans-serif\",this.titleSize=18,this.gridLineEnable=[!0,!0],this.gridLineColor=[[0,0,0,.5],[0,0,0,.5]],this.gridLineWidth=[1,1],this.zeroLineEnable=[!0,!0],this.zeroLineWidth=[1,1],this.zeroLineColor=[[0,0,0,1],[0,0,0,1]],this.borderColor=!1,this.backgroundColor=[0,0,0,0],this.static=this.scene.staticPlot}var s=o.prototype,l=[\"xaxis\",\"yaxis\"];s.merge=function(t){var e,r,n,o,s,c,u,f,h,p,d;for(this.titleEnable=!1,this.backgroundColor=a(t.plot_bgcolor),p=0;p<2;++p){var g=(e=l[p]).charAt(0);for(n=(r=t[this.scene[e]._name]).title===this.scene.fullLayout._dfltTitle[g]?\"\":r.title,d=0;d<=2;d+=2)this.labelEnable[p+d]=!1,this.labels[p+d]=i(n),this.labelColor[p+d]=a(r.titlefont.color),this.labelFont[p+d]=r.titlefont.family,this.labelSize[p+d]=r.titlefont.size,this.labelPad[p+d]=this.getLabelPad(e,r),this.tickEnable[p+d]=!1,this.tickColor[p+d]=a((r.tickfont||{}).color),this.tickAngle[p+d]=\"auto\"===r.tickangle?0:Math.PI*-r.tickangle/180,this.tickPad[p+d]=this.getTickPad(r),this.tickMarkLength[p+d]=0,this.tickMarkWidth[p+d]=r.tickwidth||0,this.tickMarkColor[p+d]=a(r.tickcolor),this.borderLineEnable[p+d]=!1,this.borderLineColor[p+d]=a(r.linecolor),this.borderLineWidth[p+d]=r.linewidth||0;u=this.hasSharedAxis(r),s=this.hasAxisInDfltPos(e,r)&&!u,c=this.hasAxisInAltrPos(e,r)&&!u,o=r.mirror||!1,f=u?-1!==String(o).indexOf(\"all\"):!!o,h=u?\"allticks\"===o:-1!==String(o).indexOf(\"ticks\"),s?this.labelEnable[p]=!0:c&&(this.labelEnable[p+2]=!0),s?this.tickEnable[p]=r.showticklabels:c&&(this.tickEnable[p+2]=r.showticklabels),(s||f)&&(this.borderLineEnable[p]=r.showline),(c||f)&&(this.borderLineEnable[p+2]=r.showline),(s||h)&&(this.tickMarkLength[p]=this.getTickMarkLength(r)),(c||h)&&(this.tickMarkLength[p+2]=this.getTickMarkLength(r)),this.gridLineEnable[p]=r.showgrid,this.gridLineColor[p]=a(r.gridcolor),this.gridLineWidth[p]=r.gridwidth,this.zeroLineEnable[p]=r.zeroline,this.zeroLineColor[p]=a(r.zerolinecolor),this.zeroLineWidth[p]=r.zerolinewidth}},s.hasSharedAxis=function(t){var e=this.scene,r=e.fullLayout._subplots.gl2d;return 0!==n.findSubplotsWithAxis(r,t).indexOf(e.id)},s.hasAxisInDfltPos=function(t,e){var r=e.side;return\"xaxis\"===t?\"bottom\"===r:\"yaxis\"===t?\"left\"===r:void 0},s.hasAxisInAltrPos=function(t,e){var r=e.side;return\"xaxis\"===t?\"top\"===r:\"yaxis\"===t?\"right\"===r:void 0},s.getLabelPad=function(t,e){var r=e.titlefont.size,n=e.showticklabels;return\"xaxis\"===t?\"top\"===e.side?r*(1.5+(n?1:0))-10:r*(1.5+(n?.5:0))-10:\"yaxis\"===t?\"right\"===e.side?10+r*(1.5+(n?1:.5)):10+r*(1.5+(n?.5:0)):void 0},s.getTickPad=function(t){return\"outside\"===t.ticks?10+t.ticklen:15},s.getTickMarkLength=function(t){if(!t.ticks)return 0;var e=t.ticklen;return\"inside\"===t.ticks?-e:e},e.exports=function(t){return new o(t)}},{\"../../lib/html2unicode\":694,\"../../lib/str2rgbarray\":719,\"../cartesian/axes\":744}],784:[function(t,e,r){\"use strict\";var n=t(\"../../plot_api/edit_types\").overrideAll,i=t(\"./scene2d\"),a=t(\"../layout_attributes\"),o=t(\"../../constants/xmlns_namespaces\"),s=t(\"../cartesian/constants\"),l=t(\"../cartesian\"),c=t(\"../../components/fx/layout_attributes\"),u=t(\"../get_data\").getSubplotData;r.name=\"gl2d\",r.attr=[\"xaxis\",\"yaxis\"],r.idRoot=[\"x\",\"y\"],r.idRegex=s.idRegex,r.attrRegex=s.attrRegex,r.attributes=t(\"../cartesian/attributes\"),r.supplyLayoutDefaults=function(t,e,r){e._has(\"cartesian\")||l.supplyLayoutDefaults(t,e,r)},r.layoutAttrOverrides=n(l.layoutAttributes,\"plot\",\"from-root\"),r.baseLayoutAttrOverrides=n({plot_bgcolor:a.plot_bgcolor,hoverlabel:c.hoverlabel},\"plot\",\"nested\"),r.plot=function(t){for(var e=t._fullLayout,r=t._fullData,n=e._subplots.gl2d,a=0;a<n.length;a++){var o=n[a],s=e._plots[o],l=u(r,\"gl2d\",o),c=s._scene2d;void 0===c&&(c=new i({id:o,graphDiv:t,container:t.querySelector(\".gl-container\"),staticPlot:t._context.staticPlot,plotGlPixelRatio:t._context.plotGlPixelRatio},e),s._scene2d=c),c.plot(l,t.calcdata,e,t.layout)}},r.clean=function(t,e,r,n){for(var i=n._subplots.gl2d||[],a=0;a<i.length;a++){var o=i[a],s=n._plots[o];if(s._scene2d)0===u(t,\"gl2d\",o).length&&(s._scene2d.destroy(),delete n._plots[o])}l.clean.apply(this,arguments)},r.drawFramework=function(t){t._context.staticPlot||l.drawFramework(t)},r.toSVG=function(t){for(var e=t._fullLayout,r=e._subplots.gl2d,n=0;n<r.length;n++){var i=e._plots[r[n]]._scene2d,a=i.toImage(\"png\");e._glimages.append(\"svg:image\").attr({xmlns:o.svg,\"xlink:href\":a,x:0,y:0,width:\"100%\",height:\"100%\",preserveAspectRatio:\"none\"}),i.destroy()}},r.updateFx=function(t){for(var e=t._fullLayout,r=e._subplots.gl2d,n=0;n<r.length;n++){e._plots[r[n]]._scene2d.updateFx(e.dragmode)}}},{\"../../components/fx/layout_attributes\":613,\"../../constants/xmlns_namespaces\":674,\"../../plot_api/edit_types\":727,\"../cartesian\":756,\"../cartesian/attributes\":742,\"../cartesian/constants\":750,\"../get_data\":781,\"../layout_attributes\":799,\"./scene2d\":785}],785:[function(t,e,r){\"use strict\";var n,i,a=t(\"../../registry\"),o=t(\"../../plots/cartesian/axes\"),s=t(\"../../components/fx\"),l=t(\"gl-plot2d\"),c=t(\"gl-spikes2d\"),u=t(\"gl-select-box\"),f=t(\"webgl-context\"),h=t(\"./convert\"),p=t(\"./camera\"),d=t(\"../../lib/html2unicode\"),g=t(\"../../lib/show_no_webgl_msg\"),v=t(\"../cartesian/constraints\"),m=v.enforce,y=v.clean,x=t(\"../cartesian/autorange\").doAutoRange,b=[\"xaxis\",\"yaxis\"],_=t(\"../cartesian/constants\").SUBPLOT_PATTERN;function w(t,e){this.container=t.container,this.graphDiv=t.graphDiv,this.pixelRatio=t.plotGlPixelRatio||window.devicePixelRatio,this.id=t.id,this.staticPlot=!!t.staticPlot,this.scrollZoom=this.graphDiv._context.scrollZoom,this.fullData=null,this.updateRefs(e),this.makeFramework(),this.stopped||(this.glplotOptions=h(this),this.glplotOptions.merge(e),this.glplot=l(this.glplotOptions),this.camera=p(this),this.traces={},this.spikes=c(this.glplot),this.selectBox=u(this.glplot,{innerFill:!1,outerFill:!0}),this.lastButtonState=0,this.pickResult=null,this.isMouseOver=!0,this.stopped=!1,this.redraw=this.draw.bind(this),this.redraw())}e.exports=w;var k=w.prototype;k.makeFramework=function(){if(this.staticPlot){if(!(i||(n=document.createElement(\"canvas\"),i=f({canvas:n,preserveDrawingBuffer:!1,premultipliedAlpha:!0,antialias:!0}))))throw new Error(\"Error creating static canvas/context for image server\");this.canvas=n,this.gl=i}else{var t=this.container.querySelector(\".gl-canvas-focus\"),e=f({canvas:t,preserveDrawingBuffer:!0,premultipliedAlpha:!0});if(!e)return g(this),void(this.stopped=!0);this.canvas=t,this.gl=e}var r=this.canvas;r.style.width=\"100%\",r.style.height=\"100%\",r.style.position=\"absolute\",r.style.top=\"0px\",r.style.left=\"0px\",r.style[\"pointer-events\"]=\"none\",this.updateSize(r),r.className+=\" user-select-none\";var a=this.svgContainer=document.createElementNS(\"http://www.w3.org/2000/svg\",\"svg\");a.style.position=\"absolute\",a.style.top=a.style.left=\"0px\",a.style.width=a.style.height=\"100%\",a.style[\"z-index\"]=20,a.style[\"pointer-events\"]=\"none\";var o=this.mouseContainer=document.createElement(\"div\");o.style.position=\"absolute\",o.style[\"pointer-events\"]=\"auto\",this.pickCanvas=this.container.querySelector(\".gl-canvas-pick\");var s=this.container;s.appendChild(a),s.appendChild(o);var l=this;o.addEventListener(\"mouseout\",function(){l.isMouseOver=!1,l.unhover()}),o.addEventListener(\"mouseover\",function(){l.isMouseOver=!0})},k.toImage=function(t){t||(t=\"png\"),this.stopped=!0,this.staticPlot&&this.container.appendChild(n),this.updateSize(this.canvas);var e=this.glplot.gl,r=e.drawingBufferWidth,i=e.drawingBufferHeight;e.clearColor(1,1,1,0),e.clear(e.COLOR_BUFFER_BIT|e.DEPTH_BUFFER_BIT),this.glplot.setDirty(),this.glplot.draw(),e.bindFramebuffer(e.FRAMEBUFFER,null);var a=new Uint8Array(r*i*4);e.readPixels(0,0,r,i,e.RGBA,e.UNSIGNED_BYTE,a);for(var o=0,s=i-1;o<s;++o,--s)for(var l=0;l<r;++l)for(var c=0;c<4;++c){var u=a[4*(r*o+l)+c];a[4*(r*o+l)+c]=a[4*(r*s+l)+c],a[4*(r*s+l)+c]=u}var f=document.createElement(\"canvas\");f.width=r,f.height=i;var h,p=f.getContext(\"2d\"),d=p.createImageData(r,i);switch(d.data.set(a),p.putImageData(d,0,0),t){case\"jpeg\":h=f.toDataURL(\"image/jpeg\");break;case\"webp\":h=f.toDataURL(\"image/webp\");break;default:h=f.toDataURL(\"image/png\")}return this.staticPlot&&this.container.removeChild(n),h},k.updateSize=function(t){t||(t=this.canvas);var e=this.pixelRatio,r=this.fullLayout,n=r.width,i=r.height,a=0|Math.ceil(e*n),o=0|Math.ceil(e*i);return t.width===a&&t.height===o||(t.width=a,t.height=o),t},k.computeTickMarks=function(){this.xaxis.setScale(),this.yaxis.setScale();for(var t=[o.calcTicks(this.xaxis),o.calcTicks(this.yaxis)],e=0;e<2;++e)for(var r=0;r<t[e].length;++r)t[e][r].text=d(t[e][r].text+\"\");return t},k.updateRefs=function(t){this.fullLayout=t;var e=this.id.match(_),r=\"xaxis\"+e[1],n=\"yaxis\"+e[2];this.xaxis=this.fullLayout[r],this.yaxis=this.fullLayout[n]},k.relayoutCallback=function(){var t=this.graphDiv,e=this.xaxis,r=this.yaxis,n=t.layout;n.xaxis.autorange=e.autorange,n.xaxis.range=e.range.slice(0),n.yaxis.autorange=r.autorange,n.yaxis.range=r.range.slice(0);var i={lastInputTime:this.camera.lastInputTime};i[e._name]=e.range.slice(0),i[r._name]=r.range.slice(0),t.emit(\"plotly_relayout\",i)},k.cameraChanged=function(){var t=this.camera;this.glplot.setDataBox(this.calcDataBox());var e=this.computeTickMarks();(function(t,e){for(var r=0;r<2;++r){var n=t[r],i=e[r];if(n.length!==i.length)return!0;for(var a=0;a<n.length;++a)if(n[a].x!==i[a].x)return!0}return!1})(e,this.glplotOptions.ticks)&&(this.glplotOptions.ticks=e,this.glplotOptions.dataBox=t.dataBox,this.glplot.update(this.glplotOptions),this.handleAnnotations())},k.handleAnnotations=function(){for(var t=this.graphDiv,e=this.fullLayout.annotations,r=0;r<e.length;r++){var n=e[r];n.xref===this.xaxis._id&&n.yref===this.yaxis._id&&a.getComponentMethod(\"annotations\",\"drawOne\")(t,r)}},k.destroy=function(){if(this.glplot){var t=this.traces;t&&Object.keys(t).map(function(e){t[e].dispose(),delete t[e]}),this.glplot.dispose(),this.container.removeChild(this.svgContainer),this.container.removeChild(this.mouseContainer),this.fullData=null,this.glplot=null,this.stopped=!0,this.camera.mouseListener.enabled=!1,this.mouseContainer.removeEventListener(\"wheel\",this.camera.wheelListener),this.camera=null}},k.plot=function(t,e,r){var n=this.glplot;this.updateRefs(r),this.xaxis.clearCalc(),this.yaxis.clearCalc(),this.updateTraces(t,e),this.updateFx(r.dragmode);var i=r.width,a=r.height;this.updateSize(this.canvas);var o=this.glplotOptions;o.merge(r),o.screenBox=[0,0,i,a];var s={_fullLayout:{_axisConstraintGroups:this.graphDiv._fullLayout._axisConstraintGroups,xaxis:this.xaxis,yaxis:this.yaxis}};y(s,this.xaxis),y(s,this.yaxis);var l,c,u=r._size,f=this.xaxis.domain,h=this.yaxis.domain;for(o.viewBox=[u.l+f[0]*u.w,u.b+h[0]*u.h,i-u.r-(1-f[1])*u.w,a-u.t-(1-h[1])*u.h],this.mouseContainer.style.width=u.w*(f[1]-f[0])+\"px\",this.mouseContainer.style.height=u.h*(h[1]-h[0])+\"px\",this.mouseContainer.height=u.h*(h[1]-h[0]),this.mouseContainer.style.left=u.l+f[0]*u.w+\"px\",this.mouseContainer.style.top=u.t+(1-h[1])*u.h+\"px\",c=0;c<2;++c)(l=this[b[c]])._length=o.viewBox[c+2]-o.viewBox[c],x(this.graphDiv,l),l.setScale();m(s),o.ticks=this.computeTickMarks(),o.dataBox=this.calcDataBox(),o.merge(r),n.update(o),this.glplot.draw()},k.calcDataBox=function(){var t=this.xaxis,e=this.yaxis,r=t.range,n=e.range,i=t.r2l,a=e.r2l;return[i(r[0]),a(n[0]),i(r[1]),a(n[1])]},k.setRanges=function(t){var e=this.xaxis,r=this.yaxis,n=e.l2r,i=r.l2r;e.range=[n(t[0]),n(t[2])],r.range=[i(t[1]),i(t[3])]},k.updateTraces=function(t,e){var r,n,i,a=Object.keys(this.traces);this.fullData=t;t:for(r=0;r<a.length;r++){var o=a[r],s=this.traces[o];for(n=0;n<t.length;n++)if((i=t[n]).uid===o&&i.type===s.type)continue t;s.dispose(),delete this.traces[o]}for(r=0;r<t.length;r++){i=t[r];var l=e[r],c=this.traces[i.uid];c?c.update(i,l):(c=i._module.plot(this,i,l),this.traces[i.uid]=c)}this.glplot.objects.sort(function(t,e){return t._trace.index-e._trace.index})},k.updateFx=function(t){\"lasso\"===t||\"select\"===t?(this.pickCanvas.style[\"pointer-events\"]=\"none\",this.mouseContainer.style[\"pointer-events\"]=\"none\"):(this.pickCanvas.style[\"pointer-events\"]=\"auto\",this.mouseContainer.style[\"pointer-events\"]=\"auto\"),this.mouseContainer.style.cursor=\"pan\"===t?\"move\":\"zoom\"===t?\"crosshair\":null},k.emitPointAction=function(t,e){for(var r,n=t.trace.uid,i=t.pointIndex,a=0;a<this.fullData.length;a++)this.fullData[a].uid===n&&(r=this.fullData[a]);var o={x:t.traceCoord[0],y:t.traceCoord[1],curveNumber:r.index,pointNumber:i,data:r._input,fullData:this.fullData,xaxis:this.xaxis,yaxis:this.yaxis};s.appendArrayPointValue(o,r,i),this.graphDiv.emit(e,{points:[o]})},k.draw=function(){if(!this.stopped){requestAnimationFrame(this.redraw);var t=this.glplot,e=this.camera,r=e.mouseListener,n=1===this.lastButtonState&&0===r.buttons,i=this.fullLayout;this.lastButtonState=r.buttons,this.cameraChanged();var a,o=r.x*t.pixelRatio,l=this.canvas.height-t.pixelRatio*r.y;if(e.boxEnabled&&\"zoom\"===i.dragmode){this.selectBox.enabled=!0;for(var c=this.selectBox.selectBox=[Math.min(e.boxStart[0],e.boxEnd[0]),Math.min(e.boxStart[1],e.boxEnd[1]),Math.max(e.boxStart[0],e.boxEnd[0]),Math.max(e.boxStart[1],e.boxEnd[1])],u=0;u<2;u++)e.boxStart[u]===e.boxEnd[u]&&(c[u]=t.dataBox[u],c[u+2]=t.dataBox[u+2]);t.setDirty()}else if(!e.panning&&this.isMouseOver){this.selectBox.enabled=!1;var f=i._size,h=this.xaxis.domain,p=this.yaxis.domain,d=(a=t.pick(o/t.pixelRatio+f.l+h[0]*f.w,l/t.pixelRatio-(f.t+(1-p[1])*f.h)))&&a.object._trace.handlePick(a);if(d&&n&&this.emitPointAction(d,\"plotly_click\"),a&&\"skip\"!==a.object._trace.hoverinfo&&i.hovermode&&d&&(!this.lastPickResult||this.lastPickResult.traceUid!==d.trace.uid||this.lastPickResult.dataCoord[0]!==d.dataCoord[0]||this.lastPickResult.dataCoord[1]!==d.dataCoord[1])){var g=d;this.lastPickResult={traceUid:d.trace?d.trace.uid:null,dataCoord:d.dataCoord.slice()},this.spikes.update({center:a.dataCoord}),g.screenCoord=[((t.viewBox[2]-t.viewBox[0])*(a.dataCoord[0]-t.dataBox[0])/(t.dataBox[2]-t.dataBox[0])+t.viewBox[0])/t.pixelRatio,(this.canvas.height-(t.viewBox[3]-t.viewBox[1])*(a.dataCoord[1]-t.dataBox[1])/(t.dataBox[3]-t.dataBox[1])-t.viewBox[1])/t.pixelRatio],this.emitPointAction(d,\"plotly_hover\");var v=this.fullData[g.trace.index]||{},m=g.pointIndex,y=s.castHoverinfo(v,i,m);if(y&&\"all\"!==y){var x=y.split(\"+\");-1===x.indexOf(\"x\")&&(g.traceCoord[0]=void 0),-1===x.indexOf(\"y\")&&(g.traceCoord[1]=void 0),-1===x.indexOf(\"z\")&&(g.traceCoord[2]=void 0),-1===x.indexOf(\"text\")&&(g.textLabel=void 0),-1===x.indexOf(\"name\")&&(g.name=void 0)}s.loneHover({x:g.screenCoord[0],y:g.screenCoord[1],xLabel:this.hoverFormatter(\"xaxis\",g.traceCoord[0]),yLabel:this.hoverFormatter(\"yaxis\",g.traceCoord[1]),zLabel:g.traceCoord[2],text:g.textLabel,name:g.name,color:s.castHoverOption(v,m,\"bgcolor\")||g.color,borderColor:s.castHoverOption(v,m,\"bordercolor\"),fontFamily:s.castHoverOption(v,m,\"font.family\"),fontSize:s.castHoverOption(v,m,\"font.size\"),fontColor:s.castHoverOption(v,m,\"font.color\")},{container:this.svgContainer,gd:this.graphDiv})}}a||this.unhover(),t.draw()}},k.unhover=function(){this.lastPickResult&&(this.spikes.update({}),this.lastPickResult=null,this.graphDiv.emit(\"plotly_unhover\"),s.loneUnhover(this.svgContainer))},k.hoverFormatter=function(t,e){if(void 0!==e){var r=this[t];return o.tickText(r,r.c2l(e),\"hover\").text}}},{\"../../components/fx\":612,\"../../lib/html2unicode\":694,\"../../lib/show_no_webgl_msg\":717,\"../../plots/cartesian/axes\":744,\"../../registry\":827,\"../cartesian/autorange\":743,\"../cartesian/constants\":750,\"../cartesian/constraints\":752,\"./camera\":782,\"./convert\":783,\"gl-plot2d\":275,\"gl-select-box\":286,\"gl-spikes2d\":295,\"webgl-context\":533}],786:[function(t,e,r){\"use strict\";e.exports=function(t,e){t=t||document.body,e=e||{};var r=[.01,1/0];\"distanceLimits\"in e&&(r[0]=e.distanceLimits[0],r[1]=e.distanceLimits[1]);\"zoomMin\"in e&&(r[0]=e.zoomMin);\"zoomMax\"in e&&(r[1]=e.zoomMax);var c=i({center:e.center||[0,0,0],up:e.up||[0,1,0],eye:e.eye||[0,0,10],mode:e.mode||\"orbit\",distanceLimits:r}),u=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],f=0,h=t.clientWidth,p=t.clientHeight,d={keyBindingMode:\"rotate\",view:c,element:t,delay:e.delay||16,rotateSpeed:e.rotateSpeed||1,zoomSpeed:e.zoomSpeed||1,translateSpeed:e.translateSpeed||1,flipX:!!e.flipX,flipY:!!e.flipY,modes:c.modes,tick:function(){var e=n(),r=this.delay,i=e-2*r;c.idle(e-r),c.recalcMatrix(i),c.flush(e-(100+2*r));for(var a=!0,o=c.computedMatrix,s=0;s<16;++s)a=a&&u[s]===o[s],u[s]=o[s];var l=t.clientWidth===h&&t.clientHeight===p;return h=t.clientWidth,p=t.clientHeight,a?!l:(f=Math.exp(c.computedRadius[0]),!0)},lookAt:function(t,e,r){c.lookAt(c.lastT(),t,e,r)},rotate:function(t,e,r){c.rotate(c.lastT(),t,e,r)},pan:function(t,e,r){c.pan(c.lastT(),t,e,r)},translate:function(t,e,r){c.translate(c.lastT(),t,e,r)}};Object.defineProperties(d,{matrix:{get:function(){return c.computedMatrix},set:function(t){return c.setMatrix(c.lastT(),t),c.computedMatrix},enumerable:!0},mode:{get:function(){return c.getMode()},set:function(t){var e=c.computedUp.slice(),r=c.computedEye.slice(),i=c.computedCenter.slice();if(c.setMode(t),\"turntable\"===t){var a=n();c._active.lookAt(a,r,i,e),c._active.lookAt(a+500,r,i,[0,0,1]),c._active.flush(a)}return c.getMode()},enumerable:!0},center:{get:function(){return c.computedCenter},set:function(t){return c.lookAt(c.lastT(),null,t),c.computedCenter},enumerable:!0},eye:{get:function(){return c.computedEye},set:function(t){return c.lookAt(c.lastT(),t),c.computedEye},enumerable:!0},up:{get:function(){return c.computedUp},set:function(t){return c.lookAt(c.lastT(),null,null,t),c.computedUp},enumerable:!0},distance:{get:function(){return f},set:function(t){return c.setDistance(c.lastT(),t),t},enumerable:!0},distanceLimits:{get:function(){return c.getDistanceLimits(r)},set:function(t){return c.setDistanceLimits(t),t},enumerable:!0}}),t.addEventListener(\"contextmenu\",function(t){return t.preventDefault(),!1});var g=0,v=0,m={shift:!1,control:!1,alt:!1,meta:!1};function y(e,r,i,a){var o=d.keyBindingMode;if(!1!==o){var s=\"rotate\"===o,l=\"pan\"===o,u=\"zoom\"===o,h=!!a.control,p=!!a.alt,y=!!a.shift,x=!!(1&e),b=!!(2&e),_=!!(4&e),w=1/t.clientHeight,k=w*(r-g),M=w*(i-v),A=d.flipX?1:-1,T=d.flipY?1:-1,S=n(),E=Math.PI*d.rotateSpeed;if((s&&x&&!h&&!p&&!y||x&&!h&&!p&&y)&&c.rotate(S,A*E*k,-T*E*M,0),(l&&x&&!h&&!p&&!y||b||x&&h&&!p&&!y)&&c.pan(S,-d.translateSpeed*k*f,d.translateSpeed*M*f,0),u&&x&&!h&&!p&&!y||_||x&&!h&&p&&!y){var C=-d.zoomSpeed*M/window.innerHeight*(S-c.lastT())*100;c.pan(S,0,0,f*(Math.exp(C)-1))}return g=r,v=i,m=a,!0}}return d.mouseListener=a(t,y),t.addEventListener(\"touchstart\",function(e){var r=s(e.changedTouches[0],t);y(0,r[0],r[1],m),y(1,r[0],r[1],m),e.preventDefault()},!!l&&{passive:!1}),t.addEventListener(\"touchmove\",function(e){var r=s(e.changedTouches[0],t);y(1,r[0],r[1],m),e.preventDefault()},!!l&&{passive:!1}),t.addEventListener(\"touchend\",function(t){y(0,g,v,m),t.preventDefault()},!!l&&{passive:!1}),d.wheelListener=o(t,function(t,e){if(!1!==d.keyBindingMode){var r=d.flipX?1:-1,i=d.flipY?1:-1,a=n();if(Math.abs(t)>Math.abs(e))c.rotate(a,0,0,-t*r*Math.PI*d.rotateSpeed/window.innerWidth);else{var o=-d.zoomSpeed*i*e/window.innerHeight*(a-c.lastT())/20;c.pan(a,0,0,f*(Math.exp(o)-1))}}},!0),d};var n=t(\"right-now\"),i=t(\"3d-view\"),a=t(\"mouse-change\"),o=t(\"mouse-wheel\"),s=t(\"mouse-event-offset\"),l=t(\"has-passive-events\")},{\"3d-view\":45,\"has-passive-events\":394,\"mouse-change\":418,\"mouse-event-offset\":419,\"mouse-wheel\":421,\"right-now\":480}],787:[function(t,e,r){\"use strict\";var n=t(\"../../plot_api/edit_types\").overrideAll,i=t(\"../../components/fx/layout_attributes\"),a=t(\"./scene\"),o=t(\"../get_data\").getSubplotData,s=t(\"../../lib\"),l=t(\"../../constants/xmlns_namespaces\");r.name=\"gl3d\",r.attr=\"scene\",r.idRoot=\"scene\",r.idRegex=r.attrRegex=s.counterRegex(\"scene\"),r.attributes=t(\"./layout/attributes\"),r.layoutAttributes=t(\"./layout/layout_attributes\"),r.baseLayoutAttrOverrides=n({hoverlabel:i.hoverlabel},\"plot\",\"nested\"),r.supplyLayoutDefaults=t(\"./layout/defaults\"),r.plot=function(t){for(var e=t._fullLayout,r=t._fullData,n=e._subplots.gl3d,i=0;i<n.length;i++){var l=n[i],c=o(r,\"gl3d\",l),u=e[l],f=u._scene;f||(f=new a({id:l,graphDiv:t,container:t.querySelector(\".gl-container\"),staticPlot:t._context.staticPlot,plotGlPixelRatio:t._context.plotGlPixelRatio},e),u._scene=f),f.cameraInitial||(f.cameraInitial=s.extendDeep({},u.camera)),f.plot(c,e,t.layout)}},r.clean=function(t,e,r,n){for(var i=n._subplots.gl3d||[],a=0;a<i.length;a++){var o=i[a];!e[o]&&n[o]._scene&&(n[o]._scene.destroy(),n._infolayer&&n._infolayer.selectAll(\".annotation-\"+o).remove())}},r.toSVG=function(t){for(var e=t._fullLayout,r=e._subplots.gl3d,n=e._size,i=0;i<r.length;i++){var a=e[r[i]],o=a.domain,s=a._scene,c=s.toImage(\"png\");e._glimages.append(\"svg:image\").attr({xmlns:l.svg,\"xlink:href\":c,x:n.l+n.w*o.x[0],y:n.t+n.h*(1-o.y[1]),width:n.w*(o.x[1]-o.x[0]),height:n.h*(o.y[1]-o.y[0]),preserveAspectRatio:\"none\"}),s.destroy()}},r.cleanId=function(t){if(t.match(/^scene[0-9]*$/)){var e=t.substr(5);return\"1\"===e&&(e=\"\"),\"scene\"+e}},r.updateFx=function(t){for(var e=t._fullLayout,r=e._subplots.gl3d,n=0;n<r.length;n++){e[r[n]]._scene.updateFx(e.dragmode,e.hovermode)}}},{\"../../components/fx/layout_attributes\":613,\"../../constants/xmlns_namespaces\":674,\"../../lib\":696,\"../../plot_api/edit_types\":727,\"../get_data\":781,\"./layout/attributes\":788,\"./layout/defaults\":792,\"./layout/layout_attributes\":793,\"./scene\":797}],788:[function(t,e,r){\"use strict\";e.exports={scene:{valType:\"subplotid\",dflt:\"scene\",editType:\"calc+clearAxisTypes\"}}},{}],789:[function(t,e,r){\"use strict\";var n=t(\"../../../components/color\"),i=t(\"../../cartesian/layout_attributes\"),a=t(\"../../../lib/extend\").extendFlat,o=t(\"../../../plot_api/edit_types\").overrideAll;e.exports=o({visible:i.visible,showspikes:{valType:\"boolean\",dflt:!0},spikesides:{valType:\"boolean\",dflt:!0},spikethickness:{valType:\"number\",min:0,dflt:2},spikecolor:{valType:\"color\",dflt:n.defaultLine},showbackground:{valType:\"boolean\",dflt:!1},backgroundcolor:{valType:\"color\",dflt:\"rgba(204, 204, 204, 0.5)\"},showaxeslabels:{valType:\"boolean\",dflt:!0},color:i.color,categoryorder:i.categoryorder,categoryarray:i.categoryarray,title:i.title,titlefont:i.titlefont,type:i.type,autorange:i.autorange,rangemode:i.rangemode,range:i.range,tickmode:i.tickmode,nticks:i.nticks,tick0:i.tick0,dtick:i.dtick,tickvals:i.tickvals,ticktext:i.ticktext,ticks:i.ticks,mirror:i.mirror,ticklen:i.ticklen,tickwidth:i.tickwidth,tickcolor:i.tickcolor,showticklabels:i.showticklabels,tickfont:i.tickfont,tickangle:i.tickangle,tickprefix:i.tickprefix,showtickprefix:i.showtickprefix,ticksuffix:i.ticksuffix,showticksuffix:i.showticksuffix,showexponent:i.showexponent,exponentformat:i.exponentformat,separatethousands:i.separatethousands,tickformat:i.tickformat,tickformatstops:i.tickformatstops,hoverformat:i.hoverformat,showline:i.showline,linecolor:i.linecolor,linewidth:i.linewidth,showgrid:i.showgrid,gridcolor:a({},i.gridcolor,{dflt:\"rgb(204, 204, 204)\"}),gridwidth:i.gridwidth,zeroline:i.zeroline,zerolinecolor:i.zerolinecolor,zerolinewidth:i.zerolinewidth},\"plot\",\"from-root\")},{\"../../../components/color\":570,\"../../../lib/extend\":685,\"../../../plot_api/edit_types\":727,\"../../cartesian/layout_attributes\":757}],790:[function(t,e,r){\"use strict\";var n=t(\"tinycolor2\").mix,i=t(\"../../../lib\"),a=t(\"../../../plot_api/plot_template\"),o=t(\"./axis_attributes\"),s=t(\"../../cartesian/type_defaults\"),l=t(\"../../cartesian/axis_defaults\"),c=[\"xaxis\",\"yaxis\",\"zaxis\"];e.exports=function(t,e,r){var u,f;function h(t,e){return i.coerce(u,f,o,t,e)}for(var p=0;p<c.length;p++){var d=c[p];u=t[d]||{},(f=a.newContainer(e,d))._id=d[0]+r.scene,f._name=d,s(u,f,h,r),l(u,f,h,{font:r.font,letter:d[0],data:r.data,showGrid:!0,bgColor:r.bgColor,calendar:r.calendar},r.fullLayout),h(\"gridcolor\",n(f.color,r.bgColor,13600/187).toRgbString()),h(\"title\",d[0]),f.setScale=i.noop,h(\"showspikes\")&&(h(\"spikesides\"),h(\"spikethickness\"),h(\"spikecolor\",f.color)),h(\"showaxeslabels\"),h(\"showbackground\")&&h(\"backgroundcolor\")}}},{\"../../../lib\":696,\"../../../plot_api/plot_template\":734,\"../../cartesian/axis_defaults\":746,\"../../cartesian/type_defaults\":768,\"./axis_attributes\":789,tinycolor2:514}],791:[function(t,e,r){\"use strict\";var n=t(\"../../../lib/html2unicode\"),i=t(\"../../../lib/str2rgbarray\"),a=[\"xaxis\",\"yaxis\",\"zaxis\"];function o(){this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.tickEnable=[!0,!0,!0],this.tickFont=[\"sans-serif\",\"sans-serif\",\"sans-serif\"],this.tickSize=[12,12,12],this.tickAngle=[0,0,0],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[18,18,18],this.labels=[\"x\",\"y\",\"z\"],this.labelEnable=[!0,!0,!0],this.labelFont=[\"Open Sans\",\"Open Sans\",\"Open Sans\"],this.labelSize=[20,20,20],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[30,30,30],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[10,10,10],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!0,!0,!0],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._defaultTickPad=this.tickPad.slice(),this._defaultLabelPad=this.labelPad.slice(),this._defaultLineTickLength=this.lineTickLength.slice()}o.prototype.merge=function(t){for(var e=0;e<3;++e){var r=t[a[e]];r.visible?(this.labels[e]=n(r.title),\"titlefont\"in r&&(r.titlefont.color&&(this.labelColor[e]=i(r.titlefont.color)),r.titlefont.family&&(this.labelFont[e]=r.titlefont.family),r.titlefont.size&&(this.labelSize[e]=r.titlefont.size)),\"showline\"in r&&(this.lineEnable[e]=r.showline),\"linecolor\"in r&&(this.lineColor[e]=i(r.linecolor)),\"linewidth\"in r&&(this.lineWidth[e]=r.linewidth),\"showgrid\"in r&&(this.gridEnable[e]=r.showgrid),\"gridcolor\"in r&&(this.gridColor[e]=i(r.gridcolor)),\"gridwidth\"in r&&(this.gridWidth[e]=r.gridwidth),\"log\"===r.type?this.zeroEnable[e]=!1:\"zeroline\"in r&&(this.zeroEnable[e]=r.zeroline),\"zerolinecolor\"in r&&(this.zeroLineColor[e]=i(r.zerolinecolor)),\"zerolinewidth\"in r&&(this.zeroLineWidth[e]=r.zerolinewidth),\"ticks\"in r&&r.ticks?this.lineTickEnable[e]=!0:this.lineTickEnable[e]=!1,\"ticklen\"in r&&(this.lineTickLength[e]=this._defaultLineTickLength[e]=r.ticklen),\"tickcolor\"in r&&(this.lineTickColor[e]=i(r.tickcolor)),\"tickwidth\"in r&&(this.lineTickWidth[e]=r.tickwidth),\"tickangle\"in r&&(this.tickAngle[e]=\"auto\"===r.tickangle?-3600:Math.PI*-r.tickangle/180),\"showticklabels\"in r&&(this.tickEnable[e]=r.showticklabels),\"tickfont\"in r&&(r.tickfont.color&&(this.tickColor[e]=i(r.tickfont.color)),r.tickfont.family&&(this.tickFont[e]=r.tickfont.family),r.tickfont.size&&(this.tickSize[e]=r.tickfont.size)),\"mirror\"in r?-1!==[\"ticks\",\"all\",\"allticks\"].indexOf(r.mirror)?(this.lineTickMirror[e]=!0,this.lineMirror[e]=!0):!0===r.mirror?(this.lineTickMirror[e]=!1,this.lineMirror[e]=!0):(this.lineTickMirror[e]=!1,this.lineMirror[e]=!1):this.lineMirror[e]=!1,\"showbackground\"in r&&!1!==r.showbackground?(this.backgroundEnable[e]=!0,this.backgroundColor[e]=i(r.backgroundcolor)):this.backgroundEnable[e]=!1):(this.tickEnable[e]=!1,this.labelEnable[e]=!1,this.lineEnable[e]=!1,this.lineTickEnable[e]=!1,this.gridEnable[e]=!1,this.zeroEnable[e]=!1,this.backgroundEnable[e]=!1)}},e.exports=function(t){var e=new o;return e.merge(t),e}},{\"../../../lib/html2unicode\":694,\"../../../lib/str2rgbarray\":719}],792:[function(t,e,r){\"use strict\";var n=t(\"../../../lib\"),i=t(\"../../../components/color\"),a=t(\"../../../registry\"),o=t(\"../../subplot_defaults\"),s=t(\"./axis_defaults\"),l=t(\"./layout_attributes\");function c(t,e,r,n){for(var o=r(\"bgcolor\"),l=i.combine(o,n.paper_bgcolor),c=[\"up\",\"center\",\"eye\"],u=0;u<c.length;u++)r(\"camera.\"+c[u]+\".x\"),r(\"camera.\"+c[u]+\".y\"),r(\"camera.\"+c[u]+\".z\");var f=!!r(\"aspectratio.x\")&&!!r(\"aspectratio.y\")&&!!r(\"aspectratio.z\"),h=r(\"aspectmode\",f?\"manual\":\"auto\");f||(t.aspectratio=e.aspectratio={x:1,y:1,z:1},\"manual\"===h&&(e.aspectmode=\"auto\"),t.aspectmode=e.aspectmode),s(t,e,{font:n.font,scene:n.id,data:n.fullData,bgColor:l,calendar:n.calendar,fullLayout:n.fullLayout}),a.getComponentMethod(\"annotations3d\",\"handleDefaults\")(t,e,n),r(\"dragmode\",n.getDfltFromLayout(\"dragmode\")),r(\"hovermode\",n.getDfltFromLayout(\"hovermode\"))}e.exports=function(t,e,r){var i=e._basePlotModules.length>1;o(t,e,r,{type:\"gl3d\",attributes:l,handleDefaults:c,fullLayout:e,font:e.font,fullData:r,getDfltFromLayout:function(e){if(!i)return n.validate(t[e],l[e])?t[e]:void 0},paper_bgcolor:e.paper_bgcolor,calendar:e.calendar})}},{\"../../../components/color\":570,\"../../../lib\":696,\"../../../registry\":827,\"../../subplot_defaults\":822,\"./axis_defaults\":790,\"./layout_attributes\":793}],793:[function(t,e,r){\"use strict\";var n=t(\"./axis_attributes\"),i=t(\"../../domain\").attributes,a=t(\"../../../lib/extend\").extendFlat,o=t(\"../../../lib\").counterRegex;function s(t,e,r){return{x:{valType:\"number\",dflt:t,editType:\"camera\"},y:{valType:\"number\",dflt:e,editType:\"camera\"},z:{valType:\"number\",dflt:r,editType:\"camera\"},editType:\"camera\"}}e.exports={_arrayAttrRegexps:[o(\"scene\",\".annotations\",!0)],bgcolor:{valType:\"color\",dflt:\"rgba(0,0,0,0)\",editType:\"plot\"},camera:{up:a(s(0,0,1),{}),center:a(s(0,0,0),{}),eye:a(s(1.25,1.25,1.25),{}),editType:\"camera\"},domain:i({name:\"scene\",editType:\"plot\"}),aspectmode:{valType:\"enumerated\",values:[\"auto\",\"cube\",\"data\",\"manual\"],dflt:\"auto\",editType:\"plot\",impliedEdits:{\"aspectratio.x\":void 0,\"aspectratio.y\":void 0,\"aspectratio.z\":void 0}},aspectratio:{x:{valType:\"number\",min:0,editType:\"plot\",impliedEdits:{\"^aspectmode\":\"manual\"}},y:{valType:\"number\",min:0,editType:\"plot\",impliedEdits:{\"^aspectmode\":\"manual\"}},z:{valType:\"number\",min:0,editType:\"plot\",impliedEdits:{\"^aspectmode\":\"manual\"}},editType:\"plot\",impliedEdits:{aspectmode:\"manual\"}},xaxis:n,yaxis:n,zaxis:n,dragmode:{valType:\"enumerated\",values:[\"orbit\",\"turntable\",\"zoom\",\"pan\",!1],dflt:\"turntable\",editType:\"plot\"},hovermode:{valType:\"enumerated\",values:[\"closest\",!1],dflt:\"closest\",editType:\"modebar\"},editType:\"plot\",_deprecated:{cameraposition:{valType:\"info_array\",editType:\"camera\"}}}},{\"../../../lib\":696,\"../../../lib/extend\":685,\"../../domain\":770,\"./axis_attributes\":789}],794:[function(t,e,r){\"use strict\";var n=t(\"../../../lib/str2rgbarray\"),i=[\"xaxis\",\"yaxis\",\"zaxis\"];function a(){this.enabled=[!0,!0,!0],this.colors=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.drawSides=[!0,!0,!0],this.lineWidth=[1,1,1]}a.prototype.merge=function(t){for(var e=0;e<3;++e){var r=t[i[e]];r.visible?(this.enabled[e]=r.showspikes,this.colors[e]=n(r.spikecolor),this.drawSides[e]=r.spikesides,this.lineWidth[e]=r.spikethickness):(this.enabled[e]=!1,this.drawSides[e]=!1)}},e.exports=function(t){var e=new a;return e.merge(t),e}},{\"../../../lib/str2rgbarray\":719}],795:[function(t,e,r){\"use strict\";e.exports=function(t){for(var e=t.axesOptions,r=t.glplot.axesPixels,l=t.fullSceneLayout,c=[[],[],[]],u=0;u<3;++u){var f=l[o[u]];if(f._length=(r[u].hi-r[u].lo)*r[u].pixelsPerDataUnit/t.dataScale[u],Math.abs(f._length)===1/0)c[u]=[];else{f._input_range=f.range.slice(),f.range[0]=r[u].lo/t.dataScale[u],f.range[1]=r[u].hi/t.dataScale[u],f._m=1/(t.dataScale[u]*r[u].pixelsPerDataUnit),f.range[0]===f.range[1]&&(f.range[0]-=1,f.range[1]+=1);var h=f.tickmode;if(\"auto\"===f.tickmode){f.tickmode=\"linear\";var p=f.nticks||i.constrain(f._length/40,4,9);n.autoTicks(f,Math.abs(f.range[1]-f.range[0])/p)}for(var d=n.calcTicks(f),g=0;g<d.length;++g)d[g].x=d[g].x*t.dataScale[u],d[g].text=a(d[g].text);c[u]=d,f.tickmode=h}}e.ticks=c;for(var u=0;u<3;++u){s[u]=.5*(t.glplot.bounds[0][u]+t.glplot.bounds[1][u]);for(var g=0;g<2;++g)e.bounds[g][u]=t.glplot.bounds[g][u]}t.contourLevels=function(t){for(var e=new Array(3),r=0;r<3;++r){for(var n=t[r],i=new Array(n.length),a=0;a<n.length;++a)i[a]=n[a].x;e[r]=i}return e}(c)};var n=t(\"../../cartesian/axes\"),i=t(\"../../../lib\"),a=t(\"../../../lib/html2unicode\"),o=[\"xaxis\",\"yaxis\",\"zaxis\"],s=[0,0,0]},{\"../../../lib\":696,\"../../../lib/html2unicode\":694,\"../../cartesian/axes\":744}],796:[function(t,e,r){\"use strict\";function n(t,e){var r,n,i=[0,0,0,0];for(r=0;r<4;++r)for(n=0;n<4;++n)i[n]+=t[4*r+n]*e[r];return i}e.exports=function(t,e){return n(t.projection,n(t.view,n(t.model,[e[0],e[1],e[2],1])))}},{}],797:[function(t,e,r){\"use strict\";var n,i,a=t(\"gl-plot3d\"),o=t(\"webgl-context\"),s=t(\"has-passive-events\"),l=t(\"../../registry\"),c=t(\"../../lib\"),u=t(\"../../plots/cartesian/axes\"),f=t(\"../../components/fx\"),h=t(\"../../lib/str2rgbarray\"),p=t(\"../../lib/show_no_webgl_msg\"),d=t(\"./camera\"),g=t(\"./project\"),v=t(\"./layout/convert\"),m=t(\"./layout/spikes\"),y=t(\"./layout/tick_marks\");function x(t,e,r,l){var c=t.graphDiv,h={canvas:r,gl:l,container:t.container,axes:t.axesOptions,spikes:t.spikeOptions,pickRadius:10,snapToData:!0,autoScale:!0,autoBounds:!1};if(t.staticMode){if(!(i||(n=document.createElement(\"canvas\"),i=o({canvas:n,preserveDrawingBuffer:!0,premultipliedAlpha:!0,antialias:!0}))))throw new Error(\"error creating static canvas/context for image server\");h.pixelRatio=t.pixelRatio,h.gl=i,h.canvas=n}try{t.glplot=a(h)}catch(e){return p(t)}var v=function(t){if(!1!==t.fullSceneLayout.dragmode){var e={};e[t.id+\".camera\"]=M(t.camera),t.saveCamera(c.layout),t.graphDiv.emit(\"plotly_relayout\",e)}};if(t.glplot.canvas.addEventListener(\"mouseup\",v.bind(null,t)),t.glplot.canvas.addEventListener(\"wheel\",v.bind(null,t),!!s&&{passive:!1}),t.staticMode||t.glplot.canvas.addEventListener(\"webglcontextlost\",function(e){c&&c.emit&&c.emit(\"plotly_webglcontextlost\",{event:e,layer:t.id})},!1),!t.camera){var m=t.fullSceneLayout.camera;t.camera=d(t.container,{center:[m.center.x,m.center.y,m.center.z],eye:[m.eye.x,m.eye.y,m.eye.z],up:[m.up.x,m.up.y,m.up.z],zoomMin:.1,zoomMax:100,mode:\"orbit\"})}return t.glplot.camera=t.camera,t.glplot.oncontextloss=function(){t.recoverContext()},t.glplot.onrender=function(t){var e,r=t.svgContainer,n=t.container.getBoundingClientRect(),i=n.width,a=n.height;r.setAttributeNS(null,\"viewBox\",\"0 0 \"+i+\" \"+a),r.setAttributeNS(null,\"width\",i),r.setAttributeNS(null,\"height\",a),y(t),t.glplot.axes.update(t.axesOptions);for(var o,s=Object.keys(t.traces),l=null,c=t.glplot.selection,h=0;h<s.length;++h)\"skip\"!==(e=t.traces[s[h]]).data.hoverinfo&&e.handlePick(c)&&(l=e),e.setContourLevels&&e.setContourLevels();function p(e,r){var n=t.fullSceneLayout[e];return u.tickText(n,n.d2l(r),\"hover\").text}if(null!==l){var d=g(t.glplot.cameraParams,c.dataCoordinate);e=l.data;var v,m=c.index,x=f.castHoverinfo(e,t.fullLayout,m),b=x.split(\"+\"),_=\"all\"===x,w=p(\"xaxis\",c.traceCoordinate[0]),k=p(\"yaxis\",c.traceCoordinate[1]),M=p(\"zaxis\",c.traceCoordinate[2]);if(_||(-1===b.indexOf(\"x\")&&(w=void 0),-1===b.indexOf(\"y\")&&(k=void 0),-1===b.indexOf(\"z\")&&(M=void 0),-1===b.indexOf(\"text\")&&(c.textLabel=void 0),-1===b.indexOf(\"name\")&&(l.name=void 0)),\"cone\"===e.type||\"streamtube\"===e.type){var A=[];(_||-1!==b.indexOf(\"u\"))&&A.push(\"u: \"+p(\"xaxis\",c.traceCoordinate[3])),(_||-1!==b.indexOf(\"v\"))&&A.push(\"v: \"+p(\"yaxis\",c.traceCoordinate[4])),(_||-1!==b.indexOf(\"w\"))&&A.push(\"w: \"+p(\"zaxis\",c.traceCoordinate[5])),(_||-1!==b.indexOf(\"norm\"))&&A.push(\"norm: \"+c.traceCoordinate[6].toPrecision(3)),\"streamtube\"!==e.type||!_&&-1===b.indexOf(\"divergence\")||A.push(\"divergence: \"+c.traceCoordinate[7].toPrecision(3)),c.textLabel&&A.push(c.textLabel),v=A.join(\"<br>\")}else v=c.textLabel;t.fullSceneLayout.hovermode&&f.loneHover({x:(.5+.5*d[0]/d[3])*i,y:(.5-.5*d[1]/d[3])*a,xLabel:w,yLabel:k,zLabel:M,text:v,name:l.name,color:f.castHoverOption(e,m,\"bgcolor\")||l.color,borderColor:f.castHoverOption(e,m,\"bordercolor\"),fontFamily:f.castHoverOption(e,m,\"font.family\"),fontSize:f.castHoverOption(e,m,\"font.size\"),fontColor:f.castHoverOption(e,m,\"font.color\")},{container:r,gd:t.graphDiv});var T={x:c.traceCoordinate[0],y:c.traceCoordinate[1],z:c.traceCoordinate[2],data:e._input,fullData:e,curveNumber:e.index,pointNumber:m};e._module.eventData&&(T=e._module.eventData(T,c,e,{},m)),f.appendArrayPointValue(T,e,m);var S={points:[T]};c.buttons&&c.distance<5?t.graphDiv.emit(\"plotly_click\",S):t.graphDiv.emit(\"plotly_hover\",S),o=S}else f.loneUnhover(r),t.graphDiv.emit(\"plotly_unhover\",o);t.drawAnnotations(t)}.bind(null,t),t.traces={},!0}function b(t,e){var r=document.createElement(\"div\"),n=t.container;this.graphDiv=t.graphDiv;var i=document.createElementNS(\"http://www.w3.org/2000/svg\",\"svg\");i.style.position=\"absolute\",i.style.top=i.style.left=\"0px\",i.style.width=i.style.height=\"100%\",i.style[\"z-index\"]=20,i.style[\"pointer-events\"]=\"none\",r.appendChild(i),this.svgContainer=i,r.id=t.id,r.style.position=\"absolute\",r.style.top=r.style.left=\"0px\",r.style.width=r.style.height=\"100%\",n.appendChild(r),this.fullLayout=e,this.id=t.id||\"scene\",this.fullSceneLayout=e[this.id],this.plotArgs=[[],{},{}],this.axesOptions=v(e[this.id]),this.spikeOptions=m(e[this.id]),this.container=r,this.staticMode=!!t.staticPlot,this.pixelRatio=t.plotGlPixelRatio||2,this.dataScale=[1,1,1],this.contourLevels=[[],[],[]],this.convertAnnotations=l.getComponentMethod(\"annotations3d\",\"convert\"),this.drawAnnotations=l.getComponentMethod(\"annotations3d\",\"draw\"),x(this)}var _=b.prototype;_.recoverContext=function(){var t=this,e=this.glplot.gl,r=this.glplot.canvas;this.glplot.dispose(),requestAnimationFrame(function n(){e.isContextLost()?requestAnimationFrame(n):x(t,t.fullLayout,r,e)?t.plot.apply(t,t.plotArgs):c.error(\"Catastrophic and unrecoverable WebGL error. Context lost.\")})};var w=[\"xaxis\",\"yaxis\",\"zaxis\"];function k(t,e,r){for(var n=t.fullSceneLayout,i=0;i<3;i++){var a=w[i],o=a.charAt(0),s=n[a],l=e[o],u=e[o+\"calendar\"],f=e[\"_\"+o+\"length\"];if(c.isArrayOrTypedArray(l))for(var h,p=0;p<(f||l.length);p++)if(c.isArrayOrTypedArray(l[p]))for(var d=0;d<l[p].length;++d)h=s.d2l(l[p][d],0,u),!isNaN(h)&&isFinite(h)&&(r[0][i]=Math.min(r[0][i],h),r[1][i]=Math.max(r[1][i],h));else h=s.d2l(l[p],0,u),!isNaN(h)&&isFinite(h)&&(r[0][i]=Math.min(r[0][i],h),r[1][i]=Math.max(r[1][i],h));else r[0][i]=Math.min(r[0][i],0),r[1][i]=Math.max(r[1][i],f-1)}}function M(t){return{up:{x:t.up[0],y:t.up[1],z:t.up[2]},center:{x:t.center[0],y:t.center[1],z:t.center[2]},eye:{x:t.eye[0],y:t.eye[1],z:t.eye[2]}}}_.plot=function(t,e,r){if(this.plotArgs=[t,e,r],!this.glplot.contextLost){var n,i,a,o,s,l,c=e[this.id],u=r[this.id];c.bgcolor?this.glplot.clearColor=h(c.bgcolor):this.glplot.clearColor=[0,0,0,0],this.glplot.snapToData=!0,this.fullLayout=e,this.fullSceneLayout=c,this.glplotLayout=c,this.axesOptions.merge(c),this.spikeOptions.merge(c),this.setCamera(c.camera),this.updateFx(c.dragmode,c.hovermode),this.glplot.update({}),this.setConvert(s),t?Array.isArray(t)||(t=[t]):t=[];var f=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]];for(a=0;a<t.length;++a)!0===(n=t[a]).visible&&k(this,n,f);var p=[1,1,1];for(o=0;o<3;++o)f[1][o]===f[0][o]?p[o]=1:p[o]=1/(f[1][o]-f[0][o]);for(this.dataScale=p,this.convertAnnotations(this),a=0;a<t.length;++a)!0===(n=t[a]).visible&&((i=this.traces[n.uid])?i.data.type===n.type?i.update(n):(i.dispose(),i=n._module.plot(this,n),this.traces[n.uid]=i):(i=n._module.plot(this,n),this.traces[n.uid]=i),i.name=n.name);var d=Object.keys(this.traces);t:for(a=0;a<d.length;++a){for(o=0;o<t.length;++o)if(t[o].uid===d[a]&&!0===t[o].visible)continue t;(i=this.traces[d[a]]).dispose(),delete this.traces[d[a]]}this.glplot.objects.sort(function(t,e){return t._trace.data.index-e._trace.data.index});var g=[[0,0,0],[0,0,0]],v=[],m={};for(a=0;a<3;++a){if((l=(s=c[w[a]]).type)in m?(m[l].acc*=p[a],m[l].count+=1):m[l]={acc:p[a],count:1},s.autorange){g[0][a]=1/0,g[1][a]=-1/0;var y=this.glplot.objects,x=this.fullSceneLayout.annotations||[],b=s._name.charAt(0);for(o=0;o<y.length;o++){var _=y[o],M=_.bounds,A=_._trace.data._pad||0;\"ErrorBars\"===_.constructor.name&&s._lowerLogErrorBound?g[0][a]=Math.min(g[0][a],s._lowerLogErrorBound):g[0][a]=Math.min(g[0][a],M[0][a]/p[a]-A),g[1][a]=Math.max(g[1][a],M[1][a]/p[a]+A)}for(o=0;o<x.length;o++){var T=x[o];if(T.visible){var S=s.r2l(T[b]);g[0][a]=Math.min(g[0][a],S),g[1][a]=Math.max(g[1][a],S)}}if(\"rangemode\"in s&&\"tozero\"===s.rangemode&&(g[0][a]=Math.min(g[0][a],0),g[1][a]=Math.max(g[1][a],0)),g[0][a]>g[1][a])g[0][a]=-1,g[1][a]=1;else{var E=g[1][a]-g[0][a];g[0][a]-=E/32,g[1][a]+=E/32}if(\"reversed\"===s.autorange){var C=g[0][a];g[0][a]=g[1][a],g[1][a]=C}}else{var L=s.range;g[0][a]=s.r2l(L[0]),g[1][a]=s.r2l(L[1])}g[0][a]===g[1][a]&&(g[0][a]-=1,g[1][a]+=1),v[a]=g[1][a]-g[0][a],this.glplot.bounds[0][a]=g[0][a]*p[a],this.glplot.bounds[1][a]=g[1][a]*p[a]}var z=[1,1,1];for(a=0;a<3;++a){var O=m[l=(s=c[w[a]]).type];z[a]=Math.pow(O.acc,1/O.count)/p[a]}var I;if(\"auto\"===c.aspectmode)I=Math.max.apply(null,z)/Math.min.apply(null,z)<=4?z:[1,1,1];else if(\"cube\"===c.aspectmode)I=[1,1,1];else if(\"data\"===c.aspectmode)I=z;else{if(\"manual\"!==c.aspectmode)throw new Error(\"scene.js aspectRatio was not one of the enumerated types\");var P=c.aspectratio;I=[P.x,P.y,P.z]}c.aspectratio.x=u.aspectratio.x=I[0],c.aspectratio.y=u.aspectratio.y=I[1],c.aspectratio.z=u.aspectratio.z=I[2],this.glplot.aspect=I;var D=c.domain||null,R=e._size||null;if(D&&R){var B=this.container.style;B.position=\"absolute\",B.left=R.l+D.x[0]*R.w+\"px\",B.top=R.t+(1-D.y[1])*R.h+\"px\",B.width=R.w*(D.x[1]-D.x[0])+\"px\",B.height=R.h*(D.y[1]-D.y[0])+\"px\"}this.glplot.redraw()}},_.destroy=function(){this.glplot&&(this.camera.mouseListener.enabled=!1,this.container.removeEventListener(\"wheel\",this.camera.wheelListener),this.camera=this.glplot.camera=null,this.glplot.dispose(),this.container.parentNode.removeChild(this.container),this.glplot=null)},_.getCamera=function(){return this.glplot.camera.view.recalcMatrix(this.camera.view.lastT()),M(this.glplot.camera)},_.setCamera=function(t){var e;this.glplot.camera.lookAt.apply(this,[[(e=t).eye.x,e.eye.y,e.eye.z],[e.center.x,e.center.y,e.center.z],[e.up.x,e.up.y,e.up.z]])},_.saveCamera=function(t){var e=this.getCamera(),r=c.nestedProperty(t,this.id+\".camera\"),n=r.get(),i=!1;function a(t,e,r,n){var i=[\"up\",\"center\",\"eye\"],a=[\"x\",\"y\",\"z\"];return e[i[r]]&&t[i[r]][a[n]]===e[i[r]][a[n]]}if(void 0===n)i=!0;else for(var o=0;o<3;o++)for(var s=0;s<3;s++)if(!a(e,n,o,s)){i=!0;break}return i&&r.set(e),i},_.updateFx=function(t,e){var r=this.camera;r&&(\"orbit\"===t?(r.mode=\"orbit\",r.keyBindingMode=\"rotate\"):\"turntable\"===t?(r.up=[0,0,1],r.mode=\"turntable\",r.keyBindingMode=\"rotate\"):r.keyBindingMode=t),this.fullSceneLayout.hovermode=e},_.toImage=function(t){t||(t=\"png\"),this.staticMode&&this.container.appendChild(n),this.glplot.redraw();var e=this.glplot.gl,r=e.drawingBufferWidth,i=e.drawingBufferHeight;e.bindFramebuffer(e.FRAMEBUFFER,null);var a=new Uint8Array(r*i*4);e.readPixels(0,0,r,i,e.RGBA,e.UNSIGNED_BYTE,a);for(var o=0,s=i-1;o<s;++o,--s)for(var l=0;l<r;++l)for(var c=0;c<4;++c){var u=a[4*(r*o+l)+c];a[4*(r*o+l)+c]=a[4*(r*s+l)+c],a[4*(r*s+l)+c]=u}var f=document.createElement(\"canvas\");f.width=r,f.height=i;var h,p=f.getContext(\"2d\"),d=p.createImageData(r,i);switch(d.data.set(a),p.putImageData(d,0,0),t){case\"jpeg\":h=f.toDataURL(\"image/jpeg\");break;case\"webp\":h=f.toDataURL(\"image/webp\");break;default:h=f.toDataURL(\"image/png\")}return this.staticMode&&this.container.removeChild(n),h},_.setConvert=function(){for(var t=0;t<3;t++){var e=this.fullSceneLayout[w[t]];u.setConvert(e,this.fullLayout),e.setScale=c.noop}},e.exports=b},{\"../../components/fx\":612,\"../../lib\":696,\"../../lib/show_no_webgl_msg\":717,\"../../lib/str2rgbarray\":719,\"../../plots/cartesian/axes\":744,\"../../registry\":827,\"./camera\":786,\"./layout/convert\":791,\"./layout/spikes\":794,\"./layout/tick_marks\":795,\"./project\":796,\"gl-plot3d\":277,\"has-passive-events\":394,\"webgl-context\":533}],798:[function(t,e,r){\"use strict\";e.exports=function(t,e,r,n){n=n||t.length;for(var i=new Array(n),a=0;a<n;a++)i[a]=[t[a],e[a],r[a]];return i}},{}],799:[function(t,e,r){\"use strict\";var n=t(\"./font_attributes\"),i=t(\"../components/color/attributes\"),a=n({editType:\"calc\"});a.family.dflt='\"Open Sans\", verdana, arial, sans-serif',a.size.dflt=12,a.color.dflt=i.defaultLine,e.exports={font:a,title:{valType:\"string\",editType:\"layoutstyle\"},titlefont:n({editType:\"layoutstyle\"}),autosize:{valType:\"boolean\",dflt:!1,editType:\"none\"},width:{valType:\"number\",min:10,dflt:700,editType:\"plot\"},height:{valType:\"number\",min:10,dflt:450,editType:\"plot\"},margin:{l:{valType:\"number\",min:0,dflt:80,editType:\"plot\"},r:{valType:\"number\",min:0,dflt:80,editType:\"plot\"},t:{valType:\"number\",min:0,dflt:100,editType:\"plot\"},b:{valType:\"number\",min:0,dflt:80,editType:\"plot\"},pad:{valType:\"number\",min:0,dflt:0,editType:\"plot\"},autoexpand:{valType:\"boolean\",dflt:!0,editType:\"plot\"},editType:\"plot\"},paper_bgcolor:{valType:\"color\",dflt:i.background,editType:\"plot\"},plot_bgcolor:{valType:\"color\",dflt:i.background,editType:\"layoutstyle\"},separators:{valType:\"string\",editType:\"plot\"},hidesources:{valType:\"boolean\",dflt:!1,editType:\"plot\"},showlegend:{valType:\"boolean\",editType:\"legend\"},colorway:{valType:\"colorlist\",dflt:i.defaults,editType:\"calc\"},datarevision:{valType:\"any\",editType:\"calc\"},template:{valType:\"any\",editType:\"calc\"},modebar:{orientation:{valType:\"enumerated\",values:[\"v\",\"h\"],dflt:\"h\",editType:\"modebar\"},bgcolor:{valType:\"color\",editType:\"modebar\"},color:{valType:\"color\",editType:\"modebar\"},activecolor:{valType:\"color\",editType:\"modebar\"},editType:\"modebar\"}}},{\"../components/color/attributes\":569,\"./font_attributes\":771}],800:[function(t,e,r){\"use strict\";e.exports={requiredVersion:\"0.45.0\",styleUrlPrefix:\"mapbox://styles/mapbox/\",styleUrlSuffix:\"v9\",controlContainerClassName:\"mapboxgl-control-container\",wrongVersionErrorMsg:[\"Your custom plotly.js bundle is not using the correct mapbox-gl version\",\"Please install mapbox-gl@0.45.0.\"].join(\"\\n\"),noAccessTokenErrorMsg:[\"Missing Mapbox access token.\",\"Mapbox trace type require a Mapbox access token to be registered.\",\"For example:\",\" Plotly.plot(gd, data, layout, { mapboxAccessToken: 'my-access-token' });\",\"More info here: https://www.mapbox.com/help/define-access-token/\"].join(\"\\n\"),mapOnErrorMsg:\"Mapbox error.\",styleRules:{map:\"overflow:hidden;position:relative;\",\"missing-css\":\"display:none\"}}},{}],801:[function(t,e,r){\"use strict\";var n=t(\"../../lib\");e.exports=function(t,e){var r=t.split(\" \"),i=r[0],a=r[1],o=n.isArrayOrTypedArray(e)?n.mean(e):e,s=.5+o/100,l=1.5+o/100,c=[\"\",\"\"],u=[0,0];switch(i){case\"top\":c[0]=\"top\",u[1]=-l;break;case\"bottom\":c[0]=\"bottom\",u[1]=l}switch(a){case\"left\":c[1]=\"right\",u[0]=-s;break;case\"right\":c[1]=\"left\",u[0]=s}return{anchor:c[0]&&c[1]?c.join(\"-\"):c[0]?c[0]:c[1]?c[1]:\"center\",offset:u}}},{\"../../lib\":696}],802:[function(t,e,r){\"use strict\";var n=t(\"mapbox-gl\"),i=t(\"../../lib\"),a=t(\"../../plots/get_data\").getSubplotCalcData,o=t(\"../../constants/xmlns_namespaces\"),s=t(\"./mapbox\"),l=t(\"./constants\");for(var c in l.styleRules)i.addStyleRule(\".mapboxgl-\"+c,l.styleRules[c]);r.name=\"mapbox\",r.attr=\"subplot\",r.idRoot=\"mapbox\",r.idRegex=r.attrRegex=i.counterRegex(\"mapbox\"),r.attributes={subplot:{valType:\"subplotid\",dflt:\"mapbox\",editType:\"calc\"}},r.layoutAttributes=t(\"./layout_attributes\"),r.supplyLayoutDefaults=t(\"./layout_defaults\"),r.plot=function(t){var e=t._fullLayout,r=t.calcdata,o=e._subplots.mapbox;if(n.version!==l.requiredVersion)throw new Error(l.wrongVersionErrorMsg);var c=function(t,e){var r=t._fullLayout;if(\"\"===t._context.mapboxAccessToken)return\"\";for(var n=0;n<e.length;n++){var i=r[e[n]];if(i.accesstoken)return i.accesstoken}throw new Error(l.noAccessTokenErrorMsg)}(t,o);n.accessToken=c;for(var u=0;u<o.length;u++){var f=o[u],h=a(r,\"mapbox\",f),p=e[f],d=p._subplot;d||(d=s({gd:t,container:e._glcontainer.node(),id:f,fullLayout:e,staticPlot:t._context.staticPlot}),e[f]._subplot=d),d.viewInitial||(d.viewInitial={center:i.extendFlat({},p.center),zoom:p.zoom,bearing:p.bearing,pitch:p.pitch}),d.plot(h,e,t._promises)}},r.clean=function(t,e,r,n){for(var i=n._subplots.mapbox||[],a=0;a<i.length;a++){var o=i[a];!e[o]&&n[o]._subplot&&n[o]._subplot.destroy()}},r.toSVG=function(t){for(var e=t._fullLayout,r=e._subplots.mapbox,n=e._size,i=0;i<r.length;i++){var a=e[r[i]],s=a.domain,l=a._subplot,c=l.toImage(\"png\");e._glimages.append(\"svg:image\").attr({xmlns:o.svg,\"xlink:href\":c,x:n.l+n.w*s.x[0],y:n.t+n.h*(1-s.y[1]),width:n.w*(s.x[1]-s.x[0]),height:n.h*(s.y[1]-s.y[0]),preserveAspectRatio:\"none\"}),l.destroy()}},r.updateFx=function(t){for(var e=t._fullLayout,r=e._subplots.mapbox,n=0;n<r.length;n++){e[r[n]]._subplot.updateFx(e)}}},{\"../../constants/xmlns_namespaces\":674,\"../../lib\":696,\"../../plots/get_data\":781,\"./constants\":800,\"./layout_attributes\":804,\"./layout_defaults\":805,\"./mapbox\":806,\"mapbox-gl\":409}],803:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"./convert_text_opts\");function a(t,e){this.mapbox=t,this.map=t.map,this.uid=t.uid+\"-layer\"+e,this.idSource=this.uid+\"-source\",this.idLayer=this.uid+\"-layer\",this.sourceType=null,this.source=null,this.layerType=null,this.below=null,this.visible=!1}var o=a.prototype;function s(t){var e=t.source;return t.visible&&(n.isPlainObject(e)||\"string\"==typeof e&&e.length>0)}function l(t){var e={},r={};switch(t.type){case\"circle\":n.extendFlat(r,{\"circle-radius\":t.circle.radius,\"circle-color\":t.color,\"circle-opacity\":t.opacity});break;case\"line\":n.extendFlat(r,{\"line-width\":t.line.width,\"line-color\":t.color,\"line-opacity\":t.opacity});break;case\"fill\":n.extendFlat(r,{\"fill-color\":t.color,\"fill-outline-color\":t.fill.outlinecolor,\"fill-opacity\":t.opacity});break;case\"symbol\":var a=t.symbol,o=i(a.textposition,a.iconsize);n.extendFlat(e,{\"icon-image\":a.icon+\"-15\",\"icon-size\":a.iconsize/10,\"text-field\":a.text,\"text-size\":a.textfont.size,\"text-anchor\":o.anchor,\"text-offset\":o.offset}),n.extendFlat(r,{\"icon-color\":t.color,\"text-color\":a.textfont.color,\"text-opacity\":t.opacity})}return{layout:e,paint:r}}o.update=function(t){this.visible?this.needsNewSource(t)?(this.removeLayer(),this.updateSource(t),this.updateLayer(t)):this.needsNewLayer(t)?this.updateLayer(t):this.updateStyle(t):(this.updateSource(t),this.updateLayer(t)),this.visible=s(t)},o.needsNewSource=function(t){return this.sourceType!==t.sourcetype||this.source!==t.source||this.layerType!==t.type},o.needsNewLayer=function(t){return this.layerType!==t.type||this.below!==t.below},o.updateSource=function(t){var e=this.map;if(e.getSource(this.idSource)&&e.removeSource(this.idSource),this.sourceType=t.sourcetype,this.source=t.source,s(t)){var r=function(t){var e,r=t.sourcetype,n=t.source,i={type:r};\"geojson\"===r?e=\"data\":\"vector\"===r&&(e=\"string\"==typeof n?\"url\":\"tiles\");return i[e]=n,i}(t);e.addSource(this.idSource,r)}},o.updateLayer=function(t){var e=this.map,r=l(t);this.removeLayer(),this.layerType=t.type,s(t)&&e.addLayer({id:this.idLayer,source:this.idSource,\"source-layer\":t.sourcelayer||\"\",type:t.type,layout:r.layout,paint:r.paint},t.below)},o.updateStyle=function(t){if(s(t)){var e=l(t);this.mapbox.setOptions(this.idLayer,\"setLayoutProperty\",e.layout),this.mapbox.setOptions(this.idLayer,\"setPaintProperty\",e.paint)}},o.removeLayer=function(){var t=this.map;t.getLayer(this.idLayer)&&t.removeLayer(this.idLayer)},o.dispose=function(){var t=this.map;t.removeLayer(this.idLayer),t.removeSource(this.idSource)},e.exports=function(t,e,r){var n=new a(t,e);return n.update(r),n}},{\"../../lib\":696,\"./convert_text_opts\":801}],804:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../components/color\").defaultLine,a=t(\"../domain\").attributes,o=t(\"../font_attributes\"),s=t(\"../../traces/scatter/attributes\").textposition,l=t(\"../../plot_api/edit_types\").overrideAll,c=t(\"../../plot_api/plot_template\").templatedArray,u=o({});u.family.dflt=\"Open Sans Regular, Arial Unicode MS Regular\",e.exports=l({_arrayAttrRegexps:[n.counterRegex(\"mapbox\",\".layers\",!0)],domain:a({name:\"mapbox\"}),accesstoken:{valType:\"string\",noBlank:!0,strict:!0},style:{valType:\"any\",values:[\"basic\",\"streets\",\"outdoors\",\"light\",\"dark\",\"satellite\",\"satellite-streets\"],dflt:\"basic\"},center:{lon:{valType:\"number\",dflt:0},lat:{valType:\"number\",dflt:0}},zoom:{valType:\"number\",dflt:1},bearing:{valType:\"number\",dflt:0},pitch:{valType:\"number\",dflt:0},layers:c(\"layer\",{visible:{valType:\"boolean\",dflt:!0},sourcetype:{valType:\"enumerated\",values:[\"geojson\",\"vector\"],dflt:\"geojson\"},source:{valType:\"any\"},sourcelayer:{valType:\"string\",dflt:\"\"},type:{valType:\"enumerated\",values:[\"circle\",\"line\",\"fill\",\"symbol\"],dflt:\"circle\"},below:{valType:\"string\",dflt:\"\"},color:{valType:\"color\",dflt:i},opacity:{valType:\"number\",min:0,max:1,dflt:1},circle:{radius:{valType:\"number\",dflt:15}},line:{width:{valType:\"number\",dflt:2}},fill:{outlinecolor:{valType:\"color\",dflt:i}},symbol:{icon:{valType:\"string\",dflt:\"marker\"},iconsize:{valType:\"number\",dflt:10},text:{valType:\"string\",dflt:\"\"},textfont:u,textposition:n.extendFlat({},s,{arrayOk:!1})}})},\"plot\",\"from-root\")},{\"../../components/color\":570,\"../../lib\":696,\"../../plot_api/edit_types\":727,\"../../plot_api/plot_template\":734,\"../../traces/scatter/attributes\":1043,\"../domain\":770,\"../font_attributes\":771}],805:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../subplot_defaults\"),a=t(\"../array_container_defaults\"),o=t(\"./layout_attributes\");function s(t,e,r,n){r(\"accesstoken\",n.accessToken),r(\"style\"),r(\"center.lon\"),r(\"center.lat\"),r(\"zoom\"),r(\"bearing\"),r(\"pitch\"),a(t,e,{name:\"layers\",handleItemDefaults:l}),e._input=t}function l(t,e){function r(r,i){return n.coerce(t,e,o.layers,r,i)}if(r(\"visible\")){var i=r(\"sourcetype\");r(\"source\"),\"vector\"===i&&r(\"sourcelayer\");var a=r(\"type\");r(\"below\"),r(\"color\"),r(\"opacity\"),\"circle\"===a&&r(\"circle.radius\"),\"line\"===a&&r(\"line.width\"),\"fill\"===a&&r(\"fill.outlinecolor\"),\"symbol\"===a&&(r(\"symbol.icon\"),r(\"symbol.iconsize\"),r(\"symbol.text\"),n.coerceFont(r,\"symbol.textfont\"),r(\"symbol.textposition\"))}}e.exports=function(t,e,r){i(t,e,r,{type:\"mapbox\",attributes:o,handleDefaults:s,partition:\"y\",accessToken:e._mapboxAccessToken})}},{\"../../lib\":696,\"../array_container_defaults\":740,\"../subplot_defaults\":822,\"./layout_attributes\":804}],806:[function(t,e,r){\"use strict\";var n=t(\"mapbox-gl\"),i=t(\"../../components/fx\"),a=t(\"../../lib\"),o=t(\"../../components/dragelement\"),s=t(\"../cartesian/select\").prepSelect,l=t(\"../cartesian/select\").selectOnClick,c=t(\"./constants\"),u=t(\"./layout_attributes\"),f=t(\"./layers\");function h(t){this.id=t.id,this.gd=t.gd,this.container=t.container,this.isStatic=t.staticPlot;var e=t.fullLayout;this.uid=e._uid+\"-\"+this.id,this.opts=e[this.id],this.div=null,this.xaxis=null,this.yaxis=null,this.createFramework(e),this.map=null,this.accessToken=null,this.styleObj=null,this.traceHash={},this.layerList=[]}var p=h.prototype;function d(t){var e=u.style.values,r=u.style.dflt,n={};return a.isPlainObject(t)?(n.id=t.id,n.style=t):\"string\"==typeof t?(n.id=t,n.style=-1!==e.indexOf(t)?g(t):t):(n.id=r,n.style=g(r)),n.transition={duration:0,delay:0},n}function g(t){return c.styleUrlPrefix+t+\"-\"+c.styleUrlSuffix}function v(t){return[t.lon,t.lat]}e.exports=function(t){return new h(t)},p.plot=function(t,e,r){var n,i=this,a=i.opts=e[this.id];i.map&&a.accesstoken!==i.accessToken&&(i.map.remove(),i.map=null,i.styleObj=null,i.traceHash=[],i.layerList={}),n=i.map?new Promise(function(r,n){i.updateMap(t,e,r,n)}):new Promise(function(r,n){i.createMap(t,e,r,n)}),r.push(n)},p.createMap=function(t,e,r,a){var o=this,s=o.gd,u=o.opts,f=o.styleObj=d(u.style);o.accessToken=u.accesstoken;var h=o.map=new n.Map({container:o.div,style:f.style,center:v(u.center),zoom:u.zoom,bearing:u.bearing,pitch:u.pitch,interactive:!o.isStatic,preserveDrawingBuffer:o.isStatic,doubleClickZoom:!1,boxZoom:!1}),p=c.controlContainerClassName,g=o.div.getElementsByClassName(p)[0];if(o.div.removeChild(g),h._canvas.style.left=\"0px\",h._canvas.style.top=\"0px\",o.rejectOnError(a),h.once(\"load\",function(){o.updateData(t),o.updateLayout(e),o.resolveOnRender(r)}),!o.isStatic){var m=!1;h.on(\"moveend\",function(t){if(o.map){var e=o.getView();u._input.center=u.center=e.center,u._input.zoom=u.zoom=e.zoom,u._input.bearing=u.bearing=e.bearing,u._input.pitch=u.pitch=e.pitch,(t.originalEvent||m)&&x(e),m=!1}}),h.on(\"wheel\",function(){m=!0}),h.on(\"mousemove\",function(t){var e=o.div.getBoundingClientRect();t.clientX=t.point.x+e.left,t.clientY=t.point.y+e.top,t.target.getBoundingClientRect=function(){return e},o.xaxis.p2c=function(){return t.lngLat.lng},o.yaxis.p2c=function(){return t.lngLat.lat},i.hover(s,t,o.id)}),h.on(\"dragstart\",y),h.on(\"zoomstart\",y),h.on(\"dblclick\",function(){s.emit(\"plotly_doubleclick\",null);var t=o.viewInitial;h.setCenter(v(t.center)),h.setZoom(t.zoom),h.setBearing(t.bearing),h.setPitch(t.pitch);var e=o.getView();u._input.center=u.center=e.center,u._input.zoom=u.zoom=e.zoom,u._input.bearing=u.bearing=e.bearing,u._input.pitch=u.pitch=e.pitch,x(e)}),o.clearSelect=function(){s._fullLayout._zoomlayer.selectAll(\".select-outline\").remove()},o.onClickInPanFn=function(t){return function(e){var r=s._fullLayout.clickmode;r.indexOf(\"select\")>-1&&l(e.originalEvent,s,[o.xaxis],[o.yaxis],o.id,t),r.indexOf(\"event\")>-1&&i.click(s,e.originalEvent)}}}function y(){i.loneUnhover(e._toppaper)}function x(t){var e=o.id,r={};for(var n in t)r[e+\".\"+n]=t[n];s.emit(\"plotly_relayout\",r)}},p.updateMap=function(t,e,r,n){var i=this,a=i.map;i.rejectOnError(n);var o=d(i.opts.style);i.styleObj.id!==o.id?(i.styleObj=o,a.setStyle(o.style),a.once(\"styledata\",function(){i.traceHash={},i.updateData(t),i.updateLayout(e),i.resolveOnRender(r)})):(i.updateData(t),i.updateLayout(e),i.resolveOnRender(r))},p.updateData=function(t){var e,r,n,i,a=this.traceHash;for(n=0;n<t.length;n++){var o=t[n];(e=a[(r=o[0].trace).uid])?e.update(o):r._module&&(a[r.uid]=r._module.plot(this,o))}var s=Object.keys(a);t:for(n=0;n<s.length;n++){var l=s[n];for(i=0;i<t.length;i++)if(l===(r=t[i][0].trace).uid)continue t;(e=a[l]).dispose(),delete a[l]}},p.updateLayout=function(t){var e=this.map,r=this.opts;e.setCenter(v(r.center)),e.setZoom(r.zoom),e.setBearing(r.bearing),e.setPitch(r.pitch),this.updateLayers(),this.updateFramework(t),this.updateFx(t),this.map.resize()},p.resolveOnRender=function(t){var e=this.map;e.on(\"render\",function r(){e.loaded()&&(e.off(\"render\",r),setTimeout(t,0))})},p.rejectOnError=function(t){var e=this.map;function r(){t(new Error(c.mapOnErrorMsg))}e.once(\"error\",r),e.once(\"style.error\",r),e.once(\"source.error\",r),e.once(\"tile.error\",r),e.once(\"layer.error\",r)},p.createFramework=function(t){var e=this,r=e.div=document.createElement(\"div\");r.id=e.uid,r.style.position=\"absolute\",e.container.appendChild(r),e.xaxis={_id:\"x\",c2p:function(t){return e.project(t).x}},e.yaxis={_id:\"y\",c2p:function(t){return e.project(t).y}},e.updateFramework(t)},p.updateFx=function(t){var e=this,r=e.map,n=e.gd;if(!e.isStatic){var i,l=t.dragmode;i=\"select\"===l?function(t,r){(t.range={})[e.id]=[u([r.xmin,r.ymin]),u([r.xmax,r.ymax])]}:function(t,r,n){(t.lassoPoints={})[e.id]=n.filtered.map(u)};var c=e.dragOptions;e.dragOptions=a.extendDeep(c||{},{element:e.div,gd:n,plotinfo:{id:e.id,xaxis:e.xaxis,yaxis:e.yaxis,fillRangeItems:i},xaxes:[e.xaxis],yaxes:[e.yaxis],subplot:e.id}),r.off(\"click\",e.onClickInPanHandler),\"select\"===l||\"lasso\"===l?(r.dragPan.disable(),r.on(\"zoomstart\",e.clearSelect),e.dragOptions.prepFn=function(t,r,n){s(t,r,n,e.dragOptions,l)},o.init(e.dragOptions)):(r.dragPan.enable(),r.off(\"zoomstart\",e.clearSelect),e.div.onmousedown=null,e.onClickInPanHandler=e.onClickInPanFn(e.dragOptions),r.on(\"click\",e.onClickInPanHandler))}function u(t){var r=e.map.unproject(t);return[r.lng,r.lat]}},p.updateFramework=function(t){var e=t[this.id].domain,r=t._size,n=this.div.style;n.width=r.w*(e.x[1]-e.x[0])+\"px\",n.height=r.h*(e.y[1]-e.y[0])+\"px\",n.left=r.l+e.x[0]*r.w+\"px\",n.top=r.t+(1-e.y[1])*r.h+\"px\",this.xaxis._offset=r.l+e.x[0]*r.w,this.xaxis._length=r.w*(e.x[1]-e.x[0]),this.yaxis._offset=r.t+(1-e.y[1])*r.h,this.yaxis._length=r.h*(e.y[1]-e.y[0])},p.updateLayers=function(){var t,e=this.opts.layers,r=this.layerList;if(e.length!==r.length){for(t=0;t<r.length;t++)r[t].dispose();for(r=this.layerList=[],t=0;t<e.length;t++)r.push(f(this,t,e[t]))}else for(t=0;t<e.length;t++)r[t].update(e[t])},p.destroy=function(){this.map&&(this.map.remove(),this.map=null,this.container.removeChild(this.div))},p.toImage=function(){return this.map.stop(),this.map.getCanvas().toDataURL()},p.setOptions=function(t,e,r){for(var n in r)this.map[e](t,n,r[n])},p.project=function(t){return this.map.project(new n.LngLat(t[0],t[1]))},p.getView=function(){var t=this.map,e=t.getCenter();return{center:{lon:e.lng,lat:e.lat},zoom:t.getZoom(),bearing:t.getBearing(),pitch:t.getPitch()}}},{\"../../components/dragelement\":592,\"../../components/fx\":612,\"../../lib\":696,\"../cartesian/select\":762,\"./constants\":800,\"./layers\":803,\"./layout_attributes\":804,\"mapbox-gl\":409}],807:[function(t,e,r){\"use strict\";e.exports={t:{valType:\"number\",dflt:0,editType:\"arraydraw\"},r:{valType:\"number\",dflt:0,editType:\"arraydraw\"},b:{valType:\"number\",dflt:0,editType:\"arraydraw\"},l:{valType:\"number\",dflt:0,editType:\"arraydraw\"},editType:\"arraydraw\"}},{}],808:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"fast-isnumeric\"),a=t(\"../registry\"),o=t(\"../plot_api/plot_schema\"),s=t(\"../plot_api/plot_template\"),l=t(\"../lib\"),c=t(\"../components/color\"),u=t(\"../constants/numerical\").BADNUM,f=t(\"../plots/cartesian/axis_ids\"),h=t(\"./animation_attributes\"),p=t(\"./frame_attributes\"),d=l.relinkPrivateKeys,g=l._,v=e.exports={};l.extendFlat(v,a),v.attributes=t(\"./attributes\"),v.attributes.type.values=v.allTypes,v.fontAttrs=t(\"./font_attributes\"),v.layoutAttributes=t(\"./layout_attributes\"),v.fontWeight=\"normal\";var m=v.transformsRegistry,y=t(\"./command\");v.executeAPICommand=y.executeAPICommand,v.computeAPICommandBindings=y.computeAPICommandBindings,v.manageCommandObserver=y.manageCommandObserver,v.hasSimpleAPICommandBindings=y.hasSimpleAPICommandBindings,v.redrawText=function(t){if(!((t=l.getGraphDiv(t)).data&&t.data[0]&&t.data[0].r))return new Promise(function(e){setTimeout(function(){a.getComponentMethod(\"annotations\",\"draw\")(t),a.getComponentMethod(\"legend\",\"draw\")(t),(t.calcdata||[]).forEach(function(t){t[0]&&t[0].t&&t[0].t.cb&&t[0].t.cb()}),e(v.previousPromises(t))},300)})},v.resize=function(t){return t=l.getGraphDiv(t),new Promise(function(e,r){function n(t){var e=window.getComputedStyle(t).display;return!e||\"none\"===e}t&&!n(t)||r(new Error(\"Resize must be passed a displayed plot div element.\")),t._redrawTimer&&clearTimeout(t._redrawTimer),t._redrawTimer=setTimeout(function(){if(!t.layout||t.layout.width&&t.layout.height||n(t))e(t);else{delete t.layout.width,delete t.layout.height;var r=t.changed;t.autoplay=!0,a.call(\"relayout\",t,{autosize:!0}).then(function(){t.changed=r,e(t)})}},100)})},v.previousPromises=function(t){if((t._promises||[]).length)return Promise.all(t._promises).then(function(){t._promises=[]})},v.addLinks=function(t){if(t._context.showLink||t._context.showSources){var e=t._fullLayout,r=l.ensureSingle(e._paper,\"text\",\"js-plot-link-container\",function(t){t.style({\"font-family\":'\"Open Sans\", Arial, sans-serif',\"font-size\":\"12px\",fill:c.defaultLine,\"pointer-events\":\"all\"}).each(function(){var t=n.select(this);t.append(\"tspan\").classed(\"js-link-to-tool\",!0),t.append(\"tspan\").classed(\"js-link-spacer\",!0),t.append(\"tspan\").classed(\"js-sourcelinks\",!0)})}),i=r.node(),a={y:e._paper.attr(\"height\")-9};document.body.contains(i)&&i.getComputedTextLength()>=e.width-20?(a[\"text-anchor\"]=\"start\",a.x=5):(a[\"text-anchor\"]=\"end\",a.x=e._paper.attr(\"width\")-7),r.attr(a);var o=r.select(\".js-link-to-tool\"),s=r.select(\".js-link-spacer\"),u=r.select(\".js-sourcelinks\");t._context.showSources&&t._context.showSources(t),t._context.showLink&&function(t,e){e.text(\"\");var r=e.append(\"a\").attr({\"xlink:xlink:href\":\"#\",class:\"link--impt link--embedview\",\"font-weight\":\"bold\"}).text(t._context.linkText+\" \"+String.fromCharCode(187));if(t._context.sendData)r.on(\"click\",function(){v.sendDataToCloud(t)});else{var n=window.location.pathname.split(\"/\"),i=window.location.search;r.attr({\"xlink:xlink:show\":\"new\",\"xlink:xlink:href\":\"/\"+n[2].split(\".\")[0]+\"/\"+n[1]+i})}}(t,o),s.text(o.text()&&u.text()?\" - \":\"\")}},v.sendDataToCloud=function(t){t.emit(\"plotly_beforeexport\");var e=(window.PLOTLYENV||{}).BASE_URL||t._context.plotlyServerURL,r=n.select(t).append(\"div\").attr(\"id\",\"hiddenform\").style(\"display\",\"none\"),i=r.append(\"form\").attr({action:e+\"/external\",method:\"post\",target:\"_blank\"});return i.append(\"input\").attr({type:\"text\",name:\"data\"}).node().value=v.graphJson(t,!1,\"keepdata\"),i.node().submit(),r.remove(),t.emit(\"plotly_afterexport\"),!1};var x,b=[\"days\",\"shortDays\",\"months\",\"shortMonths\",\"periods\",\"dateTime\",\"date\",\"time\",\"decimal\",\"thousands\",\"grouping\",\"currency\"],_=[\"year\",\"month\",\"dayMonth\",\"dayMonthYear\"];function w(t,e){var r=t._context.locale,n=!1,i={};function o(t){for(var r=!0,a=0;a<e.length;a++){var o=e[a];i[o]||(t[o]?i[o]=t[o]:r=!1)}r&&(n=!0)}for(var s=0;s<2;s++){for(var l=t._context.locales,c=0;c<2;c++){var u=(l[r]||{}).format;if(u&&(o(u),n))break;l=a.localeRegistry}var f=r.split(\"-\")[0];if(n||f===r)break;r=f}return n||o(a.localeRegistry.en.format),i}function k(t){var e=t.transforms;if(Array.isArray(e)&&e.length)for(var r=0;r<e.length;r++){var n=e[r],i=n._module||m[n.type];if(i&&i.makesData)return!0}return!1}function M(t,e,r,n){for(var i=t.transforms,a=[t],o=0;o<i.length;o++){var s=i[o],l=m[s.type];l&&l.transform&&(a=l.transform(a,{transform:s,fullTrace:t,fullData:e,layout:r,fullLayout:n,transformIndex:o}))}return a}function A(t){t._pushmargin||(t._pushmargin={}),t._pushmarginIds||(t._pushmarginIds={})}function T(t){for(var e=0;e<t.length;e++)t[e].clearCalc()}v.supplyDefaults=function(t,e){var r=e&&e.skipUpdateCalc,i=t._fullLayout||{};if(i._skipDefaults)delete i._skipDefaults;else{var o,s=t._fullLayout={},c=t.layout||{},u=t._fullData||[],h=t._fullData=[],p=t.data||[],m=t.calcdata||[],y=t._context||{};t._transitionData||v.createTransitionData(t),s._dfltTitle={plot:g(t,\"Click to enter Plot title\"),x:g(t,\"Click to enter X axis title\"),y:g(t,\"Click to enter Y axis title\"),colorbar:g(t,\"Click to enter Colorscale title\"),annotation:g(t,\"new text\")},s._traceWord=g(t,\"trace\");var k=w(t,b);if(s._mapboxAccessToken=y.mapboxAccessToken,i._initialAutoSizeIsDone){var M=i.width,A=i.height;v.supplyLayoutGlobalDefaults(c,s,k),c.width||(s.width=M),c.height||(s.height=A),v.sanitizeMargins(s)}else{v.supplyLayoutGlobalDefaults(c,s,k);var T=!c.width||!c.height,S=s.autosize,E=y.autosizable;T&&(S||E)?v.plotAutoSize(t,c,s):T&&v.sanitizeMargins(s),!S&&T&&(c.width=s.width,c.height=s.height)}s._d3locale=function(t,e){return t.decimal=e.charAt(0),t.thousands=e.charAt(1),n.locale(t)}(k,s.separators),s._extraFormat=w(t,_),s._initialAutoSizeIsDone=!0,s._dataLength=p.length,s._modules=[],s._visibleModules=[],s._basePlotModules=[];var C=s._subplots=function(){var t,e,r={};if(!x){x=[];var n=a.subplotsRegistry;for(var i in n){var o=n[i],s=o.attr;if(s&&(x.push(i),Array.isArray(s)))for(e=0;e<s.length;e++)l.pushUnique(x,s[e])}}for(t=0;t<x.length;t++)r[x[t]]=[];return r}(),L=s._splomAxes={x:{},y:{}},z=s._splomSubplots={};s._splomGridDflt={},s._scatterStackOpts={},s._firstScatter={},s._requestRangeslider={},s._traceUids=function(t,e){var r,n,i=e.length,a=[];for(r=0;r<t.length;r++){var o=t[r]._fullInput;o!==n&&a.push(o),n=o}var s=a.length,c=new Array(i),u={};function f(t,e){c[e]=t,u[t]=1}function h(t,e){if(t&&\"string\"==typeof t&&!u[t])return f(t,e),!0}for(r=0;r<i;r++)h(e[r].uid,r)||r<s&&h(a[r].uid,r)||f(l.randstr(u),r);return c}(u,p),s._globalTransforms=(t._context||{}).globalTransforms,v.supplyDataDefaults(p,h,c,s);var O=Object.keys(L.x),I=Object.keys(L.y);if(O.length>1&&I.length>1){for(a.getComponentMethod(\"grid\",\"sizeDefaults\")(c,s),o=0;o<O.length;o++)l.pushUnique(C.xaxis,O[o]);for(o=0;o<I.length;o++)l.pushUnique(C.yaxis,I[o]);for(var P in z)l.pushUnique(C.cartesian,P)}if(s._has=v._hasPlotType.bind(s),u.length===h.length)for(o=0;o<h.length;o++)d(h[o],u[o]);v.supplyLayoutModuleDefaults(c,s,h,t._transitionData);var D=s._visibleModules,R=[];for(o=0;o<D.length;o++){var B=D[o].crossTraceDefaults;B&&l.pushUnique(R,B)}for(o=0;o<R.length;o++)R[o](h,s);s._hasOnlyLargeSploms=1===s._basePlotModules.length&&\"splom\"===s._basePlotModules[0].name&&O.length>15&&I.length>15&&0===s.shapes.length&&0===s.images.length,s._hasCartesian=s._has(\"cartesian\"),s._hasGeo=s._has(\"geo\"),s._hasGL3D=s._has(\"gl3d\"),s._hasGL2D=s._has(\"gl2d\"),s._hasTernary=s._has(\"ternary\"),s._hasPie=s._has(\"pie\"),v.linkSubplots(h,s,u,i),v.cleanPlot(h,s,u,i),d(s,i),v.doAutoMargin(t);var F=f.list(t);for(o=0;o<F.length;o++){F[o].setScale()}r||m.length!==h.length||v.supplyDefaultsUpdateCalc(m,h)}},v.supplyDefaultsUpdateCalc=function(t,e){for(var r=0;r<e.length;r++){var n=e[r],i=t[r][0];if(i&&i.trace){var a=i.trace;if(a._hasCalcTransform){var o,s,c,u=a._arrayAttrs;for(o=0;o<u.length;o++)s=u[o],c=l.nestedProperty(a,s).get().slice(),l.nestedProperty(n,s).set(c)}i.trace=n}}},v.createTransitionData=function(t){t._transitionData||(t._transitionData={}),t._transitionData._frames||(t._transitionData._frames=[]),t._transitionData._frameHash||(t._transitionData._frameHash={}),t._transitionData._counter||(t._transitionData._counter=0),t._transitionData._interruptCallbacks||(t._transitionData._interruptCallbacks=[])},v._hasPlotType=function(t){var e,r=this._basePlotModules||[];for(e=0;e<r.length;e++)if(r[e].name===t)return!0;var n=this._modules||[];for(e=0;e<n.length;e++){var i=n[e].name;if(i===t)return!0;var o=a.modules[i];if(o&&o.categories[t])return!0}return!1},v.cleanPlot=function(t,e,r,n){var i,a,o=n._basePlotModules||[];for(i=0;i<o.length;i++){var s=o[i];s.clean&&s.clean(t,e,r,n)}var l=n._has&&n._has(\"gl\"),c=e._has&&e._has(\"gl\");l&&!c&&void 0!==n._glcontainer&&(n._glcontainer.selectAll(\".gl-canvas\").remove(),n._glcontainer.selectAll(\".no-webgl\").remove(),n._glcanvas=null);var u=!!n._infolayer;t:for(i=0;i<r.length;i++){var f=r[i].uid;for(a=0;a<t.length;a++){if(f===t[a].uid)continue t}u&&n._infolayer.select(\".cb\"+f).remove()}n._zoomlayer&&n._zoomlayer.selectAll(\".select-outline\").remove()},v.linkSubplots=function(t,e,r,n){var i,a,o=n._plots||{},s=e._plots={},l=e._subplots,c={_fullData:t,_fullLayout:e},u=l.cartesian.concat(l.gl2d||[]);for(i=0;i<u.length;i++){var h,p=u[i],d=o[p],g=f.getFromId(c,p,\"x\"),v=f.getFromId(c,p,\"y\");for(d?h=s[p]=d:(h=s[p]={}).id=p,h.xaxis=g,h.yaxis=v,h._hasClipOnAxisFalse=!1,a=0;a<t.length;a++){var m=t[a];if(m.xaxis===h.xaxis._id&&m.yaxis===h.yaxis._id&&!1===m.cliponaxis){h._hasClipOnAxisFalse=!0;break}}}var y=f.list(c,null,!0);for(i=0;i<y.length;i++){var x=y[i],b=null;x.overlaying&&(b=f.getFromId(c,x.overlaying))&&b.overlaying&&(x.overlaying=!1,b=null),x._mainAxis=b||x,b&&(x.domain=b.domain.slice()),x._anchorAxis=\"free\"===x.anchor?null:f.getFromId(c,x.anchor)}},v.clearExpandedTraceDefaultColors=function(t){var e,r,n;for(r=[],(e=t._module._colorAttrs)||(t._module._colorAttrs=e=[],o.crawl(t._module.attributes,function(t,n,i,a){r[a]=n,r.length=a+1,\"color\"===t.valType&&void 0===t.dflt&&e.push(r.join(\".\"))})),n=0;n<e.length;n++){l.nestedProperty(t,\"_input.\"+e[n]).get()||l.nestedProperty(t,e[n]).set(null)}},v.supplyDataDefaults=function(t,e,r,n){var i,o,c,u=n._modules,f=n._visibleModules,h=n._basePlotModules,p=0,g=0;function m(t){e.push(t);var r=t._module;r&&(l.pushUnique(u,r),!0===t.visible&&l.pushUnique(f,r),l.pushUnique(h,t._module.basePlotModule),p++,!1!==t._input.visible&&g++)}n._transformModules=[];var y={},x=[],b=(r.template||{}).data||{},_=s.traceTemplater(b);for(i=0;i<t.length;i++){if(c=t[i],(o=_.newTrace(c)).uid=n._traceUids[i],v.supplyTraceDefaults(c,o,g,n,i),o.index=i,o._input=c,o._expandedIndex=p,o.transforms&&o.transforms.length)for(var w=!1!==c.visible&&!1===o.visible,k=M(o,e,r,n),A=0;A<k.length;A++){var T=k[A],S={_template:o._template,type:o.type,uid:o.uid+A};w&&!1===T.visible&&delete T.visible,v.supplyTraceDefaults(T,S,p,n,i),d(S,T),S.index=i,S._input=c,S._fullInput=o,S._expandedIndex=p,S._expandedInput=T,m(S)}else o._fullInput=o,o._expandedInput=o,m(o);a.traceIs(o,\"carpetAxis\")&&(y[o.carpet]=o),a.traceIs(o,\"carpetDependent\")&&x.push(i)}for(i=0;i<x.length;i++)if((o=e[x[i]]).visible){var E=y[o.carpet];o._carpet=E,E&&E.visible?(o.xaxis=E.xaxis,o.yaxis=E.yaxis):o.visible=!1}},v.supplyAnimationDefaults=function(t){var e;t=t||{};var r={};function n(e,n){return l.coerce(t||{},r,h,e,n)}if(n(\"mode\"),n(\"direction\"),n(\"fromcurrent\"),Array.isArray(t.frame))for(r.frame=[],e=0;e<t.frame.length;e++)r.frame[e]=v.supplyAnimationFrameDefaults(t.frame[e]||{});else r.frame=v.supplyAnimationFrameDefaults(t.frame||{});if(Array.isArray(t.transition))for(r.transition=[],e=0;e<t.transition.length;e++)r.transition[e]=v.supplyAnimationTransitionDefaults(t.transition[e]||{});else r.transition=v.supplyAnimationTransitionDefaults(t.transition||{});return r},v.supplyAnimationFrameDefaults=function(t){var e={};function r(r,n){return l.coerce(t||{},e,h.frame,r,n)}return r(\"duration\"),r(\"redraw\"),e},v.supplyAnimationTransitionDefaults=function(t){var e={};function r(r,n){return l.coerce(t||{},e,h.transition,r,n)}return r(\"duration\"),r(\"easing\"),e},v.supplyFrameDefaults=function(t){var e={};function r(r,n){return l.coerce(t,e,p,r,n)}return r(\"group\"),r(\"name\"),r(\"traces\"),r(\"baseframe\"),r(\"data\"),r(\"layout\"),e},v.supplyTraceDefaults=function(t,e,r,n,i){var o,s=n.colorway||c.defaults,u=s[r%s.length];function f(r,n){return l.coerce(t,e,v.attributes,r,n)}var h=f(\"visible\");f(\"type\"),f(\"name\",n._traceWord+\" \"+i);var p,d,g,m=v.getModule(e);if(e._module=m,m){var y=m.basePlotModule,x=y.attr,b=y.attributes;if(x&&b){var _=n._subplots,w=\"\";if(\"gl2d\"!==y.name||h){if(Array.isArray(x))for(o=0;o<x.length;o++){var k=x[o],M=l.coerce(t,e,b,k);_[k]&&l.pushUnique(_[k],M),w+=M}else w=l.coerce(t,e,b,x);_[y.name]&&l.pushUnique(_[y.name],w)}}}return h&&(f(\"customdata\"),f(\"ids\"),a.traceIs(e,\"showLegend\")?(e._dfltShowLegend=!0,f(\"showlegend\"),f(\"legendgroup\")):e._dfltShowLegend=!1,p=\"hoverlabel\",d=\"\",g=function(){a.getComponentMethod(\"fx\",\"supplyDefaults\")(t,e,u,n)},m&&p in m.attributes&&void 0===m.attributes[p]||(g&&\"function\"==typeof g?g():f(p,d)),m&&(m.supplyDefaults(t,e,u,n),l.coerceHoverinfo(t,e,n)),a.traceIs(e,\"noOpacity\")||f(\"opacity\"),a.traceIs(e,\"notLegendIsolatable\")&&(e.visible=!!e.visible),m&&m.selectPoints&&f(\"selectedpoints\"),v.supplyTransformDefaults(t,e,n)),e},v.hasMakesDataTransform=k,v.supplyTransformDefaults=function(t,e,r){if(e._length||k(t)){var n=r._globalTransforms||[],i=r._transformModules||[];if(Array.isArray(t.transforms)||0!==n.length)for(var a=t.transforms||[],o=n.concat(a),s=e.transforms=[],c=0;c<o.length;c++){var u,f=o[c],h=f.type,p=m[h],d=!(f._module&&f._module===p),g=p&&\"function\"==typeof p.transform;p||l.warn(\"Unrecognized transform type \"+h+\".\"),p&&p.supplyDefaults&&(d||g)?((u=p.supplyDefaults(f,e,r,t)).type=h,u._module=p,l.pushUnique(i,p)):u=l.extendFlat({},f),s.push(u)}}},v.supplyLayoutGlobalDefaults=function(t,e,r){function n(r,n){return l.coerce(t,e,v.layoutAttributes,r,n)}var i=t.template;l.isPlainObject(i)&&(e.template=i,e._template=i.layout,e._dataTemplate=i.data);var o=l.coerceFont(n,\"font\");n(\"title\",e._dfltTitle.plot),l.coerceFont(n,\"titlefont\",{family:o.family,size:Math.round(1.4*o.size),color:o.color}),n(\"autosize\",!(t.width&&t.height)),n(\"width\"),n(\"height\"),n(\"margin.l\"),n(\"margin.r\"),n(\"margin.t\"),n(\"margin.b\"),n(\"margin.pad\"),n(\"margin.autoexpand\"),t.width&&t.height&&v.sanitizeMargins(e),a.getComponentMethod(\"grid\",\"sizeDefaults\")(t,e),n(\"paper_bgcolor\"),n(\"separators\",r.decimal+r.thousands),n(\"hidesources\"),n(\"colorway\"),n(\"datarevision\"),n(\"modebar.orientation\"),n(\"modebar.bgcolor\",c.addOpacity(e.paper_bgcolor,.5));var s=c.contrast(c.rgb(e.modebar.bgcolor));n(\"modebar.color\",c.addOpacity(s,.3)),n(\"modebar.activecolor\",c.addOpacity(s,.7)),a.getComponentMethod(\"calendars\",\"handleDefaults\")(t,e,\"calendar\"),a.getComponentMethod(\"fx\",\"supplyLayoutGlobalDefaults\")(t,e,n)},v.plotAutoSize=function(t,e,r){var n,a,o=t._context||{},s=o.frameMargins,c=l.isPlotDiv(t);if(c&&t.emit(\"plotly_autosize\"),o.fillFrame)n=window.innerWidth,a=window.innerHeight,document.body.style.overflow=\"hidden\";else{var u=c?window.getComputedStyle(t):{};if(n=parseFloat(u.width)||parseFloat(u.maxWidth)||r.width,a=parseFloat(u.height)||parseFloat(u.maxHeight)||r.height,i(s)&&s>0){var f=1-2*s;n=Math.round(f*n),a=Math.round(f*a)}}var h=v.layoutAttributes.width.min,p=v.layoutAttributes.height.min;n<h&&(n=h),a<p&&(a=p);var d=!e.width&&Math.abs(r.width-n)>1,g=!e.height&&Math.abs(r.height-a)>1;(g||d)&&(d&&(r.width=n),g&&(r.height=a)),t._initialAutoSize||(t._initialAutoSize={width:n,height:a}),v.sanitizeMargins(r)},v.supplyLayoutModuleDefaults=function(t,e,r,n){var i,o,s,c=a.componentsRegistry,u=e._basePlotModules,f=a.subplotsRegistry.cartesian;for(i in c)(s=c[i]).includeBasePlot&&s.includeBasePlot(t,e);for(var h in u.length||u.push(f),e._has(\"cartesian\")&&(a.getComponentMethod(\"grid\",\"contentDefaults\")(t,e),f.finalizeSubplots(t,e)),e._subplots)e._subplots[h].sort(l.subplotSort);for(o=0;o<u.length;o++)(s=u[o]).supplyLayoutDefaults&&s.supplyLayoutDefaults(t,e,r);var p=e._modules;for(o=0;o<p.length;o++)(s=p[o]).supplyLayoutDefaults&&s.supplyLayoutDefaults(t,e,r);var d=e._transformModules;for(o=0;o<d.length;o++)(s=d[o]).supplyLayoutDefaults&&s.supplyLayoutDefaults(t,e,r,n);for(i in c)(s=c[i]).supplyLayoutDefaults&&s.supplyLayoutDefaults(t,e,r)},v.purge=function(t){var e=t._fullLayout||{};void 0!==e._glcontainer&&(e._glcontainer.selectAll(\".gl-canvas\").remove(),e._glcontainer.remove(),e._glcanvas=null),void 0!==e._geocontainer&&e._geocontainer.remove(),e._modeBar&&e._modeBar.destroy(),t._transitionData&&(t._transitionData._interruptCallbacks&&(t._transitionData._interruptCallbacks.length=0),t._transitionData._animationRaf&&window.cancelAnimationFrame(t._transitionData._animationRaf)),l.clearThrottle(),l.clearResponsive(t),delete t.data,delete t.layout,delete t._fullData,delete t._fullLayout,delete t.calcdata,delete t.framework,delete t.empty,delete t.fid,delete t.undoqueue,delete t.undonum,delete t.autoplay,delete t.changed,delete t._promises,delete t._redrawTimer,delete t._hmlumcount,delete t._hmpixcount,delete t._transitionData,delete t._transitioning,delete t._initialAutoSize,delete t._transitioningWithDuration,delete t._dragging,delete t._dragged,delete t._hoverdata,delete t._snapshotInProgress,delete t._editing,delete t._replotPending,delete t._mouseDownTime,delete t._legendMouseDownTime,t.removeAllListeners&&t.removeAllListeners()},v.style=function(t){var e,r=t._fullLayout._visibleModules,n=[];for(e=0;e<r.length;e++){var i=r[e];i.style&&l.pushUnique(n,i.style)}for(e=0;e<n.length;e++)n[e](t)},v.sanitizeMargins=function(t){if(t&&t.margin){var e,r=t.width,n=t.height,i=t.margin,a=r-(i.l+i.r),o=n-(i.t+i.b);a<0&&(e=(r-1)/(i.l+i.r),i.l=Math.floor(e*i.l),i.r=Math.floor(e*i.r)),o<0&&(e=(n-1)/(i.t+i.b),i.t=Math.floor(e*i.t),i.b=Math.floor(e*i.b))}},v.clearAutoMarginIds=function(t){t._fullLayout._pushmarginIds={}},v.allowAutoMargin=function(t,e){t._fullLayout._pushmarginIds[e]=1},v.autoMargin=function(t,e,r){var n=t._fullLayout;A(n);var i=n._pushmargin,a=n._pushmarginIds;if(!1!==n.margin.autoexpand){if(r){var o=r.pad;if(void 0===o){var s=n.margin;o=Math.min(12,s.l,s.r,s.t,s.b)}r.l+r.r>.5*n.width&&(r.l=r.r=0),r.b+r.t>.5*n.height&&(r.b=r.t=0);var l=void 0!==r.xl?r.xl:r.x,c=void 0!==r.xr?r.xr:r.x,u=void 0!==r.yt?r.yt:r.y,f=void 0!==r.yb?r.yb:r.y;i[e]={l:{val:l,size:r.l+o},r:{val:c,size:r.r+o},b:{val:f,size:r.b+o},t:{val:u,size:r.t+o}},a[e]=1}else delete i[e],delete a[e];n._replotting||v.doAutoMargin(t)}},v.doAutoMargin=function(t){var e=t._fullLayout;e._size||(e._size={}),A(e);var r=e._size,n=JSON.stringify(r),o=Math.max(e.margin.l||0,0),s=Math.max(e.margin.r||0,0),l=Math.max(e.margin.t||0,0),c=Math.max(e.margin.b||0,0),u=e._pushmargin,f=e._pushmarginIds;if(!1!==e.margin.autoexpand){for(var h in u)f[h]||delete u[h];for(var p in u.base={l:{val:0,size:o},r:{val:1,size:s},t:{val:1,size:l},b:{val:0,size:c}},u){var d=u[p].l||{},g=u[p].b||{},v=d.val,m=d.size,y=g.val,x=g.size;for(var b in u){if(i(m)&&u[b].r){var _=u[b].r.val,w=u[b].r.size;if(_>v){var k=(m*_+(w-e.width)*v)/(_-v),M=(w*(1-v)+(m-e.width)*(1-_))/(_-v);k>=0&&M>=0&&k+M>o+s&&(o=k,s=M)}}if(i(x)&&u[b].t){var T=u[b].t.val,S=u[b].t.size;if(T>y){var E=(x*T+(S-e.height)*y)/(T-y),C=(S*(1-y)+(x-e.height)*(1-T))/(T-y);E>=0&&C>=0&&E+C>c+l&&(c=E,l=C)}}}}}if(r.l=Math.round(o),r.r=Math.round(s),r.t=Math.round(l),r.b=Math.round(c),r.p=Math.round(e.margin.pad),r.w=Math.round(e.width)-r.l-r.r,r.h=Math.round(e.height)-r.t-r.b,!e._replotting&&\"{}\"!==n&&n!==JSON.stringify(e._size))return\"_redrawFromAutoMarginCount\"in e?e._redrawFromAutoMarginCount++:e._redrawFromAutoMarginCount=1,a.call(\"plot\",t)},v.graphJson=function(t,e,r,n,i){(i&&e&&!t._fullData||i&&!e&&!t._fullLayout)&&v.supplyDefaults(t);var a=i?t._fullData:t.data,o=i?t._fullLayout:t.layout,s=(t._transitionData||{})._frames;function c(t){if(\"function\"==typeof t)return null;if(l.isPlainObject(t)){var e,n,i={};for(e in t)if(\"function\"!=typeof t[e]&&-1===[\"_\",\"[\"].indexOf(e.charAt(0))){if(\"keepdata\"===r){if(\"src\"===e.substr(e.length-3))continue}else if(\"keepstream\"===r){if(\"string\"==typeof(n=t[e+\"src\"])&&n.indexOf(\":\")>0&&!l.isPlainObject(t.stream))continue}else if(\"keepall\"!==r&&\"string\"==typeof(n=t[e+\"src\"])&&n.indexOf(\":\")>0)continue;i[e]=c(t[e])}return i}return Array.isArray(t)?t.map(c):l.isTypedArray(t)?l.simpleMap(t,l.identity):l.isJSDate(t)?l.ms2DateTimeLocal(+t):t}var u={data:(a||[]).map(function(t){var r=c(t);return e&&delete r.fit,r})};return e||(u.layout=c(o)),t.framework&&t.framework.isPolar&&(u=t.framework.getConfig()),s&&(u.frames=c(s)),\"object\"===n?u:JSON.stringify(u)},v.modifyFrames=function(t,e){var r,n,i,a=t._transitionData._frames,o=t._transitionData._frameHash;for(r=0;r<e.length;r++)switch((n=e[r]).type){case\"replace\":i=n.value;var s=(a[n.index]||{}).name,l=i.name;a[n.index]=o[l]=i,l!==s&&(delete o[s],o[l]=i);break;case\"insert\":o[(i=n.value).name]=i,a.splice(n.index,0,i);break;case\"delete\":delete o[(i=a[n.index]).name],a.splice(n.index,1)}return Promise.resolve()},v.computeFrame=function(t,e){var r,n,i,a,o=t._transitionData._frameHash;if(!e)throw new Error(\"computeFrame must be given a string frame name\");var s=o[e.toString()];if(!s)return!1;for(var l=[s],c=[s.name];s.baseframe&&(s=o[s.baseframe.toString()])&&-1===c.indexOf(s.name);)l.push(s),c.push(s.name);for(var u={};s=l.pop();)if(s.layout&&(u.layout=v.extendLayout(u.layout,s.layout)),s.data){if(u.data||(u.data=[]),!(n=s.traces))for(n=[],r=0;r<s.data.length;r++)n[r]=r;for(u.traces||(u.traces=[]),r=0;r<s.data.length;r++)null!=(i=n[r])&&(-1===(a=u.traces.indexOf(i))&&(a=u.data.length,u.traces[a]=i),u.data[a]=v.extendTrace(u.data[a],s.data[r]))}return u},v.recomputeFrameHash=function(t){for(var e=t._transitionData._frameHash={},r=t._transitionData._frames,n=0;n<r.length;n++){var i=r[n];i&&i.name&&(e[i.name]=i)}},v.extendObjectWithContainers=function(t,e,r){var n,i,a,o,s,c,u,f=l.extendDeepNoArrays({},e||{}),h=l.expandObjectPaths(f),p={};if(r&&r.length)for(a=0;a<r.length;a++)void 0===(i=(n=l.nestedProperty(h,r[a])).get())?l.nestedProperty(p,r[a]).set(null):(n.set(null),l.nestedProperty(p,r[a]).set(i));if(t=l.extendDeepNoArrays(t||{},h),r&&r.length)for(a=0;a<r.length;a++)if(c=l.nestedProperty(p,r[a]).get()){for(u=(s=l.nestedProperty(t,r[a])).get(),Array.isArray(u)||(u=[],s.set(u)),o=0;o<c.length;o++){var d=c[o];u[o]=null===d?null:v.extendObjectWithContainers(u[o],d)}s.set(u)}return t},v.dataArrayContainers=[\"transforms\",\"dimensions\"],v.layoutArrayContainers=a.layoutArrayContainers,v.extendTrace=function(t,e){return v.extendObjectWithContainers(t,e,v.dataArrayContainers)},v.extendLayout=function(t,e){return v.extendObjectWithContainers(t,e,v.layoutArrayContainers)},v.transition=function(t,e,r,n,i,o){var s,c,u=Array.isArray(e)?e.length:0,f=n.slice(0,u),h=[];var p=!1;for(s=0;s<f.length;s++){c=f[s];t._fullData[c]._module}var d=[v.previousPromises,function(){if(t._transitionData)return t._transitioning=!1,function(t){var e=Promise.resolve();if(!t)return e;for(;t.length;)e=e.then(t.shift());return e}(t._transitionData._interruptCallbacks)},function(){var n;for(n=0;n<f.length;n++){var i=f[n],a=t._fullData[i]._module;a&&(a.animatable&&h.push(i),t.data[f[n]]=v.extendTrace(t.data[f[n]],e[n]))}var o=l.expandObjectPaths(l.extendDeepNoArrays({},r)),s=/^[xy]axis[0-9]*$/;for(var c in o)s.test(c)&&delete o[c].range;return v.extendLayout(t.layout,o),delete t.calcdata,v.supplyDefaults(t),v.doCalcdata(t),Promise.resolve()},v.rehover,function(){return t.emit(\"plotly_transitioning\",[]),new Promise(function(e){t._transitioning=!0,o.duration>0&&(t._transitioningWithDuration=!0),t._transitionData._interruptCallbacks.push(function(){p=!0}),i.redraw&&t._transitionData._interruptCallbacks.push(function(){return a.call(\"redraw\",t)}),t._transitionData._interruptCallbacks.push(function(){t.emit(\"plotly_transitioninterrupted\",[])});var n,s,c=0,u=0;function f(){return c++,function(){var r;u++,p||u!==c||(r=e,t._transitionData&&(function(t){if(t)for(;t.length;)t.shift()}(t._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(i.redraw)return a.call(\"redraw\",t)}).then(function(){t._transitioning=!1,t._transitioningWithDuration=!1,t.emit(\"plotly_transitioned\",[])}).then(r)))}}var d=t._fullLayout._basePlotModules,g=!1;if(r)for(s=0;s<d.length;s++)if(d[s].transitionAxes){var v=l.expandObjectPaths(r);g=d[s].transitionAxes(t,v,o,f)||g}for(g?((n=l.extendFlat({},o)).duration=0,h=null):n=o,s=0;s<d.length;s++)d[s].plot(t,h,n,f);setTimeout(f())})}],g=l.syncOrAsync(d,t);return g&&g.then||(g=Promise.resolve()),g.then(function(){return t})},v.doCalcdata=function(t,e){var r,n,i,s,c=f.list(t),h=t._fullData,p=t._fullLayout,d=new Array(h.length),g=(t.calcdata||[]).slice(0);for(t.calcdata=d,p._numBoxes=0,p._numViolins=0,p._violinScaleGroupStats={},t._hmpixcount=0,t._hmlumcount=0,p._piecolormap={},i=0;i<h.length;i++)Array.isArray(e)&&-1===e.indexOf(i)&&(d[i]=g[i]);for(i=0;i<h.length;i++)(r=h[i])._arrayAttrs=o.findArrayAttributes(r),r._extremes={};var v=p._subplots.polar||[];for(i=0;i<v.length;i++)c.push(p[v[i]].radialaxis,p[v[i]].angularaxis);T(c);var y=!1;for(i=0;i<h.length;i++)if(!0===(r=h[i]).visible&&r.transforms){if((n=r._module)&&n.calc){var x=n.calc(t,r);x[0]&&x[0].t&&x[0].t._scene&&delete x[0].t._scene.dirty}for(s=0;s<r.transforms.length;s++){var b=r.transforms[s];(n=m[b.type])&&n.calcTransform&&(r._hasCalcTransform=!0,y=!0,n.calcTransform(t,r,b))}}function _(e,i){if(r=h[e],!!(n=r._module).isContainer===i){var a=[];if(!0===r.visible){delete r._indexToPoints;var o=r.transforms||[];for(s=o.length-1;s>=0;s--)if(o[s].enabled){r._indexToPoints=o[s]._indexToPoints;break}n&&n.calc&&(a=n.calc(t,r))}Array.isArray(a)&&a[0]||(a=[{x:u,y:u}]),a[0].t||(a[0].t={}),a[0].trace=r,d[e]=a}}for(y&&T(c),i=0;i<h.length;i++)_(i,!0);for(i=0;i<h.length;i++)_(i,!1);!function(t){var e,r,n,i=t._fullLayout,a=i._visibleModules,o={};for(r=0;r<a.length;r++){var s=a[r],c=s.crossTraceCalc;if(c){var u=s.basePlotModule.name;o[u]?l.pushUnique(o[u],c):o[u]=[c]}}for(n in o){var f=o[n],h=i._subplots[n];if(Array.isArray(h))for(e=0;e<h.length;e++){var p=h[e],d=\"cartesian\"===n?i._plots[p]:i[p];for(r=0;r<f.length;r++)f[r](t,d,p)}else for(r=0;r<f.length;r++)f[r](t)}}(t),a.getComponentMethod(\"fx\",\"calc\")(t),a.getComponentMethod(\"errorbars\",\"calc\")(t)},v.rehover=function(t){t._fullLayout._rehover&&t._fullLayout._rehover()},v.generalUpdatePerTraceModule=function(t,e,r,n){var i,a=e.traceHash,o={};for(i=0;i<r.length;i++){var s=r[i],c=s[0].trace;c.visible&&(o[c.type]=o[c.type]||[],o[c.type].push(s))}for(var u in a)if(!o[u]){var f=a[u][0];f[0].trace.visible=!1,o[u]=[f]}for(var h in o){var p=o[h];p[0][0].trace._module.plot(t,e,l.filterVisible(p),n)}e.traceHash=o}},{\"../components/color\":570,\"../constants/numerical\":673,\"../lib\":696,\"../plot_api/plot_schema\":733,\"../plot_api/plot_template\":734,\"../plots/cartesian/axis_ids\":747,\"../registry\":827,\"./animation_attributes\":739,\"./attributes\":741,\"./command\":769,\"./font_attributes\":771,\"./frame_attributes\":772,\"./layout_attributes\":799,d3:148,\"fast-isnumeric\":214}],809:[function(t,e,r){\"use strict\";e.exports={attr:\"subplot\",name:\"polar\",axisNames:[\"angularaxis\",\"radialaxis\"],axisName2dataArray:{angularaxis:\"theta\",radialaxis:\"r\"},layerNames:[\"draglayer\",\"plotbg\",\"backplot\",\"angular-grid\",\"radial-grid\",\"frontplot\",\"angular-line\",\"radial-line\",\"angular-axis\",\"radial-axis\"],radialDragBoxSize:50,angularDragBoxSize:30,cornerLen:25,cornerHalfWidth:2,MINDRAG:8,MINZOOM:20,OFFEDGE:20}},{}],810:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../lib/polygon\").tester,a=n.findIndexOfMin,o=n.isAngleInsideSector,s=n.angleDelta,l=n.angleDist;function c(t,e,r,n){var i,a,o=n[0],s=n[1],l=f(Math.sin(e)-Math.sin(t)),c=f(Math.cos(e)-Math.cos(t)),u=Math.tan(r),h=f(1/u),p=l/c,d=s-p*o;return h?l&&c?a=u*(i=d/(u-p)):c?(i=s*h,a=s):(i=o,a=o*u):l&&c?(i=0,a=d):c?(i=0,a=s):i=a=NaN,[i,a]}function u(t,e,r,i){return n.isFullCircle([e,r])?function(t,e){var r,n=e.length,i=new Array(n+1);for(r=0;r<n;r++){var a=e[r];i[r]=[t*Math.cos(a),t*Math.sin(a)]}return i[r]=i[0].slice(),i}(t,i):function(t,e,r,i){var s,u,f=i.length,h=[];function p(e){return[t*Math.cos(e),t*Math.sin(e)]}function d(t,e,r){return c(t,e,r,p(t))}function g(t){return n.mod(t,f)}function v(t){return o(t,[e,r])}var m=a(i,function(t){return v(t)?l(t,e):1/0}),y=d(i[m],i[g(m-1)],e);for(h.push(y),s=m,u=0;u<f;s++,u++){var x=i[g(s)];if(!v(x))break;h.push(p(x))}var b=a(i,function(t){return v(t)?l(t,r):1/0}),_=d(i[b],i[g(b+1)],r);return h.push(_),h.push([0,0]),h.push(h[0].slice()),h}(t,e,r,i)}function f(t){return Math.abs(t)>1e-10?t:0}function h(t,e,r){e=e||0,r=r||0;for(var n=t.length,i=new Array(n),a=0;a<n;a++){var o=t[a];i[a]=[e+o[0],r-o[1]]}return i}e.exports={isPtInsidePolygon:function(t,e,r,n,a){if(!o(e,n))return!1;var s,l;r[0]<r[1]?(s=r[0],l=r[1]):(s=r[1],l=r[0]);var c=i(u(s,n[0],n[1],a)),f=i(u(l,n[0],n[1],a)),h=[t*Math.cos(e),t*Math.sin(e)];return f.contains(h)&&!c.contains(h)},findPolygonOffset:function(t,e,r,n){for(var i=1/0,a=1/0,o=u(t,e,r,n),s=0;s<o.length;s++){var l=o[s];i=Math.min(i,l[0]),a=Math.min(a,-l[1])}return[i,a]},findEnclosingVertexAngles:function(t,e){var r=a(e,function(e){var r=s(e,t);return r>0?r:1/0}),i=n.mod(r+1,e.length);return[e[r],e[i]]},findIntersectionXY:c,findXYatLength:function(t,e,r,n){var i=-e*r,a=e*e+1,o=2*(e*i-r),s=i*i+r*r-t*t,l=Math.sqrt(o*o-4*a*s),c=(-o+l)/(2*a),u=(-o-l)/(2*a);return[[c,e*c+i+n],[u,e*u+i+n]]},clampTiny:f,pathPolygon:function(t,e,r,n,i,a){return\"M\"+h(u(t,e,r,n),i,a).join(\"L\")},pathPolygonAnnulus:function(t,e,r,n,i,a,o){var s,l;t<e?(s=t,l=e):(s=e,l=t);var c=h(u(s,r,n,i),a,o);return\"M\"+h(u(l,r,n,i),a,o).reverse().join(\"L\")+\"M\"+c.join(\"L\")}}},{\"../../lib\":696,\"../../lib/polygon\":708}],811:[function(t,e,r){\"use strict\";var n=t(\"../get_data\").getSubplotCalcData,i=t(\"../../lib\").counterRegex,a=t(\"./polar\"),o=t(\"./constants\"),s=o.attr,l=o.name,c=i(l),u={};u[s]={valType:\"subplotid\",dflt:l,editType:\"calc\"},e.exports={attr:s,name:l,idRoot:l,idRegex:c,attrRegex:c,attributes:u,layoutAttributes:t(\"./layout_attributes\"),supplyLayoutDefaults:t(\"./layout_defaults\"),plot:function(t){for(var e=t._fullLayout,r=t.calcdata,i=e._subplots[l],o=0;o<i.length;o++){var s=i[o],c=n(r,l,s),u=e[s]._subplot;u||(u=a(t,s),e[s]._subplot=u),u.plot(c,e,t._promises)}},clean:function(t,e,r,n){for(var i=n._subplots[l]||[],a=n._has&&n._has(\"gl\"),o=e._has&&e._has(\"gl\"),s=a&&!o,c=0;c<i.length;c++){var u=i[c],f=n[u]._subplot;if(!e[u]&&f)for(var h in f.framework.remove(),f.layers[\"radial-axis-title\"].remove(),f.clipPaths)f.clipPaths[h].remove();s&&f._scene&&(f._scene.destroy(),f._scene=null)}},toSVG:t(\"../cartesian\").toSVG}},{\"../../lib\":696,\"../cartesian\":756,\"../get_data\":781,\"./constants\":809,\"./layout_attributes\":812,\"./layout_defaults\":813,\"./polar\":820}],812:[function(t,e,r){\"use strict\";var n=t(\"../../components/color/attributes\"),i=t(\"../cartesian/layout_attributes\"),a=t(\"../domain\").attributes,o=t(\"../../lib\").extendFlat,s=t(\"../../plot_api/edit_types\").overrideAll,l=s({color:i.color,showline:o({},i.showline,{dflt:!0}),linecolor:i.linecolor,linewidth:i.linewidth,showgrid:o({},i.showgrid,{dflt:!0}),gridcolor:i.gridcolor,gridwidth:i.gridwidth},\"plot\",\"from-root\"),c=s({tickmode:i.tickmode,nticks:i.nticks,tick0:i.tick0,dtick:i.dtick,tickvals:i.tickvals,ticktext:i.ticktext,ticks:i.ticks,ticklen:i.ticklen,tickwidth:i.tickwidth,tickcolor:i.tickcolor,showticklabels:i.showticklabels,showtickprefix:i.showtickprefix,tickprefix:i.tickprefix,showticksuffix:i.showticksuffix,ticksuffix:i.ticksuffix,showexponent:i.showexponent,exponentformat:i.exponentformat,separatethousands:i.separatethousands,tickfont:i.tickfont,tickangle:i.tickangle,tickformat:i.tickformat,tickformatstops:i.tickformatstops,layer:i.layer},\"plot\",\"from-root\"),u={visible:o({},i.visible,{dflt:!0}),type:i.type,autorange:o({},i.autorange,{editType:\"plot\"}),rangemode:{valType:\"enumerated\",values:[\"tozero\",\"nonnegative\",\"normal\"],dflt:\"tozero\",editType:\"calc\"},range:o({},i.range,{items:[{valType:\"any\",editType:\"plot\",impliedEdits:{\"^autorange\":!1}},{valType:\"any\",editType:\"plot\",impliedEdits:{\"^autorange\":!1}}],editType:\"plot\"}),categoryorder:i.categoryorder,categoryarray:i.categoryarray,angle:{valType:\"angle\",editType:\"plot\"},side:{valType:\"enumerated\",values:[\"clockwise\",\"counterclockwise\"],dflt:\"clockwise\",editType:\"plot\"},title:o({},i.title,{editType:\"plot\",dflt:\"\"}),titlefont:s(i.titlefont,\"plot\",\"from-root\"),hoverformat:i.hoverformat,editType:\"calc\"};o(u,l,c);var f={visible:o({},i.visible,{dflt:!0}),type:{valType:\"enumerated\",values:[\"-\",\"linear\",\"category\"],dflt:\"-\",editType:\"calc\",_noTemplating:!0},categoryorder:i.categoryorder,categoryarray:i.categoryarray,thetaunit:{valType:\"enumerated\",values:[\"radians\",\"degrees\"],dflt:\"degrees\",editType:\"calc\"},period:{valType:\"number\",editType:\"calc\",min:0},direction:{valType:\"enumerated\",values:[\"counterclockwise\",\"clockwise\"],dflt:\"counterclockwise\",editType:\"calc\"},rotation:{valType:\"angle\",editType:\"calc\"},hoverformat:i.hoverformat,editType:\"calc\"};o(f,l,c),e.exports={domain:a({name:\"polar\",editType:\"plot\"}),sector:{valType:\"info_array\",items:[{valType:\"number\",editType:\"plot\"},{valType:\"number\",editType:\"plot\"}],dflt:[0,360],editType:\"plot\"},hole:{valType:\"number\",min:0,max:1,dflt:0,editType:\"plot\"},bgcolor:{valType:\"color\",editType:\"plot\",dflt:n.background},radialaxis:u,angularaxis:f,gridshape:{valType:\"enumerated\",values:[\"circular\",\"linear\"],dflt:\"circular\",editType:\"plot\"},editType:\"calc\"}},{\"../../components/color/attributes\":569,\"../../lib\":696,\"../../plot_api/edit_types\":727,\"../cartesian/layout_attributes\":757,\"../domain\":770}],813:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../components/color\"),a=t(\"../../plot_api/plot_template\"),o=t(\"../subplot_defaults\"),s=t(\"../get_data\").getSubplotData,l=t(\"../cartesian/tick_value_defaults\"),c=t(\"../cartesian/tick_mark_defaults\"),u=t(\"../cartesian/tick_label_defaults\"),f=t(\"../cartesian/category_order_defaults\"),h=t(\"../cartesian/line_grid_defaults\"),p=t(\"../cartesian/axis_autotype\"),d=t(\"./layout_attributes\"),g=t(\"./set_convert\"),v=t(\"./constants\"),m=v.axisNames;function y(t,e,r,o){var p=r(\"bgcolor\");o.bgColor=i.combine(p,o.paper_bgcolor);var y=r(\"sector\");r(\"hole\");var b,_=s(o.fullData,v.name,o.id),w=o.layoutOut;function k(t,e){return r(b+\".\"+t,e)}for(var M=0;M<m.length;M++){b=m[M],n.isPlainObject(t[b])||(t[b]={});var A=t[b],T=a.newContainer(e,b);T._id=T._name=b,T._traceIndices=_.map(function(t){return t._expandedIndex});var S=v.axisName2dataArray[b],E=x(A,T,k,_,S);f(A,T,k,{axData:_,dataAttr:S});var C,L,z=k(\"visible\");switch(g(T,e,w),z&&(L=(C=k(\"color\"))===A.color?C:o.font.color),T._m=1,b){case\"radialaxis\":var O=k(\"autorange\",!T.isValidRange(A.range));A.autorange=O,!O||\"linear\"!==E&&\"-\"!==E||k(\"rangemode\"),\"reversed\"===O&&(T._m=-1),k(\"range\"),T.cleanRange(\"range\",{dfltRange:[0,1]}),z&&(k(\"side\"),k(\"angle\",y[0]),k(\"title\"),n.coerceFont(k,\"titlefont\",{family:o.font.family,size:Math.round(1.2*o.font.size),color:L}));break;case\"angularaxis\":if(\"date\"===E){n.log(\"Polar plots do not support date angular axes yet.\");for(var I=0;I<_.length;I++)_[I].visible=!1;E=A.type=T.type=\"linear\"}k(\"linear\"===E?\"thetaunit\":\"period\");var P=k(\"direction\");k(\"rotation\",{counterclockwise:0,clockwise:90}[P])}if(z)l(A,T,k,T.type),u(A,T,k,T.type,{tickSuffixDflt:\"degrees\"===T.thetaunit?\"\\xb0\":void 0}),c(A,T,k,{outerTicks:!0}),k(\"showticklabels\")&&(n.coerceFont(k,\"tickfont\",{family:o.font.family,size:o.font.size,color:L}),k(\"tickangle\"),k(\"tickformat\")),h(A,T,k,{dfltColor:C,bgColor:o.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:d[b]}),k(\"layer\");\"category\"!==E&&k(\"hoverformat\"),T._input=A}\"category\"===e.angularaxis.type&&r(\"gridshape\")}function x(t,e,r,n,i){if(\"-\"===r(\"type\")){for(var a,o=0;o<n.length;o++)if(n[o].visible){a=n[o];break}a&&a[i]&&(e.type=p(a[i],\"gregorian\")),\"-\"===e.type?e.type=\"linear\":t.type=e.type}return e.type}e.exports=function(t,e,r){o(t,e,r,{type:v.name,attributes:d,handleDefaults:y,font:e.font,paper_bgcolor:e.paper_bgcolor,fullData:r,layoutOut:e})}},{\"../../components/color\":570,\"../../lib\":696,\"../../plot_api/plot_template\":734,\"../cartesian/axis_autotype\":745,\"../cartesian/category_order_defaults\":748,\"../cartesian/line_grid_defaults\":759,\"../cartesian/tick_label_defaults\":764,\"../cartesian/tick_mark_defaults\":765,\"../cartesian/tick_value_defaults\":766,\"../get_data\":781,\"../subplot_defaults\":822,\"./constants\":809,\"./layout_attributes\":812,\"./set_convert\":821}],814:[function(t,e,r){\"use strict\";var n=t(\"../../../traces/scatter/attributes\"),i=n.marker,a=t(\"../../../lib/extend\").extendFlat;[\"Area traces are deprecated!\",\"Please switch to the *barpolar* trace type.\"].join(\" \");e.exports={r:a({},n.r,{}),t:a({},n.t,{}),marker:{color:a({},i.color,{}),size:a({},i.size,{}),symbol:a({},i.symbol,{}),opacity:a({},i.opacity,{}),editType:\"calc\"}}},{\"../../../lib/extend\":685,\"../../../traces/scatter/attributes\":1043}],815:[function(t,e,r){\"use strict\";var n=t(\"../../cartesian/layout_attributes\"),i=t(\"../../../lib/extend\").extendFlat,a=t(\"../../../plot_api/edit_types\").overrideAll,o=[\"Legacy polar charts are deprecated!\",\"Please switch to *polar* subplots.\"].join(\" \"),s=i({},n.domain,{});function l(t,e){return i({},e,{showline:{valType:\"boolean\"},showticklabels:{valType:\"boolean\"},tickorientation:{valType:\"enumerated\",values:[\"horizontal\",\"vertical\"]},ticklen:{valType:\"number\",min:0},tickcolor:{valType:\"color\"},ticksuffix:{valType:\"string\"},endpadding:{valType:\"number\",description:o},visible:{valType:\"boolean\"}})}e.exports=a({radialaxis:l(0,{range:{valType:\"info_array\",items:[{valType:\"number\"},{valType:\"number\"}]},domain:s,orientation:{valType:\"number\"}}),angularaxis:l(0,{range:{valType:\"info_array\",items:[{valType:\"number\",dflt:0},{valType:\"number\",dflt:360}]},domain:s}),layout:{direction:{valType:\"enumerated\",values:[\"clockwise\",\"counterclockwise\"]},orientation:{valType:\"angle\"}}},\"plot\",\"nested\")},{\"../../../lib/extend\":685,\"../../../plot_api/edit_types\":727,\"../../cartesian/layout_attributes\":757}],816:[function(t,e,r){\"use strict\";(e.exports=t(\"./micropolar\")).manager=t(\"./micropolar_manager\")},{\"./micropolar\":817,\"./micropolar_manager\":818}],817:[function(t,e,r){var n=t(\"d3\"),i=t(\"../../../lib\").extendDeepAll,a=t(\"../../../constants/alignment\").MID_SHIFT,o=e.exports={version:\"0.2.2\"};o.Axis=function(){var t,e,r,s,l={data:[],layout:{}},c={},u={},f=n.dispatch(\"hover\"),h={};return h.render=function(c){return function(c){e=c||e;var f=l.data,h=l.layout;(\"string\"==typeof e||e.nodeName)&&(e=n.select(e)),e.datum(f).each(function(e,l){var c=e.slice();u={data:o.util.cloneJson(c),layout:o.util.cloneJson(h)};var f=0;c.forEach(function(t,e){t.color||(t.color=h.defaultColorRange[f],f=(f+1)%h.defaultColorRange.length),t.strokeColor||(t.strokeColor=\"LinePlot\"===t.geometry?t.color:n.rgb(t.color).darker().toString()),u.data[e].color=t.color,u.data[e].strokeColor=t.strokeColor,u.data[e].strokeDash=t.strokeDash,u.data[e].strokeSize=t.strokeSize});var p=c.filter(function(t,e){var r=t.visible;return\"undefined\"==typeof r||!0===r}),d=!1,g=p.map(function(t,e){return d=d||\"undefined\"!=typeof t.groupId,t});if(d){var v=n.nest().key(function(t,e){return\"undefined\"!=typeof t.groupId?t.groupId:\"unstacked\"}).entries(g),m=[],y=v.map(function(t,e){if(\"unstacked\"===t.key)return t.values;var r=t.values[0].r.map(function(t,e){return 0});return t.values.forEach(function(t,e,n){t.yStack=[r],m.push(r),r=o.util.sumArrays(t.r,r)}),t.values});p=n.merge(y)}p.forEach(function(t,e){t.t=Array.isArray(t.t[0])?t.t:[t.t],t.r=Array.isArray(t.r[0])?t.r:[t.r]});var x=Math.min(h.width-h.margin.left-h.margin.right,h.height-h.margin.top-h.margin.bottom)/2;x=Math.max(10,x);var b,_=[h.margin.left+x,h.margin.top+x];b=d?[0,n.max(o.util.sumArrays(o.util.arrayLast(p).r[0],o.util.arrayLast(m)))]:n.extent(o.util.flattenArray(p.map(function(t,e){return t.r}))),h.radialAxis.domain!=o.DATAEXTENT&&(b[0]=0),r=n.scale.linear().domain(h.radialAxis.domain!=o.DATAEXTENT&&h.radialAxis.domain?h.radialAxis.domain:b).range([0,x]),u.layout.radialAxis.domain=r.domain();var w,k=o.util.flattenArray(p.map(function(t,e){return t.t})),M=\"string\"==typeof k[0];M&&(k=o.util.deduplicate(k),w=k.slice(),k=n.range(k.length),p=p.map(function(t,e){var r=t;return t.t=[k],d&&(r.yStack=t.yStack),r}));var A=p.filter(function(t,e){return\"LinePlot\"===t.geometry||\"DotPlot\"===t.geometry}).length===p.length,T=null===h.needsEndSpacing?M||!A:h.needsEndSpacing,S=h.angularAxis.domain&&h.angularAxis.domain!=o.DATAEXTENT&&!M&&h.angularAxis.domain[0]>=0?h.angularAxis.domain:n.extent(k),E=Math.abs(k[1]-k[0]);A&&!M&&(E=0);var C=S.slice();T&&M&&(C[1]+=E);var L=h.angularAxis.ticksCount||4;L>8&&(L=L/(L/8)+L%8),h.angularAxis.ticksStep&&(L=(C[1]-C[0])/L);var z=h.angularAxis.ticksStep||(C[1]-C[0])/(L*(h.minorTicks+1));w&&(z=Math.max(Math.round(z),1)),C[2]||(C[2]=z);var O=n.range.apply(this,C);if(O=O.map(function(t,e){return parseFloat(t.toPrecision(12))}),s=n.scale.linear().domain(C.slice(0,2)).range(\"clockwise\"===h.direction?[0,360]:[360,0]),u.layout.angularAxis.domain=s.domain(),u.layout.angularAxis.endPadding=T?E:0,\"undefined\"==typeof(t=n.select(this).select(\"svg.chart-root\"))||t.empty()){var I=(new DOMParser).parseFromString(\"<svg xmlns='http://www.w3.org/2000/svg' class='chart-root'>' + '<g class='outer-group'>' + '<g class='chart-group'>' + '<circle class='background-circle'></circle>' + '<g class='geometry-group'></g>' + '<g class='radial axis-group'>' + '<circle class='outside-circle'></circle>' + '</g>' + '<g class='angular axis-group'></g>' + '<g class='guides-group'><line></line><circle r='0'></circle></g>' + '</g>' + '<g class='legend-group'></g>' + '<g class='tooltips-group'></g>' + '<g class='title-group'><text></text></g>' + '</g>' + '</svg>\",\"application/xml\"),P=this.appendChild(this.ownerDocument.importNode(I.documentElement,!0));t=n.select(P)}t.select(\".guides-group\").style({\"pointer-events\":\"none\"}),t.select(\".angular.axis-group\").style({\"pointer-events\":\"none\"}),t.select(\".radial.axis-group\").style({\"pointer-events\":\"none\"});var D,R=t.select(\".chart-group\"),B={fill:\"none\",stroke:h.tickColor},F={\"font-size\":h.font.size,\"font-family\":h.font.family,fill:h.font.color,\"text-shadow\":[\"-1px 0px\",\"1px -1px\",\"-1px 1px\",\"1px 1px\"].map(function(t,e){return\" \"+t+\" 0 \"+h.font.outlineColor}).join(\",\")};if(h.showLegend){D=t.select(\".legend-group\").attr({transform:\"translate(\"+[x,h.margin.top]+\")\"}).style({display:\"block\"});var N=p.map(function(t,e){var r=o.util.cloneJson(t);return r.symbol=\"DotPlot\"===t.geometry?t.dotType||\"circle\":\"LinePlot\"!=t.geometry?\"square\":\"line\",r.visibleInLegend=\"undefined\"==typeof t.visibleInLegend||t.visibleInLegend,r.color=\"LinePlot\"===t.geometry?t.strokeColor:t.color,r});o.Legend().config({data:p.map(function(t,e){return t.name||\"Element\"+e}),legendConfig:i({},o.Legend.defaultConfig().legendConfig,{container:D,elements:N,reverseOrder:h.legend.reverseOrder})})();var j=D.node().getBBox();x=Math.min(h.width-j.width-h.margin.left-h.margin.right,h.height-h.margin.top-h.margin.bottom)/2,x=Math.max(10,x),_=[h.margin.left+x,h.margin.top+x],r.range([0,x]),u.layout.radialAxis.domain=r.domain(),D.attr(\"transform\",\"translate(\"+[_[0]+x,_[1]-x]+\")\")}else D=t.select(\".legend-group\").style({display:\"none\"});t.attr({width:h.width,height:h.height}).style({opacity:h.opacity}),R.attr(\"transform\",\"translate(\"+_+\")\").style({cursor:\"crosshair\"});var V=[(h.width-(h.margin.left+h.margin.right+2*x+(j?j.width:0)))/2,(h.height-(h.margin.top+h.margin.bottom+2*x))/2];if(V[0]=Math.max(0,V[0]),V[1]=Math.max(0,V[1]),t.select(\".outer-group\").attr(\"transform\",\"translate(\"+V+\")\"),h.title){var U=t.select(\"g.title-group text\").style(F).text(h.title),q=U.node().getBBox();U.attr({x:_[0]-q.width/2,y:_[1]-x-20})}var H=t.select(\".radial.axis-group\");if(h.radialAxis.gridLinesVisible){var G=H.selectAll(\"circle.grid-circle\").data(r.ticks(5));G.enter().append(\"circle\").attr({class:\"grid-circle\"}).style(B),G.attr(\"r\",r),G.exit().remove()}H.select(\"circle.outside-circle\").attr({r:x}).style(B);var W=t.select(\"circle.background-circle\").attr({r:x}).style({fill:h.backgroundColor,stroke:h.stroke});function Y(t,e){return s(t)%360+h.orientation}if(h.radialAxis.visible){var X=n.svg.axis().scale(r).ticks(5).tickSize(5);H.call(X).attr({transform:\"rotate(\"+h.radialAxis.orientation+\")\"}),H.selectAll(\".domain\").style(B),H.selectAll(\"g>text\").text(function(t,e){return this.textContent+h.radialAxis.ticksSuffix}).style(F).style({\"text-anchor\":\"start\"}).attr({x:0,y:0,dx:0,dy:0,transform:function(t,e){return\"horizontal\"===h.radialAxis.tickOrientation?\"rotate(\"+-h.radialAxis.orientation+\") translate(\"+[0,F[\"font-size\"]]+\")\":\"translate(\"+[0,F[\"font-size\"]]+\")\"}}),H.selectAll(\"g>line\").style({stroke:\"black\"})}var Z=t.select(\".angular.axis-group\").selectAll(\"g.angular-tick\").data(O),$=Z.enter().append(\"g\").classed(\"angular-tick\",!0);Z.attr({transform:function(t,e){return\"rotate(\"+Y(t)+\")\"}}).style({display:h.angularAxis.visible?\"block\":\"none\"}),Z.exit().remove(),$.append(\"line\").classed(\"grid-line\",!0).classed(\"major\",function(t,e){return e%(h.minorTicks+1)==0}).classed(\"minor\",function(t,e){return!(e%(h.minorTicks+1)==0)}).style(B),$.selectAll(\".minor\").style({stroke:h.minorTickColor}),Z.select(\"line.grid-line\").attr({x1:h.tickLength?x-h.tickLength:0,x2:x}).style({display:h.angularAxis.gridLinesVisible?\"block\":\"none\"}),$.append(\"text\").classed(\"axis-text\",!0).style(F);var J=Z.select(\"text.axis-text\").attr({x:x+h.labelOffset,dy:a+\"em\",transform:function(t,e){var r=Y(t),n=x+h.labelOffset,i=h.angularAxis.tickOrientation;return\"horizontal\"==i?\"rotate(\"+-r+\" \"+n+\" 0)\":\"radial\"==i?r<270&&r>90?\"rotate(180 \"+n+\" 0)\":null:\"rotate(\"+(r<=180&&r>0?-90:90)+\" \"+n+\" 0)\"}}).style({\"text-anchor\":\"middle\",display:h.angularAxis.labelsVisible?\"block\":\"none\"}).text(function(t,e){return e%(h.minorTicks+1)!=0?\"\":w?w[t]+h.angularAxis.ticksSuffix:t+h.angularAxis.ticksSuffix}).style(F);h.angularAxis.rewriteTicks&&J.text(function(t,e){return e%(h.minorTicks+1)!=0?\"\":h.angularAxis.rewriteTicks(this.textContent,e)});var K=n.max(R.selectAll(\".angular-tick text\")[0].map(function(t,e){return t.getCTM().e+t.getBBox().width}));D.attr({transform:\"translate(\"+[x+K,h.margin.top]+\")\"});var Q=t.select(\"g.geometry-group\").selectAll(\"g\").size()>0,tt=t.select(\"g.geometry-group\").selectAll(\"g.geometry\").data(p);if(tt.enter().append(\"g\").attr({class:function(t,e){return\"geometry geometry\"+e}}),tt.exit().remove(),p[0]||Q){var et=[];p.forEach(function(t,e){var n={};n.radialScale=r,n.angularScale=s,n.container=tt.filter(function(t,r){return r==e}),n.geometry=t.geometry,n.orientation=h.orientation,n.direction=h.direction,n.index=e,et.push({data:t,geometryConfig:n})});var rt=n.nest().key(function(t,e){return\"undefined\"!=typeof t.data.groupId||\"unstacked\"}).entries(et),nt=[];rt.forEach(function(t,e){\"unstacked\"===t.key?nt=nt.concat(t.values.map(function(t,e){return[t]})):nt.push(t.values)}),nt.forEach(function(t,e){var r;r=Array.isArray(t)?t[0].geometryConfig.geometry:t.geometryConfig.geometry;var n=t.map(function(t,e){return i(o[r].defaultConfig(),t)});o[r]().config(n)()})}var it,at,ot=t.select(\".guides-group\"),st=t.select(\".tooltips-group\"),lt=o.tooltipPanel().config({container:st,fontSize:8})(),ct=o.tooltipPanel().config({container:st,fontSize:8})(),ut=o.tooltipPanel().config({container:st,hasTick:!0})();if(!M){var ft=ot.select(\"line\").attr({x1:0,y1:0,y2:0}).style({stroke:\"grey\",\"pointer-events\":\"none\"});R.on(\"mousemove.angular-guide\",function(t,e){var r=o.util.getMousePos(W).angle;ft.attr({x2:-x,transform:\"rotate(\"+r+\")\"}).style({opacity:.5});var n=(r+180+360-h.orientation)%360;it=s.invert(n);var i=o.util.convertToCartesian(x+12,r+180);lt.text(o.util.round(it)).move([i[0]+_[0],i[1]+_[1]])}).on(\"mouseout.angular-guide\",function(t,e){ot.select(\"line\").style({opacity:0})})}var ht=ot.select(\"circle\").style({stroke:\"grey\",fill:\"none\"});R.on(\"mousemove.radial-guide\",function(t,e){var n=o.util.getMousePos(W).radius;ht.attr({r:n}).style({opacity:.5}),at=r.invert(o.util.getMousePos(W).radius);var i=o.util.convertToCartesian(n,h.radialAxis.orientation);ct.text(o.util.round(at)).move([i[0]+_[0],i[1]+_[1]])}).on(\"mouseout.radial-guide\",function(t,e){ht.style({opacity:0}),ut.hide(),lt.hide(),ct.hide()}),t.selectAll(\".geometry-group .mark\").on(\"mouseover.tooltip\",function(e,r){var i=n.select(this),a=this.style.fill,s=\"black\",l=this.style.opacity||1;if(i.attr({\"data-opacity\":l}),a&&\"none\"!==a){i.attr({\"data-fill\":a}),s=n.hsl(a).darker().toString(),i.style({fill:s,opacity:1});var c={t:o.util.round(e[0]),r:o.util.round(e[1])};M&&(c.t=w[e[0]]);var u=\"t: \"+c.t+\", r: \"+c.r,f=this.getBoundingClientRect(),h=t.node().getBoundingClientRect(),p=[f.left+f.width/2-V[0]-h.left,f.top+f.height/2-V[1]-h.top];ut.config({color:s}).text(u),ut.move(p)}else a=this.style.stroke||\"black\",i.attr({\"data-stroke\":a}),s=n.hsl(a).darker().toString(),i.style({stroke:s,opacity:1})}).on(\"mousemove.tooltip\",function(t,e){if(0!=n.event.which)return!1;n.select(this).attr(\"data-fill\")&&ut.show()}).on(\"mouseout.tooltip\",function(t,e){ut.hide();var r=n.select(this),i=r.attr(\"data-fill\");i?r.style({fill:i,opacity:r.attr(\"data-opacity\")}):r.style({stroke:r.attr(\"data-stroke\"),opacity:r.attr(\"data-opacity\")})})})}(c),this},h.config=function(t){if(!arguments.length)return l;var e=o.util.cloneJson(t);return e.data.forEach(function(t,e){l.data[e]||(l.data[e]={}),i(l.data[e],o.Axis.defaultConfig().data[0]),i(l.data[e],t)}),i(l.layout,o.Axis.defaultConfig().layout),i(l.layout,e.layout),this},h.getLiveConfig=function(){return u},h.getinputConfig=function(){return c},h.radialScale=function(t){return r},h.angularScale=function(t){return s},h.svg=function(){return t},n.rebind(h,f,\"on\"),h},o.Axis.defaultConfig=function(t,e){return{data:[{t:[1,2,3,4],r:[10,11,12,13],name:\"Line1\",geometry:\"LinePlot\",color:null,strokeDash:\"solid\",strokeColor:null,strokeSize:\"1\",visibleInLegend:!0,opacity:1}],layout:{defaultColorRange:n.scale.category10().range(),title:null,height:450,width:500,margin:{top:40,right:40,bottom:40,left:40},font:{size:12,color:\"gray\",outlineColor:\"white\",family:\"Tahoma, sans-serif\"},direction:\"clockwise\",orientation:0,labelOffset:10,radialAxis:{domain:null,orientation:-45,ticksSuffix:\"\",visible:!0,gridLinesVisible:!0,tickOrientation:\"horizontal\",rewriteTicks:null},angularAxis:{domain:[0,360],ticksSuffix:\"\",visible:!0,gridLinesVisible:!0,labelsVisible:!0,tickOrientation:\"horizontal\",rewriteTicks:null,ticksCount:null,ticksStep:null},minorTicks:0,tickLength:null,tickColor:\"silver\",minorTickColor:\"#eee\",backgroundColor:\"none\",needsEndSpacing:null,showLegend:!0,legend:{reverseOrder:!1},opacity:1}}},o.util={},o.DATAEXTENT=\"dataExtent\",o.AREA=\"AreaChart\",o.LINE=\"LinePlot\",o.DOT=\"DotPlot\",o.BAR=\"BarChart\",o.util._override=function(t,e){for(var r in t)r in e&&(e[r]=t[r])},o.util._extend=function(t,e){for(var r in t)e[r]=t[r]},o.util._rndSnd=function(){return 2*Math.random()-1+(2*Math.random()-1)+(2*Math.random()-1)},o.util.dataFromEquation2=function(t,e){var r=e||6;return n.range(0,360+r,r).map(function(e,r){var n=e*Math.PI/180;return[e,t(n)]})},o.util.dataFromEquation=function(t,e,r){var i=e||6,a=[],o=[];n.range(0,360+i,i).forEach(function(e,r){var n=e*Math.PI/180,i=t(n);a.push(e),o.push(i)});var s={t:a,r:o};return r&&(s.name=r),s},o.util.ensureArray=function(t,e){if(\"undefined\"==typeof t)return null;var r=[].concat(t);return n.range(e).map(function(t,e){return r[e]||r[0]})},o.util.fillArrays=function(t,e,r){return e.forEach(function(e,n){t[e]=o.util.ensureArray(t[e],r)}),t},o.util.cloneJson=function(t){return JSON.parse(JSON.stringify(t))},o.util.validateKeys=function(t,e){\"string\"==typeof e&&(e=e.split(\".\"));var r=e.shift();return t[r]&&(!e.length||objHasKeys(t[r],e))},o.util.sumArrays=function(t,e){return n.zip(t,e).map(function(t,e){return n.sum(t)})},o.util.arrayLast=function(t){return t[t.length-1]},o.util.arrayEqual=function(t,e){for(var r=Math.max(t.length,e.length,1);r-- >=0&&t[r]===e[r];);return-2===r},o.util.flattenArray=function(t){for(var e=[];!o.util.arrayEqual(e,t);)e=t,t=[].concat.apply([],t);return t},o.util.deduplicate=function(t){return t.filter(function(t,e,r){return r.indexOf(t)==e})},o.util.convertToCartesian=function(t,e){var r=e*Math.PI/180;return[t*Math.cos(r),t*Math.sin(r)]},o.util.round=function(t,e){var r=e||2,n=Math.pow(10,r);return Math.round(t*n)/n},o.util.getMousePos=function(t){var e=n.mouse(t.node()),r=e[0],i=e[1],a={};return a.x=r,a.y=i,a.pos=e,a.angle=180*(Math.atan2(i,r)+Math.PI)/Math.PI,a.radius=Math.sqrt(r*r+i*i),a},o.util.duplicatesCount=function(t){for(var e,r={},n={},i=0,a=t.length;i<a;i++)(e=t[i])in r?(r[e]++,n[e]=r[e]):r[e]=1;return n},o.util.duplicates=function(t){return Object.keys(o.util.duplicatesCount(t))},o.util.translator=function(t,e,r,n){if(n){var i=r.slice();r=e,e=i}var a=e.reduce(function(t,e){if(\"undefined\"!=typeof t)return t[e]},t);\"undefined\"!=typeof a&&(e.reduce(function(t,r,n){if(\"undefined\"!=typeof t)return n===e.length-1&&delete t[r],t[r]},t),r.reduce(function(t,e,n){return\"undefined\"==typeof t[e]&&(t[e]={}),n===r.length-1&&(t[e]=a),t[e]},t))},o.PolyChart=function(){var t=[o.PolyChart.defaultConfig()],e=n.dispatch(\"hover\"),r={solid:\"none\",dash:[5,2],dot:[2,5]};function a(){var e=t[0].geometryConfig,i=e.container;\"string\"==typeof i&&(i=n.select(i)),i.datum(t).each(function(t,i){var a=!!t[0].data.yStack,o=t.map(function(t,e){return a?n.zip(t.data.t[0],t.data.r[0],t.data.yStack[0]):n.zip(t.data.t[0],t.data.r[0])}),s=e.angularScale,l=e.radialScale.domain()[0],c={bar:function(r,i,a){var o=t[a].data,l=e.radialScale(r[1])-e.radialScale(0),c=e.radialScale(r[2]||0),u=o.barWidth;n.select(this).attr({class:\"mark bar\",d:\"M\"+[[l+c,-u/2],[l+c,u/2],[c,u/2],[c,-u/2]].join(\"L\")+\"Z\",transform:function(t,r){return\"rotate(\"+(e.orientation+s(t[0]))+\")\"}})}};c.dot=function(r,i,a){var o=r[2]?[r[0],r[1]+r[2]]:r,s=n.svg.symbol().size(t[a].data.dotSize).type(t[a].data.dotType)(r,i);n.select(this).attr({class:\"mark dot\",d:s,transform:function(t,r){var n,i,a,s=(n=function(t,r){var n=e.radialScale(t[1]),i=(e.angularScale(t[0])+e.orientation)*Math.PI/180;return{r:n,t:i}}(o),i=n.r*Math.cos(n.t),a=n.r*Math.sin(n.t),{x:i,y:a});return\"translate(\"+[s.x,s.y]+\")\"}})};var u=n.svg.line.radial().interpolate(t[0].data.lineInterpolation).radius(function(t){return e.radialScale(t[1])}).angle(function(t){return e.angularScale(t[0])*Math.PI/180});c.line=function(r,i,a){var s=r[2]?o[a].map(function(t,e){return[t[0],t[1]+t[2]]}):o[a];if(n.select(this).each(c.dot).style({opacity:function(e,r){return+t[a].data.dotVisible},fill:d.stroke(r,i,a)}).attr({class:\"mark dot\"}),!(i>0)){var l=n.select(this.parentNode).selectAll(\"path.line\").data([0]);l.enter().insert(\"path\"),l.attr({class:\"line\",d:u(s),transform:function(t,r){return\"rotate(\"+(e.orientation+90)+\")\"},\"pointer-events\":\"none\"}).style({fill:function(t,e){return d.fill(r,i,a)},\"fill-opacity\":0,stroke:function(t,e){return d.stroke(r,i,a)},\"stroke-width\":function(t,e){return d[\"stroke-width\"](r,i,a)},\"stroke-dasharray\":function(t,e){return d[\"stroke-dasharray\"](r,i,a)},opacity:function(t,e){return d.opacity(r,i,a)},display:function(t,e){return d.display(r,i,a)}})}};var f=e.angularScale.range(),h=Math.abs(f[1]-f[0])/o[0].length*Math.PI/180,p=n.svg.arc().startAngle(function(t){return-h/2}).endAngle(function(t){return h/2}).innerRadius(function(t){return e.radialScale(l+(t[2]||0))}).outerRadius(function(t){return e.radialScale(l+(t[2]||0))+e.radialScale(t[1])});c.arc=function(t,r,i){n.select(this).attr({class:\"mark arc\",d:p,transform:function(t,r){return\"rotate(\"+(e.orientation+s(t[0])+90)+\")\"}})};var d={fill:function(e,r,n){return t[n].data.color},stroke:function(e,r,n){return t[n].data.strokeColor},\"stroke-width\":function(e,r,n){return t[n].data.strokeSize+\"px\"},\"stroke-dasharray\":function(e,n,i){return r[t[i].data.strokeDash]},opacity:function(e,r,n){return t[n].data.opacity},display:function(e,r,n){return\"undefined\"==typeof t[n].data.visible||t[n].data.visible?\"block\":\"none\"}},g=n.select(this).selectAll(\"g.layer\").data(o);g.enter().append(\"g\").attr({class:\"layer\"});var v=g.selectAll(\"path.mark\").data(function(t,e){return t});v.enter().append(\"path\").attr({class:\"mark\"}),v.style(d).each(c[e.geometryType]),v.exit().remove(),g.exit().remove()})}return a.config=function(e){return arguments.length?(e.forEach(function(e,r){t[r]||(t[r]={}),i(t[r],o.PolyChart.defaultConfig()),i(t[r],e)}),this):t},a.getColorScale=function(){},n.rebind(a,e,\"on\"),a},o.PolyChart.defaultConfig=function(){return{data:{name:\"geom1\",t:[[1,2,3,4]],r:[[1,2,3,4]],dotType:\"circle\",dotSize:64,dotVisible:!1,barWidth:20,color:\"#ffa500\",strokeSize:1,strokeColor:\"silver\",strokeDash:\"solid\",opacity:1,index:0,visible:!0,visibleInLegend:!0},geometryConfig:{geometry:\"LinePlot\",geometryType:\"arc\",direction:\"clockwise\",orientation:0,container:\"body\",radialScale:null,angularScale:null,colorScale:n.scale.category20()}}},o.BarChart=function(){return o.PolyChart()},o.BarChart.defaultConfig=function(){return{geometryConfig:{geometryType:\"bar\"}}},o.AreaChart=function(){return o.PolyChart()},o.AreaChart.defaultConfig=function(){return{geometryConfig:{geometryType:\"arc\"}}},o.DotPlot=function(){return o.PolyChart()},o.DotPlot.defaultConfig=function(){return{geometryConfig:{geometryType:\"dot\",dotType:\"circle\"}}},o.LinePlot=function(){return o.PolyChart()},o.LinePlot.defaultConfig=function(){return{geometryConfig:{geometryType:\"line\"}}},o.Legend=function(){var t=o.Legend.defaultConfig(),e=n.dispatch(\"hover\");function r(){var e=t.legendConfig,a=t.data.map(function(t,r){return[].concat(t).map(function(t,n){var a=i({},e.elements[r]);return a.name=t,a.color=[].concat(e.elements[r].color)[n],a})}),o=n.merge(a);o=o.filter(function(t,r){return e.elements[r]&&(e.elements[r].visibleInLegend||\"undefined\"==typeof e.elements[r].visibleInLegend)}),e.reverseOrder&&(o=o.reverse());var s=e.container;(\"string\"==typeof s||s.nodeName)&&(s=n.select(s));var l=o.map(function(t,e){return t.color}),c=e.fontSize,u=null==e.isContinuous?\"number\"==typeof o[0]:e.isContinuous,f=u?e.height:c*o.length,h=s.classed(\"legend-group\",!0).selectAll(\"svg\").data([0]),p=h.enter().append(\"svg\").attr({width:300,height:f+c,xmlns:\"http://www.w3.org/2000/svg\",\"xmlns:xlink\":\"http://www.w3.org/1999/xlink\",version:\"1.1\"});p.append(\"g\").classed(\"legend-axis\",!0),p.append(\"g\").classed(\"legend-marks\",!0);var d=n.range(o.length),g=n.scale[u?\"linear\":\"ordinal\"]().domain(d).range(l),v=n.scale[u?\"linear\":\"ordinal\"]().domain(d)[u?\"range\":\"rangePoints\"]([0,f]);if(u){var m=h.select(\".legend-marks\").append(\"defs\").append(\"linearGradient\").attr({id:\"grad1\",x1:\"0%\",y1:\"0%\",x2:\"0%\",y2:\"100%\"}).selectAll(\"stop\").data(l);m.enter().append(\"stop\"),m.attr({offset:function(t,e){return e/(l.length-1)*100+\"%\"}}).style({\"stop-color\":function(t,e){return t}}),h.append(\"rect\").classed(\"legend-mark\",!0).attr({height:e.height,width:e.colorBandWidth,fill:\"url(#grad1)\"})}else{var y=h.select(\".legend-marks\").selectAll(\"path.legend-mark\").data(o);y.enter().append(\"path\").classed(\"legend-mark\",!0),y.attr({transform:function(t,e){return\"translate(\"+[c/2,v(e)+c/2]+\")\"},d:function(t,e){var r,i,a,o=t.symbol;return a=3*(i=c),\"line\"===(r=o)?\"M\"+[[-i/2,-i/12],[i/2,-i/12],[i/2,i/12],[-i/2,i/12]]+\"Z\":-1!=n.svg.symbolTypes.indexOf(r)?n.svg.symbol().type(r).size(a)():n.svg.symbol().type(\"square\").size(a)()},fill:function(t,e){return g(e)}}),y.exit().remove()}var x=n.svg.axis().scale(v).orient(\"right\"),b=h.select(\"g.legend-axis\").attr({transform:\"translate(\"+[u?e.colorBandWidth:c,c/2]+\")\"}).call(x);return b.selectAll(\".domain\").style({fill:\"none\",stroke:\"none\"}),b.selectAll(\"line\").style({fill:\"none\",stroke:u?e.textColor:\"none\"}),b.selectAll(\"text\").style({fill:e.textColor,\"font-size\":e.fontSize}).text(function(t,e){return o[e].name}),r}return r.config=function(e){return arguments.length?(i(t,e),this):t},n.rebind(r,e,\"on\"),r},o.Legend.defaultConfig=function(t,e){return{data:[\"a\",\"b\",\"c\"],legendConfig:{elements:[{symbol:\"line\",color:\"red\"},{symbol:\"square\",color:\"yellow\"},{symbol:\"diamond\",color:\"limegreen\"}],height:150,colorBandWidth:30,fontSize:12,container:\"body\",isContinuous:null,textColor:\"grey\",reverseOrder:!1}}},o.tooltipPanel=function(){var t,e,r,a={container:null,hasTick:!1,fontSize:12,color:\"white\",padding:5},s=\"tooltip-\"+o.tooltipPanel.uid++,l=10,c=function(){var n=(t=a.container.selectAll(\"g.\"+s).data([0])).enter().append(\"g\").classed(s,!0).style({\"pointer-events\":\"none\",display:\"none\"});return r=n.append(\"path\").style({fill:\"white\",\"fill-opacity\":.9}).attr({d:\"M0 0\"}),e=n.append(\"text\").attr({dx:a.padding+l,dy:.3*+a.fontSize}),c};return c.text=function(i){var o=n.hsl(a.color).l,s=o>=.5?\"#aaa\":\"white\",u=o>=.5?\"black\":\"white\",f=i||\"\";e.style({fill:u,\"font-size\":a.fontSize+\"px\"}).text(f);var h=a.padding,p=e.node().getBBox(),d={fill:a.color,stroke:s,\"stroke-width\":\"2px\"},g=p.width+2*h+l,v=p.height+2*h;return r.attr({d:\"M\"+[[l,-v/2],[l,-v/4],[a.hasTick?0:l,0],[l,v/4],[l,v/2],[g,v/2],[g,-v/2]].join(\"L\")+\"Z\"}).style(d),t.attr({transform:\"translate(\"+[l,-v/2+2*h]+\")\"}),t.style({display:\"block\"}),c},c.move=function(e){if(t)return t.attr({transform:\"translate(\"+[e[0],e[1]]+\")\"}).style({display:\"block\"}),c},c.hide=function(){if(t)return t.style({display:\"none\"}),c},c.show=function(){if(t)return t.style({display:\"block\"}),c},c.config=function(t){return i(a,t),c},c},o.tooltipPanel.uid=1,o.adapter={},o.adapter.plotly=function(){var t={convert:function(t,e){var r={};if(t.data&&(r.data=t.data.map(function(t,r){var n=i({},t);return[[n,[\"marker\",\"color\"],[\"color\"]],[n,[\"marker\",\"opacity\"],[\"opacity\"]],[n,[\"marker\",\"line\",\"color\"],[\"strokeColor\"]],[n,[\"marker\",\"line\",\"dash\"],[\"strokeDash\"]],[n,[\"marker\",\"line\",\"width\"],[\"strokeSize\"]],[n,[\"marker\",\"symbol\"],[\"dotType\"]],[n,[\"marker\",\"size\"],[\"dotSize\"]],[n,[\"marker\",\"barWidth\"],[\"barWidth\"]],[n,[\"line\",\"interpolation\"],[\"lineInterpolation\"]],[n,[\"showlegend\"],[\"visibleInLegend\"]]].forEach(function(t,r){o.util.translator.apply(null,t.concat(e))}),e||delete n.marker,e&&delete n.groupId,e?(\"LinePlot\"===n.geometry?(n.type=\"scatter\",!0===n.dotVisible?(delete n.dotVisible,n.mode=\"lines+markers\"):n.mode=\"lines\"):\"DotPlot\"===n.geometry?(n.type=\"scatter\",n.mode=\"markers\"):\"AreaChart\"===n.geometry?n.type=\"area\":\"BarChart\"===n.geometry&&(n.type=\"bar\"),delete n.geometry):(\"scatter\"===n.type?\"lines\"===n.mode?n.geometry=\"LinePlot\":\"markers\"===n.mode?n.geometry=\"DotPlot\":\"lines+markers\"===n.mode&&(n.geometry=\"LinePlot\",n.dotVisible=!0):\"area\"===n.type?n.geometry=\"AreaChart\":\"bar\"===n.type&&(n.geometry=\"BarChart\"),delete n.mode,delete n.type),n}),!e&&t.layout&&\"stack\"===t.layout.barmode)){var a=o.util.duplicates(r.data.map(function(t,e){return t.geometry}));r.data.forEach(function(t,e){var n=a.indexOf(t.geometry);-1!=n&&(r.data[e].groupId=n)})}if(t.layout){var s=i({},t.layout);if([[s,[\"plot_bgcolor\"],[\"backgroundColor\"]],[s,[\"showlegend\"],[\"showLegend\"]],[s,[\"radialaxis\"],[\"radialAxis\"]],[s,[\"angularaxis\"],[\"angularAxis\"]],[s.angularaxis,[\"showline\"],[\"gridLinesVisible\"]],[s.angularaxis,[\"showticklabels\"],[\"labelsVisible\"]],[s.angularaxis,[\"nticks\"],[\"ticksCount\"]],[s.angularaxis,[\"tickorientation\"],[\"tickOrientation\"]],[s.angularaxis,[\"ticksuffix\"],[\"ticksSuffix\"]],[s.angularaxis,[\"range\"],[\"domain\"]],[s.angularaxis,[\"endpadding\"],[\"endPadding\"]],[s.radialaxis,[\"showline\"],[\"gridLinesVisible\"]],[s.radialaxis,[\"tickorientation\"],[\"tickOrientation\"]],[s.radialaxis,[\"ticksuffix\"],[\"ticksSuffix\"]],[s.radialaxis,[\"range\"],[\"domain\"]],[s.angularAxis,[\"showline\"],[\"gridLinesVisible\"]],[s.angularAxis,[\"showticklabels\"],[\"labelsVisible\"]],[s.angularAxis,[\"nticks\"],[\"ticksCount\"]],[s.angularAxis,[\"tickorientation\"],[\"tickOrientation\"]],[s.angularAxis,[\"ticksuffix\"],[\"ticksSuffix\"]],[s.angularAxis,[\"range\"],[\"domain\"]],[s.angularAxis,[\"endpadding\"],[\"endPadding\"]],[s.radialAxis,[\"showline\"],[\"gridLinesVisible\"]],[s.radialAxis,[\"tickorientation\"],[\"tickOrientation\"]],[s.radialAxis,[\"ticksuffix\"],[\"ticksSuffix\"]],[s.radialAxis,[\"range\"],[\"domain\"]],[s.font,[\"outlinecolor\"],[\"outlineColor\"]],[s.legend,[\"traceorder\"],[\"reverseOrder\"]],[s,[\"labeloffset\"],[\"labelOffset\"]],[s,[\"defaultcolorrange\"],[\"defaultColorRange\"]]].forEach(function(t,r){o.util.translator.apply(null,t.concat(e))}),e?(\"undefined\"!=typeof s.tickLength&&(s.angularaxis.ticklen=s.tickLength,delete s.tickLength),s.tickColor&&(s.angularaxis.tickcolor=s.tickColor,delete s.tickColor)):(s.angularAxis&&\"undefined\"!=typeof s.angularAxis.ticklen&&(s.tickLength=s.angularAxis.ticklen),s.angularAxis&&\"undefined\"!=typeof s.angularAxis.tickcolor&&(s.tickColor=s.angularAxis.tickcolor)),s.legend&&\"boolean\"!=typeof s.legend.reverseOrder&&(s.legend.reverseOrder=\"normal\"!=s.legend.reverseOrder),s.legend&&\"boolean\"==typeof s.legend.traceorder&&(s.legend.traceorder=s.legend.traceorder?\"reversed\":\"normal\",delete s.legend.reverseOrder),s.margin&&\"undefined\"!=typeof s.margin.t){var l=[\"t\",\"r\",\"b\",\"l\",\"pad\"],c=[\"top\",\"right\",\"bottom\",\"left\",\"pad\"],u={};n.entries(s.margin).forEach(function(t,e){u[c[l.indexOf(t.key)]]=t.value}),s.margin=u}e&&(delete s.needsEndSpacing,delete s.minorTickColor,delete s.minorTicks,delete s.angularaxis.ticksCount,delete s.angularaxis.ticksCount,delete s.angularaxis.ticksStep,delete s.angularaxis.rewriteTicks,delete s.angularaxis.nticks,delete s.radialaxis.ticksCount,delete s.radialaxis.ticksCount,delete s.radialaxis.ticksStep,delete s.radialaxis.rewriteTicks,delete s.radialaxis.nticks),r.layout=s}return r}};return t}},{\"../../../constants/alignment\":668,\"../../../lib\":696,d3:148}],818:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../../../lib\"),a=t(\"../../../components/color\"),o=t(\"./micropolar\"),s=t(\"./undo_manager\"),l=i.extendDeepAll,c=e.exports={};c.framework=function(t){var e,r,i,a,u,f=new s;function h(r,s){return s&&(u=s),n.select(n.select(u).node().parentNode).selectAll(\".svg-container>*:not(.chart-root)\").remove(),e=e?l(e,r):r,i||(i=o.Axis()),a=o.adapter.plotly().convert(e),i.config(a).render(u),t.data=e.data,t.layout=e.layout,c.fillLayout(t),e}return h.isPolar=!0,h.svg=function(){return i.svg()},h.getConfig=function(){return e},h.getLiveConfig=function(){return o.adapter.plotly().convert(i.getLiveConfig(),!0)},h.getLiveScales=function(){return{t:i.angularScale(),r:i.radialScale()}},h.setUndoPoint=function(){var t,n,i=this,a=o.util.cloneJson(e);t=a,n=r,f.add({undo:function(){n&&i(n)},redo:function(){i(t)}}),r=o.util.cloneJson(a)},h.undo=function(){f.undo()},h.redo=function(){f.redo()},h},c.fillLayout=function(t){var e=n.select(t).selectAll(\".plot-container\"),r=e.selectAll(\".svg-container\"),i=t.framework&&t.framework.svg&&t.framework.svg(),o={width:800,height:600,paper_bgcolor:a.background,_container:e,_paperdiv:r,_paper:i};t._fullLayout=l(o,t.layout)}},{\"../../../components/color\":570,\"../../../lib\":696,\"./micropolar\":817,\"./undo_manager\":819,d3:148}],819:[function(t,e,r){\"use strict\";e.exports=function(){var t,e=[],r=-1,n=!1;function i(t,e){return t?(n=!0,t[e](),n=!1,this):this}return{add:function(t){return n?this:(e.splice(r+1,e.length-r),e.push(t),r=e.length-1,this)},setCallback:function(e){t=e},undo:function(){var n=e[r];return n?(i(n,\"undo\"),r-=1,t&&t(n.undo),this):this},redo:function(){var n=e[r+1];return n?(i(n,\"redo\"),r+=1,t&&t(n.redo),this):this},clear:function(){e=[],r=-1},hasUndo:function(){return-1!==r},hasRedo:function(){return r<e.length-1},getCommands:function(){return e},getPreviousCommand:function(){return e[r-1]},getIndex:function(){return r}}}},{}],820:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"tinycolor2\"),a=t(\"../../registry\"),o=t(\"../../lib\"),s=t(\"../../components/color\"),l=t(\"../../components/drawing\"),c=t(\"../plots\"),u=t(\"../cartesian/set_convert\"),f=t(\"./set_convert\"),h=t(\"../cartesian/autorange\").doAutoRange,p=t(\"../cartesian/axes\").doTicksSingle,d=t(\"../cartesian/dragbox\"),g=t(\"../../components/dragelement\"),v=t(\"../../components/fx\"),m=t(\"../../components/titles\"),y=t(\"../cartesian/select\").prepSelect,x=t(\"../cartesian/select\").selectOnClick,b=t(\"../cartesian/select\").clearSelect,_=t(\"../../lib/setcursor\"),w=t(\"../../lib/clear_gl_canvases\"),k=t(\"../../plot_api/subroutines\").redrawReglTraces,M=t(\"../../constants/alignment\").MID_SHIFT,A=t(\"./constants\"),T=t(\"./helpers\"),S=o._,E=o.mod,C=o.deg2rad,L=o.rad2deg;function z(t,e){this.id=e,this.gd=t,this._hasClipOnAxisFalse=null,this.vangles=null,this.radialAxisAngle=null,this.traceHash={},this.layers={},this.clipPaths={},this.clipIds={},this.viewInitial={};var r=t._fullLayout,n=\"clip\"+r._uid+e;this.clipIds.forTraces=n+\"-for-traces\",this.clipPaths.forTraces=r._clips.append(\"clipPath\").attr(\"id\",this.clipIds.forTraces),this.clipPaths.forTraces.append(\"path\"),this.framework=r._polarlayer.append(\"g\").attr(\"class\",e),this.radialTickLayout=null,this.angularTickLayout=null}var O=z.prototype;function I(t){var e=t.ticks+String(t.ticklen)+String(t.showticklabels);return\"side\"in t&&(e+=t.side),e}function P(t,e){return e[o.findIndexOfMin(e,function(e){return o.angleDist(t,e)})]}function D(t,e,r){return e?(t.attr(\"display\",null),t.attr(r)):t&&t.attr(\"display\",\"none\"),t}function R(t,e){return\"translate(\"+t+\",\"+e+\")\"}function B(t){return\"rotate(\"+t+\")\"}function F(t){return Math.abs(t)<1e-10?0:t>0?1:-1}function N(t){return F(Math.cos(t))}function j(t){return F(Math.sin(t))}e.exports=function(t,e){return new z(t,e)},O.plot=function(t,e){var r=e[this.id];this._hasClipOnAxisFalse=!1;for(var n=0;n<t.length;n++){if(!1===t[n][0].trace.cliponaxis){this._hasClipOnAxisFalse=!0;break}}this.updateLayers(e,r),this.updateLayout(e,r),c.generalUpdatePerTraceModule(this.gd,this,t,r),this.updateFx(e,r)},O.updateLayers=function(t,e){var r=this.layers,i=e.radialaxis,a=e.angularaxis,o=A.layerNames,s=o.indexOf(\"frontplot\"),l=o.slice(0,s),c=\"below traces\"===a.layer,u=\"below traces\"===i.layer;c&&l.push(\"angular-line\"),u&&l.push(\"radial-line\"),c&&l.push(\"angular-axis\"),u&&l.push(\"radial-axis\"),l.push(\"frontplot\"),c||l.push(\"angular-line\"),u||l.push(\"radial-line\"),c||l.push(\"angular-axis\"),u||l.push(\"radial-axis\");var f=this.framework.selectAll(\".polarsublayer\").data(l,String);f.enter().append(\"g\").attr(\"class\",function(t){return\"polarsublayer \"+t}).each(function(t){var e=r[t]=n.select(this);switch(t){case\"frontplot\":e.append(\"g\").classed(\"barlayer\",!0),e.append(\"g\").classed(\"scatterlayer\",!0);break;case\"backplot\":e.append(\"g\").classed(\"maplayer\",!0);break;case\"plotbg\":r.bg=e.append(\"path\");break;case\"radial-grid\":e.style(\"fill\",\"none\"),e.append(\"g\").classed(\"x\",1);break;case\"angular-grid\":e.style(\"fill\",\"none\"),e.append(\"g\").classed(\"angularaxis\",1);break;case\"radial-line\":e.append(\"line\").style(\"fill\",\"none\");break;case\"angular-line\":e.append(\"path\").style(\"fill\",\"none\")}}),f.order()},O.updateLayout=function(t,e){var r=this.layers,n=t._size,i=e.radialaxis,a=e.angularaxis,o=e.domain.x,c=e.domain.y;this.xOffset=n.l+n.w*o[0],this.yOffset=n.t+n.h*(1-c[1]);var u=this.xLength=n.w*(o[1]-o[0]),f=this.yLength=n.h*(c[1]-c[0]),h=e.sector;this.sectorInRad=h.map(C);var p,d,g,v,m,y=this.sectorBBox=function(t){var e,r,n,i,a=t[0],o=t[1]-a,s=E(a,360),l=s+o,c=Math.cos(C(s)),u=Math.sin(C(s)),f=Math.cos(C(l)),h=Math.sin(C(l));i=s<=90&&l>=90||s>90&&l>=450?1:u<=0&&h<=0?0:Math.max(u,h);e=s<=180&&l>=180||s>180&&l>=540?-1:c>=0&&f>=0?0:Math.min(c,f);r=s<=270&&l>=270||s>270&&l>=630?-1:u>=0&&h>=0?0:Math.min(u,h);n=l>=360?1:c<=0&&f<=0?0:Math.max(c,f);return[e,r,n,i]}(h),x=y[2]-y[0],b=y[3]-y[1],_=f/u,w=Math.abs(b/x);_>w?(p=u,m=(f-(d=u*w))/n.h/2,g=[o[0],o[1]],v=[c[0]+m,c[1]-m]):(d=f,m=(u-(p=f/w))/n.w/2,g=[o[0]+m,o[1]-m],v=[c[0],c[1]]),this.xLength2=p,this.yLength2=d,this.xDomain2=g,this.yDomain2=v;var k=this.xOffset2=n.l+n.w*g[0],M=this.yOffset2=n.t+n.h*(1-v[1]),A=this.radius=p/x,T=this.innerRadius=e.hole*A,S=this.cx=k-A*y[0],L=this.cy=M+A*y[3],z=this.cxx=S-k,O=this.cyy=L-M;this.radialAxis=this.mockAxis(t,e,i,{_axislayer:r[\"radial-axis\"],_gridlayer:r[\"radial-grid\"],_id:\"x\",side:{counterclockwise:\"top\",clockwise:\"bottom\"}[i.side],domain:[T/n.w,A/n.w]}),this.angularAxis=this.mockAxis(t,e,a,{_axislayer:r[\"angular-axis\"],_gridlayer:r[\"angular-grid\"],side:\"right\",domain:[0,Math.PI],autorange:!1}),this.doAutoRange(t,e),this.updateAngularAxis(t,e),this.updateRadialAxis(t,e),this.updateRadialAxisTitle(t,e),this.xaxis=this.mockCartesianAxis(t,e,{_id:\"x\",domain:g}),this.yaxis=this.mockCartesianAxis(t,e,{_id:\"y\",domain:v});var I=this.pathSubplot();this.clipPaths.forTraces.select(\"path\").attr(\"d\",I).attr(\"transform\",R(z,O)),r.frontplot.attr(\"transform\",R(k,M)).call(l.setClipUrl,this._hasClipOnAxisFalse?null:this.clipIds.forTraces),r.bg.attr(\"d\",I).attr(\"transform\",R(S,L)).call(s.fill,e.bgcolor),this.framework.selectAll(\".crisp\").classed(\"crisp\",0)},O.mockAxis=function(t,e,r,n){var i=o.extendFlat({anchor:\"free\",position:0,_pos:0,_counteraxis:!0,automargin:!1},r,n);return f(i,e,t),i},O.mockCartesianAxis=function(t,e,r){var n=this,i=r._id,a=o.extendFlat({type:\"linear\"},r);u(a,t);var s={x:[0,2],y:[1,3]};return a.setRange=function(){var t=n.sectorBBox,r=s[i],o=n.radialAxis._rl,l=(o[1]-o[0])/(1-e.hole);a.range=[t[r[0]]*l,t[r[1]]*l]},a.isPtWithinRange=\"x\"===i?function(t){return n.isPtInside(t)}:function(){return!0},a.setRange(),a.setScale(),a},O.doAutoRange=function(t,e){var r=this.gd,n=this.radialAxis,i=e.radialaxis;n.setScale(),h(r,n);var a=n.range;i.range=a.slice(),i._input.range=a.slice(),n._rl=[n.r2l(a[0],null,\"gregorian\"),n.r2l(a[1],null,\"gregorian\")]},O.updateRadialAxis=function(t,e){var r=this,n=r.gd,i=r.layers,a=r.radius,o=r.innerRadius,l=r.cx,c=r.cy,u=e.radialaxis,f=E(e.sector[0],360),h=r.radialAxis,d=o<a;r.fillViewInitialKey(\"radialaxis.angle\",u.angle),r.fillViewInitialKey(\"radialaxis.range\",h.range.slice()),h.setGeometry(),\"auto\"===h.tickangle&&f>90&&f<=270&&(h.tickangle=180),h._transfn=function(t){return\"translate(\"+(h.l2p(t.x)+o)+\",0)\"},h._gridpath=function(t){return r.pathArc(h.r2p(t.x)+o)};var g=I(u);r.radialTickLayout!==g&&(i[\"radial-axis\"].selectAll(\".xtick\").remove(),r.radialTickLayout=g),d&&(h.setScale(),p(n,h,!0));var v=r.radialAxisAngle=r.vangles?L(P(C(u.angle),r.vangles)):u.angle,m=R(l,c)+B(-v);D(i[\"radial-axis\"],d&&(u.showticklabels||u.ticks),{transform:m}),D(i[\"radial-grid\"],d&&u.showgrid,{transform:R(l,c)}).selectAll(\"path\").attr(\"transform\",null),D(i[\"radial-line\"].select(\"line\"),d&&u.showline,{x1:o,y1:0,x2:a,y2:0,transform:m}).attr(\"stroke-width\",u.linewidth).call(s.stroke,u.linecolor)},O.updateRadialAxisTitle=function(t,e,r){var n=this.gd,i=this.radius,a=this.cx,o=this.cy,s=e.radialaxis,c=this.id+\"title\",u=void 0!==r?r:this.radialAxisAngle,f=C(u),h=Math.cos(f),p=Math.sin(f),d=0;if(s.title){var g=l.bBox(this.layers[\"radial-axis\"].node()).height,v=s.titlefont.size;d=\"counterclockwise\"===s.side?-g-.4*v:g+.8*v}this.layers[\"radial-axis-title\"]=m.draw(n,c,{propContainer:s,propName:this.id+\".radialaxis.title\",placeholder:S(n,\"Click to enter radial axis title\"),attributes:{x:a+i/2*h+d*p,y:o-i/2*p+d*h,\"text-anchor\":\"middle\"},transform:{rotate:-u}})},O.updateAngularAxis=function(t,e){var r=this,i=r.gd,a=r.layers,l=r.radius,c=r.innerRadius,u=r.cx,f=r.cy,h=e.angularaxis,d=r.angularAxis;r.fillViewInitialKey(\"angularaxis.rotation\",h.rotation),d.setGeometry();var g=function(t){return d.t2g(t.x)};\"linear\"===d.type&&\"radians\"===d.thetaunit&&(d.tick0=L(d.tick0),d.dtick=L(d.dtick)),\"category\"===d.type&&(d._tickFilter=function(t){return o.isAngleInsideSector(g(t),r.sectorInRad)}),d._transfn=function(t){var e=n.select(this),r=e&&e.node();if(r&&e.classed(\"angularaxisgrid\"))return\"\";var i=g(t),a=R(u+l*Math.cos(i),f-l*Math.sin(i));return r&&e.classed(\"ticks\")&&(a+=B(-L(i))),a},d._gridpath=function(t){var e=g(t),r=Math.cos(e),n=Math.sin(e);return\"M\"+[u+c*r,f-c*n]+\"L\"+[u+l*r,f-l*n]};var v=\"outside\"!==h.ticks?.7:.5;d._labelx=function(t){var e=g(t),r=d._labelStandoff,n=d._pad;return(0===j(e)?0:Math.cos(e)*(r+n+v*t.fontSize))+N(e)*(t.dx+r+n)},d._labely=function(t){var e=g(t),r=d._labelStandoff,n=d._labelShift,i=d._pad;return t.dy+t.fontSize*M-n+-Math.sin(e)*(r+i+v*t.fontSize)},d._labelanchor=function(t,e){var r=g(e);return 0===j(r)?N(r)>0?\"start\":\"end\":\"middle\"};var m,y=I(h);r.angularTickLayout!==y&&(a[\"angular-axis\"].selectAll(\".\"+d._id+\"tick\").remove(),r.angularTickLayout=y),d.setScale(),p(i,d,!0),\"linear\"===e.gridshape?(m=d._vals.map(g),o.angleDelta(m[0],m[1])<0&&(m=m.slice().reverse())):m=null,r.vangles=m,D(a[\"angular-line\"].select(\"path\"),h.showline,{d:r.pathSubplot(),transform:R(u,f)}).attr(\"stroke-width\",h.linewidth).call(s.stroke,h.linecolor)},O.updateFx=function(t,e){this.gd._context.staticPlot||(this.updateAngularDrag(t),this.updateRadialDrag(t,e,0),this.updateRadialDrag(t,e,1),this.updateMainDrag(t))},O.updateMainDrag=function(t){var e=this,r=e.gd,o=e.layers,s=t._zoomlayer,l=A.MINZOOM,c=A.OFFEDGE,u=e.radius,f=e.innerRadius,h=e.cx,p=e.cy,m=e.cxx,_=e.cyy,w=e.sectorInRad,k=e.vangles,M=e.radialAxis,S=T.clampTiny,E=T.findXYatLength,C=T.findEnclosingVertexAngles,L=A.cornerHalfWidth,z=A.cornerLen/2,O=d.makeDragger(o,\"path\",\"maindrag\",\"crosshair\");n.select(O).attr(\"d\",e.pathSubplot()).attr(\"transform\",R(h,p));var I,P,D,B,F,N,j,V,U,q={element:O,gd:r,subplot:e.id,plotinfo:{id:e.id,xaxis:e.xaxis,yaxis:e.yaxis},xaxes:[e.xaxis],yaxes:[e.yaxis]};function H(t,e){return Math.sqrt(t*t+e*e)}function G(t,e){return H(t-m,e-_)}function W(t,e){return Math.atan2(_-e,t-m)}function Y(t,e){return[t*Math.cos(e),t*Math.sin(-e)]}function X(t,r){if(0===t)return e.pathSector(2*L);var n=z/t,i=r-n,a=r+n,o=Math.max(0,Math.min(t,u)),s=o-L,l=o+L;return\"M\"+Y(s,i)+\"A\"+[s,s]+\" 0,0,0 \"+Y(s,a)+\"L\"+Y(l,a)+\"A\"+[l,l]+\" 0,0,1 \"+Y(l,i)+\"Z\"}function Z(t,r,n){if(0===t)return e.pathSector(2*L);var i,a,o=Y(t,r),s=Y(t,n),l=S((o[0]+s[0])/2),c=S((o[1]+s[1])/2);if(l&&c){var u=c/l,f=-1/u,h=E(L,u,l,c);i=E(z,f,h[0][0],h[0][1]),a=E(z,f,h[1][0],h[1][1])}else{var p,d;c?(p=z,d=L):(p=L,d=z),i=[[l-p,c-d],[l+p,c-d]],a=[[l-p,c+d],[l+p,c+d]]}return\"M\"+i.join(\"L\")+\"L\"+a.reverse().join(\"L\")+\"Z\"}function $(t,e){return e=Math.max(Math.min(e,u),f),t<c?t=0:u-t<c?t=u:e<c?e=0:u-e<c&&(e=u),Math.abs(e-t)>l?(t<e?(D=t,B=e):(D=e,B=t),!0):(D=null,B=null,!1)}function J(t,e){t=t||F,e=e||\"M0,0Z\",V.attr(\"d\",t),U.attr(\"d\",e),d.transitionZoombox(V,U,N,j),N=!0}function K(t,r){var n,i,a=I+t,o=P+r,s=G(I,P),l=Math.min(G(a,o),u),c=W(I,P);$(s,l)&&(n=F+e.pathSector(B),D&&(n+=e.pathSector(D)),i=X(D,c)+X(B,c)),J(n,i)}function Q(t,e,r,n){var i=T.findIntersectionXY(r,n,r,[t-m,_-e]);return H(i[0],i[1])}function tt(t,r){var n,i,a=I+t,o=P+r,s=W(I,P),l=W(a,o),c=C(s,k),f=C(l,k);$(Q(I,P,c[0],c[1]),Math.min(Q(a,o,f[0],f[1]),u))&&(n=F+e.pathSector(B),D&&(n+=e.pathSector(D)),i=[Z(D,c[0],c[1]),Z(B,c[0],c[1])].join(\" \")),J(n,i)}function et(){if(d.removeZoombox(r),null!==D&&null!==B){d.showDoubleClickNotifier(r);var t=M._rl,n=(t[1]-t[0])/(1-f/u)/u,i=[t[0]+(D-f)*n,t[0]+(B-f)*n];a.call(\"relayout\",r,e.id+\".radialaxis.range\",i)}}function rt(t,n){var i=r._fullLayout.clickmode;if(d.removeZoombox(r),2===t){var o={};for(var s in e.viewInitial)o[e.id+\".\"+s]=e.viewInitial[s];r.emit(\"plotly_doubleclick\",null),a.call(\"relayout\",r,o)}i.indexOf(\"select\")>-1&&1===t&&x(n,r,[e.xaxis],[e.yaxis],e.id,q),i.indexOf(\"event\")>-1&&v.click(r,n,e.id)}q.prepFn=function(t,n,a){var o=r._fullLayout.dragmode,l=O.getBoundingClientRect();if(I=n-l.left,P=a-l.top,k){var c=T.findPolygonOffset(u,w[0],w[1],k);I+=m+c[0],P+=_+c[1]}switch(o){case\"zoom\":q.moveFn=k?tt:K,q.clickFn=rt,q.doneFn=et,function(){D=null,B=null,F=e.pathSubplot(),N=!1;var t=r._fullLayout[e.id];j=i(t.bgcolor).getLuminance(),(V=d.makeZoombox(s,j,h,p,F)).attr(\"fill-rule\",\"evenodd\"),U=d.makeCorners(s,h,p),b(s)}();break;case\"select\":case\"lasso\":y(t,n,a,q,o)}},O.onmousemove=function(t){v.hover(r,t,e.id),r._fullLayout._lasthover=O,r._fullLayout._hoversubplot=e.id},O.onmouseout=function(t){r._dragging||g.unhover(r,t)},g.init(q)},O.updateRadialDrag=function(t,e,r){var i=this,s=i.gd,l=i.layers,c=i.radius,u=i.innerRadius,f=i.cx,h=i.cy,v=i.radialAxis,m=A.radialDragBoxSize,y=m/2;if(v.visible){var x,_,M,T=C(i.radialAxisAngle),S=v._rl,E=S[0],z=S[1],O=S[r],I=.75*(S[1]-S[0])/(1-e.hole)/c;r?(x=f+(c+y)*Math.cos(T),_=h-(c+y)*Math.sin(T),M=\"radialdrag\"):(x=f+(u-y)*Math.cos(T),_=h-(u-y)*Math.sin(T),M=\"radialdrag-inner\");var F,N,j,V=d.makeRectDragger(l,M,\"crosshair\",-y,-y,m,m),U={element:V,gd:s};D(n.select(V),v.visible&&u<c,{transform:R(x,_)}),U.prepFn=function(){F=null,N=null,j=null,U.moveFn=q,U.doneFn=H,b(t._zoomlayer)},U.clampFn=function(t,e){return Math.sqrt(t*t+e*e)<A.MINDRAG&&(t=0,e=0),[t,e]},g.init(U)}function q(t,e){if(F)F(t,e);else{var r=[t,-e],n=[Math.cos(T),Math.sin(T)],i=Math.abs(o.dot(r,n)/Math.sqrt(o.dot(r,r)));isNaN(i)||(F=i<.5?G:W)}}function H(){null!==N?a.call(\"relayout\",s,i.id+\".radialaxis.angle\",N):null!==j&&a.call(\"relayout\",s,i.id+\".radialaxis.range[\"+r+\"]\",j)}function G(t,e){if(0!==r){var n=x+t,a=_+e;N=Math.atan2(h-a,n-f),i.vangles&&(N=P(N,i.vangles)),N=L(N);var o=R(f,h)+B(-N);l[\"radial-axis\"].attr(\"transform\",o),l[\"radial-line\"].select(\"line\").attr(\"transform\",o);var s=i.gd._fullLayout,c=s[i.id];i.updateRadialAxisTitle(s,c,N)}}function W(t,e){var n=o.dot([t,-e],[Math.cos(T),Math.sin(T)]);if(j=O-I*n,I>0==(r?j>E:j<z)){v.range[r]=j,v._rl[r]=j,v.setGeometry(),v.setScale(),i.xaxis.setRange(),i.xaxis.setScale(),i.yaxis.setRange(),i.yaxis.setScale(),p(s,v,!0),l[\"radial-grid\"].attr(\"transform\",R(f,h)).selectAll(\"path\").attr(\"transform\",null);var c=!1;for(var u in i.traceHash){var d=i.traceHash[u],g=o.filterVisible(d),m=d[0][0].trace._module,y=s._fullLayout[i.id];m.plot(s,i,g,y),a.traceIs(u,\"gl\")&&g.length&&(c=!0)}c&&(w(s),k(s))}else j=null}},O.updateAngularDrag=function(t){var e=this,r=e.gd,i=e.layers,s=e.radius,c=e.angularAxis,u=e.cx,f=e.cy,h=e.cxx,v=e.cyy,m=A.angularDragBoxSize,y=d.makeDragger(i,\"path\",\"angulardrag\",\"move\"),x={element:y,gd:r};function M(t,e){return Math.atan2(v+m-e,t-h-m)}n.select(y).attr(\"d\",e.pathAnnulus(s,s+m)).attr(\"transform\",R(u,f)).call(_,\"move\");var T,S,E,C,z,O,I=i.frontplot.select(\".scatterlayer\").selectAll(\".trace\"),P=I.selectAll(\".point\"),D=I.selectAll(\".textpoint\");function F(t,s){var d=e.gd._fullLayout,g=d[e.id],m=M(T+t,S+s),y=L(m-O);if(C=E+y,i.frontplot.attr(\"transform\",R(e.xOffset2,e.yOffset2)+B([-y,h,v])),e.vangles){z=e.radialAxisAngle+y;var x=R(u,f)+B(-y),b=R(u,f)+B(-z);i.bg.attr(\"transform\",x),i[\"radial-grid\"].attr(\"transform\",x),i[\"angular-line\"].select(\"path\").attr(\"transform\",x),i[\"radial-axis\"].attr(\"transform\",b),i[\"radial-line\"].select(\"line\").attr(\"transform\",b),e.updateRadialAxisTitle(d,g,z)}else e.clipPaths.forTraces.select(\"path\").attr(\"transform\",R(h,v)+B(y));P.each(function(){var t=n.select(this),e=l.getTranslate(t);t.attr(\"transform\",R(e.x,e.y)+B([y]))}),D.each(function(){var t=n.select(this),e=t.select(\"text\"),r=l.getTranslate(t);t.attr(\"transform\",B([y,e.attr(\"x\"),e.attr(\"y\")])+R(r.x,r.y))}),c.rotation=o.modHalf(C,360),c.setGeometry(),c.setScale(),p(r,c,!0),e._hasClipOnAxisFalse&&!o.isFullCircle(e.sectorInRad)&&I.call(l.hideOutsideRangePoints,e);var _=!1;for(var A in e.traceHash)if(a.traceIs(A,\"gl\")){var F=e.traceHash[A],N=o.filterVisible(F);F[0][0].trace._module.plot(r,e,N,g),N.length&&(_=!0)}_&&(w(r),k(r))}function N(){D.select(\"text\").attr(\"transform\",null);var t={};t[e.id+\".angularaxis.rotation\"]=C,e.vangles&&(t[e.id+\".radialaxis.angle\"]=z),a.call(\"relayout\",r,t)}x.prepFn=function(r,n,i){var a=t[e.id];E=a.angularaxis.rotation;var o=y.getBoundingClientRect();T=n-o.left,S=i-o.top,O=M(T,S),x.moveFn=F,x.doneFn=N,b(t._zoomlayer)},e.vangles&&!o.isFullCircle(e.sectorInRad)&&(x.prepFn=o.noop,_(n.select(y),null)),g.init(x)},O.isPtInside=function(t){var e=this.sectorInRad,r=this.vangles,n=this.angularAxis.c2g(t.theta),i=this.radialAxis,a=i.c2l(t.r),s=i._rl;return(r?T.isPtInsidePolygon:o.isPtInsideSector)(a,n,s,e,r)},O.pathArc=function(t){var e=this.sectorInRad,r=this.vangles;return(r?T.pathPolygon:o.pathArc)(t,e[0],e[1],r)},O.pathSector=function(t){var e=this.sectorInRad,r=this.vangles;return(r?T.pathPolygon:o.pathSector)(t,e[0],e[1],r)},O.pathAnnulus=function(t,e){var r=this.sectorInRad,n=this.vangles;return(n?T.pathPolygonAnnulus:o.pathAnnulus)(t,e,r[0],r[1],n)},O.pathSubplot=function(){var t=this.innerRadius,e=this.radius;return t?this.pathAnnulus(t,e):this.pathSector(e)},O.fillViewInitialKey=function(t,e){t in this.viewInitial||(this.viewInitial[t]=e)}},{\"../../components/color\":570,\"../../components/dragelement\":592,\"../../components/drawing\":595,\"../../components/fx\":612,\"../../components/titles\":661,\"../../constants/alignment\":668,\"../../lib\":696,\"../../lib/clear_gl_canvases\":680,\"../../lib/setcursor\":716,\"../../plot_api/subroutines\":735,\"../../registry\":827,\"../cartesian/autorange\":743,\"../cartesian/axes\":744,\"../cartesian/dragbox\":753,\"../cartesian/select\":762,\"../cartesian/set_convert\":763,\"../plots\":808,\"./constants\":809,\"./helpers\":810,\"./set_convert\":821,d3:148,tinycolor2:514}],821:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../cartesian/set_convert\"),a=n.deg2rad,o=n.rad2deg;e.exports=function(t,e,r){switch(i(t,r),t._id){case\"x\":case\"radialaxis\":!function(t,e){var r=e._subplot;t.setGeometry=function(){var e=t._rl[0],n=t._rl[1],i=r.innerRadius,a=(r.radius-i)/(n-e),o=i/a,s=e>n?function(t){return t<=0}:function(t){return t>=0};t.c2g=function(r){var n=t.c2l(r)-e;return(s(n)?n:0)+o},t.g2c=function(r){return t.l2c(r+e-o)},t.g2p=function(t){return t*a},t.c2p=function(e){return t.g2p(t.c2g(e))}}}(t,e);break;case\"angularaxis\":!function(t,e){var r=t.type;if(\"linear\"===r){var i=t.d2c,s=t.c2d;t.d2c=function(t,e){return function(t,e){return\"degrees\"===e?a(t):t}(i(t),e)},t.c2d=function(t,e){return s(function(t,e){return\"degrees\"===e?o(t):t}(t,e))}}t.makeCalcdata=function(e,i){var a,o,s=e[i],l=e._length,c=function(r){return t.d2c(r,e.thetaunit)};if(s){if(n.isTypedArray(s)&&\"linear\"===r){if(l===s.length)return s;if(s.subarray)return s.subarray(0,l)}for(a=new Array(l),o=0;o<l;o++)a[o]=c(s[o])}else{var u=i+\"0\",f=\"d\"+i,h=u in e?c(e[u]):0,p=e[f]?c(e[f]):(t.period||2*Math.PI)/l;for(a=new Array(l),o=0;o<l;o++)a[o]=h+o*p}return a},t.setGeometry=function(){var i,s,l,c,u=e.sector,f=u.map(a),h={clockwise:-1,counterclockwise:1}[t.direction],p=a(t.rotation),d=function(t){return h*t+p},g=function(t){return(t-p)/h};switch(r){case\"linear\":s=i=n.identity,c=a,l=o,t.range=n.isFullCircle(f)?[u[0],u[0]+360]:f.map(g).map(o);break;case\"category\":var v=t._categories.length,m=t.period?Math.max(t.period,v):v;s=c=function(t){return 2*t*Math.PI/m},i=l=function(t){return t*m/Math.PI/2},t.range=[0,m]}t.c2g=function(t){return d(s(t))},t.g2c=function(t){return i(g(t))},t.t2g=function(t){return d(c(t))},t.g2t=function(t){return l(g(t))}}}(t,e)}}},{\"../../lib\":696,\"../cartesian/set_convert\":763}],822:[function(t,e,r){\"use strict\";var n=t(\"../lib\"),i=t(\"../plot_api/plot_template\"),a=t(\"./domain\").defaults;e.exports=function(t,e,r,o){var s,l,c=o.type,u=o.attributes,f=o.handleDefaults,h=o.partition||\"x\",p=e._subplots[c],d=p.length,g=d&&p[0].replace(/\\d+$/,\"\");function v(t,e){return n.coerce(s,l,u,t,e)}for(var m=0;m<d;m++){var y=p[m];s=t[y]?t[y]:t[y]={},l=i.newContainer(e,y,g);var x={};x[h]=[m/d,(m+1)/d],a(l,e,v,x),o.id=y,f(s,l,v,o)}}},{\"../lib\":696,\"../plot_api/plot_template\":734,\"./domain\":770}],823:[function(t,e,r){\"use strict\";var n=t(\"./ternary\"),i=t(\"../../plots/get_data\").getSubplotCalcData,a=t(\"../../lib\").counterRegex;r.name=\"ternary\";var o=r.attr=\"subplot\";r.idRoot=\"ternary\",r.idRegex=r.attrRegex=a(\"ternary\"),(r.attributes={})[o]={valType:\"subplotid\",dflt:\"ternary\",editType:\"calc\"},r.layoutAttributes=t(\"./layout_attributes\"),r.supplyLayoutDefaults=t(\"./layout_defaults\"),r.plot=function(t){for(var e=t._fullLayout,r=t.calcdata,a=e._subplots.ternary,o=0;o<a.length;o++){var s=a[o],l=i(r,\"ternary\",s),c=e[s]._subplot;c||(c=new n({id:s,graphDiv:t,container:e._ternarylayer.node()},e),e[s]._subplot=c),c.plot(l,e,t._promises)}},r.clean=function(t,e,r,n){for(var i=n._subplots.ternary||[],a=0;a<i.length;a++){var o=i[a],s=n[o]._subplot;!e[o]&&s&&(s.plotContainer.remove(),s.clipDef.remove(),s.clipDefRelative.remove(),s.layers[\"a-title\"].remove(),s.layers[\"b-title\"].remove(),s.layers[\"c-title\"].remove())}}},{\"../../lib\":696,\"../../plots/get_data\":781,\"./layout_attributes\":824,\"./layout_defaults\":825,\"./ternary\":826}],824:[function(t,e,r){\"use strict\";var n=t(\"../../components/color/attributes\"),i=t(\"../domain\").attributes,a=t(\"../cartesian/layout_attributes\"),o=t(\"../../plot_api/edit_types\").overrideAll,s=t(\"../../lib/extend\").extendFlat,l={title:a.title,titlefont:a.titlefont,color:a.color,tickmode:a.tickmode,nticks:s({},a.nticks,{dflt:6,min:1}),tick0:a.tick0,dtick:a.dtick,tickvals:a.tickvals,ticktext:a.ticktext,ticks:a.ticks,ticklen:a.ticklen,tickwidth:a.tickwidth,tickcolor:a.tickcolor,showticklabels:a.showticklabels,showtickprefix:a.showtickprefix,tickprefix:a.tickprefix,showticksuffix:a.showticksuffix,ticksuffix:a.ticksuffix,showexponent:a.showexponent,exponentformat:a.exponentformat,separatethousands:a.separatethousands,tickfont:a.tickfont,tickangle:a.tickangle,tickformat:a.tickformat,tickformatstops:a.tickformatstops,hoverformat:a.hoverformat,showline:s({},a.showline,{dflt:!0}),linecolor:a.linecolor,linewidth:a.linewidth,showgrid:s({},a.showgrid,{dflt:!0}),gridcolor:a.gridcolor,gridwidth:a.gridwidth,layer:a.layer,min:{valType:\"number\",dflt:0,min:0}};e.exports=o({domain:i({name:\"ternary\"}),bgcolor:{valType:\"color\",dflt:n.background},sum:{valType:\"number\",dflt:1,min:0},aaxis:l,baxis:l,caxis:l},\"plot\",\"from-root\")},{\"../../components/color/attributes\":569,\"../../lib/extend\":685,\"../../plot_api/edit_types\":727,\"../cartesian/layout_attributes\":757,\"../domain\":770}],825:[function(t,e,r){\"use strict\";var n=t(\"../../components/color\"),i=t(\"../../plot_api/plot_template\"),a=t(\"../../lib\"),o=t(\"../subplot_defaults\"),s=t(\"../cartesian/tick_label_defaults\"),l=t(\"../cartesian/tick_mark_defaults\"),c=t(\"../cartesian/tick_value_defaults\"),u=t(\"../cartesian/line_grid_defaults\"),f=t(\"./layout_attributes\"),h=[\"aaxis\",\"baxis\",\"caxis\"];function p(t,e,r,a){var o,s,l,c=r(\"bgcolor\"),u=r(\"sum\");a.bgColor=n.combine(c,a.paper_bgcolor);for(var f=0;f<h.length;f++)s=t[o=h[f]]||{},(l=i.newContainer(e,o))._name=o,d(s,l,a);var p=e.aaxis,g=e.baxis,v=e.caxis;p.min+g.min+v.min>=u&&(p.min=0,g.min=0,v.min=0,t.aaxis&&delete t.aaxis.min,t.baxis&&delete t.baxis.min,t.caxis&&delete t.caxis.min)}function d(t,e,r){var n=f[e._name];function i(r,i){return a.coerce(t,e,n,r,i)}e.type=\"linear\";var o=i(\"color\"),h=o!==n.color.dflt?o:r.font.color,p=e._name.charAt(0).toUpperCase(),d=\"Component \"+p,g=i(\"title\",d);e._hovertitle=g===d?g:p,a.coerceFont(i,\"titlefont\",{family:r.font.family,size:Math.round(1.2*r.font.size),color:h}),i(\"min\"),c(t,e,i,\"linear\"),s(t,e,i,\"linear\",{}),l(t,e,i,{outerTicks:!0}),i(\"showticklabels\")&&(a.coerceFont(i,\"tickfont\",{family:r.font.family,size:r.font.size,color:h}),i(\"tickangle\"),i(\"tickformat\")),u(t,e,i,{dfltColor:o,bgColor:r.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:n}),i(\"hoverformat\"),i(\"layer\")}e.exports=function(t,e,r){o(t,e,r,{type:\"ternary\",attributes:f,handleDefaults:p,font:e.font,paper_bgcolor:e.paper_bgcolor})}},{\"../../components/color\":570,\"../../lib\":696,\"../../plot_api/plot_template\":734,\"../cartesian/line_grid_defaults\":759,\"../cartesian/tick_label_defaults\":764,\"../cartesian/tick_mark_defaults\":765,\"../cartesian/tick_value_defaults\":766,\"../subplot_defaults\":822,\"./layout_attributes\":824}],826:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"tinycolor2\"),a=t(\"../../registry\"),o=t(\"../../lib\"),s=o._,l=t(\"../../components/color\"),c=t(\"../../components/drawing\"),u=t(\"../cartesian/set_convert\"),f=t(\"../../lib/extend\").extendFlat,h=t(\"../plots\"),p=t(\"../cartesian/axes\"),d=t(\"../../components/dragelement\"),g=t(\"../../components/fx\"),v=t(\"../../components/titles\"),m=t(\"../cartesian/select\").prepSelect,y=t(\"../cartesian/select\").selectOnClick,x=t(\"../cartesian/select\").clearSelect,b=t(\"../cartesian/constants\");function _(t,e){this.id=t.id,this.graphDiv=t.graphDiv,this.init(e),this.makeFramework(e),this.aTickLayout=null,this.bTickLayout=null,this.cTickLayout=null}e.exports=_;var w=_.prototype;w.init=function(t){this.container=t._ternarylayer,this.defs=t._defs,this.layoutId=t._uid,this.traceHash={},this.layers={}},w.plot=function(t,e){var r=e[this.id],n=e._size;this._hasClipOnAxisFalse=!1;for(var i=0;i<t.length;i++){if(!1===t[i][0].trace.cliponaxis){this._hasClipOnAxisFalse=!0;break}}this.updateLayers(r),this.adjustLayout(r,n),h.generalUpdatePerTraceModule(this.graphDiv,this,t,r),this.layers.plotbg.select(\"path\").call(l.fill,r.bgcolor)},w.makeFramework=function(t){var e=t[this.id],r=this.clipId=\"clip\"+this.layoutId+this.id,n=this.clipIdRelative=\"clip-relative\"+this.layoutId+this.id;this.clipDef=o.ensureSingleById(t._clips,\"clipPath\",r,function(t){t.append(\"path\").attr(\"d\",\"M0,0Z\")}),this.clipDefRelative=o.ensureSingleById(t._clips,\"clipPath\",n,function(t){t.append(\"path\").attr(\"d\",\"M0,0Z\")}),this.plotContainer=o.ensureSingle(this.container,\"g\",this.id),this.updateLayers(e),c.setClipUrl(this.layers.backplot,r),c.setClipUrl(this.layers.grids,r)},w.updateLayers=function(t){var e=this.layers,r=[\"draglayer\",\"plotbg\",\"backplot\",\"grids\"];\"below traces\"===t.aaxis.layer&&r.push(\"aaxis\",\"aline\"),\"below traces\"===t.baxis.layer&&r.push(\"baxis\",\"bline\"),\"below traces\"===t.caxis.layer&&r.push(\"caxis\",\"cline\"),r.push(\"frontplot\"),\"above traces\"===t.aaxis.layer&&r.push(\"aaxis\",\"aline\"),\"above traces\"===t.baxis.layer&&r.push(\"baxis\",\"bline\"),\"above traces\"===t.caxis.layer&&r.push(\"caxis\",\"cline\");var i=this.plotContainer.selectAll(\"g.toplevel\").data(r,String),a=[\"agrid\",\"bgrid\",\"cgrid\"];i.enter().append(\"g\").attr(\"class\",function(t){return\"toplevel \"+t}).each(function(t){var r=n.select(this);e[t]=r,\"frontplot\"===t?r.append(\"g\").classed(\"scatterlayer\",!0):\"backplot\"===t?r.append(\"g\").classed(\"maplayer\",!0):\"plotbg\"===t?r.append(\"path\").attr(\"d\",\"M0,0Z\"):\"aline\"===t||\"bline\"===t||\"cline\"===t?r.append(\"path\"):\"grids\"===t&&a.forEach(function(t){e[t]=r.append(\"g\").classed(\"grid \"+t,!0);var n=\"bgrid\"===t?\"x\":\"y\";e[t].append(\"g\").classed(n,!0)})}),i.order()};var k=Math.sqrt(4/3);function M(t){return t.ticks+String(t.ticklen)+String(t.showticklabels)}w.adjustLayout=function(t,e){var r,n,i,a,o,s,h=this,p=t.domain,d=(p.x[0]+p.x[1])/2,g=(p.y[0]+p.y[1])/2,v=p.x[1]-p.x[0],m=p.y[1]-p.y[0],y=v*e.w,x=m*e.h,b=t.sum,_=t.aaxis.min,w=t.baxis.min,M=t.caxis.min;y>k*x?i=(a=x)*k:a=(i=y)/k,o=v*i/y,s=m*a/x,r=e.l+e.w*d-i/2,n=e.t+e.h*(1-g)-a/2,h.x0=r,h.y0=n,h.w=i,h.h=a,h.sum=b,h.xaxis={type:\"linear\",range:[_+2*M-b,b-_-2*w],domain:[d-o/2,d+o/2],_id:\"x\"},u(h.xaxis,h.graphDiv._fullLayout),h.xaxis.setScale(),h.xaxis.isPtWithinRange=function(t){return t.a>=h.aaxis.range[0]&&t.a<=h.aaxis.range[1]&&t.b>=h.baxis.range[1]&&t.b<=h.baxis.range[0]&&t.c>=h.caxis.range[1]&&t.c<=h.caxis.range[0]},h.yaxis={type:\"linear\",range:[_,b-w-M],domain:[g-s/2,g+s/2],_id:\"y\"},u(h.yaxis,h.graphDiv._fullLayout),h.yaxis.setScale(),h.yaxis.isPtWithinRange=function(){return!0};var A=h.yaxis.domain[0],T=h.aaxis=f({},t.aaxis,{visible:!0,range:[_,b-w-M],side:\"left\",_counterangle:30,tickangle:(+t.aaxis.tickangle||0)-30,domain:[A,A+s*k],_axislayer:h.layers.aaxis,_gridlayer:h.layers.agrid,anchor:\"free\",position:0,_pos:0,_id:\"y\",_length:i,_gridpath:\"M0,0l\"+a+\",-\"+i/2,automargin:!1});u(T,h.graphDiv._fullLayout),T.setScale();var S=h.baxis=f({},t.baxis,{visible:!0,range:[b-_-M,w],side:\"bottom\",_counterangle:30,domain:h.xaxis.domain,_axislayer:h.layers.baxis,_gridlayer:h.layers.bgrid,_counteraxis:h.aaxis,anchor:\"free\",position:0,_pos:0,_id:\"x\",_length:i,_gridpath:\"M0,0l-\"+i/2+\",-\"+a,automargin:!1});u(S,h.graphDiv._fullLayout),S.setScale(),T._counteraxis=S;var E=h.caxis=f({},t.caxis,{visible:!0,range:[b-_-w,M],side:\"right\",_counterangle:30,tickangle:(+t.caxis.tickangle||0)+30,domain:[A,A+s*k],_axislayer:h.layers.caxis,_gridlayer:h.layers.cgrid,_counteraxis:h.baxis,anchor:\"free\",position:0,_pos:0,_id:\"y\",_length:i,_gridpath:\"M0,0l-\"+a+\",\"+i/2,automargin:!1});u(E,h.graphDiv._fullLayout),E.setScale();var C=\"M\"+r+\",\"+(n+a)+\"h\"+i+\"l-\"+i/2+\",-\"+a+\"Z\";h.clipDef.select(\"path\").attr(\"d\",C),h.layers.plotbg.select(\"path\").attr(\"d\",C);var L=\"M0,\"+a+\"h\"+i+\"l-\"+i/2+\",-\"+a+\"Z\";h.clipDefRelative.select(\"path\").attr(\"d\",L);var z=\"translate(\"+r+\",\"+n+\")\";h.plotContainer.selectAll(\".scatterlayer,.maplayer\").attr(\"transform\",z),h.clipDefRelative.select(\"path\").attr(\"transform\",null);var O=\"translate(\"+(r-S._offset)+\",\"+(n+a)+\")\";h.layers.baxis.attr(\"transform\",O),h.layers.bgrid.attr(\"transform\",O);var I=\"translate(\"+(r+i/2)+\",\"+n+\")rotate(30)translate(0,\"+-T._offset+\")\";h.layers.aaxis.attr(\"transform\",I),h.layers.agrid.attr(\"transform\",I);var P=\"translate(\"+(r+i/2)+\",\"+n+\")rotate(-30)translate(0,\"+-E._offset+\")\";h.layers.caxis.attr(\"transform\",P),h.layers.cgrid.attr(\"transform\",P),h.drawAxes(!0),h.plotContainer.selectAll(\".crisp\").classed(\"crisp\",!1),h.layers.aline.select(\"path\").attr(\"d\",T.showline?\"M\"+r+\",\"+(n+a)+\"l\"+i/2+\",-\"+a:\"M0,0\").call(l.stroke,T.linecolor||\"#000\").style(\"stroke-width\",(T.linewidth||0)+\"px\"),h.layers.bline.select(\"path\").attr(\"d\",S.showline?\"M\"+r+\",\"+(n+a)+\"h\"+i:\"M0,0\").call(l.stroke,S.linecolor||\"#000\").style(\"stroke-width\",(S.linewidth||0)+\"px\"),h.layers.cline.select(\"path\").attr(\"d\",E.showline?\"M\"+(r+i/2)+\",\"+n+\"l\"+i/2+\",\"+a:\"M0,0\").call(l.stroke,E.linecolor||\"#000\").style(\"stroke-width\",(E.linewidth||0)+\"px\"),h.graphDiv._context.staticPlot||h.initInteractions(),c.setClipUrl(h.layers.frontplot,h._hasClipOnAxisFalse?null:h.clipId)},w.drawAxes=function(t){var e,r=this.graphDiv,n=this.id.substr(7)+\"title\",i=this.layers,a=this.aaxis,o=this.baxis,l=this.caxis;if(e=M(a),this.aTickLayout!==e&&(i.aaxis.selectAll(\".ytick\").remove(),this.aTickLayout=e),e=M(o),this.bTickLayout!==e&&(i.baxis.selectAll(\".xtick\").remove(),this.bTickLayout=e),e=M(l),this.cTickLayout!==e&&(i.caxis.selectAll(\".ytick\").remove(),this.cTickLayout=e),p.doTicksSingle(r,a,!0),p.doTicksSingle(r,o,!0),p.doTicksSingle(r,l,!0),t){var c=Math.max(a.showticklabels?a.tickfont.size/2:0,(l.showticklabels?.75*l.tickfont.size:0)+(\"outside\"===l.ticks?.87*l.ticklen:0));this.layers[\"a-title\"]=v.draw(r,\"a\"+n,{propContainer:a,propName:this.id+\".aaxis.title\",placeholder:s(r,\"Click to enter Component A title\"),attributes:{x:this.x0+this.w/2,y:this.y0-a.titlefont.size/3-c,\"text-anchor\":\"middle\"}});var u=(o.showticklabels?o.tickfont.size:0)+(\"outside\"===o.ticks?o.ticklen:0)+3;this.layers[\"b-title\"]=v.draw(r,\"b\"+n,{propContainer:o,propName:this.id+\".baxis.title\",placeholder:s(r,\"Click to enter Component B title\"),attributes:{x:this.x0-u,y:this.y0+this.h+.83*o.titlefont.size+u,\"text-anchor\":\"middle\"}}),this.layers[\"c-title\"]=v.draw(r,\"c\"+n,{propContainer:l,propName:this.id+\".caxis.title\",placeholder:s(r,\"Click to enter Component C title\"),attributes:{x:this.x0+this.w+u,y:this.y0+this.h+.83*l.titlefont.size+u,\"text-anchor\":\"middle\"}})}};var A=b.MINZOOM/2+.87,T=\"m-0.87,.5h\"+A+\"v3h-\"+(A+5.2)+\"l\"+(A/2+2.6)+\",-\"+(.87*A+4.5)+\"l2.6,1.5l-\"+A/2+\",\"+.87*A+\"Z\",S=\"m0.87,.5h-\"+A+\"v3h\"+(A+5.2)+\"l-\"+(A/2+2.6)+\",-\"+(.87*A+4.5)+\"l-2.6,1.5l\"+A/2+\",\"+.87*A+\"Z\",E=\"m0,1l\"+A/2+\",\"+.87*A+\"l2.6,-1.5l-\"+(A/2+2.6)+\",-\"+(.87*A+4.5)+\"l-\"+(A/2+2.6)+\",\"+(.87*A+4.5)+\"l2.6,1.5l\"+A/2+\",-\"+.87*A+\"Z\",C=\"m0.5,0.5h5v-2h-5v-5h-2v5h-5v2h5v5h2Z\",L=!0;function z(t){n.select(t).selectAll(\".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners\").remove()}w.initInteractions=function(){var t,e,r,n,u,f,h,p,v,_,w=this,M=w.layers.plotbg.select(\"path\").node(),A=w.graphDiv,O=A._fullLayout._zoomlayer,I={element:M,gd:A,plotinfo:{id:w.id,xaxis:w.xaxis,yaxis:w.yaxis},subplot:w.id,prepFn:function(a,o,s){I.xaxes=[w.xaxis],I.yaxes=[w.yaxis];var c=A._fullLayout.dragmode;I.minDrag=\"lasso\"===c?1:void 0,\"zoom\"===c?(I.moveFn=F,I.clickFn=P,I.doneFn=N,function(a,o,s){var c=M.getBoundingClientRect();t=o-c.left,e=s-c.top,r={a:w.aaxis.range[0],b:w.baxis.range[1],c:w.caxis.range[1]},u=r,n=w.aaxis.range[1]-r.a,f=i(w.graphDiv._fullLayout[w.id].bgcolor).getLuminance(),h=\"M0,\"+w.h+\"L\"+w.w/2+\", 0L\"+w.w+\",\"+w.h+\"Z\",p=!1,v=O.append(\"path\").attr(\"class\",\"zoombox\").attr(\"transform\",\"translate(\"+w.x0+\", \"+w.y0+\")\").style({fill:f>.2?\"rgba(0,0,0,0)\":\"rgba(255,255,255,0)\",\"stroke-width\":0}).attr(\"d\",h),_=O.append(\"path\").attr(\"class\",\"zoombox-corners\").attr(\"transform\",\"translate(\"+w.x0+\", \"+w.y0+\")\").style({fill:l.background,stroke:l.defaultLine,\"stroke-width\":1,opacity:0}).attr(\"d\",\"M0,0Z\"),x(O)}(0,o,s)):\"pan\"===c?(I.moveFn=j,I.clickFn=P,I.doneFn=V,r={a:w.aaxis.range[0],b:w.baxis.range[1],c:w.caxis.range[1]},u=r,x(O)):\"select\"!==c&&\"lasso\"!==c||m(a,o,s,I,c)}};function P(t,e){var r=A._fullLayout.clickmode;if(z(A),2===t){var n={};n[w.id+\".aaxis.min\"]=0,n[w.id+\".baxis.min\"]=0,n[w.id+\".caxis.min\"]=0,A.emit(\"plotly_doubleclick\",null),a.call(\"relayout\",A,n)}r.indexOf(\"select\")>-1&&1===t&&y(e,A,[w.xaxis],[w.yaxis],w.id,I),r.indexOf(\"event\")>-1&&g.click(A,e,w.id)}function D(t,e){return 1-e/w.h}function R(t,e){return 1-(t+(w.h-e)/Math.sqrt(3))/w.w}function B(t,e){return(t-(w.h-e)/Math.sqrt(3))/w.w}function F(i,a){var o=t+i,s=e+a,l=Math.max(0,Math.min(1,D(0,e),D(0,s))),c=Math.max(0,Math.min(1,R(t,e),R(o,s))),d=Math.max(0,Math.min(1,B(t,e),B(o,s))),g=(l/2+d)*w.w,m=(1-l/2-c)*w.w,y=(g+m)/2,x=m-g,M=(1-l)*w.h,A=M-x/k;x<b.MINZOOM?(u=r,v.attr(\"d\",h),_.attr(\"d\",\"M0,0Z\")):(u={a:r.a+l*n,b:r.b+c*n,c:r.c+d*n},v.attr(\"d\",h+\"M\"+g+\",\"+M+\"H\"+m+\"L\"+y+\",\"+A+\"L\"+g+\",\"+M+\"Z\"),_.attr(\"d\",\"M\"+t+\",\"+e+C+\"M\"+g+\",\"+M+T+\"M\"+m+\",\"+M+S+\"M\"+y+\",\"+A+E)),p||(v.transition().style(\"fill\",f>.2?\"rgba(0,0,0,0.4)\":\"rgba(255,255,255,0.3)\").duration(200),_.transition().style(\"opacity\",1).duration(200),p=!0)}function N(){if(z(A),u!==r){var t={};t[w.id+\".aaxis.min\"]=u.a,t[w.id+\".baxis.min\"]=u.b,t[w.id+\".caxis.min\"]=u.c,a.call(\"relayout\",A,t),L&&A.data&&A._context.showTips&&(o.notifier(s(A,\"Double-click to zoom back out\"),\"long\"),L=!1)}}function j(t,e){var n=t/w.xaxis._m,i=e/w.yaxis._m,a=[(u={a:r.a-i,b:r.b+(n+i)/2,c:r.c-(n-i)/2}).a,u.b,u.c].sort(),o=a.indexOf(u.a),s=a.indexOf(u.b),l=a.indexOf(u.c);a[0]<0&&(a[1]+a[0]/2<0?(a[2]+=a[0]+a[1],a[0]=a[1]=0):(a[2]+=a[0]/2,a[1]+=a[0]/2,a[0]=0),u={a:a[o],b:a[s],c:a[l]},e=(r.a-u.a)*w.yaxis._m,t=(r.c-u.c-r.b+u.b)*w.xaxis._m);var f=\"translate(\"+(w.x0+t)+\",\"+(w.y0+e)+\")\";w.plotContainer.selectAll(\".scatterlayer,.maplayer\").attr(\"transform\",f);var h=\"translate(\"+-t+\",\"+-e+\")\";w.clipDefRelative.select(\"path\").attr(\"transform\",h),w.aaxis.range=[u.a,w.sum-u.b-u.c],w.baxis.range=[w.sum-u.a-u.c,u.b],w.caxis.range=[w.sum-u.a-u.b,u.c],w.drawAxes(!1),w.plotContainer.selectAll(\".crisp\").classed(\"crisp\",!1),w._hasClipOnAxisFalse&&w.plotContainer.select(\".scatterlayer\").selectAll(\".trace\").call(c.hideOutsideRangePoints,w)}function V(){var t={};t[w.id+\".aaxis.min\"]=u.a,t[w.id+\".baxis.min\"]=u.b,t[w.id+\".caxis.min\"]=u.c,a.call(\"relayout\",A,t)}M.onmousemove=function(t){g.hover(A,t,w.id),A._fullLayout._lasthover=M,A._fullLayout._hoversubplot=w.id},M.onmouseout=function(t){A._dragging||d.unhover(A,t)},d.init(I)}},{\"../../components/color\":570,\"../../components/dragelement\":592,\"../../components/drawing\":595,\"../../components/fx\":612,\"../../components/titles\":661,\"../../lib\":696,\"../../lib/extend\":685,\"../../registry\":827,\"../cartesian/axes\":744,\"../cartesian/constants\":750,\"../cartesian/select\":762,\"../cartesian/set_convert\":763,\"../plots\":808,d3:148,tinycolor2:514}],827:[function(t,e,r){\"use strict\";var n=t(\"./lib/loggers\"),i=t(\"./lib/noop\"),a=t(\"./lib/push_unique\"),o=t(\"./lib/is_plain_object\"),s=t(\"./lib/extend\"),l=t(\"./plots/attributes\"),c=t(\"./plots/layout_attributes\"),u=s.extendFlat,f=s.extendDeepAll;function h(t){var e=t.name,i=t.categories,a=t.meta;if(r.modules[e])n.log(\"Type \"+e+\" already registered\");else{r.subplotsRegistry[t.basePlotModule.name]||function(t){var e=t.name;if(r.subplotsRegistry[e])return void n.log(\"Plot type \"+e+\" already registered.\");for(var i in v(t),r.subplotsRegistry[e]=t,r.componentsRegistry)x(i,t.name)}(t.basePlotModule);for(var o={},s=0;s<i.length;s++)o[i[s]]=!0,r.allCategories[i[s]]=!0;for(var l in r.modules[e]={_module:t,categories:o},a&&Object.keys(a).length&&(r.modules[e].meta=a),r.allTypes.push(e),r.componentsRegistry)m(l,e);t.layoutAttributes&&u(r.traceLayoutAttributes,t.layoutAttributes)}}function p(t){if(\"string\"!=typeof t.name)throw new Error(\"Component module *name* must be a string.\");var e=t.name;for(var n in r.componentsRegistry[e]=t,t.layoutAttributes&&(t.layoutAttributes._isLinkedToArray&&a(r.layoutArrayContainers,e),v(t)),r.modules)m(e,n);for(var i in r.subplotsRegistry)x(e,i);for(var o in r.transformsRegistry)y(e,o);t.schema&&t.schema.layout&&f(c,t.schema.layout)}function d(t){if(\"string\"!=typeof t.name)throw new Error(\"Transform module *name* must be a string.\");var e=\"Transform module \"+t.name,i=\"function\"==typeof t.transform,a=\"function\"==typeof t.calcTransform;if(!i&&!a)throw new Error(e+\" is missing a *transform* or *calcTransform* method.\");for(var s in i&&a&&n.log([e+\" has both a *transform* and *calcTransform* methods.\",\"Please note that all *transform* methods are executed\",\"before all *calcTransform* methods.\"].join(\" \")),o(t.attributes)||n.log(e+\" registered without an *attributes* object.\"),\"function\"!=typeof t.supplyDefaults&&n.log(e+\" registered without a *supplyDefaults* method.\"),r.transformsRegistry[t.name]=t,r.componentsRegistry)y(s,t.name)}function g(t){var e=t.name,n=e.split(\"-\")[0],i=t.dictionary,a=t.format,o=i&&Object.keys(i).length,s=a&&Object.keys(a).length,l=r.localeRegistry,c=l[e];if(c||(l[e]=c={}),n!==e){var u=l[n];u||(l[n]=u={}),o&&u.dictionary===c.dictionary&&(u.dictionary=i),s&&u.format===c.format&&(u.format=a)}o&&(c.dictionary=i),s&&(c.format=a)}function v(t){if(t.layoutAttributes){var e=t.layoutAttributes._arrayAttrRegexps;if(e)for(var n=0;n<e.length;n++)a(r.layoutArrayRegexes,e[n])}}function m(t,e){var n=r.componentsRegistry[t].schema;if(n&&n.traces){var i=n.traces[e];i&&f(r.modules[e]._module.attributes,i)}}function y(t,e){var n=r.componentsRegistry[t].schema;if(n&&n.transforms){var i=n.transforms[e];i&&f(r.transformsRegistry[e].attributes,i)}}function x(t,e){var n=r.componentsRegistry[t].schema;if(n&&n.subplots){var i=r.subplotsRegistry[e],a=i.layoutAttributes,o=\"subplot\"===i.attr?i.name:i.attr;Array.isArray(o)&&(o=o[0]);var s=n.subplots[o];a&&s&&f(a,s)}}function b(t){return\"object\"==typeof t&&(t=t.type),t}r.modules={},r.allCategories={},r.allTypes=[],r.subplotsRegistry={},r.transformsRegistry={},r.componentsRegistry={},r.layoutArrayContainers=[],r.layoutArrayRegexes=[],r.traceLayoutAttributes={},r.localeRegistry={},r.apiMethodRegistry={},r.register=function(t){if(!t)throw new Error(\"No argument passed to Plotly.register.\");t&&!Array.isArray(t)&&(t=[t]);for(var e=0;e<t.length;e++){var n=t[e];if(!n)throw new Error(\"Invalid module was attempted to be registered!\");switch(n.moduleType){case\"trace\":h(n);break;case\"transform\":d(n);break;case\"component\":p(n);break;case\"locale\":g(n);break;case\"apiMethod\":var i=n.name;r.apiMethodRegistry[i]=n.fn;break;default:throw new Error(\"Invalid module was attempted to be registered!\")}}},r.getModule=function(t){var e=r.modules[b(t)];return!!e&&e._module},r.traceIs=function(t,e){if(\"various\"===(t=b(t)))return!1;var i=r.modules[t];return i||(t&&\"area\"!==t&&n.log(\"Unrecognized trace type \"+t+\".\"),i=r.modules[l.type.dflt]),!!i.categories[e]},r.getTransformIndices=function(t,e){for(var r=[],n=t.transforms||[],i=0;i<n.length;i++)n[i].type===e&&r.push(i);return r},r.hasTransform=function(t,e){for(var r=t.transforms||[],n=0;n<r.length;n++)if(r[n].type===e)return!0;return!1},r.getComponentMethod=function(t,e){var n=r.componentsRegistry[t];return n&&n[e]||i},r.call=function(){var t=arguments[0],e=[].slice.call(arguments,1);return r.apiMethodRegistry[t].apply(null,e)}},{\"./lib/extend\":685,\"./lib/is_plain_object\":697,\"./lib/loggers\":700,\"./lib/noop\":705,\"./lib/push_unique\":710,\"./plots/attributes\":741,\"./plots/layout_attributes\":799}],828:[function(t,e,r){\"use strict\";var n=t(\"../lib\"),i=n.extendFlat,a=n.extendDeep;function o(t){var e;switch(t){case\"themes__thumb\":e={autosize:!0,width:150,height:150,title:\"\",showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case\"thumbnail\":e={title:\"\",hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:\"\",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:e={}}return e}e.exports=function(t,e){var r;t.framework&&t.framework.isPolar&&(t=t.framework.getConfig());var n,s=t.data,l=t.layout,c=a([],s),u=a({},l,o(e.tileClass)),f=t._context||{};if(e.width&&(u.width=e.width),e.height&&(u.height=e.height),\"thumbnail\"===e.tileClass||\"themes__thumb\"===e.tileClass){u.annotations=[];var h=Object.keys(u);for(r=0;r<h.length;r++)n=h[r],[\"xaxis\",\"yaxis\",\"zaxis\"].indexOf(n.slice(0,5))>-1&&(u[h[r]].title=\"\");for(r=0;r<c.length;r++){var p=c[r];p.showscale=!1,p.marker&&(p.marker.showscale=!1),\"pie\"===p.type&&(p.textposition=\"none\")}}if(Array.isArray(e.annotations))for(r=0;r<e.annotations.length;r++)u.annotations.push(e.annotations[r]);var d=Object.keys(u).filter(function(t){return t.match(/^scene\\d*$/)});if(d.length){var g={};for(\"thumbnail\"===e.tileClass&&(g={title:\"\",showaxeslabels:!1,showticklabels:!1,linetickenable:!1}),r=0;r<d.length;r++){var v=u[d[r]];v.xaxis||(v.xaxis={}),v.yaxis||(v.yaxis={}),v.zaxis||(v.zaxis={}),i(v.xaxis,g),i(v.yaxis,g),i(v.zaxis,g),v._scene=null}}var m=document.createElement(\"div\");e.tileClass&&(m.className=e.tileClass);var y={gd:m,td:m,layout:u,data:c,config:{staticPlot:void 0===e.staticPlot||e.staticPlot,plotGlPixelRatio:void 0===e.plotGlPixelRatio?2:e.plotGlPixelRatio,displaylogo:e.displaylogo||!1,showLink:e.showLink||!1,showTips:e.showTips||!1,mapboxAccessToken:f.mapboxAccessToken}};return\"transparent\"!==e.setBackground&&(y.config.setBackground=e.setBackground||\"opaque\"),y.gd.defaultLayout=o(e.tileClass),y}},{\"../lib\":696}],829:[function(t,e,r){\"use strict\";var n=t(\"../plot_api/to_image\"),i=t(\"../lib\"),a=t(\"./filesaver\");e.exports=function(t,e){var r;return i.isPlainObject(t)||(r=i.getGraphDiv(t)),(e=e||{}).format=e.format||\"png\",new Promise(function(o,s){r&&r._snapshotInProgress&&s(new Error(\"Snapshotting already in progress.\")),i.isIE()&&\"svg\"!==e.format&&s(new Error(\"Sorry IE does not support downloading from canvas. Try {format:'svg'} instead.\")),r&&(r._snapshotInProgress=!0);var l=n(t,e),c=e.filename||t.fn||\"newplot\";c+=\".\"+e.format,l.then(function(t){return r&&(r._snapshotInProgress=!1),a(t,c)}).then(function(t){o(t)}).catch(function(t){r&&(r._snapshotInProgress=!1),s(t)})})}},{\"../lib\":696,\"../plot_api/to_image\":737,\"./filesaver\":830}],830:[function(t,e,r){\"use strict\";e.exports=function(t,e){var r=document.createElement(\"a\"),n=\"download\"in r,i=/Version\\/[\\d\\.]+.*Safari/.test(navigator.userAgent);return new Promise(function(a,o){if(\"undefined\"!=typeof navigator&&/MSIE [1-9]\\./.test(navigator.userAgent)&&o(new Error(\"IE < 10 unsupported\")),i&&(document.location.href=\"data:application/octet-stream\"+t.slice(t.search(/[,;]/)),a(e)),e||(e=\"download\"),n&&(r.href=t,r.download=e,document.body.appendChild(r),r.click(),document.body.removeChild(r),a(e)),\"undefined\"!=typeof navigator&&navigator.msSaveBlob){var s=t.split(/^data:image\\/svg\\+xml,/)[1],l=decodeURIComponent(s);navigator.msSaveBlob(new Blob([l]),e),a(e)}o(new Error(\"download error\"))})}},{}],831:[function(t,e,r){\"use strict\";r.getDelay=function(t){return t._has&&(t._has(\"gl3d\")||t._has(\"gl2d\")||t._has(\"mapbox\"))?500:0},r.getRedrawFunc=function(t){var e=t._fullLayout||{};if(!(!(e._has&&e._has(\"polar\"))&&t.data&&t.data[0]&&t.data[0].r))return function(){(t.calcdata||[]).forEach(function(t){t[0]&&t[0].t&&t[0].t.cb&&t[0].t.cb()})}}},{}],832:[function(t,e,r){\"use strict\";var n=t(\"./helpers\"),i={getDelay:n.getDelay,getRedrawFunc:n.getRedrawFunc,clone:t(\"./cloneplot\"),toSVG:t(\"./tosvg\"),svgToImg:t(\"./svgtoimg\"),toImage:t(\"./toimage\"),downloadImage:t(\"./download\")};e.exports=i},{\"./cloneplot\":828,\"./download\":829,\"./helpers\":831,\"./svgtoimg\":833,\"./toimage\":834,\"./tosvg\":835}],833:[function(t,e,r){\"use strict\";var n=t(\"../lib\"),i=t(\"events\").EventEmitter;e.exports=function(t){var e=t.emitter||new i,r=new Promise(function(i,a){var o=window.Image,s=t.svg,l=t.format||\"png\";if(n.isIE()&&\"svg\"!==l){var c=new Error(\"Sorry IE does not support downloading from canvas. Try {format:'svg'} instead.\");return a(c),t.promise?r:e.emit(\"error\",c)}var u=t.canvas,f=t.scale||1,h=t.width||300,p=t.height||150,d=f*h,g=f*p,v=u.getContext(\"2d\"),m=new o,y=\"data:image/svg+xml,\"+encodeURIComponent(s);u.width=d,u.height=g,m.onload=function(){var r;switch(\"svg\"!==l&&v.drawImage(m,0,0,d,g),l){case\"jpeg\":r=u.toDataURL(\"image/jpeg\");break;case\"png\":r=u.toDataURL(\"image/png\");break;case\"webp\":r=u.toDataURL(\"image/webp\");break;case\"svg\":r=y;break;default:var n=\"Image format is not jpeg, png, svg or webp.\";if(a(new Error(n)),!t.promise)return e.emit(\"error\",n)}i(r),t.promise||e.emit(\"success\",r)},m.onerror=function(r){if(a(r),!t.promise)return e.emit(\"error\",r)},m.src=y});return t.promise?r:e}},{\"../lib\":696,events:92}],834:[function(t,e,r){\"use strict\";var n=t(\"events\").EventEmitter,i=t(\"../registry\"),a=t(\"../lib\"),o=t(\"./helpers\"),s=t(\"./cloneplot\"),l=t(\"./tosvg\"),c=t(\"./svgtoimg\");e.exports=function(t,e){var r=new n,u=s(t,{format:\"png\"}),f=u.gd;f.style.position=\"absolute\",f.style.left=\"-5000px\",document.body.appendChild(f);var h=o.getRedrawFunc(f);return i.call(\"plot\",f,u.data,u.layout,u.config).then(h).then(function(){var t=o.getDelay(f._fullLayout);setTimeout(function(){var t=l(f),n=document.createElement(\"canvas\");n.id=a.randstr(),(r=c({format:e.format,width:f._fullLayout.width,height:f._fullLayout.height,canvas:n,emitter:r,svg:t})).clean=function(){f&&document.body.removeChild(f)}},t)}).catch(function(t){r.emit(\"error\",t)}),r}},{\"../lib\":696,\"../registry\":827,\"./cloneplot\":828,\"./helpers\":831,\"./svgtoimg\":833,\"./tosvg\":835,events:92}],835:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../lib\"),a=t(\"../components/drawing\"),o=t(\"../components/color\"),s=t(\"../constants/xmlns_namespaces\"),l=/\"/g,c=new RegExp('(\"TOBESTRIPPED)|(TOBESTRIPPED\")',\"g\");e.exports=function(t,e,r){var u,f=t._fullLayout,h=f._paper,p=f._toppaper,d=f.width,g=f.height;h.insert(\"rect\",\":first-child\").call(a.setRect,0,0,d,g).call(o.fill,f.paper_bgcolor);var v=f._basePlotModules||[];for(u=0;u<v.length;u++){var m=v[u];m.toSVG&&m.toSVG(t)}if(p){var y=p.node().childNodes,x=Array.prototype.slice.call(y);for(u=0;u<x.length;u++){var b=x[u];b.childNodes.length&&h.node().appendChild(b)}}f._draggers&&f._draggers.remove(),h.node().style.background=\"\",h.selectAll(\"text\").attr({\"data-unformatted\":null,\"data-math\":null}).each(function(){var t=n.select(this);if(\"hidden\"!==this.style.visibility&&\"none\"!==this.style.display){t.style({visibility:null,display:null});var e=this.style.fontFamily;e&&-1!==e.indexOf('\"')&&t.style(\"font-family\",e.replace(l,\"TOBESTRIPPED\"))}else t.remove()}),h.selectAll(\".point, .scatterpts, .legendfill>path, .legendlines>path, .cbfill\").each(function(){var t=n.select(this),e=this.style.fill;e&&-1!==e.indexOf(\"url(\")&&t.style(\"fill\",e.replace(l,\"TOBESTRIPPED\"));var r=this.style.stroke;r&&-1!==r.indexOf(\"url(\")&&t.style(\"stroke\",r.replace(l,\"TOBESTRIPPED\"))}),\"pdf\"!==e&&\"eps\"!==e||h.selectAll(\"#MathJax_SVG_glyphs path\").attr(\"stroke-width\",0),h.node().setAttributeNS(s.xmlns,\"xmlns\",s.svg),h.node().setAttributeNS(s.xmlns,\"xmlns:xlink\",s.xlink),\"svg\"===e&&r&&(h.attr(\"width\",r*d),h.attr(\"height\",r*g),h.attr(\"viewBox\",\"0 0 \"+d+\" \"+g));var _=(new window.XMLSerializer).serializeToString(h.node());return _=function(t){var e=n.select(\"body\").append(\"div\").style({display:\"none\"}).html(\"\"),r=t.replace(/(&[^;]*;)/gi,function(t){return\"&lt;\"===t?\"&#60;\":\"&rt;\"===t?\"&#62;\":-1!==t.indexOf(\"<\")||-1!==t.indexOf(\">\")?\"\":e.html(t).text()});return e.remove(),r}(_),_=(_=_.replace(/&(?!\\w+;|\\#[0-9]+;| \\#x[0-9A-F]+;)/g,\"&amp;\")).replace(c,\"'\"),i.isIE()&&(_=(_=(_=_.replace(/\"/gi,\"'\")).replace(/(\\('#)([^']*)('\\))/gi,'(\"#$2\")')).replace(/(\\\\')/gi,'\"')),_}},{\"../components/color\":570,\"../components/drawing\":595,\"../constants/xmlns_namespaces\":674,\"../lib\":696,d3:148}],836:[function(t,e,r){\"use strict\";var n=t(\"../../lib\").mergeArray;e.exports=function(t,e){for(var r=0;r<t.length;r++)t[r].i=r;n(e.text,t,\"tx\"),n(e.hovertext,t,\"htx\");var i=e.marker;if(i){n(i.opacity,t,\"mo\"),n(i.color,t,\"mc\");var a=i.line;a&&(n(a.color,t,\"mlc\"),n(a.width,t,\"mlw\"))}}},{\"../../lib\":696}],837:[function(t,e,r){\"use strict\";var n=t(\"../scatter/attributes\"),i=t(\"../../components/colorscale/attributes\"),a=t(\"../../components/colorbar/attributes\"),o=t(\"../../plots/font_attributes\"),s=t(\"../../lib/extend\").extendFlat,l=o({editType:\"calc\",arrayOk:!0,colorEditType:\"style\"}),c=s({},n.marker.line.width,{dflt:0}),u=s({width:c,editType:\"calc\"},i(\"marker.line\")),f=s({line:u,editType:\"calc\"},i(\"marker\"),{colorbar:a,opacity:{valType:\"number\",arrayOk:!0,dflt:1,min:0,max:1,editType:\"style\"}});e.exports={x:n.x,x0:n.x0,dx:n.dx,y:n.y,y0:n.y0,dy:n.dy,text:n.text,hovertext:n.hovertext,textposition:{valType:\"enumerated\",values:[\"inside\",\"outside\",\"auto\",\"none\"],dflt:\"none\",arrayOk:!0,editType:\"calc\"},textfont:s({},l,{}),insidetextfont:s({},l,{}),outsidetextfont:s({},l,{}),constraintext:{valType:\"enumerated\",values:[\"inside\",\"outside\",\"both\",\"none\"],dflt:\"both\",editType:\"calc\"},cliponaxis:s({},n.cliponaxis,{}),orientation:{valType:\"enumerated\",values:[\"v\",\"h\"],editType:\"calc+clearAxisTypes\"},base:{valType:\"any\",dflt:null,arrayOk:!0,editType:\"calc\"},offset:{valType:\"number\",dflt:null,arrayOk:!0,editType:\"calc\"},width:{valType:\"number\",dflt:null,min:0,arrayOk:!0,editType:\"calc\"},marker:f,selected:{marker:{opacity:n.selected.marker.opacity,color:n.selected.marker.color,editType:\"style\"},textfont:n.selected.textfont,editType:\"style\"},unselected:{marker:{opacity:n.unselected.marker.opacity,color:n.unselected.marker.color,editType:\"style\"},textfont:n.unselected.textfont,editType:\"style\"},r:n.r,t:n.t,_deprecated:{bardir:{valType:\"enumerated\",editType:\"calc\",values:[\"v\",\"h\"]}}}},{\"../../components/colorbar/attributes\":571,\"../../components/colorscale/attributes\":577,\"../../lib/extend\":685,\"../../plots/font_attributes\":771,\"../scatter/attributes\":1043}],838:[function(t,e,r){\"use strict\";var n=t(\"../../plots/cartesian/axes\"),i=t(\"../../components/colorscale/has_colorscale\"),a=t(\"../../components/colorscale/calc\"),o=t(\"./arrays_to_calcdata\"),s=t(\"../scatter/calc_selection\");e.exports=function(t,e){var r,l,c=n.getFromId(t,e.xaxis||\"x\"),u=n.getFromId(t,e.yaxis||\"y\");\"h\"===e.orientation?(r=c.makeCalcdata(e,\"x\"),l=u.makeCalcdata(e,\"y\")):(r=u.makeCalcdata(e,\"y\"),l=c.makeCalcdata(e,\"x\"));for(var f=Math.min(l.length,r.length),h=new Array(f),p=0;p<f;p++)h[p]={p:l[p],s:r[p]},e.ids&&(h[p].id=String(e.ids[p]));return i(e,\"marker\")&&a(e,e.marker.color,\"marker\",\"c\"),i(e,\"marker.line\")&&a(e,e.marker.line.color,\"marker.line\",\"c\"),o(h,e),s(h,e),h}},{\"../../components/colorscale/calc\":578,\"../../components/colorscale/has_colorscale\":584,\"../../plots/cartesian/axes\":744,\"../scatter/calc_selection\":1045,\"./arrays_to_calcdata\":836}],839:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../../lib\").isArrayOrTypedArray,a=t(\"../../constants/numerical\").BADNUM,o=t(\"../../registry\"),s=t(\"../../plots/cartesian/axes\"),l=t(\"./sieve.js\");function c(t,e,r,o){if(o.length){var c,_,w,k,M=t._fullLayout.barmode,A=\"overlay\"===M,T=\"group\"===M;if(function(t,e,r,a){var o,s;for(o=0;o<a.length;o++){var l,c=a[o],u=c[0].trace,f=u.base,h=\"h\"===u.orientation?u.xcalendar:u.ycalendar;if(i(f)){for(s=0;s<Math.min(f.length,c.length);s++)l=r.d2c(f[s],0,h),n(l)?(c[s].b=+l,c[s].hasB=1):c[s].b=0;for(;s<c.length;s++)c[s].b=0}else{l=r.d2c(f,0,h);var p=n(l);for(l=p?l:0,s=0;s<c.length;s++)c[s].b=l,p&&(c[s].hasB=1)}}}(0,0,r,o),A)u(t,e,r,o);else if(T){for(c=[],_=[],w=0;w<o.length;w++)void 0===(k=o[w])[0].trace.offset?_.push(k):c.push(k);_.length&&function(t,e,r,n){var i=t._fullLayout.barnorm,a=new l(n,!1,!i);(function(t,e,r){var n,i,a,o,s=t._fullLayout,l=s.bargap,c=s.bargroupgap||0,u=r.positions,f=r.distinctPositions,g=r.minDiff,v=r.traces,m=u.length!==f.length,y=v.length,x=g*(1-l),b=m?x/y:x,_=b*(1-c);for(n=0;n<y;n++){i=v[n],a=i[0];var w=m?((2*n+1-y)*b-_)/2:-_/2;(o=a.t).barwidth=_,o.poffset=w,o.bargroupwidth=x,o.bardelta=g}r.binWidth=v[0][0].t.barwidth/100,h(r),p(t,e,r),d(t,e,r,m)})(t,e,a),i?(m(t,r,a),y(t,r,a)):v(t,r,a)}(t,e,r,_),c.length&&u(t,e,r,c)}else{for(c=[],_=[],w=0;w<o.length;w++)void 0===(k=o[w])[0].trace.base?_.push(k):c.push(k);_.length&&function(t,e,r,i){var o=t._fullLayout.barmode,c=\"stack\"===o,u=\"relative\"===o,h=t._fullLayout.barnorm,p=new l(i,u,!(h||c||u));f(t,e,p),function(t,e,r){var i,o,l,c,u=t._fullLayout.barnorm,f=x(e),h=r.traces,p=[null,null];for(i=0;i<h.length;i++)for(o=h[i],l=0;l<o.length;l++)if((c=o[l]).s!==a){var d=r.put(c.p,c.b+c.s),v=d+c.b+c.s;c.b=d,c[f]=v,u||(n(e.c2l(v))&&g(p,v),c.hasB&&n(e.c2l(d))&&g(p,d))}if(!u){var m=s.findExtremes(e,p,{tozero:!0,padded:!0});b(h,e,m)}}(t,r,p);for(var d=0;d<i.length;d++)for(var v=i[d],m=0;m<v.length;m++){var _=v[m];if(_.s!==a){var w=_.b+_.s===p.get(_.p,_.s);w&&(_._outmost=!0)}}h&&y(t,r,p)}(t,e,r,_),c.length&&u(t,e,r,c)}!function(t,e){var r,i,a,o=e._id.charAt(0),s={},l=1/0,c=-1/0;for(r=0;r<t.length;r++)for(a=t[r],i=0;i<a.length;i++){var u=a[i].p;n(u)&&(l=Math.min(l,u),c=Math.max(c,u))}var f,h,p=1e4/(c-l),d=s.round=function(t){return String(Math.round(p*(t-l)))};for(r=0;r<t.length;r++)for((a=t[r])[0].t.extents=s,f=a[0].t.poffset,h=Array.isArray(f),i=0;i<a.length;i++){var g=a[i],v=g[o]-g.w/2;if(n(v)){var m=g[o]+g.w/2,y=d(g.p);s[y]?s[y]=[Math.min(v,s[y][0]),Math.max(m,s[y][1])]:s[y]=[v,m]}g.p0=g.p+(h?f[i]:f),g.p1=g.p0+g.w,g.s0=g.b,g.s1=g.s0+g.s}}(o,e)}}function u(t,e,r,n){for(var i=t._fullLayout.barnorm,a=!i,o=0;o<n.length;o++){var s=n[o],c=new l([s],!1,a);f(t,e,c),i?(m(t,r,c),y(t,r,c)):v(t,r,c)}}function f(t,e,r){var n,i,a=t._fullLayout,o=a.bargap,s=a.bargroupgap||0,l=r.minDiff,c=r.traces,u=l*(1-o),f=u*(1-s),g=-f/2;for(n=0;n<c.length;n++)(i=c[n][0].t).barwidth=f,i.poffset=g,i.bargroupwidth=u,i.bardelta=l;r.binWidth=c[0][0].t.barwidth/100,h(r),p(t,e,r),d(t,e,r)}function h(t){var e,r,a,o,s,l,c=t.traces;for(e=0;e<c.length;e++){o=(a=(r=c[e])[0]).trace,l=a.t;var u,f=o._offset||o.offset,h=l.poffset;if(i(f)){for(u=Array.prototype.slice.call(f,0,r.length),s=0;s<u.length;s++)n(u[s])||(u[s]=h);for(s=u.length;s<r.length;s++)u.push(h);l.poffset=u}else void 0!==f&&(l.poffset=f);var p=o._width||o.width,d=l.barwidth;if(i(p)){var g=Array.prototype.slice.call(p,0,r.length);for(s=0;s<g.length;s++)n(g[s])||(g[s]=d);for(s=g.length;s<r.length;s++)g.push(d);if(l.barwidth=g,void 0===f){for(u=[],s=0;s<r.length;s++)u.push(h+(d-g[s])/2);l.poffset=u}}else void 0!==p&&(l.barwidth=p,void 0===f&&(l.poffset=h+(d-p)/2))}}function p(t,e,r){for(var n=r.traces,i=x(e),a=0;a<n.length;a++)for(var o=n[a],s=o[0].t,l=s.poffset,c=Array.isArray(l),u=s.barwidth,f=Array.isArray(u),h=0;h<o.length;h++){var p=o[h],d=p.w=f?u[h]:u;p[i]=p.p+(c?l[h]:l)+d/2}}function d(t,e,r,n){var i=r.traces,a=r.distinctPositions,o=a[0],l=r.minDiff,c=l/2;s.minDtick(e,l,o,n);for(var u=Math.min.apply(Math,a)-c,f=Math.max.apply(Math,a)+c,h=0;h<i.length;h++){var p=i[h],d=p[0],g=d.trace;if(void 0!==g.width||void 0!==g.offset)for(var v=d.t,m=v.poffset,y=v.barwidth,x=Array.isArray(m),_=Array.isArray(y),w=0;w<p.length;w++){var k=p[w],M=x?m[w]:m,A=_?y[w]:y,T=k.p+M,S=T+A;u=Math.min(u,T),f=Math.max(f,S)}}b(i,e,s.findExtremes(e,[u,f],{padded:!1}))}function g(t,e){n(t[0])?t[0]=Math.min(t[0],e):t[0]=e,n(t[1])?t[1]=Math.max(t[1],e):t[1]=e}function v(t,e,r){for(var i=r.traces,a=x(e),o=[null,null],l=0;l<i.length;l++)for(var c=i[l],u=0;u<c.length;u++){var f=c[u],h=f.b,p=h+f.s;f[a]=p,n(e.c2l(p))&&g(o,p),f.hasB&&n(e.c2l(h))&&g(o,h)}b(i,e,s.findExtremes(e,o,{tozero:!0,padded:!0}))}function m(t,e,r){for(var n=r.traces,i=0;i<n.length;i++)for(var o=n[i],s=0;s<o.length;s++){var l=o[s];l.s!==a&&r.put(l.p,l.b+l.s)}}function y(t,e,r){var i=r.traces,o=x(e),l=\"fraction\"===t._fullLayout.barnorm?1:100,c=l/1e9,u=e.l2c(e.c2l(0)),f=\"stack\"===t._fullLayout.barmode?l:u,h=[u,f],p=!1;function d(t){n(e.c2l(t))&&(t<u-c||t>f+c||!n(u))&&(p=!0,g(h,t))}for(var v=0;v<i.length;v++)for(var m=i[v],y=0;y<m.length;y++){var _=m[y];if(_.s!==a){var w=Math.abs(l/r.get(_.p,_.s));_.b*=w,_.s*=w;var k=_.b,M=k+_.s;_[o]=M,d(M),_.hasB&&d(k)}}var A=s.findExtremes(e,h,{tozero:!0,padded:p});b(i,e,A)}function x(t){return t._id.charAt(0)}function b(t,e,r){for(var n=0;n<t.length;n++)t[n][0].trace._extremes[e._id]=r}e.exports={crossTraceCalc:function(t,e){var r,n=e.xaxis,i=e.yaxis,a=t._fullData,s=t.calcdata,l=[],u=[];for(r=0;r<a.length;r++){var f=a[r];!0===f.visible&&o.traceIs(f,\"bar\")&&f.xaxis===n._id&&f.yaxis===i._id&&(\"h\"===f.orientation?l.push(s[r]):u.push(s[r]))}c(t,n,i,u),c(t,i,n,l)},setGroupPositions:c}},{\"../../constants/numerical\":673,\"../../lib\":696,\"../../plots/cartesian/axes\":744,\"../../registry\":827,\"./sieve.js\":848,\"fast-isnumeric\":214}],840:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../components/color\"),a=t(\"../../registry\"),o=t(\"../scatter/xy_defaults\"),s=t(\"../bar/style_defaults\"),l=t(\"./attributes\");e.exports=function(t,e,r,c){function u(r,i){return n.coerce(t,e,l,r,i)}var f=n.coerceFont;if(o(t,e,c,u)){u(\"orientation\",e.x&&!e.y?\"h\":\"v\"),u(\"base\"),u(\"offset\"),u(\"width\"),u(\"text\"),u(\"hovertext\");var h=u(\"textposition\"),p=Array.isArray(h)||\"auto\"===h,d=p||\"outside\"===h;if(p||\"inside\"===h||d){var g=f(u,\"textfont\",c.font),v=n.extendFlat({},g);!(t.textfont&&t.textfont.color)&&delete v.color,f(u,\"insidetextfont\",v),d&&f(u,\"outsidetextfont\",g),u(\"constraintext\"),u(\"selected.textfont.color\"),u(\"unselected.textfont.color\"),u(\"cliponaxis\")}s(t,e,u,r,c);var m=a.getComponentMethod(\"errorbars\",\"supplyDefaults\");m(t,e,i.defaultLine,{axis:\"y\"}),m(t,e,i.defaultLine,{axis:\"x\",inherit:\"y\"}),n.coerceSelectionMarkerOpacity(e,u)}else e.visible=!1}},{\"../../components/color\":570,\"../../lib\":696,\"../../registry\":827,\"../bar/style_defaults\":850,\"../scatter/xy_defaults\":1069,\"./attributes\":837}],841:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"tinycolor2\");r.coerceString=function(t,e,r){if(\"string\"==typeof e){if(e||!t.noBlank)return e}else if(\"number\"==typeof e&&!t.strict)return String(e);return void 0!==r?r:t.dflt},r.coerceNumber=function(t,e,r){if(n(e)){e=+e;var i=t.min,a=t.max;if(!(void 0!==i&&e<i||void 0!==a&&e>a))return e}return void 0!==r?r:t.dflt},r.coerceColor=function(t,e,r){return i(e).isValid()?e:void 0!==r?r:t.dflt},r.coerceEnumerated=function(t,e,r){return t.coerceNumber&&(e=+e),-1!==t.values.indexOf(e)?e:void 0!==r?r:t.dflt},r.getValue=function(t,e){var r;return Array.isArray(t)?e<t.length&&(r=t[e]):r=t,r}},{\"fast-isnumeric\":214,tinycolor2:514}],842:[function(t,e,r){\"use strict\";var n=t(\"../../components/fx\"),i=t(\"../../registry\"),a=t(\"../../components/color\"),o=t(\"../scatter/fill_hover_text\");function s(t,e){var r=e.mcc||t.marker.color,n=e.mlcc||t.marker.line.color,i=e.mlw||t.marker.line.width;return a.opacity(r)?r:a.opacity(n)&&i?n:void 0}e.exports={hoverPoints:function(t,e,r,a){var l,c,u,f,h,p,d,g=t.cd,v=g[0].trace,m=g[0].t,y=\"closest\"===a,x=t.maxHoverDistance,b=t.maxSpikeDistance;function _(t){return t[u]-t.w/2}function w(t){return t[u]+t.w/2}var k=y?_:function(t){return Math.min(_(t),t.p-m.bardelta/2)},M=y?w:function(t){return Math.max(w(t),t.p+m.bardelta/2)};function A(t,e){return n.inbox(t-l,e-l,x+Math.min(1,Math.abs(e-t)/d)-1)}function T(t){return A(k(t),M(t))}function S(t){return n.inbox(t.b-c,t[f]-c,x+(t[f]-c)/(t[f]-t.b)-1)}\"h\"===v.orientation?(l=r,c=e,u=\"y\",f=\"x\",h=S,p=T):(l=e,c=r,u=\"x\",f=\"y\",p=S,h=T);var E=t[u+\"a\"],C=t[f+\"a\"];d=Math.abs(E.r2c(E.range[1])-E.r2c(E.range[0]));var L=n.getDistanceFunction(a,h,p,function(t){return(h(t)+p(t))/2});if(n.getClosest(g,L,t),!1!==t.index){y||(k=function(t){return Math.min(_(t),t.p-m.bargroupwidth/2)},M=function(t){return Math.max(w(t),t.p+m.bargroupwidth/2)});var z=g[t.index],O=v.base?z.b+z.s:z.s;t[f+\"0\"]=t[f+\"1\"]=C.c2p(z[f],!0),t[f+\"LabelVal\"]=O;var I=m.extents[m.extents.round(z.p)];return t[u+\"0\"]=E.c2p(y?k(z):I[0],!0),t[u+\"1\"]=E.c2p(y?M(z):I[1],!0),t[u+\"LabelVal\"]=z.p,t.spikeDistance=(S(z)+function(t){return A(_(t),w(t))}(z))/2+b-x,t[u+\"Spike\"]=E.c2p(z.p,!0),t.color=s(v,z),o(z,v,t),i.getComponentMethod(\"errorbars\",\"hoverInfo\")(z,v,t),[t]}},getTraceColor:s}},{\"../../components/color\":570,\"../../components/fx\":612,\"../../registry\":827,\"../scatter/fill_hover_text\":1051}],843:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.layoutAttributes=t(\"./layout_attributes\"),n.supplyDefaults=t(\"./defaults\"),n.supplyLayoutDefaults=t(\"./layout_defaults\"),n.calc=t(\"./calc\"),n.crossTraceCalc=t(\"./cross_trace_calc\").crossTraceCalc,n.colorbar=t(\"../scatter/marker_colorbar\"),n.arraysToCalcdata=t(\"./arrays_to_calcdata\"),n.plot=t(\"./plot\"),n.style=t(\"./style\").style,n.styleOnSelect=t(\"./style\").styleOnSelect,n.hoverPoints=t(\"./hover\").hoverPoints,n.selectPoints=t(\"./select\"),n.moduleType=\"trace\",n.name=\"bar\",n.basePlotModule=t(\"../../plots/cartesian\"),n.categories=[\"cartesian\",\"svg\",\"bar\",\"oriented\",\"errorBarsOK\",\"showLegend\",\"zoomScale\"],n.meta={},e.exports=n},{\"../../plots/cartesian\":756,\"../scatter/marker_colorbar\":1061,\"./arrays_to_calcdata\":836,\"./attributes\":837,\"./calc\":838,\"./cross_trace_calc\":839,\"./defaults\":840,\"./hover\":842,\"./layout_attributes\":844,\"./layout_defaults\":845,\"./plot\":846,\"./select\":847,\"./style\":849}],844:[function(t,e,r){\"use strict\";e.exports={barmode:{valType:\"enumerated\",values:[\"stack\",\"group\",\"overlay\",\"relative\"],dflt:\"group\",editType:\"calc\"},barnorm:{valType:\"enumerated\",values:[\"\",\"fraction\",\"percent\"],dflt:\"\",editType:\"calc\"},bargap:{valType:\"number\",min:0,max:1,editType:\"calc\"},bargroupgap:{valType:\"number\",min:0,max:1,dflt:0,editType:\"calc\"}}},{}],845:[function(t,e,r){\"use strict\";var n=t(\"../../registry\"),i=t(\"../../plots/cartesian/axes\"),a=t(\"../../lib\"),o=t(\"./layout_attributes\");e.exports=function(t,e,r){function s(r,n){return a.coerce(t,e,o,r,n)}for(var l=!1,c=!1,u=!1,f={},h=0;h<r.length;h++){var p=r[h];if(n.traceIs(p,\"bar\")&&p.visible){if(l=!0,\"overlay\"!==t.barmode&&\"stack\"!==t.barmode){var d=p.xaxis+p.yaxis;f[d]&&(u=!0),f[d]=!0}if(p.visible&&\"histogram\"===p.type)\"category\"!==i.getFromId({_fullLayout:e},p[\"v\"===p.orientation?\"xaxis\":\"yaxis\"]).type&&(c=!0)}}l&&(\"overlay\"!==s(\"barmode\")&&s(\"barnorm\"),s(\"bargap\",c&&!u?0:.2),s(\"bargroupgap\"))}},{\"../../lib\":696,\"../../plots/cartesian/axes\":744,\"../../registry\":827,\"./layout_attributes\":844}],846:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"fast-isnumeric\"),a=t(\"../../lib\"),o=t(\"../../lib/svg_text_utils\"),s=t(\"../../components/color\"),l=t(\"../../components/drawing\"),c=t(\"../../registry\"),u=t(\"./attributes\"),f=u.text,h=u.textposition,p=t(\"./helpers\"),d=t(\"./style\"),g=3;function v(t,e,r,n,i,a){var o;return i<1?o=\"scale(\"+i+\") \":(i=1,o=\"\"),\"translate(\"+(r-i*t)+\" \"+(n-i*e)+\")\"+o+(a?\"rotate(\"+a+\" \"+t+\" \"+e+\") \":\"\")}e.exports=function(t,e,r,u){var m=e.xaxis,y=e.yaxis,x=t._fullLayout,b=a.makeTraceGroups(u,r,\"trace bars\").each(function(r){var c=n.select(this),u=r[0],b=u.trace;e.isRangePlot||(u.node3=c);var _=a.ensureSingle(c,\"g\",\"points\").selectAll(\"g.point\").data(a.identity);_.enter().append(\"g\").classed(\"point\",!0),_.exit().remove(),_.each(function(c,u){var _,w,k,M,A=n.select(this);if(\"h\"===b.orientation?(k=y.c2p(c.p0,!0),M=y.c2p(c.p1,!0),_=m.c2p(c.s0,!0),w=m.c2p(c.s1,!0),c.ct=[w,(k+M)/2]):(_=m.c2p(c.p0,!0),w=m.c2p(c.p1,!0),k=y.c2p(c.s0,!0),M=y.c2p(c.s1,!0),c.ct=[(_+w)/2,M]),i(_)&&i(w)&&i(k)&&i(M)&&_!==w&&k!==M){var T=(c.mlw+1||b.marker.line.width+1||(c.trace?c.trace.marker.line.width:0)+1)-1,S=n.round(T/2%1,2);if(!t._context.staticPlot){var E=s.opacity(c.mc||b.marker.color)<1||T>.01?C:function(t,e){return Math.abs(t-e)>=2?C(t):t>e?Math.ceil(t):Math.floor(t)};_=E(_,w),w=E(w,_),k=E(k,M),M=E(M,k)}a.ensureSingle(A,\"path\").style(\"vector-effect\",\"non-scaling-stroke\").attr(\"d\",\"M\"+_+\",\"+k+\"V\"+M+\"H\"+w+\"V\"+k+\"Z\").call(l.setClipUrl,e.layerClipId),function(t,e,r,n,i,s,c,u){var m;function y(e,r,n){var i=a.ensureSingle(e,\"text\").text(r).attr({class:\"bartext bartext-\"+m,transform:\"\",\"text-anchor\":\"middle\",\"data-notex\":1}).call(l.font,n).call(o.convertToTspans,t);return i}var x=r[0].trace,b=x.orientation,_=function(t,e){var r=p.getValue(t.text,e);return p.coerceString(f,r)}(x,n);if(m=function(t,e){var r=p.getValue(t.textposition,e);return p.coerceEnumerated(h,r)}(x,n),!_||\"none\"===m)return void e.select(\"text\").remove();var w,k,M,A,T,S,E=t._fullLayout.font,C=d.getBarColor(r[n],x),L=d.getInsideTextFont(x,n,E,C),z=d.getOutsideTextFont(x,n,E),O=t._fullLayout.barmode,I=\"relative\"===O,P=\"stack\"===O||I,D=r[n],R=!P||D._outmost,B=Math.abs(s-i)-2*g,F=Math.abs(u-c)-2*g;\"outside\"===m&&(R||D.hasB||(m=\"inside\"));if(\"auto\"===m)if(R){m=\"inside\",w=y(e,_,L),k=l.bBox(w.node()),M=k.width,A=k.height;var N=M>0&&A>0,j=M<=B&&A<=F,V=M<=F&&A<=B,U=\"h\"===b?B>=M*(F/A):F>=A*(B/M);N&&(j||V||U)?m=\"inside\":(m=\"outside\",w.remove(),w=null)}else m=\"inside\";if(!w&&(w=y(e,_,\"outside\"===m?z:L),k=l.bBox(w.node()),M=k.width,A=k.height,M<=0||A<=0))return void w.remove();\"outside\"===m?(S=\"both\"===x.constraintext||\"outside\"===x.constraintext,T=function(t,e,r,n,i,a,o){var s,l=\"h\"===a?Math.abs(n-r):Math.abs(e-t);l>2*g&&(s=g);var c=1;o&&(c=\"h\"===a?Math.min(1,l/i.height):Math.min(1,l/i.width));var u,f,h,p,d=(i.left+i.right)/2,m=(i.top+i.bottom)/2;u=c*i.width,f=c*i.height,\"h\"===a?e<t?(h=e-s-u/2,p=(r+n)/2):(h=e+s+u/2,p=(r+n)/2):n>r?(h=(t+e)/2,p=n+s+f/2):(h=(t+e)/2,p=n-s-f/2);return v(d,m,h,p,c,!1)}(i,s,c,u,k,b,S)):(S=\"both\"===x.constraintext||\"inside\"===x.constraintext,T=function(t,e,r,n,i,a,o){var s,l,c,u,f,h,p,d=i.width,m=i.height,y=(i.left+i.right)/2,x=(i.top+i.bottom)/2,b=Math.abs(e-t),_=Math.abs(n-r);b>2*g&&_>2*g?(b-=2*(f=g),_-=2*f):f=0;d<=b&&m<=_?(h=!1,p=1):d<=_&&m<=b?(h=!0,p=1):d<m==b<_?(h=!1,p=o?Math.min(b/d,_/m):1):(h=!0,p=o?Math.min(_/d,b/m):1);h&&(h=90);h?(s=p*m,l=p*d):(s=p*d,l=p*m);\"h\"===a?e<t?(c=e+f+s/2,u=(r+n)/2):(c=e-f-s/2,u=(r+n)/2):n>r?(c=(t+e)/2,u=n-f-l/2):(c=(t+e)/2,u=n+f+l/2);return v(y,x,c,u,p,h)}(i,s,c,u,k,b,S));w.attr(\"transform\",T)}(t,A,r,u,_,w,k,M),e.layerClipId&&l.hideOutsideRangePoint(c,A.select(\"text\"),m,y,b.xcalendar,b.ycalendar)}else A.remove();function C(t){return 0===x.bargap&&0===x.bargroupgap?n.round(Math.round(t)-S,2):t}});var w=!1===u.trace.cliponaxis;l.setClipUrl(c,w?null:e.layerClipId)});c.getComponentMethod(\"errorbars\",\"plot\")(b,e)}},{\"../../components/color\":570,\"../../components/drawing\":595,\"../../lib\":696,\"../../lib/svg_text_utils\":720,\"../../registry\":827,\"./attributes\":837,\"./helpers\":841,\"./style\":849,d3:148,\"fast-isnumeric\":214}],847:[function(t,e,r){\"use strict\";e.exports=function(t,e){var r,n=t.cd,i=t.xaxis,a=t.yaxis,o=[];if(!1===e)for(r=0;r<n.length;r++)n[r].selected=0;else for(r=0;r<n.length;r++){var s=n[r];e.contains(s.ct,!1,r,t)?(o.push({pointNumber:r,x:i.c2d(s.x),y:a.c2d(s.y)}),s.selected=1):s.selected=0}return o}},{}],848:[function(t,e,r){\"use strict\";e.exports=a;var n=t(\"../../lib\"),i=t(\"../../constants/numerical\").BADNUM;function a(t,e,r){this.traces=t,this.separateNegativeValues=e,this.dontMergeOverlappingData=r;for(var a=1/0,o=[],s=0;s<t.length;s++){for(var l=t[s],c=0;c<l.length;c++){var u=l[c];u.p!==i&&o.push(u.p)}l[0]&&l[0].width1&&(a=Math.min(l[0].width1,a))}this.positions=o;var f=n.distinctVals(o);this.distinctPositions=f.vals,1===f.vals.length&&a!==1/0?this.minDiff=a:this.minDiff=Math.min(f.minDiff,a),this.binWidth=this.minDiff,this.bins={}}a.prototype.put=function(t,e){var r=this.getLabel(t,e),n=this.bins[r]||0;return this.bins[r]=n+e,n},a.prototype.get=function(t,e){var r=this.getLabel(t,e);return this.bins[r]||0},a.prototype.getLabel=function(t,e){return(e<0&&this.separateNegativeValues?\"v\":\"^\")+(this.dontMergeOverlappingData?t:Math.round(t/this.binWidth))}},{\"../../constants/numerical\":673,\"../../lib\":696}],849:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../../components/color\"),a=t(\"../../components/drawing\"),o=t(\"../../lib\"),s=t(\"../../registry\"),l=t(\"./attributes\"),c=l.textfont,u=l.insidetextfont,f=l.outsidetextfont,h=t(\"./helpers\");function p(t,e,r){var i=t.selectAll(\"path\"),o=t.selectAll(\"text\");a.pointStyle(i,e,r),o.each(function(t){var i=n.select(this),o=d(i,t,e,r);a.font(i,o)})}function d(t,e,r,n){var i=n._fullLayout.font,a=r.textfont;if(t.classed(\"bartext-inside\")){var o=x(e,r);a=v(r,e.i,i,o)}else t.classed(\"bartext-outside\")&&(a=m(r,e.i,i));return a}function g(t,e,r){return y(c,t.textfont,e,r)}function v(t,e,r,n){var a=g(t,e,r);return(void 0===t._input.textfont||void 0===t._input.textfont.color||Array.isArray(t.textfont.color)&&void 0===t.textfont.color[e])&&(a={color:i.contrast(n),family:a.family,size:a.size}),y(u,t.insidetextfont,e,a)}function m(t,e,r){var n=g(t,e,r);return y(f,t.outsidetextfont,e,n)}function y(t,e,r,n){e=e||{};var i=h.getValue(e.family,r),a=h.getValue(e.size,r),o=h.getValue(e.color,r);return{family:h.coerceString(t.family,i,n.family),size:h.coerceNumber(t.size,a,n.size),color:h.coerceColor(t.color,o,n.color)}}function x(t,e){return t.mc||e.marker.color}e.exports={style:function(t,e){var r=e?e[0].node3:n.select(t).selectAll(\"g.trace.bars\"),i=r.size(),a=t._fullLayout;r.style(\"opacity\",function(t){return t[0].trace.opacity}).each(function(t){(\"stack\"===a.barmode&&i>1||0===a.bargap&&0===a.bargroupgap&&!t[0].trace.marker.line.width)&&n.select(this).attr(\"shape-rendering\",\"crispEdges\")}),r.selectAll(\"g.points\").each(function(e){p(n.select(this),e[0].trace,t)}),s.getComponentMethod(\"errorbars\",\"style\")(r)},styleOnSelect:function(t,e){var r=e[0].node3,i=e[0].trace;i.selectedpoints?function(t,e,r){a.selectedPointStyle(t.selectAll(\"path\"),e),function(t,e,r){t.each(function(t){var i,s=n.select(this);if(t.selected){i=o.extendFlat({},d(s,t,e,r));var l=e.selected.textfont&&e.selected.textfont.color;l&&(i.color=l),a.font(s,i)}else a.selectedTextStyle(s,e)})}(t.selectAll(\"text\"),e,r)}(r,i,t):p(r,i,t)},getInsideTextFont:v,getOutsideTextFont:m,getBarColor:x}},{\"../../components/color\":570,\"../../components/drawing\":595,\"../../lib\":696,\"../../registry\":827,\"./attributes\":837,\"./helpers\":841,d3:148}],850:[function(t,e,r){\"use strict\";var n=t(\"../../components/color\"),i=t(\"../../components/colorscale/has_colorscale\"),a=t(\"../../components/colorscale/defaults\");e.exports=function(t,e,r,o,s){r(\"marker.color\",o),i(t,\"marker\")&&a(t,e,s,r,{prefix:\"marker.\",cLetter:\"c\"}),r(\"marker.line.color\",n.defaultLine),i(t,\"marker.line\")&&a(t,e,s,r,{prefix:\"marker.line.\",cLetter:\"c\"}),r(\"marker.line.width\"),r(\"marker.opacity\"),r(\"selected.marker.color\"),r(\"unselected.marker.color\")}},{\"../../components/color\":570,\"../../components/colorscale/defaults\":580,\"../../components/colorscale/has_colorscale\":584}],851:[function(t,e,r){\"use strict\";var n=t(\"../../lib/extend\").extendFlat,i=t(\"../scatterpolar/attributes\"),a=t(\"../bar/attributes\");e.exports={r:i.r,theta:i.theta,r0:i.r0,dr:i.dr,theta0:i.theta0,dtheta:i.dtheta,thetaunit:i.thetaunit,base:n({},a.base,{}),offset:n({},a.offset,{}),width:n({},a.width,{}),text:n({},a.text,{}),marker:a.marker,hoverinfo:i.hoverinfo,selected:a.selected,unselected:a.unselected}},{\"../../lib/extend\":685,\"../bar/attributes\":837,\"../scatterpolar/attributes\":1105}],852:[function(t,e,r){\"use strict\";var n=t(\"../../components/colorscale/has_colorscale\"),i=t(\"../../components/colorscale/calc\"),a=t(\"../bar/arrays_to_calcdata\"),o=t(\"../bar/cross_trace_calc\").setGroupPositions,s=t(\"../scatter/calc_selection\"),l=t(\"../../registry\").traceIs,c=t(\"../../lib\").extendFlat;e.exports={calc:function(t,e){for(var r=t._fullLayout,o=e.subplot,l=r[o].radialaxis,c=r[o].angularaxis,u=l.makeCalcdata(e,\"r\"),f=c.makeCalcdata(e,\"theta\"),h=e._length,p=new Array(h),d=u,g=f,v=0;v<h;v++)p[v]={p:g[v],s:d[v]};function m(t){var r=e[t];void 0!==r&&(e[\"_\"+t]=Array.isArray(r)?c.makeCalcdata(e,t):c.d2c(r,e.thetaunit))}return\"linear\"===c.type&&(m(\"width\"),m(\"offset\")),n(e,\"marker\")&&i(e,e.marker.color,\"marker\",\"c\"),n(e,\"marker.line\")&&i(e,e.marker.line.color,\"marker.line\",\"c\"),a(p,e),s(p,e),p},crossTraceCalc:function(t,e,r){for(var n=t.calcdata,i=[],a=0;a<n.length;a++){var s=n[a],u=s[0].trace;!0===u.visible&&l(u,\"bar\")&&u.subplot===r&&i.push(s)}var f=c({},e.radialaxis,{_id:\"x\"}),h=e.angularaxis;o({_fullLayout:e},h,f,i)}}},{\"../../components/colorscale/calc\":578,\"../../components/colorscale/has_colorscale\":584,\"../../lib\":696,\"../../registry\":827,\"../bar/arrays_to_calcdata\":836,\"../bar/cross_trace_calc\":839,\"../scatter/calc_selection\":1045}],853:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../scatterpolar/defaults\").handleRThetaDefaults,a=t(\"../bar/style_defaults\"),o=t(\"./attributes\");e.exports=function(t,e,r,s){function l(r,i){return n.coerce(t,e,o,r,i)}i(t,e,s,l)?(l(\"thetaunit\"),l(\"base\"),l(\"offset\"),l(\"width\"),l(\"text\"),a(t,e,l,r,s),n.coerceSelectionMarkerOpacity(e,l)):e.visible=!1}},{\"../../lib\":696,\"../bar/style_defaults\":850,\"../scatterpolar/defaults\":1107,\"./attributes\":851}],854:[function(t,e,r){\"use strict\";var n=t(\"../../components/fx\"),i=t(\"../../lib\"),a=t(\"../bar/hover\").getTraceColor,o=t(\"../scatter/fill_hover_text\"),s=t(\"../scatterpolar/hover\").makeHoverPointText,l=t(\"../../plots/polar/helpers\").isPtInsidePolygon;e.exports=function(t,e,r){var c=t.cd,u=c[0].trace,f=t.subplot,h=f.radialAxis,p=f.angularAxis,d=f.vangles,g=d?l:i.isPtInsideSector,v=t.maxHoverDistance,m=p._period||2*Math.PI,y=Math.abs(h.g2p(Math.sqrt(e*e+r*r))),x=Math.atan2(r,e);h.range[0]>h.range[1]&&(x+=Math.PI);if(n.getClosest(c,function(t){return g(y,x,[t.rp0,t.rp1],[t.thetag0,t.thetag1],d)?v+Math.min(1,Math.abs(t.thetag1-t.thetag0)/m)-1+(t.rp1-y)/(t.rp1-t.rp0)-1:1/0},t),!1!==t.index){var b=c[t.index];t.x0=t.x1=b.ct[0],t.y0=t.y1=b.ct[1];var _=i.extendFlat({},b,{r:b.s,theta:b.p});return o(b,u,t),s(_,u,f,t),t.color=a(u,b),t.xLabelVal=t.yLabelVal=void 0,b.s<0&&(t.idealAlign=\"left\"),[t]}}},{\"../../components/fx\":612,\"../../lib\":696,\"../../plots/polar/helpers\":810,\"../bar/hover\":842,\"../scatter/fill_hover_text\":1051,\"../scatterpolar/hover\":1108}],855:[function(t,e,r){\"use strict\";e.exports={moduleType:\"trace\",name:\"barpolar\",basePlotModule:t(\"../../plots/polar\"),categories:[\"polar\",\"bar\",\"showLegend\"],attributes:t(\"./attributes\"),layoutAttributes:t(\"./layout_attributes\"),supplyDefaults:t(\"./defaults\"),supplyLayoutDefaults:t(\"./layout_defaults\"),calc:t(\"./calc\").calc,crossTraceCalc:t(\"./calc\").crossTraceCalc,plot:t(\"./plot\"),colorbar:t(\"../scatter/marker_colorbar\"),style:t(\"../bar/style\").style,hoverPoints:t(\"./hover\"),selectPoints:t(\"../bar/select\"),meta:{}}},{\"../../plots/polar\":811,\"../bar/select\":847,\"../bar/style\":849,\"../scatter/marker_colorbar\":1061,\"./attributes\":851,\"./calc\":852,\"./defaults\":853,\"./hover\":854,\"./layout_attributes\":856,\"./layout_defaults\":857,\"./plot\":858}],856:[function(t,e,r){\"use strict\";e.exports={barmode:{valType:\"enumerated\",values:[\"stack\",\"overlay\"],dflt:\"stack\",editType:\"calc\"},bargap:{valType:\"number\",dflt:.1,min:0,max:1,editType:\"calc\"}}},{}],857:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"./layout_attributes\");e.exports=function(t,e,r){var a,o={};function s(r,o){return n.coerce(t[a]||{},e[a],i,r,o)}for(var l=0;l<r.length;l++){var c=r[l];\"barpolar\"===c.type&&!0===c.visible&&(o[a=c.subplot]||(s(\"barmode\"),s(\"bargap\"),o[a]=1))}}},{\"../../lib\":696,\"./layout_attributes\":856}],858:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"fast-isnumeric\"),a=t(\"../../lib\"),o=t(\"../../components/drawing\"),s=t(\"../../plots/polar/helpers\");e.exports=function(t,e,r){var l=e.xaxis,c=e.yaxis,u=e.radialAxis,f=e.angularAxis,h=function(t){var e=t.cxx,r=t.cyy;if(t.vangles)return function(n,i,o,l){var c,u;a.angleDelta(o,l)>0?(c=o,u=l):(c=l,u=o);var f=s.findEnclosingVertexAngles(c,t.vangles)[0],h=s.findEnclosingVertexAngles(u,t.vangles)[1],p=[f,(c+u)/2,h];return s.pathPolygonAnnulus(n,i,c,u,p,e,r)};return function(t,n,i,o){return a.pathAnnulus(t,n,i,o,e,r)}}(e),p=e.layers.frontplot.select(\"g.barlayer\");a.makeTraceGroups(p,r,\"trace bars\").each(function(t){var r=t[0].node3=n.select(this),s=a.ensureSingle(r,\"g\",\"points\").selectAll(\"g.point\").data(a.identity);s.enter().append(\"g\").style(\"vector-effect\",\"non-scaling-stroke\").style(\"stroke-miterlimit\",2).classed(\"point\",!0),s.exit().remove(),s.each(function(t){var e,r=n.select(this),o=t.rp0=u.c2p(t.s0),s=t.rp1=u.c2p(t.s1),p=t.thetag0=f.c2g(t.p0),d=t.thetag1=f.c2g(t.p1);if(i(o)&&i(s)&&i(p)&&i(d)&&o!==s&&p!==d){var g=u.c2g(t.s1),v=(p+d)/2;t.ct=[l.c2p(g*Math.cos(v)),c.c2p(g*Math.sin(v))],e=h(o,s,p,d)}else e=\"M0,0Z\";a.ensureSingle(r,\"path\").attr(\"d\",e)}),o.setClipUrl(r,e._hasClipOnAxisFalse?e.clipIds.forTraces:null)})}},{\"../../components/drawing\":595,\"../../lib\":696,\"../../plots/polar/helpers\":810,d3:148,\"fast-isnumeric\":214}],859:[function(t,e,r){\"use strict\";var n=t(\"../scatter/attributes\"),i=t(\"../../components/color/attributes\"),a=t(\"../../lib/extend\").extendFlat,o=n.marker,s=o.line;e.exports={y:{valType:\"data_array\",editType:\"calc+clearAxisTypes\"},x:{valType:\"data_array\",editType:\"calc+clearAxisTypes\"},x0:{valType:\"any\",editType:\"calc+clearAxisTypes\"},y0:{valType:\"any\",editType:\"calc+clearAxisTypes\"},name:{valType:\"string\",editType:\"calc+clearAxisTypes\"},text:a({},n.text,{}),whiskerwidth:{valType:\"number\",min:0,max:1,dflt:.5,editType:\"calc\"},notched:{valType:\"boolean\",editType:\"calc\"},notchwidth:{valType:\"number\",min:0,max:.5,dflt:.25,editType:\"calc\"},boxpoints:{valType:\"enumerated\",values:[\"all\",\"outliers\",\"suspectedoutliers\",!1],dflt:\"outliers\",editType:\"calc\"},boxmean:{valType:\"enumerated\",values:[!0,\"sd\",!1],dflt:!1,editType:\"calc\"},jitter:{valType:\"number\",min:0,max:1,editType:\"calc\"},pointpos:{valType:\"number\",min:-2,max:2,editType:\"calc\"},orientation:{valType:\"enumerated\",values:[\"v\",\"h\"],editType:\"calc+clearAxisTypes\"},marker:{outliercolor:{valType:\"color\",dflt:\"rgba(0, 0, 0, 0)\",editType:\"style\"},symbol:a({},o.symbol,{arrayOk:!1,editType:\"plot\"}),opacity:a({},o.opacity,{arrayOk:!1,dflt:1,editType:\"style\"}),size:a({},o.size,{arrayOk:!1,editType:\"calc\"}),color:a({},o.color,{arrayOk:!1,editType:\"style\"}),line:{color:a({},s.color,{arrayOk:!1,dflt:i.defaultLine,editType:\"style\"}),width:a({},s.width,{arrayOk:!1,dflt:0,editType:\"style\"}),outliercolor:{valType:\"color\",editType:\"style\"},outlierwidth:{valType:\"number\",min:0,dflt:1,editType:\"style\"},editType:\"style\"},editType:\"plot\"},line:{color:{valType:\"color\",editType:\"style\"},width:{valType:\"number\",min:0,dflt:2,editType:\"style\"},editType:\"plot\"},fillcolor:n.fillcolor,selected:{marker:n.selected.marker,editType:\"style\"},unselected:{marker:n.unselected.marker,editType:\"style\"},hoveron:{valType:\"flaglist\",flags:[\"boxes\",\"points\"],dflt:\"boxes+points\",editType:\"style\"}}},{\"../../components/color/attributes\":569,\"../../lib/extend\":685,\"../scatter/attributes\":1043}],860:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../../lib\"),a=i._,o=t(\"../../plots/cartesian/axes\");function s(t,e,r){var n={text:\"tx\"};for(var i in n)Array.isArray(e[i])&&(t[n[i]]=e[i][r])}function l(t,e){return t.v-e.v}function c(t){return t.v}e.exports=function(t,e){var r,u,f,h,p,d=t._fullLayout,g=o.getFromId(t,e.xaxis||\"x\"),v=o.getFromId(t,e.yaxis||\"y\"),m=[],y=\"violin\"===e.type?\"_numViolins\":\"_numBoxes\";\"h\"===e.orientation?(u=g,f=\"x\",h=v,p=\"y\"):(u=v,f=\"y\",h=g,p=\"x\");var x=u.makeCalcdata(e,f),b=function(t,e,r,a,o){if(e in t)return r.makeCalcdata(t,e);var s;s=e+\"0\"in t?t[e+\"0\"]:\"name\"in t&&(\"category\"===r.type||n(t.name)&&-1!==[\"linear\",\"log\"].indexOf(r.type)||i.isDateTime(t.name)&&\"date\"===r.type)?t.name:o;var l=r.d2c(s,0,t[e+\"calendar\"]);return a.map(function(){return l})}(e,p,h,x,d[y]),_=i.distinctVals(b),w=_.vals,k=_.minDiff/2,M=function(t,e){for(var r=t.length,n=new Array(r+1),i=0;i<r;i++)n[i]=t[i]-e;return n[r]=t[r-1]+e,n}(w,k),A=w.length,T=function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=[];return e}(A);for(r=0;r<e._length;r++){var S=x[r];if(n(S)){var E=i.findBin(b[r],M);if(E>=0&&E<A){var C={v:S,i:r};s(C,e,r),T[E].push(C)}}}for(r=0;r<A;r++)if(T[r].length>0){var L=T[r].sort(l),z=L.map(c),O=z.length,I={pos:w[r],pts:L};I.min=z[0],I.max=z[O-1],I.mean=i.mean(z,O),I.sd=i.stdev(z,O,I.mean),I.q1=i.interp(z,.25),I.med=i.interp(z,.5),I.q3=i.interp(z,.75),I.lf=Math.min(I.q1,z[Math.min(i.findBin(2.5*I.q1-1.5*I.q3,z,!0)+1,O-1)]),I.uf=Math.max(I.q3,z[Math.max(i.findBin(2.5*I.q3-1.5*I.q1,z),0)]),I.lo=4*I.q1-3*I.q3,I.uo=4*I.q3-3*I.q1;var P=1.57*(I.q3-I.q1)/Math.sqrt(O);I.ln=I.med-P,I.un=I.med+P,m.push(I)}!function(t,e){if(i.isArrayOrTypedArray(e.selectedpoints))for(var r=0;r<t.length;r++){for(var n=t[r].pts||[],a={},o=0;o<n.length;o++)a[n[o].i]=o;i.tagSelected(n,e,a)}}(m,e);var D=o.findExtremes(u,x,{padded:!0});return e._extremes[u._id]=D,m.length>0?(m[0].t={num:d[y],dPos:k,posLetter:p,valLetter:f,labels:{med:a(t,\"median:\"),min:a(t,\"min:\"),q1:a(t,\"q1:\"),q3:a(t,\"q3:\"),max:a(t,\"max:\"),mean:\"sd\"===e.boxmean?a(t,\"mean \\xb1 \\u03c3:\"):a(t,\"mean:\"),lf:a(t,\"lower fence:\"),uf:a(t,\"upper fence:\")}},d[y]++,m):[{t:{empty:!0}}]}},{\"../../lib\":696,\"../../plots/cartesian/axes\":744,\"fast-isnumeric\":214}],861:[function(t,e,r){\"use strict\";var n=t(\"../../plots/cartesian/axes\"),i=t(\"../../lib\"),a=[\"v\",\"h\"];function o(t,e,r,a,o){var s,l,c,u=e.calcdata,f=e._fullLayout,h=[],p=\"violin\"===t?\"_numViolins\":\"_numBoxes\";for(s=0;s<r.length;s++)for(c=u[r[s]],l=0;l<c.length;l++)h.push(c[l].pos);if(h.length){var d=i.distinctVals(h),g=d.minDiff/2;h.length===d.vals.length&&(f[p]=1),n.minDtick(a,d.minDiff,d.vals[0],!0);var v=(1-f[t+\"gap\"])*(1-f[t+\"groupgap\"])*g/f[p],m=n.findExtremes(a,d.vals,{vpadminus:g+o[0]*v,vpadplus:g+o[1]*v});for(s=0;s<r.length;s++)(c=u[r[s]])[0].t.dPos=g,c[0].trace._extremes[a._id]=m}}e.exports={crossTraceCalc:function(t,e){for(var r=t.calcdata,n=e.xaxis,i=e.yaxis,s=0;s<a.length;s++){for(var l=a[s],c=\"h\"===l?i:n,u=[],f=0,h=0,p=0;p<r.length;p++){var d=r[p],g=d[0].t,v=d[0].trace;!0!==v.visible||\"box\"!==v.type&&\"candlestick\"!==v.type||g.empty||(v.orientation||\"v\")!==l||v.xaxis!==n._id||v.yaxis!==i._id||(u.push(p),v.boxpoints&&(f=Math.max(f,v.jitter-v.pointpos-1),h=Math.max(h,v.jitter+v.pointpos-1)))}o(\"box\",t,u,c,[f,h])}},setPositionOffset:o}},{\"../../lib\":696,\"../../plots/cartesian/axes\":744}],862:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../registry\"),a=t(\"../../components/color\"),o=t(\"./attributes\");function s(t,e,r,n){var a,o,s=r(\"y\"),l=r(\"x\"),c=l&&l.length;if(s&&s.length)a=\"v\",c?o=Math.min(l.length,s.length):(r(\"x0\"),o=s.length);else{if(!c)return void(e.visible=!1);a=\"h\",r(\"y0\"),o=l.length}e._length=o,i.getComponentMethod(\"calendars\",\"handleTraceDefaults\")(t,e,[\"x\",\"y\"],n),r(\"orientation\",a)}function l(t,e,r,i){var a=i.prefix,s=n.coerce2(t,e,o,\"marker.outliercolor\"),l=r(\"marker.line.outliercolor\"),c=r(a+\"points\",s||l?\"suspectedoutliers\":void 0);c?(r(\"jitter\",\"all\"===c?.3:0),r(\"pointpos\",\"all\"===c?-1.5:0),r(\"marker.symbol\"),r(\"marker.opacity\"),r(\"marker.size\"),r(\"marker.color\",e.line.color),r(\"marker.line.color\"),r(\"marker.line.width\"),\"suspectedoutliers\"===c&&(r(\"marker.line.outliercolor\",e.marker.color),r(\"marker.line.outlierwidth\")),r(\"selected.marker.color\"),r(\"unselected.marker.color\"),r(\"selected.marker.size\"),r(\"unselected.marker.size\"),r(\"text\")):delete e.marker,r(\"hoveron\"),n.coerceSelectionMarkerOpacity(e,r)}e.exports={supplyDefaults:function(t,e,r,i){function c(r,i){return n.coerce(t,e,o,r,i)}s(t,e,c,i),!1!==e.visible&&(c(\"line.color\",(t.marker||{}).color||r),c(\"line.width\"),c(\"fillcolor\",a.addOpacity(e.line.color,.5)),c(\"whiskerwidth\"),c(\"boxmean\"),c(\"notched\",void 0!==t.notchwidth)&&c(\"notchwidth\"),l(t,e,c,{prefix:\"box\"}))},handleSampleDefaults:s,handlePointsDefaults:l}},{\"../../components/color\":570,\"../../lib\":696,\"../../registry\":827,\"./attributes\":859}],863:[function(t,e,r){\"use strict\";e.exports=function(t,e){return e.hoverOnBox&&(t.hoverOnBox=e.hoverOnBox),\"xVal\"in e&&(t.x=e.xVal),\"yVal\"in e&&(t.y=e.yVal),e.xa&&(t.xaxis=e.xa),e.ya&&(t.yaxis=e.ya),t}},{}],864:[function(t,e,r){\"use strict\";var n=t(\"../../plots/cartesian/axes\"),i=t(\"../../lib\"),a=t(\"../../components/fx\"),o=t(\"../../components/color\"),s=t(\"../scatter/fill_hover_text\");function l(t,e,r,s){var l,c,u,f,h,p,d,g,v,m,y,x,b=t.cd,_=t.xa,w=t.ya,k=b[0].trace,M=b[0].t,A=\"violin\"===k.type,T=[],S=M.bdPos,E=M.wHover,C=function(t){return t.pos+M.bPos-p};A&&\"both\"!==k.side?(\"positive\"===k.side&&(v=function(t){var e=C(t);return a.inbox(e,e+E,m)}),\"negative\"===k.side&&(v=function(t){var e=C(t);return a.inbox(e-E,e,m)})):v=function(t){var e=C(t);return a.inbox(e-E,e+E,m)},x=A?function(t){return a.inbox(t.span[0]-h,t.span[1]-h,m)}:function(t){return a.inbox(t.min-h,t.max-h,m)},\"h\"===k.orientation?(h=e,p=r,d=x,g=v,l=\"y\",u=w,c=\"x\",f=_):(h=r,p=e,d=v,g=x,l=\"x\",u=_,c=\"y\",f=w);var L=Math.min(1,S/Math.abs(u.r2c(u.range[1])-u.r2c(u.range[0])));function z(t){return(d(t)+g(t))/2}m=t.maxHoverDistance-L,y=t.maxSpikeDistance-L;var O=a.getDistanceFunction(s,d,g,z);if(a.getClosest(b,O,t),!1===t.index)return[];var I=b[t.index],P=k.line.color,D=(k.marker||{}).color;o.opacity(P)&&k.line.width?t.color=P:o.opacity(D)&&k.boxpoints?t.color=D:t.color=k.fillcolor,t[l+\"0\"]=u.c2p(I.pos+M.bPos-S,!0),t[l+\"1\"]=u.c2p(I.pos+M.bPos+S,!0),t[l+\"LabelVal\"]=I.pos;var R=l+\"Spike\";t.spikeDistance=z(I)*y/m,t[R]=u.c2p(I.pos,!0);var B={},F=[\"med\",\"min\",\"q1\",\"q3\",\"max\"];(k.boxmean||(k.meanline||{}).visible)&&F.push(\"mean\"),(k.boxpoints||k.points)&&F.push(\"lf\",\"uf\");for(var N=0;N<F.length;N++){var j=F[N];if(j in I&&!(I[j]in B)){B[I[j]]=!0;var V=I[j],U=f.c2p(V,!0),q=i.extendFlat({},t);q[c+\"0\"]=q[c+\"1\"]=U,q[c+\"LabelVal\"]=V,q[c+\"Label\"]=(M.labels?M.labels[j]+\" \":\"\")+n.hoverLabelText(f,V),q.hoverOnBox=!0,\"mean\"===j&&\"sd\"in I&&\"sd\"===k.boxmean&&(q[c+\"err\"]=I.sd),t.name=\"\",t.spikeDistance=void 0,t[R]=void 0,T.push(q)}}return T}function c(t,e,r){for(var n,o,l,c=t.cd,u=t.xa,f=t.ya,h=c[0].trace,p=u.c2p(e),d=f.c2p(r),g=a.quadrature(function(t){var e=Math.max(3,t.mrc||0);return Math.max(Math.abs(u.c2p(t.x)-p)-e,1-3/e)},function(t){var e=Math.max(3,t.mrc||0);return Math.max(Math.abs(f.c2p(t.y)-d)-e,1-3/e)}),v=!1,m=0;m<c.length;m++){o=c[m];for(var y=0;y<(o.pts||[]).length;y++){var x=g(l=o.pts[y]);x<=t.distance&&(t.distance=x,v=[m,y])}}if(!v)return!1;l=(o=c[v[0]]).pts[v[1]];var b=u.c2p(l.x,!0),_=f.c2p(l.y,!0),w=l.mrc||1;n=i.extendFlat({},t,{index:l.i,color:(h.marker||{}).color,name:h.name,x0:b-w,x1:b+w,xLabelVal:l.x,y0:_-w,y1:_+w,yLabelVal:l.y,spikeDistance:t.distance});var k=\"h\"===h.orientation?\"y\":\"x\",M=\"h\"===h.orientation?f:u;return n[k+\"Spike\"]=M.c2p(o.pos,!0),s(l,h,n),n}e.exports={hoverPoints:function(t,e,r,n){var i,a=t.cd[0].trace.hoveron,o=[];return-1!==a.indexOf(\"boxes\")&&(o=o.concat(l(t,e,r,n))),-1!==a.indexOf(\"points\")&&(i=c(t,e,r)),\"closest\"===n?i?[i]:o:i?(o.push(i),o):o},hoverOnBoxes:l,hoverOnPoints:c}},{\"../../components/color\":570,\"../../components/fx\":612,\"../../lib\":696,\"../../plots/cartesian/axes\":744,\"../scatter/fill_hover_text\":1051}],865:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.layoutAttributes=t(\"./layout_attributes\"),n.supplyDefaults=t(\"./defaults\").supplyDefaults,n.supplyLayoutDefaults=t(\"./layout_defaults\").supplyLayoutDefaults,n.calc=t(\"./calc\"),n.crossTraceCalc=t(\"./cross_trace_calc\").crossTraceCalc,n.plot=t(\"./plot\").plot,n.style=t(\"./style\").style,n.styleOnSelect=t(\"./style\").styleOnSelect,n.hoverPoints=t(\"./hover\").hoverPoints,n.eventData=t(\"./event_data\"),n.selectPoints=t(\"./select\"),n.moduleType=\"trace\",n.name=\"box\",n.basePlotModule=t(\"../../plots/cartesian\"),n.categories=[\"cartesian\",\"svg\",\"symbols\",\"oriented\",\"box-violin\",\"showLegend\",\"boxLayout\",\"zoomScale\"],n.meta={},e.exports=n},{\"../../plots/cartesian\":756,\"./attributes\":859,\"./calc\":860,\"./cross_trace_calc\":861,\"./defaults\":862,\"./event_data\":863,\"./hover\":864,\"./layout_attributes\":866,\"./layout_defaults\":867,\"./plot\":868,\"./select\":869,\"./style\":870}],866:[function(t,e,r){\"use strict\";e.exports={boxmode:{valType:\"enumerated\",values:[\"group\",\"overlay\"],dflt:\"overlay\",editType:\"calc\"},boxgap:{valType:\"number\",min:0,max:1,dflt:.3,editType:\"calc\"},boxgroupgap:{valType:\"number\",min:0,max:1,dflt:.3,editType:\"calc\"}}},{}],867:[function(t,e,r){\"use strict\";var n=t(\"../../registry\"),i=t(\"../../lib\"),a=t(\"./layout_attributes\");function o(t,e,r,i,a){for(var o,s=a+\"Layout\",l=0;l<r.length;l++)if(n.traceIs(r[l],s)){o=!0;break}o&&(i(a+\"mode\"),i(a+\"gap\"),i(a+\"groupgap\"))}e.exports={supplyLayoutDefaults:function(t,e,r){o(0,0,r,function(r,n){return i.coerce(t,e,a,r,n)},\"box\")},_supply:o}},{\"../../lib\":696,\"../../registry\":827,\"./layout_attributes\":866}],868:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../../lib\"),a=t(\"../../components/drawing\"),o=5,s=.01;function l(t,e,r,a){var o,s,l=e.pos,c=e.val,u=a.bPos,f=a.wdPos||0,h=a.bPosPxOffset||0,p=r.whiskerwidth||0,d=r.notched||!1,g=d?1-2*r.notchwidth:1;Array.isArray(a.bdPos)?(o=a.bdPos[0],s=a.bdPos[1]):(o=a.bdPos,s=a.bdPos);var v=t.selectAll(\"path.box\").data(\"violin\"!==r.type||r.box.visible?i.identity:[]);v.enter().append(\"path\").style(\"vector-effect\",\"non-scaling-stroke\").attr(\"class\",\"box\"),v.exit().remove(),v.each(function(t){var e=t.pos,a=l.c2p(e+u,!0)+h,v=l.c2p(e+u-o,!0)+h,m=l.c2p(e+u+s,!0)+h,y=l.c2p(e+u-f,!0)+h,x=l.c2p(e+u+f,!0)+h,b=l.c2p(e+u-o*g,!0)+h,_=l.c2p(e+u+s*g,!0)+h,w=c.c2p(t.q1,!0),k=c.c2p(t.q3,!0),M=i.constrain(c.c2p(t.med,!0),Math.min(w,k)+1,Math.max(w,k)-1),A=void 0===t.lf||!1===r.boxpoints,T=c.c2p(A?t.min:t.lf,!0),S=c.c2p(A?t.max:t.uf,!0),E=c.c2p(t.ln,!0),C=c.c2p(t.un,!0);\"h\"===r.orientation?n.select(this).attr(\"d\",\"M\"+M+\",\"+b+\"V\"+_+\"M\"+w+\",\"+v+\"V\"+m+(d?\"H\"+E+\"L\"+M+\",\"+_+\"L\"+C+\",\"+m:\"\")+\"H\"+k+\"V\"+v+(d?\"H\"+C+\"L\"+M+\",\"+b+\"L\"+E+\",\"+v:\"\")+\"ZM\"+w+\",\"+a+\"H\"+T+\"M\"+k+\",\"+a+\"H\"+S+(0===p?\"\":\"M\"+T+\",\"+y+\"V\"+x+\"M\"+S+\",\"+y+\"V\"+x)):n.select(this).attr(\"d\",\"M\"+b+\",\"+M+\"H\"+_+\"M\"+v+\",\"+w+\"H\"+m+(d?\"V\"+E+\"L\"+_+\",\"+M+\"L\"+m+\",\"+C:\"\")+\"V\"+k+\"H\"+v+(d?\"V\"+C+\"L\"+b+\",\"+M+\"L\"+v+\",\"+E:\"\")+\"ZM\"+a+\",\"+w+\"V\"+T+\"M\"+a+\",\"+k+\"V\"+S+(0===p?\"\":\"M\"+y+\",\"+T+\"H\"+x+\"M\"+y+\",\"+S+\"H\"+x))})}function c(t,e,r,n){var l=e.x,c=e.y,u=n.bdPos,f=n.bPos,h=r.boxpoints||r.points;i.seedPseudoRandom();var p=t.selectAll(\"g.points\").data(h?function(t){return t.forEach(function(t){t.t=n,t.trace=r}),t}:[]);p.enter().append(\"g\").attr(\"class\",\"points\"),p.exit().remove();var d=p.selectAll(\"path\").data(function(t){var e,n,a=\"all\"===h?t.pts:t.pts.filter(function(e){return e.v<t.lf||e.v>t.uf}),l=Math.max((t.max-t.min)/10,t.q3-t.q1),c=1e-9*l,p=l*s,d=[],g=0;if(r.jitter){if(0===l)for(g=1,d=new Array(a.length),e=0;e<a.length;e++)d[e]=1;else for(e=0;e<a.length;e++){var v=Math.max(0,e-o),m=a[v].v,y=Math.min(a.length-1,e+o),x=a[y].v;\"all\"!==h&&(a[e].v<t.lf?x=Math.min(x,t.lf):m=Math.max(m,t.uf));var b=Math.sqrt(p*(y-v)/(x-m+c))||0;b=i.constrain(Math.abs(b),0,1),d.push(b),g=Math.max(b,g)}n=2*r.jitter/(g||1)}for(e=0;e<a.length;e++){var _=a[e],w=_.v,k=r.jitter?n*d[e]*(i.pseudoRandom()-.5):0,M=t.pos+f+u*(r.pointpos+k);\"h\"===r.orientation?(_.y=M,_.x=w):(_.x=M,_.y=w),\"suspectedoutliers\"===h&&w<t.uo&&w>t.lo&&(_.so=!0)}return a});d.enter().append(\"path\").classed(\"point\",!0),d.exit().remove(),d.call(a.translatePoints,l,c)}function u(t,e,r,a){var o,s,l=e.pos,c=e.val,u=a.bPos,f=a.bPosPxOffset||0,h=r.boxmean||(r.meanline||{}).visible;Array.isArray(a.bdPos)?(o=a.bdPos[0],s=a.bdPos[1]):(o=a.bdPos,s=a.bdPos);var p=t.selectAll(\"path.mean\").data(\"box\"===r.type&&r.boxmean||\"violin\"===r.type&&r.box.visible&&r.meanline.visible?i.identity:[]);p.enter().append(\"path\").attr(\"class\",\"mean\").style({fill:\"none\",\"vector-effect\":\"non-scaling-stroke\"}),p.exit().remove(),p.each(function(t){var e=l.c2p(t.pos+u,!0)+f,i=l.c2p(t.pos+u-o,!0)+f,a=l.c2p(t.pos+u+s,!0)+f,p=c.c2p(t.mean,!0),d=c.c2p(t.mean-t.sd,!0),g=c.c2p(t.mean+t.sd,!0);\"h\"===r.orientation?n.select(this).attr(\"d\",\"M\"+p+\",\"+i+\"V\"+a+(\"sd\"===h?\"m0,0L\"+d+\",\"+e+\"L\"+p+\",\"+i+\"L\"+g+\",\"+e+\"Z\":\"\")):n.select(this).attr(\"d\",\"M\"+i+\",\"+p+\"H\"+a+(\"sd\"===h?\"m0,0L\"+e+\",\"+d+\"L\"+i+\",\"+p+\"L\"+e+\",\"+g+\"Z\":\"\"))})}e.exports={plot:function(t,e,r,a){var o=t._fullLayout,s=e.xaxis,f=e.yaxis,h=o._numBoxes,p=1-o.boxgap,d=\"group\"===o.boxmode&&h>1;i.makeTraceGroups(a,r,\"trace boxes\").each(function(t){var r=n.select(this),i=t[0],a=i.t,g=i.trace;e.isRangePlot||(i.node3=r);var v,m,y=a.dPos*p*(1-o.boxgroupgap)/(d?h:1),x=d?2*a.dPos*((a.num+.5)/h-.5)*p:0,b=y*g.whiskerwidth;!0!==g.visible||a.empty?r.remove():(\"h\"===g.orientation?(v=f,m=s):(v=s,m=f),a.bPos=x,a.bdPos=y,a.wdPos=b,a.wHover=a.dPos*(d?p/h:1),l(r,{pos:v,val:m},g,a),c(r,{x:s,y:f},g,a),u(r,{pos:v,val:m},g,a))})},plotBoxAndWhiskers:l,plotPoints:c,plotBoxMean:u}},{\"../../components/drawing\":595,\"../../lib\":696,d3:148}],869:[function(t,e,r){\"use strict\";e.exports=function(t,e){var r,n,i=t.cd,a=t.xaxis,o=t.yaxis,s=[];if(!1===e)for(r=0;r<i.length;r++)for(n=0;n<(i[r].pts||[]).length;n++)i[r].pts[n].selected=0;else for(r=0;r<i.length;r++)for(n=0;n<(i[r].pts||[]).length;n++){var l=i[r].pts[n],c=a.c2p(l.x),u=o.c2p(l.y);e.contains([c,u],null,l.i,t)?(s.push({pointNumber:l.i,x:a.c2d(l.x),y:o.c2d(l.y)}),l.selected=1):l.selected=0}return s}},{}],870:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../../components/color\"),a=t(\"../../components/drawing\");e.exports={style:function(t,e){var r=e?e[0].node3:n.select(t).selectAll(\"g.trace.boxes\");r.style(\"opacity\",function(t){return t[0].trace.opacity}),r.each(function(e){var r=n.select(this),o=e[0].trace,s=o.line.width;function l(t,e,r,n){t.style(\"stroke-width\",e+\"px\").call(i.stroke,r).call(i.fill,n)}var c=r.selectAll(\"path.box\");if(\"candlestick\"===o.type)c.each(function(t){var e=n.select(this),r=o[t.dir];l(e,r.line.width,r.line.color,r.fillcolor),e.style(\"opacity\",o.selectedpoints&&!t.selected?.3:1)});else{l(c,s,o.line.color,o.fillcolor),r.selectAll(\"path.mean\").style({\"stroke-width\":s,\"stroke-dasharray\":2*s+\"px,\"+s+\"px\"}).call(i.stroke,o.line.color);var u=r.selectAll(\"path.point\");a.pointStyle(u,o,t)}})},styleOnSelect:function(t,e){var r=e[0].node3,n=e[0].trace,i=r.selectAll(\"path.point\");n.selectedpoints?a.selectedPointStyle(i,n):a.pointStyle(i,n,t)}}},{\"../../components/color\":570,\"../../components/drawing\":595,d3:148}],871:[function(t,e,r){\"use strict\";var n=t(\"../../lib\").extendFlat,i=t(\"../ohlc/attributes\"),a=t(\"../box/attributes\");function o(t){return{line:{color:n({},a.line.color,{dflt:t}),width:a.line.width,editType:\"style\"},fillcolor:a.fillcolor,editType:\"style\"}}e.exports={x:i.x,open:i.open,high:i.high,low:i.low,close:i.close,line:{width:n({},a.line.width,{}),editType:\"style\"},increasing:o(i.increasing.line.color.dflt),decreasing:o(i.decreasing.line.color.dflt),text:i.text,whiskerwidth:n({},a.whiskerwidth,{dflt:0}),hoverlabel:i.hoverlabel}},{\"../../lib\":696,\"../box/attributes\":859,\"../ohlc/attributes\":991}],872:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../plots/cartesian/axes\"),a=t(\"../ohlc/calc\").calcCommon;function o(t,e,r,n){return{min:r,q1:Math.min(t,n),med:n,q3:Math.max(t,n),max:e}}e.exports=function(t,e){var r=t._fullLayout,s=i.getFromId(t,e.xaxis),l=i.getFromId(t,e.yaxis),c=s.makeCalcdata(e,\"x\"),u=a(t,e,c,l,o);return u.length?(n.extendFlat(u[0].t,{num:r._numBoxes,dPos:n.distinctVals(c).minDiff/2,posLetter:\"x\",valLetter:\"y\"}),r._numBoxes++,u):[{t:{empty:!0}}]}},{\"../../lib\":696,\"../../plots/cartesian/axes\":744,\"../ohlc/calc\":992}],873:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../components/color\"),a=t(\"../ohlc/ohlc_defaults\"),o=t(\"./attributes\");function s(t,e,r,n){var a=r(n+\".line.color\");r(n+\".line.width\",e.line.width),r(n+\".fillcolor\",i.addOpacity(a,.5))}e.exports=function(t,e,r,i){function l(r,i){return n.coerce(t,e,o,r,i)}a(t,e,l,i)?(l(\"line.width\"),s(t,e,l,\"increasing\"),s(t,e,l,\"decreasing\"),l(\"text\"),l(\"whiskerwidth\"),i._requestRangeslider[e.xaxis]=!0):e.visible=!1}},{\"../../components/color\":570,\"../../lib\":696,\"../ohlc/ohlc_defaults\":996,\"./attributes\":871}],874:[function(t,e,r){\"use strict\";e.exports={moduleType:\"trace\",name:\"candlestick\",basePlotModule:t(\"../../plots/cartesian\"),categories:[\"cartesian\",\"svg\",\"showLegend\",\"candlestick\",\"boxLayout\"],meta:{},attributes:t(\"./attributes\"),layoutAttributes:t(\"../box/layout_attributes\"),supplyLayoutDefaults:t(\"../box/layout_defaults\").supplyLayoutDefaults,crossTraceCalc:t(\"../box/cross_trace_calc\").crossTraceCalc,supplyDefaults:t(\"./defaults\"),calc:t(\"./calc\"),plot:t(\"../box/plot\").plot,layerName:\"boxlayer\",style:t(\"../box/style\").style,hoverPoints:t(\"../ohlc/hover\").hoverPoints,selectPoints:t(\"../ohlc/select\")}},{\"../../plots/cartesian\":756,\"../box/cross_trace_calc\":861,\"../box/layout_attributes\":866,\"../box/layout_defaults\":867,\"../box/plot\":868,\"../box/style\":870,\"../ohlc/hover\":994,\"../ohlc/select\":998,\"./attributes\":871,\"./calc\":872,\"./defaults\":873}],875:[function(t,e,r){\"use strict\";var n=t(\"./axis_defaults\"),i=t(\"../../plot_api/plot_template\");e.exports=function(t,e,r,a,o){a(\"a\")||(a(\"da\"),a(\"a0\")),a(\"b\")||(a(\"db\"),a(\"b0\")),function(t,e,r,a){[\"aaxis\",\"baxis\"].forEach(function(o){var s=o.charAt(0),l=t[o]||{},c=i.newContainer(e,o),u={tickfont:\"x\",id:s+\"axis\",letter:s,font:e.font,name:o,data:t[s],calendar:e.calendar,dfltColor:a,bgColor:r.paper_bgcolor,fullLayout:r};n(l,c,u),c._categories=c._categories||[],t[o]||\"-\"===l.type||(t[o]={type:l.type})})}(t,e,r,o)}},{\"../../plot_api/plot_template\":734,\"./axis_defaults\":880}],876:[function(t,e,r){\"use strict\";var n=t(\"../../lib\").isArrayOrTypedArray;e.exports=function(t){return function t(e,r){if(!n(e)||r>=10)return null;var i=1/0;var a=-1/0;var o=e.length;for(var s=0;s<o;s++){var l=e[s];if(n(l)){var c=t(l,r+1);c&&(i=Math.min(c[0],i),a=Math.max(c[1],a))}else i=Math.min(l,i),a=Math.max(l,a)}return[i,a]}(t,0)}},{\"../../lib\":696}],877:[function(t,e,r){\"use strict\";var n=t(\"../../plots/font_attributes\"),i=t(\"./axis_attributes\"),a=t(\"../../components/color/attributes\"),o=n({editType:\"calc\"});o.family.dflt='\"Open Sans\", verdana, arial, sans-serif',o.size.dflt=12,o.color.dflt=a.defaultLine,e.exports={carpet:{valType:\"string\",editType:\"calc\"},x:{valType:\"data_array\",editType:\"calc+clearAxisTypes\"},y:{valType:\"data_array\",editType:\"calc+clearAxisTypes\"},a:{valType:\"data_array\",editType:\"calc\"},a0:{valType:\"number\",dflt:0,editType:\"calc\"},da:{valType:\"number\",dflt:1,editType:\"calc\"},b:{valType:\"data_array\",editType:\"calc\"},b0:{valType:\"number\",dflt:0,editType:\"calc\"},db:{valType:\"number\",dflt:1,editType:\"calc\"},cheaterslope:{valType:\"number\",dflt:1,editType:\"calc\"},aaxis:i,baxis:i,font:o,color:{valType:\"color\",dflt:a.defaultLine,editType:\"plot\"},transforms:void 0}},{\"../../components/color/attributes\":569,\"../../plots/font_attributes\":771,\"./axis_attributes\":879}],878:[function(t,e,r){\"use strict\";var n=t(\"../../lib\").isArrayOrTypedArray;e.exports=function(t,e,r,i){var a,o,s,l,c,u,f,h,p,d,g,v,m,y=n(r)?\"a\":\"b\",x=(\"a\"===y?t.aaxis:t.baxis).smoothing,b=\"a\"===y?t.a2i:t.b2j,_=\"a\"===y?r:i,w=\"a\"===y?i:r,k=\"a\"===y?e.a.length:e.b.length,M=\"a\"===y?e.b.length:e.a.length,A=Math.floor(\"a\"===y?t.b2j(w):t.a2i(w)),T=\"a\"===y?function(e){return t.evalxy([],e,A)}:function(e){return t.evalxy([],A,e)};x&&(s=Math.max(0,Math.min(M-2,A)),l=A-s,o=\"a\"===y?function(e,r){return t.dxydi([],e,s,r,l)}:function(e,r){return t.dxydj([],s,e,l,r)});var S=b(_[0]),E=b(_[1]),C=S<E?1:-1,L=1e-8*(E-S),z=C>0?Math.floor:Math.ceil,O=C>0?Math.ceil:Math.floor,I=C>0?Math.min:Math.max,P=C>0?Math.max:Math.min,D=z(S+L),R=O(E-L),B=[[f=T(S)]];for(a=D;a*C<R*C;a+=C)c=[],g=P(S,a),m=(v=I(E,a+C))-g,u=Math.max(0,Math.min(k-2,Math.floor(.5*(g+v)))),h=T(v),x&&(p=o(u,g-u),d=o(u,v-u),c.push([f[0]+p[0]/3*m,f[1]+p[1]/3*m]),c.push([h[0]-d[0]/3*m,h[1]-d[1]/3*m])),c.push(h),B.push(c),f=h;return B}},{\"../../lib\":696}],879:[function(t,e,r){\"use strict\";var n=t(\"../../plots/font_attributes\"),i=t(\"../../components/color/attributes\"),a=t(\"../../plots/cartesian/layout_attributes\"),o=t(\"../../plot_api/edit_types\").overrideAll;e.exports={color:{valType:\"color\",editType:\"calc\"},smoothing:{valType:\"number\",dflt:1,min:0,max:1.3,editType:\"calc\"},title:{valType:\"string\",editType:\"calc\"},titlefont:n({editType:\"calc\"}),titleoffset:{valType:\"number\",dflt:10,editType:\"calc\"},type:{valType:\"enumerated\",values:[\"-\",\"linear\",\"date\",\"category\"],dflt:\"-\",editType:\"calc\"},autorange:{valType:\"enumerated\",values:[!0,!1,\"reversed\"],dflt:!0,editType:\"calc\"},rangemode:{valType:\"enumerated\",values:[\"normal\",\"tozero\",\"nonnegative\"],dflt:\"normal\",editType:\"calc\"},range:{valType:\"info_array\",editType:\"calc\",items:[{valType:\"any\",editType:\"calc\"},{valType:\"any\",editType:\"calc\"}]},fixedrange:{valType:\"boolean\",dflt:!1,editType:\"calc\"},cheatertype:{valType:\"enumerated\",values:[\"index\",\"value\"],dflt:\"value\",editType:\"calc\"},tickmode:{valType:\"enumerated\",values:[\"linear\",\"array\"],dflt:\"array\",editType:\"calc\"},nticks:{valType:\"integer\",min:0,dflt:0,editType:\"calc\"},tickvals:{valType:\"data_array\",editType:\"calc\"},ticktext:{valType:\"data_array\",editType:\"calc\"},showticklabels:{valType:\"enumerated\",values:[\"start\",\"end\",\"both\",\"none\"],dflt:\"start\",editType:\"calc\"},tickfont:n({editType:\"calc\"}),tickangle:{valType:\"angle\",dflt:\"auto\",editType:\"calc\"},tickprefix:{valType:\"string\",dflt:\"\",editType:\"calc\"},showtickprefix:{valType:\"enumerated\",values:[\"all\",\"first\",\"last\",\"none\"],dflt:\"all\",editType:\"calc\"},ticksuffix:{valType:\"string\",dflt:\"\",editType:\"calc\"},showticksuffix:{valType:\"enumerated\",values:[\"all\",\"first\",\"last\",\"none\"],dflt:\"all\",editType:\"calc\"},showexponent:{valType:\"enumerated\",values:[\"all\",\"first\",\"last\",\"none\"],dflt:\"all\",editType:\"calc\"},exponentformat:{valType:\"enumerated\",values:[\"none\",\"e\",\"E\",\"power\",\"SI\",\"B\"],dflt:\"B\",editType:\"calc\"},separatethousands:{valType:\"boolean\",dflt:!1,editType:\"calc\"},tickformat:{valType:\"string\",dflt:\"\",editType:\"calc\"},tickformatstops:o(a.tickformatstops,\"calc\",\"from-root\"),categoryorder:{valType:\"enumerated\",values:[\"trace\",\"category ascending\",\"category descending\",\"array\"],dflt:\"trace\",editType:\"calc\"},categoryarray:{valType:\"data_array\",editType:\"calc\"},labelpadding:{valType:\"integer\",dflt:10,editType:\"calc\"},labelprefix:{valType:\"string\",editType:\"calc\"},labelsuffix:{valType:\"string\",dflt:\"\",editType:\"calc\"},showline:{valType:\"boolean\",dflt:!1,editType:\"calc\"},linecolor:{valType:\"color\",dflt:i.defaultLine,editType:\"calc\"},linewidth:{valType:\"number\",min:0,dflt:1,editType:\"calc\"},gridcolor:{valType:\"color\",editType:\"calc\"},gridwidth:{valType:\"number\",min:0,dflt:1,editType:\"calc\"},showgrid:{valType:\"boolean\",dflt:!0,editType:\"calc\"},minorgridcount:{valType:\"integer\",min:0,dflt:0,editType:\"calc\"},minorgridwidth:{valType:\"number\",min:0,dflt:1,editType:\"calc\"},minorgridcolor:{valType:\"color\",dflt:i.lightLine,editType:\"calc\"},startline:{valType:\"boolean\",editType:\"calc\"},startlinecolor:{valType:\"color\",editType:\"calc\"},startlinewidth:{valType:\"number\",dflt:1,editType:\"calc\"},endline:{valType:\"boolean\",editType:\"calc\"},endlinewidth:{valType:\"number\",dflt:1,editType:\"calc\"},endlinecolor:{valType:\"color\",editType:\"calc\"},tick0:{valType:\"number\",min:0,dflt:0,editType:\"calc\"},dtick:{valType:\"number\",min:0,dflt:1,editType:\"calc\"},arraytick0:{valType:\"integer\",min:0,dflt:0,editType:\"calc\"},arraydtick:{valType:\"integer\",min:1,dflt:1,editType:\"calc\"},editType:\"calc\"}},{\"../../components/color/attributes\":569,\"../../plot_api/edit_types\":727,\"../../plots/cartesian/layout_attributes\":757,\"../../plots/font_attributes\":771}],880:[function(t,e,r){\"use strict\";var n=t(\"./attributes\"),i=t(\"../../components/color\").addOpacity,a=t(\"../../registry\"),o=t(\"../../lib\"),s=t(\"../../plots/cartesian/tick_value_defaults\"),l=t(\"../../plots/cartesian/tick_label_defaults\"),c=t(\"../../plots/cartesian/category_order_defaults\"),u=t(\"../../plots/cartesian/set_convert\"),f=t(\"../../plots/cartesian/axis_autotype\");e.exports=function(t,e,r){var h=r.letter,p=r.font||{},d=n[h+\"axis\"];function g(r,n){return o.coerce(t,e,d,r,n)}function v(r,n){return o.coerce2(t,e,d,r,n)}r.name&&(e._name=r.name,e._id=r.name);var m=g(\"type\");(\"-\"===m&&(r.data&&function(t,e){if(\"-\"!==t.type)return;var r=t._id.charAt(0),n=t[r+\"calendar\"];t.type=f(e,n)}(e,r.data),\"-\"===e.type?e.type=\"linear\":m=t.type=e.type),g(\"smoothing\"),g(\"cheatertype\"),g(\"showticklabels\"),g(\"labelprefix\",h+\" = \"),g(\"labelsuffix\"),g(\"showtickprefix\"),g(\"showticksuffix\"),g(\"separatethousands\"),g(\"tickformat\"),g(\"exponentformat\"),g(\"showexponent\"),g(\"categoryorder\"),g(\"tickmode\"),g(\"tickvals\"),g(\"ticktext\"),g(\"tick0\"),g(\"dtick\"),\"array\"===e.tickmode&&(g(\"arraytick0\"),g(\"arraydtick\")),g(\"labelpadding\"),e._hovertitle=h,\"date\"===m)&&a.getComponentMethod(\"calendars\",\"handleDefaults\")(t,e,\"calendar\",r.calendar);u(e,r.fullLayout),e.c2p=o.identity;var y=g(\"color\",r.dfltColor),x=y===t.color?y:p.color;g(\"title\"),o.coerceFont(g,\"titlefont\",{family:p.family,size:Math.round(1.2*p.size),color:x}),g(\"titleoffset\"),g(\"tickangle\"),g(\"autorange\",!e.isValidRange(t.range))&&g(\"rangemode\"),g(\"range\"),e.cleanRange(),g(\"fixedrange\"),s(t,e,g,m),l(t,e,g,m,r),c(t,e,g,{data:r.data,dataAttr:h});var b=v(\"gridcolor\",i(y,.3)),_=v(\"gridwidth\"),w=g(\"showgrid\");w||(delete e.gridcolor,delete e.gridwidth);var k=v(\"startlinecolor\",y),M=v(\"startlinewidth\",_);g(\"startline\",e.showgrid||!!k||!!M)||(delete e.startlinecolor,delete e.startlinewidth);var A=v(\"endlinecolor\",y),T=v(\"endlinewidth\",_);return g(\"endline\",e.showgrid||!!A||!!T)||(delete e.endlinecolor,delete e.endlinewidth),w?(g(\"minorgridcount\"),g(\"minorgridwidth\",_),g(\"minorgridcolor\",i(b,.06)),e.minorgridcount||(delete e.minorgridwidth,delete e.minorgridcolor)):(delete e.gridcolor,delete e.gridWidth),\"none\"===e.showticklabels&&(delete e.tickfont,delete e.tickangle,delete e.showexponent,delete e.exponentformat,delete e.tickformat,delete e.showticksuffix,delete e.showtickprefix),e.showticksuffix||delete e.ticksuffix,e.showtickprefix||delete e.tickprefix,g(\"tickmode\"),(!e.title||e.title&&0===e.title.length)&&(delete e.titlefont,delete e.titleoffset),e}},{\"../../components/color\":570,\"../../lib\":696,\"../../plots/cartesian/axis_autotype\":745,\"../../plots/cartesian/category_order_defaults\":748,\"../../plots/cartesian/set_convert\":763,\"../../plots/cartesian/tick_label_defaults\":764,\"../../plots/cartesian/tick_value_defaults\":766,\"../../registry\":827,\"./attributes\":877}],881:[function(t,e,r){\"use strict\";var n=t(\"../../plots/cartesian/axes\"),i=t(\"../../lib\").isArray1D,a=t(\"./cheater_basis\"),o=t(\"./array_minmax\"),s=t(\"./calc_gridlines\"),l=t(\"./calc_labels\"),c=t(\"./calc_clippath\"),u=t(\"../heatmap/clean_2d_array\"),f=t(\"./smooth_fill_2d_array\"),h=t(\"../heatmap/convert_column_xyz\"),p=t(\"./set_convert\");e.exports=function(t,e){var r=n.getFromId(t,e.xaxis),d=n.getFromId(t,e.yaxis),g=e.aaxis,v=e.baxis,m=e.x,y=e.y,x=[];m&&i(m)&&x.push(\"x\"),y&&i(y)&&x.push(\"y\"),x.length&&h(e,g,v,\"a\",\"b\",x);var b=e._a=e._a||e.a,_=e._b=e._b||e.b;m=e._x||e.x,y=e._y||e.y;var w={};if(e._cheater){var k=\"index\"===g.cheatertype?b.length:b,M=\"index\"===v.cheatertype?_.length:_;m=a(k,M,e.cheaterslope)}e._x=m=u(m),e._y=y=u(y),f(m,b,_),f(y,b,_),p(e),e.setScale();var A=o(m),T=o(y),S=.5*(A[1]-A[0]),E=.5*(A[1]+A[0]),C=.5*(T[1]-T[0]),L=.5*(T[1]+T[0]);return A=[E-1.3*S,E+1.3*S],T=[L-1.3*C,L+1.3*C],e._extremes[r._id]=n.findExtremes(r,A,{padded:!0}),e._extremes[d._id]=n.findExtremes(d,T,{padded:!0}),s(e,\"a\",\"b\"),s(e,\"b\",\"a\"),l(e,g),l(e,v),w.clipsegments=c(e._xctrl,e._yctrl,g,v),w.x=m,w.y=y,w.a=b,w.b=_,[w]}},{\"../../lib\":696,\"../../plots/cartesian/axes\":744,\"../heatmap/clean_2d_array\":947,\"../heatmap/convert_column_xyz\":949,\"./array_minmax\":876,\"./calc_clippath\":882,\"./calc_gridlines\":883,\"./calc_labels\":884,\"./cheater_basis\":886,\"./set_convert\":899,\"./smooth_fill_2d_array\":900}],882:[function(t,e,r){\"use strict\";e.exports=function(t,e,r,n){var i,a,o,s=[],l=!!r.smoothing,c=!!n.smoothing,u=t[0].length-1,f=t.length-1;for(i=0,a=[],o=[];i<=u;i++)a[i]=t[0][i],o[i]=e[0][i];for(s.push({x:a,y:o,bicubic:l}),i=0,a=[],o=[];i<=f;i++)a[i]=t[i][u],o[i]=e[i][u];for(s.push({x:a,y:o,bicubic:c}),i=u,a=[],o=[];i>=0;i--)a[u-i]=t[f][i],o[u-i]=e[f][i];for(s.push({x:a,y:o,bicubic:l}),i=f,a=[],o=[];i>=0;i--)a[f-i]=t[i][0],o[f-i]=e[i][0];return s.push({x:a,y:o,bicubic:c}),s}},{}],883:[function(t,e,r){\"use strict\";var n=t(\"../../plots/cartesian/axes\"),i=t(\"../../lib/extend\").extendFlat;e.exports=function(t,e,r){var a,o,s,l,c,u,f,h,p,d,g,v,m,y,x=t[\"_\"+e],b=t[e+\"axis\"],_=b._gridlines=[],w=b._minorgridlines=[],k=b._boundarylines=[],M=t[\"_\"+r],A=t[r+\"axis\"];\"array\"===b.tickmode&&(b.tickvals=x.slice());var T=t._xctrl,S=t._yctrl,E=T[0].length,C=T.length,L=t._a.length,z=t._b.length;n.prepTicks(b),\"array\"===b.tickmode&&delete b.tickvals;var O=b.smoothing?3:1;function I(n){var i,a,o,s,l,c,u,f,p,d,g,v,m=[],y=[],x={};if(\"b\"===e)for(a=t.b2j(n),o=Math.floor(Math.max(0,Math.min(z-2,a))),s=a-o,x.length=z,x.crossLength=L,x.xy=function(e){return t.evalxy([],e,a)},x.dxy=function(e,r){return t.dxydi([],e,o,r,s)},i=0;i<L;i++)c=Math.min(L-2,i),u=i-c,f=t.evalxy([],i,a),A.smoothing&&i>0&&(p=t.dxydi([],i-1,o,0,s),m.push(l[0]+p[0]/3),y.push(l[1]+p[1]/3),d=t.dxydi([],i-1,o,1,s),m.push(f[0]-d[0]/3),y.push(f[1]-d[1]/3)),m.push(f[0]),y.push(f[1]),l=f;else for(i=t.a2i(n),c=Math.floor(Math.max(0,Math.min(L-2,i))),u=i-c,x.length=L,x.crossLength=z,x.xy=function(e){return t.evalxy([],i,e)},x.dxy=function(e,r){return t.dxydj([],c,e,u,r)},a=0;a<z;a++)o=Math.min(z-2,a),s=a-o,f=t.evalxy([],i,a),A.smoothing&&a>0&&(g=t.dxydj([],c,a-1,u,0),m.push(l[0]+g[0]/3),y.push(l[1]+g[1]/3),v=t.dxydj([],c,a-1,u,1),m.push(f[0]-v[0]/3),y.push(f[1]-v[1]/3)),m.push(f[0]),y.push(f[1]),l=f;return x.axisLetter=e,x.axis=b,x.crossAxis=A,x.value=n,x.constvar=r,x.index=h,x.x=m,x.y=y,x.smoothing=A.smoothing,x}function P(n){var i,a,o,s,l,c=[],u=[],f={};if(f.length=x.length,f.crossLength=M.length,\"b\"===e)for(o=Math.max(0,Math.min(z-2,n)),l=Math.min(1,Math.max(0,n-o)),f.xy=function(e){return t.evalxy([],e,n)},f.dxy=function(e,r){return t.dxydi([],e,o,r,l)},i=0;i<E;i++)c[i]=T[n*O][i],u[i]=S[n*O][i];else for(a=Math.max(0,Math.min(L-2,n)),s=Math.min(1,Math.max(0,n-a)),f.xy=function(e){return t.evalxy([],n,e)},f.dxy=function(e,r){return t.dxydj([],a,e,s,r)},i=0;i<C;i++)c[i]=T[i][n*O],u[i]=S[i][n*O];return f.axisLetter=e,f.axis=b,f.crossAxis=A,f.value=x[n],f.constvar=r,f.index=n,f.x=c,f.y=u,f.smoothing=A.smoothing,f}if(\"array\"===b.tickmode){for(l=5e-15,u=(c=[Math.floor((x.length-1-b.arraytick0)/b.arraydtick*(1+l)),Math.ceil(-b.arraytick0/b.arraydtick/(1+l))].sort(function(t,e){return t-e}))[0]-1,f=c[1]+1,h=u;h<f;h++)(o=b.arraytick0+b.arraydtick*h)<0||o>x.length-1||_.push(i(P(o),{color:b.gridcolor,width:b.gridwidth}));for(h=u;h<f;h++)if(s=b.arraytick0+b.arraydtick*h,g=Math.min(s+b.arraydtick,x.length-1),!(s<0||s>x.length-1||g<0||g>x.length-1))for(v=x[s],m=x[g],a=0;a<b.minorgridcount;a++)(y=g-s)<=0||(d=v+(m-v)*(a+1)/(b.minorgridcount+1)*(b.arraydtick/y))<x[0]||d>x[x.length-1]||w.push(i(I(d),{color:b.minorgridcolor,width:b.minorgridwidth}));b.startline&&k.push(i(P(0),{color:b.startlinecolor,width:b.startlinewidth})),b.endline&&k.push(i(P(x.length-1),{color:b.endlinecolor,width:b.endlinewidth}))}else{for(l=5e-15,u=(c=[Math.floor((x[x.length-1]-b.tick0)/b.dtick*(1+l)),Math.ceil((x[0]-b.tick0)/b.dtick/(1+l))].sort(function(t,e){return t-e}))[0],f=c[1],h=u;h<=f;h++)p=b.tick0+b.dtick*h,_.push(i(I(p),{color:b.gridcolor,width:b.gridwidth}));for(h=u-1;h<f+1;h++)for(p=b.tick0+b.dtick*h,a=0;a<b.minorgridcount;a++)(d=p+b.dtick*(a+1)/(b.minorgridcount+1))<x[0]||d>x[x.length-1]||w.push(i(I(d),{color:b.minorgridcolor,width:b.minorgridwidth}));b.startline&&k.push(i(I(x[0]),{color:b.startlinecolor,width:b.startlinewidth})),b.endline&&k.push(i(I(x[x.length-1]),{color:b.endlinecolor,width:b.endlinewidth}))}}},{\"../../lib/extend\":685,\"../../plots/cartesian/axes\":744}],884:[function(t,e,r){\"use strict\";var n=t(\"../../plots/cartesian/axes\"),i=t(\"../../lib/extend\").extendFlat;e.exports=function(t,e){var r,a,o,s=e._labels=[],l=e._gridlines;for(r=0;r<l.length;r++)o=l[r],-1!==[\"start\",\"both\"].indexOf(e.showticklabels)&&(a=n.tickText(e,o.value),i(a,{prefix:void 0,suffix:void 0,endAnchor:!0,xy:o.xy(0),dxy:o.dxy(0,0),axis:o.axis,length:o.crossAxis.length,font:o.axis.tickfont,isFirst:0===r,isLast:r===l.length-1}),s.push(a)),-1!==[\"end\",\"both\"].indexOf(e.showticklabels)&&(a=n.tickText(e,o.value),i(a,{endAnchor:!1,xy:o.xy(o.crossLength-1),dxy:o.dxy(o.crossLength-2,1),axis:o.axis,length:o.crossAxis.length,font:o.axis.tickfont,isFirst:0===r,isLast:r===l.length-1}),s.push(a))}},{\"../../lib/extend\":685,\"../../plots/cartesian/axes\":744}],885:[function(t,e,r){\"use strict\";e.exports=function(t,e,r,n){var i=t[0]-e[0],a=t[1]-e[1],o=r[0]-e[0],s=r[1]-e[1],l=Math.pow(i*i+a*a,.25),c=Math.pow(o*o+s*s,.25),u=(c*c*i-l*l*o)*n,f=(c*c*a-l*l*s)*n,h=c*(l+c)*3,p=l*(l+c)*3;return[[e[0]+(h&&u/h),e[1]+(h&&f/h)],[e[0]-(p&&u/p),e[1]-(p&&f/p)]]}},{}],886:[function(t,e,r){\"use strict\";var n=t(\"../../lib\").isArrayOrTypedArray;e.exports=function(t,e,r){var i,a,o,s,l,c,u=[],f=n(t)?t.length:t,h=n(e)?e.length:e,p=n(t)?t:null,d=n(e)?e:null;p&&(o=(p.length-1)/(p[p.length-1]-p[0])/(f-1)),d&&(s=(d.length-1)/(d[d.length-1]-d[0])/(h-1));var g=1/0,v=-1/0;for(a=0;a<h;a++)for(u[a]=[],l=d?(d[a]-d[0])*s:a/(h-1),i=0;i<f;i++)c=(p?(p[i]-p[0])*o:i/(f-1))-l*r,g=Math.min(c,g),v=Math.max(c,v),u[a][i]=c;var m=1/(v-g),y=-g*m;for(a=0;a<h;a++)for(i=0;i<f;i++)u[a][i]=m*u[a][i]+y;return u}},{\"../../lib\":696}],887:[function(t,e,r){\"use strict\";var n=t(\"./catmull_rom\"),i=t(\"../../lib\").ensureArray;function a(t,e,r){var n=-.5*r[0]+1.5*e[0],i=-.5*r[1]+1.5*e[1];return[(2*n+t[0])/3,(2*i+t[1])/3]}e.exports=function(t,e,r,o,s,l){var c,u,f,h,p,d,g,v,m,y,x=r[0].length,b=r.length,_=s?3*x-2:x,w=l?3*b-2:b;for(t=i(t,w),e=i(e,w),f=0;f<w;f++)t[f]=i(t[f],_),e[f]=i(e[f],_);for(u=0,h=0;u<b;u++,h+=l?3:1)for(p=t[h],d=e[h],g=r[u],v=o[u],c=0,f=0;c<x;c++,f+=s?3:1)p[f]=g[c],d[f]=v[c];if(s)for(u=0,h=0;u<b;u++,h+=l?3:1){for(c=1,f=3;c<x-1;c++,f+=3)m=n([r[u][c-1],o[u][c-1]],[r[u][c],o[u][c]],[r[u][c+1],o[u][c+1]],s),t[h][f-1]=m[0][0],e[h][f-1]=m[0][1],t[h][f+1]=m[1][0],e[h][f+1]=m[1][1];y=a([t[h][0],e[h][0]],[t[h][2],e[h][2]],[t[h][3],e[h][3]]),t[h][1]=y[0],e[h][1]=y[1],y=a([t[h][_-1],e[h][_-1]],[t[h][_-3],e[h][_-3]],[t[h][_-4],e[h][_-4]]),t[h][_-2]=y[0],e[h][_-2]=y[1]}if(l)for(f=0;f<_;f++){for(h=3;h<w-3;h+=3)m=n([t[h-3][f],e[h-3][f]],[t[h][f],e[h][f]],[t[h+3][f],e[h+3][f]],l),t[h-1][f]=m[0][0],e[h-1][f]=m[0][1],t[h+1][f]=m[1][0],e[h+1][f]=m[1][1];y=a([t[0][f],e[0][f]],[t[2][f],e[2][f]],[t[3][f],e[3][f]]),t[1][f]=y[0],e[1][f]=y[1],y=a([t[w-1][f],e[w-1][f]],[t[w-3][f],e[w-3][f]],[t[w-4][f],e[w-4][f]]),t[w-2][f]=y[0],e[w-2][f]=y[1]}if(s&&l)for(h=1;h<w;h+=(h+1)%3==0?2:1){for(f=3;f<_-3;f+=3)m=n([t[h][f-3],e[h][f-3]],[t[h][f],e[h][f]],[t[h][f+3],e[h][f+3]],s),t[h][f-1]=.5*(t[h][f-1]+m[0][0]),e[h][f-1]=.5*(e[h][f-1]+m[0][1]),t[h][f+1]=.5*(t[h][f+1]+m[1][0]),e[h][f+1]=.5*(e[h][f+1]+m[1][1]);y=a([t[h][0],e[h][0]],[t[h][2],e[h][2]],[t[h][3],e[h][3]]),t[h][1]=.5*(t[h][1]+y[0]),e[h][1]=.5*(e[h][1]+y[1]),y=a([t[h][_-1],e[h][_-1]],[t[h][_-3],e[h][_-3]],[t[h][_-4],e[h][_-4]]),t[h][_-2]=.5*(t[h][_-2]+y[0]),e[h][_-2]=.5*(e[h][_-2]+y[1])}return[t,e]}},{\"../../lib\":696,\"./catmull_rom\":885}],888:[function(t,e,r){\"use strict\";e.exports={RELATIVE_CULL_TOLERANCE:1e-6}},{}],889:[function(t,e,r){\"use strict\";e.exports=function(t,e,r){return e&&r?function(e,r,n,i,a){var o,s,l,c,u,f;e||(e=[]),r*=3,n*=3;var h=i*i,p=1-i,d=p*p,g=p*i*2,v=-3*d,m=3*(d-g),y=3*(g-h),x=3*h,b=a*a,_=b*a,w=1-a,k=w*w,M=k*w;for(f=0;f<t.length;f++)o=v*(u=t[f])[n][r]+m*u[n][r+1]+y*u[n][r+2]+x*u[n][r+3],s=v*u[n+1][r]+m*u[n+1][r+1]+y*u[n+1][r+2]+x*u[n+1][r+3],l=v*u[n+2][r]+m*u[n+2][r+1]+y*u[n+2][r+2]+x*u[n+2][r+3],c=v*u[n+3][r]+m*u[n+3][r+1]+y*u[n+3][r+2]+x*u[n+3][r+3],e[f]=M*o+3*(k*a*s+w*b*l)+_*c;return e}:e?function(e,r,n,i,a){var o,s,l,c;e||(e=[]),r*=3;var u=i*i,f=1-i,h=f*f,p=f*i*2,d=-3*h,g=3*(h-p),v=3*(p-u),m=3*u,y=1-a;for(l=0;l<t.length;l++)o=d*(c=t[l])[n][r]+g*c[n][r+1]+v*c[n][r+2]+m*c[n][r+3],s=d*c[n+1][r]+g*c[n+1][r+1]+v*c[n+1][r+2]+m*c[n+1][r+3],e[l]=y*o+a*s;return e}:r?function(e,r,n,i,a){var o,s,l,c,u,f;e||(e=[]),n*=3;var h=a*a,p=h*a,d=1-a,g=d*d,v=g*d;for(u=0;u<t.length;u++)o=(f=t[u])[n][r+1]-f[n][r],s=f[n+1][r+1]-f[n+1][r],l=f[n+2][r+1]-f[n+2][r],c=f[n+3][r+1]-f[n+3][r],e[u]=v*o+3*(g*a*s+d*h*l)+p*c;return e}:function(e,r,n,i,a){var o,s,l,c;e||(e=[]);var u=1-a;for(l=0;l<t.length;l++)o=(c=t[l])[n][r+1]-c[n][r],s=c[n+1][r+1]-c[n+1][r],e[l]=u*o+a*s;return e}}},{}],890:[function(t,e,r){\"use strict\";e.exports=function(t,e,r){return e&&r?function(e,r,n,i,a){var o,s,l,c,u,f;e||(e=[]),r*=3,n*=3;var h=i*i,p=h*i,d=1-i,g=d*d,v=g*d,m=a*a,y=1-a,x=y*y,b=y*a*2,_=-3*x,w=3*(x-b),k=3*(b-m),M=3*m;for(f=0;f<t.length;f++)o=_*(u=t[f])[n][r]+w*u[n+1][r]+k*u[n+2][r]+M*u[n+3][r],s=_*u[n][r+1]+w*u[n+1][r+1]+k*u[n+2][r+1]+M*u[n+3][r+1],l=_*u[n][r+2]+w*u[n+1][r+2]+k*u[n+2][r+2]+M*u[n+3][r+2],c=_*u[n][r+3]+w*u[n+1][r+3]+k*u[n+2][r+3]+M*u[n+3][r+3],e[f]=v*o+3*(g*i*s+d*h*l)+p*c;return e}:e?function(e,r,n,i,a){var o,s,l,c,u,f;e||(e=[]),r*=3;var h=a*a,p=h*a,d=1-a,g=d*d,v=g*d;for(u=0;u<t.length;u++)o=(f=t[u])[n+1][r]-f[n][r],s=f[n+1][r+1]-f[n][r+1],l=f[n+1][r+2]-f[n][r+2],c=f[n+1][r+3]-f[n][r+3],e[u]=v*o+3*(g*a*s+d*h*l)+p*c;return e}:r?function(e,r,n,i,a){var o,s,l,c;e||(e=[]),n*=3;var u=1-i,f=a*a,h=1-a,p=h*h,d=h*a*2,g=-3*p,v=3*(p-d),m=3*(d-f),y=3*f;for(l=0;l<t.length;l++)o=g*(c=t[l])[n][r]+v*c[n+1][r]+m*c[n+2][r]+y*c[n+3][r],s=g*c[n][r+1]+v*c[n+1][r+1]+m*c[n+2][r+1]+y*c[n+3][r+1],e[l]=u*o+i*s;return e}:function(e,r,n,i,a){var o,s,l,c;e||(e=[]);var u=1-i;for(l=0;l<t.length;l++)o=(c=t[l])[n+1][r]-c[n][r],s=c[n+1][r+1]-c[n][r+1],e[l]=u*o+i*s;return e}}},{}],891:[function(t,e,r){\"use strict\";e.exports=function(t,e,r,n,i){var a=e-2,o=r-2;return n&&i?function(e,r,n){var i,s,l,c,u,f;e||(e=[]);var h=Math.max(0,Math.min(Math.floor(r),a)),p=Math.max(0,Math.min(Math.floor(n),o)),d=Math.max(0,Math.min(1,r-h)),g=Math.max(0,Math.min(1,n-p));h*=3,p*=3;var v=d*d,m=v*d,y=1-d,x=y*y,b=x*y,_=g*g,w=_*g,k=1-g,M=k*k,A=M*k;for(f=0;f<t.length;f++)i=b*(u=t[f])[p][h]+3*(x*d*u[p][h+1]+y*v*u[p][h+2])+m*u[p][h+3],s=b*u[p+1][h]+3*(x*d*u[p+1][h+1]+y*v*u[p+1][h+2])+m*u[p+1][h+3],l=b*u[p+2][h]+3*(x*d*u[p+2][h+1]+y*v*u[p+2][h+2])+m*u[p+2][h+3],c=b*u[p+3][h]+3*(x*d*u[p+3][h+1]+y*v*u[p+3][h+2])+m*u[p+3][h+3],e[f]=A*i+3*(M*g*s+k*_*l)+w*c;return e}:n?function(e,r,n){e||(e=[]);var i,s,l,c,u,f,h=Math.max(0,Math.min(Math.floor(r),a)),p=Math.max(0,Math.min(Math.floor(n),o)),d=Math.max(0,Math.min(1,r-h)),g=Math.max(0,Math.min(1,n-p));h*=3;var v=d*d,m=v*d,y=1-d,x=y*y,b=x*y,_=1-g;for(u=0;u<t.length;u++)i=_*(f=t[u])[p][h]+g*f[p+1][h],s=_*f[p][h+1]+g*f[p+1][h+1],l=_*f[p][h+2]+g*f[p+1][h+1],c=_*f[p][h+3]+g*f[p+1][h+1],e[u]=b*i+3*(x*d*s+y*v*l)+m*c;return e}:i?function(e,r,n){e||(e=[]);var i,s,l,c,u,f,h=Math.max(0,Math.min(Math.floor(r),a)),p=Math.max(0,Math.min(Math.floor(n),o)),d=Math.max(0,Math.min(1,r-h)),g=Math.max(0,Math.min(1,n-p));p*=3;var v=g*g,m=v*g,y=1-g,x=y*y,b=x*y,_=1-d;for(u=0;u<t.length;u++)i=_*(f=t[u])[p][h]+d*f[p][h+1],s=_*f[p+1][h]+d*f[p+1][h+1],l=_*f[p+2][h]+d*f[p+2][h+1],c=_*f[p+3][h]+d*f[p+3][h+1],e[u]=b*i+3*(x*g*s+y*v*l)+m*c;return e}:function(e,r,n){e||(e=[]);var i,s,l,c,u=Math.max(0,Math.min(Math.floor(r),a)),f=Math.max(0,Math.min(Math.floor(n),o)),h=Math.max(0,Math.min(1,r-u)),p=Math.max(0,Math.min(1,n-f)),d=1-p,g=1-h;for(l=0;l<t.length;l++)i=g*(c=t[l])[f][u]+h*c[f][u+1],s=g*c[f+1][u]+h*c[f+1][u+1],e[l]=d*i+p*s;return e}}},{}],892:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"./xy_defaults\"),a=t(\"./ab_defaults\"),o=t(\"./attributes\"),s=t(\"../../components/color/attributes\");e.exports=function(t,e,r,l){function c(r,i){return n.coerce(t,e,o,r,i)}e._clipPathId=\"clip\"+e.uid+\"carpet\";var u=c(\"color\",s.defaultLine);(n.coerceFont(c,\"font\"),c(\"carpet\"),a(t,e,l,c,u),e.a&&e.b)?(e.a.length<3&&(e.aaxis.smoothing=0),e.b.length<3&&(e.baxis.smoothing=0),i(t,e,c)||(e.visible=!1),e._cheater&&c(\"cheaterslope\")):e.visible=!1}},{\"../../components/color/attributes\":569,\"../../lib\":696,\"./ab_defaults\":875,\"./attributes\":877,\"./xy_defaults\":901}],893:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.supplyDefaults=t(\"./defaults\"),n.plot=t(\"./plot\"),n.calc=t(\"./calc\"),n.animatable=!0,n.isContainer=!0,n.moduleType=\"trace\",n.name=\"carpet\",n.basePlotModule=t(\"../../plots/cartesian\"),n.categories=[\"cartesian\",\"svg\",\"carpet\",\"carpetAxis\",\"notLegendIsolatable\"],n.meta={},e.exports=n},{\"../../plots/cartesian\":756,\"./attributes\":877,\"./calc\":881,\"./defaults\":892,\"./plot\":898}],894:[function(t,e,r){\"use strict\";e.exports=function(t,e){for(var r,n=t._fullData.length,i=0;i<n;i++){var a=t._fullData[i];if(a.index!==e.index&&(\"carpet\"===a.type&&(r||(r=a),a.carpet===e.carpet)))return a}return r}},{}],895:[function(t,e,r){\"use strict\";e.exports=function(t,e,r){if(0===t.length)return\"\";var n,i=[],a=r?3:1;for(n=0;n<t.length;n+=a)i.push(t[n]+\",\"+e[n]),r&&n<t.length-a&&(i.push(\"C\"),i.push([t[n+1]+\",\"+e[n+1],t[n+2]+\",\"+e[n+2]+\" \"].join(\" \")));return i.join(r?\"\":\"L\")}},{}],896:[function(t,e,r){\"use strict\";var n=t(\"../../lib\").isArrayOrTypedArray;e.exports=function(t,e,r){var i;for(n(t)?t.length>e.length&&(t=t.slice(0,e.length)):t=[],i=0;i<e.length;i++)t[i]=r(e[i]);return t}},{\"../../lib\":696}],897:[function(t,e,r){\"use strict\";e.exports=function(t,e,r,n,i,a){var o=i[0]*t.dpdx(e),s=i[1]*t.dpdy(r),l=1,c=1;if(a){var u=Math.sqrt(i[0]*i[0]+i[1]*i[1]),f=Math.sqrt(a[0]*a[0]+a[1]*a[1]),h=(i[0]*a[0]+i[1]*a[1])/u/f;c=Math.max(0,h)}var p=180*Math.atan2(s,o)/Math.PI;return p<-90?(p+=180,l=-l):p>90&&(p-=180,l=-l),{angle:p,flip:l,p:t.c2p(n,e,r),offsetMultplier:c}}},{}],898:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../../components/drawing\"),a=t(\"./map_1d_array\"),o=t(\"./makepath\"),s=t(\"./orient_text\"),l=t(\"../../lib/svg_text_utils\"),c=t(\"../../lib\"),u=t(\"../../constants/alignment\");function f(t,e,r,i,s,l){var c=\"const-\"+s+\"-lines\",u=r.selectAll(\".\"+c).data(l);u.enter().append(\"path\").classed(c,!0).style(\"vector-effect\",\"non-scaling-stroke\"),u.each(function(r){var i=r,s=i.x,l=i.y,c=a([],s,t.c2p),u=a([],l,e.c2p),f=\"M\"+o(c,u,i.smoothing);n.select(this).attr(\"d\",f).style(\"stroke-width\",i.width).style(\"stroke\",i.color).style(\"fill\",\"none\")}),u.exit().remove()}function h(t,e,r,a,o,c,u,f){var h=c.selectAll(\"text.\"+f).data(u);h.enter().append(\"text\").classed(f,!0);var p=0,d={};return h.each(function(o,c){var u;if(\"auto\"===o.axis.tickangle)u=s(a,e,r,o.xy,o.dxy);else{var f=(o.axis.tickangle+180)*Math.PI/180;u=s(a,e,r,o.xy,[Math.cos(f),Math.sin(f)])}c||(d={angle:u.angle,flip:u.flip});var h=(o.endAnchor?-1:1)*u.flip,g=n.select(this).attr({\"text-anchor\":h>0?\"start\":\"end\",\"data-notex\":1}).call(i.font,o.font).text(o.text).call(l.convertToTspans,t),v=i.bBox(this);g.attr(\"transform\",\"translate(\"+u.p[0]+\",\"+u.p[1]+\") rotate(\"+u.angle+\")translate(\"+o.axis.labelpadding*h+\",\"+.3*v.height+\")\"),p=Math.max(p,v.width+o.axis.labelpadding)}),h.exit().remove(),d.maxExtent=p,d}e.exports=function(t,e,r,i){var l=e.xaxis,u=e.yaxis,p=t._fullLayout._clips;c.makeTraceGroups(i,r,\"trace\").each(function(e){var r=n.select(this),i=e[0],d=i.trace,v=d.aaxis,m=d.baxis,y=c.ensureSingle(r,\"g\",\"minorlayer\"),x=c.ensureSingle(r,\"g\",\"majorlayer\"),b=c.ensureSingle(r,\"g\",\"boundarylayer\"),_=c.ensureSingle(r,\"g\",\"labellayer\");r.style(\"opacity\",d.opacity),f(l,u,x,v,\"a\",v._gridlines),f(l,u,x,m,\"b\",m._gridlines),f(l,u,y,v,\"a\",v._minorgridlines),f(l,u,y,m,\"b\",m._minorgridlines),f(l,u,b,v,\"a-boundary\",v._boundarylines),f(l,u,b,m,\"b-boundary\",m._boundarylines);var w=h(t,l,u,d,i,_,v._labels,\"a-label\"),k=h(t,l,u,d,i,_,m._labels,\"b-label\");!function(t,e,r,n,i,a,o,l){var u,f,h,p;u=.5*(r.a[0]+r.a[r.a.length-1]),f=r.b[0],h=r.ab2xy(u,f,!0),p=r.dxyda_rough(u,f),void 0===o.angle&&c.extendFlat(o,s(r,i,a,h,r.dxydb_rough(u,f)));g(t,e,r,n,h,p,r.aaxis,i,a,o,\"a-title\"),u=r.a[0],f=.5*(r.b[0]+r.b[r.b.length-1]),h=r.ab2xy(u,f,!0),p=r.dxydb_rough(u,f),void 0===l.angle&&c.extendFlat(l,s(r,i,a,h,r.dxyda_rough(u,f)));g(t,e,r,n,h,p,r.baxis,i,a,l,\"b-title\")}(t,_,d,i,l,u,w,k),function(t,e,r,n,i){var s,l,u,f,h=r.select(\"#\"+t._clipPathId);h.size()||(h=r.append(\"clipPath\").classed(\"carpetclip\",!0));var p=c.ensureSingle(h,\"path\",\"carpetboundary\"),d=e.clipsegments,g=[];for(f=0;f<d.length;f++)s=d[f],l=a([],s.x,n.c2p),u=a([],s.y,i.c2p),g.push(o(l,u,s.bicubic));var v=\"M\"+g.join(\"L\")+\"Z\";h.attr(\"id\",t._clipPathId),p.attr(\"d\",v)}(d,i,p,l,u)})};var p=u.LINE_SPACING,d=(1-u.MID_SHIFT)/p+1;function g(t,e,r,a,o,c,u,f,h,g,v){var m=[];u.title&&m.push(u.title);var y=e.selectAll(\"text.\"+v).data(m),x=g.maxExtent;y.enter().append(\"text\").classed(v,!0),y.each(function(){var e=s(r,f,h,o,c);-1===[\"start\",\"both\"].indexOf(u.showticklabels)&&(x=0);var a=u.titlefont.size;x+=a+u.titleoffset;var v=(g.angle+(g.flip<0?180:0)-e.angle+450)%360,m=v>90&&v<270,y=n.select(this);y.text(u.title||\"\").call(l.convertToTspans,t),m&&(x=(-l.lineCount(y)+d)*p*a-x),y.attr(\"transform\",\"translate(\"+e.p[0]+\",\"+e.p[1]+\") rotate(\"+e.angle+\") translate(0,\"+x+\")\").classed(\"user-select-none\",!0).attr(\"text-anchor\",\"middle\").call(i.font,u.titlefont)}),y.exit().remove()}},{\"../../components/drawing\":595,\"../../constants/alignment\":668,\"../../lib\":696,\"../../lib/svg_text_utils\":720,\"./makepath\":895,\"./map_1d_array\":896,\"./orient_text\":897,d3:148}],899:[function(t,e,r){\"use strict\";var n=t(\"./constants\"),i=t(\"../../lib/search\").findBin,a=t(\"./compute_control_points\"),o=t(\"./create_spline_evaluator\"),s=t(\"./create_i_derivative_evaluator\"),l=t(\"./create_j_derivative_evaluator\");e.exports=function(t){var e=t._a,r=t._b,c=e.length,u=r.length,f=t.aaxis,h=t.baxis,p=e[0],d=e[c-1],g=r[0],v=r[u-1],m=e[e.length-1]-e[0],y=r[r.length-1]-r[0],x=m*n.RELATIVE_CULL_TOLERANCE,b=y*n.RELATIVE_CULL_TOLERANCE;p-=x,d+=x,g-=b,v+=b,t.isVisible=function(t,e){return t>p&&t<d&&e>g&&e<v},t.isOccluded=function(t,e){return t<p||t>d||e<g||e>v},t.setScale=function(){var e=t._x,r=t._y,n=a(t._xctrl,t._yctrl,e,r,f.smoothing,h.smoothing);t._xctrl=n[0],t._yctrl=n[1],t.evalxy=o([t._xctrl,t._yctrl],c,u,f.smoothing,h.smoothing),t.dxydi=s([t._xctrl,t._yctrl],f.smoothing,h.smoothing),t.dxydj=l([t._xctrl,t._yctrl],f.smoothing,h.smoothing)},t.i2a=function(t){var r=Math.max(0,Math.floor(t[0]),c-2),n=t[0]-r;return(1-n)*e[r]+n*e[r+1]},t.j2b=function(t){var e=Math.max(0,Math.floor(t[1]),c-2),n=t[1]-e;return(1-n)*r[e]+n*r[e+1]},t.ij2ab=function(e){return[t.i2a(e[0]),t.j2b(e[1])]},t.a2i=function(t){var r=Math.max(0,Math.min(i(t,e),c-2)),n=e[r],a=e[r+1];return Math.max(0,Math.min(c-1,r+(t-n)/(a-n)))},t.b2j=function(t){var e=Math.max(0,Math.min(i(t,r),u-2)),n=r[e],a=r[e+1];return Math.max(0,Math.min(u-1,e+(t-n)/(a-n)))},t.ab2ij=function(e){return[t.a2i(e[0]),t.b2j(e[1])]},t.i2c=function(e,r){return t.evalxy([],e,r)},t.ab2xy=function(n,i,a){if(!a&&(n<e[0]||n>e[c-1]|i<r[0]||i>r[u-1]))return[!1,!1];var o=t.a2i(n),s=t.b2j(i),l=t.evalxy([],o,s);if(a){var f,h,p,d,g=0,v=0,m=[];n<e[0]?(f=0,h=0,g=(n-e[0])/(e[1]-e[0])):n>e[c-1]?(f=c-2,h=1,g=(n-e[c-1])/(e[c-1]-e[c-2])):h=o-(f=Math.max(0,Math.min(c-2,Math.floor(o)))),i<r[0]?(p=0,d=0,v=(i-r[0])/(r[1]-r[0])):i>r[u-1]?(p=u-2,d=1,v=(i-r[u-1])/(r[u-1]-r[u-2])):d=s-(p=Math.max(0,Math.min(u-2,Math.floor(s)))),g&&(t.dxydi(m,f,p,h,d),l[0]+=m[0]*g,l[1]+=m[1]*g),v&&(t.dxydj(m,f,p,h,d),l[0]+=m[0]*v,l[1]+=m[1]*v)}return l},t.c2p=function(t,e,r){return[e.c2p(t[0]),r.c2p(t[1])]},t.p2x=function(t,e,r){return[e.p2c(t[0]),r.p2c(t[1])]},t.dadi=function(t){var r=Math.max(0,Math.min(e.length-2,t));return e[r+1]-e[r]},t.dbdj=function(t){var e=Math.max(0,Math.min(r.length-2,t));return r[e+1]-r[e]},t.dxyda=function(e,r,n,i){var a=t.dxydi(null,e,r,n,i),o=t.dadi(e,n);return[a[0]/o,a[1]/o]},t.dxydb=function(e,r,n,i){var a=t.dxydj(null,e,r,n,i),o=t.dbdj(r,i);return[a[0]/o,a[1]/o]},t.dxyda_rough=function(e,r,n){var i=m*(n||.1),a=t.ab2xy(e+i,r,!0),o=t.ab2xy(e-i,r,!0);return[.5*(a[0]-o[0])/i,.5*(a[1]-o[1])/i]},t.dxydb_rough=function(e,r,n){var i=y*(n||.1),a=t.ab2xy(e,r+i,!0),o=t.ab2xy(e,r-i,!0);return[.5*(a[0]-o[0])/i,.5*(a[1]-o[1])/i]},t.dpdx=function(t){return t._m},t.dpdy=function(t){return t._m}}},{\"../../lib/search\":715,\"./compute_control_points\":887,\"./constants\":888,\"./create_i_derivative_evaluator\":889,\"./create_j_derivative_evaluator\":890,\"./create_spline_evaluator\":891}],900:[function(t,e,r){\"use strict\";var n=t(\"../../lib\");e.exports=function(t,e,r){var i,a,o,s=[],l=[],c=t[0].length,u=t.length;function f(e,r){var n,i=0,a=0;return e>0&&void 0!==(n=t[r][e-1])&&(a++,i+=n),e<c-1&&void 0!==(n=t[r][e+1])&&(a++,i+=n),r>0&&void 0!==(n=t[r-1][e])&&(a++,i+=n),r<u-1&&void 0!==(n=t[r+1][e])&&(a++,i+=n),i/Math.max(1,a)}var h,p,d,g,v,m,y,x,b,_,w,k=0;for(i=0;i<c;i++)for(a=0;a<u;a++)void 0===t[a][i]&&(s.push(i),l.push(a),t[a][i]=f(i,a)),k=Math.max(k,Math.abs(t[a][i]));if(!s.length)return t;var M=0,A=0,T=s.length;do{for(M=0,o=0;o<T;o++){i=s[o],a=l[o];var S,E,C,L,z,O,I=0,P=0;0===i?(C=e[z=Math.min(c-1,2)],L=e[1],S=t[a][z],P+=(E=t[a][1])+(E-S)*(e[0]-L)/(L-C),I++):i===c-1&&(C=e[z=Math.max(0,c-3)],L=e[c-2],S=t[a][z],P+=(E=t[a][c-2])+(E-S)*(e[c-1]-L)/(L-C),I++),(0===i||i===c-1)&&a>0&&a<u-1&&(h=r[a+1]-r[a],P+=((p=r[a]-r[a-1])*t[a+1][i]+h*t[a-1][i])/(p+h),I++),0===a?(C=r[O=Math.min(u-1,2)],L=r[1],S=t[O][i],P+=(E=t[1][i])+(E-S)*(r[0]-L)/(L-C),I++):a===u-1&&(C=r[O=Math.max(0,u-3)],L=r[u-2],S=t[O][i],P+=(E=t[u-2][i])+(E-S)*(r[u-1]-L)/(L-C),I++),(0===a||a===u-1)&&i>0&&i<c-1&&(h=e[i+1]-e[i],P+=((p=e[i]-e[i-1])*t[a][i+1]+h*t[a][i-1])/(p+h),I++),I?P/=I:(d=e[i+1]-e[i],g=e[i]-e[i-1],x=(v=r[a+1]-r[a])*(m=r[a]-r[a-1])*(v+m),P=((y=d*g*(d+g))*(m*t[a+1][i]+v*t[a-1][i])+x*(g*t[a][i+1]+d*t[a][i-1]))/(x*(g+d)+y*(m+v))),M+=(_=(b=P-t[a][i])/k)*_,w=I?0:.85,t[a][i]+=b*(1+w)}M=Math.sqrt(M)}while(A++<100&&M>1e-5);return n.log(\"Smoother converged to\",M,\"after\",A,\"iterations\"),t}},{\"../../lib\":696}],901:[function(t,e,r){\"use strict\";var n=t(\"../../lib\").isArray1D;e.exports=function(t,e,r){var i=r(\"x\"),a=i&&i.length,o=r(\"y\"),s=o&&o.length;if(!a&&!s)return!1;if(e._cheater=!i,a&&!n(i)||s&&!n(o))e._length=null;else{var l=a?i.length:1/0;s&&(l=Math.min(l,o.length)),e.a&&e.a.length&&(l=Math.min(l,e.a.length)),e.b&&e.b.length&&(l=Math.min(l,e.b.length)),e._length=l}return!0}},{\"../../lib\":696}],902:[function(t,e,r){\"use strict\";var n=t(\"../scattergeo/attributes\"),i=t(\"../../components/colorscale/attributes\"),a=t(\"../../components/colorbar/attributes\"),o=t(\"../../plots/attributes\"),s=t(\"../../lib/extend\").extendFlat,l=n.marker.line;e.exports=s({locations:{valType:\"data_array\",editType:\"calc\"},locationmode:n.locationmode,z:{valType:\"data_array\",editType:\"calc\"},text:s({},n.text,{}),marker:{line:{color:l.color,width:s({},l.width,{dflt:1}),editType:\"calc\"},opacity:{valType:\"number\",arrayOk:!0,min:0,max:1,dflt:1,editType:\"style\"},editType:\"calc\"},selected:{marker:{opacity:n.selected.marker.opacity,editType:\"plot\"},editType:\"plot\"},unselected:{marker:{opacity:n.unselected.marker.opacity,editType:\"plot\"},editType:\"plot\"},hoverinfo:s({},o.hoverinfo,{editType:\"calc\",flags:[\"location\",\"z\",\"text\",\"name\"]})},i(\"\",{cLetter:\"z\",editTypeOverride:\"calc\"}),{colorbar:a})},{\"../../components/colorbar/attributes\":571,\"../../components/colorscale/attributes\":577,\"../../lib/extend\":685,\"../../plots/attributes\":741,\"../scattergeo/attributes\":1083}],903:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../../constants/numerical\").BADNUM,a=t(\"../../components/colorscale/calc\"),o=t(\"../scatter/arrays_to_calcdata\"),s=t(\"../scatter/calc_selection\");e.exports=function(t,e){for(var r=e._length,l=new Array(r),c=0;c<r;c++){var u=l[c]={},f=e.locations[c],h=e.z[c];u.loc=\"string\"==typeof f?f:null,u.z=n(h)?h:i}return o(l,e),a(e,e.z,\"\",\"z\"),s(l,e),l}},{\"../../components/colorscale/calc\":578,\"../../constants/numerical\":673,\"../scatter/arrays_to_calcdata\":1042,\"../scatter/calc_selection\":1045,\"fast-isnumeric\":214}],904:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../components/colorscale/defaults\"),a=t(\"./attributes\");e.exports=function(t,e,r,o){function s(r,i){return n.coerce(t,e,a,r,i)}var l=s(\"locations\"),c=s(\"z\");l&&l.length&&n.isArrayOrTypedArray(c)&&c.length?(e._length=Math.min(l.length,c.length),s(\"locationmode\"),s(\"text\"),s(\"marker.line.color\"),s(\"marker.line.width\"),s(\"marker.opacity\"),i(t,e,o,s,{prefix:\"\",cLetter:\"z\"}),n.coerceSelectionMarkerOpacity(e,s)):e.visible=!1}},{\"../../components/colorscale/defaults\":580,\"../../lib\":696,\"./attributes\":902}],905:[function(t,e,r){\"use strict\";e.exports=function(t,e){return t.location=e.location,t.z=e.z,t}},{}],906:[function(t,e,r){\"use strict\";var n=t(\"../../plots/cartesian/axes\"),i=t(\"./attributes\"),a=t(\"../scatter/fill_hover_text\");e.exports=function(t,e,r){var o,s,l,c,u=t.cd,f=u[0].trace,h=t.subplot;for(s=0;s<u.length;s++)if(c=!1,(o=u[s])._polygons){for(l=0;l<o._polygons.length;l++)o._polygons[l].contains([e,r])&&(c=!c),o._polygons[l].contains([e+360,r])&&(c=!c);if(c)break}if(c&&o)return t.x0=t.x1=t.xa.c2p(o.ct),t.y0=t.y1=t.ya.c2p(o.ct),t.index=o.index,t.location=o.loc,t.z=o.z,function(t,e,r,o){var s=r.hi||e.hoverinfo,l=\"all\"===s?i.hoverinfo.flags:s.split(\"+\"),c=-1!==l.indexOf(\"name\"),u=-1!==l.indexOf(\"location\"),f=-1!==l.indexOf(\"z\"),h=-1!==l.indexOf(\"text\"),p=[];!c&&u?t.nameOverride=r.loc:(c&&(t.nameOverride=e.name),u&&p.push(r.loc));f&&p.push((d=r.z,n.tickText(o,o.c2l(d),\"hover\").text));var d;h&&a(r,e,p);t.extraText=p.join(\"<br>\")}(t,f,o,h.mockAxis),[t]}},{\"../../plots/cartesian/axes\":744,\"../scatter/fill_hover_text\":1051,\"./attributes\":902}],907:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.supplyDefaults=t(\"./defaults\"),n.colorbar=t(\"../heatmap/colorbar\"),n.calc=t(\"./calc\"),n.plot=t(\"./plot\"),n.style=t(\"./style\").style,n.styleOnSelect=t(\"./style\").styleOnSelect,n.hoverPoints=t(\"./hover\"),n.eventData=t(\"./event_data\"),n.selectPoints=t(\"./select\"),n.moduleType=\"trace\",n.name=\"choropleth\",n.basePlotModule=t(\"../../plots/geo\"),n.categories=[\"geo\",\"noOpacity\"],n.meta={},e.exports=n},{\"../../plots/geo\":775,\"../heatmap/colorbar\":948,\"./attributes\":902,\"./calc\":903,\"./defaults\":904,\"./event_data\":905,\"./hover\":906,\"./plot\":908,\"./select\":909,\"./style\":910}],908:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../../lib\"),a=t(\"../../lib/polygon\"),o=t(\"../../lib/topojson_utils\").getTopojsonFeatures,s=t(\"../../lib/geo_location_utils\").locationToFeature,l=t(\"./style\").style;function c(t,e){for(var r=t[0].trace,n=t.length,i=o(r,e),a=0;a<n;a++){var l=t[a],c=s(r.locationmode,l.loc,i);c?(l.geojson=c,l.ct=c.properties.ct,l.index=a,l._polygons=u(c)):l.geojson=null}}function u(t){var e,r,n,i,o=t.geometry,s=o.coordinates,l=t.id,c=[];function u(t){for(var e=0;e<t.length-1;e++)if(t[e][0]>0&&t[e+1][0]<0)return e;return null}switch(e=\"RUS\"===l||\"FJI\"===l?function(t){var e;if(null===u(t))e=t;else for(e=new Array(t.length),i=0;i<t.length;i++)e[i]=[t[i][0]<0?t[i][0]+360:t[i][0],t[i][1]];c.push(a.tester(e))}:\"ATA\"===l?function(t){var e=u(t);if(null===e)return c.push(a.tester(t));var r=new Array(t.length+1),n=0;for(i=0;i<t.length;i++)i>e?r[n++]=[t[i][0]+360,t[i][1]]:i===e?(r[n++]=t[i],r[n++]=[t[i][0],-90]):r[n++]=t[i];var o=a.tester(r);o.pts.pop(),c.push(o)}:function(t){c.push(a.tester(t))},o.type){case\"MultiPolygon\":for(r=0;r<s.length;r++)for(n=0;n<s[r].length;n++)e(s[r][n]);break;case\"Polygon\":for(r=0;r<s.length;r++)e(s[r])}return c}e.exports=function(t,e,r){for(var a=0;a<r.length;a++)c(r[a],e.topojson);var o=e.layers.backplot.select(\".choroplethlayer\");i.makeTraceGroups(o,r,\"trace choropleth\").each(function(e){var r=(e[0].node3=n.select(this)).selectAll(\"path.choroplethlocation\").data(i.identity);r.enter().append(\"path\").classed(\"choroplethlocation\",!0),r.exit().remove(),l(t,e)})}},{\"../../lib\":696,\"../../lib/geo_location_utils\":688,\"../../lib/polygon\":708,\"../../lib/topojson_utils\":723,\"./style\":910,d3:148}],909:[function(t,e,r){\"use strict\";e.exports=function(t,e){var r,n,i,a,o,s=t.cd,l=t.xaxis,c=t.yaxis,u=[];if(!1===e)for(r=0;r<s.length;r++)s[r].selected=0;else for(r=0;r<s.length;r++)(i=(n=s[r]).ct)&&(a=l.c2p(i),o=c.c2p(i),e.contains([a,o],null,r,t)?(u.push({pointNumber:r,lon:i[0],lat:i[1]}),n.selected=1):n.selected=0);return u}},{}],910:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../../components/color\"),a=t(\"../../components/drawing\"),o=t(\"../../components/colorscale\");function s(t,e){var r=e[0].trace,s=e[0].node3.selectAll(\".choroplethlocation\"),l=r.marker||{},c=l.line||{},u=o.makeColorScaleFunc(o.extractScale(r.colorscale,r.zmin,r.zmax));s.each(function(t){n.select(this).attr(\"fill\",u(t.z)).call(i.stroke,t.mlc||c.color).call(a.dashLine,\"\",t.mlw||c.width||0).style(\"opacity\",l.opacity)}),a.selectedPointStyle(s,r,t)}e.exports={style:function(t,e){e&&s(t,e)},styleOnSelect:function(t,e){var r=e[0].node3,n=e[0].trace;n.selectedpoints?a.selectedPointStyle(r.selectAll(\".choroplethlocation\"),n,t):s(t,e)}}},{\"../../components/color\":570,\"../../components/colorscale\":585,\"../../components/drawing\":595,d3:148}],911:[function(t,e,r){\"use strict\";var n=t(\"../../components/colorscale/attributes\"),i=t(\"../../components/colorbar/attributes\"),a=t(\"../mesh3d/attributes\"),o=t(\"../../plots/attributes\"),s=t(\"../../lib/extend\").extendFlat,l={x:{valType:\"data_array\",editType:\"calc+clearAxisTypes\"},y:{valType:\"data_array\",editType:\"calc+clearAxisTypes\"},z:{valType:\"data_array\",editType:\"calc+clearAxisTypes\"},u:{valType:\"data_array\",editType:\"calc\"},v:{valType:\"data_array\",editType:\"calc\"},w:{valType:\"data_array\",editType:\"calc\"},sizemode:{valType:\"enumerated\",values:[\"scaled\",\"absolute\"],editType:\"calc\",dflt:\"scaled\"},sizeref:{valType:\"number\",editType:\"calc\",min:0},anchor:{valType:\"enumerated\",editType:\"calc\",values:[\"tip\",\"tail\",\"cm\",\"center\"],dflt:\"cm\"},text:{valType:\"string\",dflt:\"\",arrayOk:!0,editType:\"calc\"}};s(l,n(\"\",{colorAttr:\"u/v/w norm\",showScaleDflt:!0,editTypeOverride:\"calc\"}),{colorbar:i});[\"opacity\",\"lightposition\",\"lighting\"].forEach(function(t){l[t]=a[t]}),l.hoverinfo=s({},o.hoverinfo,{editType:\"calc\",flags:[\"x\",\"y\",\"z\",\"u\",\"v\",\"w\",\"norm\",\"text\",\"name\"],dflt:\"x+y+z+norm+text+name\"}),l.transforms=void 0,e.exports=l},{\"../../components/colorbar/attributes\":571,\"../../components/colorscale/attributes\":577,\"../../lib/extend\":685,\"../../plots/attributes\":741,\"../mesh3d/attributes\":986}],912:[function(t,e,r){\"use strict\";var n=t(\"../../components/colorscale/calc\");e.exports=function(t,e){for(var r=e.u,i=e.v,a=e.w,o=Math.min(e.x.length,e.y.length,e.z.length,r.length,i.length,a.length),s=-1/0,l=1/0,c=0;c<o;c++){var u=r[c],f=i[c],h=a[c],p=Math.sqrt(u*u+f*f+h*h);s=Math.max(s,p),l=Math.min(l,p)}e._len=o,e._normMax=s,n(e,[l,s],\"\",\"c\")}},{\"../../components/colorscale/calc\":578}],913:[function(t,e,r){\"use strict\";var n=t(\"gl-cone3d\"),i=t(\"gl-cone3d\").createConeMesh,a=t(\"../../lib\").simpleMap,o=t(\"../../lib/gl_format_color\").parseColorScale,s=t(\"../../plots/gl3d/zip3\");function l(t,e){this.scene=t,this.uid=e,this.mesh=null,this.data=null}var c=l.prototype;c.handlePick=function(t){if(t.object===this.mesh){var e=t.index=t.data.index,r=this.data.x[e],n=this.data.y[e],i=this.data.z[e],a=this.data.u[e],o=this.data.v[e],s=this.data.w[e];t.traceCoordinate=[r,n,i,a,o,s,Math.sqrt(a*a+o*o+s*s)];var l=this.data.text;return Array.isArray(l)&&void 0!==l[e]?t.textLabel=l[e]:l&&(t.textLabel=l),!0}};var u={xaxis:0,yaxis:1,zaxis:2},f={tip:1,tail:0,cm:.25,center:.5},h={tip:1,tail:1,cm:.75,center:.5};function p(t,e){var r=t.fullSceneLayout,i=t.dataScale,l={};function c(t,e){var n=r[e],o=i[u[e]];return a(t,function(t){return n.d2l(t)*o})}l.vectors=s(c(e.u,\"xaxis\"),c(e.v,\"yaxis\"),c(e.w,\"zaxis\"),e._len),l.positions=s(c(e.x,\"xaxis\"),c(e.y,\"yaxis\"),c(e.z,\"zaxis\"),e._len),l.colormap=o(e.colorscale),l.vertexIntensityBounds=[e.cmin/e._normMax,e.cmax/e._normMax],l.coneOffset=f[e.anchor],\"scaled\"===e.sizemode?l.coneSize=e.sizeref||.5:l.coneSize=e.sizeref&&e._normMax?e.sizeref/e._normMax:.5;var p=n(l),d=e.lightposition;return p.lightPosition=[d.x,d.y,d.z],p.ambient=e.lighting.ambient,p.diffuse=e.lighting.diffuse,p.specular=e.lighting.specular,p.roughness=e.lighting.roughness,p.fresnel=e.lighting.fresnel,p.opacity=e.opacity,e._pad=h[e.anchor]*p.vectorScale*p.coneScale*e._normMax,p}c.update=function(t){this.data=t;var e=p(this.scene,t);this.mesh.update(e)},c.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()},e.exports=function(t,e){var r=t.glplot.gl,n=p(t,e),a=i(r,n),o=new l(t,e.uid);return o.mesh=a,o.data=e,a._trace=o,t.glplot.add(a),o}},{\"../../lib\":696,\"../../lib/gl_format_color\":692,\"../../plots/gl3d/zip3\":798,\"gl-cone3d\":231}],914:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../components/colorscale/defaults\"),a=t(\"./attributes\");e.exports=function(t,e,r,o){function s(r,i){return n.coerce(t,e,a,r,i)}var l=s(\"u\"),c=s(\"v\"),u=s(\"w\"),f=s(\"x\"),h=s(\"y\"),p=s(\"z\");l&&l.length&&c&&c.length&&u&&u.length&&f&&f.length&&h&&h.length&&p&&p.length?(s(\"sizeref\"),s(\"sizemode\"),s(\"anchor\"),s(\"lighting.ambient\"),s(\"lighting.diffuse\"),s(\"lighting.specular\"),s(\"lighting.roughness\"),s(\"lighting.fresnel\"),s(\"lightposition.x\"),s(\"lightposition.y\"),s(\"lightposition.z\"),i(t,e,o,s,{prefix:\"\",cLetter:\"c\"}),s(\"text\"),e._length=null):e.visible=!1}},{\"../../components/colorscale/defaults\":580,\"../../lib\":696,\"./attributes\":911}],915:[function(t,e,r){\"use strict\";e.exports={moduleType:\"trace\",name:\"cone\",basePlotModule:t(\"../../plots/gl3d\"),categories:[\"gl3d\"],attributes:t(\"./attributes\"),supplyDefaults:t(\"./defaults\"),colorbar:{min:\"cmin\",max:\"cmax\"},calc:t(\"./calc\"),plot:t(\"./convert\"),meta:{}}},{\"../../plots/gl3d\":787,\"./attributes\":911,\"./calc\":912,\"./convert\":913,\"./defaults\":914}],916:[function(t,e,r){\"use strict\";var n=t(\"../heatmap/attributes\"),i=t(\"../scatter/attributes\"),a=t(\"../../components/colorscale/attributes\"),o=t(\"../../components/colorbar/attributes\"),s=t(\"../../components/drawing/attributes\").dash,l=t(\"../../plots/font_attributes\"),c=t(\"../../lib/extend\").extendFlat,u=t(\"../../constants/filter_ops\"),f=u.COMPARISON_OPS2,h=u.INTERVAL_OPS,p=i.line;e.exports=c({z:n.z,x:n.x,x0:n.x0,dx:n.dx,y:n.y,y0:n.y0,dy:n.dy,text:n.text,transpose:n.transpose,xtype:n.xtype,ytype:n.ytype,zhoverformat:n.zhoverformat,connectgaps:n.connectgaps,fillcolor:{valType:\"color\",editType:\"calc\"},autocontour:{valType:\"boolean\",dflt:!0,editType:\"calc\",impliedEdits:{\"contours.start\":void 0,\"contours.end\":void 0,\"contours.size\":void 0}},ncontours:{valType:\"integer\",dflt:15,min:1,editType:\"calc\"},contours:{type:{valType:\"enumerated\",values:[\"levels\",\"constraint\"],dflt:\"levels\",editType:\"calc\"},start:{valType:\"number\",dflt:null,editType:\"plot\",impliedEdits:{\"^autocontour\":!1}},end:{valType:\"number\",dflt:null,editType:\"plot\",impliedEdits:{\"^autocontour\":!1}},size:{valType:\"number\",dflt:null,min:0,editType:\"plot\",impliedEdits:{\"^autocontour\":!1}},coloring:{valType:\"enumerated\",values:[\"fill\",\"heatmap\",\"lines\",\"none\"],dflt:\"fill\",editType:\"calc\"},showlines:{valType:\"boolean\",dflt:!0,editType:\"plot\"},showlabels:{valType:\"boolean\",dflt:!1,editType:\"plot\"},labelfont:l({editType:\"plot\",colorEditType:\"style\"}),labelformat:{valType:\"string\",dflt:\"\",editType:\"plot\"},operation:{valType:\"enumerated\",values:[].concat(f).concat(h),dflt:\"=\",editType:\"calc\"},value:{valType:\"any\",dflt:0,editType:\"calc\"},editType:\"calc\",impliedEdits:{autocontour:!1}},line:{color:c({},p.color,{editType:\"style+colorbars\"}),width:c({},p.width,{editType:\"style+colorbars\"}),dash:s,smoothing:c({},p.smoothing,{}),editType:\"plot\"}},a(\"\",{cLetter:\"z\",autoColorDflt:!1,editTypeOverride:\"calc\"}),{colorbar:o})},{\"../../components/colorbar/attributes\":571,\"../../components/colorscale/attributes\":577,\"../../components/drawing/attributes\":594,\"../../constants/filter_ops\":669,\"../../lib/extend\":685,\"../../plots/font_attributes\":771,\"../heatmap/attributes\":945,\"../scatter/attributes\":1043}],917:[function(t,e,r){\"use strict\";var n=t(\"../heatmap/calc\"),i=t(\"./set_contours\");e.exports=function(t,e){var r=n(t,e);return i(e),r}},{\"../heatmap/calc\":946,\"./set_contours\":935}],918:[function(t,e,r){\"use strict\";e.exports=function(t,e,r,n){var i,a,o,s=t[0],l=s.x.length,c=s.y.length,u=s.z,f=n.contours,h=-1/0,p=1/0;for(i=0;i<c;i++)p=Math.min(p,u[i][0]),p=Math.min(p,u[i][l-1]),h=Math.max(h,u[i][0]),h=Math.max(h,u[i][l-1]);for(i=1;i<l-1;i++)p=Math.min(p,u[0][i]),p=Math.min(p,u[c-1][i]),h=Math.max(h,u[0][i]),h=Math.max(h,u[c-1][i]);switch(s.prefixBoundary=!1,e){case\">\":f.value>h&&(s.prefixBoundary=!0);break;case\"<\":f.value<p&&(s.prefixBoundary=!0);break;case\"[]\":a=Math.min.apply(null,f.value),((o=Math.max.apply(null,f.value))<p||a>h)&&(s.prefixBoundary=!0);break;case\"][\":a=Math.min.apply(null,f.value),o=Math.max.apply(null,f.value),a<p&&o>h&&(s.prefixBoundary=!0)}}},{}],919:[function(t,e,r){\"use strict\";var n=t(\"../../components/colorbar/draw\"),i=t(\"./make_color_map\"),a=t(\"./end_plus\");e.exports=function(t,e){var r=e[0].trace,o=\"cb\"+r.uid;if(t._fullLayout._infolayer.selectAll(\".\"+o).remove(),r.showscale){var s=e[0].t.cb=n(t,o),l=r.contours,c=r.line,u=l.size||1,f=l.coloring,h=i(r,{isColorbar:!0});s.fillgradient(\"heatmap\"===f?r.colorscale:\"\").zrange(\"heatmap\"===f?[r.zmin,r.zmax]:\"\").fillcolor(\"fill\"===f?h:\"\").line({color:\"lines\"===f?h:c.color,width:!1!==l.showlines?c.width:0,dash:c.dash}).levels({start:l.start,end:a(l),size:u}).options(r.colorbar)()}}},{\"../../components/colorbar/draw\":575,\"./end_plus\":927,\"./make_color_map\":932}],920:[function(t,e,r){\"use strict\";e.exports={BOTTOMSTART:[1,9,13,104,713],TOPSTART:[4,6,7,104,713],LEFTSTART:[8,12,14,208,1114],RIGHTSTART:[2,3,11,208,1114],NEWDELTA:[null,[-1,0],[0,-1],[-1,0],[1,0],null,[0,-1],[-1,0],[0,1],[0,1],null,[0,1],[1,0],[1,0],[0,-1]],CHOOSESADDLE:{104:[4,1],208:[2,8],713:[7,13],1114:[11,14]},SADDLEREMAINDER:{1:4,2:8,4:1,7:13,8:2,11:14,13:7,14:11},LABELDISTANCE:2,LABELINCREASE:10,LABELMIN:3,LABELMAX:10,LABELOPTIMIZER:{EDGECOST:1,ANGLECOST:1,NEIGHBORCOST:5,SAMELEVELFACTOR:10,SAMELEVELDISTANCE:5,MAXCOST:100,INITIALSEARCHPOINTS:10,ITERATIONS:5}}},{}],921:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"./label_defaults\"),a=t(\"../../components/color\"),o=a.addOpacity,s=a.opacity,l=t(\"../../constants/filter_ops\"),c=l.CONSTRAINT_REDUCTION,u=l.COMPARISON_OPS2;e.exports=function(t,e,r,a,l,f){var h,p,d,g=e.contours,v=r(\"contours.operation\");(g._operation=c[v],function(t,e){var r;-1===u.indexOf(e.operation)?(t(\"contours.value\",[0,1]),Array.isArray(e.value)?e.value.length>2?e.value=e.value.slice(2):0===e.length?e.value=[0,1]:e.length<2?(r=parseFloat(e.value[0]),e.value=[r,r+1]):e.value=[parseFloat(e.value[0]),parseFloat(e.value[1])]:n(e.value)&&(r=parseFloat(e.value),e.value=[r,r+1])):(t(\"contours.value\",0),n(e.value)||(Array.isArray(e.value)?e.value=parseFloat(e.value[0]):e.value=0))}(r,g),\"=\"===v?h=g.showlines=!0:(h=r(\"contours.showlines\"),d=r(\"fillcolor\",o((t.line||{}).color||l,.5))),h)&&(p=r(\"line.color\",d&&s(d)?o(e.fillcolor,1):l),r(\"line.width\",2),r(\"line.dash\"));r(\"line.smoothing\"),i(r,a,p,f)}},{\"../../components/color\":570,\"../../constants/filter_ops\":669,\"./label_defaults\":931,\"fast-isnumeric\":214}],922:[function(t,e,r){\"use strict\";var n=t(\"../../constants/filter_ops\"),i=t(\"fast-isnumeric\");function a(t,e){var r,a=Array.isArray(e);function o(t){return i(t)?+t:null}return-1!==n.COMPARISON_OPS2.indexOf(t)?r=o(a?e[0]:e):-1!==n.INTERVAL_OPS.indexOf(t)?r=a?[o(e[0]),o(e[1])]:[o(e),o(e)]:-1!==n.SET_OPS.indexOf(t)&&(r=a?e.map(o):[o(e)]),r}function o(t){return function(e){e=a(t,e);var r=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]);return{start:r,end:n,size:n-r}}}function s(t){return function(e){return{start:e=a(t,e),end:1/0,size:1/0}}}e.exports={\"[]\":o(\"[]\"),\"][\":o(\"][\"),\">\":s(\">\"),\"<\":s(\"<\"),\"=\":s(\"=\")}},{\"../../constants/filter_ops\":669,\"fast-isnumeric\":214}],923:[function(t,e,r){\"use strict\";e.exports=function(t,e,r,n){var i=n(\"contours.start\"),a=n(\"contours.end\"),o=!1===i||!1===a,s=r(\"contours.size\");!(o?e.autocontour=!0:r(\"autocontour\",!1))&&s||r(\"ncontours\")}},{}],924:[function(t,e,r){\"use strict\";var n=t(\"../../lib\");function i(t){return n.extendFlat({},t,{edgepaths:n.extendDeep([],t.edgepaths),paths:n.extendDeep([],t.paths)})}e.exports=function(t,e){var r,a,o,s=function(t){return t.reverse()},l=function(t){return t};switch(e){case\"=\":case\"<\":return t;case\">\":for(1!==t.length&&n.warn(\"Contour data invalid for the specified inequality operation.\"),a=t[0],r=0;r<a.edgepaths.length;r++)a.edgepaths[r]=s(a.edgepaths[r]);for(r=0;r<a.paths.length;r++)a.paths[r]=s(a.paths[r]);return t;case\"][\":var c=s;s=l,l=c;case\"[]\":for(2!==t.length&&n.warn(\"Contour data invalid for the specified inequality range operation.\"),a=i(t[0]),o=i(t[1]),r=0;r<a.edgepaths.length;r++)a.edgepaths[r]=s(a.edgepaths[r]);for(r=0;r<a.paths.length;r++)a.paths[r]=s(a.paths[r]);for(;o.edgepaths.length;)a.edgepaths.push(l(o.edgepaths.shift()));for(;o.paths.length;)a.paths.push(l(o.paths.shift()));return[a]}}},{\"../../lib\":696}],925:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../heatmap/xyz_defaults\"),a=t(\"./constraint_defaults\"),o=t(\"./contours_defaults\"),s=t(\"./style_defaults\"),l=t(\"./attributes\");e.exports=function(t,e,r,c){function u(r,i){return n.coerce(t,e,l,r,i)}if(i(t,e,u,c)){u(\"text\");var f=\"constraint\"===u(\"contours.type\");u(\"connectgaps\",n.isArray1D(e.z)),f?a(t,e,u,c,r):(o(t,e,u,function(r){return n.coerce2(t,e,l,r)}),s(t,e,u,c))}else e.visible=!1}},{\"../../lib\":696,\"../heatmap/xyz_defaults\":960,\"./attributes\":916,\"./constraint_defaults\":921,\"./contours_defaults\":923,\"./style_defaults\":937}],926:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"./constraint_mapping\"),a=t(\"./end_plus\");e.exports=function(t,e,r){for(var o=\"constraint\"===t.type?i[t._operation](t.value):t,s=o.size,l=[],c=a(o),u=r.trace._carpetTrace,f=u?{xaxis:u.aaxis,yaxis:u.baxis,x:r.a,y:r.b}:{xaxis:e.xaxis,yaxis:e.yaxis,x:r.x,y:r.y},h=o.start;h<c;h+=s)if(l.push(n.extendFlat({level:h,crossings:{},starts:[],edgepaths:[],paths:[],z:r.z,smoothing:r.trace.line.smoothing},f)),l.length>1e3){n.warn(\"Too many contours, clipping at 1000\",t);break}return l}},{\"../../lib\":696,\"./constraint_mapping\":922,\"./end_plus\":927}],927:[function(t,e,r){\"use strict\";e.exports=function(t){return t.end+t.size/1e6}},{}],928:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"./constants\");function a(t,e,r,n){return Math.abs(t[0]-e[0])<r&&Math.abs(t[1]-e[1])<n}function o(t,e,r,o,l){var c,u=e.join(\",\"),f=u,h=t.crossings[f],p=function(t,e,r){var n=0,a=0;t>20&&e?208===t||1114===t?n=0===r[0]?1:-1:a=0===r[1]?1:-1:-1!==i.BOTTOMSTART.indexOf(t)?a=1:-1!==i.LEFTSTART.indexOf(t)?n=1:-1!==i.TOPSTART.indexOf(t)?a=-1:n=-1;return[n,a]}(h,r,e),d=[s(t,e,[-p[0],-p[1]])],g=p.join(\",\"),v=t.z.length,m=t.z[0].length;for(c=0;c<1e4;c++){if(h>20?(h=i.CHOOSESADDLE[h][(p[0]||p[1])<0?0:1],t.crossings[f]=i.SADDLEREMAINDER[h]):delete t.crossings[f],!(p=i.NEWDELTA[h])){n.log(\"Found bad marching index:\",h,e,t.level);break}d.push(s(t,e,p)),e[0]+=p[0],e[1]+=p[1],a(d[d.length-1],d[d.length-2],o,l)&&d.pop(),f=e.join(\",\");var y=p[0]&&(e[0]<0||e[0]>m-2)||p[1]&&(e[1]<0||e[1]>v-2);if(f===u&&p.join(\",\")===g||r&&y)break;h=t.crossings[f]}1e4===c&&n.log(\"Infinite loop in contour?\");var x,b,_,w,k,M,A,T,S,E,C,L,z,O,I,P=a(d[0],d[d.length-1],o,l),D=0,R=.2*t.smoothing,B=[],F=0;for(c=1;c<d.length;c++)L=d[c],z=d[c-1],void 0,void 0,O=L[2]-z[2],I=L[3]-z[3],D+=A=Math.sqrt(O*O+I*I),B.push(A);var N=D/B.length*R;function j(t){return d[t%d.length]}for(c=d.length-2;c>=F;c--)if((x=B[c])<N){for(_=0,b=c-1;b>=F&&x+B[b]<N;b--)x+=B[b];if(P&&c===d.length-2)for(_=0;_<b&&x+B[_]<N;_++)x+=B[_];k=c-b+_+1,M=Math.floor((c+b+_+2)/2),w=P||c!==d.length-2?P||-1!==b?k%2?j(M):[(j(M)[0]+j(M+1)[0])/2,(j(M)[1]+j(M+1)[1])/2]:d[0]:d[d.length-1],d.splice(b+1,c-b+1,w),c=b+1,_&&(F=_),P&&(c===d.length-2?d[_]=d[d.length-1]:0===c&&(d[d.length-1]=d[0]))}for(d.splice(0,F),c=0;c<d.length;c++)d[c].length=2;if(!(d.length<2))if(P)d.pop(),t.paths.push(d);else{r||n.log(\"Unclosed interior contour?\",t.level,u,d.join(\"L\"));var V=!1;for(T=0;T<t.edgepaths.length;T++)if(E=t.edgepaths[T],!V&&a(E[0],d[d.length-1],o,l)){d.pop(),V=!0;var U=!1;for(S=0;S<t.edgepaths.length;S++)if(a((C=t.edgepaths[S])[C.length-1],d[0],o,l)){U=!0,d.shift(),t.edgepaths.splice(T,1),S===T?t.paths.push(d.concat(C)):(S>T&&S--,t.edgepaths[S]=C.concat(d,E));break}U||(t.edgepaths[T]=d.concat(E))}for(T=0;T<t.edgepaths.length&&!V;T++)a((E=t.edgepaths[T])[E.length-1],d[0],o,l)&&(d.shift(),t.edgepaths[T]=E.concat(d),V=!0);V||t.edgepaths.push(d)}}function s(t,e,r){var n=e[0]+Math.max(r[0],0),i=e[1]+Math.max(r[1],0),a=t.z[i][n],o=t.xaxis,s=t.yaxis;if(r[1]){var l=(t.level-a)/(t.z[i][n+1]-a);return[o.c2p((1-l)*t.x[n]+l*t.x[n+1],!0),s.c2p(t.y[i],!0),n+l,i]}var c=(t.level-a)/(t.z[i+1][n]-a);return[o.c2p(t.x[n],!0),s.c2p((1-c)*t.y[i]+c*t.y[i+1],!0),n,i+c]}e.exports=function(t,e,r){var i,a,s,l;for(e=e||.01,r=r||.01,a=0;a<t.length;a++){for(s=t[a],l=0;l<s.starts.length;l++)o(s,s.starts[l],\"edge\",e,r);for(i=0;Object.keys(s.crossings).length&&i<1e4;)i++,o(s,Object.keys(s.crossings)[0].split(\",\").map(Number),void 0,e,r);1e4===i&&n.log(\"Infinite loop in contour?\")}}},{\"../../lib\":696,\"./constants\":920}],929:[function(t,e,r){\"use strict\";var n=t(\"../../components/color\"),i=t(\"../heatmap/hover\");e.exports=function(t,e,r,a,o){var s=i(t,e,r,a,o,!0);return s&&s.forEach(function(t){var e=t.trace;\"constraint\"===e.contours.type&&(e.fillcolor&&n.opacity(e.fillcolor)?t.color=n.addOpacity(e.fillcolor,1):e.contours.showlines&&n.opacity(e.line.color)&&(t.color=n.addOpacity(e.line.color,1)))}),s}},{\"../../components/color\":570,\"../heatmap/hover\":952}],930:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.supplyDefaults=t(\"./defaults\"),n.calc=t(\"./calc\"),n.plot=t(\"./plot\").plot,n.style=t(\"./style\"),n.colorbar=t(\"./colorbar\"),n.hoverPoints=t(\"./hover\"),n.moduleType=\"trace\",n.name=\"contour\",n.basePlotModule=t(\"../../plots/cartesian\"),n.categories=[\"cartesian\",\"svg\",\"2dMap\",\"contour\",\"showLegend\"],n.meta={},e.exports=n},{\"../../plots/cartesian\":756,\"./attributes\":916,\"./calc\":917,\"./colorbar\":919,\"./defaults\":925,\"./hover\":929,\"./plot\":934,\"./style\":936}],931:[function(t,e,r){\"use strict\";var n=t(\"../../lib\");e.exports=function(t,e,r,i){if(i||(i={}),t(\"contours.showlabels\")){var a=e.font;n.coerceFont(t,\"contours.labelfont\",{family:a.family,size:a.size,color:r}),t(\"contours.labelformat\")}!1!==i.hasHover&&t(\"zhoverformat\")}},{\"../../lib\":696}],932:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../../components/colorscale\"),a=t(\"./end_plus\");e.exports=function(t){var e=t.contours,r=e.start,o=a(e),s=e.size||1,l=Math.floor((o-r)/s)+1,c=\"lines\"===e.coloring?0:1;isFinite(s)||(s=1,l=1);var u,f,h=t.colorscale,p=h.length,d=new Array(p),g=new Array(p);if(\"heatmap\"===e.coloring){for(t.zauto&&!1===t.autocontour&&(t.zmin=r-s/2,t.zmax=t.zmin+l*s),f=0;f<p;f++)u=h[f],d[f]=u[0]*(t.zmax-t.zmin)+t.zmin,g[f]=u[1];var v=n.extent([t.zmin,t.zmax,e.start,e.start+s*(l-1)]),m=v[t.zmin<t.zmax?0:1],y=v[t.zmin<t.zmax?1:0];m!==t.zmin&&(d.splice(0,0,m),g.splice(0,0,Range[0])),y!==t.zmax&&(d.push(y),g.push(g[g.length-1]))}else for(f=0;f<p;f++)u=h[f],d[f]=(u[0]*(l+c-1)-c/2)*s+r,g[f]=u[1];return i.makeColorScaleFunc({domain:d,range:g},{noNumericCheck:!0})}},{\"../../components/colorscale\":585,\"./end_plus\":927,d3:148}],933:[function(t,e,r){\"use strict\";var n=t(\"./constants\");function i(t,e){var r=(e[0][0]>t?0:1)+(e[0][1]>t?0:2)+(e[1][1]>t?0:4)+(e[1][0]>t?0:8);return 5===r||10===r?t>(e[0][0]+e[0][1]+e[1][0]+e[1][1])/4?5===r?713:1114:5===r?104:208:15===r?0:r}e.exports=function(t){var e,r,a,o,s,l,c,u,f,h=t[0].z,p=h.length,d=h[0].length,g=2===p||2===d;for(r=0;r<p-1;r++)for(o=[],0===r&&(o=o.concat(n.BOTTOMSTART)),r===p-2&&(o=o.concat(n.TOPSTART)),e=0;e<d-1;e++)for(a=o.slice(),0===e&&(a=a.concat(n.LEFTSTART)),e===d-2&&(a=a.concat(n.RIGHTSTART)),s=e+\",\"+r,l=[[h[r][e],h[r][e+1]],[h[r+1][e],h[r+1][e+1]]],f=0;f<t.length;f++)(c=i((u=t[f]).level,l))&&(u.crossings[s]=c,-1!==a.indexOf(c)&&(u.starts.push([e,r]),g&&-1!==a.indexOf(c,a.indexOf(c)+1)&&u.starts.push([e,r])))}},{\"./constants\":920}],934:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../../lib\"),a=t(\"../../components/drawing\"),o=t(\"../../lib/svg_text_utils\"),s=t(\"../../plots/cartesian/axes\"),l=t(\"../../plots/cartesian/set_convert\"),c=t(\"../heatmap/plot\"),u=t(\"./make_crossings\"),f=t(\"./find_all_paths\"),h=t(\"./empty_pathinfo\"),p=t(\"./convert_to_constraints\"),d=t(\"./close_boundaries\"),g=t(\"./constants\"),v=g.LABELOPTIMIZER;function m(t,e){var r,n,o,s,l,c,u,f=function(t,e){var r=t.prefixBoundary;if(void 0===r){var n=Math.min(t.z[0][0],t.z[0][1]);r=!t.edgepaths.length&&n>t.level}return r?\"M\"+e.join(\"L\")+\"Z\":\"\"}(t,e),h=0,p=t.edgepaths.map(function(t,e){return e}),d=!0;function g(t){return Math.abs(t[1]-e[2][1])<.01}function v(t){return Math.abs(t[0]-e[0][0])<.01}function m(t){return Math.abs(t[0]-e[2][0])<.01}for(;p.length;){for(c=a.smoothopen(t.edgepaths[h],t.smoothing),f+=d?c:c.replace(/^M/,\"L\"),p.splice(p.indexOf(h),1),r=t.edgepaths[h][t.edgepaths[h].length-1],s=-1,o=0;o<4;o++){if(!r){i.log(\"Missing end?\",h,t);break}for(u=r,Math.abs(u[1]-e[0][1])<.01&&!m(r)?n=e[1]:v(r)?n=e[0]:g(r)?n=e[3]:m(r)&&(n=e[2]),l=0;l<t.edgepaths.length;l++){var y=t.edgepaths[l][0];Math.abs(r[0]-n[0])<.01?Math.abs(r[0]-y[0])<.01&&(y[1]-r[1])*(n[1]-y[1])>=0&&(n=y,s=l):Math.abs(r[1]-n[1])<.01?Math.abs(r[1]-y[1])<.01&&(y[0]-r[0])*(n[0]-y[0])>=0&&(n=y,s=l):i.log(\"endpt to newendpt is not vert. or horz.\",r,n,y)}if(r=n,s>=0)break;f+=\"L\"+n}if(s===t.edgepaths.length){i.log(\"unclosed perimeter path\");break}h=s,(d=-1===p.indexOf(h))&&(h=p[0],f+=\"Z\")}for(h=0;h<t.paths.length;h++)f+=a.smoothclosed(t.paths[h],t.smoothing);return f}function y(t,e,r,n){var a=e.width/2,o=e.height/2,s=t.x,l=t.y,c=t.theta,u=Math.cos(c)*a,f=Math.sin(c)*a,h=(s>n.center?n.right-s:s-n.left)/(u+Math.abs(Math.sin(c)*o)),p=(l>n.middle?n.bottom-l:l-n.top)/(Math.abs(f)+Math.cos(c)*o);if(h<1||p<1)return 1/0;var d=v.EDGECOST*(1/(h-1)+1/(p-1));d+=v.ANGLECOST*c*c;for(var g=s-u,m=l-f,y=s+u,x=l+f,b=0;b<r.length;b++){var _=r[b],w=Math.cos(_.theta)*_.width/2,k=Math.sin(_.theta)*_.width/2,M=2*i.segmentDistance(g,m,y,x,_.x-w,_.y-k,_.x+w,_.y+k)/(e.height+_.height),A=_.level===e.level,T=A?v.SAMELEVELDISTANCE:1;if(M<=T)return 1/0;d+=v.NEIGHBORCOST*(A?v.SAMELEVELFACTOR:1)/(M-T)}return d}r.plot=function(t,e,o,s){var l=e.xaxis,v=e.yaxis,y=t._fullLayout;i.makeTraceGroups(s,o,\"contour\").each(function(o){var s=n.select(this),x=o[0],b=x.trace,_=x.x,w=x.y,k=b.contours,M=h(k,e,x),A=i.ensureSingle(s,\"g\",\"heatmapcoloring\"),T=[];\"heatmap\"===k.coloring&&(b.zauto&&!1===b.autocontour&&(b._input.zmin=b.zmin=k.start-k.size/2,b._input.zmax=b.zmax=b.zmin+M.length*k.size),T=[o]),c(t,e,T,A),u(M),f(M);var S=l.c2p(_[0],!0),E=l.c2p(_[_.length-1],!0),C=v.c2p(w[0],!0),L=v.c2p(w[w.length-1],!0),z=[[S,L],[E,L],[E,C],[S,C]],O=M;\"constraint\"===k.type&&(O=p(M,k._operation),d(O,k._operation,z,b)),function(t,e,r){var n=i.ensureSingle(t,\"g\",\"contourbg\").selectAll(\"path\").data(\"fill\"===r.coloring?[0]:[]);n.enter().append(\"path\"),n.exit().remove(),n.attr(\"d\",\"M\"+e.join(\"L\")+\"Z\").style(\"stroke\",\"none\")}(s,z,k),function(t,e,r,a){var o=i.ensureSingle(t,\"g\",\"contourfill\").selectAll(\"path\").data(\"fill\"===a.coloring||\"constraint\"===a.type&&\"=\"!==a._operation?e:[]);o.enter().append(\"path\"),o.exit().remove(),o.each(function(t){var e=m(t,r);e?n.select(this).attr(\"d\",e).style(\"stroke\",\"none\"):n.select(this).remove()})}(s,O,z,k),function(t,e,o,s,l,c){var u=i.ensureSingle(t,\"g\",\"contourlines\"),f=!1!==l.showlines,h=l.showlabels,p=f&&h,d=r.createLines(u,f||h,e),v=r.createLineClip(u,p,o._fullLayout._clips,s.trace.uid),m=t.selectAll(\"g.contourlabels\").data(h?[0]:[]);if(m.exit().remove(),m.enter().append(\"g\").classed(\"contourlabels\",!0),h){var y=[c],x=[];i.clearLocationCache();var b=r.labelFormatter(l,s.t.cb,o._fullLayout),_=a.tester.append(\"text\").attr(\"data-notex\",1).call(a.font,l.labelfont),w=e[0].xaxis._length,k=e[0].yaxis._length,M={left:Math.max(c[0][0],0),right:Math.min(c[2][0],w),top:Math.max(c[0][1],0),bottom:Math.min(c[2][1],k)};M.middle=(M.top+M.bottom)/2,M.center=(M.left+M.right)/2;var A=Math.sqrt(w*w+k*k),T=g.LABELDISTANCE*A/Math.max(1,e.length/g.LABELINCREASE);d.each(function(t){var e=r.calcTextOpts(t.level,b,_,o);n.select(this).selectAll(\"path\").each(function(){var t=i.getVisibleSegment(this,M,e.height/2);if(t&&!(t.len<(e.width+e.height)*g.LABELMIN))for(var n=Math.min(Math.ceil(t.len/T),g.LABELMAX),a=0;a<n;a++){var o=r.findBestTextLocation(this,t,e,x,M);if(!o)break;r.addLabelData(o,e,x,y)}})}),_.remove(),r.drawLabels(m,x,o,v,p?y:null)}h&&!f&&d.remove()}(s,M,t,x,k,z),function(t,e,r,n,o){var s=\"clip\"+n.trace.uid,l=r.selectAll(\"#\"+s).data(n.trace.connectgaps?[]:[0]);if(l.enter().append(\"clipPath\").classed(\"contourclip\",!0).attr(\"id\",s),l.exit().remove(),!1===n.trace.connectgaps){var c={level:.9,crossings:{},starts:[],edgepaths:[],paths:[],xaxis:e.xaxis,yaxis:e.yaxis,x:n.x,y:n.y,z:function(t){var e,r,n=t.trace._emptypoints,i=[],a=t.z.length,o=t.z[0].length,s=[];for(e=0;e<o;e++)s.push(1);for(e=0;e<a;e++)i.push(s.slice());for(e=0;e<n.length;e++)r=n[e],i[r[0]][r[1]]=0;return t.zmask=i,i}(n),smoothing:0};u([c]),f([c]);var h=m(c,o),p=i.ensureSingle(l,\"path\",\"\");p.attr(\"d\",h)}else s=null;t.call(a.setClipUrl,s)}(s,e,y._clips,x,z)})},r.createLines=function(t,e,r){var n=r[0].smoothing,i=t.selectAll(\"g.contourlevel\").data(e?r:[]);if(i.exit().remove(),i.enter().append(\"g\").classed(\"contourlevel\",!0),e){var o=i.selectAll(\"path.openline\").data(function(t){return t.pedgepaths||t.edgepaths});o.exit().remove(),o.enter().append(\"path\").classed(\"openline\",!0),o.attr(\"d\",function(t){return a.smoothopen(t,n)}).style(\"stroke-miterlimit\",1).style(\"vector-effect\",\"non-scaling-stroke\");var s=i.selectAll(\"path.closedline\").data(function(t){return t.ppaths||t.paths});s.exit().remove(),s.enter().append(\"path\").classed(\"closedline\",!0),s.attr(\"d\",function(t){return a.smoothclosed(t,n)}).style(\"stroke-miterlimit\",1).style(\"vector-effect\",\"non-scaling-stroke\")}return i},r.createLineClip=function(t,e,r,n){var i=e?\"clipline\"+n:null,o=r.selectAll(\"#\"+i).data(e?[0]:[]);return o.exit().remove(),o.enter().append(\"clipPath\").classed(\"contourlineclip\",!0).attr(\"id\",i),a.setClipUrl(t,i),o},r.labelFormatter=function(t,e,r){if(t.labelformat)return r._d3locale.numberFormat(t.labelformat);var n;if(e)n=e.axis;else{if(n={type:\"linear\",_id:\"ycontour\",showexponent:\"all\",exponentformat:\"B\"},\"constraint\"===t.type){var i=t.value;Array.isArray(i)?n.range=[i[0],i[i.length-1]]:n.range=[i,i]}else n.range=[t.start,t.end],n.nticks=(t.end-t.start)/t.size;n.range[0]===n.range[1]&&(n.range[1]+=n.range[0]||1),n.nticks||(n.nticks=1e3),l(n,r),s.prepTicks(n),n._tmin=null,n._tmax=null}return function(t){return s.tickText(n,t).text}},r.calcTextOpts=function(t,e,r,n){var i=e(t);r.text(i).call(o.convertToTspans,n);var s=a.bBox(r.node(),!0);return{text:i,width:s.width,height:s.height,level:t,dy:(s.top+s.bottom)/2}},r.findBestTextLocation=function(t,e,r,n,a){var o,s,l,c,u,f=r.width;e.isClosed?(s=e.len/v.INITIALSEARCHPOINTS,o=e.min+s/2,l=e.max):(s=(e.len-f)/(v.INITIALSEARCHPOINTS+1),o=e.min+s+f/2,l=e.max-(s+f)/2);for(var h=1/0,p=0;p<v.ITERATIONS;p++){for(var d=o;d<l;d+=s){var g=i.getTextLocation(t,e.total,d,f),m=y(g,r,n,a);m<h&&(h=m,u=g,c=d)}if(h>2*v.MAXCOST)break;p&&(s/=2),l=(o=c-s/2)+1.5*s}if(h<=v.MAXCOST)return u},r.addLabelData=function(t,e,r,n){var i=e.width/2,a=e.height/2,o=t.x,s=t.y,l=t.theta,c=Math.sin(l),u=Math.cos(l),f=i*u,h=a*c,p=i*c,d=-a*u,g=[[o-f-h,s-p-d],[o+f-h,s+p-d],[o+f+h,s+p+d],[o-f+h,s-p+d]];r.push({text:e.text,x:o,y:s,dy:e.dy,theta:l,level:e.level,width:e.width,height:e.height}),n.push(g)},r.drawLabels=function(t,e,r,a,s){var l=t.selectAll(\"text\").data(e,function(t){return t.text+\",\"+t.x+\",\"+t.y+\",\"+t.theta});if(l.exit().remove(),l.enter().append(\"text\").attr({\"data-notex\":1,\"text-anchor\":\"middle\"}).each(function(t){var e=t.x+Math.sin(t.theta)*t.dy,i=t.y-Math.cos(t.theta)*t.dy;n.select(this).text(t.text).attr({x:e,y:i,transform:\"rotate(\"+180*t.theta/Math.PI+\" \"+e+\" \"+i+\")\"}).call(o.convertToTspans,r)}),s){for(var c=\"\",u=0;u<s.length;u++)c+=\"M\"+s[u].join(\"L\")+\"Z\";i.ensureSingle(a,\"path\",\"\").attr(\"d\",c)}}},{\"../../components/drawing\":595,\"../../lib\":696,\"../../lib/svg_text_utils\":720,\"../../plots/cartesian/axes\":744,\"../../plots/cartesian/set_convert\":763,\"../heatmap/plot\":957,\"./close_boundaries\":918,\"./constants\":920,\"./convert_to_constraints\":924,\"./empty_pathinfo\":926,\"./find_all_paths\":928,\"./make_crossings\":933,d3:148}],935:[function(t,e,r){\"use strict\";var n=t(\"../../plots/cartesian/axes\"),i=t(\"../../lib\");function a(t,e,r){var i={type:\"linear\",range:[t,e]};return n.autoTicks(i,(e-t)/(r||15)),i}e.exports=function(t){var e=t.contours;if(t.autocontour){var r=t.zmin,o=t.zmax;void 0!==r&&void 0!==o||(r=i.aggNums(Math.min,null,t._z),o=i.aggNums(Math.max,null,t._z));var s=a(r,o,t.ncontours);e.size=s.dtick,e.start=n.tickFirst(s),s.range.reverse(),e.end=n.tickFirst(s),e.start===r&&(e.start+=e.size),e.end===o&&(e.end-=e.size),e.start>e.end&&(e.start=e.end=(e.start+e.end)/2),t._input.contours||(t._input.contours={}),i.extendFlat(t._input.contours,{start:e.start,end:e.end,size:e.size}),t._input.autocontour=!0}else if(\"constraint\"!==e.type){var l,c=e.start,u=e.end,f=t._input.contours;if(c>u&&(e.start=f.start=u,u=e.end=f.end=c,c=e.start),!(e.size>0))l=c===u?1:a(c,u,t.ncontours).dtick,f.size=e.size=l}}},{\"../../lib\":696,\"../../plots/cartesian/axes\":744}],936:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../../components/drawing\"),a=t(\"../heatmap/style\"),o=t(\"./make_color_map\");e.exports=function(t){var e=n.select(t).selectAll(\"g.contour\");e.style(\"opacity\",function(t){return t[0].trace.opacity}),e.each(function(t){var e=n.select(this),r=t[0].trace,a=r.contours,s=r.line,l=a.size||1,c=a.start,u=\"constraint\"===a.type,f=!u&&\"lines\"===a.coloring,h=!u&&\"fill\"===a.coloring,p=f||h?o(r):null;e.selectAll(\"g.contourlevel\").each(function(t){n.select(this).selectAll(\"path\").call(i.lineGroupStyle,s.width,f?p(t.level):s.color,s.dash)});var d=a.labelfont;if(e.selectAll(\"g.contourlabels text\").each(function(t){i.font(n.select(this),{family:d.family,size:d.size,color:d.color||(f?p(t.level):s.color)})}),u)e.selectAll(\"g.contourfill path\").style(\"fill\",r.fillcolor);else if(h){var g;e.selectAll(\"g.contourfill path\").style(\"fill\",function(t){return void 0===g&&(g=t.level),p(t.level+.5*l)}),void 0===g&&(g=c),e.selectAll(\"g.contourbg path\").style(\"fill\",p(g-.5*l))}}),a(t)}},{\"../../components/drawing\":595,\"../heatmap/style\":958,\"./make_color_map\":932,d3:148}],937:[function(t,e,r){\"use strict\";var n=t(\"../../components/colorscale/defaults\"),i=t(\"./label_defaults\");e.exports=function(t,e,r,a,o){var s,l=r(\"contours.coloring\"),c=\"\";\"fill\"===l&&(s=r(\"contours.showlines\")),!1!==s&&(\"lines\"!==l&&(c=r(\"line.color\",\"#000\")),r(\"line.width\",.5),r(\"line.dash\")),\"none\"!==l&&(!0!==t.showlegend&&(e.showlegend=!1),e._dfltShowLegend=!1,n(t,e,a,r,{prefix:\"\",cLetter:\"z\"})),r(\"line.smoothing\"),i(r,a,c,o)}},{\"../../components/colorscale/defaults\":580,\"./label_defaults\":931}],938:[function(t,e,r){\"use strict\";var n=t(\"../heatmap/attributes\"),i=t(\"../contour/attributes\"),a=i.contours,o=t(\"../scatter/attributes\"),s=t(\"../../components/colorscale/attributes\"),l=t(\"../../components/colorbar/attributes\"),c=t(\"../../lib/extend\").extendFlat,u=o.line;e.exports=c({carpet:{valType:\"string\",editType:\"calc\"},z:n.z,a:n.x,a0:n.x0,da:n.dx,b:n.y,b0:n.y0,db:n.dy,text:n.text,transpose:n.transpose,atype:n.xtype,btype:n.ytype,fillcolor:i.fillcolor,autocontour:i.autocontour,ncontours:i.ncontours,contours:{type:a.type,start:a.start,end:a.end,size:a.size,coloring:{valType:\"enumerated\",values:[\"fill\",\"lines\",\"none\"],dflt:\"fill\",editType:\"calc\"},showlines:a.showlines,showlabels:a.showlabels,labelfont:a.labelfont,labelformat:a.labelformat,operation:a.operation,value:a.value,editType:\"calc\",impliedEdits:{autocontour:!1}},line:{color:c({},u.color,{}),width:u.width,dash:u.dash,smoothing:c({},u.smoothing,{}),editType:\"plot\"},transforms:void 0},s(\"\",{cLetter:\"z\",autoColorDflt:!1}),{colorbar:l})},{\"../../components/colorbar/attributes\":571,\"../../components/colorscale/attributes\":577,\"../../lib/extend\":685,\"../contour/attributes\":916,\"../heatmap/attributes\":945,\"../scatter/attributes\":1043}],939:[function(t,e,r){\"use strict\";var n=t(\"../../components/colorscale/calc\"),i=t(\"../../lib\").isArray1D,a=t(\"../heatmap/convert_column_xyz\"),o=t(\"../heatmap/clean_2d_array\"),s=t(\"../heatmap/max_row_length\"),l=t(\"../heatmap/interp2d\"),c=t(\"../heatmap/find_empties\"),u=t(\"../heatmap/make_bound_array\"),f=t(\"./defaults\"),h=t(\"../carpet/lookup_carpetid\"),p=t(\"../contour/set_contours\");e.exports=function(t,e){var r=e._carpetTrace=h(t,e);if(r&&r.visible&&\"legendonly\"!==r.visible){if(!e.a||!e.b){var d=t.data[r.index],g=t.data[e.index];g.a||(g.a=d.a),g.b||(g.b=d.b),f(g,e,e._defaultColor,t._fullLayout)}var v=function(t,e){var r,f,h,p,d,g,v,m=e._carpetTrace,y=m.aaxis,x=m.baxis;y._minDtick=0,x._minDtick=0,i(e.z)&&a(e,y,x,\"a\",\"b\",[\"z\"]);r=e._a=e._a||e.a,p=e._b=e._b||e.b,r=r?y.makeCalcdata(e,\"_a\"):[],p=p?x.makeCalcdata(e,\"_b\"):[],f=e.a0||0,h=e.da||1,d=e.b0||0,g=e.db||1,v=e._z=o(e._z||e.z,e.transpose),e._emptypoints=c(v),l(v,e._emptypoints);var b=s(v),_=\"scaled\"===e.xtype?\"\":r,w=u(e,_,f,h,b,y),k=\"scaled\"===e.ytype?\"\":p,M=u(e,k,d,g,v.length,x),A={a:w,b:M,z:v};\"levels\"===e.contours.type&&\"none\"!==e.contours.coloring&&n(e,v,\"\",\"z\");return[A]}(0,e);return p(e),v}}},{\"../../components/colorscale/calc\":578,\"../../lib\":696,\"../carpet/lookup_carpetid\":894,\"../contour/set_contours\":935,\"../heatmap/clean_2d_array\":947,\"../heatmap/convert_column_xyz\":949,\"../heatmap/find_empties\":951,\"../heatmap/interp2d\":954,\"../heatmap/make_bound_array\":955,\"../heatmap/max_row_length\":956,\"./defaults\":940}],940:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../heatmap/xyz_defaults\"),a=t(\"./attributes\"),o=t(\"../contour/constraint_defaults\"),s=t(\"../contour/contours_defaults\"),l=t(\"../contour/style_defaults\");e.exports=function(t,e,r,c){function u(r,i){return n.coerce(t,e,a,r,i)}if(u(\"carpet\"),t.a&&t.b){if(!i(t,e,u,c,\"a\",\"b\"))return void(e.visible=!1);u(\"text\"),\"constraint\"===u(\"contours.type\")?o(t,e,u,c,r,{hasHover:!1}):(s(t,e,u,function(r){return n.coerce2(t,e,a,r)}),l(t,e,u,c,{hasHover:!1}))}else e._defaultColor=r,e._length=null}},{\"../../lib\":696,\"../contour/constraint_defaults\":921,\"../contour/contours_defaults\":923,\"../contour/style_defaults\":937,\"../heatmap/xyz_defaults\":960,\"./attributes\":938}],941:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.supplyDefaults=t(\"./defaults\"),n.colorbar=t(\"../contour/colorbar\"),n.calc=t(\"./calc\"),n.plot=t(\"./plot\"),n.style=t(\"../contour/style\"),n.moduleType=\"trace\",n.name=\"contourcarpet\",n.basePlotModule=t(\"../../plots/cartesian\"),n.categories=[\"cartesian\",\"svg\",\"carpet\",\"contour\",\"symbols\",\"showLegend\",\"hasLines\",\"carpetDependent\"],n.meta={},e.exports=n},{\"../../plots/cartesian\":756,\"../contour/colorbar\":919,\"../contour/style\":936,\"./attributes\":938,\"./calc\":939,\"./defaults\":940,\"./plot\":944}],942:[function(t,e,r){\"use strict\";var n=t(\"../../components/drawing\"),i=t(\"../carpet/axis_aligned_line\"),a=t(\"../../lib\");e.exports=function(t,e,r,o,s,l,c,u){var f,h,p,d,g,v,m,y=\"\",x=e.edgepaths.map(function(t,e){return e}),b=!0,_=1e-4*Math.abs(r[0][0]-r[2][0]),w=1e-4*Math.abs(r[0][1]-r[2][1]);function k(t){return Math.abs(t[1]-r[0][1])<w}function M(t){return Math.abs(t[1]-r[2][1])<w}function A(t){return Math.abs(t[0]-r[0][0])<_}function T(t){return Math.abs(t[0]-r[2][0])<_}function S(t,e){var r,n,a,o,f=\"\";for(k(t)&&!T(t)||M(t)&&!A(t)?(o=s.aaxis,a=i(s,l,[t[0],e[0]],.5*(t[1]+e[1]))):(o=s.baxis,a=i(s,l,.5*(t[0]+e[0]),[t[1],e[1]])),r=1;r<a.length;r++)for(f+=o.smoothing?\"C\":\"L\",n=0;n<a[r].length;n++){var h=a[r][n];f+=[c.c2p(h[0]),u.c2p(h[1])]+\" \"}return f}for(f=0,h=null;x.length;){var E=e.edgepaths[f][0];for(h&&(y+=S(h,E)),m=n.smoothopen(e.edgepaths[f].map(o),e.smoothing),y+=b?m:m.replace(/^M/,\"L\"),x.splice(x.indexOf(f),1),h=e.edgepaths[f][e.edgepaths[f].length-1],g=-1,d=0;d<4;d++){if(!h){a.log(\"Missing end?\",f,e);break}for(k(h)&&!T(h)?p=r[1]:A(h)?p=r[0]:M(h)?p=r[3]:T(h)&&(p=r[2]),v=0;v<e.edgepaths.length;v++){var C=e.edgepaths[v][0];Math.abs(h[0]-p[0])<_?Math.abs(h[0]-C[0])<_&&(C[1]-h[1])*(p[1]-C[1])>=0&&(p=C,g=v):Math.abs(h[1]-p[1])<w?Math.abs(h[1]-C[1])<w&&(C[0]-h[0])*(p[0]-C[0])>=0&&(p=C,g=v):a.log(\"endpt to newendpt is not vert. or horz.\",h,p,C)}if(g>=0)break;y+=S(h,p),h=p}if(g===e.edgepaths.length){a.log(\"unclosed perimeter path\");break}f=g,(b=-1===x.indexOf(f))&&(f=x[0],y+=S(h,p)+\"Z\",h=null)}for(f=0;f<e.paths.length;f++)y+=n.smoothclosed(e.paths[f].map(o),e.smoothing);return y}},{\"../../components/drawing\":595,\"../../lib\":696,\"../carpet/axis_aligned_line\":878}],943:[function(t,e,r){\"use strict\";e.exports=function(t,e){var r,n,i,a,o,s,l,c,u;for(r=0;r<t.length;r++){for(o=(a=t[r]).pedgepaths=[],s=a.ppaths=[],n=0;n<a.edgepaths.length;n++){for(u=a.edgepaths[n],l=[],i=0;i<u.length;i++)l[i]=e(u[i]);o.push(l)}for(n=0;n<a.paths.length;n++){for(u=a.paths[n],c=[],i=0;i<u.length;i++)c[i]=e(u[i]);s.push(c)}}}},{}],944:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../carpet/map_1d_array\"),a=t(\"../carpet/makepath\"),o=t(\"../../components/drawing\"),s=t(\"../../lib\"),l=t(\"../contour/make_crossings\"),c=t(\"../contour/find_all_paths\"),u=t(\"../contour/plot\"),f=t(\"../contour/constants\"),h=t(\"../contour/convert_to_constraints\"),p=t(\"./join_all_paths\"),d=t(\"../contour/empty_pathinfo\"),g=t(\"./map_pathinfo\"),v=t(\"../carpet/lookup_carpetid\"),m=t(\"../contour/close_boundaries\");function y(t,e,r){var n=t.getPointAtLength(e),i=t.getPointAtLength(r),a=i.x-n.x,o=i.y-n.y,s=Math.sqrt(a*a+o*o);return[a/s,o/s]}function x(t){var e=Math.sqrt(t[0]*t[0]+t[1]*t[1]);return[t[0]/e,t[1]/e]}function b(t,e){var r=Math.abs(t[0]*e[0]+t[1]*e[1]);return Math.sqrt(1-r*r)/r}e.exports=function(t,e,r,_){var w=e.xaxis,k=e.yaxis;s.makeTraceGroups(_,r,\"contour\").each(function(r){var _=n.select(this),M=r[0],A=M.trace,T=A._carpetTrace=v(t,A),S=t.calcdata[T.index][0];if(T.visible&&\"legendonly\"!==T.visible){var E=M.a,C=M.b,L=A.contours,z=d(L,e,M),O=\"constraint\"===L.type,I=L._operation,P=O?\"=\"===I?\"lines\":\"fill\":L.coloring,D=[[E[0],C[C.length-1]],[E[E.length-1],C[C.length-1]],[E[E.length-1],C[0]],[E[0],C[0]]];l(z);var R=1e-8*(E[E.length-1]-E[0]),B=1e-8*(C[C.length-1]-C[0]);c(z,R,B);var F,N,j,V,U=z;\"constraint\"===L.type&&(U=h(z,I),m(U,I,D,A)),g(z,G);var q=[];for(V=S.clipsegments.length-1;V>=0;V--)F=S.clipsegments[V],N=i([],F.x,w.c2p),j=i([],F.y,k.c2p),N.reverse(),j.reverse(),q.push(a(N,j,F.bicubic));var H=\"M\"+q.join(\"L\")+\"Z\";!function(t,e,r,n,o,l){var c,u,f,h,p=s.ensureSingle(t,\"g\",\"contourbg\").selectAll(\"path\").data(\"fill\"!==l||o?[]:[0]);p.enter().append(\"path\"),p.exit().remove();var d=[];for(h=0;h<e.length;h++)c=e[h],u=i([],c.x,r.c2p),f=i([],c.y,n.c2p),d.push(a(u,f,c.bicubic));p.attr(\"d\",\"M\"+d.join(\"L\")+\"Z\").style(\"stroke\",\"none\")}(_,S.clipsegments,w,k,O,P),function(t,e,r,i,a,o,l,c,u,f,h){var d=s.ensureSingle(e,\"g\",\"contourfill\").selectAll(\"path\").data(\"fill\"===f?a:[]);d.enter().append(\"path\"),d.exit().remove(),d.each(function(e){var a=p(t,e,o,l,c,u,r,i);e.prefixBoundary&&(a=h+a),a?n.select(this).attr(\"d\",a).style(\"stroke\",\"none\"):n.select(this).remove()})}(A,_,w,k,U,D,G,T,S,P,H),function(t,e,r,i,a,l,c){var h=s.ensureSingle(t,\"g\",\"contourlines\"),p=!1!==a.showlines,d=a.showlabels,g=p&&d,v=u.createLines(h,p||d,e),m=u.createLineClip(h,g,r._fullLayout._defs,i.trace.uid),_=t.selectAll(\"g.contourlabels\").data(d?[0]:[]);if(_.exit().remove(),_.enter().append(\"g\").classed(\"contourlabels\",!0),d){var w=l.xaxis,k=l.yaxis,M=w._length,A=k._length,T=[[[0,0],[M,0],[M,A],[0,A]]],S=[];s.clearLocationCache();var E=u.labelFormatter(a,i.t.cb,r._fullLayout),C=o.tester.append(\"text\").attr(\"data-notex\",1).call(o.font,a.labelfont),L={left:0,right:M,center:M/2,top:0,bottom:A,middle:A/2},z=Math.sqrt(M*M+A*A),O=f.LABELDISTANCE*z/Math.max(1,e.length/f.LABELINCREASE);v.each(function(t){var e=u.calcTextOpts(t.level,E,C,r);n.select(this).selectAll(\"path\").each(function(r){var n=s.getVisibleSegment(this,L,e.height/2);if(n&&(function(t,e,r,n,i,a){for(var o,s=0;s<r.pedgepaths.length;s++)e===r.pedgepaths[s]&&(o=r.edgepaths[s]);if(!o)return;var l=i.a[0],c=i.a[i.a.length-1],u=i.b[0],f=i.b[i.b.length-1];function h(t,e){var r,n=0;return(Math.abs(t[0]-l)<.1||Math.abs(t[0]-c)<.1)&&(r=x(i.dxydb_rough(t[0],t[1],.1)),n=Math.max(n,a*b(e,r)/2)),(Math.abs(t[1]-u)<.1||Math.abs(t[1]-f)<.1)&&(r=x(i.dxyda_rough(t[0],t[1],.1)),n=Math.max(n,a*b(e,r)/2)),n}var p=y(t,0,1),d=y(t,n.total,n.total-1),g=h(o[0],p),v=n.total-h(o[o.length-1],d);n.min<g&&(n.min=g);n.max>v&&(n.max=v);n.len=n.max-n.min}(this,r,t,n,c,e.height),!(n.len<(e.width+e.height)*f.LABELMIN)))for(var i=Math.min(Math.ceil(n.len/O),f.LABELMAX),a=0;a<i;a++){var o=u.findBestTextLocation(this,n,e,S,L);if(!o)break;u.addLabelData(o,e,S,T)}})}),C.remove(),u.drawLabels(_,S,r,m,g?T:null)}d&&!p&&v.remove()}(_,z,t,M,L,e,T),o.setClipUrl(_,T._clipPathId)}function G(t){var e=T.ab2xy(t[0],t[1],!0);return[w.c2p(e[0]),k.c2p(e[1])]}})}},{\"../../components/drawing\":595,\"../../lib\":696,\"../carpet/lookup_carpetid\":894,\"../carpet/makepath\":895,\"../carpet/map_1d_array\":896,\"../contour/close_boundaries\":918,\"../contour/constants\":920,\"../contour/convert_to_constraints\":924,\"../contour/empty_pathinfo\":926,\"../contour/find_all_paths\":928,\"../contour/make_crossings\":933,\"../contour/plot\":934,\"./join_all_paths\":942,\"./map_pathinfo\":943,d3:148}],945:[function(t,e,r){\"use strict\";var n=t(\"../scatter/attributes\"),i=t(\"../../components/colorscale/attributes\"),a=t(\"../../components/colorbar/attributes\"),o=t(\"../../lib/extend\").extendFlat;e.exports=o({z:{valType:\"data_array\",editType:\"calc\"},x:o({},n.x,{impliedEdits:{xtype:\"array\"}}),x0:o({},n.x0,{impliedEdits:{xtype:\"scaled\"}}),dx:o({},n.dx,{impliedEdits:{xtype:\"scaled\"}}),y:o({},n.y,{impliedEdits:{ytype:\"array\"}}),y0:o({},n.y0,{impliedEdits:{ytype:\"scaled\"}}),dy:o({},n.dy,{impliedEdits:{ytype:\"scaled\"}}),text:{valType:\"data_array\",editType:\"calc\"},transpose:{valType:\"boolean\",dflt:!1,editType:\"calc\"},xtype:{valType:\"enumerated\",values:[\"array\",\"scaled\"],editType:\"calc+clearAxisTypes\"},ytype:{valType:\"enumerated\",values:[\"array\",\"scaled\"],editType:\"calc+clearAxisTypes\"},zsmooth:{valType:\"enumerated\",values:[\"fast\",\"best\",!1],dflt:!1,editType:\"calc\"},connectgaps:{valType:\"boolean\",dflt:!1,editType:\"calc\"},xgap:{valType:\"number\",dflt:0,min:0,editType:\"plot\"},ygap:{valType:\"number\",dflt:0,min:0,editType:\"plot\"},zhoverformat:{valType:\"string\",dflt:\"\",editType:\"none\"},transforms:void 0},i(\"\",{cLetter:\"z\",autoColorDflt:!1}),{colorbar:a})},{\"../../components/colorbar/attributes\":571,\"../../components/colorscale/attributes\":577,\"../../lib/extend\":685,\"../scatter/attributes\":1043}],946:[function(t,e,r){\"use strict\";var n=t(\"../../registry\"),i=t(\"../../lib\"),a=t(\"../../plots/cartesian/axes\"),o=t(\"../histogram2d/calc\"),s=t(\"../../components/colorscale/calc\"),l=t(\"./convert_column_xyz\"),c=t(\"./max_row_length\"),u=t(\"./clean_2d_array\"),f=t(\"./interp2d\"),h=t(\"./find_empties\"),p=t(\"./make_bound_array\");e.exports=function(t,e){var r,d,g,v,m,y,x,b,_,w=a.getFromId(t,e.xaxis||\"x\"),k=a.getFromId(t,e.yaxis||\"y\"),M=n.traceIs(e,\"contour\"),A=n.traceIs(e,\"histogram\"),T=n.traceIs(e,\"gl2d\"),S=M?\"best\":e.zsmooth;if(w._minDtick=0,k._minDtick=0,A)r=(_=o(t,e)).x,d=_.x0,g=_.dx,v=_.y,m=_.y0,y=_.dy,x=_.z;else{var E=e.z;i.isArray1D(E)?(l(e,w,k,\"x\",\"y\",[\"z\"]),r=e._x,v=e._y,E=e._z):(r=e.x?w.makeCalcdata(e,\"x\"):[],v=e.y?k.makeCalcdata(e,\"y\"):[]),d=e.x0||0,g=e.dx||1,m=e.y0||0,y=e.dy||1,x=u(E,e.transpose),(M||e.connectgaps)&&(e._emptypoints=h(x),f(x,e._emptypoints))}function C(t){S=e._input.zsmooth=e.zsmooth=!1,i.warn('cannot use zsmooth: \"fast\": '+t)}if(\"fast\"===S)if(\"log\"===w.type||\"log\"===k.type)C(\"log axis found\");else if(!A){if(r.length){var L=(r[r.length-1]-r[0])/(r.length-1),z=Math.abs(L/100);for(b=0;b<r.length-1;b++)if(Math.abs(r[b+1]-r[b]-L)>z){C(\"x scale is not linear\");break}}if(v.length&&\"fast\"===S){var O=(v[v.length-1]-v[0])/(v.length-1),I=Math.abs(O/100);for(b=0;b<v.length-1;b++)if(Math.abs(v[b+1]-v[b]-O)>I){C(\"y scale is not linear\");break}}}var P=c(x),D=\"scaled\"===e.xtype?\"\":r,R=p(e,D,d,g,P,w),B=\"scaled\"===e.ytype?\"\":v,F=p(e,B,m,y,x.length,k);T||(e._extremes[w._id]=a.findExtremes(w,R),e._extremes[k._id]=a.findExtremes(k,F));var N={x:R,y:F,z:x,text:e._text||e.text};if(D&&D.length===R.length-1&&(N.xCenter=D),B&&B.length===F.length-1&&(N.yCenter=B),A&&(N.xRanges=_.xRanges,N.yRanges=_.yRanges,N.pts=_.pts),M&&\"constraint\"===e.contours.type||s(e,x,\"\",\"z\"),M&&e.contours&&\"heatmap\"===e.contours.coloring){var j={type:\"contour\"===e.type?\"heatmap\":\"histogram2d\",xcalendar:e.xcalendar,ycalendar:e.ycalendar};N.xfill=p(j,D,d,g,P,w),N.yfill=p(j,B,m,y,x.length,k)}return[N]}},{\"../../components/colorscale/calc\":578,\"../../lib\":696,\"../../plots/cartesian/axes\":744,\"../../registry\":827,\"../histogram2d/calc\":977,\"./clean_2d_array\":947,\"./convert_column_xyz\":949,\"./find_empties\":951,\"./interp2d\":954,\"./make_bound_array\":955,\"./max_row_length\":956}],947:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\");e.exports=function(t,e){var r,i,a,o,s,l;function c(t){if(n(t))return+t}if(e){for(r=0,s=0;s<t.length;s++)r=Math.max(r,t[s].length);if(0===r)return!1;a=function(t){return t.length},o=function(t,e,r){return t[r][e]}}else r=t.length,a=function(t,e){return t[e].length},o=function(t,e,r){return t[e][r]};var u=new Array(r);for(s=0;s<r;s++)for(i=a(t,s),u[s]=new Array(i),l=0;l<i;l++)u[s][l]=c(o(t,s,l));return u}},{\"fast-isnumeric\":214}],948:[function(t,e,r){\"use strict\";e.exports={min:\"zmin\",max:\"zmax\"}},{}],949:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../constants/numerical\").BADNUM;e.exports=function(t,e,r,a,o,s){var l,c,u,f=t._length,h=t[a].slice(0,f),p=t[o].slice(0,f),d=t.text,g=void 0!==d&&n.isArray1D(d),v=t[a+\"calendar\"],m=t[o+\"calendar\"];for(l=0;l<f;l++)h[l]=e.d2c(h[l],0,v),p[l]=r.d2c(p[l],0,m);var y,x,b,_=n.distinctVals(h),w=_.vals,k=n.distinctVals(p),M=k.vals,A=[];for(l=0;l<s.length;l++)A[l]=n.init2dArray(M.length,w.length);for(g&&(b=n.init2dArray(M.length,w.length)),l=0;l<f;l++)if(h[l]!==i&&p[l]!==i){for(y=n.findBin(h[l]+_.minDiff/2,w),x=n.findBin(p[l]+k.minDiff/2,M),c=0;c<s.length;c++)u=t[s[c]],A[c][x][y]=u[l];g&&(b[x][y]=d[l])}for(t[\"_\"+a]=w,t[\"_\"+o]=M,c=0;c<s.length;c++)t[\"_\"+s[c]]=A[c];g&&(t._text=b)}},{\"../../constants/numerical\":673,\"../../lib\":696}],950:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"./xyz_defaults\"),a=t(\"./style_defaults\"),o=t(\"../../components/colorscale/defaults\"),s=t(\"./attributes\");e.exports=function(t,e,r,l){function c(r,i){return n.coerce(t,e,s,r,i)}i(t,e,c,l)?(c(\"text\"),a(t,e,c,l),c(\"connectgaps\",n.isArray1D(e.z)&&!1!==e.zsmooth),o(t,e,l,c,{prefix:\"\",cLetter:\"z\"})):e.visible=!1}},{\"../../components/colorscale/defaults\":580,\"../../lib\":696,\"./attributes\":945,\"./style_defaults\":959,\"./xyz_defaults\":960}],951:[function(t,e,r){\"use strict\";var n=t(\"./max_row_length\");e.exports=function(t){var e,r,i,a,o,s,l,c,u=[],f={},h=[],p=t[0],d=[],g=[0,0,0],v=n(t);for(r=0;r<t.length;r++)for(e=d,d=p,p=t[r+1]||[],i=0;i<v;i++)void 0===d[i]&&((s=(void 0!==d[i-1]?1:0)+(void 0!==d[i+1]?1:0)+(void 0!==e[i]?1:0)+(void 0!==p[i]?1:0))?(0===r&&s++,0===i&&s++,r===t.length-1&&s++,i===d.length-1&&s++,s<4&&(f[[r,i]]=[r,i,s]),u.push([r,i,s])):h.push([r,i]));for(;h.length;){for(l={},c=!1,o=h.length-1;o>=0;o--)(s=((f[[(r=(a=h[o])[0])-1,i=a[1]]]||g)[2]+(f[[r+1,i]]||g)[2]+(f[[r,i-1]]||g)[2]+(f[[r,i+1]]||g)[2])/20)&&(l[a]=[r,i,s],h.splice(o,1),c=!0);if(!c)throw\"findEmpties iterated with no new neighbors\";for(a in l)f[a]=l[a],u.push(l[a])}return u.sort(function(t,e){return e[2]-t[2]})}},{\"./max_row_length\":956}],952:[function(t,e,r){\"use strict\";var n=t(\"../../components/fx\"),i=t(\"../../lib\"),a=t(\"../../plots/cartesian/axes\");e.exports=function(t,e,r,o,s,l){var c,u,f,h,p=t.cd[0],d=p.trace,g=t.xa,v=t.ya,m=p.x,y=p.y,x=p.z,b=p.xCenter,_=p.yCenter,w=p.zmask,k=[d.zmin,d.zmax],M=d.zhoverformat,A=m,T=y;if(!1!==t.index){try{f=Math.round(t.index[1]),h=Math.round(t.index[0])}catch(e){return void i.error(\"Error hovering on heatmap, pointNumber must be [row,col], found:\",t.index)}if(f<0||f>=x[0].length||h<0||h>x.length)return}else{if(n.inbox(e-m[0],e-m[m.length-1],0)>0||n.inbox(r-y[0],r-y[y.length-1],0)>0)return;if(l){var S;for(A=[2*m[0]-m[1]],S=1;S<m.length;S++)A.push((m[S]+m[S-1])/2);for(A.push([2*m[m.length-1]-m[m.length-2]]),T=[2*y[0]-y[1]],S=1;S<y.length;S++)T.push((y[S]+y[S-1])/2);T.push([2*y[y.length-1]-y[y.length-2]])}f=Math.max(0,Math.min(A.length-2,i.findBin(e,A))),h=Math.max(0,Math.min(T.length-2,i.findBin(r,T)))}var E=g.c2p(m[f]),C=g.c2p(m[f+1]),L=v.c2p(y[h]),z=v.c2p(y[h+1]);l?(C=E,c=m[f],z=L,u=y[h]):(c=b?b[f]:(m[f]+m[f+1])/2,u=_?_[h]:(y[h]+y[h+1])/2,d.zsmooth&&(E=C=g.c2p(c),L=z=v.c2p(u)));var O,I,P=x[h][f];w&&!w[h][f]&&(P=void 0),Array.isArray(p.text)&&Array.isArray(p.text[h])&&(O=p.text[h][f]);var D={type:\"linear\",range:k,hoverformat:M,_separators:g._separators,_numFormat:g._numFormat};return I=a.tickText(D,P,\"hover\").text,[i.extendFlat(t,{index:[h,f],distance:t.maxHoverDistance,spikeDistance:t.maxSpikeDistance,x0:E,x1:C,y0:L,y1:z,xLabelVal:c,yLabelVal:u,zLabelVal:P,zLabel:I,text:O})]}},{\"../../components/fx\":612,\"../../lib\":696,\"../../plots/cartesian/axes\":744}],953:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.supplyDefaults=t(\"./defaults\"),n.calc=t(\"./calc\"),n.plot=t(\"./plot\"),n.colorbar=t(\"./colorbar\"),n.style=t(\"./style\"),n.hoverPoints=t(\"./hover\"),n.moduleType=\"trace\",n.name=\"heatmap\",n.basePlotModule=t(\"../../plots/cartesian\"),n.categories=[\"cartesian\",\"svg\",\"2dMap\"],n.meta={},e.exports=n},{\"../../plots/cartesian\":756,\"./attributes\":945,\"./calc\":946,\"./colorbar\":948,\"./defaults\":950,\"./hover\":952,\"./plot\":957,\"./style\":958}],954:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=[[-1,0],[1,0],[0,-1],[0,1]];function a(t){return.5-.25*Math.min(1,.5*t)}function o(t,e,r){var n,a,o,s,l,c,u,f,h,p,d,g,v,m=0;for(s=0;s<e.length;s++){for(a=(n=e[s])[0],o=n[1],d=t[a][o],p=0,h=0,l=0;l<4;l++)(u=t[a+(c=i[l])[0]])&&void 0!==(f=u[o+c[1]])&&(0===p?g=v=f:(g=Math.min(g,f),v=Math.max(v,f)),h++,p+=f);if(0===h)throw\"iterateInterp2d order is wrong: no defined neighbors\";t[a][o]=p/h,void 0===d?h<4&&(m=1):(t[a][o]=(1+r)*t[a][o]-r*d,v>g&&(m=Math.max(m,Math.abs(t[a][o]-d)/(v-g))))}return m}e.exports=function(t,e){var r,i=1;for(o(t,e),r=0;r<e.length&&!(e[r][2]<4);r++);for(e=e.slice(r),r=0;r<100&&i>.01;r++)i=o(t,e,a(i));return i>.01&&n.log(\"interp2d didn't converge quickly\",i),t}},{\"../../lib\":696}],955:[function(t,e,r){\"use strict\";var n=t(\"../../registry\"),i=t(\"../../lib\").isArrayOrTypedArray;e.exports=function(t,e,r,a,o,s){var l,c,u,f=[],h=n.traceIs(t,\"contour\"),p=n.traceIs(t,\"histogram\"),d=n.traceIs(t,\"gl2d\");if(i(e)&&e.length>1&&!p&&\"category\"!==s.type){var g=e.length;if(!(g<=o))return h?e.slice(0,o):e.slice(0,o+1);if(h||d)f=e.slice(0,o);else if(1===o)f=[e[0]-.5,e[0]+.5];else{for(f=[1.5*e[0]-.5*e[1]],u=1;u<g;u++)f.push(.5*(e[u-1]+e[u]));f.push(1.5*e[g-1]-.5*e[g-2])}if(g<o){var v=f[f.length-1],m=v-f[f.length-2];for(u=g;u<o;u++)v+=m,f.push(v)}}else{c=a||1;var y=t[s._id.charAt(0)+\"calendar\"];for(l=p||\"category\"===s.type?s.r2c(r,0,y)||0:i(e)&&1===e.length?e[0]:void 0===r?0:s.d2c(r,0,y),u=h||d?0:-.5;u<o;u++)f.push(l+c*u)}return f}},{\"../../lib\":696,\"../../registry\":827}],956:[function(t,e,r){\"use strict\";e.exports=function(t){for(var e=0,r=0;r<t.length;r++)e=Math.max(e,t[r].length);return e}},{}],957:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"tinycolor2\"),a=t(\"../../registry\"),o=t(\"../../lib\"),s=t(\"../../components/colorscale\"),l=t(\"../../constants/xmlns_namespaces\"),c=t(\"./max_row_length\");function u(t,e){var r=e.length-2,n=o.constrain(o.findBin(t,e),0,r),i=e[n],a=e[n+1],s=o.constrain(n+(t-i)/(a-i)-.5,0,r),l=Math.round(s),c=Math.abs(s-l);return s&&s!==r&&c?{bin0:l,frac:c,bin1:Math.round(l+c/(s-l))}:{bin0:l,bin1:l,frac:0}}function f(t,e){var r=e.length-1,n=o.constrain(o.findBin(t,e),0,r),i=e[n],a=(t-i)/(e[n+1]-i)||0;return a<=0?{bin0:n,bin1:n,frac:0}:a<.5?{bin0:n,bin1:n+1,frac:a}:{bin0:n+1,bin1:n,frac:1-a}}function h(t,e,r){t[e]=r[0],t[e+1]=r[1],t[e+2]=r[2],t[e+3]=Math.round(255*r[3])}e.exports=function(t,e,r,p){var d=e.xaxis,g=e.yaxis;o.makeTraceGroups(p,r,\"hm\").each(function(e){var r,p,v,m,y,x,b=n.select(this),_=e[0],w=_.trace,k=_.z,M=_.x,A=_.y,T=_.xCenter,S=_.yCenter,E=a.traceIs(w,\"contour\"),C=E?\"best\":w.zsmooth,L=k.length,z=c(k),O=!1,I=!1;for(x=0;void 0===r&&x<M.length-1;)r=d.c2p(M[x]),x++;for(x=M.length-1;void 0===p&&x>0;)p=d.c2p(M[x]),x--;for(p<r&&(v=p,p=r,r=v,O=!0),x=0;void 0===m&&x<A.length-1;)m=g.c2p(A[x]),x++;for(x=A.length-1;void 0===y&&x>0;)y=g.c2p(A[x]),x--;if(y<m&&(v=m,m=y,y=v,I=!0),E&&(T=M,S=A,M=_.xfill,A=_.yfill),\"fast\"!==C){var P=\"best\"===C?0:.5;r=Math.max(-P*d._length,r),p=Math.min((1+P)*d._length,p),m=Math.max(-P*g._length,m),y=Math.min((1+P)*g._length,y)}var D=Math.round(p-r),R=Math.round(y-m);if(D<=0||R<=0){b.selectAll(\"image\").data([]).exit().remove()}else{var B,F;\"fast\"===C?(B=z,F=L):(B=D,F=R);var N=document.createElement(\"canvas\");N.width=B,N.height=F;var j,V,U=N.getContext(\"2d\"),q=s.makeColorScaleFunc(s.extractScale(w.colorscale,w.zmin,w.zmax),{noNumericCheck:!0,returnArray:!0});\"fast\"===C?(j=O?function(t){return z-1-t}:o.identity,V=I?function(t){return L-1-t}:o.identity):(j=function(t){return o.constrain(Math.round(d.c2p(M[t])-r),0,D)},V=function(t){return o.constrain(Math.round(g.c2p(A[t])-m),0,R)});var H,G,W,Y,X,Z=V(0),$=[Z,Z],J=O?0:1,K=I?0:1,Q=0,tt=0,et=0,rt=0;if(C){var nt,it=0;try{nt=new Uint8Array(D*R*4)}catch(t){nt=new Array(D*R*4)}if(\"best\"===C){var at,ot,st,lt=T||M,ct=S||A,ut=new Array(lt.length),ft=new Array(ct.length),ht=new Array(D),pt=T?f:u,dt=S?f:u;for(x=0;x<lt.length;x++)ut[x]=Math.round(d.c2p(lt[x])-r);for(x=0;x<ct.length;x++)ft[x]=Math.round(g.c2p(ct[x])-m);for(x=0;x<D;x++)ht[x]=pt(x,ut);for(G=0;G<R;G++)for(ot=k[(at=dt(G,ft)).bin0],st=k[at.bin1],x=0;x<D;x++,it+=4)h(nt,it,X=At(ot,st,ht[x],at))}else for(G=0;G<L;G++)for(Y=k[G],$=V(G),x=0;x<D;x++)X=Mt(Y[x],1),h(nt,it=4*($*D+j(x)),X);var gt=U.createImageData(D,R);try{gt.data.set(nt)}catch(t){var vt=gt.data,mt=vt.length;for(G=0;G<mt;G++)vt[G]=nt[G]}U.putImageData(gt,0,0)}else{var yt=w.xgap,xt=w.ygap,bt=Math.floor(yt/2),_t=Math.floor(xt/2);for(G=0;G<L;G++)if(Y=k[G],$.reverse(),$[K]=V(G+1),$[0]!==$[1]&&void 0!==$[0]&&void 0!==$[1])for(H=[W=j(0),W],x=0;x<z;x++)H.reverse(),H[J]=j(x+1),H[0]!==H[1]&&void 0!==H[0]&&void 0!==H[1]&&(X=Mt(Y[x],(H[1]-H[0])*($[1]-$[0])),U.fillStyle=\"rgba(\"+X.join(\",\")+\")\",U.fillRect(H[0]+bt,$[0]+_t,H[1]-H[0]-yt,$[1]-$[0]-xt))}tt=Math.round(tt/Q),et=Math.round(et/Q),rt=Math.round(rt/Q);var wt=i(\"rgb(\"+tt+\",\"+et+\",\"+rt+\")\");t._hmpixcount=(t._hmpixcount||0)+Q,t._hmlumcount=(t._hmlumcount||0)+Q*wt.getLuminance();var kt=b.selectAll(\"image\").data(e);kt.enter().append(\"svg:image\").attr({xmlns:l.svg,preserveAspectRatio:\"none\"}),kt.attr({height:R,width:D,x:r,y:m,\"xlink:href\":N.toDataURL(\"image/png\")})}function Mt(t,e){if(void 0!==t){var r=q(t);return r[0]=Math.round(r[0]),r[1]=Math.round(r[1]),r[2]=Math.round(r[2]),Q+=e,tt+=r[0]*e,et+=r[1]*e,rt+=r[2]*e,r}return[0,0,0,0]}function At(t,e,r,n){var i=t[r.bin0];if(void 0===i)return Mt(void 0,1);var a,o=t[r.bin1],s=e[r.bin0],l=e[r.bin1],c=o-i||0,u=s-i||0;return a=void 0===o?void 0===l?0:void 0===s?2*(l-i):2*(2*l-s-i)/3:void 0===l?void 0===s?0:2*(2*i-o-s)/3:void 0===s?2*(2*l-o-i)/3:l+i-o-s,Mt(i+r.frac*c+n.frac*(u+r.frac*a))}})}},{\"../../components/colorscale\":585,\"../../constants/xmlns_namespaces\":674,\"../../lib\":696,\"../../registry\":827,\"./max_row_length\":956,d3:148,tinycolor2:514}],958:[function(t,e,r){\"use strict\";var n=t(\"d3\");e.exports=function(t){n.select(t).selectAll(\".hm image\").style(\"opacity\",function(t){return t.trace.opacity})}},{d3:148}],959:[function(t,e,r){\"use strict\";e.exports=function(t,e,r){!1===r(\"zsmooth\")&&(r(\"xgap\"),r(\"ygap\")),r(\"zhoverformat\")}},{}],960:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../../lib\"),a=t(\"../../registry\");function o(t,e){var r=e(t);return\"scaled\"===(r?e(t+\"type\",\"array\"):\"scaled\")&&(e(t+\"0\"),e(\"d\"+t)),r}e.exports=function(t,e,r,s,l,c){var u,f,h=r(\"z\");if(l=l||\"x\",c=c||\"y\",void 0===h||!h.length)return 0;if(i.isArray1D(t.z)){if(u=r(l),f=r(c),!(u&&u.length&&f&&f.length))return 0;e._length=Math.min(u.length,f.length,h.length)}else{if(u=o(l,r),f=o(c,r),!function(t){for(var e,r=!0,a=!1,o=!1,s=0;s<t.length;s++){if(e=t[s],!i.isArrayOrTypedArray(e)){r=!1;break}e.length>0&&(a=!0);for(var l=0;l<e.length;l++)if(n(e[l])){o=!0;break}}return r&&a&&o}(h))return 0;r(\"transpose\"),e._length=null}return a.getComponentMethod(\"calendars\",\"handleTraceDefaults\")(t,e,[l,c],s),!0}},{\"../../lib\":696,\"../../registry\":827,\"fast-isnumeric\":214}],961:[function(t,e,r){\"use strict\";for(var n=t(\"../heatmap/attributes\"),i=t(\"../../components/colorscale/attributes\"),a=t(\"../../components/colorbar/attributes\"),o=t(\"../../lib/extend\").extendFlat,s=t(\"../../plot_api/edit_types\").overrideAll,l=[\"z\",\"x\",\"x0\",\"dx\",\"y\",\"y0\",\"dy\",\"text\",\"transpose\",\"xtype\",\"ytype\"],c={},u=0;u<l.length;u++){var f=l[u];c[f]=n[f]}o(c,i(\"\",{cLetter:\"z\",autoColorDflt:!1}),{colorbar:a}),e.exports=s(c,\"calc\",\"nested\")},{\"../../components/colorbar/attributes\":571,\"../../components/colorscale/attributes\":577,\"../../lib/extend\":685,\"../../plot_api/edit_types\":727,\"../heatmap/attributes\":945}],962:[function(t,e,r){\"use strict\";var n=t(\"gl-heatmap2d\"),i=t(\"../../plots/cartesian/axes\"),a=t(\"../../lib/str2rgbarray\");function o(t,e){this.scene=t,this.uid=e,this.type=\"heatmapgl\",this.name=\"\",this.hoverinfo=\"all\",this.xData=[],this.yData=[],this.zData=[],this.textLabels=[],this.idToIndex=[],this.bounds=[0,0,0,0],this.options={z:[],x:[],y:[],shape:[0,0],colorLevels:[0],colorValues:[0,0,0,1]},this.heatmap=n(t.glplot,this.options),this.heatmap._trace=this}var s=o.prototype;s.handlePick=function(t){var e=this.options,r=e.shape,n=t.pointId,i=n%r[0],a=Math.floor(n/r[0]),o=n;return{trace:this,dataCoord:t.dataCoord,traceCoord:[e.x[i],e.y[a],e.z[o]],textLabel:this.textLabels[n],name:this.name,pointIndex:[a,i],hoverinfo:this.hoverinfo}},s.update=function(t,e){var r=e[0];this.index=t.index,this.name=t.name,this.hoverinfo=t.hoverinfo;var n=r.z;this.options.z=[].concat.apply([],n);var o=n[0].length,s=n.length;this.options.shape=[o,s],this.options.x=r.x,this.options.y=r.y;var l=function(t){for(var e=t.colorscale,r=t.zmin,n=t.zmax,i=e.length,o=new Array(i),s=new Array(4*i),l=0;l<i;l++){var c=e[l],u=a(c[1]);o[l]=r+c[0]*(n-r);for(var f=0;f<4;f++)s[4*l+f]=u[f]}return{colorLevels:o,colorValues:s}}(t);this.options.colorLevels=l.colorLevels,this.options.colorValues=l.colorValues,this.textLabels=[].concat.apply([],t.text),this.heatmap.update(this.options);var c=this.scene.xaxis,u=this.scene.yaxis;t._extremes[c._id]=i.findExtremes(c,r.x),t._extremes[u._id]=i.findExtremes(u,r.y)},s.dispose=function(){this.heatmap.dispose()},e.exports=function(t,e,r){var n=new o(t,e.uid);return n.update(e,r),n}},{\"../../lib/str2rgbarray\":719,\"../../plots/cartesian/axes\":744,\"gl-heatmap2d\":241}],963:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.supplyDefaults=t(\"../heatmap/defaults\"),n.colorbar=t(\"../heatmap/colorbar\"),n.calc=t(\"../heatmap/calc\"),n.plot=t(\"./convert\"),n.moduleType=\"trace\",n.name=\"heatmapgl\",n.basePlotModule=t(\"../../plots/gl2d\"),n.categories=[\"gl\",\"gl2d\",\"2dMap\"],n.meta={},e.exports=n},{\"../../plots/gl2d\":784,\"../heatmap/calc\":946,\"../heatmap/colorbar\":948,\"../heatmap/defaults\":950,\"./attributes\":961,\"./convert\":962}],964:[function(t,e,r){\"use strict\";var n=t(\"../bar/attributes\"),i=t(\"./bin_attributes\");e.exports={x:{valType:\"data_array\",editType:\"calc+clearAxisTypes\"},y:{valType:\"data_array\",editType:\"calc+clearAxisTypes\"},text:n.text,orientation:n.orientation,histfunc:{valType:\"enumerated\",values:[\"count\",\"sum\",\"avg\",\"min\",\"max\"],dflt:\"count\",editType:\"calc\"},histnorm:{valType:\"enumerated\",values:[\"\",\"percent\",\"probability\",\"density\",\"probability density\"],dflt:\"\",editType:\"calc\"},cumulative:{enabled:{valType:\"boolean\",dflt:!1,editType:\"calc\"},direction:{valType:\"enumerated\",values:[\"increasing\",\"decreasing\"],dflt:\"increasing\",editType:\"calc\"},currentbin:{valType:\"enumerated\",values:[\"include\",\"exclude\",\"half\"],dflt:\"include\",editType:\"calc\"},editType:\"calc\"},nbinsx:{valType:\"integer\",min:0,dflt:0,editType:\"calc\"},xbins:i(\"x\",!0),nbinsy:{valType:\"integer\",min:0,dflt:0,editType:\"calc\"},ybins:i(\"y\",!0),autobinx:{valType:\"boolean\",dflt:null,editType:\"calc\"},autobiny:{valType:\"boolean\",dflt:null,editType:\"calc\",impliedEdits:{\"ybins.start\":void 0,\"ybins.end\":void 0,\"ybins.size\":void 0}},marker:n.marker,selected:n.selected,unselected:n.unselected,_deprecated:{bardir:n._deprecated.bardir}}},{\"../bar/attributes\":837,\"./bin_attributes\":966}],965:[function(t,e,r){\"use strict\";e.exports=function(t,e){for(var r=t.length,n=0,i=0;i<r;i++)e[i]?(t[i]/=e[i],n+=t[i]):t[i]=null;return n}},{}],966:[function(t,e,r){\"use strict\";e.exports=function(t,e){return{start:{valType:\"any\",editType:\"calc\"},end:{valType:\"any\",editType:\"calc\"},size:{valType:\"any\",editType:\"calc\"},editType:\"calc\"}}},{}],967:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\");e.exports={count:function(t,e,r){return r[t]++,1},sum:function(t,e,r,i){var a=i[e];return n(a)?(a=Number(a),r[t]+=a,a):0},avg:function(t,e,r,i,a){var o=i[e];return n(o)&&(o=Number(o),r[t]+=o,a[t]++),0},min:function(t,e,r,i){var a=i[e];if(n(a)){if(a=Number(a),!n(r[t]))return r[t]=a,a;if(r[t]>a){var o=a-r[t];return r[t]=a,o}}return 0},max:function(t,e,r,i){var a=i[e];if(n(a)){if(a=Number(a),!n(r[t]))return r[t]=a,a;if(r[t]<a){var o=a-r[t];return r[t]=a,o}}return 0}}},{\"fast-isnumeric\":214}],968:[function(t,e,r){\"use strict\";var n=t(\"../../constants/numerical\"),i=n.ONEAVGYEAR,a=n.ONEAVGMONTH,o=n.ONEDAY,s=n.ONEHOUR,l=n.ONEMIN,c=n.ONESEC,u=t(\"../../plots/cartesian/axes\").tickIncrement;function f(t,e,r,n){if(t*e<=0)return 1/0;for(var i=Math.abs(e-t),a=\"date\"===r.type,o=h(i,a),s=0;s<10;s++){var l=h(80*o,a);if(o===l)break;if(!p(l,t,e,a,r,n))break;o=l}return o}function h(t,e){return e&&t>c?t>o?t>1.1*i?i:t>1.1*a?a:o:t>s?s:t>l?l:c:Math.pow(10,Math.floor(Math.log(t)/Math.LN10))}function p(t,e,r,n,a,s){if(n&&t>o){var l=d(e,a,s),c=d(r,a,s),u=t===i?0:1;return l[u]!==c[u]}return Math.floor(r/t)-Math.floor(e/t)>.1}function d(t,e,r){var n=e.c2d(t,i,r).split(\"-\");return\"\"===n[0]&&(n.unshift(),n[0]=\"-\"+n[0]),n}e.exports=function(t,e,r,n,a){var s,l,c=-1.1*e,h=-.1*e,p=t-h,d=r[0],g=r[1],v=Math.min(f(d+h,d+p,n,a),f(g+h,g+p,n,a)),m=Math.min(f(d+c,d+h,n,a),f(g+c,g+h,n,a));if(v>m&&m<Math.abs(g-d)/4e3?(s=v,l=!1):(s=Math.min(v,m),l=!0),\"date\"===n.type&&s>o){var y=s===i?1:6,x=s===i?\"M12\":\"M1\";return function(e,r){var o=n.c2d(e,i,a),s=o.indexOf(\"-\",y);s>0&&(o=o.substr(0,s));var c=n.d2c(o,0,a);if(c<e){var f=u(c,x,!1,a);(c+f)/2<e+t&&(c=f)}return r&&l?u(c,x,!0,a):c}}return function(e,r){var n=s*Math.round(e/s);return n+s/10<e&&n+.9*s<e+t&&(n+=s),r&&l&&(n-=s),n}}},{\"../../constants/numerical\":673,\"../../plots/cartesian/axes\":744}],969:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../../lib\"),a=t(\"../../plots/cartesian/axes\"),o=t(\"../bar/arrays_to_calcdata\"),s=t(\"./bin_functions\"),l=t(\"./norm_functions\"),c=t(\"./average\"),u=t(\"./bin_label_vals\");function f(t,e,r,o,s){var l,c,u,h,p,d,g,v=o+\"bins\",m=t._fullLayout,y=\"overlay\"===m.barmode,x=\"date\"===r.type?function(t){return t||0===t?i.cleanDate(t,null,r.calendar):null}:function(t){return n(t)?Number(t):null};function b(t,e,r){e[t+\"Found\"]?(e[t]=x(e[t]),null===e[t]&&(e[t]=r[t])):(d[t]=e[t]=r[t],i.nestedProperty(c[0],v+\".\"+t).set(r[t]))}var _=m._histogramBinOpts[e._groupName];if(e._autoBinFinished)delete e._autoBinFinished;else{c=_.traces;var w=_.sizeFound,k=[];d=c[0]._autoBin={};var M=!0;for(l=0;l<c.length;l++)p=(u=c[l])._pos0=r.makeCalcdata(u,o),k=i.concat(k,p),delete u._autoBinFinished,!0===e.visible&&(M?M=!1:(delete u._autoBin,u._autoBinFinished=1));h=c[0][o+\"calendar\"];var A=a.autoBin(k,r,_.nbins,!1,h,w&&_.size);if(y&&0===A._dataSpan&&\"category\"!==r.type){if(s)return[A,p,!0];A=function(t,e,r,n,a){var o,s,l=function(t,e){for(var r=e.xaxis,n=e.yaxis,i=e.orientation,a=[],o=t._fullData,s=0;s<o.length;s++){var l=o[s];\"histogram\"===l.type&&!0===l.visible&&l.orientation===i&&l.xaxis===r&&l.yaxis===n&&a.push(l)}return a}(t,e),c=!1,u=1/0,h=[e];for(o=0;o<l.length;o++)if((s=l[o])===e)c=!0;else if(c){var p=f(t,s,r,n,!0),d=p[0],g=p[2];s._autoBinFinished=1,s._pos0=p[1],g?h.push(s):u=Math.min(u,d.size)}else u=Math.min(u,s[a].size);var v=new Array(h.length);for(o=0;o<h.length;o++)for(var m=h[o]._pos0,y=0;y<m.length;y++)if(void 0!==m[y]){v[o]=m[y];break}isFinite(u)||(u=i.distinctVals(v).minDiff);for(o=0;o<h.length;o++){var x=(s=h[o])[n+\"calendar\"];s._input[a]=s[a]={start:r.c2r(v[o]-u/2,0,x),end:r.c2r(v[o]+u/2,0,x),size:u}}return e[a]}(t,e,r,o,v)}(g=u.cumulative).enabled&&\"include\"!==g.currentbin&&(\"decreasing\"===g.direction?A.start=r.c2r(a.tickIncrement(r.r2c(A.start,0,h),A.size,!0,h)):A.end=r.c2r(a.tickIncrement(r.r2c(A.end,0,h),A.size,!1,h))),_.size=A.size,w||(d.size=A.size,i.nestedProperty(c[0],v+\".size\").set(A.size)),b(\"start\",_,A),b(\"end\",_,A)}p=e._pos0,delete e._pos0;var T=e._input[v]||{},S=i.extendFlat({},_),E=_.start,C=r.r2l(T.start),L=void 0!==C;if((_.startFound||L)&&C!==r.r2l(E)){var z=L?C:i.aggNums(Math.min,null,p),O={type:\"category\"===r.type?\"linear\":r.type,r2l:r.r2l,dtick:_.size,tick0:E,calendar:h,range:[z,a.tickIncrement(z,_.size,!1,h)].map(r.l2r)},I=a.tickFirst(O);I>r.r2l(z)&&(I=a.tickIncrement(I,_.size,!0,h)),S.start=r.l2r(I),L||i.nestedProperty(e,v+\".start\").set(S.start)}var P=_.end,D=r.r2l(T.end),R=void 0!==D;if((_.endFound||R)&&D!==r.r2l(P)){var B=R?D:i.aggNums(Math.max,null,p);S.end=r.l2r(B),R||i.nestedProperty(e,v+\".start\").set(S.end)}var F=\"autobin\"+o;return!1===e._input[F]&&(e._input[v]=i.extendFlat({},e[v]||{}),delete e._input[F],delete e[F]),[S,p]}e.exports=function(t,e){if(!0===e.visible){var r,h,p,d,g=[],v=[],m=a.getFromId(t,\"h\"===e.orientation?e.yaxis||\"y\":e.xaxis||\"x\"),y=\"h\"===e.orientation?\"y\":\"x\",x={x:\"y\",y:\"x\"}[y],b=e[y+\"calendar\"],_=e.cumulative,w=f(t,e,m,y),k=w[0],M=w[1],A=\"string\"==typeof k.size,T=[],S=A?T:k,E=[],C=[],L=[],z=0,O=e.histnorm,I=e.histfunc,P=-1!==O.indexOf(\"density\");_.enabled&&P&&(O=O.replace(/ ?density$/,\"\"),P=!1);var D,R=\"max\"===I||\"min\"===I?null:0,B=s.count,F=l[O],N=!1,j=function(t){return m.r2c(t,0,b)};for(i.isArrayOrTypedArray(e[x])&&\"count\"!==I&&(D=e[x],N=\"avg\"===I,B=s[I]),r=j(k.start),p=j(k.end)+(r-a.tickIncrement(r,k.size,!1,b))/1e6;r<p&&g.length<1e6&&(h=a.tickIncrement(r,k.size,!1,b),g.push((r+h)/2),v.push(R),L.push([]),T.push(r),P&&E.push(1/(h-r)),N&&C.push(0),!(h<=r));)r=h;T.push(r),A||\"date\"!==m.type||(S={start:j(S.start),end:j(S.end),size:S.size});var V,U=v.length,q=!0,H=1/0,G=1/0,W={};for(r=0;r<M.length;r++){var Y=M[r];(d=i.findBin(Y,S))>=0&&d<U&&(z+=B(d,r,v,D,C),q&&L[d].length&&Y!==M[L[d][0]]&&(q=!1),L[d].push(r),W[r]=d,H=Math.min(H,Y-T[d]),G=Math.min(G,T[d+1]-Y))}q||(V=u(H,G,T,m,b)),N&&(z=c(v,C)),F&&F(v,z,E),_.enabled&&function(t,e,r){var n,i,a;function o(e){a=t[e],t[e]/=2}function s(e){i=t[e],t[e]=a+i/2,a+=i}if(\"half\"===r)if(\"increasing\"===e)for(o(0),n=1;n<t.length;n++)s(n);else for(o(t.length-1),n=t.length-2;n>=0;n--)s(n);else if(\"increasing\"===e){for(n=1;n<t.length;n++)t[n]+=t[n-1];\"exclude\"===r&&(t.unshift(0),t.pop())}else{for(n=t.length-2;n>=0;n--)t[n]+=t[n+1];\"exclude\"===r&&(t.push(0),t.shift())}}(v,_.direction,_.currentbin);var X=Math.min(g.length,v.length),Z=[],$=0,J=X-1;for(r=0;r<X;r++)if(v[r]){$=r;break}for(r=X-1;r>=$;r--)if(v[r]){J=r;break}for(r=$;r<=J;r++)if(n(g[r])&&n(v[r])){var K={p:g[r],s:v[r],b:0};_.enabled||(K.pts=L[r],q?K.ph0=K.ph1=L[r].length?M[L[r][0]]:g[r]:(K.ph0=V(T[r]),K.ph1=V(T[r+1],!0))),Z.push(K)}return 1===Z.length&&(Z[0].width1=a.tickIncrement(Z[0].p,k.size,!1,b)-Z[0].p),o(Z,e),i.isArrayOrTypedArray(e.selectedpoints)&&i.tagSelected(Z,e,W),Z}}},{\"../../lib\":696,\"../../plots/cartesian/axes\":744,\"../bar/arrays_to_calcdata\":836,\"./average\":965,\"./bin_functions\":967,\"./bin_label_vals\":968,\"./norm_functions\":975,\"fast-isnumeric\":214}],970:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=n.nestedProperty,a=t(\"./attributes\"),o={x:[{aStr:\"xbins.start\",name:\"start\"},{aStr:\"xbins.end\",name:\"end\"},{aStr:\"xbins.size\",name:\"size\"},{aStr:\"nbinsx\",name:\"nbins\"}],y:[{aStr:\"ybins.start\",name:\"start\"},{aStr:\"ybins.end\",name:\"end\"},{aStr:\"ybins.size\",name:\"size\"},{aStr:\"nbinsy\",name:\"nbins\"}]};e.exports=function(t,e){var r,s,l,c,u,f,h,p=e._histogramBinOpts={},d=\"overlay\"===e.barmode;function g(t){return n.coerce(l._input,l,a,t)}for(r=0;r<t.length;r++)\"histogram\"===(l=t[r]).type&&(delete l._autoBinFinished,u=\"v\"===l.orientation?\"x\":\"y\",f=d?l.uid:l.xaxis+l.yaxis+u,l._groupName=f,(h=p[f])?h.traces.push(l):h=p[f]={traces:[l],direction:u});for(f in p){u=(h=p[f]).direction;var v=o[u];for(s=0;s<v.length;s++){var m=v[s],y=m.name;if(\"nbins\"!==y||!h.sizeFound){var x=m.aStr;for(r=0;r<h.traces.length;r++){if(c=(l=h.traces[r])._input,void 0!==i(c,x).get()){h[y]=g(x),h[y+\"Found\"]=!0;break}var b=l._autoBin;b&&b[y]&&i(l,x).set(b[y])}if(\"start\"===y||\"end\"===y)for(;r<h.traces.length;r++)g(x,((l=h.traces[r])._autoBin||{})[y]);\"nbins\"!==y||h.sizeFound||h.nbinsFound||(l=h.traces[0],h[y]=g(x))}}}}},{\"../../lib\":696,\"./attributes\":964}],971:[function(t,e,r){\"use strict\";var n=t(\"../../registry\"),i=t(\"../../lib\"),a=t(\"../../components/color\"),o=t(\"../bar/style_defaults\"),s=t(\"./attributes\");e.exports=function(t,e,r,l){function c(r,n){return i.coerce(t,e,s,r,n)}var u=c(\"x\"),f=c(\"y\");c(\"cumulative.enabled\")&&(c(\"cumulative.direction\"),c(\"cumulative.currentbin\")),c(\"text\");var h=c(\"orientation\",f&&!u?\"h\":\"v\"),p=\"v\"===h?\"x\":\"y\",d=\"v\"===h?\"y\":\"x\",g=u&&f?Math.min(u.length&&f.length):(e[p]||[]).length;if(g){e._length=g,n.getComponentMethod(\"calendars\",\"handleTraceDefaults\")(t,e,[\"x\",\"y\"],l),e[d]&&c(\"histfunc\"),c(\"histnorm\"),c(\"autobin\"+p),o(t,e,c,r,l);var v=n.getComponentMethod(\"errorbars\",\"supplyDefaults\");v(t,e,a.defaultLine,{axis:\"y\"}),v(t,e,a.defaultLine,{axis:\"x\",inherit:\"y\"}),i.coerceSelectionMarkerOpacity(e,c)}else e.visible=!1}},{\"../../components/color\":570,\"../../lib\":696,\"../../registry\":827,\"../bar/style_defaults\":850,\"./attributes\":964}],972:[function(t,e,r){\"use strict\";e.exports=function(t,e,r,n,i){if(t.x=\"xVal\"in e?e.xVal:e.x,t.y=\"yVal\"in e?e.yVal:e.y,e.xa&&(t.xaxis=e.xa),e.ya&&(t.yaxis=e.ya),!(r.cumulative||{}).enabled){var a,o=Array.isArray(i)?n[0].pts[i[0]][i[1]]:n[i].pts;if(t.pointNumbers=o,t.binNumber=t.pointNumber,delete t.pointNumber,delete t.pointIndex,r._indexToPoints){a=[];for(var s=0;s<o.length;s++)a=a.concat(r._indexToPoints[o[s]])}else a=o;t.pointIndices=a}return t}},{}],973:[function(t,e,r){\"use strict\";var n=t(\"../bar/hover\").hoverPoints,i=t(\"../../plots/cartesian/axes\").hoverLabelText;e.exports=function(t,e,r,a){var o=n(t,e,r,a);if(o){var s=(t=o[0]).cd[t.index],l=t.cd[0].trace;if(!l.cumulative.enabled){var c=\"h\"===l.orientation?\"y\":\"x\";t[c+\"Label\"]=i(t[c+\"a\"],s.ph0,s.ph1)}return o}}},{\"../../plots/cartesian/axes\":744,\"../bar/hover\":842}],974:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.layoutAttributes=t(\"../bar/layout_attributes\"),n.supplyDefaults=t(\"./defaults\"),n.crossTraceDefaults=t(\"./cross_trace_defaults\"),n.supplyLayoutDefaults=t(\"../bar/layout_defaults\"),n.calc=t(\"./calc\"),n.crossTraceCalc=t(\"../bar/cross_trace_calc\").crossTraceCalc,n.plot=t(\"../bar/plot\"),n.layerName=\"barlayer\",n.style=t(\"../bar/style\").style,n.styleOnSelect=t(\"../bar/style\").styleOnSelect,n.colorbar=t(\"../scatter/marker_colorbar\"),n.hoverPoints=t(\"./hover\"),n.selectPoints=t(\"../bar/select\"),n.eventData=t(\"./event_data\"),n.moduleType=\"trace\",n.name=\"histogram\",n.basePlotModule=t(\"../../plots/cartesian\"),n.categories=[\"cartesian\",\"svg\",\"bar\",\"histogram\",\"oriented\",\"errorBarsOK\",\"showLegend\"],n.meta={},e.exports=n},{\"../../plots/cartesian\":756,\"../bar/cross_trace_calc\":839,\"../bar/layout_attributes\":844,\"../bar/layout_defaults\":845,\"../bar/plot\":846,\"../bar/select\":847,\"../bar/style\":849,\"../scatter/marker_colorbar\":1061,\"./attributes\":964,\"./calc\":969,\"./cross_trace_defaults\":970,\"./defaults\":971,\"./event_data\":972,\"./hover\":973}],975:[function(t,e,r){\"use strict\";e.exports={percent:function(t,e){for(var r=t.length,n=100/e,i=0;i<r;i++)t[i]*=n},probability:function(t,e){for(var r=t.length,n=0;n<r;n++)t[n]/=e},density:function(t,e,r,n){var i=t.length;n=n||1;for(var a=0;a<i;a++)t[a]*=r[a]*n},\"probability density\":function(t,e,r,n){var i=t.length;n&&(e/=n);for(var a=0;a<i;a++)t[a]*=r[a]/e}}},{}],976:[function(t,e,r){\"use strict\";var n=t(\"../histogram/attributes\"),i=t(\"../histogram/bin_attributes\"),a=t(\"../heatmap/attributes\"),o=t(\"../../components/colorscale/attributes\"),s=t(\"../../components/colorbar/attributes\"),l=t(\"../../lib/extend\").extendFlat;e.exports=l({x:n.x,y:n.y,z:{valType:\"data_array\",editType:\"calc\"},marker:{color:{valType:\"data_array\",editType:\"calc\"},editType:\"calc\"},histnorm:n.histnorm,histfunc:n.histfunc,nbinsx:n.nbinsx,xbins:i(\"x\"),nbinsy:n.nbinsy,ybins:i(\"y\"),autobinx:n.autobinx,autobiny:n.autobiny,xgap:a.xgap,ygap:a.ygap,zsmooth:a.zsmooth,zhoverformat:a.zhoverformat},o(\"\",{cLetter:\"z\",autoColorDflt:!1}),{colorbar:s})},{\"../../components/colorbar/attributes\":571,\"../../components/colorscale/attributes\":577,\"../../lib/extend\":685,\"../heatmap/attributes\":945,\"../histogram/attributes\":964,\"../histogram/bin_attributes\":966}],977:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../plots/cartesian/axes\"),a=t(\"../histogram/bin_functions\"),o=t(\"../histogram/norm_functions\"),s=t(\"../histogram/average\"),l=t(\"../histogram/bin_label_vals\");function c(t,e,r,a,o,s,l){var c=e+\"bins\",u=t[c];u||(u=t[c]={});var f=t._input[c]||{},h=t._autoBin={};f.size||delete u.size,void 0===f.start&&delete u.start,void 0===f.end&&delete u.end;var p=!u.size,d=void 0===u.start,g=void 0===u.end;if(p||d||g){var v=i.autoBin(r,a,t[\"nbins\"+e],\"2d\",l,u.size);\"histogram2dcontour\"===t.type&&(d&&(v.start=s(i.tickIncrement(o(v.start),v.size,!0,l))),g&&(v.end=s(i.tickIncrement(o(v.end),v.size,!1,l)))),p&&(u.size=h.size=v.size),d&&(u.start=h.start=v.start),g&&(u.end=h.end=v.end)}var m=\"autobin\"+e;!1===t._input[m]&&(t._input[c]=n.extendFlat({},u),delete t._input[m],delete t[m])}function u(t,e,r,n){var i,a=new Array(t);if(n)for(i=0;i<t;i++)a[i]=1/(e[i+1]-e[i]);else{var o=1/r;for(i=0;i<t;i++)a[i]=o}return a}function f(t,e){return{start:t(e.start),end:t(e.end),size:e.size}}function h(t,e,r,n,i,a){var o,s=t.length-1,c=new Array(s);if(e)for(o=0;o<s;o++)c[o]=[e[o],e[o]];else{var u=l(r,n,t,i,a);for(o=0;o<s;o++)c[o]=[u(t[o]),u(t[o+1],!0)]}return c}e.exports=function(t,e){var r,l,p,d,g=i.getFromId(t,e.xaxis||\"x\"),v=e.x?g.makeCalcdata(e,\"x\"):[],m=i.getFromId(t,e.yaxis||\"y\"),y=e.y?m.makeCalcdata(e,\"y\"):[],x=e.xcalendar,b=e.ycalendar,_=function(t){return g.r2c(t,0,x)},w=function(t){return m.r2c(t,0,b)},k=function(t){return g.c2r(t,0,x)},M=function(t){return m.c2r(t,0,b)},A=e._length;v.length>A&&v.splice(A,v.length-A),y.length>A&&y.splice(A,y.length-A),c(e,\"x\",v,g,_,k,x),c(e,\"y\",y,m,w,M,b);var T=[],S=[],E=[],C=\"string\"==typeof e.xbins.size,L=\"string\"==typeof e.ybins.size,z=[],O=[],I=C?z:e.xbins,P=L?O:e.ybins,D=0,R=[],B=[],F=e.histnorm,N=e.histfunc,j=-1!==F.indexOf(\"density\"),V=\"max\"===N||\"min\"===N?null:0,U=a.count,q=o[F],H=!1,G=[],W=[],Y=\"z\"in e?e.z:\"marker\"in e&&Array.isArray(e.marker.color)?e.marker.color:\"\";Y&&\"count\"!==N&&(H=\"avg\"===N,U=a[N]);var X=e.xbins,Z=_(X.start),$=_(X.end)+(Z-i.tickIncrement(Z,X.size,!1,x))/1e6;for(r=Z;r<$;r=i.tickIncrement(r,X.size,!1,x))S.push(V),z.push(r),H&&E.push(0);z.push(r);var J=S.length,K=_(e.xbins.start),Q=(r-K)/J,tt=k(K+Q/2);for(Z=w((X=e.ybins).start),$=w(X.end)+(Z-i.tickIncrement(Z,X.size,!1,b))/1e6,r=Z;r<$;r=i.tickIncrement(r,X.size,!1,b)){T.push(S.slice()),O.push(r);var et=new Array(J);for(l=0;l<J;l++)et[l]=[];B.push(et),H&&R.push(E.slice())}O.push(r);var rt=T.length,nt=w(e.ybins.start),it=(r-nt)/rt,at=M(nt+it/2);j&&(G=u(S.length,I,Q,C),W=u(T.length,P,it,L)),C||\"date\"!==g.type||(I=f(_,I)),L||\"date\"!==m.type||(P=f(w,P));var ot=!0,st=!0,lt=new Array(J),ct=new Array(rt),ut=1/0,ft=1/0,ht=1/0,pt=1/0;for(r=0;r<A;r++){var dt=v[r],gt=y[r];p=n.findBin(dt,I),d=n.findBin(gt,P),p>=0&&p<J&&d>=0&&d<rt&&(D+=U(p,r,T[d],Y,R[d]),B[d][p].push(r),ot&&(void 0===lt[p]?lt[p]=dt:lt[p]!==dt&&(ot=!1)),st&&(void 0===ct[p]?ct[p]=gt:ct[p]!==gt&&(st=!1)),ut=Math.min(ut,dt-z[p]),ft=Math.min(ft,z[p+1]-dt),ht=Math.min(ht,gt-O[d]),pt=Math.min(pt,O[d+1]-gt))}if(H)for(d=0;d<rt;d++)D+=s(T[d],R[d]);if(q)for(d=0;d<rt;d++)q(T[d],D,G,W[d]);return{x:v,xRanges:h(z,ot&&lt,ut,ft,g,x),x0:tt,dx:Q,y:y,yRanges:h(O,st&&ct,ht,pt,m,b),y0:at,dy:it,z:T,pts:B}}},{\"../../lib\":696,\"../../plots/cartesian/axes\":744,\"../histogram/average\":965,\"../histogram/bin_functions\":967,\"../histogram/bin_label_vals\":968,\"../histogram/norm_functions\":975}],978:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../../constants/numerical\").BADNUM,a=t(\"../../plots/cartesian/axis_ids\"),o=t(\"../../lib\"),s=t(\"./attributes\"),l=[\"x\",\"y\"];function c(t,e,r,s){var l=r[a.id2name(t[e+\"axis\"])].type,c=e+\"bins\",u=t[c],f=t[e+\"calendar\"];u||(u=t[c]={});var h=\"date\"===l?function(t,e){return t||0===t?o.cleanDate(t,i,f):e}:function(t,e){return n(t)?Number(t):e};u.start=h(u.start,s.start),u.end=h(u.end,s.end);var p=s.size,d=u.size;if(n(d))u.size=d>0?Number(d):p;else if(\"string\"!=typeof d)u.size=p;else{var g=d.charAt(0),v=d.substr(1);((v=n(v)?Number(v):0)<=0||\"date\"!==l||\"M\"!==g||v!==Math.round(v))&&(u.size=p)}}e.exports=function(t,e){var r,n,i,a;function u(t){return o.coerce(i._input,i,s,t)}for(r=0;r<t.length;r++){var f=(i=t[r]).type;if(\"histogram2d\"===f||\"histogram2dcontour\"===f)for(n=0;n<l.length;n++){var h=(a=l[n])+\"bins\",p=(i._autoBin||{})[a]||{};u(h+\".start\",p.start),u(h+\".end\",p.end),u(h+\".size\",p.size),c(i,a,e,p),(i[h]||{}).size||u(\"nbins\"+a)}}}},{\"../../constants/numerical\":673,\"../../lib\":696,\"../../plots/cartesian/axis_ids\":747,\"./attributes\":976,\"fast-isnumeric\":214}],979:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"./sample_defaults\"),a=t(\"../heatmap/style_defaults\"),o=t(\"../../components/colorscale/defaults\"),s=t(\"./attributes\");e.exports=function(t,e,r,l){function c(r,i){return n.coerce(t,e,s,r,i)}i(t,e,c,l),!1!==e.visible&&(a(t,e,c,l),o(t,e,l,c,{prefix:\"\",cLetter:\"z\"}))}},{\"../../components/colorscale/defaults\":580,\"../../lib\":696,\"../heatmap/style_defaults\":959,\"./attributes\":976,\"./sample_defaults\":982}],980:[function(t,e,r){\"use strict\";var n=t(\"../heatmap/hover\"),i=t(\"../../plots/cartesian/axes\").hoverLabelText;e.exports=function(t,e,r,a,o,s){var l=n(t,e,r,a,o,s);if(l){var c=(t=l[0]).index,u=c[0],f=c[1],h=t.cd[0],p=h.xRanges[f],d=h.yRanges[u];return t.xLabel=i(t.xa,p[0],p[1]),t.yLabel=i(t.ya,d[0],d[1]),l}}},{\"../../plots/cartesian/axes\":744,\"../heatmap/hover\":952}],981:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.supplyDefaults=t(\"./defaults\"),n.crossTraceDefaults=t(\"./cross_trace_defaults\"),n.calc=t(\"../heatmap/calc\"),n.plot=t(\"../heatmap/plot\"),n.layerName=\"heatmaplayer\",n.colorbar=t(\"../heatmap/colorbar\"),n.style=t(\"../heatmap/style\"),n.hoverPoints=t(\"./hover\"),n.eventData=t(\"../histogram/event_data\"),n.moduleType=\"trace\",n.name=\"histogram2d\",n.basePlotModule=t(\"../../plots/cartesian\"),n.categories=[\"cartesian\",\"svg\",\"2dMap\",\"histogram\"],n.meta={},e.exports=n},{\"../../plots/cartesian\":756,\"../heatmap/calc\":946,\"../heatmap/colorbar\":948,\"../heatmap/plot\":957,\"../heatmap/style\":958,\"../histogram/event_data\":972,\"./attributes\":976,\"./cross_trace_defaults\":978,\"./defaults\":979,\"./hover\":980}],982:[function(t,e,r){\"use strict\";var n=t(\"../../registry\");e.exports=function(t,e,r,i){var a=r(\"x\"),o=r(\"y\");a&&a.length&&o&&o.length?(e._length=Math.min(a.length,o.length),n.getComponentMethod(\"calendars\",\"handleTraceDefaults\")(t,e,[\"x\",\"y\"],i),(r(\"z\")||r(\"marker.color\"))&&r(\"histfunc\"),r(\"histnorm\"),r(\"autobinx\"),r(\"autobiny\")):e.visible=!1}},{\"../../registry\":827}],983:[function(t,e,r){\"use strict\";var n=t(\"../histogram2d/attributes\"),i=t(\"../contour/attributes\"),a=t(\"../../components/colorscale/attributes\"),o=t(\"../../components/colorbar/attributes\"),s=t(\"../../lib/extend\").extendFlat;e.exports=s({x:n.x,y:n.y,z:n.z,marker:n.marker,histnorm:n.histnorm,histfunc:n.histfunc,nbinsx:n.nbinsx,xbins:n.xbins,nbinsy:n.nbinsy,ybins:n.ybins,autobinx:n.autobinx,autobiny:n.autobiny,autocontour:i.autocontour,ncontours:i.ncontours,contours:i.contours,line:i.line,zhoverformat:n.zhoverformat},a(\"\",{cLetter:\"z\",editTypeOverride:\"calc\"}),{colorbar:o})},{\"../../components/colorbar/attributes\":571,\"../../components/colorscale/attributes\":577,\"../../lib/extend\":685,\"../contour/attributes\":916,\"../histogram2d/attributes\":976}],984:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../histogram2d/sample_defaults\"),a=t(\"../contour/contours_defaults\"),o=t(\"../contour/style_defaults\"),s=t(\"./attributes\");e.exports=function(t,e,r,l){function c(r,i){return n.coerce(t,e,s,r,i)}i(t,e,c,l),!1!==e.visible&&(a(t,e,c,function(r){return n.coerce2(t,e,s,r)}),o(t,e,c,l))}},{\"../../lib\":696,\"../contour/contours_defaults\":923,\"../contour/style_defaults\":937,\"../histogram2d/sample_defaults\":982,\"./attributes\":983}],985:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.supplyDefaults=t(\"./defaults\"),n.crossTraceDefaults=t(\"../histogram2d/cross_trace_defaults\"),n.calc=t(\"../contour/calc\"),n.plot=t(\"../contour/plot\").plot,n.layerName=\"contourlayer\",n.style=t(\"../contour/style\"),n.colorbar=t(\"../contour/colorbar\"),n.hoverPoints=t(\"../contour/hover\"),n.moduleType=\"trace\",n.name=\"histogram2dcontour\",n.basePlotModule=t(\"../../plots/cartesian\"),n.categories=[\"cartesian\",\"svg\",\"2dMap\",\"contour\",\"histogram\",\"showLegend\"],n.meta={},e.exports=n},{\"../../plots/cartesian\":756,\"../contour/calc\":917,\"../contour/colorbar\":919,\"../contour/hover\":929,\"../contour/plot\":934,\"../contour/style\":936,\"../histogram2d/cross_trace_defaults\":978,\"./attributes\":983,\"./defaults\":984}],986:[function(t,e,r){\"use strict\";var n=t(\"../../components/colorscale/attributes\"),i=t(\"../../components/colorbar/attributes\"),a=t(\"../surface/attributes\"),o=t(\"../../plots/attributes\"),s=t(\"../../lib/extend\").extendFlat;e.exports=s({x:{valType:\"data_array\",editType:\"calc+clearAxisTypes\"},y:{valType:\"data_array\",editType:\"calc+clearAxisTypes\"},z:{valType:\"data_array\",editType:\"calc+clearAxisTypes\"},i:{valType:\"data_array\",editType:\"calc\"},j:{valType:\"data_array\",editType:\"calc\"},k:{valType:\"data_array\",editType:\"calc\"},text:{valType:\"string\",dflt:\"\",arrayOk:!0,editType:\"calc\"},delaunayaxis:{valType:\"enumerated\",values:[\"x\",\"y\",\"z\"],dflt:\"z\",editType:\"calc\"},alphahull:{valType:\"number\",dflt:-1,editType:\"calc\"},intensity:{valType:\"data_array\",editType:\"calc\"},color:{valType:\"color\",editType:\"calc\"},vertexcolor:{valType:\"data_array\",editType:\"calc\"},facecolor:{valType:\"data_array\",editType:\"calc\"},transforms:void 0},n(\"\",{colorAttr:\"`intensity`\",showScaleDflt:!0,editTypeOverride:\"calc\"}),{colorbar:i,opacity:a.opacity,flatshading:{valType:\"boolean\",dflt:!1,editType:\"calc\"},contour:{show:s({},a.contours.x.show,{}),color:a.contours.x.color,width:a.contours.x.width,editType:\"calc\"},lightposition:{x:s({},a.lightposition.x,{dflt:1e5}),y:s({},a.lightposition.y,{dflt:1e5}),z:s({},a.lightposition.z,{dflt:0}),editType:\"calc\"},lighting:s({vertexnormalsepsilon:{valType:\"number\",min:0,max:1,dflt:1e-12,editType:\"calc\"},facenormalsepsilon:{valType:\"number\",min:0,max:1,dflt:1e-6,editType:\"calc\"},editType:\"calc\"},a.lighting),hoverinfo:s({},o.hoverinfo,{editType:\"calc\"})})},{\"../../components/colorbar/attributes\":571,\"../../components/colorscale/attributes\":577,\"../../lib/extend\":685,\"../../plots/attributes\":741,\"../surface/attributes\":1130}],987:[function(t,e,r){\"use strict\";var n=t(\"../../components/colorscale/calc\");e.exports=function(t,e){e.intensity&&n(e,e.intensity,\"\",\"c\")}},{\"../../components/colorscale/calc\":578}],988:[function(t,e,r){\"use strict\";var n=t(\"gl-mesh3d\"),i=t(\"delaunay-triangulate\"),a=t(\"alpha-shape\"),o=t(\"convex-hull\"),s=t(\"../../lib/gl_format_color\").parseColorScale,l=t(\"../../lib/str2rgbarray\"),c=t(\"../../plots/gl3d/zip3\");function u(t,e,r){this.scene=t,this.uid=r,this.mesh=e,this.name=\"\",this.color=\"#fff\",this.data=null,this.showContour=!1}var f=u.prototype;function h(t){return t.map(l)}f.handlePick=function(t){if(t.object===this.mesh){var e=t.index=t.data.index;t.traceCoordinate=[this.data.x[e],this.data.y[e],this.data.z[e]];var r=this.data.text;return Array.isArray(r)&&void 0!==r[e]?t.textLabel=r[e]:r&&(t.textLabel=r),!0}},f.update=function(t){var e=this.scene,r=e.fullSceneLayout;function n(t,e,r,n){return e.map(function(e){return t.d2l(e,0,n)*r})}this.data=t;var u,f=c(n(r.xaxis,t.x,e.dataScale[0],t.xcalendar),n(r.yaxis,t.y,e.dataScale[1],t.ycalendar),n(r.zaxis,t.z,e.dataScale[2],t.zcalendar));if(t.i&&t.j&&t.k)u=c(t.i,t.j,t.k);else if(0===t.alphahull)u=o(f);else if(t.alphahull>0)u=a(t.alphahull,f);else{var p=[\"x\",\"y\",\"z\"].indexOf(t.delaunayaxis);u=i(f.map(function(t){return[t[(p+1)%3],t[(p+2)%3]]}))}var d={positions:f,cells:u,lightPosition:[t.lightposition.x,t.lightposition.y,t.lightposition.z],ambient:t.lighting.ambient,diffuse:t.lighting.diffuse,specular:t.lighting.specular,roughness:t.lighting.roughness,fresnel:t.lighting.fresnel,vertexNormalsEpsilon:t.lighting.vertexnormalsepsilon,faceNormalsEpsilon:t.lighting.facenormalsepsilon,opacity:t.opacity,contourEnable:t.contour.show,contourColor:l(t.contour.color).slice(0,3),contourWidth:t.contour.width,useFacetNormals:t.flatshading};t.intensity?(this.color=\"#fff\",d.vertexIntensity=t.intensity,d.vertexIntensityBounds=[t.cmin,t.cmax],d.colormap=s(t.colorscale)):t.vertexcolor?(this.color=t.vertexcolor[0],d.vertexColors=h(t.vertexcolor)):t.facecolor?(this.color=t.facecolor[0],d.cellColors=h(t.facecolor)):(this.color=t.color,d.meshColor=l(t.color)),this.mesh.update(d)},f.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()},e.exports=function(t,e){var r=t.glplot.gl,i=n({gl:r}),a=new u(t,i,e.uid);return i._trace=a,a.update(e),t.glplot.add(i),a}},{\"../../lib/gl_format_color\":692,\"../../lib/str2rgbarray\":719,\"../../plots/gl3d/zip3\":798,\"alpha-shape\":52,\"convex-hull\":118,\"delaunay-triangulate\":150,\"gl-mesh3d\":268}],989:[function(t,e,r){\"use strict\";var n=t(\"../../registry\"),i=t(\"../../lib\"),a=t(\"../../components/colorscale/defaults\"),o=t(\"./attributes\");e.exports=function(t,e,r,s){function l(r,n){return i.coerce(t,e,o,r,n)}function c(t){var e=t.map(function(t){var e=l(t);return e&&i.isArrayOrTypedArray(e)?e:null});return e.every(function(t){return t&&t.length===e[0].length})&&e}var u=c([\"x\",\"y\",\"z\"]),f=c([\"i\",\"j\",\"k\"]);u?(f&&f.forEach(function(t){for(var e=0;e<t.length;++e)t[e]|=0}),n.getComponentMethod(\"calendars\",\"handleTraceDefaults\")(t,e,[\"x\",\"y\",\"z\"],s),[\"lighting.ambient\",\"lighting.diffuse\",\"lighting.specular\",\"lighting.roughness\",\"lighting.fresnel\",\"lighting.vertexnormalsepsilon\",\"lighting.facenormalsepsilon\",\"lightposition.x\",\"lightposition.y\",\"lightposition.z\",\"contour.show\",\"contour.color\",\"contour.width\",\"colorscale\",\"reversescale\",\"flatshading\",\"alphahull\",\"delaunayaxis\",\"opacity\"].forEach(function(t){l(t)}),\"intensity\"in t?(l(\"intensity\"),a(t,e,s,l,{prefix:\"\",cLetter:\"c\"})):(e.showscale=!1,\"facecolor\"in t?l(\"facecolor\"):\"vertexcolor\"in t?l(\"vertexcolor\"):l(\"color\",r)),l(\"text\"),e._length=null):e.visible=!1}},{\"../../components/colorscale/defaults\":580,\"../../lib\":696,\"../../registry\":827,\"./attributes\":986}],990:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.supplyDefaults=t(\"./defaults\"),n.calc=t(\"./calc\"),n.colorbar={min:\"cmin\",max:\"cmax\"},n.plot=t(\"./convert\"),n.moduleType=\"trace\",n.name=\"mesh3d\",n.basePlotModule=t(\"../../plots/gl3d\"),n.categories=[\"gl3d\"],n.meta={},e.exports=n},{\"../../plots/gl3d\":787,\"./attributes\":986,\"./calc\":987,\"./convert\":988,\"./defaults\":989}],991:[function(t,e,r){\"use strict\";var n=t(\"../../lib\").extendFlat,i=t(\"../scatter/attributes\"),a=t(\"../../components/drawing/attributes\").dash,o=t(\"../../components/fx/attributes\"),s=i.line;function l(t){return{line:{color:n({},s.color,{dflt:t}),width:s.width,dash:a,editType:\"style\"},editType:\"style\"}}e.exports={x:{valType:\"data_array\",editType:\"calc+clearAxisTypes\"},open:{valType:\"data_array\",editType:\"calc\"},high:{valType:\"data_array\",editType:\"calc\"},low:{valType:\"data_array\",editType:\"calc\"},close:{valType:\"data_array\",editType:\"calc\"},line:{width:n({},s.width,{}),dash:n({},a,{}),editType:\"style\"},increasing:l(\"#3D9970\"),decreasing:l(\"#FF4136\"),text:{valType:\"string\",dflt:\"\",arrayOk:!0,editType:\"calc\"},tickwidth:{valType:\"number\",min:0,max:.5,dflt:.3,editType:\"calc\"},hoverlabel:n({},o.hoverlabel,{split:{valType:\"boolean\",dflt:!1,editType:\"style\"}})}},{\"../../components/drawing/attributes\":594,\"../../components/fx/attributes\":604,\"../../lib\":696,\"../scatter/attributes\":1043}],992:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=n._,a=t(\"../../plots/cartesian/axes\"),o=t(\"../../constants/numerical\").BADNUM;function s(t,e,r,n){return{o:t,h:e,l:r,c:n}}function l(t,e,r,n,s){for(var l=n.makeCalcdata(e,\"open\"),c=n.makeCalcdata(e,\"high\"),u=n.makeCalcdata(e,\"low\"),f=n.makeCalcdata(e,\"close\"),h=Array.isArray(e.text),p=!0,d=null,g=[],v=0;v<r.length;v++){var m=r[v],y=l[v],x=c[v],b=u[v],_=f[v];if(m!==o&&y!==o&&x!==o&&b!==o&&_!==o){_===y?null!==d&&_!==d&&(p=_>d):p=_>y,d=_;var w=s(y,x,b,_);w.pos=m,w.yc=(y+_)/2,w.i=v,w.dir=p?\"increasing\":\"decreasing\",h&&(w.tx=e.text[v]),g.push(w)}}return e._extremes[n._id]=a.findExtremes(n,u.concat(c),{padded:!0}),g.length&&(g[0].t={labels:{open:i(t,\"open:\")+\" \",high:i(t,\"high:\")+\" \",low:i(t,\"low:\")+\" \",close:i(t,\"close:\")+\" \"}}),g}e.exports={calc:function(t,e){var r=a.getFromId(t,e.xaxis),i=a.getFromId(t,e.yaxis),o=function(t,e,r){var i=r._minDiff;if(!i){var a,o=t._fullData,s=[];for(i=1/0,a=0;a<o.length;a++){var l=o[a];if(\"ohlc\"===l.type&&!0===l.visible&&l.xaxis===e._id){s.push(l);var c=e.makeCalcdata(l,\"x\");l._xcalc=c;var u=n.distinctVals(c).minDiff;u&&isFinite(u)&&(i=Math.min(i,u))}}for(i===1/0&&(i=1),a=0;a<s.length;a++)s[a]._minDiff=i}return i*r.tickwidth}(t,r,e),c=e._minDiff;e._minDiff=null;var u=e._xcalc;e._xcalc=null;var f=l(t,e,u,i,s);return e._extremes[r._id]=a.findExtremes(r,u,{vpad:c/2}),f.length?(n.extendFlat(f[0].t,{wHover:c/2,tickLen:o}),f):[{t:{empty:!0}}]},calcCommon:l}},{\"../../constants/numerical\":673,\"../../lib\":696,\"../../plots/cartesian/axes\":744}],993:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"./ohlc_defaults\"),a=t(\"./attributes\");function o(t,e,r,n){r(n+\".line.color\"),r(n+\".line.width\",e.line.width),r(n+\".line.dash\",e.line.dash)}e.exports=function(t,e,r,s){function l(r,i){return n.coerce(t,e,a,r,i)}i(t,e,l,s)?(l(\"line.width\"),l(\"line.dash\"),o(t,e,l,\"increasing\"),o(t,e,l,\"decreasing\"),l(\"text\"),l(\"tickwidth\"),s._requestRangeslider[e.xaxis]=!0):e.visible=!1}},{\"../../lib\":696,\"./attributes\":991,\"./ohlc_defaults\":996}],994:[function(t,e,r){\"use strict\";var n=t(\"../../plots/cartesian/axes\"),i=t(\"../../lib\"),a=t(\"../../components/fx\"),o=t(\"../../components/color\"),s=t(\"../scatter/fill_hover_text\"),l={increasing:\"\\u25b2\",decreasing:\"\\u25bc\"};function c(t,e,r,n){var i,s,l=t.cd,c=t.xa,u=l[0].trace,f=l[0].t,h=u.type,p=\"ohlc\"===h?\"l\":\"min\",d=\"ohlc\"===h?\"h\":\"max\",g=f.bPos||0,v=function(t){return t.pos+g-e},m=f.bdPos||f.tickLen,y=f.wHover,x=Math.min(1,m/Math.abs(c.r2c(c.range[1])-c.r2c(c.range[0])));function b(t){var e=v(t);return a.inbox(e-y,e+y,i)}function _(t){return a.inbox(t[p]-r,t[d]-r,i)}function w(t){return(b(t)+_(t))/2}i=t.maxHoverDistance-x,s=t.maxSpikeDistance-x;var k=a.getDistanceFunction(n,b,_,w);if(a.getClosest(l,k,t),!1===t.index)return null;var M=l[t.index],A=u[M.dir],T=A.line.color;return o.opacity(T)&&A.line.width?t.color=T:t.color=A.fillcolor,t.x0=c.c2p(M.pos+g-m,!0),t.x1=c.c2p(M.pos+g+m,!0),t.xLabelVal=M.pos,t.spikeDistance=w(M)*s/i,t.xSpike=c.c2p(M.pos,!0),t}function u(t,e,r,a){var o=t.cd,s=t.ya,l=o[0].trace,u=o[0].t,f=[],h=c(t,e,r,a);if(!h)return[];var p=o[h.index].hi||l.hoverinfo,d=p.split(\"+\");if(!(\"all\"===p||-1!==d.indexOf(\"y\")))return[];for(var g=[\"high\",\"open\",\"close\",\"low\"],v={},m=0;m<g.length;m++){var y,x=g[m],b=l[x][h.index],_=s.c2p(b,!0);b in v?(y=v[b]).yLabel+=\"<br>\"+u.labels[x]+n.hoverLabelText(s,b):((y=i.extendFlat({},h)).y0=y.y1=_,y.yLabelVal=b,y.yLabel=u.labels[x]+n.hoverLabelText(s,b),y.name=\"\",f.push(y),v[b]=y)}return f}function f(t,e,r,i){var a=t.cd,o=t.ya,u=a[0].trace,f=a[0].t,h=c(t,e,r,i);if(!h)return[];var p=a[h.index],d=h.index=p.i,g=p.dir;function v(t){return f.labels[t]+n.hoverLabelText(o,u[t][d])}var m=p.hi||u.hoverinfo,y=m.split(\"+\"),x=\"all\"===m,b=x||-1!==y.indexOf(\"y\"),_=x||-1!==y.indexOf(\"text\"),w=b?[v(\"open\"),v(\"high\"),v(\"low\"),v(\"close\")+\" \"+l[g]]:[];return _&&s(p,u,w),h.extraText=w.join(\"<br>\"),h.y0=h.y1=o.c2p(p.yc,!0),[h]}e.exports={hoverPoints:function(t,e,r,n){return t.cd[0].trace.hoverlabel.split?u(t,e,r,n):f(t,e,r,n)},hoverSplit:u,hoverOnPoints:f}},{\"../../components/color\":570,\"../../components/fx\":612,\"../../lib\":696,\"../../plots/cartesian/axes\":744,\"../scatter/fill_hover_text\":1051}],995:[function(t,e,r){\"use strict\";e.exports={moduleType:\"trace\",name:\"ohlc\",basePlotModule:t(\"../../plots/cartesian\"),categories:[\"cartesian\",\"svg\",\"showLegend\"],meta:{},attributes:t(\"./attributes\"),supplyDefaults:t(\"./defaults\"),calc:t(\"./calc\").calc,plot:t(\"./plot\"),style:t(\"./style\"),hoverPoints:t(\"./hover\").hoverPoints,selectPoints:t(\"./select\")}},{\"../../plots/cartesian\":756,\"./attributes\":991,\"./calc\":992,\"./defaults\":993,\"./hover\":994,\"./plot\":997,\"./select\":998,\"./style\":999}],996:[function(t,e,r){\"use strict\";var n=t(\"../../registry\");e.exports=function(t,e,r,i){var a=r(\"x\"),o=r(\"open\"),s=r(\"high\"),l=r(\"low\"),c=r(\"close\");if(r(\"hoverlabel.split\"),n.getComponentMethod(\"calendars\",\"handleTraceDefaults\")(t,e,[\"x\"],i),o&&s&&l&&c){var u=Math.min(o.length,s.length,l.length,c.length);return a&&(u=Math.min(u,a.length)),e._length=u,u}}},{\"../../registry\":827}],997:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../../lib\");e.exports=function(t,e,r,a){var o=e.xaxis,s=e.yaxis;i.makeTraceGroups(a,r,\"trace ohlc\").each(function(t){var r=n.select(this),a=t[0],l=a.t,c=a.trace;if(e.isRangePlot||(a.node3=r),!0!==c.visible||l.empty)r.remove();else{var u=l.tickLen,f=r.selectAll(\"path\").data(i.identity);f.enter().append(\"path\"),f.exit().remove(),f.attr(\"d\",function(t){var e=o.c2p(t.pos,!0),r=o.c2p(t.pos-u,!0),n=o.c2p(t.pos+u,!0);return\"M\"+r+\",\"+s.c2p(t.o,!0)+\"H\"+e+\"M\"+e+\",\"+s.c2p(t.h,!0)+\"V\"+s.c2p(t.l,!0)+\"M\"+n+\",\"+s.c2p(t.c,!0)+\"H\"+e})}})}},{\"../../lib\":696,d3:148}],998:[function(t,e,r){\"use strict\";e.exports=function(t,e){var r,n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].t.bPos||0;if(!1===e)for(r=0;r<n.length;r++)n[r].selected=0;else for(r=0;r<n.length;r++){var l=n[r];e.contains([i.c2p(l.pos+s),a.c2p(l.yc)],null,l.i,t)?(o.push({pointNumber:l.i,x:i.c2d(l.pos),y:a.c2d(l.yc)}),l.selected=1):l.selected=0}return o}},{}],999:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../../components/drawing\"),a=t(\"../../components/color\");e.exports=function(t,e){var r=e?e[0].node3:n.select(t).selectAll(\"g.ohlclayer\").selectAll(\"g.trace\");r.style(\"opacity\",function(t){return t[0].trace.opacity}),r.each(function(t){var e=t[0].trace;n.select(this).selectAll(\"path\").each(function(t){var r=e[t.dir].line;n.select(this).style(\"fill\",\"none\").call(a.stroke,r.color).call(i.dashLine,r.dash,r.width).style(\"opacity\",e.selectedpoints&&!t.selected?.3:1)})})}},{\"../../components/color\":570,\"../../components/drawing\":595,d3:148}],1000:[function(t,e,r){\"use strict\";var n=t(\"../../lib/extend\").extendFlat,i=t(\"../../plots/attributes\"),a=t(\"../../plots/font_attributes\"),o=t(\"../../components/colorscale/attributes\"),s=t(\"../../plots/domain\").attributes,l=t(\"../scatter/attributes\").line,c=t(\"../../components/colorbar/attributes\"),u=n({editType:\"calc\"},o(\"line\",{editType:\"calc\"}),{showscale:l.showscale,colorbar:c,shape:{valType:\"enumerated\",values:[\"linear\",\"hspline\"],dflt:\"linear\",editType:\"plot\"}});e.exports={domain:s({name:\"parcats\",trace:!0,editType:\"calc\"}),hoverinfo:n({},i.hoverinfo,{flags:[\"count\",\"probability\"],editType:\"plot\",arrayOk:!1}),hoveron:{valType:\"enumerated\",values:[\"category\",\"color\",\"dimension\"],dflt:\"category\",editType:\"plot\"},arrangement:{valType:\"enumerated\",values:[\"perpendicular\",\"freeform\",\"fixed\"],dflt:\"perpendicular\",editType:\"plot\"},bundlecolors:{valType:\"boolean\",dflt:!0,editType:\"plot\"},sortpaths:{valType:\"enumerated\",values:[\"forward\",\"backward\"],dflt:\"forward\",editType:\"plot\"},labelfont:a({editType:\"calc\"}),tickfont:a({editType:\"calc\"}),dimensions:{_isLinkedToArray:\"dimension\",label:{valType:\"string\",editType:\"calc\"},categoryorder:{valType:\"enumerated\",values:[\"trace\",\"category ascending\",\"category descending\",\"array\"],dflt:\"trace\",editType:\"calc\"},categoryarray:{valType:\"data_array\",editType:\"calc\"},ticktext:{valType:\"data_array\",editType:\"calc\"},values:{valType:\"data_array\",dflt:[],editType:\"calc\"},displayindex:{valType:\"integer\",editType:\"calc\"},editType:\"calc\",visible:{valType:\"boolean\",dflt:!0,editType:\"calc\"}},line:u,counts:{valType:\"number\",min:0,dflt:1,arrayOk:!0,editType:\"calc\"},customdata:void 0,hoverlabel:void 0,ids:void 0,legendgroup:void 0,opacity:void 0,selectedpoints:void 0,showlegend:void 0}},{\"../../components/colorbar/attributes\":571,\"../../components/colorscale/attributes\":577,\"../../lib/extend\":685,\"../../plots/attributes\":741,\"../../plots/domain\":770,\"../../plots/font_attributes\":771,\"../scatter/attributes\":1043}],1001:[function(t,e,r){\"use strict\";var n=t(\"../../plots/get_data\").getModuleCalcData,i=t(\"./plot\");r.name=\"parcats\",r.plot=function(t,e,r,a){var o=n(t.calcdata,\"parcats\");if(o.length){var s=o[0];i(t,s,r,a)}},r.clean=function(t,e,r,n){var i=n._has&&n._has(\"parcats\"),a=e._has&&e._has(\"parcats\");i&&!a&&n._paperdiv.selectAll(\".parcats\").remove()}},{\"../../plots/get_data\":781,\"./plot\":1006}],1002:[function(t,e,r){\"use strict\";var n=t(\"../../lib/gup\").wrap,i=t(\"../../components/colorscale/has_colorscale\"),a=t(\"../../components/colorscale/calc\"),o=t(\"../../lib/filter_unique.js\"),s=t(\"../../components/drawing\"),l=t(\"../../lib\");function c(t,e,r){t.valueInds.push(e),t.count+=r}function u(t,e,r){t.valueInds.push(e),t.count+=r}e.exports=function(t,e){var r=l.filterVisible(e.dimensions);if(0===r.length)return[];var f,h,p,d=r.map(function(t){var e;return\"trace\"===t.categoryorder?e=null:\"array\"===t.categoryorder?e=t.categoryarray:(e=o(t.values).sort(),\"category descending\"===t.categoryorder&&(e=e.reverse())),function(t,e){e=null==e?[]:e.map(function(t){return t});var r={},n={},i=[];e.forEach(function(t,e){r[t]=0,n[t]=e});for(var a=0;a<t.length;a++){var o,s=t[a];void 0===r[s]?(r[s]=1,o=e.push(s)-1,n[s]=o):(r[s]++,o=n[s]),i.push(o)}var l=e.map(function(t){return r[t]});return{uniqueValues:e,uniqueCounts:l,inds:i}}(t.values,e)});f=l.isArrayOrTypedArray(e.counts)?e.counts:[e.counts],function(t){var e;if(function(t){for(var e=new Array(t.length),r=0;r<t.length;r++){if(t[r]<0||t[r]>=t.length)return!1;if(void 0!==e[t[r]])return!1;e[t[r]]=!0}return!0}(t.map(function(t){return t.displayindex})))for(e=0;e<t.length;e++)t[e]._displayindex=t[e].displayindex;else for(e=0;e<t.length;e++)t[e]._displayindex=e}(r),r.forEach(function(t,e){!function(t,e){t._categoryarray=e.uniqueValues,null===t.ticktext||void 0===t.ticktext?t._ticktext=[]:t._ticktext=t.ticktext.slice();for(var r=t._ticktext.length;r<e.uniqueValues.length;r++)t._ticktext.push(e.uniqueValues[r])}(t,d[e])});var g,v=e.line;v?(i(e,\"line\")&&a(e,e.line.color,\"line\",\"c\"),g=s.tryColorscale(v)):g=l.identity;var m,y,x,b,_=r[0].values.length,w={},k=d.map(function(t){return t.inds});for(p=0,m=0;m<_;m++){var M=[];for(y=0;y<k.length;y++)M.push(k[y][m]);h=f[m%f.length],p+=h;var A=(x=m,b=void 0,b=l.isArrayOrTypedArray(v.color)?v.color[x%v.color.length]:v.color,{color:g(b),rawColor:b}),T=M+\"-\"+A.rawColor;void 0===w[T]&&(w[T]={categoryInds:M,color:A.color,rawColor:A.rawColor,valueInds:[],count:0}),u(w[T],m,h)}var S,E=r.map(function(t,e){return r=e,n=t._index,i=t._displayindex,a=t.label,{dimensionInd:r,containerInd:n,displayInd:i,dimensionLabel:a,count:p,categories:[],dragX:null};var r,n,i,a});for(m=0;m<_;m++)for(h=f[m%f.length],y=0;y<E.length;y++){var C=E[y].containerInd,L=d[y].inds[m],z=E[y].categories;if(void 0===z[L]){var O=e.dimensions[C]._categoryarray[L],I=e.dimensions[C]._ticktext[L];z[L]={dimensionInd:y,categoryInd:S=L,categoryValue:O,displayInd:S,categoryLabel:I,valueInds:[],count:0,dragY:null}}c(z[L],m,h)}return n(function(t,e,r){var n=t.map(function(t){return t.categories.length}).reduce(function(t,e){return Math.max(t,e)});return{dimensions:t,paths:e,trace:void 0,maxCats:n,count:r}}(E,w,p))}},{\"../../components/colorscale/calc\":578,\"../../components/colorscale/has_colorscale\":584,\"../../components/drawing\":595,\"../../lib\":696,\"../../lib/filter_unique.js\":686,\"../../lib/gup\":693}],1003:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../components/colorscale/has_colorscale\"),a=t(\"../../components/colorscale/defaults\"),o=t(\"../../plots/domain\").defaults,s=t(\"../../plots/array_container_defaults\"),l=t(\"./attributes\"),c=t(\"../parcoords/merge_length\");function u(t,e){function r(r,i){return n.coerce(t,e,l.dimensions,r,i)}var i=r(\"values\"),a=r(\"visible\");if(i&&i.length||(a=e.visible=!1),a){r(\"label\"),r(\"displayindex\",e._index);var o,s=t.categoryarray,c=Array.isArray(s)&&s.length>0;c&&(o=\"array\");var u=r(\"categoryorder\",o);\"array\"===u?(r(\"categoryarray\"),r(\"ticktext\")):(delete t.categoryarray,delete t.ticktext),c||\"array\"!==u||(e.categoryorder=\"trace\")}}e.exports=function(t,e,r,f){function h(r,i){return n.coerce(t,e,l,r,i)}var p=s(t,e,{name:\"dimensions\",handleItemDefaults:u}),d=function(t,e,r,o,s){s(\"line.shape\");var l=s(\"line.color\",o.colorway[0]);if(i(t,\"line\")&&n.isArrayOrTypedArray(l)){if(l.length)return s(\"line.colorscale\"),a(t,e,o,s,{prefix:\"line.\",cLetter:\"c\"}),l.length;e.line.color=r}return 1/0}(t,e,r,f,h);o(e,f,h),Array.isArray(p)&&p.length||(e.visible=!1),c(e,p,\"values\",d),h(\"hoveron\"),h(\"arrangement\"),h(\"bundlecolors\"),h(\"sortpaths\"),h(\"counts\");var g={family:f.font.family,size:Math.round(f.font.size),color:f.font.color};n.coerceFont(h,\"labelfont\",g);var v={family:f.font.family,size:Math.round(f.font.size/1.2),color:f.font.color};n.coerceFont(h,\"tickfont\",v)}},{\"../../components/colorscale/defaults\":580,\"../../components/colorscale/has_colorscale\":584,\"../../lib\":696,\"../../plots/array_container_defaults\":740,\"../../plots/domain\":770,\"../parcoords/merge_length\":1015,\"./attributes\":1e3}],1004:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.supplyDefaults=t(\"./defaults\"),n.calc=t(\"./calc\"),n.plot=t(\"./plot\"),n.colorbar={container:\"line\",min:\"cmin\",max:\"cmax\"},n.moduleType=\"trace\",n.name=\"parcats\",n.basePlotModule=t(\"./base_plot\"),n.categories=[\"noOpacity\"],n.meta={},e.exports=n},{\"./attributes\":1e3,\"./base_plot\":1001,\"./calc\":1002,\"./defaults\":1003,\"./plot\":1006}],1005:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../../plot_api/plot_api\"),a=t(\"../../components/fx\"),o=t(\"../../lib\"),s=t(\"../../components/drawing\"),l=t(\"tinycolor2\"),c=t(\"../../lib/svg_text_utils\");function u(t,e,r,i){var a=t.map(function(t,e,r){var n,i=r[0],a=e.margin||{l:80,r:80,t:100,b:80},o=i.trace,s=o.domain,l=e.width,c=e.height,u=Math.floor(l*(s.x[1]-s.x[0])),f=Math.floor(c*(s.y[1]-s.y[0])),h=s.x[0]*l+a.l,p=e.height-s.y[1]*e.height+a.t,d=o.line.shape;n=\"all\"===o.hoverinfo?[\"count\",\"probability\"]:o.hoverinfo.split(\"+\");var g={key:o.uid,model:i,x:h,y:p,width:u,height:f,hoveron:o.hoveron,hoverinfoItems:n,arrangement:o.arrangement,bundlecolors:o.bundlecolors,sortpaths:o.sortpaths,labelfont:o.labelfont,categorylabelfont:o.tickfont,pathShape:d,dragDimension:null,margin:a,paths:[],dimensions:[],graphDiv:t,traceSelection:null,pathSelection:null,dimensionSelection:null};i.dimensions&&(R(g),D(g));return g}.bind(0,e,r)),l=i.selectAll(\"g.parcatslayer\").data([null]);l.enter().append(\"g\").attr(\"class\",\"parcatslayer\").style(\"pointer-events\",\"all\");var u=l.selectAll(\"g.trace.parcats\").data(a,f),v=u.enter().append(\"g\").attr(\"class\",\"trace parcats\");u.attr(\"transform\",function(t){return\"translate(\"+t.x+\", \"+t.y+\")\"}),v.append(\"g\").attr(\"class\",\"paths\");var x=u.select(\"g.paths\").selectAll(\"path.path\").data(function(t){return t.paths},f);x.attr(\"fill\",function(t){return t.model.color});var w=x.enter().append(\"path\").attr(\"class\",\"path\").attr(\"stroke-opacity\",0).attr(\"fill\",function(t){return t.model.color}).attr(\"fill-opacity\",0);y(w),x.attr(\"d\",function(t){return t.svgD}),w.empty()||x.sort(p),x.exit().remove(),x.on(\"mouseover\",d).on(\"mouseout\",g).on(\"click\",m),v.append(\"g\").attr(\"class\",\"dimensions\");var k=u.select(\"g.dimensions\").selectAll(\"g.dimension\").data(function(t){return t.dimensions},f);k.enter().append(\"g\").attr(\"class\",\"dimension\"),k.attr(\"transform\",function(t){return\"translate(\"+t.x+\", 0)\"}),k.exit().remove();var M=k.selectAll(\"g.category\").data(function(t){return t.categories},f),A=M.enter().append(\"g\").attr(\"class\",\"category\");M.attr(\"transform\",function(t){return\"translate(0, \"+t.y+\")\"}),A.append(\"rect\").attr(\"class\",\"catrect\").attr(\"pointer-events\",\"none\"),M.select(\"rect.catrect\").attr(\"fill\",\"none\").attr(\"width\",function(t){return t.width}).attr(\"height\",function(t){return t.height}),b(A);var z=M.selectAll(\"rect.bandrect\").data(function(t){return t.bands},f);z.each(function(){o.raiseToTop(this)}),z.attr(\"fill\",function(t){return t.color});var O=z.enter().append(\"rect\").attr(\"class\",\"bandrect\").attr(\"stroke-opacity\",0).attr(\"fill\",function(t){return t.color}).attr(\"fill-opacity\",0);z.attr(\"fill\",function(t){return t.color}).attr(\"width\",function(t){return t.width}).attr(\"height\",function(t){return t.height}).attr(\"y\",function(t){return t.y}).attr(\"cursor\",function(t){return\"fixed\"===t.parcatsViewModel.arrangement?\"default\":\"perpendicular\"===t.parcatsViewModel.arrangement?\"ns-resize\":\"move\"}),_(O),z.exit().remove(),A.append(\"text\").attr(\"class\",\"catlabel\").attr(\"pointer-events\",\"none\");var I=e._fullLayout.paper_bgcolor;M.select(\"text.catlabel\").attr(\"text-anchor\",function(t){return h(t)?\"start\":\"end\"}).attr(\"alignment-baseline\",\"middle\").style(\"text-shadow\",I+\" -1px 1px 2px, \"+I+\" 1px 1px 2px, \"+I+\" 1px -1px 2px, \"+I+\" -1px -1px 2px\").style(\"fill\",\"rgb(0, 0, 0)\").attr(\"x\",function(t){return h(t)?t.width+5:-5}).attr(\"y\",function(t){return t.height/2}).text(function(t){return t.model.categoryLabel}).each(function(t){s.font(n.select(this),t.parcatsViewModel.categorylabelfont),c.convertToTspans(n.select(this),e)}),A.append(\"text\").attr(\"class\",\"dimlabel\"),M.select(\"text.dimlabel\").attr(\"text-anchor\",\"middle\").attr(\"alignment-baseline\",\"baseline\").attr(\"cursor\",function(t){return\"fixed\"===t.parcatsViewModel.arrangement?\"default\":\"ew-resize\"}).attr(\"x\",function(t){return t.width/2}).attr(\"y\",-5).text(function(t,e){return 0===e?t.parcatsViewModel.model.dimensions[t.model.dimensionInd].dimensionLabel:null}).each(function(t){s.font(n.select(this),t.parcatsViewModel.labelfont)}),M.selectAll(\"rect.bandrect\").on(\"mouseover\",T).on(\"mouseout\",S),M.exit().remove(),k.call(n.behavior.drag().origin(function(t){return{x:t.x,y:0}}).on(\"dragstart\",E).on(\"drag\",C).on(\"dragend\",L)),u.each(function(t){t.traceSelection=n.select(this),t.pathSelection=n.select(this).selectAll(\"g.paths\").selectAll(\"path.path\"),t.dimensionSelection=n.select(this).selectAll(\"g.dimensions\").selectAll(\"g.dimension\")}),u.exit().remove()}function f(t){return t.key}function h(t){var e=t.parcatsViewModel.dimensions.length,r=t.parcatsViewModel.dimensions[e-1].model.dimensionInd;return t.model.dimensionInd===r}function p(t,e){return t.model.rawColor>e.model.rawColor?1:t.model.rawColor<e.model.rawColor?-1:0}function d(t){if(!t.parcatsViewModel.dragDimension&&-1===t.parcatsViewModel.hoverinfoItems.indexOf(\"skip\")){o.raiseToTop(this),x(n.select(this));var e=v(t);if(t.parcatsViewModel.graphDiv.emit(\"plotly_hover\",{points:e,event:n.event}),-1===t.parcatsViewModel.hoverinfoItems.indexOf(\"none\")){var r,i,s,c=n.mouse(this)[0],u=t.parcatsViewModel.graphDiv,f=u._fullLayout,h=f._paperdiv.node().getBoundingClientRect(),p=t.parcatsViewModel.graphDiv.getBoundingClientRect();for(s=0;s<t.leftXs.length-1;s++)if(t.leftXs[s]+t.dimWidths[s]-2<=c&&c<=t.leftXs[s+1]+2){var d=t.parcatsViewModel.dimensions[s],g=t.parcatsViewModel.dimensions[s+1];r=(d.x+d.width+g.x)/2,i=(t.topYs[s]+t.topYs[s+1]+t.height)/2;break}var m=t.parcatsViewModel.x+r,y=t.parcatsViewModel.y+i,b=l.mostReadable(t.model.color,[\"black\",\"white\"]),_=[];-1!==t.parcatsViewModel.hoverinfoItems.indexOf(\"count\")&&_.push([\"Count:\",t.model.count].join(\" \")),-1!==t.parcatsViewModel.hoverinfoItems.indexOf(\"probability\")&&_.push([\"P:\",(t.model.count/t.parcatsViewModel.model.count).toFixed(3)].join(\" \"));var w=_.join(\"<br>\"),k=n.mouse(u)[0];a.loneHover({x:m-h.left+p.left,y:y-h.top+p.top,text:w,color:t.model.color,borderColor:\"black\",fontFamily:'Monaco, \"Courier New\", monospace',fontSize:10,fontColor:b,idealAlign:k<m?\"right\":\"left\"},{container:f._hoverlayer.node(),outerContainer:f._paper.node(),gd:u})}}}function g(t){if(!t.parcatsViewModel.dragDimension&&(y(n.select(this)),a.loneUnhover(t.parcatsViewModel.graphDiv._fullLayout._hoverlayer.node()),t.parcatsViewModel.pathSelection.sort(p),-1===t.parcatsViewModel.hoverinfoItems.indexOf(\"skip\"))){var e=v(t);t.parcatsViewModel.graphDiv.emit(\"plotly_unhover\",{points:e,event:n.event})}}function v(t){for(var e=[],r=z(t.parcatsViewModel),n=0;n<t.model.valueInds.length;n++){var i=t.model.valueInds[n];e.push({curveNumber:r,pointNumber:i})}return e}function m(t){if(-1===t.parcatsViewModel.hoverinfoItems.indexOf(\"skip\")){var e=v(t);t.parcatsViewModel.graphDiv.emit(\"plotly_click\",{points:e,event:n.event})}}function y(t){t.attr(\"fill\",function(t){return t.model.color}).attr(\"fill-opacity\",.6).attr(\"stroke\",\"lightgray\").attr(\"stroke-width\",.2).attr(\"stroke-opacity\",1)}function x(t){t.attr(\"fill-opacity\",.8).attr(\"stroke\",function(t){return l.mostReadable(t.model.color,[\"black\",\"white\"])}).attr(\"stroke-width\",.3)}function b(t){t.select(\"rect.catrect\").attr(\"stroke\",\"black\").attr(\"stroke-width\",1).attr(\"stroke-opacity\",1)}function _(t){t.attr(\"stroke\",\"black\").attr(\"stroke-width\",.2).attr(\"stroke-opacity\",1).attr(\"fill-opacity\",1)}function w(t){var e=t.parcatsViewModel.pathSelection,r=t.categoryViewModel.model.dimensionInd,n=t.categoryViewModel.model.categoryInd;return e.filter(function(e){return e.model.categoryInds[r]===n&&e.model.color===t.color})}function k(t,e,r){var i=n.select(t).datum().parcatsViewModel.graphDiv,a=n.select(t.parentNode).selectAll(\"rect.bandrect\"),o=[];a.each(function(t){w(t).each(function(t){Array.prototype.push.apply(o,v(t))})}),i.emit(e,{points:o,event:r})}function M(t,e,r){var i=n.select(t).datum(),a=i.parcatsViewModel.graphDiv,o=w(i),s=[];o.each(function(t){Array.prototype.push.apply(s,v(t))}),a.emit(e,{points:s,event:r})}function A(t,e){var r,i,a=n.select(e.parentNode).select(\"rect.catrect\"),o=a.node().getBoundingClientRect(),s=a.datum(),l=s.parcatsViewModel,c=l.model.dimensions[s.model.dimensionInd],u=o.top+o.height/2;l.dimensions.length>1&&c.displayInd===l.dimensions.length-1?(r=o.left,i=\"left\"):(r=o.left+o.width,i=\"right\");var f=[];-1!==s.parcatsViewModel.hoverinfoItems.indexOf(\"count\")&&f.push([\"Count:\",s.model.count].join(\" \")),-1!==s.parcatsViewModel.hoverinfoItems.indexOf(\"probability\")&&f.push([\"P(\"+s.model.categoryLabel+\"):\",(s.model.count/s.parcatsViewModel.model.count).toFixed(3)].join(\" \"));var h=f.join(\"<br>\");return{x:r-t.left,y:u-t.top,text:h,color:\"lightgray\",borderColor:\"black\",fontFamily:'Monaco, \"Courier New\", monospace',fontSize:12,fontColor:\"black\",idealAlign:i}}function T(t){if(!t.parcatsViewModel.dragDimension&&-1===t.parcatsViewModel.hoverinfoItems.indexOf(\"skip\")){if(n.mouse(this)[1]<-1)return;var e,r=t.parcatsViewModel.graphDiv,i=r._fullLayout,s=i._paperdiv.node().getBoundingClientRect(),c=t.parcatsViewModel.hoveron;if(\"color\"===c?(!function(t){var e=n.select(t).datum(),r=w(e);x(r),r.each(function(){o.raiseToTop(this)}),n.select(t.parentNode).selectAll(\"rect.bandrect\").filter(function(t){return t.color===e.color}).each(function(){o.raiseToTop(this),n.select(this).attr(\"stroke\",\"black\").attr(\"stroke-width\",1.5)})}(this),M(this,\"plotly_hover\",n.event)):(!function(t){n.select(t.parentNode).selectAll(\"rect.bandrect\").each(function(t){var e=w(t);x(e),e.each(function(){o.raiseToTop(this)})}),n.select(t.parentNode).select(\"rect.catrect\").attr(\"stroke\",\"black\").attr(\"stroke-width\",2.5)}(this),k(this,\"plotly_hover\",n.event)),-1===t.parcatsViewModel.hoverinfoItems.indexOf(\"none\"))\"category\"===c?e=A(s,this):\"color\"===c?e=function(t,e){var r,i,a=e.getBoundingClientRect(),o=n.select(e).datum(),s=o.categoryViewModel,c=s.parcatsViewModel,u=c.model.dimensions[s.model.dimensionInd],f=a.y+a.height/2;c.dimensions.length>1&&u.displayInd===c.dimensions.length-1?(r=a.left,i=\"left\"):(r=a.left+a.width,i=\"right\");var h=s.model.categoryLabel,p=o.parcatsViewModel.model.count,d=0;o.categoryViewModel.bands.forEach(function(t){t.color===o.color&&(d+=t.count)});var g=s.model.count,v=0;c.pathSelection.each(function(t){t.model.color===o.color&&(v+=t.model.count)});var m=[];if(-1!==s.parcatsViewModel.hoverinfoItems.indexOf(\"count\")&&m.push([\"Count:\",d].join(\" \")),-1!==s.parcatsViewModel.hoverinfoItems.indexOf(\"probability\")){var y=\"P(color \\u2229 \"+h+\"): \"+(d/p).toFixed(3);m.push(y);var x=\"P(\"+h+\" | color): \"+(d/v).toFixed(3);m.push(x);var b=\"P(color | \"+h+\"): \"+(d/g).toFixed(3);m.push(b)}var _=m.join(\"<br>\"),w=l.mostReadable(o.color,[\"black\",\"white\"]);return{x:r-t.left,y:f-t.top,text:_,color:o.color,borderColor:\"black\",fontFamily:'Monaco, \"Courier New\", monospace',fontColor:w,fontSize:10,idealAlign:i}}(s,this):\"dimension\"===c&&(e=function(t,e){var r=[];return n.select(e.parentNode.parentNode).selectAll(\"g.category\").select(\"rect.catrect\").each(function(){r.push(A(t,this))}),r}(s,this)),e&&a.multiHovers(e,{container:i._hoverlayer.node(),outerContainer:i._paper.node(),gd:r})}}function S(t){var e=t.parcatsViewModel;if(!e.dragDimension&&(y(e.pathSelection),b(e.dimensionSelection.selectAll(\"g.category\")),_(e.dimensionSelection.selectAll(\"g.category\").selectAll(\"rect.bandrect\")),a.loneUnhover(e.graphDiv._fullLayout._hoverlayer.node()),e.pathSelection.sort(p),-1===e.hoverinfoItems.indexOf(\"skip\"))){\"color\"===t.parcatsViewModel.hoveron?M(this,\"plotly_unhover\",n.event):k(this,\"plotly_unhover\",n.event)}}function E(t){\"fixed\"!==t.parcatsViewModel.arrangement&&(t.dragDimensionDisplayInd=t.model.displayInd,t.initialDragDimensionDisplayInds=t.parcatsViewModel.model.dimensions.map(function(t){return t.displayInd}),t.dragHasMoved=!1,t.dragCategoryDisplayInd=null,n.select(this).selectAll(\"g.category\").select(\"rect.catrect\").each(function(e){var r=n.mouse(this)[0],i=n.mouse(this)[1];-2<=r&&r<=e.width+2&&-2<=i&&i<=e.height+2&&(t.dragCategoryDisplayInd=e.model.displayInd,t.initialDragCategoryDisplayInds=t.model.categories.map(function(t){return t.displayInd}),e.model.dragY=e.y,o.raiseToTop(this.parentNode),n.select(this.parentNode).selectAll(\"rect.bandrect\").each(function(e){e.y<i&&i<=e.y+e.height&&(t.potentialClickBand=this)}))}),t.parcatsViewModel.dragDimension=t,a.loneUnhover(t.parcatsViewModel.graphDiv._fullLayout._hoverlayer.node()))}function C(t){if(\"fixed\"!==t.parcatsViewModel.arrangement&&(t.dragHasMoved=!0,null!==t.dragDimensionDisplayInd)){var e=t.dragDimensionDisplayInd,r=e-1,i=e+1,a=t.parcatsViewModel.dimensions[e];if(null!==t.dragCategoryDisplayInd){var o=a.categories[t.dragCategoryDisplayInd];o.model.dragY+=n.event.dy;var s=o.model.dragY,l=o.model.displayInd,c=a.categories,u=c[l-1],f=c[l+1];void 0!==u&&s<u.y+u.height/2&&(o.model.displayInd=u.model.displayInd,u.model.displayInd=l),void 0!==f&&s+o.height>f.y+f.height/2&&(o.model.displayInd=f.model.displayInd,f.model.displayInd=l),t.dragCategoryDisplayInd=o.model.displayInd}if(null===t.dragCategoryDisplayInd||\"freeform\"===t.parcatsViewModel.arrangement){a.model.dragX=n.event.x;var h=t.parcatsViewModel.dimensions[r],p=t.parcatsViewModel.dimensions[i];void 0!==h&&a.model.dragX<h.x+h.width&&(a.model.displayInd=h.model.displayInd,h.model.displayInd=e),void 0!==p&&a.model.dragX+a.width>p.x&&(a.model.displayInd=p.model.displayInd,p.model.displayInd=t.dragDimensionDisplayInd),t.dragDimensionDisplayInd=a.model.displayInd}R(t.parcatsViewModel),D(t.parcatsViewModel),I(t.parcatsViewModel),O(t.parcatsViewModel)}}function L(t){if(\"fixed\"!==t.parcatsViewModel.arrangement&&null!==t.dragDimensionDisplayInd){n.select(this).selectAll(\"text\").attr(\"font-weight\",\"normal\");var e={},r=z(t.parcatsViewModel),a=t.parcatsViewModel.model.dimensions.map(function(t){return t.displayInd}),o=t.initialDragDimensionDisplayInds.some(function(t,e){return t!==a[e]});o&&a.forEach(function(r,n){var i=t.parcatsViewModel.model.dimensions[n].containerInd;e[\"dimensions[\"+i+\"].displayindex\"]=r});var s=!1;if(null!==t.dragCategoryDisplayInd){var l=t.model.categories.map(function(t){return t.displayInd});if(s=t.initialDragCategoryDisplayInds.some(function(t,e){return t!==l[e]})){var c=t.model.categories.slice().sort(function(t,e){return t.displayInd-e.displayInd}),u=c.map(function(t){return t.categoryValue}),f=c.map(function(t){return t.categoryLabel});e[\"dimensions[\"+t.model.containerInd+\"].categoryarray\"]=[u],e[\"dimensions[\"+t.model.containerInd+\"].ticktext\"]=[f],e[\"dimensions[\"+t.model.containerInd+\"].categoryorder\"]=\"array\"}}if(-1===t.parcatsViewModel.hoverinfoItems.indexOf(\"skip\")&&!t.dragHasMoved&&t.potentialClickBand&&(\"color\"===t.parcatsViewModel.hoveron?M(t.potentialClickBand,\"plotly_click\",n.event.sourceEvent):k(t.potentialClickBand,\"plotly_click\",n.event.sourceEvent)),t.model.dragX=null,null!==t.dragCategoryDisplayInd)t.parcatsViewModel.dimensions[t.dragDimensionDisplayInd].categories[t.dragCategoryDisplayInd].model.dragY=null,t.dragCategoryDisplayInd=null;t.dragDimensionDisplayInd=null,t.parcatsViewModel.dragDimension=null,t.dragHasMoved=null,t.potentialClickBand=null,R(t.parcatsViewModel),D(t.parcatsViewModel),n.transition().duration(300).ease(\"cubic-in-out\").each(function(){I(t.parcatsViewModel,!0),O(t.parcatsViewModel,!0)}).each(\"end\",function(){(o||s)&&i.restyle(t.parcatsViewModel.graphDiv,e,[r])})}}function z(t){for(var e,r=t.graphDiv._fullData,n=0;n<r.length;n++)if(t.key===r[n].uid){e=n;break}return e}function O(t,e){var r;void 0===e&&(e=!1),t.pathSelection.data(function(t){return t.paths},f),(r=t.pathSelection,e?r.transition():r).attr(\"d\",function(t){return t.svgD})}function I(t,e){function r(t){return e?t.transition():t}void 0===e&&(e=!1),t.dimensionSelection.data(function(t){return t.dimensions},f);var i=t.dimensionSelection.selectAll(\"g.category\").data(function(t){return t.categories},f);r(t.dimensionSelection).attr(\"transform\",function(t){return\"translate(\"+t.x+\", 0)\"}),r(i).attr(\"transform\",function(t){return\"translate(0, \"+t.y+\")\"}),i.select(\".dimlabel\").text(function(t,e){return 0===e?t.parcatsViewModel.model.dimensions[t.model.dimensionInd].dimensionLabel:null}),i.select(\".catlabel\").attr(\"text-anchor\",function(t){return h(t)?\"start\":\"end\"}).attr(\"x\",function(t){return h(t)?t.width+5:-5}).each(function(t){var e,r;h(t)?(e=t.width+5,r=\"start\"):(e=-5,r=\"end\"),n.select(this).selectAll(\"tspan\").attr(\"x\",e).attr(\"text-anchor\",r)});var a=i.selectAll(\"rect.bandrect\").data(function(t){return t.bands},f),s=a.enter().append(\"rect\").attr(\"class\",\"bandrect\").attr(\"cursor\",\"move\").attr(\"stroke-opacity\",0).attr(\"fill\",function(t){return t.color}).attr(\"fill-opacity\",0);a.attr(\"fill\",function(t){return t.color}).attr(\"width\",function(t){return t.width}).attr(\"height\",function(t){return t.height}).attr(\"y\",function(t){return t.y}),_(s),a.each(function(){o.raiseToTop(this)}),a.exit().remove()}function P(t,e,r,i,a){var o,s,l=[],c=[];for(s=0;s<r.length-1;s++)o=n.interpolateNumber(r[s]+t[s],t[s+1]),l.push(o(a)),c.push(o(1-a));var u=\"M \"+t[0]+\",\"+e[0];for(u+=\"l\"+r[0]+\",0 \",s=1;s<r.length;s++)u+=\"C\"+l[s-1]+\",\"+e[s-1]+\" \"+c[s-1]+\",\"+e[s]+\" \"+t[s]+\",\"+e[s],u+=\"l\"+r[s]+\",0 \";for(u+=\"l0,\"+i+\" \",u+=\"l -\"+r[r.length-1]+\",0 \",s=r.length-2;s>=0;s--)u+=\"C\"+c[s]+\",\"+(e[s+1]+i)+\" \"+l[s]+\",\"+(e[s]+i)+\" \"+(t[s]+r[s])+\",\"+(e[s]+i),u+=\"l-\"+r[s]+\",0 \";return u+=\"Z\"}function D(t){var e=t.dimensions,r=t.model,n=e.map(function(t){return t.categories.map(function(t){return t.y})}),i=t.model.dimensions.map(function(t){return t.categories.map(function(t){return t.displayInd})}),a=t.model.dimensions.map(function(t){return t.displayInd}),o=t.dimensions.map(function(t){return t.model.dimensionInd}),s=e.map(function(t){return t.x}),l=e.map(function(t){return t.width}),c=[];for(var u in r.paths)r.paths.hasOwnProperty(u)&&c.push(r.paths[u]);function f(t){var e=t.categoryInds.map(function(t,e){return i[e][t]});return o.map(function(t){return e[t]})}c.sort(function(e,r){var n=f(e),i=f(r);return\"backward\"===t.sortpaths&&(n.reverse(),i.reverse()),n.push(e.valueInds[0]),i.push(r.valueInds[0]),t.bundlecolors&&(n.unshift(e.rawColor),i.unshift(r.rawColor)),n<i?-1:n>i?1:0});for(var h=new Array(c.length),p=e[0].model.count,d=e[0].categories.map(function(t){return t.height}).reduce(function(t,e){return t+e}),g=0;g<c.length;g++){var v,m=c[g];v=p>0?d*(m.count/p):0;for(var y,x=new Array(n.length),b=0;b<m.categoryInds.length;b++){var _=m.categoryInds[b],w=i[b][_],k=a[b];x[k]=n[k][w],n[k][w]+=v;var M=t.dimensions[k].categories[w],A=M.bands.length,T=M.bands[A-1];if(void 0===T||m.rawColor!==T.rawColor){var S=void 0===T?0:T.y+T.height;M.bands.push({key:S,color:m.color,rawColor:m.rawColor,height:v,width:M.width,count:m.count,y:S,categoryViewModel:M,parcatsViewModel:t})}else{var E=M.bands[A-1];E.height+=v,E.count+=m.count}}y=\"hspline\"===t.pathShape?P(s,x,l,v,.5):P(s,x,l,v,0),h[g]={key:m.valueInds[0],model:m,height:v,leftXs:s,topYs:x,dimWidths:l,svgD:y,parcatsViewModel:t}}t.paths=h}function R(t){var e=t.model.dimensions.map(function(t){return{displayInd:t.displayInd,dimensionInd:t.dimensionInd}});e.sort(function(t,e){return t.displayInd-e.displayInd});var r=[];for(var n in e){var i=e[n].dimensionInd,a=t.model.dimensions[i];r.push(B(t,a))}t.dimensions=r}function B(t,e){var r,n=t.model.dimensions.length,i=e.displayInd;r=40+(n>1?(t.width-80-16)/(n-1):0)*i;var a,o,s,l,c,u=[],f=t.model.maxCats,h=e.categories.length,p=e.count,d=t.height-8*(f-1),g=8*(f-h)/2,v=e.categories.map(function(t){return{displayInd:t.displayInd,categoryInd:t.categoryInd}});for(v.sort(function(t,e){return t.displayInd-e.displayInd}),c=0;c<h;c++)l=v[c].categoryInd,o=e.categories[l],a=p>0?o.count/p*d:0,s={key:o.valueInds[0],model:o,width:16,height:a,y:null!==o.dragY?o.dragY:g,bands:[],parcatsViewModel:t},g=g+a+8,u.push(s);return{key:e.dimensionInd,x:null!==e.dragX?e.dragX:r,y:0,width:16,model:e,categories:u,parcatsViewModel:t,dragCategoryDisplayInd:null,dragDimensionDisplayInd:null,initialDragDimensionDisplayInds:null,initialDragCategoryDisplayInds:null,dragHasMoved:null,potentialClickBand:null}}e.exports=function(t,e,r,n){u(r,t,n,e)}},{\"../../components/drawing\":595,\"../../components/fx\":612,\"../../lib\":696,\"../../lib/svg_text_utils\":720,\"../../plot_api/plot_api\":731,d3:148,tinycolor2:514}],1006:[function(t,e,r){\"use strict\";var n=t(\"./parcats\");e.exports=function(t,e,r,i){var a=t._fullLayout,o=a._paper,s=a._size;n(t,o,e,{width:s.w,height:s.h,margin:{t:s.t,r:s.r,b:s.b,l:s.l}},r,i)}},{\"./parcats\":1005}],1007:[function(t,e,r){\"use strict\";var n=t(\"../../components/colorscale/attributes\"),i=t(\"../../components/colorbar/attributes\"),a=t(\"../../plots/cartesian/layout_attributes\"),o=t(\"../../plots/font_attributes\"),s=t(\"../../plots/domain\").attributes,l=t(\"../../lib/extend\").extendFlat,c=t(\"../../plot_api/plot_template\").templatedArray;e.exports={domain:s({name:\"parcoords\",trace:!0,editType:\"calc\"}),hoverlabel:void 0,labelfont:o({editType:\"calc\"}),tickfont:o({editType:\"calc\"}),rangefont:o({editType:\"calc\"}),dimensions:c(\"dimension\",{label:{valType:\"string\",editType:\"calc\"},tickvals:l({},a.tickvals,{editType:\"calc\"}),ticktext:l({},a.ticktext,{editType:\"calc\"}),tickformat:{valType:\"string\",dflt:\"3s\",editType:\"calc\"},visible:{valType:\"boolean\",dflt:!0,editType:\"calc\"},range:{valType:\"info_array\",items:[{valType:\"number\",editType:\"calc\"},{valType:\"number\",editType:\"calc\"}],editType:\"calc\"},constraintrange:{valType:\"info_array\",freeLength:!0,dimensions:\"1-2\",items:[{valType:\"number\",editType:\"calc\"},{valType:\"number\",editType:\"calc\"}],editType:\"calc\"},multiselect:{valType:\"boolean\",dflt:!0,editType:\"calc\"},values:{valType:\"data_array\",editType:\"calc\"},editType:\"calc\"}),line:l(n(\"line\",{colorscaleDflt:\"Viridis\",autoColorDflt:!1,editTypeOverride:\"calc\"}),{colorbar:i,editType:\"calc\"})}},{\"../../components/colorbar/attributes\":571,\"../../components/colorscale/attributes\":577,\"../../lib/extend\":685,\"../../plot_api/plot_template\":734,\"../../plots/cartesian/layout_attributes\":757,\"../../plots/domain\":770,\"../../plots/font_attributes\":771}],1008:[function(t,e,r){\"use strict\";var n=t(\"./constants\"),i=t(\"d3\"),a=t(\"../../lib/gup\").keyFun,o=t(\"../../lib/gup\").repeat,s=t(\"../../lib\").sorterAsc,l=n.bar.snapRatio;function c(t,e){return t*(1-l)+e*l}var u=n.bar.snapClose;function f(t,e){return t*(1-u)+e*u}function h(t,e,r){if(d(e,r))return e;for(var n=t[0],i=n,a=1;a<t.length;a++){var o=t[a];if(e<f(n,o))return c(n,i);if(e<o||a===t.length-1)return c(o,n);i=n,n=o}}function p(t,e,r){if(d(e,r))return e;for(var n=t[t.length-1],i=n,a=t.length-2;a>=0;a--){var o=t[a];if(e>f(n,o))return c(n,i);if(e>o||a===t.length-1)return c(o,n);i=n,n=o}}function d(t,e){for(var r=0;r<e.length;r++)if(t>=e[r][0]&&t<=e[r][1])return!0;return!1}function g(t){t.attr(\"x\",-n.bar.captureWidth/2).attr(\"width\",n.bar.captureWidth)}function v(t){t.attr(\"visibility\",\"visible\").style(\"visibility\",\"visible\").attr(\"fill\",\"yellow\").attr(\"opacity\",0)}function m(t){if(!t.brush.filterSpecified)return\"0,\"+t.height;for(var e,r,n,i=y(t.brush.filter.getConsolidated(),t.height),a=[0],o=i.length?i[0][0]:null,s=0;s<i.length;s++)r=(e=i[s])[1]-e[0],a.push(o),a.push(r),(n=s+1)<i.length&&(o=i[n][0]-e[1]);return a.push(t.height),a}function y(t,e){return t.map(function(t){return t.map(function(t){return t*e}).sort(s)})}function x(){i.select(document.body).style(\"cursor\",null)}function b(t){t.attr(\"stroke-dasharray\",m)}function _(t,e){var r=i.select(t).selectAll(\".highlight, .highlight-shadow\");b(e?r.transition().duration(n.bar.snapDuration).each(\"end\",e):r)}function w(t,e){var r,i=t.brush,a=NaN,o={};if(i.filterSpecified){var s=t.height,l=i.filter.getConsolidated(),c=y(l,s),u=NaN,f=NaN,h=NaN;for(r=0;r<=c.length;r++){var p=c[r];if(p&&p[0]<=e&&e<=p[1]){u=r;break}if(f=r?r-1:NaN,p&&p[0]>e){h=r;break}}if(a=u,isNaN(a)&&(a=isNaN(f)||isNaN(h)?isNaN(f)?h:f:e-c[f][1]<c[h][0]-e?f:h),!isNaN(a)){var d=c[a],g=function(t,e){var r=n.bar.handleHeight;if(!(e>t[1]+r||e<t[0]-r))return e>=.9*t[1]+.1*t[0]?\"n\":e<=.9*t[0]+.1*t[1]?\"s\":\"ns\"}(d,e);g&&(o.interval=l[a],o.intervalPix=d,o.region=g)}}if(t.ordinal&&!o.region){var v=t.unitTickvals,m=t.unitToPaddedPx.invert(e);for(r=0;r<v.length;r++){var x=[.25*v[Math.max(r-1,0)]+.75*v[r],.25*v[Math.min(r+1,v.length-1)]+.75*v[r]];if(m>=x[0]&&m<=x[1]){o.clickableOrdinalRange=x;break}}}return o}function k(t){t.on(\"mousemove\",function(t){if(i.event.preventDefault(),!t.parent.inBrushDrag){var e=w(t,t.height-i.mouse(this)[1]-2*n.verticalPadding),r=\"crosshair\";e.clickableOrdinalRange?r=\"pointer\":e.region&&(r=e.region+\"-resize\"),i.select(document.body).style(\"cursor\",r)}}).on(\"mouseleave\",function(t){t.parent.inBrushDrag||x()}).call(i.behavior.drag().on(\"dragstart\",function(t){i.event.sourceEvent.stopPropagation();var e=t.height-i.mouse(this)[1]-2*n.verticalPadding,r=t.unitToPaddedPx.invert(e),a=t.brush,o=w(t,e),s=o.interval,l=a.svgBrush;if(l.wasDragged=!1,l.grabbingBar=\"ns\"===o.region,l.grabbingBar){var c=s.map(t.unitToPaddedPx);l.grabPoint=e-c[0]-n.verticalPadding,l.barLength=c[1]-c[0]}l.clickableOrdinalRange=o.clickableOrdinalRange,l.stayingIntervals=t.multiselect&&a.filterSpecified?a.filter.getConsolidated():[],s&&(l.stayingIntervals=l.stayingIntervals.filter(function(t){return t[0]!==s[0]&&t[1]!==s[1]})),l.startExtent=o.region?s[\"s\"===o.region?1:0]:r,t.parent.inBrushDrag=!0,l.brushStartCallback()}).on(\"drag\",function(t){i.event.sourceEvent.stopPropagation();var e=t.height-i.mouse(this)[1]-2*n.verticalPadding,r=t.brush.svgBrush;r.wasDragged=!0,r.grabbingBar?r.newExtent=[e-r.grabPoint,e+r.barLength-r.grabPoint].map(t.unitToPaddedPx.invert):r.newExtent=[r.startExtent,t.unitToPaddedPx.invert(e)].sort(s);var a=Math.max(0,-r.newExtent[0]),o=Math.max(0,r.newExtent[1]-1);r.newExtent[0]+=a,r.newExtent[1]-=o,r.grabbingBar&&(r.newExtent[1]+=a,r.newExtent[0]-=o),t.brush.filterSpecified=!0,r.extent=r.stayingIntervals.concat([r.newExtent]),r.brushCallback(t),_(this.parentNode)}).on(\"dragend\",function(t){i.event.sourceEvent.stopPropagation();var e=t.brush,r=e.filter,n=e.svgBrush,a=n.grabbingBar;if(n.grabbingBar=!1,n.grabLocation=void 0,t.parent.inBrushDrag=!1,x(),!n.wasDragged)return n.wasDragged=void 0,n.clickableOrdinalRange?e.filterSpecified&&t.multiselect?n.extent.push(n.clickableOrdinalRange):(n.extent=[n.clickableOrdinalRange],e.filterSpecified=!0):a?(n.extent=n.stayingIntervals,0===n.extent.length&&A(e)):A(e),n.brushCallback(t),_(this.parentNode),void n.brushEndCallback(e.filterSpecified?r.getConsolidated():[]);var o=function(){r.set(r.getConsolidated())};if(t.ordinal){var s=t.unitTickvals;s[s.length-1]<s[0]&&s.reverse(),n.newExtent=[h(s,n.newExtent[0],n.stayingIntervals),p(s,n.newExtent[1],n.stayingIntervals)];var l=n.newExtent[1]>n.newExtent[0];n.extent=n.stayingIntervals.concat(l?[n.newExtent]:[]),n.extent.length||A(e),n.brushCallback(t),l?_(this.parentNode,o):(o(),_(this.parentNode))}else o();n.brushEndCallback(e.filterSpecified?r.getConsolidated():[])}))}function M(t,e){return t[0]-e[0]}function A(t){t.filterSpecified=!1,t.svgBrush.extent=[[0,1]]}function T(t){for(var e,r=t.slice(),n=[],i=r.shift();i;){for(e=i.slice();(i=r.shift())&&i[0]<=e[1];)e[1]=Math.max(e[1],i[1]);n.push(e)}return n}e.exports={makeBrush:function(t,e,r,n,i,a){var o,l=function(){var t,e,r=[];return{set:function(n){r=n.map(function(t){return t.slice().sort(s)}).sort(M),t=T(r),e=r.reduce(function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]},[1/0,-1/0])},get:function(){return r.slice()},getConsolidated:function(){return t},getBounds:function(){return e}}}();return l.set(r),{filter:l,filterSpecified:e,svgBrush:{extent:[],brushStartCallback:n,brushCallback:(o=i,function(t){var e=t.brush,r=function(t){return t.svgBrush.extent.map(function(t){return t.slice()})}(e).slice();e.filter.set(r),o()}),brushEndCallback:a}}},ensureAxisBrush:function(t){var e=t.selectAll(\".\"+n.cn.axisBrush).data(o,a);e.enter().append(\"g\").classed(n.cn.axisBrush,!0),function(t){var e=t.selectAll(\".background\").data(o);e.enter().append(\"rect\").classed(\"background\",!0).call(g).call(v).style(\"pointer-events\",\"auto\").attr(\"transform\",\"translate(0 \"+n.verticalPadding+\")\"),e.call(k).attr(\"height\",function(t){return t.height-n.verticalPadding});var r=t.selectAll(\".highlight-shadow\").data(o);r.enter().append(\"line\").classed(\"highlight-shadow\",!0).attr(\"x\",-n.bar.width/2).attr(\"stroke-width\",n.bar.width+n.bar.strokeWidth).attr(\"stroke\",n.bar.strokeColor).attr(\"opacity\",n.bar.strokeOpacity).attr(\"stroke-linecap\",\"butt\"),r.attr(\"y1\",function(t){return t.height}).call(b);var i=t.selectAll(\".highlight\").data(o);i.enter().append(\"line\").classed(\"highlight\",!0).attr(\"x\",-n.bar.width/2).attr(\"stroke-width\",n.bar.width-n.bar.strokeWidth).attr(\"stroke\",n.bar.fillColor).attr(\"opacity\",n.bar.fillOpacity).attr(\"stroke-linecap\",\"butt\"),i.attr(\"y1\",function(t){return t.height}).call(b)}(e)},cleanRanges:function(t,e){if(Array.isArray(t[0])?(t=t.map(function(t){return t.sort(s)}),t=e.multiselect?T(t.sort(M)):[t[0]]):t=[t.sort(s)],e.tickvals){var r=e.tickvals.slice().sort(s);if(!(t=t.map(function(t){var e=[h(r,t[0],[]),p(r,t[1],[])];if(e[1]>e[0])return e}).filter(function(t){return t})).length)return}return t.length>1?t:t[0]}}},{\"../../lib\":696,\"../../lib/gup\":693,\"./constants\":1011,d3:148}],1009:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../../plots/get_data\").getModuleCalcData,a=t(\"./plot\"),o=t(\"../../constants/xmlns_namespaces\");r.name=\"parcoords\",r.plot=function(t){var e=i(t.calcdata,\"parcoords\")[0];e.length&&a(t,e)},r.clean=function(t,e,r,n){var i=n._has&&n._has(\"parcoords\"),a=e._has&&e._has(\"parcoords\");i&&!a&&(n._paperdiv.selectAll(\".parcoords\").remove(),n._glimages.selectAll(\"*\").remove())},r.toSVG=function(t){var e=t._fullLayout._glimages,r=n.select(t).selectAll(\".svg-container\");r.filter(function(t,e){return e===r.size()-1}).selectAll(\".gl-canvas-context, .gl-canvas-focus\").each(function(){var t=this.toDataURL(\"image/png\");e.append(\"svg:image\").attr({xmlns:o.svg,\"xlink:href\":t,preserveAspectRatio:\"none\",x:0,y:0,width:this.width,height:this.height})}),window.setTimeout(function(){n.selectAll(\"#filterBarPattern\").attr(\"id\",\"filterBarPattern\")},60)}},{\"../../constants/xmlns_namespaces\":674,\"../../plots/get_data\":781,\"./plot\":1017,d3:148}],1010:[function(t,e,r){\"use strict\";var n=t(\"../../components/colorscale/has_colorscale\"),i=t(\"../../components/colorscale/calc\"),a=t(\"../../lib\"),o=t(\"../../lib/gup\").wrap;e.exports=function(t,e){var r=!!e.line.colorscale&&a.isArrayOrTypedArray(e.line.color),s=r?e.line.color:function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=.5;return e}(e._length),l=r?e.line.colorscale:[[0,e.line.color],[1,e.line.color]];return n(e,\"line\")&&i(e,s,\"line\",\"c\"),o({lineColor:s,cscale:l})}},{\"../../components/colorscale/calc\":578,\"../../components/colorscale/has_colorscale\":584,\"../../lib\":696,\"../../lib/gup\":693}],1011:[function(t,e,r){\"use strict\";e.exports={maxDimensionCount:60,overdrag:45,verticalPadding:2,tickDistance:50,canvasPixelRatio:1,blockLineCount:5e3,layers:[\"contextLineLayer\",\"focusLineLayer\",\"pickLineLayer\"],axisTitleOffset:28,axisExtentOffset:10,bar:{width:4,captureWidth:10,fillColor:\"magenta\",fillOpacity:1,snapDuration:150,snapRatio:.25,snapClose:.01,strokeColor:\"white\",strokeOpacity:1,strokeWidth:1,handleHeight:8,handleOpacity:1,handleOverlap:0},cn:{axisExtentText:\"axis-extent-text\",parcoordsLineLayers:\"parcoords-line-layers\",parcoordsLineLayer:\"parcoords-lines\",parcoords:\"parcoords\",parcoordsControlView:\"parcoords-control-view\",yAxis:\"y-axis\",axisOverlays:\"axis-overlays\",axis:\"axis\",axisHeading:\"axis-heading\",axisTitle:\"axis-title\",axisExtent:\"axis-extent\",axisExtentTop:\"axis-extent-top\",axisExtentTopText:\"axis-extent-top-text\",axisExtentBottom:\"axis-extent-bottom\",axisExtentBottomText:\"axis-extent-bottom-text\",axisBrush:\"axis-brush\"},id:{filterBarPattern:\"filter-bar-pattern\"}}},{}],1012:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../components/colorscale/has_colorscale\"),a=t(\"../../components/colorscale/defaults\"),o=t(\"../../plots/domain\").defaults,s=t(\"../../plots/array_container_defaults\"),l=t(\"./attributes\"),c=t(\"./axisbrush\"),u=t(\"./constants\").maxDimensionCount,f=t(\"./merge_length\");function h(t,e){function r(r,i){return n.coerce(t,e,l.dimensions,r,i)}var i=r(\"values\"),a=r(\"visible\");if(i&&i.length||(a=e.visible=!1),a){r(\"label\"),r(\"tickvals\"),r(\"ticktext\"),r(\"tickformat\"),r(\"range\"),r(\"multiselect\");var o=r(\"constraintrange\");o&&(e.constraintrange=c.cleanRanges(o,e))}}e.exports=function(t,e,r,c){function p(r,i){return n.coerce(t,e,l,r,i)}var d=t.dimensions;Array.isArray(d)&&d.length>u&&(n.log(\"parcoords traces support up to \"+u+\" dimensions at the moment\"),d.splice(u));var g=s(t,e,{name:\"dimensions\",handleItemDefaults:h}),v=function(t,e,r,o,s){var l=s(\"line.color\",r);if(i(t,\"line\")&&n.isArrayOrTypedArray(l)){if(l.length)return s(\"line.colorscale\"),a(t,e,o,s,{prefix:\"line.\",cLetter:\"c\"}),l.length;e.line.color=r}return 1/0}(t,e,r,c,p);o(e,c,p),Array.isArray(g)&&g.length||(e.visible=!1),f(e,g,\"values\",v);var m={family:c.font.family,size:Math.round(c.font.size/1.2),color:c.font.color};n.coerceFont(p,\"labelfont\",m),n.coerceFont(p,\"tickfont\",m),n.coerceFont(p,\"rangefont\",m)}},{\"../../components/colorscale/defaults\":580,\"../../components/colorscale/has_colorscale\":584,\"../../lib\":696,\"../../plots/array_container_defaults\":740,\"../../plots/domain\":770,\"./attributes\":1007,\"./axisbrush\":1008,\"./constants\":1011,\"./merge_length\":1015}],1013:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.supplyDefaults=t(\"./defaults\"),n.calc=t(\"./calc\"),n.plot=t(\"./plot\"),n.colorbar={container:\"line\",min:\"cmin\",max:\"cmax\"},n.moduleType=\"trace\",n.name=\"parcoords\",n.basePlotModule=t(\"./base_plot\"),n.categories=[\"gl\",\"regl\",\"noOpacity\"],n.meta={},e.exports=n},{\"./attributes\":1007,\"./base_plot\":1009,\"./calc\":1010,\"./defaults\":1012,\"./plot\":1017}],1014:[function(t,e,r){\"use strict\";var n=t(\"glslify\"),i=n([\"precision highp float;\\n#define GLSLIFY 1\\n\\nattribute vec4 p0, p1, p2, p3,\\n p4, p5, p6, p7,\\n p8, p9, pa, pb,\\n pc, pd, pe;\\n\\nattribute vec4 pf;\\n\\nuniform mat4 dim1A, dim2A, dim1B, dim2B, dim1C, dim2C, dim1D, dim2D,\\n loA, hiA, loB, hiB, loC, hiC, loD, hiD;\\n\\nuniform vec2 resolution,\\n viewBoxPosition,\\n viewBoxSize;\\n\\nuniform sampler2D palette;\\nuniform sampler2D mask;\\nuniform float maskHeight;\\n\\nuniform vec2 colorClamp;\\n\\nvarying vec4 fragColor;\\n\\nvec4 unit_1 = vec4(1, 1, 1, 1);\\n\\nfloat val(mat4 p, mat4 v) {\\n return dot(matrixCompMult(p, v) * unit_1, unit_1);\\n}\\n\\nfloat axisY(\\n float x,\\n mat4 d[4],\\n mat4 dim1A, mat4 dim2A, mat4 dim1B, mat4 dim2B, mat4 dim1C, mat4 dim2C, mat4 dim1D, mat4 dim2D\\n ) {\\n\\n float y1 = val(d[0], dim1A) + val(d[1], dim1B) + val(d[2], dim1C) + val(d[3], dim1D);\\n float y2 = val(d[0], dim2A) + val(d[1], dim2B) + val(d[2], dim2C) + val(d[3], dim2D);\\n return y1 * (1.0 - x) + y2 * x;\\n}\\n\\nconst int bitsPerByte = 8;\\n\\nint mod2(int a) {\\n return a - 2 * (a / 2);\\n}\\n\\nint mod8(int a) {\\n return a - 8 * (a / 8);\\n}\\n\\nvec4 zero = vec4(0, 0, 0, 0);\\nvec4 unit_0 = vec4(1, 1, 1, 1);\\nvec2 xyProjection = vec2(1, 1);\\n\\nmat4 mclamp(mat4 m, mat4 lo, mat4 hi) {\\n return mat4(clamp(m[0], lo[0], hi[0]),\\n clamp(m[1], lo[1], hi[1]),\\n clamp(m[2], lo[2], hi[2]),\\n clamp(m[3], lo[3], hi[3]));\\n}\\n\\nbool mshow(mat4 p, mat4 lo, mat4 hi) {\\n return mclamp(p, lo, hi) == p;\\n}\\n\\nbool withinBoundingBox(\\n mat4 d[4],\\n mat4 loA, mat4 hiA, mat4 loB, mat4 hiB, mat4 loC, mat4 hiC, mat4 loD, mat4 hiD\\n ) {\\n\\n return mshow(d[0], loA, hiA) &&\\n mshow(d[1], loB, hiB) &&\\n mshow(d[2], loC, hiC) &&\\n mshow(d[3], loD, hiD);\\n}\\n\\nbool withinRasterMask(mat4 d[4], sampler2D mask, float height) {\\n bool result = true;\\n int bitInByteStepper;\\n float valY, valueY, scaleX;\\n int hit, bitmask, valX;\\n for(int i = 0; i < 4; i++) {\\n for(int j = 0; j < 4; j++) {\\n for(int k = 0; k < 4; k++) {\\n bitInByteStepper = mod8(j * 4 + k);\\n valX = i * 2 + j / 2;\\n valY = d[i][j][k];\\n valueY = valY * (height - 1.0) + 0.5;\\n scaleX = (float(valX) + 0.5) / 8.0;\\n hit = int(texture2D(mask, vec2(scaleX, (valueY + 0.5) / height))[3] * 255.0) / int(pow(2.0, float(bitInByteStepper)));\\n result = result && mod2(hit) == 1;\\n }\\n }\\n }\\n return result;\\n}\\n\\nvec4 position(\\n float depth,\\n vec2 resolution, vec2 viewBoxPosition, vec2 viewBoxSize,\\n mat4 dims[4],\\n float signum,\\n mat4 dim1A, mat4 dim2A, mat4 dim1B, mat4 dim2B, mat4 dim1C, mat4 dim2C, mat4 dim1D, mat4 dim2D,\\n mat4 loA, mat4 hiA, mat4 loB, mat4 hiB, mat4 loC, mat4 hiC, mat4 loD, mat4 hiD,\\n sampler2D mask, float maskHeight\\n ) {\\n\\n float x = 0.5 * signum + 0.5;\\n float y = axisY(x, dims, dim1A, dim2A, dim1B, dim2B, dim1C, dim2C, dim1D, dim2D);\\n\\n float show = float(\\n withinBoundingBox(dims, loA, hiA, loB, hiB, loC, hiC, loD, hiD)\\n && withinRasterMask(dims, mask, maskHeight)\\n );\\n\\n vec2 viewBoxXY = viewBoxPosition + viewBoxSize * vec2(x, y);\\n float depthOrHide = depth + 2.0 * (1.0 - show);\\n\\n return vec4(\\n xyProjection * (2.0 * viewBoxXY / resolution - 1.0),\\n depthOrHide,\\n 1.0\\n );\\n}\\n\\nvoid main() {\\n\\n float prominence = abs(pf[3]);\\n\\n mat4 p[4];\\n p[0] = mat4(p0, p1, p2, p3);\\n p[1] = mat4(p4, p5, p6, p7);\\n p[2] = mat4(p8, p9, pa, pb);\\n p[3] = mat4(pc, pd, pe, abs(pf));\\n\\n gl_Position = position(\\n 1.0 - prominence,\\n resolution, viewBoxPosition, viewBoxSize,\\n p,\\n sign(pf[3]),\\n dim1A, dim2A, dim1B, dim2B, dim1C, dim2C, dim1D, dim2D,\\n loA, hiA, loB, hiB, loC, hiC, loD, hiD,\\n mask, maskHeight\\n );\\n\\n float clampedColorIndex = clamp((prominence - colorClamp[0]) / (colorClamp[1] - colorClamp[0]), 0.0, 1.0);\\n fragColor = texture2D(palette, vec2((clampedColorIndex * 255.0 + 0.5) / 256.0, 0.5));\\n}\\n\"]),a=n([\"precision highp float;\\n#define GLSLIFY 1\\n\\nattribute vec4 p0, p1, p2, p3,\\n p4, p5, p6, p7,\\n p8, p9, pa, pb,\\n pc, pd, pe;\\n\\nattribute vec4 pf;\\n\\nuniform mat4 dim1A, dim2A, dim1B, dim2B, dim1C, dim2C, dim1D, dim2D;\\n\\nuniform vec2 resolution,\\n viewBoxPosition,\\n viewBoxSize;\\n\\nuniform sampler2D palette;\\n\\nuniform vec2 colorClamp;\\n\\nvarying vec4 fragColor;\\n\\nvec2 xyProjection = vec2(1, 1);\\n\\nvec4 unit = vec4(1, 1, 1, 1);\\n\\nfloat val(mat4 p, mat4 v) {\\n return dot(matrixCompMult(p, v) * unit, unit);\\n}\\n\\nfloat axisY(\\n float x,\\n mat4 d[4],\\n mat4 dim1A, mat4 dim2A, mat4 dim1B, mat4 dim2B, mat4 dim1C, mat4 dim2C, mat4 dim1D, mat4 dim2D\\n ) {\\n\\n float y1 = val(d[0], dim1A) + val(d[1], dim1B) + val(d[2], dim1C) + val(d[3], dim1D);\\n float y2 = val(d[0], dim2A) + val(d[1], dim2B) + val(d[2], dim2C) + val(d[3], dim2D);\\n return y1 * (1.0 - x) + y2 * x;\\n}\\n\\nvec4 position(\\n float depth,\\n vec2 resolution, vec2 viewBoxPosition, vec2 viewBoxSize,\\n mat4 dims[4],\\n float signum,\\n mat4 dim1A, mat4 dim2A, mat4 dim1B, mat4 dim2B, mat4 dim1C, mat4 dim2C, mat4 dim1D, mat4 dim2D\\n ) {\\n\\n float x = 0.5 * signum + 0.5;\\n float y = axisY(x, dims, dim1A, dim2A, dim1B, dim2B, dim1C, dim2C, dim1D, dim2D);\\n\\n vec2 viewBoxXY = viewBoxPosition + viewBoxSize * vec2(x, y);\\n\\n return vec4(\\n xyProjection * (2.0 * viewBoxXY / resolution - 1.0),\\n depth,\\n 1.0\\n );\\n}\\n\\nvoid main() {\\n\\n float prominence = abs(pf[3]);\\n\\n mat4 p[4];\\n p[0] = mat4(p0, p1, p2, p3);\\n p[1] = mat4(p4, p5, p6, p7);\\n p[2] = mat4(p8, p9, pa, pb);\\n p[3] = mat4(pc, pd, pe, abs(pf));\\n\\n gl_Position = position(\\n 1.0 - prominence,\\n resolution, viewBoxPosition, viewBoxSize,\\n p,\\n sign(pf[3]),\\n dim1A, dim2A, dim1B, dim2B, dim1C, dim2C, dim1D, dim2D\\n );\\n\\n float clampedColorIndex = clamp((prominence - colorClamp[0]) / (colorClamp[1] - colorClamp[0]), 0.0, 1.0);\\n fragColor = texture2D(palette, vec2((clampedColorIndex * 255.0 + 0.5) / 256.0, 0.5));\\n}\\n\"]),o=n([\"precision highp float;\\n#define GLSLIFY 1\\n\\nattribute vec4 p0, p1, p2, p3,\\n p4, p5, p6, p7,\\n p8, p9, pa, pb,\\n pc, pd, pe;\\n\\nattribute vec4 pf;\\n\\nuniform mat4 dim1A, dim2A, dim1B, dim2B, dim1C, dim2C, dim1D, dim2D,\\n loA, hiA, loB, hiB, loC, hiC, loD, hiD;\\n\\nuniform vec2 resolution,\\n viewBoxPosition,\\n viewBoxSize;\\n\\nuniform sampler2D mask;\\nuniform float maskHeight;\\n\\nuniform vec2 colorClamp;\\n\\nvarying vec4 fragColor;\\n\\nvec4 unit_1 = vec4(1, 1, 1, 1);\\n\\nfloat val(mat4 p, mat4 v) {\\n return dot(matrixCompMult(p, v) * unit_1, unit_1);\\n}\\n\\nfloat axisY(\\n float x,\\n mat4 d[4],\\n mat4 dim1A, mat4 dim2A, mat4 dim1B, mat4 dim2B, mat4 dim1C, mat4 dim2C, mat4 dim1D, mat4 dim2D\\n ) {\\n\\n float y1 = val(d[0], dim1A) + val(d[1], dim1B) + val(d[2], dim1C) + val(d[3], dim1D);\\n float y2 = val(d[0], dim2A) + val(d[1], dim2B) + val(d[2], dim2C) + val(d[3], dim2D);\\n return y1 * (1.0 - x) + y2 * x;\\n}\\n\\nconst int bitsPerByte = 8;\\n\\nint mod2(int a) {\\n return a - 2 * (a / 2);\\n}\\n\\nint mod8(int a) {\\n return a - 8 * (a / 8);\\n}\\n\\nvec4 zero = vec4(0, 0, 0, 0);\\nvec4 unit_0 = vec4(1, 1, 1, 1);\\nvec2 xyProjection = vec2(1, 1);\\n\\nmat4 mclamp(mat4 m, mat4 lo, mat4 hi) {\\n return mat4(clamp(m[0], lo[0], hi[0]),\\n clamp(m[1], lo[1], hi[1]),\\n clamp(m[2], lo[2], hi[2]),\\n clamp(m[3], lo[3], hi[3]));\\n}\\n\\nbool mshow(mat4 p, mat4 lo, mat4 hi) {\\n return mclamp(p, lo, hi) == p;\\n}\\n\\nbool withinBoundingBox(\\n mat4 d[4],\\n mat4 loA, mat4 hiA, mat4 loB, mat4 hiB, mat4 loC, mat4 hiC, mat4 loD, mat4 hiD\\n ) {\\n\\n return mshow(d[0], loA, hiA) &&\\n mshow(d[1], loB, hiB) &&\\n mshow(d[2], loC, hiC) &&\\n mshow(d[3], loD, hiD);\\n}\\n\\nbool withinRasterMask(mat4 d[4], sampler2D mask, float height) {\\n bool result = true;\\n int bitInByteStepper;\\n float valY, valueY, scaleX;\\n int hit, bitmask, valX;\\n for(int i = 0; i < 4; i++) {\\n for(int j = 0; j < 4; j++) {\\n for(int k = 0; k < 4; k++) {\\n bitInByteStepper = mod8(j * 4 + k);\\n valX = i * 2 + j / 2;\\n valY = d[i][j][k];\\n valueY = valY * (height - 1.0) + 0.5;\\n scaleX = (float(valX) + 0.5) / 8.0;\\n hit = int(texture2D(mask, vec2(scaleX, (valueY + 0.5) / height))[3] * 255.0) / int(pow(2.0, float(bitInByteStepper)));\\n result = result && mod2(hit) == 1;\\n }\\n }\\n }\\n return result;\\n}\\n\\nvec4 position(\\n float depth,\\n vec2 resolution, vec2 viewBoxPosition, vec2 viewBoxSize,\\n mat4 dims[4],\\n float signum,\\n mat4 dim1A, mat4 dim2A, mat4 dim1B, mat4 dim2B, mat4 dim1C, mat4 dim2C, mat4 dim1D, mat4 dim2D,\\n mat4 loA, mat4 hiA, mat4 loB, mat4 hiB, mat4 loC, mat4 hiC, mat4 loD, mat4 hiD,\\n sampler2D mask, float maskHeight\\n ) {\\n\\n float x = 0.5 * signum + 0.5;\\n float y = axisY(x, dims, dim1A, dim2A, dim1B, dim2B, dim1C, dim2C, dim1D, dim2D);\\n\\n float show = float(\\n withinBoundingBox(dims, loA, hiA, loB, hiB, loC, hiC, loD, hiD)\\n && withinRasterMask(dims, mask, maskHeight)\\n );\\n\\n vec2 viewBoxXY = viewBoxPosition + viewBoxSize * vec2(x, y);\\n float depthOrHide = depth + 2.0 * (1.0 - show);\\n\\n return vec4(\\n xyProjection * (2.0 * viewBoxXY / resolution - 1.0),\\n depthOrHide,\\n 1.0\\n );\\n}\\n\\nvoid main() {\\n\\n float prominence = abs(pf[3]);\\n\\n mat4 p[4];\\n p[0] = mat4(p0, p1, p2, p3);\\n p[1] = mat4(p4, p5, p6, p7);\\n p[2] = mat4(p8, p9, pa, pb);\\n p[3] = mat4(pc, pd, pe, abs(pf));\\n\\n gl_Position = position(\\n 1.0 - prominence,\\n resolution, viewBoxPosition, viewBoxSize,\\n p,\\n sign(pf[3]),\\n dim1A, dim2A, dim1B, dim2B, dim1C, dim2C, dim1D, dim2D,\\n loA, hiA, loB, hiB, loC, hiC, loD, hiD,\\n mask, maskHeight\\n );\\n\\n fragColor = vec4(pf.rgb, 1.0);\\n}\\n\"]),s=n([\"precision lowp float;\\n#define GLSLIFY 1\\n\\nvarying vec4 fragColor;\\n\\nvoid main() {\\n gl_FragColor = fragColor;\\n}\\n\"]),l=t(\"../../lib\"),c=1e-6,u=1e-7,f=2048,h=64,p=2,d=4,g=8,v=h/g,m=[119,119,119],y=new Uint8Array(4),x=new Uint8Array(4),b={shape:[256,1],format:\"rgba\",type:\"uint8\",mag:\"nearest\",min:\"nearest\"};function _(t,e,r,n,i){var a=t._gl;a.enable(a.SCISSOR_TEST),a.scissor(e,r,n,i),t.clear({color:[0,0,0,0],depth:1})}function w(t,e,r,n,i,a){var o=a.key;r.drawCompleted||(!function(t){t.read({x:0,y:0,width:1,height:1,data:y})}(t),r.drawCompleted=!0),function s(l){var c;c=Math.min(n,i-l*n),a.offset=p*l*n,a.count=p*c,0===l&&(window.cancelAnimationFrame(r.currentRafs[o]),delete r.currentRafs[o],_(t,a.scissorX,a.scissorY,a.scissorWidth,a.viewBoxSize[1])),r.clearOnly||(e(a),l*n+c<i&&(r.currentRafs[o]=window.requestAnimationFrame(function(){s(l+1)})),r.drawCompleted=!1)}(0)}function k(t,e){return(t>>>8*e)%256/255}function M(t,e,r){var n,i,a,o=[];for(i=0;i<t;i++)for(a=0;a<p;a++)for(n=0;n<d;n++)o.push(e[i*h+r*d+n]),r*d+n===h-1&&a%2==0&&(o[o.length-1]*=-1);return o}e.exports=function(t,e){var r,n,p,d,y,A=e.context,T=e.pick,S=e.regl,E={currentRafs:{},drawCompleted:!0,clearOnly:!1},C=function(t){for(var e={},r=0;r<16;r++)e[\"p\"+r.toString(16)]=t.buffer({usage:\"dynamic\",type:\"float\",data:new Uint8Array(0)});return e}(S),L=S.texture(b);O(e);var z=S({profile:!1,blend:{enable:A,func:{srcRGB:\"src alpha\",dstRGB:\"one minus src alpha\",srcAlpha:1,dstAlpha:1},equation:{rgb:\"add\",alpha:\"add\"},color:[0,0,0,0]},depth:{enable:!A,mask:!0,func:\"less\",range:[0,1]},cull:{enable:!0,face:\"back\"},scissor:{enable:!0,box:{x:S.prop(\"scissorX\"),y:S.prop(\"scissorY\"),width:S.prop(\"scissorWidth\"),height:S.prop(\"scissorHeight\")}},viewport:{x:S.prop(\"viewportX\"),y:S.prop(\"viewportY\"),width:S.prop(\"viewportWidth\"),height:S.prop(\"viewportHeight\")},dither:!1,vert:T?o:A?a:i,frag:s,primitive:\"lines\",lineWidth:1,attributes:C,uniforms:{resolution:S.prop(\"resolution\"),viewBoxPosition:S.prop(\"viewBoxPosition\"),viewBoxSize:S.prop(\"viewBoxSize\"),dim1A:S.prop(\"dim1A\"),dim2A:S.prop(\"dim2A\"),dim1B:S.prop(\"dim1B\"),dim2B:S.prop(\"dim2B\"),dim1C:S.prop(\"dim1C\"),dim2C:S.prop(\"dim2C\"),dim1D:S.prop(\"dim1D\"),dim2D:S.prop(\"dim2D\"),loA:S.prop(\"loA\"),hiA:S.prop(\"hiA\"),loB:S.prop(\"loB\"),hiB:S.prop(\"hiB\"),loC:S.prop(\"loC\"),hiC:S.prop(\"hiC\"),loD:S.prop(\"loD\"),hiD:S.prop(\"hiD\"),palette:L,mask:S.prop(\"maskTexture\"),maskHeight:S.prop(\"maskHeight\"),colorClamp:S.prop(\"colorClamp\")},offset:S.prop(\"offset\"),count:S.prop(\"count\")});function O(t){r=t.model,n=t.viewModel,p=n.dimensions.slice(),d=p[0]?p[0].values.length:0;var e=r.lines,i=T?e.color.map(function(t,r){return r/e.color.length}):e.color,a=Math.max(1/255,Math.pow(1/i.length,1/3)),o=function(t,e,r){for(var n,i=e.length,a=[],o=0;o<t;o++)for(var s=0;s<h;s++)a.push(s<i?e[s].paddedUnitValues[o]:s===h-1?(n=r[o],Math.max(c,Math.min(1-c,n))):s>=h-4?k(o,h-2-s):.5);return a}(d,p,i);!function(t,e,r){for(var n=0;n<16;n++)t[\"p\"+n.toString(16)](M(e,r,n))}(C,d,o),L=S.texture(l.extendFlat({data:function(t,e,r){for(var n=[],i=0;i<256;i++){var a=t(i/255);n.push((e?m:a).concat(r))}return n}(r.unitToColor,A,Math.round(255*(A?a:1)))},b))}var I=[0,1];var P=[];function D(t,e,n,i,a,o,s,c,u,f,h){var p,d,g,v,m=[t,e],y=[0,1].map(function(){return[0,1,2,3].map(function(){return new Float32Array(16)})});for(p=0;p<2;p++)for(v=m[p],d=0;d<4;d++)for(g=0;g<16;g++)y[p][d][g]=g+16*d===v?1:0;var x=r.lines.canvasOverdrag,b=r.domain,_=r.canvasWidth,w=r.canvasHeight;return l.extendFlat({key:s,resolution:[_,w],viewBoxPosition:[n+x,i],viewBoxSize:[a,o],i:t,ii:e,dim1A:y[0][0],dim1B:y[0][1],dim1C:y[0][2],dim1D:y[0][3],dim2A:y[1][0],dim2B:y[1][1],dim2C:y[1][2],dim2D:y[1][3],colorClamp:I,scissorX:(c===u?0:n+x)+(r.pad.l-x)+r.layoutWidth*b.x[0],scissorWidth:(c===f?_-n+x:a+.5)+(c===u?n+x:0),scissorY:i+r.pad.b+r.layoutHeight*b.y[0],scissorHeight:o,viewportX:r.pad.l-x+r.layoutWidth*b.x[0],viewportY:r.pad.b+r.layoutHeight*b.y[0],viewportWidth:_,viewportHeight:w},h)}return{setColorDomain:function(t){I[0]=t[0],I[1]=t[1]},render:function(t,e,n){var i,a,o,s=t.length,l=1/0,c=-1/0;for(i=0;i<s;i++)t[i].dim2.canvasX>c&&(c=t[i].dim2.canvasX,o=i),t[i].dim1.canvasX<l&&(l=t[i].dim1.canvasX,a=i);0===s&&_(S,0,0,r.canvasWidth,r.canvasHeight);var h=A?{}:function(){var t,e,r,n=[0,1].map(function(){return[0,1,2,3].map(function(){return new Float32Array(16)})});for(t=0;t<2;t++)for(e=0;e<4;e++)for(r=0;r<16;r++){var i,a=r+16*e;i=a<p.length?p[a].brush.filter.getBounds()[t]:t,n[t][e][r]=i+(2*t-1)*u}function o(t,e){var r=f-1;return[Math.max(0,Math.floor(e[0]*r)),Math.min(r,Math.ceil(e[1]*r))]}for(var s=Array.apply(null,new Array(f*v)).map(function(){return 255}),l=0;l<p.length;l++){var c=l%g,h=(l-c)/g,d=Math.pow(2,c),m=p[l],x=m.brush.filter.get();if(!(x.length<2))for(var b=o(0,x[0])[1],_=1;_<x.length;_++){for(var w=o(0,x[_]),k=b+1;k<w[0];k++)s[k*v+h]&=~d;b=Math.max(b,w[1])}}var M={shape:[v,f],format:\"alpha\",type:\"uint8\",mag:\"nearest\",min:\"nearest\",data:s};return y?y(M):y=S.texture(M),{maskTexture:y,maskHeight:f,loA:n[0][0],loB:n[0][1],loC:n[0][2],loD:n[0][3],hiA:n[1][0],hiB:n[1][1],hiC:n[1][2],hiD:n[1][3]}}();for(i=0;i<s;i++){var m=t[i],x=m.dim1,b=x.crossfilterDimensionIndex,k=m.canvasX,M=m.canvasY,T=m.dim2.crossfilterDimensionIndex,C=m.panelSizeX,L=m.panelSizeY,O=k+C;if(e||!P[b]||P[b][0]!==k||P[b][1]!==O){P[b]=[k,O];var I=D(b,T,k,M,C,L,x.crossfilterDimensionIndex,i,a,o,h);E.clearOnly=n,w(S,z,E,e?r.lines.blockLineCount:d,d,I)}}},readPixel:function(t,e){return S.read({x:t,y:e,width:1,height:1,data:x}),x},readPixels:function(t,e,r,n){var i=new Uint8Array(4*r*n);return S.read({x:t,y:e,width:r,height:n,data:i}),i},destroy:function(){for(var e in t.style[\"pointer-events\"]=\"none\",L.destroy(),y&&y.destroy(),C)C[e].destroy()},update:O}}},{\"../../lib\":696,glslify:392}],1015:[function(t,e,r){\"use strict\";e.exports=function(t,e,r,n){var i,a;for(n||(n=1/0),i=0;i<e.length;i++)(a=e[i]).visible&&(n=Math.min(n,a[r].length));for(n===1/0&&(n=0),t._length=n,i=0;i<e.length;i++)(a=e[i]).visible&&(a._length=n);return n}},{}],1016:[function(t,e,r){\"use strict\";var n=t(\"./lines\"),i=t(\"./constants\"),a=t(\"../../lib\"),o=t(\"d3\"),s=t(\"../../components/drawing\"),l=t(\"../../lib/gup\"),c=l.keyFun,u=l.repeat,f=l.unwrap,h=t(\"./axisbrush\");function p(t){return!(\"visible\"in t)||t.visible}function d(t){var e=t.range?t.range[0]:a.aggNums(Math.min,null,t.values,t._length),r=t.range?t.range[1]:a.aggNums(Math.max,null,t.values,t._length);return!isNaN(e)&&isFinite(e)||(e=0),!isNaN(r)&&isFinite(r)||(r=0),e===r&&(0===e?(e-=1,r+=1):(e*=.9,r*=1.1)),[e,r]}function g(t){return t.dimensions.some(function(t){return t.brush.filterSpecified})}function v(t,e,r){var n=f(e),s=n.trace,l=n.lineColor,c=n.cscale,u=s.line,h=s.domain,g=s.dimensions,v=t.width,m=s.labelfont,y=s.tickfont,x=s.rangefont,b=a.extendDeepNoArrays({},u,{color:l.map(o.scale.linear().domain(d({values:l,range:[u.cmin,u.cmax],_length:s._length}))),blockLineCount:i.blockLineCount,canvasOverdrag:i.overdrag*i.canvasPixelRatio}),_=Math.floor(v*(h.x[1]-h.x[0])),w=Math.floor(t.height*(h.y[1]-h.y[0])),k=t.margin||{l:80,r:80,t:100,b:80},M=_,A=w;return{key:r,colCount:g.filter(p).length,dimensions:g,tickDistance:i.tickDistance,unitToColor:function(t){var e=t.map(function(t){return t[0]}),r=t.map(function(t){return o.rgb(t[1])}),n=\"rgb\".split(\"\").map(function(t){return o.scale.linear().clamp(!0).domain(e).range(r.map((n=t,function(t){return t[n]})));var n});return function(t){return n.map(function(e){return e(t)})}}(c),lines:b,labelFont:m,tickFont:y,rangeFont:x,layoutWidth:v,layoutHeight:t.height,domain:h,translateX:h.x[0]*v,translateY:t.height-h.y[1]*t.height,pad:k,canvasWidth:M*i.canvasPixelRatio+2*b.canvasOverdrag,canvasHeight:A*i.canvasPixelRatio,width:M,height:A,canvasPixelRatio:i.canvasPixelRatio}}function m(t,e,r){var n=r.width,s=r.height,l=r.dimensions,c=r.canvasPixelRatio,u=function(t){return n*t/Math.max(1,r.colCount-1)},f=i.verticalPadding/s,v=function(t,e){return o.scale.linear().range([e,t-e])}(s,i.verticalPadding),m={key:r.key,xScale:u,model:r,inBrushDrag:!1},y={};return m.dimensions=l.filter(p).map(function(n,l){var p=function(t,e){return o.scale.linear().domain(d(t)).range([e,1-e])}(n,f),x=y[n.label];y[n.label]=(x||0)+1;var b=n.label+(x?\"__\"+x:\"\"),_=n.constraintrange,w=_&&_.length;w&&!Array.isArray(_[0])&&(_=[_]);var k=w?_.map(function(t){return t.map(p)}):[[0,1]],M=n.values;M.length>n._length&&(M=M.slice(0,n._length));var A,T=n.tickvals;function S(t,e){return{val:t,text:A[e]}}function E(t,e){return t.val-e.val}if(Array.isArray(T)&&T.length){A=n.ticktext,Array.isArray(A)&&A.length?A.length>T.length?A=A.slice(0,T.length):T.length>A.length&&(T=T.slice(0,A.length)):A=T.map(o.format(n.tickformat));for(var C=1;C<T.length;C++)if(T[C]<T[C-1]){for(var L=T.map(S).sort(E),z=0;z<T.length;z++)T[z]=L[z].val,A[z]=L[z].text;break}}else T=void 0;return{key:b,label:n.label,tickFormat:n.tickformat,tickvals:T,ticktext:A,ordinal:!!T,multiselect:n.multiselect,xIndex:l,crossfilterDimensionIndex:l,visibleIndex:n._index,height:s,values:M,paddedUnitValues:M.map(p),unitTickvals:T&&T.map(p),xScale:u,x:u(l),canvasX:u(l)*c,unitToPaddedPx:v,domainScale:function(t,e,r,n,i){var a,s,l=d(r);return n?o.scale.ordinal().domain(n.map((a=o.format(r.tickformat),s=i,s?function(t,e){var r=s[e];return null==r?a(t):r}:a))).range(n.map(function(r){var n=(r-l[0])/(l[1]-l[0]);return t-e+n*(2*e-t)})):o.scale.linear().domain(l).range([t-e,e])}(s,i.verticalPadding,n,T,A),ordinalScale:function(t){if(t.tickvals){var e=d(t);return o.scale.ordinal().domain(t.tickvals).range(t.tickvals.map(function(t){return(t-e[0])/(e[1]-e[0])}))}}(n),parent:m,model:r,brush:h.makeBrush(t,w,k,function(){t.linePickActive(!1)},function(){var e=m;e.focusLayer&&e.focusLayer.render(e.panels,!0);var r=g(e);!t.contextShown()&&r?(e.contextLayer&&e.contextLayer.render(e.panels,!0),t.contextShown(!0)):t.contextShown()&&!r&&(e.contextLayer&&e.contextLayer.render(e.panels,!0,!0),t.contextShown(!1))},function(r){var i=m;if(i.focusLayer.render(i.panels,!0),i.pickLayer&&i.pickLayer.render(i.panels,!0),t.linePickActive(!0),e&&e.filterChanged){var o=p.invert,s=r.map(function(t){return t.map(o).sort(a.sorterAsc)}).sort(function(t,e){return t[0]-e[0]});e.filterChanged(i.key,n._index,s)}})}}),m}function y(t){t.classed(i.cn.axisExtentText,!0).attr(\"text-anchor\",\"middle\").style(\"cursor\",\"default\").style(\"user-select\",\"none\")}e.exports=function(t,e,r,l,p,d){var x,b,_=(x=!0,b=!1,{linePickActive:function(t){return arguments.length?x=!!t:x},contextShown:function(t){return arguments.length?b=!!t:b}}),w=l.filter(function(t){return f(t).trace.visible}).map(v.bind(0,p)).map(m.bind(0,_,d));r.each(function(t,e){return a.extendFlat(t,w[e])});var k=r.selectAll(\".gl-canvas\").each(function(t){t.viewModel=w[0],t.model=t.viewModel?t.viewModel.model:null}),M=null;k.filter(function(t){return t.pick}).style(\"pointer-events\",\"auto\").on(\"mousemove\",function(t){if(_.linePickActive()&&t.lineLayer&&d&&d.hover){var e=o.event,r=this.width,n=this.height,i=o.mouse(this),a=i[0],s=i[1];if(a<0||s<0||a>=r||s>=n)return;var l=t.lineLayer.readPixel(a,n-1-s),c=0!==l[3],u=c?l[2]+256*(l[1]+256*l[0]):null,f={x:a,y:s,clientX:e.clientX,clientY:e.clientY,dataIndex:t.model.key,curveNumber:u};u!==M&&(c?d.hover(f):d.unhover&&d.unhover(f),M=u)}}),k.style(\"opacity\",function(t){return t.pick?.01:1}),e.style(\"background\",\"rgba(255, 255, 255, 0)\");var A=e.selectAll(\".\"+i.cn.parcoords).data(w,c);A.exit().remove(),A.enter().append(\"g\").classed(i.cn.parcoords,!0).style(\"shape-rendering\",\"crispEdges\").style(\"pointer-events\",\"none\"),A.attr(\"transform\",function(t){return\"translate(\"+t.model.translateX+\",\"+t.model.translateY+\")\"});var T=A.selectAll(\".\"+i.cn.parcoordsControlView).data(u,c);T.enter().append(\"g\").classed(i.cn.parcoordsControlView,!0),T.attr(\"transform\",function(t){return\"translate(\"+t.model.pad.l+\",\"+t.model.pad.t+\")\"});var S=T.selectAll(\".\"+i.cn.yAxis).data(function(t){return t.dimensions},c);function E(t,e){for(var r=e.panels||(e.panels=[]),n=t.data(),i=n.length-1,a=0;a<i;a++){var o=r[a]||(r[a]={}),s=n[a],l=n[a+1];o.dim1=s,o.dim2=l,o.canvasX=s.canvasX,o.panelSizeX=l.canvasX-s.canvasX,o.panelSizeY=e.model.canvasHeight,o.y=0,o.canvasY=0}}S.enter().append(\"g\").classed(i.cn.yAxis,!0),T.each(function(t){E(S,t)}),k.each(function(t){if(t.viewModel){!t.lineLayer||d?t.lineLayer=n(this,t):t.lineLayer.update(t),(t.key||0===t.key)&&(t.viewModel[t.key]=t.lineLayer);var e=!t.context||d;t.lineLayer.render(t.viewModel.panels,e)}}),S.attr(\"transform\",function(t){return\"translate(\"+t.xScale(t.xIndex)+\", 0)\"}),S.call(o.behavior.drag().origin(function(t){return t}).on(\"drag\",function(t){var e=t.parent;_.linePickActive(!1),t.x=Math.max(-i.overdrag,Math.min(t.model.width+i.overdrag,o.event.x)),t.canvasX=t.x*t.model.canvasPixelRatio,S.sort(function(t,e){return t.x-e.x}).each(function(e,r){e.xIndex=r,e.x=t===e?e.x:e.xScale(e.xIndex),e.canvasX=e.x*e.model.canvasPixelRatio}),E(S,e),S.filter(function(e){return 0!==Math.abs(t.xIndex-e.xIndex)}).attr(\"transform\",function(t){return\"translate(\"+t.xScale(t.xIndex)+\", 0)\"}),o.select(this).attr(\"transform\",\"translate(\"+t.x+\", 0)\"),S.each(function(r,n,i){i===t.parent.key&&(e.dimensions[n]=r)}),e.contextLayer&&e.contextLayer.render(e.panels,!1,!g(e)),e.focusLayer.render&&e.focusLayer.render(e.panels)}).on(\"dragend\",function(t){var e=t.parent;t.x=t.xScale(t.xIndex),t.canvasX=t.x*t.model.canvasPixelRatio,E(S,e),o.select(this).attr(\"transform\",function(t){return\"translate(\"+t.x+\", 0)\"}),e.contextLayer&&e.contextLayer.render(e.panels,!1,!g(e)),e.focusLayer&&e.focusLayer.render(e.panels),e.pickLayer&&e.pickLayer.render(e.panels,!0),_.linePickActive(!0),d&&d.axesMoved&&d.axesMoved(e.key,e.dimensions.map(function(t){return t.crossfilterDimensionIndex}))})),S.exit().remove();var C=S.selectAll(\".\"+i.cn.axisOverlays).data(u,c);C.enter().append(\"g\").classed(i.cn.axisOverlays,!0),C.selectAll(\".\"+i.cn.axis).remove();var L=C.selectAll(\".\"+i.cn.axis).data(u,c);L.enter().append(\"g\").classed(i.cn.axis,!0),L.each(function(t){var e=t.model.height/t.model.tickDistance,r=t.domainScale,n=r.domain();o.select(this).call(o.svg.axis().orient(\"left\").tickSize(4).outerTickSize(2).ticks(e,t.tickFormat).tickValues(t.ordinal?n:null).tickFormat(t.ordinal?function(t){return t}:null).scale(r)),s.font(L.selectAll(\"text\"),t.model.tickFont)}),L.selectAll(\".domain, .tick>line\").attr(\"fill\",\"none\").attr(\"stroke\",\"black\").attr(\"stroke-opacity\",.25).attr(\"stroke-width\",\"1px\"),L.selectAll(\"text\").style(\"text-shadow\",\"1px 1px 1px #fff, -1px -1px 1px #fff, 1px -1px 1px #fff, -1px 1px 1px #fff\").style(\"cursor\",\"default\").style(\"user-select\",\"none\");var z=C.selectAll(\".\"+i.cn.axisHeading).data(u,c);z.enter().append(\"g\").classed(i.cn.axisHeading,!0);var O=z.selectAll(\".\"+i.cn.axisTitle).data(u,c);O.enter().append(\"text\").classed(i.cn.axisTitle,!0).attr(\"text-anchor\",\"middle\").style(\"cursor\",\"ew-resize\").style(\"user-select\",\"none\").style(\"pointer-events\",\"auto\"),O.attr(\"transform\",\"translate(0,\"+-i.axisTitleOffset+\")\").text(function(t){return t.label}).each(function(t){s.font(o.select(this),t.model.labelFont)});var I=C.selectAll(\".\"+i.cn.axisExtent).data(u,c);I.enter().append(\"g\").classed(i.cn.axisExtent,!0);var P=I.selectAll(\".\"+i.cn.axisExtentTop).data(u,c);P.enter().append(\"g\").classed(i.cn.axisExtentTop,!0),P.attr(\"transform\",\"translate(0,\"+-i.axisExtentOffset+\")\");var D=P.selectAll(\".\"+i.cn.axisExtentTopText).data(u,c);function R(t,e){if(t.ordinal)return\"\";var r=t.domainScale.domain();return o.format(t.tickFormat)(r[e?r.length-1:0])}D.enter().append(\"text\").classed(i.cn.axisExtentTopText,!0).call(y),D.text(function(t){return R(t,!0)}).each(function(t){s.font(o.select(this),t.model.rangeFont)});var B=I.selectAll(\".\"+i.cn.axisExtentBottom).data(u,c);B.enter().append(\"g\").classed(i.cn.axisExtentBottom,!0),B.attr(\"transform\",function(t){return\"translate(0,\"+(t.model.height+i.axisExtentOffset)+\")\"});var F=B.selectAll(\".\"+i.cn.axisExtentBottomText).data(u,c);F.enter().append(\"text\").classed(i.cn.axisExtentBottomText,!0).attr(\"dy\",\"0.75em\").call(y),F.text(function(t){return R(t)}).each(function(t){s.font(o.select(this),t.model.rangeFont)}),h.ensureAxisBrush(C)}},{\"../../components/drawing\":595,\"../../lib\":696,\"../../lib/gup\":693,\"./axisbrush\":1008,\"./constants\":1011,\"./lines\":1014,d3:148}],1017:[function(t,e,r){\"use strict\";var n=t(\"./parcoords\"),i=t(\"../../lib/prepare_regl\");e.exports=function(t,e){var r=t._fullLayout,a=r._toppaper,o=r._paperdiv,s=r._glcontainer;if(i(t)){var l={},c={},u=r._size;e.forEach(function(e,r){l[r]=t.data[r].dimensions,c[r]=t.data[r].dimensions.slice()});n(o,a,s,e,{width:u.w,height:u.h,margin:{t:u.t,r:u.r,b:u.b,l:u.l}},{filterChanged:function(e,r,n){var i=c[e][r],a=n.map(function(t){return t.slice()});a.length?(1===a.length&&(a=a[0]),i.constraintrange=a,a=[a]):(delete i.constraintrange,a=null);var o={};o[\"dimensions[\"+r+\"].constraintrange\"]=a,t.emit(\"plotly_restyle\",[o,[e]])},hover:function(e){t.emit(\"plotly_hover\",e)},unhover:function(e){t.emit(\"plotly_unhover\",e)},axesMoved:function(e,r){function n(t){return!(\"visible\"in t)||t.visible}function i(t,e,r){var n=e.indexOf(r),i=t.indexOf(n);return-1===i&&(i+=e.length),i}var a=function(t){return function(e,n){return i(r,t,e)-i(r,t,n)}}(c[e].filter(n));l[e].sort(a),c[e].filter(function(t){return!n(t)}).sort(function(t){return c[e].indexOf(t)}).forEach(function(t){l[e].splice(l[e].indexOf(t),1),l[e].splice(c[e].indexOf(t),0,t)}),t.emit(\"plotly_restyle\")}})}}},{\"../../lib/prepare_regl\":709,\"./parcoords\":1016}],1018:[function(t,e,r){\"use strict\";var n=t(\"../../components/color/attributes\"),i=t(\"../../plots/font_attributes\"),a=t(\"../../plots/attributes\"),o=t(\"../../plots/domain\").attributes,s=t(\"../../lib/extend\").extendFlat,l=i({editType:\"calc\",arrayOk:!0,colorEditType:\"plot\"});e.exports={labels:{valType:\"data_array\",editType:\"calc\"},label0:{valType:\"number\",dflt:0,editType:\"calc\"},dlabel:{valType:\"number\",dflt:1,editType:\"calc\"},values:{valType:\"data_array\",editType:\"calc\"},marker:{colors:{valType:\"data_array\",editType:\"calc\"},line:{color:{valType:\"color\",dflt:n.defaultLine,arrayOk:!0,editType:\"style\"},width:{valType:\"number\",min:0,dflt:0,arrayOk:!0,editType:\"style\"},editType:\"calc\"},editType:\"calc\"},text:{valType:\"data_array\",editType:\"calc\"},hovertext:{valType:\"string\",dflt:\"\",arrayOk:!0,editType:\"style\"},scalegroup:{valType:\"string\",dflt:\"\",editType:\"calc\"},textinfo:{valType:\"flaglist\",flags:[\"label\",\"text\",\"value\",\"percent\"],extras:[\"none\"],editType:\"calc\"},hoverinfo:s({},a.hoverinfo,{flags:[\"label\",\"text\",\"value\",\"percent\",\"name\"]}),textposition:{valType:\"enumerated\",values:[\"inside\",\"outside\",\"auto\",\"none\"],dflt:\"auto\",arrayOk:!0,editType:\"calc\"},textfont:s({},l,{}),insidetextfont:s({},l,{}),outsidetextfont:s({},l,{}),title:{valType:\"string\",dflt:\"\",editType:\"calc\"},titleposition:{valType:\"enumerated\",values:[\"top left\",\"top center\",\"top right\",\"middle center\",\"bottom left\",\"bottom center\",\"bottom right\"],editType:\"calc\"},titlefont:s({},l,{}),domain:o({name:\"pie\",trace:!0,editType:\"calc\"}),hole:{valType:\"number\",min:0,max:1,dflt:0,editType:\"calc\"},sort:{valType:\"boolean\",dflt:!0,editType:\"calc\"},direction:{valType:\"enumerated\",values:[\"clockwise\",\"counterclockwise\"],dflt:\"counterclockwise\",editType:\"calc\"},rotation:{valType:\"number\",min:-360,max:360,dflt:0,editType:\"calc\"},pull:{valType:\"number\",min:0,max:1,dflt:0,arrayOk:!0,editType:\"calc\"}}},{\"../../components/color/attributes\":569,\"../../lib/extend\":685,\"../../plots/attributes\":741,\"../../plots/domain\":770,\"../../plots/font_attributes\":771}],1019:[function(t,e,r){\"use strict\";var n=t(\"../../registry\"),i=t(\"../../plots/get_data\").getModuleCalcData;r.name=\"pie\",r.plot=function(t){var e=n.getModule(\"pie\"),r=i(t.calcdata,e)[0];r.length&&e.plot(t,r)},r.clean=function(t,e,r,n){var i=n._has&&n._has(\"pie\"),a=e._has&&e._has(\"pie\");i&&!a&&n._pielayer.selectAll(\"g.trace\").remove()}},{\"../../plots/get_data\":781,\"../../registry\":827}],1020:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../../lib\").isArrayOrTypedArray,a=t(\"tinycolor2\"),o=t(\"../../components/color\"),s=t(\"./helpers\");r.calc=function(t,e){var r,l,c,u,f,h=e.values,p=i(h)&&h.length,d=e.labels,g=e.marker.colors||[],v=[],m=t._fullLayout,y=m._piecolormap,x={},b=0,_=m.hiddenlabels||[];if(e.dlabel)for(d=new Array(h.length),r=0;r<h.length;r++)d[r]=String(e.label0+r*e.dlabel);function w(t,e){return!!t&&(!!(t=a(t)).isValid()&&(t=o.addOpacity(t,t.getAlpha()),y[e]||(y[e]=t),t))}var k=(p?h:d).length;for(r=0;r<k;r++){if(p){if(l=h[r],!n(l))continue;if((l=+l)<0)continue}else l=1;void 0!==(c=d[r])&&\"\"!==c||(c=r);var M=x[c=String(c)];void 0===M?(x[c]=v.length,(u=-1!==_.indexOf(c))||(b+=l),v.push({v:l,label:c,color:w(g[r],c),i:r,pts:[r],hidden:u})):((f=v[M]).v+=l,f.pts.push(r),f.hidden||(b+=l),!1===f.color&&g[r]&&(f.color=w(g[r],c)))}if(e.sort&&v.sort(function(t,e){return e.v-t.v}),v[0]&&(v[0].vTotal=b),e.textinfo&&\"none\"!==e.textinfo){var A,T=-1!==e.textinfo.indexOf(\"label\"),S=-1!==e.textinfo.indexOf(\"text\"),E=-1!==e.textinfo.indexOf(\"value\"),C=-1!==e.textinfo.indexOf(\"percent\"),L=m.separators;for(r=0;r<v.length;r++){if(f=v[r],A=T?[f.label]:[],S){var z=s.getFirstFilled(e.text,f.pts);z&&A.push(z)}E&&A.push(s.formatPieValue(f.v,L)),C&&A.push(s.formatPiePercent(f.v/b,L)),f.text=A.join(\"<br>\")}}return v},r.crossTraceCalc=function(t){var e=t._fullLayout,r=t.calcdata,n=e.piecolorway,i=e._piecolormap;e.extendpiecolors&&(n=function(t){var e,r=JSON.stringify(t),n=l[r];if(!n){for(n=t.slice(),e=0;e<t.length;e++)n.push(a(t[e]).lighten(20).toHexString());for(e=0;e<t.length;e++)n.push(a(t[e]).darken(20).toHexString());l[r]=n}return n}(n));var o,s,c,u,f=0;for(o=0;o<r.length;o++)if(\"pie\"===(c=r[o])[0].trace.type)for(s=0;s<c.length;s++)!1===(u=c[s]).color&&(i[u.label]?u.color=i[u.label]:(i[u.label]=u.color=n[f%n.length],f++))};var l={}},{\"../../components/color\":570,\"../../lib\":696,\"./helpers\":1023,\"fast-isnumeric\":214,tinycolor2:514}],1021:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"./attributes\"),a=t(\"../../plots/domain\").defaults;e.exports=function(t,e,r,o){function s(r,a){return n.coerce(t,e,i,r,a)}var l,c=n.coerceFont,u=s(\"values\"),f=n.isArrayOrTypedArray(u),h=s(\"labels\");if(Array.isArray(h)?(l=h.length,f&&(l=Math.min(l,u.length))):f&&(l=u.length,s(\"label0\"),s(\"dlabel\")),l){e._length=l,s(\"marker.line.width\")&&s(\"marker.line.color\"),s(\"marker.colors\"),s(\"scalegroup\");var p=s(\"text\"),d=s(\"textinfo\",Array.isArray(p)?\"text+percent\":\"percent\");if(s(\"hovertext\"),d&&\"none\"!==d){var g=s(\"textposition\"),v=Array.isArray(g)||\"auto\"===g,m=v||\"inside\"===g,y=v||\"outside\"===g;if(m||y){var x=c(s,\"textfont\",o.font);if(m){var b=n.extendFlat({},x);!(t.textfont&&t.textfont.color)&&delete b.color,c(s,\"insidetextfont\",b)}y&&c(s,\"outsidetextfont\",x)}}a(e,o,s);var _=s(\"hole\");if(s(\"title\")){var w=s(\"titleposition\",_?\"middle center\":\"top center\");_||\"middle center\"!==w||(e.titleposition=\"top center\"),c(s,\"titlefont\",o.font)}s(\"sort\"),s(\"direction\"),s(\"rotation\"),s(\"pull\")}else e.visible=!1}},{\"../../lib\":696,\"../../plots/domain\":770,\"./attributes\":1018}],1022:[function(t,e,r){\"use strict\";var n=t(\"../../components/fx/helpers\").appendArrayMultiPointValues;e.exports=function(t,e){var r={curveNumber:e.index,pointNumbers:t.pts,data:e._input,fullData:e,label:t.label,color:t.color,value:t.v,v:t.v};return 1===t.pts.length&&(r.pointNumber=r.i=t.pts[0]),n(r,e,t.pts),r}},{\"../../components/fx/helpers\":609}],1023:[function(t,e,r){\"use strict\";var n=t(\"../../lib\");r.formatPiePercent=function(t,e){var r=(100*t).toPrecision(3);return-1!==r.lastIndexOf(\".\")&&(r=r.replace(/[.]?0+$/,\"\")),n.numSeparate(r,e)+\"%\"},r.formatPieValue=function(t,e){var r=t.toPrecision(10);return-1!==r.lastIndexOf(\".\")&&(r=r.replace(/[.]?0+$/,\"\")),n.numSeparate(r,e)},r.getFirstFilled=function(t,e){if(Array.isArray(t))for(var r=0;r<e.length;r++){var n=t[e[r]];if(n||0===n)return n}},r.castOption=function(t,e){return Array.isArray(t)?r.getFirstFilled(t,e):t||void 0}},{\"../../lib\":696}],1024:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.supplyDefaults=t(\"./defaults\"),n.supplyLayoutDefaults=t(\"./layout_defaults\"),n.layoutAttributes=t(\"./layout_attributes\");var i=t(\"./calc\");n.calc=i.calc,n.crossTraceCalc=i.crossTraceCalc,n.plot=t(\"./plot\"),n.style=t(\"./style\"),n.styleOne=t(\"./style_one\"),n.moduleType=\"trace\",n.name=\"pie\",n.basePlotModule=t(\"./base_plot\"),n.categories=[\"pie\",\"showLegend\"],n.meta={},e.exports=n},{\"./attributes\":1018,\"./base_plot\":1019,\"./calc\":1020,\"./defaults\":1021,\"./layout_attributes\":1025,\"./layout_defaults\":1026,\"./plot\":1027,\"./style\":1028,\"./style_one\":1029}],1025:[function(t,e,r){\"use strict\";e.exports={hiddenlabels:{valType:\"data_array\",editType:\"calc\"},piecolorway:{valType:\"colorlist\",editType:\"calc\"},extendpiecolors:{valType:\"boolean\",dflt:!0,editType:\"calc\"}}},{}],1026:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"./layout_attributes\");e.exports=function(t,e){function r(r,a){return n.coerce(t,e,i,r,a)}r(\"hiddenlabels\"),r(\"piecolorway\",e.colorway),r(\"extendpiecolors\")}},{\"../../lib\":696,\"./layout_attributes\":1025}],1027:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../../components/fx\"),a=t(\"../../components/color\"),o=t(\"../../components/drawing\"),s=t(\"../../lib\"),l=t(\"../../lib/svg_text_utils\"),c=t(\"./helpers\"),u=t(\"./event_data\");function f(t,e){if(t.v===e.vTotal&&!e.trace.hole)return 1;var r=Math.PI*Math.min(t.v/e.vTotal,.5);return Math.min(1/(1+1/Math.sin(r)),(1-e.trace.hole)/2)}function h(t,e){var r=e.pxmid[0],n=e.pxmid[1],i=t.width/2,a=t.height/2;return r<0&&(i*=-1),n<0&&(a*=-1),{scale:1,rCenter:1,rotate:0,x:i+Math.abs(a)*(i>0?1:-1)/2,y:a/(1+r*r/(n*n)),outside:!0}}function p(t,e){var r=t.trace,n=e.h*(r.domain.y[1]-r.domain.y[0]);return Math.min(t.titleBox.height,n/2)}function d(t){var e,r=t.pull;if(Array.isArray(r))for(r=0,e=0;e<t.pull.length;e++)t.pull[e]>r&&(r=t.pull[e]);return r}e.exports=function(t,e){var r=t._fullLayout;!function(t,e){for(var r,n,i=0;i<t.length;i++)if(r=t[i][0],(n=r.trace).title){var a=o.tester.append(\"text\").attr(\"data-notex\",1).text(n.title).call(o.font,n.titlefont).call(l.convertToTspans,e),s=o.bBox(a.node(),!0);r.titleBox={width:s.width,height:s.height},a.remove()}}(e,t),function(t,e){var r,n,i,a,o,s,l,c,u,f=[];for(i=0;i<t.length;i++)o=t[i][0],s=o.trace,r=e.w*(s.domain.x[1]-s.domain.x[0]),n=e.h*(s.domain.y[1]-s.domain.y[0]),s.title&&\"middle center\"!==s.titleposition&&(n-=p(o,e)),l=d(s),o.r=Math.min(r,n)/(2+2*l),o.cx=e.l+e.w*(s.domain.x[1]+s.domain.x[0])/2,o.cy=e.t+e.h*(1-s.domain.y[0])-n/2,s.title&&-1!==s.titleposition.indexOf(\"bottom\")&&(o.cy-=p(o,e)),s.scalegroup&&-1===f.indexOf(s.scalegroup)&&f.push(s.scalegroup);for(a=0;a<f.length;a++){for(u=1/0,c=f[a],i=0;i<t.length;i++)(o=t[i][0]).trace.scalegroup===c&&(u=Math.min(u,o.r*o.r/o.vTotal));for(i=0;i<t.length;i++)(o=t[i][0]).trace.scalegroup===c&&(o.r=Math.sqrt(u*o.vTotal))}}(e,r._size);var g=s.makeTraceGroups(r._pielayer,e,\"trace\").each(function(e){var g=n.select(this),v=e[0],m=v.trace;!function(t){var e,r,n,i=t[0],a=i.trace,o=a.rotation*Math.PI/180,s=2*Math.PI/i.vTotal,l=\"px0\",c=\"px1\";if(\"counterclockwise\"===a.direction){for(e=0;e<t.length&&t[e].hidden;e++);if(e===t.length)return;o+=s*t[e].v,s*=-1,l=\"px1\",c=\"px0\"}function u(t){return[i.r*Math.sin(t),-i.r*Math.cos(t)]}for(n=u(o),e=0;e<t.length;e++)(r=t[e]).hidden||(r[l]=n,o+=s*r.v/2,r.pxmid=u(o),r.midangle=o,o+=s*r.v/2,n=u(o),r[c]=n,r.largeArc=r.v>i.vTotal/2?1:0)}(e),g.attr(\"stroke-linejoin\",\"round\"),g.each(function(){var g=n.select(this).selectAll(\"g.slice\").data(e);g.enter().append(\"g\").classed(\"slice\",!0),g.exit().remove();var y=[[[],[]],[[],[]]],x=!1;g.each(function(e){if(e.hidden)n.select(this).selectAll(\"path,g\").remove();else{e.pointNumber=e.i,e.curveNumber=m.index,y[e.pxmid[1]<0?0:1][e.pxmid[0]<0?0:1].push(e);var p=v.cx,d=v.cy,g=n.select(this),b=g.selectAll(\"path.surface\").data([e]),_=!1,w=!1;if(b.enter().append(\"path\").classed(\"surface\",!0).style({\"pointer-events\":\"all\"}),g.select(\"path.textline\").remove(),g.on(\"mouseover\",function(){var a=t._fullLayout,o=t._fullData[m.index];if(!t._dragging&&!1!==a.hovermode){var s=o.hoverinfo;if(Array.isArray(s)&&(s=i.castHoverinfo({hoverinfo:[c.castOption(s,e.pts)],_module:m._module},a,0)),\"all\"===s&&(s=\"label+text+value+percent+name\"),\"none\"!==s&&\"skip\"!==s&&s){var l=f(e,v),h=p+e.pxmid[0]*(1-l),g=d+e.pxmid[1]*(1-l),y=r.separators,x=[];if(-1!==s.indexOf(\"label\")&&x.push(e.label),-1!==s.indexOf(\"text\")){var b=c.castOption(o.hovertext||o.text,e.pts);b&&x.push(b)}-1!==s.indexOf(\"value\")&&x.push(c.formatPieValue(e.v,y)),-1!==s.indexOf(\"percent\")&&x.push(c.formatPiePercent(e.v/v.vTotal,y));var k=m.hoverlabel,M=k.font;i.loneHover({x0:h-l*v.r,x1:h+l*v.r,y:g,text:x.join(\"<br>\"),name:-1!==s.indexOf(\"name\")?o.name:void 0,idealAlign:e.pxmid[0]<0?\"left\":\"right\",color:c.castOption(k.bgcolor,e.pts)||e.color,borderColor:c.castOption(k.bordercolor,e.pts),fontFamily:c.castOption(M.family,e.pts),fontSize:c.castOption(M.size,e.pts),fontColor:c.castOption(M.color,e.pts)},{container:a._hoverlayer.node(),outerContainer:a._paper.node(),gd:t}),_=!0}t.emit(\"plotly_hover\",{points:[u(e,o)],event:n.event}),w=!0}}).on(\"mouseout\",function(r){var a=t._fullLayout,o=t._fullData[m.index];w&&(r.originalEvent=n.event,t.emit(\"plotly_unhover\",{points:[u(e,o)],event:n.event}),w=!1),_&&(i.loneUnhover(a._hoverlayer.node()),_=!1)}).on(\"click\",function(){var r=t._fullLayout,a=t._fullData[m.index];t._dragging||!1===r.hovermode||(t._hoverdata=[u(e,a)],i.click(t,n.event))}),m.pull){var k=+c.castOption(m.pull,e.pts)||0;k>0&&(p+=k*e.pxmid[0],d+=k*e.pxmid[1])}e.cxFinal=p,e.cyFinal=d;var M=m.hole;if(e.v===v.vTotal){var A=\"M\"+(p+e.px0[0])+\",\"+(d+e.px0[1])+L(e.px0,e.pxmid,!0,1)+L(e.pxmid,e.px0,!0,1)+\"Z\";M?b.attr(\"d\",\"M\"+(p+M*e.px0[0])+\",\"+(d+M*e.px0[1])+L(e.px0,e.pxmid,!1,M)+L(e.pxmid,e.px0,!1,M)+\"Z\"+A):b.attr(\"d\",A)}else{var T=L(e.px0,e.px1,!0,1);if(M){var S=1-M;b.attr(\"d\",\"M\"+(p+M*e.px1[0])+\",\"+(d+M*e.px1[1])+L(e.px1,e.px0,!1,M)+\"l\"+S*e.px0[0]+\",\"+S*e.px0[1]+T+\"Z\")}else b.attr(\"d\",\"M\"+p+\",\"+d+\"l\"+e.px0[0]+\",\"+e.px0[1]+T+\"Z\")}var E=c.castOption(m.textposition,e.pts),C=g.selectAll(\"g.slicetext\").data(e.text&&\"none\"!==E?[0]:[]);C.enter().append(\"g\").classed(\"slicetext\",!0),C.exit().remove(),C.each(function(){var r=s.ensureSingle(n.select(this),\"text\",\"\",function(t){t.attr(\"data-notex\",1)});r.text(e.text).attr({class:\"slicetext\",transform:\"\",\"text-anchor\":\"middle\"}).call(o.font,\"outside\"===E?function(t,e,r){var n=c.castOption(t.outsidetextfont.color,e.pts)||c.castOption(t.textfont.color,e.pts)||r.color,i=c.castOption(t.outsidetextfont.family,e.pts)||c.castOption(t.textfont.family,e.pts)||r.family,a=c.castOption(t.outsidetextfont.size,e.pts)||c.castOption(t.textfont.size,e.pts)||r.size;return{color:n,family:i,size:a}}(m,e,t._fullLayout.font):function(t,e,r){var n=c.castOption(t.insidetextfont.color,e.pts);!n&&t._input.textfont&&(n=c.castOption(t._input.textfont.color,e.pts));var i=c.castOption(t.insidetextfont.family,e.pts)||c.castOption(t.textfont.family,e.pts)||r.family,o=c.castOption(t.insidetextfont.size,e.pts)||c.castOption(t.textfont.size,e.pts)||r.size;return{color:n||a.contrast(e.color),family:i,size:o}}(m,e,t._fullLayout.font)).call(l.convertToTspans,t);var i,u=o.bBox(r.node());\"outside\"===E?i=h(u,e):(i=function(t,e,r){var n=Math.sqrt(t.width*t.width+t.height*t.height),i=t.width/t.height,a=Math.PI*Math.min(e.v/r.vTotal,.5),o=1-r.trace.hole,s=f(e,r),l={scale:s*r.r*2/n,rCenter:1-s,rotate:0};if(l.scale>=1)return l;var c=i+1/(2*Math.tan(a)),u=r.r*Math.min(1/(Math.sqrt(c*c+.5)+c),o/(Math.sqrt(i*i+o/2)+i)),h={scale:2*u/t.height,rCenter:Math.cos(u/r.r)-u*i/r.r,rotate:(180/Math.PI*e.midangle+720)%180-90},p=1/i,d=p+1/(2*Math.tan(a)),g=r.r*Math.min(1/(Math.sqrt(d*d+.5)+d),o/(Math.sqrt(p*p+o/2)+p)),v={scale:2*g/t.width,rCenter:Math.cos(g/r.r)-g/i/r.r,rotate:(180/Math.PI*e.midangle+810)%180-90},m=v.scale>h.scale?v:h;return l.scale<1&&m.scale>l.scale?m:l}(u,e,v),\"auto\"===E&&i.scale<1&&(r.call(o.font,m.outsidetextfont),m.outsidetextfont.family===m.insidetextfont.family&&m.outsidetextfont.size===m.insidetextfont.size||(u=o.bBox(r.node())),i=h(u,e)));var g=p+e.pxmid[0]*i.rCenter+(i.x||0),y=d+e.pxmid[1]*i.rCenter+(i.y||0);i.outside&&(e.yLabelMin=y-u.height/2,e.yLabelMid=y,e.yLabelMax=y+u.height/2,e.labelExtraX=0,e.labelExtraY=0,x=!0),r.attr(\"transform\",\"translate(\"+g+\",\"+y+\")\"+(i.scale<1?\"scale(\"+i.scale+\")\":\"\")+(i.rotate?\"rotate(\"+i.rotate+\")\":\"\")+\"translate(\"+-(u.left+u.right)/2+\",\"+-(u.top+u.bottom)/2+\")\")})}function L(t,r,n,i){return\"a\"+i*v.r+\",\"+i*v.r+\" 0 \"+e.largeArc+(n?\" 1 \":\" 0 \")+i*(r[0]-t[0])+\",\"+i*(r[1]-t[1])}});var b=n.select(this).selectAll(\"g.titletext\").data(m.title?[0]:[]);b.enter().append(\"g\").classed(\"titletext\",!0),b.exit().remove(),b.each(function(){var e,i=s.ensureSingle(n.select(this),\"text\",\"\",function(t){t.attr(\"data-notex\",1)});i.text(m.title).attr({class:\"titletext\",transform:\"\",\"text-anchor\":\"middle\"}).call(o.font,m.titlefont).call(l.convertToTspans,t),e=\"middle center\"===m.titleposition?function(t){var e=Math.sqrt(t.titleBox.width*t.titleBox.width+t.titleBox.height*t.titleBox.height);return{x:t.cx,y:t.cy,scale:t.trace.hole*t.r*2/e,tx:0,ty:-t.titleBox.height/2+t.trace.titlefont.size}}(v):function(t,e){var r,n,i=1,a=1,o=t.trace,s={x:t.cx,y:t.cy},l={tx:0,ty:0};l.ty+=o.titlefont.size,n=d(o),-1!==o.titleposition.indexOf(\"top\")?(s.y-=(1+n)*t.r,l.ty-=t.titleBox.height):-1!==o.titleposition.indexOf(\"bottom\")&&(s.y+=(1+n)*t.r);-1!==o.titleposition.indexOf(\"left\")?(r=e.w*(o.domain.x[1]-o.domain.x[0])/2+t.r,s.x-=(1+n)*t.r,l.tx+=t.titleBox.width/2):-1!==o.titleposition.indexOf(\"center\")?r=e.w*(o.domain.x[1]-o.domain.x[0]):-1!==o.titleposition.indexOf(\"right\")&&(r=e.w*(o.domain.x[1]-o.domain.x[0])/2+t.r,s.x+=(1+n)*t.r,l.tx-=t.titleBox.width/2);return i=r/t.titleBox.width,a=p(t,e)/t.titleBox.height,{x:s.x,y:s.y,scale:Math.min(i,a),tx:l.tx,ty:l.ty}}(v,r._size),i.attr(\"transform\",\"translate(\"+e.x+\",\"+e.y+\")\"+(e.scale<1?\"scale(\"+e.scale+\")\":\"\")+\"translate(\"+e.tx+\",\"+e.ty+\")\")}),x&&function(t,e){var r,n,i,a,o,s,l,u,f,h,p,d,g;function v(t,e){return t.pxmid[1]-e.pxmid[1]}function m(t,e){return e.pxmid[1]-t.pxmid[1]}function y(t,r){r||(r={});var i,u,f,p,d,g,v=r.labelExtraY+(n?r.yLabelMax:r.yLabelMin),m=n?t.yLabelMin:t.yLabelMax,y=n?t.yLabelMax:t.yLabelMin,x=t.cyFinal+o(t.px0[1],t.px1[1]),b=v-m;if(b*l>0&&(t.labelExtraY=b),Array.isArray(e.pull))for(u=0;u<h.length;u++)(f=h[u])===t||(c.castOption(e.pull,t.pts)||0)>=(c.castOption(e.pull,f.pts)||0)||((t.pxmid[1]-f.pxmid[1])*l>0?(p=f.cyFinal+o(f.px0[1],f.px1[1]),(b=p-m-t.labelExtraY)*l>0&&(t.labelExtraY+=b)):(y+t.labelExtraY-x)*l>0&&(i=3*s*Math.abs(u-h.indexOf(t)),d=f.cxFinal+a(f.px0[0],f.px1[0]),(g=d+i-(t.cxFinal+t.pxmid[0])-t.labelExtraX)*s>0&&(t.labelExtraX+=g)))}for(n=0;n<2;n++)for(i=n?v:m,o=n?Math.max:Math.min,l=n?1:-1,r=0;r<2;r++){for(a=r?Math.max:Math.min,s=r?1:-1,(u=t[n][r]).sort(i),f=t[1-n][r],h=f.concat(u),d=[],p=0;p<u.length;p++)void 0!==u[p].yLabelMid&&d.push(u[p]);for(g=!1,p=0;n&&p<f.length;p++)if(void 0!==f[p].yLabelMid){g=f[p];break}for(p=0;p<d.length;p++){var x=p&&d[p-1];g&&!p&&(x=g),y(d[p],x)}}}(y,m),g.each(function(t){if(t.labelExtraX||t.labelExtraY){var e=n.select(this),r=e.select(\"g.slicetext text\");r.attr(\"transform\",\"translate(\"+t.labelExtraX+\",\"+t.labelExtraY+\")\"+r.attr(\"transform\"));var i=t.cxFinal+t.pxmid[0],o=\"M\"+i+\",\"+(t.cyFinal+t.pxmid[1]),s=(t.yLabelMax-t.yLabelMin)*(t.pxmid[0]<0?-1:1)/4;if(t.labelExtraX){var l=t.labelExtraX*t.pxmid[1]/t.pxmid[0],c=t.yLabelMid+t.labelExtraY-(t.cyFinal+t.pxmid[1]);Math.abs(l)>Math.abs(c)?o+=\"l\"+c*t.pxmid[0]/t.pxmid[1]+\",\"+c+\"H\"+(i+t.labelExtraX+s):o+=\"l\"+t.labelExtraX+\",\"+l+\"v\"+(c-l)+\"h\"+s}else o+=\"V\"+(t.yLabelMid+t.labelExtraY)+\"h\"+s;e.append(\"path\").classed(\"textline\",!0).call(a.stroke,m.outsidetextfont.color).attr({\"stroke-width\":Math.min(2,m.outsidetextfont.size/8),d:o,fill:\"none\"})}})})});setTimeout(function(){g.selectAll(\"tspan\").each(function(){var t=n.select(this);t.attr(\"dy\")&&t.attr(\"dy\",t.attr(\"dy\"))})},0)}},{\"../../components/color\":570,\"../../components/drawing\":595,\"../../components/fx\":612,\"../../lib\":696,\"../../lib/svg_text_utils\":720,\"./event_data\":1022,\"./helpers\":1023,d3:148}],1028:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"./style_one\");e.exports=function(t){t._fullLayout._pielayer.selectAll(\".trace\").each(function(t){var e=t[0].trace,r=n.select(this);r.style({opacity:e.opacity}),r.selectAll(\"path.surface\").each(function(t){n.select(this).call(i,t,e)})})}},{\"./style_one\":1029,d3:148}],1029:[function(t,e,r){\"use strict\";var n=t(\"../../components/color\"),i=t(\"./helpers\").castOption;e.exports=function(t,e,r){var a=r.marker.line,o=i(a.color,e.pts)||n.defaultLine,s=i(a.width,e.pts)||0;t.style({\"stroke-width\":s}).call(n.fill,e.color).call(n.stroke,o)}},{\"../../components/color\":570,\"./helpers\":1023}],1030:[function(t,e,r){\"use strict\";var n=t(\"../scatter/attributes\");e.exports={x:n.x,y:n.y,xy:{valType:\"data_array\",editType:\"calc\"},indices:{valType:\"data_array\",editType:\"calc\"},xbounds:{valType:\"data_array\",editType:\"calc\"},ybounds:{valType:\"data_array\",editType:\"calc\"},text:n.text,marker:{color:{valType:\"color\",arrayOk:!1,editType:\"calc\"},opacity:{valType:\"number\",min:0,max:1,dflt:1,arrayOk:!1,editType:\"calc\"},blend:{valType:\"boolean\",dflt:null,editType:\"calc\"},sizemin:{valType:\"number\",min:.1,max:2,dflt:.5,editType:\"calc\"},sizemax:{valType:\"number\",min:.1,dflt:20,editType:\"calc\"},border:{color:{valType:\"color\",arrayOk:!1,editType:\"calc\"},arearatio:{valType:\"number\",min:0,max:1,dflt:0,editType:\"calc\"},editType:\"calc\"},editType:\"calc\"},transforms:void 0}},{\"../scatter/attributes\":1043}],1031:[function(t,e,r){\"use strict\";var n=t(\"gl-pointcloud2d\"),i=t(\"../../lib/str2rgbarray\"),a=t(\"../../plots/cartesian/autorange\").findExtremes,o=t(\"../scatter/get_trace_color\");function s(t,e){this.scene=t,this.uid=e,this.type=\"pointcloud\",this.pickXData=[],this.pickYData=[],this.xData=[],this.yData=[],this.textLabels=[],this.color=\"rgb(0, 0, 0)\",this.name=\"\",this.hoverinfo=\"all\",this.idToIndex=new Int32Array(0),this.bounds=[0,0,0,0],this.pointcloudOptions={positions:new Float32Array(0),idToIndex:this.idToIndex,sizemin:.5,sizemax:12,color:[0,0,0,1],areaRatio:1,borderColor:[0,0,0,1]},this.pointcloud=n(t.glplot,this.pointcloudOptions),this.pointcloud._trace=this}var l=s.prototype;l.handlePick=function(t){var e=this.idToIndex[t.pointId];return{trace:this,dataCoord:t.dataCoord,traceCoord:this.pickXYData?[this.pickXYData[2*e],this.pickXYData[2*e+1]]:[this.pickXData[e],this.pickYData[e]],textLabel:Array.isArray(this.textLabels)?this.textLabels[e]:this.textLabels,color:this.color,name:this.name,pointIndex:e,hoverinfo:this.hoverinfo}},l.update=function(t){this.index=t.index,this.textLabels=t.text,this.name=t.name,this.hoverinfo=t.hoverinfo,this.bounds=[1/0,1/0,-1/0,-1/0],this.updateFast(t),this.color=o(t,{})},l.updateFast=function(t){var e,r,n,o,s,l,c=this.xData=this.pickXData=t.x,u=this.yData=this.pickYData=t.y,f=this.pickXYData=t.xy,h=t.xbounds&&t.ybounds,p=t.indices,d=this.bounds;if(f){if(n=f,e=f.length>>>1,h)d[0]=t.xbounds[0],d[2]=t.xbounds[1],d[1]=t.ybounds[0],d[3]=t.ybounds[1];else for(l=0;l<e;l++)o=n[2*l],s=n[2*l+1],o<d[0]&&(d[0]=o),o>d[2]&&(d[2]=o),s<d[1]&&(d[1]=s),s>d[3]&&(d[3]=s);if(p)r=p;else for(r=new Int32Array(e),l=0;l<e;l++)r[l]=l}else for(e=c.length,n=new Float32Array(2*e),r=new Int32Array(e),l=0;l<e;l++)o=c[l],s=u[l],r[l]=l,n[2*l]=o,n[2*l+1]=s,o<d[0]&&(d[0]=o),o>d[2]&&(d[2]=o),s<d[1]&&(d[1]=s),s>d[3]&&(d[3]=s);this.idToIndex=r,this.pointcloudOptions.idToIndex=r,this.pointcloudOptions.positions=n;var g=i(t.marker.color),v=i(t.marker.border.color),m=t.opacity*t.marker.opacity;g[3]*=m,this.pointcloudOptions.color=g;var y=t.marker.blend;if(null===y){y=c.length<100||u.length<100}this.pointcloudOptions.blend=y,v[3]*=m,this.pointcloudOptions.borderColor=v;var x=t.marker.sizemin,b=Math.max(t.marker.sizemax,t.marker.sizemin);this.pointcloudOptions.sizeMin=x,this.pointcloudOptions.sizeMax=b,this.pointcloudOptions.areaRatio=t.marker.border.arearatio,this.pointcloud.update(this.pointcloudOptions);var _=this.scene.xaxis,w=this.scene.yaxis,k=b/2||.5;t._extremes[_._id]=a(_,[d[0],d[2]],{ppad:k}),t._extremes[w._id]=a(w,[d[1],d[3]],{ppad:k})},l.dispose=function(){this.pointcloud.dispose()},e.exports=function(t,e){var r=new s(t,e.uid);return r.update(e),r}},{\"../../lib/str2rgbarray\":719,\"../../plots/cartesian/autorange\":743,\"../scatter/get_trace_color\":1053,\"gl-pointcloud2d\":279}],1032:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"./attributes\");e.exports=function(t,e,r){function a(r,a){return n.coerce(t,e,i,r,a)}a(\"x\"),a(\"y\"),a(\"xbounds\"),a(\"ybounds\"),t.xy&&t.xy instanceof Float32Array&&(e.xy=t.xy),t.indices&&t.indices instanceof Int32Array&&(e.indices=t.indices),a(\"text\"),a(\"marker.color\",r),a(\"marker.opacity\"),a(\"marker.blend\"),a(\"marker.sizemin\"),a(\"marker.sizemax\"),a(\"marker.border.color\",r),a(\"marker.border.arearatio\"),e._length=null}},{\"../../lib\":696,\"./attributes\":1030}],1033:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.supplyDefaults=t(\"./defaults\"),n.calc=t(\"../scatter3d/calc\"),n.plot=t(\"./convert\"),n.moduleType=\"trace\",n.name=\"pointcloud\",n.basePlotModule=t(\"../../plots/gl2d\"),n.categories=[\"gl\",\"gl2d\",\"showLegend\"],n.meta={},e.exports=n},{\"../../plots/gl2d\":784,\"../scatter3d/calc\":1071,\"./attributes\":1030,\"./convert\":1031,\"./defaults\":1032}],1034:[function(t,e,r){\"use strict\";var n=t(\"../../plots/font_attributes\"),i=t(\"../../plots/attributes\"),a=t(\"../../components/color/attributes\"),o=t(\"../../components/fx/attributes\"),s=t(\"../../plots/domain\").attributes,l=t(\"../../lib/extend\").extendFlat,c=t(\"../../plot_api/edit_types\").overrideAll;(e.exports=c({hoverinfo:l({},i.hoverinfo,{flags:[],arrayOk:!1}),hoverlabel:o.hoverlabel,domain:s({name:\"sankey\",trace:!0}),orientation:{valType:\"enumerated\",values:[\"v\",\"h\"],dflt:\"h\"},valueformat:{valType:\"string\",dflt:\".3s\"},valuesuffix:{valType:\"string\",dflt:\"\"},arrangement:{valType:\"enumerated\",values:[\"snap\",\"perpendicular\",\"freeform\",\"fixed\"],dflt:\"snap\"},textfont:n({}),node:{label:{valType:\"data_array\",dflt:[]},color:{valType:\"color\",arrayOk:!0},line:{color:{valType:\"color\",dflt:a.defaultLine,arrayOk:!0},width:{valType:\"number\",min:0,dflt:.5,arrayOk:!0}},pad:{valType:\"number\",arrayOk:!1,min:0,dflt:20},thickness:{valType:\"number\",arrayOk:!1,min:1,dflt:20},hoverinfo:{valType:\"enumerated\",values:[\"all\",\"none\",\"skip\"],dflt:\"all\"},hoverlabel:o.hoverlabel},link:{label:{valType:\"data_array\",dflt:[]},color:{valType:\"color\",arrayOk:!0},line:{color:{valType:\"color\",dflt:a.defaultLine,arrayOk:!0},width:{valType:\"number\",min:0,dflt:0,arrayOk:!0}},source:{valType:\"data_array\",dflt:[]},target:{valType:\"data_array\",dflt:[]},value:{valType:\"data_array\",dflt:[]},hoverinfo:{valType:\"enumerated\",values:[\"all\",\"none\",\"skip\"],dflt:\"all\"},hoverlabel:o.hoverlabel}},\"calc\",\"nested\")).transforms=void 0},{\"../../components/color/attributes\":569,\"../../components/fx/attributes\":604,\"../../lib/extend\":685,\"../../plot_api/edit_types\":727,\"../../plots/attributes\":741,\"../../plots/domain\":770,\"../../plots/font_attributes\":771}],1035:[function(t,e,r){\"use strict\";var n=t(\"../../plot_api/edit_types\").overrideAll,i=t(\"../../plots/get_data\").getModuleCalcData,a=t(\"./plot\"),o=t(\"../../components/fx/layout_attributes\");r.name=\"sankey\",r.baseLayoutAttrOverrides=n({hoverlabel:o.hoverlabel},\"plot\",\"nested\"),r.plot=function(t){var e=i(t.calcdata,\"sankey\")[0];a(t,e)},r.clean=function(t,e,r,n){var i=n._has&&n._has(\"sankey\"),a=e._has&&e._has(\"sankey\");i&&!a&&n._paperdiv.selectAll(\".sankey\").remove()}},{\"../../components/fx/layout_attributes\":613,\"../../plot_api/edit_types\":727,\"../../plots/get_data\":781,\"./plot\":1040}],1036:[function(t,e,r){\"use strict\";var n=t(\"strongly-connected-components\"),i=t(\"../../lib\"),a=t(\"../../lib/gup\").wrap;e.exports=function(t,e){return function(t,e,r){for(var a=t.length,o=i.init2dArray(a,0),s=0;s<Math.min(e.length,r.length);s++)if(i.isIndex(e[s],a)&&i.isIndex(r[s],a)){if(e[s]===r[s])return!0;o[e[s]].push(r[s])}return n(o).components.some(function(t){return t.length>1})}(e.node.label,e.link.source,e.link.target)&&(i.error(\"Circularity is present in the Sankey data. Removing all nodes and links.\"),e.link.label=[],e.link.source=[],e.link.target=[],e.link.value=[],e.link.color=[],e.node.label=[],e.node.color=[]),a({link:e.link,node:e.node})}},{\"../../lib\":696,\"../../lib/gup\":693,\"strongly-connected-components\":506}],1037:[function(t,e,r){\"use strict\";e.exports={nodeTextOffsetHorizontal:4,nodeTextOffsetVertical:3,nodePadAcross:10,sankeyIterations:50,forceIterations:5,forceTicksPerFrame:10,duration:500,ease:\"cubic-in-out\",cn:{sankey:\"sankey\",sankeyLinks:\"sankey-links\",sankeyLink:\"sankey-link\",sankeyNodeSet:\"sankey-node-set\",sankeyNode:\"sankey-node\",nodeRect:\"node-rect\",nodeCapture:\"node-capture\",nodeCentered:\"node-entered\",nodeLabelGuide:\"node-label-guide\",nodeLabel:\"node-label\",nodeLabelTextPath:\"node-label-text-path\"}}},{}],1038:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"./attributes\"),a=t(\"../../components/color\"),o=t(\"tinycolor2\"),s=t(\"../../plots/domain\").defaults,l=t(\"../../components/fx/hoverlabel_defaults\"),c=t(\"../../plot_api/plot_template\");e.exports=function(t,e,r,u){function f(r,a){return n.coerce(t,e,i,r,a)}var h=n.extendDeep(u.hoverlabel,t.hoverlabel),p=t.node,d=c.newContainer(e,\"node\");function g(t,e){return n.coerce(p,d,i.node,t,e)}g(\"label\"),g(\"pad\"),g(\"thickness\"),g(\"line.color\"),g(\"line.width\"),g(\"hoverinfo\",t.hoverinfo),l(p,d,g,h);var v=u.colorway;g(\"color\",d.label.map(function(t,e){return a.addOpacity(function(t){return v[t%v.length]}(e),.8)}));var m=t.link,y=c.newContainer(e,\"link\");function x(t,e){return n.coerce(m,y,i.link,t,e)}x(\"label\"),x(\"source\"),x(\"target\"),x(\"value\"),x(\"line.color\"),x(\"line.width\"),x(\"hoverinfo\",t.hoverinfo),l(m,y,x,h);var b=o(u.paper_bgcolor).getLuminance()<.333?\"rgba(255, 255, 255, 0.6)\":\"rgba(0, 0, 0, 0.2)\";x(\"color\",n.repeat(b,y.value.length)),s(e,u,f),f(\"orientation\"),f(\"valueformat\"),f(\"valuesuffix\"),f(\"arrangement\"),n.coerceFont(f,\"textfont\",n.extendFlat({},u.font)),e._length=null}},{\"../../components/color\":570,\"../../components/fx/hoverlabel_defaults\":611,\"../../lib\":696,\"../../plot_api/plot_template\":734,\"../../plots/domain\":770,\"./attributes\":1034,tinycolor2:514}],1039:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.supplyDefaults=t(\"./defaults\"),n.calc=t(\"./calc\"),n.plot=t(\"./plot\"),n.moduleType=\"trace\",n.name=\"sankey\",n.basePlotModule=t(\"./base_plot\"),n.categories=[\"noOpacity\"],n.meta={},e.exports=n},{\"./attributes\":1034,\"./base_plot\":1035,\"./calc\":1036,\"./defaults\":1038,\"./plot\":1040}],1040:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"./render\"),a=t(\"../../components/fx\"),o=t(\"../../components/color\"),s=t(\"../../lib\"),l=t(\"./constants\").cn,c=s._;function u(t){return\"\"!==t}function f(t,e){return t.filter(function(t){return t.key===e.traceId})}function h(t,e){n.select(t).select(\"path\").style(\"fill-opacity\",e),n.select(t).select(\"rect\").style(\"fill-opacity\",e)}function p(t){n.select(t).select(\"text.name\").style(\"fill\",\"black\")}function d(t){return function(e){return-1!==t.node.sourceLinks.indexOf(e.link)||-1!==t.node.targetLinks.indexOf(e.link)}}function g(t){return function(e){return-1!==e.node.sourceLinks.indexOf(t.link)||-1!==e.node.targetLinks.indexOf(t.link)}}function v(t,e,r){e&&r&&f(r,e).selectAll(\".\"+l.sankeyLink).filter(d(e)).call(y.bind(0,e,r,!1))}function m(t,e,r){e&&r&&f(r,e).selectAll(\".\"+l.sankeyLink).filter(d(e)).call(x.bind(0,e,r,!1))}function y(t,e,r,n){var i=n.datum().link.label;n.style(\"fill-opacity\",.4),i&&f(e,t).selectAll(\".\"+l.sankeyLink).filter(function(t){return t.link.label===i}).style(\"fill-opacity\",.4),r&&f(e,t).selectAll(\".\"+l.sankeyNode).filter(g(t)).call(v)}function x(t,e,r,n){var i=n.datum().link.label;n.style(\"fill-opacity\",function(t){return t.tinyColorAlpha}),i&&f(e,t).selectAll(\".\"+l.sankeyLink).filter(function(t){return t.link.label===i}).style(\"fill-opacity\",function(t){return t.tinyColorAlpha}),r&&f(e,t).selectAll(l.sankeyNode).filter(g(t)).call(m)}function b(t,e){var r=t.hoverlabel||{},n=s.nestedProperty(r,e).get();return!Array.isArray(n)&&n}e.exports=function(t,e){var r=t._fullLayout,s=r._paper,f=r._size,d=c(t,\"source:\")+\" \",g=c(t,\"target:\")+\" \",_=c(t,\"incoming flow count:\")+\" \",w=c(t,\"outgoing flow count:\")+\" \";i(s,e,{width:f.w,height:f.h,margin:{t:f.t,r:f.r,b:f.b,l:f.l}},{linkEvents:{hover:function(e,r,i){!1!==t._fullLayout.hovermode&&(n.select(e).call(y.bind(0,r,i,!0)),\"skip\"!==r.link.trace.link.hoverinfo&&t.emit(\"plotly_hover\",{event:n.event,points:[r.link]}))},follow:function(e,i){if(!1!==t._fullLayout.hovermode){var s=i.link.trace.link;if(\"none\"!==s.hoverinfo&&\"skip\"!==s.hoverinfo){var l=t._fullLayout._paperdiv.node().getBoundingClientRect(),c=e.getBoundingClientRect(),f=c.left+c.width/2,v=c.top+c.height/2,m=a.loneHover({x:f-l.left,y:v-l.top,name:n.format(i.valueFormat)(i.link.value)+i.valueSuffix,text:[i.link.label||\"\",d+i.link.source.label,g+i.link.target.label].filter(u).join(\"<br>\"),color:b(s,\"bgcolor\")||o.addOpacity(i.tinyColorHue,1),borderColor:b(s,\"bordercolor\"),fontFamily:b(s,\"font.family\"),fontSize:b(s,\"font.size\"),fontColor:b(s,\"font.color\"),idealAlign:n.event.x<f?\"right\":\"left\"},{container:r._hoverlayer.node(),outerContainer:r._paper.node(),gd:t});h(m,.65),p(m)}}},unhover:function(e,i,o){!1!==t._fullLayout.hovermode&&(n.select(e).call(x.bind(0,i,o,!0)),\"skip\"!==i.link.trace.link.hoverinfo&&t.emit(\"plotly_unhover\",{event:n.event,points:[i.link]}),a.loneUnhover(r._hoverlayer.node()))},select:function(e,r){var i=r.link;i.originalEvent=n.event,t._hoverdata=[i],a.click(t,{target:!0})}},nodeEvents:{hover:function(e,r,i){!1!==t._fullLayout.hovermode&&(n.select(e).call(v,r,i),\"skip\"!==r.node.trace.node.hoverinfo&&t.emit(\"plotly_hover\",{event:n.event,points:[r.node]}))},follow:function(e,i){if(!1!==t._fullLayout.hovermode){var o=i.node.trace.node;if(\"none\"!==o.hoverinfo&&\"skip\"!==o.hoverinfo){var s=n.select(e).select(\".\"+l.nodeRect),c=t._fullLayout._paperdiv.node().getBoundingClientRect(),f=s.node().getBoundingClientRect(),d=f.left-2-c.left,g=f.right+2-c.left,v=f.top+f.height/4-c.top,m=a.loneHover({x0:d,x1:g,y:v,name:n.format(i.valueFormat)(i.node.value)+i.valueSuffix,text:[i.node.label,_+i.node.targetLinks.length,w+i.node.sourceLinks.length].filter(u).join(\"<br>\"),color:b(o,\"bgcolor\")||i.tinyColorHue,borderColor:b(o,\"bordercolor\"),fontFamily:b(o,\"font.family\"),fontSize:b(o,\"font.size\"),fontColor:b(o,\"font.color\"),idealAlign:\"left\"},{container:r._hoverlayer.node(),outerContainer:r._paper.node(),gd:t});h(m,.85),p(m)}}},unhover:function(e,i,o){!1!==t._fullLayout.hovermode&&(n.select(e).call(m,i,o),\"skip\"!==i.node.trace.node.hoverinfo&&t.emit(\"plotly_unhover\",{event:n.event,points:[i.node]}),a.loneUnhover(r._hoverlayer.node()))},select:function(e,r,i){var o=r.node;o.originalEvent=n.event,t._hoverdata=[o],n.select(e).call(m,r,i),a.click(t,{target:!0})}}})}},{\"../../components/color\":570,\"../../components/fx\":612,\"../../lib\":696,\"./constants\":1037,\"./render\":1041,d3:148}],1041:[function(t,e,r){\"use strict\";var n=t(\"./constants\"),i=t(\"d3\"),a=t(\"tinycolor2\"),o=t(\"../../components/color\"),s=t(\"../../components/drawing\"),l=t(\"@plotly/d3-sankey\").sankey,c=t(\"d3-force\"),u=t(\"../../lib\"),f=u.isArrayOrTypedArray,h=u.isIndex,p=t(\"../../lib/gup\"),d=p.keyFun,g=p.repeat,v=p.unwrap;function m(t){t.lastDraggedX=t.x,t.lastDraggedY=t.y}function y(t){return function(e){return e.node.originalX===t.node.originalX}}function x(t){for(var e=0;e<t.length;e++)t[e].y=t[e].y+t[e].dy/2}function b(t){t.attr(\"transform\",function(t){return\"translate(\"+t.node.x.toFixed(3)+\", \"+(t.node.y-t.node.dy/2).toFixed(3)+\")\"})}function _(t){var e=t.sankey.nodes();!function(t){for(var e=0;e<t.length;e++)t[e].y=t[e].y-t[e].dy/2}(e);var r=t.sankey.link()(t.link);return x(e),r}function w(t){t.call(b)}function k(t,e){t.call(w),e.attr(\"d\",_)}function M(t){t.attr(\"width\",function(t){return t.visibleWidth}).attr(\"height\",function(t){return t.visibleHeight})}function A(t){return t.link.dy>1||t.linkLineWidth>0}function T(t){return\"translate(\"+t.translateX+\",\"+t.translateY+\")\"+(t.horizontal?\"matrix(1 0 0 1 0 0)\":\"matrix(0 1 1 0 0 0)\")}function S(t){return\"translate(\"+(t.horizontal?0:t.labelY)+\" \"+(t.horizontal?t.labelY:0)+\")\"}function E(t){return i.svg.line()([[t.horizontal?t.left?-t.sizeAcross:t.visibleWidth+n.nodeTextOffsetHorizontal:n.nodeTextOffsetHorizontal,0],[t.horizontal?t.left?-n.nodeTextOffsetHorizontal:t.sizeAcross:t.visibleHeight-n.nodeTextOffsetHorizontal,0]])}function C(t){return t.horizontal?\"matrix(1 0 0 1 0 0)\":\"matrix(0 1 1 0 0 0)\"}function L(t){return t.horizontal?\"scale(1 1)\":\"scale(-1 1)\"}function z(t){return t.darkBackground&&!t.horizontal?\"rgb(255,255,255)\":\"rgb(0,0,0)\"}function O(t){return t.horizontal&&t.left?\"100%\":\"0%\"}function I(t,e,r){t.on(\".basic\",null).on(\"mouseover.basic\",function(t){t.interactionState.dragInProgress||(r.hover(this,t,e),t.interactionState.hovered=[this,t])}).on(\"mousemove.basic\",function(t){t.interactionState.dragInProgress||(r.follow(this,t),t.interactionState.hovered=[this,t])}).on(\"mouseout.basic\",function(t){t.interactionState.dragInProgress||(r.unhover(this,t,e),t.interactionState.hovered=!1)}).on(\"click.basic\",function(t){t.interactionState.hovered&&(r.unhover(this,t,e),t.interactionState.hovered=!1),t.interactionState.dragInProgress||r.select(this,t,e)})}function P(t,e,r){var a=i.behavior.drag().origin(function(t){return t.node}).on(\"dragstart\",function(i){if(\"fixed\"!==i.arrangement&&(u.raiseToTop(this),i.interactionState.dragInProgress=i.node,m(i.node),i.interactionState.hovered&&(r.nodeEvents.unhover.apply(0,i.interactionState.hovered),i.interactionState.hovered=!1),\"snap\"===i.arrangement)){var a=i.traceId+\"|\"+Math.floor(i.node.originalX);i.forceLayouts[a]?i.forceLayouts[a].alpha(1):function(t,e,r){var i=r.sankey.nodes().filter(function(t){return t.originalX===r.node.originalX});r.forceLayouts[e]=c.forceSimulation(i).alphaDecay(0).force(\"collide\",c.forceCollide().radius(function(t){return t.dy/2+r.nodePad/2}).strength(1).iterations(n.forceIterations)).force(\"constrain\",function(t,e,r,i){return function(){for(var t=0,a=0;a<r.length;a++){var o=r[a];o===i.interactionState.dragInProgress?(o.x=o.lastDraggedX,o.y=o.lastDraggedY):(o.vx=(o.originalX-o.x)/n.forceTicksPerFrame,o.y=Math.min(i.size-o.dy/2,Math.max(o.dy/2,o.y))),t=Math.max(t,Math.abs(o.vx),Math.abs(o.vy))}!i.interactionState.dragInProgress&&t<.1&&i.forceLayouts[e].alpha()>0&&i.forceLayouts[e].alpha(0)}}(0,e,i,r)).stop()}(0,a,i),function(t,e,r,i){window.requestAnimationFrame(function a(){for(var o=0;o<n.forceTicksPerFrame;o++)r.forceLayouts[i].tick();r.sankey.relayout(),k(t.filter(y(r)),e),r.forceLayouts[i].alpha()>0&&window.requestAnimationFrame(a)})}(t,e,i,a)}}).on(\"drag\",function(r){if(\"fixed\"!==r.arrangement){var n=i.event.x,a=i.event.y;\"snap\"===r.arrangement?(r.node.x=n,r.node.y=a):(\"freeform\"===r.arrangement&&(r.node.x=n),r.node.y=Math.max(r.node.dy/2,Math.min(r.size-r.node.dy/2,a))),m(r.node),\"snap\"!==r.arrangement&&(r.sankey.relayout(),k(t.filter(y(r)),e))}}).on(\"dragend\",function(t){t.interactionState.dragInProgress=!1});t.on(\".drag\",null).call(a)}e.exports=function(t,e,r,i){var c=t.selectAll(\".\"+n.cn.sankey).data(e.filter(function(t){return v(t).trace.visible}).map(function(t,e,r){var i,a=v(e).trace,o=a.domain,s=a.node,c=a.link,p=a.arrangement,d=\"h\"===a.orientation,g=a.node.pad,m=a.node.thickness,y=a.node.line.color,b=a.node.line.width,_=a.link.line.color,w=a.link.line.width,k=a.valueformat,M=a.valuesuffix,A=a.textfont,T=t.width*(o.x[1]-o.x[0]),S=t.height*(o.y[1]-o.y[0]),E=[],C=f(c.color),L={},z=s.label.length;for(i=0;i<c.value.length;i++){var O=c.value[i],I=c.source[i],P=c.target[i];O>0&&h(I,z)&&h(P,z)&&(P=+P,L[I=+I]=L[P]=!0,E.push({pointNumber:i,label:c.label[i],color:C?c.color[i]:c.color,source:I,target:P,value:+O}))}var D=f(s.color),R=[],B=!1,F={};for(i=0;i<z;i++)if(L[i]){var N=s.label[i];F[i]=R.length,R.push({pointNumber:i,label:N,color:D?s.color[i]:s.color})}else B=!0;if(B)for(i=0;i<E.length;i++)E[i].source=F[E[i].source],E[i].target=F[E[i].target];var j=l().size(d?[T,S]:[S,T]).nodeWidth(m).nodePadding(g).nodes(R).links(E).layout(n.sankeyIterations);j.nodePadding()<g&&u.warn(\"node.pad was reduced to \",j.nodePadding(),\" to fit within the figure.\");for(var V,U=j.nodes(),q=0;q<U.length;q++)(V=U[q]).width=T,V.height=S;return x(R),{key:r,trace:a,guid:Math.floor(1e12*(1+Math.random())),horizontal:d,width:T,height:S,nodePad:g,nodeLineColor:y,nodeLineWidth:b,linkLineColor:_,linkLineWidth:w,valueFormat:k,valueSuffix:M,textFont:A,translateX:o.x[0]*t.width+t.margin.l,translateY:t.height-o.y[1]*t.height+t.margin.t,dragParallel:d?S:T,dragPerpendicular:d?T:S,nodes:R,links:E,arrangement:p,sankey:j,forceLayouts:{},interactionState:{dragInProgress:!1,hovered:!1}}}.bind(null,r)),d);c.exit().remove(),c.enter().append(\"g\").classed(n.cn.sankey,!0).style(\"box-sizing\",\"content-box\").style(\"position\",\"absolute\").style(\"left\",0).style(\"shape-rendering\",\"geometricPrecision\").style(\"pointer-events\",\"auto\").attr(\"transform\",T),c.transition().ease(n.ease).duration(n.duration).attr(\"transform\",T);var p=c.selectAll(\".\"+n.cn.sankeyLinks).data(g,d);p.enter().append(\"g\").classed(n.cn.sankeyLinks,!0).style(\"fill\",\"none\");var m=p.selectAll(\".\"+n.cn.sankeyLink).data(function(t){return t.sankey.links().filter(function(t){return t.value}).map(function(t,e,r){var n=a(r.color),i=r.source.label+\"|\"+r.target.label,s=t[i];t[i]=(s||0)+1;var l=i+\"__\"+t[i];return r.trace=e.trace,r.curveNumber=e.trace.index,{key:l,traceId:e.key,link:r,tinyColorHue:o.tinyRGB(n),tinyColorAlpha:n.getAlpha(),linkLineColor:e.linkLineColor,linkLineWidth:e.linkLineWidth,valueFormat:e.valueFormat,valueSuffix:e.valueSuffix,sankey:e.sankey,interactionState:e.interactionState}}.bind(null,{},t))},d);m.enter().append(\"path\").classed(n.cn.sankeyLink,!0).attr(\"d\",_).call(I,c,i.linkEvents),m.style(\"stroke\",function(t){return A(t)?o.tinyRGB(a(t.linkLineColor)):t.tinyColorHue}).style(\"stroke-opacity\",function(t){return A(t)?o.opacity(t.linkLineColor):t.tinyColorAlpha}).style(\"stroke-width\",function(t){return A(t)?t.linkLineWidth:1}).style(\"fill\",function(t){return t.tinyColorHue}).style(\"fill-opacity\",function(t){return t.tinyColorAlpha}),m.transition().ease(n.ease).duration(n.duration).attr(\"d\",_),m.exit().transition().ease(n.ease).duration(n.duration).style(\"opacity\",0).remove();var y=c.selectAll(\".\"+n.cn.sankeyNodeSet).data(g,d);y.enter().append(\"g\").classed(n.cn.sankeyNodeSet,!0),y.style(\"cursor\",function(t){switch(t.arrangement){case\"fixed\":return\"default\";case\"perpendicular\":return\"ns-resize\";default:return\"move\"}});var w=y.selectAll(\".\"+n.cn.sankeyNode).data(function(t){var e=t.sankey.nodes();return function(t){var e,r=[];for(e=0;e<t.length;e++)t[e].originalX=t[e].x,t[e].originalY=t[e].y,-1===r.indexOf(t[e].x)&&r.push(t[e].x);for(r.sort(function(t,e){return t-e}),e=0;e<t.length;e++)t[e].originalLayerIndex=r.indexOf(t[e].originalX),t[e].originalLayer=t[e].originalLayerIndex/(r.length-1)}(e),e.filter(function(t){return t.value}).map(function(t,e,r){var i=a(r.color),s=n.nodePadAcross,l=e.nodePad/2,c=r.dx,u=Math.max(.5,r.dy),f=r.label,h=t[f];t[f]=(h||0)+1;var p=f+\"__\"+t[f];return r.trace=e.trace,r.curveNumber=e.trace.index,{key:p,traceId:e.key,node:r,nodePad:e.nodePad,nodeLineColor:e.nodeLineColor,nodeLineWidth:e.nodeLineWidth,textFont:e.textFont,size:e.horizontal?e.height:e.width,visibleWidth:Math.ceil(c),visibleHeight:u,zoneX:-s,zoneY:-l,zoneWidth:c+2*s,zoneHeight:u+2*l,labelY:e.horizontal?r.dy/2+1:r.dx/2+1,left:1===r.originalLayer,sizeAcross:e.width,forceLayouts:e.forceLayouts,horizontal:e.horizontal,darkBackground:i.getBrightness()<=128,tinyColorHue:o.tinyRGB(i),tinyColorAlpha:i.getAlpha(),valueFormat:e.valueFormat,valueSuffix:e.valueSuffix,sankey:e.sankey,arrangement:e.arrangement,uniqueNodeLabelPathId:[e.guid,e.key,p].join(\" \"),interactionState:e.interactionState}}.bind(null,{},t))},d);w.enter().append(\"g\").classed(n.cn.sankeyNode,!0).call(b).call(I,c,i.nodeEvents),w.call(P,m,i),w.transition().ease(n.ease).duration(n.duration).call(b),w.exit().transition().ease(n.ease).duration(n.duration).style(\"opacity\",0).remove();var k=w.selectAll(\".\"+n.cn.nodeRect).data(g);k.enter().append(\"rect\").classed(n.cn.nodeRect,!0).call(M),k.style(\"stroke-width\",function(t){return t.nodeLineWidth}).style(\"stroke\",function(t){return o.tinyRGB(a(t.nodeLineColor))}).style(\"stroke-opacity\",function(t){return o.opacity(t.nodeLineColor)}).style(\"fill\",function(t){return t.tinyColorHue}).style(\"fill-opacity\",function(t){return t.tinyColorAlpha}),k.transition().ease(n.ease).duration(n.duration).call(M);var D=w.selectAll(\".\"+n.cn.nodeCapture).data(g);D.enter().append(\"rect\").classed(n.cn.nodeCapture,!0).style(\"fill-opacity\",0),D.attr(\"x\",function(t){return t.zoneX}).attr(\"y\",function(t){return t.zoneY}).attr(\"width\",function(t){return t.zoneWidth}).attr(\"height\",function(t){return t.zoneHeight});var R=w.selectAll(\".\"+n.cn.nodeCentered).data(g);R.enter().append(\"g\").classed(n.cn.nodeCentered,!0).attr(\"transform\",S),R.transition().ease(n.ease).duration(n.duration).attr(\"transform\",S);var B=R.selectAll(\".\"+n.cn.nodeLabelGuide).data(g);B.enter().append(\"path\").classed(n.cn.nodeLabelGuide,!0).attr(\"id\",function(t){return t.uniqueNodeLabelPathId}).attr(\"d\",E).attr(\"transform\",C),B.transition().ease(n.ease).duration(n.duration).attr(\"d\",E).attr(\"transform\",C);var F=R.selectAll(\".\"+n.cn.nodeLabel).data(g);F.enter().append(\"text\").classed(n.cn.nodeLabel,!0).attr(\"transform\",L).style(\"user-select\",\"none\").style(\"cursor\",\"default\").style(\"fill\",\"black\"),F.style(\"text-shadow\",function(t){return t.horizontal?\"-1px 1px 1px #fff, 1px 1px 1px #fff, 1px -1px 1px #fff, -1px -1px 1px #fff\":\"none\"}).each(function(t){s.font(F,t.textFont)}),F.transition().ease(n.ease).duration(n.duration).attr(\"transform\",L);var N=F.selectAll(\".\"+n.cn.nodeLabelTextPath).data(g);N.enter().append(\"textPath\").classed(n.cn.nodeLabelTextPath,!0).attr(\"alignment-baseline\",\"middle\").attr(\"xlink:href\",function(t){return\"#\"+t.uniqueNodeLabelPathId}).attr(\"startOffset\",O).style(\"fill\",z),N.text(function(t){return t.horizontal||t.node.dy>5?t.node.label:\"\"}).attr(\"text-anchor\",function(t){return t.horizontal&&t.left?\"end\":\"start\"}),N.transition().ease(n.ease).duration(n.duration).attr(\"startOffset\",O).style(\"fill\",z)}},{\"../../components/color\":570,\"../../components/drawing\":595,\"../../lib\":696,\"../../lib/gup\":693,\"./constants\":1037,\"@plotly/d3-sankey\":46,d3:148,\"d3-force\":144,tinycolor2:514}],1042:[function(t,e,r){\"use strict\";var n=t(\"../../lib\");e.exports=function(t,e){for(var r=0;r<t.length;r++)t[r].i=r;n.mergeArray(e.text,t,\"tx\"),n.mergeArray(e.hovertext,t,\"htx\"),n.mergeArray(e.customdata,t,\"data\"),n.mergeArray(e.textposition,t,\"tp\"),e.textfont&&(n.mergeArray(e.textfont.size,t,\"ts\"),n.mergeArray(e.textfont.color,t,\"tc\"),n.mergeArray(e.textfont.family,t,\"tf\"));var i=e.marker;if(i){n.mergeArray(i.size,t,\"ms\"),n.mergeArray(i.opacity,t,\"mo\"),n.mergeArray(i.symbol,t,\"mx\"),n.mergeArray(i.color,t,\"mc\");var a=i.line;i.line&&(n.mergeArray(a.color,t,\"mlc\"),n.mergeArray(a.width,t,\"mlw\"));var o=i.gradient;o&&\"none\"!==o.type&&(n.mergeArray(o.type,t,\"mgt\"),n.mergeArray(o.color,t,\"mgc\"))}}},{\"../../lib\":696}],1043:[function(t,e,r){\"use strict\";var n=t(\"../../components/colorscale/attributes\"),i=t(\"../../components/colorbar/attributes\"),a=t(\"../../plots/font_attributes\"),o=t(\"../../components/drawing/attributes\").dash,s=t(\"../../components/drawing\"),l=(t(\"./constants\"),t(\"../../lib/extend\").extendFlat);e.exports={x:{valType:\"data_array\",editType:\"calc+clearAxisTypes\"},x0:{valType:\"any\",dflt:0,editType:\"calc+clearAxisTypes\"},dx:{valType:\"number\",dflt:1,editType:\"calc\"},y:{valType:\"data_array\",editType:\"calc+clearAxisTypes\"},y0:{valType:\"any\",dflt:0,editType:\"calc+clearAxisTypes\"},dy:{valType:\"number\",dflt:1,editType:\"calc\"},stackgroup:{valType:\"string\",dflt:\"\",editType:\"calc\"},orientation:{valType:\"enumerated\",values:[\"v\",\"h\"],editType:\"calc\"},groupnorm:{valType:\"enumerated\",values:[\"\",\"fraction\",\"percent\"],dflt:\"\",editType:\"calc\"},stackgaps:{valType:\"enumerated\",values:[\"infer zero\",\"interpolate\"],dflt:\"infer zero\",editType:\"calc\"},text:{valType:\"string\",dflt:\"\",arrayOk:!0,editType:\"calc\"},hovertext:{valType:\"string\",dflt:\"\",arrayOk:!0,editType:\"style\"},mode:{valType:\"flaglist\",flags:[\"lines\",\"markers\",\"text\"],extras:[\"none\"],editType:\"calc\"},hoveron:{valType:\"flaglist\",flags:[\"points\",\"fills\"],editType:\"style\"},line:{color:{valType:\"color\",editType:\"style\"},width:{valType:\"number\",min:0,dflt:2,editType:\"style\"},shape:{valType:\"enumerated\",values:[\"linear\",\"spline\",\"hv\",\"vh\",\"hvh\",\"vhv\"],dflt:\"linear\",editType:\"plot\"},smoothing:{valType:\"number\",min:0,max:1.3,dflt:1,editType:\"plot\"},dash:l({},o,{editType:\"style\"}),simplify:{valType:\"boolean\",dflt:!0,editType:\"plot\"},editType:\"plot\"},connectgaps:{valType:\"boolean\",dflt:!1,editType:\"calc\"},cliponaxis:{valType:\"boolean\",dflt:!0,editType:\"plot\"},fill:{valType:\"enumerated\",values:[\"none\",\"tozeroy\",\"tozerox\",\"tonexty\",\"tonextx\",\"toself\",\"tonext\"],editType:\"calc\"},fillcolor:{valType:\"color\",editType:\"style\"},marker:l({symbol:{valType:\"enumerated\",values:s.symbolList,dflt:\"circle\",arrayOk:!0,editType:\"style\"},opacity:{valType:\"number\",min:0,max:1,arrayOk:!0,editType:\"style\"},size:{valType:\"number\",min:0,dflt:6,arrayOk:!0,editType:\"calc\"},maxdisplayed:{valType:\"number\",min:0,dflt:0,editType:\"plot\"},sizeref:{valType:\"number\",dflt:1,editType:\"calc\"},sizemin:{valType:\"number\",min:0,dflt:0,editType:\"calc\"},sizemode:{valType:\"enumerated\",values:[\"diameter\",\"area\"],dflt:\"diameter\",editType:\"calc\"},colorbar:i,line:l({width:{valType:\"number\",min:0,arrayOk:!0,editType:\"style\"},editType:\"calc\"},n(\"marker.line\")),gradient:{type:{valType:\"enumerated\",values:[\"radial\",\"horizontal\",\"vertical\",\"none\"],arrayOk:!0,dflt:\"none\",editType:\"calc\"},color:{valType:\"color\",arrayOk:!0,editType:\"calc\"},editType:\"calc\"},editType:\"calc\"},n(\"marker\")),selected:{marker:{opacity:{valType:\"number\",min:0,max:1,editType:\"style\"},color:{valType:\"color\",editType:\"style\"},size:{valType:\"number\",min:0,editType:\"style\"},editType:\"style\"},textfont:{color:{valType:\"color\",editType:\"style\"},editType:\"style\"},editType:\"style\"},unselected:{marker:{opacity:{valType:\"number\",min:0,max:1,editType:\"style\"},color:{valType:\"color\",editType:\"style\"},size:{valType:\"number\",min:0,editType:\"style\"},editType:\"style\"},textfont:{color:{valType:\"color\",editType:\"style\"},editType:\"style\"},editType:\"style\"},textposition:{valType:\"enumerated\",values:[\"top left\",\"top center\",\"top right\",\"middle left\",\"middle center\",\"middle right\",\"bottom left\",\"bottom center\",\"bottom right\"],dflt:\"middle center\",arrayOk:!0,editType:\"calc\"},textfont:a({editType:\"calc\",colorEditType:\"style\",arrayOk:!0}),r:{valType:\"data_array\",editType:\"calc\"},t:{valType:\"data_array\",editType:\"calc\"}}},{\"../../components/colorbar/attributes\":571,\"../../components/colorscale/attributes\":577,\"../../components/drawing\":595,\"../../components/drawing/attributes\":594,\"../../lib/extend\":685,\"../../plots/font_attributes\":771,\"./constants\":1047}],1044:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../../lib\"),a=t(\"../../plots/cartesian/axes\"),o=t(\"../../constants/numerical\").BADNUM,s=t(\"./subtypes\"),l=t(\"./colorscale_calc\"),c=t(\"./arrays_to_calcdata\"),u=t(\"./calc_selection\");function f(t,e,r,n,i,o,l){var c=e._length,u=t._fullLayout,f=r._id,h=n._id,p=u._firstScatter[d(e)]===e.uid,v=(g(e,u,r,n)||{}).orientation,m=e.fill;r._minDtick=0,n._minDtick=0;var y={padded:!0},x={padded:!0};l&&(y.ppad=x.ppad=l);var b=c<2||i[0]!==i[c-1]||o[0]!==o[c-1];b&&(\"tozerox\"===m||\"tonextx\"===m&&(p||\"h\"===v))?y.tozero=!0:(e.error_y||{}).visible||\"tonexty\"!==m&&\"tozeroy\"!==m&&(s.hasMarkers(e)||s.hasText(e))||(y.padded=!1,y.ppad=0),b&&(\"tozeroy\"===m||\"tonexty\"===m&&(p||\"v\"===v))?x.tozero=!0:\"tonextx\"!==m&&\"tozerox\"!==m||(x.padded=!1),f&&(e._extremes[f]=a.findExtremes(r,i,y)),h&&(e._extremes[h]=a.findExtremes(n,o,x))}function h(t,e){if(s.hasMarkers(t)){var r,n=t.marker,o=1.6*(t.marker.sizeref||1);if(r=\"area\"===t.marker.sizemode?function(t){return Math.max(Math.sqrt((t||0)/o),3)}:function(t){return Math.max((t||0)/o,3)},i.isArrayOrTypedArray(n.size)){var l={type:\"linear\"};a.setConvert(l);for(var c=l.makeCalcdata(t.marker,\"size\"),u=new Array(e),f=0;f<e;f++)u[f]=r(c[f]);return u}return r(n.size)}}function p(t,e){var r=d(e),n=t._firstScatter;n[r]||(n[r]=e.uid)}function d(t){var e=t.stackgroup;return t.xaxis+t.yaxis+t.type+(e?\"-\"+e:\"\")}function g(t,e,r,n){var i=t.stackgroup;if(i){var a=e._scatterStackOpts[r._id+n._id][i],o=\"v\"===a.orientation?n:r;return\"linear\"===o.type||\"log\"===o.type?a:void 0}}e.exports={calc:function(t,e){var r,s,d,v,m,y,x=t._fullLayout,b=a.getFromId(t,e.xaxis||\"x\"),_=a.getFromId(t,e.yaxis||\"y\"),w=b.makeCalcdata(e,\"x\"),k=_.makeCalcdata(e,\"y\"),M=e._length,A=new Array(M),T=e.ids,S=g(e,x,b,_),E=!1;p(x,e);var C,L=\"x\",z=\"y\";for(S?(S.traceIndices.push(e.index),(r=\"v\"===S.orientation)?(z=\"s\",C=\"x\"):(L=\"s\",C=\"y\"),m=\"interpolate\"===S.stackgaps):f(t,e,b,_,w,k,h(e,M)),s=0;s<M;s++){var O=A[s]={},I=n(w[s]),P=n(k[s]);I&&P?(O[L]=w[s],O[z]=k[s]):S&&(r?I:P)?(O[C]=r?w[s]:k[s],O.gap=!0,m?(O.s=o,E=!0):O.s=0):O[L]=O[z]=o,T&&(O.id=String(T[s]))}if(c(A,e),l(e),u(A,e),S){for(s=0;s<A.length;)A[s][C]===o?A.splice(s,1):s++;if(i.sort(A,function(t,e){return t[C]-e[C]||t.i-e.i}),E){for(s=0;s<A.length-1&&A[s].gap;)s++;for((y=A[s].s)||(y=A[s].s=0),d=0;d<s;d++)A[d].s=y;for(v=A.length-1;v>s&&A[v].gap;)v--;for(y=A[v].s,d=A.length-1;d>v;d--)A[d].s=y;for(;s<v;)if(A[++s].gap){for(d=s+1;A[d].gap;)d++;for(var D=A[s-1][C],R=A[s-1].s,B=(A[d].s-R)/(A[d][C]-D);s<d;)A[s].s=R+(A[s][C]-D)*B,s++}}}return A},calcMarkerSize:h,calcAxisExpansion:f,setFirstScatter:p,getStackOpts:g}},{\"../../constants/numerical\":673,\"../../lib\":696,\"../../plots/cartesian/axes\":744,\"./arrays_to_calcdata\":1042,\"./calc_selection\":1045,\"./colorscale_calc\":1046,\"./subtypes\":1067,\"fast-isnumeric\":214}],1045:[function(t,e,r){\"use strict\";var n=t(\"../../lib\");e.exports=function(t,e){n.isArrayOrTypedArray(e.selectedpoints)&&n.tagSelected(t,e)}},{\"../../lib\":696}],1046:[function(t,e,r){\"use strict\";var n=t(\"../../components/colorscale/has_colorscale\"),i=t(\"../../components/colorscale/calc\"),a=t(\"./subtypes\");e.exports=function(t){a.hasLines(t)&&n(t,\"line\")&&i(t,t.line.color,\"line\",\"c\"),a.hasMarkers(t)&&(n(t,\"marker\")&&i(t,t.marker.color,\"marker\",\"c\"),n(t,\"marker.line\")&&i(t,t.marker.line.color,\"marker.line\",\"c\"))}},{\"../../components/colorscale/calc\":578,\"../../components/colorscale/has_colorscale\":584,\"./subtypes\":1067}],1047:[function(t,e,r){\"use strict\";e.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20}},{}],1048:[function(t,e,r){\"use strict\";var n=t(\"./calc\");function i(t,e,r,n,i,a,o){i[n]=!0;var s={i:null,gap:!0,s:0};if(s[o]=r,t.splice(e,0,s),e&&r===t[e-1][o]){var l=t[e-1];s.s=l.s,s.i=l.i,s.gap=l.gap}else a&&(s.s=function(t,e,r,n){var i=t[e-1],a=t[e+1];return a?i?i.s+(a.s-i.s)*(r-i[n])/(a[n]-i[n]):a.s:i.s}(t,e,r,o));e||(t[0].t=t[1].t,t[0].trace=t[1].trace,delete t[1].t,delete t[1].trace)}e.exports=function(t,e){var r=e.xaxis,a=e.yaxis,o=r._id+a._id,s=t._fullLayout._scatterStackOpts[o];if(s){var l,c,u,f,h,p,d,g,v,m,y,x,b,_,w,k=t.calcdata;for(var M in s){var A=(m=s[M]).traceIndices;if(A.length){for(y=\"interpolate\"===m.stackgaps,x=m.groupnorm,\"v\"===m.orientation?(b=\"x\",_=\"y\"):(b=\"y\",_=\"x\"),w=new Array(A.length),l=0;l<w.length;l++)w[l]=!1;p=k[A[0]];var T=new Array(p.length);for(l=0;l<p.length;l++)T[l]=p[l][b];for(l=1;l<A.length;l++){for(h=k[A[l]],c=u=0;c<h.length;c++){for(d=h[c][b];d>T[u]&&u<T.length;u++)i(h,c,T[u],l,w,y,b),c++;if(d!==T[u]){for(f=0;f<l;f++)i(k[A[f]],u,d,f,w,y,b);T.splice(u,0,d)}u++}for(;u<T.length;u++)i(h,c,T[u],l,w,y,b),c++}var S=T.length;for(c=0;c<p.length;c++){for(g=p[c][_]=p[c].s,l=1;l<A.length;l++)(h=k[A[l]])[0].trace._rawLength=h[0].trace._length,h[0].trace._length=S,g+=h[c].s,h[c][_]=g;if(x)for(v=(\"fraction\"===x?g:g/100)||1,l=0;l<A.length;l++){var E=k[A[l]][c];E[_]/=v,E.sNorm=E.s/v}}for(l=0;l<A.length;l++){var C=(h=k[A[l]])[0].trace,L=n.calcMarkerSize(C,C._rawLength),z=Array.isArray(L);if(L&&w[l]||z){var O=L;for(L=new Array(S),c=0;c<S;c++)L[c]=h[c].gap?0:z?O[h[c].i]:O}var I=new Array(S),P=new Array(S);for(c=0;c<S;c++)I[c]=h[c].x,P[c]=h[c].y;n.calcAxisExpansion(t,C,r,a,I,P,L),h[0].t.orientation=m.orientation}}}}}},{\"./calc\":1044}],1049:[function(t,e,r){\"use strict\";e.exports=function(t){for(var e=0;e<t.length;e++){var r=t[e];if(\"scatter\"===r.type){var n=r.fill;if(\"none\"!==n&&\"toself\"!==n&&(r.opacity=void 0,\"tonexty\"===n||\"tonextx\"===n))for(var i=e-1;i>=0;i--){var a=t[i];if(\"scatter\"===a.type&&a.xaxis===r.xaxis&&a.yaxis===r.yaxis){a.opacity=void 0;break}}}}}},{}],1050:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../registry\"),a=t(\"./attributes\"),o=t(\"./constants\"),s=t(\"./subtypes\"),l=t(\"./xy_defaults\"),c=t(\"./stack_defaults\"),u=t(\"./marker_defaults\"),f=t(\"./line_defaults\"),h=t(\"./line_shape_defaults\"),p=t(\"./text_defaults\"),d=t(\"./fillcolor_defaults\");e.exports=function(t,e,r,g){function v(r,i){return n.coerce(t,e,a,r,i)}var m=l(t,e,g,v);if(m||(e.visible=!1),e.visible){var y=c(t,e,g,v),x=!y&&m<o.PTS_LINESONLY?\"lines+markers\":\"lines\";v(\"text\"),v(\"hovertext\"),v(\"mode\",x),s.hasLines(e)&&(f(t,e,r,g,v),h(t,e,v),v(\"connectgaps\"),v(\"line.simplify\")),s.hasMarkers(e)&&u(t,e,r,g,v,{gradient:!0}),s.hasText(e)&&p(t,e,g,v);var b=[];(s.hasMarkers(e)||s.hasText(e))&&(v(\"cliponaxis\"),v(\"marker.maxdisplayed\"),b.push(\"points\")),v(\"fill\",y?y.fillDflt:\"none\"),\"none\"!==e.fill&&(d(t,e,r,v),s.hasLines(e)||h(t,e,v)),\"tonext\"!==e.fill&&\"toself\"!==e.fill||b.push(\"fills\"),v(\"hoveron\",b.join(\"+\")||\"points\");var _=i.getComponentMethod(\"errorbars\",\"supplyDefaults\");_(t,e,r,{axis:\"y\"}),_(t,e,r,{axis:\"x\",inherit:\"y\"}),n.coerceSelectionMarkerOpacity(e,v)}}},{\"../../lib\":696,\"../../registry\":827,\"./attributes\":1043,\"./constants\":1047,\"./fillcolor_defaults\":1052,\"./line_defaults\":1056,\"./line_shape_defaults\":1058,\"./marker_defaults\":1062,\"./stack_defaults\":1065,\"./subtypes\":1067,\"./text_defaults\":1068,\"./xy_defaults\":1069}],1051:[function(t,e,r){\"use strict\";var n=t(\"../../lib\");function i(t){return t||0===t}e.exports=function(t,e,r){var a=Array.isArray(r)?function(t){r.push(t)}:function(t){r.text=t},o=n.extractOption(t,e,\"htx\",\"hovertext\");if(i(o))return a(o);var s=n.extractOption(t,e,\"tx\",\"text\");return i(s)?a(s):void 0}},{\"../../lib\":696}],1052:[function(t,e,r){\"use strict\";var n=t(\"../../components/color\"),i=t(\"../../lib\").isArrayOrTypedArray;e.exports=function(t,e,r,a){var o=!1;if(e.marker){var s=e.marker.color,l=(e.marker.line||{}).color;s&&!i(s)?o=s:l&&!i(l)&&(o=l)}a(\"fillcolor\",n.addOpacity((e.line||{}).color||o||r,.5))}},{\"../../components/color\":570,\"../../lib\":696}],1053:[function(t,e,r){\"use strict\";var n=t(\"../../components/color\"),i=t(\"./subtypes\");e.exports=function(t,e){var r,a;if(\"lines\"===t.mode)return(r=t.line.color)&&n.opacity(r)?r:t.fillcolor;if(\"none\"===t.mode)return t.fill?t.fillcolor:\"\";var o=e.mcc||(t.marker||{}).color,s=e.mlcc||((t.marker||{}).line||{}).color;return(a=o&&n.opacity(o)?o:s&&n.opacity(s)&&(e.mlw||((t.marker||{}).line||{}).width)?s:\"\")?n.opacity(a)<.3?n.addOpacity(a,.3):a:(r=(t.line||{}).color)&&n.opacity(r)&&i.hasLines(t)&&t.line.width?r:t.fillcolor}},{\"../../components/color\":570,\"./subtypes\":1067}],1054:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../components/fx\"),a=t(\"../../registry\"),o=t(\"./get_trace_color\"),s=t(\"../../components/color\"),l=t(\"./fill_hover_text\");e.exports=function(t,e,r,c){var u=t.cd,f=u[0].trace,h=t.xa,p=t.ya,d=h.c2p(e),g=p.c2p(r),v=[d,g],m=f.hoveron||\"\",y=-1!==f.mode.indexOf(\"markers\")?3:.5;if(-1!==m.indexOf(\"points\")){var x=function(t){var e=Math.max(y,t.mrc||0),r=h.c2p(t.x)-d,n=p.c2p(t.y)-g;return Math.max(Math.sqrt(r*r+n*n)-e,1-y/e)},b=i.getDistanceFunction(c,function(t){var e=Math.max(3,t.mrc||0),r=1-1/e,n=Math.abs(h.c2p(t.x)-d);return n<e?r*n/e:n-e+r},function(t){var e=Math.max(3,t.mrc||0),r=1-1/e,n=Math.abs(p.c2p(t.y)-g);return n<e?r*n/e:n-e+r},x);if(i.getClosest(u,b,t),!1!==t.index){var _=u[t.index],w=h.c2p(_.x,!0),k=p.c2p(_.y,!0),M=_.mrc||1;t.index=_.i;var A=u[0].t.orientation,T=A&&(_.sNorm||_.s),S=\"h\"===A?T:_.x,E=\"v\"===A?T:_.y;return n.extendFlat(t,{color:o(f,_),x0:w-M,x1:w+M,xLabelVal:S,y0:k-M,y1:k+M,yLabelVal:E,spikeDistance:x(_)}),l(_,f,t),a.getComponentMethod(\"errorbars\",\"hoverInfo\")(_,f,t),[t]}}if(-1!==m.indexOf(\"fills\")&&f._polygons){var C,L,z,O,I,P,D,R,B,F=f._polygons,N=[],j=!1,V=1/0,U=-1/0,q=1/0,H=-1/0;for(C=0;C<F.length;C++)(z=F[C]).contains(v)&&(j=!j,N.push(z),q=Math.min(q,z.ymin),H=Math.max(H,z.ymax));if(j){var G=((q=Math.max(q,0))+(H=Math.min(H,p._length)))/2;for(C=0;C<N.length;C++)for(O=N[C].pts,L=1;L<O.length;L++)(R=O[L-1][1])>G!=(B=O[L][1])>=G&&(P=O[L-1][0],D=O[L][0],B-R&&(I=P+(D-P)*(G-R)/(B-R),V=Math.min(V,I),U=Math.max(U,I)));V=Math.max(V,0),U=Math.min(U,h._length);var W=s.defaultLine;return s.opacity(f.fillcolor)?W=f.fillcolor:s.opacity((f.line||{}).color)&&(W=f.line.color),n.extendFlat(t,{distance:t.maxHoverDistance,x0:V,x1:U,y0:G,y1:G,color:W}),delete t.index,f.text&&!Array.isArray(f.text)?t.text=String(f.text):t.text=f.name,[t]}}}},{\"../../components/color\":570,\"../../components/fx\":612,\"../../lib\":696,\"../../registry\":827,\"./fill_hover_text\":1051,\"./get_trace_color\":1053}],1055:[function(t,e,r){\"use strict\";var n={},i=t(\"./subtypes\");n.hasLines=i.hasLines,n.hasMarkers=i.hasMarkers,n.hasText=i.hasText,n.isBubble=i.isBubble,n.attributes=t(\"./attributes\"),n.supplyDefaults=t(\"./defaults\"),n.crossTraceDefaults=t(\"./cross_trace_defaults\"),n.calc=t(\"./calc\").calc,n.crossTraceCalc=t(\"./cross_trace_calc\"),n.arraysToCalcdata=t(\"./arrays_to_calcdata\"),n.plot=t(\"./plot\"),n.colorbar=t(\"./marker_colorbar\"),n.style=t(\"./style\").style,n.styleOnSelect=t(\"./style\").styleOnSelect,n.hoverPoints=t(\"./hover\"),n.selectPoints=t(\"./select\"),n.animatable=!0,n.moduleType=\"trace\",n.name=\"scatter\",n.basePlotModule=t(\"../../plots/cartesian\"),n.categories=[\"cartesian\",\"svg\",\"symbols\",\"errorBarsOK\",\"showLegend\",\"scatter-like\",\"zoomScale\"],n.meta={},e.exports=n},{\"../../plots/cartesian\":756,\"./arrays_to_calcdata\":1042,\"./attributes\":1043,\"./calc\":1044,\"./cross_trace_calc\":1048,\"./cross_trace_defaults\":1049,\"./defaults\":1050,\"./hover\":1054,\"./marker_colorbar\":1061,\"./plot\":1063,\"./select\":1064,\"./style\":1066,\"./subtypes\":1067}],1056:[function(t,e,r){\"use strict\";var n=t(\"../../lib\").isArrayOrTypedArray,i=t(\"../../components/colorscale/has_colorscale\"),a=t(\"../../components/colorscale/defaults\");e.exports=function(t,e,r,o,s,l){var c=(t.marker||{}).color;(s(\"line.color\",r),i(t,\"line\"))?a(t,e,o,s,{prefix:\"line.\",cLetter:\"c\",noScale:!0}):s(\"line.color\",!n(c)&&c||r);s(\"line.width\"),(l||{}).noDash||s(\"line.dash\")}},{\"../../components/colorscale/defaults\":580,\"../../components/colorscale/has_colorscale\":584,\"../../lib\":696}],1057:[function(t,e,r){\"use strict\";var n=t(\"../../constants/numerical\"),i=n.BADNUM,a=n.LOG_CLIP,o=a+.5,s=a-.5,l=t(\"../../lib\"),c=l.segmentsIntersect,u=l.constrain,f=t(\"./constants\");e.exports=function(t,e){var r,n,a,h,p,d,g,v,m,y,x,b,_,w,k,M,A,T,S=e.xaxis,E=e.yaxis,C=\"log\"===S.type,L=\"log\"===E.type,z=S._length,O=E._length,I=e.connectGaps,P=e.baseTolerance,D=e.shape,R=\"linear\"===D,B=[],F=f.minTolerance,N=new Array(t.length),j=0;function V(e){var r=t[e];if(!r)return!1;var n=S.c2p(r.x),a=E.c2p(r.y);if(n===i){if(C&&(n=S.c2p(r.x,!0)),n===i)return!1;L&&a===i&&(n*=Math.abs(S._m*O*(S._m>0?o:s)/(E._m*z*(E._m>0?o:s)))),n*=1e3}if(a===i){if(L&&(a=E.c2p(r.y,!0)),a===i)return!1;a*=1e3}return[n,a]}function U(t,e,r,n){var i=r-t,a=n-e,o=.5-t,s=.5-e,l=i*i+a*a,c=i*o+a*s;if(c>0&&c<l){var u=o*a-s*i;if(u*u<l)return!0}}function q(t,e){var r=t[0]/z,n=t[1]/O,i=Math.max(0,-r,r-1,-n,n-1);return i&&void 0!==A&&U(r,n,A,T)&&(i=0),i&&e&&U(r,n,e[0]/z,e[1]/O)&&(i=0),(1+f.toleranceGrowth*i)*P}function H(t,e){var r=t[0]-e[0],n=t[1]-e[1];return Math.sqrt(r*r+n*n)}var G,W,Y,X,Z,$,J,K=f.maxScreensAway,Q=-z*K,tt=z*(1+K),et=-O*K,rt=O*(1+K),nt=[[Q,et,tt,et],[tt,et,tt,rt],[tt,rt,Q,rt],[Q,rt,Q,et]];function it(t){if(t[0]<Q||t[0]>tt||t[1]<et||t[1]>rt)return[u(t[0],Q,tt),u(t[1],et,rt)]}function at(t,e){return t[0]===e[0]&&(t[0]===Q||t[0]===tt)||(t[1]===e[1]&&(t[1]===et||t[1]===rt)||void 0)}function ot(t,e,r){return function(n,i){var a=it(n),o=it(i),s=[];if(a&&o&&at(a,o))return s;a&&s.push(a),o&&s.push(o);var c=2*l.constrain((n[t]+i[t])/2,e,r)-((a||n)[t]+(o||i)[t]);c&&((a&&o?c>0==a[t]>o[t]?a:o:a||o)[t]+=c);return s}}function st(t){var e=t[0],r=t[1],n=e===N[j-1][0],i=r===N[j-1][1];if(!n||!i)if(j>1){var a=e===N[j-2][0],o=r===N[j-2][1];n&&(e===Q||e===tt)&&a?o?j--:N[j-1]=t:i&&(r===et||r===rt)&&o?a?j--:N[j-1]=t:N[j++]=t}else N[j++]=t}function lt(t){N[j-1][0]!==t[0]&&N[j-1][1]!==t[1]&&st([Y,X]),st(t),Z=null,Y=X=0}function ct(t){if(A=t[0]/z,T=t[1]/O,G=t[0]<Q?Q:t[0]>tt?tt:0,W=t[1]<et?et:t[1]>rt?rt:0,G||W){if(j)if(Z){var e=J(Z,t);e.length>1&&(lt(e[0]),N[j++]=e[1])}else $=J(N[j-1],t)[0],N[j++]=$;else N[j++]=[G||t[0],W||t[1]];var r=N[j-1];G&&W&&(r[0]!==G||r[1]!==W)?(Z&&(Y!==G&&X!==W?st(Y&&X?(n=Z,a=(i=t)[0]-n[0],o=(i[1]-n[1])/a,(n[1]*i[0]-i[1]*n[0])/a>0?[o>0?Q:tt,rt]:[o>0?tt:Q,et]):[Y||G,X||W]):Y&&X&&st([Y,X])),st([G,W])):Y-G&&X-W&&st([G||Y,W||X]),Z=t,Y=G,X=W}else Z&&lt(J(Z,t)[0]),N[j++]=t;var n,i,a,o}for(\"linear\"===D||\"spline\"===D?J=function(t,e){for(var r=[],n=0,i=0;i<4;i++){var a=nt[i],o=c(t[0],t[1],e[0],e[1],a[0],a[1],a[2],a[3]);o&&(!n||Math.abs(o.x-r[0][0])>1||Math.abs(o.y-r[0][1])>1)&&(o=[o.x,o.y],n&&H(o,t)<H(r[0],t)?r.unshift(o):r.push(o),n++)}return r}:\"hv\"===D||\"vh\"===D?J=function(t,e){var r=[],n=it(t),i=it(e);return n&&i&&at(n,i)?r:(n&&r.push(n),i&&r.push(i),r)}:\"hvh\"===D?J=ot(0,Q,tt):\"vhv\"===D&&(J=ot(1,et,rt)),r=0;r<t.length;r++)if(n=V(r)){for(j=0,Z=null,ct(n),r++;r<t.length;r++){if(!(h=V(r))){if(I)continue;break}if(R&&e.simplify){var ut=V(r+1);if(!((y=H(h,n))<q(h,ut)*F)){for(v=[(h[0]-n[0])/y,(h[1]-n[1])/y],p=n,x=y,b=w=k=0,g=!1,a=h,r++;r<t.length;r++){if(d=ut,ut=V(r+1),!d){if(I)continue;break}if(M=(m=[d[0]-n[0],d[1]-n[1]])[0]*v[1]-m[1]*v[0],w=Math.min(w,M),(k=Math.max(k,M))-w>q(d,ut))break;a=d,(_=m[0]*v[0]+m[1]*v[1])>x?(x=_,h=d,g=!1):_<b&&(b=_,p=d,g=!0)}if(g?(ct(h),a!==p&&ct(p)):(p!==n&&ct(p),a!==h&&ct(h)),ct(a),r>=t.length||!d)break;ct(d),n=d}}else ct(h)}Z&&st([Y||Z[0],X||Z[1]]),B.push(N.slice(0,j))}return B}},{\"../../constants/numerical\":673,\"../../lib\":696,\"./constants\":1047}],1058:[function(t,e,r){\"use strict\";e.exports=function(t,e,r){\"spline\"===r(\"line.shape\")&&r(\"line.smoothing\")}},{}],1059:[function(t,e,r){\"use strict\";var n={tonextx:1,tonexty:1,tonext:1};e.exports=function(t,e,r){var i,a,o,s,l,c={},u=!1,f=-1,h=0,p=-1;for(a=0;a<r.length;a++)(o=(i=r[a][0].trace).stackgroup||\"\")?o in c?l=c[o]:(l=c[o]=h,h++):i.fill in n&&p>=0?l=p:(l=p=h,h++),l<f&&(u=!0),i._groupIndex=f=l;var d=r.slice();u&&d.sort(function(t,e){var r=t[0].trace,n=e[0].trace;return r._groupIndex-n._groupIndex||r.index-n.index});var g={};for(a=0;a<d.length;a++)o=(i=d[a][0].trace).stackgroup||\"\",!0===i.visible?(i._nexttrace=null,i.fill in n&&(s=g[o],i._prevtrace=s||null,s&&(s._nexttrace=i)),i._ownfill=i.fill&&(\"tozero\"===i.fill.substr(0,6)||\"toself\"===i.fill||\"to\"===i.fill.substr(0,2)&&!i._prevtrace),g[o]=i):i._prevtrace=i._nexttrace=i._ownfill=null;return d}},{}],1060:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\");e.exports=function(t){var e=t.marker,r=e.sizeref||1,i=e.sizemin||0,a=\"area\"===e.sizemode?function(t){return Math.sqrt(t/r)}:function(t){return t/r};return function(t){var e=a(t/2);return n(e)&&e>0?Math.max(e,i):0}}},{\"fast-isnumeric\":214}],1061:[function(t,e,r){\"use strict\";e.exports={container:\"marker\",min:\"cmin\",max:\"cmax\"}},{}],1062:[function(t,e,r){\"use strict\";var n=t(\"../../components/color\"),i=t(\"../../components/colorscale/has_colorscale\"),a=t(\"../../components/colorscale/defaults\"),o=t(\"./subtypes\");e.exports=function(t,e,r,s,l,c){var u=o.isBubble(t),f=(t.line||{}).color;(c=c||{},f&&(r=f),l(\"marker.symbol\"),l(\"marker.opacity\",u?.7:1),l(\"marker.size\"),l(\"marker.color\",r),i(t,\"marker\")&&a(t,e,s,l,{prefix:\"marker.\",cLetter:\"c\"}),c.noSelect||(l(\"selected.marker.color\"),l(\"unselected.marker.color\"),l(\"selected.marker.size\"),l(\"unselected.marker.size\")),c.noLine||(l(\"marker.line.color\",f&&!Array.isArray(f)&&e.marker.color!==f?f:u?n.background:n.defaultLine),i(t,\"marker.line\")&&a(t,e,s,l,{prefix:\"marker.line.\",cLetter:\"c\"}),l(\"marker.line.width\",u?1:0)),u&&(l(\"marker.sizeref\"),l(\"marker.sizemin\"),l(\"marker.sizemode\")),c.gradient)&&(\"none\"!==l(\"marker.gradient.type\")&&l(\"marker.gradient.color\"))}},{\"../../components/color\":570,\"../../components/colorscale/defaults\":580,\"../../components/colorscale/has_colorscale\":584,\"./subtypes\":1067}],1063:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../../registry\"),a=t(\"../../lib\"),o=a.ensureSingle,s=a.identity,l=t(\"../../components/drawing\"),c=t(\"./subtypes\"),u=t(\"./line_points\"),f=t(\"./link_traces\"),h=t(\"../../lib/polygon\").tester;function p(t,e,r,f,p,d,g){var v;!function(t,e,r,i,o){var s=r.xaxis,l=r.yaxis,u=n.extent(a.simpleMap(s.range,s.r2c)),f=n.extent(a.simpleMap(l.range,l.r2c)),h=i[0].trace;if(!c.hasMarkers(h))return;var p=h.marker.maxdisplayed;if(0===p)return;var d=i.filter(function(t){return t.x>=u[0]&&t.x<=u[1]&&t.y>=f[0]&&t.y<=f[1]}),g=Math.ceil(d.length/p),v=0;o.forEach(function(t,r){var n=t[0].trace;c.hasMarkers(n)&&n.marker.maxdisplayed>0&&r<e&&v++});var m=Math.round(v*g/3+Math.floor(v/3)*g/7.1);i.forEach(function(t){delete t.vis}),d.forEach(function(t,e){0===Math.round((e+m)%g)&&(t.vis=!0)})}(0,e,r,f,p);var m=!!g&&g.duration>0;function y(t){return m?t.transition():t}var x=r.xaxis,b=r.yaxis,_=f[0].trace,w=_.line,k=n.select(d),M=o(k,\"g\",\"errorbars\"),A=o(k,\"g\",\"lines\"),T=o(k,\"g\",\"points\"),S=o(k,\"g\",\"text\");if(i.getComponentMethod(\"errorbars\",\"plot\")(M,r,g),!0===_.visible){var E,C;y(k).style(\"opacity\",_.opacity);var L=_.fill.charAt(_.fill.length-1);\"x\"!==L&&\"y\"!==L&&(L=\"\"),r.isRangePlot||(f[0].node3=k);var z=\"\",O=[],I=_._prevtrace;I&&(z=I._prevRevpath||\"\",C=I._nextFill,O=I._polygons);var P,D,R,B,F,N,j,V,U,q=\"\",H=\"\",G=[],W=a.noop;if(E=_._ownFill,c.hasLines(_)||\"none\"!==_.fill){for(C&&C.datum(f),-1!==[\"hv\",\"vh\",\"hvh\",\"vhv\"].indexOf(w.shape)?(R=l.steps(w.shape),B=l.steps(w.shape.split(\"\").reverse().join(\"\"))):R=B=\"spline\"===w.shape?function(t){var e=t[t.length-1];return t.length>1&&t[0][0]===e[0]&&t[0][1]===e[1]?l.smoothclosed(t.slice(1),w.smoothing):l.smoothopen(t,w.smoothing)}:function(t){return\"M\"+t.join(\"L\")},F=function(t){return B(t.reverse())},G=u(f,{xaxis:x,yaxis:b,connectGaps:_.connectgaps,baseTolerance:Math.max(w.width||1,3)/4,shape:w.shape,simplify:w.simplify}),U=_._polygons=new Array(G.length),v=0;v<G.length;v++)_._polygons[v]=h(G[v]);G.length&&(N=G[0][0],V=(j=G[G.length-1])[j.length-1]),W=function(t){return function(e){if(P=R(e),D=F(e),q?L?(q+=\"L\"+P.substr(1),H=D+\"L\"+H.substr(1)):(q+=\"Z\"+P,H=D+\"Z\"+H):(q=P,H=D),c.hasLines(_)&&e.length>1){var r=n.select(this);if(r.datum(f),t)y(r.style(\"opacity\",0).attr(\"d\",P).call(l.lineGroupStyle)).style(\"opacity\",1);else{var i=y(r);i.attr(\"d\",P),l.singleLineStyle(f,i)}}}}}var Y=A.selectAll(\".js-line\").data(G);y(Y.exit()).style(\"opacity\",0).remove(),Y.each(W(!1)),Y.enter().append(\"path\").classed(\"js-line\",!0).style(\"vector-effect\",\"non-scaling-stroke\").call(l.lineGroupStyle).each(W(!0)),l.setClipUrl(Y,r.layerClipId),G.length?(E?(E.datum(f),N&&V&&(L?(\"y\"===L?N[1]=V[1]=b.c2p(0,!0):\"x\"===L&&(N[0]=V[0]=x.c2p(0,!0)),y(E).attr(\"d\",\"M\"+V+\"L\"+N+\"L\"+q.substr(1)).call(l.singleFillStyle)):y(E).attr(\"d\",q+\"Z\").call(l.singleFillStyle))):C&&(\"tonext\"===_.fill.substr(0,6)&&q&&z?(\"tonext\"===_.fill?y(C).attr(\"d\",q+\"Z\"+z+\"Z\").call(l.singleFillStyle):y(C).attr(\"d\",q+\"L\"+z.substr(1)+\"Z\").call(l.singleFillStyle),_._polygons=_._polygons.concat(O)):(Z(C),_._polygons=null)),_._prevRevpath=H,_._prevPolygons=U):(E?Z(E):C&&Z(C),_._polygons=_._prevRevpath=_._prevPolygons=null),T.datum(f),S.datum(f),function(e,i,a){var o,u=a[0].trace,f=c.hasMarkers(u),h=c.hasText(u),p=tt(u),d=et,g=et;if(f||h){var v=s,_=u.stackgroup,w=_&&\"infer zero\"===t._fullLayout._scatterStackOpts[x._id+b._id][_].stackgaps;u.marker.maxdisplayed||u._needsCull?v=w?J:$:_&&!w&&(v=K),f&&(d=v),h&&(g=v)}var k,M=(o=e.selectAll(\"path.point\").data(d,p)).enter().append(\"path\").classed(\"point\",!0);m&&M.call(l.pointStyle,u,t).call(l.translatePoints,x,b).style(\"opacity\",0).transition().style(\"opacity\",1),o.order(),f&&(k=l.makePointStyleFns(u)),o.each(function(e){var i=n.select(this),a=y(i);l.translatePoint(e,a,x,b)?(l.singlePointStyle(e,a,u,k,t),r.layerClipId&&l.hideOutsideRangePoint(e,a,x,b,u.xcalendar,u.ycalendar),u.customdata&&i.classed(\"plotly-customdata\",null!==e.data&&void 0!==e.data)):a.remove()}),m?o.exit().transition().style(\"opacity\",0).remove():o.exit().remove(),(o=i.selectAll(\"g\").data(g,p)).enter().append(\"g\").classed(\"textpoint\",!0).append(\"text\"),o.order(),o.each(function(t){var e=n.select(this),i=y(e.select(\"text\"));l.translatePoint(t,i,x,b)?r.layerClipId&&l.hideOutsideRangePoint(t,e,x,b,u.xcalendar,u.ycalendar):e.remove()}),o.selectAll(\"text\").call(l.textPointStyle,u,t).each(function(t){var e=x.c2p(t.x),r=b.c2p(t.y);n.select(this).selectAll(\"tspan.line\").each(function(){y(n.select(this)).attr({x:e,y:r})})}),o.exit().remove()}(T,S,f);var X=!1===_.cliponaxis?null:r.layerClipId;l.setClipUrl(T,X),l.setClipUrl(S,X)}function Z(t){y(t).attr(\"d\",\"M0,0Z\")}function $(t){return t.filter(function(t){return!t.gap&&t.vis})}function J(t){return t.filter(function(t){return t.vis})}function K(t){return t.filter(function(t){return!t.gap})}function Q(t){return t.id}function tt(t){if(t.ids)return Q}function et(){return!1}}e.exports=function(t,e,r,i,a,c){var u,h,d=!a,g=!!a&&a.duration>0,v=f(t,e,r);((u=i.selectAll(\"g.trace\").data(v,function(t){return t[0].trace.uid})).enter().append(\"g\").attr(\"class\",function(t){return\"trace scatter trace\"+t[0].trace.uid}).style(\"stroke-miterlimit\",2),u.order(),function(t,e,r){e.each(function(t){var e=o(n.select(this),\"g\",\"fills\");l.setClipUrl(e,r.layerClipId);var i=t[0].trace,a=[];i._ownfill&&a.push(\"_ownFill\"),i._nexttrace&&a.push(\"_nextFill\");var c=e.selectAll(\"g\").data(a,s);c.enter().append(\"g\"),c.exit().each(function(t){i[t]=null}).remove(),c.order().each(function(t){i[t]=o(n.select(this),\"path\",\"js-fill\")})})}(0,u,e),g)?(c&&(h=c()),n.transition().duration(a.duration).ease(a.easing).each(\"end\",function(){h&&h()}).each(\"interrupt\",function(){h&&h()}).each(function(){i.selectAll(\"g.trace\").each(function(r,n){p(t,n,e,r,v,this,a)})})):u.each(function(r,n){p(t,n,e,r,v,this,a)});d&&u.exit().remove(),i.selectAll(\"path:not([d])\").remove()}},{\"../../components/drawing\":595,\"../../lib\":696,\"../../lib/polygon\":708,\"../../registry\":827,\"./line_points\":1057,\"./link_traces\":1059,\"./subtypes\":1067,d3:148}],1064:[function(t,e,r){\"use strict\";var n=t(\"./subtypes\");e.exports=function(t,e){var r,i,a,o,s=t.cd,l=t.xaxis,c=t.yaxis,u=[],f=s[0].trace;if(!n.hasMarkers(f)&&!n.hasText(f))return[];if(!1===e)for(r=0;r<s.length;r++)s[r].selected=0;else for(r=0;r<s.length;r++)i=s[r],a=l.c2p(i.x),o=c.c2p(i.y),null!==i.i&&e.contains([a,o],!1,r,t)?(u.push({pointNumber:i.i,x:l.c2d(i.x),y:c.c2d(i.y)}),i.selected=1):i.selected=0;return u}},{\"./subtypes\":1067}],1065:[function(t,e,r){\"use strict\";var n=[\"orientation\",\"groupnorm\",\"stackgaps\"];e.exports=function(t,e,r,i){var a=r._scatterStackOpts,o=i(\"stackgroup\");if(o){var s=e.xaxis+e.yaxis,l=a[s];l||(l=a[s]={});var c=l[o],u=!1;c?c.traces.push(e):(c=l[o]={traceIndices:[],traces:[e]},u=!0);for(var f={orientation:e.x&&!e.y?\"h\":\"v\"},h=0;h<n.length;h++){var p=n[h],d=p+\"Found\";if(!c[d]){var g=void 0!==t[p],v=\"orientation\"===p;if((g||u)&&(c[p]=i(p,f[p]),v&&(c.fillDflt=\"h\"===c[p]?\"tonextx\":\"tonexty\"),g&&(c[d]=!0,!u&&(delete c.traces[0][p],v))))for(var m=0;m<c.traces.length-1;m++){var y=c.traces[m];y._input.fill!==y.fill&&(y.fill=c.fillDflt)}}}return c}}},{}],1066:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../../components/drawing\"),a=t(\"../../registry\");function o(t,e,r){i.pointStyle(t.selectAll(\"path.point\"),e,r)}function s(t,e,r){i.textPointStyle(t.selectAll(\"text\"),e,r)}e.exports={style:function(t,e){var r=e?e[0].node3:n.select(t).selectAll(\"g.trace.scatter\");r.style(\"opacity\",function(t){return t[0].trace.opacity}),r.selectAll(\"g.points\").each(function(e){o(n.select(this),e.trace||e[0].trace,t)}),r.selectAll(\"g.text\").each(function(e){s(n.select(this),e.trace||e[0].trace,t)}),r.selectAll(\"g.trace path.js-line\").call(i.lineGroupStyle),r.selectAll(\"g.trace path.js-fill\").call(i.fillGroupStyle),a.getComponentMethod(\"errorbars\",\"style\")(r)},stylePoints:o,styleText:s,styleOnSelect:function(t,e){var r=e[0].node3,n=e[0].trace;n.selectedpoints?(i.selectedPointStyle(r.selectAll(\"path.point\"),n),i.selectedTextStyle(r.selectAll(\"text\"),n)):(o(r,n,t),s(r,n,t))}}},{\"../../components/drawing\":595,\"../../registry\":827,d3:148}],1067:[function(t,e,r){\"use strict\";var n=t(\"../../lib\");e.exports={hasLines:function(t){return t.visible&&t.mode&&-1!==t.mode.indexOf(\"lines\")},hasMarkers:function(t){return t.visible&&(t.mode&&-1!==t.mode.indexOf(\"markers\")||\"splom\"===t.type)},hasText:function(t){return t.visible&&t.mode&&-1!==t.mode.indexOf(\"text\")},isBubble:function(t){return n.isPlainObject(t.marker)&&n.isArrayOrTypedArray(t.marker.size)}}},{\"../../lib\":696}],1068:[function(t,e,r){\"use strict\";var n=t(\"../../lib\");e.exports=function(t,e,r,i,a){a=a||{},i(\"textposition\"),n.coerceFont(i,\"textfont\",r.font),a.noSelect||(i(\"selected.textfont.color\"),i(\"unselected.textfont.color\"))}},{\"../../lib\":696}],1069:[function(t,e,r){\"use strict\";var n=t(\"../../registry\");e.exports=function(t,e,r,i){var a,o=i(\"x\"),s=i(\"y\");if(n.getComponentMethod(\"calendars\",\"handleTraceDefaults\")(t,e,[\"x\",\"y\"],r),o)s?a=Math.min(o.length,s.length):(a=o.length,i(\"y0\"),i(\"dy\"));else{if(!s)return 0;a=e.y.length,i(\"x0\"),i(\"dx\")}return e._length=a,a}},{\"../../registry\":827}],1070:[function(t,e,r){\"use strict\";var n=t(\"../scatter/attributes\"),i=t(\"../../components/colorscale/attributes\"),a=t(\"../../plots/attributes\"),o=t(\"../../constants/gl3d_dashes\"),s=t(\"../../constants/gl3d_markers\"),l=t(\"../../lib/extend\").extendFlat,c=t(\"../../plot_api/edit_types\").overrideAll,u=n.line,f=n.marker,h=f.line,p=l({width:u.width,dash:{valType:\"enumerated\",values:Object.keys(o),dflt:\"solid\"}},i(\"line\"));delete p.showscale,delete p.colorbar;var d=e.exports=c({x:n.x,y:n.y,z:{valType:\"data_array\"},text:l({},n.text,{}),hovertext:l({},n.hovertext,{}),mode:l({},n.mode,{dflt:\"lines+markers\"}),surfaceaxis:{valType:\"enumerated\",values:[-1,0,1,2],dflt:-1},surfacecolor:{valType:\"color\"},projection:{x:{show:{valType:\"boolean\",dflt:!1},opacity:{valType:\"number\",min:0,max:1,dflt:1},scale:{valType:\"number\",min:0,max:10,dflt:2/3}},y:{show:{valType:\"boolean\",dflt:!1},opacity:{valType:\"number\",min:0,max:1,dflt:1},scale:{valType:\"number\",min:0,max:10,dflt:2/3}},z:{show:{valType:\"boolean\",dflt:!1},opacity:{valType:\"number\",min:0,max:1,dflt:1},scale:{valType:\"number\",min:0,max:10,dflt:2/3}}},connectgaps:n.connectgaps,line:p,marker:l({symbol:{valType:\"enumerated\",values:Object.keys(s),dflt:\"circle\",arrayOk:!0},size:l({},f.size,{dflt:8}),sizeref:f.sizeref,sizemin:f.sizemin,sizemode:f.sizemode,opacity:l({},f.opacity,{arrayOk:!1}),colorbar:f.colorbar,line:l({width:l({},h.width,{arrayOk:!1})},i(\"marker.line\"))},i(\"marker\")),textposition:l({},n.textposition,{dflt:\"top center\",arrayOk:!1}),textfont:{color:n.textfont.color,size:n.textfont.size,family:l({},n.textfont.family,{arrayOk:!1})},hoverinfo:l({},a.hoverinfo)},\"calc\",\"nested\");d.x.editType=d.y.editType=d.z.editType=\"calc+clearAxisTypes\"},{\"../../components/colorscale/attributes\":577,\"../../constants/gl3d_dashes\":670,\"../../constants/gl3d_markers\":671,\"../../lib/extend\":685,\"../../plot_api/edit_types\":727,\"../../plots/attributes\":741,\"../scatter/attributes\":1043}],1071:[function(t,e,r){\"use strict\";var n=t(\"../scatter/arrays_to_calcdata\"),i=t(\"../scatter/colorscale_calc\");e.exports=function(t,e){var r=[{x:!1,y:!1,trace:e,t:{}}];return n(r,e),i(e),r}},{\"../scatter/arrays_to_calcdata\":1042,\"../scatter/colorscale_calc\":1046}],1072:[function(t,e,r){\"use strict\";var n=t(\"../../registry\");function i(t,e,r,i){if(!e||!e.visible)return null;for(var a=n.getComponentMethod(\"errorbars\",\"makeComputeError\")(e),o=new Array(t.length),s=0;s<t.length;s++){var l=a(+t[s],s);if(\"log\"===i.type){var c=i.c2l(t[s]),u=t[s]-l[0],f=t[s]+l[1];if(o[s]=[(i.c2l(u,!0)-c)*r,(i.c2l(f,!0)-c)*r],u>0){var h=i.c2l(u);i._lowerLogErrorBound||(i._lowerLogErrorBound=h),i._lowerErrorBound=Math.min(i._lowerLogErrorBound,h)}}else o[s]=[-l[0]*r,l[1]*r]}return o}e.exports=function(t,e,r){var n=[i(t.x,t.error_x,e[0],r.xaxis),i(t.y,t.error_y,e[1],r.yaxis),i(t.z,t.error_z,e[2],r.zaxis)],a=function(t){for(var e=0;e<t.length;e++)if(t[e])return t[e].length;return 0}(n);if(0===a)return null;for(var o=new Array(a),s=0;s<a;s++){for(var l=[[0,0,0],[0,0,0]],c=0;c<3;c++)if(n[c])for(var u=0;u<2;u++)l[u][c]=n[c][s][u];o[s]=l}return o}},{\"../../registry\":827}],1073:[function(t,e,r){\"use strict\";var n=t(\"gl-line3d\"),i=t(\"gl-scatter3d\"),a=t(\"gl-error3d\"),o=t(\"gl-mesh3d\"),s=t(\"delaunay-triangulate\"),l=t(\"../../lib\"),c=t(\"../../lib/str2rgbarray\"),u=t(\"../../lib/gl_format_color\").formatColor,f=t(\"../scatter/make_bubble_size_func\"),h=t(\"../../constants/gl3d_dashes\"),p=t(\"../../constants/gl3d_markers\"),d=t(\"./calc_errors\");function g(t,e){this.scene=t,this.uid=e,this.linePlot=null,this.scatterPlot=null,this.errorBars=null,this.textMarkers=null,this.delaunayMesh=null,this.color=null,this.mode=\"\",this.dataPoints=[],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.textLabels=null,this.data=null}var v=g.prototype;function m(t,e){return e(4*t)}function y(t){return p[t]}function x(t,e,r,n,i){var a=null;if(l.isArrayOrTypedArray(t)){a=[];for(var o=0;o<e;o++)void 0===t[o]?a[o]=n:a[o]=r(t[o],i)}else a=r(t,l.identity);return a}function b(t,e){var r,n,i,a,o,s,h,p,g=[],v=t.fullSceneLayout,b=t.dataScale,_=v.xaxis,w=v.yaxis,k=v.zaxis,M=e.marker,A=e.line,T=e.x||[],S=e.y||[],E=e.z||[],C=T.length,L=e.xcalendar,z=e.ycalendar,O=e.zcalendar;for(n=0;n<C;n++)i=_.d2l(T[n],0,L)*b[0],a=w.d2l(S[n],0,z)*b[1],o=k.d2l(E[n],0,O)*b[2],g[n]=[i,a,o];if(Array.isArray(e.text))s=e.text;else if(void 0!==e.text)for(s=new Array(C),n=0;n<C;n++)s[n]=e.text;if(r={position:g,mode:e.mode,text:s},\"line\"in e&&(r.lineColor=u(A,1,C),r.lineWidth=A.width,r.lineDashes=A.dash),\"marker\"in e){var I=f(e);r.scatterColor=u(M,1,C),r.scatterSize=x(M.size,C,m,20,I),r.scatterMarker=x(M.symbol,C,y,\"\\u25cf\"),r.scatterLineWidth=M.line.width,r.scatterLineColor=u(M.line,1,C),r.scatterAngle=0}\"textposition\"in e&&(r.textOffset=(h=e.textposition,p=[0,0],Array.isArray(h)?[0,-1]:(h.indexOf(\"bottom\")>=0&&(p[1]+=1),h.indexOf(\"top\")>=0&&(p[1]-=1),h.indexOf(\"left\")>=0&&(p[0]-=1),h.indexOf(\"right\")>=0&&(p[0]+=1),p)),r.textColor=u(e.textfont,1,C),r.textSize=x(e.textfont.size,C,l.identity,12),r.textFont=e.textfont.family,r.textAngle=0);var P=[\"x\",\"y\",\"z\"];for(r.project=[!1,!1,!1],r.projectScale=[1,1,1],r.projectOpacity=[1,1,1],n=0;n<3;++n){var D=e.projection[P[n]];(r.project[n]=D.show)&&(r.projectOpacity[n]=D.opacity,r.projectScale[n]=D.scale)}r.errorBounds=d(e,b,v);var R=function(t){for(var e=[0,0,0],r=[[0,0,0],[0,0,0],[0,0,0]],n=[1,1,1],i=0;i<3;i++){var a=t[i];a&&!1!==a.copy_zstyle&&!1!==t[2].visible&&(a=t[2]),a&&a.visible&&(e[i]=a.width/2,r[i]=c(a.color),n[i]=a.thickness)}return{capSize:e,color:r,lineWidth:n}}([e.error_x,e.error_y,e.error_z]);return r.errorColor=R.color,r.errorLineWidth=R.lineWidth,r.errorCapSize=R.capSize,r.delaunayAxis=e.surfaceaxis,r.delaunayColor=c(e.surfacecolor),r}function _(t){if(Array.isArray(t)){var e=t[0];return Array.isArray(e)&&(t=e),\"rgb(\"+t.slice(0,3).map(function(t){return Math.round(255*t)})+\")\"}return null}v.handlePick=function(t){if(t.object&&(t.object===this.linePlot||t.object===this.delaunayMesh||t.object===this.textMarkers||t.object===this.scatterPlot)){var e=t.index=t.data.index;return t.object.highlight&&t.object.highlight(null),this.scatterPlot&&(t.object=this.scatterPlot,this.scatterPlot.highlight(t.data)),t.textLabel=\"\",this.textLabels&&(Array.isArray(this.textLabels)?(this.textLabels[e]||0===this.textLabels[e])&&(t.textLabel=this.textLabels[e]):t.textLabel=this.textLabels),t.traceCoordinate=[this.data.x[e],this.data.y[e],this.data.z[e]],!0}},v.update=function(t){var e,r,l,c,u=this.scene.glplot.gl,f=h.solid;this.data=t;var p=b(this.scene,t);\"mode\"in p&&(this.mode=p.mode),\"lineDashes\"in p&&p.lineDashes in h&&(f=h[p.lineDashes]),this.color=_(p.scatterColor)||_(p.lineColor),this.dataPoints=p.position,e={gl:u,position:p.position,color:p.lineColor,lineWidth:p.lineWidth||1,dashes:f[0],dashScale:f[1],opacity:t.opacity,connectGaps:t.connectgaps},-1!==this.mode.indexOf(\"lines\")?this.linePlot?this.linePlot.update(e):(this.linePlot=n(e),this.linePlot._trace=this,this.scene.glplot.add(this.linePlot)):this.linePlot&&(this.scene.glplot.remove(this.linePlot),this.linePlot.dispose(),this.linePlot=null);var d=t.opacity;if(t.marker&&t.marker.opacity&&(d*=t.marker.opacity),r={gl:u,position:p.position,color:p.scatterColor,size:p.scatterSize,glyph:p.scatterMarker,opacity:d,orthographic:!0,lineWidth:p.scatterLineWidth,lineColor:p.scatterLineColor,project:p.project,projectScale:p.projectScale,projectOpacity:p.projectOpacity},-1!==this.mode.indexOf(\"markers\")?this.scatterPlot?this.scatterPlot.update(r):(this.scatterPlot=i(r),this.scatterPlot._trace=this,this.scatterPlot.highlightScale=1,this.scene.glplot.add(this.scatterPlot)):this.scatterPlot&&(this.scene.glplot.remove(this.scatterPlot),this.scatterPlot.dispose(),this.scatterPlot=null),c={gl:u,position:p.position,glyph:p.text,color:p.textColor,size:p.textSize,angle:p.textAngle,alignment:p.textOffset,font:p.textFont,orthographic:!0,lineWidth:0,project:!1,opacity:t.opacity},this.textLabels=t.hovertext||t.text,-1!==this.mode.indexOf(\"text\")?this.textMarkers?this.textMarkers.update(c):(this.textMarkers=i(c),this.textMarkers._trace=this,this.textMarkers.highlightScale=1,this.scene.glplot.add(this.textMarkers)):this.textMarkers&&(this.scene.glplot.remove(this.textMarkers),this.textMarkers.dispose(),this.textMarkers=null),l={gl:u,position:p.position,color:p.errorColor,error:p.errorBounds,lineWidth:p.errorLineWidth,capSize:p.errorCapSize,opacity:t.opacity},this.errorBars?p.errorBounds?this.errorBars.update(l):(this.scene.glplot.remove(this.errorBars),this.errorBars.dispose(),this.errorBars=null):p.errorBounds&&(this.errorBars=a(l),this.errorBars._trace=this,this.scene.glplot.add(this.errorBars)),p.delaunayAxis>=0){var g=function(t,e,r){var n,i=(r+1)%3,a=(r+2)%3,o=[],l=[];for(n=0;n<t.length;++n){var c=t[n];!isNaN(c[i])&&isFinite(c[i])&&!isNaN(c[a])&&isFinite(c[a])&&(o.push([c[i],c[a]]),l.push(n))}var u=s(o);for(n=0;n<u.length;++n)for(var f=u[n],h=0;h<f.length;++h)f[h]=l[f[h]];return{positions:t,cells:u,meshColor:e}}(p.position,p.delaunayColor,p.delaunayAxis);g.opacity=t.opacity,this.delaunayMesh?this.delaunayMesh.update(g):(g.gl=u,this.delaunayMesh=o(g),this.delaunayMesh._trace=this,this.scene.glplot.add(this.delaunayMesh))}else this.delaunayMesh&&(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose(),this.delaunayMesh=null)},v.dispose=function(){this.linePlot&&(this.scene.glplot.remove(this.linePlot),this.linePlot.dispose()),this.scatterPlot&&(this.scene.glplot.remove(this.scatterPlot),this.scatterPlot.dispose()),this.errorBars&&(this.scene.glplot.remove(this.errorBars),this.errorBars.dispose()),this.textMarkers&&(this.scene.glplot.remove(this.textMarkers),this.textMarkers.dispose()),this.delaunayMesh&&(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose())},e.exports=function(t,e){var r=new g(t,e.uid);return r.update(e),r}},{\"../../constants/gl3d_dashes\":670,\"../../constants/gl3d_markers\":671,\"../../lib\":696,\"../../lib/gl_format_color\":692,\"../../lib/str2rgbarray\":719,\"../scatter/make_bubble_size_func\":1060,\"./calc_errors\":1072,\"delaunay-triangulate\":150,\"gl-error3d\":237,\"gl-line3d\":245,\"gl-mesh3d\":268,\"gl-scatter3d\":284}],1074:[function(t,e,r){\"use strict\";var n=t(\"../../registry\"),i=t(\"../../lib\"),a=t(\"../scatter/subtypes\"),o=t(\"../scatter/marker_defaults\"),s=t(\"../scatter/line_defaults\"),l=t(\"../scatter/text_defaults\"),c=t(\"./attributes\");e.exports=function(t,e,r,u){function f(r,n){return i.coerce(t,e,c,r,n)}if(function(t,e,r,i){var a=0,o=r(\"x\"),s=r(\"y\"),l=r(\"z\");n.getComponentMethod(\"calendars\",\"handleTraceDefaults\")(t,e,[\"x\",\"y\",\"z\"],i),o&&s&&l&&(a=Math.min(o.length,s.length,l.length),e._length=e._xlength=e._ylength=e._zlength=a);return a}(t,e,f,u)){f(\"text\"),f(\"hovertext\"),f(\"mode\"),a.hasLines(e)&&(f(\"connectgaps\"),s(t,e,r,u,f)),a.hasMarkers(e)&&o(t,e,r,u,f,{noSelect:!0}),a.hasText(e)&&l(t,e,u,f,{noSelect:!0});var h=(e.line||{}).color,p=(e.marker||{}).color;f(\"surfaceaxis\")>=0&&f(\"surfacecolor\",h||p);for(var d=[\"x\",\"y\",\"z\"],g=0;g<3;++g){var v=\"projection.\"+d[g];f(v+\".show\")&&(f(v+\".opacity\"),f(v+\".scale\"))}var m=n.getComponentMethod(\"errorbars\",\"supplyDefaults\");m(t,e,r,{axis:\"z\"}),m(t,e,r,{axis:\"y\",inherit:\"z\"}),m(t,e,r,{axis:\"x\",inherit:\"z\"})}else e.visible=!1}},{\"../../lib\":696,\"../../registry\":827,\"../scatter/line_defaults\":1056,\"../scatter/marker_defaults\":1062,\"../scatter/subtypes\":1067,\"../scatter/text_defaults\":1068,\"./attributes\":1070}],1075:[function(t,e,r){\"use strict\";var n={};n.plot=t(\"./convert\"),n.attributes=t(\"./attributes\"),n.markerSymbols=t(\"../../constants/gl3d_markers\"),n.supplyDefaults=t(\"./defaults\"),n.colorbar=t(\"../scatter/marker_colorbar\"),n.calc=t(\"./calc\"),n.moduleType=\"trace\",n.name=\"scatter3d\",n.basePlotModule=t(\"../../plots/gl3d\"),n.categories=[\"gl3d\",\"symbols\",\"showLegend\"],n.meta={},e.exports=n},{\"../../constants/gl3d_markers\":671,\"../../plots/gl3d\":787,\"../scatter/marker_colorbar\":1061,\"./attributes\":1070,\"./calc\":1071,\"./convert\":1073,\"./defaults\":1074}],1076:[function(t,e,r){\"use strict\";var n=t(\"../scatter/attributes\"),i=t(\"../../plots/attributes\"),a=t(\"../../components/colorscale/attributes\"),o=t(\"../../components/colorbar/attributes\"),s=t(\"../../lib/extend\").extendFlat,l=n.marker,c=n.line,u=l.line;e.exports={carpet:{valType:\"string\",editType:\"calc\"},a:{valType:\"data_array\",editType:\"calc\"},b:{valType:\"data_array\",editType:\"calc\"},mode:s({},n.mode,{dflt:\"markers\"}),text:s({},n.text,{}),line:{color:c.color,width:c.width,dash:c.dash,shape:s({},c.shape,{values:[\"linear\",\"spline\"]}),smoothing:c.smoothing,editType:\"calc\"},connectgaps:n.connectgaps,fill:s({},n.fill,{values:[\"none\",\"toself\",\"tonext\"],dflt:\"none\"}),fillcolor:n.fillcolor,marker:s({symbol:l.symbol,opacity:l.opacity,maxdisplayed:l.maxdisplayed,size:l.size,sizeref:l.sizeref,sizemin:l.sizemin,sizemode:l.sizemode,line:s({width:u.width,editType:\"calc\"},a(\"marker.line\")),gradient:l.gradient,editType:\"calc\"},a(\"marker\"),{colorbar:o}),textfont:n.textfont,textposition:n.textposition,selected:n.selected,unselected:n.unselected,hoverinfo:s({},i.hoverinfo,{flags:[\"a\",\"b\",\"text\",\"name\"]}),hoveron:n.hoveron}},{\"../../components/colorbar/attributes\":571,\"../../components/colorscale/attributes\":577,\"../../lib/extend\":685,\"../../plots/attributes\":741,\"../scatter/attributes\":1043}],1077:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../scatter/colorscale_calc\"),a=t(\"../scatter/arrays_to_calcdata\"),o=t(\"../scatter/calc_selection\"),s=t(\"../scatter/calc\").calcMarkerSize,l=t(\"../carpet/lookup_carpetid\");e.exports=function(t,e){var r=e._carpetTrace=l(t,e);if(r&&r.visible&&\"legendonly\"!==r.visible){var c;e.xaxis=r.xaxis,e.yaxis=r.yaxis;var u,f,h=e._length,p=new Array(h),d=!1;for(c=0;c<h;c++)if(u=e.a[c],f=e.b[c],n(u)&&n(f)){var g=r.ab2xy(+u,+f,!0),v=r.isVisible(+u,+f);v||(d=!0),p[c]={x:g[0],y:g[1],a:u,b:f,vis:v}}else p[c]={x:!1,y:!1};return e._needsCull=d,p[0].carpet=r,p[0].trace=e,s(e,h),i(e),a(p,e),o(p,e),p}}},{\"../carpet/lookup_carpetid\":894,\"../scatter/arrays_to_calcdata\":1042,\"../scatter/calc\":1044,\"../scatter/calc_selection\":1045,\"../scatter/colorscale_calc\":1046,\"fast-isnumeric\":214}],1078:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../scatter/constants\"),a=t(\"../scatter/subtypes\"),o=t(\"../scatter/marker_defaults\"),s=t(\"../scatter/line_defaults\"),l=t(\"../scatter/line_shape_defaults\"),c=t(\"../scatter/text_defaults\"),u=t(\"../scatter/fillcolor_defaults\"),f=t(\"./attributes\");e.exports=function(t,e,r,h){function p(r,i){return n.coerce(t,e,f,r,i)}p(\"carpet\"),e.xaxis=\"x\",e.yaxis=\"y\";var d=p(\"a\"),g=p(\"b\"),v=Math.min(d.length,g.length);if(v){e._length=v,p(\"text\"),p(\"mode\",v<i.PTS_LINESONLY?\"lines+markers\":\"lines\"),a.hasLines(e)&&(s(t,e,r,h,p),l(t,e,p),p(\"connectgaps\")),a.hasMarkers(e)&&o(t,e,r,h,p,{gradient:!0}),a.hasText(e)&&c(t,e,h,p);var m=[];(a.hasMarkers(e)||a.hasText(e))&&(p(\"marker.maxdisplayed\"),m.push(\"points\")),p(\"fill\"),\"none\"!==e.fill&&(u(t,e,r,p),a.hasLines(e)||l(t,e,p)),\"tonext\"!==e.fill&&\"toself\"!==e.fill||m.push(\"fills\"),p(\"hoveron\",m.join(\"+\")||\"points\"),n.coerceSelectionMarkerOpacity(e,p)}else e.visible=!1}},{\"../../lib\":696,\"../scatter/constants\":1047,\"../scatter/fillcolor_defaults\":1052,\"../scatter/line_defaults\":1056,\"../scatter/line_shape_defaults\":1058,\"../scatter/marker_defaults\":1062,\"../scatter/subtypes\":1067,\"../scatter/text_defaults\":1068,\"./attributes\":1076}],1079:[function(t,e,r){\"use strict\";e.exports=function(t,e,r,n,i){var a=n[i];return t.a=a.a,t.b=a.b,t}},{}],1080:[function(t,e,r){\"use strict\";var n=t(\"../scatter/hover\");e.exports=function(t,e,r,i){var a=n(t,e,r,i);if(a&&!1!==a[0].index){var o=a[0];if(void 0===o.index){var s=1-o.y0/t.ya._length,l=t.xa._length,c=l*s/2,u=l-c;return o.x0=Math.max(Math.min(o.x0,u),c),o.x1=Math.max(Math.min(o.x1,u),c),a}var f=o.cd[o.index];o.a=f.a,o.b=f.b,o.xLabelVal=void 0,o.yLabelVal=void 0;var h=o.trace,p=h._carpet,d=(f.hi||h.hoverinfo).split(\"+\"),g=[];-1!==d.indexOf(\"all\")&&(d=[\"a\",\"b\"]),-1!==d.indexOf(\"a\")&&w(p.aaxis,f.a),-1!==d.indexOf(\"b\")&&w(p.baxis,f.b);var v=p.ab2ij([f.a,f.b]),m=Math.floor(v[0]),y=v[0]-m,x=Math.floor(v[1]),b=v[1]-x,_=p.evalxy([],m,x,y,b);return g.push(\"y: \"+_[1].toFixed(3)),o.extraText=g.join(\"<br>\"),a}function w(t,e){var r;r=t.labelprefix&&t.labelprefix.length>0?t.labelprefix.replace(/ = $/,\"\"):t._hovertitle,g.push(r+\": \"+e.toFixed(3)+t.labelsuffix)}}},{\"../scatter/hover\":1054}],1081:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.supplyDefaults=t(\"./defaults\"),n.colorbar=t(\"../scatter/marker_colorbar\"),n.calc=t(\"./calc\"),n.plot=t(\"./plot\"),n.style=t(\"../scatter/style\").style,n.styleOnSelect=t(\"../scatter/style\").styleOnSelect,n.hoverPoints=t(\"./hover\"),n.selectPoints=t(\"../scatter/select\"),n.eventData=t(\"./event_data\"),n.moduleType=\"trace\",n.name=\"scattercarpet\",n.basePlotModule=t(\"../../plots/cartesian\"),n.categories=[\"svg\",\"carpet\",\"symbols\",\"showLegend\",\"carpetDependent\",\"zoomScale\"],n.meta={},e.exports=n},{\"../../plots/cartesian\":756,\"../scatter/marker_colorbar\":1061,\"../scatter/select\":1064,\"../scatter/style\":1066,\"./attributes\":1076,\"./calc\":1077,\"./defaults\":1078,\"./event_data\":1079,\"./hover\":1080,\"./plot\":1082}],1082:[function(t,e,r){\"use strict\";var n=t(\"../scatter/plot\"),i=t(\"../../plots/cartesian/axes\"),a=t(\"../../components/drawing\");e.exports=function(t,e,r,o){var s,l,c,u=r[0][0].carpet,f={xaxis:i.getFromId(t,u.xaxis||\"x\"),yaxis:i.getFromId(t,u.yaxis||\"y\"),plot:e.plot};for(n(t,f,r,o),s=0;s<r.length;s++)l=r[s][0].trace,c=o.selectAll(\"g.trace\"+l.uid+\" .js-line\"),a.setClipUrl(c,u._clipPathId)}},{\"../../components/drawing\":595,\"../../plots/cartesian/axes\":744,\"../scatter/plot\":1063}],1083:[function(t,e,r){\"use strict\";var n=t(\"../scatter/attributes\"),i=t(\"../../plots/attributes\"),a=t(\"../../components/colorscale/attributes\"),o=t(\"../../components/drawing/attributes\").dash,s=t(\"../../lib/extend\").extendFlat,l=t(\"../../plot_api/edit_types\").overrideAll,c=n.marker,u=n.line,f=c.line;e.exports=l({lon:{valType:\"data_array\"},lat:{valType:\"data_array\"},locations:{valType:\"data_array\"},locationmode:{valType:\"enumerated\",values:[\"ISO-3\",\"USA-states\",\"country names\"],dflt:\"ISO-3\"},mode:s({},n.mode,{dflt:\"markers\"}),text:s({},n.text,{}),hovertext:s({},n.hovertext,{}),textfont:n.textfont,textposition:n.textposition,line:{color:u.color,width:u.width,dash:o},connectgaps:n.connectgaps,marker:s({symbol:c.symbol,opacity:c.opacity,size:c.size,sizeref:c.sizeref,sizemin:c.sizemin,sizemode:c.sizemode,colorbar:c.colorbar,line:s({width:f.width},a(\"marker.line\")),gradient:c.gradient},a(\"marker\")),fill:{valType:\"enumerated\",values:[\"none\",\"toself\"],dflt:\"none\"},fillcolor:n.fillcolor,selected:n.selected,unselected:n.unselected,hoverinfo:s({},i.hoverinfo,{flags:[\"lon\",\"lat\",\"location\",\"text\",\"name\"]})},\"calc\",\"nested\")},{\"../../components/colorscale/attributes\":577,\"../../components/drawing/attributes\":594,\"../../lib/extend\":685,\"../../plot_api/edit_types\":727,\"../../plots/attributes\":741,\"../scatter/attributes\":1043}],1084:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../../constants/numerical\").BADNUM,a=t(\"../scatter/colorscale_calc\"),o=t(\"../scatter/arrays_to_calcdata\"),s=t(\"../scatter/calc_selection\"),l=t(\"../../lib\")._;e.exports=function(t,e){for(var r=Array.isArray(e.locations),c=r?e.locations.length:e._length,u=new Array(c),f=0;f<c;f++){var h=u[f]={};if(r){var p=e.locations[f];h.loc=\"string\"==typeof p?p:null}else{var d=e.lon[f],g=e.lat[f];n(d)&&n(g)?h.lonlat=[+d,+g]:h.lonlat=[i,i]}}return o(u,e),a(e),s(u,e),c&&(u[0].t={labels:{lat:l(t,\"lat:\")+\" \",lon:l(t,\"lon:\")+\" \"}}),u}},{\"../../constants/numerical\":673,\"../../lib\":696,\"../scatter/arrays_to_calcdata\":1042,\"../scatter/calc_selection\":1045,\"../scatter/colorscale_calc\":1046,\"fast-isnumeric\":214}],1085:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../scatter/subtypes\"),a=t(\"../scatter/marker_defaults\"),o=t(\"../scatter/line_defaults\"),s=t(\"../scatter/text_defaults\"),l=t(\"../scatter/fillcolor_defaults\"),c=t(\"./attributes\");e.exports=function(t,e,r,u){function f(r,i){return n.coerce(t,e,c,r,i)}!function(t,e,r){var n,i,a=0,o=r(\"locations\");if(o)return r(\"locationmode\"),a=o.length;return n=r(\"lon\")||[],i=r(\"lat\")||[],a=Math.min(n.length,i.length),e._length=a,a}(0,e,f)?e.visible=!1:(f(\"text\"),f(\"hovertext\"),f(\"mode\"),i.hasLines(e)&&(o(t,e,r,u,f),f(\"connectgaps\")),i.hasMarkers(e)&&a(t,e,r,u,f,{gradient:!0}),i.hasText(e)&&s(t,e,u,f),f(\"fill\"),\"none\"!==e.fill&&l(t,e,r,f),n.coerceSelectionMarkerOpacity(e,f))}},{\"../../lib\":696,\"../scatter/fillcolor_defaults\":1052,\"../scatter/line_defaults\":1056,\"../scatter/marker_defaults\":1062,\"../scatter/subtypes\":1067,\"../scatter/text_defaults\":1068,\"./attributes\":1083}],1086:[function(t,e,r){\"use strict\";e.exports=function(t,e){return t.lon=e.lon,t.lat=e.lat,t.location=e.loc?e.loc:null,t}},{}],1087:[function(t,e,r){\"use strict\";var n=t(\"../../components/fx\"),i=t(\"../../plots/cartesian/axes\"),a=t(\"../../constants/numerical\").BADNUM,o=t(\"../scatter/get_trace_color\"),s=t(\"../scatter/fill_hover_text\"),l=t(\"./attributes\");e.exports=function(t,e,r){var c=t.cd,u=c[0].trace,f=t.xa,h=t.ya,p=t.subplot,d=p.projection.isLonLatOverEdges,g=p.project;if(n.getClosest(c,function(t){var n=t.lonlat;if(n[0]===a)return 1/0;if(d(n))return 1/0;var i=g(n),o=g([e,r]),s=Math.abs(i[0]-o[0]),l=Math.abs(i[1]-o[1]),c=Math.max(3,t.mrc||0);return Math.max(Math.sqrt(s*s+l*l)-c,1-3/c)},t),!1!==t.index){var v=c[t.index],m=v.lonlat,y=[f.c2p(m),h.c2p(m)],x=v.mrc||1;return t.x0=y[0]-x,t.x1=y[0]+x,t.y0=y[1]-x,t.y1=y[1]+x,t.loc=v.loc,t.lon=m[0],t.lat=m[1],t.color=o(u,v),t.extraText=function(t,e,r,n){var a=e.hi||t.hoverinfo,o=\"all\"===a?l.hoverinfo.flags:a.split(\"+\"),c=-1!==o.indexOf(\"location\")&&Array.isArray(t.locations),u=-1!==o.indexOf(\"lon\"),f=-1!==o.indexOf(\"lat\"),h=-1!==o.indexOf(\"text\"),p=[];function d(t){return i.tickText(r,r.c2l(t),\"hover\").text+\"\\xb0\"}c?p.push(e.loc):u&&f?p.push(\"(\"+d(e.lonlat[0])+\", \"+d(e.lonlat[1])+\")\"):u?p.push(n.lon+d(e.lonlat[0])):f&&p.push(n.lat+d(e.lonlat[1]));h&&s(e,t,p);return p.join(\"<br>\")}(u,v,p.mockAxis,c[0].t.labels),[t]}}},{\"../../components/fx\":612,\"../../constants/numerical\":673,\"../../plots/cartesian/axes\":744,\"../scatter/fill_hover_text\":1051,\"../scatter/get_trace_color\":1053,\"./attributes\":1083}],1088:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.supplyDefaults=t(\"./defaults\"),n.colorbar=t(\"../scatter/marker_colorbar\"),n.calc=t(\"./calc\"),n.plot=t(\"./plot\"),n.style=t(\"./style\"),n.styleOnSelect=t(\"../scatter/style\").styleOnSelect,n.hoverPoints=t(\"./hover\"),n.eventData=t(\"./event_data\"),n.selectPoints=t(\"./select\"),n.moduleType=\"trace\",n.name=\"scattergeo\",n.basePlotModule=t(\"../../plots/geo\"),n.categories=[\"geo\",\"symbols\",\"showLegend\",\"scatter-like\"],n.meta={},e.exports=n},{\"../../plots/geo\":775,\"../scatter/marker_colorbar\":1061,\"../scatter/style\":1066,\"./attributes\":1083,\"./calc\":1084,\"./defaults\":1085,\"./event_data\":1086,\"./hover\":1087,\"./plot\":1089,\"./select\":1090,\"./style\":1091}],1089:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../../lib\"),a=t(\"../../constants/numerical\").BADNUM,o=t(\"../../lib/topojson_utils\").getTopojsonFeatures,s=t(\"../../lib/geo_location_utils\").locationToFeature,l=t(\"../../lib/geojson_utils\"),c=t(\"../scatter/subtypes\"),u=t(\"./style\");function f(t,e){var r=t[0].trace;if(Array.isArray(r.locations))for(var n=o(r,e),i=r.locationmode,l=0;l<t.length;l++){var c=t[l],u=s(i,c.loc,n);c.lonlat=u?u.properties.ct:[a,a]}}e.exports=function(t,e,r){for(var o=0;o<r.length;o++)f(r[o],e.topojson);function s(t,e){t.lonlat[0]===a&&n.select(e).remove()}var h=e.layers.frontplot.select(\".scatterlayer\"),p=i.makeTraceGroups(h,r,\"trace scattergeo\");p.selectAll(\"*\").remove(),p.each(function(e){var r=e[0].node3=n.select(this),a=e[0].trace;if(c.hasLines(a)||\"none\"!==a.fill){var o=l.calcTraceToLineCoords(e),f=\"none\"!==a.fill?l.makePolygon(o):l.makeLine(o);r.selectAll(\"path.js-line\").data([{geojson:f,trace:a}]).enter().append(\"path\").classed(\"js-line\",!0).style(\"stroke-miterlimit\",2)}c.hasMarkers(a)&&r.selectAll(\"path.point\").data(i.identity).enter().append(\"path\").classed(\"point\",!0).each(function(t){s(t,this)}),c.hasText(a)&&r.selectAll(\"g\").data(i.identity).enter().append(\"g\").append(\"text\").each(function(t){s(t,this)}),u(t,e)})}},{\"../../constants/numerical\":673,\"../../lib\":696,\"../../lib/geo_location_utils\":688,\"../../lib/geojson_utils\":689,\"../../lib/topojson_utils\":723,\"../scatter/subtypes\":1067,\"./style\":1091,d3:148}],1090:[function(t,e,r){\"use strict\";var n=t(\"../scatter/subtypes\"),i=t(\"../../constants/numerical\").BADNUM;e.exports=function(t,e){var r,a,o,s,l,c=t.cd,u=t.xaxis,f=t.yaxis,h=[],p=c[0].trace;if(!n.hasMarkers(p)&&!n.hasText(p))return[];if(!1===e)for(l=0;l<c.length;l++)c[l].selected=0;else for(l=0;l<c.length;l++)(a=(r=c[l]).lonlat)[0]!==i&&(o=u.c2p(a),s=f.c2p(a),e.contains([o,s],null,l,t)?(h.push({pointNumber:l,lon:a[0],lat:a[1]}),r.selected=1):r.selected=0);return h}},{\"../../constants/numerical\":673,\"../scatter/subtypes\":1067}],1091:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../../components/drawing\"),a=t(\"../../components/color\"),o=t(\"../scatter/style\"),s=o.stylePoints,l=o.styleText;e.exports=function(t,e){e&&function(t,e){var r=e[0].trace,o=e[0].node3;o.style(\"opacity\",e[0].trace.opacity),s(o,r,t),l(o,r,t),o.selectAll(\"path.js-line\").style(\"fill\",\"none\").each(function(t){var e=n.select(this),r=t.trace,o=r.line||{};e.call(a.stroke,o.color).call(i.dashLine,o.dash||\"\",o.width||0),\"none\"!==r.fill&&e.call(a.fill,r.fillcolor)})}(t,e)}},{\"../../components/color\":570,\"../../components/drawing\":595,\"../scatter/style\":1066,d3:148}],1092:[function(t,e,r){\"use strict\";var n=t(\"../../plots/attributes\"),i=t(\"../scatter/attributes\"),a=t(\"../../components/colorscale/attributes\"),o=t(\"../../lib/extend\").extendFlat,s=t(\"../../plot_api/edit_types\").overrideAll,l=t(\"./constants\").DASHES,c=i.line,u=i.marker,f=u.line,h=e.exports=s({x:i.x,x0:i.x0,dx:i.dx,y:i.y,y0:i.y0,dy:i.dy,text:i.text,hovertext:i.hovertext,textposition:i.textposition,textfont:i.textfont,mode:{valType:\"flaglist\",flags:[\"lines\",\"markers\",\"text\"],extras:[\"none\"]},line:{color:c.color,width:c.width,shape:{valType:\"enumerated\",values:[\"linear\",\"hv\",\"vh\",\"hvh\",\"vhv\"],dflt:\"linear\",editType:\"plot\"},dash:{valType:\"enumerated\",values:Object.keys(l),dflt:\"solid\"}},marker:o({},a(\"marker\"),{symbol:u.symbol,size:u.size,sizeref:u.sizeref,sizemin:u.sizemin,sizemode:u.sizemode,opacity:u.opacity,colorbar:u.colorbar,line:o({},a(\"marker.line\"),{width:f.width})}),connectgaps:i.connectgaps,fill:o({},i.fill,{dflt:\"none\"}),fillcolor:i.fillcolor,selected:{marker:i.selected.marker,textfont:i.selected.textfont},unselected:{marker:i.unselected.marker,textfont:i.unselected.textfont},opacity:n.opacity},\"calc\",\"nested\");h.x.editType=h.y.editType=h.x0.editType=h.y0.editType=\"calc+clearAxisTypes\"},{\"../../components/colorscale/attributes\":577,\"../../lib/extend\":685,\"../../plot_api/edit_types\":727,\"../../plots/attributes\":741,\"../scatter/attributes\":1043,\"./constants\":1093}],1093:[function(t,e,r){\"use strict\";e.exports={TOO_MANY_POINTS:1e5,SYMBOL_SDF_SIZE:200,SYMBOL_SIZE:20,SYMBOL_STROKE:1,DOT_RE:/-dot/,OPEN_RE:/-open/,DASHES:{solid:[1],dot:[1,1],dash:[4,1],longdash:[8,1],dashdot:[4,1,1,1],longdashdot:[8,1,1,1]}}},{}],1094:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"svg-path-sdf\"),a=t(\"color-normalize\"),o=t(\"../../registry\"),s=t(\"../../lib\"),l=t(\"../../components/drawing\"),c=t(\"../../plots/cartesian/axis_ids\"),u=t(\"../../lib/gl_format_color\").formatColor,f=t(\"../scatter/subtypes\"),h=t(\"../scatter/make_bubble_size_func\"),p=t(\"./constants\"),d=t(\"../../constants/interactions\").DESELECTDIM,g={start:1,left:1,end:-1,right:-1,middle:0,center:0,bottom:1,top:-1};function v(t){var e,r=t._length,i=t.textfont,a=t.textposition,o=Array.isArray(a)?a:[a],s=i.color,l=i.size,c=i.family,u={};for(u.text=t.text,u.opacity=t.opacity,u.font={},u.align=[],u.baseline=[],e=0;e<o.length;e++){var f=o[e].split(/\\s+/);switch(f[1]){case\"left\":u.align.push(\"right\");break;case\"right\":u.align.push(\"left\");break;default:u.align.push(f[1])}switch(f[0]){case\"top\":u.baseline.push(\"bottom\");break;case\"bottom\":u.baseline.push(\"top\");break;default:u.baseline.push(f[0])}}if(Array.isArray(s))for(u.color=new Array(r),e=0;e<r;e++)u.color[e]=s[e];else u.color=s;if(Array.isArray(l)||Array.isArray(c))for(u.font=new Array(r),e=0;e<r;e++){var h=u.font[e]={};h.size=Array.isArray(l)?n(l[e])?l[e]:0:l,h.family=Array.isArray(c)?c[e]:c}else u.font={size:l,family:c};return u}function m(t){var e,r,n=t._length,i=t.marker,o={},l=Array.isArray(i.symbol),c=s.isArrayOrTypedArray(i.color),f=s.isArrayOrTypedArray(i.line.color),d=s.isArrayOrTypedArray(i.opacity),g=s.isArrayOrTypedArray(i.size),v=s.isArrayOrTypedArray(i.line.width);if(l||(r=p.OPEN_RE.test(i.symbol)),l||c||f||d){o.colors=new Array(n),o.borderColors=new Array(n);var m=u(i,i.opacity,n),y=u(i.line,i.opacity,n);if(!Array.isArray(y[0])){var x=y;for(y=Array(n),e=0;e<n;e++)y[e]=x}if(!Array.isArray(m[0])){var b=m;for(m=Array(n),e=0;e<n;e++)m[e]=b}for(o.colors=m,o.borderColors=y,e=0;e<n;e++){if(l){var _=i.symbol[e];r=p.OPEN_RE.test(_)}r&&(y[e]=m[e].slice(),m[e]=m[e].slice(),m[e][3]=0)}o.opacity=t.opacity}else r?(o.color=a(i.color,\"uint8\"),o.color[3]=0,o.borderColor=a(i.color,\"uint8\")):(o.color=a(i.color,\"uint8\"),o.borderColor=a(i.line.color,\"uint8\")),o.opacity=t.opacity*i.opacity;if(l)for(o.markers=new Array(n),e=0;e<n;e++)o.markers[e]=T(i.symbol[e]);else o.marker=T(i.symbol);var w,k=h(t);if(g||v){var M,A=o.sizes=new Array(n),S=o.borderSizes=new Array(n),E=0;if(g){for(e=0;e<n;e++)A[e]=k(i.size[e]),E+=A[e];M=E/n}else for(w=k(i.size),e=0;e<n;e++)A[e]=w;if(v)for(e=0;e<n;e++)S[e]=i.line.width[e]/2;else for(w=i.line.width/2,e=0;e<n;e++)S[e]=w;o.sizeAvg=M}else o.size=k(i&&i.size||10),o.borderSizes=k(i.line.width);return o}function y(t,e){var r=t.marker,n={};return e?(e.marker&&e.marker.symbol?n=m(s.extendFlat({},r,e.marker)):e.marker&&(e.marker.size&&(n.size=e.marker.size/2),e.marker.color&&(n.colors=e.marker.color),void 0!==e.marker.opacity&&(n.opacity=e.marker.opacity)),n):n}function x(t,e){var r={};if(!e)return r;if(e.textfont){var n={opacity:1,text:t.text,textposition:t.textposition,textfont:s.extendFlat({},t.textfont)};e.textfont&&s.extendFlat(n.textfont,e.textfont),r=v(n)}return r}function b(t,e){var r={capSize:2*e.width,lineWidth:e.thickness,color:e.color};return e.copy_ystyle&&(r=t.error_y),r}var _=p.SYMBOL_SDF_SIZE,w=p.SYMBOL_SIZE,k=p.SYMBOL_STROKE,M={},A=l.symbolFuncs[0](.05*w);function T(t){if(\"circle\"===t)return null;var e,r,n=l.symbolNumber(t),a=l.symbolFuncs[n%100],o=!!l.symbolNoDot[n%100],s=!!l.symbolNoFill[n%100],c=p.DOT_RE.test(t);return M[t]?M[t]:(e=c&&!o?a(1.1*w)+A:a(w),r=i(e,{w:_,h:_,viewBox:[-w,-w,w,w],stroke:s?k:-k}),M[t]=r,r||null)}e.exports={style:function(t,e){var r,n={marker:void 0,markerSel:void 0,markerUnsel:void 0,line:void 0,fill:void 0,errorX:void 0,errorY:void 0,text:void 0,textSel:void 0,textUnsel:void 0};if(!0!==e.visible)return n;if(f.hasText(e)&&(n.text=v(e),n.textSel=x(e,e.selected),n.textUnsel=x(e,e.unselected)),f.hasMarkers(e)&&(n.marker=m(e),n.markerSel=y(e,e.selected),n.markerUnsel=y(e,e.unselected),!e.unselected&&Array.isArray(e.marker.opacity))){var i=e.marker.opacity;for(n.markerUnsel.opacity=new Array(i.length),r=0;r<i.length;r++)n.markerUnsel.opacity[r]=d*i[r]}if(f.hasLines(e)){n.line={overlay:!0,thickness:e.line.width,color:e.line.color,opacity:e.opacity};var a=(p.DASHES[e.line.dash]||[1]).slice();for(r=0;r<a.length;++r)a[r]*=e.line.width;n.line.dashes=a}return e.error_x&&e.error_x.visible&&(n.errorX=b(e,e.error_x)),e.error_y&&e.error_y.visible&&(n.errorY=b(e,e.error_y)),e.fill&&\"none\"!==e.fill&&(n.fill={closed:!0,fill:e.fillcolor,thickness:0}),n},markerStyle:m,markerSelection:y,linePositions:function(t,e,r){var n,i,a=r.length,o=a/2;if(f.hasLines(e)&&o)if(\"hv\"===e.line.shape){for(n=[],i=0;i<o-1;i++)isNaN(r[2*i])||isNaN(r[2*i+1])?n.push(NaN,NaN,NaN,NaN):(n.push(r[2*i],r[2*i+1]),isNaN(r[2*i+2])||isNaN(r[2*i+3])?n.push(NaN,NaN):n.push(r[2*i+2],r[2*i+1]));n.push(r[a-2],r[a-1])}else if(\"hvh\"===e.line.shape){for(n=[],i=0;i<o-1;i++)if(isNaN(r[2*i])||isNaN(r[2*i+1])||isNaN(r[2*i+2])||isNaN(r[2*i+3]))isNaN(r[2*i])||isNaN(r[2*i+1])?n.push(NaN,NaN):n.push(r[2*i],r[2*i+1]),n.push(NaN,NaN);else{var s=(r[2*i]+r[2*i+2])/2;n.push(r[2*i],r[2*i+1],s,r[2*i+1],s,r[2*i+3])}n.push(r[a-2],r[a-1])}else if(\"vhv\"===e.line.shape){for(n=[],i=0;i<o-1;i++)if(isNaN(r[2*i])||isNaN(r[2*i+1])||isNaN(r[2*i+2])||isNaN(r[2*i+3]))isNaN(r[2*i])||isNaN(r[2*i+1])?n.push(NaN,NaN):n.push(r[2*i],r[2*i+1]),n.push(NaN,NaN);else{var l=(r[2*i+1]+r[2*i+3])/2;n.push(r[2*i],r[2*i+1],r[2*i],l,r[2*i+2],l)}n.push(r[a-2],r[a-1])}else if(\"vh\"===e.line.shape){for(n=[],i=0;i<o-1;i++)isNaN(r[2*i])||isNaN(r[2*i+1])?n.push(NaN,NaN,NaN,NaN):(n.push(r[2*i],r[2*i+1]),isNaN(r[2*i+2])||isNaN(r[2*i+3])?n.push(NaN,NaN):n.push(r[2*i],r[2*i+3]));n.push(r[a-2],r[a-1])}else n=r;var c=!1;for(i=0;i<n.length;i++)if(isNaN(n[i])){c=!0;break}var u=c||n.length>p.TOO_MANY_POINTS?\"rect\":f.hasMarkers(e)?\"rect\":\"round\";if(c&&e.connectgaps){var h=n[0],d=n[1];for(i=0;i<n.length;i+=2)isNaN(n[i])||isNaN(n[i+1])?(n[i]=h,n[i+1]=d):(h=n[i],d=n[i+1])}return{join:u,positions:n}},errorBarPositions:function(t,e,r,i,a){var s=o.getComponentMethod(\"errorbars\",\"makeComputeError\"),l=c.getFromId(t,e.xaxis),u=c.getFromId(t,e.yaxis),f=r.length/2,h={};function p(t,i){var a=i._id.charAt(0),o=e[\"error_\"+a];if(o&&o.visible&&(\"linear\"===i.type||\"log\"===i.type)){for(var l=s(o),c={x:0,y:1}[a],u={x:[0,1,2,3],y:[2,3,0,1]}[a],p=new Float64Array(4*f),d=1/0,g=-1/0,v=0,m=0;v<f;v++,m+=4){var y=t[v];if(n(y)){var x=r[2*v+c],b=l(y,v),_=b[0],w=b[1];if(n(_)&&n(w)){var k=y-_,M=y+w;p[m+u[0]]=x-i.c2l(k),p[m+u[1]]=i.c2l(M)-x,p[m+u[2]]=0,p[m+u[3]]=0,d=Math.min(d,y-_),g=Math.max(g,y+w)}}}h[a]={positions:r,errors:p,_bnds:[d,g]}}}return p(i,l),p(a,u),h},textPosition:function(t,e,r,n){var i,a=e._length,o={};if(f.hasMarkers(e)){var s=r.font,l=r.align,c=r.baseline;for(o.offset=new Array(a),i=0;i<a;i++){var u=n.sizes?n.sizes[i]:n.size,h=Array.isArray(s)?s[i].size:s.size,p=Array.isArray(l)?l.length>1?l[i]:l[0]:l,d=Array.isArray(c)?c.length>1?c[i]:c[0]:c,v=g[p],m=g[d],y=u?u/.8+1:0,x=-m*y-.5*m;o.offset[i]=[v*y/h,x/h]}}return o}}},{\"../../components/drawing\":595,\"../../constants/interactions\":672,\"../../lib\":696,\"../../lib/gl_format_color\":692,\"../../plots/cartesian/axis_ids\":747,\"../../registry\":827,\"../scatter/make_bubble_size_func\":1060,\"../scatter/subtypes\":1067,\"./constants\":1093,\"color-normalize\":108,\"fast-isnumeric\":214,\"svg-path-sdf\":512}],1095:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../registry\"),a=t(\"./attributes\"),o=t(\"../scatter/constants\"),s=t(\"../scatter/subtypes\"),l=t(\"../scatter/xy_defaults\"),c=t(\"../scatter/marker_defaults\"),u=t(\"../scatter/line_defaults\"),f=t(\"../scatter/fillcolor_defaults\"),h=t(\"../scatter/text_defaults\");e.exports=function(t,e,r,p){function d(r,i){return n.coerce(t,e,a,r,i)}var g=!!t.marker&&/-open/.test(t.marker.symbol),v=s.isBubble(t),m=l(t,e,p,d);if(m){var y=m<o.PTS_LINESONLY?\"lines+markers\":\"lines\";d(\"text\"),d(\"hovertext\"),d(\"mode\",y),s.hasLines(e)&&(d(\"connectgaps\"),u(t,e,r,p,d),d(\"line.shape\")),s.hasMarkers(e)&&(c(t,e,r,p,d),d(\"marker.line.width\",g||v?1:0)),s.hasText(e)&&h(t,e,p,d),d(\"fill\"),\"none\"!==e.fill&&f(t,e,r,d);var x=i.getComponentMethod(\"errorbars\",\"supplyDefaults\");x(t,e,r,{axis:\"y\"}),x(t,e,r,{axis:\"x\",inherit:\"y\"}),n.coerceSelectionMarkerOpacity(e,d)}else e.visible=!1}},{\"../../lib\":696,\"../../registry\":827,\"../scatter/constants\":1047,\"../scatter/fillcolor_defaults\":1052,\"../scatter/line_defaults\":1056,\"../scatter/marker_defaults\":1062,\"../scatter/subtypes\":1067,\"../scatter/text_defaults\":1068,\"../scatter/xy_defaults\":1069,\"./attributes\":1092}],1096:[function(t,e,r){\"use strict\";var n=t(\"regl-scatter2d\"),i=t(\"regl-line2d\"),a=t(\"regl-error2d\"),o=t(\"point-cluster\"),s=t(\"array-range\"),l=t(\"gl-text\"),c=t(\"../../registry\"),u=t(\"../../lib\"),f=t(\"../../lib/prepare_regl\"),h=t(\"../../plots/cartesian/axis_ids\"),p=t(\"../../plots/cartesian/autorange\").findExtremes,d=t(\"../../components/color\"),g=t(\"../scatter/subtypes\"),v=t(\"../scatter/calc\"),m=v.calcMarkerSize,y=v.calcAxisExpansion,x=v.setFirstScatter,b=t(\"../scatter/colorscale_calc\"),_=t(\"../scatter/link_traces\"),w=t(\"../scatter/get_trace_color\"),k=t(\"../scatter/fill_hover_text\"),M=t(\"./convert\"),A=t(\"../../constants/numerical\").BADNUM,T=t(\"./constants\").TOO_MANY_POINTS,S=t(\"../../constants/interactions\").DESELECTDIM;function E(t,e,r){var n=t._extremes[e._id],i=p(e,r._bnds,{padded:!0});n.min=n.min.concat(i.min),n.max=n.max.concat(i.max)}function C(t,e){var r=e._scene,n={count:0,dirty:!0,lineOptions:[],fillOptions:[],markerOptions:[],markerSelectedOptions:[],markerUnselectedOptions:[],errorXOptions:[],errorYOptions:[],textOptions:[],textSelectedOptions:[],textUnselectedOptions:[]},i={selectBatch:null,unselectBatch:null,fill2d:!1,scatter2d:!1,error2d:!1,line2d:!1,glText:!1,select2d:null};return e._scene||((r=e._scene={}).init=function(){u.extendFlat(r,i,n)},r.init(),r.update=function(t){var e=u.repeat(t,r.count);if(r.fill2d&&r.fill2d.update(e),r.scatter2d&&r.scatter2d.update(e),r.line2d&&r.line2d.update(e),r.error2d&&r.error2d.update(e.concat(e)),r.select2d&&r.select2d.update(e),r.glText)for(var n=0;n<r.count;n++)r.glText[n].update(t)},r.draw=function(){for(var t=r.count,e=r.fill2d,n=r.error2d,i=r.line2d,a=r.scatter2d,o=r.glText,s=r.select2d,l=r.selectBatch,c=r.unselectBatch,u=0;u<t;u++)e&&r.fillOrder[u]&&e.draw(r.fillOrder[u]),i&&r.lineOptions[u]&&i.draw(u),n&&(r.errorXOptions[u]&&n.draw(u),r.errorYOptions[u]&&n.draw(u+t)),!a||!r.markerOptions[u]||l&&l[u]||a.draw(u),o[u]&&r.textOptions[u]&&o[u].render();a&&s&&l&&(s.draw(l),a.draw(c)),r.dirty=!1},r.destroy=function(){r.fill2d&&r.fill2d.destroy&&r.fill2d.destroy(),r.scatter2d&&r.scatter2d.destroy&&r.scatter2d.destroy(),r.error2d&&r.error2d.destroy&&r.error2d.destroy(),r.line2d&&r.line2d.destroy&&r.line2d.destroy(),r.select2d&&r.select2d.destroy&&r.select2d.destroy(),r.glText&&r.glText.forEach(function(t){t.destroy&&t.destroy()}),r.lineOptions=null,r.fillOptions=null,r.markerOptions=null,r.markerSelectedOptions=null,r.markerUnselectedOptions=null,r.errorXOptions=null,r.errorYOptions=null,r.textOptions=null,r.textSelectedOptions=null,r.textUnselectedOptions=null,r.selectBatch=null,r.unselectBatch=null,e._scene=null}),r.dirty||u.extendFlat(r,n),r}function L(t,e,r,n){var i=t.xa,a=t.ya,o=t.distance,s=t.dxy,l=t.index,f={pointNumber:l,x:e[l],y:r[l]};f.tx=Array.isArray(n.text)?n.text[l]:n.text,f.htx=Array.isArray(n.hovertext)?n.hovertext[l]:n.hovertext,f.data=Array.isArray(n.customdata)?n.customdata[l]:n.customdata,f.tp=Array.isArray(n.textposition)?n.textposition[l]:n.textposition;var h=n.textfont;h&&(f.ts=Array.isArray(h.size)?h.size[l]:h.size,f.tc=Array.isArray(h.color)?h.color[l]:h.color,f.tf=Array.isArray(h.family)?h.family[l]:h.family);var p=n.marker;p&&(f.ms=u.isArrayOrTypedArray(p.size)?p.size[l]:p.size,f.mo=u.isArrayOrTypedArray(p.opacity)?p.opacity[l]:p.opacity,f.mx=Array.isArray(p.symbol)?p.symbol[l]:p.symbol,f.mc=u.isArrayOrTypedArray(p.color)?p.color[l]:p.color);var d=p&&p.line;d&&(f.mlc=Array.isArray(d.color)?d.color[l]:d.color,f.mlw=u.isArrayOrTypedArray(d.width)?d.width[l]:d.width);var g=p&&p.gradient;g&&\"none\"!==g.type&&(f.mgt=Array.isArray(g.type)?g.type[l]:g.type,f.mgc=Array.isArray(g.color)?g.color[l]:g.color);var v=i.c2p(f.x,!0),m=a.c2p(f.y,!0),y=f.mrc||1,x=n.hoverlabel;x&&(f.hbg=Array.isArray(x.bgcolor)?x.bgcolor[l]:x.bgcolor,f.hbc=Array.isArray(x.bordercolor)?x.bordercolor[l]:x.bordercolor,f.hts=Array.isArray(x.font.size)?x.font.size[l]:x.font.size,f.htc=Array.isArray(x.font.color)?x.font.color[l]:x.font.color,f.htf=Array.isArray(x.font.family)?x.font.family[l]:x.font.family,f.hnl=Array.isArray(x.namelength)?x.namelength[l]:x.namelength);var b=n.hoverinfo;b&&(f.hi=Array.isArray(b)?b[l]:b);var _={};return _[t.index]=f,u.extendFlat(t,{color:w(n,f),x0:v-y,x1:v+y,xLabelVal:f.x,y0:m-y,y1:m+y,yLabelVal:f.y,cd:_,distance:o,spikeDistance:s}),f.htx?t.text=f.htx:f.tx?t.text=f.tx:n.text&&(t.text=n.text),k(f,n,t),c.getComponentMethod(\"errorbars\",\"hoverInfo\")(f,n,t),t}function z(t){var e,r,n=t[0],i=n.trace,a=n.t,o=a._scene,s=a.index,l=o.selectBatch[s],c=o.unselectBatch[s],f=o.textOptions[s],h=o.textSelectedOptions[s]||{},p=o.textUnselectedOptions[s]||{},g=u.extendFlat({},f);if(l&&c){var v=h.color,m=p.color,y=f.color,x=Array.isArray(y);for(g.color=new Array(i._length),e=0;e<l.length;e++)r=l[e],g.color[r]=v||(x?y[r]:y);for(e=0;e<c.length;e++){r=c[e];var b=x?y[r]:y;g.color[r]=m||(v?b:d.addOpacity(b,S))}}o.glText[s].update(g)}e.exports={moduleType:\"trace\",name:\"scattergl\",basePlotModule:t(\"../../plots/cartesian\"),categories:[\"gl\",\"regl\",\"cartesian\",\"symbols\",\"errorBarsOK\",\"showLegend\",\"scatter-like\"],attributes:t(\"./attributes\"),supplyDefaults:t(\"./defaults\"),crossTraceDefaults:t(\"../scatter/cross_trace_defaults\"),colorbar:t(\"../scatter/marker_colorbar\"),calc:function(t,e){var r,n,i,a=t._fullLayout,s=h.getFromId(t,e.xaxis),l=h.getFromId(t,e.yaxis),c=a._plots[e.xaxis+e.yaxis],f=e._length,p=2*f,d={},g=s.makeCalcdata(e,\"x\"),v=l.makeCalcdata(e,\"y\"),_=new Array(p);for(r=0;r<f;r++)n=g[r],i=v[r],_[2*r]=n===A?NaN:n,_[2*r+1]=i===A?NaN:i;if(\"log\"===s.type)for(r=0;r<p;r+=2)_[r]=s.c2l(_[r]);if(\"log\"===l.type)for(r=1;r<p;r+=2)_[r]=l.c2l(_[r]);if(\"log\"!==s.type&&\"log\"!==l.type)d.tree=o(_);else{var w=d.ids=new Array(f);for(r=0;r<f;r++)w[r]=r}b(e);var k,S=function(t,e,r,n,i,a){var o=M.style(t,r);if(o.marker&&(o.marker.positions=n),o.line&&n.length>1&&u.extendFlat(o.line,M.linePositions(t,r,n)),o.errorX||o.errorY){var s=M.errorBarPositions(t,r,n,i,a);o.errorX&&u.extendFlat(o.errorX,s.x),o.errorY&&u.extendFlat(o.errorY,s.y)}return o.text&&(u.extendFlat(o.text,{positions:n},M.textPosition(t,r,o.text,o.marker)),u.extendFlat(o.textSel,{positions:n},M.textPosition(t,r,o.text,o.markerSel)),u.extendFlat(o.textUnsel,{positions:n},M.textPosition(t,r,o.text,o.markerUnsel))),o}(t,0,e,_,g,v),L=C(0,c);return x(a,e),f<T?k=m(e,f):S.marker&&(k=2*(S.marker.sizeAvg||Math.max(S.marker.size,3))),y(t,e,s,l,g,v,k),S.errorX&&E(e,s,S.errorX),S.errorY&&E(e,l,S.errorY),S.fill&&!L.fill2d&&(L.fill2d=!0),S.marker&&!L.scatter2d&&(L.scatter2d=!0),S.line&&!L.line2d&&(L.line2d=!0),!S.errorX&&!S.errorY||L.error2d||(L.error2d=!0),S.text&&!L.glText&&(L.glText=!0),S.marker&&f>=T&&(S.marker.cluster=d.tree),L.lineOptions.push(S.line),L.errorXOptions.push(S.errorX),L.errorYOptions.push(S.errorY),L.fillOptions.push(S.fill),L.markerOptions.push(S.marker),L.markerSelectedOptions.push(S.markerSel),L.markerUnselectedOptions.push(S.markerUnsel),L.textOptions.push(S.text),L.textSelectedOptions.push(S.textSel),L.textUnselectedOptions.push(S.textUnsel),d._scene=L,d.index=L.count,d.x=g,d.y=v,d.positions=_,L.count++,[{x:!1,y:!1,t:d,trace:e}]},plot:function(t,e,r){if(r.length){var o,s,c=t._fullLayout,h=e._scene,p=e.xaxis,d=e.yaxis;if(h)if(f(t,[\"ANGLE_instanced_arrays\",\"OES_element_index_uint\"])){var g=c._glcanvas.data()[0].regl;if(_(t,e,r),h.dirty){if(!0===h.error2d&&(h.error2d=a(g)),!0===h.line2d&&(h.line2d=i(g)),!0===h.scatter2d&&(h.scatter2d=n(g)),!0===h.fill2d&&(h.fill2d=i(g)),!0===h.glText)for(h.glText=new Array(h.count),o=0;o<h.count;o++)h.glText[o]=new l(g);if(h.glText)for(o=0;o<h.count;o++)h.glText[o].update(h.textOptions[o]);if(h.line2d&&(h.line2d.update(h.lineOptions),h.lineOptions=h.lineOptions.map(function(t){if(t&&t.positions){for(var e=t.positions,r=0;r<e.length&&(isNaN(e[r])||isNaN(e[r+1]));)r+=2;for(var n=e.length-2;n>r&&(isNaN(e[n])||isNaN(e[n+1]));)n-=2;t.positions=e.slice(r,n+2)}return t}),h.line2d.update(h.lineOptions)),h.error2d){var v=(h.errorXOptions||[]).concat(h.errorYOptions||[]);h.error2d.update(v)}h.scatter2d&&h.scatter2d.update(h.markerOptions),h.fillOrder=u.repeat(null,h.count),h.fill2d&&(h.fillOptions=h.fillOptions.map(function(t,e){var n=r[e];if(t&&n&&n[0]&&n[0].trace){var i,a,o=n[0],s=o.trace,l=o.t,c=h.lineOptions[e],u=[];s._ownfill&&u.push(e),s._nexttrace&&u.push(e+1),u.length&&(h.fillOrder[e]=u);var f,p,d=[],g=c&&c.positions||l.positions;if(\"tozeroy\"===s.fill){for(f=0;f<g.length&&isNaN(g[f+1]);)f+=2;for(p=g.length-2;p>f&&isNaN(g[p+1]);)p-=2;0!==g[f+1]&&(d=[g[f],0]),d=d.concat(g.slice(f,p+2)),0!==g[p+1]&&(d=d.concat([g[p],0]))}else if(\"tozerox\"===s.fill){for(f=0;f<g.length&&isNaN(g[f]);)f+=2;for(p=g.length-2;p>f&&isNaN(g[p]);)p-=2;0!==g[f]&&(d=[0,g[f+1]]),d=d.concat(g.slice(f,p+2)),0!==g[p]&&(d=d.concat([0,g[p+1]]))}else if(\"toself\"===s.fill||\"tonext\"===s.fill){for(d=[],i=0,a=0;a<g.length;a+=2)(isNaN(g[a])||isNaN(g[a+1]))&&((d=d.concat(g.slice(i,a))).push(g[i],g[i+1]),i=a+2);d=d.concat(g.slice(i)),i&&d.push(g[i],g[i+1])}else{var v=s._nexttrace;if(v){var m=h.lineOptions[e+1];if(m){var y=m.positions;if(\"tonexty\"===s.fill){for(d=g.slice(),e=Math.floor(y.length/2);e--;){var x=y[2*e],b=y[2*e+1];isNaN(x)||isNaN(b)||d.push(x,b)}t.fill=v.fillcolor}}}}if(s._prevtrace&&\"tonext\"===s._prevtrace.fill){var _=h.lineOptions[e-1].positions,w=d.length/2,k=[i=w];for(a=0;a<_.length;a+=2)(isNaN(_[a])||isNaN(_[a+1]))&&(k.push(a/2+w+1),i=a+2);d=d.concat(_),t.hole=k}return t.fillmode=s.fill,t.opacity=s.opacity,t.positions=d,t}}),h.fill2d.update(h.fillOptions))}h.selectBatch=null,h.unselectBatch=null;var m=c.dragmode,y=\"lasso\"===m||\"select\"===m,x=c.clickmode.indexOf(\"select\")>-1;for(o=0;o<r.length;o++){var b=r[o][0],w=b.trace,k=b.t,M=k.index,A=w._length,T=k.x,S=k.y;if(w.selectedpoints||y||x){if(y||(y=!0),h.selectBatch||(h.selectBatch=[],h.unselectBatch=[]),w.selectedpoints){var E=h.selectBatch[M]=u.selIndices2selPoints(w),C={};for(s=0;s<E.length;s++)C[E[s]]=1;var L=[];for(s=0;s<A;s++)C[s]||L.push(s);h.unselectBatch[M]=L}var O=k.xpx=new Array(A),I=k.ypx=new Array(A);for(s=0;s<A;s++)O[s]=p.c2p(T[s]),I[s]=d.c2p(S[s])}else k.xpx=k.ypx=null}y?(h.select2d||(h.select2d=n(c._glcanvas.data()[1].regl)),h.scatter2d&&h.selectBatch&&h.selectBatch.length&&h.scatter2d.update(h.markerUnselectedOptions.map(function(t,e){return h.selectBatch[e]?t:null})),h.select2d&&(h.select2d.update(h.markerOptions),h.select2d.update(h.markerSelectedOptions)),h.glText&&r.forEach(function(t){t&&t[0]&&t[0].trace&&z(t)})):h.scatter2d&&h.scatter2d.update(h.markerOptions);var P={viewport:function(t,e,r){var n=t._size,i=t.width,a=t.height;return[n.l+e.domain[0]*n.w,n.b+r.domain[0]*n.h,i-n.r-(1-e.domain[1])*n.w,a-n.t-(1-r.domain[1])*n.h]}(c,p,d),range:[(p._rl||p.range)[0],(d._rl||d.range)[0],(p._rl||p.range)[1],(d._rl||d.range)[1]]},D=u.repeat(P,h.count);h.fill2d&&h.fill2d.update(D),h.line2d&&h.line2d.update(D),h.error2d&&h.error2d.update(D.concat(D)),h.scatter2d&&h.scatter2d.update(D),h.select2d&&h.select2d.update(D),h.glText&&h.glText.forEach(function(t){t.update(P)})}else h.init()}},hoverPoints:function(t,e,r,n){var i,a,o,s,l,c,u,f,h,p=t.cd,d=p[0].t,g=p[0].trace,v=t.xa,m=t.ya,y=d.x,x=d.y,b=v.c2p(e),_=m.c2p(r),w=t.distance;if(d.tree){var k=v.p2c(b-w),M=v.p2c(b+w),A=m.p2c(_-w),T=m.p2c(_+w);i=\"x\"===n?d.tree.range(Math.min(k,M),Math.min(m._rl[0],m._rl[1]),Math.max(k,M),Math.max(m._rl[0],m._rl[1])):d.tree.range(Math.min(k,M),Math.min(A,T),Math.max(k,M),Math.max(A,T))}else{if(!d.ids)return[t];i=d.ids}var S=w;if(\"x\"===n)for(l=0;l<i.length;l++)o=y[i[l]],(c=Math.abs(v.c2p(o)-b))<S&&(S=c,u=m.c2p(x[i[l]])-_,h=Math.sqrt(c*c+u*u),a=i[l]);else for(l=0;l<i.length;l++)o=y[i[l]],s=x[i[l]],c=v.c2p(o)-b,u=m.c2p(s)-_,(f=Math.sqrt(c*c+u*u))<S&&(S=h=f,a=i[l]);return t.index=a,t.distance=S,t.dxy=h,void 0===a?[t]:(L(t,y,x,g),[t])},selectPoints:function(t,e){var r=t.cd,n=[],i=r[0].trace,a=r[0].t,o=i._length,l=a.x,c=a.y,u=a._scene;if(!u)return n;var f=g.hasText(i),h=g.hasMarkers(i),p=!h&&!f;if(!0!==i.visible||p)return n;var d,v=null,m=null;if(!1===e||e.degenerate)m=s(o);else for(v=[],m=[],d=0;d<o;d++)e.contains([a.xpx[d],a.ypx[d]],!1,d,t)?(v.push(d),n.push({pointNumber:d,x:l[d],y:c[d]})):m.push(d);if(u.selectBatch||(u.selectBatch=[],u.unselectBatch=[]),!u.selectBatch[a.index]){for(d=0;d<u.count;d++)u.selectBatch[d]=[],u.unselectBatch[d]=[];h&&u.scatter2d.update(u.markerUnselectedOptions)}return u.selectBatch[a.index]=v,u.unselectBatch[a.index]=m,f&&z(r),n},sceneUpdate:C,calcHover:L,meta:{}}},{\"../../components/color\":570,\"../../constants/interactions\":672,\"../../constants/numerical\":673,\"../../lib\":696,\"../../lib/prepare_regl\":709,\"../../plots/cartesian\":756,\"../../plots/cartesian/autorange\":743,\"../../plots/cartesian/axis_ids\":747,\"../../registry\":827,\"../scatter/calc\":1044,\"../scatter/colorscale_calc\":1046,\"../scatter/cross_trace_defaults\":1049,\"../scatter/fill_hover_text\":1051,\"../scatter/get_trace_color\":1053,\"../scatter/link_traces\":1059,\"../scatter/marker_colorbar\":1061,\"../scatter/subtypes\":1067,\"./attributes\":1092,\"./constants\":1093,\"./convert\":1094,\"./defaults\":1095,\"array-range\":55,\"gl-text\":304,\"point-cluster\":452,\"regl-error2d\":473,\"regl-line2d\":474,\"regl-scatter2d\":475}],1097:[function(t,e,r){\"use strict\";var n=t(\"../scattergeo/attributes\"),i=t(\"../scatter/attributes\"),a=t(\"../../plots/mapbox/layout_attributes\"),o=t(\"../../plots/attributes\"),s=t(\"../../components/colorbar/attributes\"),l=t(\"../../lib/extend\").extendFlat,c=t(\"../../plot_api/edit_types\").overrideAll,u=n.line,f=n.marker;e.exports=c({lon:n.lon,lat:n.lat,mode:l({},i.mode,{dflt:\"markers\"}),text:l({},i.text,{}),hovertext:l({},i.hovertext,{}),line:{color:u.color,width:u.width},connectgaps:i.connectgaps,marker:{symbol:{valType:\"string\",dflt:\"circle\",arrayOk:!0},opacity:f.opacity,size:f.size,sizeref:f.sizeref,sizemin:f.sizemin,sizemode:f.sizemode,color:f.color,colorscale:f.colorscale,cauto:f.cauto,cmax:f.cmax,cmin:f.cmin,autocolorscale:f.autocolorscale,reversescale:f.reversescale,showscale:f.showscale,colorbar:s},fill:n.fill,fillcolor:i.fillcolor,textfont:a.layers.symbol.textfont,textposition:a.layers.symbol.textposition,selected:{marker:i.selected.marker},unselected:{marker:i.unselected.marker},hoverinfo:l({},o.hoverinfo,{flags:[\"lon\",\"lat\",\"text\",\"name\"]})},\"calc\",\"nested\")},{\"../../components/colorbar/attributes\":571,\"../../lib/extend\":685,\"../../plot_api/edit_types\":727,\"../../plots/attributes\":741,\"../../plots/mapbox/layout_attributes\":804,\"../scatter/attributes\":1043,\"../scattergeo/attributes\":1083}],1098:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../../lib\"),a=t(\"../../constants/numerical\").BADNUM,o=t(\"../../lib/geojson_utils\"),s=t(\"../../components/colorscale\"),l=t(\"../../components/drawing\"),c=t(\"../scatter/make_bubble_size_func\"),u=t(\"../scatter/subtypes\"),f=t(\"../../plots/mapbox/convert_text_opts\");function h(){return{geojson:o.makeBlank(),layout:{visibility:\"none\"},paint:{}}}function p(t){return i.isArrayOrTypedArray(t)?function(t){return t}:t?function(){return t}:d}function d(){return\"\"}function g(t){return t[0]===a}e.exports=function(t){var e,r=t[0].trace,a=!0===r.visible,v=\"none\"!==r.fill,m=u.hasLines(r),y=u.hasMarkers(r),x=u.hasText(r),b=y&&\"circle\"===r.marker.symbol,_=y&&\"circle\"!==r.marker.symbol,w=h(),k=h(),M=h(),A=h(),T={fill:w,line:k,circle:M,symbol:A};if(!a)return T;if((v||m)&&(e=o.calcTraceToLineCoords(t)),v&&(w.geojson=o.makePolygon(e),w.layout.visibility=\"visible\",i.extendFlat(w.paint,{\"fill-color\":r.fillcolor})),m&&(k.geojson=o.makeLine(e),k.layout.visibility=\"visible\",i.extendFlat(k.paint,{\"line-width\":r.line.width,\"line-color\":r.line.color,\"line-opacity\":r.opacity})),b){var S=function(t){var e,r,a,o,u=t[0].trace,f=u.marker,h=u.selectedpoints,p=i.isArrayOrTypedArray(f.color),d=i.isArrayOrTypedArray(f.size),v=i.isArrayOrTypedArray(f.opacity);function m(t){return u.opacity*t}p&&(r=s.hasColorscale(u,\"marker\")?s.makeColorScaleFunc(s.extractScale(f.colorscale,f.cmin,f.cmax)):i.identity);d&&(a=c(u));v&&(o=function(t){var e=n(t)?+i.constrain(t,0,1):0;return m(e)});var y,x=[];for(e=0;e<t.length;e++){var b=t[e],_=b.lonlat;if(!g(_)){var w={};r&&(w.mcc=b.mcc=r(b.mc)),a&&(w.mrc=b.mrc=a(b.ms)),o&&(w.mo=o(b.mo)),h&&(w.selected=b.selected||0),x.push({type:\"Feature\",geometry:{type:\"Point\",coordinates:_},properties:w})}}if(h)for(y=l.makeSelectedPointStyleFns(u),e=0;e<x.length;e++){var k=x[e].properties;y.selectedOpacityFn&&(k.mo=m(y.selectedOpacityFn(k))),y.selectedColorFn&&(k.mcc=y.selectedColorFn(k)),y.selectedSizeFn&&(k.mrc=y.selectedSizeFn(k))}return{geojson:{type:\"FeatureCollection\",features:x},mcc:p||y&&y.selectedColorFn?{type:\"identity\",property:\"mcc\"}:f.color,mrc:d||y&&y.selectedSizeFn?{type:\"identity\",property:\"mrc\"}:(M=f.size,M/2),mo:v||y&&y.selectedOpacityFn?{type:\"identity\",property:\"mo\"}:m(f.opacity)};var M}(t);M.geojson=S.geojson,M.layout.visibility=\"visible\",i.extendFlat(M.paint,{\"circle-color\":S.mcc,\"circle-radius\":S.mrc,\"circle-opacity\":S.mo})}if((_||x)&&(A.geojson=function(t){for(var e=t[0].trace,r=(e.marker||{}).symbol,n=e.text,i=\"circle\"!==r?p(r):d,a=u.hasText(e)?p(n):d,o=[],s=0;s<t.length;s++){var l=t[s];g(l.lonlat)||o.push({type:\"Feature\",geometry:{type:\"Point\",coordinates:l.lonlat},properties:{symbol:i(l.mx),text:a(l.tx)}})}return{type:\"FeatureCollection\",features:o}}(t),i.extendFlat(A.layout,{visibility:\"visible\",\"icon-image\":\"{symbol}-15\",\"text-field\":\"{text}\"}),_&&(i.extendFlat(A.layout,{\"icon-size\":r.marker.size/10}),i.extendFlat(A.paint,{\"icon-opacity\":r.opacity*r.marker.opacity,\"icon-color\":r.marker.color})),x)){var E=(r.marker||{}).size,C=f(r.textposition,E);i.extendFlat(A.layout,{\"text-size\":r.textfont.size,\"text-anchor\":C.anchor,\"text-offset\":C.offset}),i.extendFlat(A.paint,{\"text-color\":r.textfont.color,\"text-opacity\":r.opacity})}return T}},{\"../../components/colorscale\":585,\"../../components/drawing\":595,\"../../constants/numerical\":673,\"../../lib\":696,\"../../lib/geojson_utils\":689,\"../../plots/mapbox/convert_text_opts\":801,\"../scatter/make_bubble_size_func\":1060,\"../scatter/subtypes\":1067,\"fast-isnumeric\":214}],1099:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../scatter/subtypes\"),a=t(\"../scatter/marker_defaults\"),o=t(\"../scatter/line_defaults\"),s=t(\"../scatter/text_defaults\"),l=t(\"../scatter/fillcolor_defaults\"),c=t(\"./attributes\");e.exports=function(t,e,r,u){function f(r,i){return n.coerce(t,e,c,r,i)}if(function(t,e,r){var n=r(\"lon\")||[],i=r(\"lat\")||[],a=Math.min(n.length,i.length);return e._length=a,a}(0,e,f)){if(f(\"text\"),f(\"hovertext\"),f(\"mode\"),i.hasLines(e)&&(o(t,e,r,u,f,{noDash:!0}),f(\"connectgaps\")),i.hasMarkers(e)){a(t,e,r,u,f,{noLine:!0});var h=e.marker;\"circle\"!==h.symbol&&(n.isArrayOrTypedArray(h.size)&&(h.size=h.size[0]),n.isArrayOrTypedArray(h.color)&&(h.color=h.color[0]))}i.hasText(e)&&s(t,e,u,f,{noSelect:!0}),f(\"fill\"),\"none\"!==e.fill&&l(t,e,r,f),n.coerceSelectionMarkerOpacity(e,f)}else e.visible=!1}},{\"../../lib\":696,\"../scatter/fillcolor_defaults\":1052,\"../scatter/line_defaults\":1056,\"../scatter/marker_defaults\":1062,\"../scatter/subtypes\":1067,\"../scatter/text_defaults\":1068,\"./attributes\":1097}],1100:[function(t,e,r){\"use strict\";e.exports=function(t,e){return t.lon=e.lon,t.lat=e.lat,t}},{}],1101:[function(t,e,r){\"use strict\";var n=t(\"../../components/fx\"),i=t(\"../../lib\"),a=t(\"../scatter/get_trace_color\"),o=t(\"../scatter/fill_hover_text\"),s=t(\"../../constants/numerical\").BADNUM;e.exports=function(t,e,r){var l=t.cd,c=l[0].trace,u=t.xa,f=t.ya,h=t.subplot,p=360*(e>=0?Math.floor((e+180)/360):Math.ceil((e-180)/360)),d=e-p;if(n.getClosest(l,function(t){var e=t.lonlat;if(e[0]===s)return 1/0;var n=i.modHalf(e[0],360),a=e[1],o=h.project([n,a]),l=o.x-u.c2p([d,a]),c=o.y-f.c2p([n,r]),p=Math.max(3,t.mrc||0);return Math.max(Math.sqrt(l*l+c*c)-p,1-3/p)},t),!1!==t.index){var g=l[t.index],v=g.lonlat,m=[i.modHalf(v[0],360)+p,v[1]],y=u.c2p(m),x=f.c2p(m),b=g.mrc||1;return t.x0=y-b,t.x1=y+b,t.y0=x-b,t.y1=x+b,t.color=a(c,g),t.extraText=function(t,e,r){var n=(e.hi||t.hoverinfo).split(\"+\"),i=-1!==n.indexOf(\"all\"),a=-1!==n.indexOf(\"lon\"),s=-1!==n.indexOf(\"lat\"),l=e.lonlat,c=[];function u(t){return t+\"\\xb0\"}i||a&&s?c.push(\"(\"+u(l[0])+\", \"+u(l[1])+\")\"):a?c.push(r.lon+u(l[0])):s&&c.push(r.lat+u(l[1]));(i||-1!==n.indexOf(\"text\"))&&o(e,t,c);return c.join(\"<br>\")}(c,g,l[0].t.labels),[t]}}},{\"../../components/fx\":612,\"../../constants/numerical\":673,\"../../lib\":696,\"../scatter/fill_hover_text\":1051,\"../scatter/get_trace_color\":1053}],1102:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.supplyDefaults=t(\"./defaults\"),n.colorbar=t(\"../scatter/marker_colorbar\"),n.calc=t(\"../scattergeo/calc\"),n.plot=t(\"./plot\"),n.hoverPoints=t(\"./hover\"),n.eventData=t(\"./event_data\"),n.selectPoints=t(\"./select\"),n.style=function(t,e){e&&e[0].trace._glTrace.update(e)},n.moduleType=\"trace\",n.name=\"scattermapbox\",n.basePlotModule=t(\"../../plots/mapbox\"),n.categories=[\"mapbox\",\"gl\",\"symbols\",\"showLegend\",\"scatterlike\"],n.meta={},e.exports=n},{\"../../plots/mapbox\":802,\"../scatter/marker_colorbar\":1061,\"../scattergeo/calc\":1084,\"./attributes\":1097,\"./defaults\":1099,\"./event_data\":1100,\"./hover\":1101,\"./plot\":1103,\"./select\":1104}],1103:[function(t,e,r){\"use strict\";var n=t(\"./convert\");function i(t,e){this.subplot=t,this.uid=e,this.sourceIds={fill:e+\"-source-fill\",line:e+\"-source-line\",circle:e+\"-source-circle\",symbol:e+\"-source-symbol\"},this.layerIds={fill:e+\"-layer-fill\",line:e+\"-layer-line\",circle:e+\"-layer-circle\",symbol:e+\"-layer-symbol\"},this.order=[\"fill\",\"line\",\"circle\",\"symbol\"]}var a=i.prototype;a.addSource=function(t,e){this.subplot.map.addSource(this.sourceIds[t],{type:\"geojson\",data:e.geojson})},a.setSourceData=function(t,e){this.subplot.map.getSource(this.sourceIds[t]).setData(e.geojson)},a.addLayer=function(t,e){this.subplot.map.addLayer({type:t,id:this.layerIds[t],source:this.sourceIds[t],layout:e.layout,paint:e.paint})},a.update=function(t){for(var e=this.subplot,r=n(t),i=0;i<this.order.length;i++){var a=this.order[i],o=r[a];e.setOptions(this.layerIds[a],\"setLayoutProperty\",o.layout),\"visible\"===o.layout.visibility&&(this.setSourceData(a,o),e.setOptions(this.layerIds[a],\"setPaintProperty\",o.paint))}t[0].trace._glTrace=this},a.dispose=function(){for(var t=this.subplot.map,e=0;e<this.order.length;e++){var r=this.order[e];t.removeLayer(this.layerIds[r]),t.removeSource(this.sourceIds[r])}},e.exports=function(t,e){for(var r=new i(t,e[0].trace.uid),a=n(e),o=0;o<r.order.length;o++){var s=r.order[o],l=a[s];r.addSource(s,l),r.addLayer(s,l)}return e[0].trace._glTrace=r,r}},{\"./convert\":1098}],1104:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../scatter/subtypes\"),a=t(\"../../constants/numerical\").BADNUM;e.exports=function(t,e){var r,o=t.cd,s=t.xaxis,l=t.yaxis,c=[],u=o[0].trace;if(!i.hasMarkers(u))return[];if(!1===e)for(r=0;r<o.length;r++)o[r].selected=0;else for(r=0;r<o.length;r++){var f=o[r],h=f.lonlat;if(h[0]!==a){var p=[n.modHalf(h[0],360),h[1]],d=[s.c2p(p),l.c2p(p)];e.contains(d,null,r,t)?(c.push({pointNumber:r,lon:h[0],lat:h[1]}),f.selected=1):f.selected=0}}return c}},{\"../../constants/numerical\":673,\"../../lib\":696,\"../scatter/subtypes\":1067}],1105:[function(t,e,r){\"use strict\";var n=t(\"../../lib/extend\").extendFlat,i=t(\"../scatter/attributes\"),a=t(\"../../plots/attributes\"),o=i.line;e.exports={mode:i.mode,r:{valType:\"data_array\",editType:\"calc+clearAxisTypes\"},theta:{valType:\"data_array\",editType:\"calc+clearAxisTypes\"},r0:{valType:\"any\",dflt:0,editType:\"calc+clearAxisTypes\"},dr:{valType:\"number\",dflt:1,editType:\"calc\"},theta0:{valType:\"any\",dflt:0,editType:\"calc+clearAxisTypes\"},dtheta:{valType:\"number\",editType:\"calc\"},thetaunit:{valType:\"enumerated\",values:[\"radians\",\"degrees\",\"gradians\"],dflt:\"degrees\",editType:\"calc+clearAxisTypes\"},text:i.text,hovertext:i.hovertext,line:{color:o.color,width:o.width,dash:o.dash,shape:n({},o.shape,{values:[\"linear\",\"spline\"]}),smoothing:o.smoothing,editType:\"calc\"},connectgaps:i.connectgaps,marker:i.marker,cliponaxis:n({},i.cliponaxis,{dflt:!1}),textposition:i.textposition,textfont:i.textfont,fill:n({},i.fill,{values:[\"none\",\"toself\",\"tonext\"],dflt:\"none\"}),fillcolor:i.fillcolor,hoverinfo:n({},a.hoverinfo,{flags:[\"r\",\"theta\",\"text\",\"name\"]}),hoveron:i.hoveron,selected:i.selected,unselected:i.unselected}},{\"../../lib/extend\":685,\"../../plots/attributes\":741,\"../scatter/attributes\":1043}],1106:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../../constants/numerical\").BADNUM,a=t(\"../../plots/cartesian/axes\"),o=t(\"../scatter/colorscale_calc\"),s=t(\"../scatter/arrays_to_calcdata\"),l=t(\"../scatter/calc_selection\"),c=t(\"../scatter/calc\").calcMarkerSize;e.exports=function(t,e){for(var r=t._fullLayout,u=e.subplot,f=r[u].radialaxis,h=r[u].angularaxis,p=f.makeCalcdata(e,\"r\"),d=h.makeCalcdata(e,\"theta\"),g=e._length,v=new Array(g),m=0;m<g;m++){var y=p[m],x=d[m],b=v[m]={};n(y)&&n(x)?(b.r=y,b.theta=x):b.r=i}var _=c(e,g);return e._extremes.x=a.findExtremes(f,p,{ppad:_}),o(e),s(v,e),l(v,e),v}},{\"../../constants/numerical\":673,\"../../plots/cartesian/axes\":744,\"../scatter/arrays_to_calcdata\":1042,\"../scatter/calc\":1044,\"../scatter/calc_selection\":1045,\"../scatter/colorscale_calc\":1046,\"fast-isnumeric\":214}],1107:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../scatter/subtypes\"),a=t(\"../scatter/marker_defaults\"),o=t(\"../scatter/line_defaults\"),s=t(\"../scatter/line_shape_defaults\"),l=t(\"../scatter/text_defaults\"),c=t(\"../scatter/fillcolor_defaults\"),u=t(\"../scatter/constants\").PTS_LINESONLY,f=t(\"./attributes\");function h(t,e,r,n){var i,a=n(\"r\"),o=n(\"theta\");if(a)o?i=Math.min(a.length,o.length):(i=a.length,n(\"theta0\"),n(\"dtheta\"));else{if(!o)return 0;i=e.theta.length,n(\"r0\"),n(\"dr\")}return e._length=i,i}e.exports={handleRThetaDefaults:h,supplyDefaults:function(t,e,r,p){function d(r,i){return n.coerce(t,e,f,r,i)}var g=h(0,e,0,d);if(g){d(\"thetaunit\"),d(\"mode\",g<u?\"lines+markers\":\"lines\"),d(\"text\"),d(\"hovertext\"),i.hasLines(e)&&(o(t,e,r,p,d),s(t,e,d),d(\"connectgaps\")),i.hasMarkers(e)&&a(t,e,r,p,d,{gradient:!0}),i.hasText(e)&&l(t,e,p,d);var v=[];(i.hasMarkers(e)||i.hasText(e))&&(d(\"cliponaxis\"),d(\"marker.maxdisplayed\"),v.push(\"points\")),d(\"fill\"),\"none\"!==e.fill&&(c(t,e,r,d),i.hasLines(e)||s(t,e,d)),\"tonext\"!==e.fill&&\"toself\"!==e.fill||v.push(\"fills\"),d(\"hoveron\",v.join(\"+\")||\"points\"),n.coerceSelectionMarkerOpacity(e,d)}else e.visible=!1}}},{\"../../lib\":696,\"../scatter/constants\":1047,\"../scatter/fillcolor_defaults\":1052,\"../scatter/line_defaults\":1056,\"../scatter/line_shape_defaults\":1058,\"../scatter/marker_defaults\":1062,\"../scatter/subtypes\":1067,\"../scatter/text_defaults\":1068,\"./attributes\":1105}],1108:[function(t,e,r){\"use strict\";var n=t(\"../scatter/hover\"),i=t(\"../../plots/cartesian/axes\"),a=t(\"../../lib\");function o(t,e,r,n){var o=r.radialAxis,s=r.angularAxis,l=(t.hi||e.hoverinfo).split(\"+\"),c=[];function u(t,e){c.push(t._hovertitle+\": \"+i.tickText(t,e,\"hover\").text)}if(o._hovertitle=\"r\",s._hovertitle=\"\\u03b8\",-1!==l.indexOf(\"all\")&&(l=[\"r\",\"theta\",\"text\"]),-1!==l.indexOf(\"r\")&&u(o,o.c2l(t.r)),-1!==l.indexOf(\"theta\")){var f=t.theta;u(s,\"degrees\"===s.thetaunit?a.rad2deg(f):f)}-1!==l.indexOf(\"text\")&&n.text&&(c.push(n.text),delete n.text),n.extraText=c.join(\"<br>\")}e.exports={hoverPoints:function(t,e,r,i){var a=n(t,e,r,i);if(a&&!1!==a[0].index){var s=a[0];if(void 0===s.index)return a;var l=t.subplot,c=s.cd[s.index],u=s.trace;if(l.isPtInside(c))return s.xLabelVal=void 0,s.yLabelVal=void 0,o(c,u,l,s),a}},makeHoverPointText:o}},{\"../../lib\":696,\"../../plots/cartesian/axes\":744,\"../scatter/hover\":1054}],1109:[function(t,e,r){\"use strict\";e.exports={moduleType:\"trace\",name:\"scatterpolar\",basePlotModule:t(\"../../plots/polar\"),categories:[\"polar\",\"symbols\",\"showLegend\",\"scatter-like\"],attributes:t(\"./attributes\"),supplyDefaults:t(\"./defaults\").supplyDefaults,colorbar:t(\"../scatter/marker_colorbar\"),calc:t(\"./calc\"),plot:t(\"./plot\"),style:t(\"../scatter/style\").style,hoverPoints:t(\"./hover\").hoverPoints,selectPoints:t(\"../scatter/select\"),meta:{}}},{\"../../plots/polar\":811,\"../scatter/marker_colorbar\":1061,\"../scatter/select\":1064,\"../scatter/style\":1066,\"./attributes\":1105,\"./calc\":1106,\"./defaults\":1107,\"./hover\":1108,\"./plot\":1110}],1110:[function(t,e,r){\"use strict\";var n=t(\"../scatter/plot\"),i=t(\"../../constants/numerical\").BADNUM;e.exports=function(t,e,r){for(var a=e.layers.frontplot.select(\"g.scatterlayer\"),o={xaxis:e.xaxis,yaxis:e.yaxis,plot:e.framework,layerClipId:e._hasClipOnAxisFalse?e.clipIds.forTraces:null},s=e.radialAxis,l=e.angularAxis,c=0;c<r.length;c++)for(var u=r[c],f=0;f<u.length;f++){var h=u[f],p=h.r;if(p===i)h.x=h.y=i;else{var d=s.c2g(p),g=l.c2g(h.theta);h.x=d*Math.cos(g),h.y=d*Math.sin(g)}}n(t,o,r,a)}},{\"../../constants/numerical\":673,\"../scatter/plot\":1063}],1111:[function(t,e,r){\"use strict\";var n=t(\"../scatterpolar/attributes\"),i=t(\"../scattergl/attributes\");e.exports={mode:n.mode,r:n.r,theta:n.theta,r0:n.r0,dr:n.dr,theta0:n.theta0,dtheta:n.dtheta,thetaunit:n.thetaunit,text:n.text,hovertext:n.hovertext,line:i.line,connectgaps:i.connectgaps,marker:i.marker,fill:i.fill,fillcolor:i.fillcolor,textposition:i.textposition,textfont:i.textfont,hoverinfo:n.hoverinfo,selected:n.selected,unselected:n.unselected}},{\"../scattergl/attributes\":1092,\"../scatterpolar/attributes\":1105}],1112:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../scatter/subtypes\"),a=t(\"../scatterpolar/defaults\").handleRThetaDefaults,o=t(\"../scatter/marker_defaults\"),s=t(\"../scatter/line_defaults\"),l=t(\"../scatter/text_defaults\"),c=t(\"../scatter/fillcolor_defaults\"),u=t(\"../scatter/constants\").PTS_LINESONLY,f=t(\"./attributes\");e.exports=function(t,e,r,h){function p(r,i){return n.coerce(t,e,f,r,i)}var d=a(t,e,h,p);d?(p(\"thetaunit\"),p(\"mode\",d<u?\"lines+markers\":\"lines\"),p(\"text\"),p(\"hovertext\"),i.hasLines(e)&&(s(t,e,r,h,p),p(\"connectgaps\")),i.hasMarkers(e)&&o(t,e,r,h,p),i.hasText(e)&&l(t,e,h,p),p(\"fill\"),\"none\"!==e.fill&&c(t,e,r,p),n.coerceSelectionMarkerOpacity(e,p)):e.visible=!1}},{\"../../lib\":696,\"../scatter/constants\":1047,\"../scatter/fillcolor_defaults\":1052,\"../scatter/line_defaults\":1056,\"../scatter/marker_defaults\":1062,\"../scatter/subtypes\":1067,\"../scatter/text_defaults\":1068,\"../scatterpolar/defaults\":1107,\"./attributes\":1111}],1113:[function(t,e,r){\"use strict\";var n=t(\"point-cluster\"),i=t(\"fast-isnumeric\"),a=t(\"../scattergl\"),o=t(\"../scatter/colorscale_calc\"),s=t(\"../scatter/calc\").calcMarkerSize,l=t(\"../scattergl/convert\"),c=t(\"../../lib\"),u=t(\"../../plots/cartesian/axes\"),f=t(\"../scatterpolar/hover\").makeHoverPointText,h=t(\"../scattergl/constants\").TOO_MANY_POINTS;e.exports={moduleType:\"trace\",name:\"scatterpolargl\",basePlotModule:t(\"../../plots/polar\"),categories:[\"gl\",\"regl\",\"polar\",\"symbols\",\"showLegend\",\"scatter-like\"],attributes:t(\"./attributes\"),supplyDefaults:t(\"./defaults\"),colorbar:t(\"../scatter/marker_colorbar\"),calc:function(t,e){var r=t._fullLayout,n=e.subplot,i=r[n].radialaxis,a=r[n].angularaxis,c=i.makeCalcdata(e,\"r\"),f=a.makeCalcdata(e,\"theta\"),p=e._length,d={};p<c.length&&(c=c.slice(0,p)),p<f.length&&(f=f.slice(0,p)),d.r=c,d.theta=f,o(e);var g,v=d.opts=l.style(t,e);return p<h?g=s(e,p):v.marker&&(g=2*(v.marker.sizeAvg||Math.max(v.marker.size,3))),e._extremes.x=u.findExtremes(i,c,{ppad:g}),[{x:!1,y:!1,t:d,trace:e}]},plot:function(t,e,r){if(r.length){var o=e.radialAxis,s=e.angularAxis,u=a.sceneUpdate(t,e);return r.forEach(function(r){if(r&&r[0]&&r[0].trace){var a,f=r[0],p=f.trace,d=f.t,g=p._length,v=d.r,m=d.theta,y=d.opts,x=v.slice(),b=m.slice();for(a=0;a<v.length;a++)e.isPtInside({r:v[a],theta:m[a]})||(x[a]=NaN,b[a]=NaN);var _=new Array(2*g),w=Array(g),k=Array(g);for(a=0;a<g;a++){var M,A,T=x[a];if(i(T)){var S=o.c2g(T),E=s.c2g(b[a],p.thetaunit);M=S*Math.cos(E),A=S*Math.sin(E)}else M=A=NaN;w[a]=_[2*a]=M,k[a]=_[2*a+1]=A}d.tree=n(_),y.marker&&g>=h&&(y.marker.cluster=d.tree),y.marker&&(y.markerSel.positions=y.markerUnsel.positions=y.marker.positions=_),y.line&&_.length>1&&c.extendFlat(y.line,l.linePositions(t,p,_)),y.text&&(c.extendFlat(y.text,{positions:_},l.textPosition(t,p,y.text,y.marker)),c.extendFlat(y.textSel,{positions:_},l.textPosition(t,p,y.text,y.markerSel)),c.extendFlat(y.textUnsel,{positions:_},l.textPosition(t,p,y.text,y.markerUnsel))),y.fill&&!u.fill2d&&(u.fill2d=!0),y.marker&&!u.scatter2d&&(u.scatter2d=!0),y.line&&!u.line2d&&(u.line2d=!0),y.text&&!u.glText&&(u.glText=!0),u.lineOptions.push(y.line),u.fillOptions.push(y.fill),u.markerOptions.push(y.marker),u.markerSelectedOptions.push(y.markerSel),u.markerUnselectedOptions.push(y.markerUnsel),u.textOptions.push(y.text),u.textSelectedOptions.push(y.textSel),u.textUnselectedOptions.push(y.textUnsel),d.x=w,d.y=k,d.rawx=w,d.rawy=k,d.r=v,d.theta=m,d.positions=_,d._scene=u,d.index=u.count,u.count++}}),a.plot(t,e,r)}},hoverPoints:function(t,e,r,n){var i=t.cd[0].t,o=i.r,s=i.theta,l=a.hoverPoints(t,e,r,n);if(l&&!1!==l[0].index){var c=l[0];if(void 0===c.index)return l;var u=t.subplot,h=c.cd[c.index],p=c.trace;if(h.r=o[c.index],h.theta=s[c.index],u.isPtInside(h))return c.xLabelVal=void 0,c.yLabelVal=void 0,f(h,p,u,c),l}},selectPoints:a.selectPoints,meta:{}}},{\"../../lib\":696,\"../../plots/cartesian/axes\":744,\"../../plots/polar\":811,\"../scatter/calc\":1044,\"../scatter/colorscale_calc\":1046,\"../scatter/marker_colorbar\":1061,\"../scattergl\":1096,\"../scattergl/constants\":1093,\"../scattergl/convert\":1094,\"../scatterpolar/hover\":1108,\"./attributes\":1111,\"./defaults\":1112,\"fast-isnumeric\":214,\"point-cluster\":452}],1114:[function(t,e,r){\"use strict\";var n=t(\"../scatter/attributes\"),i=t(\"../../plots/attributes\"),a=t(\"../../components/colorscale/attributes\"),o=t(\"../../components/colorbar/attributes\"),s=t(\"../../components/drawing/attributes\").dash,l=t(\"../../lib/extend\").extendFlat,c=n.marker,u=n.line,f=c.line;e.exports={a:{valType:\"data_array\",editType:\"calc\"},b:{valType:\"data_array\",editType:\"calc\"},c:{valType:\"data_array\",editType:\"calc\"},sum:{valType:\"number\",dflt:0,min:0,editType:\"calc\"},mode:l({},n.mode,{dflt:\"markers\"}),text:l({},n.text,{}),hovertext:l({},n.hovertext,{}),line:{color:u.color,width:u.width,dash:s,shape:l({},u.shape,{values:[\"linear\",\"spline\"]}),smoothing:u.smoothing,editType:\"calc\"},connectgaps:n.connectgaps,cliponaxis:n.cliponaxis,fill:l({},n.fill,{values:[\"none\",\"toself\",\"tonext\"],dflt:\"none\"}),fillcolor:n.fillcolor,marker:l({symbol:c.symbol,opacity:c.opacity,maxdisplayed:c.maxdisplayed,size:c.size,sizeref:c.sizeref,sizemin:c.sizemin,sizemode:c.sizemode,line:l({width:f.width,editType:\"calc\"},a(\"marker.line\")),gradient:c.gradient,editType:\"calc\"},a(\"marker\"),{colorbar:o}),textfont:n.textfont,textposition:n.textposition,selected:n.selected,unselected:n.unselected,hoverinfo:l({},i.hoverinfo,{flags:[\"a\",\"b\",\"c\",\"text\",\"name\"]}),hoveron:n.hoveron}},{\"../../components/colorbar/attributes\":571,\"../../components/colorscale/attributes\":577,\"../../components/drawing/attributes\":594,\"../../lib/extend\":685,\"../../plots/attributes\":741,\"../scatter/attributes\":1043}],1115:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../scatter/colorscale_calc\"),a=t(\"../scatter/arrays_to_calcdata\"),o=t(\"../scatter/calc_selection\"),s=t(\"../scatter/calc\").calcMarkerSize,l=[\"a\",\"b\",\"c\"],c={a:[\"b\",\"c\"],b:[\"a\",\"c\"],c:[\"a\",\"b\"]};e.exports=function(t,e){var r,u,f,h,p,d,g=t._fullLayout[e.subplot].sum,v=e.sum||g,m={a:e.a,b:e.b,c:e.c};for(r=0;r<l.length;r++)if(!m[f=l[r]]){for(p=m[c[f][0]],d=m[c[f][1]],h=new Array(p.length),u=0;u<p.length;u++)h[u]=v-p[u]-d[u];m[f]=h}var y,x,b,_,w,k,M=e._length,A=new Array(M);for(r=0;r<M;r++)y=m.a[r],x=m.b[r],b=m.c[r],n(y)&&n(x)&&n(b)?(1!==(_=g/((y=+y)+(x=+x)+(b=+b)))&&(y*=_,x*=_,b*=_),k=y,w=b-x,A[r]={x:w,y:k,a:y,b:x,c:b}):A[r]={x:!1,y:!1};return s(e,M),i(e),a(A,e),o(A,e),A}},{\"../scatter/arrays_to_calcdata\":1042,\"../scatter/calc\":1044,\"../scatter/calc_selection\":1045,\"../scatter/colorscale_calc\":1046,\"fast-isnumeric\":214}],1116:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../scatter/constants\"),a=t(\"../scatter/subtypes\"),o=t(\"../scatter/marker_defaults\"),s=t(\"../scatter/line_defaults\"),l=t(\"../scatter/line_shape_defaults\"),c=t(\"../scatter/text_defaults\"),u=t(\"../scatter/fillcolor_defaults\"),f=t(\"./attributes\");e.exports=function(t,e,r,h){function p(r,i){return n.coerce(t,e,f,r,i)}var d,g=p(\"a\"),v=p(\"b\"),m=p(\"c\");if(g?(d=g.length,v?(d=Math.min(d,v.length),m&&(d=Math.min(d,m.length))):d=m?Math.min(d,m.length):0):v&&m&&(d=Math.min(v.length,m.length)),d){e._length=d,p(\"sum\"),p(\"text\"),p(\"hovertext\"),p(\"mode\",d<i.PTS_LINESONLY?\"lines+markers\":\"lines\"),a.hasLines(e)&&(s(t,e,r,h,p),l(t,e,p),p(\"connectgaps\")),a.hasMarkers(e)&&o(t,e,r,h,p,{gradient:!0}),a.hasText(e)&&c(t,e,h,p);var y=[];(a.hasMarkers(e)||a.hasText(e))&&(p(\"cliponaxis\"),p(\"marker.maxdisplayed\"),y.push(\"points\")),p(\"fill\"),\"none\"!==e.fill&&(u(t,e,r,p),a.hasLines(e)||l(t,e,p)),\"tonext\"!==e.fill&&\"toself\"!==e.fill||y.push(\"fills\"),p(\"hoveron\",y.join(\"+\")||\"points\"),n.coerceSelectionMarkerOpacity(e,p)}else e.visible=!1}},{\"../../lib\":696,\"../scatter/constants\":1047,\"../scatter/fillcolor_defaults\":1052,\"../scatter/line_defaults\":1056,\"../scatter/line_shape_defaults\":1058,\"../scatter/marker_defaults\":1062,\"../scatter/subtypes\":1067,\"../scatter/text_defaults\":1068,\"./attributes\":1114}],1117:[function(t,e,r){\"use strict\";e.exports=function(t,e,r,n,i){if(e.xa&&(t.xaxis=e.xa),e.ya&&(t.yaxis=e.ya),n[i]){var a=n[i];t.a=a.a,t.b=a.b,t.c=a.c}else t.a=e.a,t.b=e.b,t.c=e.c;return t}},{}],1118:[function(t,e,r){\"use strict\";var n=t(\"../scatter/hover\"),i=t(\"../../plots/cartesian/axes\");e.exports=function(t,e,r,a){var o=n(t,e,r,a);if(o&&!1!==o[0].index){var s=o[0];if(void 0===s.index){var l=1-s.y0/t.ya._length,c=t.xa._length,u=c*l/2,f=c-u;return s.x0=Math.max(Math.min(s.x0,f),u),s.x1=Math.max(Math.min(s.x1,f),u),o}var h=s.cd[s.index];s.a=h.a,s.b=h.b,s.c=h.c,s.xLabelVal=void 0,s.yLabelVal=void 0;var p=s.trace,d=s.subplot,g=(h.hi||p.hoverinfo).split(\"+\"),v=[];return-1!==g.indexOf(\"all\")&&(g=[\"a\",\"b\",\"c\"]),-1!==g.indexOf(\"a\")&&m(d.aaxis,h.a),-1!==g.indexOf(\"b\")&&m(d.baxis,h.b),-1!==g.indexOf(\"c\")&&m(d.caxis,h.c),s.extraText=v.join(\"<br>\"),o}function m(t,e){v.push(t._hovertitle+\": \"+i.tickText(t,e,\"hover\").text)}}},{\"../../plots/cartesian/axes\":744,\"../scatter/hover\":1054}],1119:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.supplyDefaults=t(\"./defaults\"),n.colorbar=t(\"../scatter/marker_colorbar\"),n.calc=t(\"./calc\"),n.plot=t(\"./plot\"),n.style=t(\"../scatter/style\").style,n.styleOnSelect=t(\"../scatter/style\").styleOnSelect,n.hoverPoints=t(\"./hover\"),n.selectPoints=t(\"../scatter/select\"),n.eventData=t(\"./event_data\"),n.moduleType=\"trace\",n.name=\"scatterternary\",n.basePlotModule=t(\"../../plots/ternary\"),n.categories=[\"ternary\",\"symbols\",\"showLegend\",\"scatter-like\"],n.meta={},e.exports=n},{\"../../plots/ternary\":823,\"../scatter/marker_colorbar\":1061,\"../scatter/select\":1064,\"../scatter/style\":1066,\"./attributes\":1114,\"./calc\":1115,\"./defaults\":1116,\"./event_data\":1117,\"./hover\":1118,\"./plot\":1120}],1120:[function(t,e,r){\"use strict\";var n=t(\"../scatter/plot\");e.exports=function(t,e,r){var i=e.plotContainer;i.select(\".scatterlayer\").selectAll(\"*\").remove();var a={xaxis:e.xaxis,yaxis:e.yaxis,plot:i,layerClipId:e._hasClipOnAxisFalse?e.clipIdRelative:null},o=e.layers.frontplot.select(\"g.scatterlayer\");n(t,a,r,o)}},{\"../scatter/plot\":1063}],1121:[function(t,e,r){\"use strict\";var n=t(\"../scatter/attributes\"),i=t(\"../../components/colorscale/attributes\"),a=t(\"../scattergl/attributes\"),o=t(\"../../plots/cartesian/constants\").idRegex,s=t(\"../../plot_api/plot_template\").templatedArray,l=t(\"../../lib/extend\").extendFlat,c=n.marker,u=c.line,f=l(i(\"marker.line\",{editTypeOverride:\"calc\"}),{width:l({},u.width,{editType:\"calc\"}),editType:\"calc\"}),h=l(i(\"marker\"),{symbol:c.symbol,size:l({},c.size,{editType:\"markerSize\"}),sizeref:c.sizeref,sizemin:c.sizemin,sizemode:c.sizemode,opacity:c.opacity,colorbar:c.colorbar,line:f,editType:\"calc\"});function p(t){return{valType:\"info_array\",freeLength:!0,editType:\"calc\",items:{valType:\"subplotid\",regex:o[t],editType:\"plot\"}}}h.color.editType=h.cmin.editType=h.cmax.editType=\"style\",e.exports={dimensions:s(\"dimension\",{visible:{valType:\"boolean\",dflt:!0,editType:\"calc\"},label:{valType:\"string\",editType:\"calc\"},values:{valType:\"data_array\",editType:\"calc+clearAxisTypes\"},axis:{type:{valType:\"enumerated\",values:[\"linear\",\"log\",\"date\",\"category\"],editType:\"calc+clearAxisTypes\"},editType:\"calc+clearAxisTypes\"},editType:\"calc+clearAxisTypes\"}),text:l({},a.text,{}),marker:h,xaxes:p(\"x\"),yaxes:p(\"y\"),diagonal:{visible:{valType:\"boolean\",dflt:!0,editType:\"calc\"},editType:\"calc\"},showupperhalf:{valType:\"boolean\",dflt:!0,editType:\"calc\"},showlowerhalf:{valType:\"boolean\",dflt:!0,editType:\"calc\"},selected:{marker:a.selected.marker,editType:\"calc\"},unselected:{marker:a.unselected.marker,editType:\"calc\"},opacity:a.opacity}},{\"../../components/colorscale/attributes\":577,\"../../lib/extend\":685,\"../../plot_api/plot_template\":734,\"../../plots/cartesian/constants\":750,\"../scatter/attributes\":1043,\"../scattergl/attributes\":1092}],1122:[function(t,e,r){\"use strict\";var n=t(\"regl-line2d\"),i=t(\"../../registry\"),a=t(\"../../lib/prepare_regl\"),o=t(\"../../plots/get_data\").getModuleCalcData,s=t(\"../../plots/cartesian\"),l=t(\"../../plots/cartesian/axis_ids\").getFromId,c=t(\"../../plots/cartesian/axes\").shouldShowZeroLine,u=\"splom\";function f(t,e,r){for(var n=r.matrixOptions.data.length,i=e._visibleDims,a=r.viewOpts.ranges=new Array(n),o=0;o<i.length;o++){var s=i[o],c=a[o]=new Array(4),u=l(t,e._diag[s][0]);u&&(c[0]=u.r2l(u.range[0]),c[2]=u.r2l(u.range[1]));var f=l(t,e._diag[s][1]);f&&(c[1]=f.r2l(f.range[0]),c[3]=f.r2l(f.range[1]))}r.selectBatch?r.matrix.update({ranges:a},{ranges:a}):r.matrix.update({ranges:a})}function h(t){var e=t._fullLayout,r=e._glcanvas.data()[0].regl,i=e._splomGrid;i||(i=e._splomGrid=n(r)),i.update(function(t){var e,r=t._fullLayout,n=r._size,i=[0,0,r.width,r.height],a={};function o(t,e,r,n,o,s){var l=e[t+\"color\"],c=e[t+\"width\"],u=String(l+c);u in a?a[u].data.push(NaN,NaN,r,n,o,s):a[u]={data:[r,n,o,s],join:\"rect\",thickness:c,color:l,viewport:i,range:i,overlay:!1}}for(e in r._splomSubplots){var s,l,u=r._plots[e],f=u.xaxis,h=u.yaxis,p=f._vals,d=h._vals,g=n.b+h.domain[0]*n.h,v=-h._m,m=-v*h.r2l(h.range[0],h.calendar);if(f.showgrid)for(e=0;e<p.length;e++)s=f._offset+f.l2p(p[e].x),o(\"grid\",f,s,g,s,g+h._length);if(h.showgrid)for(e=0;e<d.length;e++)l=g+m+v*d[e].x,o(\"grid\",h,f._offset,l,f._offset+f._length,l);c(t,f,h)&&(s=f._offset+f.l2p(0),o(\"zeroline\",f,s,g,s,g+h._length)),c(t,h,f)&&(l=g+m+0,o(\"zeroline\",h,f._offset,l,f._offset+f._length,l))}var y=[];for(e in a)y.push(a[e]);return y}(t))}e.exports={name:u,attr:s.attr,attrRegex:s.attrRegex,layoutAttributes:s.layoutAttributes,supplyLayoutDefaults:s.supplyLayoutDefaults,drawFramework:s.drawFramework,plot:function(t){var e=t._fullLayout,r=i.getModule(u),n=o(t.calcdata,r)[0];a(t,[\"ANGLE_instanced_arrays\",\"OES_element_index_uint\"])&&(e._hasOnlyLargeSploms&&h(t),r.plot(t,{},n))},drag:function(t){var e=t.calcdata,r=t._fullLayout;r._hasOnlyLargeSploms&&h(t);for(var n=0;n<e.length;n++){var i=e[n][0].trace,a=r._splomScenes[i.uid];\"splom\"===i.type&&a&&a.matrix&&f(t,i,a)}},updateGrid:h,clean:function(t,e,r,n){var i,a={};if(n._splomScenes){for(i=0;i<t.length;i++){var o=t[i];\"splom\"===o.type&&(a[o.uid]=1)}for(i=0;i<r.length;i++){var l=r[i];if(!a[l.uid]){var c=n._splomScenes[l.uid];c&&c.destroy&&c.destroy(),n._splomScenes[l.uid]=null,delete n._splomScenes[l.uid]}}}0===Object.keys(n._splomScenes||{}).length&&delete n._splomScenes,n._splomGrid&&!e._hasOnlyLargeSploms&&n._hasOnlyLargeSploms&&(n._splomGrid.destroy(),n._splomGrid=null,delete n._splomGrid),s.clean(t,e,r,n)},updateFx:function(t){s.updateFx(t);var e=t._fullLayout,r=e.dragmode;if(\"zoom\"===r||\"pan\"===r)for(var n=t.calcdata,i=0;i<n.length;i++){var a=n[i][0].trace;if(\"splom\"===a.type){var o=e._splomScenes[a.uid];null===o.selectBatch&&o.matrix.update(o.matrixOptions,null)}}},toSVG:s.toSVG}},{\"../../lib/prepare_regl\":709,\"../../plots/cartesian\":756,\"../../plots/cartesian/axes\":744,\"../../plots/cartesian/axis_ids\":747,\"../../plots/get_data\":781,\"../../registry\":827,\"regl-line2d\":474}],1123:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../plots/array_container_defaults\"),a=t(\"./attributes\"),o=t(\"../scatter/subtypes\"),s=t(\"../scatter/marker_defaults\"),l=t(\"../parcoords/merge_length\"),c=/-open/;function u(t,e){function r(r,i){return n.coerce(t,e,a.dimensions,r,i)}r(\"label\");var i=r(\"values\");i&&i.length?r(\"visible\"):e.visible=!1,r(\"axis.type\")}e.exports=function(t,e,r,f){function h(r,i){return n.coerce(t,e,a,r,i)}var p=i(t,e,{name:\"dimensions\",handleItemDefaults:u}),d=h(\"diagonal.visible\"),g=h(\"showupperhalf\"),v=h(\"showlowerhalf\");if(l(e,p,\"values\")&&(d||g||v)){h(\"text\"),s(t,e,r,f,h);var m=c.test(e.marker.symbol),y=o.isBubble(e);h(\"marker.line.width\",m||y?1:0),function(t,e,r,n){var i,a,o=e.dimensions,s=o.length,l=e.showupperhalf,c=e.showlowerhalf,u=e.diagonal.visible,f=new Array(s),h=new Array(s);for(i=0;i<s;i++){var p=i?i+1:\"\";f[i]=\"x\"+p,h[i]=\"y\"+p}var d=n(\"xaxes\",f),g=n(\"yaxes\",h),v=e._diag=new Array(s);e._xaxes={},e._yaxes={};var m=[],y=[];function x(t,n,i){if(t){var a=t.charAt(0),o=r._splomAxes[a];if(e[\"_\"+a+\"axes\"][t]=1,i.push(t),!(t in o)){var s=o[t]={};n&&(s.label=n.label||\"\",n.visible&&n.axis&&(s.type=n.axis.type))}}}var b=!u&&!c,_=!u&&!l;for(i=0;i<s;i++){var w=o[i],k=0===i,M=i===s-1,A=k&&b||M&&_?void 0:d[i],T=k&&_||M&&b?void 0:g[i];x(A,w,m),x(T,w,y),v[i]=[A,T]}for(i=0;i<m.length;i++)for(a=0;a<y.length;a++){var S=m[i]+y[a];i>a&&l?r._splomSubplots[S]=1:i<a&&c?r._splomSubplots[S]=1:i!==a||!u&&c&&l||(r._splomSubplots[S]=1)}(!c||!u&&l&&c)&&(r._splomGridDflt.xside=\"bottom\",r._splomGridDflt.yside=\"left\")}(0,e,f,h),n.coerceSelectionMarkerOpacity(e,h)}else e.visible=!1}},{\"../../lib\":696,\"../../plots/array_container_defaults\":740,\"../parcoords/merge_length\":1015,\"../scatter/marker_defaults\":1062,\"../scatter/subtypes\":1067,\"./attributes\":1121}],1124:[function(t,e,r){\"use strict\";var n=t(\"regl-splom\"),i=t(\"array-range\"),a=t(\"../../registry\"),o=t(\"../../components/grid\"),s=t(\"../../lib\"),l=t(\"../../plots/cartesian/axis_ids\"),c=t(\"../scatter/subtypes\"),u=t(\"../scatter/calc\").calcMarkerSize,f=t(\"../scatter/calc\").calcAxisExpansion,h=t(\"../scatter/colorscale_calc\"),p=t(\"../scattergl/convert\").markerSelection,d=t(\"../scattergl/convert\").markerStyle,g=t(\"../scattergl\").calcHover,v=t(\"../../constants/numerical\").BADNUM,m=t(\"../scattergl/constants\").TOO_MANY_POINTS;function y(t,e){var r,i,a,o,c,u=t._fullLayout,f=u._size,h=e.trace,p=e.t,d=u._splomScenes[h.uid],g=d.matrixOptions,v=g.cdata,m=u._glcanvas.data()[0].regl,y=u.dragmode;if(0!==v.length){g.lower=h.showupperhalf,g.upper=h.showlowerhalf,g.diagonal=h.diagonal.visible;var x=h._visibleDims,b=v.length,_=d.viewOpts={};for(_.ranges=new Array(b),_.domains=new Array(b),c=0;c<x.length;c++){a=x[c];var w=_.ranges[c]=new Array(4),k=_.domains[c]=new Array(4);(r=l.getFromId(t,h._diag[a][0]))&&(w[0]=r._rl[0],w[2]=r._rl[1],k[0]=r.domain[0],k[2]=r.domain[1]),(i=l.getFromId(t,h._diag[a][1]))&&(w[1]=i._rl[0],w[3]=i._rl[1],k[1]=i.domain[0],k[3]=i.domain[1])}_.viewport=[f.l,f.b,f.w+f.l,f.h+f.b],!0===d.matrix&&(d.matrix=n(m));var M=u.clickmode.indexOf(\"select\")>-1,A=\"lasso\"===y||\"select\"===y||!!h.selectedpoints||M;if(d.selectBatch=null,d.unselectBatch=null,A){var T=h._length;if(d.selectBatch||(d.selectBatch=[],d.unselectBatch=[]),h.selectedpoints){d.selectBatch=h.selectedpoints;var S=h.selectedpoints,E={};for(a=0;a<S.length;a++)E[S[a]]=!0;var C=[];for(a=0;a<T;a++)E[a]||C.push(a);d.unselectBatch=C}var L=p.xpx=new Array(b),z=p.ypx=new Array(b);for(c=0;c<x.length;c++){if(a=x[c],r=l.getFromId(t,h._diag[a][0]))for(L[c]=new Array(T),o=0;o<T;o++)L[c][o]=r.c2p(v[c][o]);if(i=l.getFromId(t,h._diag[a][1]))for(z[c]=new Array(T),o=0;o<T;o++)z[c][o]=i.c2p(v[c][o])}d.selectBatch?(d.matrix.update(g,g),d.matrix.update(d.unselectedOptions,d.selectedOptions),d.matrix.update(_,_)):d.matrix.update(_,null)}else{var O=s.extendFlat({},g,_);d.matrix.update(O,null),p.xpx=p.ypx=null}}}function x(t,e){for(var r=e._id,n={x:0,y:1}[r.charAt(0)],i=t._visibleDims,a=0;a<i.length;a++){var o=i[a];if(t._diag[o][n]===r)return a}return!1}e.exports={moduleType:\"trace\",name:\"splom\",basePlotModule:t(\"./base_plot\"),categories:[\"gl\",\"regl\",\"cartesian\",\"symbols\",\"showLegend\",\"scatter-like\"],attributes:t(\"./attributes\"),supplyDefaults:t(\"./defaults\"),colorbar:t(\"../scatter/marker_colorbar\"),calc:function(t,e){var r,n,i,a,o,c,g=e.dimensions,y=e._length,x={},b=x.cdata=[],_=x.data=[],w=e._visibleDims=[];function k(t,r){for(var n=t.makeCalcdata({v:r.values,vcalendar:e.calendar},\"v\"),i=0;i<n.length;i++)n[i]=n[i]===v?NaN:n[i];b.push(n),_.push(\"log\"===t.type?s.simpleMap(n,t.c2l):n)}for(r=0;r<g.length;r++)if((i=g[r]).visible){if(a=l.getFromId(t,e._diag[r][0]),o=l.getFromId(t,e._diag[r][1]),a&&o&&a.type!==o.type){s.log(\"Skipping splom dimension \"+r+\" with conflicting axis types\");continue}a?(k(a,i),o&&\"category\"===o.type&&(o._categories=a._categories.slice())):k(o,i),w.push(r)}for(h(e),s.extendFlat(x,d(e)),c=b.length*y>m?2*(x.sizeAvg||Math.max(x.size,3)):u(e,y),n=0;n<w.length;n++)i=g[r=w[n]],a=l.getFromId(t,e._diag[r][0])||{},o=l.getFromId(t,e._diag[r][1])||{},f(t,e,a,o,b[n],b[n],c);var M=function(t,e){var r=t._fullLayout,n=e.uid,i=r._splomScenes;i||(i=r._splomScenes={});var a={dirty:!0},o=i[e.uid];return o||((o=i[n]=s.extendFlat({},a,{selectBatch:null,unselectBatch:null,matrix:!1,select:null})).draw=function(){o.matrix&&o.matrix.draw&&(o.selectBatch?o.matrix.draw(o.unselectBatch,o.selectBatch):o.matrix.draw()),o.dirty=!1},o.destroy=function(){o.matrix&&o.matrix.destroy&&o.matrix.destroy(),o.matrixOptions=null,o.selectBatch=null,o.unselectBatch=null,o=null}),o.dirty||s.extendFlat(o,a),o}(t,e);return M.matrix||(M.matrix=!0),M.matrixOptions=x,M.selectedOptions=p(e,e.selected),M.unselectedOptions=p(e,e.unselected),[{x:!1,y:!1,t:{},trace:e}]},plot:function(t,e,r){if(r.length)for(var n=0;n<r.length;n++)y(t,r[n][0])},hoverPoints:function(t,e,r){var n=t.cd[0].trace,i=t.scene.matrixOptions.cdata,a=t.xa,o=t.ya,s=a.c2p(e),l=o.c2p(r),c=t.distance,u=x(n,a),f=x(n,o);if(!1===u||!1===f)return[t];for(var h,p,d=i[u],v=i[f],m=c,y=0;y<d.length;y++){var b=d[y],_=v[y],w=a.c2p(b)-s,k=o.c2p(_)-l,M=Math.sqrt(w*w+k*k);M<m&&(m=p=M,h=y)}return t.index=h,t.distance=m,t.dxy=p,void 0===h?[t]:(g(t,d,v,n),[t])},selectPoints:function(t,e){var r,n=t.cd,a=n[0].trace,o=n[0].t,s=t.scene,l=s.matrixOptions.cdata,u=t.xaxis,f=t.yaxis,h=[];if(!s)return h;var p=!c.hasMarkers(a)&&!c.hasText(a);if(!0!==a.visible||p)return h;var d=x(a,u),g=x(a,f);if(!1===d||!1===g)return h;var v=o.xpx[d],m=o.ypx[g],y=l[d],b=l[g],_=null,w=null;if(!1===e||e.degenerate)w=i(o.count);else for(_=[],w=[],r=0;r<y.length;r++)e.contains([v[r],m[r]],null,r,t)?(_.push(r),h.push({pointNumber:r,x:y[r],y:b[r]})):w.push(r);if(s.selectBatch||(s.selectBatch=[],s.unselectBatch=[]),!s.selectBatch){for(r=0;r<s.count;r++)s.selectBatch=[],s.unselectBatch=[];s.matrix.update(s.unselectedOptions,s.selectedOptions)}return s.selectBatch=_,s.unselectBatch=w,h},editStyle:function(t,e){var r=e.trace,n=t._fullLayout._splomScenes[r.uid];if(n){h(r),s.extendFlat(n.matrixOptions,d(r));var i=s.extendFlat({},n.matrixOptions,n.viewOpts);n.matrix.update(i,null)}},meta:{}},a.register(o)},{\"../../components/grid\":616,\"../../constants/numerical\":673,\"../../lib\":696,\"../../plots/cartesian/axis_ids\":747,\"../../registry\":827,\"../scatter/calc\":1044,\"../scatter/colorscale_calc\":1046,\"../scatter/marker_colorbar\":1061,\"../scatter/subtypes\":1067,\"../scattergl\":1096,\"../scattergl/constants\":1093,\"../scattergl/convert\":1094,\"./attributes\":1121,\"./base_plot\":1122,\"./defaults\":1123,\"array-range\":55,\"regl-splom\":477}],1125:[function(t,e,r){\"use strict\";var n=t(\"../../components/colorscale/attributes\"),i=t(\"../../components/colorbar/attributes\"),a=t(\"../mesh3d/attributes\"),o=t(\"../../plots/attributes\"),s=t(\"../../lib/extend\").extendFlat,l={x:{valType:\"data_array\",editType:\"calc+clearAxisTypes\"},y:{valType:\"data_array\",editType:\"calc+clearAxisTypes\"},z:{valType:\"data_array\",editType:\"calc+clearAxisTypes\"},u:{valType:\"data_array\",editType:\"calc\"},v:{valType:\"data_array\",editType:\"calc\"},w:{valType:\"data_array\",editType:\"calc\"},starts:{x:{valType:\"data_array\",editType:\"calc\"},y:{valType:\"data_array\",editType:\"calc\"},z:{valType:\"data_array\",editType:\"calc\"},editType:\"calc\"},maxdisplayed:{valType:\"integer\",min:0,dflt:1e3,editType:\"calc\"},sizeref:{valType:\"number\",editType:\"calc\",min:0,dflt:1},text:{valType:\"string\",dflt:\"\",editType:\"calc\"}};s(l,n(\"\",{colorAttr:\"u/v/w norm\",showScaleDflt:!0,editTypeOverride:\"calc\"}),{colorbar:i});[\"opacity\",\"lightposition\",\"lighting\"].forEach(function(t){l[t]=a[t]}),l.hoverinfo=s({},o.hoverinfo,{editType:\"calc\",flags:[\"x\",\"y\",\"z\",\"u\",\"v\",\"w\",\"norm\",\"divergence\",\"text\",\"name\"],dflt:\"x+y+z+norm+text+name\"}),l.transforms=void 0,e.exports=l},{\"../../components/colorbar/attributes\":571,\"../../components/colorscale/attributes\":577,\"../../lib/extend\":685,\"../../plots/attributes\":741,\"../mesh3d/attributes\":986}],1126:[function(t,e,r){\"use strict\";var n=t(\"../../components/colorscale/calc\");e.exports=function(t,e){var r,i,a,o,s=e.u,l=e.v,c=e.w,u=e.x,f=e.y,h=e.z,p=Math.min(u.length,f.length,h.length,s.length,l.length,c.length),d=0;e.starts&&(i=e.starts.x||[],a=e.starts.y||[],o=e.starts.z||[],d=Math.min(i.length,a.length,o.length));var g=0,v=1/0;for(r=0;r<p;r++){var m=s[r],y=l[r],x=c[r],b=Math.sqrt(m*m+y*y+x*x);g=Math.max(g,b),v=Math.min(v,b)}n(e,[v,g],\"\",\"c\");var _=-1/0,w=1/0,k=-1/0,M=1/0,A=-1/0,T=1/0;for(r=0;r<p;r++){var S=u[r];_=Math.max(_,S),w=Math.min(w,S);var E=f[r];k=Math.max(k,E),M=Math.min(M,E);var C=h[r];A=Math.max(A,C),T=Math.min(T,C)}for(r=0;r<d;r++){var L=i[r];_=Math.max(_,L),w=Math.min(w,L);var z=a[r];k=Math.max(k,z),M=Math.min(M,z);var O=o[r];A=Math.max(A,O),T=Math.min(T,O)}e._len=p,e._slen=d,e._normMax=g,e._xbnds=[w,_],e._ybnds=[M,k],e._zbnds=[T,A]}},{\"../../components/colorscale/calc\":578}],1127:[function(t,e,r){\"use strict\";var n=t(\"gl-streamtube3d\"),i=n.createTubeMesh,a=t(\"../../lib\"),o=t(\"../../lib/gl_format_color\").parseColorScale,s=t(\"../../plots/gl3d/zip3\"),l={xaxis:0,yaxis:1,zaxis:2};function c(t,e){this.scene=t,this.uid=e,this.mesh=null,this.data=null}var u=c.prototype;function f(t){return a.distinctVals(t).vals}function h(t){var e=t.length;return e>2?t.slice(1,e-1):2===e?[(t[0]+t[1])/2]:t}function p(t){var e=t.length;return 1===e?[.5,.5]:[t[1]-t[0],t[e-1]-t[e-2]]}function d(t,e){var r=t.fullSceneLayout,i=t.dataScale,c=e._len,u={};function d(t,e){var n=r[e],o=i[l[e]];return a.simpleMap(t,function(t){return n.d2l(t)*o})}u.vectors=s(d(e.u,\"xaxis\"),d(e.v,\"yaxis\"),d(e.w,\"zaxis\"),c);var g=f(e.x.slice(0,c)),v=f(e.y.slice(0,c)),m=f(e.z.slice(0,c));if(g.length*v.length*m.length>c)return{positions:[],cells:[]};var y=d(g,\"xaxis\"),x=d(v,\"yaxis\"),b=d(m,\"zaxis\");if(u.meshgrid=[y,x,b],e.starts){var _=e._slen;u.startingPositions=s(d(e.starts.x.slice(0,_),\"xaxis\"),d(e.starts.y.slice(0,_),\"yaxis\"),d(e.starts.z.slice(0,_),\"zaxis\"))}else{for(var w=x[0],k=h(y),M=h(b),A=new Array(k.length*M.length),T=0,S=0;S<k.length;S++)for(var E=0;E<M.length;E++)A[T++]=[k[S],w,M[E]];u.startingPositions=A}u.colormap=o(e.colorscale),u.tubeSize=e.sizeref,u.maxLength=e.maxdisplayed;var C=d(e._xbnds,\"xaxis\"),L=d(e._ybnds,\"yaxis\"),z=d(e._zbnds,\"zaxis\"),O=p(y),I=p(x),P=p(b),D=[[C[0]-O[0],L[0]-I[0],z[0]-P[0]],[C[1]+O[1],L[1]+I[1],z[1]+P[1]]],R=n(u,D);R.vertexIntensityBounds=[e.cmin/e._normMax,e.cmax/e._normMax];var B=e.lightposition;return R.lightPosition=[B.x,B.y,B.z],R.ambient=e.lighting.ambient,R.diffuse=e.lighting.diffuse,R.specular=e.lighting.specular,R.roughness=e.lighting.roughness,R.fresnel=e.lighting.fresnel,R.opacity=e.opacity,e._pad=R.tubeScale*e.sizeref*2,R}u.handlePick=function(t){var e=this.scene.fullSceneLayout,r=this.scene.dataScale;function n(t,n){var i=e[n],a=r[l[n]];return i.l2c(t)/a}if(t.object===this.mesh){var i=t.data.position,a=t.data.velocity;return t.traceCoordinate=[n(i[0],\"xaxis\"),n(i[1],\"yaxis\"),n(i[2],\"zaxis\"),n(a[0],\"xaxis\"),n(a[1],\"yaxis\"),n(a[2],\"zaxis\"),t.data.intensity*this.data._normMax,t.data.divergence],t.textLabel=this.data.text,!0}},u.update=function(t){this.data=t;var e=d(this.scene,t);this.mesh.update(e)},u.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()},e.exports=function(t,e){var r=t.glplot.gl,n=d(t,e),a=i(r,n),o=new c(t,e.uid);return o.mesh=a,o.data=e,a._trace=o,t.glplot.add(a),o}},{\"../../lib\":696,\"../../lib/gl_format_color\":692,\"../../plots/gl3d/zip3\":798,\"gl-streamtube3d\":301}],1128:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../components/colorscale/defaults\"),a=t(\"./attributes\");e.exports=function(t,e,r,o){function s(r,i){return n.coerce(t,e,a,r,i)}var l=s(\"u\"),c=s(\"v\"),u=s(\"w\"),f=s(\"x\"),h=s(\"y\"),p=s(\"z\");l&&l.length&&c&&c.length&&u&&u.length&&f&&f.length&&h&&h.length&&p&&p.length?(s(\"starts.x\"),s(\"starts.y\"),s(\"starts.z\"),s(\"maxdisplayed\"),s(\"sizeref\"),s(\"lighting.ambient\"),s(\"lighting.diffuse\"),s(\"lighting.specular\"),s(\"lighting.roughness\"),s(\"lighting.fresnel\"),s(\"lightposition.x\"),s(\"lightposition.y\"),s(\"lightposition.z\"),i(t,e,o,s,{prefix:\"\",cLetter:\"c\"}),s(\"text\"),e._length=null):e.visible=!1}},{\"../../components/colorscale/defaults\":580,\"../../lib\":696,\"./attributes\":1125}],1129:[function(t,e,r){\"use strict\";e.exports={moduleType:\"trace\",name:\"streamtube\",basePlotModule:t(\"../../plots/gl3d\"),categories:[\"gl3d\"],attributes:t(\"./attributes\"),supplyDefaults:t(\"./defaults\"),colorbar:{min:\"cmin\",max:\"cmax\"},calc:t(\"./calc\"),plot:t(\"./convert\"),eventData:function(t,e){return t.tubex=t.x,t.tubey=t.y,t.tubez=t.z,t.tubeu=e.traceCoordinate[3],t.tubev=e.traceCoordinate[4],t.tubew=e.traceCoordinate[5],t.norm=e.traceCoordinate[6],t.divergence=e.traceCoordinate[7],delete t.x,delete t.y,delete t.z,t},meta:{}}},{\"../../plots/gl3d\":787,\"./attributes\":1125,\"./calc\":1126,\"./convert\":1127,\"./defaults\":1128}],1130:[function(t,e,r){\"use strict\";var n=t(\"../../components/color\"),i=t(\"../../components/colorscale/attributes\"),a=t(\"../../components/colorbar/attributes\"),o=t(\"../../plots/attributes\"),s=t(\"../../lib/extend\").extendFlat,l=t(\"../../plot_api/edit_types\").overrideAll;function c(t){return{show:{valType:\"boolean\",dflt:!1},project:{x:{valType:\"boolean\",dflt:!1},y:{valType:\"boolean\",dflt:!1},z:{valType:\"boolean\",dflt:!1}},color:{valType:\"color\",dflt:n.defaultLine},usecolormap:{valType:\"boolean\",dflt:!1},width:{valType:\"number\",min:1,max:16,dflt:2},highlight:{valType:\"boolean\",dflt:!0},highlightcolor:{valType:\"color\",dflt:n.defaultLine},highlightwidth:{valType:\"number\",min:1,max:16,dflt:2}}}var u=e.exports=l(s({z:{valType:\"data_array\"},x:{valType:\"data_array\"},y:{valType:\"data_array\"},text:{valType:\"string\",dflt:\"\",arrayOk:!0},surfacecolor:{valType:\"data_array\"}},i(\"\",{colorAttr:\"z or surfacecolor\",showScaleDflt:!0,autoColorDflt:!1,editTypeOverride:\"calc\"}),{colorbar:a,contours:{x:c(),y:c(),z:c()},hidesurface:{valType:\"boolean\",dflt:!1},lightposition:{x:{valType:\"number\",min:-1e5,max:1e5,dflt:10},y:{valType:\"number\",min:-1e5,max:1e5,dflt:1e4},z:{valType:\"number\",min:-1e5,max:1e5,dflt:0}},lighting:{ambient:{valType:\"number\",min:0,max:1,dflt:.8},diffuse:{valType:\"number\",min:0,max:1,dflt:.8},specular:{valType:\"number\",min:0,max:2,dflt:.05},roughness:{valType:\"number\",min:0,max:1,dflt:.5},fresnel:{valType:\"number\",min:0,max:5,dflt:.2}},opacity:{valType:\"number\",min:0,max:1,dflt:1},_deprecated:{zauto:s({},i.zauto,{}),zmin:s({},i.zmin,{}),zmax:s({},i.zmax,{})},hoverinfo:s({},o.hoverinfo)}),\"calc\",\"nested\");u.x.editType=u.y.editType=u.z.editType=\"calc+clearAxisTypes\",u.transforms=void 0},{\"../../components/color\":570,\"../../components/colorbar/attributes\":571,\"../../components/colorscale/attributes\":577,\"../../lib/extend\":685,\"../../plot_api/edit_types\":727,\"../../plots/attributes\":741}],1131:[function(t,e,r){\"use strict\";var n=t(\"../../components/colorscale/calc\");e.exports=function(t,e){e.surfacecolor?n(e,e.surfacecolor,\"\",\"c\"):n(e,e.z,\"\",\"c\")}},{\"../../components/colorscale/calc\":578}],1132:[function(t,e,r){\"use strict\";var n=t(\"gl-surface3d\"),i=t(\"ndarray\"),a=t(\"ndarray-homography\"),o=t(\"ndarray-fill\"),s=t(\"ndarray-ops\"),l=t(\"../../lib\").isArrayOrTypedArray,c=t(\"../../lib/gl_format_color\").parseColorScale,u=t(\"../../lib/str2rgbarray\"),f=128;function h(t,e,r){this.scene=t,this.uid=r,this.surface=e,this.data=null,this.showContour=[!1,!1,!1],this.dataScale=1}var p=h.prototype;function d(t){var e=t.shape,r=[e[0]+2,e[1]+2],n=i(new Float32Array(r[0]*r[1]),r);return s.assign(n.lo(1,1).hi(e[0],e[1]),t),s.assign(n.lo(1).hi(e[0],1),t.hi(e[0],1)),s.assign(n.lo(1,r[1]-1).hi(e[0],1),t.lo(0,e[1]-1).hi(e[0],1)),s.assign(n.lo(0,1).hi(1,e[1]),t.hi(1)),s.assign(n.lo(r[0]-1,1).hi(1,e[1]),t.lo(e[0]-1)),n.set(0,0,t.get(0,0)),n.set(0,r[1]-1,t.get(0,e[1]-1)),n.set(r[0]-1,0,t.get(e[0]-1,0)),n.set(r[0]-1,r[1]-1,t.get(e[0]-1,e[1]-1)),n}p.handlePick=function(t){if(t.object===this.surface){var e=t.index=[Math.min(0|Math.round(t.data.index[0]/this.dataScale-1),this.data.z[0].length-1),Math.min(0|Math.round(t.data.index[1]/this.dataScale-1),this.data.z.length-1)],r=[0,0,0];l(this.data.x)?l(this.data.x[0])?r[0]=this.data.x[e[1]][e[0]]:r[0]=this.data.x[e[0]]:r[0]=e[0],l(this.data.y)?l(this.data.y[0])?r[1]=this.data.y[e[1]][e[0]]:r[1]=this.data.y[e[1]]:r[1]=e[1],r[2]=this.data.z[e[1]][e[0]],t.traceCoordinate=r;var n=this.scene.fullSceneLayout;t.dataCoordinate=[n.xaxis.d2l(r[0],0,this.data.xcalendar)*this.scene.dataScale[0],n.yaxis.d2l(r[1],0,this.data.ycalendar)*this.scene.dataScale[1],n.zaxis.d2l(r[2],0,this.data.zcalendar)*this.scene.dataScale[2]];var i=this.data.text;return Array.isArray(i)&&i[e[1]]&&void 0!==i[e[1]][e[0]]?t.textLabel=i[e[1]][e[0]]:t.textLabel=i||\"\",t.data.dataCoordinate=t.dataCoordinate.slice(),this.surface.highlight(t.data),this.scene.glplot.spikes.position=t.dataCoordinate,!0}},p.setContourLevels=function(){for(var t=[[],[],[]],e=!1,r=0;r<3;++r)this.showContour[r]&&(e=!0,t[r]=this.scene.contourLevels[r]);e&&this.surface.update({levels:t})},p.update=function(t){var e,r=this.scene,n=r.fullSceneLayout,s=this.surface,h=t.opacity,p=c(t.colorscale,h),g=t.z,v=t.x,m=t.y,y=n.xaxis,x=n.yaxis,b=n.zaxis,_=r.dataScale,w=g[0].length,k=t._ylength,M=[i(new Float32Array(w*k),[w,k]),i(new Float32Array(w*k),[w,k]),i(new Float32Array(w*k),[w,k])],A=M[0],T=M[1],S=r.contourLevels;this.data=t;var E=t.xcalendar,C=t.ycalendar,L=t.zcalendar;o(M[2],function(t,e){return b.d2l(g[e][t],0,L)*_[2]}),l(v)?l(v[0])?o(A,function(t,e){return y.d2l(v[e][t],0,E)*_[0]}):o(A,function(t){return y.d2l(v[t],0,E)*_[0]}):o(A,function(t){return y.d2l(t,0,E)*_[0]}),l(v)?l(m[0])?o(T,function(t,e){return x.d2l(m[e][t],0,C)*_[1]}):o(T,function(t,e){return x.d2l(m[e],0,C)*_[1]}):o(T,function(t,e){return x.d2l(e,0,E)*_[1]});var z={colormap:p,levels:[[],[],[]],showContour:[!0,!0,!0],showSurface:!t.hidesurface,contourProject:[[!1,!1,!1],[!1,!1,!1],[!1,!1,!1]],contourWidth:[1,1,1],contourColor:[[1,1,1,1],[1,1,1,1],[1,1,1,1]],contourTint:[1,1,1],dynamicColor:[[1,1,1,1],[1,1,1,1],[1,1,1,1]],dynamicWidth:[1,1,1],dynamicTint:[1,1,1],opacity:t.opacity};if(z.intensityBounds=[t.cmin,t.cmax],t.surfacecolor){var O=i(new Float32Array(w*k),[w,k]);o(O,function(e,r){return t.surfacecolor[r][e]}),M.push(O)}else z.intensityBounds[0]*=_[2],z.intensityBounds[1]*=_[2];this.dataScale=function(t){var e=Math.max(t[0].shape[0],t[0].shape[1]);if(e<f){for(var r=f/e,n=[0|Math.floor(t[0].shape[0]*r+1),0|Math.floor(t[0].shape[1]*r+1)],o=n[0]*n[1],s=0;s<t.length;++s){var l=d(t[s]),c=i(new Float32Array(o),n);a(c,l,[r,0,0,0,r,0,0,0,1]),t[s]=c}return r}return 1}(M),t.surfacecolor&&(z.intensity=M.pop());var I=[!0,!0,!0],P=[\"x\",\"y\",\"z\"];for(e=0;e<3;++e){var D=t.contours[P[e]];I[e]=D.highlight,z.showContour[e]=D.show||D.highlight,z.showContour[e]&&(z.contourProject[e]=[D.project.x,D.project.y,D.project.z],D.show?(this.showContour[e]=!0,z.levels[e]=S[e],s.highlightColor[e]=z.contourColor[e]=u(D.color),D.usecolormap?s.highlightTint[e]=z.contourTint[e]=0:s.highlightTint[e]=z.contourTint[e]=1,z.contourWidth[e]=D.width):this.showContour[e]=!1,D.highlight&&(z.dynamicColor[e]=u(D.highlightcolor),z.dynamicWidth[e]=D.highlightwidth))}(function(t){var e=t[0].rgb,r=t[t.length-1].rgb;return e[0]===r[0]&&e[1]===r[1]&&e[2]===r[2]&&e[3]===r[3]})(p)&&(z.vertexColor=!0),z.coords=M,s.update(z),s.visible=t.visible,s.enableDynamic=I,s.enableHighlight=I,s.snapToData=!0,\"lighting\"in t&&(s.ambientLight=t.lighting.ambient,s.diffuseLight=t.lighting.diffuse,s.specularLight=t.lighting.specular,s.roughness=t.lighting.roughness,s.fresnel=t.lighting.fresnel),\"lightposition\"in t&&(s.lightPosition=[t.lightposition.x,t.lightposition.y,t.lightposition.z]),h&&h<1&&(s.supportsTransparency=!0)},p.dispose=function(){this.scene.glplot.remove(this.surface),this.surface.dispose()},e.exports=function(t,e){var r=t.glplot.gl,i=n({gl:r}),a=new h(t,i,e.uid);return i._trace=a,a.update(e),t.glplot.add(i),a}},{\"../../lib\":696,\"../../lib/gl_format_color\":692,\"../../lib/str2rgbarray\":719,\"gl-surface3d\":303,ndarray:433,\"ndarray-fill\":423,\"ndarray-homography\":425,\"ndarray-ops\":427}],1133:[function(t,e,r){\"use strict\";var n=t(\"../../registry\"),i=t(\"../../lib\"),a=t(\"../../components/colorscale/defaults\"),o=t(\"./attributes\");function s(t,e,r){e in t&&!(r in t)&&(t[r]=t[e])}e.exports=function(t,e,r,l){var c,u;function f(r,n){return i.coerce(t,e,o,r,n)}var h=f(\"z\");if(h){var p=f(\"x\");f(\"y\"),e._xlength=Array.isArray(p)&&i.isArrayOrTypedArray(p[0])?h.length:h[0].length,e._ylength=h.length,n.getComponentMethod(\"calendars\",\"handleTraceDefaults\")(t,e,[\"x\",\"y\",\"z\"],l),f(\"text\"),[\"lighting.ambient\",\"lighting.diffuse\",\"lighting.specular\",\"lighting.roughness\",\"lighting.fresnel\",\"lightposition.x\",\"lightposition.y\",\"lightposition.z\",\"hidesurface\",\"opacity\"].forEach(function(t){f(t)});var d=f(\"surfacecolor\");f(\"colorscale\");var g=[\"x\",\"y\",\"z\"];for(c=0;c<3;++c){var v=\"contours.\"+g[c],m=f(v+\".show\"),y=f(v+\".highlight\");if(m||y)for(u=0;u<3;++u)f(v+\".project.\"+g[u]);m&&(f(v+\".color\"),f(v+\".width\"),f(v+\".usecolormap\")),y&&(f(v+\".highlightcolor\"),f(v+\".highlightwidth\"))}d||(s(t,\"zmin\",\"cmin\"),s(t,\"zmax\",\"cmax\"),s(t,\"zauto\",\"cauto\")),a(t,e,l,f,{prefix:\"\",cLetter:\"c\"}),e._length=null}else e.visible=!1}},{\"../../components/colorscale/defaults\":580,\"../../lib\":696,\"../../registry\":827,\"./attributes\":1130}],1134:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.supplyDefaults=t(\"./defaults\"),n.colorbar={min:\"cmin\",max:\"cmax\"},n.calc=t(\"./calc\"),n.plot=t(\"./convert\"),n.moduleType=\"trace\",n.name=\"surface\",n.basePlotModule=t(\"../../plots/gl3d\"),n.categories=[\"gl3d\",\"2dMap\",\"noOpacity\"],n.meta={},e.exports=n},{\"../../plots/gl3d\":787,\"./attributes\":1130,\"./calc\":1131,\"./convert\":1132,\"./defaults\":1133}],1135:[function(t,e,r){\"use strict\";var n=t(\"../../components/annotations/attributes\"),i=t(\"../../lib/extend\").extendFlat,a=t(\"../../plot_api/edit_types\").overrideAll,o=t(\"../../plots/font_attributes\"),s=t(\"../../plots/domain\").attributes;(e.exports=a({domain:s({name:\"table\",trace:!0}),columnwidth:{valType:\"number\",arrayOk:!0,dflt:null},columnorder:{valType:\"data_array\"},header:{values:{valType:\"data_array\",dflt:[]},format:{valType:\"data_array\",dflt:[]},prefix:{valType:\"string\",arrayOk:!0,dflt:null},suffix:{valType:\"string\",arrayOk:!0,dflt:null},height:{valType:\"number\",dflt:28},align:i({},n.align,{arrayOk:!0}),line:{width:{valType:\"number\",arrayOk:!0,dflt:1},color:{valType:\"color\",arrayOk:!0,dflt:\"grey\"}},fill:{color:{valType:\"color\",arrayOk:!0,dflt:\"white\"}},font:i({},o({arrayOk:!0}))},cells:{values:{valType:\"data_array\",dflt:[]},format:{valType:\"data_array\",dflt:[]},prefix:{valType:\"string\",arrayOk:!0,dflt:null},suffix:{valType:\"string\",arrayOk:!0,dflt:null},height:{valType:\"number\",dflt:20},align:i({},n.align,{arrayOk:!0}),line:{width:{valType:\"number\",arrayOk:!0,dflt:1},color:{valType:\"color\",arrayOk:!0,dflt:\"grey\"}},fill:{color:{valType:\"color\",arrayOk:!0,dflt:\"white\"}},font:i({},o({arrayOk:!0}))}},\"calc\",\"from-root\")).transforms=void 0},{\"../../components/annotations/attributes\":553,\"../../lib/extend\":685,\"../../plot_api/edit_types\":727,\"../../plots/domain\":770,\"../../plots/font_attributes\":771}],1136:[function(t,e,r){\"use strict\";var n=t(\"../../plots/get_data\").getModuleCalcData,i=t(\"./plot\");r.name=\"table\",r.plot=function(t){var e=n(t.calcdata,\"table\")[0];e.length&&i(t,e)},r.clean=function(t,e,r,n){var i=n._has&&n._has(\"table\"),a=e._has&&e._has(\"table\");i&&!a&&n._paperdiv.selectAll(\".table\").remove()}},{\"../../plots/get_data\":781,\"./plot\":1143}],1137:[function(t,e,r){\"use strict\";var n=t(\"../../lib/gup\").wrap;e.exports=function(){return n({})}},{\"../../lib/gup\":693}],1138:[function(t,e,r){\"use strict\";e.exports={cellPad:8,columnExtentOffset:10,columnTitleOffset:28,emptyHeaderHeight:16,latexCheck:/^\\$.*\\$$/,goldenRatio:1.618,lineBreaker:\"<br>\",maxDimensionCount:60,overdrag:45,releaseTransitionDuration:120,releaseTransitionEase:\"cubic-out\",scrollbarCaptureWidth:18,scrollbarHideDelay:1e3,scrollbarHideDuration:1e3,scrollbarOffset:5,scrollbarWidth:8,transitionDuration:100,transitionEase:\"cubic-out\",uplift:5,wrapSpacer:\" \",wrapSplitCharacter:\" \",cn:{table:\"table\",tableControlView:\"table-control-view\",scrollBackground:\"scroll-background\",yColumn:\"y-column\",columnBlock:\"column-block\",scrollAreaClip:\"scroll-area-clip\",scrollAreaClipRect:\"scroll-area-clip-rect\",columnBoundary:\"column-boundary\",columnBoundaryClippath:\"column-boundary-clippath\",columnBoundaryRect:\"column-boundary-rect\",columnCells:\"column-cells\",columnCell:\"column-cell\",cellRect:\"cell-rect\",cellText:\"cell-text\",cellTextHolder:\"cell-text-holder\",scrollbarKit:\"scrollbar-kit\",scrollbar:\"scrollbar\",scrollbarSlider:\"scrollbar-slider\",scrollbarGlyph:\"scrollbar-glyph\",scrollbarCaptureZone:\"scrollbar-capture-zone\"}}},{}],1139:[function(t,e,r){\"use strict\";var n=t(\"./constants\"),i=t(\"../../lib/extend\").extendFlat,a=t(\"fast-isnumeric\");function o(t){if(Array.isArray(t)){for(var e=0,r=0;r<t.length;r++)e=Math.max(e,o(t[r]));return e}return t}function s(t,e){return t+e}function l(t){var e,r=t.slice(),n=1/0,i=0;for(e=0;e<r.length;e++)Array.isArray(r[e])||(r[e]=[r[e]]),n=Math.min(n,r[e].length),i=Math.max(i,r[e].length);if(n!==i)for(e=0;e<r.length;e++){var a=i-r[e].length;a&&(r[e]=r[e].concat(c(a)))}return r}function c(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=\"\";return e}function u(t){return t.calcdata.columns.reduce(function(e,r){return r.xIndex<t.xIndex?e+r.columnWidth:e},0)}function f(t,e){return Object.keys(t).map(function(r){return i({},t[r],{auxiliaryBlocks:e})})}function h(t,e){for(var r,n={},i=0,a=0,o={firstRowIndex:null,lastRowIndex:null,rows:[]},s=0,l=0,c=0;c<t.length;c++)r=t[c],o.rows.push({rowIndex:c,rowHeight:r}),((a+=r)>=e||c===t.length-1)&&(n[i]=o,o.key=l++,o.firstRowIndex=s,o.lastRowIndex=c,o={firstRowIndex:null,lastRowIndex:null,rows:[]},i+=a,s=c+1,a=0);return n}e.exports=function(t,e){var r=l(e.cells.values),p=function(t){return t.slice(e.header.values.length,t.length)},d=l(e.header.values);d.length&&!d[0].length&&(d[0]=[\"\"],d=l(d));var g=d.concat(p(r).map(function(){return c((d[0]||[\"\"]).length)})),v=e.domain,m=Math.floor(t._fullLayout._size.w*(v.x[1]-v.x[0])),y=Math.floor(t._fullLayout._size.h*(v.y[1]-v.y[0])),x=e.header.values.length?g[0].map(function(){return e.header.height}):[n.emptyHeaderHeight],b=r.length?r[0].map(function(){return e.cells.height}):[],_=x.reduce(s,0),w=h(b,y-_+n.uplift),k=f(h(x,_),[]),M=f(w,k),A={},T=e._fullInput.columnorder.concat(p(r.map(function(t,e){return e}))),S=g.map(function(t,r){var n=Array.isArray(e.columnwidth)?e.columnwidth[Math.min(r,e.columnwidth.length-1)]:e.columnwidth;return a(n)?Number(n):1}),E=S.reduce(s,0);S=S.map(function(t){return t/E*m});var C=Math.max(o(e.header.line.width),o(e.cells.line.width)),L={key:e.index,translateX:v.x[0]*t._fullLayout._size.w,translateY:t._fullLayout._size.h*(1-v.y[1]),size:t._fullLayout._size,width:m,maxLineWidth:C,height:y,columnOrder:T,groupHeight:y,rowBlocks:M,headerRowBlocks:k,scrollY:0,cells:i({},e.cells,{values:r}),headerCells:i({},e.header,{values:g}),gdColumns:g.map(function(t){return t[0]}),gdColumnsOriginalOrder:g.map(function(t){return t[0]}),prevPages:[0,0],scrollbarState:{scrollbarScrollInProgress:!1},columns:g.map(function(t,e){var r=A[t];return A[t]=(r||0)+1,{key:t+\"__\"+A[t],label:t,specIndex:e,xIndex:T[e],xScale:u,x:void 0,calcdata:void 0,columnWidth:S[e]}})};return L.columns.forEach(function(t){t.calcdata=L,t.x=u(t)}),L}},{\"../../lib/extend\":685,\"./constants\":1138,\"fast-isnumeric\":214}],1140:[function(t,e,r){\"use strict\";var n=t(\"../../lib/extend\").extendFlat;r.splitToPanels=function(t){var e=[0,0],r=n({},t,{key:\"header\",type:\"header\",page:0,prevPages:e,currentRepaint:[null,null],dragHandle:!0,values:t.calcdata.headerCells.values[t.specIndex],rowBlocks:t.calcdata.headerRowBlocks,calcdata:n({},t.calcdata,{cells:t.calcdata.headerCells})});return[n({},t,{key:\"cells1\",type:\"cells\",page:0,prevPages:e,currentRepaint:[null,null],dragHandle:!1,values:t.calcdata.cells.values[t.specIndex],rowBlocks:t.calcdata.rowBlocks}),n({},t,{key:\"cells2\",type:\"cells\",page:1,prevPages:e,currentRepaint:[null,null],dragHandle:!1,values:t.calcdata.cells.values[t.specIndex],rowBlocks:t.calcdata.rowBlocks}),r]},r.splitToCells=function(t){var e=function(t){var e=t.rowBlocks[t.page],r=e?e.rows[0].rowIndex:0,n=e?r+e.rows.length:0;return[r,n]}(t);return(t.values||[]).slice(e[0],e[1]).map(function(r,n){return{keyWithinBlock:n+(\"string\"==typeof r&&r.match(/[<$&> ]/)?\"_keybuster_\"+Math.random():\"\"),key:e[0]+n,column:t,calcdata:t.calcdata,page:t.page,rowBlocks:t.rowBlocks,value:r}})}},{\"../../lib/extend\":685}],1141:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"./attributes\"),a=t(\"../../plots/domain\").defaults;e.exports=function(t,e,r,o){function s(r,a){return n.coerce(t,e,i,r,a)}a(e,o,s),s(\"columnwidth\"),s(\"header.values\"),s(\"header.format\"),s(\"header.align\"),s(\"header.prefix\"),s(\"header.suffix\"),s(\"header.height\"),s(\"header.line.width\"),s(\"header.line.color\"),s(\"header.fill.color\"),n.coerceFont(s,\"header.font\",n.extendFlat({},o.font)),function(t,e){for(var r=t.columnorder||[],n=t.header.values.length,i=r.slice(0,n),a=i.slice().sort(function(t,e){return t-e}),o=i.map(function(t){return a.indexOf(t)}),s=o.length;s<n;s++)o.push(s);e(\"columnorder\",o)}(e,s),s(\"cells.values\"),s(\"cells.format\"),s(\"cells.align\"),s(\"cells.prefix\"),s(\"cells.suffix\"),s(\"cells.height\"),s(\"cells.line.width\"),s(\"cells.line.color\"),s(\"cells.fill.color\"),n.coerceFont(s,\"cells.font\",n.extendFlat({},o.font)),e._length=null}},{\"../../lib\":696,\"../../plots/domain\":770,\"./attributes\":1135}],1142:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.supplyDefaults=t(\"./defaults\"),n.calc=t(\"./calc\"),n.plot=t(\"./plot\"),n.moduleType=\"trace\",n.name=\"table\",n.basePlotModule=t(\"./base_plot\"),n.categories=[\"noOpacity\"],n.meta={},e.exports=n},{\"./attributes\":1135,\"./base_plot\":1136,\"./calc\":1137,\"./defaults\":1141,\"./plot\":1143}],1143:[function(t,e,r){\"use strict\";var n=t(\"./constants\"),i=t(\"d3\"),a=t(\"../../lib/gup\"),o=t(\"../../components/drawing\"),s=t(\"../../lib/svg_text_utils\"),l=t(\"../../lib\").raiseToTop,c=t(\"../../lib\").cancelTransition,u=t(\"./data_preparation_helper\"),f=t(\"./data_split_helpers\"),h=t(\"../../components/color\");function p(t){return Math.ceil(t.calcdata.maxLineWidth/2)}function d(t,e){return\"clip\"+t._fullLayout._uid+\"_scrollAreaBottomClip_\"+e.key}function g(t,e){return\"clip\"+t._fullLayout._uid+\"_columnBoundaryClippath_\"+e.calcdata.key+\"_\"+e.specIndex}function v(t){return[].concat.apply([],t.map(function(t){return t})).map(function(t){return t.__data__})}function m(t,e,r){var o=t.selectAll(\".\"+n.cn.scrollbarKit).data(a.repeat,a.keyFun);o.enter().append(\"g\").classed(n.cn.scrollbarKit,!0).style(\"shape-rendering\",\"geometricPrecision\"),o.each(function(t){var e=t.scrollbarState;e.totalHeight=function(t){var e=t.rowBlocks;return I(e,e.length-1)+(e.length?P(e[e.length-1],1/0):1)}(t),e.scrollableAreaHeight=t.groupHeight-A(t),e.currentlyVisibleHeight=Math.min(e.totalHeight,e.scrollableAreaHeight),e.ratio=e.currentlyVisibleHeight/e.totalHeight,e.barLength=Math.max(e.ratio*e.currentlyVisibleHeight,n.goldenRatio*n.scrollbarWidth),e.barWiggleRoom=e.currentlyVisibleHeight-e.barLength,e.wiggleRoom=Math.max(0,e.totalHeight-e.scrollableAreaHeight),e.topY=0===e.barWiggleRoom?0:t.scrollY/e.wiggleRoom*e.barWiggleRoom,e.bottomY=e.topY+e.barLength,e.dragMultiplier=e.wiggleRoom/e.barWiggleRoom}).attr(\"transform\",function(t){return\"translate(\"+(t.width+n.scrollbarWidth/2+n.scrollbarOffset)+\" \"+A(t)+\")\"});var s=o.selectAll(\".\"+n.cn.scrollbar).data(a.repeat,a.keyFun);s.enter().append(\"g\").classed(n.cn.scrollbar,!0);var l=s.selectAll(\".\"+n.cn.scrollbarSlider).data(a.repeat,a.keyFun);l.enter().append(\"g\").classed(n.cn.scrollbarSlider,!0),l.attr(\"transform\",function(t){return\"translate(0 \"+(t.scrollbarState.topY||0)+\")\"});var c=l.selectAll(\".\"+n.cn.scrollbarGlyph).data(a.repeat,a.keyFun);c.enter().append(\"line\").classed(n.cn.scrollbarGlyph,!0).attr(\"stroke\",\"black\").attr(\"stroke-width\",n.scrollbarWidth).attr(\"stroke-linecap\",\"round\").attr(\"y1\",n.scrollbarWidth/2),c.attr(\"y2\",function(t){return t.scrollbarState.barLength-n.scrollbarWidth/2}).attr(\"stroke-opacity\",function(t){return t.columnDragInProgress||!t.scrollbarState.barWiggleRoom||r?0:.4}),c.transition().delay(0).duration(0),c.transition().delay(n.scrollbarHideDelay).duration(n.scrollbarHideDuration).attr(\"stroke-opacity\",0);var u=s.selectAll(\".\"+n.cn.scrollbarCaptureZone).data(a.repeat,a.keyFun);u.enter().append(\"line\").classed(n.cn.scrollbarCaptureZone,!0).attr(\"stroke\",\"white\").attr(\"stroke-opacity\",.01).attr(\"stroke-width\",n.scrollbarCaptureWidth).attr(\"stroke-linecap\",\"butt\").attr(\"y1\",0).on(\"mousedown\",function(r){var n=i.event.y,a=this.getBoundingClientRect(),o=r.scrollbarState,s=n-a.top,l=i.scale.linear().domain([0,o.scrollableAreaHeight]).range([0,o.totalHeight]).clamp(!0);o.topY<=s&&s<=o.bottomY||S(e,t,null,l(s-o.barLength/2))(r)}).call(i.behavior.drag().origin(function(t){return i.event.stopPropagation(),t.scrollbarState.scrollbarScrollInProgress=!0,t}).on(\"drag\",S(e,t)).on(\"dragend\",function(){})),u.attr(\"y2\",function(t){return t.scrollbarState.scrollableAreaHeight}),e._context.staticPlot&&(c.remove(),u.remove())}function y(t,e,r,s){var l=function(t){var e=t.selectAll(\".\"+n.cn.columnCell).data(f.splitToCells,function(t){return t.keyWithinBlock});return e.enter().append(\"g\").classed(n.cn.columnCell,!0),e.exit().remove(),e}(function(t){var e=t.selectAll(\".\"+n.cn.columnCells).data(a.repeat,a.keyFun);return e.enter().append(\"g\").classed(n.cn.columnCells,!0),e.exit().remove(),e}(r));!function(t){t.each(function(t,e){var r=t.calcdata.cells.font,n=t.column.specIndex,i={size:_(r.size,n,e),color:_(r.color,n,e),family:_(r.family,n,e)};t.rowNumber=t.key,t.align=_(t.calcdata.cells.align,n,e),t.cellBorderWidth=_(t.calcdata.cells.line.width,n,e),t.font=i})}(l),function(t){t.attr(\"width\",function(t){return t.column.columnWidth}).attr(\"stroke-width\",function(t){return t.cellBorderWidth}).each(function(t){var e=i.select(this);h.stroke(e,_(t.calcdata.cells.line.color,t.column.specIndex,t.rowNumber)),h.fill(e,_(t.calcdata.cells.fill.color,t.column.specIndex,t.rowNumber))})}(function(t){var e=t.selectAll(\".\"+n.cn.cellRect).data(a.repeat,function(t){return t.keyWithinBlock});return e.enter().append(\"rect\").classed(n.cn.cellRect,!0),e}(l));var c=function(t){var e=t.selectAll(\".\"+n.cn.cellText).data(a.repeat,function(t){return t.keyWithinBlock});return e.enter().append(\"text\").classed(n.cn.cellText,!0).style(\"cursor\",function(){return\"auto\"}).on(\"mousedown\",function(){i.event.stopPropagation()}),e}(function(t){var e=t.selectAll(\".\"+n.cn.cellTextHolder).data(a.repeat,function(t){return t.keyWithinBlock});return e.enter().append(\"g\").classed(n.cn.cellTextHolder,!0).style(\"shape-rendering\",\"geometricPrecision\"),e}(l));!function(t){t.each(function(t){o.font(i.select(this),t.font)})}(c),x(c,e,s,t),O(l)}function x(t,e,r,a){t.text(function(t){var e=t.column.specIndex,r=t.rowNumber,a=t.value,o=\"string\"==typeof a,s=o&&a.match(/<br>/i),l=!o||s;t.mayHaveMarkup=o&&a.match(/[<&>]/);var c,u=\"string\"==typeof(c=a)&&c.match(n.latexCheck);t.latex=u;var f,h,p=u?\"\":_(t.calcdata.cells.prefix,e,r)||\"\",d=u?\"\":_(t.calcdata.cells.suffix,e,r)||\"\",g=u?null:_(t.calcdata.cells.format,e,r)||null,v=p+(g?i.format(g)(t.value):t.value)+d;if(t.wrappingNeeded=!t.wrapped&&!l&&!u&&(f=b(v)),t.cellHeightMayIncrease=s||u||t.mayHaveMarkup||(void 0===f?b(v):f),t.needsConvertToTspans=t.mayHaveMarkup||t.wrappingNeeded||t.latex,t.wrappingNeeded){var m=(\" \"===n.wrapSplitCharacter?v.replace(/<a href=/gi,\"<a_href=\"):v).split(n.wrapSplitCharacter),y=\" \"===n.wrapSplitCharacter?m.map(function(t){return t.replace(/<a_href=/gi,\"<a href=\")}):m;t.fragments=y.map(function(t){return{text:t,width:null}}),t.fragments.push({fragment:n.wrapSpacer,width:null}),h=y.join(n.lineBreaker)+n.lineBreaker+n.wrapSpacer}else delete t.fragments,h=v;return h}).attr(\"dy\",function(t){return t.needsConvertToTspans?0:\"0.75em\"}).each(function(t){var o=i.select(this),l=t.wrappingNeeded?C:L;t.needsConvertToTspans?s.convertToTspans(o,a,l(r,this,e,a,t)):i.select(this.parentNode).attr(\"transform\",function(t){return\"translate(\"+z(t)+\" \"+n.cellPad+\")\"}).attr(\"text-anchor\",function(t){return{left:\"start\",center:\"middle\",right:\"end\"}[t.align]})})}function b(t){return-1!==t.indexOf(n.wrapSplitCharacter)}function _(t,e,r){if(Array.isArray(t)){var n=t[Math.min(e,t.length-1)];return Array.isArray(n)?n[Math.min(r,n.length-1)]:n}return t}function w(t,e,r){t.transition().ease(n.releaseTransitionEase).duration(n.releaseTransitionDuration).attr(\"transform\",\"translate(\"+e.x+\" \"+r+\")\")}function k(t){return\"cells\"===t.type}function M(t){return\"header\"===t.type}function A(t){return(t.rowBlocks.length?t.rowBlocks[0].auxiliaryBlocks:[]).reduce(function(t,e){return t+P(e,1/0)},0)}function T(t,e,r){var n=v(e)[0];if(void 0!==n){var i=n.rowBlocks,a=n.calcdata,o=I(i,i.length),s=n.calcdata.groupHeight-A(n),l=a.scrollY=Math.max(0,Math.min(o-s,a.scrollY)),c=function(t,e,r){for(var n=[],i=0,a=0;a<t.length;a++){for(var o=t[a],s=o.rows,l=0,c=0;c<s.length;c++)l+=s[c].rowHeight;o.allRowsHeight=l,e<i+l&&e+r>i&&n.push(a),i+=l}return n}(i,l,s);1===c.length&&(c[0]===i.length-1?c.unshift(c[0]-1):c.push(c[0]+1)),c[0]%2&&c.reverse(),e.each(function(t,e){t.page=c[e],t.scrollY=l}),e.attr(\"transform\",function(t){return\"translate(0 \"+(I(t.rowBlocks,t.page)-t.scrollY)+\")\"}),t&&(E(t,r,e,c,n.prevPages,n,0),E(t,r,e,c,n.prevPages,n,1),m(r,t))}}function S(t,e,r,a){return function(o){var s=o.calcdata?o.calcdata:o,l=e.filter(function(t){return s.key===t.key}),c=r||s.scrollbarState.dragMultiplier;s.scrollY=void 0===a?s.scrollY+c*i.event.dy:a;var u=l.selectAll(\".\"+n.cn.yColumn).selectAll(\".\"+n.cn.columnBlock).filter(k);T(t,u,l)}}function E(t,e,r,n,i,a,o){n[o]!==i[o]&&(clearTimeout(a.currentRepaint[o]),a.currentRepaint[o]=setTimeout(function(){var a=r.filter(function(t,e){return e===o&&n[e]!==i[e]});y(t,e,a,r),i[o]=n[o]}))}function C(t,e,r,a){return function(){var o=i.select(e.parentNode);o.each(function(t){var e=t.fragments;o.selectAll(\"tspan.line\").each(function(t,r){e[r].width=this.getComputedTextLength()});var r,i,a=e[e.length-1].width,s=e.slice(0,-1),l=[],c=0,u=t.column.columnWidth-2*n.cellPad;for(t.value=\"\";s.length;)c+(i=(r=s.shift()).width+a)>u&&(t.value+=l.join(n.wrapSpacer)+n.lineBreaker,l=[],c=0),l.push(r.text),c+=i;c&&(t.value+=l.join(n.wrapSpacer)),t.wrapped=!0}),o.selectAll(\"tspan.line\").remove(),x(o.select(\".\"+n.cn.cellText),r,t,a),i.select(e.parentNode.parentNode).call(O)}}function L(t,e,r,a,o){return function(){if(!o.settledY){var s=i.select(e.parentNode),l=R(o),c=o.key-l.firstRowIndex,u=l.rows[c].rowHeight,f=o.cellHeightMayIncrease?e.parentNode.getBoundingClientRect().height+2*n.cellPad:u,h=Math.max(f,u);h-l.rows[c].rowHeight&&(l.rows[c].rowHeight=h,t.selectAll(\".\"+n.cn.columnCell).call(O),T(null,t.filter(k),0),m(r,a,!0)),s.attr(\"transform\",function(){var t=this.parentNode.getBoundingClientRect(),e=i.select(this.parentNode).select(\".\"+n.cn.cellRect).node().getBoundingClientRect(),r=this.transform.baseVal.consolidate(),a=e.top-t.top+(r?r.matrix.f:n.cellPad);return\"translate(\"+z(o,i.select(this.parentNode).select(\".\"+n.cn.cellTextHolder).node().getBoundingClientRect().width)+\" \"+a+\")\"}),o.settledY=!0}}}function z(t,e){switch(t.align){case\"left\":return n.cellPad;case\"right\":return t.column.columnWidth-(e||0)-n.cellPad;case\"center\":return(t.column.columnWidth-(e||0))/2;default:return n.cellPad}}function O(t){t.attr(\"transform\",function(t){var e=t.rowBlocks[0].auxiliaryBlocks.reduce(function(t,e){return t+P(e,1/0)},0);return\"translate(0 \"+(P(R(t),t.key)+e)+\")\"}).selectAll(\".\"+n.cn.cellRect).attr(\"height\",function(t){return(e=R(t),r=t.key,e.rows[r-e.firstRowIndex]).rowHeight;var e,r})}function I(t,e){for(var r=0,n=e-1;n>=0;n--)r+=D(t[n]);return r}function P(t,e){for(var r=0,n=0;n<t.rows.length&&t.rows[n].rowIndex<e;n++)r+=t.rows[n].rowHeight;return r}function D(t){var e=t.allRowsHeight;if(void 0!==e)return e;for(var r=0,n=0;n<t.rows.length;n++)r+=t.rows[n].rowHeight;return t.allRowsHeight=r,r}function R(t){return t.rowBlocks[t.page]}e.exports=function(t,e){var r=t._fullLayout._paper.selectAll(\".\"+n.cn.table).data(e.map(function(e){var r=a.unwrap(e).trace;return u(t,r)}),a.keyFun);r.exit().remove(),r.enter().append(\"g\").classed(n.cn.table,!0).attr(\"overflow\",\"visible\").style(\"box-sizing\",\"content-box\").style(\"position\",\"absolute\").style(\"left\",0).style(\"overflow\",\"visible\").style(\"shape-rendering\",\"crispEdges\").style(\"pointer-events\",\"all\"),r.attr(\"width\",function(t){return t.width+t.size.l+t.size.r}).attr(\"height\",function(t){return t.height+t.size.t+t.size.b}).attr(\"transform\",function(t){return\"translate(\"+t.translateX+\",\"+t.translateY+\")\"});var s=r.selectAll(\".\"+n.cn.tableControlView).data(a.repeat,a.keyFun);s.enter().append(\"g\").classed(n.cn.tableControlView,!0).style(\"box-sizing\",\"content-box\").on(\"mousemove\",function(e){s.filter(function(t){return e===t}).call(m,t)}).on(\"mousewheel\",function(e){e.scrollbarState.wheeling||(e.scrollbarState.wheeling=!0,i.event.stopPropagation(),i.event.preventDefault(),S(t,s,null,e.scrollY+i.event.deltaY)(e),e.scrollbarState.wheeling=!1)}).call(m,t,!0),s.attr(\"transform\",function(t){return\"translate(\"+t.size.l+\" \"+t.size.t+\")\"});var h=s.selectAll(\".\"+n.cn.scrollBackground).data(a.repeat,a.keyFun);h.enter().append(\"rect\").classed(n.cn.scrollBackground,!0).attr(\"fill\",\"none\"),h.attr(\"width\",function(t){return t.width}).attr(\"height\",function(t){return t.height}),s.each(function(e){o.setClipUrl(i.select(this),d(t,e))});var x=s.selectAll(\".\"+n.cn.yColumn).data(function(t){return t.columns},a.keyFun);x.enter().append(\"g\").classed(n.cn.yColumn,!0),x.exit().remove(),x.attr(\"transform\",function(t){return\"translate(\"+t.x+\" 0)\"}).call(i.behavior.drag().origin(function(e){return w(i.select(this),e,-n.uplift),l(this),e.calcdata.columnDragInProgress=!0,m(s.filter(function(t){return e.calcdata.key===t.key}),t),e}).on(\"drag\",function(t){var e=i.select(this),r=function(e){return(t===e?i.event.x:e.x)+e.columnWidth/2};t.x=Math.max(-n.overdrag,Math.min(t.calcdata.width+n.overdrag-t.columnWidth,i.event.x)),v(x).filter(function(e){return e.calcdata.key===t.calcdata.key}).sort(function(t,e){return r(t)-r(e)}).forEach(function(e,r){e.xIndex=r,e.x=t===e?e.x:e.xScale(e)}),x.filter(function(e){return t!==e}).transition().ease(n.transitionEase).duration(n.transitionDuration).attr(\"transform\",function(t){return\"translate(\"+t.x+\" 0)\"}),e.call(c).attr(\"transform\",\"translate(\"+t.x+\" -\"+n.uplift+\" )\")}).on(\"dragend\",function(e){var r=i.select(this),n=e.calcdata;e.x=e.xScale(e),e.calcdata.columnDragInProgress=!1,w(r,e,0),function(t,e,r){var n=e.gdColumnsOriginalOrder;e.gdColumns.sort(function(t,e){return r[n.indexOf(t)]-r[n.indexOf(e)]}),e.columnorder=r,t.emit(\"plotly_restyle\")}(t,n,n.columns.map(function(t){return t.xIndex}))})),x.each(function(e){o.setClipUrl(i.select(this),g(t,e))});var b=x.selectAll(\".\"+n.cn.columnBlock).data(f.splitToPanels,a.keyFun);b.enter().append(\"g\").classed(n.cn.columnBlock,!0).attr(\"id\",function(t){return t.key}),b.style(\"cursor\",function(t){return t.dragHandle?\"ew-resize\":t.calcdata.scrollbarState.barWiggleRoom?\"ns-resize\":\"default\"});var _=b.filter(M),A=b.filter(k);A.call(i.behavior.drag().origin(function(t){return i.event.stopPropagation(),t}).on(\"drag\",S(t,s,-1)).on(\"dragend\",function(){})),y(t,s,_,b),y(t,s,A,b);var E=s.selectAll(\".\"+n.cn.scrollAreaClip).data(a.repeat,a.keyFun);E.enter().append(\"clipPath\").classed(n.cn.scrollAreaClip,!0).attr(\"id\",function(e){return d(t,e)});var C=E.selectAll(\".\"+n.cn.scrollAreaClipRect).data(a.repeat,a.keyFun);C.enter().append(\"rect\").classed(n.cn.scrollAreaClipRect,!0).attr(\"x\",-n.overdrag).attr(\"y\",-n.uplift).attr(\"fill\",\"none\"),C.attr(\"width\",function(t){return t.width+2*n.overdrag}).attr(\"height\",function(t){return t.height+n.uplift}),x.selectAll(\".\"+n.cn.columnBoundary).data(a.repeat,a.keyFun).enter().append(\"g\").classed(n.cn.columnBoundary,!0);var L=x.selectAll(\".\"+n.cn.columnBoundaryClippath).data(a.repeat,a.keyFun);L.enter().append(\"clipPath\").classed(n.cn.columnBoundaryClippath,!0),L.attr(\"id\",function(e){return g(t,e)});var z=L.selectAll(\".\"+n.cn.columnBoundaryRect).data(a.repeat,a.keyFun);z.enter().append(\"rect\").classed(n.cn.columnBoundaryRect,!0).attr(\"fill\",\"none\"),z.attr(\"width\",function(t){return t.columnWidth+2*p(t)}).attr(\"height\",function(t){return t.calcdata.height+2*p(t)+n.uplift}).attr(\"x\",function(t){return-p(t)}).attr(\"y\",function(t){return-p(t)}),T(null,A,s)}},{\"../../components/color\":570,\"../../components/drawing\":595,\"../../lib\":696,\"../../lib/gup\":693,\"../../lib/svg_text_utils\":720,\"./constants\":1138,\"./data_preparation_helper\":1139,\"./data_split_helpers\":1140,d3:148}],1144:[function(t,e,r){\"use strict\";var n=t(\"../box/attributes\"),i=t(\"../../lib/extend\").extendFlat;e.exports={y:n.y,x:n.x,x0:n.x0,y0:n.y0,name:n.name,orientation:i({},n.orientation,{}),bandwidth:{valType:\"number\",min:0,editType:\"calc\"},scalegroup:{valType:\"string\",dflt:\"\",editType:\"calc\"},scalemode:{valType:\"enumerated\",values:[\"width\",\"count\"],dflt:\"width\",editType:\"calc\"},spanmode:{valType:\"enumerated\",values:[\"soft\",\"hard\",\"manual\"],dflt:\"soft\",editType:\"calc\"},span:{valType:\"info_array\",items:[{valType:\"any\",editType:\"calc\"},{valType:\"any\",editType:\"calc\"}],editType:\"calc\"},line:{color:{valType:\"color\",editType:\"style\"},width:{valType:\"number\",min:0,dflt:2,editType:\"style\"},editType:\"plot\"},fillcolor:n.fillcolor,points:i({},n.boxpoints,{}),jitter:i({},n.jitter,{}),pointpos:i({},n.pointpos,{}),marker:n.marker,text:n.text,box:{visible:{valType:\"boolean\",dflt:!1,editType:\"plot\"},width:{valType:\"number\",min:0,max:1,dflt:.25,editType:\"plot\"},fillcolor:{valType:\"color\",editType:\"style\"},line:{color:{valType:\"color\",editType:\"style\"},width:{valType:\"number\",min:0,editType:\"style\"},editType:\"style\"},editType:\"plot\"},meanline:{visible:{valType:\"boolean\",dflt:!1,editType:\"plot\"},color:{valType:\"color\",editType:\"style\"},width:{valType:\"number\",min:0,editType:\"style\"},editType:\"plot\"},side:{valType:\"enumerated\",values:[\"both\",\"positive\",\"negative\"],dflt:\"both\",editType:\"plot\"},selected:n.selected,unselected:n.unselected,hoveron:{valType:\"flaglist\",flags:[\"violins\",\"points\",\"kde\"],dflt:\"violins+points+kde\",extras:[\"all\"],editType:\"style\"}}},{\"../../lib/extend\":685,\"../box/attributes\":859}],1145:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../plots/cartesian/axes\"),a=t(\"../box/calc\"),o=t(\"./helpers\"),s=t(\"../../constants/numerical\").BADNUM;function l(t,e,r){var i=e.max-e.min;if(!i)return 1;if(t.bandwidth)return Math.max(t.bandwidth,i/1e4);var a=r.length,o=n.stdev(r,a-1,e.mean);return Math.max(function(t,e,r){return 1.059*Math.min(e,r/1.349)*Math.pow(t,-.2)}(a,o,e.q3-e.q1),i/100)}function c(t,e,r,n){var a,o=t.spanmode,l=t.span||[],c=[e.min,e.max],u=[e.min-2*n,e.max+2*n];function f(n){var i=l[n],a=r.d2c(i,0,t[e.valLetter+\"calendar\"]);return a===s?u[n]:a}var h={type:\"linear\",range:a=\"soft\"===o?u:\"hard\"===o?c:[f(0),f(1)]};return i.setConvert(h),h.cleanRange(),a}e.exports=function(t,e){var r=a(t,e);if(r[0].t.empty)return r;var s=t._fullLayout,u=i.getFromId(t,e[\"h\"===e.orientation?\"xaxis\":\"yaxis\"]),f=s._violinScaleGroupStats,h=e.scalegroup,p=f[h];p||(p=f[h]={maxWidth:0,maxCount:0});for(var d=1/0,g=-1/0,v=0;v<r.length;v++){var m=r[v],y=m.pts.map(o.extractVal),x=m.bandwidth=l(e,m,y),b=m.span=c(e,m,u,x),_=b[1]-b[0],w=Math.ceil(_/(x/3)),k=_/w;if(!isFinite(k)||!isFinite(w))return n.error(\"Something went wrong with computing the violin span\"),r[0].t.empty=!0,r;var M=o.makeKDE(m,e,y);m.density=new Array(w);for(var A=0,T=b[0];T<b[1]+k/2;A++,T+=k){var S=M(T);p.maxWidth=Math.max(p.maxWidth,S),m.density[A]={v:S,t:T}}p.maxCount=Math.max(p.maxCount,y.length),d=Math.min(d,b[0]),g=Math.max(g,b[1])}var E=i.findExtremes(u,[d,g],{padded:!0});return e._extremes[u._id]=E,r[0].t.labels.kde=n._(t,\"kde:\"),r}},{\"../../constants/numerical\":673,\"../../lib\":696,\"../../plots/cartesian/axes\":744,\"../box/calc\":860,\"./helpers\":1148}],1146:[function(t,e,r){\"use strict\";var n=t(\"../box/cross_trace_calc\").setPositionOffset,i=[\"v\",\"h\"];e.exports=function(t,e){for(var r=t.calcdata,a=e.xaxis,o=e.yaxis,s=0;s<i.length;s++){for(var l=i[s],c=\"h\"===l?o:a,u=[],f=0,h=0,p=0;p<r.length;p++){var d=r[p],g=d[0].t,v=d[0].trace;!0!==v.visible||\"violin\"!==v.type||g.empty||v.orientation!==l||v.xaxis!==a._id||v.yaxis!==o._id||(u.push(p),!1!==v.points&&(f=Math.max(f,v.jitter-v.pointpos-1),h=Math.max(h,v.jitter+v.pointpos-1)))}n(\"violin\",t,u,c,[f,h])}}},{\"../box/cross_trace_calc\":861}],1147:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../components/color\"),a=t(\"../box/defaults\"),o=t(\"./attributes\");e.exports=function(t,e,r,s){function l(r,i){return n.coerce(t,e,o,r,i)}function c(r,i){return n.coerce2(t,e,o,r,i)}if(a.handleSampleDefaults(t,e,l,s),!1!==e.visible){l(\"bandwidth\"),l(\"scalegroup\",e.name),l(\"scalemode\"),l(\"side\");var u,f=l(\"span\");Array.isArray(f)&&(u=\"manual\"),l(\"spanmode\",u);var h=l(\"line.color\",(t.marker||{}).color||r),p=l(\"line.width\"),d=l(\"fillcolor\",i.addOpacity(e.line.color,.5));a.handlePointsDefaults(t,e,l,{prefix:\"\"});var g=c(\"box.width\"),v=c(\"box.fillcolor\",d),m=c(\"box.line.color\",h),y=c(\"box.line.width\",p);l(\"box.visible\",Boolean(g||v||m||y))||(e.box={visible:!1});var x=c(\"meanline.color\",h),b=c(\"meanline.width\",p);l(\"meanline.visible\",Boolean(x||b))||(e.meanline={visible:!1})}}},{\"../../components/color\":570,\"../../lib\":696,\"../box/defaults\":862,\"./attributes\":1144}],1148:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=function(t){return 1/Math.sqrt(2*Math.PI)*Math.exp(-.5*t*t)};r.makeKDE=function(t,e,r){var n=r.length,a=i,o=t.bandwidth,s=1/(n*o);return function(t){for(var e=0,i=0;i<n;i++)e+=a((t-r[i])/o);return s*e}},r.getPositionOnKdePath=function(t,e,r){var i,a;\"h\"===e.orientation?(i=\"y\",a=\"x\"):(i=\"x\",a=\"y\");var o=n.findPointOnPath(t.path,r,a,{pathLength:t.pathLength}),s=t.posCenterPx,l=o[i];return[l,\"both\"===e.side?2*s-l:s]},r.getKdeValue=function(t,e,n){var i=t.pts.map(r.extractVal);return r.makeKDE(t,e,i)(n)/t.posDensityScale},r.extractVal=function(t){return t.v}},{\"../../lib\":696}],1149:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../plots/cartesian/axes\"),a=t(\"../box/hover\"),o=t(\"./helpers\");e.exports=function(t,e,r,s,l){var c,u,f=t.cd,h=f[0].trace,p=h.hoveron,d=-1!==p.indexOf(\"violins\"),g=-1!==p.indexOf(\"kde\"),v=[];if(d||g){var m=a.hoverOnBoxes(t,e,r,s);if(d&&(v=v.concat(m)),g&&m.length>0){var y,x,b,_,w,k=t.xa,M=t.ya;\"h\"===h.orientation?(w=e,y=\"y\",b=M,x=\"x\",_=k):(w=r,y=\"x\",b=k,x=\"y\",_=M);var A=f[t.index];if(w>=A.span[0]&&w<=A.span[1]){var T=n.extendFlat({},t),S=_.c2p(w,!0),E=o.getKdeValue(A,h,w),C=o.getPositionOnKdePath(A,h,S),L=b._offset,z=b._length;T[y+\"0\"]=C[0],T[y+\"1\"]=C[1],T[x+\"0\"]=T[x+\"1\"]=S,T[x+\"Label\"]=x+\": \"+i.hoverLabelText(_,w)+\", \"+f[0].t.labels.kde+\" \"+E.toFixed(3),T.spikeDistance=m[0].spikeDistance;var O=y+\"Spike\";T[O]=m[0][O],m[0].spikeDistance=void 0,m[0][O]=void 0,v.push(T),(u={stroke:t.color})[y+\"1\"]=n.constrain(L+C[0],L,L+z),u[y+\"2\"]=n.constrain(L+C[1],L,L+z),u[x+\"1\"]=u[x+\"2\"]=_._offset+S}}}-1!==p.indexOf(\"points\")&&(c=a.hoverOnPoints(t,e,r));var I=l.selectAll(\".violinline-\"+h.uid).data(u?[0]:[]);return I.enter().append(\"line\").classed(\"violinline-\"+h.uid,!0).attr(\"stroke-width\",1.5),I.exit().remove(),I.attr(u),\"closest\"===s?c?[c]:v:c?(v.push(c),v):v}},{\"../../lib\":696,\"../../plots/cartesian/axes\":744,\"../box/hover\":864,\"./helpers\":1148}],1150:[function(t,e,r){\"use strict\";e.exports={attributes:t(\"./attributes\"),layoutAttributes:t(\"./layout_attributes\"),supplyDefaults:t(\"./defaults\"),supplyLayoutDefaults:t(\"./layout_defaults\"),calc:t(\"./calc\"),crossTraceCalc:t(\"./cross_trace_calc\"),plot:t(\"./plot\"),style:t(\"./style\"),styleOnSelect:t(\"../scatter/style\").styleOnSelect,hoverPoints:t(\"./hover\"),selectPoints:t(\"../box/select\"),moduleType:\"trace\",name:\"violin\",basePlotModule:t(\"../../plots/cartesian\"),categories:[\"cartesian\",\"svg\",\"symbols\",\"oriented\",\"box-violin\",\"showLegend\",\"violinLayout\",\"zoomScale\"],meta:{}}},{\"../../plots/cartesian\":756,\"../box/select\":869,\"../scatter/style\":1066,\"./attributes\":1144,\"./calc\":1145,\"./cross_trace_calc\":1146,\"./defaults\":1147,\"./hover\":1149,\"./layout_attributes\":1151,\"./layout_defaults\":1152,\"./plot\":1153,\"./style\":1154}],1151:[function(t,e,r){\"use strict\";var n=t(\"../box/layout_attributes\"),i=t(\"../../lib\").extendFlat;e.exports={violinmode:i({},n.boxmode,{}),violingap:i({},n.boxgap,{}),violingroupgap:i({},n.boxgroupgap,{})}},{\"../../lib\":696,\"../box/layout_attributes\":866}],1152:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"./layout_attributes\"),a=t(\"../box/layout_defaults\");e.exports=function(t,e,r){a._supply(t,e,r,function(r,a){return n.coerce(t,e,i,r,a)},\"violin\")}},{\"../../lib\":696,\"../box/layout_defaults\":867,\"./layout_attributes\":1151}],1153:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../../lib\"),a=t(\"../../components/drawing\"),o=t(\"../box/plot\"),s=t(\"../scatter/line_points\"),l=t(\"./helpers\");e.exports=function(t,e,r,c){var u=t._fullLayout,f=e.xaxis,h=e.yaxis;function p(t){var e=s(t,{xaxis:f,yaxis:h,connectGaps:!0,baseTolerance:.75,shape:\"spline\",simplify:!0});return a.smoothopen(e[0],1)}i.makeTraceGroups(c,r,\"trace violins\").each(function(t){var r=n.select(this),a=t[0],s=a.t,c=a.trace;e.isRangePlot||(a.node3=r);var d=u._numViolins,g=\"group\"===u.violinmode&&d>1,v=1-u.violingap,m=s.bdPos=s.dPos*v*(1-u.violingroupgap)/(g?d:1),y=s.bPos=g?2*s.dPos*((s.num+.5)/d-.5)*v:0;if(s.wHover=s.dPos*(g?v/d:1),!0!==c.visible||s.empty)r.remove();else{var x=e[s.valLetter+\"axis\"],b=e[s.posLetter+\"axis\"],_=\"both\"===c.side,w=_||\"positive\"===c.side,k=_||\"negative\"===c.side,M=u._violinScaleGroupStats[c.scalegroup],A=r.selectAll(\"path.violin\").data(i.identity);A.enter().append(\"path\").style(\"vector-effect\",\"non-scaling-stroke\").attr(\"class\",\"violin\"),A.exit().remove(),A.each(function(t){var e,r,i,a,o,l,u,f,h=n.select(this),d=t.density,g=d.length,v=t.pos+y,A=b.c2p(v);switch(c.scalemode){case\"width\":e=M.maxWidth/m;break;case\"count\":e=M.maxWidth/m*(M.maxCount/t.pts.length)}if(w){for(u=new Array(g),o=0;o<g;o++)(f=u[o]={})[s.posLetter]=v+d[o].v/e,f[s.valLetter]=d[o].t;r=p(u)}if(k){for(u=new Array(g),l=0,o=g-1;l<g;l++,o--)(f=u[l]={})[s.posLetter]=v-d[o].v/e,f[s.valLetter]=d[o].t;i=p(u)}if(_)a=r+\"L\"+i.substr(1)+\"Z\";else{var T=[A,x.c2p(d[0].t)],S=[A,x.c2p(d[g-1].t)];\"h\"===c.orientation&&(T.reverse(),S.reverse()),a=w?\"M\"+T+\"L\"+r.substr(1)+\"L\"+S:\"M\"+S+\"L\"+i.substr(1)+\"L\"+T}h.attr(\"d\",a),t.posCenterPx=A,t.posDensityScale=e*m,t.path=h.node(),t.pathLength=t.path.getTotalLength()/(_?2:1)});var T,S,E,C=c.box,L=C.width,z=(C.line||{}).width;_?(T=m*L,S=0):w?(T=[0,m*L/2],S=-z):(T=[m*L/2,0],S=z),o.plotBoxAndWhiskers(r,{pos:b,val:x},c,{bPos:y,bdPos:T,bPosPxOffset:S}),o.plotBoxMean(r,{pos:b,val:x},c,{bPos:y,bdPos:T,bPosPxOffset:S}),!c.box.visible&&c.meanline.visible&&(E=i.identity);var O=r.selectAll(\"path.meanline\").data(E||[]);O.enter().append(\"path\").attr(\"class\",\"meanline\").style(\"fill\",\"none\").style(\"vector-effect\",\"non-scaling-stroke\"),O.exit().remove(),O.each(function(t){var e=x.c2p(t.mean,!0),r=l.getPositionOnKdePath(t,c,e);n.select(this).attr(\"d\",\"h\"===c.orientation?\"M\"+e+\",\"+r[0]+\"V\"+r[1]:\"M\"+r[0]+\",\"+e+\"H\"+r[1])}),o.plotPoints(r,{x:f,y:h},c,s)}})}},{\"../../components/drawing\":595,\"../../lib\":696,\"../box/plot\":868,\"../scatter/line_points\":1057,\"./helpers\":1148,d3:148}],1154:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../../components/color\"),a=t(\"../scatter/style\").stylePoints;e.exports=function(t,e){var r=e?e[0].node3:n.select(t).selectAll(\"g.trace.violins\");r.style(\"opacity\",function(t){return t[0].trace.opacity}),r.each(function(e){var r=e[0].trace,o=n.select(this),s=r.box||{},l=s.line||{},c=r.meanline||{},u=c.width;o.selectAll(\"path.violin\").style(\"stroke-width\",r.line.width+\"px\").call(i.stroke,r.line.color).call(i.fill,r.fillcolor),o.selectAll(\"path.box\").style(\"stroke-width\",l.width+\"px\").call(i.stroke,l.color).call(i.fill,s.fillcolor);var f={\"stroke-width\":u+\"px\",\"stroke-dasharray\":2*u+\"px,\"+u+\"px\"};o.selectAll(\"path.mean\").style(f).call(i.stroke,c.color),o.selectAll(\"path.meanline\").style(f).call(i.stroke,c.color),a(o,r,t)})}},{\"../../components/color\":570,\"../scatter/style\":1066,d3:148}],1155:[function(t,e,r){\"use strict\";var n=t(\"../plots/cartesian/axes\"),i=t(\"../lib\"),a=t(\"../plot_api/plot_schema\"),o=t(\"./helpers\").pointsAccessorFunction,s=t(\"../constants/numerical\").BADNUM;r.moduleType=\"transform\",r.name=\"aggregate\";var l=r.attributes={enabled:{valType:\"boolean\",dflt:!0,editType:\"calc\"},groups:{valType:\"string\",strict:!0,noBlank:!0,arrayOk:!0,dflt:\"x\",editType:\"calc\"},aggregations:{_isLinkedToArray:\"aggregation\",target:{valType:\"string\",editType:\"calc\"},func:{valType:\"enumerated\",values:[\"count\",\"sum\",\"avg\",\"median\",\"mode\",\"rms\",\"stddev\",\"min\",\"max\",\"first\",\"last\",\"change\",\"range\"],dflt:\"first\",editType:\"calc\"},funcmode:{valType:\"enumerated\",values:[\"sample\",\"population\"],dflt:\"sample\",editType:\"calc\"},enabled:{valType:\"boolean\",dflt:!0,editType:\"calc\"},editType:\"calc\"},editType:\"calc\"},c=l.aggregations;function u(t,e,r,a){if(a.enabled){for(var o=a.target,l=i.nestedProperty(e,o),c=l.get(),u=function(t,e){var r=t.func,n=e.d2c,i=e.c2d;switch(r){case\"count\":return f;case\"first\":return h;case\"last\":return p;case\"sum\":return function(t,e){for(var r=0,a=0;a<e.length;a++){var o=n(t[e[a]]);o!==s&&(r+=o)}return i(r)};case\"avg\":return function(t,e){for(var r=0,a=0,o=0;o<e.length;o++){var l=n(t[e[o]]);l!==s&&(r+=l,a++)}return a?i(r/a):s};case\"min\":return function(t,e){for(var r=1/0,a=0;a<e.length;a++){var o=n(t[e[a]]);o!==s&&(r=Math.min(r,o))}return r===1/0?s:i(r)};case\"max\":return function(t,e){for(var r=-1/0,a=0;a<e.length;a++){var o=n(t[e[a]]);o!==s&&(r=Math.max(r,o))}return r===-1/0?s:i(r)};case\"range\":return function(t,e){for(var r=1/0,a=-1/0,o=0;o<e.length;o++){var l=n(t[e[o]]);l!==s&&(r=Math.min(r,l),a=Math.max(a,l))}return a===-1/0||r===1/0?s:i(a-r)};case\"change\":return function(t,e){var r=n(t[e[0]]),a=n(t[e[e.length-1]]);return r===s||a===s?s:i(a-r)};case\"median\":return function(t,e){for(var r=[],a=0;a<e.length;a++){var o=n(t[e[a]]);o!==s&&r.push(o)}if(!r.length)return s;r.sort();var l=(r.length-1)/2;return i((r[Math.floor(l)]+r[Math.ceil(l)])/2)};case\"mode\":return function(t,e){for(var r={},a=0,o=s,l=0;l<e.length;l++){var c=n(t[e[l]]);if(c!==s){var u=r[c]=(r[c]||0)+1;u>a&&(a=u,o=c)}}return a?i(o):s};case\"rms\":return function(t,e){for(var r=0,a=0,o=0;o<e.length;o++){var l=n(t[e[o]]);l!==s&&(r+=l*l,a++)}return a?i(Math.sqrt(r/a)):s};case\"stddev\":return function(e,r){var i,a=0,o=0,l=1,c=s;for(i=0;i<r.length&&c===s;i++)c=n(e[r[i]]);if(c===s)return s;for(;i<r.length;i++){var u=n(e[r[i]]);if(u!==s){var f=u-c;a+=f,o+=f*f,l++}}var h=\"sample\"===t.funcmode?l-1:l;return h?Math.sqrt((o-a*a/l)/h):0}}}(a,n.getDataConversions(t,e,o,c)),d=new Array(r.length),g=0;g<r.length;g++)d[g]=u(c,r[g]);l.set(d),\"count\"===a.func&&i.pushUnique(e._arrayAttrs,o)}}function f(t,e){return e.length}function h(t,e){return t[e[0]]}function p(t,e){return t[e[e.length-1]]}r.supplyDefaults=function(t,e){var r,n={};function o(e,r){return i.coerce(t,n,l,e,r)}if(!o(\"enabled\"))return n;var s=a.findArrayAttributes(e),u={};for(r=0;r<s.length;r++)u[s[r]]=1;var f=o(\"groups\");if(!Array.isArray(f)){if(!u[f])return n.enabled=!1,n;u[f]=0}var h,p=t.aggregations||[],d=n.aggregations=new Array(p.length);function g(t,e){return i.coerce(p[r],h,c,t,e)}for(r=0;r<p.length;r++){h={_index:r};var v=g(\"target\"),m=g(\"func\");g(\"enabled\")&&v&&(u[v]||\"count\"===m&&void 0===u[v])?(\"stddev\"===m&&g(\"funcmode\"),u[v]=0,d[r]=h):d[r]={enabled:!1,_index:r}}for(r=0;r<s.length;r++)u[s[r]]&&d.push({target:s[r],func:c.func.dflt,enabled:!0,_index:-1});return n},r.calcTransform=function(t,e,r){if(r.enabled){var n=r.groups,a=i.getTargetArray(e,{target:n});if(a){var s,l,c,f,h={},p={},d=[],g=o(e.transforms,r),v=a.length;for(e._length&&(v=Math.min(v,e._length)),s=0;s<v;s++)void 0===(c=h[l=a[s]])?(h[l]=d.length,f=[s],d.push(f),p[h[l]]=g(s)):(d[c].push(s),p[h[l]]=(p[h[l]]||[]).concat(g(s)));r._indexToPoints=p;var m=r.aggregations;for(s=0;s<m.length;s++)u(t,e,d,m[s]);\"string\"==typeof n&&u(t,e,d,{target:n,func:\"first\",enabled:!0}),e._length=d.length}}}},{\"../constants/numerical\":673,\"../lib\":696,\"../plot_api/plot_schema\":733,\"../plots/cartesian/axes\":744,\"./helpers\":1158}],1156:[function(t,e,r){\"use strict\";var n=t(\"../lib\"),i=t(\"../registry\"),a=t(\"../plots/cartesian/axes\"),o=t(\"./helpers\").pointsAccessorFunction,s=t(\"../constants/filter_ops\"),l=s.COMPARISON_OPS,c=s.INTERVAL_OPS,u=s.SET_OPS;r.moduleType=\"transform\",r.name=\"filter\",r.attributes={enabled:{valType:\"boolean\",dflt:!0,editType:\"calc\"},target:{valType:\"string\",strict:!0,noBlank:!0,arrayOk:!0,dflt:\"x\",editType:\"calc\"},operation:{valType:\"enumerated\",values:[].concat(l).concat(c).concat(u),dflt:\"=\",editType:\"calc\"},value:{valType:\"any\",dflt:0,editType:\"calc\"},preservegaps:{valType:\"boolean\",dflt:!1,editType:\"calc\"},editType:\"calc\"},r.supplyDefaults=function(t){var e={};function a(i,a){return n.coerce(t,e,r.attributes,i,a)}if(a(\"enabled\")){a(\"preservegaps\"),a(\"operation\"),a(\"value\"),a(\"target\");var o=i.getComponentMethod(\"calendars\",\"handleDefaults\");o(t,e,\"valuecalendar\",null),o(t,e,\"targetcalendar\",null)}return e},r.calcTransform=function(t,e,r){if(r.enabled){var i=n.getTargetArray(e,r);if(i){var s=r.target,f=i.length;e._length&&(f=Math.min(f,e._length));var h=r.targetcalendar,p=e._arrayAttrs,d=r.preservegaps;if(\"string\"==typeof s){var g=n.nestedProperty(e,s+\"calendar\").get();g&&(h=g)}var v,m,y=function(t,e,r){var n=t.operation,i=t.value,a=Array.isArray(i);function o(t){return-1!==t.indexOf(n)}var s,f=function(r){return e(r,0,t.valuecalendar)},h=function(t){return e(t,0,r)};o(l)?s=f(a?i[0]:i):o(c)?s=a?[f(i[0]),f(i[1])]:[f(i),f(i)]:o(u)&&(s=a?i.map(f):[f(i)]);switch(n){case\"=\":return function(t){return h(t)===s};case\"!=\":return function(t){return h(t)!==s};case\"<\":return function(t){return h(t)<s};case\"<=\":return function(t){return h(t)<=s};case\">\":return function(t){return h(t)>s};case\">=\":return function(t){return h(t)>=s};case\"[]\":return function(t){var e=h(t);return e>=s[0]&&e<=s[1]};case\"()\":return function(t){var e=h(t);return e>s[0]&&e<s[1]};case\"[)\":return function(t){var e=h(t);return e>=s[0]&&e<s[1]};case\"(]\":return function(t){var e=h(t);return e>s[0]&&e<=s[1]};case\"][\":return function(t){var e=h(t);return e<=s[0]||e>=s[1]};case\")(\":return function(t){var e=h(t);return e<s[0]||e>s[1]};case\"](\":return function(t){var e=h(t);return e<=s[0]||e>s[1]};case\")[\":return function(t){var e=h(t);return e<s[0]||e>=s[1]};case\"{}\":return function(t){return-1!==s.indexOf(h(t))};case\"}{\":return function(t){return-1===s.indexOf(h(t))}}}(r,a.getDataToCoordFunc(t,e,s,i),h),x={},b={},_=0;d?(v=function(t){x[t.astr]=n.extendDeep([],t.get()),t.set(new Array(f))},m=function(t,e){var r=x[t.astr][e];t.get()[e]=r}):(v=function(t){x[t.astr]=n.extendDeep([],t.get()),t.set([])},m=function(t,e){var r=x[t.astr][e];t.get().push(r)}),M(v);for(var w=o(e.transforms,r),k=0;k<f;k++){y(i[k])?(M(m,k),b[_++]=w(k)):d&&_++}r._indexToPoints=b,e._length=_}}function M(t,r){for(var i=0;i<p.length;i++){t(n.nestedProperty(e,p[i]),r)}}}},{\"../constants/filter_ops\":669,\"../lib\":696,\"../plots/cartesian/axes\":744,\"../registry\":827,\"./helpers\":1158}],1157:[function(t,e,r){\"use strict\";var n=t(\"../lib\"),i=t(\"../plot_api/plot_schema\"),a=t(\"../plots/plots\"),o=t(\"./helpers\").pointsAccessorFunction;function s(t,e){var r,s,c,u,f,h,p,d,g,v,m=e.transform,y=e.transformIndex,x=t.transforms[y].groups,b=o(t.transforms,m);if(!Array.isArray(x)||0===x.length)return[t];var _=n.filterUnique(x),w=new Array(_.length),k=x.length,M=i.findArrayAttributes(t),A=m.styles||[],T={};for(r=0;r<A.length;r++)T[A[r].target]=A[r].value;m.styles&&(v=n.keyedContainer(m,\"styles\",\"target\",\"value.name\"));var S={},E={};for(r=0;r<_.length;r++){S[h=_[r]]=r,E[h]=0,(p=w[r]=n.extendDeepNoArrays({},t))._group=h,p.updateStyle=l(h,y),p.transforms[y]._indexToPoints={};var C=null;for(v&&(C=v.get(h)),p.name=C||\"\"===C?C:n.templateString(m.nameformat,{trace:t.name,group:h}),d=p.transforms,p.transforms=[],s=0;s<d.length;s++)p.transforms[s]=n.extendDeepNoArrays({},d[s]);for(s=0;s<M.length;s++)n.nestedProperty(p,M[s]).set([])}for(c=0;c<M.length;c++){for(u=M[c],s=0,g=[];s<_.length;s++)g[s]=n.nestedProperty(w[s],u).get();for(f=n.nestedProperty(t,u).get(),s=0;s<k;s++)g[S[x[s]]].push(f[s])}for(s=0;s<k;s++){(p=w[S[x[s]]]).transforms[y]._indexToPoints[E[x[s]]]=b(s),E[x[s]]++}for(r=0;r<_.length;r++)h=_[r],p=w[r],a.clearExpandedTraceDefaultColors(p),p=n.extendDeepNoArrays(p,T[h]||{});return w}function l(t,e){return function(r,i,a){n.keyedContainer(r,\"transforms[\"+e+\"].styles\",\"target\",\"value.\"+i).set(String(t),a)}}r.moduleType=\"transform\",r.name=\"groupby\",r.attributes={enabled:{valType:\"boolean\",dflt:!0,editType:\"calc\"},groups:{valType:\"data_array\",dflt:[],editType:\"calc\"},nameformat:{valType:\"string\",editType:\"calc\"},styles:{_isLinkedToArray:\"style\",target:{valType:\"string\",editType:\"calc\"},value:{valType:\"any\",dflt:{},editType:\"calc\",_compareAsJSON:!0},editType:\"calc\"},editType:\"calc\"},r.supplyDefaults=function(t,e,i){var a,o={};function s(e,i){return n.coerce(t,o,r.attributes,e,i)}if(!s(\"enabled\"))return o;s(\"groups\"),s(\"nameformat\",i._dataLength>1?\"%{group} (%{trace})\":\"%{group}\");var l=t.styles,c=o.styles=[];if(l)for(a=0;a<l.length;a++){var u=c[a]={};n.coerce(l[a],c[a],r.attributes.styles,\"target\");var f=n.coerce(l[a],c[a],r.attributes.styles,\"value\");n.isPlainObject(f)?u.value=n.extendDeep({},f):f&&delete u.value}return o},r.transform=function(t,e){var r,n,i,a=[];for(n=0;n<t.length;n++)for(r=s(t[n],e),i=0;i<r.length;i++)a.push(r[i]);return a}},{\"../lib\":696,\"../plot_api/plot_schema\":733,\"../plots/plots\":808,\"./helpers\":1158}],1158:[function(t,e,r){\"use strict\";r.pointsAccessorFunction=function(t,e){for(var r,n,i=0;i<t.length&&(r=t[i])!==e;i++)r._indexToPoints&&!1!==r.enabled&&(n=r._indexToPoints);return n?function(t){return n[t]}:function(t){return[t]}}},{}],1159:[function(t,e,r){\"use strict\";var n=t(\"../lib\"),i=t(\"../plots/cartesian/axes\"),a=t(\"./helpers\").pointsAccessorFunction;r.moduleType=\"transform\",r.name=\"sort\",r.attributes={enabled:{valType:\"boolean\",dflt:!0,editType:\"calc\"},target:{valType:\"string\",strict:!0,noBlank:!0,arrayOk:!0,dflt:\"x\",editType:\"calc\"},order:{valType:\"enumerated\",values:[\"ascending\",\"descending\"],dflt:\"ascending\",editType:\"calc\"},editType:\"calc\"},r.supplyDefaults=function(t){var e={};function i(i,a){return n.coerce(t,e,r.attributes,i,a)}return i(\"enabled\")&&(i(\"target\"),i(\"order\")),e},r.calcTransform=function(t,e,r){if(r.enabled){var o=n.getTargetArray(e,r);if(o){var s=r.target,l=o.length;e._length&&(l=Math.min(l,e._length));var c,u,f=e._arrayAttrs,h=function(t,e,r,n){var i,a=new Array(n),o=new Array(n);for(i=0;i<n;i++)a[i]={v:e[i],i:i};for(a.sort(function(t,e){switch(t.order){case\"ascending\":return function(t,r){return e(t.v)-e(r.v)};case\"descending\":return function(t,r){return e(r.v)-e(t.v)}}}(t,r)),i=0;i<n;i++)o[i]=a[i].i;return o}(r,o,i.getDataToCoordFunc(t,e,s,o),l),p=a(e.transforms,r),d={};for(c=0;c<f.length;c++){var g=n.nestedProperty(e,f[c]),v=g.get(),m=new Array(l);for(u=0;u<l;u++)m[u]=v[h[u]];g.set(m)}for(u=0;u<l;u++)d[u]=p(h[u]);r._indexToPoints=d,e._length=l}}}},{\"../lib\":696,\"../plots/cartesian/axes\":744,\"./helpers\":1158}]},{},[22])(22)});});require(['plotly'], function(Plotly) {window._Plotly = Plotly;});}</script>" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "import plotly.offline as py\n", "import plotly.graph_objs as go\n", "\n", "py.init_notebook_mode()\n", "\n", "def plot_difference(mdiff, title=\"\", annotation=None):\n", " \"\"\"\n", " Helper function for plot difference between models\n", " \"\"\"\n", " annotation_html = None\n", " if annotation is not None:\n", " annotation_html = [\n", " [\n", " \"+++ {}<br>--- {}\".format(\", \".join(int_tokens), \", \".join(diff_tokens)) \n", " for (int_tokens, diff_tokens) in row\n", " ] \n", " for row in annotation\n", " ]\n", " \n", " data = go.Heatmap(z=mdiff, colorscale='RdBu', text=annotation_html)\n", " layout = go.Layout(width=950, height=950, title=title, xaxis=dict(title=\"topic\"), yaxis=dict(title=\"topic\"))\n", " py.iplot(dict(data=[data], layout=layout))" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "In gensim, you can visualise topic different with matrix and annotation. For this purposes, you can use method `diff` from LdaModel.\n", "\n", "This function return matrix with distances <span style=\"color:green\">mdiff</span> and matrix with annotations <span style=\"color:green\">annotation</span>. Read the docstring for more detailed info.\n", "\n", "In cells <span style=\"color:green\">mdiff[i][j]</span> we can see a distance between <span style=\"color:green\">topic_i</span> from the first model and <span style=\"color:green\">topic_j</span> from the second model.\n", "\n", "In cells <span style=\"color:green\">annotation[i][j]</span> we can see <span style=\"color:green\">[tokens from intersection, tokens from difference]</span> between <span style=\"color:green\">topic_i</span> from first model and <span style=\"color:green\">topic_j</span> from the second model." ] }, { "cell_type": "code", "execution_count": 5, "metadata": {}, "outputs": [], "source": [ "LdaMulticore.diff?" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Case 1: How topics in ONE model correlate with each other." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Short description:\n", "- x-axis - topic;\n", "- y-axis - topic;\n", "- <span style=\"color:red\">almost red cell</span> - strongly decorrelated topics;\n", "- <span style=\"color:blue\">almost blue cell</span> - strongly correlated topics.\n", "\n", "In an ideal world, we would like to see different topics decorrelated between themselves. In this case, our matrix would look like this:\n" ] }, { "cell_type": "code", "execution_count": 6, "metadata": {}, "outputs": [ { "data": { "application/vnd.plotly.v1+json": { "config": { "linkText": "Export to plot.ly", "plotlyServerURL": "https://plot.ly", "showLink": true }, "data": [ { "colorscale": "RdBu", "type": "heatmap", "uid": "973157fc-4482-42a4-9058-906b13c21939", "z": [ [ 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 ] ] } ], "layout": { "height": 950, "title": "Topic difference (one model) in ideal world", "width": 950, "xaxis": { "title": "topic" }, "yaxis": { "title": "topic" } } }, "text/html": [ "<div id=\"3288a94f-9719-441f-ada3-aa4a0e191411\" style=\"height: 950px; width: 950px;\" class=\"plotly-graph-div\"></div><script type=\"text/javascript\">require([\"plotly\"], function(Plotly) { window.PLOTLYENV=window.PLOTLYENV || {};window.PLOTLYENV.BASE_URL=\"https://plot.ly\";Plotly.newPlot(\"3288a94f-9719-441f-ada3-aa4a0e191411\", [{\"colorscale\": \"RdBu\", \"z\": [[0.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0], [1.0, 0.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0], [1.0, 1.0, 0.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0], [1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0], [1.0, 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0], [1.0, 1.0, 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0], [1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0], [1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0], [1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0], [1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0, 1.0, 1.0], [1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0, 1.0], [1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0], [1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 0.0, 1.0, 1.0], [1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 0.0, 1.0], [1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 0.0]], \"type\": \"heatmap\", \"uid\": \"d843a7f3-fe86-4034-b179-f72813f1027a\"}], {\"height\": 950, \"title\": \"Topic difference (one model) in ideal world\", \"width\": 950, \"xaxis\": {\"title\": \"topic\"}, \"yaxis\": {\"title\": \"topic\"}}, {\"showLink\": true, \"linkText\": \"Export to plot.ly\", \"plotlyServerURL\": \"https://plot.ly\"})});</script>" ], "text/vnd.plotly.v1+html": [ "<div id=\"3288a94f-9719-441f-ada3-aa4a0e191411\" style=\"height: 950px; width: 950px;\" class=\"plotly-graph-div\"></div><script type=\"text/javascript\">require([\"plotly\"], function(Plotly) { window.PLOTLYENV=window.PLOTLYENV || {};window.PLOTLYENV.BASE_URL=\"https://plot.ly\";Plotly.newPlot(\"3288a94f-9719-441f-ada3-aa4a0e191411\", [{\"colorscale\": \"RdBu\", \"z\": [[0.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0], [1.0, 0.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0], [1.0, 1.0, 0.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0], [1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0], [1.0, 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0], [1.0, 1.0, 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0], [1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0], [1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0], [1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0], [1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0, 1.0, 1.0], [1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0, 1.0], [1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0], [1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 0.0, 1.0, 1.0], [1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 0.0, 1.0], [1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 0.0]], \"type\": \"heatmap\", \"uid\": \"d843a7f3-fe86-4034-b179-f72813f1027a\"}], {\"height\": 950, \"title\": \"Topic difference (one model) in ideal world\", \"width\": 950, \"xaxis\": {\"title\": \"topic\"}, \"yaxis\": {\"title\": \"topic\"}}, {\"showLink\": true, \"linkText\": \"Export to plot.ly\", \"plotlyServerURL\": \"https://plot.ly\"})});</script>" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "import numpy as np\n", "\n", "mdiff = np.ones((num_topics, num_topics))\n", "np.fill_diagonal(mdiff, 0.)\n", " \n", "plot_difference(mdiff, title=\"Topic difference (one model) in ideal world\")" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Unfortunately, in real life, not everything is so good, and the matrix looks different." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Short description (annotations):\n", "- +++ make, world, well - words from the intersection of topics;\n", "- --- money, day, still - words from the symmetric difference of topics." ] }, { "cell_type": "code", "execution_count": 7, "metadata": {}, "outputs": [ { "data": { "application/vnd.plotly.v1+json": { "config": { "linkText": "Export to plot.ly", "plotlyServerURL": "https://plot.ly", "showLink": true }, "data": [ { "colorscale": "RdBu", "text": [ [ "+++ said, well, two, american, right, arab, say, palestinian, mani, want<br>--- ", "+++ even, could, make, well, time, question, right, also, say, want<br>--- two, mani, give, thing, sgi, chip, world, need, 000, jewish", "+++ could, time, make, also, want<br>--- well, two, right, say, mani, thank, give, speed, simm, chip", "+++ even, world, could, peopl, make, well, time, right, say, want<br>--- car, two, give, thing, also, happen, need, 000, jewish, question", "+++ want, time, think, make<br>--- car, well, two, c8v, right, say, mani, b8f, okz, give", "+++ even, world, could, said, kill, well, time, two, peopl, right<br>--- turkey, went, mani, give, also, serdar, need, number, 000, jewish", "+++ even, said, make, well, time, two, right, also, say, think<br>--- hockey, presid, mani, give, stephanopoulo, nhl, score, world, 000, jewish", "+++ could, make, well, time, two, question, also, want, year<br>--- current, right, say, mani, give, sale, world, need, 000, jewish", "+++ make, time, also, want, call, way<br>--- server, client, well, two, right, say, mani, resourc, thank, display", "+++ way, world, peopl, make, well, time, two, question, right, also<br>--- mani, thank, access, give, opinion, great, 000, jewish, dod, much", "+++ even, way, peopl, could, make, well, time, two, right, also<br>--- car, give, thing, world, number, 000, jewish, question, amend, polici", "+++ want, also, time<br>--- well, two, right, say, mani, thank, give, sale, inform, world", "+++ said, well, two, say, mani, want, even, make, also, see<br>--- point, law, right, arab, american, palestinian, live, believ, argument, govern", "+++ said, well, right, say, mani, want, even, make, also, see<br>--- atheist, realli, two, point, must, arab, palestinian, live, believ, object", "+++ could, peopl, make, time, two, right, also, think, govern, year<br>--- well, presid, say, mani, develop, access, give, inform, chip, world" ], [ "+++ even, could, make, well, time, question, right, also, say, want<br>--- two, mani, give, thing, sgi, chip, world, need, 000, jewish", "+++ realli, well, law, right, say, indiana, want, run, disk, state<br>--- ", "+++ want, run, disk, tri, make, also, new, problem, version, chip<br>--- realli, well, right, say, mac, thank, ide, thing, speed, simm", "+++ realli, well, right, say, want, state, tri, even, make, thing<br>--- car, point, law, repli, indiana, mani, run, disk, system, got", "+++ need, make, time, new, look, distribut, want, good, think, anyon<br>--- car, well, c8v, right, say, b8f, okz, thing, also, sgi", "+++ even, could, need, time, well, right, new, say, look, want<br>--- two, turkey, went, thing, also, serdar, sgi, chip, world, number", "+++ even, make, well, time, right, new, say, also, look, think<br>--- hockey, two, presid, stephanopoulo, nhl, thing, sgi, score, chip, need", "+++ could, need, make, well, time, question, new, also, look, distribut<br>--- current, two, right, say, thing, sale, sgi, chip, much, softwar", "+++ need, make, time, bit, also, look, distribut, want, run, problem<br>--- server, client, well, right, say, resourc, thank, display, thing, sourc", "+++ well, right, say, want, run, state, tri, make, new, also<br>--- realli, two, thank, access, opinion, thing, sgi, chip, world, need", "+++ well, law, right, say, state, even, make, thing, new, also<br>--- car, realli, two, file, weapon, mani, run, health, crime, sgi", "+++ need, time, drive, new, also, look, distribut, want, run, system<br>--- well, right, say, thank, thing, sale, sgi, inform, chip, question", "+++ well, law, say, want, even, make, thing, also, new, see<br>--- realli, two, right, mani, run, church, sgi, claim, chip, world", "+++ realli, well, right, say, want, tri, even, make, thing, also<br>--- atheist, said, point, law, must, indiana, mani, run, believ, object", "+++ could, need, make, time, key, law, new, right, also, distribut<br>--- well, two, presid, say, develop, access, thing, sgi, inform, clipper" ], [ "+++ could, time, make, also, want<br>--- well, two, right, say, mani, thank, give, speed, simm, chip", "+++ want, run, disk, tri, system, make, also, new, problem, version<br>--- realli, well, law, right, say, repli, indiana, monitor, mac, color", "+++ repli, monitor, want, mac, run, thank, disk, mous, ide, color<br>--- ", "+++ could, need, make, time, anyon, look, repli, distribut, want, problem<br>--- car, well, right, say, mani, thank, thing, also, speed, simm", "+++ need, make, time, new, look, repli, distribut, want, anyon<br>--- car, c8v, b8f, thank, okz, also, speed, simm, uchicago, chip", "+++ could, need, time, new, look, want, work<br>--- well, two, turkey, right, say, went, thank, also, speed, serdar", "+++ make, time, also, new, look, run<br>--- hockey, well, two, presid, right, say, thank, stephanopoulo, nhl, speed", "+++ could, need, make, time, new, also, repli, look, distribut, want<br>--- well, current, two, thank, speed, simm, sale, chip, question, nasa", "+++ repli, want, color, run, thank, set, tri, make, help, also<br>--- server, client, motif, applic, monitor, mous, resourc, mac, data, disk", "+++ make, time, new, also, repli, look, distribut, want, run, thank<br>--- well, two, right, say, access, opinion, speed, simm, chip, world", "+++ could, make, time, also, new, problem, scsi, control, system<br>--- car, well, two, right, say, mani, thank, thing, speed, simm", "+++ repli, want, mac, run, thank, system, help, new, also, version<br>--- imag, price, monitor, color, mous, netcom, disk, data, ide, instal", "+++ could, make, time, new, also, want<br>--- well, two, say, mani, thank, thing, speed, simm, chip, world", "+++ could, make, time, also, want, system, problem, tri<br>--- well, right, say, mani, thank, thing, speed, simm, chip, world", "+++ could, need, make, time, comput, also, new, distribut, work, system<br>--- two, presid, right, thank, develop, access, speed, simm, inform, clipper" ], [ "+++ even, world, could, peopl, make, well, time, right, say, mani<br>--- car, two, give, thing, also, happen, need, 000, jewish, question", "+++ realli, well, right, say, want, state, tri, even, make, thing<br>--- car, point, law, first, repli, indiana, mani, run, disk, got", "+++ could, need, make, time, anyon, look, repli, distribut, want, problem<br>--- car, well, right, say, mani, thank, thing, also, speed, simm", "+++ car, realli, well, point, first, right, say, repli, want, mani<br>--- ", "+++ need, car, make, time, look, repli, distribut, want, good, think<br>--- well, c8v, right, say, mani, b8f, okz, thing, uchicago, happen", "+++ even, world, could, need, time, well, peopl, right, look, say<br>--- car, two, turkey, went, mani, thing, serdar, happen, number, dod", "+++ even, make, well, time, point, right, look, say, good, think<br>--- car, hockey, two, presid, mani, stephanopoulo, nhl, also, thing, score", "+++ could, need, gov, well, make, time, point, look, repli, sun<br>--- car, current, two, right, say, mani, thing, also, sale, happen", "+++ need, make, time, look, repli, distribut, want, problem, tri, way<br>--- server, client, car, well, right, say, mani, resourc, thank, display", "+++ well, right, say, repli, want, state, tri, make, problem, year<br>--- car, realli, two, point, first, mani, run, thank, net, bnr", "+++ car, well, right, say, mani, state, even, make, thing, problem<br>--- realli, two, point, law, repli, weapon, want, health, system, case", "+++ need, time, look, repli, distribut, want, anyon<br>--- car, well, right, say, mani, thank, thing, also, sale, inform", "+++ well, point, say, mani, want, even, make, thing, see, world<br>--- said, car, realli, two, first, law, right, repli, believ, argument", "+++ realli, well, point, right, say, mani, want, tri, even, make<br>--- atheist, said, car, first, must, repli, believ, object, state, got", "+++ could, need, make, time, peopl, right, distribut, think, year, state<br>--- car, well, two, presid, say, mani, develop, access, thing, also" ], [ "+++ want, time, think, make<br>--- car, well, two, right, c8v, say, mani, b8f, okz, give", "+++ need, make, time, new, look, distribut, want, good, think, anyon<br>--- car, well, right, c8v, say, b8f, okz, thing, also, sgi", "+++ need, make, time, new, look, repli, distribut, want, anyon<br>--- car, c8v, b8f, thank, okz, also, speed, simm, uchicago, chip", "+++ need, car, make, time, look, repli, distribut, want, good, think<br>--- well, right, c8v, say, mani, b8f, okz, thing, uchicago, happen", "+++ 2tm, 1eq, car, c8v, 2di, repli, want, b8f, 1d9, 7ey<br>--- ", "+++ need, time, new, look, want, think<br>--- car, well, two, turkey, right, c8v, say, went, b8f, okz", "+++ time, make, new, look, good, think<br>--- car, hockey, well, two, presid, right, c8v, say, b8f, okz", "+++ need, make, time, new, look, repli, distribut, want, good, engin<br>--- car, well, current, two, c8v, b8f, okz, also, sale, uchicago", "+++ need, make, time, look, repli, distribut, want<br>--- server, client, car, c8v, b8f, resourc, thank, okz, display, also", "+++ make, time, new, look, repli, usa, want, distribut, good, think<br>--- car, well, two, right, c8v, say, b8f, thank, okz, access", "+++ car, time, make, new, good, think<br>--- well, two, right, c8v, say, mani, b8f, okz, thing, also", "+++ need, time, new, look, repli, distribut, want, anyon<br>--- car, c8v, b8f, thank, okz, also, sale, uchicago, inform, softwar", "+++ time, make, new, want, good, think<br>--- car, well, two, c8v, say, mani, b8f, okz, thing, also", "+++ time, make, want, good, think<br>--- car, well, right, c8v, say, mani, b8f, okz, thing, also", "+++ need, time, make, new, distribut, think<br>--- car, two, presid, right, c8v, b8f, develop, okz, access, also" ], [ "+++ even, world, could, said, kill, well, time, two, peopl, right<br>--- turkey, went, mani, give, also, serdar, need, number, 000, jewish", "+++ even, could, need, time, well, right, new, say, look, want<br>--- two, turkey, went, thing, also, serdar, sgi, chip, world, number", "+++ could, need, time, new, look, want, work<br>--- well, two, turkey, right, say, went, thank, also, speed, serdar", "+++ even, world, could, need, time, well, peopl, right, look, say<br>--- car, two, turkey, went, mani, thing, serdar, happen, number, dod", "+++ need, time, new, look, want, think<br>--- car, well, two, turkey, c8v, right, say, went, b8f, okz", "+++ said, armenia, well, two, turkey, right, say, went, want, live<br>--- ", "+++ even, said, time, well, two, right, new, say, look, think<br>--- hockey, presid, turkey, went, stephanopoulo, nhl, also, serdar, score, world", "+++ could, need, time, well, two, new, look, want, year, work<br>--- current, turkey, right, say, went, also, serdar, sale, world, number", "+++ program, need, time, number, work, look, want, name, file, call<br>--- server, client, well, two, turkey, right, say, went, resourc, thank", "+++ world, peopl, time, well, two, right, new, say, look, want<br>--- turkey, went, thank, access, opinion, also, serdar, need, great, number", "+++ even, peopl, could, time, well, number, two, right, new, say<br>--- car, turkey, went, mani, thing, also, serdar, world, need, much", "+++ program, need, time, new, look, want, file, work<br>--- well, two, turkey, right, say, went, thank, also, serdar, sale", "+++ even, world, could, said, time, well, two, new, say, want<br>--- turkey, right, went, mani, thing, also, serdar, need, number, question", "+++ even, world, could, said, time, well, right, say, want, think<br>--- two, turkey, went, mani, thing, also, serdar, need, number, question", "+++ program, could, need, time, peopl, two, new, right, year, think<br>--- well, presid, turkey, say, went, develop, access, also, serdar, inform" ], [ "+++ even, said, make, well, time, two, right, also, say, think<br>--- hockey, presid, mani, give, stephanopoulo, nhl, score, world, 000, jewish", "+++ even, make, well, time, right, also, say, new, look, think<br>--- hockey, two, presid, stephanopoulo, thing, nhl, sgi, score, chip, need", "+++ make, time, also, look, new, run<br>--- hockey, well, two, presid, right, say, thank, stephanopoulo, nhl, speed", "+++ even, make, well, time, point, right, look, say, good, think<br>--- car, hockey, two, presid, mani, stephanopoulo, thing, nhl, also, score", "+++ time, make, new, look, good, think<br>--- car, hockey, well, two, presid, c8v, right, say, b8f, okz", "+++ even, said, time, well, two, right, new, say, look, think<br>--- hockey, presid, turkey, went, stephanopoulo, nhl, also, serdar, score, world", "+++ game, said, play, hockey, well, two, point, presid, hit, right<br>--- ", "+++ make, well, time, two, point, new, also, look, good, run<br>--- hockey, current, presid, right, say, stephanopoulo, nhl, sale, score, need", "+++ make, time, also, look, run<br>--- server, client, hockey, well, two, presid, right, say, resourc, thank", "+++ make, well, time, two, right, new, say, also, look, good<br>--- hockey, presid, thank, access, opinion, stephanopoulo, nhl, score, world, great", "+++ day, even, make, well, time, two, right, new, say, also<br>--- car, hockey, presid, mani, stephanopoulo, thing, nhl, score, number, season", "+++ time, also, new, look, run<br>--- hockey, well, two, presid, right, say, thank, stephanopoulo, nhl, sale", "+++ day, even, said, make, well, time, two, point, also, new<br>--- hockey, presid, right, mani, stephanopoulo, thing, nhl, score, world, question", "+++ even, said, make, well, time, point, right, also, say, think<br>--- hockey, two, presid, mani, stephanopoulo, thing, nhl, score, world, question", "+++ make, time, two, presid, right, new, also, year, think, first<br>--- hockey, well, say, develop, access, stephanopoulo, nhl, inform, chip, score" ], [ "+++ could, make, well, time, two, question, also, want, year<br>--- current, right, say, mani, give, sale, world, need, 000, jewish", "+++ could, need, make, well, time, question, also, new, look, distribut<br>--- current, two, right, say, thing, sale, sgi, chip, much, softwar", "+++ could, need, make, time, also, new, repli, look, distribut, want<br>--- well, current, two, thank, speed, simm, sale, chip, question, nasa", "+++ could, need, make, well, gov, time, point, look, repli, sun<br>--- car, current, two, right, say, mani, thing, also, sale, happen", "+++ need, make, time, new, look, repli, distribut, want, good, engin<br>--- car, well, current, two, c8v, b8f, okz, also, sale, uchicago", "+++ could, need, time, well, two, new, look, want, year, work<br>--- current, turkey, right, say, went, also, serdar, sale, world, number", "+++ make, well, time, two, point, new, also, look, good, run<br>--- hockey, current, presid, right, say, stephanopoulo, nhl, sale, score, need", "+++ well, imag, two, point, current, wire, repli, want, pitt, run<br>--- ", "+++ need, make, time, also, look, repli, includ, want, distribut, run<br>--- server, client, well, current, two, resourc, thank, display, sourc, sale", "+++ make, well, time, two, question, new, also, repli, look, distribut<br>--- current, right, say, thank, access, opinion, sale, world, need, great", "+++ could, make, well, time, two, first, new, also, good, year<br>--- car, current, right, say, mani, thing, sale, need, number, question", "+++ need, time, imag, new, also, repli, look, includ, want, interest<br>--- well, current, two, thank, inform, question, softwar, address, list, nasa", "+++ could, make, well, scienc, two, point, question, also, new, time<br>--- current, say, mani, thing, sale, world, need, much, work, nasa", "+++ could, make, well, time, point, question, also, want, good, system<br>--- current, two, right, say, mani, thing, sale, world, need, work", "+++ could, need, make, time, two, also, new, space, distribut, nasa<br>--- well, current, presid, right, develop, access, sale, inform, chip, clipper" ], [ "+++ make, time, also, want, call, way<br>--- server, client, well, two, right, say, mani, resourc, thank, display", "+++ need, make, time, bit, also, look, distribut, want, run, problem<br>--- server, client, well, right, say, resourc, thank, display, thing, sourc", "+++ repli, want, color, run, thank, set, tri, make, help, also<br>--- server, client, motif, applic, file, monitor, mac, disk, mous, ide", "+++ need, make, time, look, repli, distribut, want, problem, tri, way<br>--- server, client, car, well, right, say, mani, resourc, thank, display", "+++ need, make, time, look, repli, distribut, want<br>--- server, client, car, c8v, b8f, resourc, thank, okz, display, also", "+++ program, need, time, number, work, look, want, name, file, call<br>--- server, client, well, two, turkey, right, say, went, resourc, thank", "+++ make, time, also, look, run<br>--- server, client, hockey, well, two, presid, right, say, resourc, thank", "+++ need, make, time, also, look, repli, includ, want, distribut, run<br>--- server, client, well, current, two, resourc, thank, display, sourc, sale", "+++ server, client, motif, applic, repli, want, color, run, thank, resourc<br>--- ", "+++ make, time, also, look, repli, distribut, want, run, thank, problem<br>--- server, client, well, two, right, say, resourc, display, access, opinion", "+++ make, time, number, also, problem, file, system, way<br>--- server, client, car, well, two, right, say, mani, resourc, thank", "+++ repli, want, run, thank, data, program, help, also, avail, version<br>--- server, client, imag, price, motif, applic, mac, resourc, netcom, color", "+++ make, time, also, want, may, way<br>--- server, client, well, two, say, mani, resourc, thank, display, thing", "+++ make, time, also, want, system, problem, may, tri, way<br>--- server, client, well, right, say, mani, resourc, thank, display, thing", "+++ way, program, need, make, time, also, distribut, may, data, work<br>--- server, client, two, presid, right, resourc, thank, develop, display, access" ], [ "+++ world, peopl, make, well, time, two, question, right, also, say<br>--- mani, thank, give, access, opinion, great, 000, jewish, dod, much", "+++ well, right, say, want, run, state, tri, make, also, new<br>--- realli, two, thank, access, opinion, thing, sgi, chip, world, need", "+++ make, time, also, new, repli, tri, look, want, distribut, run<br>--- well, two, right, say, access, opinion, speed, simm, chip, world", "+++ well, right, say, repli, want, state, tri, make, problem, year<br>--- car, realli, two, mani, run, thank, got, access, put, opinion", "+++ make, time, new, look, repli, usa, want, distribut, good, think<br>--- car, well, two, c8v, right, say, b8f, thank, okz, access", "+++ world, peopl, time, well, two, right, new, say, look, want<br>--- turkey, went, thank, access, opinion, also, serdar, need, number, great", "+++ make, well, time, two, right, new, say, also, look, good<br>--- hockey, presid, thank, access, opinion, stephanopoulo, nhl, score, world, great", "+++ make, well, time, two, question, new, also, repli, look, distribut<br>--- current, right, say, thank, access, opinion, sale, world, need, great", "+++ make, time, also, look, repli, distribut, want, run, thank, problem<br>--- server, client, well, two, right, say, resourc, display, access, opinion", "+++ well, two, right, say, repli, want, run, thank, net, state<br>--- ", "+++ peopl, make, well, time, two, right, new, say, also, good<br>--- car, mani, thank, access, opinion, thing, world, number, great, question", "+++ time, new, also, repli, look, distribut, want, run, thank, pleas<br>--- well, two, right, say, access, opinion, sale, inform, world, need", "+++ world, peopl, make, well, time, two, question, also, new, say<br>--- right, mani, thank, access, opinion, thing, great, dod, much, bmw", "+++ world, peopl, make, well, time, question, right, also, say, human<br>--- realli, two, mani, run, object, thank, access, opinion, thing, christ", "+++ access, peopl, make, time, two, right, new, also, propos, distribut<br>--- well, presid, say, thank, develop, opinion, inform, chip, world, clipper" ], [ "+++ even, way, could, peopl, make, well, time, two, right, also<br>--- car, arab, weapon, health, give, crime, kill, thing, new, control", "+++ well, law, right, say, state, even, make, thing, also, new<br>--- car, realli, two, weapon, mani, run, health, crime, sgi, control", "+++ could, make, time, new, also, problem, scsi, control, system<br>--- car, well, two, right, say, mani, thank, thing, speed, simm", "+++ car, well, right, say, mani, state, even, make, thing, problem<br>--- realli, two, weapon, health, got, put, crime, gov, new, also", "+++ car, time, make, new, good, think<br>--- well, two, c8v, right, say, mani, b8f, okz, thing, also", "+++ even, year, could, peopl, time, well, number, two, right, new<br>--- car, turkey, went, mani, thing, also, serdar, world, need, much", "+++ day, even, make, well, time, two, right, new, say, also<br>--- car, hockey, presid, mani, stephanopoulo, nhl, thing, score, number, season", "+++ could, make, well, time, two, new, also, good, system, year<br>--- car, current, right, say, mani, thing, sale, need, number, question", "+++ make, time, number, also, problem, file, system, way<br>--- server, client, car, well, two, right, say, mani, resourc, thank", "+++ peopl, make, well, time, two, right, new, say, also, good<br>--- car, weapon, mani, run, thank, health, access, crime, opinion, thing", "+++ car, well, two, first, law, right, file, say, weapon, mani<br>--- ", "+++ time, also, new, file, system<br>--- car, well, two, right, say, mani, thank, thing, sale, inform", "+++ well, two, law, say, mani, even, make, thing, also, new<br>--- said, car, point, first, right, weapon, want, believ, argument, health", "+++ well, right, say, mani, even, make, thing, also, problem, see<br>--- car, realli, two, weapon, object, health, crime, christ, new, control", "+++ could, peopl, make, time, two, public, law, right, new, also<br>--- car, well, presid, say, mani, develop, access, thing, inform, chip" ], [ "+++ want, also, time<br>--- well, two, right, say, mani, thank, give, sale, inform, world", "+++ need, time, drive, also, new, look, distribut, want, run, system<br>--- well, right, say, thank, thing, sale, sgi, inform, chip, question", "+++ repli, want, mac, run, thank, help, also, new, version, window<br>--- imag, price, monitor, netcom, disk, mous, ide, color, instal, set", "+++ need, time, look, repli, distribut, want, anyon<br>--- car, well, right, say, mani, thank, thing, also, sale, inform", "+++ need, time, new, look, repli, distribut, want, anyon<br>--- car, c8v, b8f, thank, okz, also, sale, uchicago, inform, softwar", "+++ program, need, time, new, look, want, file, work<br>--- well, two, turkey, right, say, went, thank, also, serdar, sale", "+++ time, also, new, look, run<br>--- hockey, well, two, presid, right, say, thank, stephanopoulo, nhl, sale", "+++ need, time, imag, new, also, repli, look, includ, want, interest<br>--- well, current, two, thank, inform, question, softwar, address, list, nasa", "+++ repli, want, run, thank, data, program, help, also, avail, version<br>--- server, client, imag, motif, price, applic, color, netcom, resourc, mac", "+++ time, new, also, repli, look, distribut, want, run, thank, pleas<br>--- well, two, right, say, access, opinion, sale, inform, world, need", "+++ time, also, new, file, system<br>--- car, well, two, right, say, mani, thank, thing, sale, inform", "+++ imag, price, file, repli, want, mac, run, thank, netcom, data<br>--- ", "+++ want, new, also, time<br>--- well, two, say, mani, thank, thing, sale, inform, world, need", "+++ want, system, also, time<br>--- well, right, say, mani, thank, thing, sale, inform, world, need", "+++ program, need, time, also, new, distribut, data, work, system, inform<br>--- two, presid, right, thank, develop, access, sale, chip, clipper, softwar" ], [ "+++ said, well, two, say, mani, want, even, make, also, see<br>--- point, law, right, arab, palestinian, live, govern, believ, argument, state", "+++ well, law, say, want, even, make, thing, also, new, see<br>--- said, realli, two, point, right, indiana, mani, run, believ, disk", "+++ could, make, time, new, also, want<br>--- well, two, say, mani, thank, thing, speed, simm, chip, world", "+++ well, point, say, want, mani, even, make, thing, see, world<br>--- car, realli, two, right, got, put, gov, also, new, sun", "+++ time, make, new, want, good, think<br>--- car, well, two, c8v, say, mani, b8f, okz, thing, also", "+++ even, world, could, said, time, well, two, new, say, want<br>--- turkey, right, went, mani, thing, also, serdar, need, number, question", "+++ day, even, said, make, well, time, two, point, new, also<br>--- hockey, presid, right, mani, stephanopoulo, nhl, thing, score, world, question", "+++ could, make, scienc, well, two, point, question, new, also, time<br>--- current, say, mani, thing, sale, world, need, much, work, nasa", "+++ make, time, also, want, may, way<br>--- server, client, well, two, say, mani, resourc, thank, display, thing", "+++ world, peopl, make, well, time, two, question, new, also, say<br>--- right, mani, thank, access, opinion, thing, great, dod, much, bmw", "+++ well, two, law, say, mani, even, make, thing, new, also<br>--- car, said, point, right, weapon, want, believ, argument, health, state", "+++ want, also, new, time<br>--- well, two, say, mani, thank, thing, sale, inform, world, need", "+++ said, well, two, point, law, say, mani, want, believ, argument<br>--- ", "+++ said, well, point, say, mani, want, believ, come, even, make<br>--- atheist, realli, two, law, right, must, argument, object, tri, scienc", "+++ way, could, make, time, two, law, also, new, peopl, think<br>--- well, presid, right, say, mani, develop, access, thing, inform, chip" ], [ "+++ said, well, right, say, mani, want, even, make, also, see<br>--- atheist, realli, two, point, must, arab, palestinian, live, govern, believ", "+++ realli, well, right, say, want, tri, even, make, thing, also<br>--- atheist, said, point, law, must, indiana, mani, run, believ, disk", "+++ could, make, time, also, tri, want, problem, system<br>--- well, right, say, mani, thank, thing, speed, simm, chip, world", "+++ realli, well, point, right, say, want, mani, tri, even, make<br>--- atheist, car, said, must, repli, believ, object, state, system, got", "+++ time, make, want, good, think<br>--- car, well, c8v, right, say, mani, b8f, okz, thing, also", "+++ even, world, could, said, time, well, right, say, want, think<br>--- two, turkey, went, mani, thing, also, serdar, need, number, question", "+++ even, said, make, well, time, point, right, also, say, think<br>--- hockey, two, presid, mani, stephanopoulo, nhl, thing, score, world, question", "+++ could, make, well, time, point, question, also, want, good, system<br>--- current, two, right, say, mani, thing, sale, world, need, work", "+++ way, make, time, also, want, system, problem, tri, may<br>--- server, client, well, right, say, mani, resourc, thank, display, thing", "+++ way, world, peopl, make, well, time, question, right, also, say<br>--- two, mani, thank, access, opinion, thing, great, dod, bmw, find", "+++ well, right, say, mani, even, make, thing, also, problem, see<br>--- atheist, car, said, realli, two, point, law, must, weapon, want", "+++ want, system, also, time<br>--- well, right, say, mani, thank, thing, sale, inform, world, need", "+++ said, well, point, say, mani, want, believ, come, even, make<br>--- atheist, realli, two, law, right, must, object, argument, tri, scienc", "+++ atheist, said, realli, well, point, right, must, say, mani, want<br>--- ", "+++ could, make, time, also, right, may, peopl, think, system, way<br>--- well, two, presid, say, mani, develop, access, thing, inform, chip" ], [ "+++ could, peopl, make, time, two, right, also, think, govern, year<br>--- well, presid, say, mani, develop, give, access, inform, chip, world", "+++ could, need, make, time, key, law, also, right, new, distribut<br>--- well, two, presid, say, develop, access, thing, sgi, inform, clipper", "+++ could, need, make, time, comput, new, also, distribut, work, system<br>--- two, presid, right, thank, develop, access, speed, simm, inform, clipper", "+++ could, need, make, time, peopl, right, distribut, think, year, state<br>--- car, well, two, presid, say, mani, develop, access, thing, also", "+++ need, time, make, new, distribut, think<br>--- car, two, presid, c8v, right, b8f, develop, okz, access, also", "+++ program, could, need, time, peopl, two, new, right, year, think<br>--- well, presid, turkey, say, went, develop, access, also, serdar, inform", "+++ make, time, two, presid, right, new, also, year, think, first<br>--- hockey, well, say, develop, access, stephanopoulo, nhl, score, inform, chip", "+++ could, need, make, time, two, also, new, space, nasa, distribut<br>--- well, current, presid, right, develop, access, sale, inform, chip, clipper", "+++ way, program, need, make, time, also, distribut, may, data, work<br>--- server, client, two, presid, right, resourc, thank, develop, display, access", "+++ access, peopl, make, time, two, right, new, also, propos, distribut<br>--- well, presid, say, thank, develop, opinion, inform, chip, world, clipper", "+++ peopl, could, make, time, two, public, law, right, new, also<br>--- car, well, presid, say, mani, develop, access, thing, inform, chip", "+++ program, need, time, also, new, distribut, data, work, system, inform<br>--- two, presid, right, thank, develop, access, sale, chip, clipper, softwar", "+++ way, could, make, time, two, law, new, also, peopl, think<br>--- well, presid, right, say, mani, develop, access, thing, inform, chip", "+++ could, make, time, also, right, may, peopl, think, system, way<br>--- well, two, presid, say, mani, develop, access, thing, inform, chip", "+++ encrypt, commun, two, presid, law, right, govern, privaci, data, develop<br>--- " ] ], "type": "heatmap", "uid": "990d6b8a-163e-4b47-9fcb-74acb393f776", "z": [ [ 0, 0.8353596757852078, 0.9776035834266518, 0.8205588310689567, 0.9889184397163121, 0.8053969901401142, 0.8777207141110296, 0.9298573766658873, 0.9660479855138072, 0.8353596757852078, 0.8053969901401142, 1, 0.773936170212766, 0.773936170212766, 0.8911992263056093 ], [ 0.8353596757852078, 0, 0.773936170212766, 0.6879432624113476, 0.91725768321513, 0.8498122653316645, 0.8639287481444828, 0.8353596757852078, 0.8353596757852078, 0.7576084029086992, 0.7898607827685843, 0.8639287481444828, 0.7408619749045281, 0.706047032474804, 0.8205588310689567 ], [ 0.9776035834266518, 0.773936170212766, 0, 0.9043748505857041, 0.9298573766658873, 0.9542438801189659, 0.9660479855138072, 0.8639287481444828, 0.773936170212766, 0.8498122653316645, 0.9298573766658873, 0.7576084029086992, 0.9660479855138072, 0.9421831637372804, 0.9043748505857041 ], [ 0.8205588310689567, 0.6879432624113476, 0.9043748505857041, 0, 0.9043748505857041, 0.8205588310689567, 0.8205588310689567, 0.8498122653316645, 0.91725768321513, 0.7898607827685843, 0.7576084029086992, 0.9542438801189659, 0.7898607827685843, 0.7236805747444045, 0.8911992263056093 ], [ 0.9889184397163121, 0.91725768321513, 0.9298573766658873, 0.9043748505857041, 0, 0.9660479855138072, 0.9660479855138072, 0.91725768321513, 0.9542438801189659, 0.91725768321513, 0.9660479855138072, 0.9421831637372804, 0.9660479855138072, 0.9776035834266518, 0.9660479855138072 ], [ 0.8053969901401142, 0.8498122653316645, 0.9542438801189659, 0.8205588310689567, 0.9660479855138072, 0, 0.8498122653316645, 0.9043748505857041, 0.9043748505857041, 0.8639287481444828, 0.8353596757852078, 0.9421831637372804, 0.8353596757852078, 0.8498122653316645, 0.8777207141110296 ], [ 0.8777207141110296, 0.8639287481444828, 0.9660479855138072, 0.8205588310689567, 0.9660479855138072, 0.8498122653316645, 0, 0.8911992263056093, 0.9776035834266518, 0.8498122653316645, 0.8353596757852078, 0.9776035834266518, 0.8353596757852078, 0.8777207141110296, 0.91725768321513 ], [ 0.9298573766658873, 0.8353596757852078, 0.8639287481444828, 0.8498122653316645, 0.91725768321513, 0.9043748505857041, 0.8911992263056093, 0, 0.8777207141110296, 0.8353596757852078, 0.9043748505857041, 0.8353596757852078, 0.8639287481444828, 0.9043748505857041, 0.8353596757852078 ], [ 0.9660479855138072, 0.8353596757852078, 0.773936170212766, 0.91725768321513, 0.9542438801189659, 0.9043748505857041, 0.9776035834266518, 0.8777207141110296, 0, 0.8777207141110296, 0.9421831637372804, 0.7236805747444045, 0.9660479855138072, 0.9298573766658873, 0.8911992263056093 ], [ 0.8353596757852078, 0.7576084029086992, 0.8498122653316645, 0.7898607827685843, 0.91725768321513, 0.8639287481444828, 0.8498122653316645, 0.8353596757852078, 0.8777207141110296, 0, 0.8353596757852078, 0.8911992263056093, 0.8498122653316645, 0.8053969901401142, 0.8353596757852078 ], [ 0.8053969901401142, 0.7898607827685843, 0.9298573766658873, 0.7576084029086992, 0.9660479855138072, 0.8353596757852078, 0.8353596757852078, 0.9043748505857041, 0.9421831637372804, 0.8353596757852078, 0, 0.9776035834266518, 0.7576084029086992, 0.7898607827685843, 0.8353596757852078 ], [ 1, 0.8639287481444828, 0.7576084029086992, 0.9542438801189659, 0.9421831637372804, 0.9421831637372804, 0.9776035834266518, 0.8353596757852078, 0.7236805747444045, 0.8911992263056093, 0.9776035834266518, 0, 0.9889184397163121, 0.9889184397163121, 0.9043748505857041 ], [ 0.773936170212766, 0.7408619749045281, 0.9660479855138072, 0.7898607827685843, 0.9660479855138072, 0.8353596757852078, 0.8353596757852078, 0.8639287481444828, 0.9660479855138072, 0.8498122653316645, 0.7576084029086992, 0.9889184397163121, 0, 0.5236583042235631, 0.9043748505857041 ], [ 0.773936170212766, 0.706047032474804, 0.9421831637372804, 0.7236805747444045, 0.9776035834266518, 0.8498122653316645, 0.8777207141110296, 0.9043748505857041, 0.9298573766658873, 0.8053969901401142, 0.7898607827685843, 0.9889184397163121, 0.5236583042235631, 0, 0.91725768321513 ], [ 0.8911992263056093, 0.8205588310689567, 0.9043748505857041, 0.8911992263056093, 0.9660479855138072, 0.8777207141110296, 0.91725768321513, 0.8353596757852078, 0.8911992263056093, 0.8353596757852078, 0.8353596757852078, 0.9043748505857041, 0.9043748505857041, 0.91725768321513, 0 ] ] } ], "layout": { "height": 950, "title": "Topic difference (one model) [jaccard distance]", "width": 950, "xaxis": { "title": "topic" }, "yaxis": { "title": "topic" } } }, "text/html": [ "<div id=\"8b9c4628-183d-49d1-88a4-9bd32b1aa40c\" style=\"height: 950px; width: 950px;\" class=\"plotly-graph-div\"></div><script type=\"text/javascript\">require([\"plotly\"], function(Plotly) { window.PLOTLYENV=window.PLOTLYENV || {};window.PLOTLYENV.BASE_URL=\"https://plot.ly\";Plotly.newPlot(\"8b9c4628-183d-49d1-88a4-9bd32b1aa40c\", [{\"colorscale\": \"RdBu\", \"text\": [[\"+++ said, well, two, american, right, arab, say, palestinian, mani, want<br>--- \", \"+++ even, could, make, well, time, question, right, also, say, want<br>--- two, mani, give, thing, sgi, chip, world, need, 000, jewish\", \"+++ could, time, make, also, want<br>--- well, two, right, say, mani, thank, give, speed, simm, chip\", \"+++ even, world, could, peopl, make, well, time, right, say, want<br>--- car, two, give, thing, also, happen, need, 000, jewish, question\", \"+++ want, time, think, make<br>--- car, well, two, c8v, right, say, mani, b8f, okz, give\", \"+++ even, world, could, said, kill, well, time, two, peopl, right<br>--- turkey, went, mani, give, also, serdar, need, number, 000, jewish\", \"+++ even, said, make, well, time, two, right, also, say, think<br>--- hockey, presid, mani, give, stephanopoulo, nhl, score, world, 000, jewish\", \"+++ could, make, well, time, two, question, also, want, year<br>--- current, right, say, mani, give, sale, world, need, 000, jewish\", \"+++ make, time, also, want, call, way<br>--- server, client, well, two, right, say, mani, resourc, thank, display\", \"+++ way, world, peopl, make, well, time, two, question, right, also<br>--- mani, thank, access, give, opinion, great, 000, jewish, dod, much\", \"+++ even, way, peopl, could, make, well, time, two, right, also<br>--- car, give, thing, world, number, 000, jewish, question, amend, polici\", \"+++ want, also, time<br>--- well, two, right, say, mani, thank, give, sale, inform, world\", \"+++ said, well, two, say, mani, want, even, make, also, see<br>--- point, law, right, arab, american, palestinian, live, believ, argument, govern\", \"+++ said, well, right, say, mani, want, even, make, also, see<br>--- atheist, realli, two, point, must, arab, palestinian, live, believ, object\", \"+++ could, peopl, make, time, two, right, also, think, govern, year<br>--- well, presid, say, mani, develop, access, give, inform, chip, world\"], [\"+++ even, could, make, well, time, question, right, also, say, want<br>--- two, mani, give, thing, sgi, chip, world, need, 000, jewish\", \"+++ realli, well, law, right, say, indiana, want, run, disk, state<br>--- \", \"+++ want, run, disk, tri, make, also, new, problem, version, chip<br>--- realli, well, right, say, mac, thank, ide, thing, speed, simm\", \"+++ realli, well, right, say, want, state, tri, even, make, thing<br>--- car, point, law, repli, indiana, mani, run, disk, system, got\", \"+++ need, make, time, new, look, distribut, want, good, think, anyon<br>--- car, well, c8v, right, say, b8f, okz, thing, also, sgi\", \"+++ even, could, need, time, well, right, new, say, look, want<br>--- two, turkey, went, thing, also, serdar, sgi, chip, world, number\", \"+++ even, make, well, time, right, new, say, also, look, think<br>--- hockey, two, presid, stephanopoulo, nhl, thing, sgi, score, chip, need\", \"+++ could, need, make, well, time, question, new, also, look, distribut<br>--- current, two, right, say, thing, sale, sgi, chip, much, softwar\", \"+++ need, make, time, bit, also, look, distribut, want, run, problem<br>--- server, client, well, right, say, resourc, thank, display, thing, sourc\", \"+++ well, right, say, want, run, state, tri, make, new, also<br>--- realli, two, thank, access, opinion, thing, sgi, chip, world, need\", \"+++ well, law, right, say, state, even, make, thing, new, also<br>--- car, realli, two, file, weapon, mani, run, health, crime, sgi\", \"+++ need, time, drive, new, also, look, distribut, want, run, system<br>--- well, right, say, thank, thing, sale, sgi, inform, chip, question\", \"+++ well, law, say, want, even, make, thing, also, new, see<br>--- realli, two, right, mani, run, church, sgi, claim, chip, world\", \"+++ realli, well, right, say, want, tri, even, make, thing, also<br>--- atheist, said, point, law, must, indiana, mani, run, believ, object\", \"+++ could, need, make, time, key, law, new, right, also, distribut<br>--- well, two, presid, say, develop, access, thing, sgi, inform, clipper\"], [\"+++ could, time, make, also, want<br>--- well, two, right, say, mani, thank, give, speed, simm, chip\", \"+++ want, run, disk, tri, system, make, also, new, problem, version<br>--- realli, well, law, right, say, repli, indiana, monitor, mac, color\", \"+++ repli, monitor, want, mac, run, thank, disk, mous, ide, color<br>--- \", \"+++ could, need, make, time, anyon, look, repli, distribut, want, problem<br>--- car, well, right, say, mani, thank, thing, also, speed, simm\", \"+++ need, make, time, new, look, repli, distribut, want, anyon<br>--- car, c8v, b8f, thank, okz, also, speed, simm, uchicago, chip\", \"+++ could, need, time, new, look, want, work<br>--- well, two, turkey, right, say, went, thank, also, speed, serdar\", \"+++ make, time, also, new, look, run<br>--- hockey, well, two, presid, right, say, thank, stephanopoulo, nhl, speed\", \"+++ could, need, make, time, new, also, repli, look, distribut, want<br>--- well, current, two, thank, speed, simm, sale, chip, question, nasa\", \"+++ repli, want, color, run, thank, set, tri, make, help, also<br>--- server, client, motif, applic, monitor, mous, resourc, mac, data, disk\", \"+++ make, time, new, also, repli, look, distribut, want, run, thank<br>--- well, two, right, say, access, opinion, speed, simm, chip, world\", \"+++ could, make, time, also, new, problem, scsi, control, system<br>--- car, well, two, right, say, mani, thank, thing, speed, simm\", \"+++ repli, want, mac, run, thank, system, help, new, also, version<br>--- imag, price, monitor, color, mous, netcom, disk, data, ide, instal\", \"+++ could, make, time, new, also, want<br>--- well, two, say, mani, thank, thing, speed, simm, chip, world\", \"+++ could, make, time, also, want, system, problem, tri<br>--- well, right, say, mani, thank, thing, speed, simm, chip, world\", \"+++ could, need, make, time, comput, also, new, distribut, work, system<br>--- two, presid, right, thank, develop, access, speed, simm, inform, clipper\"], [\"+++ even, world, could, peopl, make, well, time, right, say, mani<br>--- car, two, give, thing, also, happen, need, 000, jewish, question\", \"+++ realli, well, right, say, want, state, tri, even, make, thing<br>--- car, point, law, first, repli, indiana, mani, run, disk, got\", \"+++ could, need, make, time, anyon, look, repli, distribut, want, problem<br>--- car, well, right, say, mani, thank, thing, also, speed, simm\", \"+++ car, realli, well, point, first, right, say, repli, want, mani<br>--- \", \"+++ need, car, make, time, look, repli, distribut, want, good, think<br>--- well, c8v, right, say, mani, b8f, okz, thing, uchicago, happen\", \"+++ even, world, could, need, time, well, peopl, right, look, say<br>--- car, two, turkey, went, mani, thing, serdar, happen, number, dod\", \"+++ even, make, well, time, point, right, look, say, good, think<br>--- car, hockey, two, presid, mani, stephanopoulo, nhl, also, thing, score\", \"+++ could, need, gov, well, make, time, point, look, repli, sun<br>--- car, current, two, right, say, mani, thing, also, sale, happen\", \"+++ need, make, time, look, repli, distribut, want, problem, tri, way<br>--- server, client, car, well, right, say, mani, resourc, thank, display\", \"+++ well, right, say, repli, want, state, tri, make, problem, year<br>--- car, realli, two, point, first, mani, run, thank, net, bnr\", \"+++ car, well, right, say, mani, state, even, make, thing, problem<br>--- realli, two, point, law, repli, weapon, want, health, system, case\", \"+++ need, time, look, repli, distribut, want, anyon<br>--- car, well, right, say, mani, thank, thing, also, sale, inform\", \"+++ well, point, say, mani, want, even, make, thing, see, world<br>--- said, car, realli, two, first, law, right, repli, believ, argument\", \"+++ realli, well, point, right, say, mani, want, tri, even, make<br>--- atheist, said, car, first, must, repli, believ, object, state, got\", \"+++ could, need, make, time, peopl, right, distribut, think, year, state<br>--- car, well, two, presid, say, mani, develop, access, thing, also\"], [\"+++ want, time, think, make<br>--- car, well, two, right, c8v, say, mani, b8f, okz, give\", \"+++ need, make, time, new, look, distribut, want, good, think, anyon<br>--- car, well, right, c8v, say, b8f, okz, thing, also, sgi\", \"+++ need, make, time, new, look, repli, distribut, want, anyon<br>--- car, c8v, b8f, thank, okz, also, speed, simm, uchicago, chip\", \"+++ need, car, make, time, look, repli, distribut, want, good, think<br>--- well, right, c8v, say, mani, b8f, okz, thing, uchicago, happen\", \"+++ 2tm, 1eq, car, c8v, 2di, repli, want, b8f, 1d9, 7ey<br>--- \", \"+++ need, time, new, look, want, think<br>--- car, well, two, turkey, right, c8v, say, went, b8f, okz\", \"+++ time, make, new, look, good, think<br>--- car, hockey, well, two, presid, right, c8v, say, b8f, okz\", \"+++ need, make, time, new, look, repli, distribut, want, good, engin<br>--- car, well, current, two, c8v, b8f, okz, also, sale, uchicago\", \"+++ need, make, time, look, repli, distribut, want<br>--- server, client, car, c8v, b8f, resourc, thank, okz, display, also\", \"+++ make, time, new, look, repli, usa, want, distribut, good, think<br>--- car, well, two, right, c8v, say, b8f, thank, okz, access\", \"+++ car, time, make, new, good, think<br>--- well, two, right, c8v, say, mani, b8f, okz, thing, also\", \"+++ need, time, new, look, repli, distribut, want, anyon<br>--- car, c8v, b8f, thank, okz, also, sale, uchicago, inform, softwar\", \"+++ time, make, new, want, good, think<br>--- car, well, two, c8v, say, mani, b8f, okz, thing, also\", \"+++ time, make, want, good, think<br>--- car, well, right, c8v, say, mani, b8f, okz, thing, also\", \"+++ need, time, make, new, distribut, think<br>--- car, two, presid, right, c8v, b8f, develop, okz, access, also\"], [\"+++ even, world, could, said, kill, well, time, two, peopl, right<br>--- turkey, went, mani, give, also, serdar, need, number, 000, jewish\", \"+++ even, could, need, time, well, right, new, say, look, want<br>--- two, turkey, went, thing, also, serdar, sgi, chip, world, number\", \"+++ could, need, time, new, look, want, work<br>--- well, two, turkey, right, say, went, thank, also, speed, serdar\", \"+++ even, world, could, need, time, well, peopl, right, look, say<br>--- car, two, turkey, went, mani, thing, serdar, happen, number, dod\", \"+++ need, time, new, look, want, think<br>--- car, well, two, turkey, c8v, right, say, went, b8f, okz\", \"+++ said, armenia, well, two, turkey, right, say, went, want, live<br>--- \", \"+++ even, said, time, well, two, right, new, say, look, think<br>--- hockey, presid, turkey, went, stephanopoulo, nhl, also, serdar, score, world\", \"+++ could, need, time, well, two, new, look, want, year, work<br>--- current, turkey, right, say, went, also, serdar, sale, world, number\", \"+++ program, need, time, number, work, look, want, name, file, call<br>--- server, client, well, two, turkey, right, say, went, resourc, thank\", \"+++ world, peopl, time, well, two, right, new, say, look, want<br>--- turkey, went, thank, access, opinion, also, serdar, need, great, number\", \"+++ even, peopl, could, time, well, number, two, right, new, say<br>--- car, turkey, went, mani, thing, also, serdar, world, need, much\", \"+++ program, need, time, new, look, want, file, work<br>--- well, two, turkey, right, say, went, thank, also, serdar, sale\", \"+++ even, world, could, said, time, well, two, new, say, want<br>--- turkey, right, went, mani, thing, also, serdar, need, number, question\", \"+++ even, world, could, said, time, well, right, say, want, think<br>--- two, turkey, went, mani, thing, also, serdar, need, number, question\", \"+++ program, could, need, time, peopl, two, new, right, year, think<br>--- well, presid, turkey, say, went, develop, access, also, serdar, inform\"], [\"+++ even, said, make, well, time, two, right, also, say, think<br>--- hockey, presid, mani, give, stephanopoulo, nhl, score, world, 000, jewish\", \"+++ even, make, well, time, right, also, say, new, look, think<br>--- hockey, two, presid, stephanopoulo, thing, nhl, sgi, score, chip, need\", \"+++ make, time, also, look, new, run<br>--- hockey, well, two, presid, right, say, thank, stephanopoulo, nhl, speed\", \"+++ even, make, well, time, point, right, look, say, good, think<br>--- car, hockey, two, presid, mani, stephanopoulo, thing, nhl, also, score\", \"+++ time, make, new, look, good, think<br>--- car, hockey, well, two, presid, c8v, right, say, b8f, okz\", \"+++ even, said, time, well, two, right, new, say, look, think<br>--- hockey, presid, turkey, went, stephanopoulo, nhl, also, serdar, score, world\", \"+++ game, said, play, hockey, well, two, point, presid, hit, right<br>--- \", \"+++ make, well, time, two, point, new, also, look, good, run<br>--- hockey, current, presid, right, say, stephanopoulo, nhl, sale, score, need\", \"+++ make, time, also, look, run<br>--- server, client, hockey, well, two, presid, right, say, resourc, thank\", \"+++ make, well, time, two, right, new, say, also, look, good<br>--- hockey, presid, thank, access, opinion, stephanopoulo, nhl, score, world, great\", \"+++ day, even, make, well, time, two, right, new, say, also<br>--- car, hockey, presid, mani, stephanopoulo, thing, nhl, score, number, season\", \"+++ time, also, new, look, run<br>--- hockey, well, two, presid, right, say, thank, stephanopoulo, nhl, sale\", \"+++ day, even, said, make, well, time, two, point, also, new<br>--- hockey, presid, right, mani, stephanopoulo, thing, nhl, score, world, question\", \"+++ even, said, make, well, time, point, right, also, say, think<br>--- hockey, two, presid, mani, stephanopoulo, thing, nhl, score, world, question\", \"+++ make, time, two, presid, right, new, also, year, think, first<br>--- hockey, well, say, develop, access, stephanopoulo, nhl, inform, chip, score\"], [\"+++ could, make, well, time, two, question, also, want, year<br>--- current, right, say, mani, give, sale, world, need, 000, jewish\", \"+++ could, need, make, well, time, question, also, new, look, distribut<br>--- current, two, right, say, thing, sale, sgi, chip, much, softwar\", \"+++ could, need, make, time, also, new, repli, look, distribut, want<br>--- well, current, two, thank, speed, simm, sale, chip, question, nasa\", \"+++ could, need, make, well, gov, time, point, look, repli, sun<br>--- car, current, two, right, say, mani, thing, also, sale, happen\", \"+++ need, make, time, new, look, repli, distribut, want, good, engin<br>--- car, well, current, two, c8v, b8f, okz, also, sale, uchicago\", \"+++ could, need, time, well, two, new, look, want, year, work<br>--- current, turkey, right, say, went, also, serdar, sale, world, number\", \"+++ make, well, time, two, point, new, also, look, good, run<br>--- hockey, current, presid, right, say, stephanopoulo, nhl, sale, score, need\", \"+++ well, imag, two, point, current, wire, repli, want, pitt, run<br>--- \", \"+++ need, make, time, also, look, repli, includ, want, distribut, run<br>--- server, client, well, current, two, resourc, thank, display, sourc, sale\", \"+++ make, well, time, two, question, new, also, repli, look, distribut<br>--- current, right, say, thank, access, opinion, sale, world, need, great\", \"+++ could, make, well, time, two, first, new, also, good, year<br>--- car, current, right, say, mani, thing, sale, need, number, question\", \"+++ need, time, imag, new, also, repli, look, includ, want, interest<br>--- well, current, two, thank, inform, question, softwar, address, list, nasa\", \"+++ could, make, well, scienc, two, point, question, also, new, time<br>--- current, say, mani, thing, sale, world, need, much, work, nasa\", \"+++ could, make, well, time, point, question, also, want, good, system<br>--- current, two, right, say, mani, thing, sale, world, need, work\", \"+++ could, need, make, time, two, also, new, space, distribut, nasa<br>--- well, current, presid, right, develop, access, sale, inform, chip, clipper\"], [\"+++ make, time, also, want, call, way<br>--- server, client, well, two, right, say, mani, resourc, thank, display\", \"+++ need, make, time, bit, also, look, distribut, want, run, problem<br>--- server, client, well, right, say, resourc, thank, display, thing, sourc\", \"+++ repli, want, color, run, thank, set, tri, make, help, also<br>--- server, client, motif, applic, file, monitor, mac, disk, mous, ide\", \"+++ need, make, time, look, repli, distribut, want, problem, tri, way<br>--- server, client, car, well, right, say, mani, resourc, thank, display\", \"+++ need, make, time, look, repli, distribut, want<br>--- server, client, car, c8v, b8f, resourc, thank, okz, display, also\", \"+++ program, need, time, number, work, look, want, name, file, call<br>--- server, client, well, two, turkey, right, say, went, resourc, thank\", \"+++ make, time, also, look, run<br>--- server, client, hockey, well, two, presid, right, say, resourc, thank\", \"+++ need, make, time, also, look, repli, includ, want, distribut, run<br>--- server, client, well, current, two, resourc, thank, display, sourc, sale\", \"+++ server, client, motif, applic, repli, want, color, run, thank, resourc<br>--- \", \"+++ make, time, also, look, repli, distribut, want, run, thank, problem<br>--- server, client, well, two, right, say, resourc, display, access, opinion\", \"+++ make, time, number, also, problem, file, system, way<br>--- server, client, car, well, two, right, say, mani, resourc, thank\", \"+++ repli, want, run, thank, data, program, help, also, avail, version<br>--- server, client, imag, price, motif, applic, mac, resourc, netcom, color\", \"+++ make, time, also, want, may, way<br>--- server, client, well, two, say, mani, resourc, thank, display, thing\", \"+++ make, time, also, want, system, problem, may, tri, way<br>--- server, client, well, right, say, mani, resourc, thank, display, thing\", \"+++ way, program, need, make, time, also, distribut, may, data, work<br>--- server, client, two, presid, right, resourc, thank, develop, display, access\"], [\"+++ world, peopl, make, well, time, two, question, right, also, say<br>--- mani, thank, give, access, opinion, great, 000, jewish, dod, much\", \"+++ well, right, say, want, run, state, tri, make, also, new<br>--- realli, two, thank, access, opinion, thing, sgi, chip, world, need\", \"+++ make, time, also, new, repli, tri, look, want, distribut, run<br>--- well, two, right, say, access, opinion, speed, simm, chip, world\", \"+++ well, right, say, repli, want, state, tri, make, problem, year<br>--- car, realli, two, mani, run, thank, got, access, put, opinion\", \"+++ make, time, new, look, repli, usa, want, distribut, good, think<br>--- car, well, two, c8v, right, say, b8f, thank, okz, access\", \"+++ world, peopl, time, well, two, right, new, say, look, want<br>--- turkey, went, thank, access, opinion, also, serdar, need, number, great\", \"+++ make, well, time, two, right, new, say, also, look, good<br>--- hockey, presid, thank, access, opinion, stephanopoulo, nhl, score, world, great\", \"+++ make, well, time, two, question, new, also, repli, look, distribut<br>--- current, right, say, thank, access, opinion, sale, world, need, great\", \"+++ make, time, also, look, repli, distribut, want, run, thank, problem<br>--- server, client, well, two, right, say, resourc, display, access, opinion\", \"+++ well, two, right, say, repli, want, run, thank, net, state<br>--- \", \"+++ peopl, make, well, time, two, right, new, say, also, good<br>--- car, mani, thank, access, opinion, thing, world, number, great, question\", \"+++ time, new, also, repli, look, distribut, want, run, thank, pleas<br>--- well, two, right, say, access, opinion, sale, inform, world, need\", \"+++ world, peopl, make, well, time, two, question, also, new, say<br>--- right, mani, thank, access, opinion, thing, great, dod, much, bmw\", \"+++ world, peopl, make, well, time, question, right, also, say, human<br>--- realli, two, mani, run, object, thank, access, opinion, thing, christ\", \"+++ access, peopl, make, time, two, right, new, also, propos, distribut<br>--- well, presid, say, thank, develop, opinion, inform, chip, world, clipper\"], [\"+++ even, way, could, peopl, make, well, time, two, right, also<br>--- car, arab, weapon, health, give, crime, kill, thing, new, control\", \"+++ well, law, right, say, state, even, make, thing, also, new<br>--- car, realli, two, weapon, mani, run, health, crime, sgi, control\", \"+++ could, make, time, new, also, problem, scsi, control, system<br>--- car, well, two, right, say, mani, thank, thing, speed, simm\", \"+++ car, well, right, say, mani, state, even, make, thing, problem<br>--- realli, two, weapon, health, got, put, crime, gov, new, also\", \"+++ car, time, make, new, good, think<br>--- well, two, c8v, right, say, mani, b8f, okz, thing, also\", \"+++ even, year, could, peopl, time, well, number, two, right, new<br>--- car, turkey, went, mani, thing, also, serdar, world, need, much\", \"+++ day, even, make, well, time, two, right, new, say, also<br>--- car, hockey, presid, mani, stephanopoulo, nhl, thing, score, number, season\", \"+++ could, make, well, time, two, new, also, good, system, year<br>--- car, current, right, say, mani, thing, sale, need, number, question\", \"+++ make, time, number, also, problem, file, system, way<br>--- server, client, car, well, two, right, say, mani, resourc, thank\", \"+++ peopl, make, well, time, two, right, new, say, also, good<br>--- car, weapon, mani, run, thank, health, access, crime, opinion, thing\", \"+++ car, well, two, first, law, right, file, say, weapon, mani<br>--- \", \"+++ time, also, new, file, system<br>--- car, well, two, right, say, mani, thank, thing, sale, inform\", \"+++ well, two, law, say, mani, even, make, thing, also, new<br>--- said, car, point, first, right, weapon, want, believ, argument, health\", \"+++ well, right, say, mani, even, make, thing, also, problem, see<br>--- car, realli, two, weapon, object, health, crime, christ, new, control\", \"+++ could, peopl, make, time, two, public, law, right, new, also<br>--- car, well, presid, say, mani, develop, access, thing, inform, chip\"], [\"+++ want, also, time<br>--- well, two, right, say, mani, thank, give, sale, inform, world\", \"+++ need, time, drive, also, new, look, distribut, want, run, system<br>--- well, right, say, thank, thing, sale, sgi, inform, chip, question\", \"+++ repli, want, mac, run, thank, help, also, new, version, window<br>--- imag, price, monitor, netcom, disk, mous, ide, color, instal, set\", \"+++ need, time, look, repli, distribut, want, anyon<br>--- car, well, right, say, mani, thank, thing, also, sale, inform\", \"+++ need, time, new, look, repli, distribut, want, anyon<br>--- car, c8v, b8f, thank, okz, also, sale, uchicago, inform, softwar\", \"+++ program, need, time, new, look, want, file, work<br>--- well, two, turkey, right, say, went, thank, also, serdar, sale\", \"+++ time, also, new, look, run<br>--- hockey, well, two, presid, right, say, thank, stephanopoulo, nhl, sale\", \"+++ need, time, imag, new, also, repli, look, includ, want, interest<br>--- well, current, two, thank, inform, question, softwar, address, list, nasa\", \"+++ repli, want, run, thank, data, program, help, also, avail, version<br>--- server, client, imag, motif, price, applic, color, netcom, resourc, mac\", \"+++ time, new, also, repli, look, distribut, want, run, thank, pleas<br>--- well, two, right, say, access, opinion, sale, inform, world, need\", \"+++ time, also, new, file, system<br>--- car, well, two, right, say, mani, thank, thing, sale, inform\", \"+++ imag, price, file, repli, want, mac, run, thank, netcom, data<br>--- \", \"+++ want, new, also, time<br>--- well, two, say, mani, thank, thing, sale, inform, world, need\", \"+++ want, system, also, time<br>--- well, right, say, mani, thank, thing, sale, inform, world, need\", \"+++ program, need, time, also, new, distribut, data, work, system, inform<br>--- two, presid, right, thank, develop, access, sale, chip, clipper, softwar\"], [\"+++ said, well, two, say, mani, want, even, make, also, see<br>--- point, law, right, arab, palestinian, live, govern, believ, argument, state\", \"+++ well, law, say, want, even, make, thing, also, new, see<br>--- said, realli, two, point, right, indiana, mani, run, believ, disk\", \"+++ could, make, time, new, also, want<br>--- well, two, say, mani, thank, thing, speed, simm, chip, world\", \"+++ well, point, say, want, mani, even, make, thing, see, world<br>--- car, realli, two, right, got, put, gov, also, new, sun\", \"+++ time, make, new, want, good, think<br>--- car, well, two, c8v, say, mani, b8f, okz, thing, also\", \"+++ even, world, could, said, time, well, two, new, say, want<br>--- turkey, right, went, mani, thing, also, serdar, need, number, question\", \"+++ day, even, said, make, well, time, two, point, new, also<br>--- hockey, presid, right, mani, stephanopoulo, nhl, thing, score, world, question\", \"+++ could, make, scienc, well, two, point, question, new, also, time<br>--- current, say, mani, thing, sale, world, need, much, work, nasa\", \"+++ make, time, also, want, may, way<br>--- server, client, well, two, say, mani, resourc, thank, display, thing\", \"+++ world, peopl, make, well, time, two, question, new, also, say<br>--- right, mani, thank, access, opinion, thing, great, dod, much, bmw\", \"+++ well, two, law, say, mani, even, make, thing, new, also<br>--- car, said, point, right, weapon, want, believ, argument, health, state\", \"+++ want, also, new, time<br>--- well, two, say, mani, thank, thing, sale, inform, world, need\", \"+++ said, well, two, point, law, say, mani, want, believ, argument<br>--- \", \"+++ said, well, point, say, mani, want, believ, come, even, make<br>--- atheist, realli, two, law, right, must, argument, object, tri, scienc\", \"+++ way, could, make, time, two, law, also, new, peopl, think<br>--- well, presid, right, say, mani, develop, access, thing, inform, chip\"], [\"+++ said, well, right, say, mani, want, even, make, also, see<br>--- atheist, realli, two, point, must, arab, palestinian, live, govern, believ\", \"+++ realli, well, right, say, want, tri, even, make, thing, also<br>--- atheist, said, point, law, must, indiana, mani, run, believ, disk\", \"+++ could, make, time, also, tri, want, problem, system<br>--- well, right, say, mani, thank, thing, speed, simm, chip, world\", \"+++ realli, well, point, right, say, want, mani, tri, even, make<br>--- atheist, car, said, must, repli, believ, object, state, system, got\", \"+++ time, make, want, good, think<br>--- car, well, c8v, right, say, mani, b8f, okz, thing, also\", \"+++ even, world, could, said, time, well, right, say, want, think<br>--- two, turkey, went, mani, thing, also, serdar, need, number, question\", \"+++ even, said, make, well, time, point, right, also, say, think<br>--- hockey, two, presid, mani, stephanopoulo, nhl, thing, score, world, question\", \"+++ could, make, well, time, point, question, also, want, good, system<br>--- current, two, right, say, mani, thing, sale, world, need, work\", \"+++ way, make, time, also, want, system, problem, tri, may<br>--- server, client, well, right, say, mani, resourc, thank, display, thing\", \"+++ way, world, peopl, make, well, time, question, right, also, say<br>--- two, mani, thank, access, opinion, thing, great, dod, bmw, find\", \"+++ well, right, say, mani, even, make, thing, also, problem, see<br>--- atheist, car, said, realli, two, point, law, must, weapon, want\", \"+++ want, system, also, time<br>--- well, right, say, mani, thank, thing, sale, inform, world, need\", \"+++ said, well, point, say, mani, want, believ, come, even, make<br>--- atheist, realli, two, law, right, must, object, argument, tri, scienc\", \"+++ atheist, said, realli, well, point, right, must, say, mani, want<br>--- \", \"+++ could, make, time, also, right, may, peopl, think, system, way<br>--- well, two, presid, say, mani, develop, access, thing, inform, chip\"], [\"+++ could, peopl, make, time, two, right, also, think, govern, year<br>--- well, presid, say, mani, develop, give, access, inform, chip, world\", \"+++ could, need, make, time, key, law, also, right, new, distribut<br>--- well, two, presid, say, develop, access, thing, sgi, inform, clipper\", \"+++ could, need, make, time, comput, new, also, distribut, work, system<br>--- two, presid, right, thank, develop, access, speed, simm, inform, clipper\", \"+++ could, need, make, time, peopl, right, distribut, think, year, state<br>--- car, well, two, presid, say, mani, develop, access, thing, also\", \"+++ need, time, make, new, distribut, think<br>--- car, two, presid, c8v, right, b8f, develop, okz, access, also\", \"+++ program, could, need, time, peopl, two, new, right, year, think<br>--- well, presid, turkey, say, went, develop, access, also, serdar, inform\", \"+++ make, time, two, presid, right, new, also, year, think, first<br>--- hockey, well, say, develop, access, stephanopoulo, nhl, score, inform, chip\", \"+++ could, need, make, time, two, also, new, space, nasa, distribut<br>--- well, current, presid, right, develop, access, sale, inform, chip, clipper\", \"+++ way, program, need, make, time, also, distribut, may, data, work<br>--- server, client, two, presid, right, resourc, thank, develop, display, access\", \"+++ access, peopl, make, time, two, right, new, also, propos, distribut<br>--- well, presid, say, thank, develop, opinion, inform, chip, world, clipper\", \"+++ peopl, could, make, time, two, public, law, right, new, also<br>--- car, well, presid, say, mani, develop, access, thing, inform, chip\", \"+++ program, need, time, also, new, distribut, data, work, system, inform<br>--- two, presid, right, thank, develop, access, sale, chip, clipper, softwar\", \"+++ way, could, make, time, two, law, new, also, peopl, think<br>--- well, presid, right, say, mani, develop, access, thing, inform, chip\", \"+++ could, make, time, also, right, may, peopl, think, system, way<br>--- well, two, presid, say, mani, develop, access, thing, inform, chip\", \"+++ encrypt, commun, two, presid, law, right, govern, privaci, data, develop<br>--- \"]], \"z\": [[0.0, 0.8353596757852078, 0.9776035834266518, 0.8205588310689567, 0.9889184397163121, 0.8053969901401142, 0.8777207141110296, 0.9298573766658873, 0.9660479855138072, 0.8353596757852078, 0.8053969901401142, 1.0, 0.773936170212766, 0.773936170212766, 0.8911992263056093], [0.8353596757852078, 0.0, 0.773936170212766, 0.6879432624113476, 0.91725768321513, 0.8498122653316645, 0.8639287481444828, 0.8353596757852078, 0.8353596757852078, 0.7576084029086992, 0.7898607827685843, 0.8639287481444828, 0.7408619749045281, 0.706047032474804, 0.8205588310689567], [0.9776035834266518, 0.773936170212766, 0.0, 0.9043748505857041, 0.9298573766658873, 0.9542438801189659, 0.9660479855138072, 0.8639287481444828, 0.773936170212766, 0.8498122653316645, 0.9298573766658873, 0.7576084029086992, 0.9660479855138072, 0.9421831637372804, 0.9043748505857041], [0.8205588310689567, 0.6879432624113476, 0.9043748505857041, 0.0, 0.9043748505857041, 0.8205588310689567, 0.8205588310689567, 0.8498122653316645, 0.91725768321513, 0.7898607827685843, 0.7576084029086992, 0.9542438801189659, 0.7898607827685843, 0.7236805747444045, 0.8911992263056093], [0.9889184397163121, 0.91725768321513, 0.9298573766658873, 0.9043748505857041, 0.0, 0.9660479855138072, 0.9660479855138072, 0.91725768321513, 0.9542438801189659, 0.91725768321513, 0.9660479855138072, 0.9421831637372804, 0.9660479855138072, 0.9776035834266518, 0.9660479855138072], [0.8053969901401142, 0.8498122653316645, 0.9542438801189659, 0.8205588310689567, 0.9660479855138072, 0.0, 0.8498122653316645, 0.9043748505857041, 0.9043748505857041, 0.8639287481444828, 0.8353596757852078, 0.9421831637372804, 0.8353596757852078, 0.8498122653316645, 0.8777207141110296], [0.8777207141110296, 0.8639287481444828, 0.9660479855138072, 0.8205588310689567, 0.9660479855138072, 0.8498122653316645, 0.0, 0.8911992263056093, 0.9776035834266518, 0.8498122653316645, 0.8353596757852078, 0.9776035834266518, 0.8353596757852078, 0.8777207141110296, 0.91725768321513], [0.9298573766658873, 0.8353596757852078, 0.8639287481444828, 0.8498122653316645, 0.91725768321513, 0.9043748505857041, 0.8911992263056093, 0.0, 0.8777207141110296, 0.8353596757852078, 0.9043748505857041, 0.8353596757852078, 0.8639287481444828, 0.9043748505857041, 0.8353596757852078], [0.9660479855138072, 0.8353596757852078, 0.773936170212766, 0.91725768321513, 0.9542438801189659, 0.9043748505857041, 0.9776035834266518, 0.8777207141110296, 0.0, 0.8777207141110296, 0.9421831637372804, 0.7236805747444045, 0.9660479855138072, 0.9298573766658873, 0.8911992263056093], [0.8353596757852078, 0.7576084029086992, 0.8498122653316645, 0.7898607827685843, 0.91725768321513, 0.8639287481444828, 0.8498122653316645, 0.8353596757852078, 0.8777207141110296, 0.0, 0.8353596757852078, 0.8911992263056093, 0.8498122653316645, 0.8053969901401142, 0.8353596757852078], [0.8053969901401142, 0.7898607827685843, 0.9298573766658873, 0.7576084029086992, 0.9660479855138072, 0.8353596757852078, 0.8353596757852078, 0.9043748505857041, 0.9421831637372804, 0.8353596757852078, 0.0, 0.9776035834266518, 0.7576084029086992, 0.7898607827685843, 0.8353596757852078], [1.0, 0.8639287481444828, 0.7576084029086992, 0.9542438801189659, 0.9421831637372804, 0.9421831637372804, 0.9776035834266518, 0.8353596757852078, 0.7236805747444045, 0.8911992263056093, 0.9776035834266518, 0.0, 0.9889184397163121, 0.9889184397163121, 0.9043748505857041], [0.773936170212766, 0.7408619749045281, 0.9660479855138072, 0.7898607827685843, 0.9660479855138072, 0.8353596757852078, 0.8353596757852078, 0.8639287481444828, 0.9660479855138072, 0.8498122653316645, 0.7576084029086992, 0.9889184397163121, 0.0, 0.5236583042235631, 0.9043748505857041], [0.773936170212766, 0.706047032474804, 0.9421831637372804, 0.7236805747444045, 0.9776035834266518, 0.8498122653316645, 0.8777207141110296, 0.9043748505857041, 0.9298573766658873, 0.8053969901401142, 0.7898607827685843, 0.9889184397163121, 0.5236583042235631, 0.0, 0.91725768321513], [0.8911992263056093, 0.8205588310689567, 0.9043748505857041, 0.8911992263056093, 0.9660479855138072, 0.8777207141110296, 0.91725768321513, 0.8353596757852078, 0.8911992263056093, 0.8353596757852078, 0.8353596757852078, 0.9043748505857041, 0.9043748505857041, 0.91725768321513, 0.0]], \"type\": \"heatmap\", \"uid\": \"554e3414-6cb8-445f-aa34-35e83307fe5f\"}], {\"height\": 950, \"title\": \"Topic difference (one model) [jaccard distance]\", \"width\": 950, \"xaxis\": {\"title\": \"topic\"}, \"yaxis\": {\"title\": \"topic\"}}, {\"showLink\": true, \"linkText\": \"Export to plot.ly\", \"plotlyServerURL\": \"https://plot.ly\"})});</script>" ], "text/vnd.plotly.v1+html": [ "<div id=\"8b9c4628-183d-49d1-88a4-9bd32b1aa40c\" style=\"height: 950px; width: 950px;\" class=\"plotly-graph-div\"></div><script type=\"text/javascript\">require([\"plotly\"], function(Plotly) { window.PLOTLYENV=window.PLOTLYENV || {};window.PLOTLYENV.BASE_URL=\"https://plot.ly\";Plotly.newPlot(\"8b9c4628-183d-49d1-88a4-9bd32b1aa40c\", [{\"colorscale\": \"RdBu\", \"text\": [[\"+++ said, well, two, american, right, arab, say, palestinian, mani, want<br>--- \", \"+++ even, could, make, well, time, question, right, also, say, want<br>--- two, mani, give, thing, sgi, chip, world, need, 000, jewish\", \"+++ could, time, make, also, want<br>--- well, two, right, say, mani, thank, give, speed, simm, chip\", \"+++ even, world, could, peopl, make, well, time, right, say, want<br>--- car, two, give, thing, also, happen, need, 000, jewish, question\", \"+++ want, time, think, make<br>--- car, well, two, c8v, right, say, mani, b8f, okz, give\", \"+++ even, world, could, said, kill, well, time, two, peopl, right<br>--- turkey, went, mani, give, also, serdar, need, number, 000, jewish\", \"+++ even, said, make, well, time, two, right, also, say, think<br>--- hockey, presid, mani, give, stephanopoulo, nhl, score, world, 000, jewish\", \"+++ could, make, well, time, two, question, also, want, year<br>--- current, right, say, mani, give, sale, world, need, 000, jewish\", \"+++ make, time, also, want, call, way<br>--- server, client, well, two, right, say, mani, resourc, thank, display\", \"+++ way, world, peopl, make, well, time, two, question, right, also<br>--- mani, thank, access, give, opinion, great, 000, jewish, dod, much\", \"+++ even, way, peopl, could, make, well, time, two, right, also<br>--- car, give, thing, world, number, 000, jewish, question, amend, polici\", \"+++ want, also, time<br>--- well, two, right, say, mani, thank, give, sale, inform, world\", \"+++ said, well, two, say, mani, want, even, make, also, see<br>--- point, law, right, arab, american, palestinian, live, believ, argument, govern\", \"+++ said, well, right, say, mani, want, even, make, also, see<br>--- atheist, realli, two, point, must, arab, palestinian, live, believ, object\", \"+++ could, peopl, make, time, two, right, also, think, govern, year<br>--- well, presid, say, mani, develop, access, give, inform, chip, world\"], [\"+++ even, could, make, well, time, question, right, also, say, want<br>--- two, mani, give, thing, sgi, chip, world, need, 000, jewish\", \"+++ realli, well, law, right, say, indiana, want, run, disk, state<br>--- \", \"+++ want, run, disk, tri, make, also, new, problem, version, chip<br>--- realli, well, right, say, mac, thank, ide, thing, speed, simm\", \"+++ realli, well, right, say, want, state, tri, even, make, thing<br>--- car, point, law, repli, indiana, mani, run, disk, system, got\", \"+++ need, make, time, new, look, distribut, want, good, think, anyon<br>--- car, well, c8v, right, say, b8f, okz, thing, also, sgi\", \"+++ even, could, need, time, well, right, new, say, look, want<br>--- two, turkey, went, thing, also, serdar, sgi, chip, world, number\", \"+++ even, make, well, time, right, new, say, also, look, think<br>--- hockey, two, presid, stephanopoulo, nhl, thing, sgi, score, chip, need\", \"+++ could, need, make, well, time, question, new, also, look, distribut<br>--- current, two, right, say, thing, sale, sgi, chip, much, softwar\", \"+++ need, make, time, bit, also, look, distribut, want, run, problem<br>--- server, client, well, right, say, resourc, thank, display, thing, sourc\", \"+++ well, right, say, want, run, state, tri, make, new, also<br>--- realli, two, thank, access, opinion, thing, sgi, chip, world, need\", \"+++ well, law, right, say, state, even, make, thing, new, also<br>--- car, realli, two, file, weapon, mani, run, health, crime, sgi\", \"+++ need, time, drive, new, also, look, distribut, want, run, system<br>--- well, right, say, thank, thing, sale, sgi, inform, chip, question\", \"+++ well, law, say, want, even, make, thing, also, new, see<br>--- realli, two, right, mani, run, church, sgi, claim, chip, world\", \"+++ realli, well, right, say, want, tri, even, make, thing, also<br>--- atheist, said, point, law, must, indiana, mani, run, believ, object\", \"+++ could, need, make, time, key, law, new, right, also, distribut<br>--- well, two, presid, say, develop, access, thing, sgi, inform, clipper\"], [\"+++ could, time, make, also, want<br>--- well, two, right, say, mani, thank, give, speed, simm, chip\", \"+++ want, run, disk, tri, system, make, also, new, problem, version<br>--- realli, well, law, right, say, repli, indiana, monitor, mac, color\", \"+++ repli, monitor, want, mac, run, thank, disk, mous, ide, color<br>--- \", \"+++ could, need, make, time, anyon, look, repli, distribut, want, problem<br>--- car, well, right, say, mani, thank, thing, also, speed, simm\", \"+++ need, make, time, new, look, repli, distribut, want, anyon<br>--- car, c8v, b8f, thank, okz, also, speed, simm, uchicago, chip\", \"+++ could, need, time, new, look, want, work<br>--- well, two, turkey, right, say, went, thank, also, speed, serdar\", \"+++ make, time, also, new, look, run<br>--- hockey, well, two, presid, right, say, thank, stephanopoulo, nhl, speed\", \"+++ could, need, make, time, new, also, repli, look, distribut, want<br>--- well, current, two, thank, speed, simm, sale, chip, question, nasa\", \"+++ repli, want, color, run, thank, set, tri, make, help, also<br>--- server, client, motif, applic, monitor, mous, resourc, mac, data, disk\", \"+++ make, time, new, also, repli, look, distribut, want, run, thank<br>--- well, two, right, say, access, opinion, speed, simm, chip, world\", \"+++ could, make, time, also, new, problem, scsi, control, system<br>--- car, well, two, right, say, mani, thank, thing, speed, simm\", \"+++ repli, want, mac, run, thank, system, help, new, also, version<br>--- imag, price, monitor, color, mous, netcom, disk, data, ide, instal\", \"+++ could, make, time, new, also, want<br>--- well, two, say, mani, thank, thing, speed, simm, chip, world\", \"+++ could, make, time, also, want, system, problem, tri<br>--- well, right, say, mani, thank, thing, speed, simm, chip, world\", \"+++ could, need, make, time, comput, also, new, distribut, work, system<br>--- two, presid, right, thank, develop, access, speed, simm, inform, clipper\"], [\"+++ even, world, could, peopl, make, well, time, right, say, mani<br>--- car, two, give, thing, also, happen, need, 000, jewish, question\", \"+++ realli, well, right, say, want, state, tri, even, make, thing<br>--- car, point, law, first, repli, indiana, mani, run, disk, got\", \"+++ could, need, make, time, anyon, look, repli, distribut, want, problem<br>--- car, well, right, say, mani, thank, thing, also, speed, simm\", \"+++ car, realli, well, point, first, right, say, repli, want, mani<br>--- \", \"+++ need, car, make, time, look, repli, distribut, want, good, think<br>--- well, c8v, right, say, mani, b8f, okz, thing, uchicago, happen\", \"+++ even, world, could, need, time, well, peopl, right, look, say<br>--- car, two, turkey, went, mani, thing, serdar, happen, number, dod\", \"+++ even, make, well, time, point, right, look, say, good, think<br>--- car, hockey, two, presid, mani, stephanopoulo, nhl, also, thing, score\", \"+++ could, need, gov, well, make, time, point, look, repli, sun<br>--- car, current, two, right, say, mani, thing, also, sale, happen\", \"+++ need, make, time, look, repli, distribut, want, problem, tri, way<br>--- server, client, car, well, right, say, mani, resourc, thank, display\", \"+++ well, right, say, repli, want, state, tri, make, problem, year<br>--- car, realli, two, point, first, mani, run, thank, net, bnr\", \"+++ car, well, right, say, mani, state, even, make, thing, problem<br>--- realli, two, point, law, repli, weapon, want, health, system, case\", \"+++ need, time, look, repli, distribut, want, anyon<br>--- car, well, right, say, mani, thank, thing, also, sale, inform\", \"+++ well, point, say, mani, want, even, make, thing, see, world<br>--- said, car, realli, two, first, law, right, repli, believ, argument\", \"+++ realli, well, point, right, say, mani, want, tri, even, make<br>--- atheist, said, car, first, must, repli, believ, object, state, got\", \"+++ could, need, make, time, peopl, right, distribut, think, year, state<br>--- car, well, two, presid, say, mani, develop, access, thing, also\"], [\"+++ want, time, think, make<br>--- car, well, two, right, c8v, say, mani, b8f, okz, give\", \"+++ need, make, time, new, look, distribut, want, good, think, anyon<br>--- car, well, right, c8v, say, b8f, okz, thing, also, sgi\", \"+++ need, make, time, new, look, repli, distribut, want, anyon<br>--- car, c8v, b8f, thank, okz, also, speed, simm, uchicago, chip\", \"+++ need, car, make, time, look, repli, distribut, want, good, think<br>--- well, right, c8v, say, mani, b8f, okz, thing, uchicago, happen\", \"+++ 2tm, 1eq, car, c8v, 2di, repli, want, b8f, 1d9, 7ey<br>--- \", \"+++ need, time, new, look, want, think<br>--- car, well, two, turkey, right, c8v, say, went, b8f, okz\", \"+++ time, make, new, look, good, think<br>--- car, hockey, well, two, presid, right, c8v, say, b8f, okz\", \"+++ need, make, time, new, look, repli, distribut, want, good, engin<br>--- car, well, current, two, c8v, b8f, okz, also, sale, uchicago\", \"+++ need, make, time, look, repli, distribut, want<br>--- server, client, car, c8v, b8f, resourc, thank, okz, display, also\", \"+++ make, time, new, look, repli, usa, want, distribut, good, think<br>--- car, well, two, right, c8v, say, b8f, thank, okz, access\", \"+++ car, time, make, new, good, think<br>--- well, two, right, c8v, say, mani, b8f, okz, thing, also\", \"+++ need, time, new, look, repli, distribut, want, anyon<br>--- car, c8v, b8f, thank, okz, also, sale, uchicago, inform, softwar\", \"+++ time, make, new, want, good, think<br>--- car, well, two, c8v, say, mani, b8f, okz, thing, also\", \"+++ time, make, want, good, think<br>--- car, well, right, c8v, say, mani, b8f, okz, thing, also\", \"+++ need, time, make, new, distribut, think<br>--- car, two, presid, right, c8v, b8f, develop, okz, access, also\"], [\"+++ even, world, could, said, kill, well, time, two, peopl, right<br>--- turkey, went, mani, give, also, serdar, need, number, 000, jewish\", \"+++ even, could, need, time, well, right, new, say, look, want<br>--- two, turkey, went, thing, also, serdar, sgi, chip, world, number\", \"+++ could, need, time, new, look, want, work<br>--- well, two, turkey, right, say, went, thank, also, speed, serdar\", \"+++ even, world, could, need, time, well, peopl, right, look, say<br>--- car, two, turkey, went, mani, thing, serdar, happen, number, dod\", \"+++ need, time, new, look, want, think<br>--- car, well, two, turkey, c8v, right, say, went, b8f, okz\", \"+++ said, armenia, well, two, turkey, right, say, went, want, live<br>--- \", \"+++ even, said, time, well, two, right, new, say, look, think<br>--- hockey, presid, turkey, went, stephanopoulo, nhl, also, serdar, score, world\", \"+++ could, need, time, well, two, new, look, want, year, work<br>--- current, turkey, right, say, went, also, serdar, sale, world, number\", \"+++ program, need, time, number, work, look, want, name, file, call<br>--- server, client, well, two, turkey, right, say, went, resourc, thank\", \"+++ world, peopl, time, well, two, right, new, say, look, want<br>--- turkey, went, thank, access, opinion, also, serdar, need, great, number\", \"+++ even, peopl, could, time, well, number, two, right, new, say<br>--- car, turkey, went, mani, thing, also, serdar, world, need, much\", \"+++ program, need, time, new, look, want, file, work<br>--- well, two, turkey, right, say, went, thank, also, serdar, sale\", \"+++ even, world, could, said, time, well, two, new, say, want<br>--- turkey, right, went, mani, thing, also, serdar, need, number, question\", \"+++ even, world, could, said, time, well, right, say, want, think<br>--- two, turkey, went, mani, thing, also, serdar, need, number, question\", \"+++ program, could, need, time, peopl, two, new, right, year, think<br>--- well, presid, turkey, say, went, develop, access, also, serdar, inform\"], [\"+++ even, said, make, well, time, two, right, also, say, think<br>--- hockey, presid, mani, give, stephanopoulo, nhl, score, world, 000, jewish\", \"+++ even, make, well, time, right, also, say, new, look, think<br>--- hockey, two, presid, stephanopoulo, thing, nhl, sgi, score, chip, need\", \"+++ make, time, also, look, new, run<br>--- hockey, well, two, presid, right, say, thank, stephanopoulo, nhl, speed\", \"+++ even, make, well, time, point, right, look, say, good, think<br>--- car, hockey, two, presid, mani, stephanopoulo, thing, nhl, also, score\", \"+++ time, make, new, look, good, think<br>--- car, hockey, well, two, presid, c8v, right, say, b8f, okz\", \"+++ even, said, time, well, two, right, new, say, look, think<br>--- hockey, presid, turkey, went, stephanopoulo, nhl, also, serdar, score, world\", \"+++ game, said, play, hockey, well, two, point, presid, hit, right<br>--- \", \"+++ make, well, time, two, point, new, also, look, good, run<br>--- hockey, current, presid, right, say, stephanopoulo, nhl, sale, score, need\", \"+++ make, time, also, look, run<br>--- server, client, hockey, well, two, presid, right, say, resourc, thank\", \"+++ make, well, time, two, right, new, say, also, look, good<br>--- hockey, presid, thank, access, opinion, stephanopoulo, nhl, score, world, great\", \"+++ day, even, make, well, time, two, right, new, say, also<br>--- car, hockey, presid, mani, stephanopoulo, thing, nhl, score, number, season\", \"+++ time, also, new, look, run<br>--- hockey, well, two, presid, right, say, thank, stephanopoulo, nhl, sale\", \"+++ day, even, said, make, well, time, two, point, also, new<br>--- hockey, presid, right, mani, stephanopoulo, thing, nhl, score, world, question\", \"+++ even, said, make, well, time, point, right, also, say, think<br>--- hockey, two, presid, mani, stephanopoulo, thing, nhl, score, world, question\", \"+++ make, time, two, presid, right, new, also, year, think, first<br>--- hockey, well, say, develop, access, stephanopoulo, nhl, inform, chip, score\"], [\"+++ could, make, well, time, two, question, also, want, year<br>--- current, right, say, mani, give, sale, world, need, 000, jewish\", \"+++ could, need, make, well, time, question, also, new, look, distribut<br>--- current, two, right, say, thing, sale, sgi, chip, much, softwar\", \"+++ could, need, make, time, also, new, repli, look, distribut, want<br>--- well, current, two, thank, speed, simm, sale, chip, question, nasa\", \"+++ could, need, make, well, gov, time, point, look, repli, sun<br>--- car, current, two, right, say, mani, thing, also, sale, happen\", \"+++ need, make, time, new, look, repli, distribut, want, good, engin<br>--- car, well, current, two, c8v, b8f, okz, also, sale, uchicago\", \"+++ could, need, time, well, two, new, look, want, year, work<br>--- current, turkey, right, say, went, also, serdar, sale, world, number\", \"+++ make, well, time, two, point, new, also, look, good, run<br>--- hockey, current, presid, right, say, stephanopoulo, nhl, sale, score, need\", \"+++ well, imag, two, point, current, wire, repli, want, pitt, run<br>--- \", \"+++ need, make, time, also, look, repli, includ, want, distribut, run<br>--- server, client, well, current, two, resourc, thank, display, sourc, sale\", \"+++ make, well, time, two, question, new, also, repli, look, distribut<br>--- current, right, say, thank, access, opinion, sale, world, need, great\", \"+++ could, make, well, time, two, first, new, also, good, year<br>--- car, current, right, say, mani, thing, sale, need, number, question\", \"+++ need, time, imag, new, also, repli, look, includ, want, interest<br>--- well, current, two, thank, inform, question, softwar, address, list, nasa\", \"+++ could, make, well, scienc, two, point, question, also, new, time<br>--- current, say, mani, thing, sale, world, need, much, work, nasa\", \"+++ could, make, well, time, point, question, also, want, good, system<br>--- current, two, right, say, mani, thing, sale, world, need, work\", \"+++ could, need, make, time, two, also, new, space, distribut, nasa<br>--- well, current, presid, right, develop, access, sale, inform, chip, clipper\"], [\"+++ make, time, also, want, call, way<br>--- server, client, well, two, right, say, mani, resourc, thank, display\", \"+++ need, make, time, bit, also, look, distribut, want, run, problem<br>--- server, client, well, right, say, resourc, thank, display, thing, sourc\", \"+++ repli, want, color, run, thank, set, tri, make, help, also<br>--- server, client, motif, applic, file, monitor, mac, disk, mous, ide\", \"+++ need, make, time, look, repli, distribut, want, problem, tri, way<br>--- server, client, car, well, right, say, mani, resourc, thank, display\", \"+++ need, make, time, look, repli, distribut, want<br>--- server, client, car, c8v, b8f, resourc, thank, okz, display, also\", \"+++ program, need, time, number, work, look, want, name, file, call<br>--- server, client, well, two, turkey, right, say, went, resourc, thank\", \"+++ make, time, also, look, run<br>--- server, client, hockey, well, two, presid, right, say, resourc, thank\", \"+++ need, make, time, also, look, repli, includ, want, distribut, run<br>--- server, client, well, current, two, resourc, thank, display, sourc, sale\", \"+++ server, client, motif, applic, repli, want, color, run, thank, resourc<br>--- \", \"+++ make, time, also, look, repli, distribut, want, run, thank, problem<br>--- server, client, well, two, right, say, resourc, display, access, opinion\", \"+++ make, time, number, also, problem, file, system, way<br>--- server, client, car, well, two, right, say, mani, resourc, thank\", \"+++ repli, want, run, thank, data, program, help, also, avail, version<br>--- server, client, imag, price, motif, applic, mac, resourc, netcom, color\", \"+++ make, time, also, want, may, way<br>--- server, client, well, two, say, mani, resourc, thank, display, thing\", \"+++ make, time, also, want, system, problem, may, tri, way<br>--- server, client, well, right, say, mani, resourc, thank, display, thing\", \"+++ way, program, need, make, time, also, distribut, may, data, work<br>--- server, client, two, presid, right, resourc, thank, develop, display, access\"], [\"+++ world, peopl, make, well, time, two, question, right, also, say<br>--- mani, thank, give, access, opinion, great, 000, jewish, dod, much\", \"+++ well, right, say, want, run, state, tri, make, also, new<br>--- realli, two, thank, access, opinion, thing, sgi, chip, world, need\", \"+++ make, time, also, new, repli, tri, look, want, distribut, run<br>--- well, two, right, say, access, opinion, speed, simm, chip, world\", \"+++ well, right, say, repli, want, state, tri, make, problem, year<br>--- car, realli, two, mani, run, thank, got, access, put, opinion\", \"+++ make, time, new, look, repli, usa, want, distribut, good, think<br>--- car, well, two, c8v, right, say, b8f, thank, okz, access\", \"+++ world, peopl, time, well, two, right, new, say, look, want<br>--- turkey, went, thank, access, opinion, also, serdar, need, number, great\", \"+++ make, well, time, two, right, new, say, also, look, good<br>--- hockey, presid, thank, access, opinion, stephanopoulo, nhl, score, world, great\", \"+++ make, well, time, two, question, new, also, repli, look, distribut<br>--- current, right, say, thank, access, opinion, sale, world, need, great\", \"+++ make, time, also, look, repli, distribut, want, run, thank, problem<br>--- server, client, well, two, right, say, resourc, display, access, opinion\", \"+++ well, two, right, say, repli, want, run, thank, net, state<br>--- \", \"+++ peopl, make, well, time, two, right, new, say, also, good<br>--- car, mani, thank, access, opinion, thing, world, number, great, question\", \"+++ time, new, also, repli, look, distribut, want, run, thank, pleas<br>--- well, two, right, say, access, opinion, sale, inform, world, need\", \"+++ world, peopl, make, well, time, two, question, also, new, say<br>--- right, mani, thank, access, opinion, thing, great, dod, much, bmw\", \"+++ world, peopl, make, well, time, question, right, also, say, human<br>--- realli, two, mani, run, object, thank, access, opinion, thing, christ\", \"+++ access, peopl, make, time, two, right, new, also, propos, distribut<br>--- well, presid, say, thank, develop, opinion, inform, chip, world, clipper\"], [\"+++ even, way, could, peopl, make, well, time, two, right, also<br>--- car, arab, weapon, health, give, crime, kill, thing, new, control\", \"+++ well, law, right, say, state, even, make, thing, also, new<br>--- car, realli, two, weapon, mani, run, health, crime, sgi, control\", \"+++ could, make, time, new, also, problem, scsi, control, system<br>--- car, well, two, right, say, mani, thank, thing, speed, simm\", \"+++ car, well, right, say, mani, state, even, make, thing, problem<br>--- realli, two, weapon, health, got, put, crime, gov, new, also\", \"+++ car, time, make, new, good, think<br>--- well, two, c8v, right, say, mani, b8f, okz, thing, also\", \"+++ even, year, could, peopl, time, well, number, two, right, new<br>--- car, turkey, went, mani, thing, also, serdar, world, need, much\", \"+++ day, even, make, well, time, two, right, new, say, also<br>--- car, hockey, presid, mani, stephanopoulo, nhl, thing, score, number, season\", \"+++ could, make, well, time, two, new, also, good, system, year<br>--- car, current, right, say, mani, thing, sale, need, number, question\", \"+++ make, time, number, also, problem, file, system, way<br>--- server, client, car, well, two, right, say, mani, resourc, thank\", \"+++ peopl, make, well, time, two, right, new, say, also, good<br>--- car, weapon, mani, run, thank, health, access, crime, opinion, thing\", \"+++ car, well, two, first, law, right, file, say, weapon, mani<br>--- \", \"+++ time, also, new, file, system<br>--- car, well, two, right, say, mani, thank, thing, sale, inform\", \"+++ well, two, law, say, mani, even, make, thing, also, new<br>--- said, car, point, first, right, weapon, want, believ, argument, health\", \"+++ well, right, say, mani, even, make, thing, also, problem, see<br>--- car, realli, two, weapon, object, health, crime, christ, new, control\", \"+++ could, peopl, make, time, two, public, law, right, new, also<br>--- car, well, presid, say, mani, develop, access, thing, inform, chip\"], [\"+++ want, also, time<br>--- well, two, right, say, mani, thank, give, sale, inform, world\", \"+++ need, time, drive, also, new, look, distribut, want, run, system<br>--- well, right, say, thank, thing, sale, sgi, inform, chip, question\", \"+++ repli, want, mac, run, thank, help, also, new, version, window<br>--- imag, price, monitor, netcom, disk, mous, ide, color, instal, set\", \"+++ need, time, look, repli, distribut, want, anyon<br>--- car, well, right, say, mani, thank, thing, also, sale, inform\", \"+++ need, time, new, look, repli, distribut, want, anyon<br>--- car, c8v, b8f, thank, okz, also, sale, uchicago, inform, softwar\", \"+++ program, need, time, new, look, want, file, work<br>--- well, two, turkey, right, say, went, thank, also, serdar, sale\", \"+++ time, also, new, look, run<br>--- hockey, well, two, presid, right, say, thank, stephanopoulo, nhl, sale\", \"+++ need, time, imag, new, also, repli, look, includ, want, interest<br>--- well, current, two, thank, inform, question, softwar, address, list, nasa\", \"+++ repli, want, run, thank, data, program, help, also, avail, version<br>--- server, client, imag, motif, price, applic, color, netcom, resourc, mac\", \"+++ time, new, also, repli, look, distribut, want, run, thank, pleas<br>--- well, two, right, say, access, opinion, sale, inform, world, need\", \"+++ time, also, new, file, system<br>--- car, well, two, right, say, mani, thank, thing, sale, inform\", \"+++ imag, price, file, repli, want, mac, run, thank, netcom, data<br>--- \", \"+++ want, new, also, time<br>--- well, two, say, mani, thank, thing, sale, inform, world, need\", \"+++ want, system, also, time<br>--- well, right, say, mani, thank, thing, sale, inform, world, need\", \"+++ program, need, time, also, new, distribut, data, work, system, inform<br>--- two, presid, right, thank, develop, access, sale, chip, clipper, softwar\"], [\"+++ said, well, two, say, mani, want, even, make, also, see<br>--- point, law, right, arab, palestinian, live, govern, believ, argument, state\", \"+++ well, law, say, want, even, make, thing, also, new, see<br>--- said, realli, two, point, right, indiana, mani, run, believ, disk\", \"+++ could, make, time, new, also, want<br>--- well, two, say, mani, thank, thing, speed, simm, chip, world\", \"+++ well, point, say, want, mani, even, make, thing, see, world<br>--- car, realli, two, right, got, put, gov, also, new, sun\", \"+++ time, make, new, want, good, think<br>--- car, well, two, c8v, say, mani, b8f, okz, thing, also\", \"+++ even, world, could, said, time, well, two, new, say, want<br>--- turkey, right, went, mani, thing, also, serdar, need, number, question\", \"+++ day, even, said, make, well, time, two, point, new, also<br>--- hockey, presid, right, mani, stephanopoulo, nhl, thing, score, world, question\", \"+++ could, make, scienc, well, two, point, question, new, also, time<br>--- current, say, mani, thing, sale, world, need, much, work, nasa\", \"+++ make, time, also, want, may, way<br>--- server, client, well, two, say, mani, resourc, thank, display, thing\", \"+++ world, peopl, make, well, time, two, question, new, also, say<br>--- right, mani, thank, access, opinion, thing, great, dod, much, bmw\", \"+++ well, two, law, say, mani, even, make, thing, new, also<br>--- car, said, point, right, weapon, want, believ, argument, health, state\", \"+++ want, also, new, time<br>--- well, two, say, mani, thank, thing, sale, inform, world, need\", \"+++ said, well, two, point, law, say, mani, want, believ, argument<br>--- \", \"+++ said, well, point, say, mani, want, believ, come, even, make<br>--- atheist, realli, two, law, right, must, argument, object, tri, scienc\", \"+++ way, could, make, time, two, law, also, new, peopl, think<br>--- well, presid, right, say, mani, develop, access, thing, inform, chip\"], [\"+++ said, well, right, say, mani, want, even, make, also, see<br>--- atheist, realli, two, point, must, arab, palestinian, live, govern, believ\", \"+++ realli, well, right, say, want, tri, even, make, thing, also<br>--- atheist, said, point, law, must, indiana, mani, run, believ, disk\", \"+++ could, make, time, also, tri, want, problem, system<br>--- well, right, say, mani, thank, thing, speed, simm, chip, world\", \"+++ realli, well, point, right, say, want, mani, tri, even, make<br>--- atheist, car, said, must, repli, believ, object, state, system, got\", \"+++ time, make, want, good, think<br>--- car, well, c8v, right, say, mani, b8f, okz, thing, also\", \"+++ even, world, could, said, time, well, right, say, want, think<br>--- two, turkey, went, mani, thing, also, serdar, need, number, question\", \"+++ even, said, make, well, time, point, right, also, say, think<br>--- hockey, two, presid, mani, stephanopoulo, nhl, thing, score, world, question\", \"+++ could, make, well, time, point, question, also, want, good, system<br>--- current, two, right, say, mani, thing, sale, world, need, work\", \"+++ way, make, time, also, want, system, problem, tri, may<br>--- server, client, well, right, say, mani, resourc, thank, display, thing\", \"+++ way, world, peopl, make, well, time, question, right, also, say<br>--- two, mani, thank, access, opinion, thing, great, dod, bmw, find\", \"+++ well, right, say, mani, even, make, thing, also, problem, see<br>--- atheist, car, said, realli, two, point, law, must, weapon, want\", \"+++ want, system, also, time<br>--- well, right, say, mani, thank, thing, sale, inform, world, need\", \"+++ said, well, point, say, mani, want, believ, come, even, make<br>--- atheist, realli, two, law, right, must, object, argument, tri, scienc\", \"+++ atheist, said, realli, well, point, right, must, say, mani, want<br>--- \", \"+++ could, make, time, also, right, may, peopl, think, system, way<br>--- well, two, presid, say, mani, develop, access, thing, inform, chip\"], [\"+++ could, peopl, make, time, two, right, also, think, govern, year<br>--- well, presid, say, mani, develop, give, access, inform, chip, world\", \"+++ could, need, make, time, key, law, also, right, new, distribut<br>--- well, two, presid, say, develop, access, thing, sgi, inform, clipper\", \"+++ could, need, make, time, comput, new, also, distribut, work, system<br>--- two, presid, right, thank, develop, access, speed, simm, inform, clipper\", \"+++ could, need, make, time, peopl, right, distribut, think, year, state<br>--- car, well, two, presid, say, mani, develop, access, thing, also\", \"+++ need, time, make, new, distribut, think<br>--- car, two, presid, c8v, right, b8f, develop, okz, access, also\", \"+++ program, could, need, time, peopl, two, new, right, year, think<br>--- well, presid, turkey, say, went, develop, access, also, serdar, inform\", \"+++ make, time, two, presid, right, new, also, year, think, first<br>--- hockey, well, say, develop, access, stephanopoulo, nhl, score, inform, chip\", \"+++ could, need, make, time, two, also, new, space, nasa, distribut<br>--- well, current, presid, right, develop, access, sale, inform, chip, clipper\", \"+++ way, program, need, make, time, also, distribut, may, data, work<br>--- server, client, two, presid, right, resourc, thank, develop, display, access\", \"+++ access, peopl, make, time, two, right, new, also, propos, distribut<br>--- well, presid, say, thank, develop, opinion, inform, chip, world, clipper\", \"+++ peopl, could, make, time, two, public, law, right, new, also<br>--- car, well, presid, say, mani, develop, access, thing, inform, chip\", \"+++ program, need, time, also, new, distribut, data, work, system, inform<br>--- two, presid, right, thank, develop, access, sale, chip, clipper, softwar\", \"+++ way, could, make, time, two, law, new, also, peopl, think<br>--- well, presid, right, say, mani, develop, access, thing, inform, chip\", \"+++ could, make, time, also, right, may, peopl, think, system, way<br>--- well, two, presid, say, mani, develop, access, thing, inform, chip\", \"+++ encrypt, commun, two, presid, law, right, govern, privaci, data, develop<br>--- \"]], \"z\": [[0.0, 0.8353596757852078, 0.9776035834266518, 0.8205588310689567, 0.9889184397163121, 0.8053969901401142, 0.8777207141110296, 0.9298573766658873, 0.9660479855138072, 0.8353596757852078, 0.8053969901401142, 1.0, 0.773936170212766, 0.773936170212766, 0.8911992263056093], [0.8353596757852078, 0.0, 0.773936170212766, 0.6879432624113476, 0.91725768321513, 0.8498122653316645, 0.8639287481444828, 0.8353596757852078, 0.8353596757852078, 0.7576084029086992, 0.7898607827685843, 0.8639287481444828, 0.7408619749045281, 0.706047032474804, 0.8205588310689567], [0.9776035834266518, 0.773936170212766, 0.0, 0.9043748505857041, 0.9298573766658873, 0.9542438801189659, 0.9660479855138072, 0.8639287481444828, 0.773936170212766, 0.8498122653316645, 0.9298573766658873, 0.7576084029086992, 0.9660479855138072, 0.9421831637372804, 0.9043748505857041], [0.8205588310689567, 0.6879432624113476, 0.9043748505857041, 0.0, 0.9043748505857041, 0.8205588310689567, 0.8205588310689567, 0.8498122653316645, 0.91725768321513, 0.7898607827685843, 0.7576084029086992, 0.9542438801189659, 0.7898607827685843, 0.7236805747444045, 0.8911992263056093], [0.9889184397163121, 0.91725768321513, 0.9298573766658873, 0.9043748505857041, 0.0, 0.9660479855138072, 0.9660479855138072, 0.91725768321513, 0.9542438801189659, 0.91725768321513, 0.9660479855138072, 0.9421831637372804, 0.9660479855138072, 0.9776035834266518, 0.9660479855138072], [0.8053969901401142, 0.8498122653316645, 0.9542438801189659, 0.8205588310689567, 0.9660479855138072, 0.0, 0.8498122653316645, 0.9043748505857041, 0.9043748505857041, 0.8639287481444828, 0.8353596757852078, 0.9421831637372804, 0.8353596757852078, 0.8498122653316645, 0.8777207141110296], [0.8777207141110296, 0.8639287481444828, 0.9660479855138072, 0.8205588310689567, 0.9660479855138072, 0.8498122653316645, 0.0, 0.8911992263056093, 0.9776035834266518, 0.8498122653316645, 0.8353596757852078, 0.9776035834266518, 0.8353596757852078, 0.8777207141110296, 0.91725768321513], [0.9298573766658873, 0.8353596757852078, 0.8639287481444828, 0.8498122653316645, 0.91725768321513, 0.9043748505857041, 0.8911992263056093, 0.0, 0.8777207141110296, 0.8353596757852078, 0.9043748505857041, 0.8353596757852078, 0.8639287481444828, 0.9043748505857041, 0.8353596757852078], [0.9660479855138072, 0.8353596757852078, 0.773936170212766, 0.91725768321513, 0.9542438801189659, 0.9043748505857041, 0.9776035834266518, 0.8777207141110296, 0.0, 0.8777207141110296, 0.9421831637372804, 0.7236805747444045, 0.9660479855138072, 0.9298573766658873, 0.8911992263056093], [0.8353596757852078, 0.7576084029086992, 0.8498122653316645, 0.7898607827685843, 0.91725768321513, 0.8639287481444828, 0.8498122653316645, 0.8353596757852078, 0.8777207141110296, 0.0, 0.8353596757852078, 0.8911992263056093, 0.8498122653316645, 0.8053969901401142, 0.8353596757852078], [0.8053969901401142, 0.7898607827685843, 0.9298573766658873, 0.7576084029086992, 0.9660479855138072, 0.8353596757852078, 0.8353596757852078, 0.9043748505857041, 0.9421831637372804, 0.8353596757852078, 0.0, 0.9776035834266518, 0.7576084029086992, 0.7898607827685843, 0.8353596757852078], [1.0, 0.8639287481444828, 0.7576084029086992, 0.9542438801189659, 0.9421831637372804, 0.9421831637372804, 0.9776035834266518, 0.8353596757852078, 0.7236805747444045, 0.8911992263056093, 0.9776035834266518, 0.0, 0.9889184397163121, 0.9889184397163121, 0.9043748505857041], [0.773936170212766, 0.7408619749045281, 0.9660479855138072, 0.7898607827685843, 0.9660479855138072, 0.8353596757852078, 0.8353596757852078, 0.8639287481444828, 0.9660479855138072, 0.8498122653316645, 0.7576084029086992, 0.9889184397163121, 0.0, 0.5236583042235631, 0.9043748505857041], [0.773936170212766, 0.706047032474804, 0.9421831637372804, 0.7236805747444045, 0.9776035834266518, 0.8498122653316645, 0.8777207141110296, 0.9043748505857041, 0.9298573766658873, 0.8053969901401142, 0.7898607827685843, 0.9889184397163121, 0.5236583042235631, 0.0, 0.91725768321513], [0.8911992263056093, 0.8205588310689567, 0.9043748505857041, 0.8911992263056093, 0.9660479855138072, 0.8777207141110296, 0.91725768321513, 0.8353596757852078, 0.8911992263056093, 0.8353596757852078, 0.8353596757852078, 0.9043748505857041, 0.9043748505857041, 0.91725768321513, 0.0]], \"type\": \"heatmap\", \"uid\": \"554e3414-6cb8-445f-aa34-35e83307fe5f\"}], {\"height\": 950, \"title\": \"Topic difference (one model) [jaccard distance]\", \"width\": 950, \"xaxis\": {\"title\": \"topic\"}, \"yaxis\": {\"title\": \"topic\"}}, {\"showLink\": true, \"linkText\": \"Export to plot.ly\", \"plotlyServerURL\": \"https://plot.ly\"})});</script>" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "mdiff, annotation = lda_fst.diff(lda_fst, distance='jaccard', num_words=50)\n", "plot_difference(mdiff, title=\"Topic difference (one model) [jaccard distance]\", annotation=annotation)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "If you compare a model with itself, you want to see as many red elements as possible (except diagonal). With this picture, you can look at the not very red elements and understand which topics in the model are very similar and why (you can read annotation if you move your pointer to cell).\n", "\n", "\n", "Jaccard is stable and robust distance function, but this function not enough sensitive for some purposes. Let's try to use Hellinger distance now." ] }, { "cell_type": "code", "execution_count": 8, "metadata": {}, "outputs": [ { "data": { "application/vnd.plotly.v1+json": { "config": { "linkText": "Export to plot.ly", "plotlyServerURL": "https://plot.ly", "showLink": true }, "data": [ { "colorscale": "RdBu", "text": [ [ "+++ said, well, two, american, right, arab, say, palestinian, mani, want<br>--- ", "+++ even, could, make, well, time, question, right, also, say, want<br>--- two, mani, give, thing, sgi, chip, world, need, 000, jewish", "+++ could, time, make, also, want<br>--- well, two, right, say, mani, thank, give, speed, simm, chip", "+++ even, world, could, peopl, make, well, time, right, say, want<br>--- car, two, give, thing, also, happen, need, 000, jewish, question", "+++ want, time, think, make<br>--- car, well, two, c8v, right, say, mani, b8f, okz, give", "+++ even, world, could, said, kill, well, time, two, peopl, right<br>--- turkey, went, mani, give, also, serdar, need, number, 000, jewish", "+++ even, said, make, well, time, two, right, also, say, think<br>--- hockey, presid, mani, give, stephanopoulo, nhl, score, world, 000, jewish", "+++ could, make, well, time, two, question, also, want, year<br>--- current, right, say, mani, give, sale, world, need, 000, jewish", "+++ make, time, also, want, call, way<br>--- server, client, well, two, right, say, mani, resourc, thank, display", "+++ way, world, peopl, make, well, time, two, question, right, also<br>--- mani, thank, access, give, opinion, great, 000, jewish, dod, much", "+++ even, way, peopl, could, make, well, time, two, right, also<br>--- car, give, thing, world, number, 000, jewish, question, amend, polici", "+++ want, also, time<br>--- well, two, right, say, mani, thank, give, sale, inform, world", "+++ said, well, two, say, mani, want, even, make, also, see<br>--- point, law, right, arab, american, palestinian, live, believ, argument, govern", "+++ said, well, right, say, mani, want, even, make, also, see<br>--- atheist, realli, two, point, must, arab, palestinian, live, believ, object", "+++ could, peopl, make, time, two, right, also, think, govern, year<br>--- well, presid, say, mani, develop, access, give, inform, chip, world" ], [ "+++ even, could, make, well, time, question, right, also, say, want<br>--- two, mani, give, thing, sgi, chip, world, need, 000, jewish", "+++ realli, well, law, right, say, indiana, want, run, disk, state<br>--- ", "+++ want, run, disk, tri, make, also, new, problem, version, chip<br>--- realli, well, right, say, mac, thank, ide, thing, speed, simm", "+++ realli, well, right, say, want, state, tri, even, make, thing<br>--- car, point, law, repli, indiana, mani, run, disk, system, got", "+++ need, make, time, new, look, distribut, want, good, think, anyon<br>--- car, well, c8v, right, say, b8f, okz, thing, also, sgi", "+++ even, could, need, time, well, right, new, say, look, want<br>--- two, turkey, went, thing, also, serdar, sgi, chip, world, number", "+++ even, make, well, time, right, new, say, also, look, think<br>--- hockey, two, presid, stephanopoulo, nhl, thing, sgi, score, chip, need", "+++ could, need, make, well, time, question, new, also, look, distribut<br>--- current, two, right, say, thing, sale, sgi, chip, much, softwar", "+++ need, make, time, bit, also, look, distribut, want, run, problem<br>--- server, client, well, right, say, resourc, thank, display, thing, sourc", "+++ well, right, say, want, run, state, tri, make, new, also<br>--- realli, two, thank, access, opinion, thing, sgi, chip, world, need", "+++ well, law, right, say, state, even, make, thing, new, also<br>--- car, realli, two, file, weapon, mani, run, health, crime, sgi", "+++ need, time, drive, new, also, look, distribut, want, run, system<br>--- well, right, say, thank, thing, sale, sgi, inform, chip, question", "+++ well, law, say, want, even, make, thing, also, new, see<br>--- realli, two, right, mani, run, church, sgi, claim, chip, world", "+++ realli, well, right, say, want, tri, even, make, thing, also<br>--- atheist, said, point, law, must, indiana, mani, run, believ, object", "+++ could, need, make, time, key, law, new, right, also, distribut<br>--- well, two, presid, say, develop, access, thing, sgi, inform, clipper" ], [ "+++ could, time, make, also, want<br>--- well, two, right, say, mani, thank, give, speed, simm, chip", "+++ want, run, disk, tri, system, make, also, new, problem, version<br>--- realli, well, law, right, say, repli, indiana, monitor, mac, color", "+++ repli, monitor, want, mac, run, thank, disk, mous, ide, color<br>--- ", "+++ could, need, make, time, anyon, look, repli, distribut, want, problem<br>--- car, well, right, say, mani, thank, thing, also, speed, simm", "+++ need, make, time, new, look, repli, distribut, want, anyon<br>--- car, c8v, b8f, thank, okz, also, speed, simm, uchicago, chip", "+++ could, need, time, new, look, want, work<br>--- well, two, turkey, right, say, went, thank, also, speed, serdar", "+++ make, time, also, new, look, run<br>--- hockey, well, two, presid, right, say, thank, stephanopoulo, nhl, speed", "+++ could, need, make, time, new, also, repli, look, distribut, want<br>--- well, current, two, thank, speed, simm, sale, chip, question, nasa", "+++ repli, want, color, run, thank, set, tri, make, help, also<br>--- server, client, motif, applic, monitor, mous, resourc, mac, data, disk", "+++ make, time, new, also, repli, look, distribut, want, run, thank<br>--- well, two, right, say, access, opinion, speed, simm, chip, world", "+++ could, make, time, also, new, problem, scsi, control, system<br>--- car, well, two, right, say, mani, thank, thing, speed, simm", "+++ repli, want, mac, run, thank, system, help, new, also, version<br>--- imag, price, monitor, color, mous, netcom, disk, data, ide, instal", "+++ could, make, time, new, also, want<br>--- well, two, say, mani, thank, thing, speed, simm, chip, world", "+++ could, make, time, also, want, system, problem, tri<br>--- well, right, say, mani, thank, thing, speed, simm, chip, world", "+++ could, need, make, time, comput, also, new, distribut, work, system<br>--- two, presid, right, thank, develop, access, speed, simm, inform, clipper" ], [ "+++ even, world, could, peopl, make, well, time, right, say, mani<br>--- car, two, give, thing, also, happen, need, 000, jewish, question", "+++ realli, well, right, say, want, state, tri, even, make, thing<br>--- car, point, law, first, repli, indiana, mani, run, disk, got", "+++ could, need, make, time, anyon, look, repli, distribut, want, problem<br>--- car, well, right, say, mani, thank, thing, also, speed, simm", "+++ car, realli, well, point, first, right, say, repli, want, mani<br>--- ", "+++ need, car, make, time, look, repli, distribut, want, good, think<br>--- well, c8v, right, say, mani, b8f, okz, thing, uchicago, happen", "+++ even, world, could, need, time, well, peopl, right, look, say<br>--- car, two, turkey, went, mani, thing, serdar, happen, number, dod", "+++ even, make, well, time, point, right, look, say, good, think<br>--- car, hockey, two, presid, mani, stephanopoulo, nhl, also, thing, score", "+++ could, need, gov, well, make, time, point, look, repli, sun<br>--- car, current, two, right, say, mani, thing, also, sale, happen", "+++ need, make, time, look, repli, distribut, want, problem, tri, way<br>--- server, client, car, well, right, say, mani, resourc, thank, display", "+++ well, right, say, repli, want, state, tri, make, problem, year<br>--- car, realli, two, point, first, mani, run, thank, net, bnr", "+++ car, well, right, say, mani, state, even, make, thing, problem<br>--- realli, two, point, law, repli, weapon, want, health, system, case", "+++ need, time, look, repli, distribut, want, anyon<br>--- car, well, right, say, mani, thank, thing, also, sale, inform", "+++ well, point, say, mani, want, even, make, thing, see, world<br>--- said, car, realli, two, first, law, right, repli, believ, argument", "+++ realli, well, point, right, say, mani, want, tri, even, make<br>--- atheist, said, car, first, must, repli, believ, object, state, got", "+++ could, need, make, time, peopl, right, distribut, think, year, state<br>--- car, well, two, presid, say, mani, develop, access, thing, also" ], [ "+++ want, time, think, make<br>--- car, well, two, right, c8v, say, mani, b8f, okz, give", "+++ need, make, time, new, look, distribut, want, good, think, anyon<br>--- car, well, right, c8v, say, b8f, okz, thing, also, sgi", "+++ need, make, time, new, look, repli, distribut, want, anyon<br>--- car, c8v, b8f, thank, okz, also, speed, simm, uchicago, chip", "+++ need, car, make, time, look, repli, distribut, want, good, think<br>--- well, right, c8v, say, mani, b8f, okz, thing, uchicago, happen", "+++ 2tm, 1eq, car, c8v, 2di, repli, want, b8f, 1d9, 7ey<br>--- ", "+++ need, time, new, look, want, think<br>--- car, well, two, turkey, right, c8v, say, went, b8f, okz", "+++ time, make, new, look, good, think<br>--- car, hockey, well, two, presid, right, c8v, say, b8f, okz", "+++ need, make, time, new, look, repli, distribut, want, good, engin<br>--- car, well, current, two, c8v, b8f, okz, also, sale, uchicago", "+++ need, make, time, look, repli, distribut, want<br>--- server, client, car, c8v, b8f, resourc, thank, okz, display, also", "+++ make, time, new, look, repli, usa, want, distribut, good, think<br>--- car, well, two, right, c8v, say, b8f, thank, okz, access", "+++ car, time, make, new, good, think<br>--- well, two, right, c8v, say, mani, b8f, okz, thing, also", "+++ need, time, new, look, repli, distribut, want, anyon<br>--- car, c8v, b8f, thank, okz, also, sale, uchicago, inform, softwar", "+++ time, make, new, want, good, think<br>--- car, well, two, c8v, say, mani, b8f, okz, thing, also", "+++ time, make, want, good, think<br>--- car, well, right, c8v, say, mani, b8f, okz, thing, also", "+++ need, time, make, new, distribut, think<br>--- car, two, presid, right, c8v, b8f, develop, okz, access, also" ], [ "+++ even, world, could, said, kill, well, time, two, peopl, right<br>--- turkey, went, mani, give, also, serdar, need, number, 000, jewish", "+++ even, could, need, time, well, right, new, say, look, want<br>--- two, turkey, went, thing, also, serdar, sgi, chip, world, number", "+++ could, need, time, new, look, want, work<br>--- well, two, turkey, right, say, went, thank, also, speed, serdar", "+++ even, world, could, need, time, well, peopl, right, look, say<br>--- car, two, turkey, went, mani, thing, serdar, happen, number, dod", "+++ need, time, new, look, want, think<br>--- car, well, two, turkey, c8v, right, say, went, b8f, okz", "+++ said, armenia, well, two, turkey, right, say, went, want, live<br>--- ", "+++ even, said, time, well, two, right, new, say, look, think<br>--- hockey, presid, turkey, went, stephanopoulo, nhl, also, serdar, score, world", "+++ could, need, time, well, two, new, look, want, year, work<br>--- current, turkey, right, say, went, also, serdar, sale, world, number", "+++ program, need, time, number, work, look, want, name, file, call<br>--- server, client, well, two, turkey, right, say, went, resourc, thank", "+++ world, peopl, time, well, two, right, new, say, look, want<br>--- turkey, went, thank, access, opinion, also, serdar, need, great, number", "+++ even, peopl, could, time, well, number, two, right, new, say<br>--- car, turkey, went, mani, thing, also, serdar, world, need, much", "+++ program, need, time, new, look, want, file, work<br>--- well, two, turkey, right, say, went, thank, also, serdar, sale", "+++ even, world, could, said, time, well, two, new, say, want<br>--- turkey, right, went, mani, thing, also, serdar, need, number, question", "+++ even, world, could, said, time, well, right, say, want, think<br>--- two, turkey, went, mani, thing, also, serdar, need, number, question", "+++ program, could, need, time, peopl, two, new, right, year, think<br>--- well, presid, turkey, say, went, develop, access, also, serdar, inform" ], [ "+++ even, said, make, well, time, two, right, also, say, think<br>--- hockey, presid, mani, give, stephanopoulo, nhl, score, world, 000, jewish", "+++ even, make, well, time, right, also, say, new, look, think<br>--- hockey, two, presid, stephanopoulo, thing, nhl, sgi, score, chip, need", "+++ make, time, also, look, new, run<br>--- hockey, well, two, presid, right, say, thank, stephanopoulo, nhl, speed", "+++ even, make, well, time, point, right, look, say, good, think<br>--- car, hockey, two, presid, mani, stephanopoulo, thing, nhl, also, score", "+++ time, make, new, look, good, think<br>--- car, hockey, well, two, presid, c8v, right, say, b8f, okz", "+++ even, said, time, well, two, right, new, say, look, think<br>--- hockey, presid, turkey, went, stephanopoulo, nhl, also, serdar, score, world", "+++ game, said, play, hockey, well, two, point, presid, hit, right<br>--- ", "+++ make, well, time, two, point, new, also, look, good, run<br>--- hockey, current, presid, right, say, stephanopoulo, nhl, sale, score, need", "+++ make, time, also, look, run<br>--- server, client, hockey, well, two, presid, right, say, resourc, thank", "+++ make, well, time, two, right, new, say, also, look, good<br>--- hockey, presid, thank, access, opinion, stephanopoulo, nhl, score, world, great", "+++ day, even, make, well, time, two, right, new, say, also<br>--- car, hockey, presid, mani, stephanopoulo, thing, nhl, score, number, season", "+++ time, also, new, look, run<br>--- hockey, well, two, presid, right, say, thank, stephanopoulo, nhl, sale", "+++ day, even, said, make, well, time, two, point, also, new<br>--- hockey, presid, right, mani, stephanopoulo, thing, nhl, score, world, question", "+++ even, said, make, well, time, point, right, also, say, think<br>--- hockey, two, presid, mani, stephanopoulo, thing, nhl, score, world, question", "+++ make, time, two, presid, right, new, also, year, think, first<br>--- hockey, well, say, develop, access, stephanopoulo, nhl, inform, chip, score" ], [ "+++ could, make, well, time, two, question, also, want, year<br>--- current, right, say, mani, give, sale, world, need, 000, jewish", "+++ could, need, make, well, time, question, also, new, look, distribut<br>--- current, two, right, say, thing, sale, sgi, chip, much, softwar", "+++ could, need, make, time, also, new, repli, look, distribut, want<br>--- well, current, two, thank, speed, simm, sale, chip, question, nasa", "+++ could, need, make, well, gov, time, point, look, repli, sun<br>--- car, current, two, right, say, mani, thing, also, sale, happen", "+++ need, make, time, new, look, repli, distribut, want, good, engin<br>--- car, well, current, two, c8v, b8f, okz, also, sale, uchicago", "+++ could, need, time, well, two, new, look, want, year, work<br>--- current, turkey, right, say, went, also, serdar, sale, world, number", "+++ make, well, time, two, point, new, also, look, good, run<br>--- hockey, current, presid, right, say, stephanopoulo, nhl, sale, score, need", "+++ well, imag, two, point, current, wire, repli, want, pitt, run<br>--- ", "+++ need, make, time, also, look, repli, includ, want, distribut, run<br>--- server, client, well, current, two, resourc, thank, display, sourc, sale", "+++ make, well, time, two, question, new, also, repli, look, distribut<br>--- current, right, say, thank, access, opinion, sale, world, need, great", "+++ could, make, well, time, two, first, new, also, good, year<br>--- car, current, right, say, mani, thing, sale, need, number, question", "+++ need, time, imag, new, also, repli, look, includ, want, interest<br>--- well, current, two, thank, inform, question, softwar, address, list, nasa", "+++ could, make, well, scienc, two, point, question, also, new, time<br>--- current, say, mani, thing, sale, world, need, much, work, nasa", "+++ could, make, well, time, point, question, also, want, good, system<br>--- current, two, right, say, mani, thing, sale, world, need, work", "+++ could, need, make, time, two, also, new, space, distribut, nasa<br>--- well, current, presid, right, develop, access, sale, inform, chip, clipper" ], [ "+++ make, time, also, want, call, way<br>--- server, client, well, two, right, say, mani, resourc, thank, display", "+++ need, make, time, bit, also, look, distribut, want, run, problem<br>--- server, client, well, right, say, resourc, thank, display, thing, sourc", "+++ repli, want, color, run, thank, set, tri, make, help, also<br>--- server, client, motif, applic, file, monitor, mac, disk, mous, ide", "+++ need, make, time, look, repli, distribut, want, problem, tri, way<br>--- server, client, car, well, right, say, mani, resourc, thank, display", "+++ need, make, time, look, repli, distribut, want<br>--- server, client, car, c8v, b8f, resourc, thank, okz, display, also", "+++ program, need, time, number, work, look, want, name, file, call<br>--- server, client, well, two, turkey, right, say, went, resourc, thank", "+++ make, time, also, look, run<br>--- server, client, hockey, well, two, presid, right, say, resourc, thank", "+++ need, make, time, also, look, repli, includ, want, distribut, run<br>--- server, client, well, current, two, resourc, thank, display, sourc, sale", "+++ server, client, motif, applic, repli, want, color, run, thank, resourc<br>--- ", "+++ make, time, also, look, repli, distribut, want, run, thank, problem<br>--- server, client, well, two, right, say, resourc, display, access, opinion", "+++ make, time, number, also, problem, file, system, way<br>--- server, client, car, well, two, right, say, mani, resourc, thank", "+++ repli, want, run, thank, data, program, help, also, avail, version<br>--- server, client, imag, price, motif, applic, mac, resourc, netcom, color", "+++ make, time, also, want, may, way<br>--- server, client, well, two, say, mani, resourc, thank, display, thing", "+++ make, time, also, want, system, problem, may, tri, way<br>--- server, client, well, right, say, mani, resourc, thank, display, thing", "+++ way, program, need, make, time, also, distribut, may, data, work<br>--- server, client, two, presid, right, resourc, thank, develop, display, access" ], [ "+++ world, peopl, make, well, time, two, question, right, also, say<br>--- mani, thank, give, access, opinion, great, 000, jewish, dod, much", "+++ well, right, say, want, run, state, tri, make, also, new<br>--- realli, two, thank, access, opinion, thing, sgi, chip, world, need", "+++ make, time, also, new, repli, tri, look, want, distribut, run<br>--- well, two, right, say, access, opinion, speed, simm, chip, world", "+++ well, right, say, repli, want, state, tri, make, problem, year<br>--- car, realli, two, mani, run, thank, got, access, put, opinion", "+++ make, time, new, look, repli, usa, want, distribut, good, think<br>--- car, well, two, c8v, right, say, b8f, thank, okz, access", "+++ world, peopl, time, well, two, right, new, say, look, want<br>--- turkey, went, thank, access, opinion, also, serdar, need, number, great", "+++ make, well, time, two, right, new, say, also, look, good<br>--- hockey, presid, thank, access, opinion, stephanopoulo, nhl, score, world, great", "+++ make, well, time, two, question, new, also, repli, look, distribut<br>--- current, right, say, thank, access, opinion, sale, world, need, great", "+++ make, time, also, look, repli, distribut, want, run, thank, problem<br>--- server, client, well, two, right, say, resourc, display, access, opinion", "+++ well, two, right, say, repli, want, run, thank, net, state<br>--- ", "+++ peopl, make, well, time, two, right, new, say, also, good<br>--- car, mani, thank, access, opinion, thing, world, number, great, question", "+++ time, new, also, repli, look, distribut, want, run, thank, pleas<br>--- well, two, right, say, access, opinion, sale, inform, world, need", "+++ world, peopl, make, well, time, two, question, also, new, say<br>--- right, mani, thank, access, opinion, thing, great, dod, much, bmw", "+++ world, peopl, make, well, time, question, right, also, say, human<br>--- realli, two, mani, run, object, thank, access, opinion, thing, christ", "+++ access, peopl, make, time, two, right, new, also, propos, distribut<br>--- well, presid, say, thank, develop, opinion, inform, chip, world, clipper" ], [ "+++ even, way, could, peopl, make, well, time, two, right, also<br>--- car, arab, weapon, health, give, crime, kill, thing, new, control", "+++ well, law, right, say, state, even, make, thing, also, new<br>--- car, realli, two, weapon, mani, run, health, crime, sgi, control", "+++ could, make, time, new, also, problem, scsi, control, system<br>--- car, well, two, right, say, mani, thank, thing, speed, simm", "+++ car, well, right, say, mani, state, even, make, thing, problem<br>--- realli, two, weapon, health, got, put, crime, gov, new, also", "+++ car, time, make, new, good, think<br>--- well, two, c8v, right, say, mani, b8f, okz, thing, also", "+++ even, year, could, peopl, time, well, number, two, right, new<br>--- car, turkey, went, mani, thing, also, serdar, world, need, much", "+++ day, even, make, well, time, two, right, new, say, also<br>--- car, hockey, presid, mani, stephanopoulo, nhl, thing, score, number, season", "+++ could, make, well, time, two, new, also, good, system, year<br>--- car, current, right, say, mani, thing, sale, need, number, question", "+++ make, time, number, also, problem, file, system, way<br>--- server, client, car, well, two, right, say, mani, resourc, thank", "+++ peopl, make, well, time, two, right, new, say, also, good<br>--- car, weapon, mani, run, thank, health, access, crime, opinion, thing", "+++ car, well, two, first, law, right, file, say, weapon, mani<br>--- ", "+++ time, also, new, file, system<br>--- car, well, two, right, say, mani, thank, thing, sale, inform", "+++ well, two, law, say, mani, even, make, thing, also, new<br>--- said, car, point, first, right, weapon, want, believ, argument, health", "+++ well, right, say, mani, even, make, thing, also, problem, see<br>--- car, realli, two, weapon, object, health, crime, christ, new, control", "+++ could, peopl, make, time, two, public, law, right, new, also<br>--- car, well, presid, say, mani, develop, access, thing, inform, chip" ], [ "+++ want, also, time<br>--- well, two, right, say, mani, thank, give, sale, inform, world", "+++ need, time, drive, also, new, look, distribut, want, run, system<br>--- well, right, say, thank, thing, sale, sgi, inform, chip, question", "+++ repli, want, mac, run, thank, help, also, new, version, window<br>--- imag, price, monitor, netcom, disk, mous, ide, color, instal, set", "+++ need, time, look, repli, distribut, want, anyon<br>--- car, well, right, say, mani, thank, thing, also, sale, inform", "+++ need, time, new, look, repli, distribut, want, anyon<br>--- car, c8v, b8f, thank, okz, also, sale, uchicago, inform, softwar", "+++ program, need, time, new, look, want, file, work<br>--- well, two, turkey, right, say, went, thank, also, serdar, sale", "+++ time, also, new, look, run<br>--- hockey, well, two, presid, right, say, thank, stephanopoulo, nhl, sale", "+++ need, time, imag, new, also, repli, look, includ, want, interest<br>--- well, current, two, thank, inform, question, softwar, address, list, nasa", "+++ repli, want, run, thank, data, program, help, also, avail, version<br>--- server, client, imag, motif, price, applic, color, netcom, resourc, mac", "+++ time, new, also, repli, look, distribut, want, run, thank, pleas<br>--- well, two, right, say, access, opinion, sale, inform, world, need", "+++ time, also, new, file, system<br>--- car, well, two, right, say, mani, thank, thing, sale, inform", "+++ imag, price, file, repli, want, mac, run, thank, netcom, data<br>--- ", "+++ want, new, also, time<br>--- well, two, say, mani, thank, thing, sale, inform, world, need", "+++ want, system, also, time<br>--- well, right, say, mani, thank, thing, sale, inform, world, need", "+++ program, need, time, also, new, distribut, data, work, system, inform<br>--- two, presid, right, thank, develop, access, sale, chip, clipper, softwar" ], [ "+++ said, well, two, say, mani, want, even, make, also, see<br>--- point, law, right, arab, palestinian, live, govern, believ, argument, state", "+++ well, law, say, want, even, make, thing, also, new, see<br>--- said, realli, two, point, right, indiana, mani, run, believ, disk", "+++ could, make, time, new, also, want<br>--- well, two, say, mani, thank, thing, speed, simm, chip, world", "+++ well, point, say, want, mani, even, make, thing, see, world<br>--- car, realli, two, right, got, put, gov, also, new, sun", "+++ time, make, new, want, good, think<br>--- car, well, two, c8v, say, mani, b8f, okz, thing, also", "+++ even, world, could, said, time, well, two, new, say, want<br>--- turkey, right, went, mani, thing, also, serdar, need, number, question", "+++ day, even, said, make, well, time, two, point, new, also<br>--- hockey, presid, right, mani, stephanopoulo, nhl, thing, score, world, question", "+++ could, make, scienc, well, two, point, question, new, also, time<br>--- current, say, mani, thing, sale, world, need, much, work, nasa", "+++ make, time, also, want, may, way<br>--- server, client, well, two, say, mani, resourc, thank, display, thing", "+++ world, peopl, make, well, time, two, question, new, also, say<br>--- right, mani, thank, access, opinion, thing, great, dod, much, bmw", "+++ well, two, law, say, mani, even, make, thing, new, also<br>--- car, said, point, right, weapon, want, believ, argument, health, state", "+++ want, also, new, time<br>--- well, two, say, mani, thank, thing, sale, inform, world, need", "+++ said, well, two, point, law, say, mani, want, believ, argument<br>--- ", "+++ said, well, point, say, mani, want, believ, come, even, make<br>--- atheist, realli, two, law, right, must, argument, object, tri, scienc", "+++ way, could, make, time, two, law, also, new, peopl, think<br>--- well, presid, right, say, mani, develop, access, thing, inform, chip" ], [ "+++ said, well, right, say, mani, want, even, make, also, see<br>--- atheist, realli, two, point, must, arab, palestinian, live, govern, believ", "+++ realli, well, right, say, want, tri, even, make, thing, also<br>--- atheist, said, point, law, must, indiana, mani, run, believ, disk", "+++ could, make, time, also, tri, want, problem, system<br>--- well, right, say, mani, thank, thing, speed, simm, chip, world", "+++ realli, well, point, right, say, want, mani, tri, even, make<br>--- atheist, car, said, must, repli, believ, object, state, system, got", "+++ time, make, want, good, think<br>--- car, well, c8v, right, say, mani, b8f, okz, thing, also", "+++ even, world, could, said, time, well, right, say, want, think<br>--- two, turkey, went, mani, thing, also, serdar, need, number, question", "+++ even, said, make, well, time, point, right, also, say, think<br>--- hockey, two, presid, mani, stephanopoulo, nhl, thing, score, world, question", "+++ could, make, well, time, point, question, also, want, good, system<br>--- current, two, right, say, mani, thing, sale, world, need, work", "+++ way, make, time, also, want, system, problem, tri, may<br>--- server, client, well, right, say, mani, resourc, thank, display, thing", "+++ way, world, peopl, make, well, time, question, right, also, say<br>--- two, mani, thank, access, opinion, thing, great, dod, bmw, find", "+++ well, right, say, mani, even, make, thing, also, problem, see<br>--- atheist, car, said, realli, two, point, law, must, weapon, want", "+++ want, system, also, time<br>--- well, right, say, mani, thank, thing, sale, inform, world, need", "+++ said, well, point, say, mani, want, believ, come, even, make<br>--- atheist, realli, two, law, right, must, object, argument, tri, scienc", "+++ atheist, said, realli, well, point, right, must, say, mani, want<br>--- ", "+++ could, make, time, also, right, may, peopl, think, system, way<br>--- well, two, presid, say, mani, develop, access, thing, inform, chip" ], [ "+++ could, peopl, make, time, two, right, also, think, govern, year<br>--- well, presid, say, mani, develop, give, access, inform, chip, world", "+++ could, need, make, time, key, law, also, right, new, distribut<br>--- well, two, presid, say, develop, access, thing, sgi, inform, clipper", "+++ could, need, make, time, comput, new, also, distribut, work, system<br>--- two, presid, right, thank, develop, access, speed, simm, inform, clipper", "+++ could, need, make, time, peopl, right, distribut, think, year, state<br>--- car, well, two, presid, say, mani, develop, access, thing, also", "+++ need, time, make, new, distribut, think<br>--- car, two, presid, c8v, right, b8f, develop, okz, access, also", "+++ program, could, need, time, peopl, two, new, right, year, think<br>--- well, presid, turkey, say, went, develop, access, also, serdar, inform", "+++ make, time, two, presid, right, new, also, year, think, first<br>--- hockey, well, say, develop, access, stephanopoulo, nhl, score, inform, chip", "+++ could, need, make, time, two, also, new, space, nasa, distribut<br>--- well, current, presid, right, develop, access, sale, inform, chip, clipper", "+++ way, program, need, make, time, also, distribut, may, data, work<br>--- server, client, two, presid, right, resourc, thank, develop, display, access", "+++ access, peopl, make, time, two, right, new, also, propos, distribut<br>--- well, presid, say, thank, develop, opinion, inform, chip, world, clipper", "+++ peopl, could, make, time, two, public, law, right, new, also<br>--- car, well, presid, say, mani, develop, access, thing, inform, chip", "+++ program, need, time, also, new, distribut, data, work, system, inform<br>--- two, presid, right, thank, develop, access, sale, chip, clipper, softwar", "+++ way, could, make, time, two, law, new, also, peopl, think<br>--- well, presid, right, say, mani, develop, access, thing, inform, chip", "+++ could, make, time, also, right, may, peopl, think, system, way<br>--- well, two, presid, say, mani, develop, access, thing, inform, chip", "+++ encrypt, commun, two, presid, law, right, govern, privaci, data, develop<br>--- " ] ], "type": "heatmap", "uid": "f56df2f1-5247-4d40-969e-fdba578be822", "z": [ [ 0, 0.7595438359657607, 0.9262841492358087, 0.7884700368007593, 1, 0.7323566346435393, 0.8170752433154621, 0.8413158254151436, 0.8740155079503418, 0.7695480873771401, 0.709199118658843, 0.8879803722003395, 0.7314161717683719, 0.7237986193866011, 0.8038717033978985 ], [ 0.7595438359657607, 0, 0.7318068179280713, 0.7160213176898725, 0.931461318117774, 0.7726170600952607, 0.7862904411360011, 0.7437804773160451, 0.7261304682479388, 0.7535871571515667, 0.6712180651685388, 0.7162615966682004, 0.6791077745495656, 0.6720945460948236, 0.6964932824724144 ], [ 0.9262841492358087, 0.7318068179280713, 0, 0.8574415951298031, 0.9854159083689508, 0.9069175150192125, 0.9046739989611283, 0.8043455907707084, 0.7465496685414171, 0.8585050034234649, 0.844819756902363, 0.6933520111362702, 0.8380803175475514, 0.8430082043112994, 0.8796770147813993 ], [ 0.7884700368007593, 0.7160213176898725, 0.8574415951298031, 0, 0.9355864990614852, 0.8123575778010284, 0.7531174879151491, 0.7726893543131144, 0.841589742333695, 0.7803722520664951, 0.7108866861290872, 0.8319749623897799, 0.7790096616692483, 0.7570699362092709, 0.8428560212776922 ], [ 1, 0.931461318117774, 0.9854159083689508, 0.9355864990614852, 0, 0.9943633453585028, 0.96633290846124, 0.9427710170298542, 0.9842359174618569, 0.9565789495122544, 0.9252482154378123, 0.9546269085033189, 0.9831865525817131, 0.976673603156099, 0.9862908354943184 ], [ 0.7323566346435393, 0.7726170600952607, 0.9069175150192125, 0.8123575778010284, 0.9943633453585028, 0, 0.8369554935234337, 0.8334980316244139, 0.81754589609866, 0.8444443421224488, 0.7641296194848691, 0.8514311288067665, 0.7710627082125688, 0.7681500144434829, 0.8247767768912454 ], [ 0.8170752433154621, 0.7862904411360011, 0.9046739989611283, 0.7531174879151491, 0.96633290846124, 0.8369554935234337, 0, 0.8285319686301731, 0.8739669989287112, 0.8128104170459997, 0.812028432574059, 0.8763913774589871, 0.8364217703073451, 0.8332002259898788, 0.8746609598118593 ], [ 0.8413158254151436, 0.7437804773160451, 0.8043455907707084, 0.7726893543131144, 0.9427710170298542, 0.8334980316244139, 0.8285319686301731, 0, 0.7698580319588464, 0.7980862901604131, 0.7527906457466673, 0.724541349001037, 0.8089451356075532, 0.8178669870572579, 0.760409513739808 ], [ 0.8740155079503418, 0.7261304682479388, 0.7465496685414171, 0.841589742333695, 0.9842359174618569, 0.81754589609866, 0.8739669989287112, 0.7698580319588464, 0, 0.8306979226984069, 0.8043458026246182, 0.6430984098928708, 0.8108465393365341, 0.8313197770928223, 0.7982346696285947 ], [ 0.7695480873771401, 0.7535871571515667, 0.8585050034234649, 0.7803722520664951, 0.9565789495122544, 0.8444443421224488, 0.8128104170459997, 0.7980862901604131, 0.8306979226984069, 0, 0.7686319141956662, 0.8025391599365734, 0.7810887188379143, 0.7900886236487616, 0.8371214921530137 ], [ 0.709199118658843, 0.6712180651685388, 0.844819756902363, 0.7108866861290872, 0.9252482154378123, 0.7641296194848691, 0.812028432574059, 0.7527906457466673, 0.8043458026246182, 0.7686319141956662, 0, 0.7921819700961124, 0.7034290766439234, 0.6881510253531813, 0.7233383725539672 ], [ 0.8879803722003395, 0.7162615966682004, 0.6933520111362702, 0.8319749623897799, 0.9546269085033189, 0.8514311288067665, 0.8763913774589871, 0.724541349001037, 0.6430984098928708, 0.8025391599365734, 0.7921819700961124, 0, 0.8235993983490295, 0.8508846565675093, 0.7915239430267434 ], [ 0.7314161717683719, 0.6791077745495656, 0.8380803175475514, 0.7790096616692483, 0.9831865525817131, 0.7710627082125688, 0.8364217703073451, 0.8089451356075532, 0.8108465393365341, 0.7810887188379143, 0.7034290766439234, 0.8235993983490295, 0, 0.5398098970501584, 0.7811421666690115 ], [ 0.7237986193866011, 0.6720945460948236, 0.8430082043112994, 0.7570699362092709, 0.976673603156099, 0.7681500144434829, 0.8332002259898788, 0.8178669870572579, 0.8313197770928223, 0.7900886236487616, 0.6881510253531813, 0.8508846565675093, 0.5398098970501584, 0, 0.7854428745787172 ], [ 0.8038717033978985, 0.6964932824724144, 0.8796770147813993, 0.8428560212776922, 0.9862908354943184, 0.8247767768912454, 0.8746609598118593, 0.760409513739808, 0.7982346696285947, 0.8371214921530137, 0.7233383725539672, 0.7915239430267434, 0.7811421666690115, 0.7854428745787172, 0 ] ] } ], "layout": { "height": 950, "title": "Topic difference (one model)[hellinger distance]", "width": 950, "xaxis": { "title": "topic" }, "yaxis": { "title": "topic" } } }, "text/html": [ "<div id=\"54df0fc2-5b60-44d7-b31f-f7ad1b8386cc\" style=\"height: 950px; width: 950px;\" class=\"plotly-graph-div\"></div><script type=\"text/javascript\">require([\"plotly\"], function(Plotly) { window.PLOTLYENV=window.PLOTLYENV || {};window.PLOTLYENV.BASE_URL=\"https://plot.ly\";Plotly.newPlot(\"54df0fc2-5b60-44d7-b31f-f7ad1b8386cc\", [{\"colorscale\": \"RdBu\", \"text\": [[\"+++ said, well, two, american, right, arab, say, palestinian, mani, want<br>--- \", \"+++ even, could, make, well, time, question, right, also, say, want<br>--- two, mani, give, thing, sgi, chip, world, need, 000, jewish\", \"+++ could, time, make, also, want<br>--- well, two, right, say, mani, thank, give, speed, simm, chip\", \"+++ even, world, could, peopl, make, well, time, right, say, want<br>--- car, two, give, thing, also, happen, need, 000, jewish, question\", \"+++ want, time, think, make<br>--- car, well, two, c8v, right, say, mani, b8f, okz, give\", \"+++ even, world, could, said, kill, well, time, two, peopl, right<br>--- turkey, went, mani, give, also, serdar, need, number, 000, jewish\", \"+++ even, said, make, well, time, two, right, also, say, think<br>--- hockey, presid, mani, give, stephanopoulo, nhl, score, world, 000, jewish\", \"+++ could, make, well, time, two, question, also, want, year<br>--- current, right, say, mani, give, sale, world, need, 000, jewish\", \"+++ make, time, also, want, call, way<br>--- server, client, well, two, right, say, mani, resourc, thank, display\", \"+++ way, world, peopl, make, well, time, two, question, right, also<br>--- mani, thank, access, give, opinion, great, 000, jewish, dod, much\", \"+++ even, way, peopl, could, make, well, time, two, right, also<br>--- car, give, thing, world, number, 000, jewish, question, amend, polici\", \"+++ want, also, time<br>--- well, two, right, say, mani, thank, give, sale, inform, world\", \"+++ said, well, two, say, mani, want, even, make, also, see<br>--- point, law, right, arab, american, palestinian, live, believ, argument, govern\", \"+++ said, well, right, say, mani, want, even, make, also, see<br>--- atheist, realli, two, point, must, arab, palestinian, live, believ, object\", \"+++ could, peopl, make, time, two, right, also, think, govern, year<br>--- well, presid, say, mani, develop, access, give, inform, chip, world\"], [\"+++ even, could, make, well, time, question, right, also, say, want<br>--- two, mani, give, thing, sgi, chip, world, need, 000, jewish\", \"+++ realli, well, law, right, say, indiana, want, run, disk, state<br>--- \", \"+++ want, run, disk, tri, make, also, new, problem, version, chip<br>--- realli, well, right, say, mac, thank, ide, thing, speed, simm\", \"+++ realli, well, right, say, want, state, tri, even, make, thing<br>--- car, point, law, repli, indiana, mani, run, disk, system, got\", \"+++ need, make, time, new, look, distribut, want, good, think, anyon<br>--- car, well, c8v, right, say, b8f, okz, thing, also, sgi\", \"+++ even, could, need, time, well, right, new, say, look, want<br>--- two, turkey, went, thing, also, serdar, sgi, chip, world, number\", \"+++ even, make, well, time, right, new, say, also, look, think<br>--- hockey, two, presid, stephanopoulo, nhl, thing, sgi, score, chip, need\", \"+++ could, need, make, well, time, question, new, also, look, distribut<br>--- current, two, right, say, thing, sale, sgi, chip, much, softwar\", \"+++ need, make, time, bit, also, look, distribut, want, run, problem<br>--- server, client, well, right, say, resourc, thank, display, thing, sourc\", \"+++ well, right, say, want, run, state, tri, make, new, also<br>--- realli, two, thank, access, opinion, thing, sgi, chip, world, need\", \"+++ well, law, right, say, state, even, make, thing, new, also<br>--- car, realli, two, file, weapon, mani, run, health, crime, sgi\", \"+++ need, time, drive, new, also, look, distribut, want, run, system<br>--- well, right, say, thank, thing, sale, sgi, inform, chip, question\", \"+++ well, law, say, want, even, make, thing, also, new, see<br>--- realli, two, right, mani, run, church, sgi, claim, chip, world\", \"+++ realli, well, right, say, want, tri, even, make, thing, also<br>--- atheist, said, point, law, must, indiana, mani, run, believ, object\", \"+++ could, need, make, time, key, law, new, right, also, distribut<br>--- well, two, presid, say, develop, access, thing, sgi, inform, clipper\"], [\"+++ could, time, make, also, want<br>--- well, two, right, say, mani, thank, give, speed, simm, chip\", \"+++ want, run, disk, tri, system, make, also, new, problem, version<br>--- realli, well, law, right, say, repli, indiana, monitor, mac, color\", \"+++ repli, monitor, want, mac, run, thank, disk, mous, ide, color<br>--- \", \"+++ could, need, make, time, anyon, look, repli, distribut, want, problem<br>--- car, well, right, say, mani, thank, thing, also, speed, simm\", \"+++ need, make, time, new, look, repli, distribut, want, anyon<br>--- car, c8v, b8f, thank, okz, also, speed, simm, uchicago, chip\", \"+++ could, need, time, new, look, want, work<br>--- well, two, turkey, right, say, went, thank, also, speed, serdar\", \"+++ make, time, also, new, look, run<br>--- hockey, well, two, presid, right, say, thank, stephanopoulo, nhl, speed\", \"+++ could, need, make, time, new, also, repli, look, distribut, want<br>--- well, current, two, thank, speed, simm, sale, chip, question, nasa\", \"+++ repli, want, color, run, thank, set, tri, make, help, also<br>--- server, client, motif, applic, monitor, mous, resourc, mac, data, disk\", \"+++ make, time, new, also, repli, look, distribut, want, run, thank<br>--- well, two, right, say, access, opinion, speed, simm, chip, world\", \"+++ could, make, time, also, new, problem, scsi, control, system<br>--- car, well, two, right, say, mani, thank, thing, speed, simm\", \"+++ repli, want, mac, run, thank, system, help, new, also, version<br>--- imag, price, monitor, color, mous, netcom, disk, data, ide, instal\", \"+++ could, make, time, new, also, want<br>--- well, two, say, mani, thank, thing, speed, simm, chip, world\", \"+++ could, make, time, also, want, system, problem, tri<br>--- well, right, say, mani, thank, thing, speed, simm, chip, world\", \"+++ could, need, make, time, comput, also, new, distribut, work, system<br>--- two, presid, right, thank, develop, access, speed, simm, inform, clipper\"], [\"+++ even, world, could, peopl, make, well, time, right, say, mani<br>--- car, two, give, thing, also, happen, need, 000, jewish, question\", \"+++ realli, well, right, say, want, state, tri, even, make, thing<br>--- car, point, law, first, repli, indiana, mani, run, disk, got\", \"+++ could, need, make, time, anyon, look, repli, distribut, want, problem<br>--- car, well, right, say, mani, thank, thing, also, speed, simm\", \"+++ car, realli, well, point, first, right, say, repli, want, mani<br>--- \", \"+++ need, car, make, time, look, repli, distribut, want, good, think<br>--- well, c8v, right, say, mani, b8f, okz, thing, uchicago, happen\", \"+++ even, world, could, need, time, well, peopl, right, look, say<br>--- car, two, turkey, went, mani, thing, serdar, happen, number, dod\", \"+++ even, make, well, time, point, right, look, say, good, think<br>--- car, hockey, two, presid, mani, stephanopoulo, nhl, also, thing, score\", \"+++ could, need, gov, well, make, time, point, look, repli, sun<br>--- car, current, two, right, say, mani, thing, also, sale, happen\", \"+++ need, make, time, look, repli, distribut, want, problem, tri, way<br>--- server, client, car, well, right, say, mani, resourc, thank, display\", \"+++ well, right, say, repli, want, state, tri, make, problem, year<br>--- car, realli, two, point, first, mani, run, thank, net, bnr\", \"+++ car, well, right, say, mani, state, even, make, thing, problem<br>--- realli, two, point, law, repli, weapon, want, health, system, case\", \"+++ need, time, look, repli, distribut, want, anyon<br>--- car, well, right, say, mani, thank, thing, also, sale, inform\", \"+++ well, point, say, mani, want, even, make, thing, see, world<br>--- said, car, realli, two, first, law, right, repli, believ, argument\", \"+++ realli, well, point, right, say, mani, want, tri, even, make<br>--- atheist, said, car, first, must, repli, believ, object, state, got\", \"+++ could, need, make, time, peopl, right, distribut, think, year, state<br>--- car, well, two, presid, say, mani, develop, access, thing, also\"], [\"+++ want, time, think, make<br>--- car, well, two, right, c8v, say, mani, b8f, okz, give\", \"+++ need, make, time, new, look, distribut, want, good, think, anyon<br>--- car, well, right, c8v, say, b8f, okz, thing, also, sgi\", \"+++ need, make, time, new, look, repli, distribut, want, anyon<br>--- car, c8v, b8f, thank, okz, also, speed, simm, uchicago, chip\", \"+++ need, car, make, time, look, repli, distribut, want, good, think<br>--- well, right, c8v, say, mani, b8f, okz, thing, uchicago, happen\", \"+++ 2tm, 1eq, car, c8v, 2di, repli, want, b8f, 1d9, 7ey<br>--- \", \"+++ need, time, new, look, want, think<br>--- car, well, two, turkey, right, c8v, say, went, b8f, okz\", \"+++ time, make, new, look, good, think<br>--- car, hockey, well, two, presid, right, c8v, say, b8f, okz\", \"+++ need, make, time, new, look, repli, distribut, want, good, engin<br>--- car, well, current, two, c8v, b8f, okz, also, sale, uchicago\", \"+++ need, make, time, look, repli, distribut, want<br>--- server, client, car, c8v, b8f, resourc, thank, okz, display, also\", \"+++ make, time, new, look, repli, usa, want, distribut, good, think<br>--- car, well, two, right, c8v, say, b8f, thank, okz, access\", \"+++ car, time, make, new, good, think<br>--- well, two, right, c8v, say, mani, b8f, okz, thing, also\", \"+++ need, time, new, look, repli, distribut, want, anyon<br>--- car, c8v, b8f, thank, okz, also, sale, uchicago, inform, softwar\", \"+++ time, make, new, want, good, think<br>--- car, well, two, c8v, say, mani, b8f, okz, thing, also\", \"+++ time, make, want, good, think<br>--- car, well, right, c8v, say, mani, b8f, okz, thing, also\", \"+++ need, time, make, new, distribut, think<br>--- car, two, presid, right, c8v, b8f, develop, okz, access, also\"], [\"+++ even, world, could, said, kill, well, time, two, peopl, right<br>--- turkey, went, mani, give, also, serdar, need, number, 000, jewish\", \"+++ even, could, need, time, well, right, new, say, look, want<br>--- two, turkey, went, thing, also, serdar, sgi, chip, world, number\", \"+++ could, need, time, new, look, want, work<br>--- well, two, turkey, right, say, went, thank, also, speed, serdar\", \"+++ even, world, could, need, time, well, peopl, right, look, say<br>--- car, two, turkey, went, mani, thing, serdar, happen, number, dod\", \"+++ need, time, new, look, want, think<br>--- car, well, two, turkey, c8v, right, say, went, b8f, okz\", \"+++ said, armenia, well, two, turkey, right, say, went, want, live<br>--- \", \"+++ even, said, time, well, two, right, new, say, look, think<br>--- hockey, presid, turkey, went, stephanopoulo, nhl, also, serdar, score, world\", \"+++ could, need, time, well, two, new, look, want, year, work<br>--- current, turkey, right, say, went, also, serdar, sale, world, number\", \"+++ program, need, time, number, work, look, want, name, file, call<br>--- server, client, well, two, turkey, right, say, went, resourc, thank\", \"+++ world, peopl, time, well, two, right, new, say, look, want<br>--- turkey, went, thank, access, opinion, also, serdar, need, great, number\", \"+++ even, peopl, could, time, well, number, two, right, new, say<br>--- car, turkey, went, mani, thing, also, serdar, world, need, much\", \"+++ program, need, time, new, look, want, file, work<br>--- well, two, turkey, right, say, went, thank, also, serdar, sale\", \"+++ even, world, could, said, time, well, two, new, say, want<br>--- turkey, right, went, mani, thing, also, serdar, need, number, question\", \"+++ even, world, could, said, time, well, right, say, want, think<br>--- two, turkey, went, mani, thing, also, serdar, need, number, question\", \"+++ program, could, need, time, peopl, two, new, right, year, think<br>--- well, presid, turkey, say, went, develop, access, also, serdar, inform\"], [\"+++ even, said, make, well, time, two, right, also, say, think<br>--- hockey, presid, mani, give, stephanopoulo, nhl, score, world, 000, jewish\", \"+++ even, make, well, time, right, also, say, new, look, think<br>--- hockey, two, presid, stephanopoulo, thing, nhl, sgi, score, chip, need\", \"+++ make, time, also, look, new, run<br>--- hockey, well, two, presid, right, say, thank, stephanopoulo, nhl, speed\", \"+++ even, make, well, time, point, right, look, say, good, think<br>--- car, hockey, two, presid, mani, stephanopoulo, thing, nhl, also, score\", \"+++ time, make, new, look, good, think<br>--- car, hockey, well, two, presid, c8v, right, say, b8f, okz\", \"+++ even, said, time, well, two, right, new, say, look, think<br>--- hockey, presid, turkey, went, stephanopoulo, nhl, also, serdar, score, world\", \"+++ game, said, play, hockey, well, two, point, presid, hit, right<br>--- \", \"+++ make, well, time, two, point, new, also, look, good, run<br>--- hockey, current, presid, right, say, stephanopoulo, nhl, sale, score, need\", \"+++ make, time, also, look, run<br>--- server, client, hockey, well, two, presid, right, say, resourc, thank\", \"+++ make, well, time, two, right, new, say, also, look, good<br>--- hockey, presid, thank, access, opinion, stephanopoulo, nhl, score, world, great\", \"+++ day, even, make, well, time, two, right, new, say, also<br>--- car, hockey, presid, mani, stephanopoulo, thing, nhl, score, number, season\", \"+++ time, also, new, look, run<br>--- hockey, well, two, presid, right, say, thank, stephanopoulo, nhl, sale\", \"+++ day, even, said, make, well, time, two, point, also, new<br>--- hockey, presid, right, mani, stephanopoulo, thing, nhl, score, world, question\", \"+++ even, said, make, well, time, point, right, also, say, think<br>--- hockey, two, presid, mani, stephanopoulo, thing, nhl, score, world, question\", \"+++ make, time, two, presid, right, new, also, year, think, first<br>--- hockey, well, say, develop, access, stephanopoulo, nhl, inform, chip, score\"], [\"+++ could, make, well, time, two, question, also, want, year<br>--- current, right, say, mani, give, sale, world, need, 000, jewish\", \"+++ could, need, make, well, time, question, also, new, look, distribut<br>--- current, two, right, say, thing, sale, sgi, chip, much, softwar\", \"+++ could, need, make, time, also, new, repli, look, distribut, want<br>--- well, current, two, thank, speed, simm, sale, chip, question, nasa\", \"+++ could, need, make, well, gov, time, point, look, repli, sun<br>--- car, current, two, right, say, mani, thing, also, sale, happen\", \"+++ need, make, time, new, look, repli, distribut, want, good, engin<br>--- car, well, current, two, c8v, b8f, okz, also, sale, uchicago\", \"+++ could, need, time, well, two, new, look, want, year, work<br>--- current, turkey, right, say, went, also, serdar, sale, world, number\", \"+++ make, well, time, two, point, new, also, look, good, run<br>--- hockey, current, presid, right, say, stephanopoulo, nhl, sale, score, need\", \"+++ well, imag, two, point, current, wire, repli, want, pitt, run<br>--- \", \"+++ need, make, time, also, look, repli, includ, want, distribut, run<br>--- server, client, well, current, two, resourc, thank, display, sourc, sale\", \"+++ make, well, time, two, question, new, also, repli, look, distribut<br>--- current, right, say, thank, access, opinion, sale, world, need, great\", \"+++ could, make, well, time, two, first, new, also, good, year<br>--- car, current, right, say, mani, thing, sale, need, number, question\", \"+++ need, time, imag, new, also, repli, look, includ, want, interest<br>--- well, current, two, thank, inform, question, softwar, address, list, nasa\", \"+++ could, make, well, scienc, two, point, question, also, new, time<br>--- current, say, mani, thing, sale, world, need, much, work, nasa\", \"+++ could, make, well, time, point, question, also, want, good, system<br>--- current, two, right, say, mani, thing, sale, world, need, work\", \"+++ could, need, make, time, two, also, new, space, distribut, nasa<br>--- well, current, presid, right, develop, access, sale, inform, chip, clipper\"], [\"+++ make, time, also, want, call, way<br>--- server, client, well, two, right, say, mani, resourc, thank, display\", \"+++ need, make, time, bit, also, look, distribut, want, run, problem<br>--- server, client, well, right, say, resourc, thank, display, thing, sourc\", \"+++ repli, want, color, run, thank, set, tri, make, help, also<br>--- server, client, motif, applic, file, monitor, mac, disk, mous, ide\", \"+++ need, make, time, look, repli, distribut, want, problem, tri, way<br>--- server, client, car, well, right, say, mani, resourc, thank, display\", \"+++ need, make, time, look, repli, distribut, want<br>--- server, client, car, c8v, b8f, resourc, thank, okz, display, also\", \"+++ program, need, time, number, work, look, want, name, file, call<br>--- server, client, well, two, turkey, right, say, went, resourc, thank\", \"+++ make, time, also, look, run<br>--- server, client, hockey, well, two, presid, right, say, resourc, thank\", \"+++ need, make, time, also, look, repli, includ, want, distribut, run<br>--- server, client, well, current, two, resourc, thank, display, sourc, sale\", \"+++ server, client, motif, applic, repli, want, color, run, thank, resourc<br>--- \", \"+++ make, time, also, look, repli, distribut, want, run, thank, problem<br>--- server, client, well, two, right, say, resourc, display, access, opinion\", \"+++ make, time, number, also, problem, file, system, way<br>--- server, client, car, well, two, right, say, mani, resourc, thank\", \"+++ repli, want, run, thank, data, program, help, also, avail, version<br>--- server, client, imag, price, motif, applic, mac, resourc, netcom, color\", \"+++ make, time, also, want, may, way<br>--- server, client, well, two, say, mani, resourc, thank, display, thing\", \"+++ make, time, also, want, system, problem, may, tri, way<br>--- server, client, well, right, say, mani, resourc, thank, display, thing\", \"+++ way, program, need, make, time, also, distribut, may, data, work<br>--- server, client, two, presid, right, resourc, thank, develop, display, access\"], [\"+++ world, peopl, make, well, time, two, question, right, also, say<br>--- mani, thank, give, access, opinion, great, 000, jewish, dod, much\", \"+++ well, right, say, want, run, state, tri, make, also, new<br>--- realli, two, thank, access, opinion, thing, sgi, chip, world, need\", \"+++ make, time, also, new, repli, tri, look, want, distribut, run<br>--- well, two, right, say, access, opinion, speed, simm, chip, world\", \"+++ well, right, say, repli, want, state, tri, make, problem, year<br>--- car, realli, two, mani, run, thank, got, access, put, opinion\", \"+++ make, time, new, look, repli, usa, want, distribut, good, think<br>--- car, well, two, c8v, right, say, b8f, thank, okz, access\", \"+++ world, peopl, time, well, two, right, new, say, look, want<br>--- turkey, went, thank, access, opinion, also, serdar, need, number, great\", \"+++ make, well, time, two, right, new, say, also, look, good<br>--- hockey, presid, thank, access, opinion, stephanopoulo, nhl, score, world, great\", \"+++ make, well, time, two, question, new, also, repli, look, distribut<br>--- current, right, say, thank, access, opinion, sale, world, need, great\", \"+++ make, time, also, look, repli, distribut, want, run, thank, problem<br>--- server, client, well, two, right, say, resourc, display, access, opinion\", \"+++ well, two, right, say, repli, want, run, thank, net, state<br>--- \", \"+++ peopl, make, well, time, two, right, new, say, also, good<br>--- car, mani, thank, access, opinion, thing, world, number, great, question\", \"+++ time, new, also, repli, look, distribut, want, run, thank, pleas<br>--- well, two, right, say, access, opinion, sale, inform, world, need\", \"+++ world, peopl, make, well, time, two, question, also, new, say<br>--- right, mani, thank, access, opinion, thing, great, dod, much, bmw\", \"+++ world, peopl, make, well, time, question, right, also, say, human<br>--- realli, two, mani, run, object, thank, access, opinion, thing, christ\", \"+++ access, peopl, make, time, two, right, new, also, propos, distribut<br>--- well, presid, say, thank, develop, opinion, inform, chip, world, clipper\"], [\"+++ even, way, could, peopl, make, well, time, two, right, also<br>--- car, arab, weapon, health, give, crime, kill, thing, new, control\", \"+++ well, law, right, say, state, even, make, thing, also, new<br>--- car, realli, two, weapon, mani, run, health, crime, sgi, control\", \"+++ could, make, time, new, also, problem, scsi, control, system<br>--- car, well, two, right, say, mani, thank, thing, speed, simm\", \"+++ car, well, right, say, mani, state, even, make, thing, problem<br>--- realli, two, weapon, health, got, put, crime, gov, new, also\", \"+++ car, time, make, new, good, think<br>--- well, two, c8v, right, say, mani, b8f, okz, thing, also\", \"+++ even, year, could, peopl, time, well, number, two, right, new<br>--- car, turkey, went, mani, thing, also, serdar, world, need, much\", \"+++ day, even, make, well, time, two, right, new, say, also<br>--- car, hockey, presid, mani, stephanopoulo, nhl, thing, score, number, season\", \"+++ could, make, well, time, two, new, also, good, system, year<br>--- car, current, right, say, mani, thing, sale, need, number, question\", \"+++ make, time, number, also, problem, file, system, way<br>--- server, client, car, well, two, right, say, mani, resourc, thank\", \"+++ peopl, make, well, time, two, right, new, say, also, good<br>--- car, weapon, mani, run, thank, health, access, crime, opinion, thing\", \"+++ car, well, two, first, law, right, file, say, weapon, mani<br>--- \", \"+++ time, also, new, file, system<br>--- car, well, two, right, say, mani, thank, thing, sale, inform\", \"+++ well, two, law, say, mani, even, make, thing, also, new<br>--- said, car, point, first, right, weapon, want, believ, argument, health\", \"+++ well, right, say, mani, even, make, thing, also, problem, see<br>--- car, realli, two, weapon, object, health, crime, christ, new, control\", \"+++ could, peopl, make, time, two, public, law, right, new, also<br>--- car, well, presid, say, mani, develop, access, thing, inform, chip\"], [\"+++ want, also, time<br>--- well, two, right, say, mani, thank, give, sale, inform, world\", \"+++ need, time, drive, also, new, look, distribut, want, run, system<br>--- well, right, say, thank, thing, sale, sgi, inform, chip, question\", \"+++ repli, want, mac, run, thank, help, also, new, version, window<br>--- imag, price, monitor, netcom, disk, mous, ide, color, instal, set\", \"+++ need, time, look, repli, distribut, want, anyon<br>--- car, well, right, say, mani, thank, thing, also, sale, inform\", \"+++ need, time, new, look, repli, distribut, want, anyon<br>--- car, c8v, b8f, thank, okz, also, sale, uchicago, inform, softwar\", \"+++ program, need, time, new, look, want, file, work<br>--- well, two, turkey, right, say, went, thank, also, serdar, sale\", \"+++ time, also, new, look, run<br>--- hockey, well, two, presid, right, say, thank, stephanopoulo, nhl, sale\", \"+++ need, time, imag, new, also, repli, look, includ, want, interest<br>--- well, current, two, thank, inform, question, softwar, address, list, nasa\", \"+++ repli, want, run, thank, data, program, help, also, avail, version<br>--- server, client, imag, motif, price, applic, color, netcom, resourc, mac\", \"+++ time, new, also, repli, look, distribut, want, run, thank, pleas<br>--- well, two, right, say, access, opinion, sale, inform, world, need\", \"+++ time, also, new, file, system<br>--- car, well, two, right, say, mani, thank, thing, sale, inform\", \"+++ imag, price, file, repli, want, mac, run, thank, netcom, data<br>--- \", \"+++ want, new, also, time<br>--- well, two, say, mani, thank, thing, sale, inform, world, need\", \"+++ want, system, also, time<br>--- well, right, say, mani, thank, thing, sale, inform, world, need\", \"+++ program, need, time, also, new, distribut, data, work, system, inform<br>--- two, presid, right, thank, develop, access, sale, chip, clipper, softwar\"], [\"+++ said, well, two, say, mani, want, even, make, also, see<br>--- point, law, right, arab, palestinian, live, govern, believ, argument, state\", \"+++ well, law, say, want, even, make, thing, also, new, see<br>--- said, realli, two, point, right, indiana, mani, run, believ, disk\", \"+++ could, make, time, new, also, want<br>--- well, two, say, mani, thank, thing, speed, simm, chip, world\", \"+++ well, point, say, want, mani, even, make, thing, see, world<br>--- car, realli, two, right, got, put, gov, also, new, sun\", \"+++ time, make, new, want, good, think<br>--- car, well, two, c8v, say, mani, b8f, okz, thing, also\", \"+++ even, world, could, said, time, well, two, new, say, want<br>--- turkey, right, went, mani, thing, also, serdar, need, number, question\", \"+++ day, even, said, make, well, time, two, point, new, also<br>--- hockey, presid, right, mani, stephanopoulo, nhl, thing, score, world, question\", \"+++ could, make, scienc, well, two, point, question, new, also, time<br>--- current, say, mani, thing, sale, world, need, much, work, nasa\", \"+++ make, time, also, want, may, way<br>--- server, client, well, two, say, mani, resourc, thank, display, thing\", \"+++ world, peopl, make, well, time, two, question, new, also, say<br>--- right, mani, thank, access, opinion, thing, great, dod, much, bmw\", \"+++ well, two, law, say, mani, even, make, thing, new, also<br>--- car, said, point, right, weapon, want, believ, argument, health, state\", \"+++ want, also, new, time<br>--- well, two, say, mani, thank, thing, sale, inform, world, need\", \"+++ said, well, two, point, law, say, mani, want, believ, argument<br>--- \", \"+++ said, well, point, say, mani, want, believ, come, even, make<br>--- atheist, realli, two, law, right, must, argument, object, tri, scienc\", \"+++ way, could, make, time, two, law, also, new, peopl, think<br>--- well, presid, right, say, mani, develop, access, thing, inform, chip\"], [\"+++ said, well, right, say, mani, want, even, make, also, see<br>--- atheist, realli, two, point, must, arab, palestinian, live, govern, believ\", \"+++ realli, well, right, say, want, tri, even, make, thing, also<br>--- atheist, said, point, law, must, indiana, mani, run, believ, disk\", \"+++ could, make, time, also, tri, want, problem, system<br>--- well, right, say, mani, thank, thing, speed, simm, chip, world\", \"+++ realli, well, point, right, say, want, mani, tri, even, make<br>--- atheist, car, said, must, repli, believ, object, state, system, got\", \"+++ time, make, want, good, think<br>--- car, well, c8v, right, say, mani, b8f, okz, thing, also\", \"+++ even, world, could, said, time, well, right, say, want, think<br>--- two, turkey, went, mani, thing, also, serdar, need, number, question\", \"+++ even, said, make, well, time, point, right, also, say, think<br>--- hockey, two, presid, mani, stephanopoulo, nhl, thing, score, world, question\", \"+++ could, make, well, time, point, question, also, want, good, system<br>--- current, two, right, say, mani, thing, sale, world, need, work\", \"+++ way, make, time, also, want, system, problem, tri, may<br>--- server, client, well, right, say, mani, resourc, thank, display, thing\", \"+++ way, world, peopl, make, well, time, question, right, also, say<br>--- two, mani, thank, access, opinion, thing, great, dod, bmw, find\", \"+++ well, right, say, mani, even, make, thing, also, problem, see<br>--- atheist, car, said, realli, two, point, law, must, weapon, want\", \"+++ want, system, also, time<br>--- well, right, say, mani, thank, thing, sale, inform, world, need\", \"+++ said, well, point, say, mani, want, believ, come, even, make<br>--- atheist, realli, two, law, right, must, object, argument, tri, scienc\", \"+++ atheist, said, realli, well, point, right, must, say, mani, want<br>--- \", \"+++ could, make, time, also, right, may, peopl, think, system, way<br>--- well, two, presid, say, mani, develop, access, thing, inform, chip\"], [\"+++ could, peopl, make, time, two, right, also, think, govern, year<br>--- well, presid, say, mani, develop, give, access, inform, chip, world\", \"+++ could, need, make, time, key, law, also, right, new, distribut<br>--- well, two, presid, say, develop, access, thing, sgi, inform, clipper\", \"+++ could, need, make, time, comput, new, also, distribut, work, system<br>--- two, presid, right, thank, develop, access, speed, simm, inform, clipper\", \"+++ could, need, make, time, peopl, right, distribut, think, year, state<br>--- car, well, two, presid, say, mani, develop, access, thing, also\", \"+++ need, time, make, new, distribut, think<br>--- car, two, presid, c8v, right, b8f, develop, okz, access, also\", \"+++ program, could, need, time, peopl, two, new, right, year, think<br>--- well, presid, turkey, say, went, develop, access, also, serdar, inform\", \"+++ make, time, two, presid, right, new, also, year, think, first<br>--- hockey, well, say, develop, access, stephanopoulo, nhl, score, inform, chip\", \"+++ could, need, make, time, two, also, new, space, nasa, distribut<br>--- well, current, presid, right, develop, access, sale, inform, chip, clipper\", \"+++ way, program, need, make, time, also, distribut, may, data, work<br>--- server, client, two, presid, right, resourc, thank, develop, display, access\", \"+++ access, peopl, make, time, two, right, new, also, propos, distribut<br>--- well, presid, say, thank, develop, opinion, inform, chip, world, clipper\", \"+++ peopl, could, make, time, two, public, law, right, new, also<br>--- car, well, presid, say, mani, develop, access, thing, inform, chip\", \"+++ program, need, time, also, new, distribut, data, work, system, inform<br>--- two, presid, right, thank, develop, access, sale, chip, clipper, softwar\", \"+++ way, could, make, time, two, law, new, also, peopl, think<br>--- well, presid, right, say, mani, develop, access, thing, inform, chip\", \"+++ could, make, time, also, right, may, peopl, think, system, way<br>--- well, two, presid, say, mani, develop, access, thing, inform, chip\", \"+++ encrypt, commun, two, presid, law, right, govern, privaci, data, develop<br>--- \"]], \"z\": [[0.0, 0.7595438359657607, 0.9262841492358087, 0.7884700368007593, 1.0, 0.7323566346435393, 0.8170752433154621, 0.8413158254151436, 0.8740155079503418, 0.7695480873771401, 0.709199118658843, 0.8879803722003395, 0.7314161717683719, 0.7237986193866011, 0.8038717033978985], [0.7595438359657607, 0.0, 0.7318068179280713, 0.7160213176898725, 0.931461318117774, 0.7726170600952607, 0.7862904411360011, 0.7437804773160451, 0.7261304682479388, 0.7535871571515667, 0.6712180651685388, 0.7162615966682004, 0.6791077745495656, 0.6720945460948236, 0.6964932824724144], [0.9262841492358087, 0.7318068179280713, 0.0, 0.8574415951298031, 0.9854159083689508, 0.9069175150192125, 0.9046739989611283, 0.8043455907707084, 0.7465496685414171, 0.8585050034234649, 0.844819756902363, 0.6933520111362702, 0.8380803175475514, 0.8430082043112994, 0.8796770147813993], [0.7884700368007593, 0.7160213176898725, 0.8574415951298031, 0.0, 0.9355864990614852, 0.8123575778010284, 0.7531174879151491, 0.7726893543131144, 0.841589742333695, 0.7803722520664951, 0.7108866861290872, 0.8319749623897799, 0.7790096616692483, 0.7570699362092709, 0.8428560212776922], [1.0, 0.931461318117774, 0.9854159083689508, 0.9355864990614852, 0.0, 0.9943633453585028, 0.96633290846124, 0.9427710170298542, 0.9842359174618569, 0.9565789495122544, 0.9252482154378123, 0.9546269085033189, 0.9831865525817131, 0.976673603156099, 0.9862908354943184], [0.7323566346435393, 0.7726170600952607, 0.9069175150192125, 0.8123575778010284, 0.9943633453585028, 0.0, 0.8369554935234337, 0.8334980316244139, 0.81754589609866, 0.8444443421224488, 0.7641296194848691, 0.8514311288067665, 0.7710627082125688, 0.7681500144434829, 0.8247767768912454], [0.8170752433154621, 0.7862904411360011, 0.9046739989611283, 0.7531174879151491, 0.96633290846124, 0.8369554935234337, 0.0, 0.8285319686301731, 0.8739669989287112, 0.8128104170459997, 0.812028432574059, 0.8763913774589871, 0.8364217703073451, 0.8332002259898788, 0.8746609598118593], [0.8413158254151436, 0.7437804773160451, 0.8043455907707084, 0.7726893543131144, 0.9427710170298542, 0.8334980316244139, 0.8285319686301731, 0.0, 0.7698580319588464, 0.7980862901604131, 0.7527906457466673, 0.724541349001037, 0.8089451356075532, 0.8178669870572579, 0.760409513739808], [0.8740155079503418, 0.7261304682479388, 0.7465496685414171, 0.841589742333695, 0.9842359174618569, 0.81754589609866, 0.8739669989287112, 0.7698580319588464, 0.0, 0.8306979226984069, 0.8043458026246182, 0.6430984098928708, 0.8108465393365341, 0.8313197770928223, 0.7982346696285947], [0.7695480873771401, 0.7535871571515667, 0.8585050034234649, 0.7803722520664951, 0.9565789495122544, 0.8444443421224488, 0.8128104170459997, 0.7980862901604131, 0.8306979226984069, 0.0, 0.7686319141956662, 0.8025391599365734, 0.7810887188379143, 0.7900886236487616, 0.8371214921530137], [0.709199118658843, 0.6712180651685388, 0.844819756902363, 0.7108866861290872, 0.9252482154378123, 0.7641296194848691, 0.812028432574059, 0.7527906457466673, 0.8043458026246182, 0.7686319141956662, 0.0, 0.7921819700961124, 0.7034290766439234, 0.6881510253531813, 0.7233383725539672], [0.8879803722003395, 0.7162615966682004, 0.6933520111362702, 0.8319749623897799, 0.9546269085033189, 0.8514311288067665, 0.8763913774589871, 0.724541349001037, 0.6430984098928708, 0.8025391599365734, 0.7921819700961124, 0.0, 0.8235993983490295, 0.8508846565675093, 0.7915239430267434], [0.7314161717683719, 0.6791077745495656, 0.8380803175475514, 0.7790096616692483, 0.9831865525817131, 0.7710627082125688, 0.8364217703073451, 0.8089451356075532, 0.8108465393365341, 0.7810887188379143, 0.7034290766439234, 0.8235993983490295, 0.0, 0.5398098970501584, 0.7811421666690115], [0.7237986193866011, 0.6720945460948236, 0.8430082043112994, 0.7570699362092709, 0.976673603156099, 0.7681500144434829, 0.8332002259898788, 0.8178669870572579, 0.8313197770928223, 0.7900886236487616, 0.6881510253531813, 0.8508846565675093, 0.5398098970501584, 0.0, 0.7854428745787172], [0.8038717033978985, 0.6964932824724144, 0.8796770147813993, 0.8428560212776922, 0.9862908354943184, 0.8247767768912454, 0.8746609598118593, 0.760409513739808, 0.7982346696285947, 0.8371214921530137, 0.7233383725539672, 0.7915239430267434, 0.7811421666690115, 0.7854428745787172, 0.0]], \"type\": \"heatmap\", \"uid\": \"f0b1a7a2-2641-4e85-85b1-b6a96dc2f0a7\"}], {\"height\": 950, \"title\": \"Topic difference (one model)[hellinger distance]\", \"width\": 950, \"xaxis\": {\"title\": \"topic\"}, \"yaxis\": {\"title\": \"topic\"}}, {\"showLink\": true, \"linkText\": \"Export to plot.ly\", \"plotlyServerURL\": \"https://plot.ly\"})});</script>" ], "text/vnd.plotly.v1+html": [ "<div id=\"54df0fc2-5b60-44d7-b31f-f7ad1b8386cc\" style=\"height: 950px; width: 950px;\" class=\"plotly-graph-div\"></div><script type=\"text/javascript\">require([\"plotly\"], function(Plotly) { window.PLOTLYENV=window.PLOTLYENV || {};window.PLOTLYENV.BASE_URL=\"https://plot.ly\";Plotly.newPlot(\"54df0fc2-5b60-44d7-b31f-f7ad1b8386cc\", [{\"colorscale\": \"RdBu\", \"text\": [[\"+++ said, well, two, american, right, arab, say, palestinian, mani, want<br>--- \", \"+++ even, could, make, well, time, question, right, also, say, want<br>--- two, mani, give, thing, sgi, chip, world, need, 000, jewish\", \"+++ could, time, make, also, want<br>--- well, two, right, say, mani, thank, give, speed, simm, chip\", \"+++ even, world, could, peopl, make, well, time, right, say, want<br>--- car, two, give, thing, also, happen, need, 000, jewish, question\", \"+++ want, time, think, make<br>--- car, well, two, c8v, right, say, mani, b8f, okz, give\", \"+++ even, world, could, said, kill, well, time, two, peopl, right<br>--- turkey, went, mani, give, also, serdar, need, number, 000, jewish\", \"+++ even, said, make, well, time, two, right, also, say, think<br>--- hockey, presid, mani, give, stephanopoulo, nhl, score, world, 000, jewish\", \"+++ could, make, well, time, two, question, also, want, year<br>--- current, right, say, mani, give, sale, world, need, 000, jewish\", \"+++ make, time, also, want, call, way<br>--- server, client, well, two, right, say, mani, resourc, thank, display\", \"+++ way, world, peopl, make, well, time, two, question, right, also<br>--- mani, thank, access, give, opinion, great, 000, jewish, dod, much\", \"+++ even, way, peopl, could, make, well, time, two, right, also<br>--- car, give, thing, world, number, 000, jewish, question, amend, polici\", \"+++ want, also, time<br>--- well, two, right, say, mani, thank, give, sale, inform, world\", \"+++ said, well, two, say, mani, want, even, make, also, see<br>--- point, law, right, arab, american, palestinian, live, believ, argument, govern\", \"+++ said, well, right, say, mani, want, even, make, also, see<br>--- atheist, realli, two, point, must, arab, palestinian, live, believ, object\", \"+++ could, peopl, make, time, two, right, also, think, govern, year<br>--- well, presid, say, mani, develop, access, give, inform, chip, world\"], [\"+++ even, could, make, well, time, question, right, also, say, want<br>--- two, mani, give, thing, sgi, chip, world, need, 000, jewish\", \"+++ realli, well, law, right, say, indiana, want, run, disk, state<br>--- \", \"+++ want, run, disk, tri, make, also, new, problem, version, chip<br>--- realli, well, right, say, mac, thank, ide, thing, speed, simm\", \"+++ realli, well, right, say, want, state, tri, even, make, thing<br>--- car, point, law, repli, indiana, mani, run, disk, system, got\", \"+++ need, make, time, new, look, distribut, want, good, think, anyon<br>--- car, well, c8v, right, say, b8f, okz, thing, also, sgi\", \"+++ even, could, need, time, well, right, new, say, look, want<br>--- two, turkey, went, thing, also, serdar, sgi, chip, world, number\", \"+++ even, make, well, time, right, new, say, also, look, think<br>--- hockey, two, presid, stephanopoulo, nhl, thing, sgi, score, chip, need\", \"+++ could, need, make, well, time, question, new, also, look, distribut<br>--- current, two, right, say, thing, sale, sgi, chip, much, softwar\", \"+++ need, make, time, bit, also, look, distribut, want, run, problem<br>--- server, client, well, right, say, resourc, thank, display, thing, sourc\", \"+++ well, right, say, want, run, state, tri, make, new, also<br>--- realli, two, thank, access, opinion, thing, sgi, chip, world, need\", \"+++ well, law, right, say, state, even, make, thing, new, also<br>--- car, realli, two, file, weapon, mani, run, health, crime, sgi\", \"+++ need, time, drive, new, also, look, distribut, want, run, system<br>--- well, right, say, thank, thing, sale, sgi, inform, chip, question\", \"+++ well, law, say, want, even, make, thing, also, new, see<br>--- realli, two, right, mani, run, church, sgi, claim, chip, world\", \"+++ realli, well, right, say, want, tri, even, make, thing, also<br>--- atheist, said, point, law, must, indiana, mani, run, believ, object\", \"+++ could, need, make, time, key, law, new, right, also, distribut<br>--- well, two, presid, say, develop, access, thing, sgi, inform, clipper\"], [\"+++ could, time, make, also, want<br>--- well, two, right, say, mani, thank, give, speed, simm, chip\", \"+++ want, run, disk, tri, system, make, also, new, problem, version<br>--- realli, well, law, right, say, repli, indiana, monitor, mac, color\", \"+++ repli, monitor, want, mac, run, thank, disk, mous, ide, color<br>--- \", \"+++ could, need, make, time, anyon, look, repli, distribut, want, problem<br>--- car, well, right, say, mani, thank, thing, also, speed, simm\", \"+++ need, make, time, new, look, repli, distribut, want, anyon<br>--- car, c8v, b8f, thank, okz, also, speed, simm, uchicago, chip\", \"+++ could, need, time, new, look, want, work<br>--- well, two, turkey, right, say, went, thank, also, speed, serdar\", \"+++ make, time, also, new, look, run<br>--- hockey, well, two, presid, right, say, thank, stephanopoulo, nhl, speed\", \"+++ could, need, make, time, new, also, repli, look, distribut, want<br>--- well, current, two, thank, speed, simm, sale, chip, question, nasa\", \"+++ repli, want, color, run, thank, set, tri, make, help, also<br>--- server, client, motif, applic, monitor, mous, resourc, mac, data, disk\", \"+++ make, time, new, also, repli, look, distribut, want, run, thank<br>--- well, two, right, say, access, opinion, speed, simm, chip, world\", \"+++ could, make, time, also, new, problem, scsi, control, system<br>--- car, well, two, right, say, mani, thank, thing, speed, simm\", \"+++ repli, want, mac, run, thank, system, help, new, also, version<br>--- imag, price, monitor, color, mous, netcom, disk, data, ide, instal\", \"+++ could, make, time, new, also, want<br>--- well, two, say, mani, thank, thing, speed, simm, chip, world\", \"+++ could, make, time, also, want, system, problem, tri<br>--- well, right, say, mani, thank, thing, speed, simm, chip, world\", \"+++ could, need, make, time, comput, also, new, distribut, work, system<br>--- two, presid, right, thank, develop, access, speed, simm, inform, clipper\"], [\"+++ even, world, could, peopl, make, well, time, right, say, mani<br>--- car, two, give, thing, also, happen, need, 000, jewish, question\", \"+++ realli, well, right, say, want, state, tri, even, make, thing<br>--- car, point, law, first, repli, indiana, mani, run, disk, got\", \"+++ could, need, make, time, anyon, look, repli, distribut, want, problem<br>--- car, well, right, say, mani, thank, thing, also, speed, simm\", \"+++ car, realli, well, point, first, right, say, repli, want, mani<br>--- \", \"+++ need, car, make, time, look, repli, distribut, want, good, think<br>--- well, c8v, right, say, mani, b8f, okz, thing, uchicago, happen\", \"+++ even, world, could, need, time, well, peopl, right, look, say<br>--- car, two, turkey, went, mani, thing, serdar, happen, number, dod\", \"+++ even, make, well, time, point, right, look, say, good, think<br>--- car, hockey, two, presid, mani, stephanopoulo, nhl, also, thing, score\", \"+++ could, need, gov, well, make, time, point, look, repli, sun<br>--- car, current, two, right, say, mani, thing, also, sale, happen\", \"+++ need, make, time, look, repli, distribut, want, problem, tri, way<br>--- server, client, car, well, right, say, mani, resourc, thank, display\", \"+++ well, right, say, repli, want, state, tri, make, problem, year<br>--- car, realli, two, point, first, mani, run, thank, net, bnr\", \"+++ car, well, right, say, mani, state, even, make, thing, problem<br>--- realli, two, point, law, repli, weapon, want, health, system, case\", \"+++ need, time, look, repli, distribut, want, anyon<br>--- car, well, right, say, mani, thank, thing, also, sale, inform\", \"+++ well, point, say, mani, want, even, make, thing, see, world<br>--- said, car, realli, two, first, law, right, repli, believ, argument\", \"+++ realli, well, point, right, say, mani, want, tri, even, make<br>--- atheist, said, car, first, must, repli, believ, object, state, got\", \"+++ could, need, make, time, peopl, right, distribut, think, year, state<br>--- car, well, two, presid, say, mani, develop, access, thing, also\"], [\"+++ want, time, think, make<br>--- car, well, two, right, c8v, say, mani, b8f, okz, give\", \"+++ need, make, time, new, look, distribut, want, good, think, anyon<br>--- car, well, right, c8v, say, b8f, okz, thing, also, sgi\", \"+++ need, make, time, new, look, repli, distribut, want, anyon<br>--- car, c8v, b8f, thank, okz, also, speed, simm, uchicago, chip\", \"+++ need, car, make, time, look, repli, distribut, want, good, think<br>--- well, right, c8v, say, mani, b8f, okz, thing, uchicago, happen\", \"+++ 2tm, 1eq, car, c8v, 2di, repli, want, b8f, 1d9, 7ey<br>--- \", \"+++ need, time, new, look, want, think<br>--- car, well, two, turkey, right, c8v, say, went, b8f, okz\", \"+++ time, make, new, look, good, think<br>--- car, hockey, well, two, presid, right, c8v, say, b8f, okz\", \"+++ need, make, time, new, look, repli, distribut, want, good, engin<br>--- car, well, current, two, c8v, b8f, okz, also, sale, uchicago\", \"+++ need, make, time, look, repli, distribut, want<br>--- server, client, car, c8v, b8f, resourc, thank, okz, display, also\", \"+++ make, time, new, look, repli, usa, want, distribut, good, think<br>--- car, well, two, right, c8v, say, b8f, thank, okz, access\", \"+++ car, time, make, new, good, think<br>--- well, two, right, c8v, say, mani, b8f, okz, thing, also\", \"+++ need, time, new, look, repli, distribut, want, anyon<br>--- car, c8v, b8f, thank, okz, also, sale, uchicago, inform, softwar\", \"+++ time, make, new, want, good, think<br>--- car, well, two, c8v, say, mani, b8f, okz, thing, also\", \"+++ time, make, want, good, think<br>--- car, well, right, c8v, say, mani, b8f, okz, thing, also\", \"+++ need, time, make, new, distribut, think<br>--- car, two, presid, right, c8v, b8f, develop, okz, access, also\"], [\"+++ even, world, could, said, kill, well, time, two, peopl, right<br>--- turkey, went, mani, give, also, serdar, need, number, 000, jewish\", \"+++ even, could, need, time, well, right, new, say, look, want<br>--- two, turkey, went, thing, also, serdar, sgi, chip, world, number\", \"+++ could, need, time, new, look, want, work<br>--- well, two, turkey, right, say, went, thank, also, speed, serdar\", \"+++ even, world, could, need, time, well, peopl, right, look, say<br>--- car, two, turkey, went, mani, thing, serdar, happen, number, dod\", \"+++ need, time, new, look, want, think<br>--- car, well, two, turkey, c8v, right, say, went, b8f, okz\", \"+++ said, armenia, well, two, turkey, right, say, went, want, live<br>--- \", \"+++ even, said, time, well, two, right, new, say, look, think<br>--- hockey, presid, turkey, went, stephanopoulo, nhl, also, serdar, score, world\", \"+++ could, need, time, well, two, new, look, want, year, work<br>--- current, turkey, right, say, went, also, serdar, sale, world, number\", \"+++ program, need, time, number, work, look, want, name, file, call<br>--- server, client, well, two, turkey, right, say, went, resourc, thank\", \"+++ world, peopl, time, well, two, right, new, say, look, want<br>--- turkey, went, thank, access, opinion, also, serdar, need, great, number\", \"+++ even, peopl, could, time, well, number, two, right, new, say<br>--- car, turkey, went, mani, thing, also, serdar, world, need, much\", \"+++ program, need, time, new, look, want, file, work<br>--- well, two, turkey, right, say, went, thank, also, serdar, sale\", \"+++ even, world, could, said, time, well, two, new, say, want<br>--- turkey, right, went, mani, thing, also, serdar, need, number, question\", \"+++ even, world, could, said, time, well, right, say, want, think<br>--- two, turkey, went, mani, thing, also, serdar, need, number, question\", \"+++ program, could, need, time, peopl, two, new, right, year, think<br>--- well, presid, turkey, say, went, develop, access, also, serdar, inform\"], [\"+++ even, said, make, well, time, two, right, also, say, think<br>--- hockey, presid, mani, give, stephanopoulo, nhl, score, world, 000, jewish\", \"+++ even, make, well, time, right, also, say, new, look, think<br>--- hockey, two, presid, stephanopoulo, thing, nhl, sgi, score, chip, need\", \"+++ make, time, also, look, new, run<br>--- hockey, well, two, presid, right, say, thank, stephanopoulo, nhl, speed\", \"+++ even, make, well, time, point, right, look, say, good, think<br>--- car, hockey, two, presid, mani, stephanopoulo, thing, nhl, also, score\", \"+++ time, make, new, look, good, think<br>--- car, hockey, well, two, presid, c8v, right, say, b8f, okz\", \"+++ even, said, time, well, two, right, new, say, look, think<br>--- hockey, presid, turkey, went, stephanopoulo, nhl, also, serdar, score, world\", \"+++ game, said, play, hockey, well, two, point, presid, hit, right<br>--- \", \"+++ make, well, time, two, point, new, also, look, good, run<br>--- hockey, current, presid, right, say, stephanopoulo, nhl, sale, score, need\", \"+++ make, time, also, look, run<br>--- server, client, hockey, well, two, presid, right, say, resourc, thank\", \"+++ make, well, time, two, right, new, say, also, look, good<br>--- hockey, presid, thank, access, opinion, stephanopoulo, nhl, score, world, great\", \"+++ day, even, make, well, time, two, right, new, say, also<br>--- car, hockey, presid, mani, stephanopoulo, thing, nhl, score, number, season\", \"+++ time, also, new, look, run<br>--- hockey, well, two, presid, right, say, thank, stephanopoulo, nhl, sale\", \"+++ day, even, said, make, well, time, two, point, also, new<br>--- hockey, presid, right, mani, stephanopoulo, thing, nhl, score, world, question\", \"+++ even, said, make, well, time, point, right, also, say, think<br>--- hockey, two, presid, mani, stephanopoulo, thing, nhl, score, world, question\", \"+++ make, time, two, presid, right, new, also, year, think, first<br>--- hockey, well, say, develop, access, stephanopoulo, nhl, inform, chip, score\"], [\"+++ could, make, well, time, two, question, also, want, year<br>--- current, right, say, mani, give, sale, world, need, 000, jewish\", \"+++ could, need, make, well, time, question, also, new, look, distribut<br>--- current, two, right, say, thing, sale, sgi, chip, much, softwar\", \"+++ could, need, make, time, also, new, repli, look, distribut, want<br>--- well, current, two, thank, speed, simm, sale, chip, question, nasa\", \"+++ could, need, make, well, gov, time, point, look, repli, sun<br>--- car, current, two, right, say, mani, thing, also, sale, happen\", \"+++ need, make, time, new, look, repli, distribut, want, good, engin<br>--- car, well, current, two, c8v, b8f, okz, also, sale, uchicago\", \"+++ could, need, time, well, two, new, look, want, year, work<br>--- current, turkey, right, say, went, also, serdar, sale, world, number\", \"+++ make, well, time, two, point, new, also, look, good, run<br>--- hockey, current, presid, right, say, stephanopoulo, nhl, sale, score, need\", \"+++ well, imag, two, point, current, wire, repli, want, pitt, run<br>--- \", \"+++ need, make, time, also, look, repli, includ, want, distribut, run<br>--- server, client, well, current, two, resourc, thank, display, sourc, sale\", \"+++ make, well, time, two, question, new, also, repli, look, distribut<br>--- current, right, say, thank, access, opinion, sale, world, need, great\", \"+++ could, make, well, time, two, first, new, also, good, year<br>--- car, current, right, say, mani, thing, sale, need, number, question\", \"+++ need, time, imag, new, also, repli, look, includ, want, interest<br>--- well, current, two, thank, inform, question, softwar, address, list, nasa\", \"+++ could, make, well, scienc, two, point, question, also, new, time<br>--- current, say, mani, thing, sale, world, need, much, work, nasa\", \"+++ could, make, well, time, point, question, also, want, good, system<br>--- current, two, right, say, mani, thing, sale, world, need, work\", \"+++ could, need, make, time, two, also, new, space, distribut, nasa<br>--- well, current, presid, right, develop, access, sale, inform, chip, clipper\"], [\"+++ make, time, also, want, call, way<br>--- server, client, well, two, right, say, mani, resourc, thank, display\", \"+++ need, make, time, bit, also, look, distribut, want, run, problem<br>--- server, client, well, right, say, resourc, thank, display, thing, sourc\", \"+++ repli, want, color, run, thank, set, tri, make, help, also<br>--- server, client, motif, applic, file, monitor, mac, disk, mous, ide\", \"+++ need, make, time, look, repli, distribut, want, problem, tri, way<br>--- server, client, car, well, right, say, mani, resourc, thank, display\", \"+++ need, make, time, look, repli, distribut, want<br>--- server, client, car, c8v, b8f, resourc, thank, okz, display, also\", \"+++ program, need, time, number, work, look, want, name, file, call<br>--- server, client, well, two, turkey, right, say, went, resourc, thank\", \"+++ make, time, also, look, run<br>--- server, client, hockey, well, two, presid, right, say, resourc, thank\", \"+++ need, make, time, also, look, repli, includ, want, distribut, run<br>--- server, client, well, current, two, resourc, thank, display, sourc, sale\", \"+++ server, client, motif, applic, repli, want, color, run, thank, resourc<br>--- \", \"+++ make, time, also, look, repli, distribut, want, run, thank, problem<br>--- server, client, well, two, right, say, resourc, display, access, opinion\", \"+++ make, time, number, also, problem, file, system, way<br>--- server, client, car, well, two, right, say, mani, resourc, thank\", \"+++ repli, want, run, thank, data, program, help, also, avail, version<br>--- server, client, imag, price, motif, applic, mac, resourc, netcom, color\", \"+++ make, time, also, want, may, way<br>--- server, client, well, two, say, mani, resourc, thank, display, thing\", \"+++ make, time, also, want, system, problem, may, tri, way<br>--- server, client, well, right, say, mani, resourc, thank, display, thing\", \"+++ way, program, need, make, time, also, distribut, may, data, work<br>--- server, client, two, presid, right, resourc, thank, develop, display, access\"], [\"+++ world, peopl, make, well, time, two, question, right, also, say<br>--- mani, thank, give, access, opinion, great, 000, jewish, dod, much\", \"+++ well, right, say, want, run, state, tri, make, also, new<br>--- realli, two, thank, access, opinion, thing, sgi, chip, world, need\", \"+++ make, time, also, new, repli, tri, look, want, distribut, run<br>--- well, two, right, say, access, opinion, speed, simm, chip, world\", \"+++ well, right, say, repli, want, state, tri, make, problem, year<br>--- car, realli, two, mani, run, thank, got, access, put, opinion\", \"+++ make, time, new, look, repli, usa, want, distribut, good, think<br>--- car, well, two, c8v, right, say, b8f, thank, okz, access\", \"+++ world, peopl, time, well, two, right, new, say, look, want<br>--- turkey, went, thank, access, opinion, also, serdar, need, number, great\", \"+++ make, well, time, two, right, new, say, also, look, good<br>--- hockey, presid, thank, access, opinion, stephanopoulo, nhl, score, world, great\", \"+++ make, well, time, two, question, new, also, repli, look, distribut<br>--- current, right, say, thank, access, opinion, sale, world, need, great\", \"+++ make, time, also, look, repli, distribut, want, run, thank, problem<br>--- server, client, well, two, right, say, resourc, display, access, opinion\", \"+++ well, two, right, say, repli, want, run, thank, net, state<br>--- \", \"+++ peopl, make, well, time, two, right, new, say, also, good<br>--- car, mani, thank, access, opinion, thing, world, number, great, question\", \"+++ time, new, also, repli, look, distribut, want, run, thank, pleas<br>--- well, two, right, say, access, opinion, sale, inform, world, need\", \"+++ world, peopl, make, well, time, two, question, also, new, say<br>--- right, mani, thank, access, opinion, thing, great, dod, much, bmw\", \"+++ world, peopl, make, well, time, question, right, also, say, human<br>--- realli, two, mani, run, object, thank, access, opinion, thing, christ\", \"+++ access, peopl, make, time, two, right, new, also, propos, distribut<br>--- well, presid, say, thank, develop, opinion, inform, chip, world, clipper\"], [\"+++ even, way, could, peopl, make, well, time, two, right, also<br>--- car, arab, weapon, health, give, crime, kill, thing, new, control\", \"+++ well, law, right, say, state, even, make, thing, also, new<br>--- car, realli, two, weapon, mani, run, health, crime, sgi, control\", \"+++ could, make, time, new, also, problem, scsi, control, system<br>--- car, well, two, right, say, mani, thank, thing, speed, simm\", \"+++ car, well, right, say, mani, state, even, make, thing, problem<br>--- realli, two, weapon, health, got, put, crime, gov, new, also\", \"+++ car, time, make, new, good, think<br>--- well, two, c8v, right, say, mani, b8f, okz, thing, also\", \"+++ even, year, could, peopl, time, well, number, two, right, new<br>--- car, turkey, went, mani, thing, also, serdar, world, need, much\", \"+++ day, even, make, well, time, two, right, new, say, also<br>--- car, hockey, presid, mani, stephanopoulo, nhl, thing, score, number, season\", \"+++ could, make, well, time, two, new, also, good, system, year<br>--- car, current, right, say, mani, thing, sale, need, number, question\", \"+++ make, time, number, also, problem, file, system, way<br>--- server, client, car, well, two, right, say, mani, resourc, thank\", \"+++ peopl, make, well, time, two, right, new, say, also, good<br>--- car, weapon, mani, run, thank, health, access, crime, opinion, thing\", \"+++ car, well, two, first, law, right, file, say, weapon, mani<br>--- \", \"+++ time, also, new, file, system<br>--- car, well, two, right, say, mani, thank, thing, sale, inform\", \"+++ well, two, law, say, mani, even, make, thing, also, new<br>--- said, car, point, first, right, weapon, want, believ, argument, health\", \"+++ well, right, say, mani, even, make, thing, also, problem, see<br>--- car, realli, two, weapon, object, health, crime, christ, new, control\", \"+++ could, peopl, make, time, two, public, law, right, new, also<br>--- car, well, presid, say, mani, develop, access, thing, inform, chip\"], [\"+++ want, also, time<br>--- well, two, right, say, mani, thank, give, sale, inform, world\", \"+++ need, time, drive, also, new, look, distribut, want, run, system<br>--- well, right, say, thank, thing, sale, sgi, inform, chip, question\", \"+++ repli, want, mac, run, thank, help, also, new, version, window<br>--- imag, price, monitor, netcom, disk, mous, ide, color, instal, set\", \"+++ need, time, look, repli, distribut, want, anyon<br>--- car, well, right, say, mani, thank, thing, also, sale, inform\", \"+++ need, time, new, look, repli, distribut, want, anyon<br>--- car, c8v, b8f, thank, okz, also, sale, uchicago, inform, softwar\", \"+++ program, need, time, new, look, want, file, work<br>--- well, two, turkey, right, say, went, thank, also, serdar, sale\", \"+++ time, also, new, look, run<br>--- hockey, well, two, presid, right, say, thank, stephanopoulo, nhl, sale\", \"+++ need, time, imag, new, also, repli, look, includ, want, interest<br>--- well, current, two, thank, inform, question, softwar, address, list, nasa\", \"+++ repli, want, run, thank, data, program, help, also, avail, version<br>--- server, client, imag, motif, price, applic, color, netcom, resourc, mac\", \"+++ time, new, also, repli, look, distribut, want, run, thank, pleas<br>--- well, two, right, say, access, opinion, sale, inform, world, need\", \"+++ time, also, new, file, system<br>--- car, well, two, right, say, mani, thank, thing, sale, inform\", \"+++ imag, price, file, repli, want, mac, run, thank, netcom, data<br>--- \", \"+++ want, new, also, time<br>--- well, two, say, mani, thank, thing, sale, inform, world, need\", \"+++ want, system, also, time<br>--- well, right, say, mani, thank, thing, sale, inform, world, need\", \"+++ program, need, time, also, new, distribut, data, work, system, inform<br>--- two, presid, right, thank, develop, access, sale, chip, clipper, softwar\"], [\"+++ said, well, two, say, mani, want, even, make, also, see<br>--- point, law, right, arab, palestinian, live, govern, believ, argument, state\", \"+++ well, law, say, want, even, make, thing, also, new, see<br>--- said, realli, two, point, right, indiana, mani, run, believ, disk\", \"+++ could, make, time, new, also, want<br>--- well, two, say, mani, thank, thing, speed, simm, chip, world\", \"+++ well, point, say, want, mani, even, make, thing, see, world<br>--- car, realli, two, right, got, put, gov, also, new, sun\", \"+++ time, make, new, want, good, think<br>--- car, well, two, c8v, say, mani, b8f, okz, thing, also\", \"+++ even, world, could, said, time, well, two, new, say, want<br>--- turkey, right, went, mani, thing, also, serdar, need, number, question\", \"+++ day, even, said, make, well, time, two, point, new, also<br>--- hockey, presid, right, mani, stephanopoulo, nhl, thing, score, world, question\", \"+++ could, make, scienc, well, two, point, question, new, also, time<br>--- current, say, mani, thing, sale, world, need, much, work, nasa\", \"+++ make, time, also, want, may, way<br>--- server, client, well, two, say, mani, resourc, thank, display, thing\", \"+++ world, peopl, make, well, time, two, question, new, also, say<br>--- right, mani, thank, access, opinion, thing, great, dod, much, bmw\", \"+++ well, two, law, say, mani, even, make, thing, new, also<br>--- car, said, point, right, weapon, want, believ, argument, health, state\", \"+++ want, also, new, time<br>--- well, two, say, mani, thank, thing, sale, inform, world, need\", \"+++ said, well, two, point, law, say, mani, want, believ, argument<br>--- \", \"+++ said, well, point, say, mani, want, believ, come, even, make<br>--- atheist, realli, two, law, right, must, argument, object, tri, scienc\", \"+++ way, could, make, time, two, law, also, new, peopl, think<br>--- well, presid, right, say, mani, develop, access, thing, inform, chip\"], [\"+++ said, well, right, say, mani, want, even, make, also, see<br>--- atheist, realli, two, point, must, arab, palestinian, live, govern, believ\", \"+++ realli, well, right, say, want, tri, even, make, thing, also<br>--- atheist, said, point, law, must, indiana, mani, run, believ, disk\", \"+++ could, make, time, also, tri, want, problem, system<br>--- well, right, say, mani, thank, thing, speed, simm, chip, world\", \"+++ realli, well, point, right, say, want, mani, tri, even, make<br>--- atheist, car, said, must, repli, believ, object, state, system, got\", \"+++ time, make, want, good, think<br>--- car, well, c8v, right, say, mani, b8f, okz, thing, also\", \"+++ even, world, could, said, time, well, right, say, want, think<br>--- two, turkey, went, mani, thing, also, serdar, need, number, question\", \"+++ even, said, make, well, time, point, right, also, say, think<br>--- hockey, two, presid, mani, stephanopoulo, nhl, thing, score, world, question\", \"+++ could, make, well, time, point, question, also, want, good, system<br>--- current, two, right, say, mani, thing, sale, world, need, work\", \"+++ way, make, time, also, want, system, problem, tri, may<br>--- server, client, well, right, say, mani, resourc, thank, display, thing\", \"+++ way, world, peopl, make, well, time, question, right, also, say<br>--- two, mani, thank, access, opinion, thing, great, dod, bmw, find\", \"+++ well, right, say, mani, even, make, thing, also, problem, see<br>--- atheist, car, said, realli, two, point, law, must, weapon, want\", \"+++ want, system, also, time<br>--- well, right, say, mani, thank, thing, sale, inform, world, need\", \"+++ said, well, point, say, mani, want, believ, come, even, make<br>--- atheist, realli, two, law, right, must, object, argument, tri, scienc\", \"+++ atheist, said, realli, well, point, right, must, say, mani, want<br>--- \", \"+++ could, make, time, also, right, may, peopl, think, system, way<br>--- well, two, presid, say, mani, develop, access, thing, inform, chip\"], [\"+++ could, peopl, make, time, two, right, also, think, govern, year<br>--- well, presid, say, mani, develop, give, access, inform, chip, world\", \"+++ could, need, make, time, key, law, also, right, new, distribut<br>--- well, two, presid, say, develop, access, thing, sgi, inform, clipper\", \"+++ could, need, make, time, comput, new, also, distribut, work, system<br>--- two, presid, right, thank, develop, access, speed, simm, inform, clipper\", \"+++ could, need, make, time, peopl, right, distribut, think, year, state<br>--- car, well, two, presid, say, mani, develop, access, thing, also\", \"+++ need, time, make, new, distribut, think<br>--- car, two, presid, c8v, right, b8f, develop, okz, access, also\", \"+++ program, could, need, time, peopl, two, new, right, year, think<br>--- well, presid, turkey, say, went, develop, access, also, serdar, inform\", \"+++ make, time, two, presid, right, new, also, year, think, first<br>--- hockey, well, say, develop, access, stephanopoulo, nhl, score, inform, chip\", \"+++ could, need, make, time, two, also, new, space, nasa, distribut<br>--- well, current, presid, right, develop, access, sale, inform, chip, clipper\", \"+++ way, program, need, make, time, also, distribut, may, data, work<br>--- server, client, two, presid, right, resourc, thank, develop, display, access\", \"+++ access, peopl, make, time, two, right, new, also, propos, distribut<br>--- well, presid, say, thank, develop, opinion, inform, chip, world, clipper\", \"+++ peopl, could, make, time, two, public, law, right, new, also<br>--- car, well, presid, say, mani, develop, access, thing, inform, chip\", \"+++ program, need, time, also, new, distribut, data, work, system, inform<br>--- two, presid, right, thank, develop, access, sale, chip, clipper, softwar\", \"+++ way, could, make, time, two, law, new, also, peopl, think<br>--- well, presid, right, say, mani, develop, access, thing, inform, chip\", \"+++ could, make, time, also, right, may, peopl, think, system, way<br>--- well, two, presid, say, mani, develop, access, thing, inform, chip\", \"+++ encrypt, commun, two, presid, law, right, govern, privaci, data, develop<br>--- \"]], \"z\": [[0.0, 0.7595438359657607, 0.9262841492358087, 0.7884700368007593, 1.0, 0.7323566346435393, 0.8170752433154621, 0.8413158254151436, 0.8740155079503418, 0.7695480873771401, 0.709199118658843, 0.8879803722003395, 0.7314161717683719, 0.7237986193866011, 0.8038717033978985], [0.7595438359657607, 0.0, 0.7318068179280713, 0.7160213176898725, 0.931461318117774, 0.7726170600952607, 0.7862904411360011, 0.7437804773160451, 0.7261304682479388, 0.7535871571515667, 0.6712180651685388, 0.7162615966682004, 0.6791077745495656, 0.6720945460948236, 0.6964932824724144], [0.9262841492358087, 0.7318068179280713, 0.0, 0.8574415951298031, 0.9854159083689508, 0.9069175150192125, 0.9046739989611283, 0.8043455907707084, 0.7465496685414171, 0.8585050034234649, 0.844819756902363, 0.6933520111362702, 0.8380803175475514, 0.8430082043112994, 0.8796770147813993], [0.7884700368007593, 0.7160213176898725, 0.8574415951298031, 0.0, 0.9355864990614852, 0.8123575778010284, 0.7531174879151491, 0.7726893543131144, 0.841589742333695, 0.7803722520664951, 0.7108866861290872, 0.8319749623897799, 0.7790096616692483, 0.7570699362092709, 0.8428560212776922], [1.0, 0.931461318117774, 0.9854159083689508, 0.9355864990614852, 0.0, 0.9943633453585028, 0.96633290846124, 0.9427710170298542, 0.9842359174618569, 0.9565789495122544, 0.9252482154378123, 0.9546269085033189, 0.9831865525817131, 0.976673603156099, 0.9862908354943184], [0.7323566346435393, 0.7726170600952607, 0.9069175150192125, 0.8123575778010284, 0.9943633453585028, 0.0, 0.8369554935234337, 0.8334980316244139, 0.81754589609866, 0.8444443421224488, 0.7641296194848691, 0.8514311288067665, 0.7710627082125688, 0.7681500144434829, 0.8247767768912454], [0.8170752433154621, 0.7862904411360011, 0.9046739989611283, 0.7531174879151491, 0.96633290846124, 0.8369554935234337, 0.0, 0.8285319686301731, 0.8739669989287112, 0.8128104170459997, 0.812028432574059, 0.8763913774589871, 0.8364217703073451, 0.8332002259898788, 0.8746609598118593], [0.8413158254151436, 0.7437804773160451, 0.8043455907707084, 0.7726893543131144, 0.9427710170298542, 0.8334980316244139, 0.8285319686301731, 0.0, 0.7698580319588464, 0.7980862901604131, 0.7527906457466673, 0.724541349001037, 0.8089451356075532, 0.8178669870572579, 0.760409513739808], [0.8740155079503418, 0.7261304682479388, 0.7465496685414171, 0.841589742333695, 0.9842359174618569, 0.81754589609866, 0.8739669989287112, 0.7698580319588464, 0.0, 0.8306979226984069, 0.8043458026246182, 0.6430984098928708, 0.8108465393365341, 0.8313197770928223, 0.7982346696285947], [0.7695480873771401, 0.7535871571515667, 0.8585050034234649, 0.7803722520664951, 0.9565789495122544, 0.8444443421224488, 0.8128104170459997, 0.7980862901604131, 0.8306979226984069, 0.0, 0.7686319141956662, 0.8025391599365734, 0.7810887188379143, 0.7900886236487616, 0.8371214921530137], [0.709199118658843, 0.6712180651685388, 0.844819756902363, 0.7108866861290872, 0.9252482154378123, 0.7641296194848691, 0.812028432574059, 0.7527906457466673, 0.8043458026246182, 0.7686319141956662, 0.0, 0.7921819700961124, 0.7034290766439234, 0.6881510253531813, 0.7233383725539672], [0.8879803722003395, 0.7162615966682004, 0.6933520111362702, 0.8319749623897799, 0.9546269085033189, 0.8514311288067665, 0.8763913774589871, 0.724541349001037, 0.6430984098928708, 0.8025391599365734, 0.7921819700961124, 0.0, 0.8235993983490295, 0.8508846565675093, 0.7915239430267434], [0.7314161717683719, 0.6791077745495656, 0.8380803175475514, 0.7790096616692483, 0.9831865525817131, 0.7710627082125688, 0.8364217703073451, 0.8089451356075532, 0.8108465393365341, 0.7810887188379143, 0.7034290766439234, 0.8235993983490295, 0.0, 0.5398098970501584, 0.7811421666690115], [0.7237986193866011, 0.6720945460948236, 0.8430082043112994, 0.7570699362092709, 0.976673603156099, 0.7681500144434829, 0.8332002259898788, 0.8178669870572579, 0.8313197770928223, 0.7900886236487616, 0.6881510253531813, 0.8508846565675093, 0.5398098970501584, 0.0, 0.7854428745787172], [0.8038717033978985, 0.6964932824724144, 0.8796770147813993, 0.8428560212776922, 0.9862908354943184, 0.8247767768912454, 0.8746609598118593, 0.760409513739808, 0.7982346696285947, 0.8371214921530137, 0.7233383725539672, 0.7915239430267434, 0.7811421666690115, 0.7854428745787172, 0.0]], \"type\": \"heatmap\", \"uid\": \"f0b1a7a2-2641-4e85-85b1-b6a96dc2f0a7\"}], {\"height\": 950, \"title\": \"Topic difference (one model)[hellinger distance]\", \"width\": 950, \"xaxis\": {\"title\": \"topic\"}, \"yaxis\": {\"title\": \"topic\"}}, {\"showLink\": true, \"linkText\": \"Export to plot.ly\", \"plotlyServerURL\": \"https://plot.ly\"})});</script>" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "mdiff, annotation = lda_fst.diff(lda_fst, distance='hellinger', num_words=50)\n", "plot_difference(mdiff, title=\"Topic difference (one model)[hellinger distance]\", annotation=annotation)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "You see that everything has become worse, but remember that everything depends on the task.\n", "\n", "You need to choose the function with which your personal point of view about topics similarity and your task (from my experience, Jaccard is fine)." ] }, { "cell_type": "markdown", "metadata": { "collapsed": true }, "source": [ "## Case 2: How topics from DIFFERENT models correlate with each other." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Sometimes, we want to look at the patterns between two different models and compare them. \n", "\n", "You can do this by constructing a matrix with the difference." ] }, { "cell_type": "code", "execution_count": 9, "metadata": {}, "outputs": [ { "data": { "application/vnd.plotly.v1+json": { "config": { "linkText": "Export to plot.ly", "plotlyServerURL": "https://plot.ly", "showLink": true }, "data": [ { "colorscale": "RdBu", "text": [ [ "+++ world, could, peopl, make, well, time, two, nazi, right, also<br>--- car, azeri, turkey, say, mani, give, serdar, german, 000, question", "+++ <br>--- well, two, c8v, right, say, mani, b8f, okz, give, qtm", "+++ want, time, also, call<br>--- server, well, two, right, say, mani, thank, display, give, inform", "+++ well, two, right, say, mani, want, govern, state, even, make<br>--- atheist, said, evid, point, must, law, arab, american, live, palestinian", "+++ even, could, said, kill, well, make, two, time, peopl, right<br>--- presid, went, mani, give, made, stephanopoulo, thing, happen, world, 000", "+++ even, world, could, make, well, time, right, say, mani, think<br>--- two, give, opinion, thing, also, sgi, 000, jewish, question, much", "+++ world, could, time, also, nation, year<br>--- well, two, right, say, mani, develop, lunar, news, give, project", "+++ even, could, make, time, two, also, say, mani, govern, peopl<br>--- well, right, develop, give, inform, chip, world, clipper, need, number", "+++ even, make, well, time, two, right, say, think, much, year<br>--- hockey, mani, give, nhl, also, score, world, 000, jewish, question", "+++ two, time, also, want<br>--- modem, well, floppi, right, say, mani, thank, access, give, speed", "+++ jewish, year<br>--- well, two, right, check, say, mani, give, char, also, sourc", "+++ right, arab, say, live, mani, want, state, israel, even, fact<br>--- said, well, two, point, law, american, palestinian, believ, govern, case", "+++ even, could, make, well, time, two, right, also, say, want<br>--- car, mani, give, thing, speed, world, need, 000, jewish, question", "+++ year, world, time, 000, also, nation, peopl, state<br>--- armi, well, two, turkey, right, say, mani, kent, sandvik, give", "+++ world, could, make, time, also, columbia, want, peopl, insur<br>--- server, cunixb, well, two, right, say, newsgroup, mani, thank, news" ], [ "+++ could, make, well, time, key, law, right, new, also, look<br>--- car, two, azeri, turkey, say, thing, serdar, sgi, german, chip", "+++ <br>--- well, c8v, right, say, b8f, okz, qtm, wm4u, thing, also", "+++ need, time, bit, anyon, also, new, look, distribut, want, run<br>--- server, well, right, say, thank, display, thing, sgi, inform, chip", "+++ well, law, right, say, want, state, tri, even, make, thing<br>--- atheist, realli, two, evid, point, must, indiana, mani, run, govern", "+++ well, right, say, want, state, tri, even, make, thing, also<br>--- said, realli, two, presid, law, went, indiana, run, believ, disk", "+++ realli, well, right, say, state, tri, even, make, thing, sgi<br>--- atheist, caltech, optilink, law, keith, show, indiana, mani, gay, want", "+++ could, time, new, also, distribut, problem, softwar, work, system<br>--- well, right, say, develop, lunar, news, project, thing, moon, sgi", "+++ law, say, even, make, new, also, chip, need, good, work<br>--- realli, well, two, right, mani, netcom, run, data, develop, thing", "+++ even, make, well, time, take, right, new, say, look, think<br>--- hockey, two, nhl, thing, also, sgi, score, chip, need, question", "+++ need, time, drive, also, new, look, distribut, want, system, problem<br>--- modem, well, two, floppi, right, say, thank, access, thing, speed", "+++ read, need, tri, may<br>--- well, right, check, say, char, thing, also, sourc, sgi, inform", "+++ law, right, say, want, state, even, make, thing, also, see<br>--- realli, well, point, arab, live, mani, indiana, run, believ, disk", "+++ realli, well, right, say, want, run, state, tri, even, make<br>--- car, two, first, law, wire, indiana, turn, disk, system, got", "+++ time, also, new, org, peopl, state, work<br>--- armi, well, turkey, right, say, kent, sandvik, thing, sourc, serdar", "+++ could, make, time, also, distribut, want, org, run, system, peopl<br>--- server, cunixb, well, right, say, newsgroup, thank, news, thing, sgi" ], [ "+++ could, make, time, also, new, repli, look, distribut, want, work<br>--- car, well, two, azeri, turkey, right, thank, speed, serdar, simm", "+++ <br>--- c8v, b8f, thank, okz, qtm, wm4u, also, speed, simm, chip", "+++ want, color, run, thank, mac, mous, set, tri, system, help<br>--- server, imag, applic, repli, monitor, vga, disk, ide, data, instal", "+++ time, make, also, want, tri<br>--- well, two, right, say, mani, thank, without, thing, speed, simm", "+++ could, make, time, also, look, want, work, tri<br>--- well, two, presid, right, say, went, thank, made, stephanopoulo, thing", "+++ could, time, make, system, tri<br>--- well, right, say, mani, thank, opinion, thing, also, speed, simm", "+++ could, time, new, also, distribut, problem, scsi, work, system<br>--- thank, develop, lunar, news, project, speed, simm, moon, inform, chip", "+++ could, need, make, time, comput, bit, also, new, work, system<br>--- two, say, mani, thank, develop, speed, simm, inform, clipper, number", "+++ make, time, new, look, run<br>--- hockey, well, two, right, say, thank, nhl, also, speed, simm", "+++ repli, monitor, want, thank, disk, ide, system, pin, new, also<br>--- modem, price, two, point, floppi, motherboard, origin, mac, run, vga", "+++ need, help, pleas, tri, comput<br>--- check, thank, char, also, sourc, speed, simm, inform, chip, number", "+++ could, time, make, also, want<br>--- right, say, mani, thank, thing, speed, simm, chip, world, need", "+++ could, need, make, time, drive, new, also, speed, look, distribut<br>--- car, well, two, right, say, thank, thing, simm, chip, dod", "+++ time, appl, also, new, repli, work<br>--- armi, turkey, thank, kent, sandvik, sourc, speed, serdar, simm, chip", "+++ window, could, make, time, help, also, repli, distribut, want, run<br>--- server, cunixb, newsgroup, news, speed, simm, inform, chip, world, need" ], [ "+++ world, could, car, make, well, time, peopl, right, look, repli<br>--- armenia, realli, two, azeri, law, turkey, ingr, pass, greek, mani", "+++ <br>--- car, well, c8v, right, say, mani, b8f, okz, qtm, wm4u", "+++ need, time, anyon, look, distribut, want, problem, tri<br>--- server, car, well, right, say, mani, thank, display, thing, also", "+++ well, point, right, say, mani, want, state, tri, even, make<br>--- atheist, car, realli, two, evid, first, must, repli, law, govern", "+++ well, right, say, want, state, tri, got, even, make, thing<br>--- said, car, realli, two, presid, point, repli, went, mani, believ", "+++ realli, well, right, say, mani, state, tri, even, make, thing<br>--- car, show, gay, frank, object, got, cramer, put, opinion, gov", "+++ world, could, gov, time, distribut, problem, year, first<br>--- car, well, right, say, mani, develop, lunar, news, project, thing", "+++ even, could, need, make, time, peopl, say, mani, good, think<br>--- car, well, two, right, develop, thing, also, inform, chip, happen", "+++ well, point, right, say, even, make, year, see, better, look<br>--- period, game, car, play, hockey, two, realli, hit, repli, weapon", "+++ need, time, point, look, repli, distribut, want, problem, good, anyon<br>--- modem, car, well, two, floppi, right, say, mani, thank, access", "+++ need, tri, year, read, first<br>--- car, well, right, check, say, mani, char, thing, sourc, inform", "+++ point, right, say, mani, want, state, even, make, thing, see<br>--- car, realli, well, law, first, arab, repli, live, believ, tri", "+++ car, realli, well, right, say, want, state, tri, got, even<br>--- two, point, wire, repli, mani, turn, run, put, gov, new", "+++ year, world, time, repli, peopl, state, first<br>--- armi, car, well, turkey, right, say, mani, kent, sandvik, thing", "+++ world, could, make, time, repli, distribut, want, peopl, anyon<br>--- server, car, cunixb, well, right, say, newsgroup, mani, thank, news" ], [ "+++ car, make, time, new, look, repli, distribut, want, think, engin<br>--- well, two, azeri, turkey, right, c8v, b8f, okz, also, serdar", "+++ 2tm, 1eq, c8v, 2di, b8f, 1d9, 7ey, max, okz, b8e<br>--- dyer, car, 1d9l, repli, want, 7ez, r8f, f9d, brake, mile", "+++ need, time, new, look, distribut, want, anyon<br>--- server, car, c8v, b8f, thank, okz, display, also, uchicago, inform", "+++ time, make, want, good, think<br>--- car, well, two, right, c8v, say, mani, b8f, without, okz", "+++ time, make, look, want, good, think<br>--- car, well, two, presid, right, c8v, say, went, b8f, okz", "+++ time, think, make, good<br>--- car, well, right, c8v, say, mani, b8f, okz, opinion, thing", "+++ time, new, engin, distribut<br>--- car, c8v, b8f, develop, okz, lunar, news, project, also, moon", "+++ need, time, make, new, good, think<br>--- car, two, c8v, say, mani, b8f, develop, okz, also, uchicago", "+++ time, make, new, look, good, think<br>--- car, hockey, well, two, right, c8v, say, b8f, okz, nhl", "+++ need, time, new, look, repli, usa, want, distribut, good, anyon<br>--- modem, car, two, floppi, c8v, b8f, thank, okz, access, also", "+++ need<br>--- car, c8v, check, b8f, okz, char, sourc, uchicago, inform, number", "+++ time, make, want, good, think<br>--- car, right, c8v, say, mani, b8f, okz, thing, also, uchicago", "+++ car, make, need, time, new, look, usa, want, distribut, good<br>--- well, two, right, c8v, say, b8f, okz, thing, also, speed", "+++ time, new, repli, umd, eng<br>--- armi, car, turkey, c8v, b8f, kent, sandvik, okz, also, sourc", "+++ time, make, repli, distribut, want, anyon<br>--- server, car, cunixb, c8v, newsgroup, b8f, thank, okz, news, also" ], [ "+++ armenia, well, two, turkey, right, greek, want, turk, new, serdar<br>--- car, said, azeri, law, file, repli, ingr, pass, live, say", "+++ <br>--- well, two, turkey, c8v, right, say, went, b8f, okz, qtm", "+++ program, need, time, work, new, look, want, file, call<br>--- server, well, two, turkey, right, say, went, thank, display, also", "+++ even, time, well, two, right, say, want, think, peopl, see<br>--- turkey, went, mani, without, thing, also, serdar, world, need, number", "+++ said, well, two, right, say, went, want, start, come, even<br>--- armenia, presid, turkey, file, azerbaijani, live, greek, believ, state, return", "+++ even, world, could, time, well, right, say, think, someth, peopl<br>--- two, turkey, went, mani, opinion, thing, serdar, sgi, need, number", "+++ program, world, could, time, new, year, work, first<br>--- well, two, turkey, right, say, went, develop, lunar, news, project", "+++ even, could, need, time, number, two, work, new, say, peopl<br>--- well, turkey, right, went, mani, develop, also, serdar, inform, chip", "+++ even, time, well, two, right, new, say, look, think, start<br>--- hockey, turkey, went, nhl, serdar, score, world, need, number, season", "+++ need, time, two, new, look, want, work<br>--- modem, well, turkey, floppi, right, say, went, thank, access, also", "+++ rule, program, need, number, output, file, build, name, year, return<br>--- well, two, turkey, right, check, say, went, char, sourc, serdar", "+++ even, world, could, kill, time, right, say, live, want, think<br>--- well, two, turkey, went, mani, thing, also, serdar, need, number", "+++ even, could, need, time, well, two, right, new, say, look<br>--- car, turkey, went, thing, also, speed, serdar, world, number, dod", "+++ armenia, turkey, file, muslim, turk, new, serdar, year, world, number<br>--- armi, david, well, two, right, say, went, greek, popul, kent", "+++ world, could, time, file, want, name, peopl<br>--- server, cunixb, well, two, turkey, right, say, newsgroup, went, thank" ], [ "+++ make, well, time, two, new, right, also, look, year, think<br>--- car, hockey, azeri, turkey, presid, say, stephanopoulo, nhl, serdar, german", "+++ <br>--- hockey, well, two, presid, c8v, right, say, b8f, okz, qtm", "+++ time, also, look, new, run<br>--- server, hockey, well, two, presid, right, say, thank, display, stephanopoulo", "+++ even, make, well, time, two, point, right, also, say, think<br>--- hockey, presid, mani, without, stephanopoulo, thing, nhl, score, question, constitut", "+++ said, well, two, presid, right, say, start, got, come, even<br>--- game, play, hockey, point, hit, went, want, win, run, believ", "+++ even, make, well, time, right, say, think, good, see<br>--- hockey, two, presid, mani, opinion, stephanopoulo, thing, nhl, also, sgi", "+++ time, new, also, year, first<br>--- hockey, well, two, presid, right, say, develop, lunar, news, project", "+++ even, make, time, two, new, also, say, good, think<br>--- hockey, well, presid, right, mani, develop, stephanopoulo, nhl, inform, chip", "+++ game, play, hockey, well, two, point, right, hit, say, win<br>--- period, said, presid, weapon, next, got, come, stephanopoulo, also, day", "+++ time, two, point, new, look, also, good<br>--- modem, hockey, well, presid, floppi, right, say, thank, access, stephanopoulo", "+++ first, year<br>--- hockey, well, two, presid, right, check, say, char, stephanopoulo, nhl", "+++ day, even, make, time, point, right, also, say, think, good<br>--- hockey, well, two, presid, mani, stephanopoulo, thing, nhl, score, world", "+++ well, two, right, say, run, got, even, make, new, also<br>--- game, car, realli, said, play, wire, hockey, point, want, turn", "+++ time, also, new, toronto, year, first<br>--- armi, hockey, well, two, presid, turkey, right, say, kent, sandvik", "+++ also, run, make, time<br>--- server, cunixb, hockey, well, two, presid, right, say, newsgroup, thank" ], [ "+++ could, make, well, time, two, new, also, repli, sun, look<br>--- car, current, azeri, turkey, right, serdar, sale, german, world, need", "+++ <br>--- well, current, two, c8v, b8f, okz, qtm, wm4u, also, sale", "+++ need, time, imag, also, new, look, includ, want, distribut, run<br>--- server, well, current, two, thank, display, sale, inform, question, softwar", "+++ make, well, time, two, point, question, also, want, good, may<br>--- current, right, say, mani, without, thing, sale, need, constitut, much", "+++ could, make, well, time, two, also, look, want, good, year<br>--- current, presid, right, say, went, made, stephanopoulo, thing, sale, happen", "+++ could, time, make, well, good, system<br>--- current, two, right, say, mani, opinion, thing, also, sale, sgi", "+++ imag, system, gov, scienc, also, new, year, space, center, includ<br>--- well, fund, current, two, point, wire, satellit, repli, 1993, want", "+++ could, need, make, scienc, time, two, work, new, also, pitt<br>--- well, current, say, mani, develop, sale, inform, chip, clipper, number", "+++ make, well, time, two, point, new, look, good, run, year<br>--- hockey, current, right, say, nhl, also, sale, score, need, question", "+++ two, point, repli, want, offer, new, also, power, sale, need<br>--- modem, imag, current, price, first, well, floppi, motherboard, wire, monitor", "+++ need, includ, year, first, may, comput<br>--- well, current, two, check, char, also, sourc, sale, inform, number", "+++ could, make, time, point, question, also, want, book, good, may<br>--- well, current, two, right, say, mani, thing, sale, world, need", "+++ well, two, wire, want, run, make, new, also, year, need<br>--- car, realli, imag, current, right, say, point, repli, turn, pitt", "+++ time, also, new, repli, center, year, work, first<br>--- armi, well, current, two, turkey, kent, sandvik, sourc, serdar, sale", "+++ could, make, time, also, repli, distribut, want, run, system, may<br>--- server, cunixb, current, two, well, newsgroup, thank, news, sale, inform" ], [ "+++ make, time, also, look, repli, distribut, want, work, way<br>--- server, client, car, well, two, azeri, turkey, right, resourc, thank", "+++ <br>--- server, client, c8v, b8f, resourc, thank, okz, display, qtm, wm4u", "+++ server, applic, want, color, run, thank, data, set, tri, display<br>--- client, imag, motif, repli, resourc, mac, mous, make, graphic, new", "+++ way, make, time, also, want, tri, may<br>--- server, client, well, two, right, say, mani, resourc, thank, without", "+++ make, time, also, look, want, work, tri, way<br>--- server, client, well, two, presid, right, say, went, resourc, thank", "+++ time, system, tri, make<br>--- server, client, well, right, say, mani, resourc, thank, display, opinion", "+++ program, time, softwar, also, group, includ, distribut, avail, problem, data<br>--- server, client, resourc, thank, develop, display, lunar, news, project, sourc", "+++ need, make, time, number, bit, work, also, may, data, call<br>--- server, client, two, say, mani, resourc, thank, develop, display, sourc", "+++ time, make, look, run, way<br>--- server, client, hockey, well, two, right, say, resourc, thank, display", "+++ need, time, also, look, repli, includ, want, distribut, thank, problem<br>--- modem, server, client, two, floppi, resourc, display, access, sourc, speed", "+++ program, need, help, number, sourc, includ, name, mail, may, file<br>--- server, client, check, resourc, thank, display, char, also, lib, jewish", "+++ way, make, time, also, want, may<br>--- server, client, right, say, mani, resourc, thank, display, thing, sourc", "+++ way, need, make, time, also, look, distribut, want, run, problem<br>--- server, client, car, well, two, right, say, resourc, thank, display", "+++ time, number, also, sourc, repli, file, work<br>--- armi, server, client, turkey, resourc, thank, kent, sandvik, display, serdar", "+++ server, repli, want, run, thank, make, help, also, inform, window<br>--- client, anonym, cunixb, motif, applic, newsgroup, color, resourc, privaci, data" ], [ "+++ well, two, right, repli, want, state, make, new, also, convex<br>--- car, armenia, azeri, law, turkey, say, ingr, pass, greek, run", "+++ <br>--- well, two, c8v, right, say, b8f, thank, okz, access, opinion", "+++ time, also, new, look, distribut, want, run, thank, problem, pleas<br>--- server, well, two, right, say, display, access, opinion, inform, world", "+++ peopl, make, well, time, two, question, right, also, say, human<br>--- mani, thank, without, access, opinion, thing, world, great, constitut, dod", "+++ peopl, make, well, time, two, right, also, say, look, want<br>--- presid, went, run, thank, ask, got, tax, access, kill, opinion", "+++ world, peopl, opinion, make, well, time, right, say, think, system<br>--- two, mani, thank, access, thing, also, sgi, great, question, dod", "+++ year, world, time, new, also, distribut, problem, base, system<br>--- well, two, right, say, thank, develop, lunar, news, access, opinion", "+++ peopl, make, time, two, also, new, say, good, think, system<br>--- well, right, mani, thank, develop, access, opinion, inform, chip, world", "+++ make, well, time, two, right, new, say, look, good, run<br>--- hockey, thank, access, opinion, nhl, also, score, world, great, question", "+++ access, time, two, new, also, repli, look, usa, want, distribut<br>--- modem, well, floppi, right, say, opinion, speed, sale, world, need", "+++ comput, pleas, tri, year<br>--- well, two, right, check, say, thank, access, char, opinion, also", "+++ world, peopl, make, time, question, right, also, say, human, want<br>--- well, two, mani, thank, access, opinion, thing, great, jewish, dod", "+++ well, two, right, say, want, run, state, tri, make, new<br>--- car, realli, first, wire, repli, turn, thank, net, bnr, pyron", "+++ world, peopl, time, also, new, repli, org, year, state<br>--- armi, well, two, turkey, right, say, thank, kent, sandvik, access", "+++ world, make, time, also, repli, distribut, want, org, run, thank<br>--- server, cunixb, well, two, right, say, newsgroup, news, access, opinion" ], [ "+++ crime, could, car, make, well, time, two, peopl, law, right<br>--- armenia, azeri, turkey, file, say, pass, weapon, greek, mani, health", "+++ <br>--- car, well, two, c8v, right, say, mani, b8f, okz, qtm", "+++ time, new, also, problem, file, system<br>--- server, car, well, two, right, say, mani, thank, display, thing", "+++ well, two, law, right, say, mani, state, even, make, thing<br>--- atheist, car, evid, point, first, must, file, weapon, want, govern", "+++ well, two, right, say, state, even, make, thing, also, year<br>--- car, presid, weapon, went, mani, health, ask, got, tax, crime", "+++ even, could, peopl, make, well, time, person, thing, right, say<br>--- car, realli, two, show, weapon, gay, frank, object, health, cramer", "+++ could, time, new, also, system, problem, scsi, year, first<br>--- car, well, two, right, say, mani, develop, lunar, news, project", "+++ two, law, say, mani, case, even, make, new, also, number<br>--- car, well, right, weapon, netcom, data, develop, health, crime, thing", "+++ even, make, well, firearm, two, time, gun, right, new, say<br>--- car, hockey, file, mani, run, health, crime, nhl, also, thing", "+++ time, two, also, new, problem, scsi, good, control, system<br>--- modem, car, well, floppi, right, say, mani, thank, access, thing", "+++ file, first, number, year<br>--- car, well, two, right, check, say, mani, char, thing, also", "+++ day, even, could, peopl, make, time, person, law, right, thing<br>--- car, well, two, arab, weapon, health, crime, kill, christ, new", "+++ car, well, two, right, say, state, even, make, thing, new<br>--- realli, law, wire, file, weapon, want, turn, mani, run, health", "+++ peopl, report, time, number, public, also, new, file, year, state<br>--- armi, car, well, two, turkey, right, say, mani, kent, sandvik", "+++ could, time, make, also, file, peopl, system<br>--- server, car, cunixb, well, two, right, say, newsgroup, mani, thank" ], [ "+++ time, also, new, look, repli, distribut, want, work, comput<br>--- car, well, two, azeri, turkey, right, thank, serdar, sale, german", "+++ <br>--- c8v, b8f, thank, okz, qtm, wm4u, also, sale, inform, 3di", "+++ imag, file, want, mac, run, thank, data, system, program, help<br>--- server, price, applic, repli, color, netcom, mous, set, display, tri", "+++ want, also, time<br>--- well, two, right, say, mani, thank, without, thing, sale, inform", "+++ time, also, look, want, work<br>--- well, two, presid, right, say, went, thank, made, stephanopoulo, thing", "+++ system, time<br>--- well, right, say, mani, thank, opinion, thing, also, sale, sgi", "+++ program, time, imag, softwar, new, also, graphic, includ, distribut, avail<br>--- thank, develop, lunar, news, project, sale, moon, world, need, group", "+++ need, time, also, new, netcom, data, work, system, inform, comput<br>--- two, say, mani, thank, develop, sale, chip, clipper, number, softwar", "+++ new, run, look, time<br>--- hockey, well, two, right, say, thank, nhl, also, sale, score", "+++ price, repli, want, thank, data, system, new, also, sale, need<br>--- modem, imag, two, point, floppi, motherboard, file, monitor, origin, mac", "+++ info, program, need, address, list, help, includ, send, pleas, mail<br>--- check, thank, char, also, sourc, sale, number, lib, jewish, titl", "+++ want, also, time<br>--- right, say, mani, thank, thing, sale, inform, world, need, question", "+++ need, time, drive, new, also, look, distribut, want, run, work<br>--- car, well, two, right, say, thank, thing, speed, sale, inform", "+++ time, also, new, repli, file, work<br>--- armi, turkey, thank, kent, sandvik, sourc, serdar, sale, inform, world", "+++ repli, want, run, thank, system, help, also, inform, window, pleas<br>--- server, anonym, cunixb, imag, price, newsgroup, mac, netcom, privaci, data" ], [ "+++ world, could, make, well, time, two, law, new, also, want<br>--- car, azeri, turkey, right, say, mani, thing, serdar, german, question", "+++ <br>--- well, two, c8v, say, mani, b8f, okz, qtm, wm4u, thing", "+++ want, new, also, time<br>--- server, well, two, say, mani, thank, display, thing, inform, world", "+++ well, two, point, law, say, mani, want, believ, argument, even<br>--- atheist, said, evid, right, must, govern, state, without, tri, come", "+++ said, well, two, say, want, believ, come, even, make, thing<br>--- presid, point, right, law, went, mani, argument, start, state, seem", "+++ well, say, mani, believ, even, make, thing, see, world, god<br>--- atheist, said, caltech, optilink, realli, two, point, right, keith, show", "+++ world, could, time, scienc, new, also<br>--- well, two, say, mani, develop, lunar, news, project, thing, moon", "+++ even, could, peopl, make, scienc, time, two, law, new, also<br>--- well, develop, thing, inform, chip, world, clipper, need, number, question", "+++ even, make, well, time, two, point, new, say, think, much<br>--- hockey, right, mani, nhl, thing, also, score, world, question, season", "+++ time, two, point, new, also, want, good<br>--- modem, well, floppi, say, mani, thank, access, thing, speed, sale", "+++ read, may<br>--- well, two, check, say, mani, char, thing, also, sourc, inform", "+++ point, law, say, mani, want, believ, come, even, make, thing<br>--- said, well, two, right, arab, live, argument, state, israel, fact", "+++ day, even, way, could, make, well, time, two, thing, new<br>--- car, realli, said, first, point, right, wire, law, turn, mani", "+++ world, time, also, new, peopl<br>--- armi, well, two, turkey, say, mani, kent, sandvik, thing, sourc", "+++ world, could, make, time, also, want, peopl, may<br>--- server, cunixb, well, two, say, newsgroup, mani, thank, news, thing" ], [ "+++ world, could, make, well, time, also, right, want, peopl, think<br>--- car, two, azeri, turkey, say, mani, thing, serdar, german, question", "+++ <br>--- well, c8v, right, say, mani, b8f, okz, qtm, wm4u, thing", "+++ time, also, want, system, problem, tri<br>--- server, well, right, say, mani, thank, display, thing, inform, world", "+++ atheist, well, point, right, must, say, mani, want, believ, tri<br>--- said, realli, two, evid, law, govern, object, argument, state, without", "+++ said, well, right, say, want, believ, tri, come, even, make<br>--- atheist, realli, two, presid, point, must, went, mani, object, start", "+++ atheist, realli, well, right, say, mani, object, believ, tri, even<br>--- said, caltech, optilink, point, must, keith, show, want, gay, frank", "+++ world, could, time, also, problem, system<br>--- well, right, say, mani, develop, lunar, news, project, thing, moon", "+++ even, could, peopl, make, time, also, say, mani, good, think<br>--- well, two, right, develop, thing, inform, chip, world, clipper, need", "+++ even, make, well, time, take, point, right, say, think, good<br>--- hockey, two, mani, nhl, thing, also, score, world, question, season", "+++ time, point, also, want, problem, good, system<br>--- modem, well, two, floppi, right, say, mani, thank, access, thing", "+++ must, tri, may, follow<br>--- well, right, check, say, mani, char, thing, also, sourc, inform", "+++ point, right, say, mani, want, believ, come, even, make, thing<br>--- atheist, said, realli, well, law, must, arab, live, object, state", "+++ realli, well, right, say, want, tri, even, make, thing, also<br>--- atheist, car, said, two, first, point, must, wire, turn, mani", "+++ world, also, time, peopl<br>--- armi, well, turkey, right, say, mani, kent, sandvik, thing, sourc", "+++ world, could, make, find, time, also, want, peopl, system, may<br>--- server, cunixb, well, right, say, newsgroup, mani, thank, news, thing" ], [ "+++ could, peopl, make, time, key, two, law, right, new, also<br>--- car, well, azeri, turkey, presid, develop, access, serdar, german, inform", "+++ <br>--- two, presid, c8v, right, b8f, develop, okz, access, qtm, wm4u", "+++ program, need, time, new, also, distribut, data, work, system, inform<br>--- server, two, presid, right, thank, develop, display, access, chip, clipper", "+++ way, make, time, two, law, right, also, think, govern, peopl<br>--- well, presid, say, mani, develop, without, access, thing, inform, chip", "+++ could, peopl, make, time, two, presid, right, also, think, year<br>--- well, say, went, develop, access, made, stephanopoulo, thing, inform, chip", "+++ could, time, make, right, think, peopl, state, system<br>--- well, two, presid, say, mani, develop, access, opinion, thing, also", "+++ year, program, could, time, launch, also, data, new, technolog, space<br>--- two, presid, right, lunar, news, access, project, moon, chip, world", "+++ encrypt, commun, two, law, govern, develop, data, escrow, secret, make<br>--- effect, presid, first, right, say, mani, clinton, pitt, netcom, privaci", "+++ make, time, two, new, right, year, think, first, way<br>--- hockey, well, presid, say, develop, access, nhl, also, score, inform", "+++ access, need, time, two, new, also, space, distribut, data, work<br>--- modem, presid, floppi, right, thank, develop, speed, sale, inform, chip", "+++ program, need, inform, year, first, may, comput<br>--- two, presid, right, check, develop, access, char, also, sourc, chip", "+++ could, make, time, law, also, right, think, may, peopl, state<br>--- two, presid, say, mani, develop, access, thing, inform, chip, world", "+++ way, could, need, make, time, two, right, new, also, distribut<br>--- car, well, presid, say, develop, access, thing, speed, inform, chip", "+++ year, time, public, also, new, peopl, state, work, first<br>--- armi, two, presid, turkey, right, develop, kent, sandvik, access, sourc", "+++ could, make, time, also, messag, distribut, privaci, may, peopl, system<br>--- server, cunixb, two, presid, right, newsgroup, thank, develop, news, access" ] ], "type": "heatmap", "uid": "a3ce4eba-5101-4544-850d-7b2963eb6250", "z": [ [ 0.8095238095238095, 1, 0.9583333333333334, 0.75, 0.7804878048780488, 0.8235294117647058, 0.9361702127659575, 0.8505747126436781, 0.8636363636363636, 0.9583333333333334, 0.9795918367346939, 0.6486486486486487, 0.8095238095238095, 0.9130434782608696, 0.9010989010989011 ], [ 0.8095238095238095, 1, 0.8095238095238095, 0.7341772151898734, 0.7341772151898734, 0.717948717948718, 0.9010989010989011, 0.7654320987654322, 0.8372093023255813, 0.8235294117647058, 0.9583333333333334, 0.7341772151898734, 0.6301369863013699, 0.9247311827956989, 0.8636363636363636 ], [ 0.8764044943820225, 1, 0.6111111111111112, 0.9473684210526316, 0.9130434782608696, 0.9473684210526316, 0.9010989010989011, 0.8764044943820225, 0.9473684210526316, 0.6486486486486487, 0.9473684210526316, 0.9473684210526316, 0.8235294117647058, 0.9361702127659575, 0.8235294117647058 ], [ 0.7804878048780488, 1, 0.9130434782608696, 0.7654320987654322, 0.6666666666666667, 0.7654320987654322, 0.9130434782608696, 0.8888888888888888, 0.7654320987654322, 0.8888888888888888, 0.9473684210526316, 0.7654320987654322, 0.5507246376811594, 0.9247311827956989, 0.9010989010989011 ], [ 0.8888888888888888, 0.5915492957746479, 0.9247311827956989, 0.9473684210526316, 0.9361702127659575, 0.9583333333333334, 0.9583333333333334, 0.9361702127659575, 0.9361702127659575, 0.8888888888888888, 0.98989898989899, 0.9473684210526316, 0.8636363636363636, 0.9473684210526316, 0.9361702127659575 ], [ 0.7012987012987013, 1, 0.9010989010989011, 0.8764044943820225, 0.6842105263157895, 0.8764044943820225, 0.9130434782608696, 0.8636363636363636, 0.8372093023255813, 0.9247311827956989, 0.8636363636363636, 0.8372093023255813, 0.7951807228915663, 0.7654320987654322, 0.9247311827956989 ], [ 0.8888888888888888, 1, 0.9473684210526316, 0.8505747126436781, 0.717948717948718, 0.9010989010989011, 0.9473684210526316, 0.9010989010989011, 0.33333333333333337, 0.9247311827956989, 0.9795918367346939, 0.8636363636363636, 0.7341772151898734, 0.9361702127659575, 0.9583333333333334 ], [ 0.8095238095238095, 1, 0.8505747126436781, 0.8764044943820225, 0.8636363636363636, 0.9361702127659575, 0.7341772151898734, 0.8095238095238095, 0.8764044943820225, 0.75, 0.9361702127659575, 0.8888888888888888, 0.7341772151898734, 0.9130434782608696, 0.8764044943820225 ], [ 0.9010989010989011, 1, 0.48484848484848486, 0.9247311827956989, 0.9130434782608696, 0.9583333333333334, 0.8505747126436781, 0.8636363636363636, 0.9473684210526316, 0.8372093023255813, 0.8636363636363636, 0.9361702127659575, 0.8505747126436781, 0.9247311827956989, 0.717948717948718 ], [ 0.75, 1, 0.8505747126436781, 0.8095238095238095, 0.7951807228915663, 0.8505747126436781, 0.9010989010989011, 0.8764044943820225, 0.8372093023255813, 0.7804878048780488, 0.9583333333333334, 0.8235294117647058, 0.7341772151898734, 0.9010989010989011, 0.8372093023255813 ], [ 0.8095238095238095, 1, 0.9361702127659575, 0.7341772151898734, 0.7654320987654322, 0.7804878048780488, 0.9010989010989011, 0.7654320987654322, 0.7804878048780488, 0.9010989010989011, 0.9583333333333334, 0.7804878048780488, 0.717948717948718, 0.8764044943820225, 0.9247311827956989 ], [ 0.9010989010989011, 1, 0.5294117647058824, 0.9690721649484536, 0.9473684210526316, 0.9795918367346939, 0.8372093023255813, 0.8888888888888888, 0.9583333333333334, 0.75, 0.8372093023255813, 0.9690721649484536, 0.8888888888888888, 0.9361702127659575, 0.717948717948718 ], [ 0.8505747126436781, 1, 0.9583333333333334, 0.5074626865671642, 0.75, 0.7654320987654322, 0.9361702127659575, 0.8235294117647058, 0.8505747126436781, 0.9247311827956989, 0.9795918367346939, 0.46153846153846156, 0.7804878048780488, 0.9473684210526316, 0.9130434782608696 ], [ 0.8764044943820225, 1, 0.9361702127659575, 0.5507246376811594, 0.717948717948718, 0.6301369863013699, 0.9361702127659575, 0.8636363636363636, 0.8636363636363636, 0.9247311827956989, 0.9583333333333334, 0.5294117647058824, 0.7654320987654322, 0.9583333333333334, 0.8888888888888888 ], [ 0.7804878048780488, 1, 0.8764044943820225, 0.8636363636363636, 0.8235294117647058, 0.9130434782608696, 0.7804878048780488, 0.5507246376811594, 0.9010989010989011, 0.8636363636363636, 0.9247311827956989, 0.8764044943820225, 0.8095238095238095, 0.9010989010989011, 0.8636363636363636 ] ] } ], "layout": { "height": 950, "title": "Topic difference (two models)[jaccard distance]", "width": 950, "xaxis": { "title": "topic" }, "yaxis": { "title": "topic" } } }, "text/html": [ "<div id=\"e658128a-8e00-426f-b3a2-ee96583500cc\" style=\"height: 950px; width: 950px;\" class=\"plotly-graph-div\"></div><script type=\"text/javascript\">require([\"plotly\"], function(Plotly) { window.PLOTLYENV=window.PLOTLYENV || {};window.PLOTLYENV.BASE_URL=\"https://plot.ly\";Plotly.newPlot(\"e658128a-8e00-426f-b3a2-ee96583500cc\", [{\"colorscale\": \"RdBu\", \"text\": [[\"+++ world, could, peopl, make, well, time, two, nazi, right, also<br>--- car, azeri, turkey, say, mani, give, serdar, german, 000, question\", \"+++ <br>--- well, two, c8v, right, say, mani, b8f, okz, give, qtm\", \"+++ want, time, also, call<br>--- server, well, two, right, say, mani, thank, display, give, inform\", \"+++ well, two, right, say, mani, want, govern, state, even, make<br>--- atheist, said, evid, point, must, law, arab, american, live, palestinian\", \"+++ even, could, said, kill, well, make, two, time, peopl, right<br>--- presid, went, mani, give, made, stephanopoulo, thing, happen, world, 000\", \"+++ even, world, could, make, well, time, right, say, mani, think<br>--- two, give, opinion, thing, also, sgi, 000, jewish, question, much\", \"+++ world, could, time, also, nation, year<br>--- well, two, right, say, mani, develop, lunar, news, give, project\", \"+++ even, could, make, time, two, also, say, mani, govern, peopl<br>--- well, right, develop, give, inform, chip, world, clipper, need, number\", \"+++ even, make, well, time, two, right, say, think, much, year<br>--- hockey, mani, give, nhl, also, score, world, 000, jewish, question\", \"+++ two, time, also, want<br>--- modem, well, floppi, right, say, mani, thank, access, give, speed\", \"+++ jewish, year<br>--- well, two, right, check, say, mani, give, char, also, sourc\", \"+++ right, arab, say, live, mani, want, state, israel, even, fact<br>--- said, well, two, point, law, american, palestinian, believ, govern, case\", \"+++ even, could, make, well, time, two, right, also, say, want<br>--- car, mani, give, thing, speed, world, need, 000, jewish, question\", \"+++ year, world, time, 000, also, nation, peopl, state<br>--- armi, well, two, turkey, right, say, mani, kent, sandvik, give\", \"+++ world, could, make, time, also, columbia, want, peopl, insur<br>--- server, cunixb, well, two, right, say, newsgroup, mani, thank, news\"], [\"+++ could, make, well, time, key, law, right, new, also, look<br>--- car, two, azeri, turkey, say, thing, serdar, sgi, german, chip\", \"+++ <br>--- well, c8v, right, say, b8f, okz, qtm, wm4u, thing, also\", \"+++ need, time, bit, anyon, also, new, look, distribut, want, run<br>--- server, well, right, say, thank, display, thing, sgi, inform, chip\", \"+++ well, law, right, say, want, state, tri, even, make, thing<br>--- atheist, realli, two, evid, point, must, indiana, mani, run, govern\", \"+++ well, right, say, want, state, tri, even, make, thing, also<br>--- said, realli, two, presid, law, went, indiana, run, believ, disk\", \"+++ realli, well, right, say, state, tri, even, make, thing, sgi<br>--- atheist, caltech, optilink, law, keith, show, indiana, mani, gay, want\", \"+++ could, time, new, also, distribut, problem, softwar, work, system<br>--- well, right, say, develop, lunar, news, project, thing, moon, sgi\", \"+++ law, say, even, make, new, also, chip, need, good, work<br>--- realli, well, two, right, mani, netcom, run, data, develop, thing\", \"+++ even, make, well, time, take, right, new, say, look, think<br>--- hockey, two, nhl, thing, also, sgi, score, chip, need, question\", \"+++ need, time, drive, also, new, look, distribut, want, system, problem<br>--- modem, well, two, floppi, right, say, thank, access, thing, speed\", \"+++ read, need, tri, may<br>--- well, right, check, say, char, thing, also, sourc, sgi, inform\", \"+++ law, right, say, want, state, even, make, thing, also, see<br>--- realli, well, point, arab, live, mani, indiana, run, believ, disk\", \"+++ realli, well, right, say, want, run, state, tri, even, make<br>--- car, two, first, law, wire, indiana, turn, disk, system, got\", \"+++ time, also, new, org, peopl, state, work<br>--- armi, well, turkey, right, say, kent, sandvik, thing, sourc, serdar\", \"+++ could, make, time, also, distribut, want, org, run, system, peopl<br>--- server, cunixb, well, right, say, newsgroup, thank, news, thing, sgi\"], [\"+++ could, make, time, also, new, repli, look, distribut, want, work<br>--- car, well, two, azeri, turkey, right, thank, speed, serdar, simm\", \"+++ <br>--- c8v, b8f, thank, okz, qtm, wm4u, also, speed, simm, chip\", \"+++ want, color, run, thank, mac, mous, set, tri, system, help<br>--- server, imag, applic, repli, monitor, vga, disk, ide, data, instal\", \"+++ time, make, also, want, tri<br>--- well, two, right, say, mani, thank, without, thing, speed, simm\", \"+++ could, make, time, also, look, want, work, tri<br>--- well, two, presid, right, say, went, thank, made, stephanopoulo, thing\", \"+++ could, time, make, system, tri<br>--- well, right, say, mani, thank, opinion, thing, also, speed, simm\", \"+++ could, time, new, also, distribut, problem, scsi, work, system<br>--- thank, develop, lunar, news, project, speed, simm, moon, inform, chip\", \"+++ could, need, make, time, comput, bit, also, new, work, system<br>--- two, say, mani, thank, develop, speed, simm, inform, clipper, number\", \"+++ make, time, new, look, run<br>--- hockey, well, two, right, say, thank, nhl, also, speed, simm\", \"+++ repli, monitor, want, thank, disk, ide, system, pin, new, also<br>--- modem, price, two, point, floppi, motherboard, origin, mac, run, vga\", \"+++ need, help, pleas, tri, comput<br>--- check, thank, char, also, sourc, speed, simm, inform, chip, number\", \"+++ could, time, make, also, want<br>--- right, say, mani, thank, thing, speed, simm, chip, world, need\", \"+++ could, need, make, time, drive, new, also, speed, look, distribut<br>--- car, well, two, right, say, thank, thing, simm, chip, dod\", \"+++ time, appl, also, new, repli, work<br>--- armi, turkey, thank, kent, sandvik, sourc, speed, serdar, simm, chip\", \"+++ window, could, make, time, help, also, repli, distribut, want, run<br>--- server, cunixb, newsgroup, news, speed, simm, inform, chip, world, need\"], [\"+++ world, could, car, make, well, time, peopl, right, look, repli<br>--- armenia, realli, two, azeri, law, turkey, ingr, pass, greek, mani\", \"+++ <br>--- car, well, c8v, right, say, mani, b8f, okz, qtm, wm4u\", \"+++ need, time, anyon, look, distribut, want, problem, tri<br>--- server, car, well, right, say, mani, thank, display, thing, also\", \"+++ well, point, right, say, mani, want, state, tri, even, make<br>--- atheist, car, realli, two, evid, first, must, repli, law, govern\", \"+++ well, right, say, want, state, tri, got, even, make, thing<br>--- said, car, realli, two, presid, point, repli, went, mani, believ\", \"+++ realli, well, right, say, mani, state, tri, even, make, thing<br>--- car, show, gay, frank, object, got, cramer, put, opinion, gov\", \"+++ world, could, gov, time, distribut, problem, year, first<br>--- car, well, right, say, mani, develop, lunar, news, project, thing\", \"+++ even, could, need, make, time, peopl, say, mani, good, think<br>--- car, well, two, right, develop, thing, also, inform, chip, happen\", \"+++ well, point, right, say, even, make, year, see, better, look<br>--- period, game, car, play, hockey, two, realli, hit, repli, weapon\", \"+++ need, time, point, look, repli, distribut, want, problem, good, anyon<br>--- modem, car, well, two, floppi, right, say, mani, thank, access\", \"+++ need, tri, year, read, first<br>--- car, well, right, check, say, mani, char, thing, sourc, inform\", \"+++ point, right, say, mani, want, state, even, make, thing, see<br>--- car, realli, well, law, first, arab, repli, live, believ, tri\", \"+++ car, realli, well, right, say, want, state, tri, got, even<br>--- two, point, wire, repli, mani, turn, run, put, gov, new\", \"+++ year, world, time, repli, peopl, state, first<br>--- armi, car, well, turkey, right, say, mani, kent, sandvik, thing\", \"+++ world, could, make, time, repli, distribut, want, peopl, anyon<br>--- server, car, cunixb, well, right, say, newsgroup, mani, thank, news\"], [\"+++ car, make, time, new, look, repli, distribut, want, think, engin<br>--- well, two, azeri, turkey, right, c8v, b8f, okz, also, serdar\", \"+++ 2tm, 1eq, c8v, 2di, b8f, 1d9, 7ey, max, okz, b8e<br>--- dyer, car, 1d9l, repli, want, 7ez, r8f, f9d, brake, mile\", \"+++ need, time, new, look, distribut, want, anyon<br>--- server, car, c8v, b8f, thank, okz, display, also, uchicago, inform\", \"+++ time, make, want, good, think<br>--- car, well, two, right, c8v, say, mani, b8f, without, okz\", \"+++ time, make, look, want, good, think<br>--- car, well, two, presid, right, c8v, say, went, b8f, okz\", \"+++ time, think, make, good<br>--- car, well, right, c8v, say, mani, b8f, okz, opinion, thing\", \"+++ time, new, engin, distribut<br>--- car, c8v, b8f, develop, okz, lunar, news, project, also, moon\", \"+++ need, time, make, new, good, think<br>--- car, two, c8v, say, mani, b8f, develop, okz, also, uchicago\", \"+++ time, make, new, look, good, think<br>--- car, hockey, well, two, right, c8v, say, b8f, okz, nhl\", \"+++ need, time, new, look, repli, usa, want, distribut, good, anyon<br>--- modem, car, two, floppi, c8v, b8f, thank, okz, access, also\", \"+++ need<br>--- car, c8v, check, b8f, okz, char, sourc, uchicago, inform, number\", \"+++ time, make, want, good, think<br>--- car, right, c8v, say, mani, b8f, okz, thing, also, uchicago\", \"+++ car, make, need, time, new, look, usa, want, distribut, good<br>--- well, two, right, c8v, say, b8f, okz, thing, also, speed\", \"+++ time, new, repli, umd, eng<br>--- armi, car, turkey, c8v, b8f, kent, sandvik, okz, also, sourc\", \"+++ time, make, repli, distribut, want, anyon<br>--- server, car, cunixb, c8v, newsgroup, b8f, thank, okz, news, also\"], [\"+++ armenia, well, two, turkey, right, greek, want, turk, new, serdar<br>--- car, said, azeri, law, file, repli, ingr, pass, live, say\", \"+++ <br>--- well, two, turkey, c8v, right, say, went, b8f, okz, qtm\", \"+++ program, need, time, work, new, look, want, file, call<br>--- server, well, two, turkey, right, say, went, thank, display, also\", \"+++ even, time, well, two, right, say, want, think, peopl, see<br>--- turkey, went, mani, without, thing, also, serdar, world, need, number\", \"+++ said, well, two, right, say, went, want, start, come, even<br>--- armenia, presid, turkey, file, azerbaijani, live, greek, believ, state, return\", \"+++ even, world, could, time, well, right, say, think, someth, peopl<br>--- two, turkey, went, mani, opinion, thing, serdar, sgi, need, number\", \"+++ program, world, could, time, new, year, work, first<br>--- well, two, turkey, right, say, went, develop, lunar, news, project\", \"+++ even, could, need, time, number, two, work, new, say, peopl<br>--- well, turkey, right, went, mani, develop, also, serdar, inform, chip\", \"+++ even, time, well, two, right, new, say, look, think, start<br>--- hockey, turkey, went, nhl, serdar, score, world, need, number, season\", \"+++ need, time, two, new, look, want, work<br>--- modem, well, turkey, floppi, right, say, went, thank, access, also\", \"+++ rule, program, need, number, output, file, build, name, year, return<br>--- well, two, turkey, right, check, say, went, char, sourc, serdar\", \"+++ even, world, could, kill, time, right, say, live, want, think<br>--- well, two, turkey, went, mani, thing, also, serdar, need, number\", \"+++ even, could, need, time, well, two, right, new, say, look<br>--- car, turkey, went, thing, also, speed, serdar, world, number, dod\", \"+++ armenia, turkey, file, muslim, turk, new, serdar, year, world, number<br>--- armi, david, well, two, right, say, went, greek, popul, kent\", \"+++ world, could, time, file, want, name, peopl<br>--- server, cunixb, well, two, turkey, right, say, newsgroup, went, thank\"], [\"+++ make, well, time, two, new, right, also, look, year, think<br>--- car, hockey, azeri, turkey, presid, say, stephanopoulo, nhl, serdar, german\", \"+++ <br>--- hockey, well, two, presid, c8v, right, say, b8f, okz, qtm\", \"+++ time, also, look, new, run<br>--- server, hockey, well, two, presid, right, say, thank, display, stephanopoulo\", \"+++ even, make, well, time, two, point, right, also, say, think<br>--- hockey, presid, mani, without, stephanopoulo, thing, nhl, score, question, constitut\", \"+++ said, well, two, presid, right, say, start, got, come, even<br>--- game, play, hockey, point, hit, went, want, win, run, believ\", \"+++ even, make, well, time, right, say, think, good, see<br>--- hockey, two, presid, mani, opinion, stephanopoulo, thing, nhl, also, sgi\", \"+++ time, new, also, year, first<br>--- hockey, well, two, presid, right, say, develop, lunar, news, project\", \"+++ even, make, time, two, new, also, say, good, think<br>--- hockey, well, presid, right, mani, develop, stephanopoulo, nhl, inform, chip\", \"+++ game, play, hockey, well, two, point, right, hit, say, win<br>--- period, said, presid, weapon, next, got, come, stephanopoulo, also, day\", \"+++ time, two, point, new, look, also, good<br>--- modem, hockey, well, presid, floppi, right, say, thank, access, stephanopoulo\", \"+++ first, year<br>--- hockey, well, two, presid, right, check, say, char, stephanopoulo, nhl\", \"+++ day, even, make, time, point, right, also, say, think, good<br>--- hockey, well, two, presid, mani, stephanopoulo, thing, nhl, score, world\", \"+++ well, two, right, say, run, got, even, make, new, also<br>--- game, car, realli, said, play, wire, hockey, point, want, turn\", \"+++ time, also, new, toronto, year, first<br>--- armi, hockey, well, two, presid, turkey, right, say, kent, sandvik\", \"+++ also, run, make, time<br>--- server, cunixb, hockey, well, two, presid, right, say, newsgroup, thank\"], [\"+++ could, make, well, time, two, new, also, repli, sun, look<br>--- car, current, azeri, turkey, right, serdar, sale, german, world, need\", \"+++ <br>--- well, current, two, c8v, b8f, okz, qtm, wm4u, also, sale\", \"+++ need, time, imag, also, new, look, includ, want, distribut, run<br>--- server, well, current, two, thank, display, sale, inform, question, softwar\", \"+++ make, well, time, two, point, question, also, want, good, may<br>--- current, right, say, mani, without, thing, sale, need, constitut, much\", \"+++ could, make, well, time, two, also, look, want, good, year<br>--- current, presid, right, say, went, made, stephanopoulo, thing, sale, happen\", \"+++ could, time, make, well, good, system<br>--- current, two, right, say, mani, opinion, thing, also, sale, sgi\", \"+++ imag, system, gov, scienc, also, new, year, space, center, includ<br>--- well, fund, current, two, point, wire, satellit, repli, 1993, want\", \"+++ could, need, make, scienc, time, two, work, new, also, pitt<br>--- well, current, say, mani, develop, sale, inform, chip, clipper, number\", \"+++ make, well, time, two, point, new, look, good, run, year<br>--- hockey, current, right, say, nhl, also, sale, score, need, question\", \"+++ two, point, repli, want, offer, new, also, power, sale, need<br>--- modem, imag, current, price, first, well, floppi, motherboard, wire, monitor\", \"+++ need, includ, year, first, may, comput<br>--- well, current, two, check, char, also, sourc, sale, inform, number\", \"+++ could, make, time, point, question, also, want, book, good, may<br>--- well, current, two, right, say, mani, thing, sale, world, need\", \"+++ well, two, wire, want, run, make, new, also, year, need<br>--- car, realli, imag, current, right, say, point, repli, turn, pitt\", \"+++ time, also, new, repli, center, year, work, first<br>--- armi, well, current, two, turkey, kent, sandvik, sourc, serdar, sale\", \"+++ could, make, time, also, repli, distribut, want, run, system, may<br>--- server, cunixb, current, two, well, newsgroup, thank, news, sale, inform\"], [\"+++ make, time, also, look, repli, distribut, want, work, way<br>--- server, client, car, well, two, azeri, turkey, right, resourc, thank\", \"+++ <br>--- server, client, c8v, b8f, resourc, thank, okz, display, qtm, wm4u\", \"+++ server, applic, want, color, run, thank, data, set, tri, display<br>--- client, imag, motif, repli, resourc, mac, mous, make, graphic, new\", \"+++ way, make, time, also, want, tri, may<br>--- server, client, well, two, right, say, mani, resourc, thank, without\", \"+++ make, time, also, look, want, work, tri, way<br>--- server, client, well, two, presid, right, say, went, resourc, thank\", \"+++ time, system, tri, make<br>--- server, client, well, right, say, mani, resourc, thank, display, opinion\", \"+++ program, time, softwar, also, group, includ, distribut, avail, problem, data<br>--- server, client, resourc, thank, develop, display, lunar, news, project, sourc\", \"+++ need, make, time, number, bit, work, also, may, data, call<br>--- server, client, two, say, mani, resourc, thank, develop, display, sourc\", \"+++ time, make, look, run, way<br>--- server, client, hockey, well, two, right, say, resourc, thank, display\", \"+++ need, time, also, look, repli, includ, want, distribut, thank, problem<br>--- modem, server, client, two, floppi, resourc, display, access, sourc, speed\", \"+++ program, need, help, number, sourc, includ, name, mail, may, file<br>--- server, client, check, resourc, thank, display, char, also, lib, jewish\", \"+++ way, make, time, also, want, may<br>--- server, client, right, say, mani, resourc, thank, display, thing, sourc\", \"+++ way, need, make, time, also, look, distribut, want, run, problem<br>--- server, client, car, well, two, right, say, resourc, thank, display\", \"+++ time, number, also, sourc, repli, file, work<br>--- armi, server, client, turkey, resourc, thank, kent, sandvik, display, serdar\", \"+++ server, repli, want, run, thank, make, help, also, inform, window<br>--- client, anonym, cunixb, motif, applic, newsgroup, color, resourc, privaci, data\"], [\"+++ well, two, right, repli, want, state, make, new, also, convex<br>--- car, armenia, azeri, law, turkey, say, ingr, pass, greek, run\", \"+++ <br>--- well, two, c8v, right, say, b8f, thank, okz, access, opinion\", \"+++ time, also, new, look, distribut, want, run, thank, problem, pleas<br>--- server, well, two, right, say, display, access, opinion, inform, world\", \"+++ peopl, make, well, time, two, question, right, also, say, human<br>--- mani, thank, without, access, opinion, thing, world, great, constitut, dod\", \"+++ peopl, make, well, time, two, right, also, say, look, want<br>--- presid, went, run, thank, ask, got, tax, access, kill, opinion\", \"+++ world, peopl, opinion, make, well, time, right, say, think, system<br>--- two, mani, thank, access, thing, also, sgi, great, question, dod\", \"+++ year, world, time, new, also, distribut, problem, base, system<br>--- well, two, right, say, thank, develop, lunar, news, access, opinion\", \"+++ peopl, make, time, two, also, new, say, good, think, system<br>--- well, right, mani, thank, develop, access, opinion, inform, chip, world\", \"+++ make, well, time, two, right, new, say, look, good, run<br>--- hockey, thank, access, opinion, nhl, also, score, world, great, question\", \"+++ access, time, two, new, also, repli, look, usa, want, distribut<br>--- modem, well, floppi, right, say, opinion, speed, sale, world, need\", \"+++ comput, pleas, tri, year<br>--- well, two, right, check, say, thank, access, char, opinion, also\", \"+++ world, peopl, make, time, question, right, also, say, human, want<br>--- well, two, mani, thank, access, opinion, thing, great, jewish, dod\", \"+++ well, two, right, say, want, run, state, tri, make, new<br>--- car, realli, first, wire, repli, turn, thank, net, bnr, pyron\", \"+++ world, peopl, time, also, new, repli, org, year, state<br>--- armi, well, two, turkey, right, say, thank, kent, sandvik, access\", \"+++ world, make, time, also, repli, distribut, want, org, run, thank<br>--- server, cunixb, well, two, right, say, newsgroup, news, access, opinion\"], [\"+++ crime, could, car, make, well, time, two, peopl, law, right<br>--- armenia, azeri, turkey, file, say, pass, weapon, greek, mani, health\", \"+++ <br>--- car, well, two, c8v, right, say, mani, b8f, okz, qtm\", \"+++ time, new, also, problem, file, system<br>--- server, car, well, two, right, say, mani, thank, display, thing\", \"+++ well, two, law, right, say, mani, state, even, make, thing<br>--- atheist, car, evid, point, first, must, file, weapon, want, govern\", \"+++ well, two, right, say, state, even, make, thing, also, year<br>--- car, presid, weapon, went, mani, health, ask, got, tax, crime\", \"+++ even, could, peopl, make, well, time, person, thing, right, say<br>--- car, realli, two, show, weapon, gay, frank, object, health, cramer\", \"+++ could, time, new, also, system, problem, scsi, year, first<br>--- car, well, two, right, say, mani, develop, lunar, news, project\", \"+++ two, law, say, mani, case, even, make, new, also, number<br>--- car, well, right, weapon, netcom, data, develop, health, crime, thing\", \"+++ even, make, well, firearm, two, time, gun, right, new, say<br>--- car, hockey, file, mani, run, health, crime, nhl, also, thing\", \"+++ time, two, also, new, problem, scsi, good, control, system<br>--- modem, car, well, floppi, right, say, mani, thank, access, thing\", \"+++ file, first, number, year<br>--- car, well, two, right, check, say, mani, char, thing, also\", \"+++ day, even, could, peopl, make, time, person, law, right, thing<br>--- car, well, two, arab, weapon, health, crime, kill, christ, new\", \"+++ car, well, two, right, say, state, even, make, thing, new<br>--- realli, law, wire, file, weapon, want, turn, mani, run, health\", \"+++ peopl, report, time, number, public, also, new, file, year, state<br>--- armi, car, well, two, turkey, right, say, mani, kent, sandvik\", \"+++ could, time, make, also, file, peopl, system<br>--- server, car, cunixb, well, two, right, say, newsgroup, mani, thank\"], [\"+++ time, also, new, look, repli, distribut, want, work, comput<br>--- car, well, two, azeri, turkey, right, thank, serdar, sale, german\", \"+++ <br>--- c8v, b8f, thank, okz, qtm, wm4u, also, sale, inform, 3di\", \"+++ imag, file, want, mac, run, thank, data, system, program, help<br>--- server, price, applic, repli, color, netcom, mous, set, display, tri\", \"+++ want, also, time<br>--- well, two, right, say, mani, thank, without, thing, sale, inform\", \"+++ time, also, look, want, work<br>--- well, two, presid, right, say, went, thank, made, stephanopoulo, thing\", \"+++ system, time<br>--- well, right, say, mani, thank, opinion, thing, also, sale, sgi\", \"+++ program, time, imag, softwar, new, also, graphic, includ, distribut, avail<br>--- thank, develop, lunar, news, project, sale, moon, world, need, group\", \"+++ need, time, also, new, netcom, data, work, system, inform, comput<br>--- two, say, mani, thank, develop, sale, chip, clipper, number, softwar\", \"+++ new, run, look, time<br>--- hockey, well, two, right, say, thank, nhl, also, sale, score\", \"+++ price, repli, want, thank, data, system, new, also, sale, need<br>--- modem, imag, two, point, floppi, motherboard, file, monitor, origin, mac\", \"+++ info, program, need, address, list, help, includ, send, pleas, mail<br>--- check, thank, char, also, sourc, sale, number, lib, jewish, titl\", \"+++ want, also, time<br>--- right, say, mani, thank, thing, sale, inform, world, need, question\", \"+++ need, time, drive, new, also, look, distribut, want, run, work<br>--- car, well, two, right, say, thank, thing, speed, sale, inform\", \"+++ time, also, new, repli, file, work<br>--- armi, turkey, thank, kent, sandvik, sourc, serdar, sale, inform, world\", \"+++ repli, want, run, thank, system, help, also, inform, window, pleas<br>--- server, anonym, cunixb, imag, price, newsgroup, mac, netcom, privaci, data\"], [\"+++ world, could, make, well, time, two, law, new, also, want<br>--- car, azeri, turkey, right, say, mani, thing, serdar, german, question\", \"+++ <br>--- well, two, c8v, say, mani, b8f, okz, qtm, wm4u, thing\", \"+++ want, new, also, time<br>--- server, well, two, say, mani, thank, display, thing, inform, world\", \"+++ well, two, point, law, say, mani, want, believ, argument, even<br>--- atheist, said, evid, right, must, govern, state, without, tri, come\", \"+++ said, well, two, say, want, believ, come, even, make, thing<br>--- presid, point, right, law, went, mani, argument, start, state, seem\", \"+++ well, say, mani, believ, even, make, thing, see, world, god<br>--- atheist, said, caltech, optilink, realli, two, point, right, keith, show\", \"+++ world, could, time, scienc, new, also<br>--- well, two, say, mani, develop, lunar, news, project, thing, moon\", \"+++ even, could, peopl, make, scienc, time, two, law, new, also<br>--- well, develop, thing, inform, chip, world, clipper, need, number, question\", \"+++ even, make, well, time, two, point, new, say, think, much<br>--- hockey, right, mani, nhl, thing, also, score, world, question, season\", \"+++ time, two, point, new, also, want, good<br>--- modem, well, floppi, say, mani, thank, access, thing, speed, sale\", \"+++ read, may<br>--- well, two, check, say, mani, char, thing, also, sourc, inform\", \"+++ point, law, say, mani, want, believ, come, even, make, thing<br>--- said, well, two, right, arab, live, argument, state, israel, fact\", \"+++ day, even, way, could, make, well, time, two, thing, new<br>--- car, realli, said, first, point, right, wire, law, turn, mani\", \"+++ world, time, also, new, peopl<br>--- armi, well, two, turkey, say, mani, kent, sandvik, thing, sourc\", \"+++ world, could, make, time, also, want, peopl, may<br>--- server, cunixb, well, two, say, newsgroup, mani, thank, news, thing\"], [\"+++ world, could, make, well, time, also, right, want, peopl, think<br>--- car, two, azeri, turkey, say, mani, thing, serdar, german, question\", \"+++ <br>--- well, c8v, right, say, mani, b8f, okz, qtm, wm4u, thing\", \"+++ time, also, want, system, problem, tri<br>--- server, well, right, say, mani, thank, display, thing, inform, world\", \"+++ atheist, well, point, right, must, say, mani, want, believ, tri<br>--- said, realli, two, evid, law, govern, object, argument, state, without\", \"+++ said, well, right, say, want, believ, tri, come, even, make<br>--- atheist, realli, two, presid, point, must, went, mani, object, start\", \"+++ atheist, realli, well, right, say, mani, object, believ, tri, even<br>--- said, caltech, optilink, point, must, keith, show, want, gay, frank\", \"+++ world, could, time, also, problem, system<br>--- well, right, say, mani, develop, lunar, news, project, thing, moon\", \"+++ even, could, peopl, make, time, also, say, mani, good, think<br>--- well, two, right, develop, thing, inform, chip, world, clipper, need\", \"+++ even, make, well, time, take, point, right, say, think, good<br>--- hockey, two, mani, nhl, thing, also, score, world, question, season\", \"+++ time, point, also, want, problem, good, system<br>--- modem, well, two, floppi, right, say, mani, thank, access, thing\", \"+++ must, tri, may, follow<br>--- well, right, check, say, mani, char, thing, also, sourc, inform\", \"+++ point, right, say, mani, want, believ, come, even, make, thing<br>--- atheist, said, realli, well, law, must, arab, live, object, state\", \"+++ realli, well, right, say, want, tri, even, make, thing, also<br>--- atheist, car, said, two, first, point, must, wire, turn, mani\", \"+++ world, also, time, peopl<br>--- armi, well, turkey, right, say, mani, kent, sandvik, thing, sourc\", \"+++ world, could, make, find, time, also, want, peopl, system, may<br>--- server, cunixb, well, right, say, newsgroup, mani, thank, news, thing\"], [\"+++ could, peopl, make, time, key, two, law, right, new, also<br>--- car, well, azeri, turkey, presid, develop, access, serdar, german, inform\", \"+++ <br>--- two, presid, c8v, right, b8f, develop, okz, access, qtm, wm4u\", \"+++ program, need, time, new, also, distribut, data, work, system, inform<br>--- server, two, presid, right, thank, develop, display, access, chip, clipper\", \"+++ way, make, time, two, law, right, also, think, govern, peopl<br>--- well, presid, say, mani, develop, without, access, thing, inform, chip\", \"+++ could, peopl, make, time, two, presid, right, also, think, year<br>--- well, say, went, develop, access, made, stephanopoulo, thing, inform, chip\", \"+++ could, time, make, right, think, peopl, state, system<br>--- well, two, presid, say, mani, develop, access, opinion, thing, also\", \"+++ year, program, could, time, launch, also, data, new, technolog, space<br>--- two, presid, right, lunar, news, access, project, moon, chip, world\", \"+++ encrypt, commun, two, law, govern, develop, data, escrow, secret, make<br>--- effect, presid, first, right, say, mani, clinton, pitt, netcom, privaci\", \"+++ make, time, two, new, right, year, think, first, way<br>--- hockey, well, presid, say, develop, access, nhl, also, score, inform\", \"+++ access, need, time, two, new, also, space, distribut, data, work<br>--- modem, presid, floppi, right, thank, develop, speed, sale, inform, chip\", \"+++ program, need, inform, year, first, may, comput<br>--- two, presid, right, check, develop, access, char, also, sourc, chip\", \"+++ could, make, time, law, also, right, think, may, peopl, state<br>--- two, presid, say, mani, develop, access, thing, inform, chip, world\", \"+++ way, could, need, make, time, two, right, new, also, distribut<br>--- car, well, presid, say, develop, access, thing, speed, inform, chip\", \"+++ year, time, public, also, new, peopl, state, work, first<br>--- armi, two, presid, turkey, right, develop, kent, sandvik, access, sourc\", \"+++ could, make, time, also, messag, distribut, privaci, may, peopl, system<br>--- server, cunixb, two, presid, right, newsgroup, thank, develop, news, access\"]], \"z\": [[0.8095238095238095, 1.0, 0.9583333333333334, 0.75, 0.7804878048780488, 0.8235294117647058, 0.9361702127659575, 0.8505747126436781, 0.8636363636363636, 0.9583333333333334, 0.9795918367346939, 0.6486486486486487, 0.8095238095238095, 0.9130434782608696, 0.9010989010989011], [0.8095238095238095, 1.0, 0.8095238095238095, 0.7341772151898734, 0.7341772151898734, 0.717948717948718, 0.9010989010989011, 0.7654320987654322, 0.8372093023255813, 0.8235294117647058, 0.9583333333333334, 0.7341772151898734, 0.6301369863013699, 0.9247311827956989, 0.8636363636363636], [0.8764044943820225, 1.0, 0.6111111111111112, 0.9473684210526316, 0.9130434782608696, 0.9473684210526316, 0.9010989010989011, 0.8764044943820225, 0.9473684210526316, 0.6486486486486487, 0.9473684210526316, 0.9473684210526316, 0.8235294117647058, 0.9361702127659575, 0.8235294117647058], [0.7804878048780488, 1.0, 0.9130434782608696, 0.7654320987654322, 0.6666666666666667, 0.7654320987654322, 0.9130434782608696, 0.8888888888888888, 0.7654320987654322, 0.8888888888888888, 0.9473684210526316, 0.7654320987654322, 0.5507246376811594, 0.9247311827956989, 0.9010989010989011], [0.8888888888888888, 0.5915492957746479, 0.9247311827956989, 0.9473684210526316, 0.9361702127659575, 0.9583333333333334, 0.9583333333333334, 0.9361702127659575, 0.9361702127659575, 0.8888888888888888, 0.98989898989899, 0.9473684210526316, 0.8636363636363636, 0.9473684210526316, 0.9361702127659575], [0.7012987012987013, 1.0, 0.9010989010989011, 0.8764044943820225, 0.6842105263157895, 0.8764044943820225, 0.9130434782608696, 0.8636363636363636, 0.8372093023255813, 0.9247311827956989, 0.8636363636363636, 0.8372093023255813, 0.7951807228915663, 0.7654320987654322, 0.9247311827956989], [0.8888888888888888, 1.0, 0.9473684210526316, 0.8505747126436781, 0.717948717948718, 0.9010989010989011, 0.9473684210526316, 0.9010989010989011, 0.33333333333333337, 0.9247311827956989, 0.9795918367346939, 0.8636363636363636, 0.7341772151898734, 0.9361702127659575, 0.9583333333333334], [0.8095238095238095, 1.0, 0.8505747126436781, 0.8764044943820225, 0.8636363636363636, 0.9361702127659575, 0.7341772151898734, 0.8095238095238095, 0.8764044943820225, 0.75, 0.9361702127659575, 0.8888888888888888, 0.7341772151898734, 0.9130434782608696, 0.8764044943820225], [0.9010989010989011, 1.0, 0.48484848484848486, 0.9247311827956989, 0.9130434782608696, 0.9583333333333334, 0.8505747126436781, 0.8636363636363636, 0.9473684210526316, 0.8372093023255813, 0.8636363636363636, 0.9361702127659575, 0.8505747126436781, 0.9247311827956989, 0.717948717948718], [0.75, 1.0, 0.8505747126436781, 0.8095238095238095, 0.7951807228915663, 0.8505747126436781, 0.9010989010989011, 0.8764044943820225, 0.8372093023255813, 0.7804878048780488, 0.9583333333333334, 0.8235294117647058, 0.7341772151898734, 0.9010989010989011, 0.8372093023255813], [0.8095238095238095, 1.0, 0.9361702127659575, 0.7341772151898734, 0.7654320987654322, 0.7804878048780488, 0.9010989010989011, 0.7654320987654322, 0.7804878048780488, 0.9010989010989011, 0.9583333333333334, 0.7804878048780488, 0.717948717948718, 0.8764044943820225, 0.9247311827956989], [0.9010989010989011, 1.0, 0.5294117647058824, 0.9690721649484536, 0.9473684210526316, 0.9795918367346939, 0.8372093023255813, 0.8888888888888888, 0.9583333333333334, 0.75, 0.8372093023255813, 0.9690721649484536, 0.8888888888888888, 0.9361702127659575, 0.717948717948718], [0.8505747126436781, 1.0, 0.9583333333333334, 0.5074626865671642, 0.75, 0.7654320987654322, 0.9361702127659575, 0.8235294117647058, 0.8505747126436781, 0.9247311827956989, 0.9795918367346939, 0.46153846153846156, 0.7804878048780488, 0.9473684210526316, 0.9130434782608696], [0.8764044943820225, 1.0, 0.9361702127659575, 0.5507246376811594, 0.717948717948718, 0.6301369863013699, 0.9361702127659575, 0.8636363636363636, 0.8636363636363636, 0.9247311827956989, 0.9583333333333334, 0.5294117647058824, 0.7654320987654322, 0.9583333333333334, 0.8888888888888888], [0.7804878048780488, 1.0, 0.8764044943820225, 0.8636363636363636, 0.8235294117647058, 0.9130434782608696, 0.7804878048780488, 0.5507246376811594, 0.9010989010989011, 0.8636363636363636, 0.9247311827956989, 0.8764044943820225, 0.8095238095238095, 0.9010989010989011, 0.8636363636363636]], \"type\": \"heatmap\", \"uid\": \"2bfdeb0a-21a9-47d4-a766-a8375b14fc14\"}], {\"height\": 950, \"title\": \"Topic difference (two models)[jaccard distance]\", \"width\": 950, \"xaxis\": {\"title\": \"topic\"}, \"yaxis\": {\"title\": \"topic\"}}, {\"showLink\": true, \"linkText\": \"Export to plot.ly\", \"plotlyServerURL\": \"https://plot.ly\"})});</script>" ], "text/vnd.plotly.v1+html": [ "<div id=\"e658128a-8e00-426f-b3a2-ee96583500cc\" style=\"height: 950px; width: 950px;\" class=\"plotly-graph-div\"></div><script type=\"text/javascript\">require([\"plotly\"], function(Plotly) { window.PLOTLYENV=window.PLOTLYENV || {};window.PLOTLYENV.BASE_URL=\"https://plot.ly\";Plotly.newPlot(\"e658128a-8e00-426f-b3a2-ee96583500cc\", [{\"colorscale\": \"RdBu\", \"text\": [[\"+++ world, could, peopl, make, well, time, two, nazi, right, also<br>--- car, azeri, turkey, say, mani, give, serdar, german, 000, question\", \"+++ <br>--- well, two, c8v, right, say, mani, b8f, okz, give, qtm\", \"+++ want, time, also, call<br>--- server, well, two, right, say, mani, thank, display, give, inform\", \"+++ well, two, right, say, mani, want, govern, state, even, make<br>--- atheist, said, evid, point, must, law, arab, american, live, palestinian\", \"+++ even, could, said, kill, well, make, two, time, peopl, right<br>--- presid, went, mani, give, made, stephanopoulo, thing, happen, world, 000\", \"+++ even, world, could, make, well, time, right, say, mani, think<br>--- two, give, opinion, thing, also, sgi, 000, jewish, question, much\", \"+++ world, could, time, also, nation, year<br>--- well, two, right, say, mani, develop, lunar, news, give, project\", \"+++ even, could, make, time, two, also, say, mani, govern, peopl<br>--- well, right, develop, give, inform, chip, world, clipper, need, number\", \"+++ even, make, well, time, two, right, say, think, much, year<br>--- hockey, mani, give, nhl, also, score, world, 000, jewish, question\", \"+++ two, time, also, want<br>--- modem, well, floppi, right, say, mani, thank, access, give, speed\", \"+++ jewish, year<br>--- well, two, right, check, say, mani, give, char, also, sourc\", \"+++ right, arab, say, live, mani, want, state, israel, even, fact<br>--- said, well, two, point, law, american, palestinian, believ, govern, case\", \"+++ even, could, make, well, time, two, right, also, say, want<br>--- car, mani, give, thing, speed, world, need, 000, jewish, question\", \"+++ year, world, time, 000, also, nation, peopl, state<br>--- armi, well, two, turkey, right, say, mani, kent, sandvik, give\", \"+++ world, could, make, time, also, columbia, want, peopl, insur<br>--- server, cunixb, well, two, right, say, newsgroup, mani, thank, news\"], [\"+++ could, make, well, time, key, law, right, new, also, look<br>--- car, two, azeri, turkey, say, thing, serdar, sgi, german, chip\", \"+++ <br>--- well, c8v, right, say, b8f, okz, qtm, wm4u, thing, also\", \"+++ need, time, bit, anyon, also, new, look, distribut, want, run<br>--- server, well, right, say, thank, display, thing, sgi, inform, chip\", \"+++ well, law, right, say, want, state, tri, even, make, thing<br>--- atheist, realli, two, evid, point, must, indiana, mani, run, govern\", \"+++ well, right, say, want, state, tri, even, make, thing, also<br>--- said, realli, two, presid, law, went, indiana, run, believ, disk\", \"+++ realli, well, right, say, state, tri, even, make, thing, sgi<br>--- atheist, caltech, optilink, law, keith, show, indiana, mani, gay, want\", \"+++ could, time, new, also, distribut, problem, softwar, work, system<br>--- well, right, say, develop, lunar, news, project, thing, moon, sgi\", \"+++ law, say, even, make, new, also, chip, need, good, work<br>--- realli, well, two, right, mani, netcom, run, data, develop, thing\", \"+++ even, make, well, time, take, right, new, say, look, think<br>--- hockey, two, nhl, thing, also, sgi, score, chip, need, question\", \"+++ need, time, drive, also, new, look, distribut, want, system, problem<br>--- modem, well, two, floppi, right, say, thank, access, thing, speed\", \"+++ read, need, tri, may<br>--- well, right, check, say, char, thing, also, sourc, sgi, inform\", \"+++ law, right, say, want, state, even, make, thing, also, see<br>--- realli, well, point, arab, live, mani, indiana, run, believ, disk\", \"+++ realli, well, right, say, want, run, state, tri, even, make<br>--- car, two, first, law, wire, indiana, turn, disk, system, got\", \"+++ time, also, new, org, peopl, state, work<br>--- armi, well, turkey, right, say, kent, sandvik, thing, sourc, serdar\", \"+++ could, make, time, also, distribut, want, org, run, system, peopl<br>--- server, cunixb, well, right, say, newsgroup, thank, news, thing, sgi\"], [\"+++ could, make, time, also, new, repli, look, distribut, want, work<br>--- car, well, two, azeri, turkey, right, thank, speed, serdar, simm\", \"+++ <br>--- c8v, b8f, thank, okz, qtm, wm4u, also, speed, simm, chip\", \"+++ want, color, run, thank, mac, mous, set, tri, system, help<br>--- server, imag, applic, repli, monitor, vga, disk, ide, data, instal\", \"+++ time, make, also, want, tri<br>--- well, two, right, say, mani, thank, without, thing, speed, simm\", \"+++ could, make, time, also, look, want, work, tri<br>--- well, two, presid, right, say, went, thank, made, stephanopoulo, thing\", \"+++ could, time, make, system, tri<br>--- well, right, say, mani, thank, opinion, thing, also, speed, simm\", \"+++ could, time, new, also, distribut, problem, scsi, work, system<br>--- thank, develop, lunar, news, project, speed, simm, moon, inform, chip\", \"+++ could, need, make, time, comput, bit, also, new, work, system<br>--- two, say, mani, thank, develop, speed, simm, inform, clipper, number\", \"+++ make, time, new, look, run<br>--- hockey, well, two, right, say, thank, nhl, also, speed, simm\", \"+++ repli, monitor, want, thank, disk, ide, system, pin, new, also<br>--- modem, price, two, point, floppi, motherboard, origin, mac, run, vga\", \"+++ need, help, pleas, tri, comput<br>--- check, thank, char, also, sourc, speed, simm, inform, chip, number\", \"+++ could, time, make, also, want<br>--- right, say, mani, thank, thing, speed, simm, chip, world, need\", \"+++ could, need, make, time, drive, new, also, speed, look, distribut<br>--- car, well, two, right, say, thank, thing, simm, chip, dod\", \"+++ time, appl, also, new, repli, work<br>--- armi, turkey, thank, kent, sandvik, sourc, speed, serdar, simm, chip\", \"+++ window, could, make, time, help, also, repli, distribut, want, run<br>--- server, cunixb, newsgroup, news, speed, simm, inform, chip, world, need\"], [\"+++ world, could, car, make, well, time, peopl, right, look, repli<br>--- armenia, realli, two, azeri, law, turkey, ingr, pass, greek, mani\", \"+++ <br>--- car, well, c8v, right, say, mani, b8f, okz, qtm, wm4u\", \"+++ need, time, anyon, look, distribut, want, problem, tri<br>--- server, car, well, right, say, mani, thank, display, thing, also\", \"+++ well, point, right, say, mani, want, state, tri, even, make<br>--- atheist, car, realli, two, evid, first, must, repli, law, govern\", \"+++ well, right, say, want, state, tri, got, even, make, thing<br>--- said, car, realli, two, presid, point, repli, went, mani, believ\", \"+++ realli, well, right, say, mani, state, tri, even, make, thing<br>--- car, show, gay, frank, object, got, cramer, put, opinion, gov\", \"+++ world, could, gov, time, distribut, problem, year, first<br>--- car, well, right, say, mani, develop, lunar, news, project, thing\", \"+++ even, could, need, make, time, peopl, say, mani, good, think<br>--- car, well, two, right, develop, thing, also, inform, chip, happen\", \"+++ well, point, right, say, even, make, year, see, better, look<br>--- period, game, car, play, hockey, two, realli, hit, repli, weapon\", \"+++ need, time, point, look, repli, distribut, want, problem, good, anyon<br>--- modem, car, well, two, floppi, right, say, mani, thank, access\", \"+++ need, tri, year, read, first<br>--- car, well, right, check, say, mani, char, thing, sourc, inform\", \"+++ point, right, say, mani, want, state, even, make, thing, see<br>--- car, realli, well, law, first, arab, repli, live, believ, tri\", \"+++ car, realli, well, right, say, want, state, tri, got, even<br>--- two, point, wire, repli, mani, turn, run, put, gov, new\", \"+++ year, world, time, repli, peopl, state, first<br>--- armi, car, well, turkey, right, say, mani, kent, sandvik, thing\", \"+++ world, could, make, time, repli, distribut, want, peopl, anyon<br>--- server, car, cunixb, well, right, say, newsgroup, mani, thank, news\"], [\"+++ car, make, time, new, look, repli, distribut, want, think, engin<br>--- well, two, azeri, turkey, right, c8v, b8f, okz, also, serdar\", \"+++ 2tm, 1eq, c8v, 2di, b8f, 1d9, 7ey, max, okz, b8e<br>--- dyer, car, 1d9l, repli, want, 7ez, r8f, f9d, brake, mile\", \"+++ need, time, new, look, distribut, want, anyon<br>--- server, car, c8v, b8f, thank, okz, display, also, uchicago, inform\", \"+++ time, make, want, good, think<br>--- car, well, two, right, c8v, say, mani, b8f, without, okz\", \"+++ time, make, look, want, good, think<br>--- car, well, two, presid, right, c8v, say, went, b8f, okz\", \"+++ time, think, make, good<br>--- car, well, right, c8v, say, mani, b8f, okz, opinion, thing\", \"+++ time, new, engin, distribut<br>--- car, c8v, b8f, develop, okz, lunar, news, project, also, moon\", \"+++ need, time, make, new, good, think<br>--- car, two, c8v, say, mani, b8f, develop, okz, also, uchicago\", \"+++ time, make, new, look, good, think<br>--- car, hockey, well, two, right, c8v, say, b8f, okz, nhl\", \"+++ need, time, new, look, repli, usa, want, distribut, good, anyon<br>--- modem, car, two, floppi, c8v, b8f, thank, okz, access, also\", \"+++ need<br>--- car, c8v, check, b8f, okz, char, sourc, uchicago, inform, number\", \"+++ time, make, want, good, think<br>--- car, right, c8v, say, mani, b8f, okz, thing, also, uchicago\", \"+++ car, make, need, time, new, look, usa, want, distribut, good<br>--- well, two, right, c8v, say, b8f, okz, thing, also, speed\", \"+++ time, new, repli, umd, eng<br>--- armi, car, turkey, c8v, b8f, kent, sandvik, okz, also, sourc\", \"+++ time, make, repli, distribut, want, anyon<br>--- server, car, cunixb, c8v, newsgroup, b8f, thank, okz, news, also\"], [\"+++ armenia, well, two, turkey, right, greek, want, turk, new, serdar<br>--- car, said, azeri, law, file, repli, ingr, pass, live, say\", \"+++ <br>--- well, two, turkey, c8v, right, say, went, b8f, okz, qtm\", \"+++ program, need, time, work, new, look, want, file, call<br>--- server, well, two, turkey, right, say, went, thank, display, also\", \"+++ even, time, well, two, right, say, want, think, peopl, see<br>--- turkey, went, mani, without, thing, also, serdar, world, need, number\", \"+++ said, well, two, right, say, went, want, start, come, even<br>--- armenia, presid, turkey, file, azerbaijani, live, greek, believ, state, return\", \"+++ even, world, could, time, well, right, say, think, someth, peopl<br>--- two, turkey, went, mani, opinion, thing, serdar, sgi, need, number\", \"+++ program, world, could, time, new, year, work, first<br>--- well, two, turkey, right, say, went, develop, lunar, news, project\", \"+++ even, could, need, time, number, two, work, new, say, peopl<br>--- well, turkey, right, went, mani, develop, also, serdar, inform, chip\", \"+++ even, time, well, two, right, new, say, look, think, start<br>--- hockey, turkey, went, nhl, serdar, score, world, need, number, season\", \"+++ need, time, two, new, look, want, work<br>--- modem, well, turkey, floppi, right, say, went, thank, access, also\", \"+++ rule, program, need, number, output, file, build, name, year, return<br>--- well, two, turkey, right, check, say, went, char, sourc, serdar\", \"+++ even, world, could, kill, time, right, say, live, want, think<br>--- well, two, turkey, went, mani, thing, also, serdar, need, number\", \"+++ even, could, need, time, well, two, right, new, say, look<br>--- car, turkey, went, thing, also, speed, serdar, world, number, dod\", \"+++ armenia, turkey, file, muslim, turk, new, serdar, year, world, number<br>--- armi, david, well, two, right, say, went, greek, popul, kent\", \"+++ world, could, time, file, want, name, peopl<br>--- server, cunixb, well, two, turkey, right, say, newsgroup, went, thank\"], [\"+++ make, well, time, two, new, right, also, look, year, think<br>--- car, hockey, azeri, turkey, presid, say, stephanopoulo, nhl, serdar, german\", \"+++ <br>--- hockey, well, two, presid, c8v, right, say, b8f, okz, qtm\", \"+++ time, also, look, new, run<br>--- server, hockey, well, two, presid, right, say, thank, display, stephanopoulo\", \"+++ even, make, well, time, two, point, right, also, say, think<br>--- hockey, presid, mani, without, stephanopoulo, thing, nhl, score, question, constitut\", \"+++ said, well, two, presid, right, say, start, got, come, even<br>--- game, play, hockey, point, hit, went, want, win, run, believ\", \"+++ even, make, well, time, right, say, think, good, see<br>--- hockey, two, presid, mani, opinion, stephanopoulo, thing, nhl, also, sgi\", \"+++ time, new, also, year, first<br>--- hockey, well, two, presid, right, say, develop, lunar, news, project\", \"+++ even, make, time, two, new, also, say, good, think<br>--- hockey, well, presid, right, mani, develop, stephanopoulo, nhl, inform, chip\", \"+++ game, play, hockey, well, two, point, right, hit, say, win<br>--- period, said, presid, weapon, next, got, come, stephanopoulo, also, day\", \"+++ time, two, point, new, look, also, good<br>--- modem, hockey, well, presid, floppi, right, say, thank, access, stephanopoulo\", \"+++ first, year<br>--- hockey, well, two, presid, right, check, say, char, stephanopoulo, nhl\", \"+++ day, even, make, time, point, right, also, say, think, good<br>--- hockey, well, two, presid, mani, stephanopoulo, thing, nhl, score, world\", \"+++ well, two, right, say, run, got, even, make, new, also<br>--- game, car, realli, said, play, wire, hockey, point, want, turn\", \"+++ time, also, new, toronto, year, first<br>--- armi, hockey, well, two, presid, turkey, right, say, kent, sandvik\", \"+++ also, run, make, time<br>--- server, cunixb, hockey, well, two, presid, right, say, newsgroup, thank\"], [\"+++ could, make, well, time, two, new, also, repli, sun, look<br>--- car, current, azeri, turkey, right, serdar, sale, german, world, need\", \"+++ <br>--- well, current, two, c8v, b8f, okz, qtm, wm4u, also, sale\", \"+++ need, time, imag, also, new, look, includ, want, distribut, run<br>--- server, well, current, two, thank, display, sale, inform, question, softwar\", \"+++ make, well, time, two, point, question, also, want, good, may<br>--- current, right, say, mani, without, thing, sale, need, constitut, much\", \"+++ could, make, well, time, two, also, look, want, good, year<br>--- current, presid, right, say, went, made, stephanopoulo, thing, sale, happen\", \"+++ could, time, make, well, good, system<br>--- current, two, right, say, mani, opinion, thing, also, sale, sgi\", \"+++ imag, system, gov, scienc, also, new, year, space, center, includ<br>--- well, fund, current, two, point, wire, satellit, repli, 1993, want\", \"+++ could, need, make, scienc, time, two, work, new, also, pitt<br>--- well, current, say, mani, develop, sale, inform, chip, clipper, number\", \"+++ make, well, time, two, point, new, look, good, run, year<br>--- hockey, current, right, say, nhl, also, sale, score, need, question\", \"+++ two, point, repli, want, offer, new, also, power, sale, need<br>--- modem, imag, current, price, first, well, floppi, motherboard, wire, monitor\", \"+++ need, includ, year, first, may, comput<br>--- well, current, two, check, char, also, sourc, sale, inform, number\", \"+++ could, make, time, point, question, also, want, book, good, may<br>--- well, current, two, right, say, mani, thing, sale, world, need\", \"+++ well, two, wire, want, run, make, new, also, year, need<br>--- car, realli, imag, current, right, say, point, repli, turn, pitt\", \"+++ time, also, new, repli, center, year, work, first<br>--- armi, well, current, two, turkey, kent, sandvik, sourc, serdar, sale\", \"+++ could, make, time, also, repli, distribut, want, run, system, may<br>--- server, cunixb, current, two, well, newsgroup, thank, news, sale, inform\"], [\"+++ make, time, also, look, repli, distribut, want, work, way<br>--- server, client, car, well, two, azeri, turkey, right, resourc, thank\", \"+++ <br>--- server, client, c8v, b8f, resourc, thank, okz, display, qtm, wm4u\", \"+++ server, applic, want, color, run, thank, data, set, tri, display<br>--- client, imag, motif, repli, resourc, mac, mous, make, graphic, new\", \"+++ way, make, time, also, want, tri, may<br>--- server, client, well, two, right, say, mani, resourc, thank, without\", \"+++ make, time, also, look, want, work, tri, way<br>--- server, client, well, two, presid, right, say, went, resourc, thank\", \"+++ time, system, tri, make<br>--- server, client, well, right, say, mani, resourc, thank, display, opinion\", \"+++ program, time, softwar, also, group, includ, distribut, avail, problem, data<br>--- server, client, resourc, thank, develop, display, lunar, news, project, sourc\", \"+++ need, make, time, number, bit, work, also, may, data, call<br>--- server, client, two, say, mani, resourc, thank, develop, display, sourc\", \"+++ time, make, look, run, way<br>--- server, client, hockey, well, two, right, say, resourc, thank, display\", \"+++ need, time, also, look, repli, includ, want, distribut, thank, problem<br>--- modem, server, client, two, floppi, resourc, display, access, sourc, speed\", \"+++ program, need, help, number, sourc, includ, name, mail, may, file<br>--- server, client, check, resourc, thank, display, char, also, lib, jewish\", \"+++ way, make, time, also, want, may<br>--- server, client, right, say, mani, resourc, thank, display, thing, sourc\", \"+++ way, need, make, time, also, look, distribut, want, run, problem<br>--- server, client, car, well, two, right, say, resourc, thank, display\", \"+++ time, number, also, sourc, repli, file, work<br>--- armi, server, client, turkey, resourc, thank, kent, sandvik, display, serdar\", \"+++ server, repli, want, run, thank, make, help, also, inform, window<br>--- client, anonym, cunixb, motif, applic, newsgroup, color, resourc, privaci, data\"], [\"+++ well, two, right, repli, want, state, make, new, also, convex<br>--- car, armenia, azeri, law, turkey, say, ingr, pass, greek, run\", \"+++ <br>--- well, two, c8v, right, say, b8f, thank, okz, access, opinion\", \"+++ time, also, new, look, distribut, want, run, thank, problem, pleas<br>--- server, well, two, right, say, display, access, opinion, inform, world\", \"+++ peopl, make, well, time, two, question, right, also, say, human<br>--- mani, thank, without, access, opinion, thing, world, great, constitut, dod\", \"+++ peopl, make, well, time, two, right, also, say, look, want<br>--- presid, went, run, thank, ask, got, tax, access, kill, opinion\", \"+++ world, peopl, opinion, make, well, time, right, say, think, system<br>--- two, mani, thank, access, thing, also, sgi, great, question, dod\", \"+++ year, world, time, new, also, distribut, problem, base, system<br>--- well, two, right, say, thank, develop, lunar, news, access, opinion\", \"+++ peopl, make, time, two, also, new, say, good, think, system<br>--- well, right, mani, thank, develop, access, opinion, inform, chip, world\", \"+++ make, well, time, two, right, new, say, look, good, run<br>--- hockey, thank, access, opinion, nhl, also, score, world, great, question\", \"+++ access, time, two, new, also, repli, look, usa, want, distribut<br>--- modem, well, floppi, right, say, opinion, speed, sale, world, need\", \"+++ comput, pleas, tri, year<br>--- well, two, right, check, say, thank, access, char, opinion, also\", \"+++ world, peopl, make, time, question, right, also, say, human, want<br>--- well, two, mani, thank, access, opinion, thing, great, jewish, dod\", \"+++ well, two, right, say, want, run, state, tri, make, new<br>--- car, realli, first, wire, repli, turn, thank, net, bnr, pyron\", \"+++ world, peopl, time, also, new, repli, org, year, state<br>--- armi, well, two, turkey, right, say, thank, kent, sandvik, access\", \"+++ world, make, time, also, repli, distribut, want, org, run, thank<br>--- server, cunixb, well, two, right, say, newsgroup, news, access, opinion\"], [\"+++ crime, could, car, make, well, time, two, peopl, law, right<br>--- armenia, azeri, turkey, file, say, pass, weapon, greek, mani, health\", \"+++ <br>--- car, well, two, c8v, right, say, mani, b8f, okz, qtm\", \"+++ time, new, also, problem, file, system<br>--- server, car, well, two, right, say, mani, thank, display, thing\", \"+++ well, two, law, right, say, mani, state, even, make, thing<br>--- atheist, car, evid, point, first, must, file, weapon, want, govern\", \"+++ well, two, right, say, state, even, make, thing, also, year<br>--- car, presid, weapon, went, mani, health, ask, got, tax, crime\", \"+++ even, could, peopl, make, well, time, person, thing, right, say<br>--- car, realli, two, show, weapon, gay, frank, object, health, cramer\", \"+++ could, time, new, also, system, problem, scsi, year, first<br>--- car, well, two, right, say, mani, develop, lunar, news, project\", \"+++ two, law, say, mani, case, even, make, new, also, number<br>--- car, well, right, weapon, netcom, data, develop, health, crime, thing\", \"+++ even, make, well, firearm, two, time, gun, right, new, say<br>--- car, hockey, file, mani, run, health, crime, nhl, also, thing\", \"+++ time, two, also, new, problem, scsi, good, control, system<br>--- modem, car, well, floppi, right, say, mani, thank, access, thing\", \"+++ file, first, number, year<br>--- car, well, two, right, check, say, mani, char, thing, also\", \"+++ day, even, could, peopl, make, time, person, law, right, thing<br>--- car, well, two, arab, weapon, health, crime, kill, christ, new\", \"+++ car, well, two, right, say, state, even, make, thing, new<br>--- realli, law, wire, file, weapon, want, turn, mani, run, health\", \"+++ peopl, report, time, number, public, also, new, file, year, state<br>--- armi, car, well, two, turkey, right, say, mani, kent, sandvik\", \"+++ could, time, make, also, file, peopl, system<br>--- server, car, cunixb, well, two, right, say, newsgroup, mani, thank\"], [\"+++ time, also, new, look, repli, distribut, want, work, comput<br>--- car, well, two, azeri, turkey, right, thank, serdar, sale, german\", \"+++ <br>--- c8v, b8f, thank, okz, qtm, wm4u, also, sale, inform, 3di\", \"+++ imag, file, want, mac, run, thank, data, system, program, help<br>--- server, price, applic, repli, color, netcom, mous, set, display, tri\", \"+++ want, also, time<br>--- well, two, right, say, mani, thank, without, thing, sale, inform\", \"+++ time, also, look, want, work<br>--- well, two, presid, right, say, went, thank, made, stephanopoulo, thing\", \"+++ system, time<br>--- well, right, say, mani, thank, opinion, thing, also, sale, sgi\", \"+++ program, time, imag, softwar, new, also, graphic, includ, distribut, avail<br>--- thank, develop, lunar, news, project, sale, moon, world, need, group\", \"+++ need, time, also, new, netcom, data, work, system, inform, comput<br>--- two, say, mani, thank, develop, sale, chip, clipper, number, softwar\", \"+++ new, run, look, time<br>--- hockey, well, two, right, say, thank, nhl, also, sale, score\", \"+++ price, repli, want, thank, data, system, new, also, sale, need<br>--- modem, imag, two, point, floppi, motherboard, file, monitor, origin, mac\", \"+++ info, program, need, address, list, help, includ, send, pleas, mail<br>--- check, thank, char, also, sourc, sale, number, lib, jewish, titl\", \"+++ want, also, time<br>--- right, say, mani, thank, thing, sale, inform, world, need, question\", \"+++ need, time, drive, new, also, look, distribut, want, run, work<br>--- car, well, two, right, say, thank, thing, speed, sale, inform\", \"+++ time, also, new, repli, file, work<br>--- armi, turkey, thank, kent, sandvik, sourc, serdar, sale, inform, world\", \"+++ repli, want, run, thank, system, help, also, inform, window, pleas<br>--- server, anonym, cunixb, imag, price, newsgroup, mac, netcom, privaci, data\"], [\"+++ world, could, make, well, time, two, law, new, also, want<br>--- car, azeri, turkey, right, say, mani, thing, serdar, german, question\", \"+++ <br>--- well, two, c8v, say, mani, b8f, okz, qtm, wm4u, thing\", \"+++ want, new, also, time<br>--- server, well, two, say, mani, thank, display, thing, inform, world\", \"+++ well, two, point, law, say, mani, want, believ, argument, even<br>--- atheist, said, evid, right, must, govern, state, without, tri, come\", \"+++ said, well, two, say, want, believ, come, even, make, thing<br>--- presid, point, right, law, went, mani, argument, start, state, seem\", \"+++ well, say, mani, believ, even, make, thing, see, world, god<br>--- atheist, said, caltech, optilink, realli, two, point, right, keith, show\", \"+++ world, could, time, scienc, new, also<br>--- well, two, say, mani, develop, lunar, news, project, thing, moon\", \"+++ even, could, peopl, make, scienc, time, two, law, new, also<br>--- well, develop, thing, inform, chip, world, clipper, need, number, question\", \"+++ even, make, well, time, two, point, new, say, think, much<br>--- hockey, right, mani, nhl, thing, also, score, world, question, season\", \"+++ time, two, point, new, also, want, good<br>--- modem, well, floppi, say, mani, thank, access, thing, speed, sale\", \"+++ read, may<br>--- well, two, check, say, mani, char, thing, also, sourc, inform\", \"+++ point, law, say, mani, want, believ, come, even, make, thing<br>--- said, well, two, right, arab, live, argument, state, israel, fact\", \"+++ day, even, way, could, make, well, time, two, thing, new<br>--- car, realli, said, first, point, right, wire, law, turn, mani\", \"+++ world, time, also, new, peopl<br>--- armi, well, two, turkey, say, mani, kent, sandvik, thing, sourc\", \"+++ world, could, make, time, also, want, peopl, may<br>--- server, cunixb, well, two, say, newsgroup, mani, thank, news, thing\"], [\"+++ world, could, make, well, time, also, right, want, peopl, think<br>--- car, two, azeri, turkey, say, mani, thing, serdar, german, question\", \"+++ <br>--- well, c8v, right, say, mani, b8f, okz, qtm, wm4u, thing\", \"+++ time, also, want, system, problem, tri<br>--- server, well, right, say, mani, thank, display, thing, inform, world\", \"+++ atheist, well, point, right, must, say, mani, want, believ, tri<br>--- said, realli, two, evid, law, govern, object, argument, state, without\", \"+++ said, well, right, say, want, believ, tri, come, even, make<br>--- atheist, realli, two, presid, point, must, went, mani, object, start\", \"+++ atheist, realli, well, right, say, mani, object, believ, tri, even<br>--- said, caltech, optilink, point, must, keith, show, want, gay, frank\", \"+++ world, could, time, also, problem, system<br>--- well, right, say, mani, develop, lunar, news, project, thing, moon\", \"+++ even, could, peopl, make, time, also, say, mani, good, think<br>--- well, two, right, develop, thing, inform, chip, world, clipper, need\", \"+++ even, make, well, time, take, point, right, say, think, good<br>--- hockey, two, mani, nhl, thing, also, score, world, question, season\", \"+++ time, point, also, want, problem, good, system<br>--- modem, well, two, floppi, right, say, mani, thank, access, thing\", \"+++ must, tri, may, follow<br>--- well, right, check, say, mani, char, thing, also, sourc, inform\", \"+++ point, right, say, mani, want, believ, come, even, make, thing<br>--- atheist, said, realli, well, law, must, arab, live, object, state\", \"+++ realli, well, right, say, want, tri, even, make, thing, also<br>--- atheist, car, said, two, first, point, must, wire, turn, mani\", \"+++ world, also, time, peopl<br>--- armi, well, turkey, right, say, mani, kent, sandvik, thing, sourc\", \"+++ world, could, make, find, time, also, want, peopl, system, may<br>--- server, cunixb, well, right, say, newsgroup, mani, thank, news, thing\"], [\"+++ could, peopl, make, time, key, two, law, right, new, also<br>--- car, well, azeri, turkey, presid, develop, access, serdar, german, inform\", \"+++ <br>--- two, presid, c8v, right, b8f, develop, okz, access, qtm, wm4u\", \"+++ program, need, time, new, also, distribut, data, work, system, inform<br>--- server, two, presid, right, thank, develop, display, access, chip, clipper\", \"+++ way, make, time, two, law, right, also, think, govern, peopl<br>--- well, presid, say, mani, develop, without, access, thing, inform, chip\", \"+++ could, peopl, make, time, two, presid, right, also, think, year<br>--- well, say, went, develop, access, made, stephanopoulo, thing, inform, chip\", \"+++ could, time, make, right, think, peopl, state, system<br>--- well, two, presid, say, mani, develop, access, opinion, thing, also\", \"+++ year, program, could, time, launch, also, data, new, technolog, space<br>--- two, presid, right, lunar, news, access, project, moon, chip, world\", \"+++ encrypt, commun, two, law, govern, develop, data, escrow, secret, make<br>--- effect, presid, first, right, say, mani, clinton, pitt, netcom, privaci\", \"+++ make, time, two, new, right, year, think, first, way<br>--- hockey, well, presid, say, develop, access, nhl, also, score, inform\", \"+++ access, need, time, two, new, also, space, distribut, data, work<br>--- modem, presid, floppi, right, thank, develop, speed, sale, inform, chip\", \"+++ program, need, inform, year, first, may, comput<br>--- two, presid, right, check, develop, access, char, also, sourc, chip\", \"+++ could, make, time, law, also, right, think, may, peopl, state<br>--- two, presid, say, mani, develop, access, thing, inform, chip, world\", \"+++ way, could, need, make, time, two, right, new, also, distribut<br>--- car, well, presid, say, develop, access, thing, speed, inform, chip\", \"+++ year, time, public, also, new, peopl, state, work, first<br>--- armi, two, presid, turkey, right, develop, kent, sandvik, access, sourc\", \"+++ could, make, time, also, messag, distribut, privaci, may, peopl, system<br>--- server, cunixb, two, presid, right, newsgroup, thank, develop, news, access\"]], \"z\": [[0.8095238095238095, 1.0, 0.9583333333333334, 0.75, 0.7804878048780488, 0.8235294117647058, 0.9361702127659575, 0.8505747126436781, 0.8636363636363636, 0.9583333333333334, 0.9795918367346939, 0.6486486486486487, 0.8095238095238095, 0.9130434782608696, 0.9010989010989011], [0.8095238095238095, 1.0, 0.8095238095238095, 0.7341772151898734, 0.7341772151898734, 0.717948717948718, 0.9010989010989011, 0.7654320987654322, 0.8372093023255813, 0.8235294117647058, 0.9583333333333334, 0.7341772151898734, 0.6301369863013699, 0.9247311827956989, 0.8636363636363636], [0.8764044943820225, 1.0, 0.6111111111111112, 0.9473684210526316, 0.9130434782608696, 0.9473684210526316, 0.9010989010989011, 0.8764044943820225, 0.9473684210526316, 0.6486486486486487, 0.9473684210526316, 0.9473684210526316, 0.8235294117647058, 0.9361702127659575, 0.8235294117647058], [0.7804878048780488, 1.0, 0.9130434782608696, 0.7654320987654322, 0.6666666666666667, 0.7654320987654322, 0.9130434782608696, 0.8888888888888888, 0.7654320987654322, 0.8888888888888888, 0.9473684210526316, 0.7654320987654322, 0.5507246376811594, 0.9247311827956989, 0.9010989010989011], [0.8888888888888888, 0.5915492957746479, 0.9247311827956989, 0.9473684210526316, 0.9361702127659575, 0.9583333333333334, 0.9583333333333334, 0.9361702127659575, 0.9361702127659575, 0.8888888888888888, 0.98989898989899, 0.9473684210526316, 0.8636363636363636, 0.9473684210526316, 0.9361702127659575], [0.7012987012987013, 1.0, 0.9010989010989011, 0.8764044943820225, 0.6842105263157895, 0.8764044943820225, 0.9130434782608696, 0.8636363636363636, 0.8372093023255813, 0.9247311827956989, 0.8636363636363636, 0.8372093023255813, 0.7951807228915663, 0.7654320987654322, 0.9247311827956989], [0.8888888888888888, 1.0, 0.9473684210526316, 0.8505747126436781, 0.717948717948718, 0.9010989010989011, 0.9473684210526316, 0.9010989010989011, 0.33333333333333337, 0.9247311827956989, 0.9795918367346939, 0.8636363636363636, 0.7341772151898734, 0.9361702127659575, 0.9583333333333334], [0.8095238095238095, 1.0, 0.8505747126436781, 0.8764044943820225, 0.8636363636363636, 0.9361702127659575, 0.7341772151898734, 0.8095238095238095, 0.8764044943820225, 0.75, 0.9361702127659575, 0.8888888888888888, 0.7341772151898734, 0.9130434782608696, 0.8764044943820225], [0.9010989010989011, 1.0, 0.48484848484848486, 0.9247311827956989, 0.9130434782608696, 0.9583333333333334, 0.8505747126436781, 0.8636363636363636, 0.9473684210526316, 0.8372093023255813, 0.8636363636363636, 0.9361702127659575, 0.8505747126436781, 0.9247311827956989, 0.717948717948718], [0.75, 1.0, 0.8505747126436781, 0.8095238095238095, 0.7951807228915663, 0.8505747126436781, 0.9010989010989011, 0.8764044943820225, 0.8372093023255813, 0.7804878048780488, 0.9583333333333334, 0.8235294117647058, 0.7341772151898734, 0.9010989010989011, 0.8372093023255813], [0.8095238095238095, 1.0, 0.9361702127659575, 0.7341772151898734, 0.7654320987654322, 0.7804878048780488, 0.9010989010989011, 0.7654320987654322, 0.7804878048780488, 0.9010989010989011, 0.9583333333333334, 0.7804878048780488, 0.717948717948718, 0.8764044943820225, 0.9247311827956989], [0.9010989010989011, 1.0, 0.5294117647058824, 0.9690721649484536, 0.9473684210526316, 0.9795918367346939, 0.8372093023255813, 0.8888888888888888, 0.9583333333333334, 0.75, 0.8372093023255813, 0.9690721649484536, 0.8888888888888888, 0.9361702127659575, 0.717948717948718], [0.8505747126436781, 1.0, 0.9583333333333334, 0.5074626865671642, 0.75, 0.7654320987654322, 0.9361702127659575, 0.8235294117647058, 0.8505747126436781, 0.9247311827956989, 0.9795918367346939, 0.46153846153846156, 0.7804878048780488, 0.9473684210526316, 0.9130434782608696], [0.8764044943820225, 1.0, 0.9361702127659575, 0.5507246376811594, 0.717948717948718, 0.6301369863013699, 0.9361702127659575, 0.8636363636363636, 0.8636363636363636, 0.9247311827956989, 0.9583333333333334, 0.5294117647058824, 0.7654320987654322, 0.9583333333333334, 0.8888888888888888], [0.7804878048780488, 1.0, 0.8764044943820225, 0.8636363636363636, 0.8235294117647058, 0.9130434782608696, 0.7804878048780488, 0.5507246376811594, 0.9010989010989011, 0.8636363636363636, 0.9247311827956989, 0.8764044943820225, 0.8095238095238095, 0.9010989010989011, 0.8636363636363636]], \"type\": \"heatmap\", \"uid\": \"2bfdeb0a-21a9-47d4-a766-a8375b14fc14\"}], {\"height\": 950, \"title\": \"Topic difference (two models)[jaccard distance]\", \"width\": 950, \"xaxis\": {\"title\": \"topic\"}, \"yaxis\": {\"title\": \"topic\"}}, {\"showLink\": true, \"linkText\": \"Export to plot.ly\", \"plotlyServerURL\": \"https://plot.ly\"})});</script>" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "mdiff, annotation = lda_fst.diff(lda_snd, distance='jaccard', num_words=50)\n", "plot_difference(mdiff, title=\"Topic difference (two models)[jaccard distance]\", annotation=annotation)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Looking at this matrix, you can find similar and different topics (and relevant tokens which describe the intersection and difference)." ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.7.1" } }, "nbformat": 4, "nbformat_minor": 2 }
6,259,678
Python
.py
2,291
2,721.787866
2,954,347
0.645215
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,924
summarization_tutorial.ipynb
piskvorky_gensim/docs/notebooks/summarization_tutorial.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "This tutorial has moved.\n", "\n", "Please see https://radimrehurek.com/gensim/auto_examples/." ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.6.8" } }, "nbformat": 4, "nbformat_minor": 2 }
626
Python
.py
34
14.970588
64
0.559122
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,925
Wordrank_comparisons.ipynb
piskvorky_gensim/docs/notebooks/Wordrank_comparisons.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Comparison of WordRank, Word2Vec and FastText\n", "\n", "[Wordrank](https://arxiv.org/pdf/1506.02761v3.pdf) is a fresh new approach to the word embeddings, which formulates it as a ranking problem. That is, given a word w, it aims to output an ordered list (c1, c2, · · ·) of context words such that words that co-occur with w appear at the top of the list. This formulation fits naturally to popular word embedding tasks such as word similarity/analogy since instead of the likelihood of each word, we are interested in finding the most relevant words in a given context<sup>[1]</sup>.\n", "\n", "This notebook accompanies a more theoretical blog post [here](https://rare-technologies.com/wordrank-embedding-crowned-is-most-similar-to-king-not-word2vecs-canute/).\n", "\n", "Gensim is used to train and evaluate the word2vec models. Analogical reasoning and Word Similarity tasks are used for comparing the models. Word2vec and FastText embeddings are trained using the skipgram architecture here." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Download and preprocess data" ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "[nltk_data] Downloading package brown to /home/misha/nltk_data...\n", "[nltk_data] Package brown is already up-to-date!\n" ] } ], "source": [ "import nltk\n", "from smart_open import smart_open\n", "from gensim.parsing.preprocessing import strip_punctuation, strip_multiple_whitespaces\n", "\n", "# Only the brown corpus is needed in case you don't have it.\n", "nltk.download('brown') \n", "\n", "# Generate brown corpus text file\n", "with smart_open('brown_corp.txt', 'w+') as f:\n", " for word in nltk.corpus.brown.words():\n", " f.write('{word} '.format(word=word))\n", " f.seek(0)\n", " brown = f.read()\n", "\n", "# Preprocess brown corpus\n", "with smart_open('proc_brown_corp.txt', 'w') as f:\n", " proc_brown = strip_punctuation(brown)\n", " proc_brown = strip_multiple_whitespaces(proc_brown).lower()\n", " f.write(proc_brown)\n", "\n", "# Set WR_HOME and FT_HOME to respective directory root\n", "WR_HOME = 'wordrank/'\n", "FT_HOME = 'fastText/'\n", "\n", "# download the text8 corpus (a 100 MB sample of preprocessed wikipedia text)\n", "import os.path\n", "if not os.path.isfile('text8'):\n", " !wget -c https://mattmahoney.net/dc/text8.zip\n", " !unzip text8.zip" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Train Models\n", "For training the models yourself, you'll need to have Gensim, FastText and Wordrank set up on your machine." ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "\n", "Training word2vec on proc_brown_corp.txt corpus..\n", "CPU times: user 44.6 s, sys: 85.5 ms, total: 44.7 s\n", "Wall time: 15.2 s\n" ] }, { "ename": "DeprecationWarning", "evalue": "Deprecated. Use model.wv.save_word2vec_format instead.", "output_type": "error", "traceback": [ "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", "\u001b[0;31mDeprecationWarning\u001b[0m Traceback (most recent call last)", "\u001b[0;32m<ipython-input-2-658d85b3cabf>\u001b[0m in \u001b[0;36m<module>\u001b[0;34m\u001b[0m\n\u001b[1;32m 76\u001b[0m \u001b[0mprint\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m'\\nUsing existing model file {:s}.vec'\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mformat\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0moutput_file\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 77\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 78\u001b[0;31m \u001b[0mtrain_models\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mcorpus_file\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;34m'proc_brown_corp.txt'\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0moutput_name\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;34m'brown'\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m", "\u001b[0;32m<ipython-input-2-658d85b3cabf>\u001b[0m in \u001b[0;36mtrain_models\u001b[0;34m(corpus_file, output_name)\u001b[0m\n\u001b[1;32m 42\u001b[0m \u001b[0;31m# Text8Corpus class for reading space-separated words file\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 43\u001b[0m \u001b[0mget_ipython\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mrun_line_magic\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m'time'\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m'gs_model = Word2Vec(Text8Corpus(corpus_file), **w2v_params); gs_model'\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 44\u001b[0;31m \u001b[0mlocals\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;34m'gs_model'\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0msave_word2vec_format\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mos\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mpath\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mjoin\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mMODELS_DIR\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m'{:s}.vec'\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mformat\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0moutput_file\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 45\u001b[0m \u001b[0mprint\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m'\\nSaved gensim model as {:s}.vec'\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mformat\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0moutput_file\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 46\u001b[0m \u001b[0;32melse\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", "\u001b[0;32m~/git/gensim/gensim/models/word2vec.py\u001b[0m in \u001b[0;36msave_word2vec_format\u001b[0;34m(self, fname, fvocab, binary)\u001b[0m\n\u001b[1;32m 1305\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1306\u001b[0m \"\"\"\n\u001b[0;32m-> 1307\u001b[0;31m \u001b[0;32mraise\u001b[0m \u001b[0mDeprecationWarning\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m\"Deprecated. Use model.wv.save_word2vec_format instead.\"\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 1308\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1309\u001b[0m \u001b[0;34m@\u001b[0m\u001b[0mclassmethod\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", "\u001b[0;31mDeprecationWarning\u001b[0m: Deprecated. Use model.wv.save_word2vec_format instead." ] } ], "source": [ "MODELS_DIR = 'models/'\n", "!mkdir -p {MODELS_DIR}\n", "\n", "from gensim.models import Word2Vec\n", "from gensim.models.wrappers import Wordrank\n", "from gensim.models.word2vec import Text8Corpus\n", "\n", "# fasttext params\n", "lr = 0.05\n", "dim = 100\n", "ws = 5\n", "epoch = 5\n", "minCount = 5\n", "neg = 5\n", "loss = 'ns'\n", "t = 1e-4\n", "\n", "w2v_params = {\n", " 'alpha': 0.025,\n", " 'size': 100,\n", " 'window': 15,\n", " 'iter': 5,\n", " 'min_count': 5,\n", " 'sample': t,\n", " 'sg': 1,\n", " 'hs': 0,\n", " 'negative': 5\n", "}\n", "\n", "wr_params = {\n", " 'size': 100,\n", " 'window': 15,\n", " 'iter': 91,\n", " 'min_count': 5\n", "}\n", "\n", "def train_models(corpus_file, output_name):\n", " # Train using word2vec\n", " output_file = '{:s}_gs'.format(output_name)\n", " if not os.path.isfile(os.path.join(MODELS_DIR, '{:s}.vec'.format(output_file))):\n", " print('\\nTraining word2vec on {:s} corpus..'.format(corpus_file))\n", " # Text8Corpus class for reading space-separated words file\n", " %time gs_model = Word2Vec(Text8Corpus(corpus_file), **w2v_params); gs_model\n", " locals()['gs_model'].save_word2vec_format(os.path.join(MODELS_DIR, '{:s}.vec'.format(output_file)))\n", " print('\\nSaved gensim model as {:s}.vec'.format(output_file))\n", " else:\n", " print('\\nUsing existing model file {:s}.vec'.format(output_file))\n", "\n", " # Train using fasttext\n", " output_file = '{:s}_ft'.format(output_name)\n", " if not os.path.isfile(os.path.join(MODELS_DIR, '{:s}.vec'.format(output_file))):\n", " print('Training fasttext on {:s} corpus..'.format(corpus_file))\n", " %time !{FT_HOME}fasttext skipgram -input {corpus_file} -output {MODELS_DIR+output_file} -lr {lr} -dim {dim} -ws {ws} -epoch {epoch} -minCount {minCount} -neg {neg} -loss {loss} -t {t}\n", " else:\n", " print('\\nUsing existing model file {:s}.vec'.format(output_file))\n", " \n", " # Train using wordrank\n", " output_file = '{:s}_wr'.format(output_name)\n", " output_dir = 'model' # directory to save embeddings and metadata to\n", " if not os.path.isfile(os.path.join(MODELS_DIR, '{:s}.vec'.format(output_file))):\n", " print('\\nTraining wordrank on {:s} corpus..'.format(corpus_file))\n", " %time wr_model = Wordrank.train(WR_HOME, corpus_file, output_dir, **wr_params); wr_model\n", " locals()['wr_model'].save_word2vec_format(os.path.join(MODELS_DIR, '{:s}.vec'.format(output_file)))\n", " print('\\nSaved wordrank model as {:s}.vec'.format(output_file))\n", " else:\n", " print('\\nUsing existing model file {:s}.vec'.format(output_file))\n", " \n", " # Loading ensemble embeddings\n", " output_file = '{:s}_wr_ensemble'.format(output_name)\n", " if not os.path.isfile(os.path.join(MODELS_DIR, '{:s}.vec'.format(output_file))):\n", " print('\\nLoading ensemble embeddings (vector combination of word and context embeddings)..')\n", " %time wr_model = Wordrank.load_wordrank_model(os.path.join(WR_HOME, 'model/wordrank.words'), os.path.join(WR_HOME, 'model/meta/vocab.txt'), os.path.join(WR_HOME, 'model/wordrank.contexts'), sorted_vocab=1, ensemble=1); wr_model\n", " locals()['wr_model'].wv.save_word2vec_format(os.path.join(MODELS_DIR, '{:s}.vec'.format(output_file)))\n", " print('\\nSaved wordrank (ensemble) model as {:s}.vec'.format(output_file))\n", " else:\n", " print('\\nUsing existing model file {:s}.vec'.format(output_file))\n", " \n", "train_models(corpus_file='proc_brown_corp.txt', output_name='brown')" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "train_models(corpus_file='text8', output_name='text8')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Here we train wordrank model using ensemble in second case as it is known to give a small performance boost in some cases. So we'll test accuracy for both the cases." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Comparisons" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "import logging\n", "logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO)\n", "\n", "def print_analogy_accuracy(model, questions_file):\n", " acc = model.accuracy(questions_file)\n", "\n", " sem_correct = sum((len(acc[i]['correct']) for i in range(5)))\n", " sem_total = sum((len(acc[i]['correct']) + len(acc[i]['incorrect'])) for i in range(5))\n", " sem_acc = 100*float(sem_correct)/sem_total\n", " print('\\nSemantic: {:d}/{:d}, Accuracy: {:.2f}%'.format(sem_correct, sem_total, sem_acc))\n", " \n", " syn_correct = sum((len(acc[i]['correct']) for i in range(5, len(acc)-1)))\n", " syn_total = sum((len(acc[i]['correct']) + len(acc[i]['incorrect'])) for i in range(5,len(acc)-1))\n", " syn_acc = 100*float(syn_correct)/syn_total\n", " print('Syntactic: {:d}/{:d}, Accuracy: {:.2f}%\\n'.format(syn_correct, syn_total, syn_acc))\n", " \n", "def print_similarity_accuracy(model, similarity_file):\n", " acc = model.evaluate_word_pairs(similarity_file)\n", " print('Pearson correlation coefficient: {:.2f}'.format(acc[0][0]))\n", " print('Spearman rank correlation coefficient: {:.2f}'.format(acc[1][0]))" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "MODELS_DIR = 'models/'\n", "word_analogies_file = './datasets/questions-words.txt'\n", "simlex_file = '../../gensim/test/test_data/simlex999.txt'\n", "wordsim_file = '../../gensim/test/test_data/wordsim353.tsv'\n", "\n", "print('\\nLoading Gensim embeddings')\n", "brown_gs = KeyedVectors.load_word2vec_format(MODELS_DIR + 'brown_gs.vec')\n", "print('Accuracy for Word2Vec:')\n", "print_analogy_accuracy(brown_gs, word_analogies_file)\n", "print('SimLex-999 similarity')\n", "print_similarity_accuracy(brown_gs, simlex_file)\n", "print('\\nWordSim-353 similarity')\n", "print_similarity_accuracy(brown_gs, wordsim_file)\n", "\n", "print('\\nLoading FastText embeddings')\n", "brown_ft = KeyedVectors.load_word2vec_format(MODELS_DIR + 'brown_ft.vec')\n", "print('Accuracy for FastText:')\n", "print_analogy_accuracy(brown_ft, word_analogies_file)\n", "print('SimLex-999 similarity')\n", "print_similarity_accuracy(brown_ft, simlex_file)\n", "print('\\nWordSim-353 similarity')\n", "print_similarity_accuracy(brown_ft, wordsim_file)\n", "\n", "print('\\nLoading Wordrank embeddings')\n", "brown_wr = KeyedVectors.load_word2vec_format(MODELS_DIR + 'brown_wr.vec')\n", "print('Accuracy for Wordrank:')\n", "print_analogy_accuracy(brown_wr, word_analogies_file)\n", "print('SimLex-999 similarity')\n", "print_similarity_accuracy(brown_wr, simlex_file)\n", "print('\\nWordSim-353 similarity')\n", "print_similarity_accuracy(brown_wr, wordsim_file)\n", "\n", "print('\\nLoading Wordrank ensemble embeddings')\n", "brown_wr_ensemble = KeyedVectors.load_word2vec_format(MODELS_DIR + 'brown_wr_ensemble.vec')\n", "print('Accuracy for Wordrank:')\n", "print_analogy_accuracy(brown_wr_ensemble, word_analogies_file)\n", "print('SimLex-999 similarity')\n", "print_similarity_accuracy(brown_wr_ensemble, simlex_file)\n", "print('\\nWordSim-353 similarity')\n", "print_similarity_accuracy(brown_wr_ensemble, wordsim_file)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "As evident from the above outputs, WordRank performs significantly better in Semantic analogies, whereas, FastText on Syntactic analogies. Also ensemble embeddings gives a small performance boost in WordRank's case.\n", "\n", "Wordrank's effectiveness in Semantic analogies is possibly due to it's focused attention on getting most relevant words right at the top using the ranking approach.\n", "And as fasttext is designed to incorporate morphological information about words, it results in it's performance boost in Syntactic analogies, as most of the Syntactic analogies are morphology based<sup>[2]</sup>.\n", "\n", "And for the Word Similarity, Word2Vec performed better on SimLex-999 test data, whereas, WordRank on WS-353. This is probably due to the different types of similarities these datasets address. SimLex-999 provides a measure of how well the two words are interchangeable in similar contexts, and WS-353 tries to estimate the relatedness or co-occurrence of two words. Also, ensemble embeddings doesn't help in the Word Similarity task<sup>[1]</sup>, which is evident from the results above so we'll use just the Word Embeddings for it. \n", "\n", "Now lets evaluate on a larger corpus, text8, and see how it effects the performance of different embedding models. " ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "print('Loading Gensim embeddings')\n", "text8_gs = KeyedVectors.load_word2vec_format(MODELS_DIR + 'text8_gs.vec')\n", "print('Accuracy for word2vec:')\n", "print_analogy_accuracy(text8_gs, word_analogies_file)\n", "print('SimLex-999 similarity')\n", "print_similarity_accuracy(text8_gs, simlex_file)\n", "print('\\nWordSim-353 similarity')\n", "print_similarity_accuracy(text8_gs, wordsim_file)\n", "\n", "print('Loading FastText embeddings')\n", "text8_ft = KeyedVectors.load_word2vec_format(MODELS_DIR + 'text8_ft.vec')\n", "print('Accuracy for FastText (with n-grams):')\n", "print_analogy_accuracy(text8_ft, word_analogies_file)\n", "print('SimLex-999 similarity')\n", "print_similarity_accuracy(text8_ft, simlex_file)\n", "print('\\nWordSim-353 similarity')\n", "print_similarity_accuracy(text8_ft, wordsim_file)\n", "\n", "print('\\nLoading Wordrank embeddings')\n", "text8_wr = KeyedVectors.load_word2vec_format(MODELS_DIR + 'text8_wr.vec')\n", "print('Accuracy for Wordrank:')\n", "print_analogy_accuracy(text8_wr, word_analogies_file)\n", "print('SimLex-999 similarity')\n", "print_similarity_accuracy(text8_wr, simlex_file)\n", "print('\\nWordSim-353 similarity')\n", "print_similarity_accuracy(text8_wr, wordsim_file)\n", "\n", "print('\\nLoading Wordrank ensemble embeddings')\n", "text8_wr_ensemble = KeyedVectors.load_word2vec_format(MODELS_DIR + 'text8_wr_ensemble.vec')\n", "print('Accuracy for Wordrank:')\n", "print_analogy_accuracy(text8_wr_ensemble, word_analogies_file)\n", "print('SimLex-999 similarity')\n", "print_similarity_accuracy(text8_wr_ensemble, simlex_file)\n", "print('\\nWordSim-353 similarity')\n", "print_similarity_accuracy(text8_wr_ensemble, wordsim_file)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "With a larger corpus, we observe similar patterns in the accuracies. Here also, WordRank dominates the Semantic analogies and FastText Syntactic ones. Word2Vec again performs better on SimLex-999 dataset and WordRank on WordSim-353.\n", "Though we observe a little performance decrease in WordRank in case of ensemble embeddings here, so it's good to try both the cases for evaluations.\n", "\n", "# Word Frequency and Model Performance\n", "\n", "In this section, we'll see if the frequency of a word has any effect on embedding model's performance in Analogy task. Accuracy vs. Frequency graph is used to analyze this effect. The mean frequency of four words involved in each analogy is computed, and then bucketed with other analogies having similar mean frequencies. Each bucket has six percent of the total analogies involved in the particular task. You can go to this [repo](https://github.com/parulsethi/EmbeddingVisData/tree/master/WordAnalogyFreq) if you want to inspect about what analogies(with their sorted frequencies) were used for each of the plot." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "from __future__ import division\n", "import matplotlib.pyplot as plt\n", "import copy\n", "import multiprocessing\n", "import numpy as np\n", "from smart_open import smart_open\n", "\n", "\n", "def compute_accuracies(model, freq):\n", " # mean_freq will contain analogies together with the mean frequency of 4 words involved\n", " mean_freq = {}\n", " with smart_open(word_analogies_file, 'r') as r:\n", " for i, line in enumerate(r):\n", " if ':' not in line:\n", " analogy = tuple(line.split())\n", " else:\n", " continue\n", " try:\n", " mfreq = sum([int(freq[x.lower()]) for x in analogy])/4\n", " mean_freq['a%d'%i] = [analogy, mfreq]\n", " except KeyError:\n", " continue\n", " \n", " # compute model's accuracy\n", " model = KeyedVectors.load_word2vec_format(model)\n", " acc = model.accuracy(word_analogies_file)\n", " \n", " sem_correct = [acc[i]['correct'] for i in range(5)]\n", " sem_total = [acc[i]['correct'] + acc[i]['incorrect'] for i in range(5)]\n", " syn_correct = [acc[i]['correct'] for i in range(5, len(acc)-1)]\n", " syn_total = [acc[i]['correct'] + acc[i]['incorrect'] for i in range(5, len(acc)-1)]\n", " total_correct = sem_correct + syn_correct\n", " total_total = sem_total + syn_total\n", "\n", " sem_x, sem_y = calc_axis(sem_correct, sem_total, mean_freq)\n", " syn_x, syn_y = calc_axis(syn_correct, syn_total, mean_freq)\n", " total_x, total_y = calc_axis(total_correct, total_total, mean_freq)\n", " return ((sem_x, sem_y), (syn_x, syn_y), (total_x, total_y))\n", "\n", "def calc_axis(correct, total, mean_freq):\n", " # make flat lists\n", " correct_analogies = []\n", " for i in range(len(correct)):\n", " for analogy in correct[i]:\n", " correct_analogies.append(analogy) \n", " total_analogies = []\n", " for i in range(len(total)):\n", " for analogy in total[i]:\n", " total_analogies.append(analogy)\n", "\n", " copy_mean_freq = copy.deepcopy(mean_freq)\n", " # delete other case's analogy from total analogies \n", " for key, value in copy_mean_freq.items():\n", " value[0] = tuple(x.upper() for x in value[0])\n", " if value[0] not in total_analogies:\n", " del copy_mean_freq[key]\n", "\n", " # append 0 or 1 for incorrect or correct analogy\n", " for key, value in copy_mean_freq.iteritems():\n", " value[0] = tuple(x.upper() for x in value[0])\n", " if value[0] in correct_analogies:\n", " copy_mean_freq[key].append(1)\n", " else:\n", " copy_mean_freq[key].append(0)\n", "\n", " x = []\n", " y = []\n", " bucket_size = int(len(copy_mean_freq) * 0.06)\n", " # sort analogies according to their mean frequences \n", " copy_mean_freq = sorted(copy_mean_freq.items(), key=lambda x: x[1][1])\n", " # prepare analogies buckets according to given size\n", " for centre_p in range(bucket_size//2, len(copy_mean_freq), bucket_size):\n", " bucket = copy_mean_freq[centre_p-bucket_size//2:centre_p+bucket_size//2]\n", " b_acc = 0\n", " # calculate current bucket accuracy with b_acc count\n", " for analogy in bucket:\n", " if analogy[1][2]==1:\n", " b_acc+=1\n", " y.append(b_acc/bucket_size)\n", " x.append(np.log(copy_mean_freq[centre_p][1][1]))\n", " return x, y\n", "\n", "# a sample model using gensim's Word2Vec for getting vocab counts\n", "corpus = Text8Corpus('proc_brown_corp.txt')\n", "model = Word2Vec(min_count=5)\n", "model.build_vocab(corpus)\n", "freq = {}\n", "for word in model.wv.index2word:\n", " freq[word] = model.wv.vocab[word].count\n", "\n", "# plot results\n", "word2vec = compute_accuracies('brown_gs.vec', freq)\n", "wordrank = compute_accuracies('brown_wr_ensemble.vec', freq)\n", "fasttext = compute_accuracies('brown_ft.vec', freq)\n", "\n", "fig = plt.figure(figsize=(7,15))\n", "\n", "for i, subplot, title in zip([0, 1, 2], ['311', '312', '313'], ['Semantic Analogies', 'Syntactic Analogies', 'Total Analogy']):\n", " ax = fig.add_subplot(subplot)\n", " ax.plot(word2vec[i][0], word2vec[i][1], 'r-', label='Word2Vec')\n", " ax.plot(wordrank[i][0], wordrank[i][1], 'g--', label='WordRank')\n", " ax.plot(fasttext[i][0], fasttext[i][1], 'b:', label='FastText')\n", " ax.set_ylabel('Average accuracy')\n", " ax.set_xlabel('Log mean frequency')\n", " ax.set_title(title)\n", " ax.legend(loc='upper right', prop={'size':10})\n", "\n", "plt.show()" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "This graph show the results trained over Brown corpus(1 million tokens).\n", "\n", "The main observations that can be drawn here are-\n", "1. In Semantic Analogies, all the models perform poorly for rare words as compared to their performance at more frequent words.\n", "2. In Syntactic Analogies, FastText performance is way better than Word2Vec and WordRank.\n", "3. If we go through the frequency range in Syntactic Analogies plot, FastText performance drops significantly at highly frequent words, whereas, for Word2Vec and WordRank there is no significant difference over the whole frequency range.\n", "4. End plot shows the results of combined Semantic and Syntactic Analogies. It has more resemblance to the Syntactic Analogy's plot because the total no. of Syntactic Analogies(=5461) is much greater than the total no. of Semantic ones(=852). So it's bound to trace the Syntactic's results as they have more weightage in the total analogies considered.\n", "\n", "Now, let’s see if a larger corpus creates any difference in this pattern of model's performance over different frequencies." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# a sample model using gensim's Word2Vec for getting vocab counts\n", "corpus = Text8Corpus('text8')\n", "model = Word2Vec(min_count=5)\n", "model.build_vocab(corpus)\n", "freq = {}\n", "for word in model.wv.index2word:\n", " freq[word] = model.wv.vocab[word].count\n", " \n", "word2vec = compute_accuracies('text8_gs.vec', freq)\n", "wordrank = compute_accuracies('text8_wr.vec', freq)\n", "fasttext = compute_accuracies('text8_ft.vec', freq)\n", "\n", "fig = plt.figure(figsize=(7,15))\n", "\n", "for i, subplot, title in zip([0, 1, 2], ['311', '312', '313'], ['Semantic Analogies', 'Syntactic Analogies', 'Total Analogy']):\n", " ax = fig.add_subplot(subplot)\n", " ax.plot(word2vec[i][0], word2vec[i][1], 'r-', label='Word2Vec')\n", " ax.plot(wordrank[i][0], wordrank[i][1], 'g--', label='WordRank')\n", " ax.plot(fasttext[i][0], fasttext[i][1], 'b:', label='FastText')\n", " ax.set_ylabel('Average accuracy')\n", " ax.set_xlabel('Log mean frequency')\n", " ax.set_title(title)\n", " ax.legend(loc='upper right', prop={'size':10})\n", "\n", "plt.show()" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "This shows the results for text8(17 million tokens). Following points can be observed in this case-\n", "\n", "1. For Semantic analogies, all the models perform comparatively poor on rare words and also when the word frequency is high towards the end.\n", "2. For Syntactic Analogies, FastText performance is fairly well on rare words but then falls steeply at highly frequent words.\n", "3. WordRank and Word2Vec perform very similar with low accuracy for rare and highly frequent words in Syntactic Analogies.\n", "4. FastText is again better in total analogies case due to the same reason described previously. Here the total no. of Semantic analogies is 7416 and Syntactic Analogies is 10411.\n", "\n", "These graphs also conclude that WordRank is the best suited method for Semantic Analogies, and FastText for Syntactic Analogies for all the frequency ranges and over different corpus sizes, though all the embedding methods could become very competitive as the corpus size increases largerly<sup>[2]</sup>. " ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Conclusions\n", "\n", "\n", "The experiments here conclude two main points from comparing Word embeddings. Firstly, there is no single global embedding model we could rely on for different types of NLP applications. For example, in Word Similarity, WordRank performed better than the other two algorithms for WS-353 test data whereas, Word2Vec performed better on SimLex-999. This is probably due to the different type of similarities these datasets address<sup>[3]</sup>. And in Word Analogy task, WordRank performed better for Semantic Analogies and FastText for Syntactic Analogies. This basically tells us that we need to choose the embedding method carefully according to our final use-case.\n", "\n", "Secondly, our query words do matter apart from the generalized model performance. As we observed in Accuracy vs. Frequency graphs that models perform differently depending on the frequency of question analogy words in training corpus. For example, we are likely to get poor results if our query words are all highly frequent.\n", "\n", "*__Note__:* WordRank can sometimes produce NaN values during model evaluation, when the embedding vector values get too diverged at some iterations, but it dumps embedding vectors after every few iterations, so you could just load embeddings from a different iteration’s text file." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# References\n", "1. [WordRank: Learning Word Embeddings via Robust Ranking](https://arxiv.org/pdf/1506.02761v3.pdf)\n", "2. [Word2Vec and FastText comparison notebook](Word2Vec_FastText_Comparison.ipynb)\n", "3. [Similarity test data](https://www.cl.cam.ac.uk/~fh295/simlex.html)" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.7.1" } }, "nbformat": 4, "nbformat_minor": 2 }
31,069
Python
.py
579
48.955095
1,898
0.637733
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,926
atmodel_prediction_tutorial.ipynb
piskvorky_gensim/docs/notebooks/atmodel_prediction_tutorial.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Authorship prediction with the author-topic model" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "In this tutorial, you will learn how to use the author-topic model in Gensim for authorship prediction, based on the topic distributions and mesuring their similarity.\n", "We will train the author-topic model on a Reuters dataset, which contains 50 authors, each with 50 documents for trianing and another 50 documents for testing: https://archive.ics.uci.edu/ml/datasets/Reuter_50_50 ." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "If you wish to learn more about the Author-topic model and LDA and how to train them, you should check out these tutorials beforehand. A lot of the preprocessing and configuration here has been done using their example:\n", "* [LDA training tips](https://nbviewer.jupyter.org/github/rare-technologies/gensim/blob/develop/docs/notebooks/lda_training_tips.ipynb)\n", "* [Training the author-topic model](https://nbviewer.jupyter.org/github/rare-technologies/gensim/blob/develop/docs/notebooks/atmodel_tutorial.ipynb)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "> **NOTE:**\n", ">\n", "> To run this tutorial on your own, install Jupyter, Gensim, SpaCy, Scikit-Learn, Bokeh and Pandas, e.g. using pip:\n", ">\n", "> `pip install jupyter gensim spacy sklearn bokeh pandas`\n", ">\n", "> Note that you need to download some data for SpaCy using `python -m spacy.en.download`.\n", ">\n", "> Download the notebook at https://github.com/RaRe-Technologies/gensim/tree/develop/docs/notebooks/atmodel_prediction_tutorial.ipynb.\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Predicting the author of a document is a difficult task, where current approaches usually turn to neural networks. These base a lot of their predictions on learing stylistic and syntactic preferences of the authors and also other features which help rather identify the author. \n", "\n", "In our case, we first model the domain knowledge of a certain author, based on what the author writes about. We do this by calculating the topic distributions for each author using the author-topic model.\n", "After that, we perform the [new author inference](https://github.com/RaRe-Technologies/gensim/pull/1766) on the held-out subset. This again calculates a topic distribution for this new unknown author. \n", "In order to perform the prediction, we find out of all known authors, the most similar one to the new unknown. Mathematically speaking, we find the author, whose topic distribution is the closest to the topic distribution of the new author, by a certrain distrance function or metric. \n", "Here we explore the [Hellinger distance](https://en.wikipedia.org/wiki/Hellinger_distance) for the measuring the distance between two discrete multinomial topic distributions." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "We start off by downloading the dataset. You can do it manually using the aforementioned link, or run the following code cell." ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "--2018-03-25 17:24:26-- https://archive.ics.uci.edu/ml/machine-learning-databases/00217/C50.zip\n", "Resolving archive.ics.uci.edu... 128.195.10.249\n", "Connecting to archive.ics.uci.edu|128.195.10.249|:443... connected.\n", "HTTP request sent, awaiting response... 200 OK\n", "Length: 8194031 (7.8M) [application/zip]\n", "Saving to: 'STDOUT'\n", "\n", "- 100%[===================>] 7.81M 2.30MB/s in 3.4s \n", "\n", "2018-03-25 17:24:31 (2.30 MB/s) - written to stdout [8194031/8194031]\n", "\n" ] } ], "source": [ "!wget -O - \"https://archive.ics.uci.edu/ml/machine-learning-databases/00217/C50.zip\" > /tmp/C50.zip" ] }, { "cell_type": "code", "execution_count": 2, "metadata": { "collapsed": true }, "outputs": [], "source": [ "import logging\n", "logging.basicConfig(format='%(asctime)s %(levelname)s:%(message)s', level=logging.DEBUG, datefmt='%I:%M:%S')" ] }, { "cell_type": "code", "execution_count": 3, "metadata": { "collapsed": true }, "outputs": [], "source": [ "import zipfile\n", "\n", "filename = '/tmp/C50.zip'\n", "\n", "zip_ref = zipfile.ZipFile(filename, 'r')\n", "zip_ref.extractall(\"/tmp/\")\n", "zip_ref.close()" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "We wrap all the preprocessing steps, that you can find more about in the [author-topic notebook](https://nbviewer.jupyter.org/github/rare-technologies/gensim/blob/develop/docs/notebooks/atmodel_tutorial.ipynb) , in one fucntion so that we are able to iterate over different preprocessing parameters." ] }, { "cell_type": "code", "execution_count": 4, "metadata": { "collapsed": true }, "outputs": [], "source": [ "import os, re, io\n", "def preprocess_docs(data_dir):\n", " doc_ids = []\n", " author2doc = {}\n", " docs = []\n", " \n", " folders = os.listdir(data_dir) # List of filenames.\n", " for authorname in folders:\n", " files = file = os.listdir(data_dir + '/' + authorname)\n", " for filen in files:\n", " (idx1, idx2) = re.search('[0-9]+', filen).span() # Matches the indexes of the start end end of the ID.\n", " if not author2doc.get(authorname):\n", " # This is a new author.\n", " author2doc[authorname] = []\n", " doc_id = str(int(filen[idx1:idx2]))\n", " doc_ids.append(doc_id)\n", " author2doc[authorname].extend([doc_id])\n", "\n", " # Read document text.\n", " # Note: ignoring characters that cause encoding errors.\n", " with io.open(data_dir + '/' + authorname + '/' + filen, errors='ignore', encoding='utf-8') as fid:\n", " txt = fid.read()\n", "\n", " # Replace any whitespace (newline, tabs, etc.) by a single space.\n", " txt = re.sub('\\s', ' ', txt)\n", " docs.append(txt)\n", " \n", " doc_id_dict = dict(zip(doc_ids, range(len(doc_ids))))\n", " # Replace dataset IDs by integer IDs.\n", " for a, a_doc_ids in author2doc.items():\n", " for i, doc_id in enumerate(a_doc_ids):\n", " author2doc[a][i] = doc_id_dict[doc_id]\n", " import spacy\n", " nlp = spacy.load('en')\n", " \n", " %%time\n", " processed_docs = []\n", " for doc in nlp.pipe(docs, n_threads=4, batch_size=100):\n", " # Process document using Spacy NLP pipeline.\n", "\n", " ents = doc.ents # Named entities.\n", "\n", " # Keep only words (no numbers, no punctuation).\n", " # Lemmatize tokens, remove punctuation and remove stopwords.\n", " doc = [token.lemma_ for token in doc if token.is_alpha and not token.is_stop]\n", "\n", " # Remove common words from a stopword list.\n", " #doc = [token for token in doc if token not in STOPWORDS]\n", "\n", " # Add named entities, but only if they are a compound of more than word.\n", " doc.extend([str(entity) for entity in ents if len(entity) > 1])\n", " processed_docs.append(doc)\n", " docs = processed_docs\n", " del processed_docs\n", " \n", " # Compute bigrams.\n", "\n", " from gensim.models import Phrases\n", "\n", " # Add bigrams and trigrams to docs (only ones that appear 20 times or more).\n", " bigram = Phrases(docs, min_count=20)\n", " for idx in range(len(docs)):\n", " for token in bigram[docs[idx]]:\n", " if '_' in token:\n", " # Token is a bigram, add to document.\n", " docs[idx].append(token)\n", " return docs, author2doc" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "We create the corpus of the train and test data using two separate functions, since each corpus is tied to a certain dictionary which maps the words to their ids. Also in order to create the test corpus, we use the dictionary from the train data, since the trained model has have the same id2word reference as the new test data. Otherwise token with id 1 from the test data wont't mean the same as the trained upon token with id 1 in the model." ] }, { "cell_type": "code", "execution_count": 5, "metadata": { "collapsed": true }, "outputs": [], "source": [ "def create_corpus_dictionary(docs, max_freq=0.5, min_wordcount=20):\n", " # Create a dictionary representation of the documents, and filter out frequent and rare words.\n", " from gensim.corpora import Dictionary\n", " dictionary = Dictionary(docs)\n", "\n", " # Remove rare and common tokens.\n", " # Filter out words that occur too frequently or too rarely.\n", " max_freq = max_freq\n", " min_wordcount = min_wordcount\n", " dictionary.filter_extremes(no_below=min_wordcount, no_above=max_freq)\n", "\n", " _ = dictionary[0] # This sort of \"initializes\" dictionary.id2token.\n", "\n", " # Vectorize data.\n", " # Bag-of-words representation of the documents.\n", " corpus = [dictionary.doc2bow(doc) for doc in docs]\n", "\n", " return corpus, dictionary\n", "\n", "def create_test_corpus(train_dictionary, docs):\n", " # Create test corpus using the dictionary from the train data.\n", " return [train_dictionary.doc2bow(doc) for doc in docs]" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "For our first training, we specify that we want the parameters max_freq and min_wordcoun to be 50 and 20, as proposed by the original notebook tutorial. We will find out if this configuration is good enough for us." ] }, { "cell_type": "code", "execution_count": 6, "metadata": { "scrolled": false }, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "05:24:36 DEBUG:Registered VCS backend: git\n", "05:24:36 DEBUG:Registered VCS backend: hg\n", "05:24:36 DEBUG:Registered VCS backend: svn\n", "05:24:36 DEBUG:Registered VCS backend: bzr\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ "CPU times: user 3 µs, sys: 0 ns, total: 3 µs\n", "Wall time: 7.15 µs\n" ] }, { "name": "stderr", "output_type": "stream", "text": [ "05:26:17 INFO:'pattern' package not found; tag filters are not available for English\n", "05:26:17 INFO:collecting all words and their counts\n", "05:26:17 INFO:PROGRESS: at sentence #0, processed 0 words and 0 word types\n", "05:26:19 INFO:collected 437598 word types from a corpus of 746622 words (unigram + bigrams) and 2500 sentences\n", "05:26:19 INFO:using 437598 counts as vocab in Phrases<0 vocab, min_count=20, threshold=10.0, max_vocab_size=40000000>\n", "/Users/martin/Projects/bachelor/gensim/gensim/models/phrases.py:490: UserWarning: For a faster implementation, use the gensim.models.phrases.Phraser class\n", " warnings.warn(\"For a faster implementation, use the gensim.models.phrases.Phraser class\")\n", "05:26:24 INFO:adding document #0 to Dictionary(0 unique tokens: [])\n", "05:26:25 INFO:built Dictionary(46905 unique tokens: ['$83.4 million', 'boarder', '$2.72 billion', 'checking', 'suzuki']...) from 2500 documents (total 786032 corpus positions)\n", "05:26:25 INFO:discarding 42991 tokens: [('$1.4 billion', 11), ('$15', 3), ('$17.25', 1), ('$380 million', 2), ('12.5 cents', 7), ('Big B', 3), ('Big B Inc.', 2), (\"Big B's\", 3), ('Big B. I', 1), ('Dwayne Hoven', 1)]...\n", "05:26:25 INFO:keeping 3914 tokens which were in no less than 20 and no more than 1250 (=50.0%) documents\n", "05:26:25 DEBUG:rebuilding dictionary, shrinking gaps\n", "05:26:25 INFO:resulting dictionary: Dictionary(3914 unique tokens: ['chris_patten', 'online', 'loss', 'hub', 'sound']...)\n" ] } ], "source": [ "traindata_dir = \"/tmp/C50train\"\n", "train_docs, train_author2doc = preprocess_docs(traindata_dir)\n", "train_corpus_50_20, train_dictionary_50_20 = create_corpus_dictionary(train_docs, 0.5, 20)" ] }, { "cell_type": "code", "execution_count": 7, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Number of unique tokens: 3914\n" ] } ], "source": [ "print('Number of unique tokens: %d' % len(train_dictionary_50_20))" ] }, { "cell_type": "code", "execution_count": 8, "metadata": { "scrolled": false }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "CPU times: user 3 µs, sys: 1e+03 ns, total: 4 µs\n", "Wall time: 15 µs\n" ] }, { "name": "stderr", "output_type": "stream", "text": [ "05:28:06 INFO:collecting all words and their counts\n", "05:28:06 INFO:PROGRESS: at sentence #0, processed 0 words and 0 word types\n", "05:28:08 INFO:collected 448895 word types from a corpus of 758070 words (unigram + bigrams) and 2500 sentences\n", "05:28:08 INFO:using 448895 counts as vocab in Phrases<0 vocab, min_count=20, threshold=10.0, max_vocab_size=40000000>\n", "/Users/martin/Projects/bachelor/gensim/gensim/models/phrases.py:490: UserWarning: For a faster implementation, use the gensim.models.phrases.Phraser class\n", " warnings.warn(\"For a faster implementation, use the gensim.models.phrases.Phraser class\")\n" ] } ], "source": [ "testdata_dir = \"/tmp/C50test\"\n", "test_docs, test_author2doc = preprocess_docs(testdata_dir)\n", "test_corpus_50_20 = create_test_corpus(train_dictionary_50_20, test_docs)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "We wrap the model training also in a function, in order to, again, be able to iterate over different parametrizations." ] }, { "cell_type": "code", "execution_count": 9, "metadata": { "collapsed": true }, "outputs": [], "source": [ "def train_model(corpus, author2doc, dictionary, num_topics=20, eval_every=0, iterations=50, passes=20):\n", " from gensim.models import AuthorTopicModel\n", " \n", " model = AuthorTopicModel(corpus=corpus, num_topics=num_topics, id2word=dictionary.id2token, \\\n", " author2doc=author2doc, chunksize=2500, passes=passes, \\\n", " eval_every=eval_every, iterations=iterations, random_state=1)\n", " top_topics = model.top_topics(corpus)\n", " tc = sum([t[1] for t in top_topics]) \n", " print(tc / num_topics)\n", " return model" ] }, { "cell_type": "code", "execution_count": 10, "metadata": { "collapsed": true }, "outputs": [], "source": [ "# NOTE: Author of the logic of this function is the Olavur Mortensen, from his notebook tutorial.\n", "\n", "def predict_author(new_doc, atmodel, top_n=10, smallest_author=1):\n", " from gensim import matutils\n", " import pandas as pd\n", "\n", " def similarity(vec1, vec2):\n", " '''Get similarity between two vectors'''\n", " dist = matutils.hellinger(matutils.sparse2full(vec1, atmodel.num_topics), \\\n", " matutils.sparse2full(vec2, atmodel.num_topics))\n", " sim = 1.0 / (1.0 + dist)\n", " return sim\n", "\n", " def get_sims(vec):\n", " '''Get similarity of vector to all authors.'''\n", " sims = [similarity(vec, vec2) for vec2 in author_vecs]\n", " return sims\n", "\n", " author_vecs = [atmodel.get_author_topics(author) for author in atmodel.id2author.values()]\n", " new_doc_topics = atmodel.get_new_author_topics(new_doc)\n", " # Get similarities.\n", " sims = get_sims(new_doc_topics)\n", "\n", " # Arrange author names, similarities, and author sizes in a list of tuples.\n", " table = []\n", " for elem in enumerate(sims):\n", " author_name = atmodel.id2author[elem[0]]\n", " sim = elem[1]\n", " author_size = len(atmodel.author2doc[author_name])\n", " if author_size >= smallest_author:\n", " table.append((author_name, sim, author_size))\n", "\n", " # Make dataframe and retrieve top authors.\n", " df = pd.DataFrame(table, columns=['Author', 'Score', 'Size'])\n", " df = df.sort_values('Score', ascending=False)[:top_n]\n", "\n", " return df\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "We define a custom function, which measures the prediction accuracy, following the [precision at k](https://en.wikipedia.org/wiki/Information_retrieval#Precision_at_K) principle. We parametrize the accuracy by a parameter k, k=1 meaning we need an exact match in order to be accurate, k=5 meaning our prediction has be in the top 5 results, ordered by similarity." ] }, { "cell_type": "code", "execution_count": 11, "metadata": { "collapsed": true }, "outputs": [], "source": [ "def prediction_accuracy(test_author2doc, test_corpus, model, k=5):\n", "\n", " print(\"Precision@k: top_n={}\".format(k))\n", " matches=0\n", " tries = 0\n", " for author in test_author2doc:\n", " author_id = model.author2id[author]\n", " for doc_id in test_author2doc[author]:\n", " predicted_authors = predict_author(test_corpus[doc_id:doc_id+1], atmodel=model, top_n=k)\n", " tries = tries+1\n", " if author_id in predicted_authors[\"Author\"]:\n", " matches=matches+1\n", "\n", " accuracy = matches/tries\n", " print(\"Prediction accuracy: {}\".format(accuracy))\n", " return accuracy, k" ] }, { "cell_type": "code", "execution_count": 12, "metadata": { "collapsed": true }, "outputs": [], "source": [ "def plot_accuracy(scores1, label1, scores2=None, label2=None):\n", " \n", " import matplotlib.pyplot as plt\n", " s = [score*100 for score in scores1.values()]\n", " t = list(scores1.keys())\n", "\n", " plt.plot(t, s, \"b-\", label=label1)\n", " plt.plot(t, s, \"r^\", label=label1+\" data points\")\n", " \n", " if scores2 is not None:\n", " s2 = [score*100 for score in scores2.values()]\n", " plt.plot(t, s2, label=label2)\n", " plt.plot(t, s2, \"o\", label=label2+\" data points\")\n", " \n", " plt.legend(loc=\"lower right\")\n", "\n", " plt.xlabel('parameter k')\n", " plt.ylabel('prediction accuracy')\n", " plt.title('Precision at k')\n", " plt.xticks(t)\n", " plt.grid(True)\n", " plt.yticks([30,40,50,60,70,80,90,100])\n", " plt.axis([0, 11, 30, 100])\n", " plt.show()" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "We calculate the accuracy for a range of values for k=[1,2,3,4,5,6,8,10] and plot how exactly the prediction accuracy naturally rises with higher k." ] }, { "cell_type": "code", "execution_count": 13, "metadata": { "scrolled": true }, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "05:28:14 INFO:Vocabulary consists of 3914 words.\n", "05:28:14 INFO:using symmetric alpha at 0.05\n", "05:28:14 INFO:using symmetric eta at 0.05\n", "05:28:14 INFO:running online author-topic training, 20 topics, 50 authors, 20 passes over the supplied corpus of 2500 documents, updating model once every 2500 documents, evaluating perplexity every 0 documents, iterating 50x with a convergence threshold of 0.001000\n", "05:28:14 INFO:PROGRESS: pass 0, at document #2500/2500\n", "05:28:14 DEBUG:performing inference on a chunk of 2500 documents\n", "05:28:22 DEBUG:3/2500 documents converged within 50 iterations\n", "05:28:22 DEBUG:updating topics\n", "05:28:22 INFO:topic #11 (0.050): 0.028*\"gm\" + 0.013*\"plant\" + 0.012*\"strike\" + 0.009*\"worker\" + 0.009*\"uaw\" + 0.007*\"automaker\" + 0.007*\"share\" + 0.007*\"union\" + 0.006*\"truck\" + 0.006*\"analyst\"\n", "05:28:22 INFO:topic #17 (0.050): 0.018*\"apple\" + 0.008*\"computer\" + 0.008*\"software\" + 0.008*\"share\" + 0.008*\"analyst\" + 0.007*\"quarter\" + 0.006*\"microsoft\" + 0.006*\"service\" + 0.006*\"base\" + 0.005*\"plan\"\n", "05:28:22 INFO:topic #15 (0.050): 0.009*\"analyst\" + 0.008*\"computer\" + 0.008*\"stock\" + 0.007*\"billion\" + 0.007*\"quarter\" + 0.007*\"share\" + 0.006*\"industry\" + 0.005*\"software\" + 0.005*\"oil\" + 0.005*\"sale\"\n", "05:28:22 INFO:topic #9 (0.050): 0.009*\"analyst\" + 0.006*\"share\" + 0.006*\"china\" + 0.006*\"gold\" + 0.006*\"chinese\" + 0.005*\"price\" + 0.005*\"government\" + 0.005*\"stock\" + 0.004*\"base\" + 0.004*\"drug\"\n", "05:28:22 INFO:topic #14 (0.050): 0.010*\"pound\" + 0.009*\"share\" + 0.008*\"profit\" + 0.007*\"billion\" + 0.007*\"analyst\" + 0.007*\"group\" + 0.007*\"bank\" + 0.006*\"business\" + 0.005*\"million_pound\" + 0.005*\"price\"\n", "05:28:22 INFO:topic diff=2.864277, rho=1.000000\n", "05:28:22 INFO:PROGRESS: pass 1, at document #2500/2500\n", "05:28:22 DEBUG:performing inference on a chunk of 2500 documents\n", "05:28:25 DEBUG:2491/2500 documents converged within 50 iterations\n", "05:28:25 DEBUG:updating topics\n", "05:28:25 INFO:topic #0 (0.050): 0.011*\"bank\" + 0.009*\"analyst\" + 0.005*\"share\" + 0.005*\"billion\" + 0.005*\"government\" + 0.004*\"news\" + 0.004*\"business\" + 0.004*\"rule\" + 0.004*\"profit\" + 0.004*\"group\"\n", "05:28:25 INFO:topic #14 (0.050): 0.011*\"pound\" + 0.010*\"share\" + 0.009*\"profit\" + 0.008*\"group\" + 0.008*\"analyst\" + 0.008*\"billion\" + 0.007*\"bank\" + 0.006*\"business\" + 0.006*\"million_pound\" + 0.005*\"penny\"\n", "05:28:25 INFO:topic #15 (0.050): 0.010*\"analyst\" + 0.009*\"stock\" + 0.008*\"share\" + 0.008*\"billion\" + 0.007*\"quarter\" + 0.007*\"computer\" + 0.006*\"oil\" + 0.006*\"bank\" + 0.005*\"industry\" + 0.005*\"high\"\n", "05:28:25 INFO:topic #1 (0.050): 0.014*\"bank\" + 0.010*\"china\" + 0.009*\"hong_kong\" + 0.009*\"kong\" + 0.008*\"hong\" + 0.008*\"billion\" + 0.007*\"Hong Kong\" + 0.006*\"analyst\" + 0.006*\"stock\" + 0.006*\"fund\"\n", "05:28:25 INFO:topic #7 (0.050): 0.007*\"analyst\" + 0.007*\"sale\" + 0.007*\"share\" + 0.006*\"group\" + 0.005*\"business\" + 0.005*\"price\" + 0.004*\"profit\" + 0.004*\"industry\" + 0.004*\"pound\" + 0.004*\"billion\"\n", "05:28:25 INFO:topic diff=1.147566, rho=0.577350\n", "05:28:25 INFO:PROGRESS: pass 2, at document #2500/2500\n", "05:28:25 DEBUG:performing inference on a chunk of 2500 documents\n", "05:28:27 DEBUG:2498/2500 documents converged within 50 iterations\n", "05:28:27 DEBUG:updating topics\n", "05:28:27 INFO:topic #9 (0.050): 0.011*\"drug\" + 0.009*\"colombia\" + 0.007*\"analyst\" + 0.006*\"government\" + 0.006*\"sale\" + 0.005*\"share\" + 0.005*\"base\" + 0.004*\"price\" + 0.004*\"stock\" + 0.004*\"united\"\n", "05:28:27 INFO:topic #15 (0.050): 0.010*\"stock\" + 0.009*\"analyst\" + 0.008*\"share\" + 0.008*\"billion\" + 0.007*\"bank\" + 0.007*\"oil\" + 0.006*\"quarter\" + 0.006*\"canada\" + 0.006*\"toronto\" + 0.005*\"high\"\n", "05:28:27 INFO:topic #8 (0.050): 0.026*\"bre\" + 0.024*\"gold\" + 0.024*\"bre_x\" + 0.024*\"x\" + 0.018*\"Bre-X\" + 0.015*\"barrick\" + 0.011*\"analyst\" + 0.010*\"busang\" + 0.010*\"indonesian\" + 0.008*\"government\"\n", "05:28:27 INFO:topic #19 (0.050): 0.019*\"hong\" + 0.018*\"kong\" + 0.018*\"hong_kong\" + 0.014*\"china\" + 0.012*\"Hong Kong\" + 0.006*\"chinese\" + 0.005*\"price\" + 0.005*\"british\" + 0.005*\"tell\" + 0.004*\"tung\"\n", "05:28:27 INFO:topic #10 (0.050): 0.009*\"billion\" + 0.008*\"bank\" + 0.005*\"loan\" + 0.005*\"tonne\" + 0.005*\"yen\" + 0.005*\"price\" + 0.005*\"exporter\" + 0.004*\"real_estate\" + 0.004*\"analyst\" + 0.004*\"real\"\n", "05:28:27 INFO:topic diff=1.010061, rho=0.500000\n", "05:28:27 INFO:PROGRESS: pass 3, at document #2500/2500\n", "05:28:27 DEBUG:performing inference on a chunk of 2500 documents\n", "05:28:29 DEBUG:2500/2500 documents converged within 50 iterations\n", "05:28:29 DEBUG:updating topics\n", "05:28:29 INFO:topic #13 (0.050): 0.017*\"china\" + 0.014*\"wang\" + 0.012*\"beijing\" + 0.011*\"taiwan\" + 0.009*\"court\" + 0.009*\"party\" + 0.008*\"chinese\" + 0.008*\"government\" + 0.007*\"official\" + 0.007*\"communist\"\n", "05:28:29 INFO:topic #19 (0.050): 0.022*\"hong\" + 0.021*\"kong\" + 0.021*\"hong_kong\" + 0.015*\"china\" + 0.014*\"Hong Kong\" + 0.006*\"chinese\" + 0.005*\"airbus\" + 0.005*\"tung\" + 0.005*\"british\" + 0.005*\"Hong Kong's\"\n", "05:28:29 INFO:topic #12 (0.050): 0.012*\"czech\" + 0.007*\"bank\" + 0.007*\"crown\" + 0.006*\"government\" + 0.006*\"klaus\" + 0.005*\"billion\" + 0.005*\"price\" + 0.005*\"party\" + 0.005*\"prague\" + 0.005*\"foreign\"\n", "05:28:29 INFO:topic #17 (0.050): 0.041*\"apple\" + 0.026*\"computer\" + 0.022*\"software\" + 0.020*\"quarter\" + 0.013*\"microsoft\" + 0.013*\"analyst\" + 0.010*\"share\" + 0.009*\"sale\" + 0.009*\"macintosh\" + 0.008*\"pc\"\n", "05:28:29 INFO:topic #6 (0.050): 0.020*\"share\" + 0.017*\"analyst\" + 0.010*\"bank\" + 0.010*\"shanghai\" + 0.009*\"stock\" + 0.007*\"sale\" + 0.007*\"b\" + 0.006*\"quarter\" + 0.006*\"base\" + 0.005*\"business\"\n", "05:28:29 INFO:topic diff=0.877566, rho=0.447214\n", "05:28:29 INFO:PROGRESS: pass 4, at document #2500/2500\n", "05:28:29 DEBUG:performing inference on a chunk of 2500 documents\n", "05:28:31 DEBUG:2500/2500 documents converged within 50 iterations\n", "05:28:31 DEBUG:updating topics\n", "05:28:31 INFO:topic #14 (0.050): 0.012*\"pound\" + 0.010*\"profit\" + 0.010*\"share\" + 0.009*\"group\" + 0.008*\"analyst\" + 0.008*\"billion\" + 0.007*\"business\" + 0.007*\"bank\" + 0.006*\"million_pound\" + 0.005*\"british\"\n", "05:28:31 INFO:topic #9 (0.050): 0.014*\"drug\" + 0.011*\"colombia\" + 0.006*\"government\" + 0.005*\"analyst\" + 0.005*\"sale\" + 0.005*\"united\" + 0.005*\"colombian\" + 0.004*\"guerrilla\" + 0.004*\"base\" + 0.004*\"force\"\n", "05:28:31 INFO:topic #13 (0.050): 0.018*\"china\" + 0.015*\"wang\" + 0.013*\"beijing\" + 0.012*\"taiwan\" + 0.009*\"court\" + 0.009*\"party\" + 0.009*\"chinese\" + 0.008*\"government\" + 0.007*\"communist\" + 0.007*\"official\"\n", "05:28:31 INFO:topic #2 (0.050): 0.010*\"share\" + 0.009*\"analyst\" + 0.008*\"service\" + 0.007*\"billion\" + 0.007*\"deal\" + 0.006*\"offer\" + 0.006*\"stock\" + 0.006*\"corp\" + 0.006*\"industry\" + 0.005*\"business\"\n", "05:28:31 INFO:topic #15 (0.050): 0.010*\"stock\" + 0.009*\"analyst\" + 0.008*\"billion\" + 0.008*\"share\" + 0.008*\"bank\" + 0.007*\"oil\" + 0.007*\"canada\" + 0.007*\"toronto\" + 0.006*\"russia\" + 0.005*\"high\"\n", "05:28:31 INFO:topic diff=0.761073, rho=0.408248\n", "05:28:31 INFO:PROGRESS: pass 5, at document #2500/2500\n", "05:28:31 DEBUG:performing inference on a chunk of 2500 documents\n", "05:28:33 DEBUG:2500/2500 documents converged within 50 iterations\n", "05:28:33 DEBUG:updating topics\n", "05:28:33 INFO:topic #15 (0.050): 0.010*\"stock\" + 0.009*\"analyst\" + 0.009*\"bank\" + 0.008*\"billion\" + 0.008*\"share\" + 0.007*\"oil\" + 0.007*\"canada\" + 0.007*\"toronto\" + 0.006*\"russia\" + 0.006*\"tonne\"\n", "05:28:33 INFO:topic #2 (0.050): 0.011*\"share\" + 0.009*\"analyst\" + 0.008*\"service\" + 0.007*\"billion\" + 0.007*\"deal\" + 0.006*\"offer\" + 0.006*\"stock\" + 0.006*\"corp\" + 0.006*\"industry\" + 0.005*\"business\"\n", "05:28:33 INFO:topic #13 (0.050): 0.018*\"china\" + 0.015*\"wang\" + 0.013*\"beijing\" + 0.012*\"taiwan\" + 0.009*\"court\" + 0.009*\"chinese\" + 0.009*\"party\" + 0.008*\"government\" + 0.007*\"communist\" + 0.007*\"official\"\n", "05:28:33 INFO:topic #8 (0.050): 0.027*\"gold\" + 0.026*\"bre\" + 0.026*\"bre_x\" + 0.026*\"x\" + 0.019*\"Bre-X\" + 0.015*\"barrick\" + 0.012*\"analyst\" + 0.011*\"busang\" + 0.010*\"indonesian\" + 0.009*\"government\"\n", "05:28:33 INFO:topic #1 (0.050): 0.017*\"bank\" + 0.010*\"fund\" + 0.010*\"china\" + 0.009*\"billion\" + 0.008*\"hong_kong\" + 0.008*\"kong\" + 0.008*\"hong\" + 0.007*\"financial\" + 0.007*\"japan\" + 0.006*\"Hong Kong\"\n", "05:28:33 INFO:topic diff=0.658823, rho=0.377964\n", "05:28:33 INFO:PROGRESS: pass 6, at document #2500/2500\n", "05:28:33 DEBUG:performing inference on a chunk of 2500 documents\n", "05:28:35 DEBUG:2500/2500 documents converged within 50 iterations\n" ] }, { "name": "stderr", "output_type": "stream", "text": [ "05:28:35 DEBUG:updating topics\n", "05:28:35 INFO:topic #17 (0.050): 0.038*\"apple\" + 0.027*\"computer\" + 0.022*\"software\" + 0.021*\"quarter\" + 0.014*\"analyst\" + 0.013*\"microsoft\" + 0.010*\"sale\" + 0.010*\"share\" + 0.008*\"pc\" + 0.008*\"macintosh\"\n", "05:28:35 INFO:topic #9 (0.050): 0.015*\"drug\" + 0.012*\"colombia\" + 0.006*\"government\" + 0.005*\"united\" + 0.005*\"sale\" + 0.005*\"colombian\" + 0.005*\"guerrilla\" + 0.005*\"analyst\" + 0.004*\"force\" + 0.004*\"week\"\n", "05:28:35 INFO:topic #15 (0.050): 0.010*\"stock\" + 0.009*\"bank\" + 0.009*\"analyst\" + 0.008*\"billion\" + 0.008*\"share\" + 0.007*\"oil\" + 0.007*\"canada\" + 0.007*\"toronto\" + 0.006*\"russia\" + 0.006*\"tonne\"\n", "05:28:35 INFO:topic #13 (0.050): 0.018*\"china\" + 0.015*\"wang\" + 0.014*\"beijing\" + 0.012*\"taiwan\" + 0.009*\"court\" + 0.009*\"chinese\" + 0.009*\"party\" + 0.008*\"government\" + 0.007*\"communist\" + 0.007*\"official\"\n", "05:28:35 INFO:topic #16 (0.050): 0.016*\"franc\" + 0.015*\"french\" + 0.015*\"air\" + 0.014*\"france\" + 0.011*\"thomson\" + 0.010*\"billion\" + 0.009*\"group\" + 0.007*\"government\" + 0.007*\"plan\" + 0.007*\"bid\"\n", "05:28:35 INFO:topic diff=0.568497, rho=0.353553\n", "05:28:35 INFO:PROGRESS: pass 7, at document #2500/2500\n", "05:28:35 DEBUG:performing inference on a chunk of 2500 documents\n", "05:28:36 DEBUG:2500/2500 documents converged within 50 iterations\n", "05:28:36 DEBUG:updating topics\n", "05:28:37 INFO:topic #17 (0.050): 0.037*\"apple\" + 0.027*\"computer\" + 0.022*\"software\" + 0.021*\"quarter\" + 0.014*\"analyst\" + 0.013*\"microsoft\" + 0.010*\"sale\" + 0.010*\"share\" + 0.008*\"pc\" + 0.008*\"macintosh\"\n", "05:28:37 INFO:topic #2 (0.050): 0.011*\"share\" + 0.010*\"analyst\" + 0.007*\"service\" + 0.007*\"billion\" + 0.007*\"deal\" + 0.006*\"offer\" + 0.006*\"stock\" + 0.006*\"corp\" + 0.006*\"industry\" + 0.005*\"business\"\n", "05:28:37 INFO:topic #3 (0.050): 0.027*\"bt\" + 0.017*\"telecom\" + 0.015*\"mci\" + 0.013*\"pound\" + 0.011*\"billion\" + 0.011*\"analyst\" + 0.011*\"deal\" + 0.010*\"british\" + 0.010*\"share\" + 0.010*\"group\"\n", "05:28:37 INFO:topic #13 (0.050): 0.018*\"china\" + 0.016*\"wang\" + 0.014*\"beijing\" + 0.012*\"taiwan\" + 0.009*\"court\" + 0.009*\"chinese\" + 0.009*\"party\" + 0.008*\"government\" + 0.007*\"communist\" + 0.007*\"official\"\n", "05:28:37 INFO:topic #4 (0.050): 0.018*\"china\" + 0.011*\"official\" + 0.009*\"state\" + 0.008*\"beijing\" + 0.008*\"tibet\" + 0.007*\"chinese\" + 0.007*\"government\" + 0.007*\"wang\" + 0.006*\"people\" + 0.005*\"dissident\"\n", "05:28:37 INFO:topic diff=0.488932, rho=0.333333\n", "05:28:37 INFO:PROGRESS: pass 8, at document #2500/2500\n", "05:28:37 DEBUG:performing inference on a chunk of 2500 documents\n", "05:28:38 DEBUG:2500/2500 documents converged within 50 iterations\n", "05:28:38 DEBUG:updating topics\n", "05:28:38 INFO:topic #17 (0.050): 0.037*\"apple\" + 0.027*\"computer\" + 0.022*\"software\" + 0.021*\"quarter\" + 0.014*\"analyst\" + 0.013*\"microsoft\" + 0.010*\"sale\" + 0.010*\"share\" + 0.008*\"pc\" + 0.008*\"macintosh\"\n", "05:28:38 INFO:topic #5 (0.050): 0.032*\"china\" + 0.016*\"chinese\" + 0.013*\"beijing\" + 0.012*\"official\" + 0.009*\"tonne\" + 0.007*\"hong\" + 0.007*\"hong_kong\" + 0.007*\"kong\" + 0.007*\"trade\" + 0.006*\"state\"\n", "05:28:38 INFO:topic #13 (0.050): 0.018*\"china\" + 0.016*\"wang\" + 0.014*\"beijing\" + 0.012*\"taiwan\" + 0.009*\"chinese\" + 0.009*\"court\" + 0.009*\"party\" + 0.008*\"government\" + 0.007*\"communist\" + 0.007*\"official\"\n", "05:28:38 INFO:topic #14 (0.050): 0.012*\"pound\" + 0.011*\"profit\" + 0.010*\"share\" + 0.009*\"analyst\" + 0.009*\"group\" + 0.008*\"billion\" + 0.007*\"bank\" + 0.007*\"business\" + 0.006*\"million_pound\" + 0.005*\"british\"\n", "05:28:38 INFO:topic #6 (0.050): 0.019*\"share\" + 0.016*\"analyst\" + 0.012*\"shanghai\" + 0.011*\"bank\" + 0.009*\"stock\" + 0.007*\"b\" + 0.007*\"sale\" + 0.006*\"exchange\" + 0.006*\"base\" + 0.006*\"quarter\"\n", "05:28:38 INFO:topic diff=0.419457, rho=0.316228\n", "05:28:38 INFO:PROGRESS: pass 9, at document #2500/2500\n", "05:28:38 DEBUG:performing inference on a chunk of 2500 documents\n", "05:28:40 DEBUG:2500/2500 documents converged within 50 iterations\n", "05:28:40 DEBUG:updating topics\n", "05:28:40 INFO:topic #3 (0.050): 0.027*\"bt\" + 0.017*\"telecom\" + 0.015*\"mci\" + 0.013*\"pound\" + 0.011*\"billion\" + 0.011*\"analyst\" + 0.011*\"deal\" + 0.010*\"british\" + 0.010*\"share\" + 0.010*\"group\"\n", "05:28:40 INFO:topic #1 (0.050): 0.018*\"bank\" + 0.011*\"fund\" + 0.009*\"billion\" + 0.008*\"china\" + 0.008*\"financial\" + 0.007*\"japan\" + 0.007*\"kong\" + 0.007*\"hong_kong\" + 0.007*\"hong\" + 0.006*\"analyst\"\n", "05:28:40 INFO:topic #15 (0.050): 0.010*\"bank\" + 0.009*\"stock\" + 0.008*\"analyst\" + 0.008*\"billion\" + 0.008*\"share\" + 0.008*\"oil\" + 0.007*\"canada\" + 0.007*\"toronto\" + 0.006*\"tonne\" + 0.006*\"russia\"\n", "05:28:40 INFO:topic #19 (0.050): 0.029*\"hong\" + 0.028*\"kong\" + 0.028*\"hong_kong\" + 0.019*\"Hong Kong\" + 0.019*\"china\" + 0.008*\"chinese\" + 0.007*\"tung\" + 0.007*\"Hong Kong's\" + 0.006*\"beijing\" + 0.006*\"airbus\"\n", "05:28:40 INFO:topic #8 (0.050): 0.028*\"gold\" + 0.026*\"bre\" + 0.026*\"bre_x\" + 0.026*\"x\" + 0.019*\"Bre-X\" + 0.015*\"barrick\" + 0.012*\"analyst\" + 0.011*\"busang\" + 0.010*\"indonesian\" + 0.009*\"government\"\n", "05:28:40 INFO:topic diff=0.359320, rho=0.301511\n", "05:28:40 INFO:PROGRESS: pass 10, at document #2500/2500\n", "05:28:40 DEBUG:performing inference on a chunk of 2500 documents\n", "05:28:41 DEBUG:2500/2500 documents converged within 50 iterations\n", "05:28:41 DEBUG:updating topics\n", "05:28:41 INFO:topic #6 (0.050): 0.019*\"share\" + 0.016*\"analyst\" + 0.013*\"shanghai\" + 0.011*\"bank\" + 0.009*\"stock\" + 0.008*\"b\" + 0.007*\"sale\" + 0.007*\"exchange\" + 0.006*\"china\" + 0.006*\"base\"\n", "05:28:41 INFO:topic #11 (0.050): 0.042*\"gm\" + 0.028*\"plant\" + 0.016*\"uaw\" + 0.016*\"strike\" + 0.015*\"worker\" + 0.011*\"automaker\" + 0.010*\"local\" + 0.010*\"truck\" + 0.009*\"part\" + 0.008*\"ford\"\n", "05:28:41 INFO:topic #2 (0.050): 0.011*\"share\" + 0.010*\"analyst\" + 0.007*\"service\" + 0.007*\"billion\" + 0.007*\"deal\" + 0.006*\"offer\" + 0.006*\"stock\" + 0.006*\"corp\" + 0.006*\"industry\" + 0.005*\"business\"\n", "05:28:41 INFO:topic #1 (0.050): 0.019*\"bank\" + 0.011*\"fund\" + 0.009*\"billion\" + 0.008*\"financial\" + 0.008*\"china\" + 0.008*\"japan\" + 0.007*\"kong\" + 0.007*\"hong_kong\" + 0.007*\"hong\" + 0.006*\"analyst\"\n", "05:28:41 INFO:topic #12 (0.050): 0.014*\"czech\" + 0.008*\"crown\" + 0.008*\"bank\" + 0.007*\"klaus\" + 0.007*\"government\" + 0.006*\"billion\" + 0.006*\"prague\" + 0.005*\"price\" + 0.005*\"foreign\" + 0.005*\"party\"\n", "05:28:41 INFO:topic diff=0.307661, rho=0.288675\n", "05:28:41 INFO:PROGRESS: pass 11, at document #2500/2500\n", "05:28:41 DEBUG:performing inference on a chunk of 2500 documents\n", "05:28:43 DEBUG:2500/2500 documents converged within 50 iterations\n", "05:28:43 DEBUG:updating topics\n", "05:28:43 INFO:topic #15 (0.050): 0.011*\"bank\" + 0.009*\"stock\" + 0.008*\"billion\" + 0.008*\"analyst\" + 0.008*\"share\" + 0.008*\"oil\" + 0.007*\"canada\" + 0.007*\"toronto\" + 0.006*\"russia\" + 0.006*\"tonne\"\n", "05:28:43 INFO:topic #2 (0.050): 0.011*\"share\" + 0.010*\"analyst\" + 0.007*\"service\" + 0.007*\"billion\" + 0.007*\"deal\" + 0.006*\"offer\" + 0.006*\"stock\" + 0.006*\"corp\" + 0.006*\"industry\" + 0.005*\"business\"\n", "05:28:43 INFO:topic #5 (0.050): 0.032*\"china\" + 0.016*\"chinese\" + 0.013*\"beijing\" + 0.012*\"official\" + 0.009*\"tonne\" + 0.007*\"hong\" + 0.007*\"hong_kong\" + 0.007*\"kong\" + 0.007*\"trade\" + 0.006*\"state\"\n", "05:28:43 INFO:topic #7 (0.050): 0.009*\"sale\" + 0.009*\"analyst\" + 0.007*\"share\" + 0.007*\"group\" + 0.006*\"profit\" + 0.006*\"business\" + 0.005*\"pound\" + 0.005*\"price\" + 0.005*\"billion\" + 0.005*\"executive\"\n", "05:28:43 INFO:topic #19 (0.050): 0.029*\"hong\" + 0.029*\"kong\" + 0.029*\"hong_kong\" + 0.019*\"Hong Kong\" + 0.019*\"china\" + 0.008*\"chinese\" + 0.008*\"tung\" + 0.007*\"Hong Kong's\" + 0.006*\"beijing\" + 0.006*\"airbus\"\n", "05:28:43 INFO:topic diff=0.263525, rho=0.277350\n", "05:28:43 INFO:PROGRESS: pass 12, at document #2500/2500\n", "05:28:43 DEBUG:performing inference on a chunk of 2500 documents\n", "05:28:44 DEBUG:2500/2500 documents converged within 50 iterations\n", "05:28:44 DEBUG:updating topics\n", "05:28:45 INFO:topic #11 (0.050): 0.042*\"gm\" + 0.028*\"plant\" + 0.016*\"uaw\" + 0.016*\"strike\" + 0.015*\"worker\" + 0.011*\"automaker\" + 0.010*\"local\" + 0.010*\"truck\" + 0.009*\"part\" + 0.008*\"ford\"\n", "05:28:45 INFO:topic #13 (0.050): 0.018*\"china\" + 0.016*\"wang\" + 0.014*\"beijing\" + 0.012*\"taiwan\" + 0.009*\"chinese\" + 0.009*\"court\" + 0.008*\"party\" + 0.008*\"government\" + 0.007*\"official\" + 0.007*\"communist\"\n", "05:28:45 INFO:topic #4 (0.050): 0.021*\"china\" + 0.012*\"official\" + 0.010*\"beijing\" + 0.009*\"chinese\" + 0.009*\"wang\" + 0.008*\"tibet\" + 0.007*\"state\" + 0.007*\"government\" + 0.006*\"people\" + 0.006*\"dissident\"\n" ] }, { "name": "stderr", "output_type": "stream", "text": [ "05:28:45 INFO:topic #16 (0.050): 0.020*\"franc\" + 0.018*\"french\" + 0.017*\"air\" + 0.017*\"france\" + 0.014*\"thomson\" + 0.012*\"billion\" + 0.010*\"group\" + 0.008*\"billion_franc\" + 0.008*\"telecom\" + 0.007*\"plan\"\n", "05:28:45 INFO:topic #18 (0.050): 0.014*\"analyst\" + 0.011*\"computer\" + 0.010*\"quarter\" + 0.010*\"internet\" + 0.008*\"share\" + 0.008*\"business\" + 0.008*\"service\" + 0.008*\"stock\" + 0.007*\"industry\" + 0.007*\"software\"\n", "05:28:45 INFO:topic diff=0.226015, rho=0.267261\n", "05:28:45 INFO:PROGRESS: pass 13, at document #2500/2500\n", "05:28:45 DEBUG:performing inference on a chunk of 2500 documents\n", "05:28:46 DEBUG:2500/2500 documents converged within 50 iterations\n", "05:28:46 DEBUG:updating topics\n", "05:28:46 INFO:topic #4 (0.050): 0.021*\"china\" + 0.012*\"official\" + 0.010*\"beijing\" + 0.009*\"wang\" + 0.009*\"chinese\" + 0.008*\"tibet\" + 0.007*\"state\" + 0.007*\"government\" + 0.006*\"people\" + 0.006*\"dissident\"\n", "05:28:46 INFO:topic #3 (0.050): 0.027*\"bt\" + 0.017*\"telecom\" + 0.015*\"mci\" + 0.013*\"pound\" + 0.011*\"billion\" + 0.011*\"analyst\" + 0.011*\"deal\" + 0.010*\"british\" + 0.010*\"share\" + 0.010*\"group\"\n", "05:28:46 INFO:topic #12 (0.050): 0.015*\"czech\" + 0.009*\"crown\" + 0.008*\"bank\" + 0.007*\"klaus\" + 0.007*\"government\" + 0.006*\"prague\" + 0.006*\"billion\" + 0.005*\"foreign\" + 0.005*\"party\" + 0.005*\"price\"\n", "05:28:46 INFO:topic #19 (0.050): 0.030*\"hong\" + 0.030*\"kong\" + 0.030*\"hong_kong\" + 0.020*\"Hong Kong\" + 0.020*\"china\" + 0.008*\"chinese\" + 0.008*\"tung\" + 0.007*\"Hong Kong's\" + 0.007*\"beijing\" + 0.006*\"airbus\"\n", "05:28:46 INFO:topic #5 (0.050): 0.032*\"china\" + 0.016*\"chinese\" + 0.013*\"beijing\" + 0.012*\"official\" + 0.010*\"tonne\" + 0.007*\"hong\" + 0.007*\"kong\" + 0.007*\"hong_kong\" + 0.007*\"trade\" + 0.006*\"state\"\n", "05:28:46 INFO:topic diff=0.194260, rho=0.258199\n", "05:28:46 INFO:PROGRESS: pass 14, at document #2500/2500\n", "05:28:46 DEBUG:performing inference on a chunk of 2500 documents\n", "05:28:48 DEBUG:2500/2500 documents converged within 50 iterations\n", "05:28:48 DEBUG:updating topics\n", "05:28:48 INFO:topic #5 (0.050): 0.033*\"china\" + 0.016*\"chinese\" + 0.013*\"beijing\" + 0.012*\"official\" + 0.010*\"tonne\" + 0.008*\"hong\" + 0.007*\"kong\" + 0.007*\"hong_kong\" + 0.007*\"trade\" + 0.007*\"state\"\n", "05:28:48 INFO:topic #13 (0.050): 0.018*\"china\" + 0.016*\"wang\" + 0.014*\"beijing\" + 0.012*\"taiwan\" + 0.009*\"chinese\" + 0.009*\"court\" + 0.008*\"party\" + 0.008*\"government\" + 0.007*\"official\" + 0.007*\"communist\"\n", "05:28:48 INFO:topic #2 (0.050): 0.011*\"share\" + 0.010*\"analyst\" + 0.007*\"service\" + 0.007*\"billion\" + 0.007*\"deal\" + 0.006*\"offer\" + 0.006*\"stock\" + 0.006*\"corp\" + 0.006*\"industry\" + 0.006*\"business\"\n", "05:28:48 INFO:topic #0 (0.050): 0.011*\"bank\" + 0.009*\"internet\" + 0.009*\"fcc\" + 0.008*\"service\" + 0.008*\"phone\" + 0.007*\"rule\" + 0.006*\"local\" + 0.006*\"tv\" + 0.006*\"court\" + 0.006*\"law\"\n", "05:28:48 INFO:topic #16 (0.050): 0.020*\"franc\" + 0.019*\"french\" + 0.018*\"air\" + 0.017*\"france\" + 0.014*\"thomson\" + 0.013*\"billion\" + 0.010*\"group\" + 0.008*\"billion_franc\" + 0.008*\"telecom\" + 0.007*\"plan\"\n", "05:28:48 INFO:topic diff=0.167433, rho=0.250000\n", "05:28:48 INFO:PROGRESS: pass 15, at document #2500/2500\n", "05:28:48 DEBUG:performing inference on a chunk of 2500 documents\n", "05:28:49 DEBUG:2500/2500 documents converged within 50 iterations\n", "05:28:49 DEBUG:updating topics\n", "05:28:49 INFO:topic #3 (0.050): 0.027*\"bt\" + 0.017*\"telecom\" + 0.015*\"mci\" + 0.013*\"pound\" + 0.011*\"analyst\" + 0.011*\"billion\" + 0.011*\"deal\" + 0.010*\"british\" + 0.010*\"share\" + 0.010*\"group\"\n", "05:28:49 INFO:topic #10 (0.050): 0.001*\"billion\" + 0.000*\"bank\" + 0.000*\"loan\" + 0.000*\"tonne\" + 0.000*\"yen\" + 0.000*\"price\" + 0.000*\"exporter\" + 0.000*\"real_estate\" + 0.000*\"analyst\" + 0.000*\"real\"\n", "05:28:49 INFO:topic #5 (0.050): 0.033*\"china\" + 0.017*\"chinese\" + 0.013*\"beijing\" + 0.012*\"official\" + 0.010*\"tonne\" + 0.008*\"hong\" + 0.008*\"kong\" + 0.007*\"hong_kong\" + 0.007*\"trade\" + 0.007*\"state\"\n", "05:28:49 INFO:topic #4 (0.050): 0.021*\"china\" + 0.012*\"official\" + 0.011*\"beijing\" + 0.009*\"wang\" + 0.009*\"chinese\" + 0.008*\"tibet\" + 0.007*\"state\" + 0.007*\"government\" + 0.006*\"people\" + 0.006*\"dissident\"\n", "05:28:49 INFO:topic #0 (0.050): 0.010*\"bank\" + 0.009*\"internet\" + 0.009*\"fcc\" + 0.008*\"service\" + 0.008*\"phone\" + 0.007*\"rule\" + 0.007*\"local\" + 0.007*\"tv\" + 0.006*\"court\" + 0.006*\"law\"\n", "05:28:49 INFO:topic diff=0.144777, rho=0.242536\n", "05:28:49 INFO:PROGRESS: pass 16, at document #2500/2500\n", "05:28:49 DEBUG:performing inference on a chunk of 2500 documents\n", "05:28:51 DEBUG:2500/2500 documents converged within 50 iterations\n", "05:28:51 DEBUG:updating topics\n", "05:28:51 INFO:topic #2 (0.050): 0.011*\"share\" + 0.010*\"analyst\" + 0.007*\"service\" + 0.007*\"billion\" + 0.007*\"deal\" + 0.006*\"offer\" + 0.006*\"stock\" + 0.006*\"corp\" + 0.006*\"industry\" + 0.006*\"business\"\n", "05:28:51 INFO:topic #9 (0.050): 0.016*\"drug\" + 0.013*\"colombia\" + 0.006*\"government\" + 0.006*\"united\" + 0.005*\"colombian\" + 0.005*\"guerrilla\" + 0.005*\"force\" + 0.004*\"oil\" + 0.004*\"country\" + 0.004*\"police\"\n", "05:28:51 INFO:topic #7 (0.050): 0.009*\"sale\" + 0.008*\"analyst\" + 0.007*\"share\" + 0.007*\"group\" + 0.007*\"profit\" + 0.006*\"business\" + 0.005*\"pound\" + 0.005*\"price\" + 0.005*\"billion\" + 0.005*\"executive\"\n", "05:28:51 INFO:topic #4 (0.050): 0.021*\"china\" + 0.012*\"official\" + 0.011*\"beijing\" + 0.009*\"wang\" + 0.009*\"chinese\" + 0.008*\"tibet\" + 0.007*\"state\" + 0.007*\"government\" + 0.006*\"people\" + 0.006*\"dissident\"\n", "05:28:51 INFO:topic #13 (0.050): 0.018*\"china\" + 0.016*\"wang\" + 0.014*\"beijing\" + 0.012*\"taiwan\" + 0.009*\"chinese\" + 0.009*\"court\" + 0.008*\"party\" + 0.008*\"government\" + 0.007*\"official\" + 0.007*\"communist\"\n", "05:28:51 INFO:topic diff=0.125646, rho=0.235702\n", "05:28:51 INFO:PROGRESS: pass 17, at document #2500/2500\n", "05:28:51 DEBUG:performing inference on a chunk of 2500 documents\n", "05:28:52 DEBUG:2500/2500 documents converged within 50 iterations\n", "05:28:52 DEBUG:updating topics\n", "05:28:52 INFO:topic #6 (0.050): 0.019*\"share\" + 0.016*\"analyst\" + 0.013*\"shanghai\" + 0.012*\"bank\" + 0.009*\"stock\" + 0.008*\"china\" + 0.007*\"b\" + 0.007*\"sale\" + 0.007*\"exchange\" + 0.006*\"base\"\n", "05:28:52 INFO:topic #14 (0.050): 0.011*\"pound\" + 0.011*\"profit\" + 0.010*\"share\" + 0.009*\"analyst\" + 0.009*\"group\" + 0.008*\"billion\" + 0.007*\"bank\" + 0.007*\"business\" + 0.006*\"million_pound\" + 0.005*\"british\"\n", "05:28:52 INFO:topic #17 (0.050): 0.036*\"apple\" + 0.026*\"computer\" + 0.021*\"software\" + 0.021*\"quarter\" + 0.014*\"analyst\" + 0.013*\"microsoft\" + 0.010*\"sale\" + 0.010*\"share\" + 0.008*\"pc\" + 0.008*\"technology\"\n", "05:28:52 INFO:topic #7 (0.050): 0.009*\"sale\" + 0.008*\"analyst\" + 0.007*\"share\" + 0.007*\"group\" + 0.007*\"profit\" + 0.006*\"business\" + 0.005*\"pound\" + 0.005*\"price\" + 0.005*\"billion\" + 0.005*\"executive\"\n", "05:28:52 INFO:topic #8 (0.050): 0.028*\"gold\" + 0.026*\"bre\" + 0.026*\"bre_x\" + 0.026*\"x\" + 0.019*\"Bre-X\" + 0.016*\"barrick\" + 0.012*\"analyst\" + 0.011*\"busang\" + 0.010*\"indonesian\" + 0.009*\"government\"\n", "05:28:52 INFO:topic diff=0.109484, rho=0.229416\n", "05:28:52 INFO:PROGRESS: pass 18, at document #2500/2500\n", "05:28:52 DEBUG:performing inference on a chunk of 2500 documents\n", "05:28:54 DEBUG:2500/2500 documents converged within 50 iterations\n", "05:28:54 DEBUG:updating topics\n", "05:28:54 INFO:topic #2 (0.050): 0.011*\"share\" + 0.010*\"analyst\" + 0.007*\"service\" + 0.007*\"billion\" + 0.007*\"deal\" + 0.006*\"offer\" + 0.006*\"stock\" + 0.006*\"corp\" + 0.006*\"industry\" + 0.006*\"business\"\n", "05:28:54 INFO:topic #15 (0.050): 0.012*\"bank\" + 0.009*\"stock\" + 0.008*\"billion\" + 0.008*\"analyst\" + 0.008*\"oil\" + 0.007*\"canada\" + 0.007*\"share\" + 0.007*\"toronto\" + 0.007*\"russia\" + 0.006*\"tonne\"\n", "05:28:54 INFO:topic #0 (0.050): 0.010*\"bank\" + 0.009*\"internet\" + 0.009*\"fcc\" + 0.009*\"service\" + 0.008*\"phone\" + 0.007*\"rule\" + 0.007*\"local\" + 0.007*\"tv\" + 0.007*\"court\" + 0.006*\"law\"\n", "05:28:54 INFO:topic #7 (0.050): 0.009*\"sale\" + 0.008*\"analyst\" + 0.007*\"share\" + 0.007*\"group\" + 0.007*\"profit\" + 0.006*\"business\" + 0.005*\"pound\" + 0.005*\"price\" + 0.005*\"billion\" + 0.005*\"executive\"\n", "05:28:54 INFO:topic #18 (0.050): 0.014*\"analyst\" + 0.011*\"computer\" + 0.010*\"quarter\" + 0.010*\"internet\" + 0.008*\"share\" + 0.008*\"business\" + 0.008*\"stock\" + 0.008*\"service\" + 0.007*\"industry\" + 0.007*\"software\"\n", "05:28:54 INFO:topic diff=0.095805, rho=0.223607\n", "05:28:54 INFO:PROGRESS: pass 19, at document #2500/2500\n", "05:28:54 DEBUG:performing inference on a chunk of 2500 documents\n", "05:28:55 DEBUG:2500/2500 documents converged within 50 iterations\n" ] }, { "name": "stderr", "output_type": "stream", "text": [ "05:28:55 DEBUG:updating topics\n", "05:28:55 INFO:topic #7 (0.050): 0.009*\"sale\" + 0.008*\"analyst\" + 0.007*\"share\" + 0.007*\"group\" + 0.007*\"profit\" + 0.006*\"business\" + 0.005*\"pound\" + 0.005*\"price\" + 0.005*\"billion\" + 0.005*\"executive\"\n", "05:28:55 INFO:topic #4 (0.050): 0.022*\"china\" + 0.012*\"official\" + 0.011*\"beijing\" + 0.010*\"wang\" + 0.009*\"chinese\" + 0.008*\"tibet\" + 0.007*\"state\" + 0.007*\"government\" + 0.007*\"people\" + 0.006*\"dissident\"\n", "05:28:55 INFO:topic #19 (0.050): 0.032*\"hong\" + 0.031*\"kong\" + 0.031*\"hong_kong\" + 0.021*\"Hong Kong\" + 0.021*\"china\" + 0.009*\"chinese\" + 0.008*\"tung\" + 0.008*\"Hong Kong's\" + 0.007*\"beijing\" + 0.007*\"airbus\"\n", "05:28:55 INFO:topic #3 (0.050): 0.027*\"bt\" + 0.018*\"telecom\" + 0.015*\"mci\" + 0.013*\"pound\" + 0.011*\"deal\" + 0.011*\"analyst\" + 0.011*\"billion\" + 0.011*\"british\" + 0.010*\"share\" + 0.010*\"group\"\n", "05:28:55 INFO:topic #8 (0.050): 0.028*\"gold\" + 0.026*\"bre\" + 0.026*\"bre_x\" + 0.026*\"x\" + 0.019*\"Bre-X\" + 0.016*\"barrick\" + 0.012*\"analyst\" + 0.011*\"busang\" + 0.010*\"indonesian\" + 0.009*\"government\"\n", "05:28:55 INFO:topic diff=0.084200, rho=0.218218\n", "05:28:55 DEBUG:Setting topics to those of the model: AuthorTopicModel(num_terms=3914, num_topics=20, num_authors=50, decay=0.5, chunksize=2500)\n", "05:28:55 INFO:CorpusAccumulator accumulated stats from 1000 documents\n", "05:28:55 INFO:CorpusAccumulator accumulated stats from 2000 documents\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ "-1.50354141347\n" ] } ], "source": [ "atmodel_standard = train_model(train_corpus_50_20, train_author2doc, train_dictionary_50_20)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "We run our first training and observe that the **passes** and **iterations** parameters are set high enough, so that the model converges.\n", "\n", "07:47:24 INFO:PROGRESS: pass 15, at document #2500/2500\n", "\n", "07:47:24 DEBUG:performing inference on a chunk of 2500 documents \n", "\n", "07:47:27 DEBUG:2500/2500 documents converged within 50 iterations \n", "\n", "Tells us that the model indeed conveges well." ] }, { "cell_type": "code", "execution_count": 14, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Precision@k: top_n=1\n", "Prediction accuracy: 0.3548\n", "Precision@k: top_n=2\n", "Prediction accuracy: 0.5228\n", "Precision@k: top_n=3\n", "Prediction accuracy: 0.6456\n", "Precision@k: top_n=4\n", "Prediction accuracy: 0.7208\n", "Precision@k: top_n=5\n", "Prediction accuracy: 0.7748\n", "Precision@k: top_n=6\n", "Prediction accuracy: 0.8188\n", "Precision@k: top_n=8\n", "Prediction accuracy: 0.8576\n", "Precision@k: top_n=10\n", "Prediction accuracy: 0.8936\n" ] }, { "data": { "image/png": "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\n", "text/plain": [ "<matplotlib.figure.Figure at 0x1190ddb70>" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "accuracy_scores_20topic={}\n", "for i in [1,2,3,4,5,6,8,10]:\n", " accuracy, k = prediction_accuracy(test_author2doc, test_corpus_50_20, atmodel_standard, k=i)\n", " accuracy_scores_20topic[k] = accuracy\n", " \n", "plot_accuracy(scores1=accuracy_scores_20topic, label1=\"20 topics\")" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "This is a rather poor accuracy performace. We increase the number of topic to 100." ] }, { "cell_type": "code", "execution_count": 15, "metadata": { "scrolled": true }, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "05:31:51 INFO:Vocabulary consists of 3914 words.\n", "05:31:51 INFO:using symmetric alpha at 0.01\n", "05:31:51 INFO:using symmetric eta at 0.01\n", "05:31:53 INFO:running online author-topic training, 100 topics, 50 authors, 10 passes over the supplied corpus of 2500 documents, updating model once every 2500 documents, evaluating perplexity every 0 documents, iterating 50x with a convergence threshold of 0.001000\n", "05:31:53 INFO:PROGRESS: pass 0, at document #2500/2500\n", "05:31:53 DEBUG:performing inference on a chunk of 2500 documents\n", "05:32:05 DEBUG:5/2500 documents converged within 50 iterations\n", "05:32:05 DEBUG:updating topics\n", "05:32:05 INFO:topic #18 (0.010): 0.007*\"analyst\" + 0.007*\"business\" + 0.005*\"billion\" + 0.005*\"stock\" + 0.005*\"boeing\" + 0.004*\"quarter\" + 0.004*\"industry\" + 0.004*\"share\" + 0.004*\"shareholder\" + 0.004*\"sale\"\n", "05:32:05 INFO:topic #71 (0.010): 0.015*\"fcc\" + 0.015*\"phone\" + 0.011*\"local\" + 0.011*\"carrier\" + 0.010*\"service\" + 0.009*\"rule\" + 0.008*\"court\" + 0.008*\"distance\" + 0.008*\"long\" + 0.007*\"tv\"\n", "05:32:05 INFO:topic #79 (0.010): 0.011*\"china\" + 0.010*\"beijing\" + 0.007*\"official\" + 0.006*\"chinese\" + 0.006*\"lama\" + 0.006*\"tibet\" + 0.006*\"share\" + 0.005*\"analyst\" + 0.005*\"region\" + 0.005*\"billion\"\n", "05:32:05 INFO:topic #93 (0.010): 0.015*\"ibm\" + 0.011*\"analyst\" + 0.011*\"computer\" + 0.010*\"pc\" + 0.009*\"sale\" + 0.009*\"quarter\" + 0.008*\"industry\" + 0.008*\"price\" + 0.007*\"consumer\" + 0.007*\"service\"\n", "05:32:05 INFO:topic #99 (0.010): 0.008*\"world\" + 0.008*\"czech\" + 0.007*\"analyst\" + 0.006*\"stock\" + 0.006*\"win\" + 0.005*\"billion\" + 0.005*\"team\" + 0.005*\"game\" + 0.005*\"bank\" + 0.005*\"second\"\n", "05:32:05 INFO:topic diff=25.070898, rho=1.000000\n", "05:32:05 INFO:PROGRESS: pass 1, at document #2500/2500\n", "05:32:05 DEBUG:performing inference on a chunk of 2500 documents\n", "05:32:12 DEBUG:2492/2500 documents converged within 50 iterations\n", "05:32:12 DEBUG:updating topics\n", "05:32:12 INFO:topic #70 (0.010): 0.019*\"shanghai\" + 0.018*\"share\" + 0.017*\"china\" + 0.011*\"stock\" + 0.011*\"beijing\" + 0.010*\"b\" + 0.010*\"foreign\" + 0.010*\"exchange\" + 0.009*\"analyst\" + 0.008*\"investor\"\n", "05:32:12 INFO:topic #2 (0.010): 0.020*\"mci\" + 0.012*\"long\" + 0.012*\"service\" + 0.010*\"distance\" + 0.010*\"analyst\" + 0.010*\"sprint\" + 0.010*\"billion\" + 0.010*\"corp\" + 0.008*\"local\" + 0.008*\"deal\"\n", "05:32:12 INFO:topic #57 (0.010): 0.024*\"china\" + 0.013*\"beijing\" + 0.011*\"chinese\" + 0.010*\"wang\" + 0.010*\"hong_kong\" + 0.009*\"hong\" + 0.008*\"kong\" + 0.008*\"official\" + 0.007*\"Hong Kong\" + 0.006*\"people\"\n", "05:32:12 INFO:topic #45 (0.010): 0.021*\"time\" + 0.016*\"executive\" + 0.013*\"cable\" + 0.011*\"rise\" + 0.011*\"sale\" + 0.010*\"billion\" + 0.009*\"quarter\" + 0.008*\"share\" + 0.008*\"group\" + 0.007*\"analyst\"\n", "05:32:12 INFO:topic #18 (0.010): 0.007*\"analyst\" + 0.006*\"business\" + 0.005*\"billion\" + 0.004*\"stock\" + 0.004*\"boeing\" + 0.004*\"quarter\" + 0.004*\"industry\" + 0.004*\"share\" + 0.004*\"shareholder\" + 0.003*\"sale\"\n", "05:32:12 INFO:topic diff=7.998665, rho=0.577350\n", "05:32:12 INFO:PROGRESS: pass 2, at document #2500/2500\n", "05:32:12 DEBUG:performing inference on a chunk of 2500 documents\n", "05:32:19 DEBUG:2500/2500 documents converged within 50 iterations\n", "05:32:19 DEBUG:updating topics\n", "05:32:19 INFO:topic #70 (0.010): 0.021*\"share\" + 0.021*\"shanghai\" + 0.019*\"china\" + 0.012*\"b\" + 0.011*\"foreign\" + 0.011*\"stock\" + 0.011*\"bank\" + 0.011*\"analyst\" + 0.010*\"beijing\" + 0.010*\"exchange\"\n", "05:32:19 INFO:topic #71 (0.010): 0.020*\"fcc\" + 0.015*\"phone\" + 0.013*\"carrier\" + 0.013*\"tv\" + 0.012*\"local\" + 0.010*\"service\" + 0.010*\"rule\" + 0.010*\"long\" + 0.009*\"distance\" + 0.008*\"long_distance\"\n", "05:32:19 INFO:topic #22 (0.010): 0.033*\"bank\" + 0.010*\"rate\" + 0.010*\"cut\" + 0.009*\"analyst\" + 0.008*\"day\" + 0.008*\"merger\" + 0.007*\"profit\" + 0.007*\"australia\" + 0.007*\"financial\" + 0.006*\"ltd\"\n", "05:32:19 INFO:topic #18 (0.010): 0.006*\"analyst\" + 0.005*\"business\" + 0.004*\"billion\" + 0.004*\"stock\" + 0.004*\"boeing\" + 0.003*\"quarter\" + 0.003*\"industry\" + 0.003*\"share\" + 0.003*\"shareholder\" + 0.003*\"sale\"\n", "05:32:19 INFO:topic #5 (0.010): 0.018*\"china\" + 0.009*\"beijing\" + 0.008*\"tonne\" + 0.007*\"chinese\" + 0.006*\"official\" + 0.005*\"trade\" + 0.005*\"price\" + 0.005*\"chen\" + 0.005*\"trader\" + 0.004*\"million_tonne\"\n", "05:32:19 INFO:topic diff=7.090922, rho=0.500000\n", "05:32:19 INFO:PROGRESS: pass 3, at document #2500/2500\n", "05:32:19 DEBUG:performing inference on a chunk of 2500 documents\n", "05:32:25 DEBUG:2500/2500 documents converged within 50 iterations\n", "05:32:25 DEBUG:updating topics\n", "05:32:26 INFO:topic #9 (0.010): 0.004*\"analyst\" + 0.003*\"government\" + 0.002*\"share\" + 0.002*\"china\" + 0.002*\"cost\" + 0.002*\"sale\" + 0.002*\"right\" + 0.002*\"stock\" + 0.002*\"big\" + 0.002*\"end\"\n", "05:32:26 INFO:topic #20 (0.010): 0.016*\"gold\" + 0.016*\"bre\" + 0.015*\"x\" + 0.015*\"bre_x\" + 0.010*\"barrick\" + 0.009*\"Bre-X\" + 0.008*\"gm\" + 0.008*\"price\" + 0.008*\"analyst\" + 0.008*\"plant\"\n", "05:32:26 INFO:topic #4 (0.010): 0.015*\"franc\" + 0.015*\"thomson\" + 0.014*\"french\" + 0.009*\"group\" + 0.009*\"share\" + 0.008*\"france\" + 0.008*\"government\" + 0.008*\"plan\" + 0.008*\"lagardere\" + 0.007*\"billion\"\n", "05:32:26 INFO:topic #87 (0.010): 0.017*\"analyst\" + 0.011*\"sale\" + 0.010*\"share\" + 0.009*\"business\" + 0.008*\"quarter\" + 0.008*\"price\" + 0.007*\"add\" + 0.007*\"chemical\" + 0.006*\"stock\" + 0.006*\"earning\"\n", "05:32:26 INFO:topic #62 (0.010): 0.022*\"profit\" + 0.014*\"pound\" + 0.011*\"sale\" + 0.011*\"rise\" + 0.010*\"analyst\" + 0.010*\"stg\" + 0.010*\"group\" + 0.009*\"business\" + 0.009*\"half\" + 0.009*\"million_stg\"\n", "05:32:26 INFO:topic diff=6.178695, rho=0.447214\n", "05:32:26 INFO:PROGRESS: pass 4, at document #2500/2500\n", "05:32:26 DEBUG:performing inference on a chunk of 2500 documents\n", "05:32:31 DEBUG:2500/2500 documents converged within 50 iterations\n", "05:32:31 DEBUG:updating topics\n", "05:32:32 INFO:topic #47 (0.010): 0.012*\"gold\" + 0.008*\"oil\" + 0.008*\"share\" + 0.007*\"stock\" + 0.006*\"analyst\" + 0.006*\"government\" + 0.006*\"price\" + 0.006*\"colombia\" + 0.005*\"rise\" + 0.005*\"issue\"\n", "05:32:32 INFO:topic #86 (0.010): 0.014*\"cargo\" + 0.010*\"service\" + 0.010*\"kong\" + 0.009*\"hong\" + 0.009*\"air\" + 0.009*\"airline\" + 0.008*\"hong_kong\" + 0.007*\"Hong Kong\" + 0.007*\"route\" + 0.006*\"rate\"\n", "05:32:32 INFO:topic #25 (0.010): 0.010*\"boeing\" + 0.009*\"share\" + 0.009*\"analyst\" + 0.007*\"billion\" + 0.006*\"service\" + 0.006*\"mci\" + 0.006*\"business\" + 0.005*\"stock\" + 0.005*\"jet\" + 0.005*\"growth\"\n", "05:32:32 INFO:topic #74 (0.010): 0.043*\"china\" + 0.020*\"chinese\" + 0.014*\"official\" + 0.014*\"beijing\" + 0.010*\"trade\" + 0.009*\"state\" + 0.007*\"states\" + 0.006*\"united\" + 0.006*\"united_states\" + 0.006*\"import\"\n", "05:32:32 INFO:topic #53 (0.010): 0.032*\"fund\" + 0.012*\"investment\" + 0.011*\"hong_kong\" + 0.011*\"hong\" + 0.010*\"stock\" + 0.010*\"management\" + 0.010*\"week\" + 0.009*\"manager\" + 0.009*\"billion\" + 0.009*\"kong\"\n", "05:32:32 INFO:topic diff=5.327576, rho=0.408248\n", "05:32:32 INFO:PROGRESS: pass 5, at document #2500/2500\n", "05:32:32 DEBUG:performing inference on a chunk of 2500 documents\n", "05:32:36 DEBUG:2500/2500 documents converged within 50 iterations\n", "05:32:36 DEBUG:updating topics\n", "05:32:37 INFO:topic #60 (0.010): 0.002*\"financial\" + 0.002*\"official\" + 0.002*\"stock\" + 0.002*\"policy\" + 0.002*\"group\" + 0.002*\"share\" + 0.002*\"china\" + 0.001*\"chinese\" + 0.001*\"beijing\" + 0.001*\"bank\"\n", "05:32:37 INFO:topic #77 (0.010): 0.006*\"computer\" + 0.005*\"internet\" + 0.005*\"quarter\" + 0.005*\"analyst\" + 0.004*\"business\" + 0.004*\"share\" + 0.004*\"service\" + 0.003*\"profit\" + 0.003*\"industry\" + 0.003*\"system\"\n", "05:32:37 INFO:topic #43 (0.010): 0.003*\"bre_x\" + 0.003*\"bre\" + 0.002*\"analyst\" + 0.002*\"gold\" + 0.002*\"barrick\" + 0.002*\"government\" + 0.002*\"Bre-X\" + 0.002*\"x\" + 0.002*\"share\" + 0.002*\"stock\"\n", "05:32:37 INFO:topic #10 (0.010): 0.002*\"billion\" + 0.001*\"investment\" + 0.001*\"tonne\" + 0.001*\"quarter\" + 0.001*\"venture\" + 0.001*\"industry\" + 0.001*\"price\" + 0.001*\"cocoa\" + 0.001*\"coast\" + 0.001*\"month\"\n", "05:32:37 INFO:topic #99 (0.010): 0.005*\"world\" + 0.005*\"czech\" + 0.004*\"analyst\" + 0.004*\"stock\" + 0.004*\"win\" + 0.003*\"billion\" + 0.003*\"team\" + 0.003*\"game\" + 0.003*\"bank\" + 0.003*\"second\"\n", "05:32:37 INFO:topic diff=4.560862, rho=0.377964\n", "05:32:37 INFO:PROGRESS: pass 6, at document #2500/2500\n", "05:32:37 DEBUG:performing inference on a chunk of 2500 documents\n", "05:32:41 DEBUG:2500/2500 documents converged within 50 iterations\n", "05:32:41 DEBUG:updating topics\n" ] }, { "name": "stderr", "output_type": "stream", "text": [ "05:32:41 INFO:topic #38 (0.010): 0.015*\"analyst\" + 0.014*\"australian\" + 0.013*\"ltd\" + 0.012*\"share\" + 0.011*\"australia\" + 0.011*\"profit\" + 0.010*\"sydney\" + 0.009*\"group\" + 0.009*\"news\" + 0.008*\"corp\"\n", "05:32:41 INFO:topic #46 (0.010): 0.004*\"hong\" + 0.004*\"kong\" + 0.003*\"china\" + 0.002*\"Hong Kong\" + 0.002*\"official\" + 0.002*\"hong_kong\" + 0.002*\"chinese\" + 0.002*\"united\" + 0.002*\"singapore\" + 0.001*\"month\"\n", "05:32:41 INFO:topic #97 (0.010): 0.021*\"internet\" + 0.017*\"bank\" + 0.008*\"law\" + 0.008*\"court\" + 0.008*\"congress\" + 0.007*\"service\" + 0.007*\"credit\" + 0.007*\"allow\" + 0.007*\"bill\" + 0.006*\"policy\"\n", "05:32:41 INFO:topic #75 (0.010): 0.028*\"bank\" + 0.016*\"japan\" + 0.015*\"billion\" + 0.014*\"yen\" + 0.014*\"financial\" + 0.012*\"loan\" + 0.011*\"japanese\" + 0.010*\"problem\" + 0.010*\"analyst\" + 0.009*\"firm\"\n", "05:32:41 INFO:topic #11 (0.010): 0.063*\"gm\" + 0.032*\"plant\" + 0.024*\"strike\" + 0.021*\"automaker\" + 0.021*\"worker\" + 0.017*\"uaw\" + 0.013*\"truck\" + 0.013*\"local\" + 0.013*\"union\" + 0.012*\"chrysler\"\n", "05:32:41 INFO:topic diff=3.882969, rho=0.353553\n", "05:32:41 INFO:PROGRESS: pass 7, at document #2500/2500\n", "05:32:41 DEBUG:performing inference on a chunk of 2500 documents\n", "05:32:46 DEBUG:2500/2500 documents converged within 50 iterations\n", "05:32:46 DEBUG:updating topics\n", "05:32:46 INFO:topic #82 (0.010): 0.003*\"quarter\" + 0.003*\"executive\" + 0.003*\"internet\" + 0.003*\"high\" + 0.003*\"share\" + 0.002*\"loss\" + 0.002*\"technology\" + 0.002*\"high_tech\" + 0.002*\"stock\" + 0.002*\"software\"\n", "05:32:46 INFO:topic #38 (0.010): 0.015*\"analyst\" + 0.014*\"australian\" + 0.013*\"ltd\" + 0.012*\"share\" + 0.011*\"australia\" + 0.011*\"profit\" + 0.010*\"sydney\" + 0.009*\"group\" + 0.009*\"news\" + 0.008*\"corp\"\n", "05:32:46 INFO:topic #9 (0.010): 0.001*\"analyst\" + 0.001*\"government\" + 0.001*\"share\" + 0.001*\"china\" + 0.001*\"cost\" + 0.001*\"sale\" + 0.001*\"right\" + 0.001*\"stock\" + 0.001*\"big\" + 0.001*\"end\"\n", "05:32:46 INFO:topic #13 (0.010): 0.001*\"china\" + 0.001*\"share\" + 0.001*\"official\" + 0.001*\"analyst\" + 0.001*\"group\" + 0.001*\"sale\" + 0.001*\"beijing\" + 0.001*\"party\" + 0.001*\"month\" + 0.001*\"billion\"\n", "05:32:46 INFO:topic #76 (0.010): 0.024*\"cocoa\" + 0.019*\"exporter\" + 0.019*\"tonne\" + 0.012*\"ivory\" + 0.012*\"coast\" + 0.012*\"ivory_coast\" + 0.011*\"crop\" + 0.011*\"price\" + 0.010*\"buyer\" + 0.009*\"export\"\n", "05:32:46 INFO:topic diff=3.291750, rho=0.333333\n", "05:32:46 INFO:PROGRESS: pass 8, at document #2500/2500\n", "05:32:46 DEBUG:performing inference on a chunk of 2500 documents\n", "05:32:50 DEBUG:2500/2500 documents converged within 50 iterations\n", "05:32:50 DEBUG:updating topics\n", "05:32:50 INFO:topic #18 (0.010): 0.001*\"analyst\" + 0.001*\"business\" + 0.001*\"billion\" + 0.001*\"stock\" + 0.001*\"boeing\" + 0.001*\"quarter\" + 0.001*\"industry\" + 0.001*\"share\" + 0.001*\"shareholder\" + 0.001*\"sale\"\n", "05:32:50 INFO:topic #61 (0.010): 0.014*\"analyst\" + 0.014*\"microsoft\" + 0.010*\"share\" + 0.009*\"software\" + 0.009*\"quarter\" + 0.009*\"boeing\" + 0.009*\"office\" + 0.008*\"computer\" + 0.008*\"worker\" + 0.008*\"fiscal\"\n", "05:32:50 INFO:topic #2 (0.010): 0.019*\"mci\" + 0.013*\"analyst\" + 0.011*\"long\" + 0.011*\"share\" + 0.011*\"service\" + 0.010*\"distance\" + 0.010*\"long_distance\" + 0.010*\"billion\" + 0.010*\"corp\" + 0.008*\"local\"\n", "05:32:50 INFO:topic #98 (0.010): 0.031*\"tonne\" + 0.030*\"china\" + 0.019*\"trader\" + 0.018*\"chinese\" + 0.018*\"price\" + 0.016*\"hong_kong\" + 0.016*\"hong\" + 0.016*\"kong\" + 0.013*\"source\" + 0.013*\"import\"\n", "05:32:50 INFO:topic #71 (0.010): 0.019*\"fcc\" + 0.014*\"tv\" + 0.014*\"phone\" + 0.013*\"carrier\" + 0.011*\"local\" + 0.010*\"service\" + 0.010*\"long\" + 0.009*\"rule\" + 0.009*\"distance\" + 0.009*\"long_distance\"\n", "05:32:50 INFO:topic diff=2.781235, rho=0.316228\n", "05:32:50 INFO:PROGRESS: pass 9, at document #2500/2500\n", "05:32:50 DEBUG:performing inference on a chunk of 2500 documents\n", "05:32:54 DEBUG:2500/2500 documents converged within 50 iterations\n", "05:32:54 DEBUG:updating topics\n", "05:32:55 INFO:topic #99 (0.010): 0.002*\"world\" + 0.002*\"czech\" + 0.002*\"analyst\" + 0.002*\"stock\" + 0.002*\"win\" + 0.001*\"billion\" + 0.001*\"team\" + 0.001*\"game\" + 0.001*\"bank\" + 0.001*\"second\"\n", "05:32:55 INFO:topic #26 (0.010): 0.003*\"business\" + 0.002*\"analyst\" + 0.002*\"gm\" + 0.001*\"share\" + 0.001*\"internet\" + 0.001*\"billion\" + 0.001*\"stock\" + 0.001*\"access\" + 0.001*\"chemical\" + 0.001*\"service\"\n", "05:32:55 INFO:topic #80 (0.010): 0.012*\"analyst\" + 0.012*\"computer\" + 0.009*\"stock\" + 0.009*\"internet\" + 0.008*\"quarter\" + 0.008*\"technology\" + 0.008*\"service\" + 0.007*\"software\" + 0.007*\"share\" + 0.007*\"business\"\n", "05:32:55 INFO:topic #67 (0.010): 0.045*\"gm\" + 0.033*\"plant\" + 0.021*\"uaw\" + 0.017*\"strike\" + 0.017*\"worker\" + 0.012*\"part\" + 0.011*\"local\" + 0.010*\"truck\" + 0.010*\"automaker\" + 0.010*\"contract\"\n", "05:32:55 INFO:topic #97 (0.010): 0.021*\"internet\" + 0.017*\"bank\" + 0.008*\"law\" + 0.008*\"court\" + 0.008*\"congress\" + 0.007*\"service\" + 0.007*\"credit\" + 0.007*\"allow\" + 0.007*\"bill\" + 0.006*\"policy\"\n", "05:32:55 INFO:topic diff=2.344407, rho=0.301511\n", "05:32:55 DEBUG:Setting topics to those of the model: AuthorTopicModel(num_terms=3914, num_topics=100, num_authors=50, decay=0.5, chunksize=2500)\n", "05:32:55 INFO:CorpusAccumulator accumulated stats from 1000 documents\n", "05:32:55 INFO:CorpusAccumulator accumulated stats from 2000 documents\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ "-1.89056657258\n" ] } ], "source": [ "atmodel_100topics = train_model(train_corpus_50_20, train_author2doc, train_dictionary_50_20, num_topics=100, eval_every=0, iterations=50, passes=10)" ] }, { "cell_type": "code", "execution_count": 16, "metadata": { "scrolled": false }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Precision@k: top_n=1\n", "Prediction accuracy: 0.5808\n", "Precision@k: top_n=2\n", "Prediction accuracy: 0.7472\n", "Precision@k: top_n=3\n", "Prediction accuracy: 0.8252\n", "Precision@k: top_n=4\n", "Prediction accuracy: 0.8732\n", "Precision@k: top_n=5\n", "Prediction accuracy: 0.8956\n", "Precision@k: top_n=6\n", "Prediction accuracy: 0.9072\n", "Precision@k: top_n=8\n", "Prediction accuracy: 0.9276\n", "Precision@k: top_n=10\n", "Prediction accuracy: 0.9412\n" ] }, { "data": { "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYgAAAEWCAYAAAB8LwAVAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uIDIuMS4yLCBo\ndHRwOi8vbWF0cGxvdGxpYi5vcmcvNQv5yAAAIABJREFUeJzs3Xd4FWX2wPHvSUhIEEiooTcpYiAE\nghQL3VWBxbqsrAXsHbvib1WQqKtrW9uquC5FRUDsdVUIKooiRXqvAqEFEhJISDu/P+YmpJKbcu+k\nnM/z3Odm5s6d90zEOZl55z2vqCrGGGNMQQFuB2CMMaZysgRhjDGmSJYgjDHGFMkShDHGmCJZgjDG\nGFMkSxDGGGOKZAnCmBKIyBoRGVTCNm1EJEVEAv0UltdEZLuIDHM7DlP1WIIwVZbnxJfqOTHvE5Fp\nIlK3ottR1UhVXVDCNjtVta6qZlV0+ycjIpNE5B1/tmlqDksQpqr7s6rWBXoBvYGHC24gDvu3bkwp\n2f80plpQ1d3AV0A3ABFZICJPiMhPwDGgg4iEichbIhIvIrtF5PG8t4RE5AYRWSciySKyVkR6edbn\n3qIRkT4iskREjniuWp73rG8nIioitTzLLUTkUxE5JCKbReSGPO1MEpE5IjLD09YaEeld3LGJyIsi\n8oenzaUico5n/fnA/wF/9VxFrSjp9yQiXUVkm4iMKe3v2NQ8liBMtSAirYHhwPI8q68CbgTqATuA\naUAm0BHoCfwJuN7z/b8Ak4CrgfrAKCChiKZeBF5U1frAqcCcYkKaBewCWgCXAU+KyJA8n4/ybBMO\nfAq8cpLD+w2IBhoCM4H3RSREVb8GngRme25v9TjJPvAkvP8Bd6jqeyfb1hiwBGGqvo9FJBFYCHyP\nc8LMMU1V16hqJs7JdThwl6oeVdX9wAvA5Z5trwf+qaq/qWOzqu4oor0MoKOINFbVFFX9peAGnmR1\nFvCgqqap6u/Af3CST46Fqvqlp8/ibaDYk7uqvqOqCaqaqarPAbWBLt78cvI4BycRXa2qn5fyu6aG\nsgRhqrqLVDVcVduq6q2qmprnsz/y/NwWCALiRSTRk1TeAJp6Pm8NbPGiveuAzsB6EflNREYWsU0L\n4JCqJudZtwNomWd5b56fjwEhObenChKR+zy3vpI8cYcBjb2INa+bgZ9L6mw3Ji9LEKY6y1uq+A/g\nONDYk1DCVbW+qkbm+fzUEneouklVx+AklqeBuSJySoHN9gANRaRennVtgN2lPQBPf8MDwGiggaqG\nA0mA5ITk5a5uBtqIyAuljcHUXJYgTI2gqvHAN8BzIlJfRAJE5FQRGejZ5D/AfSIS43nqqaOItC24\nHxG5UkSaqGo2kOhZnV2grT+An4F/iEiIiEThXHmU5XHUejj9JgeAWiLyKE4fSY59QDsvntJKBs4H\nBojIU2WIw9RAliBMTXI1EAysBQ4Dc4HmAKr6PvAETidwMvAxTr9FQecDa0QkBafD+vICt7VyjAHa\n4VxNfARMVNXvyhDz/4CvgY04t6nSyH/r7H3Pe4KILDvZjlQ1ETgXuEBEYssQi6lhxCYMMsYYUxS7\ngjDGGFMknyUIEfmviOwXkdV51jUUkW9FZJPnvYFnvYjIS54BRStzBigZY4xxjy+vIKbh3K/NawIw\nT1U7AfM8ywAXAJ08rxuB13wYlzHGGC/4LEGo6g/AoQKrLwSme36eDlyUZ/0MzwClX4BwEWnuq9iM\nMcaUrMiBOT4U4XncEJyBQhGen1uS/8mMXZ518RQgIjfiXGUQGhoa07p1a99FexLZ2dkEBPi/C6em\ntetm2zXxmN1U047ZzePduHHjQVVtUuKGquqzF85jfqvzLCcW+Pyw5/1z4Ow86+cBvUvaf0xMjLol\nLi7O2q3mbdfEY3ZTTTtmN48XWKJenMP9nb725dw68rzv96zfjVPqIEcryjDq1BhjTMXxd4L4FBjr\n+Xks8Eme9Vd7nmbqByTpiVtRxhhjXOCzPggReQ8YBDQWkV3AROApYI6IXIczKnS0Z/MvcSptbsYp\nXHaNr+IyxhjjHZ8lCHUKmhVlaBHbKnCbr2IxxhhTejXnkQFjjDGlYgnCGGNMkSxBGGOMKZIlCGOM\nMUWyBGGMMaZIliCMMcYUyRKEMcaYIlmCMMYYUyRLEMYYY4pkCcIYY0yRLEEYY4w/rZwDL3Rj4IKL\n4IVuznIl5e8Jg4wxpuZaOQf9bDySkYoAJP0Bn413PosafbJvusIShDHGlMHxzCySUjNIOpZBUmoG\niccySEzNIPFYOkdSc3523pOOpZOUmsHMow/RgtT8O8pIhXmTLUEYY0xloqocTc8i8Vg6iZ4T/YmT\nfTpJxzJy1yem5t/mWHpWsfsVgbDQIMJDgwirE0xYnWDaNjqF5hsSiv5C0i4fHWH5WIIwxrhr5RyY\nN5mBSbtgeSsY+mip/5rOzMo+cXL3/FWfe4JPzXOS9/wln5jnL//MbC12v8G1AggPDSK8ThDhocG0\nbliHbp4Tf3gdz8k/z3J4aDBhdYKoV7sWAQFSeIcvtHJuKxUU1qpUx+svliCMMe5ZOce5B5/nnnz2\np+OJT0zlj1YjPSf29BO3avKc/HP/mj+WQfLxzJM2Uy+klnMi95zEm4eHOn/dFzix510OrxNESFBg\nxR7v0EdzjzdXUKizvhKyBGGM8SlVJSk1g31HjrP3SBr7ktLYdySNvUfSuHv132mclf+efEBmKvrd\nZC5Pb5xvfa0Acf5q95zYI+qH0CWi3okTe2gQ4XWcE/2Jk38w9UNqUSuwkjywmXNlNG8ymrQLCSvb\nFZO/WIIwxpRZWkYW+48cZ19yGns9J37n5H/cSQSe9cczswt9t0GdIGKzDxS535YBCcy8vq9zsvfc\nxjklOBCRIm7bVDVRoyFqNN8vWMCgQYPcjuakLEEYYwrJzlYSjqY7J3vPid75y99zFeB5HT6WUei7\ntWsF0CwshIj6IUS1CudPp9cmor6z3CwshGb1Q2hSr7Zz+6aYe/IS1oozOzYutN74lyUIY2qYlOOZ\nzgk+Kc1zsj9eKBHsTz5eqPNWBBrXrU2z+iG0alCHmLYNaFY/hAhPMmjmedUPreX9X/pV7J58TWMJ\nwpjKpBxP9GRkZXMg+fiJ2zxJaexLPp4nETjJIKWIDt16tWt5TvS16Xdqo9wTvvOXf22ahYXQpG7t\nir+XX8Xuydc0liCMqSyKeKKHz8ajQFLHi9jrOenvL3CbJ+cq4GDKcbTAE5u1AiT3JN85oh7ndGri\nuf1TO18SOKW2i6eCKnRPvqZx5V+FiNwJ3AAI8Kaq/ktEGgKzgXbAdmC0qh52Iz5j/EVVSTyWwe7E\nVE79eiKhGYVH2e754CHOOn5Koe82qBOUe18/snkYEWE5J/zauesb1gku+nl8Y7zg9wQhIt1wkkMf\nIB34WkQ+B24E5qnqUyIyAZgAPOjv+IypSOmZ2ew7ksbuxFR2H05lT2Iqe5JS2Z2Yxu7Dx9iTmEZq\nhjMid2vtPc6fTAW0kAQeHtE1t+M3XyevMT7kxhVEV+BXVT0GICLfA5cAFwKDPNtMBxZgCcK4wct+\nAFXlSFpm/hP/4VR2J3qWE51O34K3fRrXDaZFeCidmtZjYOemtGwQSsvwEDK/bklwyu5C7UhYK64/\np4Ovjta4IT6e6DvvhP/9D5o1czuaYokW/Nfr6wZFugKfAP2BVGAesAS4SlXDPdsIcDhnucD3b8S5\n2iAiIiJm1qxZ/go9n5SUFOrWrWvtVrO2m+77ni4bXiUw+3juugypzRcRN7Mw6GwS0pSEVCUhLZuE\nVCWtQDmeWgINQ4VGIUKj0AAahQgNQ4XGIQE0ChUahgjBgUXf8imq7ayA2mzochv7Iwb65HgrEzf/\njflbpxdeoMVnn7Fn1Cg23XWX39sfPHjwUlXtXdJ2fk8QACJyHXArcBRYAxwHxuVNCCJyWFUbnGw/\nvXv31iVLlvg01uIscKlDraa166+2VZVdh1Np9GYv6qTGF/p8V3Zjzk5/ifA6QbQMD6VFeCgtPa8W\n4aG0CA+hZXgojevWLt89f8/VS018osfNf2P+lL4jnlpdOhBwPA0NDUW2bvX7VYSIeJUgXOmkVtW3\ngLcARORJYBewT0Saq2q8iDQH9rsRm6kZMrKyWbPnCEt3HGbpjkMs3XGYfUeOs7V2fJH9AC0DEljz\n2Hm+f9rHnuipVg4cgBUr8r9uWRXLOM0mBNDMLCQ2Fl591e1Qi+TWU0xNVXW/iLTB6X/oB7QHxgJP\ned4/cSM2Uz0lHkv3JIPDLNlxmJW7EknLcMo/tAwPpW/7RvRu14DMn4rvB3D1UVBTqWVmwsaNhZNB\nfJ6L0RYtYFCXeK4LnEpQZjoAARnpMHUqPPJIpeyLcOtf/Aci0gjIAG5T1UQReQqY47n9tAOoGdfV\npsKpKlsPHmXp9pyEcIgtB44CzriAyBb1GdOnDb3bNnRGA4eFnPjyKZNsZK85qcREWLkyfyJYvRrS\n0pzPg4Kga1cYNgyio6FHD4iKgiZNgFtj4acCdamysqCSXkW4dYvpnCLWJQBDXQjHVHFpGVms3JXE\nkh2HWOa5SsipERQWGkRM2wZc0qsVMW0b0KNVOKHBJ3k81Eb2Go/sbNi6tfBVwY4dJ7Zp3NhJALfe\n6rz36OEkh+DgYna6aBGkp+dfl54OP//ss+MoD7tmNpVXMY+b7j+SlnuraOmOw6zZk0RGlvOwRYfG\npzCsawQxbRvQu10DOjSuW/pOY+sHqHFSUmDVqvyJYNUqZz1AQAB06QL9+8PNN59IBs2bOzWqvLZ8\nee6PVaFT3hKEqZyKKDuR/tHt/OOzNUxN7gM4s331aBXGdWd3IKZtA3q1CadR3dquhm0qN1XYubPw\nVcGWLeSOVwkLc07+11xzIhFERkJoqLuxu8EShKmUsr97jIACZSeC9Ti360xaDB9LTLsGdGsRRnCt\nSjIRjKl0UlNhzZr8iWDlSqcPIUfHjk4CuPrqE8mgTZtSXhVUY5YgTKWScjyTtxft4KYjhZ8kAmiU\neYAbBtioYnOCqvO0UMGrgg0bnH4EgFNOge7d4a9/dZJAdLSzXEPG5ZWZJQhTKRxJy2D6T9t566dt\nJB7L4C+nNKFxVhFDYSrp5O7GP9LTYd26wsng4MET27Rp4ySBSy89cVVw6qlOP4IpHUsQxlWJx9L5\n70/bmfrTNpLTMhl6WlPuGNqJxoefsMdNa5IiahMVNchs3TrI8ExiV7s2dOsGo0adSARRUdDgpPUX\nTGlYgjCuSEg5zlsLtzFj0Q5SjmdyXmQEdwzpRLeWYc4Gre1x05oiKwuS7oklfNUqFg2PZXLEq4UG\nmTVv7iSACy44kQw6d4ZadgbzKfv1Gr/an5zGmz9s5Z1fdpKWmcXw7s25Y0hHTmtWv/DG9rhptZOZ\nCevXw9KlzmvZMohfFs/q1KkEoPRYPpXjXR9h2LBmuYmgRw/PIDPjd5YgjF/sTUrj9e+38N7inWRk\nZTOqRwtuH9KRjk3ruR2a8ZGMDFi71kkCOQlhxQrn6SKAOnWczuJpp8YSvC4bsiA0OIv5gyvnqOKa\nyBKE8andiam8tmAzc37bRZYql/Rsya2DO9K+ceEZ0kzVlZ7uPFKa98pgxQo47qlcXrcu9OwJN90E\nvXpBTIwz8Cxwfzx0mApZzuhiSa/ctYlqGksQxid2Jhzj3ws288GyXQBcFtOaWwedSuuGdVyOzJTX\n8ePOKOOcRLB0qbOcU0Gifn0nCdx2m5MIYmKgU6diniKKjT3xLGqOSlybqKaxBGEq1NYDKbwat4WP\nf99NYIAwpk8bbhp4Ki3Da+Aw1GogNfVEMsh5rV7t9CUAhIc7yeDOO51E0KtXKR8prWK1iWoaSxCm\nQmzal8zL8zfz+co9BNcKYGz/dtw0sAMR9UNK/rKpFI4dc24L5b0yWLPG+YMeoGFDJwncd9+J20Tt\n25dz1HEVq01U01iCMOWyds8RXonbxFer9xIaFMgN53Tg+nM60KSe1USqzFJS4Pff83cgr1t34m5P\nkyZOAhg58sRtIitBUfNYgjBlsmpXEi/N38S3a/dRt3YtbhvUkWvPbk/DU4qrc2zckpzs/KGe98pg\n/foTxekiIpwEcMklJ24TtWplycBYgjAlKVBye1v0vUzeHknchgPUD6nFXcM6cc2Z7QmrE+R2pAZI\nSnKSQN4rg02bTiSDFi2cJPDXv564TdSihbsxm8rLEoQpXhEltyMWPEAzuZn7zxvLVf3bUj/EEoNb\nDh/OnwiWLYPNm0983rq1kwCuvPLElYE9OWpKwxKEKd68yflrIQF1JJ0n6n9IwOBYl4KqAYqoS5SQ\nkP8W0dKlsG3bia+0a+ckgGuucZJBz57QtKk74ZvqwxKEKZYm7aKo29ABxZTiNhUj7e+x1F+1iiUX\nxvJky1dZtiz/NJcdOkDv3icGnfXqBY0auRevqb4sQZgi/bb9EK1oRHMOFv7QSm77xLJl8Nbj8Tz7\nkVOX6PTFU9nb/hH692+WO+isZ0+rVmr8xxKEyUdVefuXHUz+bC3j6l3N/2W9RkCmldz2lexs+PJL\neO45WLAA3gyKJSjwRF2iny+wEcXGPTaFhsmVlpHF/XNX8ugnaxjQuQl33PV/BIx6CcJaowiEtYY/\nv2QltytAaipMmQKnnw5//rMzJ/Jrj8ZzXeBUahWsS7R3r8vRmprKlQQhIneLyBoRWS0i74lIiIi0\nF5FfRWSziMwWEXug3o/2JKYy+o1FzF26i/FDO/Gfq3sTFhrkJIO7V/P9oI/h7tWWHMpp/36YONEZ\ndHbTTU4Ru5kznQRx84FYpLi6RMa4wO+3mESkJTAeOF1VU0VkDnA5MBx4QVVnicjrwHXAa/6OryZa\ntCWB22cu43hmNlOuiuFPkfYsZEVbtw6efx7eftspdvfnP8O998KAAXkGpFldIlPJlHgFISLdfdBu\nLSBURGoBdYB4YAgw1/P5dOAiH7Rr8lBV3lq4jSvf+pXwOkF8fNtZlhwqkCrMnw8jRji3kt55B8aN\nc0Yxf/opDBxYYLTy8uXOl1RZEBeX+3PeekXG+JNozhDL4jYQ+RGoDUwD3lXVpHI3KnIn8ASQCnwD\n3An8oqodPZ+3Br5S1W5FfPdG4EaAiIiImFmzZpU3nDJJSUmhbt26Vbbd41nKtNXHWRSfRa+mgdwQ\nVZvQWsXXVnDreN1su6ztZmYKcXFNef/9VmzaVI/w8HQuumg3F164h/DwDJ+2XZXVtGN283gHDx68\nVFV7l7ihqpb4AjoB/wA2AzOBc735XjH7agDMB5oAQcDHwJXA5jzbtAZWl7SvmJgYdUtcXFyVbXdn\nwlG94F8/aLsJn+tL323UrKxsv7RbVlXld334sOrTT6u2bOn86d+1q+qbb6qmpvq+7eqgph2zm8cL\nLFEvztde9UGo6iYReRhYArwE9BQRAf5PVT8sReICGAZsU9UDACLyIXAWEC4itVQ1E2gF2GgsH1i4\n6SC3v7eMrGzlv2PPYPBpNty2vLZtgxdfhLfecqqkDhniPKF0/vmlmBfBmEqoxAQhIlHANcAI4Fvg\nz6q6TERaAIuA0iaInUA/EamDc4tpKE7iiQMuA2YBY4FPSrlfcxKqypQftvL01+vp2LQub1zV26b9\nLKdff3XGL3zwgZMILr8c7rnHGcxmTHXgzRXEy8B/cK4WckdMqeoez1VFqajqryIyF1gGZALLgSnA\nF8AsEXncs+6t0u7bFO1Yeib3z13JFyvjGd69Gc9c1oNTatsYybLIynI6mJ97Dn76CcLCnAl07rjD\nKZFtTHXizVliBJCqqlkAIhIAhKjqMVV9uyyNqupEYGKB1VuBPmXZnynejoSj3PT2UjbuS2bCBadx\n04AOiBX6L1mBgnlHj8K0afDCC86YhXbt4F//gmuvhXr13A7WGN/wJkF8h9NvkOJZroPz5NGZvgrK\nVIwFG/Yz/r3liAjTrunDgM5N3A6p6oiNJWzVKo5OcArmvfaaU167b1/4xz/g4ouhll2EmWrOm3/i\nIaqakxxQ1RRP/4GppFSVfy/YwrPfbKBLRD2mXNWbNo3sP5nX4uPJ/u9UAlSR6VP5L48w6OJm3Hsv\nnHmmzbRmag5vEsRREemlqssARCQGp3PZVEIpxzO5b84Kvl6zl1E9WvDUpd2pE2x/6npr/35Yf24s\nfY5nEwIEBWSxbkws4e9YwTxT83hz5rgLeF9E9gACNAP+6tOoTJlsPZDCjW8vZdvBozw8oivXnd3e\n+hu8dOyY06cw9cl4Vh6dSghOyYug7HTCP5wKex+x6dhMjVNiglDV30TkNKCLZ9UGVfVuOKjxm3nr\n9nHXrN8JqhXA29f24cyOjd0OqUrIynLqIz38MOzeDV+2i6V2ejZkFNgo1spum5rH22E8XYDTgV7A\nGBG52nchmdLIzlb+9d1Grpu+hLaN6/Dp7WdZcvDSN9+cmKazRQv4/nu4IHwRARlWMM8Y8G6g3ERg\nEE6C+BK4AFgIzPBpZKZER9IyuGf2Cr5bt49LerXkyYu7ExIU6HZYld7KlXD//U6CaN8e3nsPRo/2\njHrOUxhvwYIFDBo0yLU4jXGbN30QlwE9gOWqeo2IRADv+DYsU5LN+5O5ccZSdh46xmOjIrm6f1vr\nbyjBrl3wyCMwfTqEhzuD3W67DWrXdjsyYyonbxJEqqpmi0imiNQH9uMU0zP+tHIOzJvMwKRdpC5u\nzhspl3AkeBDvXt+Xvh1sxvqTOXIEnn7aGeSWleWUw/j7321uZ2NK4k2CWCIi4cCbwFKcAXOLfBqV\nyW/lHPhsPGSkIkDosT3EBrxJ6rCuNLDkUKyMDKdo3mOPwYEDMGYMPPGEc1vJGFOyk3ZSeyq2/kNV\nE1X1deBcYKyqXuOX6Ixj3mTIyD/0JITjNFj0lEsBVW6q8PHH0K0b3H67M1nP4sXO1J6WHIzx3kkT\nhKdu+Jd5lrer6kqfR2XyS9pVuvU12K+/OtN4Xnyx0+n86acQFwdnnOF2ZMZUPd485rpMROx/Lxdp\nWMuiPwiz8qE5tm6Fv/4V+vWDTZvg9ddh1Spn7mfruzembLxJEH2BRSKyRURWisgqEbGrCD/6rsXN\nHNPg/CuDQmHoo+4EVIkkJMDdd8Npp8HnnztPKW3aBDfdZMX0jCkvb/4XOs/nUZhi7U1K4841nbi7\n6b3ckPEOmrQLCWvlJIeo0W6H55q0NHj5ZafTOTnZGew2ebIz4M0YUzG8SRDq8yhMsZ76ah2Z2cp5\nY8ZDowl8X8MHb2VnOwPb/v532LEDLrgA/vlPp0PaGFOxvEkQX+AkCQFCgPbABiDSh3EZ4Lfth/j4\n9z3cMaRjzS3XnWfinrh1zbj/fli6FKKjnTmghw51O0Bjqi9vivV1z7ssIr2AW30WkQEgK1uZ+Mka\nWoSFcOugjm6H4x7PxD1f9Itl5I5Xad0aZsyAK67wlMYwxvhMqf8X88wL0dcHsZg8Zi7eydr4I/zf\niK6EBtfM+kqpW+NJnzIVUWXIjqm8/Pe9bNgAV11lycEYf/CmWN89eRYDcCq67vFZRIbDR9N57psN\n9O/QiBHdm7sdjis2b4alfWO5MCsbgJDgLG4/HAuhVnLbGH/x5u+wenletXH6JC70ZVA13XPfbiA5\nLZNJoyJrZAG+jz6C4T3jGXXoxMQ9kp4OU6fC3r0uR2dMzeFNH8Rj/gjEONbsSWLmrzu5un87ujSr\n53Y4fpWRAQ895FRZfb9JLCHHbeIeY9xU4hWEiHzrKdaXs9xARP5X1gZFpIuI/J7ndURE7hKRhp62\nNnnea1ytTVVl0qdrCK8TzN3DOrsdjl/t2QNDhpwowX1J80WITdxjjKu8ucXURFUTcxZU9TDQtKwN\nquoGVY1W1WggBjgGfARMAOapaidgnme5Rvl0xR5+236YB87rQlidILfD8Zv586FnT2eunnffhVde\ngYAVy52qe6osiIvL/TnvhD7GGN/yJkFkiUibnAURaUvFDZ4bCmxR1R04/RrTPeunAxdVUBtVwtHj\nmTz55TqiWoUxunfNmG4jOxuefBLOPRcaNXIqrv7tb25HZYzJ4c1Aub8DC0Xke5zBcucAN1ZQ+5cD\n73l+jlDVeM/Pe4GICmqjSnh5/mb2HTnOa1fGEBBQ/TumDx2Cq6+GL76Ayy+HN9+EunXdjsoYk5c4\nFb1L2EikMdDPs/iLqh4sd8MiwTiPy0aq6j4RSVTVvH0dh1W1UD+EiNyIJ0FFRETEzJo1q7yhlElK\nSgp1K+iMtvdoNn9fmEq/5rW4Ierk819WZLulUZHtbthQj4kTI0lICObWWzdz0UV7TlpxtTocc1Vq\n2y017ZjdPN7BgwcvVdXeJW6oqid9ARcDYXmWw4GLSvqeF/u9EPgmz/IGoLnn5+bAhpL2ERMTo26J\ni4ursH2N+++vGvno17rvSKpf2y2Nimg3O1v1tddUg4NV27RR/fVX/7VdFm6163bbbqlpx+zm8QJL\n1IvztDd9EBNVNSlPQkkEJpYiWRVnDCduLwF8Coz1/DwW+KQC2qj05q3bR9yGA9w1rBNN64W4HY7P\nHD3qjIC+5RanftKyZdCnj9tRGWNOxpsEUdQ25aq0LyKn4Exf+mGe1U8B54rIJmCYZ7laS8vIYvLn\na+nYtC5jz2zndjg+s369kwxmznSGMXz+udMpbYyp3Lw50S8RkeeBnNFJtwFLy9Ooqh4FGhVYl4Dz\nVFON8dbCbexIOMbb1/UhKLB6FheaPRuuvx5CQuCbb2DYMLcjMsZ4y5uz0h1AOjDb8zqOkyRMOcQn\npfLK/M2cFxnBOZ2auB1OhUtPh/HjnSeUoqKc4QuWHIypWrwptXGUGjhozdee/HI92ao8POJ0t0Op\ncDt3wujR8OuvznSgTz8NQTVn3J8x1YY31VybAA/gTBCU24uqqkN8GFe19svWBD5bsYc7h3aidcPq\nNRHQ//7nzNWQng7vvw+XXeZ2RMaYsvLmFtO7wHqcmeQeA7YDv/kwpmotMyubSZ+uoWV4KDcPPNXt\ncCpMVhZMmuRMAdqiBSxZYsnBmKrOmwTRSFXfAjJU9XtVvRawq4cymrl4J+v3JvNwNZoI6MABGD4c\nHnvMeZT1l1+gc82qNWhMteTNU0w5BZfjRWQEzujnhr4Lqfo6dDSd577ZyFkdG3F+t2Zuh1MhFi1y\n+hsOHIApU5wnlmrgFBbGVEvNqio2AAAgAElEQVTeJIjHRSQMuBd4GagP3O3TqKqpZ/63gZTjmUz6\nc9WfCEgVXn4Z7r0XWrd2qnD36uV2VMaYiuTNU0yfe35MAgb7Npzqa9WuJGb9tpNrzmxPp4iqPRFQ\ncrJzpTBnDowaBdOmQYMaN3uHMdVf9RydVcmoKhM/XU2jU4K569xObodTevHxRN95J+zdy+rVcMYZ\nMHeu8/jqRx9ZcjCmurIE4QcfLd/Nsp2JPHD+adQPqYIDAmJjCVu1ig1XxtK3LyQmOpP8PPAABNi/\nIGOqLfvf28eS0zL4x1fr6dE6nMt6tXI7nNKLj0enTkVUaT1vKn+K2svy5TBwoNuBGWN8zZuBcrWB\nS4F2ebdX1cm+C6v6eHn+Zg4kH+fNq3tXyYmAdHIsmenZBAHBgVl8EB1LQPNXS/yeMabq8+YK4hOc\nuRsygaN5XqYEm/en8N+F2xjduxXRrcNL/kJlEx9P1ltTCcpOB6BWVjoB06fC3r0uB2aM8QdvHnNt\nparn+zySakZVmfz5WkKDAnng/NPcDqdM9twSS8OM7Pz/SLKynJrdr9pVhDHVnTdXED+LSHefR1LN\nfLt2Hz9sPMBd53amcd2TTyNaGe3aBQmfLyKE9PwfpKc7gx6MMdWeNwnibGCpiGwQkZUiskpEVvo6\nsKosLSOL2C/W0qlpXa7u39btcEotLQ0uvRTODF3OurUKqiyIi3NGx6k6tbuNMdWeN7eYLvB5FNXM\nmz9s5Y9Dqcy8vm+VmwhIFW67DRYvhg8/hK5d3Y7IGOOWEs9eqroDCAf+7HmFe9aZIuxOTOXVBZsZ\n3r0ZZ3Zs7HY4pfbGG/Df/8LDD8PFF7sdjTHGTSUmCBG5E6fkd1PP6x0RucPXgVVVT36xDoD/G171\n/vT+6SdnFrjhw53S3caYms2bW0zXAX09M8shIk8Di3AK95k8ft58kC9WxXP3sM60alC1JgLas8eZ\nv6FtW3j3XQisHpXIjTHl4E2CECArz3KWZ53JIzMrm0mfraFVg1BuGtjB7XBK5fhxp1M6ORm++w7C\nq+CQDWNMxfMmQUwFfhWRjzzLFwFv+S6kquntX3awcV8Kb1wVQ0hQ1frze/x4Z5KfuXMhMtLtaIwx\nlYU3ndTPA9cAhzyva1T1X+VpVETCRWSuiKwXkXUi0l9EGorItyKyyfNeZWqEHkw5zvPfbuScTo35\n0+kRbodTKlOmOK+HHnKuIowxJkexCUJE6nveG+LMQ/2O57XDs648XgS+VtXTgB7AOmACME9VOwHz\nPMtVwjNfbyA1PYuJVWwioEWL4Pbb4fzzncHRxhiT18luMc0ERgJLAc2zXjzLZbrR7pmdbgAwDkBV\n04F0EbkQGOTZbDqwAHiwLG3404o/Epmz9A+uP7s9HZvWdTscr8XHO1cMrVvDzJnWKW2MKazYBKGq\nIz3v7Su4zfbAAWCqiPTASUB3AhGqGu/ZZi9Q6e/VZGcrEz9dQ6NTajN+aNWZCCg93Xli6cgR+N//\nbMIfY0zRRFVPvoHIPFUdWtI6rxsU6Q38Apylqr+KyIvAEeAOVQ3Ps91hVS106hKRG4EbASIiImJm\nzZpVljDKLSUlheWJtXlrdTrXdw/m7Jb+mQgoJSWFunXLd6Xywgud+PTTlkycuIZBgw74rd2ycqvt\nmnjMbqppx+zm8Q4ePHipqvYucUNVLfIFhAANgRVAA8/PDXHmhVhf3PdKegHNgO15ls8BvgA2AM09\n65oDG0raV0xMjLrli2/ma0zsN3rRqws1Kyvbb+3GxcWV6/v/+Y9TUOnBB/3bbnm41XZNPGY31bRj\ndvN4gSXqxfn6ZE8x3YRz++c0z3vO6xPglVKlq/wJaS/wh4h08awaCqwFPgXGetaN9bRTaX2yJZ2E\no+lMHtWtykwE9OuvcOut8Kc/wRNPuB2NMaayO1kfxIvAiyJyh6pW9KjpO4B3RSQY2IrzGG0AMEdE\nrgN2AKMruM2KsXIOGd9M4rXk3STVjaDBocehVeUMNa+9e51O6ZYt4b33rFPaGFMybwbKZYtIuKom\nAnjGJ4xR1X+XtVFV/R0o6v5Xmfo1/GblHPSz8QRlpIJAg4x98Nl457Ooypsk0tPhL3+Bw4edR1sb\nlvchZWNMjeBNLeobcpIDgKoeBm7wXUiV2LzJSEZq/nUZqTCvck/Pfc89sHAhvPUWREW5HY0xpqrw\nJkEESp7RXyISCAT7LqRKLGlX6dZXAlOnOrOD3ncfXH6529EYY6oSbxLE18BsERkqIkOB9zzrap6w\nVqVb77LffoNbboFhw+Af/3A7GmNMVeNNgngQiANu8bzmAQ/4MqhKa+ijEBSaf11QqLO+ktm/Hy65\nBJo3h1mzoJY3vU3GGJNHiacNVc0GXvO8aracjuh5k9GkXUhYKyc5VLIO6owMp1M6IQF+/hkaNXI7\nImNMVVRsghCROao6WkRWkb8WEwCqWjO7O6NGQ9Rovl+wgEGDBrkdTZHuuw9++MGZ+Cc62u1ojDFV\n1cmuIO70vI/0RyCmYsyYAS+95Dy59Le/uR2NMaYqO9lAuXjP+w7/hWPKY+lSuOkmGDIEnn7a7WiM\nMVXdyW4xJVPEraUcqlrfJxGZMjlwwOmUbtrUOqWNMRXjZFcQ9QBEJBaIB97GmQviCpxieqaSyMyE\n0aOdJ5d++gmaNHE7ImNMdeDN35mjVLVHnuXXRGQFUPme7ayhHngAFixw+h969XI7GmNMdeHNOIij\nInKFiASKSICIXAEc9XVgxjvvvgsvvAB33glXXeV2NMaY6sSbBPE3nMqq+zyvv3jWGZctXw7XXw8D\nB8Izz7gdjTGmuvFmoNx24ELfh2JK4+BBuPhip79hzhwI8s+EdsaYGqTEKwgR6Swi80RktWc5SkQe\n9n1opjiZmU7hvb174cMPnSeXjDGmonlzi+lN4CEgA0BVVwJWF9RFDz0E8+bB669D75JnlTXGmDLx\n5immOqq6OE/Fb4BMH8VjTiY+nrZj7+ftnZ9x++3NGDfO7YCMMdWZN1cQB0XkVDyD5kTkMpxxEcbP\nDt4ZS5udy3iteSzPP+92NMaY6s6bBHEb8AZwmojsBu4CbvZpVKaQ9B3x1J07lUCyuejwVIIS9rod\nkjGmmjtpghCRAKC3qg4DmgCnqerZVp/J/9aMiQXNBkCysyA21uWIjDHV3Un7IFQ1W0QeAOaoqg2O\nc8n+FfGctmgqIaQ7K9LTnblEH3kEmjVzNzjjEyLCtm3bSEtLczsUvwkLC2PdunVuh+E3/jjekJAQ\nWrVqRVAZn4P3ppP6OxG5D5hNnhHUqnqoTC2aUlv911jOJDv/yizPVcSrr7oTlPGpU045hXr16tGu\nXTsKPCBSbSUnJ1OvXj23w/AbXx+vqpKQkMCuXbto3759mfbhTYL4q+f9trxtAx3K1KIplcWLocGG\nRSeuHnKkpzvTxZlqKTAwkEaNGtWY5GAqnojQqFEjDhw4UOZ9eDOSumyp5yREZDuQDGQBmaraW0Qa\n4lyltAO2A6NV9XBFt12VZGfD+PGwo9lyNm6EevVgQSWeyc5ULEsOprzK+2/Im5HUISJyj4h8KCIf\niMhdIhJSrlYdg1U1WlVzhnpNAOapaidgnme5RnvnHfj1V2fynxp05W2MqSS8ecx1BhAJvAy84vn5\nbR/EciEw3fPzdOAiH7RRZSQnw4MPQt++cOWVbkdjapo//viDwYMHc/rppxMZGcmLL76Y+9mhQ4c4\n99xz6dSpE+eeey6HDxe+0P/999/58ssvy9z+nj17uOyyy8r8fVMxRLXYSeOcDUTWqurpJa0rVaMi\n24DDOH0Zb6jqFBFJVNVwz+cCHM5ZLvDdG4EbASIiImJmzZpV1jDKJSUlhbp16/ps/2+80YFZs9rw\n2mtLOe20ZL+1Wxy32nWzbTePuX79+nTq1MmVtgH27t3L3r17iY6OJjk5mQEDBvDee+9x2mmn8cgj\nj9CgQQPuuecenn/+eRITE5k8eXK+77/77rssW7aM5557zus2s7KyCAwMrOhDqbT8dbybN28mKSkp\n37rBgwcvzXP3pniqetIX8A7QL89yX2BGSd8rYZ8tPe9NgRXAACCxwDaHS9pPTEyMuiUuLs5n+964\nUTUoSPWaa/zb7sm41a6bbbt5zMuWLcv9+c47VQcOrNjXnXeWLp5Ro0bpN998o6qqnTt31j179qiq\n6p49e7Rz5875tj1+/Li2bt1aGzdurD169NBZs2ZpQkKCXnjhhdq9e3ft27evrlixQlVVJ06cqFde\neaX269dPO3TooFOmTFFV1W3btmlkZKSqqmZmZuq9996rkZGR2r17d33ppZdUVfXBBx/Url27avfu\n3fXee+8t3QFVAkeOHPFLO2vXri20DliiXpyrvXmKKQb4WUR2epbbABtEZJWTXzTKi30UTEq7Pe/7\nReQjoA+wT0Saq2q8iDQH9pd2v9XF3XdDSAg8+aTbkRgD27dvZ/ny5fTt2xeAffv20by5M+tws2bN\n2LdvX77tg4ODmTx5MkuWLOGVV14B4I477qBnz558/PHHzJ8/n6uvvprff/8dgJUrV/LLL7+wb98+\nzjnnHEaMGJFvf1OmTGH79u38/vvv1KpVi0OHDpGQkMBHH33E+vXrERESExN9/WuokbxJEOdXZIMi\ncgoQoKrJnp//BEwGPgXGAk953j+pyHariq++gi++cCYAsjFwBuBf/3Kv7ZSUFC699FL+9a9/Ub9+\n/UKfi4hXT8osXLiQDz74AIAhQ4aQkJDAkSNHALjwwgsJDQ2lUaNGDB48mMWLFxMdHZ373e+++46b\nb76ZWrWc01XDhg3JzMwkJCSE6667jpEjRzJy5MiKOFxTgDePuVZ0WY0I4CPPP6pawExV/VpEfgPm\niMh1wA6cWexqlPR0uOsu6NzZebzVGDdlZGRw6aWXcsUVV3DJJZfkro+IiCA+Pp7mzZsTHx9P03JO\nSFIwwXiTcGrVqsXixYuZN28ec+fO5ZVXXmH+/PnlisMU5s1TTBVKVbeqag/PK1JVn/CsT1DVoara\nSVWHaQ0cqf3SS7Bxo/MXY3Cw29GYmkxVue666+jatSv33HNPvs9GjRrF9OnOA4fTp0/nwgsLTzhZ\nr149kpNPPFxxzjnn8O677wLOWJ7GjRvnXpF88sknpKWlkZCQwIIFCzjjjDPy7evcc8/ljTfeIDPT\nmWXg0KFDpKSkkJSUxPDhw3nhhRdYsWJFxR28yeX3BGGKtncvTJ4MI0bABRe4HY2p6X766Sfefvtt\n5s+fT3R0NNHR0bmPrU6YMIFvv/2WTp068d133zFhQuEhS4MHD2bt2rVER0cze/ZsJk2axNKlS4mK\nimLChAm5CQYgKiqKwYMHM3ToUB555BFatGiRb1/XX389bdq0ISoqih49ejBz5kySk5MZOXIkUVFR\nnH322Txv9e99wps+COMH//d/kJYGL7zgdiTGwNlnn53zNGEhjRo1Yt68eSf9fsOGDfntt9/yrfv4\n44+L3DYqKooZM2bkq03Url07Vq9eDTi3k55//vlCSWDx4sVeHYspO7uCqAQWL3aKs959N7j46Lsx\nxuRjVxAuy6m31KwZPPyw29EY41+TJk1yOwRzEpYgXJZTb2naNKu3ZIypXOwWk4vy1lu66iq3ozHG\nmPzsCsJFjz/uPL30yScQYKnaGFPJ2GnJJZs2OU8sjRsHffq4HY0xxhRmCcIlOfWW/vEPtyMx1UZ8\nPAwc6FyWllN1LPfdrl07Dh48eNJtnvRDAbTXX3+dGTNmnHSb8v7+KoolCBfk1Ft69FGrt2QqUGws\nLFzovJdTrVq1eO6551i7di2//PILr776KmvXrgXgqaeeYujQoWzatImhQ4fy1FNPFfp+eU9wLVq0\nYO7cuWX+fln5I0HcfPPNXH311SfdxhJEDWX1loxPxMc7g2mys533cl5FNG/enF69egFO2YyuXbuy\ne/duwCmNMXbsWADGjh1baABceno6jz76KLNnz84dSX3o0CEuuugioqKi6NevHytXrgScx1yvuuoq\n+vfvT3R0NG+++SbgVJDt1q0b4MybcN9999GtWzeioqJ4+eWXAWdE9+mnn05UVBT33XdfoWNISEjg\nT3/6E5GRkVx//fX5Bv5ddNFFxMTEEBkZyZQpU3L3l5qaSnR0NFdccUWx2xXUrl07HnjgAbp3706f\nPn3YvHlz7jEMGTKEqKgohg4dys6dO3OP+dlnnwVg0KBBPPjgg/Tp04fOnTvz448/Fvn7+/7773NH\ntPfs2TNfGROf8qYmeGV9VcX5IJ59VhVUv/jCv+2Wl80H4V9554Pwyi23qAYHO/+4goNVb721wmLZ\ntm2btm7dWpOSklRVNSwsLPez7OzsfMs5pk6dqrfddlvu8u23366TJk1SVdV58+Zpjx49VNWZDyIq\nKkqPHTum27Zt01atWunu3bvzzQfx73//Wy+99FLNyMhQVdWEhAQ9ePCgdu7cWbOzs1VV9fDhw4Vi\nuOOOO/Sxxx5TVdXPP/9cAT1w4EDuPlRVjx07ppGRkXrw4EFVVT3llFPy7aO47fJq27atPv7446qq\nOn36dB0xYoSqqo4cOVKnTZumqqpvvfWWXnjhhbnH/Mwzz+iRI0d04MCBes8996iq6hdffKFDhw4t\n8vc3cuRIXbhwoaqqJicn5/4uvFGe+SDsCsKP9u6Fxx5z6i0NH+52NKbayLl6SE93ltPTK+QqAiq2\n3PdVnme5vSn3ndd3333HTTfdlK/cd1hYWG657w8//JA6deoUavOHH37gSs98vSNGjKBBgwa5n730\n0kv06NGDfv368ccff7Bp06Yi4/Z2uzFjxuS+L1q0CIBFixbxt7/9DYCrrrqKhQsXFvndnEq5MTEx\nbN++vchtzjrrLO655x5eeuklEhMTc38XvmYJwo+s3pLxidhY59ZSXllZ5e6LKKncN+B6ue/LLruM\nzz//nPPP937amgULFvDdd9+xaNEiVqxYQc+ePUlLSyvzdgVj9ib+vGrXrg1AYGBgbsXagiZMmMB/\n/vMfUlNTOeuss1i/fn2p2igrSxB+klNv6a67rN6SqWCLFp24esiRng4//1zmXWo1KPc9YMAAZs6c\nCcBXX32V+7RVUlISDRo0oE6dOqxfv55ffvkl9ztBQUFkZGSUuF1Bs2fPzn3v378/AGeeeSazZs0C\nnDm6zznnnGK/X1DB39+WLVvo3r07Dz74IGeccYbfEoQNlPMDq7dkfGr58grfZU657+7du+fO7vbk\nk08yfPhwJkyYwOjRo3nrrbdo27Ytc+bMKfT9wYMH89RTTxEdHc1DDz3EpEmTuPbaa4mKiqJOnTpF\nlvvev39/brnvvLdarr/+ejZu3EhUVBRBQUHccMMNXHrppVx44YWkpaWhqkWW+544cSJjxowhMjKS\nM888kzZt2gBw/vnn8/rrr9O1a1e6dOlCv379cr9z4403EhUVRa9evfjvf/9b7HYFHT58mKioKGrX\nrs17770HwMsvv8w111zDM888Q5MmTZg6darXv/+Cv7+FCxcSFxdHQEAAkZGRXOCvOQG86aiorK+q\n0kk9fbrTd+jpr/JbuxXJOqn9q9Sd1FVUToetquqRI0dcjqZs2rZtm9v5XRr+Ol7rpK7Ecuot9elj\n9ZaMMVWL3WLyMau3ZEzxqkO57+KePKoO7JTlQ1ZvyRhTlVmC8KF77rF6S8aYqstuMfnIV1/B55/D\nP/9p9ZaMMVWTa1cQIhIoIstF5HPPcnsR+VVENovIbBEJdiu28spbb+nOO92OxhhjysbNW0x3Auvy\nLD8NvKCqHYHDwHWuRFUBXn4ZNm50+h+Cq2yaMzXdtddeS9OmTXOL5uUorty3qjJ+/Hg6duxIVFQU\ny5YtK7TPxMRE/v3vf5crruHDh5OYmFiufRjvuJIgRKQVMAL4j2dZgCFATn3f6cBFbsRWXjn1loYP\nt3pLpmobN24cX3/9daH1xZX7/uqrr9i0aRObNm1iypQp3HLLLYW+WxEJ4ssvvyQ8PLxc+zDecasP\n4l/AA0A9z3IjIFFVcwqR7AJaFvVFEbkRuBGcmjALFizwbaTFSElJKbLtp5/uQmpqBJdf/hsLFqT6\nrV1fc6tdN9t285jr16+fW2rh6W+2sH5fSoXu/7SIujz4p1NPuk3Pnj3ZsWMH2dnZ+co+fPTRR3z5\n5ZckJydz6aWXMnz4cB5++GHmzp3LX/7yF1JSUoiMjOTQoUNs2rSJZnk64e699162bNmSO3o6NjaW\nRx55hG+//RaABx54gEsvvZQff/yRJ554grp167J161YGDBjA888/T0BAAN26deP777+nUaNGzJw5\nk5dffhkRITIykjfffJOPPvqIp556isDAQOrXr19kkqsMsrKy/FK2Oy0trcz/jv2eIERkJLBfVZeK\nyKDSfl9VpwBTAHr37q2DBpV6FxViwYIFFGx78WL4+mu4/3646qq+fmvXH9xq18223Tzm5cuXU6+e\n8/dTUHAQgYGBFbr/oOCg3P2fTN26dQkICMi37YEDB+jkKShWt25dDhw4QL169di/fz+dO3fO3bZN\nmzYkJSXlbgvw3HPPsWHDhtz5ID744APWrl3LqlWr2L59O4MHD+a8886jTp06LF26lLVr19K2bVvO\nP/98vv32Wy677DJEhLp167Jz506ee+45fv75Zxo3bsyhQ4eoV68ezzzzDN9++y0tW7YkMTHRq+N0\nQ3Jysl9iCwkJoWfPnmX6rhtXEGcBo0RkOBAC1AdeBMJFpJbnKqIVsNuF2Mosp95SRITVWzIVa+Kf\nI90OoVjelvsuzsKFCxkzZgyBgYE0bdqUgQMH8ttvv1G/fn369OlDhw4dAKeM9sKFC/NNQzp//nz+\n8pe/0LhxY8ApAw5Oaexx48YxevTofFVoTen5vQ9CVR9S1Vaq2g64HJivqlcAcUDOf/2xwCf+jq08\n3nkHfv0VnnoKiiibb0y1UVy575YtW/LHH3/kbrdr1y5atizyTrFXylIGHJw5nx9//HH++OMPYmJi\nSEhIKHMMNV1lGij3IHCPiGzG6ZN4y+V4vJa33lIJU80aU+UVV+571KhRzJgxA1Xll19+ISwsjObN\nm+f7blFlwGfPnk1WVhYHDx7khx9+oI+n7MDixYvZtm0b2dnZzJ49m7PPPjvfvoYMGcL777+fmwAO\nHToEOKWx+/bty+TJk2nSpEm+pGVKx9WBcqq6AFjg+XkrUCULUuTUW/r4Y6u3ZKqPMWPGsGDBAg4e\nPEirVq147LHHuO6664ot9z18+HC+/PJLOnbsSJ06dYosb92oUSPOOussunXrxgUXXMA///lPFi1a\nRI8ePVBV/vnPf9KsWTPWr1/PGWecwe23387mzZsZPHgwF198cb59RUZG8ve//52BAwcSGBhIz549\nmTZtGvfffz+bNm1CVRk6dCg9evTwy++rOrKR1OWUU29p7Fjo65t+aWNckTOvQUGNGjVi3rx5hdaL\nCK+++mqJ+82ZxCfHM888wzPPPFOo07Z+/fp8/vnnhb6ftzje2LFjGTt2bL7PP/zwwxJjMN6xv3fL\nyeotGWOqK7uCKIe89ZYK3Go1xpTDoEGDXHvE2JxgVxBllJEhufNLW70lY0x1ZFcQZfTRRy3ZuNG5\ngrB6S8aY6siuIMpg/4p4xrxxLVcM3cuIEW5HY4wxvmEJogxW/zWWM7N/4pWIWLdDMcYYn7EEUUrL\nv4yn/4apBJJN+EdTnQEQxrht5Rx4oRtMCnfeV84p9y5rSrnvcePGMXfu3JNuM23aNPbs2VNhbRZl\nyZIljB8//qTbVMTvrzQsQZRSp9mx1ArIdhaysiDWriKMy1bOgc/GQ9IfgDrvn40vd5Kwct8n+CNB\n9O7dm5deeumk21iCqMzi46k7ZypB2enOcno6TLWrCOOyeZMho0Bp+YxUZ305DBgwILcAXl6ffPJJ\n7uC0sWPH8vHHH+euv/rqqxER+vXrR2JiYm7NphwTJkxgy5YtREdHc//996Oq3H///XTr1o1+/fox\ne/ZswKmkO2DAAEaMGEGXLl24+eabyc52/jBr164dBw8eBGDGjBlERUXRo0cPrrrqKgDef/99unXr\nRo8ePRgwYECh+FWV22+/nS5dujBs2DD279+f+9nkyZM544wz6NatGzfeeCOqyty5c1myZAlXXHEF\n0dHRpKamFrldQePGjePmm2+md+/edO7cOXfQX1paGtdccw39+vWjZ8+exMXF5R7zyJEjAZg0aRLX\nXnstgwYNokOHDrmJo+DvLz4+ngEDBhAdHU23bt348ccfvfpv6zVVrbKvmJgY9atbblENDlaFE6/g\nYNVbb/VbCHFxcX5rqzK062bbbh7zsmXLvN94YpjqxPpFvMLKHce2bds0MjIy37qwsBP7zc7Ozl0e\nMWKE/vjjj7mfDRkyRH/77beT7m/u3Lk6bNgwzczM1M2bN2vr1q11z549GhcXp7Vr19YtW7ZoZmam\nDhs2TN9//31VVW3btq0eOHBAV69erZ06ddIDBw6oqmpCQoKqqnbr1k137dqlqqqHDx8udEwffPBB\nbpu7d+/WsLCw3H3n7ENV9corr9RPP/1UVVUHDhyY71iK2y6vsWPH6nnnnadZWVm6ceNGbdmypaam\npuqzzz6r11xzjR45ckTXrVunrVu31tTUVI2Li9MRI0aoqurEiRO1f//+mpaWpgcOHNCGDRtqenp6\nod/fs88+q48//riqqmZmZuqRI0cKxbF27dpC64Al6sU51q4gSmPRIueqIa/0dPj5Z3fiMQYgrFXp\n1lcgX5X7BnLLfQcGBuaW+86rpHLfb775JllZWYXa/OGHH3LbbNGiBUOGDMn9LC4ujr59+9K9e3fm\nz5/PmjVriozb2+1Gjx5NQEAAnTp1okOHDqxfv56FCxdy5ZVXAnDaaafRtm1bNm7cWOi7I0aMoHbt\n2jRu3JimTZuyb9++QtucccYZTJ06lUmTJrFq1aoKn1/CEkRpLF+ee+2wIC7uxHXE8uVuR2ZqsqGP\nQlBo/nVBoc56H6iu5c7ET58AAAkASURBVL7T0tK49dZbmTt3LqtWreKGG24gLS2tzNuV5xgAateu\nnftzYGAgmZmZhbYZMGAAP/zwAy1btmTcuHHMmDHD6/17wxKEMVVd1Gj480sQ1hoQ5/3PLznrfaCq\nl/seMGBAbpvx8fG5fQA5J/nGjRuTkpKS78mmvHGfbLuC3n//fbKzs9myZQtbt26lS5cunHPOObz7\n7rsAbNy4kZ07d9KlS5eT/9KL+f3t2LGDiIgIbrjhBq6//voinxwrDxtJbUx1EDW6whNCdS33ffHF\nFzN//nxOP/102rRpQ//+/QEIDw/nhhtuoFu3bjRr1owzzjgj9zs5Hc6hoaEsWrSo2O0KatOmDX36\n9OHIkSO8/vrrhISEcOutt3LLLbfQr18/goODmTZtWr6rhZMp+Pvr1q0bzzzzDEFBQdStW7fCryBc\n72guz8vvndR51LSOU+uk9q9SdVJXE3k7WPN22FZVY8eOze38LkpRHcq+YJ3UxhhjKpzdYjLGVDrV\nodz3tGnT3A6h3OwKwphKSosYfGVMaZT335AlCGMqoaysLBISEixJmDJTVRISEggJCSnzPuwWkzGV\n0NGjR0lOTubAgQNuh+I3aWlp5TqZVTX+ON6QkBBatSr7gElLEMZUQqpK+/bt3Q7DrxYsWEDPnj3d\nDsNvqsLx+v0Wk4iEiMhiEVkhImtE5DHP+vYi8quIbBaR2SJi87QZY4yL3OiDOA4MUdUeQDRwvoj0\nA54GXlDVjsBh4DoXYjPGGOPh9wThGaeR4lkM8rwUGALkjFmfDlzk79iMMcac4EofhIgEAkuBjsCr\nwBYgUVVzqlHtAoqs8iUiNwI3ehZTRGSDj8MtTmPgoLVbrduuicfsppp2zG4eb1tvNnIlQahqFhAt\nIuHAR8BppfjuFGCKr2LzlogsUdXe1m71bbsmHrObatoxV4XjdXUchKomAnFAfyBcRHISVitgt2uB\nGWOMceUppiaeKwdEJBQ4l/9v7+5i7KrKMI7/HwdI2koQgmmK1dQYU8UaC1RSxRABNSoIxvTC4Afc\nGBO/qpEQvTFzoQYNEgwGjSKWpA2tjiTUEgoVi1hjEEpHCy2EiyItFgdiFNIQKfbxYq2xx3afaY/t\n2Xs68/ySyew5Z52+60ym+z37Y70v7KQkihV12FXAnW3PLSIiDuriFNMC4LZ6HeJVwM9tb5C0A1gr\n6ZvANuCnHcxtEF2d5pptcbuMPRvfc5dm23ue9u9XWcofERFNUospIiIaJUFERESjJIgBSLpV0oSk\nRzuI/XpJmyXtqCVKVrYUt7E0SlskjUjaJmlDy3GfkrRd0rikh1uM+xpJY5Iel7RT0rvait0VSV+p\nf1uPSrpd0oyr2Ne075B0hqRNkp6s30/vco5NkiAGswr4YEexXwG+avtsYDnweUlntxC3X2mUtqyk\n3OXWhYtsL235XvXvAxttvwV4B92991ZIeh3wJWCZ7SXACPDxbmc1FKs4fN/xNeA+228G7qs/TytJ\nEAOw/QDw945i77X9SN1+kbLjaFxtfpzj9iuNMnSSFgKXAre0Ea9rkk4DLqTewWf75bpWaKY7CZhT\n10HNBf7a8XyOuz77jisoZYVgmpYXSoI4AUlaBJwDPNhSvBFJ48AEsMl2K3GBG4FrgQMtxetl4F5J\nW2t5lza8EXgO+Fk9rXaLpHktxe6E7WeA64Gngb3AP23f2+2sWjPf9t66/Swwv8vJNEmCOMFIejXw\nS+DLtl9oI6btf9teSlnhfr6kJcOOKekyYML21mHH6uM9ts8FPkQ5nXdhCzFPAs4Ffmj7HGAf0/C0\nw/FUz7tfQUmOZwHzJH2y21m1z2W9wbRbc5AEcQKRdDIlOayxfUfb8XtKo7RxHeYC4HJJTwFrgYsl\nrW4hLvDfT7bYnqDUCzu/hbB7gD09R2hjlIQxk70P2GX7Odv7gTuAd3c8p7b8TdICgPp9ouP5HCYJ\n4gQhSZRz0ztt39Bi3KbSKI8PO67tr9teaHsR5aLlb2y38slS0jxJp05uAx8Ahn7nmu1ngd2SFteH\nLgF2DDtux54GlkuaW//GL2GGX5jvsZ5SVgimaXmhJIgBSLod+AOwWNIeSW02NboA+BTlk/R4/fpw\nC3EXAJsl/Rl4iHINotVbTjswH9gi6U/AH4G7bG9sKfYXgTX1970U+HZLcTtRj5bGgEeA7ZR90rQv\nQTGoPvuO64D3S3qSciR1XZdzbJJSGxER0ShHEBER0SgJIiIiGiVBREREoySIiIholAQRERGNkiAi\nOiLpaklnHeO/MSrpmuM1p4heSRARU6gF5Iblakp5iaM25PlE/I8kiJjRJC2qvRXW1P4KY5Lm1ue+\nIemh2ofgx3UlL5Lul3Rj7QOxUtJHJD1YC+j9WtL8Om5U0m2SfifpL5I+Jum7tY/ExloaBUnnSfpt\nLfx3j6QFklYAyyiL4sYlzWka1zSfKd7rZyTdXVe8RxyzJIiYDRYDN9t+K/AC8Ln6+A9sv7P2IZgD\nXNbzmlNsL7P9PWALsLwW0FtLqTA76U3AxcDlwGpgs+23Ay8Bl9YkcROwwvZ5wK3At2yPAQ8Dn6iF\nEF9pGtdnPoeR9IU6/4/afun/+SVFHCqHqzEb7Lb9+7q9mtKg5nrgIknXUnoQnAE8BvyqjlvX8/qF\nwLr6if4UYFfPc3fb3i9pO6XZzWRJju3AIkpyWgJsqgcoI5Sy1oc60rh1Da+Z9GlgNyU57J9iXMRA\nkiBiNji0noxrW8ubKZ3MdksaBXpbXe7r2b4JuMH2eknvBUZ7nvsXgO0Dkvb7YO2aA5T/XwIes32k\n1qFHGrevz+NQktFkOfZdU4yLGEhOMcVs8AYd7O18JeWU0WQyeL722FgxxetPA56p21dNMa7JE8Br\nJ+NLOlnS2+pzLwKnHsW4I9kGfBZYf6x3RUX0SoKI2eAJStOfncDplIY8/wB+QinjfQ+lUm0/o8Av\nJG0Fnh8ksO2XKcnnO7U67DgH+x2sAn5Uu/WNTDHuaOJsAa4B7pJ05iBzjOgn1VxjRlNpz7qhXoiO\niAHkCCIiIhrlCCIiIhrlCCIiIholQURERKMkiIiIaJQEERERjZIgIiKi0X8AWOhaSx/f46UAAAAA\nSUVORK5CYII=\n", "text/plain": [ "<matplotlib.figure.Figure at 0x15f425eb8>" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "accuracy_scores_100topic={}\n", "for i in [1,2,3,4,5,6,8,10]:\n", " accuracy, k = prediction_accuracy(test_author2doc, test_corpus_50_20, atmodel_100topics, k=i)\n", " accuracy_scores_100topic[k] = accuracy\n", " \n", "plot_accuracy(scores1=accuracy_scores_20topic, label1=\"20 topics\", scores2=accuracy_scores_100topic, label2=\"100 topics\")" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The 100-topic model is much more accurate than the 20-topic model. We continue to increase the topic until convergence." ] }, { "cell_type": "code", "execution_count": 17, "metadata": { "scrolled": true }, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "05:36:37 INFO:Vocabulary consists of 3914 words.\n", "05:36:37 INFO:using symmetric alpha at 0.006666666666666667\n", "05:36:37 INFO:using symmetric eta at 0.006666666666666667\n", "05:36:40 INFO:running online author-topic training, 150 topics, 50 authors, 15 passes over the supplied corpus of 2500 documents, updating model once every 2500 documents, evaluating perplexity every 0 documents, iterating 50x with a convergence threshold of 0.001000\n", "05:36:40 INFO:PROGRESS: pass 0, at document #2500/2500\n", "05:36:40 DEBUG:performing inference on a chunk of 2500 documents\n", "05:36:55 DEBUG:15/2500 documents converged within 50 iterations\n", "05:36:55 DEBUG:updating topics\n", "05:36:56 INFO:topic #51 (0.007): 0.015*\"profit\" + 0.012*\"price\" + 0.012*\"group\" + 0.012*\"analyst\" + 0.009*\"share\" + 0.009*\"steel\" + 0.008*\"tell\" + 0.008*\"australian\" + 0.007*\"month\" + 0.007*\"forecast\"\n", "05:36:56 INFO:topic #86 (0.007): 0.011*\"china\" + 0.008*\"kong\" + 0.007*\"hong\" + 0.007*\"cargo\" + 0.006*\"hong_kong\" + 0.006*\"service\" + 0.006*\"Hong Kong\" + 0.005*\"profit\" + 0.005*\"analyst\" + 0.005*\"month\"\n", "05:36:56 INFO:topic #125 (0.007): 0.009*\"analyst\" + 0.007*\"share\" + 0.007*\"bank\" + 0.005*\"problem\" + 0.004*\"billion\" + 0.004*\"sale\" + 0.004*\"loan\" + 0.004*\"plant\" + 0.004*\"gm\" + 0.004*\"corp\"\n", "05:36:56 INFO:topic #4 (0.007): 0.020*\"franc\" + 0.018*\"thomson\" + 0.016*\"french\" + 0.011*\"group\" + 0.011*\"share\" + 0.010*\"government\" + 0.009*\"plan\" + 0.009*\"france\" + 0.009*\"lagardere\" + 0.009*\"billion\"\n", "05:36:56 INFO:topic #114 (0.007): 0.006*\"analyst\" + 0.006*\"sale\" + 0.005*\"chairman\" + 0.005*\"business\" + 0.004*\"social\" + 0.004*\"party\" + 0.004*\"month\" + 0.004*\"industry\" + 0.003*\"share\" + 0.003*\"government\"\n", "05:36:56 INFO:topic diff=43.566047, rho=1.000000\n", "05:36:56 INFO:PROGRESS: pass 1, at document #2500/2500\n", "05:36:56 DEBUG:performing inference on a chunk of 2500 documents\n", "05:37:04 DEBUG:2493/2500 documents converged within 50 iterations\n", "05:37:04 DEBUG:updating topics\n", "05:37:04 INFO:topic #72 (0.007): 0.024*\"gold\" + 0.024*\"bre_x\" + 0.023*\"x\" + 0.023*\"bre\" + 0.020*\"Bre-X\" + 0.013*\"barrick\" + 0.010*\"government\" + 0.010*\"indonesian\" + 0.010*\"busang\" + 0.010*\"analyst\"\n", "05:37:04 INFO:topic #133 (0.007): 0.013*\"group\" + 0.012*\"pound\" + 0.011*\"share\" + 0.009*\"billion\" + 0.006*\"bt\" + 0.006*\"business\" + 0.006*\"analyst\" + 0.005*\"british\" + 0.005*\"profit\" + 0.005*\"britain\"\n", "05:37:04 INFO:topic #19 (0.007): 0.007*\"billion\" + 0.006*\"group\" + 0.006*\"airbus\" + 0.005*\"state\" + 0.005*\"profit\" + 0.005*\"industry\" + 0.005*\"tobacco\" + 0.005*\"tell\" + 0.004*\"price\" + 0.004*\"cost\"\n", "05:37:04 INFO:topic #90 (0.007): 0.029*\"bank\" + 0.017*\"canadian\" + 0.016*\"billion\" + 0.014*\"canada\" + 0.010*\"toronto\" + 0.009*\"analyst\" + 0.008*\"stock\" + 0.008*\"fund\" + 0.008*\"share\" + 0.007*\"high\"\n", "05:37:04 INFO:topic #91 (0.007): 0.008*\"analyst\" + 0.007*\"bre\" + 0.005*\"bre_x\" + 0.005*\"x\" + 0.005*\"gm\" + 0.005*\"billion\" + 0.005*\"Bre-X\" + 0.005*\"stock\" + 0.004*\"sale\" + 0.004*\"share\"\n", "05:37:04 INFO:topic diff=12.489199, rho=0.577350\n", "05:37:04 INFO:PROGRESS: pass 2, at document #2500/2500\n", "05:37:04 DEBUG:performing inference on a chunk of 2500 documents\n", "05:37:12 DEBUG:2497/2500 documents converged within 50 iterations\n", "05:37:12 DEBUG:updating topics\n", "05:37:12 INFO:topic #58 (0.007): 0.011*\"shanghai\" + 0.010*\"china\" + 0.005*\"bank\" + 0.005*\"chinese\" + 0.004*\"city\" + 0.004*\"stock\" + 0.004*\"chen\" + 0.003*\"beijing\" + 0.003*\"analyst\" + 0.003*\"modern\"\n", "05:37:12 INFO:topic #26 (0.007): 0.010*\"business\" + 0.005*\"analyst\" + 0.005*\"share\" + 0.004*\"billion\" + 0.004*\"stock\" + 0.004*\"continue\" + 0.003*\"states\" + 0.003*\"chemical\" + 0.003*\"united\" + 0.003*\"internet\"\n", "05:37:12 INFO:topic #61 (0.007): 0.027*\"boeing\" + 0.014*\"analyst\" + 0.013*\"billion\" + 0.012*\"microsoft\" + 0.012*\"jet\" + 0.010*\"airbus\" + 0.009*\"share\" + 0.009*\"order\" + 0.008*\"mcdonnell\" + 0.007*\"revenue\"\n", "05:37:12 INFO:topic #149 (0.007): 0.018*\"china\" + 0.010*\"official\" + 0.010*\"chinese\" + 0.008*\"beijing\" + 0.006*\"trade\" + 0.006*\"world\" + 0.005*\"foreign\" + 0.005*\"united_states\" + 0.005*\"drug\" + 0.005*\"metre\"\n", "05:37:12 INFO:topic #74 (0.007): 0.044*\"china\" + 0.022*\"chinese\" + 0.012*\"official\" + 0.012*\"tonne\" + 0.011*\"beijing\" + 0.008*\"trade\" + 0.008*\"import\" + 0.008*\"trader\" + 0.007*\"price\" + 0.007*\"state\"\n", "05:37:12 INFO:topic diff=10.945011, rho=0.500000\n", "05:37:12 INFO:PROGRESS: pass 3, at document #2500/2500\n", "05:37:12 DEBUG:performing inference on a chunk of 2500 documents\n", "05:37:19 DEBUG:2499/2500 documents converged within 50 iterations\n", "05:37:19 DEBUG:updating topics\n", "05:37:19 INFO:topic #125 (0.007): 0.004*\"analyst\" + 0.003*\"share\" + 0.003*\"bank\" + 0.002*\"problem\" + 0.002*\"billion\" + 0.002*\"sale\" + 0.002*\"loan\" + 0.002*\"plant\" + 0.002*\"gm\" + 0.002*\"corp\"\n", "05:37:19 INFO:topic #95 (0.007): 0.038*\"bank\" + 0.018*\"billion\" + 0.016*\"society\" + 0.010*\"analyst\" + 0.009*\"debt\" + 0.009*\"eurotunnel\" + 0.008*\"banking\" + 0.008*\"pound\" + 0.008*\"member\" + 0.007*\"convert\"\n", "05:37:19 INFO:topic #19 (0.007): 0.007*\"billion\" + 0.006*\"state\" + 0.005*\"group\" + 0.005*\"airbus\" + 0.005*\"loss\" + 0.005*\"cost\" + 0.005*\"profit\" + 0.005*\"industry\" + 0.005*\"sale\" + 0.004*\"executive\"\n", "05:37:19 INFO:topic #115 (0.007): 0.003*\"share\" + 0.002*\"stock\" + 0.002*\"billion\" + 0.002*\"analyst\" + 0.002*\"china\" + 0.002*\"industry\" + 0.001*\"month\" + 0.001*\"rise\" + 0.001*\"big\" + 0.001*\"deal\"\n", "05:37:20 INFO:topic #29 (0.007): 0.018*\"czech\" + 0.008*\"klaus\" + 0.007*\"government\" + 0.007*\"crown\" + 0.007*\"party\" + 0.007*\"bank\" + 0.007*\"prague\" + 0.005*\"country\" + 0.005*\"foreign\" + 0.005*\"election\"\n", "05:37:20 INFO:topic diff=9.415271, rho=0.447214\n", "05:37:20 INFO:PROGRESS: pass 4, at document #2500/2500\n", "05:37:20 DEBUG:performing inference on a chunk of 2500 documents\n", "05:37:26 DEBUG:2499/2500 documents converged within 50 iterations\n", "05:37:26 DEBUG:updating topics\n", "05:37:27 INFO:topic #31 (0.007): 0.010*\"franc\" + 0.009*\"french\" + 0.008*\"china\" + 0.008*\"billion\" + 0.006*\"shanghai\" + 0.006*\"analyst\" + 0.006*\"share\" + 0.005*\"government\" + 0.005*\"plan\" + 0.005*\"exchange\"\n", "05:37:27 INFO:topic #76 (0.007): 0.007*\"china\" + 0.006*\"hong_kong\" + 0.006*\"price\" + 0.005*\"kong\" + 0.005*\"hong\" + 0.004*\"tonne\" + 0.004*\"world\" + 0.004*\"analyst\" + 0.003*\"chinese\" + 0.003*\"Hong Kong\"\n", "05:37:27 INFO:topic #36 (0.007): 0.024*\"bid\" + 0.021*\"penny\" + 0.020*\"analyst\" + 0.017*\"share\" + 0.015*\"electric\" + 0.013*\"electricity\" + 0.012*\"offer\" + 0.012*\"price\" + 0.011*\"northern\" + 0.010*\"water\"\n", "05:37:27 INFO:topic #144 (0.007): 0.008*\"computer\" + 0.007*\"software\" + 0.006*\"technology\" + 0.006*\"internet\" + 0.005*\"web\" + 0.004*\"site\" + 0.004*\"people\" + 0.004*\"quarter\" + 0.004*\"industry\" + 0.004*\"base\"\n", "05:37:27 INFO:topic #96 (0.007): 0.013*\"tv\" + 0.011*\"industry\" + 0.010*\"group\" + 0.010*\"system\" + 0.008*\"television\" + 0.008*\"plan\" + 0.008*\"service\" + 0.007*\"rating\" + 0.006*\"american\" + 0.006*\"long\"\n", "05:37:27 INFO:topic diff=8.020445, rho=0.408248\n", "05:37:27 INFO:PROGRESS: pass 5, at document #2500/2500\n", "05:37:27 DEBUG:performing inference on a chunk of 2500 documents\n", "05:37:33 DEBUG:2500/2500 documents converged within 50 iterations\n", "05:37:33 DEBUG:updating topics\n", "05:37:33 INFO:topic #128 (0.007): 0.019*\"ford\" + 0.017*\"gm\" + 0.015*\"sale\" + 0.015*\"plant\" + 0.011*\"car\" + 0.011*\"vehicle\" + 0.008*\"chrysler\" + 0.008*\"worker\" + 0.008*\"automaker\" + 0.007*\"truck\"\n", "05:37:33 INFO:topic #82 (0.007): 0.006*\"china\" + 0.004*\"tonne\" + 0.004*\"chinese\" + 0.003*\"trader\" + 0.003*\"copper\" + 0.002*\"price\" + 0.002*\"source\" + 0.002*\"kong\" + 0.002*\"shanghai\" + 0.002*\"metal\"\n", "05:37:33 INFO:topic #96 (0.007): 0.013*\"tv\" + 0.011*\"industry\" + 0.010*\"group\" + 0.010*\"system\" + 0.008*\"plan\" + 0.008*\"television\" + 0.008*\"service\" + 0.007*\"rating\" + 0.007*\"american\" + 0.006*\"long\"\n", "05:37:33 INFO:topic #41 (0.007): 0.016*\"australian\" + 0.014*\"bank\" + 0.013*\"profit\" + 0.013*\"share\" + 0.013*\"news\" + 0.013*\"sydney\" + 0.013*\"australia\" + 0.011*\"ltd\" + 0.011*\"analyst\" + 0.011*\"corp\"\n", "05:37:33 INFO:topic #79 (0.007): 0.006*\"china\" + 0.006*\"beijing\" + 0.004*\"official\" + 0.004*\"lama\" + 0.004*\"tibet\" + 0.004*\"chinese\" + 0.003*\"region\" + 0.003*\"dalai_lama\" + 0.003*\"share\" + 0.003*\"analyst\"\n", "05:37:33 INFO:topic diff=6.797042, rho=0.377964\n", "05:37:33 INFO:PROGRESS: pass 6, at document #2500/2500\n", "05:37:33 DEBUG:performing inference on a chunk of 2500 documents\n", "05:37:40 DEBUG:2500/2500 documents converged within 50 iterations\n" ] }, { "name": "stderr", "output_type": "stream", "text": [ "05:37:40 DEBUG:updating topics\n", "05:37:40 INFO:topic #76 (0.007): 0.005*\"china\" + 0.004*\"hong_kong\" + 0.004*\"price\" + 0.003*\"kong\" + 0.003*\"hong\" + 0.003*\"tonne\" + 0.003*\"world\" + 0.003*\"analyst\" + 0.002*\"chinese\" + 0.002*\"Hong Kong\"\n", "05:37:40 INFO:topic #31 (0.007): 0.008*\"franc\" + 0.007*\"french\" + 0.006*\"china\" + 0.006*\"billion\" + 0.005*\"shanghai\" + 0.005*\"analyst\" + 0.004*\"share\" + 0.004*\"government\" + 0.004*\"plan\" + 0.004*\"exchange\"\n", "05:37:40 INFO:topic #140 (0.007): 0.026*\"china\" + 0.020*\"beijing\" + 0.016*\"chinese\" + 0.013*\"official\" + 0.010*\"wang\" + 0.006*\"foreign\" + 0.005*\"right\" + 0.005*\"human\" + 0.005*\"washington\" + 0.005*\"state\"\n", "05:37:40 INFO:topic #46 (0.007): 0.004*\"hong\" + 0.004*\"kong\" + 0.003*\"china\" + 0.003*\"Hong Kong\" + 0.002*\"official\" + 0.002*\"hong_kong\" + 0.002*\"chinese\" + 0.002*\"singapore\" + 0.002*\"united\" + 0.002*\"plan\"\n", "05:37:40 INFO:topic #148 (0.007): 0.001*\"network\" + 0.001*\"analyst\" + 0.001*\"stock\" + 0.001*\"share\" + 0.001*\"price\" + 0.001*\"remote\" + 0.001*\"recent\" + 0.001*\"industry\" + 0.001*\"chinese\" + 0.001*\"billion\"\n", "05:37:40 INFO:topic diff=5.743502, rho=0.353553\n", "05:37:40 INFO:PROGRESS: pass 7, at document #2500/2500\n", "05:37:40 DEBUG:performing inference on a chunk of 2500 documents\n", "05:37:46 DEBUG:2500/2500 documents converged within 50 iterations\n", "05:37:46 DEBUG:updating topics\n", "05:37:47 INFO:topic #99 (0.007): 0.003*\"czech\" + 0.003*\"world\" + 0.003*\"team\" + 0.002*\"win\" + 0.002*\"game\" + 0.002*\"play\" + 0.002*\"second\" + 0.002*\"stock\" + 0.002*\"billion\" + 0.002*\"end\"\n", "05:37:47 INFO:topic #81 (0.007): 0.003*\"pound\" + 0.002*\"share\" + 0.002*\"profit\" + 0.002*\"million_pound\" + 0.002*\"sale\" + 0.001*\"business\" + 0.001*\"analyst\" + 0.001*\"rise\" + 0.001*\"group\" + 0.001*\"fall\"\n", "05:37:47 INFO:topic #97 (0.007): 0.001*\"analyst\" + 0.001*\"business\" + 0.001*\"china\" + 0.001*\"internet\" + 0.001*\"stock\" + 0.001*\"sale\" + 0.001*\"service\" + 0.001*\"chairman\" + 0.001*\"continue\" + 0.001*\"base\"\n", "05:37:47 INFO:topic #28 (0.007): 0.000*\"large\" + 0.000*\"share\" + 0.000*\"stock\" + 0.000*\"property\" + 0.000*\"analyst\" + 0.000*\"taiwan\" + 0.000*\"china\" + 0.000*\"bank\" + 0.000*\"news\" + 0.000*\"billion\"\n", "05:37:47 INFO:topic #93 (0.007): 0.020*\"ibm\" + 0.018*\"internet\" + 0.016*\"computer\" + 0.013*\"pc\" + 0.012*\"service\" + 0.011*\"analyst\" + 0.009*\"industry\" + 0.009*\"software\" + 0.009*\"quarter\" + 0.009*\"consumer\"\n", "05:37:47 INFO:topic diff=4.844379, rho=0.333333\n", "05:37:47 INFO:PROGRESS: pass 8, at document #2500/2500\n", "05:37:47 DEBUG:performing inference on a chunk of 2500 documents\n", "05:37:53 DEBUG:2500/2500 documents converged within 50 iterations\n", "05:37:53 DEBUG:updating topics\n", "05:37:54 INFO:topic #97 (0.007): 0.001*\"analyst\" + 0.001*\"business\" + 0.001*\"china\" + 0.001*\"internet\" + 0.001*\"stock\" + 0.001*\"sale\" + 0.001*\"service\" + 0.001*\"chairman\" + 0.001*\"continue\" + 0.001*\"base\"\n", "05:37:54 INFO:topic #77 (0.007): 0.002*\"computer\" + 0.002*\"internet\" + 0.002*\"quarter\" + 0.002*\"business\" + 0.002*\"service\" + 0.002*\"analyst\" + 0.001*\"share\" + 0.001*\"system\" + 0.001*\"cost\" + 0.001*\"industry\"\n", "05:37:54 INFO:topic #70 (0.007): 0.024*\"share\" + 0.023*\"shanghai\" + 0.021*\"china\" + 0.015*\"bank\" + 0.013*\"b\" + 0.013*\"analyst\" + 0.012*\"foreign\" + 0.010*\"exchange\" + 0.010*\"investor\" + 0.010*\"stock\"\n", "05:37:54 INFO:topic #26 (0.007): 0.003*\"business\" + 0.002*\"analyst\" + 0.001*\"share\" + 0.001*\"billion\" + 0.001*\"stock\" + 0.001*\"continue\" + 0.001*\"states\" + 0.001*\"chemical\" + 0.001*\"united\" + 0.001*\"internet\"\n", "05:37:54 INFO:topic #145 (0.007): 0.019*\"analyst\" + 0.015*\"sale\" + 0.013*\"share\" + 0.012*\"quarter\" + 0.009*\"business\" + 0.008*\"base\" + 0.007*\"earning\" + 0.007*\"stock\" + 0.007*\"drug\" + 0.006*\"amp\"\n", "05:37:54 INFO:topic diff=4.081138, rho=0.316228\n", "05:37:54 INFO:PROGRESS: pass 9, at document #2500/2500\n", "05:37:54 DEBUG:performing inference on a chunk of 2500 documents\n", "05:38:00 DEBUG:2500/2500 documents converged within 50 iterations\n", "05:38:00 DEBUG:updating topics\n", "05:38:00 INFO:topic #116 (0.007): 0.003*\"x\" + 0.002*\"bre\" + 0.002*\"analyst\" + 0.002*\"Bre-X\" + 0.002*\"bre_x\" + 0.001*\"government\" + 0.001*\"barrick\" + 0.001*\"gold\" + 0.001*\"mining\" + 0.001*\"indonesian\"\n", "05:38:00 INFO:topic #67 (0.007): 0.002*\"hong\" + 0.002*\"china\" + 0.002*\"kong\" + 0.001*\"hong_kong\" + 0.001*\"Hong Kong\" + 0.001*\"beijing\" + 0.001*\"legislature\" + 0.001*\"rule\" + 0.001*\"chinese\" + 0.001*\"plan\"\n", "05:38:00 INFO:topic #69 (0.007): 0.001*\"tibet\" + 0.001*\"chen\" + 0.001*\"dalai_lama\" + 0.001*\"china\" + 0.001*\"beijing\" + 0.001*\"group\" + 0.001*\"dalai\" + 0.000*\"lama\" + 0.000*\"billion\" + 0.000*\"region\"\n", "05:38:00 INFO:topic #146 (0.007): 0.001*\"hong_kong\" + 0.001*\"analyst\" + 0.000*\"share\" + 0.000*\"hong\" + 0.000*\"kong\" + 0.000*\"china\" + 0.000*\"news\" + 0.000*\"Hong Kong\" + 0.000*\"billion\" + 0.000*\"price\"\n", "05:38:00 INFO:topic #66 (0.007): 0.001*\"bank\" + 0.001*\"china\" + 0.000*\"hong\" + 0.000*\"government\" + 0.000*\"hong_kong\" + 0.000*\"plan\" + 0.000*\"bre\" + 0.000*\"x\" + 0.000*\"kong\" + 0.000*\"financial\"\n", "05:38:00 INFO:topic diff=3.435844, rho=0.301511\n", "05:38:00 INFO:PROGRESS: pass 10, at document #2500/2500\n", "05:38:00 DEBUG:performing inference on a chunk of 2500 documents\n", "05:38:06 DEBUG:2500/2500 documents converged within 50 iterations\n", "05:38:06 DEBUG:updating topics\n", "05:38:06 INFO:topic #80 (0.007): 0.019*\"analyst\" + 0.015*\"microsoft\" + 0.013*\"quarter\" + 0.011*\"business\" + 0.010*\"computer\" + 0.009*\"sale\" + 0.008*\"revenue\" + 0.008*\"windows\" + 0.008*\"share\" + 0.008*\"system\"\n", "05:38:06 INFO:topic #44 (0.007): 0.001*\"sale\" + 0.001*\"china\" + 0.001*\"analyst\" + 0.001*\"share\" + 0.001*\"service\" + 0.000*\"plan\" + 0.000*\"bank\" + 0.000*\"deal\" + 0.000*\"billion\" + 0.000*\"world\"\n", "05:38:06 INFO:topic #58 (0.007): 0.001*\"shanghai\" + 0.001*\"china\" + 0.001*\"bank\" + 0.001*\"chinese\" + 0.000*\"city\" + 0.000*\"stock\" + 0.000*\"chen\" + 0.000*\"beijing\" + 0.000*\"analyst\" + 0.000*\"modern\"\n", "05:38:06 INFO:topic #36 (0.007): 0.022*\"penny\" + 0.022*\"bid\" + 0.021*\"analyst\" + 0.018*\"share\" + 0.014*\"electric\" + 0.012*\"price\" + 0.012*\"electricity\" + 0.012*\"offer\" + 0.012*\"pound\" + 0.011*\"northern\"\n", "05:38:06 INFO:topic #143 (0.007): 0.018*\"mci\" + 0.012*\"analyst\" + 0.012*\"allen\" + 0.011*\"long\" + 0.011*\"billion\" + 0.011*\"distance\" + 0.010*\"long_distance\" + 0.009*\"stock\" + 0.009*\"share\" + 0.009*\"executive\"\n", "05:38:06 INFO:topic diff=2.892181, rho=0.288675\n", "05:38:06 INFO:PROGRESS: pass 11, at document #2500/2500\n", "05:38:06 DEBUG:performing inference on a chunk of 2500 documents\n", "05:38:12 DEBUG:2500/2500 documents converged within 50 iterations\n", "05:38:12 DEBUG:updating topics\n", "05:38:13 INFO:topic #141 (0.007): 0.006*\"internet\" + 0.005*\"bank\" + 0.003*\"law\" + 0.003*\"congress\" + 0.003*\"court\" + 0.002*\"service\" + 0.002*\"export\" + 0.002*\"security\" + 0.002*\"member\" + 0.002*\"credit\"\n", "05:38:13 INFO:topic #33 (0.007): 0.000*\"billion\" + 0.000*\"service\" + 0.000*\"plan\" + 0.000*\"industry\" + 0.000*\"china\" + 0.000*\"internet\" + 0.000*\"tonne\" + 0.000*\"price\" + 0.000*\"chinese\" + 0.000*\"share\"\n", "05:38:13 INFO:topic #49 (0.007): 0.001*\"eurotunnel\" + 0.001*\"service\" + 0.000*\"billion\" + 0.000*\"share\" + 0.000*\"fire\" + 0.000*\"pound\" + 0.000*\"tunnel\" + 0.000*\"debt\" + 0.000*\"group\" + 0.000*\"financial\"\n", "05:38:13 INFO:topic #116 (0.007): 0.002*\"x\" + 0.001*\"bre\" + 0.001*\"analyst\" + 0.001*\"Bre-X\" + 0.001*\"bre_x\" + 0.001*\"government\" + 0.001*\"barrick\" + 0.001*\"gold\" + 0.001*\"mining\" + 0.001*\"indonesian\"\n", "05:38:13 INFO:topic #83 (0.007): 0.001*\"beijing\" + 0.001*\"chinese\" + 0.001*\"billion\" + 0.001*\"profit\" + 0.001*\"tell\" + 0.001*\"china\" + 0.001*\"bank\" + 0.001*\"analyst\" + 0.001*\"australian\" + 0.001*\"share\"\n", "05:38:13 INFO:topic diff=2.435570, rho=0.277350\n", "05:38:13 INFO:PROGRESS: pass 12, at document #2500/2500\n", "05:38:13 DEBUG:performing inference on a chunk of 2500 documents\n", "05:38:19 DEBUG:2500/2500 documents converged within 50 iterations\n", "05:38:19 DEBUG:updating topics\n", "05:38:19 INFO:topic #138 (0.007): 0.000*\"china\" + 0.000*\"beijing\" + 0.000*\"share\" + 0.000*\"states\" + 0.000*\"news\" + 0.000*\"analyst\" + 0.000*\"long\" + 0.000*\"chinese\" + 0.000*\"trade\" + 0.000*\"the United States\"\n", "05:38:19 INFO:topic #125 (0.007): 0.000*\"analyst\" + 0.000*\"share\" + 0.000*\"bank\" + 0.000*\"problem\" + 0.000*\"billion\" + 0.000*\"sale\" + 0.000*\"loan\" + 0.000*\"plant\" + 0.000*\"gm\" + 0.000*\"corp\"\n", "05:38:19 INFO:topic #21 (0.007): 0.024*\"stock\" + 0.021*\"toronto\" + 0.018*\"share\" + 0.017*\"bank\" + 0.016*\"canada\" + 0.013*\"gold\" + 0.012*\"billion\" + 0.012*\"index\" + 0.011*\"close\" + 0.010*\"point\"\n" ] }, { "name": "stderr", "output_type": "stream", "text": [ "05:38:19 INFO:topic #5 (0.007): 0.002*\"china\" + 0.001*\"beijing\" + 0.001*\"chen\" + 0.001*\"official\" + 0.001*\"trade\" + 0.001*\"economic\" + 0.001*\"chinese\" + 0.001*\"party\" + 0.001*\"survey\" + 0.001*\"month\"\n", "05:38:19 INFO:topic #31 (0.007): 0.002*\"franc\" + 0.002*\"french\" + 0.002*\"china\" + 0.002*\"billion\" + 0.001*\"shanghai\" + 0.001*\"analyst\" + 0.001*\"share\" + 0.001*\"government\" + 0.001*\"plan\" + 0.001*\"exchange\"\n", "05:38:19 INFO:topic diff=2.053082, rho=0.267261\n", "05:38:19 INFO:PROGRESS: pass 13, at document #2500/2500\n", "05:38:19 DEBUG:performing inference on a chunk of 2500 documents\n", "05:38:26 DEBUG:2500/2500 documents converged within 50 iterations\n", "05:38:26 DEBUG:updating topics\n", "05:38:26 INFO:topic #3 (0.007): 0.000*\"pound\" + 0.000*\"billion\" + 0.000*\"share\" + 0.000*\"group\" + 0.000*\"british\" + 0.000*\"deal\" + 0.000*\"bank\" + 0.000*\"sale\" + 0.000*\"mci\" + 0.000*\"service\"\n", "05:38:26 INFO:topic #42 (0.007): 0.000*\"technology\" + 0.000*\"russia\" + 0.000*\"computer\" + 0.000*\"industry\" + 0.000*\"russian\" + 0.000*\"internet\" + 0.000*\"analyst\" + 0.000*\"world\" + 0.000*\"price\" + 0.000*\"software\"\n", "05:38:26 INFO:topic #104 (0.007): 0.044*\"cent\" + 0.043*\"bank\" + 0.028*\"cent_share\" + 0.022*\"league\" + 0.019*\"football\" + 0.016*\"share\" + 0.014*\"card\" + 0.013*\"earning\" + 0.012*\"cos\" + 0.011*\"canada\"\n", "05:38:26 INFO:topic #69 (0.007): 0.000*\"tibet\" + 0.000*\"chen\" + 0.000*\"dalai_lama\" + 0.000*\"china\" + 0.000*\"beijing\" + 0.000*\"group\" + 0.000*\"dalai\" + 0.000*\"lama\" + 0.000*\"billion\" + 0.000*\"region\"\n", "05:38:26 INFO:topic #115 (0.007): 0.000*\"share\" + 0.000*\"stock\" + 0.000*\"billion\" + 0.000*\"analyst\" + 0.000*\"china\" + 0.000*\"industry\" + 0.000*\"month\" + 0.000*\"rise\" + 0.000*\"big\" + 0.000*\"deal\"\n", "05:38:26 INFO:topic diff=1.733322, rho=0.258199\n", "05:38:26 INFO:PROGRESS: pass 14, at document #2500/2500\n", "05:38:26 DEBUG:performing inference on a chunk of 2500 documents\n", "05:38:32 DEBUG:2500/2500 documents converged within 50 iterations\n", "05:38:32 DEBUG:updating topics\n", "05:38:33 INFO:topic #82 (0.007): 0.001*\"china\" + 0.000*\"tonne\" + 0.000*\"chinese\" + 0.000*\"trader\" + 0.000*\"copper\" + 0.000*\"price\" + 0.000*\"source\" + 0.000*\"kong\" + 0.000*\"shanghai\" + 0.000*\"metal\"\n", "05:38:33 INFO:topic #122 (0.007): 0.000*\"share\" + 0.000*\"analyst\" + 0.000*\"quarter\" + 0.000*\"pc\" + 0.000*\"computer\" + 0.000*\"ibm\" + 0.000*\"profit\" + 0.000*\"service\" + 0.000*\"industry\" + 0.000*\"compaq\"\n", "05:38:33 INFO:topic #126 (0.007): 0.000*\"group\" + 0.000*\"europe\" + 0.000*\"plan\" + 0.000*\"air\" + 0.000*\"model\" + 0.000*\"pound\" + 0.000*\"hong\" + 0.000*\"month\" + 0.000*\"japan\" + 0.000*\"Hong Kong\"\n", "05:38:33 INFO:topic #1 (0.007): 0.005*\"bank\" + 0.004*\"stock\" + 0.004*\"billion\" + 0.004*\"japan\" + 0.003*\"analyst\" + 0.003*\"financial\" + 0.003*\"asset\" + 0.003*\"japanese\" + 0.002*\"big\" + 0.002*\"yen\"\n", "05:38:33 INFO:topic #120 (0.007): 0.022*\"stiff\" + 0.019*\"court\" + 0.018*\"rating\" + 0.018*\"frequently\" + 0.012*\"mercury\" + 0.012*\"williams\" + 0.012*\"remove\" + 0.011*\"judge\" + 0.011*\"armed\" + 0.009*\"ford\"\n", "05:38:33 INFO:topic diff=1.466340, rho=0.250000\n", "05:38:33 DEBUG:Setting topics to those of the model: AuthorTopicModel(num_terms=3914, num_topics=150, num_authors=50, decay=0.5, chunksize=2500)\n", "05:38:33 INFO:CorpusAccumulator accumulated stats from 1000 documents\n", "05:38:33 INFO:CorpusAccumulator accumulated stats from 2000 documents\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ "-1.90810257282\n" ] } ], "source": [ "atmodel_150topics = train_model(train_corpus_50_20, train_author2doc, train_dictionary_50_20, num_topics=150, eval_every=0, iterations=50, passes=15)" ] }, { "cell_type": "code", "execution_count": 18, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Precision@k: top_n=1\n", "Prediction accuracy: 0.6004\n", "Precision@k: top_n=2\n", "Prediction accuracy: 0.7632\n", "Precision@k: top_n=3\n", "Prediction accuracy: 0.8452\n", "Precision@k: top_n=4\n", "Prediction accuracy: 0.8796\n", "Precision@k: top_n=5\n", "Prediction accuracy: 0.8988\n", "Precision@k: top_n=6\n", "Prediction accuracy: 0.914\n", "Precision@k: top_n=8\n", "Prediction accuracy: 0.9324\n", "Precision@k: top_n=10\n", "Prediction accuracy: 0.9464\n" ] }, { "data": { "image/png": "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\n", "text/plain": [ "<matplotlib.figure.Figure at 0x14de666a0>" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "accuracy_scores_150topic={}\n", "for i in [1,2,3,4,5,6,8,10]:\n", " accuracy, k = prediction_accuracy(test_author2doc, test_corpus_50_20, atmodel_150topics, k=i)\n", " accuracy_scores_150topic[k] = accuracy\n", " \n", "plot_accuracy(scores1=accuracy_scores_100topic, label1=\"100 topics\", scores2=accuracy_scores_150topic, label2=\"150 topics\")" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The 150-topic model is also slightly better, especially in the lower end of k. But we clearly see convergence. We try with 200 topic to be sure." ] }, { "cell_type": "code", "execution_count": 19, "metadata": { "scrolled": true }, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "05:43:01 INFO:Vocabulary consists of 3914 words.\n", "05:43:01 INFO:using symmetric alpha at 0.005\n", "05:43:01 INFO:using symmetric eta at 0.005\n", "05:43:05 INFO:running online author-topic training, 200 topics, 50 authors, 15 passes over the supplied corpus of 2500 documents, updating model once every 2500 documents, evaluating perplexity every 0 documents, iterating 50x with a convergence threshold of 0.001000\n", "05:43:05 INFO:PROGRESS: pass 0, at document #2500/2500\n", "05:43:05 DEBUG:performing inference on a chunk of 2500 documents\n", "05:43:25 DEBUG:2/2500 documents converged within 50 iterations\n", "05:43:25 DEBUG:updating topics\n", "05:43:26 INFO:topic #198 (0.005): 0.006*\"plant\" + 0.006*\"analyst\" + 0.006*\"gm\" + 0.005*\"sale\" + 0.005*\"group\" + 0.005*\"service\" + 0.004*\"share\" + 0.004*\"internet\" + 0.004*\"plan\" + 0.004*\"uaw\"\n", "05:43:26 INFO:topic #186 (0.005): 0.009*\"pound\" + 0.007*\"quarter\" + 0.007*\"analyst\" + 0.007*\"share\" + 0.006*\"group\" + 0.006*\"business\" + 0.005*\"million_pound\" + 0.005*\"software\" + 0.005*\"sale\" + 0.005*\"industry\"\n", "05:43:26 INFO:topic #188 (0.005): 0.011*\"share\" + 0.010*\"analyst\" + 0.008*\"billion\" + 0.007*\"sale\" + 0.007*\"stock\" + 0.006*\"mci\" + 0.006*\"business\" + 0.005*\"british\" + 0.005*\"quarter\" + 0.005*\"deal\"\n", "05:43:26 INFO:topic #162 (0.005): 0.012*\"analyst\" + 0.008*\"business\" + 0.007*\"quarter\" + 0.006*\"share\" + 0.006*\"industry\" + 0.006*\"sale\" + 0.005*\"base\" + 0.005*\"billion\" + 0.005*\"high\" + 0.005*\"price\"\n", "05:43:26 INFO:topic #22 (0.005): 0.039*\"bank\" + 0.011*\"rate\" + 0.011*\"day\" + 0.011*\"cut\" + 0.010*\"analyst\" + 0.008*\"australia\" + 0.008*\"profit\" + 0.008*\"financial\" + 0.007*\"ltd\" + 0.007*\"merger\"\n", "05:43:26 INFO:topic diff=65.500588, rho=1.000000\n", "05:43:26 INFO:PROGRESS: pass 1, at document #2500/2500\n", "05:43:26 DEBUG:performing inference on a chunk of 2500 documents\n", "05:43:36 DEBUG:2494/2500 documents converged within 50 iterations\n", "05:43:36 DEBUG:updating topics\n", "05:43:37 INFO:topic #77 (0.005): 0.013*\"internet\" + 0.011*\"computer\" + 0.009*\"business\" + 0.009*\"quarter\" + 0.009*\"service\" + 0.008*\"revenue\" + 0.007*\"analyst\" + 0.007*\"cost\" + 0.007*\"industry\" + 0.006*\"compaq\"\n", "05:43:37 INFO:topic #25 (0.005): 0.010*\"share\" + 0.007*\"analyst\" + 0.007*\"service\" + 0.007*\"business\" + 0.006*\"growth\" + 0.006*\"mci\" + 0.006*\"billion\" + 0.006*\"long\" + 0.005*\"distance\" + 0.005*\"stock\"\n", "05:43:37 INFO:topic #133 (0.005): 0.011*\"group\" + 0.011*\"share\" + 0.010*\"pound\" + 0.009*\"billion\" + 0.007*\"profit\" + 0.007*\"business\" + 0.006*\"sale\" + 0.005*\"good\" + 0.005*\"bank\" + 0.005*\"analyst\"\n", "05:43:37 INFO:topic #180 (0.005): 0.011*\"billion\" + 0.006*\"venture\" + 0.006*\"quarter\" + 0.005*\"investment\" + 0.005*\"industry\" + 0.005*\"analyst\" + 0.004*\"price\" + 0.003*\"group\" + 0.003*\"high\" + 0.003*\"rise\"\n", "05:43:37 INFO:topic #1 (0.005): 0.018*\"japan\" + 0.014*\"japanese\" + 0.013*\"billion\" + 0.011*\"yen\" + 0.011*\"stock\" + 0.011*\"bank\" + 0.010*\"life\" + 0.010*\"financial\" + 0.010*\"big\" + 0.008*\"profit\"\n", "05:43:37 INFO:topic diff=17.080447, rho=0.577350\n", "05:43:37 INFO:PROGRESS: pass 2, at document #2500/2500\n", "05:43:37 DEBUG:performing inference on a chunk of 2500 documents\n", "05:43:46 DEBUG:2499/2500 documents converged within 50 iterations\n", "05:43:46 DEBUG:updating topics\n", "05:43:47 INFO:topic #92 (0.005): 0.013*\"analyst\" + 0.011*\"share\" + 0.007*\"sale\" + 0.006*\"profit\" + 0.005*\"pound\" + 0.004*\"high\" + 0.004*\"revenue\" + 0.004*\"quarter\" + 0.004*\"billion\" + 0.004*\"cent\"\n", "05:43:47 INFO:topic #117 (0.005): 0.015*\"access\" + 0.012*\"local\" + 0.011*\"internet\" + 0.011*\"fee\" + 0.010*\"distance\" + 0.010*\"long\" + 0.008*\"long_distance\" + 0.008*\"service\" + 0.007*\"issue\" + 0.006*\"provider\"\n", "05:43:47 INFO:topic #81 (0.005): 0.011*\"pound\" + 0.010*\"profit\" + 0.009*\"share\" + 0.008*\"sale\" + 0.007*\"million_pound\" + 0.006*\"analyst\" + 0.006*\"business\" + 0.006*\"rise\" + 0.005*\"group\" + 0.005*\"fall\"\n", "05:43:47 INFO:topic #97 (0.005): 0.025*\"internet\" + 0.018*\"bill\" + 0.014*\"administration\" + 0.014*\"product\" + 0.012*\"key\" + 0.011*\"policy\" + 0.011*\"export\" + 0.010*\"law\" + 0.008*\"access\" + 0.008*\"bank\"\n", "05:43:47 INFO:topic #24 (0.005): 0.005*\"crop\" + 0.005*\"price\" + 0.005*\"share\" + 0.004*\"tonne\" + 0.004*\"analyst\" + 0.004*\"exporter\" + 0.004*\"cocoa\" + 0.003*\"ivory_coast\" + 0.003*\"government\" + 0.003*\"reuters\"\n", "05:43:47 INFO:topic diff=14.773285, rho=0.500000\n", "05:43:47 INFO:PROGRESS: pass 3, at document #2500/2500\n", "05:43:47 DEBUG:performing inference on a chunk of 2500 documents\n", "05:43:56 DEBUG:2499/2500 documents converged within 50 iterations\n", "05:43:56 DEBUG:updating topics\n", "05:43:56 INFO:topic #16 (0.005): 0.003*\"group\" + 0.003*\"billion\" + 0.002*\"gm\" + 0.002*\"hong_kong\" + 0.002*\"pound\" + 0.002*\"kong\" + 0.002*\"china\" + 0.002*\"bid\" + 0.002*\"analyst\" + 0.002*\"hong\"\n", "05:43:56 INFO:topic #133 (0.005): 0.012*\"group\" + 0.011*\"pound\" + 0.010*\"share\" + 0.008*\"billion\" + 0.007*\"business\" + 0.006*\"profit\" + 0.005*\"good\" + 0.005*\"sale\" + 0.005*\"add\" + 0.005*\"cost\"\n", "05:43:56 INFO:topic #23 (0.005): 0.017*\"boeing\" + 0.010*\"billion\" + 0.009*\"analyst\" + 0.006*\"share\" + 0.006*\"microsoft\" + 0.006*\"industry\" + 0.005*\"quarter\" + 0.005*\"jet\" + 0.005*\"windows\" + 0.005*\"mcdonnell\"\n", "05:43:56 INFO:topic #156 (0.005): 0.005*\"analyst\" + 0.004*\"bank\" + 0.003*\"share\" + 0.003*\"service\" + 0.003*\"internet\" + 0.002*\"china\" + 0.002*\"plan\" + 0.002*\"profit\" + 0.002*\"billion\" + 0.002*\"cost\"\n", "05:43:56 INFO:topic #131 (0.005): 0.024*\"analyst\" + 0.017*\"share\" + 0.013*\"price\" + 0.011*\"business\" + 0.011*\"penny\" + 0.009*\"bid\" + 0.007*\"electric\" + 0.006*\"offer\" + 0.006*\"add\" + 0.006*\"northern\"\n", "05:43:56 INFO:topic diff=12.542799, rho=0.447214\n", "05:43:56 INFO:PROGRESS: pass 4, at document #2500/2500\n", "05:43:56 DEBUG:performing inference on a chunk of 2500 documents\n", "05:44:05 DEBUG:2500/2500 documents converged within 50 iterations\n", "05:44:05 DEBUG:updating topics\n", "05:44:05 INFO:topic #92 (0.005): 0.009*\"analyst\" + 0.008*\"share\" + 0.005*\"sale\" + 0.004*\"profit\" + 0.003*\"pound\" + 0.003*\"high\" + 0.003*\"revenue\" + 0.003*\"quarter\" + 0.003*\"billion\" + 0.003*\"cent\"\n", "05:44:05 INFO:topic #86 (0.005): 0.029*\"cargo\" + 0.021*\"kong\" + 0.020*\"hong\" + 0.020*\"hong_kong\" + 0.016*\"air\" + 0.015*\"Hong Kong\" + 0.015*\"airline\" + 0.009*\"service\" + 0.009*\"route\" + 0.009*\"airport\"\n", "05:44:05 INFO:topic #80 (0.005): 0.017*\"analyst\" + 0.014*\"microsoft\" + 0.013*\"quarter\" + 0.010*\"computer\" + 0.010*\"business\" + 0.009*\"windows\" + 0.008*\"revenue\" + 0.008*\"internet\" + 0.007*\"system\" + 0.007*\"sale\"\n", "05:44:05 INFO:topic #23 (0.005): 0.015*\"boeing\" + 0.009*\"billion\" + 0.008*\"analyst\" + 0.006*\"share\" + 0.005*\"microsoft\" + 0.005*\"industry\" + 0.005*\"quarter\" + 0.005*\"jet\" + 0.004*\"windows\" + 0.004*\"mcdonnell\"\n", "05:44:05 INFO:topic #177 (0.005): 0.011*\"investment\" + 0.010*\"pound\" + 0.010*\"group\" + 0.008*\"cable\" + 0.008*\"british\" + 0.007*\"fleming\" + 0.007*\"management\" + 0.006*\"fund\" + 0.006*\"share\" + 0.006*\"merger\"\n", "05:44:05 INFO:topic diff=10.561281, rho=0.408248\n", "05:44:05 INFO:PROGRESS: pass 5, at document #2500/2500\n", "05:44:05 DEBUG:performing inference on a chunk of 2500 documents\n", "05:44:14 DEBUG:2500/2500 documents converged within 50 iterations\n", "05:44:14 DEBUG:updating topics\n", "05:44:15 INFO:topic #61 (0.005): 0.038*\"boeing\" + 0.017*\"billion\" + 0.016*\"jet\" + 0.013*\"analyst\" + 0.012*\"mcdonnell\" + 0.011*\"microsoft\" + 0.010*\"airbus\" + 0.010*\"order\" + 0.010*\"douglas\" + 0.009*\"share\"\n", "05:44:15 INFO:topic #73 (0.005): 0.001*\"bank\" + 0.001*\"china\" + 0.001*\"group\" + 0.001*\"big\" + 0.001*\"analyst\" + 0.001*\"sale\" + 0.001*\"shanghai\" + 0.001*\"deal\" + 0.001*\"gm\" + 0.001*\"pound\"\n", "05:44:15 INFO:topic #147 (0.005): 0.012*\"czech\" + 0.011*\"crown\" + 0.010*\"week\" + 0.009*\"analyst\" + 0.009*\"point\" + 0.008*\"investor\" + 0.007*\"round\" + 0.007*\"prague\" + 0.007*\"billion\" + 0.006*\"second\"\n", "05:44:15 INFO:topic #50 (0.005): 0.006*\"british\" + 0.006*\"telecom\" + 0.006*\"deal\" + 0.005*\"analyst\" + 0.005*\"drug\" + 0.004*\"share\" + 0.004*\"mci\" + 0.004*\"billion\" + 0.004*\"group\" + 0.003*\"sale\"\n", "05:44:15 INFO:topic #99 (0.005): 0.003*\"stock\" + 0.002*\"business\" + 0.002*\"share\" + 0.002*\"analyst\" + 0.002*\"end\" + 0.002*\"day\" + 0.002*\"sale\" + 0.002*\"world\" + 0.002*\"billion\" + 0.001*\"quarter\"\n", "05:44:15 INFO:topic diff=8.863923, rho=0.377964\n", "05:44:15 INFO:PROGRESS: pass 6, at document #2500/2500\n", "05:44:15 DEBUG:performing inference on a chunk of 2500 documents\n", "05:44:23 DEBUG:2500/2500 documents converged within 50 iterations\n" ] }, { "name": "stderr", "output_type": "stream", "text": [ "05:44:23 DEBUG:updating topics\n", "05:44:24 INFO:topic #70 (0.005): 0.011*\"stock\" + 0.010*\"shanghai\" + 0.008*\"share\" + 0.008*\"exchange\" + 0.007*\"trading\" + 0.007*\"china\" + 0.007*\"bank\" + 0.006*\"future\" + 0.006*\"beijing\" + 0.005*\"index\"\n", "05:44:24 INFO:topic #177 (0.005): 0.011*\"investment\" + 0.010*\"pound\" + 0.010*\"group\" + 0.008*\"cable\" + 0.008*\"british\" + 0.007*\"fleming\" + 0.007*\"management\" + 0.007*\"share\" + 0.006*\"fund\" + 0.006*\"merger\"\n", "05:44:24 INFO:topic #37 (0.005): 0.015*\"bank\" + 0.012*\"czech\" + 0.008*\"crown\" + 0.006*\"prague\" + 0.005*\"foreign\" + 0.005*\"billion\" + 0.004*\"state\" + 0.004*\"deficit\" + 0.004*\"communist\" + 0.004*\"central\"\n", "05:44:24 INFO:topic #56 (0.005): 0.032*\"kong\" + 0.031*\"hong\" + 0.031*\"hong_kong\" + 0.022*\"Hong Kong\" + 0.016*\"china\" + 0.007*\"fund\" + 0.007*\"Hong Kong's\" + 0.006*\"chinese\" + 0.005*\"tung\" + 0.005*\"british\"\n", "05:44:24 INFO:topic #32 (0.005): 0.004*\"china\" + 0.003*\"beijing\" + 0.002*\"taiwan\" + 0.002*\"bre\" + 0.002*\"bre_x\" + 0.002*\"share\" + 0.002*\"x\" + 0.002*\"chinese\" + 0.002*\"analyst\" + 0.002*\"party\"\n", "05:44:24 INFO:topic diff=7.433677, rho=0.353553\n", "05:44:24 INFO:PROGRESS: pass 7, at document #2500/2500\n", "05:44:24 DEBUG:performing inference on a chunk of 2500 documents\n", "05:44:32 DEBUG:2500/2500 documents converged within 50 iterations\n", "05:44:32 DEBUG:updating topics\n", "05:44:33 INFO:topic #194 (0.005): 0.024*\"cocoa\" + 0.020*\"tonne\" + 0.019*\"exporter\" + 0.012*\"ivory\" + 0.012*\"ivory_coast\" + 0.012*\"coast\" + 0.011*\"crop\" + 0.011*\"price\" + 0.010*\"buyer\" + 0.009*\"export\"\n", "05:44:33 INFO:topic #116 (0.005): 0.004*\"x\" + 0.003*\"analyst\" + 0.003*\"bre\" + 0.003*\"Bre-X\" + 0.002*\"bre_x\" + 0.002*\"share\" + 0.002*\"government\" + 0.002*\"bank\" + 0.002*\"billion\" + 0.002*\"sale\"\n", "05:44:33 INFO:topic #174 (0.005): 0.001*\"quarter\" + 0.001*\"venture\" + 0.001*\"china\" + 0.001*\"billion\" + 0.001*\"beijing\" + 0.000*\"investment\" + 0.000*\"share\" + 0.000*\"level\" + 0.000*\"chinese\" + 0.000*\"official\"\n", "05:44:33 INFO:topic #169 (0.005): 0.001*\"china\" + 0.001*\"tell\" + 0.001*\"service\" + 0.001*\"hong_kong\" + 0.001*\"billion\" + 0.001*\"share\" + 0.001*\"beijing\" + 0.001*\"group\" + 0.001*\"kong\" + 0.001*\"analyst\"\n", "05:44:33 INFO:topic #88 (0.005): 0.024*\"franc\" + 0.023*\"french\" + 0.022*\"air\" + 0.021*\"france\" + 0.017*\"thomson\" + 0.014*\"billion\" + 0.011*\"group\" + 0.010*\"telecom\" + 0.010*\"billion_franc\" + 0.009*\"government\"\n", "05:44:33 INFO:topic diff=6.234229, rho=0.333333\n", "05:44:33 INFO:PROGRESS: pass 8, at document #2500/2500\n", "05:44:33 DEBUG:performing inference on a chunk of 2500 documents\n", "05:44:41 DEBUG:2500/2500 documents converged within 50 iterations\n", "05:44:41 DEBUG:updating topics\n", "05:44:42 INFO:topic #149 (0.005): 0.010*\"china\" + 0.005*\"chinese\" + 0.005*\"official\" + 0.004*\"beijing\" + 0.004*\"metre\" + 0.003*\"world\" + 0.003*\"trade\" + 0.003*\"foreign\" + 0.003*\"united_states\" + 0.003*\"united\"\n", "05:44:42 INFO:topic #62 (0.005): 0.002*\"property\" + 0.002*\"increase\" + 0.002*\"month\" + 0.002*\"klaus\" + 0.001*\"social\" + 0.001*\"commission\" + 0.001*\"pound\" + 0.001*\"analyst\" + 0.001*\"large\" + 0.001*\"party\"\n", "05:44:42 INFO:topic #38 (0.005): 0.016*\"analyst\" + 0.014*\"australian\" + 0.014*\"ltd\" + 0.013*\"share\" + 0.012*\"australia\" + 0.011*\"profit\" + 0.011*\"sydney\" + 0.009*\"news\" + 0.009*\"group\" + 0.009*\"corp\"\n", "05:44:42 INFO:topic #155 (0.005): 0.002*\"china\" + 0.001*\"fund\" + 0.001*\"stock\" + 0.001*\"billion\" + 0.001*\"economic\" + 0.001*\"hong\" + 0.001*\"bank\" + 0.001*\"group\" + 0.001*\"kong\" + 0.001*\"canada\"\n", "05:44:42 INFO:topic #130 (0.005): 0.019*\"mci\" + 0.012*\"analyst\" + 0.011*\"service\" + 0.011*\"share\" + 0.011*\"long\" + 0.010*\"billion\" + 0.009*\"long_distance\" + 0.009*\"distance\" + 0.009*\"corp\" + 0.008*\"deal\"\n", "05:44:42 INFO:topic diff=5.231049, rho=0.316228\n", "05:44:42 INFO:PROGRESS: pass 9, at document #2500/2500\n", "05:44:42 DEBUG:performing inference on a chunk of 2500 documents\n", "05:44:50 DEBUG:2500/2500 documents converged within 50 iterations\n", "05:44:51 DEBUG:updating topics\n", "05:44:51 INFO:topic #166 (0.005): 0.001*\"oil\" + 0.001*\"russian\" + 0.001*\"russia\" + 0.001*\"internet\" + 0.001*\"export\" + 0.001*\"world\" + 0.001*\"service\" + 0.001*\"tonne\" + 0.001*\"analyst\" + 0.001*\"output\"\n", "05:44:51 INFO:topic #187 (0.005): 0.033*\"china\" + 0.011*\"beijing\" + 0.011*\"official\" + 0.010*\"chinese\" + 0.008*\"state\" + 0.008*\"foreign\" + 0.008*\"trade\" + 0.006*\"united\" + 0.005*\"united_states\" + 0.005*\"states\"\n", "05:44:51 INFO:topic #139 (0.005): 0.013*\"drug\" + 0.012*\"group\" + 0.010*\"pound\" + 0.010*\"sale\" + 0.009*\"plc\" + 0.009*\"british\" + 0.009*\"share\" + 0.008*\"product\" + 0.008*\"profit\" + 0.008*\"analyst\"\n", "05:44:51 INFO:topic #43 (0.005): 0.001*\"tonne\" + 0.001*\"cocoa\" + 0.001*\"china\" + 0.000*\"share\" + 0.000*\"bank\" + 0.000*\"government\" + 0.000*\"exporter\" + 0.000*\"stock\" + 0.000*\"plan\" + 0.000*\"close\"\n", "05:44:51 INFO:topic #71 (0.005): 0.025*\"fcc\" + 0.018*\"phone\" + 0.016*\"carrier\" + 0.015*\"local\" + 0.012*\"rule\" + 0.011*\"long\" + 0.011*\"service\" + 0.011*\"distance\" + 0.010*\"tv\" + 0.010*\"long_distance\"\n", "05:44:51 INFO:topic diff=4.391602, rho=0.301511\n", "05:44:51 INFO:PROGRESS: pass 10, at document #2500/2500\n", "05:44:51 DEBUG:performing inference on a chunk of 2500 documents\n", "05:44:59 DEBUG:2500/2500 documents converged within 50 iterations\n", "05:44:59 DEBUG:updating topics\n", "05:45:00 INFO:topic #156 (0.005): 0.001*\"analyst\" + 0.001*\"bank\" + 0.001*\"share\" + 0.001*\"service\" + 0.000*\"internet\" + 0.000*\"china\" + 0.000*\"plan\" + 0.000*\"profit\" + 0.000*\"billion\" + 0.000*\"cost\"\n", "05:45:00 INFO:topic #63 (0.005): 0.037*\"oil\" + 0.029*\"russia\" + 0.026*\"russian\" + 0.016*\"tonne\" + 0.016*\"aluminium\" + 0.015*\"smelter\" + 0.014*\"output\" + 0.012*\"world\" + 0.012*\"export\" + 0.010*\"western\"\n", "05:45:00 INFO:topic #83 (0.005): 0.001*\"profit\" + 0.001*\"bank\" + 0.001*\"australian\" + 0.001*\"analyst\" + 0.001*\"billion\" + 0.001*\"australia\" + 0.001*\"share\" + 0.001*\"tell\" + 0.001*\"ltd\" + 0.001*\"beijing\"\n", "05:45:00 INFO:topic #144 (0.005): 0.001*\"computer\" + 0.001*\"software\" + 0.001*\"site\" + 0.001*\"quarter\" + 0.001*\"technology\" + 0.001*\"internet\" + 0.001*\"industry\" + 0.001*\"web\" + 0.001*\"product\" + 0.001*\"high\"\n", "05:45:00 INFO:topic #84 (0.005): 0.015*\"klaus\" + 0.014*\"czech\" + 0.014*\"bank\" + 0.011*\"billion\" + 0.011*\"crown\" + 0.009*\"state\" + 0.009*\"price\" + 0.008*\"minister\" + 0.007*\"tell\" + 0.007*\"low\"\n", "05:45:00 INFO:topic diff=3.689287, rho=0.288675\n", "05:45:00 INFO:PROGRESS: pass 11, at document #2500/2500\n", "05:45:00 DEBUG:performing inference on a chunk of 2500 documents\n", "05:45:08 DEBUG:2500/2500 documents converged within 50 iterations\n", "05:45:08 DEBUG:updating topics\n", "05:45:09 INFO:topic #50 (0.005): 0.001*\"british\" + 0.001*\"telecom\" + 0.001*\"deal\" + 0.001*\"analyst\" + 0.001*\"drug\" + 0.001*\"share\" + 0.001*\"mci\" + 0.001*\"billion\" + 0.001*\"group\" + 0.001*\"sale\"\n", "05:45:09 INFO:topic #194 (0.005): 0.024*\"cocoa\" + 0.020*\"tonne\" + 0.020*\"exporter\" + 0.012*\"ivory\" + 0.012*\"coast\" + 0.012*\"ivory_coast\" + 0.011*\"crop\" + 0.011*\"price\" + 0.010*\"buyer\" + 0.009*\"export\"\n", "05:45:09 INFO:topic #138 (0.005): 0.001*\"china\" + 0.000*\"beijing\" + 0.000*\"share\" + 0.000*\"news\" + 0.000*\"states\" + 0.000*\"chinese\" + 0.000*\"analyst\" + 0.000*\"month\" + 0.000*\"long\" + 0.000*\"the United States\"\n", "05:45:09 INFO:topic #100 (0.005): 0.001*\"chinese\" + 0.001*\"china\" + 0.001*\"beijing\" + 0.000*\"hong\" + 0.000*\"hong_kong\" + 0.000*\"official\" + 0.000*\"tibet\" + 0.000*\"magazine\" + 0.000*\"kong\" + 0.000*\"lama\"\n", "05:45:09 INFO:topic #94 (0.005): 0.000*\"share\" + 0.000*\"stock\" + 0.000*\"election\" + 0.000*\"analyst\" + 0.000*\"low\" + 0.000*\"bank\" + 0.000*\"havel\" + 0.000*\"government\" + 0.000*\"high\" + 0.000*\"large\"\n", "05:45:09 INFO:topic diff=3.102101, rho=0.277350\n", "05:45:09 INFO:PROGRESS: pass 12, at document #2500/2500\n", "05:45:09 DEBUG:performing inference on a chunk of 2500 documents\n", "05:45:17 DEBUG:2500/2500 documents converged within 50 iterations\n", "05:45:17 DEBUG:updating topics\n", "05:45:18 INFO:topic #122 (0.005): 0.000*\"share\" + 0.000*\"analyst\" + 0.000*\"plant\" + 0.000*\"gm\" + 0.000*\"industry\" + 0.000*\"quarter\" + 0.000*\"service\" + 0.000*\"law\" + 0.000*\"month\" + 0.000*\"large\"\n", "05:45:18 INFO:topic #20 (0.005): 0.029*\"gold\" + 0.019*\"bre\" + 0.019*\"x\" + 0.018*\"bre_x\" + 0.014*\"price\" + 0.014*\"analyst\" + 0.011*\"Bre-X\" + 0.010*\"busang\" + 0.010*\"barrick\" + 0.010*\"toronto\"\n", "05:45:18 INFO:topic #107 (0.005): 0.031*\"russia\" + 0.027*\"oil\" + 0.016*\"russian\" + 0.014*\"export\" + 0.012*\"output\" + 0.010*\"moscow\" + 0.009*\"tonne\" + 0.009*\"domestic\" + 0.009*\"world\" + 0.008*\"western\"\n" ] }, { "name": "stderr", "output_type": "stream", "text": [ "05:45:18 INFO:topic #130 (0.005): 0.019*\"mci\" + 0.012*\"analyst\" + 0.011*\"service\" + 0.011*\"share\" + 0.010*\"long\" + 0.010*\"billion\" + 0.009*\"long_distance\" + 0.009*\"distance\" + 0.009*\"corp\" + 0.008*\"deal\"\n", "05:45:18 INFO:topic #151 (0.005): 0.012*\"billion\" + 0.008*\"sale\" + 0.007*\"computer\" + 0.007*\"industry\" + 0.006*\"good\" + 0.006*\"analyst\" + 0.006*\"product\" + 0.006*\"quarter\" + 0.005*\"forecast\" + 0.005*\"internet\"\n", "05:45:18 INFO:topic diff=2.611657, rho=0.267261\n", "05:45:18 INFO:PROGRESS: pass 13, at document #2500/2500\n", "05:45:18 DEBUG:performing inference on a chunk of 2500 documents\n", "05:45:28 DEBUG:2500/2500 documents converged within 50 iterations\n", "05:45:28 DEBUG:updating topics\n", "05:45:28 INFO:topic #74 (0.005): 0.036*\"china\" + 0.029*\"tonne\" + 0.021*\"chinese\" + 0.021*\"trader\" + 0.018*\"price\" + 0.014*\"import\" + 0.013*\"source\" + 0.011*\"copper\" + 0.010*\"official\" + 0.010*\"million_tonne\"\n", "05:45:28 INFO:topic #138 (0.005): 0.000*\"china\" + 0.000*\"beijing\" + 0.000*\"share\" + 0.000*\"news\" + 0.000*\"states\" + 0.000*\"chinese\" + 0.000*\"analyst\" + 0.000*\"month\" + 0.000*\"long\" + 0.000*\"the United States\"\n", "05:45:28 INFO:topic #60 (0.005): 0.000*\"half\" + 0.000*\"financial\" + 0.000*\"northern\" + 0.000*\"policy\" + 0.000*\"official\" + 0.000*\"group\" + 0.000*\"product\" + 0.000*\"draft\" + 0.000*\"administration\" + 0.000*\"stock\"\n", "05:45:28 INFO:topic #42 (0.005): 0.000*\"russia\" + 0.000*\"russian\" + 0.000*\"industry\" + 0.000*\"technology\" + 0.000*\"oil\" + 0.000*\"world\" + 0.000*\"export\" + 0.000*\"price\" + 0.000*\"diamond\" + 0.000*\"analyst\"\n", "05:45:28 INFO:topic #36 (0.005): 0.026*\"bid\" + 0.025*\"penny\" + 0.016*\"analyst\" + 0.015*\"electric\" + 0.015*\"share\" + 0.014*\"electricity\" + 0.013*\"pound\" + 0.013*\"offer\" + 0.011*\"northern\" + 0.011*\"british\"\n", "05:45:28 INFO:topic diff=2.202422, rho=0.258199\n", "05:45:28 INFO:PROGRESS: pass 14, at document #2500/2500\n", "05:45:28 DEBUG:performing inference on a chunk of 2500 documents\n", "05:45:36 DEBUG:2500/2500 documents converged within 50 iterations\n", "05:45:36 DEBUG:updating topics\n", "05:45:36 INFO:topic #89 (0.005): 0.001*\"bre_x\" + 0.001*\"x\" + 0.001*\"bre\" + 0.001*\"analyst\" + 0.001*\"barrick\" + 0.001*\"Bre-X\" + 0.001*\"government\" + 0.001*\"gold\" + 0.001*\"indonesian\" + 0.001*\"billion\"\n", "05:45:36 INFO:topic #121 (0.005): 0.000*\"time\" + 0.000*\"share\" + 0.000*\"second\" + 0.000*\"tobacco\" + 0.000*\"group\" + 0.000*\"industry\" + 0.000*\"action\" + 0.000*\"month\" + 0.000*\"plan\" + 0.000*\"hand\"\n", "05:45:36 INFO:topic #188 (0.005): 0.015*\"sale\" + 0.013*\"analyst\" + 0.011*\"share\" + 0.008*\"mercury\" + 0.008*\"bank\" + 0.007*\"stock\" + 0.007*\"billion\" + 0.006*\"amp\" + 0.006*\"think\" + 0.006*\"base\"\n", "05:45:36 INFO:topic #80 (0.005): 0.016*\"microsoft\" + 0.015*\"analyst\" + 0.013*\"quarter\" + 0.010*\"windows\" + 0.010*\"computer\" + 0.009*\"business\" + 0.009*\"revenue\" + 0.009*\"sale\" + 0.008*\"system\" + 0.008*\"software\"\n", "05:45:36 INFO:topic #56 (0.005): 0.033*\"hong\" + 0.033*\"kong\" + 0.032*\"hong_kong\" + 0.023*\"Hong Kong\" + 0.017*\"china\" + 0.007*\"Hong Kong's\" + 0.006*\"chinese\" + 0.006*\"tung\" + 0.006*\"british\" + 0.004*\"government\"\n", "05:45:36 INFO:topic diff=1.861192, rho=0.250000\n", "05:45:36 DEBUG:Setting topics to those of the model: AuthorTopicModel(num_terms=3914, num_topics=200, num_authors=50, decay=0.5, chunksize=2500)\n", "05:45:37 INFO:CorpusAccumulator accumulated stats from 1000 documents\n", "05:45:37 INFO:CorpusAccumulator accumulated stats from 2000 documents\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ "-1.93149366596\n" ] } ], "source": [ "atmodel_200topics = train_model(train_corpus_50_20, train_author2doc, train_dictionary_50_20, num_topics=200, eval_every=0, iterations=50, passes=15)" ] }, { "cell_type": "code", "execution_count": 20, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Precision@k: top_n=1\n", "Prediction accuracy: 0.6232\n", "Precision@k: top_n=2\n", "Prediction accuracy: 0.7664\n", "Precision@k: top_n=3\n", "Prediction accuracy: 0.8456\n", "Precision@k: top_n=4\n", "Prediction accuracy: 0.8816\n", "Precision@k: top_n=5\n", "Prediction accuracy: 0.9032\n", "Precision@k: top_n=6\n", "Prediction accuracy: 0.9164\n", "Precision@k: top_n=8\n", "Prediction accuracy: 0.9368\n", "Precision@k: top_n=10\n", "Prediction accuracy: 0.9464\n" ] }, { "data": { "image/png": "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\n+G7s2LHMnj0bgNmzZ3PppZcWrX/zzTdRVb7++msiIyOJjo4use3x02YXn/r68OHDJaa+/vbbb9mx\nYwc+n4958+aVmu77vPPOY8GCBUUJoPh030OHDmXatGm0bdu2RNIy5ePpXEyqugxY5n7+GQh8UnRj\nTLX58ssveeutt+jbty9xcXEAPPHEE1x00UU8/PDDjBs3jtdff50uXbowf/58wLn99KOPPqJ79+40\nbtyYN954o9R+W7duzdlnn01sbCwXXnghTz75JCtXrqR///6oatHU11u2bGHIkCHceeedbNu2jVGj\nRnH55ZeX2FefPn344x//yLnnnktoaCgDBgxg1qxZPPDAA2zduhVVZfTo0fTv37/6f7A6yibrM8aU\ncs455+DMCl1a69atWbp0aan1IsKMGTPK3Pfbb79dYvmpp57iqaeeKtVp27x5cz788MNS2xd/bsL4\n8eMZP358ie//85//lBmDCUxNamIyxhhTg9gVhDGmxhk5cqRntxibY+wKwhhjjF+WIIwxxvhlCcIY\nY4xfliCMMcb4ZQnCmLpg/Xx4LhamtnDe18+v1O7q03TfEyZMYOHChSctM2vWLBITE6usTn9WrVrF\nXXfdddIyVfH7lYclCGNqu/Xz4YO7IHUPoM77B3dVKknYdN8lBSNBDB48mBdffPGkZSxBGGPKZ+k0\nyMsuuS4v21lfQdHR0QwcOBBwpsc4/fTT2bvXmT9z0aJFRYPTxo8fz3vvvVe0/oYbbkBEGDZsGCkp\nKUVzNhV6+OGH2b59O3FxcTzwwAOoKg888ACxsbEMGzaMefPmAc5MuiNGjODiiy+mZ8+e3Hbbbfh8\nPgC6du3K4cOHAXjzzTfp168f/fv35/rrrwdgwYIFxMbG0r9/f0aMGFHq2FSVO++8k549e3L++edz\n8ODBou+mTZvGkCFDiI2NZdKkSagqCxcuZNWqVVx77bXExcWRnZ3tt9zxJkyYwG233cbgwYM57bTT\nigb95eTkcOONNzJs2DAGDBhAfHx80TFfcsklAEydOpWbbrqJkSNHcsoppxQljuN/v3379jFixAji\n4uKIjY1l+fLl5fsPXRZVrbWvQYMGqVfi4+Ot3jpet5fHvGbNmsALT4lUndLczyuySmLZsWOHdurU\nSVNTU1VVNTLy2H59Pl/R8sUXX6zLly8v+u68887T7777rtS++vTpU7S8cOFCPf/88zU/P1+3bdum\n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\n", "text/plain": [ "<matplotlib.figure.Figure at 0x117a975c0>" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "accuracy_scores_200topic={}\n", "for i in [1,2,3,4,5,6,8,10]:\n", " accuracy, k = prediction_accuracy(test_author2doc, test_corpus_50_20, atmodel_200topics, k=i)\n", " accuracy_scores_200topic[k] = accuracy\n", " \n", "plot_accuracy(scores1=accuracy_scores_150topic, label1=\"150 topics\", scores2=accuracy_scores_200topic, label2=\"200 topics\")" ] }, { "cell_type": "markdown", "metadata": { "collapsed": true }, "source": [ "The 200-topic seems to be performing a bit better for lower k, might be due to a slight overrepresentation with high topic number. So let us stop here with the topic number increase and focus some more on the dictionary. We choose either one of the models.\n", "Currently we are filtering out tokens, that appear in more 50% of all documents and no more than 20 times overall, which drastically decreaces the size of our dictionary. \n", "We know about this dataset, that the underlying topic are not so diverse and are structed around corporate/industrial topic class. Thus it makes sense to increase the dictionary by filtering less tokens." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "We set the parameters set max_freq=25%, min_wordcount=10" ] }, { "cell_type": "code", "execution_count": 30, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "06:18:50 INFO:adding document #0 to Dictionary(0 unique tokens: [])\n", "06:18:51 INFO:built Dictionary(46905 unique tokens: ['$83.4 million', 'boarder', '$2.72 billion', 'checking', 'suzuki']...) from 2500 documents (total 786032 corpus positions)\n", "06:18:51 INFO:discarding 40690 tokens: [('$15', 3), ('$17.25', 1), ('$380 million', 2), ('12.5 cents', 7), ('Big B', 3), ('Big B Inc.', 2), (\"Big B's\", 3), ('Big B. I', 1), ('Dwayne Hoven', 1), ('Eckerd Corp.', 1)]...\n", "06:18:51 INFO:keeping 6215 tokens which were in no less than 10 and no more than 625 (=25.0%) documents\n", "06:18:51 DEBUG:rebuilding dictionary, shrinking gaps\n", "06:18:51 INFO:resulting dictionary: Dictionary(6215 unique tokens: ['offshoot', 'shore', 'loss', 'merger', 'disappointing']...)\n" ] } ], "source": [ "train_corpus_25_10, train_dictionary_25_10 = create_corpus_dictionary(train_docs, 0.25, 10)" ] }, { "cell_type": "code", "execution_count": 31, "metadata": { "collapsed": true }, "outputs": [], "source": [ "test_corpus_25_10 = create_test_corpus(train_dictionary_25_10, test_docs)" ] }, { "cell_type": "code", "execution_count": 32, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Number of unique tokens: 6215\n" ] } ], "source": [ "print('Number of unique tokens: %d' % len(train_dictionary_25_10))" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "We now have now nearly doubled the tokens. Let's train and evaluate." ] }, { "cell_type": "code", "execution_count": 33, "metadata": { "scrolled": true }, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "06:18:53 INFO:Vocabulary consists of 6215 words.\n", "06:18:53 INFO:using symmetric alpha at 0.006666666666666667\n", "06:18:53 INFO:using symmetric eta at 0.006666666666666667\n", "06:18:57 INFO:running online author-topic training, 150 topics, 50 authors, 15 passes over the supplied corpus of 2500 documents, updating model once every 2500 documents, evaluating perplexity every 0 documents, iterating 50x with a convergence threshold of 0.001000\n", "06:18:57 INFO:PROGRESS: pass 0, at document #2500/2500\n", "06:18:57 DEBUG:performing inference on a chunk of 2500 documents\n", "06:19:11 DEBUG:17/2500 documents converged within 50 iterations\n", "06:19:11 DEBUG:updating topics\n", "06:19:12 INFO:topic #141 (0.007): 0.031*\"gm\" + 0.016*\"plant\" + 0.011*\"worker\" + 0.010*\"uaw\" + 0.009*\"strike\" + 0.009*\"truck\" + 0.008*\"local\" + 0.007*\"automaker\" + 0.006*\"part\" + 0.005*\"contract\"\n", "06:19:12 INFO:topic #105 (0.007): 0.013*\"china\" + 0.010*\"tonne\" + 0.009*\"chinese\" + 0.008*\"trader\" + 0.007*\"copper\" + 0.007*\"product\" + 0.005*\"drug\" + 0.005*\"hong_kong\" + 0.004*\"soybean\" + 0.004*\"hong\"\n", "06:19:12 INFO:topic #15 (0.007): 0.006*\"china\" + 0.004*\"network\" + 0.003*\"drug\" + 0.003*\"trade\" + 0.003*\"united\" + 0.003*\"states\" + 0.003*\"boeing\" + 0.003*\"chinese\" + 0.003*\"beijing\" + 0.002*\"product\"\n", "06:19:12 INFO:topic #30 (0.007): 0.010*\"amp\" + 0.009*\"bank\" + 0.005*\"ernst\" + 0.005*\"claim\" + 0.005*\"bre\" + 0.004*\"bre_x\" + 0.004*\"gold\" + 0.003*\"rate\" + 0.003*\"x\" + 0.003*\"pay\"\n", "06:19:12 INFO:topic #114 (0.007): 0.019*\"bank\" + 0.010*\"japan\" + 0.009*\"pound\" + 0.008*\"problem\" + 0.008*\"loan\" + 0.007*\"financial\" + 0.006*\"yen\" + 0.005*\"bt\" + 0.005*\"million_pound\" + 0.005*\"japanese\"\n", "06:19:12 INFO:topic diff=61.971494, rho=1.000000\n", "06:19:12 INFO:PROGRESS: pass 1, at document #2500/2500\n", "06:19:12 DEBUG:performing inference on a chunk of 2500 documents\n", "06:19:19 DEBUG:2491/2500 documents converged within 50 iterations\n", "06:19:19 DEBUG:updating topics\n", "06:19:19 INFO:topic #45 (0.007): 0.006*\"property\" + 0.004*\"china\" + 0.003*\"holding\" + 0.003*\"survey\" + 0.003*\"sector\" + 0.002*\"bank\" + 0.002*\"gold\" + 0.002*\"fall\" + 0.002*\"debt\" + 0.002*\"air\"\n", "06:19:19 INFO:topic #139 (0.007): 0.024*\"colombia\" + 0.021*\"drug\" + 0.008*\"guerrilla\" + 0.008*\"colombian\" + 0.007*\"police\" + 0.006*\"extradition\" + 0.005*\"late\" + 0.005*\"anti\" + 0.005*\"congress\" + 0.005*\"contract\"\n", "06:19:19 INFO:topic #15 (0.007): 0.005*\"china\" + 0.003*\"network\" + 0.002*\"drug\" + 0.002*\"trade\" + 0.002*\"united\" + 0.002*\"states\" + 0.002*\"boeing\" + 0.002*\"chinese\" + 0.002*\"beijing\" + 0.002*\"product\"\n", "06:19:19 INFO:topic #2 (0.007): 0.004*\"bre_x\" + 0.004*\"x\" + 0.003*\"bid\" + 0.003*\"bre\" + 0.003*\"product\" + 0.003*\"Bre-X\" + 0.003*\"drug\" + 0.003*\"gold\" + 0.002*\"mining\" + 0.002*\"pound\"\n", "06:19:19 INFO:topic #116 (0.007): 0.007*\"china\" + 0.006*\"bank\" + 0.004*\"tonne\" + 0.004*\"problem\" + 0.004*\"hong_kong\" + 0.003*\"trader\" + 0.003*\"chinese\" + 0.003*\"loan\" + 0.003*\"kong\" + 0.003*\"hong\"\n", "06:19:19 INFO:topic diff=11.411593, rho=0.577350\n", "06:19:19 INFO:PROGRESS: pass 2, at document #2500/2500\n", "06:19:19 DEBUG:performing inference on a chunk of 2500 documents\n", "06:19:26 DEBUG:2499/2500 documents converged within 50 iterations\n", "06:19:26 DEBUG:updating topics\n", "06:19:26 INFO:topic #116 (0.007): 0.005*\"china\" + 0.005*\"bank\" + 0.003*\"tonne\" + 0.003*\"problem\" + 0.003*\"hong_kong\" + 0.002*\"trader\" + 0.002*\"chinese\" + 0.002*\"loan\" + 0.002*\"kong\" + 0.002*\"hong\"\n", "06:19:26 INFO:topic #79 (0.007): 0.030*\"china\" + 0.020*\"beijing\" + 0.014*\"chinese\" + 0.009*\"taiwan\" + 0.008*\"trade\" + 0.008*\"wang\" + 0.007*\"foreign\" + 0.006*\"united\" + 0.006*\"washington\" + 0.006*\"states\"\n", "06:19:26 INFO:topic #58 (0.007): 0.006*\"pound\" + 0.004*\"million_pound\" + 0.003*\"hong_kong\" + 0.002*\"hong\" + 0.002*\"kong\" + 0.002*\"pay\" + 0.002*\"china\" + 0.002*\"Hong Kong\" + 0.002*\"shareholder\" + 0.002*\"service\"\n", "06:19:26 INFO:topic #19 (0.007): 0.036*\"bre\" + 0.035*\"x\" + 0.033*\"bre_x\" + 0.031*\"gold\" + 0.026*\"Bre-X\" + 0.019*\"barrick\" + 0.015*\"busang\" + 0.013*\"indonesian\" + 0.011*\"mining\" + 0.009*\"deposit\"\n", "06:19:26 INFO:topic #112 (0.007): 0.005*\"bank\" + 0.003*\"russia\" + 0.002*\"x\" + 0.002*\"diamond\" + 0.002*\"bre\" + 0.002*\"bre_x\" + 0.002*\"canada\" + 0.002*\"export\" + 0.002*\"canadian\" + 0.002*\"Bre-X\"\n", "06:19:26 INFO:topic diff=9.522079, rho=0.500000\n", "06:19:26 INFO:PROGRESS: pass 3, at document #2500/2500\n", "06:19:26 DEBUG:performing inference on a chunk of 2500 documents\n", "06:19:32 DEBUG:2500/2500 documents converged within 50 iterations\n", "06:19:32 DEBUG:updating topics\n", "06:19:33 INFO:topic #38 (0.007): 0.003*\"block\" + 0.002*\"quarter\" + 0.002*\"service\" + 0.002*\"compuserve\" + 0.002*\"china\" + 0.002*\"pound\" + 0.002*\"loss\" + 0.001*\"chinese\" + 0.001*\"time_warner\" + 0.001*\"cent\"\n", "06:19:33 INFO:topic #148 (0.007): 0.018*\"franc\" + 0.015*\"french\" + 0.014*\"airbus\" + 0.014*\"france\" + 0.013*\"thomson\" + 0.009*\"air\" + 0.009*\"billion_franc\" + 0.007*\"boeing\" + 0.007*\"state\" + 0.007*\"air_france\"\n", "06:19:33 INFO:topic #9 (0.007): 0.023*\"shanghai\" + 0.021*\"china\" + 0.018*\"bank\" + 0.014*\"b\" + 0.014*\"foreign\" + 0.011*\"investor\" + 0.011*\"exchange\" + 0.011*\"b_share\" + 0.010*\"beijing\" + 0.010*\"shenzhen\"\n", "06:19:33 INFO:topic #11 (0.007): 0.013*\"tobacco\" + 0.010*\"florida\" + 0.009*\"quick\" + 0.008*\"state\" + 0.007*\"car\" + 0.007*\"amp\" + 0.007*\"trial\" + 0.006*\"cigarette\" + 0.006*\"television\" + 0.006*\"maker\"\n", "06:19:33 INFO:topic #116 (0.007): 0.004*\"china\" + 0.003*\"bank\" + 0.002*\"tonne\" + 0.002*\"problem\" + 0.002*\"hong_kong\" + 0.002*\"trader\" + 0.002*\"chinese\" + 0.002*\"loan\" + 0.001*\"kong\" + 0.001*\"hong\"\n", "06:19:33 INFO:topic diff=7.935955, rho=0.447214\n", "06:19:33 INFO:PROGRESS: pass 4, at document #2500/2500\n", "06:19:33 DEBUG:performing inference on a chunk of 2500 documents\n", "06:19:39 DEBUG:2500/2500 documents converged within 50 iterations\n", "06:19:39 DEBUG:updating topics\n", "06:19:39 INFO:topic #118 (0.007): 0.003*\"tonne\" + 0.002*\"cocoa\" + 0.002*\"exporter\" + 0.001*\"chad\" + 0.001*\"bank\" + 0.001*\"coast\" + 0.001*\"ivory\" + 0.001*\"crop\" + 0.001*\"ivory_coast\" + 0.001*\"cable\"\n", "06:19:39 INFO:topic #134 (0.007): 0.038*\"bank\" + 0.020*\"canada\" + 0.017*\"canadian\" + 0.011*\"toronto\" + 0.009*\"fund\" + 0.008*\"cent\" + 0.007*\"molson\" + 0.006*\"earning\" + 0.005*\"royal_bank\" + 0.005*\"royal\"\n", "06:19:39 INFO:topic #7 (0.007): 0.002*\"soybean\" + 0.002*\"china\" + 0.002*\"monsanto\" + 0.002*\"director\" + 0.002*\"adm\" + 0.002*\"hong\" + 0.002*\"crop\" + 0.001*\"hong_kong\" + 0.001*\"united\" + 0.001*\"equipment\"\n", "06:19:39 INFO:topic #93 (0.007): 0.005*\"earning\" + 0.005*\"point\" + 0.004*\"quarter\" + 0.004*\"investor\" + 0.004*\"fund\" + 0.004*\"growth\" + 0.003*\"exchange\" + 0.003*\"investment\" + 0.003*\"strong\" + 0.003*\"trade\"\n", "06:19:39 INFO:topic #26 (0.007): 0.012*\"bank\" + 0.010*\"yen\" + 0.008*\"billion_yen\" + 0.005*\"financial\" + 0.005*\"affiliate\" + 0.004*\"daiwa\" + 0.004*\"non\" + 0.004*\"non_bank\" + 0.004*\"half\" + 0.004*\"post\"\n", "06:19:39 INFO:topic diff=6.627219, rho=0.408248\n", "06:19:39 INFO:PROGRESS: pass 5, at document #2500/2500\n", "06:19:39 DEBUG:performing inference on a chunk of 2500 documents\n", "06:19:45 DEBUG:2500/2500 documents converged within 50 iterations\n", "06:19:45 DEBUG:updating topics\n", "06:19:46 INFO:topic #16 (0.007): 0.030*\"toronto\" + 0.020*\"index\" + 0.019*\"bank\" + 0.018*\"canada\" + 0.016*\"point\" + 0.015*\"gold\" + 0.012*\"canadian\" + 0.011*\"toronto_stock\" + 0.011*\"fall\" + 0.010*\"gain\"\n", "06:19:46 INFO:topic #114 (0.007): 0.010*\"bank\" + 0.005*\"japan\" + 0.005*\"pound\" + 0.004*\"problem\" + 0.004*\"loan\" + 0.003*\"financial\" + 0.003*\"yen\" + 0.003*\"bt\" + 0.003*\"million_pound\" + 0.003*\"japanese\"\n", "06:19:46 INFO:topic #52 (0.007): 0.019*\"bank\" + 0.017*\"airbus\" + 0.008*\"canada\" + 0.006*\"fund\" + 0.006*\"canadian\" + 0.006*\"service\" + 0.005*\"boeing\" + 0.004*\"aircraft\" + 0.004*\"aerospace\" + 0.004*\"office\"\n", "06:19:46 INFO:topic #146 (0.007): 0.007*\"china\" + 0.005*\"party\" + 0.004*\"pound\" + 0.003*\"british\" + 0.003*\"plc\" + 0.003*\"stg\" + 0.003*\"drug\" + 0.002*\"million_pound\" + 0.002*\"country\" + 0.002*\"technology\"\n", "06:19:46 INFO:topic #47 (0.007): 0.009*\"tonne\" + 0.008*\"smelter\" + 0.007*\"oil\" + 0.007*\"aluminium\" + 0.006*\"state\" + 0.006*\"plant\" + 0.006*\"russia\" + 0.006*\"trader\" + 0.006*\"source\" + 0.005*\"metal\"\n", "06:19:46 INFO:topic diff=5.554374, rho=0.377964\n", "06:19:46 INFO:PROGRESS: pass 6, at document #2500/2500\n", "06:19:46 DEBUG:performing inference on a chunk of 2500 documents\n", "06:19:51 DEBUG:2500/2500 documents converged within 50 iterations\n" ] }, { "name": "stderr", "output_type": "stream", "text": [ "06:19:51 DEBUG:updating topics\n", "06:19:52 INFO:topic #44 (0.007): 0.007*\"internet\" + 0.004*\"committee\" + 0.003*\"proposal\" + 0.003*\"address\" + 0.003*\"trade\" + 0.003*\"china\" + 0.003*\"congress\" + 0.002*\"member\" + 0.002*\"financial\" + 0.002*\"name\"\n", "06:19:52 INFO:topic #131 (0.007): 0.009*\"bank\" + 0.008*\"internet\" + 0.007*\"court\" + 0.005*\"exchange\" + 0.004*\"foreign\" + 0.004*\"currency\" + 0.004*\"trading\" + 0.004*\"policy\" + 0.003*\"law\" + 0.003*\"security\"\n", "06:19:52 INFO:topic #112 (0.007): 0.001*\"bank\" + 0.001*\"russia\" + 0.001*\"x\" + 0.001*\"diamond\" + 0.001*\"bre\" + 0.001*\"bre_x\" + 0.001*\"canada\" + 0.001*\"export\" + 0.001*\"canadian\" + 0.001*\"Bre-X\"\n", "06:19:52 INFO:topic #49 (0.007): 0.008*\"bid\" + 0.008*\"penny\" + 0.005*\"pound\" + 0.004*\"northern\" + 0.004*\"electric\" + 0.003*\"midlands\" + 0.003*\"offer\" + 0.003*\"sector\" + 0.003*\"electricity\" + 0.003*\"east\"\n", "06:19:52 INFO:topic #61 (0.007): 0.008*\"china\" + 0.008*\"tibet\" + 0.005*\"chinese\" + 0.005*\"beijing\" + 0.005*\"foreign\" + 0.004*\"wang\" + 0.004*\"hong_kong\" + 0.004*\"kong\" + 0.003*\"hong\" + 0.003*\"region\"\n", "06:19:52 INFO:topic diff=4.666072, rho=0.353553\n", "06:19:52 INFO:PROGRESS: pass 7, at document #2500/2500\n", "06:19:52 DEBUG:performing inference on a chunk of 2500 documents\n", "06:19:58 DEBUG:2500/2500 documents converged within 50 iterations\n", "06:19:58 DEBUG:updating topics\n", "06:19:58 INFO:topic #8 (0.007): 0.001*\"french\" + 0.001*\"bank\" + 0.001*\"service\" + 0.001*\"financial\" + 0.001*\"internet\" + 0.001*\"china\" + 0.000*\"mfs\" + 0.000*\"sell\" + 0.000*\"state\" + 0.000*\"product\"\n", "06:19:58 INFO:topic #45 (0.007): 0.001*\"property\" + 0.000*\"china\" + 0.000*\"holding\" + 0.000*\"survey\" + 0.000*\"sector\" + 0.000*\"bank\" + 0.000*\"gold\" + 0.000*\"fall\" + 0.000*\"debt\" + 0.000*\"air\"\n", "06:19:58 INFO:topic #22 (0.007): 0.016*\"pound\" + 0.012*\"drug\" + 0.011*\"plc\" + 0.011*\"british\" + 0.011*\"million_pound\" + 0.008*\"product\" + 0.007*\"penny\" + 0.006*\"cancer\" + 0.006*\"stg\" + 0.005*\"biotech\"\n", "06:19:58 INFO:topic #10 (0.007): 0.023*\"bank\" + 0.015*\"pound\" + 0.008*\"society\" + 0.006*\"banking\" + 0.006*\"fund\" + 0.006*\"shareholder\" + 0.005*\"investment\" + 0.005*\"eurotunnel\" + 0.005*\"lloyds\" + 0.005*\"debt\"\n", "06:19:58 INFO:topic #11 (0.007): 0.013*\"tobacco\" + 0.012*\"florida\" + 0.009*\"quick\" + 0.009*\"state\" + 0.008*\"car\" + 0.007*\"amp\" + 0.007*\"trial\" + 0.007*\"television\" + 0.006*\"news\" + 0.006*\"maker\"\n", "06:19:58 INFO:topic diff=3.925478, rho=0.333333\n", "06:19:58 INFO:PROGRESS: pass 8, at document #2500/2500\n", "06:19:58 DEBUG:performing inference on a chunk of 2500 documents\n", "06:20:04 DEBUG:2500/2500 documents converged within 50 iterations\n", "06:20:04 DEBUG:updating topics\n", "06:20:04 INFO:topic #9 (0.007): 0.024*\"shanghai\" + 0.022*\"china\" + 0.018*\"bank\" + 0.014*\"b\" + 0.014*\"foreign\" + 0.011*\"investor\" + 0.011*\"exchange\" + 0.011*\"b_share\" + 0.010*\"beijing\" + 0.010*\"shenzhen\"\n", "06:20:04 INFO:topic #42 (0.007): 0.001*\"news\" + 0.000*\"china\" + 0.000*\"corp\" + 0.000*\"net\" + 0.000*\"property\" + 0.000*\"news_corp\" + 0.000*\"value\" + 0.000*\"shareholder\" + 0.000*\"bre_x\" + 0.000*\"x\"\n", "06:20:04 INFO:topic #131 (0.007): 0.006*\"bank\" + 0.005*\"internet\" + 0.004*\"court\" + 0.003*\"exchange\" + 0.003*\"foreign\" + 0.003*\"currency\" + 0.002*\"trading\" + 0.002*\"policy\" + 0.002*\"law\" + 0.002*\"security\"\n", "06:20:04 INFO:topic #99 (0.007): 0.011*\"mci\" + 0.007*\"digital\" + 0.007*\"camera\" + 0.006*\"rockwell\" + 0.005*\"technology\" + 0.005*\"kong\" + 0.005*\"hand\" + 0.005*\"hong_kong\" + 0.005*\"system\" + 0.004*\"trade\"\n", "06:20:04 INFO:topic #5 (0.007): 0.018*\"bt\" + 0.013*\"telecom\" + 0.011*\"pound\" + 0.010*\"british\" + 0.008*\"mci\" + 0.007*\"service\" + 0.006*\"merger\" + 0.005*\"penny\" + 0.005*\"britain\" + 0.005*\"ntt\"\n", "06:20:04 INFO:topic diff=3.304076, rho=0.316228\n", "06:20:04 INFO:PROGRESS: pass 9, at document #2500/2500\n", "06:20:04 DEBUG:performing inference on a chunk of 2500 documents\n", "06:20:10 DEBUG:2500/2500 documents converged within 50 iterations\n", "06:20:10 DEBUG:updating topics\n", "06:20:10 INFO:topic #108 (0.007): 0.005*\"gm\" + 0.004*\"computer\" + 0.004*\"quarter\" + 0.004*\"ibm\" + 0.004*\"car\" + 0.004*\"technology\" + 0.004*\"france\" + 0.003*\"thomson\" + 0.003*\"plant\" + 0.003*\"service\"\n", "06:20:11 INFO:topic #111 (0.007): 0.008*\"computer\" + 0.006*\"software\" + 0.005*\"apple\" + 0.005*\"quarter\" + 0.004*\"microsoft\" + 0.003*\"technology\" + 0.003*\"design\" + 0.003*\"pc\" + 0.002*\"oracle\" + 0.002*\"financial\"\n", "06:20:11 INFO:topic #82 (0.007): 0.003*\"china\" + 0.002*\"shanghai\" + 0.002*\"future\" + 0.002*\"exchange\" + 0.001*\"b\" + 0.001*\"index\" + 0.001*\"authority\" + 0.001*\"investor\" + 0.001*\"trading\" + 0.001*\"foreign\"\n", "06:20:11 INFO:topic #89 (0.007): 0.016*\"internet\" + 0.015*\"computer\" + 0.014*\"technology\" + 0.010*\"quarter\" + 0.010*\"software\" + 0.009*\"product\" + 0.008*\"microsoft\" + 0.008*\"sun\" + 0.007*\"netscape\" + 0.007*\"web\"\n", "06:20:11 INFO:topic #101 (0.007): 0.001*\"china\" + 0.001*\"kong\" + 0.001*\"hong\" + 0.001*\"hong_kong\" + 0.000*\"Hong Kong\" + 0.000*\"macau\" + 0.000*\"tung\" + 0.000*\"chinese\" + 0.000*\"formula\" + 0.000*\"beijing\"\n", "06:20:11 INFO:topic diff=2.781140, rho=0.301511\n", "06:20:11 INFO:PROGRESS: pass 10, at document #2500/2500\n", "06:20:11 DEBUG:performing inference on a chunk of 2500 documents\n", "06:20:16 DEBUG:2500/2500 documents converged within 50 iterations\n", "06:20:16 DEBUG:updating topics\n", "06:20:17 INFO:topic #60 (0.007): 0.011*\"oil\" + 0.009*\"colombia\" + 0.008*\"colombian\" + 0.008*\"paramilitary\" + 0.008*\"country\" + 0.008*\"drug\" + 0.008*\"police\" + 0.007*\"attack\" + 0.007*\"force\" + 0.007*\"medellin\"\n", "06:20:17 INFO:topic #99 (0.007): 0.010*\"mci\" + 0.008*\"digital\" + 0.007*\"camera\" + 0.007*\"rockwell\" + 0.005*\"technology\" + 0.005*\"hand\" + 0.005*\"system\" + 0.005*\"agreement\" + 0.005*\"personal\" + 0.005*\"trade\"\n", "06:20:17 INFO:topic #109 (0.007): 0.025*\"pound\" + 0.016*\"million_pound\" + 0.012*\"life\" + 0.011*\"insurance\" + 0.011*\"scotam\" + 0.009*\"offer\" + 0.009*\"abbey\" + 0.007*\"policyholder\" + 0.007*\"british\" + 0.006*\"scottish\"\n", "06:20:17 INFO:topic #55 (0.007): 0.028*\"internet\" + 0.027*\"court\" + 0.019*\"foreign\" + 0.017*\"exchange\" + 0.017*\"currency\" + 0.014*\"case\" + 0.014*\"foreign_currency\" + 0.014*\"trading\" + 0.012*\"amendment\" + 0.012*\"address\"\n", "06:20:17 INFO:topic #9 (0.007): 0.024*\"shanghai\" + 0.022*\"china\" + 0.018*\"bank\" + 0.014*\"b\" + 0.014*\"foreign\" + 0.011*\"investor\" + 0.011*\"exchange\" + 0.011*\"b_share\" + 0.010*\"beijing\" + 0.010*\"shenzhen\"\n", "06:20:17 INFO:topic diff=2.340896, rho=0.288675\n", "06:20:17 INFO:PROGRESS: pass 11, at document #2500/2500\n", "06:20:17 DEBUG:performing inference on a chunk of 2500 documents\n", "06:20:22 DEBUG:2500/2500 documents converged within 50 iterations\n", "06:20:22 DEBUG:updating topics\n", "06:20:23 INFO:topic #20 (0.007): 0.000*\"china\" + 0.000*\"de\" + 0.000*\"russia\" + 0.000*\"chinese\" + 0.000*\"beijing\" + 0.000*\"diamond\" + 0.000*\"kong\" + 0.000*\"export\" + 0.000*\"oil\" + 0.000*\"service\"\n", "06:20:23 INFO:topic #7 (0.007): 0.000*\"soybean\" + 0.000*\"china\" + 0.000*\"monsanto\" + 0.000*\"director\" + 0.000*\"adm\" + 0.000*\"hong\" + 0.000*\"crop\" + 0.000*\"hong_kong\" + 0.000*\"united\" + 0.000*\"equipment\"\n", "06:20:23 INFO:topic #24 (0.007): 0.024*\"czech\" + 0.011*\"crown\" + 0.011*\"bank\" + 0.010*\"prague\" + 0.010*\"klaus\" + 0.008*\"party\" + 0.006*\"havel\" + 0.006*\"foreign\" + 0.006*\"country\" + 0.006*\"election\"\n", "06:20:23 INFO:topic #80 (0.007): 0.025*\"king\" + 0.021*\"silver\" + 0.013*\"network\" + 0.012*\"station\" + 0.012*\"shopping\" + 0.012*\"home_shopping\" + 0.012*\"television\" + 0.009*\"latin\" + 0.009*\"news\" + 0.009*\"home\"\n", "06:20:23 INFO:topic #82 (0.007): 0.001*\"china\" + 0.001*\"shanghai\" + 0.001*\"future\" + 0.001*\"exchange\" + 0.001*\"b\" + 0.001*\"index\" + 0.001*\"authority\" + 0.001*\"investor\" + 0.001*\"trading\" + 0.001*\"foreign\"\n", "06:20:23 INFO:topic diff=1.970765, rho=0.277350\n", "06:20:23 INFO:PROGRESS: pass 12, at document #2500/2500\n", "06:20:23 DEBUG:performing inference on a chunk of 2500 documents\n", "06:20:29 DEBUG:2500/2500 documents converged within 50 iterations\n", "06:20:29 DEBUG:updating topics\n", "06:20:30 INFO:topic #123 (0.007): 0.021*\"china\" + 0.013*\"wang\" + 0.011*\"beijing\" + 0.010*\"chinese\" + 0.007*\"tibet\" + 0.006*\"dissident\" + 0.006*\"state\" + 0.006*\"party\" + 0.005*\"communist\" + 0.005*\"court\"\n", "06:20:30 INFO:topic #86 (0.007): 0.015*\"internet\" + 0.014*\"computer\" + 0.014*\"ibm\" + 0.012*\"quarter\" + 0.011*\"service\" + 0.009*\"pc\" + 0.008*\"software\" + 0.007*\"system\" + 0.007*\"consumer\" + 0.006*\"network\"\n", "06:20:30 INFO:topic #50 (0.007): 0.034*\"hong_kong\" + 0.033*\"kong\" + 0.033*\"hong\" + 0.029*\"china\" + 0.021*\"Hong Kong\" + 0.018*\"tung\" + 0.013*\"beijing\" + 0.012*\"chinese\" + 0.012*\"Hong Kong's\" + 0.010*\"britain\"\n" ] }, { "name": "stderr", "output_type": "stream", "text": [ "06:20:30 INFO:topic #9 (0.007): 0.025*\"shanghai\" + 0.022*\"china\" + 0.018*\"bank\" + 0.014*\"b\" + 0.014*\"foreign\" + 0.011*\"investor\" + 0.011*\"exchange\" + 0.011*\"b_share\" + 0.010*\"beijing\" + 0.010*\"shenzhen\"\n", "06:20:30 INFO:topic #24 (0.007): 0.024*\"czech\" + 0.011*\"crown\" + 0.011*\"bank\" + 0.010*\"prague\" + 0.009*\"klaus\" + 0.008*\"party\" + 0.006*\"havel\" + 0.006*\"foreign\" + 0.006*\"country\" + 0.006*\"election\"\n", "06:20:30 INFO:topic diff=1.660230, rho=0.267261\n", "06:20:30 INFO:PROGRESS: pass 13, at document #2500/2500\n", "06:20:30 DEBUG:performing inference on a chunk of 2500 documents\n", "06:20:37 DEBUG:2500/2500 documents converged within 50 iterations\n", "06:20:37 DEBUG:updating topics\n", "06:20:38 INFO:topic #108 (0.007): 0.003*\"gm\" + 0.002*\"computer\" + 0.002*\"quarter\" + 0.002*\"ibm\" + 0.002*\"car\" + 0.002*\"technology\" + 0.002*\"france\" + 0.002*\"thomson\" + 0.002*\"plant\" + 0.002*\"service\"\n", "06:20:38 INFO:topic #116 (0.007): 0.000*\"china\" + 0.000*\"bank\" + 0.000*\"tonne\" + 0.000*\"problem\" + 0.000*\"hong_kong\" + 0.000*\"trader\" + 0.000*\"chinese\" + 0.000*\"loan\" + 0.000*\"kong\" + 0.000*\"hong\"\n", "06:20:38 INFO:topic #59 (0.007): 0.000*\"pound\" + 0.000*\"lloyds\" + 0.000*\"bank\" + 0.000*\"pension\" + 0.000*\"insurance\" + 0.000*\"amp\" + 0.000*\"bhp\" + 0.000*\"claim\" + 0.000*\"million_pound\" + 0.000*\"scottish\"\n", "06:20:38 INFO:topic #19 (0.007): 0.034*\"bre\" + 0.033*\"x\" + 0.032*\"bre_x\" + 0.031*\"gold\" + 0.025*\"Bre-X\" + 0.018*\"barrick\" + 0.015*\"busang\" + 0.013*\"indonesian\" + 0.011*\"mining\" + 0.008*\"exploration\"\n", "06:20:38 INFO:topic #112 (0.007): 0.000*\"bank\" + 0.000*\"russia\" + 0.000*\"x\" + 0.000*\"diamond\" + 0.000*\"bre\" + 0.000*\"bre_x\" + 0.000*\"canada\" + 0.000*\"export\" + 0.000*\"canadian\" + 0.000*\"Bre-X\"\n", "06:20:38 INFO:topic diff=1.400248, rho=0.258199\n", "06:20:38 INFO:PROGRESS: pass 14, at document #2500/2500\n", "06:20:38 DEBUG:performing inference on a chunk of 2500 documents\n", "06:20:47 DEBUG:2500/2500 documents converged within 50 iterations\n", "06:20:47 DEBUG:updating topics\n", "06:20:47 INFO:topic #43 (0.007): 0.001*\"czech\" + 0.001*\"party\" + 0.001*\"klaus\" + 0.001*\"coalition\" + 0.001*\"election\" + 0.001*\"havel\" + 0.000*\"house\" + 0.000*\"crown\" + 0.000*\"prague\" + 0.000*\"parliament\"\n", "06:20:47 INFO:topic #49 (0.007): 0.001*\"bid\" + 0.001*\"penny\" + 0.001*\"pound\" + 0.001*\"northern\" + 0.001*\"electric\" + 0.000*\"midlands\" + 0.000*\"offer\" + 0.000*\"sector\" + 0.000*\"electricity\" + 0.000*\"east\"\n", "06:20:47 INFO:topic #122 (0.007): 0.000*\"wang\" + 0.000*\"china\" + 0.000*\"beijing\" + 0.000*\"law\" + 0.000*\"trial\" + 0.000*\"death\" + 0.000*\"dissident\" + 0.000*\"pound\" + 0.000*\"hong\" + 0.000*\"sentence\"\n", "06:20:47 INFO:topic #132 (0.007): 0.001*\"bank\" + 0.000*\"crown\" + 0.000*\"klaus\" + 0.000*\"czech\" + 0.000*\"social\" + 0.000*\"banka\" + 0.000*\"party\" + 0.000*\"minister\" + 0.000*\"state\" + 0.000*\"billion_crown\"\n", "06:20:47 INFO:topic #16 (0.007): 0.030*\"toronto\" + 0.020*\"index\" + 0.019*\"bank\" + 0.019*\"canada\" + 0.017*\"gold\" + 0.016*\"point\" + 0.012*\"canadian\" + 0.011*\"toronto_stock\" + 0.011*\"fall\" + 0.010*\"gain\"\n", "06:20:47 INFO:topic diff=1.182972, rho=0.250000\n", "06:20:47 DEBUG:Setting topics to those of the model: AuthorTopicModel(num_terms=6215, num_topics=150, num_authors=50, decay=0.5, chunksize=2500)\n", "06:20:47 INFO:CorpusAccumulator accumulated stats from 1000 documents\n", "06:20:48 INFO:CorpusAccumulator accumulated stats from 2000 documents\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ "-2.83261288295\n" ] } ], "source": [ "atmodel_150topics_25_10 = train_model(train_corpus_25_10, train_author2doc, train_dictionary_25_10, num_topics=150, eval_every=0, iterations=50, passes=15)" ] }, { "cell_type": "code", "execution_count": 35, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Precision@k: top_n=1\n", "Prediction accuracy: 0.6176\n", "Precision@k: top_n=2\n", "Prediction accuracy: 0.7712\n", "Precision@k: top_n=3\n", "Prediction accuracy: 0.8268\n", "Precision@k: top_n=4\n", "Prediction accuracy: 0.8656\n", "Precision@k: top_n=5\n", "Prediction accuracy: 0.8916\n", "Precision@k: top_n=6\n", "Prediction accuracy: 0.9112\n", "Precision@k: top_n=8\n", "Prediction accuracy: 0.9308\n", "Precision@k: top_n=10\n", "Prediction accuracy: 0.9408\n" ] }, { "data": { "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYgAAAEWCAYAAAB8LwAVAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uIDIuMS4yLCBo\ndHRwOi8vbWF0cGxvdGxpYi5vcmcvNQv5yAAAIABJREFUeJzs3Xd4FNX6wPHv2VRIQqhSAhKK0lKA\nIOVSpSgCYkcQRUFAEVHxil1QUPFaQFQUAS9N/GG5UuQKKNwgoKIQRAQsdCSETnrPvr8/ZrMkpC2Q\nZEPyfp5nn92ZnZlzZrOZd2fOmfcYEUEppZQ6n83dFVBKKVU2aYBQSimVLw0QSiml8qUBQimlVL40\nQCillMqXBgillFL50gChVBGMMbuMMT2KWOZKY0yiMcajlKrlMmPMQWNMb3fXQ11+NECoy5bjwJfi\nODAfN8bMN8b4F3c5ItJKRNYXscxhEfEXkaziLr8wxpgXjTEfl2aZquLQAKEudzeKiD/QFmgHPH/+\nAsai33WlLpD+06hyQUSigVVACIAxZr0x5hVjzPdAMtDYGBNojPnIGBNjjIk2xryc85KQMWaUMeZ3\nY0yCMWa3MaatY77zEo0xpr0xZqsxJt5x1jLNMT/YGCPGGE/HdD1jzApjzBljzF5jzKgc5bxojPnM\nGLPQUdYuY0y7gvbNGDPDGPO3o8woY0xXx/y+wLPAnY6zqF+L+pyMMS2MMQeMMUMu9DNWFY8GCFUu\nGGMaAP2AX3LMvgcYDQQAh4D5QCbQFGgDXAeMdKx/B/AiMAyoAgwETudT1AxghohUAZoAnxVQpSXA\nEaAecDvwqjGmZ473BzqWqQqsAN4rZPe2AK2B6sAnwOfGGF8RWQ28CnzquLwVXsg2cAS8NcA4Efm/\nwpZVCjRAqMvfMmNMLLAJ+A7rgJltvojsEpFMrINrP+AxEUkSkRPAdGCwY9mRwOsiskUse0XkUD7l\nZQBNjTE1RSRRRDafv4AjWHUGnhKRVBHZDszFCj7ZNonI1442i0VAgQd3EflYRE6LSKaIvAX4AM1c\n+XBy6IoViIaJyMoLXFdVUBog1OXuZhGpKiINReQhEUnJ8d7fOV43BLyAGGNMrCOofAhc4Xi/AbDP\nhfLuB64G/jDGbDHGDMhnmXrAGRFJyDHvEBCUY/pYjtfJgG/25anzGWOecFz6inPUOxCo6UJdc3oQ\n+KGoxnalctIAocqznKmK/wbSgJqOgFJVRKqISKsc7zcpcoMie0RkCFZg+RfwhTHG77zFjgLVjTEB\nOeZdCURf6A442hueBAYB1USkKhAHmOwqubipB4ErjTHTL7QOquLSAKEqBBGJAb4B3jLGVDHG2Iwx\nTYwx3R2LzAWeMMZEOHo9NTXGNDx/O8aYu40xtUTEDsQ6ZtvPK+tv4AdgqjHG1xgThnXmcTHdUQOw\n2k1OAp7GmIlYbSTZjgPBLvTSSgD6At2MMa9dRD1UBaQBQlUkwwBvYDdwFvgCqAsgIp8Dr2A1AicA\ny7DaLc7XF9hljEnEarAefN5lrWxDgGCss4mlwCQRWXsRdV4DrAb+wrpMlUruS2efO55PG2O2FbYh\nEYkF+gA3GGOmXERdVAVjdMAgpZRS+dEzCKWUUvkqsQBhjPm3MeaEMWZnjnnVjTHfGmP2OJ6rOeYb\nY8w7jhuKdmTfoKSUUsp9SvIMYj7W9dqcngbWichVwDrHNMANwFWOx2jggxKsl1JKKReUWIAQkQ3A\nmfNm3wQscLxeANycY/5Cxw1Km4Gqxpi6JVU3pZRSRcv3xpwSVNvR3RCsG4VqO14HkbtnxhHHvBjO\nY4wZjXWWQaVKlSIaNGhQcrUthN1ux2Yr/SacilauO8uuiPvsThVtn925v3/99dcpEalV5IIiUmIP\nrG5+O3NMx573/lnH80qgS47564B2RW0/IiJC3CUyMlLLLedlV8R9dqeKts/u3F9gq7hwDC/t8HU8\n+9KR4/mEY340VqqDbPW5iLtOlVJKFZ/SDhArgHsdr+8FlueYP8zRm6kjECfnLkUppZRygxJrgzDG\n/B/QA6hpjDkCTAJeAz4zxtyPdVfoIMfiX2Nl2tyLlbhseEnVSymllGtKLECIldAsP73yWVaAsSVV\nF6WUUheu4nQZUEopdUE0QCillMqXBgillFL50gChlFIqXxoglFJK5UsDhFJKqXxpgFBKKZUvDRBK\nKaXypQFCKaVK047PYHoI3dffDNNDrOkyqrTTfSulVMW14zP46hHISMEAxP1tTQOEDSpsTbfQAKGU\nUsUoNSOL2OQMzianE5ucQVxKOmeTM4hNzuCuH14gMCMl9woZKbBusgYIpZS6XBR2oI9NSScu13vn\nXqdl2gvc5gM+x7FOHc4Td6TkduQSaIBQSrnXjs9g3WS6xx2BX+pDr4nF+mu6JA70XjYb/t5e+Hl6\n42vzwpvK1JFAgry8AS8k1Rt7ihcZSV6kJXqTGudF8llvYnrUJ8j/77wbDKxfbPtbnDRAKKXc5wKu\nyZfEgd4DGz7GCy/xwiPTG5NRGUkLpFKqN15JXqQnepMS50VKrBeJZ7zJTPbCnuKNZNrI/1TAUrky\nBATkfgTVgS/jJ/KQ74N4eGadW1g8rKBYBmmAUEqVuvRMO6eT0qjxzYt453NN/tTy5xjxvwbEpmQQ\nn5pOUkYGGfaCD/TGbsNkeEG6dQDPTK5MemIgGUnWL3l7qjf2VC+yUqz37ale2FO9kAwPwODllfeA\n7nzUKfi9KlXyzvP3Bw+PAioa0xX6p0E3GwQaiBPYmAljuhXbZ1ucNEAopYqF3S7EpmRwMiHNeiSm\ncjIhjePxaRw5mUbM2TROJqYRm5pGij0DgP0+0fn+EK+eeZKffwZ7amXsqYFkpeQ90Psabyp7euHv\n7UUVPw+qBJhzB+pqEHBlIQf98w7yPj6l9CFNmQK7MuGX9HPzvL2t+TNnllIlXKcBQilVqKS0TMcB\nP+3cwT8hjRPxaUSfSeNYbBqnk9KIT0/DjuRZ355hIyvJh6wkH+yJfmQlVScryZdKxoeYLvUI8j2a\nt0yP+rzVv1OBB3U/P7Bdjndx/fgjpKfnnpeeDj/84J76FEEDhFIVUEaWndOJ6bl+6TsP/AlpHD1j\nBYAzKWmkZWXlWV/sYE/2ITPRB3uSD1lJAc4gUNnmQ43KPtQO9KF+TR8a1PGkXmNDvXpQrx7UrQt1\n6lg/nNkwHtY8AV45TiMyhIC+jzK0a+l9HqXml1+cL9evX0+PHj3cVxcXaIBQqiy5hB49IkJsckae\nX/rZ0yfirV/7JxPTiE9Lz38baZ5kJvqQlehDVlJV50E/K8kHfw8favr7ULeaD/VreRNUz1C3Bfkf\n+F21ZDv8mAHdPc9dk/8uE2K3Q3kMEJcZDRBKlRUF9OhJz7RzrOHAfH/pZz8fj0vjTHIamfa8l3jI\nsiEpPqTH+5CVWJmspGrWQT/ROvAHePlwRYAP9Wr4EFTHwzrYt77EA7+rfvwRtqfC9vPfKJuXXCoa\nDRBKuVlyeib7TybReNVEKufTo+fEsufolh6Qe76ASbcu76TF+ZCZGJDr135Wog9VvH2oE+hDvSs8\nqVfXUO9K62BfKgd+V11ml1wqGg0QSpUCEeF4fBr7Tiay72Qi+08mWa9PJHI0LhWA/T4x+fboqWdO\nc+q/Yc6Df1UfH+pU9yaors064F9VBg/8qlxwS4AwxjwKjML6d5gjIm8bY6oDnwLBwEFgkIicdUf9\nlLpYqRlZHDydxL4TSex3BIN9J63XSennGnu9jQeVMv1JO1mDhP1+pJ7w5+9+QTSsEp13m971WTe3\ngR74Vakr9QBhjAnBCg7tgXRgtTFmJTAaWCcirxljngaeBp4q7fopVVRDsYhwKjHdEQCScp0V/H02\nGcnRDFCrciUC8KNmQgNsB/049Js/ycf9yUr0ISDAEBEBA9pDRAT4ej6GbH8Cc16Pnsq9HqVDh1Lc\nf6Uc3HEG0QL4SUSSAYwx3wG3AjcBPRzLLADWowFClbZ8Goqzlo9j3e/H+cbWzXlZKD4107mKr5eN\nRjX8udI/kGCCiD/iz+Fdfvz+kx+Hkqx/sYAAKwhcf7P1HBEBTZue15f/Ie3Ro8oWI5JPr4eSLNCY\nFsByoBOQAqwDtgL3iEhVxzIGOJs9fd76o7HONqhdu3bEkiVLSqvquSQmJuLv76/llpOyUzOFwwl2\n7tg5mmpZp/K8f8RekwHmXer6GWpXtuGdWomU4/6c2l+NA7urs39fABkZ1tHezy+Tq65K4OqrE7n6\n6gSuvjqBoKCUIm/sihg1ioC9e/PMT2jalKg5c4plP8syd37H3MGd+3vttddGiUi7opYr9QABYIy5\nH3gISAJ2AWnAfTkDgjHmrIhUK2w77dq1k61bt5ZoXQvirh4XFa3ckig7LiWDXUfj2BUdz86jceyM\njmP/qSREYL/PXdjyaSgWDGNPxBIVBb/+Cmlp1vwqVaBt23NnBfmeGVyEitijp6Ltszv31xjjUoBw\nSyO1iHwEfARgjHkVOAIcN8bUFZEYY0xd4IQ76qbKl9OJaew6ei4Q7IyO5/CZZOf79QJ9aRUUyMDw\nIELrV8G+sj62xLy5+Q/F1mfxYisYPPxw8QYDpcoqd/ViukJEThhjrsRqf+gINALuBV5zPC93R93U\n5etEfCq/OYLAzqNx7IqOc3YhBbiyemVCgqowuH0DQuoF0qpeFQJ9fdi6FdauhclroUHsJP7d70G8\nvM/1OLJneeBzw0TOTtNgoCoWd90H8R9jTA0gAxgrIrHGmNeAzxyXnw4BZW/8PVW6CuhNJCJEx6aw\nMzqeXdlnBkfjOZlgXfcxBhrX9OOaRtWtQBBUhVZ1Awms7IUI/PEHrF0D09ZBZCTEx1vrtGkDzTp3\nxWNVGnQ/l47ZtjGTumO7gQYHVcG46xJTnj4ZInIa6OWG6qiyKJ/eRBnLxjFn/V7mxLbjbLKVLtrD\nZrjqCn+6XVWLkKAqhAQF0qJuFfx9zn21jx6FFf+xzhLWrrWmARo3hsGDoXdvuPZaqFkTeGgK7M6E\n7ZdHOmalSpLeSa3KHBEhfc2L+JyXdsLLnsrtsf/mcKsBtAoKJDQokOZ1AvD1yj06S3w8fPXNuYCw\ne7c1v2ZN6NnTCgi9elkBIo/LLB2zUiVJA4QqM/48lsDy7dGs+PUoG5LzH0jmCvspXrstLNe89HT4\n6adzAeGnnyArCypVgm7dYPhwKyiEhbnQhqC5gZRy0gCh3OrvM8l8teMoK7Yf5Y9jCXjYDJ2b1iTl\nZF38UmLyrhBYHxHYufNcQPjuO0hKsg7+11wDTz9tBYROnUpxpDClyiENEKrUnU5M4+vfYli+/Shb\nD1npttpeWZWXBraiX2hdagX4wI7JzjaIbBmmEh/+MZEpdeCEoxN0s2Zw331WQOjRA6rmubVSKXWx\nNECoUpGYlsk3u46x4tejbNxziiy7cHVtfyZc34yB4fVoUL1y7hXCBvH3zljq//wEJhDscfDIuiks\nOzWI666z2hB69YIGDdyzP0pVBBogVIlJy8ziuz9PsvzXo6z7/TipGXaCqlZidLfG3NS6Hs3rVMmz\nTmIifPopzJ4N9/68nRGk4Us6dg9vXr59O+//n9UlVSlV8jRAqGKVZRd+OnCaFduP8vVvMcSnZlLd\nz5tB7RowMLweba+shi2fXBZRUVZQ+OQTK0h0uyqG0Z7z8My0ehR5ZqVTY8U8OP6ClfNaKVXiNECo\nSyYi7IyOZ/n2aL7acZTj8Wn4eXtwfas6DGxdj85Na+Llkbf7UFycFRDmzLE6D1WqBHfeCaNGQadF\nUzD/tudeIStL70dQqhRpgFCFK2RshP0nE1m+/Sgrfj3KgVNJeHkYejS7gpta16NX89pU8vbIszkR\nqxvq7NnWpaTkZAgPt475d92Vo5F5rN6PoJS7aYBQBcvnbmb7ikdY/8cJph9vzW/RcRgDHRvV4IFu\njbkhpC6Blb3y3dTZs/Dxx1Zg2LkT/Pxg6FDrbKFdu3zaFfR+BKXcTgOEKti6ybm6mQLYMlO4eud0\nzBULeL5/CwaE1aNOoG++q4vApk1WUPjiC0hNtYLB7NlWiouAgNLYCaXUxdIAoQoWlzftNUCQ7TQr\nHu5S4GqnTsGCBTB3rpUYr0oVGDHCOlto3bqkKquUKm4aIFSBMvzr4ZUYnWe+CayfZ57dDuvXW2cH\nS5dazQWdOsG8eXDHHdYlJaXU5UUDhMrXut+Pszr+Fibb5lCJtHNveFWyGqodjh+H+fOtnkj79kG1\najBmDIwcCSEhpV9vpVTx0QChchER5m48wKurfqdVvb6kXdOSSpteRhKOYgLqwXUvYQ8ZxLdrrLOF\nFSsgMxO6d4eXXoLbbgPf/JsklFKXGQ0Qyik9087zy37js61H6Bdah7fuaE0l766w8HuYNYvEe3ry\nduog5g6EQ4es9NmPPWadLTRr5u7aK6WKmwYIBcCZpHQe/DiKnw+c4ZGeTXms99XWHc8xMdj/PQ+b\nCLaF83iPFwjtXYfXX4ebbtJsqUqVZxogFHuOJ3D/gq0ci09lxuDW3NQ6CIAjR+CPnlPokmbHF/D2\nyOLPwVMI/FjvZFaqItBRdiu49X+e4Nb3fyA5PYsloztyU+sgkpJg0iQrH1LnPfPw5Vw+pMAv58Gx\nY26utVKqNGiAqKBEhPnfH2DE/C3Ur16Z5Q93pnX9aixcCFdfDZMnw6ygKfh6FZAPSSlV7mmAqIAy\nsuw8v2wnL361m57Na/PFg504sLMSHTrAvfdCUJB1B/R1AT9iMjQfklIVlbZBVDCxyek8tHgbP+w7\nzYPdm3BHs2YMv8fw+edWYFi0yEqaZ7Oh+ZCUquDcEiCMMeOBkYAAvwHDgbrAEqAGEAXcIyLpBW5E\nXbD9JxO5f8FWjpxNZsqAcHb/tz6tbgEPD3jxRXjiCb3jWSl1TqkHCGNMEPAI0FJEUowxnwGDgX7A\ndBFZYoyZBdwPfFDa9Suvvt97ijEfR+FpszGkdkeeuK06J07AsGHw6qvW2YNSSuVUZBuEMSa0BMr1\nBCoZYzyBykAM0BP4wvH+AuDmEii3Qvp48yGG/ftnAjx8yfi6M1Merc5VV8HPP1tJ9TQ4KKXyY0Sk\n8AWM2Qj4APOBxSISd8mFGvMo8AqQAnwDPApsFpGmjvcbAKtEJE82H2PMaGA0QO3atSOWLFlyqdW5\nKImJifj7+5fpcrPswv/9kc7aw5n4nKnKngXtqV09kwce2E/37icvaGxnd+2vO8uuiPvsThVtn925\nv9dee22UiLQrckERKfIBXAVMBfYCnwB9XFmvgG1VA/4H1AK8gGXA3cDeHMs0AHYWta2IiAhxl8jI\nyDJdbmxyugz+YLM0fGql1Oi1SwKq2GXqVJGUlJIttySU9c+6vJXtLhVtn925v8BWceF47VIbhIjs\nMcY8D2wF3gHaGGMM8KyIfHkBgQugN3BARE4CGGO+BDoDVY0xniKSCdQH8uaZVi7ZeyyJQe9t4XR6\nMme+CWVI+yuZshhq13Z3zZRSl5MiA4QxJgyrl1F/4FvgRhHZZoypB/wIXGiAOAx0NMZUxrrE1Asr\n8EQCt2P1ZLoXWH6B21XAjP87zfQtUWRlQYNDHVixoAbh4e6ulVLqcuTKGcS7wFysswXn+JMictRx\nVnFBROQnY8wXwDYgE/gFmA38F1hijHnZMe+jC912RbZrF9z/ymFignZiUivzYvdrGPG23wW1Myil\nVE6uBIj+QIqIZAEYY2yAr4gki8iiiylURCYBk86bvR9ofzHbq8hOnoSJk4TP/vqdgHYHaOhdky+f\nb0vNQC93V00pdZlzJdXGWqBSjunKjnmqtMXE0PrRR+HYMdLT4a234KqWGXx5agsB7Q4wqE1D/jfp\nGg0OSqli4coZhK+IJGZPiEiio/1AlbYpUwj87Tf2D5/CdXtmcuhUMo3v20JGpSReGtiKezoFu7uG\nSqlyxJUAkWSMaSsi2wCMMRFYjcuqNOUYuKfO6nnU6DQe3yEHsHnY+Whoe7pcVdPdNVRKlTOuBIjH\ngM+NMUcBA9QB7izRWqk80l8ZgdeDnhAYgKT40NlzDr8E3sDce9vRpFbFublIKVV6igwQIrLFGNMc\nyB51+E8RySjZaqlcNszGq8r3GG+rycivcjpT7XPJbNMIv1o93Fs3pVS55ep4EM2AlkBbYIgxZljJ\nVUmdL3PVJIx37v6qPrZM/NZPdlONlFIVgSs3yk0CemAFiK+BG4BNwMISrZkCIDkZKnkn5/+mLal0\nK6OUqlBcOYO4Hetu52MiMhwIBwJLtFbK6cUX4VBc/fzfrNqgVOuilKpYXAkQKSJiBzKNMVWAE1jJ\n9FQJ27bNutdhsecDJIt37je9KkGvie6pmFKqQnAlQGw1xlQF5mCN9LYNKweTKkGZmTByJFzRKJmF\nvlfxaZ0JENgAwUBgA7jxHQgb5O5qKqXKsULbIBwZW6eKSCwwyxizGqgiIjtKpXYV2NtvW0NC95u6\nmwPJhr53jYPAJ/lOx4ZWSpWSQs8gHHnDv84xfVCDQ8nbvx8mToQedx1nV+xxHul1FXUDKxW9olJK\nFSNXLjFtM8ZcU+I1UQCIwAMPgKdPFmmtdtOklh8jOjdyd7WUUhWQK3dSdwCGGmMOAUlYd1OLiISV\naM0qqEWLYO1auOvV/Xwfl8zikR3w9nT1dhWllCo+rgSI60u8FgqAEydg/Hho3zOZrUl7GRBWl85N\nNceSUso9XPlpKgU8VDEbPx4SEqDhLbvwsBme79/S3VVSSlVgrpxB/BcrIBjAF2gE/Am0KsF6VTir\nVsEnn8CI54+z7sgJnu3XnDqBvu6ullKqAnMlWV9ozmljTFvgoRKrUQWUmAhjxkDzVln84beLq7z9\nGa4N00opN7vg1k/HuBAdSqAuFdbEiXDoEPQdv4/o2BQm3xSCl4c2TCul3MuVZH2P55i0YWV0PVpi\nNapgtmyBGTNg2ENJ/PfAPm5qXY9OTWq4u1pKKeVSG0RAjteZWG0S/ymZ6lQsGRlWOo06dYSs8F14\nR9t4tl8Ld1dLKaUA19ogXiqNilREb70FO3bA5I+O89FfJ3m+fwtqV9GGaaVU2VDkhW5jzLeOZH3Z\n09WMMWsutkBjTDNjzPYcj3hjzGPGmOqOsvY4nqtdbBmXgz17rFTeN9+WxeoTu2lWO4B7/xHs7mop\npZSTKy2htRzJ+gAQkbPAFRdboIj8KSKtRaQ1EAEkA0uBp4F1InIVsM4xXS5lp9Pw9YXwIXsdDdOt\ntGFaKVWmuHJEyjLGXJk9YYxpSPHdKNcL2Ccih4CbgAWO+QuAm4upjDJn3jyIjISnX0nik237uaVN\nEB0aa8O0UqpscaWR+jlgkzHmO6yb5boCo4up/MHA/zle1xaRGMfrY0DtYiqjTDl2DP75T+jSVdjt\nuwsfTxvP9Gvu7moppVQexsroXcRCxtQEOjomN4vIqUsu2BhvrO6yrUTkuDEmVkRytnWcFZE87RDG\nmNE4AlTt2rUjlixZcqlVuSiJiYn4+/tf8HovvdSS77+vyePTNrHkSAJ3NffmumCvEi/3UrmrXHeW\nXRH32Z0q2j67c3+vvfbaKBFpV+SCIlLoA7gFCMwxXRW4uaj1XNjuTcA3Oab/BOo6XtcF/ixqGxER\nEeIukZGRF7zOV1+JgMjEyRnS6dW1cv307yQjM6vEyy0O7irXnWVXxH12p4q2z+7cX2CruHCcdqUN\nYpKIxOUIKLHApAsIVgUZwrnLSwArgHsdr+8FlhdDGWVGQoKVTiMkBHzb7uVoXCqTbwrBUxumlVJl\nlCtHp/yWcaXtokDGGD+gD/BljtmvAX2MMXuA3o7pcuPZZyE6Gl6alsi/f9jPrW2DaN+oururpZRS\nBXLlQL/VGDMNmOmYHgtEXUqhIpIE1Dhv3mmsXk3lzo8/wsyZMPZhYenhXfh6efDMDXrHtFKqbHPl\nDGIckA586nikYQUJ5YL0dBg1CurXhx53H2PjnlM8cV0zagX4uLtqSilVKFdSbSRRjm9aK2n/+hfs\n2gVfLMvkzXW7aVm3CkM7XFn0ikop5WauZHOtBTyJNUCQM1GQiPQswXqVC3/8AS+/DHfeCXu89xIT\nl8p7d7XRhmml1GXBlSPVYuAPrJHkXgIOAltKsE7lgt0Oo0eDnx88NjGBuRv3c0dEfSIaasO0Uury\n4EqAqCEiHwEZIvKdiIwA9OyhCHPmwMaN8MYbwrs/7KKytwdP3aB3TCulLh+uBIgMx3OMMaa/MaYN\noD+DC3H0KDz5JPTsCVe0i+H7vaeZcH0zavprw7RS6vLhSjfXl40xgcA/gXeBKsD4Eq3VZW7cOKv3\n0vR3Mxm1bDet6lXhrg4N3V0tpZS6IK70YlrpeBkHXFuy1bn8LV0KX34JU6fCyoN7OB6fxgd3R+Bh\nM+6umlJKXRDtTlOM4uJg7FgID4eBdyfw700HuLNdA9peWa7HPlJKlVOXlDJD5fb003D8OCxfLkz+\neid+Pp482beZu6ullFIXRc8gismmTTBrFjz6KBz1Osrm/Wd4sm8zamjDtFLqMuXKjXI+wG1AcM7l\nRWRyyVXr8pKWZqXTaNgQnnwug4GzfiesfiCDr9E7ppVSly9XLjEtx2qgjsLKw6TO8+qr1l3Tq1bB\n3B/3cDIxjTnD2mnDtFLqsuZKgKgvIn1LvCaXqV27rB5LQ4dCo9YJjH3nIIOvuZLwBlWLXlkppcow\nV9ogfjDGhJZ4TS5Ddrt1aalKFZg2TXhh+U4CfD158nptmFZKXf5cOYPoAtxnjDmAdYnJACIiYSVa\ns8vABx9YYz0sXAg/RB/l5wNnmHprKNX8vN1dNaWUumSuBIgbSrwWl6GTJ3145hno0wcG3p5B72m/\nE96gKne2a+DuqimlVLEo8hKTiBwCqgI3Oh5VHfMqLDkaQ9OR/6RGxjFmzYK31/7FqcQ0ptzUCps2\nTCulyokiA4Qx5lGslN9XOB4fG2PGlXTFyrJ9w6cQFv8TS9tOIdU3ngU/HOSu9lcSVl8bppVS5Ycr\nl5juBzo4RpbDGPMv4EesxH0VTuzvMQR9Mw8P7IT9Mo9BX9xBYCUvJmjDtFKqnHGlF5MBsnJMZznm\nVUjJz0zBhh2ApVd3ZevRJJ6+oTlVK2vDtFKqfHHlDGIe8JMxZqlj+mbgo5KrUhkWE0O9NfOAdOJ8\n/Jja9R7axPzFHfXburtmSil6+oMSAAAgAElEQVRV7FxJ9z3NGLMeq7srwHAR+eVSCjXGVAXmAiGA\nACOAP4FPsVJ6HAQGicjZSymn2E2ZAs2B7v5UCbSxTCYiO7KwvbwXZs50d+2UUqpYFXiJyRhTxfFc\nHeuA/bHjccgx71LMAFaLSHMgHPgdeBpYJyJXAesc02XL4W/gBi+oasMYqG87TYPOZ+HQGnfXTCml\nil1hZxCfAAOwcjBJjvnGMd34Ygp0jE7XDbgPQETSgXRjzE1AD8diC4D1wFMXU0aJ6eULcec1v3gb\na75SSpUzBQYIERngeG5UzGU2Ak4C84wx4VgB6FGgtojEOJY5BtQu5nIvXdyRC5uvlFKXMSMihS9g\nzDoR6VXUPJcLNKYdsBnoLCI/GWNmAPHAOBGpmmO5syKSZyg2Y8xoYDRA7dq1I5YsWXIx1bgoHX8c\niW/ayTzzU31qsbnT3FKpQ2JiIv7+/qVSVlko151lV8R9dqeKts/u3N9rr702SkTaFbmgiOT7AHyB\n6sCvQDXH6+pYjch/FLReUQ+gDnAwx3RX4L9YjdR1HfPqAn8Wta2IiAgpVb9+KvJybZFJVc49Xq5t\nzS8lkZGRpVZWWSjXnWVXxH12p4q2z+7cX2CruHC8Luw+iAewLv80dzxnP5YD711QuModkI4Bfxtj\nsu8s6wXsBlYA9zrm3esop2wJGwQ3vgOBDRAMBDawpsMGubtmSilV7Aprg5gBzDDGjBOR4r5rehyw\n2BjjDewHhmP1qPrMGHM/cAgom0fdsEEQNojv1q+nR48e7q6NUkqVGFdulLMbY6qKSCyAMaYaMERE\n3r/YQkVkO5Df9a+LatdQSilV/FxJtTEqOzgAiHXz2qiSq5JSSqmywJUA4WGMcXb+N8Z4AJp4SCml\nyjlXLjGtBj41xnzomH7AMU8ppVQ55kqAeAorKIxxTH+LlUdJKaVUOeZKsj478IHjoZRSqoIoMEAY\nYz4TkUHGmN/InYsJABEJK9GaKaWUcqvCziAedTwPKI2KKKWUKlsKu1EuxvF8qPSqo5RSqqwo7BJT\nAvlcWsomIlVKpEZKKaXKhMLOIAIAjDFTgBhgEdZYEEOxkukppZQqx1y5UW6giLwvIgkiEi8iHwA3\nlXTFlFJKuZcrASLJGDPUGONhjLEZY4YCSSVdMaWUUu7lSoC4Cyuz6nHH4w7HPKWUUuWYKzfKHUQv\nKSmlVIVT5BmEMeZqY8w6Y8xOx3SYMeb5kq+aUkopd3LlEtMc4BkgA0BEdgCDS7JSSiml3M+VAFFZ\nRH4+b15mSVRGKaVU2eFKgDhljGmC46Y5Y8ztWPdFKKWUKseMSIE3S1sLGNMYmA38AzgLHACGlnYK\njqioqCs8PT3nAiE4Atvp06cb1q3rnnv2UlNT8fX11XLLcdkVcZ/dqaLtc2nsr6+vL/Xr18fLyyvX\nfGNMlIjkN+xzLoX2YjLG2IB2ItLbGOMH2EQk4ZJqfJE8PT3n1qlTp0WtWrXO2mw2Adi9e3fDFi1a\nuKM6JCQkEBAQoOWW47Ir4j67U0Xb55LeXxHh9OnTHDlyhEaNGl3UNgq9xOQYC+JJx+skdwUHh5Ba\ntWrFZwcHpZRSBTPGUKNGDVJTUy96G660Qaw1xjxhjGlgjKme/bjoEi+eTYODUkq5zhhzSeu7MuTo\nnY7nsTnmCdD4kkpWSilVprlyJ/XFXbwqhDHmIJAAZAGZItLOcVbyKRAMHAQGicjZ4i5bKaWUa1y5\nk9rXGPO4MeZLY8x/jDGPGWOKo+n9WhFpnaMl/WlgnYhcBaxzTJcpI0aM4IorriAkJCTX/BdffJGg\noCBat25N69at+frrr53vTZ06laZNm9KsWTPWrFmT73ZfffXVS6rXyJEj2b179yVtw12GDBlCWFgY\n06dPL5XyJkyYQPPmzQkLC+OWW24hNjYWgIMHD1KpUiXn3/DBBx8EIC0tjb59+xISEsL777/v3M7o\n0aPZtm1bsdVr4sSJrF27tti2d6nuu+8+vvjii1Ipa9myZRf0/T19+jTXXnst/v7+PPzww7nei4qK\nIjQ0lKZNm/LII49QVC9NVThXLjEtxPq1/65j+i6ssSHuKOa63AT0cLxeAKwHnspvwREjaLBzJ5Wh\nIZUrF0/hrVvD228Xvsx9993Hww8/zLBhw/K8N378eJ544olc83bv3s2SJUvYtWsXR48epXfv3vz1\n1194eHjkWu7VV1/l2Wefvei6z50796LXdadjx46xZcsW9u7dm+e9zMxMPD1d+XpemD59+jB16lQ8\nPT156qmnmDp1Kv/6178AaNKkCdu3b3cum5CQwJo1a+jSpQvPPvssnTt35qGHHuLXX38lKyuLtm3b\nFlu9Jk+eXGzbulAl9Vm7atmyZQwYMIAGDRq4tLyvry9Tpkxh586d7Ny5M9d7Y8aMYc6cOXTo0IF+\n/fqxevVqbrjhhpKodoXgyrciRERa5piONMZc6s9VAb4xxgjwoYjMBmpnD3MKHANq57fisWPHaqal\neVW3231tIGRlFc9N3enpdhIS0gpdpk2bNhw6dAi73U5WVhYJCVanrrS0NLy8vJzT2T777DNuueUW\n0tPTqVmzJsHBwURGRtKhQwfnMpMmTSIlJYWwsDCaN2/ORx99xHvvvceiRYsAGDZsGGPHjuXQoUPc\neuuthIeHs2PHDlq0aMGHH35I5cqV6devHy+//DJt27bl22+/ZfLkyWRlZVGjRg2++uorNm3axFNP\nWbHWGMOqVasK7V5Xt25d7r//fr755hvq1KnDxIkTeeGFF4iOjua1116jX79+HDp0iNGjR5OcnAzA\nm2++SYcOHfjqq6+YPXs2K1as4Pjx49xwww2sXr2a2rXz/jl79+5NdHQ0YWFhvPHGG7z88suEhoay\nefNmbr/9doYMGcJjjz3G33//DcC//vUvOnbsyOnTpxkxYgQxMTG0b9+eyMhINmzYQI0aNYr6M9Op\nUydSUlIACA8PZ9myZSQkJJCYmIjdbs/1N8zKyiIjI4PY2FjOnDlDZmYmCQkJPPPMM7z99tt5/t75\nWbx4MStXriQ5OZl9+/Yxbtw4MjIyWLJkCd7e3nzxxRdUr16dBx98kL59+3LzzTcTEhLC4MGDWbNm\nDRkZGSxcuJCrr7463+137NiR1atXExgYSHBwMFOnTuWuu+5i9OjRDB48mH/84x+MHz+eX375BU9P\nT1599VW6devG4sWLWbFiBUlJSWRlZfH111/zxBNPEBkZ6ew3n5KSQkJCAlFRUTz11FMkJyfj7e3N\nV199hZeXV4Hb3bZtG2+99RYAd9xxB4888ghdu3albt26jBkzhtWrV+Pr68uSJUs4cOAAy5cvZ/36\n9bz00kt8/PHHNG5cdPNmeHg4O3fuJD093fl3OHbsGLGxsbRq1YrExETuuOMOPv/8c7p06VLk9twh\n5zGkJKWmprJ+/fqLW1lECn0AHwMdc0x3ABYWtV4R2wxyPF8B/Ap0A2LPW+Zszunt27cfFJGtOR+7\ndu2S0nbgwAFp1aqVxMfHO+dNmjRJGjZsKKGhoTJ8+HA5c+aMiIiMHTtWFi1a5FxuxIgR8vnnn+fZ\npp+fn/P11q1bJSQkRBITEyUhIUFatmwp27ZtkwMHDggg33zzjYiIDB8+XN544w0REenevbts2bJF\nTpw4IfXr15f9+/eLiMjp06dFRGTAgAGyadMmERFJSEiQjIyMQvcRkK+//lpERG6++Wbp06ePnD59\nWrZv3y7h4eEiIpKUlCQpKSkiIvLXX39JRESEc/2hQ4fKu+++K/3795dPPvmkyM8yW/fu3WXMmDHO\n6SFDhsjGjRslPj5eDh06JM2bNxcRkXHjxslLL70kIiIrV64UQE6ePCkiIl26dJHw8PA8j2+//TZP\n+QMGDHD+fQ4cOCCVK1eW1q1bS7du3WTDhg0SHx8vGRkZMmTIEGndurUsXrxYli9fLpMmTSr088tp\n3rx50qRJE4mPj5cTJ05IlSpV5IMPPhARkccee0ymT58uIiL33nuv87vRsGFDef3110VEZObMmXL/\n/fcXuP0HHnhAVq5cKb/99pu0a9dORo4cKSIiTZs2lcTERHnzzTdl+PDhIiLy+++/S4MGDSQlJUXm\nzZsnQUFBzu/If/7zH+ndu7dkZmZKdHS0BAYGyueffy5paWnSqFEj+fnnn0VEJC4uTjIyMgrd7tix\nY53169+/v0RGRoqI9b1asWKFiIhMmDBBpkyZkmvfs/+nXn/99Xz/huPGjcvz2eYsa8uWLdKrVy/n\n9IYNG6R///4u/JXcI+cxpCTt3r07zzxgq7hwrHblDCIC+MEYc9gxfSXwpzHmNyu+SNhFBKVox/MJ\nY8xSoD1w3BhTV0RijDF1gRMXul13GTNmDC+88ALGGF544QX++c9/8u9///uitrVp0yZuueUW/Pz8\nALj11lvZuHEjAwcOpEGDBnTs2BGAu+++m3feeSfXZa3NmzfTrVs3500x1atbvZE7d+7M448/ztCh\nQ7n11lupX79+oXXw9vamb9++AISGhuLj44OXlxehoaEcPHgQgIyMDB5++GG2b9+Oh4cHf/31l3P9\nd999l5CQEDp27MiQIUMuaP/vvPNO5+u1a9eye/du7HY7NpuN+Ph4EhMT2bBhA19++SUA/fv3p1q1\nas51Nm7c6FI5r7zyCp6engwdOhSwzpoOHz5MjRo1iIqK4uabb2bz5s0EBATwySefOPf5+uuvZ/ny\n5Tz++OMcPnyYYcOGMXDgwELLuvbaawkICCAgIIDAwEBuvPFGwPpsd+zYke862duMiIhw7mt+unbt\nyoYNG2jYsCFjxoxh9uzZREdHU61aNfz8/Ni0aRPjxo0DoHnz5jRs2ND5t+rTp4/zO7JhwwaGDBmC\nh4cH9erVo2fPngD8+eef1K1bl2uuuQaAKlWsoegL225BvL29GTBggHO/vv3223yXmzBhAhMmTCh0\nW6p0uBIg+hZngTnvyHa8vg6YDKwA7gVeczwvL85yS1LOyyejRo1y/hMEBQU5L48AHDlyhKCgoIsu\n5/w+za72cX766afp378/X3/9NZ07d2bNmjU0b968wOW9vLyc27bZbPj4+DhfZ2Zal/SmT59O7dq1\n+fXXX7Hb7blSBhw5cgSbzcbx48edB3dXZQdGALvdzubNm8nIyHD5jtOuXbvme9r+5ptv0rt3bwDm\nz5/PypUrWbdunXM/fXx8nPsZERFBkyZN2Lt3b66/1/vvv8+wYcPYvHkzgYGBfPrpp/Ts2bPIAJG9\nXSj48yxoHQ8PjwKXAejWrRszZ87k8OHDvPLKKyxdupQvvviCrl27FlonyP1ZFxdPT0/sdrtzOudN\nWjm/V4Xt1xtvvMHixYvzzO/WrRvvvPNOgWUHBQVx5MgR5/Sl/r8pF3oxicihwh4XUWZtYJMx5lfg\nZ+C/IrIaKzD0McbsAXo7pi8LMTHnchcuXbrU2ctp4MCBLFmyhLS0NA4cOMCePXto3759nvW9vLzI\nyMgArAPcsmXLSE5OJikpiaVLlzr/2Q8fPsxPP/0EwCeffJLn2mrHjh3ZsGEDBw4cAODMmTMA7Nu3\nj9DQUJ566imuueYa/vjjD4BCg0RR4uLiqFu3LjabjUWLFpGVlQVYDZ4jRozg//7v/2jRogXTpk27\n6DKuu+463n33Xed0dgNyt27dnL/qV61axdmz53pDb9y4ke3bt+d5ZAeH1atX8/rrr7NixQoq5+jh\ncPLkSec+7N+/nz179hAcHOx8/+zZs6xcuZJhw4aRnJyMzWbDGONsz1i6dCnPPPPMRe/rxWrQoAGn\nTp1iz549NG7cmC5duvDmm2/SrVs3wPo+ZR9s//rrLw4fPkyzZs3ybKdbt258+umnZGVlERMTQ2Rk\nJADNmjUjJiaGLVu2AFbDfWZmZoHbDQ4OZvv27djtdv7++29+/vn8RNB5BQQE5ArqEyZMyPdvWFhw\nAOsssEqVKmzevBkRYeHChdx0k451dilc/2lXTERkv4iEOx6tROQVx/zTItJLRK4Skd4icqa061aU\nIUOG0KlTJ/78809ngzLAk08+SWhoKGFhYURGRjq7bLZq1YpBgwbRsmVL+vbty8yZM/P0YAKry2RY\nWBhDhw6lbdu23HfffbRv354OHTowcuRI2rRpA1j/rHPmzKFFixacPXuWMWPG5NpOrVq1mD17trMx\nO/tyzdtvv01ISAhhYWF4eXlxww03cOrUqUvqAvjQQw+xYMECwsPD+eOPP5y/Rl999VW6du1Kly5d\nmDZtGnPnzuX333+/qDLeeecdtm7dSqdOnWjZsiWzZs0CrIb9DRs20KpVK7788kuuvPJKl7f58MMP\nk5CQQJ8+fXJ1Z92wYQNhYWG0bt2a22+/nVmzZjkvv4DVy+i5557DZrNx/fXXs3HjRkJDQ7nnnnsA\nKwhnX34pbR06dHA2Ynft2pXo6Gjnj4eHHnoIu91OaGgod955J/Pnz891RpPtlltu4aqrrqJly5YM\nGzaMTp06AdZloU8//ZRx48YRHh5Onz59SE1NLXC7nTt3plGjRrRs2ZJHHnnEpZ5egwcP5o033qBL\nly7s27fPpX0ODg7m8ccfZ/78+dSvX9/ZTfb9999n5MiRNG3alCZNmmgPpktUZDbXsuLXX389GB4e\nfirnvN27d0e0bNmyoFVKVGknFjt48CADBgzgxx9/LJZyV65cyf79+3nkkUdcWr4sJ64LDg5m69at\n1KxZs1TLzenuu+9m+vTp1KpVq9TLLi8q2j6X1v7+/vvvnJ/UtFiyuaryK7udRBWPjz/+2N1VUKrY\naYC4TAQHB7Nz585S6Tdd3NasWeO8DyNbo0aNWLp0abFsP7tnVXk2b948ZsyYkWte586dmTlzpptq\npCoCDRCqxF1//fVcf/317q7GZW348OEMHz7c3dVQFUypN1IrpZS6PGiAUEoplS8NEEoppfJVvgNE\nTAx07w7Hjrm7Jkopddkp3wFiyhTYtMl6LgY6HkTx0/EgLDoehPvGg/D39y/0/djY2Fx/+5Liyndg\n/fr1/PDDDyVeFydXMvqVhccFZ3M9elTE11cERCpVEomJKXhZF3333XcSFRWVbzbX7MyqOe3atUvC\nwsIkNTVV9u/fL40bN5bMzMw8y+XM5lqU0soAWRrlxsTESJMmTfJ9L2fG2eIse82aNc5tP/nkk/Lk\nk0+KSN7MstnlLl++XKZMmSJZWVnSsWNHERHZvn27jBgxotjqlJ/S/Dvnl903Z3bZknZ+NteiJCYm\nysaNG+WDDz7Ilc1VROSaa66RH3/8Uex2u/Tt29eZlbgwRf3/5ffdKA4X8zcu6FhTmEvJ5lp+zyCm\nTIHspGFZWcVyFtGtW7dc6ReKsnz5cgYPHoyPjw+NGjWiadOmeXLTPP3006SkpNC6dWtnZtFp06YR\nEhJCSEgIbztGMTp48CDNmzfn/vvvp0WLFtx+++3OsRh69OjB1q1bASvXUNu2bQkPD6dXr14AfPfd\nd85fxm3atCnyXgp/f38mTJhAq1at6N27Nz///DP9+vWjcePGrFixwlmfrl270rZtW9q2bev8VbN0\n6VJ69eqFiBATE8PVV1/NsQIu8V133XVER0fTunVrNm7cSI8ePXjsscdo164dM2bM4OTJk9x22210\n796da665hu+//x6wfkFed911tGrVipEjR9KwYUNOnTqVbxn5lZk9OE7Hjh1zJXfLj5eXF8nJyWRk\nZDh/jb7wwgtMcfH7NH/+fG6++Wb69OlDcHAw7733HtOmTaNNmzZ07NjRmS8r5y/24OBgXnnlFdq2\nbUtoaKgzd1Z+QkNDiY2NRUSoUaMGCxcuBKxxRL799ltSU1MZPnw4oaGhtGnTxpljaf78+QwcOJCe\nPXs6/14PP/wwzZo1o3fv3pw4cS6Z8pYtW/jHP/5BeHg47du3JyEhodDt5vxVP2DAAOdYBP7+/jz3\n3HOEh4fTsWNHjh8/zg8//MCKFSuYMGECnTt3dinVhp+fH126dMmVIBKsnGjx8fF07NgRYwzDhg1j\n2bJledY/cOAAnTp1IjQ0lOeff945PzExkV69ejk/9+XLrXyhTz/9NPv27aN169ZMmDChwOXO5+/v\nz/jx42nVqhW9evXi5MmTgJVTrGPHjnTq1IlbbrnFmUvs/O/ApEmTcn0HDh48yKxZs5g+fbrzf+bz\nzz8nJCSE8PBwZ/6tYuVKFCkLjws6g8h59pD9KKazCB0PQseD0PEgLu/xIG688UZZsGCBiIi89957\nzv+/jIwMiYuLExGRkydPSpMmTcRut+f5nha03PkA+fjjj0VE5KWXXnLWNTQ0VNavXy/x8fHywgsv\nyKOPPprrcxCxvgPvvPOOiOT+Dpx/BhESEiJHjhwREZGzZ8/mqYNIyY8HcfnJefaQLfssogTuPNXx\nIHQ8iMLoeBCWsjIexPfff89//vMfAO655x7nXf4iwrPPPsuGDRuw2WxER0dz/PjxPOsXtFydOnVy\nLWez2Zzf57vvvptbb72VuLg4YmNj6d69OwkJCdx7773ccUf+ozffeuutQOHfgc6dO3PfffcxaNAg\n5/LFqXwGiB9/hPT03PPS06GEGnd0PAgdD6IwOh6EpSyNB5Hf/87ixYs5efIkUVFReHl5ERwcnKv+\nF7qcK2UWxpXvwKxZs/jpp5/473//S0REBFFRUS4Nveuq8tkG8csvOS8unXv88kuJFKfjQeh4EDoe\nxOUzHkTnzp1ZsmQJQK5AFBcXxxVXXIGXlxeRkZEcOnQo3/oVtNz57Ha7s00h+/81MDCQatWqOc90\nFy1aRPfu3Yv8jLKdX5d9+/bRoUMHJk+eTK1atXL9IC0O5TNAlBAdD+IcHQ9Cx4O4XMeDmDFjBjNn\nziQ0NJTo6Gjn/KFDh7J161ZCQ0NZuHCh8wdUjRo16Ny5MyEhIUyYMKHA5c7n5+fHzz//TEhICP/7\n3/+YOHEiAAsWLGDChAl06tSJ7du3O+e74sYbb2Tp0qXORuoJEyYQGhpKSEiIsyNBsXKloaIsPC64\nm2sJK+3upvk1jl+Kr776SmbMmOHy8u7qXutK2Q0bNnQ2UpdmuTkNHTpUTpw44Zayy4vyts9FdZ8t\nrf3VRmp1wXQ8iOKl40Go8kgDxGVCx4MomI4HocqixMREd1fhkmmAUCVOx4O4dDoehHIHbaRWSimV\nLw0QSiml8uW2AGGM8TDG/GKMWemYbmSM+ckYs9cY86kxxttddVNKKeXeM4hHgZwd5P8FTBeRpsBZ\n4H631KoQFTnd9+LFizl69GixbS9ngsGLcfDgwTx/B6VU8XJLgDDG1Af6A3Md0wboCWQnoF8A3OyO\nuhXmvvvuY/Xq1fm+N378eOcdn/369QNg9+7dLFmyhF27drF69Woeeugh5926OV1qgJg7dy4tW7a8\npG0UpbgDxIXK73NTSpUsd/Vieht4EshOsFMDiBWR7IQjR4B8k6gcO3as5sur/go6cDbdZhB8158p\nlgo1r+3PU9c1KXSZNm3acOjQIex2O1lZWc4up2lpaXh5eeXpgvrZZ59xyy23kJ6eTs2aNQkODiYy\nMpIOHTo4l5k0aRIpKSmEhYU5785+7733WLRoEWClbR47diyHDh1y3iG9Y8cOWrRowYcffkjlypXp\n168fL7/8Mm3btuXbb79l8uTJZGVlUaNGDb766is2bdrk7GZqjGHVqlUF5jbKyspi7Nix/PLLLxhj\nuPvuu6lfvz6//PILQ4YMoVKlSqxdu5YZM2awatUqUlNT6dChAzNmzMAYQ79+/WjXrh0bNmwgLi6O\nmTNn8o9//IOUlBTGjBnDzp07ufrqq0lMTCQpKYmEhATGjx/Ptm3bSElJ4aabbuK5554DICQkhFtv\nvZX//e9/PPbYYzRp0oSxY8cC0LNnT+x2e4l2+835Ny5t7izbXSraPpfW/qampjpTrl+oUg8QxpgB\nwAkRiTLG9LjQ9evUqXOqUsDxSp5JCZXtGWn++aWuuBhe3l4uJYTz9/fHZrPh4eHhXN7Hx4c5c+bw\n6aef0q5dO9566y2qVavGqVOn6Nixo3O54OBgYmNjc5Uzbdo0Zs+e7czqGRUVxSeffMKWLVsQETp0\n6MD1119PtWrV2LNnDzNnzqRPnz6MGDGCRYsW8cQTT+Dh4YGfnx+pqak8+uijbNiwgUaNGnHmzBkC\nAgJ4//33+eCDD+jcuTOJiYn4+vo6x0Q4X1RUFCdOnHBesoqNjaVq1arMnj2b6dOn065dOwD++c9/\n8sorrwBWRszvvvuOG2+8EQ8PD2w2G1FRUXz99de88cYbrF27ljlz5hAYGMiff/7Jjh07aNu2LX5+\nfgQEBPD6669TvXp1srKy6NWrFwcOHCAsLAxjDHXr1mXTpk0EBAQQFhbGzJkz6datGxMmTMBms7mc\nxO9iJCQklOj2y2rZ7lLR9rm09tfX19eZrudCueMMojMw0BjTD/AFqgAzgKrGGE/HWUR9ILqgDbxx\ne/jfALt3744o6UsrrihP6b4bN27M/v37GTduHP379+e6667Ld7nIyEhef/11kpOTOXPmDK1atXKm\nsc6Zpjj7JrYNGzbwyCOPABAWFkZYWJhzW5999hmzZ88mMzOTmJgYdu/e7Xw/O59UbGwssbGxziR0\n99xzD6tWrXL1Y1VKXYRSb4MQkWdEpL6IBAODgf+JyFAgErjdsdi9QP7DNJVBtWvXdv5yHjVqlDOD\nZVlK9z137lxSUlLo3LlzoSOUVatWjV9//ZUePXowa9YsRo4cmWeZ7GRtX3zxBb/99hujRo3Kle7Y\n1VTVYI3u9eabb7Ju3Tp27NhB//79c22rJFJSK6VcU5bug3gKeNwYsxerTeIjN9fHZeUp3fepU6ew\n2+3cdtttvPzyy2zbtg2wLq1lXy/NPoDXrFmTxMRElwa3z5mie+fOnc5LavHx8fj5+REYGMjx48cL\nPCuoWrUqVatWZdOmTQD5jheglCpebk21ISLrgfWO1/uBvEfPMmTIkCGsX7+eU6dO0bx5cyZPnsz9\n99/Pk08+yfbt2zHGEBtxxZIAAA71SURBVBwczIcffgjkTvft6elZZLrvtm3bsnjxYme6b8CZ7vvg\nwYPOdN/jxo2jZcuWhab7ttvtXHHFFXz77be8/fbbREZGYrPZaNWqVaHpvqOjoxk+fLhz0JepU6cC\nVirkBx98kEqVKvHjjz8yatQoQkJCqFOnjnO0scKMGTOG4cOH06JFC1q0aEFERAQA4eHh/9/evQdH\nVWcJHP8eAxIExEGQ4hlgkATSmTwICIsEhjDr7BJnhi2KwoVdElRW1NVdpQa2yhqylrs1LDiwzMpY\nrjPEV42YOFsi1DC4EkG21CFAIoYgszwEWTCIMgFtRpKc/ePebhK4nQck9ybp86nq6s7tX9/z+zVN\nn76v8yMzM5OUlBSGDRvGlClTYq5jw4YNLFq0CBGJuevLGNN2xOtLoiOqqKg4lp6e3mhm+iCPQfh9\nQO3YsWPk5eXx3nvvtUnczZs3c+TIkehxgebE4wHbeBxzkOJtzH6Nt6qqirFjxzZaJiJ7VDW7udda\nsb44ZeW+jTHN6UjHIEwTIuW+jTHGL5YgjDHGeLIEYYwxxpMlCGOMMZ4sQRhjjPHUdRPEh6/BmhAU\n3uLcf/jada/Syn13vnLf+fn5zV7IV1RU1O6VasvKypo9pfjcuXOsX7++XfthTGt0zQTx4Wvw5iPw\nxxOAOvdvPnLdScLKfXfNct9+JIjs7GzWrVvXZBtLEKaj6ZoJ4u0n4VK48bJLYWf5dcjJyYkWwGuJ\nN954g3nz5tGjRw9GjhzJ6NGjo3WaIpYvX044HCYjI4P58+cDToXXUChEKBRi7dq1gPOLOSUlhXvv\nvZexY8cyZ84cvv76a6Dxr/GtW7eSlZVFeno6ubm5AOzYsSO6dZOZmdlkieG6ujry8/MJhUKkpaWx\nZs0aSkpK2LdvH/PnzycjI4NwOMyTTz7JhAkTCIVCLF68OHpV9vTp01m2bBkTJ05kzJgxvPvuuwCE\nw2HmzZvH2LFjmT17NuHw5X+fJUuWkJ2dTWpqKitWrIguHzFiBMuWLWPq1KkUFxezZ88e0tPTSU9P\n55lnnvHsv6ry8MMPk5yczMyZM6muro4+59XnkpISysrKPMd2xx13NBpbQ/n5+TzwwANkZ2czZswY\nNm/eDDhlSAoKCkhLSyMzM5PS0lIA3nnnnei1J4WFhSxatIjp06czatSoaOJYvnw5hw8fJiMjgyee\neIJTp06Rk5NDRkYGoVAo+l4a4xtV7RS38vLyY6pa1vBWWVmpnlb0VV1xs8etr3f7Vjh69KimpqZq\nTU3N5XArVmhSUpKmpaVpQUGBfvHFF6qq+tBDD+lLL70Ubbdo0SItLi6+ap29evWKPi4rK9NQKKQX\nLlzQ8+fP67hx43Tv3r169OhRBXTbtm2qqlpQUKCrVq1SVdVp06bp7t27tbq6WocOHapHjhxRVdWz\nZ8+qqmpeXp7u2rVLVVXPnz+vly5dijm+srIynTlzZvTvL7/8UlVV77zzTt29e3d0eWTdqqoLFizQ\nTZs2Rfvy2GOPqarqli1bNDc3V1VVn376aS0oKFBV1YqKCk1ISIiuL7Ku2tpanTZtmlZUVKiqalJS\nkq5cuTL6XqelpemOHTtUVXXp0qWampp6Vf9ff/11nTlzptbW1urJkye1b9++0fe8qT57ja2mpqZR\nu4YWLlyod911l9bV1emhQ4d0yJAhGg6HdfXq1dFxVlVV6bBhwzQcDmtpaanOmjVLVZ3Py+TJk/Xi\nxYt65swZ7devn37zzTfRz1Yk9urVq/Wpp56KvjcNP3NdUVcf35X8Gu+BAweuWgaUaQu+d7vmFkTf\nGOWsYy2/TkuWLOHw4cOUl5czaNAgHn/88WteV8Ny3717946W+wauKvcdKVwX0Vy573Xr1nHu3LmY\nc0FA43LfW7du5eabb/ZsF5n4KC0tje3bt1NZWRl9Lla57wULFgDe5b6zsrLIzMyksrKy0fGUpsp9\ne9m5cyf33HMPCQkJDB48mBkzZrSoz15jmzRpUpPt5s6dyw033MDtt9/OqFGjOHjwILt27YqOMyUl\nhaSkJA4dOnTVa2fNmkWPHj3o378/t912G5999tlVbSZMmMCGDRsoLCxk//79cVWGwnQMXTNB5P4E\nuvdsvKx7T2d5O7By3x2/3HdzffZq9/7778dsB9f+7wGX3yOI/T7l5OSwc+dOhgwZQn5+Pi+++GKL\n129MW+iaCeI7c+HuddB3GCDO/d3rnOXtwMp9d5xy3zk5OWzcuJG6ujpOnToVPQbQVJ/79OlzTWMr\n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\n", "text/plain": [ "<matplotlib.figure.Figure at 0x11713ec18>" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "accuracy_scores_150topic_25_10={}\n", "for i in [1,2,3,4,5,6,8,10]:\n", " accuracy, k = prediction_accuracy(test_author2doc, test_corpus_25_10, atmodel_150topics_25_10, k=i)\n", " accuracy_scores_150topic_25_10[k] = accuracy\n", " \n", "plot_accuracy(scores1=accuracy_scores_150topic_25_10, label1=\"150 topics, max_freq=25%, min_wordcount=10\", scores2=accuracy_scores_150topic, label2=\"150 topics, standard\")" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The results seem rather ambigious and do not show a clear trend. Which is why we would stop here for the iterations." ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.7.1" } }, "nbformat": 4, "nbformat_minor": 2 }
267,682
Python
.py
1,844
139.32321
27,938
0.740392
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,927
FastText_Tutorial.ipynb
piskvorky_gensim/docs/notebooks/FastText_Tutorial.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Using FastText via Gensim" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "This tutorial is about using [fastText](https://github.com/facebookresearch/fastText) model in Gensim. There are two ways you can use fastText in Gensim - Gensim's native implementation of fastText and Gensim wrapper for fastText's original C++ code. Here, we'll learn to work with fastText library for training word-embedding models, saving & loading them and performing similarity operations & vector lookups analogous to Word2Vec." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## When to use FastText?\n", "The main principle behind fastText is that the morphological structure of a word carries important information about the meaning of the word, which is not taken into account by traditional word embeddings, which train a unique word embedding for every individual word. This is especially significant for morphologically rich languages (German, Turkish) in which a single word can have a large number of morphological forms, each of which might occur rarely, thus making it hard to train good word embeddings. \n", "fastText attempts to solve this by treating each word as the aggregation of its subwords. For the sake of simplicity and language-independence, subwords are taken to be the character ngrams of the word. The vector for a word is simply taken to be the sum of all vectors of its component char-ngrams. \n", "According to a detailed comparison of Word2Vec and FastText in [this notebook](Word2Vec_FastText_Comparison.ipynb), fastText does significantly better on syntactic tasks as compared to the original Word2Vec, especially when the size of the training corpus is small. Word2Vec slightly outperforms FastText on semantic tasks though. The differences grow smaller as the size of training corpus increases.\n", "Training time for fastText is significantly higher than the Gensim version of Word2Vec (`15min 42s` vs `6min 42s` on text8, 17 mil tokens, 5 epochs, and a vector size of 100). \n", "fastText can be used to obtain vectors for out-of-vocabulary (OOV) words, by summing up vectors for its component char-ngrams, provided at least one of the char-ngrams was present in the training data." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Training models" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "For the following examples, we'll use the Lee Corpus (which you already have if you've installed gensim) for training our model.\n", "\n", "For using the wrapper for fastText, you need to have fastText setup locally to be able to train models. See [installation instructions for fastText](https://github.com/facebookresearch/fastText/#requirements) if you don't have fastText installed already." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Using Gensim's implementation of fastText" ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "FastText(vocab=1762, size=100, alpha=0.025)\n" ] } ], "source": [ "from gensim.models.fasttext import FastText as FT_gensim\n", "from gensim.test.utils import datapath\n", "\n", "# Set file names for train and test data\n", "corpus_file = datapath('lee_background.cor')\n", "\n", "model_gensim = FT_gensim(size=100)\n", "\n", "# build the vocabulary\n", "model_gensim.build_vocab(corpus_file=corpus_file)\n", "\n", "# train the model\n", "model_gensim.train(\n", " corpus_file=corpus_file, epochs=model_gensim.epochs,\n", " total_examples=model_gensim.corpus_count, total_words=model_gensim.corpus_total_words\n", ")\n", "\n", "print(model_gensim)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Using wrapper for fastText's C++ code" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "FastText(vocab=1763, size=100, alpha=0.025)\n" ] } ], "source": [ "from gensim.models.wrappers.fasttext import FastText as FT_wrapper\n", "\n", "# Set FastText home to the path to the FastText executable\n", "ft_home = '/home/misha/src/fastText-0.1.0/fasttext'\n", "\n", "# train the model\n", "model_wrapper = FT_wrapper.train(ft_home, corpus_file)\n", "\n", "print(model_wrapper)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Training hyperparameters" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Hyperparameters for training the model follow the same pattern as Word2Vec. FastText supports the following parameters from the original word2vec - \n", " - model: Training architecture. Allowed values: `cbow`, `skipgram` (Default `cbow`)\n", " - size: Size of embeddings to be learnt (Default 100)\n", " - alpha: Initial learning rate (Default 0.025)\n", " - window: Context window size (Default 5)\n", " - min_count: Ignore words with number of occurrences below this (Default 5)\n", " - loss: Training objective. Allowed values: `ns`, `hs`, `softmax` (Default `ns`)\n", " - sample: Threshold for downsampling higher-frequency words (Default 0.001)\n", " - negative: Number of negative words to sample, for `ns` (Default 5)\n", " - iter: Number of epochs (Default 5)\n", " - sorted_vocab: Sort vocab by descending frequency (Default 1)\n", " - threads: Number of threads to use (Default 12)\n", " \n", "In addition, FastText has three additional parameters - \n", " - min_n: min length of char ngrams (Default 3)\n", " - max_n: max length of char ngrams (Default 6)\n", " - bucket: number of buckets used for hashing ngrams (Default 2000000)\n", "Parameters `min_n` and `max_n` control the lengths of character ngrams that each word is broken down into while training and looking up embeddings. If `max_n` is set to 0, or to be lesser than `min_n`, no character ngrams are used, and the model effectively reduces to Word2Vec.\n", "\n", "To bound the memory requirements of the model being trained, a hashing function is used that maps ngrams to integers in 1 to K. For hashing these character sequences, the [Fowler-Noll-Vo hashing function](http://www.isthe.com/chongo/tech/comp/fnv) (FNV-1a variant) is employed." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "**Note:** As in the case of Word2Vec, you can continue to train your model while using Gensim's native implementation of fastText." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Saving/loading models" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Models can be saved and loaded via the `load` and `save` methods." ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "FastText(vocab=1762, size=100, alpha=0.025)\n", "FastText(vocab=1763, size=100, alpha=0.025)\n" ] } ], "source": [ "# saving a model trained via Gensim's fastText implementation\n", "model_gensim.save('saved_model_gensim')\n", "loaded_model = FT_gensim.load('saved_model_gensim')\n", "print(loaded_model)\n", "\n", "# saving a model trained via fastText wrapper\n", "model_wrapper.save('saved_model_wrapper')\n", "loaded_model = FT_wrapper.load('saved_model_wrapper')\n", "print(loaded_model)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The `save_word2vec_method` causes the vectors for ngrams to be lost. As a result, a model loaded in this way will behave as a regular word2vec model. \n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Word vector lookup\n", "**Note:** Operations like word vector lookups and similarity queries can be performed in exactly the same manner for both the implementations of fastText so they have been demonstrated using only the fastText wrapper here.\n", "\n", "FastText models support vector lookups for out-of-vocabulary words by summing up character ngrams belonging to the word." ] }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "True\n", "False\n", "[ 0.6988306 0.7962038 0.04964953 0.11940945 0.45962736 0.02930021\n", " -0.148752 0.06151627 -0.09016804 0.28291386 0.47263005 -0.07578029\n", " -0.6577542 -0.27169365 -0.16403204 -0.01813792 0.16956581 -0.4356721\n", " -0.5964832 0.736336 -0.30984706 0.3427041 0.15378788 -0.5059883\n", " -0.15675616 -0.5815964 -0.07495894 -0.41970676 0.36809948 -0.26071918\n", " -0.46826273 0.15298584 -0.04599814 0.6263372 0.52292955 -0.02519639\n", " 0.65333563 -0.1163021 0.22651657 0.3189898 -0.07596255 -0.22332282\n", " 0.15195839 -0.39055198 -0.19732887 -0.2747241 0.04130132 -0.63913506\n", " 0.18559387 -0.15314367 0.26563224 0.71324116 -0.04440507 0.05624504\n", " -0.11758088 -0.3253568 -0.22081989 0.6120215 -0.35792083 -0.333798\n", " -0.11835586 -0.0503935 0.3735655 0.49913588 -0.02427495 0.17332387\n", " -0.6308407 -0.3670084 -0.23201697 0.1555578 -0.3275684 0.0828054\n", " -0.01972355 -0.27277097 -0.25400817 -0.50337344 0.12651777 0.01878418\n", " 0.21467368 -0.30219504 0.72938025 1.2315444 0.34624976 -0.7114608\n", " 0.36338523 0.06543703 0.01345754 -0.15920149 0.13876723 -0.5582751\n", " 0.38154316 0.18617174 0.4476739 -0.02872563 0.11876874 -0.02085596\n", " -0.64908224 0.03067067 0.14303452 0.33201975]\n", "[ 0.6146148 0.70105475 0.04316702 0.10669094 0.4011963 0.02504568\n", " -0.13186908 0.05575202 -0.07716817 0.24856749 0.41678062 -0.06665172\n", " -0.5781625 -0.2382541 -0.14530264 -0.01657776 0.1496157 -0.38340995\n", " -0.52317756 0.64602286 -0.27437162 0.30193132 0.13466597 -0.4432936\n", " -0.13953276 -0.51243937 -0.06671739 -0.36839843 0.323204 -0.23012711\n", " -0.4134057 0.13342045 -0.03989897 0.5513306 0.46034276 -0.02355763\n", " 0.5749811 -0.10196284 0.19741252 0.28229755 -0.06662108 -0.19657284\n", " 0.1323219 -0.34543604 -0.17333041 -0.24169934 0.03771086 -0.563315\n", " 0.16434433 -0.13390124 0.2337911 0.6275974 -0.03961363 0.04971414\n", " -0.10379436 -0.28675792 -0.19387211 0.5369245 -0.3134195 -0.29489765\n", " -0.10219254 -0.04510017 0.32892984 0.43901965 -0.02051542 0.15215051\n", " -0.5549378 -0.32053903 -0.20249408 0.1375998 -0.28648633 0.07105823\n", " -0.01473362 -0.24162163 -0.2248782 -0.44446456 0.11056102 0.01639792\n", " 0.1877773 -0.2670066 0.6425655 1.083377 0.30128938 -0.6256704\n", " 0.32030573 0.05688732 0.00961584 -0.1400448 0.12174114 -0.49109733\n", " 0.3353805 0.16405603 0.39405888 -0.02574553 0.10243315 -0.0189576\n", " -0.5711417 0.02725987 0.12675735 0.29079968]\n" ] } ], "source": [ "print('night' in model_wrapper.wv.vocab)\n", "print('nights' in model_wrapper.wv.vocab)\n", "print(model_wrapper['night'])\n", "print(model_wrapper['nights'])" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The word vector lookup operation only works if at least one of the component character ngrams is present in the training corpus. For example -" ] }, { "cell_type": "code", "execution_count": 5, "metadata": {}, "outputs": [], "source": [ "# Raises a KeyError since none of the character ngrams of the word `axe` are present in the training data\n", "try:\n", " model_wrapper['axe']\n", "except KeyError:\n", " #\n", " # trap the error here so it does not interfere\n", " # with the execution of the cells below\n", " #\n", " pass\n", "else:\n", " assert False, 'the above code should have raised a KeyError'" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The `in` operation works slightly differently from the original word2vec. It tests whether a vector for the given word exists or not, not whether the word is present in the word vocabulary. To test whether a word is present in the training word vocabulary -" ] }, { "cell_type": "code", "execution_count": 6, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "False\n", "True\n" ] } ], "source": [ "# Tests if word present in vocab\n", "print(\"word\" in model_wrapper.wv.vocab)\n", "# Tests if vector present for word\n", "print(\"word\" in model_wrapper)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Similarity operations" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Similarity operations work the same way as word2vec. **Out-of-vocabulary words can also be used, provided they have at least one character ngram present in the training data.**" ] }, { "cell_type": "code", "execution_count": 7, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "False\n", "True\n" ] }, { "data": { "text/plain": [ "0.9999938" ] }, "execution_count": 7, "metadata": {}, "output_type": "execute_result" } ], "source": [ "print(\"nights\" in model_wrapper.wv.vocab)\n", "print(\"night\" in model_wrapper.wv.vocab)\n", "model_wrapper.similarity(\"night\", \"nights\")" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Syntactically similar words generally have high similarity in fastText models, since a large number of the component char-ngrams will be the same. As a result, fastText generally does better at syntactic tasks than Word2Vec. A detailed comparison is provided [here](Word2Vec_FastText_Comparison.ipynb)." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Other similarity operations" ] }, { "cell_type": "code", "execution_count": 8, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "[('night', 0.9999542236328125),\n", " ('flights', 0.9999502897262573),\n", " ('rights', 0.9999481439590454),\n", " ('night.', 0.9999478459358215),\n", " ('night,', 0.999945878982544),\n", " ('eight', 0.9999404549598694),\n", " ('quarter', 0.9999394416809082),\n", " ('hearing', 0.9999383091926575),\n", " ('light', 0.9999381303787231),\n", " ('during', 0.9999378323554993)]" ] }, "execution_count": 8, "metadata": {}, "output_type": "execute_result" } ], "source": [ "# The example training corpus is a toy corpus, results are not expected to be good, for proof-of-concept only\n", "model_wrapper.most_similar(\"nights\")" ] }, { "cell_type": "code", "execution_count": 9, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "0.99997056" ] }, "execution_count": 9, "metadata": {}, "output_type": "execute_result" } ], "source": [ "model_wrapper.n_similarity(['sushi', 'shop'], ['japanese', 'restaurant'])" ] }, { "cell_type": "code", "execution_count": 10, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "'dinner'" ] }, "execution_count": 10, "metadata": {}, "output_type": "execute_result" } ], "source": [ "model_wrapper.doesnt_match(\"breakfast cereal dinner lunch\".split())" ] }, { "cell_type": "code", "execution_count": 11, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "[('side', 0.999753475189209),\n", " ('inside', 0.9997509717941284),\n", " ('suicide', 0.9997484683990479),\n", " ('administrators', 0.9997476935386658),\n", " ('administration', 0.9997475743293762),\n", " ('Alliance', 0.9997474551200867),\n", " ('Three', 0.9997437000274658),\n", " ('Police', 0.9997435212135315),\n", " ('Minister,', 0.9997434616088867),\n", " ('end', 0.9997432827949524)]" ] }, "execution_count": 11, "metadata": {}, "output_type": "execute_result" } ], "source": [ "model_wrapper.most_similar(positive=['baghdad', 'england'], negative=['london'])" ] }, { "cell_type": "code", "execution_count": 12, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "[{'section': 'capital-common-countries', 'correct': [], 'incorrect': []},\n", " {'section': 'capital-world', 'correct': [], 'incorrect': []},\n", " {'section': 'currency', 'correct': [], 'incorrect': []},\n", " {'section': 'city-in-state', 'correct': [], 'incorrect': []},\n", " {'section': 'family',\n", " 'correct': [],\n", " 'incorrect': [('HE', 'SHE', 'HIS', 'HER'), ('HIS', 'HER', 'HE', 'SHE')]},\n", " {'section': 'gram1-adjective-to-adverb', 'correct': [], 'incorrect': []},\n", " {'section': 'gram2-opposite', 'correct': [], 'incorrect': []},\n", " {'section': 'gram3-comparative',\n", " 'correct': [('GREAT', 'GREATER', 'LOW', 'LOWER'),\n", " ('LONG', 'LONGER', 'LOW', 'LOWER'),\n", " ('LOW', 'LOWER', 'GREAT', 'GREATER')],\n", " 'incorrect': [('GOOD', 'BETTER', 'GREAT', 'GREATER'),\n", " ('GOOD', 'BETTER', 'LONG', 'LONGER'),\n", " ('GOOD', 'BETTER', 'LOW', 'LOWER'),\n", " ('GREAT', 'GREATER', 'LONG', 'LONGER'),\n", " ('GREAT', 'GREATER', 'GOOD', 'BETTER'),\n", " ('LONG', 'LONGER', 'GOOD', 'BETTER'),\n", " ('LONG', 'LONGER', 'GREAT', 'GREATER'),\n", " ('LOW', 'LOWER', 'GOOD', 'BETTER'),\n", " ('LOW', 'LOWER', 'LONG', 'LONGER')]},\n", " {'section': 'gram4-superlative',\n", " 'correct': [('GOOD', 'BEST', 'GREAT', 'GREATEST'),\n", " ('GOOD', 'BEST', 'LARGE', 'LARGEST'),\n", " ('GOOD', 'BEST', 'BIG', 'BIGGEST'),\n", " ('GREAT', 'GREATEST', 'LARGE', 'LARGEST'),\n", " ('GREAT', 'GREATEST', 'BIG', 'BIGGEST'),\n", " ('LARGE', 'LARGEST', 'BIG', 'BIGGEST'),\n", " ('LARGE', 'LARGEST', 'GREAT', 'GREATEST')],\n", " 'incorrect': [('BIG', 'BIGGEST', 'GOOD', 'BEST'),\n", " ('BIG', 'BIGGEST', 'GREAT', 'GREATEST'),\n", " ('BIG', 'BIGGEST', 'LARGE', 'LARGEST'),\n", " ('GREAT', 'GREATEST', 'GOOD', 'BEST'),\n", " ('LARGE', 'LARGEST', 'GOOD', 'BEST')]},\n", " {'section': 'gram5-present-participle',\n", " 'correct': [('GO', 'GOING', 'LOOK', 'LOOKING'),\n", " ('GO', 'GOING', 'SAY', 'SAYING'),\n", " ('PLAY', 'PLAYING', 'SAY', 'SAYING'),\n", " ('PLAY', 'PLAYING', 'LOOK', 'LOOKING'),\n", " ('SAY', 'SAYING', 'LOOK', 'LOOKING'),\n", " ('SAY', 'SAYING', 'PLAY', 'PLAYING')],\n", " 'incorrect': [('GO', 'GOING', 'PLAY', 'PLAYING'),\n", " ('GO', 'GOING', 'RUN', 'RUNNING'),\n", " ('LOOK', 'LOOKING', 'PLAY', 'PLAYING'),\n", " ('LOOK', 'LOOKING', 'RUN', 'RUNNING'),\n", " ('LOOK', 'LOOKING', 'SAY', 'SAYING'),\n", " ('LOOK', 'LOOKING', 'GO', 'GOING'),\n", " ('PLAY', 'PLAYING', 'RUN', 'RUNNING'),\n", " ('PLAY', 'PLAYING', 'GO', 'GOING'),\n", " ('RUN', 'RUNNING', 'SAY', 'SAYING'),\n", " ('RUN', 'RUNNING', 'GO', 'GOING'),\n", " ('RUN', 'RUNNING', 'LOOK', 'LOOKING'),\n", " ('RUN', 'RUNNING', 'PLAY', 'PLAYING'),\n", " ('SAY', 'SAYING', 'GO', 'GOING'),\n", " ('SAY', 'SAYING', 'RUN', 'RUNNING')]},\n", " {'section': 'gram6-nationality-adjective',\n", " 'correct': [('AUSTRALIA', 'AUSTRALIAN', 'INDIA', 'INDIAN'),\n", " ('AUSTRALIA', 'AUSTRALIAN', 'ISRAEL', 'ISRAELI'),\n", " ('INDIA', 'INDIAN', 'AUSTRALIA', 'AUSTRALIAN')],\n", " 'incorrect': [('AUSTRALIA', 'AUSTRALIAN', 'FRANCE', 'FRENCH'),\n", " ('AUSTRALIA', 'AUSTRALIAN', 'SWITZERLAND', 'SWISS'),\n", " ('FRANCE', 'FRENCH', 'INDIA', 'INDIAN'),\n", " ('FRANCE', 'FRENCH', 'ISRAEL', 'ISRAELI'),\n", " ('FRANCE', 'FRENCH', 'SWITZERLAND', 'SWISS'),\n", " ('FRANCE', 'FRENCH', 'AUSTRALIA', 'AUSTRALIAN'),\n", " ('INDIA', 'INDIAN', 'ISRAEL', 'ISRAELI'),\n", " ('INDIA', 'INDIAN', 'SWITZERLAND', 'SWISS'),\n", " ('INDIA', 'INDIAN', 'FRANCE', 'FRENCH'),\n", " ('ISRAEL', 'ISRAELI', 'SWITZERLAND', 'SWISS'),\n", " ('ISRAEL', 'ISRAELI', 'AUSTRALIA', 'AUSTRALIAN'),\n", " ('ISRAEL', 'ISRAELI', 'FRANCE', 'FRENCH'),\n", " ('ISRAEL', 'ISRAELI', 'INDIA', 'INDIAN'),\n", " ('SWITZERLAND', 'SWISS', 'AUSTRALIA', 'AUSTRALIAN'),\n", " ('SWITZERLAND', 'SWISS', 'FRANCE', 'FRENCH'),\n", " ('SWITZERLAND', 'SWISS', 'INDIA', 'INDIAN'),\n", " ('SWITZERLAND', 'SWISS', 'ISRAEL', 'ISRAELI')]},\n", " {'section': 'gram7-past-tense',\n", " 'correct': [('PAYING', 'PAID', 'SAYING', 'SAID')],\n", " 'incorrect': [('GOING', 'WENT', 'PAYING', 'PAID'),\n", " ('GOING', 'WENT', 'PLAYING', 'PLAYED'),\n", " ('GOING', 'WENT', 'SAYING', 'SAID'),\n", " ('GOING', 'WENT', 'TAKING', 'TOOK'),\n", " ('PAYING', 'PAID', 'PLAYING', 'PLAYED'),\n", " ('PAYING', 'PAID', 'TAKING', 'TOOK'),\n", " ('PAYING', 'PAID', 'GOING', 'WENT'),\n", " ('PLAYING', 'PLAYED', 'SAYING', 'SAID'),\n", " ('PLAYING', 'PLAYED', 'TAKING', 'TOOK'),\n", " ('PLAYING', 'PLAYED', 'GOING', 'WENT'),\n", " ('PLAYING', 'PLAYED', 'PAYING', 'PAID'),\n", " ('SAYING', 'SAID', 'TAKING', 'TOOK'),\n", " ('SAYING', 'SAID', 'GOING', 'WENT'),\n", " ('SAYING', 'SAID', 'PAYING', 'PAID'),\n", " ('SAYING', 'SAID', 'PLAYING', 'PLAYED'),\n", " ('TAKING', 'TOOK', 'GOING', 'WENT'),\n", " ('TAKING', 'TOOK', 'PAYING', 'PAID'),\n", " ('TAKING', 'TOOK', 'PLAYING', 'PLAYED'),\n", " ('TAKING', 'TOOK', 'SAYING', 'SAID')]},\n", " {'section': 'gram8-plural',\n", " 'correct': [('MAN', 'MEN', 'CAR', 'CARS')],\n", " 'incorrect': [('BUILDING', 'BUILDINGS', 'CAR', 'CARS'),\n", " ('BUILDING', 'BUILDINGS', 'CHILD', 'CHILDREN'),\n", " ('BUILDING', 'BUILDINGS', 'MAN', 'MEN'),\n", " ('CAR', 'CARS', 'CHILD', 'CHILDREN'),\n", " ('CAR', 'CARS', 'MAN', 'MEN'),\n", " ('CAR', 'CARS', 'BUILDING', 'BUILDINGS'),\n", " ('CHILD', 'CHILDREN', 'MAN', 'MEN'),\n", " ('CHILD', 'CHILDREN', 'BUILDING', 'BUILDINGS'),\n", " ('CHILD', 'CHILDREN', 'CAR', 'CARS'),\n", " ('MAN', 'MEN', 'BUILDING', 'BUILDINGS'),\n", " ('MAN', 'MEN', 'CHILD', 'CHILDREN')]},\n", " {'section': 'gram9-plural-verbs', 'correct': [], 'incorrect': []},\n", " {'section': 'total',\n", " 'correct': [('GREAT', 'GREATER', 'LOW', 'LOWER'),\n", " ('LONG', 'LONGER', 'LOW', 'LOWER'),\n", " ('LOW', 'LOWER', 'GREAT', 'GREATER'),\n", " ('GOOD', 'BEST', 'GREAT', 'GREATEST'),\n", " ('GOOD', 'BEST', 'LARGE', 'LARGEST'),\n", " ('GOOD', 'BEST', 'BIG', 'BIGGEST'),\n", " ('GREAT', 'GREATEST', 'LARGE', 'LARGEST'),\n", " ('GREAT', 'GREATEST', 'BIG', 'BIGGEST'),\n", " ('LARGE', 'LARGEST', 'BIG', 'BIGGEST'),\n", " ('LARGE', 'LARGEST', 'GREAT', 'GREATEST'),\n", " ('GO', 'GOING', 'LOOK', 'LOOKING'),\n", " ('GO', 'GOING', 'SAY', 'SAYING'),\n", " ('PLAY', 'PLAYING', 'SAY', 'SAYING'),\n", " ('PLAY', 'PLAYING', 'LOOK', 'LOOKING'),\n", " ('SAY', 'SAYING', 'LOOK', 'LOOKING'),\n", " ('SAY', 'SAYING', 'PLAY', 'PLAYING'),\n", " ('AUSTRALIA', 'AUSTRALIAN', 'INDIA', 'INDIAN'),\n", " ('AUSTRALIA', 'AUSTRALIAN', 'ISRAEL', 'ISRAELI'),\n", " ('INDIA', 'INDIAN', 'AUSTRALIA', 'AUSTRALIAN'),\n", " ('PAYING', 'PAID', 'SAYING', 'SAID'),\n", " ('MAN', 'MEN', 'CAR', 'CARS')],\n", " 'incorrect': [('HE', 'SHE', 'HIS', 'HER'),\n", " ('HIS', 'HER', 'HE', 'SHE'),\n", " ('GOOD', 'BETTER', 'GREAT', 'GREATER'),\n", " ('GOOD', 'BETTER', 'LONG', 'LONGER'),\n", " ('GOOD', 'BETTER', 'LOW', 'LOWER'),\n", " ('GREAT', 'GREATER', 'LONG', 'LONGER'),\n", " ('GREAT', 'GREATER', 'GOOD', 'BETTER'),\n", " ('LONG', 'LONGER', 'GOOD', 'BETTER'),\n", " ('LONG', 'LONGER', 'GREAT', 'GREATER'),\n", " ('LOW', 'LOWER', 'GOOD', 'BETTER'),\n", " ('LOW', 'LOWER', 'LONG', 'LONGER'),\n", " ('BIG', 'BIGGEST', 'GOOD', 'BEST'),\n", " ('BIG', 'BIGGEST', 'GREAT', 'GREATEST'),\n", " ('BIG', 'BIGGEST', 'LARGE', 'LARGEST'),\n", " ('GREAT', 'GREATEST', 'GOOD', 'BEST'),\n", " ('LARGE', 'LARGEST', 'GOOD', 'BEST'),\n", " ('GO', 'GOING', 'PLAY', 'PLAYING'),\n", " ('GO', 'GOING', 'RUN', 'RUNNING'),\n", " ('LOOK', 'LOOKING', 'PLAY', 'PLAYING'),\n", " ('LOOK', 'LOOKING', 'RUN', 'RUNNING'),\n", " ('LOOK', 'LOOKING', 'SAY', 'SAYING'),\n", " ('LOOK', 'LOOKING', 'GO', 'GOING'),\n", " ('PLAY', 'PLAYING', 'RUN', 'RUNNING'),\n", " ('PLAY', 'PLAYING', 'GO', 'GOING'),\n", " ('RUN', 'RUNNING', 'SAY', 'SAYING'),\n", " ('RUN', 'RUNNING', 'GO', 'GOING'),\n", " ('RUN', 'RUNNING', 'LOOK', 'LOOKING'),\n", " ('RUN', 'RUNNING', 'PLAY', 'PLAYING'),\n", " ('SAY', 'SAYING', 'GO', 'GOING'),\n", " ('SAY', 'SAYING', 'RUN', 'RUNNING'),\n", " ('AUSTRALIA', 'AUSTRALIAN', 'FRANCE', 'FRENCH'),\n", " ('AUSTRALIA', 'AUSTRALIAN', 'SWITZERLAND', 'SWISS'),\n", " ('FRANCE', 'FRENCH', 'INDIA', 'INDIAN'),\n", " ('FRANCE', 'FRENCH', 'ISRAEL', 'ISRAELI'),\n", " ('FRANCE', 'FRENCH', 'SWITZERLAND', 'SWISS'),\n", " ('FRANCE', 'FRENCH', 'AUSTRALIA', 'AUSTRALIAN'),\n", " ('INDIA', 'INDIAN', 'ISRAEL', 'ISRAELI'),\n", " ('INDIA', 'INDIAN', 'SWITZERLAND', 'SWISS'),\n", " ('INDIA', 'INDIAN', 'FRANCE', 'FRENCH'),\n", " ('ISRAEL', 'ISRAELI', 'SWITZERLAND', 'SWISS'),\n", " ('ISRAEL', 'ISRAELI', 'AUSTRALIA', 'AUSTRALIAN'),\n", " ('ISRAEL', 'ISRAELI', 'FRANCE', 'FRENCH'),\n", " ('ISRAEL', 'ISRAELI', 'INDIA', 'INDIAN'),\n", " ('SWITZERLAND', 'SWISS', 'AUSTRALIA', 'AUSTRALIAN'),\n", " ('SWITZERLAND', 'SWISS', 'FRANCE', 'FRENCH'),\n", " ('SWITZERLAND', 'SWISS', 'INDIA', 'INDIAN'),\n", " ('SWITZERLAND', 'SWISS', 'ISRAEL', 'ISRAELI'),\n", " ('GOING', 'WENT', 'PAYING', 'PAID'),\n", " ('GOING', 'WENT', 'PLAYING', 'PLAYED'),\n", " ('GOING', 'WENT', 'SAYING', 'SAID'),\n", " ('GOING', 'WENT', 'TAKING', 'TOOK'),\n", " ('PAYING', 'PAID', 'PLAYING', 'PLAYED'),\n", " ('PAYING', 'PAID', 'TAKING', 'TOOK'),\n", " ('PAYING', 'PAID', 'GOING', 'WENT'),\n", " ('PLAYING', 'PLAYED', 'SAYING', 'SAID'),\n", " ('PLAYING', 'PLAYED', 'TAKING', 'TOOK'),\n", " ('PLAYING', 'PLAYED', 'GOING', 'WENT'),\n", " ('PLAYING', 'PLAYED', 'PAYING', 'PAID'),\n", " ('SAYING', 'SAID', 'TAKING', 'TOOK'),\n", " ('SAYING', 'SAID', 'GOING', 'WENT'),\n", " ('SAYING', 'SAID', 'PAYING', 'PAID'),\n", " ('SAYING', 'SAID', 'PLAYING', 'PLAYED'),\n", " ('TAKING', 'TOOK', 'GOING', 'WENT'),\n", " ('TAKING', 'TOOK', 'PAYING', 'PAID'),\n", " ('TAKING', 'TOOK', 'PLAYING', 'PLAYED'),\n", " ('TAKING', 'TOOK', 'SAYING', 'SAID'),\n", " ('BUILDING', 'BUILDINGS', 'CAR', 'CARS'),\n", " ('BUILDING', 'BUILDINGS', 'CHILD', 'CHILDREN'),\n", " ('BUILDING', 'BUILDINGS', 'MAN', 'MEN'),\n", " ('CAR', 'CARS', 'CHILD', 'CHILDREN'),\n", " ('CAR', 'CARS', 'MAN', 'MEN'),\n", " ('CAR', 'CARS', 'BUILDING', 'BUILDINGS'),\n", " ('CHILD', 'CHILDREN', 'MAN', 'MEN'),\n", " ('CHILD', 'CHILDREN', 'BUILDING', 'BUILDINGS'),\n", " ('CHILD', 'CHILDREN', 'CAR', 'CARS'),\n", " ('MAN', 'MEN', 'BUILDING', 'BUILDINGS'),\n", " ('MAN', 'MEN', 'CHILD', 'CHILDREN')]}]" ] }, "execution_count": 12, "metadata": {}, "output_type": "execute_result" } ], "source": [ "model_wrapper.accuracy(questions=datapath('questions-words.txt'))" ] }, { "cell_type": "code", "execution_count": 13, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "1.1133396301045417" ] }, "execution_count": 13, "metadata": {}, "output_type": "execute_result" } ], "source": [ "# Word Movers distance\n", "sentence_obama = 'Obama speaks to the media in Illinois'.lower().split()\n", "sentence_president = 'The president greets the press in Chicago'.lower().split()\n", "\n", "# Remove their stopwords.\n", "from nltk.corpus import stopwords\n", "stopwords = stopwords.words('english')\n", "sentence_obama = [w for w in sentence_obama if w not in stopwords]\n", "sentence_president = [w for w in sentence_president if w not in stopwords]\n", "\n", "# Compute WMD.\n", "distance = model_wrapper.wmdistance(sentence_obama, sentence_president)\n", "distance" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "anaconda-cloud": {}, "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.7.1" } }, "nbformat": 4, "nbformat_minor": 1 }
31,037
Python
.py
773
34.476067
519
0.547416
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,928
atmodel_tutorial.ipynb
piskvorky_gensim/docs/notebooks/atmodel_tutorial.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# The author-topic model: LDA with metadata\n", "\n", "In this tutorial, you will learn how to use the author-topic model in Gensim. We will apply it to a corpus consisting of scientific papers, to get insight about the authors of the papers.\n", "\n", "The author-topic model is an extension of Latent Dirichlet Allocation (LDA), that allows us to learn topic representations of authors in a corpus. The model can be applied to any kinds of labels on documents, such as tags on posts on the web. The model can be used as a novel way of data exploration, as features in machine learning pipelines, for author (or tag) prediction, or to simply leverage your topic model with existing metadata.\n", "\n", "To learn about the theoretical side of the author-topic model, see [Rosen-Zvi and co-authors 2004](https://mimno.infosci.cornell.edu/info6150/readings/398.pdf), for example. A report on the algorithm used in the Gensim implementation will be available soon.\n", "\n", "Naturally, familiarity with topic modelling, LDA and Gensim is assumed in this tutorial. If you are not familiar with either LDA, or its Gensim implementation, I would recommend starting there. Consider some of these resources:\n", "* Gentle introduction to the LDA model: http://blog.echen.me/2011/08/22/introduction-to-latent-dirichlet-allocation/\n", "* Gensim's LDA API documentation: https://radimrehurek.com/gensim/models/ldamodel.html\n", "* Topic modelling in Gensim: https://radimrehurek.com/topic_modeling_tutorial/2%20-%20Topic%20Modeling.html\n", "* [Pre-processing and training LDA](lda_training_tips.ipynb)\n", "\n", "\n", "> **NOTE:**\n", ">\n", "> To run this tutorial on your own, install Jupyter, Gensim, SpaCy, Scikit-Learn, Bokeh and Pandas, e.g. using pip:\n", ">\n", "> `pip install jupyter gensim spacy sklearn bokeh pandas`\n", ">\n", "> Note that you need to download some data for SpaCy using `python -m spacy.en.download`.\n", ">\n", "> Download the notebook at https://github.com/RaRe-Technologies/gensim/tree/develop/docs/notebooks/atmodel_tutorial.ipynb.\n", "\n", "In this tutorial, we will learn how to prepare data for the model, how to train it, and how to explore the resulting representation in different ways. We will inspect the topic representation of some well known authors like Geoffrey Hinton and Yann LeCun, and compare authors by plotting them in reduced dimensionality and performing similarity queries.\n", "\n", "## Analyzing scientific papers\n", "\n", "The data we will be using consists of scientific papers about machine learning, from the Neural Information Processing Systems conference (NIPS). It is the same dataset used in the [Pre-processing and training LDA](lda_training_tips.ipynb) tutorial, mentioned earlier.\n", "\n", "We will be performing qualitative analysis of the model, and at times this will require an understanding of the subject matter of the data. If you try running this tutorial on your own, consider applying it on a dataset with subject matter that you are familiar with. For example, try one of the [StackExchange datadump datasets](https://archive.org/details/stackexchange).\n", "\n", "You can download the data from Sam Roweis' website (http://www.cs.nyu.edu/~roweis/data.html). Or just run the cell below, and it will be downloaded and extracted into your `tmp." ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "--2017-01-16 12:29:12-- http://www.cs.nyu.edu/~roweis/data/nips12raw_str602.tgz\n", "Resolving www.cs.nyu.edu (www.cs.nyu.edu)... 128.122.49.30\n", "Connecting to www.cs.nyu.edu (www.cs.nyu.edu)|128.122.49.30|:80... connected.\n", "HTTP request sent, awaiting response... 200 OK\n", "Length: 12851423 (12M) [application/x-gzip]\n", "Saving to: ‘STDOUT’\n", "\n", "- 100%[===================>] 12.26M 3.33MB/s in 4.9s \n", "\n", "2017-01-16 12:29:18 (2.49 MB/s) - written to stdout [12851423/12851423]\n", "\n" ] } ], "source": [ "!wget -O - 'http://www.cs.nyu.edu/~roweis/data/nips12raw_str602.tgz' > /tmp/nips12raw_str602.tgz" ] }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [], "source": [ "import tarfile\n", "\n", "filename = '/tmp/nips12raw_str602.tgz'\n", "tar = tarfile.open(filename, 'r:gz')\n", "for item in tar:\n", " tar.extract(item, path='/tmp')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "In the following sections we will load the data, pre-process it, train the model, and explore the results using some of the implementation's functionality. Feel free to skip the loading and pre-processing for now, if you are familiar with the process.\n", "\n", "### Loading the data\n", "\n", "In the cell below, we crawl the folders and files in the dataset, and read the files into memory." ] }, { "cell_type": "code", "execution_count": 5, "metadata": {}, "outputs": [], "source": [ "import os, re\n", "from smart_open import smart_open\n", "\n", "# Folder containing all NIPS papers.\n", "data_dir = '/tmp/nipstxt/' # Set this path to the data on your machine.\n", "\n", "# Folders containin individual NIPS papers.\n", "yrs = ['00', '01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12']\n", "dirs = ['nips' + yr for yr in yrs]\n", "\n", "# Get all document texts and their corresponding IDs.\n", "docs = []\n", "doc_ids = []\n", "for yr_dir in dirs:\n", " files = os.listdir(data_dir + yr_dir) # List of filenames.\n", " for filen in files:\n", " # Get document ID.\n", " (idx1, idx2) = re.search('[0-9]+', filen).span() # Matches the indexes of the start end end of the ID.\n", " doc_ids.append(yr_dir[4:] + '_' + str(int(filen[idx1:idx2])))\n", " \n", " # Read document text.\n", " # Note: ignoring characters that cause encoding errors.\n", " with smart_open(data_dir + yr_dir + '/' + filen, encoding='utf-8', 'rb') as fid:\n", " txt = fid.read()\n", " \n", " # Replace any whitespace (newline, tabs, etc.) by a single space.\n", " txt = re.sub('\\s', ' ', txt)\n", " \n", " docs.append(txt)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Construct a mapping from author names to document IDs." ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [], "source": [ "from smart_open import smart_open\n", "filenames = [data_dir + 'idx/a' + yr + '.txt' for yr in yrs] # Using the years defined in previous cell.\n", "\n", "# Get all author names and their corresponding document IDs.\n", "author2doc = dict()\n", "i = 0\n", "for yr in yrs:\n", " # The files \"a00.txt\" and so on contain the author-document mappings.\n", " filename = data_dir + 'idx/a' + yr + '.txt'\n", " for line in smart_open(filename, errors='ignore', encoding='utf-8', 'rb'):\n", " # Each line corresponds to one author.\n", " contents = re.split(',', line)\n", " author_name = (contents[1] + contents[0]).strip()\n", " # Remove any whitespace to reduce redundant author names.\n", " author_name = re.sub('\\s', '', author_name)\n", " # Get document IDs for author.\n", " ids = [c.strip() for c in contents[2:]]\n", " if not author2doc.get(author_name):\n", " # This is a new author.\n", " author2doc[author_name] = []\n", " i += 1\n", " \n", " # Add document IDs to author.\n", " author2doc[author_name].extend([yr + '_' + id for id in ids])\n", "\n", "# Use an integer ID in author2doc, instead of the IDs provided in the NIPS dataset.\n", "# Mapping from ID of document in NIPS datast, to an integer ID.\n", "doc_id_dict = dict(zip(doc_ids, range(len(doc_ids))))\n", "# Replace NIPS IDs by integer IDs.\n", "for a, a_doc_ids in author2doc.items():\n", " for i, doc_id in enumerate(a_doc_ids):\n", " author2doc[a][i] = doc_id_dict[doc_id]" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Pre-processing text\n", "\n", "The text will be pre-processed using the following steps:\n", "* Tokenize text.\n", "* Replace all whitespace by single spaces.\n", "* Remove all punctuation and numbers.\n", "* Remove stopwords.\n", "* Lemmatize words.\n", "* Add multi-word named entities.\n", "* Add frequent bigrams.\n", "* Remove frequent and rare words.\n", "\n", "A lot of the heavy lifting will be done by the great package, Spacy. Spacy markets itself as \"industrial-strength natural language processing\", is fast, enables multiprocessing, and is easy to use. First, let's import it and load the NLP pipline in english." ] }, { "cell_type": "code", "execution_count": 3, "metadata": { "collapsed": true }, "outputs": [], "source": [ "import spacy\n", "nlp = spacy.load('en')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "In the code below, Spacy takes care of tokenization, removing non-alphabetic characters, removal of stopwords, lemmatization and named entity recognition.\n", "\n", "Note that we only keep named entities that consist of more than one word, as single word named entities are already there." ] }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "CPU times: user 9min 6s, sys: 276 ms, total: 9min 7s\n", "Wall time: 2min 52s\n" ] } ], "source": [ "%%time\n", "processed_docs = [] \n", "for doc in nlp.pipe(docs, n_threads=4, batch_size=100):\n", " # Process document using Spacy NLP pipeline.\n", " \n", " ents = doc.ents # Named entities.\n", "\n", " # Keep only words (no numbers, no punctuation).\n", " # Lemmatize tokens, remove punctuation and remove stopwords.\n", " doc = [token.lemma_ for token in doc if token.is_alpha and not token.is_stop]\n", "\n", " # Remove common words from a stopword list.\n", " #doc = [token for token in doc if token not in STOPWORDS]\n", "\n", " # Add named entities, but only if they are a compound of more than word.\n", " doc.extend([str(entity) for entity in ents if len(entity) > 1])\n", " \n", " processed_docs.append(doc)" ] }, { "cell_type": "code", "execution_count": 5, "metadata": { "collapsed": true }, "outputs": [], "source": [ "docs = processed_docs\n", "del processed_docs" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Below, we use a Gensim model to add bigrams. Note that this achieves the same goal as named entity recognition, that is, finding adjacent words that have some particular significance." ] }, { "cell_type": "code", "execution_count": 6, "metadata": { "scrolled": true }, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "/home/olavur/Dropbox/my_folder/workstuff/DTU/thesis/code/gensim/gensim/models/phrases.py:248: UserWarning: For a faster implementation, use the gensim.models.phrases.Phraser class\n", " warnings.warn(\"For a faster implementation, use the gensim.models.phrases.Phraser class\")\n" ] } ], "source": [ "# Compute bigrams.\n", "from gensim.models import Phrases\n", "# Add bigrams and trigrams to docs (only ones that appear 20 times or more).\n", "bigram = Phrases(docs, min_count=20)\n", "for idx in range(len(docs)):\n", " for token in bigram[docs[idx]]:\n", " if '_' in token:\n", " # Token is a bigram, add to document.\n", " docs[idx].append(token)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Now we are ready to construct a dictionary, as our vocabulary is finalized. We then remove common words (occurring $> 50\\%$ of the time), and rare words (occur $< 20$ times in total)." ] }, { "cell_type": "code", "execution_count": 7, "metadata": {}, "outputs": [], "source": [ "# Create a dictionary representation of the documents, and filter out frequent and rare words.\n", "\n", "from gensim.corpora import Dictionary\n", "dictionary = Dictionary(docs)\n", "\n", "# Remove rare and common tokens.\n", "# Filter out words that occur too frequently or too rarely.\n", "max_freq = 0.5\n", "min_wordcount = 20\n", "dictionary.filter_extremes(no_below=min_wordcount, no_above=max_freq)\n", "\n", "_ = dictionary[0] # This sort of \"initializes\" dictionary.id2token." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "We produce the vectorized representation of the documents, to supply the author-topic model with, by computing the bag-of-words." ] }, { "cell_type": "code", "execution_count": 8, "metadata": { "collapsed": true }, "outputs": [], "source": [ "# Vectorize data.\n", "\n", "# Bag-of-words representation of the documents.\n", "corpus = [dictionary.doc2bow(doc) for doc in docs]" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Let's inspect the dimensionality of our data." ] }, { "cell_type": "code", "execution_count": 9, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Number of authors: 2479\n", "Number of unique tokens: 6996\n", "Number of documents: 1740\n" ] } ], "source": [ "print('Number of authors: %d' % len(author2doc))\n", "print('Number of unique tokens: %d' % len(dictionary))\n", "print('Number of documents: %d' % len(corpus))" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Train and use model\n", "\n", "We train the author-topic model on the data prepared in the previous sections. \n", "\n", "The interface to the author-topic model is very similar to that of LDA in Gensim. In addition to a corpus, ID to word mapping (`id2word`) and number of topics (`num_topics`), the author-topic model requires either an author to document ID mapping (`author2doc`), or the reverse (`doc2author`).\n", "\n", "Below, we have also (this can be skipped for now):\n", "* Increased the number of `passes` over the dataset (to improve the convergence of the optimization problem).\n", "* Decreased the number of `iterations` over each document (related to the above).\n", "* Specified the mini-batch size (`chunksize`) (primarily to speed up training).\n", "* Turned off bound evaluation (`eval_every`) (as it takes a long time to compute).\n", "* Turned on automatic learning of the `alpha` and `eta` priors (to improve the convergence of the optimization problem).\n", "* Set the random state (`random_state`) of the random number generator (to make these experiments reproducible).\n", "\n", "We load the model, and train it." ] }, { "cell_type": "code", "execution_count": 10, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "CPU times: user 3.56 s, sys: 316 ms, total: 3.87 s\n", "Wall time: 3.65 s\n" ] } ], "source": [ "from gensim.models import AuthorTopicModel\n", "%time model = AuthorTopicModel(corpus=corpus, num_topics=10, id2word=dictionary.id2token, \\\n", " author2doc=author2doc, chunksize=2000, passes=1, eval_every=0, \\\n", " iterations=1, random_state=1)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "If you believe your model hasn't converged, you can continue training using `model.update()`. If you have additional documents and/or authors call `model.update(corpus, author2doc)`.\n", "\n", "Before we explore the model, let's try to improve upon it. To do this, we will train several models with different random initializations, by giving different seeds for the random number generator (`random_state`). We evaluate the topic coherence of the model using the [top_topics](https://radimrehurek.com/gensim/models/ldamodel.html#gensim.models.ldamodel.LdaModel.top_topics) method, and pick the model with the highest topic coherence.\n", "\n" ] }, { "cell_type": "code", "execution_count": 11, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "CPU times: user 11min 59s, sys: 2min 14s, total: 14min 13s\n", "Wall time: 11min 41s\n" ] } ], "source": [ "%%time\n", "model_list = []\n", "for i in range(5):\n", " model = AuthorTopicModel(corpus=corpus, num_topics=10, id2word=dictionary.id2token, \\\n", " author2doc=author2doc, chunksize=2000, passes=100, gamma_threshold=1e-10, \\\n", " eval_every=0, iterations=1, random_state=i)\n", " top_topics = model.top_topics(corpus)\n", " tc = sum([t[1] for t in top_topics])\n", " model_list.append((model, tc))" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Choose the model with the highest topic coherence." ] }, { "cell_type": "code", "execution_count": 12, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Topic coherence: -1.847e+03\n" ] } ], "source": [ "model, tc = max(model_list, key=lambda x: x[1])\n", "print('Topic coherence: %.3e' %tc)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "We save the model, to avoid having to train it again, and also show how to load it again." ] }, { "cell_type": "code", "execution_count": 13, "metadata": {}, "outputs": [], "source": [ "# Save model.\n", "model.save('/tmp/model.atmodel')" ] }, { "cell_type": "code", "execution_count": 14, "metadata": {}, "outputs": [], "source": [ "# Load model.\n", "model = AuthorTopicModel.load('/tmp/model.atmodel')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Explore author-topic representation\n", "\n", "Now that we have trained a model, we can start exploring the authors and the topics.\n", "\n", "First, let's simply print the most important words in the topics. Below we have printed topic 0. As we can see, each topic is associated with a set of words, and each word has a probability of being expressed under that topic." ] }, { "cell_type": "code", "execution_count": 15, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "[('chip', 0.014645100754555081),\n", " ('circuit', 0.011967493386263996),\n", " ('analog', 0.011466032752399413),\n", " ('control', 0.010067258628938444),\n", " ('implementation', 0.0078096719430403956),\n", " ('design', 0.0072620826472022419),\n", " ('implement', 0.0063648695668359189),\n", " ('signal', 0.0063389759280913392),\n", " ('vlsi', 0.0059415519461153785),\n", " ('processor', 0.0056545823226162124)]" ] }, "execution_count": 15, "metadata": {}, "output_type": "execute_result" } ], "source": [ "model.show_topic(0)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Below, we have given each topic a label based on what each topic seems to be about intuitively. " ] }, { "cell_type": "code", "execution_count": 42, "metadata": { "collapsed": true }, "outputs": [], "source": [ "topic_labels = ['Circuits', 'Neuroscience', 'Numerical optimization', 'Object recognition', \\\n", " 'Math/general', 'Robotics', 'Character recognition', \\\n", " 'Reinforcement learning', 'Speech recognition', 'Bayesian modelling']" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Rather than just calling `model.show_topics(num_topics=10)`, we format the output a bit so it is easier to get an overview." ] }, { "cell_type": "code", "execution_count": 43, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Label: Circuits\n", "Words: chip circuit analog control implementation design implement signal vlsi processor \n", "\n", "Label: Neuroscience\n", "Words: neuron cell spike response synaptic activity frequency stimulus synapse signal \n", "\n", "Label: Numerical optimization\n", "Words: gradient noise prediction w optimal nonlinear matrix approximation series variance \n", "\n", "Label: Object recognition\n", "Words: image visual object motion field direction representation map position orientation \n", "\n", "Label: Math/general\n", "Words: bound f generalization class let w p theorem y threshold \n", "\n", "Label: Robotics\n", "Words: dynamic control field trajectory neuron motor net forward l movement \n", "\n", "Label: Character recognition\n", "Words: node distance character layer recognition matrix image sequence p code \n", "\n", "Label: Reinforcement learning\n", "Words: action policy q reinforcement rule control optimal representation environment sequence \n", "\n", "Label: Speech recognition\n", "Words: recognition speech word layer classifier net classification hidden class context \n", "\n", "Label: Bayesian modelling\n", "Words: mixture gaussian likelihood prior data bayesian density sample cluster posterior \n", "\n" ] } ], "source": [ "for topic in model.show_topics(num_topics=10):\n", " print('Label: ' + topic_labels[topic[0]])\n", " words = ''\n", " for word, prob in model.show_topic(topic[0]):\n", " words += word + ' '\n", " print('Words: ' + words)\n", " print()" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "These topics are by no means perfect. They have problems such as *chained topics*, *intruded words*, *random topics*, and *unbalanced topics* (see [Mimno and co-authors 2011](https://people.cs.umass.edu/~wallach/publications/mimno11optimizing.pdf)). They will do for the purposes of this tutorial, however.\n", "\n", "Below, we use the `model[name]` syntax to retrieve the topic distribution for an author. Each topic has a probability of being expressed given the particular author, but only the ones above a certain threshold are shown." ] }, { "cell_type": "code", "execution_count": 18, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "[(6, 0.99976720177983869)]" ] }, "execution_count": 18, "metadata": {}, "output_type": "execute_result" } ], "source": [ "model['YannLeCun']" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Let's print the top topics of some authors. First, we make a function to help us do this more easily." ] }, { "cell_type": "code", "execution_count": 44, "metadata": { "collapsed": true }, "outputs": [], "source": [ "from pprint import pprint\n", "\n", "def show_author(name):\n", " print('\\n%s' % name)\n", " print('Docs:', model.author2doc[name])\n", " print('Topics:')\n", " pprint([(topic_labels[topic[0]], topic[1]) for topic in model[name]])" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Below, we print some high profile researchers and inspect them. Three of these, Yann LeCun, Geoffrey E. Hinton and Christof Koch, are spot on. \n", "\n", "Terrence J. Sejnowski's results are surprising, however. He is a neuroscientist, so we would expect him to get the \"neuroscience\" label. This may indicate that Sejnowski works with the neuroscience aspects of visual perception, or perhaps that we have labeled the topic incorrectly, or perhaps that this topic simply is not very informative." ] }, { "cell_type": "code", "execution_count": 55, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "\n", "YannLeCun\n", "Docs: [143, 406, 370, 495, 456, 449, 595, 616, 760, 752, 1532]\n", "Topics:\n", "[('Character recognition', 0.99976720177983869)]\n" ] } ], "source": [ "show_author('YannLeCun')" ] }, { "cell_type": "code", "execution_count": 46, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "\n", "GeoffreyE.Hinton\n", "Docs: [56, 143, 284, 230, 197, 462, 463, 430, 688, 784, 826, 848, 869, 1387, 1684, 1728]\n", "Topics:\n", "[('Object recognition', 0.42128917017624745),\n", " ('Math/general', 0.043249835412857811),\n", " ('Robotics', 0.11149925993091593),\n", " ('Bayesian modelling', 0.42388500261455564)]\n" ] } ], "source": [ "show_author('GeoffreyE.Hinton')" ] }, { "cell_type": "code", "execution_count": 47, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "\n", "TerrenceJ.Sejnowski\n", "Docs: [513, 530, 539, 468, 611, 581, 600, 594, 703, 711, 849, 981, 944, 865, 850, 883, 881, 1221, 1137, 1224, 1146, 1282, 1248, 1179, 1424, 1359, 1528, 1484, 1571, 1727, 1732]\n", "Topics:\n", "[('Object recognition', 0.99992379088787087)]\n" ] } ], "source": [ "show_author('TerrenceJ.Sejnowski')" ] }, { "cell_type": "code", "execution_count": 53, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "\n", "ChristofKoch\n", "Docs: [9, 221, 266, 272, 349, 411, 337, 371, 450, 483, 653, 663, 754, 712, 778, 921, 1212, 1285, 1254, 1533, 1489, 1580, 1441, 1657]\n", "Topics:\n", "[('Neuroscience', 0.99989393011046035)]\n" ] } ], "source": [ "show_author('ChristofKoch')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "#### Simple model evaluation methods\n", "\n", "We can compute the per-word bound, which is a measure of the model's predictive performance (you could also say that it is the reconstruction error).\n", "\n", "To do that, we need the `doc2author` dictionary, which we can build automatically." ] }, { "cell_type": "code", "execution_count": 24, "metadata": {}, "outputs": [], "source": [ "from gensim.models import atmodel\n", "doc2author = atmodel.construct_doc2author(model.corpus, model.author2doc)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Now let's evaluate the per-word bound." ] }, { "cell_type": "code", "execution_count": 25, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "-6.9955968712\n" ] } ], "source": [ "# Compute the per-word bound.\n", "# Number of words in corpus.\n", "corpus_words = sum(cnt for document in model.corpus for _, cnt in document)\n", "\n", "# Compute bound and divide by number of words.\n", "perwordbound = model.bound(model.corpus, author2doc=model.author2doc, \\\n", " doc2author=model.doc2author) / corpus_words\n", "print(perwordbound)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "We can evaluate the quality of the topics by computing the topic coherence, as in the LDA class. Use this to e.g. find out which of the topics are poor quality, or as a metric for model selection." ] }, { "cell_type": "code", "execution_count": 26, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "CPU times: user 15.6 s, sys: 4 ms, total: 15.6 s\n", "Wall time: 15.6 s\n" ] } ], "source": [ "%time top_topics = model.top_topics(model.corpus)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "#### Plotting the authors\n", "\n", "Now we're going to produce the kind of pacific archipelago looking plot below. The goal of this plot is to give you a way to explore the author-topic representation in an intuitive manner.\n", "\n", "We take all the author-topic distributions (stored in `model.state.gamma`) and embed them in a 2D space. To do this, we reduce the dimensionality of this data using t-SNE. \n", "\n", "t-SNE is a method that attempts to reduce the dimensionality of a dataset, while maintaining the distances between the points. That means that if two authors are close together in the plot below, then their topic distributions are similar.\n", "\n", "In the cell below, we transform the author-topic representation into the t-SNE space. You can increase the `smallest_author` value if you do not want to view all the authors with few documents." ] }, { "cell_type": "code", "execution_count": 27, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "CPU times: user 35.4 s, sys: 1.16 s, total: 36.5 s\n", "Wall time: 36.4 s\n" ] } ], "source": [ "%%time\n", "from sklearn.manifold import TSNE\n", "tsne = TSNE(n_components=2, random_state=0)\n", "smallest_author = 0 # Ignore authors with documents less than this.\n", "authors = [model.author2id[a] for a in model.author2id.keys() if len(model.author2doc[a]) >= smallest_author]\n", "_ = tsne.fit_transform(model.state.gamma[authors, :]) # Result stored in tsne.embedding_" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "We are now ready to make the plot.\n", "\n", "Note that if you run this notebook yourself, you will see a different graph. The random initialization of the model will be different, and the result will thus be different to some degree. You may find an entirely different representation of the data, or it may show the same interpretation slightly differently.\n", "\n", "If you can't see the plot, you are probably viewing this tutorial in a Jupyter Notebook. View it in an nbviewer instead at http://nbviewer.jupyter.org/github/rare-technologies/gensim/blob/develop/docs/notebooks/atmodel_tutorial.ipynb." ] }, { "cell_type": "code", "execution_count": 28, "metadata": { "scrolled": true }, "outputs": [ { "data": { "text/html": [ "\n", " <div class=\"bk-root\">\n", " <a href=\"http://bokeh.pydata.org\" target=\"_blank\" class=\"bk-logo bk-logo-small bk-logo-notebook\"></a>\n", " <span id=\"c8922b96-b8ff-4ac3-b6c6-882014f91988\">Loading BokehJS ...</span>\n", " </div>" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "application/javascript": [ "\n", "(function(global) {\n", " function now() {\n", " return new Date();\n", " }\n", "\n", " var force = \"1\";\n", "\n", " if (typeof (window._bokeh_onload_callbacks) === \"undefined\" || force !== \"\") {\n", " window._bokeh_onload_callbacks = [];\n", " window._bokeh_is_loading = undefined;\n", " }\n", "\n", "\n", " \n", " if (typeof (window._bokeh_timeout) === \"undefined\" || force !== \"\") {\n", " window._bokeh_timeout = Date.now() + 5000;\n", " window._bokeh_failed_load = false;\n", " }\n", "\n", " var NB_LOAD_WARNING = {'data': {'text/html':\n", " \"<div style='background-color: #fdd'>\\n\"+\n", " \"<p>\\n\"+\n", " \"BokehJS does not appear to have successfully loaded. If loading BokehJS from CDN, this \\n\"+\n", " \"may be due to a slow or bad network connection. Possible fixes:\\n\"+\n", " \"</p>\\n\"+\n", " \"<ul>\\n\"+\n", " \"<li>re-rerun `output_notebook()` to attempt to load from CDN again, or</li>\\n\"+\n", " \"<li>use INLINE resources instead, as so:</li>\\n\"+\n", " \"</ul>\\n\"+\n", " \"<code>\\n\"+\n", " \"from bokeh.resources import INLINE\\n\"+\n", " \"output_notebook(resources=INLINE)\\n\"+\n", " \"</code>\\n\"+\n", " \"</div>\"}};\n", "\n", " function display_loaded() {\n", " if (window.Bokeh !== undefined) {\n", " Bokeh.$(\"#c8922b96-b8ff-4ac3-b6c6-882014f91988\").text(\"BokehJS successfully loaded.\");\n", " } else if (Date.now() < window._bokeh_timeout) {\n", " setTimeout(display_loaded, 100)\n", " }\n", " }\n", "\n", " function run_callbacks() {\n", " window._bokeh_onload_callbacks.forEach(function(callback) { callback() });\n", " delete window._bokeh_onload_callbacks\n", " console.info(\"Bokeh: all callbacks have finished\");\n", " }\n", "\n", " function load_libs(js_urls, callback) {\n", " window._bokeh_onload_callbacks.push(callback);\n", " if (window._bokeh_is_loading > 0) {\n", " console.log(\"Bokeh: BokehJS is being loaded, scheduling callback at\", now());\n", " return null;\n", " }\n", " if (js_urls == null || js_urls.length === 0) {\n", " run_callbacks();\n", " return null;\n", " }\n", " console.log(\"Bokeh: BokehJS not loaded, scheduling load and callback at\", now());\n", " window._bokeh_is_loading = js_urls.length;\n", " for (var i = 0; i < js_urls.length; i++) {\n", " var url = js_urls[i];\n", " var s = document.createElement('script');\n", " s.src = url;\n", " s.async = false;\n", " s.onreadystatechange = s.onload = function() {\n", " window._bokeh_is_loading--;\n", " if (window._bokeh_is_loading === 0) {\n", " console.log(\"Bokeh: all BokehJS libraries loaded\");\n", " run_callbacks()\n", " }\n", " };\n", " s.onerror = function() {\n", " console.warn(\"failed to load library \" + url);\n", " };\n", " console.log(\"Bokeh: injecting script tag for BokehJS library: \", url);\n", " document.getElementsByTagName(\"head\")[0].appendChild(s);\n", " }\n", " };var element = document.getElementById(\"c8922b96-b8ff-4ac3-b6c6-882014f91988\");\n", " if (element == null) {\n", " console.log(\"Bokeh: ERROR: autoload.js configured with elementid 'c8922b96-b8ff-4ac3-b6c6-882014f91988' but no matching script tag was found. \")\n", " return false;\n", " }\n", "\n", " var js_urls = ['https://cdn.pydata.org/bokeh/release/bokeh-0.12.3.min.js', 'https://cdn.pydata.org/bokeh/release/bokeh-widgets-0.12.3.min.js'];\n", "\n", " var inline_js = [\n", " function(Bokeh) {\n", " Bokeh.set_log_level(\"info\");\n", " },\n", " \n", " function(Bokeh) {\n", " \n", " Bokeh.$(\"#c8922b96-b8ff-4ac3-b6c6-882014f91988\").text(\"BokehJS is loading...\");\n", " },\n", " function(Bokeh) {\n", " console.log(\"Bokeh: injecting CSS: https://cdn.pydata.org/bokeh/release/bokeh-0.12.3.min.css\");\n", " Bokeh.embed.inject_css(\"https://cdn.pydata.org/bokeh/release/bokeh-0.12.3.min.css\");\n", " console.log(\"Bokeh: injecting CSS: https://cdn.pydata.org/bokeh/release/bokeh-widgets-0.12.3.min.css\");\n", " Bokeh.embed.inject_css(\"https://cdn.pydata.org/bokeh/release/bokeh-widgets-0.12.3.min.css\");\n", " }\n", " ];\n", "\n", " function run_inline_js() {\n", " \n", " if ((window.Bokeh !== undefined) || (force === \"1\")) {\n", " for (var i = 0; i < inline_js.length; i++) {\n", " inline_js[i](window.Bokeh);\n", " }if (force === \"1\") {\n", " display_loaded();\n", " }} else if (Date.now() < window._bokeh_timeout) {\n", " setTimeout(run_inline_js, 100);\n", " } else if (!window._bokeh_failed_load) {\n", " console.log(\"Bokeh: BokehJS failed to load within specified timeout.\");\n", " window._bokeh_failed_load = true;\n", " } else if (!force) {\n", " var cell = $(\"#c8922b96-b8ff-4ac3-b6c6-882014f91988\").parents('.cell').data().cell;\n", " cell.output_area.append_execute_result(NB_LOAD_WARNING)\n", " }\n", "\n", " }\n", "\n", " if (window._bokeh_is_loading === 0) {\n", " console.log(\"Bokeh: BokehJS loaded, going straight to plotting\");\n", " run_inline_js();\n", " } else {\n", " load_libs(js_urls, function() {\n", " console.log(\"Bokeh: BokehJS plotting callback run at\", now());\n", " run_inline_js();\n", " });\n", " }\n", "}(this));" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "# Tell Bokeh to display plots inside the notebook.\n", "from bokeh.io import output_notebook\n", "output_notebook()" ] }, { "cell_type": "code", "execution_count": 29, "metadata": {}, "outputs": [ { "data": { "text/html": [ "\n", "\n", " <div class=\"bk-root\">\n", " <div class=\"plotdiv\" id=\"84a208a9-32ce-4111-b9e4-776e60455d02\"></div>\n", " </div>\n", "<script type=\"text/javascript\">\n", " \n", " (function(global) {\n", " function now() {\n", " return new Date();\n", " }\n", " \n", " var force = \"\";\n", " \n", " if (typeof (window._bokeh_onload_callbacks) === \"undefined\" || force !== \"\") {\n", " window._bokeh_onload_callbacks = [];\n", " window._bokeh_is_loading = undefined;\n", " }\n", " \n", " \n", " \n", " if (typeof (window._bokeh_timeout) === \"undefined\" || force !== \"\") {\n", " window._bokeh_timeout = Date.now() + 0;\n", " window._bokeh_failed_load = false;\n", " }\n", " \n", " var NB_LOAD_WARNING = {'data': {'text/html':\n", " \"<div style='background-color: #fdd'>\\n\"+\n", " \"<p>\\n\"+\n", " \"BokehJS does not appear to have successfully loaded. If loading BokehJS from CDN, this \\n\"+\n", " \"may be due to a slow or bad network connection. Possible fixes:\\n\"+\n", " \"</p>\\n\"+\n", " \"<ul>\\n\"+\n", " \"<li>re-rerun `output_notebook()` to attempt to load from CDN again, or</li>\\n\"+\n", " \"<li>use INLINE resources instead, as so:</li>\\n\"+\n", " \"</ul>\\n\"+\n", " \"<code>\\n\"+\n", " \"from bokeh.resources import INLINE\\n\"+\n", " \"output_notebook(resources=INLINE)\\n\"+\n", " \"</code>\\n\"+\n", " \"</div>\"}};\n", " \n", " function display_loaded() {\n", " if (window.Bokeh !== undefined) {\n", " Bokeh.$(\"#84a208a9-32ce-4111-b9e4-776e60455d02\").text(\"BokehJS successfully loaded.\");\n", " } else if (Date.now() < window._bokeh_timeout) {\n", " setTimeout(display_loaded, 100)\n", " }\n", " }\n", " \n", " function run_callbacks() {\n", " window._bokeh_onload_callbacks.forEach(function(callback) { callback() });\n", " delete window._bokeh_onload_callbacks\n", " console.info(\"Bokeh: all callbacks have finished\");\n", " }\n", " \n", " function load_libs(js_urls, callback) {\n", " window._bokeh_onload_callbacks.push(callback);\n", " if (window._bokeh_is_loading > 0) {\n", " console.log(\"Bokeh: BokehJS is being loaded, scheduling callback at\", now());\n", " return null;\n", " }\n", " if (js_urls == null || js_urls.length === 0) {\n", " run_callbacks();\n", " return null;\n", " }\n", " console.log(\"Bokeh: BokehJS not loaded, scheduling load and callback at\", now());\n", " window._bokeh_is_loading = js_urls.length;\n", " for (var i = 0; i < js_urls.length; i++) {\n", " var url = js_urls[i];\n", " var s = document.createElement('script');\n", " s.src = url;\n", " s.async = false;\n", " s.onreadystatechange = s.onload = function() {\n", " window._bokeh_is_loading--;\n", " if (window._bokeh_is_loading === 0) {\n", " console.log(\"Bokeh: all BokehJS libraries loaded\");\n", " run_callbacks()\n", " }\n", " };\n", " s.onerror = function() {\n", " console.warn(\"failed to load library \" + url);\n", " };\n", " console.log(\"Bokeh: injecting script tag for BokehJS library: \", url);\n", " document.getElementsByTagName(\"head\")[0].appendChild(s);\n", " }\n", " };var element = document.getElementById(\"84a208a9-32ce-4111-b9e4-776e60455d02\");\n", " if (element == null) {\n", " console.log(\"Bokeh: ERROR: autoload.js configured with elementid '84a208a9-32ce-4111-b9e4-776e60455d02' but no matching script tag was found. \")\n", " return false;\n", " }\n", " \n", " var js_urls = [];\n", " \n", " var inline_js = [\n", " function(Bokeh) {\n", " Bokeh.$(function() {\n", " var docs_json = {\"e64bc00d-c5e8-48c6-85d7-9d719e821b4d\":{\"roots\":{\"references\":[{\"attributes\":{\"fill_alpha\":{\"value\":0.6},\"fill_color\":{\"value\":\"#1f77b4\"},\"line_color\":{\"value\":null},\"radius\":{\"field\":\"radii\",\"units\":\"data\"},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"0cb98164-2232-4447-a4b5-7c515c3f0dfd\",\"type\":\"Circle\"},{\"attributes\":{\"bottom_units\":\"screen\",\"fill_alpha\":{\"value\":0.5},\"fill_color\":{\"value\":\"lightgrey\"},\"left_units\":\"screen\",\"level\":\"overlay\",\"line_alpha\":{\"value\":1.0},\"line_color\":{\"value\":\"black\"},\"line_dash\":[4,4],\"line_width\":{\"value\":2},\"plot\":null,\"render_mode\":\"css\",\"right_units\":\"screen\",\"top_units\":\"screen\"},\"id\":\"a140a9ad-34dc-4a95-9824-7d2c71f5f40d\",\"type\":\"BoxAnnotation\"},{\"attributes\":{},\"id\":\"25df7d2f-cd83-424f-8959-3cff8b4f9b23\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{\"plot\":{\"id\":\"5fca9abb-8d94-4900-a388-d2a3b67dc489\",\"subtype\":\"Figure\",\"type\":\"Plot\"},\"ticker\":{\"id\":\"80b48167-b15d-4e4b-84db-f2ce63ed0e5c\",\"type\":\"BasicTicker\"}},\"id\":\"4d8ea3f6-76e1-4e3c-b7c9-7d5f2e4a163f\",\"type\":\"Grid\"},{\"attributes\":{\"callback\":null},\"id\":\"e1e4ea7e-aec1-4c9f-a0be-016ccbc3eaa4\",\"type\":\"DataRange1d\"},{\"attributes\":{\"formatter\":{\"id\":\"25df7d2f-cd83-424f-8959-3cff8b4f9b23\",\"type\":\"BasicTickFormatter\"},\"plot\":{\"id\":\"5fca9abb-8d94-4900-a388-d2a3b67dc489\",\"subtype\":\"Figure\",\"type\":\"Plot\"},\"ticker\":{\"id\":\"80b48167-b15d-4e4b-84db-f2ce63ed0e5c\",\"type\":\"BasicTicker\"}},\"id\":\"50a85230-5c72-4045-ac14-881f6f307baf\",\"type\":\"LinearAxis\"},{\"attributes\":{},\"id\":\"ea6a8c94-8c7d-4c1e-a218-083495e53e2b\",\"type\":\"ToolEvents\"},{\"attributes\":{\"plot\":{\"id\":\"5fca9abb-8d94-4900-a388-d2a3b67dc489\",\"subtype\":\"Figure\",\"type\":\"Plot\"}},\"id\":\"7e83a056-f89c-4f03-bbde-aa8af0208811\",\"type\":\"ResetTool\"},{\"attributes\":{\"plot\":{\"id\":\"5fca9abb-8d94-4900-a388-d2a3b67dc489\",\"subtype\":\"Figure\",\"type\":\"Plot\"}},\"id\":\"7f19a59b-e39a-4e87-811d-f0552f9a90af\",\"type\":\"WheelZoomTool\"},{\"attributes\":{\"callback\":null,\"plot\":{\"id\":\"5fca9abb-8d94-4900-a388-d2a3b67dc489\",\"subtype\":\"Figure\",\"type\":\"Plot\"},\"tooltips\":[[\"author\",\"@author_names\"],[\"size\",\"@author_sizes\"]]},\"id\":\"a2e961ed-115b-4d7d-8905-c960988fa9f0\",\"type\":\"HoverTool\"},{\"attributes\":{},\"id\":\"1fb28c9f-40b7-40b9-be69-1b7e44039156\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{\"callback\":null,\"overlay\":{\"id\":\"afcc2163-43b4-4522-8f27-eec835514ddc\",\"type\":\"PolyAnnotation\"},\"plot\":{\"id\":\"5fca9abb-8d94-4900-a388-d2a3b67dc489\",\"subtype\":\"Figure\",\"type\":\"Plot\"}},\"id\":\"bdad9ad5-95a7-4dd7-b3c3-5d040340d9a5\",\"type\":\"LassoSelectTool\"},{\"attributes\":{\"active_drag\":\"auto\",\"active_scroll\":\"auto\",\"active_tap\":\"auto\",\"tools\":[{\"id\":\"a2e961ed-115b-4d7d-8905-c960988fa9f0\",\"type\":\"HoverTool\"},{\"id\":\"936102af-cadc-4ada-880c-1ae1e1f451ed\",\"type\":\"CrosshairTool\"},{\"id\":\"9651b508-3ce2-4350-891e-aca5a9d9c0fe\",\"type\":\"PanTool\"},{\"id\":\"7f19a59b-e39a-4e87-811d-f0552f9a90af\",\"type\":\"WheelZoomTool\"},{\"id\":\"9e509916-8395-4d8a-b781-f9a92b207e84\",\"type\":\"BoxZoomTool\"},{\"id\":\"7e83a056-f89c-4f03-bbde-aa8af0208811\",\"type\":\"ResetTool\"},{\"id\":\"c0e30173-6a62-439d-afdd-cbacc8447f65\",\"type\":\"SaveTool\"},{\"id\":\"bdad9ad5-95a7-4dd7-b3c3-5d040340d9a5\",\"type\":\"LassoSelectTool\"}]},\"id\":\"d5adedf2-aede-40d1-8932-4b3686e6d1fb\",\"type\":\"Toolbar\"},{\"attributes\":{},\"id\":\"b1533272-adf8-4cd1-8b85-a38220ef2199\",\"type\":\"BasicTicker\"},{\"attributes\":{\"below\":[{\"id\":\"50a85230-5c72-4045-ac14-881f6f307baf\",\"type\":\"LinearAxis\"}],\"left\":[{\"id\":\"b23536e4-ee8e-45b2-b1b7-8c23a21ebdc6\",\"type\":\"LinearAxis\"}],\"renderers\":[{\"id\":\"50a85230-5c72-4045-ac14-881f6f307baf\",\"type\":\"LinearAxis\"},{\"id\":\"4d8ea3f6-76e1-4e3c-b7c9-7d5f2e4a163f\",\"type\":\"Grid\"},{\"id\":\"b23536e4-ee8e-45b2-b1b7-8c23a21ebdc6\",\"type\":\"LinearAxis\"},{\"id\":\"d9a2f81a-6ad0-494d-b9b2-519d5466bf55\",\"type\":\"Grid\"},{\"id\":\"a140a9ad-34dc-4a95-9824-7d2c71f5f40d\",\"type\":\"BoxAnnotation\"},{\"id\":\"afcc2163-43b4-4522-8f27-eec835514ddc\",\"type\":\"PolyAnnotation\"},{\"id\":\"69fd2b1b-2091-4ca4-b58d-758329ef159c\",\"type\":\"GlyphRenderer\"}],\"title\":{\"id\":\"ce0bfd0a-0b2b-4e69-b780-4a290b62b2a3\",\"type\":\"Title\"},\"tool_events\":{\"id\":\"ea6a8c94-8c7d-4c1e-a218-083495e53e2b\",\"type\":\"ToolEvents\"},\"toolbar\":{\"id\":\"d5adedf2-aede-40d1-8932-4b3686e6d1fb\",\"type\":\"Toolbar\"},\"x_range\":{\"id\":\"e1e4ea7e-aec1-4c9f-a0be-016ccbc3eaa4\",\"type\":\"DataRange1d\"},\"y_range\":{\"id\":\"69670d03-aa44-47b5-857f-83ad85f61c02\",\"type\":\"DataRange1d\"}},\"id\":\"5fca9abb-8d94-4900-a388-d2a3b67dc489\",\"subtype\":\"Figure\",\"type\":\"Plot\"},{\"attributes\":{\"dimension\":1,\"plot\":{\"id\":\"5fca9abb-8d94-4900-a388-d2a3b67dc489\",\"subtype\":\"Figure\",\"type\":\"Plot\"},\"ticker\":{\"id\":\"b1533272-adf8-4cd1-8b85-a38220ef2199\",\"type\":\"BasicTicker\"}},\"id\":\"d9a2f81a-6ad0-494d-b9b2-519d5466bf55\",\"type\":\"Grid\"},{\"attributes\":{\"callback\":null,\"column_names\":[\"author_sizes\",\"x\",\"author_names\",\"radii\",\"y\"],\"data\":{\"author_names\":[\"O.I.Tsioutsias\",\"MichaelHumphreys\",\"MatthewA.Wilson\",\"RyotaroKamimura\",\"KariTorkkola\",\"DavidFeld\",\"ThomasClare\",\"HervdBourlard\",\"BernhardSchottky\",\"SvilenTzonev\",\"SatoshiYamada\",\"GuyJ.Brown\",\"RobertSnapp\",\"R.R.de-Ruyter-van-Steveninck\",\"JeremyFrank\",\"MiriamSchulte\",\"DiegoSona\",\"MichaelKearns\",\"TakaoWatanabe\",\"MarcH.Cohen\",\"AjayGupta\",\"AlessandroSperduti\",\"SmartGeman\",\"T.Nakai\",\"S.Schaal\",\"J.Walter\",\"BrianRasnow\",\"GaryM.Scott\",\"S.C.Ahalt\",\"ChristopherG.Atkeson\",\"HiroakiGomi\",\"KevinA.Archie\",\"Te-WonLee\",\"DonaldB.Malkoff\",\"EnricoBocchieri\",\"RonaldH.Silverman\",\"GregMartin\",\"MishaPavel\",\"I.Jouny\",\"ToshiakiOkamoto\",\"DavidAndre\",\"A.H.L.West\",\"PeterFoltz\",\"J.Deppisch\",\"ParthaNiyogi\",\"AapoHyvarrinen\",\"AntoninaStarita\",\"DanielPotter\",\"Jen-LunYuan\",\"PeterBartlett\",\"RichardJ.Coggins\",\"HarrisDrucker\",\"StefanoMonti\",\"DavidMarson\",\"GaleL.Martin\",\"MosheKaro\",\"S.SidneyFels\",\"JoseA.B.Fortes\",\"YoramSinger\",\"SatinderSingh\",\"GideonDror\",\"L.Xu\",\"HidemitsuOgawa\",\"HowardHenry\",\"MatthewJ.Beal\",\"HermanVerrelst\",\"ZoubinGhahramani\",\"D.S.Touretzky\",\"AvijitSaha\",\"RandallR.Spangler\",\"DaphneBavelier\",\"YvesGrandvalet\",\"MichaelDuff\",\"DavidA.Kessler\",\"JosephB.Keller\",\"RonaldG.Benson\",\"AlanJ.Harget\",\"RichardK.Belew\",\"MarkGluck\",\"A.B.Bonds\",\"D.D.Coon\",\"OleWinther\",\"JohnKruschke\",\"CatherineE.Myers\",\"EricI.Knudsen\",\"AmirDembo\",\"ChristophE.Schreiner\",\"MalcolmSlaney\",\"AndreStechert\",\"AliH.Sayed\",\"L.Y.Pratt\",\"AndrewBlake\",\"EricVittoz\",\"MarioBlaum\",\"AdamJ.Grove\",\"A.Horst\",\"J.Hajto\",\"YosefRinott\",\"MichaelFleisher\",\"AhChungTsoi\",\"KanBoonyanit\",\"Andrevan-Schaik\",\"HiroyukiNakahara\",\"ToddSoukup\",\"ThorsteinnS.Rognvaldsson\",\"B.Flower\",\"SrinageshSatyanarayana\",\"JohnBain\",\"MichaelS.Gray\",\"PeterRappelsberger\",\"MartinI.Sereno\",\"AndrewMoore\",\"JesperVedelsby\",\"J.A.F.Leite\",\"T.Maxwell\",\"ConradC.Galland\",\"MichaelM.Merzenich\",\"P.Leong\",\"MarkPlutowski\",\"TimHoriuchi\",\"C.Koch\",\"H.G.Zimmermann\",\"D.S.Tang\",\"DavidG.Ward\",\"JonathanBaxter\",\"JoachimUtans\",\"CyrilLatimer\",\"PeterAdorjan\",\"M.Gilloux\",\"PatrickMoore\",\"RonaldL.Calabrese\",\"TheoGeisel\",\"A.Gersho\",\"FabioSolari\",\"A.Sangiovanni-Vincentelli\",\"R.M.Borisyuk\",\"KenjiMatsumoto\",\"WesleyE.Snyder\",\"IraG.Smotroff\",\"GeoffreyE.Hinton\",\"EmanuelaBricolo\",\"H.U.Bauer\",\"A.MiguelSanMartin\",\"JeffreyEMonaco\",\"KevinE.Martin\",\"TimothyChiu\",\"PenttiKanerva\",\"DanielM.Wolpert\",\"JamesR.Williamson\",\"MartinJ.Johnson\",\"B.G.Home\",\"NadaE.Matic\",\"UriRokni\",\"DavidScheeff\",\"EdgarA.Brown\",\"RandallD.Beer\",\"S.Liu\",\"JoumanaGhosn\",\"A.Pentland\",\"BrendaClaiborne\",\"Bertde-Vries\",\"TadahiroOhmi\",\"J.C.Pearson\",\"DeirdreW.Wheeler\",\"H.H.Chen\",\"Benjaminvan-Roy\",\"SylvieRyckebusch\",\"ChristopherBowman\",\"StevenA.Harp\",\"A.Moopenn\",\"E.Littmann\",\"AndreasStolcke\",\"R.Sitaramen\",\"GeoffreyGoodhill\",\"AthanasiosG.Tsirukis\",\"EricChang\",\"W.FritzKruger\",\"A.vanSchaik\",\"PadhraicSmyth\",\"DavidS.Touretzky\",\"AlanBarr\",\"ThomasH.Brown\",\"AlanF.Murray\",\"LouiseOsterholtz\",\"B.V.K.VijayaKumar\",\"GerardDreyfus\",\"JohnK.Williams\",\"EricB.Baum\",\"MichaelIsard\",\"ChristopherAtkeson\",\"LanceM.Optican\",\"GeoffreyOrsak\",\"DavidA.Robinson\",\"JohnBaras\",\"AmitManwani\",\"AnthonyLaVigna\",\"MichaelI.Jordan\",\"ShellyGoggin\",\"M.A.Jabri\",\"JamesK.Peterson\",\"EytanDomany\",\"RobertE.Schapire\",\"J.Beck\",\"MarwanJabri\",\"ToddS.Braver\",\"UryNaftaly\",\"M.S.Bartlett\",\"RonaldA.Cole\",\"EHergert\",\"G.G.Blasdel\",\"JessicaD.Bayliss\",\"ThomasPetsche\",\"H.Pan\",\"GarethJames\",\"IsaacMeilijson\",\"MazinRahim\",\"W.R.Gardner\",\"DavidMontana\",\"S.Baluja\",\"RichardGolden\",\"AlbertoSangiovanni-Vincentelli\",\"KennethA.Norman\",\"ParryHusbands\",\"RichardFozzard\",\"NevinL.Zhang\",\"JacquesGautrals\",\"EyalCohen\",\"T.Mitchell\",\"ScottKirkpatrick\",\"G.Dreyfus\",\"BarbaraKlein\",\"LionelTarassenko\",\"L.D.Jackel\",\"CharlesL.Isbell\",\"StephenJ.Hanson\",\"AdamPrtigel-Bennett\",\"M.Mahowald\",\"RichardLyon\",\"HeikoNeumann\",\"BartlettW.Mel\",\"BerndFritzke\",\"MosheSipper\",\"RicardoA.MarquesPereira\",\"MichaelSeibert\",\"S.Thrun\",\"J.L.Elman\",\"T.Hastie\",\"JohnE.W.Mayhew\",\"AchimStahlberger\",\"EricMjolsness\",\"HeinzSchuster\",\"ChrisJ.C.Burges\",\"MarioMarchand\",\"GeoffreyFox\",\"Meng-JangLin\",\"PaulEkman\",\"ColinHumphties\",\"GennadyS.Cymbalyuk\",\"DonnieHenderson\",\"C.A.Micchelli\",\"MarwanJabd\",\"JackL.Meador\",\"RaoulTawel\",\"AlirezaKhotanzad\",\"ThomasRagg\",\"VolkerRoth\",\"A.Sergejew\",\"HeinrichH.Btilthoff\",\"NicholasR.Howe\",\"DougJohnson\",\"SantoshS.Venkatesh\",\"AlanEMurray\",\"C.M.Bishop\",\"JaakkoHollmen\",\"D.Chen\",\"GeoffreyTowell\",\"CristophBregler\",\"StevenNowlan\",\"DavidSomers\",\"BjomLambrigsten\",\"JamesJ.Knierim\",\"YiLi\",\"TimothyW.Cacciatore\",\"D.M.Titterington\",\"SatoruShiono\",\"ChienPingLu\",\"CraigT.Jin\",\"AndrewW.Moore\",\"A.J.Bell\",\"VwaniRoychowdhury\",\"L.F.Abbott\",\"B.Parmanto\",\"StephenChurcher\",\"N.Toomarian\",\"NaftaliTishby\",\"StephenPiche\",\"P.S.Bradley\",\"ArmandoManduca\",\"NeilLawrence\",\"EricCourchesne\",\"AntonGunzinger\",\"AnthonyV.W.Smith\",\"ChristopherJ.Merz\",\"O.Miller\",\"AndrewM.Finch\",\"PeterTifio\",\"H.S.Baird\",\"C.Stevens\",\"A.Afghan\",\"MarianS.Bartlett\",\"MarkA.Rubin\",\"NiallMcLoughlin\",\"CharlesElbaurn\",\"DanielM.Kammen\",\"DominikHornel\",\"JohnPlatt\",\"JoeTebelskis\",\"ToddK.Leen\",\"AlfonsoRenart\",\"M.Kearns\",\"GenevieveB.Orr\",\"LeemonBaird\",\"JimChristian\",\"VicenteHonrubia\",\"GaryBradshaw\",\"J.Hertz\",\"DmitriB.Chklovskii\",\"Tzi-DarChiueh\",\"AlbertoBertoni\",\"ShimonEdelman\",\"KwokFaiHui\",\"MarkOllila\",\"DavidL.Bisset\",\"ManfredK.Warmuth\",\"PaatRusmevichiemong\",\"J.Sirosh\",\"T.Petsehe\",\"SteliosM.Smimakis\",\"DanRoth\",\"LanceR.Williams\",\"RuthJ.Williams\",\"PietroPerona\",\"AssafJ.Zeevi\",\"N.H.Wulff\",\"T.Rebotier\",\"KlausPrank\",\"R.K.Alley\",\"R.Gourley\",\"PaulViola\",\"BhaskarDasGupta\",\"Andrfivan-Schaik\",\"DavidMarsan\",\"MarkusSvensen\",\"A.Sato\",\"TobiasMann\",\"NelloCristianini\",\"YoavFreund\",\"MarthaFarah\",\"FranklinJ.Rudolph\",\"PeterKazlas\",\"G.Jackson\",\"JimKeeler\",\"HaimSompolinsky\",\"SophieDeneve\",\"CarreitSahar-Pikielny\",\"MarioP.Vecchi\",\"HansP.Graf\",\"J.Larsen\",\"AnthonyJayakumar\",\"LeonardG.C.Hamey\",\"JamesBower\",\"TakashiOnoda\",\"YuzoHirai\",\"E.Mjolsness\",\"MarkSaffman\",\"DavidE.VandenBout\",\"GfintherPalm\",\"GianlucaBontempi\",\"W.Ross\",\"Y.Cboe\",\"G.L.Martin\",\"Y.Zhao\",\"ShaiFine\",\"HagaiAttias\",\"JohnE.Hogden\",\"VolkerTresp\",\"YoshiroMiyata\",\"Chuan-LinWu\",\"DanielS.Clouse\",\"JohnMakhoul\",\"PhilippeO.Pouliquen\",\"Ting-ChuenPong\",\"NirFriedman\",\"W.Hubbard\",\"ThomasAnastasio\",\"KristRoginski\",\"PhilipM.Long\",\"JamesGlynn\",\"VictorZue\",\"DavidServan-Schreiber\",\"FrankWilczek\",\"A.G.Barto\",\"DietrichWettschereck\",\"C.E.Schreiner\",\"ChrisM.Bishop\",\"YasuhiroWada\",\"A.P.Thakoor\",\"JoshuaTenenbaum\",\"I.Guyon\",\"JeffMellstrom\",\"R.Etienne-Cummings\",\"Ki-ChulKim\",\"BrunoCessac\",\"G.Cauwenberghs\",\"FrancisQuek\",\"B.V.Roy\",\"ThomasG.Edwards\",\"JurgenHollatz\",\"PhillipAlvelda\",\"A.N.Michel\",\"DianeLitman\",\"AndreJ.Noest\",\"JosephCollard\",\"PaulDean\",\"GianlucaDonato\",\"JackGelfand\",\"EnnioMingolla\",\"Z.Chi\",\"MichaelG.Dyer\",\"PaoloGaudiano\",\"NigelDuffy\",\"C.F.Beckmann\",\"EsterLevin\",\"Y.Konig\",\"L.C.Parra\",\"JoshuaChover\",\"R.E.Jenkins\",\"AkitoSakurai\",\"GalChechik\",\"EricVatikiotis-Bateson\",\"EdwardW.Kairiss\",\"JoaoF.G.de-Freitas\",\"S.Yu\",\"W.ScottStornetta\",\"B.Yuhas\",\"IlSongHan\",\"NormanYarvin\",\"D.P.Helmbold\",\"JosefZihl\",\"PaulM.Chau\",\"FerdinandoMussa-lvaldi\",\"AjayN.Jain\",\"RobertB.Darling\",\"HemantS.Kudrimoti\",\"HarveyKasdan\",\"TommiJaakkola\",\"DeLiangWang\",\"MichaelChuang\",\"L.C.Dixon\",\"PrahladGupta\",\"A.W.Moore\",\"JohnPearson\",\"FlorisTakens\",\"LloydWatts\",\"P.N.Sabes\",\"PatrickAgin\",\"LesAtlas\",\"KurtFleischer\",\"R.Miikkulainen\",\"M.Marchand\",\"DarkoStefanovic\",\"RichardG.M.Morris\",\"RaphaelFeraud\",\"A.Kowalczyk\",\"DavidTouretzky\",\"W.ThomasMiller\",\"RaymondL.Watrous\",\"SmartRussell\",\"A.M.Annaswamy\",\"JosephPolifroni\",\"EdwardReitman\",\"RonaldSverdlove\",\"ChristianLebiere\",\"DavidNix\",\"MarkZlochin\",\"MarkKvale\",\"DavidHaussler\",\"RobertoPieraccini\",\"FangyuGao\",\"StephenP.DeWeerth\",\"ChongGu\",\"EdwardSchwartz\",\"ChristianeLinster\",\"SteveWaterhouse\",\"MichaelGasser\",\"MichaelBrownlow\",\"GeraldSommer\",\"Mohammed-AbdelGhani\",\"LaurentItti\",\"LauranceT.Maloney\",\"D.S.C.So\",\"AmirF.Atiya\",\"EduardoD.Sontag\",\"JosefZeitlhofer\",\"H.R.Doyle\",\"DanielD.Lee\",\"M.W.Pealersen\",\"IdoKanter\",\"C.E.Rasmussen\",\"RichardZemel\",\"H.Bolouri\",\"StephenM.Omohundro\",\"JackL.Gallant\",\"MishaMahowald\",\"DavidRogers\",\"LeifH.Finkel\",\"PeterMarbach\",\"C.L.Fry\",\"PeterF.Rowat\",\"JordanPollack\",\"E.Domany\",\"Mark.RSydorenko\",\"MiguelA.Carreira-Perpinan\",\"DavidLowe\",\"AndrewBack\",\"MaryTabasko\",\"R.Janow\",\"Ming-HsuanYang\",\"KamilA.Grajski\",\"JoseAmbros-Ingerson\",\"J.D.Cowan\",\"ErikD.Lumer\",\"EdwardStern\",\"C.Kenyon\",\"C.J.Wellekens\",\"DeanPomerleau\",\"G.Indiveri\",\"NorbertoM.Grzywacz\",\"StephenG.Lisberger\",\"JamesM.Goodwin\",\"RichardJ.Mammone\",\"J.Baxter\",\"LeonN.Cooper\",\"StephenCox\",\"SubutaiAhmad\",\"CarlE.Rasmussen\",\"MikeSchuster\",\"LarryYaeger\",\"E.Erwin\",\"M.J.Rose\",\"KukjinKang\",\"R.Zecchina\",\"LeonidKruglyak\",\"RafaelMalach\",\"P.Stone\",\"MichelCrepon\",\"JianfengFeng\",\"MartineNaillon\",\"E.Ersu\",\"VerenaHebler\",\"K.VenkateshPrasad\",\"AlexPentland\",\"RogerCheng\",\"PavelLaskov\",\"JoachimBuhmann\",\"FransM.Coetzee\",\"D.Sherrington\",\"AnandRangarajan\",\"JosefSkrzypek\",\"AndrewR.Barron\",\"MichaelJ.Pazzani\",\"UsamaFayyad\",\"DanielKammen\",\"E.Zohary\",\"AdAertsen\",\"J.Alspector\",\"M.Blatt\",\"J.C.Jackson\",\"JohnKolen\",\"BarakPearlmutter\",\"JimSchimert\",\"DimitriBertsekas\",\"MarkusSchenkel\",\"DavidHelmbold\",\"HisashiSuzuki\",\"Jean-PierreNadal\",\"HananDavidowitz\",\"EduardSackinger\",\"ClaudineMasson\",\"KahKaySung\",\"AndreElisseeff\",\"DeanBrettle\",\"R.ChristopherdeCharms\",\"StevenS.Watkins\",\"D.Brandeis\",\"KevinR.Wheeler\",\"StephenOmohundro\",\"DavidPrice\",\"DaweiDong\",\"AlanH.Barr\",\"H.Yang\",\"MauriceLee\",\"TomHeskes\",\"ByronDom\",\"JeffreyR.LaFranchise\",\"XavierBoyen\",\"K.Y.MichaelWong\",\"G.Zavaliagkos\",\"SheriL.Gish\",\"AnyaC.Hurlbert\",\"VirginiaR.de-Sa\",\"BernardDoyon\",\"HenrikBohr\",\"HongLeung\",\"F.B.Rodriguez\",\"ShigeruTanaka\",\"AlexanderT.Ihler\",\"RichardP.Lippmann\",\"RichardO.Duda\",\"KevinJ.Moon\",\"JohnA.Hertz\",\"HarryPrintz\",\"TimothyS.Wilkinson\",\"MichaelCohen\",\"VictorAbrash\",\"JohnMoody\",\"AmnonShashua\",\"KathrynLaskey\",\"BalazsKegl\",\"HilbertJ.Kappen\",\"MauriceMilgram\",\"A.Zador\",\"FrankMoss\",\"AliceM.Chiang\",\"LiuKe\",\"VitalyMaiorov\",\"M.Finke\",\"J.Bernasconi\",\"RajeshRao\",\"NoboruMumta\",\"SteveRenals\",\"J.W.Shavlik\",\"N.E.Berthier\",\"F.Ohl\",\"E.Vittoz\",\"MatthiasBurger\",\"BarnbangParmanto\",\"JamesA.Simmons\",\"AkiraHayashi\",\"AlexP.Pentland\",\"AndreasZiehe\",\"DavidGoodine\",\"YurikoOshima-Takane\",\"EliShamir\",\"CarlosMejia\",\"TonyRobinson\",\"AndrewS.Noetzel\",\"ColinCampbell\",\"JohnH.Holland\",\"B.A.Pearlmutter\",\"JofioF.G.de-Freitas\",\"V.I.Makarenko\",\"H.Wagner\",\"Jean-FranqoisIsabelle\",\"A.Jagota\",\"DanielRuderman\",\"RodolfoMilito\",\"KimmoKiviluoto\",\"J.Kivinen\",\"KurtHornik\",\"TomM.Mitchell\",\"MohammadA.Al-Ansari\",\"JohnKassebaum\",\"ManoelF.Tenorio\",\"BarbaraWold\",\"AlexanderDimitrov\",\"JohnLoch\",\"LynetteHirschman\",\"DavidA.Cohn\",\"H.A.Rowley\",\"M.Cekic\",\"JohnHertz\",\"JonTombs\",\"LorienY.Pratt\",\"GeraldTesauro\",\"A.Pouget\",\"DemetriTerzopoulos\",\"JustinianRosca\",\"KaganTumer\",\"MichaelE.Hasselmo\",\"G.J.Zelinsky\",\"M.Wattenberg\",\"LeonS.Sterling\",\"B.Lemarie\",\"StevenBradtke\",\"J.PNadal\",\"ChristopheAndrieu\",\"T.Serrano-Gotarredona\",\"S.A.Macy\",\"JohnJ.Hopfield\",\"T.Jung\",\"C.M.Marcus\",\"GrigorisKarakoulas\",\"ZhaopingLi\",\"RobertMoll\",\"ZoranObradovic\",\"BillHorne\",\"DeirdreWheeler\",\"P.Koiran\",\"RodneyCotterill\",\"GaryG.Blasdel\",\"T.Kanade\",\"AkioTanaka\",\"EricA.Wan\",\"R.Schwartz\",\"JorgKindermann\",\"DavidJ.Foster\",\"YannisTsividis\",\"ManceHarmon\",\"CazhaowS.Qazaz\",\"SayandevMukherjee\",\"HinrichSchfitze\",\"DavidHorn\",\"GeoffreyJ.Goodhill\",\"H.Bourlard\",\"VladimirN.Vapnik\",\"NirmalaRamanujam\",\"MarkGerules\",\"DaphneKoller\",\"KarlGustafson\",\"PhilKohn\",\"D.J.Kershaw\",\"Hung-LiTseng\",\"SylvieRenaud-LeMasson\",\"AmirAtiya\",\"ShinIshii\",\"JamesHendler\",\"P.Sollich\",\"JohnW.Miller\",\"HilaryTunley\",\"JeffreyTeeters\",\"RichardGranger\",\"BradleyA.Minch\",\"GeorgeZavaliagkos\",\"IgorGrebert\",\"J.G.Taylor\",\"RodericGinpen\",\"AlexanderSinger\",\"AllenI.Selverston\",\"MarkA.Gluck\",\"PeterN.Steinmetz\",\"GerhardRigoll\",\"LauraMartignon\",\"JohnO'Keefe\",\"J.VanderSpiegel\",\"JimMann\",\"YochaiKonig\",\"JeremyS.de-Bonet\",\"EricSchnell\",\"Robde-Ruyter-van-Steveninck\",\"N.N.Schraudolph\",\"FrankEeckman\",\"PekkaOrponen\",\"HermanFerra\",\"FernandoLozano\",\"AnthonyBloesch\",\"RichardKempter\",\"HenriAtlan\",\"SandeepGulati\",\"Dit-YanYeung\",\"E.D.Sontag\",\"MartinHammer\",\"JohnK.Douglass\",\"DaleSchuurmans\",\"YoshioTakane\",\"R.Caruana\",\"JenniferLund\",\"BenS.Wittner\",\"NicholasRoy\",\"MichaelP.Stryker\",\"PaoloFrasconi\",\"B.Boser\",\"MarvinLuttges\",\"SteveGyger\",\"DavidA.Nix\",\"J.A.Farrell\",\"JohnKennedy\",\"EricSaund\",\"FouadBadran\",\"JavierR.Movellan\",\"H.Ritter\",\"StevenJ.Nowlan\",\"C.J.C.H.Watkins\",\"L.Wu\",\"SebastianMika\",\"JosephSill\",\"RonaldCole\",\"Hwang-SooLee\",\"Ch.Tietz\",\"S.Gold\",\"D.Lippe\",\"AndresRodriguez\",\"ChristofSchofl\",\"BernhardScholkopf\",\"PedroA.d.F.R.Hojen-Sorensen\",\"YoshiyukiKabashima\",\"HarrisonMonFookLeong\",\"Jung-WookCho\",\"HenrikFredholm\",\"MoiseH.Goldstein\",\"LouisCeci\",\"LawrenceD.Jackel\",\"AnthonyZador\",\"CharlesFefferman\",\"AnnaCorderoy\",\"Alexandervon-zur-Muhlen\",\"RonaldJ.Williams\",\"GeorgSchnitger\",\"RonPapka\",\"BernardVictorri\",\"RobertFrye\",\"JosePrincipe\",\"E.Majani\",\"S.Finch\",\"ChristopherAssad\",\"T.Duong\",\"T.Ohmi\",\"Ming-TakLeung\",\"EeroP.Simoncelli\",\"R.C.Williamson\",\"AndreasG.Andreou\",\"EduardoSontag\",\"M.M.Hochberg\",\"DavidShahian\",\"GadiPinkas\",\"StefanKnerr\",\"IanParberry\",\"SebastianThmn\",\"VijayR.Konda\",\"JensKohlmorgen\",\"DavidWarland\",\"AndrewR.Webb\",\"GeoffreyHinton\",\"RolfEckmiller\",\"RuthErlanson\",\"HansHenrikThodberg\",\"FredRieke\",\"D.T.Lawrence\",\"JohnLazzaro\",\"StephenPickard\",\"ViktorGruev\",\"P.R.Montague\",\"Wan-PingChiang\",\"BarakA.Pearlmutter\",\"J.AnthonyMovshon\",\"ToshioInui\",\"Y.Bengio\",\"AnthonyJ.R.Heading\",\"AlexSmola\",\"EMoss\",\"DanielNissman\",\"JuergenFritsch\",\"SharadSinghal\",\"KatalinM.Gothard\",\"EveMarder\",\"DanaRon\",\"LinaL.E.Massone\",\"RitaVenturini\",\"GiacomoM.Bisio\",\"EtienneBarnard\",\"StephenA.Fisher\",\"PeterL.Bartlett\",\"DoinaPrecup\",\"EdwinLewis\",\"S.K.Riis\",\"TadHogg\",\"Y.Xie\",\"W.H.Zaagman\",\"VijaySamalam\",\"Antalvan-den-Bosch\",\"PatrickGallinari\",\"HayitK.Greenspan\",\"ShumeetBaluja\",\"HongC.Leung\",\"EdwinR.Hancock\",\"AliA.Minai\",\"YasuharuKioke\",\"PaulNachtigall\",\"ReinerLenz\",\"R.Erlanson\",\"AapoHyvarinen\",\"RamaChellappa\",\"StephanPareigis\",\"H.Drucker\",\"ReinholdMann\",\"JonathanA.Marshall\",\"KevinCummings\",\"TomasoPoggio\",\"S.Yasui\",\"AlanLapedes\",\"FrancesS.Chance\",\"SanjayBiswas\",\"StefanSchaal\",\"C.T.Abdallah\",\"JoshuaB.Tenenbaum\",\"J.Tani\",\"P.Anandan\",\"N.Barkai\",\"J.JeffreyMahoney\",\"LaurensLeerink\",\"AkayshaC.Tang\",\"TomJ.Richardson\",\"T.Delbruck\",\"MasazumiKatayama\",\"TobiDelbruck\",\"ChristianDarken\",\"HowardKaushansky\",\"TongZhang\",\"A.L.Yuille\",\"PatriceSimard\",\"TakeoYamashita\",\"KnutMoller\",\"JianWu\",\"Hui-H.Hsu\",\"ToddTroyer\",\"ShigemTanaka\",\"R.S.Peterson\",\"ArchismartRudra\",\"PatrickHaffner\",\"RalfHerbrich\",\"JamesA.Ritcey\",\"ThomasBrown\",\"P.Campbell\",\"DavidMcAllester\",\"PeterE.Latham\",\"ChristophBregler\",\"NirLevy\",\"ManuelSamuelides\",\"AlanH.Kramer\",\"Shih-ChengYen\",\"TonyJebara\",\"EricPostma\",\"RogerShepard\",\"AlexanderJ.Smola\",\"IdanSegev\",\"HalbertWhite\",\"WilliamFaller\",\"DanaZ.Anderson\",\"W.R.Softky\",\"Guo-ZhengSun\",\"StefanHeil\",\"NigelM.Allinson\",\"StephenJudd\",\"MarcusFrean\",\"FranklinR.Arethor\",\"KristinaJohnson\",\"AntonSchwartz\",\"WilliamW.Cohen\",\"AmyMcGovern\",\"EmadN.Eskandar\",\"GwendalLeMasson\",\"R.D.Puff\",\"WalterMetznet\",\"BrunoA.Olshausen\",\"SheldonGilbert\",\"YoramGdalyahu\",\"NikosLogothetis\",\"WeeSunLee\",\"JillP.Mesirov\",\"J.B.Hampshire\",\"AnthonyM.Zador\",\"RodneyJ.Douglas\",\"AsrielU.Levin\",\"ElieBienenstock\",\"H.Scheich\",\"P.A.Chou\",\"Guo-ZhenSun\",\"BenA.Marcotte\",\"MarshallFlax\",\"MichaelBurl\",\"W.HarmonRay\",\"C.L.Winter\",\"PanayiotaPoirazi\",\"M.Kadirkamanathan\",\"Marc-OlivierCoppens\",\"ChristopherK.I.Williams\",\"Kai-YeungSiu\",\"EdwardK.Blum\",\"DonaldJ.Baxter\",\"RichardS.Sutton\",\"NaonoriUeda\",\"MartinMaechler\",\"J.B.Tenenbaum\",\"DavidB.Parker\",\"JohnS.Denker\",\"BahramNabet\",\"J.L.Wyatt\",\"R.Tibshirani\",\"ShlomoZilberstein\",\"AyhanDemiriz\",\"MottenPedersen\",\"BarryJ.Richmond\",\"PierreBaldi\",\"AmnonYariv\",\"TimHunkapiller\",\"VanHenkle\",\"BrianSallans\",\"DavidG.Stork\",\"DorothyA.Mighell\",\"EytanRuppin\",\"CarlosBrody\",\"H.Schwarze\",\"MarkWhite\",\"SheilaKannappan\",\"Th.Sudbrak\",\"NoamSlonim\",\"NarendraAhuja\",\"JohnShawe-Taylor\",\"PierreBand\",\"M.K.Warmuth\",\"JohnS.Pezaris\",\"EricD.Young\",\"N.Kamnanithi\",\"ReimarHofmann\",\"RiittaHari\",\"EimeiOyama\",\"S.E.Hihi\",\"YishayMansour\",\"R.Neuneier\",\"J.J.Hopfield\",\"E.Alpaydin\",\"UweHelmke\",\"CorinnaCortes\",\"GarrisonCottrell\",\"JohnB.Hampshire\",\"VictorHu\",\"AsaBen-Hut\",\"AntonioTuriel\",\"DonBone\",\"MohamedEl-Sharkawi\",\"ColinG.Windsor\",\"StevenJ.Bradtke\",\"Il-SongHan\",\"DaviGeiger\",\"DavidW.Jacobs\",\"AlanMurray\",\"ChristopherDonham\",\"P.K.Ko\",\"HolmSchwarze\",\"Martinede-Gerlache\",\"JamesM.Coughlan\",\"StevenR.Skinner\",\"B.J.Frey\",\"EdwardW.Page\",\"MarilynWalker\",\"MichaelWennan\",\"KevinP.Murphy\",\"AlanYuille\",\"XiwuLin\",\"K.Y.Goldberg\",\"ThomasA.Busey\",\"L.K.Saul\",\"PaulChristy\",\"D.Kontoravdis\",\"DavidBarber\",\"T.Downs\",\"RobertAllen\",\"SreerupaDas\",\"ClintS.Cole\",\"MartinRoscheisen\",\"JaneenAnderson\",\"LaurensR.Leerink\",\"MatthewN.Dailey\",\"LucasC.Parra\",\"ItayGat\",\"JanVanderSpiegel\",\"A.C.C.Coolen\",\"SethuVijayahunar\",\"I.M.Elfadel\",\"NicholasJ.Adams\",\"HeinrichH.Bfilthoff\",\"LesE.Atlas\",\"ChristopherWilliams\",\"TimothyK.Horiuchi\",\"TerrenceJ.Sejnowski\",\"RichardLippmann\",\"ErkkiOja\",\"DanielH.Lange\",\"StevenGold\",\"HiroakiSaito\",\"ErnestWan\",\"JohnHaggerty\",\"SaraSolla\",\"ClaySpence\",\"J.N.Tsitsiklis\",\"JohnN.Tsitsiklis\",\"JudeW.Shavlik\",\"JohnG.Harris\",\"DavidVandenBout\",\"KennethZeger\",\"PetriKoistinen\",\"KechenZhang\",\"JanBen\",\"ClaudioGentile\",\"J.Lazzaro\",\"GeneBoe\",\"P.Ekman\",\"A.K.Krishnamurthy\",\"DidierKeymeulen\",\"S.A.Seinenov\",\"FredWolf\",\"MarcLoinaz\",\"JamesHutchinson\",\"HasanS.Uyar\",\"AnenGersho\",\"EWeber\",\"DiegoGiuliani\",\"H.A.K.Mastebroek\",\"ChrisMesterharm\",\"BrendaJ.Claiborne\",\"BertramE.Shi\",\"MartinJ.McKeown\",\"S.Wiseman\",\"K.Mueller\",\"KlausSchulten\",\"BennyLautmp\",\"MichaelKocheisen\",\"JayDiamond\",\"GeorgeLeeZimmerman\",\"A.During\",\"AndrewY.Ng\",\"GregoryR.Galperin\",\"HavaT.Siegelmann\",\"J.A.Coelho\",\"HelenePaugam-Moisy\",\"ThoreGraepel\",\"IrisGinzburg\",\"JoseC.Principe\",\"EdmundT.Rolls\",\"RembrandtBakker\",\"A.U.Levin\",\"WilfriedBrauer\",\"ChristopherJ.Matheus\",\"SenSong\",\"C.W.H.Mace\",\"MaryB.Oftaway\",\"ClayD.Spence\",\"JohnP.Miller\",\"RalphPenner\",\"C.B.Miller\",\"G.J.Gordon\",\"FernandaBotelho\",\"JuergenSchmidhuber\",\"JamesKeeler\",\"WilliamY.Huang\",\"V.Bohossian\",\"DaweiW.Dong\",\"JosephC.Hager\",\"FerdinandPeper\",\"AlyssaApsel\",\"D.H.Ballard\",\"CharlesF.Stevens\",\"S.Hadjffaradji\",\"RichardT.J.Bostock\",\"DonMontgomery\",\"F.Gingras\",\"SaraA.Solla\",\"ThomasDietterich\",\"HirofumiMatsui\",\"JamesS.Schwaber\",\"PaulBourgine\",\"GaryW.Flake\",\"RoopakShah\",\"EberhardE.Fetz\",\"HillelJ.Chiel\",\"H.Ferni\",\"AllenM.Waxman\",\"ClaytonMcMillan\",\"KennethKreutz-Delgado\",\"SamRoweis\",\"A.A.Handzel\",\"K.Obermayer\",\"JamesD.Keeler\",\"D.J.Willshaw\",\"GregoryM.Saunders\",\"Fu-ShengTsung\",\"RadfordM.Neal\",\"GeneA.Tagliarini\",\"KennethM.Buckland\",\"Klaus-R.Muller\",\"FedericoFaggin\",\"SherifBotros\",\"MartinStetter\",\"JetteRandlov\",\"PaulSajda\",\"ChuckWooters\",\"M.Pavel\",\"K.Boahen\",\"HillelPratt\",\"M.J.Denham\",\"EinarSorheim\",\"DouglasKerns\",\"ChristopherM.Bishop\",\"O.J.M.Coenen\",\"CharlesStein\",\"RyoheiNakano\",\"JakubWejchert\",\"J.C.Platt\",\"M.Hasselmo\",\"LehelCsato\",\"JacobErel\",\"RonaldM.Harris-Warrick\",\"AndersKrogh\",\"MassimoSivilotti\",\"W.Gerstner\",\"DavidWillshaw\",\"MichaelP.Perrone\",\"VicenteIragui\",\"AnnaMorpurgo\",\"MosfeqRashid\",\"RalphWolf\",\"LarsSchwabe\",\"BemdFritzke\",\"SeanD.Murphy\",\"MikeHochberg\",\"LeonBottou\",\"DavidHandelman\",\"H.L.Ferra\",\"FerdinandoA.Mussa-Ivaldi\",\"DavidB.Rosen\",\"JyrldKivinen\",\"DemetrPsaltis\",\"MarcelloPelillo\",\"YannLeCun\",\"BimalMathur\",\"HansPeterGraf\",\"K.Asanovic\",\"ChdstofKoch\",\"DanielB.Schwartz\",\"TerenceD.Sanger\",\"BabakHassibi\",\"NunoVasconcelos\",\"AxelCleeremans\",\"ChristophSchaefers\",\"NuriaOliver\",\"M.Schenkel\",\"ThomasP.Vogl\",\"BrookeAnderson\",\"MichaelG.Paulin\",\"JimAustin\",\"SusumuTachi\",\"XiruZhang\",\"RonaldKlein\",\"KhalidChoukri\",\"V.I.Kryukov\",\"SeppHochreiter\",\"DavidBrady\",\"R.H.Crites\",\"O.L.Mangasarian\",\"JoachimM.Buhmann\",\"JohnW.Fisher\",\"RalphM.Siegel\",\"LuckyVidmar\",\"ManfredOpper\",\"KazuhikoYokosawa\",\"MartinJ.Wainwright\",\"SamyBengio\",\"TheaB.Ghiselli-Crippa\",\"JuliaBorger\",\"AlanD.Blair\",\"MartinRiedmiller\",\"Ken-ichiIso\",\"RainerMalaka\",\"PedroGuedesde-Oliveira\",\"JohnCavazos\",\"YuHe\",\"StephenHanson\",\"ReinhardBlasig\",\"DavidG.Grier\",\"R.Dodier\",\"KwabenaA.Boahen\",\"SeiMiyake\",\"RichardWolniewicz\",\"ValentinoBraitenberg\",\"MarissaWesterfield\",\"PhilipJ.Holmes\",\"AndreLongtin\",\"JosephDao\",\"WimWiegerinck\",\"LlewMason\",\"L.S.Smith\",\"Jyh-MingKuo\",\"BruceGraham\",\"BabackMoghaddam\",\"MarcellaA.McClure\",\"JamesR.Mann\",\"LeiXu\",\"DimitrisMargaritis\",\"RichardEhman\",\"JagmeetS.Kanwal\",\"RichCamana\",\"TamarFlash\",\"HarryWechsler\",\"LuciaM.Vaina\",\"R.R.Snapp\",\"MaryE.T.Boyle\",\"R.M.Peterson\",\"HansUlrichBauer\",\"JeffG.Schneider\",\"G.Hinton\",\"MichaelA.Glover\",\"JohnC.Pearson\",\"RahulSarpeshkar\",\"A.C.Tsoi\",\"FernandoPineda\",\"CarlaBrodley\",\"G.J.Kacmarcik\",\"TorstenZeppenfeld\",\"PeterM.Williams\",\"NoboruMurata\",\"WilliamW.Streilein\",\"MarleneBehrmann\",\"LeonPersonnaz\",\"P.A.Viola\",\"HiroshiAndo\",\"NestorParga\",\"Y.Mansour\",\"CatherineStevens\",\"YairWeiss\",\"G.Brightwell\",\"NicholasD.Socci\",\"B.P.Yuhas\",\"ThomasC.Ferree\",\"JeromeFreidman\",\"GaryCook\",\"A.Grunewald\",\"MicahS.Siegel\",\"JunZhang\",\"IrfanEssa\",\"YeshwantMuthusamy\",\"CharlesENeugebauer\",\"YuzuruSato\",\"CarlaJ.Shatz\",\"BernhardE.Boser\",\"XiaohuiXie\",\"WilliamR.Softky\",\"GeraldineLegendre\",\"JohannesFeulner\",\"G.BjornChristianson\",\"RobertB.Pinter\",\"MichaelE.Levemon\",\"B.Scholkopf\",\"DavidDeMers\",\"MahesanNiranjan\",\"ZehraCataltepe\",\"MikeWynne-Jones\",\"A.Ferguson\",\"K.Y.Siu\",\"StevenE.Golowich\",\"PaulUtgoff\",\"R.E.Ritzmann\",\"S.Pappu\",\"DavidStork\",\"MichielNoordewier\",\"NickLittlestone\",\"VolneiPedroni\",\"MaxGarzon\",\"JohnL.Wyatt\",\"LiqingZhang\",\"ThomasHolmann\",\"A.Kramer\",\"NeilBurgess\",\"P.Auer\",\"SatoshiSuzuki\",\"ShiroIkeda\",\"M.W.Craven\",\"ThomasShultz\",\"RichardSutton\",\"JohnGrace\",\"OferZeitouni\",\"F.D.Garber\",\"JashojibanBanik\",\"HarryBurke\",\"BradleyW.Dickinson\",\"PatricK.Stanton\",\"LanceC.Walton\",\"MichioNakashima\",\"J.Wawrzynek\",\"EstherLevin\",\"KazumiSaito\",\"H.Tolle\",\"AlexanderJourjine\",\"JohnPerry\",\"N.Morgan\",\"W.Bialek\",\"AlanL.Yuille\",\"SowmyaRamachandran\",\"A.J.Robinson\",\"M.A.Mahowald\",\"S.Makeig\",\"TarigSamad\",\"A.D.Rexlish\",\"JawadA.Salehi\",\"BruceL.McNaughton\",\"TimSmithers\",\"StefanManke\",\"ClaireLegleye\",\"F.H.Schuling\",\"AnyaHurlbert\",\"DietrichLehmann\",\"CharlesM.Higgins\",\"TonyA.Plate\",\"SuzannaBecker\",\"K.I.Diamantaras\",\"S.P.Singh\",\"MichaelT.Gately\",\"LeemonC.Baird\",\"ShujiYoshizawa\",\"SebastianRisau-Gusman\",\"MichaelO.Duff\",\"IsabelleGuyon\",\"MarkW.Goudreau\",\"JamesB.Burr\",\"MattiHamalainen\",\"P.W.Munro\",\"GintamsV.Reklaitis\",\"YoramBaram\",\"AndrewG.Barto\",\"CharlesW.Anderson\",\"SteffenPetersen\",\"JonathanL.Shapiro\",\"RenatoDe-Mori\",\"C.Cones\",\"S.Haghighi\",\"BenNorth\",\"KunihikoIizuka\",\"JeanneC.Milostan\",\"W.ZevRymer\",\"StellaX.Yu\",\"YoshihiroMori\",\"MarkMathieson\",\"H.P.Graf\",\"Bernd-PeterParis\",\"DonR.Hush\",\"S.Sahar\",\"J.Zhao\",\"S.L.McCabe\",\"SebastianThrun\",\"HosseinL.Najafi\",\"ArthurMcNair\",\"KongKritayakirana\",\"EricCosatto\",\"A.Drees\",\"K.J.Cherkauer\",\"PeterN.Prokopowicz\",\"XavierGiannakopoulos\",\"JehoshuaBruck\",\"AlanStocker\",\"Y.Matsuoka\",\"JacquesVidal\",\"DouglasR.Martin\",\"Sang-YungShin\",\"LyndonJ.Brown\",\"MichaelMckenna\",\"ManeeshSahani\",\"RonenBasri\",\"VladimirCherkassky\",\"B.DasGupta\",\"RemiMunos\",\"Hi.Chiel\",\"EgonC.Pasztor\",\"EilonVaadia\",\"NikhilBhushan\",\"LindaKaufman\",\"R.S.Sutton\",\"BruceE.Rosen\",\"MichaelPhillips\",\"ArthurFlexer\",\"ToshiteruHomma\",\"HalinaAbramowicz\",\"PaulRodriguez\",\"TomilsLozano-Perez\",\"H.Weissman\",\"JoelBert\",\"E.E.Fetz\",\"M.Dikaiakos\",\"D.Johnson\",\"JohnEHoude\",\"SatoshiYamaria\",\"R.D.Griffin\",\"FrankH.Eeckman\",\"M.M.Hayhoe\",\"GirishN.Patel\",\"JudeShavlik\",\"MirtaB.Gordon\",\"J.S.Denker\",\"DanHammerstrom\",\"YaserAbu-Mostafa\",\"R.A.Pearson\",\"MagnusStensmo\",\"HendricusG.Loos\",\"DavidH.Wolpert\",\"BruceMacDonald\",\"GustavoDeco\",\"J.Moody\",\"W.N.Street\",\"PeterJ.Edwards\",\"RegisCardin\",\"YvesBurnod\",\"GeraldFahner\",\"AvnerPriel\",\"GermanMato\",\"T.Kailath\",\"H.Attias\",\"GideonEInbar\",\"KennethMarko\",\"ElizabethC.Behrman\",\"VanH.Vu\",\"M.R.Walker\",\"HangLi\",\"StephaneCanu\",\"PatriceY.Simard\",\"AthanassiosSiapas\",\"JeffreyP.Sutton\",\"XuboB.Song\",\"Jong-HoonOh\",\"DedreGentner\",\"TroelsKjaer\",\"ChristopheK.I.Williams\",\"V.Vapnik\",\"DavidRumelhart\",\"ZoeF.Butler\",\"DarrenMutz\",\"HarelShouval\",\"D.Yeung\",\"JeromeConnor\",\"AlexanderRoitershtein\",\"JamesGoodwin\",\"MagnusRattray\",\"SugunaPappu\",\"JohnAllman\",\"BrendanJ.Frey\",\"GriffBilbro\",\"F.Botelho\",\"GeorgBrabant\",\"AlanD.Marts\",\"PaulHasler\",\"HelmutSchwegler\",\"LucyE.Hadden\",\"R.D.Beer\",\"ChristopherJ.Metz\",\"MarwanA.Jabri\",\"H.Ozaki\",\"KaroJim\",\"PhilippHiffiiger\",\"ChrisDiorio\",\"MakotoHirayama\",\"ScottRickard\",\"ThomasG.Dietterich\",\"F.R.Waugh\",\"LynneKiorpes\",\"HerveBourlard\",\"BradleyTonkes\",\"S.Rehfuss\",\"YasuhamKoike\",\"MichaelSchmitt\",\"MinoruAsogawa\",\"RonMeir\",\"FxnstR.Dow\",\"D.W.Opitz\",\"GeorgDorffner\",\"JasonWeston\",\"OdeliaSchwartz\",\"JeanRaysz\",\"JordanB.Pollack\",\"K.Fukumizu\",\"RonaldParr\",\"HumbertSuarez\",\"ToruOhira\",\"A.Hartstein\",\"S.R.H.Joseph\",\"J.Barhen\",\"MichaelR.Berthold\",\"MitchellGilMaltenfort\",\"M.Isard\",\"LfionPersonnaz\",\"N.S.Skantzos\",\"JoelRatsaby\",\"DavidL.Waltz\",\"NobuoSuematsu\",\"G.T.Kenyon\",\"D.L.Standley\",\"JinLuo\",\"C.L.Giles\",\"RobertTibshitani\",\"JohnE.Moody\",\"JosephO.Ruanaidh\",\"KevinR.Farrell\",\"AndrewH.Gee\",\"RebeccaRichards-Kortum\",\"EricFragniere\",\"P.Kaye\",\"KojiKotani\",\"OlivierBernier\",\"CorM.van-den-Bleek\",\"ThomasHofmann\",\"MichaelRecce\",\"AlanBlair\",\"MartinS.Glassman\",\"FernandoJ.Nunez\",\"MichalMorciniec\",\"G.J.Goodhill\",\"G.L.Heileman\",\"YoshuaBengio\",\"PaulSmolensky\",\"MartinSereno\",\"DougReeves\",\"HoracioFranco\",\"JOrgBmske\",\"Klaus-RobertMuller\",\"A.HarryKlopf\",\"Yu-MingChiang\",\"JochenBraun\",\"L.Q.Zhang\",\"H.Langenbacher\",\"MelanieMitchell\",\"PaulStolorz\",\"ClausBenkert\",\"TiloSloboda\",\"BrunoCaprile\",\"YanFang\",\"HolgerSchwenk\",\"W.E.Blanz\",\"IanT.Nabney\",\"RichardC.Windecker\",\"TimothyHoriuchi\",\"JacobEnglebrecht\",\"WesleySnyder\",\"FrancescoVivarelli\",\"BhusanGupta\",\"AlexChemjavsky\",\"GunnarRatsch\",\"GregoryJ.Wolff\",\"OferMatan\",\"RobertJ.Adler\",\"DouglasBaumgardt\",\"JeremyH.Holleman\",\"Ju-SeogJang\",\"VolodyaVovk\",\"CraigR.Nohl\",\"HaimSompolinski\",\"RainerGoebel\",\"NicolN.Schraudolph\",\"MarkSitton\",\"R.DouglasMartin\",\"TzioDarChiueh\",\"ChristofKoch\",\"MichaelS.Lewicki\",\"OjvindBernander\",\"R.Kaihara\",\"AlisterHamilton\",\"K.Rose\",\"A.J.Holmes\",\"IngoSchiegl\",\"QingnanLi\",\"JoshI.Gold\",\"TomOhira\",\"JohnD.Uhley\",\"PaulMineiro\",\"LawrenceSaul\",\"MichaelRossen\",\"EladSchneidman\",\"JosefP.Rauschecker\",\"MarcusHennecke\",\"DeanA.Pomerleau\",\"KevinJ.Lang\",\"AudreyL.Guzik\",\"R.Chu\",\"R.W.Penney\",\"AdamKrzyzak\",\"W.Porod\",\"CedricDeffayet\",\"AnthonyJ.Bell\",\"RichardM.Golden\",\"C.Nohl\",\"T.J.Sejnowski\",\"MarkE.Nelson\",\"TaiSingLee\",\"VeikkoJousmaki\",\"ChuanyiJi\",\"TheodoreJ.Perkins\",\"G.Z.Sun\",\"DavidH.Ackley\",\"MichaelHormel\",\"RalphNeuneier\",\"WyethBair\",\"RandallC.O'Reilly\",\"TonyPlate\",\"LarsKaiHansen\",\"KarlGustarson\",\"Ying-WungLee\",\"JeffBilmes\",\"RobertC.Eaton\",\"WeiminLiu\",\"FriedrichLeisch\",\"TrevorHastie\",\"DaveGillespie\",\"PierreBaraduc\",\"SamT.Roweis\",\"VolkerSteinhage\",\"L.Personnaz\",\"JamesP.Callan\",\"MichaelC.Crair\",\"ScottDavies\",\"C.I.Thorbergsson\",\"E.Niebur\",\"JohnWawrzynek\",\"JanPuzicha\",\"TalGrossman\",\"JamesE.Steck\",\"DavidL.Trotman\",\"B.Ravindran\",\"KalanitGrillSpector\",\"DanielSchwartz\",\"RodneyM.Goodman\",\"HyoungsooYoon\",\"HiroshiIshii\",\"G.Rigoll\",\"JosephG.Malpeli\",\"DavidE.Rumelhart\",\"AlexandrePouget\",\"V.Tresp\",\"MaheshVaranasi\",\"RaymondJ.W.Wang\",\"ThomasJ.Anastasio\",\"L.RichardCarley\",\"RyojiSuzuki\",\"R.S.Hubbard\",\"TrevorDarrell\",\"Chien-PingLu\",\"W.Owen\",\"S.M.Omohundro\",\"RadekGrzeszczuk\",\"AdamKowalczyk\",\"Jean-BernardTheeten\",\"CandaceKamm\",\"JaredLeinbach\",\"Jenq-NengHwang\",\"S.Sundararajan\",\"MichaelHasselmo\",\"MatthewM.Williamson\",\"JimBergen\",\"DidierHerschkowitz\",\"OdedMaron\",\"P.Tino\",\"GilletteElvgren\",\"TerrenceSejnowski\",\"EvanSteeg\",\"KiyoshiHonda\",\"ShanParfitt\",\"BehnaamAazhang\",\"RanEl-Yaniv\",\"C.A.Mead\",\"ShinichiSakata\",\"TrevorMundel\",\"PaulR.Cooper\",\"BrianD.McVey\",\"ZhiyongYang\",\"J.L.Huertas\",\"PeterJ.Angeline\",\"S.G.Lisberger\",\"C.K.Sin\",\"A.G.U.Perera\",\"JamesL.McClelland\",\"RonKeesing\",\"NandaKambhatla\",\"RichardLehrer\",\"RicardoVigario\",\"AndreasS.Weigend\",\"PaulA.Viola\",\"R.TimothyEdwards\",\"EalanA.Henis\",\"RobertFarber\",\"DavidSaad\",\"A.Rao\",\"PoHsiangChu\",\"ErnstNiebur\",\"Chiang-JungPu\",\"MatsOsterberg\",\"JakeRyan\",\"EugeneSantos\",\"LasseHolmstrom\",\"T.Furukawa\",\"RonaldL.Rivest\",\"BruceDow\",\"M.Svensen\",\"M.Veloso\",\"Rudolphvan-der-Merwe\",\"EyalYair\",\"KazukiJoe\",\"J.Shawe-Taylor\",\"TonWeijters\",\"Tzu-puHsieh\",\"RobertH.Dodier\",\"W.E.Sullivan\",\"JimHawkins\",\"JamesR.Cavanaugh\",\"LidrorTroyansky\",\"BillG.Horne\",\"Yiu-faiWong\",\"TomasLozano-Perez\",\"JacobBarhen\",\"SuthepMadarasmi\",\"MichaelLemmon\",\"DeLiangL.Wang\",\"JosephW.Goodman\",\"ArthurB.Markman\",\"K.Pawelzik\",\"TamilsLinder\",\"PaulBeckman\",\"YojiUno\",\"KennethY.Tsai\",\"KurtR.Smith\",\"L.A.Akers\",\"GiancarloFerrari-Trecate\",\"UlrichBodenhausen\",\"S.N.Laughton\",\"S.M.Rueget\",\"JoshuaAlspector\",\"R.T.Edwards\",\"ThomasKailath\",\"OliverLandolt\",\"C.D.Spence\",\"YvesMoteau\",\"VwaniP.Roychowdhury\",\"YuanshengXiong\",\"AndrewHsu\",\"SatinderP.Singh\",\"HideoKosaka\",\"RichardSchwartz\",\"E.W.Jacobs\",\"LucasParra\",\"PaolaCampadelli\",\"JurgenSchmidhuber\",\"JohnDenker\",\"J.J.Gelfand\",\"NicholasJ.Redding\",\"RoderickMurray-Smith\",\"I.Pal\",\"TrentE.Lange\",\"SimonCarlile\",\"ChristianPiepenbrock\",\"M.Konishi\",\"SiegfriedBos\",\"GerardinaHernandez\",\"KenHsu\",\"DonaldT.Freeman\",\"CarverA.Mead\",\"MichelKerszberg\",\"MatthewSaffell\",\"TimA.Hely\",\"RobertB.Allen\",\"RuthRosenholtz\",\"AdamN.Mamelak\",\"J.StephenJudd\",\"WilliamW.Lytton\",\"SuguruArimoto\",\"JamesBeck\",\"C.C.Atkeson\",\"BraceRosen\",\"WilliamSkaggs\",\"MalikMagdon-Ismail\",\"MatthiasSeeger\",\"R.Hofmann\",\"V.P.Roychowdhury\",\"CtuistophNeukirchen\",\"JoeEisenberg\",\"C.W.Thrasher\",\"R.Lee\",\"DavidB.Kirk\",\"LB.Shuvalova\",\"MarkusLappe\",\"MaximilianRiesenhuber\",\"Klaus-RobertMilllet\",\"FedericoGirosi\",\"A.NellBurgess\",\"A.E.Friedman\",\"S.J.Hanson\",\"MichaelMozer\",\"DavidJ.Burr\",\"PaulW.Munro\",\"RaviK.Sharma\",\"T.Geisel\",\"PingZhou\",\"E.Fragniere\",\"GeneGindi\",\"K.JarrodMillman\",\"MichiroNegishi\",\"OlivierCoenen\",\"CharlesSchley\",\"OliverMihatsch\",\"LizhongWu\",\"JamesM.Bower\",\"R.E.Howard\",\"Y.C.Lee\",\"TomBrashers-Krug\",\"SylvieThiria\",\"UrsA.Muller\",\"ElliotSinger\",\"CharlesM.Marcus\",\"EmanualV.Todorov\",\"R.H.Koch\",\"C.Neukirchen\",\"VaskenBohossian\",\"Y.LeCun\",\"YaserS.Abu-Mostafa\",\"ClaudeNadeau\",\"MartinLades\",\"MichaelC.Mozer\",\"MarkusMeister\",\"MitsuoKawato\",\"ScrenHalkjaer\",\"LanceWu\",\"J.Bruck\",\"RussellH.Lambert\",\"DanielL.Alkon\",\"H.N.Mhaskar\",\"DaphnaWeinshall\",\"G.Towell\",\"SumioWatanabe\",\"R.Kempter\",\"S.SathiyaKeerthi\",\"PaulS.Haynes\",\"M.Herbster\",\"HidekiNoda\",\"M.I.Jordan\",\"M.Deweese\",\"ShimonUllman\",\"CesareFurlanello\",\"JonathanD.Cohen\",\"Shih-ChiiLiu\",\"A.R.Bulsara\",\"T.Shibata\",\"Wee-KhengLeow\",\"SilvioP.Sabatini\",\"RonaldA.Sumida\",\"T.Lin\",\"EricS.Reifsnider\",\"NaohiroFukumura\",\"CsabaSzepesvfixi\",\"G.N.Borisyuk\",\"RobertWilliamson\",\"PeterD.Lawrence\",\"N.Fukumura\",\"EmmanuelGuigon\",\"A.F.Murray\",\"D.Hammerstrom\",\"NaomiTakahashi\",\"L.K.Hansen\",\"DanCornford\",\"AnsgarH.L.West\",\"ChristopherJ.C.Burges\",\"ErichWhitney\",\"S.R.Waterhouse\",\"JoydeepGhosh\",\"Soo-YoungLee\",\"RonL.Rivest\",\"Y.Singer\",\"JohnG.Milton\",\"RichardA.Andersen\",\"RichCaruana\",\"H.T.Blair\",\"JavierMovellan\",\"RolfD.Henkel\",\"P.Baldi\",\"TanPhan\",\"NikzadToomarian\",\"RaymondJ.Mooney\",\"OliverB.Downs\",\"CharlesRosenberg\",\"D.D.Lee\",\"M.Meila\",\"GraceWahba\",\"JamesA.Reggia\",\"SamuelP.M.Choi\",\"D.Saad\",\"ChulanKwon\",\"FernandoJ.Pineda\",\"SiWu\",\"GerhardPaass\",\"EricBaum\",\"MatthiasScholz\",\"DavidJ.Miller\",\"AvrimBlum\",\"AndrewGee\",\"B.A.Golomb\",\"TonyJ.Prescott\",\"TomasoA.Poggio\",\"Wei-TsihLee\",\"HansGeorgZimmermann\",\"PatLangdon\",\"YoichiHayashi\",\"DemetriPsaltis\",\"HuiTong\",\"RobertJacobs\",\"JeffreyL.Elman\",\"MikeE.U.Smith\",\"M.V.Solodov\",\"RodneyDouglas\",\"GertCauwenberghs\",\"ToshiyukiTanaka\",\"M.H.Goldstein\",\"AlexWaibel\",\"Ye.I.Kovalenko\",\"JeffreyC.Lagarias\",\"MasayukiMiyamoto\",\"SvenKoenig\",\"AllenM.Peterson\",\"RobertE.Druzinsky\",\"SaeedHadjifaradji\",\"HowardH.Yang\",\"NebojsaJojic\",\"EricI.Chang\",\"A.Jayakumar\",\"ThomasR.Shultz\",\"TerrenceL.Fine\",\"C.J.Heckman\",\"ShamKakade\",\"StephenGrossberg\",\"SantoshVenkatesh\",\"PeterT.Szymanski\",\"MonikaWoszczyna\",\"D.Shemngton\",\"ArnaudDoucet\",\"A.Orlitsky\",\"R.J.Wang\",\"JakobBernasconi\",\"SergeyIoffe\",\"MartinStemmler\",\"ManuelF.Fernandez\",\"DavidBlackman\",\"YannickPouliot\",\"MichaelL.Littman\",\"DavidKirk\",\"T.Yamashita\",\"J.W.Howse\",\"JamesWaskiewicz\",\"M.AnthonyLewis\",\"CarlosD.Brody\",\"JohnP.Donoghue\",\"JamesGlass\",\"AndreasStafylopatis\",\"MarkDerthick\",\"BarryFlower\",\"K.Homik\",\"DanielL.James\",\"ToniaG.Morris\",\"MathiasQuoy\",\"KevinLang\",\"DavidForsyth\",\"JayAlexander\",\"JaneBromley\",\"A.Krogh\",\"DavidZipser\",\"StephanieForrest\",\"DanielWillett\",\"KenneyNg\",\"J.Szymanski\",\"MichaelP.Weisend\",\"LawrenceK.Saul\",\"NicholasCamevale\",\"MichaelZibulevsky\",\"GillianMarshall\",\"GavinSmith\",\"M.Dale\",\"A.Marcantonio\",\"AndreasWeigend\",\"ChristopherConnolly\",\"ShaulHochstein\",\"StefanD.Wilke\",\"NathanIntrator\",\"KlausPawelzik\",\"JamesPittman\",\"Chan-doLee\",\"KlausObermayer\",\"TommiS.Jaakkola\",\"DanielJ.Rosen\",\"AldraWatanabe\",\"StuartMackie\",\"A.Shustorovich\",\"N.Murata\",\"T.Jaakkola\",\"DongXiang\",\"MichailZak\",\"StephenLane\",\"ScottMakeig\",\"P.ReadMontague\",\"W.Bair\",\"HarrisDmcker\",\"HerbertRoitblat\",\"AlexJ.Smola\",\"JamesT.Buchanan\",\"AndreasHerz\",\"DanielL.Ruderman\",\"EmanuelTodorov\",\"A.Rangarajan\",\"WolfgangMaass\",\"MariusUsher\",\"MichaelFinke\",\"FriedrichLeiseh\",\"WilliamBialek\",\"G.M.Kuhn\",\"RalphLinsker\",\"JohnY.Cheung\",\"H.SebastianSeung\",\"A.D.Back\",\"J.C.Houk\",\"KlausR.Pawelzik\",\"ScottFahlman\",\"JamesA.Pittman\",\"MichaelLittman\",\"PaulMunro\",\"RezaShadmehr\",\"MitsuoKomura\",\"EricGranger\",\"J.F.Shepanski\",\"TrevorJ.Darrell\",\"ShivakumarVaithyanathan\",\"AnthonyBell\",\"NicolSchraudolph\",\"RalfWessel\",\"KristinBennett\",\"DonaldMathis\",\"E.Pasero\",\"MasahikoHamno\",\"Tzyy-PingJung\",\"C.LeeGiles\",\"RodneyGoodman\",\"B.Linares-Barranco\",\"T.G.Dietterich\",\"YuedongWang\",\"AnthonyKuh\",\"BradleyC.Love\",\"K.Doya\",\"AtamP.Dhawan\",\"AdrianTrapletti\",\"PieroCosi\",\"G.T.Buracas\",\"WillardMiranker\",\"TerenceSanger\",\"JustinBoyan\",\"UdoFanst\",\"ThomasR.Hancock\",\"OttoSchmidbauer\",\"HerbertWiklicky\",\"BrianS.Blais\",\"GaryM.Kuhn\",\"W.Miller\",\"SehoOh\",\"DavidB.Grimes\",\"DanaH.Ballard\",\"Masa-akiSato\",\"ErnestFokoue\",\"FrankWerblin\",\"JohnS.Bridle\",\"MasashiSugiyama\",\"MichaelL.Chuang\",\"AndrewLippman\",\"H.MartinReekie\",\"CarverMead\",\"A.Linden\",\"S.C.Kremer\",\"AlvaroA.Cmz-Cabrara\",\"B.W.Mel\",\"C.Darken\",\"DouglasL.Reilly\",\"WilhamBialek\",\"GaleMartin\",\"PeterSykacek\",\"DirkTimmerman\",\"HynekHermansky\",\"T.D.Albright\",\"S.Pickard\",\"MarkRing\",\"P.L.Bartlett\",\"K.Schulten\",\"WilliamP.Lincoln\",\"BojanPetek\",\"H.S.Seung\",\"M.Revow\",\"MarcusHeld\",\"DavidTerman\",\"MichiakiTaniguchi\",\"GiovanniFlammia\",\"GregoryECooper\",\"W.Maass\",\"YuansongLiao\",\"MostefaGolea\",\"WilliamE.Vinje\",\"HermannHild\",\"F.Fallside\",\"RonaldRosenfeld\",\"PatrikHoyer\",\"BrianBox\",\"PeterBollmann-Sdorra\",\"SimonDennis\",\"KennethD.Miller\",\"K.Yamada\",\"MarinaMeila\",\"MichaelE.Tipping\",\"JohnF.Kolen\",\"T.Xu\",\"J.L.vanHemmen\",\"SandraPanizza\",\"HolgerSchoner\",\"M.Garzon\",\"SteveMims\",\"DonghuiCai\",\"S.Amari\",\"GlennMarion\",\"XuboSong\",\"Hsing-HenChen\",\"StephanieSeneft\",\"L.Pessoa\",\"WolframMenzel\",\"DavidTam\",\"ScottMarkel\",\"TimothyX.Brown\",\"JonathanQ.Li\",\"AoZee\",\"J.Kramer\",\"HuguesBersini\",\"D.Geiger\",\"J.Makhoul\",\"MatthewBrand\",\"ThomasK.Landauer\",\"DavidJ.C.MacKay\",\"T.P.Allen\",\"GezaGyorgyi\",\"DavidChapman\",\"SebastianB.Thrun\",\"VolkerHansen\",\"BernardoA.Huberman\",\"P.JonathonPhillips\",\"C.K.I.Williams\",\"RobertSchapire\",\"DavidJ.Crisp\",\"BrooksBisofberger\",\"JeanneTownsend\",\"DmitryRinberg\",\"CliffordLau\",\"JohnHershey\",\"DirkOrmoneit\",\"D.B.Schwartz\",\"HorstBischof\",\"EtanJ.Markus\",\"SayanMukherjee\",\"ChangfengWang\",\"BartlettMel\",\"AndreasM.Bartels\",\"D.MacKay\",\"XiuwenLiu\",\"RistoMiikkulainen\",\"JimDonnett\",\"Yee-WhyeTeh\",\"RobertC.Williamson\",\"BrianV.Bonnlander\",\"Yee-ChunLee\",\"PaulMueller\",\"ArlindoL.Oliveira\",\"SachaB.Nelson\",\"A.Cichocki\",\"PaulRhodes\",\"A.Blake\",\"SusanCiarroccaLee\",\"RobertCrites\",\"AliceChiang\",\"GregoryE.Gonye\",\"A.Dembo\",\"JitendraMalik\",\"VijaykumarGullapalli\",\"RebeccaCastafio\",\"WilliamBaxter\",\"ChristianW.Eurich\",\"GaryLynch\",\"MichaelJ.Carter\",\"TerrenceFine\",\"AlexanderMoopenn\",\"ThomasK.Miller\",\"RichardCoggins\",\"GarrisonW.Cottrell\",\"JonathanBachrach\",\"RichardH.Lathrop\",\"BrandynWebb\",\"DarrellLaham\",\"Shun-ichiAmari\",\"T.Sabisch.\",\"UpinderS.Bhalla\",\"O.Farotimi\",\"ZacharyMainen\",\"P.Dayan\",\"SteveCttien\",\"ScottE.Fahlman\",\"MichaelTunnon\",\"ManoelFernandoTenorio\",\"PaulW.Goldberg\",\"BillBaird\",\"R.P.N.Rao\",\"B.Kingsbury\",\"D.Henderson\",\"NicholasS.Flann\",\"WulframGerstner\",\"WilliamE.Skaggs\",\"AlexT.Nelson\",\"JackD.Cowan\",\"Y.Abu-Mostafa\",\"BenoitHuet\",\"KenjiDoya\",\"AndrewD.Brown\",\"DanielKersten\",\"T.Darrell\",\"RobertL.Tokar\",\"SimonJ.Thorpe\",\"AlexanderLinden\",\"X.Wang\",\"ZeevOlami\",\"P.S.Krishnaprasad\",\"J.D.Cowen\",\"TadashiShibata\",\"S.Lawrence\",\"MarkHoller\",\"ErichJ.Smythe\",\"MichaelMurray\",\"J.LeovanHemmen\",\"TomN.Todd\",\"EliotMoss\",\"Y.C.Pati\",\"RailKompe\",\"ReidR.Harrison\",\"StephanLuna\",\"LawrenceDavis\",\"MargaretSereno\",\"ThomasBriegel\",\"AlokeGuha\",\"FriedrichT.Sommex\",\"BarbaraRosario\",\"TheresaLong\",\"R.Meir\",\"ToddLeen\",\"T.Morimoto\",\"KoSakai\",\"JasonSroka\",\"MattMelton\",\"G.W.Flake\",\"AdamJ.Nucci\",\"Ronald.Rivest\",\"A.Senior\",\"AndrzejCichocki\",\"S.P.M.Choi\",\"YvesChauvin\",\"RajeshP.N.Rao\",\"H.C.Rae\",\"VictorW.Zue\",\"R.M.Westervelt\",\"SongLi\",\"DaleK.Lee\",\"VirginiaL.Stonick\",\"RichardS.Zemel\",\"StephenJoseHanson\",\"MichaelJ.Berry\",\"RalphEtienne-Cummings\",\"JacquesJ.Vidal\",\"JoosVandewalle\",\"A.Juels\",\"JuanK.Lin\",\"J.A.Marshall\",\"JanetMetcalfe\",\"ShengMa\",\"BernardoHuberman\",\"V.A.Chulaevsky\",\"T.Flash\",\"AlexRobel\",\"JaapC.Schouten\",\"S.Boes\",\"RenatoVicente\",\"RonnyMeir\",\"NelsonMorgan\",\"KurtHomik\",\"Z.Ghahramani\",\"MenasheDornay\",\"W.Zhang\",\"XinWang\",\"KarvelK.Thomber\",\"BillG.Home\",\"R.A.Grupen\",\"V.Sundareswaran\",\"TakahiroWatanabe\",\"VladimirVapnik\",\"ZiliLiu\",\"Jean-FranqoisVibert\",\"OlivierChapelle\",\"ChanthalChatterjee\",\"RobertJ.Marks\",\"MarkFanty\",\"AlexanderGrunewald\",\"HalMcCartor\",\"H.Nakahara\",\"J.AllanHobson\",\"ChristopherL.Scofield\",\"YechezkelYeshurun\",\"NathanH.Brown\",\"H.Wang\",\"ShawnR.Lockery\",\"CurtisPadgett\",\"A.Meyer-Baese\",\"S.A.Solla\",\"YakWeiss\",\"YingZhao\",\"JamesC.Houk\",\"WilliamFinnoff\",\"AndrewD.J.Cross\",\"I.Santoso\",\"RichardC.Wilson\",\"ThomasKepler\",\"YehudaSalu\",\"MichaelI.Miller\",\"J.C.Hager\",\"S.K.Khanna\",\"JakobBohr\",\"MichaelJordan\",\"RobertA.Jacobs\",\"A.B.Kirillov\",\"MichaelD.Revow\",\"ReimarHolmann\",\"MarianStewartBartlett\",\"PeterSollich\",\"M.Niranjan\",\"R.AndrewMcCallum\",\"YeshwantK.Muthusamy\",\"L.Bottou\",\"RobertCunningham\",\"LindaKukolich\",\"J.T.Buckingham\",\"JosephSirosh\",\"DavidWolpert\",\"J.Schneider\",\"RichardRohwer\",\"S.Churcher\",\"MauroBirattari\",\"A.P.Dunmur\",\"PeterDayan\",\"YongLiu\",\"JohnC.Platt\",\"KeChen\",\"DavidCohn\",\"LyleJ.Borg-Graham\",\"AbirZahalka\",\"WilliamB.Levy\",\"JanetWiles\",\"MassoudOmidvar\",\"TatsutoMurayama\",\"PhilipH.Goodman\",\"JohnBridle\",\"WilliamT.Freeman\",\"M.Leroux\",\"JustinA.Boyan\",\"EricBoussard\",\"SherrylTomboulian\",\"EricJohnson\",\"FabrizioGabbiani\",\"ThiloT.Frieg\",\"D.Ormoneit\",\"SorenBrunak\",\"V.Kadirkamanathan\",\"EricA.Hansen\",\"RichardLadnet\",\"M.Jabri\",\"EdmondoTrentin\",\"KaganTurner\"],\"author_sizes\":[1,1,3,2,1,1,1,1,3,1,1,1,1,1,1,1,1,5,1,1,1,3,1,1,1,1,1,1,1,7,1,2,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,6,1,1,1,1,2,1,1,1,8,10,1,1,1,1,1,1,11,1,2,1,1,1,1,1,1,1,1,1,3,1,1,4,1,1,1,1,2,1,1,1,1,1,1,1,1,1,1,1,1,3,1,1,2,1,1,1,2,1,2,1,1,2,1,1,1,2,3,1,3,1,3,1,2,1,3,3,1,2,1,1,1,2,1,1,1,1,1,2,1,16,1,1,1,1,1,1,1,3,1,1,1,1,1,1,1,2,1,1,1,1,2,1,1,1,2,3,2,1,1,1,2,1,1,1,1,2,1,1,7,5,1,2,3,1,1,2,1,3,1,1,1,1,1,1,3,1,21,1,1,1,1,1,1,3,1,1,1,2,1,1,1,3,1,1,6,2,1,1,2,1,1,1,1,1,1,1,1,1,1,1,2,3,4,3,1,1,1,1,1,7,1,1,1,2,1,1,1,3,1,9,2,2,2,1,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,3,2,1,1,2,3,1,2,1,1,1,1,1,1,1,1,2,8,1,2,4,1,1,1,10,1,1,1,1,1,1,1,1,1,1,2,1,2,1,1,1,1,1,2,1,2,4,10,1,1,4,1,1,1,1,1,2,1,1,3,1,1,1,4,1,1,1,1,2,1,1,1,1,1,1,1,1,1,2,1,2,1,1,1,1,3,2,1,1,1,1,2,3,2,1,1,2,2,2,1,1,2,1,1,1,1,1,1,1,1,1,1,1,4,1,13,1,1,1,2,1,1,2,3,1,1,1,1,2,3,1,4,2,1,2,1,2,1,5,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,2,4,1,3,1,1,1,1,1,1,1,1,1,4,1,1,2,6,1,1,1,1,1,2,1,3,1,1,2,2,1,1,1,1,1,3,1,1,1,1,1,1,1,1,1,1,1,1,4,2,1,5,1,1,2,1,1,2,1,1,2,1,1,2,1,1,1,5,1,2,1,2,1,3,1,1,3,3,1,1,1,2,1,1,1,1,1,1,1,1,1,1,2,1,1,1,1,2,1,1,1,1,1,1,3,1,8,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,5,1,1,1,1,2,4,2,1,1,1,1,1,1,2,1,1,1,3,1,1,1,1,1,2,1,3,2,1,1,1,2,1,1,1,3,1,1,2,2,1,3,1,1,1,2,1,2,1,4,1,1,2,1,1,1,9,1,1,3,1,1,3,2,6,2,1,1,1,1,2,1,1,1,2,1,1,1,1,2,3,1,1,1,1,1,1,2,1,2,1,1,1,1,2,1,1,1,1,1,1,1,1,1,2,1,1,1,2,1,1,1,3,1,2,1,1,3,1,1,3,1,2,8,2,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,1,6,1,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,7,3,2,3,1,1,3,1,1,1,1,1,2,1,1,1,2,1,1,1,2,1,1,1,1,1,2,1,1,2,1,1,1,1,1,3,1,1,2,5,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,2,1,1,3,2,1,1,1,1,1,1,1,5,4,6,1,1,3,4,2,1,1,2,2,1,1,9,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,2,1,2,1,1,1,1,1,1,2,1,6,1,1,1,1,1,2,1,1,1,1,1,6,1,1,1,2,1,4,1,1,1,1,3,1,1,2,1,3,1,1,1,1,1,3,1,1,1,1,1,1,2,3,1,1,1,1,1,1,1,1,2,6,1,5,1,1,1,1,1,3,1,2,1,1,1,1,4,1,3,1,1,3,1,4,1,1,1,1,1,2,1,1,1,1,2,1,1,2,8,1,2,1,1,2,1,1,1,2,2,1,1,1,2,1,2,2,1,1,1,3,1,1,4,1,2,1,1,1,4,1,1,2,1,1,1,1,1,1,1,1,1,1,2,1,2,1,1,1,1,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,10,4,1,1,5,2,1,1,1,6,1,1,1,1,1,1,1,7,1,1,2,1,7,1,11,1,1,1,1,1,1,1,7,1,2,1,1,1,1,1,1,1,3,1,1,1,1,2,3,1,1,1,1,1,1,1,1,1,3,1,1,1,1,1,1,2,1,1,1,1,1,1,2,1,1,1,2,1,1,8,1,2,3,1,1,1,1,2,1,2,2,7,1,1,1,1,3,1,1,31,3,4,1,4,1,1,1,2,1,1,4,2,6,3,1,2,1,1,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,1,1,1,1,1,1,1,1,1,1,3,1,2,1,2,3,2,4,1,1,1,1,1,1,1,1,5,2,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,1,1,3,1,1,1,1,2,1,1,2,1,2,1,2,3,1,3,2,1,1,1,1,1,1,2,1,1,1,1,3,2,1,1,1,1,1,1,7,1,1,3,1,1,1,1,1,1,5,2,1,1,1,1,1,2,1,1,2,1,1,3,1,1,1,1,1,1,1,11,2,3,1,3,1,5,4,3,1,1,1,1,1,1,1,1,1,1,2,1,2,3,1,1,2,6,1,1,1,7,1,1,3,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,1,1,3,1,3,1,1,1,1,3,1,1,1,1,1,1,1,1,1,1,1,1,2,1,2,1,2,1,1,1,1,1,2,1,1,1,3,1,2,1,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,3,4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,1,1,1,2,1,1,1,1,1,1,1,1,1,1,2,2,2,1,1,1,1,4,1,1,1,6,1,2,1,1,1,2,1,1,1,1,1,1,2,2,5,1,1,1,1,2,1,2,2,1,1,1,1,1,2,9,1,1,1,3,1,1,1,1,1,1,1,2,1,2,1,2,1,1,1,6,1,1,1,1,1,1,1,1,3,1,1,1,1,1,1,1,1,1,1,1,2,1,1,2,1,1,2,1,2,1,1,2,1,1,1,1,1,1,1,1,1,1,1,1,3,1,1,3,1,5,1,2,1,2,1,3,1,1,1,2,1,1,1,1,3,1,1,1,1,1,1,1,1,4,1,2,1,3,1,1,1,3,3,1,1,1,1,2,1,1,1,1,1,4,4,1,1,2,3,1,1,1,1,3,1,1,1,1,3,1,3,1,1,3,1,1,1,1,1,4,1,1,3,2,1,1,3,1,4,1,1,1,1,1,1,1,1,1,1,1,1,2,1,1,3,2,1,8,1,1,1,1,1,1,1,1,1,4,1,1,1,1,1,1,1,14,5,1,1,3,1,4,1,1,2,1,1,1,1,1,1,1,1,2,1,2,1,3,1,1,2,1,1,4,3,1,1,1,1,2,1,1,1,1,4,1,1,1,24,6,2,1,3,1,1,1,1,1,1,1,2,3,1,1,1,1,4,1,1,1,1,2,1,1,3,2,1,11,4,1,1,4,1,2,2,1,6,4,1,1,3,1,1,1,1,1,1,4,1,1,1,1,1,1,1,1,1,1,2,2,3,1,1,1,1,1,6,1,1,1,1,2,8,2,1,1,2,1,2,1,3,1,1,1,1,3,1,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,1,4,3,2,1,1,2,5,2,1,2,9,1,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,4,1,1,1,1,2,3,2,1,1,2,1,2,1,1,1,1,1,1,1,4,1,3,1,1,1,1,1,1,6,1,2,1,2,1,5,2,1,1,1,1,2,2,2,1,1,1,1,1,1,2,1,1,2,1,2,1,1,1,1,1,1,1,2,1,1,2,1,1,1,1,2,1,1,2,1,2,1,3,1,2,2,6,1,1,1,1,2,1,1,1,1,2,1,10,3,5,2,1,1,1,1,2,1,1,1,2,3,1,1,18,1,10,1,1,1,1,1,1,5,1,3,1,1,1,1,1,5,1,2,1,2,3,1,1,1,1,1,1,1,1,1,1,2,1,1,1,2,1,1,1,1,1,3,1,3,1,3,1,1,1,1,1,1,3,1,1,1,2,1,1,1,1,1,2,2,1,2,1,4,1,2,1,1,1,1,1,1,1,1,2,2,1,1,2,1,1,1,1,1,2,6,1,1,11,1,1,1,1,1,1,1,4,1,2,1,1,3,1,1,2,2,1,1,1,2,1,1,1,1,2,1,1,1,1,1,1,1,1,1,2,1,2,1,1,2,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,3,1,1,1,1,1,1,1,1,1,1,5,2,1,1,8,1,1,1,1,1,1,1,1,1,1,2,1,1,1,1,4,1,1,4,1,2,8,2,2,1,4,1,3,1,7,1,2,1,1,1,1,1,4,1,1,1,1,1,2,1,1,1,1,1,1,2,9,3,1,1,1,3,1,2,1,1,1,1,1,2,1,1,1,2,1,1,1,1,1,1,4,1,1,1,3,1,1,3,2,3,1,1,1,1,1,1,3,1,2,1,1,1,1,2,1,3,1,1,2,1,3,1,1,1,1,1,1,2,1,2,2,2,2,1,1,1,2,1,3,3,1,1,2,1,1,1,1,1,2,1,1,4,1,1,1,1,1,3,1,1,1,1,1,1,1,1,5,1,1,1,2,1,1,1,2,2,2,1,1,1,1,1,1,1,1,1,1,2,1,1,1,1,3,1,1,4,1,2,2,1,1,2,1,1,1,1,1,1,2,1,2,1,1,1,1,1,1,1,1,2,6,2,1,1,1,7,1,1,1,1,2,1,1,1,1,1,6,1,1,4,1,3,1,2,6,1,1,5,1,2,1,1,1,1,1,1,1,3,1,1,1,1,1,2,1,2,1,1,1,1,1,1,3,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,6,3,1,1,3,1,2,1,10,2,1,3,2,1,1,2,1,1,2,1,1,1,1,1,1,1,3,5,1,1,1,1,1,1,1,1,1,2,4,2,1,2,1,3,2,1,1,1,2,2,1,1,1,2,1,1,2,1,3,1,2,2,1,2,1,1,1,1,1,1,2,2,1,3,1,1,8,1,1,1,1,1,1,1,1,2,1,3,1,1,1,16,2,9,1,4,1,1,1,6,1,1,1,1,5,1,1,1,1,1,1,1,1,2,2,2,1,1,1,1],\"radii\":[0.1,0.1,0.30000000000000004,0.2,0.1,0.1,0.1,0.1,0.30000000000000004,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.5,0.1,0.1,0.1,0.30000000000000004,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.7000000000000001,0.1,0.2,0.30000000000000004,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.6000000000000001,0.1,0.1,0.1,0.1,0.2,0.1,0.1,0.1,0.8,1.0,0.1,0.1,0.1,0.1,0.1,0.1,1.1,0.1,0.2,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.30000000000000004,0.1,0.1,0.4,0.1,0.1,0.1,0.1,0.2,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.30000000000000004,0.1,0.1,0.2,0.1,0.1,0.1,0.2,0.1,0.2,0.1,0.1,0.2,0.1,0.1,0.1,0.2,0.30000000000000004,0.1,0.30000000000000004,0.1,0.30000000000000004,0.1,0.2,0.1,0.30000000000000004,0.30000000000000004,0.1,0.2,0.1,0.1,0.1,0.2,0.1,0.1,0.1,0.1,0.1,0.2,0.1,1.6,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.30000000000000004,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.2,0.1,0.1,0.1,0.1,0.2,0.1,0.1,0.1,0.2,0.30000000000000004,0.2,0.1,0.1,0.1,0.2,0.1,0.1,0.1,0.1,0.2,0.1,0.1,0.7000000000000001,0.5,0.1,0.2,0.30000000000000004,0.1,0.1,0.2,0.1,0.30000000000000004,0.1,0.1,0.1,0.1,0.1,0.1,0.30000000000000004,0.1,2.1,0.1,0.1,0.1,0.1,0.1,0.1,0.30000000000000004,0.1,0.1,0.1,0.2,0.1,0.1,0.1,0.30000000000000004,0.1,0.1,0.6000000000000001,0.2,0.1,0.1,0.2,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.2,0.30000000000000004,0.4,0.30000000000000004,0.1,0.1,0.1,0.1,0.1,0.7000000000000001,0.1,0.1,0.1,0.2,0.1,0.1,0.1,0.30000000000000004,0.1,0.9,0.2,0.2,0.2,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.2,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.30000000000000004,0.2,0.1,0.1,0.2,0.30000000000000004,0.1,0.2,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.2,0.8,0.1,0.2,0.4,0.1,0.1,0.1,1.0,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.2,0.1,0.2,0.1,0.1,0.1,0.1,0.1,0.2,0.1,0.2,0.4,1.0,0.1,0.1,0.4,0.1,0.1,0.1,0.1,0.1,0.2,0.1,0.1,0.30000000000000004,0.1,0.1,0.1,0.4,0.1,0.1,0.1,0.1,0.2,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.2,0.1,0.2,0.1,0.1,0.1,0.1,0.30000000000000004,0.2,0.1,0.1,0.1,0.1,0.2,0.30000000000000004,0.2,0.1,0.1,0.2,0.2,0.2,0.1,0.1,0.2,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.4,0.1,1.3,0.1,0.1,0.1,0.2,0.1,0.1,0.2,0.30000000000000004,0.1,0.1,0.1,0.1,0.2,0.30000000000000004,0.1,0.4,0.2,0.1,0.2,0.1,0.2,0.1,0.5,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.2,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.2,0.4,0.1,0.30000000000000004,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.4,0.1,0.1,0.2,0.6000000000000001,0.1,0.1,0.1,0.1,0.1,0.2,0.1,0.30000000000000004,0.1,0.1,0.2,0.2,0.1,0.1,0.1,0.1,0.1,0.30000000000000004,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.4,0.2,0.1,0.5,0.1,0.1,0.2,0.1,0.1,0.2,0.1,0.1,0.2,0.1,0.1,0.2,0.1,0.1,0.1,0.5,0.1,0.2,0.1,0.2,0.1,0.30000000000000004,0.1,0.1,0.30000000000000004,0.30000000000000004,0.1,0.1,0.1,0.2,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.2,0.1,0.1,0.1,0.1,0.2,0.1,0.1,0.1,0.1,0.1,0.1,0.30000000000000004,0.1,0.8,0.2,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.5,0.1,0.1,0.1,0.1,0.2,0.4,0.2,0.1,0.1,0.1,0.1,0.1,0.1,0.2,0.1,0.1,0.1,0.30000000000000004,0.1,0.1,0.1,0.1,0.1,0.2,0.1,0.30000000000000004,0.2,0.1,0.1,0.1,0.2,0.1,0.1,0.1,0.30000000000000004,0.1,0.1,0.2,0.2,0.1,0.30000000000000004,0.1,0.1,0.1,0.2,0.1,0.2,0.1,0.4,0.1,0.1,0.2,0.1,0.1,0.1,0.9,0.1,0.1,0.30000000000000004,0.1,0.1,0.30000000000000004,0.2,0.6000000000000001,0.2,0.1,0.1,0.1,0.1,0.2,0.1,0.1,0.1,0.2,0.1,0.1,0.1,0.1,0.2,0.30000000000000004,0.1,0.1,0.1,0.1,0.1,0.1,0.2,0.1,0.2,0.1,0.1,0.1,0.1,0.2,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.2,0.1,0.1,0.1,0.2,0.1,0.1,0.1,0.30000000000000004,0.1,0.2,0.1,0.1,0.30000000000000004,0.1,0.1,0.30000000000000004,0.1,0.2,0.8,0.2,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.2,0.2,0.2,0.1,0.6000000000000001,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.2,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.7000000000000001,0.30000000000000004,0.2,0.30000000000000004,0.1,0.1,0.30000000000000004,0.1,0.1,0.1,0.1,0.1,0.2,0.1,0.1,0.1,0.2,0.1,0.1,0.1,0.2,0.1,0.1,0.1,0.1,0.1,0.2,0.1,0.1,0.2,0.1,0.1,0.1,0.1,0.1,0.30000000000000004,0.1,0.1,0.2,0.5,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.2,0.1,0.1,0.1,0.1,0.1,0.1,0.2,0.1,0.1,0.30000000000000004,0.2,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.5,0.4,0.6000000000000001,0.1,0.1,0.30000000000000004,0.4,0.2,0.1,0.1,0.2,0.2,0.1,0.1,0.9,0.1,0.2,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.2,0.1,0.2,0.1,0.1,0.1,0.1,0.1,0.1,0.2,0.1,0.6000000000000001,0.1,0.1,0.1,0.1,0.1,0.2,0.1,0.1,0.1,0.1,0.1,0.6000000000000001,0.1,0.1,0.1,0.2,0.1,0.4,0.1,0.1,0.1,0.1,0.30000000000000004,0.1,0.1,0.2,0.1,0.30000000000000004,0.1,0.1,0.1,0.1,0.1,0.30000000000000004,0.1,0.1,0.1,0.1,0.1,0.1,0.2,0.30000000000000004,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.2,0.6000000000000001,0.1,0.5,0.1,0.1,0.1,0.1,0.1,0.30000000000000004,0.1,0.2,0.1,0.1,0.1,0.1,0.4,0.1,0.30000000000000004,0.1,0.1,0.30000000000000004,0.1,0.4,0.1,0.1,0.1,0.1,0.1,0.2,0.1,0.1,0.1,0.1,0.2,0.1,0.1,0.2,0.8,0.1,0.2,0.1,0.1,0.2,0.1,0.1,0.1,0.2,0.2,0.1,0.1,0.1,0.2,0.1,0.2,0.2,0.1,0.1,0.1,0.30000000000000004,0.1,0.1,0.4,0.1,0.2,0.1,0.1,0.1,0.4,0.1,0.1,0.2,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.2,0.1,0.2,0.1,0.1,0.1,0.1,0.2,0.2,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,1.0,0.4,0.1,0.1,0.5,0.2,0.1,0.1,0.1,0.6000000000000001,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.7000000000000001,0.1,0.1,0.2,0.1,0.7000000000000001,0.1,1.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.7000000000000001,0.1,0.2,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.30000000000000004,0.1,0.1,0.1,0.1,0.2,0.30000000000000004,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.30000000000000004,0.1,0.1,0.1,0.1,0.1,0.1,0.2,0.1,0.1,0.1,0.1,0.1,0.1,0.2,0.1,0.1,0.1,0.2,0.1,0.1,0.8,0.1,0.2,0.30000000000000004,0.1,0.1,0.1,0.1,0.2,0.1,0.2,0.2,0.7000000000000001,0.1,0.1,0.1,0.1,0.30000000000000004,0.1,0.1,3.1,0.30000000000000004,0.4,0.1,0.4,0.1,0.1,0.1,0.2,0.1,0.1,0.4,0.2,0.6000000000000001,0.30000000000000004,0.1,0.2,0.1,0.1,0.1,0.2,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.2,0.2,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.30000000000000004,0.1,0.2,0.1,0.2,0.30000000000000004,0.2,0.4,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.5,0.2,0.1,0.1,0.1,0.1,0.1,0.1,0.2,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.30000000000000004,0.1,0.1,0.1,0.1,0.2,0.1,0.1,0.2,0.1,0.2,0.1,0.2,0.30000000000000004,0.1,0.30000000000000004,0.2,0.1,0.1,0.1,0.1,0.1,0.1,0.2,0.1,0.1,0.1,0.1,0.30000000000000004,0.2,0.1,0.1,0.1,0.1,0.1,0.1,0.7000000000000001,0.1,0.1,0.30000000000000004,0.1,0.1,0.1,0.1,0.1,0.1,0.5,0.2,0.1,0.1,0.1,0.1,0.1,0.2,0.1,0.1,0.2,0.1,0.1,0.30000000000000004,0.1,0.1,0.1,0.1,0.1,0.1,0.1,1.1,0.2,0.30000000000000004,0.1,0.30000000000000004,0.1,0.5,0.4,0.30000000000000004,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.2,0.1,0.2,0.30000000000000004,0.1,0.1,0.2,0.6000000000000001,0.1,0.1,0.1,0.7000000000000001,0.1,0.1,0.30000000000000004,0.2,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.2,0.1,0.1,0.30000000000000004,0.1,0.30000000000000004,0.1,0.1,0.1,0.1,0.30000000000000004,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.2,0.1,0.2,0.1,0.2,0.1,0.1,0.1,0.1,0.1,0.2,0.1,0.1,0.1,0.30000000000000004,0.1,0.2,0.1,0.1,0.2,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.2,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.30000000000000004,0.4,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.2,0.1,0.1,0.1,0.2,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.2,0.2,0.2,0.1,0.1,0.1,0.1,0.4,0.1,0.1,0.1,0.6000000000000001,0.1,0.2,0.1,0.1,0.1,0.2,0.1,0.1,0.1,0.1,0.1,0.1,0.2,0.2,0.5,0.1,0.1,0.1,0.1,0.2,0.1,0.2,0.2,0.1,0.1,0.1,0.1,0.1,0.2,0.9,0.1,0.1,0.1,0.30000000000000004,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.2,0.1,0.2,0.1,0.2,0.1,0.1,0.1,0.6000000000000001,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.30000000000000004,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.2,0.1,0.1,0.2,0.1,0.1,0.2,0.1,0.2,0.1,0.1,0.2,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.30000000000000004,0.1,0.1,0.30000000000000004,0.1,0.5,0.1,0.2,0.1,0.2,0.1,0.30000000000000004,0.1,0.1,0.1,0.2,0.1,0.1,0.1,0.1,0.30000000000000004,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.4,0.1,0.2,0.1,0.30000000000000004,0.1,0.1,0.1,0.30000000000000004,0.30000000000000004,0.1,0.1,0.1,0.1,0.2,0.1,0.1,0.1,0.1,0.1,0.4,0.4,0.1,0.1,0.2,0.30000000000000004,0.1,0.1,0.1,0.1,0.30000000000000004,0.1,0.1,0.1,0.1,0.30000000000000004,0.1,0.30000000000000004,0.1,0.1,0.30000000000000004,0.1,0.1,0.1,0.1,0.1,0.4,0.1,0.1,0.30000000000000004,0.2,0.1,0.1,0.30000000000000004,0.1,0.4,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.2,0.1,0.1,0.30000000000000004,0.2,0.1,0.8,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.4,0.1,0.1,0.1,0.1,0.1,0.1,0.1,1.4000000000000001,0.5,0.1,0.1,0.30000000000000004,0.1,0.4,0.1,0.1,0.2,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.2,0.1,0.2,0.1,0.30000000000000004,0.1,0.1,0.2,0.1,0.1,0.4,0.30000000000000004,0.1,0.1,0.1,0.1,0.2,0.1,0.1,0.1,0.1,0.4,0.1,0.1,0.1,2.4000000000000004,0.6000000000000001,0.2,0.1,0.30000000000000004,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.2,0.30000000000000004,0.1,0.1,0.1,0.1,0.4,0.1,0.1,0.1,0.1,0.2,0.1,0.1,0.30000000000000004,0.2,0.1,1.1,0.4,0.1,0.1,0.4,0.1,0.2,0.2,0.1,0.6000000000000001,0.4,0.1,0.1,0.30000000000000004,0.1,0.1,0.1,0.1,0.1,0.1,0.4,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.2,0.2,0.30000000000000004,0.1,0.1,0.1,0.1,0.1,0.6000000000000001,0.1,0.1,0.1,0.1,0.2,0.8,0.2,0.1,0.1,0.2,0.1,0.2,0.1,0.30000000000000004,0.1,0.1,0.1,0.1,0.30000000000000004,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.2,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.2,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.4,0.30000000000000004,0.2,0.1,0.1,0.2,0.5,0.2,0.1,0.2,0.9,0.1,0.1,0.2,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.4,0.1,0.1,0.1,0.1,0.2,0.30000000000000004,0.2,0.1,0.1,0.2,0.1,0.2,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.4,0.1,0.30000000000000004,0.1,0.1,0.1,0.1,0.1,0.1,0.6000000000000001,0.1,0.2,0.1,0.2,0.1,0.5,0.2,0.1,0.1,0.1,0.1,0.2,0.2,0.2,0.1,0.1,0.1,0.1,0.1,0.1,0.2,0.1,0.1,0.2,0.1,0.2,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.2,0.1,0.1,0.2,0.1,0.1,0.1,0.1,0.2,0.1,0.1,0.2,0.1,0.2,0.1,0.30000000000000004,0.1,0.2,0.2,0.6000000000000001,0.1,0.1,0.1,0.1,0.2,0.1,0.1,0.1,0.1,0.2,0.1,1.0,0.30000000000000004,0.5,0.2,0.1,0.1,0.1,0.1,0.2,0.1,0.1,0.1,0.2,0.30000000000000004,0.1,0.1,1.8,0.1,1.0,0.1,0.1,0.1,0.1,0.1,0.1,0.5,0.1,0.30000000000000004,0.1,0.1,0.1,0.1,0.1,0.5,0.1,0.2,0.1,0.2,0.30000000000000004,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.2,0.1,0.1,0.1,0.2,0.1,0.1,0.1,0.1,0.1,0.30000000000000004,0.1,0.30000000000000004,0.1,0.30000000000000004,0.1,0.1,0.1,0.1,0.1,0.1,0.30000000000000004,0.1,0.1,0.1,0.2,0.1,0.1,0.1,0.1,0.1,0.2,0.2,0.1,0.2,0.1,0.4,0.1,0.2,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.2,0.2,0.1,0.1,0.2,0.1,0.1,0.1,0.1,0.1,0.2,0.6000000000000001,0.1,0.1,1.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.4,0.1,0.2,0.1,0.1,0.30000000000000004,0.1,0.1,0.2,0.2,0.1,0.1,0.1,0.2,0.1,0.1,0.1,0.1,0.2,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.2,0.1,0.2,0.1,0.1,0.2,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.2,0.1,0.1,0.1,0.1,0.1,0.1,0.30000000000000004,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.5,0.2,0.1,0.1,0.8,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.2,0.1,0.1,0.1,0.1,0.4,0.1,0.1,0.4,0.1,0.2,0.8,0.2,0.2,0.1,0.4,0.1,0.30000000000000004,0.1,0.7000000000000001,0.1,0.2,0.1,0.1,0.1,0.1,0.1,0.4,0.1,0.1,0.1,0.1,0.1,0.2,0.1,0.1,0.1,0.1,0.1,0.1,0.2,0.9,0.30000000000000004,0.1,0.1,0.1,0.30000000000000004,0.1,0.2,0.1,0.1,0.1,0.1,0.1,0.2,0.1,0.1,0.1,0.2,0.1,0.1,0.1,0.1,0.1,0.1,0.4,0.1,0.1,0.1,0.30000000000000004,0.1,0.1,0.30000000000000004,0.2,0.30000000000000004,0.1,0.1,0.1,0.1,0.1,0.1,0.30000000000000004,0.1,0.2,0.1,0.1,0.1,0.1,0.2,0.1,0.30000000000000004,0.1,0.1,0.2,0.1,0.30000000000000004,0.1,0.1,0.1,0.1,0.1,0.1,0.2,0.1,0.2,0.2,0.2,0.2,0.1,0.1,0.1,0.2,0.1,0.30000000000000004,0.30000000000000004,0.1,0.1,0.2,0.1,0.1,0.1,0.1,0.1,0.2,0.1,0.1,0.4,0.1,0.1,0.1,0.1,0.1,0.30000000000000004,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.5,0.1,0.1,0.1,0.2,0.1,0.1,0.1,0.2,0.2,0.2,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.2,0.1,0.1,0.1,0.1,0.30000000000000004,0.1,0.1,0.4,0.1,0.2,0.2,0.1,0.1,0.2,0.1,0.1,0.1,0.1,0.1,0.1,0.2,0.1,0.2,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.2,0.6000000000000001,0.2,0.1,0.1,0.1,0.7000000000000001,0.1,0.1,0.1,0.1,0.2,0.1,0.1,0.1,0.1,0.1,0.6000000000000001,0.1,0.1,0.4,0.1,0.30000000000000004,0.1,0.2,0.6000000000000001,0.1,0.1,0.5,0.1,0.2,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.30000000000000004,0.1,0.1,0.1,0.1,0.1,0.2,0.1,0.2,0.1,0.1,0.1,0.1,0.1,0.1,0.30000000000000004,0.2,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.6000000000000001,0.30000000000000004,0.1,0.1,0.30000000000000004,0.1,0.2,0.1,1.0,0.2,0.1,0.30000000000000004,0.2,0.1,0.1,0.2,0.1,0.1,0.2,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.30000000000000004,0.5,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.2,0.4,0.2,0.1,0.2,0.1,0.30000000000000004,0.2,0.1,0.1,0.1,0.2,0.2,0.1,0.1,0.1,0.2,0.1,0.1,0.2,0.1,0.30000000000000004,0.1,0.2,0.2,0.1,0.2,0.1,0.1,0.1,0.1,0.1,0.1,0.2,0.2,0.1,0.30000000000000004,0.1,0.1,0.8,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.2,0.1,0.30000000000000004,0.1,0.1,0.1,1.6,0.2,0.9,0.1,0.4,0.1,0.1,0.1,0.6000000000000001,0.1,0.1,0.1,0.1,0.5,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.2,0.2,0.2,0.1,0.1,0.1,0.1],\"x\":[-3.512376327319423,-7.573826920416016,-15.657080710568477,0.8886360112703541,-11.857091293570692,2.8819434230506986,-10.861958209969991,7.340834118068339,4.373354515455219,11.162149411811766,3.372858174839142,5.504568119584854,4.083277353126485,5.64558156629048,10.694315167236743,10.07407169726308,-4.56727853397035,-8.153249848596033,-4.987305457386152,-12.178428226901623,-0.45191719837854666,-5.601388283302114,-5.7447782295106276,-11.367444962827783,-5.794383231471599,-3.4992124518569034,-5.30372769807904,-0.5319134761382343,-0.9307835379887835,-4.185485206942036,-1.2820603335098075,-15.934308665216346,-9.47189867471111,-5.09003209189394,-5.047679966508324,5.626612415964943,-11.484671693490373,-5.288186142459648,-0.9527731813795476,-7.010600087067584,12.721535928162954,2.6074656458793246,-3.481383090364643,3.4640031235625695,6.9094974923710915,9.385017753452637,-4.589060019743491,-5.73734070988027,-9.107967669711233,-8.1814832269002,-14.132127923491208,-5.096584025874582,9.98886542167458,3.436928515696747,-5.582784075117091,-1.1866254896826625,-4.896257421281919,-15.010964358930282,7.066440479549175,-5.008764421359178,4.859473860732536,5.111547305922333,2.8681991969550094,-16.253557706826143,5.826428169054279,-1.3347661421345147,8.128562541228273,9.850374162622009,-9.374728825939268,7.4626609064406395,-6.009585223716845,-6.668900789970543,9.278501295407693,0.21379212258340943,5.417203251706652,12.87450987544554,-3.8454723001056,-2.0867183783505356,9.463699071015578,-15.702011176796578,1.2948811505549251,4.308719314119799,-6.767721194567674,13.314971608965743,7.03196519507537,-1.65363733434634,-15.88157525692431,-11.50157499397026,5.140519582178243,-9.125338454607997,-7.1115626061119075,5.195413196228228,3.8541513849955638,-5.060534590375528,6.853198773116402,3.001616442988526,-10.974866564195752,-1.384097899398318,5.614861070998383,-12.067629048365465,-11.652668146837552,3.656984712170473,-5.739112012292138,12.360271599831126,-8.078945007226567,-10.270536537602771,-12.206125725592464,-7.631409607554829,10.081257236758384,4.716090369054592,12.412168047445219,15.340650732118426,5.567738009344998,8.35630225507157,-3.3018443889646614,-1.1934790933345518,-14.870483385242057,-10.102059790360782,-11.63675084037919,-12.191020507259973,12.602075768771273,-8.770136759535093,-2.92846891876965,9.188696714688161,1.6247893783785,7.432120213943735,-2.0676024392674246,-15.877272084783122,-2.59332957407028,-2.072058124966086,3.86800226722793,9.92053196205568,5.096095169809999,7.3384285166529954,-6.728190397462053,3.059134120430884,3.3444836708205745,-3.3732349835994992,-13.638097779016661,8.309096247070803,-4.620863036029021,3.4763897329070517,-16.52967725391377,-16.400225728067266,11.03340136775015,-10.866001533102525,11.558132666101722,11.373106101208936,9.025463343354758,-1.4245948584566706,-2.4780841163713094,-4.97735666881696,-6.652393130887271,-14.464737641383218,1.0204508664151037,-11.538098510125906,6.123006307207405,-9.82467766362308,16.506385670871683,3.402050048592128,-2.735858577496484,-11.409488822341526,5.681114571992435,-3.4818014840132516,11.331640328663699,10.515499990560878,3.4223346199813305,-3.1484611388331034,-1.7817262710089128,-14.284249260919601,-3.783766160083895,12.196246316756122,8.731683646699965,1.4996854209889015,-2.234533557807099,5.150807746566578,4.12908778691641,1.132414437045654,8.099120878911696,-3.437137928705018,-14.419645408638354,-16.28643396645675,-13.057214349501994,-2.1330673369217714,1.217051607600235,-2.7483306921844175,13.746125099111163,-8.189425711366834,4.6878806151343015,-9.767767607059715,2.849615888205756,-2.0700851509243896,10.917549072547011,2.5735253686723647,-17.473200081061613,2.6461808863220835,0.30684041159983927,-7.953735153787589,-2.358034731240896,13.44587973165762,-3.047616125826383,4.272443342161092,-14.28013389639783,-14.398302085031299,5.698918574617638,-7.369449006802856,-7.350834661453429,5.033320767692394,-9.132824823288558,12.196197314254828,9.591003447891817,1.040373229190103,2.6252003137646764,4.70512542308349,-17.59473196019903,5.704725497445232,-7.221362582473334,5.471502702687825,-4.4344025623097965,-13.448013894387106,2.2048766627649443,0.3684935644967807,-15.646932107809633,-2.8570121705892904,10.920526573172939,11.728336670690855,10.183547011352028,-0.3714366778185996,3.2057001081222447,-1.0837616733469693,6.274365878418279,-13.539736958869103,-5.49930893428006,6.774474938446106,-7.869900503537881,-3.6309483485208056,-12.470361181001367,-2.2018762740570352,9.88888106389733,1.3702817603496913,-1.744112749642006,3.234317509654733,-3.467985487169356,9.792478184332417,12.085264027725263,6.647650142907997,7.325648434169264,10.69373637184228,-8.340467819854782,7.6071306645794,3.1921547505869334,3.719058375905006,1.3550513224758498,-4.459496449259182,-3.0583887676776165,-5.325658303513516,-6.924944552669918,3.90772323840771,-2.1939113102242778,3.517180126775559,-2.3790991189892154,1.3037543127976916,-13.912344801594875,-7.728868895423459,3.476874083062103,7.613279086903619,-1.1962941524858943,-4.159588010744307,-4.955370229878044,-11.46097953150053,-8.072100831255328,0.25370051617724904,8.53054795609826,-4.649155706441207,13.668234588083777,4.965311766166952,-5.614157377405092,8.308677677316272,10.955365789329246,-16.756525905140712,7.599817817490877,3.7944589130560837,-1.290345219244693,9.504162284700662,3.3996695238307626,4.707580760894247,11.675726750784342,-4.956115235998138,-4.664443775383107,-14.214621990805083,-15.667463059921985,0.4416104332572733,-12.934783273905833,-1.9077482161485873,7.707992967489987,-11.42311221315205,7.246698155756598,-1.615842827462531,7.003481212816193,7.142179238278012,-15.974572584980042,-14.313181479949938,-10.551101262680508,4.915219638154144,7.182446956480654,12.495302168581437,-7.38353415032048,-17.013361914991627,-10.374883566304815,-5.313443325191597,-2.0388696792409053,-6.946944348108779,-1.113641657433714,-15.725817920439232,-3.8779889162798833,1.0702015958489606,5.277897583003232,-10.50185778482064,4.627523358115303,-7.942287120300291,-10.790978799663934,13.668649974493295,-6.9908120931694615,4.658163361894685,-2.9795885384035983,4.063784446297638,-15.775556256720094,0.7890783830718936,3.515457891848988,12.355997221345152,0.41831194941731326,9.21279305325999,10.970439483243315,4.851710086202205,7.267979063118523,-0.5184928937173118,-2.2867514972096323,-5.368770698260295,4.040717891315888,-4.357977690255945,1.8831049274033114,4.565263900321372,-7.386361761478851,10.373573573836184,6.686686393172884,3.0906572149111393,10.214289463082277,13.958992724943752,5.519591745291315,5.6497511694163345,-15.671199632804905,3.6359536223110744,4.815997772838643,-3.9806183821191112,6.386003994281682,-8.023521428305326,-12.057957067661176,-5.476732111440509,-5.131073664160765,10.736870692720625,-14.1595468567874,-5.508855998009428,1.286423733797395,12.09178109942755,-7.358423261490492,10.520784617116627,-13.818504742783714,-9.179664590030537,-13.706935850238779,-6.333961547029036,3.6054850044081244,2.25387496806176,-11.604055098987287,-3.407150536082422,-10.069339997297694,-1.7590959666361825,-0.6589591052827134,6.608820645444788,9.624893901696044,-0.5478346096366515,-5.610650929163163,-4.694469408335206,6.637375929892567,7.846401891544746,-4.132347067882824,7.943105136754718,10.649556814661043,-6.996244068252532,-2.1567950257254918,-4.8266122791085175,-11.880540805444996,-5.337254287023348,5.6606059744538095,-14.119869274432432,-16.26009952635096,-5.066102263335308,3.969099124452516,-13.848787761049525,-5.079162317216447,5.320366844169882,-0.31468180619880703,-3.050326090051837,5.720800533865931,11.677974222836896,9.912018040763494,-2.3699065720900854,-13.439230497381239,9.492827648310392,-5.483796032244542,-4.613160868930741,15.327002405462894,-12.758358979223543,3.2514858484635702,0.3175545663043252,3.4705570464932354,12.782995279273127,12.141815632854108,-6.320643798224091,-16.31642900980754,-1.5468106799848127,-3.0758769553083907,0.9746668593186382,-0.6768646048201717,-2.861431338353349,-5.335995382028742,-1.6168473301739552,12.199790475728697,-10.282799493796594,12.138392907789559,5.513085151688385,3.453629295737835,2.331284165794799,-3.258403271862334,7.147984425875912,-11.696194121349977,2.886642952855705,-4.922629642594433,0.938809373563484,-16.311900088901382,-0.9733039137998976,5.501705705206794,4.223012307993571,-3.029798558646946,-1.1808700097641045,-11.906235176849144,-10.977274451149688,-7.43659500323349,2.781996534065391,9.926504122673851,-16.732079408740272,-2.1969951918168054,6.050772205259409,4.366580419248614,7.571407829916486,-4.639526506795707,4.604748684387027,6.374378722033567,-14.96910376119289,-10.48611498646885,-4.966147395303819,8.879570176644918,-5.190700864561989,3.289527355347734,-16.47423163403148,13.050193551501032,-5.292187479078837,1.2667992759228328,-14.000876672866557,-0.5218814728918992,3.895607763766048,-14.47756343462065,8.195752118992091,-6.2782444788564735,-7.954626375704249,-5.887632668636575,-15.095645856782955,11.439347465561587,-1.6707681544381785,-2.8182840241241727,-2.1645163128788107,-14.412847800143613,-16.74009425029145,-5.1282159798486555,-11.164548640082991,8.893257927235398,0.48345202609279353,-7.516590216726222,-2.4736755559867483,3.40272962352198,-15.67400302662314,4.480910738593741,-11.669029830702478,3.6930037473138175,-4.8567020007651704,-5.985845277466176,-14.635090877914891,-1.6808247268943033,-14.503876107520028,10.20807183404908,5.46224540569455,-1.1751374762016218,-3.838172749690046,-0.48239908016524197,5.038250600481161,0.912528337442505,-8.936944602005747,-8.688857580855277,-7.873578904538419,4.855992320461977,12.872397428819207,-10.612862594903495,7.074437433078075,9.906075751447865,3.334039507434467,6.217208409252557,12.644167250278265,10.18872955890509,1.5814182425544043,3.140650888232686,-1.4725913232096497,6.296967581652129,3.6458906364625867,6.552720290573661,-7.594014900096214,-9.184451941675617,-3.186446724597603,-14.419506327974732,-4.780817055291831,12.715762312330408,-16.25174781130261,-15.87167979448008,-14.655860033377685,7.192293932467119,4.119605880101274,-5.533370471131863,8.325506833449843,0.24282011570294731,5.453534423113437,4.824897931360597,13.593297380035708,-4.826291074335355,2.327894147663938,-11.239502165725352,-4.170504434585253,13.131923423323755,7.0452050701972455,5.590051702507184,-2.2313246484200144,6.4053800244637085,-11.029131061240305,5.602646710323577,2.021156524720095,1.5165343357574745,10.80569279204285,13.554217204242473,-10.220848178681376,2.7514322264204982,-1.14110717609546,0.7440988520225454,2.4137839997155885,-6.97932208557319,7.3552924956512795,-1.2359939265527964,3.263574664030946,9.892479659257079,1.7402000035638332,0.120826938417804,6.884881766555511,-15.802136446011577,6.841048098825789,-10.582738124791208,4.6237425241783,3.356241435658791,4.729003588970825,7.183348478771343,-13.881975254669387,6.030940313763885,3.511234063957202,1.0402215537817692,-11.466311979302736,-8.13021523548288,6.754122644566786,-2.1422212195742594,3.381317967999448,-5.776135857909724,4.3511246229374825,3.37512716409163,-5.474919556989579,3.6931123514228568,6.981452023048337,4.072923434084167,0.6436224959279535,-14.699596139370453,-15.809351183122393,2.531624081431391,-7.047219090809914,7.1372721994917505,-3.572415557731731,12.660872942366726,-14.401891400893943,-10.63083343176132,5.798912482793881,7.479017222284508,10.043637897964155,-14.790235348031338,11.799978730408016,-7.988334306573853,-4.680764217501525,-2.3606221815634703,-3.2880336554195133,5.807017407115763,3.1787982483819044,-2.073244175025675,-5.060911148041917,-2.618675014746872,-16.224026338421176,-10.291351411878242,7.415118701264359,-11.391408353988927,-1.5266359660294204,-8.237557555370945,3.4308028243306765,-4.110498388380042,-4.181046192921124,-4.726056586330295,-10.710424204200871,12.901706935875112,6.473326821515852,3.051456608608091,-2.664668493358427,-5.4978572821073435,-16.879449446097777,3.3213664006097425,-14.873162683344859,-13.732583961545103,0.9624081714056706,2.8875349690396046,0.8133590541443436,10.254057524656048,2.048000465461977,-4.1367157653449,6.942939739528092,-2.6373856095455412,-0.9000490862505408,0.9863065870250235,6.710231157768637,-8.175376882609992,11.26820537887282,-2.422005156003921,-4.704713239704426,-9.83217789619803,-2.212777924151201,-7.658800661162765,4.078738344648519,-10.090041175149787,-4.679982035738007,5.349160073326924,3.6299922061938372,9.34502503589664,-2.947348675606788,2.9705971432702922,3.056021805742481,3.3526358424154337,4.226497577317448,-1.330541619159091,-3.464765249455717,9.011171326380177,6.079577455284549,2.8428510374519576,-11.584115540790414,13.571889072294455,13.608170953534392,0.027710729681112874,-11.652944778900553,6.276841122756571,12.06826709716774,-2.125267630276756,-2.19112807249302,-2.2287594126952714,-5.42991279086044,3.6746357123728726,-7.964871592132486,-13.913912371886957,-7.083895148378801,-4.251843170730305,11.938154608385142,-1.9411003637746422,-7.620346544130544,-2.045037351149738,3.3109450932887494,-4.827142509477432,12.086795443807416,1.5845472201602917,-2.7851081668599784,13.51914920556964,-1.2090888219228602,4.998969659039349,-13.92285104878801,-16.56606046987948,3.013524581121279,13.206247712968594,1.506511027285858,4.030064671666258,-14.651030607466478,8.601068472865524,4.232943770988322,3.3398205355609996,-5.798078696559431,5.667067832756203,-2.0253876462511906,12.254439249736066,-5.187058083790401,-1.8636790297522954,-11.661015401816362,-4.831475578185746,-6.272716475245992,8.19682145932128,1.1501765483412323,10.30973331444162,8.915328957476877,-7.730800461321412,4.689968372425678,-15.909603832497089,-14.948635483753245,-4.0801291596694655,1.2206143626998778,-2.0818164746786554,-11.444027774742015,5.46681374560421,-8.252859286141412,-15.350788557775157,-4.945429838035265,-1.1227929388863036,-11.327268287486131,-8.042190721384006,9.377135291341826,-6.114083254510732,3.747008086325484,7.04815260148864,11.789547730687866,4.620015965333089,-16.244790263106264,3.9825778898416755,-0.9860041016209373,-3.502893529833385,10.76262094118459,9.921249726876686,-16.238547017142473,3.343216285230086,13.294918355570998,4.594587420618014,5.599339920982006,6.947828691257849,12.384318073913452,15.336820931541828,-9.034138023943221,-2.119569751470463,6.439642664904232,3.272606533028984,12.391538603645879,-11.528196457298197,-17.126085087521968,-0.37982768900369895,4.208192945839905,3.36142151978059,2.1111701578389863,2.85687921968161,-4.473657097740729,0.6870961633630481,10.778893374122072,-7.9723157091939765,3.423846729322502,3.3390606420812574,5.669062086070576,-7.61174086261019,-0.4638154535662497,-6.944129745562595,4.012166608944047,9.404863591868377,4.99512972180817,-1.6717592550216005,-2.3370544307941334,4.616562653645214,15.333570741975896,-4.153031151311495,-1.6565220304542125,-16.582032780362347,10.85634681033203,-10.190666203061097,11.273752373935439,11.385261030569662,11.602988929448895,13.262481169798377,-10.584638904936453,-3.917083299143756,-5.500741483688709,4.97163123755649,-13.054765065179222,-15.266878024728813,5.913108806415818,-13.911655114452811,10.910888349040391,3.0881951641568106,-8.194496064370483,7.112505190575668,-4.2907133541750175,-0.46226703039308775,-13.860160900690657,-2.057381633085895,4.789076809825533,-3.0592651280068552,-14.703229380279083,3.399720028151195,5.088124386256703,-4.472146951328353,3.0043545769609636,13.566277230326042,5.644752325589248,7.175853142282595,-5.122796518260109,-14.493507821005796,-3.352155402019577,-1.424585269132127,-4.687582540038838,-5.683102111232111,-14.23590196193672,-12.211704405144337,-11.689128120105346,12.296299202680682,3.5684321193642474,-16.654985937631455,1.9223801286960165,-4.945650102348936,-0.3846638539119228,10.783181864949116,-3.5364698554853966,-14.638486808633234,-2.451865613869647,10.729942007678773,1.686512738727707,5.878634764822858,9.12422837630154,7.379641308054869,9.536545476762711,-5.124331375626288,-12.134939024834356,3.3339523136615825,-4.476034076486451,-16.46002055894564,-16.7412443338334,-14.500980239362454,7.886318344845323,2.45787698458442,-11.61107437114654,12.352206899744644,-6.99911682672444,-5.945320912525295,4.760619246635339,3.667965906040524,4.250669280234015,-6.988711915479757,8.978845211172159,-8.94875378542077,6.4304331559159325,-15.784035579011572,11.397961555659919,11.202216131857107,-0.31224023124914774,11.00918084286835,-1.8241439650598748,7.278097125447965,-8.098651911588952,-2.7023834569221203,3.693135737618024,-5.238848740450475,-0.6792500134714107,-10.306855849298838,9.829667213457409,-13.416489468927255,-0.34006995266766554,-0.38960254086175405,11.128478144831709,13.627177999038636,-5.020556575812205,7.663619089092013,2.3950032047896315,-2.2787185536332815,-2.0372581916071595,-8.100116976080054,-1.4318874297672004,-11.056921326881907,-4.221969491486701,-2.3722693528697683,4.448093510671455,-1.7421449840022563,11.080752487290285,-14.29804908767965,13.10625895769542,12.854216393267377,-7.23598199955046,6.523261508673103,-0.291732680498097,-3.1688039477323167,-1.9874195120922389,7.379190457534683,0.38952660753994334,-1.1358010619595844,3.713614047578812,11.154277392166755,-2.47909958504295,-16.27621213008611,-1.026202177142854,4.237540316580621,-1.0838826618601278,13.012979933772915,-11.585952105165667,7.362608286822095,-7.91304559092044,11.20029935079551,-5.7426165965829234,-11.275162214386862,-1.7029288059795533,-4.597667633712184,-1.51773363251824,12.889706733926978,-14.89230017418776,10.80658397068671,4.929960433405011,-3.8975585207383734,3.6557882258313086,-0.6132359686252518,3.425131491534108,-15.330889615832346,2.138503922914949,-8.22747526721188,11.542899859867626,3.265288475915999,3.06329447488971,-6.743173411672378,12.909158472344695,6.801622180494858,-0.22727123680194933,-6.823464761586233,1.3499220892894541,3.8712229026926326,-11.451361004576313,4.594842392705451,-10.473121207585914,12.346902544409325,-2.089374323002662,-5.109524630591274,-1.3796297884620916,-5.4271208473831445,3.66777629759399,12.54611166816838,-8.616360007268007,-1.6519921418662413,4.246577983897713,13.395719475081036,2.934945791938516,4.198030376562542,4.462931293389994,3.3597028280250543,10.302243806398963,0.46303310974367967,5.6372840712656815,-4.641936221911403,3.644829115375784,-13.859956414604946,1.0995942960627276,-15.889275259981293,-16.2715517572498,-9.19057850000185,-5.7490369194162705,-1.250011821301521,0.8469401854010882,0.6715231058252821,0.2973461747790788,-1.5723858299955338,4.421991356177412,-1.2687945712562616,10.355690949671965,6.655169459767052,5.743258843828923,2.8544175395948255,8.117321969442193,-8.051957539250333,-1.0109675135996403,-12.563015396948597,-3.5723886387634076,5.922685718326378,-8.185104465894751,6.537967018419824,6.386553134497827,-5.542422720244156,4.3829668337050975,-12.585413825851697,7.343741247592625,13.594375194402044,4.587046013143662,-10.493463924135385,2.932510155670511,-5.448884981578844,-14.320398138989672,-3.453457796885984,-1.1286740474728705,12.700791798043497,-7.2446442543331875,-4.2633405869525065,-15.19365431352717,13.993809160662796,4.072982626619435,-1.7666626485121801,-6.191016671276145,-15.180722771892032,10.0365456520644,-4.785760280476209,-8.204845736281746,3.705498511029632,1.7110874641125475,6.20345611084097,3.6963418443989355,-2.7849893938915,5.819932500731816,-7.009495820490254,-1.294350120694562,-6.0760078836298845,-2.5435387552807716,-1.5647556299962186,3.19486017621004,-8.671405286766245,4.593639523692662,3.8670357813333167,-1.6620790971222115,-4.827856810839178,8.449152712879135,5.175336968904691,-6.76350125522308,9.596636496658137,-1.8803397737749161,-11.093189054779856,-2.296906712253164,-13.477819870834747,-2.0821318516856118,6.3976061231988455,-13.823173376821872,-10.839161091477298,-12.540872581747934,3.748603255293376,-8.875711418119854,11.205856498686723,-10.417621557793225,9.093024531966298,-1.036159425903804,-3.0901696716599307,8.542370678310375,12.45364179138306,-6.368560907029507,3.70800417106544,-2.9208324625864823,8.134511094388612,9.534553741721233,-1.6114558460375183,2.2305725260672626,7.670148269302712,-8.925383280034232,4.980277677933051,-2.9624454960449693,1.2355436530794104,-7.548546776756415,3.8718678681477177,-5.598828790855084,12.290060974262985,-6.595365876976673,-16.01948725950081,0.8253533859174531,-8.195938985127158,10.011906532928977,-12.590783404708212,8.138938928500544,-5.530163990571919,-13.858009665536402,-5.658728176947521,6.5798945029106415,-10.651440053539666,5.604324870283881,-10.008113290095176,4.468628641567538,6.886240043608262,-2.1181604981811826,9.60395064277484,4.453064988172214,-9.857019016902887,-16.77314686442285,13.346558286204326,-3.65073065205255,12.174389933561828,-12.952227560947332,6.243118147702478,2.953515858835477,1.1502233834108448,-8.07408212970503,-7.885189204013401,2.078602058627799,1.3180910499585354,-11.475917911441998,-7.258964927415434,-0.7315820157056825,-8.845913711975845,3.6530344058564217,3.6867313592677142,-10.840925714918463,-3.76661227648199,10.023165109825216,0.26027153634470046,-15.203796535192957,-4.6422942257989845,9.773833192884183,-7.675831544433636,-16.288071456982458,0.2730923329763228,-6.799896309781485,6.003087557390051,2.9230849804359504,11.326476203679782,-2.000312572385727,-15.63226274110644,-2.1980930277597506,-4.714087941461214,0.2870961281699938,4.649866838585284,-1.5618584435297285,-0.4223678150326642,8.788919730354307,1.276733864655938,4.099528689464427,-11.078074670622156,5.145104253496162,4.599047907718192,3.0120664841880576,-11.515423747642433,-8.71013587603832,-7.0670534045770355,-16.272633042438322,4.130639926715354,-1.545723650925066,13.011897891346083,-14.578532510226113,-2.0356422614169265,7.987799705349589,-2.6378535826487526,-0.61843403189244,9.915352023384381,-4.22550506975351,5.694228083051786,4.202381752582418,12.454396276639837,-5.258022335346685,-7.481135882011645,-4.5208496861989005,-4.677739383352686,2.561294722706898,3.6237613962479442,-3.8779854486483276,-10.24292403952781,-10.09302157554233,1.1350117340988328,-3.768857554540419,0.9192452568193756,1.309395155797918,8.84038270330392,-11.09446592205957,-4.079656676197655,-16.093457949223865,-11.606092479575091,3.6529618773395143,9.824346822897192,0.5655081317275782,-0.9151460935755052,7.532466179101733,-3.399627945162636,12.581612817179526,-5.494522259542307,4.664004751091311,1.239456532712861,-0.9298589168232304,4.05229057110599,-0.2865277266562812,13.655928002991116,6.81719185256731,-9.076601106050306,-9.763335419720496,-6.952396248863514,-2.6890961039234886,11.642542771142535,-4.474285866541669,-2.8624136980822406,6.374303065560858,4.527390594527633,11.144002217928707,-6.3146130216579035,-9.27847113025488,8.041919076048554,10.622422991318627,-1.3468914849814426,6.247661256422219,-8.192613478769077,-5.753699692862756,4.119237364475667,5.810968971133925,-4.488266148244434,-15.80083442920091,-8.113675784629377,-14.329086677400436,3.352645903033319,4.805688012361116,-4.995230181852278,-6.8997595536277245,3.5152200158047173,-5.53118258272319,-8.07638137215119,10.94970662878343,-2.927670811533313,5.447514145504512,-5.10701644505635,-11.735226594733119,-1.4604510694685318,-16.77508716104747,-1.3821472027738104,-0.7895215784352093,2.6723531866272943,4.208187571824752,-0.00666385843593588,-5.767548693393583,10.034720788107853,-13.249298645196527,-14.319986422520188,-15.836836840280082,-14.22551754621028,1.1680719268605755,-10.85638963512914,7.275793622714339,11.189510876782217,-0.2271565978434583,0.7357145484262924,-3.5558219778920845,3.5202279364553615,3.4206270411851274,-4.182511569701098,-16.634747598713655,-1.2620121389268792,-14.05237564385007,6.666908401064222,5.029626858810042,6.279704567839323,-11.19275143258182,0.2593840725531083,13.498060571388379,-8.702800119246625,7.705430506422612,-10.316569490050378,11.831932681563618,9.16855272092836,-8.191848137311965,-3.583881485809908,10.106315202034338,-5.211507941461077,12.117151875929116,3.068139615695821,9.571052911154768,-8.490243458841315,-5.050110517676086,3.4978437615375935,-1.8882908712909883,-14.435580199921464,-8.22504768795782,-4.746986691332272,-7.148730561783208,-5.3951450822709575,-11.567576435558033,6.639343632458847,-6.995559706964278,7.498278866555063,3.058284468844826,7.171009817433558,4.335299953919728,-16.662636437833836,-10.86088844357237,9.202177937354271,-7.923984152354122,-16.1594419999748,-11.774043352429102,4.7807519593567545,-6.470279650702,-3.256740779625112,0.5638447356545065,6.094748903463905,10.00016433285718,-1.616873801317298,-14.521952332125723,-3.287470481021847,-2.9921107720245197,-4.555834732733177,9.517202280628645,6.01610817585917,-2.8527790250404843,5.657902917317584,-2.2298925130563156,-1.6609723196049486,6.078313473434863,-14.917978366992617,-14.368850859667225,6.621148456032186,-3.935846558515635,-1.1812539676596743,-14.439390599511453,4.689992237591296,-1.8465643690981406,-11.870416771768827,4.4962088142308225,-1.9746918323913156,6.627236029786539,-3.5525393036026904,12.159902720437763,-6.813993691804538,6.629612339695378,3.8280754895191174,-7.254034475010013,5.436151866225857,4.187267253490812,-2.7465585440456786,-4.86758600743771,0.4833133745427315,-11.863579469089705,-4.8440563081540775,12.175963438911273,-16.28736980852558,-6.8462970337582085,-4.064217542587469,-1.7750632365259014,-14.313748172884502,-13.000375977436406,3.6420814912623283,-6.218006359348103,-16.232608565801044,10.188743648183607,10.340189977224568,7.96799631976568,-15.90435810714897,4.373680615591863,-5.1959215986986065,-2.4498051722923804,-0.9758465776708277,-11.476177536818932,2.4120040412876724,-5.806103431116,-10.437618120471113,2.918295555545468,3.8893043454348595,-14.419919887162143,4.3340631027485585,7.809057661173601,-2.087793028925225,-3.5292235310865765,5.23531454091257,1.273324546456144,-0.37466674590682353,1.6883060252757998,-10.411505801358382,6.485422961247226,-11.636335657040712,-3.8443539818936547,3.079372122539024,-6.722187974494102,7.127873989122527,10.529936069574784,-7.731449760150411,-2.845749930471788,4.5477328165337765,-1.627494393879398,-0.9581520420751949,-12.879844199845616,-0.6969752600780856,-0.6970120097469089,-16.238535680621563,6.669251260924986,-0.0165266193118791,-13.752647135467495,-2.486310015658486,-9.845628212690375,0.8217807026524488,-7.797334600097898,-4.595066332746237,5.881341333175062,4.4532163263475155,-5.2348446516946,-5.60882454274675,6.096813241263697,4.05095527122631,13.253774925407653,-1.959881732210918,9.722535594468013,10.574221023500257,10.958029686119094,-3.085372902532222,-1.865077490501181,7.591188587464434,9.68889040439803,-3.9598496454062153,2.9620759017034812,15.730637533842227,-5.615110291089478,13.4047461139155,-5.105265403581693,13.65248056131326,1.5449649472477662,10.208879585806208,4.248788727788797,4.532430616000504,-2.3418104058427276,-6.571875483569129,-16.362817887591095,-11.646495418290597,-7.058522555649164,0.5682721853897946,-2.383531451340131,3.944828360433727,-4.889701518523088,-1.7143983336228947,-2.0254830604319656,-3.628733901803542,5.210665243605885,4.349224949615349,-10.372623737902977,4.757132716821356,0.7503320154767809,-4.886201368259899,3.5008288357992083,10.120616686541513,-5.330157254984422,5.407088350486842,-14.743243750738971,-2.1043430980963547,1.3982231656019029,3.860528538986924,4.226401981805342,11.376653591234287,-4.9885209856143975,-10.069697009933767,-2.1273869766208477,-11.666858781996341,-8.398480192329172,-3.7093051927606724,7.165658654482604,0.7635778318939807,-10.485817688763701,1.3680745189940033,-15.155639173862543,0.6374614250577016,7.412042277343001,-9.383791626839903,-1.7572070116780805,1.2614427756336153,-13.946864745301509,6.044734186397825,9.890964345211824,-10.075747370276234,3.9218426959582895,5.573096400882269,5.053335312788463,10.367767458724012,3.396980504183238,-1.067855160214831,2.9698480930875846,-3.198107091739571,13.598603565354143,-5.059988724031903,5.271498791543863,1.9876434860002004,-3.809180362695468,-0.9039768413069077,9.80726751081157,-3.5680342623359067,3.715260307629785,4.373469489186034,2.208009012052047,-14.330793606875167,-3.3816254918975432,9.18488957921276,-3.3519750512138375,-16.299278137990765,-4.882220316372175,-15.996191485288447,-3.5594863618688763,4.5217620859764205,-5.48191585724561,-2.6102354816386897,-5.618996549914389,2.1260942917176475,5.5986207517918825,-5.387275372538641,-7.316925622085641,3.3818765302173968,10.640156492111833,-10.51498112479041,6.873129398180338,-4.235436139014458,4.583917859296854,-3.051585263438172,9.42963643365262,0.21459549818694246,-6.859050452902063,2.371447513390791,5.7653687234610445,4.53394398805634,-5.2402381181166895,-10.483358136071498,1.9181418478465802,-10.336735790511197,-8.031263793372442,-10.501393954855903,-5.665972441256765,10.92540910018031,5.366956390858667,4.50372843246524,3.863836710594138,-6.736657856251835,2.9404171094317,-3.5869992550077505,-8.005736540239884,-3.024372380679741,-14.261467883081915,4.860781714051924,-4.616516711833262,13.794533022255182,-10.683662878167393,5.108004728485449,7.798766342492711,-6.86446629325998,4.846661838957416,-4.450518684433116,7.616470132414226,5.98306400624551,-1.1409303359748844,3.0624764571578273,6.788756543795863,-11.357472169458376,-4.222036941045648,10.981630858965644,4.797785196355776,4.6766998245471445,-5.371108806864231,2.884911087075345,-8.68195284129484,3.372233081429532,3.6029037730521636,-1.0933087957029448,-7.526210568809217,-3.47611378582745,0.5833110126246822,12.262612045493283,5.623735896346913,1.1571670377046028,-15.447825942485219,-2.3550973874099057,0.89102454173639,-5.285943491697126,-8.151522626637085,6.104873427878257,7.07476246570868,5.659837264206883,8.844799048323976,9.916762855942851,-2.01523607697317,-3.573750494989921,-7.172740340417915,-3.723434850863504,4.736154978872539,1.7873968039540171,16.50169480355182,4.610402942439209,-1.9308994638646861,-2.4341234361494504,3.5264281647637077,7.98282416558664,3.635310524228256,2.1404709810702425,1.944535246820739,-13.816253572740049,-2.281840246067663,4.421265892990049,1.7560884245112554,15.364568663958687,13.242928855753055,5.9157759763008,-10.497781437921919,-7.702613307757361,-4.808626901912926,-9.534307448872262,-2.065700336587286,3.577218725292749,-10.384378653277745,-11.380009787126632,-6.563481386548701,2.876846655842889,7.608181452209688,12.29226147205094,1.041836250970398,-3.5166992606864222,-15.062938681124647,6.745241758410357,-4.478920114651035,-2.0454146992543496,-5.785414432485488,-4.988150022755915,9.891555905950122,-12.491565032330408,-4.3625595743559495,-1.6463119875774581,4.003200310029051,9.932895583591788,4.201802632691898,10.112280870712281,-8.180706249261613,0.7763080990268352,9.341336857032513,9.597753820781731,-10.170606450812189,-2.1198348862427023,3.625600382544747,4.0840226116800284,0.9196873286727048,-4.549198542261676,4.402032567723737,-0.641203987811413,15.72498526014135,-3.456574243180972,-6.894792527026384,-4.498463501719395,-9.233977090992207,-16.25196623202076,-7.893018904985709,-3.98877165034508,-2.0172671015155443,-7.126804670145891,-2.5953011703068767,4.425546689628692,-1.0711200015211915,2.0166497036995175,-7.92337400975854,3.844160687785999,12.366601792942017,-12.230878853500274,-5.66703681599626,-8.069848328363294,-2.3262812526823193,-14.970931687483668,7.650300380937483,-16.2715517652916,-11.16096502058535,-12.131075845241824,4.580251755976979,-10.87527255928529,-6.929751335458135,-0.9959433116588744,-5.553057502024962,-13.118751766966271,-13.05732693812899,4.060087606768602,7.126534555247284,-1.2388863839953195,3.869738360448889,9.590024253311789,-4.654394596179979,7.97283812324428,-4.625843214545499,5.582127785960883,-11.80664135339621,-0.37494204459350794,1.9005158130143183,-1.6406493262951245,7.518631896302573,-14.324147849867211,10.062787545469737,-3.5559544310378293,-10.543160372747375,-15.635270437749698,10.055573947724335,-7.0176190066648525,-8.187089744878126,8.43508882750024,10.633031468345852,-0.5799681265999868,1.5801113761186458,-10.733977179090937,15.725257759782608,0.43913960031123755,3.5412085092328964,-10.901415898958021,-2.6802536978430003,-7.834428847213959,-15.203564699394535,5.442995572831014,4.781920864171891,-9.296736056271785,7.182145455700879,-13.214069943564903,-3.0533165701526364,-10.835896032924591,7.608288489778974,-1.7989021714835909,7.325635348425541,1.4740529085562781,-2.3744342671213405,-2.862761569814139,9.428153377221918,-15.377640282407038,5.905180632029469,0.8806935608250988,-10.596018356654614,-11.451401954561485,11.409981521141278,10.962036776991509,-13.422685913399418,5.596078892188751,6.482920785096834,-12.215304001610473,-4.2154089299090405,11.181850211556913,-8.665832233252532,-10.509080458232734,6.70237589150844,-2.122752708851339,-14.192728406250591,-15.823980011306855,-16.075110587778738,-1.1531226919251203,10.158326822645755,-8.936570110391223,7.917975690575044,1.6762078052185372,5.531755641983286,-1.9388313923598965,-8.187966827464814,-1.2572906767704188,-4.4626824571268635,-0.992893540761121,-8.09620396857682,8.999028709416706,3.468702951075217,8.25204264832482,-5.596906141396781,3.7697670602607283,4.33686908052135,-2.553192238247702,-4.19302054996627,-16.254934272005258,-3.8782362420637613,-2.2596652632560787,0.39375373999190466,-2.085280543271506,7.212427586883673,-16.27199558166519,-6.678539868440337,5.108888917830579,0.992398351806373,-13.683196655677191,-5.739462747525909,-14.164126669051912,1.3130572707519428,6.468898634366957,-12.73167783360648,2.060478257415851,-3.656346921515874,-14.39324339781844,5.680667764060933,9.655398615273667,-6.981961744862791,-11.588625855251651,-10.48581883214408,-4.949927483027826,-2.9458184774767777,-5.586580774764857,-8.213317068092739,5.09278379944447,3.5029201264837977,3.981687071038272,4.29122276014132,-8.11724753018387,-3.0943512479032917,11.964400918063063,-6.6200203503789625,12.932007577519624,-3.322163634561577,11.113158374000696,7.971431095571017,12.060308313339913,-9.662561316380835,5.299557904808104,-3.7750167520499933,4.2205334288577845,-0.3874113503967935,-10.825102007890152,9.268294603535058,5.7737267445397995,7.788211758375056,12.286104054837638,3.268805373732649,-2.9939408184471796,-12.8172626828618,-5.1355630431087835,0.5783763000408496,-5.306136963334394,-0.3029081028852121,-14.808656111598184,-5.498200473820528,-6.675048971004412,3.487065021748293,1.92574529359521,-9.786361058187047,-1.161619373320924,3.786977709110447,12.058554469979478,-10.433207655220402,3.2302043306005155,-2.201710621340339,0.18247811119020527,-11.531009890098817,-13.198547507074814,0.39221286153308044,1.1461977528440228,15.345193526528726,5.767235762615656,-1.1381323805470462,-8.46116650693714,3.826789557578063,-13.880303956230932,-4.484258702677949,-11.782803235671194,-4.828907905170009,4.313046622064714,5.918769824696334,3.523440249127818,-4.187161616989271,-5.46334959474008,5.710969826359203,-9.05698201152122,7.9708760173043585,2.755402867858631,3.4230010867932714,12.490376233559163,-14.433541186232029,3.3500932310716593,2.7702116775749523,3.708399061878622,-14.376751123886438,-3.894349444668183,6.500586319186076,3.6932167838920016,13.566765273458294,-3.714657318794903,-13.088181675195472,11.696677025501717,5.4168846239272845,2.8833766007953723,-0.45598722247789136,-5.781057315913919,-15.21386435143793,-5.847385031045004,7.480626583746074,7.567138998605677,-12.008735614979011,4.140969363725125,10.003796542885029,5.569486113230908,10.005886833110983,3.1874089132853283,-4.997882054507014,-14.50524045670998,-13.937500716759063,3.413010021038658,9.579854998475465,12.469592607150751,1.98485736487588,0.13419423117070534,-11.95711480215683,-15.4335502968806,-2.2794644222115443,11.122698176044532,5.1368068761920584,-12.434411218333803,-5.627432418037056,3.4973364233327935,-15.54054819979115,1.187765395826945,10.734942176354274,8.426900919195045,-5.529427948824724,4.762616596991201,-13.456103371865156,-2.3071245793021946,-9.410131527729286,-15.069039652142642,-14.049601914807923,-3.091267304695664,-0.97185209181914,-10.142673037860561,-15.66858327833819,-4.167559107710427,1.1927151233148656,-2.4483727506570223,16.50444118798708,-4.213229457093726,-14.867070286825227,-5.49769057372595,-5.397680443245029,4.402472620181517,9.101683600621936,-5.08615943036781,3.8100891784040423,-0.04720720337151193,-8.211562123683034,-8.868028346568453,4.213830997263353,-0.1354469897868625,3.505029411514212,3.3750737373441697,13.177555705361483,5.547935931180021,-7.707537170052895,3.3553105683262654,8.95915048976873,-11.448904929137202,3.026260833350722,-7.464546612675292,7.588800443455983,4.520596502778506,9.434037653705982,-4.627124043364975,-16.23475157929385,-15.676693483776063,4.260884706774484,-11.49520549497261,-4.307560298875697,7.367104276346534,-4.170536040054553,-2.487751624619123,5.098528152954578,-3.7629766692010187,13.981839779962414,3.060233738089983,1.7655668783493579,13.660658571368323,0.44160873951498975,-3.0490447309299773,-13.522872834104042,-15.27628687016842,-4.609716184195458,-8.675557514791219,7.8098264098037244,4.314138762709018,-7.946126393194635,-13.796717066996063,6.9199964487519,-2.068767421769464,-11.671571403838401,3.9547514002899242,4.737935465495241,3.572447102207996,6.105811988590028,-4.19735374224803,12.683599738980963,8.378820403976036,12.035993681572446,-0.09662169227536879,-13.263931091506388,-1.18138310650737,11.028674153792926,-2.7780569009188696,-4.439571503126407,-4.7029106408498045,-2.5753790610396634,6.556319277195436,-16.188081172589087,10.561725860318683,-7.948530804850174,3.822705773646013,-0.6509338541096243,6.9907477367836135,-10.911371398331589,1.3732545920535468,-6.793680645024818,10.0264058367967,-3.2589326660966633,3.5546275140313672,-4.553815312111642,13.471640535087786,-3.3914199613309974,-11.543498010331383,-11.661834646734125,-2.8755823494597488,-4.207892602652457,4.033445893055651,12.355308618243054,-2.972571197134946,-6.774282494690175,-11.252493297085085,-9.770724336012853,12.41459826506032,-12.898545149328168,5.854740724054032,-4.866438020959097,7.415651431443772,3.055995156563332,-0.9228800550489145,0.9261923789927038,-2.696932805830058,-11.634154739741593,3.477595956983046,3.1415963236423976,-10.894506077352236,8.945178670008467,5.381740174416194,-11.952378883531054,-6.8026599541753106,-11.523579379774157,3.57274803871176,10.001730054258456,-6.718406449009009,3.367476394307355,-6.401433683615616,-2.1238890919643234,-0.20899960490093358,9.082806807334068,3.0711792984389996,-2.3900393828981845,-2.7663435334190245,-7.636571770051559,-16.31979685843333,0.8161990660563556,-10.887451523226863,-5.283448689944157,9.191926432283823,-14.205170948724174,-11.327416437837828,-2.0894028067909316,9.888111068840603,15.733508390378004,-14.978838306712944,-16.256882651784302,-5.087623583276177,2.2531121608978464,-1.0657795360863258,-13.87103706162183,-0.06439617600795748,-5.1405158357466325,-4.263694252758444,3.242321451621447,1.322993197809037,-7.621879638348698,4.3497210917014115,-3.8542623361105615,1.7929057321959532,8.344480170939454,9.271318071139754,-4.238080057859991,-4.895758790804604,3.5815423923837004,-3.76147030099198,6.906065117590638,3.8604613022452474,-3.8734326336963414,-13.888497290084091,5.07322510696689,-15.361300108462,-2.323477719376565,-8.955370081151143,10.282994694887247,7.165063673467915,-4.378879121046531,-10.803804000284885,-3.160712532426608,-4.265903915185862,-6.03528506776043,-14.713091136208636,6.9045490348262835,7.118250700596771,9.127233559867843,-14.40539620187283,-5.029967489407544,3.0690976201385665,5.993520972801952,3.8527248646592778,-1.6428388778200702,-1.5879770957217965,9.429967463240317,11.242850479320047,4.757262722026223,2.7805330605878744,-2.0498654184010223,1.304350164917624,-16.214167585989575,4.716310493044842,13.178116929968267,10.940718827476507,5.969997974379015,0.04320961313772133,-16.27021154303086,-4.088991075743881,4.850941186477976,-15.696969755924172,-2.311624221695763,1.2603782834747044,7.7673764371601814,1.1810183144921511,-1.293728428742047,1.357033900927331,5.919431267028606,4.814177187197055,-4.7438531356205305,13.441906079260214,-3.370042087512624,-0.18149149364497788,-1.8544605310537765,-1.8719349210193394,-16.57845528605336,-4.771172609304476,10.02083002530363,-12.409246949038629,-4.053842081095244,3.276079736096832,4.677946414596793,-2.421258922460726,1.971296290466509,-1.845207931699142,9.42071694846016,-5.332489408654847,-5.49480925318511,-12.784294815415441,9.914840128011049,3.810397586251505,10.475709593455143,6.986214899637102,-0.42856166774246196,-6.878511473338816,-9.173654951292129,4.051460403485794,9.410350225730882,-1.844378626607255,-1.9989644966537727,13.657896093182272,6.211075765299685,3.6544172864984077,-5.068659312048391,5.463318186947039,-4.61317314320053,11.38959320649532,-13.7988045093232,-0.6427168727335734,7.404829993057453,12.55230041164399,9.402652396782301,5.744104996921999,4.625520880910312,5.747892009803671,2.8936932898924907,-14.732861216720908,7.257554357736209,-14.439107354866799,1.5825829123516737,-15.187967102029717,10.782412971665817,-10.629033466391316,11.887260827513575,-2.2673497696274367,-1.0847019672530593,-15.119187221350176,-4.205836057549224,6.832586982846232,-1.036394232388402,-5.090738500019498,9.376275744592208,-10.311138502076217,-2.3092477220733083,3.560069744038783,12.585408884330985,-2.053049845801219,-1.7470082178573905,1.4346836806889305,1.1101507244794224,4.289616511712034,6.366075804598542,-9.714371771534413,7.075411489481507,9.973627999052967,1.4616016098715507,-6.951975871006337,3.136028234510221,9.847253353376475,4.853245694756767,-1.1177631896898554,5.690049392847292,12.00934386500881,-13.828160632747133,6.517272331671138,-7.596317784948651,12.411440434315358,-3.8109385362547425,7.098123593436587,7.57914053819145,-1.685391036463362,4.627319220274638,3.4072569148385745,3.5244300667304884,-6.966910875161471,-1.1340123462652478,-3.5365155492995877,15.346780609220776,-10.671097396695721,6.920031912315347,2.4197383257377205,-1.021314105462678,-2.128426930513039,9.45173666010083,8.016101359513558,-16.004589724111593,4.996662780146211,-12.867091061473296,6.978802425049649,-4.660312784801391,0.33121729398284666,6.648278595550125,-5.439327037562195,-4.744153062301717,5.483156244929258,-3.4718885250377167,7.318240562981889,-5.994626634529218,3.270233338352784,-4.330198378247733,-2.7972833986135903,8.072021505846829,-1.113133185248823,-4.9970568053020115,6.855157737114768,3.670387641152967,-7.953875798357125,6.523973761806114,7.10654412134348,3.3925599211844806,4.664671030153912,9.725323976592351,-6.54712839045718,0.9640473851204042,-3.1022327891009116,6.2569554075456,9.299442127932947,1.4080632749128048,9.210633491226917,4.540600515402647,9.424034201633718,-4.207584573883189,12.378681342036089,-3.0580940846583036,-3.6384729813752994,-8.033419006460354,-10.2517143521181,-5.319511445847969,0.7105155161586957,2.232938471651711,11.95606301006215,-11.309997319205044,-15.894994773285326,8.087923265254448,-2.5567581535021926,13.607009611333572,-6.182176340354206,1.3343038309205053,-2.363063231347291,-5.6900641714833275,-2.468569347060041,6.5427804688111895,11.334274689934128,-4.314530644855579,-16.236152122557108,-5.148267728937613,2.58538867677251,0.9029123603969356,-1.764444198098231,-13.312455913203856,8.090361902283137,-2.9140360536263685,-5.0591308146120095,-2.0101130931780435,-3.4311058302403046,-10.853533736791809,-10.428694993113162,-12.737975459396461,-2.2392368019130378,3.456636228746798,12.396674491294114,5.276527602809826,-5.178033723098477,4.356979040798124,2.7907868714141237,8.665076775854764,-15.088096072106765,-4.718620917257839,-14.319470272065361,-5.539532460649861,-2.707583900289045,-15.795426892400043,6.14620273002906,-11.667221745922387,-15.399832711679107,-1.5697479953539826,7.676339425560614,-0.2217362026892226,-3.0075218690032766,10.404833436134863,16.514118000445933,-1.0579518501197125,12.304738208715962,10.223318085658647,-1.211963684808441,3.403144006752614,2.77628673367722,1.576196278102138,-11.16976571261176,-0.9181355046015937,-13.233747499816188,-3.9575564919811423,-11.669496799579834,-16.590268106424986,-11.515675097988298,-13.716564751067578,2.7252982858044144,7.077138379056433,12.453316479671503,-12.46930872353128,-2.4547232422138086,9.71939691079601,-10.86630079311356,13.742081515226806,-0.5192287121016227,0.8642546431351379,11.234088646587464,-11.942297414828605,4.3219522727107496,-11.434070488369983,-3.7868083987106655,7.168674462838363,-12.798387474680816,2.8834060446983196,-4.923537648932745,4.609570519033151,-4.944699518721634,-10.326040364360024,13.812908648409,-10.091926787580627,-14.501524412388973,3.2804570545113023,-5.022890903365603,-17.003799405484834,2.742570965740833,10.190028619290073,1.624380835868937,-10.55869242205701,-11.675078051621576,3.690779321164951,15.726664613571687,10.574113581476796,-1.0593424269409024,12.074824762425186,11.278729620479028,10.046318497469134,-4.692219694597698,-3.5780777793708722,-9.340230603250054,3.06035671666865,-3.4698185472437837,-10.606880796231211,3.023807399386649,1.8205330644003372,-3.506289084097481,1.0282512911674206,5.75068973951405,-9.195668805509305,9.948004839636594,-1.921413962982276,9.901094130455832,-0.9649150205175465,-4.353944561757698,-2.2035190284281994,8.884579884653512,9.411686969088118,-9.75867909371596,1.6716402674372899,12.287863477803102,11.132723980571258,1.991365562594412,-8.281624485466596,-1.104993229765569,5.157056781044279,10.127353054032886,-14.786082443148558,2.1763405548907038,5.2156098052216,-16.678408720126097,-1.9703263774191775,-13.229498457056943,-4.512538417799,-16.282258259672016,9.871708026107,-1.2244544945713118,1.7030099892289308,11.123639221673645,-11.657580807618963,-16.96493199500544,-11.610697354107698,6.124658938630682,-2.352648034445304,5.865320776642581,0.6297593695697691,-4.686729122861715,12.02101410990679,-7.329559475978508,0.9117715037704093,-2.0528272586610754,0.07059241329297178,14.017680553024052,3.060404414900035,-5.243094371548305,-7.555732516450443,9.351906074504997,-8.214987299614881,-9.337921369374124,-2.6723380459848753,-4.841533697744595,-8.378628637123578,-4.669418364997507,-0.4507792717313919,1.3109914846152797,-15.844047485895732,5.667648287108726,8.820283946680075,-11.987722246190849,-11.016631221682797,6.696136458558229,9.378680251991875,-10.634638998467697,-10.923997053525245,-5.6854965326801326,12.457474622768794,10.401183936510916,-15.815796628050611,-2.320935713215146,2.674440923361069,-3.598933572784319,7.808046283214869,-2.7842977802326137,-0.7621199601811627,-3.7569309728316758,7.669723596390582,-2.932542768717087,13.564597011676033,11.151670179107642,-13.250448095450029,7.429577009037273,3.3199103459395416,3.7669273083636505,9.290269148869216,-5.047425018082851,-11.49202691812557,-3.6760864956267634,3.1442502489363067,-10.038158867560488,-4.594663474973765,10.475543974591508],\"y\":[-8.294371465869547,-9.02687899495543,-7.3293971578293755,-13.199230572585542,3.4882533550330623,11.072056719815928,-2.2246802499536473,0.7330735139666892,-8.415086424859096,3.519697371798547,-4.95701894793824,10.898382607047333,3.374556145001389,-3.7537431431012123,8.733576690071706,8.803862539037965,-0.5635224989190838,-2.6009382583462832,11.760758908782954,-3.7889612980603693,-6.3467027795680515,-4.023774206713853,-9.61748816785433,-0.9641303840043663,2.43742055534846,-8.410028880787943,-8.319400577903217,20.132387162567472,2.2485247325268687,7.5234073351133555,-7.390270982908017,-6.161376514195077,6.127366622895652,14.987495301207856,12.259089383942007,-2.1477534641902993,-4.638379671804234,-12.757456422374432,2.299500149210866,-8.6335371732817,8.11787206994798,6.965824763971834,4.823661376154073,-2.4799733620687014,3.556866528796652,-6.2859001553699,-0.5638433156969335,-9.612513013471927,5.312142451443716,-2.0540336774024386,7.165491567136173,-0.9419376228772216,0.3088249434335012,-1.7407247827977967,-2.9975169241112223,-5.967935500825735,13.770964945932125,6.910692398785248,-11.319625563355883,7.557505093517321,0.653809369931225,-8.438658675207284,6.816766552811695,-4.061265239799245,-8.179753730315815,3.061568957652659,-11.719306497592093,-6.61536154429535,1.3552136383122848,8.358342061318993,12.201280714561955,3.445626800263356,6.963730632763443,-1.7826121553820407,13.092828874495956,3.1882179816149905,9.406288669298156,10.711162211759195,-7.579850454608877,-6.461520577975694,11.209944995188463,-10.603712716787006,12.188112954790581,2.062444395156489,-4.099542488991201,-4.234075842331119,-6.353214973607531,10.51302402041705,3.073497422532061,3.334634542896964,9.347344308029916,1.0408806745802628,11.641994349900212,-0.7803672005057343,3.8856694362653674,-6.221975715997046,-1.8040483775375282,-0.5887836070071079,6.715098515491956,5.750392749930183,-3.511865017093421,11.498127162699252,-11.565324480853748,7.25254416143006,3.827824343046768,-3.7782980647101514,9.929776809678529,-9.053968962418597,-6.960795001394017,0.6549815669655855,-6.644731011520952,-3.152626561745562,4.38280602314365,-1.0495551501459524,-2.163667056603379,-5.80295099370154,-5.925825750481724,-3.7553820496833086,5.861473870669767,-0.6409016594274545,-4.161496255898305,2.991715551369687,-10.06712968879866,9.073731004870554,-14.168262887710856,-10.35483556415655,9.644049190092446,-6.477839307846889,9.32971255551925,2.157743516004856,-4.710120392937223,-3.6893384079636116,2.0545948432769117,-3.5868615698863464,1.3068500447421862,-5.864367541511573,-5.0339779057353455,-8.270089704246933,9.509786499097862,-11.475573490602319,-13.38636380988919,-2.5318543529600155,1.6554713059259663,-0.3131056884500123,-3.4229433560722953,-2.2195690076397367,-6.967316727046346,-8.651815522017245,-6.332950753979316,0.8600827773588322,-0.19385312322067438,12.324815986637729,2.986492943028375,-1.0184836217086304,10.086337137950148,10.36600065645466,13.021626846639721,3.7618427243349726,-6.412893502640864,-1.7567999004639183,11.298405655564865,-0.8553253701865963,-3.9545283083639697,4.960271894464904,8.323583230346705,-14.265012560218876,15.400717564721237,-5.888713185323999,3.733028031621971,7.221057804215033,12.569370605478822,0.12074145783970869,8.715848784245736,-0.14386170335164306,-3.8677458601411487,17.926742214805333,-4.83299782905099,10.285594084080392,-11.693549228354192,7.291641944723843,0.3822642555668312,-3.611918172882977,9.75045577677177,3.1618585457219455,3.649887036504986,9.206984612682836,7.640759972599082,-1.973297333935285,1.1225648663409273,2.867168602790313,-6.445523143976314,4.124102183979066,-3.3176281835481785,3.0690771950335174,-4.080730933279348,3.121279892618584,-9.388244792399409,-8.306919191862326,11.293034937873033,8.745638325405762,0.33840924893574525,5.148209641504728,-0.18825290397746147,9.180192468421666,-2.1359661868779876,-8.907600716544462,-9.079623901719314,17.926276392015808,3.0239246873667116,2.454632047771014,-4.725604313485961,-12.470505685461001,-2.7224547482213692,4.572358484652743,-4.044626903707606,16.533723700445684,-8.722156904165667,-8.247070603773295,14.133818265696956,-1.9675484311987643,4.40615406753264,5.1827507463079945,7.488855169298163,4.104234834590263,8.669266843174373,3.6139176481191955,-6.91389473894508,3.590171840972812,4.469314836864195,-0.946544360238465,2.4169709537939514,9.161087967739023,-2.8310593709386973,-9.35010777131904,2.1052594574381254,-7.471078060602071,-0.6284194629119504,9.600922544293157,-4.600883028982648,-10.023869786282019,-7.4517046518450245,4.499860319478437,-7.664865481496665,-3.9225027029121153,6.693103086251479,-3.4730523014142634,1.9098395857076849,-6.083587446205868,3.048024591556762,-10.909282284498275,15.679550218658312,-15.187883293330371,-14.653477971368078,-13.464125247399998,4.8519775474580875,-12.169647070298552,-8.344207920456306,-4.754322112536274,9.875132733867769,6.737513031506447,10.061327312710908,10.789578630278273,5.258947287739017,-11.39923492829704,-2.7167443922447383,3.158031105839975,4.4627513952465385,-10.561227346391924,-13.106350243299296,-4.48605415893748,-2.9723876109128344,11.117897685023665,0.5802226597865847,5.239679301761284,7.698982715989741,9.254769075045926,-12.006902553937504,15.189318134880049,3.586889687205264,1.566911807664718,-4.4408077145659375,-14.46922855272761,-7.06923569712775,0.4498113664898928,-4.867416079213236,0.7926434851832738,-3.642411988501862,7.550437308683848,-12.495074442995056,9.53251820221384,-7.298984965076312,3.07700243535459,-0.5156798558595459,-5.624354445767529,-10.951344052495829,-4.52330988936351,1.2840663807147046,1.3196670696508663,1.0032310383159821,-4.7321150991050995,1.4249917069638578,8.20722296242543,2.5683796587194347,2.081249990962571,0.8548239188458204,6.947616445024839,-8.671638883436485,-3.6527899561527373,-5.214482249328038,-12.18922018463585,4.311761875798197,-7.534630641340877,-2.252782675535278,-5.03451528743078,5.107448884825002,-16.716689889555624,17.933803402089296,7.500388113094061,12.671410955009994,-3.3524867654770416,7.239106708284162,7.691729503483346,-6.9788098567948955,12.64752254909547,4.087057366408343,-14.348977543343045,-7.0083657299387,10.500085802221143,5.532560683249987,-6.77015043023722,9.957222119069428,-6.308207420896664,3.4886947296390316,-10.68923242889709,1.7509203737366061,5.254443295664139,1.756920564159117,-11.957774682728852,-10.570033341601299,-12.883107011648752,1.0093889761377535,0.47661497538855224,2.9479603756091377,7.927396722811411,-3.399151980047511,-6.823989823129171,-3.491731093565615,6.821321181299205,-8.000979043741888,6.717652704151829,-7.321596242588293,-2.9735082282455503,0.9589527700452765,-0.9177535007991476,-0.4835099294092122,-3.089365017276202,2.4119499545542262,-13.67829688389459,-0.16243158369152216,9.512299409113005,8.72712659170849,-2.195021991378599,-15.423892706922793,-6.68868891520832,-8.909973625068288,6.839671004876838,9.355326937019852,3.5988402046682593,2.1257406950084587,1.1538700383228573,-2.559735225194921,-14.758304313646008,10.321039389271842,-8.074043433796415,-1.2602070084697097,-3.078773517166568,5.251573135691513,1.0528825440464615,-4.982361574397595,5.244382043020857,-2.362827986459877,10.72836159710934,1.443885825431271,-11.424984195156599,9.71885285000971,-11.70135040629144,8.687653386312823,-6.9807398403539755,3.7936968878245616,13.347116837676834,-4.128535724368797,-12.203616323017496,-8.676525347636774,9.162528689080789,-3.9806123700377536,11.74466874819402,-14.43952785215234,-0.7746262680419257,12.032327240934992,17.918778667184146,1.3869290999303225,7.306785610659719,16.489273411551512,3.2635555258712943,0.25532420299607567,-3.949903982336355,9.472833363052322,-0.16211433483691595,-3.4510916919008583,5.386689935224508,-3.1347265318540236,-2.3473130148233685,-5.13082198784101,10.778515215873616,15.34930795968054,8.200916359858779,3.075832210583179,2.4122886966120993,1.6128280531357024,-5.176238178434336,4.466440794959544,-3.6898176917061725,3.160946230728493,-9.66214770742476,-12.173255453981374,0.21920313562608781,-6.550957464381118,-3.776075877315421,6.819112377392341,10.967778145706692,-14.551539706104949,-3.15687119036548,12.934805175222364,0.8200275962514951,2.6707307494587114,15.983758635971329,11.291204344228376,-14.440271879852466,-4.2518471980897035,-8.086436474838802,10.797996379442743,-8.419297727800144,-5.78229039782194,4.727680015164078,-4.470197280938923,-1.5573092653898248,1.8643011252155994,6.7662469179534925,-3.575310933831468,1.5419004432456187,-5.893459614972121,17.786034365395373,-4.706672391756286,-4.3479613509998964,3.6640434244836797,-10.049860625992153,13.806149840779266,1.3544117664769482,-3.8656819945817955,13.368322318205545,6.534482853234463,15.05722768022553,1.2498359432543598,-5.8064422768227475,8.048382480598484,-1.1243904342380604,3.7182640737550883,9.159740813560965,5.245342297460018,-14.406313311216941,-1.0030051109305078,9.773506288023095,-11.481218191578833,-3.51708986470248,10.819061247532018,6.9183217598603,7.951965953087415,7.344196410446623,-5.869027227719464,2.2957475089448613,0.6847734546059279,1.5493009856865545,12.699012987980032,2.4162060505580665,1.8881361655267048,-1.518322582509817,-3.2772377606212215,13.62966699821305,1.711398508374836,-7.281892025767626,1.5303121146428067,-3.5078890543298726,15.089966448362851,10.539382397739162,10.95132155358782,7.762966165865701,5.5899378815485505,7.748507780860223,-6.85600856868247,1.0178633725277744,4.523600704215917,-3.1273721772779095,-6.410886020192375,0.7777552634118858,3.1181089262630697,16.42392953617529,3.2254621849938228,4.756653769535015,-8.39490871922663,-6.988627009724817,-3.780382348994229,-9.474904829510528,-4.564235475730225,-1.5021304555671167,17.64403390289537,-6.243052226200879,8.79324896280276,14.759423267995707,-3.4404962785438835,7.3872896176113905,0.7799052420199163,15.155422563170763,-9.286437276223474,1.3090436642952767,5.628804392872515,4.180208130047176,0.2073146475950355,-15.138963986521015,2.6780028326825893,-4.0476919857669325,-7.046872881136645,-5.406181590226196,-4.740392860323663,6.204045638152095,10.758538310498876,15.291763678134622,9.645122770784267,13.917565717710268,12.178202007372079,7.756263856170753,12.11678412185334,-14.715762740548172,3.685364461186994,9.932995755724509,-7.660378374375382,-9.911652405562453,-7.383237189387542,9.738562512009228,-3.999652766575575,-1.808884674810999,5.332509558102924,9.474072183146234,-3.107971202668859,3.2609256886804037,7.94387702572882,-5.319430242087659,-2.5133291933582735,-2.311385251162387,-4.955681825721909,-6.787795291506154,-11.628955600610334,-10.211581088768586,-6.051779987521517,-13.832015503123392,0.4612672519488358,2.3149581037604645,-4.122848558905026,-9.662887259515122,-6.55574497109489,3.912471101547401,2.5611768418781913,0.5114755477230978,-5.088212628176757,13.045084089312686,-4.6819520589536285,5.192940442820508,0.7331541020931501,-14.670310262514255,0.5300454144986176,6.261596982092292,2.460691890871655,10.628759052296559,9.761769376743095,-14.565764991353783,-6.122846112470168,-13.920697926377757,-1.451681723400782,-2.9565834462630973,15.089974628592524,3.5186393444055666,6.329980113876326,8.905065777953686,-4.825812949365892,1.026374703137803,-6.744395495787102,2.7829338061359996,-9.943509968856725,1.4108274090264155,-3.8810785394857197,9.35258394082065,4.444542851436067,13.631204959969509,-10.921854741057047,0.15529017093257974,0.5544258567455319,0.36019829770008743,-3.4839671024191334,10.718423161321564,13.674584259172045,-14.265246085163787,17.385401347734078,-5.203634068961532,-0.4176946633820559,11.902886809533378,-7.007666740221213,-3.8416902996760394,2.3894594929663286,16.694593960844923,10.570624367424202,1.0798525650283457,4.772607499342845,-3.918005994621207,0.3158728768850261,13.584696558986852,13.796734634161265,7.322921294197534,-7.003632744633485,-0.3147720863596006,1.1971107776977585,-7.093078175464709,-2.4287789467717236,-3.903584039011997,-1.600239842300887,0.5850122711706899,1.990317967085198,-14.477895445173052,3.4424825705868134,-1.4739711281223131,-6.877749543242432,1.2858079010018735,12.683836749989675,-8.877489570357746,-9.484686280087068,-3.6702405525079755,10.33612889885168,1.2261341498175895,3.2963684140376515,-3.424237668884581,7.267696260598191,-15.189328158688758,3.8379586178901284,2.1549245970899427,-11.461435516406468,-14.336411322154596,-5.410276151996276,13.76391573775681,-2.1193793820263913,4.509026350737844,7.458909877860785,-5.162996795036577,1.233965228194262,-5.874600015006061,-1.5228078836291965,0.31237725003392325,-3.782469565569532,-13.642332230262205,8.878501027544281,0.2663611985747892,6.72791137153967,5.305407259032561,7.625879248132548,7.728843514039189,1.4733624720099787,10.454353133904041,-0.7140185934984781,-6.704632660579504,7.296323538584613,2.2109604709344284,7.872417722044156,-13.373917446112767,15.182667187186873,-3.495371270195958,-0.7743647567808529,9.415938098415985,7.413455701124937,-6.5382672713846155,-5.521280410883237,-7.216132269663492,4.081957186958207,15.520453904105294,-13.240356592241092,0.39106237190138543,10.1621538604011,9.297912358639323,7.8011277842317455,-0.8684536670671809,1.2852401395928084,0.2820512082338348,0.02264797595877066,15.828207611157984,2.4107289824657987,14.799919081845285,-14.36851875036412,-7.677966375062959,8.723225746404173,7.359368631584639,4.139841772701938,10.987177401854678,6.733698604851685,-0.4347931970827209,2.479974917121074,-13.59305812303681,5.67873992567549,5.682094553334626,11.048710706563437,4.5012712845478635,9.763973064515096,9.995373976585574,8.870519508805875,2.035334932149534,3.997877701871917,17.60604962816081,-7.082826343973379,-7.164388412146764,13.688110050217897,-14.870706171838298,4.129181644072988,-4.52588273228686,-9.441976899005807,-7.98437636670707,0.9885801185798112,11.40516552667595,-6.033796845281326,-0.8068300836043256,4.65366037469811,7.380506559853125,10.434643488906314,-14.465773062386532,3.9972353182878058,-6.752255131269726,12.680144640473868,-3.813650151934816,14.622785842424763,3.7063450064685166,1.3988113587170568,3.227093225999675,8.845672990381395,-3.4438945632884357,15.48788020709853,2.1118317406268527,12.721949793511367,16.724887764060234,0.2574801265952286,3.0678913661726424,-3.1452692852014597,9.287090015000219,3.5556539118387462,-8.662845638926752,15.551170151325046,2.4200362930894093,5.762884833805136,-5.5897678854813195,-6.433070818512735,-14.272092325544776,4.029873863007165,4.415699406763268,-3.2625238222293413,3.5350230420323694,-0.23108227378183432,8.688339972077365,-3.428513347932748,-2.365964442815255,-1.6071956923896091,-9.083956336650777,-11.46245013480703,3.6205417716863972,-7.790971488173058,-14.572074981696057,9.769277382587902,13.421761800613272,7.3682776288343526,-1.6913482495778984,12.85952137762491,-3.139542384763903,9.77930709134318,-5.318051885061881,1.53467856140694,-1.331934696416574,-5.330665052939045,-8.456418232770341,-8.570662823850004,-8.849649275829877,7.900403951600007,4.390346123910889,-2.017341034691051,-3.7147037140298678,17.915966232657272,-1.7149013020050135,0.08748478061013805,-8.166742261888356,5.229880970781194,8.671273124663749,-6.887269343786659,-1.911305045688338,-4.049920432393621,-2.0433648667738495,-7.073111489131905,9.027683879717129,-0.43173210727999684,-3.385762607399502,4.119217036542188,7.795058283397683,-1.7350135874089672,5.855683733211003,-13.500066338036508,-6.661330344388823,7.750539473705221,6.749196866452582,1.9393003838884273,-1.0952293971446212,0.6968200583714865,-5.89874963208997,-3.2152044180773443,-12.468751640798104,-8.416625616008863,7.084237557375364,-0.6804072477357249,-3.486733697953207,-6.806910202967644,5.6657551393074135,-7.071232279458555,-14.71443063695989,11.402634812185159,3.680279835405501,-14.286100521200392,1.5199998634344953,10.064795327874764,7.299353754836681,9.466852046290983,0.4482269844285882,-3.9721719535475426,1.5905227839148088,-8.651025483926245,8.001991939936955,0.007731756395214956,2.3568226993420156,15.529166907833732,3.463114283824284,-5.9758670025002685,1.596428334682838,7.868689828239911,9.814520807097237,4.301165955067799,5.908103309695268,2.819642649979876,-8.599440851025626,-2.465217445448359,1.1342024299157716,-13.551592406700644,10.571901094986815,-9.37568431493024,0.5182779413909948,2.593952983032301,-3.9471647282719986,-6.9617077799533655,8.425267997997521,-3.3725944028793045,5.0182918118988615,3.453735731591676,2.946472036133716,-4.7464752947201525,-2.72097518072254,7.266757800569926,11.634497826851026,-1.4164073674620514,5.035762356887367,-3.782320424641813,-3.1385742184033223,6.903453373827778,3.6833637702250974,1.150245746764379,-7.299986854948177,-7.928652059921822,12.153855036642103,-11.012038065038503,-3.454334885726811,1.8032186737533469,2.123066207787195,0.7529691130177785,-3.445157833787259,6.844423224097681,3.6816308875136365,7.21754978902011,5.022675087588038,-3.179866177044596,-3.372495450038002,0.675855424762368,-7.187290665969582,2.5657506984022636,-4.977280152320937,12.84413448102063,-0.9446777884119872,7.3581307781684115,-4.652925925113176,-11.164492714232246,-5.626330659137047,0.4363098960170081,-14.498678961756145,7.651177926470791,-0.1426787345692508,-3.8014230223003955,-3.931832109510589,12.747081497815666,-7.677875378509635,2.7723827397825924,5.347189346865096,8.350708696704928,-3.687726046622856,-1.1609110895336012,-4.433786830537238,-0.8912290210311322,7.344271484143054,-12.435931109369452,2.84065203728239,8.515423828904053,-5.156536925559859,3.0336257862847256,1.044548547398493,14.009241197262341,-13.313534444656753,-1.6689904082244913,-1.8669811325605652,0.3354714297748542,-14.688908320746863,2.9141785262418667,-7.096530911421878,15.575958440321402,-5.257712203704003,1.3192364805355976,2.7260824887967297,-9.633142226064042,3.5953644545000976,-13.118694792064861,-14.864542755355451,14.845441923431268,4.996130583885437,13.013945385335854,-1.4091962020852928,-3.624157088809945,7.313672037185708,-0.47053698608514527,0.7498544362014395,-3.047038946317372,5.808703817386104,2.775549678694707,-7.632185712191485,7.345860999684384,5.295815792114127,8.687870111502402,-6.310179605131075,-4.69535032670831,12.236627649741262,-1.3845663769257601,-7.965367339072197,11.046990812243473,-8.074042551485505,-13.356272279333728,5.831665820328979,-2.580075948022332,3.5520656227375507,-6.420991270821215,-4.125387669018951,3.3584918440747034,-9.615900449988716,-3.8573414595306215,-12.092238734565482,-0.23796949659794114,-3.869859964579667,0.5511987907023629,0.36783002945573157,20.131998351331447,6.1682676639194245,12.438261173133325,0.09129367262832522,1.1882447301241346,-11.72029754338548,-3.0936707307191593,-4.406695621747894,-0.5796980129493451,7.329039469495836,-8.394710641331056,2.488052771823086,-9.116063782350981,10.936432459535094,-3.7942969087814693,-4.704554387130832,-2.0490283933627143,1.9734227758706548,7.753038061036677,-13.862521930085476,4.298635071857645,-6.315619015553271,-3.879281951895092,8.336796962458585,0.9910079805828834,-5.729524955776362,-0.1201198055290156,-5.044038370265195,0.0811202913752767,-7.864590483633237,6.688095597022436,-14.34773508879513,-3.1785513340252076,-13.439703760645221,0.05809292559495485,0.2304370375381052,-15.112358194280185,-1.785920972767794,1.414231802013076,-14.9539803962427,-0.9064277770534582,15.09389855225615,13.938307092065497,-8.089973220147144,-8.376873934034393,-7.10962809970402,1.0423440304729852,7.218523150052254,7.350578956768394,15.619764994305644,-11.756157466377228,6.21489730743629,-14.484057984499557,12.865104931210276,13.576044970155898,8.321501149409439,5.562031563809847,-9.17816695685562,0.6439221159386646,3.1809125830182046,-4.184631076493341,7.280832588427218,-1.0074816484328537,-11.466937611839779,1.556283577825045,-0.9078837670994421,-2.2508941444372264,-0.5686060588550609,-14.490234184059728,-5.230124905010194,-1.1488811938443089,-5.166705167582014,0.033222174413458365,-4.503702994484816,4.536643770537356,0.556405230753551,-0.13886745189970742,4.090723403454278,1.468392138639122,-5.192168175866276,-0.7576062688623,-1.5160441255290504,1.3142967594349972,-4.4168731415537055,-11.277169210478691,4.1603075416949835,17.91744528286827,7.282294537039978,10.676769175713442,1.7028221596676199,-6.8830521021029005,10.43132784545038,-6.787335013562206,2.682650601628051,-5.361626716762328,9.667943761713166,-1.8982932510415573,0.4069590098172773,-1.9999587698128543,-0.9746754293795427,-12.048625836604097,5.126506592257747,-7.4614557530318155,-5.6772478570578,-9.638747447679155,17.769912993206407,6.056162612054227,-3.767368964255426,-9.670966891894992,3.188511536382529,0.6066875968109608,12.24350418287012,3.9157234641778564,1.574042542515726,7.841964008674624,7.339023213605979,6.961259084311214,10.685729949203202,2.7352113146935038,1.1653891533941396,-16.486276488105045,0.8091782419385701,-10.62843558710788,-14.810872521307765,11.42950382412066,-4.551204293577734,-9.048446189720343,2.129304838994669,-5.219960975098374,4.919080035798336,-1.5911549398933746,-2.1781547628054496,-8.651396280322398,0.23004022917649544,-3.2239112819802584,0.047389601051367344,10.727859818470305,-3.2182868805414055,-3.3090100118670738,-3.5660799792800395,9.895807601304645,-8.783803198357962,0.759707553425929,3.514141821243154,3.4019211826149642,-0.4320897854163803,1.5057401326433897,9.567677855924721,-15.328917028612118,-2.315259622081465,-9.827617149761249,7.355491806442867,-6.0294302021026045,8.728793502528283,-14.593822814558733,-10.579156777124398,4.75322369817508,18.038365208802585,12.61258170028841,1.2239241329849682,5.166759776836292,4.030786359042968,4.290382706097499,-3.9716725466693608,-14.327665456171275,-5.658636191651738,-7.171306572887927,-4.4793688163785585,1.8704960772223138,8.557426839663856,7.26484976437641,-6.310914831869831,-6.7497898222377595,-0.408964259459278,17.482991101222655,7.235222069550734,-3.9297602993231604,-12.24523596024852,4.8582180926772836,-11.692248695106073,-13.419364844197942,-2.65554074961092,-14.496928110732055,9.431357993054178,-1.3211013787025039,2.4144544939081762,-16.604447087988277,10.641200827446452,9.316680060237953,10.047018419795924,8.852857359527883,3.5928895667985947,-0.41359449803725074,-5.489564065245436,10.334890864754138,-14.509962240578028,-4.401146716810977,6.217656246612593,-8.138465821327676,-10.483634379130596,-14.005677092956384,-3.958268146897596,-3.184274851785254,13.591057773598822,6.205209377083624,-6.803634619599756,-8.420280824566907,-4.001709507325151,7.905021341558198,3.961758967778357,5.32396939872904,2.7658590546307376,-7.60193082283014,7.268222389498267,-7.1122074435167235,12.754822583999472,-1.2420515789137234,12.932924358876134,-3.8517327478185788,3.6339511144482874,1.079212855710546,0.6819242620012689,-11.621937417830493,-3.2724405657547995,-0.6041253364297408,-9.007824034178407,-7.748413680180416,-0.2622713997662079,14.76030892987805,1.1310686379992252,3.547982229548134,-6.890643159972845,-2.625784134654061,7.353992325743316,-1.5218181360486143,-2.3437637718634687,-0.10612557519994503,-8.414581875381991,5.53676537492871,-2.7292092579147096,-10.681202972020376,3.5483816754909685,13.312165653994157,10.986639136912995,11.864794440411757,5.684001829359001,0.06501853913531402,1.5215540045871816,-7.305371027911425,2.4736253501175622,6.901277963915473,3.4038396234726602,-6.410360512720196,-4.508787825217037,-6.796554425049007,10.110402531019842,-0.10694420962328267,-6.65741528597962,7.05495052745613,-9.7983117527697,7.162255801571048,-9.323544317031006,7.809748596383865,1.617627744482543,1.4398434241545168,1.1725372796935107,15.292996684893232,-1.9399129897472749,-12.234530483566013,1.563628822132754,-7.171404334686042,-2.167029475881269,2.2338174641449697,17.890415642107627,13.894502689867352,6.610648143593181,9.791725859708876,8.17279420772391,4.727546078648194,-11.132427667939707,2.349311053558989,-6.333323506295502,8.933788875326316,-1.9469004224790032,0.7911133533291708,0.10463094214245826,-3.1711710058631417,-6.84310352736937,-6.778605743799235,9.68397018773534,3.1404672758045615,12.091710610644096,-2.9858602969415537,3.3458844223574173,-0.9557510640902825,3.396843241559862,-10.925404432893519,9.344892228299761,-11.973479960931405,5.1264089195402205,13.471707886644166,-8.614708318597813,8.373650558289482,-5.914143106498186,-4.854004810036577,11.89377316160639,-4.646730405965633,-2.2181592471488396,0.547205916543225,-3.6568052801822546,-3.6752560895918287,5.591403474008641,-2.228021908535508,-11.27269327405725,0.2890064674728282,10.995997394839698,-8.97879375209185,0.013884851247737199,1.3394732480556348,-4.468374913510058,14.417034002579532,-11.271526810456358,-15.402616783761657,-6.111069730009904,2.633407577454202,-9.239348563922627,-4.0042618404664125,-4.04966252456097,7.362103053170853,-8.686576479258019,7.526469248804075,-4.444004640841022,-5.590258442418769,12.866159954177995,-5.800826227472785,-0.8349937323712471,-4.764821363667458,-3.2482565066630187,2.673054715412035,-13.973408131613182,4.1596047783603805,-4.128455845270401,1.3302125502834006,-6.783813402719568,-12.188160397566527,12.780321887819229,6.149739454224526,-13.376909686050467,-8.296954984719257,6.137393739696658,-7.14711624512371,11.170428560590764,-3.8503576140861044,2.4885385142310557,10.553850690996097,-6.230815940429216,-3.5015279005331363,-7.2293838303712805,-14.522832908145514,2.7103638348422914,8.329738516450393,-1.366387005751688,15.157992488463654,-0.14268451422230016,-4.418462670994612,-4.018814565686139,8.747834749057752,8.538535931418574,0.5347369057021174,-4.6995701201355295,-12.732353104399785,-1.5880913424271255,-8.00653497074725,6.272615006545128,2.93765690002355,-2.5324932211694797,-3.8546293214988316,4.454763335595895,3.1527376650921135,-0.8935537444746223,-4.686641273738335,-1.2675873963079782,9.452979952444663,0.9272660350063007,3.886259967933464,10.555187745885288,-6.107213735879719,9.987810561095442,4.288036941523329,-9.226929528131976,-0.7993537655073759,15.461600316129488,6.4024685792096845,-12.250781521249397,0.7977726658742925,-14.271823056312707,-11.441950002020894,7.272288239393451,1.4388585265231613,-4.047054855782828,2.280109031511008,7.432498105186708,2.3662751751809945,-5.373423172959539,-3.470421716111141,-3.1927735835091706,-4.865738936506306,9.38339997348468,13.64098927815484,3.9181938134397027,-4.877984499726862,-7.038722355049766,11.782950414405635,17.807194007352063,12.152513425299794,-12.099157986318446,10.982074970194855,17.65071759668698,-4.631321301379863,2.3937670990843256,3.985803965828009,-6.511439669839425,6.865528196678388,-3.448038631346293,-9.886810764623418,9.340294755460551,0.5062849916987061,-3.1298442015392904,-8.902972595540172,-6.339447913999768,10.434226286778447,-3.361905142260187,-7.668641565630879,-12.787735184576979,7.697180965845429,10.345031729688651,8.889892220988449,10.332425942354012,-13.936469245234399,7.276670852622605,-0.1104817600290028,-0.2856779400917733,-3.527061369535711,-7.749743864658208,3.0795084667089543,-3.7162416042429243,-10.727087267913443,7.539283783680239,7.339448666115565,-0.4321324066760672,-7.469062306862345,17.93306622288383,4.737757484247637,-5.210035621775188,1.0682380907577504,9.192695094374375,13.569065395622628,-2.268742111026344,-6.783283372746185,-1.3259772317274572,-8.203665564799378,7.692845469666937,3.9755117478216335,-14.591748733525607,6.053406098009776,7.358525368332431,3.401964296552257,7.554382085658664,2.050044363076559,3.150810337012482,-3.5024416009395516,-11.490328163220823,-14.292048012694332,2.2097982089278583,-8.203002203925145,4.359311088888063,-13.971330783485882,6.639251903035866,-5.614843729401971,7.981953188691317,3.358070615523567,-3.770555849960864,10.065950699973843,-2.419530330915631,-1.1878781087921726,-6.726757327838532,2.050092300152042,6.64594311160783,6.160158238540973,-4.64830400811959,-6.9180968277436685,15.429564885873921,-7.73432081879133,1.3330818544245386,7.305441778389605,7.757483473127453,11.923626134014757,-8.277643856696084,-3.1355941784948405,-14.658954754618948,-1.7478389985693967,-0.03402924056920647,0.8140393675824091,1.4405788389071679,12.057978263743882,-4.41591768586212,-0.06994348451896876,11.546584518367736,8.870381879593074,-2.100904584151138,-4.464354919847154,-13.213066089508233,-6.019015147000805,1.3047605782813412,-13.952674337473782,-2.82825264223028,-2.0351695201158106,-4.07804848406798,3.2058711408870875,-9.375976412360453,-1.5584848193458039,-2.6619832008270365,9.126303131868928,-4.697795805726858,4.340399186302476,1.6952399474848037,-0.670885808924901,17.850193589578865,-9.59455915998233,8.040806163791542,-1.7097872393439524,-9.002537894776264,-14.731328405758283,12.784533067979117,-3.8400008482653156,15.100046610443977,-5.149031726702001,-14.80118892608378,-5.267823895660615,2.326394614029551,2.4200437232922622,-4.207556029479568,3.6255697953735138,12.721054332638074,0.4195347734027047,-10.984677211550341,-13.64992234617288,-6.294123990967091,-1.850012308056509,-2.93366196571296,13.263327613718854,8.26321559062915,3.3134612791497626,-13.381364758825725,7.76618835270716,4.472385672159627,5.6007098818371395,8.358503475510474,5.012931948190698,0.8123601536390216,-13.475386744262321,-10.828912458664897,-8.82845429209611,-3.5959607584260898,-6.856199674958102,-9.552812023721884,10.50675611887073,-11.30476034324116,-4.555319572789246,-4.842476602558274,-8.926796386835626,15.231398756494233,-6.457297281213175,3.437839929816131,-1.7266012519938785,-4.356499767258524,-9.270075070689275,-7.2931596347285526,7.322950895603483,-3.815306941116367,2.6663996786912896,17.04526954979707,6.134876507722506,7.663352237999101,-3.9618314252516003,-14.465667618558854,-1.825380300706681,-2.113466466310227,13.320616009270545,2.32906332239004,-7.051351051208355,2.07667552865467,-4.864067102100058,-5.093929400049848,7.2937816157116755,5.336230987958959,7.347903456494098,12.860439752408107,1.052975086784543,-0.603213786860107,13.635598919231207,-5.6499406491462985,9.715421588550223,-2.4086082496736037,-0.7515173701310383,-2.9709175642153935,-3.7391791216120884,-14.84742441842025,-2.6364666581372624,7.273174035824427,12.152057488151312,10.030021723757446,-3.130048724263428,7.810904225244523,2.5242349418718044,7.505280250123843,-7.140049527790416,12.15758459562367,2.868950804873184,3.9647564292639768,11.43883259431243,-3.849149522239208,-0.8680828201825673,-11.189156920573561,1.1860752702331059,-10.88685828000485,3.2483744366685032,6.193212898823636,11.85539330504441,6.729100947745998,3.945933464639655,-12.60471635348589,-4.356675226740924,-4.613511565991742,7.554523669504909,-6.483322076788745,-0.6461999494410421,14.003197127954067,5.5524777068965125,-8.427045099426609,8.891719817248216,-6.784402653491234,-6.795810515781195,2.247781009201335,9.206908196739205,7.5100157378409955,-1.5328084197839964,-1.2944959058093723,3.1830480583814276,3.123448858261597,14.51512746153496,-12.287961908490304,3.605796216502989,-14.458117910784697,7.54581700862532,10.41204706084827,1.3016918973479288,-9.454519421598986,-6.514272830211619,9.090310840297088,-4.187064754080502,-3.7362891986954465,10.647072875549437,4.49983648408716,2.971885454924522,11.242833864059884,12.547296763885653,-4.942269354994436,-15.679292833308208,-10.57510898782755,14.885252491390446,-5.043394249278361,4.060978099308854,-13.679471531907236,2.363581738103811,-1.6242138725137927,-8.133445822160319,-10.978545654300135,-4.125391835851713,-1.032324172030119,9.66542973525569,2.204246878259414,-1.7248333959778235,-7.893090944068741,-4.475555036990123,-12.035103930459615,-1.3727067797738932,-1.317823778091395,-8.420363676235121,-9.982496941183914,-7.271347584682591,14.847781028143455,-5.258213140629526,3.375726130198824,15.838923079275528,13.870026366841051,13.361455455236461,-0.7287523231921673,-3.4644043534138795,-15.64942010325346,-5.5655544070094765,10.052525513945191,-5.4691510804450445,5.39652701108992,0.9488350092686135,-9.659082208061955,-7.536951044390819,-6.600971284441961,-8.32625472847817,-1.9791353205307487,8.674251595909244,8.237877453479657,7.5520335084644366,-3.2145079084339265,7.289938912490989,10.414093371015221,5.1931997348379895,1.378730678474583,6.03990204203343,4.81199000704107,-11.338012671830676,0.9603794680324278,13.68298319810357,-3.4006685399001815,3.3200017041214185,-10.245116191207869,-0.47374539254144865,-9.576377451717219,4.554741705453133,3.1538402137447674,-0.5731773926019059,1.730865297754699,-3.2330011534232543,7.283382108556381,0.36704592853982393,-6.141081821383263,7.830129246308489,-8.338709955916535,-12.831527208109586,-5.007443476213722,-3.8816555964242783,8.572638895832219,3.5961988375277545,6.936348483941712,17.83767850882553,13.387167305416579,-0.6086223760416155,10.11756220911145,3.561242319126939,-11.749955131124592,-9.67045031817063,-9.477423588474897,4.050752002888909,7.191076349131294,-6.660454345934502,-5.683467359934347,-7.508388992176952,-3.5239735151861384,16.423488156774322,-1.141230446570733,-0.4736111392809971,-8.230773593543535,-5.624429561475968,-1.9898925064291677,-2.639360874170599,14.09443151658729,-6.05377884833059,2.4962405119634727,1.8609702490361497,-2.022217726990669,-0.09242073265706251,11.843069210279905,3.66343898541857,-9.865909236457064,-0.21531343462614105,5.154391574300052,-3.535972158756856,0.461588119898394,1.8118185582593294,6.2180214265912195,4.067770269824001,1.0767487219339607,-3.520729450915223,4.323126574430181,12.913144837967469,-8.215388636912682,1.9696546467838074,-14.55759378889863,0.47555143742748707,6.284008097864373,-5.77375758505557,-0.4687725983019854,11.789086634722866,14.988322350407232,-4.4365191841426155,-7.46335882468106,9.721926171740547,-8.388817331673444,6.033055976954038,-9.668805038917633,14.984984643726785,-11.071953085613206,-2.136358871087696,-1.6207992651291812,2.0534062805676183,-2.3951858683811897,14.508684367350865,12.45326938471936,0.743299466719901,4.824937068760638,6.911949279442145,3.104237128449809,2.397040986542669,-1.1918256576575568,-3.7092479538812415,0.6328408025581237,8.589610483989057,2.622860519312536,5.615035920481409,0.34847141227508116,7.333872125739735,3.7512908998676124,-2.198998196395872,8.889974328876866,-4.077963603381731,8.46903248375589,2.927321585114342,4.501796778554345,12.98041581582214,7.4406500193014455,-0.9971583908563594,-0.42052161609584565,-12.27776572486885,7.576836647958047,-5.886067845892664,-2.555296968413272,-13.680919713679156,-2.7462093216396006,-15.830824835353589,3.6128804476894274,-7.494463248224442,-4.474556336949479,0.29279060337553486,-5.130551945203515,3.7838695374004305,11.193736969338552,-1.858333194318398,5.049787875760118,10.145948695800437,10.738742330196533,-16.513747132236805,-3.1230682397918543,-4.138313054947832,2.7952350447328778,4.180585466974011,6.130158811904318,-0.8267759937501129,7.474857085204288,-0.7271080461508515,13.303037641518147,11.454978871933307,-8.396564732289365,5.561558026315323,7.493112102659353,-2.8803341461159273,-4.141990495778812,4.203222599227015,-0.23193894306506174,-6.57948955508849,9.251811477474371,-2.959820426321376,-4.738350427236546,-5.059624913588765,6.068646786338476,15.094697040377804,7.708674924054464,15.415708279312117,-5.7379701402303915,15.089973942091977,7.781730042105514,-11.919029207012132,9.548861689570982,-6.890040497398992,13.08397104436569,6.755367614023131,5.013563953749812,-6.119279147823255,1.0254781807847018,2.436063361518962,8.065250659746598,-4.3398226103015105,2.4450284059869523,-10.611754497799135,0.3954587964033409,6.658801252289801,0.316396532584289,11.310625660727721,-0.8867871653945739,0.33932866816091084,5.284834911772897,4.598335559647688,-5.3423770374366475,-6.431901434944611,1.178453262400236,-7.8726161631432285,2.4768391456495342,-5.914775123223551,1.7511742195897149,-7.796304086788308,17.93781805936963,4.061401937965001,-12.062130474134191,-2.7869003138613695,1.2809421215115575,10.291969483460106,-1.1979378663340634,-0.6458664940991683,13.328758096145641,11.99023457839575,-1.9604596226352067,7.279656558121084,1.3670888145400162,-8.005383255219948,9.20789898633578,14.45477793496721,-8.041284818016898,-5.352878172413155,1.5077049765977355,12.067258873101029,-3.5662976806977693,-11.524871153264096,-0.6024257955169076,10.131549201874757,7.30841091492253,-2.4698316523591153,-3.670585560017228,-13.91783749244693,-6.181203597328129,7.569507394792792,14.918339757956664,-9.055382397084893,3.6908472054907606,2.387335910445295,7.255079375981554,1.8499648286787094,15.31016045143128,6.757450734525721,-7.263602522392819,-7.547141481439622,-2.8285531114359377,-1.5363018769773855,1.9274682075069858,-3.828737226090561,6.547328045681527,4.884711700644274,-10.822593031160006,12.393896601689937,-7.598630193424139,10.745086608148162,-4.030298106350968,-7.271587676277251,10.763982832119751,-0.899088193315474,-0.5247241919712322,-3.559261512727779,4.332530181818117,-0.1958732607188141,12.1255469880092,-10.159269180969071,7.070543593330799,-5.86164525622589,-14.923828384208242,7.896824400724271,-5.59624055664253,-9.609741979725882,9.57913583945534,7.814930311466372,-11.941604132389234,3.176392538535258,-1.2654343744731735,-14.172846031288461,-3.512449158828396,-0.7924759760612747,-9.75430199812817,4.0590638886882004,10.444558270233646,5.478001603082259,-9.087522251928789,-2.797373111324273,-1.1132831478250667,0.4581827754472985,-4.061374308873418,15.240542175991497,-6.801757113921991,-4.311877642551914,-0.39213242037493357,-7.28697217712901,7.686593237766876,-7.1190524275539335,3.5688582252254943,-6.121740398627476,-6.7346777199924,2.3131782606446856,-3.205471873408047,8.677338033447526,-3.5315799928812917,6.127083993243386,-8.383665250129587,-4.6279252207278345,5.942009531373828,3.843760936437676,-8.24807923548771,0.239996616533214,-1.2047887022518333,1.308283543890869,3.381238673691966,8.272280773658006,-14.262072059101957,2.5221936711034934,5.603779570601003,-9.6283529699117,14.777897174860918,-15.259155018673129,8.2738949990124,-5.285548491916428,12.276193810069369,-3.912333827514406,3.945354038906323,-3.1447783522335935,10.79515613620625,6.751781369039126,11.16992691390162,16.694361025580115,-5.874684094395467,-3.804917582822441,9.330746287865042,7.273615252306595,-3.527569238353536,-2.24076194884428,6.350993788476781,7.107261028105218,-0.6466813957222992,16.944990182302366,-4.432061564750052,12.279763813570497,6.084248890630233,-2.63193936315381,7.765136091948635,12.401004744747324,-15.007044971043968,4.431674846885322,3.0169241626209518,-3.030037024729118,1.8761570657120215,4.514357322975718,11.295861112894569,4.795633581953253,-11.438921466699275,-3.1345201064217814,-5.458129813518711,-2.2913095112950175,-1.0372431968374975,9.534210822249552,-0.04941691240364354,-0.9792497320823637,-4.368519216225339,-3.2268413921661536,10.447096736903559,-5.943875726822745,-3.6826515025932283,12.129827392086094,-4.4036889396916825,-6.7900587787834485,9.265851874663174,-4.29493186500737,13.026241874610191,-13.74064625675543,-5.137611093790809,3.819188870217404,-11.421479119832265,5.589342589416762,-0.3085656555556444,-14.873026279740104,8.602890103899835,7.372753305775264,12.533398711824184,12.848256577018608,5.70390426183239,-11.92908079362449,-9.670731347914405,-4.473166332097929,-12.060880343976336,-0.8189378786754473,1.0060261509408013,0.285540073893407,1.7256202785857344,3.029017535826979,8.799788847730477,-4.646852973640447,-11.450557385682236,7.2282585569574875,-5.701739769664544,-0.5529037767727663,10.798923662547038,-7.062510815978371,3.9200845639154,-4.474742095200004,8.858638102706506,7.264170323053736,-0.8917473344176094,3.8003453831750007,2.0587419337270716,1.5562483054224894,-3.2014152828653004,0.4754475184835205,-5.955728838943266,9.108339150804335,12.912947953793703,1.3346937512399053,2.5731128738730864,-15.427979775474675,-4.5987429037225365,5.968477310320936,-7.271448073354112,3.462579288734035,-8.034056137023208,-9.190522148775397,-4.1232502971499745,9.56652283091413,4.539095614867082,-7.2060309333202905,1.7363456219700326,-9.865157801054105,9.193957383984644,-9.732303864026694,4.21702515336924,14.76522199183704,-3.173771183299966,9.377708933392402,-1.2630763869669666,8.054569678063109,4.087772778838002,-8.897222399516231,5.653958971052907,3.9673551919798955,0.10740328898725897,-15.204451487723398,0.1788988847566121,3.266661157546505,-0.67095634340775,-1.061949566387813,-13.738128665127055,-5.258124413998316,9.48608744249758,-6.370805176567572,-5.832579137476537,6.2569101472539,-2.9166263632146148,-0.5865391911751751,9.662671015988261,1.8887177221077625,-14.296310224684058,10.963123661912169,7.562845819043445,2.792079876388404,3.3032260705435244,-2.466250079958488,-5.679273808192205,-5.668324528337229,-8.05775599917621,7.657379172789381,-3.6967845061820803,5.877204981997891,12.54900225656052,6.63427719987399,-13.396375131933656,7.824157575775983,-0.766007350428929,-1.8261991741169075,8.354292648874226,-6.970063663070579,7.343577923557689,1.0900286899244997,12.644655075017072,17.02736752940287,6.76052132013339,0.44489365210043613,-9.63039173469475,7.657299212562632,11.975914419229987,0.04045963899123134,-14.284981354382502,-4.979265893324548,-6.857339449408616,1.8007133499507666,-2.3594312992038033,-5.323837001319959,-0.5158018038959531,-9.627142550170488,2.7171960633005217,12.047324584386592,-5.811294649103391,-3.7789749647886044,7.207145338782345,5.6472570740112005,-3.9449743962473303,9.667193001657308,4.07441688891267,-14.520050934348253,3.296474856802241,-10.63180731154983,13.771417644182195,2.505174496192949,0.7946382544761788,0.34632803338696283,14.799942478341816,3.8132112669874036,-14.61360391100758,-4.702575579851701,17.891873173791456,-9.264974625912014,-14.581630658263455,-6.818001529022436,-0.7123729984879459,1.4840403482813993,-9.01605910086326,-3.2353044587270157,-0.973134415512173,-10.01614608564991,-10.935135938108457,7.352367211135109,4.300058956227788,15.46470466759632,5.565457380358361,-7.5535528392763975,-3.510527494317046,1.236350429393656,-3.1461494830077648,4.475407678279789,3.7642610868181134,-6.841967600061152,-8.086017105324855,2.3387865688640423,-5.631787803015279,8.550139669018158,-5.833137996654075,5.852569056897207,10.788313739408158,3.7983480466297324,-11.099364324168281,9.633968845572667,1.0186480268466804,-11.884144868185945,10.864296294996263,-8.344069418196614,4.803804595846366,-10.539449269304269,-0.1844140958747563,4.541197408520402,-0.5607604172635464,7.268548890204224,-0.2903354664359525,4.755788783341285,-15.372352364114365,-9.691097698692666,-15.066676891537956,-3.48638192828657,-5.749059384049001,-4.659349904236952,-1.459480733826681,12.741237529934434,-4.702132005537136,4.640997284967936,10.185931600783022,-14.147164225702118,-3.9176883661869892,0.4115544210194165,-15.23672256220694,-5.969856456819978,13.42737214853919,0.39566952210842954,-14.417498160299413,-4.129299838707746,-9.847986813273284,-1.7758848343343003,-3.078596916267805,3.081219275878461,13.215373898339182,9.589150601816813,4.391918296840171,3.3718609893522506,4.98527602027317,-6.473234938082637,-0.6577114862999132,11.054333538843357,7.782535526355463,-0.12565113911820783,10.078921531235729,-1.5619542769423997,-14.5697199957878,7.553864063861962,-0.21996281729830808,-3.3835779493239064,-11.23269546731157,-3.8325391575044057,-0.2526113663633615,-14.95799121125203,9.36466758951657,-3.218117232216934,9.19212392932185,15.683720461616801,7.305276229402162,-0.9130879493881586,9.450996195713412,4.648099269988775,7.166321170604754,-3.8429958291755164,-1.065204079190279,-3.9887157734239946,-2.0521535993457216,-0.04642662614845151,2.944462655566849,12.834009000692461,-14.118107356527975,0.987728765293872,0.5698350006012147,-7.994170944752752,-13.398993595772712,-0.08699631940387256,-2.507772716901999,13.90127019792393,-7.043156730352596,-3.7106216104734133,5.650782389917921,-7.055224969165424,-3.383424811333933,-1.2696885084365712,7.588566582702082,-9.653219543625529,-7.900244090788761,-6.413437693890368,-5.000022958846708,2.8280659250546174,8.828206017545591,-3.7074162206415378,-1.7175661888779588,3.6985608086926938,14.793208653670971,-0.9423792980962716,3.7095211355616833,9.794958469320697,15.238069441568632,-3.5035383423020066,-4.108448894204711,-3.7564165986011187,9.487614617535504,3.6122132968112783,0.7904720059108885,1.6495628803187254,-2.528768487929775,13.894298287701655,-5.7380107255541,7.148763586768884,8.977117779623914,5.257383508470024,1.3816274001382622,8.901459059196714,-4.429560915273956,10.261319759752656,-0.9333217552721544,-13.808149529554635,0.7569891129383313,-0.5786314632469942,-14.97200089579541,-0.4243093905168327,-13.885216935158779,12.72298781836811,4.220422514097235,7.72697161194514,6.541369522576058,-6.876659386665789,4.307349397152608,12.288727563529672,-5.656120921657918,6.85419781056038,-6.8439582885129795,2.1866308078784393,-9.6563416384769,4.038916271722326,15.087768955835982,10.427039123957266,6.934855079200495,2.7740001001928354,0.37818289658186555,-1.2309578129027854,-4.01394273426925,-15.221822401538583,11.737503604023074,3.2052289160755647,-5.86174546026851,-13.870810056092742,3.868964032664473,1.2308034952951514,-14.93564052168611,-1.0714378833302565,-16.59289976328612,17.822670204238996,3.266331805744533,0.3494917046761494,-5.756188658640532,9.670377366082848,-4.2873178570366965,-12.853483051231178,-1.5794046426748225,8.807292687766335,-5.788610567761684,3.8056739663749473,-14.958694776516769,-6.80052105857904,3.5806535951201663,-14.81580943738237,4.27459197040831,-9.256979342374418,17.93325446387566,-3.969637484480897,8.184900523233198,-3.133487111689817,13.13768501032368,-4.616503838630929,9.531396497016381,10.132793807428966,-13.460606823542374,-4.126736458611764,-6.759459433911925,-3.973717490755509,-14.872658595947248,-1.2347102712477305,5.724684910748354,-5.520260766914977,5.371721450106892,-8.685218619081011,1.6644730105830234,-8.388952459648266,-0.3732539025071344,14.743074759496366,0.2903930577524843,-9.048936442214352,9.36463419539588,-0.4185093834949707,-7.922548638664436,6.315134890685904,-5.861631112001639,-3.2615024436342623,1.7215838371804082,-5.877692591771899,-1.5417034023946796,3.2736045999086723,7.266932938872612,13.555612942077632,2.8299775577399005,-12.939892696660337,3.7430481963511872,-3.4179950494560347,-4.623530422436861,-8.600765280498582,6.442387413393874,4.201845522365616,-1.826204574628235,1.0072537704940654,0.5031734052749395,-9.64284949654117,6.05608027534754,-4.262465398570634,2.3812557408631423,-14.28846487419548,-6.815693816269487,11.249765843102832,-3.4539544459065183,7.297465853545732,9.223981840169232,-1.2920028822762277,2.5416999353511955,9.418737778577011,-11.037334612622939,9.282939878764338,7.847672905077604,3.5586387616571433,10.145934645097938,8.361578130670008,-1.2417783085118939,3.7760785077583066,1.4668688476727179,-0.838293238977743,5.103734586173563,7.341866961483355,4.1689225522200175,-3.7398654407944663,10.635005942610126,8.76917431501795]}},\"id\":\"e1f059bd-d8d8-4a6c-9f04-58571a27ef91\",\"type\":\"ColumnDataSource\"},{\"attributes\":{\"fill_alpha\":{\"value\":0.5},\"fill_color\":{\"value\":\"lightgrey\"},\"level\":\"overlay\",\"line_alpha\":{\"value\":1.0},\"line_color\":{\"value\":\"black\"},\"line_dash\":[4,4],\"line_width\":{\"value\":2},\"plot\":null,\"xs_units\":\"screen\",\"ys_units\":\"screen\"},\"id\":\"afcc2163-43b4-4522-8f27-eec835514ddc\",\"type\":\"PolyAnnotation\"},{\"attributes\":{\"fill_alpha\":{\"value\":0.1},\"fill_color\":{\"value\":\"#1f77b4\"},\"line_alpha\":{\"value\":0.1},\"line_color\":{\"value\":\"#1f77b4\"},\"radius\":{\"field\":\"radii\",\"units\":\"data\"},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"34d11d0b-710d-40f5-90a1-551bc24bce72\",\"type\":\"Circle\"},{\"attributes\":{\"data_source\":{\"id\":\"e1f059bd-d8d8-4a6c-9f04-58571a27ef91\",\"type\":\"ColumnDataSource\"},\"glyph\":{\"id\":\"0cb98164-2232-4447-a4b5-7c515c3f0dfd\",\"type\":\"Circle\"},\"hover_glyph\":null,\"nonselection_glyph\":{\"id\":\"34d11d0b-710d-40f5-90a1-551bc24bce72\",\"type\":\"Circle\"},\"selection_glyph\":null},\"id\":\"69fd2b1b-2091-4ca4-b58d-758329ef159c\",\"type\":\"GlyphRenderer\"},{\"attributes\":{\"plot\":{\"id\":\"5fca9abb-8d94-4900-a388-d2a3b67dc489\",\"subtype\":\"Figure\",\"type\":\"Plot\"}},\"id\":\"9651b508-3ce2-4350-891e-aca5a9d9c0fe\",\"type\":\"PanTool\"},{\"attributes\":{\"callback\":null},\"id\":\"69670d03-aa44-47b5-857f-83ad85f61c02\",\"type\":\"DataRange1d\"},{\"attributes\":{\"formatter\":{\"id\":\"1fb28c9f-40b7-40b9-be69-1b7e44039156\",\"type\":\"BasicTickFormatter\"},\"plot\":{\"id\":\"5fca9abb-8d94-4900-a388-d2a3b67dc489\",\"subtype\":\"Figure\",\"type\":\"Plot\"},\"ticker\":{\"id\":\"b1533272-adf8-4cd1-8b85-a38220ef2199\",\"type\":\"BasicTicker\"}},\"id\":\"b23536e4-ee8e-45b2-b1b7-8c23a21ebdc6\",\"type\":\"LinearAxis\"},{\"attributes\":{\"plot\":null,\"text\":null},\"id\":\"ce0bfd0a-0b2b-4e69-b780-4a290b62b2a3\",\"type\":\"Title\"},{\"attributes\":{\"overlay\":{\"id\":\"a140a9ad-34dc-4a95-9824-7d2c71f5f40d\",\"type\":\"BoxAnnotation\"},\"plot\":{\"id\":\"5fca9abb-8d94-4900-a388-d2a3b67dc489\",\"subtype\":\"Figure\",\"type\":\"Plot\"}},\"id\":\"9e509916-8395-4d8a-b781-f9a92b207e84\",\"type\":\"BoxZoomTool\"},{\"attributes\":{\"plot\":{\"id\":\"5fca9abb-8d94-4900-a388-d2a3b67dc489\",\"subtype\":\"Figure\",\"type\":\"Plot\"}},\"id\":\"936102af-cadc-4ada-880c-1ae1e1f451ed\",\"type\":\"CrosshairTool\"},{\"attributes\":{\"plot\":{\"id\":\"5fca9abb-8d94-4900-a388-d2a3b67dc489\",\"subtype\":\"Figure\",\"type\":\"Plot\"}},\"id\":\"c0e30173-6a62-439d-afdd-cbacc8447f65\",\"type\":\"SaveTool\"},{\"attributes\":{},\"id\":\"80b48167-b15d-4e4b-84db-f2ce63ed0e5c\",\"type\":\"BasicTicker\"}],\"root_ids\":[\"5fca9abb-8d94-4900-a388-d2a3b67dc489\"]},\"title\":\"Bokeh Application\",\"version\":\"0.12.3\"}};\n", " var render_items = [{\"docid\":\"e64bc00d-c5e8-48c6-85d7-9d719e821b4d\",\"elementid\":\"84a208a9-32ce-4111-b9e4-776e60455d02\",\"modelid\":\"5fca9abb-8d94-4900-a388-d2a3b67dc489\"}];\n", " \n", " Bokeh.embed.embed_items(docs_json, render_items);\n", " });\n", " },\n", " function(Bokeh) {\n", " }\n", " ];\n", " \n", " function run_inline_js() {\n", " \n", " if ((window.Bokeh !== undefined) || (force === \"1\")) {\n", " for (var i = 0; i < inline_js.length; i++) {\n", " inline_js[i](window.Bokeh);\n", " }if (force === \"1\") {\n", " display_loaded();\n", " }} else if (Date.now() < window._bokeh_timeout) {\n", " setTimeout(run_inline_js, 100);\n", " } else if (!window._bokeh_failed_load) {\n", " console.log(\"Bokeh: BokehJS failed to load within specified timeout.\");\n", " window._bokeh_failed_load = true;\n", " } else if (!force) {\n", " var cell = $(\"#84a208a9-32ce-4111-b9e4-776e60455d02\").parents('.cell').data().cell;\n", " cell.output_area.append_execute_result(NB_LOAD_WARNING)\n", " }\n", " \n", " }\n", " \n", " if (window._bokeh_is_loading === 0) {\n", " console.log(\"Bokeh: BokehJS loaded, going straight to plotting\");\n", " run_inline_js();\n", " } else {\n", " load_libs(js_urls, function() {\n", " console.log(\"Bokeh: BokehJS plotting callback run at\", now());\n", " run_inline_js();\n", " });\n", " }\n", " }(this));\n", "</script>" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "from bokeh.models import HoverTool\n", "from bokeh.plotting import figure, show, ColumnDataSource\n", "\n", "x = tsne.embedding_[:, 0]\n", "y = tsne.embedding_[:, 1]\n", "author_names = [model.id2author[a] for a in authors]\n", "\n", "# Radius of each point corresponds to the number of documents attributed to that author.\n", "scale = 0.1\n", "author_sizes = [len(model.author2doc[a]) for a in author_names]\n", "radii = [size * scale for size in author_sizes]\n", "\n", "source = ColumnDataSource(\n", " data=dict(\n", " x=x,\n", " y=y,\n", " author_names=author_names,\n", " author_sizes=author_sizes,\n", " radii=radii,\n", " )\n", " )\n", "\n", "# Add author names and sizes to mouse-over info.\n", "hover = HoverTool(\n", " tooltips=[\n", " (\"author\", \"@author_names\"),\n", " (\"size\", \"@author_sizes\"),\n", " ]\n", " )\n", "\n", "p = figure(tools=[hover, 'crosshair,pan,wheel_zoom,box_zoom,reset,save,lasso_select'])\n", "p.scatter('x', 'y', radius='radii', source=source, fill_alpha=0.6, line_color=None)\n", "show(p)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The circles in the plot above are individual authors, and their sizes represent the number of documents attributed to the corresponding author. Hovering your mouse over the circles will tell you the name of the authors and their sizes. Large clusters of authors tend to reflect some overlap in interest. \n", "\n", "We see that the model tends to put duplicate authors close together. For example, Terrence J. Sejnowki and T. J. Sejnowski are the same person, and their vectors end up in the same place (see about $(-10, -10)$ in the plot).\n", "\n", "At about $(-15, -10)$ we have a cluster of neuroscientists like Christof Koch and James M. Bower. \n", "\n", "As discussed earlier, the \"object recognition\" topic was assigned to Sejnowski. If we get the topics of the other authors in Sejnoski's neighborhood, like Peter Dayan, we also get this same topic. Furthermore, we see that this cluster is close to the \"neuroscience\" cluster discussed above, which is further indication that this topic is about visual perception in the brain.\n", "\n", "Other clusters include a reinforcement learning cluster at about $(-5, 8)$, and a Bayesian modelling cluster at about $(8, -12)$.\n", "\n", "#### Similarity queries\n", "\n", "In this section, we are going to set up a system that takes the name of an author and yields the authors that are most similar. This functionality can be used as a component in an information retrieval (i.e. a search engine of some kind), or in an author prediction system, i.e. a system that takes an unlabelled document and predicts the author(s) that wrote it.\n", "\n", "We simply need to search for the closest vector in the author-topic space. In this sense, the approach is similar to the t-SNE plot above.\n", "\n", "Below we illustrate a similarity query using a built-in similarity framework in Gensim." ] }, { "cell_type": "code", "execution_count": 30, "metadata": { "collapsed": true }, "outputs": [], "source": [ "from gensim.similarities import MatrixSimilarity\n", "\n", "# Generate a similarity object for the transformed corpus.\n", "index = MatrixSimilarity(model[list(model.id2author.values())])\n", "\n", "# Get similarities to some author.\n", "author_name = 'YannLeCun'\n", "sims = index[model[author_name]]" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "However, this framework uses the cosine distance, but we want to use the Hellinger distance. The Hellinger distance is a natural way of measuring the distance (i.e. dis-similarity) between two probability distributions. Its discrete version is defined as\n", "$$\n", "H(p, q) = \\frac{1}{\\sqrt{2}} \\sqrt{\\sum_{i=1}^K (\\sqrt{p_i} - \\sqrt{q_i})^2},\n", "$$\n", "\n", "where $p$ and $q$ are both topic distributions for two different authors. We define the similarity as\n", "$$\n", "S(p, q) = \\frac{1}{1 + H(p, q)}.\n", "$$\n", "\n", "In the cell below, we prepare everything we need to perform similarity queries based on the Hellinger distance." ] }, { "cell_type": "code", "execution_count": 63, "metadata": { "collapsed": true }, "outputs": [], "source": [ "# Make a function that returns similarities based on the Hellinger distance.\n", "\n", "from gensim import matutils\n", "import pandas as pd\n", "\n", "# Make a list of all the author-topic distributions.\n", "author_vecs = [model.get_author_topics(author) for author in model.id2author.values()]\n", "\n", "def similarity(vec1, vec2):\n", " '''Get similarity between two vectors'''\n", " dist = matutils.hellinger(matutils.sparse2full(vec1, model.num_topics), \\\n", " matutils.sparse2full(vec2, model.num_topics))\n", " sim = 1.0 / (1.0 + dist)\n", " return sim\n", "\n", "def get_sims(vec):\n", " '''Get similarity of vector to all authors.'''\n", " sims = [similarity(vec, vec2) for vec2 in author_vecs]\n", " return sims\n", "\n", "def get_table(name, top_n=10, smallest_author=1):\n", " '''\n", " Get table with similarities, author names, and author sizes.\n", " Return `top_n` authors as a dataframe.\n", " \n", " '''\n", " \n", " # Get similarities.\n", " sims = get_sims(model.get_author_topics(name))\n", "\n", " # Arrange author names, similarities, and author sizes in a list of tuples.\n", " table = []\n", " for elem in enumerate(sims):\n", " author_name = model.id2author[elem[0]]\n", " sim = elem[1]\n", " author_size = len(model.author2doc[author_name])\n", " if author_size >= smallest_author:\n", " table.append((author_name, sim, author_size))\n", " \n", " # Make dataframe and retrieve top authors.\n", " df = pd.DataFrame(table, columns=['Author', 'Score', 'Size'])\n", " df = df.sort_values('Score', ascending=False)[:top_n]\n", " \n", " return df" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Now we can find the most similar authors to some particular author. We use the Pandas library to print the results in a nice looking tables." ] }, { "cell_type": "code", "execution_count": 64, "metadata": {}, "outputs": [ { "data": { "text/html": [ "<div>\n", "<table border=\"1\" class=\"dataframe\">\n", " <thead>\n", " <tr style=\"text-align: right;\">\n", " <th></th>\n", " <th>Author</th>\n", " <th>Score</th>\n", " <th>Size</th>\n", " </tr>\n", " </thead>\n", " <tbody>\n", " <tr>\n", " <th>2422</th>\n", " <td>YannLeCun</td>\n", " <td>1.000000</td>\n", " <td>11</td>\n", " </tr>\n", " <tr>\n", " <th>1717</th>\n", " <td>PatriceSimard</td>\n", " <td>0.999977</td>\n", " <td>8</td>\n", " </tr>\n", " <tr>\n", " <th>986</th>\n", " <td>J.S.Denker</td>\n", " <td>0.999581</td>\n", " <td>3</td>\n", " </tr>\n", " <tr>\n", " <th>2425</th>\n", " <td>YaserAbu-Mostafa</td>\n", " <td>0.998040</td>\n", " <td>5</td>\n", " </tr>\n", " <tr>\n", " <th>1160</th>\n", " <td>JohnS.Denker</td>\n", " <td>0.903560</td>\n", " <td>6</td>\n", " </tr>\n", " <tr>\n", " <th>187</th>\n", " <td>AntoninaStarita</td>\n", " <td>0.901699</td>\n", " <td>1</td>\n", " </tr>\n", " <tr>\n", " <th>1718</th>\n", " <td>PatriceY.Simard</td>\n", " <td>0.899005</td>\n", " <td>4</td>\n", " </tr>\n", " <tr>\n", " <th>560</th>\n", " <td>DiegoSona</td>\n", " <td>0.876237</td>\n", " <td>1</td>\n", " </tr>\n", " <tr>\n", " <th>612</th>\n", " <td>EduardSackinger</td>\n", " <td>0.870400</td>\n", " <td>3</td>\n", " </tr>\n", " <tr>\n", " <th>2413</th>\n", " <td>Y.LeCun</td>\n", " <td>0.868843</td>\n", " <td>2</td>\n", " </tr>\n", " </tbody>\n", "</table>\n", "</div>" ], "text/plain": [ " Author Score Size\n", "2422 YannLeCun 1.000000 11\n", "1717 PatriceSimard 0.999977 8\n", "986 J.S.Denker 0.999581 3\n", "2425 YaserAbu-Mostafa 0.998040 5\n", "1160 JohnS.Denker 0.903560 6\n", "187 AntoninaStarita 0.901699 1\n", "1718 PatriceY.Simard 0.899005 4\n", "560 DiegoSona 0.876237 1\n", "612 EduardSackinger 0.870400 3\n", "2413 Y.LeCun 0.868843 2" ] }, "execution_count": 64, "metadata": {}, "output_type": "execute_result" } ], "source": [ "get_table('YannLeCun')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "As before, we can specify the minimum author size." ] }, { "cell_type": "code", "execution_count": 72, "metadata": {}, "outputs": [ { "data": { "text/html": [ "<div>\n", "<table border=\"1\" class=\"dataframe\">\n", " <thead>\n", " <tr style=\"text-align: right;\">\n", " <th></th>\n", " <th>Author</th>\n", " <th>Score</th>\n", " <th>Size</th>\n", " </tr>\n", " </thead>\n", " <tbody>\n", " <tr>\n", " <th>118</th>\n", " <td>JamesM.Bower</td>\n", " <td>1.000000</td>\n", " <td>10</td>\n", " </tr>\n", " <tr>\n", " <th>44</th>\n", " <td>ChristofKoch</td>\n", " <td>0.999967</td>\n", " <td>24</td>\n", " </tr>\n", " <tr>\n", " <th>182</th>\n", " <td>MatthewA.Wilson</td>\n", " <td>0.999879</td>\n", " <td>3</td>\n", " </tr>\n", " <tr>\n", " <th>157</th>\n", " <td>L.F.Abbott</td>\n", " <td>0.999872</td>\n", " <td>4</td>\n", " </tr>\n", " <tr>\n", " <th>256</th>\n", " <td>StephenP.DeWeerth</td>\n", " <td>0.999869</td>\n", " <td>5</td>\n", " </tr>\n", " <tr>\n", " <th>82</th>\n", " <td>EveMarder</td>\n", " <td>0.999828</td>\n", " <td>3</td>\n", " </tr>\n", " <tr>\n", " <th>96</th>\n", " <td>GirishN.Patel</td>\n", " <td>0.856874</td>\n", " <td>3</td>\n", " </tr>\n", " <tr>\n", " <th>43</th>\n", " <td>ChdstofKoch</td>\n", " <td>0.788195</td>\n", " <td>3</td>\n", " </tr>\n", " <tr>\n", " <th>291</th>\n", " <td>WilliamBialek</td>\n", " <td>0.786987</td>\n", " <td>4</td>\n", " </tr>\n", " <tr>\n", " <th>247</th>\n", " <td>Shih-ChiiLiu</td>\n", " <td>0.781643</td>\n", " <td>3</td>\n", " </tr>\n", " </tbody>\n", "</table>\n", "</div>" ], "text/plain": [ " Author Score Size\n", "118 JamesM.Bower 1.000000 10\n", "44 ChristofKoch 0.999967 24\n", "182 MatthewA.Wilson 0.999879 3\n", "157 L.F.Abbott 0.999872 4\n", "256 StephenP.DeWeerth 0.999869 5\n", "82 EveMarder 0.999828 3\n", "96 GirishN.Patel 0.856874 3\n", "43 ChdstofKoch 0.788195 3\n", "291 WilliamBialek 0.786987 4\n", "247 Shih-ChiiLiu 0.781643 3" ] }, "execution_count": 72, "metadata": {}, "output_type": "execute_result" } ], "source": [ "get_table('JamesM.Bower', smallest_author=3)" ] }, { "cell_type": "markdown", "metadata": { "collapsed": true }, "source": [ "### Serialized corpora\n", "\n", "The `AuthorTopicModel` class accepts serialized corpora, that is, corpora that are stored on the hard-drive rather than in memory. This is usually done when the corpus is too big to fit in memory. There are, however, some caveats to this functionality, which we will discuss here. As these caveats make this functionality less than ideal, it may be improved in the future.\n", "\n", "It is not necessary to read this section if you don't intend to use serialized corpora.\n", "\n", "In the following, an explanation, followed by an example and a summarization will be given.\n", "\n", "If the corpus is serialized, the user must specify `serialized=True`. Any input corpus can then be any type of iterable or generator.\n", "\n", "The model will then take the input corpus and serialize it in the `MmCorpus` format, which is [supported in Gensim](https://radimrehurek.com/gensim/corpora/mmcorpus.html).\n", "\n", "The user must specify the path where the model should serialize all input documents, for example `serialization_path='/tmp/model_serializer.mm'`. To avoid accidentally overwriting some important data, the model will raise an error if there already exists a file at `serialization_path`; in this case, either choose another path, or delete the old file.\n", "\n", "When you want to train on new data, and call `model.update(corpus, author2doc)`, all the old data and the new data have to be re-serialized. This can of course be quite computationally demanding, so it is recommended that you do this *only* when necessary; that is, wait until you have as much new data as possible to update, rather than updating the model for every new document." ] }, { "cell_type": "code", "execution_count": 34, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "CPU times: user 17.6 s, sys: 540 ms, total: 18.1 s\n", "Wall time: 17.7 s\n" ] } ], "source": [ "%time model_ser = AuthorTopicModel(corpus=corpus, num_topics=10, id2word=dictionary.id2token, \\\n", " author2doc=author2doc, random_state=1, serialized=True, \\\n", " serialization_path='/tmp/model_serialization.mm')" ] }, { "cell_type": "code", "execution_count": 35, "metadata": {}, "outputs": [], "source": [ "# Delete the file, once you're done using it.\n", "import os\n", "os.remove('/tmp/model_serialization.mm')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "In summary, when using serialized corpora:\n", "* Set `serialized=True`.\n", "* Set `serialization_path` to a path that doesn't already contain a file.\n", "* Wait until you have lots of data before you call `model.update(corpus, author2doc)`.\n", "* When done, delete the file at `serialization_path` if it's not needed anymore." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## What to try next\n", "\n", "Try the model on one of the datasets in the [StackExchange data dump](https://archive.org/details/stackexchange). You can treat the tags on the posts as authors and train a \"tag-topic\" model. There are many different categories, from statistics to cooking to philosophy, so you can pick on that you like. You can even try your hand at a [Kaggle competition](https://www.kaggle.com/c/transfer-learning-on-stack-exchange-tags) that uses tags in this dataset.\n" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.7.1" } }, "nbformat": 4, "nbformat_minor": 1 }
225,681
Python
.py
1,691
127.881727
162,926
0.712862
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,929
lda_training_tips.ipynb
piskvorky_gensim/docs/notebooks/lda_training_tips.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "This tutorial has moved.\n", "\n", "Please see https://radimrehurek.com/gensim/auto_examples/." ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.6.8" } }, "nbformat": 4, "nbformat_minor": 2 }
626
Python
.py
34
14.970588
64
0.559122
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,930
doc2vec-wikipedia.ipynb
piskvorky_gensim/docs/notebooks/doc2vec-wikipedia.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Training Doc2Vec on Wikipedia articles" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "This notebook replicates the **Document Embedding with Paragraph Vectors** paper, http://arxiv.org/abs/1507.07998.\n", "\n", "In that paper, the authors only showed results from the DBOW (\"distributed bag of words\") mode, trained on the English Wikipedia. Here we replicate this experiment using not only DBOW, but also the DM (\"distributed memory\") mode of the Paragraph Vector algorithm aka Doc2Vec." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Basic setup" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Let's import the necessary modules and set up logging. The code below assumes Python 3.7+ and Gensim 4.0+." ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "import logging\n", "import multiprocessing\n", "from pprint import pprint\n", "\n", "import smart_open\n", "from gensim.corpora.wikicorpus import WikiCorpus, tokenize\n", "from gensim.models.doc2vec import Doc2Vec, TaggedDocument\n", "\n", "logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Preparing the corpus" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "First, download the dump of all Wikipedia articles from [here](http://download.wikimedia.org/enwiki/latest). You want the file named `enwiki-latest-pages-articles.xml.bz2`.\n", "\n", "Second, convert that Wikipedia article dump from the arcane Wikimedia XML format into a plain text file. This will make the subsequent training faster and also allow easy inspection of the data = \"input eyeballing\".\n", "\n", "We'll preprocess each article at the same time, normalizing its text to lowercase, splitting into tokens, etc. Below I use a regexp tokenizer that simply looks for alphabetic sequences as tokens. But feel free to adapt the text preprocessing to your own domain. High quality preprocessing is often critical for the final pipeline accuracy – garbage in, garbage out!" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "2022-04-16 11:23:20,663 : INFO : processing article #0: 'Anarchism' (6540 tokens)\n", "2022-04-16 11:30:53,798 : INFO : processing article #500000: 'Onward Muslim Soldiers' (517 tokens)\n", "2022-04-16 11:36:14,662 : INFO : processing article #1000000: 'Push Upstairs' (354 tokens)\n", "2022-04-16 11:40:59,785 : INFO : processing article #1500000: 'Small nucleolar RNA Z278' (113 tokens)\n", "2022-04-16 11:45:58,630 : INFO : processing article #2000000: '1925–26 Boston Bruins season' (556 tokens)\n", "2022-04-16 11:51:03,737 : INFO : processing article #2500000: 'Tessier, Saskatchewan' (119 tokens)\n", "2022-04-16 11:56:20,254 : INFO : processing article #3000000: 'Sebezhsky District' (908 tokens)\n", "2022-04-16 12:01:59,089 : INFO : processing article #3500000: 'Niko Peleshi' (248 tokens)\n", "2022-04-16 12:07:23,184 : INFO : processing article #4000000: 'Kudoa gunterae' (109 tokens)\n", "2022-04-16 12:13:08,024 : INFO : processing article #4500000: 'Danko (singer)' (699 tokens)\n", "2022-04-16 12:19:33,734 : INFO : processing article #5000000: 'Lada West Togliatti' (253 tokens)\n", "2022-04-16 12:22:20,928 : INFO : finished iterating over Wikipedia corpus of 5205168 documents with 3016298486 positions (total 21961341 articles, 3093120544 positions before pruning articles shorter than 50 words)\n" ] } ], "source": [ "wiki = WikiCorpus(\n", " \"enwiki-latest-pages-articles.xml.bz2\", # path to the file you downloaded above\n", " tokenizer_func=tokenize, # simple regexp; plug in your own tokenizer here\n", " metadata=True, # also return the article titles and ids when parsing\n", " dictionary={}, # don't start processing the data yet\n", ")\n", "\n", "with smart_open.open(\"wiki.txt.gz\", \"w\", encoding='utf8') as fout:\n", " for article_no, (content, (page_id, title)) in enumerate(wiki.get_texts()):\n", " title = ' '.join(title.split())\n", " if article_no % 500000 == 0:\n", " logging.info(\"processing article #%i: %r (%i tokens)\", article_no, title, len(content))\n", " fout.write(f\"{title}\\t{' '.join(content)}\\n\") # title_of_article [TAB] words of the article" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The above took about 1 hour and created a new ~5.8 GB file named `wiki.txt.gz`. Note the output text was transparently compressed into `.gz` (GZIP) right away, using the [smart_open](https://github.com/RaRe-Technologies/smart_open) library, to save on disk space.\n", "\n", "Next we'll set up a document stream to load the preprocessed articles from `wiki.txt.gz` one by one, in the format expected by Doc2Vec, ready for training. We don't want to load everything into RAM at once, because that would blow up the memory. And it is not necessary – Gensim can handle streamed input training data:" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [], "source": [ "class TaggedWikiCorpus:\n", " def __init__(self, wiki_text_path):\n", " self.wiki_text_path = wiki_text_path\n", " \n", " def __iter__(self):\n", " for line in smart_open.open(self.wiki_text_path, encoding='utf8'):\n", " title, words = line.split('\\t')\n", " yield TaggedDocument(words=words.split(), tags=[title])\n", "\n", "documents = TaggedWikiCorpus('wiki.txt.gz') # A streamed iterable; nothing in RAM yet." ] }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "['Anarchism'] : anarchism is political philosophy and movement that is sceptical of authority and rejects all involuntary coercive forms of hierarchy anarchism calls for the abolition of the state which it holds to be unnecessary undesirable and harmful as historically left wing movement placed on the farthest left of the political spectrum ……… criticism of philosophical anarchism defence of philosophical anarchism stating that both kinds of anarchism philosophical and political anarchism are philosophical and political claims anarchistic popular fiction novel an argument for philosophical anarchism external links anarchy archives anarchy archives is an online research center on the history and theory of anarchism\n" ] } ], "source": [ "# Load and print the first preprocessed Wikipedia document, as a sanity check = \"input eyeballing\".\n", "first_doc = next(iter(documents))\n", "print(first_doc.tags, ': ', ' '.join(first_doc.words[:50] + ['………'] + first_doc.words[-50:]))" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The document seems legit so let's move on to finally training some Doc2vec models." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Training Doc2Vec" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The original paper had a vocabulary size of 915,715 word types, so we'll try to match it by setting `max_final_vocab` to 1,000,000 in the Doc2vec constructor.\n", "\n", "Other critical parameters were left unspecified in the paper, so we'll go with a window size of eight (a prediction window of 8 tokens to either side). It looks like the authors tried vector dimensionality of 100, 300, 1,000 & 10,000 in the paper (with 10k dims performing the best), but I'll only train with 200 dimensions here, to keep the RAM in check on my laptop.\n", "\n", "Feel free to tinker with these values yourself if you like:" ] }, { "cell_type": "code", "execution_count": 5, "metadata": { "scrolled": false }, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "2022-04-18 12:05:46,344 : INFO : Doc2Vec lifecycle event {'params': 'Doc2Vec<dbow+w,d200,n5,w8,mc5,s0.001,t20>', 'datetime': '2022-04-18T12:05:46.344471', 'gensim': '4.1.3.dev0', 'python': '3.8.10 (default, Nov 26 2021, 20:14:08) \\n[GCC 9.3.0]', 'platform': 'Linux-5.4.0-94-generic-x86_64-with-glibc2.29', 'event': 'created'}\n", "2022-04-18 12:05:46,345 : INFO : Doc2Vec lifecycle event {'params': 'Doc2Vec<dm/m,d200,n5,w8,mc5,s0.001,t20>', 'datetime': '2022-04-18T12:05:46.345716', 'gensim': '4.1.3.dev0', 'python': '3.8.10 (default, Nov 26 2021, 20:14:08) \\n[GCC 9.3.0]', 'platform': 'Linux-5.4.0-94-generic-x86_64-with-glibc2.29', 'event': 'created'}\n" ] } ], "source": [ "workers = 20 # multiprocessing.cpu_count() - 1 # leave one core for the OS & other stuff\n", "\n", "# PV-DBOW: paragraph vector in distributed bag of words mode\n", "model_dbow = Doc2Vec(\n", " dm=0, dbow_words=1, # dbow_words=1 to train word vectors at the same time too, not only DBOW\n", " vector_size=200, window=8, epochs=10, workers=workers, max_final_vocab=1000000,\n", ")\n", "\n", "# PV-DM: paragraph vector in distributed memory mode\n", "model_dm = Doc2Vec(\n", " dm=1, dm_mean=1, # use average of context word vectors to train DM\n", " vector_size=200, window=8, epochs=10, workers=workers, max_final_vocab=1000000,\n", ")" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Run one pass through the Wikipedia corpus, to collect the 1M vocabulary and initialize the doc2vec models:" ] }, { "cell_type": "code", "execution_count": 6, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "2022-04-18 12:05:47,311 : INFO : collecting all words and their counts\n", "2022-04-18 12:05:47,313 : INFO : PROGRESS: at example #0, processed 0 words (0 words/s), 0 word types, 0 tags\n", "2022-04-18 12:07:35,880 : INFO : PROGRESS: at example #500000, processed 656884578 words (6050478 words/s), 3221051 word types, 500000 tags\n", "2022-04-18 12:08:38,784 : INFO : PROGRESS: at example #1000000, processed 1021477892 words (5796084 words/s), 4478830 word types, 1000000 tags\n", "2022-04-18 12:09:29,607 : INFO : PROGRESS: at example #1500000, processed 1308608477 words (5649726 words/s), 5419923 word types, 1500000 tags\n", "2022-04-18 12:10:13,477 : INFO : PROGRESS: at example #2000000, processed 1554211349 words (5598537 words/s), 6190970 word types, 2000000 tags\n", "2022-04-18 12:10:56,549 : INFO : PROGRESS: at example #2500000, processed 1794853915 words (5587147 words/s), 6943275 word types, 2500000 tags\n", "2022-04-18 12:11:39,668 : INFO : PROGRESS: at example #3000000, processed 2032520202 words (5511955 words/s), 7668721 word types, 3000000 tags\n", "2022-04-18 12:12:23,192 : INFO : PROGRESS: at example #3500000, processed 2268859232 words (5430192 words/s), 8352590 word types, 3500000 tags\n", "2022-04-18 12:13:02,526 : INFO : PROGRESS: at example #4000000, processed 2493668037 words (5715482 words/s), 8977844 word types, 4000000 tags\n", "2022-04-18 12:13:42,550 : INFO : PROGRESS: at example #4500000, processed 2709484503 words (5392235 words/s), 9612299 word types, 4500000 tags\n", "2022-04-18 12:14:21,813 : INFO : PROGRESS: at example #5000000, processed 2932680226 words (5684768 words/s), 10226832 word types, 5000000 tags\n", "2022-04-18 12:14:51,346 : INFO : collected 10469247 word types and 5205168 unique tags from a corpus of 5205168 examples and 3016298486 words\n", "2022-04-18 12:14:55,076 : INFO : Doc2Vec lifecycle event {'msg': 'max_final_vocab=1000000 and min_count=5 resulted in calc_min_count=23, effective_min_count=23', 'datetime': '2022-04-18T12:14:55.076153', 'gensim': '4.1.3.dev0', 'python': '3.8.10 (default, Nov 26 2021, 20:14:08) \\n[GCC 9.3.0]', 'platform': 'Linux-5.4.0-94-generic-x86_64-with-glibc2.29', 'event': 'prepare_vocab'}\n", "2022-04-18 12:14:55,076 : INFO : Creating a fresh vocabulary\n", "2022-04-18 12:14:58,906 : INFO : Doc2Vec lifecycle event {'msg': 'effective_min_count=23 retains 996522 unique words (9.52% of original 10469247, drops 9472725)', 'datetime': '2022-04-18T12:14:58.906148', 'gensim': '4.1.3.dev0', 'python': '3.8.10 (default, Nov 26 2021, 20:14:08) \\n[GCC 9.3.0]', 'platform': 'Linux-5.4.0-94-generic-x86_64-with-glibc2.29', 'event': 'prepare_vocab'}\n", "2022-04-18 12:14:58,906 : INFO : Doc2Vec lifecycle event {'msg': 'effective_min_count=23 leaves 2988436691 word corpus (99.08% of original 3016298486, drops 27861795)', 'datetime': '2022-04-18T12:14:58.906730', 'gensim': '4.1.3.dev0', 'python': '3.8.10 (default, Nov 26 2021, 20:14:08) \\n[GCC 9.3.0]', 'platform': 'Linux-5.4.0-94-generic-x86_64-with-glibc2.29', 'event': 'prepare_vocab'}\n", "2022-04-18 12:15:01,747 : INFO : deleting the raw counts dictionary of 10469247 items\n", "2022-04-18 12:15:01,860 : INFO : sample=0.001 downsamples 23 most-common words\n", "2022-04-18 12:15:01,861 : INFO : Doc2Vec lifecycle event {'msg': 'downsampling leaves estimated 2431447874.2898555 word corpus (81.4%% of prior 2988436691)', 'datetime': '2022-04-18T12:15:01.861332', 'gensim': '4.1.3.dev0', 'python': '3.8.10 (default, Nov 26 2021, 20:14:08) \\n[GCC 9.3.0]', 'platform': 'Linux-5.4.0-94-generic-x86_64-with-glibc2.29', 'event': 'prepare_vocab'}\n", "2022-04-18 12:15:07,001 : INFO : estimated required memory for 996522 words and 200 dimensions: 7297864200 bytes\n", "2022-04-18 12:15:07,002 : INFO : resetting layer weights\n", "2022-04-18 12:15:10,247 : INFO : resetting layer weights\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ "Doc2Vec<dbow+w,d200,n5,w8,mc5,s0.001,t20>\n", "Doc2Vec<dm/m,d200,n5,w8,mc5,s0.001,t20>\n" ] } ], "source": [ "model_dbow.build_vocab(documents, progress_per=500000)\n", "print(model_dbow)\n", "\n", "# Save some time by copying the vocabulary structures from the DBOW model to the DM model.\n", "# Both models are built on top of exactly the same data, so there's no need to repeat the vocab-building step.\n", "model_dm.reset_from(model_dbow)\n", "print(model_dm)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Now we’re ready to train Doc2Vec on the entirety of the English Wikipedia. **Warning!** Training this DBOW model takes ~14 hours, and DM ~6 hours, on my 2020 Linux machine." ] }, { "cell_type": "code", "execution_count": 7, "metadata": { "scrolled": true }, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "2022-04-18 12:15:13,503 : INFO : Doc2Vec lifecycle event {'msg': 'training model with 20 workers on 996522 vocabulary and 200 features, using sg=1 hs=0 sample=0.001 negative=5 window=8 shrink_windows=True', 'datetime': '2022-04-18T12:15:13.503265', 'gensim': '4.1.3.dev0', 'python': '3.8.10 (default, Nov 26 2021, 20:14:08) \\n[GCC 9.3.0]', 'platform': 'Linux-5.4.0-94-generic-x86_64-with-glibc2.29', 'event': 'train'}\n", "2022-04-18 12:15:14,566 : INFO : EPOCH 0 - PROGRESS: at 0.00% examples, 299399 words/s, in_qsize 38, out_qsize 1\n", "2022-04-18 12:45:14,574 : INFO : EPOCH 0 - PROGRESS: at 20.47% examples, 469454 words/s, in_qsize 39, out_qsize 0\n", "2022-04-18 13:15:14,578 : INFO : EPOCH 0 - PROGRESS: at 61.04% examples, 470927 words/s, in_qsize 39, out_qsize 0\n", "2022-04-18 13:40:53,256 : INFO : EPOCH 0: training on 3016298486 raw words (2421756111 effective words) took 5139.7s, 471184 effective words/s\n", "2022-04-18 13:40:54,274 : INFO : EPOCH 1 - PROGRESS: at 0.00% examples, 401497 words/s, in_qsize 39, out_qsize 0\n", "2022-04-18 14:10:54,283 : INFO : EPOCH 1 - PROGRESS: at 21.90% examples, 488616 words/s, in_qsize 39, out_qsize 0\n", "2022-04-18 14:40:54,290 : INFO : EPOCH 1 - PROGRESS: at 63.73% examples, 485374 words/s, in_qsize 40, out_qsize 0\n", "2022-04-18 15:04:11,566 : INFO : EPOCH 1: training on 3016298486 raw words (2421755370 effective words) took 4998.3s, 484515 effective words/s\n", "2022-04-18 15:04:12,590 : INFO : EPOCH 2 - PROGRESS: at 0.00% examples, 413109 words/s, in_qsize 38, out_qsize 2\n", "2022-04-18 15:34:12,592 : INFO : EPOCH 2 - PROGRESS: at 21.94% examples, 489186 words/s, in_qsize 39, out_qsize 0\n", "2022-04-18 16:04:12,595 : INFO : EPOCH 2 - PROGRESS: at 64.02% examples, 487045 words/s, in_qsize 39, out_qsize 0\n", "2022-04-18 16:27:13,124 : INFO : EPOCH 2: training on 3016298486 raw words (2421749843 effective words) took 4981.6s, 486143 effective words/s\n", "2022-04-18 16:27:14,132 : INFO : EPOCH 3 - PROGRESS: at 0.00% examples, 425720 words/s, in_qsize 37, out_qsize 0\n", "2022-04-18 16:57:14,170 : INFO : EPOCH 3 - PROGRESS: at 22.16% examples, 492364 words/s, in_qsize 39, out_qsize 0\n", "2022-04-18 17:27:14,181 : INFO : EPOCH 3 - PROGRESS: at 64.36% examples, 489039 words/s, in_qsize 39, out_qsize 0\n", "2022-04-18 17:49:58,875 : INFO : EPOCH 3: training on 3016298486 raw words (2421759041 effective words) took 4965.7s, 487693 effective words/s\n", "2022-04-18 17:49:59,888 : INFO : EPOCH 4 - PROGRESS: at 0.00% examples, 405295 words/s, in_qsize 39, out_qsize 0\n", "2022-04-18 18:19:59,893 : INFO : EPOCH 4 - PROGRESS: at 21.95% examples, 489379 words/s, in_qsize 39, out_qsize 0\n", "2022-04-18 18:49:59,917 : INFO : EPOCH 4 - PROGRESS: at 63.77% examples, 485582 words/s, in_qsize 39, out_qsize 0\n", "2022-04-18 19:13:19,358 : INFO : EPOCH 4: training on 3016298486 raw words (2421753794 effective words) took 5000.5s, 484304 effective words/s\n", "2022-04-18 19:13:20,362 : INFO : EPOCH 5 - PROGRESS: at 0.00% examples, 417569 words/s, in_qsize 38, out_qsize 1\n", "2022-04-18 19:43:20,366 : INFO : EPOCH 5 - PROGRESS: at 22.18% examples, 492529 words/s, in_qsize 40, out_qsize 0\n", "2022-04-18 20:13:20,367 : INFO : EPOCH 5 - PROGRESS: at 64.36% examples, 489058 words/s, in_qsize 39, out_qsize 1\n", "2022-04-18 20:36:01,806 : INFO : EPOCH 5: training on 3016298486 raw words (2421774390 effective words) took 4962.4s, 488021 effective words/s\n", "2022-04-18 20:36:02,845 : INFO : EPOCH 6 - PROGRESS: at 0.00% examples, 376602 words/s, in_qsize 39, out_qsize 0\n", "2022-04-18 21:06:02,845 : INFO : EPOCH 6 - PROGRESS: at 21.77% examples, 486989 words/s, in_qsize 39, out_qsize 0\n", "2022-04-18 21:36:02,858 : INFO : EPOCH 6 - PROGRESS: at 63.44% examples, 483745 words/s, in_qsize 40, out_qsize 0\n", "2022-04-18 21:59:40,920 : INFO : EPOCH 6: training on 3016298486 raw words (2421753569 effective words) took 5019.1s, 482507 effective words/s\n", "2022-04-18 21:59:41,945 : INFO : EPOCH 7 - PROGRESS: at 0.00% examples, 410164 words/s, in_qsize 38, out_qsize 1\n", "2022-04-18 22:29:41,989 : INFO : EPOCH 7 - PROGRESS: at 22.09% examples, 491334 words/s, in_qsize 39, out_qsize 0\n", "2022-04-18 22:59:42,000 : INFO : EPOCH 7 - PROGRESS: at 64.16% examples, 487826 words/s, in_qsize 39, out_qsize 0\n", "2022-04-18 23:22:40,504 : INFO : EPOCH 7: training on 3016298486 raw words (2421770259 effective words) took 4979.6s, 486340 effective words/s\n", "2022-04-18 23:22:41,509 : INFO : EPOCH 8 - PROGRESS: at 0.00% examples, 294981 words/s, in_qsize 39, out_qsize 0\n", "2022-04-18 23:52:41,532 : INFO : EPOCH 8 - PROGRESS: at 21.64% examples, 485279 words/s, in_qsize 40, out_qsize 0\n", "2022-04-19 00:22:41,533 : INFO : EPOCH 8 - PROGRESS: at 63.05% examples, 481687 words/s, in_qsize 39, out_qsize 0\n", "2022-04-19 00:46:43,879 : INFO : EPOCH 8: training on 3016298486 raw words (2421753439 effective words) took 5043.4s, 480185 effective words/s\n", "2022-04-19 00:46:44,905 : INFO : EPOCH 9 - PROGRESS: at 0.00% examples, 383709 words/s, in_qsize 39, out_qsize 0\n", "2022-04-19 01:16:44,926 : INFO : EPOCH 9 - PROGRESS: at 21.82% examples, 487579 words/s, in_qsize 40, out_qsize 0\n", "2022-04-19 01:46:44,928 : INFO : EPOCH 9 - PROGRESS: at 63.44% examples, 483731 words/s, in_qsize 39, out_qsize 0\n", "2022-04-19 02:10:25,029 : INFO : EPOCH 9: training on 3016298486 raw words (2421762745 effective words) took 5021.1s, 482313 effective words/s\n", "2022-04-19 02:10:25,030 : INFO : Doc2Vec lifecycle event {'msg': 'training on 30162984860 raw words (24217588561 effective words) took 50111.5s, 483274 effective words/s', 'datetime': '2022-04-19T02:10:25.030386', 'gensim': '4.1.3.dev0', 'python': '3.8.10 (default, Nov 26 2021, 20:14:08) \\n[GCC 9.3.0]', 'platform': 'Linux-5.4.0-94-generic-x86_64-with-glibc2.29', 'event': 'train'}\n" ] } ], "source": [ "# Train DBOW doc2vec incl. word vectors.\n", "# Report progress every ½ hour.\n", "model_dbow.train(documents, total_examples=model_dbow.corpus_count, epochs=model_dbow.epochs, report_delay=30*60)" ] }, { "cell_type": "code", "execution_count": 8, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "2022-04-19 02:10:25,033 : INFO : Doc2Vec lifecycle event {'msg': 'training model with 20 workers on 996522 vocabulary and 200 features, using sg=0 hs=0 sample=0.001 negative=5 window=8 shrink_windows=True', 'datetime': '2022-04-19T02:10:25.033682', 'gensim': '4.1.3.dev0', 'python': '3.8.10 (default, Nov 26 2021, 20:14:08) \\n[GCC 9.3.0]', 'platform': 'Linux-5.4.0-94-generic-x86_64-with-glibc2.29', 'event': 'train'}\n", "2022-04-19 02:10:26,039 : INFO : EPOCH 0 - PROGRESS: at 0.01% examples, 1154750 words/s, in_qsize 0, out_qsize 2\n", "2022-04-19 02:40:26,040 : INFO : EPOCH 0 - PROGRESS: at 83.97% examples, 1182619 words/s, in_qsize 39, out_qsize 0\n", "2022-04-19 02:44:58,625 : INFO : EPOCH 0: training on 3016298486 raw words (2421749575 effective words) took 2073.6s, 1167903 effective words/s\n", "2022-04-19 02:44:59,635 : INFO : EPOCH 1 - PROGRESS: at 0.01% examples, 1565065 words/s, in_qsize 0, out_qsize 0\n", "2022-04-19 03:14:59,636 : INFO : EPOCH 1 - PROGRESS: at 84.22% examples, 1185115 words/s, in_qsize 39, out_qsize 0\n", "2022-04-19 03:19:27,814 : INFO : EPOCH 1: training on 3016298486 raw words (2421738810 effective words) took 2069.2s, 1170383 effective words/s\n", "2022-04-19 03:19:28,819 : INFO : EPOCH 2 - PROGRESS: at 0.01% examples, 1582102 words/s, in_qsize 0, out_qsize 0\n", "2022-04-19 03:49:28,822 : INFO : EPOCH 2 - PROGRESS: at 84.33% examples, 1186338 words/s, in_qsize 39, out_qsize 0\n", "2022-04-19 03:53:55,901 : INFO : EPOCH 2: training on 3016298486 raw words (2421754027 effective words) took 2068.1s, 1171014 effective words/s\n", "2022-04-19 03:53:56,905 : INFO : EPOCH 3 - PROGRESS: at 0.01% examples, 1586215 words/s, in_qsize 0, out_qsize 0\n", "2022-04-19 04:23:56,914 : INFO : EPOCH 3 - PROGRESS: at 84.30% examples, 1186028 words/s, in_qsize 39, out_qsize 0\n", "2022-04-19 04:28:23,932 : INFO : EPOCH 3: training on 3016298486 raw words (2421734506 effective words) took 2068.0s, 1171036 effective words/s\n", "2022-04-19 04:28:24,943 : INFO : EPOCH 4 - PROGRESS: at 0.01% examples, 1594202 words/s, in_qsize 0, out_qsize 0\n", "2022-04-19 04:58:24,946 : INFO : EPOCH 4 - PROGRESS: at 84.53% examples, 1188348 words/s, in_qsize 39, out_qsize 0\n", "2022-04-19 05:02:49,190 : INFO : EPOCH 4: training on 3016298486 raw words (2421739011 effective words) took 2065.3s, 1172611 effective words/s\n", "2022-04-19 05:02:50,203 : INFO : EPOCH 5 - PROGRESS: at 0.01% examples, 1590285 words/s, in_qsize 0, out_qsize 0\n", "2022-04-19 05:32:50,205 : INFO : EPOCH 5 - PROGRESS: at 84.51% examples, 1188165 words/s, in_qsize 38, out_qsize 0\n", "2022-04-19 05:37:12,922 : INFO : EPOCH 5: training on 3016298486 raw words (2421759651 effective words) took 2063.7s, 1173488 effective words/s\n", "2022-04-19 05:37:13,928 : INFO : EPOCH 6 - PROGRESS: at 0.01% examples, 1574494 words/s, in_qsize 0, out_qsize 0\n", "2022-04-19 06:07:13,930 : INFO : EPOCH 6 - PROGRESS: at 84.61% examples, 1189231 words/s, in_qsize 40, out_qsize 0\n", "2022-04-19 06:11:35,588 : INFO : EPOCH 6: training on 3016298486 raw words (2421751669 effective words) took 2062.7s, 1174090 effective words/s\n", "2022-04-19 06:11:36,605 : INFO : EPOCH 7 - PROGRESS: at 0.01% examples, 1584768 words/s, in_qsize 0, out_qsize 0\n", "2022-04-19 06:41:36,617 : INFO : EPOCH 7 - PROGRESS: at 84.50% examples, 1188066 words/s, in_qsize 39, out_qsize 0\n", "2022-04-19 06:46:00,286 : INFO : EPOCH 7: training on 3016298486 raw words (2421751802 effective words) took 2064.7s, 1172935 effective words/s\n", "2022-04-19 06:46:01,290 : INFO : EPOCH 8 - PROGRESS: at 0.01% examples, 1610826 words/s, in_qsize 0, out_qsize 0\n", "2022-04-19 07:16:01,295 : INFO : EPOCH 8 - PROGRESS: at 84.71% examples, 1190249 words/s, in_qsize 39, out_qsize 0\n", "2022-04-19 07:20:20,193 : INFO : EPOCH 8: training on 3016298486 raw words (2421731383 effective words) took 2059.9s, 1175653 effective words/s\n", "2022-04-19 07:20:21,198 : INFO : EPOCH 9 - PROGRESS: at 0.01% examples, 1591209 words/s, in_qsize 0, out_qsize 0\n", "2022-04-19 07:50:21,200 : INFO : EPOCH 9 - PROGRESS: at 84.65% examples, 1189549 words/s, in_qsize 39, out_qsize 0\n", "2022-04-19 07:54:42,812 : INFO : EPOCH 9: training on 3016298486 raw words (2421765551 effective words) took 2062.6s, 1174124 effective words/s\n", "2022-04-19 07:54:42,813 : INFO : Doc2Vec lifecycle event {'msg': 'training on 30162984860 raw words (24217475985 effective words) took 20657.8s, 1172317 effective words/s', 'datetime': '2022-04-19T07:54:42.813436', 'gensim': '4.1.3.dev0', 'python': '3.8.10 (default, Nov 26 2021, 20:14:08) \\n[GCC 9.3.0]', 'platform': 'Linux-5.4.0-94-generic-x86_64-with-glibc2.29', 'event': 'train'}\n" ] } ], "source": [ "# Train DM doc2vec.\n", "model_dm.train(documents, total_examples=model_dm.corpus_count, epochs=model_dm.epochs, report_delay=30*60)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Finding similar documents" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "After that, let's test both models! The DBOW model shows similar results as the original paper.\n", "\n", "First, calculate the most similar Wikipedia articles to the \"Machine learning\" article. The calculated word vectors and document vectors are stored separately, in `model.wv` and `model.dv` respectively:" ] }, { "cell_type": "code", "execution_count": 9, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Doc2Vec<dbow+w,d200,n5,w8,mc5,s0.001,t20>\n", "[('Supervised learning', 0.7491602301597595),\n", " ('Pattern recognition', 0.7462332844734192),\n", " ('Artificial neural network', 0.7142727971076965),\n", " ('Data mining', 0.6930587887763977),\n", " ('Computer mathematics', 0.686907947063446),\n", " ('Deep learning', 0.6868096590042114),\n", " ('Multi-task learning', 0.6859176158905029),\n", " ('Outline of computer science', 0.6858125925064087),\n", " ('Boosting (machine learning)', 0.6807966828346252),\n", " ('Linear classifier', 0.6807013154029846),\n", " ('Learning classifier system', 0.679194450378418),\n", " ('Knowledge retrieval', 0.6765366196632385),\n", " ('Perceptron', 0.675654947757721),\n", " ('Incremental learning', 0.6712607741355896),\n", " ('Support-vector machine', 0.6711161136627197),\n", " ('Feature selection', 0.6696343421936035),\n", " ('Image segmentation', 0.6688867211341858),\n", " ('Neural network', 0.6670624017715454),\n", " ('Reinforcement learning', 0.6666402220726013),\n", " ('Feature extraction', 0.6657401323318481)]\n", "Doc2Vec<dm/m,d200,n5,w8,mc5,s0.001,t20>\n", "[('Pattern recognition', 0.7151365280151367),\n", " ('Supervised learning', 0.7006939053535461),\n", " ('Multi-task learning', 0.6899284720420837),\n", " ('Semi-supervised learning', 0.674682080745697),\n", " ('Statistical classification', 0.6649825572967529),\n", " ('Deep learning', 0.6647047400474548),\n", " ('Artificial neural network', 0.66275954246521),\n", " ('Feature selection', 0.6612880825996399),\n", " ('Statistical learning theory', 0.6528184413909912),\n", " ('Naive Bayes classifier', 0.6506016850471497),\n", " ('Automatic image annotation', 0.6491228342056274),\n", " ('Regularization (mathematics)', 0.6452057957649231),\n", " ('Early stopping', 0.6439507007598877),\n", " ('Support-vector machine', 0.64285808801651),\n", " ('Meta learning (computer science)', 0.6418778300285339),\n", " ('Linear classifier', 0.6391816735267639),\n", " ('Empirical risk minimization', 0.6339778900146484),\n", " ('Anomaly detection', 0.6328380703926086),\n", " ('Predictive Model Markup Language', 0.6314322352409363),\n", " ('Learning classifier system', 0.6307871341705322)]\n" ] } ], "source": [ "for model in [model_dbow, model_dm]:\n", " print(model)\n", " pprint(model.dv.most_similar(positive=[\"Machine learning\"], topn=20))" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Both results seem similar and match the results from the paper's Table 1, although not exactly. This is because we don't know the exact parameters of the original implementation (see above). And also because we're training the model 7 years later and the Wikipedia content has changed in the meantime.\n", "\n", "Now following the paper's Table 2a), let's calculate the most similar Wikipedia entries to \"Lady Gaga\" using Paragraph Vector:" ] }, { "cell_type": "code", "execution_count": 10, "metadata": { "scrolled": false }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Doc2Vec<dbow+w,d200,n5,w8,mc5,s0.001,t20>\n", "[('Katy Perry', 0.7450265884399414),\n", " ('Miley Cyrus', 0.7275323867797852),\n", " ('Ariana Grande', 0.7223592400550842),\n", " ('Adele', 0.6982873678207397),\n", " ('Taylor Swift', 0.6901045441627502),\n", " ('Demi Lovato', 0.6819911003112793),\n", " ('Adam Lambert', 0.6552075147628784),\n", " ('Nicki Minaj', 0.6513625383377075),\n", " ('Selena Gomez', 0.6427122354507446),\n", " ('Rihanna', 0.6323978304862976)]\n", "Doc2Vec<dm/m,d200,n5,w8,mc5,s0.001,t20>\n", "[('Born This Way (album)', 0.6612793803215027),\n", " ('Artpop', 0.6428781747817993),\n", " ('Beautiful, Dirty, Rich', 0.6408763527870178),\n", " ('Lady Gaga videography', 0.6143141388893127),\n", " ('Lady Gaga discography', 0.6102882027626038),\n", " ('Katy Perry', 0.6046711802482605),\n", " ('Beyoncé', 0.6015700697898865),\n", " ('List of Lady Gaga live performances', 0.5977909564971924),\n", " ('Artpop (song)', 0.5930275917053223),\n", " ('Born This Way (song)', 0.5911758542060852)]\n" ] } ], "source": [ "for model in [model_dbow, model_dm]:\n", " print(model)\n", " pprint(model.dv.most_similar(positive=[\"Lady Gaga\"], topn=10))" ] }, { "cell_type": "markdown", "metadata": { "collapsed": true }, "source": [ "The DBOW results are in line with what the paper shows in Table 2a), revealing similar singers in the U.S.\n", "\n", "Interestingly, the DM results seem to capture more \"fact about Lady Gaga\" (her albums, trivia), whereas DBOW recovered \"similar artists\".\n", "\n", "**Finally, let's do some of the wilder arithmetics that vectors embeddings are famous for**. What are the entries most similar to \"Lady Gaga\" - \"American\" + \"Japanese\"? Table 2b) in the paper.\n", "\n", "Note that \"American\" and \"Japanese\" are word vectors, but they live in the same space as the document vectors so we can add / subtract them at will, for some interesting results. All word vectors were already lowercased by our tokenizer above, so we look for the lowercased version here:" ] }, { "cell_type": "code", "execution_count": 11, "metadata": { "scrolled": false }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Doc2Vec<dbow+w,d200,n5,w8,mc5,s0.001,t20>\n", "[('Ayumi Hamasaki', 0.6339365839958191),\n", " ('Katy Perry', 0.5903329849243164),\n", " ('2NE1', 0.5886631608009338),\n", " (\"Girls' Generation\", 0.5769038796424866),\n", " ('Flying Easy Loving Crazy', 0.5748921036720276),\n", " ('Love Life 2', 0.5738793611526489),\n", " ('Ariana Grande', 0.5715743899345398),\n", " ('Game (Perfume album)', 0.569789707660675),\n", " ('We Are \"Lonely Girl\"', 0.5696560740470886),\n", " ('H (Ayumi Hamasaki EP)', 0.5691372156143188)]\n", "Doc2Vec<dm/m,d200,n5,w8,mc5,s0.001,t20>\n", "[('Radwimps', 0.548571765422821),\n", " ('Chisato Moritaka', 0.5456540584564209),\n", " ('Suzuki Ami Around the World: Live House Tour 2005', 0.5375290513038635),\n", " ('Anna Suda', 0.5338292121887207),\n", " ('Beautiful, Dirty, Rich', 0.5309030413627625),\n", " ('Momoiro Clover Z', 0.5304197072982788),\n", " ('Pink Lady (duo)', 0.5268998742103577),\n", " ('Reol (singer)', 0.5237400531768799),\n", " ('Ami Suzuki', 0.5232592225074768),\n", " ('Kaela Kimura', 0.5219823122024536)]\n" ] } ], "source": [ "for model in [model_dbow, model_dm]:\n", " print(model)\n", " vec = [model.dv[\"Lady Gaga\"] - model.wv[\"american\"] + model.wv[\"japanese\"]]\n", " pprint([m for m in model.dv.most_similar(vec, topn=11) if m[0] != \"Lady Gaga\"])" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "As a result, the DBOW model surfaced artists similar to Lady Gaga in Japan, such as **Ayumi Hamasaki** whose Wiki bio says:\n", "\n", "> Ayumi Hamasaki is a Japanese singer, songwriter, record producer, actress, model, spokesperson, and entrepreneur.\n", "\n", "So that sounds like a success. It's also the nr. 1 hit in the paper we're replicating – success!\n", "\n", "The DM model results are opaque to me, but seem art & Japan related as well. The score deltas between these DM results are marginal, so it's likely they would change if retrained on a different version of Wikipedia. Or even when simply re-run on the same version – the doc2vec training algorithm is stochastic.\n", "\n", "These results demonstrate that both training modes employed in the original paper are outstanding for calculating similarity between document vectors, word vectors, or a combination of both. The DM mode has the added advantage of being 4x faster to train." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "If you wanted to continue working with these trained models, you could save them to disk, to avoid having to re-train the models from scratch every time:" ] }, { "cell_type": "code", "execution_count": 12, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "2022-04-19 07:54:48,399 : INFO : Doc2Vec lifecycle event {'fname_or_handle': 'doc2vec_dbow.model', 'separately': 'None', 'sep_limit': 10485760, 'ignore': frozenset(), 'datetime': '2022-04-19T07:54:48.399560', 'gensim': '4.1.3.dev0', 'python': '3.8.10 (default, Nov 26 2021, 20:14:08) \\n[GCC 9.3.0]', 'platform': 'Linux-5.4.0-94-generic-x86_64-with-glibc2.29', 'event': 'saving'}\n", "2022-04-19 07:54:48,400 : INFO : storing np array 'vectors' to doc2vec_dbow.model.dv.vectors.npy\n", "2022-04-19 07:54:49,613 : INFO : storing np array 'vectors' to doc2vec_dbow.model.wv.vectors.npy\n", "2022-04-19 07:54:49,875 : INFO : storing np array 'syn1neg' to doc2vec_dbow.model.syn1neg.npy\n", "2022-04-19 07:54:50,135 : INFO : not storing attribute cum_table\n", "2022-04-19 07:54:53,026 : INFO : saved doc2vec_dbow.model\n", "2022-04-19 07:54:53,027 : INFO : Doc2Vec lifecycle event {'fname_or_handle': 'doc2vec_dm.model', 'separately': 'None', 'sep_limit': 10485760, 'ignore': frozenset(), 'datetime': '2022-04-19T07:54:53.027661', 'gensim': '4.1.3.dev0', 'python': '3.8.10 (default, Nov 26 2021, 20:14:08) \\n[GCC 9.3.0]', 'platform': 'Linux-5.4.0-94-generic-x86_64-with-glibc2.29', 'event': 'saving'}\n", "2022-04-19 07:54:53,028 : INFO : storing np array 'vectors' to doc2vec_dm.model.dv.vectors.npy\n", "2022-04-19 07:54:54,556 : INFO : storing np array 'vectors' to doc2vec_dm.model.wv.vectors.npy\n", "2022-04-19 07:54:54,808 : INFO : storing np array 'syn1neg' to doc2vec_dm.model.syn1neg.npy\n", "2022-04-19 07:54:55,058 : INFO : not storing attribute cum_table\n", "2022-04-19 07:54:57,872 : INFO : saved doc2vec_dm.model\n" ] } ], "source": [ "model_dbow.save('doc2vec_dbow.model')\n", "model_dm.save('doc2vec_dm.model')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "To continue your doc2vec explorations, refer to the official API documentation in Gensim: https://radimrehurek.com/gensim/models/doc2vec.html" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.8.10" } }, "nbformat": 4, "nbformat_minor": 1 }
38,876
Python
.py
654
54.191131
734
0.650564
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,931
Topic_dendrogram.ipynb
piskvorky_gensim/docs/notebooks/Topic_dendrogram.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Visualizing Topic clusters\n", "\n", "In this notebook, we will learn how to visualize topic clusters using dendrogram. Dendrogram is a tree-structured graph which can be used to visualize the result of a hierarchical clustering calculation. Hierarchical clustering puts individual data points into similarity groups, without prior knowledge of groups. We can use it to explore the topic models and see how the topics are connected to each other in a sequence of successive fusions or divisions that occur in the clustering process." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "!pip install plotly>=2.0.16 # 2.0.16 need for support 'hovertext' argument from create_dendrogram function" ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [ { "data": { "text/html": [ "<script type='text/javascript'>if(!window.Plotly){define('plotly', function(require, exports, module) {/**\n", "* plotly.js v1.31.0\n", "* Copyright 2012-2017, Plotly, Inc.\n", "* All rights reserved.\n", "* Licensed under the MIT license\n", "*/\n", "!function(t){if(\"object\"==typeof exports&&\"undefined\"!=typeof module)module.exports=t();else if(\"function\"==typeof define&&define.amd)define([],t);else{var e;e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:this,e.Plotly=t()}}(function(){var t;return function t(e,r,n){function i(o,s){if(!r[o]){if(!e[o]){var l=\"function\"==typeof require&&require;if(!s&&l)return l(o,!0);if(a)return a(o,!0);var u=new Error(\"Cannot find module '\"+o+\"'\");throw u.code=\"MODULE_NOT_FOUND\",u}var c=r[o]={exports:{}};e[o][0].call(c.exports,function(t){var r=e[o][1][t];return i(r||t)},c,c.exports,t,e,r,n)}return r[o].exports}for(var a=\"function\"==typeof require&&require,o=0;o<n.length;o++)i(n[o]);return i}({1:[function(t,e,r){\"use strict\";var n=t(\"../src/lib\"),i={\"X,X div\":\"font-family:'Open Sans', verdana, arial, sans-serif;margin:0;padding:0;\",\"X input,X button\":\"font-family:'Open Sans', verdana, arial, sans-serif;\",\"X input:focus,X button:focus\":\"outline:none;\",\"X a\":\"text-decoration:none;\",\"X a:hover\":\"text-decoration:none;\",\"X .crisp\":\"shape-rendering:crispEdges;\",\"X .user-select-none\":\"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;\",\"X svg\":\"overflow:hidden;\",\"X svg a\":\"fill:#447adb;\",\"X svg a:hover\":\"fill:#3c6dc5;\",\"X .main-svg\":\"position:absolute;top:0;left:0;pointer-events:none;\",\"X .main-svg .draglayer\":\"pointer-events:all;\",\"X .cursor-default\":\"cursor:default;\",\"X .cursor-pointer\":\"cursor:pointer;\",\"X .cursor-crosshair\":\"cursor:crosshair;\",\"X .cursor-move\":\"cursor:move;\",\"X .cursor-col-resize\":\"cursor:col-resize;\",\"X .cursor-row-resize\":\"cursor:row-resize;\",\"X .cursor-ns-resize\":\"cursor:ns-resize;\",\"X .cursor-ew-resize\":\"cursor:ew-resize;\",\"X .cursor-sw-resize\":\"cursor:sw-resize;\",\"X .cursor-s-resize\":\"cursor:s-resize;\",\"X .cursor-se-resize\":\"cursor:se-resize;\",\"X .cursor-w-resize\":\"cursor:w-resize;\",\"X .cursor-e-resize\":\"cursor:e-resize;\",\"X .cursor-nw-resize\":\"cursor:nw-resize;\",\"X .cursor-n-resize\":\"cursor:n-resize;\",\"X .cursor-ne-resize\":\"cursor:ne-resize;\",\"X .modebar\":\"position:absolute;top:2px;right:2px;z-index:1001;background:rgba(255,255,255,0.7);\",\"X .modebar--hover\":\"opacity:0;-webkit-transition:opacity 0.3s ease 0s;-moz-transition:opacity 0.3s ease 0s;-ms-transition:opacity 0.3s ease 0s;-o-transition:opacity 0.3s ease 0s;transition:opacity 0.3s ease 0s;\",\"X:hover .modebar--hover\":\"opacity:1;\",\"X .modebar-group\":\"float:left;display:inline-block;box-sizing:border-box;margin-left:8px;position:relative;vertical-align:middle;white-space:nowrap;\",\"X .modebar-group:first-child\":\"margin-left:0px;\",\"X .modebar-btn\":\"position:relative;font-size:16px;padding:3px 4px;cursor:pointer;line-height:normal;box-sizing:border-box;\",\"X .modebar-btn svg\":\"position:relative;top:2px;\",\"X .modebar-btn path\":\"fill:rgba(0,31,95,0.3);\",\"X .modebar-btn.active path,X .modebar-btn:hover path\":\"fill:rgba(0,22,72,0.5);\",\"X .modebar-btn.modebar-btn--logo\":\"padding:3px 1px;\",\"X .modebar-btn.modebar-btn--logo path\":\"fill:#447adb !important;\",\"X [data-title]:before,X [data-title]:after\":\"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;\",\"X [data-title]:hover:before,X [data-title]:hover:after\":\"display:block;opacity:1;\",\"X [data-title]:before\":\"content:'';position:absolute;background:transparent;border:6px solid transparent;z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;\",\"X [data-title]:after\":\"content:attr(data-title);background:#69738a;color:white;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;\",\"X .select-outline\":\"fill:none;stroke-width:1;shape-rendering:crispEdges;\",\"X .select-outline-1\":\"stroke:white;\",\"X .select-outline-2\":\"stroke:black;stroke-dasharray:2px 2px;\",Y:\"font-family:'Open Sans';position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;\",\"Y p\":\"margin:0;\",\"Y .notifier-note\":\"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,0.9);color:#fff;padding:10px;\",\"Y .notifier-close\":\"color:#fff;opacity:0.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;\",\"Y .notifier-close:hover\":\"color:#444;text-decoration:none;cursor:pointer;\"};for(var a in i){var o=a.replace(/^,/,\" ,\").replace(/X/g,\".js-plotly-plot .plotly\").replace(/Y/g,\".plotly-notifier\");n.addStyleRule(o,i[a])}},{\"../src/lib\":728}],2:[function(t,e,r){\"use strict\";e.exports={undo:{width:857.1,path:\"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z\",ascent:850,descent:-150},home:{width:928.6,path:\"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z\",ascent:850,descent:-150},\"camera-retro\":{width:1e3,path:\"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z\",ascent:850,descent:-150},zoombox:{width:1e3,path:\"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z\",ascent:850,descent:-150},pan:{width:1e3,path:\"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z\",ascent:850,descent:-150},zoom_plus:{width:1e3,path:\"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z\",ascent:850,descent:-150},zoom_minus:{width:1e3,path:\"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z\",ascent:850,descent:-150},autoscale:{width:1e3,path:\"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z\",ascent:850,descent:-150},tooltip_basic:{width:1500,path:\"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z\",ascent:850,descent:-150},tooltip_compare:{width:1125,path:\"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z\",ascent:850,descent:-150},plotlylogo:{width:1542,path:\"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z\",ascent:850,descent:-150},\"z-axis\":{width:1e3,path:\"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z\",ascent:850,descent:-150},\"3d_rotate\":{width:1e3,path:\"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z\",ascent:850,descent:-150},camera:{width:1e3,path:\"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z\",ascent:850,descent:-150},movie:{width:1e3,path:\"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z\",ascent:850,descent:-150},question:{width:857.1,path:\"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z\",ascent:850,descent:-150},disk:{width:857.1,path:\"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z\",ascent:850,descent:-150},lasso:{width:1031,path:\"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z\",ascent:850,descent:-150},selectbox:{width:1e3,path:\"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z\",ascent:850,descent:-150},spikeline:{width:1e3,path:\"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z\",ascent:850,descent:-150}}},{}],3:[function(t,e,r){\"use strict\";e.exports=t(\"../src/transforms/aggregate\")},{\"../src/transforms/aggregate\":1114}],4:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/bar\")},{\"../src/traces/bar\":860}],5:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/box\")},{\"../src/traces/box\":873}],6:[function(t,e,r){\"use strict\";e.exports=t(\"../src/components/calendars\")},{\"../src/components/calendars\":602}],7:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/candlestick\")},{\"../src/traces/candlestick\":881}],8:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/carpet\")},{\"../src/traces/carpet\":902}],9:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/choropleth\")},{\"../src/traces/choropleth\":917}],10:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/contour\")},{\"../src/traces/contour\":929}],11:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/contourcarpet\")},{\"../src/traces/contourcarpet\":944}],12:[function(t,e,r){\"use strict\";e.exports=t(\"../src/core\")},{\"../src/core\":710}],13:[function(t,e,r){\"use strict\";e.exports=t(\"../src/transforms/filter\")},{\"../src/transforms/filter\":1115}],14:[function(t,e,r){\"use strict\";e.exports=t(\"../src/transforms/groupby\")},{\"../src/transforms/groupby\":1116}],15:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/heatmap\")},{\"../src/traces/heatmap\":957}],16:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/heatmapgl\")},{\"../src/traces/heatmapgl\":966}],17:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/histogram\")},{\"../src/traces/histogram\":974}],18:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/histogram2d\")},{\"../src/traces/histogram2d\":979}],19:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/histogram2dcontour\")},{\"../src/traces/histogram2dcontour\":983}],20:[function(t,e,r){\"use strict\";var n=t(\"./core\");n.register([t(\"./bar\"),t(\"./box\"),t(\"./heatmap\"),t(\"./histogram\"),t(\"./histogram2d\"),t(\"./histogram2dcontour\"),t(\"./pie\"),t(\"./contour\"),t(\"./scatterternary\"),t(\"./sankey\"),t(\"./scatter3d\"),t(\"./surface\"),t(\"./mesh3d\"),t(\"./scattergeo\"),t(\"./choropleth\"),t(\"./scattergl\"),t(\"./pointcloud\"),t(\"./heatmapgl\"),t(\"./parcoords\"),t(\"./table\"),t(\"./scattermapbox\"),t(\"./carpet\"),t(\"./scattercarpet\"),t(\"./contourcarpet\"),t(\"./ohlc\"),t(\"./candlestick\")]),n.register([t(\"./aggregate\"),t(\"./filter\"),t(\"./groupby\"),t(\"./sort\")]),n.register([t(\"./calendars\")]),e.exports=n},{\"./aggregate\":3,\"./bar\":4,\"./box\":5,\"./calendars\":6,\"./candlestick\":7,\"./carpet\":8,\"./choropleth\":9,\"./contour\":10,\"./contourcarpet\":11,\"./core\":12,\"./filter\":13,\"./groupby\":14,\"./heatmap\":15,\"./heatmapgl\":16,\"./histogram\":17,\"./histogram2d\":18,\"./histogram2dcontour\":19,\"./mesh3d\":21,\"./ohlc\":22,\"./parcoords\":23,\"./pie\":24,\"./pointcloud\":25,\"./sankey\":26,\"./scatter3d\":27,\"./scattercarpet\":28,\"./scattergeo\":29,\"./scattergl\":30,\"./scattermapbox\":31,\"./scatterternary\":32,\"./sort\":33,\"./surface\":34,\"./table\":35}],21:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/mesh3d\")},{\"../src/traces/mesh3d\":989}],22:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/ohlc\")},{\"../src/traces/ohlc\":994}],23:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/parcoords\")},{\"../src/traces/parcoords\":1003}],24:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/pie\")},{\"../src/traces/pie\":1012}],25:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/pointcloud\")},{\"../src/traces/pointcloud\":1021}],26:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/sankey\")},{\"../src/traces/sankey\":1027}],27:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/scatter3d\")},{\"../src/traces/scatter3d\":1060}],28:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/scattercarpet\")},{\"../src/traces/scattercarpet\":1065}],29:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/scattergeo\")},{\"../src/traces/scattergeo\":1074}],30:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/scattergl\")},{\"../src/traces/scattergl\":1081}],31:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/scattermapbox\")},{\"../src/traces/scattermapbox\":1088}],32:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/scatterternary\")},{\"../src/traces/scatterternary\":1095}],33:[function(t,e,r){\"use strict\";e.exports=t(\"../src/transforms/sort\")},{\"../src/transforms/sort\":1117}],34:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/surface\")},{\"../src/traces/surface\":1104}],35:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/table\")},{\"../src/traces/table\":1112}],36:[function(t,e,r){\"use strict\";function n(t,e){function r(e,r,n,a){var o=1/t.clientHeight,s=o*(r-m),l=o*(n-v),c=p.flipX?1:-1,f=p.flipY?1:-1,d=Math.PI*p.rotateSpeed,y=i();if(1&e)a.shift?u.rotate(y,0,0,-s*d):u.rotate(y,c*d*s,-f*d*l,0);else if(2&e)u.pan(y,-p.translateSpeed*s*h,p.translateSpeed*l*h,0);else if(4&e){var b=p.zoomSpeed*l/window.innerHeight*(y-u.lastT())*50;u.pan(y,0,0,h*(Math.exp(b)-1))}m=r,v=n,g=a}t=t||document.body,e=e||{};var n=[.01,1/0];\"distanceLimits\"in e&&(n[0]=e.distanceLimits[0],n[1]=e.distanceLimits[1]),\"zoomMin\"in e&&(n[0]=e.zoomMin),\"zoomMax\"in e&&(n[1]=e.zoomMax);var u=a({center:e.center||[0,0,0],up:e.up||[0,1,0],eye:e.eye||[0,0,10],mode:e.mode||\"orbit\",distanceLimits:n}),c=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],h=0,f=t.clientWidth,d=t.clientHeight,p={view:u,element:t,delay:e.delay||16,rotateSpeed:e.rotateSpeed||1,zoomSpeed:e.zoomSpeed||1,translateSpeed:e.translateSpeed||1,flipX:!!e.flipX,flipY:!!e.flipY,modes:u.modes,tick:function(){var e=i(),r=this.delay;u.idle(e-r),u.flush(e-(100+2*r));var n=e-2*r;u.recalcMatrix(n);for(var a=!0,o=u.computedMatrix,s=0;s<16;++s)a=a&&c[s]===o[s],c[s]=o[s];var l=t.clientWidth===f&&t.clientHeight===d;return f=t.clientWidth,d=t.clientHeight,a?!l:(h=Math.exp(u.computedRadius[0]),!0)},lookAt:function(t,e,r){u.lookAt(u.lastT(),t,e,r)},rotate:function(t,e,r){u.rotate(u.lastT(),t,e,r)},pan:function(t,e,r){u.pan(u.lastT(),t,e,r)},translate:function(t,e,r){u.translate(u.lastT(),t,e,r)}};Object.defineProperties(p,{matrix:{get:function(){return u.computedMatrix},set:function(t){return u.setMatrix(u.lastT(),t),u.computedMatrix},enumerable:!0},mode:{get:function(){return u.getMode()},set:function(t){return u.setMode(t),u.getMode()},enumerable:!0},center:{get:function(){return u.computedCenter},set:function(t){return u.lookAt(u.lastT(),t),u.computedCenter},enumerable:!0},eye:{get:function(){return u.computedEye},set:function(t){return u.lookAt(u.lastT(),null,t),u.computedEye},enumerable:!0},up:{get:function(){return u.computedUp},set:function(t){return u.lookAt(u.lastT(),null,null,t),u.computedUp},enumerable:!0},distance:{get:function(){return h},set:function(t){return u.setDistance(u.lastT(),t),t},enumerable:!0},distanceLimits:{get:function(){return u.getDistanceLimits(n)},set:function(t){return u.setDistanceLimits(t),t},enumerable:!0}}),t.addEventListener(\"contextmenu\",function(t){return t.preventDefault(),!1});var m=0,v=0,g={shift:!1,control:!1,alt:!1,meta:!1};return o(t,r),t.addEventListener(\"touchstart\",function(e){var n=l(e.changedTouches[0],t);r(0,n[0],n[1],g),r(1,n[0],n[1],g)}),t.addEventListener(\"touchmove\",function(e){var n=l(e.changedTouches[0],t);r(1,n[0],n[1],g)}),t.addEventListener(\"touchend\",function(e){l(e.changedTouches[0],t);r(0,m,v,g)}),s(t,function(t,e,r){var n=p.flipX?1:-1,a=p.flipY?1:-1,o=i();if(Math.abs(t)>Math.abs(e))u.rotate(o,0,0,-t*n*Math.PI*p.rotateSpeed/window.innerWidth);else{var s=p.zoomSpeed*a*e/window.innerHeight*(o-u.lastT())/100;u.pan(o,0,0,h*(Math.exp(s)-1))}},!0),p}e.exports=n;var i=t(\"right-now\"),a=t(\"3d-view\"),o=t(\"mouse-change\"),s=t(\"mouse-wheel\"),l=t(\"mouse-event-offset\")},{\"3d-view\":37,\"mouse-change\":452,\"mouse-event-offset\":453,\"mouse-wheel\":455,\"right-now\":502}],37:[function(t,e,r){\"use strict\";function n(t,e){this._controllerNames=Object.keys(t),this._controllerList=this._controllerNames.map(function(e){return t[e]}),this._mode=e,this._active=t[e],this._active||(this._mode=\"turntable\",this._active=t.turntable),this.modes=this._controllerNames,this.computedMatrix=this._active.computedMatrix,this.computedEye=this._active.computedEye,this.computedUp=this._active.computedUp,this.computedCenter=this._active.computedCenter,this.computedRadius=this._active.computedRadius}function i(t){t=t||{};var e=t.eye||[0,0,1],r=t.center||[0,0,0],i=t.up||[0,1,0],l=t.distanceLimits||[0,1/0],u=t.mode||\"turntable\",c=a(),h=o(),f=s();return c.setDistanceLimits(l[0],l[1]),c.lookAt(0,e,r,i),h.setDistanceLimits(l[0],l[1]),h.lookAt(0,e,r,i),f.setDistanceLimits(l[0],l[1]),f.lookAt(0,e,r,i),new n({turntable:c,orbit:h,matrix:f},u)}e.exports=i;var a=t(\"turntable-camera-controller\"),o=t(\"orbit-camera-controller\"),s=t(\"matrix-camera-controller\"),l=n.prototype;[[\"flush\",1],[\"idle\",1],[\"lookAt\",4],[\"rotate\",4],[\"pan\",4],[\"translate\",4],[\"setMatrix\",2],[\"setDistanceLimits\",2],[\"setDistance\",2]].forEach(function(t){for(var e=t[0],r=[],n=0;n<t[1];++n)r.push(\"a\"+n);var i=\"var cc=this._controllerList;for(var i=0;i<cc.length;++i){cc[i].\"+t[0]+\"(\"+r.join()+\")}\";l[e]=Function.apply(null,r.concat(i))}),l.recalcMatrix=function(t){this._active.recalcMatrix(t)},l.getDistance=function(t){return this._active.getDistance(t)},l.getDistanceLimits=function(t){return this._active.getDistanceLimits(t)},l.lastT=function(){return this._active.lastT()},l.setMode=function(t){if(t!==this._mode){var e=this._controllerNames.indexOf(t);if(!(e<0)){var r=this._active,n=this._controllerList[e],i=Math.max(r.lastT(),n.lastT());r.recalcMatrix(i),n.setMatrix(i,r.computedMatrix),this._active=n,this._mode=t,this.computedMatrix=this._active.computedMatrix,this.computedEye=this._active.computedEye,this.computedUp=this._active.computedUp,this.computedCenter=this._active.computedCenter,this.computedRadius=this._active.computedRadius}}},l.getMode=function(){return this._mode}},{\"matrix-camera-controller\":450,\"orbit-camera-controller\":473,\"turntable-camera-controller\":538}],38:[function(e,r,n){!function(i,a){\"object\"==typeof n&&void 0!==r?a(n,e(\"d3-array\"),e(\"d3-collection\"),e(\"d3-interpolate\")):\"function\"==typeof t&&t.amd?t([\"exports\",\"d3-array\",\"d3-collection\",\"d3-interpolate\"],a):a(i.d3=i.d3||{},i.d3,i.d3,i.d3)}(this,function(t,e,r,n){\"use strict\";var i=function(){function t(){v.forEach(function(t){t.sourceLinks=[],t.targetLinks=[]}),g.forEach(function(t,e){var r=t.source,n=t.target;\"number\"==typeof r&&(r=t.source=v[t.source]),\"number\"==typeof n&&(n=t.target=v[t.target]),t.originalIndex=e,r.sourceLinks.push(t),n.targetLinks.push(t)})}function i(){v.forEach(function(t){t.value=Math.max(e.sum(t.sourceLinks,h),e.sum(t.targetLinks,h))})}function a(){for(var t,e=v,r=0;e.length;)t=[],e.forEach(function(e){e.x=r,e.dx=d,e.sourceLinks.forEach(function(e){t.indexOf(e.target)<0&&t.push(e.target)})}),e=t,++r;o(r),s((m[0]-d)/(r-1))}function o(t){v.forEach(function(e){e.sourceLinks.length||(e.x=t-1)})}function s(t){v.forEach(function(e){e.x*=t})}function l(t){function n(){a.forEach(function(t){var e,r,n,a=0,o=t.length;for(t.sort(i),n=0;n<o;++n)e=t[n],r=a-e.y,r>0&&(e.y+=r),a=e.y+e.dy+p;if((r=a-p-m[1])>0)for(a=e.y-=r,n=o-2;n>=0;--n)e=t[n],r=e.y+e.dy+p-a,r>0&&(e.y-=r),a=e.y})}function i(t,e){return t.y-e.y}var a=r.nest().key(function(t){return t.x}).sortKeys(e.ascending).entries(v).map(function(t){return t.values});!function(){var t=e.min(a,function(t){return(m[1]-(t.length-1)*p)/e.sum(t,h)});a.forEach(function(e){e.forEach(function(e,r){e.y=r,e.dy=e.value*t})}),g.forEach(function(e){e.dy=e.value*t})}(),n();for(var o=1;t>0;--t)!function(t){function r(t){return c(t.target)*t.value}a.slice().reverse().forEach(function(n){n.forEach(function(n){if(n.sourceLinks.length){var i=e.sum(n.sourceLinks,r)/e.sum(n.sourceLinks,h);n.y+=(i-c(n))*t}})})}(o*=.99),n(),function(t){function r(t){return c(t.source)*t.value}a.forEach(function(n){n.forEach(function(n){if(n.targetLinks.length){var i=e.sum(n.targetLinks,r)/e.sum(n.targetLinks,h);n.y+=(i-c(n))*t}})})}(o),n()}function u(){function t(t,e){return t.source.y-e.source.y||t.originalIndex-e.originalIndex}function e(t,e){return t.target.y-e.target.y||t.originalIndex-e.originalIndex}v.forEach(function(r){r.sourceLinks.sort(e),r.targetLinks.sort(t)}),v.forEach(function(t){var e=0,r=0;t.sourceLinks.forEach(function(t){t.sy=e,e+=t.dy}),t.targetLinks.forEach(function(t){t.ty=r,r+=t.dy})})}function c(t){return t.y+t.dy/2}function h(t){return t.value}var f={},d=24,p=8,m=[1,1],v=[],g=[];return f.nodeWidth=function(t){return arguments.length?(d=+t,f):d},f.nodePadding=function(t){return arguments.length?(p=+t,f):p},f.nodes=function(t){return arguments.length?(v=t,f):v},f.links=function(t){return arguments.length?(g=t,f):g},f.size=function(t){return arguments.length?(m=t,f):m},f.layout=function(e){return t(),i(),a(),l(e),u(),f},f.relayout=function(){return u(),f},f.link=function(){function t(t){var r=t.source.x+t.source.dx,i=t.target.x,a=n.interpolateNumber(r,i),o=a(e),s=a(1-e),l=t.source.y+t.sy,u=l+t.dy,c=t.target.y+t.ty,h=c+t.dy;return\"M\"+r+\",\"+l+\"C\"+o+\",\"+l+\" \"+s+\",\"+c+\" \"+i+\",\"+c+\"L\"+i+\",\"+h+\"C\"+s+\",\"+h+\" \"+o+\",\"+u+\" \"+r+\",\"+u+\"Z\"}var e=.5;return t.curvature=function(r){return arguments.length?(e=+r,t):e},t},f};t.sankey=i,Object.defineProperty(t,\"__esModule\",{value:!0})})},{\"d3-array\":114,\"d3-collection\":115,\"d3-interpolate\":119}],39:[function(t,e,r){\"use strict\";function n(t){var e=s.get(t),r=e&&(e._triangleBuffer.handle||e._triangleBuffer.buffer);if(!r||!t.isBuffer(r)){var n=a(t,new Float32Array([-1,-1,-1,4,4,-1]));e=o(t,[{buffer:n,type:t.FLOAT,size:2}]),e._triangleBuffer=n,s.set(t,e)}e.bind(),t.drawArrays(t.TRIANGLES,0,3),e.unbind()}var i=\"undefined\"==typeof WeakMap?t(\"weak-map\"):WeakMap,a=t(\"gl-buffer\"),o=t(\"gl-vao\"),s=new i;e.exports=n},{\"gl-buffer\":156,\"gl-vao\":271,\"weak-map\":559}],40:[function(t,e,r){function n(t,e,r){e=\"number\"==typeof e?e:1,r=r||\": \";var n=t.split(/\\r?\\n/),a=String(n.length+e-1).length;return n.map(function(t,n){var o=n+e,s=String(o).length;return i(o,a-s)+r+t}).join(\"\\n\")}var i=t(\"pad-left\");e.exports=n},{\"pad-left\":474}],41:[function(t,e,r){\"use strict\";function n(t,e){for(var r=new Array(e+1),n=0;n<t.length;++n)r[n]=t[n];for(var n=0;n<=t.length;++n){for(var i=t.length;i<=e;++i){for(var o=new Array(e),s=0;s<e;++s)o[s]=Math.pow(i+1-n,s);r[i]=o}if(a.apply(void 0,r))return!0}return!1}function i(t){var e=t.length;if(0===e)return[];if(1===e)return[0];for(var r=t[0].length,i=[t[0]],a=[0],o=1;o<e;++o)if(i.push(t[o]),n(i,r)){if(a.push(o),a.length===r+1)return a}else i.pop();return a}e.exports=i;var a=t(\"robust-orientation\")},{\"robust-orientation\":508}],42:[function(t,e,r){\"use strict\";function n(t,e){return i(e).filter(function(r){for(var n=new Array(r.length),i=0;i<r.length;++i)n[i]=e[r[i]];return a(n)*t<1})}e.exports=n;var i=t(\"delaunay-triangulate\"),a=t(\"circumradius\")},{circumradius:87,\"delaunay-triangulate\":123}],43:[function(t,e,r){function n(t,e){return a(i(t,e))}e.exports=n;var i=t(\"alpha-complex\"),a=t(\"simplicial-complex-boundary\")},{\"alpha-complex\":42,\"simplicial-complex-boundary\":516}],44:[function(t,e,r){\"use strict\";function n(t,e){if(!t||null==t.length)throw Error(\"Argument should be an array\");e=null==e?1:Math.floor(e);for(var r=Array(2*e),n=0;n<e;n++){for(var i=-1/0,a=1/0,o=n,s=t.length;o<s;o+=e)t[o]>i&&(i=t[o]),t[o]<a&&(a=t[o]);r[n]=a,r[e+n]=i}return r}e.exports=n},{}],45:[function(t,e,r){\"use strict\";function n(t,e,r){if(!t||null==t.length)throw Error(\"Argument should be an array\");null==e&&(e=1),null==r&&(r=i(t,e));for(var n=0;n<e;n++){var a=r[e+n],o=r[n],s=n,l=t.length;if(a===1/0&&o===-1/0)for(s=n;s<l;s+=e)t[s]=t[s]===a?1:t[s]===o?0:.5;else if(a===1/0)for(s=n;s<l;s+=e)t[s]=t[s]===a?1:0;else if(o===-1/0)for(s=n;s<l;s+=e)t[s]=t[s]===o?0:1;else{var u=a-o;for(s=n;s<l;s+=e)t[s]=(t[s]-o)/u}}return t}var i=t(\"array-bounds\");e.exports=n},{\"array-bounds\":44}],46:[function(t,e,r){\"use strict\";e.exports=function(){function t(t){return!Array.isArray(t)&&null!==t&&\"object\"==typeof t}function e(t,e,r){for(var n=(e-t)/Math.max(r-1,1),i=[],a=0;a<r;a++)i.push(t+a*n);return i}function r(){for(var t=[].slice.call(arguments),e=t.map(function(t){return t.length}),r=Math.min.apply(null,e),n=[],i=0;i<r;i++){n[i]=[];for(var a=0;a<t.length;++a)n[i][a]=t[a][i]}return n}function n(t,e,r){for(var n=Math.min.apply(null,[t.length,e.length,r.length]),i=[],a=0;a<n;a++)i.push([t[a],e[a],r[a]]);return i}function i(t){function e(t){for(var n=0;n<t.length;n++)Array.isArray(t[n])?e(t[n],r):r+=t[n]}var r=0;return e(t,r),r}function a(t){for(var e=[],r=0;r<t.length;++r){e[r]=[];for(var n=0;n<t[r].length;++n)e[r][n]=t[r][n]}return e}function o(t){for(var e=[],r=0;r<t.length;++r)e[r]=t[r];return e}function s(t,e){if(t.length!==e.length)return!1;for(var r=t.length;r--;)if(t[r]!==e[r])return!1;return!0}function l(t,e){var r,n;if(\"string\"!=typeof t)return t;if(r=[],\"#\"===t[0]?(t=t.substr(1),3===t.length&&(t+=t),n=parseInt(t,16),r[0]=n>>16&255,r[1]=n>>8&255,r[2]=255&n):h.test(t)&&(n=t.match(f),r[0]=parseInt(n[1]),r[1]=parseInt(n[2]),r[2]=parseInt(n[3])),!e)for(var i=0;i<3;++i)r[i]=r[i]/255;return r}function u(t,e){var r,n;if(\"string\"!=typeof t)return t;if(r=[],\"#\"===t[0]?(t=t.substr(1),3===t.length&&(t+=t),n=parseInt(t,16),r[0]=n>>16&255,r[1]=n>>8&255,r[2]=255&n):h.test(t)&&(n=t.match(f),r[0]=parseInt(n[1]),r[1]=parseInt(n[2]),r[2]=parseInt(n[3]),n[4]?r[3]=parseFloat(n[4]):r[3]=1),!e)for(var i=0;i<3;++i)r[i]=r[i]/255;return r}var c={},h=/^rgba?\\(\\s*\\d{1,3}\\s*,\\s*\\d{1,3}\\s*,\\s*\\d{1,3}\\s*(,.*)?\\)$/,f=/^rgba?\\(\\s*(\\d{1,3})\\s*,\\s*(\\d{1,3})\\s*,\\s*(\\d{1,3})\\s*,?\\s*(.*)?\\)$/;return c.isPlainObject=t,c.linspace=e,c.zip3=n,c.sum=i,c.zip=r,c.isEqual=s,c.copy2D=a,c.copy1D=o,c.str2RgbArray=l,c.str2RgbaArray=u,c}()},{}],47:[function(t,e,r){(function(r){\"use strict\";function n(t,e){if(t===e)return 0;for(var r=t.length,n=e.length,i=0,a=Math.min(r,n);i<a;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0}function i(t){return r.Buffer&&\"function\"==typeof r.Buffer.isBuffer?r.Buffer.isBuffer(t):!(null==t||!t._isBuffer)}function a(t){return Object.prototype.toString.call(t)}function o(t){return!i(t)&&(\"function\"==typeof r.ArrayBuffer&&(\"function\"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):!!t&&(t instanceof DataView||!!(t.buffer&&t.buffer instanceof ArrayBuffer))))}function s(t){if(x.isFunction(t)){if(M)return t.name;var e=t.toString(),r=e.match(A);return r&&r[1]}}function l(t,e){return\"string\"==typeof t?t.length<e?t:t.slice(0,e):t}function u(t){if(M||!x.isFunction(t))return x.inspect(t);var e=s(t);return\"[Function\"+(e?\": \"+e:\"\")+\"]\"}function c(t){return l(u(t.actual),128)+\" \"+t.operator+\" \"+l(u(t.expected),128)}function h(t,e,r,n,i){throw new k.AssertionError({message:r,actual:t,expected:e,operator:n,stackStartFunction:i})}function f(t,e){t||h(t,!0,e,\"==\",k.ok)}function d(t,e,r,s){if(t===e)return!0;if(i(t)&&i(e))return 0===n(t,e);if(x.isDate(t)&&x.isDate(e))return t.getTime()===e.getTime();if(x.isRegExp(t)&&x.isRegExp(e))return t.source===e.source&&t.global===e.global&&t.multiline===e.multiline&&t.lastIndex===e.lastIndex&&t.ignoreCase===e.ignoreCase;if(null!==t&&\"object\"==typeof t||null!==e&&\"object\"==typeof e){if(o(t)&&o(e)&&a(t)===a(e)&&!(t instanceof Float32Array||t instanceof Float64Array))return 0===n(new Uint8Array(t.buffer),new Uint8Array(e.buffer));if(i(t)!==i(e))return!1;s=s||{actual:[],expected:[]};var l=s.actual.indexOf(t);return-1!==l&&l===s.expected.indexOf(e)||(s.actual.push(t),s.expected.push(e),m(t,e,r,s))}return r?t===e:t==e}function p(t){return\"[object Arguments]\"==Object.prototype.toString.call(t)}function m(t,e,r,n){if(null===t||void 0===t||null===e||void 0===e)return!1;if(x.isPrimitive(t)||x.isPrimitive(e))return t===e;if(r&&Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return!1;var i=p(t),a=p(e);if(i&&!a||!i&&a)return!1;if(i)return t=w.call(t),e=w.call(e),d(t,e,r);var o,s,l=T(t),u=T(e);if(l.length!==u.length)return!1;for(l.sort(),u.sort(),s=l.length-1;s>=0;s--)if(l[s]!==u[s])return!1;for(s=l.length-1;s>=0;s--)if(o=l[s],!d(t[o],e[o],r,n))return!1\n", ";return!0}function v(t,e,r){d(t,e,!0)&&h(t,e,r,\"notDeepStrictEqual\",v)}function g(t,e){if(!t||!e)return!1;if(\"[object RegExp]\"==Object.prototype.toString.call(e))return e.test(t);try{if(t instanceof e)return!0}catch(t){}return!Error.isPrototypeOf(e)&&!0===e.call({},t)}function y(t){var e;try{t()}catch(t){e=t}return e}function b(t,e,r,n){var i;if(\"function\"!=typeof e)throw new TypeError('\"block\" argument must be a function');\"string\"==typeof r&&(n=r,r=null),i=y(e),n=(r&&r.name?\" (\"+r.name+\").\":\".\")+(n?\" \"+n:\".\"),t&&!i&&h(i,r,\"Missing expected exception\"+n);var a=\"string\"==typeof n,o=!t&&x.isError(i),s=!t&&i&&!r;if((o&&a&&g(i,r)||s)&&h(i,r,\"Got unwanted exception\"+n),t&&i&&r&&!g(i,r)||!t&&i)throw i}var x=t(\"util/\"),_=Object.prototype.hasOwnProperty,w=Array.prototype.slice,M=function(){return\"foo\"===function(){}.name}(),k=e.exports=f,A=/\\s*function\\s+([^\\(\\s]*)\\s*/;k.AssertionError=function(t){this.name=\"AssertionError\",this.actual=t.actual,this.expected=t.expected,this.operator=t.operator,t.message?(this.message=t.message,this.generatedMessage=!1):(this.message=c(this),this.generatedMessage=!0);var e=t.stackStartFunction||h;if(Error.captureStackTrace)Error.captureStackTrace(this,e);else{var r=new Error;if(r.stack){var n=r.stack,i=s(e),a=n.indexOf(\"\\n\"+i);if(a>=0){var o=n.indexOf(\"\\n\",a+1);n=n.substring(o+1)}this.stack=n}}},x.inherits(k.AssertionError,Error),k.fail=h,k.ok=f,k.equal=function(t,e,r){t!=e&&h(t,e,r,\"==\",k.equal)},k.notEqual=function(t,e,r){t==e&&h(t,e,r,\"!=\",k.notEqual)},k.deepEqual=function(t,e,r){d(t,e,!1)||h(t,e,r,\"deepEqual\",k.deepEqual)},k.deepStrictEqual=function(t,e,r){d(t,e,!0)||h(t,e,r,\"deepStrictEqual\",k.deepStrictEqual)},k.notDeepEqual=function(t,e,r){d(t,e,!1)&&h(t,e,r,\"notDeepEqual\",k.notDeepEqual)},k.notDeepStrictEqual=v,k.strictEqual=function(t,e,r){t!==e&&h(t,e,r,\"===\",k.strictEqual)},k.notStrictEqual=function(t,e,r){t===e&&h(t,e,r,\"!==\",k.notStrictEqual)},k.throws=function(t,e,r){b(!0,t,e,r)},k.doesNotThrow=function(t,e,r){b(!1,t,e,r)},k.ifError=function(t){if(t)throw t};var T=Object.keys||function(t){var e=[];for(var r in t)_.call(t,r)&&e.push(r);return e}}).call(this,\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{\"util/\":549}],48:[function(t,e,r){e.exports=function(t){return atob(t)}},{}],49:[function(t,e,r){\"use strict\";function n(t){for(var e=0,r=0;r<t.length;++r)e+=t[r];return e}function i(t,e){for(var r=e.length,i=new Array(r+1),o=0;o<r;++o){for(var s=new Array(r+1),l=0;l<=r;++l)s[l]=t[l][o];i[o]=s}i[r]=new Array(r+1);for(var o=0;o<=r;++o)i[r][o]=1;for(var u=new Array(r+1),o=0;o<r;++o)u[o]=e[o];u[r]=1;var c=a(i,u),h=n(c[r+1]);0===h&&(h=1);for(var f=new Array(r+1),o=0;o<=r;++o)f[o]=n(c[o])/h;return f}e.exports=i;var a=t(\"robust-linear-solve\")},{\"robust-linear-solve\":507}],50:[function(t,e,r){\"use strict\";function n(t,e){return i(t[0].mul(e[1]).add(e[0].mul(t[1])),t[1].mul(e[1]))}var i=t(\"./lib/rationalize\");e.exports=n},{\"./lib/rationalize\":60}],51:[function(t,e,r){\"use strict\";function n(t,e){return t[0].mul(e[1]).cmp(e[0].mul(t[1]))}e.exports=n},{}],52:[function(t,e,r){\"use strict\";function n(t,e){return i(t[0].mul(e[1]),t[1].mul(e[0]))}var i=t(\"./lib/rationalize\");e.exports=n},{\"./lib/rationalize\":60}],53:[function(t,e,r){\"use strict\";function n(t,e){if(i(t))return e?u(t,n(e)):[t[0].clone(),t[1].clone()];var r,c,h=0;if(a(t))r=t.clone();else if(\"string\"==typeof t)r=s(t);else{if(0===t)return[o(0),o(1)];if(t===Math.floor(t))r=o(t);else{for(;t!==Math.floor(t);)t*=Math.pow(2,256),h-=256;r=o(t)}}if(i(e))r.mul(e[1]),c=e[0].clone();else if(a(e))c=e.clone();else if(\"string\"==typeof e)c=s(e);else if(e)if(e===Math.floor(e))c=o(e);else{for(;e!==Math.floor(e);)e*=Math.pow(2,256),h+=256;c=o(e)}else c=o(1);return h>0?r=r.ushln(h):h<0&&(c=c.ushln(-h)),l(r,c)}var i=t(\"./is-rat\"),a=t(\"./lib/is-bn\"),o=t(\"./lib/num-to-bn\"),s=t(\"./lib/str-to-bn\"),l=t(\"./lib/rationalize\"),u=t(\"./div\");e.exports=n},{\"./div\":52,\"./is-rat\":54,\"./lib/is-bn\":58,\"./lib/num-to-bn\":59,\"./lib/rationalize\":60,\"./lib/str-to-bn\":61}],54:[function(t,e,r){\"use strict\";function n(t){return Array.isArray(t)&&2===t.length&&i(t[0])&&i(t[1])}var i=t(\"./lib/is-bn\");e.exports=n},{\"./lib/is-bn\":58}],55:[function(t,e,r){\"use strict\";function n(t){return t.cmp(new i(0))}var i=t(\"bn.js\");e.exports=n},{\"bn.js\":68}],56:[function(t,e,r){\"use strict\";function n(t){var e=t.length,r=t.words,n=0;if(1===e)n=r[0];else if(2===e)n=r[0]+67108864*r[1];else for(var a=0;a<e;a++){var o=r[a];n+=o*Math.pow(67108864,a)}return i(t)*n}var i=t(\"./bn-sign\");e.exports=n},{\"./bn-sign\":55}],57:[function(t,e,r){\"use strict\";function n(t){var e=a(i.lo(t));if(e<32)return e;var r=a(i.hi(t));return r>20?52:r+32}var i=t(\"double-bits\"),a=t(\"bit-twiddle\").countTrailingZeros;e.exports=n},{\"bit-twiddle\":67,\"double-bits\":124}],58:[function(t,e,r){\"use strict\";function n(t){return t&&\"object\"==typeof t&&Boolean(t.words)}t(\"bn.js\");e.exports=n},{\"bn.js\":68}],59:[function(t,e,r){\"use strict\";function n(t){var e=a.exponent(t);return e<52?new i(t):new i(t*Math.pow(2,52-e)).ushln(e-52)}var i=t(\"bn.js\"),a=t(\"double-bits\");e.exports=n},{\"bn.js\":68,\"double-bits\":124}],60:[function(t,e,r){\"use strict\";function n(t,e){var r=a(t),n=a(e);if(0===r)return[i(0),i(1)];if(0===n)return[i(0),i(0)];n<0&&(t=t.neg(),e=e.neg());var o=t.gcd(e);return o.cmpn(1)?[t.div(o),e.div(o)]:[t,e]}var i=t(\"./num-to-bn\"),a=t(\"./bn-sign\");e.exports=n},{\"./bn-sign\":55,\"./num-to-bn\":59}],61:[function(t,e,r){\"use strict\";function n(t){return new i(t)}var i=t(\"bn.js\");e.exports=n},{\"bn.js\":68}],62:[function(t,e,r){\"use strict\";function n(t,e){return i(t[0].mul(e[0]),t[1].mul(e[1]))}var i=t(\"./lib/rationalize\");e.exports=n},{\"./lib/rationalize\":60}],63:[function(t,e,r){\"use strict\";function n(t){return i(t[0])*i(t[1])}var i=t(\"./lib/bn-sign\");e.exports=n},{\"./lib/bn-sign\":55}],64:[function(t,e,r){\"use strict\";function n(t,e){return i(t[0].mul(e[1]).sub(t[1].mul(e[0])),t[1].mul(e[1]))}var i=t(\"./lib/rationalize\");e.exports=n},{\"./lib/rationalize\":60}],65:[function(t,e,r){\"use strict\";function n(t){var e=t[0],r=t[1];if(0===e.cmpn(0))return 0;var n=e.abs().divmod(r.abs()),o=n.div,s=i(o),l=n.mod,u=e.negative!==r.negative?-1:1;if(0===l.cmpn(0))return u*s;if(s){var c=a(s)+4,h=i(l.ushln(c).divRound(r));return u*(s+h*Math.pow(2,-c))}var f=r.bitLength()-l.bitLength()+53,h=i(l.ushln(f).divRound(r));return f<1023?u*h*Math.pow(2,-f):(h*=Math.pow(2,-1023),u*h*Math.pow(2,1023-f))}var i=t(\"./lib/bn-to-num\"),a=t(\"./lib/ctz\");e.exports=n},{\"./lib/bn-to-num\":56,\"./lib/ctz\":57}],66:[function(t,e,r){\"use strict\";function n(t,e,r,n,i,a){var o=[\"function \",t,\"(a,l,h,\",n.join(\",\"),\"){\",a?\"\":\"var i=\",r?\"l-1\":\"h+1\",\";while(l<=h){var m=(l+h)>>>1,x=a\",i?\".get(m)\":\"[m]\"];return a?e.indexOf(\"c\")<0?o.push(\";if(x===y){return m}else if(x<=y){\"):o.push(\";var p=c(x,y);if(p===0){return m}else if(p<=0){\"):o.push(\";if(\",e,\"){i=m;\"),r?o.push(\"l=m+1}else{h=m-1}\"):o.push(\"h=m-1}else{l=m+1}\"),o.push(\"}\"),a?o.push(\"return -1};\"):o.push(\"return i};\"),o.join(\"\")}function i(t,e,r,i){return new Function([n(\"A\",\"x\"+t+\"y\",e,[\"y\"],!1,i),n(\"B\",\"x\"+t+\"y\",e,[\"y\"],!0,i),n(\"P\",\"c(x,y)\"+t+\"0\",e,[\"y\",\"c\"],!1,i),n(\"Q\",\"c(x,y)\"+t+\"0\",e,[\"y\",\"c\"],!0,i),\"function dispatchBsearch\",r,\"(a,y,c,l,h){if(a.shape){if(typeof(c)==='function'){return Q(a,(l===undefined)?0:l|0,(h===undefined)?a.shape[0]-1:h|0,y,c)}else{return B(a,(c===undefined)?0:c|0,(l===undefined)?a.shape[0]-1:l|0,y)}}else{if(typeof(c)==='function'){return P(a,(l===undefined)?0:l|0,(h===undefined)?a.length-1:h|0,y,c)}else{return A(a,(c===undefined)?0:c|0,(l===undefined)?a.length-1:l|0,y)}}}return dispatchBsearch\",r].join(\"\"))()}e.exports={ge:i(\">=\",!1,\"GE\"),gt:i(\">\",!1,\"GT\"),lt:i(\"<\",!0,\"LT\"),le:i(\"<=\",!0,\"LE\"),eq:i(\"-\",!0,\"EQ\",!0)}},{}],67:[function(t,e,r){\"use strict\";\"use restrict\";function n(t){var e=32;return t&=-t,t&&e--,65535&t&&(e-=16),16711935&t&&(e-=8),252645135&t&&(e-=4),858993459&t&&(e-=2),1431655765&t&&(e-=1),e}r.INT_BITS=32,r.INT_MAX=2147483647,r.INT_MIN=-1<<31,r.sign=function(t){return(t>0)-(t<0)},r.abs=function(t){var e=t>>31;return(t^e)-e},r.min=function(t,e){return e^(t^e)&-(t<e)},r.max=function(t,e){return t^(t^e)&-(t<e)},r.isPow2=function(t){return!(t&t-1||!t)},r.log2=function(t){var e,r;return e=(t>65535)<<4,t>>>=e,r=(t>255)<<3,t>>>=r,e|=r,r=(t>15)<<2,t>>>=r,e|=r,r=(t>3)<<1,t>>>=r,(e|=r)|t>>1},r.log10=function(t){return t>=1e9?9:t>=1e8?8:t>=1e7?7:t>=1e6?6:t>=1e5?5:t>=1e4?4:t>=1e3?3:t>=100?2:t>=10?1:0},r.popCount=function(t){return t-=t>>>1&1431655765,16843009*((t=(858993459&t)+(t>>>2&858993459))+(t>>>4)&252645135)>>>24},r.countTrailingZeros=n,r.nextPow2=function(t){return t+=0===t,--t,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,(t|=t>>>16)+1},r.prevPow2=function(t){return t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,(t|=t>>>16)-(t>>>1)},r.parity=function(t){return t^=t>>>16,t^=t>>>8,t^=t>>>4,27030>>>(t&=15)&1};var i=new Array(256);!function(t){for(var e=0;e<256;++e){var r=e,n=e,i=7;for(r>>>=1;r;r>>>=1)n<<=1,n|=1&r,--i;t[e]=n<<i&255}}(i),r.reverse=function(t){return i[255&t]<<24|i[t>>>8&255]<<16|i[t>>>16&255]<<8|i[t>>>24&255]},r.interleave2=function(t,e){return t&=65535,t=16711935&(t|t<<8),t=252645135&(t|t<<4),t=858993459&(t|t<<2),t=1431655765&(t|t<<1),e&=65535,e=16711935&(e|e<<8),e=252645135&(e|e<<4),e=858993459&(e|e<<2),e=1431655765&(e|e<<1),t|e<<1},r.deinterleave2=function(t,e){return t=t>>>e&1431655765,t=858993459&(t|t>>>1),t=252645135&(t|t>>>2),t=16711935&(t|t>>>4),(t=65535&(t|t>>>16))<<16>>16},r.interleave3=function(t,e,r){return t&=1023,t=4278190335&(t|t<<16),t=251719695&(t|t<<8),t=3272356035&(t|t<<4),t=1227133513&(t|t<<2),e&=1023,e=4278190335&(e|e<<16),e=251719695&(e|e<<8),e=3272356035&(e|e<<4),e=1227133513&(e|e<<2),t|=e<<1,r&=1023,r=4278190335&(r|r<<16),r=251719695&(r|r<<8),r=3272356035&(r|r<<4),r=1227133513&(r|r<<2),t|r<<2},r.deinterleave3=function(t,e){return t=t>>>e&1227133513,t=3272356035&(t|t>>>2),t=251719695&(t|t>>>4),t=4278190335&(t|t>>>8),(t=1023&(t|t>>>16))<<22>>22},r.nextCombination=function(t){var e=t|t-1;return e+1|(~e&-~e)-1>>>n(t)+1}},{}],68:[function(t,e,r){!function(e,r){\"use strict\";function n(t,e){if(!t)throw new Error(e||\"Assertion failed\")}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function a(t,e,r){if(a.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&(\"le\"!==e&&\"be\"!==e||(r=e,e=10),this._init(t||0,e||10,r||\"be\"))}function o(t,e,r){for(var n=0,i=Math.min(t.length,r),a=e;a<i;a++){var o=t.charCodeAt(a)-48;n<<=4,n|=o>=49&&o<=54?o-49+10:o>=17&&o<=22?o-17+10:15&o}return n}function s(t,e,r,n){for(var i=0,a=Math.min(t.length,r),o=e;o<a;o++){var s=t.charCodeAt(o)-48;i*=n,i+=s>=49?s-49+10:s>=17?s-17+10:s}return i}function l(t){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,i=r%26;e[r]=(t.words[n]&1<<i)>>>i}return e}function u(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],a=0|e.words[0],o=i*a,s=67108863&o,l=o/67108864|0;r.words[0]=s;for(var u=1;u<n;u++){for(var c=l>>>26,h=67108863&l,f=Math.min(u,e.length-1),d=Math.max(0,u-t.length+1);d<=f;d++){var p=u-d|0;i=0|t.words[p],a=0|e.words[d],o=i*a+h,c+=o/67108864|0,h=67108863&o}r.words[u]=0|h,l=0|c}return 0!==l?r.words[u]=0|l:r.length--,r.strip()}function c(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,a=0;a<r.length-1;a++){var o=i;i=0;for(var s=67108863&n,l=Math.min(a,e.length-1),u=Math.max(0,a-t.length+1);u<=l;u++){var c=a-u,h=0|t.words[c],f=0|e.words[u],d=h*f,p=67108863&d;o=o+(d/67108864|0)|0,p=p+s|0,s=67108863&p,o=o+(p>>>26)|0,i+=o>>>26,o&=67108863}r.words[a]=s,n=o,o=i}return 0!==n?r.words[a]=n:r.length--,r.strip()}function h(t,e,r){return(new f).mulp(t,e,r)}function f(t,e){this.x=t,this.y=e}function d(t,e){this.name=t,this.p=new a(e,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function p(){d.call(this,\"k256\",\"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f\")}function m(){d.call(this,\"p224\",\"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001\")}function v(){d.call(this,\"p192\",\"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff\")}function g(){d.call(this,\"25519\",\"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed\")}function y(t){if(\"string\"==typeof t){var e=a._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),\"modulus must be greater than 1\"),this.m=t,this.prime=null}function b(t){y.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}\"object\"==typeof e?e.exports=a:r.BN=a,a.BN=a,a.wordSize=26;var x;try{x=t(\"buffer\").Buffer}catch(t){}a.isBN=function(t){return t instanceof a||null!==t&&\"object\"==typeof t&&t.constructor.wordSize===a.wordSize&&Array.isArray(t.words)},a.max=function(t,e){return t.cmp(e)>0?t:e},a.min=function(t,e){return t.cmp(e)<0?t:e},a.prototype._init=function(t,e,r){if(\"number\"==typeof t)return this._initNumber(t,e,r);if(\"object\"==typeof t)return this._initArray(t,e,r);\"hex\"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36),t=t.toString().replace(/\\s+/g,\"\");var i=0;\"-\"===t[0]&&i++,16===e?this._parseHex(t,i):this._parseBase(t,e,i),\"-\"===t[0]&&(this.negative=1),this.strip(),\"le\"===r&&this._initArray(this.toArray(),e,r)},a.prototype._initNumber=function(t,e,r){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),\"le\"===r&&this._initArray(this.toArray(),e,r)},a.prototype._initArray=function(t,e,r){if(n(\"number\"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var a,o,s=0;if(\"be\"===r)for(i=t.length-1,a=0;i>=0;i-=3)o=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[a]|=o<<s&67108863,this.words[a+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);else if(\"le\"===r)for(i=0,a=0;i<t.length;i+=3)o=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[a]|=o<<s&67108863,this.words[a+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);return this.strip()},a.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var n,i,a=0;for(r=t.length-6,n=0;r>=e;r-=6)i=o(t,r,r+6),this.words[n]|=i<<a&67108863,this.words[n+1]|=i>>>26-a&4194303,(a+=24)>=26&&(a-=26,n++);r+6!==e&&(i=o(t,e,r+6),this.words[n]|=i<<a&67108863,this.words[n+1]|=i>>>26-a&4194303),this.strip()},a.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var a=t.length-r,o=a%n,l=Math.min(a,a-o)+r,u=0,c=r;c<l;c+=n)u=s(t,c,c+n,e),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==o){var h=1;for(u=s(t,c,t.length,e),c=0;c<o;c++)h*=e;this.imuln(h),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}},a.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},a.prototype.clone=function(){var t=new a(null);return this.copy(t),t},a.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},a.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?\"<BN-R: \":\"<BN: \")+this.toString(16)+\">\"};var _=[\"\",\"0\",\"00\",\"000\",\"0000\",\"00000\",\"000000\",\"0000000\",\"00000000\",\"000000000\",\"0000000000\",\"00000000000\",\"000000000000\",\"0000000000000\",\"00000000000000\",\"000000000000000\",\"0000000000000000\",\"00000000000000000\",\"000000000000000000\",\"0000000000000000000\",\"00000000000000000000\",\"000000000000000000000\",\"0000000000000000000000\",\"00000000000000000000000\",\"000000000000000000000000\",\"0000000000000000000000000\"],w=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],M=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];a.prototype.toString=function(t,e){t=t||10,e=0|e||1;var r;if(16===t||\"hex\"===t){r=\"\";for(var i=0,a=0,o=0;o<this.length;o++){var s=this.words[o],l=(16777215&(s<<i|a)).toString(16);a=s>>>24-i&16777215,r=0!==a||o!==this.length-1?_[6-l.length]+l+r:l+r,i+=2,i>=26&&(i-=26,o--)}for(0!==a&&(r=a.toString(16)+r);r.length%e!=0;)r=\"0\"+r;return 0!==this.negative&&(r=\"-\"+r),r}if(t===(0|t)&&t>=2&&t<=36){var u=w[t],c=M[t];r=\"\";var h=this.clone();for(h.negative=0;!h.isZero();){var f=h.modn(c).toString(t);h=h.idivn(c),r=h.isZero()?f+r:_[u-f.length]+f+r}for(this.isZero()&&(r=\"0\"+r);r.length%e!=0;)r=\"0\"+r;return 0!==this.negative&&(r=\"-\"+r),r}n(!1,\"Base should be between 2 and 36\")},a.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,\"Number can only safely store up to 53 bits\"),0!==this.negative?-t:t},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(t,e){return n(void 0!==x),this.toArrayLike(x,t,e)},a.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},a.prototype.toArrayLike=function(t,e,r){var i=this.byteLength(),a=r||Math.max(1,i);n(i<=a,\"byte array longer than desired length\"),n(a>0,\"Requested array length <= 0\"),this.strip();var o,s,l=\"le\"===e,u=new t(a),c=this.clone();if(l){for(s=0;!c.isZero();s++)o=c.andln(255),c.iushrn(8),u[s]=o;for(;s<a;s++)u[s]=0}else{for(s=0;s<a-i;s++)u[s]=0;for(s=0;!c.isZero();s++)o=c.andln(255),c.iushrn(8),u[a-s-1]=o}return u},Math.clz32?a.prototype._countBits=function(t){return 32-Math.clz32(t)}:a.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},a.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0==(8191&e)&&(r+=13,e>>>=13),0==(127&e)&&(r+=7,e>>>=7),0==(15&e)&&(r+=4,e>>>=4),0==(3&e)&&(r+=2,e>>>=2),0==(1&e)&&r++,r},a.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},a.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return 0!==this.negative},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},a.prototype.ior=function(t){return n(0==(this.negative|t.negative)),this.iuor(t)},a.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},a.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},a.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this.strip()},a.prototype.iand=function(t){return n(0==(this.negative|t.negative)),this.iuand(t)},a.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},a.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},a.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this.strip()},a.prototype.ixor=function(t){return n(0==(this.negative|t.negative)),this.iuxor(t)},a.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},a.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},a.prototype.inotn=function(t){n(\"number\"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},a.prototype.notn=function(t){return this.clone().inotn(t)},a.prototype.setn=function(t,e){n(\"number\"==typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<i:this.words[r]&~(1<<i),this.strip()},a.prototype.iadd=function(t){var e;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();var r,n;this.length>t.length?(r=this,n=t):(r=t,n=this);for(var i=0,a=0;a<n.length;a++)e=(0|r.words[a])+(0|n.words[a])+i,this.words[a]=67108863&e,i=e>>>26;for(;0!==i&&a<r.length;a++)e=(0|r.words[a])+i,this.words[a]=67108863&e,i=e>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this},a.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},a.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;var n,i;r>0?(n=this,i=t):(n=t,i=this);for(var a=0,o=0;o<i.length;o++)e=(0|n.words[o])-(0|i.words[o])+a,a=e>>26,this.words[o]=67108863&e;for(;0!==a&&o<n.length;o++)e=(0|n.words[o])+a,a=e>>26,this.words[o]=67108863&e;if(0===a&&o<n.length&&n!==this)for(;o<n.length;o++)this.words[o]=n.words[o];return this.length=Math.max(this.length,o),n!==this&&(this.negative=1),this.strip()},a.prototype.sub=function(t){return this.clone().isub(t)};var k=function(t,e,r){var n,i,a,o=t.words,s=e.words,l=r.words,u=0,c=0|o[0],h=8191&c,f=c>>>13,d=0|o[1],p=8191&d,m=d>>>13,v=0|o[2],g=8191&v,y=v>>>13,b=0|o[3],x=8191&b,_=b>>>13,w=0|o[4],M=8191&w,k=w>>>13,A=0|o[5],T=8191&A,S=A>>>13,E=0|o[6],L=8191&E,C=E>>>13,I=0|o[7],z=8191&I,D=I>>>13,P=0|o[8],O=8191&P,R=P>>>13,F=0|o[9],j=8191&F,N=F>>>13,B=0|s[0],U=8191&B,V=B>>>13,H=0|s[1],q=8191&H,G=H>>>13,Y=0|s[2],W=8191&Y,X=Y>>>13,Z=0|s[3],J=8191&Z,K=Z>>>13,Q=0|s[4],$=8191&Q,tt=Q>>>13,et=0|s[5],rt=8191&et,nt=et>>>13,it=0|s[6],at=8191&it,ot=it>>>13,st=0|s[7],lt=8191&st,ut=st>>>13,ct=0|s[8],ht=8191&ct,ft=ct>>>13,dt=0|s[9],pt=8191&dt,mt=dt>>>13;r.negative=t.negative^e.negative,r.length=19,n=Math.imul(h,U),i=Math.imul(h,V),i=i+Math.imul(f,U)|0,a=Math.imul(f,V);var vt=(u+n|0)+((8191&i)<<13)|0;u=(a+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(p,U),i=Math.imul(p,V),i=i+Math.imul(m,U)|0,a=Math.imul(m,V),n=n+Math.imul(h,q)|0,i=i+Math.imul(h,G)|0,i=i+Math.imul(f,q)|0,a=a+Math.imul(f,G)|0;var gt=(u+n|0)+((8191&i)<<13)|0;u=(a+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(g,U),i=Math.imul(g,V),i=i+Math.imul(y,U)|0,a=Math.imul(y,V),n=n+Math.imul(p,q)|0,i=i+Math.imul(p,G)|0,i=i+Math.imul(m,q)|0,a=a+Math.imul(m,G)|0,n=n+Math.imul(h,W)|0,i=i+Math.imul(h,X)|0,i=i+Math.imul(f,W)|0,a=a+Math.imul(f,X)|0;var yt=(u+n|0)+((8191&i)<<13)|0;u=(a+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(x,U),i=Math.imul(x,V),i=i+Math.imul(_,U)|0,a=Math.imul(_,V),n=n+Math.imul(g,q)|0,i=i+Math.imul(g,G)|0,i=i+Math.imul(y,q)|0,a=a+Math.imul(y,G)|0,n=n+Math.imul(p,W)|0,i=i+Math.imul(p,X)|0,i=i+Math.imul(m,W)|0,a=a+Math.imul(m,X)|0,n=n+Math.imul(h,J)|0,i=i+Math.imul(h,K)|0,i=i+Math.imul(f,J)|0,a=a+Math.imul(f,K)|0;var bt=(u+n|0)+((8191&i)<<13)|0;u=(a+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(M,U),i=Math.imul(M,V),i=i+Math.imul(k,U)|0,a=Math.imul(k,V),n=n+Math.imul(x,q)|0,i=i+Math.imul(x,G)|0,i=i+Math.imul(_,q)|0,a=a+Math.imul(_,G)|0,n=n+Math.imul(g,W)|0,i=i+Math.imul(g,X)|0,i=i+Math.imul(y,W)|0,a=a+Math.imul(y,X)|0,n=n+Math.imul(p,J)|0,i=i+Math.imul(p,K)|0,i=i+Math.imul(m,J)|0,a=a+Math.imul(m,K)|0,n=n+Math.imul(h,$)|0,i=i+Math.imul(h,tt)|0,i=i+Math.imul(f,$)|0,a=a+Math.imul(f,tt)|0;var xt=(u+n|0)+((8191&i)<<13)|0;u=(a+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(T,U),i=Math.imul(T,V),i=i+Math.imul(S,U)|0,a=Math.imul(S,V),n=n+Math.imul(M,q)|0,i=i+Math.imul(M,G)|0,i=i+Math.imul(k,q)|0,a=a+Math.imul(k,G)|0,n=n+Math.imul(x,W)|0,i=i+Math.imul(x,X)|0,i=i+Math.imul(_,W)|0,a=a+Math.imul(_,X)|0,n=n+Math.imul(g,J)|0,i=i+Math.imul(g,K)|0,i=i+Math.imul(y,J)|0,a=a+Math.imul(y,K)|0,n=n+Math.imul(p,$)|0,i=i+Math.imul(p,tt)|0,i=i+Math.imul(m,$)|0,a=a+Math.imul(m,tt)|0,n=n+Math.imul(h,rt)|0,i=i+Math.imul(h,nt)|0,i=i+Math.imul(f,rt)|0,a=a+Math.imul(f,nt)|0;var _t=(u+n|0)+((8191&i)<<13)|0;u=(a+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(L,U),i=Math.imul(L,V),i=i+Math.imul(C,U)|0,a=Math.imul(C,V),n=n+Math.imul(T,q)|0,i=i+Math.imul(T,G)|0,i=i+Math.imul(S,q)|0,a=a+Math.imul(S,G)|0,n=n+Math.imul(M,W)|0,i=i+Math.imul(M,X)|0,i=i+Math.imul(k,W)|0,a=a+Math.imul(k,X)|0,n=n+Math.imul(x,J)|0,i=i+Math.imul(x,K)|0,i=i+Math.imul(_,J)|0,a=a+Math.imul(_,K)|0,n=n+Math.imul(g,$)|0,i=i+Math.imul(g,tt)|0,i=i+Math.imul(y,$)|0,a=a+Math.imul(y,tt)|0,n=n+Math.imul(p,rt)|0,i=i+Math.imul(p,nt)|0,i=i+Math.imul(m,rt)|0,a=a+Math.imul(m,nt)|0,n=n+Math.imul(h,at)|0,i=i+Math.imul(h,ot)|0,i=i+Math.imul(f,at)|0,a=a+Math.imul(f,ot)|0;var wt=(u+n|0)+((8191&i)<<13)|0;u=(a+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(z,U),i=Math.imul(z,V),i=i+Math.imul(D,U)|0,a=Math.imul(D,V),n=n+Math.imul(L,q)|0,i=i+Math.imul(L,G)|0,i=i+Math.imul(C,q)|0,a=a+Math.imul(C,G)|0,n=n+Math.imul(T,W)|0,i=i+Math.imul(T,X)|0,i=i+Math.imul(S,W)|0,a=a+Math.imul(S,X)|0,n=n+Math.imul(M,J)|0,i=i+Math.imul(M,K)|0,i=i+Math.imul(k,J)|0,a=a+Math.imul(k,K)|0,n=n+Math.imul(x,$)|0,i=i+Math.imul(x,tt)|0,i=i+Math.imul(_,$)|0,a=a+Math.imul(_,tt)|0,n=n+Math.imul(g,rt)|0,i=i+Math.imul(g,nt)|0,i=i+Math.imul(y,rt)|0,a=a+Math.imul(y,nt)|0,n=n+Math.imul(p,at)|0,i=i+Math.imul(p,ot)|0,i=i+Math.imul(m,at)|0,a=a+Math.imul(m,ot)|0,n=n+Math.imul(h,lt)|0,i=i+Math.imul(h,ut)|0,i=i+Math.imul(f,lt)|0,a=a+Math.imul(f,ut)|0;var Mt=(u+n|0)+((8191&i)<<13)|0;u=(a+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(O,U),i=Math.imul(O,V),i=i+Math.imul(R,U)|0,a=Math.imul(R,V),n=n+Math.imul(z,q)|0,i=i+Math.imul(z,G)|0,i=i+Math.imul(D,q)|0,a=a+Math.imul(D,G)|0,n=n+Math.imul(L,W)|0,i=i+Math.imul(L,X)|0,i=i+Math.imul(C,W)|0,a=a+Math.imul(C,X)|0,n=n+Math.imul(T,J)|0,i=i+Math.imul(T,K)|0,i=i+Math.imul(S,J)|0,a=a+Math.imul(S,K)|0,n=n+Math.imul(M,$)|0,i=i+Math.imul(M,tt)|0,i=i+Math.imul(k,$)|0,a=a+Math.imul(k,tt)|0,n=n+Math.imul(x,rt)|0,i=i+Math.imul(x,nt)|0,i=i+Math.imul(_,rt)|0,a=a+Math.imul(_,nt)|0,n=n+Math.imul(g,at)|0,i=i+Math.imul(g,ot)|0,i=i+Math.imul(y,at)|0,a=a+Math.imul(y,ot)|0,n=n+Math.imul(p,lt)|0,i=i+Math.imul(p,ut)|0,i=i+Math.imul(m,lt)|0,a=a+Math.imul(m,ut)|0,n=n+Math.imul(h,ht)|0,i=i+Math.imul(h,ft)|0,i=i+Math.imul(f,ht)|0,a=a+Math.imul(f,ft)|0;var kt=(u+n|0)+((8191&i)<<13)|0;u=(a+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(j,U),i=Math.imul(j,V),i=i+Math.imul(N,U)|0,a=Math.imul(N,V),n=n+Math.imul(O,q)|0,i=i+Math.imul(O,G)|0,i=i+Math.imul(R,q)|0,a=a+Math.imul(R,G)|0,n=n+Math.imul(z,W)|0,i=i+Math.imul(z,X)|0,i=i+Math.imul(D,W)|0,a=a+Math.imul(D,X)|0,n=n+Math.imul(L,J)|0,i=i+Math.imul(L,K)|0,i=i+Math.imul(C,J)|0,a=a+Math.imul(C,K)|0,n=n+Math.imul(T,$)|0,i=i+Math.imul(T,tt)|0,i=i+Math.imul(S,$)|0,a=a+Math.imul(S,tt)|0,n=n+Math.imul(M,rt)|0,i=i+Math.imul(M,nt)|0,i=i+Math.imul(k,rt)|0,a=a+Math.imul(k,nt)|0,n=n+Math.imul(x,at)|0,i=i+Math.imul(x,ot)|0,i=i+Math.imul(_,at)|0,a=a+Math.imul(_,ot)|0,n=n+Math.imul(g,lt)|0,i=i+Math.imul(g,ut)|0,i=i+Math.imul(y,lt)|0,a=a+Math.imul(y,ut)|0,n=n+Math.imul(p,ht)|0,i=i+Math.imul(p,ft)|0,i=i+Math.imul(m,ht)|0,a=a+Math.imul(m,ft)|0,n=n+Math.imul(h,pt)|0,i=i+Math.imul(h,mt)|0,i=i+Math.imul(f,pt)|0,a=a+Math.imul(f,mt)|0;var At=(u+n|0)+((8191&i)<<13)|0;u=(a+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(j,q),i=Math.imul(j,G),i=i+Math.imul(N,q)|0,a=Math.imul(N,G),n=n+Math.imul(O,W)|0,i=i+Math.imul(O,X)|0,i=i+Math.imul(R,W)|0,a=a+Math.imul(R,X)|0,n=n+Math.imul(z,J)|0,i=i+Math.imul(z,K)|0,i=i+Math.imul(D,J)|0,a=a+Math.imul(D,K)|0,n=n+Math.imul(L,$)|0,i=i+Math.imul(L,tt)|0,i=i+Math.imul(C,$)|0,a=a+Math.imul(C,tt)|0,n=n+Math.imul(T,rt)|0,i=i+Math.imul(T,nt)|0,i=i+Math.imul(S,rt)|0,a=a+Math.imul(S,nt)|0,n=n+Math.imul(M,at)|0,i=i+Math.imul(M,ot)|0,i=i+Math.imul(k,at)|0,a=a+Math.imul(k,ot)|0,n=n+Math.imul(x,lt)|0,i=i+Math.imul(x,ut)|0,i=i+Math.imul(_,lt)|0,a=a+Math.imul(_,ut)|0,n=n+Math.imul(g,ht)|0,i=i+Math.imul(g,ft)|0,i=i+Math.imul(y,ht)|0,a=a+Math.imul(y,ft)|0,n=n+Math.imul(p,pt)|0,i=i+Math.imul(p,mt)|0,i=i+Math.imul(m,pt)|0,a=a+Math.imul(m,mt)|0;var Tt=(u+n|0)+((8191&i)<<13)|0;u=(a+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(j,W),i=Math.imul(j,X),i=i+Math.imul(N,W)|0,a=Math.imul(N,X),n=n+Math.imul(O,J)|0,i=i+Math.imul(O,K)|0,i=i+Math.imul(R,J)|0,a=a+Math.imul(R,K)|0,n=n+Math.imul(z,$)|0,i=i+Math.imul(z,tt)|0,i=i+Math.imul(D,$)|0,a=a+Math.imul(D,tt)|0,n=n+Math.imul(L,rt)|0,i=i+Math.imul(L,nt)|0,i=i+Math.imul(C,rt)|0,a=a+Math.imul(C,nt)|0,n=n+Math.imul(T,at)|0,i=i+Math.imul(T,ot)|0,i=i+Math.imul(S,at)|0,a=a+Math.imul(S,ot)|0,n=n+Math.imul(M,lt)|0,i=i+Math.imul(M,ut)|0,i=i+Math.imul(k,lt)|0,a=a+Math.imul(k,ut)|0,n=n+Math.imul(x,ht)|0,i=i+Math.imul(x,ft)|0,i=i+Math.imul(_,ht)|0,a=a+Math.imul(_,ft)|0,n=n+Math.imul(g,pt)|0,i=i+Math.imul(g,mt)|0,i=i+Math.imul(y,pt)|0,a=a+Math.imul(y,mt)|0;var St=(u+n|0)+((8191&i)<<13)|0;u=(a+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(j,J),i=Math.imul(j,K),i=i+Math.imul(N,J)|0,a=Math.imul(N,K),n=n+Math.imul(O,$)|0,i=i+Math.imul(O,tt)|0,i=i+Math.imul(R,$)|0,a=a+Math.imul(R,tt)|0,n=n+Math.imul(z,rt)|0,i=i+Math.imul(z,nt)|0,i=i+Math.imul(D,rt)|0,a=a+Math.imul(D,nt)|0,n=n+Math.imul(L,at)|0,i=i+Math.imul(L,ot)|0,i=i+Math.imul(C,at)|0,a=a+Math.imul(C,ot)|0,n=n+Math.imul(T,lt)|0,i=i+Math.imul(T,ut)|0,i=i+Math.imul(S,lt)|0,a=a+Math.imul(S,ut)|0,n=n+Math.imul(M,ht)|0,i=i+Math.imul(M,ft)|0,i=i+Math.imul(k,ht)|0,a=a+Math.imul(k,ft)|0,n=n+Math.imul(x,pt)|0,i=i+Math.imul(x,mt)|0,i=i+Math.imul(_,pt)|0,a=a+Math.imul(_,mt)|0;var Et=(u+n|0)+((8191&i)<<13)|0;u=(a+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(j,$),i=Math.imul(j,tt),i=i+Math.imul(N,$)|0,a=Math.imul(N,tt),n=n+Math.imul(O,rt)|0,i=i+Math.imul(O,nt)|0,i=i+Math.imul(R,rt)|0,a=a+Math.imul(R,nt)|0,n=n+Math.imul(z,at)|0,i=i+Math.imul(z,ot)|0,i=i+Math.imul(D,at)|0,a=a+Math.imul(D,ot)|0,n=n+Math.imul(L,lt)|0,i=i+Math.imul(L,ut)|0,i=i+Math.imul(C,lt)|0,a=a+Math.imul(C,ut)|0,n=n+Math.imul(T,ht)|0,i=i+Math.imul(T,ft)|0,i=i+Math.imul(S,ht)|0,a=a+Math.imul(S,ft)|0,n=n+Math.imul(M,pt)|0,i=i+Math.imul(M,mt)|0,i=i+Math.imul(k,pt)|0,a=a+Math.imul(k,mt)|0;var Lt=(u+n|0)+((8191&i)<<13)|0;u=(a+(i>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,n=Math.imul(j,rt),i=Math.imul(j,nt),i=i+Math.imul(N,rt)|0,a=Math.imul(N,nt),n=n+Math.imul(O,at)|0,i=i+Math.imul(O,ot)|0,i=i+Math.imul(R,at)|0,a=a+Math.imul(R,ot)|0,n=n+Math.imul(z,lt)|0,i=i+Math.imul(z,ut)|0,i=i+Math.imul(D,lt)|0,a=a+Math.imul(D,ut)|0,n=n+Math.imul(L,ht)|0,\n", "i=i+Math.imul(L,ft)|0,i=i+Math.imul(C,ht)|0,a=a+Math.imul(C,ft)|0,n=n+Math.imul(T,pt)|0,i=i+Math.imul(T,mt)|0,i=i+Math.imul(S,pt)|0,a=a+Math.imul(S,mt)|0;var Ct=(u+n|0)+((8191&i)<<13)|0;u=(a+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(j,at),i=Math.imul(j,ot),i=i+Math.imul(N,at)|0,a=Math.imul(N,ot),n=n+Math.imul(O,lt)|0,i=i+Math.imul(O,ut)|0,i=i+Math.imul(R,lt)|0,a=a+Math.imul(R,ut)|0,n=n+Math.imul(z,ht)|0,i=i+Math.imul(z,ft)|0,i=i+Math.imul(D,ht)|0,a=a+Math.imul(D,ft)|0,n=n+Math.imul(L,pt)|0,i=i+Math.imul(L,mt)|0,i=i+Math.imul(C,pt)|0,a=a+Math.imul(C,mt)|0;var It=(u+n|0)+((8191&i)<<13)|0;u=(a+(i>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(j,lt),i=Math.imul(j,ut),i=i+Math.imul(N,lt)|0,a=Math.imul(N,ut),n=n+Math.imul(O,ht)|0,i=i+Math.imul(O,ft)|0,i=i+Math.imul(R,ht)|0,a=a+Math.imul(R,ft)|0,n=n+Math.imul(z,pt)|0,i=i+Math.imul(z,mt)|0,i=i+Math.imul(D,pt)|0,a=a+Math.imul(D,mt)|0;var zt=(u+n|0)+((8191&i)<<13)|0;u=(a+(i>>>13)|0)+(zt>>>26)|0,zt&=67108863,n=Math.imul(j,ht),i=Math.imul(j,ft),i=i+Math.imul(N,ht)|0,a=Math.imul(N,ft),n=n+Math.imul(O,pt)|0,i=i+Math.imul(O,mt)|0,i=i+Math.imul(R,pt)|0,a=a+Math.imul(R,mt)|0;var Dt=(u+n|0)+((8191&i)<<13)|0;u=(a+(i>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,n=Math.imul(j,pt),i=Math.imul(j,mt),i=i+Math.imul(N,pt)|0,a=Math.imul(N,mt);var Pt=(u+n|0)+((8191&i)<<13)|0;return u=(a+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,l[0]=vt,l[1]=gt,l[2]=yt,l[3]=bt,l[4]=xt,l[5]=_t,l[6]=wt,l[7]=Mt,l[8]=kt,l[9]=At,l[10]=Tt,l[11]=St,l[12]=Et,l[13]=Lt,l[14]=Ct,l[15]=It,l[16]=zt,l[17]=Dt,l[18]=Pt,0!==u&&(l[19]=u,r.length++),r};Math.imul||(k=u),a.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?k(this,t,e):r<63?u(this,t,e):r<1024?c(this,t,e):h(this,t,e)},f.prototype.makeRBT=function(t){for(var e=new Array(t),r=a.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,r,t);return e},f.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},f.prototype.permute=function(t,e,r,n,i,a){for(var o=0;o<a;o++)n[o]=e[t[o]],i[o]=r[t[o]]},f.prototype.transform=function(t,e,r,n,i,a){this.permute(a,t,e,r,n,i);for(var o=1;o<i;o<<=1)for(var s=o<<1,l=Math.cos(2*Math.PI/s),u=Math.sin(2*Math.PI/s),c=0;c<i;c+=s)for(var h=l,f=u,d=0;d<o;d++){var p=r[c+d],m=n[c+d],v=r[c+d+o],g=n[c+d+o],y=h*v-f*g;g=h*g+f*v,v=y,r[c+d]=p+v,n[c+d]=m+g,r[c+d+o]=p-v,n[c+d+o]=m-g,d!==s&&(y=l*h-u*f,f=l*f+u*h,h=y)}},f.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},f.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},f.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&i,r=i<67108864?0:i/67108864|0}return t},f.prototype.convert13b=function(t,e,r,i){for(var a=0,o=0;o<e;o++)a+=0|t[o],r[2*o]=8191&a,a>>>=13,r[2*o+1]=8191&a,a>>>=13;for(o=2*e;o<i;++o)r[o]=0;n(0===a),n(0==(-8192&a))},f.prototype.stub=function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=0;return e},f.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),a=this.stub(n),o=new Array(n),s=new Array(n),l=new Array(n),u=new Array(n),c=new Array(n),h=new Array(n),f=r.words;f.length=n,this.convert13b(t.words,t.length,o,n),this.convert13b(e.words,e.length,u,n),this.transform(o,a,s,l,n,i),this.transform(u,a,c,h,n,i);for(var d=0;d<n;d++){var p=s[d]*c[d]-l[d]*h[d];l[d]=s[d]*h[d]+l[d]*c[d],s[d]=p}return this.conjugate(s,l,n),this.transform(s,l,f,a,n,i),this.conjugate(f,a,n),this.normalize13b(f,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r.strip()},a.prototype.mul=function(t){var e=new a(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},a.prototype.mulf=function(t){var e=new a(null);return e.words=new Array(this.length+t.length),h(this,t,e)},a.prototype.imul=function(t){return this.clone().mulTo(t,this)},a.prototype.imuln=function(t){n(\"number\"==typeof t),n(t<67108864);for(var e=0,r=0;r<this.length;r++){var i=(0|this.words[r])*t,a=(67108863&i)+(67108863&e);e>>=26,e+=i/67108864|0,e+=a>>>26,this.words[r]=67108863&a}return 0!==e&&(this.words[r]=e,this.length++),this},a.prototype.muln=function(t){return this.clone().imuln(t)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(t){var e=l(t);if(0===e.length)return new a(1);for(var r=this,n=0;n<e.length&&0===e[n];n++,r=r.sqr());if(++n<e.length)for(var i=r.sqr();n<e.length;n++,i=i.sqr())0!==e[n]&&(r=r.mul(i));return r},a.prototype.iushln=function(t){n(\"number\"==typeof t&&t>=0);var e,r=t%26,i=(t-r)/26,a=67108863>>>26-r<<26-r;if(0!==r){var o=0;for(e=0;e<this.length;e++){var s=this.words[e]&a,l=(0|this.words[e])-s<<r;this.words[e]=l|o,o=s>>>26-r}o&&(this.words[e]=o,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this.strip()},a.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},a.prototype.iushrn=function(t,e,r){n(\"number\"==typeof t&&t>=0);var i;i=e?(e-e%26)/26:0;var a=t%26,o=Math.min((t-a)/26,this.length),s=67108863^67108863>>>a<<a,l=r;if(i-=o,i=Math.max(0,i),l){for(var u=0;u<o;u++)l.words[u]=this.words[u];l.length=o}if(0===o);else if(this.length>o)for(this.length-=o,u=0;u<this.length;u++)this.words[u]=this.words[u+o];else this.words[0]=0,this.length=1;var c=0;for(u=this.length-1;u>=0&&(0!==c||u>=i);u--){var h=0|this.words[u];this.words[u]=c<<26-a|h>>>a,c=h&s}return l&&0!==c&&(l.words[l.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},a.prototype.shln=function(t){return this.clone().ishln(t)},a.prototype.ushln=function(t){return this.clone().iushln(t)},a.prototype.shrn=function(t){return this.clone().ishrn(t)},a.prototype.ushrn=function(t){return this.clone().iushrn(t)},a.prototype.testn=function(t){n(\"number\"==typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<<e;return!(this.length<=r)&&!!(this.words[r]&i)},a.prototype.imaskn=function(t){n(\"number\"==typeof t&&t>=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,\"imaskn works only with positive numbers\"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this.strip()},a.prototype.maskn=function(t){return this.clone().imaskn(t)},a.prototype.iaddn=function(t){return n(\"number\"==typeof t),n(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},a.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},a.prototype.isubn=function(t){if(n(\"number\"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},a.prototype.addn=function(t){return this.clone().iaddn(t)},a.prototype.subn=function(t){return this.clone().isubn(t)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(t,e,r){var i,a=t.length+r;this._expand(a);var o,s=0;for(i=0;i<t.length;i++){o=(0|this.words[i+r])+s;var l=(0|t.words[i])*e;o-=67108863&l,s=(o>>26)-(l/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)o=(0|this.words[i+r])+s,s=o>>26,this.words[i+r]=67108863&o;if(0===s)return this.strip();for(n(-1===s),s=0,i=0;i<this.length;i++)o=-(0|this.words[i])+s,s=o>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},a.prototype._wordDiv=function(t,e){var r=this.length-t.length,n=this.clone(),i=t,o=0|i.words[i.length-1];0!==(r=26-this._countBits(o))&&(i=i.ushln(r),n.iushln(r),o=0|i.words[i.length-1]);var s,l=n.length-i.length;if(\"mod\"!==e){s=new a(null),s.length=l+1,s.words=new Array(s.length);for(var u=0;u<s.length;u++)s.words[u]=0}var c=n.clone()._ishlnsubmul(i,1,l);0===c.negative&&(n=c,s&&(s.words[l]=1));for(var h=l-1;h>=0;h--){var f=67108864*(0|n.words[i.length+h])+(0|n.words[i.length+h-1]);for(f=Math.min(f/o|0,67108863),n._ishlnsubmul(i,f,h);0!==n.negative;)f--,n.negative=0,n._ishlnsubmul(i,1,h),n.isZero()||(n.negative^=1);s&&(s.words[h]=f)}return s&&s.strip(),n.strip(),\"div\"!==e&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},a.prototype.divmod=function(t,e,r){if(n(!t.isZero()),this.isZero())return{div:new a(0),mod:new a(0)};var i,o,s;return 0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),\"mod\"!==e&&(i=s.div.neg()),\"div\"!==e&&(o=s.mod.neg(),r&&0!==o.negative&&o.iadd(t)),{div:i,mod:o}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),\"mod\"!==e&&(i=s.div.neg()),{div:i,mod:s.mod}):0!=(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),\"div\"!==e&&(o=s.mod.neg(),r&&0!==o.negative&&o.isub(t)),{div:s.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new a(0),mod:this}:1===t.length?\"div\"===e?{div:this.divn(t.words[0]),mod:null}:\"mod\"===e?{div:null,mod:new a(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new a(this.modn(t.words[0]))}:this._wordDiv(t,e)},a.prototype.div=function(t){return this.divmod(t,\"div\",!1).div},a.prototype.mod=function(t){return this.divmod(t,\"mod\",!1).mod},a.prototype.umod=function(t){return this.divmod(t,\"mod\",!0).mod},a.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),a=r.cmp(n);return a<0||1===i&&0===a?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},a.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,r=0,i=this.length-1;i>=0;i--)r=(e*r+(0|this.words[i]))%t;return r},a.prototype.idivn=function(t){n(t<=67108863);for(var e=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*e;this.words[r]=i/t|0,e=i%t}return this.strip()},a.prototype.divn=function(t){return this.clone().idivn(t)},a.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new a(1),o=new a(0),s=new a(0),l=new a(1),u=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++u;for(var c=r.clone(),h=e.clone();!e.isZero();){for(var f=0,d=1;0==(e.words[0]&d)&&f<26;++f,d<<=1);if(f>0)for(e.iushrn(f);f-- >0;)(i.isOdd()||o.isOdd())&&(i.iadd(c),o.isub(h)),i.iushrn(1),o.iushrn(1);for(var p=0,m=1;0==(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||l.isOdd())&&(s.iadd(c),l.isub(h)),s.iushrn(1),l.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(s),o.isub(l)):(r.isub(e),s.isub(i),l.isub(o))}return{a:s,b:l,gcd:r.iushln(u)}},a.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new a(1),o=new a(0),s=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var l=0,u=1;0==(e.words[0]&u)&&l<26;++l,u<<=1);if(l>0)for(e.iushrn(l);l-- >0;)i.isOdd()&&i.iadd(s),i.iushrn(1);for(var c=0,h=1;0==(r.words[0]&h)&&c<26;++c,h<<=1);if(c>0)for(r.iushrn(c);c-- >0;)o.isOdd()&&o.iadd(s),o.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(o)):(r.isub(e),o.isub(i))}var f;return f=0===e.cmpn(1)?i:o,f.cmpn(0)<0&&f.iadd(t),f},a.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var a=e;e=r,r=a}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},a.prototype.invm=function(t){return this.egcd(t).a.umod(t)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(t){return this.words[0]&t},a.prototype.bincn=function(t){n(\"number\"==typeof t);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var a=i,o=r;0!==a&&o<this.length;o++){var s=0|this.words[o];s+=a,a=s>>>26,s&=67108863,this.words[o]=s}return 0!==a&&(this.words[o]=a,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(t){var e=t<0;if(0!==this.negative&&!e)return-1;if(0===this.negative&&e)return 1;this.strip();var r;if(this.length>1)r=1;else{e&&(t=-t),n(t<=67108863,\"Number is too big\");var i=0|this.words[0];r=i===t?0:i<t?-1:1}return 0!==this.negative?0|-r:r},a.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},a.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:n>i&&(e=1);break}}return e},a.prototype.gtn=function(t){return 1===this.cmpn(t)},a.prototype.gt=function(t){return 1===this.cmp(t)},a.prototype.gten=function(t){return this.cmpn(t)>=0},a.prototype.gte=function(t){return this.cmp(t)>=0},a.prototype.ltn=function(t){return-1===this.cmpn(t)},a.prototype.lt=function(t){return-1===this.cmp(t)},a.prototype.lten=function(t){return this.cmpn(t)<=0},a.prototype.lte=function(t){return this.cmp(t)<=0},a.prototype.eqn=function(t){return 0===this.cmpn(t)},a.prototype.eq=function(t){return 0===this.cmp(t)},a.red=function(t){return new y(t)},a.prototype.toRed=function(t){return n(!this.red,\"Already a number in reduction context\"),n(0===this.negative,\"red works only with positives\"),t.convertTo(this)._forceRed(t)},a.prototype.fromRed=function(){return n(this.red,\"fromRed works only with numbers in reduction context\"),this.red.convertFrom(this)},a.prototype._forceRed=function(t){return this.red=t,this},a.prototype.forceRed=function(t){return n(!this.red,\"Already a number in reduction context\"),this._forceRed(t)},a.prototype.redAdd=function(t){return n(this.red,\"redAdd works only with red numbers\"),this.red.add(this,t)},a.prototype.redIAdd=function(t){return n(this.red,\"redIAdd works only with red numbers\"),this.red.iadd(this,t)},a.prototype.redSub=function(t){return n(this.red,\"redSub works only with red numbers\"),this.red.sub(this,t)},a.prototype.redISub=function(t){return n(this.red,\"redISub works only with red numbers\"),this.red.isub(this,t)},a.prototype.redShl=function(t){return n(this.red,\"redShl works only with red numbers\"),this.red.shl(this,t)},a.prototype.redMul=function(t){return n(this.red,\"redMul works only with red numbers\"),this.red._verify2(this,t),this.red.mul(this,t)},a.prototype.redIMul=function(t){return n(this.red,\"redMul works only with red numbers\"),this.red._verify2(this,t),this.red.imul(this,t)},a.prototype.redSqr=function(){return n(this.red,\"redSqr works only with red numbers\"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return n(this.red,\"redISqr works only with red numbers\"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return n(this.red,\"redSqrt works only with red numbers\"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return n(this.red,\"redInvm works only with red numbers\"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return n(this.red,\"redNeg works only with red numbers\"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(t){return n(this.red&&!t.red,\"redPow(normalNum)\"),this.red._verify1(this),this.red.pow(this,t)};var A={k256:null,p224:null,p192:null,p25519:null};d.prototype._tmp=function(){var t=new a(null);return t.words=new Array(Math.ceil(this.n/13)),t},d.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),r=this.imulK(r),r=r.iadd(this.tmp),e=r.bitLength()}while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):r.strip(),r},d.prototype.split=function(t,e){t.iushrn(this.n,0,e)},d.prototype.imulK=function(t){return t.imul(this.k)},i(p,d),p.prototype.split=function(t,e){for(var r=Math.min(t.length,9),n=0;n<r;n++)e.words[n]=t.words[n];if(e.length=r,t.length<=9)return t.words[0]=0,void(t.length=1);var i=t.words[9];for(e.words[e.length++]=4194303&i,n=10;n<t.length;n++){var a=0|t.words[n];t.words[n-10]=(4194303&a)<<4|i>>>22,i=a}i>>>=22,t.words[n-10]=i,0===i&&t.length>10?t.length-=10:t.length-=9},p.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(m,d),i(v,d),i(g,d),g.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=19*(0|t.words[r])+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},a._prime=function(t){if(A[t])return A[t];var e;if(\"k256\"===t)e=new p;else if(\"p224\"===t)e=new m;else if(\"p192\"===t)e=new v;else{if(\"p25519\"!==t)throw new Error(\"Unknown prime \"+t);e=new g}return A[t]=e,e},y.prototype._verify1=function(t){n(0===t.negative,\"red works only with positives\"),n(t.red,\"red works only with red numbers\")},y.prototype._verify2=function(t,e){n(0==(t.negative|e.negative),\"red works only with positives\"),n(t.red&&t.red===e.red,\"red works only with red numbers\")},y.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},y.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},y.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},y.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},y.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},y.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},y.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},y.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},y.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},y.prototype.isqr=function(t){return this.imul(t,t.clone())},y.prototype.sqr=function(t){return this.mul(t,t)},y.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var r=this.m.add(new a(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),o=0;!i.isZero()&&0===i.andln(1);)o++,i.iushrn(1);n(!i.isZero());var s=new a(1).toRed(this),l=s.redNeg(),u=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new a(2*c*c).toRed(this);0!==this.pow(c,u).cmp(l);)c.redIAdd(l);for(var h=this.pow(c,i),f=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=o;0!==d.cmp(s);){for(var m=d,v=0;0!==m.cmp(s);v++)m=m.redSqr();n(v<p);var g=this.pow(h,new a(1).iushln(p-v-1));f=f.redMul(g),h=g.redSqr(),d=d.redMul(h),p=v}return f},y.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},y.prototype.pow=function(t,e){if(e.isZero())return new a(1);if(0===e.cmpn(1))return t.clone();var r=new Array(16);r[0]=new a(1).toRed(this),r[1]=t;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],t);var i=r[0],o=0,s=0,l=e.bitLength()%26;for(0===l&&(l=26),n=e.length-1;n>=0;n--){for(var u=e.words[n],c=l-1;c>=0;c--){var h=u>>c&1;i!==r[0]&&(i=this.sqr(i)),0!==h||0!==o?(o<<=1,o|=h,(4===++s||0===n&&0===c)&&(i=this.mul(i,r[o]),s=0,o=0)):s=0}l=26}return i},y.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},y.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},a.mont=function(t){return new b(t)},i(b,y),b.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},b.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},b.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},b.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new a(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},b.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(void 0===e||e,this)},{}],69:[function(t,e,r){\"use strict\";function n(t){var e,r,n,i=t.length,a=0;for(e=0;e<i;++e)a+=t[e].length;var o=new Array(a),s=0;for(e=0;e<i;++e){var l=t[e],u=l.length;for(r=0;r<u;++r){var c=o[s++]=new Array(u-1),h=0;for(n=0;n<u;++n)n!==r&&(c[h++]=l[n]);if(1&r){var f=c[1];c[1]=c[0],c[0]=f}}}return o}e.exports=n},{}],70:[function(t,e,r){\"use strict\";function n(t,e){for(var r=0;r<t;++r)if(!(e[r]<=e[r+t]))return!0;return!1}function i(t,e,r,i){for(var a=0,o=0,s=0,l=t.length;s<l;++s){var u=t[s];if(!n(e,u)){for(var c=0;c<2*e;++c)r[a++]=u[c];i[o++]=s}}return o}function a(t,e,r,n){var a=t.length,o=e.length;if(!(a<=0||o<=0)){var s=t[0].length>>>1;if(!(s<=0)){var l,u=h.mallocDouble(2*s*a),c=h.mallocInt32(a);if((a=i(t,s,u,c))>0){if(1===s&&n)f.init(a),l=f.sweepComplete(s,r,0,a,u,c,0,a,u,c);else{var p=h.mallocDouble(2*s*o),m=h.mallocInt32(o);o=i(e,s,p,m),o>0&&(f.init(a+o),l=1===s?f.sweepBipartite(s,r,0,a,u,c,0,o,p,m):d(s,r,n,a,u,c,o,p,m),h.free(p),h.free(m))}h.free(u),h.free(c)}return l}}}function o(t,e){c.push([t,e])}function s(t){return c=[],a(t,t,o,!0),c}function l(t,e){return c=[],a(t,e,o,!1),c}function u(t,e,r){switch(arguments.length){case 1:return s(t);case 2:return\"function\"==typeof e?a(t,t,e,!0):l(t,e);case 3:return a(t,e,r,!1);default:throw new Error(\"box-intersect: Invalid arguments\")}}e.exports=u;var c,h=t(\"typedarray-pool\"),f=t(\"./lib/sweep\"),d=t(\"./lib/intersect\")},{\"./lib/intersect\":72,\"./lib/sweep\":76,\"typedarray-pool\":541}],71:[function(t,e,r){\"use strict\";function n(t,e,r){var n=\"bruteForce\"+(t?\"Red\":\"Blue\")+(e?\"Flip\":\"\")+(r?\"Full\":\"\"),i=[\"function \",n,\"(\",w.join(),\"){\",\"var \",u,\"=2*\",a,\";\"],l=\"for(var i=\"+c+\",\"+p+\"=\"+u+\"*\"+c+\";i<\"+h+\";++i,\"+p+\"+=\"+u+\"){var x0=\"+f+\"[\"+o+\"+\"+p+\"],x1=\"+f+\"[\"+o+\"+\"+p+\"+\"+a+\"],xi=\"+d+\"[i];\",M=\"for(var j=\"+m+\",\"+b+\"=\"+u+\"*\"+m+\";j<\"+v+\";++j,\"+b+\"+=\"+u+\"){var y0=\"+g+\"[\"+o+\"+\"+b+\"],\"+(r?\"y1=\"+g+\"[\"+o+\"+\"+b+\"+\"+a+\"],\":\"\")+\"yi=\"+y+\"[j];\";return t?i.push(l,_,\":\",M):i.push(M,_,\":\",l),r?i.push(\"if(y1<x0||x1<y0)continue;\"):e?i.push(\"if(y0<=x0||x1<y0)continue;\"):i.push(\"if(y0<x0||x1<y0)continue;\"),i.push(\"for(var k=\"+o+\"+1;k<\"+a+\";++k){var r0=\"+f+\"[k+\"+p+\"],r1=\"+f+\"[k+\"+a+\"+\"+p+\"],b0=\"+g+\"[k+\"+b+\"],b1=\"+g+\"[k+\"+a+\"+\"+b+\"];if(r1<b0||b1<r0)continue \"+_+\";}var \"+x+\"=\"+s+\"(\"),e?i.push(\"yi,xi\"):i.push(\"xi,yi\"),i.push(\");if(\"+x+\"!==void 0)return \"+x+\";}}}\"),{name:n,code:i.join(\"\")}}function i(t){function e(e,r){var a=n(e,r,t);i.push(a.code),o.push(\"return \"+a.name+\"(\"+w.join()+\");\")}var r=\"bruteForce\"+(t?\"Full\":\"Partial\"),i=[],a=w.slice();t||a.splice(3,0,l);var o=[\"function \"+r+\"(\"+a.join()+\"){\"];o.push(\"if(\"+h+\"-\"+c+\">\"+v+\"-\"+m+\"){\"),t?(e(!0,!1),o.push(\"}else{\"),e(!1,!1)):(o.push(\"if(\"+l+\"){\"),e(!0,!0),o.push(\"}else{\"),e(!0,!1),o.push(\"}}else{if(\"+l+\"){\"),e(!1,!0),o.push(\"}else{\"),e(!1,!1),o.push(\"}\")),o.push(\"}}return \"+r);var s=i.join(\"\")+o.join(\"\");return new Function(s)()}var a=\"d\",o=\"ax\",s=\"vv\",l=\"fp\",u=\"es\",c=\"rs\",h=\"re\",f=\"rb\",d=\"ri\",p=\"rp\",m=\"bs\",v=\"be\",g=\"bb\",y=\"bi\",b=\"bp\",x=\"rv\",_=\"Q\",w=[a,o,s,c,h,f,d,m,v,g,y];r.partial=i(!1),r.full=i(!0)},{}],72:[function(t,e,r){\"use strict\";function n(t,e){var r=8*u.log2(e+1)*(t+1)|0,n=u.nextPow2(A*r);S.length<n&&(l.free(S),S=l.mallocInt32(n));var i=u.nextPow2(T*r);E<i&&(l.free(E),E=l.mallocDouble(i))}function i(t,e,r,n,i,a,o,s,l){var u=A*t;S[u]=e,S[u+1]=r,S[u+2]=n,S[u+3]=i,S[u+4]=a,S[u+5]=o;var c=T*t;E[c]=s,E[c+1]=l}function a(t,e,r,n,i,a,o,s,l,u,c){var h=2*t,f=l*h,d=u[f+e];t:for(var p=i,m=i*h;p<a;++p,m+=h){var v=o[m+e],g=o[m+e+t];if(!(d<v||g<d)&&(!n||d!==v)){for(var y=s[p],b=e+1;b<t;++b){var v=o[m+b],g=o[m+b+t],x=u[f+b],_=u[f+b+t];if(g<x||_<v)continue t}var w;if(void 0!==(w=n?r(c,y):r(y,c)))return w}}}function o(t,e,r,n,i,a,o,s,l,u){var c=2*t,h=s*c,f=l[h+e];t:for(var d=n,p=n*c;d<i;++d,p+=c){var m=o[d];if(m!==u){var v=a[p+e],g=a[p+e+t];if(!(f<v||g<f)){for(var y=e+1;y<t;++y){var v=a[p+y],g=a[p+y+t],b=l[h+y],x=l[h+y+t];if(g<b||x<v)continue t}var _=r(m,u);if(void 0!==_)return _}}}}function s(t,e,r,s,l,u,c,m,L){n(t,s+c);var C,I=0,z=2*t;for(i(I++,0,0,s,0,c,r?16:0,-1/0,1/0),r||i(I++,0,0,c,0,s,1,-1/0,1/0);I>0;){I-=1;var D=I*A,P=S[D],O=S[D+1],R=S[D+2],F=S[D+3],j=S[D+4],N=S[D+5],B=I*T,U=E[B],V=E[B+1],H=1&N,q=!!(16&N),G=l,Y=u,W=m,X=L;if(H&&(G=m,Y=L,W=l,X=u),!(2&N&&(R=_(t,P,O,R,G,Y,V),O>=R)||4&N&&(O=w(t,P,O,R,G,Y,U))>=R)){var Z=R-O,J=j-F;if(q){if(t*Z*(Z+J)<y){if(void 0!==(C=d.scanComplete(t,P,e,O,R,G,Y,F,j,W,X)))return C;continue}}else{if(t*Math.min(Z,J)<v){if(void 0!==(C=h(t,P,e,H,O,R,G,Y,F,j,W,X)))return C;continue}if(t*Z*J<g){if(void 0!==(C=d.scanBipartite(t,P,e,H,O,R,G,Y,F,j,W,X)))return C;continue}}var K=b(t,P,O,R,G,Y,U,V);if(O<K)if(t*(K-O)<v){if(void 0!==(C=f(t,P+1,e,O,K,G,Y,F,j,W,X)))return C}else if(P===t-2){if(void 0!==(C=H?d.sweepBipartite(t,e,F,j,W,X,O,K,G,Y):d.sweepBipartite(t,e,O,K,G,Y,F,j,W,X)))return C}else i(I++,P+1,O,K,F,j,H,-1/0,1/0),i(I++,P+1,F,j,O,K,1^H,-1/0,1/0);if(K<R){var Q=p(t,P,F,j,W,X),$=W[z*Q+P],tt=x(t,P,Q,j,W,X,$);if(tt<j&&i(I++,P,K,R,tt,j,(4|H)+(q?16:0),$,V),F<Q&&i(I++,P,K,R,F,Q,(2|H)+(q?16:0),U,$),Q+1===tt){if(void 0!==(C=q?o(t,P,e,K,R,G,Y,Q,W,X[Q]):a(t,P,e,H,K,R,G,Y,Q,W,X[Q])))return C}else if(Q<tt){var et;if(q){if(et=M(t,P,K,R,G,Y,$),K<et){var rt=x(t,P,K,et,G,Y,$);if(P===t-2){if(K<rt&&void 0!==(C=d.sweepComplete(t,e,K,rt,G,Y,Q,tt,W,X)))return C;if(rt<et&&void 0!==(C=d.sweepBipartite(t,e,rt,et,G,Y,Q,tt,W,X)))return C}else K<rt&&i(I++,P+1,K,rt,Q,tt,16,-1/0,1/0),rt<et&&(i(I++,P+1,rt,et,Q,tt,0,-1/0,1/0),i(I++,P+1,Q,tt,rt,et,1,-1/0,1/0))}}else et=H?k(t,P,K,R,G,Y,$):M(t,P,K,R,G,Y,$),K<et&&(P===t-2?C=H?d.sweepBipartite(t,e,Q,tt,W,X,K,et,G,Y):d.sweepBipartite(t,e,K,et,G,Y,Q,tt,W,X):(i(I++,P+1,K,et,Q,tt,H,-1/0,1/0),i(I++,P+1,Q,tt,K,et,1^H,-1/0,1/0)))}}}}}e.exports=s;var l=t(\"typedarray-pool\"),u=t(\"bit-twiddle\"),c=t(\"./brute\"),h=c.partial,f=c.full,d=t(\"./sweep\"),p=t(\"./median\"),m=t(\"./partition\"),v=128,g=1<<22,y=1<<22,b=m(\"!(lo>=p0)&&!(p1>=hi)\",[\"p0\",\"p1\"]),x=m(\"lo===p0\",[\"p0\"]),_=m(\"lo<p0\",[\"p0\"]),w=m(\"hi<=p0\",[\"p0\"]),M=m(\"lo<=p0&&p0<=hi\",[\"p0\"]),k=m(\"lo<p0&&p0<=hi\",[\"p0\"]),A=6,T=2,S=l.mallocInt32(1024),E=l.mallocDouble(1024)},{\"./brute\":71,\"./median\":73,\"./partition\":74,\"./sweep\":76,\"bit-twiddle\":67,\"typedarray-pool\":541}],73:[function(t,e,r){\"use strict\";function n(t,e,r,n,i,a){for(var o=2*t,s=o*(r+1)+e,l=r+1;l<n;++l,s+=o)for(var u=i[s],c=l,h=o*(l-1);c>r&&i[h+e]>u;--c,h-=o){for(var f=h,d=h+o,p=0;p<o;++p,++f,++d){var m=i[f];i[f]=i[d],i[d]=m}var v=a[c];a[c]=a[c-1],a[c-1]=v}}function i(t,e,r,i,a,l){if(i<=r+1)return r;for(var u=r,c=i,h=i+r>>>1,f=2*t,d=h,p=a[f*h+e];u<c;){if(c-u<s){n(t,e,u,c,a,l),p=a[f*h+e];break}var m=c-u,v=Math.random()*m+u|0,g=a[f*v+e],y=Math.random()*m+u|0,b=a[f*y+e],x=Math.random()*m+u|0,_=a[f*x+e];g<=b?_>=b?(d=y,p=b):g>=_?(d=v,p=g):(d=x,p=_):b>=_?(d=y,p=b):_>=g?(d=v,p=g):(d=x,p=_);for(var w=f*(c-1),M=f*d,k=0;k<f;++k,++w,++M){var A=a[w];a[w]=a[M],a[M]=A}var T=l[c-1];l[c-1]=l[d],l[d]=T,d=o(t,e,u,c-1,a,l,p);for(var w=f*(c-1),M=f*d,k=0;k<f;++k,++w,++M){var A=a[w];a[w]=a[M],a[M]=A}var T=l[c-1];if(l[c-1]=l[d],l[d]=T,h<d){for(c=d-1;u<c&&a[f*(c-1)+e]===p;)c-=1;c+=1}else{if(!(d<h))break;for(u=d+1;u<c&&a[f*u+e]===p;)u+=1}}return o(t,e,r,h,a,l,a[f*h+e])}e.exports=i;var a=t(\"./partition\"),o=a(\"lo<p0\",[\"p0\"]),s=8},{\"./partition\":74}],74:[function(t,e,r){\"use strict\";function n(t,e){var r=\"abcdef\".split(\"\").concat(e),n=[];return t.indexOf(\"lo\")>=0&&n.push(\"lo=e[k+n]\"),t.indexOf(\"hi\")>=0&&n.push(\"hi=e[k+o]\"),r.push(i.replace(\"_\",n.join()).replace(\"$\",t)),Function.apply(void 0,r)}e.exports=n;var i=\"for(var j=2*a,k=j*c,l=k,m=c,n=b,o=a+b,p=c;d>p;++p,k+=j){var _;if($)if(m===p)m+=1,l+=j;else{for(var s=0;j>s;++s){var t=e[k+s];e[k+s]=e[l],e[l++]=t}var u=f[p];f[p]=f[m],f[m++]=u}}return m\"},{}],75:[function(t,e,r){\"use strict\";function n(t,e){e<=4*f?i(0,e-1,t):h(0,e-1,t)}function i(t,e,r){for(var n=2*(t+1),i=t+1;i<=e;++i){for(var a=r[n++],o=r[n++],s=i,l=n-2;s-- >t;){var u=r[l-2],c=r[l-1];if(u<a)break;if(u===a&&c<o)break;r[l]=u,r[l+1]=c,l-=2}r[l]=a,r[l+1]=o}}function a(t,e,r){t*=2,e*=2;var n=r[t],i=r[t+1];r[t]=r[e],r[t+1]=r[e+1],r[e]=n,r[e+1]=i}function o(t,e,r){t*=2,e*=2,r[t]=r[e],r[t+1]=r[e+1]}function s(t,e,r,n){t*=2,e*=2,r*=2;var i=n[t],a=n[t+1];n[t]=n[e],n[t+1]=n[e+1],n[e]=n[r],n[e+1]=n[r+1],n[r]=i,n[r+1]=a}function l(t,e,r,n,i){t*=2,e*=2,i[t]=i[e],i[e]=r,i[t+1]=i[e+1],i[e+1]=n}function u(t,e,r){t*=2,e*=2;var n=r[t],i=r[e];return!(n<i)&&(n!==i||r[t+1]>r[e+1])}function c(t,e,r,n){t*=2;var i=n[t];return i<e||i===e&&n[t+1]<r}function h(t,e,r){var n=(e-t+1)/6|0,d=t+n,p=e-n,m=t+e>>1,v=m-n,g=m+n,y=d,b=v,x=m,_=g,w=p,M=t+1,k=e-1,A=0;u(y,b,r)&&(A=y,y=b,b=A),u(_,w,r)&&(A=_,_=w,w=A),u(y,x,r)&&(A=y,y=x,x=A),u(b,x,r)&&(A=b,b=x,x=A),u(y,_,r)&&(A=y,y=_,_=A),u(x,_,r)&&(A=x,x=_,_=A),u(b,w,r)&&(A=b,b=w,w=A),u(b,x,r)&&(A=b,b=x,x=A),u(_,w,r)&&(A=_,_=w,w=A);for(var T=r[2*b],S=r[2*b+1],E=r[2*_],L=r[2*_+1],C=2*y,I=2*x,z=2*w,D=2*d,P=2*m,O=2*p,R=0;R<2;++R){var F=r[C+R],j=r[I+R],N=r[z+R];r[D+R]=F,r[P+R]=j,r[O+R]=N}o(v,t,r),o(g,e,r);for(var B=M;B<=k;++B)if(c(B,T,S,r))B!==M&&a(B,M,r),++M;else if(!c(B,E,L,r))for(;;){if(c(k,E,L,r)){c(k,T,S,r)?(s(B,M,k,r),++M,--k):(a(B,k,r),--k);break}if(--k<B)break}l(t,M-1,T,S,r),l(e,k+1,E,L,r),M-2-t<=f?i(t,M-2,r):h(t,M-2,r),e-(k+2)<=f?i(k+2,e,r):h(k+2,e,r),k-M<=f?i(M,k,r):h(M,k,r)}e.exports=n;var f=32},{}],76:[function(t,e,r){\"use strict\";function n(t){var e=h.nextPow2(t);p.length<e&&(c.free(p),p=c.mallocInt32(e)),m.length<e&&(c.free(m),m=c.mallocInt32(e)),v.length<e&&(c.free(v),v=c.mallocInt32(e)),g.length<e&&(c.free(g),g=c.mallocInt32(e)),y.length<e&&(c.free(y),y=c.mallocInt32(e)),b.length<e&&(c.free(b),b=c.mallocInt32(e));var r=8*e;x.length<r&&(c.free(x),x=c.mallocDouble(r))}function i(t,e,r,n){var i=e[n],a=t[r-1];t[i]=a,e[a]=i}function a(t,e,r,n){t[r]=n,e[n]=r}function o(t,e,r,n,o,s,l,u,c,h){for(var y=0,b=2*t,_=t-1,w=b-1,M=r;M<n;++M){var k=s[M],A=b*M;x[y++]=o[A+_],x[y++]=-(k+1),x[y++]=o[A+w],x[y++]=k}for(var M=l;M<u;++M){var k=h[M]+d,T=b*M;x[y++]=c[T+_],x[y++]=-k,x[y++]=c[T+w],x[y++]=k}var S=y>>>1;f(x,S);for(var E=0,L=0,M=0;M<S;++M){var C=0|x[2*M+1];if(C>=d)C=C-d|0,i(v,g,L--,C);else if(C>=0)i(p,m,E--,C);else if(C<=-d){C=-C-d|0;for(var I=0;I<E;++I){var z=e(p[I],C);if(void 0!==z)return z}a(v,g,L++,C)}else{C=-C-1|0;for(var I=0;I<L;++I){var z=e(C,v[I]);if(void 0!==z)return z}a(p,m,E++,C)}}}function s(t,e,r,n,o,s,l,u,c,h){for(var d=0,_=2*t,w=t-1,M=_-1,k=r;k<n;++k){var A=s[k]+1<<1,T=_*k;x[d++]=o[T+w],x[d++]=-A,x[d++]=o[T+M],x[d++]=A}for(var k=l;k<u;++k){var A=h[k]+1<<1,S=_*k;x[d++]=c[S+w],x[d++]=1|-A,x[d++]=c[S+M],x[d++]=1|A}var E=d>>>1;f(x,E);for(var L=0,C=0,I=0,k=0;k<E;++k){var z=0|x[2*k+1],D=1&z;if(k<E-1&&z>>1==x[2*k+3]>>1&&(D=2,k+=1),z<0){for(var P=-(z>>1)-1,O=0;O<I;++O){var R=e(y[O],P);if(void 0!==R)return R}if(0!==D)for(var O=0;O<L;++O){var R=e(p[O],P);if(void 0!==R)return R}if(1!==D)for(var O=0;O<C;++O){var R=e(v[O],P);if(void 0!==R)return R}0===D?a(p,m,L++,P):1===D?a(v,g,C++,P):2===D&&a(y,b,I++,P)}else{var P=(z>>1)-1;0===D?i(p,m,L--,P):1===D?i(v,g,C--,P):2===D&&i(y,b,I--,P)}}}function l(t,e,r,n,o,s,l,u,c,h,v,g){var y=0,b=2*t,_=e,w=e+t,M=1,k=1;n?k=d:M=d\n", ";for(var A=o;A<s;++A){var T=A+M,S=b*A;x[y++]=l[S+_],x[y++]=-T,x[y++]=l[S+w],x[y++]=T}for(var A=c;A<h;++A){var T=A+k,E=b*A;x[y++]=v[E+_],x[y++]=-T}var L=y>>>1;f(x,L);for(var C=0,A=0;A<L;++A){var I=0|x[2*A+1];if(I<0){var T=-I,z=!1;if(T>=d?(z=!n,T-=d):(z=!!n,T-=1),z)a(p,m,C++,T);else{var D=g[T],P=b*T,O=v[P+e+1],R=v[P+e+1+t];t:for(var F=0;F<C;++F){var j=p[F],N=b*j;if(!(R<l[N+e+1]||l[N+e+1+t]<O)){for(var B=e+2;B<t;++B)if(v[P+B+t]<l[N+B]||l[N+B+t]<v[P+B])continue t;var U,V=u[j];if(void 0!==(U=n?r(D,V):r(V,D)))return U}}}}else i(p,m,C--,I-M)}}function u(t,e,r,n,i,a,o,s,l,u,c){for(var h=0,m=2*t,v=e,g=e+t,y=n;y<i;++y){var b=y+d,_=m*y;x[h++]=a[_+v],x[h++]=-b,x[h++]=a[_+g],x[h++]=b}for(var y=s;y<l;++y){var b=y+1,w=m*y;x[h++]=u[w+v],x[h++]=-b}var M=h>>>1;f(x,M);for(var k=0,y=0;y<M;++y){var A=0|x[2*y+1];if(A<0){var b=-A;if(b>=d)p[k++]=b-d;else{b-=1;var T=c[b],S=m*b,E=u[S+e+1],L=u[S+e+1+t];t:for(var C=0;C<k;++C){var I=p[C],z=o[I];if(z===T)break;var D=m*I;if(!(L<a[D+e+1]||a[D+e+1+t]<E)){for(var P=e+2;P<t;++P)if(u[S+P+t]<a[D+P]||a[D+P+t]<u[S+P])continue t;var O=r(z,T);if(void 0!==O)return O}}}}else{for(var b=A-d,C=k-1;C>=0;--C)if(p[C]===b){for(var P=C+1;P<k;++P)p[P-1]=p[P];break}--k}}}e.exports={init:n,sweepBipartite:o,sweepComplete:s,scanBipartite:l,scanComplete:u};var c=t(\"typedarray-pool\"),h=t(\"bit-twiddle\"),f=t(\"./sort\"),d=1<<28,p=c.mallocInt32(1024),m=c.mallocInt32(1024),v=c.mallocInt32(1024),g=c.mallocInt32(1024),y=c.mallocInt32(1024),b=c.mallocInt32(1024),x=c.mallocDouble(8192)},{\"./sort\":75,\"bit-twiddle\":67,\"typedarray-pool\":541}],77:[function(t,e,r){\"use strict\";function n(t){if(t>Z)throw new RangeError(\"Invalid typed array length\");var e=new Uint8Array(t);return e.__proto__=i.prototype,e}function i(t,e,r){if(\"number\"==typeof t){if(\"string\"==typeof e)throw new Error(\"If encoding is specified then the first argument must be a string\");return l(t)}return a(t,e,r)}function a(t,e,r){if(\"number\"==typeof t)throw new TypeError('\"value\" argument must not be a number');return t instanceof ArrayBuffer?h(t,e,r):\"string\"==typeof t?u(t,e):f(t)}function o(t){if(\"number\"!=typeof t)throw new TypeError('\"size\" argument must be a number');if(t<0)throw new RangeError('\"size\" argument must not be negative')}function s(t,e,r){return o(t),t<=0?n(t):void 0!==e?\"string\"==typeof r?n(t).fill(e,r):n(t).fill(e):n(t)}function l(t){return o(t),n(t<0?0:0|d(t))}function u(t,e){if(\"string\"==typeof e&&\"\"!==e||(e=\"utf8\"),!i.isEncoding(e))throw new TypeError('\"encoding\" must be a valid string encoding');var r=0|m(t,e),a=n(r),o=a.write(t,e);return o!==r&&(a=a.slice(0,o)),a}function c(t){for(var e=t.length<0?0:0|d(t.length),r=n(e),i=0;i<e;i+=1)r[i]=255&t[i];return r}function h(t,e,r){if(e<0||t.byteLength<e)throw new RangeError(\"'offset' is out of bounds\");if(t.byteLength<e+(r||0))throw new RangeError(\"'length' is out of bounds\");var n;return n=void 0===e&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,e):new Uint8Array(t,e,r),n.__proto__=i.prototype,n}function f(t){if(i.isBuffer(t)){var e=0|d(t.length),r=n(e);return 0===r.length?r:(t.copy(r,0,0,e),r)}if(t){if(G(t)||\"length\"in t)return\"number\"!=typeof t.length||Y(t.length)?n(0):c(t);if(\"Buffer\"===t.type&&Array.isArray(t.data))return c(t.data)}throw new TypeError(\"First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.\")}function d(t){if(t>=Z)throw new RangeError(\"Attempt to allocate Buffer larger than maximum size: 0x\"+Z.toString(16)+\" bytes\");return 0|t}function p(t){return+t!=t&&(t=0),i.alloc(+t)}function m(t,e){if(i.isBuffer(t))return t.length;if(G(t)||t instanceof ArrayBuffer)return t.byteLength;\"string\"!=typeof t&&(t=\"\"+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case\"ascii\":case\"latin1\":case\"binary\":return r;case\"utf8\":case\"utf-8\":case void 0:return B(t).length;case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return 2*r;case\"hex\":return r>>>1;case\"base64\":return H(t).length;default:if(n)return B(t).length;e=(\"\"+e).toLowerCase(),n=!0}}function v(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return\"\";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return\"\";if(r>>>=0,e>>>=0,r<=e)return\"\";for(t||(t=\"utf8\");;)switch(t){case\"hex\":return I(this,e,r);case\"utf8\":case\"utf-8\":return S(this,e,r);case\"ascii\":return L(this,e,r);case\"latin1\":case\"binary\":return C(this,e,r);case\"base64\":return T(this,e,r);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return z(this,e,r);default:if(n)throw new TypeError(\"Unknown encoding: \"+t);t=(t+\"\").toLowerCase(),n=!0}}function g(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function y(t,e,r,n,a){if(0===t.length)return-1;if(\"string\"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,Y(r)&&(r=a?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(a)return-1;r=t.length-1}else if(r<0){if(!a)return-1;r=0}if(\"string\"==typeof e&&(e=i.from(e,n)),i.isBuffer(e))return 0===e.length?-1:b(t,e,r,n,a);if(\"number\"==typeof e)return e&=255,\"function\"==typeof Uint8Array.prototype.indexOf?a?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):b(t,[e],r,n,a);throw new TypeError(\"val must be string, number or Buffer\")}function b(t,e,r,n,i){function a(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}var o=1,s=t.length,l=e.length;if(void 0!==n&&(\"ucs2\"===(n=String(n).toLowerCase())||\"ucs-2\"===n||\"utf16le\"===n||\"utf-16le\"===n)){if(t.length<2||e.length<2)return-1;o=2,s/=2,l/=2,r/=2}var u;if(i){var c=-1;for(u=r;u<s;u++)if(a(t,u)===a(e,-1===c?0:u-c)){if(-1===c&&(c=u),u-c+1===l)return c*o}else-1!==c&&(u-=u-c),c=-1}else for(r+l>s&&(r=s-l),u=r;u>=0;u--){for(var h=!0,f=0;f<l;f++)if(a(t,u+f)!==a(e,f)){h=!1;break}if(h)return u}return-1}function x(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n))>i&&(n=i):n=i;var a=e.length;if(a%2!=0)throw new TypeError(\"Invalid hex string\");n>a/2&&(n=a/2);for(var o=0;o<n;++o){var s=parseInt(e.substr(2*o,2),16);if(Y(s))return o;t[r+o]=s}return o}function _(t,e,r,n){return q(B(e,t.length-r),t,r,n)}function w(t,e,r,n){return q(U(e),t,r,n)}function M(t,e,r,n){return w(t,e,r,n)}function k(t,e,r,n){return q(H(e),t,r,n)}function A(t,e,r,n){return q(V(e,t.length-r),t,r,n)}function T(t,e,r){return 0===e&&r===t.length?W.fromByteArray(t):W.fromByteArray(t.slice(e,r))}function S(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var a=t[i],o=null,s=a>239?4:a>223?3:a>191?2:1;if(i+s<=r){var l,u,c,h;switch(s){case 1:a<128&&(o=a);break;case 2:l=t[i+1],128==(192&l)&&(h=(31&a)<<6|63&l)>127&&(o=h);break;case 3:l=t[i+1],u=t[i+2],128==(192&l)&&128==(192&u)&&(h=(15&a)<<12|(63&l)<<6|63&u)>2047&&(h<55296||h>57343)&&(o=h);break;case 4:l=t[i+1],u=t[i+2],c=t[i+3],128==(192&l)&&128==(192&u)&&128==(192&c)&&(h=(15&a)<<18|(63&l)<<12|(63&u)<<6|63&c)>65535&&h<1114112&&(o=h)}}null===o?(o=65533,s=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|1023&o),n.push(o),i+=s}return E(n)}function E(t){var e=t.length;if(e<=J)return String.fromCharCode.apply(String,t);for(var r=\"\",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=J));return r}function L(t,e,r){var n=\"\";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}function C(t,e,r){var n=\"\";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function I(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i=\"\",a=e;a<r;++a)i+=N(t[a]);return i}function z(t,e,r){for(var n=t.slice(e,r),i=\"\",a=0;a<n.length;a+=2)i+=String.fromCharCode(n[a]+256*n[a+1]);return i}function D(t,e,r){if(t%1!=0||t<0)throw new RangeError(\"offset is not uint\");if(t+e>r)throw new RangeError(\"Trying to access beyond buffer length\")}function P(t,e,r,n,a,o){if(!i.isBuffer(t))throw new TypeError('\"buffer\" argument must be a Buffer instance');if(e>a||e<o)throw new RangeError('\"value\" argument is out of bounds');if(r+n>t.length)throw new RangeError(\"Index out of range\")}function O(t,e,r,n,i,a){if(r+n>t.length)throw new RangeError(\"Index out of range\");if(r<0)throw new RangeError(\"Index out of range\")}function R(t,e,r,n,i){return e=+e,r>>>=0,i||O(t,e,r,4,3.4028234663852886e38,-3.4028234663852886e38),X.write(t,e,r,n,23,4),r+4}function F(t,e,r,n,i){return e=+e,r>>>=0,i||O(t,e,r,8,1.7976931348623157e308,-1.7976931348623157e308),X.write(t,e,r,n,52,8),r+8}function j(t){if(t=t.trim().replace(K,\"\"),t.length<2)return\"\";for(;t.length%4!=0;)t+=\"=\";return t}function N(t){return t<16?\"0\"+t.toString(16):t.toString(16)}function B(t,e){e=e||1/0;for(var r,n=t.length,i=null,a=[],o=0;o<n;++o){if((r=t.charCodeAt(o))>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&a.push(239,191,189);continue}if(o+1===n){(e-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&a.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;a.push(r)}else if(r<2048){if((e-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error(\"Invalid code point\");if((e-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return a}function U(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}function V(t,e){for(var r,n,i,a=[],o=0;o<t.length&&!((e-=2)<0);++o)r=t.charCodeAt(o),n=r>>8,i=r%256,a.push(i),a.push(n);return a}function H(t){return W.toByteArray(j(t))}function q(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function G(t){return\"function\"==typeof ArrayBuffer.isView&&ArrayBuffer.isView(t)}function Y(t){return t!==t}var W=t(\"base64-js\"),X=t(\"ieee754\");r.Buffer=i,r.SlowBuffer=p,r.INSPECT_MAX_BYTES=50;var Z=2147483647;r.kMaxLength=Z,i.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()}catch(t){return!1}}(),i.TYPED_ARRAY_SUPPORT||\"undefined\"==typeof console||\"function\"!=typeof console.error||console.error(\"This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.\"),\"undefined\"!=typeof Symbol&&Symbol.species&&i[Symbol.species]===i&&Object.defineProperty(i,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),i.poolSize=8192,i.from=function(t,e,r){return a(t,e,r)},i.prototype.__proto__=Uint8Array.prototype,i.__proto__=Uint8Array,i.alloc=function(t,e,r){return s(t,e,r)},i.allocUnsafe=function(t){return l(t)},i.allocUnsafeSlow=function(t){return l(t)},i.isBuffer=function(t){return null!=t&&!0===t._isBuffer},i.compare=function(t,e){if(!i.isBuffer(t)||!i.isBuffer(e))throw new TypeError(\"Arguments must be Buffers\");if(t===e)return 0;for(var r=t.length,n=e.length,a=0,o=Math.min(r,n);a<o;++a)if(t[a]!==e[a]){r=t[a],n=e[a];break}return r<n?-1:n<r?1:0},i.isEncoding=function(t){switch(String(t).toLowerCase()){case\"hex\":case\"utf8\":case\"utf-8\":case\"ascii\":case\"latin1\":case\"binary\":case\"base64\":case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return!0;default:return!1}},i.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('\"list\" argument must be an Array of Buffers');if(0===t.length)return i.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var n=i.allocUnsafe(e),a=0;for(r=0;r<t.length;++r){var o=t[r];if(!i.isBuffer(o))throw new TypeError('\"list\" argument must be an Array of Buffers');o.copy(n,a),a+=o.length}return n},i.byteLength=m,i.prototype._isBuffer=!0,i.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError(\"Buffer size must be a multiple of 16-bits\");for(var e=0;e<t;e+=2)g(this,e,e+1);return this},i.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError(\"Buffer size must be a multiple of 32-bits\");for(var e=0;e<t;e+=4)g(this,e,e+3),g(this,e+1,e+2);return this},i.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError(\"Buffer size must be a multiple of 64-bits\");for(var e=0;e<t;e+=8)g(this,e,e+7),g(this,e+1,e+6),g(this,e+2,e+5),g(this,e+3,e+4);return this},i.prototype.toString=function(){var t=this.length;return 0===t?\"\":0===arguments.length?S(this,0,t):v.apply(this,arguments)},i.prototype.equals=function(t){if(!i.isBuffer(t))throw new TypeError(\"Argument must be a Buffer\");return this===t||0===i.compare(this,t)},i.prototype.inspect=function(){var t=\"\",e=r.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString(\"hex\",0,e).match(/.{2}/g).join(\" \"),this.length>e&&(t+=\" ... \")),\"<Buffer \"+t+\">\"},i.prototype.compare=function(t,e,r,n,a){if(!i.isBuffer(t))throw new TypeError(\"Argument must be a Buffer\");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===a&&(a=this.length),e<0||r>t.length||n<0||a>this.length)throw new RangeError(\"out of range index\");if(n>=a&&e>=r)return 0;if(n>=a)return-1;if(e>=r)return 1;if(e>>>=0,r>>>=0,n>>>=0,a>>>=0,this===t)return 0;for(var o=a-n,s=r-e,l=Math.min(o,s),u=this.slice(n,a),c=t.slice(e,r),h=0;h<l;++h)if(u[h]!==c[h]){o=u[h],s=c[h];break}return o<s?-1:s<o?1:0},i.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},i.prototype.indexOf=function(t,e,r){return y(this,t,e,r,!0)},i.prototype.lastIndexOf=function(t,e,r){return y(this,t,e,r,!1)},i.prototype.write=function(t,e,r,n){if(void 0===e)n=\"utf8\",r=this.length,e=0;else if(void 0===r&&\"string\"==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error(\"Buffer.write(string, encoding, offset[, length]) is no longer supported\");e>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n=\"utf8\")):(n=r,r=void 0)}var i=this.length-e;if((void 0===r||r>i)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError(\"Attempt to write outside buffer bounds\");n||(n=\"utf8\");for(var a=!1;;)switch(n){case\"hex\":return x(this,t,e,r);case\"utf8\":case\"utf-8\":return _(this,t,e,r);case\"ascii\":return w(this,t,e,r);case\"latin1\":case\"binary\":return M(this,t,e,r);case\"base64\":return k(this,t,e,r);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return A(this,t,e,r);default:if(a)throw new TypeError(\"Unknown encoding: \"+n);n=(\"\"+n).toLowerCase(),a=!0}},i.prototype.toJSON=function(){return{type:\"Buffer\",data:Array.prototype.slice.call(this._arr||this,0)}};var J=4096;i.prototype.slice=function(t,e){var r=this.length;t=~~t,e=void 0===e?r:~~e,t<0?(t+=r)<0&&(t=0):t>r&&(t=r),e<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t);var n=this.subarray(t,e);return n.__proto__=i.prototype,n},i.prototype.readUIntLE=function(t,e,r){t>>>=0,e>>>=0,r||D(t,e,this.length);for(var n=this[t],i=1,a=0;++a<e&&(i*=256);)n+=this[t+a]*i;return n},i.prototype.readUIntBE=function(t,e,r){t>>>=0,e>>>=0,r||D(t,e,this.length);for(var n=this[t+--e],i=1;e>0&&(i*=256);)n+=this[t+--e]*i;return n},i.prototype.readUInt8=function(t,e){return t>>>=0,e||D(t,1,this.length),this[t]},i.prototype.readUInt16LE=function(t,e){return t>>>=0,e||D(t,2,this.length),this[t]|this[t+1]<<8},i.prototype.readUInt16BE=function(t,e){return t>>>=0,e||D(t,2,this.length),this[t]<<8|this[t+1]},i.prototype.readUInt32LE=function(t,e){return t>>>=0,e||D(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},i.prototype.readUInt32BE=function(t,e){return t>>>=0,e||D(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},i.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||D(t,e,this.length);for(var n=this[t],i=1,a=0;++a<e&&(i*=256);)n+=this[t+a]*i;return i*=128,n>=i&&(n-=Math.pow(2,8*e)),n},i.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||D(t,e,this.length);for(var n=e,i=1,a=this[t+--n];n>0&&(i*=256);)a+=this[t+--n]*i;return i*=128,a>=i&&(a-=Math.pow(2,8*e)),a},i.prototype.readInt8=function(t,e){return t>>>=0,e||D(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},i.prototype.readInt16LE=function(t,e){t>>>=0,e||D(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},i.prototype.readInt16BE=function(t,e){t>>>=0,e||D(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},i.prototype.readInt32LE=function(t,e){return t>>>=0,e||D(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},i.prototype.readInt32BE=function(t,e){return t>>>=0,e||D(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},i.prototype.readFloatLE=function(t,e){return t>>>=0,e||D(t,4,this.length),X.read(this,t,!0,23,4)},i.prototype.readFloatBE=function(t,e){return t>>>=0,e||D(t,4,this.length),X.read(this,t,!1,23,4)},i.prototype.readDoubleLE=function(t,e){return t>>>=0,e||D(t,8,this.length),X.read(this,t,!0,52,8)},i.prototype.readDoubleBE=function(t,e){return t>>>=0,e||D(t,8,this.length),X.read(this,t,!1,52,8)},i.prototype.writeUIntLE=function(t,e,r,n){if(t=+t,e>>>=0,r>>>=0,!n){P(this,t,e,r,Math.pow(2,8*r)-1,0)}var i=1,a=0;for(this[e]=255&t;++a<r&&(i*=256);)this[e+a]=t/i&255;return e+r},i.prototype.writeUIntBE=function(t,e,r,n){if(t=+t,e>>>=0,r>>>=0,!n){P(this,t,e,r,Math.pow(2,8*r)-1,0)}var i=r-1,a=1;for(this[e+i]=255&t;--i>=0&&(a*=256);)this[e+i]=t/a&255;return e+r},i.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,1,255,0),this[e]=255&t,e+1},i.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},i.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},i.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},i.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},i.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);P(this,t,e,r,i-1,-i)}var a=0,o=1,s=0;for(this[e]=255&t;++a<r&&(o*=256);)t<0&&0===s&&0!==this[e+a-1]&&(s=1),this[e+a]=(t/o>>0)-s&255;return e+r},i.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);P(this,t,e,r,i-1,-i)}var a=r-1,o=1,s=0;for(this[e+a]=255&t;--a>=0&&(o*=256);)t<0&&0===s&&0!==this[e+a+1]&&(s=1),this[e+a]=(t/o>>0)-s&255;return e+r},i.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},i.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},i.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},i.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},i.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},i.prototype.writeFloatLE=function(t,e,r){return R(this,t,e,!0,r)},i.prototype.writeFloatBE=function(t,e,r){return R(this,t,e,!1,r)},i.prototype.writeDoubleLE=function(t,e,r){return F(this,t,e,!0,r)},i.prototype.writeDoubleBE=function(t,e,r){return F(this,t,e,!1,r)},i.prototype.copy=function(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError(\"targetStart out of bounds\");if(r<0||r>=this.length)throw new RangeError(\"sourceStart out of bounds\");if(n<0)throw new RangeError(\"sourceEnd out of bounds\");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var i,a=n-r;if(this===t&&r<e&&e<n)for(i=a-1;i>=0;--i)t[i+e]=this[i+r];else if(a<1e3)for(i=0;i<a;++i)t[i+e]=this[i+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+a),e);return a},i.prototype.fill=function(t,e,r,n){if(\"string\"==typeof t){if(\"string\"==typeof e?(n=e,e=0,r=this.length):\"string\"==typeof r&&(n=r,r=this.length),1===t.length){var a=t.charCodeAt(0);a<256&&(t=a)}if(void 0!==n&&\"string\"!=typeof n)throw new TypeError(\"encoding must be a string\");if(\"string\"==typeof n&&!i.isEncoding(n))throw new TypeError(\"Unknown encoding: \"+n)}else\"number\"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<r)throw new RangeError(\"Out of range index\");if(r<=e)return this;e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0);var o;if(\"number\"==typeof t)for(o=e;o<r;++o)this[o]=t;else{var s=i.isBuffer(t)?t:new i(t,n),l=s.length;for(o=0;o<r-e;++o)this[o+e]=s[o%l]}return this};var K=/[^+\\/0-9A-Za-z-_]/g},{\"base64-js\":78,ieee754:289}],78:[function(t,e,r){\"use strict\";function n(t){var e=t.length;if(e%4>0)throw new Error(\"Invalid string. Length must be a multiple of 4\");return\"=\"===t[e-2]?2:\"=\"===t[e-1]?1:0}function i(t){return 3*t.length/4-n(t)}function a(t){var e,r,i,a,o,s,l=t.length;o=n(t),s=new h(3*l/4-o),i=o>0?l-4:l;var u=0;for(e=0,r=0;e<i;e+=4,r+=3)a=c[t.charCodeAt(e)]<<18|c[t.charCodeAt(e+1)]<<12|c[t.charCodeAt(e+2)]<<6|c[t.charCodeAt(e+3)],s[u++]=a>>16&255,s[u++]=a>>8&255,s[u++]=255&a;return 2===o?(a=c[t.charCodeAt(e)]<<2|c[t.charCodeAt(e+1)]>>4,s[u++]=255&a):1===o&&(a=c[t.charCodeAt(e)]<<10|c[t.charCodeAt(e+1)]<<4|c[t.charCodeAt(e+2)]>>2,s[u++]=a>>8&255,s[u++]=255&a),s}function o(t){return u[t>>18&63]+u[t>>12&63]+u[t>>6&63]+u[63&t]}function s(t,e,r){for(var n,i=[],a=e;a<r;a+=3)n=(t[a]<<16)+(t[a+1]<<8)+t[a+2],i.push(o(n));return i.join(\"\")}function l(t){for(var e,r=t.length,n=r%3,i=\"\",a=[],o=0,l=r-n;o<l;o+=16383)a.push(s(t,o,o+16383>l?l:o+16383));return 1===n?(e=t[r-1],i+=u[e>>2],i+=u[e<<4&63],i+=\"==\"):2===n&&(e=(t[r-2]<<8)+t[r-1],i+=u[e>>10],i+=u[e>>4&63],i+=u[e<<2&63],i+=\"=\"),a.push(i),a.join(\"\")}r.byteLength=i,r.toByteArray=a,r.fromByteArray=l;for(var u=[],c=[],h=\"undefined\"!=typeof Uint8Array?Uint8Array:Array,f=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",d=0,p=f.length;d<p;++d)u[d]=f[d],c[f.charCodeAt(d)]=d;c[\"-\".charCodeAt(0)]=62,c[\"_\".charCodeAt(0)]=63},{}],79:[function(t,e,r){\"use strict\";function n(t){return[Math.min(t[0],t[1]),Math.max(t[0],t[1])]}function i(t,e){return t[0]-e[0]||t[1]-e[1]}function a(t){return t.map(n).sort(i)}function o(t,e,r){return e in t?t[e]:r}function s(t,e,r){Array.isArray(e)?(r=r||{},e=e||[]):(r=e||{},e=[]);var n=!!o(r,\"delaunay\",!0),i=!!o(r,\"interior\",!0),s=!!o(r,\"exterior\",!0),f=!!o(r,\"infinity\",!1);if(!i&&!s||0===t.length)return[];var d=l(t,e);if(n||i!==s||f){for(var p=u(t.length,a(e)),m=0;m<d.length;++m){var v=d[m];p.addTriangle(v[0],v[1],v[2])}return n&&c(t,p),s?i?f?h(p,0,f):p.cells():h(p,1,f):h(p,-1)}return d}var l=t(\"./lib/monotone\"),u=t(\"./lib/triangulation\"),c=t(\"./lib/delaunay\"),h=t(\"./lib/filter\");e.exports=s},{\"./lib/delaunay\":80,\"./lib/filter\":81,\"./lib/monotone\":82,\"./lib/triangulation\":83}],80:[function(t,e,r){\"use strict\";function n(t,e,r,n,i,o){var s=e.opposite(n,i);if(!(s<0)){if(i<n){var l=n;n=i,i=l,l=o,o=s,s=l}e.isConstraint(n,i)||a(t[n],t[i],t[o],t[s])<0&&r.push(n,i)}}function i(t,e){for(var r=[],i=t.length,o=e.stars,s=0;s<i;++s)for(var l=o[s],u=1;u<l.length;u+=2){var c=l[u];if(!(c<s)&&!e.isConstraint(s,c)){for(var h=l[u-1],f=-1,d=1;d<l.length;d+=2)if(l[d-1]===c){f=l[d];break}f<0||a(t[s],t[c],t[h],t[f])<0&&r.push(s,c)}}for(;r.length>0;){for(var c=r.pop(),s=r.pop(),h=-1,f=-1,l=o[s],p=1;p<l.length;p+=2){var m=l[p-1],v=l[p];m===c?f=v:v===c&&(h=m)}h<0||f<0||(a(t[s],t[c],t[h],t[f])>=0||(e.flip(s,c),n(t,e,r,h,s,f),n(t,e,r,s,f,h),n(t,e,r,f,c,h),n(t,e,r,c,h,f)))}}var a=t(\"robust-in-sphere\")[4];t(\"binary-search-bounds\");e.exports=i},{\"binary-search-bounds\":84,\"robust-in-sphere\":506}],81:[function(t,e,r){\"use strict\";function n(t,e,r,n,i,a,o){this.cells=t,this.neighbor=e,this.flags=n,this.constraint=r,this.active=i,this.next=a,this.boundary=o}function i(t,e){return t[0]-e[0]||t[1]-e[1]||t[2]-e[2]}function a(t,e){for(var r=t.cells(),a=r.length,o=0;o<a;++o){var s=r[o],l=s[0],u=s[1],c=s[2];u<c?u<l&&(s[0]=u,s[1]=c,s[2]=l):c<l&&(s[0]=c,s[1]=l,s[2]=u)}r.sort(i);for(var h=new Array(a),o=0;o<h.length;++o)h[o]=0;var f=[],d=[],p=new Array(3*a),m=new Array(3*a),v=null;e&&(v=[]);for(var g=new n(r,p,m,h,f,d,v),o=0;o<a;++o)for(var s=r[o],y=0;y<3;++y){var l=s[y],u=s[(y+1)%3],b=p[3*o+y]=g.locate(u,l,t.opposite(u,l)),x=m[3*o+y]=t.isConstraint(l,u);b<0&&(x?d.push(o):(f.push(o),h[o]=1),e&&v.push([u,l,-1]))}return g}function o(t,e,r){for(var n=0,i=0;i<t.length;++i)e[i]===r&&(t[n++]=t[i]);return t.length=n,t}function s(t,e,r){var n=a(t,r);if(0===e)return r?n.cells.concat(n.boundary):n.cells;for(var i=1,s=n.active,l=n.next,u=n.flags,c=n.cells,h=n.constraint,f=n.neighbor;s.length>0||l.length>0;){for(;s.length>0;){var d=s.pop();if(u[d]!==-i){u[d]=i;for(var p=(c[d],0);p<3;++p){var m=f[3*d+p];m>=0&&0===u[m]&&(h[3*d+p]?l.push(m):(s.push(m),u[m]=i))}}}var v=l;l=s,s=v,l.length=0,i=-i}var g=o(c,u,e);return r?g.concat(n.boundary):g}var l=t(\"binary-search-bounds\");e.exports=s,n.prototype.locate=function(){var t=[0,0,0];return function(e,r,n){var a=e,o=r,s=n;return r<n?r<e&&(a=r,o=n,s=e):n<e&&(a=n,o=e,s=r),a<0?-1:(t[0]=a,t[1]=o,t[2]=s,l.eq(this.cells,t,i))}}()},{\"binary-search-bounds\":84}],82:[function(t,e,r){\"use strict\";function n(t,e,r,n,i){this.a=t,this.b=e,this.idx=r,this.lowerIds=n,this.upperIds=i}function i(t,e,r,n){this.a=t,this.b=e,this.type=r,this.idx=n}function a(t,e){var r=t.a[0]-e.a[0]||t.a[1]-e.a[1]||t.type-e.type;return r||(t.type!==p&&(r=d(t.a,t.b,e.b))?r:t.idx-e.idx)}function o(t,e){return d(t.a,t.b,e)}function s(t,e,r,n,i){for(var a=f.lt(e,n,o),s=f.gt(e,n,o),l=a;l<s;++l){for(var u=e[l],c=u.lowerIds,h=c.length;h>1&&d(r[c[h-2]],r[c[h-1]],n)>0;)t.push([c[h-1],c[h-2],i]),h-=1;c.length=h,c.push(i);for(var p=u.upperIds,h=p.length;h>1&&d(r[p[h-2]],r[p[h-1]],n)<0;)t.push([p[h-2],p[h-1],i]),h-=1;p.length=h,p.push(i)}}function l(t,e){var r;return(r=t.a[0]<e.a[0]?d(t.a,t.b,e.a):d(e.b,e.a,t.a))?r:(r=e.b[0]<t.b[0]?d(t.a,t.b,e.b):d(e.b,e.a,t.b))||t.idx-e.idx}function u(t,e,r){var i=f.le(t,r,l),a=t[i],o=a.upperIds,s=o[o.length-1];a.upperIds=[s],t.splice(i+1,0,new n(r.a,r.b,r.idx,[s],o))}function c(t,e,r){var n=r.a;r.a=r.b,r.b=n;var i=f.eq(t,r,l),a=t[i];t[i-1].upperIds=a.upperIds,t.splice(i,1)}function h(t,e){for(var r=t.length,o=e.length,l=[],h=0;h<r;++h)l.push(new i(t[h],null,p,h));for(var h=0;h<o;++h){var f=e[h],d=t[f[0]],g=t[f[1]];d[0]<g[0]?l.push(new i(d,g,v,h),new i(g,d,m,h)):d[0]>g[0]&&l.push(new i(g,d,v,h),new i(d,g,m,h))}l.sort(a);for(var y=l[0].a[0]-(1+Math.abs(l[0].a[0]))*Math.pow(2,-52),b=[new n([y,1],[y,0],-1,[],[],[],[])],x=[],h=0,_=l.length;h<_;++h){var w=l[h],M=w.type;M===p?s(x,b,t,w.a,w.idx):M===v?u(b,t,w):c(b,t,w)}return x}var f=t(\"binary-search-bounds\"),d=t(\"robust-orientation\")[3],p=0,m=1,v=2;e.exports=h},{\"binary-search-bounds\":84,\"robust-orientation\":508}],83:[function(t,e,r){\"use strict\";function n(t,e){this.stars=t,this.edges=e}function i(t,e,r){for(var n=1,i=t.length;n<i;n+=2)if(t[n-1]===e&&t[n]===r)return t[n-1]=t[i-2],t[n]=t[i-1],void(t.length=i-2)}function a(t,e){for(var r=new Array(t),i=0;i<t;++i)r[i]=[];return new n(r,e)}var o=t(\"binary-search-bounds\");e.exports=a;var s=n.prototype;s.isConstraint=function(){function t(t,e){return t[0]-e[0]||t[1]-e[1]}var e=[0,0];return function(r,n){return e[0]=Math.min(r,n),e[1]=Math.max(r,n),o.eq(this.edges,e,t)>=0}}(),s.removeTriangle=function(t,e,r){var n=this.stars;i(n[t],e,r),i(n[e],r,t),i(n[r],t,e)},s.addTriangle=function(t,e,r){var n=this.stars;n[t].push(e,r),n[e].push(r,t),n[r].push(t,e)},s.opposite=function(t,e){for(var r=this.stars[e],n=1,i=r.length;n<i;n+=2)if(r[n]===t)return r[n-1];return-1},s.flip=function(t,e){var r=this.opposite(t,e),n=this.opposite(e,t);this.removeTriangle(t,e,r),this.removeTriangle(e,t,n),this.addTriangle(t,n,r),this.addTriangle(e,r,n)},s.edges=function(){for(var t=this.stars,e=[],r=0,n=t.length;r<n;++r)for(var i=t[r],a=0,o=i.length;a<o;a+=2)e.push([i[a],i[a+1]]);return e},s.cells=function(){for(var t=this.stars,e=[],r=0,n=t.length;r<n;++r)for(var i=t[r],a=0,o=i.length;a<o;a+=2){var s=i[a],l=i[a+1];r<Math.min(s,l)&&e.push([r,s,l])}return e}},{\"binary-search-bounds\":84}],84:[function(t,e,r){\"use strict\";function n(t,e,r,n,i){var a=[\"function \",t,\"(a,l,h,\",n.join(\",\"),\"){\",i?\"\":\"var i=\",r?\"l-1\":\"h+1\",\";while(l<=h){var m=(l+h)>>>1,x=a[m]\"];return i?e.indexOf(\"c\")<0?a.push(\";if(x===y){return m}else if(x<=y){\"):a.push(\";var p=c(x,y);if(p===0){return m}else if(p<=0){\"):a.push(\";if(\",e,\"){i=m;\"),r?a.push(\"l=m+1}else{h=m-1}\"):a.push(\"h=m-1}else{l=m+1}\"),a.push(\"}\"),i?a.push(\"return -1};\"):a.push(\"return i};\"),a.join(\"\")}function i(t,e,r,i){return new Function([n(\"A\",\"x\"+t+\"y\",e,[\"y\"],i),n(\"P\",\"c(x,y)\"+t+\"0\",e,[\"y\",\"c\"],i),\"function dispatchBsearch\",r,\"(a,y,c,l,h){if(typeof(c)==='function'){return P(a,(l===void 0)?0:l|0,(h===void 0)?a.length-1:h|0,y,c)}else{return A(a,(c===void 0)?0:c|0,(l===void 0)?a.length-1:l|0,y)}}return dispatchBsearch\",r].join(\"\"))()}e.exports={ge:i(\">=\",!1,\"GE\"),gt:i(\">\",!1,\"GT\"),lt:i(\"<\",!0,\"LT\"),le:i(\"<=\",!0,\"LE\"),eq:i(\"-\",!0,\"EQ\",!0)}},{}],85:[function(t,e,r){\"use strict\";function n(t){for(var e=1,r=1;r<t.length;++r)for(var n=0;n<r;++n)if(t[r]<t[n])e=-e;else if(t[n]===t[r])return 0;return e}e.exports=n},{}],86:[function(t,e,r){\"use strict\";function n(t,e){for(var r=0,n=t.length,i=0;i<n;++i)r+=t[i]*e[i];return r}function i(t){var e=t.length;if(0===e)return[];var r=(t[0].length,o([t.length+1,t.length+1],1)),i=o([t.length+1],1);r[e][e]=0;for(var a=0;a<e;++a){for(var l=0;l<=a;++l)r[l][a]=r[a][l]=2*n(t[a],t[l]);i[a]=n(t[a],t[a])}for(var u=s(r,i),c=0,h=u[e+1],a=0;a<h.length;++a)c+=h[a];for(var f=new Array(e),a=0;a<e;++a){for(var h=u[a],d=0,l=0;l<h.length;++l)d+=h[l];f[a]=d/c}return f}function a(t){if(0===t.length)return[];for(var e=t[0].length,r=o([e]),n=i(t),a=0;a<t.length;++a)for(var s=0;s<e;++s)r[s]+=t[a][s]*n[a];return r}var o=t(\"dup\"),s=t(\"robust-linear-solve\");a.barycenetric=i,e.exports=a},{dup:125,\"robust-linear-solve\":507}],87:[function(t,e,r){function n(t){for(var e=i(t),r=0,n=0;n<t.length;++n)for(var a=t[n],o=0;o<e.length;++o)r+=Math.pow(a[o]-e[o],2);return Math.sqrt(r/t.length)}e.exports=n;var i=t(\"circumcenter\")},{circumcenter:86}],88:[function(t,e,r){function n(t,e,r){return e<r?t<e?e:t>r?r:t:t<r?r:t>e?e:t}e.exports=n},{}],89:[function(t,e,r){\"use strict\";function n(t){var e=_(t);return[M(e,-1/0),M(e,1/0)]}function i(t,e){for(var r=new Array(e.length),n=0;n<e.length;++n){var i=e[n],a=t[i[0]],o=t[i[1]];r[n]=[M(Math.min(a[0],o[0]),-1/0),M(Math.min(a[1],o[1]),-1/0),M(Math.max(a[0],o[0]),1/0),M(Math.max(a[1],o[1]),1/0)]}return r}function a(t){for(var e=new Array(t.length),r=0;r<t.length;++r){var n=t[r];e[r]=[M(n[0],-1/0),M(n[1],-1/0),M(n[0],1/0),M(n[1],1/0)]}return e}function o(t,e,r){var n=[];return g(r,function(r,i){var a=e[r],o=e[i];if(a[0]!==o[0]&&a[0]!==o[1]&&a[1]!==o[0]&&a[1]!==o[1]){var s=t[a[0]],l=t[a[1]],u=t[o[0]],c=t[o[1]];y(s,l,u,c)&&n.push([r,i])}}),n}function s(t,e,r,n){var i=[];return g(r,n,function(r,n){var a=e[r];if(a[0]!==n&&a[1]!==n){var o=t[n],s=t[a[0]],l=t[a[1]];y(s,l,o,o)&&i.push([r,n])}}),i}function l(t,e,r,n,i){var a,o,s=t.map(function(t){return[b(t[0]),b(t[1])]});for(a=0;a<r.length;++a){var l=r[a];o=l[0];var u=l[1],c=e[o],h=e[u],f=k(w(t[c[0]]),w(t[c[1]]),w(t[h[0]]),w(t[h[1]]));if(f){var d=t.length;t.push([_(f[0]),_(f[1])]),s.push(f),n.push([o,d],[u,d])}}for(n.sort(function(t,e){if(t[0]!==e[0])return t[0]-e[0];var r=s[t[1]],n=s[e[1]];return x(r[0],n[0])||x(r[1],n[1])}),a=n.length-1;a>=0;--a){var p=n[a];o=p[0];var m=e[o],v=m[0],g=m[1],y=t[v],M=t[g];if((y[0]-M[0]||y[1]-M[1])<0){var A=v;v=g,g=A}m[0]=v;var T,S=m[1]=p[1];for(i&&(T=m[2]);a>0&&n[a-1][0]===o;){var p=n[--a],E=p[1];i?e.push([S,E,T]):e.push([S,E]),S=E}i?e.push([S,g,T]):e.push([S,g])}return s}function u(t,e,r){for(var i=e.length,a=new v(i),o=[],s=0;s<e.length;++s){var l=e[s],u=n(l[0]),c=n(l[1]);o.push([M(u[0],-1/0),M(c[0],-1/0),M(u[1],1/0),M(c[1],1/0)])}g(o,function(t,e){a.link(t,e)});for(var h=!0,f=new Array(i),s=0;s<i;++s){var d=a.find(s);d!==s&&(h=!1,t[d]=[Math.min(t[s][0],t[d][0]),Math.min(t[s][1],t[d][1])])}if(h)return null;for(var p=0,s=0;s<i;++s){var d=a.find(s);d===s?(f[s]=p,t[p++]=t[s]):f[s]=-1}t.length=p;for(var s=0;s<i;++s)f[s]<0&&(f[s]=f[a.find(s)]);return f}function c(t,e){return t[0]-e[0]||t[1]-e[1]}function h(t,e){var r=t[0]-e[0]||t[1]-e[1];return r||(t[2]<e[2]?-1:t[2]>e[2]?1:0)}\n", "function f(t,e,r){if(0!==t.length){if(e)for(var n=0;n<t.length;++n){var i=t[n],a=e[i[0]],o=e[i[1]];i[0]=Math.min(a,o),i[1]=Math.max(a,o)}else for(var n=0;n<t.length;++n){var i=t[n],a=i[0],o=i[1];i[0]=Math.min(a,o),i[1]=Math.max(a,o)}r?t.sort(h):t.sort(c);for(var s=1,n=1;n<t.length;++n){var l=t[n-1],u=t[n];(u[0]!==l[0]||u[1]!==l[1]||r&&u[2]!==l[2])&&(t[s++]=u)}t.length=s}}function d(t,e,r){var n=u(t,[],a(t));return f(e,n,r),!!n}function p(t,e,r){var n=i(t,e),c=o(t,e,n),h=a(t),d=s(t,e,n,h),p=l(t,e,c,d,r),m=u(t,p,h);return f(e,m,r),!!m||(c.length>0||d.length>0)}function m(t,e,r){var n;if(r){n=e;for(var i=new Array(e.length),a=0;a<e.length;++a){var o=e[a];i[a]=[o[0],o[1],r[a]]}e=i}for(var s=d(t,e,!!r);p(t,e,!!r);)s=!0;if(r&&s){n.length=0,r.length=0;for(var a=0;a<e.length;++a){var o=e[a];n.push([o[0],o[1]]),r.push(o[2])}}return s}e.exports=m;var v=t(\"union-find\"),g=t(\"box-intersect\"),y=t(\"robust-segment-intersect\"),b=t(\"big-rat\"),x=t(\"big-rat/cmp\"),_=t(\"big-rat/to-float\"),w=t(\"rat-vec\"),M=t(\"nextafter\"),k=t(\"./lib/rat-seg-intersect\")},{\"./lib/rat-seg-intersect\":90,\"big-rat\":53,\"big-rat/cmp\":51,\"big-rat/to-float\":65,\"box-intersect\":70,nextafter:468,\"rat-vec\":495,\"robust-segment-intersect\":511,\"union-find\":542}],90:[function(t,e,r){\"use strict\";function n(t,e){return s(a(t[0],e[1]),a(t[1],e[0]))}function i(t,e,r,i){var a=u(e,t),s=u(i,r),f=n(a,s);if(0===l(f))return null;var d=u(t,r),p=n(s,d),m=o(p,f),v=h(a,m);return c(t,v)}e.exports=i;var a=t(\"big-rat/mul\"),o=t(\"big-rat/div\"),s=t(\"big-rat/sub\"),l=t(\"big-rat/sign\"),u=t(\"rat-vec/sub\"),c=t(\"rat-vec/add\"),h=t(\"rat-vec/muls\")},{\"big-rat/div\":52,\"big-rat/mul\":62,\"big-rat/sign\":63,\"big-rat/sub\":64,\"rat-vec/add\":494,\"rat-vec/muls\":496,\"rat-vec/sub\":497}],91:[function(t,e,r){(function(t){var r=function(){\"use strict\";function e(r,n,i,a){function s(r,i){if(null===r)return null;if(0==i)return r;var h,f;if(\"object\"!=typeof r)return r;if(e.__isArray(r))h=[];else if(e.__isRegExp(r))h=new RegExp(r.source,o(r)),r.lastIndex&&(h.lastIndex=r.lastIndex);else if(e.__isDate(r))h=new Date(r.getTime());else{if(c&&t.isBuffer(r))return h=new t(r.length),r.copy(h),h;void 0===a?(f=Object.getPrototypeOf(r),h=Object.create(f)):(h=Object.create(a),f=a)}if(n){var d=l.indexOf(r);if(-1!=d)return u[d];l.push(r),u.push(h)}for(var p in r){var m;f&&(m=Object.getOwnPropertyDescriptor(f,p)),m&&null==m.set||(h[p]=s(r[p],i-1))}return h}\"object\"==typeof n&&(i=n.depth,a=n.prototype,n.filter,n=n.circular);var l=[],u=[],c=void 0!==t;return void 0===n&&(n=!0),void 0===i&&(i=1/0),s(r,i)}function r(t){return Object.prototype.toString.call(t)}function n(t){return\"object\"==typeof t&&\"[object Date]\"===r(t)}function i(t){return\"object\"==typeof t&&\"[object Array]\"===r(t)}function a(t){return\"object\"==typeof t&&\"[object RegExp]\"===r(t)}function o(t){var e=\"\";return t.global&&(e+=\"g\"),t.ignoreCase&&(e+=\"i\"),t.multiline&&(e+=\"m\"),e}return e.clonePrototype=function(t){if(null===t)return null;var e=function(){};return e.prototype=t,new e},e.__objToStr=r,e.__isDate=n,e.__isArray=i,e.__isRegExp=a,e.__getRegExpFlags=o,e}();\"object\"==typeof e&&e.exports&&(e.exports=r)}).call(this,t(\"buffer\").Buffer)},{buffer:77}],92:[function(t,e,r){\"use strict\";function n(t,e){null==e&&(e=!0);var r=t[0],n=t[1],i=t[2],o=t[3];return null==o&&(o=e?1:255),e&&(r*=255,n*=255,i*=255,o*=255),r=255&a(r,0,255),n=255&a(n,0,255),i=255&a(i,0,255),o=255&a(o,0,255),16777216*r+(n<<16)+(i<<8)+o}function i(t,e){t=+t;var r=t>>>24,n=(16711680&t)>>>16,i=(65280&t)>>>8,a=255&t;return!1===e?[r,n,i,a]:[r/255,n/255,i/255,a/255]}var a=t(\"clamp\");e.exports=n,e.exports.to=n,e.exports.from=i},{clamp:88}],93:[function(t,e,r){\"use strict\";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},{}],94:[function(t,e,r){(function(r){\"use strict\";function n(t){var e,n,s=[],l=1;if(\"string\"==typeof t)if(i[t])s=i[t].slice(),n=\"rgb\";else if(\"transparent\"===t)l=0,n=\"rgb\",s=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(t)){var u=t.slice(1),c=u.length,h=c<=4;l=1,h?(s=[parseInt(u[0]+u[0],16),parseInt(u[1]+u[1],16),parseInt(u[2]+u[2],16)],4===c&&(l=parseInt(u[3]+u[3],16)/255)):(s=[parseInt(u[0]+u[1],16),parseInt(u[2]+u[3],16),parseInt(u[4]+u[5],16)],8===c&&(l=parseInt(u[6]+u[7],16)/255)),s[0]||(s[0]=0),s[1]||(s[1]=0),s[2]||(s[2]=0),n=\"rgb\"}else if(e=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\\s*\\(([^\\)]*)\\)/.exec(t)){var f=e[1],u=f.replace(/a$/,\"\");n=u;var c=\"cmyk\"===u?4:\"gray\"===u?1:3;s=e[2].trim().split(/\\s*,\\s*/).map(function(t,e){if(/%$/.test(t))return e===c?parseFloat(t)/100:\"rgb\"===u?255*parseFloat(t)/100:parseFloat(t);if(\"h\"===u[e]){if(/deg$/.test(t))return parseFloat(t);if(void 0!==o[t])return o[t]}return parseFloat(t)}),f===u&&s.push(1),l=void 0===s[c]?1:s[c],s=s.slice(0,c)}else t.length>10&&/[0-9](?:\\s|\\/)/.test(t)&&(s=t.match(/([0-9]+)/g).map(function(t){return parseFloat(t)}),n=t.match(/([a-z])/gi).join(\"\").toLowerCase());else\"number\"==typeof t?(n=\"rgb\",s=[t>>>16,(65280&t)>>>8,255&t]):a(t)?(null!=t.r?(s=[t.r,t.g,t.b],n=\"rgb\"):null!=t.red?(s=[t.red,t.green,t.blue],n=\"rgb\"):null!=t.h?(s=[t.h,t.s,t.l],n=\"hsl\"):null!=t.hue&&(s=[t.hue,t.saturation,t.lightness],n=\"hsl\"),null!=t.a?l=t.a:null!=t.alpha?l=t.alpha:null!=t.opacity&&(l=t.opacity/100)):(Array.isArray(t)||r.ArrayBuffer&&ArrayBuffer.isView&&ArrayBuffer.isView(t))&&(s=[t[0],t[1],t[2]],n=\"rgb\",l=4===t.length?t[3]:1);return{space:n,values:s,alpha:l}}e.exports=n;var i=t(\"color-name\"),a=t(\"is-plain-obj\"),o={red:0,orange:60,yellow:120,green:180,blue:240,purple:300}}).call(this,\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{\"color-name\":93,\"is-plain-obj\":297}],95:[function(t,e,r){\"use strict\";var n=t(\"color-parse\"),i=t(\"color-space/hsl\"),a=t(\"clamp\");e.exports=function(t,e){if(Array.isArray(t))return t;null==e&&(e=!0);var r=n(t);if(!r.space)return[];var o,s=r.values,l=s.length;for(o=0;o<l;o++)s[o]=a(s[o],0,255);if(\"h\"===r.space[0]&&(s=i.rgb(s)),e)for(o=0;o<l;o++)s[o]/=255;return s.push(a(r.alpha,0,1)),s}},{clamp:88,\"color-parse\":94,\"color-space/hsl\":96}],96:[function(t,e,r){\"use strict\";var n=t(\"./rgb\");e.exports={name:\"hsl\",min:[0,0,0],max:[360,100,100],channel:[\"hue\",\"saturation\",\"lightness\"],alias:[\"HSL\"],rgb:function(t){var e,r,n,i,a,o=t[0]/360,s=t[1]/100,l=t[2]/100;if(0===s)return a=255*l,[a,a,a];r=l<.5?l*(1+s):l+s-l*s,e=2*l-r,i=[0,0,0];for(var u=0;u<3;u++)n=o+1/3*-(u-1),n<0?n++:n>1&&n--,a=6*n<1?e+6*(r-e)*n:2*n<1?r:3*n<2?e+(r-e)*(2/3-n)*6:e,i[u]=255*a;return i}},n.hsl=function(t){var e,r,n,i=t[0]/255,a=t[1]/255,o=t[2]/255,s=Math.min(i,a,o),l=Math.max(i,a,o),u=l-s;return l===s?e=0:i===l?e=(a-o)/u:a===l?e=2+(o-i)/u:o===l&&(e=4+(i-a)/u),e=Math.min(60*e,360),e<0&&(e+=360),n=(s+l)/2,r=l===s?0:n<=.5?u/(l+s):u/(2-l-s),[e,100*r,100*n]}},{\"./rgb\":97}],97:[function(t,e,r){\"use strict\";e.exports={name:\"rgb\",min:[0,0,0],max:[255,255,255],channel:[\"red\",\"green\",\"blue\"],alias:[\"RGB\"]}},{}],98:[function(t,e,r){e.exports={jet:[{index:0,rgb:[0,0,131]},{index:.125,rgb:[0,60,170]},{index:.375,rgb:[5,255,255]},{index:.625,rgb:[255,255,0]},{index:.875,rgb:[250,0,0]},{index:1,rgb:[128,0,0]}],hsv:[{index:0,rgb:[255,0,0]},{index:.169,rgb:[253,255,2]},{index:.173,rgb:[247,255,2]},{index:.337,rgb:[0,252,4]},{index:.341,rgb:[0,252,10]},{index:.506,rgb:[1,249,255]},{index:.671,rgb:[2,0,253]},{index:.675,rgb:[8,0,253]},{index:.839,rgb:[255,0,251]},{index:.843,rgb:[255,0,245]},{index:1,rgb:[255,0,6]}],hot:[{index:0,rgb:[0,0,0]},{index:.3,rgb:[230,0,0]},{index:.6,rgb:[255,210,0]},{index:1,rgb:[255,255,255]}],cool:[{index:0,rgb:[0,255,255]},{index:1,rgb:[255,0,255]}],spring:[{index:0,rgb:[255,0,255]},{index:1,rgb:[255,255,0]}],summer:[{index:0,rgb:[0,128,102]},{index:1,rgb:[255,255,102]}],autumn:[{index:0,rgb:[255,0,0]},{index:1,rgb:[255,255,0]}],winter:[{index:0,rgb:[0,0,255]},{index:1,rgb:[0,255,128]}],bone:[{index:0,rgb:[0,0,0]},{index:.376,rgb:[84,84,116]},{index:.753,rgb:[169,200,200]},{index:1,rgb:[255,255,255]}],copper:[{index:0,rgb:[0,0,0]},{index:.804,rgb:[255,160,102]},{index:1,rgb:[255,199,127]}],greys:[{index:0,rgb:[0,0,0]},{index:1,rgb:[255,255,255]}],yignbu:[{index:0,rgb:[8,29,88]},{index:.125,rgb:[37,52,148]},{index:.25,rgb:[34,94,168]},{index:.375,rgb:[29,145,192]},{index:.5,rgb:[65,182,196]},{index:.625,rgb:[127,205,187]},{index:.75,rgb:[199,233,180]},{index:.875,rgb:[237,248,217]},{index:1,rgb:[255,255,217]}],greens:[{index:0,rgb:[0,68,27]},{index:.125,rgb:[0,109,44]},{index:.25,rgb:[35,139,69]},{index:.375,rgb:[65,171,93]},{index:.5,rgb:[116,196,118]},{index:.625,rgb:[161,217,155]},{index:.75,rgb:[199,233,192]},{index:.875,rgb:[229,245,224]},{index:1,rgb:[247,252,245]}],yiorrd:[{index:0,rgb:[128,0,38]},{index:.125,rgb:[189,0,38]},{index:.25,rgb:[227,26,28]},{index:.375,rgb:[252,78,42]},{index:.5,rgb:[253,141,60]},{index:.625,rgb:[254,178,76]},{index:.75,rgb:[254,217,118]},{index:.875,rgb:[255,237,160]},{index:1,rgb:[255,255,204]}],bluered:[{index:0,rgb:[0,0,255]},{index:1,rgb:[255,0,0]}],rdbu:[{index:0,rgb:[5,10,172]},{index:.35,rgb:[106,137,247]},{index:.5,rgb:[190,190,190]},{index:.6,rgb:[220,170,132]},{index:.7,rgb:[230,145,90]},{index:1,rgb:[178,10,28]}],picnic:[{index:0,rgb:[0,0,255]},{index:.1,rgb:[51,153,255]},{index:.2,rgb:[102,204,255]},{index:.3,rgb:[153,204,255]},{index:.4,rgb:[204,204,255]},{index:.5,rgb:[255,255,255]},{index:.6,rgb:[255,204,255]},{index:.7,rgb:[255,153,255]},{index:.8,rgb:[255,102,204]},{index:.9,rgb:[255,102,102]},{index:1,rgb:[255,0,0]}],rainbow:[{index:0,rgb:[150,0,90]},{index:.125,rgb:[0,0,200]},{index:.25,rgb:[0,25,255]},{index:.375,rgb:[0,152,255]},{index:.5,rgb:[44,255,150]},{index:.625,rgb:[151,255,0]},{index:.75,rgb:[255,234,0]},{index:.875,rgb:[255,111,0]},{index:1,rgb:[255,0,0]}],portland:[{index:0,rgb:[12,51,131]},{index:.25,rgb:[10,136,186]},{index:.5,rgb:[242,211,56]},{index:.75,rgb:[242,143,56]},{index:1,rgb:[217,30,30]}],blackbody:[{index:0,rgb:[0,0,0]},{index:.2,rgb:[230,0,0]},{index:.4,rgb:[230,210,0]},{index:.7,rgb:[255,255,255]},{index:1,rgb:[160,200,255]}],earth:[{index:0,rgb:[0,0,130]},{index:.1,rgb:[0,180,180]},{index:.2,rgb:[40,210,40]},{index:.4,rgb:[230,230,50]},{index:.6,rgb:[120,70,20]},{index:1,rgb:[255,255,255]}],electric:[{index:0,rgb:[0,0,0]},{index:.15,rgb:[30,0,100]},{index:.4,rgb:[120,0,100]},{index:.6,rgb:[160,90,0]},{index:.8,rgb:[230,200,0]},{index:1,rgb:[255,250,220]}],alpha:[{index:0,rgb:[255,255,255,0]},{index:0,rgb:[255,255,255,1]}],viridis:[{index:0,rgb:[68,1,84]},{index:.13,rgb:[71,44,122]},{index:.25,rgb:[59,81,139]},{index:.38,rgb:[44,113,142]},{index:.5,rgb:[33,144,141]},{index:.63,rgb:[39,173,129]},{index:.75,rgb:[92,200,99]},{index:.88,rgb:[170,220,50]},{index:1,rgb:[253,231,37]}],inferno:[{index:0,rgb:[0,0,4]},{index:.13,rgb:[31,12,72]},{index:.25,rgb:[85,15,109]},{index:.38,rgb:[136,34,106]},{index:.5,rgb:[186,54,85]},{index:.63,rgb:[227,89,51]},{index:.75,rgb:[249,140,10]},{index:.88,rgb:[249,201,50]},{index:1,rgb:[252,255,164]}],magma:[{index:0,rgb:[0,0,4]},{index:.13,rgb:[28,16,68]},{index:.25,rgb:[79,18,123]},{index:.38,rgb:[129,37,129]},{index:.5,rgb:[181,54,122]},{index:.63,rgb:[229,80,100]},{index:.75,rgb:[251,135,97]},{index:.88,rgb:[254,194,135]},{index:1,rgb:[252,253,191]}],plasma:[{index:0,rgb:[13,8,135]},{index:.13,rgb:[75,3,161]},{index:.25,rgb:[125,3,168]},{index:.38,rgb:[168,34,150]},{index:.5,rgb:[203,70,121]},{index:.63,rgb:[229,107,93]},{index:.75,rgb:[248,148,65]},{index:.88,rgb:[253,195,40]},{index:1,rgb:[240,249,33]}],warm:[{index:0,rgb:[125,0,179]},{index:.13,rgb:[172,0,187]},{index:.25,rgb:[219,0,170]},{index:.38,rgb:[255,0,130]},{index:.5,rgb:[255,63,74]},{index:.63,rgb:[255,123,0]},{index:.75,rgb:[234,176,0]},{index:.88,rgb:[190,228,0]},{index:1,rgb:[147,255,0]}],cool:[{index:0,rgb:[125,0,179]},{index:.13,rgb:[116,0,218]},{index:.25,rgb:[98,74,237]},{index:.38,rgb:[68,146,231]},{index:.5,rgb:[0,204,197]},{index:.63,rgb:[0,247,146]},{index:.75,rgb:[0,255,88]},{index:.88,rgb:[40,255,8]},{index:1,rgb:[147,255,0]}],\"rainbow-soft\":[{index:0,rgb:[125,0,179]},{index:.1,rgb:[199,0,180]},{index:.2,rgb:[255,0,121]},{index:.3,rgb:[255,108,0]},{index:.4,rgb:[222,194,0]},{index:.5,rgb:[150,255,0]},{index:.6,rgb:[0,255,55]},{index:.7,rgb:[0,246,150]},{index:.8,rgb:[50,167,222]},{index:.9,rgb:[103,51,235]},{index:1,rgb:[124,0,186]}],bathymetry:[{index:0,rgb:[40,26,44]},{index:.13,rgb:[59,49,90]},{index:.25,rgb:[64,76,139]},{index:.38,rgb:[63,110,151]},{index:.5,rgb:[72,142,158]},{index:.63,rgb:[85,174,163]},{index:.75,rgb:[120,206,163]},{index:.88,rgb:[187,230,172]},{index:1,rgb:[253,254,204]}],cdom:[{index:0,rgb:[47,15,62]},{index:.13,rgb:[87,23,86]},{index:.25,rgb:[130,28,99]},{index:.38,rgb:[171,41,96]},{index:.5,rgb:[206,67,86]},{index:.63,rgb:[230,106,84]},{index:.75,rgb:[242,149,103]},{index:.88,rgb:[249,193,135]},{index:1,rgb:[254,237,176]}],chlorophyll:[{index:0,rgb:[18,36,20]},{index:.13,rgb:[25,63,41]},{index:.25,rgb:[24,91,59]},{index:.38,rgb:[13,119,72]},{index:.5,rgb:[18,148,80]},{index:.63,rgb:[80,173,89]},{index:.75,rgb:[132,196,122]},{index:.88,rgb:[175,221,162]},{index:1,rgb:[215,249,208]}],density:[{index:0,rgb:[54,14,36]},{index:.13,rgb:[89,23,80]},{index:.25,rgb:[110,45,132]},{index:.38,rgb:[120,77,178]},{index:.5,rgb:[120,113,213]},{index:.63,rgb:[115,151,228]},{index:.75,rgb:[134,185,227]},{index:.88,rgb:[177,214,227]},{index:1,rgb:[230,241,241]}],\"freesurface-blue\":[{index:0,rgb:[30,4,110]},{index:.13,rgb:[47,14,176]},{index:.25,rgb:[41,45,236]},{index:.38,rgb:[25,99,212]},{index:.5,rgb:[68,131,200]},{index:.63,rgb:[114,156,197]},{index:.75,rgb:[157,181,203]},{index:.88,rgb:[200,208,216]},{index:1,rgb:[241,237,236]}],\"freesurface-red\":[{index:0,rgb:[60,9,18]},{index:.13,rgb:[100,17,27]},{index:.25,rgb:[142,20,29]},{index:.38,rgb:[177,43,27]},{index:.5,rgb:[192,87,63]},{index:.63,rgb:[205,125,105]},{index:.75,rgb:[216,162,148]},{index:.88,rgb:[227,199,193]},{index:1,rgb:[241,237,236]}],oxygen:[{index:0,rgb:[64,5,5]},{index:.13,rgb:[106,6,15]},{index:.25,rgb:[144,26,7]},{index:.38,rgb:[168,64,3]},{index:.5,rgb:[188,100,4]},{index:.63,rgb:[206,136,11]},{index:.75,rgb:[220,174,25]},{index:.88,rgb:[231,215,44]},{index:1,rgb:[248,254,105]}],par:[{index:0,rgb:[51,20,24]},{index:.13,rgb:[90,32,35]},{index:.25,rgb:[129,44,34]},{index:.38,rgb:[159,68,25]},{index:.5,rgb:[182,99,19]},{index:.63,rgb:[199,134,22]},{index:.75,rgb:[212,171,35]},{index:.88,rgb:[221,210,54]},{index:1,rgb:[225,253,75]}],phase:[{index:0,rgb:[145,105,18]},{index:.13,rgb:[184,71,38]},{index:.25,rgb:[186,58,115]},{index:.38,rgb:[160,71,185]},{index:.5,rgb:[110,97,218]},{index:.63,rgb:[50,123,164]},{index:.75,rgb:[31,131,110]},{index:.88,rgb:[77,129,34]},{index:1,rgb:[145,105,18]}],salinity:[{index:0,rgb:[42,24,108]},{index:.13,rgb:[33,50,162]},{index:.25,rgb:[15,90,145]},{index:.38,rgb:[40,118,137]},{index:.5,rgb:[59,146,135]},{index:.63,rgb:[79,175,126]},{index:.75,rgb:[120,203,104]},{index:.88,rgb:[193,221,100]},{index:1,rgb:[253,239,154]}],temperature:[{index:0,rgb:[4,35,51]},{index:.13,rgb:[23,51,122]},{index:.25,rgb:[85,59,157]},{index:.38,rgb:[129,79,143]},{index:.5,rgb:[175,95,130]},{index:.63,rgb:[222,112,101]},{index:.75,rgb:[249,146,66]},{index:.88,rgb:[249,196,65]},{index:1,rgb:[232,250,91]}],turbidity:[{index:0,rgb:[34,31,27]},{index:.13,rgb:[65,50,41]},{index:.25,rgb:[98,69,52]},{index:.38,rgb:[131,89,57]},{index:.5,rgb:[161,112,59]},{index:.63,rgb:[185,140,66]},{index:.75,rgb:[202,174,88]},{index:.88,rgb:[216,209,126]},{index:1,rgb:[233,246,171]}],\"velocity-blue\":[{index:0,rgb:[17,32,64]},{index:.13,rgb:[35,52,116]},{index:.25,rgb:[29,81,156]},{index:.38,rgb:[31,113,162]},{index:.5,rgb:[50,144,169]},{index:.63,rgb:[87,173,176]},{index:.75,rgb:[149,196,189]},{index:.88,rgb:[203,221,211]},{index:1,rgb:[254,251,230]}],\"velocity-green\":[{index:0,rgb:[23,35,19]},{index:.13,rgb:[24,64,38]},{index:.25,rgb:[11,95,45]},{index:.38,rgb:[39,123,35]},{index:.5,rgb:[95,146,12]},{index:.63,rgb:[152,165,18]},{index:.75,rgb:[201,186,69]},{index:.88,rgb:[233,216,137]},{index:1,rgb:[255,253,205]}],cubehelix:[{index:0,rgb:[0,0,0]},{index:.07,rgb:[22,5,59]},{index:.13,rgb:[60,4,105]},{index:.2,rgb:[109,1,135]},{index:.27,rgb:[161,0,147]},{index:.33,rgb:[210,2,142]},{index:.4,rgb:[251,11,123]},{index:.47,rgb:[255,29,97]},{index:.53,rgb:[255,54,69]},{index:.6,rgb:[255,85,46]},{index:.67,rgb:[255,120,34]},{index:.73,rgb:[255,157,37]},{index:.8,rgb:[241,191,57]},{index:.87,rgb:[224,220,93]},{index:.93,rgb:[218,241,142]},{index:1,rgb:[227,253,198]}]}},{}],99:[function(t,e,r){\"use strict\";function n(t){var e,r,n,u,c,h,f,d,p,m,v,g,y,b=[],x=[],_=[],w=[];if(o.isPlainObject(t)||(t={}),p=t.nshades||72,d=t.format||\"hex\",f=t.colormap,f||(f=\"jet\"),\"string\"==typeof f){if(f=f.toLowerCase(),!l[f])throw Error(f+\" not a supported colorscale\");h=s(l[f])}else{if(!Array.isArray(f))throw Error(\"unsupported colormap option\",f);h=s(f)}if(h.length>p)throw new Error(f+\" map requires nshades to be at least size \"+h.length);for(v=Array.isArray(t.alpha)?2!==t.alpha.length?[1,1]:s(t.alpha):\"number\"==typeof t.alpha?[t.alpha,t.alpha]:[1,1],e=h.map(function(t){return Math.round(t.index*p)}),v[0]<0&&(v[0]=0),v[1]<0&&(v[0]=0),v[0]>1&&(v[0]=1),v[1]>1&&(v[0]=1),y=0;y<e.length;++y)g=h[y].index,r=h[y].rgb,4===r.length&&r[3]>=0&&r[3]<=1||(r[3]=v[0]+(v[1]-v[0])*g);for(y=0;y<e.length-1;++y)c=e[y+1]-e[y],n=h[y].rgb,u=h[y+1].rgb,b=b.concat(o.linspace(n[0],u[0],c)),x=x.concat(o.linspace(n[1],u[1],c)),_=_.concat(o.linspace(n[2],u[2],c)),w=w.concat(o.linspace(n[3],u[3],c));return b=b.map(Math.round),x=x.map(Math.round),_=_.map(Math.round),m=o.zip(b,x,_,w),\"hex\"===d&&(m=m.map(i)),\"rgbaString\"===d&&(m=m.map(a)),m}function i(t){for(var e,r=\"#\",n=0;n<3;++n)e=t[n],e=e.toString(16),r+=(\"00\"+e).substr(e.length);return r}function a(t){return\"rgba(\"+t.join(\",\")+\")\"}var o=t(\"arraytools\"),s=t(\"clone\"),l=t(\"./colorScales\");e.exports=n},{\"./colorScales\":98,arraytools:46,clone:91}],100:[function(t,e,r){\"use strict\";function n(t,e,r){var n=s(t[0],-e[0]),i=s(t[1],-e[1]),a=s(r[0],-e[0]),o=s(r[1],-e[1]),c=u(l(n,a),l(i,o));return c[c.length-1]>=0}function i(t,e,r,i){var s=a(e,r,i);if(0===s){var l=o(a(t,e,r)),u=o(a(t,e,i));if(l===u){if(0===l){var c=n(t,e,r);return c===n(t,e,i)?0:c?1:-1}return 0}return 0===u?l>0?-1:n(t,e,i)?-1:1:0===l?u>0?1:n(t,e,r)?1:-1:o(u-l)}var h=a(t,e,r);return h>0?s>0&&a(t,e,i)>0?1:-1:h<0?s>0||a(t,e,i)>0?1:-1:a(t,e,i)>0?1:n(t,e,r)?1:-1}e.exports=i;var a=t(\"robust-orientation\"),o=t(\"signum\"),s=t(\"two-sum\"),l=t(\"robust-product\"),u=t(\"robust-sum\")},{\"robust-orientation\":508,\"robust-product\":509,\"robust-sum\":513,signum:515,\"two-sum\":540}],101:[function(t,e,r){function n(t,e){return t-e}function i(t,e){var r=t.length,i=t.length-e.length;if(i)return i;switch(r){case 0:return 0;case 1:return t[0]-e[0];case 2:return t[0]+t[1]-e[0]-e[1]||a(t[0],t[1])-a(e[0],e[1]);case 3:var o=t[0]+t[1],s=e[0]+e[1];if(i=o+t[2]-(s+e[2]))return i;var l=a(t[0],t[1]),u=a(e[0],e[1]);return a(l,t[2])-a(u,e[2])||a(l+t[2],o)-a(u+e[2],s);case 4:var c=t[0],h=t[1],f=t[2],d=t[3],p=e[0],m=e[1],v=e[2],g=e[3];return c+h+f+d-(p+m+v+g)||a(c,h,f,d)-a(p,m,v,g,p)||a(c+h,c+f,c+d,h+f,h+d,f+d)-a(p+m,p+v,p+g,m+v,m+g,v+g)||a(c+h+f,c+h+d,c+f+d,h+f+d)-a(p+m+v,p+m+g,p+v+g,m+v+g);default:for(var y=t.slice().sort(n),b=e.slice().sort(n),x=0;x<r;++x)if(i=y[x]-b[x])return i;return 0}}e.exports=i;var a=Math.min},{}],102:[function(t,e,r){\"use strict\";function n(t,e){return i(t,e)||a(t)-a(e)}var i=t(\"compare-cell\"),a=t(\"cell-orientation\");e.exports=n},{\"cell-orientation\":85,\"compare-cell\":101}],103:[function(t,e,r){\"use strict\";function n(t){var e=t.length;if(0===e)return[];if(1===e)return[[0]];var r=t[0].length;return 0===r?[]:1===r?i(t):2===r?a(t):o(t,r)}var i=t(\"./lib/ch1d\"),a=t(\"./lib/ch2d\"),o=t(\"./lib/chnd\");e.exports=n},{\"./lib/ch1d\":104,\"./lib/ch2d\":105,\"./lib/chnd\":106}],104:[function(t,e,r){\"use strict\";function n(t){for(var e=0,r=0,n=1;n<t.length;++n)t[n][0]<t[e][0]&&(e=n),t[n][0]>t[r][0]&&(r=n);return e<r?[[e],[r]]:e>r?[[r],[e]]:[[e]]}e.exports=n},{}],105:[function(t,e,r){\"use strict\";function n(t){var e=i(t),r=e.length;if(r<=2)return[];for(var n=new Array(r),a=e[r-1],o=0;o<r;++o){var s=e[o];n[o]=[a,s],a=s}return n}e.exports=n;var i=t(\"monotone-convex-hull-2d\")},{\"monotone-convex-hull-2d\":451}],106:[function(t,e,r){\"use strict\";function n(t,e){for(var r=t.length,n=new Array(r),i=0;i<e.length;++i)n[i]=t[e[i]];for(var a=e.length,i=0;i<r;++i)e.indexOf(i)<0&&(n[a++]=t[i]);return n}function i(t,e){for(var r=t.length,n=e.length,i=0;i<r;++i)for(var a=t[i],o=0;o<a.length;++o){var s=a[o];if(s<n)a[o]=e[s];else{s-=n;for(var l=0;l<n;++l)s>=e[l]&&(s+=1);a[o]=s}}return t}function a(t,e){try{return o(t,!0)}catch(u){var r=s(t);if(r.length<=e)return[];var a=n(t,r),l=o(a,!0);return i(l,r)}}e.exports=a;var o=t(\"incremental-convex-hull\"),s=t(\"affine-hull\")},{\"affine-hull\":41,\"incremental-convex-hull\":290}],107:[function(t,e,r){e.exports={AFG:\"afghan\",ALA:\"\\\\b\\\\wland\",ALB:\"albania\",DZA:\"algeria\",ASM:\"^(?=.*americ).*samoa\",AND:\"andorra\",AGO:\"angola\",AIA:\"anguill?a\",ATA:\"antarctica\",ATG:\"antigua\",ARG:\"argentin\",ARM:\"armenia\",ABW:\"^(?!.*bonaire).*\\\\baruba\",AUS:\"australia\",AUT:\"^(?!.*hungary).*austria|\\\\baustri.*\\\\bemp\",AZE:\"azerbaijan\",BHS:\"bahamas\",BHR:\"bahrain\",BGD:\"bangladesh|^(?=.*east).*paki?stan\",BRB:\"barbados\",BLR:\"belarus|byelo\",BEL:\"^(?!.*luxem).*belgium\",BLZ:\"belize|^(?=.*british).*honduras\",BEN:\"benin|dahome\",BMU:\"bermuda\",BTN:\"bhutan\",BOL:\"bolivia\",BES:\"^(?=.*bonaire).*eustatius|^(?=.*carib).*netherlands|\\\\bbes.?islands\",BIH:\"herzegovina|bosnia\",BWA:\"botswana|bechuana\",BVT:\"bouvet\",BRA:\"brazil\",IOT:\"british.?indian.?ocean\",BRN:\"brunei\",BGR:\"bulgaria\",BFA:\"burkina|\\\\bfaso|upper.?volta\",BDI:\"burundi\",CPV:\"verde\",KHM:\"cambodia|kampuchea|khmer\",CMR:\"cameroon\",CAN:\"canada\",CYM:\"cayman\",CAF:\"\\\\bcentral.african.republic\",TCD:\"\\\\bchad\",CHL:\"\\\\bchile\",CHN:\"^(?!.*\\\\bmac)(?!.*\\\\bhong)(?!.*\\\\btai)(?!.*\\\\brep).*china|^(?=.*peo)(?=.*rep).*china\",CXR:\"christmas\",CCK:\"\\\\bcocos|keeling\",COL:\"colombia\",COM:\"comoro\",COG:\"^(?!.*\\\\bdem)(?!.*\\\\bd[\\\\.]?r)(?!.*kinshasa)(?!.*zaire)(?!.*belg)(?!.*l.opoldville)(?!.*free).*\\\\bcongo\",COK:\"\\\\bcook\",CRI:\"costa.?rica\",CIV:\"ivoire|ivory\",HRV:\"croatia\",CUB:\"\\\\bcuba\",CUW:\"^(?!.*bonaire).*\\\\bcura(c|\\xe7)ao\",CYP:\"cyprus\",CSK:\"czechoslovakia\",CZE:\"^(?=.*rep).*czech|czechia|bohemia\",COD:\"\\\\bdem.*congo|congo.*\\\\bdem|congo.*\\\\bd[\\\\.]?r|\\\\bd[\\\\.]?r.*congo|belgian.?congo|congo.?free.?state|kinshasa|zaire|l.opoldville|drc|droc|rdc\",DNK:\"denmark\",DJI:\"djibouti\",DMA:\"dominica(?!n)\",DOM:\"dominican.rep\",ECU:\"ecuador\",EGY:\"egypt\",SLV:\"el.?salvador\",GNQ:\"guine.*eq|eq.*guine|^(?=.*span).*guinea\",ERI:\"eritrea\",EST:\"estonia\",ETH:\"ethiopia|abyssinia\",FLK:\"falkland|malvinas\",FRO:\"faroe|faeroe\",FJI:\"fiji\",FIN:\"finland\",FRA:\"^(?!.*\\\\bdep)(?!.*martinique).*france|french.?republic|\\\\bgaul\",GUF:\"^(?=.*french).*guiana\",PYF:\"french.?polynesia|tahiti\",ATF:\"french.?southern\",GAB:\"gabon\",GMB:\"gambia\",GEO:\"^(?!.*south).*georgia\",DDR:\"german.?democratic.?republic|democratic.?republic.*germany|east.germany\",DEU:\"^(?!.*east).*germany|^(?=.*\\\\bfed.*\\\\brep).*german\",GHA:\"ghana|gold.?coast\",GIB:\"gibraltar\",GRC:\"greece|hellenic|hellas\",GRL:\"greenland\",GRD:\"grenada\",GLP:\"guadeloupe\",GUM:\"\\\\bguam\",GTM:\"guatemala\",GGY:\"guernsey\",GIN:\"^(?!.*eq)(?!.*span)(?!.*bissau)(?!.*portu)(?!.*new).*guinea\",GNB:\"bissau|^(?=.*portu).*guinea\",GUY:\"guyana|british.?guiana\",HTI:\"haiti\",HMD:\"heard.*mcdonald\",VAT:\"holy.?see|vatican|papal.?st\",HND:\"^(?!.*brit).*honduras\",HKG:\"hong.?kong\",HUN:\"^(?!.*austr).*hungary\",ISL:\"iceland\",IND:\"india(?!.*ocea)\",IDN:\"indonesia\",IRN:\"\\\\biran|persia\",IRQ:\"\\\\biraq|mesopotamia\",IRL:\"(^ireland)|(^republic.*ireland)\",IMN:\"^(?=.*isle).*\\\\bman\",ISR:\"israel\",ITA:\"italy\",JAM:\"jamaica\",JPN:\"japan\",JEY:\"jersey\",JOR:\"jordan\",KAZ:\"kazak\",KEN:\"kenya|british.?east.?africa|east.?africa.?prot\",KIR:\"kiribati\",PRK:\"^(?=.*democrat|people|north|d.*p.*.r).*\\\\bkorea|dprk|korea.*(d.*p.*r)\",KWT:\"kuwait\",KGZ:\"kyrgyz|kirghiz\",LAO:\"\\\\blaos?\\\\b\",LVA:\"latvia\",LBN:\"lebanon\",LSO:\"lesotho|basuto\",LBR:\"liberia\",LBY:\"libya\",LIE:\"liechtenstein\",LTU:\"lithuania\",LUX:\"^(?!.*belg).*luxem\",MAC:\"maca(o|u)\",MDG:\"madagascar|malagasy\",MWI:\"malawi|nyasa\",MYS:\"malaysia\",MDV:\"maldive\",MLI:\"\\\\bmali\\\\b\",MLT:\"\\\\bmalta\",MHL:\"marshall\",MTQ:\"martinique\",MRT:\"mauritania\",MUS:\"mauritius\",MYT:\"\\\\bmayotte\",MEX:\"\\\\bmexic\",FSM:\"fed.*micronesia|micronesia.*fed\",MCO:\"monaco\",MNG:\"mongolia\",MNE:\"^(?!.*serbia).*montenegro\",MSR:\"montserrat\",MAR:\"morocco|\\\\bmaroc\",MOZ:\"mozambique\",MMR:\"myanmar|burma\",NAM:\"namibia\",NRU:\"nauru\",NPL:\"nepal\",NLD:\"^(?!.*\\\\bant)(?!.*\\\\bcarib).*netherlands\",ANT:\"^(?=.*\\\\bant).*(nether|dutch)\",NCL:\"new.?caledonia\",NZL:\"new.?zealand\",NIC:\"nicaragua\",NER:\"\\\\bniger(?!ia)\",NGA:\"nigeria\",NIU:\"niue\",NFK:\"norfolk\",MNP:\"mariana\",NOR:\"norway\",OMN:\"\\\\boman|trucial\",PAK:\"^(?!.*east).*paki?stan\",PLW:\"palau\",PSE:\"palestin|\\\\bgaza|west.?bank\",PAN:\"panama\",PNG:\"papua|new.?guinea\",PRY:\"paraguay\",PER:\"peru\",PHL:\"philippines\",PCN:\"pitcairn\",POL:\"poland\",PRT:\"portugal\",PRI:\"puerto.?rico\",QAT:\"qatar\",KOR:\"^(?!.*d.*p.*r)(?!.*democrat)(?!.*people)(?!.*north).*\\\\bkorea(?!.*d.*p.*r)\",MDA:\"moldov|b(a|e)ssarabia\",REU:\"r(e|\\xe9)union\",ROU:\"r(o|u|ou)mania\",RUS:\"\\\\brussia|soviet.?union|u\\\\.?s\\\\.?s\\\\.?r|socialist.?republics\",RWA:\"rwanda\",BLM:\"barth(e|\\xe9)lemy\",SHN:\"helena\",KNA:\"kitts|\\\\bnevis\",LCA:\"\\\\blucia\",MAF:\"^(?=.*collectivity).*martin|^(?=.*france).*martin(?!ique)|^(?=.*french).*martin(?!ique)\",SPM:\"miquelon\",VCT:\"vincent\",WSM:\"^(?!.*amer).*samoa\",SMR:\"san.?marino\",STP:\"\\\\bs(a|\\xe3)o.?tom(e|\\xe9)\",SAU:\"\\\\bsa\\\\w*.?arabia\",SEN:\"senegal\",SRB:\"^(?!.*monte).*serbia\",SYC:\"seychell\",SLE:\"sierra\",SGP:\"singapore\",SXM:\"^(?!.*martin)(?!.*saba).*maarten\",SVK:\"^(?!.*cze).*slovak\",SVN:\"slovenia\",SLB:\"solomon\",SOM:\"somali\",ZAF:\"south.africa|s\\\\\\\\..?africa\",SGS:\"south.?georgia|sandwich\",SSD:\"\\\\bs\\\\w*.?sudan\",ESP:\"spain\",LKA:\"sri.?lanka|ceylon\",SDN:\"^(?!.*\\\\bs(?!u)).*sudan\",SUR:\"surinam|dutch.?guiana\",SJM:\"svalbard\",SWZ:\"swaziland\",SWE:\"sweden\",CHE:\"switz|swiss\",SYR:\"syria\",TWN:\"taiwan|taipei|formosa|^(?!.*peo)(?=.*rep).*china\",TJK:\"tajik\",THA:\"thailand|\\\\bsiam\",MKD:\"macedonia|fyrom\",TLS:\"^(?=.*leste).*timor|^(?=.*east).*timor\",TGO:\"togo\",TKL:\"tokelau\",TON:\"tonga\",TTO:\"trinidad|tobago\",TUN:\"tunisia\",TUR:\"turkey\",TKM:\"turkmen\",TCA:\"turks\",TUV:\"tuvalu\",UGA:\"uganda\",UKR:\"ukrain\",ARE:\"emirates|^u\\\\.?a\\\\.?e\\\\.?$|united.?arab.?em\",GBR:\"united.?kingdom|britain|^u\\\\.?k\\\\.?$\",TZA:\"tanzania\",USA:\"united.?states\\\\b(?!.*islands)|\\\\bu\\\\.?s\\\\.?a\\\\.?\\\\b|^\\\\s*u\\\\.?s\\\\.?\\\\b(?!.*islands)\",UMI:\"minor.?outlying.?is\",URY:\"uruguay\",UZB:\"uzbek\",VUT:\"vanuatu|new.?hebrides\",VEN:\"venezuela\",VNM:\"^(?!.*republic).*viet.?nam|^(?=.*socialist).*viet.?nam\",VGB:\"^(?=.*\\\\bu\\\\.?\\\\s?k).*virgin|^(?=.*brit).*virgin|^(?=.*kingdom).*virgin\",VIR:\"^(?=.*\\\\bu\\\\.?\\\\s?s).*virgin|^(?=.*states).*virgin\",WLF:\"futuna|wallis\",ESH:\"western.sahara\",YEM:\"^(?!.*arab)(?!.*north)(?!.*sana)(?!.*peo)(?!.*dem)(?!.*south)(?!.*aden)(?!.*\\\\bp\\\\.?d\\\\.?r).*yemen\",YMD:\"^(?=.*peo).*yemen|^(?!.*rep)(?=.*dem).*yemen|^(?=.*south).*yemen|^(?=.*aden).*yemen|^(?=.*\\\\bp\\\\.?d\\\\.?r).*yemen\",YUG:\"yugoslavia\",ZMB:\"zambia|northern.?rhodesia\",EAZ:\"zanzibar\",ZWE:\"zimbabwe|^(?!.*northern).*rhodesia\"}},{}],108:[function(t,e,r){function n(t){return t=Math.round(t),t<0?0:t>255?255:t}function i(t){return t<0?0:t>1?1:t}function a(t){return n(\"%\"===t[t.length-1]?parseFloat(t)/100*255:parseInt(t))}function o(t){return i(\"%\"===t[t.length-1]?parseFloat(t)/100:parseFloat(t))}function s(t,e,r){return r<0?r+=1:r>1&&(r-=1),6*r<1?t+(e-t)*r*6:2*r<1?e:3*r<2?t+(e-t)*(2/3-r)*6:t}function l(t){var e=t.replace(/ /g,\"\").toLowerCase();if(e in u)return u[e].slice();if(\"#\"===e[0]){if(4===e.length){var r=parseInt(e.substr(1),16);return r>=0&&r<=4095?[(3840&r)>>4|(3840&r)>>8,240&r|(240&r)>>4,15&r|(15&r)<<4,1]:null}if(7===e.length){var r=parseInt(e.substr(1),16);return r>=0&&r<=16777215?[(16711680&r)>>16,(65280&r)>>8,255&r,1]:null}return null}var i=e.indexOf(\"(\"),l=e.indexOf(\")\");if(-1!==i&&l+1===e.length){var c=e.substr(0,i),h=e.substr(i+1,l-(i+1)).split(\",\"),f=1;switch(c){case\"rgba\":if(4!==h.length)return null;f=o(h.pop());case\"rgb\":return 3!==h.length?null:[a(h[0]),a(h[1]),a(h[2]),f];case\"hsla\":if(4!==h.length)return null;f=o(h.pop());case\"hsl\":if(3!==h.length)return null;var d=(parseFloat(h[0])%360+360)%360/360,p=o(h[1]),m=o(h[2]),v=m<=.5?m*(p+1):m+p-m*p,g=2*m-v;return[n(255*s(g,v,d+1/3)),n(255*s(g,v,d)),n(255*s(g,v,d-1/3)),f];default:return null}}return null}var u={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],\n", "cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],rebeccapurple:[102,51,153,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};try{r.parseCSSColor=l}catch(t){}},{}],109:[function(t,e,r){\"use strict\";function n(t,e,r,n,i,a){var o=6*i*i-6*i,s=3*i*i-4*i+1,l=-6*i*i+6*i,u=3*i*i-2*i;if(t.length){a||(a=new Array(t.length));for(var c=t.length-1;c>=0;--c)a[c]=o*t[c]+s*e[c]+l*r[c]+u*n[c];return a}return o*t+s*e+l*r[c]+u*n}function i(t,e,r,n,i,a){var o=i-1,s=i*i,l=o*o,u=(1+2*i)*l,c=i*l,h=s*(3-2*i),f=s*o;if(t.length){a||(a=new Array(t.length));for(var d=t.length-1;d>=0;--d)a[d]=u*t[d]+c*e[d]+h*r[d]+f*n[d];return a}return u*t+c*e+h*r+f*n}e.exports=i,e.exports.derivative=n},{}],110:[function(t,e,r){\"use strict\";function n(){this.argTypes=[],this.shimArgs=[],this.arrayArgs=[],this.arrayBlockIndices=[],this.scalarArgs=[],this.offsetArgs=[],this.offsetArgIndex=[],this.indexArgs=[],this.shapeArgs=[],this.funcName=\"\",this.pre=null,this.body=null,this.post=null,this.debug=!1}function i(t){var e=new n;e.pre=t.pre,e.body=t.body,e.post=t.post;var r=t.args.slice(0);e.argTypes=r;for(var i=0;i<r.length;++i){var o=r[i];if(\"array\"===o||\"object\"==typeof o&&o.blockIndices){if(e.argTypes[i]=\"array\",e.arrayArgs.push(i),e.arrayBlockIndices.push(o.blockIndices?o.blockIndices:0),e.shimArgs.push(\"array\"+i),i<e.pre.args.length&&e.pre.args[i].count>0)throw new Error(\"cwise: pre() block may not reference array args\");if(i<e.post.args.length&&e.post.args[i].count>0)throw new Error(\"cwise: post() block may not reference array args\")}else if(\"scalar\"===o)e.scalarArgs.push(i),e.shimArgs.push(\"scalar\"+i);else if(\"index\"===o){if(e.indexArgs.push(i),i<e.pre.args.length&&e.pre.args[i].count>0)throw new Error(\"cwise: pre() block may not reference array index\");if(i<e.body.args.length&&e.body.args[i].lvalue)throw new Error(\"cwise: body() block may not write to array index\");if(i<e.post.args.length&&e.post.args[i].count>0)throw new Error(\"cwise: post() block may not reference array index\")}else if(\"shape\"===o){if(e.shapeArgs.push(i),i<e.pre.args.length&&e.pre.args[i].lvalue)throw new Error(\"cwise: pre() block may not write to array shape\");if(i<e.body.args.length&&e.body.args[i].lvalue)throw new Error(\"cwise: body() block may not write to array shape\");if(i<e.post.args.length&&e.post.args[i].lvalue)throw new Error(\"cwise: post() block may not write to array shape\")}else{if(\"object\"!=typeof o||!o.offset)throw new Error(\"cwise: Unknown argument type \"+r[i]);e.argTypes[i]=\"offset\",e.offsetArgs.push({array:o.array,offset:o.offset}),e.offsetArgIndex.push(i)}}if(e.arrayArgs.length<=0)throw new Error(\"cwise: No array arguments specified\");if(e.pre.args.length>r.length)throw new Error(\"cwise: Too many arguments in pre() block\");if(e.body.args.length>r.length)throw new Error(\"cwise: Too many arguments in body() block\");if(e.post.args.length>r.length)throw new Error(\"cwise: Too many arguments in post() block\");return e.debug=!!t.printCode||!!t.debug,e.funcName=t.funcName||\"cwise\",e.blockSize=t.blockSize||64,a(e)}var a=t(\"./lib/thunk.js\");e.exports=i},{\"./lib/thunk.js\":112}],111:[function(t,e,r){\"use strict\";function n(t,e,r){var n,i,a=t.length,o=e.arrayArgs.length,s=e.indexArgs.length>0,l=[],u=[],c=0,h=0;for(n=0;n<a;++n)u.push([\"i\",n,\"=0\"].join(\"\"));for(i=0;i<o;++i)for(n=0;n<a;++n)h=c,c=t[n],0===n?u.push([\"d\",i,\"s\",n,\"=t\",i,\"p\",c].join(\"\")):u.push([\"d\",i,\"s\",n,\"=(t\",i,\"p\",c,\"-s\",h,\"*t\",i,\"p\",h,\")\"].join(\"\"));for(u.length>0&&l.push(\"var \"+u.join(\",\")),n=a-1;n>=0;--n)c=t[n],l.push([\"for(i\",n,\"=0;i\",n,\"<s\",c,\";++i\",n,\"){\"].join(\"\"));for(l.push(r),n=0;n<a;++n){for(h=c,c=t[n],i=0;i<o;++i)l.push([\"p\",i,\"+=d\",i,\"s\",n].join(\"\"));s&&(n>0&&l.push([\"index[\",h,\"]-=s\",h].join(\"\")),l.push([\"++index[\",c,\"]\"].join(\"\"))),l.push(\"}\")}return l.join(\"\\n\")}function i(t,e,r,i){for(var a=e.length,o=r.arrayArgs.length,s=r.blockSize,l=r.indexArgs.length>0,u=[],c=0;c<o;++c)u.push([\"var offset\",c,\"=p\",c].join(\"\"));for(var c=t;c<a;++c)u.push([\"for(var j\"+c+\"=SS[\",e[c],\"]|0;j\",c,\">0;){\"].join(\"\")),u.push([\"if(j\",c,\"<\",s,\"){\"].join(\"\")),u.push([\"s\",e[c],\"=j\",c].join(\"\")),u.push([\"j\",c,\"=0\"].join(\"\")),u.push([\"}else{s\",e[c],\"=\",s].join(\"\")),u.push([\"j\",c,\"-=\",s,\"}\"].join(\"\")),l&&u.push([\"index[\",e[c],\"]=j\",c].join(\"\"));for(var c=0;c<o;++c){for(var h=[\"offset\"+c],f=t;f<a;++f)h.push([\"j\",f,\"*t\",c,\"p\",e[f]].join(\"\"));u.push([\"p\",c,\"=(\",h.join(\"+\"),\")\"].join(\"\"))}u.push(n(e,r,i));for(var c=t;c<a;++c)u.push(\"}\");return u.join(\"\\n\")}function a(t){for(var e=0,r=t[0].length;e<r;){for(var n=1;n<t.length;++n)if(t[n][e]!==t[0][e])return e;++e}return e}function o(t,e,r){for(var n=t.body,i=[],a=[],o=0;o<t.args.length;++o){var s=t.args[o];if(!(s.count<=0)){var l=new RegExp(s.name,\"g\"),u=\"\",c=e.arrayArgs.indexOf(o);switch(e.argTypes[o]){case\"offset\":var h=e.offsetArgIndex.indexOf(o);c=e.offsetArgs[h].array,u=\"+q\"+h;case\"array\":u=\"p\"+c+u;var f=\"l\"+o,d=\"a\"+c;if(0===e.arrayBlockIndices[c])1===s.count?\"generic\"===r[c]?s.lvalue?(i.push([\"var \",f,\"=\",d,\".get(\",u,\")\"].join(\"\")),n=n.replace(l,f),a.push([d,\".set(\",u,\",\",f,\")\"].join(\"\"))):n=n.replace(l,[d,\".get(\",u,\")\"].join(\"\")):n=n.replace(l,[d,\"[\",u,\"]\"].join(\"\")):\"generic\"===r[c]?(i.push([\"var \",f,\"=\",d,\".get(\",u,\")\"].join(\"\")),n=n.replace(l,f),s.lvalue&&a.push([d,\".set(\",u,\",\",f,\")\"].join(\"\"))):(i.push([\"var \",f,\"=\",d,\"[\",u,\"]\"].join(\"\")),n=n.replace(l,f),s.lvalue&&a.push([d,\"[\",u,\"]=\",f].join(\"\")));else{for(var p=[s.name],m=[u],v=0;v<Math.abs(e.arrayBlockIndices[c]);v++)p.push(\"\\\\s*\\\\[([^\\\\]]+)\\\\]\"),m.push(\"$\"+(v+1)+\"*t\"+c+\"b\"+v);if(l=new RegExp(p.join(\"\"),\"g\"),u=m.join(\"+\"),\"generic\"===r[c])throw new Error(\"cwise: Generic arrays not supported in combination with blocks!\");n=n.replace(l,[d,\"[\",u,\"]\"].join(\"\"))}break;case\"scalar\":n=n.replace(l,\"Y\"+e.scalarArgs.indexOf(o));break;case\"index\":n=n.replace(l,\"index\");break;case\"shape\":n=n.replace(l,\"shape\")}}}return[i.join(\"\\n\"),n,a.join(\"\\n\")].join(\"\\n\").trim()}function s(t){for(var e=new Array(t.length),r=!0,n=0;n<t.length;++n){var i=t[n],a=i.match(/\\d+/);a=a?a[0]:\"\",0===i.charAt(0)?e[n]=\"u\"+i.charAt(1)+a:e[n]=i.charAt(0)+a,n>0&&(r=r&&e[n]===e[n-1])}return r?e[0]:e.join(\"\")}function l(t,e){for(var r=e[1].length-Math.abs(t.arrayBlockIndices[0])|0,l=new Array(t.arrayArgs.length),c=new Array(t.arrayArgs.length),h=0;h<t.arrayArgs.length;++h)c[h]=e[2*h],l[h]=e[2*h+1];for(var f=[],d=[],p=[],m=[],v=[],h=0;h<t.arrayArgs.length;++h){t.arrayBlockIndices[h]<0?(p.push(0),m.push(r),f.push(r),d.push(r+t.arrayBlockIndices[h])):(p.push(t.arrayBlockIndices[h]),m.push(t.arrayBlockIndices[h]+r),f.push(0),d.push(t.arrayBlockIndices[h]));for(var g=[],y=0;y<l[h].length;y++)p[h]<=l[h][y]&&l[h][y]<m[h]&&g.push(l[h][y]-p[h]);v.push(g)}for(var b=[\"SS\"],x=[\"'use strict'\"],_=[],y=0;y<r;++y)_.push([\"s\",y,\"=SS[\",y,\"]\"].join(\"\"));for(var h=0;h<t.arrayArgs.length;++h){b.push(\"a\"+h),b.push(\"t\"+h),b.push(\"p\"+h);for(var y=0;y<r;++y)_.push([\"t\",h,\"p\",y,\"=t\",h,\"[\",p[h]+y,\"]\"].join(\"\"));for(var y=0;y<Math.abs(t.arrayBlockIndices[h]);++y)_.push([\"t\",h,\"b\",y,\"=t\",h,\"[\",f[h]+y,\"]\"].join(\"\"))}for(var h=0;h<t.scalarArgs.length;++h)b.push(\"Y\"+h);if(t.shapeArgs.length>0&&_.push(\"shape=SS.slice(0)\"),t.indexArgs.length>0){for(var w=new Array(r),h=0;h<r;++h)w[h]=\"0\";_.push([\"index=[\",w.join(\",\"),\"]\"].join(\"\"))}for(var h=0;h<t.offsetArgs.length;++h){for(var M=t.offsetArgs[h],k=[],y=0;y<M.offset.length;++y)0!==M.offset[y]&&(1===M.offset[y]?k.push([\"t\",M.array,\"p\",y].join(\"\")):k.push([M.offset[y],\"*t\",M.array,\"p\",y].join(\"\")));0===k.length?_.push(\"q\"+h+\"=0\"):_.push([\"q\",h,\"=\",k.join(\"+\")].join(\"\"))}var A=u([].concat(t.pre.thisVars).concat(t.body.thisVars).concat(t.post.thisVars));_=_.concat(A),_.length>0&&x.push(\"var \"+_.join(\",\"));for(var h=0;h<t.arrayArgs.length;++h)x.push(\"p\"+h+\"|=0\");t.pre.body.length>3&&x.push(o(t.pre,t,c));var T=o(t.body,t,c),S=a(v);S<r?x.push(i(S,v[0],t,T)):x.push(n(v[0],t,T)),t.post.body.length>3&&x.push(o(t.post,t,c)),t.debug&&console.log(\"-----Generated cwise routine for \",e,\":\\n\"+x.join(\"\\n\")+\"\\n----------\");var E=[t.funcName||\"unnamed\",\"_cwise_loop_\",l[0].join(\"s\"),\"m\",S,s(c)].join(\"\");return new Function([\"function \",E,\"(\",b.join(\",\"),\"){\",x.join(\"\\n\"),\"} return \",E].join(\"\"))()}var u=t(\"uniq\");e.exports=l},{uniq:543}],112:[function(t,e,r){\"use strict\";function n(t){var e=[\"'use strict'\",\"var CACHED={}\"],r=[],n=t.funcName+\"_cwise_thunk\";e.push([\"return function \",n,\"(\",t.shimArgs.join(\",\"),\"){\"].join(\"\"));for(var a=[],o=[],s=[[\"array\",t.arrayArgs[0],\".shape.slice(\",Math.max(0,t.arrayBlockIndices[0]),t.arrayBlockIndices[0]<0?\",\"+t.arrayBlockIndices[0]+\")\":\")\"].join(\"\")],l=[],u=[],c=0;c<t.arrayArgs.length;++c){var h=t.arrayArgs[c];r.push([\"t\",h,\"=array\",h,\".dtype,\",\"r\",h,\"=array\",h,\".order\"].join(\"\")),a.push(\"t\"+h),a.push(\"r\"+h),o.push(\"t\"+h),o.push(\"r\"+h+\".join()\"),s.push(\"array\"+h+\".data\"),s.push(\"array\"+h+\".stride\"),s.push(\"array\"+h+\".offset|0\"),c>0&&(l.push(\"array\"+t.arrayArgs[0]+\".shape.length===array\"+h+\".shape.length+\"+(Math.abs(t.arrayBlockIndices[0])-Math.abs(t.arrayBlockIndices[c]))),u.push(\"array\"+t.arrayArgs[0]+\".shape[shapeIndex+\"+Math.max(0,t.arrayBlockIndices[0])+\"]===array\"+h+\".shape[shapeIndex+\"+Math.max(0,t.arrayBlockIndices[c])+\"]\"))}t.arrayArgs.length>1&&(e.push(\"if (!(\"+l.join(\" && \")+\")) throw new Error('cwise: Arrays do not all have the same dimensionality!')\"),e.push(\"for(var shapeIndex=array\"+t.arrayArgs[0]+\".shape.length-\"+Math.abs(t.arrayBlockIndices[0])+\"; shapeIndex--\\x3e0;) {\"),e.push(\"if (!(\"+u.join(\" && \")+\")) throw new Error('cwise: Arrays do not all have the same shape!')\"),e.push(\"}\"));for(var c=0;c<t.scalarArgs.length;++c)s.push(\"scalar\"+t.scalarArgs[c]);return r.push([\"type=[\",o.join(\",\"),\"].join()\"].join(\"\")),r.push(\"proc=CACHED[type]\"),e.push(\"var \"+r.join(\",\")),e.push([\"if(!proc){\",\"CACHED[type]=proc=compile([\",a.join(\",\"),\"])}\",\"return proc(\",s.join(\",\"),\")}\"].join(\"\")),t.debug&&console.log(\"-----Generated thunk:\\n\"+e.join(\"\\n\")+\"\\n----------\"),new Function(\"compile\",e.join(\"\\n\"))(i.bind(void 0,t))}var i=t(\"./compile.js\");e.exports=n},{\"./compile.js\":111}],113:[function(t,e,r){e.exports=t(\"cwise-compiler\")},{\"cwise-compiler\":110}],114:[function(e,r,n){!function(e,i){\"object\"==typeof n&&void 0!==r?i(n):\"function\"==typeof t&&t.amd?t([\"exports\"],i):i(e.d3=e.d3||{})}(this,function(t){\"use strict\";function e(t){return function(e,r){return o(t(e),r)}}function r(t,e){return[t,e]}function n(t,e,r){var n=(e-t)/Math.max(0,r),i=Math.floor(Math.log(n)/Math.LN10),a=n/Math.pow(10,i);return i>=0?(a>=k?10:a>=A?5:a>=T?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(a>=k?10:a>=A?5:a>=T?2:1)}function i(t,e,r){var n=Math.abs(e-t)/Math.max(0,r),i=Math.pow(10,Math.floor(Math.log(n)/Math.LN10)),a=n/i;return a>=k?i*=10:a>=A?i*=5:a>=T&&(i*=2),e<t?-i:i}function a(t){return t.length}var o=function(t,e){return t<e?-1:t>e?1:t>=e?0:NaN},s=function(t){return 1===t.length&&(t=e(t)),{left:function(e,r,n,i){for(null==n&&(n=0),null==i&&(i=e.length);n<i;){var a=n+i>>>1;t(e[a],r)<0?n=a+1:i=a}return n},right:function(e,r,n,i){for(null==n&&(n=0),null==i&&(i=e.length);n<i;){var a=n+i>>>1;t(e[a],r)>0?i=a:n=a+1}return n}}},l=s(o),u=l.right,c=l.left,h=function(t,e){null==e&&(e=r);for(var n=0,i=t.length-1,a=t[0],o=new Array(i<0?0:i);n<i;)o[n]=e(a,a=t[++n]);return o},f=function(t,e,n){var i,a,o,s,l=t.length,u=e.length,c=new Array(l*u);for(null==n&&(n=r),i=o=0;i<l;++i)for(s=t[i],a=0;a<u;++a,++o)c[o]=n(s,e[a]);return c},d=function(t,e){return e<t?-1:e>t?1:e>=t?0:NaN},p=function(t){return null===t?NaN:+t},m=function(t,e){var r,n,i=t.length,a=0,o=-1,s=0,l=0;if(null==e)for(;++o<i;)isNaN(r=p(t[o]))||(n=r-s,s+=n/++a,l+=n*(r-s));else for(;++o<i;)isNaN(r=p(e(t[o],o,t)))||(n=r-s,s+=n/++a,l+=n*(r-s));if(a>1)return l/(a-1)},v=function(t,e){var r=m(t,e);return r?Math.sqrt(r):r},g=function(t,e){var r,n,i,a=t.length,o=-1;if(null==e){for(;++o<a;)if(null!=(r=t[o])&&r>=r)for(n=i=r;++o<a;)null!=(r=t[o])&&(n>r&&(n=r),i<r&&(i=r))}else for(;++o<a;)if(null!=(r=e(t[o],o,t))&&r>=r)for(n=i=r;++o<a;)null!=(r=e(t[o],o,t))&&(n>r&&(n=r),i<r&&(i=r));return[n,i]},y=Array.prototype,b=y.slice,x=y.map,_=function(t){return function(){return t}},w=function(t){return t},M=function(t,e,r){t=+t,e=+e,r=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+r;for(var n=-1,i=0|Math.max(0,Math.ceil((e-t)/r)),a=new Array(i);++n<i;)a[n]=t+n*r;return a},k=Math.sqrt(50),A=Math.sqrt(10),T=Math.sqrt(2),S=function(t,e,r){var i,a,o,s=e<t,l=-1;if(s&&(i=t,t=e,e=i),0===(o=n(t,e,r))||!isFinite(o))return[];if(o>0)for(t=Math.ceil(t/o),e=Math.floor(e/o),a=new Array(i=Math.ceil(e-t+1));++l<i;)a[l]=(t+l)*o;else for(t=Math.floor(t*o),e=Math.ceil(e*o),a=new Array(i=Math.ceil(t-e+1));++l<i;)a[l]=(t-l)/o;return s&&a.reverse(),a},E=function(t){return Math.ceil(Math.log(t.length)/Math.LN2)+1},L=function(){function t(t){var a,o,s=t.length,l=new Array(s);for(a=0;a<s;++a)l[a]=e(t[a],a,t);var c=r(l),h=c[0],f=c[1],d=n(l,h,f);Array.isArray(d)||(d=i(h,f,d),d=M(Math.ceil(h/d)*d,Math.floor(f/d)*d,d));for(var p=d.length;d[0]<=h;)d.shift(),--p;for(;d[p-1]>f;)d.pop(),--p;var m,v=new Array(p+1);for(a=0;a<=p;++a)m=v[a]=[],m.x0=a>0?d[a-1]:h,m.x1=a<p?d[a]:f;for(a=0;a<s;++a)o=l[a],h<=o&&o<=f&&v[u(d,o,0,p)].push(t[a]);return v}var e=w,r=g,n=E;return t.value=function(r){return arguments.length?(e=\"function\"==typeof r?r:_(r),t):e},t.domain=function(e){return arguments.length?(r=\"function\"==typeof e?e:_([e[0],e[1]]),t):r},t.thresholds=function(e){return arguments.length?(n=\"function\"==typeof e?e:_(Array.isArray(e)?b.call(e):e),t):n},t},C=function(t,e,r){if(null==r&&(r=p),n=t.length){if((e=+e)<=0||n<2)return+r(t[0],0,t);if(e>=1)return+r(t[n-1],n-1,t);var n,i=(n-1)*e,a=Math.floor(i),o=+r(t[a],a,t);return o+(+r(t[a+1],a+1,t)-o)*(i-a)}},I=function(t,e,r){return t=x.call(t,p).sort(o),Math.ceil((r-e)/(2*(C(t,.75)-C(t,.25))*Math.pow(t.length,-1/3)))},z=function(t,e,r){return Math.ceil((r-e)/(3.5*v(t)*Math.pow(t.length,-1/3)))},D=function(t,e){var r,n,i=t.length,a=-1;if(null==e){for(;++a<i;)if(null!=(r=t[a])&&r>=r)for(n=r;++a<i;)null!=(r=t[a])&&r>n&&(n=r)}else for(;++a<i;)if(null!=(r=e(t[a],a,t))&&r>=r)for(n=r;++a<i;)null!=(r=e(t[a],a,t))&&r>n&&(n=r);return n},P=function(t,e){var r,n=t.length,i=n,a=-1,o=0;if(null==e)for(;++a<n;)isNaN(r=p(t[a]))?--i:o+=r;else for(;++a<n;)isNaN(r=p(e(t[a],a,t)))?--i:o+=r;if(i)return o/i},O=function(t,e){var r,n=t.length,i=-1,a=[];if(null==e)for(;++i<n;)isNaN(r=p(t[i]))||a.push(r);else for(;++i<n;)isNaN(r=p(e(t[i],i,t)))||a.push(r);return C(a.sort(o),.5)},R=function(t){for(var e,r,n,i=t.length,a=-1,o=0;++a<i;)o+=t[a].length;for(r=new Array(o);--i>=0;)for(n=t[i],e=n.length;--e>=0;)r[--o]=n[e];return r},F=function(t,e){var r,n,i=t.length,a=-1;if(null==e){for(;++a<i;)if(null!=(r=t[a])&&r>=r)for(n=r;++a<i;)null!=(r=t[a])&&n>r&&(n=r)}else for(;++a<i;)if(null!=(r=e(t[a],a,t))&&r>=r)for(n=r;++a<i;)null!=(r=e(t[a],a,t))&&n>r&&(n=r);return n},j=function(t,e){for(var r=e.length,n=new Array(r);r--;)n[r]=t[e[r]];return n},N=function(t,e){if(r=t.length){var r,n,i=0,a=0,s=t[a];for(null==e&&(e=o);++i<r;)(e(n=t[i],s)<0||0!==e(s,s))&&(s=n,a=i);return 0===e(s,s)?a:void 0}},B=function(t,e,r){for(var n,i,a=(null==r?t.length:r)-(e=null==e?0:+e);a;)i=Math.random()*a--|0,n=t[a+e],t[a+e]=t[i+e],t[i+e]=n;return t},U=function(t,e){var r,n=t.length,i=-1,a=0;if(null==e)for(;++i<n;)(r=+t[i])&&(a+=r);else for(;++i<n;)(r=+e(t[i],i,t))&&(a+=r);return a},V=function(t){if(!(i=t.length))return[];for(var e=-1,r=F(t,a),n=new Array(r);++e<r;)for(var i,o=-1,s=n[e]=new Array(i);++o<i;)s[o]=t[o][e];return n},H=function(){return V(arguments)};t.bisect=u,t.bisectRight=u,t.bisectLeft=c,t.ascending=o,t.bisector=s,t.cross=f,t.descending=d,t.deviation=v,t.extent=g,t.histogram=L,t.thresholdFreedmanDiaconis=I,t.thresholdScott=z,t.thresholdSturges=E,t.max=D,t.mean=P,t.median=O,t.merge=R,t.min=F,t.pairs=h,t.permute=j,t.quantile=C,t.range=M,t.scan=N,t.shuffle=B,t.sum=U,t.ticks=S,t.tickIncrement=n,t.tickStep=i,t.transpose=V,t.variance=m,t.zip=H,Object.defineProperty(t,\"__esModule\",{value:!0})})},{}],115:[function(e,r,n){!function(e,i){\"object\"==typeof n&&void 0!==r?i(n):\"function\"==typeof t&&t.amd?t([\"exports\"],i):i(e.d3=e.d3||{})}(this,function(t){\"use strict\";function e(){}function r(t,r){var n=new e;if(t instanceof e)t.each(function(t,e){n.set(e,t)});else if(Array.isArray(t)){var i,a=-1,o=t.length;if(null==r)for(;++a<o;)n.set(a,t[a]);else for(;++a<o;)n.set(r(i=t[a],a,t),i)}else if(t)for(var s in t)n.set(s,t[s]);return n}function n(){return{}}function i(t,e,r){t[e]=r}function a(){return r()}function o(t,e,r){t.set(e,r)}function s(){}function l(t,e){var r=new s;if(t instanceof s)t.each(function(t){r.add(t)});else if(t){var n=-1,i=t.length;if(null==e)for(;++n<i;)r.add(t[n]);else for(;++n<i;)r.add(e(t[n],n,t))}return r}e.prototype=r.prototype={constructor:e,has:function(t){return\"$\"+t in this},get:function(t){return this[\"$\"+t]},set:function(t,e){return this[\"$\"+t]=e,this},remove:function(t){var e=\"$\"+t;return e in this&&delete this[e]},clear:function(){for(var t in this)\"$\"===t[0]&&delete this[t]},keys:function(){var t=[];for(var e in this)\"$\"===e[0]&&t.push(e.slice(1));return t},values:function(){var t=[];for(var e in this)\"$\"===e[0]&&t.push(this[e]);return t},entries:function(){var t=[];for(var e in this)\"$\"===e[0]&&t.push({key:e.slice(1),value:this[e]});return t},size:function(){var t=0;for(var e in this)\"$\"===e[0]&&++t;return t},empty:function(){for(var t in this)if(\"$\"===t[0])return!1;return!0},each:function(t){for(var e in this)\"$\"===e[0]&&t(this[e],e.slice(1),this)}};var u=function(){function t(e,n,i,a){if(n>=c.length)return null!=l?l(e):null!=s?e.sort(s):e;for(var o,u,h,f=-1,d=e.length,p=c[n++],m=r(),v=i();++f<d;)(h=m.get(o=p(u=e[f])+\"\"))?h.push(u):m.set(o,[u]);return m.each(function(e,r){a(v,r,t(e,n,i,a))}),v}function e(t,r){if(++r>c.length)return t;var n,i=h[r-1];return null!=l&&r>=c.length?n=t.entries():(n=[],t.each(function(t,i){n.push({key:i,values:e(t,r)})})),null!=i?n.sort(function(t,e){return i(t.key,e.key)}):n}var s,l,u,c=[],h=[];return u={object:function(e){return t(e,0,n,i)},map:function(e){return t(e,0,a,o)},entries:function(r){return e(t(r,0,a,o),0)},key:function(t){return c.push(t),u},sortKeys:function(t){return h[c.length-1]=t,u},sortValues:function(t){return s=t,u},rollup:function(t){return l=t,u}}},c=r.prototype;s.prototype=l.prototype={constructor:s,has:c.has,add:function(t){return t+=\"\",this[\"$\"+t]=t,this},remove:c.remove,clear:c.clear,values:c.keys,size:c.size,empty:c.empty,each:c.each};var h=function(t){var e=[];for(var r in t)e.push(r);return e},f=function(t){var e=[];for(var r in t)e.push(t[r]);return e},d=function(t){var e=[];for(var r in t)e.push({key:r,value:t[r]});return e};t.nest=u,t.set=l,t.map=r,t.keys=h,t.values=f,t.entries=d,Object.defineProperty(t,\"__esModule\",{value:!0})})},{}],116:[function(e,r,n){!function(e,i){\"object\"==typeof n&&void 0!==r?i(n):\"function\"==typeof t&&t.amd?t([\"exports\"],i):i(e.d3=e.d3||{})}(this,function(t){\"use strict\";function e(t,e){var r=Object.create(t.prototype);for(var n in e)r[n]=e[n];return r}function r(){}function n(t){var e;return t=(t+\"\").trim().toLowerCase(),(e=I.exec(t))?(e=parseInt(e[1],16),new l(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1)):(e=z.exec(t))?i(parseInt(e[1],16)):(e=D.exec(t))?new l(e[1],e[2],e[3],1):(e=P.exec(t))?new l(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=O.exec(t))?a(e[1],e[2],e[3],e[4]):(e=R.exec(t))?a(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=F.exec(t))?u(e[1],e[2]/100,e[3]/100,1):(e=j.exec(t))?u(e[1],e[2]/100,e[3]/100,e[4]):N.hasOwnProperty(t)?i(N[t]):\"transparent\"===t?new l(NaN,NaN,NaN,0):null}function i(t){return new l(t>>16&255,t>>8&255,255&t,1)}function a(t,e,r,n){return n<=0&&(t=e=r=NaN),new l(t,e,r,n)}function o(t){return t instanceof r||(t=n(t)),t?(t=t.rgb(),new l(t.r,t.g,t.b,t.opacity)):new l}function s(t,e,r,n){return 1===arguments.length?o(t):new l(t,e,r,null==n?1:n)}function l(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}function u(t,e,r,n){return n<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new f(t,e,r,n)}function c(t){if(t instanceof f)return new f(t.h,t.s,t.l,t.opacity);if(t instanceof r||(t=n(t)),!t)return new f;if(t instanceof f)return t;t=t.rgb();var e=t.r/255,i=t.g/255,a=t.b/255,o=Math.min(e,i,a),s=Math.max(e,i,a),l=NaN,u=s-o,c=(s+o)/2;return u?(l=e===s?(i-a)/u+6*(i<a):i===s?(a-e)/u+2:(e-i)/u+4,u/=c<.5?s+o:2-s-o,l*=60):u=c>0&&c<1?0:l,new f(l,u,c,t.opacity)}function h(t,e,r,n){return 1===arguments.length?c(t):new f(t,e,r,null==n?1:n)}function f(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}function d(t,e,r){return 255*(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)}function p(t){if(t instanceof v)return new v(t.l,t.a,t.b,t.opacity);if(t instanceof M){var e=t.h*B;return new v(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}t instanceof l||(t=o(t));var r=x(t.r),n=x(t.g),i=x(t.b),a=g((.4124564*r+.3575761*n+.1804375*i)/V),s=g((.2126729*r+.7151522*n+.072175*i)/H);return new v(116*s-16,500*(a-s),200*(s-g((.0193339*r+.119192*n+.9503041*i)/q)),t.opacity)}function m(t,e,r,n){return 1===arguments.length?p(t):new v(t,e,r,null==n?1:n)}function v(t,e,r,n){this.l=+t,this.a=+e,this.b=+r,this.opacity=+n}function g(t){return t>X?Math.pow(t,1/3):t/W+G}function y(t){return t>Y?t*t*t:W*(t-G)}function b(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function x(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function _(t){if(t instanceof M)return new M(t.h,t.c,t.l,t.opacity);t instanceof v||(t=p(t));var e=Math.atan2(t.b,t.a)*U;return new M(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function w(t,e,r,n){return 1===arguments.length?_(t):new M(t,e,r,null==n?1:n)}function M(t,e,r,n){this.h=+t,this.c=+e,this.l=+r,this.opacity=+n}function k(t){if(t instanceof T)return new T(t.h,t.s,t.l,t.opacity);t instanceof l||(t=o(t));var e=t.r/255,r=t.g/255,n=t.b/255,i=(rt*n+tt*e-et*r)/(rt+tt-et),a=n-i,s=($*(r-i)-K*a)/Q,u=Math.sqrt(s*s+a*a)/($*i*(1-i)),c=u?Math.atan2(s,a)*U-120:NaN;return new T(c<0?c+360:c,u,i,t.opacity)}function A(t,e,r,n){return 1===arguments.length?k(t):new T(t,e,r,null==n?1:n)}function T(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}var S=function(t,e,r){t.prototype=e.prototype=r,r.constructor=t},E=\"\\\\s*([+-]?\\\\d+)\\\\s*\",L=\"\\\\s*([+-]?\\\\d*\\\\.?\\\\d+(?:[eE][+-]?\\\\d+)?)\\\\s*\",C=\"\\\\s*([+-]?\\\\d*\\\\.?\\\\d+(?:[eE][+-]?\\\\d+)?)%\\\\s*\",I=/^#([0-9a-f]{3})$/,z=/^#([0-9a-f]{6})$/,D=new RegExp(\"^rgb\\\\(\"+[E,E,E]+\"\\\\)$\"),P=new RegExp(\"^rgb\\\\(\"+[C,C,C]+\"\\\\)$\"),O=new RegExp(\"^rgba\\\\(\"+[E,E,E,L]+\"\\\\)$\"),R=new RegExp(\"^rgba\\\\(\"+[C,C,C,L]+\"\\\\)$\"),F=new RegExp(\"^hsl\\\\(\"+[L,C,C]+\"\\\\)$\"),j=new RegExp(\"^hsla\\\\(\"+[L,C,C,L]+\"\\\\)$\"),N={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};S(r,n,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+\"\"}}),S(l,s,e(r,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new l(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new l(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},toString:function(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(1===t?\"rgb(\":\"rgba(\")+Math.max(0,Math.min(255,Math.round(this.r)||0))+\", \"+Math.max(0,Math.min(255,Math.round(this.g)||0))+\", \"+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?\")\":\", \"+t+\")\")}})),S(f,h,e(r,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new f(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new f(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*e,i=2*r-n;return new l(d(t>=240?t-240:t+120,i,n),d(t,i,n),d(t<120?t+240:t-120,i,n),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var B=Math.PI/180,U=180/Math.PI,V=.95047,H=1,q=1.08883,G=4/29,Y=6/29,W=3*Y*Y,X=Y*Y*Y;S(v,m,e(r,{brighter:function(t){return new v(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new v(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,r=isNaN(this.b)?t:t-this.b/200;return t=H*y(t),e=V*y(e),r=q*y(r),new l(b(3.2404542*e-1.5371385*t-.4985314*r),b(-.969266*e+1.8760108*t+.041556*r),b(.0556434*e-.2040259*t+1.0572252*r),this.opacity)}})),S(M,w,e(r,{brighter:function(t){return new M(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new M(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return p(this).rgb()}}));var Z=-.14861,J=1.78277,K=-.29227,Q=-.90649,$=1.97294,tt=$*Q,et=$*J,rt=J*K-Q*Z;S(T,A,e(r,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new T(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new T(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*B,e=+this.l,r=isNaN(this.s)?0:this.s*e*(1-e),n=Math.cos(t),i=Math.sin(t);return new l(255*(e+r*(Z*n+J*i)),255*(e+r*(K*n+Q*i)),255*(e+r*($*n)),this.opacity)}})),t.color=n,t.rgb=s,t.hsl=h,t.lab=m,t.hcl=w,t.cubehelix=A,Object.defineProperty(t,\"__esModule\",{value:!0})})},{}],117:[function(e,r,n){!function(e,i){\"object\"==typeof n&&void 0!==r?i(n):\"function\"==typeof t&&t.amd?t([\"exports\"],i):i(e.d3=e.d3||{})}(this,function(t){\"use strict\";function e(){for(var t,e=0,n=arguments.length,i={};e<n;++e){if(!(t=arguments[e]+\"\")||t in i)throw new Error(\"illegal type: \"+t);i[t]=[]}return new r(i)}function r(t){this._=t}function n(t,e){return t.trim().split(/^|\\s+/).map(function(t){var r=\"\",n=t.indexOf(\".\");if(n>=0&&(r=t.slice(n+1),t=t.slice(0,n)),t&&!e.hasOwnProperty(t))throw new Error(\"unknown type: \"+t);return{type:t,name:r}})}function i(t,e){for(var r,n=0,i=t.length;n<i;++n)if((r=t[n]).name===e)return r.value}function a(t,e,r){for(var n=0,i=t.length;n<i;++n)if(t[n].name===e){t[n]=o,t=t.slice(0,n).concat(t.slice(n+1));break}return null!=r&&t.push({name:e,value:r}),t}var o={value:function(){}};r.prototype=e.prototype={constructor:r,on:function(t,e){var r,o=this._,s=n(t+\"\",o),l=-1,u=s.length;{if(!(arguments.length<2)){\n", "if(null!=e&&\"function\"!=typeof e)throw new Error(\"invalid callback: \"+e);for(;++l<u;)if(r=(t=s[l]).type)o[r]=a(o[r],t.name,e);else if(null==e)for(r in o)o[r]=a(o[r],t.name,null);return this}for(;++l<u;)if((r=(t=s[l]).type)&&(r=i(o[r],t.name)))return r}},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new r(t)},call:function(t,e){if((r=arguments.length-2)>0)for(var r,n,i=new Array(r),a=0;a<r;++a)i[a]=arguments[a+2];if(!this._.hasOwnProperty(t))throw new Error(\"unknown type: \"+t);for(n=this._[t],a=0,r=n.length;a<r;++a)n[a].value.apply(e,i)},apply:function(t,e,r){if(!this._.hasOwnProperty(t))throw new Error(\"unknown type: \"+t);for(var n=this._[t],i=0,a=n.length;i<a;++i)n[i].value.apply(e,r)}},t.dispatch=e,Object.defineProperty(t,\"__esModule\",{value:!0})})},{}],118:[function(e,r,n){!function(i,a){\"object\"==typeof n&&void 0!==r?a(n,e(\"d3-quadtree\"),e(\"d3-collection\"),e(\"d3-dispatch\"),e(\"d3-timer\")):\"function\"==typeof t&&t.amd?t([\"exports\",\"d3-quadtree\",\"d3-collection\",\"d3-dispatch\",\"d3-timer\"],a):a(i.d3=i.d3||{},i.d3,i.d3,i.d3,i.d3)}(this,function(t,e,r,n,i){\"use strict\";function a(t){return t.x+t.vx}function o(t){return t.y+t.vy}function s(t){return t.index}function l(t,e){var r=t.get(e);if(!r)throw new Error(\"missing: \"+e);return r}function u(t){return t.x}function c(t){return t.y}var h=function(t,e){function r(){var r,i,a=n.length,o=0,s=0;for(r=0;r<a;++r)i=n[r],o+=i.x,s+=i.y;for(o=o/a-t,s=s/a-e,r=0;r<a;++r)i=n[r],i.x-=o,i.y-=s}var n;return null==t&&(t=0),null==e&&(e=0),r.initialize=function(t){n=t},r.x=function(e){return arguments.length?(t=+e,r):t},r.y=function(t){return arguments.length?(e=+t,r):e},r},f=function(t){return function(){return t}},d=function(){return 1e-6*(Math.random()-.5)},p=function(t){function r(){function t(t,e,r,n,i){var a=t.data,o=t.r,s=m+o;{if(!a)return e>f+s||n<f-s||r>p+s||i<p-s;if(a.index>h.index){var l=f-a.x-a.vx,c=p-a.y-a.vy,g=l*l+c*c;g<s*s&&(0===l&&(l=d(),g+=l*l),0===c&&(c=d(),g+=c*c),g=(s-(g=Math.sqrt(g)))/g*u,h.vx+=(l*=g)*(s=(o*=o)/(v+o)),h.vy+=(c*=g)*s,a.vx-=l*(s=1-s),a.vy-=c*s)}}}for(var r,i,h,f,p,m,v,g=s.length,y=0;y<c;++y)for(i=e.quadtree(s,a,o).visitAfter(n),r=0;r<g;++r)h=s[r],m=l[h.index],v=m*m,f=h.x+h.vx,p=h.y+h.vy,i.visit(t)}function n(t){if(t.data)return t.r=l[t.data.index];for(var e=t.r=0;e<4;++e)t[e]&&t[e].r>t.r&&(t.r=t[e].r)}function i(){if(s){var e,r,n=s.length;for(l=new Array(n),e=0;e<n;++e)r=s[e],l[r.index]=+t(r,e,s)}}var s,l,u=1,c=1;return\"function\"!=typeof t&&(t=f(null==t?1:+t)),r.initialize=function(t){s=t,i()},r.iterations=function(t){return arguments.length?(c=+t,r):c},r.strength=function(t){return arguments.length?(u=+t,r):u},r.radius=function(e){return arguments.length?(t=\"function\"==typeof e?e:f(+e),i(),r):t},r},m=function(t){function e(t){return 1/Math.min(p[t.source.index],p[t.target.index])}function n(e){for(var r=0,n=t.length;r<b;++r)for(var i,a,o,s,l,h,f,p=0;p<n;++p)i=t[p],a=i.source,o=i.target,s=o.x+o.vx-a.x-a.vx||d(),l=o.y+o.vy-a.y-a.vy||d(),h=Math.sqrt(s*s+l*l),h=(h-c[p])/h*e*u[p],s*=h,l*=h,o.vx-=s*(f=m[p]),o.vy-=l*f,a.vx+=s*(f=1-f),a.vy+=l*f}function i(){if(h){var e,n,i=h.length,s=t.length,f=r.map(h,v);for(e=0,p=new Array(i);e<s;++e)n=t[e],n.index=e,\"object\"!=typeof n.source&&(n.source=l(f,n.source)),\"object\"!=typeof n.target&&(n.target=l(f,n.target)),p[n.source.index]=(p[n.source.index]||0)+1,p[n.target.index]=(p[n.target.index]||0)+1;for(e=0,m=new Array(s);e<s;++e)n=t[e],m[e]=p[n.source.index]/(p[n.source.index]+p[n.target.index]);u=new Array(s),a(),c=new Array(s),o()}}function a(){if(h)for(var e=0,r=t.length;e<r;++e)u[e]=+g(t[e],e,t)}function o(){if(h)for(var e=0,r=t.length;e<r;++e)c[e]=+y(t[e],e,t)}var u,c,h,p,m,v=s,g=e,y=f(30),b=1;return null==t&&(t=[]),n.initialize=function(t){h=t,i()},n.links=function(e){return arguments.length?(t=e,i(),n):t},n.id=function(t){return arguments.length?(v=t,n):v},n.iterations=function(t){return arguments.length?(b=+t,n):b},n.strength=function(t){return arguments.length?(g=\"function\"==typeof t?t:f(+t),a(),n):g},n.distance=function(t){return arguments.length?(y=\"function\"==typeof t?t:f(+t),o(),n):y},n},v=10,g=Math.PI*(3-Math.sqrt(5)),y=function(t){function e(){a(),y.call(\"tick\",l),u<c&&(m.stop(),y.call(\"end\",l))}function a(){var e,r,n=t.length;for(u+=(f-u)*h,p.each(function(t){t(u)}),e=0;e<n;++e)r=t[e],null==r.fx?r.x+=r.vx*=d:(r.x=r.fx,r.vx=0),null==r.fy?r.y+=r.vy*=d:(r.y=r.fy,r.vy=0)}function o(){for(var e,r=0,n=t.length;r<n;++r){if(e=t[r],e.index=r,isNaN(e.x)||isNaN(e.y)){var i=v*Math.sqrt(r),a=r*g;e.x=i*Math.cos(a),e.y=i*Math.sin(a)}(isNaN(e.vx)||isNaN(e.vy))&&(e.vx=e.vy=0)}}function s(e){return e.initialize&&e.initialize(t),e}var l,u=1,c=.001,h=1-Math.pow(c,1/300),f=0,d=.6,p=r.map(),m=i.timer(e),y=n.dispatch(\"tick\",\"end\");return null==t&&(t=[]),o(),l={tick:a,restart:function(){return m.restart(e),l},stop:function(){return m.stop(),l},nodes:function(e){return arguments.length?(t=e,o(),p.each(s),l):t},alpha:function(t){return arguments.length?(u=+t,l):u},alphaMin:function(t){return arguments.length?(c=+t,l):c},alphaDecay:function(t){return arguments.length?(h=+t,l):+h},alphaTarget:function(t){return arguments.length?(f=+t,l):f},velocityDecay:function(t){return arguments.length?(d=1-t,l):1-d},force:function(t,e){return arguments.length>1?(null==e?p.remove(t):p.set(t,s(e)),l):p.get(t)},find:function(e,r,n){var i,a,o,s,l,u=0,c=t.length;for(null==n?n=1/0:n*=n,u=0;u<c;++u)s=t[u],i=e-s.x,a=r-s.y,(o=i*i+a*a)<n&&(l=s,n=o);return l},on:function(t,e){return arguments.length>1?(y.on(t,e),l):y.on(t)}}},b=function(){function t(t){var r,l=a.length,h=e.quadtree(a,u,c).visitAfter(n);for(s=t,r=0;r<l;++r)o=a[r],h.visit(i)}function r(){if(a){var t,e,r=a.length;for(l=new Array(r),t=0;t<r;++t)e=a[t],l[e.index]=+h(e,t,a)}}function n(t){var e,r,n,i,a,o=0;if(t.length){for(n=i=a=0;a<4;++a)(e=t[a])&&(r=e.value)&&(o+=r,n+=r*e.x,i+=r*e.y);t.x=n/o,t.y=i/o}else{e=t,e.x=e.data.x,e.y=e.data.y;do{o+=l[e.data.index]}while(e=e.next)}t.value=o}function i(t,e,r,n){if(!t.value)return!0;var i=t.x-o.x,a=t.y-o.y,u=n-e,c=i*i+a*a;if(u*u/v<c)return c<m&&(0===i&&(i=d(),c+=i*i),0===a&&(a=d(),c+=a*a),c<p&&(c=Math.sqrt(p*c)),o.vx+=i*t.value*s/c,o.vy+=a*t.value*s/c),!0;if(!(t.length||c>=m)){(t.data!==o||t.next)&&(0===i&&(i=d(),c+=i*i),0===a&&(a=d(),c+=a*a),c<p&&(c=Math.sqrt(p*c)));do{t.data!==o&&(u=l[t.data.index]*s/c,o.vx+=i*u,o.vy+=a*u)}while(t=t.next)}}var a,o,s,l,h=f(-30),p=1,m=1/0,v=.81;return t.initialize=function(t){a=t,r()},t.strength=function(e){return arguments.length?(h=\"function\"==typeof e?e:f(+e),r(),t):h},t.distanceMin=function(e){return arguments.length?(p=e*e,t):Math.sqrt(p)},t.distanceMax=function(e){return arguments.length?(m=e*e,t):Math.sqrt(m)},t.theta=function(e){return arguments.length?(v=e*e,t):Math.sqrt(v)},t},x=function(t){function e(t){for(var e,r=0,o=n.length;r<o;++r)e=n[r],e.vx+=(a[r]-e.x)*i[r]*t}function r(){if(n){var e,r=n.length;for(i=new Array(r),a=new Array(r),e=0;e<r;++e)i[e]=isNaN(a[e]=+t(n[e],e,n))?0:+o(n[e],e,n)}}var n,i,a,o=f(.1);return\"function\"!=typeof t&&(t=f(null==t?0:+t)),e.initialize=function(t){n=t,r()},e.strength=function(t){return arguments.length?(o=\"function\"==typeof t?t:f(+t),r(),e):o},e.x=function(n){return arguments.length?(t=\"function\"==typeof n?n:f(+n),r(),e):t},e},_=function(t){function e(t){for(var e,r=0,o=n.length;r<o;++r)e=n[r],e.vy+=(a[r]-e.y)*i[r]*t}function r(){if(n){var e,r=n.length;for(i=new Array(r),a=new Array(r),e=0;e<r;++e)i[e]=isNaN(a[e]=+t(n[e],e,n))?0:+o(n[e],e,n)}}var n,i,a,o=f(.1);return\"function\"!=typeof t&&(t=f(null==t?0:+t)),e.initialize=function(t){n=t,r()},e.strength=function(t){return arguments.length?(o=\"function\"==typeof t?t:f(+t),r(),e):o},e.y=function(n){return arguments.length?(t=\"function\"==typeof n?n:f(+n),r(),e):t},e};t.forceCenter=h,t.forceCollide=p,t.forceLink=m,t.forceManyBody=b,t.forceSimulation=y,t.forceX=x,t.forceY=_,Object.defineProperty(t,\"__esModule\",{value:!0})})},{\"d3-collection\":115,\"d3-dispatch\":117,\"d3-quadtree\":120,\"d3-timer\":121}],119:[function(e,r,n){!function(i,a){\"object\"==typeof n&&void 0!==r?a(n,e(\"d3-color\")):\"function\"==typeof t&&t.amd?t([\"exports\",\"d3-color\"],a):a(i.d3=i.d3||{},i.d3)}(this,function(t,e){\"use strict\";function r(t,e,r,n,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*r+(1+3*t+3*a-3*o)*n+o*i)/6}function n(t,e){return function(r){return t+r*e}}function i(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(n){return Math.pow(t+n*e,r)}}function a(t,e){var r=e-t;return r?n(t,r>180||r<-180?r-360*Math.round(r/360):r):S(isNaN(t)?e:t)}function o(t){return 1==(t=+t)?s:function(e,r){return r-e?i(e,r,t):S(isNaN(e)?r:e)}}function s(t,e){var r=e-t;return r?n(t,r):S(isNaN(t)?e:t)}function l(t){return function(r){var n,i,a=r.length,o=new Array(a),s=new Array(a),l=new Array(a);for(n=0;n<a;++n)i=e.rgb(r[n]),o[n]=i.r||0,s[n]=i.g||0,l[n]=i.b||0;return o=t(o),s=t(s),l=t(l),i.opacity=1,function(t){return i.r=o(t),i.g=s(t),i.b=l(t),i+\"\"}}}function u(t){return function(){return t}}function c(t){return function(e){return t(e)+\"\"}}function h(t){return\"none\"===t?U:(_||(_=document.createElement(\"DIV\"),w=document.documentElement,M=document.defaultView),_.style.transform=t,t=M.getComputedStyle(w.appendChild(_),null).getPropertyValue(\"transform\"),w.removeChild(_),t=t.slice(7,-1).split(\",\"),V(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}function f(t){return null==t?U:(k||(k=document.createElementNS(\"http://www.w3.org/2000/svg\",\"g\")),k.setAttribute(\"transform\",t),(t=k.transform.baseVal.consolidate())?(t=t.matrix,V(t.a,t.b,t.c,t.d,t.e,t.f)):U)}function d(t,e,r,n){function i(t){return t.length?t.pop()+\" \":\"\"}function a(t,n,i,a,o,s){if(t!==i||n!==a){var l=o.push(\"translate(\",null,e,null,r);s.push({i:l-4,x:D(t,i)},{i:l-2,x:D(n,a)})}else(i||a)&&o.push(\"translate(\"+i+e+a+r)}function o(t,e,r,a){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),a.push({i:r.push(i(r)+\"rotate(\",null,n)-2,x:D(t,e)})):e&&r.push(i(r)+\"rotate(\"+e+n)}function s(t,e,r,a){t!==e?a.push({i:r.push(i(r)+\"skewX(\",null,n)-2,x:D(t,e)}):e&&r.push(i(r)+\"skewX(\"+e+n)}function l(t,e,r,n,a,o){if(t!==r||e!==n){var s=a.push(i(a)+\"scale(\",null,\",\",null,\")\");o.push({i:s-4,x:D(t,r)},{i:s-2,x:D(e,n)})}else 1===r&&1===n||a.push(i(a)+\"scale(\"+r+\",\"+n+\")\")}return function(e,r){var n=[],i=[];return e=t(e),r=t(r),a(e.translateX,e.translateY,r.translateX,r.translateY,n,i),o(e.rotate,r.rotate,n,i),s(e.skewX,r.skewX,n,i),l(e.scaleX,e.scaleY,r.scaleX,r.scaleY,n,i),e=r=null,function(t){for(var e,r=-1,a=i.length;++r<a;)n[(e=i[r]).i]=e.x(t);return n.join(\"\")}}}function p(t){return((t=Math.exp(t))+1/t)/2}function m(t){return((t=Math.exp(t))-1/t)/2}function v(t){return((t=Math.exp(2*t))-1)/(t+1)}function g(t){return function(r,n){var i=t((r=e.hsl(r)).h,(n=e.hsl(n)).h),a=s(r.s,n.s),o=s(r.l,n.l),l=s(r.opacity,n.opacity);return function(t){return r.h=i(t),r.s=a(t),r.l=o(t),r.opacity=l(t),r+\"\"}}}function y(t,r){var n=s((t=e.lab(t)).l,(r=e.lab(r)).l),i=s(t.a,r.a),a=s(t.b,r.b),o=s(t.opacity,r.opacity);return function(e){return t.l=n(e),t.a=i(e),t.b=a(e),t.opacity=o(e),t+\"\"}}function b(t){return function(r,n){var i=t((r=e.hcl(r)).h,(n=e.hcl(n)).h),a=s(r.c,n.c),o=s(r.l,n.l),l=s(r.opacity,n.opacity);return function(t){return r.h=i(t),r.c=a(t),r.l=o(t),r.opacity=l(t),r+\"\"}}}function x(t){return function r(n){function i(r,i){var a=t((r=e.cubehelix(r)).h,(i=e.cubehelix(i)).h),o=s(r.s,i.s),l=s(r.l,i.l),u=s(r.opacity,i.opacity);return function(t){return r.h=a(t),r.s=o(t),r.l=l(Math.pow(t,n)),r.opacity=u(t),r+\"\"}}return n=+n,i.gamma=r,i}(1)}var _,w,M,k,A=function(t){var e=t.length-1;return function(n){var i=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),a=t[i],o=t[i+1],s=i>0?t[i-1]:2*a-o,l=i<e-1?t[i+2]:2*o-a;return r((n-i/e)*e,s,a,o,l)}},T=function(t){var e=t.length;return function(n){var i=Math.floor(((n%=1)<0?++n:n)*e),a=t[(i+e-1)%e],o=t[i%e],s=t[(i+1)%e],l=t[(i+2)%e];return r((n-i/e)*e,a,o,s,l)}},S=function(t){return function(){return t}},E=function t(r){function n(t,r){var n=i((t=e.rgb(t)).r,(r=e.rgb(r)).r),a=i(t.g,r.g),o=i(t.b,r.b),l=s(t.opacity,r.opacity);return function(e){return t.r=n(e),t.g=a(e),t.b=o(e),t.opacity=l(e),t+\"\"}}var i=o(r);return n.gamma=t,n}(1),L=l(A),C=l(T),I=function(t,e){var r,n=e?e.length:0,i=t?Math.min(n,t.length):0,a=new Array(n),o=new Array(n);for(r=0;r<i;++r)a[r]=j(t[r],e[r]);for(;r<n;++r)o[r]=e[r];return function(t){for(r=0;r<i;++r)o[r]=a[r](t);return o}},z=function(t,e){var r=new Date;return t=+t,e-=t,function(n){return r.setTime(t+e*n),r}},D=function(t,e){return t=+t,e-=t,function(r){return t+e*r}},P=function(t,e){var r,n={},i={};null!==t&&\"object\"==typeof t||(t={}),null!==e&&\"object\"==typeof e||(e={});for(r in e)r in t?n[r]=j(t[r],e[r]):i[r]=e[r];return function(t){for(r in n)i[r]=n[r](t);return i}},O=/[-+]?(?:\\d+\\.?\\d*|\\.?\\d+)(?:[eE][-+]?\\d+)?/g,R=new RegExp(O.source,\"g\"),F=function(t,e){var r,n,i,a=O.lastIndex=R.lastIndex=0,o=-1,s=[],l=[];for(t+=\"\",e+=\"\";(r=O.exec(t))&&(n=R.exec(e));)(i=n.index)>a&&(i=e.slice(a,i),s[o]?s[o]+=i:s[++o]=i),(r=r[0])===(n=n[0])?s[o]?s[o]+=n:s[++o]=n:(s[++o]=null,l.push({i:o,x:D(r,n)})),a=R.lastIndex;return a<e.length&&(i=e.slice(a),s[o]?s[o]+=i:s[++o]=i),s.length<2?l[0]?c(l[0].x):u(e):(e=l.length,function(t){for(var r,n=0;n<e;++n)s[(r=l[n]).i]=r.x(t);return s.join(\"\")})},j=function(t,r){var n,i=typeof r;return null==r||\"boolean\"===i?S(r):(\"number\"===i?D:\"string\"===i?(n=e.color(r))?(r=n,E):F:r instanceof e.color?E:r instanceof Date?z:Array.isArray(r)?I:\"function\"!=typeof r.valueOf&&\"function\"!=typeof r.toString||isNaN(r)?P:D)(t,r)},N=function(t,e){return t=+t,e-=t,function(r){return Math.round(t+e*r)}},B=180/Math.PI,U={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},V=function(t,e,r,n,i,a){var o,s,l;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(l=t*r+e*n)&&(r-=t*l,n-=e*l),(s=Math.sqrt(r*r+n*n))&&(r/=s,n/=s,l/=s),t*n<e*r&&(t=-t,e=-e,l=-l,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(e,t)*B,skewX:Math.atan(l)*B,scaleX:o,scaleY:s}},H=d(h,\"px, \",\"px)\",\"deg)\"),q=d(f,\", \",\")\",\")\"),G=Math.SQRT2,Y=function(t,e){var r,n,i=t[0],a=t[1],o=t[2],s=e[0],l=e[1],u=e[2],c=s-i,h=l-a,f=c*c+h*h;if(f<1e-12)n=Math.log(u/o)/G,r=function(t){return[i+t*c,a+t*h,o*Math.exp(G*t*n)]};else{var d=Math.sqrt(f),g=(u*u-o*o+4*f)/(2*o*2*d),y=(u*u-o*o-4*f)/(2*u*2*d),b=Math.log(Math.sqrt(g*g+1)-g),x=Math.log(Math.sqrt(y*y+1)-y);n=(x-b)/G,r=function(t){var e=t*n,r=p(b),s=o/(2*d)*(r*v(G*e+b)-m(b));return[i+s*c,a+s*h,o*r/p(G*e+b)]}}return r.duration=1e3*n,r},W=g(a),X=g(s),Z=b(a),J=b(s),K=x(a),Q=x(s),$=function(t,e){for(var r=new Array(e),n=0;n<e;++n)r[n]=t(n/(e-1));return r};t.interpolate=j,t.interpolateArray=I,t.interpolateBasis=A,t.interpolateBasisClosed=T,t.interpolateDate=z,t.interpolateNumber=D,t.interpolateObject=P,t.interpolateRound=N,t.interpolateString=F,t.interpolateTransformCss=H,t.interpolateTransformSvg=q,t.interpolateZoom=Y,t.interpolateRgb=E,t.interpolateRgbBasis=L,t.interpolateRgbBasisClosed=C,t.interpolateHsl=W,t.interpolateHslLong=X,t.interpolateLab=y,t.interpolateHcl=Z,t.interpolateHclLong=J,t.interpolateCubehelix=K,t.interpolateCubehelixLong=Q,t.quantize=$,Object.defineProperty(t,\"__esModule\",{value:!0})})},{\"d3-color\":116}],120:[function(e,r,n){!function(e,i){\"object\"==typeof n&&void 0!==r?i(n):\"function\"==typeof t&&t.amd?t([\"exports\"],i):i(e.d3=e.d3||{})}(this,function(t){\"use strict\";function e(t,e,r,n){if(isNaN(e)||isNaN(r))return t;var i,a,o,s,l,u,c,h,f,d=t._root,p={data:n},m=t._x0,v=t._y0,g=t._x1,y=t._y1;if(!d)return t._root=p,t;for(;d.length;)if((u=e>=(a=(m+g)/2))?m=a:g=a,(c=r>=(o=(v+y)/2))?v=o:y=o,i=d,!(d=d[h=c<<1|u]))return i[h]=p,t;if(s=+t._x.call(null,d.data),l=+t._y.call(null,d.data),e===s&&r===l)return p.next=d,i?i[h]=p:t._root=p,t;do{i=i?i[h]=new Array(4):t._root=new Array(4),(u=e>=(a=(m+g)/2))?m=a:g=a,(c=r>=(o=(v+y)/2))?v=o:y=o}while((h=c<<1|u)==(f=(l>=o)<<1|s>=a));return i[f]=d,i[h]=p,t}function r(t){var r,n,i,a,o=t.length,s=new Array(o),l=new Array(o),u=1/0,c=1/0,h=-1/0,f=-1/0;for(n=0;n<o;++n)isNaN(i=+this._x.call(null,r=t[n]))||isNaN(a=+this._y.call(null,r))||(s[n]=i,l[n]=a,i<u&&(u=i),i>h&&(h=i),a<c&&(c=a),a>f&&(f=a));for(h<u&&(u=this._x0,h=this._x1),f<c&&(c=this._y0,f=this._y1),this.cover(u,c).cover(h,f),n=0;n<o;++n)e(this,s[n],l[n],t[n]);return this}function n(t){for(var e=0,r=t.length;e<r;++e)this.remove(t[e]);return this}function i(t){return t[0]}function a(t){return t[1]}function o(t,e,r){var n=new s(null==e?i:e,null==r?a:r,NaN,NaN,NaN,NaN);return null==t?n:n.addAll(t)}function s(t,e,r,n,i,a){this._x=t,this._y=e,this._x0=r,this._y0=n,this._x1=i,this._y1=a,this._root=void 0}function l(t){for(var e={data:t.data},r=e;t=t.next;)r=r.next={data:t.data};return e}var u=function(t){var r=+this._x.call(null,t),n=+this._y.call(null,t);return e(this.cover(r,n),r,n,t)},c=function(t,e){if(isNaN(t=+t)||isNaN(e=+e))return this;var r=this._x0,n=this._y0,i=this._x1,a=this._y1;if(isNaN(r))i=(r=Math.floor(t))+1,a=(n=Math.floor(e))+1;else{if(!(r>t||t>i||n>e||e>a))return this;var o,s,l=i-r,u=this._root;switch(s=(e<(n+a)/2)<<1|t<(r+i)/2){case 0:do{o=new Array(4),o[s]=u,u=o}while(l*=2,i=r+l,a=n+l,t>i||e>a);break;case 1:do{o=new Array(4),o[s]=u,u=o}while(l*=2,r=i-l,a=n+l,r>t||e>a);break;case 2:do{o=new Array(4),o[s]=u,u=o}while(l*=2,i=r+l,n=a-l,t>i||n>e);break;case 3:do{o=new Array(4),o[s]=u,u=o}while(l*=2,r=i-l,n=a-l,r>t||n>e)}this._root&&this._root.length&&(this._root=u)}return this._x0=r,this._y0=n,this._x1=i,this._y1=a,this},h=function(){var t=[];return this.visit(function(e){if(!e.length)do{t.push(e.data)}while(e=e.next)}),t},f=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},d=function(t,e,r,n,i){this.node=t,this.x0=e,this.y0=r,this.x1=n,this.y1=i},p=function(t,e,r){var n,i,a,o,s,l,u,c=this._x0,h=this._y0,f=this._x1,p=this._y1,m=[],v=this._root;for(v&&m.push(new d(v,c,h,f,p)),null==r?r=1/0:(c=t-r,h=e-r,f=t+r,p=e+r,r*=r);l=m.pop();)if(!(!(v=l.node)||(i=l.x0)>f||(a=l.y0)>p||(o=l.x1)<c||(s=l.y1)<h))if(v.length){var g=(i+o)/2,y=(a+s)/2;m.push(new d(v[3],g,y,o,s),new d(v[2],i,y,g,s),new d(v[1],g,a,o,y),new d(v[0],i,a,g,y)),(u=(e>=y)<<1|t>=g)&&(l=m[m.length-1],m[m.length-1]=m[m.length-1-u],m[m.length-1-u]=l)}else{var b=t-+this._x.call(null,v.data),x=e-+this._y.call(null,v.data),_=b*b+x*x;if(_<r){var w=Math.sqrt(r=_);c=t-w,h=e-w,f=t+w,p=e+w,n=v.data}}return n},m=function(t){if(isNaN(a=+this._x.call(null,t))||isNaN(o=+this._y.call(null,t)))return this;var e,r,n,i,a,o,s,l,u,c,h,f,d=this._root,p=this._x0,m=this._y0,v=this._x1,g=this._y1;if(!d)return this;if(d.length)for(;;){if((u=a>=(s=(p+v)/2))?p=s:v=s,(c=o>=(l=(m+g)/2))?m=l:g=l,e=d,!(d=d[h=c<<1|u]))return this;if(!d.length)break;(e[h+1&3]||e[h+2&3]||e[h+3&3])&&(r=e,f=h)}for(;d.data!==t;)if(n=d,!(d=d.next))return this;return(i=d.next)&&delete d.next,n?(i?n.next=i:delete n.next,this):e?(i?e[h]=i:delete e[h],(d=e[0]||e[1]||e[2]||e[3])&&d===(e[3]||e[2]||e[1]||e[0])&&!d.length&&(r?r[f]=d:this._root=d),this):(this._root=i,this)},v=function(){return this._root},g=function(){var t=0;return this.visit(function(e){if(!e.length)do{++t}while(e=e.next)}),t},y=function(t){var e,r,n,i,a,o,s=[],l=this._root;for(l&&s.push(new d(l,this._x0,this._y0,this._x1,this._y1));e=s.pop();)if(!t(l=e.node,n=e.x0,i=e.y0,a=e.x1,o=e.y1)&&l.length){var u=(n+a)/2,c=(i+o)/2;(r=l[3])&&s.push(new d(r,u,c,a,o)),(r=l[2])&&s.push(new d(r,n,c,u,o)),(r=l[1])&&s.push(new d(r,u,i,a,c)),(r=l[0])&&s.push(new d(r,n,i,u,c))}return this},b=function(t){var e,r=[],n=[];for(this._root&&r.push(new d(this._root,this._x0,this._y0,this._x1,this._y1));e=r.pop();){var i=e.node;if(i.length){var a,o=e.x0,s=e.y0,l=e.x1,u=e.y1,c=(o+l)/2,h=(s+u)/2;(a=i[0])&&r.push(new d(a,o,s,c,h)),(a=i[1])&&r.push(new d(a,c,s,l,h)),(a=i[2])&&r.push(new d(a,o,h,c,u)),(a=i[3])&&r.push(new d(a,c,h,l,u))}n.push(e)}for(;e=n.pop();)t(e.node,e.x0,e.y0,e.x1,e.y1);return this},x=function(t){return arguments.length?(this._x=t,this):this._x},_=function(t){return arguments.length?(this._y=t,this):this._y},w=o.prototype=s.prototype;w.copy=function(){var t,e,r=new s(this._x,this._y,this._x0,this._y0,this._x1,this._y1),n=this._root;if(!n)return r;if(!n.length)return r._root=l(n),r;for(t=[{source:n,target:r._root=new Array(4)}];n=t.pop();)for(var i=0;i<4;++i)(e=n.source[i])&&(e.length?t.push({source:e,target:n.target[i]=new Array(4)}):n.target[i]=l(e));return r},w.add=u,w.addAll=r,w.cover=c,w.data=h,w.extent=f,w.find=p,w.remove=m,w.removeAll=n,w.root=v,w.size=g,w.visit=y,w.visitAfter=b,w.x=x,w.y=_,t.quadtree=o,Object.defineProperty(t,\"__esModule\",{value:!0})})},{}],121:[function(e,r,n){!function(e,i){\"object\"==typeof n&&void 0!==r?i(n):\"function\"==typeof t&&t.amd?t([\"exports\"],i):i(e.d3=e.d3||{})}(this,function(t){\"use strict\";function e(){return g||(x(r),g=b.now()+y)}function r(){g=0}function n(){this._call=this._time=this._next=null}function i(t,e,r){var i=new n;return i.restart(t,e,r),i}function a(){e(),++f;for(var t,r=c;r;)(t=g-r._time)>=0&&r._call.call(null,t),r=r._next;--f}function o(){g=(v=b.now())+y,f=d=0;try{a()}finally{f=0,l(),g=0}}function s(){var t=b.now(),e=t-v;e>m&&(y-=e,v=t)}function l(){for(var t,e,r=c,n=1/0;r;)r._call?(n>r._time&&(n=r._time),t=r,r=r._next):(e=r._next,r._next=null,r=t?t._next=e:c=e);h=t,u(n)}function u(t){if(!f){d&&(d=clearTimeout(d));var e=t-g;e>24?(t<1/0&&(d=setTimeout(o,e)),p&&(p=clearInterval(p))):(p||(v=g,p=setInterval(s,m)),f=1,x(o))}}var c,h,f=0,d=0,p=0,m=1e3,v=0,g=0,y=0,b=\"object\"==typeof performance&&performance.now?performance:Date,x=\"function\"==typeof requestAnimationFrame?requestAnimationFrame:function(t){setTimeout(t,17)};n.prototype=i.prototype={constructor:n,restart:function(t,r,n){if(\"function\"!=typeof t)throw new TypeError(\"callback is not a function\");n=(null==n?e():+n)+(null==r?0:+r),this._next||h===this||(h?h._next=this:c=this,h=this),this._call=t,this._time=n,u()},stop:function(){this._call&&(this._call=null,this._time=1/0,u())}};var _=function(t,e,r){var i=new n;return e=null==e?0:+e,i.restart(function(r){i.stop(),t(r+e)},e,r),i},w=function(t,r,i){var a=new n,o=r;return null==r?(a.restart(t,r,i),a):(r=+r,i=null==i?e():+i,a.restart(function e(n){n+=o,a.restart(e,o+=r,i),t(n)},r,i),a)};t.now=e,t.timer=i,t.timerFlush=a,t.timeout=_,t.interval=w,Object.defineProperty(t,\"__esModule\",{value:!0})})},{}],122:[function(e,r,n){!function(){function e(t){return t&&(t.ownerDocument||t.document||t).documentElement}function n(t){return t&&(t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView)}function i(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function a(t){return null===t?NaN:+t}function o(t){return!isNaN(t)}function s(t){return{left:function(e,r,n,i){for(arguments.length<3&&(n=0),arguments.length<4&&(i=e.length);n<i;){var a=n+i>>>1;t(e[a],r)<0?n=a+1:i=a}return n},right:function(e,r,n,i){for(arguments.length<3&&(n=0),arguments.length<4&&(i=e.length);n<i;){var a=n+i>>>1;t(e[a],r)>0?i=a:n=a+1}return n}}}function l(t){return t.length}function u(t){for(var e=1;t*e%1;)e*=10;return e}function c(t,e){for(var r in e)Object.defineProperty(t.prototype,r,{value:e[r],enumerable:!1})}function h(){this._=Object.create(null)}function f(t){return(t+=\"\")===_o||t[0]===wo?wo+t:t}function d(t){return(t+=\"\")[0]===wo?t.slice(1):t}function p(t){return f(t)in this._}function m(t){return(t=f(t))in this._&&delete this._[t]}function v(){var t=[];for(var e in this._)t.push(d(e));return t}function g(){var t=0;for(var e in this._)++t;return t}function y(){for(var t in this._)return!1;return!0}function b(){this._=Object.create(null)}function x(t){return t}function _(t,e,r){return function(){var n=r.apply(e,arguments);return n===e?t:n}}function w(t,e){if(e in t)return e;e=e.charAt(0).toUpperCase()+e.slice(1);for(var r=0,n=Mo.length;r<n;++r){var i=Mo[r]+e;if(i in t)return i}}function M(){}function k(){}function A(t){function e(){for(var e,n=r,i=-1,a=n.length;++i<a;)(e=n[i].on)&&e.apply(this,arguments);return t}var r=[],n=new h;return e.on=function(e,i){var a,o=n.get(e);return arguments.length<2?o&&o.on:(o&&(o.on=null,r=r.slice(0,a=r.indexOf(o)).concat(r.slice(a+1)),n.remove(e)),i&&r.push(n.set(e,{on:i})),t)},e}function T(){uo.event.preventDefault()}function S(){for(var t,e=uo.event;t=e.sourceEvent;)e=t;return e}function E(t){for(var e=new k,r=0,n=arguments.length;++r<n;)e[arguments[r]]=A(e);return e.of=function(r,n){return function(i){try{var a=i.sourceEvent=uo.event;i.target=t,uo.event=i,e[i.type].apply(r,n)}finally{uo.event=a}}},e}function L(t){return Ao(t,Lo),t}function C(t){return\"function\"==typeof t?t:function(){return To(t,this)}}function I(t){return\"function\"==typeof t?t:function(){return So(t,this)}}function z(t,e){function r(){this.removeAttribute(t)}function n(){this.removeAttributeNS(t.space,t.local)}function i(){this.setAttribute(t,e)}function a(){this.setAttributeNS(t.space,t.local,e)}function o(){var r=e.apply(this,arguments);null==r?this.removeAttribute(t):this.setAttribute(t,r)}function s(){var r=e.apply(this,arguments);null==r?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,r)}return t=uo.ns.qualify(t),null==e?t.local?n:r:\"function\"==typeof e?t.local?s:o:t.local?a:i}function D(t){return t.trim().replace(/\\s+/g,\" \")}function P(t){return new RegExp(\"(?:^|\\\\s+)\"+uo.requote(t)+\"(?:\\\\s+|$)\",\"g\")}function O(t){return(t+\"\").trim().split(/^|\\s+/)}function R(t,e){function r(){for(var r=-1;++r<i;)t[r](this,e)}function n(){for(var r=-1,n=e.apply(this,arguments);++r<i;)t[r](this,n)}t=O(t).map(F);var i=t.length;return\"function\"==typeof e?n:r}function F(t){var e=P(t);return function(r,n){if(i=r.classList)return n?i.add(t):i.remove(t);var i=r.getAttribute(\"class\")||\"\";n?(e.lastIndex=0,e.test(i)||r.setAttribute(\"class\",D(i+\" \"+t))):r.setAttribute(\"class\",D(i.replace(e,\" \")))}}function j(t,e,r){function n(){this.style.removeProperty(t)}function i(){this.style.setProperty(t,e,r)}function a(){var n=e.apply(this,arguments);null==n?this.style.removeProperty(t):this.style.setProperty(t,n,r)}return null==e?n:\"function\"==typeof e?a:i}function N(t,e){function r(){delete this[t]}function n(){this[t]=e}function i(){var r=e.apply(this,arguments);null==r?delete this[t]:this[t]=r}return null==e?r:\"function\"==typeof e?i:n}function B(t){function e(){var e=this.ownerDocument,r=this.namespaceURI;return r===Co&&e.documentElement.namespaceURI===Co?e.createElement(t):e.createElementNS(r,t)}function r(){return this.ownerDocument.createElementNS(t.space,t.local)}return\"function\"==typeof t?t:(t=uo.ns.qualify(t)).local?r:e}function U(){var t=this.parentNode;t&&t.removeChild(this)}function V(t){return{__data__:t}}function H(t){return function(){return Eo(this,t)}}function q(t){return arguments.length||(t=i),function(e,r){return e&&r?t(e.__data__,r.__data__):!e-!r}}function G(t,e){for(var r=0,n=t.length;r<n;r++)for(var i,a=t[r],o=0,s=a.length;o<s;o++)(i=a[o])&&e(i,o,r);return t}function Y(t){return Ao(t,zo),t}function W(t){var e,r;return function(n,i,a){var o,s=t[a].update,l=s.length;for(a!=r&&(r=a,e=0),i>=e&&(e=i+1);!(o=s[e])&&++e<l;);return o}}function X(t,e,r){function n(){var e=this[o];e&&(this.removeEventListener(t,e,e.$),delete this[o])}function i(){var i=l(e,ho(arguments));n.call(this),this.addEventListener(t,this[o]=i,i.$=r),i._=e}function a(){var e,r=new RegExp(\"^__on([^.]+)\"+uo.requote(t)+\"$\");for(var n in this)if(e=n.match(r)){var i=this[n];this.removeEventListener(e[1],i,i.$),delete this[n]}}var o=\"__on\"+t,s=t.indexOf(\".\"),l=Z;s>0&&(t=t.slice(0,s));var u=Do.get(t);return u&&(t=u,l=J),s?e?i:n:e?M:a}function Z(t,e){return function(r){var n=uo.event;uo.event=r,e[0]=this.__data__;try{t.apply(this,e)}finally{uo.event=n}}}function J(t,e){var r=Z(t,e);return function(t){var e=this,n=t.relatedTarget;n&&(n===e||8&n.compareDocumentPosition(e))||r.call(e,t)}}function K(t){var r=\".dragsuppress-\"+ ++Oo,i=\"click\"+r,a=uo.select(n(t)).on(\"touchmove\"+r,T).on(\"dragstart\"+r,T).on(\"selectstart\"+r,T);if(null==Po&&(Po=!(\"onselectstart\"in t)&&w(t.style,\"userSelect\")),Po){var o=e(t).style,s=o[Po];o[Po]=\"none\"}return function(t){if(a.on(r,null),Po&&(o[Po]=s),t){var e=function(){a.on(i,null)};a.on(i,function(){T(),e()},!0),setTimeout(e,0)}}}function Q(t,e){e.changedTouches&&(e=e.changedTouches[0]);var r=t.ownerSVGElement||t;if(r.createSVGPoint){var i=r.createSVGPoint();if(Ro<0){var a=n(t);if(a.scrollX||a.scrollY){r=uo.select(\"body\").append(\"svg\").style({position:\"absolute\",top:0,left:0,margin:0,padding:0,border:\"none\"},\"important\");var o=r[0][0].getScreenCTM();Ro=!(o.f||o.e),r.remove()}}return Ro?(i.x=e.pageX,i.y=e.pageY):(i.x=e.clientX,i.y=e.clientY),i=i.matrixTransform(t.getScreenCTM().inverse()),[i.x,i.y]}var s=t.getBoundingClientRect();return[e.clientX-s.left-t.clientLeft,e.clientY-s.top-t.clientTop]}function $(){return uo.event.changedTouches[0].identifier}function tt(t){return t>0?1:t<0?-1:0}function et(t,e,r){return(e[0]-t[0])*(r[1]-t[1])-(e[1]-t[1])*(r[0]-t[0])}function rt(t){return t>1?0:t<-1?No:Math.acos(t)}function nt(t){return t>1?Vo:t<-1?-Vo:Math.asin(t)}function it(t){return((t=Math.exp(t))-1/t)/2}function at(t){return((t=Math.exp(t))+1/t)/2}function ot(t){return((t=Math.exp(2*t))-1)/(t+1)}function st(t){return(t=Math.sin(t/2))*t}function lt(){}function ut(t,e,r){return this instanceof ut?(this.h=+t,this.s=+e,void(this.l=+r)):arguments.length<2?t instanceof ut?new ut(t.h,t.s,t.l):Mt(\"\"+t,kt,ut):new ut(t,e,r)}function ct(t,e,r){function n(t){return t>360?t-=360:t<0&&(t+=360),t<60?a+(o-a)*t/60:t<180?o:t<240?a+(o-a)*(240-t)/60:a}function i(t){return Math.round(255*n(t))}var a,o;return t=isNaN(t)?0:(t%=360)<0?t+360:t,e=isNaN(e)?0:e<0?0:e>1?1:e,r=r<0?0:r>1?1:r,o=r<=.5?r*(1+e):r+e-r*e,a=2*r-o,new bt(i(t+120),i(t),i(t-120))}function ht(t,e,r){return this instanceof ht?(this.h=+t,this.c=+e,void(this.l=+r)):arguments.length<2?t instanceof ht?new ht(t.h,t.c,t.l):t instanceof dt?mt(t.l,t.a,t.b):mt((t=At((t=uo.rgb(t)).r,t.g,t.b)).l,t.a,t.b):new ht(t,e,r)}function ft(t,e,r){return isNaN(t)&&(t=0),isNaN(e)&&(e=0),new dt(r,Math.cos(t*=Ho)*e,Math.sin(t)*e)}function dt(t,e,r){return this instanceof dt?(this.l=+t,this.a=+e,void(this.b=+r)):arguments.length<2?t instanceof dt?new dt(t.l,t.a,t.b):t instanceof ht?ft(t.h,t.c,t.l):At((t=bt(t)).r,t.g,t.b):new dt(t,e,r)}function pt(t,e,r){var n=(t+16)/116,i=n+e/500,a=n-r/200;return i=vt(i)*Qo,n=vt(n)*$o,a=vt(a)*ts,new bt(yt(3.2404542*i-1.5371385*n-.4985314*a),yt(-.969266*i+1.8760108*n+.041556*a),yt(.0556434*i-.2040259*n+1.0572252*a))}function mt(t,e,r){return t>0?new ht(Math.atan2(r,e)*qo,Math.sqrt(e*e+r*r),t):new ht(NaN,NaN,t)}function vt(t){return t>.206893034?t*t*t:(t-4/29)/7.787037}function gt(t){return t>.008856?Math.pow(t,1/3):7.787037*t+4/29}function yt(t){return Math.round(255*(t<=.00304?12.92*t:1.055*Math.pow(t,1/2.4)-.055))}function bt(t,e,r){return this instanceof bt?(this.r=~~t,this.g=~~e,void(this.b=~~r)):arguments.length<2?t instanceof bt?new bt(t.r,t.g,t.b):Mt(\"\"+t,bt,ct):new bt(t,e,r)}function xt(t){return new bt(t>>16,t>>8&255,255&t)}function _t(t){return xt(t)+\"\"}function wt(t){return t<16?\"0\"+Math.max(0,t).toString(16):Math.min(255,t).toString(16)}function Mt(t,e,r){var n,i,a,o=0,s=0,l=0;if(n=/([a-z]+)\\((.*)\\)/.exec(t=t.toLowerCase()))switch(i=n[2].split(\",\"),n[1]){case\"hsl\":return r(parseFloat(i[0]),parseFloat(i[1])/100,parseFloat(i[2])/100);case\"rgb\":return e(St(i[0]),St(i[1]),St(i[2]))}return(a=ns.get(t))?e(a.r,a.g,a.b):(null==t||\"#\"!==t.charAt(0)||isNaN(a=parseInt(t.slice(1),16))||(4===t.length?(o=(3840&a)>>4,o|=o>>4,s=240&a,s|=s>>4,l=15&a,l|=l<<4):7===t.length&&(o=(16711680&a)>>16,s=(65280&a)>>8,l=255&a)),e(o,s,l))}function kt(t,e,r){var n,i,a=Math.min(t/=255,e/=255,r/=255),o=Math.max(t,e,r),s=o-a,l=(o+a)/2;return s?(i=l<.5?s/(o+a):s/(2-o-a),n=t==o?(e-r)/s+(e<r?6:0):e==o?(r-t)/s+2:(t-e)/s+4,n*=60):(n=NaN,i=l>0&&l<1?0:n),new ut(n,i,l)}function At(t,e,r){t=Tt(t),e=Tt(e),r=Tt(r);var n=gt((.4124564*t+.3575761*e+.1804375*r)/Qo),i=gt((.2126729*t+.7151522*e+.072175*r)/$o);return dt(116*i-16,500*(n-i),200*(i-gt((.0193339*t+.119192*e+.9503041*r)/ts)))}function Tt(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function St(t){var e=parseFloat(t);return\"%\"===t.charAt(t.length-1)?Math.round(2.55*e):e}\n", "function Et(t){return\"function\"==typeof t?t:function(){return t}}function Lt(t){return function(e,r,n){return 2===arguments.length&&\"function\"==typeof r&&(n=r,r=null),Ct(e,r,t,n)}}function Ct(t,e,r,n){function i(){var t,e=l.status;if(!e&&zt(l)||e>=200&&e<300||304===e){try{t=r.call(a,l)}catch(t){return void o.error.call(a,t)}o.load.call(a,t)}else o.error.call(a,l)}var a={},o=uo.dispatch(\"beforesend\",\"progress\",\"load\",\"error\"),s={},l=new XMLHttpRequest,u=null;return!this.XDomainRequest||\"withCredentials\"in l||!/^(http(s)?:)?\\/\\//.test(t)||(l=new XDomainRequest),\"onload\"in l?l.onload=l.onerror=i:l.onreadystatechange=function(){l.readyState>3&&i()},l.onprogress=function(t){var e=uo.event;uo.event=t;try{o.progress.call(a,l)}finally{uo.event=e}},a.header=function(t,e){return t=(t+\"\").toLowerCase(),arguments.length<2?s[t]:(null==e?delete s[t]:s[t]=e+\"\",a)},a.mimeType=function(t){return arguments.length?(e=null==t?null:t+\"\",a):e},a.responseType=function(t){return arguments.length?(u=t,a):u},a.response=function(t){return r=t,a},[\"get\",\"post\"].forEach(function(t){a[t]=function(){return a.send.apply(a,[t].concat(ho(arguments)))}}),a.send=function(r,n,i){if(2===arguments.length&&\"function\"==typeof n&&(i=n,n=null),l.open(r,t,!0),null==e||\"accept\"in s||(s.accept=e+\",*/*\"),l.setRequestHeader)for(var c in s)l.setRequestHeader(c,s[c]);return null!=e&&l.overrideMimeType&&l.overrideMimeType(e),null!=u&&(l.responseType=u),null!=i&&a.on(\"error\",i).on(\"load\",function(t){i(null,t)}),o.beforesend.call(a,l),l.send(null==n?null:n),a},a.abort=function(){return l.abort(),a},uo.rebind(a,o,\"on\"),null==n?a:a.get(It(n))}function It(t){return 1===t.length?function(e,r){t(null==e?r:null)}:t}function zt(t){var e=t.responseType;return e&&\"text\"!==e?t.response:t.responseText}function Dt(t,e,r){var n=arguments.length;n<2&&(e=0),n<3&&(r=Date.now());var i=r+e,a={c:t,t:i,n:null};return as?as.n=a:is=a,as=a,os||(ss=clearTimeout(ss),os=1,ls(Pt)),a}function Pt(){var t=Ot(),e=Rt()-t;e>24?(isFinite(e)&&(clearTimeout(ss),ss=setTimeout(Pt,e)),os=0):(os=1,ls(Pt))}function Ot(){for(var t=Date.now(),e=is;e;)t>=e.t&&e.c(t-e.t)&&(e.c=null),e=e.n;return t}function Rt(){for(var t,e=is,r=1/0;e;)e.c?(e.t<r&&(r=e.t),e=(t=e).n):e=t?t.n=e.n:is=e.n;return as=t,r}function Ft(t,e){return e-(t?Math.ceil(Math.log(t)/Math.LN10):1)}function jt(t,e){var r=Math.pow(10,3*xo(8-e));return{scale:e>8?function(t){return t/r}:function(t){return t*r},symbol:t}}function Nt(t){var e=t.decimal,r=t.thousands,n=t.grouping,i=t.currency,a=n&&r?function(t,e){for(var i=t.length,a=[],o=0,s=n[0],l=0;i>0&&s>0&&(l+s+1>e&&(s=Math.max(1,e-l)),a.push(t.substring(i-=s,i+s)),!((l+=s+1)>e));)s=n[o=(o+1)%n.length];return a.reverse().join(r)}:x;return function(t){var r=cs.exec(t),n=r[1]||\" \",o=r[2]||\">\",s=r[3]||\"-\",l=r[4]||\"\",u=r[5],c=+r[6],h=r[7],f=r[8],d=r[9],p=1,m=\"\",v=\"\",g=!1,y=!0;switch(f&&(f=+f.substring(1)),(u||\"0\"===n&&\"=\"===o)&&(u=n=\"0\",o=\"=\"),d){case\"n\":h=!0,d=\"g\";break;case\"%\":p=100,v=\"%\",d=\"f\";break;case\"p\":p=100,v=\"%\",d=\"r\";break;case\"b\":case\"o\":case\"x\":case\"X\":\"#\"===l&&(m=\"0\"+d.toLowerCase());case\"c\":y=!1;case\"d\":g=!0,f=0;break;case\"s\":p=-1,d=\"r\"}\"$\"===l&&(m=i[0],v=i[1]),\"r\"!=d||f||(d=\"g\"),null!=f&&(\"g\"==d?f=Math.max(1,Math.min(21,f)):\"e\"!=d&&\"f\"!=d||(f=Math.max(0,Math.min(20,f)))),d=hs.get(d)||Bt;var b=u&&h;return function(t){var r=v;if(g&&t%1)return\"\";var i=t<0||0===t&&1/t<0?(t=-t,\"-\"):\"-\"===s?\"\":s;if(p<0){var l=uo.formatPrefix(t,f);t=l.scale(t),r=l.symbol+v}else t*=p;t=d(t,f);var x,_,w=t.lastIndexOf(\".\");if(w<0){var M=y?t.lastIndexOf(\"e\"):-1;M<0?(x=t,_=\"\"):(x=t.substring(0,M),_=t.substring(M))}else x=t.substring(0,w),_=e+t.substring(w+1);!u&&h&&(x=a(x,1/0));var k=m.length+x.length+_.length+(b?0:i.length),A=k<c?new Array(k=c-k+1).join(n):\"\";return b&&(x=a(A+x,A.length?c-_.length:1/0)),i+=m,t=x+_,(\"<\"===o?i+t+A:\">\"===o?A+i+t:\"^\"===o?A.substring(0,k>>=1)+i+t+A.substring(k):i+(b?t:A+t))+r}}}function Bt(t){return t+\"\"}function Ut(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}function Vt(t,e,r){function n(e){var r=t(e),n=a(r,1);return e-r<n-e?r:n}function i(r){return e(r=t(new ds(r-1)),1),r}function a(t,r){return e(t=new ds(+t),r),t}function o(t,n,a){var o=i(t),s=[];if(a>1)for(;o<n;)r(o)%a||s.push(new Date(+o)),e(o,1);else for(;o<n;)s.push(new Date(+o)),e(o,1);return s}function s(t,e,r){try{ds=Ut;var n=new Ut;return n._=t,o(n,e,r)}finally{ds=Date}}t.floor=t,t.round=n,t.ceil=i,t.offset=a,t.range=o;var l=t.utc=Ht(t);return l.floor=l,l.round=Ht(n),l.ceil=Ht(i),l.offset=Ht(a),l.range=s,t}function Ht(t){return function(e,r){try{ds=Ut;var n=new Ut;return n._=e,t(n,r)._}finally{ds=Date}}}function qt(t){function e(t){function e(e){for(var r,i,a,o=[],s=-1,l=0;++s<n;)37===t.charCodeAt(s)&&(o.push(t.slice(l,s)),null!=(i=ms[r=t.charAt(++s)])&&(r=t.charAt(++s)),(a=E[r])&&(r=a(e,null==i?\"e\"===r?\" \":\"0\":i)),o.push(r),l=s+1);return o.push(t.slice(l,s)),o.join(\"\")}var n=t.length;return e.parse=function(e){var n={y:1900,m:0,d:1,H:0,M:0,S:0,L:0,Z:null};if(r(n,t,e,0)!=e.length)return null;\"p\"in n&&(n.H=n.H%12+12*n.p);var i=null!=n.Z&&ds!==Ut,a=new(i?Ut:ds);return\"j\"in n?a.setFullYear(n.y,0,n.j):\"W\"in n||\"U\"in n?(\"w\"in n||(n.w=\"W\"in n?1:0),a.setFullYear(n.y,0,1),a.setFullYear(n.y,0,\"W\"in n?(n.w+6)%7+7*n.W-(a.getDay()+5)%7:n.w+7*n.U-(a.getDay()+6)%7)):a.setFullYear(n.y,n.m,n.d),a.setHours(n.H+(n.Z/100|0),n.M+n.Z%100,n.S,n.L),i?a._:a},e.toString=function(){return t},e}function r(t,e,r,n){for(var i,a,o,s=0,l=e.length,u=r.length;s<l;){if(n>=u)return-1;if(37===(i=e.charCodeAt(s++))){if(o=e.charAt(s++),!(a=L[o in ms?e.charAt(s++):o])||(n=a(t,r,n))<0)return-1}else if(i!=r.charCodeAt(n++))return-1}return n}function n(t,e,r){w.lastIndex=0;var n=w.exec(e.slice(r));return n?(t.w=M.get(n[0].toLowerCase()),r+n[0].length):-1}function i(t,e,r){x.lastIndex=0;var n=x.exec(e.slice(r));return n?(t.w=_.get(n[0].toLowerCase()),r+n[0].length):-1}function a(t,e,r){T.lastIndex=0;var n=T.exec(e.slice(r));return n?(t.m=S.get(n[0].toLowerCase()),r+n[0].length):-1}function o(t,e,r){k.lastIndex=0;var n=k.exec(e.slice(r));return n?(t.m=A.get(n[0].toLowerCase()),r+n[0].length):-1}function s(t,e,n){return r(t,E.c.toString(),e,n)}function l(t,e,n){return r(t,E.x.toString(),e,n)}function u(t,e,n){return r(t,E.X.toString(),e,n)}function c(t,e,r){var n=b.get(e.slice(r,r+=2).toLowerCase());return null==n?-1:(t.p=n,r)}var h=t.dateTime,f=t.date,d=t.time,p=t.periods,m=t.days,v=t.shortDays,g=t.months,y=t.shortMonths;e.utc=function(t){function r(t){try{ds=Ut;var e=new ds;return e._=t,n(e)}finally{ds=Date}}var n=e(t);return r.parse=function(t){try{ds=Ut;var e=n.parse(t);return e&&e._}finally{ds=Date}},r.toString=n.toString,r},e.multi=e.utc.multi=ce;var b=uo.map(),x=Yt(m),_=Wt(m),w=Yt(v),M=Wt(v),k=Yt(g),A=Wt(g),T=Yt(y),S=Wt(y);p.forEach(function(t,e){b.set(t.toLowerCase(),e)});var E={a:function(t){return v[t.getDay()]},A:function(t){return m[t.getDay()]},b:function(t){return y[t.getMonth()]},B:function(t){return g[t.getMonth()]},c:e(h),d:function(t,e){return Gt(t.getDate(),e,2)},e:function(t,e){return Gt(t.getDate(),e,2)},H:function(t,e){return Gt(t.getHours(),e,2)},I:function(t,e){return Gt(t.getHours()%12||12,e,2)},j:function(t,e){return Gt(1+fs.dayOfYear(t),e,3)},L:function(t,e){return Gt(t.getMilliseconds(),e,3)},m:function(t,e){return Gt(t.getMonth()+1,e,2)},M:function(t,e){return Gt(t.getMinutes(),e,2)},p:function(t){return p[+(t.getHours()>=12)]},S:function(t,e){return Gt(t.getSeconds(),e,2)},U:function(t,e){return Gt(fs.sundayOfYear(t),e,2)},w:function(t){return t.getDay()},W:function(t,e){return Gt(fs.mondayOfYear(t),e,2)},x:e(f),X:e(d),y:function(t,e){return Gt(t.getFullYear()%100,e,2)},Y:function(t,e){return Gt(t.getFullYear()%1e4,e,4)},Z:le,\"%\":function(){return\"%\"}},L={a:n,A:i,b:a,B:o,c:s,d:re,e:re,H:ie,I:ie,j:ne,L:se,m:ee,M:ae,p:c,S:oe,U:Zt,w:Xt,W:Jt,x:l,X:u,y:Qt,Y:Kt,Z:$t,\"%\":ue};return e}function Gt(t,e,r){var n=t<0?\"-\":\"\",i=(n?-t:t)+\"\",a=i.length;return n+(a<r?new Array(r-a+1).join(e)+i:i)}function Yt(t){return new RegExp(\"^(?:\"+t.map(uo.requote).join(\"|\")+\")\",\"i\")}function Wt(t){for(var e=new h,r=-1,n=t.length;++r<n;)e.set(t[r].toLowerCase(),r);return e}function Xt(t,e,r){vs.lastIndex=0;var n=vs.exec(e.slice(r,r+1));return n?(t.w=+n[0],r+n[0].length):-1}function Zt(t,e,r){vs.lastIndex=0;var n=vs.exec(e.slice(r));return n?(t.U=+n[0],r+n[0].length):-1}function Jt(t,e,r){vs.lastIndex=0;var n=vs.exec(e.slice(r));return n?(t.W=+n[0],r+n[0].length):-1}function Kt(t,e,r){vs.lastIndex=0;var n=vs.exec(e.slice(r,r+4));return n?(t.y=+n[0],r+n[0].length):-1}function Qt(t,e,r){vs.lastIndex=0;var n=vs.exec(e.slice(r,r+2));return n?(t.y=te(+n[0]),r+n[0].length):-1}function $t(t,e,r){return/^[+-]\\d{4}$/.test(e=e.slice(r,r+5))?(t.Z=-e,r+5):-1}function te(t){return t+(t>68?1900:2e3)}function ee(t,e,r){vs.lastIndex=0;var n=vs.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function re(t,e,r){vs.lastIndex=0;var n=vs.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function ne(t,e,r){vs.lastIndex=0;var n=vs.exec(e.slice(r,r+3));return n?(t.j=+n[0],r+n[0].length):-1}function ie(t,e,r){vs.lastIndex=0;var n=vs.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function ae(t,e,r){vs.lastIndex=0;var n=vs.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function oe(t,e,r){vs.lastIndex=0;var n=vs.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function se(t,e,r){vs.lastIndex=0;var n=vs.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function le(t){var e=t.getTimezoneOffset(),r=e>0?\"-\":\"+\",n=xo(e)/60|0,i=xo(e)%60;return r+Gt(n,\"0\",2)+Gt(i,\"0\",2)}function ue(t,e,r){gs.lastIndex=0;var n=gs.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function ce(t){for(var e=t.length,r=-1;++r<e;)t[r][0]=this(t[r][0]);return function(e){for(var r=0,n=t[r];!n[1](e);)n=t[++r];return n[0](e)}}function he(){}function fe(t,e,r){var n=r.s=t+e,i=n-t,a=n-i;r.t=t-a+(e-i)}function de(t,e){t&&_s.hasOwnProperty(t.type)&&_s[t.type](t,e)}function pe(t,e,r){var n,i=-1,a=t.length-r;for(e.lineStart();++i<a;)n=t[i],e.point(n[0],n[1],n[2]);e.lineEnd()}function me(t,e){var r=-1,n=t.length;for(e.polygonStart();++r<n;)pe(t[r],e,1);e.polygonEnd()}function ve(){function t(t,e){t*=Ho,e=e*Ho/2+No/4;var r=t-n,o=r>=0?1:-1,s=o*r,l=Math.cos(e),u=Math.sin(e),c=a*u,h=i*l+c*Math.cos(s),f=c*o*Math.sin(s);Ms.add(Math.atan2(f,h)),n=t,i=l,a=u}var e,r,n,i,a;ks.point=function(o,s){ks.point=t,n=(e=o)*Ho,i=Math.cos(s=(r=s)*Ho/2+No/4),a=Math.sin(s)},ks.lineEnd=function(){t(e,r)}}function ge(t){var e=t[0],r=t[1],n=Math.cos(r);return[n*Math.cos(e),n*Math.sin(e),Math.sin(r)]}function ye(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function be(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function xe(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function _e(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function we(t){var e=Math.sqrt(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}function Me(t){return[Math.atan2(t[1],t[0]),nt(t[2])]}function ke(t,e){return xo(t[0]-e[0])<Fo&&xo(t[1]-e[1])<Fo}function Ae(t,e){t*=Ho;var r=Math.cos(e*=Ho);Te(r*Math.cos(t),r*Math.sin(t),Math.sin(e))}function Te(t,e,r){++As,Ss+=(t-Ss)/As,Es+=(e-Es)/As,Ls+=(r-Ls)/As}function Se(){function t(t,i){t*=Ho;var a=Math.cos(i*=Ho),o=a*Math.cos(t),s=a*Math.sin(t),l=Math.sin(i),u=Math.atan2(Math.sqrt((u=r*l-n*s)*u+(u=n*o-e*l)*u+(u=e*s-r*o)*u),e*o+r*s+n*l);Ts+=u,Cs+=u*(e+(e=o)),Is+=u*(r+(r=s)),zs+=u*(n+(n=l)),Te(e,r,n)}var e,r,n;Rs.point=function(i,a){i*=Ho;var o=Math.cos(a*=Ho);e=o*Math.cos(i),r=o*Math.sin(i),n=Math.sin(a),Rs.point=t,Te(e,r,n)}}function Ee(){Rs.point=Ae}function Le(){function t(t,e){t*=Ho;var r=Math.cos(e*=Ho),o=r*Math.cos(t),s=r*Math.sin(t),l=Math.sin(e),u=i*l-a*s,c=a*o-n*l,h=n*s-i*o,f=Math.sqrt(u*u+c*c+h*h),d=n*o+i*s+a*l,p=f&&-rt(d)/f,m=Math.atan2(f,d);Ds+=p*u,Ps+=p*c,Os+=p*h,Ts+=m,Cs+=m*(n+(n=o)),Is+=m*(i+(i=s)),zs+=m*(a+(a=l)),Te(n,i,a)}var e,r,n,i,a;Rs.point=function(o,s){e=o,r=s,Rs.point=t,o*=Ho;var l=Math.cos(s*=Ho);n=l*Math.cos(o),i=l*Math.sin(o),a=Math.sin(s),Te(n,i,a)},Rs.lineEnd=function(){t(e,r),Rs.lineEnd=Ee,Rs.point=Ae}}function Ce(t,e){function r(r,n){return r=t(r,n),e(r[0],r[1])}return t.invert&&e.invert&&(r.invert=function(r,n){return(r=e.invert(r,n))&&t.invert(r[0],r[1])}),r}function Ie(){return!0}function ze(t,e,r,n,i){var a=[],o=[];if(t.forEach(function(t){if(!((e=t.length-1)<=0)){var e,r=t[0],n=t[e];if(ke(r,n)){i.lineStart();for(var s=0;s<e;++s)i.point((r=t[s])[0],r[1]);return void i.lineEnd()}var l=new Pe(r,t,null,!0),u=new Pe(r,null,l,!1);l.o=u,a.push(l),o.push(u),l=new Pe(n,t,null,!1),u=new Pe(n,null,l,!0),l.o=u,a.push(l),o.push(u)}}),o.sort(e),De(a),De(o),a.length){for(var s=0,l=r,u=o.length;s<u;++s)o[s].e=l=!l;for(var c,h,f=a[0];;){for(var d=f,p=!0;d.v;)if((d=d.n)===f)return;c=d.z,i.lineStart();do{if(d.v=d.o.v=!0,d.e){if(p)for(var s=0,u=c.length;s<u;++s)i.point((h=c[s])[0],h[1]);else n(d.x,d.n.x,1,i);d=d.n}else{if(p){c=d.p.z;for(var s=c.length-1;s>=0;--s)i.point((h=c[s])[0],h[1])}else n(d.x,d.p.x,-1,i);d=d.p}d=d.o,c=d.z,p=!p}while(!d.v);i.lineEnd()}}}function De(t){if(e=t.length){for(var e,r,n=0,i=t[0];++n<e;)i.n=r=t[n],r.p=i,i=r;i.n=r=t[0],r.p=i}}function Pe(t,e,r,n){this.x=t,this.z=e,this.o=r,this.e=n,this.v=!1,this.n=this.p=null}function Oe(t,e,r,n){return function(i,a){function o(e,r){var n=i(e,r);t(e=n[0],r=n[1])&&a.point(e,r)}function s(t,e){var r=i(t,e);v.point(r[0],r[1])}function l(){y.point=s,v.lineStart()}function u(){y.point=o,v.lineEnd()}function c(t,e){m.push([t,e]);var r=i(t,e);x.point(r[0],r[1])}function h(){x.lineStart(),m=[]}function f(){c(m[0][0],m[0][1]),x.lineEnd();var t,e=x.clean(),r=b.buffer(),n=r.length;if(m.pop(),p.push(m),m=null,n)if(1&e){t=r[0];var i,n=t.length-1,o=-1;if(n>0){for(_||(a.polygonStart(),_=!0),a.lineStart();++o<n;)a.point((i=t[o])[0],i[1]);a.lineEnd()}}else n>1&&2&e&&r.push(r.pop().concat(r.shift())),d.push(r.filter(Re))}var d,p,m,v=e(a),g=i.invert(n[0],n[1]),y={point:o,lineStart:l,lineEnd:u,polygonStart:function(){y.point=c,y.lineStart=h,y.lineEnd=f,d=[],p=[]},polygonEnd:function(){y.point=o,y.lineStart=l,y.lineEnd=u,d=uo.merge(d);var t=Ve(g,p);d.length?(_||(a.polygonStart(),_=!0),ze(d,je,t,r,a)):t&&(_||(a.polygonStart(),_=!0),a.lineStart(),r(null,null,1,a),a.lineEnd()),_&&(a.polygonEnd(),_=!1),d=p=null},sphere:function(){a.polygonStart(),a.lineStart(),r(null,null,1,a),a.lineEnd(),a.polygonEnd()}},b=Fe(),x=e(b),_=!1;return y}}function Re(t){return t.length>1}function Fe(){var t,e=[];return{lineStart:function(){e.push(t=[])},point:function(e,r){t.push([e,r])},lineEnd:M,buffer:function(){var r=e;return e=[],t=null,r},rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))}}}function je(t,e){return((t=t.x)[0]<0?t[1]-Vo-Fo:Vo-t[1])-((e=e.x)[0]<0?e[1]-Vo-Fo:Vo-e[1])}function Ne(t){var e,r=NaN,n=NaN,i=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(a,o){var s=a>0?No:-No,l=xo(a-r);xo(l-No)<Fo?(t.point(r,n=(n+o)/2>0?Vo:-Vo),t.point(i,n),t.lineEnd(),t.lineStart(),t.point(s,n),t.point(a,n),e=0):i!==s&&l>=No&&(xo(r-i)<Fo&&(r-=i*Fo),xo(a-s)<Fo&&(a-=s*Fo),n=Be(r,n,a,o),t.point(i,n),t.lineEnd(),t.lineStart(),t.point(s,n),e=0),t.point(r=a,n=o),i=s},lineEnd:function(){t.lineEnd(),r=n=NaN},clean:function(){return 2-e}}}function Be(t,e,r,n){var i,a,o=Math.sin(t-r);return xo(o)>Fo?Math.atan((Math.sin(e)*(a=Math.cos(n))*Math.sin(r)-Math.sin(n)*(i=Math.cos(e))*Math.sin(t))/(i*a*o)):(e+n)/2}function Ue(t,e,r,n){var i;if(null==t)i=r*Vo,n.point(-No,i),n.point(0,i),n.point(No,i),n.point(No,0),n.point(No,-i),n.point(0,-i),n.point(-No,-i),n.point(-No,0),n.point(-No,i);else if(xo(t[0]-e[0])>Fo){var a=t[0]<e[0]?No:-No;i=r*a/2,n.point(-a,i),n.point(0,i),n.point(a,i)}else n.point(e[0],e[1])}function Ve(t,e){var r=t[0],n=t[1],i=[Math.sin(r),-Math.cos(r),0],a=0,o=0;Ms.reset();for(var s=0,l=e.length;s<l;++s){var u=e[s],c=u.length;if(c)for(var h=u[0],f=h[0],d=h[1]/2+No/4,p=Math.sin(d),m=Math.cos(d),v=1;;){v===c&&(v=0),t=u[v];var g=t[0],y=t[1]/2+No/4,b=Math.sin(y),x=Math.cos(y),_=g-f,w=_>=0?1:-1,M=w*_,k=M>No,A=p*b;if(Ms.add(Math.atan2(A*w*Math.sin(M),m*x+A*Math.cos(M))),a+=k?_+w*Bo:_,k^f>=r^g>=r){var T=be(ge(h),ge(t));we(T);var S=be(i,T);we(S);var E=(k^_>=0?-1:1)*nt(S[2]);(n>E||n===E&&(T[0]||T[1]))&&(o+=k^_>=0?1:-1)}if(!v++)break;f=g,p=b,m=x,h=t}}return(a<-Fo||a<Fo&&Ms<-Fo)^1&o}function He(t){function e(t,e){return Math.cos(t)*Math.cos(e)>a}function r(t){var r,a,l,u,c;return{lineStart:function(){u=l=!1,c=1},point:function(h,f){var d,p=[h,f],m=e(h,f),v=o?m?0:i(h,f):m?i(h+(h<0?No:-No),f):0;if(!r&&(u=l=m)&&t.lineStart(),m!==l&&(d=n(r,p),(ke(r,d)||ke(p,d))&&(p[0]+=Fo,p[1]+=Fo,m=e(p[0],p[1]))),m!==l)c=0,m?(t.lineStart(),d=n(p,r),t.point(d[0],d[1])):(d=n(r,p),t.point(d[0],d[1]),t.lineEnd()),r=d;else if(s&&r&&o^m){var g;v&a||!(g=n(p,r,!0))||(c=0,o?(t.lineStart(),t.point(g[0][0],g[0][1]),t.point(g[1][0],g[1][1]),t.lineEnd()):(t.point(g[1][0],g[1][1]),t.lineEnd(),t.lineStart(),t.point(g[0][0],g[0][1])))}!m||r&&ke(r,p)||t.point(p[0],p[1]),r=p,l=m,a=v},lineEnd:function(){l&&t.lineEnd(),r=null},clean:function(){return c|(u&&l)<<1}}}function n(t,e,r){var n=ge(t),i=ge(e),o=[1,0,0],s=be(n,i),l=ye(s,s),u=s[0],c=l-u*u;if(!c)return!r&&t;var h=a*l/c,f=-a*u/c,d=be(o,s),p=_e(o,h);xe(p,_e(s,f));var m=d,v=ye(p,m),g=ye(m,m),y=v*v-g*(ye(p,p)-1);if(!(y<0)){var b=Math.sqrt(y),x=_e(m,(-v-b)/g);if(xe(x,p),x=Me(x),!r)return x;var _,w=t[0],M=e[0],k=t[1],A=e[1];M<w&&(_=w,w=M,M=_);var T=M-w,S=xo(T-No)<Fo,E=S||T<Fo;if(!S&&A<k&&(_=k,k=A,A=_),E?S?k+A>0^x[1]<(xo(x[0]-w)<Fo?k:A):k<=x[1]&&x[1]<=A:T>No^(w<=x[0]&&x[0]<=M)){var L=_e(m,(-v+b)/g);return xe(L,p),[x,Me(L)]}}}function i(e,r){var n=o?t:No-t,i=0;return e<-n?i|=1:e>n&&(i|=2),r<-n?i|=4:r>n&&(i|=8),i}var a=Math.cos(t),o=a>0,s=xo(a)>Fo;return Oe(e,r,vr(t,6*Ho),o?[0,-t]:[-No,t-No])}function qe(t,e,r,n){return function(i){var a,o=i.a,s=i.b,l=o.x,u=o.y,c=s.x,h=s.y,f=0,d=1,p=c-l,m=h-u;if(a=t-l,p||!(a>0)){if(a/=p,p<0){if(a<f)return;a<d&&(d=a)}else if(p>0){if(a>d)return;a>f&&(f=a)}if(a=r-l,p||!(a<0)){if(a/=p,p<0){if(a>d)return;a>f&&(f=a)}else if(p>0){if(a<f)return;a<d&&(d=a)}if(a=e-u,m||!(a>0)){if(a/=m,m<0){if(a<f)return;a<d&&(d=a)}else if(m>0){if(a>d)return;a>f&&(f=a)}if(a=n-u,m||!(a<0)){if(a/=m,m<0){if(a>d)return;a>f&&(f=a)}else if(m>0){if(a<f)return;a<d&&(d=a)}return f>0&&(i.a={x:l+f*p,y:u+f*m}),d<1&&(i.b={x:l+d*p,y:u+d*m}),i}}}}}}function Ge(t,e,r,n){function i(n,i){return xo(n[0]-t)<Fo?i>0?0:3:xo(n[0]-r)<Fo?i>0?2:1:xo(n[1]-e)<Fo?i>0?1:0:i>0?3:2}function a(t,e){return o(t.x,e.x)}function o(t,e){var r=i(t,1),n=i(e,1);return r!==n?r-n:0===r?e[1]-t[1]:1===r?t[0]-e[0]:2===r?t[1]-e[1]:e[0]-t[0]}return function(s){function l(t){for(var e=0,r=v.length,n=t[1],i=0;i<r;++i)for(var a,o=1,s=v[i],l=s.length,u=s[0];o<l;++o)a=s[o],u[1]<=n?a[1]>n&&et(u,a,t)>0&&++e:a[1]<=n&&et(u,a,t)<0&&--e,u=a;return 0!==e}function u(a,s,l,u){var c=0,h=0;if(null==a||(c=i(a,l))!==(h=i(s,l))||o(a,s)<0^l>0)do{u.point(0===c||3===c?t:r,c>1?n:e)}while((c=(c+l+4)%4)!==h);else u.point(s[0],s[1])}function c(i,a){return t<=i&&i<=r&&e<=a&&a<=n}function h(t,e){c(t,e)&&s.point(t,e)}function f(){L.point=p,v&&v.push(g=[]),k=!0,M=!1,_=w=NaN}function d(){m&&(p(y,b),x&&M&&S.rejoin(),m.push(S.buffer())),L.point=h,M&&s.lineEnd()}function p(t,e){t=Math.max(-js,Math.min(js,t)),e=Math.max(-js,Math.min(js,e));var r=c(t,e);if(v&&g.push([t,e]),k)y=t,b=e,x=r,k=!1,r&&(s.lineStart(),s.point(t,e));else if(r&&M)s.point(t,e);else{var n={a:{x:_,y:w},b:{x:t,y:e}};E(n)?(M||(s.lineStart(),s.point(n.a.x,n.a.y)),s.point(n.b.x,n.b.y),r||s.lineEnd(),A=!1):r&&(s.lineStart(),s.point(t,e),A=!1)}_=t,w=e,M=r}var m,v,g,y,b,x,_,w,M,k,A,T=s,S=Fe(),E=qe(t,e,r,n),L={point:h,lineStart:f,lineEnd:d,polygonStart:function(){s=S,m=[],v=[],A=!0},polygonEnd:function(){s=T,m=uo.merge(m);var e=l([t,n]),r=A&&e,i=m.length;(r||i)&&(s.polygonStart(),r&&(s.lineStart(),u(null,null,1,s),s.lineEnd()),i&&ze(m,a,e,u,s),s.polygonEnd()),m=v=g=null}};return L}}function Ye(t){var e=0,r=No/3,n=lr(t),i=n(e,r);return i.parallels=function(t){return arguments.length?n(e=t[0]*No/180,r=t[1]*No/180):[e/No*180,r/No*180]},i}function We(t,e){function r(t,e){var r=Math.sqrt(a-2*i*Math.sin(e))/i;return[r*Math.sin(t*=i),o-r*Math.cos(t)]}var n=Math.sin(t),i=(n+Math.sin(e))/2,a=1+n*(2*i-n),o=Math.sqrt(a)/i;return r.invert=function(t,e){var r=o-e;return[Math.atan2(t,r)/i,nt((a-(t*t+r*r)*i*i)/(2*i))]},r}function Xe(){function t(t,e){Bs+=i*t-n*e,n=t,i=e}var e,r,n,i;Gs.point=function(a,o){Gs.point=t,e=n=a,r=i=o},Gs.lineEnd=function(){t(e,r)}}function Ze(t,e){t<Us&&(Us=t),t>Hs&&(Hs=t),e<Vs&&(Vs=e),e>qs&&(qs=e)}function Je(){function t(t,e){o.push(\"M\",t,\",\",e,a)}function e(t,e){o.push(\"M\",t,\",\",e),s.point=r}function r(t,e){o.push(\"L\",t,\",\",e)}function n(){s.point=t}function i(){o.push(\"Z\")}var a=Ke(4.5),o=[],s={point:t,lineStart:function(){s.point=e},lineEnd:n,polygonStart:function(){s.lineEnd=i},polygonEnd:function(){s.lineEnd=n,s.point=t},pointRadius:function(t){return a=Ke(t),s},result:function(){if(o.length){var t=o.join(\"\");return o=[],t}}};return s}function Ke(t){return\"m0,\"+t+\"a\"+t+\",\"+t+\" 0 1,1 0,\"+-2*t+\"a\"+t+\",\"+t+\" 0 1,1 0,\"+2*t+\"z\"}function Qe(t,e){Ss+=t,Es+=e,++Ls}function $e(){function t(t,n){var i=t-e,a=n-r,o=Math.sqrt(i*i+a*a);Cs+=o*(e+t)/2,Is+=o*(r+n)/2,zs+=o,Qe(e=t,r=n)}var e,r;Ws.point=function(n,i){Ws.point=t,Qe(e=n,r=i)}}function tr(){Ws.point=Qe}function er(){function t(t,e){var r=t-n,a=e-i,o=Math.sqrt(r*r+a*a);Cs+=o*(n+t)/2,Is+=o*(i+e)/2,zs+=o,o=i*t-n*e,Ds+=o*(n+t),Ps+=o*(i+e),Os+=3*o,Qe(n=t,i=e)}var e,r,n,i;Ws.point=function(a,o){Ws.point=t,Qe(e=n=a,r=i=o)},Ws.lineEnd=function(){t(e,r)}}function rr(t){function e(e,r){t.moveTo(e+o,r),t.arc(e,r,o,0,Bo)}function r(e,r){t.moveTo(e,r),s.point=n}function n(e,r){t.lineTo(e,r)}function i(){s.point=e}function a(){t.closePath()}var o=4.5,s={point:e,lineStart:function(){s.point=r},lineEnd:i,polygonStart:function(){s.lineEnd=a},polygonEnd:function(){s.lineEnd=i,s.point=e},pointRadius:function(t){return o=t,s},result:M};return s}function nr(t){function e(t){return(s?n:r)(t)}function r(e){return or(e,function(r,n){r=t(r,n),e.point(r[0],r[1])})}function n(e){function r(r,n){r=t(r,n),e.point(r[0],r[1])}function n(){b=NaN,k.point=a,e.lineStart()}function a(r,n){var a=ge([r,n]),o=t(r,n);i(b,x,y,_,w,M,b=o[0],x=o[1],y=r,_=a[0],w=a[1],M=a[2],s,e),e.point(b,x)}function o(){k.point=r,e.lineEnd()}function l(){n(),k.point=u,k.lineEnd=c}function u(t,e){a(h=t,f=e),d=b,p=x,m=_,v=w,g=M,k.point=a}function c(){i(b,x,y,_,w,M,d,p,h,m,v,g,s,e),k.lineEnd=o,o()}var h,f,d,p,m,v,g,y,b,x,_,w,M,k={point:r,lineStart:n,lineEnd:o,polygonStart:function(){e.polygonStart(),k.lineStart=l},polygonEnd:function(){e.polygonEnd(),k.lineStart=n}};return k}function i(e,r,n,s,l,u,c,h,f,d,p,m,v,g){var y=c-e,b=h-r,x=y*y+b*b;if(x>4*a&&v--){var _=s+d,w=l+p,M=u+m,k=Math.sqrt(_*_+w*w+M*M),A=Math.asin(M/=k),T=xo(xo(M)-1)<Fo||xo(n-f)<Fo?(n+f)/2:Math.atan2(w,_),S=t(T,A),E=S[0],L=S[1],C=E-e,I=L-r,z=b*C-y*I;(z*z/x>a||xo((y*C+b*I)/x-.5)>.3||s*d+l*p+u*m<o)&&(i(e,r,n,s,l,u,E,L,T,_/=k,w/=k,M,v,g),g.point(E,L),i(E,L,T,_,w,M,c,h,f,d,p,m,v,g))}}var a=.5,o=Math.cos(30*Ho),s=16;return e.precision=function(t){return arguments.length?(s=(a=t*t)>0&&16,e):Math.sqrt(a)},e}function ir(t){var e=nr(function(e,r){return t([e*qo,r*qo])});return function(t){return ur(e(t))}}function ar(t){this.stream=t}function or(t,e){return{point:e,sphere:function(){t.sphere()},lineStart:function(){t.lineStart()},lineEnd:function(){t.lineEnd()},polygonStart:function(){t.polygonStart()},polygonEnd:function(){t.polygonEnd()}}}function sr(t){return lr(function(){return t})()}function lr(t){function e(t){return t=s(t[0]*Ho,t[1]*Ho),[t[0]*f+l,u-t[1]*f]}function r(t){return(t=s.invert((t[0]-l)/f,(u-t[1])/f))&&[t[0]*qo,t[1]*qo]}function n(){s=Ce(o=fr(g,y,b),a);var t=a(m,v);return l=d-t[0]*f,u=p+t[1]*f,i()}function i(){return c&&(c.valid=!1,c=null),e}var a,o,s,l,u,c,h=nr(function(t,e){return t=a(t,e),[t[0]*f+l,u-t[1]*f]}),f=150,d=480,p=250,m=0,v=0,g=0,y=0,b=0,_=Fs,w=x,M=null,k=null;return e.stream=function(t){return c&&(c.valid=!1),c=ur(_(o,h(w(t)))),c.valid=!0,c},e.clipAngle=function(t){return arguments.length?(_=null==t?(M=t,Fs):He((M=+t)*Ho),i()):M},e.clipExtent=function(t){return arguments.length?(k=t,w=t?Ge(t[0][0],t[0][1],t[1][0],t[1][1]):x,i()):k},e.scale=function(t){return arguments.length?(f=+t,n()):f},e.translate=function(t){return arguments.length?(d=+t[0],p=+t[1],n()):[d,p]},e.center=function(t){return arguments.length?(m=t[0]%360*Ho,v=t[1]%360*Ho,n()):[m*qo,v*qo]},e.rotate=function(t){return arguments.length?(g=t[0]%360*Ho,y=t[1]%360*Ho,b=t.length>2?t[2]%360*Ho:0,n()):[g*qo,y*qo,b*qo]},uo.rebind(e,h,\"precision\"),function(){return a=t.apply(this,arguments),e.invert=a.invert&&r,n()}}function ur(t){return or(t,function(e,r){t.point(e*Ho,r*Ho)})}function cr(t,e){return[t,e]}function hr(t,e){return[t>No?t-Bo:t<-No?t+Bo:t,e]}function fr(t,e,r){return t?e||r?Ce(pr(t),mr(e,r)):pr(t):e||r?mr(e,r):hr}function dr(t){return function(e,r){return e+=t,[e>No?e-Bo:e<-No?e+Bo:e,r]}}function pr(t){var e=dr(t);return e.invert=dr(-t),e}function mr(t,e){function r(t,e){var r=Math.cos(e),s=Math.cos(t)*r,l=Math.sin(t)*r,u=Math.sin(e),c=u*n+s*i;return[Math.atan2(l*a-c*o,s*n-u*i),nt(c*a+l*o)]}var n=Math.cos(t),i=Math.sin(t),a=Math.cos(e),o=Math.sin(e);return r.invert=function(t,e){var r=Math.cos(e),s=Math.cos(t)*r,l=Math.sin(t)*r,u=Math.sin(e),c=u*a-l*o;return[Math.atan2(l*a+u*o,s*n+c*i),nt(c*n-s*i)]},r}function vr(t,e){var r=Math.cos(t),n=Math.sin(t);return function(i,a,o,s){var l=o*e;null!=i?(i=gr(r,i),a=gr(r,a),(o>0?i<a:i>a)&&(i+=o*Bo)):(i=t+o*Bo,a=t-.5*l);for(var u,c=i;o>0?c>a:c<a;c-=l)s.point((u=Me([r,-n*Math.cos(c),-n*Math.sin(c)]))[0],u[1])}}function gr(t,e){var r=ge(e);r[0]-=t,we(r);var n=rt(-r[1]);return((-r[2]<0?-n:n)+2*Math.PI-Fo)%(2*Math.PI)}function yr(t,e,r){var n=uo.range(t,e-Fo,r).concat(e);return function(t){return n.map(function(e){return[t,e]})}}function br(t,e,r){var n=uo.range(t,e-Fo,r).concat(e);return function(t){return n.map(function(e){return[e,t]})}}function xr(t){return t.source}function _r(t){return t.target}function wr(t,e,r,n){var i=Math.cos(e),a=Math.sin(e),o=Math.cos(n),s=Math.sin(n),l=i*Math.cos(t),u=i*Math.sin(t),c=o*Math.cos(r),h=o*Math.sin(r),f=2*Math.asin(Math.sqrt(st(n-e)+i*o*st(r-t))),d=1/Math.sin(f),p=f?function(t){var e=Math.sin(t*=f)*d,r=Math.sin(f-t)*d,n=r*l+e*c,i=r*u+e*h,o=r*a+e*s;return[Math.atan2(i,n)*qo,Math.atan2(o,Math.sqrt(n*n+i*i))*qo]}:function(){return[t*qo,e*qo]};return p.distance=f,p}function Mr(){function t(t,i){var a=Math.sin(i*=Ho),o=Math.cos(i),s=xo((t*=Ho)-e),l=Math.cos(s);Xs+=Math.atan2(Math.sqrt((s=o*Math.sin(s))*s+(s=n*a-r*o*l)*s),r*a+n*o*l),e=t,r=a,n=o}var e,r,n;Zs.point=function(i,a){e=i*Ho,r=Math.sin(a*=Ho),n=Math.cos(a),Zs.point=t},Zs.lineEnd=function(){Zs.point=Zs.lineEnd=M}}function kr(t,e){function r(e,r){var n=Math.cos(e),i=Math.cos(r),a=t(n*i);return[a*i*Math.sin(e),a*Math.sin(r)]}return r.invert=function(t,r){var n=Math.sqrt(t*t+r*r),i=e(n),a=Math.sin(i),o=Math.cos(i);return[Math.atan2(t*a,n*o),Math.asin(n&&r*a/n)]},r}function Ar(t,e){function r(t,e){o>0?e<-Vo+Fo&&(e=-Vo+Fo):e>Vo-Fo&&(e=Vo-Fo);var r=o/Math.pow(i(e),a);return[r*Math.sin(a*t),o-r*Math.cos(a*t)]}var n=Math.cos(t),i=function(t){return Math.tan(No/4+t/2)},a=t===e?Math.sin(t):Math.log(n/Math.cos(e))/Math.log(i(e)/i(t)),o=n*Math.pow(i(t),a)/a;return a?(r.invert=function(t,e){var r=o-e,n=tt(a)*Math.sqrt(t*t+r*r);return[Math.atan2(t,r)/a,2*Math.atan(Math.pow(o/n,1/a))-Vo]},r):Sr}function Tr(t,e){function r(t,e){var r=a-e;return[r*Math.sin(i*t),a-r*Math.cos(i*t)]}var n=Math.cos(t),i=t===e?Math.sin(t):(n-Math.cos(e))/(e-t),a=n/i+t;return xo(i)<Fo?cr:(r.invert=function(t,e){var r=a-e;return[Math.atan2(t,r)/i,a-tt(i)*Math.sqrt(t*t+r*r)]},r)}function Sr(t,e){return[t,Math.log(Math.tan(No/4+e/2))]}function Er(t){var e,r=sr(t),n=r.scale,i=r.translate,a=r.clipExtent;return r.scale=function(){var t=n.apply(r,arguments);return t===r?e?r.clipExtent(null):r:t},r.translate=function(){var t=i.apply(r,arguments);return t===r?e?r.clipExtent(null):r:t},r.clipExtent=function(t){var o=a.apply(r,arguments);if(o===r){if(e=null==t){var s=No*n(),l=i();a([[l[0]-s,l[1]-s],[l[0]+s,l[1]+s]])}}else e&&(o=null);return o},r.clipExtent(null)}function Lr(t,e){return[Math.log(Math.tan(No/4+e/2)),-t]}function Cr(t){return t[0]}function Ir(t){return t[1]}function zr(t){for(var e=t.length,r=[0,1],n=2,i=2;i<e;i++){for(;n>1&&et(t[r[n-2]],t[r[n-1]],t[i])<=0;)--n;r[n++]=i}return r.slice(0,n)}function Dr(t,e){return t[0]-e[0]||t[1]-e[1]}function Pr(t,e,r){return(r[0]-e[0])*(t[1]-e[1])<(r[1]-e[1])*(t[0]-e[0])}function Or(t,e,r,n){var i=t[0],a=r[0],o=e[0]-i,s=n[0]-a,l=t[1],u=r[1],c=e[1]-l,h=n[1]-u,f=(s*(l-u)-h*(i-a))/(h*o-s*c);return[i+f*o,l+f*c]}function Rr(t){var e=t[0],r=t[t.length-1];return!(e[0]-r[0]||e[1]-r[1])}function Fr(){an(this),this.edge=this.site=this.circle=null}function jr(t){var e=sl.pop()||new Fr;return e.site=t,e}function Nr(t){Zr(t),il.remove(t),sl.push(t),an(t)}function Br(t){var e=t.circle,r=e.x,n=e.cy,i={x:r,y:n},a=t.P,o=t.N,s=[t];Nr(t);for(var l=a;l.circle&&xo(r-l.circle.x)<Fo&&xo(n-l.circle.cy)<Fo;)a=l.P,s.unshift(l),Nr(l),l=a;s.unshift(l),Zr(l);for(var u=o;u.circle&&xo(r-u.circle.x)<Fo&&xo(n-u.circle.cy)<Fo;)o=u.N,s.push(u),Nr(u),u=o;s.push(u),Zr(u);var c,h=s.length;for(c=1;c<h;++c)u=s[c],l=s[c-1],en(u.edge,l.site,u.site,i);l=s[0],u=s[h-1],u.edge=$r(l.site,u.site,null,i),Xr(l),Xr(u)}function Ur(t){for(var e,r,n,i,a=t.x,o=t.y,s=il._;s;)if((n=Vr(s,o)-a)>Fo)s=s.L;else{if(!((i=a-Hr(s,o))>Fo)){n>-Fo?(e=s.P,r=s):i>-Fo?(e=s,r=s.N):e=r=s;break}if(!s.R){e=s;break}s=s.R}var l=jr(t);if(il.insert(e,l),e||r){if(e===r)return Zr(e),r=jr(e.site),il.insert(l,r),l.edge=r.edge=$r(e.site,l.site),Xr(e),void Xr(r);if(!r)return void(l.edge=$r(e.site,l.site));Zr(e),Zr(r);var u=e.site,c=u.x,h=u.y,f=t.x-c,d=t.y-h,p=r.site,m=p.x-c,v=p.y-h,g=2*(f*v-d*m),y=f*f+d*d,b=m*m+v*v,x={x:(v*y-d*b)/g+c,y:(f*b-m*y)/g+h};en(r.edge,u,p,x),l.edge=$r(u,t,null,x),r.edge=$r(t,p,null,x),Xr(e),Xr(r)}}function Vr(t,e){var r=t.site,n=r.x,i=r.y,a=i-e;if(!a)return n;var o=t.P;if(!o)return-1/0;r=o.site;var s=r.x,l=r.y,u=l-e;if(!u)return s;var c=s-n,h=1/a-1/u,f=c/u;return h?(-f+Math.sqrt(f*f-2*h*(c*c/(-2*u)-l+u/2+i-a/2)))/h+n:(n+s)/2}function Hr(t,e){var r=t.N;if(r)return Vr(r,e);var n=t.site;return n.y===e?n.x:1/0}function qr(t){this.site=t,this.edges=[]}function Gr(t){for(var e,r,n,i,a,o,s,l,u,c,h=t[0][0],f=t[1][0],d=t[0][1],p=t[1][1],m=nl,v=m.length;v--;)if((a=m[v])&&a.prepare())for(s=a.edges,l=s.length,o=0;o<l;)c=s[o].end(),n=c.x,i=c.y,u=s[++o%l].start(),e=u.x,r=u.y,(xo(n-e)>Fo||xo(i-r)>Fo)&&(s.splice(o,0,new rn(tn(a.site,c,xo(n-h)<Fo&&p-i>Fo?{x:h,y:xo(e-h)<Fo?r:p}:xo(i-p)<Fo&&f-n>Fo?{x:xo(r-p)<Fo?e:f,y:p}:xo(n-f)<Fo&&i-d>Fo?{x:f,y:xo(e-f)<Fo?r:d}:xo(i-d)<Fo&&n-h>Fo?{x:xo(r-d)<Fo?e:h,y:d}:null),a.site,null)),++l)}function Yr(t,e){return e.angle-t.angle}function Wr(){an(this),this.x=this.y=this.arc=this.site=this.cy=null}function Xr(t){var e=t.P,r=t.N;if(e&&r){var n=e.site,i=t.site,a=r.site;if(n!==a){var o=i.x,s=i.y,l=n.x-o,u=n.y-s,c=a.x-o,h=a.y-s,f=2*(l*h-u*c);if(!(f>=-jo)){var d=l*l+u*u,p=c*c+h*h,m=(h*d-u*p)/f,v=(l*p-c*d)/f,h=v+s,g=ll.pop()||new Wr;g.arc=t,g.site=i,g.x=m+o,g.y=h+Math.sqrt(m*m+v*v),g.cy=h,t.circle=g;for(var y=null,b=ol._;b;)if(g.y<b.y||g.y===b.y&&g.x<=b.x){if(!b.L){y=b.P;break}b=b.L}else{if(!b.R){y=b;break}b=b.R}ol.insert(y,g),y||(al=g)}}}}function Zr(t){var e=t.circle;e&&(e.P||(al=e.N),ol.remove(e),ll.push(e),an(e),t.circle=null)}function Jr(t){for(var e,r=rl,n=qe(t[0][0],t[0][1],t[1][0],t[1][1]),i=r.length;i--;)e=r[i],(!Kr(e,t)||!n(e)||xo(e.a.x-e.b.x)<Fo&&xo(e.a.y-e.b.y)<Fo)&&(e.a=e.b=null,r.splice(i,1))}function Kr(t,e){var r=t.b;if(r)return!0;var n,i,a=t.a,o=e[0][0],s=e[1][0],l=e[0][1],u=e[1][1],c=t.l,h=t.r,f=c.x,d=c.y,p=h.x,m=h.y,v=(f+p)/2,g=(d+m)/2;if(m===d){if(v<o||v>=s)return;if(f>p){if(a){if(a.y>=u)return}else a={x:v,y:l};r={x:v,y:u}}else{if(a){if(a.y<l)return}else a={x:v,y:u};r={x:v,y:l}}}else if(n=(f-p)/(m-d),i=g-n*v,n<-1||n>1)if(f>p){if(a){if(a.y>=u)return}else a={x:(l-i)/n,y:l};r={x:(u-i)/n,y:u}}else{if(a){if(a.y<l)return}else a={x:(u-i)/n,y:u};r={x:(l-i)/n,y:l}}else if(d<m){if(a){if(a.x>=s)return}else a={x:o,y:n*o+i};r={\n", "x:s,y:n*s+i}}else{if(a){if(a.x<o)return}else a={x:s,y:n*s+i};r={x:o,y:n*o+i}}return t.a=a,t.b=r,!0}function Qr(t,e){this.l=t,this.r=e,this.a=this.b=null}function $r(t,e,r,n){var i=new Qr(t,e);return rl.push(i),r&&en(i,t,e,r),n&&en(i,e,t,n),nl[t.i].edges.push(new rn(i,t,e)),nl[e.i].edges.push(new rn(i,e,t)),i}function tn(t,e,r){var n=new Qr(t,null);return n.a=e,n.b=r,rl.push(n),n}function en(t,e,r,n){t.a||t.b?t.l===r?t.b=n:t.a=n:(t.a=n,t.l=e,t.r=r)}function rn(t,e,r){var n=t.a,i=t.b;this.edge=t,this.site=e,this.angle=r?Math.atan2(r.y-e.y,r.x-e.x):t.l===e?Math.atan2(i.x-n.x,n.y-i.y):Math.atan2(n.x-i.x,i.y-n.y)}function nn(){this._=null}function an(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function on(t,e){var r=e,n=e.R,i=r.U;i?i.L===r?i.L=n:i.R=n:t._=n,n.U=i,r.U=n,r.R=n.L,r.R&&(r.R.U=r),n.L=r}function sn(t,e){var r=e,n=e.L,i=r.U;i?i.L===r?i.L=n:i.R=n:t._=n,n.U=i,r.U=n,r.L=n.R,r.L&&(r.L.U=r),n.R=r}function ln(t){for(;t.L;)t=t.L;return t}function un(t,e){var r,n,i,a=t.sort(cn).pop();for(rl=[],nl=new Array(t.length),il=new nn,ol=new nn;;)if(i=al,a&&(!i||a.y<i.y||a.y===i.y&&a.x<i.x))a.x===r&&a.y===n||(nl[a.i]=new qr(a),Ur(a),r=a.x,n=a.y),a=t.pop();else{if(!i)break;Br(i.arc)}e&&(Jr(e),Gr(e));var o={cells:nl,edges:rl};return il=ol=rl=nl=null,o}function cn(t,e){return e.y-t.y||e.x-t.x}function hn(t,e,r){return(t.x-r.x)*(e.y-t.y)-(t.x-e.x)*(r.y-t.y)}function fn(t){return t.x}function dn(t){return t.y}function pn(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function mn(t,e,r,n,i,a){if(!t(e,r,n,i,a)){var o=.5*(r+i),s=.5*(n+a),l=e.nodes;l[0]&&mn(t,l[0],r,n,o,s),l[1]&&mn(t,l[1],o,n,i,s),l[2]&&mn(t,l[2],r,s,o,a),l[3]&&mn(t,l[3],o,s,i,a)}}function vn(t,e,r,n,i,a,o){var s,l=1/0;return function t(u,c,h,f,d){if(!(c>a||h>o||f<n||d<i)){if(p=u.point){var p,m=e-u.x,v=r-u.y,g=m*m+v*v;if(g<l){var y=Math.sqrt(l=g);n=e-y,i=r-y,a=e+y,o=r+y,s=p}}for(var b=u.nodes,x=.5*(c+f),_=.5*(h+d),w=e>=x,M=r>=_,k=M<<1|w,A=k+4;k<A;++k)if(u=b[3&k])switch(3&k){case 0:t(u,c,h,x,_);break;case 1:t(u,x,h,f,_);break;case 2:t(u,c,_,x,d);break;case 3:t(u,x,_,f,d)}}}(t,n,i,a,o),s}function gn(t,e){t=uo.rgb(t),e=uo.rgb(e);var r=t.r,n=t.g,i=t.b,a=e.r-r,o=e.g-n,s=e.b-i;return function(t){return\"#\"+wt(Math.round(r+a*t))+wt(Math.round(n+o*t))+wt(Math.round(i+s*t))}}function yn(t,e){var r,n={},i={};for(r in t)r in e?n[r]=_n(t[r],e[r]):i[r]=t[r];for(r in e)r in t||(i[r]=e[r]);return function(t){for(r in n)i[r]=n[r](t);return i}}function bn(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}function xn(t,e){var r,n,i,a=cl.lastIndex=hl.lastIndex=0,o=-1,s=[],l=[];for(t+=\"\",e+=\"\";(r=cl.exec(t))&&(n=hl.exec(e));)(i=n.index)>a&&(i=e.slice(a,i),s[o]?s[o]+=i:s[++o]=i),(r=r[0])===(n=n[0])?s[o]?s[o]+=n:s[++o]=n:(s[++o]=null,l.push({i:o,x:bn(r,n)})),a=hl.lastIndex;return a<e.length&&(i=e.slice(a),s[o]?s[o]+=i:s[++o]=i),s.length<2?l[0]?(e=l[0].x,function(t){return e(t)+\"\"}):function(){return e}:(e=l.length,function(t){for(var r,n=0;n<e;++n)s[(r=l[n]).i]=r.x(t);return s.join(\"\")})}function _n(t,e){for(var r,n=uo.interpolators.length;--n>=0&&!(r=uo.interpolators[n](t,e)););return r}function wn(t,e){var r,n=[],i=[],a=t.length,o=e.length,s=Math.min(t.length,e.length);for(r=0;r<s;++r)n.push(_n(t[r],e[r]));for(;r<a;++r)i[r]=t[r];for(;r<o;++r)i[r]=e[r];return function(t){for(r=0;r<s;++r)i[r]=n[r](t);return i}}function Mn(t){return function(e){return e<=0?0:e>=1?1:t(e)}}function kn(t){return function(e){return 1-t(1-e)}}function An(t){return function(e){return.5*(e<.5?t(2*e):2-t(2-2*e))}}function Tn(t){return t*t}function Sn(t){return t*t*t}function En(t){if(t<=0)return 0;if(t>=1)return 1;var e=t*t,r=e*t;return 4*(t<.5?r:3*(t-e)+r-.75)}function Ln(t){return function(e){return Math.pow(e,t)}}function Cn(t){return 1-Math.cos(t*Vo)}function In(t){return Math.pow(2,10*(t-1))}function zn(t){return 1-Math.sqrt(1-t*t)}function Dn(t,e){var r;return arguments.length<2&&(e=.45),arguments.length?r=e/Bo*Math.asin(1/t):(t=1,r=e/4),function(n){return 1+t*Math.pow(2,-10*n)*Math.sin((n-r)*Bo/e)}}function Pn(t){return t||(t=1.70158),function(e){return e*e*((t+1)*e-t)}}function On(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}function Rn(t,e){t=uo.hcl(t),e=uo.hcl(e);var r=t.h,n=t.c,i=t.l,a=e.h-r,o=e.c-n,s=e.l-i;return isNaN(o)&&(o=0,n=isNaN(n)?e.c:n),isNaN(a)?(a=0,r=isNaN(r)?e.h:r):a>180?a-=360:a<-180&&(a+=360),function(t){return ft(r+a*t,n+o*t,i+s*t)+\"\"}}function Fn(t,e){t=uo.hsl(t),e=uo.hsl(e);var r=t.h,n=t.s,i=t.l,a=e.h-r,o=e.s-n,s=e.l-i;return isNaN(o)&&(o=0,n=isNaN(n)?e.s:n),isNaN(a)?(a=0,r=isNaN(r)?e.h:r):a>180?a-=360:a<-180&&(a+=360),function(t){return ct(r+a*t,n+o*t,i+s*t)+\"\"}}function jn(t,e){t=uo.lab(t),e=uo.lab(e);var r=t.l,n=t.a,i=t.b,a=e.l-r,o=e.a-n,s=e.b-i;return function(t){return pt(r+a*t,n+o*t,i+s*t)+\"\"}}function Nn(t,e){return e-=t,function(r){return Math.round(t+e*r)}}function Bn(t){var e=[t.a,t.b],r=[t.c,t.d],n=Vn(e),i=Un(e,r),a=Vn(Hn(r,e,-i))||0;e[0]*r[1]<r[0]*e[1]&&(e[0]*=-1,e[1]*=-1,n*=-1,i*=-1),this.rotate=(n?Math.atan2(e[1],e[0]):Math.atan2(-r[0],r[1]))*qo,this.translate=[t.e,t.f],this.scale=[n,a],this.skew=a?Math.atan2(i,a)*qo:0}function Un(t,e){return t[0]*e[0]+t[1]*e[1]}function Vn(t){var e=Math.sqrt(Un(t,t));return e&&(t[0]/=e,t[1]/=e),e}function Hn(t,e,r){return t[0]+=r*e[0],t[1]+=r*e[1],t}function qn(t){return t.length?t.pop()+\",\":\"\"}function Gn(t,e,r,n){if(t[0]!==e[0]||t[1]!==e[1]){var i=r.push(\"translate(\",null,\",\",null,\")\");n.push({i:i-4,x:bn(t[0],e[0])},{i:i-2,x:bn(t[1],e[1])})}else(e[0]||e[1])&&r.push(\"translate(\"+e+\")\")}function Yn(t,e,r,n){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),n.push({i:r.push(qn(r)+\"rotate(\",null,\")\")-2,x:bn(t,e)})):e&&r.push(qn(r)+\"rotate(\"+e+\")\")}function Wn(t,e,r,n){t!==e?n.push({i:r.push(qn(r)+\"skewX(\",null,\")\")-2,x:bn(t,e)}):e&&r.push(qn(r)+\"skewX(\"+e+\")\")}function Xn(t,e,r,n){if(t[0]!==e[0]||t[1]!==e[1]){var i=r.push(qn(r)+\"scale(\",null,\",\",null,\")\");n.push({i:i-4,x:bn(t[0],e[0])},{i:i-2,x:bn(t[1],e[1])})}else 1===e[0]&&1===e[1]||r.push(qn(r)+\"scale(\"+e+\")\")}function Zn(t,e){var r=[],n=[];return t=uo.transform(t),e=uo.transform(e),Gn(t.translate,e.translate,r,n),Yn(t.rotate,e.rotate,r,n),Wn(t.skew,e.skew,r,n),Xn(t.scale,e.scale,r,n),t=e=null,function(t){for(var e,i=-1,a=n.length;++i<a;)r[(e=n[i]).i]=e.x(t);return r.join(\"\")}}function Jn(t,e){return e=(e-=t=+t)||1/e,function(r){return(r-t)/e}}function Kn(t,e){return e=(e-=t=+t)||1/e,function(r){return Math.max(0,Math.min(1,(r-t)/e))}}function Qn(t){for(var e=t.source,r=t.target,n=ti(e,r),i=[e];e!==n;)e=e.parent,i.push(e);for(var a=i.length;r!==n;)i.splice(a,0,r),r=r.parent;return i}function $n(t){for(var e=[],r=t.parent;null!=r;)e.push(t),t=r,r=r.parent;return e.push(t),e}function ti(t,e){if(t===e)return t;for(var r=$n(t),n=$n(e),i=r.pop(),a=n.pop(),o=null;i===a;)o=i,i=r.pop(),a=n.pop();return o}function ei(t){t.fixed|=2}function ri(t){t.fixed&=-7}function ni(t){t.fixed|=4,t.px=t.x,t.py=t.y}function ii(t){t.fixed&=-5}function ai(t,e,r){var n=0,i=0;if(t.charge=0,!t.leaf)for(var a,o=t.nodes,s=o.length,l=-1;++l<s;)null!=(a=o[l])&&(ai(a,e,r),t.charge+=a.charge,n+=a.charge*a.cx,i+=a.charge*a.cy);if(t.point){t.leaf||(t.point.x+=Math.random()-.5,t.point.y+=Math.random()-.5);var u=e*r[t.point.index];t.charge+=t.pointCharge=u,n+=u*t.point.x,i+=u*t.point.y}t.cx=n/t.charge,t.cy=i/t.charge}function oi(t,e){return uo.rebind(t,e,\"sort\",\"children\",\"value\"),t.nodes=t,t.links=fi,t}function si(t,e){for(var r=[t];null!=(t=r.pop());)if(e(t),(i=t.children)&&(n=i.length))for(var n,i;--n>=0;)r.push(i[n])}function li(t,e){for(var r=[t],n=[];null!=(t=r.pop());)if(n.push(t),(a=t.children)&&(i=a.length))for(var i,a,o=-1;++o<i;)r.push(a[o]);for(;null!=(t=n.pop());)e(t)}function ui(t){return t.children}function ci(t){return t.value}function hi(t,e){return e.value-t.value}function fi(t){return uo.merge(t.map(function(t){return(t.children||[]).map(function(e){return{source:t,target:e}})}))}function di(t){return t.x}function pi(t){return t.y}function mi(t,e,r){t.y0=e,t.y=r}function vi(t){return uo.range(t.length)}function gi(t){for(var e=-1,r=t[0].length,n=[];++e<r;)n[e]=0;return n}function yi(t){for(var e,r=1,n=0,i=t[0][1],a=t.length;r<a;++r)(e=t[r][1])>i&&(n=r,i=e);return n}function bi(t){return t.reduce(xi,0)}function xi(t,e){return t+e[1]}function _i(t,e){return wi(t,Math.ceil(Math.log(e.length)/Math.LN2+1))}function wi(t,e){for(var r=-1,n=+t[0],i=(t[1]-n)/e,a=[];++r<=e;)a[r]=i*r+n;return a}function Mi(t){return[uo.min(t),uo.max(t)]}function ki(t,e){return t.value-e.value}function Ai(t,e){var r=t._pack_next;t._pack_next=e,e._pack_prev=t,e._pack_next=r,r._pack_prev=e}function Ti(t,e){t._pack_next=e,e._pack_prev=t}function Si(t,e){var r=e.x-t.x,n=e.y-t.y,i=t.r+e.r;return.999*i*i>r*r+n*n}function Ei(t){function e(t){c=Math.min(t.x-t.r,c),h=Math.max(t.x+t.r,h),f=Math.min(t.y-t.r,f),d=Math.max(t.y+t.r,d)}if((r=t.children)&&(u=r.length)){var r,n,i,a,o,s,l,u,c=1/0,h=-1/0,f=1/0,d=-1/0;if(r.forEach(Li),n=r[0],n.x=-n.r,n.y=0,e(n),u>1&&(i=r[1],i.x=i.r,i.y=0,e(i),u>2))for(a=r[2],zi(n,i,a),e(a),Ai(n,a),n._pack_prev=a,Ai(a,i),i=n._pack_next,o=3;o<u;o++){zi(n,i,a=r[o]);var p=0,m=1,v=1;for(s=i._pack_next;s!==i;s=s._pack_next,m++)if(Si(s,a)){p=1;break}if(1==p)for(l=n._pack_prev;l!==s._pack_prev&&!Si(l,a);l=l._pack_prev,v++);p?(m<v||m==v&&i.r<n.r?Ti(n,i=s):Ti(n=l,i),o--):(Ai(n,a),i=a,e(a))}var g=(c+h)/2,y=(f+d)/2,b=0;for(o=0;o<u;o++)a=r[o],a.x-=g,a.y-=y,b=Math.max(b,a.r+Math.sqrt(a.x*a.x+a.y*a.y));t.r=b,r.forEach(Ci)}}function Li(t){t._pack_next=t._pack_prev=t}function Ci(t){delete t._pack_next,delete t._pack_prev}function Ii(t,e,r,n){var i=t.children;if(t.x=e+=n*t.x,t.y=r+=n*t.y,t.r*=n,i)for(var a=-1,o=i.length;++a<o;)Ii(i[a],e,r,n)}function zi(t,e,r){var n=t.r+r.r,i=e.x-t.x,a=e.y-t.y;if(n&&(i||a)){var o=e.r+r.r,s=i*i+a*a;o*=o,n*=n;var l=.5+(n-o)/(2*s),u=Math.sqrt(Math.max(0,2*o*(n+s)-(n-=s)*n-o*o))/(2*s);r.x=t.x+l*i+u*a,r.y=t.y+l*a-u*i}else r.x=t.x+n,r.y=t.y}function Di(t,e){return t.parent==e.parent?1:2}function Pi(t){var e=t.children;return e.length?e[0]:t.t}function Oi(t){var e,r=t.children;return(e=r.length)?r[e-1]:t.t}function Ri(t,e,r){var n=r/(e.i-t.i);e.c-=n,e.s+=r,t.c+=n,e.z+=r,e.m+=r}function Fi(t){for(var e,r=0,n=0,i=t.children,a=i.length;--a>=0;)e=i[a],e.z+=r,e.m+=r,r+=e.s+(n+=e.c)}function ji(t,e,r){return t.a.parent===e.parent?t.a:r}function Ni(t){return 1+uo.max(t,function(t){return t.y})}function Bi(t){return t.reduce(function(t,e){return t+e.x},0)/t.length}function Ui(t){var e=t.children;return e&&e.length?Ui(e[0]):t}function Vi(t){var e,r=t.children;return r&&(e=r.length)?Vi(r[e-1]):t}function Hi(t){return{x:t.x,y:t.y,dx:t.dx,dy:t.dy}}function qi(t,e){var r=t.x+e[3],n=t.y+e[0],i=t.dx-e[1]-e[3],a=t.dy-e[0]-e[2];return i<0&&(r+=i/2,i=0),a<0&&(n+=a/2,a=0),{x:r,y:n,dx:i,dy:a}}function Gi(t){var e=t[0],r=t[t.length-1];return e<r?[e,r]:[r,e]}function Yi(t){return t.rangeExtent?t.rangeExtent():Gi(t.range())}function Wi(t,e,r,n){var i=r(t[0],t[1]),a=n(e[0],e[1]);return function(t){return a(i(t))}}function Xi(t,e){var r,n=0,i=t.length-1,a=t[n],o=t[i];return o<a&&(r=n,n=i,i=r,r=a,a=o,o=r),t[n]=e.floor(a),t[i]=e.ceil(o),t}function Zi(t){return t?{floor:function(e){return Math.floor(e/t)*t},ceil:function(e){return Math.ceil(e/t)*t}}:wl}function Ji(t,e,r,n){var i=[],a=[],o=0,s=Math.min(t.length,e.length)-1;for(t[s]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++o<=s;)i.push(r(t[o-1],t[o])),a.push(n(e[o-1],e[o]));return function(e){var r=uo.bisect(t,e,1,s)-1;return a[r](i[r](e))}}function Ki(t,e,r,n){function i(){var i=Math.min(t.length,e.length)>2?Ji:Wi,l=n?Kn:Jn;return o=i(t,e,l,r),s=i(e,t,l,_n),a}function a(t){return o(t)}var o,s;return a.invert=function(t){return s(t)},a.domain=function(e){return arguments.length?(t=e.map(Number),i()):t},a.range=function(t){return arguments.length?(e=t,i()):e},a.rangeRound=function(t){return a.range(t).interpolate(Nn)},a.clamp=function(t){return arguments.length?(n=t,i()):n},a.interpolate=function(t){return arguments.length?(r=t,i()):r},a.ticks=function(e){return ea(t,e)},a.tickFormat=function(e,r){return ra(t,e,r)},a.nice=function(e){return $i(t,e),i()},a.copy=function(){return Ki(t,e,r,n)},i()}function Qi(t,e){return uo.rebind(t,e,\"range\",\"rangeRound\",\"interpolate\",\"clamp\")}function $i(t,e){return Xi(t,Zi(ta(t,e)[2])),Xi(t,Zi(ta(t,e)[2])),t}function ta(t,e){null==e&&(e=10);var r=Gi(t),n=r[1]-r[0],i=Math.pow(10,Math.floor(Math.log(n/e)/Math.LN10)),a=e/n*i;return a<=.15?i*=10:a<=.35?i*=5:a<=.75&&(i*=2),r[0]=Math.ceil(r[0]/i)*i,r[1]=Math.floor(r[1]/i)*i+.5*i,r[2]=i,r}function ea(t,e){return uo.range.apply(uo,ta(t,e))}function ra(t,e,r){var n=ta(t,e);if(r){var i=cs.exec(r);if(i.shift(),\"s\"===i[8]){var a=uo.formatPrefix(Math.max(xo(n[0]),xo(n[1])));return i[7]||(i[7]=\".\"+na(a.scale(n[2]))),i[8]=\"f\",r=uo.format(i.join(\"\")),function(t){return r(a.scale(t))+a.symbol}}i[7]||(i[7]=\".\"+ia(i[8],n)),r=i.join(\"\")}else r=\",.\"+na(n[2])+\"f\";return uo.format(r)}function na(t){return-Math.floor(Math.log(t)/Math.LN10+.01)}function ia(t,e){var r=na(e[2]);return t in Ml?Math.abs(r-na(Math.max(xo(e[0]),xo(e[1]))))+ +(\"e\"!==t):r-2*(\"%\"===t)}function aa(t,e,r,n){function i(t){return(r?Math.log(t<0?0:t):-Math.log(t>0?0:-t))/Math.log(e)}function a(t){return r?Math.pow(e,t):-Math.pow(e,-t)}function o(e){return t(i(e))}return o.invert=function(e){return a(t.invert(e))},o.domain=function(e){return arguments.length?(r=e[0]>=0,t.domain((n=e.map(Number)).map(i)),o):n},o.base=function(r){return arguments.length?(e=+r,t.domain(n.map(i)),o):e},o.nice=function(){var e=Xi(n.map(i),r?Math:Al);return t.domain(e),n=e.map(a),o},o.ticks=function(){var t=Gi(n),o=[],s=t[0],l=t[1],u=Math.floor(i(s)),c=Math.ceil(i(l)),h=e%1?2:e;if(isFinite(c-u)){if(r){for(;u<c;u++)for(var f=1;f<h;f++)o.push(a(u)*f);o.push(a(u))}else for(o.push(a(u));u++<c;)for(var f=h-1;f>0;f--)o.push(a(u)*f);for(u=0;o[u]<s;u++);for(c=o.length;o[c-1]>l;c--);o=o.slice(u,c)}return o},o.tickFormat=function(t,r){if(!arguments.length)return kl;arguments.length<2?r=kl:\"function\"!=typeof r&&(r=uo.format(r));var n=Math.max(1,e*t/o.ticks().length);return function(t){var o=t/a(Math.round(i(t)));return o*e<e-.5&&(o*=e),o<=n?r(t):\"\"}},o.copy=function(){return aa(t.copy(),e,r,n)},Qi(o,t)}function oa(t,e,r){function n(e){return t(i(e))}var i=sa(e),a=sa(1/e);return n.invert=function(e){return a(t.invert(e))},n.domain=function(e){return arguments.length?(t.domain((r=e.map(Number)).map(i)),n):r},n.ticks=function(t){return ea(r,t)},n.tickFormat=function(t,e){return ra(r,t,e)},n.nice=function(t){return n.domain($i(r,t))},n.exponent=function(o){return arguments.length?(i=sa(e=o),a=sa(1/e),t.domain(r.map(i)),n):e},n.copy=function(){return oa(t.copy(),e,r)},Qi(n,t)}function sa(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function la(t,e){function r(r){return a[((i.get(r)||(\"range\"===e.t?i.set(r,t.push(r)):NaN))-1)%a.length]}function n(e,r){return uo.range(t.length).map(function(t){return e+r*t})}var i,a,o;return r.domain=function(n){if(!arguments.length)return t;t=[],i=new h;for(var a,o=-1,s=n.length;++o<s;)i.has(a=n[o])||i.set(a,t.push(a));return r[e.t].apply(r,e.a)},r.range=function(t){return arguments.length?(a=t,o=0,e={t:\"range\",a:arguments},r):a},r.rangePoints=function(i,s){arguments.length<2&&(s=0);var l=i[0],u=i[1],c=t.length<2?(l=(l+u)/2,0):(u-l)/(t.length-1+s);return a=n(l+c*s/2,c),o=0,e={t:\"rangePoints\",a:arguments},r},r.rangeRoundPoints=function(i,s){arguments.length<2&&(s=0);var l=i[0],u=i[1],c=t.length<2?(l=u=Math.round((l+u)/2),0):(u-l)/(t.length-1+s)|0;return a=n(l+Math.round(c*s/2+(u-l-(t.length-1+s)*c)/2),c),o=0,e={t:\"rangeRoundPoints\",a:arguments},r},r.rangeBands=function(i,s,l){arguments.length<2&&(s=0),arguments.length<3&&(l=s);var u=i[1]<i[0],c=i[u-0],h=i[1-u],f=(h-c)/(t.length-s+2*l);return a=n(c+f*l,f),u&&a.reverse(),o=f*(1-s),e={t:\"rangeBands\",a:arguments},r},r.rangeRoundBands=function(i,s,l){arguments.length<2&&(s=0),arguments.length<3&&(l=s);var u=i[1]<i[0],c=i[u-0],h=i[1-u],f=Math.floor((h-c)/(t.length-s+2*l));return a=n(c+Math.round((h-c-(t.length-s)*f)/2),f),u&&a.reverse(),o=Math.round(f*(1-s)),e={t:\"rangeRoundBands\",a:arguments},r},r.rangeBand=function(){return o},r.rangeExtent=function(){return Gi(e.a[0])},r.copy=function(){return la(t,e)},r.domain(t)}function ua(t,e){function r(){var r=0,i=e.length;for(s=[];++r<i;)s[r-1]=uo.quantile(t,r/i);return n}function n(t){if(!isNaN(t=+t))return e[uo.bisect(s,t)]}var s;return n.domain=function(e){return arguments.length?(t=e.map(a).filter(o).sort(i),r()):t},n.range=function(t){return arguments.length?(e=t,r()):e},n.quantiles=function(){return s},n.invertExtent=function(r){return r=e.indexOf(r),r<0?[NaN,NaN]:[r>0?s[r-1]:t[0],r<s.length?s[r]:t[t.length-1]]},n.copy=function(){return ua(t,e)},r()}function ca(t,e,r){function n(e){return r[Math.max(0,Math.min(o,Math.floor(a*(e-t))))]}function i(){return a=r.length/(e-t),o=r.length-1,n}var a,o;return n.domain=function(r){return arguments.length?(t=+r[0],e=+r[r.length-1],i()):[t,e]},n.range=function(t){return arguments.length?(r=t,i()):r},n.invertExtent=function(e){return e=r.indexOf(e),e=e<0?NaN:e/a+t,[e,e+1/a]},n.copy=function(){return ca(t,e,r)},i()}function ha(t,e){function r(r){if(r<=r)return e[uo.bisect(t,r)]}return r.domain=function(e){return arguments.length?(t=e,r):t},r.range=function(t){return arguments.length?(e=t,r):e},r.invertExtent=function(r){return r=e.indexOf(r),[t[r-1],t[r]]},r.copy=function(){return ha(t,e)},r}function fa(t){function e(t){return+t}return e.invert=e,e.domain=e.range=function(r){return arguments.length?(t=r.map(e),e):t},e.ticks=function(e){return ea(t,e)},e.tickFormat=function(e,r){return ra(t,e,r)},e.copy=function(){return fa(t)},e}function da(){return 0}function pa(t){return t.innerRadius}function ma(t){return t.outerRadius}function va(t){return t.startAngle}function ga(t){return t.endAngle}function ya(t){return t&&t.padAngle}function ba(t,e,r,n){return(t-r)*e-(e-n)*t>0?0:1}function xa(t,e,r,n,i){var a=t[0]-e[0],o=t[1]-e[1],s=(i?n:-n)/Math.sqrt(a*a+o*o),l=s*o,u=-s*a,c=t[0]+l,h=t[1]+u,f=e[0]+l,d=e[1]+u,p=(c+f)/2,m=(h+d)/2,v=f-c,g=d-h,y=v*v+g*g,b=r-n,x=c*d-f*h,_=(g<0?-1:1)*Math.sqrt(Math.max(0,b*b*y-x*x)),w=(x*g-v*_)/y,M=(-x*v-g*_)/y,k=(x*g+v*_)/y,A=(-x*v+g*_)/y,T=w-p,S=M-m,E=k-p,L=A-m;return T*T+S*S>E*E+L*L&&(w=k,M=A),[[w-l,M-u],[w*r/b,M*r/b]]}function _a(t){function e(e){function o(){u.push(\"M\",a(t(c),s))}for(var l,u=[],c=[],h=-1,f=e.length,d=Et(r),p=Et(n);++h<f;)i.call(this,l=e[h],h)?c.push([+d.call(this,l,h),+p.call(this,l,h)]):c.length&&(o(),c=[]);return c.length&&o(),u.length?u.join(\"\"):null}var r=Cr,n=Ir,i=Ie,a=wa,o=a.key,s=.7;return e.x=function(t){return arguments.length?(r=t,e):r},e.y=function(t){return arguments.length?(n=t,e):n},e.defined=function(t){return arguments.length?(i=t,e):i},e.interpolate=function(t){return arguments.length?(o=\"function\"==typeof t?a=t:(a=Il.get(t)||wa).key,e):o},e.tension=function(t){return arguments.length?(s=t,e):s},e}function wa(t){return t.length>1?t.join(\"L\"):t+\"Z\"}function Ma(t){return t.join(\"L\")+\"Z\"}function ka(t){for(var e=0,r=t.length,n=t[0],i=[n[0],\",\",n[1]];++e<r;)i.push(\"H\",(n[0]+(n=t[e])[0])/2,\"V\",n[1]);return r>1&&i.push(\"H\",n[0]),i.join(\"\")}function Aa(t){for(var e=0,r=t.length,n=t[0],i=[n[0],\",\",n[1]];++e<r;)i.push(\"V\",(n=t[e])[1],\"H\",n[0]);return i.join(\"\")}function Ta(t){for(var e=0,r=t.length,n=t[0],i=[n[0],\",\",n[1]];++e<r;)i.push(\"H\",(n=t[e])[0],\"V\",n[1]);return i.join(\"\")}function Sa(t,e){return t.length<4?wa(t):t[1]+Ca(t.slice(1,-1),Ia(t,e))}function Ea(t,e){return t.length<3?Ma(t):t[0]+Ca((t.push(t[0]),t),Ia([t[t.length-2]].concat(t,[t[1]]),e))}function La(t,e){return t.length<3?wa(t):t[0]+Ca(t,Ia(t,e))}function Ca(t,e){if(e.length<1||t.length!=e.length&&t.length!=e.length+2)return wa(t);var r=t.length!=e.length,n=\"\",i=t[0],a=t[1],o=e[0],s=o,l=1;if(r&&(n+=\"Q\"+(a[0]-2*o[0]/3)+\",\"+(a[1]-2*o[1]/3)+\",\"+a[0]+\",\"+a[1],i=t[1],l=2),e.length>1){s=e[1],a=t[l],l++,n+=\"C\"+(i[0]+o[0])+\",\"+(i[1]+o[1])+\",\"+(a[0]-s[0])+\",\"+(a[1]-s[1])+\",\"+a[0]+\",\"+a[1];for(var u=2;u<e.length;u++,l++)a=t[l],s=e[u],n+=\"S\"+(a[0]-s[0])+\",\"+(a[1]-s[1])+\",\"+a[0]+\",\"+a[1]}if(r){var c=t[l];n+=\"Q\"+(a[0]+2*s[0]/3)+\",\"+(a[1]+2*s[1]/3)+\",\"+c[0]+\",\"+c[1]}return n}function Ia(t,e){for(var r,n=[],i=(1-e)/2,a=t[0],o=t[1],s=1,l=t.length;++s<l;)r=a,a=o,o=t[s],n.push([i*(o[0]-r[0]),i*(o[1]-r[1])]);return n}function za(t){if(t.length<3)return wa(t);var e=1,r=t.length,n=t[0],i=n[0],a=n[1],o=[i,i,i,(n=t[1])[0]],s=[a,a,a,n[1]],l=[i,\",\",a,\"L\",Ra(Pl,o),\",\",Ra(Pl,s)];for(t.push(t[r-1]);++e<=r;)n=t[e],o.shift(),o.push(n[0]),s.shift(),s.push(n[1]),Fa(l,o,s);return t.pop(),l.push(\"L\",n),l.join(\"\")}function Da(t){if(t.length<4)return wa(t);for(var e,r=[],n=-1,i=t.length,a=[0],o=[0];++n<3;)e=t[n],a.push(e[0]),o.push(e[1]);for(r.push(Ra(Pl,a)+\",\"+Ra(Pl,o)),--n;++n<i;)e=t[n],a.shift(),a.push(e[0]),o.shift(),o.push(e[1]),Fa(r,a,o);return r.join(\"\")}function Pa(t){for(var e,r,n=-1,i=t.length,a=i+4,o=[],s=[];++n<4;)r=t[n%i],o.push(r[0]),s.push(r[1]);for(e=[Ra(Pl,o),\",\",Ra(Pl,s)],--n;++n<a;)r=t[n%i],o.shift(),o.push(r[0]),s.shift(),s.push(r[1]),Fa(e,o,s);return e.join(\"\")}function Oa(t,e){var r=t.length-1;if(r)for(var n,i,a=t[0][0],o=t[0][1],s=t[r][0]-a,l=t[r][1]-o,u=-1;++u<=r;)n=t[u],i=u/r,n[0]=e*n[0]+(1-e)*(a+i*s),n[1]=e*n[1]+(1-e)*(o+i*l);return za(t)}function Ra(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}function Fa(t,e,r){t.push(\"C\",Ra(zl,e),\",\",Ra(zl,r),\",\",Ra(Dl,e),\",\",Ra(Dl,r),\",\",Ra(Pl,e),\",\",Ra(Pl,r))}function ja(t,e){return(e[1]-t[1])/(e[0]-t[0])}function Na(t){for(var e=0,r=t.length-1,n=[],i=t[0],a=t[1],o=n[0]=ja(i,a);++e<r;)n[e]=(o+(o=ja(i=a,a=t[e+1])))/2;return n[e]=o,n}function Ba(t){for(var e,r,n,i,a=[],o=Na(t),s=-1,l=t.length-1;++s<l;)e=ja(t[s],t[s+1]),xo(e)<Fo?o[s]=o[s+1]=0:(r=o[s]/e,n=o[s+1]/e,(i=r*r+n*n)>9&&(i=3*e/Math.sqrt(i),o[s]=i*r,o[s+1]=i*n));for(s=-1;++s<=l;)i=(t[Math.min(l,s+1)][0]-t[Math.max(0,s-1)][0])/(6*(1+o[s]*o[s])),a.push([i||0,o[s]*i||0]);return a}function Ua(t){return t.length<3?wa(t):t[0]+Ca(t,Ba(t))}function Va(t){for(var e,r,n,i=-1,a=t.length;++i<a;)e=t[i],r=e[0],n=e[1]-Vo,e[0]=r*Math.cos(n),e[1]=r*Math.sin(n);return t}function Ha(t){function e(e){function l(){m.push(\"M\",s(t(g),h),c,u(t(v.reverse()),h),\"Z\")}for(var f,d,p,m=[],v=[],g=[],y=-1,b=e.length,x=Et(r),_=Et(i),w=r===n?function(){return d}:Et(n),M=i===a?function(){return p}:Et(a);++y<b;)o.call(this,f=e[y],y)?(v.push([d=+x.call(this,f,y),p=+_.call(this,f,y)]),g.push([+w.call(this,f,y),+M.call(this,f,y)])):v.length&&(l(),v=[],g=[]);return v.length&&l(),m.length?m.join(\"\"):null}var r=Cr,n=Cr,i=0,a=Ir,o=Ie,s=wa,l=s.key,u=s,c=\"L\",h=.7;return e.x=function(t){return arguments.length?(r=n=t,e):n},e.x0=function(t){return arguments.length?(r=t,e):r},e.x1=function(t){return arguments.length?(n=t,e):n},e.y=function(t){return arguments.length?(i=a=t,e):a},e.y0=function(t){return arguments.length?(i=t,e):i},e.y1=function(t){return arguments.length?(a=t,e):a},e.defined=function(t){return arguments.length?(o=t,e):o},e.interpolate=function(t){return arguments.length?(l=\"function\"==typeof t?s=t:(s=Il.get(t)||wa).key,u=s.reverse||s,c=s.closed?\"M\":\"L\",e):l},e.tension=function(t){return arguments.length?(h=t,e):h},e}function qa(t){return t.radius}function Ga(t){return[t.x,t.y]}function Ya(t){return function(){var e=t.apply(this,arguments),r=e[0],n=e[1]-Vo;return[r*Math.cos(n),r*Math.sin(n)]}}function Wa(){return 64}function Xa(){return\"circle\"}function Za(t){var e=Math.sqrt(t/No);return\"M0,\"+e+\"A\"+e+\",\"+e+\" 0 1,1 0,\"+-e+\"A\"+e+\",\"+e+\" 0 1,1 0,\"+e+\"Z\"}function Ja(t){return function(){var e,r,n;(e=this[t])&&(n=e[r=e.active])&&(n.timer.c=null,n.timer.t=NaN,--e.count?delete e[r]:delete this[t],e.active+=.5,n.event&&n.event.interrupt.call(this,this.__data__,n.index))}}function Ka(t,e,r){return Ao(t,Ul),t.namespace=e,t.id=r,t}function Qa(t,e,r,n){var i=t.id,a=t.namespace;return G(t,\"function\"==typeof r?function(t,o,s){t[a][i].tween.set(e,n(r.call(t,t.__data__,o,s)))}:(r=n(r),function(t){t[a][i].tween.set(e,r)}))}function $a(t){return null==t&&(t=\"\"),function(){this.textContent=t}}function to(t){return null==t?\"__transition__\":\"__transition_\"+t+\"__\"}function eo(t,e,r,n,i){function a(t){var e=m.delay;if(u.t=e+l,e<=t)return o(t-e);u.c=o}function o(r){var i=p.active,a=p[i];a&&(a.timer.c=null,a.timer.t=NaN,--p.count,delete p[i],a.event&&a.event.interrupt.call(t,t.__data__,a.index));for(var o in p)if(+o<n){var h=p[o];h.timer.c=null,h.timer.t=NaN,--p.count,delete p[o]}u.c=s,Dt(function(){return u.c&&s(r||1)&&(u.c=null,u.t=NaN),1},0,l),p.active=n,m.event&&m.event.start.call(t,t.__data__,e),d=[],m.tween.forEach(function(r,n){(n=n.call(t,t.__data__,e))&&d.push(n)}),f=m.ease,c=m.duration}function s(i){for(var a=i/c,o=f(a),s=d.length;s>0;)d[--s].call(t,o);if(a>=1)return m.event&&m.event.end.call(t,t.__data__,e),--p.count?delete p[n]:delete t[r],1}var l,u,c,f,d,p=t[r]||(t[r]={active:0,count:0}),m=p[n];m||(l=i.time,u=Dt(a,0,l),m=p[n]={tween:new h,time:l,timer:u,delay:i.delay,duration:i.duration,ease:i.ease,index:e},i=null,++p.count)}function ro(t,e,r){t.attr(\"transform\",function(t){var n=e(t);return\"translate(\"+(isFinite(n)?n:r(t))+\",0)\"})}function no(t,e,r){t.attr(\"transform\",function(t){var n=e(t);return\"translate(0,\"+(isFinite(n)?n:r(t))+\")\"})}function io(t){return t.toISOString()}function ao(t,e,r){function n(e){return t(e)}function i(t,r){var n=t[1]-t[0],i=n/r,a=uo.bisect(Jl,i);return a==Jl.length?[e.year,ta(t.map(function(t){return t/31536e6}),r)[2]]:a?e[i/Jl[a-1]<Jl[a]/i?a-1:a]:[$l,ta(t,r)[2]]}return n.invert=function(e){return oo(t.invert(e))},n.domain=function(e){return arguments.length?(t.domain(e),n):t.domain().map(oo)},n.nice=function(t,e){function r(r){return!isNaN(r)&&!t.range(r,oo(+r+1),e).length}var a=n.domain(),o=Gi(a),s=null==t?i(o,10):\"number\"==typeof t&&i(o,t);return s&&(t=s[0],e=s[1]),n.domain(Xi(a,e>1?{floor:function(e){for(;r(e=t.floor(e));)e=oo(e-1);return e},ceil:function(e){for(;r(e=t.ceil(e));)e=oo(+e+1);return e}}:t))},n.ticks=function(t,e){var r=Gi(n.domain()),a=null==t?i(r,10):\"number\"==typeof t?i(r,t):!t.range&&[{range:t},e];return a&&(t=a[0],e=a[1]),t.range(r[0],oo(+r[1]+1),e<1?1:e)},n.tickFormat=function(){return r},n.copy=function(){return ao(t.copy(),e,r)},Qi(n,t)}function oo(t){return new Date(t)}function so(t){return JSON.parse(t.responseText)}function lo(t){var e=fo.createRange();return e.selectNode(fo.body),e.createContextualFragment(t.responseText)}var uo={version:\"3.5.17\"},co=[].slice,ho=function(t){return co.call(t)},fo=this.document;if(fo)try{ho(fo.documentElement.childNodes)[0].nodeType}catch(t){ho=function(t){for(var e=t.length,r=new Array(e);e--;)r[e]=t[e];return r}}if(Date.now||(Date.now=function(){return+new Date}),fo)try{fo.createElement(\"DIV\").style.setProperty(\"opacity\",0,\"\")}catch(t){var po=this.Element.prototype,mo=po.setAttribute,vo=po.setAttributeNS,go=this.CSSStyleDeclaration.prototype,yo=go.setProperty;po.setAttribute=function(t,e){mo.call(this,t,e+\"\")},po.setAttributeNS=function(t,e,r){vo.call(this,t,e,r+\"\")},go.setProperty=function(t,e,r){yo.call(this,t,e+\"\",r)}}uo.ascending=i,uo.descending=function(t,e){return e<t?-1:e>t?1:e>=t?0:NaN},uo.min=function(t,e){var r,n,i=-1,a=t.length;if(1===arguments.length){for(;++i<a;)if(null!=(n=t[i])&&n>=n){r=n;break}for(;++i<a;)null!=(n=t[i])&&r>n&&(r=n)}else{for(;++i<a;)if(null!=(n=e.call(t,t[i],i))&&n>=n){r=n;break}for(;++i<a;)null!=(n=e.call(t,t[i],i))&&r>n&&(r=n)}return r},uo.max=function(t,e){var r,n,i=-1,a=t.length;if(1===arguments.length){for(;++i<a;)if(null!=(n=t[i])&&n>=n){r=n;break}for(;++i<a;)null!=(n=t[i])&&n>r&&(r=n)}else{for(;++i<a;)if(null!=(n=e.call(t,t[i],i))&&n>=n){r=n;break}for(;++i<a;)null!=(n=e.call(t,t[i],i))&&n>r&&(r=n)}return r},uo.extent=function(t,e){var r,n,i,a=-1,o=t.length;if(1===arguments.length){for(;++a<o;)if(null!=(n=t[a])&&n>=n){r=i=n;break}for(;++a<o;)null!=(n=t[a])&&(r>n&&(r=n),i<n&&(i=n))}else{for(;++a<o;)if(null!=(n=e.call(t,t[a],a))&&n>=n){r=i=n;break}for(;++a<o;)null!=(n=e.call(t,t[a],a))&&(r>n&&(r=n),i<n&&(i=n))}return[r,i]},uo.sum=function(t,e){var r,n=0,i=t.length,a=-1;if(1===arguments.length)for(;++a<i;)o(r=+t[a])&&(n+=r);else for(;++a<i;)o(r=+e.call(t,t[a],a))&&(n+=r);return n},uo.mean=function(t,e){var r,n=0,i=t.length,s=-1,l=i;if(1===arguments.length)for(;++s<i;)o(r=a(t[s]))?n+=r:--l;else for(;++s<i;)o(r=a(e.call(t,t[s],s)))?n+=r:--l;if(l)return n/l},uo.quantile=function(t,e){var r=(t.length-1)*e+1,n=Math.floor(r),i=+t[n-1],a=r-n;return a?i+a*(t[n]-i):i},uo.median=function(t,e){var r,n=[],s=t.length,l=-1;if(1===arguments.length)for(;++l<s;)o(r=a(t[l]))&&n.push(r);else for(;++l<s;)o(r=a(e.call(t,t[l],l)))&&n.push(r);if(n.length)return uo.quantile(n.sort(i),.5)},uo.variance=function(t,e){var r,n,i=t.length,s=0,l=0,u=-1,c=0;if(1===arguments.length)for(;++u<i;)o(r=a(t[u]))&&(n=r-s,s+=n/++c,l+=n*(r-s));else for(;++u<i;)o(r=a(e.call(t,t[u],u)))&&(n=r-s,s+=n/++c,l+=n*(r-s));if(c>1)return l/(c-1)},uo.deviation=function(){var t=uo.variance.apply(this,arguments);return t?Math.sqrt(t):t};var bo=s(i);uo.bisectLeft=bo.left,uo.bisect=uo.bisectRight=bo.right,uo.bisector=function(t){return s(1===t.length?function(e,r){return i(t(e),r)}:t)},uo.shuffle=function(t,e,r){(a=arguments.length)<3&&(r=t.length,a<2&&(e=0));for(var n,i,a=r-e;a;)i=Math.random()*a--|0,n=t[a+e],t[a+e]=t[i+e],t[i+e]=n;return t},uo.permute=function(t,e){for(var r=e.length,n=new Array(r);r--;)n[r]=t[e[r]];return n},uo.pairs=function(t){for(var e=0,r=t.length-1,n=t[0],i=new Array(r<0?0:r);e<r;)i[e]=[n,n=t[++e]];return i},uo.transpose=function(t){if(!(i=t.length))return[];for(var e=-1,r=uo.min(t,l),n=new Array(r);++e<r;)for(var i,a=-1,o=n[e]=new Array(i);++a<i;)o[a]=t[a][e];return n},uo.zip=function(){return uo.transpose(arguments)},uo.keys=function(t){var e=[];for(var r in t)e.push(r);return e},uo.values=function(t){var e=[];for(var r in t)e.push(t[r]);return e},uo.entries=function(t){var e=[];for(var r in t)e.push({key:r,value:t[r]});return e},uo.merge=function(t){for(var e,r,n,i=t.length,a=-1,o=0;++a<i;)o+=t[a].length;for(r=new Array(o);--i>=0;)for(n=t[i],e=n.length;--e>=0;)r[--o]=n[e];return r};var xo=Math.abs;uo.range=function(t,e,r){if(arguments.length<3&&(r=1,arguments.length<2&&(e=t,t=0)),(e-t)/r==1/0)throw new Error(\"infinite range\");var n,i=[],a=u(xo(r)),o=-1;if(t*=a,e*=a,r*=a,r<0)for(;(n=t+r*++o)>e;)i.push(n/a);else for(;(n=t+r*++o)<e;)i.push(n/a);return i},uo.map=function(t,e){var r=new h;if(t instanceof h)t.forEach(function(t,e){r.set(t,e)});else if(Array.isArray(t)){var n,i=-1,a=t.length;if(1===arguments.length)for(;++i<a;)r.set(i,t[i]);else for(;++i<a;)r.set(e.call(t,n=t[i],i),n)}else for(var o in t)r.set(o,t[o]);return r};var _o=\"__proto__\",wo=\"\\0\";c(h,{has:p,get:function(t){return this._[f(t)]},set:function(t,e){return this._[f(t)]=e},remove:m,keys:v,values:function(){var t=[];for(var e in this._)t.push(this._[e]);return t},entries:function(){var t=[];for(var e in this._)t.push({key:d(e),value:this._[e]});return t},size:g,empty:y,forEach:function(t){for(var e in this._)t.call(this,d(e),this._[e])}}),uo.nest=function(){function t(e,o,s){if(s>=a.length)return n?n.call(i,o):r?o.sort(r):o;for(var l,u,c,f,d=-1,p=o.length,m=a[s++],v=new h;++d<p;)(f=v.get(l=m(u=o[d])))?f.push(u):v.set(l,[u]);return e?(u=e(),c=function(r,n){u.set(r,t(e,n,s))}):(u={},c=function(r,n){u[r]=t(e,n,s)}),v.forEach(c),u}function e(t,r){if(r>=a.length)return t;var n=[],i=o[r++];return t.forEach(function(t,i){n.push({key:t,values:e(i,r)})}),i?n.sort(function(t,e){return i(t.key,e.key)}):n}var r,n,i={},a=[],o=[];return i.map=function(e,r){return t(r,e,0)},i.entries=function(r){return e(t(uo.map,r,0),0)},i.key=function(t){return a.push(t),i},i.sortKeys=function(t){return o[a.length-1]=t,i},i.sortValues=function(t){return r=t,i},i.rollup=function(t){return n=t,i},i},uo.set=function(t){var e=new b;if(t)for(var r=0,n=t.length;r<n;++r)e.add(t[r]);return e},c(b,{has:p,add:function(t){return this._[f(t+=\"\")]=!0,t},remove:m,values:v,size:g,empty:y,forEach:function(t){for(var e in this._)t.call(this,d(e))}}),uo.behavior={},uo.rebind=function(t,e){\n", "for(var r,n=1,i=arguments.length;++n<i;)t[r=arguments[n]]=_(t,e,e[r]);return t};var Mo=[\"webkit\",\"ms\",\"moz\",\"Moz\",\"o\",\"O\"];uo.dispatch=function(){for(var t=new k,e=-1,r=arguments.length;++e<r;)t[arguments[e]]=A(t);return t},k.prototype.on=function(t,e){var r=t.indexOf(\".\"),n=\"\";if(r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),t)return arguments.length<2?this[t].on(n):this[t].on(n,e);if(2===arguments.length){if(null==e)for(t in this)this.hasOwnProperty(t)&&this[t].on(n,null);return this}},uo.event=null,uo.requote=function(t){return t.replace(ko,\"\\\\$&\")};var ko=/[\\\\\\^\\$\\*\\+\\?\\|\\[\\]\\(\\)\\.\\{\\}]/g,Ao={}.__proto__?function(t,e){t.__proto__=e}:function(t,e){for(var r in e)t[r]=e[r]},To=function(t,e){return e.querySelector(t)},So=function(t,e){return e.querySelectorAll(t)},Eo=function(t,e){var r=t.matches||t[w(t,\"matchesSelector\")];return(Eo=function(t,e){return r.call(t,e)})(t,e)};\"function\"==typeof Sizzle&&(To=function(t,e){return Sizzle(t,e)[0]||null},So=Sizzle,Eo=Sizzle.matchesSelector),uo.selection=function(){return uo.select(fo.documentElement)};var Lo=uo.selection.prototype=[];Lo.select=function(t){var e,r,n,i,a=[];t=C(t);for(var o=-1,s=this.length;++o<s;){a.push(e=[]),e.parentNode=(n=this[o]).parentNode;for(var l=-1,u=n.length;++l<u;)(i=n[l])?(e.push(r=t.call(i,i.__data__,l,o)),r&&\"__data__\"in i&&(r.__data__=i.__data__)):e.push(null)}return L(a)},Lo.selectAll=function(t){var e,r,n=[];t=I(t);for(var i=-1,a=this.length;++i<a;)for(var o=this[i],s=-1,l=o.length;++s<l;)(r=o[s])&&(n.push(e=ho(t.call(r,r.__data__,s,i))),e.parentNode=r);return L(n)};var Co=\"http://www.w3.org/1999/xhtml\",Io={svg:\"http://www.w3.org/2000/svg\",xhtml:Co,xlink:\"http://www.w3.org/1999/xlink\",xml:\"http://www.w3.org/XML/1998/namespace\",xmlns:\"http://www.w3.org/2000/xmlns/\"};uo.ns={prefix:Io,qualify:function(t){var e=t.indexOf(\":\"),r=t;return e>=0&&\"xmlns\"!==(r=t.slice(0,e))&&(t=t.slice(e+1)),Io.hasOwnProperty(r)?{space:Io[r],local:t}:t}},Lo.attr=function(t,e){if(arguments.length<2){if(\"string\"==typeof t){var r=this.node();return t=uo.ns.qualify(t),t.local?r.getAttributeNS(t.space,t.local):r.getAttribute(t)}for(e in t)this.each(z(e,t[e]));return this}return this.each(z(t,e))},Lo.classed=function(t,e){if(arguments.length<2){if(\"string\"==typeof t){var r=this.node(),n=(t=O(t)).length,i=-1;if(e=r.classList){for(;++i<n;)if(!e.contains(t[i]))return!1}else for(e=r.getAttribute(\"class\");++i<n;)if(!P(t[i]).test(e))return!1;return!0}for(e in t)this.each(R(e,t[e]));return this}return this.each(R(t,e))},Lo.style=function(t,e,r){var i=arguments.length;if(i<3){if(\"string\"!=typeof t){i<2&&(e=\"\");for(r in t)this.each(j(r,t[r],e));return this}if(i<2){var a=this.node();return n(a).getComputedStyle(a,null).getPropertyValue(t)}r=\"\"}return this.each(j(t,e,r))},Lo.property=function(t,e){if(arguments.length<2){if(\"string\"==typeof t)return this.node()[t];for(e in t)this.each(N(e,t[e]));return this}return this.each(N(t,e))},Lo.text=function(t){return arguments.length?this.each(\"function\"==typeof t?function(){var e=t.apply(this,arguments);this.textContent=null==e?\"\":e}:null==t?function(){this.textContent=\"\"}:function(){this.textContent=t}):this.node().textContent},Lo.html=function(t){return arguments.length?this.each(\"function\"==typeof t?function(){var e=t.apply(this,arguments);this.innerHTML=null==e?\"\":e}:null==t?function(){this.innerHTML=\"\"}:function(){this.innerHTML=t}):this.node().innerHTML},Lo.append=function(t){return t=B(t),this.select(function(){return this.appendChild(t.apply(this,arguments))})},Lo.insert=function(t,e){return t=B(t),e=C(e),this.select(function(){return this.insertBefore(t.apply(this,arguments),e.apply(this,arguments)||null)})},Lo.remove=function(){return this.each(U)},Lo.data=function(t,e){function r(t,r){var n,i,a,o=t.length,c=r.length,f=Math.min(o,c),d=new Array(c),p=new Array(c),m=new Array(o);if(e){var v,g=new h,y=new Array(o);for(n=-1;++n<o;)(i=t[n])&&(g.has(v=e.call(i,i.__data__,n))?m[n]=i:g.set(v,i),y[n]=v);for(n=-1;++n<c;)(i=g.get(v=e.call(r,a=r[n],n)))?!0!==i&&(d[n]=i,i.__data__=a):p[n]=V(a),g.set(v,!0);for(n=-1;++n<o;)n in y&&!0!==g.get(y[n])&&(m[n]=t[n])}else{for(n=-1;++n<f;)i=t[n],a=r[n],i?(i.__data__=a,d[n]=i):p[n]=V(a);for(;n<c;++n)p[n]=V(r[n]);for(;n<o;++n)m[n]=t[n]}p.update=d,p.parentNode=d.parentNode=m.parentNode=t.parentNode,s.push(p),l.push(d),u.push(m)}var n,i,a=-1,o=this.length;if(!arguments.length){for(t=new Array(o=(n=this[0]).length);++a<o;)(i=n[a])&&(t[a]=i.__data__);return t}var s=Y([]),l=L([]),u=L([]);if(\"function\"==typeof t)for(;++a<o;)r(n=this[a],t.call(n,n.parentNode.__data__,a));else for(;++a<o;)r(n=this[a],t);return l.enter=function(){return s},l.exit=function(){return u},l},Lo.datum=function(t){return arguments.length?this.property(\"__data__\",t):this.property(\"__data__\")},Lo.filter=function(t){var e,r,n,i=[];\"function\"!=typeof t&&(t=H(t));for(var a=0,o=this.length;a<o;a++){i.push(e=[]),e.parentNode=(r=this[a]).parentNode;for(var s=0,l=r.length;s<l;s++)(n=r[s])&&t.call(n,n.__data__,s,a)&&e.push(n)}return L(i)},Lo.order=function(){for(var t=-1,e=this.length;++t<e;)for(var r,n=this[t],i=n.length-1,a=n[i];--i>=0;)(r=n[i])&&(a&&a!==r.nextSibling&&a.parentNode.insertBefore(r,a),a=r);return this},Lo.sort=function(t){t=q.apply(this,arguments);for(var e=-1,r=this.length;++e<r;)this[e].sort(t);return this.order()},Lo.each=function(t){return G(this,function(e,r,n){t.call(e,e.__data__,r,n)})},Lo.call=function(t){var e=ho(arguments);return t.apply(e[0]=this,e),this},Lo.empty=function(){return!this.node()},Lo.node=function(){for(var t=0,e=this.length;t<e;t++)for(var r=this[t],n=0,i=r.length;n<i;n++){var a=r[n];if(a)return a}return null},Lo.size=function(){var t=0;return G(this,function(){++t}),t};var zo=[];uo.selection.enter=Y,uo.selection.enter.prototype=zo,zo.append=Lo.append,zo.empty=Lo.empty,zo.node=Lo.node,zo.call=Lo.call,zo.size=Lo.size,zo.select=function(t){for(var e,r,n,i,a,o=[],s=-1,l=this.length;++s<l;){n=(i=this[s]).update,o.push(e=[]),e.parentNode=i.parentNode;for(var u=-1,c=i.length;++u<c;)(a=i[u])?(e.push(n[u]=r=t.call(i.parentNode,a.__data__,u,s)),r.__data__=a.__data__):e.push(null)}return L(o)},zo.insert=function(t,e){return arguments.length<2&&(e=W(this)),Lo.insert.call(this,t,e)},uo.select=function(t){var r;return\"string\"==typeof t?(r=[To(t,fo)],r.parentNode=fo.documentElement):(r=[t],r.parentNode=e(t)),L([r])},uo.selectAll=function(t){var e;return\"string\"==typeof t?(e=ho(So(t,fo)),e.parentNode=fo.documentElement):(e=ho(t),e.parentNode=null),L([e])},Lo.on=function(t,e,r){var n=arguments.length;if(n<3){if(\"string\"!=typeof t){n<2&&(e=!1);for(r in t)this.each(X(r,t[r],e));return this}if(n<2)return(n=this.node()[\"__on\"+t])&&n._;r=!1}return this.each(X(t,e,r))};var Do=uo.map({mouseenter:\"mouseover\",mouseleave:\"mouseout\"});fo&&Do.forEach(function(t){\"on\"+t in fo&&Do.remove(t)});var Po,Oo=0;uo.mouse=function(t){return Q(t,S())};var Ro=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;uo.touch=function(t,e,r){if(arguments.length<3&&(r=e,e=S().changedTouches),e)for(var n,i=0,a=e.length;i<a;++i)if((n=e[i]).identifier===r)return Q(t,n)},uo.behavior.drag=function(){function t(){this.on(\"mousedown.drag\",a).on(\"touchstart.drag\",o)}function e(t,e,n,a,o){return function(){function s(){var t,r,n=e(f,m);n&&(t=n[0]-b[0],r=n[1]-b[1],p|=t|r,b=n,d({type:\"drag\",x:n[0]+u[0],y:n[1]+u[1],dx:t,dy:r}))}function l(){e(f,m)&&(g.on(a+v,null).on(o+v,null),y(p),d({type:\"dragend\"}))}var u,c=this,h=uo.event.target.correspondingElement||uo.event.target,f=c.parentNode,d=r.of(c,arguments),p=0,m=t(),v=\".drag\"+(null==m?\"\":\"-\"+m),g=uo.select(n(h)).on(a+v,s).on(o+v,l),y=K(h),b=e(f,m);i?(u=i.apply(c,arguments),u=[u.x-b[0],u.y-b[1]]):u=[0,0],d({type:\"dragstart\"})}}var r=E(t,\"drag\",\"dragstart\",\"dragend\"),i=null,a=e(M,uo.mouse,n,\"mousemove\",\"mouseup\"),o=e($,uo.touch,x,\"touchmove\",\"touchend\");return t.origin=function(e){return arguments.length?(i=e,t):i},uo.rebind(t,r,\"on\")},uo.touches=function(t,e){return arguments.length<2&&(e=S().touches),e?ho(e).map(function(e){var r=Q(t,e);return r.identifier=e.identifier,r}):[]};var Fo=1e-6,jo=Fo*Fo,No=Math.PI,Bo=2*No,Uo=Bo-Fo,Vo=No/2,Ho=No/180,qo=180/No,Go=Math.SQRT2;uo.interpolateZoom=function(t,e){var r,n,i=t[0],a=t[1],o=t[2],s=e[0],l=e[1],u=e[2],c=s-i,h=l-a,f=c*c+h*h;if(f<jo)n=Math.log(u/o)/Go,r=function(t){return[i+t*c,a+t*h,o*Math.exp(Go*t*n)]};else{var d=Math.sqrt(f),p=(u*u-o*o+4*f)/(2*o*2*d),m=(u*u-o*o-4*f)/(2*u*2*d),v=Math.log(Math.sqrt(p*p+1)-p),g=Math.log(Math.sqrt(m*m+1)-m);n=(g-v)/Go,r=function(t){var e=t*n,r=at(v),s=o/(2*d)*(r*ot(Go*e+v)-it(v));return[i+s*c,a+s*h,o*r/at(Go*e+v)]}}return r.duration=1e3*n,r},uo.behavior.zoom=function(){function t(t){t.on(I,h).on(Wo+\".zoom\",d).on(\"dblclick.zoom\",p).on(P,f)}function e(t){return[(t[0]-k.x)/k.k,(t[1]-k.y)/k.k]}function r(t){return[t[0]*k.k+k.x,t[1]*k.k+k.y]}function i(t){k.k=Math.max(S[0],Math.min(S[1],t))}function a(t,e){e=r(e),k.x+=t[0]-e[0],k.y+=t[1]-e[1]}function o(e,r,n,o){e.__chart__={x:k.x,y:k.y,k:k.k},i(Math.pow(2,o)),a(v=r,n),e=uo.select(e),L>0&&(e=e.transition().duration(L)),e.call(t.event)}function s(){_&&_.domain(x.range().map(function(t){return(t-k.x)/k.k}).map(x.invert)),M&&M.domain(w.range().map(function(t){return(t-k.y)/k.k}).map(w.invert))}function l(t){C++||t({type:\"zoomstart\"})}function u(t){s(),t({type:\"zoom\",scale:k.k,translate:[k.x,k.y]})}function c(t){--C||(t({type:\"zoomend\"}),v=null)}function h(){function t(){s=1,a(uo.mouse(i),f),u(o)}function r(){h.on(z,null).on(D,null),d(s),c(o)}var i=this,o=O.of(i,arguments),s=0,h=uo.select(n(i)).on(z,t).on(D,r),f=e(uo.mouse(i)),d=K(i);Bl.call(i),l(o)}function f(){function t(){var t=uo.touches(p);return d=k.k,t.forEach(function(t){t.identifier in v&&(v[t.identifier]=e(t))}),t}function r(){var e=uo.event.target;uo.select(e).on(x,n).on(_,s),w.push(e);for(var r=uo.event.changedTouches,i=0,a=r.length;i<a;++i)v[r[i].identifier]=null;var l=t(),u=Date.now();if(1===l.length){if(u-b<500){var c=l[0];o(p,c,v[c.identifier],Math.floor(Math.log(k.k)/Math.LN2)+1),T()}b=u}else if(l.length>1){var c=l[0],h=l[1],f=c[0]-h[0],d=c[1]-h[1];g=f*f+d*d}}function n(){var t,e,r,n,o=uo.touches(p);Bl.call(p);for(var s=0,l=o.length;s<l;++s,n=null)if(r=o[s],n=v[r.identifier]){if(e)break;t=r,e=n}if(n){var c=(c=r[0]-t[0])*c+(c=r[1]-t[1])*c,h=g&&Math.sqrt(c/g);t=[(t[0]+r[0])/2,(t[1]+r[1])/2],e=[(e[0]+n[0])/2,(e[1]+n[1])/2],i(h*d)}b=null,a(t,e),u(m)}function s(){if(uo.event.touches.length){for(var e=uo.event.changedTouches,r=0,n=e.length;r<n;++r)delete v[e[r].identifier];for(var i in v)return void t()}uo.selectAll(w).on(y,null),M.on(I,h).on(P,f),A(),c(m)}var d,p=this,m=O.of(p,arguments),v={},g=0,y=\".zoom-\"+uo.event.changedTouches[0].identifier,x=\"touchmove\"+y,_=\"touchend\"+y,w=[],M=uo.select(p),A=K(p);r(),l(m),M.on(I,null).on(P,r)}function d(){var t=O.of(this,arguments);y?clearTimeout(y):(Bl.call(this),m=e(v=g||uo.mouse(this)),l(t)),y=setTimeout(function(){y=null,c(t)},50),T(),i(Math.pow(2,.002*Yo())*k.k),a(v,m),u(t)}function p(){var t=uo.mouse(this),r=Math.log(k.k)/Math.LN2;o(this,t,e(t),uo.event.shiftKey?Math.ceil(r)-1:Math.floor(r)+1)}var m,v,g,y,b,x,_,w,M,k={x:0,y:0,k:1},A=[960,500],S=Xo,L=250,C=0,I=\"mousedown.zoom\",z=\"mousemove.zoom\",D=\"mouseup.zoom\",P=\"touchstart.zoom\",O=E(t,\"zoomstart\",\"zoom\",\"zoomend\");return Wo||(Wo=\"onwheel\"in fo?(Yo=function(){return-uo.event.deltaY*(uo.event.deltaMode?120:1)},\"wheel\"):\"onmousewheel\"in fo?(Yo=function(){return uo.event.wheelDelta},\"mousewheel\"):(Yo=function(){return-uo.event.detail},\"MozMousePixelScroll\")),t.event=function(t){t.each(function(){var t=O.of(this,arguments),e=k;jl?uo.select(this).transition().each(\"start.zoom\",function(){k=this.__chart__||{x:0,y:0,k:1},l(t)}).tween(\"zoom:zoom\",function(){var r=A[0],n=A[1],i=v?v[0]:r/2,a=v?v[1]:n/2,o=uo.interpolateZoom([(i-k.x)/k.k,(a-k.y)/k.k,r/k.k],[(i-e.x)/e.k,(a-e.y)/e.k,r/e.k]);return function(e){var n=o(e),s=r/n[2];this.__chart__=k={x:i-n[0]*s,y:a-n[1]*s,k:s},u(t)}}).each(\"interrupt.zoom\",function(){c(t)}).each(\"end.zoom\",function(){c(t)}):(this.__chart__=k,l(t),u(t),c(t))})},t.translate=function(e){return arguments.length?(k={x:+e[0],y:+e[1],k:k.k},s(),t):[k.x,k.y]},t.scale=function(e){return arguments.length?(k={x:k.x,y:k.y,k:null},i(+e),s(),t):k.k},t.scaleExtent=function(e){return arguments.length?(S=null==e?Xo:[+e[0],+e[1]],t):S},t.center=function(e){return arguments.length?(g=e&&[+e[0],+e[1]],t):g},t.size=function(e){return arguments.length?(A=e&&[+e[0],+e[1]],t):A},t.duration=function(e){return arguments.length?(L=+e,t):L},t.x=function(e){return arguments.length?(_=e,x=e.copy(),k={x:0,y:0,k:1},t):_},t.y=function(e){return arguments.length?(M=e,w=e.copy(),k={x:0,y:0,k:1},t):M},uo.rebind(t,O,\"on\")};var Yo,Wo,Xo=[0,1/0];uo.color=lt,lt.prototype.toString=function(){return this.rgb()+\"\"},uo.hsl=ut;var Zo=ut.prototype=new lt;Zo.brighter=function(t){return t=Math.pow(.7,arguments.length?t:1),new ut(this.h,this.s,this.l/t)},Zo.darker=function(t){return t=Math.pow(.7,arguments.length?t:1),new ut(this.h,this.s,t*this.l)},Zo.rgb=function(){return ct(this.h,this.s,this.l)},uo.hcl=ht;var Jo=ht.prototype=new lt;Jo.brighter=function(t){return new ht(this.h,this.c,Math.min(100,this.l+Ko*(arguments.length?t:1)))},Jo.darker=function(t){return new ht(this.h,this.c,Math.max(0,this.l-Ko*(arguments.length?t:1)))},Jo.rgb=function(){return ft(this.h,this.c,this.l).rgb()},uo.lab=dt;var Ko=18,Qo=.95047,$o=1,ts=1.08883,es=dt.prototype=new lt;es.brighter=function(t){return new dt(Math.min(100,this.l+Ko*(arguments.length?t:1)),this.a,this.b)},es.darker=function(t){return new dt(Math.max(0,this.l-Ko*(arguments.length?t:1)),this.a,this.b)},es.rgb=function(){return pt(this.l,this.a,this.b)},uo.rgb=bt;var rs=bt.prototype=new lt;rs.brighter=function(t){t=Math.pow(.7,arguments.length?t:1);var e=this.r,r=this.g,n=this.b,i=30;return e||r||n?(e&&e<i&&(e=i),r&&r<i&&(r=i),n&&n<i&&(n=i),new bt(Math.min(255,e/t),Math.min(255,r/t),Math.min(255,n/t))):new bt(i,i,i)},rs.darker=function(t){return t=Math.pow(.7,arguments.length?t:1),new bt(t*this.r,t*this.g,t*this.b)},rs.hsl=function(){return kt(this.r,this.g,this.b)},rs.toString=function(){return\"#\"+wt(this.r)+wt(this.g)+wt(this.b)};var ns=uo.map({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});ns.forEach(function(t,e){ns.set(t,xt(e))}),uo.functor=Et,uo.xhr=Lt(x),uo.dsv=function(t,e){function r(t,r,a){arguments.length<3&&(a=r,r=null);var o=Ct(t,e,null==r?n:i(r),a);return o.row=function(t){return arguments.length?o.response(null==(r=t)?n:i(t)):r},o}function n(t){return r.parse(t.responseText)}function i(t){return function(e){return r.parse(e.responseText,t)}}function a(e){return e.map(o).join(t)}function o(t){return s.test(t)?'\"'+t.replace(/\\\"/g,'\"\"')+'\"':t}var s=new RegExp('[\"'+t+\"\\n]\"),l=t.charCodeAt(0);return r.parse=function(t,e){var n;return r.parseRows(t,function(t,r){if(n)return n(t,r-1);var i=new Function(\"d\",\"return {\"+t.map(function(t,e){return JSON.stringify(t)+\": d[\"+e+\"]\"}).join(\",\")+\"}\");n=e?function(t,r){return e(i(t),r)}:i})},r.parseRows=function(t,e){function r(){if(c>=u)return o;if(i)return i=!1,a;var e=c;if(34===t.charCodeAt(e)){for(var r=e;r++<u;)if(34===t.charCodeAt(r)){if(34!==t.charCodeAt(r+1))break;++r}c=r+2;var n=t.charCodeAt(r+1);return 13===n?(i=!0,10===t.charCodeAt(r+2)&&++c):10===n&&(i=!0),t.slice(e+1,r).replace(/\"\"/g,'\"')}for(;c<u;){var n=t.charCodeAt(c++),s=1;if(10===n)i=!0;else if(13===n)i=!0,10===t.charCodeAt(c)&&(++c,++s);else if(n!==l)continue;return t.slice(e,c-s)}return t.slice(e)}for(var n,i,a={},o={},s=[],u=t.length,c=0,h=0;(n=r())!==o;){for(var f=[];n!==a&&n!==o;)f.push(n),n=r();e&&null==(f=e(f,h++))||s.push(f)}return s},r.format=function(e){if(Array.isArray(e[0]))return r.formatRows(e);var n=new b,i=[];return e.forEach(function(t){for(var e in t)n.has(e)||i.push(n.add(e))}),[i.map(o).join(t)].concat(e.map(function(e){return i.map(function(t){return o(e[t])}).join(t)})).join(\"\\n\")},r.formatRows=function(t){return t.map(a).join(\"\\n\")},r},uo.csv=uo.dsv(\",\",\"text/csv\"),uo.tsv=uo.dsv(\"\\t\",\"text/tab-separated-values\");var is,as,os,ss,ls=this[w(this,\"requestAnimationFrame\")]||function(t){setTimeout(t,17)};uo.timer=function(){Dt.apply(this,arguments)},uo.timer.flush=function(){Ot(),Rt()},uo.round=function(t,e){return e?Math.round(t*(e=Math.pow(10,e)))/e:Math.round(t)};var us=[\"y\",\"z\",\"a\",\"f\",\"p\",\"n\",\"\\xb5\",\"m\",\"\",\"k\",\"M\",\"G\",\"T\",\"P\",\"E\",\"Z\",\"Y\"].map(jt);uo.formatPrefix=function(t,e){var r=0;return(t=+t)&&(t<0&&(t*=-1),e&&(t=uo.round(t,Ft(t,e))),r=1+Math.floor(1e-12+Math.log(t)/Math.LN10),r=Math.max(-24,Math.min(24,3*Math.floor((r-1)/3)))),us[8+r/3]};var cs=/(?:([^{])?([<>=^]))?([+\\- ])?([$#])?(0)?(\\d+)?(,)?(\\.-?\\d+)?([a-z%])?/i,hs=uo.map({b:function(t){return t.toString(2)},c:function(t){return String.fromCharCode(t)},o:function(t){return t.toString(8)},x:function(t){return t.toString(16)},X:function(t){return t.toString(16).toUpperCase()},g:function(t,e){return t.toPrecision(e)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},r:function(t,e){return(t=uo.round(t,Ft(t,e))).toFixed(Math.max(0,Math.min(20,Ft(t*(1+1e-15),e))))}}),fs=uo.time={},ds=Date;Ut.prototype={getDate:function(){return this._.getUTCDate()},getDay:function(){return this._.getUTCDay()},getFullYear:function(){return this._.getUTCFullYear()},getHours:function(){return this._.getUTCHours()},getMilliseconds:function(){return this._.getUTCMilliseconds()},getMinutes:function(){return this._.getUTCMinutes()},getMonth:function(){return this._.getUTCMonth()},getSeconds:function(){return this._.getUTCSeconds()},getTime:function(){return this._.getTime()},getTimezoneOffset:function(){return 0},valueOf:function(){return this._.valueOf()},setDate:function(){ps.setUTCDate.apply(this._,arguments)},setDay:function(){ps.setUTCDay.apply(this._,arguments)},setFullYear:function(){ps.setUTCFullYear.apply(this._,arguments)},setHours:function(){ps.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){ps.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){ps.setUTCMinutes.apply(this._,arguments)},setMonth:function(){ps.setUTCMonth.apply(this._,arguments)},setSeconds:function(){ps.setUTCSeconds.apply(this._,arguments)},setTime:function(){ps.setTime.apply(this._,arguments)}};var ps=Date.prototype;fs.year=Vt(function(t){return t=fs.day(t),t.setMonth(0,1),t},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t){return t.getFullYear()}),fs.years=fs.year.range,fs.years.utc=fs.year.utc.range,fs.day=Vt(function(t){var e=new ds(2e3,0);return e.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),e},function(t,e){t.setDate(t.getDate()+e)},function(t){return t.getDate()-1}),fs.days=fs.day.range,fs.days.utc=fs.day.utc.range,fs.dayOfYear=function(t){var e=fs.year(t);return Math.floor((t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/864e5)},[\"sunday\",\"monday\",\"tuesday\",\"wednesday\",\"thursday\",\"friday\",\"saturday\"].forEach(function(t,e){e=7-e;var r=fs[t]=Vt(function(t){return(t=fs.day(t)).setDate(t.getDate()-(t.getDay()+e)%7),t},function(t,e){t.setDate(t.getDate()+7*Math.floor(e))},function(t){var r=fs.year(t).getDay();return Math.floor((fs.dayOfYear(t)+(r+e)%7)/7)-(r!==e)});fs[t+\"s\"]=r.range,fs[t+\"s\"].utc=r.utc.range,fs[t+\"OfYear\"]=function(t){var r=fs.year(t).getDay();return Math.floor((fs.dayOfYear(t)+(r+e)%7)/7)}}),fs.week=fs.sunday,fs.weeks=fs.sunday.range,fs.weeks.utc=fs.sunday.utc.range,fs.weekOfYear=fs.sundayOfYear;var ms={\"-\":\"\",_:\" \",0:\"0\"},vs=/^\\s*\\d+/,gs=/^%/;uo.locale=function(t){return{numberFormat:Nt(t),timeFormat:qt(t)}};var ys=uo.locale({decimal:\".\",thousands:\",\",grouping:[3],currency:[\"$\",\"\"],dateTime:\"%a %b %e %X %Y\",date:\"%m/%d/%Y\",time:\"%H:%M:%S\",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\"]});uo.format=ys.numberFormat,uo.geo={},he.prototype={s:0,t:0,add:function(t){fe(t,this.t,bs),fe(bs.s,this.s,this),this.s?this.t+=bs.t:this.s=bs.t},reset:function(){this.s=this.t=0},valueOf:function(){return this.s}};var bs=new he;uo.geo.stream=function(t,e){t&&xs.hasOwnProperty(t.type)?xs[t.type](t,e):de(t,e)};var xs={Feature:function(t,e){de(t.geometry,e)},FeatureCollection:function(t,e){for(var r=t.features,n=-1,i=r.length;++n<i;)de(r[n].geometry,e)}},_s={Sphere:function(t,e){e.sphere()},Point:function(t,e){t=t.coordinates,e.point(t[0],t[1],t[2])},MultiPoint:function(t,e){for(var r=t.coordinates,n=-1,i=r.length;++n<i;)t=r[n],e.point(t[0],t[1],t[2])},LineString:function(t,e){pe(t.coordinates,e,0)},MultiLineString:function(t,e){for(var r=t.coordinates,n=-1,i=r.length;++n<i;)pe(r[n],e,0)},Polygon:function(t,e){me(t.coordinates,e)},MultiPolygon:function(t,e){for(var r=t.coordinates,n=-1,i=r.length;++n<i;)me(r[n],e)},GeometryCollection:function(t,e){for(var r=t.geometries,n=-1,i=r.length;++n<i;)de(r[n],e)}};uo.geo.area=function(t){return ws=0,uo.geo.stream(t,ks),ws};var ws,Ms=new he,ks={sphere:function(){ws+=4*No},point:M,lineStart:M,lineEnd:M,polygonStart:function(){Ms.reset(),ks.lineStart=ve},polygonEnd:function(){var t=2*Ms;ws+=t<0?4*No+t:t,ks.lineStart=ks.lineEnd=ks.point=M}};uo.geo.bounds=function(){function t(t,e){b.push(x=[c=t,f=t]),e<h&&(h=e),e>d&&(d=e)}function e(e,r){var n=ge([e*Ho,r*Ho]);if(g){var i=be(g,n),a=[i[1],-i[0],0],o=be(a,i);we(o),o=Me(o);var l=e-p,u=l>0?1:-1,m=o[0]*qo*u,v=xo(l)>180;if(v^(u*p<m&&m<u*e)){var y=o[1]*qo;y>d&&(d=y)}else if(m=(m+360)%360-180,v^(u*p<m&&m<u*e)){var y=-o[1]*qo;y<h&&(h=y)}else r<h&&(h=r),r>d&&(d=r);v?e<p?s(c,e)>s(c,f)&&(f=e):s(e,f)>s(c,f)&&(c=e):f>=c?(e<c&&(c=e),e>f&&(f=e)):e>p?s(c,e)>s(c,f)&&(f=e):s(e,f)>s(c,f)&&(c=e)}else t(e,r);g=n,p=e}function r(){_.point=e}function n(){x[0]=c,x[1]=f,_.point=t,g=null}function i(t,r){if(g){var n=t-p;y+=xo(n)>180?n+(n>0?360:-360):n}else m=t,v=r;ks.point(t,r),e(t,r)}function a(){ks.lineStart()}function o(){i(m,v),ks.lineEnd(),xo(y)>Fo&&(c=-(f=180)),x[0]=c,x[1]=f,g=null}function s(t,e){return(e-=t)<0?e+360:e}function l(t,e){return t[0]-e[0]}function u(t,e){return e[0]<=e[1]?e[0]<=t&&t<=e[1]:t<e[0]||e[1]<t}var c,h,f,d,p,m,v,g,y,b,x,_={point:t,lineStart:r,lineEnd:n,polygonStart:function(){_.point=i,_.lineStart=a,_.lineEnd=o,y=0,ks.polygonStart()},polygonEnd:function(){ks.polygonEnd(),_.point=t,_.lineStart=r,_.lineEnd=n,Ms<0?(c=-(f=180),h=-(d=90)):y>Fo?d=90:y<-Fo&&(h=-90),x[0]=c,x[1]=f}};return function(t){d=f=-(c=h=1/0),b=[],uo.geo.stream(t,_);var e=b.length;if(e){b.sort(l);for(var r,n=1,i=b[0],a=[i];n<e;++n)r=b[n],u(r[0],i)||u(r[1],i)?(s(i[0],r[1])>s(i[0],i[1])&&(i[1]=r[1]),s(r[0],i[1])>s(i[0],i[1])&&(i[0]=r[0])):a.push(i=r);for(var o,r,p=-1/0,e=a.length-1,n=0,i=a[e];n<=e;i=r,++n)r=a[n],(o=s(i[1],r[0]))>p&&(p=o,c=r[0],f=i[1])}return b=x=null,c===1/0||h===1/0?[[NaN,NaN],[NaN,NaN]]:[[c,h],[f,d]]}}(),uo.geo.centroid=function(t){As=Ts=Ss=Es=Ls=Cs=Is=zs=Ds=Ps=Os=0,uo.geo.stream(t,Rs);var e=Ds,r=Ps,n=Os,i=e*e+r*r+n*n;return i<jo&&(e=Cs,r=Is,n=zs,Ts<Fo&&(e=Ss,r=Es,n=Ls),(i=e*e+r*r+n*n)<jo)?[NaN,NaN]:[Math.atan2(r,e)*qo,nt(n/Math.sqrt(i))*qo]};var As,Ts,Ss,Es,Ls,Cs,Is,zs,Ds,Ps,Os,Rs={sphere:M,point:Ae,lineStart:Se,lineEnd:Ee,polygonStart:function(){Rs.lineStart=Le},polygonEnd:function(){Rs.lineStart=Se}},Fs=Oe(Ie,Ne,Ue,[-No,-No/2]),js=1e9;uo.geo.clipExtent=function(){var t,e,r,n,i,a,o={stream:function(t){return i&&(i.valid=!1),i=a(t),i.valid=!0,i},extent:function(s){return arguments.length?(a=Ge(t=+s[0][0],e=+s[0][1],r=+s[1][0],n=+s[1][1]),i&&(i.valid=!1,i=null),o):[[t,e],[r,n]]}};return o.extent([[0,0],[960,500]])},(uo.geo.conicEqualArea=function(){return Ye(We)}).raw=We,uo.geo.albers=function(){return uo.geo.conicEqualArea().rotate([96,0]).center([-.6,38.7]).parallels([29.5,45.5]).scale(1070)},uo.geo.albersUsa=function(){function t(t){var a=t[0],o=t[1];return e=null,r(a,o),e||(n(a,o),e)||i(a,o),e}var e,r,n,i,a=uo.geo.albers(),o=uo.geo.conicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),s=uo.geo.conicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),l={point:function(t,r){e=[t,r]}};return t.invert=function(t){var e=a.scale(),r=a.translate(),n=(t[0]-r[0])/e,i=(t[1]-r[1])/e;return(i>=.12&&i<.234&&n>=-.425&&n<-.214?o:i>=.166&&i<.234&&n>=-.214&&n<-.115?s:a).invert(t)},t.stream=function(t){var e=a.stream(t),r=o.stream(t),n=s.stream(t);return{point:function(t,i){e.point(t,i),r.point(t,i),n.point(t,i)},sphere:function(){e.sphere(),r.sphere(),n.sphere()},lineStart:function(){e.lineStart(),r.lineStart(),n.lineStart()},lineEnd:function(){e.lineEnd(),r.lineEnd(),n.lineEnd()},polygonStart:function(){e.polygonStart(),r.polygonStart(),n.polygonStart()},polygonEnd:function(){e.polygonEnd(),r.polygonEnd(),n.polygonEnd()}}},t.precision=function(e){return arguments.length?(a.precision(e),o.precision(e),s.precision(e),t):a.precision()},t.scale=function(e){return arguments.length?(a.scale(e),o.scale(.35*e),s.scale(e),t.translate(a.translate())):a.scale()},t.translate=function(e){if(!arguments.length)return a.translate();var u=a.scale(),c=+e[0],h=+e[1];return r=a.translate(e).clipExtent([[c-.455*u,h-.238*u],[c+.455*u,h+.238*u]]).stream(l).point,n=o.translate([c-.307*u,h+.201*u]).clipExtent([[c-.425*u+Fo,h+.12*u+Fo],[c-.214*u-Fo,h+.234*u-Fo]]).stream(l).point,i=s.translate([c-.205*u,h+.212*u]).clipExtent([[c-.214*u+Fo,h+.166*u+Fo],[c-.115*u-Fo,h+.234*u-Fo]]).stream(l).point,t},t.scale(1070)};var Ns,Bs,Us,Vs,Hs,qs,Gs={point:M,lineStart:M,lineEnd:M,polygonStart:function(){Bs=0,Gs.lineStart=Xe},polygonEnd:function(){Gs.lineStart=Gs.lineEnd=Gs.point=M,Ns+=xo(Bs/2)}},Ys={point:Ze,lineStart:M,lineEnd:M,polygonStart:M,polygonEnd:M},Ws={point:Qe,lineStart:$e,lineEnd:tr,polygonStart:function(){Ws.lineStart=er},polygonEnd:function(){Ws.point=Qe,Ws.lineStart=$e,Ws.lineEnd=tr}};uo.geo.path=function(){function t(t){return t&&(\"function\"==typeof s&&a.pointRadius(+s.apply(this,arguments)),o&&o.valid||(o=i(a)),uo.geo.stream(t,o)),a.result()}function e(){return o=null,t}var r,n,i,a,o,s=4.5;return t.area=function(t){return Ns=0,uo.geo.stream(t,i(Gs)),Ns},t.centroid=function(t){return Ss=Es=Ls=Cs=Is=zs=Ds=Ps=Os=0,uo.geo.stream(t,i(Ws)),Os?[Ds/Os,Ps/Os]:zs?[Cs/zs,Is/zs]:Ls?[Ss/Ls,Es/Ls]:[NaN,NaN]},t.bounds=function(t){return Hs=qs=-(Us=Vs=1/0),uo.geo.stream(t,i(Ys)),[[Us,Vs],[Hs,qs]]},t.projection=function(t){return arguments.length?(i=(r=t)?t.stream||ir(t):x,e()):r},t.context=function(t){return arguments.length?(a=null==(n=t)?new Je:new rr(t),\"function\"!=typeof s&&a.pointRadius(s),e()):n},t.pointRadius=function(e){return arguments.length?(s=\"function\"==typeof e?e:(a.pointRadius(+e),+e),t):s},t.projection(uo.geo.albersUsa()).context(null)},uo.geo.transform=function(t){return{stream:function(e){var r=new ar(e);for(var n in t)r[n]=t[n];return r}}},ar.prototype={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()}},uo.geo.projection=sr,uo.geo.projectionMutator=lr,(uo.geo.equirectangular=function(){return sr(cr)}).raw=cr.invert=cr,uo.geo.rotation=function(t){function e(e){return e=t(e[0]*Ho,e[1]*Ho),e[0]*=qo,e[1]*=qo,e}return t=fr(t[0]%360*Ho,t[1]*Ho,t.length>2?t[2]*Ho:0),e.invert=function(e){return e=t.invert(e[0]*Ho,e[1]*Ho),e[0]*=qo,e[1]*=qo,e},e},hr.invert=cr,uo.geo.circle=function(){function t(){var t=\"function\"==typeof n?n.apply(this,arguments):n,e=fr(-t[0]*Ho,-t[1]*Ho,0).invert,i=[];return r(null,null,1,{point:function(t,r){i.push(t=e(t,r)),t[0]*=qo,t[1]*=qo}}),{type:\"Polygon\",coordinates:[i]}}var e,r,n=[0,0],i=6;return t.origin=function(e){return arguments.length?(n=e,t):n},t.angle=function(n){return arguments.length?(r=vr((e=+n)*Ho,i*Ho),t):e},t.precision=function(n){return arguments.length?(r=vr(e*Ho,(i=+n)*Ho),t):i},t.angle(90)},uo.geo.distance=function(t,e){var r,n=(e[0]-t[0])*Ho,i=t[1]*Ho,a=e[1]*Ho,o=Math.sin(n),s=Math.cos(n),l=Math.sin(i),u=Math.cos(i),c=Math.sin(a),h=Math.cos(a);return Math.atan2(Math.sqrt((r=h*o)*r+(r=u*c-l*h*s)*r),l*c+u*h*s)},uo.geo.graticule=function(){function t(){return{type:\"MultiLineString\",coordinates:e()}}function e(){return uo.range(Math.ceil(a/v)*v,i,v).map(f).concat(uo.range(Math.ceil(u/g)*g,l,g).map(d)).concat(uo.range(Math.ceil(n/p)*p,r,p).filter(function(t){return xo(t%v)>Fo}).map(c)).concat(uo.range(Math.ceil(s/m)*m,o,m).filter(function(t){return xo(t%g)>Fo}).map(h))}var r,n,i,a,o,s,l,u,c,h,f,d,p=10,m=p,v=90,g=360,y=2.5;return t.lines=function(){return e().map(function(t){return{type:\"LineString\",coordinates:t}})},t.outline=function(){return{type:\"Polygon\",coordinates:[f(a).concat(d(l).slice(1),f(i).reverse().slice(1),d(u).reverse().slice(1))]}},t.extent=function(e){return arguments.length?t.majorExtent(e).minorExtent(e):t.minorExtent()},t.majorExtent=function(e){return arguments.length?(a=+e[0][0],i=+e[1][0],u=+e[0][1],l=+e[1][1],a>i&&(e=a,a=i,i=e),u>l&&(e=u,u=l,l=e),t.precision(y)):[[a,u],[i,l]]},t.minorExtent=function(e){return arguments.length?(n=+e[0][0],r=+e[1][0],s=+e[0][1],o=+e[1][1],n>r&&(e=n,n=r,r=e),s>o&&(e=s,s=o,o=e),t.precision(y)):[[n,s],[r,o]]},t.step=function(e){return arguments.length?t.majorStep(e).minorStep(e):t.minorStep()},t.majorStep=function(e){return arguments.length?(v=+e[0],g=+e[1],t):[v,g]},t.minorStep=function(e){\n", "return arguments.length?(p=+e[0],m=+e[1],t):[p,m]},t.precision=function(e){return arguments.length?(y=+e,c=yr(s,o,90),h=br(n,r,y),f=yr(u,l,90),d=br(a,i,y),t):y},t.majorExtent([[-180,-90+Fo],[180,90-Fo]]).minorExtent([[-180,-80-Fo],[180,80+Fo]])},uo.geo.greatArc=function(){function t(){return{type:\"LineString\",coordinates:[e||n.apply(this,arguments),r||i.apply(this,arguments)]}}var e,r,n=xr,i=_r;return t.distance=function(){return uo.geo.distance(e||n.apply(this,arguments),r||i.apply(this,arguments))},t.source=function(r){return arguments.length?(n=r,e=\"function\"==typeof r?null:r,t):n},t.target=function(e){return arguments.length?(i=e,r=\"function\"==typeof e?null:e,t):i},t.precision=function(){return arguments.length?t:0},t},uo.geo.interpolate=function(t,e){return wr(t[0]*Ho,t[1]*Ho,e[0]*Ho,e[1]*Ho)},uo.geo.length=function(t){return Xs=0,uo.geo.stream(t,Zs),Xs};var Xs,Zs={sphere:M,point:M,lineStart:Mr,lineEnd:M,polygonStart:M,polygonEnd:M},Js=kr(function(t){return Math.sqrt(2/(1+t))},function(t){return 2*Math.asin(t/2)});(uo.geo.azimuthalEqualArea=function(){return sr(Js)}).raw=Js;var Ks=kr(function(t){var e=Math.acos(t);return e&&e/Math.sin(e)},x);(uo.geo.azimuthalEquidistant=function(){return sr(Ks)}).raw=Ks,(uo.geo.conicConformal=function(){return Ye(Ar)}).raw=Ar,(uo.geo.conicEquidistant=function(){return Ye(Tr)}).raw=Tr;var Qs=kr(function(t){return 1/t},Math.atan);(uo.geo.gnomonic=function(){return sr(Qs)}).raw=Qs,Sr.invert=function(t,e){return[t,2*Math.atan(Math.exp(e))-Vo]},(uo.geo.mercator=function(){return Er(Sr)}).raw=Sr;var $s=kr(function(){return 1},Math.asin);(uo.geo.orthographic=function(){return sr($s)}).raw=$s;var tl=kr(function(t){return 1/(1+t)},function(t){return 2*Math.atan(t)});(uo.geo.stereographic=function(){return sr(tl)}).raw=tl,Lr.invert=function(t,e){return[-e,2*Math.atan(Math.exp(t))-Vo]},(uo.geo.transverseMercator=function(){var t=Er(Lr),e=t.center,r=t.rotate;return t.center=function(t){return t?e([-t[1],t[0]]):(t=e(),[t[1],-t[0]])},t.rotate=function(t){return t?r([t[0],t[1],t.length>2?t[2]+90:90]):(t=r(),[t[0],t[1],t[2]-90])},r([0,0,90])}).raw=Lr,uo.geom={},uo.geom.hull=function(t){function e(t){if(t.length<3)return[];var e,i=Et(r),a=Et(n),o=t.length,s=[],l=[];for(e=0;e<o;e++)s.push([+i.call(this,t[e],e),+a.call(this,t[e],e),e]);for(s.sort(Dr),e=0;e<o;e++)l.push([s[e][0],-s[e][1]]);var u=zr(s),c=zr(l),h=c[0]===u[0],f=c[c.length-1]===u[u.length-1],d=[];for(e=u.length-1;e>=0;--e)d.push(t[s[u[e]][2]]);for(e=+h;e<c.length-f;++e)d.push(t[s[c[e]][2]]);return d}var r=Cr,n=Ir;return arguments.length?e(t):(e.x=function(t){return arguments.length?(r=t,e):r},e.y=function(t){return arguments.length?(n=t,e):n},e)},uo.geom.polygon=function(t){return Ao(t,el),t};var el=uo.geom.polygon.prototype=[];el.area=function(){for(var t,e=-1,r=this.length,n=this[r-1],i=0;++e<r;)t=n,n=this[e],i+=t[1]*n[0]-t[0]*n[1];return.5*i},el.centroid=function(t){var e,r,n=-1,i=this.length,a=0,o=0,s=this[i-1];for(arguments.length||(t=-1/(6*this.area()));++n<i;)e=s,s=this[n],r=e[0]*s[1]-s[0]*e[1],a+=(e[0]+s[0])*r,o+=(e[1]+s[1])*r;return[a*t,o*t]},el.clip=function(t){for(var e,r,n,i,a,o,s=Rr(t),l=-1,u=this.length-Rr(this),c=this[u-1];++l<u;){for(e=t.slice(),t.length=0,i=this[l],a=e[(n=e.length-s)-1],r=-1;++r<n;)o=e[r],Pr(o,c,i)?(Pr(a,c,i)||t.push(Or(a,o,c,i)),t.push(o)):Pr(a,c,i)&&t.push(Or(a,o,c,i)),a=o;s&&t.push(t[0]),c=i}return t};var rl,nl,il,al,ol,sl=[],ll=[];qr.prototype.prepare=function(){for(var t,e=this.edges,r=e.length;r--;)t=e[r].edge,t.b&&t.a||e.splice(r,1);return e.sort(Yr),e.length},rn.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}},nn.prototype={insert:function(t,e){var r,n,i;if(t){if(e.P=t,e.N=t.N,t.N&&(t.N.P=e),t.N=e,t.R){for(t=t.R;t.L;)t=t.L;t.L=e}else t.R=e;r=t}else this._?(t=ln(this._),e.P=null,e.N=t,t.P=t.L=e,r=t):(e.P=e.N=null,this._=e,r=null);for(e.L=e.R=null,e.U=r,e.C=!0,t=e;r&&r.C;)n=r.U,r===n.L?(i=n.R,i&&i.C?(r.C=i.C=!1,n.C=!0,t=n):(t===r.R&&(on(this,r),t=r,r=t.U),r.C=!1,n.C=!0,sn(this,n))):(i=n.L,i&&i.C?(r.C=i.C=!1,n.C=!0,t=n):(t===r.L&&(sn(this,r),t=r,r=t.U),r.C=!1,n.C=!0,on(this,n))),r=t.U;this._.C=!1},remove:function(t){t.N&&(t.N.P=t.P),t.P&&(t.P.N=t.N),t.N=t.P=null;var e,r,n,i=t.U,a=t.L,o=t.R;if(r=a?o?ln(o):a:o,i?i.L===t?i.L=r:i.R=r:this._=r,a&&o?(n=r.C,r.C=t.C,r.L=a,a.U=r,r!==o?(i=r.U,r.U=t.U,t=r.R,i.L=t,r.R=o,o.U=r):(r.U=i,i=r,t=r.R)):(n=t.C,t=r),t&&(t.U=i),!n){if(t&&t.C)return void(t.C=!1);do{if(t===this._)break;if(t===i.L){if(e=i.R,e.C&&(e.C=!1,i.C=!0,on(this,i),e=i.R),e.L&&e.L.C||e.R&&e.R.C){e.R&&e.R.C||(e.L.C=!1,e.C=!0,sn(this,e),e=i.R),e.C=i.C,i.C=e.R.C=!1,on(this,i),t=this._;break}}else if(e=i.L,e.C&&(e.C=!1,i.C=!0,sn(this,i),e=i.L),e.L&&e.L.C||e.R&&e.R.C){e.L&&e.L.C||(e.R.C=!1,e.C=!0,on(this,e),e=i.L),e.C=i.C,i.C=e.L.C=!1,sn(this,i),t=this._;break}e.C=!0,t=i,i=i.U}while(!t.C);t&&(t.C=!1)}}},uo.geom.voronoi=function(t){function e(t){var e=new Array(t.length),n=s[0][0],i=s[0][1],a=s[1][0],o=s[1][1];return un(r(t),s).cells.forEach(function(r,s){var l=r.edges,u=r.site;(e[s]=l.length?l.map(function(t){var e=t.start();return[e.x,e.y]}):u.x>=n&&u.x<=a&&u.y>=i&&u.y<=o?[[n,o],[a,o],[a,i],[n,i]]:[]).point=t[s]}),e}function r(t){return t.map(function(t,e){return{x:Math.round(a(t,e)/Fo)*Fo,y:Math.round(o(t,e)/Fo)*Fo,i:e}})}var n=Cr,i=Ir,a=n,o=i,s=ul;return t?e(t):(e.links=function(t){return un(r(t)).edges.filter(function(t){return t.l&&t.r}).map(function(e){return{source:t[e.l.i],target:t[e.r.i]}})},e.triangles=function(t){var e=[];return un(r(t)).cells.forEach(function(r,n){for(var i,a=r.site,o=r.edges.sort(Yr),s=-1,l=o.length,u=o[l-1].edge,c=u.l===a?u.r:u.l;++s<l;)u,i=c,u=o[s].edge,c=u.l===a?u.r:u.l,n<i.i&&n<c.i&&hn(a,i,c)<0&&e.push([t[n],t[i.i],t[c.i]])}),e},e.x=function(t){return arguments.length?(a=Et(n=t),e):n},e.y=function(t){return arguments.length?(o=Et(i=t),e):i},e.clipExtent=function(t){return arguments.length?(s=null==t?ul:t,e):s===ul?null:s},e.size=function(t){return arguments.length?e.clipExtent(t&&[[0,0],t]):s===ul?null:s&&s[1]},e)};var ul=[[-1e6,-1e6],[1e6,1e6]];uo.geom.delaunay=function(t){return uo.geom.voronoi().triangles(t)},uo.geom.quadtree=function(t,e,r,n,i){function a(t){function a(t,e,r,n,i,a,o,s){if(!isNaN(r)&&!isNaN(n))if(t.leaf){var l=t.x,c=t.y;if(null!=l)if(xo(l-r)+xo(c-n)<.01)u(t,e,r,n,i,a,o,s);else{var h=t.point;t.x=t.y=t.point=null,u(t,h,l,c,i,a,o,s),u(t,e,r,n,i,a,o,s)}else t.x=r,t.y=n,t.point=e}else u(t,e,r,n,i,a,o,s)}function u(t,e,r,n,i,o,s,l){var u=.5*(i+s),c=.5*(o+l),h=r>=u,f=n>=c,d=f<<1|h;t.leaf=!1,t=t.nodes[d]||(t.nodes[d]=pn()),h?i=u:s=u,f?o=c:l=c,a(t,e,r,n,i,o,s,l)}var c,h,f,d,p,m,v,g,y,b=Et(s),x=Et(l);if(null!=e)m=e,v=r,g=n,y=i;else if(g=y=-(m=v=1/0),h=[],f=[],p=t.length,o)for(d=0;d<p;++d)c=t[d],c.x<m&&(m=c.x),c.y<v&&(v=c.y),c.x>g&&(g=c.x),c.y>y&&(y=c.y),h.push(c.x),f.push(c.y);else for(d=0;d<p;++d){var _=+b(c=t[d],d),w=+x(c,d);_<m&&(m=_),w<v&&(v=w),_>g&&(g=_),w>y&&(y=w),h.push(_),f.push(w)}var M=g-m,k=y-v;M>k?y=v+M:g=m+k;var A=pn();if(A.add=function(t){a(A,t,+b(t,++d),+x(t,d),m,v,g,y)},A.visit=function(t){mn(t,A,m,v,g,y)},A.find=function(t){return vn(A,t[0],t[1],m,v,g,y)},d=-1,null==e){for(;++d<p;)a(A,t[d],h[d],f[d],m,v,g,y);--d}else t.forEach(A.add);return h=f=t=c=null,A}var o,s=Cr,l=Ir;return(o=arguments.length)?(s=fn,l=dn,3===o&&(i=r,n=e,r=e=0),a(t)):(a.x=function(t){return arguments.length?(s=t,a):s},a.y=function(t){return arguments.length?(l=t,a):l},a.extent=function(t){return arguments.length?(null==t?e=r=n=i=null:(e=+t[0][0],r=+t[0][1],n=+t[1][0],i=+t[1][1]),a):null==e?null:[[e,r],[n,i]]},a.size=function(t){return arguments.length?(null==t?e=r=n=i=null:(e=r=0,n=+t[0],i=+t[1]),a):null==e?null:[n-e,i-r]},a)},uo.interpolateRgb=gn,uo.interpolateObject=yn,uo.interpolateNumber=bn,uo.interpolateString=xn;var cl=/[-+]?(?:\\d+\\.?\\d*|\\.?\\d+)(?:[eE][-+]?\\d+)?/g,hl=new RegExp(cl.source,\"g\");uo.interpolate=_n,uo.interpolators=[function(t,e){var r=typeof e;return(\"string\"===r?ns.has(e.toLowerCase())||/^(#|rgb\\(|hsl\\()/i.test(e)?gn:xn:e instanceof lt?gn:Array.isArray(e)?wn:\"object\"===r&&isNaN(e)?yn:bn)(t,e)}],uo.interpolateArray=wn;var fl=function(){return x},dl=uo.map({linear:fl,poly:Ln,quad:function(){return Tn},cubic:function(){return Sn},sin:function(){return Cn},exp:function(){return In},circle:function(){return zn},elastic:Dn,back:Pn,bounce:function(){return On}}),pl=uo.map({in:x,out:kn,\"in-out\":An,\"out-in\":function(t){return An(kn(t))}});uo.ease=function(t){var e=t.indexOf(\"-\"),r=e>=0?t.slice(0,e):t,n=e>=0?t.slice(e+1):\"in\";return r=dl.get(r)||fl,n=pl.get(n)||x,Mn(n(r.apply(null,co.call(arguments,1))))},uo.interpolateHcl=Rn,uo.interpolateHsl=Fn,uo.interpolateLab=jn,uo.interpolateRound=Nn,uo.transform=function(t){var e=fo.createElementNS(uo.ns.prefix.svg,\"g\");return(uo.transform=function(t){if(null!=t){e.setAttribute(\"transform\",t);var r=e.transform.baseVal.consolidate()}return new Bn(r?r.matrix:ml)})(t)},Bn.prototype.toString=function(){return\"translate(\"+this.translate+\")rotate(\"+this.rotate+\")skewX(\"+this.skew+\")scale(\"+this.scale+\")\"};var ml={a:1,b:0,c:0,d:1,e:0,f:0};uo.interpolateTransform=Zn,uo.layout={},uo.layout.bundle=function(){return function(t){for(var e=[],r=-1,n=t.length;++r<n;)e.push(Qn(t[r]));return e}},uo.layout.chord=function(){function t(){var t,u,h,f,d,p={},m=[],v=uo.range(a),g=[];for(r=[],n=[],t=0,f=-1;++f<a;){for(u=0,d=-1;++d<a;)u+=i[f][d];m.push(u),g.push(uo.range(a)),t+=u}for(o&&v.sort(function(t,e){return o(m[t],m[e])}),s&&g.forEach(function(t,e){t.sort(function(t,r){return s(i[e][t],i[e][r])})}),t=(Bo-c*a)/t,u=0,f=-1;++f<a;){for(h=u,d=-1;++d<a;){var y=v[f],b=g[y][d],x=i[y][b],_=u,w=u+=x*t;p[y+\"-\"+b]={index:y,subindex:b,startAngle:_,endAngle:w,value:x}}n[y]={index:y,startAngle:h,endAngle:u,value:m[y]},u+=c}for(f=-1;++f<a;)for(d=f-1;++d<a;){var M=p[f+\"-\"+d],k=p[d+\"-\"+f];(M.value||k.value)&&r.push(M.value<k.value?{source:k,target:M}:{source:M,target:k})}l&&e()}function e(){r.sort(function(t,e){return l((t.source.value+t.target.value)/2,(e.source.value+e.target.value)/2)})}var r,n,i,a,o,s,l,u={},c=0;return u.matrix=function(t){return arguments.length?(a=(i=t)&&i.length,r=n=null,u):i},u.padding=function(t){return arguments.length?(c=t,r=n=null,u):c},u.sortGroups=function(t){return arguments.length?(o=t,r=n=null,u):o},u.sortSubgroups=function(t){return arguments.length?(s=t,r=null,u):s},u.sortChords=function(t){return arguments.length?(l=t,r&&e(),u):l},u.chords=function(){return r||t(),r},u.groups=function(){return n||t(),n},u},uo.layout.force=function(){function t(t){return function(e,r,n,i){if(e.point!==t){var a=e.cx-t.x,o=e.cy-t.y,s=i-r,l=a*a+o*o;if(s*s/g<l){if(l<m){var u=e.charge/l;t.px-=a*u,t.py-=o*u}return!0}if(e.point&&l&&l<m){var u=e.pointCharge/l;t.px-=a*u,t.py-=o*u}}return!e.charge}}function e(t){t.px=uo.event.x,t.py=uo.event.y,l.resume()}var r,n,i,a,o,s,l={},u=uo.dispatch(\"start\",\"tick\",\"end\"),c=[1,1],h=.9,f=vl,d=gl,p=-30,m=yl,v=.1,g=.64,y=[],b=[];return l.tick=function(){if((i*=.99)<.005)return r=null,u.end({type:\"end\",alpha:i=0}),!0;var e,n,l,f,d,m,g,x,_,w=y.length,M=b.length;for(n=0;n<M;++n)l=b[n],f=l.source,d=l.target,x=d.x-f.x,_=d.y-f.y,(m=x*x+_*_)&&(m=i*o[n]*((m=Math.sqrt(m))-a[n])/m,x*=m,_*=m,d.x-=x*(g=f.weight+d.weight?f.weight/(f.weight+d.weight):.5),d.y-=_*g,f.x+=x*(g=1-g),f.y+=_*g);if((g=i*v)&&(x=c[0]/2,_=c[1]/2,n=-1,g))for(;++n<w;)l=y[n],l.x+=(x-l.x)*g,l.y+=(_-l.y)*g;if(p)for(ai(e=uo.geom.quadtree(y),i,s),n=-1;++n<w;)(l=y[n]).fixed||e.visit(t(l));for(n=-1;++n<w;)l=y[n],l.fixed?(l.x=l.px,l.y=l.py):(l.x-=(l.px-(l.px=l.x))*h,l.y-=(l.py-(l.py=l.y))*h);u.tick({type:\"tick\",alpha:i})},l.nodes=function(t){return arguments.length?(y=t,l):y},l.links=function(t){return arguments.length?(b=t,l):b},l.size=function(t){return arguments.length?(c=t,l):c},l.linkDistance=function(t){return arguments.length?(f=\"function\"==typeof t?t:+t,l):f},l.distance=l.linkDistance,l.linkStrength=function(t){return arguments.length?(d=\"function\"==typeof t?t:+t,l):d},l.friction=function(t){return arguments.length?(h=+t,l):h},l.charge=function(t){return arguments.length?(p=\"function\"==typeof t?t:+t,l):p},l.chargeDistance=function(t){return arguments.length?(m=t*t,l):Math.sqrt(m)},l.gravity=function(t){return arguments.length?(v=+t,l):v},l.theta=function(t){return arguments.length?(g=t*t,l):Math.sqrt(g)},l.alpha=function(t){return arguments.length?(t=+t,i?t>0?i=t:(r.c=null,r.t=NaN,r=null,u.end({type:\"end\",alpha:i=0})):t>0&&(u.start({type:\"start\",alpha:i=t}),r=Dt(l.tick)),l):i},l.start=function(){function t(t,n){if(!r){for(r=new Array(i),l=0;l<i;++l)r[l]=[];for(l=0;l<u;++l){var a=b[l];r[a.source.index].push(a.target),r[a.target.index].push(a.source)}}for(var o,s=r[e],l=-1,c=s.length;++l<c;)if(!isNaN(o=s[l][t]))return o;return Math.random()*n}var e,r,n,i=y.length,u=b.length,h=c[0],m=c[1];for(e=0;e<i;++e)(n=y[e]).index=e,n.weight=0;for(e=0;e<u;++e)n=b[e],\"number\"==typeof n.source&&(n.source=y[n.source]),\"number\"==typeof n.target&&(n.target=y[n.target]),++n.source.weight,++n.target.weight;for(e=0;e<i;++e)n=y[e],isNaN(n.x)&&(n.x=t(\"x\",h)),isNaN(n.y)&&(n.y=t(\"y\",m)),isNaN(n.px)&&(n.px=n.x),isNaN(n.py)&&(n.py=n.y);if(a=[],\"function\"==typeof f)for(e=0;e<u;++e)a[e]=+f.call(this,b[e],e);else for(e=0;e<u;++e)a[e]=f;if(o=[],\"function\"==typeof d)for(e=0;e<u;++e)o[e]=+d.call(this,b[e],e);else for(e=0;e<u;++e)o[e]=d;if(s=[],\"function\"==typeof p)for(e=0;e<i;++e)s[e]=+p.call(this,y[e],e);else for(e=0;e<i;++e)s[e]=p;return l.resume()},l.resume=function(){return l.alpha(.1)},l.stop=function(){return l.alpha(0)},l.drag=function(){if(n||(n=uo.behavior.drag().origin(x).on(\"dragstart.force\",ei).on(\"drag.force\",e).on(\"dragend.force\",ri)),!arguments.length)return n;this.on(\"mouseover.force\",ni).on(\"mouseout.force\",ii).call(n)},uo.rebind(l,u,\"on\")};var vl=20,gl=1,yl=1/0;uo.layout.hierarchy=function(){function t(i){var a,o=[i],s=[];for(i.depth=0;null!=(a=o.pop());)if(s.push(a),(u=r.call(t,a,a.depth))&&(l=u.length)){for(var l,u,c;--l>=0;)o.push(c=u[l]),c.parent=a,c.depth=a.depth+1;n&&(a.value=0),a.children=u}else n&&(a.value=+n.call(t,a,a.depth)||0),delete a.children;return li(i,function(t){var r,i;e&&(r=t.children)&&r.sort(e),n&&(i=t.parent)&&(i.value+=t.value)}),s}var e=hi,r=ui,n=ci;return t.sort=function(r){return arguments.length?(e=r,t):e},t.children=function(e){return arguments.length?(r=e,t):r},t.value=function(e){return arguments.length?(n=e,t):n},t.revalue=function(e){return n&&(si(e,function(t){t.children&&(t.value=0)}),li(e,function(e){var r;e.children||(e.value=+n.call(t,e,e.depth)||0),(r=e.parent)&&(r.value+=e.value)})),e},t},uo.layout.partition=function(){function t(e,r,n,i){var a=e.children;if(e.x=r,e.y=e.depth*i,e.dx=n,e.dy=i,a&&(o=a.length)){var o,s,l,u=-1;for(n=e.value?n/e.value:0;++u<o;)t(s=a[u],r,l=s.value*n,i),r+=l}}function e(t){var r=t.children,n=0;if(r&&(i=r.length))for(var i,a=-1;++a<i;)n=Math.max(n,e(r[a]));return 1+n}function r(r,a){var o=n.call(this,r,a);return t(o[0],0,i[0],i[1]/e(o[0])),o}var n=uo.layout.hierarchy(),i=[1,1];return r.size=function(t){return arguments.length?(i=t,r):i},oi(r,n)},uo.layout.pie=function(){function t(o){var s,l=o.length,u=o.map(function(r,n){return+e.call(t,r,n)}),c=+(\"function\"==typeof n?n.apply(this,arguments):n),h=(\"function\"==typeof i?i.apply(this,arguments):i)-c,f=Math.min(Math.abs(h)/l,+(\"function\"==typeof a?a.apply(this,arguments):a)),d=f*(h<0?-1:1),p=uo.sum(u),m=p?(h-l*d)/p:0,v=uo.range(l),g=[];return null!=r&&v.sort(r===bl?function(t,e){return u[e]-u[t]}:function(t,e){return r(o[t],o[e])}),v.forEach(function(t){g[t]={data:o[t],value:s=u[t],startAngle:c,endAngle:c+=s*m+d,padAngle:f}}),g}var e=Number,r=bl,n=0,i=Bo,a=0;return t.value=function(r){return arguments.length?(e=r,t):e},t.sort=function(e){return arguments.length?(r=e,t):r},t.startAngle=function(e){return arguments.length?(n=e,t):n},t.endAngle=function(e){return arguments.length?(i=e,t):i},t.padAngle=function(e){return arguments.length?(a=e,t):a},t};var bl={};uo.layout.stack=function(){function t(s,l){if(!(f=s.length))return s;var u=s.map(function(r,n){return e.call(t,r,n)}),c=u.map(function(e){return e.map(function(e,r){return[a.call(t,e,r),o.call(t,e,r)]})}),h=r.call(t,c,l);u=uo.permute(u,h),c=uo.permute(c,h);var f,d,p,m,v=n.call(t,c,l),g=u[0].length;for(p=0;p<g;++p)for(i.call(t,u[0][p],m=v[p],c[0][p][1]),d=1;d<f;++d)i.call(t,u[d][p],m+=c[d-1][p][1],c[d][p][1]);return s}var e=x,r=vi,n=gi,i=mi,a=di,o=pi;return t.values=function(r){return arguments.length?(e=r,t):e},t.order=function(e){return arguments.length?(r=\"function\"==typeof e?e:xl.get(e)||vi,t):r},t.offset=function(e){return arguments.length?(n=\"function\"==typeof e?e:_l.get(e)||gi,t):n},t.x=function(e){return arguments.length?(a=e,t):a},t.y=function(e){return arguments.length?(o=e,t):o},t.out=function(e){return arguments.length?(i=e,t):i},t};var xl=uo.map({\"inside-out\":function(t){var e,r,n=t.length,i=t.map(yi),a=t.map(bi),o=uo.range(n).sort(function(t,e){return i[t]-i[e]}),s=0,l=0,u=[],c=[];for(e=0;e<n;++e)r=o[e],s<l?(s+=a[r],u.push(r)):(l+=a[r],c.push(r));return c.reverse().concat(u)},reverse:function(t){return uo.range(t.length).reverse()},default:vi}),_l=uo.map({silhouette:function(t){var e,r,n,i=t.length,a=t[0].length,o=[],s=0,l=[];for(r=0;r<a;++r){for(e=0,n=0;e<i;e++)n+=t[e][r][1];n>s&&(s=n),o.push(n)}for(r=0;r<a;++r)l[r]=(s-o[r])/2;return l},wiggle:function(t){var e,r,n,i,a,o,s,l,u,c=t.length,h=t[0],f=h.length,d=[];for(d[0]=l=u=0,r=1;r<f;++r){for(e=0,i=0;e<c;++e)i+=t[e][r][1];for(e=0,a=0,s=h[r][0]-h[r-1][0];e<c;++e){for(n=0,o=(t[e][r][1]-t[e][r-1][1])/(2*s);n<e;++n)o+=(t[n][r][1]-t[n][r-1][1])/s;a+=o*t[e][r][1]}d[r]=l-=i?a/i*s:0,l<u&&(u=l)}for(r=0;r<f;++r)d[r]-=u;return d},expand:function(t){var e,r,n,i=t.length,a=t[0].length,o=1/i,s=[];for(r=0;r<a;++r){for(e=0,n=0;e<i;e++)n+=t[e][r][1];if(n)for(e=0;e<i;e++)t[e][r][1]/=n;else for(e=0;e<i;e++)t[e][r][1]=o}for(r=0;r<a;++r)s[r]=0;return s},zero:gi});uo.layout.histogram=function(){function t(t,a){for(var o,s,l=[],u=t.map(r,this),c=n.call(this,u,a),h=i.call(this,c,u,a),a=-1,f=u.length,d=h.length-1,p=e?1:1/f;++a<d;)o=l[a]=[],o.dx=h[a+1]-(o.x=h[a]),o.y=0;if(d>0)for(a=-1;++a<f;)(s=u[a])>=c[0]&&s<=c[1]&&(o=l[uo.bisect(h,s,1,d)-1],o.y+=p,o.push(t[a]));return l}var e=!0,r=Number,n=Mi,i=_i;return t.value=function(e){return arguments.length?(r=e,t):r},t.range=function(e){return arguments.length?(n=Et(e),t):n},t.bins=function(e){return arguments.length?(i=\"number\"==typeof e?function(t){return wi(t,e)}:Et(e),t):i},t.frequency=function(r){return arguments.length?(e=!!r,t):e},t},uo.layout.pack=function(){function t(t,a){var o=r.call(this,t,a),s=o[0],l=i[0],u=i[1],c=null==e?Math.sqrt:\"function\"==typeof e?e:function(){return e};if(s.x=s.y=0,li(s,function(t){t.r=+c(t.value)}),li(s,Ei),n){var h=n*(e?1:Math.max(2*s.r/l,2*s.r/u))/2;li(s,function(t){t.r+=h}),li(s,Ei),li(s,function(t){t.r-=h})}return Ii(s,l/2,u/2,e?1:1/Math.max(2*s.r/l,2*s.r/u)),o}var e,r=uo.layout.hierarchy().sort(ki),n=0,i=[1,1];return t.size=function(e){return arguments.length?(i=e,t):i},t.radius=function(r){return arguments.length?(e=null==r||\"function\"==typeof r?r:+r,t):e},t.padding=function(e){return arguments.length?(n=+e,t):n},oi(t,r)},uo.layout.tree=function(){function t(t,i){var c=o.call(this,t,i),h=c[0],f=e(h);if(li(f,r),f.parent.m=-f.z,si(f,n),u)si(h,a);else{var d=h,p=h,m=h;si(h,function(t){t.x<d.x&&(d=t),t.x>p.x&&(p=t),t.depth>m.depth&&(m=t)});var v=s(d,p)/2-d.x,g=l[0]/(p.x+s(p,d)/2+v),y=l[1]/(m.depth||1);si(h,function(t){t.x=(t.x+v)*g,t.y=t.depth*y})}return c}function e(t){for(var e,r={A:null,children:[t]},n=[r];null!=(e=n.pop());)for(var i,a=e.children,o=0,s=a.length;o<s;++o)n.push((a[o]=i={_:a[o],parent:e,children:(i=a[o].children)&&i.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:o}).a=i);return r.children[0]}function r(t){var e=t.children,r=t.parent.children,n=t.i?r[t.i-1]:null;if(e.length){Fi(t);var a=(e[0].z+e[e.length-1].z)/2;n?(t.z=n.z+s(t._,n._),t.m=t.z-a):t.z=a}else n&&(t.z=n.z+s(t._,n._));t.parent.A=i(t,n,t.parent.A||r[0])}function n(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function i(t,e,r){if(e){for(var n,i=t,a=t,o=e,l=i.parent.children[0],u=i.m,c=a.m,h=o.m,f=l.m;o=Oi(o),i=Pi(i),o&&i;)l=Pi(l),a=Oi(a),a.a=t,n=o.z+h-i.z-u+s(o._,i._),n>0&&(Ri(ji(o,t,r),t,n),u+=n,c+=n),h+=o.m,u+=i.m,f+=l.m,c+=a.m;o&&!Oi(a)&&(a.t=o,a.m+=h-c),i&&!Pi(l)&&(l.t=i,l.m+=u-f,r=t)}return r}function a(t){t.x*=l[0],t.y=t.depth*l[1]}var o=uo.layout.hierarchy().sort(null).value(null),s=Di,l=[1,1],u=null;return t.separation=function(e){return arguments.length?(s=e,t):s},t.size=function(e){return arguments.length?(u=null==(l=e)?a:null,t):u?null:l},t.nodeSize=function(e){return arguments.length?(u=null==(l=e)?null:a,t):u?l:null},oi(t,o)},uo.layout.cluster=function(){function t(t,a){var o,s=e.call(this,t,a),l=s[0],u=0;li(l,function(t){var e=t.children;e&&e.length?(t.x=Bi(e),t.y=Ni(e)):(t.x=o?u+=r(t,o):0,t.y=0,o=t)});var c=Ui(l),h=Vi(l),f=c.x-r(c,h)/2,d=h.x+r(h,c)/2;return li(l,i?function(t){t.x=(t.x-l.x)*n[0],t.y=(l.y-t.y)*n[1]}:function(t){t.x=(t.x-f)/(d-f)*n[0],t.y=(1-(l.y?t.y/l.y:1))*n[1]}),s}var e=uo.layout.hierarchy().sort(null).value(null),r=Di,n=[1,1],i=!1;return t.separation=function(e){return arguments.length?(r=e,t):r},t.size=function(e){return arguments.length?(i=null==(n=e),t):i?null:n},t.nodeSize=function(e){return arguments.length?(i=null!=(n=e),t):i?n:null},oi(t,e)},uo.layout.treemap=function(){function t(t,e){for(var r,n,i=-1,a=t.length;++i<a;)n=(r=t[i]).value*(e<0?0:e),r.area=isNaN(n)||n<=0?0:n}function e(r){var a=r.children;if(a&&a.length){var o,s,l,u=h(r),c=[],f=a.slice(),p=1/0,m=\"slice\"===d?u.dx:\"dice\"===d?u.dy:\"slice-dice\"===d?1&r.depth?u.dy:u.dx:Math.min(u.dx,u.dy);for(t(f,u.dx*u.dy/r.value),c.area=0;(l=f.length)>0;)c.push(o=f[l-1]),c.area+=o.area,\"squarify\"!==d||(s=n(c,m))<=p?(f.pop(),p=s):(c.area-=c.pop().area,i(c,m,u,!1),m=Math.min(u.dx,u.dy),c.length=c.area=0,p=1/0);c.length&&(i(c,m,u,!0),c.length=c.area=0),a.forEach(e)}}function r(e){var n=e.children;if(n&&n.length){var a,o=h(e),s=n.slice(),l=[];for(t(s,o.dx*o.dy/e.value),l.area=0;a=s.pop();)l.push(a),l.area+=a.area,null!=a.z&&(i(l,a.z?o.dx:o.dy,o,!s.length),l.length=l.area=0);n.forEach(r)}}function n(t,e){for(var r,n=t.area,i=0,a=1/0,o=-1,s=t.length;++o<s;)(r=t[o].area)&&(r<a&&(a=r),r>i&&(i=r));return n*=n,e*=e,n?Math.max(e*i*p/n,n/(e*a*p)):1/0}function i(t,e,r,n){var i,a=-1,o=t.length,s=r.x,u=r.y,c=e?l(t.area/e):0;if(e==r.dx){for((n||c>r.dy)&&(c=r.dy);++a<o;)i=t[a],i.x=s,i.y=u,i.dy=c,s+=i.dx=Math.min(r.x+r.dx-s,c?l(i.area/c):0);i.z=!0,i.dx+=r.x+r.dx-s,r.y+=c,r.dy-=c}else{for((n||c>r.dx)&&(c=r.dx);++a<o;)i=t[a],i.x=s,i.y=u,i.dx=c,u+=i.dy=Math.min(r.y+r.dy-u,c?l(i.area/c):0);i.z=!1,i.dy+=r.y+r.dy-u,r.x+=c,r.dx-=c}}function a(n){var i=o||s(n),a=i[0];return a.x=a.y=0,a.value?(a.dx=u[0],a.dy=u[1]):a.dx=a.dy=0,o&&s.revalue(a),t([a],a.dx*a.dy/a.value),(o?r:e)(a),f&&(o=i),i}var o,s=uo.layout.hierarchy(),l=Math.round,u=[1,1],c=null,h=Hi,f=!1,d=\"squarify\",p=.5*(1+Math.sqrt(5));return a.size=function(t){return arguments.length?(u=t,a):u},a.padding=function(t){function e(e){var r=t.call(a,e,e.depth);return null==r?Hi(e):qi(e,\"number\"==typeof r?[r,r,r,r]:r)}function r(e){return qi(e,t)}if(!arguments.length)return c;var n;return h=null==(c=t)?Hi:\"function\"==(n=typeof t)?e:\"number\"===n?(t=[t,t,t,t],r):r,a},a.round=function(t){return arguments.length?(l=t?Math.round:Number,a):l!=Number},a.sticky=function(t){return arguments.length?(f=t,o=null,a):f},a.ratio=function(t){return arguments.length?(p=t,a):p},a.mode=function(t){return arguments.length?(d=t+\"\",a):d},oi(a,s)},uo.random={normal:function(t,e){var r=arguments.length;return r<2&&(e=1),r<1&&(t=0),function(){var r,n,i;do{r=2*Math.random()-1,n=2*Math.random()-1,i=r*r+n*n}while(!i||i>1);return t+e*r*Math.sqrt(-2*Math.log(i)/i)}},logNormal:function(){var t=uo.random.normal.apply(uo,arguments);return function(){return Math.exp(t())}},bates:function(t){var e=uo.random.irwinHall(t);return function(){return e()/t}},irwinHall:function(t){return function(){for(var e=0,r=0;r<t;r++)e+=Math.random();return e}}},uo.scale={};var wl={floor:x,ceil:x};uo.scale.linear=function(){return Ki([0,1],[0,1],_n,!1)};var Ml={s:1,g:1,p:1,r:1,e:1};uo.scale.log=function(){return aa(uo.scale.linear().domain([0,1]),10,!0,[1,10])};var kl=uo.format(\".0e\"),Al={floor:function(t){return-Math.ceil(-t)},ceil:function(t){return-Math.floor(-t)}};uo.scale.pow=function(){return oa(uo.scale.linear(),1,[0,1])},uo.scale.sqrt=function(){return uo.scale.pow().exponent(.5)},uo.scale.ordinal=function(){return la([],{t:\"range\",a:[[]]})},uo.scale.category10=function(){return uo.scale.ordinal().range(Tl)},uo.scale.category20=function(){return uo.scale.ordinal().range(Sl)},uo.scale.category20b=function(){return uo.scale.ordinal().range(El)},uo.scale.category20c=function(){return uo.scale.ordinal().range(Ll)};var Tl=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(_t),Sl=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(_t),El=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(_t),Ll=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(_t);uo.scale.quantile=function(){return ua([],[])},uo.scale.quantize=function(){return ca(0,1,[0,1])},uo.scale.threshold=function(){return ha([.5],[0,1])},uo.scale.identity=function(){return fa([0,1])},uo.svg={},uo.svg.arc=function(){function t(){var t=Math.max(0,+r.apply(this,arguments)),u=Math.max(0,+n.apply(this,arguments)),c=o.apply(this,arguments)-Vo,h=s.apply(this,arguments)-Vo,f=Math.abs(h-c),d=c>h?0:1;if(u<t&&(p=u,u=t,t=p),f>=Uo)return e(u,d)+(t?e(t,1-d):\"\")+\"Z\";var p,m,v,g,y,b,x,_,w,M,k,A,T=0,S=0,E=[];if((g=(+l.apply(this,arguments)||0)/2)&&(v=a===Cl?Math.sqrt(t*t+u*u):+a.apply(this,arguments),d||(S*=-1),u&&(S=nt(v/u*Math.sin(g))),t&&(T=nt(v/t*Math.sin(g)))),u){y=u*Math.cos(c+S),b=u*Math.sin(c+S),x=u*Math.cos(h-S),_=u*Math.sin(h-S);var L=Math.abs(h-c-2*S)<=No?0:1;if(S&&ba(y,b,x,_)===d^L){var C=(c+h)/2;y=u*Math.cos(C),b=u*Math.sin(C),x=_=null}}else y=b=0;if(t){w=t*Math.cos(h-T),M=t*Math.sin(h-T),k=t*Math.cos(c+T),A=t*Math.sin(c+T);var I=Math.abs(c-h+2*T)<=No?0:1;if(T&&ba(w,M,k,A)===1-d^I){var z=(c+h)/2;w=t*Math.cos(z),M=t*Math.sin(z),k=A=null}}else w=M=0;if(f>Fo&&(p=Math.min(Math.abs(u-t)/2,+i.apply(this,arguments)))>.001){m=t<u^d?0:1;var D=p,P=p;if(f<No){var O=null==k?[w,M]:null==x?[y,b]:Or([y,b],[k,A],[x,_],[w,M]),R=y-O[0],F=b-O[1],j=x-O[0],N=_-O[1],B=1/Math.sin(Math.acos((R*j+F*N)/(Math.sqrt(R*R+F*F)*Math.sqrt(j*j+N*N)))/2),U=Math.sqrt(O[0]*O[0]+O[1]*O[1]);P=Math.min(p,(t-U)/(B-1)),D=Math.min(p,(u-U)/(B+1))}if(null!=x){var V=xa(null==k?[w,M]:[k,A],[y,b],u,D,d),H=xa([x,_],[w,M],u,D,d);p===D?E.push(\"M\",V[0],\"A\",D,\",\",D,\" 0 0,\",m,\" \",V[1],\"A\",u,\",\",u,\" 0 \",1-d^ba(V[1][0],V[1][1],H[1][0],H[1][1]),\",\",d,\" \",H[1],\"A\",D,\",\",D,\" 0 0,\",m,\" \",H[0]):E.push(\"M\",V[0],\"A\",D,\",\",D,\" 0 1,\",m,\" \",H[0])}else E.push(\"M\",y,\",\",b);if(null!=k){var q=xa([y,b],[k,A],t,-P,d),G=xa([w,M],null==x?[y,b]:[x,_],t,-P,d);p===P?E.push(\"L\",G[0],\"A\",P,\",\",P,\" 0 0,\",m,\" \",G[1],\"A\",t,\",\",t,\" 0 \",d^ba(G[1][0],G[1][1],q[1][0],q[1][1]),\",\",1-d,\" \",q[1],\"A\",P,\",\",P,\" 0 0,\",m,\" \",q[0]):E.push(\"L\",G[0],\"A\",P,\",\",P,\" 0 0,\",m,\" \",q[0])}else E.push(\"L\",w,\",\",M)}else E.push(\"M\",y,\",\",b),null!=x&&E.push(\"A\",u,\",\",u,\" 0 \",L,\",\",d,\" \",x,\",\",_),E.push(\"L\",w,\",\",M),null!=k&&E.push(\"A\",t,\",\",t,\" 0 \",I,\",\",1-d,\" \",k,\",\",A);return E.push(\"Z\"),E.join(\"\")}function e(t,e){return\"M0,\"+t+\"A\"+t+\",\"+t+\" 0 1,\"+e+\" 0,\"+-t+\"A\"+t+\",\"+t+\" 0 1,\"+e+\" 0,\"+t}var r=pa,n=ma,i=da,a=Cl,o=va,s=ga,l=ya;return t.innerRadius=function(e){return arguments.length?(r=Et(e),t):r},t.outerRadius=function(e){return arguments.length?(n=Et(e),t):n},t.cornerRadius=function(e){return arguments.length?(i=Et(e),t):i},t.padRadius=function(e){return arguments.length?(a=e==Cl?Cl:Et(e),t):a},t.startAngle=function(e){return arguments.length?(o=Et(e),t):o},t.endAngle=function(e){return arguments.length?(s=Et(e),t):s},t.padAngle=function(e){return arguments.length?(l=Et(e),t):l},t.centroid=function(){var t=(+r.apply(this,arguments)+ +n.apply(this,arguments))/2,e=(+o.apply(this,arguments)+ +s.apply(this,arguments))/2-Vo;return[Math.cos(e)*t,Math.sin(e)*t]},t};var Cl=\"auto\";uo.svg.line=function(){return _a(x)};var Il=uo.map({linear:wa,\"linear-closed\":Ma,step:ka,\"step-before\":Aa,\"step-after\":Ta,basis:za,\"basis-open\":Da,\"basis-closed\":Pa,bundle:Oa,cardinal:La,\"cardinal-open\":Sa,\"cardinal-closed\":Ea,monotone:Ua});Il.forEach(function(t,e){e.key=t,e.closed=/-closed$/.test(t)});var zl=[0,2/3,1/3,0],Dl=[0,1/3,2/3,0],Pl=[0,1/6,2/3,1/6];uo.svg.line.radial=function(){var t=_a(Va);return t.radius=t.x,delete t.x,t.angle=t.y,delete t.y,t},Aa.reverse=Ta,Ta.reverse=Aa,uo.svg.area=function(){return Ha(x)},uo.svg.area.radial=function(){var t=Ha(Va);return t.radius=t.x,delete t.x,t.innerRadius=t.x0,delete t.x0,t.outerRadius=t.x1,delete t.x1,t.angle=t.y,delete t.y,t.startAngle=t.y0,delete t.y0,t.endAngle=t.y1,delete t.y1,t},uo.svg.chord=function(){function t(t,s){var l=e(this,a,t,s),u=e(this,o,t,s);return\"M\"+l.p0+n(l.r,l.p1,l.a1-l.a0)+(r(l,u)?i(l.r,l.p1,l.r,l.p0):i(l.r,l.p1,u.r,u.p0)+n(u.r,u.p1,u.a1-u.a0)+i(u.r,u.p1,l.r,l.p0))+\"Z\"}function e(t,e,r,n){var i=e.call(t,r,n),a=s.call(t,i,n),o=l.call(t,i,n)-Vo,c=u.call(t,i,n)-Vo;return{r:a,a0:o,a1:c,p0:[a*Math.cos(o),a*Math.sin(o)],p1:[a*Math.cos(c),a*Math.sin(c)]}}function r(t,e){return t.a0==e.a0&&t.a1==e.a1}function n(t,e,r){return\"A\"+t+\",\"+t+\" 0 \"+ +(r>No)+\",1 \"+e}function i(t,e,r,n){return\"Q 0,0 \"+n}var a=xr,o=_r,s=qa,l=va,u=ga;return t.radius=function(e){return arguments.length?(s=Et(e),t):s},t.source=function(e){return arguments.length?(a=Et(e),t):a},t.target=function(e){return arguments.length?(o=Et(e),t):o},t.startAngle=function(e){return arguments.length?(l=Et(e),t):l},t.endAngle=function(e){return arguments.length?(u=Et(e),t):u},t},uo.svg.diagonal=function(){function t(t,i){var a=e.call(this,t,i),o=r.call(this,t,i),s=(a.y+o.y)/2,l=[a,{x:a.x,y:s},{x:o.x,y:s},o];return l=l.map(n),\"M\"+l[0]+\"C\"+l[1]+\" \"+l[2]+\" \"+l[3]}var e=xr,r=_r,n=Ga;return t.source=function(r){return arguments.length?(e=Et(r),t):e},t.target=function(e){return arguments.length?(r=Et(e),t):r},t.projection=function(e){return arguments.length?(n=e,t):n},t},uo.svg.diagonal.radial=function(){var t=uo.svg.diagonal(),e=Ga,r=t.projection;return t.projection=function(t){return arguments.length?r(Ya(e=t)):e},t},uo.svg.symbol=function(){function t(t,n){return(Ol.get(e.call(this,t,n))||Za)(r.call(this,t,n))}var e=Xa,r=Wa;return t.type=function(r){return arguments.length?(e=Et(r),t):e},t.size=function(e){return arguments.length?(r=Et(e),t):r},t};var Ol=uo.map({circle:Za,cross:function(t){var e=Math.sqrt(t/5)/2;return\"M\"+-3*e+\",\"+-e+\"H\"+-e+\"V\"+-3*e+\"H\"+e+\"V\"+-e+\"H\"+3*e+\"V\"+e+\"H\"+e+\"V\"+3*e+\"H\"+-e+\"V\"+e+\"H\"+-3*e+\"Z\"},diamond:function(t){var e=Math.sqrt(t/(2*Fl)),r=e*Fl;return\"M0,\"+-e+\"L\"+r+\",0 0,\"+e+\" \"+-r+\",0Z\"},square:function(t){var e=Math.sqrt(t)/2;return\"M\"+-e+\",\"+-e+\"L\"+e+\",\"+-e+\" \"+e+\",\"+e+\" \"+-e+\",\"+e+\"Z\"},\"triangle-down\":function(t){var e=Math.sqrt(t/Rl),r=e*Rl/2;return\"M0,\"+r+\"L\"+e+\",\"+-r+\" \"+-e+\",\"+-r+\"Z\"},\"triangle-up\":function(t){var e=Math.sqrt(t/Rl),r=e*Rl/2;return\"M0,\"+-r+\"L\"+e+\",\"+r+\" \"+-e+\",\"+r+\"Z\"}});uo.svg.symbolTypes=Ol.keys();var Rl=Math.sqrt(3),Fl=Math.tan(30*Ho);Lo.transition=function(t){for(var e,r,n=jl||++Vl,i=to(t),a=[],o=Nl||{time:Date.now(),ease:En,delay:0,duration:250},s=-1,l=this.length;++s<l;){a.push(e=[]);for(var u=this[s],c=-1,h=u.length;++c<h;)(r=u[c])&&eo(r,c,i,n,o),e.push(r)}return Ka(a,i,n)},Lo.interrupt=function(t){return this.each(null==t?Bl:Ja(to(t)))};var jl,Nl,Bl=Ja(to()),Ul=[],Vl=0;Ul.call=Lo.call,Ul.empty=Lo.empty,Ul.node=Lo.node,Ul.size=Lo.size,uo.transition=function(t,e){\n", "return t&&t.transition?jl?t.transition(e):t:uo.selection().transition(t)},uo.transition.prototype=Ul,Ul.select=function(t){var e,r,n,i=this.id,a=this.namespace,o=[];t=C(t);for(var s=-1,l=this.length;++s<l;){o.push(e=[]);for(var u=this[s],c=-1,h=u.length;++c<h;)(n=u[c])&&(r=t.call(n,n.__data__,c,s))?(\"__data__\"in n&&(r.__data__=n.__data__),eo(r,c,a,i,n[a][i]),e.push(r)):e.push(null)}return Ka(o,a,i)},Ul.selectAll=function(t){var e,r,n,i,a,o=this.id,s=this.namespace,l=[];t=I(t);for(var u=-1,c=this.length;++u<c;)for(var h=this[u],f=-1,d=h.length;++f<d;)if(n=h[f]){a=n[s][o],r=t.call(n,n.__data__,f,u),l.push(e=[]);for(var p=-1,m=r.length;++p<m;)(i=r[p])&&eo(i,p,s,o,a),e.push(i)}return Ka(l,s,o)},Ul.filter=function(t){var e,r,n,i=[];\"function\"!=typeof t&&(t=H(t));for(var a=0,o=this.length;a<o;a++){i.push(e=[]);for(var r=this[a],s=0,l=r.length;s<l;s++)(n=r[s])&&t.call(n,n.__data__,s,a)&&e.push(n)}return Ka(i,this.namespace,this.id)},Ul.tween=function(t,e){var r=this.id,n=this.namespace;return arguments.length<2?this.node()[n][r].tween.get(t):G(this,null==e?function(e){e[n][r].tween.remove(t)}:function(i){i[n][r].tween.set(t,e)})},Ul.attr=function(t,e){function r(){this.removeAttribute(s)}function n(){this.removeAttributeNS(s.space,s.local)}function i(t){return null==t?r:(t+=\"\",function(){var e,r=this.getAttribute(s);return r!==t&&(e=o(r,t),function(t){this.setAttribute(s,e(t))})})}function a(t){return null==t?n:(t+=\"\",function(){var e,r=this.getAttributeNS(s.space,s.local);return r!==t&&(e=o(r,t),function(t){this.setAttributeNS(s.space,s.local,e(t))})})}if(arguments.length<2){for(e in t)this.attr(e,t[e]);return this}var o=\"transform\"==t?Zn:_n,s=uo.ns.qualify(t);return Qa(this,\"attr.\"+t,e,s.local?a:i)},Ul.attrTween=function(t,e){function r(t,r){var n=e.call(this,t,r,this.getAttribute(i));return n&&function(t){this.setAttribute(i,n(t))}}function n(t,r){var n=e.call(this,t,r,this.getAttributeNS(i.space,i.local));return n&&function(t){this.setAttributeNS(i.space,i.local,n(t))}}var i=uo.ns.qualify(t);return this.tween(\"attr.\"+t,i.local?n:r)},Ul.style=function(t,e,r){function i(){this.style.removeProperty(t)}function a(e){return null==e?i:(e+=\"\",function(){var i,a=n(this).getComputedStyle(this,null).getPropertyValue(t);return a!==e&&(i=_n(a,e),function(e){this.style.setProperty(t,i(e),r)})})}var o=arguments.length;if(o<3){if(\"string\"!=typeof t){o<2&&(e=\"\");for(r in t)this.style(r,t[r],e);return this}r=\"\"}return Qa(this,\"style.\"+t,e,a)},Ul.styleTween=function(t,e,r){function i(i,a){var o=e.call(this,i,a,n(this).getComputedStyle(this,null).getPropertyValue(t));return o&&function(e){this.style.setProperty(t,o(e),r)}}return arguments.length<3&&(r=\"\"),this.tween(\"style.\"+t,i)},Ul.text=function(t){return Qa(this,\"text\",t,$a)},Ul.remove=function(){var t=this.namespace;return this.each(\"end.transition\",function(){var e;this[t].count<2&&(e=this.parentNode)&&e.removeChild(this)})},Ul.ease=function(t){var e=this.id,r=this.namespace;return arguments.length<1?this.node()[r][e].ease:(\"function\"!=typeof t&&(t=uo.ease.apply(uo,arguments)),G(this,function(n){n[r][e].ease=t}))},Ul.delay=function(t){var e=this.id,r=this.namespace;return arguments.length<1?this.node()[r][e].delay:G(this,\"function\"==typeof t?function(n,i,a){n[r][e].delay=+t.call(n,n.__data__,i,a)}:(t=+t,function(n){n[r][e].delay=t}))},Ul.duration=function(t){var e=this.id,r=this.namespace;return arguments.length<1?this.node()[r][e].duration:G(this,\"function\"==typeof t?function(n,i,a){n[r][e].duration=Math.max(1,t.call(n,n.__data__,i,a))}:(t=Math.max(1,t),function(n){n[r][e].duration=t}))},Ul.each=function(t,e){var r=this.id,n=this.namespace;if(arguments.length<2){var i=Nl,a=jl;try{jl=r,G(this,function(e,i,a){Nl=e[n][r],t.call(e,e.__data__,i,a)})}finally{Nl=i,jl=a}}else G(this,function(i){var a=i[n][r];(a.event||(a.event=uo.dispatch(\"start\",\"end\",\"interrupt\"))).on(t,e)});return this},Ul.transition=function(){for(var t,e,r,n,i=this.id,a=++Vl,o=this.namespace,s=[],l=0,u=this.length;l<u;l++){s.push(t=[]);for(var e=this[l],c=0,h=e.length;c<h;c++)(r=e[c])&&(n=r[o][i],eo(r,c,o,a,{time:n.time,ease:n.ease,delay:n.delay+n.duration,duration:n.duration})),t.push(r)}return Ka(s,o,a)},uo.svg.axis=function(){function t(t){t.each(function(){var t,u=uo.select(this),c=this.__chart__||r,h=this.__chart__=r.copy(),f=null==l?h.ticks?h.ticks.apply(h,s):h.domain():l,d=null==e?h.tickFormat?h.tickFormat.apply(h,s):x:e,p=u.selectAll(\".tick\").data(f,h),m=p.enter().insert(\"g\",\".domain\").attr(\"class\",\"tick\").style(\"opacity\",Fo),v=uo.transition(p.exit()).style(\"opacity\",Fo).remove(),g=uo.transition(p.order()).style(\"opacity\",1),y=Math.max(i,0)+o,b=Yi(h),_=u.selectAll(\".domain\").data([0]),w=(_.enter().append(\"path\").attr(\"class\",\"domain\"),uo.transition(_));m.append(\"line\"),m.append(\"text\");var M,k,A,T,S=m.select(\"line\"),E=g.select(\"line\"),L=p.select(\"text\").text(d),C=m.select(\"text\"),I=g.select(\"text\"),z=\"top\"===n||\"left\"===n?-1:1;if(\"bottom\"===n||\"top\"===n?(t=ro,M=\"x\",A=\"y\",k=\"x2\",T=\"y2\",L.attr(\"dy\",z<0?\"0em\":\".71em\").style(\"text-anchor\",\"middle\"),w.attr(\"d\",\"M\"+b[0]+\",\"+z*a+\"V0H\"+b[1]+\"V\"+z*a)):(t=no,M=\"y\",A=\"x\",k=\"y2\",T=\"x2\",L.attr(\"dy\",\".32em\").style(\"text-anchor\",z<0?\"end\":\"start\"),w.attr(\"d\",\"M\"+z*a+\",\"+b[0]+\"H0V\"+b[1]+\"H\"+z*a)),S.attr(T,z*i),C.attr(A,z*y),E.attr(k,0).attr(T,z*i),I.attr(M,0).attr(A,z*y),h.rangeBand){var D=h,P=D.rangeBand()/2;c=h=function(t){return D(t)+P}}else c.rangeBand?c=h:v.call(t,h,c);m.call(t,c,h),g.call(t,h,h)})}var e,r=uo.scale.linear(),n=Hl,i=6,a=6,o=3,s=[10],l=null;return t.scale=function(e){return arguments.length?(r=e,t):r},t.orient=function(e){return arguments.length?(n=e in ql?e+\"\":Hl,t):n},t.ticks=function(){return arguments.length?(s=ho(arguments),t):s},t.tickValues=function(e){return arguments.length?(l=e,t):l},t.tickFormat=function(r){return arguments.length?(e=r,t):e},t.tickSize=function(e){var r=arguments.length;return r?(i=+e,a=+arguments[r-1],t):i},t.innerTickSize=function(e){return arguments.length?(i=+e,t):i},t.outerTickSize=function(e){return arguments.length?(a=+e,t):a},t.tickPadding=function(e){return arguments.length?(o=+e,t):o},t.tickSubdivide=function(){return arguments.length&&t},t};var Hl=\"bottom\",ql={top:1,right:1,bottom:1,left:1};uo.svg.brush=function(){function t(n){n.each(function(){var n=uo.select(this).style(\"pointer-events\",\"all\").style(\"-webkit-tap-highlight-color\",\"rgba(0,0,0,0)\").on(\"mousedown.brush\",a).on(\"touchstart.brush\",a),o=n.selectAll(\".background\").data([0]);o.enter().append(\"rect\").attr(\"class\",\"background\").style(\"visibility\",\"hidden\").style(\"cursor\",\"crosshair\"),n.selectAll(\".extent\").data([0]).enter().append(\"rect\").attr(\"class\",\"extent\").style(\"cursor\",\"move\");var s=n.selectAll(\".resize\").data(m,x);s.exit().remove(),s.enter().append(\"g\").attr(\"class\",function(t){return\"resize \"+t}).style(\"cursor\",function(t){return Gl[t]}).append(\"rect\").attr(\"x\",function(t){return/[ew]$/.test(t)?-3:null}).attr(\"y\",function(t){return/^[ns]/.test(t)?-3:null}).attr(\"width\",6).attr(\"height\",6).style(\"visibility\",\"hidden\"),s.style(\"display\",t.empty()?\"none\":null);var l,h=uo.transition(n),f=uo.transition(o);u&&(l=Yi(u),f.attr(\"x\",l[0]).attr(\"width\",l[1]-l[0]),r(h)),c&&(l=Yi(c),f.attr(\"y\",l[0]).attr(\"height\",l[1]-l[0]),i(h)),e(h)})}function e(t){t.selectAll(\".resize\").attr(\"transform\",function(t){return\"translate(\"+h[+/e$/.test(t)]+\",\"+f[+/^s/.test(t)]+\")\"})}function r(t){t.select(\".extent\").attr(\"x\",h[0]),t.selectAll(\".extent,.n>rect,.s>rect\").attr(\"width\",h[1]-h[0])}function i(t){t.select(\".extent\").attr(\"y\",f[0]),t.selectAll(\".extent,.e>rect,.w>rect\").attr(\"height\",f[1]-f[0])}function a(){function a(){32==uo.event.keyCode&&(L||(b=null,I[0]-=h[1],I[1]-=f[1],L=2),T())}function m(){32==uo.event.keyCode&&2==L&&(I[0]+=h[1],I[1]+=f[1],L=0,T())}function v(){var t=uo.mouse(_),n=!1;x&&(t[0]+=x[0],t[1]+=x[1]),L||(uo.event.altKey?(b||(b=[(h[0]+h[1])/2,(f[0]+f[1])/2]),I[0]=h[+(t[0]<b[0])],I[1]=f[+(t[1]<b[1])]):b=null),S&&g(t,u,0)&&(r(k),n=!0),E&&g(t,c,1)&&(i(k),n=!0),n&&(e(k),M({type:\"brush\",mode:L?\"move\":\"resize\"}))}function g(t,e,r){var n,i,a=Yi(e),l=a[0],u=a[1],c=I[r],m=r?f:h,v=m[1]-m[0];if(L&&(l-=c,u-=v+c),n=(r?p:d)?Math.max(l,Math.min(u,t[r])):t[r],L?i=(n+=c)+v:(b&&(c=Math.max(l,Math.min(u,2*b[r]-n))),c<n?(i=n,n=c):i=c),m[0]!=n||m[1]!=i)return r?s=null:o=null,m[0]=n,m[1]=i,!0}function y(){v(),k.style(\"pointer-events\",\"all\").selectAll(\".resize\").style(\"display\",t.empty()?\"none\":null),uo.select(\"body\").style(\"cursor\",null),z.on(\"mousemove.brush\",null).on(\"mouseup.brush\",null).on(\"touchmove.brush\",null).on(\"touchend.brush\",null).on(\"keydown.brush\",null).on(\"keyup.brush\",null),C(),M({type:\"brushend\"})}var b,x,_=this,w=uo.select(uo.event.target),M=l.of(_,arguments),k=uo.select(_),A=w.datum(),S=!/^(n|s)$/.test(A)&&u,E=!/^(e|w)$/.test(A)&&c,L=w.classed(\"extent\"),C=K(_),I=uo.mouse(_),z=uo.select(n(_)).on(\"keydown.brush\",a).on(\"keyup.brush\",m);if(uo.event.changedTouches?z.on(\"touchmove.brush\",v).on(\"touchend.brush\",y):z.on(\"mousemove.brush\",v).on(\"mouseup.brush\",y),k.interrupt().selectAll(\"*\").interrupt(),L)I[0]=h[0]-I[0],I[1]=f[0]-I[1];else if(A){var D=+/w$/.test(A),P=+/^n/.test(A);x=[h[1-D]-I[0],f[1-P]-I[1]],I[0]=h[D],I[1]=f[P]}else uo.event.altKey&&(b=I.slice());k.style(\"pointer-events\",\"none\").selectAll(\".resize\").style(\"display\",null),uo.select(\"body\").style(\"cursor\",w.style(\"cursor\")),M({type:\"brushstart\"}),v()}var o,s,l=E(t,\"brushstart\",\"brush\",\"brushend\"),u=null,c=null,h=[0,0],f=[0,0],d=!0,p=!0,m=Yl[0];return t.event=function(t){t.each(function(){var t=l.of(this,arguments),e={x:h,y:f,i:o,j:s},r=this.__chart__||e;this.__chart__=e,jl?uo.select(this).transition().each(\"start.brush\",function(){o=r.i,s=r.j,h=r.x,f=r.y,t({type:\"brushstart\"})}).tween(\"brush:brush\",function(){var r=wn(h,e.x),n=wn(f,e.y);return o=s=null,function(i){h=e.x=r(i),f=e.y=n(i),t({type:\"brush\",mode:\"resize\"})}}).each(\"end.brush\",function(){o=e.i,s=e.j,t({type:\"brush\",mode:\"resize\"}),t({type:\"brushend\"})}):(t({type:\"brushstart\"}),t({type:\"brush\",mode:\"resize\"}),t({type:\"brushend\"}))})},t.x=function(e){return arguments.length?(u=e,m=Yl[!u<<1|!c],t):u},t.y=function(e){return arguments.length?(c=e,m=Yl[!u<<1|!c],t):c},t.clamp=function(e){return arguments.length?(u&&c?(d=!!e[0],p=!!e[1]):u?d=!!e:c&&(p=!!e),t):u&&c?[d,p]:u?d:c?p:null},t.extent=function(e){var r,n,i,a,l;return arguments.length?(u&&(r=e[0],n=e[1],c&&(r=r[0],n=n[0]),o=[r,n],u.invert&&(r=u(r),n=u(n)),n<r&&(l=r,r=n,n=l),r==h[0]&&n==h[1]||(h=[r,n])),c&&(i=e[0],a=e[1],u&&(i=i[1],a=a[1]),s=[i,a],c.invert&&(i=c(i),a=c(a)),a<i&&(l=i,i=a,a=l),i==f[0]&&a==f[1]||(f=[i,a])),t):(u&&(o?(r=o[0],n=o[1]):(r=h[0],n=h[1],u.invert&&(r=u.invert(r),n=u.invert(n)),n<r&&(l=r,r=n,n=l))),c&&(s?(i=s[0],a=s[1]):(i=f[0],a=f[1],c.invert&&(i=c.invert(i),a=c.invert(a)),a<i&&(l=i,i=a,a=l))),u&&c?[[r,i],[n,a]]:u?[r,n]:c&&[i,a])},t.clear=function(){return t.empty()||(h=[0,0],f=[0,0],o=s=null),t},t.empty=function(){return!!u&&h[0]==h[1]||!!c&&f[0]==f[1]},uo.rebind(t,l,\"on\")};var Gl={n:\"ns-resize\",e:\"ew-resize\",s:\"ns-resize\",w:\"ew-resize\",nw:\"nwse-resize\",ne:\"nesw-resize\",se:\"nwse-resize\",sw:\"nesw-resize\"},Yl=[[\"n\",\"e\",\"s\",\"w\",\"nw\",\"ne\",\"se\",\"sw\"],[\"e\",\"w\"],[\"n\",\"s\"],[]],Wl=fs.format=ys.timeFormat,Xl=Wl.utc,Zl=Xl(\"%Y-%m-%dT%H:%M:%S.%LZ\");Wl.iso=Date.prototype.toISOString&&+new Date(\"2000-01-01T00:00:00.000Z\")?io:Zl,io.parse=function(t){var e=new Date(t);return isNaN(e)?null:e},io.toString=Zl.toString,fs.second=Vt(function(t){return new ds(1e3*Math.floor(t/1e3))},function(t,e){t.setTime(t.getTime()+1e3*Math.floor(e))},function(t){return t.getSeconds()}),fs.seconds=fs.second.range,fs.seconds.utc=fs.second.utc.range,fs.minute=Vt(function(t){return new ds(6e4*Math.floor(t/6e4))},function(t,e){t.setTime(t.getTime()+6e4*Math.floor(e))},function(t){return t.getMinutes()}),fs.minutes=fs.minute.range,fs.minutes.utc=fs.minute.utc.range,fs.hour=Vt(function(t){var e=t.getTimezoneOffset()/60;return new ds(36e5*(Math.floor(t/36e5-e)+e))},function(t,e){t.setTime(t.getTime()+36e5*Math.floor(e))},function(t){return t.getHours()}),fs.hours=fs.hour.range,fs.hours.utc=fs.hour.utc.range,fs.month=Vt(function(t){return t=fs.day(t),t.setDate(1),t},function(t,e){t.setMonth(t.getMonth()+e)},function(t){return t.getMonth()}),fs.months=fs.month.range,fs.months.utc=fs.month.utc.range;var Jl=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],Kl=[[fs.second,1],[fs.second,5],[fs.second,15],[fs.second,30],[fs.minute,1],[fs.minute,5],[fs.minute,15],[fs.minute,30],[fs.hour,1],[fs.hour,3],[fs.hour,6],[fs.hour,12],[fs.day,1],[fs.day,2],[fs.week,1],[fs.month,1],[fs.month,3],[fs.year,1]],Ql=Wl.multi([[\".%L\",function(t){return t.getMilliseconds()}],[\":%S\",function(t){return t.getSeconds()}],[\"%I:%M\",function(t){return t.getMinutes()}],[\"%I %p\",function(t){return t.getHours()}],[\"%a %d\",function(t){return t.getDay()&&1!=t.getDate()}],[\"%b %d\",function(t){return 1!=t.getDate()}],[\"%B\",function(t){return t.getMonth()}],[\"%Y\",Ie]]),$l={range:function(t,e,r){return uo.range(Math.ceil(t/r)*r,+e,r).map(oo)},floor:x,ceil:x};Kl.year=fs.year,fs.scale=function(){return ao(uo.scale.linear(),Kl,Ql)};var tu=Kl.map(function(t){return[t[0].utc,t[1]]}),eu=Xl.multi([[\".%L\",function(t){return t.getUTCMilliseconds()}],[\":%S\",function(t){return t.getUTCSeconds()}],[\"%I:%M\",function(t){return t.getUTCMinutes()}],[\"%I %p\",function(t){return t.getUTCHours()}],[\"%a %d\",function(t){return t.getUTCDay()&&1!=t.getUTCDate()}],[\"%b %d\",function(t){return 1!=t.getUTCDate()}],[\"%B\",function(t){return t.getUTCMonth()}],[\"%Y\",Ie]]);tu.year=fs.year.utc,fs.scale.utc=function(){return ao(uo.scale.linear(),tu,eu)},uo.text=Lt(function(t){return t.responseText}),uo.json=function(t,e){return Ct(t,\"application/json\",so,e)},uo.html=function(t,e){return Ct(t,\"text/html\",lo,e)},uo.xml=Lt(function(t){return t.responseXML}),\"function\"==typeof t&&t.amd?(this.d3=uo,t(uo)):\"object\"==typeof r&&r.exports?r.exports=uo:this.d3=uo}()},{}],123:[function(t,e,r){\"use strict\";function n(t,e){this.point=t,this.index=e}function i(t,e){for(var r=t.point,n=e.point,i=r.length,a=0;a<i;++a){var o=n[a]-r[a];if(o)return o}return 0}function a(t,e,r){if(1===t)return r?[[-1,0]]:[];var n=e.map(function(t,e){return[t[0],e]});n.sort(function(t,e){return t[0]-e[0]});for(var i=new Array(t-1),a=1;a<t;++a){var o=n[a-1],s=n[a];i[a-1]=[o[1],s[1]]}return r&&i.push([-1,i[0][1]],[i[t-1][1],-1]),i}function o(t,e){var r=t.length;if(0===r)return[];var o=t[0].length;if(o<1)return[];if(1===o)return a(r,t,e);for(var u=new Array(r),c=1,h=0;h<r;++h){for(var f=t[h],d=new Array(o+1),p=0,m=0;m<o;++m){var v=f[m];d[m]=v,p+=v*v}d[o]=p,u[h]=new n(d,h),c=Math.max(p,c)}l(u,i),r=u.length;for(var g=new Array(r+o+1),y=new Array(r+o+1),b=(o+1)*(o+1)*c,x=new Array(o+1),h=0;h<=o;++h)x[h]=0;x[o]=b,g[0]=x.slice(),y[0]=-1;for(var h=0;h<=o;++h){var d=x.slice();d[h]=1,g[h+1]=d,y[h+1]=-1}for(var h=0;h<r;++h){var _=u[h];g[h+o+1]=_.point,y[h+o+1]=_.index}var w=s(g,!1);if(w=e?w.filter(function(t){for(var e=0,r=0;r<=o;++r){var n=y[t[r]];if(n<0&&++e>=2)return!1;t[r]=n}return!0}):w.filter(function(t){for(var e=0;e<=o;++e){var r=y[t[e]];if(r<0)return!1;t[e]=r}return!0}),1&o)for(var h=0;h<w.length;++h){var _=w[h],d=_[0];_[0]=_[1],_[1]=d}return w}var s=t(\"incremental-convex-hull\"),l=t(\"uniq\");e.exports=o},{\"incremental-convex-hull\":290,uniq:543}],124:[function(t,e,r){(function(t){function r(t,e){return d[0]=t,d[1]=e,f[0]}function n(t){return f[0]=t,d[0]}function i(t){return f[0]=t,d[1]}function a(t,e){return d[1]=t,d[0]=e,f[0]}function o(t){return f[0]=t,d[1]}function s(t){return f[0]=t,d[0]}function l(t,e){return p.writeUInt32LE(t,0,!0),p.writeUInt32LE(e,4,!0),p.readDoubleLE(0,!0)}function u(t){return p.writeDoubleLE(t,0,!0),p.readUInt32LE(0,!0)}function c(t){return p.writeDoubleLE(t,0,!0),p.readUInt32LE(4,!0)}var h=!1;if(\"undefined\"!=typeof Float64Array){var f=new Float64Array(1),d=new Uint32Array(f.buffer);f[0]=1,h=!0,1072693248===d[1]?(e.exports=function(t){return f[0]=t,[d[0],d[1]]},e.exports.pack=r,e.exports.lo=n,e.exports.hi=i):1072693248===d[0]?(e.exports=function(t){return f[0]=t,[d[1],d[0]]},e.exports.pack=a,e.exports.lo=o,e.exports.hi=s):h=!1}if(!h){var p=new t(8);e.exports=function(t){return p.writeDoubleLE(t,0,!0),[p.readUInt32LE(0,!0),p.readUInt32LE(4,!0)]},e.exports.pack=l,e.exports.lo=u,e.exports.hi=c}e.exports.sign=function(t){return e.exports.hi(t)>>>31},e.exports.exponent=function(t){return(e.exports.hi(t)<<1>>>21)-1023},e.exports.fraction=function(t){var r=e.exports.lo(t),n=e.exports.hi(t),i=1048575&n;return 2146435072&n&&(i+=1<<20),[r,i]},e.exports.denormalized=function(t){return!(2146435072&e.exports.hi(t))}}).call(this,t(\"buffer\").Buffer)},{buffer:77}],125:[function(t,e,r){\"use strict\";function n(t,e,r){var i=0|t[r];if(i<=0)return[];var a,o=new Array(i);if(r===t.length-1)for(a=0;a<i;++a)o[a]=e;else for(a=0;a<i;++a)o[a]=n(t,e,r+1);return o}function i(t,e){var r,n;for(r=new Array(t),n=0;n<t;++n)r[n]=e;return r}function a(t,e){switch(void 0===e&&(e=0),typeof t){case\"number\":if(t>0)return i(0|t,e);break;case\"object\":if(\"number\"==typeof t.length)return n(t,e,0)}return[]}e.exports=a},{}],126:[function(t,e,r){\"use strict\";function n(t,e,r){r=r||2;var n=e&&e.length,a=n?e[0]*r:t.length,s=i(t,0,a,r,!0),l=[];if(!s)return l;var u,c,f,d,p,m,v;if(n&&(s=h(t,e,s,r)),t.length>80*r){u=f=t[0],c=d=t[1];for(var g=r;g<a;g+=r)p=t[g],m=t[g+1],p<u&&(u=p),m<c&&(c=m),p>f&&(f=p),m>d&&(d=m);v=Math.max(f-u,d-c)}return o(s,l,r,u,c,v),l}function i(t,e,r,n,i){var a,o;if(i===I(t,e,r,n)>0)for(a=e;a<r;a+=n)o=E(a,t[a],t[a+1],o);else for(a=r-n;a>=e;a-=n)o=E(a,t[a],t[a+1],o);return o&&w(o,o.next)&&(L(o),o=o.next),o}function a(t,e){if(!t)return t;e||(e=t);var r,n=t;do{if(r=!1,n.steiner||!w(n,n.next)&&0!==_(n.prev,n,n.next))n=n.next;else{if(L(n),(n=e=n.prev)===n.next)return null;r=!0}}while(r||n!==e);return e}function o(t,e,r,n,i,h,f){if(t){!f&&h&&m(t,n,i,h);for(var d,p,v=t;t.prev!==t.next;)if(d=t.prev,p=t.next,h?l(t,n,i,h):s(t))e.push(d.i/r),e.push(t.i/r),e.push(p.i/r),L(t),t=p.next,v=p.next;else if((t=p)===v){f?1===f?(t=u(t,e,r),o(t,e,r,n,i,h,2)):2===f&&c(t,e,r,n,i,h):o(a(t),e,r,n,i,h,1);break}}}function s(t){var e=t.prev,r=t,n=t.next;if(_(e,r,n)>=0)return!1;for(var i=t.next.next;i!==t.prev;){if(b(e.x,e.y,r.x,r.y,n.x,n.y,i.x,i.y)&&_(i.prev,i,i.next)>=0)return!1;i=i.next}return!0}function l(t,e,r,n){var i=t.prev,a=t,o=t.next;if(_(i,a,o)>=0)return!1;for(var s=i.x<a.x?i.x<o.x?i.x:o.x:a.x<o.x?a.x:o.x,l=i.y<a.y?i.y<o.y?i.y:o.y:a.y<o.y?a.y:o.y,u=i.x>a.x?i.x>o.x?i.x:o.x:a.x>o.x?a.x:o.x,c=i.y>a.y?i.y>o.y?i.y:o.y:a.y>o.y?a.y:o.y,h=g(s,l,e,r,n),f=g(u,c,e,r,n),d=t.nextZ;d&&d.z<=f;){if(d!==t.prev&&d!==t.next&&b(i.x,i.y,a.x,a.y,o.x,o.y,d.x,d.y)&&_(d.prev,d,d.next)>=0)return!1;d=d.nextZ}for(d=t.prevZ;d&&d.z>=h;){if(d!==t.prev&&d!==t.next&&b(i.x,i.y,a.x,a.y,o.x,o.y,d.x,d.y)&&_(d.prev,d,d.next)>=0)return!1;d=d.prevZ}return!0}function u(t,e,r){var n=t;do{var i=n.prev,a=n.next.next;!w(i,a)&&M(i,n,n.next,a)&&A(i,a)&&A(a,i)&&(e.push(i.i/r),e.push(n.i/r),e.push(a.i/r),L(n),L(n.next),n=t=a),n=n.next}while(n!==t);return n}function c(t,e,r,n,i,s){var l=t;do{for(var u=l.next.next;u!==l.prev;){if(l.i!==u.i&&x(l,u)){var c=S(l,u);return l=a(l,l.next),c=a(c,c.next),o(l,e,r,n,i,s),void o(c,e,r,n,i,s)}u=u.next}l=l.next}while(l!==t)}function h(t,e,r,n){var o,s,l,u,c,h=[];for(o=0,s=e.length;o<s;o++)l=e[o]*n,u=o<s-1?e[o+1]*n:t.length,c=i(t,l,u,n,!1),c===c.next&&(c.steiner=!0),h.push(y(c));for(h.sort(f),o=0;o<h.length;o++)d(h[o],r),r=a(r,r.next);return r}function f(t,e){return t.x-e.x}function d(t,e){if(e=p(t,e)){var r=S(e,t);a(r,r.next)}}function p(t,e){var r,n=e,i=t.x,a=t.y,o=-1/0;do{if(a<=n.y&&a>=n.next.y){var s=n.x+(a-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(s<=i&&s>o){if(o=s,s===i){if(a===n.y)return n;if(a===n.next.y)return n.next}r=n.x<n.next.x?n:n.next}}n=n.next}while(n!==e);if(!r)return null;if(i===o)return r.prev;var l,u=r,c=r.x,h=r.y,f=1/0;for(n=r.next;n!==u;)i>=n.x&&n.x>=c&&b(a<h?i:o,a,c,h,a<h?o:i,a,n.x,n.y)&&((l=Math.abs(a-n.y)/(i-n.x))<f||l===f&&n.x>r.x)&&A(n,t)&&(r=n,f=l),n=n.next;return r}function m(t,e,r,n){var i=t;do{null===i.z&&(i.z=g(i.x,i.y,e,r,n)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==t);i.prevZ.nextZ=null,i.prevZ=null,v(i)}function v(t){var e,r,n,i,a,o,s,l,u=1;do{for(r=t,t=null,a=null,o=0;r;){for(o++,n=r,s=0,e=0;e<u&&(s++,n=n.nextZ);e++);for(l=u;s>0||l>0&&n;)0===s?(i=n,n=n.nextZ,l--):0!==l&&n?r.z<=n.z?(i=r,r=r.nextZ,s--):(i=n,n=n.nextZ,l--):(i=r,r=r.nextZ,s--),a?a.nextZ=i:t=i,i.prevZ=a,a=i;r=n}a.nextZ=null,u*=2}while(o>1);return t}function g(t,e,r,n,i){return t=32767*(t-r)/i,e=32767*(e-n)/i,t=16711935&(t|t<<8),t=252645135&(t|t<<4),t=858993459&(t|t<<2),t=1431655765&(t|t<<1),e=16711935&(e|e<<8),e=252645135&(e|e<<4),e=858993459&(e|e<<2),e=1431655765&(e|e<<1),t|e<<1}function y(t){var e=t,r=t;do{e.x<r.x&&(r=e),e=e.next}while(e!==t);return r}function b(t,e,r,n,i,a,o,s){return(i-o)*(e-s)-(t-o)*(a-s)>=0&&(t-o)*(n-s)-(r-o)*(e-s)>=0&&(r-o)*(a-s)-(i-o)*(n-s)>=0}function x(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!k(t,e)&&A(t,e)&&A(e,t)&&T(t,e)}function _(t,e,r){return(e.y-t.y)*(r.x-e.x)-(e.x-t.x)*(r.y-e.y)}function w(t,e){return t.x===e.x&&t.y===e.y}function M(t,e,r,n){return!!(w(t,e)&&w(r,n)||w(t,n)&&w(r,e))||_(t,e,r)>0!=_(t,e,n)>0&&_(r,n,t)>0!=_(r,n,e)>0}function k(t,e){var r=t;do{if(r.i!==t.i&&r.next.i!==t.i&&r.i!==e.i&&r.next.i!==e.i&&M(r,r.next,t,e))return!0;r=r.next}while(r!==t);return!1}function A(t,e){return _(t.prev,t,t.next)<0?_(t,e,t.next)>=0&&_(t,t.prev,e)>=0:_(t,e,t.prev)<0||_(t,t.next,e)<0}function T(t,e){var r=t,n=!1,i=(t.x+e.x)/2,a=(t.y+e.y)/2;do{r.y>a!=r.next.y>a&&i<(r.next.x-r.x)*(a-r.y)/(r.next.y-r.y)+r.x&&(n=!n),r=r.next}while(r!==t);return n}function S(t,e){var r=new C(t.i,t.x,t.y),n=new C(e.i,e.x,e.y),i=t.next,a=e.prev;return t.next=e,e.prev=t,r.next=i,i.prev=r,n.next=r,r.prev=n,a.next=n,n.prev=a,n}function E(t,e,r,n){var i=new C(t,e,r);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function L(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function C(t,e,r){this.i=t,this.x=e,this.y=r,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function I(t,e,r,n){for(var i=0,a=e,o=r-n;a<r;a+=n)i+=(t[o]-t[a])*(t[a+1]+t[o+1]),o=a;return i}e.exports=n,n.deviation=function(t,e,r,n){var i=e&&e.length,a=i?e[0]*r:t.length,o=Math.abs(I(t,0,a,r));if(i)for(var s=0,l=e.length;s<l;s++){var u=e[s]*r,c=s<l-1?e[s+1]*r:t.length;o-=Math.abs(I(t,u,c,r))}var h=0;for(s=0;s<n.length;s+=3){var f=n[s]*r,d=n[s+1]*r,p=n[s+2]*r;h+=Math.abs((t[f]-t[p])*(t[d+1]-t[f+1])-(t[f]-t[d])*(t[p+1]-t[f+1]))}return 0===o&&0===h?0:Math.abs((h-o)/o)},n.flatten=function(t){for(var e=t[0][0].length,r={vertices:[],holes:[],dimensions:e},n=0,i=0;i<t.length;i++){for(var a=0;a<t[i].length;a++)for(var o=0;o<e;o++)r.vertices.push(t[i][a][o]);i>0&&(n+=t[i-1].length,r.holes.push(n))}return r}},{}],127:[function(t,e,r){\"use strict\";function n(t,e){var r=t.length;if(\"number\"!=typeof e){e=0;for(var n=0;n<r;++n){var a=t[n];e=Math.max(e,a[0],a[1])}e=1+(0|e)}e|=0;for(var o=new Array(e),n=0;n<e;++n)o[n]=[];for(var n=0;n<r;++n){var a=t[n];o[a[0]].push(a[1]),o[a[1]].push(a[0])}for(var s=0;s<e;++s)i(o[s],function(t,e){return t-e});return o}e.exports=n;var i=t(\"uniq\")},{uniq:543}],128:[function(e,r,n){(function(i,a){!function(e,i){\"object\"==typeof n&&void 0!==r?r.exports=i():\"function\"==typeof t&&t.amd?t(i):e.ES6Promise=i()}(this,function(){\"use strict\";function t(t){return\"function\"==typeof t||\"object\"==typeof t&&null!==t}function r(t){return\"function\"==typeof t}function n(t){G=t}function o(t){Y=t}function s(){return function(){q(u)}}function l(){var t=setTimeout;return function(){return t(u,1)}}function u(){for(var t=0;t<H;t+=2){(0,Q[t])(Q[t+1]),Q[t]=void 0,Q[t+1]=void 0}H=0}function c(t,e){var r=arguments,n=this,i=new this.constructor(f);void 0===i[tt]&&I(i);var a=n._state;return a?function(){var t=r[a-1];Y(function(){return E(a,i,t,n._result)})}():k(n,i,t,e),i}function h(t){var e=this;if(t&&\"object\"==typeof t&&t.constructor===e)return t;var r=new e(f);return x(r,t),r}function f(){}function d(){return new TypeError(\"You cannot resolve a promise with itself\")}function p(){return new TypeError(\"A promises callback cannot return that same promise.\")}function m(t){try{return t.then}catch(t){return it.error=t,it}}function v(t,e,r,n){try{t.call(e,r,n)}catch(t){return t}}function g(t,e,r){Y(function(t){var n=!1,i=v(r,e,function(r){n||(n=!0,e!==r?x(t,r):w(t,r))},function(e){n||(n=!0,M(t,e))},\"Settle: \"+(t._label||\" unknown promise\"));!n&&i&&(n=!0,M(t,i))},t)}function y(t,e){e._state===rt?w(t,e._result):e._state===nt?M(t,e._result):k(e,void 0,function(e){return x(t,e)},function(e){return M(t,e)})}function b(t,e,n){e.constructor===t.constructor&&n===c&&e.constructor.resolve===h?y(t,e):n===it?M(t,it.error):void 0===n?w(t,e):r(n)?g(t,e,n):w(t,e)}function x(e,r){e===r?M(e,d()):t(r)?b(e,r,m(r)):w(e,r)}function _(t){t._onerror&&t._onerror(t._result),A(t)}function w(t,e){t._state===et&&(t._result=e,t._state=rt,0!==t._subscribers.length&&Y(A,t))}function M(t,e){t._state===et&&(t._state=nt,t._result=e,Y(_,t))}function k(t,e,r,n){var i=t._subscribers,a=i.length;t._onerror=null,i[a]=e,i[a+rt]=r,i[a+nt]=n,0===a&&t._state&&Y(A,t)}function A(t){var e=t._subscribers,r=t._state;if(0!==e.length){for(var n=void 0,i=void 0,a=t._result,o=0;o<e.length;o+=3)n=e[o],i=e[o+r],n?E(r,n,i,a):i(a);t._subscribers.length=0}}function T(){this.error=null}function S(t,e){try{return t(e)}catch(t){return at.error=t,at}}function E(t,e,n,i){var a=r(n),o=void 0,s=void 0,l=void 0,u=void 0;if(a){if(o=S(n,i),o===at?(u=!0,s=o.error,o=null):l=!0,e===o)return void M(e,p())}else o=i,l=!0;e._state!==et||(a&&l?x(e,o):u?M(e,s):t===rt?w(e,o):t===nt&&M(e,o))}function L(t,e){try{e(function(e){x(t,e)},function(e){M(t,e)})}catch(e){M(t,e)}}function C(){return ot++}function I(t){t[tt]=ot++,t._state=void 0,t._result=void 0,t._subscribers=[]}function z(t,e){this._instanceConstructor=t,this.promise=new t(f),this.promise[tt]||I(this.promise),V(e)?(this._input=e,this.length=e.length,this._remaining=e.length,this._result=new Array(this.length),0===this.length?w(this.promise,this._result):(this.length=this.length||0,this._enumerate(),0===this._remaining&&w(this.promise,this._result))):M(this.promise,D())}function D(){return new Error(\"Array Methods must be provided an Array\")}function P(t){return new z(this,t).promise}function O(t){var e=this;return new e(V(t)?function(r,n){for(var i=t.length,a=0;a<i;a++)e.resolve(t[a]).then(r,n)}:function(t,e){return e(new TypeError(\"You must pass an array to race.\"))})}function R(t){var e=this,r=new e(f);return M(r,t),r}function F(){throw new TypeError(\"You must pass a resolver function as the first argument to the promise constructor\")}function j(){throw new TypeError(\"Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.\")}function N(t){this[tt]=C(),this._result=this._state=void 0,this._subscribers=[],f!==t&&(\"function\"!=typeof t&&F(),this instanceof N?L(this,t):j())}function B(){var t=void 0;if(void 0!==a)t=a;else if(\"undefined\"!=typeof self)t=self;else try{t=Function(\"return this\")()}catch(t){throw new Error(\"polyfill failed because global object is unavailable in this environment\")}var e=t.Promise;if(e){var r=null;try{r=Object.prototype.toString.call(e.resolve())}catch(t){}if(\"[object Promise]\"===r&&!e.cast)return}t.Promise=N}var U=void 0;U=Array.isArray?Array.isArray:function(t){return\"[object Array]\"===Object.prototype.toString.call(t)};var V=U,H=0,q=void 0,G=void 0,Y=function(t,e){Q[H]=t,Q[H+1]=e,2===(H+=2)&&(G?G(u):$())},W=\"undefined\"!=typeof window?window:void 0,X=W||{},Z=X.MutationObserver||X.WebKitMutationObserver,J=\"undefined\"==typeof self&&void 0!==i&&\"[object process]\"==={}.toString.call(i),K=\"undefined\"!=typeof Uint8ClampedArray&&\"undefined\"!=typeof importScripts&&\"undefined\"!=typeof MessageChannel,Q=new Array(1e3),$=void 0;$=J?function(){return function(){return i.nextTick(u)}}():Z?function(){var t=0,e=new Z(u),r=document.createTextNode(\"\");return e.observe(r,{characterData:!0}),function(){r.data=t=++t%2}}():K?function(){var t=new MessageChannel;return t.port1.onmessage=u,function(){return t.port2.postMessage(0)}}():void 0===W&&\"function\"==typeof e?function(){try{var t=e,r=t(\"vertx\");return q=r.runOnLoop||r.runOnContext,s()}catch(t){return l()}}():l();var tt=Math.random().toString(36).substring(16),et=void 0,rt=1,nt=2,it=new T,at=new T,ot=0;return z.prototype._enumerate=function(){for(var t=this.length,e=this._input,r=0;this._state===et&&r<t;r++)this._eachEntry(e[r],r)},z.prototype._eachEntry=function(t,e){var r=this._instanceConstructor,n=r.resolve;if(n===h){var i=m(t);if(i===c&&t._state!==et)this._settledAt(t._state,e,t._result);else if(\"function\"!=typeof i)this._remaining--,this._result[e]=t;else if(r===N){var a=new r(f);b(a,t,i),this._willSettleAt(a,e)}else this._willSettleAt(new r(function(e){return e(t)}),e)}else this._willSettleAt(n(t),e)},z.prototype._settledAt=function(t,e,r){var n=this.promise;n._state===et&&(this._remaining--,t===nt?M(n,r):this._result[e]=r),0===this._remaining&&w(n,this._result)},z.prototype._willSettleAt=function(t,e){var r=this;k(t,void 0,function(t){return r._settledAt(rt,e,t)},function(t){return r._settledAt(nt,e,t)})},N.all=P,N.race=O,N.resolve=h,N.reject=R,N._setScheduler=n,N._setAsap=o,N._asap=Y,N.prototype={constructor:N,then:c,catch:function(t){return this.then(null,t)}},B(),N.polyfill=B,N.Promise=N,N})}).call(this,e(\"_process\"),\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{_process:487}],129:[function(t,e,r){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function i(t){return\"function\"==typeof t}function a(t){return\"number\"==typeof t}function o(t){return\"object\"==typeof t&&null!==t}function s(t){return void 0===t}e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(t){if(!a(t)||t<0||isNaN(t))throw TypeError(\"n must be a positive number\");return this._maxListeners=t,this},n.prototype.emit=function(t){var e,r,n,a,l,u;if(this._events||(this._events={}),\"error\"===t&&(!this._events.error||o(this._events.error)&&!this._events.error.length)){if((e=arguments[1])instanceof Error)throw e;var c=new Error('Uncaught, unspecified \"error\" event. ('+e+\")\");throw c.context=e,c}if(r=this._events[t],s(r))return!1;if(i(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:a=Array.prototype.slice.call(arguments,1),r.apply(this,a)}else if(o(r))for(a=Array.prototype.slice.call(arguments,1),u=r.slice(),n=u.length,l=0;l<n;l++)u[l].apply(this,a);return!0},n.prototype.addListener=function(t,e){var r;if(!i(e))throw TypeError(\"listener must be a function\");return this._events||(this._events={}),this._events.newListener&&this.emit(\"newListener\",t,i(e.listener)?e.listener:e),this._events[t]?o(this._events[t])?this._events[t].push(e):this._events[t]=[this._events[t],e]:this._events[t]=e,o(this._events[t])&&!this._events[t].warned&&(r=s(this._maxListeners)?n.defaultMaxListeners:this._maxListeners)&&r>0&&this._events[t].length>r&&(this._events[t].warned=!0,console.error(\"(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.\",this._events[t].length),\"function\"==typeof console.trace&&console.trace()),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(t,e){function r(){this.removeListener(t,r),n||(n=!0,e.apply(this,arguments))}if(!i(e))throw TypeError(\"listener must be a function\");var n=!1;return r.listener=e,this.on(t,r),this},n.prototype.removeListener=function(t,e){var r,n,a,s;if(!i(e))throw TypeError(\"listener must be a function\");if(!this._events||!this._events[t])return this;if(r=this._events[t],a=r.length,n=-1,\n", "r===e||i(r.listener)&&r.listener===e)delete this._events[t],this._events.removeListener&&this.emit(\"removeListener\",t,e);else if(o(r)){for(s=a;s-- >0;)if(r[s]===e||r[s].listener&&r[s].listener===e){n=s;break}if(n<0)return this;1===r.length?(r.length=0,delete this._events[t]):r.splice(n,1),this._events.removeListener&&this.emit(\"removeListener\",t,e)}return this},n.prototype.removeAllListeners=function(t){var e,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(e in this._events)\"removeListener\"!==e&&this.removeAllListeners(e);return this.removeAllListeners(\"removeListener\"),this._events={},this}if(r=this._events[t],i(r))this.removeListener(t,r);else if(r)for(;r.length;)this.removeListener(t,r[r.length-1]);return delete this._events[t],this},n.prototype.listeners=function(t){return this._events&&this._events[t]?i(this._events[t])?[this._events[t]]:this._events[t].slice():[]},n.prototype.listenerCount=function(t){if(this._events){var e=this._events[t];if(i(e))return 1;if(e)return e.length}return 0},n.listenerCount=function(t,e){return t.listenerCount(e)}},{}],130:[function(t,e,r){\"use strict\";function n(t,e,r){var n=e||0,i=r||1;return[[t[12]+t[0],t[13]+t[1],t[14]+t[2],t[15]+t[3]],[t[12]-t[0],t[13]-t[1],t[14]-t[2],t[15]-t[3]],[t[12]+t[4],t[13]+t[5],t[14]+t[6],t[15]+t[7]],[t[12]-t[4],t[13]-t[5],t[14]-t[6],t[15]-t[7]],[n*t[12]+t[8],n*t[13]+t[9],n*t[14]+t[10],n*t[15]+t[11]],[i*t[12]-t[8],i*t[13]-t[9],i*t[14]-t[10],i*t[15]-t[11]]]}e.exports=n},{}],131:[function(t,e,r){\"use strict\";function n(t){for(var e,r=t.length,n=0;n<r;n++)if(((e=t.charCodeAt(n))<9||e>13)&&32!==e&&133!==e&&160!==e&&5760!==e&&6158!==e&&(e<8192||e>8205)&&8232!==e&&8233!==e&&8239!==e&&8287!==e&&8288!==e&&12288!==e&&65279!==e)return!1;return!0}e.exports=function(t){var e=typeof t;if(\"string\"===e){var r=t;if(0===(t=+t)&&n(r))return!1}else if(\"number\"!==e)return!1;return t-t<1}},{}],132:[function(t,e,r){\"use strict\";function n(t){return new Function(\"f\",\"var p = (f && f.properties || {}); return \"+i(t))}function i(t){if(!t)return\"true\";var e=t[0];return t.length<=1?\"any\"===e?\"false\":\"true\":\"(\"+(\"==\"===e?o(t[1],t[2],\"===\",!1):\"!=\"===e?o(t[1],t[2],\"!==\",!1):\"<\"===e||\">\"===e||\"<=\"===e||\">=\"===e?o(t[1],t[2],e,!0):\"any\"===e?s(t.slice(1),\"||\"):\"all\"===e?s(t.slice(1),\"&&\"):\"none\"===e?c(s(t.slice(1),\"||\")):\"in\"===e?l(t[1],t.slice(2)):\"!in\"===e?c(l(t[1],t.slice(2))):\"has\"===e?u(t[1]):\"!has\"===e?c(u([t[1]])):\"true\")+\")\"}function a(t){return\"$type\"===t?\"f.type\":\"$id\"===t?\"f.id\":\"p[\"+JSON.stringify(t)+\"]\"}function o(t,e,r,n){var i=a(t),o=\"$type\"===t?f.indexOf(e):JSON.stringify(e);return(n?\"typeof \"+i+\"=== typeof \"+o+\"&&\":\"\")+i+r+o}function s(t,e){return t.map(i).join(e)}function l(t,e){\"$type\"===t&&(e=e.map(function(t){return f.indexOf(t)}));var r=JSON.stringify(e.sort(h)),n=a(t);return e.length<=200?r+\".indexOf(\"+n+\") !== -1\":\"function(v, a, i, j) {while (i <= j) { var m = (i + j) >> 1; if (a[m] === v) return true; if (a[m] > v) j = m - 1; else i = m + 1;}return false; }(\"+n+\", \"+r+\",0,\"+(e.length-1)+\")\"}function u(t){return JSON.stringify(t)+\" in p\"}function c(t){return\"!(\"+t+\")\"}function h(t,e){return t<e?-1:t>e?1:0}e.exports=n;var f=[\"Unknown\",\"Point\",\"LineString\",\"Polygon\"]},{}],133:[function(t,e,r){\"use strict\";function n(t,e,r){return Math.min(e,Math.max(t,r))}function i(t,e,r){this.dimension=t.length,this.bounds=[new Array(this.dimension),new Array(this.dimension)];for(var n=0;n<this.dimension;++n)this.bounds[0][n]=-1/0,this.bounds[1][n]=1/0;this._state=t.slice().reverse(),this._velocity=e.slice().reverse(),this._time=[r],this._scratch=[t.slice(),t.slice(),t.slice(),t.slice(),t.slice()]}function a(t){for(var e=new Array(t),r=0;r<t;++r)e[r]=0;return e}function o(t,e,r){switch(arguments.length){case 0:return new i([0],[0],0);case 1:if(\"number\"==typeof t){var n=a(t);return new i(n,n,0)}return new i(t,a(t.length),0);case 2:if(\"number\"==typeof e){var n=a(t.length);return new i(t,n,+e)}r=0;case 3:if(t.length!==e.length)throw new Error(\"state and velocity lengths must match\");return new i(t,e,r)}}e.exports=o;var s=t(\"cubic-hermite\"),l=t(\"binary-search-bounds\"),u=i.prototype;u.flush=function(t){var e=l.gt(this._time,t)-1;e<=0||(this._time.splice(0,e),this._state.splice(0,e*this.dimension),this._velocity.splice(0,e*this.dimension))},u.curve=function(t){var e=this._time,r=e.length,i=l.le(e,t),a=this._scratch[0],o=this._state,u=this._velocity,c=this.dimension,h=this.bounds;if(i<0)for(var f=c-1,d=0;d<c;++d,--f)a[d]=o[f];else if(i>=r-1)for(var f=o.length-1,p=t-e[r-1],d=0;d<c;++d,--f)a[d]=o[f]+p*u[f];else{for(var f=c*(i+1)-1,m=e[i],v=e[i+1],g=v-m||1,y=this._scratch[1],b=this._scratch[2],x=this._scratch[3],_=this._scratch[4],w=!0,d=0;d<c;++d,--f)y[d]=o[f],x[d]=u[f]*g,b[d]=o[f+c],_[d]=u[f+c]*g,w=w&&y[d]===b[d]&&x[d]===_[d]&&0===x[d];if(w)for(var d=0;d<c;++d)a[d]=y[d];else s(y,x,b,_,(t-m)/g,a)}for(var M=h[0],k=h[1],d=0;d<c;++d)a[d]=n(M[d],k[d],a[d]);return a},u.dcurve=function(t){var e=this._time,r=e.length,n=l.le(e,t),i=this._scratch[0],a=this._state,o=this._velocity,u=this.dimension;if(n>=r-1)for(var c=a.length-1,h=(e[r-1],0);h<u;++h,--c)i[h]=o[c];else{for(var c=u*(n+1)-1,f=e[n],d=e[n+1],p=d-f||1,m=this._scratch[1],v=this._scratch[2],g=this._scratch[3],y=this._scratch[4],b=!0,h=0;h<u;++h,--c)m[h]=a[c],g[h]=o[c]*p,v[h]=a[c+u],y[h]=o[c+u]*p,b=b&&m[h]===v[h]&&g[h]===y[h]&&0===g[h];if(b)for(var h=0;h<u;++h)i[h]=0;else{s.derivative(m,g,v,y,(t-f)/p,i);for(var h=0;h<u;++h)i[h]/=p}}return i},u.lastT=function(){var t=this._time;return t[t.length-1]},u.stable=function(){for(var t=this._velocity,e=t.length,r=this.dimension-1;r>=0;--r)if(t[--e])return!1;return!0},u.jump=function(t){var e=this.lastT(),r=this.dimension;if(!(t<e||arguments.length!==r+1)){var i=this._state,a=this._velocity,o=i.length-this.dimension,s=this.bounds,l=s[0],u=s[1];this._time.push(e,t);for(var c=0;c<2;++c)for(var h=0;h<r;++h)i.push(i[o++]),a.push(0);this._time.push(t);for(var h=r;h>0;--h)i.push(n(l[h-1],u[h-1],arguments[h])),a.push(0)}},u.push=function(t){var e=this.lastT(),r=this.dimension;if(!(t<e||arguments.length!==r+1)){var i=this._state,a=this._velocity,o=i.length-this.dimension,s=t-e,l=this.bounds,u=l[0],c=l[1],h=s>1e-6?1/s:0;this._time.push(t);for(var f=r;f>0;--f){var d=n(u[f-1],c[f-1],arguments[f]);i.push(d),a.push((d-i[o++])*h)}}},u.set=function(t){var e=this.dimension;if(!(t<this.lastT()||arguments.length!==e+1)){var r=this._state,i=this._velocity,a=this.bounds,o=a[0],s=a[1];this._time.push(t);for(var l=e;l>0;--l)r.push(n(o[l-1],s[l-1],arguments[l])),i.push(0)}},u.move=function(t){var e=this.lastT(),r=this.dimension;if(!(t<=e||arguments.length!==r+1)){var i=this._state,a=this._velocity,o=i.length-this.dimension,s=this.bounds,l=s[0],u=s[1],c=t-e,h=c>1e-6?1/c:0;this._time.push(t);for(var f=r;f>0;--f){var d=arguments[f];i.push(n(l[f-1],u[f-1],i[o++]+d)),a.push(d*h)}}},u.idle=function(t){var e=this.lastT();if(!(t<e)){var r=this.dimension,i=this._state,a=this._velocity,o=i.length-r,s=this.bounds,l=s[0],u=s[1],c=t-e;this._time.push(t);for(var h=r-1;h>=0;--h)i.push(n(l[h],u[h],i[o]+c*a[o])),a.push(0),o+=1}}},{\"binary-search-bounds\":66,\"cubic-hermite\":109}],134:[function(t,e,r){\"use strict\";function n(t){t=t||{};var e,r,n=t.canvas||document.createElement(\"canvas\"),o=t.family||\"sans-serif\",s=t.shape||[512,512],l=t.step||[32,32],u=parseFloat(t.size)||16,c=t.chars||[32,126],h=Math.floor((l[0]-u)/2),f=t.radius||1.5*h,d=new a(u,h,f,0,o),p=null==t.align?\"optical\":t.align,m=null==t.fit||1==t.fit?.5:t.fit;if(Array.isArray(c)){if(2===c.length&&\"number\"==typeof c[0]&&\"number\"==typeof c[1]){var v=[];for(e=c[0],r=0;e<=c[1];e++)v[r++]=String.fromCharCode(e);c=v}}else c=String(c).split(\"\");s=s.slice(),n.width=s[0],n.height=s[1];var g=n.getContext(\"2d\");g.fillStyle=\"#000\",g.fillRect(0,0,n.width,n.height),g.textBaseline=\"middle\";var y=l[0],b=l[1],x=0,_=0,w=u/b,M=Math.min(c.length,Math.floor(s[0]/y)*Math.ceil(s[1]/b)),k=d.ctx.textAlign,A=d.buffer,T=d.middle;for(d.ctx.textAlign=\"center\",d.buffer=d.size/2,e=0;e<M;e++)if(c[e]){var S=i(c[e],o,w),E=1,L=[0,0];if(m){var C=m;Array.isArray(m)&&(C=m[e]);var I=.5*(S.bounds[3]-S.bounds[1]),z=.5*(S.bounds[2]-S.bounds[0]),D=Math.max(I,z),P=Math.sqrt(I*I+z*z),O=.333*S.radius+.333*D+.333*P;E=b*C/(O*b*2),d.ctx.font=u*E+\"px \"+o}else d.ctx.font=u+\"px \"+o;p&&(L=\"optical\"===p||!0===p?[.5*y-y*S.center[0],.5*b-b*S.center[1]]:[.5*y-y*(S.bounds[2]+S.bounds[0])*.5,.5*b-b*(S.bounds[3]+S.bounds[1])*.5],d.middle=T+L[1]*E);var R=d.draw(c[e]);g.putImageData(R,x+L[0]*E,_),x+=l[0],x>s[0]-l[0]&&(x=0,_+=l[1])}return d.ctx.textAlign=k,d.buffer=A,d.middle=T,n}function i(t,e,r){if(s[e]&&s[e][t])return s[e][t];var n=200*r,i=o(t,{size:200,fontSize:n,fontFamily:e});s[e]||(s[e]={});var a={center:[i.center[0]/200,i.center[1]/200],bounds:i.bounds.map(function(t){return t/200}),radius:i.radius/200};return s[e][t]=a,a}var a=t(\"tiny-sdf\"),o=t(\"optical-properties\");e.exports=n;var s={}},{\"optical-properties\":471,\"tiny-sdf\":533}],135:[function(t,e,r){\"use strict\";function n(t,e,r,n,i,a){this._color=t,this.key=e,this.value=r,this.left=n,this.right=i,this._count=a}function i(t){return new n(t._color,t.key,t.value,t.left,t.right,t._count)}function a(t,e){return new n(t,e.key,e.value,e.left,e.right,e._count)}function o(t){t._count=1+(t.left?t.left._count:0)+(t.right?t.right._count:0)}function s(t,e){this._compare=t,this.root=e}function l(t,e){if(e.left){var r=l(t,e.left);if(r)return r}var r=t(e.key,e.value);return r||(e.right?l(t,e.right):void 0)}function u(t,e,r,n){if(e(t,n.key)<=0){if(n.left){var i=u(t,e,r,n.left);if(i)return i}var i=r(n.key,n.value);if(i)return i}if(n.right)return u(t,e,r,n.right)}function c(t,e,r,n,i){var a,o=r(t,i.key),s=r(e,i.key);if(o<=0){if(i.left&&(a=c(t,e,r,n,i.left)))return a;if(s>0&&(a=n(i.key,i.value)))return a}if(s>0&&i.right)return c(t,e,r,n,i.right)}function h(t,e){this.tree=t,this._stack=e}function f(t,e){t.key=e.key,t.value=e.value,t.left=e.left,t.right=e.right,t._color=e._color,t._count=e._count}function d(t){for(var e,r,n,s,l=t.length-1;l>=0;--l){if(e=t[l],0===l)return void(e._color=g);if(r=t[l-1],r.left===e){if(n=r.right,n.right&&n.right._color===v){if(n=r.right=i(n),s=n.right=i(n.right),r.right=n.left,n.left=r,n.right=s,n._color=r._color,e._color=g,r._color=g,s._color=g,o(r),o(n),l>1){var u=t[l-2];u.left===r?u.left=n:u.right=n}return void(t[l-1]=n)}if(n.left&&n.left._color===v){if(n=r.right=i(n),s=n.left=i(n.left),r.right=s.left,n.left=s.right,s.left=r,s.right=n,s._color=r._color,r._color=g,n._color=g,e._color=g,o(r),o(n),o(s),l>1){var u=t[l-2];u.left===r?u.left=s:u.right=s}return void(t[l-1]=s)}if(n._color===g){if(r._color===v)return r._color=g,void(r.right=a(v,n));r.right=a(v,n);continue}if(n=i(n),r.right=n.left,n.left=r,n._color=r._color,r._color=v,o(r),o(n),l>1){var u=t[l-2];u.left===r?u.left=n:u.right=n}t[l-1]=n,t[l]=r,l+1<t.length?t[l+1]=e:t.push(e),l+=2}else{if(n=r.left,n.left&&n.left._color===v){if(n=r.left=i(n),s=n.left=i(n.left),r.left=n.right,n.right=r,n.left=s,n._color=r._color,e._color=g,r._color=g,s._color=g,o(r),o(n),l>1){var u=t[l-2];u.right===r?u.right=n:u.left=n}return void(t[l-1]=n)}if(n.right&&n.right._color===v){if(n=r.left=i(n),s=n.right=i(n.right),r.left=s.right,n.right=s.left,s.right=r,s.left=n,s._color=r._color,r._color=g,n._color=g,e._color=g,o(r),o(n),o(s),l>1){var u=t[l-2];u.right===r?u.right=s:u.left=s}return void(t[l-1]=s)}if(n._color===g){if(r._color===v)return r._color=g,void(r.left=a(v,n));r.left=a(v,n);continue}if(n=i(n),r.left=n.right,n.right=r,n._color=r._color,r._color=v,o(r),o(n),l>1){var u=t[l-2];u.right===r?u.right=n:u.left=n}t[l-1]=n,t[l]=r,l+1<t.length?t[l+1]=e:t.push(e),l+=2}}}function p(t,e){return t<e?-1:t>e?1:0}function m(t){return new s(t||p,null)}e.exports=m;var v=0,g=1,y=s.prototype;Object.defineProperty(y,\"keys\",{get:function(){var t=[];return this.forEach(function(e,r){t.push(e)}),t}}),Object.defineProperty(y,\"values\",{get:function(){var t=[];return this.forEach(function(e,r){t.push(r)}),t}}),Object.defineProperty(y,\"length\",{get:function(){return this.root?this.root._count:0}}),y.insert=function(t,e){for(var r=this._compare,i=this.root,l=[],u=[];i;){var c=r(t,i.key);l.push(i),u.push(c),i=c<=0?i.left:i.right}l.push(new n(v,t,e,null,null,1));for(var h=l.length-2;h>=0;--h){var i=l[h];u[h]<=0?l[h]=new n(i._color,i.key,i.value,l[h+1],i.right,i._count+1):l[h]=new n(i._color,i.key,i.value,i.left,l[h+1],i._count+1)}for(var h=l.length-1;h>1;--h){var f=l[h-1],i=l[h];if(f._color===g||i._color===g)break;var d=l[h-2];if(d.left===f)if(f.left===i){var p=d.right;if(!p||p._color!==v){if(d._color=v,d.left=f.right,f._color=g,f.right=d,l[h-2]=f,l[h-1]=i,o(d),o(f),h>=3){var m=l[h-3];m.left===d?m.left=f:m.right=f}break}f._color=g,d.right=a(g,p),d._color=v,h-=1}else{var p=d.right;if(!p||p._color!==v){if(f.right=i.left,d._color=v,d.left=i.right,i._color=g,i.left=f,i.right=d,l[h-2]=i,l[h-1]=f,o(d),o(f),o(i),h>=3){var m=l[h-3];m.left===d?m.left=i:m.right=i}break}f._color=g,d.right=a(g,p),d._color=v,h-=1}else if(f.right===i){var p=d.left;if(!p||p._color!==v){if(d._color=v,d.right=f.left,f._color=g,f.left=d,l[h-2]=f,l[h-1]=i,o(d),o(f),h>=3){var m=l[h-3];m.right===d?m.right=f:m.left=f}break}f._color=g,d.left=a(g,p),d._color=v,h-=1}else{var p=d.left;if(!p||p._color!==v){if(f.left=i.right,d._color=v,d.right=i.left,i._color=g,i.right=f,i.left=d,l[h-2]=i,l[h-1]=f,o(d),o(f),o(i),h>=3){var m=l[h-3];m.right===d?m.right=i:m.left=i}break}f._color=g,d.left=a(g,p),d._color=v,h-=1}}return l[0]._color=g,new s(r,l[0])},y.forEach=function(t,e,r){if(this.root)switch(arguments.length){case 1:return l(t,this.root);case 2:return u(e,this._compare,t,this.root);case 3:if(this._compare(e,r)>=0)return;return c(e,r,this._compare,t,this.root)}},Object.defineProperty(y,\"begin\",{get:function(){for(var t=[],e=this.root;e;)t.push(e),e=e.left;return new h(this,t)}}),Object.defineProperty(y,\"end\",{get:function(){for(var t=[],e=this.root;e;)t.push(e),e=e.right;return new h(this,t)}}),y.at=function(t){if(t<0)return new h(this,[]);for(var e=this.root,r=[];;){if(r.push(e),e.left){if(t<e.left._count){e=e.left;continue}t-=e.left._count}if(!t)return new h(this,r);if(t-=1,!e.right)break;if(t>=e.right._count)break;e=e.right}return new h(this,[])},y.ge=function(t){for(var e=this._compare,r=this.root,n=[],i=0;r;){var a=e(t,r.key);n.push(r),a<=0&&(i=n.length),r=a<=0?r.left:r.right}return n.length=i,new h(this,n)},y.gt=function(t){for(var e=this._compare,r=this.root,n=[],i=0;r;){var a=e(t,r.key);n.push(r),a<0&&(i=n.length),r=a<0?r.left:r.right}return n.length=i,new h(this,n)},y.lt=function(t){for(var e=this._compare,r=this.root,n=[],i=0;r;){var a=e(t,r.key);n.push(r),a>0&&(i=n.length),r=a<=0?r.left:r.right}return n.length=i,new h(this,n)},y.le=function(t){for(var e=this._compare,r=this.root,n=[],i=0;r;){var a=e(t,r.key);n.push(r),a>=0&&(i=n.length),r=a<0?r.left:r.right}return n.length=i,new h(this,n)},y.find=function(t){for(var e=this._compare,r=this.root,n=[];r;){var i=e(t,r.key);if(n.push(r),0===i)return new h(this,n);r=i<=0?r.left:r.right}return new h(this,[])},y.remove=function(t){var e=this.find(t);return e?e.remove():this},y.get=function(t){for(var e=this._compare,r=this.root;r;){var n=e(t,r.key);if(0===n)return r.value;r=n<=0?r.left:r.right}};var b=h.prototype;Object.defineProperty(b,\"valid\",{get:function(){return this._stack.length>0}}),Object.defineProperty(b,\"node\",{get:function(){return this._stack.length>0?this._stack[this._stack.length-1]:null},enumerable:!0}),b.clone=function(){return new h(this.tree,this._stack.slice())},b.remove=function(){var t=this._stack;if(0===t.length)return this.tree;var e=new Array(t.length),r=t[t.length-1];e[e.length-1]=new n(r._color,r.key,r.value,r.left,r.right,r._count);for(var i=t.length-2;i>=0;--i){var r=t[i];r.left===t[i+1]?e[i]=new n(r._color,r.key,r.value,e[i+1],r.right,r._count):e[i]=new n(r._color,r.key,r.value,r.left,e[i+1],r._count)}if(r=e[e.length-1],r.left&&r.right){var a=e.length;for(r=r.left;r.right;)e.push(r),r=r.right;var o=e[a-1];e.push(new n(r._color,o.key,o.value,r.left,r.right,r._count)),e[a-1].key=r.key,e[a-1].value=r.value;for(var i=e.length-2;i>=a;--i)r=e[i],e[i]=new n(r._color,r.key,r.value,r.left,e[i+1],r._count);e[a-1].left=e[a]}if(r=e[e.length-1],r._color===v){var l=e[e.length-2];l.left===r?l.left=null:l.right===r&&(l.right=null),e.pop();for(var i=0;i<e.length;++i)e[i]._count--;return new s(this.tree._compare,e[0])}if(r.left||r.right){r.left?f(r,r.left):r.right&&f(r,r.right),r._color=g;for(var i=0;i<e.length-1;++i)e[i]._count--;return new s(this.tree._compare,e[0])}if(1===e.length)return new s(this.tree._compare,null);for(var i=0;i<e.length;++i)e[i]._count--;var u=e[e.length-2];return d(e),u.left===r?u.left=null:u.right=null,new s(this.tree._compare,e[0])},Object.defineProperty(b,\"key\",{get:function(){if(this._stack.length>0)return this._stack[this._stack.length-1].key},enumerable:!0}),Object.defineProperty(b,\"value\",{get:function(){if(this._stack.length>0)return this._stack[this._stack.length-1].value},enumerable:!0}),Object.defineProperty(b,\"index\",{get:function(){var t=0,e=this._stack;if(0===e.length){var r=this.tree.root;return r?r._count:0}e[e.length-1].left&&(t=e[e.length-1].left._count);for(var n=e.length-2;n>=0;--n)e[n+1]===e[n].right&&(++t,e[n].left&&(t+=e[n].left._count));return t},enumerable:!0}),b.next=function(){var t=this._stack;if(0!==t.length){var e=t[t.length-1];if(e.right)for(e=e.right;e;)t.push(e),e=e.left;else for(t.pop();t.length>0&&t[t.length-1].right===e;)e=t[t.length-1],t.pop()}},Object.defineProperty(b,\"hasNext\",{get:function(){var t=this._stack;if(0===t.length)return!1;if(t[t.length-1].right)return!0;for(var e=t.length-1;e>0;--e)if(t[e-1].left===t[e])return!0;return!1}}),b.update=function(t){var e=this._stack;if(0===e.length)throw new Error(\"Can't update empty node!\");var r=new Array(e.length),i=e[e.length-1];r[r.length-1]=new n(i._color,i.key,t,i.left,i.right,i._count);for(var a=e.length-2;a>=0;--a)i=e[a],i.left===e[a+1]?r[a]=new n(i._color,i.key,i.value,r[a+1],i.right,i._count):r[a]=new n(i._color,i.key,i.value,i.left,r[a+1],i._count);return new s(this.tree._compare,r[0])},b.prev=function(){var t=this._stack;if(0!==t.length){var e=t[t.length-1];if(e.left)for(e=e.left;e;)t.push(e),e=e.right;else for(t.pop();t.length>0&&t[t.length-1].left===e;)e=t[t.length-1],t.pop()}},Object.defineProperty(b,\"hasPrev\",{get:function(){var t=this._stack;if(0===t.length)return!1;if(t[t.length-1].left)return!0;for(var e=t.length-1;e>0;--e)if(t[e-1].right===t[e])return!0;return!1}})},{}],136:[function(t,e,r){function n(t){if(t<0)return Number(\"0/0\");for(var e=o[0],r=o.length-1;r>0;--r)e+=o[r]/(t+r);var n=t+a+.5;return.5*Math.log(2*Math.PI)+(t+.5)*Math.log(n)-n+Math.log(e)-Math.log(t)}var i=[.9999999999998099,676.5203681218851,-1259.1392167224028,771.3234287776531,-176.6150291621406,12.507343278686905,-.13857109526572012,9984369578019572e-21,1.5056327351493116e-7],a=607/128,o=[.9999999999999971,57.15623566586292,-59.59796035547549,14.136097974741746,-.4919138160976202,3399464998481189e-20,4652362892704858e-20,-9837447530487956e-20,.0001580887032249125,-.00021026444172410488,.00021743961811521265,-.0001643181065367639,8441822398385275e-20,-26190838401581408e-21,36899182659531625e-22];e.exports=function t(e){if(e<.5)return Math.PI/(Math.sin(Math.PI*e)*t(1-e));if(e>100)return Math.exp(n(e));e-=1;for(var r=i[0],a=1;a<9;a++)r+=i[a]/(e+a);var o=e+7+.5;return Math.sqrt(2*Math.PI)*Math.pow(o,e+.5)*Math.exp(-o)*r},e.exports.log=n},{}],137:[function(t,e,r){function n(t){if(\"Polygon\"===t.type)return i(t.coordinates);if(\"MultiPolygon\"===t.type){for(var e=0,r=0;r<t.coordinates.length;r++)e+=i(t.coordinates[r]);return e}return null}function i(t){var e=0;if(t&&t.length>0){e+=Math.abs(a(t[0]));for(var r=1;r<t.length;r++)e-=Math.abs(a(t[r]))}return e}function a(t){var e=0;if(t.length>2){for(var r,n,i=0;i<t.length-1;i++)r=t[i],n=t[i+1],e+=o(n[0]-r[0])*(2+Math.sin(o(r[1]))+Math.sin(o(n[1])));e=e*s.RADIUS*s.RADIUS/2}return e}function o(t){return t*Math.PI/180}var s=t(\"wgs84\");e.exports.geometry=n,e.exports.ring=a},{wgs84:565}],138:[function(t,e,r){function n(t,e){switch(t&&t.type||null){case\"FeatureCollection\":return t.features=t.features.map(i(n,e)),t;case\"Feature\":return t.geometry=n(t.geometry,e),t;case\"Polygon\":case\"MultiPolygon\":return a(t,e);default:return t}}function i(t,e){return function(r){return t(r,e)}}function a(t,e){return\"Polygon\"===t.type?t.coordinates=o(t.coordinates,e):\"MultiPolygon\"===t.type&&(t.coordinates=t.coordinates.map(i(o,e))),t}function o(t,e){e=!!e,t[0]=s(t[0],!e);for(var r=1;r<t.length;r++)t[r]=s(t[r],e);return t}function s(t,e){return l(t)===e?t:t.reverse()}function l(t){return u.ring(t)>=0}var u=t(\"geojson-area\");e.exports=n},{\"geojson-area\":137}],139:[function(t,e,r){\"use strict\";function n(t,e,r,n,o,l,u,c){if(r/=e,n/=e,u>=r&&c<=n)return t;if(u>n||c<r)return null;for(var h=[],f=0;f<t.length;f++){var d,p,m=t[f],v=m.geometry,g=m.type;if(d=m.min[o],p=m.max[o],d>=r&&p<=n)h.push(m);else if(!(d>n||p<r)){var y=1===g?i(v,r,n,o):a(v,r,n,o,l,3===g);y.length&&h.push(s(m.tags,g,y,m.id))}}return h.length?h:null}function i(t,e,r,n){for(var i=[],a=0;a<t.length;a++){var o=t[a],s=o[n];s>=e&&s<=r&&i.push(o)}return i}function a(t,e,r,n,i,a){for(var s=[],l=0;l<t.length;l++){var u,c,h,f=0,d=0,p=null,m=t[l],v=m.area,g=m.dist,y=m.outer,b=m.length,x=[];for(c=0;c<b-1;c++)u=p||m[c],p=m[c+1],f=d||u[n],d=p[n],f<e?d>r?(x.push(i(u,p,e),i(u,p,r)),a||(x=o(s,x,v,g,y))):d>=e&&x.push(i(u,p,e)):f>r?d<e?(x.push(i(u,p,r),i(u,p,e)),a||(x=o(s,x,v,g,y))):d<=r&&x.push(i(u,p,r)):(x.push(u),d<e?(x.push(i(u,p,e)),a||(x=o(s,x,v,g,y))):d>r&&(x.push(i(u,p,r)),a||(x=o(s,x,v,g,y))));u=m[b-1],f=u[n],f>=e&&f<=r&&x.push(u),h=x[x.length-1],a&&h&&(x[0][0]!==h[0]||x[0][1]!==h[1])&&x.push(x[0]),o(s,x,v,g,y)}return s}function o(t,e,r,n,i){return e.length&&(e.area=r,e.dist=n,void 0!==i&&(e.outer=i),t.push(e)),[]}e.exports=n;var s=t(\"./feature\")},{\"./feature\":141}],140:[function(t,e,r){\"use strict\";function n(t,e){var r=[];if(\"FeatureCollection\"===t.type)for(var n=0;n<t.features.length;n++)i(r,t.features[n],e);else\"Feature\"===t.type?i(r,t,e):i(r,{geometry:t},e);return r}function i(t,e,r){if(null!==e.geometry){var n,s,l,c,h=e.geometry,f=h.type,d=h.coordinates,p=e.properties,m=e.id;if(\"Point\"===f)t.push(u(p,1,[o(d)],m));else if(\"MultiPoint\"===f)t.push(u(p,1,a(d),m));else if(\"LineString\"===f)t.push(u(p,2,[a(d,r)],m));else if(\"MultiLineString\"===f||\"Polygon\"===f){for(l=[],n=0;n<d.length;n++)c=a(d[n],r),\"Polygon\"===f&&(c.outer=0===n),l.push(c);t.push(u(p,\"Polygon\"===f?3:2,l,m))}else if(\"MultiPolygon\"===f){for(l=[],n=0;n<d.length;n++)for(s=0;s<d[n].length;s++)c=a(d[n][s],r),c.outer=0===s,l.push(c);t.push(u(p,3,l,m))}else{if(\"GeometryCollection\"!==f)throw new Error(\"Input data is not a valid GeoJSON object.\");for(n=0;n<h.geometries.length;n++)i(t,{geometry:h.geometries[n],properties:p},r)}}}function a(t,e){for(var r=[],n=0;n<t.length;n++)r.push(o(t[n]));return e&&(l(r,e),s(r)),r}function o(t){var e=Math.sin(t[1]*Math.PI/180),r=t[0]/360+.5,n=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return n=n<0?0:n>1?1:n,[r,n,0]}function s(t){for(var e,r,n=0,i=0,a=0;a<t.length-1;a++)e=r||t[a],r=t[a+1],n+=e[0]*r[1]-r[0]*e[1],i+=Math.abs(r[0]-e[0])+Math.abs(r[1]-e[1]);t.area=Math.abs(n/2),t.dist=i}e.exports=n;var l=t(\"./simplify\"),u=t(\"./feature\")},{\"./feature\":141,\"./simplify\":143}],141:[function(t,e,r){\"use strict\";function n(t,e,r,n){var a={id:n||null,type:e,geometry:r,tags:t||null,min:[1/0,1/0],max:[-1/0,-1/0]};return i(a),a}function i(t){var e=t.geometry,r=t.min,n=t.max;if(1===t.type)a(r,n,e);else for(var i=0;i<e.length;i++)a(r,n,e[i]);return t}function a(t,e,r){for(var n,i=0;i<r.length;i++)n=r[i],t[0]=Math.min(n[0],t[0]),e[0]=Math.max(n[0],e[0]),t[1]=Math.min(n[1],t[1]),e[1]=Math.max(n[1],e[1])}e.exports=n},{}],142:[function(t,e,r){\"use strict\";function n(t,e){return new i(t,e)}function i(t,e){e=this.options=l(Object.create(this.options),e);var r=e.debug;r&&console.time(\"preprocess data\");var n=1<<e.maxZoom,i=c(t,e.tolerance/(n*e.extent));this.tiles={},this.tileCoords=[],r&&(console.timeEnd(\"preprocess data\"),console.log(\"index: maxZoom: %d, maxPoints: %d\",e.indexMaxZoom,e.indexMaxPoints),console.time(\"generate tiles\"),this.stats={},this.total=0),i=d(i,e.buffer/e.extent,o),i.length&&this.splitTile(i,0,0,0),r&&(i.length&&console.log(\"features: %d, points: %d\",this.tiles[0].numFeatures,this.tiles[0].numPoints),console.timeEnd(\"generate tiles\"),console.log(\"tiles generated:\",this.total,JSON.stringify(this.stats)))}function a(t,e,r){return 32*((1<<t)*r+e)+t}function o(t,e,r){return[r,(r-t[0])*(e[1]-t[1])/(e[0]-t[0])+t[1],1]}function s(t,e,r){return[(r-t[1])*(e[0]-t[0])/(e[1]-t[1])+t[0],r,1]}function l(t,e){for(var r in e)t[r]=e[r];return t}function u(t,e,r){var n=t.source;if(1!==n.length)return!1;var i=n[0];if(3!==i.type||i.geometry.length>1)return!1;var a=i.geometry[0].length;if(5!==a)return!1;for(var o=0;o<a;o++){var s=h.point(i.geometry[0][o],e,t.z2,t.x,t.y);if(s[0]!==-r&&s[0]!==e+r||s[1]!==-r&&s[1]!==e+r)return!1}return!0}e.exports=n;var c=t(\"./convert\"),h=t(\"./transform\"),f=t(\"./clip\"),d=t(\"./wrap\"),p=t(\"./tile\");i.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,solidChildren:!1,tolerance:3,extent:4096,buffer:64,debug:0},i.prototype.splitTile=function(t,e,r,n,i,l,c){for(var h=[t,e,r,n],d=this.options,m=d.debug,v=null;h.length;){n=h.pop(),r=h.pop(),e=h.pop(),t=h.pop();var g=1<<e,y=a(e,r,n),b=this.tiles[y],x=e===d.maxZoom?0:d.tolerance/(g*d.extent);if(!b&&(m>1&&console.time(\"creation\"),b=this.tiles[y]=p(t,g,r,n,x,e===d.maxZoom),this.tileCoords.push({z:e,x:r,y:n}),m)){m>1&&(console.log(\"tile z%d-%d-%d (features: %d, points: %d, simplified: %d)\",e,r,n,b.numFeatures,b.numPoints,b.numSimplified),console.timeEnd(\"creation\"));var _=\"z\"+e;this.stats[_]=(this.stats[_]||0)+1,this.total++}if(b.source=t,i){if(e===d.maxZoom||e===i)continue;var w=1<<i-e;if(r!==Math.floor(l/w)||n!==Math.floor(c/w))continue}else if(e===d.indexMaxZoom||b.numPoints<=d.indexMaxPoints)continue;if(d.solidChildren||!u(b,d.extent,d.buffer)){b.source=null,m>1&&console.time(\"clipping\");var M,k,A,T,S,E,L=.5*d.buffer/d.extent,C=.5-L,I=.5+L,z=1+L;M=k=A=T=null,S=f(t,g,r-L,r+I,0,o,b.min[0],b.max[0]),E=f(t,g,r+C,r+z,0,o,b.min[0],b.max[0]),S&&(M=f(S,g,n-L,n+I,1,s,b.min[1],b.max[1]),k=f(S,g,n+C,n+z,1,s,b.min[1],b.max[1])),E&&(A=f(E,g,n-L,n+I,1,s,b.min[1],b.max[1]),T=f(E,g,n+C,n+z,1,s,b.min[1],b.max[1])),m>1&&console.timeEnd(\"clipping\"),t.length&&(h.push(M||[],e+1,2*r,2*n),h.push(k||[],e+1,2*r,2*n+1),h.push(A||[],e+1,2*r+1,2*n),h.push(T||[],e+1,2*r+1,2*n+1))}else i&&(v=e)}return v},i.prototype.getTile=function(t,e,r){var n=this.options,i=n.extent,o=n.debug,s=1<<t;e=(e%s+s)%s;var l=a(t,e,r);if(this.tiles[l])return h.tile(this.tiles[l],i);o>1&&console.log(\"drilling down to z%d-%d-%d\",t,e,r);for(var c,f=t,d=e,p=r;!c&&f>0;)f--,d=Math.floor(d/2),p=Math.floor(p/2),c=this.tiles[a(f,d,p)];if(!c||!c.source)return null;if(o>1&&console.log(\"found parent tile z%d-%d-%d\",f,d,p),u(c,i,n.buffer))return h.tile(c,i);o>1&&console.time(\"drilling down\");var m=this.splitTile(c.source,f,d,p,t,e,r);if(o>1&&console.timeEnd(\"drilling down\"),null!==m){var v=1<<t-m;l=a(m,Math.floor(e/v),Math.floor(r/v))}return this.tiles[l]?h.tile(this.tiles[l],i):null}},{\"./clip\":139,\"./convert\":140,\"./tile\":144,\"./transform\":145,\"./wrap\":146}],143:[function(t,e,r){\"use strict\";function n(t,e){var r,n,a,o,s=e*e,l=t.length,u=0,c=l-1,h=[];for(t[u][2]=1,t[c][2]=1;c;){for(n=0,r=u+1;r<c;r++)(a=i(t[r],t[u],t[c]))>n&&(o=r,n=a);n>s?(t[o][2]=n,h.push(u),h.push(o),u=o):(c=h.pop(),u=h.pop())}}function i(t,e,r){var n=e[0],i=e[1],a=r[0],o=r[1],s=t[0],l=t[1],u=a-n,c=o-i;if(0!==u||0!==c){var h=((s-n)*u+(l-i)*c)/(u*u+c*c);h>1?(n=a,i=o):h>0&&(n+=u*h,i+=c*h)}return u=s-n,c=l-i,u*u+c*c}e.exports=n},{}],144:[function(t,e,r){\"use strict\";function n(t,e,r,n,a,o){for(var s={features:[],numPoints:0,numSimplified:0,numFeatures:0,source:null,x:r,y:n,z2:e,transformed:!1,min:[2,1],max:[-1,0]},l=0;l<t.length;l++){s.numFeatures++,i(s,t[l],a,o);var u=t[l].min,c=t[l].max;u[0]<s.min[0]&&(s.min[0]=u[0]),u[1]<s.min[1]&&(s.min[1]=u[1]),c[0]>s.max[0]&&(s.max[0]=c[0]),c[1]>s.max[1]&&(s.max[1]=c[1])}return s}function i(t,e,r,n){var i,o,s,l,u=e.geometry,c=e.type,h=[],f=r*r;if(1===c)for(i=0;i<u.length;i++)h.push(u[i]),t.numPoints++,t.numSimplified++;else for(i=0;i<u.length;i++)if(s=u[i],n||!(2===c&&s.dist<r||3===c&&s.area<f)){var d=[];for(o=0;o<s.length;o++)l=s[o],(n||l[2]>f)&&(d.push(l),t.numSimplified++),t.numPoints++;3===c&&a(d,s.outer),h.push(d)}else t.numPoints+=s.length;if(h.length){var p={geometry:h,type:c,tags:e.tags||null};null!==e.id&&(p.id=e.id),t.features.push(p)}}function a(t,e){o(t)<0===e&&t.reverse()}function o(t){for(var e,r,n=0,i=0,a=t.length,o=a-1;i<a;o=i++)e=t[i],r=t[o],n+=(r[0]-e[0])*(e[1]+r[1]);return n}e.exports=n},{}],145:[function(t,e,r){\"use strict\";function n(t,e){if(t.transformed)return t;var r,n,a,o=t.z2,s=t.x,l=t.y;for(r=0;r<t.features.length;r++){var u=t.features[r],c=u.geometry;if(1===u.type)for(n=0;n<c.length;n++)c[n]=i(c[n],e,o,s,l);else for(n=0;n<c.length;n++){var h=c[n];for(a=0;a<h.length;a++)h[a]=i(h[a],e,o,s,l)}}return t.transformed=!0,t}function i(t,e,r,n,i){return[Math.round(e*(t[0]*r-n)),Math.round(e*(t[1]*r-i))]}r.tile=n,r.point=i},{}],146:[function(t,e,r){\"use strict\";function n(t,e,r){var n=t,a=o(t,1,-1-e,e,0,r,-1,2),s=o(t,1,1-e,2+e,0,r,-1,2);return(a||s)&&(n=o(t,1,-e,1+e,0,r,-1,2)||[],a&&(n=i(a,1).concat(n)),s&&(n=n.concat(i(s,-1)))),n}function i(t,e){for(var r=[],n=0;n<t.length;n++){var i,o=t[n],l=o.type;if(1===l)i=a(o.geometry,e);else{i=[];for(var u=0;u<o.geometry.length;u++)i.push(a(o.geometry[u],e))}r.push(s(o.tags,l,i,o.id))}return r}function a(t,e){var r=[];r.area=t.area,r.dist=t.dist;for(var n=0;n<t.length;n++)r.push([t[n][0]+e,t[n][1],t[n][2]]);return r}var o=t(\"./clip\"),s=t(\"./feature\");e.exports=n},{\"./clip\":139,\"./feature\":141}],147:[function(t,e,r){function n(t,e){if(\"string\"!=typeof t)throw new TypeError(\"must specify type string\");if(e=e||{},\"undefined\"==typeof document&&!e.canvas)return null;var r=e.canvas||document.createElement(\"canvas\");\"number\"==typeof e.width&&(r.width=e.width),\"number\"==typeof e.height&&(r.height=e.height);var n,i=e;try{var a=[t];0===t.indexOf(\"webgl\")&&a.push(\"experimental-\"+t);for(var o=0;o<a.length;o++)if(n=r.getContext(a[o],i))return n}catch(t){n=null}return n||null}e.exports=n},{}],148:[function(t,e,r){\"use strict\";function n(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function i(t){this.gl=t,this.pixelRatio=1,this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.autoTicks=!0,this.tickSpacing=[1,1,1],this.tickEnable=[!0,!0,!0],this.tickFont=[\"sans-serif\",\"sans-serif\",\"sans-serif\"],this.tickSize=[12,12,12],this.tickAngle=[0,0,0],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[10,10,10],this.lastCubeProps={cubeEdges:[0,0,0],axis:[0,0,0]},this.labels=[\"x\",\"y\",\"z\"],this.labelEnable=[!0,!0,!0],this.labelFont=\"sans-serif\",this.labelSize=[20,20,20],this.labelAngle=[0,0,0],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[10,10,10],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[0,0,0],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!1,!1,!1],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._firstInit=!0,this._text=null,this._lines=null,this._background=c(t)}function a(){this.primalOffset=[0,0,0],this.primalMinor=[0,0,0],this.mirrorOffset=[0,0,0],this.mirrorMinor=[0,0,0]}function o(t,e,r,n,i){for(var a=t.primalOffset,o=t.primalMinor,s=t.mirrorOffset,l=t.mirrorMinor,u=n[e],c=0;c<3;++c)if(e!==c){var h=a,f=s,d=o,p=l\n", ";u&1<<c&&(h=s,f=a,d=l,p=o),h[c]=r[0][c],f[c]=r[1][c],i[c]>0?(d[c]=-1,p[c]=0):(d[c]=0,p[c]=1)}}function s(t,e){var r=new i(t);return r.update(e),r}e.exports=s;var l=t(\"./lib/text.js\"),u=t(\"./lib/lines.js\"),c=t(\"./lib/background.js\"),h=t(\"./lib/cube.js\"),f=t(\"./lib/ticks.js\"),d=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),p=i.prototype;p.update=function(t){function e(e,r,n){if(n in t){var i,a=t[n],o=this[n];(e?Array.isArray(a)&&Array.isArray(a[0]):Array.isArray(a))?this[n]=i=[r(a[0]),r(a[1]),r(a[2])]:this[n]=i=[r(a),r(a),r(a)];for(var s=0;s<3;++s)if(i[s]!==o[s])return!0}return!1}t=t||{};var r,n=e.bind(this,!1,Number),i=e.bind(this,!1,Boolean),a=e.bind(this,!1,String),o=e.bind(this,!0,function(t){if(Array.isArray(t)){if(3===t.length)return[+t[0],+t[1],+t[2],1];if(4===t.length)return[+t[0],+t[1],+t[2],+t[3]]}return[0,0,0,1]}),s=!1,c=!1;if(\"bounds\"in t)for(var h=t.bounds,d=0;d<2;++d)for(var p=0;p<3;++p)h[d][p]!==this.bounds[d][p]&&(c=!0),this.bounds[d][p]=h[d][p];if(\"ticks\"in t){r=t.ticks,s=!0,this.autoTicks=!1;for(var d=0;d<3;++d)this.tickSpacing[d]=0}else n(\"tickSpacing\")&&(this.autoTicks=!0,c=!0);if(this._firstInit&&(\"ticks\"in t||\"tickSpacing\"in t||(this.autoTicks=!0),c=!0,s=!0,this._firstInit=!1),c&&this.autoTicks&&(r=f.create(this.bounds,this.tickSpacing),s=!0),s){for(var d=0;d<3;++d)r[d].sort(function(t,e){return t.x-e.x});f.equal(r,this.ticks)?s=!1:this.ticks=r}i(\"tickEnable\"),a(\"tickFont\")&&(s=!0),n(\"tickSize\"),n(\"tickAngle\"),n(\"tickPad\"),o(\"tickColor\");var m=a(\"labels\");a(\"labelFont\")&&(m=!0),i(\"labelEnable\"),n(\"labelSize\"),n(\"labelPad\"),o(\"labelColor\"),i(\"lineEnable\"),i(\"lineMirror\"),n(\"lineWidth\"),o(\"lineColor\"),i(\"lineTickEnable\"),i(\"lineTickMirror\"),n(\"lineTickLength\"),n(\"lineTickWidth\"),o(\"lineTickColor\"),i(\"gridEnable\"),n(\"gridWidth\"),o(\"gridColor\"),i(\"zeroEnable\"),o(\"zeroLineColor\"),n(\"zeroLineWidth\"),i(\"backgroundEnable\"),o(\"backgroundColor\"),this._text?this._text&&(m||s)&&this._text.update(this.bounds,this.labels,this.labelFont,this.ticks,this.tickFont):this._text=l(this.gl,this.bounds,this.labels,this.labelFont,this.ticks,this.tickFont),this._lines&&s&&(this._lines.dispose(),this._lines=null),this._lines||(this._lines=u(this.gl,this.bounds,this.ticks))};var m=[new a,new a,new a],v=[0,0,0],g={model:d,view:d,projection:d};p.isOpaque=function(){return!0},p.isTransparent=function(){return!1},p.drawTransparent=function(t){};var y=[0,0,0],b=[0,0,0],x=[0,0,0];p.draw=function(t){t=t||g;for(var e=this.gl,r=t.model||d,i=t.view||d,a=t.projection||d,s=this.bounds,l=h(r,i,a,s),u=l.cubeEdges,c=l.axis,f=i[12],p=i[13],_=i[14],w=i[15],M=this.pixelRatio*(a[3]*f+a[7]*p+a[11]*_+a[15]*w)/e.drawingBufferHeight,k=0;k<3;++k)this.lastCubeProps.cubeEdges[k]=u[k],this.lastCubeProps.axis[k]=c[k];for(var A=m,k=0;k<3;++k)o(m[k],k,this.bounds,u,c);for(var e=this.gl,T=v,k=0;k<3;++k)this.backgroundEnable[k]?T[k]=c[k]:T[k]=0;this._background.draw(r,i,a,s,T,this.backgroundColor),this._lines.bind(r,i,a,this);for(var k=0;k<3;++k){var S=[0,0,0];c[k]>0?S[k]=s[1][k]:S[k]=s[0][k];for(var E=0;E<2;++E){var L=(k+1+E)%3,C=(k+1+(1^E))%3;this.gridEnable[L]&&this._lines.drawGrid(L,C,this.bounds,S,this.gridColor[L],this.gridWidth[L]*this.pixelRatio)}for(var E=0;E<2;++E){var L=(k+1+E)%3,C=(k+1+(1^E))%3;this.zeroEnable[C]&&s[0][C]<=0&&s[1][C]>=0&&this._lines.drawZero(L,C,this.bounds,S,this.zeroLineColor[C],this.zeroLineWidth[C]*this.pixelRatio)}}for(var k=0;k<3;++k){this.lineEnable[k]&&this._lines.drawAxisLine(k,this.bounds,A[k].primalOffset,this.lineColor[k],this.lineWidth[k]*this.pixelRatio),this.lineMirror[k]&&this._lines.drawAxisLine(k,this.bounds,A[k].mirrorOffset,this.lineColor[k],this.lineWidth[k]*this.pixelRatio);for(var I=n(y,A[k].primalMinor),z=n(b,A[k].mirrorMinor),D=this.lineTickLength,E=0;E<3;++E){var P=M/r[5*E];I[E]*=D[E]*P,z[E]*=D[E]*P}this.lineTickEnable[k]&&this._lines.drawAxisTicks(k,A[k].primalOffset,I,this.lineTickColor[k],this.lineTickWidth[k]*this.pixelRatio),this.lineTickMirror[k]&&this._lines.drawAxisTicks(k,A[k].mirrorOffset,z,this.lineTickColor[k],this.lineTickWidth[k]*this.pixelRatio)}this._text.bind(r,i,a,this.pixelRatio);for(var k=0;k<3;++k){for(var O=A[k].primalMinor,R=n(x,A[k].primalOffset),E=0;E<3;++E)this.lineTickEnable[k]&&(R[E]+=M*O[E]*Math.max(this.lineTickLength[E],0)/r[5*E]);if(this.tickEnable[k]){for(var E=0;E<3;++E)R[E]+=M*O[E]*this.tickPad[E]/r[5*E];this._text.drawTicks(k,this.tickSize[k],this.tickAngle[k],R,this.tickColor[k])}if(this.labelEnable[k]){for(var E=0;E<3;++E)R[E]+=M*O[E]*this.labelPad[E]/r[5*E];R[k]+=.5*(s[0][k]+s[1][k]),this._text.drawLabel(k,this.labelSize[k],this.labelAngle[k],R,this.labelColor[k])}}},p.dispose=function(){this._text.dispose(),this._lines.dispose(),this._background.dispose(),this._lines=null,this._text=null,this._background=null,this.gl=null}},{\"./lib/background.js\":149,\"./lib/cube.js\":150,\"./lib/lines.js\":151,\"./lib/text.js\":153,\"./lib/ticks.js\":154}],149:[function(t,e,r){\"use strict\";function n(t,e,r,n){this.gl=t,this.buffer=e,this.vao=r,this.shader=n}function i(t){for(var e=[],r=[],i=0,l=0;l<3;++l)for(var u=(l+1)%3,c=(l+2)%3,h=[0,0,0],f=[0,0,0],d=-1;d<=1;d+=2){r.push(i,i+2,i+1,i+1,i+2,i+3),h[l]=d,f[l]=d;for(var p=-1;p<=1;p+=2){h[u]=p;for(var m=-1;m<=1;m+=2)h[c]=m,e.push(h[0],h[1],h[2],f[0],f[1],f[2]),i+=1}var v=u;u=c,c=v}var g=a(t,new Float32Array(e)),y=a(t,new Uint16Array(r),t.ELEMENT_ARRAY_BUFFER),b=o(t,[{buffer:g,type:t.FLOAT,size:3,offset:0,stride:24},{buffer:g,type:t.FLOAT,size:3,offset:12,stride:24}],y),x=s(t);return x.attributes.position.location=0,x.attributes.normal.location=1,new n(t,g,b,x)}e.exports=i;var a=t(\"gl-buffer\"),o=t(\"gl-vao\"),s=t(\"./shaders\").bg,l=n.prototype;l.draw=function(t,e,r,n,i,a){for(var o=!1,s=0;s<3;++s)o=o||i[s];if(o){var l=this.gl;l.enable(l.POLYGON_OFFSET_FILL),l.polygonOffset(1,2),this.shader.bind(),this.shader.uniforms={model:t,view:e,projection:r,bounds:n,enable:i,colors:a},this.vao.bind(),this.vao.draw(this.gl.TRIANGLES,36),l.disable(l.POLYGON_OFFSET_FILL)}},l.dispose=function(){this.vao.dispose(),this.buffer.dispose(),this.shader.dispose()}},{\"./shaders\":152,\"gl-buffer\":156,\"gl-vao\":271}],150:[function(t,e,r){\"use strict\";function n(t,e,r){for(var n=0;n<4;++n){t[n]=r[12+n];for(var i=0;i<3;++i)t[n]+=e[i]*r[4*i+n]}}function i(t){for(var e=0;e<m.length;++e)if(t=l.positive(t,m[e]),t.length<3)return 0;for(var r=t[0],n=r[0]/r[3],i=r[1]/r[3],a=0,e=1;e+1<t.length;++e){var o=t[e],s=t[e+1],u=o[0]/o[3],c=o[1]/o[3],h=s[0]/s[3],f=s[1]/s[3],d=u-n,p=c-i,v=h-n,g=f-i;a+=Math.abs(d*g-p*v)}return a}function a(t,e,r,a){s(c,e,t),s(c,r,c);for(var l=0,m=0;m<2;++m){d[2]=a[m][2];for(var b=0;b<2;++b){d[1]=a[b][1];for(var x=0;x<2;++x)d[0]=a[x][0],n(h[l],d,c),l+=1}}for(var _=-1,m=0;m<8;++m){for(var w=h[m][3],M=0;M<3;++M)f[m][M]=h[m][M]/w;w<0&&(_<0?_=m:f[m][2]<f[_][2]&&(_=m))}if(_<0){_=0;for(var k=0;k<3;++k){for(var A=(k+2)%3,T=(k+1)%3,S=-1,E=-1,L=0;L<2;++L){var C=L<<k,I=C+(L<<A)+(1-L<<T),z=C+(1-L<<A)+(L<<T);u(f[C],f[I],f[z],p)<0||(L?S=1:E=1)}if(S<0||E<0)E>S&&(_|=1<<k);else{for(var L=0;L<2;++L){var C=L<<k,I=C+(L<<A)+(1-L<<T),z=C+(1-L<<A)+(L<<T),D=i([h[C],h[I],h[z],h[C+(1<<A)+(1<<T)]]);L?S=D:E=D}E>S&&(_|=1<<k)}}}for(var P=7^_,O=-1,m=0;m<8;++m)m!==_&&m!==P&&(O<0?O=m:f[O][1]>f[m][1]&&(O=m));for(var R=-1,m=0;m<3;++m){var F=O^1<<m;if(F!==_&&F!==P){R<0&&(R=F);var T=f[F];T[0]<f[R][0]&&(R=F)}}for(var j=-1,m=0;m<3;++m){var F=O^1<<m;if(F!==_&&F!==P&&F!==R){j<0&&(j=F);var T=f[F];T[0]>f[j][0]&&(j=F)}}var N=v;N[0]=N[1]=N[2]=0,N[o.log2(R^O)]=O&R,N[o.log2(O^j)]=O&j;var B=7^j;B===_||B===P?(B=7^R,N[o.log2(j^B)]=B&j):N[o.log2(R^B)]=B&R;for(var U=g,V=_,k=0;k<3;++k)U[k]=V&1<<k?-1:1;return y}e.exports=a;var o=t(\"bit-twiddle\"),s=t(\"gl-mat4/multiply\"),l=(t(\"gl-mat4/invert\"),t(\"split-polygon\")),u=t(\"robust-orientation\"),c=new Array(16),h=(new Array(16),new Array(8)),f=new Array(8),d=new Array(3),p=[0,0,0];!function(){for(var t=0;t<8;++t)h[t]=[1,1,1,1],f[t]=[1,1,1]}();var m=[[0,0,1,0,0],[0,0,-1,1,0],[0,-1,0,1,0],[0,1,0,1,0],[-1,0,0,1,0],[1,0,0,1,0]],v=[1,1,1],g=[0,0,0],y={cubeEdges:v,axis:g}},{\"bit-twiddle\":67,\"gl-mat4/invert\":181,\"gl-mat4/multiply\":183,\"robust-orientation\":508,\"split-polygon\":526}],151:[function(t,e,r){\"use strict\";function n(t){return t[0]=t[1]=t[2]=0,t}function i(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function a(t,e,r,n,i,a,o,s){this.gl=t,this.vertBuffer=e,this.vao=r,this.shader=n,this.tickCount=i,this.tickOffset=a,this.gridCount=o,this.gridOffset=s}function o(t,e,r){var n=[],i=[0,0,0],o=[0,0,0],c=[0,0,0],h=[0,0,0];n.push(0,0,1,0,1,1,0,0,-1,0,0,-1,0,1,1,0,1,-1);for(var f=0;f<3;++f){for(var d=n.length/3|0,p=0;p<r[f].length;++p){var m=+r[f][p].x;n.push(m,0,1,m,1,1,m,0,-1,m,0,-1,m,1,1,m,1,-1)}var v=n.length/3|0;i[f]=d,o[f]=v-d;for(var d=n.length/3|0,g=0;g<r[f].length;++g){var m=+r[f][g].x;n.push(m,0,1,m,1,1,m,0,-1,m,0,-1,m,1,1,m,1,-1)}var v=n.length/3|0;c[f]=d,h[f]=v-d}var y=s(t,new Float32Array(n)),b=l(t,[{buffer:y,type:t.FLOAT,size:3,stride:0,offset:0}]),x=u(t);return x.attributes.position.location=0,new a(t,y,b,x,o,i,h,c)}e.exports=o;var s=t(\"gl-buffer\"),l=t(\"gl-vao\"),u=t(\"./shaders\").line,c=[0,0,0],h=[0,0,0],f=[0,0,0],d=[0,0,0],p=[1,1],m=a.prototype;m.bind=function(t,e,r){this.shader.bind(),this.shader.uniforms.model=t,this.shader.uniforms.view=e,this.shader.uniforms.projection=r,p[0]=this.gl.drawingBufferWidth,p[1]=this.gl.drawingBufferHeight,this.shader.uniforms.screenShape=p,this.vao.bind()},m.drawAxisLine=function(t,e,r,a,o){var s=n(h);this.shader.uniforms.majorAxis=h,s[t]=e[1][t]-e[0][t],this.shader.uniforms.minorAxis=s;var l=i(d,r);l[t]+=e[0][t],this.shader.uniforms.offset=l,this.shader.uniforms.lineWidth=o,this.shader.uniforms.color=a;var u=n(f);u[(t+2)%3]=1,this.shader.uniforms.screenAxis=u,this.vao.draw(this.gl.TRIANGLES,6);var u=n(f);u[(t+1)%3]=1,this.shader.uniforms.screenAxis=u,this.vao.draw(this.gl.TRIANGLES,6)},m.drawAxisTicks=function(t,e,r,i,a){if(this.tickCount[t]){var o=n(c);o[t]=1,this.shader.uniforms.majorAxis=o,this.shader.uniforms.offset=e,this.shader.uniforms.minorAxis=r,this.shader.uniforms.color=i,this.shader.uniforms.lineWidth=a;var s=n(f);s[t]=1,this.shader.uniforms.screenAxis=s,this.vao.draw(this.gl.TRIANGLES,this.tickCount[t],this.tickOffset[t])}},m.drawGrid=function(t,e,r,a,o,s){if(this.gridCount[t]){var l=n(h);l[e]=r[1][e]-r[0][e],this.shader.uniforms.minorAxis=l;var u=i(d,a);u[e]+=r[0][e],this.shader.uniforms.offset=u;var p=n(c);p[t]=1,this.shader.uniforms.majorAxis=p;var m=n(f);m[t]=1,this.shader.uniforms.screenAxis=m,this.shader.uniforms.lineWidth=s,this.shader.uniforms.color=o,this.vao.draw(this.gl.TRIANGLES,this.gridCount[t],this.gridOffset[t])}},m.drawZero=function(t,e,r,a,o,s){var l=n(h);this.shader.uniforms.majorAxis=l,l[t]=r[1][t]-r[0][t],this.shader.uniforms.minorAxis=l;var u=i(d,a);u[t]+=r[0][t],this.shader.uniforms.offset=u;var c=n(f);c[e]=1,this.shader.uniforms.screenAxis=c,this.shader.uniforms.lineWidth=s,this.shader.uniforms.color=o,this.vao.draw(this.gl.TRIANGLES,6)},m.dispose=function(){this.vao.dispose(),this.vertBuffer.dispose(),this.shader.dispose()}},{\"./shaders\":152,\"gl-buffer\":156,\"gl-vao\":271}],152:[function(t,e,r){\"use strict\";var n=t(\"gl-shader\");r.line=function(t){return n(t,\"#define GLSLIFY 1\\nattribute vec3 position;\\n\\nuniform mat4 model, view, projection;\\nuniform vec3 offset, majorAxis, minorAxis, screenAxis;\\nuniform float lineWidth;\\nuniform vec2 screenShape;\\n\\nvec3 project(vec3 p) {\\n vec4 pp = projection * view * model * vec4(p, 1.0);\\n return pp.xyz / max(pp.w, 0.0001);\\n}\\n\\nvoid main() {\\n vec3 major = position.x * majorAxis;\\n vec3 minor = position.y * minorAxis;\\n\\n vec3 vPosition = major + minor + offset;\\n vec3 pPosition = project(vPosition);\\n vec3 offset = project(vPosition + screenAxis * position.z);\\n\\n vec2 screen = normalize((offset - pPosition).xy * screenShape) / screenShape;\\n\\n gl_Position = vec4(pPosition + vec3(0.5 * screen * lineWidth, 0), 1.0);\\n}\\n\",\"precision mediump float;\\n#define GLSLIFY 1\\nuniform vec4 color;\\nvoid main() {\\n gl_FragColor = color;\\n}\",null,[{name:\"position\",type:\"vec3\"}])};r.text=function(t){return n(t,\"#define GLSLIFY 1\\nattribute vec3 position;\\n\\nuniform mat4 model, view, projection;\\nuniform vec3 offset, axis;\\nuniform float scale, angle, pixelScale;\\nuniform vec2 resolution;\\n\\nvoid main() { \\n //Compute plane offset\\n vec2 planeCoord = position.xy * pixelScale;\\n mat2 planeXform = scale * mat2(cos(angle), sin(angle),\\n -sin(angle), cos(angle));\\n vec2 viewOffset = 2.0 * planeXform * planeCoord / resolution;\\n\\n //Compute world offset\\n float axisDistance = position.z;\\n vec3 dataPosition = axisDistance * axis + offset;\\n vec4 worldPosition = model * vec4(dataPosition, 1);\\n \\n //Compute clip position\\n vec4 viewPosition = view * worldPosition;\\n vec4 clipPosition = projection * viewPosition;\\n clipPosition /= clipPosition.w;\\n\\n //Apply text offset in clip coordinates\\n clipPosition += vec4(viewOffset, 0, 0);\\n\\n //Done\\n gl_Position = clipPosition;\\n}\",\"precision mediump float;\\n#define GLSLIFY 1\\nuniform vec4 color;\\nvoid main() {\\n gl_FragColor = color;\\n}\",null,[{name:\"position\",type:\"vec3\"}])};r.bg=function(t){return n(t,\"#define GLSLIFY 1\\nattribute vec3 position;\\nattribute vec3 normal;\\n\\nuniform mat4 model, view, projection;\\nuniform vec3 enable;\\nuniform vec3 bounds[2];\\n\\nvarying vec3 colorChannel;\\n\\nvoid main() {\\n if(dot(normal, enable) > 0.0) {\\n vec3 nPosition = mix(bounds[0], bounds[1], 0.5 * (position + 1.0));\\n gl_Position = projection * view * model * vec4(nPosition, 1.0);\\n } else {\\n gl_Position = vec4(0,0,0,0);\\n }\\n colorChannel = abs(normal);\\n}\",\"precision mediump float;\\n#define GLSLIFY 1\\n\\nuniform vec4 colors[3];\\n\\nvarying vec3 colorChannel;\\n\\nvoid main() {\\n gl_FragColor = colorChannel.x * colors[0] + \\n colorChannel.y * colors[1] +\\n colorChannel.z * colors[2];\\n}\",null,[{name:\"position\",type:\"vec3\"},{name:\"normal\",type:\"vec3\"}])}},{\"gl-shader\":255}],153:[function(t,e,r){(function(r){\"use strict\";function n(t,e,r,n){this.gl=t,this.shader=e,this.buffer=r,this.vao=n,this.tickOffset=this.tickCount=this.labelOffset=this.labelCount=null}function i(t,e){try{return l(t,e)}catch(t){return console.warn(\"error vectorizing text:\",t),{cells:[],positions:[]}}}function a(t,e,r,i,a,l){var c=o(t),h=s(t,[{buffer:c,size:3}]),f=u(t);f.attributes.position.location=0;var d=new n(t,f,c,h);return d.update(e,r,i,a,l),d}e.exports=a;var o=t(\"gl-buffer\"),s=t(\"gl-vao\"),l=t(\"vectorize-text\"),u=t(\"./shaders\").text,c=window||r.global||{},h=c.__TEXT_CACHE||{};c.__TEXT_CACHE={};var f=n.prototype,d=[0,0];f.bind=function(t,e,r,n){this.vao.bind(),this.shader.bind();var i=this.shader.uniforms;i.model=t,i.view=e,i.projection=r,i.pixelScale=n,d[0]=this.gl.drawingBufferWidth,d[1]=this.gl.drawingBufferHeight,this.shader.uniforms.resolution=d},f.update=function(t,e,r,n,a){function o(t,e,r,n){var a=h[r];a||(a=h[r]={});var o=a[e];o||(o=a[e]=i(e,{triangles:!0,font:r,textAlign:\"center\",textBaseline:\"middle\"}));for(var l=(n||12)/12,u=o.positions,c=o.cells,f=0,d=c.length;f<d;++f)for(var p=c[f],m=2;m>=0;--m){var v=u[p[m]];s.push(l*v[0],-l*v[1],t)}}for(var s=(this.gl,[]),l=[0,0,0],u=[0,0,0],c=[0,0,0],f=[0,0,0],d=0;d<3;++d){c[d]=s.length/3|0,o(.5*(t[0][d]+t[1][d]),e[d],r),f[d]=(s.length/3|0)-c[d],l[d]=s.length/3|0;for(var p=0;p<n[d].length;++p)n[d][p].text&&o(n[d][p].x,n[d][p].text,n[d][p].font||a,n[d][p].fontSize||12);u[d]=(s.length/3|0)-l[d]}this.buffer.update(s),this.tickOffset=l,this.tickCount=u,this.labelOffset=c,this.labelCount=f};var p=[0,0,0];f.drawTicks=function(t,e,r,n,i){if(this.tickCount[t]){var a=p;a[0]=a[1]=a[2]=0,a[t]=1,this.shader.uniforms.axis=a,this.shader.uniforms.color=i,this.shader.uniforms.angle=r,this.shader.uniforms.scale=e,this.shader.uniforms.offset=n,this.vao.draw(this.gl.TRIANGLES,this.tickCount[t],this.tickOffset[t])}};var m=[0,0,0];f.drawLabel=function(t,e,r,n,i){this.labelCount[t]&&(this.shader.uniforms.axis=m,this.shader.uniforms.color=i,this.shader.uniforms.angle=r,this.shader.uniforms.scale=e,this.shader.uniforms.offset=n,this.vao.draw(this.gl.TRIANGLES,this.labelCount[t],this.labelOffset[t]))},f.dispose=function(){this.shader.dispose(),this.vao.dispose(),this.buffer.dispose()}}).call(this,t(\"_process\"))},{\"./shaders\":152,_process:487,\"gl-buffer\":156,\"gl-vao\":271,\"vectorize-text\":554}],154:[function(t,e,r){\"use strict\";function n(t,e){var r=t+\"\",n=r.indexOf(\".\"),i=0;n>=0&&(i=r.length-n-1);var a=Math.pow(10,i),o=Math.round(t*e*a),s=o+\"\";if(s.indexOf(\"e\")>=0)return s;var l=o/a,u=o%a;o<0?(l=0|-Math.ceil(l),u=0|-u):(l=0|Math.floor(l),u|=0);var c=\"\"+l;if(o<0&&(c=\"-\"+c),i){for(var h=\"\"+u;h.length<i;)h=\"0\"+h;return c+\".\"+h}return c}function i(t,e){for(var r=[],i=0;i<3;++i){for(var a=[],o=(t[0][i],t[1][i],0);o*e[i]<=t[1][i];++o)a.push({x:o*e[i],text:n(e[i],o)});for(var o=-1;o*e[i]>=t[0][i];--o)a.push({x:o*e[i],text:n(e[i],o)});r.push(a)}return r}function a(t,e){for(var r=0;r<3;++r){if(t[r].length!==e[r].length)return!1;for(var n=0;n<t[r].length;++n){var i=t[r][n],a=e[r][n];if(i.x!==a.x||i.text!==a.text||i.font!==a.font||i.fontColor!==a.fontColor||i.fontSize!==a.fontSize||i.dx!==a.dx||i.dy!==a.dy)return!1}}return!0}r.create=i,r.equal=a},{}],155:[function(t,e,r){\"use strict\";function n(t,e,r){this.lo=t,this.hi=e,this.pixelsPerDataUnit=r}function i(t,e,r,n,i){for(var a=0;a<3;++a){for(var o=p,s=m,l=0;l<3;++l)s[l]=o[l]=r[l];s[3]=o[3]=1,s[a]+=1,h(s,s,e),s[3]<0&&(t[a]=1/0),o[a]-=1,h(o,o,e),o[3]<0&&(t[a]=1/0);var u=(o[0]/o[3]-s[0]/s[3])*n,c=(o[1]/o[3]-s[1]/s[3])*i;t[a]=.25*Math.sqrt(u*u+c*c)}return t}function a(t,e,r,n,a){var h=e.model||f,p=e.view||f,m=e.projection||f,y=t.bounds,a=a||l(h,p,m,y),b=a.axis;a.edges;u(d,p,h),u(d,m,d);for(var x=v,_=0;_<3;++_)x[_].lo=1/0,x[_].hi=-1/0,x[_].pixelsPerDataUnit=1/0;var w=o(c(d,d));c(d,d);for(var M=0;M<3;++M){var k=(M+1)%3,A=(M+2)%3,T=g;t:for(var _=0;_<2;++_){var S=[];if(b[M]<0!=!!_){T[M]=y[_][M];for(var E=0;E<2;++E){T[k]=y[E^_][k];for(var L=0;L<2;++L)T[A]=y[L^E^_][A],S.push(T.slice())}for(var E=0;E<w.length;++E){if(0===S.length)continue t;S=s.positive(S,w[E])}for(var E=0;E<S.length;++E)for(var A=S[E],C=i(g,d,A,r,n),L=0;L<3;++L)x[L].lo=Math.min(x[L].lo,A[L]),x[L].hi=Math.max(x[L].hi,A[L]),L!==M&&(x[L].pixelsPerDataUnit=Math.min(x[L].pixelsPerDataUnit,Math.abs(C[L])))}}}return x}e.exports=a;var o=t(\"extract-frustum-planes\"),s=t(\"split-polygon\"),l=t(\"./lib/cube.js\"),u=t(\"gl-mat4/multiply\"),c=t(\"gl-mat4/transpose\"),h=t(\"gl-vec4/transformMat4\"),f=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),d=new Float32Array(16),p=[0,0,0,1],m=[0,0,0,1],v=[new n(1/0,-1/0,1/0),new n(1/0,-1/0,1/0),new n(1/0,-1/0,1/0)],g=[0,0,0]},{\"./lib/cube.js\":150,\"extract-frustum-planes\":130,\"gl-mat4/multiply\":183,\"gl-mat4/transpose\":191,\"gl-vec4/transformMat4\":277,\"split-polygon\":526}],156:[function(t,e,r){\"use strict\";function n(t,e,r,n,i){this.gl=t,this.type=e,this.handle=r,this.length=n,this.usage=i}function i(t,e,r,n,i,a){var o=i.length*i.BYTES_PER_ELEMENT;if(a<0)return t.bufferData(e,i,n),o;if(o+a>r)throw new Error(\"gl-buffer: If resizing buffer, must not specify offset\");return t.bufferSubData(e,a,i),r}function a(t,e){for(var r=l.malloc(t.length,e),n=t.length,i=0;i<n;++i)r[i]=t[i];return r}function o(t,e){for(var r=1,n=e.length-1;n>=0;--n){if(e[n]!==r)return!1;r*=t[n]}return!0}function s(t,e,r,i){if(r=r||t.ARRAY_BUFFER,i=i||t.DYNAMIC_DRAW,r!==t.ARRAY_BUFFER&&r!==t.ELEMENT_ARRAY_BUFFER)throw new Error(\"gl-buffer: Invalid type for webgl buffer, must be either gl.ARRAY_BUFFER or gl.ELEMENT_ARRAY_BUFFER\");if(i!==t.DYNAMIC_DRAW&&i!==t.STATIC_DRAW&&i!==t.STREAM_DRAW)throw new Error(\"gl-buffer: Invalid usage for buffer, must be either gl.DYNAMIC_DRAW, gl.STATIC_DRAW or gl.STREAM_DRAW\");var a=t.createBuffer(),o=new n(t,r,a,0,i);return o.update(e),o}var l=t(\"typedarray-pool\"),u=t(\"ndarray-ops\"),c=t(\"ndarray\"),h=[\"uint8\",\"uint8_clamped\",\"uint16\",\"uint32\",\"int8\",\"int16\",\"int32\",\"float32\"],f=n.prototype;f.bind=function(){this.gl.bindBuffer(this.type,this.handle)},f.unbind=function(){this.gl.bindBuffer(this.type,null)},f.dispose=function(){this.gl.deleteBuffer(this.handle)},f.update=function(t,e){if(\"number\"!=typeof e&&(e=-1),this.bind(),\"object\"==typeof t&&void 0!==t.shape){var r=t.dtype;if(h.indexOf(r)<0&&(r=\"float32\"),this.type===this.gl.ELEMENT_ARRAY_BUFFER){r=gl.getExtension(\"OES_element_index_uint\")&&\"uint16\"!==r?\"uint32\":\"uint16\"}if(r===t.dtype&&o(t.shape,t.stride))0===t.offset&&t.data.length===t.shape[0]?this.length=i(this.gl,this.type,this.length,this.usage,t.data,e):this.length=i(this.gl,this.type,this.length,this.usage,t.data.subarray(t.offset,t.shape[0]),e);else{var n=l.malloc(t.size,r),s=c(n,t.shape);u.assign(s,t),this.length=e<0?i(this.gl,this.type,this.length,this.usage,n,e):i(this.gl,this.type,this.length,this.usage,n.subarray(0,t.size),e),l.free(n)}}else if(Array.isArray(t)){var f;f=this.type===this.gl.ELEMENT_ARRAY_BUFFER?a(t,\"uint16\"):a(t,\"float32\"),this.length=e<0?i(this.gl,this.type,this.length,this.usage,f,e):i(this.gl,this.type,this.length,this.usage,f.subarray(0,t.length),e),l.free(f)}else if(\"object\"==typeof t&&\"number\"==typeof t.length)this.length=i(this.gl,this.type,this.length,this.usage,t,e);else{if(\"number\"!=typeof t&&void 0!==t)throw new Error(\"gl-buffer: Invalid data type\");if(e>=0)throw new Error(\"gl-buffer: Cannot specify offset when resizing buffer\");t|=0,t<=0&&(t=1),this.gl.bufferData(this.type,0|t,this.usage),this.length=t}},e.exports=s},{ndarray:467,\"ndarray-ops\":461,\"typedarray-pool\":541}],157:[function(t,e,r){e.exports={0:\"NONE\",1:\"ONE\",2:\"LINE_LOOP\",3:\"LINE_STRIP\",4:\"TRIANGLES\",5:\"TRIANGLE_STRIP\",6:\"TRIANGLE_FAN\",256:\"DEPTH_BUFFER_BIT\",512:\"NEVER\",513:\"LESS\",514:\"EQUAL\",515:\"LEQUAL\",516:\"GREATER\",517:\"NOTEQUAL\",518:\"GEQUAL\",519:\"ALWAYS\",768:\"SRC_COLOR\",769:\"ONE_MINUS_SRC_COLOR\",770:\"SRC_ALPHA\",771:\"ONE_MINUS_SRC_ALPHA\",772:\"DST_ALPHA\",773:\"ONE_MINUS_DST_ALPHA\",774:\"DST_COLOR\",775:\"ONE_MINUS_DST_COLOR\",776:\"SRC_ALPHA_SATURATE\",1024:\"STENCIL_BUFFER_BIT\",1028:\"FRONT\",1029:\"BACK\",1032:\"FRONT_AND_BACK\",1280:\"INVALID_ENUM\",1281:\"INVALID_VALUE\",1282:\"INVALID_OPERATION\",1285:\"OUT_OF_MEMORY\",1286:\"INVALID_FRAMEBUFFER_OPERATION\",2304:\"CW\",2305:\"CCW\",2849:\"LINE_WIDTH\",2884:\"CULL_FACE\",2885:\"CULL_FACE_MODE\",2886:\"FRONT_FACE\",2928:\"DEPTH_RANGE\",2929:\"DEPTH_TEST\",2930:\"DEPTH_WRITEMASK\",2931:\"DEPTH_CLEAR_VALUE\",2932:\"DEPTH_FUNC\",2960:\"STENCIL_TEST\",2961:\"STENCIL_CLEAR_VALUE\",2962:\"STENCIL_FUNC\",2963:\"STENCIL_VALUE_MASK\",2964:\"STENCIL_FAIL\",2965:\"STENCIL_PASS_DEPTH_FAIL\",2966:\"STENCIL_PASS_DEPTH_PASS\",2967:\"STENCIL_REF\",2968:\"STENCIL_WRITEMASK\",2978:\"VIEWPORT\",3024:\"DITHER\",3042:\"BLEND\",3088:\"SCISSOR_BOX\",3089:\"SCISSOR_TEST\",3106:\"COLOR_CLEAR_VALUE\",3107:\"COLOR_WRITEMASK\",3317:\"UNPACK_ALIGNMENT\",3333:\"PACK_ALIGNMENT\",3379:\"MAX_TEXTURE_SIZE\",3386:\"MAX_VIEWPORT_DIMS\",3408:\"SUBPIXEL_BITS\",3410:\"RED_BITS\",3411:\"GREEN_BITS\",3412:\"BLUE_BITS\",3413:\"ALPHA_BITS\",3414:\"DEPTH_BITS\",3415:\"STENCIL_BITS\",3553:\"TEXTURE_2D\",4352:\"DONT_CARE\",4353:\"FASTEST\",4354:\"NICEST\",5120:\"BYTE\",5121:\"UNSIGNED_BYTE\",5122:\"SHORT\",5123:\"UNSIGNED_SHORT\",5124:\"INT\",5125:\"UNSIGNED_INT\",5126:\"FLOAT\",5386:\"INVERT\",5890:\"TEXTURE\",6401:\"STENCIL_INDEX\",6402:\"DEPTH_COMPONENT\",6406:\"ALPHA\",6407:\"RGB\",6408:\"RGBA\",6409:\"LUMINANCE\",6410:\"LUMINANCE_ALPHA\",7680:\"KEEP\",7681:\"REPLACE\",7682:\"INCR\",7683:\"DECR\",7936:\"VENDOR\",7937:\"RENDERER\",7938:\"VERSION\",9728:\"NEAREST\",9729:\"LINEAR\",9984:\"NEAREST_MIPMAP_NEAREST\",9985:\"LINEAR_MIPMAP_NEAREST\",9986:\"NEAREST_MIPMAP_LINEAR\",9987:\"LINEAR_MIPMAP_LINEAR\",10240:\"TEXTURE_MAG_FILTER\",10241:\"TEXTURE_MIN_FILTER\",10242:\"TEXTURE_WRAP_S\",10243:\"TEXTURE_WRAP_T\",10497:\"REPEAT\",10752:\"POLYGON_OFFSET_UNITS\",16384:\"COLOR_BUFFER_BIT\",32769:\"CONSTANT_COLOR\",32770:\"ONE_MINUS_CONSTANT_COLOR\",32771:\"CONSTANT_ALPHA\",32772:\"ONE_MINUS_CONSTANT_ALPHA\",32773:\"BLEND_COLOR\",32774:\"FUNC_ADD\",32777:\"BLEND_EQUATION_RGB\",32778:\"FUNC_SUBTRACT\",32779:\"FUNC_REVERSE_SUBTRACT\",32819:\"UNSIGNED_SHORT_4_4_4_4\",32820:\"UNSIGNED_SHORT_5_5_5_1\",32823:\"POLYGON_OFFSET_FILL\",32824:\"POLYGON_OFFSET_FACTOR\",32854:\"RGBA4\",32855:\"RGB5_A1\",32873:\"TEXTURE_BINDING_2D\",32926:\"SAMPLE_ALPHA_TO_COVERAGE\",32928:\"SAMPLE_COVERAGE\",32936:\"SAMPLE_BUFFERS\",32937:\"SAMPLES\",32938:\"SAMPLE_COVERAGE_VALUE\",32939:\"SAMPLE_COVERAGE_INVERT\",32968:\"BLEND_DST_RGB\",32969:\"BLEND_SRC_RGB\",32970:\"BLEND_DST_ALPHA\",32971:\"BLEND_SRC_ALPHA\",33071:\"CLAMP_TO_EDGE\",33170:\"GENERATE_MIPMAP_HINT\",33189:\"DEPTH_COMPONENT16\",33306:\"DEPTH_STENCIL_ATTACHMENT\",33635:\"UNSIGNED_SHORT_5_6_5\",33648:\"MIRRORED_REPEAT\",33901:\"ALIASED_POINT_SIZE_RANGE\",33902:\"ALIASED_LINE_WIDTH_RANGE\",33984:\"TEXTURE0\",33985:\"TEXTURE1\",33986:\"TEXTURE2\",33987:\"TEXTURE3\",33988:\"TEXTURE4\",33989:\"TEXTURE5\",33990:\"TEXTURE6\",33991:\"TEXTURE7\",33992:\"TEXTURE8\",33993:\"TEXTURE9\",33994:\"TEXTURE10\",33995:\"TEXTURE11\",33996:\"TEXTURE12\",33997:\"TEXTURE13\",33998:\"TEXTURE14\",33999:\"TEXTURE15\",34e3:\"TEXTURE16\",34001:\"TEXTURE17\",34002:\"TEXTURE18\",34003:\"TEXTURE19\",34004:\"TEXTURE20\",34005:\"TEXTURE21\",34006:\"TEXTURE22\",34007:\"TEXTURE23\",34008:\"TEXTURE24\",34009:\"TEXTURE25\",34010:\"TEXTURE26\",34011:\"TEXTURE27\",34012:\"TEXTURE28\",34013:\"TEXTURE29\",34014:\"TEXTURE30\",34015:\"TEXTURE31\",34016:\"ACTIVE_TEXTURE\",34024:\"MAX_RENDERBUFFER_SIZE\",34041:\"DEPTH_STENCIL\",34055:\"INCR_WRAP\",34056:\"DECR_WRAP\",34067:\"TEXTURE_CUBE_MAP\",34068:\"TEXTURE_BINDING_CUBE_MAP\",34069:\"TEXTURE_CUBE_MAP_POSITIVE_X\",34070:\"TEXTURE_CUBE_MAP_NEGATIVE_X\",34071:\"TEXTURE_CUBE_MAP_POSITIVE_Y\",34072:\"TEXTURE_CUBE_MAP_NEGATIVE_Y\",34073:\"TEXTURE_CUBE_MAP_POSITIVE_Z\",34074:\"TEXTURE_CUBE_MAP_NEGATIVE_Z\",34076:\"MAX_CUBE_MAP_TEXTURE_SIZE\",34338:\"VERTEX_ATTRIB_ARRAY_ENABLED\",34339:\"VERTEX_ATTRIB_ARRAY_SIZE\",34340:\"VERTEX_ATTRIB_ARRAY_STRIDE\",34341:\"VERTEX_ATTRIB_ARRAY_TYPE\",34342:\"CURRENT_VERTEX_ATTRIB\",34373:\"VERTEX_ATTRIB_ARRAY_POINTER\",34466:\"NUM_COMPRESSED_TEXTURE_FORMATS\",34467:\"COMPRESSED_TEXTURE_FORMATS\",34660:\"BUFFER_SIZE\",34661:\"BUFFER_USAGE\",34816:\"STENCIL_BACK_FUNC\",34817:\"STENCIL_BACK_FAIL\",34818:\"STENCIL_BACK_PASS_DEPTH_FAIL\",34819:\"STENCIL_BACK_PASS_DEPTH_PASS\",34877:\"BLEND_EQUATION_ALPHA\",34921:\"MAX_VERTEX_ATTRIBS\",34922:\"VERTEX_ATTRIB_ARRAY_NORMALIZED\",34930:\"MAX_TEXTURE_IMAGE_UNITS\",34962:\"ARRAY_BUFFER\",34963:\"ELEMENT_ARRAY_BUFFER\",34964:\"ARRAY_BUFFER_BINDING\",34965:\"ELEMENT_ARRAY_BUFFER_BINDING\",34975:\"VERTEX_ATTRIB_ARRAY_BUFFER_BINDING\",35040:\"STREAM_DRAW\",35044:\"STATIC_DRAW\",35048:\"DYNAMIC_DRAW\",35632:\"FRAGMENT_SHADER\",35633:\"VERTEX_SHADER\",35660:\"MAX_VERTEX_TEXTURE_IMAGE_UNITS\",35661:\"MAX_COMBINED_TEXTURE_IMAGE_UNITS\",35663:\"SHADER_TYPE\",35664:\"FLOAT_VEC2\",35665:\"FLOAT_VEC3\",35666:\"FLOAT_VEC4\",35667:\"INT_VEC2\",35668:\"INT_VEC3\",35669:\"INT_VEC4\",35670:\"BOOL\",35671:\"BOOL_VEC2\",35672:\"BOOL_VEC3\",35673:\"BOOL_VEC4\",35674:\"FLOAT_MAT2\",35675:\"FLOAT_MAT3\",35676:\"FLOAT_MAT4\",35678:\"SAMPLER_2D\",35680:\"SAMPLER_CUBE\",35712:\"DELETE_STATUS\",35713:\"COMPILE_STATUS\",35714:\"LINK_STATUS\",35715:\"VALIDATE_STATUS\",35716:\"INFO_LOG_LENGTH\",35717:\"ATTACHED_SHADERS\",35718:\"ACTIVE_UNIFORMS\",35719:\"ACTIVE_UNIFORM_MAX_LENGTH\",35720:\"SHADER_SOURCE_LENGTH\",35721:\"ACTIVE_ATTRIBUTES\",35722:\"ACTIVE_ATTRIBUTE_MAX_LENGTH\",35724:\"SHADING_LANGUAGE_VERSION\",35725:\"CURRENT_PROGRAM\",36003:\"STENCIL_BACK_REF\",36004:\"STENCIL_BACK_VALUE_MASK\",36005:\"STENCIL_BACK_WRITEMASK\",36006:\"FRAMEBUFFER_BINDING\",36007:\"RENDERBUFFER_BINDING\",36048:\"FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE\",36049:\"FRAMEBUFFER_ATTACHMENT_OBJECT_NAME\",36050:\"FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL\",36051:\"FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE\",36053:\"FRAMEBUFFER_COMPLETE\",36054:\"FRAMEBUFFER_INCOMPLETE_ATTACHMENT\",36055:\"FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT\",36057:\"FRAMEBUFFER_INCOMPLETE_DIMENSIONS\",36061:\"FRAMEBUFFER_UNSUPPORTED\",36064:\"COLOR_ATTACHMENT0\",36096:\"DEPTH_ATTACHMENT\",36128:\"STENCIL_ATTACHMENT\",36160:\"FRAMEBUFFER\",36161:\"RENDERBUFFER\",36162:\"RENDERBUFFER_WIDTH\",36163:\"RENDERBUFFER_HEIGHT\",36164:\"RENDERBUFFER_INTERNAL_FORMAT\",36168:\"STENCIL_INDEX8\",36176:\"RENDERBUFFER_RED_SIZE\",36177:\"RENDERBUFFER_GREEN_SIZE\",36178:\"RENDERBUFFER_BLUE_SIZE\",36179:\"RENDERBUFFER_ALPHA_SIZE\",36180:\"RENDERBUFFER_DEPTH_SIZE\",36181:\"RENDERBUFFER_STENCIL_SIZE\",36194:\"RGB565\",36336:\"LOW_FLOAT\",36337:\"MEDIUM_FLOAT\",36338:\"HIGH_FLOAT\",36339:\"LOW_INT\",36340:\"MEDIUM_INT\",36341:\"HIGH_INT\",36346:\"SHADER_COMPILER\",36347:\"MAX_VERTEX_UNIFORM_VECTORS\",36348:\"MAX_VARYING_VECTORS\",36349:\"MAX_FRAGMENT_UNIFORM_VECTORS\",37440:\"UNPACK_FLIP_Y_WEBGL\",37441:\"UNPACK_PREMULTIPLY_ALPHA_WEBGL\",37442:\"CONTEXT_LOST_WEBGL\",37443:\"UNPACK_COLORSPACE_CONVERSION_WEBGL\",37444:\"BROWSER_DEFAULT_WEBGL\"}},{}],158:[function(t,e,r){var n=t(\"./1.0/numbers\");e.exports=function(t){return n[t]}},{\"./1.0/numbers\":157}],159:[function(t,e,r){\"use strict\";function n(t,e,r,n){this.plot=t,this.shader=e,this.bufferHi=r,this.bufferLo=n,this.bounds=[1/0,1/0,-1/0,-1/0],this.numPoints=0,this.color=[0,0,0,1]}function i(t,e){var r=a(t.gl,l.vertex,l.fragment),i=o(t.gl),s=o(t.gl),u=new n(t,r,i,s);return u.update(e),t.addObject(u),u}var a=t(\"gl-shader\"),o=t(\"gl-buffer\"),s=t(\"typedarray-pool\"),l=t(\"./lib/shaders\");e.exports=i;var u=[[1,0,0,1,0,0],[1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,1,0,0],[1,0,0,1,0,0],[1,0,-1,0,0,1],[1,0,-1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,1],[1,0,-1,0,0,1],[-1,0,-1,0,0,1],[-1,0,-1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,1],[-1,0,-1,0,0,1],[0,1,1,0,0,0],[0,1,-1,0,0,0],[0,-1,-1,0,0,0],[0,-1,-1,0,0,0],[0,1,1,0,0,0],[0,-1,1,0,0,0],[0,1,0,-1,1,0],[0,1,0,-1,-1,0],[0,1,0,1,-1,0],[0,1,0,1,1,0],[0,1,0,-1,1,0],[0,1,0,1,-1,0],[0,-1,0,-1,1,0],[0,-1,0,-1,-1,0],[0,-1,0,1,-1,0],[0,-1,0,1,1,0],[0,-1,0,-1,1,0],[0,-1,0,1,-1,0]],c=n.prototype;c.draw=function(){var t=new Float32Array([0,0]),e=new Float32Array([0,0]),r=new Float32Array([0,0]),n=new Float32Array([0,0]),i=[1,1];return function(){var a=this.plot,o=this.shader,s=this.bounds,l=this.numPoints;if(l){var c=a.gl,h=a.dataBox,f=a.viewBox,d=a.pixelRatio,p=s[2]-s[0],m=s[3]-s[1],v=h[2]-h[0],g=h[3]-h[1],y=2*p/v,b=2*m/g,x=(s[0]-h[0]-.5*v)/p,_=(s[1]-h[1]-.5*g)/m;t[0]=y,t[1]=b,e[0]=y-t[0],e[1]=b-t[1],r[0]=x,r[1]=_,n[0]=x-r[0],n[1]=_-r[1];var w=f[2]-f[0],M=f[3]-f[1];i[0]=2*d/w,i[1]=2*d/M,o.bind(),o.uniforms.scaleHi=t,o.uniforms.scaleLo=e,o.uniforms.translateHi=r,o.uniforms.translateLo=n,o.uniforms.pixelScale=i,o.uniforms.color=this.color,this.bufferLo.bind(),o.attributes.positionLo.pointer(c.FLOAT,!1,16,0),this.bufferHi.bind(),o.attributes.positionHi.pointer(c.FLOAT,!1,16,0),o.attributes.pixelOffset.pointer(c.FLOAT,!1,16,8),c.drawArrays(c.TRIANGLES,0,l*u.length)}}}(),c.drawPick=function(t){return t},c.pick=function(){return null},c.update=function(t){t=t||{};var e,r,n,i=t.positions||[],a=t.errors||[],o=1;\"lineWidth\"in t&&(o=+t.lineWidth);var l=5;\"capSize\"in t&&(l=+t.capSize),this.color=(t.color||[0,0,0,1]).slice();var c=this.bounds=[1/0,1/0,-1/0,-1/0],h=this.numPoints=i.length>>1;for(e=0;e<h;++e)r=i[2*e],n=i[2*e+1],c[0]=Math.min(r,c[0]),c[1]=Math.min(n,c[1]),c[2]=Math.max(r,c[2]),c[3]=Math.max(n,c[3]);c[2]===c[0]&&(c[2]+=1),c[3]===c[1]&&(c[3]+=1);var f=1/(c[2]-c[0]),d=1/(c[3]-c[1]),p=c[0],m=c[1],v=s.mallocFloat64(h*u.length*4),g=s.mallocFloat32(h*u.length*4),y=s.mallocFloat32(h*u.length*4),b=0;for(e=0;e<h;++e){r=i[2*e],n=i[2*e+1];for(var x=a[4*e],_=a[4*e+1],w=a[4*e+2],M=a[4*e+3],k=0;k<u.length;++k){var A=u[k],T=A[0],S=A[1];T<0?T*=x:T>0&&(T*=_),S<0?S*=w:S>0&&(S*=M),v[b++]=f*(r-p+T),v[b++]=d*(n-m+S),v[b++]=o*A[2]+(l+o)*A[4],v[b++]=o*A[3]+(l+o)*A[5]}}for(e=0;e<v.length;e++)g[e]=v[e],y[e]=v[e]-g[e];this.bufferHi.update(g),this.bufferLo.update(y),s.free(v)},c.dispose=function(){this.plot.removeObject(this),this.shader.dispose(),this.bufferHi.dispose(),this.bufferLo.dispose()}},{\"./lib/shaders\":160,\"gl-buffer\":156,\"gl-shader\":255,\"typedarray-pool\":541}],160:[function(t,e,r){e.exports={\n", "vertex:\"precision highp float;\\n#define GLSLIFY 1\\n\\nattribute vec2 positionHi;\\nattribute vec2 positionLo;\\nattribute vec2 pixelOffset;\\n\\nuniform vec2 scaleHi, scaleLo, translateHi, translateLo, pixelScale;\\n\\nvec2 project(vec2 scHi, vec2 trHi, vec2 scLo, vec2 trLo, vec2 posHi, vec2 posLo) {\\n return (posHi + trHi) * scHi\\n + (posLo + trLo) * scHi\\n + (posHi + trHi) * scLo\\n + (posLo + trLo) * scLo;\\n}\\n\\nvoid main() {\\n vec3 scrPosition = vec3(\\n project(scaleHi, translateHi, scaleLo, translateLo, positionHi, positionLo),\\n 1);\\n gl_Position = vec4(\\n scrPosition.xy + scrPosition.z * pixelScale * pixelOffset,\\n 0,\\n scrPosition.z);\\n}\\n\",fragment:\"precision mediump float;\\n#define GLSLIFY 1\\n\\nuniform vec4 color;\\n\\nvoid main() {\\n gl_FragColor = vec4(color.rgb * color.a, color.a);\\n}\\n\"}},{}],161:[function(t,e,r){\"use strict\";function n(t,e,r,n){this.gl=t,this.shader=n,this.buffer=e,this.vao=r,this.pixelRatio=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lineWidth=[1,1,1],this.capSize=[10,10,10],this.lineCount=[0,0,0],this.lineOffset=[0,0,0],this.opacity=1}function i(t,e){for(var r=0;r<3;++r)t[0][r]=Math.min(t[0][r],e[r]),t[1][r]=Math.max(t[1][r],e[r])}function a(t,e,r,n){for(var i=f[n],a=0;a<i.length;++a){var o=i[a];t.push(e[0],e[1],e[2],r[0],r[1],r[2],r[3],o[0],o[1],o[2])}return i.length}function o(t){var e=t.gl,r=s(e),i=l(e,[{buffer:r,type:e.FLOAT,size:3,offset:0,stride:40},{buffer:r,type:e.FLOAT,size:4,offset:12,stride:40},{buffer:r,type:e.FLOAT,size:3,offset:28,stride:40}]),a=u(e);a.attributes.position.location=0,a.attributes.color.location=1,a.attributes.offset.location=2;var o=new n(e,r,i,a);return o.update(t),o}e.exports=o;var s=t(\"gl-buffer\"),l=t(\"gl-vao\"),u=t(\"./shaders/index\"),c=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],h=n.prototype;h.isOpaque=function(){return this.opacity>=1},h.isTransparent=function(){return this.opacity<1},h.drawTransparent=h.draw=function(t){var e=this.gl,r=this.shader.uniforms;this.shader.bind();var n=r.view=t.view||c,i=r.projection=t.projection||c;r.model=t.model||c,r.clipBounds=this.clipBounds,r.opacity=this.opacity;var a=n[12],o=n[13],s=n[14],l=n[15],u=this.pixelRatio*(i[3]*a+i[7]*o+i[11]*s+i[15]*l)/e.drawingBufferHeight;this.vao.bind();for(var h=0;h<3;++h)e.lineWidth(this.lineWidth[h]),r.capSize=this.capSize[h]*u,this.lineCount[h]&&e.drawArrays(e.LINES,this.lineOffset[h],this.lineCount[h]);this.vao.unbind()};var f=function(){for(var t=new Array(3),e=0;e<3;++e){for(var r=[],n=1;n<=2;++n)for(var i=-1;i<=1;i+=2){var a=(n+e)%3,o=[0,0,0];o[a]=i,r.push(o)}t[e]=r}return t}();h.update=function(t){t=t||{},\"lineWidth\"in t&&(this.lineWidth=t.lineWidth,Array.isArray(this.lineWidth)||(this.lineWidth=[this.lineWidth,this.lineWidth,this.lineWidth])),\"capSize\"in t&&(this.capSize=t.capSize,Array.isArray(this.capSize)||(this.capSize=[this.capSize,this.capSize,this.capSize])),\"opacity\"in t&&(this.opacity=t.opacity);var e=t.color||[[0,0,0],[0,0,0],[0,0,0]],r=t.position,n=t.error;if(Array.isArray(e[0])||(e=[e,e,e]),r&&n){var o=[],s=r.length,l=0;this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.lineCount=[0,0,0];for(var u=0;u<3;++u){this.lineOffset[u]=l;t:for(var c=0;c<s;++c){for(var h=r[c],f=0;f<3;++f)if(isNaN(h[f])||!isFinite(h[f]))continue t;var d=n[c],p=e[u];if(Array.isArray(p[0])&&(p=e[c]),3===p.length&&(p=[p[0],p[1],p[2],1]),!isNaN(d[0][u])&&!isNaN(d[1][u])){if(d[0][u]<0){var m=h.slice();m[u]+=d[0][u],o.push(h[0],h[1],h[2],p[0],p[1],p[2],p[3],0,0,0,m[0],m[1],m[2],p[0],p[1],p[2],p[3],0,0,0),i(this.bounds,m),l+=2+a(o,m,p,u)}if(d[1][u]>0){var m=h.slice();m[u]+=d[1][u],o.push(h[0],h[1],h[2],p[0],p[1],p[2],p[3],0,0,0,m[0],m[1],m[2],p[0],p[1],p[2],p[3],0,0,0),i(this.bounds,m),l+=2+a(o,m,p,u)}}}this.lineCount[u]=l-this.lineOffset[u]}this.buffer.update(o)}},h.dispose=function(){this.shader.dispose(),this.buffer.dispose(),this.vao.dispose()}},{\"./shaders/index\":163,\"gl-buffer\":156,\"gl-vao\":271}],162:[function(t,e,r){e.exports=function(t){\"string\"==typeof t&&(t=[t]);for(var e=[].slice.call(arguments,1),r=[],n=0;n<t.length-1;n++)r.push(t[n],e[n]||\"\");return r.push(t[n]),r.join(\"\")}},{}],163:[function(t,e,r){\"use strict\";var n=t(\"glslify\"),i=t(\"gl-shader\"),a=n([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute vec3 position, offset;\\nattribute vec4 color;\\nuniform mat4 model, view, projection;\\nuniform float capSize;\\nvarying vec4 fragColor;\\nvarying vec3 fragPosition;\\n\\nvoid main() {\\n vec4 worldPosition = model * vec4(position, 1.0);\\n worldPosition = (worldPosition / worldPosition.w) + vec4(capSize * offset, 0.0);\\n gl_Position = projection * view * worldPosition;\\n fragColor = color;\\n fragPosition = position;\\n}\"]),o=n([\"precision mediump float;\\n#define GLSLIFY 1\\nuniform vec3 clipBounds[2];\\nuniform float opacity;\\nvarying vec3 fragPosition;\\nvarying vec4 fragColor;\\n\\nvoid main() {\\n if(any(lessThan(fragPosition, clipBounds[0])) || any(greaterThan(fragPosition, clipBounds[1]))) {\\n discard;\\n }\\n gl_FragColor = opacity * fragColor;\\n}\"]);e.exports=function(t){return i(t,a,o,null,[{name:\"position\",type:\"vec3\"},{name:\"color\",type:\"vec4\"},{name:\"offset\",type:\"vec3\"}])}},{\"gl-shader\":255,glslify:162}],164:[function(t,e,r){\"use strict\";function n(t){return[t.getParameter(t.FRAMEBUFFER_BINDING),t.getParameter(t.RENDERBUFFER_BINDING),t.getParameter(t.TEXTURE_BINDING_2D)]}function i(t,e){t.bindFramebuffer(t.FRAMEBUFFER,e[0]),t.bindRenderbuffer(t.RENDERBUFFER,e[1]),t.bindTexture(t.TEXTURE_2D,e[2])}function a(t,e){var r=t.getParameter(e.MAX_COLOR_ATTACHMENTS_WEBGL);y=new Array(r+1);for(var n=0;n<=r;++n){for(var i=new Array(r),a=0;a<n;++a)i[a]=t.COLOR_ATTACHMENT0+a;for(var a=n;a<r;++a)i[a]=t.NONE;y[n]=i}}function o(t){switch(t){case p:throw new Error(\"gl-fbo: Framebuffer unsupported\");case m:throw new Error(\"gl-fbo: Framebuffer incomplete attachment\");case v:throw new Error(\"gl-fbo: Framebuffer incomplete dimensions\");case g:throw new Error(\"gl-fbo: Framebuffer incomplete missing attachment\");default:throw new Error(\"gl-fbo: Framebuffer failed for unspecified reason\")}}function s(t,e,r,n,i,a){if(!n)return null;var o=d(t,e,r,i,n);return o.magFilter=t.NEAREST,o.minFilter=t.NEAREST,o.mipSamples=1,o.bind(),t.framebufferTexture2D(t.FRAMEBUFFER,a,t.TEXTURE_2D,o.handle,0),o}function l(t,e,r,n,i){var a=t.createRenderbuffer();return t.bindRenderbuffer(t.RENDERBUFFER,a),t.renderbufferStorage(t.RENDERBUFFER,n,e,r),t.framebufferRenderbuffer(t.FRAMEBUFFER,i,t.RENDERBUFFER,a),a}function u(t){var e=n(t.gl),r=t.gl,a=t.handle=r.createFramebuffer(),u=t._shape[0],c=t._shape[1],h=t.color.length,f=t._ext,d=t._useStencil,p=t._useDepth,m=t._colorType;r.bindFramebuffer(r.FRAMEBUFFER,a);for(var v=0;v<h;++v)t.color[v]=s(r,u,c,m,r.RGBA,r.COLOR_ATTACHMENT0+v);0===h?(t._color_rb=l(r,u,c,r.RGBA4,r.COLOR_ATTACHMENT0),f&&f.drawBuffersWEBGL(y[0])):h>1&&f.drawBuffersWEBGL(y[h]);var g=r.getExtension(\"WEBGL_depth_texture\");g?d?t.depth=s(r,u,c,g.UNSIGNED_INT_24_8_WEBGL,r.DEPTH_STENCIL,r.DEPTH_STENCIL_ATTACHMENT):p&&(t.depth=s(r,u,c,r.UNSIGNED_SHORT,r.DEPTH_COMPONENT,r.DEPTH_ATTACHMENT)):p&&d?t._depth_rb=l(r,u,c,r.DEPTH_STENCIL,r.DEPTH_STENCIL_ATTACHMENT):p?t._depth_rb=l(r,u,c,r.DEPTH_COMPONENT16,r.DEPTH_ATTACHMENT):d&&(t._depth_rb=l(r,u,c,r.STENCIL_INDEX,r.STENCIL_ATTACHMENT));var b=r.checkFramebufferStatus(r.FRAMEBUFFER);if(b!==r.FRAMEBUFFER_COMPLETE){t._destroyed=!0,r.bindFramebuffer(r.FRAMEBUFFER,null),r.deleteFramebuffer(t.handle),t.handle=null,t.depth&&(t.depth.dispose(),t.depth=null),t._depth_rb&&(r.deleteRenderbuffer(t._depth_rb),t._depth_rb=null);for(var v=0;v<t.color.length;++v)t.color[v].dispose(),t.color[v]=null;t._color_rb&&(r.deleteRenderbuffer(t._color_rb),t._color_rb=null),i(r,e),o(b)}i(r,e)}function c(t,e,r,n,i,a,o,s){this.gl=t,this._shape=[0|e,0|r],this._destroyed=!1,this._ext=s,this.color=new Array(i);for(var l=0;l<i;++l)this.color[l]=null;this._color_rb=null,this.depth=null,this._depth_rb=null,this._colorType=n,this._useDepth=a,this._useStencil=o;var c=this,h=[0|e,0|r];Object.defineProperties(h,{0:{get:function(){return c._shape[0]},set:function(t){return c.width=t}},1:{get:function(){return c._shape[1]},set:function(t){return c.height=t}}}),this._shapeVector=h,u(this)}function h(t,e,r){if(t._destroyed)throw new Error(\"gl-fbo: Can't resize destroyed FBO\");if(t._shape[0]!==e||t._shape[1]!==r){var a=t.gl,s=a.getParameter(a.MAX_RENDERBUFFER_SIZE);if(e<0||e>s||r<0||r>s)throw new Error(\"gl-fbo: Can't resize FBO, invalid dimensions\");t._shape[0]=e,t._shape[1]=r;for(var l=n(a),u=0;u<t.color.length;++u)t.color[u].shape=t._shape;t._color_rb&&(a.bindRenderbuffer(a.RENDERBUFFER,t._color_rb),a.renderbufferStorage(a.RENDERBUFFER,a.RGBA4,t._shape[0],t._shape[1])),t.depth&&(t.depth.shape=t._shape),t._depth_rb&&(a.bindRenderbuffer(a.RENDERBUFFER,t._depth_rb),t._useDepth&&t._useStencil?a.renderbufferStorage(a.RENDERBUFFER,a.DEPTH_STENCIL,t._shape[0],t._shape[1]):t._useDepth?a.renderbufferStorage(a.RENDERBUFFER,a.DEPTH_COMPONENT16,t._shape[0],t._shape[1]):t._useStencil&&a.renderbufferStorage(a.RENDERBUFFER,a.STENCIL_INDEX,t._shape[0],t._shape[1])),a.bindFramebuffer(a.FRAMEBUFFER,t.handle);var c=a.checkFramebufferStatus(a.FRAMEBUFFER);c!==a.FRAMEBUFFER_COMPLETE&&(t.dispose(),i(a,l),o(c)),i(a,l)}}function f(t,e,r,n){p||(p=t.FRAMEBUFFER_UNSUPPORTED,m=t.FRAMEBUFFER_INCOMPLETE_ATTACHMENT,v=t.FRAMEBUFFER_INCOMPLETE_DIMENSIONS,g=t.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT);var i=t.getExtension(\"WEBGL_draw_buffers\");if(!y&&i&&a(t,i),Array.isArray(e)&&(n=r,r=0|e[1],e=0|e[0]),\"number\"!=typeof e)throw new Error(\"gl-fbo: Missing shape parameter\");var o=t.getParameter(t.MAX_RENDERBUFFER_SIZE);if(e<0||e>o||r<0||r>o)throw new Error(\"gl-fbo: Parameters are too large for FBO\");n=n||{};var s=1;if(\"color\"in n){if((s=Math.max(0|n.color,0))<0)throw new Error(\"gl-fbo: Must specify a nonnegative number of colors\");if(s>1){if(!i)throw new Error(\"gl-fbo: Multiple draw buffer extension not supported\");if(s>t.getParameter(i.MAX_COLOR_ATTACHMENTS_WEBGL))throw new Error(\"gl-fbo: Context does not support \"+s+\" draw buffers\")}}var l=t.UNSIGNED_BYTE,u=t.getExtension(\"OES_texture_float\");if(n.float&&s>0){if(!u)throw new Error(\"gl-fbo: Context does not support floating point textures\");l=t.FLOAT}else n.preferFloat&&s>0&&u&&(l=t.FLOAT);var h=!0;\"depth\"in n&&(h=!!n.depth);var f=!1;return\"stencil\"in n&&(f=!!n.stencil),new c(t,e,r,l,s,h,f,i)}var d=t(\"gl-texture2d\");e.exports=f;var p,m,v,g,y=null,b=c.prototype;Object.defineProperties(b,{shape:{get:function(){return this._destroyed?[0,0]:this._shapeVector},set:function(t){if(Array.isArray(t)||(t=[0|t,0|t]),2!==t.length)throw new Error(\"gl-fbo: Shape vector must be length 2\");var e=0|t[0],r=0|t[1];return h(this,e,r),[e,r]},enumerable:!1},width:{get:function(){return this._destroyed?0:this._shape[0]},set:function(t){return t|=0,h(this,t,this._shape[1]),t},enumerable:!1},height:{get:function(){return this._destroyed?0:this._shape[1]},set:function(t){return t|=0,h(this,this._shape[0],t),t},enumerable:!1}}),b.bind=function(){if(!this._destroyed){var t=this.gl;t.bindFramebuffer(t.FRAMEBUFFER,this.handle),t.viewport(0,0,this._shape[0],this._shape[1])}},b.dispose=function(){if(!this._destroyed){this._destroyed=!0;var t=this.gl;t.deleteFramebuffer(this.handle),this.handle=null,this.depth&&(this.depth.dispose(),this.depth=null),this._depth_rb&&(t.deleteRenderbuffer(this._depth_rb),this._depth_rb=null);for(var e=0;e<this.color.length;++e)this.color[e].dispose(),this.color[e]=null;this._color_rb&&(t.deleteRenderbuffer(this._color_rb),this._color_rb=null)}}},{\"gl-texture2d\":267}],165:[function(t,e,r){function n(t,e,r){\"use strict\";var n=o(e)||\"of unknown name (see npm glsl-shader-name)\",l=\"unknown type\";void 0!==r&&(l=r===a.FRAGMENT_SHADER?\"fragment\":\"vertex\");for(var u=i(\"Error compiling %s shader %s:\\n\",l,n),c=i(\"%s%s\",u,t),h=t.split(\"\\n\"),f={},d=0;d<h.length;d++){var p=h[d];if(\"\"!==p){var m=parseInt(p.split(\":\")[2]);if(isNaN(m))throw new Error(i(\"Could not parse error: %s\",p));f[m]=p}}for(var v=s(e).split(\"\\n\"),d=0;d<v.length;d++)if(f[d+3]||f[d+2]||f[d+1]){var g=v[d];if(u+=g+\"\\n\",f[d+1]){var y=f[d+1];y=y.substr(y.split(\":\",3).join(\":\").length+1).trim(),u+=i(\"^^^ %s\\n\\n\",y)}}return{long:u.trim(),short:c.trim()}}var i=t(\"sprintf-js\").sprintf,a=t(\"gl-constants/lookup\"),o=t(\"glsl-shader-name\"),s=t(\"add-line-numbers\");e.exports=n},{\"add-line-numbers\":40,\"gl-constants/lookup\":158,\"glsl-shader-name\":279,\"sprintf-js\":527}],166:[function(t,e,r){\"use strict\";function n(t,e,r,n,i,a,o){this.plot=t,this.shader=e,this.pickShader=r,this.positionBuffer=n,this.weightBuffer=i,this.colorBuffer=a,this.idBuffer=o,this.xData=[],this.yData=[],this.shape=[0,0],this.bounds=[1/0,1/0,-1/0,-1/0],this.pickOffset=0}function i(t,e){var r=t.gl,i=l(r,c.vertex,c.fragment),a=l(r,c.pickVertex,c.pickFragment),o=u(r),s=u(r),h=u(r),f=u(r),d=new n(t,i,a,o,s,h,f);return d.update(e),t.addObject(d),d}e.exports=i;var a=t(\"binary-search-bounds\"),o=t(\"iota-array\"),s=t(\"typedarray-pool\"),l=t(\"gl-shader\"),u=t(\"gl-buffer\"),c=t(\"./lib/shaders\"),h=n.prototype,f=[0,0,1,0,0,1,1,0,1,1,0,1];h.draw=function(){var t=[1,0,0,0,1,0,0,0,1];return function(){var e=this.plot,r=this.shader,n=this.bounds,i=this.numVertices;if(!(i<=0)){var a=e.gl,o=e.dataBox,s=n[2]-n[0],l=n[3]-n[1],u=o[2]-o[0],c=o[3]-o[1];t[0]=2*s/u,t[4]=2*l/c,t[6]=2*(n[0]-o[0])/u-1,t[7]=2*(n[1]-o[1])/c-1,r.bind();var h=r.uniforms;h.viewTransform=t,h.shape=this.shape;var f=r.attributes;this.positionBuffer.bind(),f.position.pointer(),this.weightBuffer.bind(),f.weight.pointer(a.UNSIGNED_BYTE,!1),this.colorBuffer.bind(),f.color.pointer(a.UNSIGNED_BYTE,!0),a.drawArrays(a.TRIANGLES,0,i)}}}(),h.drawPick=function(){var t=[1,0,0,0,1,0,0,0,1],e=[0,0,0,0];return function(r){var n=this.plot,i=this.pickShader,a=this.bounds,o=this.numVertices;if(!(o<=0)){var s=n.gl,l=n.dataBox,u=a[2]-a[0],c=a[3]-a[1],h=l[2]-l[0],f=l[3]-l[1];t[0]=2*u/h,t[4]=2*c/f,t[6]=2*(a[0]-l[0])/h-1,t[7]=2*(a[1]-l[1])/f-1;for(var d=0;d<4;++d)e[d]=r>>8*d&255;this.pickOffset=r,i.bind();var p=i.uniforms;p.viewTransform=t,p.pickOffset=e,p.shape=this.shape;var m=i.attributes;return this.positionBuffer.bind(),m.position.pointer(),this.weightBuffer.bind(),m.weight.pointer(s.UNSIGNED_BYTE,!1),this.idBuffer.bind(),m.pickId.pointer(s.UNSIGNED_BYTE,!1),s.drawArrays(s.TRIANGLES,0,o),r+this.shape[0]*this.shape[1]}}}(),h.pick=function(t,e,r){var n=this.pickOffset,i=this.shape[0]*this.shape[1];if(r<n||r>=n+i)return null;var a=r-n,o=this.xData,s=this.yData;return{object:this,pointId:a,dataCoord:[o[a%this.shape[0]],s[a/this.shape[0]|0]]}},h.update=function(t){t=t||{};var e=t.shape||[0,0],r=t.x||o(e[0]),n=t.y||o(e[1]),i=t.z||new Float32Array(e[0]*e[1]);this.xData=r,this.yData=n;var l=t.colorLevels||[0],u=t.colorValues||[0,0,0,1],c=l.length,h=this.bounds,d=h[0]=r[0],p=h[1]=n[0],m=h[2]=r[r.length-1],v=h[3]=n[n.length-1],g=1/(m-d),y=1/(v-p),b=e[0],x=e[1];this.shape=[b,x];var _=(b-1)*(x-1)*(f.length>>>1);this.numVertices=_;for(var w=s.mallocUint8(4*_),M=s.mallocFloat32(2*_),k=s.mallocUint8(2*_),A=s.mallocUint32(_),T=0,S=0;S<x-1;++S)for(var E=y*(n[S]-p),L=y*(n[S+1]-p),C=0;C<b-1;++C)for(var I=g*(r[C]-d),z=g*(r[C+1]-d),D=0;D<f.length;D+=2){var P,O,R,F,j=f[D],N=f[D+1],B=(S+N)*b+(C+j),U=i[B],V=a.le(l,U);if(V<0)P=u[0],O=u[1],R=u[2],F=u[3];else if(V===c-1)P=u[4*c-4],O=u[4*c-3],R=u[4*c-2],F=u[4*c-1];else{var H=(U-l[V])/(l[V+1]-l[V]),q=1-H,G=4*V,Y=4*(V+1);P=q*u[G]+H*u[Y],O=q*u[G+1]+H*u[Y+1],R=q*u[G+2]+H*u[Y+2],F=q*u[G+3]+H*u[Y+3]}w[4*T]=255*P,w[4*T+1]=255*O,w[4*T+2]=255*R,w[4*T+3]=255*F,M[2*T]=.5*I+.5*z,M[2*T+1]=.5*E+.5*L,k[2*T]=j,k[2*T+1]=N,A[T]=S*b+C,T+=1}this.positionBuffer.update(M),this.weightBuffer.update(k),this.colorBuffer.update(w),this.idBuffer.update(A),s.free(M),s.free(w),s.free(k),s.free(A)},h.dispose=function(){this.shader.dispose(),this.pickShader.dispose(),this.positionBuffer.dispose(),this.weightBuffer.dispose(),this.colorBuffer.dispose(),this.idBuffer.dispose(),this.plot.removeObject(this)}},{\"./lib/shaders\":167,\"binary-search-bounds\":168,\"gl-buffer\":156,\"gl-shader\":255,\"iota-array\":293,\"typedarray-pool\":541}],167:[function(t,e,r){\"use strict\";e.exports={fragment:\"precision lowp float;\\n#define GLSLIFY 1\\nvarying vec4 fragColor;\\nvoid main() {\\n gl_FragColor = vec4(fragColor.rgb * fragColor.a, fragColor.a);\\n}\\n\",vertex:\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute vec2 position;\\nattribute vec4 color;\\nattribute vec2 weight;\\n\\nuniform vec2 shape;\\nuniform mat3 viewTransform;\\n\\nvarying vec4 fragColor;\\n\\nvoid main() {\\n vec3 vPosition = viewTransform * vec3( position + (weight-.5)/(shape-1.) , 1.0);\\n fragColor = color;\\n gl_Position = vec4(vPosition.xy, 0, vPosition.z);\\n}\\n\",pickFragment:\"precision mediump float;\\n#define GLSLIFY 1\\n\\nvarying vec4 fragId;\\nvarying vec2 vWeight;\\n\\nuniform vec2 shape;\\nuniform vec4 pickOffset;\\n\\nvoid main() {\\n vec2 d = step(.5, vWeight);\\n vec4 id = fragId + pickOffset;\\n id.x += d.x + d.y*shape.x;\\n\\n id.y += floor(id.x / 256.0);\\n id.x -= floor(id.x / 256.0) * 256.0;\\n\\n id.z += floor(id.y / 256.0);\\n id.y -= floor(id.y / 256.0) * 256.0;\\n\\n id.w += floor(id.z / 256.0);\\n id.z -= floor(id.z / 256.0) * 256.0;\\n\\n gl_FragColor = id/255.;\\n}\\n\",pickVertex:\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute vec2 position;\\nattribute vec4 pickId;\\nattribute vec2 weight;\\n\\nuniform vec2 shape;\\nuniform mat3 viewTransform;\\n\\nvarying vec4 fragId;\\nvarying vec2 vWeight;\\n\\nvoid main() {\\n vWeight = weight;\\n\\n fragId = pickId;\\n\\n vec3 vPosition = viewTransform * vec3( position + (weight-.5)/(shape-1.) , 1.0);\\n gl_Position = vec4(vPosition.xy, 0, vPosition.z);\\n}\\n\"}},{}],168:[function(t,e,r){arguments[4][84][0].apply(r,arguments)},{dup:84}],169:[function(t,e,r){r.lineVertex=\"precision highp float;\\n#define GLSLIFY 1\\n\\nattribute vec2 aHi, aLo, dHi, dLo;\\n\\nuniform vec2 scaleHi, translateHi, scaleLo, translateLo, screenShape;\\nuniform float width;\\n\\nvarying vec2 direction;\\n\\n\\nvec2 project_1_0(vec2 scHi, vec2 trHi, vec2 scLo, vec2 trLo, vec2 posHi, vec2 posLo) {\\n return (posHi + trHi) * scHi\\n + (posLo + trLo) * scHi\\n + (posHi + trHi) * scLo\\n + (posLo + trLo) * scLo;\\n}\\n\\n\\nvec2 project_2_1(vec2 scHi, vec2 scLo, vec2 posHi, vec2 posLo) {\\n return scHi * posHi\\n + scLo * posHi\\n + scHi * posLo\\n + scLo * posLo;\\n}\\n\\nvoid main() {\\n vec2 p = project_1_0(scaleHi, translateHi, scaleLo, translateLo, aHi, aLo);\\n vec2 dir = project_2_1(scaleHi, scaleLo, dHi, dLo);\\n vec2 n = 0.5 * width * normalize(screenShape.yx * vec2(dir.y, -dir.x)) / screenShape.xy;\\n vec2 tangent = normalize(screenShape.xy * dir);\\n if(dir.x < 0.0 || (dir.x == 0.0 && dir.y < 0.0)) {\\n direction = -tangent;\\n } else {\\n direction = tangent;\\n }\\n gl_Position = vec4(p + n, 0.0, 1.0);\\n}\",r.lineFragment=\"precision highp float;\\n#define GLSLIFY 1\\n\\nuniform vec4 color;\\nuniform vec2 screenShape;\\nuniform sampler2D dashPattern;\\nuniform float dashLength;\\n\\nvarying vec2 direction;\\n\\nvoid main() {\\n float t = fract(dot(direction, gl_FragCoord.xy) / dashLength);\\n vec4 pcolor = color * texture2D(dashPattern, vec2(t, 0.0)).r;\\n gl_FragColor = vec4(pcolor.rgb * pcolor.a, pcolor.a);\\n}\",r.mitreVertex=\"precision highp float;\\n#define GLSLIFY 1\\n\\nattribute vec2 aHi, aLo;\\n\\nuniform vec2 scaleHi, translateHi, scaleLo, translateLo;\\nuniform float radius;\\n\\n\\nvec2 project_1_0(vec2 scHi, vec2 trHi, vec2 scLo, vec2 trLo, vec2 posHi, vec2 posLo) {\\n return (posHi + trHi) * scHi\\n + (posLo + trLo) * scHi\\n + (posHi + trHi) * scLo\\n + (posLo + trLo) * scLo;\\n}\\n\\n\\nvoid main() {\\n vec2 p = project_1_0(scaleHi, translateHi, scaleLo, translateLo, aHi, aLo);\\n gl_Position = vec4(p, 0.0, 1.0);\\n gl_PointSize = radius;\\n}\",r.mitreFragment=\"precision mediump float;\\n#define GLSLIFY 1\\n\\nuniform vec4 color;\\n\\nvoid main() {\\n if(length(gl_PointCoord.xy - 0.5) > 0.25) {\\n discard;\\n }\\n gl_FragColor = vec4(color.rgb, color.a);\\n}\",r.pickVertex=\"precision highp float;\\n#define GLSLIFY 1\\n\\nattribute vec2 aHi, aLo, dHi;\\nattribute vec4 pick0, pick1;\\n\\nuniform vec2 scaleHi, translateHi, scaleLo, translateLo, screenShape;\\nuniform float width;\\n\\nvarying vec4 pickA, pickB;\\n\\n\\nvec2 project_1_0(vec2 scHi, vec2 trHi, vec2 scLo, vec2 trLo, vec2 posHi, vec2 posLo) {\\n return (posHi + trHi) * scHi\\n + (posLo + trLo) * scHi\\n + (posHi + trHi) * scLo\\n + (posLo + trLo) * scLo;\\n}\\n\\n\\nvoid main() {\\n vec2 p = project_1_0(scaleHi, translateHi, scaleLo, translateLo, aHi, aLo);\\n vec2 n = width * normalize(screenShape.yx * vec2(dHi.y, -dHi.x)) / screenShape.xy;\\n gl_Position = vec4(p + n, 0, 1);\\n pickA = pick0;\\n pickB = pick1;\\n}\",r.pickFragment=\"precision mediump float;\\n#define GLSLIFY 1\\n\\nuniform vec4 pickOffset;\\n\\nvarying vec4 pickA, pickB;\\n\\nvoid main() {\\n vec4 fragId = vec4(pickA.xyz, 0.0);\\n if(pickB.w > pickA.w) {\\n fragId.xyz = pickB.xyz;\\n }\\n\\n fragId += pickOffset;\\n\\n fragId.y += floor(fragId.x / 256.0);\\n fragId.x -= floor(fragId.x / 256.0) * 256.0;\\n\\n fragId.z += floor(fragId.y / 256.0);\\n fragId.y -= floor(fragId.y / 256.0) * 256.0;\\n\\n fragId.w += floor(fragId.z / 256.0);\\n fragId.z -= floor(fragId.z / 256.0) * 256.0;\\n\\n gl_FragColor = fragId / 255.0;\\n}\",r.fillVertex=\"precision highp float;\\n#define GLSLIFY 1\\n\\nattribute vec2 aHi, aLo, dHi;\\n\\nuniform vec2 scaleHi, translateHi, scaleLo, translateLo, projectAxis;\\nuniform float projectValue, depth;\\n\\n\\nvec2 project_1_0(vec2 scHi, vec2 trHi, vec2 scLo, vec2 trLo, vec2 posHi, vec2 posLo) {\\n return (posHi + trHi) * scHi\\n + (posLo + trLo) * scHi\\n + (posHi + trHi) * scLo\\n + (posLo + trLo) * scLo;\\n}\\n\\n\\nvoid main() {\\n vec2 p = project_1_0(scaleHi, translateHi, scaleLo, translateLo, aHi, aLo);\\n if(dHi.y < 0.0 || (dHi.y == 0.0 && dHi.x < 0.0)) {\\n if(dot(p, projectAxis) < projectValue) {\\n p = p * (1.0 - abs(projectAxis)) + projectAxis * projectValue;\\n }\\n }\\n gl_Position = vec4(p, depth, 1);\\n}\",r.fillFragment=\"precision mediump float;\\n#define GLSLIFY 1\\n\\nuniform vec4 color;\\n\\nvoid main() {\\n gl_FragColor = vec4(color.rgb * color.a, color.a);\\n}\"},{}],170:[function(t,e,r){\"use strict\";function n(t,e,r,n,i,a,o,s,l){this.plot=t,this.dashPattern=e,this.lineBufferHi=r,this.lineBufferLo=n,this.pickBuffer=i,this.lineShader=a,this.mitreShader=o,this.fillShader=s,this.pickShader=l,this.usingDashes=!1,this.bounds=[1/0,1/0,-1/0,-1/0],this.width=1,this.color=[0,0,1,1],this.fill=[!1,!1,!1,!1],this.fillColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.data=null,this.numPoints=0,this.vertCount=0,this.pickOffset=0}function i(t){return t.map(function(t){return t.slice()})}function a(t,e){var r=t.gl,i=s(r),a=s(r),u=s(r),c=l(r,[1,1]),f=o(r,h.lineVertex,h.lineFragment),d=o(r,h.mitreVertex,h.mitreFragment),p=o(r,h.fillVertex,h.fillFragment),m=o(r,h.pickVertex,h.pickFragment),v=new n(t,c,i,a,u,f,d,p,m);return t.addObject(v),v.update(e),v}e.exports=a;var o=t(\"gl-shader\"),s=t(\"gl-buffer\"),l=t(\"gl-texture2d\"),u=t(\"ndarray\"),c=t(\"typedarray-pool\"),h=t(\"./lib/shaders\"),f=n.prototype;f.setProjectionModel=function(){var t={scaleHi:new Float32Array([0,0]),scaleLo:new Float32Array([0,0]),translateHi:new Float32Array([0,0]),translateLo:new Float32Array([0,0]),screenShape:[0,0]};return function(){var e=this.bounds,r=this.plot.viewBox,n=this.plot.dataBox,i=e[2]-e[0],a=e[3]-e[1],o=n[2]-n[0],s=n[3]-n[1],l=r[2]-r[0],u=r[3]-r[1],c=2*i/o,h=2*a/s,f=(e[0]-n[0]-.5*o)/i,d=(e[1]-n[1]-.5*s)/a;return t.scaleHi[0]=c,t.scaleHi[1]=h,t.scaleLo[0]=c-t.scaleHi[0],t.scaleLo[1]=h-t.scaleHi[1],t.translateHi[0]=f,t.translateHi[1]=d,t.translateLo[0]=f-t.translateHi[0],t.translateLo[1]=d-t.translateHi[1],t.screenShape[0]=l,t.screenShape[1]=u,t}}(),f.setProjectionUniforms=function(t,e){t.scaleHi=e.scaleHi,t.scaleLo=e.scaleLo,t.translateHi=e.translateHi,t.translateLo=e.translateLo,t.screenShape=e.screenShape},f.draw=function(){var t=[1,0],e=[-1,0],r=[0,1],n=[0,-1];return function(){var i=this.vertCount;if(i){var a=this.setProjectionModel(),o=this.plot,s=this.width,l=o.gl,u=o.pixelRatio,c=this.color,h=this.fillShader.attributes;this.lineBufferLo.bind(),h.aLo.pointer(l.FLOAT,!1,16,0),this.lineBufferHi.bind();var f=this.fill;if(f[0]||f[1]||f[2]||f[3]){var d=this.fillShader;d.bind();var p=d.uniforms;this.setProjectionUniforms(p,a),p.depth=o.nextDepthValue(),h.aHi.pointer(l.FLOAT,!1,16,0),h.dHi.pointer(l.FLOAT,!1,16,8),l.depthMask(!0),l.enable(l.DEPTH_TEST);var m=this.fillColor;f[0]&&(p.color=m[0],p.projectAxis=e,p.projectValue=1,l.drawArrays(l.TRIANGLES,0,i)),f[1]&&(p.color=m[1],p.projectAxis=n,p.projectValue=1,l.drawArrays(l.TRIANGLES,0,i)),f[2]&&(p.color=m[2],p.projectAxis=t,p.projectValue=1,l.drawArrays(l.TRIANGLES,0,i)),f[3]&&(p.color=m[3],p.projectAxis=r,p.projectValue=1,l.drawArrays(l.TRIANGLES,0,i)),l.depthMask(!1),l.disable(l.DEPTH_TEST)}var v=this.lineShader;v.bind(),this.lineBufferLo.bind(),v.attributes.aLo.pointer(l.FLOAT,!1,16,0),v.attributes.dLo.pointer(l.FLOAT,!1,16,8),this.lineBufferHi.bind();var g=v.uniforms;this.setProjectionUniforms(g,a),g.color=c,g.width=s*u,g.dashPattern=this.dashPattern.bind(),g.dashLength=this.dashLength*u;var y=v.attributes;if(y.aHi.pointer(l.FLOAT,!1,16,0),y.dHi.pointer(l.FLOAT,!1,16,8),l.drawArrays(l.TRIANGLES,0,i),s>2&&!this.usingDashes){var b=this.mitreShader;this.lineBufferLo.bind(),b.attributes.aLo.pointer(l.FLOAT,!1,48,0),this.lineBufferHi.bind(),b.bind();var x=b.uniforms;this.setProjectionUniforms(x,a),x.color=c,x.radius=s*u,b.attributes.aHi.pointer(l.FLOAT,!1,48,0),l.drawArrays(l.POINTS,0,i/3|0)}}}}(),f.drawPick=function(){var t=[0,0,0,0];return function(e){var r=this.vertCount,n=this.numPoints;if(this.pickOffset=e,!r)return e+n;var i=this.setProjectionModel(),a=this.plot,o=this.width,s=a.gl,l=a.pickPixelRatio,u=this.pickShader,c=this.pickBuffer;t[0]=255&e,t[1]=e>>>8&255,t[2]=e>>>16&255,t[3]=e>>>24,u.bind();var h=u.uniforms;this.setProjectionUniforms(h,i),h.width=o*l,h.pickOffset=t;var f=u.attributes;return this.lineBufferHi.bind(),f.aHi.pointer(s.FLOAT,!1,16,0),f.dHi.pointer(s.FLOAT,!1,16,8),this.lineBufferLo.bind(),f.aLo.pointer(s.FLOAT,!1,16,0),c.bind(),f.pick0.pointer(s.UNSIGNED_BYTE,!1,8,0),f.pick1.pointer(s.UNSIGNED_BYTE,!1,8,4),s.drawArrays(s.TRIANGLES,0,r),e+n}}(),f.pick=function(t,e,r){var n=this.pickOffset,i=this.numPoints;if(r<n||r>=n+i)return null;var a=r-n,o=this.data;return{object:this,pointId:a,dataCoord:[o[2*a],o[2*a+1]]}},f.update=function(t){t=t||{};var e,r,n,a,o,s=this.plot.gl;this.color=(t.color||[0,0,1,1]).slice(),this.width=+(t.width||1),this.fill=(t.fill||[!1,!1,!1,!1]).slice(),this.fillColor=i(t.fillColor||[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]]);var h=t.dashes||[1],f=0;for(e=0;e<h.length;++e)f+=h[e];var d=c.mallocUint8(f);n=0;var p=255;for(e=0;e<h.length;++e){for(r=0;r<h[e];++r)d[n++]=p;p^=255}this.dashPattern.dispose(),this.usingDashes=h.length>1,this.dashPattern=l(s,u(d,[f,1,4],[1,0,0])),this.dashPattern.minFilter=s.NEAREST,this.dashPattern.magFilter=s.NEAREST,this.dashLength=f,c.free(d);var m=t.positions;this.data=m;var v=this.bounds;v[0]=v[1]=1/0,v[2]=v[3]=-1/0;var g=this.numPoints=m.length>>>1;if(0!==g){for(e=0;e<g;++e)a=m[2*e],o=m[2*e+1],isNaN(a)||isNaN(o)||(v[0]=Math.min(v[0],a),v[1]=Math.min(v[1],o),v[2]=Math.max(v[2],a),v[3]=Math.max(v[3],o));v[0]===v[2]&&(v[2]+=1),v[3]===v[1]&&(v[3]+=1);var y=c.mallocFloat64(24*(g-1)),b=c.mallocFloat32(24*(g-1)),x=c.mallocFloat32(24*(g-1)),_=c.mallocUint32(12*(g-1)),w=b.length,M=_.length;n=g;for(var k=0;n>1;){var A=--n;a=m[2*n],o=m[2*n+1];var T=A-1,S=m[2*T],E=m[2*T+1];if(!(isNaN(a)||isNaN(o)||isNaN(S)||isNaN(E))){k+=1,a=(a-v[0])/(v[2]-v[0]),o=(o-v[1])/(v[3]-v[1]),S=(S-v[0])/(v[2]-v[0]),E=(E-v[1])/(v[3]-v[1]);var L=S-a,C=E-o,I=A|1<<24,z=A-1,D=A,P=A-1|1<<24;y[--w]=-C,y[--w]=-L,y[--w]=o,y[--w]=a,_[--M]=I,_[--M]=z,y[--w]=C,y[--w]=L,y[--w]=E,y[--w]=S,_[--M]=D,_[--M]=P,y[--w]=-C,y[--w]=-L,y[--w]=E,y[--w]=S,_[--M]=D,_[--M]=P,y[--w]=C,y[--w]=L,y[--w]=E,y[--w]=S,_[--M]=D,_[--M]=P,y[--w]=-C,y[--w]=-L,y[--w]=o,y[--w]=a,_[--M]=I,_[--M]=z,y[--w]=C,y[--w]=L,y[--w]=o,y[--w]=a,_[--M]=I,_[--M]=z}}for(e=0;e<y.length;e++)b[e]=y[e],x[e]=y[e]-b[e];this.vertCount=6*k,this.lineBufferHi.update(b.subarray(w)),this.lineBufferLo.update(x.subarray(w)),this.pickBuffer.update(_.subarray(M)),c.free(y),c.free(b),c.free(x),c.free(_)}},f.dispose=function(){this.plot.removeObject(this),this.lineBufferLo.dispose(),this.lineBufferHi.dispose(),this.pickBuffer.dispose(),this.lineShader.dispose(),this.mitreShader.dispose(),this.fillShader.dispose(),this.pickShader.dispose(),this.dashPattern.dispose()}},{\"./lib/shaders\":169,\"gl-buffer\":156,\"gl-shader\":255,\"gl-texture2d\":267,ndarray:467,\"typedarray-pool\":541}],171:[function(t,e,r){var n=t(\"gl-shader\"),i=\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute vec3 position, nextPosition;\\nattribute float arcLength, lineWidth;\\nattribute vec4 color;\\n\\nuniform vec2 screenShape;\\nuniform float pixelRatio;\\nuniform mat4 model, view, projection;\\n\\nvarying vec4 fragColor;\\nvarying vec3 worldPosition;\\nvarying float pixelArcLength;\\n\\nvoid main() {\\n vec4 projected = projection * view * model * vec4(position, 1.0);\\n vec4 tangentClip = projection * view * model * vec4(nextPosition - position, 0.0);\\n vec2 tangent = normalize(screenShape * tangentClip.xy);\\n vec2 offset = 0.5 * pixelRatio * lineWidth * vec2(tangent.y, -tangent.x) / screenShape;\\n\\n gl_Position = vec4(projected.xy + projected.w * offset, projected.zw);\\n\\n worldPosition = position;\\n pixelArcLength = arcLength;\\n fragColor = color;\\n}\\n\",a=[{name:\"position\",type:\"vec3\"},{name:\"nextPosition\",type:\"vec3\"},{name:\"arcLength\",type:\"float\"},{name:\"lineWidth\",type:\"float\"},{name:\"color\",type:\"vec4\"}];r.createShader=function(t){return n(t,i,\"precision mediump float;\\n#define GLSLIFY 1\\n\\nuniform vec3 clipBounds[2];\\nuniform sampler2D dashTexture;\\nuniform float dashScale;\\nuniform float opacity;\\n\\nvarying vec3 worldPosition;\\nvarying float pixelArcLength;\\nvarying vec4 fragColor;\\n\\nvoid main() {\\n if(any(lessThan(worldPosition, clipBounds[0])) || any(greaterThan(worldPosition, clipBounds[1]))) {\\n discard;\\n }\\n float dashWeight = texture2D(dashTexture, vec2(dashScale * pixelArcLength, 0)).r;\\n if(dashWeight < 0.5) {\\n discard;\\n }\\n gl_FragColor = fragColor * opacity;\\n}\\n\",null,a)},r.createPickShader=function(t){return n(t,i,\"precision mediump float;\\n#define GLSLIFY 1\\n\\n#define FLOAT_MAX 1.70141184e38\\n#define FLOAT_MIN 1.17549435e-38\\n\\nlowp vec4 encode_float_1_0(highp float v) {\\n highp float av = abs(v);\\n\\n //Handle special cases\\n if(av < FLOAT_MIN) {\\n return vec4(0.0, 0.0, 0.0, 0.0);\\n } else if(v > FLOAT_MAX) {\\n return vec4(127.0, 128.0, 0.0, 0.0) / 255.0;\\n } else if(v < -FLOAT_MAX) {\\n return vec4(255.0, 128.0, 0.0, 0.0) / 255.0;\\n }\\n\\n highp vec4 c = vec4(0,0,0,0);\\n\\n //Compute exponent and mantissa\\n highp float e = floor(log2(av));\\n highp float m = av * pow(2.0, -e) - 1.0;\\n \\n //Unpack mantissa\\n c[1] = floor(128.0 * m);\\n m -= c[1] / 128.0;\\n c[2] = floor(32768.0 * m);\\n m -= c[2] / 32768.0;\\n c[3] = floor(8388608.0 * m);\\n \\n //Unpack exponent\\n highp float ebias = e + 127.0;\\n c[0] = floor(ebias / 2.0);\\n ebias -= c[0] * 2.0;\\n c[1] += floor(ebias) * 128.0; \\n\\n //Unpack sign bit\\n c[0] += 128.0 * step(0.0, -v);\\n\\n //Scale back to range\\n return c / 255.0;\\n}\\n\\n\\n\\nuniform float pickId;\\nuniform vec3 clipBounds[2];\\n\\nvarying vec3 worldPosition;\\nvarying float pixelArcLength;\\nvarying vec4 fragColor;\\n\\nvoid main() {\\n if(any(lessThan(worldPosition, clipBounds[0])) || any(greaterThan(worldPosition, clipBounds[1]))) {\\n discard;\\n }\\n gl_FragColor = vec4(pickId/255.0, encode_float_1_0(pixelArcLength).xyz);\\n}\",null,a)}},{\"gl-shader\":255}],172:[function(t,e,r){\"use strict\";function n(t,e){for(var r=0,n=0;n<3;++n){var i=t[n]-e[n];r+=i*i}return Math.sqrt(r)}function i(t){\n", "for(var e=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],r=0;r<3;++r)e[0][r]=Math.max(t[0][r],e[0][r]),e[1][r]=Math.min(t[1][r],e[1][r]);return e}function a(t,e,r,n){this.arcLength=t,this.position=e,this.index=r,this.dataCoordinate=n}function o(t,e,r,n,i,a){this.gl=t,this.shader=e,this.pickShader=r,this.buffer=n,this.vao=i,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.points=[],this.arcLength=[],this.vertexCount=0,this.bounds=[[0,0,0],[0,0,0]],this.pickId=0,this.lineWidth=1,this.texture=a,this.dashScale=1,this.opacity=1,this.dirty=!0,this.pixelRatio=1}function s(t){var e=t.gl||t.scene&&t.scene.gl,r=m(e);r.attributes.position.location=0,r.attributes.nextPosition.location=1,r.attributes.arcLength.location=2,r.attributes.lineWidth.location=3,r.attributes.color.location=4;var n=v(e);n.attributes.position.location=0,n.attributes.nextPosition.location=1,n.attributes.arcLength.location=2,n.attributes.lineWidth.location=3,n.attributes.color.location=4;for(var i=l(e),a=u(e,[{buffer:i,size:3,offset:0,stride:48},{buffer:i,size:3,offset:12,stride:48},{buffer:i,size:1,offset:24,stride:48},{buffer:i,size:1,offset:28,stride:48},{buffer:i,size:4,offset:32,stride:48}]),s=d(new Array(1024),[256,1,4]),h=0;h<1024;++h)s.data[h]=255;var f=c(e,s);f.wrap=e.REPEAT;var p=new o(e,r,n,i,a,f);return p.update(t),p}e.exports=s;var l=t(\"gl-buffer\"),u=t(\"gl-vao\"),c=t(\"gl-texture2d\"),h=t(\"glsl-read-float\"),f=t(\"binary-search-bounds\"),d=t(\"ndarray\"),p=t(\"./lib/shaders\"),m=p.createShader,v=p.createPickShader,g=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],y=o.prototype;y.isTransparent=function(){return this.opacity<1},y.isOpaque=function(){return this.opacity>=1},y.pickSlots=1,y.setPickBase=function(t){this.pickId=t},y.drawTransparent=y.draw=function(t){var e=this.gl,r=this.shader,n=this.vao;r.bind(),r.uniforms={model:t.model||g,view:t.view||g,projection:t.projection||g,clipBounds:i(this.clipBounds),dashTexture:this.texture.bind(),dashScale:this.dashScale/this.arcLength[this.arcLength.length-1],opacity:this.opacity,screenShape:[e.drawingBufferWidth,e.drawingBufferHeight],pixelRatio:this.pixelRatio},n.bind(),n.draw(e.TRIANGLE_STRIP,this.vertexCount)},y.drawPick=function(t){var e=this.gl,r=this.pickShader,n=this.vao;r.bind(),r.uniforms={model:t.model||g,view:t.view||g,projection:t.projection||g,pickId:this.pickId,clipBounds:i(this.clipBounds),screenShape:[e.drawingBufferWidth,e.drawingBufferHeight],pixelRatio:this.pixelRatio},n.bind(),n.draw(e.TRIANGLE_STRIP,this.vertexCount)},y.update=function(t){var e,r;this.dirty=!0;var i=!!t.connectGaps;\"dashScale\"in t&&(this.dashScale=t.dashScale),\"opacity\"in t&&(this.opacity=+t.opacity);var a=t.position||t.positions;if(a){var o=t.color||t.colors||[0,0,0,1],s=t.lineWidth||1,l=[],u=[],c=[],h=0,p=0,m=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],v=!1;t:for(e=1;e<a.length;++e){var g=a[e-1],y=a[e];for(u.push(h),c.push(g.slice()),r=0;r<3;++r){if(isNaN(g[r])||isNaN(y[r])||!isFinite(g[r])||!isFinite(y[r])){if(!i&&l.length>0){for(var b=0;b<24;++b)l.push(l[l.length-12]);p+=2,v=!0}continue t}m[0][r]=Math.min(m[0][r],g[r],y[r]),m[1][r]=Math.max(m[1][r],g[r],y[r])}var x,_;Array.isArray(o[0])?(x=o[e-1],_=o[e]):x=_=o,3===x.length&&(x=[x[0],x[1],x[2],1]),3===_.length&&(_=[_[0],_[1],_[2],1]);var w;w=Array.isArray(s)?s[e-1]:s;var M=h;if(h+=n(g,y),v){for(r=0;r<2;++r)l.push(g[0],g[1],g[2],y[0],y[1],y[2],M,w,x[0],x[1],x[2],x[3]);p+=2,v=!1}l.push(g[0],g[1],g[2],y[0],y[1],y[2],M,w,x[0],x[1],x[2],x[3],g[0],g[1],g[2],y[0],y[1],y[2],M,-w,x[0],x[1],x[2],x[3],y[0],y[1],y[2],g[0],g[1],g[2],h,-w,_[0],_[1],_[2],_[3],y[0],y[1],y[2],g[0],g[1],g[2],h,w,_[0],_[1],_[2],_[3]),p+=4}if(this.buffer.update(l),u.push(h),c.push(a[a.length-1].slice()),this.bounds=m,this.vertexCount=p,this.points=c,this.arcLength=u,\"dashes\"in t){var k=t.dashes,A=k.slice();for(A.unshift(0),e=1;e<A.length;++e)A[e]=A[e-1]+A[e];var T=d(new Array(1024),[256,1,4]);for(e=0;e<256;++e){for(r=0;r<4;++r)T.set(e,0,r,0);1&f.le(A,A[A.length-1]*e/255)?T.set(e,0,0,0):T.set(e,0,0,255)}this.texture.setPixels(T)}}},y.dispose=function(){this.shader.dispose(),this.vao.dispose(),this.buffer.dispose()},y.pick=function(t){if(!t)return null;if(t.id!==this.pickId)return null;var e=h(t.value[0],t.value[1],t.value[2],0),r=f.le(this.arcLength,e);if(r<0)return null;if(r===this.arcLength.length-1)return new a(this.arcLength[this.arcLength.length-1],this.points[this.points.length-1].slice(),r);for(var n=this.points[r],i=this.points[Math.min(r+1,this.points.length-1)],o=(e-this.arcLength[r])/(this.arcLength[r+1]-this.arcLength[r]),s=1-o,l=[0,0,0],u=0;u<3;++u)l[u]=s*n[u]+o*i[u];var c=Math.min(o<.5?r:r+1,this.points.length-1);return new a(e,l,c,this.points[c])}},{\"./lib/shaders\":171,\"binary-search-bounds\":66,\"gl-buffer\":156,\"gl-texture2d\":267,\"gl-vao\":271,\"glsl-read-float\":278,ndarray:467}],173:[function(t,e,r){function n(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=r*a-i*n;return o?(o=1/o,t[0]=a*o,t[1]=-n*o,t[2]=-i*o,t[3]=r*o,t):null}e.exports=n},{}],174:[function(t,e,r){function n(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=e[4],s=e[5],l=e[6],u=e[7],c=e[8],h=c*o-s*u,f=-c*a+s*l,d=u*a-o*l,p=r*h+n*f+i*d;return p?(p=1/p,t[0]=h*p,t[1]=(-c*n+i*u)*p,t[2]=(s*n-i*o)*p,t[3]=f*p,t[4]=(c*r-i*l)*p,t[5]=(-s*r+i*a)*p,t[6]=d*p,t[7]=(-u*r+n*l)*p,t[8]=(o*r-n*a)*p,t):null}e.exports=n},{}],175:[function(t,e,r){function n(t){var e=new Float32Array(16);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}e.exports=n},{}],176:[function(t,e,r){function n(){var t=new Float32Array(16);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}e.exports=n},{}],177:[function(t,e,r){function n(t){var e=t[0],r=t[1],n=t[2],i=t[3],a=t[4],o=t[5],s=t[6],l=t[7],u=t[8],c=t[9],h=t[10],f=t[11],d=t[12],p=t[13],m=t[14],v=t[15];return(e*o-r*a)*(h*v-f*m)-(e*s-n*a)*(c*v-f*p)+(e*l-i*a)*(c*m-h*p)+(r*s-n*o)*(u*v-f*d)-(r*l-i*o)*(u*m-h*d)+(n*l-i*s)*(u*p-c*d)}e.exports=n},{}],178:[function(t,e,r){function n(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=r+r,s=n+n,l=i+i,u=r*o,c=n*o,h=n*s,f=i*o,d=i*s,p=i*l,m=a*o,v=a*s,g=a*l;return t[0]=1-h-p,t[1]=c+g,t[2]=f-v,t[3]=0,t[4]=c-g,t[5]=1-u-p,t[6]=d+m,t[7]=0,t[8]=f+v,t[9]=d-m,t[10]=1-u-h,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}e.exports=n},{}],179:[function(t,e,r){function n(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=n+n,l=i+i,u=a+a,c=n*s,h=n*l,f=n*u,d=i*l,p=i*u,m=a*u,v=o*s,g=o*l,y=o*u;return t[0]=1-(d+m),t[1]=h+y,t[2]=f-g,t[3]=0,t[4]=h-y,t[5]=1-(c+m),t[6]=p+v,t[7]=0,t[8]=f+g,t[9]=p-v,t[10]=1-(c+d),t[11]=0,t[12]=r[0],t[13]=r[1],t[14]=r[2],t[15]=1,t}e.exports=n},{}],180:[function(t,e,r){function n(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}e.exports=n},{}],181:[function(t,e,r){function n(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=e[4],s=e[5],l=e[6],u=e[7],c=e[8],h=e[9],f=e[10],d=e[11],p=e[12],m=e[13],v=e[14],g=e[15],y=r*s-n*o,b=r*l-i*o,x=r*u-a*o,_=n*l-i*s,w=n*u-a*s,M=i*u-a*l,k=c*m-h*p,A=c*v-f*p,T=c*g-d*p,S=h*v-f*m,E=h*g-d*m,L=f*g-d*v,C=y*L-b*E+x*S+_*T-w*A+M*k;return C?(C=1/C,t[0]=(s*L-l*E+u*S)*C,t[1]=(i*E-n*L-a*S)*C,t[2]=(m*M-v*w+g*_)*C,t[3]=(f*w-h*M-d*_)*C,t[4]=(l*T-o*L-u*A)*C,t[5]=(r*L-i*T+a*A)*C,t[6]=(v*x-p*M-g*b)*C,t[7]=(c*M-f*x+d*b)*C,t[8]=(o*E-s*T+u*k)*C,t[9]=(n*T-r*E-a*k)*C,t[10]=(p*w-m*x+g*y)*C,t[11]=(h*x-c*w-d*y)*C,t[12]=(s*A-o*S-l*k)*C,t[13]=(r*S-n*A+i*k)*C,t[14]=(m*b-p*_-v*y)*C,t[15]=(c*_-h*b+f*y)*C,t):null}e.exports=n},{}],182:[function(t,e,r){function n(t,e,r,n){var a,o,s,l,u,c,h,f,d,p,m=e[0],v=e[1],g=e[2],y=n[0],b=n[1],x=n[2],_=r[0],w=r[1],M=r[2];return Math.abs(m-_)<1e-6&&Math.abs(v-w)<1e-6&&Math.abs(g-M)<1e-6?i(t):(h=m-_,f=v-w,d=g-M,p=1/Math.sqrt(h*h+f*f+d*d),h*=p,f*=p,d*=p,a=b*d-x*f,o=x*h-y*d,s=y*f-b*h,p=Math.sqrt(a*a+o*o+s*s),p?(p=1/p,a*=p,o*=p,s*=p):(a=0,o=0,s=0),l=f*s-d*o,u=d*a-h*s,c=h*o-f*a,p=Math.sqrt(l*l+u*u+c*c),p?(p=1/p,l*=p,u*=p,c*=p):(l=0,u=0,c=0),t[0]=a,t[1]=l,t[2]=h,t[3]=0,t[4]=o,t[5]=u,t[6]=f,t[7]=0,t[8]=s,t[9]=c,t[10]=d,t[11]=0,t[12]=-(a*m+o*v+s*g),t[13]=-(l*m+u*v+c*g),t[14]=-(h*m+f*v+d*g),t[15]=1,t)}var i=t(\"./identity\");e.exports=n},{\"./identity\":180}],183:[function(t,e,r){function n(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],u=e[6],c=e[7],h=e[8],f=e[9],d=e[10],p=e[11],m=e[12],v=e[13],g=e[14],y=e[15],b=r[0],x=r[1],_=r[2],w=r[3];return t[0]=b*n+x*s+_*h+w*m,t[1]=b*i+x*l+_*f+w*v,t[2]=b*a+x*u+_*d+w*g,t[3]=b*o+x*c+_*p+w*y,b=r[4],x=r[5],_=r[6],w=r[7],t[4]=b*n+x*s+_*h+w*m,t[5]=b*i+x*l+_*f+w*v,t[6]=b*a+x*u+_*d+w*g,t[7]=b*o+x*c+_*p+w*y,b=r[8],x=r[9],_=r[10],w=r[11],t[8]=b*n+x*s+_*h+w*m,t[9]=b*i+x*l+_*f+w*v,t[10]=b*a+x*u+_*d+w*g,t[11]=b*o+x*c+_*p+w*y,b=r[12],x=r[13],_=r[14],w=r[15],t[12]=b*n+x*s+_*h+w*m,t[13]=b*i+x*l+_*f+w*v,t[14]=b*a+x*u+_*d+w*g,t[15]=b*o+x*c+_*p+w*y,t}e.exports=n},{}],184:[function(t,e,r){function n(t,e,r,n,i){var a=1/Math.tan(e/2),o=1/(n-i);return t[0]=a/r,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=(i+n)*o,t[11]=-1,t[12]=0,t[13]=0,t[14]=2*i*n*o,t[15]=0,t}e.exports=n},{}],185:[function(t,e,r){function n(t,e,r,n){var i,a,o,s,l,u,c,h,f,d,p,m,v,g,y,b,x,_,w,M,k,A,T,S,E=n[0],L=n[1],C=n[2],I=Math.sqrt(E*E+L*L+C*C);return Math.abs(I)<1e-6?null:(I=1/I,E*=I,L*=I,C*=I,i=Math.sin(r),a=Math.cos(r),o=1-a,s=e[0],l=e[1],u=e[2],c=e[3],h=e[4],f=e[5],d=e[6],p=e[7],m=e[8],v=e[9],g=e[10],y=e[11],b=E*E*o+a,x=L*E*o+C*i,_=C*E*o-L*i,w=E*L*o-C*i,M=L*L*o+a,k=C*L*o+E*i,A=E*C*o+L*i,T=L*C*o-E*i,S=C*C*o+a,t[0]=s*b+h*x+m*_,t[1]=l*b+f*x+v*_,t[2]=u*b+d*x+g*_,t[3]=c*b+p*x+y*_,t[4]=s*w+h*M+m*k,t[5]=l*w+f*M+v*k,t[6]=u*w+d*M+g*k,t[7]=c*w+p*M+y*k,t[8]=s*A+h*T+m*S,t[9]=l*A+f*T+v*S,t[10]=u*A+d*T+g*S,t[11]=c*A+p*T+y*S,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t)}e.exports=n},{}],186:[function(t,e,r){function n(t,e,r){var n=Math.sin(r),i=Math.cos(r),a=e[4],o=e[5],s=e[6],l=e[7],u=e[8],c=e[9],h=e[10],f=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=a*i+u*n,t[5]=o*i+c*n,t[6]=s*i+h*n,t[7]=l*i+f*n,t[8]=u*i-a*n,t[9]=c*i-o*n,t[10]=h*i-s*n,t[11]=f*i-l*n,t}e.exports=n},{}],187:[function(t,e,r){function n(t,e,r){var n=Math.sin(r),i=Math.cos(r),a=e[0],o=e[1],s=e[2],l=e[3],u=e[8],c=e[9],h=e[10],f=e[11];return e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=a*i-u*n,t[1]=o*i-c*n,t[2]=s*i-h*n,t[3]=l*i-f*n,t[8]=a*n+u*i,t[9]=o*n+c*i,t[10]=s*n+h*i,t[11]=l*n+f*i,t}e.exports=n},{}],188:[function(t,e,r){function n(t,e,r){var n=Math.sin(r),i=Math.cos(r),a=e[0],o=e[1],s=e[2],l=e[3],u=e[4],c=e[5],h=e[6],f=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=a*i+u*n,t[1]=o*i+c*n,t[2]=s*i+h*n,t[3]=l*i+f*n,t[4]=u*i-a*n,t[5]=c*i-o*n,t[6]=h*i-s*n,t[7]=f*i-l*n,t}e.exports=n},{}],189:[function(t,e,r){function n(t,e,r){var n=r[0],i=r[1],a=r[2];return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*i,t[5]=e[5]*i,t[6]=e[6]*i,t[7]=e[7]*i,t[8]=e[8]*a,t[9]=e[9]*a,t[10]=e[10]*a,t[11]=e[11]*a,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}e.exports=n},{}],190:[function(t,e,r){function n(t,e,r){var n,i,a,o,s,l,u,c,h,f,d,p,m=r[0],v=r[1],g=r[2];return e===t?(t[12]=e[0]*m+e[4]*v+e[8]*g+e[12],t[13]=e[1]*m+e[5]*v+e[9]*g+e[13],t[14]=e[2]*m+e[6]*v+e[10]*g+e[14],t[15]=e[3]*m+e[7]*v+e[11]*g+e[15]):(n=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],u=e[6],c=e[7],h=e[8],f=e[9],d=e[10],p=e[11],t[0]=n,t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t[6]=u,t[7]=c,t[8]=h,t[9]=f,t[10]=d,t[11]=p,t[12]=n*m+s*v+h*g+e[12],t[13]=i*m+l*v+f*g+e[13],t[14]=a*m+u*v+d*g+e[14],t[15]=o*m+c*v+p*g+e[15]),t}e.exports=n},{}],191:[function(t,e,r){function n(t,e){if(t===e){var r=e[1],n=e[2],i=e[3],a=e[6],o=e[7],s=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=r,t[6]=e[9],t[7]=e[13],t[8]=n,t[9]=a,t[11]=e[14],t[12]=i,t[13]=o,t[14]=s}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}e.exports=n},{}],192:[function(t,e,r){\"use strict\";function n(t,e){switch(e.length){case 0:break;case 1:t[0]=1/e[0];break;case 4:i(t,e);break;case 9:a(t,e);break;case 16:o(t,e);break;default:throw new Error(\"currently supports matrices up to 4x4\")}return t}e.exports=n;var i=t(\"gl-mat2/invert\"),a=t(\"gl-mat3/invert\"),o=t(\"gl-mat4/invert\")},{\"gl-mat2/invert\":173,\"gl-mat3/invert\":174,\"gl-mat4/invert\":181}],193:[function(t,e,r){r.glMatrix=t(\"./gl-matrix/common.js\"),r.mat2=t(\"./gl-matrix/mat2.js\"),r.mat2d=t(\"./gl-matrix/mat2d.js\"),r.mat3=t(\"./gl-matrix/mat3.js\"),r.mat4=t(\"./gl-matrix/mat4.js\"),r.quat=t(\"./gl-matrix/quat.js\"),r.vec2=t(\"./gl-matrix/vec2.js\"),r.vec3=t(\"./gl-matrix/vec3.js\"),r.vec4=t(\"./gl-matrix/vec4.js\")},{\"./gl-matrix/common.js\":194,\"./gl-matrix/mat2.js\":195,\"./gl-matrix/mat2d.js\":196,\"./gl-matrix/mat3.js\":197,\"./gl-matrix/mat4.js\":198,\"./gl-matrix/quat.js\":199,\"./gl-matrix/vec2.js\":200,\"./gl-matrix/vec3.js\":201,\"./gl-matrix/vec4.js\":202}],194:[function(t,e,r){var n={};n.EPSILON=1e-6,n.ARRAY_TYPE=\"undefined\"!=typeof Float32Array?Float32Array:Array,n.RANDOM=Math.random,n.ENABLE_SIMD=!1,n.SIMD_AVAILABLE=n.ARRAY_TYPE===Float32Array&&\"SIMD\"in this,n.USE_SIMD=n.ENABLE_SIMD&&n.SIMD_AVAILABLE,n.setMatrixArrayType=function(t){n.ARRAY_TYPE=t};var i=Math.PI/180;n.toRadian=function(t){return t*i},n.equals=function(t,e){return Math.abs(t-e)<=n.EPSILON*Math.max(1,Math.abs(t),Math.abs(e))},e.exports=n},{}],195:[function(t,e,r){var n=t(\"./common.js\"),i={};i.create=function(){var t=new n.ARRAY_TYPE(4);return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t},i.clone=function(t){var e=new n.ARRAY_TYPE(4);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e},i.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t},i.identity=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t},i.fromValues=function(t,e,r,i){var a=new n.ARRAY_TYPE(4);return a[0]=t,a[1]=e,a[2]=r,a[3]=i,a},i.set=function(t,e,r,n,i){return t[0]=e,t[1]=r,t[2]=n,t[3]=i,t},i.transpose=function(t,e){if(t===e){var r=e[1];t[1]=e[2],t[2]=r}else t[0]=e[0],t[1]=e[2],t[2]=e[1],t[3]=e[3];return t},i.invert=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=r*a-i*n;return o?(o=1/o,t[0]=a*o,t[1]=-n*o,t[2]=-i*o,t[3]=r*o,t):null},i.adjoint=function(t,e){var r=e[0];return t[0]=e[3],t[1]=-e[1],t[2]=-e[2],t[3]=r,t},i.determinant=function(t){return t[0]*t[3]-t[2]*t[1]},i.multiply=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=r[0],l=r[1],u=r[2],c=r[3];return t[0]=n*s+a*l,t[1]=i*s+o*l,t[2]=n*u+a*c,t[3]=i*u+o*c,t},i.mul=i.multiply,i.rotate=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=Math.sin(r),l=Math.cos(r);return t[0]=n*l+a*s,t[1]=i*l+o*s,t[2]=n*-s+a*l,t[3]=i*-s+o*l,t},i.scale=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=r[0],l=r[1];return t[0]=n*s,t[1]=i*s,t[2]=a*l,t[3]=o*l,t},i.fromRotation=function(t,e){var r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=r,t[2]=-r,t[3]=n,t},i.fromScaling=function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=e[1],t},i.str=function(t){return\"mat2(\"+t[0]+\", \"+t[1]+\", \"+t[2]+\", \"+t[3]+\")\"},i.frob=function(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2)+Math.pow(t[2],2)+Math.pow(t[3],2))},i.LDU=function(t,e,r,n){return t[2]=n[2]/n[0],r[0]=n[0],r[1]=n[1],r[3]=n[3]-t[2]*r[1],[t,e,r]},i.add=function(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t[3]=e[3]+r[3],t},i.subtract=function(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t[3]=e[3]-r[3],t},i.sub=i.subtract,i.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]},i.equals=function(t,e){var r=t[0],i=t[1],a=t[2],o=t[3],s=e[0],l=e[1],u=e[2],c=e[3];return Math.abs(r-s)<=n.EPSILON*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(i-l)<=n.EPSILON*Math.max(1,Math.abs(i),Math.abs(l))&&Math.abs(a-u)<=n.EPSILON*Math.max(1,Math.abs(a),Math.abs(u))&&Math.abs(o-c)<=n.EPSILON*Math.max(1,Math.abs(o),Math.abs(c))},i.multiplyScalar=function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t},i.multiplyScalarAndAdd=function(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t[3]=e[3]+r[3]*n,t},e.exports=i},{\"./common.js\":194}],196:[function(t,e,r){var n=t(\"./common.js\"),i={};i.create=function(){var t=new n.ARRAY_TYPE(6);return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t},i.clone=function(t){var e=new n.ARRAY_TYPE(6);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e},i.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t},i.identity=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t},i.fromValues=function(t,e,r,i,a,o){var s=new n.ARRAY_TYPE(6);return s[0]=t,s[1]=e,s[2]=r,s[3]=i,s[4]=a,s[5]=o,s},i.set=function(t,e,r,n,i,a,o){return t[0]=e,t[1]=r,t[2]=n,t[3]=i,t[4]=a,t[5]=o,t},i.invert=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=e[4],s=e[5],l=r*a-n*i;return l?(l=1/l,t[0]=a*l,t[1]=-n*l,t[2]=-i*l,t[3]=r*l,t[4]=(i*s-a*o)*l,t[5]=(n*o-r*s)*l,t):null},i.determinant=function(t){return t[0]*t[3]-t[1]*t[2]},i.multiply=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],u=r[0],c=r[1],h=r[2],f=r[3],d=r[4],p=r[5];return t[0]=n*u+a*c,t[1]=i*u+o*c,t[2]=n*h+a*f,t[3]=i*h+o*f,t[4]=n*d+a*p+s,t[5]=i*d+o*p+l,t},i.mul=i.multiply,i.rotate=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],u=Math.sin(r),c=Math.cos(r);return t[0]=n*c+a*u,t[1]=i*c+o*u,t[2]=n*-u+a*c,t[3]=i*-u+o*c,t[4]=s,t[5]=l,t},i.scale=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],u=r[0],c=r[1];return t[0]=n*u,t[1]=i*u,t[2]=a*c,t[3]=o*c,t[4]=s,t[5]=l,t},i.translate=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],u=r[0],c=r[1];return t[0]=n,t[1]=i,t[2]=a,t[3]=o,t[4]=n*u+a*c+s,t[5]=i*u+o*c+l,t},i.fromRotation=function(t,e){var r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=r,t[2]=-r,t[3]=n,t[4]=0,t[5]=0,t},i.fromScaling=function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=e[1],t[4]=0,t[5]=0,t},i.fromTranslation=function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=e[0],t[5]=e[1],t},i.str=function(t){return\"mat2d(\"+t[0]+\", \"+t[1]+\", \"+t[2]+\", \"+t[3]+\", \"+t[4]+\", \"+t[5]+\")\"},i.frob=function(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2)+Math.pow(t[2],2)+Math.pow(t[3],2)+Math.pow(t[4],2)+Math.pow(t[5],2)+1)},i.add=function(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t[3]=e[3]+r[3],t[4]=e[4]+r[4],t[5]=e[5]+r[5],t},i.subtract=function(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t[3]=e[3]-r[3],t[4]=e[4]-r[4],t[5]=e[5]-r[5],t},i.sub=i.subtract,i.multiplyScalar=function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*r,t[5]=e[5]*r,t},i.multiplyScalarAndAdd=function(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t[3]=e[3]+r[3]*n,t[4]=e[4]+r[4]*n,t[5]=e[5]+r[5]*n,t},i.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]},i.equals=function(t,e){var r=t[0],i=t[1],a=t[2],o=t[3],s=t[4],l=t[5],u=e[0],c=e[1],h=e[2],f=e[3],d=e[4],p=e[5];return Math.abs(r-u)<=n.EPSILON*Math.max(1,Math.abs(r),Math.abs(u))&&Math.abs(i-c)<=n.EPSILON*Math.max(1,Math.abs(i),Math.abs(c))&&Math.abs(a-h)<=n.EPSILON*Math.max(1,Math.abs(a),Math.abs(h))&&Math.abs(o-f)<=n.EPSILON*Math.max(1,Math.abs(o),Math.abs(f))&&Math.abs(s-d)<=n.EPSILON*Math.max(1,Math.abs(s),Math.abs(d))&&Math.abs(l-p)<=n.EPSILON*Math.max(1,Math.abs(l),Math.abs(p))},e.exports=i},{\"./common.js\":194}],197:[function(t,e,r){var n=t(\"./common.js\"),i={};i.create=function(){var t=new n.ARRAY_TYPE(9);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},i.fromMat4=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t},i.clone=function(t){var e=new n.ARRAY_TYPE(9);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e},i.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t},i.fromValues=function(t,e,r,i,a,o,s,l,u){var c=new n.ARRAY_TYPE(9);return c[0]=t,c[1]=e,c[2]=r,c[3]=i,c[4]=a,c[5]=o,c[6]=s,c[7]=l,c[8]=u,c},i.set=function(t,e,r,n,i,a,o,s,l,u){return t[0]=e,t[1]=r,t[2]=n,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=l,t[8]=u,t},i.identity=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},i.transpose=function(t,e){if(t===e){var r=e[1],n=e[2],i=e[5];t[1]=e[3],t[2]=e[6],t[3]=r,t[5]=e[7],t[6]=n,t[7]=i}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t},i.invert=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=e[4],s=e[5],l=e[6],u=e[7],c=e[8],h=c*o-s*u,f=-c*a+s*l,d=u*a-o*l,p=r*h+n*f+i*d;return p?(p=1/p,t[0]=h*p,t[1]=(-c*n+i*u)*p,t[2]=(s*n-i*o)*p,t[3]=f*p,t[4]=(c*r-i*l)*p,t[5]=(-s*r+i*a)*p,t[6]=d*p,t[7]=(-u*r+n*l)*p,t[8]=(o*r-n*a)*p,t):null},i.adjoint=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=e[4],s=e[5],l=e[6],u=e[7],c=e[8];return t[0]=o*c-s*u,t[1]=i*u-n*c,t[2]=n*s-i*o,t[3]=s*l-a*c,t[4]=r*c-i*l,t[5]=i*a-r*s,t[6]=a*u-o*l,t[7]=n*l-r*u,t[8]=r*o-n*a,t},i.determinant=function(t){var e=t[0],r=t[1],n=t[2],i=t[3],a=t[4],o=t[5],s=t[6],l=t[7],u=t[8];return e*(u*a-o*l)+r*(-u*i+o*s)+n*(l*i-a*s)},i.multiply=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],u=e[6],c=e[7],h=e[8],f=r[0],d=r[1],p=r[2],m=r[3],v=r[4],g=r[5],y=r[6],b=r[7],x=r[8];return t[0]=f*n+d*o+p*u,t[1]=f*i+d*s+p*c,t[2]=f*a+d*l+p*h,t[3]=m*n+v*o+g*u,t[4]=m*i+v*s+g*c,t[5]=m*a+v*l+g*h,t[6]=y*n+b*o+x*u,t[7]=y*i+b*s+x*c,t[8]=y*a+b*l+x*h,t},i.mul=i.multiply,i.translate=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],u=e[6],c=e[7],h=e[8],f=r[0],d=r[1];return t[0]=n,t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t[6]=f*n+d*o+u,t[7]=f*i+d*s+c,t[8]=f*a+d*l+h,t},i.rotate=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],u=e[6],c=e[7],h=e[8],f=Math.sin(r),d=Math.cos(r);return t[0]=d*n+f*o,t[1]=d*i+f*s,t[2]=d*a+f*l,t[3]=d*o-f*n,t[4]=d*s-f*i,t[5]=d*l-f*a,t[6]=u,t[7]=c,t[8]=h,t},i.scale=function(t,e,r){var n=r[0],i=r[1];return t[0]=n*e[0],t[1]=n*e[1],t[2]=n*e[2],t[3]=i*e[3],t[4]=i*e[4],t[5]=i*e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t},i.fromTranslation=function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[1],t[8]=1,t},i.fromRotation=function(t,e){var r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=r,t[2]=0,t[3]=-r,t[4]=n,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},i.fromScaling=function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},i.fromMat2d=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=0,t[3]=e[2],t[4]=e[3],t[5]=0,t[6]=e[4],t[7]=e[5],t[8]=1,t},i.fromQuat=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=r+r,s=n+n,l=i+i,u=r*o,c=n*o,h=n*s,f=i*o,d=i*s,p=i*l,m=a*o,v=a*s,g=a*l;return t[0]=1-h-p,t[3]=c-g,t[6]=f+v,t[1]=c+g,t[4]=1-u-p,t[7]=d-m,t[2]=f-v,t[5]=d+m,t[8]=1-u-h,t},i.normalFromMat4=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=e[4],s=e[5],l=e[6],u=e[7],c=e[8],h=e[9],f=e[10],d=e[11],p=e[12],m=e[13],v=e[14],g=e[15],y=r*s-n*o,b=r*l-i*o,x=r*u-a*o,_=n*l-i*s,w=n*u-a*s,M=i*u-a*l,k=c*m-h*p,A=c*v-f*p,T=c*g-d*p,S=h*v-f*m,E=h*g-d*m,L=f*g-d*v,C=y*L-b*E+x*S+_*T-w*A+M*k;return C?(C=1/C,t[0]=(s*L-l*E+u*S)*C,t[1]=(l*T-o*L-u*A)*C,t[2]=(o*E-s*T+u*k)*C,t[3]=(i*E-n*L-a*S)*C,t[4]=(r*L-i*T+a*A)*C,t[5]=(n*T-r*E-a*k)*C,t[6]=(m*M-v*w+g*_)*C,t[7]=(v*x-p*M-g*b)*C,t[8]=(p*w-m*x+g*y)*C,t):null},i.str=function(t){return\"mat3(\"+t[0]+\", \"+t[1]+\", \"+t[2]+\", \"+t[3]+\", \"+t[4]+\", \"+t[5]+\", \"+t[6]+\", \"+t[7]+\", \"+t[8]+\")\"},i.frob=function(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2)+Math.pow(t[2],2)+Math.pow(t[3],2)+Math.pow(t[4],2)+Math.pow(t[5],2)+Math.pow(t[6],2)+Math.pow(t[7],2)+Math.pow(t[8],2))},i.add=function(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t[3]=e[3]+r[3],t[4]=e[4]+r[4],t[5]=e[5]+r[5],t[6]=e[6]+r[6],t[7]=e[7]+r[7],t[8]=e[8]+r[8],t},i.subtract=function(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t[3]=e[3]-r[3],t[4]=e[4]-r[4],t[5]=e[5]-r[5],t[6]=e[6]-r[6],t[7]=e[7]-r[7],t[8]=e[8]-r[8],t},i.sub=i.subtract,i.multiplyScalar=function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*r,t[5]=e[5]*r,t[6]=e[6]*r,t[7]=e[7]*r,t[8]=e[8]*r,t},i.multiplyScalarAndAdd=function(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t[3]=e[3]+r[3]*n,t[4]=e[4]+r[4]*n,t[5]=e[5]+r[5]*n,t[6]=e[6]+r[6]*n,t[7]=e[7]+r[7]*n,t[8]=e[8]+r[8]*n,t},i.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]},i.equals=function(t,e){var r=t[0],i=t[1],a=t[2],o=t[3],s=t[4],l=t[5],u=t[6],c=t[7],h=t[8],f=e[0],d=e[1],p=e[2],m=e[3],v=e[4],g=e[5],y=t[6],b=e[7],x=e[8];return Math.abs(r-f)<=n.EPSILON*Math.max(1,Math.abs(r),Math.abs(f))&&Math.abs(i-d)<=n.EPSILON*Math.max(1,Math.abs(i),Math.abs(d))&&Math.abs(a-p)<=n.EPSILON*Math.max(1,Math.abs(a),Math.abs(p))&&Math.abs(o-m)<=n.EPSILON*Math.max(1,Math.abs(o),Math.abs(m))&&Math.abs(s-v)<=n.EPSILON*Math.max(1,Math.abs(s),Math.abs(v))&&Math.abs(l-g)<=n.EPSILON*Math.max(1,Math.abs(l),Math.abs(g))&&Math.abs(u-y)<=n.EPSILON*Math.max(1,Math.abs(u),Math.abs(y))&&Math.abs(c-b)<=n.EPSILON*Math.max(1,Math.abs(c),Math.abs(b))&&Math.abs(h-x)<=n.EPSILON*Math.max(1,Math.abs(h),Math.abs(x))},e.exports=i},{\"./common.js\":194}],198:[function(t,e,r){var n=t(\"./common.js\"),i={scalar:{},SIMD:{}};i.create=function(){var t=new n.ARRAY_TYPE(16);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},i.clone=function(t){var e=new n.ARRAY_TYPE(16);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e},i.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},i.fromValues=function(t,e,r,i,a,o,s,l,u,c,h,f,d,p,m,v){var g=new n.ARRAY_TYPE(16);return g[0]=t,g[1]=e,g[2]=r,g[3]=i,g[4]=a,g[5]=o,g[6]=s,g[7]=l,g[8]=u,g[9]=c,g[10]=h,g[11]=f,g[12]=d,g[13]=p,g[14]=m,g[15]=v,g},i.set=function(t,e,r,n,i,a,o,s,l,u,c,h,f,d,p,m,v){return t[0]=e,t[1]=r,t[2]=n,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=l,t[8]=u,t[9]=c,t[10]=h,t[11]=f,t[12]=d,t[13]=p,t[14]=m,t[15]=v,t},i.identity=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},i.scalar.transpose=function(t,e){if(t===e){var r=e[1],n=e[2],i=e[3],a=e[6],o=e[7],s=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=r,t[6]=e[9],t[7]=e[13],t[8]=n,t[9]=a,t[11]=e[14],t[12]=i,t[13]=o,t[14]=s}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t},i.SIMD.transpose=function(t,e){var r,n,i,a,o,s,l,u,c,h;return r=SIMD.Float32x4.load(e,0),n=SIMD.Float32x4.load(e,4),i=SIMD.Float32x4.load(e,8),a=SIMD.Float32x4.load(e,12),o=SIMD.Float32x4.shuffle(r,n,0,1,4,5),s=SIMD.Float32x4.shuffle(i,a,0,1,4,5),l=SIMD.Float32x4.shuffle(o,s,0,2,4,6),u=SIMD.Float32x4.shuffle(o,s,1,3,5,7),SIMD.Float32x4.store(t,0,l),SIMD.Float32x4.store(t,4,u),o=SIMD.Float32x4.shuffle(r,n,2,3,6,7),s=SIMD.Float32x4.shuffle(i,a,2,3,6,7),c=SIMD.Float32x4.shuffle(o,s,0,2,4,6),h=SIMD.Float32x4.shuffle(o,s,1,3,5,7),SIMD.Float32x4.store(t,8,c),SIMD.Float32x4.store(t,12,h),t},i.transpose=n.USE_SIMD?i.SIMD.transpose:i.scalar.transpose,i.scalar.invert=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=e[4],s=e[5],l=e[6],u=e[7],c=e[8],h=e[9],f=e[10],d=e[11],p=e[12],m=e[13],v=e[14],g=e[15],y=r*s-n*o,b=r*l-i*o,x=r*u-a*o,_=n*l-i*s,w=n*u-a*s,M=i*u-a*l,k=c*m-h*p,A=c*v-f*p,T=c*g-d*p,S=h*v-f*m,E=h*g-d*m,L=f*g-d*v,C=y*L-b*E+x*S+_*T-w*A+M*k;return C?(C=1/C,t[0]=(s*L-l*E+u*S)*C,t[1]=(i*E-n*L-a*S)*C,t[2]=(m*M-v*w+g*_)*C,t[3]=(f*w-h*M-d*_)*C,t[4]=(l*T-o*L-u*A)*C,t[5]=(r*L-i*T+a*A)*C,t[6]=(v*x-p*M-g*b)*C,t[7]=(c*M-f*x+d*b)*C,t[8]=(o*E-s*T+u*k)*C,t[9]=(n*T-r*E-a*k)*C,t[10]=(p*w-m*x+g*y)*C,t[11]=(h*x-c*w-d*y)*C,t[12]=(s*A-o*S-l*k)*C,t[13]=(r*S-n*A+i*k)*C,t[14]=(m*b-p*_-v*y)*C,t[15]=(c*_-h*b+f*y)*C,t):null},i.SIMD.invert=function(t,e){var r,n,i,a,o,s,l,u,c,h,f=SIMD.Float32x4.load(e,0),d=SIMD.Float32x4.load(e,4),p=SIMD.Float32x4.load(e,8),m=SIMD.Float32x4.load(e,12);return o=SIMD.Float32x4.shuffle(f,d,0,1,4,5),n=SIMD.Float32x4.shuffle(p,m,0,1,4,5),r=SIMD.Float32x4.shuffle(o,n,0,2,4,6),n=SIMD.Float32x4.shuffle(n,o,1,3,5,7),o=SIMD.Float32x4.shuffle(f,d,2,3,6,7),a=SIMD.Float32x4.shuffle(p,m,2,3,6,7),i=SIMD.Float32x4.shuffle(o,a,0,2,4,6),a=SIMD.Float32x4.shuffle(a,o,1,3,5,7),o=SIMD.Float32x4.mul(i,a),o=SIMD.Float32x4.swizzle(o,1,0,3,2),s=SIMD.Float32x4.mul(n,o),l=SIMD.Float32x4.mul(r,o),o=SIMD.Float32x4.swizzle(o,2,3,0,1),s=SIMD.Float32x4.sub(SIMD.Float32x4.mul(n,o),s),l=SIMD.Float32x4.sub(SIMD.Float32x4.mul(r,o),l),l=SIMD.Float32x4.swizzle(l,2,3,0,1),o=SIMD.Float32x4.mul(n,i),o=SIMD.Float32x4.swizzle(o,1,0,3,2),s=SIMD.Float32x4.add(SIMD.Float32x4.mul(a,o),s),c=SIMD.Float32x4.mul(r,o),o=SIMD.Float32x4.swizzle(o,2,3,0,1),s=SIMD.Float32x4.sub(s,SIMD.Float32x4.mul(a,o)),c=SIMD.Float32x4.sub(SIMD.Float32x4.mul(r,o),c),c=SIMD.Float32x4.swizzle(c,2,3,0,1),o=SIMD.Float32x4.mul(SIMD.Float32x4.swizzle(n,2,3,0,1),a),o=SIMD.Float32x4.swizzle(o,1,0,3,2),i=SIMD.Float32x4.swizzle(i,2,3,0,1),s=SIMD.Float32x4.add(SIMD.Float32x4.mul(i,o),s),u=SIMD.Float32x4.mul(r,o),o=SIMD.Float32x4.swizzle(o,2,3,0,1),s=SIMD.Float32x4.sub(s,SIMD.Float32x4.mul(i,o)),u=SIMD.Float32x4.sub(SIMD.Float32x4.mul(r,o),u),u=SIMD.Float32x4.swizzle(u,2,3,0,1),o=SIMD.Float32x4.mul(r,n),o=SIMD.Float32x4.swizzle(o,1,0,3,2),u=SIMD.Float32x4.add(SIMD.Float32x4.mul(a,o),u),c=SIMD.Float32x4.sub(SIMD.Float32x4.mul(i,o),c),o=SIMD.Float32x4.swizzle(o,2,3,0,1),u=SIMD.Float32x4.sub(SIMD.Float32x4.mul(a,o),u),c=SIMD.Float32x4.sub(c,SIMD.Float32x4.mul(i,o)),o=SIMD.Float32x4.mul(r,a),o=SIMD.Float32x4.swizzle(o,1,0,3,2),l=SIMD.Float32x4.sub(l,SIMD.Float32x4.mul(i,o)),u=SIMD.Float32x4.add(SIMD.Float32x4.mul(n,o),u),o=SIMD.Float32x4.swizzle(o,2,3,0,1),l=SIMD.Float32x4.add(SIMD.Float32x4.mul(i,o),l),u=SIMD.Float32x4.sub(u,SIMD.Float32x4.mul(n,o)),o=SIMD.Float32x4.mul(r,i),o=SIMD.Float32x4.swizzle(o,1,0,3,2),l=SIMD.Float32x4.add(SIMD.Float32x4.mul(a,o),l),c=SIMD.Float32x4.sub(c,SIMD.Float32x4.mul(n,o)),o=SIMD.Float32x4.swizzle(o,2,3,0,1),l=SIMD.Float32x4.sub(l,SIMD.Float32x4.mul(a,o)),c=SIMD.Float32x4.add(SIMD.Float32x4.mul(n,o),c),h=SIMD.Float32x4.mul(r,s),h=SIMD.Float32x4.add(SIMD.Float32x4.swizzle(h,2,3,0,1),h),h=SIMD.Float32x4.add(SIMD.Float32x4.swizzle(h,1,0,3,2),h),o=SIMD.Float32x4.reciprocalApproximation(h),h=SIMD.Float32x4.sub(SIMD.Float32x4.add(o,o),SIMD.Float32x4.mul(h,SIMD.Float32x4.mul(o,o))),(h=SIMD.Float32x4.swizzle(h,0,0,0,0))?(SIMD.Float32x4.store(t,0,SIMD.Float32x4.mul(h,s)),SIMD.Float32x4.store(t,4,SIMD.Float32x4.mul(h,l)),SIMD.Float32x4.store(t,8,SIMD.Float32x4.mul(h,u)),SIMD.Float32x4.store(t,12,SIMD.Float32x4.mul(h,c)),t):null},i.invert=n.USE_SIMD?i.SIMD.invert:i.scalar.invert,i.scalar.adjoint=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=e[4],s=e[5],l=e[6],u=e[7],c=e[8],h=e[9],f=e[10],d=e[11],p=e[12],m=e[13],v=e[14],g=e[15];return t[0]=s*(f*g-d*v)-h*(l*g-u*v)+m*(l*d-u*f),t[1]=-(n*(f*g-d*v)-h*(i*g-a*v)+m*(i*d-a*f)),t[2]=n*(l*g-u*v)-s*(i*g-a*v)+m*(i*u-a*l),t[3]=-(n*(l*d-u*f)-s*(i*d-a*f)+h*(i*u-a*l)),t[4]=-(o*(f*g-d*v)-c*(l*g-u*v)+p*(l*d-u*f)),t[5]=r*(f*g-d*v)-c*(i*g-a*v)+p*(i*d-a*f),t[6]=-(r*(l*g-u*v)-o*(i*g-a*v)+p*(i*u-a*l)),t[7]=r*(l*d-u*f)-o*(i*d-a*f)+c*(i*u-a*l),t[8]=o*(h*g-d*m)-c*(s*g-u*m)+p*(s*d-u*h),t[9]=-(r*(h*g-d*m)-c*(n*g-a*m)+p*(n*d-a*h)),t[10]=r*(s*g-u*m)-o*(n*g-a*m)+p*(n*u-a*s),t[11]=-(r*(s*d-u*h)-o*(n*d-a*h)+c*(n*u-a*s)),t[12]=-(o*(h*v-f*m)-c*(s*v-l*m)+p*(s*f-l*h)),t[13]=r*(h*v-f*m)-c*(n*v-i*m)+p*(n*f-i*h),t[14]=-(r*(s*v-l*m)-o*(n*v-i*m)+p*(n*l-i*s)),t[15]=r*(s*f-l*h)-o*(n*f-i*h)+c*(n*l-i*s),t},i.SIMD.adjoint=function(t,e){var r,n,i,a,o,s,l,u,c,h,f,d,p,r=SIMD.Float32x4.load(e,0),n=SIMD.Float32x4.load(e,4),i=SIMD.Float32x4.load(e,8),a=SIMD.Float32x4.load(e,12)\n", ";return c=SIMD.Float32x4.shuffle(r,n,0,1,4,5),s=SIMD.Float32x4.shuffle(i,a,0,1,4,5),o=SIMD.Float32x4.shuffle(c,s,0,2,4,6),s=SIMD.Float32x4.shuffle(s,c,1,3,5,7),c=SIMD.Float32x4.shuffle(r,n,2,3,6,7),u=SIMD.Float32x4.shuffle(i,a,2,3,6,7),l=SIMD.Float32x4.shuffle(c,u,0,2,4,6),u=SIMD.Float32x4.shuffle(u,c,1,3,5,7),c=SIMD.Float32x4.mul(l,u),c=SIMD.Float32x4.swizzle(c,1,0,3,2),h=SIMD.Float32x4.mul(s,c),f=SIMD.Float32x4.mul(o,c),c=SIMD.Float32x4.swizzle(c,2,3,0,1),h=SIMD.Float32x4.sub(SIMD.Float32x4.mul(s,c),h),f=SIMD.Float32x4.sub(SIMD.Float32x4.mul(o,c),f),f=SIMD.Float32x4.swizzle(f,2,3,0,1),c=SIMD.Float32x4.mul(s,l),c=SIMD.Float32x4.swizzle(c,1,0,3,2),h=SIMD.Float32x4.add(SIMD.Float32x4.mul(u,c),h),p=SIMD.Float32x4.mul(o,c),c=SIMD.Float32x4.swizzle(c,2,3,0,1),h=SIMD.Float32x4.sub(h,SIMD.Float32x4.mul(u,c)),p=SIMD.Float32x4.sub(SIMD.Float32x4.mul(o,c),p),p=SIMD.Float32x4.swizzle(p,2,3,0,1),c=SIMD.Float32x4.mul(SIMD.Float32x4.swizzle(s,2,3,0,1),u),c=SIMD.Float32x4.swizzle(c,1,0,3,2),l=SIMD.Float32x4.swizzle(l,2,3,0,1),h=SIMD.Float32x4.add(SIMD.Float32x4.mul(l,c),h),d=SIMD.Float32x4.mul(o,c),c=SIMD.Float32x4.swizzle(c,2,3,0,1),h=SIMD.Float32x4.sub(h,SIMD.Float32x4.mul(l,c)),d=SIMD.Float32x4.sub(SIMD.Float32x4.mul(o,c),d),d=SIMD.Float32x4.swizzle(d,2,3,0,1),c=SIMD.Float32x4.mul(o,s),c=SIMD.Float32x4.swizzle(c,1,0,3,2),d=SIMD.Float32x4.add(SIMD.Float32x4.mul(u,c),d),p=SIMD.Float32x4.sub(SIMD.Float32x4.mul(l,c),p),c=SIMD.Float32x4.swizzle(c,2,3,0,1),d=SIMD.Float32x4.sub(SIMD.Float32x4.mul(u,c),d),p=SIMD.Float32x4.sub(p,SIMD.Float32x4.mul(l,c)),c=SIMD.Float32x4.mul(o,u),c=SIMD.Float32x4.swizzle(c,1,0,3,2),f=SIMD.Float32x4.sub(f,SIMD.Float32x4.mul(l,c)),d=SIMD.Float32x4.add(SIMD.Float32x4.mul(s,c),d),c=SIMD.Float32x4.swizzle(c,2,3,0,1),f=SIMD.Float32x4.add(SIMD.Float32x4.mul(l,c),f),d=SIMD.Float32x4.sub(d,SIMD.Float32x4.mul(s,c)),c=SIMD.Float32x4.mul(o,l),c=SIMD.Float32x4.swizzle(c,1,0,3,2),f=SIMD.Float32x4.add(SIMD.Float32x4.mul(u,c),f),p=SIMD.Float32x4.sub(p,SIMD.Float32x4.mul(s,c)),c=SIMD.Float32x4.swizzle(c,2,3,0,1),f=SIMD.Float32x4.sub(f,SIMD.Float32x4.mul(u,c)),p=SIMD.Float32x4.add(SIMD.Float32x4.mul(s,c),p),SIMD.Float32x4.store(t,0,h),SIMD.Float32x4.store(t,4,f),SIMD.Float32x4.store(t,8,d),SIMD.Float32x4.store(t,12,p),t},i.adjoint=n.USE_SIMD?i.SIMD.adjoint:i.scalar.adjoint,i.determinant=function(t){var e=t[0],r=t[1],n=t[2],i=t[3],a=t[4],o=t[5],s=t[6],l=t[7],u=t[8],c=t[9],h=t[10],f=t[11],d=t[12],p=t[13],m=t[14],v=t[15];return(e*o-r*a)*(h*v-f*m)-(e*s-n*a)*(c*v-f*p)+(e*l-i*a)*(c*m-h*p)+(r*s-n*o)*(u*v-f*d)-(r*l-i*o)*(u*m-h*d)+(n*l-i*s)*(u*p-c*d)},i.SIMD.multiply=function(t,e,r){var n=SIMD.Float32x4.load(e,0),i=SIMD.Float32x4.load(e,4),a=SIMD.Float32x4.load(e,8),o=SIMD.Float32x4.load(e,12),s=SIMD.Float32x4.load(r,0),l=SIMD.Float32x4.add(SIMD.Float32x4.mul(SIMD.Float32x4.swizzle(s,0,0,0,0),n),SIMD.Float32x4.add(SIMD.Float32x4.mul(SIMD.Float32x4.swizzle(s,1,1,1,1),i),SIMD.Float32x4.add(SIMD.Float32x4.mul(SIMD.Float32x4.swizzle(s,2,2,2,2),a),SIMD.Float32x4.mul(SIMD.Float32x4.swizzle(s,3,3,3,3),o))));SIMD.Float32x4.store(t,0,l);var u=SIMD.Float32x4.load(r,4),c=SIMD.Float32x4.add(SIMD.Float32x4.mul(SIMD.Float32x4.swizzle(u,0,0,0,0),n),SIMD.Float32x4.add(SIMD.Float32x4.mul(SIMD.Float32x4.swizzle(u,1,1,1,1),i),SIMD.Float32x4.add(SIMD.Float32x4.mul(SIMD.Float32x4.swizzle(u,2,2,2,2),a),SIMD.Float32x4.mul(SIMD.Float32x4.swizzle(u,3,3,3,3),o))));SIMD.Float32x4.store(t,4,c);var h=SIMD.Float32x4.load(r,8),f=SIMD.Float32x4.add(SIMD.Float32x4.mul(SIMD.Float32x4.swizzle(h,0,0,0,0),n),SIMD.Float32x4.add(SIMD.Float32x4.mul(SIMD.Float32x4.swizzle(h,1,1,1,1),i),SIMD.Float32x4.add(SIMD.Float32x4.mul(SIMD.Float32x4.swizzle(h,2,2,2,2),a),SIMD.Float32x4.mul(SIMD.Float32x4.swizzle(h,3,3,3,3),o))));SIMD.Float32x4.store(t,8,f);var d=SIMD.Float32x4.load(r,12),p=SIMD.Float32x4.add(SIMD.Float32x4.mul(SIMD.Float32x4.swizzle(d,0,0,0,0),n),SIMD.Float32x4.add(SIMD.Float32x4.mul(SIMD.Float32x4.swizzle(d,1,1,1,1),i),SIMD.Float32x4.add(SIMD.Float32x4.mul(SIMD.Float32x4.swizzle(d,2,2,2,2),a),SIMD.Float32x4.mul(SIMD.Float32x4.swizzle(d,3,3,3,3),o))));return SIMD.Float32x4.store(t,12,p),t},i.scalar.multiply=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],u=e[6],c=e[7],h=e[8],f=e[9],d=e[10],p=e[11],m=e[12],v=e[13],g=e[14],y=e[15],b=r[0],x=r[1],_=r[2],w=r[3];return t[0]=b*n+x*s+_*h+w*m,t[1]=b*i+x*l+_*f+w*v,t[2]=b*a+x*u+_*d+w*g,t[3]=b*o+x*c+_*p+w*y,b=r[4],x=r[5],_=r[6],w=r[7],t[4]=b*n+x*s+_*h+w*m,t[5]=b*i+x*l+_*f+w*v,t[6]=b*a+x*u+_*d+w*g,t[7]=b*o+x*c+_*p+w*y,b=r[8],x=r[9],_=r[10],w=r[11],t[8]=b*n+x*s+_*h+w*m,t[9]=b*i+x*l+_*f+w*v,t[10]=b*a+x*u+_*d+w*g,t[11]=b*o+x*c+_*p+w*y,b=r[12],x=r[13],_=r[14],w=r[15],t[12]=b*n+x*s+_*h+w*m,t[13]=b*i+x*l+_*f+w*v,t[14]=b*a+x*u+_*d+w*g,t[15]=b*o+x*c+_*p+w*y,t},i.multiply=n.USE_SIMD?i.SIMD.multiply:i.scalar.multiply,i.mul=i.multiply,i.scalar.translate=function(t,e,r){var n,i,a,o,s,l,u,c,h,f,d,p,m=r[0],v=r[1],g=r[2];return e===t?(t[12]=e[0]*m+e[4]*v+e[8]*g+e[12],t[13]=e[1]*m+e[5]*v+e[9]*g+e[13],t[14]=e[2]*m+e[6]*v+e[10]*g+e[14],t[15]=e[3]*m+e[7]*v+e[11]*g+e[15]):(n=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],u=e[6],c=e[7],h=e[8],f=e[9],d=e[10],p=e[11],t[0]=n,t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t[6]=u,t[7]=c,t[8]=h,t[9]=f,t[10]=d,t[11]=p,t[12]=n*m+s*v+h*g+e[12],t[13]=i*m+l*v+f*g+e[13],t[14]=a*m+u*v+d*g+e[14],t[15]=o*m+c*v+p*g+e[15]),t},i.SIMD.translate=function(t,e,r){var n=SIMD.Float32x4.load(e,0),i=SIMD.Float32x4.load(e,4),a=SIMD.Float32x4.load(e,8),o=SIMD.Float32x4.load(e,12),s=SIMD.Float32x4(r[0],r[1],r[2],0);e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11]),n=SIMD.Float32x4.mul(n,SIMD.Float32x4.swizzle(s,0,0,0,0)),i=SIMD.Float32x4.mul(i,SIMD.Float32x4.swizzle(s,1,1,1,1)),a=SIMD.Float32x4.mul(a,SIMD.Float32x4.swizzle(s,2,2,2,2));var l=SIMD.Float32x4.add(n,SIMD.Float32x4.add(i,SIMD.Float32x4.add(a,o)));return SIMD.Float32x4.store(t,12,l),t},i.translate=n.USE_SIMD?i.SIMD.translate:i.scalar.translate,i.scalar.scale=function(t,e,r){var n=r[0],i=r[1],a=r[2];return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*i,t[5]=e[5]*i,t[6]=e[6]*i,t[7]=e[7]*i,t[8]=e[8]*a,t[9]=e[9]*a,t[10]=e[10]*a,t[11]=e[11]*a,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},i.SIMD.scale=function(t,e,r){var n,i,a,o=SIMD.Float32x4(r[0],r[1],r[2],0);return n=SIMD.Float32x4.load(e,0),SIMD.Float32x4.store(t,0,SIMD.Float32x4.mul(n,SIMD.Float32x4.swizzle(o,0,0,0,0))),i=SIMD.Float32x4.load(e,4),SIMD.Float32x4.store(t,4,SIMD.Float32x4.mul(i,SIMD.Float32x4.swizzle(o,1,1,1,1))),a=SIMD.Float32x4.load(e,8),SIMD.Float32x4.store(t,8,SIMD.Float32x4.mul(a,SIMD.Float32x4.swizzle(o,2,2,2,2))),t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},i.scale=n.USE_SIMD?i.SIMD.scale:i.scalar.scale,i.rotate=function(t,e,r,i){var a,o,s,l,u,c,h,f,d,p,m,v,g,y,b,x,_,w,M,k,A,T,S,E,L=i[0],C=i[1],I=i[2],z=Math.sqrt(L*L+C*C+I*I);return Math.abs(z)<n.EPSILON?null:(z=1/z,L*=z,C*=z,I*=z,a=Math.sin(r),o=Math.cos(r),s=1-o,l=e[0],u=e[1],c=e[2],h=e[3],f=e[4],d=e[5],p=e[6],m=e[7],v=e[8],g=e[9],y=e[10],b=e[11],x=L*L*s+o,_=C*L*s+I*a,w=I*L*s-C*a,M=L*C*s-I*a,k=C*C*s+o,A=I*C*s+L*a,T=L*I*s+C*a,S=C*I*s-L*a,E=I*I*s+o,t[0]=l*x+f*_+v*w,t[1]=u*x+d*_+g*w,t[2]=c*x+p*_+y*w,t[3]=h*x+m*_+b*w,t[4]=l*M+f*k+v*A,t[5]=u*M+d*k+g*A,t[6]=c*M+p*k+y*A,t[7]=h*M+m*k+b*A,t[8]=l*T+f*S+v*E,t[9]=u*T+d*S+g*E,t[10]=c*T+p*S+y*E,t[11]=h*T+m*S+b*E,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t)},i.scalar.rotateX=function(t,e,r){var n=Math.sin(r),i=Math.cos(r),a=e[4],o=e[5],s=e[6],l=e[7],u=e[8],c=e[9],h=e[10],f=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=a*i+u*n,t[5]=o*i+c*n,t[6]=s*i+h*n,t[7]=l*i+f*n,t[8]=u*i-a*n,t[9]=c*i-o*n,t[10]=h*i-s*n,t[11]=f*i-l*n,t},i.SIMD.rotateX=function(t,e,r){var n=SIMD.Float32x4.splat(Math.sin(r)),i=SIMD.Float32x4.splat(Math.cos(r));e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]);var a=SIMD.Float32x4.load(e,4),o=SIMD.Float32x4.load(e,8);return SIMD.Float32x4.store(t,4,SIMD.Float32x4.add(SIMD.Float32x4.mul(a,i),SIMD.Float32x4.mul(o,n))),SIMD.Float32x4.store(t,8,SIMD.Float32x4.sub(SIMD.Float32x4.mul(o,i),SIMD.Float32x4.mul(a,n))),t},i.rotateX=n.USE_SIMD?i.SIMD.rotateX:i.scalar.rotateX,i.scalar.rotateY=function(t,e,r){var n=Math.sin(r),i=Math.cos(r),a=e[0],o=e[1],s=e[2],l=e[3],u=e[8],c=e[9],h=e[10],f=e[11];return e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=a*i-u*n,t[1]=o*i-c*n,t[2]=s*i-h*n,t[3]=l*i-f*n,t[8]=a*n+u*i,t[9]=o*n+c*i,t[10]=s*n+h*i,t[11]=l*n+f*i,t},i.SIMD.rotateY=function(t,e,r){var n=SIMD.Float32x4.splat(Math.sin(r)),i=SIMD.Float32x4.splat(Math.cos(r));e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]);var a=SIMD.Float32x4.load(e,0),o=SIMD.Float32x4.load(e,8);return SIMD.Float32x4.store(t,0,SIMD.Float32x4.sub(SIMD.Float32x4.mul(a,i),SIMD.Float32x4.mul(o,n))),SIMD.Float32x4.store(t,8,SIMD.Float32x4.add(SIMD.Float32x4.mul(a,n),SIMD.Float32x4.mul(o,i))),t},i.rotateY=n.USE_SIMD?i.SIMD.rotateY:i.scalar.rotateY,i.scalar.rotateZ=function(t,e,r){var n=Math.sin(r),i=Math.cos(r),a=e[0],o=e[1],s=e[2],l=e[3],u=e[4],c=e[5],h=e[6],f=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=a*i+u*n,t[1]=o*i+c*n,t[2]=s*i+h*n,t[3]=l*i+f*n,t[4]=u*i-a*n,t[5]=c*i-o*n,t[6]=h*i-s*n,t[7]=f*i-l*n,t},i.SIMD.rotateZ=function(t,e,r){var n=SIMD.Float32x4.splat(Math.sin(r)),i=SIMD.Float32x4.splat(Math.cos(r));e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]);var a=SIMD.Float32x4.load(e,0),o=SIMD.Float32x4.load(e,4);return SIMD.Float32x4.store(t,0,SIMD.Float32x4.add(SIMD.Float32x4.mul(a,i),SIMD.Float32x4.mul(o,n))),SIMD.Float32x4.store(t,4,SIMD.Float32x4.sub(SIMD.Float32x4.mul(o,i),SIMD.Float32x4.mul(a,n))),t},i.rotateZ=n.USE_SIMD?i.SIMD.rotateZ:i.scalar.rotateZ,i.fromTranslation=function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t},i.fromScaling=function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},i.fromRotation=function(t,e,r){var i,a,o,s=r[0],l=r[1],u=r[2],c=Math.sqrt(s*s+l*l+u*u);return Math.abs(c)<n.EPSILON?null:(c=1/c,s*=c,l*=c,u*=c,i=Math.sin(e),a=Math.cos(e),o=1-a,t[0]=s*s*o+a,t[1]=l*s*o+u*i,t[2]=u*s*o-l*i,t[3]=0,t[4]=s*l*o-u*i,t[5]=l*l*o+a,t[6]=u*l*o+s*i,t[7]=0,t[8]=s*u*o+l*i,t[9]=l*u*o-s*i,t[10]=u*u*o+a,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t)},i.fromXRotation=function(t,e){var r=Math.sin(e),n=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=n,t[6]=r,t[7]=0,t[8]=0,t[9]=-r,t[10]=n,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},i.fromYRotation=function(t,e){var r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=0,t[2]=-r,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=r,t[9]=0,t[10]=n,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},i.fromZRotation=function(t,e){var r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=r,t[2]=0,t[3]=0,t[4]=-r,t[5]=n,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},i.fromRotationTranslation=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=n+n,l=i+i,u=a+a,c=n*s,h=n*l,f=n*u,d=i*l,p=i*u,m=a*u,v=o*s,g=o*l,y=o*u;return t[0]=1-(d+m),t[1]=h+y,t[2]=f-g,t[3]=0,t[4]=h-y,t[5]=1-(c+m),t[6]=p+v,t[7]=0,t[8]=f+g,t[9]=p-v,t[10]=1-(c+d),t[11]=0,t[12]=r[0],t[13]=r[1],t[14]=r[2],t[15]=1,t},i.getTranslation=function(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t},i.getRotation=function(t,e){var r=e[0]+e[5]+e[10],n=0;return r>0?(n=2*Math.sqrt(r+1),t[3]=.25*n,t[0]=(e[6]-e[9])/n,t[1]=(e[8]-e[2])/n,t[2]=(e[1]-e[4])/n):e[0]>e[5]&e[0]>e[10]?(n=2*Math.sqrt(1+e[0]-e[5]-e[10]),t[3]=(e[6]-e[9])/n,t[0]=.25*n,t[1]=(e[1]+e[4])/n,t[2]=(e[8]+e[2])/n):e[5]>e[10]?(n=2*Math.sqrt(1+e[5]-e[0]-e[10]),t[3]=(e[8]-e[2])/n,t[0]=(e[1]+e[4])/n,t[1]=.25*n,t[2]=(e[6]+e[9])/n):(n=2*Math.sqrt(1+e[10]-e[0]-e[5]),t[3]=(e[1]-e[4])/n,t[0]=(e[8]+e[2])/n,t[1]=(e[6]+e[9])/n,t[2]=.25*n),t},i.fromRotationTranslationScale=function(t,e,r,n){var i=e[0],a=e[1],o=e[2],s=e[3],l=i+i,u=a+a,c=o+o,h=i*l,f=i*u,d=i*c,p=a*u,m=a*c,v=o*c,g=s*l,y=s*u,b=s*c,x=n[0],_=n[1],w=n[2];return t[0]=(1-(p+v))*x,t[1]=(f+b)*x,t[2]=(d-y)*x,t[3]=0,t[4]=(f-b)*_,t[5]=(1-(h+v))*_,t[6]=(m+g)*_,t[7]=0,t[8]=(d+y)*w,t[9]=(m-g)*w,t[10]=(1-(h+p))*w,t[11]=0,t[12]=r[0],t[13]=r[1],t[14]=r[2],t[15]=1,t},i.fromRotationTranslationScaleOrigin=function(t,e,r,n,i){var a=e[0],o=e[1],s=e[2],l=e[3],u=a+a,c=o+o,h=s+s,f=a*u,d=a*c,p=a*h,m=o*c,v=o*h,g=s*h,y=l*u,b=l*c,x=l*h,_=n[0],w=n[1],M=n[2],k=i[0],A=i[1],T=i[2];return t[0]=(1-(m+g))*_,t[1]=(d+x)*_,t[2]=(p-b)*_,t[3]=0,t[4]=(d-x)*w,t[5]=(1-(f+g))*w,t[6]=(v+y)*w,t[7]=0,t[8]=(p+b)*M,t[9]=(v-y)*M,t[10]=(1-(f+m))*M,t[11]=0,t[12]=r[0]+k-(t[0]*k+t[4]*A+t[8]*T),t[13]=r[1]+A-(t[1]*k+t[5]*A+t[9]*T),t[14]=r[2]+T-(t[2]*k+t[6]*A+t[10]*T),t[15]=1,t},i.fromQuat=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=r+r,s=n+n,l=i+i,u=r*o,c=n*o,h=n*s,f=i*o,d=i*s,p=i*l,m=a*o,v=a*s,g=a*l;return t[0]=1-h-p,t[1]=c+g,t[2]=f-v,t[3]=0,t[4]=c-g,t[5]=1-u-p,t[6]=d+m,t[7]=0,t[8]=f+v,t[9]=d-m,t[10]=1-u-h,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},i.frustum=function(t,e,r,n,i,a,o){var s=1/(r-e),l=1/(i-n),u=1/(a-o);return t[0]=2*a*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*a*l,t[6]=0,t[7]=0,t[8]=(r+e)*s,t[9]=(i+n)*l,t[10]=(o+a)*u,t[11]=-1,t[12]=0,t[13]=0,t[14]=o*a*2*u,t[15]=0,t},i.perspective=function(t,e,r,n,i){var a=1/Math.tan(e/2),o=1/(n-i);return t[0]=a/r,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=(i+n)*o,t[11]=-1,t[12]=0,t[13]=0,t[14]=2*i*n*o,t[15]=0,t},i.perspectiveFromFieldOfView=function(t,e,r,n){var i=Math.tan(e.upDegrees*Math.PI/180),a=Math.tan(e.downDegrees*Math.PI/180),o=Math.tan(e.leftDegrees*Math.PI/180),s=Math.tan(e.rightDegrees*Math.PI/180),l=2/(o+s),u=2/(i+a);return t[0]=l,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=u,t[6]=0,t[7]=0,t[8]=-(o-s)*l*.5,t[9]=(i-a)*u*.5,t[10]=n/(r-n),t[11]=-1,t[12]=0,t[13]=0,t[14]=n*r/(r-n),t[15]=0,t},i.ortho=function(t,e,r,n,i,a,o){var s=1/(e-r),l=1/(n-i),u=1/(a-o);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*u,t[11]=0,t[12]=(e+r)*s,t[13]=(i+n)*l,t[14]=(o+a)*u,t[15]=1,t},i.lookAt=function(t,e,r,a){var o,s,l,u,c,h,f,d,p,m,v=e[0],g=e[1],y=e[2],b=a[0],x=a[1],_=a[2],w=r[0],M=r[1],k=r[2];return Math.abs(v-w)<n.EPSILON&&Math.abs(g-M)<n.EPSILON&&Math.abs(y-k)<n.EPSILON?i.identity(t):(f=v-w,d=g-M,p=y-k,m=1/Math.sqrt(f*f+d*d+p*p),f*=m,d*=m,p*=m,o=x*p-_*d,s=_*f-b*p,l=b*d-x*f,m=Math.sqrt(o*o+s*s+l*l),m?(m=1/m,o*=m,s*=m,l*=m):(o=0,s=0,l=0),u=d*l-p*s,c=p*o-f*l,h=f*s-d*o,m=Math.sqrt(u*u+c*c+h*h),m?(m=1/m,u*=m,c*=m,h*=m):(u=0,c=0,h=0),t[0]=o,t[1]=u,t[2]=f,t[3]=0,t[4]=s,t[5]=c,t[6]=d,t[7]=0,t[8]=l,t[9]=h,t[10]=p,t[11]=0,t[12]=-(o*v+s*g+l*y),t[13]=-(u*v+c*g+h*y),t[14]=-(f*v+d*g+p*y),t[15]=1,t)},i.str=function(t){return\"mat4(\"+t[0]+\", \"+t[1]+\", \"+t[2]+\", \"+t[3]+\", \"+t[4]+\", \"+t[5]+\", \"+t[6]+\", \"+t[7]+\", \"+t[8]+\", \"+t[9]+\", \"+t[10]+\", \"+t[11]+\", \"+t[12]+\", \"+t[13]+\", \"+t[14]+\", \"+t[15]+\")\"},i.frob=function(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2)+Math.pow(t[2],2)+Math.pow(t[3],2)+Math.pow(t[4],2)+Math.pow(t[5],2)+Math.pow(t[6],2)+Math.pow(t[7],2)+Math.pow(t[8],2)+Math.pow(t[9],2)+Math.pow(t[10],2)+Math.pow(t[11],2)+Math.pow(t[12],2)+Math.pow(t[13],2)+Math.pow(t[14],2)+Math.pow(t[15],2))},i.add=function(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t[3]=e[3]+r[3],t[4]=e[4]+r[4],t[5]=e[5]+r[5],t[6]=e[6]+r[6],t[7]=e[7]+r[7],t[8]=e[8]+r[8],t[9]=e[9]+r[9],t[10]=e[10]+r[10],t[11]=e[11]+r[11],t[12]=e[12]+r[12],t[13]=e[13]+r[13],t[14]=e[14]+r[14],t[15]=e[15]+r[15],t},i.subtract=function(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t[3]=e[3]-r[3],t[4]=e[4]-r[4],t[5]=e[5]-r[5],t[6]=e[6]-r[6],t[7]=e[7]-r[7],t[8]=e[8]-r[8],t[9]=e[9]-r[9],t[10]=e[10]-r[10],t[11]=e[11]-r[11],t[12]=e[12]-r[12],t[13]=e[13]-r[13],t[14]=e[14]-r[14],t[15]=e[15]-r[15],t},i.sub=i.subtract,i.multiplyScalar=function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*r,t[5]=e[5]*r,t[6]=e[6]*r,t[7]=e[7]*r,t[8]=e[8]*r,t[9]=e[9]*r,t[10]=e[10]*r,t[11]=e[11]*r,t[12]=e[12]*r,t[13]=e[13]*r,t[14]=e[14]*r,t[15]=e[15]*r,t},i.multiplyScalarAndAdd=function(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t[3]=e[3]+r[3]*n,t[4]=e[4]+r[4]*n,t[5]=e[5]+r[5]*n,t[6]=e[6]+r[6]*n,t[7]=e[7]+r[7]*n,t[8]=e[8]+r[8]*n,t[9]=e[9]+r[9]*n,t[10]=e[10]+r[10]*n,t[11]=e[11]+r[11]*n,t[12]=e[12]+r[12]*n,t[13]=e[13]+r[13]*n,t[14]=e[14]+r[14]*n,t[15]=e[15]+r[15]*n,t},i.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]&&t[9]===e[9]&&t[10]===e[10]&&t[11]===e[11]&&t[12]===e[12]&&t[13]===e[13]&&t[14]===e[14]&&t[15]===e[15]},i.equals=function(t,e){var r=t[0],i=t[1],a=t[2],o=t[3],s=t[4],l=t[5],u=t[6],c=t[7],h=t[8],f=t[9],d=t[10],p=t[11],m=t[12],v=t[13],g=t[14],y=t[15],b=e[0],x=e[1],_=e[2],w=e[3],M=e[4],k=e[5],A=e[6],T=e[7],S=e[8],E=e[9],L=e[10],C=e[11],I=e[12],z=e[13],D=e[14],P=e[15];return Math.abs(r-b)<=n.EPSILON*Math.max(1,Math.abs(r),Math.abs(b))&&Math.abs(i-x)<=n.EPSILON*Math.max(1,Math.abs(i),Math.abs(x))&&Math.abs(a-_)<=n.EPSILON*Math.max(1,Math.abs(a),Math.abs(_))&&Math.abs(o-w)<=n.EPSILON*Math.max(1,Math.abs(o),Math.abs(w))&&Math.abs(s-M)<=n.EPSILON*Math.max(1,Math.abs(s),Math.abs(M))&&Math.abs(l-k)<=n.EPSILON*Math.max(1,Math.abs(l),Math.abs(k))&&Math.abs(u-A)<=n.EPSILON*Math.max(1,Math.abs(u),Math.abs(A))&&Math.abs(c-T)<=n.EPSILON*Math.max(1,Math.abs(c),Math.abs(T))&&Math.abs(h-S)<=n.EPSILON*Math.max(1,Math.abs(h),Math.abs(S))&&Math.abs(f-E)<=n.EPSILON*Math.max(1,Math.abs(f),Math.abs(E))&&Math.abs(d-L)<=n.EPSILON*Math.max(1,Math.abs(d),Math.abs(L))&&Math.abs(p-C)<=n.EPSILON*Math.max(1,Math.abs(p),Math.abs(C))&&Math.abs(m-I)<=n.EPSILON*Math.max(1,Math.abs(m),Math.abs(I))&&Math.abs(v-z)<=n.EPSILON*Math.max(1,Math.abs(v),Math.abs(z))&&Math.abs(g-D)<=n.EPSILON*Math.max(1,Math.abs(g),Math.abs(D))&&Math.abs(y-P)<=n.EPSILON*Math.max(1,Math.abs(y),Math.abs(P))},e.exports=i},{\"./common.js\":194}],199:[function(t,e,r){var n=t(\"./common.js\"),i=t(\"./mat3.js\"),a=t(\"./vec3.js\"),o=t(\"./vec4.js\"),s={};s.create=function(){var t=new n.ARRAY_TYPE(4);return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t},s.rotationTo=function(){var t=a.create(),e=a.fromValues(1,0,0),r=a.fromValues(0,1,0);return function(n,i,o){var l=a.dot(i,o);return l<-.999999?(a.cross(t,e,i),a.length(t)<1e-6&&a.cross(t,r,i),a.normalize(t,t),s.setAxisAngle(n,t,Math.PI),n):l>.999999?(n[0]=0,n[1]=0,n[2]=0,n[3]=1,n):(a.cross(t,i,o),n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=1+l,s.normalize(n,n))}}(),s.setAxes=function(){var t=i.create();return function(e,r,n,i){return t[0]=n[0],t[3]=n[1],t[6]=n[2],t[1]=i[0],t[4]=i[1],t[7]=i[2],t[2]=-r[0],t[5]=-r[1],t[8]=-r[2],s.normalize(e,s.fromMat3(e,t))}}(),s.clone=o.clone,s.fromValues=o.fromValues,s.copy=o.copy,s.set=o.set,s.identity=function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t},s.setAxisAngle=function(t,e,r){r*=.5;var n=Math.sin(r);return t[0]=n*e[0],t[1]=n*e[1],t[2]=n*e[2],t[3]=Math.cos(r),t},s.getAxisAngle=function(t,e){var r=2*Math.acos(e[3]),n=Math.sin(r/2);return 0!=n?(t[0]=e[0]/n,t[1]=e[1]/n,t[2]=e[2]/n):(t[0]=1,t[1]=0,t[2]=0),r},s.add=o.add,s.multiply=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=r[0],l=r[1],u=r[2],c=r[3];return t[0]=n*c+o*s+i*u-a*l,t[1]=i*c+o*l+a*s-n*u,t[2]=a*c+o*u+n*l-i*s,t[3]=o*c-n*s-i*l-a*u,t},s.mul=s.multiply,s.scale=o.scale,s.rotateX=function(t,e,r){r*=.5;var n=e[0],i=e[1],a=e[2],o=e[3],s=Math.sin(r),l=Math.cos(r);return t[0]=n*l+o*s,t[1]=i*l+a*s,t[2]=a*l-i*s,t[3]=o*l-n*s,t},s.rotateY=function(t,e,r){r*=.5;var n=e[0],i=e[1],a=e[2],o=e[3],s=Math.sin(r),l=Math.cos(r);return t[0]=n*l-a*s,t[1]=i*l+o*s,t[2]=a*l+n*s,t[3]=o*l-i*s,t},s.rotateZ=function(t,e,r){r*=.5;var n=e[0],i=e[1],a=e[2],o=e[3],s=Math.sin(r),l=Math.cos(r);return t[0]=n*l+i*s,t[1]=i*l-n*s,t[2]=a*l+o*s,t[3]=o*l-a*s,t},s.calculateW=function(t,e){var r=e[0],n=e[1],i=e[2];return t[0]=r,t[1]=n,t[2]=i,t[3]=Math.sqrt(Math.abs(1-r*r-n*n-i*i)),t},s.dot=o.dot,s.lerp=o.lerp,s.slerp=function(t,e,r,n){var i,a,o,s,l,u=e[0],c=e[1],h=e[2],f=e[3],d=r[0],p=r[1],m=r[2],v=r[3];return a=u*d+c*p+h*m+f*v,a<0&&(a=-a,d=-d,p=-p,m=-m,v=-v),1-a>1e-6?(i=Math.acos(a),o=Math.sin(i),s=Math.sin((1-n)*i)/o,l=Math.sin(n*i)/o):(s=1-n,l=n),t[0]=s*u+l*d,t[1]=s*c+l*p,t[2]=s*h+l*m,t[3]=s*f+l*v,t},s.sqlerp=function(){var t=s.create(),e=s.create();return function(r,n,i,a,o,l){return s.slerp(t,n,o,l),s.slerp(e,i,a,l),s.slerp(r,t,e,2*l*(1-l)),r}}(),s.invert=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=r*r+n*n+i*i+a*a,s=o?1/o:0;return t[0]=-r*s,t[1]=-n*s,t[2]=-i*s,t[3]=a*s,t},s.conjugate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=e[3],t},s.length=o.length,s.len=s.length,s.squaredLength=o.squaredLength,s.sqrLen=s.squaredLength,s.normalize=o.normalize,s.fromMat3=function(t,e){var r,n=e[0]+e[4]+e[8];if(n>0)r=Math.sqrt(n+1),t[3]=.5*r,r=.5/r,t[0]=(e[5]-e[7])*r,t[1]=(e[6]-e[2])*r,t[2]=(e[1]-e[3])*r;else{var i=0;e[4]>e[0]&&(i=1),e[8]>e[3*i+i]&&(i=2);var a=(i+1)%3,o=(i+2)%3;r=Math.sqrt(e[3*i+i]-e[3*a+a]-e[3*o+o]+1),t[i]=.5*r,r=.5/r,t[3]=(e[3*a+o]-e[3*o+a])*r,t[a]=(e[3*a+i]+e[3*i+a])*r,t[o]=(e[3*o+i]+e[3*i+o])*r}return t},s.str=function(t){return\"quat(\"+t[0]+\", \"+t[1]+\", \"+t[2]+\", \"+t[3]+\")\"},s.exactEquals=o.exactEquals,s.equals=o.equals,e.exports=s},{\"./common.js\":194,\"./mat3.js\":197,\"./vec3.js\":201,\"./vec4.js\":202}],200:[function(t,e,r){var n=t(\"./common.js\"),i={};i.create=function(){var t=new n.ARRAY_TYPE(2);return t[0]=0,t[1]=0,t},i.clone=function(t){var e=new n.ARRAY_TYPE(2);return e[0]=t[0],e[1]=t[1],e},i.fromValues=function(t,e){var r=new n.ARRAY_TYPE(2);return r[0]=t,r[1]=e,r},i.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t},i.set=function(t,e,r){return t[0]=e,t[1]=r,t},i.add=function(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t},i.subtract=function(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t},i.sub=i.subtract,i.multiply=function(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t},i.mul=i.multiply,i.divide=function(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t},i.div=i.divide,i.ceil=function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t},i.floor=function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t},i.min=function(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t},i.max=function(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t},i.round=function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t},i.scale=function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t},i.scaleAndAdd=function(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t},i.distance=function(t,e){var r=e[0]-t[0],n=e[1]-t[1];return Math.sqrt(r*r+n*n)},i.dist=i.distance,i.squaredDistance=function(t,e){var r=e[0]-t[0],n=e[1]-t[1];return r*r+n*n},i.sqrDist=i.squaredDistance,i.length=function(t){var e=t[0],r=t[1];return Math.sqrt(e*e+r*r)},i.len=i.length,i.squaredLength=function(t){var e=t[0],r=t[1];return e*e+r*r},i.sqrLen=i.squaredLength,i.negate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t},i.inverse=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t},i.normalize=function(t,e){var r=e[0],n=e[1],i=r*r+n*n;return i>0&&(i=1/Math.sqrt(i),t[0]=e[0]*i,t[1]=e[1]*i),t},i.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]},i.cross=function(t,e,r){var n=e[0]*r[1]-e[1]*r[0];return t[0]=t[1]=0,t[2]=n,t},i.lerp=function(t,e,r,n){var i=e[0],a=e[1];return t[0]=i+n*(r[0]-i),t[1]=a+n*(r[1]-a),t},i.random=function(t,e){e=e||1;var r=2*n.RANDOM()*Math.PI;return t[0]=Math.cos(r)*e,t[1]=Math.sin(r)*e,t},i.transformMat2=function(t,e,r){var n=e[0],i=e[1];return t[0]=r[0]*n+r[2]*i,t[1]=r[1]*n+r[3]*i,t},i.transformMat2d=function(t,e,r){var n=e[0],i=e[1];return t[0]=r[0]*n+r[2]*i+r[4],t[1]=r[1]*n+r[3]*i+r[5],t},i.transformMat3=function(t,e,r){var n=e[0],i=e[1];return t[0]=r[0]*n+r[3]*i+r[6],t[1]=r[1]*n+r[4]*i+r[7],t},i.transformMat4=function(t,e,r){var n=e[0],i=e[1];return t[0]=r[0]*n+r[4]*i+r[12],t[1]=r[1]*n+r[5]*i+r[13],t},i.forEach=function(){var t=i.create();return function(e,r,n,i,a,o){var s,l;for(r||(r=2),n||(n=0),l=i?Math.min(i*r+n,e.length):e.length,s=n;s<l;s+=r)t[0]=e[s],t[1]=e[s+1],a(t,t,o),e[s]=t[0],e[s+1]=t[1];return e}}(),i.str=function(t){return\"vec2(\"+t[0]+\", \"+t[1]+\")\"},i.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]},i.equals=function(t,e){var r=t[0],i=t[1],a=e[0],o=e[1];return Math.abs(r-a)<=n.EPSILON*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(i-o)<=n.EPSILON*Math.max(1,Math.abs(i),Math.abs(o))},e.exports=i},{\"./common.js\":194}],201:[function(t,e,r){var n=t(\"./common.js\"),i={};i.create=function(){var t=new n.ARRAY_TYPE(3);return t[0]=0,t[1]=0,t[2]=0,t},i.clone=function(t){var e=new n.ARRAY_TYPE(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},i.fromValues=function(t,e,r){var i=new n.ARRAY_TYPE(3);return i[0]=t,i[1]=e,i[2]=r,i},i.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t},i.set=function(t,e,r,n){return t[0]=e,t[1]=r,t[2]=n,t},i.add=function(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t},i.subtract=function(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t},i.sub=i.subtract,i.multiply=function(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t[2]=e[2]*r[2],t},i.mul=i.multiply,i.divide=function(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t[2]=e[2]/r[2],t},i.div=i.divide,i.ceil=function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},i.floor=function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},i.min=function(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t[2]=Math.min(e[2],r[2]),t},i.max=function(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t[2]=Math.max(e[2],r[2]),t},i.round=function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},i.scale=function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t},i.scaleAndAdd=function(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t},i.distance=function(t,e){var r=e[0]-t[0],n=e[1]-t[1],i=e[2]-t[2];return Math.sqrt(r*r+n*n+i*i)},i.dist=i.distance,i.squaredDistance=function(t,e){var r=e[0]-t[0],n=e[1]-t[1],i=e[2]-t[2];return r*r+n*n+i*i},i.sqrDist=i.squaredDistance,i.length=function(t){var e=t[0],r=t[1],n=t[2];return Math.sqrt(e*e+r*r+n*n)},i.len=i.length,i.squaredLength=function(t){var e=t[0],r=t[1],n=t[2];return e*e+r*r+n*n},i.sqrLen=i.squaredLength,i.negate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t},i.inverse=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t},i.normalize=function(t,e){var r=e[0],n=e[1],i=e[2],a=r*r+n*n+i*i;return a>0&&(a=1/Math.sqrt(a),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a),t},i.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]},i.cross=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=r[0],s=r[1],l=r[2];return t[0]=i*l-a*s,t[1]=a*o-n*l,t[2]=n*s-i*o,t},i.lerp=function(t,e,r,n){var i=e[0],a=e[1],o=e[2];return t[0]=i+n*(r[0]-i),t[1]=a+n*(r[1]-a),t[2]=o+n*(r[2]-o),t},i.hermite=function(t,e,r,n,i,a){var o=a*a,s=o*(2*a-3)+1,l=o*(a-2)+a,u=o*(a-1),c=o*(3-2*a);return t[0]=e[0]*s+r[0]*l+n[0]*u+i[0]*c,t[1]=e[1]*s+r[1]*l+n[1]*u+i[1]*c,t[2]=e[2]*s+r[2]*l+n[2]*u+i[2]*c,t},i.bezier=function(t,e,r,n,i,a){var o=1-a,s=o*o,l=a*a,u=s*o,c=3*a*s,h=3*l*o,f=l*a;return t[0]=e[0]*u+r[0]*c+n[0]*h+i[0]*f,t[1]=e[1]*u+r[1]*c+n[1]*h+i[1]*f,t[2]=e[2]*u+r[2]*c+n[2]*h+i[2]*f,t},i.random=function(t,e){e=e||1;var r=2*n.RANDOM()*Math.PI,i=2*n.RANDOM()-1,a=Math.sqrt(1-i*i)*e;return t[0]=Math.cos(r)*a,t[1]=Math.sin(r)*a,t[2]=i*e,t},i.transformMat4=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=r[3]*n+r[7]*i+r[11]*a+r[15];return o=o||1,t[0]=(r[0]*n+r[4]*i+r[8]*a+r[12])/o,t[1]=(r[1]*n+r[5]*i+r[9]*a+r[13])/o,t[2]=(r[2]*n+r[6]*i+r[10]*a+r[14])/o,t},i.transformMat3=function(t,e,r){var n=e[0],i=e[1],a=e[2];return t[0]=n*r[0]+i*r[3]+a*r[6],t[1]=n*r[1]+i*r[4]+a*r[7],t[2]=n*r[2]+i*r[5]+a*r[8],t},i.transformQuat=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=r[0],s=r[1],l=r[2],u=r[3],c=u*n+s*a-l*i,h=u*i+l*n-o*a,f=u*a+o*i-s*n,d=-o*n-s*i-l*a;return t[0]=c*u+d*-o+h*-l-f*-s,t[1]=h*u+d*-s+f*-o-c*-l,t[2]=f*u+d*-l+c*-s-h*-o,t},i.rotateX=function(t,e,r,n){var i=[],a=[];return i[0]=e[0]-r[0],i[1]=e[1]-r[1],i[2]=e[2]-r[2],a[0]=i[0],a[1]=i[1]*Math.cos(n)-i[2]*Math.sin(n),a[2]=i[1]*Math.sin(n)+i[2]*Math.cos(n),t[0]=a[0]+r[0],t[1]=a[1]+r[1],t[2]=a[2]+r[2],t},i.rotateY=function(t,e,r,n){var i=[],a=[];return i[0]=e[0]-r[0],i[1]=e[1]-r[1],i[2]=e[2]-r[2],a[0]=i[2]*Math.sin(n)+i[0]*Math.cos(n),a[1]=i[1],a[2]=i[2]*Math.cos(n)-i[0]*Math.sin(n),t[0]=a[0]+r[0],t[1]=a[1]+r[1],t[2]=a[2]+r[2],t},i.rotateZ=function(t,e,r,n){var i=[],a=[];return i[0]=e[0]-r[0],i[1]=e[1]-r[1],i[2]=e[2]-r[2],a[0]=i[0]*Math.cos(n)-i[1]*Math.sin(n),a[1]=i[0]*Math.sin(n)+i[1]*Math.cos(n),a[2]=i[2],t[0]=a[0]+r[0],t[1]=a[1]+r[1],t[2]=a[2]+r[2],t},i.forEach=function(){var t=i.create();return function(e,r,n,i,a,o){var s,l;for(r||(r=3),n||(n=0),l=i?Math.min(i*r+n,e.length):e.length,s=n;s<l;s+=r)t[0]=e[s],t[1]=e[s+1],t[2]=e[s+2],a(t,t,o),e[s]=t[0],e[s+1]=t[1],e[s+2]=t[2];return e}}(),i.angle=function(t,e){var r=i.fromValues(t[0],t[1],t[2]),n=i.fromValues(e[0],e[1],e[2]);i.normalize(r,r),i.normalize(n,n);var a=i.dot(r,n);return a>1?0:Math.acos(a)},i.str=function(t){return\"vec3(\"+t[0]+\", \"+t[1]+\", \"+t[2]+\")\"},i.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]},i.equals=function(t,e){var r=t[0],i=t[1],a=t[2],o=e[0],s=e[1],l=e[2];return Math.abs(r-o)<=n.EPSILON*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(i-s)<=n.EPSILON*Math.max(1,Math.abs(i),Math.abs(s))&&Math.abs(a-l)<=n.EPSILON*Math.max(1,Math.abs(a),Math.abs(l))},e.exports=i},{\"./common.js\":194}],202:[function(t,e,r){var n=t(\"./common.js\"),i={};i.create=function(){var t=new n.ARRAY_TYPE(4);return t[0]=0,t[1]=0,t[2]=0,t[3]=0,t},i.clone=function(t){var e=new n.ARRAY_TYPE(4);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e},i.fromValues=function(t,e,r,i){var a=new n.ARRAY_TYPE(4);return a[0]=t,a[1]=e,a[2]=r,a[3]=i,a},i.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t},i.set=function(t,e,r,n,i){return t[0]=e,t[1]=r,t[2]=n,t[3]=i,t},i.add=function(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t[3]=e[3]+r[3],t},i.subtract=function(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t[3]=e[3]-r[3],t},i.sub=i.subtract,i.multiply=function(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t[2]=e[2]*r[2],t[3]=e[3]*r[3],t},i.mul=i.multiply,i.divide=function(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t[2]=e[2]/r[2],t[3]=e[3]/r[3],t},i.div=i.divide,i.ceil=function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t[3]=Math.ceil(e[3]),t},i.floor=function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t[3]=Math.floor(e[3]),t},i.min=function(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t[2]=Math.min(e[2],r[2]),t[3]=Math.min(e[3],r[3]),t},i.max=function(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t[2]=Math.max(e[2],r[2]),t[3]=Math.max(e[3],r[3]),t},i.round=function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t[3]=Math.round(e[3]),t},i.scale=function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t},i.scaleAndAdd=function(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t[3]=e[3]+r[3]*n,t},i.distance=function(t,e){var r=e[0]-t[0],n=e[1]-t[1],i=e[2]-t[2],a=e[3]-t[3];return Math.sqrt(r*r+n*n+i*i+a*a)},i.dist=i.distance,i.squaredDistance=function(t,e){var r=e[0]-t[0],n=e[1]-t[1],i=e[2]-t[2],a=e[3]-t[3];return r*r+n*n+i*i+a*a},i.sqrDist=i.squaredDistance,i.length=function(t){var e=t[0],r=t[1],n=t[2],i=t[3];return Math.sqrt(e*e+r*r+n*n+i*i)},i.len=i.length,i.squaredLength=function(t){var e=t[0],r=t[1],n=t[2],i=t[3];return e*e+r*r+n*n+i*i},i.sqrLen=i.squaredLength,i.negate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t},i.inverse=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],\n", "t[3]=1/e[3],t},i.normalize=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=r*r+n*n+i*i+a*a;return o>0&&(o=1/Math.sqrt(o),t[0]=r*o,t[1]=n*o,t[2]=i*o,t[3]=a*o),t},i.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]},i.lerp=function(t,e,r,n){var i=e[0],a=e[1],o=e[2],s=e[3];return t[0]=i+n*(r[0]-i),t[1]=a+n*(r[1]-a),t[2]=o+n*(r[2]-o),t[3]=s+n*(r[3]-s),t},i.random=function(t,e){return e=e||1,t[0]=n.RANDOM(),t[1]=n.RANDOM(),t[2]=n.RANDOM(),t[3]=n.RANDOM(),i.normalize(t,t),i.scale(t,t,e),t},i.transformMat4=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3];return t[0]=r[0]*n+r[4]*i+r[8]*a+r[12]*o,t[1]=r[1]*n+r[5]*i+r[9]*a+r[13]*o,t[2]=r[2]*n+r[6]*i+r[10]*a+r[14]*o,t[3]=r[3]*n+r[7]*i+r[11]*a+r[15]*o,t},i.transformQuat=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=r[0],s=r[1],l=r[2],u=r[3],c=u*n+s*a-l*i,h=u*i+l*n-o*a,f=u*a+o*i-s*n,d=-o*n-s*i-l*a;return t[0]=c*u+d*-o+h*-l-f*-s,t[1]=h*u+d*-s+f*-o-c*-l,t[2]=f*u+d*-l+c*-s-h*-o,t[3]=e[3],t},i.forEach=function(){var t=i.create();return function(e,r,n,i,a,o){var s,l;for(r||(r=4),n||(n=0),l=i?Math.min(i*r+n,e.length):e.length,s=n;s<l;s+=r)t[0]=e[s],t[1]=e[s+1],t[2]=e[s+2],t[3]=e[s+3],a(t,t,o),e[s]=t[0],e[s+1]=t[1],e[s+2]=t[2],e[s+3]=t[3];return e}}(),i.str=function(t){return\"vec4(\"+t[0]+\", \"+t[1]+\", \"+t[2]+\", \"+t[3]+\")\"},i.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]},i.equals=function(t,e){var r=t[0],i=t[1],a=t[2],o=t[3],s=e[0],l=e[1],u=e[2],c=e[3];return Math.abs(r-s)<=n.EPSILON*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(i-l)<=n.EPSILON*Math.max(1,Math.abs(i),Math.abs(l))&&Math.abs(a-u)<=n.EPSILON*Math.max(1,Math.abs(a),Math.abs(u))&&Math.abs(o-c)<=n.EPSILON*Math.max(1,Math.abs(o),Math.abs(c))},e.exports=i},{\"./common.js\":194}],203:[function(t,e,r){\"use strict\";function n(t,e){for(var r=[0,0,0,0],n=0;n<4;++n)for(var i=0;i<4;++i)r[i]+=t[4*n+i]*e[n];return r}function i(t,e,r,i,a){for(var o=n(i,n(r,n(e,[t[0],t[1],t[2],1]))),s=0;s<3;++s)o[s]/=o[3];return[.5*a[0]*(1+o[0]),.5*a[1]*(1-o[1])]}function a(t,e){if(2===t.length){for(var r=0,n=0,i=0;i<2;++i)r+=Math.pow(e[i]-t[0][i],2),n+=Math.pow(e[i]-t[1][i],2);return r=Math.sqrt(r),n=Math.sqrt(n),r+n<1e-6?[1,0]:[n/(r+n),r/(n+r)]}if(3===t.length){var a=[0,0];return u(t[0],t[1],t[2],e,a),l(t,a)}return[]}function o(t,e){for(var r=[0,0,0],n=0;n<t.length;++n)for(var i=t[n],a=e[n],o=0;o<3;++o)r[o]+=a*i[o];return r}function s(t,e,r,n,s,l){if(1===t.length)return[0,t[0].slice()];for(var u=new Array(t.length),c=0;c<t.length;++c)u[c]=i(t[c],r,n,s,l);for(var h=0,f=1/0,c=0;c<u.length;++c){for(var d=0,p=0;p<2;++p)d+=Math.pow(u[c][p]-e[p],2);d<f&&(f=d,h=c)}for(var m=a(u,e),v=0,c=0;c<3;++c){if(m[c]<-.001||m[c]>1.0001)return null;v+=m[c]}return Math.abs(v-1)>.001?null:[h,o(t,m),m]}var l=t(\"barycentric\"),u=t(\"polytope-closest-point/lib/closest_point_2d.js\");e.exports=s},{barycentric:49,\"polytope-closest-point/lib/closest_point_2d.js\":486}],204:[function(t,e,r){var n=\"precision mediump float;\\n#define GLSLIFY 1\\n\\nuniform vec3 clipBounds[2];\\nuniform float pickId;\\n\\nvarying vec3 f_position;\\nvarying vec4 f_id;\\n\\nvoid main() {\\n if(any(lessThan(f_position, clipBounds[0])) || \\n any(greaterThan(f_position, clipBounds[1]))) {\\n discard;\\n }\\n gl_FragColor = vec4(pickId, f_id.xyz);\\n}\";r.meshShader={vertex:\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute vec3 position, normal;\\nattribute vec4 color;\\nattribute vec2 uv;\\n\\nuniform mat4 model\\n , view\\n , projection;\\nuniform vec3 eyePosition\\n , lightPosition;\\n\\nvarying vec3 f_normal\\n , f_lightDirection\\n , f_eyeDirection\\n , f_data;\\nvarying vec4 f_color;\\nvarying vec2 f_uv;\\n\\nvoid main() {\\n vec4 m_position = model * vec4(position, 1.0);\\n vec4 t_position = view * m_position;\\n gl_Position = projection * t_position;\\n f_color = color;\\n f_normal = normal;\\n f_data = position;\\n f_eyeDirection = eyePosition - position;\\n f_lightDirection = lightPosition - position;\\n f_uv = uv;\\n}\",fragment:\"precision mediump float;\\n#define GLSLIFY 1\\n\\nfloat beckmannDistribution_2_0(float x, float roughness) {\\n float NdotH = max(x, 0.0001);\\n float cos2Alpha = NdotH * NdotH;\\n float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\\n float roughness2 = roughness * roughness;\\n float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\\n return exp(tan2Alpha / roughness2) / denom;\\n}\\n\\n\\n\\nfloat cookTorranceSpecular_1_1(\\n vec3 lightDirection,\\n vec3 viewDirection,\\n vec3 surfaceNormal,\\n float roughness,\\n float fresnel) {\\n\\n float VdotN = max(dot(viewDirection, surfaceNormal), 0.0);\\n float LdotN = max(dot(lightDirection, surfaceNormal), 0.0);\\n\\n //Half angle vector\\n vec3 H = normalize(lightDirection + viewDirection);\\n\\n //Geometric term\\n float NdotH = max(dot(surfaceNormal, H), 0.0);\\n float VdotH = max(dot(viewDirection, H), 0.000001);\\n float LdotH = max(dot(lightDirection, H), 0.000001);\\n float G1 = (2.0 * NdotH * VdotN) / VdotH;\\n float G2 = (2.0 * NdotH * LdotN) / LdotH;\\n float G = min(1.0, min(G1, G2));\\n \\n //Distribution term\\n float D = beckmannDistribution_2_0(NdotH, roughness);\\n\\n //Fresnel term\\n float F = pow(1.0 - VdotN, fresnel);\\n\\n //Multiply terms and done\\n return G * F * D / max(3.14159265 * VdotN, 0.000001);\\n}\\n\\n\\n\\nuniform vec3 clipBounds[2];\\nuniform float roughness\\n , fresnel\\n , kambient\\n , kdiffuse\\n , kspecular\\n , opacity;\\nuniform sampler2D texture;\\n\\nvarying vec3 f_normal\\n , f_lightDirection\\n , f_eyeDirection\\n , f_data;\\nvarying vec4 f_color;\\nvarying vec2 f_uv;\\n\\nvoid main() {\\n if(any(lessThan(f_data, clipBounds[0])) || \\n any(greaterThan(f_data, clipBounds[1]))) {\\n discard;\\n }\\n\\n vec3 N = normalize(f_normal);\\n vec3 L = normalize(f_lightDirection);\\n vec3 V = normalize(f_eyeDirection);\\n \\n if(!gl_FrontFacing) {\\n N = -N;\\n }\\n\\n float specular = cookTorranceSpecular_1_1(L, V, N, roughness, fresnel);\\n float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\\n\\n vec4 surfaceColor = f_color * texture2D(texture, f_uv);\\n vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0);\\n\\n gl_FragColor = litColor * opacity;\\n}\",attributes:[{name:\"position\",type:\"vec3\"},{name:\"normal\",type:\"vec3\"},{name:\"color\",type:\"vec4\"},{name:\"uv\",type:\"vec2\"}]},r.wireShader={vertex:\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute vec3 position;\\nattribute vec4 color;\\nattribute vec2 uv;\\n\\nuniform mat4 model, view, projection;\\n\\nvarying vec4 f_color;\\nvarying vec3 f_data;\\nvarying vec2 f_uv;\\n\\nvoid main() {\\n gl_Position = projection * view * model * vec4(position, 1.0);\\n f_color = color;\\n f_data = position;\\n f_uv = uv;\\n}\",fragment:\"precision mediump float;\\n#define GLSLIFY 1\\n\\nuniform vec3 clipBounds[2];\\nuniform sampler2D texture;\\nuniform float opacity;\\n\\nvarying vec4 f_color;\\nvarying vec3 f_data;\\nvarying vec2 f_uv;\\n\\nvoid main() {\\n if(any(lessThan(f_data, clipBounds[0])) || \\n any(greaterThan(f_data, clipBounds[1]))) {\\n discard;\\n }\\n\\n gl_FragColor = f_color * texture2D(texture, f_uv) * opacity;\\n}\",attributes:[{name:\"position\",type:\"vec3\"},{name:\"color\",type:\"vec4\"},{name:\"uv\",type:\"vec2\"}]},r.pointShader={vertex:\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute vec3 position;\\nattribute vec4 color;\\nattribute vec2 uv;\\nattribute float pointSize;\\n\\nuniform mat4 model, view, projection;\\nuniform vec3 clipBounds[2];\\n\\nvarying vec4 f_color;\\nvarying vec2 f_uv;\\n\\nvoid main() {\\n if(any(lessThan(position, clipBounds[0])) || \\n any(greaterThan(position, clipBounds[1]))) {\\n gl_Position = vec4(0,0,0,0);\\n } else {\\n gl_Position = projection * view * model * vec4(position, 1.0);\\n }\\n gl_PointSize = pointSize;\\n f_color = color;\\n f_uv = uv;\\n}\",fragment:\"precision mediump float;\\n#define GLSLIFY 1\\n\\nuniform sampler2D texture;\\nuniform float opacity;\\n\\nvarying vec4 f_color;\\nvarying vec2 f_uv;\\n\\nvoid main() {\\n vec2 pointR = gl_PointCoord.xy - vec2(0.5,0.5);\\n if(dot(pointR, pointR) > 0.25) {\\n discard;\\n }\\n gl_FragColor = f_color * texture2D(texture, f_uv) * opacity;\\n}\",attributes:[{name:\"position\",type:\"vec3\"},{name:\"color\",type:\"vec4\"},{name:\"uv\",type:\"vec2\"},{name:\"pointSize\",type:\"float\"}]},r.pickShader={vertex:\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute vec3 position;\\nattribute vec4 id;\\n\\nuniform mat4 model, view, projection;\\n\\nvarying vec3 f_position;\\nvarying vec4 f_id;\\n\\nvoid main() {\\n gl_Position = projection * view * model * vec4(position, 1.0);\\n f_id = id;\\n f_position = position;\\n}\",fragment:n,attributes:[{name:\"position\",type:\"vec3\"},{name:\"id\",type:\"vec4\"}]},r.pointPickShader={vertex:\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute vec3 position;\\nattribute float pointSize;\\nattribute vec4 id;\\n\\nuniform mat4 model, view, projection;\\nuniform vec3 clipBounds[2];\\n\\nvarying vec3 f_position;\\nvarying vec4 f_id;\\n\\nvoid main() {\\n if(any(lessThan(position, clipBounds[0])) || \\n any(greaterThan(position, clipBounds[1]))) {\\n gl_Position = vec4(0,0,0,0);\\n } else {\\n gl_Position = projection * view * model * vec4(position, 1.0);\\n gl_PointSize = pointSize;\\n }\\n f_id = id;\\n f_position = position;\\n}\",fragment:n,attributes:[{name:\"position\",type:\"vec3\"},{name:\"pointSize\",type:\"float\"},{name:\"id\",type:\"vec4\"}]},r.contourShader={vertex:\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute vec3 position;\\n\\nuniform mat4 model, view, projection;\\n\\nvoid main() {\\n gl_Position = projection * view * model * vec4(position, 1.0);\\n}\",fragment:\"precision mediump float;\\n#define GLSLIFY 1\\n\\nuniform vec3 contourColor;\\n\\nvoid main() {\\n gl_FragColor = vec4(contourColor,1);\\n}\\n\",attributes:[{name:\"position\",type:\"vec3\"}]}},{}],205:[function(t,e,r){\"use strict\";function n(t,e,r,n,i,a,o,s,l,u,c,h,f,d,p,m,v,g,y,b,x,_,w,M,k,A,T){this.gl=t,this.cells=[],this.positions=[],this.intensity=[],this.texture=e,this.dirty=!0,this.triShader=r,this.lineShader=n,this.pointShader=i,this.pickShader=a,this.pointPickShader=o,this.contourShader=s,this.trianglePositions=l,this.triangleColors=c,this.triangleNormals=f,this.triangleUVs=h,this.triangleIds=u,this.triangleVAO=d,this.triangleCount=0,this.lineWidth=1,this.edgePositions=p,this.edgeColors=v,this.edgeUVs=g,this.edgeIds=m,this.edgeVAO=y,this.edgeCount=0,this.pointPositions=b,this.pointColors=_,this.pointUVs=w,this.pointSizes=M,this.pointIds=x,this.pointVAO=k,this.pointCount=0,this.contourLineWidth=1,this.contourPositions=A,this.contourVAO=T,this.contourCount=0,this.contourColor=[0,0,0],this.contourEnable=!0,this.pickId=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lightPosition=[1e5,1e5,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.opacity=1,this._model=D,this._view=D,this._projection=D,this._resolution=[1,1]}function i(t){for(var e=w({colormap:t,nshades:256,format:\"rgba\"}),r=new Uint8Array(1024),n=0;n<256;++n){for(var i=e[n],a=0;a<3;++a)r[4*n+a]=i[a];r[4*n+3]=255*i[3]}return _(r,[256,256,4],[4,0,1])}function a(t,e,r){for(var n=new Array(e),i=0;i<e;++i)n[i]=0;for(var a=t.length,i=0;i<a;++i)for(var o=t[i],s=0;s<o.length;++s)n[o[s]]=r[i];return n}function o(t){for(var e=t.length,r=new Array(e),n=0;n<e;++n)r[n]=t[n][2];return r}function s(t){var e=p(t,S.vertex,S.fragment);return e.attributes.position.location=0,e.attributes.color.location=2,e.attributes.uv.location=3,e.attributes.normal.location=4,e}function l(t){var e=p(t,E.vertex,E.fragment);return e.attributes.position.location=0,e.attributes.color.location=2,e.attributes.uv.location=3,e}function u(t){var e=p(t,L.vertex,L.fragment);return e.attributes.position.location=0,e.attributes.color.location=2,e.attributes.uv.location=3,e.attributes.pointSize.location=4,e}function c(t){var e=p(t,C.vertex,C.fragment);return e.attributes.position.location=0,e.attributes.id.location=1,e}function h(t){var e=p(t,I.vertex,I.fragment);return e.attributes.position.location=0,e.attributes.id.location=1,e.attributes.pointSize.location=4,e}function f(t){var e=p(t,z.vertex,z.fragment);return e.attributes.position.location=0,e}function d(t,e){1===arguments.length&&(e=t,t=e.gl);var r=s(t),i=l(t),a=u(t),o=c(t),d=h(t),p=f(t),y=g(t,_(new Uint8Array([255,255,255,255]),[1,1,4]));y.generateMipmap(),y.minFilter=t.LINEAR_MIPMAP_LINEAR,y.magFilter=t.LINEAR;var b=m(t),x=m(t),w=m(t),M=m(t),k=m(t),A=v(t,[{buffer:b,type:t.FLOAT,size:3},{buffer:k,type:t.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:x,type:t.FLOAT,size:4},{buffer:w,type:t.FLOAT,size:2},{buffer:M,type:t.FLOAT,size:3}]),T=m(t),S=m(t),E=m(t),L=m(t),C=v(t,[{buffer:T,type:t.FLOAT,size:3},{buffer:L,type:t.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:S,type:t.FLOAT,size:4},{buffer:E,type:t.FLOAT,size:2}]),I=m(t),z=m(t),D=m(t),P=m(t),O=m(t),R=v(t,[{buffer:I,type:t.FLOAT,size:3},{buffer:O,type:t.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:z,type:t.FLOAT,size:4},{buffer:D,type:t.FLOAT,size:2},{buffer:P,type:t.FLOAT,size:1}]),F=m(t),j=v(t,[{buffer:F,type:t.FLOAT,size:3}]),N=new n(t,y,r,i,a,o,d,p,b,k,x,w,M,A,T,L,S,E,C,I,O,z,D,P,R,F,j);return N.update(e),N}var p=t(\"gl-shader\"),m=t(\"gl-buffer\"),v=t(\"gl-vao\"),g=t(\"gl-texture2d\"),y=t(\"normals\"),b=t(\"gl-mat4/multiply\"),x=t(\"gl-mat4/invert\"),_=t(\"ndarray\"),w=t(\"colormap\"),M=t(\"simplicial-complex-contour\"),k=t(\"typedarray-pool\"),A=t(\"./lib/shaders\"),T=t(\"./lib/closest-point\"),S=A.meshShader,E=A.wireShader,L=A.pointShader,C=A.pickShader,I=A.pointPickShader,z=A.contourShader,D=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],P=n.prototype;P.isOpaque=function(){return this.opacity>=1},P.isTransparent=function(){return this.opacity<1},P.pickSlots=1,P.setPickBase=function(t){this.pickId=t},P.highlight=function(t){if(!t||!this.contourEnable)return void(this.contourCount=0);for(var e=M(this.cells,this.intensity,t.intensity),r=e.cells,n=e.vertexIds,i=e.vertexWeights,a=r.length,o=k.mallocFloat32(6*a),s=0,l=0;l<a;++l)for(var u=r[l],c=0;c<2;++c){var h=u[0];2===u.length&&(h=u[c]);for(var f=n[h][0],d=n[h][1],p=i[h],m=1-p,v=this.positions[f],g=this.positions[d],y=0;y<3;++y)o[s++]=p*v[y]+m*g[y]}this.contourCount=s/3|0,this.contourPositions.update(o.subarray(0,s)),k.free(o)},P.update=function(t){t=t||{};var e=this.gl;this.dirty=!0,\"contourEnable\"in t&&(this.contourEnable=t.contourEnable),\"contourColor\"in t&&(this.contourColor=t.contourColor),\"lineWidth\"in t&&(this.lineWidth=t.lineWidth),\"lightPosition\"in t&&(this.lightPosition=t.lightPosition),\"opacity\"in t&&(this.opacity=t.opacity),\"ambient\"in t&&(this.ambientLight=t.ambient),\"diffuse\"in t&&(this.diffuseLight=t.diffuse),\"specular\"in t&&(this.specularLight=t.specular),\"roughness\"in t&&(this.roughness=t.roughness),\"fresnel\"in t&&(this.fresnel=t.fresnel),t.texture?(this.texture.dispose(),this.texture=g(e,t.texture)):t.colormap&&(this.texture.shape=[256,256],this.texture.minFilter=e.LINEAR_MIPMAP_LINEAR,this.texture.magFilter=e.LINEAR,this.texture.setPixels(i(t.colormap)),this.texture.generateMipmap());var r=t.cells,n=t.positions;if(n&&r){var s=[],l=[],u=[],c=[],h=[],f=[],d=[],p=[],m=[],v=[],b=[],x=[],_=[],w=[];this.cells=r,this.positions=n;var M=t.vertexNormals,k=t.cellNormals,A=void 0===t.vertexNormalsEpsilon?1e-6:t.vertexNormalsEpsilon,T=void 0===t.faceNormalsEpsilon?1e-6:t.faceNormalsEpsilon;t.useFacetNormals&&!k&&(k=y.faceNormals(r,n,T)),k||M||(M=y.vertexNormals(r,n,A));var S=t.vertexColors,E=t.cellColors,L=t.meshColor||[1,1,1,1],C=t.vertexUVs,I=t.vertexIntensity,z=t.cellUVs,D=t.cellIntensity,P=1/0,O=-1/0;if(!C&&!z)if(I)if(t.vertexIntensityBounds)P=+t.vertexIntensityBounds[0],O=+t.vertexIntensityBounds[1];else for(var R=0;R<I.length;++R){var F=I[R];P=Math.min(P,F),O=Math.max(O,F)}else if(D)for(var R=0;R<D.length;++R){var F=D[R];P=Math.min(P,F),O=Math.max(O,F)}else for(var R=0;R<n.length;++R){var F=n[R][2];P=Math.min(P,F),O=Math.max(O,F)}this.intensity=I||(D?a(r,n.length,D):o(n));var j=t.pointSizes,N=t.pointSize||1;this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]];for(var R=0;R<n.length;++R)for(var B=n[R],U=0;U<3;++U)!isNaN(B[U])&&isFinite(B[U])&&(this.bounds[0][U]=Math.min(this.bounds[0][U],B[U]),this.bounds[1][U]=Math.max(this.bounds[1][U],B[U]));var V=0,H=0,q=0;t:for(var R=0;R<r.length;++R){var G=r[R];switch(G.length){case 1:for(var Y=G[0],B=n[Y],U=0;U<3;++U)if(isNaN(B[U])||!isFinite(B[U]))continue t;v.push(B[0],B[1],B[2]);var W;W=S?S[Y]:E?E[R]:L,3===W.length?b.push(W[0],W[1],W[2],1):b.push(W[0],W[1],W[2],W[3]);var X;X=C?C[Y]:I?[(I[Y]-P)/(O-P),0]:z?z[R]:D?[(D[R]-P)/(O-P),0]:[(B[2]-P)/(O-P),0],x.push(X[0],X[1]),j?_.push(j[Y]):_.push(N),w.push(R),q+=1;break;case 2:for(var U=0;U<2;++U)for(var Y=G[U],B=n[Y],Z=0;Z<3;++Z)if(isNaN(B[Z])||!isFinite(B[Z]))continue t;for(var U=0;U<2;++U){var Y=G[U],B=n[Y];f.push(B[0],B[1],B[2]);var W;W=S?S[Y]:E?E[R]:L,3===W.length?d.push(W[0],W[1],W[2],1):d.push(W[0],W[1],W[2],W[3]);var X;X=C?C[Y]:I?[(I[Y]-P)/(O-P),0]:z?z[R]:D?[(D[R]-P)/(O-P),0]:[(B[2]-P)/(O-P),0],p.push(X[0],X[1]),m.push(R)}H+=1;break;case 3:for(var U=0;U<3;++U)for(var Y=G[U],B=n[Y],Z=0;Z<3;++Z)if(isNaN(B[Z])||!isFinite(B[Z]))continue t;for(var U=0;U<3;++U){var Y=G[U],B=n[Y];s.push(B[0],B[1],B[2]);var W;W=S?S[Y]:E?E[R]:L,3===W.length?l.push(W[0],W[1],W[2],1):l.push(W[0],W[1],W[2],W[3]);var X;X=C?C[Y]:I?[(I[Y]-P)/(O-P),0]:z?z[R]:D?[(D[R]-P)/(O-P),0]:[(B[2]-P)/(O-P),0],c.push(X[0],X[1]);var J;J=M?M[Y]:k[R],u.push(J[0],J[1],J[2]),h.push(R)}V+=1}}this.pointCount=q,this.edgeCount=H,this.triangleCount=V,this.pointPositions.update(v),this.pointColors.update(b),this.pointUVs.update(x),this.pointSizes.update(_),this.pointIds.update(new Uint32Array(w)),this.edgePositions.update(f),this.edgeColors.update(d),this.edgeUVs.update(p),this.edgeIds.update(new Uint32Array(m)),this.trianglePositions.update(s),this.triangleColors.update(l),this.triangleUVs.update(c),this.triangleNormals.update(u),this.triangleIds.update(new Uint32Array(h))}},P.drawTransparent=P.draw=function(t){t=t||{};for(var e=this.gl,r=t.model||D,n=t.view||D,i=t.projection||D,a=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],o=0;o<3;++o)a[0][o]=Math.max(a[0][o],this.clipBounds[0][o]),a[1][o]=Math.min(a[1][o],this.clipBounds[1][o]);var s={model:r,view:n,projection:i,clipBounds:a,kambient:this.ambientLight,kdiffuse:this.diffuseLight,kspecular:this.specularLight,roughness:this.roughness,fresnel:this.fresnel,eyePosition:[0,0,0],lightPosition:[0,0,0],opacity:this.opacity,contourColor:this.contourColor,texture:0};this.texture.bind(0);var l=new Array(16);b(l,s.view,s.model),b(l,s.projection,l),x(l,l);for(var o=0;o<3;++o)s.eyePosition[o]=l[12+o]/l[15];for(var u=l[15],o=0;o<3;++o)u+=this.lightPosition[o]*l[4*o+3];for(var o=0;o<3;++o){for(var c=l[12+o],h=0;h<3;++h)c+=l[4*h+o]*this.lightPosition[h];s.lightPosition[o]=c/u}if(this.triangleCount>0){var f=this.triShader;f.bind(),f.uniforms=s,this.triangleVAO.bind(),e.drawArrays(e.TRIANGLES,0,3*this.triangleCount),this.triangleVAO.unbind()}if(this.edgeCount>0&&this.lineWidth>0){var f=this.lineShader;f.bind(),f.uniforms=s,this.edgeVAO.bind(),e.lineWidth(this.lineWidth),e.drawArrays(e.LINES,0,2*this.edgeCount),this.edgeVAO.unbind()}if(this.pointCount>0){var f=this.pointShader;f.bind(),f.uniforms=s,this.pointVAO.bind(),e.drawArrays(e.POINTS,0,this.pointCount),this.pointVAO.unbind()}if(this.contourEnable&&this.contourCount>0&&this.contourLineWidth>0){var f=this.contourShader;f.bind(),f.uniforms=s,this.contourVAO.bind(),e.drawArrays(e.LINES,0,this.contourCount),this.contourVAO.unbind()}},P.drawPick=function(t){t=t||{};for(var e=this.gl,r=t.model||D,n=t.view||D,i=t.projection||D,a=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],o=0;o<3;++o)a[0][o]=Math.max(a[0][o],this.clipBounds[0][o]),a[1][o]=Math.min(a[1][o],this.clipBounds[1][o]);this._model=[].slice.call(r),this._view=[].slice.call(n),this._projection=[].slice.call(i),this._resolution=[e.drawingBufferWidth,e.drawingBufferHeight];var s={model:r,view:n,projection:i,clipBounds:a,pickId:this.pickId/255},l=this.pickShader;if(l.bind(),l.uniforms=s,this.triangleCount>0&&(this.triangleVAO.bind(),e.drawArrays(e.TRIANGLES,0,3*this.triangleCount),this.triangleVAO.unbind()),this.edgeCount>0&&(this.edgeVAO.bind(),e.lineWidth(this.lineWidth),e.drawArrays(e.LINES,0,2*this.edgeCount),this.edgeVAO.unbind()),this.pointCount>0){var l=this.pointPickShader;l.bind(),l.uniforms=s,this.pointVAO.bind(),e.drawArrays(e.POINTS,0,this.pointCount),this.pointVAO.unbind()}},P.pick=function(t){if(!t)return null;if(t.id!==this.pickId)return null;for(var e=t.value[0]+256*t.value[1]+65536*t.value[2],r=this.cells[e],n=this.positions,i=new Array(r.length),a=0;a<r.length;++a)i[a]=n[r[a]];var o=T(i,[t.coord[0],this._resolution[1]-t.coord[1]],this._model,this._view,this._projection,this._resolution);if(!o)return null;for(var s=o[2],l=0,a=0;a<r.length;++a)l+=s[a]*this.intensity[r[a]];return{position:o[1],index:r[o[0]],cell:r,cellId:e,intensity:l,dataCoordinate:this.positions[r[o[0]]]}},P.dispose=function(){this.texture.dispose(),this.triShader.dispose(),this.lineShader.dispose(),this.pointShader.dispose(),this.pickShader.dispose(),this.pointPickShader.dispose(),this.triangleVAO.dispose(),this.trianglePositions.dispose(),this.triangleColors.dispose(),this.triangleUVs.dispose(),this.triangleNormals.dispose(),this.triangleIds.dispose(),this.edgeVAO.dispose(),this.edgePositions.dispose(),this.edgeColors.dispose(),this.edgeUVs.dispose(),this.edgeIds.dispose(),this.pointVAO.dispose(),this.pointPositions.dispose(),this.pointColors.dispose(),this.pointUVs.dispose(),this.pointSizes.dispose(),this.pointIds.dispose(),this.contourVAO.dispose(),this.contourPositions.dispose(),this.contourShader.dispose()},e.exports=d},{\"./lib/closest-point\":203,\"./lib/shaders\":204,colormap:99,\"gl-buffer\":156,\"gl-mat4/invert\":181,\"gl-mat4/multiply\":183,\"gl-shader\":255,\"gl-texture2d\":267,\"gl-vao\":271,ndarray:467,normals:469,\"simplicial-complex-contour\":517,\"typedarray-pool\":541}],206:[function(t,e,r){\"use strict\";function n(t,e,r){this.plot=t,this.vbo=e,this.shader=r}function i(t){var e=t.gl;return new n(t,a(e,[0,0,0,1,1,0,1,1]),o(e,s.boxVert,s.lineFrag))}e.exports=i;var a=t(\"gl-buffer\"),o=t(\"gl-shader\"),s=t(\"./shaders\"),l=n.prototype;l.bind=function(){var t=this.shader;this.vbo.bind(),this.shader.bind(),t.attributes.coord.pointer(),t.uniforms.screenBox=this.plot.screenBox},l.drawBox=function(){var t=[0,0],e=[0,0];return function(r,n,i,a,o){var s=this.plot,l=this.shader,u=s.gl;t[0]=r,t[1]=n,e[0]=i,e[1]=a,l.uniforms.lo=t,l.uniforms.hi=e,l.uniforms.color=o,u.drawArrays(u.TRIANGLE_STRIP,0,4)}}(),l.dispose=function(){this.vbo.dispose(),this.shader.dispose()}},{\"./shaders\":209,\"gl-buffer\":156,\"gl-shader\":212}],207:[function(t,e,r){\"use strict\";function n(t,e,r,n){this.plot=t,this.vbo=e,this.shader=r,this.tickShader=n,this.ticks=[[],[]]}function i(t,e){return t-e}function a(t){var e=t.gl;return new n(t,o(e),s(e,u.gridVert,u.gridFrag),s(e,u.tickVert,u.gridFrag))}e.exports=a;var o=t(\"gl-buffer\"),s=t(\"gl-shader\"),l=t(\"binary-search-bounds\"),u=t(\"./shaders\"),c=n.prototype;c.draw=function(){var t=[0,0],e=[0,0],r=[0,0];return function(){for(var n=this.plot,i=this.vbo,a=this.shader,o=this.ticks,s=n.gl,l=n._tickBounds,u=n.dataBox,c=n.viewBox,h=n.gridLineWidth,f=n.gridLineColor,d=n.gridLineEnable,p=n.pixelRatio,m=0;m<2;++m){var v=l[m],g=l[m+2],y=g-v,b=.5*(u[m+2]+u[m]),x=u[m+2]-u[m];e[m]=2*y/x,t[m]=2*(v-b)/x}a.bind(),i.bind(),a.attributes.dataCoord.pointer(),a.uniforms.dataShift=t,a.uniforms.dataScale=e;for(var _=0,m=0;m<2;++m){r[0]=r[1]=0,r[m]=1,a.uniforms.dataAxis=r,a.uniforms.lineWidth=h[m]/(c[m+2]-c[m])*p,a.uniforms.color=f[m];var w=6*o[m].length;d[m]&&w&&s.drawArrays(s.TRIANGLES,_,w),_+=w}}}(),c.drawTickMarks=function(){var t=[0,0],e=[0,0],r=[1,0],n=[0,1],a=[0,0],o=[0,0];return function(){for(var s=this.plot,u=this.vbo,c=this.tickShader,h=this.ticks,f=s.gl,d=s._tickBounds,p=s.dataBox,m=s.viewBox,v=s.pixelRatio,g=s.screenBox,y=g[2]-g[0],b=g[3]-g[1],x=m[2]-m[0],_=m[3]-m[1],w=0;w<2;++w){var M=d[w],k=d[w+2],A=k-M,T=.5*(p[w+2]+p[w]),S=p[w+2]-p[w];e[w]=2*A/S,t[w]=2*(M-T)/S}e[0]*=x/y,t[0]*=x/y,e[1]*=_/b,t[1]*=_/b,c.bind(),u.bind(),c.attributes.dataCoord.pointer();var E=c.uniforms;E.dataShift=t,E.dataScale=e;var L=s.tickMarkLength,C=s.tickMarkWidth,I=s.tickMarkColor,z=6*h[0].length,D=Math.min(l.ge(h[0],(p[0]-d[0])/(d[2]-d[0]),i),h[0].length),P=Math.min(l.gt(h[0],(p[2]-d[0])/(d[2]-d[0]),i),h[0].length),O=0+6*D,R=6*Math.max(0,P-D),F=Math.min(l.ge(h[1],(p[1]-d[1])/(d[3]-d[1]),i),h[1].length),j=Math.min(l.gt(h[1],(p[3]-d[1])/(d[3]-d[1]),i),h[1].length),N=z+6*F,B=6*Math.max(0,j-F);a[0]=2*(m[0]-L[1])/y-1,a[1]=(m[3]+m[1])/b-1,o[0]=L[1]*v/y,o[1]=C[1]*v/b,B&&(E.color=I[1],E.tickScale=o,E.dataAxis=n,E.screenOffset=a,f.drawArrays(f.TRIANGLES,N,B)),a[0]=(m[2]+m[0])/y-1,a[1]=2*(m[1]-L[0])/b-1,o[0]=C[0]*v/y,o[1]=L[0]*v/b,R&&(E.color=I[0],E.tickScale=o,E.dataAxis=r,E.screenOffset=a,f.drawArrays(f.TRIANGLES,O,R)),a[0]=2*(m[2]+L[3])/y-1,a[1]=(m[3]+m[1])/b-1,o[0]=L[3]*v/y,o[1]=C[3]*v/b,B&&(E.color=I[3],E.tickScale=o,E.dataAxis=n,E.screenOffset=a,f.drawArrays(f.TRIANGLES,N,B)),a[0]=(m[2]+m[0])/y-1,a[1]=2*(m[3]+L[2])/b-1,o[0]=C[2]*v/y,o[1]=L[2]*v/b,R&&(E.color=I[2],E.tickScale=o,E.dataAxis=r,E.screenOffset=a,f.drawArrays(f.TRIANGLES,O,R))}}(),c.update=function(){var t=[1,1,-1,-1,1,-1],e=[1,-1,1,1,-1,-1];return function(r){for(var n=r.ticks,i=r.bounds,a=new Float32Array(18*(n[0].length+n[1].length)),o=(this.plot.zeroLineEnable,0),s=[[],[]],l=0;l<2;++l)for(var u=s[l],c=n[l],h=i[l],f=i[l+2],d=0;d<c.length;++d){var p=(c[d].x-h)/(f-h);u.push(p);for(var m=0;m<6;++m)a[o++]=p,a[o++]=t[m],a[o++]=e[m]}this.ticks=s,this.vbo.update(a)}}(),c.dispose=function(){this.vbo.dispose(),this.shader.dispose(),this.tickShader.dispose()}},{\"./shaders\":209,\"binary-search-bounds\":211,\"gl-buffer\":156,\"gl-shader\":212}],208:[function(t,e,r){\"use strict\";function n(t,e,r){this.plot=t,this.vbo=e,this.shader=r}function i(t){var e=t.gl;return new n(t,a(e,[-1,-1,-1,1,1,-1,1,1]),o(e,s.lineVert,s.lineFrag))}e.exports=i;var a=t(\"gl-buffer\"),o=t(\"gl-shader\"),s=t(\"./shaders\"),l=n.prototype;l.bind=function(){var t=this.shader;this.vbo.bind(),this.shader.bind(),t.attributes.coord.pointer(),t.uniforms.screenBox=this.plot.screenBox},l.drawLine=function(){var t=[0,0],e=[0,0];return function(r,n,i,a,o,s){var l=this.plot,u=this.shader,c=l.gl;t[0]=r,t[1]=n,e[0]=i,e[1]=a,u.uniforms.start=t,u.uniforms.end=e,u.uniforms.width=o*l.pixelRatio,u.uniforms.color=s,c.drawArrays(c.TRIANGLE_STRIP,0,4)}}(),l.dispose=function(){this.vbo.dispose(),this.shader.dispose()}},{\"./shaders\":209,\"gl-buffer\":156,\"gl-shader\":212}],209:[function(t,e,r){\"use strict\";var n=\"precision lowp float;\\n#define GLSLIFY 1\\nuniform vec4 color;\\nvoid main() {\\n gl_FragColor = vec4(color.xyz * color.w, color.w);\\n}\\n\";e.exports={lineVert:\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute vec2 coord;\\n\\nuniform vec4 screenBox;\\nuniform vec2 start, end;\\nuniform float width;\\n\\nvec2 perp(vec2 v) {\\n return vec2(v.y, -v.x);\\n}\\n\\nvec2 screen(vec2 v) {\\n return 2.0 * (v - screenBox.xy) / (screenBox.zw - screenBox.xy) - 1.0;\\n}\\n\\nvoid main() {\\n vec2 delta = normalize(perp(start - end));\\n vec2 offset = mix(start, end, 0.5 * (coord.y+1.0));\\n gl_Position = vec4(screen(offset + 0.5 * width * delta * coord.x), 0, 1);\\n}\\n\",lineFrag:n,textVert:\"#define GLSLIFY 1\\nattribute vec3 textCoordinate;\\n\\nuniform vec2 dataScale, dataShift, dataAxis, screenOffset, textScale;\\nuniform float angle;\\n\\nvoid main() {\\n float dataOffset = textCoordinate.z;\\n vec2 glyphOffset = textCoordinate.xy;\\n mat2 glyphMatrix = mat2(cos(angle), sin(angle), -sin(angle), cos(angle));\\n vec2 screenCoordinate = dataAxis * (dataScale * dataOffset + dataShift) +\\n glyphMatrix * glyphOffset * textScale + screenOffset;\\n gl_Position = vec4(screenCoordinate, 0, 1);\\n}\\n\",textFrag:n,gridVert:\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute vec3 dataCoord;\\n\\nuniform vec2 dataAxis, dataShift, dataScale;\\nuniform float lineWidth;\\n\\nvoid main() {\\n vec2 pos = dataAxis * (dataScale * dataCoord.x + dataShift);\\n pos += 10.0 * dataCoord.y * vec2(dataAxis.y, -dataAxis.x) + dataCoord.z * lineWidth;\\n gl_Position = vec4(pos, 0, 1);\\n}\\n\",gridFrag:n,boxVert:\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute vec2 coord;\\n\\nuniform vec4 screenBox;\\nuniform vec2 lo, hi;\\n\\nvec2 screen(vec2 v) {\\n return 2.0 * (v - screenBox.xy) / (screenBox.zw - screenBox.xy) - 1.0;\\n}\\n\\nvoid main() {\\n gl_Position = vec4(screen(mix(lo, hi, coord)), 0, 1);\\n}\\n\",tickVert:\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute vec3 dataCoord;\\n\\nuniform vec2 dataAxis, dataShift, dataScale, screenOffset, tickScale;\\n\\nvoid main() {\\n vec2 pos = dataAxis * (dataScale * dataCoord.x + dataShift);\\n gl_Position = vec4(pos + tickScale*dataCoord.yz + screenOffset, 0, 1);\\n}\\n\"}},{}],210:[function(t,e,r){\"use strict\";function n(t,e,r){this.plot=t,this.vbo=e,this.shader=r,this.tickOffset=[[],[]],this.tickX=[[],[]],this.labelOffset=[0,0],this.labelCount=[0,0]}function i(t){var e=t.gl;return new n(t,a(e),o(e,u.textVert,u.textFrag))}e.exports=i;var a=t(\"gl-buffer\"),o=t(\"gl-shader\"),s=t(\"text-cache\"),l=t(\"binary-search-bounds\"),u=t(\"./shaders\"),c=n.prototype;c.drawTicks=function(){var t=[0,0],e=[0,0],r=[0,0];return function(n){var i=this.plot,a=this.shader,o=this.tickX[n],s=this.tickOffset[n],u=i.gl,c=i.viewBox,h=i.dataBox,f=i.screenBox,d=i.pixelRatio,p=i.tickEnable,m=i.tickPad,v=i.tickColor,g=i.tickAngle,y=i.labelEnable,b=i.labelPad,x=i.labelColor,_=i.labelAngle,w=this.labelOffset[n],M=this.labelCount[n],k=l.lt(o,h[n]),A=l.le(o,h[n+2]);t[0]=t[1]=0,t[n]=1,e[n]=(c[2+n]+c[n])/(f[2+n]-f[n])-1;var T=2/f[2+(1^n)]-f[1^n];e[1^n]=T*c[1^n]-1,p[n]&&(e[1^n]-=T*d*m[n],k<A&&s[A]>s[k]&&(a.uniforms.dataAxis=t,a.uniforms.screenOffset=e,a.uniforms.color=v[n],a.uniforms.angle=g[n],u.drawArrays(u.TRIANGLES,s[k],s[A]-s[k]))),y[n]&&M&&(e[1^n]-=T*d*b[n],a.uniforms.dataAxis=r,a.uniforms.screenOffset=e,a.uniforms.color=x[n],a.uniforms.angle=_[n],u.drawArrays(u.TRIANGLES,w,M)),e[1^n]=T*c[2+(1^n)]-1,p[n+2]&&(e[1^n]+=T*d*m[n+2],k<A&&s[A]>s[k]&&(a.uniforms.dataAxis=t,a.uniforms.screenOffset=e,a.uniforms.color=v[n+2],a.uniforms.angle=g[n+2],u.drawArrays(u.TRIANGLES,s[k],s[A]-s[k]))),y[n+2]&&M&&(e[1^n]+=T*d*b[n+2],a.uniforms.dataAxis=r,a.uniforms.screenOffset=e,a.uniforms.color=x[n+2],a.uniforms.angle=_[n+2],u.drawArrays(u.TRIANGLES,w,M))}}(),c.drawTitle=function(){var t=[0,0],e=[0,0];return function(){var r=this.plot,n=this.shader,i=r.gl,a=r.screenBox,o=r.titleCenter,s=r.titleAngle,l=r.titleColor,u=r.pixelRatio;if(this.titleCount){for(var c=0;c<2;++c)e[c]=2*(o[c]*u-a[c])/(a[2+c]-a[c])-1;n.bind(),n.uniforms.dataAxis=t,n.uniforms.screenOffset=e,n.uniforms.angle=s,n.uniforms.color=l,i.drawArrays(i.TRIANGLES,this.titleOffset,this.titleCount)}}}(),c.bind=function(){var t=[0,0],e=[0,0],r=[0,0];return function(){var n=this.plot,i=this.shader,a=n._tickBounds,o=n.dataBox,s=n.screenBox,l=n.viewBox;i.bind();for(var u=0;u<2;++u){var c=a[u],h=a[u+2],f=h-c,d=.5*(o[u+2]+o[u]),p=o[u+2]-o[u],m=l[u],v=l[u+2],g=v-m,y=s[u],b=s[u+2],x=b-y;e[u]=2*f/p*g/x,t[u]=2*(c-d)/p*g/x}r[1]=2*n.pixelRatio/(s[3]-s[1]),r[0]=r[1]*(s[3]-s[1])/(s[2]-s[0]),i.uniforms.dataScale=e,i.uniforms.dataShift=t,i.uniforms.textScale=r,this.vbo.bind(),i.attributes.textCoordinate.pointer()}}(),c.update=function(t){var e,r,n,i,a,o=[],l=t.ticks,u=t.bounds;for(a=0;a<2;++a){var c=[Math.floor(o.length/3)],h=[-1/0],f=l[a];for(e=0;e<f.length;++e){var d=f[e],p=d.x,m=d.text,v=d.font||\"sans-serif\";i=d.fontSize||12;for(var g=1/(u[a+2]-u[a]),y=u[a],b=m.split(\"\\n\"),x=0;x<b.length;x++)for(n=s(v,b[x]).data,r=0;r<n.length;r+=2)o.push(n[r]*i,-n[r+1]*i-x*i*1.2,(p-y)*g);c.push(Math.floor(o.length/3)),h.push(p)}this.tickOffset[a]=c,this.tickX[a]=h}for(a=0;a<2;++a){for(this.labelOffset[a]=Math.floor(o.length/3),n=s(t.labelFont[a],t.labels[a],{textAlign:\"center\"}).data,\n", "i=t.labelSize[a],e=0;e<n.length;e+=2)o.push(n[e]*i,-n[e+1]*i,0);this.labelCount[a]=Math.floor(o.length/3)-this.labelOffset[a]}for(this.titleOffset=Math.floor(o.length/3),n=s(t.titleFont,t.title).data,i=t.titleSize,e=0;e<n.length;e+=2)o.push(n[e]*i,-n[e+1]*i,0);this.titleCount=Math.floor(o.length/3)-this.titleOffset,this.vbo.update(o)},c.dispose=function(){this.vbo.dispose(),this.shader.dispose()}},{\"./shaders\":209,\"binary-search-bounds\":211,\"gl-buffer\":156,\"gl-shader\":212,\"text-cache\":532}],211:[function(t,e,r){arguments[4][84][0].apply(r,arguments)},{dup:84}],212:[function(t,e,r){\"use strict\";function n(t){this.gl=t,this.gl.lastAttribCount=0,this._vref=this._fref=this._relink=this.vertShader=this.fragShader=this.program=this.attributes=this.uniforms=this.types=null}function i(t,e){return t.name<e.name?-1:1}function a(t,e,r,i,a){var o=new n(t);return o.update(e,r,i,a),o}var o=t(\"./lib/create-uniforms\"),s=t(\"./lib/create-attributes\"),l=t(\"./lib/reflect\"),u=t(\"./lib/shader-cache\"),c=t(\"./lib/runtime-reflect\"),h=t(\"./lib/GLError\"),f=n.prototype;f.bind=function(){this.program||this._relink();var t,e=this.gl.getProgramParameter(this.program,this.gl.ACTIVE_ATTRIBUTES),r=this.gl.lastAttribCount;if(e>r)for(t=r;t<e;t++)this.gl.enableVertexAttribArray(t);else if(r>e)for(t=e;t<r;t++)this.gl.disableVertexAttribArray(t);this.gl.lastAttribCount=e,this.gl.useProgram(this.program)},f.dispose=function(){for(var t=this.gl.lastAttribCount,e=0;e<t;e++)this.gl.disableVertexAttribArray(e);this.gl.lastAttribCount=0,this._fref&&this._fref.dispose(),this._vref&&this._vref.dispose(),this.attributes=this.types=this.vertShader=this.fragShader=this.program=this._relink=this._fref=this._vref=null},f.update=function(t,e,r,n){function a(){d.program=u.program(p,d._vref,d._fref,_,w);for(var t=0;t<r.length;++t)E[t]=p.getUniformLocation(d.program,r[t].name)}if(!e||1===arguments.length){var f=t;t=f.vertex,e=f.fragment,r=f.uniforms,n=f.attributes}var d=this,p=d.gl,m=d._vref;d._vref=u.shader(p,p.VERTEX_SHADER,t),m&&m.dispose(),d.vertShader=d._vref.shader;var v=this._fref;if(d._fref=u.shader(p,p.FRAGMENT_SHADER,e),v&&v.dispose(),d.fragShader=d._fref.shader,!r||!n){var g=p.createProgram();if(p.attachShader(g,d.fragShader),p.attachShader(g,d.vertShader),p.linkProgram(g),!p.getProgramParameter(g,p.LINK_STATUS)){var y=p.getProgramInfoLog(g);throw new h(y,\"Error linking program:\"+y)}r=r||c.uniforms(p,g),n=n||c.attributes(p,g),p.deleteProgram(g)}n=n.slice(),n.sort(i);var b,x=[],_=[],w=[];for(b=0;b<n.length;++b){var M=n[b];if(M.type.indexOf(\"mat\")>=0){for(var k=0|M.type.charAt(M.type.length-1),A=new Array(k),T=0;T<k;++T)A[T]=w.length,_.push(M.name+\"[\"+T+\"]\"),\"number\"==typeof M.location?w.push(M.location+T):Array.isArray(M.location)&&M.location.length===k&&\"number\"==typeof M.location[T]?w.push(0|M.location[T]):w.push(-1);x.push({name:M.name,type:M.type,locations:A})}else x.push({name:M.name,type:M.type,locations:[w.length]}),_.push(M.name),\"number\"==typeof M.location?w.push(0|M.location):w.push(-1)}var S=0;for(b=0;b<w.length;++b)if(w[b]<0){for(;w.indexOf(S)>=0;)S+=1;w[b]=S}var E=new Array(r.length);a(),d._relink=a,d.types={uniforms:l(r),attributes:l(n)},d.attributes=s(p,d,x,w),Object.defineProperty(d,\"uniforms\",o(p,d,r,E))},e.exports=a},{\"./lib/GLError\":213,\"./lib/create-attributes\":214,\"./lib/create-uniforms\":215,\"./lib/reflect\":216,\"./lib/runtime-reflect\":217,\"./lib/shader-cache\":218}],213:[function(t,e,r){function n(t,e,r){this.shortMessage=e||\"\",this.longMessage=r||\"\",this.rawError=t||\"\",this.message=\"gl-shader: \"+(e||t||\"\")+(r?\"\\n\"+r:\"\"),this.stack=(new Error).stack}n.prototype=new Error,n.prototype.name=\"GLError\",n.prototype.constructor=n,e.exports=n},{}],214:[function(t,e,r){\"use strict\";function n(t,e,r,n,i,a){this._gl=t,this._wrapper=e,this._index=r,this._locations=n,this._dimension=i,this._constFunc=a}function i(t,e,r,i,a,o,s){for(var l=[\"gl\",\"v\"],u=[],c=0;c<a;++c)l.push(\"x\"+c),u.push(\"x\"+c);l.push(\"if(x0.length===void 0){return gl.vertexAttrib\"+a+\"f(v,\"+u.join()+\")}else{return gl.vertexAttrib\"+a+\"fv(v,x0)}\");var h=Function.apply(null,l),f=new n(t,e,r,i,a,h);Object.defineProperty(o,s,{set:function(e){return t.disableVertexAttribArray(i[r]),h(t,i[r],e),e},get:function(){return f},enumerable:!0})}function a(t,e,r,n,a,o,s){for(var l=new Array(a),u=new Array(a),c=0;c<a;++c)i(t,e,r[c],n,a,l,c),u[c]=l[c];Object.defineProperty(l,\"location\",{set:function(t){if(Array.isArray(t))for(var e=0;e<a;++e)u[e].location=t[e];else for(var e=0;e<a;++e)u[e].location=t+e;return t},get:function(){for(var t=new Array(a),e=0;e<a;++e)t[e]=n[r[e]];return t},enumerable:!0}),l.pointer=function(e,i,o,s){e=e||t.FLOAT,i=!!i,o=o||a*a,s=s||0;for(var l=0;l<a;++l){var u=n[r[l]];t.vertexAttribPointer(u,a,e,i,o,s+l*a),t.enableVertexAttribArray(u)}};var h=new Array(a),f=t[\"vertexAttrib\"+a+\"fv\"];Object.defineProperty(o,s,{set:function(e){for(var i=0;i<a;++i){var o=n[r[i]];if(t.disableVertexAttribArray(o),Array.isArray(e[0]))f.call(t,o,e[i]);else{for(var s=0;s<a;++s)h[s]=e[a*i+s];f.call(t,o,h)}}return e},get:function(){return l},enumerable:!0})}function o(t,e,r,n){for(var o={},l=0,u=r.length;l<u;++l){var c=r[l],h=c.name,f=c.type,d=c.locations;switch(f){case\"bool\":case\"int\":case\"float\":i(t,e,d[0],n,1,o,h);break;default:if(f.indexOf(\"vec\")>=0){var p=f.charCodeAt(f.length-1)-48;if(p<2||p>4)throw new s(\"\",\"Invalid data type for attribute \"+h+\": \"+f);i(t,e,d[0],n,p,o,h)}else{if(!(f.indexOf(\"mat\")>=0))throw new s(\"\",\"Unknown data type for attribute \"+h+\": \"+f);var p=f.charCodeAt(f.length-1)-48;if(p<2||p>4)throw new s(\"\",\"Invalid data type for attribute \"+h+\": \"+f);a(t,e,d,n,p,o,h)}}}return o}e.exports=o;var s=t(\"./GLError\"),l=n.prototype;l.pointer=function(t,e,r,n){var i=this,a=i._gl,o=i._locations[i._index];a.vertexAttribPointer(o,i._dimension,t||a.FLOAT,!!e,r||0,n||0),a.enableVertexAttribArray(o)},l.set=function(t,e,r,n){return this._constFunc(this._locations[this._index],t,e,r,n)},Object.defineProperty(l,\"location\",{get:function(){return this._locations[this._index]},set:function(t){return t!==this._locations[this._index]&&(this._locations[this._index]=0|t,this._wrapper.program=null),0|t}})},{\"./GLError\":213}],215:[function(t,e,r){\"use strict\";function n(t){return new Function(\"y\",\"return function(){return y}\")(t)}function i(t,e){for(var r=new Array(t),n=0;n<t;++n)r[n]=e;return r}function a(t,e,r,a){function l(r){return new Function(\"gl\",\"wrapper\",\"locations\",\"return function(){return gl.getUniform(wrapper.program,locations[\"+r+\"])}\")(t,e,a)}function u(t,e,r){switch(r){case\"bool\":case\"int\":case\"sampler2D\":case\"samplerCube\":return\"gl.uniform1i(locations[\"+e+\"],obj\"+t+\")\";case\"float\":return\"gl.uniform1f(locations[\"+e+\"],obj\"+t+\")\";default:var n=r.indexOf(\"vec\");if(!(0<=n&&n<=1&&r.length===4+n)){if(0===r.indexOf(\"mat\")&&4===r.length){var i=r.charCodeAt(r.length-1)-48;if(i<2||i>4)throw new s(\"\",\"Invalid uniform dimension type for matrix \"+name+\": \"+r);return\"gl.uniformMatrix\"+i+\"fv(locations[\"+e+\"],false,obj\"+t+\")\"}throw new s(\"\",\"Unknown uniform data type for \"+name+\": \"+r)}var i=r.charCodeAt(r.length-1)-48;if(i<2||i>4)throw new s(\"\",\"Invalid data type\");switch(r.charAt(0)){case\"b\":case\"i\":return\"gl.uniform\"+i+\"iv(locations[\"+e+\"],obj\"+t+\")\";case\"v\":return\"gl.uniform\"+i+\"fv(locations[\"+e+\"],obj\"+t+\")\";default:throw new s(\"\",\"Unrecognized data type for vector \"+name+\": \"+r)}}}function c(t,e){if(\"object\"!=typeof e)return[[t,e]];var r=[];for(var n in e){var i=e[n],a=t;parseInt(n)+\"\"===n?a+=\"[\"+n+\"]\":a+=\".\"+n,\"object\"==typeof i?r.push.apply(r,c(a,i)):r.push([a,i])}return r}function h(e){for(var n=[\"return function updateProperty(obj){\"],i=c(\"\",e),o=0;o<i.length;++o){var s=i[o],l=s[0],h=s[1];a[h]&&n.push(u(l,h,r[h].type))}return n.push(\"return obj}\"),new Function(\"gl\",\"locations\",n.join(\"\\n\"))(t,a)}function f(t){switch(t){case\"bool\":return!1;case\"int\":case\"sampler2D\":case\"samplerCube\":case\"float\":return 0;default:var e=t.indexOf(\"vec\");if(0<=e&&e<=1&&t.length===4+e){var r=t.charCodeAt(t.length-1)-48;if(r<2||r>4)throw new s(\"\",\"Invalid data type\");return\"b\"===t.charAt(0)?i(r,!1):i(r,0)}if(0===t.indexOf(\"mat\")&&4===t.length){var r=t.charCodeAt(t.length-1)-48;if(r<2||r>4)throw new s(\"\",\"Invalid uniform dimension type for matrix \"+name+\": \"+t);return i(r*r,0)}throw new s(\"\",\"Unknown uniform data type for \"+name+\": \"+t)}}function d(t,e,i){if(\"object\"==typeof i){var o=p(i);Object.defineProperty(t,e,{get:n(o),set:h(i),enumerable:!0,configurable:!1})}else a[i]?Object.defineProperty(t,e,{get:l(i),set:h(i),enumerable:!0,configurable:!1}):t[e]=f(r[i].type)}function p(t){var e;if(Array.isArray(t)){e=new Array(t.length);for(var r=0;r<t.length;++r)d(e,r,t[r])}else{e={};for(var n in t)d(e,n,t[n])}return e}var m=o(r,!0);return{get:n(p(m)),set:h(m),enumerable:!0,configurable:!0}}var o=t(\"./reflect\"),s=t(\"./GLError\");e.exports=a},{\"./GLError\":213,\"./reflect\":216}],216:[function(t,e,r){\"use strict\";function n(t,e){for(var r={},n=0;n<t.length;++n)for(var i=t[n].name,a=i.split(\".\"),o=r,s=0;s<a.length;++s){var l=a[s].split(\"[\");if(l.length>1){l[0]in o||(o[l[0]]=[]),o=o[l[0]];for(var u=1;u<l.length;++u){var c=parseInt(l[u]);u<l.length-1||s<a.length-1?(c in o||(u<l.length-1?o[c]=[]:o[c]={}),o=o[c]):o[c]=e?n:t[n].type}}else s<a.length-1?(l[0]in o||(o[l[0]]={}),o=o[l[0]]):o[l[0]]=e?n:t[n].type}return r}e.exports=n},{}],217:[function(t,e,r){\"use strict\";function n(t,e){if(!s){var r=Object.keys(o);s={};for(var n=0;n<r.length;++n){var i=r[n];s[t[i]]=o[i]}}return s[e]}function i(t,e){for(var r=t.getProgramParameter(e,t.ACTIVE_UNIFORMS),i=[],a=0;a<r;++a){var o=t.getActiveUniform(e,a);if(o){var s=n(t,o.type);if(o.size>1)for(var l=0;l<o.size;++l)i.push({name:o.name.replace(\"[0]\",\"[\"+l+\"]\"),type:s});else i.push({name:o.name,type:s})}}return i}function a(t,e){for(var r=t.getProgramParameter(e,t.ACTIVE_ATTRIBUTES),i=[],a=0;a<r;++a){var o=t.getActiveAttrib(e,a);o&&i.push({name:o.name,type:n(t,o.type)})}return i}r.uniforms=i,r.attributes=a;var o={FLOAT:\"float\",FLOAT_VEC2:\"vec2\",FLOAT_VEC3:\"vec3\",FLOAT_VEC4:\"vec4\",INT:\"int\",INT_VEC2:\"ivec2\",INT_VEC3:\"ivec3\",INT_VEC4:\"ivec4\",BOOL:\"bool\",BOOL_VEC2:\"bvec2\",BOOL_VEC3:\"bvec3\",BOOL_VEC4:\"bvec4\",FLOAT_MAT2:\"mat2\",FLOAT_MAT3:\"mat3\",FLOAT_MAT4:\"mat4\",SAMPLER_2D:\"sampler2D\",SAMPLER_CUBE:\"samplerCube\"},s=null},{}],218:[function(t,e,r){\"use strict\";function n(t,e,r,n,i,a,o){this.id=t,this.src=e,this.type=r,this.shader=n,this.count=a,this.programs=[],this.cache=o}function i(t){this.gl=t,this.shaders=[{},{}],this.programs={}}function a(t,e,r){var n=t.createShader(e);if(t.shaderSource(n,r),t.compileShader(n),!t.getShaderParameter(n,t.COMPILE_STATUS)){var i=t.getShaderInfoLog(n);try{var a=h(i,r,e)}catch(t){throw console.warn(\"Failed to format compiler error: \"+t),new c(i,\"Error compiling shader:\\n\"+i)}throw new c(i,a.short,a.long)}return n}function o(t,e,r,n,i){var a=t.createProgram();t.attachShader(a,e),t.attachShader(a,r);for(var o=0;o<n.length;++o)t.bindAttribLocation(a,i[o],n[o]);if(t.linkProgram(a),!t.getProgramParameter(a,t.LINK_STATUS)){var s=t.getProgramInfoLog(a);throw new c(s,\"Error linking program: \"+s)}return a}function s(t){var e=d.get(t);return e||(e=new i(t),d.set(t,e)),e}function l(t,e,r){return s(t).getShaderReference(e,r)}function u(t,e,r,n,i){return s(t).getProgram(e,r,n,i)}r.shader=l,r.program=u;var c=t(\"./GLError\"),h=t(\"gl-format-compiler-error\"),f=\"undefined\"==typeof WeakMap?t(\"weakmap-shim\"):WeakMap,d=new f,p=0;n.prototype.dispose=function(){if(0==--this.count){for(var t=this.cache,e=t.gl,r=this.programs,n=0,i=r.length;n<i;++n){var a=t.programs[r[n]];a&&(delete t.programs[n],e.deleteProgram(a))}e.deleteShader(this.shader),delete t.shaders[this.type===e.FRAGMENT_SHADER|0][this.src]}};var m=i.prototype;m.getShaderReference=function(t,e){var r=this.gl,i=this.shaders[t===r.FRAGMENT_SHADER|0],o=i[e];if(o&&r.isShader(o.shader))o.count+=1;else{var s=a(r,t,e);o=i[e]=new n(p++,e,t,s,[],1,this)}return o},m.getProgram=function(t,e,r,n){var i=[t.id,e.id,r.join(\":\"),n.join(\":\")].join(\"@\"),a=this.programs[i];return a&&this.gl.isProgram(a)||(this.programs[i]=a=o(this.gl,t.shader,e.shader,r,n),t.programs.push(i),e.programs.push(i)),a}},{\"./GLError\":213,\"gl-format-compiler-error\":165,\"weakmap-shim\":562}],219:[function(t,e,r){\"use strict\";function n(t,e){this.gl=t,this.pickBuffer=e,this.screenBox=[0,0,t.drawingBufferWidth,t.drawingBufferHeight],this.viewBox=[0,0,0,0],this.dataBox=[-10,-10,10,10],this.gridLineEnable=[!0,!0],this.gridLineWidth=[1,1],this.gridLineColor=[[0,0,0,1],[0,0,0,1]],this.pixelRatio=1,this.tickMarkLength=[0,0,0,0],this.tickMarkWidth=[0,0,0,0],this.tickMarkColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[15,15,15,15],this.tickAngle=[0,0,0,0],this.tickEnable=[!0,!0,!0,!0],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[15,15,15,15],this.labelAngle=[0,Math.PI/2,0,3*Math.PI/2],this.labelEnable=[!0,!0,!0,!0],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.titleCenter=[0,0],this.titleEnable=!0,this.titleAngle=0,this.titleColor=[0,0,0,1],this.borderColor=[0,0,0,0],this.backgroundColor=[0,0,0,0],this.zeroLineEnable=[!0,!0],this.zeroLineWidth=[4,4],this.zeroLineColor=[[0,0,0,1],[0,0,0,1]],this.borderLineEnable=[!0,!0,!0,!0],this.borderLineWidth=[2,2,2,2],this.borderLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.grid=null,this.text=null,this.line=null,this.box=null,this.objects=[],this.overlays=[],this._tickBounds=[1/0,1/0,-1/0,-1/0],this.static=!1,this.dirty=!1,this.pickDirty=!1,this.pickDelay=120,this.pickRadius=10,this._pickTimeout=null,this._drawPick=this.drawPick.bind(this),this._depthCounter=0}function i(t){for(var e=t.slice(),r=0;r<e.length;++r)e[r]=e[r].slice();return e}function a(t,e){return t.x-e.x}function o(t){var e=t.gl,r=s(e,[e.drawingBufferWidth,e.drawingBufferHeight]),i=new n(e,r);return i.grid=l(i),i.text=u(i),i.line=c(i),i.box=h(i),i.update(t),i}e.exports=o;var s=t(\"gl-select-static\"),l=t(\"./lib/grid\"),u=t(\"./lib/text\"),c=t(\"./lib/line\"),h=t(\"./lib/box\"),f=n.prototype;f.setDirty=function(){this.dirty=this.pickDirty=!0},f.setOverlayDirty=function(){this.dirty=!0},f.nextDepthValue=function(){return this._depthCounter++/65536},f.draw=function(){return function(){var t=this.gl,e=this.screenBox,r=this.viewBox,n=this.dataBox,i=this.pixelRatio,a=this.grid,o=this.line,s=this.text,l=this.objects;if(this._depthCounter=0,this.pickDirty&&(this._pickTimeout&&clearTimeout(this._pickTimeout),this.pickDirty=!1,this._pickTimeout=setTimeout(this._drawPick,this.pickDelay)),this.dirty){this.dirty=!1,t.bindFramebuffer(t.FRAMEBUFFER,null),t.enable(t.SCISSOR_TEST),t.disable(t.DEPTH_TEST),t.depthFunc(t.LESS),t.depthMask(!1),t.enable(t.BLEND),t.blendEquation(t.FUNC_ADD,t.FUNC_ADD),t.blendFunc(t.ONE,t.ONE_MINUS_SRC_ALPHA),t.scissor(e[0],e[1],e[2]-e[0],e[3]-e[1]);var u=this.borderColor;t.clearColor(u[0]*u[3],u[1]*u[3],u[2]*u[3],u[3]),t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT),t.scissor(r[0],r[1],r[2]-r[0],r[3]-r[1]),t.viewport(r[0],r[1],r[2]-r[0],r[3]-r[1]);var c=this.backgroundColor;t.clearColor(c[0]*c[3],c[1]*c[3],c[2]*c[3],c[3]),t.clear(t.COLOR_BUFFER_BIT),a.draw();var h=this.zeroLineEnable,f=this.zeroLineColor,d=this.zeroLineWidth;if(h[0]||h[1]){o.bind();for(var p=0;p<2;++p)if(h[p]&&n[p]<=0&&n[p+2]>=0){var m=e[p]-n[p]*(e[p+2]-e[p])/(n[p+2]-n[p]);0===p?o.drawLine(m,e[1],m,e[3],d[p],f[p]):o.drawLine(e[0],m,e[2],m,d[p],f[p])}}for(var p=0;p<l.length;++p)l[p].draw();t.viewport(e[0],e[1],e[2]-e[0],e[3]-e[1]),t.scissor(e[0],e[1],e[2]-e[0],e[3]-e[1]),this.grid.drawTickMarks(),o.bind();var v=this.borderLineEnable,g=this.borderLineWidth,y=this.borderLineColor;v[1]&&o.drawLine(r[0],r[1]-.5*g[1]*i,r[0],r[3]+.5*g[3]*i,g[1],y[1]),v[0]&&o.drawLine(r[0]-.5*g[0]*i,r[1],r[2]+.5*g[2]*i,r[1],g[0],y[0]),v[3]&&o.drawLine(r[2],r[1]-.5*g[1]*i,r[2],r[3]+.5*g[3]*i,g[3],y[3]),v[2]&&o.drawLine(r[0]-.5*g[0]*i,r[3],r[2]+.5*g[2]*i,r[3],g[2],y[2]),s.bind();for(var p=0;p<2;++p)s.drawTicks(p);this.titleEnable&&s.drawTitle();for(var b=this.overlays,p=0;p<b.length;++p)b[p].draw();t.disable(t.SCISSOR_TEST),t.disable(t.BLEND),t.depthMask(!0)}}}(),f.drawPick=function(){return function(){if(!this.static){var t=this.pickBuffer;this.gl;this._pickTimeout=null,t.begin();for(var e=1,r=this.objects,n=0;n<r.length;++n)e=r[n].drawPick(e);t.end()}}}(),f.pick=function(){return function(t,e){if(!this.static){var r=this.pixelRatio,n=this.pickPixelRatio,i=this.viewBox,a=0|Math.round((t-i[0]/r)*n),o=0|Math.round((e-i[1]/r)*n),s=this.pickBuffer.query(a,o,this.pickRadius);if(!s)return null;for(var l=s.id+(s.value[0]<<8)+(s.value[1]<<16)+(s.value[2]<<24),u=this.objects,c=0;c<u.length;++c){var h=u[c].pick(a,o,l);if(h)return h}return null}}}(),f.setScreenBox=function(t){var e=this.screenBox,r=this.pixelRatio;e[0]=0|Math.round(t[0]*r),e[1]=0|Math.round(t[1]*r),e[2]=0|Math.round(t[2]*r),e[3]=0|Math.round(t[3]*r),this.setDirty()},f.setDataBox=function(t){var e=this.dataBox;(e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3])&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],this.setDirty())},f.setViewBox=function(t){var e=this.pixelRatio,r=this.viewBox;r[0]=0|Math.round(t[0]*e),r[1]=0|Math.round(t[1]*e),r[2]=0|Math.round(t[2]*e),r[3]=0|Math.round(t[3]*e);var n=this.pickPixelRatio;this.pickBuffer.shape=[0|Math.round((t[2]-t[0])*n),0|Math.round((t[3]-t[1])*n)],this.setDirty()},f.update=function(t){t=t||{};var e=this.gl;this.pixelRatio=t.pixelRatio||1;var r=this.pixelRatio;this.pickPixelRatio=Math.max(r,1),this.setScreenBox(t.screenBox||[0,0,e.drawingBufferWidth/r,e.drawingBufferHeight/r]);this.screenBox;this.setViewBox(t.viewBox||[.125*(this.screenBox[2]-this.screenBox[0])/r,.125*(this.screenBox[3]-this.screenBox[1])/r,.875*(this.screenBox[2]-this.screenBox[0])/r,.875*(this.screenBox[3]-this.screenBox[1])/r]);var n=this.viewBox,o=(n[2]-n[0])/(n[3]-n[1]);this.setDataBox(t.dataBox||[-10,-10/o,10,10/o]),this.borderColor=(t.borderColor||[0,0,0,0]).slice(),this.backgroundColor=(t.backgroundColor||[0,0,0,0]).slice(),this.gridLineEnable=(t.gridLineEnable||[!0,!0]).slice(),this.gridLineWidth=(t.gridLineWidth||[1,1]).slice(),this.gridLineColor=i(t.gridLineColor||[[.5,.5,.5,1],[.5,.5,.5,1]]),this.zeroLineEnable=(t.zeroLineEnable||[!0,!0]).slice(),this.zeroLineWidth=(t.zeroLineWidth||[4,4]).slice(),this.zeroLineColor=i(t.zeroLineColor||[[0,0,0,1],[0,0,0,1]]),this.tickMarkLength=(t.tickMarkLength||[0,0,0,0]).slice(),this.tickMarkWidth=(t.tickMarkWidth||[0,0,0,0]).slice(),this.tickMarkColor=i(t.tickMarkColor||[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]]),this.titleCenter=(t.titleCenter||[.5*(n[0]+n[2])/r,(n[3]+120)/r]).slice(),this.titleEnable=!(\"titleEnable\"in t&&!t.titleEnable),this.titleAngle=t.titleAngle||0,this.titleColor=(t.titleColor||[0,0,0,1]).slice(),this.labelPad=(t.labelPad||[15,15,15,15]).slice(),this.labelAngle=(t.labelAngle||[0,Math.PI/2,0,3*Math.PI/2]).slice(),this.labelEnable=(t.labelEnable||[!0,!0,!0,!0]).slice(),this.labelColor=i(t.labelColor||[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]]),this.tickPad=(t.tickPad||[15,15,15,15]).slice(),this.tickAngle=(t.tickAngle||[0,0,0,0]).slice(),this.tickEnable=(t.tickEnable||[!0,!0,!0,!0]).slice(),this.tickColor=i(t.tickColor||[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]]),this.borderLineEnable=(t.borderLineEnable||[!0,!0,!0,!0]).slice(),this.borderLineWidth=(t.borderLineWidth||[2,2,2,2]).slice(),this.borderLineColor=i(t.borderLineColor||[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]]);var s=t.ticks||[[],[]],l=this._tickBounds;l[0]=l[1]=1/0,l[2]=l[3]=-1/0;for(var u=0;u<2;++u){var c=s[u].slice(0);0!==c.length&&(c.sort(a),l[u]=Math.min(l[u],c[0].x),l[u+2]=Math.max(l[u+2],c[c.length-1].x))}this.grid.update({bounds:l,ticks:s}),this.text.update({bounds:l,ticks:s,labels:t.labels||[\"x\",\"y\"],labelSize:t.labelSize||[12,12],labelFont:t.labelFont||[\"sans-serif\",\"sans-serif\"],title:t.title||\"\",titleSize:t.titleSize||18,titleFont:t.titleFont||\"sans-serif\"}),this.static=!!t.static,this.setDirty()},f.dispose=function(){this.box.dispose(),this.grid.dispose(),this.text.dispose(),this.line.dispose();for(var t=this.objects.length-1;t>=0;--t)this.objects[t].dispose();this.objects.length=0;for(var t=this.overlays.length-1;t>=0;--t)this.overlays[t].dispose();this.overlays.length=0,this.gl=null},f.addObject=function(t){this.objects.indexOf(t)<0&&(this.objects.push(t),this.setDirty())},f.removeObject=function(t){for(var e=this.objects,r=0;r<e.length;++r)if(e[r]===t){e.splice(r,1),this.setDirty();break}},f.addOverlay=function(t){this.overlays.indexOf(t)<0&&(this.overlays.push(t),this.setOverlayDirty())},f.removeOverlay=function(t){for(var e=this.overlays,r=0;r<e.length;++r)if(e[r]===t){e.splice(r,1),this.setOverlayDirty();break}}},{\"./lib/box\":206,\"./lib/grid\":207,\"./lib/line\":208,\"./lib/text\":210,\"gl-select-static\":254}],220:[function(t,e,r){var n=t(\"gl-shader\");e.exports=function(t){return n(t,\"precision mediump float;\\n#define GLSLIFY 1\\nattribute vec2 position;\\nvarying vec2 uv;\\nvoid main() {\\n uv = position;\\n gl_Position = vec4(position, 0, 1);\\n}\",\"precision mediump float;\\n#define GLSLIFY 1\\n\\nuniform sampler2D accumBuffer;\\nvarying vec2 uv;\\n\\nvoid main() {\\n vec4 accum = texture2D(accumBuffer, 0.5 * (uv + 1.0));\\n gl_FragColor = min(vec4(1,1,1,1), accum);\\n}\",null,[{name:\"position\",type:\"vec2\"}])}},{\"gl-shader\":255}],221:[function(t,e,r){\"use strict\";function n(){this.mouse=[-1,-1],this.screen=null,this.distance=1/0,this.index=null,this.dataCoordinate=null,this.dataPosition=null,this.object=null,this.data=null}function i(t,e){var r=null;try{r=t.getContext(\"webgl\",e),r||(r=t.getContext(\"experimental-webgl\",e))}catch(t){return null}return r}function a(t){var e=Math.round(Math.log(Math.abs(t))/Math.log(10));if(e<0){var r=Math.round(Math.pow(10,-e));return Math.ceil(t*r)/r}if(e>0){var r=Math.round(Math.pow(10,e));return Math.ceil(t/r)*r}return Math.ceil(t)}function o(t){return\"boolean\"!=typeof t||t}function s(t){function e(){if(!w&&G.autoResize){var t=M.parentNode,e=1,r=1;t&&t!==document.body?(e=t.clientWidth,r=t.clientHeight):(e=window.innerWidth,r=window.innerHeight);var n=0|Math.ceil(e*G.pixelRatio),i=0|Math.ceil(r*G.pixelRatio);if(n!==M.width||i!==M.height){M.width=n,M.height=i;var a=M.style;a.position=a.position||\"absolute\",a.left=\"0px\",a.top=\"0px\",a.width=e+\"px\",a.height=r+\"px\",N=!0}}}function r(){for(var t=O.length,e=j.length,r=0;r<e;++r)F[r]=0;t:for(var r=0;r<t;++r){var n=O[r],i=n.pickSlots;if(i){for(var a=0;a<e;++a)if(F[a]+i<255){R[r]=a,n.setPickBase(F[a]+1),F[a]+=i;continue t}var o=f(A,q);R[r]=e,j.push(o),F.push(i),n.setPickBase(1),e+=1}else R[r]=-1}for(;e>0&&0===F[e-1];)F.pop(),j.pop().dispose()}function s(){if(G.contextLost)return!0;A.isContextLost()&&(G.contextLost=!0,G.mouseListener.enabled=!1,G.selection.object=null,G.oncontextloss&&G.oncontextloss())}function b(){if(!s()){A.colorMask(!0,!0,!0,!0),A.depthMask(!0),A.disable(A.BLEND),A.enable(A.DEPTH_TEST);for(var t=O.length,e=j.length,r=0;r<e;++r){var n=j[r];n.shape=Y,n.begin();for(var i=0;i<t;++i)if(R[i]===r){var a=O[i];a.drawPick&&(a.pixelRatio=1,a.drawPick(H))}n.end()}}}function x(){if(!s()){e();var t=G.camera.tick();H.view=G.camera.matrix,N=N||t,B=B||t,z.pixelRatio=G.pixelRatio,P.pixelRatio=G.pixelRatio;var r=O.length,n=Z[0],i=Z[1];n[0]=n[1]=n[2]=1/0,i[0]=i[1]=i[2]=-1/0;for(var o=0;o<r;++o){var l=O[o];l.pixelRatio=G.pixelRatio,l.axes=G.axes,N=N||!!l.dirty,B=B||!!l.dirty;var u=l.bounds;if(u)for(var h=u[0],f=u[1],d=0;d<3;++d)n[d]=Math.min(n[d],h[d]),i[d]=Math.max(i[d],f[d])}var m=G.bounds;if(G.autoBounds)for(var d=0;d<3;++d){if(i[d]<n[d])n[d]=-1,i[d]=1;else{n[d]===i[d]&&(n[d]-=1,i[d]+=1);var g=.05*(i[d]-n[d]);n[d]=n[d]-g,i[d]=i[d]+g}m[0][d]=n[d],m[1][d]=i[d]}for(var y=!1,d=0;d<3;++d)y=y||J[0][d]!==m[0][d]||J[1][d]!==m[1][d],J[0][d]=m[0][d],J[1][d]=m[1][d];if(B=B||y,N=N||y){if(y){for(var x=[0,0,0],o=0;o<3;++o)x[o]=a((m[1][o]-m[0][o])/10);z.autoTicks?z.update({bounds:m,tickSpacing:x}):z.update({bounds:m})}var _=A.drawingBufferWidth,w=A.drawingBufferHeight;q[0]=_,q[1]=w,Y[0]=0|Math.max(_/G.pixelRatio,1),Y[1]=0|Math.max(w/G.pixelRatio,1),v(U,G.fovy,_/w,G.zNear,G.zFar);for(var o=0;o<16;++o)V[o]=0;V[15]=1;for(var M=0,o=0;o<3;++o)M=Math.max(M,m[1][o]-m[0][o]);for(var o=0;o<3;++o)G.autoScale?V[5*o]=G.aspect[o]/(m[1][o]-m[0][o]):V[5*o]=1/M,G.autoCenter&&(V[12+o]=.5*-V[5*o]*(m[0][o]+m[1][o]));for(var o=0;o<r;++o){var l=O[o];l.axesBounds=m,G.clipToBounds&&(l.clipBounds=m)}S.object&&(G.snapToData?P.position=S.dataCoordinate:P.position=S.dataPosition,P.bounds=m),B&&(B=!1,b()),G.axesPixels=c(G.axes,H,_,w),G.onrender&&G.onrender(),A.bindFramebuffer(A.FRAMEBUFFER,null),A.viewport(0,0,_,w);var k=G.clearColor;A.clearColor(k[0],k[1],k[2],k[3]),A.clear(A.COLOR_BUFFER_BIT|A.DEPTH_BUFFER_BIT),A.depthMask(!0),A.colorMask(!0,!0,!0,!0),A.enable(A.DEPTH_TEST),A.depthFunc(A.LEQUAL),A.disable(A.BLEND),A.disable(A.CULL_FACE);var T=!1;z.enable&&(T=T||z.isTransparent(),z.draw(H)),P.axes=z,S.object&&P.draw(H),A.disable(A.CULL_FACE);for(var o=0;o<r;++o){var l=O[o];l.axes=z,l.pixelRatio=G.pixelRatio,l.isOpaque&&l.isOpaque()&&l.draw(H),l.isTransparent&&l.isTransparent()&&(T=!0)}if(T){E.shape=q,E.bind(),A.clear(A.DEPTH_BUFFER_BIT),A.colorMask(!1,!1,!1,!1),A.depthMask(!0),A.depthFunc(A.LESS),z.enable&&z.isTransparent()&&z.drawTransparent(H);for(var o=0;o<r;++o){var l=O[o];l.isOpaque&&l.isOpaque()&&l.draw(H)}A.enable(A.BLEND),A.blendEquation(A.FUNC_ADD),A.blendFunc(A.ONE,A.ONE_MINUS_SRC_ALPHA),A.colorMask(!0,!0,!0,!0),A.depthMask(!1),A.clearColor(0,0,0,0),A.clear(A.COLOR_BUFFER_BIT),z.isTransparent()&&z.drawTransparent(H);for(var o=0;o<r;++o){var l=O[o];l.isTransparent&&l.isTransparent()&&l.drawTransparent(H)}A.bindFramebuffer(A.FRAMEBUFFER,null),A.blendFunc(A.ONE,A.ONE_MINUS_SRC_ALPHA),A.disable(A.DEPTH_TEST),L.bind(),E.color[0].bind(0),L.uniforms.accumBuffer=0,p(A),A.disable(A.BLEND)}N=!1;for(var o=0;o<r;++o)O[o].dirty=!1}}}function _(){w||G.contextLost||(requestAnimationFrame(_),x())}t=t||{};var w=!1,M=(t.pixelRatio||parseFloat(window.devicePixelRatio),t.canvas);if(!M)if(M=document.createElement(\"canvas\"),t.container){var k=t.container;k.appendChild(M)}else document.body.appendChild(M);var A=t.gl;if(A||(A=i(M,t.glOptions||{premultipliedAlpha:!0,antialias:!0})),!A)throw new Error(\"webgl not supported\");var T=t.bounds||[[-10,-10,-10],[10,10,10]],S=new n,E=d(A,[A.drawingBufferWidth,A.drawingBufferHeight],{preferFloat:!y}),L=g(A),C=t.camera||{eye:[2,0,0],center:[0,0,0],up:[0,1,0],zoomMin:.1,zoomMax:100,mode:\"turntable\"},I=t.axes||{},z=u(A,I);z.enable=!I.disable;var D=t.spikes||{},P=h(A,D),O=[],R=[],F=[],j=[],N=!0,B=!0,U=new Array(16),V=new Array(16),H={view:null,projection:U,model:V},B=!0,q=[A.drawingBufferWidth,A.drawingBufferHeight],G={gl:A,contextLost:!1,pixelRatio:t.pixelRatio||parseFloat(window.devicePixelRatio),canvas:M,selection:S,camera:l(M,C),axes:z,axesPixels:null,spikes:P,bounds:T,objects:O,shape:q,aspect:t.aspectRatio||[1,1,1],pickRadius:t.pickRadius||10,zNear:t.zNear||.01,zFar:t.zFar||1e3,fovy:t.fovy||Math.PI/4,clearColor:t.clearColor||[0,0,0,0],autoResize:o(t.autoResize),autoBounds:o(t.autoBounds),autoScale:!!t.autoScale,autoCenter:o(t.autoCenter),clipToBounds:o(t.clipToBounds),snapToData:!!t.snapToData,onselect:t.onselect||null,onrender:t.onrender||null,onclick:t.onclick||null,cameraParams:H,oncontextloss:null,mouseListener:null},Y=[A.drawingBufferWidth/G.pixelRatio|0,A.drawingBufferHeight/G.pixelRatio|0];G.autoResize&&e(),window.addEventListener(\"resize\",e),G.update=function(t){w||(t=t||{},N=!0,B=!0)},G.add=function(t){w||(t.axes=z,O.push(t),R.push(-1),N=!0,B=!0,r())},G.remove=function(t){if(!w){var e=O.indexOf(t);e<0||(O.splice(e,1),R.pop(),N=!0,B=!0,r())}},G.dispose=function(){if(!w&&(w=!0,window.removeEventListener(\"resize\",e),M.removeEventListener(\"webglcontextlost\",s),G.mouseListener.enabled=!1,!G.contextLost)){z.dispose(),P.dispose();for(var t=0;t<O.length;++t)O[t].dispose();E.dispose();for(var t=0;t<j.length;++t)j[t].dispose();L.dispose(),A=null,z=null,P=null,O=[]}};var W=!1,X=0;G.mouseListener=m(M,function(t,e,r){if(!w){var n=j.length,i=O.length,a=S.object;S.distance=1/0,S.mouse[0]=e,S.mouse[1]=r,S.object=null,S.screen=null,S.dataCoordinate=S.dataPosition=null;var o=!1;if(t&&X)W=!0;else{W&&(B=!0),W=!1;for(var s=0;s<n;++s){var l=j[s].query(e,Y[1]-r-1,G.pickRadius);if(l){if(l.distance>S.distance)continue;for(var u=0;u<i;++u){var c=O[u];if(R[u]===s){var h=c.pick(l);h&&(S.buttons=t,S.screen=l.coord,S.distance=l.distance,S.object=c,S.index=h.distance,S.dataPosition=h.position,S.dataCoordinate=h.dataCoordinate,S.data=h,o=!0)}}}}}a&&a!==S.object&&(a.highlight&&a.highlight(null),N=!0),S.object&&(S.object.highlight&&S.object.highlight(S.data),N=!0),o=o||S.object!==a,o&&G.onselect&&G.onselect(S),1&t&&!(1&X)&&G.onclick&&G.onclick(S),X=t}}),M.addEventListener(\"webglcontextlost\",s);var Z=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],J=[Z[0].slice(),Z[1].slice()];return _(),G.redraw=function(){w||(N=!0,x())},G}e.exports=s;var l=t(\"3d-view-controls\"),u=t(\"gl-axes3d\"),c=t(\"gl-axes3d/properties\"),h=t(\"gl-spikes3d\"),f=t(\"gl-select-static\"),d=t(\"gl-fbo\"),p=t(\"a-big-triangle\"),m=t(\"mouse-change\"),v=t(\"gl-mat4/perspective\"),g=t(\"./lib/shader\"),y=t(\"is-mobile\")()},{\"./lib/shader\":220,\"3d-view-controls\":36,\"a-big-triangle\":39,\"gl-axes3d\":148,\"gl-axes3d/properties\":155,\"gl-fbo\":164,\"gl-mat4/perspective\":184,\"gl-select-static\":254,\"gl-spikes3d\":264,\"is-mobile\":296,\"mouse-change\":452}],222:[function(t,e,r){r.pointVertex=\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute vec2 position;\\n\\nuniform mat3 matrix;\\nuniform float pointSize;\\nuniform float pointCloud;\\n\\nhighp float rand(vec2 co) {\\n highp float a = 12.9898;\\n highp float b = 78.233;\\n highp float c = 43758.5453;\\n highp float d = dot(co.xy, vec2(a, b));\\n highp float e = mod(d, 3.14);\\n return fract(sin(e) * c);\\n}\\n\\nvoid main() {\\n vec3 hgPosition = matrix * vec3(position, 1);\\n gl_Position = vec4(hgPosition.xy, 0, hgPosition.z);\\n // if we don't jitter the point size a bit, overall point cloud\\n // saturation 'jumps' on zooming, which is disturbing and confusing\\n gl_PointSize = pointSize * ((19.5 + rand(position)) / 20.0);\\n if(pointCloud != 0.0) { // pointCloud is truthy\\n // get the same square surface as circle would be\\n gl_PointSize *= 0.886;\\n }\\n}\",r.pointFragment=\"precision mediump float;\\n#define GLSLIFY 1\\n\\nuniform vec4 color, borderColor;\\nuniform float centerFraction;\\nuniform float pointCloud;\\n\\nvoid main() {\\n float radius;\\n vec4 baseColor;\\n if(pointCloud != 0.0) { // pointCloud is truthy\\n if(centerFraction == 1.0) {\\n gl_FragColor = color;\\n } else {\\n gl_FragColor = mix(borderColor, color, centerFraction);\\n }\\n } else {\\n radius = length(2.0 * gl_PointCoord.xy - 1.0);\\n if(radius > 1.0) {\\n discard;\\n }\\n baseColor = mix(borderColor, color, step(radius, centerFraction));\\n gl_FragColor = vec4(baseColor.rgb * baseColor.a, baseColor.a);\\n }\\n}\\n\",r.pickVertex=\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute vec2 position;\\nattribute vec4 pickId;\\n\\nuniform mat3 matrix;\\nuniform float pointSize;\\nuniform vec4 pickOffset;\\n\\nvarying vec4 fragId;\\n\\nvoid main() {\\n vec3 hgPosition = matrix * vec3(position, 1);\\n gl_Position = vec4(hgPosition.xy, 0, hgPosition.z);\\n gl_PointSize = pointSize;\\n\\n vec4 id = pickId + pickOffset;\\n id.y += floor(id.x / 256.0);\\n id.x -= floor(id.x / 256.0) * 256.0;\\n\\n id.z += floor(id.y / 256.0);\\n id.y -= floor(id.y / 256.0) * 256.0;\\n\\n id.w += floor(id.z / 256.0);\\n id.z -= floor(id.z / 256.0) * 256.0;\\n\\n fragId = id;\\n}\\n\",r.pickFragment=\"precision mediump float;\\n#define GLSLIFY 1\\n\\nvarying vec4 fragId;\\n\\nvoid main() {\\n float radius = length(2.0 * gl_PointCoord.xy - 1.0);\\n if(radius > 1.0) {\\n discard;\\n }\\n gl_FragColor = fragId / 255.0;\\n}\\n\"},{}],223:[function(t,e,r){arguments[4][212][0].apply(r,arguments)},{\"./lib/GLError\":224,\"./lib/create-attributes\":225,\"./lib/create-uniforms\":226,\"./lib/reflect\":227,\"./lib/runtime-reflect\":228,\"./lib/shader-cache\":229,dup:212}],224:[function(t,e,r){arguments[4][213][0].apply(r,arguments)},{dup:213}],225:[function(t,e,r){arguments[4][214][0].apply(r,arguments)},{\n", "\"./GLError\":224,dup:214}],226:[function(t,e,r){arguments[4][215][0].apply(r,arguments)},{\"./GLError\":224,\"./reflect\":227,dup:215}],227:[function(t,e,r){arguments[4][216][0].apply(r,arguments)},{dup:216}],228:[function(t,e,r){arguments[4][217][0].apply(r,arguments)},{dup:217}],229:[function(t,e,r){arguments[4][218][0].apply(r,arguments)},{\"./GLError\":224,dup:218,\"gl-format-compiler-error\":165,\"weakmap-shim\":562}],230:[function(t,e,r){\"use strict\";function n(t,e,r,n,i){this.plot=t,this.offsetBuffer=e,this.pickBuffer=r,this.shader=n,this.pickShader=i,this.sizeMin=.5,this.sizeMinCap=2,this.sizeMax=20,this.areaRatio=1,this.pointCount=0,this.color=[1,0,0,1],this.borderColor=[0,0,0,1],this.blend=!1,this.pickOffset=0,this.points=null}function i(t,e){var r,n=0,i=t.length>>>1;for(r=0;r<i;r++){var a=t[2*r],o=t[2*r+1];a>=e[0]&&a<=e[2]&&o>=e[1]&&o<=e[3]&&n++}return n}function a(t,e){var r=t.gl,i=s(r),a=s(r),l=o(r,u.pointVertex,u.pointFragment),c=o(r,u.pickVertex,u.pickFragment),h=new n(t,i,a,l,c);return h.update(e),t.addObject(h),h}var o=t(\"gl-shader\"),s=t(\"gl-buffer\"),l=t(\"typedarray-pool\"),u=t(\"./lib/shader\");e.exports=a;var c=n.prototype;c.dispose=function(){this.shader.dispose(),this.pickShader.dispose(),this.offsetBuffer.dispose(),this.pickBuffer.dispose(),this.plot.removeObject(this)},c.update=function(t){function e(e,r){return e in t?t[e]:r}var r;t=t||{},this.sizeMin=e(\"sizeMin\",.5),this.sizeMax=e(\"sizeMax\",20),this.color=e(\"color\",[1,0,0,1]).slice(),this.areaRatio=e(\"areaRatio\",1),this.borderColor=e(\"borderColor\",[0,0,0,1]).slice(),this.blend=e(\"blend\",!1);var n=t.positions.length>>>1,i=t.positions instanceof Float32Array,a=t.idToIndex instanceof Int32Array&&t.idToIndex.length>=n,o=t.positions,s=i?o:l.mallocFloat32(o.length),u=a?t.idToIndex:l.mallocInt32(n);if(i||s.set(o),!a)for(s.set(o),r=0;r<n;r++)u[r]=r;this.points=o,this.offsetBuffer.update(s),this.pickBuffer.update(u),i||l.free(s),a||l.free(u),this.pointCount=n,this.pickOffset=0},c.unifiedDraw=function(){var t=[1,0,0,0,1,0,0,0,1],e=[0,0,0,0];return function(r){var n=void 0!==r,a=n?this.pickShader:this.shader,o=this.plot.gl,s=this.plot.dataBox;if(0===this.pointCount)return r;var l=s[2]-s[0],u=s[3]-s[1],c=i(this.points,s),h=this.plot.pickPixelRatio*Math.max(Math.min(this.sizeMinCap,this.sizeMin),Math.min(this.sizeMax,this.sizeMax/Math.pow(c,.33333)));t[0]=2/l,t[4]=2/u,t[6]=-2*s[0]/l-1,t[7]=-2*s[1]/u-1,this.offsetBuffer.bind(),a.bind(),a.attributes.position.pointer(),a.uniforms.matrix=t,a.uniforms.color=this.color,a.uniforms.borderColor=this.borderColor,a.uniforms.pointCloud=h<5,a.uniforms.pointSize=h,a.uniforms.centerFraction=Math.min(1,Math.max(0,Math.sqrt(1-this.areaRatio))),n&&(e[0]=255&r,e[1]=r>>8&255,e[2]=r>>16&255,e[3]=r>>24&255,this.pickBuffer.bind(),a.attributes.pickId.pointer(o.UNSIGNED_BYTE),a.uniforms.pickOffset=e,this.pickOffset=r);var f=o.getParameter(o.BLEND),d=o.getParameter(o.DITHER);return f&&!this.blend&&o.disable(o.BLEND),d&&o.disable(o.DITHER),o.drawArrays(o.POINTS,0,this.pointCount),f&&!this.blend&&o.enable(o.BLEND),d&&o.enable(o.DITHER),r+this.pointCount}}(),c.draw=c.unifiedDraw,c.drawPick=c.unifiedDraw,c.pick=function(t,e,r){var n=this.pickOffset,i=this.pointCount;if(r<n||r>=n+i)return null;var a=r-n,o=this.points;return{object:this,pointId:a,dataCoord:[o[2*a],o[2*a+1]]}}},{\"./lib/shader\":222,\"gl-buffer\":156,\"gl-shader\":223,\"typedarray-pool\":541}],231:[function(t,e,r){function n(t,e,r,n){var i,a,o,s,l,u=e[0],c=e[1],h=e[2],f=e[3],d=r[0],p=r[1],m=r[2],v=r[3];return a=u*d+c*p+h*m+f*v,a<0&&(a=-a,d=-d,p=-p,m=-m,v=-v),1-a>1e-6?(i=Math.acos(a),o=Math.sin(i),s=Math.sin((1-n)*i)/o,l=Math.sin(n*i)/o):(s=1-n,l=n),t[0]=s*u+l*d,t[1]=s*c+l*p,t[2]=s*h+l*m,t[3]=s*f+l*v,t}e.exports=n},{}],232:[function(t,e,r){\"use strict\";e.exports={vertex:\"precision highp float;\\n#define GLSLIFY 1\\n\\n\\nvec4 computePosition_1_0(vec2 posHi, vec2 posLo, vec2 scHi, vec2 scLo, vec2 trHi, vec2 trLo) {\\n return vec4((posHi + trHi) * scHi\\n \\t\\t\\t//FIXME: this thingy does not give noticeable precision gain, need test\\n + (posLo + trLo) * scHi\\n + (posHi + trHi) * scLo\\n + (posLo + trLo) * scLo\\n , 0, 1);\\n}\\n\\n\\nattribute vec2 positionHi, positionLo;\\nattribute float size, border;\\nattribute vec2 char, color;\\n\\n//this is 64-bit form of scale and translate\\nuniform vec2 scaleHi, scaleLo, translateHi, translateLo;\\nuniform float pixelRatio;\\nuniform vec4 viewBox;\\nuniform sampler2D palette;\\n\\nvarying vec4 charColor, borderColor;\\nvarying vec2 charId;\\nvarying vec2 pointCoord;\\nvarying float pointSize;\\nvarying float borderWidth;\\n\\n\\nvoid main() {\\n charColor = texture2D(palette, vec2(color.x / 255., 0));\\n borderColor = texture2D(palette, vec2(color.y / 255., 0));\\n\\n gl_PointSize = size * pixelRatio;\\n pointSize = size * pixelRatio;\\n\\n charId = char;\\n borderWidth = border;\\n\\n gl_Position = computePosition_1_0(\\n positionHi, positionLo,\\n scaleHi, scaleLo,\\n translateHi, translateLo);\\n\\n pointCoord = viewBox.xy + (viewBox.zw - viewBox.xy) * (gl_Position.xy * .5 + .5);\\n}\\n\",fragment:\"precision highp float;\\n#define GLSLIFY 1\\n\\nuniform sampler2D chars;\\nuniform vec2 charsShape;\\nuniform float charsStep, pixelRatio, charOffset;\\n\\nvarying vec4 borderColor;\\nvarying vec4 charColor;\\nvarying vec2 charId;\\nvarying vec2 pointCoord;\\nvarying float pointSize;\\nvarying float borderWidth;\\n\\nvoid main() {\\n\\tvec2 pointUV = (pointCoord - gl_FragCoord.xy + pointSize * .5) / pointSize;\\n\\tpointUV.x = 1. - pointUV.x;\\n\\tvec2 texCoord = ((charId + pointUV) * charsStep) / charsShape;\\n\\tfloat dist = texture2D(chars, texCoord).r;\\n\\n\\t//max-distance alpha\\n\\tif (dist < 1e-2)\\n\\t\\tdiscard;\\n\\n\\tfloat gamma = .0045 * charsStep / pointSize;\\n\\n //null-border case\\n \\tif (borderWidth * borderColor.a == 0.) {\\n\\t\\tfloat charAmt = smoothstep(.748 - gamma, .748 + gamma, dist);\\n\\t\\tgl_FragColor = vec4(charColor.rgb, charAmt*charColor.a);\\n\\t\\treturn;\\n\\t}\\n\\n\\tfloat dif = 5. * pixelRatio * borderWidth / pointSize;\\n\\tfloat borderLevel = .748 - dif * .5;\\n\\tfloat charLevel = .748 + dif * .5;\\n\\n\\tfloat borderAmt = smoothstep(borderLevel - gamma, borderLevel + gamma, dist);\\n\\tfloat charAmt = smoothstep(charLevel - gamma, charLevel + gamma, dist);\\n\\n\\tvec4 color = borderColor;\\n\\tcolor.a *= borderAmt;\\n\\n\\tgl_FragColor = mix(color, charColor, charAmt);\\n}\\n\",pickVertex:\"precision highp float;\\n#define GLSLIFY 1\\n\\nattribute vec2 positionHi, positionLo;\\nattribute vec4 id;\\nattribute float size;\\n\\nuniform vec2 scaleHi, scaleLo, translateHi, translateLo;\\nuniform vec4 pickOffset;\\nuniform float pixelRatio;\\n\\nvarying vec4 fragColor;\\n\\n\\nvec4 computePosition_1_0(vec2 posHi, vec2 posLo, vec2 scHi, vec2 scLo, vec2 trHi, vec2 trLo) {\\n return vec4((posHi + trHi) * scHi\\n \\t\\t\\t//FIXME: this thingy does not give noticeable precision gain, need test\\n + (posLo + trLo) * scHi\\n + (posHi + trHi) * scLo\\n + (posLo + trLo) * scLo\\n , 0, 1);\\n}\\n\\n\\nvoid main() {\\n vec4 fragId = id + pickOffset;\\n\\n fragId.y += floor(fragId.x / 256.0);\\n fragId.x -= floor(fragId.x / 256.0) * 256.0;\\n\\n fragId.z += floor(fragId.y / 256.0);\\n fragId.y -= floor(fragId.y / 256.0) * 256.0;\\n\\n fragId.w += floor(fragId.z / 256.0);\\n fragId.z -= floor(fragId.z / 256.0) * 256.0;\\n\\n fragColor = fragId / 255.0;\\n\\n gl_PointSize = size * .25 * pixelRatio;\\n\\n gl_Position = computePosition_1_0(\\n positionHi, positionLo,\\n scaleHi, scaleLo,\\n translateHi, translateLo);\\n}\\n\",pickFragment:\"precision lowp float;\\n#define GLSLIFY 1\\nvarying vec4 fragColor;\\nvoid main() {\\n gl_FragColor = fragColor;\\n}\\n\"}},{}],233:[function(t,e,r){arguments[4][84][0].apply(r,arguments)},{dup:84}],234:[function(t,e,r){arguments[4][212][0].apply(r,arguments)},{\"./lib/GLError\":235,\"./lib/create-attributes\":236,\"./lib/create-uniforms\":237,\"./lib/reflect\":238,\"./lib/runtime-reflect\":239,\"./lib/shader-cache\":240,dup:212}],235:[function(t,e,r){arguments[4][213][0].apply(r,arguments)},{dup:213}],236:[function(t,e,r){arguments[4][214][0].apply(r,arguments)},{\"./GLError\":235,dup:214}],237:[function(t,e,r){arguments[4][215][0].apply(r,arguments)},{\"./GLError\":235,\"./reflect\":238,dup:215}],238:[function(t,e,r){arguments[4][216][0].apply(r,arguments)},{dup:216}],239:[function(t,e,r){arguments[4][217][0].apply(r,arguments)},{dup:217}],240:[function(t,e,r){arguments[4][218][0].apply(r,arguments)},{\"./GLError\":235,dup:218,\"gl-format-compiler-error\":165,\"weakmap-shim\":562}],241:[function(t,e,r){\"use strict\";function n(t,e,r,n,a){a<=4*f?i(0,a-1,t,e,r,n):h(0,a-1,t,e,r,n)}function i(t,e,r,n,i,a){for(var o=t+1;o<=e;++o){for(var s=r[o],l=n[2*o],u=n[2*o+1],c=i[o],h=a[o],f=o;f>t;){var d=r[f-1],p=n[2*(f-1)];if((d-s||l-p)>=0)break;r[f]=d,n[2*f]=p,n[2*f+1]=n[2*f-1],i[f]=i[f-1],a[f]=a[f-1],f-=1}r[f]=s,n[2*f]=l,n[2*f+1]=u,i[f]=c,a[f]=h}}function a(t,e,r,n,i,a){var o=r[t],s=n[2*t],l=n[2*t+1],u=i[t],c=a[t];r[t]=r[e],n[2*t]=n[2*e],n[2*t+1]=n[2*e+1],i[t]=i[e],a[t]=a[e],r[e]=o,n[2*e]=s,n[2*e+1]=l,i[e]=u,a[e]=c}function o(t,e,r,n,i,a){r[t]=r[e],n[2*t]=n[2*e],n[2*t+1]=n[2*e+1],i[t]=i[e],a[t]=a[e]}function s(t,e,r,n,i,a,o){var s=n[t],l=i[2*t],u=i[2*t+1],c=a[t],h=o[t];n[t]=n[e],i[2*t]=i[2*e],i[2*t+1]=i[2*e+1],a[t]=a[e],o[t]=o[e],n[e]=n[r],i[2*e]=i[2*r],i[2*e+1]=i[2*r+1],a[e]=a[r],o[e]=o[r],n[r]=s,i[2*r]=l,i[2*r+1]=u,a[r]=c,o[r]=h}function l(t,e,r,n,i,a,o,s,l,u,c){s[t]=s[e],l[2*t]=l[2*e],l[2*t+1]=l[2*e+1],u[t]=u[e],c[t]=c[e],s[e]=r,l[2*e]=n,l[2*e+1]=i,u[e]=a,c[e]=o}function u(t,e,r,n,i){return(r[t]-r[e]||n[2*e]-n[2*t]||i[t]-i[e])<0}function c(t,e,r,n,i,a,o,s){return(e-a[t]||o[2*t]-r||i-s[t])<0}function h(t,e,r,n,d,p){var m=(e-t+1)/6|0,v=t+m,g=e-m,y=t+e>>1,b=y-m,x=y+m,_=v,w=b,M=y,k=x,A=g,T=t+1,S=e-1,E=0;u(_,w,r,n,d,p)&&(E=_,_=w,w=E),u(k,A,r,n,d,p)&&(E=k,k=A,A=E),u(_,M,r,n,d,p)&&(E=_,_=M,M=E),u(w,M,r,n,d,p)&&(E=w,w=M,M=E),u(_,k,r,n,d,p)&&(E=_,_=k,k=E),u(M,k,r,n,d,p)&&(E=M,M=k,k=E),u(w,A,r,n,d,p)&&(E=w,w=A,A=E),u(w,M,r,n,d,p)&&(E=w,w=M,M=E),u(k,A,r,n,d,p)&&(E=k,k=A,A=E);var L=r[w],C=n[2*w],I=n[2*w+1],z=d[w],D=p[w],P=r[k],O=n[2*k],R=n[2*k+1],F=d[k],j=p[k],N=_,B=M,U=A,V=v,H=y,q=g,G=r[N],Y=r[B],W=r[U];r[V]=G,r[H]=Y,r[q]=W;for(var X=0;X<2;++X){var Z=n[2*N+X],J=n[2*B+X],K=n[2*U+X];n[2*V+X]=Z,n[2*H+X]=J,n[2*q+X]=K}var Q=d[N],$=d[B],tt=d[U];d[V]=Q,d[H]=$,d[q]=tt;var et=p[N],rt=p[B],nt=p[U];p[V]=et,p[H]=rt,p[q]=nt,o(b,t,r,n,d,p),o(x,e,r,n,d,p);for(var it=T;it<=S;++it)if(c(it,L,C,I,z,r,n,d))it!==T&&a(it,T,r,n,d,p),++T;else if(!c(it,P,O,R,F,r,n,d))for(;;){if(c(S,P,O,R,F,r,n,d)){c(S,L,C,I,z,r,n,d)?(s(it,T,S,r,n,d,p),++T,--S):(a(it,S,r,n,d,p),--S);break}if(--S<it)break}l(t,T-1,L,C,I,z,D,r,n,d,p),l(e,S+1,P,O,R,F,j,r,n,d,p),T-2-t<=f?i(t,T-2,r,n,d,p):h(t,T-2,r,n,d,p),e-(S+2)<=f?i(S+2,e,r,n,d,p):h(S+2,e,r,n,d,p),S-T<=f?i(T,S,r,n,d,p):h(T,S,r,n,d,p)}e.exports=n;var f=32},{}],242:[function(t,e,r){\"use strict\";function n(t,e,r,n,i,a,o,s){for(var l=r,u=r;u<n;++u){var c=t[2*u],h=t[2*u+1],f=e[u];i<=c&&c<=o&&a<=h&&h<=s&&(u===l?l+=1:(t[2*u]=t[2*l],t[2*u+1]=t[2*l+1],e[u]=e[l],t[2*l]=c,t[2*l+1]=h,e[l]=f,l+=1))}return l}function i(t,e,r){this.pixelSize=t,this.offset=e,this.count=r}function a(t,e,r,a){function l(i,a,o,s,u,c){var h=.5*o,f=s+1,d=u-s;r[_]=d,x[_++]=c;for(var p=0;p<2;++p)for(var m=0;m<2;++m){var v=i+p*h,g=a+m*h,y=n(t,e,f,u,v,g,v+h,g+h);if(y!==f){if(y-f>=Math.max(.9*d,32)){var b=u+s>>>1;l(v,g,h,f,b,c+1),f=b}l(v,g,h,f,y,c+1),f=y}}}var u=t.length>>>1;if(u<1)return[];for(var c=1/0,h=1/0,f=-1/0,d=-1/0,p=0;p<u;++p){var m=t[2*p],v=t[2*p+1];c=Math.min(c,m),f=Math.max(f,m),h=Math.min(h,v),d=Math.max(d,v),e[p]=p}c===f&&(f+=1+Math.abs(f)),h===d&&(d+=1+Math.abs(f));var g=1/(f-c),y=1/(d-h),b=Math.max(f-c,d-h);a=a||[0,0,0,0],a[0]=c,a[1]=h,a[2]=f,a[3]=d;var x=o.mallocInt32(u),_=0;l(c,h,b,0,u,0),s(x,t,e,r,u);for(var w=[],M=0,k=u,_=u-1;_>=0;--_){t[2*_]=(t[2*_]-c)*g,t[2*_+1]=(t[2*_+1]-h)*y;var A=x[_];A!==M&&(w.push(new i(b*Math.pow(.5,A),_+1,k-(_+1))),k=_+1,M=A)}return w.push(new i(b*Math.pow(.5,A+1),0,k)),o.free(x),w}var o=t(\"typedarray-pool\"),s=t(\"./lib/sort\");e.exports=a},{\"./lib/sort\":241,\"typedarray-pool\":541}],243:[function(t,e,r){\"use strict\";function n(t,e,r,n,i,a,o,s){this.plot=t,this.shader=e,this.pickShader=r,this.positionBuffer=n,this.sizeBuffer=i,this.colorBuffer=a,this.idBuffer=o,this.charBuffer=s,this.pointCount=0,this.pickOffset=0,this.points=null,this.scales=[],this.xCoords=[],this.charCanvas=document.createElement(\"canvas\"),this.charTexture=m(this.plot.gl,this.charCanvas),this.charStep=400,this.charFit=.255,this.snapThreshold=1e4,this.paletteTexture=m(this.plot.gl,[256,1])}function i(){var t=this.plot,e=t.viewBox,r=t.dataBox,n=t.pixelRatio,i=r[2]-r[0],a=r[3]-r[1],u=2/i,c=2/a,h=-r[0]-.5*i,f=-r[1]-.5*a;_[0]=u,w[0]=u-_[0],_[1]=c,w[1]=c-_[1],M[0]=h,k[0]=h-M[0],M[1]=f,k[1]=f-M[1];var d=e[2]-e[0],p=e[3]-e[1];o=Math.min(i/d,a/p),A[0]=2*n/d,A[1]=2*n/p,s=r[0],l=r[2]}function a(t,e){var r=t.gl,i=u(r,f.vertex,f.fragment),a=u(r,f.pickVertex,f.pickFragment),o=c(r),s=c(r),l=c(r),h=c(r),d=c(r),p=new n(t,i,a,o,s,l,h,d);return p.update(e),t.addObject(p),p}e.exports=a;var o,s,l,u=t(\"gl-shader\"),c=t(\"gl-buffer\"),h=t(\"typedarray-pool\"),f=t(\"./lib/shaders\"),d=t(\"snap-points-2d\"),p=t(\"font-atlas-sdf\"),m=t(\"gl-texture2d\"),v=t(\"color-id\"),g=t(\"ndarray\"),y=t(\"clamp\"),b=t(\"binary-search-bounds\"),x=n.prototype,_=new Float32Array([0,0]),w=new Float32Array([0,0]),M=new Float32Array([0,0]),k=new Float32Array([0,0]),A=[0,0],T=[0,0,0,0];x.drawPick=function(t){var e=void 0!==t,r=this.plot,n=this.pointCount,a=n>this.snapThreshold;if(!n)return t;i.call(this);var u=r.gl,c=e?this.pickShader:this.shader,h=u.isEnabled(u.BLEND);if(c.bind(),e){this.pickOffset=t;for(var f=0;f<4;++f)T[f]=t>>8*f&255;c.uniforms.pickOffset=T,this.idBuffer.bind(),c.attributes.id.pointer(u.UNSIGNED_BYTE,!1)}else u.blendFuncSeparate(u.SRC_ALPHA,u.ONE_MINUS_SRC_ALPHA,u.ONE,u.ONE_MINUS_SRC_ALPHA),u.blendColor(0,0,0,1),h||u.enable(u.BLEND),this.colorBuffer.bind(),c.attributes.color.pointer(u.UNSIGNED_BYTE,!1),this.charBuffer.bind(),c.attributes.char.pointer(u.UNSIGNED_BYTE,!1),c.uniforms.chars=this.charTexture.bind(0),c.uniforms.charsShape=[this.charCanvas.width,this.charCanvas.height],c.uniforms.charsStep=this.charStep,c.uniforms.palette=this.paletteTexture.bind(1);this.sizeBuffer.bind(),c.attributes.size.pointer(u.FLOAT,!1,8,0),e||c.attributes.border.pointer(u.FLOAT,!1,8,4),this.positionBuffer.bind(),c.attributes.positionHi.pointer(u.FLOAT,!1,16,0),c.attributes.positionLo.pointer(u.FLOAT,!1,16,8),c.uniforms.pixelRatio=r.pixelRatio,c.uniforms.scaleHi=_,c.uniforms.scaleLo=w,c.uniforms.translateHi=M,c.uniforms.translateLo=k,c.uniforms.viewBox=r.viewBox;var d=this.scales;if(a)for(var p=d.length-1;p>=0;p--){var m=d[p];if(!(m.pixelSize&&m.pixelSize<1.25*o&&p>1)){var v=m.offset,g=m.count+v,y=b.ge(this.xCoords,s,v,g-1),x=b.lt(this.xCoords,l,y,g-1)+1;x>y&&u.drawArrays(u.POINTS,y,x-y)}}else u.drawArrays(u.POINTS,0,n);if(e)return t+n;h?u.blendFunc(u.ONE,u.ONE_MINUS_SRC_ALPHA):u.disable(u.BLEND)},x.draw=x.drawPick,x.pick=function(t,e,r){var n=this.pickOffset,i=this.pointCount;if(r<n||r>=n+i)return null;var a=r-n,o=this.points;return{object:this,pointId:a,dataCoord:[o[2*a],o[2*a+1]]}},x.update=function(t){t=t||{};var e=t.positions||[],r=t.colors||[],n=t.glyphs||[],i=t.sizes||[],a=t.borderWidths||[],o=t.borderColors||[],s=this.plot.gl,l=this.pointCount,u=l>this.snapThreshold;if(null!=t.positions){this.points=e,l=this.points.length/2,u=l>this.snapThreshold;var c=h.mallocFloat32(2*l),f=h.mallocFloat64(2*l),m=h.mallocUint32(l),b=h.mallocFloat32(4*l);f.set(this.points),u&&(this.i2idx&&h.free(this.i2idx),this.i2idx=h.mallocInt32(l),this.scales=d(f,this.i2idx,c)),this.pointCount=l;for(var x=0;x<l;++x){var _=u?this.i2idx[x]:x;m[x]=_;var w=e[2*_],M=e[2*_+1];b[4*x]=w,b[4*x+1]=M,b[4*x+2]=w-b[4*x],b[4*x+3]=M-b[4*x+1],this.xCoords[x]=w}this.idBuffer.update(m),this.positionBuffer.update(b),h.free(b),h.free(m),h.free(f),h.free(c)}for(var k=h.mallocFloat32(2*l),A=h.mallocUint8(2*l),T=h.mallocUint8(2*l),S={},E=[],L=[],C=[],x=0,I=l,z=0;x<I;++x){var D=[255*r[4*x],255*r[4*x+1],255*r[4*x+2],255*r[4*x+3]],P=v(D,!1);null==S[P]&&(S[P]=z++,L.push(D[0]),L.push(D[1]),L.push(D[2]),L.push(D[3])),E.push(P),o&&o.length&&(D=[255*o[4*x],255*o[4*x+1],255*o[4*x+2],255*o[4*x+3]],P=v(D,!1),null==S[P]&&(S[P]=z++,L.push(D[0]),L.push(D[1]),L.push(D[2]),L.push(D[3])),C.push(P))}for(var O={},x=0,I=l,z=0;x<I;x++){var R=n[x];null==O[R]&&(O[R]=z++)}for(var F=0,x=0,I=i.length;x<I;++x)i[x]>F&&(F=i[x]);var j=this.charStep;this.charStep=y(Math.ceil(4*F),128,768);var N=Object.keys(O),B=this.charStep,U=Math.floor(B/2),V=s.getParameter(s.MAX_TEXTURE_SIZE),H=V/B*(V/B),q=Math.min(V,B*N.length),G=Math.min(V,B*Math.ceil(B*N.length/V)),Y=Math.floor(q/B);N.length>H&&console.warn(\"gl-scatter2d-fancy: number of characters is more than maximum texture size. Try reducing it.\"),this.chars&&this.chars+\"\"==N+\"\"&&this.charStep==j||(this.charCanvas=p({canvas:this.charCanvas,family:\"sans-serif\",size:U,shape:[q,G],step:[B,B],chars:N,align:!0,fit:this.charFit}),this.chars=N);for(var x=0;x<l;++x){var _=u?this.i2idx[x]:x,W=i[_],X=a[_];k[2*x]=2*W,k[2*x+1]=X;var P=E[_],Z=S[P];A[2*x]=Z;var J=C[_],K=S[J];A[2*x+1]=K;var R=n[_],Q=O[R];T[2*x+1]=Math.floor(Q/Y),T[2*x]=Q%Y}this.sizeBuffer.update(k),this.colorBuffer.update(A),this.charBuffer.update(T),this.charTexture.shape=[this.charCanvas.width,this.charCanvas.height],this.charCanvas&&this.charCanvas.width&&this.charTexture.setPixels(this.charCanvas),this.paletteTexture.setPixels(g(L.slice(0,1024),[256,1,4])),h.free(k),h.free(A),h.free(T)},x.dispose=function(){this.shader.dispose(),this.pickShader.dispose(),this.positionBuffer.dispose(),this.sizeBuffer.dispose(),this.colorBuffer.dispose(),this.idBuffer.dispose(),this.charBuffer.dispose(),this.plot.removeObject(this)}},{\"./lib/shaders\":232,\"binary-search-bounds\":233,clamp:88,\"color-id\":92,\"font-atlas-sdf\":134,\"gl-buffer\":156,\"gl-shader\":234,\"gl-texture2d\":267,ndarray:467,\"snap-points-2d\":242,\"typedarray-pool\":541}],244:[function(t,e,r){r.pointVertex=\"precision highp float;\\n#define GLSLIFY 1\\n\\nattribute vec2 positionHi, positionLo;\\nattribute float weight;\\n\\nuniform vec2 scaleHi, scaleLo, translateHi, translateLo;\\nuniform float pointSize, useWeight;\\n\\nvarying float fragWeight;\\n\\n\\nvec4 pfx_1_0(vec2 scaleHi, vec2 scaleLo, vec2 translateHi, vec2 translateLo, vec2 positionHi, vec2 positionLo) {\\n return vec4((positionHi + translateHi) * scaleHi\\n + (positionLo + translateLo) * scaleHi\\n + (positionHi + translateHi) * scaleLo\\n + (positionLo + translateLo) * scaleLo, 0.0, 1.0);\\n}\\n\\nvoid main() {\\n gl_Position = pfx_1_0(scaleHi, scaleLo, translateHi, translateLo, positionHi, positionLo);\\n gl_PointSize = pointSize;\\n fragWeight = mix(1.0, weight, useWeight);\\n}\",r.pointFragment=\"precision mediump float;\\n#define GLSLIFY 1\\n\\nuniform vec4 color, borderColor;\\nuniform float centerFraction;\\n\\nvarying float fragWeight;\\n\\nfloat smoothStep(float x, float y) {\\n return 1.0 / (1.0 + exp(50.0*(x - y)));\\n}\\n\\nvoid main() {\\n float radius = length(2.0*gl_PointCoord.xy-1.0);\\n if(radius > 1.0) {\\n discard;\\n }\\n vec4 baseColor = mix(borderColor, color, smoothStep(radius, centerFraction));\\n float alpha = 1.0 - pow(1.0 - baseColor.a, fragWeight);\\n gl_FragColor = vec4(baseColor.rgb * alpha, alpha);\\n}\\n\",r.pickVertex=\"precision highp float;\\n#define GLSLIFY 1\\n\\nvec4 pfx_1_0(vec2 scaleHi, vec2 scaleLo, vec2 translateHi, vec2 translateLo, vec2 positionHi, vec2 positionLo) {\\n return vec4((positionHi + translateHi) * scaleHi\\n + (positionLo + translateLo) * scaleHi\\n + (positionHi + translateHi) * scaleLo\\n + (positionLo + translateLo) * scaleLo, 0.0, 1.0);\\n}\\n\\nattribute vec2 positionHi, positionLo;\\nattribute vec4 pickId;\\n\\nuniform vec2 scaleHi, scaleLo, translateHi, translateLo;\\nuniform float pointSize;\\nuniform vec4 pickOffset;\\n\\nvarying vec4 fragId;\\n\\nvoid main() {\\n\\n vec4 id = pickId + pickOffset;\\n id.y += floor(id.x / 256.0);\\n id.x -= floor(id.x / 256.0) * 256.0;\\n\\n id.z += floor(id.y / 256.0);\\n id.y -= floor(id.y / 256.0) * 256.0;\\n\\n id.w += floor(id.z / 256.0);\\n id.z -= floor(id.z / 256.0) * 256.0;\\n\\n gl_Position = pfx_1_0(scaleHi, scaleLo, translateHi, translateLo, positionHi, positionLo);\\n gl_PointSize = pointSize;\\n fragId = id;\\n}\",r.pickFragment=\"precision mediump float;\\n#define GLSLIFY 1\\n\\nvarying vec4 fragId;\\n\\nvoid main() {\\n float radius = length(2.0 * gl_PointCoord.xy - 1.0);\\n if(radius > 1.0) {\\n discard;\\n }\\n gl_FragColor = fragId / 255.0;\\n}\"},{}],245:[function(t,e,r){arguments[4][84][0].apply(r,arguments)},{dup:84}],246:[function(t,e,r){arguments[4][241][0].apply(r,arguments)},{dup:241}],247:[function(t,e,r){arguments[4][242][0].apply(r,arguments)},{\"./lib/sort\":246,dup:242,\"typedarray-pool\":541}],248:[function(t,e,r){\"use strict\";function n(t,e,r,n,i,a,o){this.plot=t,this.positionBufferHi=e,this.positionBufferLo=r,this.pickBuffer=n,this.weightBuffer=i,this.shader=a,this.pickShader=o,this.scales=[],this.size=12,this.borderSize=1,this.pointCount=0,this.color=[1,0,0,1],this.borderColor=[0,0,0,1],this.bounds=[1/0,1/0,-1/0,-1/0],this.pickOffset=0,this.points=null,this.xCoords=null,this.snapPoints=!0}function i(t,e){var r=t.gl,i=o(r),s=o(r),l=o(r),u=o(r),h=a(r,c.pointVertex,c.pointFragment),f=a(r,c.pickVertex,c.pickFragment),d=new n(t,i,s,l,u,h,f);return d.update(e),t.addObject(d),d}var a=t(\"gl-shader\"),o=t(\"gl-buffer\"),s=t(\"binary-search-bounds\"),l=t(\"snap-points-2d\"),u=t(\"typedarray-pool\"),c=t(\"./lib/shader\"),h=t(\"array-normalize\"),f=t(\"array-bounds\");e.exports=i;var d=n.prototype,p=new Float32Array(2),m=new Float32Array(2),v=new Float32Array(2),g=new Float32Array(2),y=[0,0,0,0];d.dispose=function(){this.shader.dispose(),this.pickShader.dispose(),this.positionBufferHi.dispose(),this.positionBufferLo.dispose(),this.pickBuffer.dispose(),this.xCoords&&u.free(this.xCoords),this.plot.removeObject(this)},d.update=function(t){function e(e,r){return e in t?t[e]:r}if(t=t||{},this.size=e(\"size\",12),this.color=e(\"color\",[1,0,0,1]).slice(),this.borderSize=e(\"borderSize\",1),this.borderColor=e(\"borderColor\",[0,0,0,1]).slice(),this.snapPoints=e(\"snapPoints\",!0),null!=t.positions){this.xCoords&&u.free(this.xCoords),this.points=t.positions;var r=this.points.length>>>1,n=u.mallocInt32(r),i=u.mallocFloat32(r),a=u.mallocFloat64(2*r);if(a.set(this.points),this.snapPoints)this.scales=l(a,n,i,this.bounds);else{this.bounds=f(a,2),h(a,2,this.bounds);for(var o=0;o<r;o++)n[o]=o,i[o]=1}var s=u.mallocFloat64(r),c=u.mallocFloat32(2*r),d=u.mallocFloat32(2*r);c.set(a);for(var o=0,p=0;o<r;o++,p+=2)d[p]=a[p]-c[p],d[p+1]=a[p+1]-c[p+1],s[o]=a[p];this.positionBufferHi.update(c),this.positionBufferLo.update(d),this.pickBuffer.update(n),this.weightBuffer.update(i),u.free(c),u.free(d),u.free(i),u.free(a),u.free(n),this.xCoords=s,this.pointCount=r,this.pickOffset=0}},d.draw=function(t){var e=void 0!==t,r=this.plot,n=e?this.pickShader:this.shader,i=this.scales,a=this.positionBufferHi,o=this.positionBufferLo,s=this.pickBuffer,l=this.bounds,u=this.size,c=this.borderSize,h=r.gl,f=e?r.pickPixelRatio:r.pixelRatio,d=r.viewBox,b=r.dataBox;if(0===this.pointCount)return t;var x=l[2]-l[0],_=l[3]-l[1],w=b[2]-b[0],M=b[3]-b[1],k=(d[2]-d[0])*f/r.pixelRatio,A=(d[3]-d[1])*f/r.pixelRatio,T=this.pixelSize=Math.min(w/k,M/A),S=2*x/w,E=2*_/M;p[0]=S,p[1]=E,m[0]=S-p[0],m[1]=E-p[1];var L=(l[0]-b[0]-.5*w)/x,C=(l[1]-b[1]-.5*M)/_;v[0]=L,v[1]=C,g[0]=L-v[0],g[1]=C-v[1],n.bind(),n.uniforms.scaleHi=p,n.uniforms.scaleLo=m,n.uniforms.translateHi=v,n.uniforms.translateLo=g,n.uniforms.color=this.color,n.uniforms.borderColor=this.borderColor,n.uniforms.pointSize=f*(u+c),n.uniforms.centerFraction=0===this.borderSize?2:u/(u+c+1.25),a.bind(),n.attributes.positionHi.pointer(),o.bind(),n.attributes.positionLo.pointer(),e?(this.pickOffset=t,y[0]=255&t,y[1]=t>>8&255,y[2]=t>>16&255,y[3]=t>>24&255,n.uniforms.pickOffset=y,s.bind(),n.attributes.pickId.pointer(h.UNSIGNED_BYTE)):(n.uniforms.useWeight=1,this.weightBuffer.bind(),n.attributes.weight.pointer());var I=!0;if(this.snapPoints)for(var z=i.length-1;z>=0;z--){var D=i[z];if(!(D.pixelSize<T&&z>1)){var P=this.getVisibleRange(D),O=P[0],R=P[1];R>O&&h.drawArrays(h.POINTS,O,R-O),!e&&I&&(I=!1,n.uniforms.useWeight=0)}}else h.drawArrays(h.POINTS,0,this.pointCount);return t+this.pointCount},d.getVisibleRange=function(t){var e=this.plot.dataBox,r=this.bounds,n=this.pixelSize,i=this.size,a=this.plot.pixelRatio,o=r[2]-r[0];r[3],r[1];if(!t)for(var t,l=this.scales.length-1;l>=0&&(t=this.scales[l],t.pixelSize<n&&l>1);l--);var u=this.xCoords,c=(e[0]-r[0]-n*i*a)/o,h=(e[2]-r[0]+n*i*a)/o,f=t.offset,d=t.count+f,p=s.ge(u,c,f,d-1);return[p,s.lt(u,h,p,d-1)+1]},d.drawPick=d.draw,d.pick=function(t,e,r){var n=r-this.pickOffset;return n<0||n>=this.pointCount?null:{object:this,pointId:n,dataCoord:[this.points[2*n],this.points[2*n+1]]}}},{\"./lib/shader\":244,\"array-bounds\":44,\"array-normalize\":45,\"binary-search-bounds\":245,\"gl-buffer\":156,\"gl-shader\":255,\"snap-points-2d\":247,\"typedarray-pool\":541}],249:[function(t,e,r){\"use strict\";function n(t,e){var r=a[e];if(r||(r=a[e]={}),t in r)return r[t];for(var n=i(t,{textAlign:\"center\",textBaseline:\"middle\",lineHeight:1,font:e}),o=i(t,{triangles:!0,textAlign:\"center\",textBaseline:\"middle\",lineHeight:1,font:e}),s=[[1/0,1/0],[-1/0,-1/0]],l=0;l<n.positions.length;++l)for(var u=n.positions[l],c=0;c<2;++c)s[0][c]=Math.min(s[0][c],u[c]),s[1][c]=Math.max(s[1][c],u[c]);return r[t]=[o,n,s]}var i=t(\"vectorize-text\");e.exports=n;var a={}},{\"vectorize-text\":554}],250:[function(t,e,r){function n(t,e){var r=i(t,e),n=r.attributes;return n.position.location=0,n.color.location=1,n.glyph.location=2,n.id.location=3,r}var i=t(\"gl-shader\"),a=\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute vec3 position;\\nattribute vec4 color;\\nattribute vec2 glyph;\\nattribute vec4 id;\\n\\n\\nuniform vec4 highlightId;\\nuniform float highlightScale;\\nuniform mat4 model, view, projection;\\nuniform vec3 clipBounds[2];\\n\\nvarying vec4 interpColor;\\nvarying vec4 pickId;\\nvarying vec3 dataCoordinate;\\n\\nvoid main() {\\n if(any(lessThan(position, clipBounds[0])) || \\n any(greaterThan(position, clipBounds[1])) ) {\\n gl_Position = vec4(0,0,0,0);\\n } else {\\n float scale = 1.0;\\n if(distance(highlightId, id) < 0.0001) {\\n scale = highlightScale;\\n }\\n\\n vec4 worldPosition = model * vec4(position, 1);\\n vec4 viewPosition = view * worldPosition;\\n viewPosition = viewPosition / viewPosition.w;\\n vec4 clipPosition = projection * (viewPosition + scale * vec4(glyph.x, -glyph.y, 0, 0));\\n \\n gl_Position = clipPosition;\\n interpColor = color;\\n pickId = id;\\n dataCoordinate = position;\\n }\\n}\",o=\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute vec3 position;\\nattribute vec4 color;\\nattribute vec2 glyph;\\nattribute vec4 id;\\n\\nuniform mat4 model, view, projection;\\nuniform vec2 screenSize;\\nuniform vec3 clipBounds[2];\\nuniform float highlightScale, pixelRatio;\\nuniform vec4 highlightId;\\n\\nvarying vec4 interpColor;\\nvarying vec4 pickId;\\nvarying vec3 dataCoordinate;\\n\\nvoid main() {\\n if(any(lessThan(position, clipBounds[0])) || any(greaterThan(position, clipBounds[1]))) {\\n gl_Position = vec4(0,0,0,0);\\n } else {\\n float scale = pixelRatio;\\n if(distance(highlightId.bgr, id.bgr) < 0.001) {\\n scale *= highlightScale;\\n }\\n\\n vec4 worldPosition = model * vec4(position, 1.0);\\n vec4 viewPosition = view * worldPosition;\\n vec4 clipPosition = projection * viewPosition;\\n clipPosition /= clipPosition.w;\\n \\n gl_Position = clipPosition + vec4(screenSize * scale * vec2(glyph.x, -glyph.y), 0.0, 0.0);\\n interpColor = color;\\n pickId = id;\\n dataCoordinate = position;\\n }\\n}\",s=\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute vec3 position;\\nattribute vec4 color;\\nattribute vec2 glyph;\\nattribute vec4 id;\\n\\nuniform float highlightScale;\\nuniform vec4 highlightId;\\nuniform vec3 axes[2];\\nuniform mat4 model, view, projection;\\nuniform vec2 screenSize;\\nuniform vec3 clipBounds[2];\\nuniform float scale, pixelRatio;\\n\\nvarying vec4 interpColor;\\nvarying vec4 pickId;\\nvarying vec3 dataCoordinate;\\n\\nvoid main() {\\n if(any(lessThan(position, clipBounds[0])) ||\\n any(greaterThan(position, clipBounds[1])) ) {\\n gl_Position = vec4(0,0,0,0);\\n } else {\\n float lscale = pixelRatio * scale;\\n if(distance(highlightId, id) < 0.0001) {\\n lscale *= highlightScale;\\n }\\n\\n vec4 clipCenter = projection * view * model * vec4(position, 1);\\n vec3 dataPosition = position + 0.5*lscale*(axes[0] * glyph.x + axes[1] * glyph.y) * clipCenter.w * screenSize.y;\\n vec4 clipPosition = projection * view * model * vec4(dataPosition, 1);\\n\\n gl_Position = clipPosition;\\n interpColor = color;\\n pickId = id;\\n dataCoordinate = dataPosition;\\n }\\n}\\n\",l=\"precision mediump float;\\n#define GLSLIFY 1\\n\\nuniform vec3 fragClipBounds[2];\\nuniform float opacity;\\n\\nvarying vec4 interpColor;\\nvarying vec4 pickId;\\nvarying vec3 dataCoordinate;\\n\\nvoid main() {\\n if(any(lessThan(dataCoordinate, fragClipBounds[0])) ||\\n any(greaterThan(dataCoordinate, fragClipBounds[1])) ) {\\n discard;\\n } else {\\n gl_FragColor = interpColor * opacity;\\n }\\n}\\n\",u=\"precision mediump float;\\n#define GLSLIFY 1\\n\\nuniform vec3 fragClipBounds[2];\\nuniform float pickGroup;\\n\\nvarying vec4 pickId;\\nvarying vec3 dataCoordinate;\\n\\nvoid main() {\\n if(any(lessThan(dataCoordinate, fragClipBounds[0])) || \\n any(greaterThan(dataCoordinate, fragClipBounds[1])) ) {\\n discard;\\n } else {\\n gl_FragColor = vec4(pickGroup, pickId.bgr);\\n }\\n}\",c=[{name:\"position\",type:\"vec3\"},{name:\"color\",type:\"vec4\"},{name:\"glyph\",type:\"vec2\"},{name:\"id\",type:\"vec4\"}],h={vertex:a,fragment:l,attributes:c},f={vertex:o,fragment:l,attributes:c},d={vertex:s,fragment:l,attributes:c},p={vertex:a,fragment:u,attributes:c},m={vertex:o,fragment:u,attributes:c},v={vertex:s,fragment:u,attributes:c};r.createPerspective=function(t){return n(t,h)},r.createOrtho=function(t){return n(t,f)},r.createProject=function(t){return n(t,d)},r.createPickPerspective=function(t){return n(t,p)},r.createPickOrtho=function(t){return n(t,m)},r.createPickProject=function(t){return n(t,v)}},{\"gl-shader\":255}],251:[function(t,e,r){\"use strict\";function n(t,e){var r=t[0],n=t[1],i=t[2],a=t[3];return t[0]=e[0]*r+e[4]*n+e[8]*i+e[12]*a,t[1]=e[1]*r+e[5]*n+e[9]*i+e[13]*a,t[2]=e[2]*r+e[6]*n+e[10]*i+e[14]*a,t[3]=e[3]*r+e[7]*n+e[11]*i+e[15]*a,t}function i(t,e,r,i){return n(i,i,r),n(i,i,e),n(i,i,t)}function a(t,e){this.index=t,this.dataCoordinate=this.position=e}function o(t,e,r,n,i,o,s,l,u,c,h,f){this.gl=t,this.pixelRatio=1,this.shader=e,this.orthoShader=r,this.projectShader=n,this.pointBuffer=i,this.colorBuffer=o,this.glyphBuffer=s,this.idBuffer=l,this.vao=u,this.vertexCount=0,this.lineVertexCount=0,this.opacity=1,this.lineWidth=0,this.projectScale=[2/3,2/3,2/3],this.projectOpacity=[1,1,1],this.pickId=0,this.pickPerspectiveShader=c,this.pickOrthoShader=h,this.pickProjectShader=f,this.points=[],this._selectResult=new a(0,[0,0,0]),this.useOrtho=!0,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.axesProject=[!0,!0,!0],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.highlightId=[1,1,1,1],this.highlightScale=2,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.dirty=!0}function s(t){return t[0]=t[1]=t[2]=0,t}function l(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=1,t}function u(t,e,r,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[r]=n,t}function c(t){for(var e=L,r=0;r<2;++r)for(var n=0;n<3;++n)e[r][n]=Math.max(Math.min(t[r][n],1e8),-1e8);return e}function h(t,e,r,n,a){var o,h=e.axesProject,f=e.gl,d=t.uniforms,p=r.model||x,m=r.view||x,v=r.projection||x,y=e.axesBounds,b=c(e.clipBounds);o=e.axes?e.axes.lastCubeProps.axis:[1,1,1],w[0]=2/f.drawingBufferWidth,w[1]=2/f.drawingBufferHeight,t.bind(),d.view=m,d.projection=v,d.screenSize=w,d.highlightId=e.highlightId,d.highlightScale=e.highlightScale,d.clipBounds=b,\n", "d.pickGroup=e.pickId/255,d.pixelRatio=e.pixelRatio;for(var _=0;_<3;++_)if(h[_]&&e.projectOpacity[_]<1===n){d.scale=e.projectScale[_],d.opacity=e.projectOpacity[_];for(var L=S,C=0;C<16;++C)L[C]=0;for(var C=0;C<4;++C)L[5*C]=1;L[5*_]=0,o[_]<0?L[12+_]=y[0][_]:L[12+_]=y[1][_],g(L,p,L),d.model=L;var I=(_+1)%3,z=(_+2)%3,D=s(M),P=s(k);D[I]=1,P[z]=1;var O=i(v,m,p,l(A,D)),R=i(v,m,p,l(T,P));if(Math.abs(O[1])>Math.abs(R[1])){var F=O;O=R,R=F,F=D,D=P,P=F;var j=I;I=z,z=j}O[0]<0&&(D[I]=-1),R[1]>0&&(P[z]=-1);for(var N=0,B=0,C=0;C<4;++C)N+=Math.pow(p[4*I+C],2),B+=Math.pow(p[4*z+C],2);D[I]/=Math.sqrt(N),P[z]/=Math.sqrt(B),d.axes[0]=D,d.axes[1]=P,d.fragClipBounds[0]=u(E,b[0],_,-1e8),d.fragClipBounds[1]=u(E,b[1],_,1e8),e.vao.draw(f.TRIANGLES,e.vertexCount),e.lineWidth>0&&(f.lineWidth(e.lineWidth),e.vao.draw(f.LINES,e.lineVertexCount,e.vertexCount))}}function f(t,e,r,n,i,a){var o=r.gl;if(r.vao.bind(),i===r.opacity<1||a){t.bind();var s=t.uniforms;s.model=n.model||x,s.view=n.view||x,s.projection=n.projection||x,w[0]=2/o.drawingBufferWidth,w[1]=2/o.drawingBufferHeight,s.screenSize=w,s.highlightId=r.highlightId,s.highlightScale=r.highlightScale,s.fragClipBounds=z,s.clipBounds=r.axes.bounds,s.opacity=r.opacity,s.pickGroup=r.pickId/255,s.pixelRatio=r.pixelRatio,r.vao.draw(o.TRIANGLES,r.vertexCount),r.lineWidth>0&&(o.lineWidth(r.lineWidth),r.vao.draw(o.LINES,r.lineVertexCount,r.vertexCount))}h(e,r,n,i,a),r.vao.unbind()}function d(t){var e=t.gl,r=y.createPerspective(e),n=y.createOrtho(e),i=y.createProject(e),a=y.createPickPerspective(e),s=y.createPickOrtho(e),l=y.createPickProject(e),u=p(e),c=p(e),h=p(e),f=p(e),d=m(e,[{buffer:u,size:3,type:e.FLOAT},{buffer:c,size:4,type:e.FLOAT},{buffer:h,size:2,type:e.FLOAT},{buffer:f,size:4,type:e.UNSIGNED_BYTE,normalized:!0}]),v=new o(e,r,n,i,u,c,h,f,d,a,s,l);return v.update(t),v}var p=t(\"gl-buffer\"),m=t(\"gl-vao\"),v=t(\"typedarray-pool\"),g=t(\"gl-mat4/multiply\"),y=t(\"./lib/shaders\"),b=t(\"./lib/glyphs\"),x=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];e.exports=d;var _=o.prototype;_.pickSlots=1,_.setPickBase=function(t){this.pickId=t},_.isTransparent=function(){if(this.opacity<1)return!0;for(var t=0;t<3;++t)if(this.axesProject[t]&&this.projectOpacity[t]<1)return!0;return!1},_.isOpaque=function(){if(this.opacity>=1)return!0;for(var t=0;t<3;++t)if(this.axesProject[t]&&this.projectOpacity[t]>=1)return!0;return!1};var w=[0,0],M=[0,0,0],k=[0,0,0],A=[0,0,0,1],T=[0,0,0,1],S=x.slice(),E=[0,0,0],L=[[0,0,0],[0,0,0]],C=[-1e8,-1e8,-1e8],I=[1e8,1e8,1e8],z=[C,I];_.draw=function(t){f(this.useOrtho?this.orthoShader:this.shader,this.projectShader,this,t,!1,!1)},_.drawTransparent=function(t){f(this.useOrtho?this.orthoShader:this.shader,this.projectShader,this,t,!0,!1)},_.drawPick=function(t){f(this.useOrtho?this.pickOrthoShader:this.pickPerspectiveShader,this.pickProjectShader,this,t,!1,!0)},_.pick=function(t){if(!t)return null;if(t.id!==this.pickId)return null;var e=t.value[2]+(t.value[1]<<8)+(t.value[0]<<16);if(e>=this.pointCount||e<0)return null;var r=this.points[e],n=this._selectResult;n.index=e;for(var i=0;i<3;++i)n.position[i]=n.dataCoordinate[i]=r[i];return n},_.highlight=function(t){if(t){var e=t.index,r=255&e,n=e>>8&255,i=e>>16&255;this.highlightId=[r/255,n/255,i/255,0]}else this.highlightId=[1,1,1,1]},_.update=function(t){if(t=t||{},\"perspective\"in t&&(this.useOrtho=!t.perspective),\"orthographic\"in t&&(this.useOrtho=!!t.orthographic),\"lineWidth\"in t&&(this.lineWidth=t.lineWidth),\"project\"in t)if(Array.isArray(t.project))this.axesProject=t.project;else{var e=!!t.project;this.axesProject=[e,e,e]}if(\"projectScale\"in t)if(Array.isArray(t.projectScale))this.projectScale=t.projectScale.slice();else{var r=+t.projectScale;this.projectScale=[r,r,r]}if(\"projectOpacity\"in t)if(Array.isArray(t.projectOpacity))this.projectOpacity=t.projectOpacity.slice();else{var r=+t.projectOpacity;this.projectOpacity=[r,r,r]}\"opacity\"in t&&(this.opacity=t.opacity),this.dirty=!0;var n=t.position;if(n){var i=t.font||\"normal\",a=t.alignment||[0,0],o=[1/0,1/0,1/0],s=[-1/0,-1/0,-1/0],l=t.glyph,u=t.color,c=t.size,h=t.angle,f=t.lineColor,d=0,p=0,m=0,g=n.length;t:for(var y=0;y<g;++y){for(var x=n[y],_=0;_<3;++_)if(isNaN(x[_])||!isFinite(x[_]))continue t;var w;w=Array.isArray(l)?b(l[y],i):l?b(l,i):b(\"\\u25cf\",i);var M=w[0],k=w[1],A=w[2];p+=3*M.cells.length,m+=2*k.edges.length}var T=p+m,S=v.mallocFloat(3*T),E=v.mallocFloat(4*T),L=v.mallocFloat(2*T),C=v.mallocUint32(T),I=[0,a[1]],z=0,D=p,P=[0,0,0,1],O=[0,0,0,1],R=Array.isArray(u)&&Array.isArray(u[0]),F=Array.isArray(f)&&Array.isArray(f[0]);t:for(var y=0;y<g;++y){for(var x=n[y],_=0;_<3;++_){if(isNaN(x[_])||!isFinite(x[_])){d+=1;continue t}s[_]=Math.max(s[_],x[_]),o[_]=Math.min(o[_],x[_])}var w;w=Array.isArray(l)?b(l[y],i):l?b(l,i):b(\"\\u25cf\",i);var M=w[0],k=w[1],A=w[2];if(Array.isArray(u)){var j;if(j=R?u[y]:u,3===j.length){for(var _=0;_<3;++_)P[_]=j[_];P[3]=1}else if(4===j.length)for(var _=0;_<4;++_)P[_]=j[_]}else P[0]=P[1]=P[2]=0,P[3]=1;if(Array.isArray(f)){var j;if(j=F?f[y]:f,3===j.length){for(var _=0;_<3;++_)O[_]=j[_];O[_]=1}else if(4===j.length)for(var _=0;_<4;++_)O[_]=j[_]}else O[0]=O[1]=O[2]=0,O[3]=1;var N=.5;Array.isArray(c)?N=+c[y]:c?N=+c:this.useOrtho&&(N=12);var B=0;Array.isArray(h)?B=+h[y]:h&&(B=+h);for(var U=Math.cos(B),V=Math.sin(B),x=n[y],_=0;_<3;++_)s[_]=Math.max(s[_],x[_]),o[_]=Math.min(o[_],x[_]);a[0]<0?I[0]=a[0]*(1+A[1][0]):a[0]>0&&(I[0]=-a[0]*(1+A[0][0]));for(var H=M.cells,q=M.positions,_=0;_<H.length;++_)for(var G=H[_],Y=0;Y<3;++Y){for(var W=0;W<3;++W)S[3*z+W]=x[W];for(var W=0;W<4;++W)E[4*z+W]=P[W];C[z]=d;var X=q[G[Y]];L[2*z]=N*(U*X[0]-V*X[1]+I[0]),L[2*z+1]=N*(V*X[0]+U*X[1]+I[1]),z+=1}for(var H=k.edges,q=k.positions,_=0;_<H.length;++_)for(var G=H[_],Y=0;Y<2;++Y){for(var W=0;W<3;++W)S[3*D+W]=x[W];for(var W=0;W<4;++W)E[4*D+W]=O[W];C[D]=d;var X=q[G[Y]];L[2*D]=N*(U*X[0]-V*X[1]+I[0]),L[2*D+1]=N*(V*X[0]+U*X[1]+I[1]),D+=1}d+=1}this.vertexCount=p,this.lineVertexCount=m,this.pointBuffer.update(S),this.colorBuffer.update(E),this.glyphBuffer.update(L),this.idBuffer.update(new Uint32Array(C)),v.free(S),v.free(E),v.free(L),v.free(C),this.bounds=[o,s],this.points=n,this.pointCount=n.length}},_.dispose=function(){this.shader.dispose(),this.orthoShader.dispose(),this.pickPerspectiveShader.dispose(),this.pickOrthoShader.dispose(),this.vao.dispose(),this.pointBuffer.dispose(),this.colorBuffer.dispose(),this.glyphBuffer.dispose(),this.idBuffer.dispose()}},{\"./lib/glyphs\":249,\"./lib/shaders\":250,\"gl-buffer\":156,\"gl-mat4/multiply\":183,\"gl-vao\":271,\"typedarray-pool\":541}],252:[function(t,e,r){\"use strict\";r.boxVertex=\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute vec2 vertex;\\n\\nuniform vec2 cornerA, cornerB;\\n\\nvoid main() {\\n gl_Position = vec4(mix(cornerA, cornerB, vertex), 0, 1);\\n}\\n\",r.boxFragment=\"precision mediump float;\\n#define GLSLIFY 1\\n\\nuniform vec4 color;\\n\\nvoid main() {\\n gl_FragColor = color;\\n}\\n\"},{}],253:[function(t,e,r){\"use strict\";function n(t,e,r){this.plot=t,this.boxBuffer=e,this.boxShader=r,this.enabled=!0,this.selectBox=[1/0,1/0,-1/0,-1/0],this.borderColor=[0,0,0,1],this.innerFill=!1,this.innerColor=[0,0,0,.25],this.outerFill=!0,this.outerColor=[0,0,0,.5],this.borderWidth=10}function i(t,e){var r=t.gl,i=o(r,[0,0,0,1,1,0,1,1]),l=a(r,s.boxVertex,s.boxFragment),u=new n(t,i,l);return u.update(e),t.addOverlay(u),u}var a=t(\"gl-shader\"),o=t(\"gl-buffer\"),s=t(\"./lib/shaders\");e.exports=i;var l=n.prototype;l.draw=function(){if(this.enabled){var t=this.plot,e=this.selectBox,r=this.borderWidth,n=(this.innerFill,this.innerColor),i=(this.outerFill,this.outerColor),a=this.borderColor,o=t.box,s=t.screenBox,l=t.dataBox,u=t.viewBox,c=t.pixelRatio,h=(e[0]-l[0])*(u[2]-u[0])/(l[2]-l[0])+u[0],f=(e[1]-l[1])*(u[3]-u[1])/(l[3]-l[1])+u[1],d=(e[2]-l[0])*(u[2]-u[0])/(l[2]-l[0])+u[0],p=(e[3]-l[1])*(u[3]-u[1])/(l[3]-l[1])+u[1];if(h=Math.max(h,u[0]),f=Math.max(f,u[1]),d=Math.min(d,u[2]),p=Math.min(p,u[3]),!(d<h||p<f)){o.bind();var m=s[2]-s[0],v=s[3]-s[1];if(this.outerFill&&(o.drawBox(0,0,m,f,i),o.drawBox(0,f,h,p,i),o.drawBox(0,p,m,v,i),o.drawBox(d,f,m,p,i)),this.innerFill&&o.drawBox(h,f,d,p,n),r>0){var g=r*c;o.drawBox(h-g,f-g,d+g,f+g,a),o.drawBox(h-g,p-g,d+g,p+g,a),o.drawBox(h-g,f-g,h+g,p+g,a),o.drawBox(d-g,f-g,d+g,p+g,a)}}}},l.update=function(t){t=t||{},this.innerFill=!!t.innerFill,this.outerFill=!!t.outerFill,this.innerColor=(t.innerColor||[0,0,0,.5]).slice(),this.outerColor=(t.outerColor||[0,0,0,.5]).slice(),this.borderColor=(t.borderColor||[0,0,0,1]).slice(),this.borderWidth=t.borderWidth||0,this.selectBox=(t.selectBox||this.selectBox).slice()},l.dispose=function(){this.boxBuffer.dispose(),this.boxShader.dispose(),this.plot.removeOverlay(this)}},{\"./lib/shaders\":252,\"gl-buffer\":156,\"gl-shader\":255}],254:[function(t,e,r){\"use strict\";function n(t,e,r,n,i){this.coord=[t,e],this.id=r,this.value=n,this.distance=i}function i(t,e,r){this.gl=t,this.fbo=e,this.buffer=r,this._readTimeout=null;var n=this;this._readCallback=function(){n.gl&&(e.bind(),t.readPixels(0,0,e.shape[0],e.shape[1],t.RGBA,t.UNSIGNED_BYTE,n.buffer),n._readTimeout=null)}}function a(t,e){return new i(t,o(t,e),s.mallocUint8(e[0]*e[1]*4))}e.exports=a;var o=t(\"gl-fbo\"),s=t(\"typedarray-pool\"),l=t(\"ndarray\"),u=t(\"bit-twiddle\").nextPow2,c=t(\"cwise/lib/wrapper\")({args:[\"array\",{offset:[0,0,1],array:0},{offset:[0,0,2],array:0},{offset:[0,0,3],array:0},\"scalar\",\"scalar\",\"index\"],pre:{body:\"{this_closestD2=1e8,this_closestX=-1,this_closestY=-1}\",args:[],thisVars:[\"this_closestD2\",\"this_closestX\",\"this_closestY\"],localVars:[]},body:{body:\"{if(_inline_46_arg0_<255||_inline_46_arg1_<255||_inline_46_arg2_<255||_inline_46_arg3_<255){var _inline_46_l=_inline_46_arg4_-_inline_46_arg6_[0],_inline_46_a=_inline_46_arg5_-_inline_46_arg6_[1],_inline_46_f=_inline_46_l*_inline_46_l+_inline_46_a*_inline_46_a;_inline_46_f<this_closestD2&&(this_closestD2=_inline_46_f,this_closestX=_inline_46_arg6_[0],this_closestY=_inline_46_arg6_[1])}}\",args:[{name:\"_inline_46_arg0_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_46_arg1_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_46_arg2_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_46_arg3_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_46_arg4_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_46_arg5_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_46_arg6_\",lvalue:!1,rvalue:!0,count:4}],thisVars:[\"this_closestD2\",\"this_closestX\",\"this_closestY\"],localVars:[\"_inline_46_a\",\"_inline_46_f\",\"_inline_46_l\"]},post:{body:\"{return[this_closestX,this_closestY,this_closestD2]}\",args:[],thisVars:[\"this_closestD2\",\"this_closestX\",\"this_closestY\"],localVars:[]},debug:!1,funcName:\"cwise\",blockSize:64}),h=i.prototype;Object.defineProperty(h,\"shape\",{get:function(){return this.gl?this.fbo.shape.slice():[0,0]},set:function(t){if(this.gl){this.fbo.shape=t;var e=this.fbo.shape[0],r=this.fbo.shape[1];if(r*e*4>this.buffer.length){s.free(this.buffer);for(var n=this.buffer=s.mallocUint8(u(r*e*4)),i=0;i<r*e*4;++i)n[i]=255}return t}}}),h.begin=function(){var t=this.gl;this.shape;t&&(this.fbo.bind(),t.clearColor(1,1,1,1),t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT))},h.end=function(){var t=this.gl;t&&(t.bindFramebuffer(t.FRAMEBUFFER,null),this._readTimeout||clearTimeout(this._readTimeout),this._readTimeout=setTimeout(this._readCallback,1))},h.query=function(t,e,r){if(!this.gl)return null;var i=this.fbo.shape.slice();t|=0,e|=0,\"number\"!=typeof r&&(r=1);var a=0|Math.min(Math.max(t-r,0),i[0]),o=0|Math.min(Math.max(t+r,0),i[0]),s=0|Math.min(Math.max(e-r,0),i[1]),u=0|Math.min(Math.max(e+r,0),i[1]);if(o<=a||u<=s)return null;var h=[o-a,u-s],f=l(this.buffer,[h[0],h[1],4],[4,4*i[0],1],4*(a+i[0]*s)),d=c(f.hi(h[0],h[1],1),r,r),p=d[0],m=d[1];return p<0||Math.pow(this.radius,2)<d[2]?null:new n(p+a|0,m+s|0,f.get(p,m,0),[f.get(p,m,1),f.get(p,m,2),f.get(p,m,3)],Math.sqrt(d[2]))},h.dispose=function(){this.gl&&(this.fbo.dispose(),s.free(this.buffer),this.gl=null,this._readTimeout&&clearTimeout(this._readTimeout))}},{\"bit-twiddle\":67,\"cwise/lib/wrapper\":113,\"gl-fbo\":164,ndarray:467,\"typedarray-pool\":541}],255:[function(t,e,r){\"use strict\";function n(t){this.gl=t,this._vref=this._fref=this._relink=this.vertShader=this.fragShader=this.program=this.attributes=this.uniforms=this.types=null}function i(t,e){return t.name<e.name?-1:1}function a(t,e,r,i,a){var o=new n(t);return o.update(e,r,i,a),o}var o=t(\"./lib/create-uniforms\"),s=t(\"./lib/create-attributes\"),l=t(\"./lib/reflect\"),u=t(\"./lib/shader-cache\"),c=t(\"./lib/runtime-reflect\"),h=t(\"./lib/GLError\"),f=n.prototype;f.bind=function(){this.program||this._relink(),this.gl.useProgram(this.program)},f.dispose=function(){this._fref&&this._fref.dispose(),this._vref&&this._vref.dispose(),this.attributes=this.types=this.vertShader=this.fragShader=this.program=this._relink=this._fref=this._vref=null},f.update=function(t,e,r,n){function a(){d.program=u.program(p,d._vref,d._fref,x,_);for(var t=0;t<r.length;++t)E[t]=p.getUniformLocation(d.program,r[t].name)}if(!e||1===arguments.length){var f=t;t=f.vertex,e=f.fragment,r=f.uniforms,n=f.attributes}var d=this,p=d.gl,m=d._vref;d._vref=u.shader(p,p.VERTEX_SHADER,t),m&&m.dispose(),d.vertShader=d._vref.shader;var v=this._fref;if(d._fref=u.shader(p,p.FRAGMENT_SHADER,e),v&&v.dispose(),d.fragShader=d._fref.shader,!r||!n){var g=p.createProgram();if(p.attachShader(g,d.fragShader),p.attachShader(g,d.vertShader),p.linkProgram(g),!p.getProgramParameter(g,p.LINK_STATUS)){var y=p.getProgramInfoLog(g);throw new h(y,\"Error linking program:\"+y)}r=r||c.uniforms(p,g),n=n||c.attributes(p,g),p.deleteProgram(g)}n=n.slice(),n.sort(i);for(var b=[],x=[],_=[],w=0;w<n.length;++w){var M=n[w];if(M.type.indexOf(\"mat\")>=0){for(var k=0|M.type.charAt(M.type.length-1),A=new Array(k),T=0;T<k;++T)A[T]=_.length,x.push(M.name+\"[\"+T+\"]\"),\"number\"==typeof M.location?_.push(M.location+T):Array.isArray(M.location)&&M.location.length===k&&\"number\"==typeof M.location[T]?_.push(0|M.location[T]):_.push(-1);b.push({name:M.name,type:M.type,locations:A})}else b.push({name:M.name,type:M.type,locations:[_.length]}),x.push(M.name),\"number\"==typeof M.location?_.push(0|M.location):_.push(-1)}for(var S=0,w=0;w<_.length;++w)if(_[w]<0){for(;_.indexOf(S)>=0;)S+=1;_[w]=S}var E=new Array(r.length);a(),d._relink=a,d.types={uniforms:l(r),attributes:l(n)},d.attributes=s(p,d,b,_),Object.defineProperty(d,\"uniforms\",o(p,d,r,E))},e.exports=a},{\"./lib/GLError\":256,\"./lib/create-attributes\":257,\"./lib/create-uniforms\":258,\"./lib/reflect\":259,\"./lib/runtime-reflect\":260,\"./lib/shader-cache\":261}],256:[function(t,e,r){arguments[4][213][0].apply(r,arguments)},{dup:213}],257:[function(t,e,r){arguments[4][214][0].apply(r,arguments)},{\"./GLError\":256,dup:214}],258:[function(t,e,r){arguments[4][215][0].apply(r,arguments)},{\"./GLError\":256,\"./reflect\":259,dup:215}],259:[function(t,e,r){arguments[4][216][0].apply(r,arguments)},{dup:216}],260:[function(t,e,r){arguments[4][217][0].apply(r,arguments)},{dup:217}],261:[function(t,e,r){arguments[4][218][0].apply(r,arguments)},{\"./GLError\":256,dup:218,\"gl-format-compiler-error\":165,\"weakmap-shim\":562}],262:[function(t,e,r){\"use strict\";function n(t){this.plot=t,this.enable=[!0,!0,!1,!1],this.width=[1,1,1,1],this.color=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.center=[1/0,1/0]}function i(t,e){var r=new n(t);return r.update(e),t.addOverlay(r),r}e.exports=i;var a=n.prototype;a.update=function(t){t=t||{},this.enable=(t.enable||[!0,!0,!1,!1]).slice(),this.width=(t.width||[1,1,1,1]).slice(),this.color=(t.color||[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]]).map(function(t){return t.slice()}),this.center=(t.center||[1/0,1/0]).slice(),this.plot.setOverlayDirty()},a.draw=function(){var t=this.enable,e=this.width,r=this.color,n=this.center,i=this.plot,a=i.line,o=i.dataBox,s=i.viewBox;if(a.bind(),o[0]<=n[0]&&n[0]<=o[2]&&o[1]<=n[1]&&n[1]<=o[3]){var l=s[0]+(n[0]-o[0])/(o[2]-o[0])*(s[2]-s[0]),u=s[1]+(n[1]-o[1])/(o[3]-o[1])*(s[3]-s[1]);t[0]&&a.drawLine(l,u,s[0],u,e[0],r[0]),t[1]&&a.drawLine(l,u,l,s[1],e[1],r[1]),t[2]&&a.drawLine(l,u,s[2],u,e[2],r[2]),t[3]&&a.drawLine(l,u,l,s[3],e[3],r[3])}},a.dispose=function(){this.plot.removeOverlay(this)}},{}],263:[function(t,e,r){\"use strict\";var n=t(\"gl-shader\");e.exports=function(t){return n(t,\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute vec3 position, color;\\nattribute float weight;\\n\\nuniform mat4 model, view, projection;\\nuniform vec3 coordinates[3];\\nuniform vec4 colors[3];\\nuniform vec2 screenShape;\\nuniform float lineWidth;\\n\\nvarying vec4 fragColor;\\n\\nvoid main() {\\n vec3 vertexPosition = mix(coordinates[0],\\n mix(coordinates[2], coordinates[1], 0.5 * (position + 1.0)), abs(position));\\n\\n vec4 clipPos = projection * view * model * vec4(vertexPosition, 1.0);\\n vec2 clipOffset = (projection * view * model * vec4(color, 0.0)).xy;\\n vec2 delta = weight * clipOffset * screenShape;\\n vec2 lineOffset = normalize(vec2(delta.y, -delta.x)) / screenShape;\\n\\n gl_Position = vec4(clipPos.xy + clipPos.w * 0.5 * lineWidth * lineOffset, clipPos.z, clipPos.w);\\n fragColor = color.x * colors[0] + color.y * colors[1] + color.z * colors[2];\\n}\\n\",\"precision mediump float;\\n#define GLSLIFY 1\\n\\nvarying vec4 fragColor;\\n\\nvoid main() {\\n gl_FragColor = fragColor;\\n}\",null,[{name:\"position\",type:\"vec3\"},{name:\"color\",type:\"vec3\"},{name:\"weight\",type:\"float\"}])}},{\"gl-shader\":255}],264:[function(t,e,r){\"use strict\";function n(t,e,r,n){this.gl=t,this.buffer=e,this.vao=r,this.shader=n,this.pixelRatio=1,this.bounds=[[-1e3,-1e3,-1e3],[1e3,1e3,1e3]],this.position=[0,0,0],this.lineWidth=[2,2,2],this.colors=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.enabled=[!0,!0,!0],this.drawSides=[!0,!0,!0],this.axes=null}function i(t,e){function r(t,e,r,n,a,o){var s=[t,e,r,0,0,0,1];s[n+3]=1,s[n]=a,i.push.apply(i,s),s[6]=-1,i.push.apply(i,s),s[n]=o,i.push.apply(i,s),i.push.apply(i,s),s[6]=1,i.push.apply(i,s),s[n]=a,i.push.apply(i,s)}var i=[];r(0,0,0,0,0,1),r(0,0,0,1,0,1),r(0,0,0,2,0,1),r(1,0,0,1,-1,1),r(1,0,0,2,-1,1),r(0,1,0,0,-1,1),r(0,1,0,2,-1,1),r(0,0,1,0,-1,1),r(0,0,1,1,-1,1);var l=a(t,i),u=o(t,[{type:t.FLOAT,buffer:l,size:3,offset:0,stride:28},{type:t.FLOAT,buffer:l,size:3,offset:12,stride:28},{type:t.FLOAT,buffer:l,size:1,offset:24,stride:28}]),c=s(t);c.attributes.position.location=0,c.attributes.color.location=1,c.attributes.weight.location=2;var h=new n(t,l,u,c);return h.update(e),h}var a=t(\"gl-buffer\"),o=t(\"gl-vao\"),s=t(\"./shaders/index\");e.exports=i;var l=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],u=n.prototype,c=[0,0,0],h=[0,0,0],f=[0,0];u.isTransparent=function(){return!1},u.drawTransparent=function(t){},u.draw=function(t){var e=this.gl,r=this.vao,n=this.shader;r.bind(),n.bind();var i,a=t.model||l,o=t.view||l,s=t.projection||l;this.axes&&(i=this.axes.lastCubeProps.axis);for(var u=c,d=h,p=0;p<3;++p)i&&i[p]<0?(u[p]=this.bounds[0][p],d[p]=this.bounds[1][p]):(u[p]=this.bounds[1][p],d[p]=this.bounds[0][p]);f[0]=e.drawingBufferWidth,f[1]=e.drawingBufferHeight,n.uniforms.model=a,n.uniforms.view=o,n.uniforms.projection=s,n.uniforms.coordinates=[this.position,u,d],n.uniforms.colors=this.colors,n.uniforms.screenShape=f;for(var p=0;p<3;++p)n.uniforms.lineWidth=this.lineWidth[p]*this.pixelRatio,this.enabled[p]&&(r.draw(e.TRIANGLES,6,6*p),this.drawSides[p]&&r.draw(e.TRIANGLES,12,18+12*p));r.unbind()},u.update=function(t){t&&(\"bounds\"in t&&(this.bounds=t.bounds),\"position\"in t&&(this.position=t.position),\"lineWidth\"in t&&(this.lineWidth=t.lineWidth),\"colors\"in t&&(this.colors=t.colors),\"enabled\"in t&&(this.enabled=t.enabled),\"drawSides\"in t&&(this.drawSides=t.drawSides))},u.dispose=function(){this.vao.dispose(),this.buffer.dispose(),this.shader.dispose()}},{\"./shaders/index\":263,\"gl-buffer\":156,\"gl-vao\":271}],265:[function(t,e,r){var n=t(\"gl-shader\"),i=\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute vec4 uv;\\nattribute vec3 f;\\nattribute vec3 normal;\\n\\nuniform mat4 model, view, projection, inverseModel;\\nuniform vec3 lightPosition, eyePosition;\\nuniform sampler2D colormap;\\n\\nvarying float value, kill;\\nvarying vec3 worldCoordinate;\\nvarying vec2 planeCoordinate;\\nvarying vec3 lightDirection, eyeDirection, surfaceNormal;\\nvarying vec4 vColor;\\n\\nvoid main() {\\n worldCoordinate = vec3(uv.zw, f.x);\\n vec4 worldPosition = model * vec4(worldCoordinate, 1.0);\\n vec4 clipPosition = projection * view * worldPosition;\\n gl_Position = clipPosition;\\n kill = f.y;\\n value = f.z;\\n planeCoordinate = uv.xy;\\n\\n vColor = texture2D(colormap, vec2(value, value));\\n\\n //Lighting geometry parameters\\n vec4 cameraCoordinate = view * worldPosition;\\n cameraCoordinate.xyz /= cameraCoordinate.w;\\n lightDirection = lightPosition - cameraCoordinate.xyz;\\n eyeDirection = eyePosition - cameraCoordinate.xyz;\\n surfaceNormal = normalize((vec4(normal,0) * inverseModel).xyz);\\n}\\n\",a=\"precision mediump float;\\n#define GLSLIFY 1\\n\\nfloat beckmannDistribution_2_0(float x, float roughness) {\\n float NdotH = max(x, 0.0001);\\n float cos2Alpha = NdotH * NdotH;\\n float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\\n float roughness2 = roughness * roughness;\\n float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\\n return exp(tan2Alpha / roughness2) / denom;\\n}\\n\\n\\n\\nfloat beckmannSpecular_1_1(\\n vec3 lightDirection,\\n vec3 viewDirection,\\n vec3 surfaceNormal,\\n float roughness) {\\n return beckmannDistribution_2_0(dot(surfaceNormal, normalize(lightDirection + viewDirection)), roughness);\\n}\\n\\n\\n\\nuniform vec3 lowerBound, upperBound;\\nuniform float contourTint;\\nuniform vec4 contourColor;\\nuniform sampler2D colormap;\\nuniform vec3 clipBounds[2];\\nuniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity;\\nuniform float vertexColor;\\n\\nvarying float value, kill;\\nvarying vec3 worldCoordinate;\\nvarying vec3 lightDirection, eyeDirection, surfaceNormal;\\nvarying vec4 vColor;\\n\\nvoid main() {\\n if (kill > 0.0 ||\\n any(lessThan(worldCoordinate, clipBounds[0])) || any(greaterThan(worldCoordinate, clipBounds[1]))) {\\n discard;\\n }\\n\\n vec3 N = normalize(surfaceNormal);\\n vec3 V = normalize(eyeDirection);\\n vec3 L = normalize(lightDirection);\\n\\n if(gl_FrontFacing) {\\n N = -N;\\n }\\n\\n float specular = max(beckmannSpecular_1_1(L, V, N, roughness), 0.);\\n float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\\n\\n //decide how to interpolate color \\u2014 in vertex or in fragment\\n vec4 surfaceColor = step(vertexColor, .5) * texture2D(colormap, vec2(value, value)) + step(.5, vertexColor) * vColor;\\n\\n vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0);\\n\\n gl_FragColor = mix(litColor, contourColor, contourTint) * opacity;\\n}\\n\",o=\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute vec4 uv;\\nattribute float f;\\n\\nuniform mat3 permutation;\\nuniform mat4 model, view, projection;\\nuniform float height, zOffset;\\nuniform sampler2D colormap;\\n\\nvarying float value, kill;\\nvarying vec3 worldCoordinate;\\nvarying vec2 planeCoordinate;\\nvarying vec3 lightDirection, eyeDirection, surfaceNormal;\\nvarying vec4 vColor;\\n\\nvoid main() {\\n vec3 dataCoordinate = permutation * vec3(uv.xy, height);\\n vec4 worldPosition = model * vec4(dataCoordinate, 1.0);\\n\\n vec4 clipPosition = projection * view * worldPosition;\\n clipPosition.z = clipPosition.z + zOffset;\\n\\n gl_Position = clipPosition;\\n value = f;\\n kill = -1.0;\\n worldCoordinate = dataCoordinate;\\n planeCoordinate = uv.zw;\\n\\n vColor = texture2D(colormap, vec2(value, value));\\n\\n //Don't do lighting for contours\\n surfaceNormal = vec3(1,0,0);\\n eyeDirection = vec3(0,1,0);\\n lightDirection = vec3(0,0,1);\\n}\\n\",s=\"precision mediump float;\\n#define GLSLIFY 1\\n\\nuniform vec2 shape;\\nuniform vec3 clipBounds[2];\\nuniform float pickId;\\n\\nvarying float value, kill;\\nvarying vec3 worldCoordinate;\\nvarying vec2 planeCoordinate;\\nvarying vec3 surfaceNormal;\\n\\nvec2 splitFloat(float v) {\\n float vh = 255.0 * v;\\n float upper = floor(vh);\\n float lower = fract(vh);\\n return vec2(upper / 255.0, floor(lower * 16.0) / 16.0);\\n}\\n\\nvoid main() {\\n if(kill > 0.0 ||\\n any(lessThan(worldCoordinate, clipBounds[0])) || any(greaterThan(worldCoordinate, clipBounds[1]))) {\\n discard;\\n }\\n vec2 ux = splitFloat(planeCoordinate.x / shape.x);\\n vec2 uy = splitFloat(planeCoordinate.y / shape.y);\\n gl_FragColor = vec4(pickId, ux.x, uy.x, ux.y + (uy.y/16.0));\\n}\\n\";r.createShader=function(t){var e=n(t,i,a,null,[{name:\"uv\",type:\"vec4\"},{name:\"f\",type:\"vec3\"},{name:\"normal\",type:\"vec3\"}]);return e.attributes.uv.location=0,e.attributes.f.location=1,e.attributes.normal.location=2,e},r.createPickShader=function(t){var e=n(t,i,s,null,[{name:\"uv\",type:\"vec4\"},{name:\"f\",type:\"vec3\"},{name:\"normal\",type:\"vec3\"}]);return e.attributes.uv.location=0,e.attributes.f.location=1,e.attributes.normal.location=2,e},r.createContourShader=function(t){var e=n(t,o,a,null,[{name:\"uv\",type:\"vec4\"},{name:\"f\",type:\"float\"}]);return e.attributes.uv.location=0,e.attributes.f.location=1,e},r.createPickContourShader=function(t){var e=n(t,o,s,null,[{name:\"uv\",type:\"vec4\"},{name:\"f\",type:\"float\"}]);return e.attributes.uv.location=0,e.attributes.f.location=1,e}},{\"gl-shader\":255}],266:[function(t,e,r){\"use strict\";function n(t,e,r,n,i){this.position=t,this.index=e,this.uv=r,this.level=n,this.dataCoordinate=i}function i(t){var e=x([y({colormap:t,nshades:R,format:\"rgba\"}).map(function(t){return[t[0],t[1],t[2],255*t[3]]})]);return b.divseq(e,255),e}function a(t,e,r,i,a,o,s,l,u,c,h,f,d,p){this.gl=t,this.shape=e,this.bounds=r,this.intensityBounds=[],this._shader=i,this._pickShader=a,this._coordinateBuffer=o,this._vao=s,this._colorMap=l,this._contourShader=u,this._contourPickShader=c,this._contourBuffer=h,this._contourVAO=f,this._contourOffsets=[[],[],[]],this._contourCounts=[[],[],[]],this._vertexCount=0,this._pickResult=new n([0,0,0],[0,0],[0,0],[0,0,0],[0,0,0]),this._dynamicBuffer=d,this._dynamicVAO=p,this._dynamicOffsets=[0,0,0],this._dynamicCounts=[0,0,0],this.contourWidth=[1,1,1],this.contourLevels=[[1],[1],[1]],this.contourTint=[0,0,0],this.contourColor=[[.5,.5,.5,1],[.5,.5,.5,1],[.5,.5,.5,1]],this.showContour=!0,this.showSurface=!0,this.enableHighlight=[!0,!0,!0],this.highlightColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.highlightTint=[1,1,1],this.highlightLevel=[-1,-1,-1],this.enableDynamic=[!0,!0,!0],this.dynamicLevel=[NaN,NaN,NaN],this.dynamicColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.dynamicTint=[1,1,1],this.dynamicWidth=[1,1,1],this.axesBounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.surfaceProject=[!1,!1,!1],this.contourProject=[[!1,!1,!1],[!1,!1,!1],[!1,!1,!1]],this.colorBounds=[!1,!1],this._field=[_(g.mallocFloat(1024),[0,0]),_(g.mallocFloat(1024),[0,0]),_(g.mallocFloat(1024),[0,0])],this.pickId=1,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.snapToData=!1,this.opacity=1,this.lightPosition=[10,1e4,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.vertexColor=0,this.dirty=!0}function o(t,e){var r,n,i,a=e.axes&&e.axes.lastCubeProps.axis||j,o=e.showSurface,s=e.showContour;for(r=0;r<3;++r)for(o=o||e.surfaceProject[r],n=0;n<3;++n)s=s||e.contourProject[r][n];for(r=0;r<3;++r){var l=N.projections[r];for(n=0;n<16;++n)l[n]=0;for(n=0;n<4;++n)l[5*n]=1;l[5*r]=0,l[12+r]=e.axesBounds[+(a[r]>0)][r],M(l,t.model,l);var u=N.clipBounds[r];for(i=0;i<2;++i)for(n=0;n<3;++n)u[i][n]=t.clipBounds[i][n];u[0][r]=-1e8,u[1][r]=1e8}return N.showSurface=o,N.showContour=s,N}function s(t,e){t=t||{};var r=this.gl;r.disable(r.CULL_FACE),this._colorMap.bind(0);var n=B;n.model=t.model||D,n.view=t.view||D,n.projection=t.projection||D,n.lowerBound=[this.bounds[0][0],this.bounds[0][1],this.colorBounds[0]||this.bounds[0][2]],n.upperBound=[this.bounds[1][0],this.bounds[1][1],this.colorBounds[1]||this.bounds[1][2]],n.contourColor=this.contourColor[0],n.inverseModel=k(n.inverseModel,n.model);for(var i=0;i<2;++i)for(var a=n.clipBounds[i],s=0;s<3;++s)a[s]=Math.min(Math.max(this.clipBounds[i][s],-1e8),1e8);n.kambient=this.ambientLight,n.kdiffuse=this.diffuseLight,n.kspecular=this.specularLight,n.roughness=this.roughness,n.fresnel=this.fresnel,n.opacity=this.opacity,n.height=0,n.permutation=V,n.vertexColor=this.vertexColor;var l=U;for(M(l,n.view,n.model),M(l,n.projection,l),k(l,l),i=0;i<3;++i)n.eyePosition[i]=l[12+i]/l[15];var u=l[15];for(i=0;i<3;++i)u+=this.lightPosition[i]*l[4*i+3];for(i=0;i<3;++i){var c=l[12+i];for(s=0;s<3;++s)c+=l[4*s+i]*this.lightPosition[s];n.lightPosition[i]=c/u}var h=o(n,this);if(h.showSurface&&e===this.opacity<1){for(this._shader.bind(),this._shader.uniforms=n,this._vao.bind(),this.showSurface&&this._vertexCount&&this._vao.draw(r.TRIANGLES,this._vertexCount),i=0;i<3;++i)this.surfaceProject[i]&&this.vertexCount&&(this._shader.uniforms.model=h.projections[i],this._shader.uniforms.clipBounds=h.clipBounds[i],this._vao.draw(r.TRIANGLES,this._vertexCount));this._vao.unbind()}if(h.showContour&&!e){var f=this._contourShader;n.kambient=1,n.kdiffuse=0,n.kspecular=0,n.opacity=1,f.bind(),f.uniforms=n;var d=this._contourVAO;for(d.bind(),i=0;i<3;++i)for(f.uniforms.permutation=O[i],r.lineWidth(this.contourWidth[i]),s=0;s<this.contourLevels[i].length;++s)this._contourCounts[i][s]&&(s===this.highlightLevel[i]?(f.uniforms.contourColor=this.highlightColor[i],f.uniforms.contourTint=this.highlightTint[i]):0!==s&&s-1!==this.highlightLevel[i]||(f.uniforms.contourColor=this.contourColor[i],f.uniforms.contourTint=this.contourTint[i]),f.uniforms.height=this.contourLevels[i][s],d.draw(r.LINES,this._contourCounts[i][s],this._contourOffsets[i][s]));for(i=0;i<3;++i)for(f.uniforms.model=h.projections[i],f.uniforms.clipBounds=h.clipBounds[i],s=0;s<3;++s)if(this.contourProject[i][s]){f.uniforms.permutation=O[s],r.lineWidth(this.contourWidth[s]);for(var p=0;p<this.contourLevels[s].length;++p)p===this.highlightLevel[s]?(f.uniforms.contourColor=this.highlightColor[s],f.uniforms.contourTint=this.highlightTint[s]):0!==p&&p-1!==this.highlightLevel[s]||(f.uniforms.contourColor=this.contourColor[s],f.uniforms.contourTint=this.contourTint[s]),f.uniforms.height=this.contourLevels[s][p],d.draw(r.LINES,this._contourCounts[s][p],this._contourOffsets[s][p])}for(d=this._dynamicVAO,d.bind(),i=0;i<3;++i)if(0!==this._dynamicCounts[i])for(f.uniforms.model=n.model,f.uniforms.clipBounds=n.clipBounds,f.uniforms.permutation=O[i],r.lineWidth(this.dynamicWidth[i]),f.uniforms.contourColor=this.dynamicColor[i],f.uniforms.contourTint=this.dynamicTint[i],f.uniforms.height=this.dynamicLevel[i],d.draw(r.LINES,this._dynamicCounts[i],this._dynamicOffsets[i]),s=0;s<3;++s)this.contourProject[s][i]&&(f.uniforms.model=h.projections[s],f.uniforms.clipBounds=h.clipBounds[s],d.draw(r.LINES,this._dynamicCounts[i],this._dynamicOffsets[i]));d.unbind()}}function l(t,e){var r=e.shape.slice(),n=t.shape.slice();b.assign(t.lo(1,1).hi(r[0],r[1]),e),b.assign(t.lo(1).hi(r[0],1),e.hi(r[0],1)),b.assign(t.lo(1,n[1]-1).hi(r[0],1),e.lo(0,r[1]-1).hi(r[0],1)),b.assign(t.lo(0,1).hi(1,r[1]),e.hi(1)),b.assign(t.lo(n[0]-1,1).hi(1,r[1]),e.lo(r[0]-1)),t.set(0,0,e.get(0,0)),t.set(0,n[1]-1,e.get(0,r[1]-1)),t.set(n[0]-1,0,e.get(r[0]-1,0)),t.set(n[0]-1,n[1]-1,e.get(r[0]-1,r[1]-1))}function u(t,e){return Array.isArray(t)?[e(t[0]),e(t[1]),e(t[2])]:[e(t),e(t),e(t)]}function c(t){return Array.isArray(t)?3===t.length?[t[0],t[1],t[2],1]:[t[0],t[1],t[2],t[3]]:[0,0,0,1]}function h(t){if(Array.isArray(t)){if(Array.isArray(t))return[c(t[0]),c(t[1]),c(t[2])];var e=c(t);return[e.slice(),e.slice(),e.slice()]}}function f(t){var e=t.gl,r=E(e),n=C(e),i=L(e),o=I(e),s=p(e),l=m(e,[{buffer:s,size:4,stride:z,offset:0},{buffer:s,size:3,stride:z,offset:16},{buffer:s,size:3,stride:z,offset:28}]),u=p(e),c=m(e,[{buffer:u,size:4,stride:20,offset:0},{buffer:u,size:1,stride:20,offset:16}]),h=p(e),f=m(e,[{buffer:h,size:2,type:e.FLOAT}]),d=v(e,1,R,e.RGBA,e.UNSIGNED_BYTE);d.minFilter=e.LINEAR,d.magFilter=e.LINEAR;var g=new a(e,[0,0],[[0,0,0],[0,0,0]],r,n,s,l,d,i,o,u,c,h,f),y={levels:[[],[],[]]};for(var b in t)y[b]=t[b];return y.colormap=y.colormap||\"jet\",g.update(y),g}e.exports=f\n", ";var d=t(\"bit-twiddle\"),p=t(\"gl-buffer\"),m=t(\"gl-vao\"),v=t(\"gl-texture2d\"),g=t(\"typedarray-pool\"),y=t(\"colormap\"),b=t(\"ndarray-ops\"),x=t(\"ndarray-pack\"),_=t(\"ndarray\"),w=t(\"surface-nets\"),M=t(\"gl-mat4/multiply\"),k=t(\"gl-mat4/invert\"),A=t(\"binary-search-bounds\"),T=t(\"ndarray-gradient\"),S=t(\"./lib/shaders\"),E=S.createShader,L=S.createContourShader,C=S.createPickShader,I=S.createPickContourShader,z=40,D=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],P=[[0,0],[0,1],[1,0],[1,1],[1,0],[0,1]],O=[[0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0]];!function(){for(var t=0;t<3;++t){var e=O[t],r=(t+1)%3,n=(t+2)%3;e[r+0]=1,e[n+3]=1,e[t+6]=1}}();var R=256,F=a.prototype;F.isTransparent=function(){return this.opacity<1},F.isOpaque=function(){if(this.opacity>=1)return!0;for(var t=0;t<3;++t)if(this._contourCounts[t].length>0||this._dynamicCounts[t]>0)return!0;return!1},F.pickSlots=1,F.setPickBase=function(t){this.pickId=t};var j=[0,0,0],N={showSurface:!1,showContour:!1,projections:[D.slice(),D.slice(),D.slice()],clipBounds:[[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]]]},B={model:D,view:D,projection:D,inverseModel:D.slice(),lowerBound:[0,0,0],upperBound:[0,0,0],colorMap:0,clipBounds:[[0,0,0],[0,0,0]],height:0,contourTint:0,contourColor:[0,0,0,1],permutation:[1,0,0,0,1,0,0,0,1],zOffset:-1e-4,kambient:1,kdiffuse:1,kspecular:1,lightPosition:[1e3,1e3,1e3],eyePosition:[0,0,0],roughness:1,fresnel:1,opacity:1,vertexColor:0},U=D.slice(),V=[1,0,0,0,1,0,0,0,1];F.draw=function(t){return s.call(this,t,!1)},F.drawTransparent=function(t){return s.call(this,t,!0)};var H={model:D,view:D,projection:D,inverseModel:D,clipBounds:[[0,0,0],[0,0,0]],height:0,shape:[0,0],pickId:0,lowerBound:[0,0,0],upperBound:[0,0,0],zOffset:0,permutation:[1,0,0,0,1,0,0,0,1],lightPosition:[0,0,0],eyePosition:[0,0,0]};F.drawPick=function(t){t=t||{};var e=this.gl;e.disable(e.CULL_FACE);var r=H;r.model=t.model||D,r.view=t.view||D,r.projection=t.projection||D,r.shape=this._field[2].shape,r.pickId=this.pickId/255,r.lowerBound=this.bounds[0],r.upperBound=this.bounds[1],r.permutation=V;for(var n=0;n<2;++n)for(var i=r.clipBounds[n],a=0;a<3;++a)i[a]=Math.min(Math.max(this.clipBounds[n][a],-1e8),1e8);var s=o(r,this);if(s.showSurface){for(this._pickShader.bind(),this._pickShader.uniforms=r,this._vao.bind(),this._vao.draw(e.TRIANGLES,this._vertexCount),n=0;n<3;++n)this.surfaceProject[n]&&(this._pickShader.uniforms.model=s.projections[n],this._pickShader.uniforms.clipBounds=s.clipBounds[n],this._vao.draw(e.TRIANGLES,this._vertexCount));this._vao.unbind()}if(s.showContour){var l=this._contourPickShader;l.bind(),l.uniforms=r;var u=this._contourVAO;for(u.bind(),a=0;a<3;++a)for(e.lineWidth(this.contourWidth[a]),l.uniforms.permutation=O[a],n=0;n<this.contourLevels[a].length;++n)this._contourCounts[a][n]&&(l.uniforms.height=this.contourLevels[a][n],u.draw(e.LINES,this._contourCounts[a][n],this._contourOffsets[a][n]));for(n=0;n<3;++n)for(l.uniforms.model=s.projections[n],l.uniforms.clipBounds=s.clipBounds[n],a=0;a<3;++a)if(this.contourProject[n][a]){l.uniforms.permutation=O[a],e.lineWidth(this.contourWidth[a]);for(var c=0;c<this.contourLevels[a].length;++c)this._contourCounts[a][c]&&(l.uniforms.height=this.contourLevels[a][c],u.draw(e.LINES,this._contourCounts[a][c],this._contourOffsets[a][c]))}u.unbind()}},F.pick=function(t){if(!t)return null;if(t.id!==this.pickId)return null;var e=this._field[2].shape,r=this._pickResult,n=e[0]*(t.value[0]+(t.value[2]>>4)/16)/255,i=Math.floor(n),a=n-i,o=e[1]*(t.value[1]+(15&t.value[2])/16)/255,s=Math.floor(o),l=o-s;i+=1,s+=1;var u=r.position;u[0]=u[1]=u[2]=0;for(var c=0;c<2;++c)for(var h=c?a:1-a,f=0;f<2;++f)for(var d=f?l:1-l,p=i+c,m=s+f,v=h*d,g=0;g<3;++g)u[g]+=this._field[g].get(p,m)*v;for(var y=this._pickResult.level,b=0;b<3;++b)if(y[b]=A.le(this.contourLevels[b],u[b]),y[b]<0)this.contourLevels[b].length>0&&(y[b]=0);else if(y[b]<this.contourLevels[b].length-1){var x=this.contourLevels[b][y[b]],_=this.contourLevels[b][y[b]+1];Math.abs(x-u[b])>Math.abs(_-u[b])&&(y[b]+=1)}for(r.index[0]=a<.5?i:i+1,r.index[1]=l<.5?s:s+1,r.uv[0]=n/e[0],r.uv[1]=o/e[1],g=0;g<3;++g)r.dataCoordinate[g]=this._field[g].get(r.index[0],r.index[1]);return r},F.update=function(t){t=t||{},this.dirty=!0,\"contourWidth\"in t&&(this.contourWidth=u(t.contourWidth,Number)),\"showContour\"in t&&(this.showContour=u(t.showContour,Boolean)),\"showSurface\"in t&&(this.showSurface=!!t.showSurface),\"contourTint\"in t&&(this.contourTint=u(t.contourTint,Boolean)),\"contourColor\"in t&&(this.contourColor=h(t.contourColor)),\"contourProject\"in t&&(this.contourProject=u(t.contourProject,function(t){return u(t,Boolean)})),\"surfaceProject\"in t&&(this.surfaceProject=t.surfaceProject),\"dynamicColor\"in t&&(this.dynamicColor=h(t.dynamicColor)),\"dynamicTint\"in t&&(this.dynamicTint=u(t.dynamicTint,Number)),\"dynamicWidth\"in t&&(this.dynamicWidth=u(t.dynamicWidth,Number)),\"opacity\"in t&&(this.opacity=t.opacity),\"colorBounds\"in t&&(this.colorBounds=t.colorBounds),\"vertexColor\"in t&&(this.vertexColor=t.vertexColor?1:0);var e=t.field||t.coords&&t.coords[2]||null,r=!1;if(e||(e=this._field[2].shape[0]||this._field[2].shape[2]?this._field[2].lo(1,1).hi(this._field[2].shape[0]-2,this._field[2].shape[1]-2):this._field[2].hi(0,0)),\"field\"in t||\"coords\"in t){var n=(e.shape[0]+2)*(e.shape[1]+2);n>this._field[2].data.length&&(g.freeFloat(this._field[2].data),this._field[2].data=g.mallocFloat(d.nextPow2(n))),this._field[2]=_(this._field[2].data,[e.shape[0]+2,e.shape[1]+2]),l(this._field[2],e),this.shape=e.shape.slice();for(var a=this.shape,o=0;o<2;++o)this._field[2].size>this._field[o].data.length&&(g.freeFloat(this._field[o].data),this._field[o].data=g.mallocFloat(this._field[2].size)),this._field[o]=_(this._field[o].data,[a[0]+2,a[1]+2]);if(t.coords){var s=t.coords;if(!Array.isArray(s)||3!==s.length)throw new Error(\"gl-surface: invalid coordinates for x/y\");for(o=0;o<2;++o){var c=s[o];for(y=0;y<2;++y)if(c.shape[y]!==a[y])throw new Error(\"gl-surface: coords have incorrect shape\");l(this._field[o],c)}}else if(t.ticks){var f=t.ticks;if(!Array.isArray(f)||2!==f.length)throw new Error(\"gl-surface: invalid ticks\");for(o=0;o<2;++o){var p=f[o];if((Array.isArray(p)||p.length)&&(p=_(p)),p.shape[0]!==a[o])throw new Error(\"gl-surface: invalid tick length\");var m=_(p.data,a);m.stride[o]=p.stride[0],m.stride[1^o]=0,l(this._field[o],m)}}else{for(o=0;o<2;++o){var v=[0,0];v[o]=1,this._field[o]=_(this._field[o].data,[a[0]+2,a[1]+2],v,0)}this._field[0].set(0,0,0);for(var y=0;y<a[0];++y)this._field[0].set(y+1,0,y);for(this._field[0].set(a[0]+1,0,a[0]-1),this._field[1].set(0,0,0),y=0;y<a[1];++y)this._field[1].set(0,y+1,y);this._field[1].set(0,a[1]+1,a[1]-1)}var b=this._field,x=_(g.mallocFloat(3*b[2].size*2),[3,a[0]+2,a[1]+2,2]);for(o=0;o<3;++o)T(x.pick(o),b[o],\"mirror\");var M=_(g.mallocFloat(3*b[2].size),[a[0]+2,a[1]+2,3]);for(o=0;o<a[0]+2;++o)for(y=0;y<a[1]+2;++y){var k=x.get(0,o,y,0),A=x.get(0,o,y,1),S=x.get(1,o,y,0),E=x.get(1,o,y,1),L=x.get(2,o,y,0),C=x.get(2,o,y,1),I=S*C-E*L,z=L*A-C*k,D=k*E-A*S,O=Math.sqrt(I*I+z*z+D*D);O<1e-8?(O=Math.max(Math.abs(I),Math.abs(z),Math.abs(D)),O<1e-8?(D=1,z=I=0,O=1):O=1/O):O=1/Math.sqrt(O),M.set(o,y,0,I*O),M.set(o,y,1,z*O),M.set(o,y,2,D*O)}g.free(x.data);var R=[1/0,1/0,1/0],F=[-1/0,-1/0,-1/0],j=1/0,N=-1/0,B=(a[0]-1)*(a[1]-1)*6,U=g.mallocFloat(d.nextPow2(10*B)),V=0,H=0;for(o=0;o<a[0]-1;++o)t:for(y=0;y<a[1]-1;++y){for(var q=0;q<2;++q)for(var G=0;G<2;++G)for(var Y=0;Y<3;++Y){var W=this._field[Y].get(1+o+q,1+y+G);if(isNaN(W)||!isFinite(W))continue t}for(Y=0;Y<6;++Y){var X=o+P[Y][0],Z=y+P[Y][1],J=this._field[0].get(X+1,Z+1),K=this._field[1].get(X+1,Z+1);W=this._field[2].get(X+1,Z+1);var Q=W;I=M.get(X+1,Z+1,0),z=M.get(X+1,Z+1,1),D=M.get(X+1,Z+1,2),t.intensity&&(Q=t.intensity.get(X,Z)),U[V++]=X,U[V++]=Z,U[V++]=J,U[V++]=K,U[V++]=W,U[V++]=0,U[V++]=Q,U[V++]=I,U[V++]=z,U[V++]=D,R[0]=Math.min(R[0],J),R[1]=Math.min(R[1],K),R[2]=Math.min(R[2],W),j=Math.min(j,Q),F[0]=Math.max(F[0],J),F[1]=Math.max(F[1],K),F[2]=Math.max(F[2],W),N=Math.max(N,Q),H+=1}}for(t.intensityBounds&&(j=+t.intensityBounds[0],N=+t.intensityBounds[1]),o=6;o<V;o+=10)U[o]=(U[o]-j)/(N-j);this._vertexCount=H,this._coordinateBuffer.update(U.subarray(0,V)),g.freeFloat(U),g.free(M.data),this.bounds=[R,F],this.intensity=t.intensity||this._field[2],this.intensityBounds[0]===j&&this.intensityBounds[1]===N||(r=!0),this.intensityBounds=[j,N]}if(\"levels\"in t){var $=t.levels;for($=Array.isArray($[0])?$.slice():[[],[],$],o=0;o<3;++o)$[o]=$[o].slice(),$.sort(function(t,e){return t-e});t:for(o=0;o<3;++o){if($[o].length!==this.contourLevels[o].length){r=!0;break}for(y=0;y<$[o].length;++y)if($[o][y]!==this.contourLevels[o][y]){r=!0;break t}}this.contourLevels=$}if(r){b=this._field,a=this.shape;for(var tt=[],et=0;et<3;++et){$=this.contourLevels[et];var rt=[],nt=[],it=[0,0,0];for(o=0;o<$.length;++o){var at=w(this._field[et],$[o]);rt.push(tt.length/5|0),H=0;t:for(y=0;y<at.cells.length;++y){var ot=at.cells[y];for(Y=0;Y<2;++Y){var st=at.positions[ot[Y]],lt=st[0],ut=0|Math.floor(lt),ct=lt-ut,ht=st[1],ft=0|Math.floor(ht),dt=ht-ft,pt=!1;e:for(var mt=0;mt<3;++mt){it[mt]=0;var vt=(et+mt+1)%3;for(q=0;q<2;++q){var gt=q?ct:1-ct;for(X=0|Math.min(Math.max(ut+q,0),a[0]),G=0;G<2;++G){var yt=G?dt:1-dt;if(Z=0|Math.min(Math.max(ft+G,0),a[1]),W=mt<2?this._field[vt].get(X,Z):(this.intensity.get(X,Z)-this.intensityBounds[0])/(this.intensityBounds[1]-this.intensityBounds[0]),!isFinite(W)||isNaN(W)){pt=!0;break e}var bt=gt*yt;it[mt]+=bt*W}}}if(pt){if(Y>0){for(var xt=0;xt<5;++xt)tt.pop();H-=1}continue t}tt.push(it[0],it[1],st[0],st[1],it[2]),H+=1}}nt.push(H)}this._contourOffsets[et]=rt,this._contourCounts[et]=nt}var _t=g.mallocFloat(tt.length);for(o=0;o<tt.length;++o)_t[o]=tt[o];this._contourBuffer.update(_t),g.freeFloat(_t)}t.colormap&&this._colorMap.setPixels(i(t.colormap))},F.dispose=function(){this._shader.dispose(),this._vao.dispose(),this._coordinateBuffer.dispose(),this._colorMap.dispose(),this._contourBuffer.dispose(),this._contourVAO.dispose(),this._contourShader.dispose(),this._contourPickShader.dispose(),this._dynamicBuffer.dispose(),this._dynamicVAO.dispose();for(var t=0;t<3;++t)g.freeFloat(this._field[t].data)},F.highlight=function(t){if(!t)return this._dynamicCounts=[0,0,0],this.dyanamicLevel=[NaN,NaN,NaN],void(this.highlightLevel=[-1,-1,-1]);for(var e=0;e<3;++e)this.enableHighlight[e]?this.highlightLevel[e]=t.level[e]:this.highlightLevel[e]=-1;var r;if(r=this.snapToData?t.dataCoordinate:t.position,this.enableDynamic[0]&&r[0]!==this.dynamicLevel[0]||this.enableDynamic[1]&&r[1]!==this.dynamicLevel[1]||this.enableDynamic[2]&&r[2]!==this.dynamicLevel[2]){for(var n=0,i=this.shape,a=g.mallocFloat(12*i[0]*i[1]),o=0;o<3;++o)if(this.enableDynamic[o]){this.dynamicLevel[o]=r[o];var s=(o+1)%3,l=(o+2)%3,u=this._field[o],c=this._field[s],h=this._field[l],f=(this.intensity,w(u,r[o])),d=f.cells,p=f.positions;for(this._dynamicOffsets[o]=n,e=0;e<d.length;++e)for(var m=d[e],v=0;v<2;++v){var y=p[m[v]],b=+y[0],x=0|b,_=0|Math.min(x+1,i[0]),M=b-x,k=1-M,A=+y[1],T=0|A,S=0|Math.min(T+1,i[1]),E=A-T,L=1-E,C=k*L,I=k*E,z=M*L,D=M*E,P=C*c.get(x,T)+I*c.get(x,S)+z*c.get(_,T)+D*c.get(_,S),O=C*h.get(x,T)+I*h.get(x,S)+z*h.get(_,T)+D*h.get(_,S);if(isNaN(P)||isNaN(O)){v&&(n-=1);break}a[2*n+0]=P,a[2*n+1]=O,n+=1}this._dynamicCounts[o]=n-this._dynamicOffsets[o]}else this.dynamicLevel[o]=NaN,this._dynamicCounts[o]=0;this._dynamicBuffer.update(a.subarray(0,2*n)),g.freeFloat(a)}}},{\"./lib/shaders\":265,\"binary-search-bounds\":66,\"bit-twiddle\":67,colormap:99,\"gl-buffer\":156,\"gl-mat4/invert\":181,\"gl-mat4/multiply\":183,\"gl-texture2d\":267,\"gl-vao\":271,ndarray:467,\"ndarray-gradient\":458,\"ndarray-ops\":461,\"ndarray-pack\":462,\"surface-nets\":531,\"typedarray-pool\":541}],267:[function(t,e,r){\"use strict\";function n(t){g=[t.LINEAR,t.NEAREST_MIPMAP_LINEAR,t.LINEAR_MIPMAP_NEAREST,t.LINEAR_MIPMAP_NEAREST],y=[t.NEAREST,t.LINEAR,t.NEAREST_MIPMAP_NEAREST,t.NEAREST_MIPMAP_LINEAR,t.LINEAR_MIPMAP_NEAREST,t.LINEAR_MIPMAP_LINEAR],b=[t.REPEAT,t.CLAMP_TO_EDGE,t.MIRRORED_REPEAT]}function i(t){return\"undefined\"!=typeof HTMLCanvasElement&&t instanceof HTMLCanvasElement||\"undefined\"!=typeof HTMLImageElement&&t instanceof HTMLImageElement||\"undefined\"!=typeof HTMLVideoElement&&t instanceof HTMLVideoElement||\"undefined\"!=typeof ImageData&&t instanceof ImageData}function a(t,e,r){var n=t.gl,i=n.getParameter(n.MAX_TEXTURE_SIZE);if(e<0||e>i||r<0||r>i)throw new Error(\"gl-texture2d: Invalid texture size\");return t._shape=[e,r],t.bind(),n.texImage2D(n.TEXTURE_2D,0,t.format,e,r,0,t.format,t.type,null),t._mipLevels=[0],t}function o(t,e,r,n,i,a){this.gl=t,this.handle=e,this.format=i,this.type=a,this._shape=[r,n],this._mipLevels=[0],this._magFilter=t.NEAREST,this._minFilter=t.NEAREST,this._wrapS=t.CLAMP_TO_EDGE,this._wrapT=t.CLAMP_TO_EDGE,this._anisoSamples=1;var o=this,s=[this._wrapS,this._wrapT];Object.defineProperties(s,[{get:function(){return o._wrapS},set:function(t){return o.wrapS=t}},{get:function(){return o._wrapT},set:function(t){return o.wrapT=t}}]),this._wrapVector=s;var l=[this._shape[0],this._shape[1]];Object.defineProperties(l,[{get:function(){return o._shape[0]},set:function(t){return o.width=t}},{get:function(){return o._shape[1]},set:function(t){return o.height=t}}]),this._shapeVector=l}function s(t,e){return 3===t.length?1===e[2]&&e[1]===t[0]*t[2]&&e[0]===t[2]:1===e[0]&&e[1]===t[0]}function l(t,e,r,n,i,a,o,l){var u=l.dtype,c=l.shape.slice();if(c.length<2||c.length>3)throw new Error(\"gl-texture2d: Invalid ndarray, must be 2d or 3d\");var h=0,f=0,d=s(c,l.stride.slice());\"float32\"===u?h=t.FLOAT:\"float64\"===u?(h=t.FLOAT,d=!1,u=\"float32\"):\"uint8\"===u?h=t.UNSIGNED_BYTE:(h=t.UNSIGNED_BYTE,d=!1,u=\"uint8\");if(2===c.length)f=t.LUMINANCE,c=[c[0],c[1],1],l=p(l.data,c,[l.stride[0],l.stride[1],1],l.offset);else{if(3!==c.length)throw new Error(\"gl-texture2d: Invalid shape for texture\");if(1===c[2])f=t.ALPHA;else if(2===c[2])f=t.LUMINANCE_ALPHA;else if(3===c[2])f=t.RGB;else{if(4!==c[2])throw new Error(\"gl-texture2d: Invalid shape for pixel coords\");f=t.RGBA}c[2]}if(f!==t.LUMINANCE&&f!==t.ALPHA||i!==t.LUMINANCE&&i!==t.ALPHA||(f=i),f!==i)throw new Error(\"gl-texture2d: Incompatible texture format for setPixels\");var g=l.size,y=o.indexOf(n)<0;if(y&&o.push(n),h===a&&d)0===l.offset&&l.data.length===g?y?t.texImage2D(t.TEXTURE_2D,n,i,c[0],c[1],0,i,a,l.data):t.texSubImage2D(t.TEXTURE_2D,n,e,r,c[0],c[1],i,a,l.data):y?t.texImage2D(t.TEXTURE_2D,n,i,c[0],c[1],0,i,a,l.data.subarray(l.offset,l.offset+g)):t.texSubImage2D(t.TEXTURE_2D,n,e,r,c[0],c[1],i,a,l.data.subarray(l.offset,l.offset+g));else{var b;b=a===t.FLOAT?v.mallocFloat32(g):v.mallocUint8(g);var _=p(b,c,[c[2],c[2]*c[0],1]);h===t.FLOAT&&a===t.UNSIGNED_BYTE?x(_,l):m.assign(_,l),y?t.texImage2D(t.TEXTURE_2D,n,i,c[0],c[1],0,i,a,b.subarray(0,g)):t.texSubImage2D(t.TEXTURE_2D,n,e,r,c[0],c[1],i,a,b.subarray(0,g)),a===t.FLOAT?v.freeFloat32(b):v.freeUint8(b)}}function u(t){var e=t.createTexture();return t.bindTexture(t.TEXTURE_2D,e),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),e}function c(t,e,r,n,i){var a=t.getParameter(t.MAX_TEXTURE_SIZE);if(e<0||e>a||r<0||r>a)throw new Error(\"gl-texture2d: Invalid texture shape\");if(i===t.FLOAT&&!t.getExtension(\"OES_texture_float\"))throw new Error(\"gl-texture2d: Floating point textures not supported on this platform\");var s=u(t);return t.texImage2D(t.TEXTURE_2D,0,n,e,r,0,n,i,null),new o(t,s,e,r,n,i)}function h(t,e,r,n,i,a){var s=u(t);return t.texImage2D(t.TEXTURE_2D,0,i,i,a,e),new o(t,s,r,n,i,a)}function f(t,e){var r=e.dtype,n=e.shape.slice(),i=t.getParameter(t.MAX_TEXTURE_SIZE);if(n[0]<0||n[0]>i||n[1]<0||n[1]>i)throw new Error(\"gl-texture2d: Invalid texture size\");var a=s(n,e.stride.slice()),l=0;\"float32\"===r?l=t.FLOAT:\"float64\"===r?(l=t.FLOAT,a=!1,r=\"float32\"):\"uint8\"===r?l=t.UNSIGNED_BYTE:(l=t.UNSIGNED_BYTE,a=!1,r=\"uint8\");var c=0;if(2===n.length)c=t.LUMINANCE,n=[n[0],n[1],1],e=p(e.data,n,[e.stride[0],e.stride[1],1],e.offset);else{if(3!==n.length)throw new Error(\"gl-texture2d: Invalid shape for texture\");if(1===n[2])c=t.ALPHA;else if(2===n[2])c=t.LUMINANCE_ALPHA;else if(3===n[2])c=t.RGB;else{if(4!==n[2])throw new Error(\"gl-texture2d: Invalid shape for pixel coords\");c=t.RGBA}}l!==t.FLOAT||t.getExtension(\"OES_texture_float\")||(l=t.UNSIGNED_BYTE,a=!1);var h,f,d=e.size;if(a)h=0===e.offset&&e.data.length===d?e.data:e.data.subarray(e.offset,e.offset+d);else{var g=[n[2],n[2]*n[0],1];f=v.malloc(d,r);var y=p(f,n,g,0);\"float32\"!==r&&\"float64\"!==r||l!==t.UNSIGNED_BYTE?m.assign(y,e):x(y,e),h=f.subarray(0,d)}var b=u(t);return t.texImage2D(t.TEXTURE_2D,0,c,n[0],n[1],0,c,l,h),a||v.free(f),new o(t,b,n[0],n[1],c,l)}function d(t){if(arguments.length<=1)throw new Error(\"gl-texture2d: Missing arguments for texture2d constructor\");if(g||n(t),\"number\"==typeof arguments[1])return c(t,arguments[1],arguments[2],arguments[3]||t.RGBA,arguments[4]||t.UNSIGNED_BYTE);if(Array.isArray(arguments[1]))return c(t,0|arguments[1][0],0|arguments[1][1],arguments[2]||t.RGBA,arguments[3]||t.UNSIGNED_BYTE);if(\"object\"==typeof arguments[1]){var e=arguments[1],r=i(e)?e:e.raw;if(r)return h(t,r,0|e.width,0|e.height,arguments[2]||t.RGBA,arguments[3]||t.UNSIGNED_BYTE);if(e.shape&&e.data&&e.stride)return f(t,e)}throw new Error(\"gl-texture2d: Invalid arguments for texture2d constructor\")}var p=t(\"ndarray\"),m=t(\"ndarray-ops\"),v=t(\"typedarray-pool\");e.exports=d;var g=null,y=null,b=null,x=function(t,e){m.muls(t,e,255)},_=o.prototype;Object.defineProperties(_,{minFilter:{get:function(){return this._minFilter},set:function(t){this.bind();var e=this.gl;if(this.type===e.FLOAT&&g.indexOf(t)>=0&&(e.getExtension(\"OES_texture_float_linear\")||(t=e.NEAREST)),y.indexOf(t)<0)throw new Error(\"gl-texture2d: Unknown filter mode \"+t);return e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,t),this._minFilter=t}},magFilter:{get:function(){return this._magFilter},set:function(t){this.bind();var e=this.gl;if(this.type===e.FLOAT&&g.indexOf(t)>=0&&(e.getExtension(\"OES_texture_float_linear\")||(t=e.NEAREST)),y.indexOf(t)<0)throw new Error(\"gl-texture2d: Unknown filter mode \"+t);return e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,t),this._magFilter=t}},mipSamples:{get:function(){return this._anisoSamples},set:function(t){var e=this._anisoSamples;if(this._anisoSamples=0|Math.max(t,1),e!==this._anisoSamples){var r=this.gl.getExtension(\"EXT_texture_filter_anisotropic\");r&&this.gl.texParameterf(this.gl.TEXTURE_2D,r.TEXTURE_MAX_ANISOTROPY_EXT,this._anisoSamples)}return this._anisoSamples}},wrapS:{get:function(){return this._wrapS},set:function(t){if(this.bind(),b.indexOf(t)<0)throw new Error(\"gl-texture2d: Unknown wrap mode \"+t);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,t),this._wrapS=t}},wrapT:{get:function(){return this._wrapT},set:function(t){if(this.bind(),b.indexOf(t)<0)throw new Error(\"gl-texture2d: Unknown wrap mode \"+t);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,t),this._wrapT=t}},wrap:{get:function(){return this._wrapVector},set:function(t){if(Array.isArray(t)||(t=[t,t]),2!==t.length)throw new Error(\"gl-texture2d: Must specify wrap mode for rows and columns\");for(var e=0;e<2;++e)if(b.indexOf(t[e])<0)throw new Error(\"gl-texture2d: Unknown wrap mode \"+t);this._wrapS=t[0],this._wrapT=t[1];var r=this.gl;return this.bind(),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,this._wrapS),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,this._wrapT),t}},shape:{get:function(){return this._shapeVector},set:function(t){if(Array.isArray(t)){if(2!==t.length)throw new Error(\"gl-texture2d: Invalid texture shape\")}else t=[0|t,0|t];return a(this,0|t[0],0|t[1]),[0|t[0],0|t[1]]}},width:{get:function(){return this._shape[0]},set:function(t){return t|=0,a(this,t,this._shape[1]),t}},height:{get:function(){return this._shape[1]},set:function(t){return t|=0,a(this,this._shape[0],t),t}}}),_.bind=function(t){var e=this.gl;return void 0!==t&&e.activeTexture(e.TEXTURE0+(0|t)),e.bindTexture(e.TEXTURE_2D,this.handle),void 0!==t?0|t:e.getParameter(e.ACTIVE_TEXTURE)-e.TEXTURE0},_.dispose=function(){this.gl.deleteTexture(this.handle)},_.generateMipmap=function(){this.bind(),this.gl.generateMipmap(this.gl.TEXTURE_2D);for(var t=Math.min(this._shape[0],this._shape[1]),e=0;t>0;++e,t>>>=1)this._mipLevels.indexOf(e)<0&&this._mipLevels.push(e)},_.setPixels=function(t,e,r,n){var a=this.gl;this.bind(),Array.isArray(e)?(n=r,r=0|e[1],e=0|e[0]):(e=e||0,r=r||0),n=n||0;var o=i(t)?t:t.raw;if(o){this._mipLevels.indexOf(n)<0?(a.texImage2D(a.TEXTURE_2D,0,this.format,this.format,this.type,o),this._mipLevels.push(n)):a.texSubImage2D(a.TEXTURE_2D,n,e,r,this.format,this.type,o)}else{if(!(t.shape&&t.stride&&t.data))throw new Error(\"gl-texture2d: Unsupported data type\");if(t.shape.length<2||e+t.shape[1]>this._shape[1]>>>n||r+t.shape[0]>this._shape[0]>>>n||e<0||r<0)throw new Error(\"gl-texture2d: Texture dimensions are out of bounds\");l(a,e,r,n,this.format,this.type,this._mipLevels,t)}}},{ndarray:467,\"ndarray-ops\":461,\"typedarray-pool\":541}],268:[function(t,e,r){\"use strict\";function n(t,e,r){e?e.bind():t.bindBuffer(t.ELEMENT_ARRAY_BUFFER,null);var n=0|t.getParameter(t.MAX_VERTEX_ATTRIBS);if(r){if(r.length>n)throw new Error(\"gl-vao: Too many vertex attributes\");for(var i=0;i<r.length;++i){var a=r[i];if(a.buffer){var o=a.buffer,s=a.size||4,l=a.type||t.FLOAT,u=!!a.normalized,c=a.stride||0,h=a.offset||0;o.bind(),t.enableVertexAttribArray(i),t.vertexAttribPointer(i,s,l,u,c,h)}else{if(\"number\"==typeof a)t.vertexAttrib1f(i,a);else if(1===a.length)t.vertexAttrib1f(i,a[0]);else if(2===a.length)t.vertexAttrib2f(i,a[0],a[1]);else if(3===a.length)t.vertexAttrib3f(i,a[0],a[1],a[2]);else{if(4!==a.length)throw new Error(\"gl-vao: Invalid vertex attribute\");t.vertexAttrib4f(i,a[0],a[1],a[2],a[3])}t.disableVertexAttribArray(i)}}for(;i<n;++i)t.disableVertexAttribArray(i)}else{t.bindBuffer(t.ARRAY_BUFFER,null);for(var i=0;i<n;++i)t.disableVertexAttribArray(i)}}e.exports=n},{}],269:[function(t,e,r){\"use strict\";function n(t){this.gl=t,this._elements=null,this._attributes=null,this._elementsType=t.UNSIGNED_SHORT}function i(t){return new n(t)}var a=t(\"./do-bind.js\");n.prototype.bind=function(){a(this.gl,this._elements,this._attributes)},n.prototype.update=function(t,e,r){this._elements=e,this._attributes=t,this._elementsType=r||this.gl.UNSIGNED_SHORT},n.prototype.dispose=function(){},n.prototype.unbind=function(){},n.prototype.draw=function(t,e,r){r=r||0;var n=this.gl;this._elements?n.drawElements(t,e,this._elementsType,r):n.drawArrays(t,r,e)},e.exports=i},{\"./do-bind.js\":268}],270:[function(t,e,r){\"use strict\";function n(t,e,r,n,i,a){this.location=t,this.dimension=e,this.a=r,this.b=n,this.c=i,this.d=a}function i(t,e,r){this.gl=t,this._ext=e,this.handle=r,this._attribs=[],this._useElements=!1,this._elementsType=t.UNSIGNED_SHORT}function a(t,e){return new i(t,e,e.createVertexArrayOES())}var o=t(\"./do-bind.js\");n.prototype.bind=function(t){switch(this.dimension){case 1:t.vertexAttrib1f(this.location,this.a);break;case 2:t.vertexAttrib2f(this.location,this.a,this.b);break;case 3:t.vertexAttrib3f(this.location,this.a,this.b,this.c);break;case 4:t.vertexAttrib4f(this.location,this.a,this.b,this.c,this.d)}},i.prototype.bind=function(){this._ext.bindVertexArrayOES(this.handle);for(var t=0;t<this._attribs.length;++t)this._attribs[t].bind(this.gl)},i.prototype.unbind=function(){this._ext.bindVertexArrayOES(null)},i.prototype.dispose=function(){this._ext.deleteVertexArrayOES(this.handle)},i.prototype.update=function(t,e,r){if(this.bind(),o(this.gl,e,t),this.unbind(),this._attribs.length=0,t)for(var i=0;i<t.length;++i){var a=t[i];\"number\"==typeof a?this._attribs.push(new n(i,1,a)):Array.isArray(a)&&this._attribs.push(new n(i,a.length,a[0],a[1],a[2],a[3]))}this._useElements=!!e,this._elementsType=r||this.gl.UNSIGNED_SHORT},i.prototype.draw=function(t,e,r){r=r||0;var n=this.gl;this._useElements?n.drawElements(t,e,this._elementsType,r):n.drawArrays(t,r,e)},e.exports=a},{\"./do-bind.js\":268}],271:[function(t,e,r){\"use strict\";function n(t){this.bindVertexArrayOES=t.bindVertexArray.bind(t),this.createVertexArrayOES=t.createVertexArray.bind(t),this.deleteVertexArrayOES=t.deleteVertexArray.bind(t)}function i(t,e,r,i){var s,l=t.createVertexArray?new n(t):t.getExtension(\"OES_vertex_array_object\");return s=l?a(t,l):o(t),s.update(e,r,i),s}var a=t(\"./lib/vao-native.js\"),o=t(\"./lib/vao-emulated.js\");e.exports=i},{\"./lib/vao-emulated.js\":269,\"./lib/vao-native.js\":270}],272:[function(t,e,r){function n(t,e,r){var n=e[0],i=e[1],a=e[2],o=r[0],s=r[1],l=r[2];return t[0]=i*l-a*s,t[1]=a*o-n*l,t[2]=n*s-i*o,t}e.exports=n},{}],273:[function(t,e,r){function n(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}e.exports=n},{}],274:[function(t,e,r){function n(t){var e=t[0],r=t[1],n=t[2];return Math.sqrt(e*e+r*r+n*n)}e.exports=n},{}],275:[function(t,e,r){function n(t,e,r,n){var i=e[0],a=e[1],o=e[2];return t[0]=i+n*(r[0]-i),t[1]=a+n*(r[1]-a),t[2]=o+n*(r[2]-o),t}e.exports=n},{}],276:[function(t,e,r){function n(t,e){var r=e[0],n=e[1],i=e[2],a=r*r+n*n+i*i;return a>0&&(a=1/Math.sqrt(a),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a),t}e.exports=n},{}],277:[function(t,e,r){function n(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3];return t[0]=r[0]*n+r[4]*i+r[8]*a+r[12]*o,t[1]=r[1]*n+r[5]*i+r[9]*a+r[13]*o,t[2]=r[2]*n+r[6]*i+r[10]*a+r[14]*o,t[3]=r[3]*n+r[7]*i+r[11]*a+r[15]*o,t}e.exports=n},{}],278:[function(t,e,r){function n(t,e,r,n){return i[0]=n,i[1]=r,i[2]=e,i[3]=t,a[0]}e.exports=n;var i=new Uint8Array(4),a=new Float32Array(i.buffer)},{}],279:[function(t,e,r){function n(t){for(var e=Array.isArray(t)?t:i(t),r=0;r<e.length;r++){var n=e[r];if(\"preprocessor\"===n.type){var o=n.data.match(/\\#define\\s+SHADER_NAME(_B64)?\\s+(.+)$/);if(o&&o[2]){var s=o[1],l=o[2];return(s?a(l):l).trim()}}}}var i=t(\"glsl-tokenizer\"),a=t(\"atob-lite\");e.exports=n},{\"atob-lite\":48,\"glsl-tokenizer\":286}],280:[function(t,e,r){function n(t){function e(t){t.length&&V.push({type:M[B],data:t,position:G,line:H,column:q})}function r(t){j=0,X+=t,F=X.length;for(var e;O=X[j],j<F;){switch(e=j,B){case h:j=E();break;case f:j=S();break;case d:j=T();break;case p:j=L();break;case m:j=z();break;case w:j=I();break;case v:j=D();break;case c:j=P();break;case x:j=A();break;case u:j=k()}if(e!==j)switch(X[e]){case\"\\n\":q=0,++H;break;default:++q}}return N+=j,X=X.slice(j),V}function n(t){return U.length&&e(U.join(\"\")),B=_,e(\"(eof)\"),V}function k(){return U=U.length?[]:U,\"/\"===R&&\"*\"===O?(G=N+j-1,B=h,R=O,j+1):\"/\"===R&&\"/\"===O?(G=N+j-1,B=f,R=O,j+1):\"#\"===O?(B=d,G=N+j,j):/\\s/.test(O)?(B=x,G=N+j,j):(Y=/\\d/.test(O),W=/[^\\w_]/.test(O),G=N+j,B=Y?m:W?p:c,j)}function A(){return/[^\\s]/g.test(O)?(e(U.join(\"\")),B=u,j):(U.push(O),R=O,j+1)}function T(){return\"\\r\"!==O&&\"\\n\"!==O||\"\\\\\"===R?(U.push(O),R=O,j+1):(e(U.join(\"\")),B=u,j)}function S(){return T()}function E(){return\"/\"===O&&\"*\"===R?(U.push(O),e(U.join(\"\")),B=u,j+1):(U.push(O),R=O,j+1)}function L(){if(\".\"===R&&/\\d/.test(O))return B=v,j;if(\"/\"===R&&\"*\"===O)return B=h,j;if(\"/\"===R&&\"/\"===O)return B=f,j;if(\".\"===O&&U.length){for(;C(U););return B=v,j}if(\";\"===O||\")\"===O||\"(\"===O){if(U.length)for(;C(U););return e(O),B=u,j+1}var t=2===U.length&&\"=\"!==O;if(/[\\w_\\d\\s]/.test(O)||t){for(;C(U););return B=u,j}return U.push(O),R=O,j+1}function C(t){for(var r,n,i=0;;){if(r=a.indexOf(t.slice(0,t.length+i).join(\"\")),n=a[r],-1===r){if(i--+t.length>0)continue;n=t.slice(0,1).join(\"\")}return e(n),G+=n.length,U=U.slice(n.length),U.length}}function I(){return/[^a-fA-F0-9]/.test(O)?(e(U.join(\"\")),B=u,j):(U.push(O),R=O,j+1)}function z(){return\".\"===O?(U.push(O),B=v,R=O,j+1):/[eE]/.test(O)?(U.push(O),B=v,R=O,j+1):\"x\"===O&&1===U.length&&\"0\"===U[0]?(B=w,U.push(O),R=O,j+1):/[^\\d]/.test(O)?(e(U.join(\"\")),B=u,j):(U.push(O),R=O,j+1)}function D(){return\"f\"===O&&(U.push(O),R=O,j+=1),/[eE]/.test(O)?(U.push(O),R=O,j+1):\"-\"===O&&/[eE]/.test(R)?(U.push(O),R=O,j+1):/[^\\d]/.test(O)?(e(U.join(\"\")),B=u,j):(U.push(O),R=O,j+1)}function P(){if(/[^\\d\\w_]/.test(O)){var t=U.join(\"\");return B=J.indexOf(t)>-1?b:Z.indexOf(t)>-1?y:g,e(U.join(\"\")),B=u,j}return U.push(O),R=O,j+1}var O,R,F,j=0,N=0,B=u,U=[],V=[],H=1,q=0,G=0,Y=!1,W=!1,X=\"\";t=t||{};var Z=o,J=i;return\"300 es\"===t.version&&(Z=l,J=s),function(t){return V=[],null!==t?r(t.replace?t.replace(/\\r\\n/g,\"\\n\"):t):n()}}e.exports=n;var i=t(\"./lib/literals\"),a=t(\"./lib/operators\"),o=t(\"./lib/builtins\"),s=t(\"./lib/literals-300es\"),l=t(\"./lib/builtins-300es\"),u=999,c=9999,h=0,f=1,d=2,p=3,m=4,v=5,g=6,y=7,b=8,x=9,_=10,w=11,M=[\"block-comment\",\"line-comment\",\"preprocessor\",\"operator\",\"integer\",\"float\",\"ident\",\"builtin\",\"keyword\",\"whitespace\",\"eof\",\"integer\"]},{\"./lib/builtins\":282,\"./lib/builtins-300es\":281,\"./lib/literals\":284,\"./lib/literals-300es\":283,\"./lib/operators\":285}],281:[function(t,e,r){var n=t(\"./builtins\");n=n.slice().filter(function(t){return!/^(gl\\_|texture)/.test(t)}),e.exports=n.concat([\"gl_VertexID\",\"gl_InstanceID\",\"gl_Position\",\"gl_PointSize\",\"gl_FragCoord\",\"gl_FrontFacing\",\"gl_FragDepth\",\"gl_PointCoord\",\"gl_MaxVertexAttribs\",\"gl_MaxVertexUniformVectors\",\"gl_MaxVertexOutputVectors\",\"gl_MaxFragmentInputVectors\",\"gl_MaxVertexTextureImageUnits\",\"gl_MaxCombinedTextureImageUnits\",\"gl_MaxTextureImageUnits\",\"gl_MaxFragmentUniformVectors\",\"gl_MaxDrawBuffers\",\"gl_MinProgramTexelOffset\",\"gl_MaxProgramTexelOffset\",\"gl_DepthRangeParameters\",\"gl_DepthRange\",\"trunc\",\"round\",\"roundEven\",\"isnan\",\"isinf\",\"floatBitsToInt\",\"floatBitsToUint\",\"intBitsToFloat\",\"uintBitsToFloat\",\"packSnorm2x16\",\"unpackSnorm2x16\",\"packUnorm2x16\",\"unpackUnorm2x16\",\"packHalf2x16\",\"unpackHalf2x16\",\"outerProduct\",\"transpose\",\"determinant\",\"inverse\",\"texture\",\"textureSize\",\"textureProj\",\"textureLod\",\"textureOffset\",\"texelFetch\",\"texelFetchOffset\",\"textureProjOffset\",\"textureLodOffset\",\"textureProjLod\",\"textureProjLodOffset\",\"textureGrad\",\"textureGradOffset\",\"textureProjGrad\",\"textureProjGradOffset\"])},{\"./builtins\":282}],282:[function(t,e,r){\n", "e.exports=[\"abs\",\"acos\",\"all\",\"any\",\"asin\",\"atan\",\"ceil\",\"clamp\",\"cos\",\"cross\",\"dFdx\",\"dFdy\",\"degrees\",\"distance\",\"dot\",\"equal\",\"exp\",\"exp2\",\"faceforward\",\"floor\",\"fract\",\"gl_BackColor\",\"gl_BackLightModelProduct\",\"gl_BackLightProduct\",\"gl_BackMaterial\",\"gl_BackSecondaryColor\",\"gl_ClipPlane\",\"gl_ClipVertex\",\"gl_Color\",\"gl_DepthRange\",\"gl_DepthRangeParameters\",\"gl_EyePlaneQ\",\"gl_EyePlaneR\",\"gl_EyePlaneS\",\"gl_EyePlaneT\",\"gl_Fog\",\"gl_FogCoord\",\"gl_FogFragCoord\",\"gl_FogParameters\",\"gl_FragColor\",\"gl_FragCoord\",\"gl_FragData\",\"gl_FragDepth\",\"gl_FragDepthEXT\",\"gl_FrontColor\",\"gl_FrontFacing\",\"gl_FrontLightModelProduct\",\"gl_FrontLightProduct\",\"gl_FrontMaterial\",\"gl_FrontSecondaryColor\",\"gl_LightModel\",\"gl_LightModelParameters\",\"gl_LightModelProducts\",\"gl_LightProducts\",\"gl_LightSource\",\"gl_LightSourceParameters\",\"gl_MaterialParameters\",\"gl_MaxClipPlanes\",\"gl_MaxCombinedTextureImageUnits\",\"gl_MaxDrawBuffers\",\"gl_MaxFragmentUniformComponents\",\"gl_MaxLights\",\"gl_MaxTextureCoords\",\"gl_MaxTextureImageUnits\",\"gl_MaxTextureUnits\",\"gl_MaxVaryingFloats\",\"gl_MaxVertexAttribs\",\"gl_MaxVertexTextureImageUnits\",\"gl_MaxVertexUniformComponents\",\"gl_ModelViewMatrix\",\"gl_ModelViewMatrixInverse\",\"gl_ModelViewMatrixInverseTranspose\",\"gl_ModelViewMatrixTranspose\",\"gl_ModelViewProjectionMatrix\",\"gl_ModelViewProjectionMatrixInverse\",\"gl_ModelViewProjectionMatrixInverseTranspose\",\"gl_ModelViewProjectionMatrixTranspose\",\"gl_MultiTexCoord0\",\"gl_MultiTexCoord1\",\"gl_MultiTexCoord2\",\"gl_MultiTexCoord3\",\"gl_MultiTexCoord4\",\"gl_MultiTexCoord5\",\"gl_MultiTexCoord6\",\"gl_MultiTexCoord7\",\"gl_Normal\",\"gl_NormalMatrix\",\"gl_NormalScale\",\"gl_ObjectPlaneQ\",\"gl_ObjectPlaneR\",\"gl_ObjectPlaneS\",\"gl_ObjectPlaneT\",\"gl_Point\",\"gl_PointCoord\",\"gl_PointParameters\",\"gl_PointSize\",\"gl_Position\",\"gl_ProjectionMatrix\",\"gl_ProjectionMatrixInverse\",\"gl_ProjectionMatrixInverseTranspose\",\"gl_ProjectionMatrixTranspose\",\"gl_SecondaryColor\",\"gl_TexCoord\",\"gl_TextureEnvColor\",\"gl_TextureMatrix\",\"gl_TextureMatrixInverse\",\"gl_TextureMatrixInverseTranspose\",\"gl_TextureMatrixTranspose\",\"gl_Vertex\",\"greaterThan\",\"greaterThanEqual\",\"inversesqrt\",\"length\",\"lessThan\",\"lessThanEqual\",\"log\",\"log2\",\"matrixCompMult\",\"max\",\"min\",\"mix\",\"mod\",\"normalize\",\"not\",\"notEqual\",\"pow\",\"radians\",\"reflect\",\"refract\",\"sign\",\"sin\",\"smoothstep\",\"sqrt\",\"step\",\"tan\",\"texture2D\",\"texture2DLod\",\"texture2DProj\",\"texture2DProjLod\",\"textureCube\",\"textureCubeLod\",\"texture2DLodEXT\",\"texture2DProjLodEXT\",\"textureCubeLodEXT\",\"texture2DGradEXT\",\"texture2DProjGradEXT\",\"textureCubeGradEXT\"]},{}],283:[function(t,e,r){var n=t(\"./literals\");e.exports=n.slice().concat([\"layout\",\"centroid\",\"smooth\",\"case\",\"mat2x2\",\"mat2x3\",\"mat2x4\",\"mat3x2\",\"mat3x3\",\"mat3x4\",\"mat4x2\",\"mat4x3\",\"mat4x4\",\"uint\",\"uvec2\",\"uvec3\",\"uvec4\",\"samplerCubeShadow\",\"sampler2DArray\",\"sampler2DArrayShadow\",\"isampler2D\",\"isampler3D\",\"isamplerCube\",\"isampler2DArray\",\"usampler2D\",\"usampler3D\",\"usamplerCube\",\"usampler2DArray\",\"coherent\",\"restrict\",\"readonly\",\"writeonly\",\"resource\",\"atomic_uint\",\"noperspective\",\"patch\",\"sample\",\"subroutine\",\"common\",\"partition\",\"active\",\"filter\",\"image1D\",\"image2D\",\"image3D\",\"imageCube\",\"iimage1D\",\"iimage2D\",\"iimage3D\",\"iimageCube\",\"uimage1D\",\"uimage2D\",\"uimage3D\",\"uimageCube\",\"image1DArray\",\"image2DArray\",\"iimage1DArray\",\"iimage2DArray\",\"uimage1DArray\",\"uimage2DArray\",\"image1DShadow\",\"image2DShadow\",\"image1DArrayShadow\",\"image2DArrayShadow\",\"imageBuffer\",\"iimageBuffer\",\"uimageBuffer\",\"sampler1DArray\",\"sampler1DArrayShadow\",\"isampler1D\",\"isampler1DArray\",\"usampler1D\",\"usampler1DArray\",\"isampler2DRect\",\"usampler2DRect\",\"samplerBuffer\",\"isamplerBuffer\",\"usamplerBuffer\",\"sampler2DMS\",\"isampler2DMS\",\"usampler2DMS\",\"sampler2DMSArray\",\"isampler2DMSArray\",\"usampler2DMSArray\"])},{\"./literals\":284}],284:[function(t,e,r){e.exports=[\"precision\",\"highp\",\"mediump\",\"lowp\",\"attribute\",\"const\",\"uniform\",\"varying\",\"break\",\"continue\",\"do\",\"for\",\"while\",\"if\",\"else\",\"in\",\"out\",\"inout\",\"float\",\"int\",\"void\",\"bool\",\"true\",\"false\",\"discard\",\"return\",\"mat2\",\"mat3\",\"mat4\",\"vec2\",\"vec3\",\"vec4\",\"ivec2\",\"ivec3\",\"ivec4\",\"bvec2\",\"bvec3\",\"bvec4\",\"sampler1D\",\"sampler2D\",\"sampler3D\",\"samplerCube\",\"sampler1DShadow\",\"sampler2DShadow\",\"struct\",\"asm\",\"class\",\"union\",\"enum\",\"typedef\",\"template\",\"this\",\"packed\",\"goto\",\"switch\",\"default\",\"inline\",\"noinline\",\"volatile\",\"public\",\"static\",\"extern\",\"external\",\"interface\",\"long\",\"short\",\"double\",\"half\",\"fixed\",\"unsigned\",\"input\",\"output\",\"hvec2\",\"hvec3\",\"hvec4\",\"dvec2\",\"dvec3\",\"dvec4\",\"fvec2\",\"fvec3\",\"fvec4\",\"sampler2DRect\",\"sampler3DRect\",\"sampler2DRectShadow\",\"sizeof\",\"cast\",\"namespace\",\"using\"]},{}],285:[function(t,e,r){e.exports=[\"<<=\",\">>=\",\"++\",\"--\",\"<<\",\">>\",\"<=\",\">=\",\"==\",\"!=\",\"&&\",\"||\",\"+=\",\"-=\",\"*=\",\"/=\",\"%=\",\"&=\",\"^^\",\"^=\",\"|=\",\"(\",\")\",\"[\",\"]\",\".\",\"!\",\"~\",\"*\",\"/\",\"%\",\"+\",\"-\",\"<\",\">\",\"&\",\"^\",\"|\",\"?\",\":\",\"=\",\",\",\";\",\"{\",\"}\"]},{}],286:[function(t,e,r){function n(t,e){var r=i(e),n=[];return n=n.concat(r(t)),n=n.concat(r(null))}var i=t(\"./index\");e.exports=n},{\"./index\":280}],287:[function(t,e,r){\"use strict\";function n(t,e,r){var n=this.cells=[];if(t instanceof ArrayBuffer){this.arrayBuffer=t;var a=new Int32Array(this.arrayBuffer);t=a[0],e=a[1],r=a[2],this.d=e+2*r;for(var o=0;o<this.d*this.d;o++){var s=a[i+o],l=a[i+o+1];n.push(s===l?null:a.subarray(s,l))}var u=a[i+n.length],c=a[i+n.length+1];this.keys=a.subarray(u,c),this.bboxes=a.subarray(c),this.insert=this._insertReadonly}else{this.d=e+2*r;for(var h=0;h<this.d*this.d;h++)n.push([]);this.keys=[],this.bboxes=[]}this.n=e,this.extent=t,this.padding=r,this.scale=e/t,this.uid=0;var f=r/e*t;this.min=-f,this.max=t+f}e.exports=n;var i=3;n.prototype.insert=function(t,e,r,n,i){this._forEachCell(e,r,n,i,this._insertCell,this.uid++),this.keys.push(t),this.bboxes.push(e),this.bboxes.push(r),this.bboxes.push(n),this.bboxes.push(i)},n.prototype._insertReadonly=function(){throw\"Cannot insert into a GridIndex created from an ArrayBuffer.\"},n.prototype._insertCell=function(t,e,r,n,i,a){this.cells[i].push(a)},n.prototype.query=function(t,e,r,n){var i=this.min,a=this.max;if(t<=i&&e<=i&&a<=r&&a<=n)return Array.prototype.slice.call(this.keys);var o=[],s={};return this._forEachCell(t,e,r,n,this._queryCell,o,s),o},n.prototype._queryCell=function(t,e,r,n,i,a,o){var s=this.cells[i];if(null!==s)for(var l=this.keys,u=this.bboxes,c=0;c<s.length;c++){var h=s[c];if(void 0===o[h]){var f=4*h;t<=u[f+2]&&e<=u[f+3]&&r>=u[f+0]&&n>=u[f+1]?(o[h]=!0,a.push(l[h])):o[h]=!1}}},n.prototype._forEachCell=function(t,e,r,n,i,a,o){for(var s=this._convertToCellCoord(t),l=this._convertToCellCoord(e),u=this._convertToCellCoord(r),c=this._convertToCellCoord(n),h=s;h<=u;h++)for(var f=l;f<=c;f++){var d=this.d*f+h;if(i.call(this,t,e,r,n,d,a,o))return}},n.prototype._convertToCellCoord=function(t){return Math.max(0,Math.min(this.d-1,Math.floor(t*this.scale)+this.padding))},n.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var t=this.cells,e=i+this.cells.length+1+1,r=0,n=0;n<this.cells.length;n++)r+=this.cells[n].length;var a=new Int32Array(e+r+this.keys.length+this.bboxes.length);a[0]=this.extent,a[1]=this.n,a[2]=this.padding;for(var o=e,s=0;s<t.length;s++){var l=t[s];a[i+s]=o,a.set(l,o),o+=l.length}return a[i+t.length]=o,a.set(this.keys,o),o+=this.keys.length,a[i+t.length+1]=o,a.set(this.bboxes,o),o+=this.bboxes.length,a.buffer}},{}],288:[function(t,e,r){(function(r){\"use strict\";var n,i=t(\"is-browser\");n=\"function\"==typeof r.matchMedia?!r.matchMedia(\"(hover: none)\").matches:i,e.exports=n}).call(this,\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{\"is-browser\":294}],289:[function(t,e,r){r.read=function(t,e,r,n,i){var a,o,s=8*i-n-1,l=(1<<s)-1,u=l>>1,c=-7,h=r?i-1:0,f=r?-1:1,d=t[e+h];for(h+=f,a=d&(1<<-c)-1,d>>=-c,c+=s;c>0;a=256*a+t[e+h],h+=f,c-=8);for(o=a&(1<<-c)-1,a>>=-c,c+=n;c>0;o=256*o+t[e+h],h+=f,c-=8);if(0===a)a=1-u;else{if(a===l)return o?NaN:1/0*(d?-1:1);o+=Math.pow(2,n),a-=u}return(d?-1:1)*o*Math.pow(2,a-n)},r.write=function(t,e,r,n,i,a){var o,s,l,u=8*a-i-1,c=(1<<u)-1,h=c>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:a-1,p=n?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,o=c):(o=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-o))<1&&(o--,l*=2),e+=o+h>=1?f/l:f*Math.pow(2,1-h),e*l>=2&&(o++,l/=2),o+h>=c?(s=0,o=c):o+h>=1?(s=(e*l-1)*Math.pow(2,i),o+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,i),o=0));i>=8;t[r+d]=255&s,d+=p,s/=256,i-=8);for(o=o<<i|s,u+=i;u>0;t[r+d]=255&o,d+=p,o/=256,u-=8);t[r+d-p]|=128*m}},{}],290:[function(t,e,r){\"use strict\";function n(t,e,r){this.vertices=t,this.adjacent=e,this.boundary=r,this.lastVisited=-1}function i(t,e,r){this.vertices=t,this.cell=e,this.index=r}function a(t,e){return c(t.vertices,e.vertices)}function o(t){for(var e=[\"function orient(){var tuple=this.tuple;return test(\"],r=0;r<=t;++r)r>0&&e.push(\",\"),e.push(\"tuple[\",r,\"]\");e.push(\")}return orient\");var n=new Function(\"test\",e.join(\"\")),i=u[t+1];return i||(i=u),n(i)}function s(t,e,r){this.dimension=t,this.vertices=e,this.simplices=r,this.interior=r.filter(function(t){return!t.boundary}),this.tuple=new Array(t+1);for(var n=0;n<=t;++n)this.tuple[n]=this.vertices[n];var i=h[t];i||(i=h[t]=o(t)),this.orient=i}function l(t,e){var r=t.length;if(0===r)throw new Error(\"Must have at least d+1 points\");var i=t[0].length;if(r<=i)throw new Error(\"Must input at least d+1 points\");var a=t.slice(0,i+1),o=u.apply(void 0,a);if(0===o)throw new Error(\"Input not in general position\");for(var l=new Array(i+1),c=0;c<=i;++c)l[c]=c;o<0&&(l[0]=1,l[1]=0);for(var h=new n(l,new Array(i+1),!1),f=h.adjacent,d=new Array(i+2),c=0;c<=i;++c){for(var p=l.slice(),m=0;m<=i;++m)m===c&&(p[m]=-1);var v=p[0];p[0]=p[1],p[1]=v;var g=new n(p,new Array(i+1),!0);f[c]=g,d[c]=g}d[i+1]=h;for(var c=0;c<=i;++c)for(var p=f[c].vertices,y=f[c].adjacent,m=0;m<=i;++m){var b=p[m];if(b<0)y[m]=h;else for(var x=0;x<=i;++x)f[x].vertices.indexOf(b)<0&&(y[m]=f[x])}for(var _=new s(i,a,d),w=!!e,c=i+1;c<r;++c)_.insert(t[c],w);return _.boundary()}e.exports=l;var u=t(\"robust-orientation\"),c=t(\"simplicial-complex\").compareCells;n.prototype.flip=function(){var t=this.vertices[0];this.vertices[0]=this.vertices[1],this.vertices[1]=t;var e=this.adjacent[0];this.adjacent[0]=this.adjacent[1],this.adjacent[1]=e};var h=[],f=s.prototype;f.handleBoundaryDegeneracy=function(t,e){var r=this.dimension,n=this.vertices.length-1,i=this.tuple,a=this.vertices,o=[t];for(t.lastVisited=-n;o.length>0;){t=o.pop();for(var s=(t.vertices,t.adjacent),l=0;l<=r;++l){var u=s[l];if(u.boundary&&!(u.lastVisited<=-n)){for(var c=u.vertices,h=0;h<=r;++h){var f=c[h];i[h]=f<0?e:a[f]}var d=this.orient();if(d>0)return u;u.lastVisited=-n,0===d&&o.push(u)}}}return null},f.walk=function(t,e){var r=this.vertices.length-1,n=this.dimension,i=this.vertices,a=this.tuple,o=e?this.interior.length*Math.random()|0:this.interior.length-1,s=this.interior[o];t:for(;!s.boundary;){for(var l=s.vertices,u=s.adjacent,c=0;c<=n;++c)a[c]=i[l[c]];s.lastVisited=r;for(var c=0;c<=n;++c){var h=u[c];if(!(h.lastVisited>=r)){var f=a[c];a[c]=t;var d=this.orient();if(a[c]=f,d<0){s=h;continue t}h.boundary?h.lastVisited=-r:h.lastVisited=r}}return}return s},f.addPeaks=function(t,e){var r=this.vertices.length-1,o=this.dimension,s=this.vertices,l=this.tuple,u=this.interior,c=this.simplices,h=[e];e.lastVisited=r,e.vertices[e.vertices.indexOf(-1)]=r,e.boundary=!1,u.push(e);for(var f=[];h.length>0;){var e=h.pop(),d=e.vertices,p=e.adjacent,m=d.indexOf(r);if(!(m<0))for(var v=0;v<=o;++v)if(v!==m){var g=p[v];if(g.boundary&&!(g.lastVisited>=r)){var y=g.vertices;if(g.lastVisited!==-r){for(var b=0,x=0;x<=o;++x)y[x]<0?(b=x,l[x]=t):l[x]=s[y[x]];var _=this.orient();if(_>0){y[b]=r,g.boundary=!1,u.push(g),h.push(g),g.lastVisited=r;continue}g.lastVisited=-r}var w=g.adjacent,M=d.slice(),k=p.slice(),A=new n(M,k,!0);c.push(A);var T=w.indexOf(e);if(!(T<0)){w[T]=A,k[m]=g,M[v]=-1,k[v]=e,p[v]=A,A.flip();for(var x=0;x<=o;++x){var S=M[x];if(!(S<0||S===r)){for(var E=new Array(o-1),L=0,C=0;C<=o;++C){var I=M[C];I<0||C===x||(E[L++]=I)}f.push(new i(E,A,x))}}}}}}f.sort(a);for(var v=0;v+1<f.length;v+=2){var z=f[v],D=f[v+1],P=z.index,O=D.index;P<0||O<0||(z.cell.adjacent[z.index]=D.cell,D.cell.adjacent[D.index]=z.cell)}},f.insert=function(t,e){var r=this.vertices;r.push(t);var n=this.walk(t,e);if(n){for(var i=this.dimension,a=this.tuple,o=0;o<=i;++o){var s=n.vertices[o];a[o]=s<0?t:r[s]}var l=this.orient(a);l<0||(0!==l||(n=this.handleBoundaryDegeneracy(n,t)))&&this.addPeaks(t,n)}},f.boundary=function(){for(var t=this.dimension,e=[],r=this.simplices,n=r.length,i=0;i<n;++i){var a=r[i];if(a.boundary){for(var o=new Array(t),s=a.vertices,l=0,u=0,c=0;c<=t;++c)s[c]>=0?o[l++]=s[c]:u=1&c;if(u===(1&t)){var h=o[0];o[0]=o[1],o[1]=h}e.push(o)}}return e}},{\"robust-orientation\":508,\"simplicial-complex\":519}],291:[function(t,e,r){\"use strict\";function n(t,e,r,n,i){this.mid=t,this.left=e,this.right=r,this.leftPoints=n,this.rightPoints=i,this.count=(e?e.count:0)+(r?r.count:0)+n.length}function i(t,e){t.mid=e.mid,t.left=e.left,t.right=e.right,t.leftPoints=e.leftPoints,t.rightPoints=e.rightPoints,t.count=e.count}function a(t,e){var r=p(e);t.mid=r.mid,t.left=r.left,t.right=r.right,t.leftPoints=r.leftPoints,t.rightPoints=r.rightPoints,t.count=r.count}function o(t,e){var r=t.intervals([]);r.push(e),a(t,r)}function s(t,e){var r=t.intervals([]),n=r.indexOf(e);return n<0?y:(r.splice(n,1),a(t,r),b)}function l(t,e,r){for(var n=0;n<t.length&&t[n][0]<=e;++n){var i=r(t[n]);if(i)return i}}function u(t,e,r){for(var n=t.length-1;n>=0&&t[n][1]>=e;--n){var i=r(t[n]);if(i)return i}}function c(t,e){for(var r=0;r<t.length;++r){var n=e(t[r]);if(n)return n}}function h(t,e){return t-e}function f(t,e){var r=t[0]-e[0];return r||t[1]-e[1]}function d(t,e){var r=t[1]-e[1];return r||t[0]-e[0]}function p(t){if(0===t.length)return null;for(var e=[],r=0;r<t.length;++r)e.push(t[r][0],t[r][1]);e.sort(h);for(var i=e[e.length>>1],a=[],o=[],s=[],r=0;r<t.length;++r){var l=t[r];l[1]<i?a.push(l):i<l[0]?o.push(l):s.push(l)}var u=s,c=s.slice();return u.sort(f),c.sort(d),new n(i,p(a),p(o),u,c)}function m(t){this.root=t}function v(t){return new m(t&&0!==t.length?p(t):null)}var g=t(\"binary-search-bounds\"),y=0,b=1;e.exports=v;var x=n.prototype;x.intervals=function(t){return t.push.apply(t,this.leftPoints),this.left&&this.left.intervals(t),this.right&&this.right.intervals(t),t},x.insert=function(t){var e=this.count-this.leftPoints.length;if(this.count+=1,t[1]<this.mid)this.left?4*(this.left.count+1)>3*(e+1)?o(this,t):this.left.insert(t):this.left=p([t]);else if(t[0]>this.mid)this.right?4*(this.right.count+1)>3*(e+1)?o(this,t):this.right.insert(t):this.right=p([t]);else{var r=g.ge(this.leftPoints,t,f),n=g.ge(this.rightPoints,t,d);this.leftPoints.splice(r,0,t),this.rightPoints.splice(n,0,t)}},x.remove=function(t){var e=this.count-this.leftPoints;if(t[1]<this.mid){if(!this.left)return y;if(4*(this.right?this.right.count:0)>3*(e-1))return s(this,t);var r=this.left.remove(t);return 2===r?(this.left=null,this.count-=1,b):(r===b&&(this.count-=1),r)}if(t[0]>this.mid){if(!this.right)return y;if(4*(this.left?this.left.count:0)>3*(e-1))return s(this,t);var r=this.right.remove(t);return 2===r?(this.right=null,this.count-=1,b):(r===b&&(this.count-=1),r)}if(1===this.count)return this.leftPoints[0]===t?2:y;if(1===this.leftPoints.length&&this.leftPoints[0]===t){if(this.left&&this.right){for(var n=this,a=this.left;a.right;)n=a,a=a.right;if(n===this)a.right=this.right;else{var o=this.left,r=this.right;n.count-=a.count,n.right=a.left,a.left=o,a.right=r}i(this,a),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?i(this,this.left):i(this,this.right);return b}for(var o=g.ge(this.leftPoints,t,f);o<this.leftPoints.length&&this.leftPoints[o][0]===t[0];++o)if(this.leftPoints[o]===t){this.count-=1,this.leftPoints.splice(o,1);for(var r=g.ge(this.rightPoints,t,d);r<this.rightPoints.length&&this.rightPoints[r][1]===t[1];++r)if(this.rightPoints[r]===t)return this.rightPoints.splice(r,1),b}return y},x.queryPoint=function(t,e){if(t<this.mid){if(this.left){var r=this.left.queryPoint(t,e);if(r)return r}return l(this.leftPoints,t,e)}if(t>this.mid){if(this.right){var r=this.right.queryPoint(t,e);if(r)return r}return u(this.rightPoints,t,e)}return c(this.leftPoints,e)},x.queryInterval=function(t,e,r){if(t<this.mid&&this.left){var n=this.left.queryInterval(t,e,r);if(n)return n}if(e>this.mid&&this.right){var n=this.right.queryInterval(t,e,r);if(n)return n}return e<this.mid?l(this.leftPoints,e,r):t>this.mid?u(this.rightPoints,t,r):c(this.leftPoints,r)};var _=m.prototype;_.insert=function(t){this.root?this.root.insert(t):this.root=new n(t[0],null,null,[t],[t])},_.remove=function(t){if(this.root){var e=this.root.remove(t);return 2===e&&(this.root=null),e!==y}return!1},_.queryPoint=function(t,e){if(this.root)return this.root.queryPoint(t,e)},_.queryInterval=function(t,e,r){if(t<=e&&this.root)return this.root.queryInterval(t,e,r)},Object.defineProperty(_,\"count\",{get:function(){return this.root?this.root.count:0}}),Object.defineProperty(_,\"intervals\",{get:function(){return this.root?this.root.intervals([]):[]}})},{\"binary-search-bounds\":66}],292:[function(t,e,r){\"use strict\";function n(t,e){e=e||new Array(t.length);for(var r=0;r<t.length;++r)e[t[r]]=r;return e}e.exports=n},{}],293:[function(t,e,r){\"use strict\";function n(t){for(var e=new Array(t),r=0;r<t;++r)e[r]=r;return e}e.exports=n},{}],294:[function(t,e,r){e.exports=!0},{}],295:[function(t,e,r){function n(t){return!!t.constructor&&\"function\"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}function i(t){return\"function\"==typeof t.readFloatLE&&\"function\"==typeof t.slice&&n(t.slice(0,0))}e.exports=function(t){return null!=t&&(n(t)||i(t)||!!t._isBuffer)}},{}],296:[function(t,e,r){function n(t){return t||\"undefined\"==typeof navigator||(t=navigator.userAgent),t&&t.headers&&\"string\"==typeof t.headers[\"user-agent\"]&&(t=t.headers[\"user-agent\"]),\"string\"==typeof t&&(/(android|bb\\d+|meego).+mobile|avantgo|bada\\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\\-(n|u)|c55\\/|capi|ccwa|cdm\\-|cell|chtm|cldc|cmd\\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\\-s|devi|dica|dmob|do(c|p)o|ds(12|\\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\\-|_)|g1 u|g560|gene|gf\\-5|g\\-mo|go(\\.w|od)|gr(ad|un)|haie|hcit|hd\\-(m|p|t)|hei\\-|hi(pt|ta)|hp( i|ip)|hs\\-c|ht(c(\\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\\-(20|go|ma)|i230|iac( |\\-|\\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\\/)|klon|kpt |kwc\\-|kyo(c|k)|le(no|xi)|lg( g|\\/(k|l|u)|50|54|\\-[a-w])|libw|lynx|m1\\-w|m3ga|m50\\/|ma(te|ui|xo)|mc(01|21|ca)|m\\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\\-2|po(ck|rt|se)|prox|psio|pt\\-g|qa\\-a|qc(07|12|21|32|60|\\-[2-7]|i\\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\\-|oo|p\\-)|sdk\\/|se(c(\\-|0|1)|47|mc|nd|ri)|sgh\\-|shar|sie(\\-|m)|sk\\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\\-|v\\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\\-|tdg\\-|tel(i|m)|tim\\-|t\\-mo|to(pl|sh)|ts(70|m\\-|m3|m5)|tx\\-9|up(\\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\\-|your|zeto|zte\\-/i.test(t.substr(0,4)))}e.exports=n},{}],297:[function(t,e,r){\"use strict\";var n=Object.prototype.toString;e.exports=function(t){var e;return\"[object Object]\"===n.call(t)&&(null===(e=Object.getPrototypeOf(t))||e===Object.getPrototypeOf({}))}},{}],298:[function(t,e,r){\"use strict\";function n(t,e,r,n,a){return new i(t,e,r,n,a)}function i(t,e,r,n,i){e=e||a,r=r||o,i=i||Array,this.nodeSize=n||64,this.points=t,this.ids=new i(t.length),this.coords=new i(2*t.length);for(var l=0;l<t.length;l++)this.ids[l]=l,this.coords[2*l]=e(t[l]),this.coords[2*l+1]=r(t[l]);s(this.ids,this.coords,this.nodeSize,0,this.ids.length-1,0)}function a(t){return t[0]}function o(t){return t[1]}var s=t(\"./sort\"),l=t(\"./range\"),u=t(\"./within\");e.exports=n,i.prototype={range:function(t,e,r,n){return l(this.ids,this.coords,t,e,r,n,this.nodeSize)},within:function(t,e,r){return u(this.ids,this.coords,t,e,r,this.nodeSize)}}},{\"./range\":299,\"./sort\":300,\"./within\":301}],299:[function(t,e,r){\"use strict\";function n(t,e,r,n,i,a,o){for(var s,l,u=[0,t.length-1,0],c=[];u.length;){var h=u.pop(),f=u.pop(),d=u.pop();if(f-d<=o)for(var p=d;p<=f;p++)s=e[2*p],l=e[2*p+1],s>=r&&s<=i&&l>=n&&l<=a&&c.push(t[p]);else{var m=Math.floor((d+f)/2);s=e[2*m],l=e[2*m+1],s>=r&&s<=i&&l>=n&&l<=a&&c.push(t[m]);var v=(h+1)%2;(0===h?r<=s:n<=l)&&(u.push(d),u.push(m-1),u.push(v)),(0===h?i>=s:a>=l)&&(u.push(m+1),u.push(f),u.push(v))}}return c}e.exports=n},{}],300:[function(t,e,r){\"use strict\";function n(t,e,r,a,o,s){if(!(o-a<=r)){var l=Math.floor((a+o)/2);i(t,e,l,a,o,s%2),n(t,e,r,a,l-1,s+1),n(t,e,r,l+1,o,s+1)}}function i(t,e,r,n,o,s){for(;o>n;){if(o-n>600){var l=o-n+1,u=r-n+1,c=Math.log(l),h=.5*Math.exp(2*c/3),f=.5*Math.sqrt(c*h*(l-h)/l)*(u-l/2<0?-1:1);i(t,e,r,Math.max(n,Math.floor(r-u*h/l+f)),Math.min(o,Math.floor(r+(l-u)*h/l+f)),s)}var d=e[2*r+s],p=n,m=o;for(a(t,e,n,r),e[2*o+s]>d&&a(t,e,n,o);p<m;){for(a(t,e,p,m),p++,m--;e[2*p+s]<d;)p++;for(;e[2*m+s]>d;)m--}e[2*n+s]===d?a(t,e,n,m):(m++,a(t,e,m,o)),m<=r&&(n=m+1),r<=m&&(o=m-1)}}function a(t,e,r,n){o(t,r,n),o(e,2*r,2*n),o(e,2*r+1,2*n+1)}function o(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}e.exports=n},{}],301:[function(t,e,r){\"use strict\";function n(t,e,r,n,a,o){for(var s=[0,t.length-1,0],l=[],u=a*a;s.length;){var c=s.pop(),h=s.pop(),f=s.pop();if(h-f<=o)for(var d=f;d<=h;d++)i(e[2*d],e[2*d+1],r,n)<=u&&l.push(t[d]);else{var p=Math.floor((f+h)/2),m=e[2*p],v=e[2*p+1];i(m,v,r,n)<=u&&l.push(t[p]);var g=(c+1)%2;(0===c?r-a<=m:n-a<=v)&&(s.push(f),s.push(p-1),s.push(g)),(0===c?r+a>=m:n+a>=v)&&(s.push(p+1),s.push(h),s.push(g))}}return l}function i(t,e,r,n){var i=t-r,a=e-n;return i*i+a*a}e.exports=n},{}],302:[function(t,e,r){\"use strict\";function n(t,e){var r;if(h(t)){var l,u=t.stops&&\"object\"==typeof t.stops[0][0],c=u||void 0!==t.property,f=u||!c,d=t.type||e||\"exponential\";if(\"exponential\"===d)l=o;else if(\"interval\"===d)l=a;else if(\"categorical\"===d)l=i;else{if(\"identity\"!==d)throw new Error('Unknown function type \"'+d+'\"');l=s}if(u){for(var p={},m=[],v=0;v<t.stops.length;v++){var g=t.stops[v];void 0===p[g[0].zoom]&&(p[g[0].zoom]={zoom:g[0].zoom,type:t.type,property:t.property,stops:[]}),p[g[0].zoom].stops.push([g[0].value,g[1]])}for(var y in p)m.push([p[y].zoom,n(p[y])]);r=function(e,r){return o({stops:m,base:t.base},e)(e,r)},r.isFeatureConstant=!1,r.isZoomConstant=!1}else f?(r=function(e){return l(t,e)},r.isFeatureConstant=!0,r.isZoomConstant=!1):(r=function(e,r){return l(t,r[t.property])},r.isFeatureConstant=!1,r.isZoomConstant=!0)}else r=function(){return t},r.isFeatureConstant=!0,r.isZoomConstant=!0;return r}function i(t,e){for(var r=0;r<t.stops.length;r++)if(e===t.stops[r][0])return t.stops[r][1];return t.stops[0][1]}function a(t,e){for(var r=0;r<t.stops.length&&!(e<t.stops[r][0]);r++);return t.stops[Math.max(r-1,0)][1]}function o(t,e){for(var r=void 0!==t.base?t.base:1,n=0;;){if(n>=t.stops.length)break;if(e<=t.stops[n][0])break;n++}return 0===n?t.stops[n][1]:n===t.stops.length?t.stops[n-1][1]:l(e,r,t.stops[n-1][0],t.stops[n][0],t.stops[n-1][1],t.stops[n][1])}function s(t,e){return e}function l(t,e,r,n,i,a){return\"function\"==typeof i?function(){var o=i.apply(void 0,arguments),s=a.apply(void 0,arguments);return l(t,e,r,n,o,s)}:i.length?c(t,e,r,n,i,a):u(t,e,r,n,i,a)}function u(t,e,r,n,i,a){var o,s=n-r,l=t-r;return o=1===e?l/s:(Math.pow(e,l)-1)/(Math.pow(e,s)-1),i*(1-o)+a*o}function c(t,e,r,n,i,a){for(var o=[],s=0;s<i.length;s++)o[s]=u(t,e,r,n,i[s],a[s]);return o}function h(t){return\"object\"==typeof t&&(t.stops||\"identity\"===t.type)}e.exports.isFunctionDefinition=h,e.exports.interpolated=function(t){return n(t,\"exponential\")},e.exports[\"piecewise-constant\"]=function(t){return n(t,\"interval\")}},{}],303:[function(t,e,r){t(\"path\");e.exports={debug:{fragmentSource:\"#ifdef GL_ES\\nprecision mediump float;\\n#else\\n#define lowp\\n#define mediump\\n#define highp\\n#endif\\n\\nuniform lowp vec4 u_color;\\n\\nvoid main() {\\n gl_FragColor = u_color;\\n}\\n\",vertexSource:\"#ifdef GL_ES\\nprecision highp float;\\n#else\\n#define lowp\\n#define mediump\\n#define highp\\n#endif\\n\\nattribute vec2 a_pos;\\n\\nuniform mat4 u_matrix;\\n\\nvoid main() {\\n gl_Position = u_matrix * vec4(a_pos, step(32767.0, a_pos.x), 1);\\n}\\n\"},fill:{fragmentSource:\"#ifdef GL_ES\\nprecision mediump float;\\n#else\\n#define lowp\\n#define mediump\\n#define highp\\n#endif\\n\\n#pragma mapbox: define lowp vec4 color\\n#pragma mapbox: define lowp float opacity\\n\\nvoid main() {\\n #pragma mapbox: initialize lowp vec4 color\\n #pragma mapbox: initialize lowp float opacity\\n\\n gl_FragColor = color * opacity;\\n\\n#ifdef OVERDRAW_INSPECTOR\\n gl_FragColor = vec4(1.0);\\n#endif\\n}\\n\",vertexSource:\"#ifdef GL_ES\\nprecision highp float;\\n#else\\n#define lowp\\n#define mediump\\n#define highp\\n#endif\\n\\nattribute vec2 a_pos;\\n\\nuniform mat4 u_matrix;\\n\\n#pragma mapbox: define lowp vec4 color\\n#pragma mapbox: define lowp float opacity\\n\\nvoid main() {\\n #pragma mapbox: initialize lowp vec4 color\\n #pragma mapbox: initialize lowp float opacity\\n\\n gl_Position = u_matrix * vec4(a_pos, 0, 1);\\n}\\n\"},circle:{fragmentSource:\"#ifdef GL_ES\\nprecision mediump float;\\n#else\\n#define lowp\\n#define mediump\\n#define highp\\n#endif\\n\\n#pragma mapbox: define lowp vec4 color\\n#pragma mapbox: define lowp float blur\\n#pragma mapbox: define lowp float opacity\\n\\nvarying vec2 v_extrude;\\nvarying lowp float v_antialiasblur;\\n\\nvoid main() {\\n #pragma mapbox: initialize lowp vec4 color\\n #pragma mapbox: initialize lowp float blur\\n #pragma mapbox: initialize lowp float opacity\\n\\n float t = smoothstep(1.0 - max(blur, v_antialiasblur), 1.0, length(v_extrude));\\n gl_FragColor = color * (1.0 - t) * opacity;\\n\\n#ifdef OVERDRAW_INSPECTOR\\n gl_FragColor = vec4(1.0);\\n#endif\\n}\\n\",vertexSource:\"#ifdef GL_ES\\nprecision highp float;\\n#else\\n#define lowp\\n#define mediump\\n#define highp\\n#endif\\n\\nuniform mat4 u_matrix;\\nuniform bool u_scale_with_map;\\nuniform vec2 u_extrude_scale;\\nuniform float u_devicepixelratio;\\n\\nattribute vec2 a_pos;\\n\\n#pragma mapbox: define lowp vec4 color\\n#pragma mapbox: define mediump float radius\\n#pragma mapbox: define lowp float blur\\n#pragma mapbox: define lowp float opacity\\n\\nvarying vec2 v_extrude;\\nvarying lowp float v_antialiasblur;\\n\\nvoid main(void) {\\n #pragma mapbox: initialize lowp vec4 color\\n #pragma mapbox: initialize mediump float radius\\n #pragma mapbox: initialize lowp float blur\\n #pragma mapbox: initialize lowp float opacity\\n\\n // unencode the extrusion vector that we snuck into the a_pos vector\\n v_extrude = vec2(mod(a_pos, 2.0) * 2.0 - 1.0);\\n\\n vec2 extrude = v_extrude * radius * u_extrude_scale;\\n // multiply a_pos by 0.5, since we had it * 2 in order to sneak\\n // in extrusion data\\n gl_Position = u_matrix * vec4(floor(a_pos * 0.5), 0, 1);\\n\\n if (u_scale_with_map) {\\n gl_Position.xy += extrude;\\n } else {\\n gl_Position.xy += extrude * gl_Position.w;\\n }\\n\\n // This is a minimum blur distance that serves as a faux-antialiasing for\\n // the circle. since blur is a ratio of the circle's size and the intent is\\n // to keep the blur at roughly 1px, the two are inversely related.\\n v_antialiasblur = 1.0 / u_devicepixelratio / radius;\\n}\\n\"},line:{fragmentSource:\"#ifdef GL_ES\\nprecision mediump float;\\n#else\\n#define lowp\\n#define mediump\\n#define highp\\n#endif\\n\\nuniform lowp vec4 u_color;\\nuniform lowp float u_opacity;\\nuniform float u_blur;\\n\\nvarying vec2 v_linewidth;\\nvarying vec2 v_normal;\\nvarying float v_gamma_scale;\\n\\nvoid main() {\\n // Calculate the distance of the pixel from the line in pixels.\\n float dist = length(v_normal) * v_linewidth.s;\\n\\n // Calculate the antialiasing fade factor. This is either when fading in\\n // the line in case of an offset line (v_linewidth.t) or when fading out\\n // (v_linewidth.s)\\n float blur = u_blur * v_gamma_scale;\\n float alpha = clamp(min(dist - (v_linewidth.t - blur), v_linewidth.s - dist) / blur, 0.0, 1.0);\\n\\n gl_FragColor = u_color * (alpha * u_opacity);\\n\\n#ifdef OVERDRAW_INSPECTOR\\n gl_FragColor = vec4(1.0);\\n#endif\\n}\\n\",vertexSource:\"#ifdef GL_ES\\nprecision highp float;\\n#else\\n#define lowp\\n#define mediump\\n#define highp\\n#endif\\n\\n// floor(127 / 2) == 63.0\\n// the maximum allowed miter limit is 2.0 at the moment. the extrude normal is\\n// stored in a byte (-128..127). we scale regular normals up to length 63, but\\n// there are also \\\"special\\\" normals that have a bigger length (of up to 126 in\\n// this case).\\n// #define scale 63.0\\n#define scale 0.015873016\\n\\nattribute vec2 a_pos;\\nattribute vec4 a_data;\\n\\nuniform mat4 u_matrix;\\nuniform mediump float u_ratio;\\nuniform mediump float u_linewidth;\\nuniform mediump float u_gapwidth;\\nuniform mediump float u_antialiasing;\\nuniform mediump float u_extra;\\nuniform mat2 u_antialiasingmatrix;\\nuniform mediump float u_offset;\\nuniform mediump float u_blur;\\n\\nvarying vec2 v_normal;\\nvarying vec2 v_linewidth;\\nvarying float v_gamma_scale;\\n\\nvoid main() {\\n vec2 a_extrude = a_data.xy - 128.0;\\n float a_direction = mod(a_data.z, 4.0) - 1.0;\\n\\n // We store the texture normals in the most insignificant bit\\n // transform y so that 0 => -1 and 1 => 1\\n // In the texture normal, x is 0 if the normal points straight up/down and 1 if it's a round cap\\n // y is 1 if the normal points up, and -1 if it points down\\n mediump vec2 normal = mod(a_pos, 2.0);\\n normal.y = sign(normal.y - 0.5);\\n v_normal = normal;\\n\\n float inset = u_gapwidth + (u_gapwidth > 0.0 ? u_antialiasing : 0.0);\\n float outset = u_gapwidth + u_linewidth * (u_gapwidth > 0.0 ? 2.0 : 1.0) + u_antialiasing;\\n\\n // Scale the extrusion vector down to a normal and then up by the line width\\n // of this vertex.\\n mediump vec2 dist = outset * a_extrude * scale;\\n\\n // Calculate the offset when drawing a line that is to the side of the actual line.\\n // We do this by creating a vector that points towards the extrude, but rotate\\n // it when we're drawing round end points (a_direction = -1 or 1) since their\\n // extrude vector points in another direction.\\n mediump float u = 0.5 * a_direction;\\n mediump float t = 1.0 - abs(u);\\n mediump vec2 offset = u_offset * a_extrude * scale * normal.y * mat2(t, -u, u, t);\\n\\n // Remove the texture normal bit of the position before scaling it with the\\n // model/view matrix.\\n gl_Position = u_matrix * vec4(floor(a_pos * 0.5) + (offset + dist) / u_ratio, 0.0, 1.0);\\n\\n // position of y on the screen\\n float y = gl_Position.y / gl_Position.w;\\n\\n // how much features are squished in the y direction by the tilt\\n float squish_scale = length(a_extrude) / length(u_antialiasingmatrix * a_extrude);\\n\\n // how much features are squished in all directions by the perspectiveness\\n float perspective_scale = 1.0 / (1.0 - min(y * u_extra, 0.9));\\n\\n v_linewidth = vec2(outset, inset);\\n v_gamma_scale = perspective_scale * squish_scale;\\n}\\n\"},linepattern:{\n", "fragmentSource:\"#ifdef GL_ES\\nprecision mediump float;\\n#else\\n#define lowp\\n#define mediump\\n#define highp\\n#endif\\n\\nuniform float u_blur;\\n\\nuniform vec2 u_pattern_size_a;\\nuniform vec2 u_pattern_size_b;\\nuniform vec2 u_pattern_tl_a;\\nuniform vec2 u_pattern_br_a;\\nuniform vec2 u_pattern_tl_b;\\nuniform vec2 u_pattern_br_b;\\nuniform float u_fade;\\nuniform float u_opacity;\\n\\nuniform sampler2D u_image;\\n\\nvarying vec2 v_normal;\\nvarying vec2 v_linewidth;\\nvarying float v_linesofar;\\nvarying float v_gamma_scale;\\n\\nvoid main() {\\n // Calculate the distance of the pixel from the line in pixels.\\n float dist = length(v_normal) * v_linewidth.s;\\n\\n // Calculate the antialiasing fade factor. This is either when fading in\\n // the line in case of an offset line (v_linewidth.t) or when fading out\\n // (v_linewidth.s)\\n float blur = u_blur * v_gamma_scale;\\n float alpha = clamp(min(dist - (v_linewidth.t - blur), v_linewidth.s - dist) / blur, 0.0, 1.0);\\n\\n float x_a = mod(v_linesofar / u_pattern_size_a.x, 1.0);\\n float x_b = mod(v_linesofar / u_pattern_size_b.x, 1.0);\\n float y_a = 0.5 + (v_normal.y * v_linewidth.s / u_pattern_size_a.y);\\n float y_b = 0.5 + (v_normal.y * v_linewidth.s / u_pattern_size_b.y);\\n vec2 pos_a = mix(u_pattern_tl_a, u_pattern_br_a, vec2(x_a, y_a));\\n vec2 pos_b = mix(u_pattern_tl_b, u_pattern_br_b, vec2(x_b, y_b));\\n\\n vec4 color = mix(texture2D(u_image, pos_a), texture2D(u_image, pos_b), u_fade);\\n\\n alpha *= u_opacity;\\n\\n gl_FragColor = color * alpha;\\n\\n#ifdef OVERDRAW_INSPECTOR\\n gl_FragColor = vec4(1.0);\\n#endif\\n}\\n\",vertexSource:\"#ifdef GL_ES\\nprecision highp float;\\n#else\\n#define lowp\\n#define mediump\\n#define highp\\n#endif\\n\\n// floor(127 / 2) == 63.0\\n// the maximum allowed miter limit is 2.0 at the moment. the extrude normal is\\n// stored in a byte (-128..127). we scale regular normals up to length 63, but\\n// there are also \\\"special\\\" normals that have a bigger length (of up to 126 in\\n// this case).\\n// #define scale 63.0\\n#define scale 0.015873016\\n\\n// We scale the distance before adding it to the buffers so that we can store\\n// long distances for long segments. Use this value to unscale the distance.\\n#define LINE_DISTANCE_SCALE 2.0\\n\\nattribute vec2 a_pos;\\nattribute vec4 a_data;\\n\\nuniform mat4 u_matrix;\\nuniform mediump float u_ratio;\\nuniform mediump float u_linewidth;\\nuniform mediump float u_gapwidth;\\nuniform mediump float u_antialiasing;\\nuniform mediump float u_extra;\\nuniform mat2 u_antialiasingmatrix;\\nuniform mediump float u_offset;\\n\\nvarying vec2 v_normal;\\nvarying vec2 v_linewidth;\\nvarying float v_linesofar;\\nvarying float v_gamma_scale;\\n\\nvoid main() {\\n vec2 a_extrude = a_data.xy - 128.0;\\n float a_direction = mod(a_data.z, 4.0) - 1.0;\\n float a_linesofar = (floor(a_data.z / 4.0) + a_data.w * 64.0) * LINE_DISTANCE_SCALE;\\n\\n // We store the texture normals in the most insignificant bit\\n // transform y so that 0 => -1 and 1 => 1\\n // In the texture normal, x is 0 if the normal points straight up/down and 1 if it's a round cap\\n // y is 1 if the normal points up, and -1 if it points down\\n mediump vec2 normal = mod(a_pos, 2.0);\\n normal.y = sign(normal.y - 0.5);\\n v_normal = normal;\\n\\n float inset = u_gapwidth + (u_gapwidth > 0.0 ? u_antialiasing : 0.0);\\n float outset = u_gapwidth + u_linewidth * (u_gapwidth > 0.0 ? 2.0 : 1.0) + u_antialiasing;\\n\\n // Scale the extrusion vector down to a normal and then up by the line width\\n // of this vertex.\\n mediump vec2 dist = outset * a_extrude * scale;\\n\\n // Calculate the offset when drawing a line that is to the side of the actual line.\\n // We do this by creating a vector that points towards the extrude, but rotate\\n // it when we're drawing round end points (a_direction = -1 or 1) since their\\n // extrude vector points in another direction.\\n mediump float u = 0.5 * a_direction;\\n mediump float t = 1.0 - abs(u);\\n mediump vec2 offset = u_offset * a_extrude * scale * normal.y * mat2(t, -u, u, t);\\n\\n // Remove the texture normal bit of the position before scaling it with the\\n // model/view matrix.\\n gl_Position = u_matrix * vec4(floor(a_pos * 0.5) + (offset + dist) / u_ratio, 0.0, 1.0);\\n v_linesofar = a_linesofar;\\n\\n // position of y on the screen\\n float y = gl_Position.y / gl_Position.w;\\n\\n // how much features are squished in the y direction by the tilt\\n float squish_scale = length(a_extrude) / length(u_antialiasingmatrix * a_extrude);\\n\\n // how much features are squished in all directions by the perspectiveness\\n float perspective_scale = 1.0 / (1.0 - min(y * u_extra, 0.9));\\n\\n v_linewidth = vec2(outset, inset);\\n v_gamma_scale = perspective_scale * squish_scale;\\n}\\n\"},linesdfpattern:{fragmentSource:\"#ifdef GL_ES\\nprecision mediump float;\\n#else\\n#define lowp\\n#define mediump\\n#define highp\\n#endif\\n\\nuniform lowp vec4 u_color;\\nuniform lowp float u_opacity;\\n\\nuniform float u_blur;\\nuniform sampler2D u_image;\\nuniform float u_sdfgamma;\\nuniform float u_mix;\\n\\nvarying vec2 v_normal;\\nvarying vec2 v_linewidth;\\nvarying vec2 v_tex_a;\\nvarying vec2 v_tex_b;\\nvarying float v_gamma_scale;\\n\\nvoid main() {\\n // Calculate the distance of the pixel from the line in pixels.\\n float dist = length(v_normal) * v_linewidth.s;\\n\\n // Calculate the antialiasing fade factor. This is either when fading in\\n // the line in case of an offset line (v_linewidth.t) or when fading out\\n // (v_linewidth.s)\\n float blur = u_blur * v_gamma_scale;\\n float alpha = clamp(min(dist - (v_linewidth.t - blur), v_linewidth.s - dist) / blur, 0.0, 1.0);\\n\\n float sdfdist_a = texture2D(u_image, v_tex_a).a;\\n float sdfdist_b = texture2D(u_image, v_tex_b).a;\\n float sdfdist = mix(sdfdist_a, sdfdist_b, u_mix);\\n alpha *= smoothstep(0.5 - u_sdfgamma, 0.5 + u_sdfgamma, sdfdist);\\n\\n gl_FragColor = u_color * (alpha * u_opacity);\\n\\n#ifdef OVERDRAW_INSPECTOR\\n gl_FragColor = vec4(1.0);\\n#endif\\n}\\n\",vertexSource:\"#ifdef GL_ES\\nprecision highp float;\\n#else\\n#define lowp\\n#define mediump\\n#define highp\\n#endif\\n\\n// floor(127 / 2) == 63.0\\n// the maximum allowed miter limit is 2.0 at the moment. the extrude normal is\\n// stored in a byte (-128..127). we scale regular normals up to length 63, but\\n// there are also \\\"special\\\" normals that have a bigger length (of up to 126 in\\n// this case).\\n// #define scale 63.0\\n#define scale 0.015873016\\n\\n// We scale the distance before adding it to the buffers so that we can store\\n// long distances for long segments. Use this value to unscale the distance.\\n#define LINE_DISTANCE_SCALE 2.0\\n\\nattribute vec2 a_pos;\\nattribute vec4 a_data;\\n\\nuniform mat4 u_matrix;\\nuniform mediump float u_ratio;\\nuniform mediump float u_linewidth;\\nuniform mediump float u_gapwidth;\\nuniform mediump float u_antialiasing;\\nuniform vec2 u_patternscale_a;\\nuniform float u_tex_y_a;\\nuniform vec2 u_patternscale_b;\\nuniform float u_tex_y_b;\\nuniform float u_extra;\\nuniform mat2 u_antialiasingmatrix;\\nuniform mediump float u_offset;\\n\\nvarying vec2 v_normal;\\nvarying vec2 v_linewidth;\\nvarying vec2 v_tex_a;\\nvarying vec2 v_tex_b;\\nvarying float v_gamma_scale;\\n\\nvoid main() {\\n vec2 a_extrude = a_data.xy - 128.0;\\n float a_direction = mod(a_data.z, 4.0) - 1.0;\\n float a_linesofar = (floor(a_data.z / 4.0) + a_data.w * 64.0) * LINE_DISTANCE_SCALE;\\n\\n // We store the texture normals in the most insignificant bit\\n // transform y so that 0 => -1 and 1 => 1\\n // In the texture normal, x is 0 if the normal points straight up/down and 1 if it's a round cap\\n // y is 1 if the normal points up, and -1 if it points down\\n mediump vec2 normal = mod(a_pos, 2.0);\\n normal.y = sign(normal.y - 0.5);\\n v_normal = normal;\\n\\n float inset = u_gapwidth + (u_gapwidth > 0.0 ? u_antialiasing : 0.0);\\n float outset = u_gapwidth + u_linewidth * (u_gapwidth > 0.0 ? 2.0 : 1.0) + u_antialiasing;\\n\\n // Scale the extrusion vector down to a normal and then up by the line width\\n // of this vertex.\\n mediump vec2 dist = outset * a_extrude * scale;\\n\\n // Calculate the offset when drawing a line that is to the side of the actual line.\\n // We do this by creating a vector that points towards the extrude, but rotate\\n // it when we're drawing round end points (a_direction = -1 or 1) since their\\n // extrude vector points in another direction.\\n mediump float u = 0.5 * a_direction;\\n mediump float t = 1.0 - abs(u);\\n mediump vec2 offset = u_offset * a_extrude * scale * normal.y * mat2(t, -u, u, t);\\n\\n // Remove the texture normal bit of the position before scaling it with the\\n // model/view matrix.\\n gl_Position = u_matrix * vec4(floor(a_pos * 0.5) + (offset + dist) / u_ratio, 0.0, 1.0);\\n\\n v_tex_a = vec2(a_linesofar * u_patternscale_a.x, normal.y * u_patternscale_a.y + u_tex_y_a);\\n v_tex_b = vec2(a_linesofar * u_patternscale_b.x, normal.y * u_patternscale_b.y + u_tex_y_b);\\n\\n // position of y on the screen\\n float y = gl_Position.y / gl_Position.w;\\n\\n // how much features are squished in the y direction by the tilt\\n float squish_scale = length(a_extrude) / length(u_antialiasingmatrix * a_extrude);\\n\\n // how much features are squished in all directions by the perspectiveness\\n float perspective_scale = 1.0 / (1.0 - min(y * u_extra, 0.9));\\n\\n v_linewidth = vec2(outset, inset);\\n v_gamma_scale = perspective_scale * squish_scale;\\n}\\n\"},outline:{fragmentSource:\"#ifdef GL_ES\\nprecision mediump float;\\n#else\\n#define lowp\\n#define mediump\\n#define highp\\n#endif\\n\\n#pragma mapbox: define lowp vec4 outline_color\\n#pragma mapbox: define lowp float opacity\\n\\nvarying vec2 v_pos;\\n\\nvoid main() {\\n #pragma mapbox: initialize lowp vec4 outline_color\\n #pragma mapbox: initialize lowp float opacity\\n\\n float dist = length(v_pos - gl_FragCoord.xy);\\n float alpha = smoothstep(1.0, 0.0, dist);\\n gl_FragColor = outline_color * (alpha * opacity);\\n\\n#ifdef OVERDRAW_INSPECTOR\\n gl_FragColor = vec4(1.0);\\n#endif\\n}\\n\",vertexSource:\"#ifdef GL_ES\\nprecision highp float;\\n#else\\n#define lowp\\n#define mediump\\n#define highp\\n#endif\\n\\nattribute vec2 a_pos;\\n\\nuniform mat4 u_matrix;\\nuniform vec2 u_world;\\n\\nvarying vec2 v_pos;\\n\\n#pragma mapbox: define lowp vec4 outline_color\\n#pragma mapbox: define lowp float opacity\\n\\nvoid main() {\\n #pragma mapbox: initialize lowp vec4 outline_color\\n #pragma mapbox: initialize lowp float opacity\\n\\n gl_Position = u_matrix * vec4(a_pos, 0, 1);\\n v_pos = (gl_Position.xy / gl_Position.w + 1.0) / 2.0 * u_world;\\n}\\n\"},outlinepattern:{fragmentSource:\"#ifdef GL_ES\\nprecision mediump float;\\n#else\\n#define lowp\\n#define mediump\\n#define highp\\n#endif\\n\\nuniform float u_opacity;\\nuniform vec2 u_pattern_tl_a;\\nuniform vec2 u_pattern_br_a;\\nuniform vec2 u_pattern_tl_b;\\nuniform vec2 u_pattern_br_b;\\nuniform float u_mix;\\n\\nuniform sampler2D u_image;\\n\\nvarying vec2 v_pos_a;\\nvarying vec2 v_pos_b;\\nvarying vec2 v_pos;\\n\\nvoid main() {\\n vec2 imagecoord = mod(v_pos_a, 1.0);\\n vec2 pos = mix(u_pattern_tl_a, u_pattern_br_a, imagecoord);\\n vec4 color1 = texture2D(u_image, pos);\\n\\n vec2 imagecoord_b = mod(v_pos_b, 1.0);\\n vec2 pos2 = mix(u_pattern_tl_b, u_pattern_br_b, imagecoord_b);\\n vec4 color2 = texture2D(u_image, pos2);\\n\\n // find distance to outline for alpha interpolation\\n\\n float dist = length(v_pos - gl_FragCoord.xy);\\n float alpha = smoothstep(1.0, 0.0, dist);\\n \\n\\n gl_FragColor = mix(color1, color2, u_mix) * alpha * u_opacity;\\n\\n#ifdef OVERDRAW_INSPECTOR\\n gl_FragColor = vec4(1.0);\\n#endif\\n}\\n\",vertexSource:\"#ifdef GL_ES\\nprecision highp float;\\n#else\\n#define lowp\\n#define mediump\\n#define highp\\n#endif\\n\\nuniform vec2 u_pattern_size_a;\\nuniform vec2 u_pattern_size_b;\\nuniform vec2 u_pixel_coord_upper;\\nuniform vec2 u_pixel_coord_lower;\\nuniform float u_scale_a;\\nuniform float u_scale_b;\\nuniform float u_tile_units_to_pixels;\\n\\nattribute vec2 a_pos;\\n\\nuniform mat4 u_matrix;\\nuniform vec2 u_world;\\n\\nvarying vec2 v_pos_a;\\nvarying vec2 v_pos_b;\\nvarying vec2 v_pos;\\n\\nvoid main() {\\n gl_Position = u_matrix * vec4(a_pos, 0, 1);\\n vec2 scaled_size_a = u_scale_a * u_pattern_size_a;\\n vec2 scaled_size_b = u_scale_b * u_pattern_size_b;\\n\\n // the correct offset needs to be calculated.\\n //\\n // The offset depends on how many pixels are between the world origin and\\n // the edge of the tile:\\n // vec2 offset = mod(pixel_coord, size)\\n //\\n // At high zoom levels there are a ton of pixels between the world origin\\n // and the edge of the tile. The glsl spec only guarantees 16 bits of\\n // precision for highp floats. We need more than that.\\n //\\n // The pixel_coord is passed in as two 16 bit values:\\n // pixel_coord_upper = floor(pixel_coord / 2^16)\\n // pixel_coord_lower = mod(pixel_coord, 2^16)\\n //\\n // The offset is calculated in a series of steps that should preserve this precision:\\n vec2 offset_a = mod(mod(mod(u_pixel_coord_upper, scaled_size_a) * 256.0, scaled_size_a) * 256.0 + u_pixel_coord_lower, scaled_size_a);\\n vec2 offset_b = mod(mod(mod(u_pixel_coord_upper, scaled_size_b) * 256.0, scaled_size_b) * 256.0 + u_pixel_coord_lower, scaled_size_b);\\n\\n v_pos_a = (u_tile_units_to_pixels * a_pos + offset_a) / scaled_size_a;\\n v_pos_b = (u_tile_units_to_pixels * a_pos + offset_b) / scaled_size_b;\\n\\n v_pos = (gl_Position.xy / gl_Position.w + 1.0) / 2.0 * u_world;\\n}\\n\"},pattern:{fragmentSource:\"#ifdef GL_ES\\nprecision mediump float;\\n#else\\n#define lowp\\n#define mediump\\n#define highp\\n#endif\\n\\nuniform float u_opacity;\\nuniform vec2 u_pattern_tl_a;\\nuniform vec2 u_pattern_br_a;\\nuniform vec2 u_pattern_tl_b;\\nuniform vec2 u_pattern_br_b;\\nuniform float u_mix;\\n\\nuniform sampler2D u_image;\\n\\nvarying vec2 v_pos_a;\\nvarying vec2 v_pos_b;\\n\\nvoid main() {\\n\\n vec2 imagecoord = mod(v_pos_a, 1.0);\\n vec2 pos = mix(u_pattern_tl_a, u_pattern_br_a, imagecoord);\\n vec4 color1 = texture2D(u_image, pos);\\n\\n vec2 imagecoord_b = mod(v_pos_b, 1.0);\\n vec2 pos2 = mix(u_pattern_tl_b, u_pattern_br_b, imagecoord_b);\\n vec4 color2 = texture2D(u_image, pos2);\\n\\n gl_FragColor = mix(color1, color2, u_mix) * u_opacity;\\n\\n#ifdef OVERDRAW_INSPECTOR\\n gl_FragColor = vec4(1.0);\\n#endif\\n}\\n\",vertexSource:\"#ifdef GL_ES\\nprecision highp float;\\n#else\\n#define lowp\\n#define mediump\\n#define highp\\n#endif\\n\\nuniform mat4 u_matrix;\\nuniform vec2 u_pattern_size_a;\\nuniform vec2 u_pattern_size_b;\\nuniform vec2 u_pixel_coord_upper;\\nuniform vec2 u_pixel_coord_lower;\\nuniform float u_scale_a;\\nuniform float u_scale_b;\\nuniform float u_tile_units_to_pixels;\\n\\nattribute vec2 a_pos;\\n\\nvarying vec2 v_pos_a;\\nvarying vec2 v_pos_b;\\n\\nvoid main() {\\n gl_Position = u_matrix * vec4(a_pos, 0, 1);\\n vec2 scaled_size_a = u_scale_a * u_pattern_size_a;\\n vec2 scaled_size_b = u_scale_b * u_pattern_size_b;\\n\\n // the correct offset needs to be calculated.\\n //\\n // The offset depends on how many pixels are between the world origin and\\n // the edge of the tile:\\n // vec2 offset = mod(pixel_coord, size)\\n //\\n // At high zoom levels there are a ton of pixels between the world origin\\n // and the edge of the tile. The glsl spec only guarantees 16 bits of\\n // precision for highp floats. We need more than that.\\n //\\n // The pixel_coord is passed in as two 16 bit values:\\n // pixel_coord_upper = floor(pixel_coord / 2^16)\\n // pixel_coord_lower = mod(pixel_coord, 2^16)\\n //\\n // The offset is calculated in a series of steps that should preserve this precision:\\n vec2 offset_a = mod(mod(mod(u_pixel_coord_upper, scaled_size_a) * 256.0, scaled_size_a) * 256.0 + u_pixel_coord_lower, scaled_size_a);\\n vec2 offset_b = mod(mod(mod(u_pixel_coord_upper, scaled_size_b) * 256.0, scaled_size_b) * 256.0 + u_pixel_coord_lower, scaled_size_b);\\n\\n v_pos_a = (u_tile_units_to_pixels * a_pos + offset_a) / scaled_size_a;\\n v_pos_b = (u_tile_units_to_pixels * a_pos + offset_b) / scaled_size_b;\\n}\\n\"},raster:{fragmentSource:\"#ifdef GL_ES\\nprecision mediump float;\\n#else\\n#define lowp\\n#define mediump\\n#define highp\\n#endif\\n\\nuniform float u_opacity0;\\nuniform float u_opacity1;\\nuniform sampler2D u_image0;\\nuniform sampler2D u_image1;\\nvarying vec2 v_pos0;\\nvarying vec2 v_pos1;\\n\\nuniform float u_brightness_low;\\nuniform float u_brightness_high;\\n\\nuniform float u_saturation_factor;\\nuniform float u_contrast_factor;\\nuniform vec3 u_spin_weights;\\n\\nvoid main() {\\n\\n // read and cross-fade colors from the main and parent tiles\\n vec4 color0 = texture2D(u_image0, v_pos0);\\n vec4 color1 = texture2D(u_image1, v_pos1);\\n vec4 color = color0 * u_opacity0 + color1 * u_opacity1;\\n vec3 rgb = color.rgb;\\n\\n // spin\\n rgb = vec3(\\n dot(rgb, u_spin_weights.xyz),\\n dot(rgb, u_spin_weights.zxy),\\n dot(rgb, u_spin_weights.yzx));\\n\\n // saturation\\n float average = (color.r + color.g + color.b) / 3.0;\\n rgb += (average - rgb) * u_saturation_factor;\\n\\n // contrast\\n rgb = (rgb - 0.5) * u_contrast_factor + 0.5;\\n\\n // brightness\\n vec3 u_high_vec = vec3(u_brightness_low, u_brightness_low, u_brightness_low);\\n vec3 u_low_vec = vec3(u_brightness_high, u_brightness_high, u_brightness_high);\\n\\n gl_FragColor = vec4(mix(u_high_vec, u_low_vec, rgb), color.a);\\n\\n#ifdef OVERDRAW_INSPECTOR\\n gl_FragColor = vec4(1.0);\\n#endif\\n}\\n\",vertexSource:\"#ifdef GL_ES\\nprecision highp float;\\n#else\\n#define lowp\\n#define mediump\\n#define highp\\n#endif\\n\\nuniform mat4 u_matrix;\\nuniform vec2 u_tl_parent;\\nuniform float u_scale_parent;\\nuniform float u_buffer_scale;\\n\\nattribute vec2 a_pos;\\nattribute vec2 a_texture_pos;\\n\\nvarying vec2 v_pos0;\\nvarying vec2 v_pos1;\\n\\nvoid main() {\\n gl_Position = u_matrix * vec4(a_pos, 0, 1);\\n v_pos0 = (((a_texture_pos / 32767.0) - 0.5) / u_buffer_scale ) + 0.5;\\n v_pos1 = (v_pos0 * u_scale_parent) + u_tl_parent;\\n}\\n\"},icon:{fragmentSource:\"#ifdef GL_ES\\nprecision mediump float;\\n#else\\n#define lowp\\n#define mediump\\n#define highp\\n#endif\\n\\nuniform sampler2D u_texture;\\nuniform sampler2D u_fadetexture;\\nuniform lowp float u_opacity;\\n\\nvarying vec2 v_tex;\\nvarying vec2 v_fade_tex;\\n\\nvoid main() {\\n lowp float alpha = texture2D(u_fadetexture, v_fade_tex).a * u_opacity;\\n gl_FragColor = texture2D(u_texture, v_tex) * alpha;\\n\\n#ifdef OVERDRAW_INSPECTOR\\n gl_FragColor = vec4(1.0);\\n#endif\\n}\\n\",vertexSource:\"#ifdef GL_ES\\nprecision highp float;\\n#else\\n#define lowp\\n#define mediump\\n#define highp\\n#endif\\n\\nattribute vec2 a_pos;\\nattribute vec2 a_offset;\\nattribute vec2 a_texture_pos;\\nattribute vec4 a_data;\\n\\n\\n// matrix is for the vertex position.\\nuniform mat4 u_matrix;\\n\\nuniform mediump float u_zoom;\\nuniform bool u_rotate_with_map;\\nuniform vec2 u_extrude_scale;\\n\\nuniform vec2 u_texsize;\\n\\nvarying vec2 v_tex;\\nvarying vec2 v_fade_tex;\\n\\nvoid main() {\\n vec2 a_tex = a_texture_pos.xy;\\n mediump float a_labelminzoom = a_data[0];\\n mediump vec2 a_zoom = a_data.pq;\\n mediump float a_minzoom = a_zoom[0];\\n mediump float a_maxzoom = a_zoom[1];\\n\\n // u_zoom is the current zoom level adjusted for the change in font size\\n mediump float z = 2.0 - step(a_minzoom, u_zoom) - (1.0 - step(a_maxzoom, u_zoom));\\n\\n vec2 extrude = u_extrude_scale * (a_offset / 64.0);\\n if (u_rotate_with_map) {\\n gl_Position = u_matrix * vec4(a_pos + extrude, 0, 1);\\n gl_Position.z += z * gl_Position.w;\\n } else {\\n gl_Position = u_matrix * vec4(a_pos, 0, 1) + vec4(extrude, 0, 0);\\n }\\n\\n v_tex = a_tex / u_texsize;\\n v_fade_tex = vec2(a_labelminzoom / 255.0, 0.0);\\n}\\n\"},sdf:{fragmentSource:\"#ifdef GL_ES\\nprecision mediump float;\\n#else\\n#define lowp\\n#define mediump\\n#define highp\\n#endif\\n\\nuniform sampler2D u_texture;\\nuniform sampler2D u_fadetexture;\\nuniform lowp vec4 u_color;\\nuniform lowp float u_opacity;\\nuniform lowp float u_buffer;\\nuniform lowp float u_gamma;\\n\\nvarying vec2 v_tex;\\nvarying vec2 v_fade_tex;\\nvarying float v_gamma_scale;\\n\\nvoid main() {\\n lowp float dist = texture2D(u_texture, v_tex).a;\\n lowp float fade_alpha = texture2D(u_fadetexture, v_fade_tex).a;\\n lowp float gamma = u_gamma * v_gamma_scale;\\n lowp float alpha = smoothstep(u_buffer - gamma, u_buffer + gamma, dist) * fade_alpha;\\n\\n gl_FragColor = u_color * (alpha * u_opacity);\\n\\n#ifdef OVERDRAW_INSPECTOR\\n gl_FragColor = vec4(1.0);\\n#endif\\n}\\n\",vertexSource:\"#ifdef GL_ES\\nprecision highp float;\\n#else\\n#define lowp\\n#define mediump\\n#define highp\\n#endif\\n\\nconst float PI = 3.141592653589793;\\n\\nattribute vec2 a_pos;\\nattribute vec2 a_offset;\\nattribute vec2 a_texture_pos;\\nattribute vec4 a_data;\\n\\n\\n// matrix is for the vertex position.\\nuniform mat4 u_matrix;\\n\\nuniform mediump float u_zoom;\\nuniform bool u_rotate_with_map;\\nuniform bool u_pitch_with_map;\\nuniform mediump float u_pitch;\\nuniform mediump float u_bearing;\\nuniform mediump float u_aspect_ratio;\\nuniform vec2 u_extrude_scale;\\n\\nuniform vec2 u_texsize;\\n\\nvarying vec2 v_tex;\\nvarying vec2 v_fade_tex;\\nvarying float v_gamma_scale;\\n\\nvoid main() {\\n vec2 a_tex = a_texture_pos.xy;\\n mediump float a_labelminzoom = a_data[0];\\n mediump vec2 a_zoom = a_data.pq;\\n mediump float a_minzoom = a_zoom[0];\\n mediump float a_maxzoom = a_zoom[1];\\n\\n // u_zoom is the current zoom level adjusted for the change in font size\\n mediump float z = 2.0 - step(a_minzoom, u_zoom) - (1.0 - step(a_maxzoom, u_zoom));\\n\\n // pitch-alignment: map\\n // rotation-alignment: map | viewport\\n if (u_pitch_with_map) {\\n lowp float angle = u_rotate_with_map ? (a_data[1] / 256.0 * 2.0 * PI) : u_bearing;\\n lowp float asin = sin(angle);\\n lowp float acos = cos(angle);\\n mat2 RotationMatrix = mat2(acos, asin, -1.0 * asin, acos);\\n vec2 offset = RotationMatrix * a_offset;\\n vec2 extrude = u_extrude_scale * (offset / 64.0);\\n gl_Position = u_matrix * vec4(a_pos + extrude, 0, 1);\\n gl_Position.z += z * gl_Position.w;\\n // pitch-alignment: viewport\\n // rotation-alignment: map\\n } else if (u_rotate_with_map) {\\n // foreshortening factor to apply on pitched maps\\n // as a label goes from horizontal <=> vertical in angle\\n // it goes from 0% foreshortening to up to around 70% foreshortening\\n lowp float pitchfactor = 1.0 - cos(u_pitch * sin(u_pitch * 0.75));\\n\\n lowp float lineangle = a_data[1] / 256.0 * 2.0 * PI;\\n\\n // use the lineangle to position points a,b along the line\\n // project the points and calculate the label angle in projected space\\n // this calculation allows labels to be rendered unskewed on pitched maps\\n vec4 a = u_matrix * vec4(a_pos, 0, 1);\\n vec4 b = u_matrix * vec4(a_pos + vec2(cos(lineangle),sin(lineangle)), 0, 1);\\n lowp float angle = atan((b[1]/b[3] - a[1]/a[3])/u_aspect_ratio, b[0]/b[3] - a[0]/a[3]);\\n lowp float asin = sin(angle);\\n lowp float acos = cos(angle);\\n mat2 RotationMatrix = mat2(acos, -1.0 * asin, asin, acos);\\n\\n vec2 offset = RotationMatrix * (vec2((1.0-pitchfactor)+(pitchfactor*cos(angle*2.0)), 1.0) * a_offset);\\n vec2 extrude = u_extrude_scale * (offset / 64.0);\\n gl_Position = u_matrix * vec4(a_pos, 0, 1) + vec4(extrude, 0, 0);\\n gl_Position.z += z * gl_Position.w;\\n // pitch-alignment: viewport\\n // rotation-alignment: viewport\\n } else {\\n vec2 extrude = u_extrude_scale * (a_offset / 64.0);\\n gl_Position = u_matrix * vec4(a_pos, 0, 1) + vec4(extrude, 0, 0);\\n }\\n\\n v_gamma_scale = (gl_Position.w - 0.5);\\n\\n v_tex = a_tex / u_texsize;\\n v_fade_tex = vec2(a_labelminzoom / 255.0, 0.0);\\n}\\n\"},collisionbox:{fragmentSource:\"#ifdef GL_ES\\nprecision mediump float;\\n#else\\n#define lowp\\n#define mediump\\n#define highp\\n#endif\\n\\nuniform float u_zoom;\\nuniform float u_maxzoom;\\n\\nvarying float v_max_zoom;\\nvarying float v_placement_zoom;\\n\\nvoid main() {\\n\\n float alpha = 0.5;\\n\\n gl_FragColor = vec4(0.0, 1.0, 0.0, 1.0) * alpha;\\n\\n if (v_placement_zoom > u_zoom) {\\n gl_FragColor = vec4(1.0, 0.0, 0.0, 1.0) * alpha;\\n }\\n\\n if (u_zoom >= v_max_zoom) {\\n gl_FragColor = vec4(0.0, 0.0, 0.0, 1.0) * alpha * 0.25;\\n }\\n\\n if (v_placement_zoom >= u_maxzoom) {\\n gl_FragColor = vec4(0.0, 0.0, 1.0, 1.0) * alpha * 0.2;\\n }\\n}\\n\",vertexSource:\"#ifdef GL_ES\\nprecision highp float;\\n#else\\n#define lowp\\n#define mediump\\n#define highp\\n#endif\\n\\nattribute vec2 a_pos;\\nattribute vec2 a_extrude;\\nattribute vec2 a_data;\\n\\nuniform mat4 u_matrix;\\nuniform float u_scale;\\n\\nvarying float v_max_zoom;\\nvarying float v_placement_zoom;\\n\\nvoid main() {\\n gl_Position = u_matrix * vec4(a_pos + a_extrude / u_scale, 0.0, 1.0);\\n\\n v_max_zoom = a_data.x;\\n v_placement_zoom = a_data.y;\\n}\\n\"}},e.exports.util=\"float evaluate_zoom_function_1(const vec4 values, const float t) {\\n if (t < 1.0) {\\n return mix(values[0], values[1], t);\\n } else if (t < 2.0) {\\n return mix(values[1], values[2], t - 1.0);\\n } else {\\n return mix(values[2], values[3], t - 2.0);\\n }\\n}\\nvec4 evaluate_zoom_function_4(const vec4 value0, const vec4 value1, const vec4 value2, const vec4 value3, const float t) {\\n if (t < 1.0) {\\n return mix(value0, value1, t);\\n } else if (t < 2.0) {\\n return mix(value1, value2, t - 1.0);\\n } else {\\n return mix(value2, value3, t - 2.0);\\n }\\n}\\n\"},{path:476}],304:[function(t,e,r){\"use strict\";function n(t,e){this.message=(t?t+\": \":\"\")+i.apply(i,Array.prototype.slice.call(arguments,2)),null!==e&&void 0!==e&&e.__line__&&(this.line=e.__line__)}var i=t(\"util\").format;e.exports=n},{util:549}],305:[function(t,e,r){\"use strict\";e.exports=function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)t[n]=r[n]}return t}},{}],306:[function(t,e,r){\"use strict\";e.exports=function(t){return t instanceof Number?\"number\":t instanceof String?\"string\":t instanceof Boolean?\"boolean\":Array.isArray(t)?\"array\":null===t?\"null\":typeof t}},{}],307:[function(t,e,r){\"use strict\";e.exports=function(t){return t instanceof Number||t instanceof String||t instanceof Boolean?t.valueOf():t}},{}],308:[function(t,e,r){\"use strict\";var n=t(\"../error/validation_error\"),i=t(\"../util/get_type\"),a=t(\"../util/extend\");e.exports=function(e){var r=t(\"./validate_function\"),o=t(\"./validate_object\"),s={\"*\":function(){return[]},array:t(\"./validate_array\"),boolean:t(\"./validate_boolean\"),number:t(\"./validate_number\"),color:t(\"./validate_color\"),constants:t(\"./validate_constants\"),enum:t(\"./validate_enum\"),filter:t(\"./validate_filter\"),function:t(\"./validate_function\"),layer:t(\"./validate_layer\"),object:t(\"./validate_object\"),source:t(\"./validate_source\"),string:t(\"./validate_string\")},l=e.value,u=e.valueSpec,c=e.key,h=e.styleSpec,f=e.style;if(\"string\"===i(l)&&\"@\"===l[0]){if(h.$version>7)return[new n(c,l,\"constants have been deprecated as of v8\")];if(!(l in f.constants))return[new n(c,l,'constant \"%s\" not found',l)];e=a({},e,{value:f.constants[l]})}return u.function&&\"object\"===i(l)?r(e):u.type&&s[u.type]?s[u.type](e):o(a({},e,{valueSpec:u.type?h[u.type]:u}))}},{\"../error/validation_error\":304,\"../util/extend\":305,\"../util/get_type\":306,\"./validate_array\":309,\"./validate_boolean\":310,\"./validate_color\":311,\"./validate_constants\":312,\"./validate_enum\":313,\"./validate_filter\":314,\"./validate_function\":315,\"./validate_layer\":317,\"./validate_number\":319,\"./validate_object\":320,\"./validate_source\":322,\"./validate_string\":323}],309:[function(t,e,r){\"use strict\";var n=t(\"../util/get_type\"),i=t(\"./validate\"),a=t(\"../error/validation_error\");e.exports=function(t){var e=t.value,r=t.valueSpec,o=t.style,s=t.styleSpec,l=t.key,u=t.arrayElementValidator||i;if(\"array\"!==n(e))return[new a(l,e,\"array expected, %s found\",n(e))];if(r.length&&e.length!==r.length)return[new a(l,e,\"array length %d expected, length %d found\",r.length,e.length)];if(r[\"min-length\"]&&e.length<r[\"min-length\"])return[new a(l,e,\"array length at least %d expected, length %d found\",r[\"min-length\"],e.length)];var c={type:r.value};s.$version<7&&(c.function=r.function),\"object\"===n(r.value)&&(c=r.value);for(var h=[],f=0;f<e.length;f++)h=h.concat(u({array:e,arrayIndex:f,value:e[f],valueSpec:c,style:o,styleSpec:s,key:l+\"[\"+f+\"]\"}));return h}},{\"../error/validation_error\":304,\"../util/get_type\":306,\"./validate\":308}],310:[function(t,e,r){\"use strict\";var n=t(\"../util/get_type\"),i=t(\"../error/validation_error\");e.exports=function(t){var e=t.value,r=t.key,a=n(e);return\"boolean\"!==a?[new i(r,e,\"boolean expected, %s found\",a)]:[]}},{\"../error/validation_error\":304,\"../util/get_type\":306}],311:[function(t,e,r){\"use strict\";var n=t(\"../error/validation_error\"),i=t(\"../util/get_type\"),a=t(\"csscolorparser\").parseCSSColor;e.exports=function(t){var e=t.key,r=t.value,o=i(r);return\"string\"!==o?[new n(e,r,\"color expected, %s found\",o)]:null===a(r)?[new n(e,r,'color expected, \"%s\" found',r)]:[]}},{\"../error/validation_error\":304,\"../util/get_type\":306,csscolorparser:108}],312:[function(t,e,r){\"use strict\";var n=t(\"../error/validation_error\"),i=t(\"../util/get_type\");e.exports=function(t){var e=t.key,r=t.value;if(t.styleSpec.$version>7)return r?[new n(e,r,\"constants have been deprecated as of v8\")]:[];var a=i(r);if(\"object\"!==a)return[new n(e,r,\"object expected, %s found\",a)];var o=[];for(var s in r)\"@\"!==s[0]&&o.push(new n(e+\".\"+s,r[s],'constants must start with \"@\"'));return o}},{\"../error/validation_error\":304,\"../util/get_type\":306}],313:[function(t,e,r){\"use strict\";var n=t(\"../error/validation_error\"),i=t(\"../util/unbundle_jsonlint\");e.exports=function(t){var e=t.key,r=t.value,a=t.valueSpec,o=[];return-1===a.values.indexOf(i(r))&&o.push(new n(e,r,\"expected one of [%s], %s found\",a.values.join(\", \"),r)),o}},{\"../error/validation_error\":304,\"../util/unbundle_jsonlint\":307}],314:[function(t,e,r){\"use strict\";var n=t(\"../error/validation_error\"),i=t(\"./validate_enum\"),a=t(\"../util/get_type\"),o=t(\"../util/unbundle_jsonlint\");e.exports=function t(e){var r,s=e.value,l=e.key,u=e.styleSpec,c=[];if(\"array\"!==a(s))return[new n(l,s,\"array expected, %s found\",a(s))];if(s.length<1)return[new n(l,s,\"filter array must have at least 1 element\")];switch(c=c.concat(i({key:l+\"[0]\",value:s[0],valueSpec:u.filter_operator,style:e.style,styleSpec:e.styleSpec})),o(s[0])){case\"<\":case\"<=\":case\">\":case\">=\":s.length>=2&&\"$type\"==s[1]&&c.push(new n(l,s,'\"$type\" cannot be use with operator \"%s\"',s[0]));case\"==\":case\"!=\":3!=s.length&&c.push(new n(l,s,'filter array for operator \"%s\" must have 3 elements',s[0]));case\"in\":case\"!in\":s.length>=2&&(r=a(s[1]),\"string\"!==r?c.push(new n(l+\"[1]\",s[1],\"string expected, %s found\",r)):\"@\"===s[1][0]&&c.push(new n(l+\"[1]\",s[1],\"filter key cannot be a constant\")));for(var h=2;h<s.length;h++)r=a(s[h]),\"$type\"==s[1]?c=c.concat(i({key:l+\"[\"+h+\"]\",value:s[h],valueSpec:u.geometry_type,style:e.style,styleSpec:e.styleSpec})):\"string\"===r&&\"@\"===s[h][0]?c.push(new n(l+\"[\"+h+\"]\",s[h],\"filter value cannot be a constant\")):\"string\"!==r&&\"number\"!==r&&\"boolean\"!==r&&c.push(new n(l+\"[\"+h+\"]\",s[h],\"string, number, or boolean expected, %s found\",r));break;case\"any\":case\"all\":case\"none\":for(h=1;h<s.length;h++)c=c.concat(t({key:l+\"[\"+h+\"]\",value:s[h],style:e.style,styleSpec:e.styleSpec}));break;case\"has\":case\"!has\":r=a(s[1]),2!==s.length?c.push(new n(l,s,'filter array for \"%s\" operator must have 2 elements',s[0])):\"string\"!==r?c.push(new n(l+\"[1]\",s[1],\"string expected, %s found\",r)):\"@\"===s[1][0]&&c.push(new n(l+\"[1]\",s[1],\"filter key cannot be a constant\"))}return c}},{\"../error/validation_error\":304,\"../util/get_type\":306,\n", "\"../util/unbundle_jsonlint\":307,\"./validate_enum\":313}],315:[function(t,e,r){\"use strict\";var n=t(\"../error/validation_error\"),i=t(\"../util/get_type\"),a=t(\"./validate\"),o=t(\"./validate_object\"),s=t(\"./validate_array\"),l=t(\"./validate_number\");e.exports=function(t){function e(t){var e=[],a=t.value;return e=e.concat(s({key:t.key,value:a,valueSpec:t.valueSpec,style:t.style,styleSpec:t.styleSpec,arrayElementValidator:r})),\"array\"===i(a)&&0===a.length&&e.push(new n(t.key,a,\"array must have at least one stop\")),e}function r(t){var e=[],r=t.value,s=t.key;if(\"array\"!==i(r))return[new n(s,r,\"array expected, %s found\",i(r))];if(2!==r.length)return[new n(s,r,\"array length %d expected, length %d found\",2,r.length)];var f=i(r[0]);if(c||(c=f),f!==c)return[new n(s,r,\"%s stop key type must match previous stop key type %s\",f,c)];if(\"object\"===f){if(void 0===r[0].zoom)return[new n(s,r,\"object stop key must have zoom\")];if(void 0===r[0].value)return[new n(s,r,\"object stop key must have value\")];e=e.concat(o({key:s+\"[0]\",value:r[0],valueSpec:{zoom:{}},style:t.style,styleSpec:t.styleSpec,objectElementValidators:{zoom:l,value:u}}))}else e=e.concat((d?l:u)({key:s+\"[0]\",value:r[0],valueSpec:{},style:t.style,styleSpec:t.styleSpec}));return e=e.concat(a({key:s+\"[1]\",value:r[1],valueSpec:h,style:t.style,styleSpec:t.styleSpec})),\"number\"===i(r[0])&&(\"piecewise-constant\"===h.function&&r[0]%1!=0&&e.push(new n(s+\"[0]\",r[0],\"zoom level for piecewise-constant functions must be an integer\")),0!==t.arrayIndex&&r[0]<t.array[t.arrayIndex-1][0]&&e.push(new n(s+\"[0]\",r[0],\"array stops must appear in ascending order\"))),e}function u(t){var e=[],r=i(t.value);return\"number\"!==r&&\"string\"!==r&&\"array\"!==r&&e.push(new n(t.key,t.value,\"property value must be a number, string or array\")),e}var c,h=t.valueSpec,f=void 0!==t.value.property||\"object\"===c,d=void 0===t.value.property||\"object\"===c,p=o({key:t.key,value:t.value,valueSpec:t.styleSpec.function,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{stops:e}});return t.styleSpec.$version>=8&&(f&&!t.valueSpec[\"property-function\"]?p.push(new n(t.key,t.value,\"property functions not supported\")):d&&!t.valueSpec[\"zoom-function\"]&&p.push(new n(t.key,t.value,\"zoom functions not supported\"))),p}},{\"../error/validation_error\":304,\"../util/get_type\":306,\"./validate\":308,\"./validate_array\":309,\"./validate_number\":319,\"./validate_object\":320}],316:[function(t,e,r){\"use strict\";var n=t(\"../error/validation_error\"),i=t(\"./validate_string\");e.exports=function(t){var e=t.value,r=t.key,a=i(t);return a.length?a:(-1===e.indexOf(\"{fontstack}\")&&a.push(new n(r,e,'\"glyphs\" url must include a \"{fontstack}\" token')),-1===e.indexOf(\"{range}\")&&a.push(new n(r,e,'\"glyphs\" url must include a \"{range}\" token')),a)}},{\"../error/validation_error\":304,\"./validate_string\":323}],317:[function(t,e,r){\"use strict\";var n=t(\"../error/validation_error\"),i=t(\"../util/unbundle_jsonlint\"),a=t(\"./validate_object\"),o=t(\"./validate_filter\"),s=t(\"./validate_paint_property\"),l=t(\"./validate_layout_property\"),u=t(\"../util/extend\");e.exports=function(t){var e=[],r=t.value,c=t.key,h=t.style,f=t.styleSpec;r.type||r.ref||e.push(new n(c,r,'either \"type\" or \"ref\" is required'));var d=i(r.type),p=i(r.ref);if(r.id)for(var m=0;m<t.arrayIndex;m++){var v=h.layers[m];i(v.id)===i(r.id)&&e.push(new n(c,r.id,'duplicate layer id \"%s\", previously used at line %d',r.id,v.id.__line__))}if(\"ref\"in r){[\"type\",\"source\",\"source-layer\",\"filter\",\"layout\"].forEach(function(t){t in r&&e.push(new n(c,r[t],'\"%s\" is prohibited for ref layers',t))});var g;h.layers.forEach(function(t){t.id==p&&(g=t)}),g?g.ref?e.push(new n(c,r.ref,\"ref cannot reference another ref layer\")):d=i(g.type):e.push(new n(c,r.ref,'ref layer \"%s\" not found',p))}else if(\"background\"!==d)if(r.source){var y=h.sources&&h.sources[r.source];y?\"vector\"==y.type&&\"raster\"==d?e.push(new n(c,r.source,'layer \"%s\" requires a raster source',r.id)):\"raster\"==y.type&&\"raster\"!=d?e.push(new n(c,r.source,'layer \"%s\" requires a vector source',r.id)):\"vector\"!=y.type||r[\"source-layer\"]||e.push(new n(c,r,'layer \"%s\" must specify a \"source-layer\"',r.id)):e.push(new n(c,r.source,'source \"%s\" not found',r.source))}else e.push(new n(c,r,'missing required property \"source\"'));return e=e.concat(a({key:c,value:r,valueSpec:f.layer,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{filter:o,layout:function(t){return a({layer:r,key:t.key,value:t.value,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{\"*\":function(t){return l(u({layerType:d},t))}}})},paint:function(t){return a({layer:r,key:t.key,value:t.value,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{\"*\":function(t){return s(u({layerType:d},t))}}})}}}))}},{\"../error/validation_error\":304,\"../util/extend\":305,\"../util/unbundle_jsonlint\":307,\"./validate_filter\":314,\"./validate_layout_property\":318,\"./validate_object\":320,\"./validate_paint_property\":321}],318:[function(t,e,r){\"use strict\";var n=t(\"./validate\"),i=t(\"../error/validation_error\");e.exports=function(t){var e=t.key,r=t.style,a=t.styleSpec,o=t.value,s=t.objectKey,l=a[\"layout_\"+t.layerType];if(t.valueSpec||l[s]){var u=[];return\"symbol\"===t.layerType&&(\"icon-image\"===s&&r&&!r.sprite?u.push(new i(e,o,'use of \"icon-image\" requires a style \"sprite\" property')):\"text-field\"===s&&r&&!r.glyphs&&u.push(new i(e,o,'use of \"text-field\" requires a style \"glyphs\" property'))),u.concat(n({key:t.key,value:o,valueSpec:t.valueSpec||l[s],style:r,styleSpec:a}))}return[new i(e,o,'unknown property \"%s\"',s)]}},{\"../error/validation_error\":304,\"./validate\":308}],319:[function(t,e,r){\"use strict\";var n=t(\"../util/get_type\"),i=t(\"../error/validation_error\");e.exports=function(t){var e=t.key,r=t.value,a=t.valueSpec,o=n(r);return\"number\"!==o?[new i(e,r,\"number expected, %s found\",o)]:\"minimum\"in a&&r<a.minimum?[new i(e,r,\"%s is less than the minimum value %s\",r,a.minimum)]:\"maximum\"in a&&r>a.maximum?[new i(e,r,\"%s is greater than the maximum value %s\",r,a.maximum)]:[]}},{\"../error/validation_error\":304,\"../util/get_type\":306}],320:[function(t,e,r){\"use strict\";var n=t(\"../error/validation_error\"),i=t(\"../util/get_type\"),a=t(\"./validate\");e.exports=function(t){var e=t.key,r=t.value,o=t.valueSpec,s=t.objectElementValidators||{},l=t.style,u=t.styleSpec,c=[],h=i(r);if(\"object\"!==h)return[new n(e,r,\"object expected, %s found\",h)];for(var f in r){var d=f.split(\".\")[0],p=o&&(o[d]||o[\"*\"]),m=s[d]||s[\"*\"];p||m?c=c.concat((m||a)({key:(e?e+\".\":e)+f,value:r[f],valueSpec:p,style:l,styleSpec:u,object:r,objectKey:f})):\"\"!==e&&1!==e.split(\".\").length&&c.push(new n(e,r[f],'unknown property \"%s\"',f))}for(d in o)o[d].required&&void 0===o[d].default&&void 0===r[d]&&c.push(new n(e,r,'missing required property \"%s\"',d));return c}},{\"../error/validation_error\":304,\"../util/get_type\":306,\"./validate\":308}],321:[function(t,e,r){\"use strict\";var n=t(\"./validate\"),i=t(\"../error/validation_error\");e.exports=function(t){var e=t.key,r=t.style,a=t.styleSpec,o=t.value,s=t.objectKey,l=a[\"paint_\"+t.layerType],u=s.match(/^(.*)-transition$/);return u&&l[u[1]]&&l[u[1]].transition?n({key:e,value:o,valueSpec:a.transition,style:r,styleSpec:a}):t.valueSpec||l[s]?n({key:t.key,value:o,valueSpec:t.valueSpec||l[s],style:r,styleSpec:a}):[new i(e,o,'unknown property \"%s\"',s)]}},{\"../error/validation_error\":304,\"./validate\":308}],322:[function(t,e,r){\"use strict\";var n=t(\"../error/validation_error\"),i=t(\"../util/unbundle_jsonlint\"),a=t(\"./validate_object\"),o=t(\"./validate_enum\");e.exports=function(t){var e=t.value,r=t.key,s=t.styleSpec,l=t.style;if(!e.type)return[new n(r,e,'\"type\" is required')];switch(i(e.type)){case\"vector\":case\"raster\":var u=[];if(u=u.concat(a({key:r,value:e,valueSpec:s.source_tile,style:t.style,styleSpec:s})),\"url\"in e)for(var c in e)[\"type\",\"url\",\"tileSize\"].indexOf(c)<0&&u.push(new n(r+\".\"+c,e[c],'a source with a \"url\" property may not include a \"%s\" property',c));return u;case\"geojson\":return a({key:r,value:e,valueSpec:s.source_geojson,style:l,styleSpec:s});case\"video\":return a({key:r,value:e,valueSpec:s.source_video,style:l,styleSpec:s});case\"image\":return a({key:r,value:e,valueSpec:s.source_image,style:l,styleSpec:s});default:return o({key:r+\".type\",value:e.type,valueSpec:{values:[\"vector\",\"raster\",\"geojson\",\"video\",\"image\"]},style:l,styleSpec:s})}}},{\"../error/validation_error\":304,\"../util/unbundle_jsonlint\":307,\"./validate_enum\":313,\"./validate_object\":320}],323:[function(t,e,r){\"use strict\";var n=t(\"../util/get_type\"),i=t(\"../error/validation_error\");e.exports=function(t){var e=t.value,r=t.key,a=n(e);return\"string\"!==a?[new i(r,e,\"string expected, %s found\",a)]:[]}},{\"../error/validation_error\":304,\"../util/get_type\":306}],324:[function(t,e,r){\"use strict\";function n(t,e){e=e||l;var r=[];return r=r.concat(s({key:\"\",value:t,valueSpec:e.$root,styleSpec:e,style:t,objectElementValidators:{glyphs:u}})),e.$version>7&&t.constants&&(r=r.concat(o({key:\"constants\",value:t.constants,style:t,styleSpec:e}))),i(r)}function i(t){return[].concat(t).sort(function(t,e){return t.line-e.line})}function a(t){return function(){return i(t.apply(this,arguments))}}var o=t(\"./validate/validate_constants\"),s=t(\"./validate/validate\"),l=t(\"../reference/latest.min\"),u=t(\"./validate/validate_glyphs_url\");n.source=a(t(\"./validate/validate_source\")),n.layer=a(t(\"./validate/validate_layer\")),n.filter=a(t(\"./validate/validate_filter\")),n.paintProperty=a(t(\"./validate/validate_paint_property\")),n.layoutProperty=a(t(\"./validate/validate_layout_property\")),e.exports=n},{\"../reference/latest.min\":325,\"./validate/validate\":308,\"./validate/validate_constants\":312,\"./validate/validate_filter\":314,\"./validate/validate_glyphs_url\":316,\"./validate/validate_layer\":317,\"./validate/validate_layout_property\":318,\"./validate/validate_paint_property\":321,\"./validate/validate_source\":322}],325:[function(t,e,r){e.exports=t(\"./v8.min.json\")},{\"./v8.min.json\":326}],326:[function(t,e,r){e.exports={$version:8,$root:{version:{required:!0,type:\"enum\",values:[8]},name:{type:\"string\"},metadata:{type:\"*\"},center:{type:\"array\",value:\"number\"},zoom:{type:\"number\"},bearing:{type:\"number\",default:0,period:360,units:\"degrees\"},pitch:{type:\"number\",default:0,units:\"degrees\"},sources:{required:!0,type:\"sources\"},sprite:{type:\"string\"},glyphs:{type:\"string\"},transition:{type:\"transition\"},layers:{required:!0,type:\"array\",value:\"layer\"}},sources:{\"*\":{type:\"source\"}},source:[\"source_tile\",\"source_geojson\",\"source_video\",\"source_image\"],source_tile:{type:{required:!0,type:\"enum\",values:[\"vector\",\"raster\"]},url:{type:\"string\"},tiles:{type:\"array\",value:\"string\"},minzoom:{type:\"number\",default:0},maxzoom:{type:\"number\",default:22},tileSize:{type:\"number\",default:512,units:\"pixels\"},\"*\":{type:\"*\"}},source_geojson:{type:{required:!0,type:\"enum\",values:[\"geojson\"]},data:{type:\"*\"},maxzoom:{type:\"number\",default:14},buffer:{type:\"number\",default:64},tolerance:{type:\"number\",default:3},cluster:{type:\"boolean\",default:!1},clusterRadius:{type:\"number\",default:400},clusterMaxZoom:{type:\"number\"}},source_video:{type:{required:!0,type:\"enum\",values:[\"video\"]},urls:{required:!0,type:\"array\",value:\"string\"},coordinates:{required:!0,type:\"array\",length:4,value:{type:\"array\",length:2,value:\"number\"}}},source_image:{type:{required:!0,type:\"enum\",values:[\"image\"]},url:{required:!0,type:\"string\"},coordinates:{required:!0,type:\"array\",length:4,value:{type:\"array\",length:2,value:\"number\"}}},layer:{id:{type:\"string\",required:!0},type:{type:\"enum\",values:[\"fill\",\"line\",\"symbol\",\"circle\",\"raster\",\"background\"]},metadata:{type:\"*\"},ref:{type:\"string\"},source:{type:\"string\"},\"source-layer\":{type:\"string\"},minzoom:{type:\"number\",minimum:0,maximum:22},maxzoom:{type:\"number\",minimum:0,maximum:22},interactive:{type:\"boolean\",default:!1},filter:{type:\"filter\"},layout:{type:\"layout\"},paint:{type:\"paint\"},\"paint.*\":{type:\"paint\"}},layout:[\"layout_fill\",\"layout_line\",\"layout_circle\",\"layout_symbol\",\"layout_raster\",\"layout_background\"],layout_background:{visibility:{type:\"enum\",function:\"piecewise-constant\",\"zoom-function\":!0,values:[\"visible\",\"none\"],default:\"visible\"}},layout_fill:{visibility:{type:\"enum\",function:\"piecewise-constant\",\"zoom-function\":!0,values:[\"visible\",\"none\"],default:\"visible\"}},layout_circle:{visibility:{type:\"enum\",function:\"piecewise-constant\",\"zoom-function\":!0,values:[\"visible\",\"none\"],default:\"visible\"}},layout_line:{\"line-cap\":{type:\"enum\",function:\"piecewise-constant\",\"zoom-function\":!0,\"property-function\":!0,values:[\"butt\",\"round\",\"square\"],default:\"butt\"},\"line-join\":{type:\"enum\",function:\"piecewise-constant\",\"zoom-function\":!0,\"property-function\":!0,values:[\"bevel\",\"round\",\"miter\"],default:\"miter\"},\"line-miter-limit\":{type:\"number\",default:2,function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,requires:[{\"line-join\":\"miter\"}]},\"line-round-limit\":{type:\"number\",default:1.05,function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,requires:[{\"line-join\":\"round\"}]},visibility:{type:\"enum\",function:\"piecewise-constant\",\"zoom-function\":!0,values:[\"visible\",\"none\"],default:\"visible\"}},layout_symbol:{\"symbol-placement\":{type:\"enum\",function:\"piecewise-constant\",\"zoom-function\":!0,\"property-function\":!0,values:[\"point\",\"line\"],default:\"point\"},\"symbol-spacing\":{type:\"number\",default:250,minimum:1,function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,units:\"pixels\",requires:[{\"symbol-placement\":\"line\"}]},\"symbol-avoid-edges\":{type:\"boolean\",function:\"piecewise-constant\",\"zoom-function\":!0,\"property-function\":!0,default:!1},\"icon-allow-overlap\":{type:\"boolean\",function:\"piecewise-constant\",\"zoom-function\":!0,\"property-function\":!0,default:!1,requires:[\"icon-image\"]},\"icon-ignore-placement\":{type:\"boolean\",function:\"piecewise-constant\",\"zoom-function\":!0,\"property-function\":!0,default:!1,requires:[\"icon-image\"]},\"icon-optional\":{type:\"boolean\",function:\"piecewise-constant\",\"zoom-function\":!0,\"property-function\":!0,default:!1,requires:[\"icon-image\",\"text-field\"]},\"icon-rotation-alignment\":{type:\"enum\",function:\"piecewise-constant\",\"zoom-function\":!0,\"property-function\":!0,values:[\"map\",\"viewport\"],default:\"viewport\",requires:[\"icon-image\"]},\"icon-size\":{type:\"number\",default:1,minimum:0,function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,requires:[\"icon-image\"]},\"icon-text-fit\":{type:\"enum\",function:\"piecewise-constant\",\"zoom-function\":!0,\"property-function\":!1,values:[\"none\",\"both\",\"width\",\"height\"],default:\"none\",requires:[\"icon-image\",\"text-field\"]},\"icon-text-fit-padding\":{type:\"array\",value:\"number\",length:4,default:[0,0,0,0],units:\"pixels\",function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,requires:[\"icon-image\",\"icon-text-fit\",\"text-field\"]},\"icon-image\":{type:\"string\",function:\"piecewise-constant\",\"zoom-function\":!0,\"property-function\":!0,tokens:!0},\"icon-rotate\":{type:\"number\",default:0,period:360,function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,units:\"degrees\",requires:[\"icon-image\"]},\"icon-padding\":{type:\"number\",default:2,minimum:0,function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,units:\"pixels\",requires:[\"icon-image\"]},\"icon-keep-upright\":{type:\"boolean\",function:\"piecewise-constant\",\"zoom-function\":!0,\"property-function\":!0,default:!1,requires:[\"icon-image\",{\"icon-rotation-alignment\":\"map\"},{\"symbol-placement\":\"line\"}]},\"icon-offset\":{type:\"array\",value:\"number\",length:2,default:[0,0],function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,requires:[\"icon-image\"]},\"text-pitch-alignment\":{type:\"enum\",function:\"piecewise-constant\",\"zoom-function\":!0,\"property-function\":!0,values:[\"map\",\"viewport\"],requires:[\"text-field\"]},\"text-rotation-alignment\":{type:\"enum\",function:\"piecewise-constant\",\"zoom-function\":!0,\"property-function\":!0,values:[\"map\",\"viewport\"],default:\"viewport\",requires:[\"text-field\"]},\"text-field\":{type:\"string\",function:\"piecewise-constant\",\"zoom-function\":!0,\"property-function\":!0,default:\"\",tokens:!0},\"text-font\":{type:\"array\",value:\"string\",function:\"piecewise-constant\",\"zoom-function\":!0,\"property-function\":!0,default:[\"Open Sans Regular\",\"Arial Unicode MS Regular\"],requires:[\"text-field\"]},\"text-size\":{type:\"number\",default:16,minimum:0,units:\"pixels\",function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,requires:[\"text-field\"]},\"text-max-width\":{type:\"number\",default:10,minimum:0,units:\"em\",function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,requires:[\"text-field\"]},\"text-line-height\":{type:\"number\",default:1.2,units:\"em\",function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,requires:[\"text-field\"]},\"text-letter-spacing\":{type:\"number\",default:0,units:\"em\",function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,requires:[\"text-field\"]},\"text-justify\":{type:\"enum\",function:\"piecewise-constant\",\"zoom-function\":!0,\"property-function\":!0,values:[\"left\",\"center\",\"right\"],default:\"center\",requires:[\"text-field\"]},\"text-anchor\":{type:\"enum\",function:\"piecewise-constant\",\"zoom-function\":!0,\"property-function\":!0,values:[\"center\",\"left\",\"right\",\"top\",\"bottom\",\"top-left\",\"top-right\",\"bottom-left\",\"bottom-right\"],default:\"center\",requires:[\"text-field\"]},\"text-max-angle\":{type:\"number\",default:45,units:\"degrees\",function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,requires:[\"text-field\",{\"symbol-placement\":\"line\"}]},\"text-rotate\":{type:\"number\",default:0,period:360,units:\"degrees\",function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,requires:[\"text-field\"]},\"text-padding\":{type:\"number\",default:2,minimum:0,units:\"pixels\",function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,requires:[\"text-field\"]},\"text-keep-upright\":{type:\"boolean\",function:\"piecewise-constant\",\"zoom-function\":!0,\"property-function\":!0,default:!0,requires:[\"text-field\",{\"text-rotation-alignment\":\"map\"},{\"symbol-placement\":\"line\"}]},\"text-transform\":{type:\"enum\",function:\"piecewise-constant\",\"zoom-function\":!0,\"property-function\":!0,values:[\"none\",\"uppercase\",\"lowercase\"],default:\"none\",requires:[\"text-field\"]},\"text-offset\":{type:\"array\",value:\"number\",units:\"ems\",function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,length:2,default:[0,0],requires:[\"text-field\"]},\"text-allow-overlap\":{type:\"boolean\",function:\"piecewise-constant\",\"zoom-function\":!0,\"property-function\":!0,default:!1,requires:[\"text-field\"]},\"text-ignore-placement\":{type:\"boolean\",function:\"piecewise-constant\",\"zoom-function\":!0,\"property-function\":!0,default:!1,requires:[\"text-field\"]},\"text-optional\":{type:\"boolean\",function:\"piecewise-constant\",\"zoom-function\":!0,\"property-function\":!0,default:!1,requires:[\"text-field\",\"icon-image\"]},visibility:{type:\"enum\",function:\"piecewise-constant\",\"zoom-function\":!0,values:[\"visible\",\"none\"],default:\"visible\"}},layout_raster:{visibility:{type:\"enum\",function:\"piecewise-constant\",\"zoom-function\":!0,values:[\"visible\",\"none\"],default:\"visible\"}},filter:{type:\"array\",value:\"*\"},filter_operator:{type:\"enum\",values:[\"==\",\"!=\",\">\",\">=\",\"<\",\"<=\",\"in\",\"!in\",\"all\",\"any\",\"none\",\"has\",\"!has\"]},geometry_type:{type:\"enum\",values:[\"Point\",\"LineString\",\"Polygon\"]},color_operation:{type:\"enum\",values:[\"lighten\",\"saturate\",\"spin\",\"fade\",\"mix\"]},function:{stops:{type:\"array\",required:!0,value:\"function_stop\"},base:{type:\"number\",default:1,minimum:0},property:{type:\"string\",default:\"$zoom\"},type:{type:\"enum\",values:[\"exponential\",\"interval\",\"categorical\"],default:\"exponential\"}},function_stop:{type:\"array\",minimum:0,maximum:22,value:[\"number\",\"color\"],length:2},paint:[\"paint_fill\",\"paint_line\",\"paint_circle\",\"paint_symbol\",\"paint_raster\",\"paint_background\"],paint_fill:{\"fill-antialias\":{type:\"boolean\",function:\"piecewise-constant\",\"zoom-function\":!0,\"property-function\":!0,default:!0},\"fill-opacity\":{type:\"number\",function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,default:1,minimum:0,maximum:1,transition:!0},\"fill-color\":{type:\"color\",default:\"#000000\",function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,requires:[{\"!\":\"fill-pattern\"}]},\"fill-outline-color\":{type:\"color\",function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,requires:[{\"!\":\"fill-pattern\"},{\"fill-antialias\":!0}]},\"fill-translate\":{type:\"array\",value:\"number\",length:2,default:[0,0],function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,units:\"pixels\"},\"fill-translate-anchor\":{type:\"enum\",function:\"piecewise-constant\",\"zoom-function\":!0,\"property-function\":!0,values:[\"map\",\"viewport\"],default:\"map\",requires:[\"fill-translate\"]},\"fill-pattern\":{type:\"string\",function:\"piecewise-constant\",\"zoom-function\":!0,\"property-function\":!0,transition:!0}},paint_line:{\"line-opacity\":{type:\"number\",function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,default:1,minimum:0,maximum:1,transition:!0},\"line-color\":{type:\"color\",default:\"#000000\",function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,requires:[{\"!\":\"line-pattern\"}]},\"line-translate\":{type:\"array\",value:\"number\",length:2,default:[0,0],function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,units:\"pixels\"},\"line-translate-anchor\":{type:\"enum\",function:\"piecewise-constant\",\"zoom-function\":!0,\"property-function\":!0,values:[\"map\",\"viewport\"],default:\"map\",requires:[\"line-translate\"]},\"line-width\":{type:\"number\",default:1,minimum:0,function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,units:\"pixels\"},\"line-gap-width\":{type:\"number\",default:0,minimum:0,function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,units:\"pixels\"},\"line-offset\":{type:\"number\",default:0,function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,units:\"pixels\"},\"line-blur\":{type:\"number\",default:0,minimum:0,function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,units:\"pixels\"},\"line-dasharray\":{type:\"array\",value:\"number\",function:\"piecewise-constant\",\"zoom-function\":!0,\"property-function\":!0,minimum:0,transition:!0,units:\"line widths\",requires:[{\"!\":\"line-pattern\"}]},\"line-pattern\":{type:\"string\",function:\"piecewise-constant\",\"zoom-function\":!0,\"property-function\":!0,transition:!0}},paint_circle:{\"circle-radius\":{type:\"number\",default:5,minimum:0,function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,units:\"pixels\"},\"circle-color\":{type:\"color\",default:\"#000000\",function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0},\"circle-blur\":{type:\"number\",default:0,function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0},\"circle-opacity\":{type:\"number\",default:1,minimum:0,maximum:1,function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0},\"circle-translate\":{type:\"array\",value:\"number\",length:2,default:[0,0],function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,units:\"pixels\"},\"circle-translate-anchor\":{type:\"enum\",function:\"piecewise-constant\",\"zoom-function\":!0,\"property-function\":!0,values:[\"map\",\"viewport\"],default:\"map\",requires:[\"circle-translate\"]},\"circle-pitch-scale\":{type:\"enum\",function:\"piecewise-constant\",\"zoom-function\":!0,\"property-function\":!0,values:[\"map\",\"viewport\"],default:\"map\"}},paint_symbol:{\"icon-opacity\":{type:\"number\",default:1,minimum:0,maximum:1,function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,requires:[\"icon-image\"]},\"icon-color\":{type:\"color\",default:\"#000000\",function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,requires:[\"icon-image\"]},\"icon-halo-color\":{type:\"color\",default:\"rgba(0, 0, 0, 0)\",function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,requires:[\"icon-image\"]},\"icon-halo-width\":{type:\"number\",default:0,minimum:0,function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,units:\"pixels\",requires:[\"icon-image\"]},\"icon-halo-blur\":{type:\"number\",default:0,minimum:0,function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,units:\"pixels\",requires:[\"icon-image\"]},\"icon-translate\":{type:\"array\",value:\"number\",length:2,default:[0,0],function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,units:\"pixels\",requires:[\"icon-image\"]},\"icon-translate-anchor\":{type:\"enum\",function:\"piecewise-constant\",\"zoom-function\":!0,\"property-function\":!0,values:[\"map\",\"viewport\"],default:\"map\",requires:[\"icon-image\",\"icon-translate\"]},\"text-opacity\":{type:\"number\",default:1,minimum:0,maximum:1,function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,requires:[\"text-field\"]},\"text-color\":{type:\"color\",default:\"#000000\",function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,requires:[\"text-field\"]},\"text-halo-color\":{type:\"color\",default:\"rgba(0, 0, 0, 0)\",function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,requires:[\"text-field\"]},\"text-halo-width\":{type:\"number\",default:0,minimum:0,function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,units:\"pixels\",requires:[\"text-field\"]},\"text-halo-blur\":{type:\"number\",default:0,minimum:0,function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,units:\"pixels\",requires:[\"text-field\"]},\"text-translate\":{type:\"array\",value:\"number\",length:2,default:[0,0],function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,units:\"pixels\",requires:[\"text-field\"]},\"text-translate-anchor\":{type:\"enum\",function:\"piecewise-constant\",\"zoom-function\":!0,\"property-function\":!0,values:[\"map\",\"viewport\"],default:\"map\",requires:[\"text-field\",\"text-translate\"]}},paint_raster:{\"raster-opacity\":{type:\"number\",default:1,minimum:0,maximum:1,function:\"interpolated\",\"zoom-function\":!0,transition:!0},\"raster-hue-rotate\":{type:\"number\",default:0,period:360,function:\"interpolated\",\"zoom-function\":!0,transition:!0,units:\"degrees\"},\"raster-brightness-min\":{type:\"number\",function:\"interpolated\",\"zoom-function\":!0,default:0,minimum:0,maximum:1,transition:!0},\"raster-brightness-max\":{type:\"number\",function:\"interpolated\",\"zoom-function\":!0,default:1,minimum:0,maximum:1,transition:!0},\"raster-saturation\":{type:\"number\",default:0,minimum:-1,maximum:1,function:\"interpolated\",\"zoom-function\":!0,transition:!0},\"raster-contrast\":{type:\"number\",default:0,minimum:-1,maximum:1,function:\"interpolated\",\"zoom-function\":!0,transition:!0},\"raster-fade-duration\":{type:\"number\",default:300,minimum:0,function:\"interpolated\",\"zoom-function\":!0,transition:!0,units:\"milliseconds\"}},paint_background:{\"background-color\":{type:\"color\",default:\"#000000\",function:\"interpolated\",\"zoom-function\":!0,transition:!0,requires:[{\"!\":\"background-pattern\"}]},\"background-pattern\":{type:\"string\",function:\"piecewise-constant\",\"zoom-function\":!0,transition:!0},\"background-opacity\":{type:\"number\",default:1,minimum:0,maximum:1,function:\"interpolated\",\"zoom-function\":!0,transition:!0}},transition:{duration:{type:\"number\",default:300,minimum:0,units:\"milliseconds\"},delay:{type:\"number\",default:0,minimum:0,units:\"milliseconds\"}}}},{}],327:[function(t,e,r){\"use strict\";function n(t){return!!(i()&&a()&&o()&&s()&&l()&&u()&&c()&&h(t&&t.failIfMajorPerformanceCaveat))}function i(){return\"undefined\"!=typeof window&&\"undefined\"!=typeof document}function a(){return Array.prototype&&Array.prototype.every&&Array.prototype.filter&&Array.prototype.forEach&&Array.prototype.indexOf&&Array.prototype.lastIndexOf&&Array.prototype.map&&Array.prototype.some&&Array.prototype.reduce&&Array.prototype.reduceRight&&Array.isArray}function o(){return Function.prototype&&Function.prototype.bind}function s(){return Object.keys&&Object.create&&Object.getPrototypeOf&&Object.getOwnPropertyNames&&Object.isSealed&&Object.isFrozen&&Object.isExtensible&&Object.getOwnPropertyDescriptor&&Object.defineProperty&&Object.defineProperties&&Object.seal&&Object.freeze&&Object.preventExtensions}function l(){return\"JSON\"in window&&\"parse\"in JSON&&\"stringify\"in JSON}function u(){return\"Worker\"in window}function c(){return\"Uint8ClampedArray\"in window}function h(t){return void 0===d[t]&&(d[t]=f(t)),d[t]}function f(t){var e=document.createElement(\"canvas\"),r=Object.create(n.webGLContextAttributes);return r.failIfMajorPerformanceCaveat=t,e.probablySupportsContext?e.probablySupportsContext(\"webgl\",r)||e.probablySupportsContext(\"experimental-webgl\",r):e.supportsContext?e.supportsContext(\"webgl\",r)||e.supportsContext(\"experimental-webgl\",r):e.getContext(\"webgl\",r)||e.getContext(\"experimental-webgl\",r)}void 0!==e&&e.exports?e.exports=n:window&&(window.mapboxgl=window.mapboxgl||{},window.mapboxgl.supported=n);var d={};n.webGLContextAttributes={antialias:!1,alpha:!0,stencil:!0,depth:!0}},{}],328:[function(t,e,r){\"use strict\";function n(t){var e=t.layoutVertexArrayType;this.layoutVertexArray=new e;var r=t.elementArrayType;r&&(this.elementArray=new r);var n=t.elementArrayType2;n&&(this.elementArray2=new n),this.paintVertexArrays=i.mapObject(t.paintVertexArrayTypes,function(t){return new t})}var i=t(\"../util/util\");e.exports=n,n.MAX_VERTEX_ARRAY_LENGTH=Math.pow(2,16)-1,n.prototype.hasCapacityFor=function(t){return this.layoutVertexArray.length+t<=n.MAX_VERTEX_ARRAY_LENGTH},n.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},n.prototype.trim=function(){this.layoutVertexArray.trim(),this.elementArray&&this.elementArray.trim(),this.elementArray2&&this.elementArray2.trim();for(var t in this.paintVertexArrays)this.paintVertexArrays[t].trim()},n.prototype.serialize=function(){return{layoutVertexArray:this.layoutVertexArray.serialize(),elementArray:this.elementArray&&this.elementArray.serialize(),elementArray2:this.elementArray2&&this.elementArray2.serialize(),paintVertexArrays:i.mapObject(this.paintVertexArrays,function(t){return t.serialize()})}},n.prototype.getTransferables=function(t){t.push(this.layoutVertexArray.arrayBuffer),this.elementArray&&t.push(this.elementArray.arrayBuffer),this.elementArray2&&t.push(this.elementArray2.arrayBuffer);for(var e in this.paintVertexArrays)t.push(this.paintVertexArrays[e].arrayBuffer)}},{\"../util/util\":442}],329:[function(t,e,r){\"use strict\";function n(t){if(this.zoom=t.zoom,this.overscaling=t.overscaling,this.layer=t.layer,this.childLayers=t.childLayers,this.type=this.layer.type,this.features=[],this.id=this.layer.id,this.index=t.index,this.sourceLayer=this.layer.sourceLayer,this.sourceLayerIndex=t.sourceLayerIndex,this.minZoom=this.layer.minzoom,this.maxZoom=this.layer.maxzoom,this.paintAttributes=i(this),t.arrays){var e=this.programInterfaces;this.bufferGroups=c.mapObject(t.arrays,function(r,n){var i=e[n],a=t.paintVertexArrayTypes[n];return r.map(function(t){return new u(t,{layoutVertexArrayType:i.layoutVertexArrayType.serialize(),elementArrayType:i.elementArrayType&&i.elementArrayType.serialize(),elementArrayType2:i.elementArrayType2&&i.elementArrayType2.serialize(),paintVertexArrayTypes:a})})})}}function i(t){var e={};for(var r in t.programInterfaces){for(var n=e[r]={},i=0;i<t.childLayers.length;i++){n[t.childLayers[i].id]={attributes:[],uniforms:[],defines:[],vertexPragmas:{define:{},initialize:{}},fragmentPragmas:{define:{},initialize:{}}}}var s=t.programInterfaces[r];if(s.paintAttributes)for(var l=0;l<s.paintAttributes.length;l++){var u=s.paintAttributes[l];u.multiplier=u.multiplier||1;for(var h=0;h<t.childLayers.length;h++){var d=t.childLayers[h],p=n[d.id],m=u.name;f(\"a_\"===u.name.slice(0,2));var v,g=u.name.slice(2);if(p.fragmentPragmas.initialize[g]=\"\",d.isPaintValueFeatureConstant(u.paintProperty))p.uniforms.push(u),p.fragmentPragmas.define[g]=p.vertexPragmas.define[g]=[\"uniform\",\"{precision}\",\"{type}\",m].join(\" \")+\";\",p.fragmentPragmas.initialize[g]=p.vertexPragmas.initialize[g]=[\"{precision}\",\"{type}\",g,\"=\",m].join(\" \")+\";\\n\";else if(d.isPaintValueZoomConstant(u.paintProperty)){p.attributes.push(c.extend({},u,{name:m})),v=[\"varying\",\"{precision}\",\"{type}\",g].join(\" \")+\";\\n\"\n", ";var y=[p.fragmentPragmas.define[g],\"attribute\",\"{precision}\",\"{type}\",m].join(\" \")+\";\\n\";p.fragmentPragmas.define[g]=v,p.vertexPragmas.define[g]=v+y,p.vertexPragmas.initialize[g]=[g,\"=\",m,\"/\",u.multiplier.toFixed(1)].join(\" \")+\";\\n\"}else{for(var b=\"u_\"+m.slice(2)+\"_t\",x=d.getPaintValueStopZoomLevels(u.paintProperty),_=0;_<x.length&&x[_]<t.zoom;)_++;for(var w=Math.max(0,Math.min(x.length-4,_-2)),M=[],k=0;k<4;k++)M.push(x[Math.min(w+k,x.length-1)]);v=[\"varying\",\"{precision}\",\"{type}\",g].join(\" \")+\";\\n\",p.vertexPragmas.define[g]=v+[\"uniform\",\"lowp\",\"float\",b].join(\" \")+\";\\n\",p.fragmentPragmas.define[g]=v,p.uniforms.push(c.extend({},u,{name:b,getValue:o(u,w),components:1}));var A=u.components;if(1===A)p.attributes.push(c.extend({},u,{getValue:a(u,M),isFunction:!0,components:4*A})),p.vertexPragmas.define[g]+=[\"attribute\",\"{precision}\",\"vec4\",m].join(\" \")+\";\\n\",p.vertexPragmas.initialize[g]=[g,\"=\",\"evaluate_zoom_function_1(\"+m+\", \"+b+\")\",\"/\",u.multiplier.toFixed(1)].join(\" \")+\";\\n\";else{for(var T=[],S=0;S<4;S++)T.push(m+S),p.attributes.push(c.extend({},u,{getValue:a(u,[M[S]]),isFunction:!0,name:m+S})),p.vertexPragmas.define[g]+=[\"attribute\",\"{precision}\",\"{type}\",m+S].join(\" \")+\";\\n\";p.vertexPragmas.initialize[g]=[g,\" = \",\"evaluate_zoom_function_4(\"+T.join(\", \")+\", \"+b+\")\",\"/\",u.multiplier.toFixed(1)].join(\" \")+\";\\n\"}}}}}return e}function a(t,e){return function(r,n,i){if(1===e.length)return t.getValue(r,c.extend({},n,{zoom:e[0]}),i);for(var a=[],o=0;o<e.length;o++){var s=e[o];a.push(t.getValue(r,c.extend({},n,{zoom:s}),i)[0])}return a}}function o(t,e){return function(r,n){var i=r.getPaintInterpolationT(t.paintProperty,n.zoom);return[Math.max(0,Math.min(4,i-e))]}}var s=t(\"feature-filter\"),l=t(\"./array_group\"),u=t(\"./buffer_group\"),c=t(\"../util/util\"),h=t(\"../util/struct_array\"),f=t(\"assert\");e.exports=n,n.create=function(e){return new({fill:t(\"./bucket/fill_bucket\"),line:t(\"./bucket/line_bucket\"),circle:t(\"./bucket/circle_bucket\"),symbol:t(\"./bucket/symbol_bucket\")}[e.layer.type])(e)},n.EXTENT=8192,n.prototype.populateArrays=function(){this.createArrays(),this.recalculateStyleLayers();for(var t=0;t<this.features.length;t++)this.addFeature(this.features[t]);this.trimArrays()},n.prototype.prepareArrayGroup=function(t,e){var r=this.arrayGroups[t],n=r.length&&r[r.length-1];return n&&n.hasCapacityFor(e)||(n=new l({layoutVertexArrayType:this.programInterfaces[t].layoutVertexArrayType,elementArrayType:this.programInterfaces[t].elementArrayType,elementArrayType2:this.programInterfaces[t].elementArrayType2,paintVertexArrayTypes:this.paintVertexArrayTypes[t]}),n.index=r.length,r.push(n)),n},n.prototype.createArrays=function(){this.arrayGroups={},this.paintVertexArrayTypes={};for(var t in this.programInterfaces){this.arrayGroups[t]=[];var e=this.paintVertexArrayTypes[t]={},r=this.paintAttributes[t];for(var i in r)e[i]=new n.VertexArrayType(r[i].attributes)}},n.prototype.destroy=function(t){for(var e in this.bufferGroups)for(var r=this.bufferGroups[e],n=0;n<r.length;n++)r[n].destroy(t)},n.prototype.trimArrays=function(){for(var t in this.arrayGroups)for(var e=this.arrayGroups[t],r=0;r<e.length;r++)e[r].trim()},n.prototype.isEmpty=function(){for(var t in this.arrayGroups)for(var e=this.arrayGroups[t],r=0;r<e.length;r++)if(!e[r].isEmpty())return!1;return!0},n.prototype.getTransferables=function(t){for(var e in this.arrayGroups)for(var r=this.arrayGroups[e],n=0;n<r.length;n++)r[n].getTransferables(t)},n.prototype.setUniforms=function(t,e,r,n,i){for(var a=this.paintAttributes[e][n.id].uniforms,o=0;o<a.length;o++){var s=a[o],l=r[s.name];t[\"uniform\"+s.components+\"fv\"](l,s.getValue(n,i))}},n.prototype.serialize=function(){return{layerId:this.layer.id,zoom:this.zoom,arrays:c.mapObject(this.arrayGroups,function(t){return t.map(function(t){return t.serialize()})}),paintVertexArrayTypes:c.mapObject(this.paintVertexArrayTypes,function(t){return c.mapObject(t,function(t){return t.serialize()})}),childLayerIds:this.childLayers.map(function(t){return t.id})}},n.prototype.createFilter=function(){this.filter||(this.filter=s(this.layer.filter))};var d={lastIntegerZoom:1/0,lastIntegerZoomTime:0,lastZoom:0};n.prototype.recalculateStyleLayers=function(){for(var t=0;t<this.childLayers.length;t++)this.childLayers[t].recalculate(this.zoom,d)},n.prototype.populatePaintArrays=function(t,e,r,n,i){for(var a=0;a<this.childLayers.length;a++)for(var o=this.childLayers[a],s=this.arrayGroups[t],l=n.index;l<s.length;l++){var u=s[l],c=u.layoutVertexArray.length,h=u.paintVertexArrays[o.id];h.resize(c);for(var f=this.paintAttributes[t][o.id].attributes,d=0;d<f.length;d++)for(var p=f[d],m=p.getValue(o,e,r),v=p.multiplier||1,g=p.components||1,y=l===n.index?i:0,b=y;b<c;b++)for(var x=h.get(b),_=0;_<g;_++){var w=g>1?p.name+_:p.name;x[w]=m[_]*v}}},n.VertexArrayType=function(t){return new h({members:t,alignment:4})},n.ElementArrayType=function(t){return new h({members:[{type:\"Uint16\",name:\"vertices\",components:t||3}]})}},{\"../util/struct_array\":440,\"../util/util\":442,\"./array_group\":328,\"./bucket/circle_bucket\":330,\"./bucket/fill_bucket\":331,\"./bucket/line_bucket\":332,\"./bucket/symbol_bucket\":333,\"./buffer_group\":335,assert:47,\"feature-filter\":132}],330:[function(t,e,r){\"use strict\";function n(){i.apply(this,arguments)}var i=t(\"../bucket\"),a=t(\"../../util/util\"),o=t(\"../load_geometry\"),s=i.EXTENT;e.exports=n,n.prototype=a.inherit(i,{}),n.prototype.addCircleVertex=function(t,e,r,n,i){return t.emplaceBack(2*e+(n+1)/2,2*r+(i+1)/2)},n.prototype.programInterfaces={circle:{layoutVertexArrayType:new i.VertexArrayType([{name:\"a_pos\",components:2,type:\"Int16\"}]),elementArrayType:new i.ElementArrayType,paintAttributes:[{name:\"a_color\",components:4,type:\"Uint8\",getValue:function(t,e,r){return t.getPaintValue(\"circle-color\",e,r)},multiplier:255,paintProperty:\"circle-color\"},{name:\"a_radius\",components:1,type:\"Uint16\",isLayerConstant:!1,getValue:function(t,e,r){return[t.getPaintValue(\"circle-radius\",e,r)]},multiplier:10,paintProperty:\"circle-radius\"},{name:\"a_blur\",components:1,type:\"Uint16\",isLayerConstant:!1,getValue:function(t,e,r){return[t.getPaintValue(\"circle-blur\",e,r)]},multiplier:10,paintProperty:\"circle-blur\"},{name:\"a_opacity\",components:1,type:\"Uint16\",isLayerConstant:!1,getValue:function(t,e,r){return[t.getPaintValue(\"circle-opacity\",e,r)]},multiplier:255,paintProperty:\"circle-opacity\"}]}},n.prototype.addFeature=function(t){for(var e={zoom:this.zoom},r=o(t),n=this.prepareArrayGroup(\"circle\",0),i=n.layoutVertexArray.length,a=0;a<r.length;a++)for(var l=0;l<r[a].length;l++){var u=r[a][l].x,c=r[a][l].y;if(!(u<0||u>=s||c<0||c>=s)){var h=this.prepareArrayGroup(\"circle\",4),f=h.layoutVertexArray,d=this.addCircleVertex(f,u,c,-1,-1);this.addCircleVertex(f,u,c,1,-1),this.addCircleVertex(f,u,c,1,1),this.addCircleVertex(f,u,c,-1,1),h.elementArray.emplaceBack(d,d+1,d+2),h.elementArray.emplaceBack(d,d+3,d+2)}}this.populatePaintArrays(\"circle\",e,t.properties,n,i)}},{\"../../util/util\":442,\"../bucket\":329,\"../load_geometry\":337}],331:[function(t,e,r){\"use strict\";function n(){i.apply(this,arguments)}var i=t(\"../bucket\"),a=t(\"../../util/util\"),o=t(\"../load_geometry\"),s=t(\"earcut\"),l=t(\"../../util/classify_rings\");e.exports=n,n.prototype=a.inherit(i,{}),n.prototype.programInterfaces={fill:{layoutVertexArrayType:new i.VertexArrayType([{name:\"a_pos\",components:2,type:\"Int16\"}]),elementArrayType:new i.ElementArrayType(1),elementArrayType2:new i.ElementArrayType(2),paintAttributes:[{name:\"a_color\",components:4,type:\"Uint8\",getValue:function(t,e,r){return t.getPaintValue(\"fill-color\",e,r)},multiplier:255,paintProperty:\"fill-color\"},{name:\"a_outline_color\",components:4,type:\"Uint8\",getValue:function(t,e,r){return t.getPaintValue(\"fill-outline-color\",e,r)},multiplier:255,paintProperty:\"fill-outline-color\"},{name:\"a_opacity\",components:1,type:\"Uint8\",getValue:function(t,e,r){return[t.getPaintValue(\"fill-opacity\",e,r)]},multiplier:255,paintProperty:\"fill-opacity\"}]}},n.prototype.addFeature=function(t){for(var e=o(t),r=l(e,500),n=this.prepareArrayGroup(\"fill\",0),i=n.layoutVertexArray.length,a=0;a<r.length;a++)this.addPolygon(r[a]);this.populatePaintArrays(\"fill\",{zoom:this.zoom},t.properties,n,i)},n.prototype.addPolygon=function(t){for(var e=0,r=0;r<t.length;r++)e+=t[r].length;for(var n=this.prepareArrayGroup(\"fill\",e),i=[],a=[],o=n.layoutVertexArray.length,l=0;l<t.length;l++){var u=t[l];l>0&&a.push(i.length/2);for(var c=0;c<u.length;c++){var h=u[c],f=n.layoutVertexArray.emplaceBack(h.x,h.y);c>=1&&n.elementArray2.emplaceBack(f-1,f),i.push(h.x),i.push(h.y)}}for(var d=s(i,a),p=0;p<d.length;p++)n.elementArray.emplaceBack(d[p]+o)}},{\"../../util/classify_rings\":430,\"../../util/util\":442,\"../bucket\":329,\"../load_geometry\":337,earcut:126}],332:[function(t,e,r){\"use strict\";function n(){i.apply(this,arguments)}var i=t(\"../bucket\"),a=t(\"../../util/util\"),o=t(\"../load_geometry\"),s=i.EXTENT,l=Math.cos(Math.PI/180*37.5),u=Math.pow(2,14)/.5;e.exports=n,n.prototype=a.inherit(i,{}),n.prototype.addLineVertex=function(t,e,r,n,i,a,o){return t.emplaceBack(e.x<<1|n,e.y<<1|i,Math.round(63*r.x)+128,Math.round(63*r.y)+128,1+(0===a?0:a<0?-1:1)|(.5*o&63)<<2,.5*o>>6)},n.prototype.programInterfaces={line:{layoutVertexArrayType:new i.VertexArrayType([{name:\"a_pos\",components:2,type:\"Int16\"},{name:\"a_data\",components:4,type:\"Uint8\"}]),elementArrayType:new i.ElementArrayType}},n.prototype.addFeature=function(t){for(var e=o(t,15),r=0;r<e.length;r++)this.addLine(e[r],this.layer.layout[\"line-join\"],this.layer.layout[\"line-cap\"],this.layer.layout[\"line-miter-limit\"],this.layer.layout[\"line-round-limit\"])},n.prototype.addLine=function(t,e,r,n,i){for(var a=t.length;a>2&&t[a-1].equals(t[a-2]);)a--;if(!(t.length<2)){\"bevel\"===e&&(n=1.05);var o=s/(512*this.overscaling)*15,u=t[0],c=t[a-1],h=u.equals(c);if(this.prepareArrayGroup(\"line\",10*a),2!==a||!h){this.distance=0;var f,d,p,m,v,g,y,b=r,x=h?\"butt\":r,_=!0;this.e1=this.e2=this.e3=-1,h&&(f=t[a-2],v=u.sub(f)._unit()._perp());for(var w=0;w<a;w++)if(!(p=h&&w===a-1?t[1]:t[w+1])||!t[w].equals(p)){v&&(m=v),f&&(d=f),f=t[w],v=p?p.sub(f)._unit()._perp():m,m=m||v;var M=m.add(v)._unit(),k=M.x*v.x+M.y*v.y,A=1/k,T=k<l&&d&&p;if(T&&w>0){var S=f.dist(d);if(S>2*o){var E=f.sub(f.sub(d)._mult(o/S)._round());this.distance+=E.dist(d),this.addCurrentVertex(E,this.distance,m.mult(1),0,0,!1),d=E}}var L=d&&p,C=L?e:p?b:x;if(L&&\"round\"===C&&(A<i?C=\"miter\":A<=2&&(C=\"fakeround\")),\"miter\"===C&&A>n&&(C=\"bevel\"),\"bevel\"===C&&(A>2&&(C=\"flipbevel\"),A<n&&(C=\"miter\")),d&&(this.distance+=f.dist(d)),\"miter\"===C)M._mult(A),this.addCurrentVertex(f,this.distance,M,0,0,!1);else if(\"flipbevel\"===C){if(A>100)M=v.clone();else{var I=m.x*v.y-m.y*v.x>0?-1:1,z=A*m.add(v).mag()/m.sub(v).mag();M._perp()._mult(z*I)}this.addCurrentVertex(f,this.distance,M,0,0,!1),this.addCurrentVertex(f,this.distance,M.mult(-1),0,0,!1)}else if(\"bevel\"===C||\"fakeround\"===C){var D=m.x*v.y-m.y*v.x>0,P=-Math.sqrt(A*A-1);if(D?(y=0,g=P):(g=0,y=P),_||this.addCurrentVertex(f,this.distance,m,g,y,!1),\"fakeround\"===C){for(var O,R=Math.floor(8*(.5-(k-.5))),F=0;F<R;F++)O=v.mult((F+1)/(R+1))._add(m)._unit(),this.addPieSliceVertex(f,this.distance,O,D);this.addPieSliceVertex(f,this.distance,M,D);for(var j=R-1;j>=0;j--)O=m.mult((j+1)/(R+1))._add(v)._unit(),this.addPieSliceVertex(f,this.distance,O,D)}p&&this.addCurrentVertex(f,this.distance,v,-g,-y,!1)}else\"butt\"===C?(_||this.addCurrentVertex(f,this.distance,m,0,0,!1),p&&this.addCurrentVertex(f,this.distance,v,0,0,!1)):\"square\"===C?(_||(this.addCurrentVertex(f,this.distance,m,1,1,!1),this.e1=this.e2=-1),p&&this.addCurrentVertex(f,this.distance,v,-1,-1,!1)):\"round\"===C&&(_||(this.addCurrentVertex(f,this.distance,m,0,0,!1),this.addCurrentVertex(f,this.distance,m,1,1,!0),this.e1=this.e2=-1),p&&(this.addCurrentVertex(f,this.distance,v,-1,-1,!0),this.addCurrentVertex(f,this.distance,v,0,0,!1)));if(T&&w<a-1){var N=f.dist(p);if(N>2*o){var B=f.add(p.sub(f)._mult(o/N)._round());this.distance+=B.dist(f),this.addCurrentVertex(B,this.distance,v.mult(1),0,0,!1),f=B}}_=!1}}}},n.prototype.addCurrentVertex=function(t,e,r,n,i,a){var o,s=a?1:0,l=this.arrayGroups.line[this.arrayGroups.line.length-1],c=l.layoutVertexArray,h=l.elementArray;o=r.clone(),n&&o._sub(r.perp()._mult(n)),this.e3=this.addLineVertex(c,t,o,s,0,n,e),this.e1>=0&&this.e2>=0&&h.emplaceBack(this.e1,this.e2,this.e3),this.e1=this.e2,this.e2=this.e3,o=r.mult(-1),i&&o._sub(r.perp()._mult(i)),this.e3=this.addLineVertex(c,t,o,s,1,-i,e),this.e1>=0&&this.e2>=0&&h.emplaceBack(this.e1,this.e2,this.e3),this.e1=this.e2,this.e2=this.e3,e>u/2&&(this.distance=0,this.addCurrentVertex(t,this.distance,r,n,i,a))},n.prototype.addPieSliceVertex=function(t,e,r,n){var i=n?1:0;r=r.mult(n?-1:1);var a=this.arrayGroups.line[this.arrayGroups.line.length-1],o=a.layoutVertexArray,s=a.elementArray;this.e3=this.addLineVertex(o,t,r,0,i,0,e),this.e1>=0&&this.e2>=0&&s.emplaceBack(this.e1,this.e2,this.e3),n?this.e2=this.e3:this.e1=this.e3}},{\"../../util/util\":442,\"../bucket\":329,\"../load_geometry\":337}],333:[function(t,e,r){\"use strict\";function n(t){o.apply(this,arguments),this.showCollisionBoxes=t.showCollisionBoxes,this.overscaling=t.overscaling,this.collisionBoxArray=t.collisionBoxArray,this.symbolQuadsArray=t.symbolQuadsArray,this.symbolInstancesArray=t.symbolInstancesArray,this.sdfIcons=t.sdfIcons,this.iconsNeedLinear=t.iconsNeedLinear,this.adjustedTextSize=t.adjustedTextSize,this.adjustedIconSize=t.adjustedIconSize,this.fontstack=t.fontstack}function i(t,e,r,n,i,a,o,s,l,u,c){return t.emplaceBack(e,r,Math.round(64*n),Math.round(64*i),a/4,o/4,10*(u||0),c,10*(s||0),10*Math.min(l||25,25))}var a=t(\"point-geometry\"),o=t(\"../bucket\"),s=t(\"../../symbol/anchor\"),l=t(\"../../symbol/get_anchors\"),u=t(\"../../util/token\"),c=t(\"../../symbol/quads\"),h=t(\"../../symbol/shaping\"),f=t(\"../../symbol/resolve_text\"),d=t(\"../../symbol/mergelines\"),p=t(\"../../symbol/clip_line\"),m=t(\"../../util/util\"),v=t(\"../load_geometry\"),g=t(\"../../symbol/collision_feature\"),y=h.shapeText,b=h.shapeIcon,x=c.getGlyphQuads,_=c.getIconQuads,w=o.EXTENT;e.exports=n,n.MAX_QUADS=65535,n.prototype=m.inherit(o,{}),n.prototype.serialize=function(){var t=o.prototype.serialize.apply(this);return t.sdfIcons=this.sdfIcons,t.iconsNeedLinear=this.iconsNeedLinear,t.adjustedTextSize=this.adjustedTextSize,t.adjustedIconSize=this.adjustedIconSize,t.fontstack=this.fontstack,t};var M=new o.VertexArrayType([{name:\"a_pos\",components:2,type:\"Int16\"},{name:\"a_offset\",components:2,type:\"Int16\"},{name:\"a_texture_pos\",components:2,type:\"Uint16\"},{name:\"a_data\",components:4,type:\"Uint8\"}]),k=new o.ElementArrayType;n.prototype.addCollisionBoxVertex=function(t,e,r,n,i){return t.emplaceBack(e.x,e.y,Math.round(r.x),Math.round(r.y),10*n,10*i)},n.prototype.programInterfaces={glyph:{layoutVertexArrayType:M,elementArrayType:k},icon:{layoutVertexArrayType:M,elementArrayType:k},collisionBox:{layoutVertexArrayType:new o.VertexArrayType([{name:\"a_pos\",components:2,type:\"Int16\"},{name:\"a_extrude\",components:2,type:\"Int16\"},{name:\"a_data\",components:2,type:\"Uint8\"}])}},n.prototype.populateArrays=function(t,e,r){var n={lastIntegerZoom:1/0,lastIntegerZoomTime:0,lastZoom:0};this.adjustedTextMaxSize=this.layer.getLayoutValue(\"text-size\",{zoom:18,zoomHistory:n}),this.adjustedTextSize=this.layer.getLayoutValue(\"text-size\",{zoom:this.zoom+1,zoomHistory:n}),this.adjustedIconMaxSize=this.layer.getLayoutValue(\"icon-size\",{zoom:18,zoomHistory:n}),this.adjustedIconSize=this.layer.getLayoutValue(\"icon-size\",{zoom:this.zoom+1,zoomHistory:n});var i=512*this.overscaling;this.tilePixelRatio=w/i,this.compareText={},this.iconsNeedLinear=!1,this.symbolInstancesStartIndex=this.symbolInstancesArray.length;var a=this.layer.layout,o=this.features,s=this.textFeatures,l=.5,c=.5;switch(a[\"text-anchor\"]){case\"right\":case\"top-right\":case\"bottom-right\":l=1;break;case\"left\":case\"top-left\":case\"bottom-left\":l=0}switch(a[\"text-anchor\"]){case\"bottom\":case\"bottom-right\":case\"bottom-left\":c=1;break;case\"top\":case\"top-right\":case\"top-left\":c=0}for(var h=\"right\"===a[\"text-justify\"]?1:\"left\"===a[\"text-justify\"]?0:.5,f=24*a[\"text-line-height\"],p=\"line\"!==a[\"symbol-placement\"]?24*a[\"text-max-width\"]:0,g=24*a[\"text-letter-spacing\"],x=[24*a[\"text-offset\"][0],24*a[\"text-offset\"][1]],_=this.fontstack=a[\"text-font\"].join(\",\"),M=[],k=0;k<o.length;k++)M.push(v(o[k]));if(\"line\"===a[\"symbol-placement\"]){var A=d(o,s,M);M=A.geometries,o=A.features,s=A.textFeatures}for(var T,S,E=0;E<o.length;E++)if(M[E]){if(T=s[E]?y(s[E],e[_],p,f,l,c,h,g,x):null,a[\"icon-image\"]){var L=u(o[E].properties,a[\"icon-image\"]),C=r[L];S=b(C,a),C&&(void 0===this.sdfIcons?this.sdfIcons=C.sdf:this.sdfIcons!==C.sdf&&m.warnOnce(\"Style sheet warning: Cannot mix SDF and non-SDF icons in one buffer\"),1!==C.pixelRatio?this.iconsNeedLinear=!0:0===a[\"icon-rotate\"]&&this.layer.isLayoutValueFeatureConstant(\"icon-rotate\")||(this.iconsNeedLinear=!0))}else S=null;(T||S)&&this.addFeature(M[E],T,S,o[E])}this.symbolInstancesEndIndex=this.symbolInstancesArray.length,this.placeFeatures(t,this.showCollisionBoxes),this.trimArrays()},n.prototype.addFeature=function(t,e,r,n){var i=this.layer.layout,a=this.adjustedTextSize/24,o=void 0!==this.adjustedTextMaxSize?this.adjustedTextMaxSize:this.adjustedTextSize,u=this.tilePixelRatio*a,c=this.tilePixelRatio*o/24,h=this.tilePixelRatio*this.adjustedIconSize,f=this.tilePixelRatio*i[\"symbol-spacing\"],d=i[\"symbol-avoid-edges\"],m=i[\"text-padding\"]*this.tilePixelRatio,v=i[\"icon-padding\"]*this.tilePixelRatio,g=i[\"text-max-angle\"]/180*Math.PI,y=\"map\"===i[\"text-rotation-alignment\"]&&\"line\"===i[\"symbol-placement\"],b=\"map\"===i[\"icon-rotation-alignment\"]&&\"line\"===i[\"symbol-placement\"],x=i[\"text-allow-overlap\"]||i[\"icon-allow-overlap\"]||i[\"text-ignore-placement\"]||i[\"icon-ignore-placement\"],_=\"line\"===i[\"symbol-placement\"],M=f/2;_&&(t=p(t,0,0,w,w));for(var k=0;k<t.length;k++){var A,T=t[k];A=_?l(T,f,g,e,r,24,c,this.overscaling,w):[new s(T[0].x,T[0].y,0)];for(var S=0,E=A.length;S<E;S++){var L=A[S];if(!(e&&_&&this.anchorIsTooClose(e.text,M,L))){var C=!(L.x<0||L.x>w||L.y<0||L.y>w);if(!d||C){var I=C||x;this.addSymbolInstance(L,T,e,r,this.layer,I,this.symbolInstancesArray.length,this.collisionBoxArray,n.index,this.sourceLayerIndex,this.index,u,m,y,h,v,b,{zoom:this.zoom},n.properties)}}}}},n.prototype.anchorIsTooClose=function(t,e,r){var n=this.compareText;if(t in n){for(var i=n[t],a=i.length-1;a>=0;a--)if(r.dist(i[a])<e)return!0}else n[t]=[];return n[t].push(r),!1},n.prototype.placeFeatures=function(t,e){this.recalculateStyleLayers(),this.createArrays();var r=this.layer.layout,n=t.maxScale,i=\"map\"===r[\"text-rotation-alignment\"]&&\"line\"===r[\"symbol-placement\"],a=\"map\"===r[\"icon-rotation-alignment\"]&&\"line\"===r[\"symbol-placement\"];if(r[\"text-allow-overlap\"]||r[\"icon-allow-overlap\"]||r[\"text-ignore-placement\"]||r[\"icon-ignore-placement\"]){var o=this.symbolInstancesArray.toArray(this.symbolInstancesStartIndex,this.symbolInstancesEndIndex),s=t.angle,l=Math.sin(s),u=Math.cos(s);this.sortedSymbolInstances=o.sort(function(t,e){return(l*t.anchorPointX+u*t.anchorPointY|0)-(l*e.anchorPointX+u*e.anchorPointY|0)||e.index-t.index})}for(var c=this.symbolInstancesStartIndex;c<this.symbolInstancesEndIndex;c++){var h=this.sortedSymbolInstances?this.sortedSymbolInstances[c-this.symbolInstancesStartIndex]:this.symbolInstancesArray.get(c),f={boxStartIndex:h.textBoxStartIndex,boxEndIndex:h.textBoxEndIndex},d={boxStartIndex:h.iconBoxStartIndex,boxEndIndex:h.iconBoxEndIndex},p=!(h.textBoxStartIndex===h.textBoxEndIndex),m=!(h.iconBoxStartIndex===h.iconBoxEndIndex),v=r[\"text-optional\"]||!p,g=r[\"icon-optional\"]||!m,y=p?t.placeCollisionFeature(f,r[\"text-allow-overlap\"],r[\"symbol-avoid-edges\"]):t.minScale,b=m?t.placeCollisionFeature(d,r[\"icon-allow-overlap\"],r[\"symbol-avoid-edges\"]):t.minScale;v||g?!g&&y?y=Math.max(b,y):!v&&b&&(b=Math.max(b,y)):b=y=Math.max(b,y),p&&(t.insertCollisionFeature(f,y,r[\"text-ignore-placement\"]),y<=n&&this.addSymbols(\"glyph\",h.glyphQuadStartIndex,h.glyphQuadEndIndex,y,r[\"text-keep-upright\"],i,t.angle)),m&&(t.insertCollisionFeature(d,b,r[\"icon-ignore-placement\"]),b<=n&&this.addSymbols(\"icon\",h.iconQuadStartIndex,h.iconQuadEndIndex,b,r[\"icon-keep-upright\"],a,t.angle))}e&&this.addToDebugBuffers(t)},n.prototype.addSymbols=function(t,e,r,n,a,o,s){for(var l=this.prepareArrayGroup(t,4*(r-e)),u=l.elementArray,c=l.layoutVertexArray,h=this.zoom,f=Math.max(Math.log(n)/Math.LN2+h,0),d=e;d<r;d++){var p=this.symbolQuadsArray.get(d).SymbolQuad,m=(p.anchorAngle+s+Math.PI)%(2*Math.PI);if(!(a&&o&&(m<=Math.PI/2||m>3*Math.PI/2))){var v=p.tl,g=p.tr,y=p.bl,b=p.br,x=p.tex,_=p.anchorPoint,w=Math.max(h+Math.log(p.minScale)/Math.LN2,f),M=Math.min(h+Math.log(p.maxScale)/Math.LN2,25);if(!(M<=w)){w===f&&(w=0);var k=Math.round(p.glyphAngle/(2*Math.PI)*256),A=i(c,_.x,_.y,v.x,v.y,x.x,x.y,w,M,f,k);i(c,_.x,_.y,g.x,g.y,x.x+x.w,x.y,w,M,f,k),i(c,_.x,_.y,y.x,y.y,x.x,x.y+x.h,w,M,f,k),i(c,_.x,_.y,b.x,b.y,x.x+x.w,x.y+x.h,w,M,f,k),u.emplaceBack(A,A+1,A+2),u.emplaceBack(A+1,A+2,A+3)}}}},n.prototype.updateIcons=function(t){this.recalculateStyleLayers();var e=this.layer.layout[\"icon-image\"];if(e)for(var r=0;r<this.features.length;r++){var n=u(this.features[r].properties,e);n&&(t[n]=!0)}},n.prototype.updateFont=function(t){this.recalculateStyleLayers();var e=this.layer.layout[\"text-font\"],r=t[e]=t[e]||{};this.textFeatures=f(this.features,this.layer.layout,r)},n.prototype.addToDebugBuffers=function(t){for(var e=this.prepareArrayGroup(\"collisionBox\",0),r=e.layoutVertexArray,n=-t.angle,i=t.yStretch,o=this.symbolInstancesStartIndex;o<this.symbolInstancesEndIndex;o++){var s=this.symbolInstancesArray.get(o);s.textCollisionFeature={boxStartIndex:s.textBoxStartIndex,boxEndIndex:s.textBoxEndIndex},s.iconCollisionFeature={boxStartIndex:s.iconBoxStartIndex,boxEndIndex:s.iconBoxEndIndex};for(var l=0;l<2;l++){var u=s[0===l?\"textCollisionFeature\":\"iconCollisionFeature\"];if(u)for(var c=u.boxStartIndex;c<u.boxEndIndex;c++){var h=this.collisionBoxArray.get(c),f=h.anchorPoint,d=new a(h.x1,h.y1*i)._rotate(n),p=new a(h.x2,h.y1*i)._rotate(n),m=new a(h.x1,h.y2*i)._rotate(n),v=new a(h.x2,h.y2*i)._rotate(n),g=Math.max(0,Math.min(25,this.zoom+Math.log(h.maxScale)/Math.LN2)),y=Math.max(0,Math.min(25,this.zoom+Math.log(h.placementScale)/Math.LN2));this.addCollisionBoxVertex(r,f,d,g,y),this.addCollisionBoxVertex(r,f,p,g,y),this.addCollisionBoxVertex(r,f,p,g,y),this.addCollisionBoxVertex(r,f,v,g,y),this.addCollisionBoxVertex(r,f,v,g,y),this.addCollisionBoxVertex(r,f,m,g,y),this.addCollisionBoxVertex(r,f,m,g,y),this.addCollisionBoxVertex(r,f,d,g,y)}}}},n.prototype.addSymbolInstance=function(t,e,r,i,a,o,s,l,u,c,h,f,d,p,v,y,b,w,M){var k,A,T,S,E,L,C,I;if(r&&(C=o?x(t,r,f,e,a,p):[],E=new g(l,e,t,u,c,h,r,f,d,p,!1)),k=this.symbolQuadsArray.length,C&&C.length)for(var z=0;z<C.length;z++)this.addSymbolQuad(C[z]);A=this.symbolQuadsArray.length;var D=E?E.boxStartIndex:this.collisionBoxArray.length,P=E?E.boxEndIndex:this.collisionBoxArray.length;i&&(I=o?_(t,i,v,e,a,b,r,w,M):[],L=new g(l,e,t,u,c,h,i,v,y,b,!0)),T=this.symbolQuadsArray.length,I&&1===I.length&&this.addSymbolQuad(I[0]),S=this.symbolQuadsArray.length;var O=L?L.boxStartIndex:this.collisionBoxArray.length,R=L?L.boxEndIndex:this.collisionBoxArray.length;return S>n.MAX_QUADS&&m.warnOnce(\"Too many symbols being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907\"),A>n.MAX_QUADS&&m.warnOnce(\"Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907\"),this.symbolInstancesArray.emplaceBack(D,P,O,R,k,A,T,S,t.x,t.y,s)},n.prototype.addSymbolQuad=function(t){return this.symbolQuadsArray.emplaceBack(t.anchorPoint.x,t.anchorPoint.y,t.tl.x,t.tl.y,t.tr.x,t.tr.y,t.bl.x,t.bl.y,t.br.x,t.br.y,t.tex.h,t.tex.w,t.tex.x,t.tex.y,t.anchorAngle,t.glyphAngle,t.maxScale,t.minScale)}},{\"../../symbol/anchor\":391,\"../../symbol/clip_line\":393,\"../../symbol/collision_feature\":395,\"../../symbol/get_anchors\":397,\"../../symbol/mergelines\":400,\"../../symbol/quads\":401,\"../../symbol/resolve_text\":402,\"../../symbol/shaping\":403,\"../../util/token\":441,\"../../util/util\":442,\"../bucket\":329,\"../load_geometry\":337,\"point-geometry\":484}],334:[function(t,e,r){\"use strict\";function n(t,e,r){this.arrayBuffer=t.arrayBuffer,this.length=t.length,this.attributes=e.members,this.itemSize=e.bytesPerElement,this.type=r,this.arrayType=e}e.exports=n,n.prototype.bind=function(t){var e=t[this.type];this.buffer?t.bindBuffer(e,this.buffer):(this.buffer=t.createBuffer(),t.bindBuffer(e,this.buffer),t.bufferData(e,this.arrayBuffer,t.STATIC_DRAW),this.arrayBuffer=null)};var i={Int8:\"BYTE\",Uint8:\"UNSIGNED_BYTE\",Int16:\"SHORT\",Uint16:\"UNSIGNED_SHORT\"};n.prototype.setVertexAttribPointers=function(t,e){for(var r=0;r<this.attributes.length;r++){var n=this.attributes[r],a=e[n.name];void 0!==a&&t.vertexAttribPointer(a,n.components,t[i[n.type]],!1,this.arrayType.bytesPerElement,n.offset)}},n.prototype.destroy=function(t){this.buffer&&t.deleteBuffer(this.buffer)},n.BufferType={VERTEX:\"ARRAY_BUFFER\",ELEMENT:\"ELEMENT_ARRAY_BUFFER\"}},{}],335:[function(t,e,r){\"use strict\";function n(t,e){this.layoutVertexBuffer=new a(t.layoutVertexArray,e.layoutVertexArrayType,a.BufferType.VERTEX),t.elementArray&&(this.elementBuffer=new a(t.elementArray,e.elementArrayType,a.BufferType.ELEMENT));var r,n=this.vaos={};t.elementArray2&&(this.elementBuffer2=new a(t.elementArray2,e.elementArrayType2,a.BufferType.ELEMENT),r=this.secondVaos={}),this.paintVertexBuffers=i.mapObject(t.paintVertexArrays,function(i,s){return n[s]=new o,t.elementArray2&&(r[s]=new o),new a(i,e.paintVertexArrayTypes[s],a.BufferType.VERTEX)})}var i=t(\"../util/util\"),a=t(\"./buffer\"),o=t(\"../render/vertex_array_object\");e.exports=n,n.prototype.destroy=function(t){this.layoutVertexBuffer.destroy(t),this.elementBuffer&&this.elementBuffer.destroy(t),this.elementBuffer2&&this.elementBuffer2.destroy(t);for(var e in this.paintVertexBuffers)this.paintVertexBuffers[e].destroy(t);for(var r in this.vaos)this.vaos[r].destroy(t);for(var n in this.secondVaos)this.secondVaos[n].destroy(t)}},{\"../render/vertex_array_object\":357,\"../util/util\":442,\"./buffer\":334}],336:[function(t,e,r){\"use strict\";function n(t,e,r){if(t.grid){var n=t,i=e;t=n.coord,e=n.overscaling,this.grid=new p(n.grid),this.featureIndexArray=new k(n.featureIndexArray),this.rawTileData=i,this.bucketLayerIDs=n.bucketLayerIDs}else this.grid=new p(h,16,0),this.featureIndexArray=new k;this.coord=t,this.overscaling=e,this.x=t.x,this.y=t.y,this.z=t.z-Math.log(e)/Math.LN2,this.setCollisionTile(r)}function i(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function a(t,e){return e-t}function o(t){return t[\"line-gap-width\"]>0?t[\"line-gap-width\"]+2*t[\"line-width\"]:t[\"line-width\"]}function s(t,e,r,n,i){if(!e[0]&&!e[1])return t;e=u.convert(e),\"viewport\"===r&&e._rotate(-n);for(var a=[],o=0;o<t.length;o++){for(var s=t[o],l=[],c=0;c<s.length;c++)l.push(s[c].sub(e._mult(i)));a.push(l)}return a}function l(t,e){for(var r=[],n=new u(0,0),i=0;i<t.length;i++){for(var a=t[i],o=[],s=0;s<a.length;s++){var l=a[s-1],c=a[s],h=a[s+1],f=0===s?n:c.sub(l)._unit()._perp(),d=s===a.length-1?n:h.sub(c)._unit()._perp(),p=f._add(d)._unit(),m=p.x*d.x+p.y*d.y;p._mult(1/m),o.push(p._mult(e)._add(c))}r.push(o)}return r}var u=t(\"point-geometry\"),c=t(\"./load_geometry\"),h=t(\"./bucket\").EXTENT,f=t(\"feature-filter\"),d=t(\"../util/struct_array\"),p=t(\"grid-index\"),m=t(\"../util/dictionary_coder\"),v=t(\"vector-tile\"),g=t(\"pbf\"),y=t(\"../util/vectortile_to_geojson\"),b=t(\"../util/util\").arraysIntersect,x=t(\"../util/intersection_tests\"),_=x.multiPolygonIntersectsBufferedMultiPoint,w=x.multiPolygonIntersectsMultiPolygon,M=x.multiPolygonIntersectsBufferedMultiLine,k=new d({members:[{type:\"Uint32\",name:\"featureIndex\"},{type:\"Uint16\",name:\"sourceLayerIndex\"},{type:\"Uint16\",name:\"bucketIndex\"}]});e.exports=n,n.prototype.insert=function(t,e,r,n){var i=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(e,r,n);for(var a=c(t),o=0;o<a.length;o++){for(var s=a[o],l=[1/0,1/0,-1/0,-1/0],u=0;u<s.length;u++){var h=s[u];l[0]=Math.min(l[0],h.x),l[1]=Math.min(l[1],h.y),l[2]=Math.max(l[2],h.x),l[3]=Math.max(l[3],h.y)}this.grid.insert(i,l[0],l[1],l[2],l[3])}},n.prototype.setCollisionTile=function(t){this.collisionTile=t},n.prototype.serialize=function(){var t={coord:this.coord,overscaling:this.overscaling,grid:this.grid.toArrayBuffer(),featureIndexArray:this.featureIndexArray.serialize(),bucketLayerIDs:this.bucketLayerIDs};return{data:t,transferables:[t.grid,t.featureIndexArray.arrayBuffer]}},n.prototype.query=function(t,e){this.vtLayers||(this.vtLayers=new v.VectorTile(new g(new Uint8Array(this.rawTileData))).layers,this.sourceLayerCoder=new m(this.vtLayers?Object.keys(this.vtLayers).sort():[\"_geojsonTileLayer\"]));var r={},n=t.params||{},s=h/t.tileSize/t.scale,l=f(n.filter),c=0;for(var d in e){var p=e[d],y=p.paint,b=0;\"line\"===p.type?b=o(y)/2+Math.abs(y[\"line-offset\"])+i(y[\"line-translate\"]):\"fill\"===p.type?b=i(y[\"fill-translate\"]):\"circle\"===p.type&&(b=y[\"circle-radius\"]+i(y[\"circle-translate\"])),c=Math.max(c,b*s)}for(var x=t.queryGeometry.map(function(t){return t.map(function(t){return new u(t.x,t.y)})}),_=1/0,w=1/0,M=-1/0,k=-1/0,A=0;A<x.length;A++)for(var T=x[A],S=0;S<T.length;S++){var E=T[S];_=Math.min(_,E.x),w=Math.min(w,E.y),M=Math.max(M,E.x),k=Math.max(k,E.y)}var L=this.grid.query(_-c,w-c,M+c,k+c);L.sort(a),this.filterMatching(r,L,this.featureIndexArray,x,l,n.layers,e,t.bearing,s);var C=this.collisionTile.queryRenderedSymbols(_,w,M,k,t.scale);return C.sort(),this.filterMatching(r,C,this.collisionTile.collisionBoxArray,x,l,n.layers,e,t.bearing,s),r},n.prototype.filterMatching=function(t,e,r,n,i,a,u,h,f){for(var d,p=0;p<e.length;p++){var m=e[p];if(m!==d){d=m;var v=r.get(m),g=this.bucketLayerIDs[v.bucketIndex];if(!a||b(a,g)){var x=this.sourceLayerCoder.decode(v.sourceLayerIndex),k=this.vtLayers[x],A=k.feature(v.featureIndex);if(i(A))for(var T=null,S=0;S<g.length;S++){var E=g[S];if(!(a&&a.indexOf(E)<0)){var L=u[E];if(L){var C;if(\"symbol\"!==L.type){T||(T=c(A));var I=L.paint;if(\"line\"===L.type){C=s(n,I[\"line-translate\"],I[\"line-translate-anchor\"],h,f);var z=o(I)/2*f;if(I[\"line-offset\"]&&(T=l(T,I[\"line-offset\"]*f)),!M(C,T,z))continue}else if(\"fill\"===L.type){if(C=s(n,I[\"fill-translate\"],I[\"fill-translate-anchor\"],h,f),!w(C,T))continue}else if(\"circle\"===L.type){C=s(n,I[\"circle-translate\"],I[\"circle-translate-anchor\"],h,f);var D=I[\"circle-radius\"]*f;if(!_(C,T,D))continue}}var P=new y(A,this.z,this.x,this.y);P.layer=L.serialize({includeRefProperties:!0});var O=t[E];void 0===O&&(O=t[E]=[]),O.push(P)}}}}}}}},{\"../util/dictionary_coder\":432,\"../util/intersection_tests\":437,\"../util/struct_array\":440,\"../util/util\":442,\"../util/vectortile_to_geojson\":443,\"./bucket\":329,\"./load_geometry\":337,\"feature-filter\":132,\"grid-index\":287,pbf:478,\"point-geometry\":484,\"vector-tile\":550}],337:[function(t,e,r){\"use strict\";function n(t){return{min:-1*Math.pow(2,t-1),max:Math.pow(2,t-1)-1}}var i=t(\"../util/util\"),a=t(\"./bucket\").EXTENT,o=t(\"assert\"),s={15:n(15),16:n(16)};e.exports=function(t,e){var r=s[e||16];o(r);for(var n=a/t.extent,l=t.loadGeometry(),u=0;u<l.length;u++)for(var c=l[u],h=0;h<c.length;h++){var f=c[h];f.x=Math.round(f.x*n),f.y=Math.round(f.y*n),(f.x<r.min||f.x>r.max||f.y<r.min||f.y>r.max)&&i.warnOnce(\"Geometry exceeds allowed extent, reduce your vector tile buffer size\")}return l}},{\"../util/util\":442,\"./bucket\":329,assert:47}],338:[function(t,e,r){\"use strict\";function n(t,e,r){this.column=t,this.row=e,this.zoom=r}e.exports=n,n.prototype={clone:function(){return new n(this.column,this.row,this.zoom)},zoomTo:function(t){return this.clone()._zoomTo(t)},sub:function(t){return this.clone()._sub(t)},_zoomTo:function(t){var e=Math.pow(2,t-this.zoom);return this.column*=e,this.row*=e,this.zoom=t,this},_sub:function(t){return t=t.zoomTo(this.zoom),this.column-=t.column,this.row-=t.row,this}}},{}],339:[function(t,e,r){\"use strict\";function n(t,e){if(isNaN(t)||isNaN(e))throw new Error(\"Invalid LngLat object: (\"+t+\", \"+e+\")\");if(this.lng=+t,this.lat=+e,this.lat>90||this.lat<-90)throw new Error(\"Invalid LngLat latitude value: must be between -90 and 90\")}e.exports=n\n", ";var i=t(\"../util/util\").wrap;n.prototype.wrap=function(){return new n(i(this.lng,-180,180),this.lat)},n.prototype.toArray=function(){return[this.lng,this.lat]},n.prototype.toString=function(){return\"LngLat(\"+this.lng+\", \"+this.lat+\")\"},n.convert=function(t){return t instanceof n?t:Array.isArray(t)?new n(t[0],t[1]):t}},{\"../util/util\":442}],340:[function(t,e,r){\"use strict\";function n(t,e){t&&(e?this.extend(t).extend(e):4===t.length?this.extend([t[0],t[1]]).extend([t[2],t[3]]):this.extend(t[0]).extend(t[1]))}e.exports=n;var i=t(\"./lng_lat\");n.prototype={extend:function(t){var e,r,a=this._sw,o=this._ne;if(t instanceof i)e=t,r=t;else{if(!(t instanceof n))return t?this.extend(i.convert(t)||n.convert(t)):this;if(e=t._sw,r=t._ne,!e||!r)return this}return a||o?(a.lng=Math.min(e.lng,a.lng),a.lat=Math.min(e.lat,a.lat),o.lng=Math.max(r.lng,o.lng),o.lat=Math.max(r.lat,o.lat)):(this._sw=new i(e.lng,e.lat),this._ne=new i(r.lng,r.lat)),this},getCenter:function(){return new i((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},getSouthWest:function(){return this._sw},getNorthEast:function(){return this._ne},getNorthWest:function(){return new i(this.getWest(),this.getNorth())},getSouthEast:function(){return new i(this.getEast(),this.getSouth())},getWest:function(){return this._sw.lng},getSouth:function(){return this._sw.lat},getEast:function(){return this._ne.lng},getNorth:function(){return this._ne.lat},toArray:function(){return[this._sw.toArray(),this._ne.toArray()]},toString:function(){return\"LngLatBounds(\"+this._sw.toString()+\", \"+this._ne.toString()+\")\"}},n.convert=function(t){return!t||t instanceof n?t:new n(t)}},{\"./lng_lat\":339}],341:[function(t,e,r){\"use strict\";function n(t,e){this.tileSize=512,this._minZoom=t||0,this._maxZoom=e||22,this.latRange=[-85.05113,85.05113],this.width=0,this.height=0,this._center=new i(0,0),this.zoom=0,this.angle=0,this._altitude=1.5,this._pitch=0,this._unmodified=!0}var i=t(\"./lng_lat\"),a=t(\"point-geometry\"),o=t(\"./coordinate\"),s=t(\"../util/util\").wrap,l=t(\"../util/interpolate\"),u=t(\"../source/tile_coord\"),c=t(\"../data/bucket\").EXTENT,h=t(\"gl-matrix\"),f=h.vec4,d=h.mat4,p=h.mat2;e.exports=n,n.prototype={get minZoom(){return this._minZoom},set minZoom(t){this._minZoom!==t&&(this._minZoom=t,this.zoom=Math.max(this.zoom,t))},get maxZoom(){return this._maxZoom},set maxZoom(t){this._maxZoom!==t&&(this._maxZoom=t,this.zoom=Math.min(this.zoom,t))},get worldSize(){return this.tileSize*this.scale},get centerPoint(){return this.size._div(2)},get size(){return new a(this.width,this.height)},get bearing(){return-this.angle/Math.PI*180},set bearing(t){var e=-s(t,-180,180)*Math.PI/180;this.angle!==e&&(this._unmodified=!1,this.angle=e,this._calcMatrices(),this.rotationMatrix=p.create(),p.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},get pitch(){return this._pitch/Math.PI*180},set pitch(t){var e=Math.min(60,t)/180*Math.PI;this._pitch!==e&&(this._unmodified=!1,this._pitch=e,this._calcMatrices())},get altitude(){return this._altitude},set altitude(t){var e=Math.max(.75,t);this._altitude!==e&&(this._unmodified=!1,this._altitude=e,this._calcMatrices())},get zoom(){return this._zoom},set zoom(t){var e=Math.min(Math.max(t,this.minZoom),this.maxZoom);this._zoom!==e&&(this._unmodified=!1,this._zoom=e,this.scale=this.zoomScale(e),this.tileZoom=Math.floor(e),this.zoomFraction=e-this.tileZoom,this._calcMatrices(),this._constrain())},get center(){return this._center},set center(t){t.lat===this._center.lat&&t.lng===this._center.lng||(this._unmodified=!1,this._center=t,this._calcMatrices(),this._constrain())},coveringZoomLevel:function(t){return(t.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/t.tileSize))},coveringTiles:function(t){var e=this.coveringZoomLevel(t),r=e;if(e<t.minzoom)return[];e>t.maxzoom&&(e=t.maxzoom);var n=this,i=n.locationCoordinate(n.center)._zoomTo(e),o=new a(i.column-.5,i.row-.5);return u.cover(e,[n.pointCoordinate(new a(0,0))._zoomTo(e),n.pointCoordinate(new a(n.width,0))._zoomTo(e),n.pointCoordinate(new a(n.width,n.height))._zoomTo(e),n.pointCoordinate(new a(0,n.height))._zoomTo(e)],t.reparseOverscaled?r:e).sort(function(t,e){return o.dist(t)-o.dist(e)})},resize:function(t,e){this.width=t,this.height=e,this.pixelsToGLUnits=[2/t,-2/e],this._calcMatrices(),this._constrain()},get unmodified(){return this._unmodified},zoomScale:function(t){return Math.pow(2,t)},scaleZoom:function(t){return Math.log(t)/Math.LN2},project:function(t,e){return new a(this.lngX(t.lng,e),this.latY(t.lat,e))},unproject:function(t,e){return new i(this.xLng(t.x,e),this.yLat(t.y,e))},get x(){return this.lngX(this.center.lng)},get y(){return this.latY(this.center.lat)},get point(){return new a(this.x,this.y)},lngX:function(t,e){return(180+t)*(e||this.worldSize)/360},latY:function(t,e){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t*Math.PI/360)))*(e||this.worldSize)/360},xLng:function(t,e){return 360*t/(e||this.worldSize)-180},yLat:function(t,e){var r=180-360*t/(e||this.worldSize);return 360/Math.PI*Math.atan(Math.exp(r*Math.PI/180))-90},panBy:function(t){var e=this.centerPoint._add(t);this.center=this.pointLocation(e)},setLocationAtPoint:function(t,e){var r=this.locationCoordinate(t),n=this.pointCoordinate(e),i=this.pointCoordinate(this.centerPoint),a=n._sub(r);this._unmodified=!1,this.center=this.coordinateLocation(i._sub(a))},locationPoint:function(t){return this.coordinatePoint(this.locationCoordinate(t))},pointLocation:function(t){return this.coordinateLocation(this.pointCoordinate(t))},locationCoordinate:function(t){var e=this.zoomScale(this.tileZoom)/this.worldSize,r=i.convert(t);return new o(this.lngX(r.lng)*e,this.latY(r.lat)*e,this.tileZoom)},coordinateLocation:function(t){var e=this.zoomScale(t.zoom);return new i(this.xLng(t.column,e),this.yLat(t.row,e))},pointCoordinate:function(t){var e=[t.x,t.y,0,1],r=[t.x,t.y,1,1];f.transformMat4(e,e,this.pixelMatrixInverse),f.transformMat4(r,r,this.pixelMatrixInverse);var n=e[3],i=r[3],a=e[0]/n,s=r[0]/i,u=e[1]/n,c=r[1]/i,h=e[2]/n,d=r[2]/i,p=h===d?0:(0-h)/(d-h),m=this.worldSize/this.zoomScale(this.tileZoom);return new o(l(a,s,p)/m,l(u,c,p)/m,this.tileZoom)},coordinatePoint:function(t){var e=this.worldSize/this.zoomScale(t.zoom),r=[t.column*e,t.row*e,0,1];return f.transformMat4(r,r,this.pixelMatrix),new a(r[0]/r[3],r[1]/r[3])},calculatePosMatrix:function(t,e){void 0===e&&(e=1/0),t instanceof u&&(t=t.toCoordinate(e));var r=Math.min(t.zoom,e),n=this.worldSize/Math.pow(2,r),i=new Float64Array(16);return d.identity(i),d.translate(i,i,[t.column*n,t.row*n,0]),d.scale(i,i,[n/c,n/c,1]),d.multiply(i,this.projMatrix,i),new Float32Array(i)},_constrain:function(){if(this.center&&this.width&&this.height&&!this._constraining){this._constraining=!0;var t,e,r,n,i,o,s,l,u=this.size,c=this._unmodified;this.latRange&&(t=this.latY(this.latRange[1]),e=this.latY(this.latRange[0]),i=e-t<u.y?u.y/(e-t):0),this.lngRange&&(r=this.lngX(this.lngRange[0]),n=this.lngX(this.lngRange[1]),o=n-r<u.x?u.x/(n-r):0);var h=Math.max(o||0,i||0);if(h)return this.center=this.unproject(new a(o?(n+r)/2:this.x,i?(e+t)/2:this.y)),this.zoom+=this.scaleZoom(h),this._unmodified=c,void(this._constraining=!1);if(this.latRange){var f=this.y,d=u.y/2;f-d<t&&(l=t+d),f+d>e&&(l=e-d)}if(this.lngRange){var p=this.x,m=u.x/2;p-m<r&&(s=r+m),p+m>n&&(s=n-m)}void 0===s&&void 0===l||(this.center=this.unproject(new a(void 0!==s?s:this.x,void 0!==l?l:this.y))),this._unmodified=c,this._constraining=!1}},_calcMatrices:function(){if(this.height){var t=Math.atan(.5/this.altitude),e=Math.sin(t)*this.altitude/Math.sin(Math.PI/2-this._pitch-t),r=Math.cos(Math.PI/2-this._pitch)*e+this.altitude,n=new Float64Array(16);if(d.perspective(n,2*Math.atan(this.height/2/this.altitude),this.width/this.height,.1,r),d.translate(n,n,[0,0,-this.altitude]),d.scale(n,n,[1,-1,1/this.height]),d.rotateX(n,n,this._pitch),d.rotateZ(n,n,this.angle),d.translate(n,n,[-this.x,-this.y,0]),this.projMatrix=n,n=d.create(),d.scale(n,n,[this.width/2,-this.height/2,1]),d.translate(n,n,[1,-1,0]),this.pixelMatrix=d.multiply(new Float64Array(16),n,this.projMatrix),!(n=d.invert(new Float64Array(16),this.pixelMatrix)))throw new Error(\"failed to invert matrix\");this.pixelMatrixInverse=n}}}},{\"../data/bucket\":329,\"../source/tile_coord\":369,\"../util/interpolate\":436,\"../util/util\":442,\"./coordinate\":338,\"./lng_lat\":339,\"gl-matrix\":193,\"point-geometry\":484}],342:[function(t,e,r){\"use strict\";var n={\" \":[16,[]],\"!\":[10,[5,21,5,7,-1,-1,5,2,4,1,5,0,6,1,5,2]],'\"':[16,[4,21,4,14,-1,-1,12,21,12,14]],\"#\":[21,[11,25,4,-7,-1,-1,17,25,10,-7,-1,-1,4,12,18,12,-1,-1,3,6,17,6]],$:[20,[8,25,8,-4,-1,-1,12,25,12,-4,-1,-1,17,18,15,20,12,21,8,21,5,20,3,18,3,16,4,14,5,13,7,12,13,10,15,9,16,8,17,6,17,3,15,1,12,0,8,0,5,1,3,3]],\"%\":[24,[21,21,3,0,-1,-1,8,21,10,19,10,17,9,15,7,14,5,14,3,16,3,18,4,20,6,21,8,21,10,20,13,19,16,19,19,20,21,21,-1,-1,17,7,15,6,14,4,14,2,16,0,18,0,20,1,21,3,21,5,19,7,17,7]],\"&\":[26,[23,12,23,13,22,14,21,14,20,13,19,11,17,6,15,3,13,1,11,0,7,0,5,1,4,2,3,4,3,6,4,8,5,9,12,13,13,14,14,16,14,18,13,20,11,21,9,20,8,18,8,16,9,13,11,10,16,3,18,1,20,0,22,0,23,1,23,2]],\"'\":[10,[5,19,4,20,5,21,6,20,6,18,5,16,4,15]],\"(\":[14,[11,25,9,23,7,20,5,16,4,11,4,7,5,2,7,-2,9,-5,11,-7]],\")\":[14,[3,25,5,23,7,20,9,16,10,11,10,7,9,2,7,-2,5,-5,3,-7]],\"*\":[16,[8,21,8,9,-1,-1,3,18,13,12,-1,-1,13,18,3,12]],\"+\":[26,[13,18,13,0,-1,-1,4,9,22,9]],\",\":[10,[6,1,5,0,4,1,5,2,6,1,6,-1,5,-3,4,-4]],\"-\":[26,[4,9,22,9]],\".\":[10,[5,2,4,1,5,0,6,1,5,2]],\"/\":[22,[20,25,2,-7]],0:[20,[9,21,6,20,4,17,3,12,3,9,4,4,6,1,9,0,11,0,14,1,16,4,17,9,17,12,16,17,14,20,11,21,9,21]],1:[20,[6,17,8,18,11,21,11,0]],2:[20,[4,16,4,17,5,19,6,20,8,21,12,21,14,20,15,19,16,17,16,15,15,13,13,10,3,0,17,0]],3:[20,[5,21,16,21,10,13,13,13,15,12,16,11,17,8,17,6,16,3,14,1,11,0,8,0,5,1,4,2,3,4]],4:[20,[13,21,3,7,18,7,-1,-1,13,21,13,0]],5:[20,[15,21,5,21,4,12,5,13,8,14,11,14,14,13,16,11,17,8,17,6,16,3,14,1,11,0,8,0,5,1,4,2,3,4]],6:[20,[16,18,15,20,12,21,10,21,7,20,5,17,4,12,4,7,5,3,7,1,10,0,11,0,14,1,16,3,17,6,17,7,16,10,14,12,11,13,10,13,7,12,5,10,4,7]],7:[20,[17,21,7,0,-1,-1,3,21,17,21]],8:[20,[8,21,5,20,4,18,4,16,5,14,7,13,11,12,14,11,16,9,17,7,17,4,16,2,15,1,12,0,8,0,5,1,4,2,3,4,3,7,4,9,6,11,9,12,13,13,15,14,16,16,16,18,15,20,12,21,8,21]],9:[20,[16,14,15,11,13,9,10,8,9,8,6,9,4,11,3,14,3,15,4,18,6,20,9,21,10,21,13,20,15,18,16,14,16,9,15,4,13,1,10,0,8,0,5,1,4,3]],\":\":[10,[5,14,4,13,5,12,6,13,5,14,-1,-1,5,2,4,1,5,0,6,1,5,2]],\";\":[10,[5,14,4,13,5,12,6,13,5,14,-1,-1,6,1,5,0,4,1,5,2,6,1,6,-1,5,-3,4,-4]],\"<\":[24,[20,18,4,9,20,0]],\"=\":[26,[4,12,22,12,-1,-1,4,6,22,6]],\">\":[24,[4,18,20,9,4,0]],\"?\":[18,[3,16,3,17,4,19,5,20,7,21,11,21,13,20,14,19,15,17,15,15,14,13,13,12,9,10,9,7,-1,-1,9,2,8,1,9,0,10,1,9,2]],\"@\":[27,[18,13,17,15,15,16,12,16,10,15,9,14,8,11,8,8,9,6,11,5,14,5,16,6,17,8,-1,-1,12,16,10,14,9,11,9,8,10,6,11,5,-1,-1,18,16,17,8,17,6,19,5,21,5,23,7,24,10,24,12,23,15,22,17,20,19,18,20,15,21,12,21,9,20,7,19,5,17,4,15,3,12,3,9,4,6,5,4,7,2,9,1,12,0,15,0,18,1,20,2,21,3,-1,-1,19,16,18,8,18,6,19,5]],A:[18,[9,21,1,0,-1,-1,9,21,17,0,-1,-1,4,7,14,7]],B:[21,[4,21,4,0,-1,-1,4,21,13,21,16,20,17,19,18,17,18,15,17,13,16,12,13,11,-1,-1,4,11,13,11,16,10,17,9,18,7,18,4,17,2,16,1,13,0,4,0]],C:[21,[18,16,17,18,15,20,13,21,9,21,7,20,5,18,4,16,3,13,3,8,4,5,5,3,7,1,9,0,13,0,15,1,17,3,18,5]],D:[21,[4,21,4,0,-1,-1,4,21,11,21,14,20,16,18,17,16,18,13,18,8,17,5,16,3,14,1,11,0,4,0]],E:[19,[4,21,4,0,-1,-1,4,21,17,21,-1,-1,4,11,12,11,-1,-1,4,0,17,0]],F:[18,[4,21,4,0,-1,-1,4,21,17,21,-1,-1,4,11,12,11]],G:[21,[18,16,17,18,15,20,13,21,9,21,7,20,5,18,4,16,3,13,3,8,4,5,5,3,7,1,9,0,13,0,15,1,17,3,18,5,18,8,-1,-1,13,8,18,8]],H:[22,[4,21,4,0,-1,-1,18,21,18,0,-1,-1,4,11,18,11]],I:[8,[4,21,4,0]],J:[16,[12,21,12,5,11,2,10,1,8,0,6,0,4,1,3,2,2,5,2,7]],K:[21,[4,21,4,0,-1,-1,18,21,4,7,-1,-1,9,12,18,0]],L:[17,[4,21,4,0,-1,-1,4,0,16,0]],M:[24,[4,21,4,0,-1,-1,4,21,12,0,-1,-1,20,21,12,0,-1,-1,20,21,20,0]],N:[22,[4,21,4,0,-1,-1,4,21,18,0,-1,-1,18,21,18,0]],O:[22,[9,21,7,20,5,18,4,16,3,13,3,8,4,5,5,3,7,1,9,0,13,0,15,1,17,3,18,5,19,8,19,13,18,16,17,18,15,20,13,21,9,21]],P:[21,[4,21,4,0,-1,-1,4,21,13,21,16,20,17,19,18,17,18,14,17,12,16,11,13,10,4,10]],Q:[22,[9,21,7,20,5,18,4,16,3,13,3,8,4,5,5,3,7,1,9,0,13,0,15,1,17,3,18,5,19,8,19,13,18,16,17,18,15,20,13,21,9,21,-1,-1,12,4,18,-2]],R:[21,[4,21,4,0,-1,-1,4,21,13,21,16,20,17,19,18,17,18,15,17,13,16,12,13,11,4,11,-1,-1,11,11,18,0]],S:[20,[17,18,15,20,12,21,8,21,5,20,3,18,3,16,4,14,5,13,7,12,13,10,15,9,16,8,17,6,17,3,15,1,12,0,8,0,5,1,3,3]],T:[16,[8,21,8,0,-1,-1,1,21,15,21]],U:[22,[4,21,4,6,5,3,7,1,10,0,12,0,15,1,17,3,18,6,18,21]],V:[18,[1,21,9,0,-1,-1,17,21,9,0]],W:[24,[2,21,7,0,-1,-1,12,21,7,0,-1,-1,12,21,17,0,-1,-1,22,21,17,0]],X:[20,[3,21,17,0,-1,-1,17,21,3,0]],Y:[18,[1,21,9,11,9,0,-1,-1,17,21,9,11]],Z:[20,[17,21,3,0,-1,-1,3,21,17,21,-1,-1,3,0,17,0]],\"[\":[14,[4,25,4,-7,-1,-1,5,25,5,-7,-1,-1,4,25,11,25,-1,-1,4,-7,11,-7]],\"\\\\\":[14,[0,21,14,-3]],\"]\":[14,[9,25,9,-7,-1,-1,10,25,10,-7,-1,-1,3,25,10,25,-1,-1,3,-7,10,-7]],\"^\":[16,[6,15,8,18,10,15,-1,-1,3,12,8,17,13,12,-1,-1,8,17,8,0]],_:[16,[0,-2,16,-2]],\"`\":[10,[6,21,5,20,4,18,4,16,5,15,6,16,5,17]],a:[19,[15,14,15,0,-1,-1,15,11,13,13,11,14,8,14,6,13,4,11,3,8,3,6,4,3,6,1,8,0,11,0,13,1,15,3]],b:[19,[4,21,4,0,-1,-1,4,11,6,13,8,14,11,14,13,13,15,11,16,8,16,6,15,3,13,1,11,0,8,0,6,1,4,3]],c:[18,[15,11,13,13,11,14,8,14,6,13,4,11,3,8,3,6,4,3,6,1,8,0,11,0,13,1,15,3]],d:[19,[15,21,15,0,-1,-1,15,11,13,13,11,14,8,14,6,13,4,11,3,8,3,6,4,3,6,1,8,0,11,0,13,1,15,3]],e:[18,[3,8,15,8,15,10,14,12,13,13,11,14,8,14,6,13,4,11,3,8,3,6,4,3,6,1,8,0,11,0,13,1,15,3]],f:[12,[10,21,8,21,6,20,5,17,5,0,-1,-1,2,14,9,14]],g:[19,[15,14,15,-2,14,-5,13,-6,11,-7,8,-7,6,-6,-1,-1,15,11,13,13,11,14,8,14,6,13,4,11,3,8,3,6,4,3,6,1,8,0,11,0,13,1,15,3]],h:[19,[4,21,4,0,-1,-1,4,10,7,13,9,14,12,14,14,13,15,10,15,0]],i:[8,[3,21,4,20,5,21,4,22,3,21,-1,-1,4,14,4,0]],j:[10,[5,21,6,20,7,21,6,22,5,21,-1,-1,6,14,6,-3,5,-6,3,-7,1,-7]],k:[17,[4,21,4,0,-1,-1,14,14,4,4,-1,-1,8,8,15,0]],l:[8,[4,21,4,0]],m:[30,[4,14,4,0,-1,-1,4,10,7,13,9,14,12,14,14,13,15,10,15,0,-1,-1,15,10,18,13,20,14,23,14,25,13,26,10,26,0]],n:[19,[4,14,4,0,-1,-1,4,10,7,13,9,14,12,14,14,13,15,10,15,0]],o:[19,[8,14,6,13,4,11,3,8,3,6,4,3,6,1,8,0,11,0,13,1,15,3,16,6,16,8,15,11,13,13,11,14,8,14]],p:[19,[4,14,4,-7,-1,-1,4,11,6,13,8,14,11,14,13,13,15,11,16,8,16,6,15,3,13,1,11,0,8,0,6,1,4,3]],q:[19,[15,14,15,-7,-1,-1,15,11,13,13,11,14,8,14,6,13,4,11,3,8,3,6,4,3,6,1,8,0,11,0,13,1,15,3]],r:[13,[4,14,4,0,-1,-1,4,8,5,11,7,13,9,14,12,14]],s:[17,[14,11,13,13,10,14,7,14,4,13,3,11,4,9,6,8,11,7,13,6,14,4,14,3,13,1,10,0,7,0,4,1,3,3]],t:[12,[5,21,5,4,6,1,8,0,10,0,-1,-1,2,14,9,14]],u:[19,[4,14,4,4,5,1,7,0,10,0,12,1,15,4,-1,-1,15,14,15,0]],v:[16,[2,14,8,0,-1,-1,14,14,8,0]],w:[22,[3,14,7,0,-1,-1,11,14,7,0,-1,-1,11,14,15,0,-1,-1,19,14,15,0]],x:[17,[3,14,14,0,-1,-1,14,14,3,0]],y:[16,[2,14,8,0,-1,-1,14,14,8,0,6,-4,4,-6,2,-7,1,-7]],z:[17,[14,14,3,0,-1,-1,3,14,14,14,-1,-1,3,0,14,0]],\"{\":[14,[9,25,7,24,6,23,5,21,5,19,6,17,7,16,8,14,8,12,6,10,-1,-1,7,24,6,22,6,20,7,18,8,17,9,15,9,13,8,11,4,9,8,7,9,5,9,3,8,1,7,0,6,-2,6,-4,7,-6,-1,-1,6,8,8,6,8,4,7,2,6,1,5,-1,5,-3,6,-5,7,-6,9,-7]],\"|\":[8,[4,25,4,-7]],\"}\":[14,[5,25,7,24,8,23,9,21,9,19,8,17,7,16,6,14,6,12,8,10,-1,-1,7,24,8,22,8,20,7,18,6,17,5,15,5,13,6,11,10,9,6,7,5,5,5,3,6,1,7,0,8,-2,8,-4,7,-6,-1,-1,8,8,6,6,6,4,7,2,8,1,9,-1,9,-3,8,-5,7,-6,5,-7]],\"~\":[24,[3,6,3,8,4,11,6,12,8,12,10,11,14,8,16,7,18,7,20,8,21,10,-1,-1,3,8,4,10,6,11,8,11,10,10,14,7,16,6,18,6,20,7,21,10,21,12]]};e.exports=function(t,e,r,i){i=i||1;var a,o,s,l,u,c,h,f,d=[];for(a=0,o=t.length;a<o;a++)if(u=n[t[a]]){for(f=null,s=0,l=u[1].length;s<l;s+=2)-1===u[1][s]&&-1===u[1][s+1]?f=null:(c=e+u[1][s]*i,h=r-u[1][s+1]*i,f&&d.push(f.x,f.y,c,h),f={x:c,y:h});e+=u[0]*i}return d}},{}],343:[function(t,e,r){\"use strict\";var n=e.exports={};n.version=t(\"../package.json\").version,n.Map=t(\"./ui/map\"),n.Control=t(\"./ui/control/control\"),n.Navigation=t(\"./ui/control/navigation\"),n.Geolocate=t(\"./ui/control/geolocate\"),n.Attribution=t(\"./ui/control/attribution\"),n.Popup=t(\"./ui/popup\"),n.Marker=t(\"./ui/marker\"),n.Style=t(\"./style/style\"),n.LngLat=t(\"./geo/lng_lat\"),n.LngLatBounds=t(\"./geo/lng_lat_bounds\"),n.Point=t(\"point-geometry\"),n.Evented=t(\"./util/evented\"),n.util=t(\"./util/util\"),n.supported=t(\"./util/browser\").supported;var i=t(\"./util/ajax\");n.util.getJSON=i.getJSON,n.util.getArrayBuffer=i.getArrayBuffer;var a=t(\"./util/config\");n.config=a,Object.defineProperty(n,\"accessToken\",{get:function(){return a.ACCESS_TOKEN},set:function(t){a.ACCESS_TOKEN=t}})},{\"../package.json\":444,\"./geo/lng_lat\":339,\"./geo/lng_lat_bounds\":340,\"./style/style\":378,\"./ui/control/attribution\":409,\"./ui/control/control\":410,\"./ui/control/geolocate\":411,\"./ui/control/navigation\":412,\"./ui/map\":421,\"./ui/marker\":422,\"./ui/popup\":423,\"./util/ajax\":425,\"./util/browser\":426,\"./util/config\":431,\"./util/evented\":434,\"./util/util\":442,\"point-geometry\":484}],344:[function(t,e,r){\"use strict\";var n=t(\"assert\");e.exports=function(t){for(var e={define:{},initialize:{}},r=0;r<t.length;r++){var i=t[r];n(\"u_\"===i.name.slice(0,2));var a=\"{precision} \"+(1===i.components?\"float\":\"vec\"+i.components);e.define[i.name.slice(2)]=\"uniform \"+a+\" \"+i.name+\";\\n\",e.initialize[i.name.slice(2)]=a+\" \"+i.name.slice(2)+\" = \"+i.name+\";\\n\"}return e}},{assert:47}],345:[function(t,e,r){\"use strict\";function n(t,e,r){var n,s=t.gl,l=t.transform,u=r.paint[\"background-color\"],c=r.paint[\"background-pattern\"],h=r.paint[\"background-opacity\"],f=c?t.spriteAtlas.getPosition(c.from,!0):null,d=c?t.spriteAtlas.getPosition(c.to,!0):null;if(t.setDepthSublayer(0),f&&d){if(t.isOpaquePass)return;n=t.useProgram(\"pattern\"),s.uniform1i(n.u_image,0),s.uniform2fv(n.u_pattern_tl_a,f.tl),s.uniform2fv(n.u_pattern_br_a,f.br),s.uniform2fv(n.u_pattern_tl_b,d.tl),s.uniform2fv(n.u_pattern_br_b,d.br),s.uniform1f(n.u_opacity,h),s.uniform1f(n.u_mix,c.t),s.uniform2fv(n.u_pattern_size_a,f.size),s.uniform2fv(n.u_pattern_size_b,d.size),s.uniform1f(n.u_scale_a,c.fromScale),s.uniform1f(n.u_scale_b,c.toScale),s.activeTexture(s.TEXTURE0),t.spriteAtlas.bind(s,!0),t.tileExtentPatternVAO.bind(s,n,t.tileExtentBuffer)}else{if(t.isOpaquePass!==(1===u[3]))return;var p=a([{name:\"u_color\",components:4},{name:\"u_opacity\",components:1}]);n=t.useProgram(\"fill\",[],p,p),s.uniform4fv(n.u_color,u),s.uniform1f(n.u_opacity,h),t.tileExtentVAO.bind(s,n,t.tileExtentBuffer)}s.disable(s.STENCIL_TEST);for(var m=l.coveringTiles({tileSize:o}),v=0;v<m.length;v++){var g=m[v];if(f&&d){var y={coord:g,tileSize:o};s.uniform1f(n.u_tile_units_to_pixels,1/i(y,1,t.transform.tileZoom));var b=y.tileSize*Math.pow(2,t.transform.tileZoom-y.coord.z),x=b*(y.coord.x+g.w*Math.pow(2,y.coord.z)),_=b*y.coord.y;s.uniform2f(n.u_pixel_coord_upper,x>>16,_>>16),s.uniform2f(n.u_pixel_coord_lower,65535&x,65535&_)}s.uniformMatrix4fv(n.u_matrix,!1,t.transform.calculatePosMatrix(g)),s.drawArrays(s.TRIANGLE_STRIP,0,t.tileExtentBuffer.length)}s.stencilMask(0),s.stencilFunc(s.EQUAL,128,128)}var i=t(\"../source/pixels_to_tile_units\"),a=t(\"./create_uniform_pragmas\"),o=512;e.exports=n},{\"../source/pixels_to_tile_units\":363,\"./create_uniform_pragmas\":344}],346:[function(t,e,r){\"use strict\";function n(t,e,r,n){if(!t.isOpaquePass){var a=t.gl;t.setDepthSublayer(0),t.depthMask(!1),a.disable(a.STENCIL_TEST);for(var o=0;o<n.length;o++){var s=n[o],l=e.getTile(s),u=l.getBucket(r);if(u){var c=u.bufferGroups.circle;if(c){var h=u.paintAttributes.circle[r.id],f=t.useProgram(\"circle\",h.defines,h.vertexPragmas,h.fragmentPragmas);\"map\"===r.paint[\"circle-pitch-scale\"]?(a.uniform1i(f.u_scale_with_map,!0),a.uniform2f(f.u_extrude_scale,t.transform.pixelsToGLUnits[0]*t.transform.altitude,t.transform.pixelsToGLUnits[1]*t.transform.altitude)):(a.uniform1i(f.u_scale_with_map,!1),a.uniform2fv(f.u_extrude_scale,t.transform.pixelsToGLUnits)),a.uniform1f(f.u_devicepixelratio,i.devicePixelRatio),a.uniformMatrix4fv(f.u_matrix,!1,t.translatePosMatrix(s.posMatrix,l,r.paint[\"circle-translate\"],r.paint[\"circle-translate-anchor\"])),u.setUniforms(a,\"circle\",f,r,{zoom:t.transform.zoom});for(var d=0;d<c.length;d++){var p=c[d];p.vaos[r.id].bind(a,f,p.layoutVertexBuffer,p.elementBuffer,p.paintVertexBuffers[r.id]),a.drawElements(a.TRIANGLES,3*p.elementBuffer.length,a.UNSIGNED_SHORT,0)}}}}}}var i=t(\"../util/browser\");e.exports=n},{\"../util/browser\":426}],347:[function(t,e,r){\"use strict\";function n(t,e,r,n){var i=t.gl;i.enable(i.STENCIL_TEST);for(var a=t.useProgram(\"collisionbox\"),o=0;o<n.length;o++){var s=n[o],l=e.getTile(s),u=l.getBucket(r);if(u){var c=u.bufferGroups.collisionBox;if(c&&c.length){var h=c[0];0!==h.layoutVertexBuffer.length&&(i.uniformMatrix4fv(a.u_matrix,!1,s.posMatrix),t.enableTileClippingMask(s),t.lineWidth(1),i.uniform1f(a.u_scale,Math.pow(2,t.transform.zoom-l.coord.z)),i.uniform1f(a.u_zoom,10*t.transform.zoom),i.uniform1f(a.u_maxzoom,10*(l.coord.z+1)),h.vaos[r.id].bind(i,a,h.layoutVertexBuffer),i.drawArrays(i.LINES,0,h.layoutVertexBuffer.length))}}}}e.exports=n},{}],348:[function(t,e,r){\"use strict\";function n(t,e,r){if(!t.isOpaquePass&&t.options.debug)for(var n=0;n<r.length;n++)i(t,e,r[n])}function i(t,e,r){var n=t.gl;n.disable(n.STENCIL_TEST),t.lineWidth(1*o.devicePixelRatio);var i=r.posMatrix,h=t.useProgram(\"debug\");n.uniformMatrix4fv(h.u_matrix,!1,i),n.uniform4f(h.u_color,1,0,0,1),t.debugVAO.bind(n,h,t.debugBuffer),n.drawArrays(n.LINE_STRIP,0,t.debugBuffer.length);for(var f=a(r.toString(),50,200,5),d=new t.PosArray,p=0;p<f.length;p+=2)d.emplaceBack(f[p],f[p+1]);var m=new u(d.serialize(),t.PosArray.serialize(),u.BufferType.VERTEX);(new c).bind(n,h,m),n.uniform4f(h.u_color,1,1,1,1);for(var v=e.getTile(r).tileSize,g=l/(Math.pow(2,t.transform.zoom-r.z)*v),y=[[-1,-1],[-1,1],[1,-1],[1,1]],b=0;b<y.length;b++){var x=y[b];n.uniformMatrix4fv(h.u_matrix,!1,s.translate([],i,[g*x[0],g*x[1],0])),n.drawArrays(n.LINES,0,m.length)}n.uniform4f(h.u_color,0,0,0,1),n.uniformMatrix4fv(h.u_matrix,!1,i),n.drawArrays(n.LINES,0,m.length)}var a=t(\"../lib/debugtext\"),o=t(\"../util/browser\"),s=t(\"gl-matrix\").mat4,l=t(\"../data/bucket\").EXTENT,u=t(\"../data/buffer\"),c=t(\"./vertex_array_object\");e.exports=n},{\"../data/bucket\":329,\"../data/buffer\":334,\"../lib/debugtext\":342,\"../util/browser\":426,\"./vertex_array_object\":357,\"gl-matrix\":193}],349:[function(t,e,r){\"use strict\";function n(t,e,r,n){var o=t.gl;o.enable(o.STENCIL_TEST);var s;if(s=!r.paint[\"fill-pattern\"]&&(r.isPaintValueFeatureConstant(\"fill-color\")&&r.isPaintValueFeatureConstant(\"fill-opacity\")&&1===r.paint[\"fill-color\"][3]&&1===r.paint[\"fill-opacity\"]),t.isOpaquePass===s){t.setDepthSublayer(1);for(var l=0;l<n.length;l++)i(t,e,r,n[l])}if(!t.isOpaquePass&&r.paint[\"fill-antialias\"]){t.lineWidth(2),t.depthMask(!1);var u=r.getPaintProperty(\"fill-outline-color\");(u||!r.paint[\"fill-pattern\"])&&u?t.setDepthSublayer(2):t.setDepthSublayer(0);for(var c=0;c<n.length;c++)a(t,e,r,n[c])}}function i(t,e,r,n){var i=e.getTile(n),a=i.getBucket(r);if(a){var s=a.bufferGroups.fill;if(s){var l,u=t.gl,c=r.paint[\"fill-pattern\"];if(c)l=t.useProgram(\"pattern\"),o(c,r.paint[\"fill-opacity\"],i,n,t,l),u.activeTexture(u.TEXTURE0),t.spriteAtlas.bind(u,!0);else{var h=a.paintAttributes.fill[r.id];l=t.useProgram(\"fill\",h.defines,h.vertexPragmas,h.fragmentPragmas),a.setUniforms(u,\"fill\",l,r,{zoom:t.transform.zoom})}u.uniformMatrix4fv(l.u_matrix,!1,t.translatePosMatrix(n.posMatrix,i,r.paint[\"fill-translate\"],r.paint[\"fill-translate-anchor\"])),t.enableTileClippingMask(n);for(var f=0;f<s.length;f++){var d=s[f];d.vaos[r.id].bind(u,l,d.layoutVertexBuffer,d.elementBuffer,d.paintVertexBuffers[r.id]),u.drawElements(u.TRIANGLES,d.elementBuffer.length,u.UNSIGNED_SHORT,0)}}}}function a(t,e,r,n){var i=e.getTile(n),a=i.getBucket(r);if(a){var s,l=t.gl,u=a.bufferGroups.fill,c=r.paint[\"fill-pattern\"],h=r.paint[\"fill-opacity\"],f=r.getPaintProperty(\"fill-outline-color\");if(c&&!f)s=t.useProgram(\"outlinepattern\"),l.uniform2f(s.u_world,l.drawingBufferWidth,l.drawingBufferHeight);else{var d=a.paintAttributes.fill[r.id];s=t.useProgram(\"outline\",d.defines,d.vertexPragmas,d.fragmentPragmas),l.uniform2f(s.u_world,l.drawingBufferWidth,l.drawingBufferHeight),l.uniform1f(s.u_opacity,h),a.setUniforms(l,\"fill\",s,r,{zoom:t.transform.zoom})}l.uniformMatrix4fv(s.u_matrix,!1,t.translatePosMatrix(n.posMatrix,i,r.paint[\"fill-translate\"],r.paint[\"fill-translate-anchor\"])),c&&o(c,h,i,n,t,s),t.enableTileClippingMask(n);for(var p=0;p<u.length;p++){var m=u[p];m.secondVaos[r.id].bind(l,s,m.layoutVertexBuffer,m.elementBuffer2,m.paintVertexBuffers[r.id]),l.drawElements(l.LINES,2*m.elementBuffer2.length,l.UNSIGNED_SHORT,0)}}}function o(t,e,r,n,i,a){var o=i.gl,l=i.spriteAtlas.getPosition(t.from,!0),u=i.spriteAtlas.getPosition(t.to,!0);if(l&&u){o.uniform1i(a.u_image,0),o.uniform2fv(a.u_pattern_tl_a,l.tl),o.uniform2fv(a.u_pattern_br_a,l.br),o.uniform2fv(a.u_pattern_tl_b,u.tl),o.uniform2fv(a.u_pattern_br_b,u.br),o.uniform1f(a.u_opacity,e),o.uniform1f(a.u_mix,t.t),o.uniform1f(a.u_tile_units_to_pixels,1/s(r,1,i.transform.tileZoom)),o.uniform2fv(a.u_pattern_size_a,l.size),o.uniform2fv(a.u_pattern_size_b,u.size),o.uniform1f(a.u_scale_a,t.fromScale),o.uniform1f(a.u_scale_b,t.toScale);var c=r.tileSize*Math.pow(2,i.transform.tileZoom-r.coord.z),h=c*(r.coord.x+n.w*Math.pow(2,r.coord.z)),f=c*r.coord.y;o.uniform2f(a.u_pixel_coord_upper,h>>16,f>>16),o.uniform2f(a.u_pixel_coord_lower,65535&h,65535&f),o.activeTexture(o.TEXTURE0),i.spriteAtlas.bind(o,!0)}}var s=t(\"../source/pixels_to_tile_units\");e.exports=n},{\"../source/pixels_to_tile_units\":363}],350:[function(t,e,r){\"use strict\";var n=t(\"../util/browser\"),i=t(\"gl-matrix\").mat2,a=t(\"../source/pixels_to_tile_units\");e.exports=function(t,e,r,o){if(!t.isOpaquePass){t.setDepthSublayer(0),t.depthMask(!1);var s=t.gl;if(s.enable(s.STENCIL_TEST),!(r.paint[\"line-width\"]<=0)){var l=1/n.devicePixelRatio,u=r.paint[\"line-blur\"]+l,c=r.paint[\"line-color\"],h=t.transform,f=i.create();i.scale(f,f,[1,Math.cos(h._pitch)]),i.rotate(f,f,t.transform.angle);var d,p,m,v,g,y=Math.sqrt(h.height*h.height/4*(1+h.altitude*h.altitude)),b=h.height/2*Math.tan(h._pitch),x=(y+b)/y-1,_=r.paint[\"line-dasharray\"],w=r.paint[\"line-pattern\"];if(_)d=t.useProgram(\"linesdfpattern\"),s.uniform1f(d.u_linewidth,r.paint[\"line-width\"]/2),s.uniform1f(d.u_gapwidth,r.paint[\"line-gap-width\"]/2),s.uniform1f(d.u_antialiasing,l/2),s.uniform1f(d.u_blur,u),s.uniform4fv(d.u_color,c),s.uniform1f(d.u_opacity,r.paint[\"line-opacity\"]),p=t.lineAtlas.getDash(_.from,\"round\"===r.layout[\"line-cap\"]),m=t.lineAtlas.getDash(_.to,\"round\"===r.layout[\"line-cap\"]),s.uniform1i(d.u_image,0),s.activeTexture(s.TEXTURE0),t.lineAtlas.bind(s),s.uniform1f(d.u_tex_y_a,p.y),s.uniform1f(d.u_tex_y_b,m.y),s.uniform1f(d.u_mix,_.t),s.uniform1f(d.u_extra,x),s.uniform1f(d.u_offset,-r.paint[\"line-offset\"]),s.uniformMatrix2fv(d.u_antialiasingmatrix,!1,f);else if(w){if(v=t.spriteAtlas.getPosition(w.from,!0),g=t.spriteAtlas.getPosition(w.to,!0),!v||!g)return;d=t.useProgram(\"linepattern\"),s.uniform1i(d.u_image,0),s.activeTexture(s.TEXTURE0),t.spriteAtlas.bind(s,!0),s.uniform1f(d.u_linewidth,r.paint[\"line-width\"]/2),s.uniform1f(d.u_gapwidth,r.paint[\"line-gap-width\"]/2),s.uniform1f(d.u_antialiasing,l/2),s.uniform1f(d.u_blur,u),s.uniform2fv(d.u_pattern_tl_a,v.tl),s.uniform2fv(d.u_pattern_br_a,v.br),s.uniform2fv(d.u_pattern_tl_b,g.tl),s.uniform2fv(d.u_pattern_br_b,g.br),s.uniform1f(d.u_fade,w.t),s.uniform1f(d.u_opacity,r.paint[\"line-opacity\"]),s.uniform1f(d.u_extra,x),s.uniform1f(d.u_offset,-r.paint[\"line-offset\"]),s.uniformMatrix2fv(d.u_antialiasingmatrix,!1,f)}else d=t.useProgram(\"line\"),s.uniform1f(d.u_linewidth,r.paint[\"line-width\"]/2),s.uniform1f(d.u_gapwidth,r.paint[\"line-gap-width\"]/2),s.uniform1f(d.u_antialiasing,l/2),s.uniform1f(d.u_blur,u),s.uniform1f(d.u_extra,x),s.uniform1f(d.u_offset,-r.paint[\"line-offset\"]),s.uniformMatrix2fv(d.u_antialiasingmatrix,!1,f),s.uniform4fv(d.u_color,c),s.uniform1f(d.u_opacity,r.paint[\"line-opacity\"]);for(var M=0;M<o.length;M++){var k=o[M],A=e.getTile(k),T=A.getBucket(r);if(T){var S=T.bufferGroups.line;if(S){t.enableTileClippingMask(k);var E=t.translatePosMatrix(k.posMatrix,A,r.paint[\"line-translate\"],r.paint[\"line-translate-anchor\"]);s.uniformMatrix4fv(d.u_matrix,!1,E);var L=1/a(A,1,t.transform.zoom);if(_){var C=p.width*_.fromScale,I=m.width*_.toScale,z=[1/a(A,C,t.transform.tileZoom),-p.height/2],D=[1/a(A,I,t.transform.tileZoom),-m.height/2],P=t.lineAtlas.width/(256*Math.min(C,I)*n.devicePixelRatio)/2;s.uniform1f(d.u_ratio,L),s.uniform2fv(d.u_patternscale_a,z),s.uniform2fv(d.u_patternscale_b,D),s.uniform1f(d.u_sdfgamma,P)}else w?(s.uniform1f(d.u_ratio,L),s.uniform2fv(d.u_pattern_size_a,[a(A,v.size[0]*w.fromScale,t.transform.tileZoom),g.size[1]]),s.uniform2fv(d.u_pattern_size_b,[a(A,g.size[0]*w.toScale,t.transform.tileZoom),g.size[1]])):s.uniform1f(d.u_ratio,L);for(var O=0;O<S.length;O++){var R=S[O];R.vaos[r.id].bind(s,d,R.layoutVertexBuffer,R.elementBuffer),s.drawElements(s.TRIANGLES,3*R.elementBuffer.length,s.UNSIGNED_SHORT,0)}}}}}}}},{\"../source/pixels_to_tile_units\":363,\"../util/browser\":426,\"gl-matrix\":193}],351:[function(t,e,r){\"use strict\";function n(t,e,r,n){if(!t.isOpaquePass){var a=t.gl;a.enable(a.DEPTH_TEST),t.depthMask(!0),a.depthFunc(a.LESS);for(var o=n.length&&n[0].z,s=0;s<n.length;s++){var l=n[s];t.setDepthSublayer(l.z-o),i(t,e,r,l)}a.depthFunc(a.LEQUAL)}}function i(t,e,r,n){var i=t.gl;i.disable(i.STENCIL_TEST);var u=e.getTile(n),c=t.transform.calculatePosMatrix(n,e.maxzoom),h=t.useProgram(\"raster\");i.uniformMatrix4fv(h.u_matrix,!1,c),i.uniform1f(h.u_brightness_low,r.paint[\"raster-brightness-min\"]),i.uniform1f(h.u_brightness_high,r.paint[\"raster-brightness-max\"]),i.uniform1f(h.u_saturation_factor,s(r.paint[\"raster-saturation\"])),i.uniform1f(h.u_contrast_factor,o(r.paint[\"raster-contrast\"])),i.uniform3fv(h.u_spin_weights,a(r.paint[\"raster-hue-rotate\"]));var f,d,p=u.source&&u.source.findLoadedParent(n,0,{}),m=l(u,p,r,t.transform);i.activeTexture(i.TEXTURE0),i.bindTexture(i.TEXTURE_2D,u.texture),i.activeTexture(i.TEXTURE1),p?(i.bindTexture(i.TEXTURE_2D,p.texture),f=Math.pow(2,p.coord.z-u.coord.z),d=[u.coord.x*f%1,u.coord.y*f%1]):(i.bindTexture(i.TEXTURE_2D,u.texture),m[1]=0),i.uniform2fv(h.u_tl_parent,d||[0,0]),i.uniform1f(h.u_scale_parent,f||1),i.uniform1f(h.u_buffer_scale,1),i.uniform1f(h.u_opacity0,m[0]),i.uniform1f(h.u_opacity1,m[1]),i.uniform1i(h.u_image0,0),i.uniform1i(h.u_image1,1);var v=u.boundsBuffer||t.rasterBoundsBuffer;(u.boundsVAO||t.rasterBoundsVAO).bind(i,h,v),i.drawArrays(i.TRIANGLE_STRIP,0,v.length)}function a(t){t*=Math.PI/180;var e=Math.sin(t),r=Math.cos(t);return[(2*r+1)/3,(-Math.sqrt(3)*e-r+1)/3,(Math.sqrt(3)*e-r+1)/3]}function o(t){return t>0?1/(1-t):1+t}function s(t){return t>0?1-1/(1.001-t):-t}function l(t,e,r,n){var i=[1,0],a=r.paint[\"raster-fade-duration\"];if(t.source&&a>0){var o=(new Date).getTime(),s=(o-t.timeAdded)/a,l=e?(o-e.timeAdded)/a:-1,c=n.coveringZoomLevel(t.source),h=!!e&&Math.abs(e.coord.z-c)>Math.abs(t.coord.z-c);!e||h?(i[0]=u.clamp(s,0,1),i[1]=1-i[0]):(i[0]=u.clamp(1-l,0,1),i[1]=1-i[0])}var f=r.paint[\"raster-opacity\"];return i[0]*=f,i[1]*=f,i}var u=t(\"../util/util\"),c=t(\"../util/struct_array\");e.exports=n,n.RasterBoundsArray=new c({members:[{name:\"a_pos\",type:\"Int16\",components:2},{name:\"a_texture_pos\",type:\"Int16\",components:2}]})},{\"../util/struct_array\":440,\"../util/util\":442}],352:[function(t,e,r){\"use strict\";function n(t,e,r,n){if(!t.isOpaquePass){var a=!(r.layout[\"text-allow-overlap\"]||r.layout[\"icon-allow-overlap\"]||r.layout[\"text-ignore-placement\"]||r.layout[\"icon-ignore-placement\"]),o=t.gl;a?o.disable(o.STENCIL_TEST):o.enable(o.STENCIL_TEST),t.setDepthSublayer(0),t.depthMask(!1),o.disable(o.DEPTH_TEST),i(t,e,r,n,!1,r.paint[\"icon-translate\"],r.paint[\"icon-translate-anchor\"],r.layout[\"icon-rotation-alignment\"],r.layout[\"icon-rotation-alignment\"],r.layout[\"icon-size\"],r.paint[\"icon-halo-width\"],r.paint[\"icon-halo-color\"],r.paint[\"icon-halo-blur\"],r.paint[\"icon-opacity\"],r.paint[\"icon-color\"]),\n", "i(t,e,r,n,!0,r.paint[\"text-translate\"],r.paint[\"text-translate-anchor\"],r.layout[\"text-rotation-alignment\"],r.layout[\"text-pitch-alignment\"],r.layout[\"text-size\"],r.paint[\"text-halo-width\"],r.paint[\"text-halo-color\"],r.paint[\"text-halo-blur\"],r.paint[\"text-opacity\"],r.paint[\"text-color\"]),o.enable(o.DEPTH_TEST),e.map.showCollisionBoxes&&s(t,e,r,n)}}function i(t,e,r,n,i,o,s,l,u,c,h,f,d,p,m){for(var v=0;v<n.length;v++){var g=e.getTile(n[v]),y=g.getBucket(r);if(y){var b=y.bufferGroups,x=i?b.glyph:b.icon;x.length&&(t.enableTileClippingMask(n[v]),a(t,r,n[v].posMatrix,g,y,x,i,i||y.sdfIcons,!i&&y.iconsNeedLinear,i?y.adjustedTextSize:y.adjustedIconSize,y.fontstack,o,s,l,u,c,h,f,d,p,m))}}}function a(t,e,r,n,i,a,s,u,c,h,f,d,p,m,v,g,y,b,x,_,w){var M,k,A,T=t.gl,S=t.transform,E=\"map\"===m,L=\"map\"===v,C=s?24:1,I=g/C;if(L?(k=l(n,1,t.transform.zoom)*I,A=1/Math.cos(S._pitch),M=[k,k]):(k=t.transform.altitude*I,A=1,M=[S.pixelsToGLUnits[0]*k,S.pixelsToGLUnits[1]*k]),s||t.style.sprite.loaded()){var z=t.useProgram(u?\"sdf\":\"icon\");if(T.uniformMatrix4fv(z.u_matrix,!1,t.translatePosMatrix(r,n,d,p)),T.uniform1i(z.u_rotate_with_map,E),T.uniform1i(z.u_pitch_with_map,L),T.uniform2fv(z.u_extrude_scale,M),T.activeTexture(T.TEXTURE0),T.uniform1i(z.u_texture,0),s){var D=f&&t.glyphSource.getGlyphAtlas(f);if(!D)return;D.updateTexture(T),T.uniform2f(z.u_texsize,D.width/4,D.height/4)}else{var P=t.options.rotating||t.options.zooming,O=1!==I||o.devicePixelRatio!==t.spriteAtlas.pixelRatio||c,R=L||t.transform.pitch;t.spriteAtlas.bind(T,u||P||O||R),T.uniform2f(z.u_texsize,t.spriteAtlas.width/4,t.spriteAtlas.height/4)}var F=Math.log(g/h)/Math.LN2||0;T.uniform1f(z.u_zoom,10*(t.transform.zoom-F)),T.activeTexture(T.TEXTURE1),t.frameHistory.bind(T),T.uniform1i(z.u_fadetexture,1);var j;if(u){var N=.105*C/g/o.devicePixelRatio;if(y){T.uniform1f(z.u_gamma,(1.19*x/I/8+N)*A),T.uniform4fv(z.u_color,b),T.uniform1f(z.u_opacity,_),T.uniform1f(z.u_buffer,(6-y/I)/8);for(var B=0;B<a.length;B++)j=a[B],j.vaos[e.id].bind(T,z,j.layoutVertexBuffer,j.elementBuffer),T.drawElements(T.TRIANGLES,3*j.elementBuffer.length,T.UNSIGNED_SHORT,0)}T.uniform1f(z.u_gamma,N*A),T.uniform4fv(z.u_color,w),T.uniform1f(z.u_opacity,_),T.uniform1f(z.u_buffer,.75),T.uniform1f(z.u_pitch,S.pitch/360*2*Math.PI),T.uniform1f(z.u_bearing,S.bearing/360*2*Math.PI),T.uniform1f(z.u_aspect_ratio,S.width/S.height);for(var U=0;U<a.length;U++)j=a[U],j.vaos[e.id].bind(T,z,j.layoutVertexBuffer,j.elementBuffer),T.drawElements(T.TRIANGLES,3*j.elementBuffer.length,T.UNSIGNED_SHORT,0)}else{T.uniform1f(z.u_opacity,_);for(var V=0;V<a.length;V++)j=a[V],j.vaos[e.id].bind(T,z,j.layoutVertexBuffer,j.elementBuffer),T.drawElements(T.TRIANGLES,3*j.elementBuffer.length,T.UNSIGNED_SHORT,0)}}}var o=t(\"../util/browser\"),s=t(\"./draw_collision_debug\"),l=t(\"../source/pixels_to_tile_units\");e.exports=n},{\"../source/pixels_to_tile_units\":363,\"../util/browser\":426,\"./draw_collision_debug\":347}],353:[function(t,e,r){\"use strict\";function n(){this.changeTimes=new Float64Array(256),this.changeOpacities=new Uint8Array(256),this.opacities=new Uint8ClampedArray(256),this.array=new Uint8Array(this.opacities.buffer),this.fadeDuration=300,this.previousZoom=0,this.firstFrame=!0}e.exports=n,n.prototype.record=function(t){var e=Date.now();this.firstFrame&&(e=0,this.firstFrame=!1),t=Math.floor(10*t);var r;if(t<this.previousZoom)for(r=t+1;r<=this.previousZoom;r++)this.changeTimes[r]=e,this.changeOpacities[r]=this.opacities[r];else for(r=t;r>this.previousZoom;r--)this.changeTimes[r]=e,this.changeOpacities[r]=this.opacities[r];for(r=0;r<256;r++){var n=e-this.changeTimes[r],i=n/this.fadeDuration*255;this.opacities[r]=r<=t?this.changeOpacities[r]+i:this.changeOpacities[r]-i}this.changed=!0,this.previousZoom=t},n.prototype.bind=function(t){this.texture?(t.bindTexture(t.TEXTURE_2D,this.texture),this.changed&&(t.texSubImage2D(t.TEXTURE_2D,0,0,0,256,1,t.ALPHA,t.UNSIGNED_BYTE,this.array),this.changed=!1)):(this.texture=t.createTexture(),t.bindTexture(t.TEXTURE_2D,this.texture),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.NEAREST),t.texImage2D(t.TEXTURE_2D,0,t.ALPHA,256,1,0,t.ALPHA,t.UNSIGNED_BYTE,this.array))}},{}],354:[function(t,e,r){\"use strict\";function n(t,e){this.width=t,this.height=e,this.nextRow=0,this.bytes=4,this.data=new Uint8Array(this.width*this.height*this.bytes),this.positions={}}var i=t(\"../util/util\");e.exports=n,n.prototype.setSprite=function(t){this.sprite=t},n.prototype.getDash=function(t,e){var r=t.join(\",\")+e;return this.positions[r]||(this.positions[r]=this.addDash(t,e)),this.positions[r]},n.prototype.addDash=function(t,e){var r=e?7:0,n=2*r+1;if(this.nextRow+n>this.height)return i.warnOnce(\"LineAtlas out of space\"),null;for(var a=0,o=0;o<t.length;o++)a+=t[o];for(var s=this.width/a,l=s/2,u=t.length%2==1,c=-r;c<=r;c++)for(var h=this.nextRow+r+c,f=this.width*h,d=u?-t[t.length-1]:0,p=t[0],m=1,v=0;v<this.width;v++){for(;p<v/s;)d=p,p+=t[m],u&&m===t.length-1&&(p+=t[0]),m++;var g,y=Math.abs(v-d*s),b=Math.abs(v-p*s),x=Math.min(y,b),_=m%2==1;if(e){var w=r?c/r*(l+1):0;if(_){var M=l-Math.abs(w);g=Math.sqrt(x*x+M*M)}else g=l-Math.sqrt(x*x+w*w)}else g=(_?1:-1)*x;this.data[3+4*(f+v)]=Math.max(0,Math.min(255,g+128))}var k={y:(this.nextRow+r+.5)/this.height,height:2*r/this.height,width:a};return this.nextRow+=n,this.dirty=!0,k},n.prototype.bind=function(t){this.texture?(t.bindTexture(t.TEXTURE_2D,this.texture),this.dirty&&(this.dirty=!1,t.texSubImage2D(t.TEXTURE_2D,0,0,0,this.width,this.height,t.RGBA,t.UNSIGNED_BYTE,this.data))):(this.texture=t.createTexture(),t.bindTexture(t.TEXTURE_2D,this.texture),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.REPEAT),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.REPEAT),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.LINEAR),t.texImage2D(t.TEXTURE_2D,0,t.RGBA,this.width,this.height,0,t.RGBA,t.UNSIGNED_BYTE,this.data))}},{\"../util/util\":442}],355:[function(t,e,r){\"use strict\";function n(t,e){this.gl=t,this.transform=e,this.reusableTextures={},this.preFbos={},this.frameHistory=new o,this.setup(),this.numSublayers=s.maxUnderzooming+s.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.lineWidthRange=t.getParameter(t.ALIASED_LINE_WIDTH_RANGE)}var i=t(\"../util/browser\"),a=t(\"gl-matrix\").mat4,o=t(\"./frame_history\"),s=t(\"../source/source_cache\"),l=t(\"../data/bucket\").EXTENT,u=t(\"../source/pixels_to_tile_units\"),c=t(\"../util/util\"),h=t(\"../util/struct_array\"),f=t(\"../data/buffer\"),d=t(\"./vertex_array_object\"),p=t(\"./draw_raster\").RasterBoundsArray,m=t(\"./create_uniform_pragmas\");e.exports=n,c.extend(n.prototype,t(\"./painter/use_program\")),n.prototype.resize=function(t,e){var r=this.gl;this.width=t*i.devicePixelRatio,this.height=e*i.devicePixelRatio,r.viewport(0,0,this.width,this.height)},n.prototype.setup=function(){var t=this.gl;t.verbose=!0,t.enable(t.BLEND),t.blendFunc(t.ONE,t.ONE_MINUS_SRC_ALPHA),t.enable(t.STENCIL_TEST),t.enable(t.DEPTH_TEST),t.depthFunc(t.LEQUAL),this._depthMask=!1,t.depthMask(!1);var e=this.PosArray=new h({members:[{name:\"a_pos\",type:\"Int16\",components:2}]}),r=new e;r.emplaceBack(0,0),r.emplaceBack(l,0),r.emplaceBack(0,l),r.emplaceBack(l,l),this.tileExtentBuffer=new f(r.serialize(),e.serialize(),f.BufferType.VERTEX),this.tileExtentVAO=new d,this.tileExtentPatternVAO=new d;var n=new e;n.emplaceBack(0,0),n.emplaceBack(l,0),n.emplaceBack(l,l),n.emplaceBack(0,l),n.emplaceBack(0,0),this.debugBuffer=new f(n.serialize(),e.serialize(),f.BufferType.VERTEX),this.debugVAO=new d;var i=new p;i.emplaceBack(0,0,0,0),i.emplaceBack(l,0,32767,0),i.emplaceBack(0,l,0,32767),i.emplaceBack(l,l,32767,32767),this.rasterBoundsBuffer=new f(i.serialize(),p.serialize(),f.BufferType.VERTEX),this.rasterBoundsVAO=new d},n.prototype.clearColor=function(){var t=this.gl;t.clearColor(0,0,0,0),t.clear(t.COLOR_BUFFER_BIT)},n.prototype.clearStencil=function(){var t=this.gl;t.clearStencil(0),t.stencilMask(255),t.clear(t.STENCIL_BUFFER_BIT)},n.prototype.clearDepth=function(){var t=this.gl;t.clearDepth(1),this.depthMask(!0),t.clear(t.DEPTH_BUFFER_BIT)},n.prototype._renderTileClippingMasks=function(t){var e=this.gl;e.colorMask(!1,!1,!1,!1),this.depthMask(!1),e.disable(e.DEPTH_TEST),e.enable(e.STENCIL_TEST),e.stencilMask(248),e.stencilOp(e.KEEP,e.KEEP,e.REPLACE);var r=1;this._tileClippingMaskIDs={};for(var n=0;n<t.length;n++){var i=t[n],a=this._tileClippingMaskIDs[i.id]=r++<<3;e.stencilFunc(e.ALWAYS,a,248);var o=m([{name:\"u_color\",components:4},{name:\"u_opacity\",components:1}]),s=this.useProgram(\"fill\",[],o,o);e.uniformMatrix4fv(s.u_matrix,!1,i.posMatrix),this.tileExtentVAO.bind(e,s,this.tileExtentBuffer),e.drawArrays(e.TRIANGLE_STRIP,0,this.tileExtentBuffer.length)}e.stencilMask(0),e.colorMask(!0,!0,!0,!0),this.depthMask(!0),e.enable(e.DEPTH_TEST)},n.prototype.enableTileClippingMask=function(t){var e=this.gl;e.stencilFunc(e.EQUAL,this._tileClippingMaskIDs[t.id],248)},n.prototype.prepareBuffers=function(){},n.prototype.bindDefaultFramebuffer=function(){var t=this.gl;t.bindFramebuffer(t.FRAMEBUFFER,null)};var v={symbol:t(\"./draw_symbol\"),circle:t(\"./draw_circle\"),line:t(\"./draw_line\"),fill:t(\"./draw_fill\"),raster:t(\"./draw_raster\"),background:t(\"./draw_background\"),debug:t(\"./draw_debug\")};n.prototype.render=function(t,e){this.style=t,this.options=e,this.lineAtlas=t.lineAtlas,this.spriteAtlas=t.spriteAtlas,this.spriteAtlas.setSprite(t.sprite),this.glyphSource=t.glyphSource,this.frameHistory.record(this.transform.zoom),this.prepareBuffers(),this.clearColor(),this.clearDepth(),this.showOverdrawInspector(e.showOverdrawInspector),this.depthRange=(t._order.length+2)*this.numSublayers*this.depthEpsilon,this.renderPass({isOpaquePass:!0}),this.renderPass({isOpaquePass:!1})},n.prototype.renderPass=function(t){var e=this.style._groups,r=t.isOpaquePass;this.currentLayer=r?this.style._order.length:-1;for(var n=0;n<e.length;n++){var i,a=e[r?e.length-1-n:n],o=this.style.sources[a.source],s=[];if(o){for(s=o.getVisibleCoordinates(),i=0;i<s.length;i++)s[i].posMatrix=this.transform.calculatePosMatrix(s[i],o.maxzoom);this.clearStencil(),o.prepare&&o.prepare(),o.isTileClipped&&this._renderTileClippingMasks(s)}for(r?(this._showOverdrawInspector||this.gl.disable(this.gl.BLEND),this.isOpaquePass=!0):(this.gl.enable(this.gl.BLEND),this.isOpaquePass=!1,s.reverse()),i=0;i<a.length;i++){var l=a[r?a.length-1-i:i];this.currentLayer+=r?-1:1,this.renderLayer(this,o,l,s)}o&&v.debug(this,o,s)}},n.prototype.depthMask=function(t){t!==this._depthMask&&(this._depthMask=t,this.gl.depthMask(t))},n.prototype.renderLayer=function(t,e,r,n){r.isHidden(this.transform.zoom)||(\"background\"===r.type||n.length)&&(this.id=r.id,v[r.type](t,e,r,n))},n.prototype.setDepthSublayer=function(t){var e=1-((1+this.currentLayer)*this.numSublayers+t)*this.depthEpsilon,r=e-1+this.depthRange;this.gl.depthRange(r,e)},n.prototype.translatePosMatrix=function(t,e,r,n){if(!r[0]&&!r[1])return t;if(\"viewport\"===n){var i=Math.sin(-this.transform.angle),o=Math.cos(-this.transform.angle);r=[r[0]*o-r[1]*i,r[0]*i+r[1]*o]}var s=[u(e,r[0],this.transform.zoom),u(e,r[1],this.transform.zoom),0],l=new Float32Array(16);return a.translate(l,t,s),l},n.prototype.saveTexture=function(t){var e=this.reusableTextures[t.size];e?e.push(t):this.reusableTextures[t.size]=[t]},n.prototype.getTexture=function(t){var e=this.reusableTextures[t];return e&&e.length>0?e.pop():null},n.prototype.lineWidth=function(t){this.gl.lineWidth(c.clamp(t,this.lineWidthRange[0],this.lineWidthRange[1]))},n.prototype.showOverdrawInspector=function(t){if(t||this._showOverdrawInspector){this._showOverdrawInspector=t;var e=this.gl;if(t){e.blendFunc(e.CONSTANT_COLOR,e.ONE);e.blendColor(1/8,1/8,1/8,0),e.clearColor(0,0,0,1),e.clear(e.COLOR_BUFFER_BIT)}else e.blendFunc(e.ONE,e.ONE_MINUS_SRC_ALPHA)}}},{\"../data/bucket\":329,\"../data/buffer\":334,\"../source/pixels_to_tile_units\":363,\"../source/source_cache\":367,\"../util/browser\":426,\"../util/struct_array\":440,\"../util/util\":442,\"./create_uniform_pragmas\":344,\"./draw_background\":345,\"./draw_circle\":346,\"./draw_debug\":348,\"./draw_fill\":349,\"./draw_line\":350,\"./draw_raster\":351,\"./draw_symbol\":352,\"./frame_history\":353,\"./painter/use_program\":356,\"./vertex_array_object\":357,\"gl-matrix\":193}],356:[function(t,e,r){\"use strict\";function n(t,e){return t.replace(/#pragma mapbox: ([\\w]+) ([\\w]+) ([\\w]+) ([\\w]+)/g,function(t,r,n,i,a){return e[r][a].replace(/{type}/g,i).replace(/{precision}/g,n)})}var i=t(\"assert\"),a=t(\"../../util/util\"),o=t(\"mapbox-gl-shaders\"),s=o.util;e.exports._createProgram=function(t,e,r,l){for(var u=this.gl,c=u.createProgram(),h=o[t],f=\"#define MAPBOX_GL_JS;\\n\",d=0;d<e.length;d++)f+=\"#define \"+e[d]+\";\\n\";var p=u.createShader(u.FRAGMENT_SHADER);u.shaderSource(p,n(f+h.fragmentSource,l)),u.compileShader(p),i(u.getShaderParameter(p,u.COMPILE_STATUS),u.getShaderInfoLog(p)),u.attachShader(c,p);var m=u.createShader(u.VERTEX_SHADER);u.shaderSource(m,n(f+s+h.vertexSource,r)),u.compileShader(m),i(u.getShaderParameter(m,u.COMPILE_STATUS),u.getShaderInfoLog(m)),u.attachShader(c,m),u.linkProgram(c),i(u.getProgramParameter(c,u.LINK_STATUS),u.getProgramInfoLog(c));for(var v={},g=u.getProgramParameter(c,u.ACTIVE_ATTRIBUTES),y=0;y<g;y++){var b=u.getActiveAttrib(c,y);v[b.name]=u.getAttribLocation(c,b.name)}for(var x={},_=u.getProgramParameter(c,u.ACTIVE_UNIFORMS),w=0;w<_;w++){var M=u.getActiveUniform(c,w);x[M.name]=u.getUniformLocation(c,M.name)}return a.extend({program:c,definition:h,attributes:v,numAttributes:g},v,x)},e.exports._createProgramCached=function(t,e,r,n){this.cache=this.cache||{};var i=JSON.stringify({name:t,defines:e,vertexPragmas:r,fragmentPragmas:n});return this.cache[i]||(this.cache[i]=this._createProgram(t,e,r,n)),this.cache[i]},e.exports.useProgram=function(t,e,r,n){var i=this.gl;e=e||[],this._showOverdrawInspector&&(e=e.concat(\"OVERDRAW_INSPECTOR\"));var a=this._createProgramCached(t,e,r,n);return this.currentProgram!==a&&(i.useProgram(a.program),this.currentProgram=a),a}},{\"../../util/util\":442,assert:47,\"mapbox-gl-shaders\":303}],357:[function(t,e,r){\"use strict\";function n(){this.boundProgram=null,this.boundVertexBuffer=null,this.boundVertexBuffer2=null,this.boundElementBuffer=null,this.vao=null}var i=t(\"assert\");e.exports=n,n.prototype.bind=function(t,e,r,n,i){void 0===t.extVertexArrayObject&&(t.extVertexArrayObject=t.getExtension(\"OES_vertex_array_object\"));var a=!this.vao||this.boundProgram!==e||this.boundVertexBuffer!==r||this.boundVertexBuffer2!==i||this.boundElementBuffer!==n;!t.extVertexArrayObject||a?this.freshBind(t,e,r,n,i):t.extVertexArrayObject.bindVertexArrayOES(this.vao)},n.prototype.freshBind=function(t,e,r,n,a){var o,s=e.numAttributes;if(t.extVertexArrayObject)this.vao&&this.destroy(t),this.vao=t.extVertexArrayObject.createVertexArrayOES(),t.extVertexArrayObject.bindVertexArrayOES(this.vao),o=0,this.boundProgram=e,this.boundVertexBuffer=r,this.boundVertexBuffer2=a,this.boundElementBuffer=n;else{o=t.currentNumAttributes||0;for(var l=s;l<o;l++)i(0!==l),t.disableVertexAttribArray(l)}for(var u=o;u<s;u++)t.enableVertexAttribArray(u);r.bind(t),r.setVertexAttribPointers(t,e),a&&(a.bind(t),a.setVertexAttribPointers(t,e)),n&&n.bind(t),t.currentNumAttributes=s},n.prototype.unbind=function(t){var e=t.extVertexArrayObject;e&&e.bindVertexArrayOES(null)},n.prototype.destroy=function(t){var e=t.extVertexArrayObject;e&&this.vao&&(e.deleteVertexArrayOES(this.vao),this.vao=null)}},{assert:47}],358:[function(t,e,r){\"use strict\";function n(t,e,r){e=e||{},this.id=t,this.dispatcher=r,this._data=e.data,void 0!==e.maxzoom&&(this.maxzoom=e.maxzoom),e.type&&(this.type=e.type);var n=s/this.tileSize;this.workerOptions=a.extend({source:this.id,cluster:e.cluster||!1,geojsonVtOptions:{buffer:(void 0!==e.buffer?e.buffer:128)*n,tolerance:(void 0!==e.tolerance?e.tolerance:.375)*n,extent:s,maxZoom:this.maxzoom},superclusterOptions:{maxZoom:Math.min(e.clusterMaxZoom,this.maxzoom-1)||this.maxzoom-1,extent:s,radius:(e.clusterRadius||50)*n,log:!1}},e.workerOptions),this._updateWorkerData(function(t){if(t)return void this.fire(\"error\",{error:t});this.fire(\"load\")}.bind(this))}var i=t(\"../util/evented\"),a=t(\"../util/util\"),o=t(\"resolve-url\"),s=t(\"../data/bucket\").EXTENT;e.exports=n,n.prototype=a.inherit(i,{type:\"geojson\",minzoom:0,maxzoom:18,tileSize:512,isTileClipped:!0,reparseOverscaled:!0,onAdd:function(t){this.map=t},setData:function(t){return this._data=t,this._updateWorkerData(function(t){if(t)return this.fire(\"error\",{error:t});this.fire(\"change\")}.bind(this)),this},_updateWorkerData:function(t){var e=a.extend({},this.workerOptions),r=this._data;\"string\"==typeof r?e.url=\"undefined\"!=typeof window?o(window.location.href,r):r:e.data=JSON.stringify(r),this.workerID=this.dispatcher.send(this.type+\".loadData\",e,function(e){this._loaded=!0,t(e)}.bind(this))},loadTile:function(t,e){var r=t.coord.z>this.maxzoom?Math.pow(2,t.coord.z-this.maxzoom):1,n={type:this.type,uid:t.uid,coord:t.coord,zoom:t.coord.z,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,overscaling:r,angle:this.map.transform.angle,pitch:this.map.transform.pitch,showCollisionBoxes:this.map.showCollisionBoxes};t.workerID=this.dispatcher.send(\"load tile\",n,function(r,n){if(t.unloadVectorData(this.map.painter),!t.aborted)return r?e(r):(t.loadVectorData(n,this.map.style),t.redoWhenDone&&(t.redoWhenDone=!1,t.redoPlacement(this)),e(null))}.bind(this),this.workerID)},abortTile:function(t){t.aborted=!0},unloadTile:function(t){t.unloadVectorData(this.map.painter),this.dispatcher.send(\"remove tile\",{uid:t.uid,source:this.id},function(){},t.workerID)},serialize:function(){return{type:this.type,data:this._data}}})},{\"../data/bucket\":329,\"../util/evented\":434,\"../util/util\":442,\"resolve-url\":501}],359:[function(t,e,r){\"use strict\";function n(t,e,r){r&&(this.loadGeoJSON=r),h.call(this,t,e)}var i=t(\"../util/util\"),a=t(\"../util/ajax\"),o=t(\"geojson-rewind\"),s=t(\"./geojson_wrapper\"),l=t(\"vt-pbf\"),u=t(\"supercluster\"),c=t(\"geojson-vt\"),h=t(\"./vector_tile_worker_source\");e.exports=n,n.prototype=i.inherit(h,{_geoJSONIndexes:{},loadVectorData:function(t,e){var r=t.source,n=t.coord;if(!this._geoJSONIndexes[r])return e(null,null);var i=this._geoJSONIndexes[r].getTile(Math.min(n.z,t.maxZoom),n.x,n.y);if(!i)return e(null,null);var a=new s(i.features);a.name=\"_geojsonTileLayer\";var o=l({layers:{_geojsonTileLayer:a}});0===o.byteOffset&&o.byteLength===o.buffer.byteLength||(o=new Uint8Array(o)),e(null,{tile:a,rawTileData:o.buffer})},loadData:function(t,e){var r=function(r,n){return r?e(r):\"object\"!=typeof n?e(new Error(\"Input data is not a valid GeoJSON object.\")):(o(n,!0),void this._indexData(n,t,function(r,n){if(r)return e(r);this._geoJSONIndexes[t.source]=n,e(null)}.bind(this)))}.bind(this);this.loadGeoJSON(t,r)},loadGeoJSON:function(t,e){if(t.url)a.getJSON(t.url,e);else{if(\"string\"!=typeof t.data)return e(new Error(\"Input data is not a valid GeoJSON object.\"));try{return e(null,JSON.parse(t.data))}catch(t){return e(new Error(\"Input data is not a valid GeoJSON object.\"))}}},_indexData:function(t,e,r){try{e.cluster?r(null,u(e.superclusterOptions).load(t.features)):r(null,c(t,e.geojsonVtOptions))}catch(t){return r(t)}}})},{\"../util/ajax\":425,\"../util/util\":442,\"./geojson_wrapper\":360,\"./vector_tile_worker_source\":371,\"geojson-rewind\":138,\"geojson-vt\":142,supercluster:529,\"vt-pbf\":556}],360:[function(t,e,r){\"use strict\";function n(t){this.features=t,this.length=t.length,this.extent=s}function i(t){if(this.type=t.type,1===t.type){this.rawGeometry=[];for(var e=0;e<t.geometry.length;e++)this.rawGeometry.push([t.geometry[e]])}else this.rawGeometry=t.geometry;this.properties=t.tags,this.extent=s}var a=t(\"point-geometry\"),o=t(\"vector-tile\").VectorTileFeature,s=t(\"../data/bucket\").EXTENT;e.exports=n,n.prototype.feature=function(t){return new i(this.features[t])},i.prototype.loadGeometry=function(){var t=this.rawGeometry;this.geometry=[];for(var e=0;e<t.length;e++){for(var r=t[e],n=[],i=0;i<r.length;i++)n.push(new a(r[i][0],r[i][1]));this.geometry.push(n)}return this.geometry},i.prototype.bbox=function(){this.geometry||this.loadGeometry();for(var t=this.geometry,e=1/0,r=-1/0,n=1/0,i=-1/0,a=0;a<t.length;a++)for(var o=t[a],s=0;s<o.length;s++){var l=o[s];e=Math.min(e,l.x),r=Math.max(r,l.x),n=Math.min(n,l.y),i=Math.max(i,l.y)}return[e,n,r,i]},i.prototype.toGeoJSON=o.prototype.toGeoJSON},{\"../data/bucket\":329,\"point-geometry\":484,\"vector-tile\":550}],361:[function(t,e,r){\"use strict\";function n(t,e,r){this.id=t,this.dispatcher=r,this.url=e.url,this.coordinates=e.coordinates,u.getImage(e.url,function(t,r){if(t)return this.fire(\"error\",{error:t});this.image=r,this.image.addEventListener(\"load\",function(){this.map._rerender()}.bind(this)),this._loaded=!0,this.fire(\"load\"),this.map&&this.setCoordinates(e.coordinates)}.bind(this))}var i=t(\"../util/util\"),a=t(\"./tile_coord\"),o=t(\"../geo/lng_lat\"),s=t(\"point-geometry\"),l=t(\"../util/evented\"),u=t(\"../util/ajax\"),c=t(\"../data/bucket\").EXTENT,h=t(\"../render/draw_raster\").RasterBoundsArray,f=t(\"../data/buffer\"),d=t(\"../render/vertex_array_object\");e.exports=n,n.prototype=i.inherit(l,{minzoom:0,maxzoom:22,tileSize:512,onAdd:function(t){this.map=t,this.image&&this.setCoordinates(this.coordinates)},setCoordinates:function(t){this.coordinates=t;var e=this.map,r=t.map(function(t){return e.transform.locationCoordinate(o.convert(t)).zoomTo(0)}),n=this.centerCoord=i.getCoordinatesCenter(r);return n.column=Math.round(n.column),n.row=Math.round(n.row),this.minzoom=this.maxzoom=n.zoom,this._coord=new a(n.zoom,n.column,n.row),this._tileCoords=r.map(function(t){var e=t.zoomTo(n.zoom);return new s(Math.round((e.column-n.column)*c),Math.round((e.row-n.row)*c))}),this.fire(\"change\"),this},_setTile:function(t){this._prepared=!1,this.tile=t;var e=new h;e.emplaceBack(this._tileCoords[0].x,this._tileCoords[0].y,0,0),e.emplaceBack(this._tileCoords[1].x,this._tileCoords[1].y,32767,0),e.emplaceBack(this._tileCoords[3].x,this._tileCoords[3].y,0,32767),e.emplaceBack(this._tileCoords[2].x,this._tileCoords[2].y,32767,32767),this.tile.buckets={},this.tile.boundsBuffer=new f(e.serialize(),h.serialize(),f.BufferType.VERTEX),this.tile.boundsVAO=new d,this.tile.state=\"loaded\"},prepare:function(){if(this._loaded&&this.image&&this.image.complete&&this.tile){var t=this.map.painter,e=t.gl;this._prepared?(e.bindTexture(e.TEXTURE_2D,this.tile.texture),e.texSubImage2D(e.TEXTURE_2D,0,0,0,e.RGBA,e.UNSIGNED_BYTE,this.image)):(this.tile.texture=e.createTexture(),e.bindTexture(e.TEXTURE_2D,this.tile.texture),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_MIN_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,this.image))}},loadTile:function(t,e){this._coord&&this._coord.toString()===t.coord.toString()?(this._setTile(t),e(null)):(t.state=\"errored\",e(null))},serialize:function(){return{type:\"image\",urls:this.url,coordinates:this.coordinates}}})},{\"../data/bucket\":329,\"../data/buffer\":334,\"../geo/lng_lat\":339,\"../render/draw_raster\":351,\"../render/vertex_array_object\":357,\"../util/ajax\":425,\"../util/evented\":434,\"../util/util\":442,\"./tile_coord\":369,\"point-geometry\":484}],362:[function(t,e,r){\"use strict\";var n=t(\"../util/util\"),i=t(\"../util/ajax\"),a=t(\"../util/browser\"),o=t(\"../util/mapbox\").normalizeSourceURL;e.exports=function(t,e){var r=function(t,r){if(t)return e(t);var i=n.pick(r,[\"tiles\",\"minzoom\",\"maxzoom\",\"attribution\"]);r.vector_layers&&(i.vectorLayers=r.vector_layers,i.vectorLayerIds=i.vectorLayers.map(function(t){return t.id})),e(null,i)};t.url?i.getJSON(o(t.url),r):a.frame(r.bind(null,null,t))}},{\"../util/ajax\":425,\"../util/browser\":426,\"../util/mapbox\":439,\"../util/util\":442}],363:[function(t,e,r){\"use strict\";var n=t(\"../data/bucket\");e.exports=function(t,e,r){return e*(n.EXTENT/(t.tileSize*Math.pow(2,r-t.coord.z)))}},{\"../data/bucket\":329}],364:[function(t,e,r){\"use strict\";function n(t,e){var r=t.coord,n=e.coord;return r.z-n.z||r.y-n.y||r.w-n.w||r.x-n.x}function i(t){for(var e=t[0]||{},r=1;r<t.length;r++){var n=t[r];for(var i in n){var a=n[i],o=e[i];if(void 0===o)o=e[i]=a;else for(var s=0;s<a.length;s++)o.push(a[s])}}return e}var a=t(\"./tile_coord\");r.rendered=function(t,e,r,a,o,s){var l=t.tilesIn(r);l.sort(n);for(var u=[],c=0;c<l.length;c++){var h=l[c];h.tile.featureIndex&&u.push(h.tile.featureIndex.query({queryGeometry:h.queryGeometry,scale:h.scale,tileSize:h.tile.tileSize,bearing:s,params:a},e))}return i(u)},r.source=function(t,e){for(var r=t.getRenderableIds().map(function(e){return t.getTileByID(e)}),n=[],i={},o=0;o<r.length;o++){var s=r[o],l=new a(Math.min(s.sourceMaxZoom,s.coord.z),s.coord.x,s.coord.y,0).id;i[l]||(i[l]=!0,s.querySourceFeatures(n,e))}return n}},{\"./tile_coord\":369}],365:[function(t,e,r){\"use strict\";function n(t,e,r){this.id=t,this.dispatcher=r,i.extend(this,i.pick(e,[\"url\",\"scheme\",\"tileSize\"])),s(e,function(t,e){if(t)return this.fire(\"error\",t);i.extend(this,e),this.fire(\"load\")}.bind(this))}var i=t(\"../util/util\"),a=t(\"../util/ajax\"),o=t(\"../util/evented\"),s=t(\"./load_tilejson\"),l=t(\"../util/mapbox\").normalizeTileURL;e.exports=n,n.prototype=i.inherit(o,{minzoom:0,maxzoom:22,roundZoom:!0,scheme:\"xyz\",tileSize:512,_loaded:!1,onAdd:function(t){this.map=t},serialize:function(){return{type:\"raster\",url:this.url,tileSize:this.tileSize}},loadTile:function(t,e){function r(r,n){if(delete t.request,!t.aborted){if(r)return e(r);var i=this.map.painter.gl;t.texture=this.map.painter.getTexture(n.width),t.texture?(i.bindTexture(i.TEXTURE_2D,t.texture),i.texSubImage2D(i.TEXTURE_2D,0,0,0,i.RGBA,i.UNSIGNED_BYTE,n)):(t.texture=i.createTexture(),i.bindTexture(i.TEXTURE_2D,t.texture),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MIN_FILTER,i.LINEAR_MIPMAP_NEAREST),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MAG_FILTER,i.LINEAR),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_S,i.CLAMP_TO_EDGE),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_T,i.CLAMP_TO_EDGE),i.pixelStorei(i.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0),i.texImage2D(i.TEXTURE_2D,0,i.RGBA,i.RGBA,i.UNSIGNED_BYTE,n),t.texture.size=n.width),i.generateMipmap(i.TEXTURE_2D),this.map.animationLoop.set(this.map.style.rasterFadeDuration),t.state=\"loaded\",e(null)}}var n=l(t.coord.url(this.tiles,null,this.scheme),this.url,this.tileSize);t.request=a.getImage(n,r.bind(this))},abortTile:function(t){t.request&&(t.request.abort(),delete t.request)},unloadTile:function(t){t.texture&&this.map.painter.saveTexture(t.texture)}})},{\"../util/ajax\":425,\"../util/evented\":434,\"../util/mapbox\":439,\"../util/util\":442,\"./load_tilejson\":362}],366:[function(t,e,r){\"use strict\";var n=t(\"../util/util\"),i={vector:t(\"../source/vector_tile_source\"),raster:t(\"../source/raster_tile_source\"),geojson:t(\"../source/geojson_source\"),video:t(\"../source/video_source\"),image:t(\"../source/image_source\")};r.create=function(t,e,r){if(e=new i[e.type](t,e,r),e.id!==t)throw new Error(\"Expected Source id to be \"+t+\" instead of \"+e.id);return n.bindAll([\"load\",\"abort\",\"unload\",\"serialize\",\"prepare\"],e),e},r.getType=function(t){return i[t]},r.setType=function(t,e){i[t]=e}},{\"../source/geojson_source\":358,\"../source/image_source\":361,\"../source/raster_tile_source\":365,\"../source/vector_tile_source\":370,\"../source/video_source\":372,\"../util/util\":442}],367:[function(t,e,r){\"use strict\";function n(t,e,r){this.id=t,this.dispatcher=r;var n=this._source=o.create(t,e,r).on(\"load\",function(){this.map&&this._source.onAdd&&this._source.onAdd(this.map),this._sourceLoaded=!0,this.tileSize=n.tileSize,this.minzoom=n.minzoom,this.maxzoom=n.maxzoom,this.roundZoom=n.roundZoom,this.reparseOverscaled=n.reparseOverscaled,this.isTileClipped=n.isTileClipped,this.attribution=n.attribution,this.vectorLayerIds=n.vectorLayerIds,this.fire(\"load\")}.bind(this)).on(\"error\",function(t){this._sourceErrored=!0,this.fire(\"error\",t)}.bind(this)).on(\"change\",function(){this.reload(),this.transform&&this.update(this.transform,this.map&&this.map.style.rasterFadeDuration),this.fire(\"change\")}.bind(this));this._tiles={},this._cache=new c(0,this.unloadTile.bind(this)),this._isIdRenderable=this._isIdRenderable.bind(this)}function i(t,e,r){var n=r.zoomTo(Math.min(t.z,e));return{x:(n.column-(t.x+t.w*Math.pow(2,t.z)))*d,y:(n.row-t.y)*d}}function a(t,e){return t%32-e%32}var o=t(\"./source\"),s=t(\"./tile\"),l=t(\"../util/evented\"),u=t(\"./tile_coord\"),c=t(\"../util/lru_cache\"),h=t(\"../geo/coordinate\"),f=t(\"../util/util\"),d=t(\"../data/bucket\").EXTENT;e.exports=n,n.maxOverzooming=10,n.maxUnderzooming=3,n.prototype=f.inherit(l,{onAdd:function(t){this.map=t,this._source&&this._source.onAdd&&this._source.onAdd(t)},loaded:function(){if(this._sourceErrored)return!0;if(!this._sourceLoaded)return!1;for(var t in this._tiles){var e=this._tiles[t];if(\"loaded\"!==e.state&&\"errored\"!==e.state)return!1}return!0},getSource:function(){return this._source},loadTile:function(t,e){return this._source.loadTile(t,e)},unloadTile:function(t){if(this._source.unloadTile)return this._source.unloadTile(t)},abortTile:function(t){if(this._source.abortTile)return this._source.abortTile(t)},serialize:function(){return this._source.serialize()},prepare:function(){if(this._sourceLoaded&&this._source.prepare)return this._source.prepare()},getIds:function(){return Object.keys(this._tiles).map(Number).sort(a)},getRenderableIds:function(){return this.getIds().filter(this._isIdRenderable)},_isIdRenderable:function(t){return this._tiles[t].isRenderable()&&!this._coveredTiles[t]},reload:function(){this._cache.reset();for(var t in this._tiles){var e=this._tiles[t];\"loading\"!==e.state&&(e.state=\"reloading\"),this.loadTile(this._tiles[t],this._tileLoaded.bind(this,this._tiles[t]))}},_tileLoaded:function(t,e){if(e)return t.state=\"errored\",this.fire(\"tile.error\",{tile:t,error:e}),void this._source.fire(\"tile.error\",{tile:t,error:e});t.source=this,t.timeAdded=(new Date).getTime(),this.fire(\"tile.load\",{tile:t}),this._source.fire(\"tile.load\",{tile:t})},getTile:function(t){return this.getTileByID(t.id)},getTileByID:function(t){return this._tiles[t]},getZoom:function(t){return t.zoom+t.scaleZoom(t.tileSize/this.tileSize)},findLoadedChildren:function(t,e,r){var n=!1;for(var i in this._tiles){var a=this._tiles[i];if(!(r[i]||!a.isRenderable()||a.coord.z<=t.z||a.coord.z>e)){var o=Math.pow(2,Math.min(a.coord.z,this.maxzoom)-Math.min(t.z,this.maxzoom));if(Math.floor(a.coord.x/o)===t.x&&Math.floor(a.coord.y/o)===t.y)for(r[i]=!0,n=!0;a&&a.coord.z-1>t.z;){var s=a.coord.parent(this.maxzoom).id;a=this._tiles[s],a&&a.isRenderable()&&(delete r[i],r[s]=!0)}}}return n},findLoadedParent:function(t,e,r){for(var n=t.z-1;n>=e;n--){t=t.parent(this.maxzoom);var i=this._tiles[t.id];if(i&&i.isRenderable())return r[t.id]=!0,i;if(this._cache.has(t.id))return this.addTile(t),r[t.id]=!0,this._tiles[t.id]}},updateCacheSize:function(t){var e=Math.ceil(t.width/t.tileSize)+1,r=Math.ceil(t.height/t.tileSize)+1,n=e*r;this._cache.setMaxSize(Math.floor(5*n))},update:function(t,e){if(this._sourceLoaded){var r,i,a;this.updateCacheSize(t);var o=(this.roundZoom?Math.round:Math.floor)(this.getZoom(t)),s=Math.max(o-n.maxOverzooming,this.minzoom),l=Math.max(o+n.maxUnderzooming,this.minzoom),c={},h=(new Date).getTime();this._coveredTiles={};var d=this.used?t.coveringTiles(this._source):[];for(r=0;r<d.length;r++)i=d[r],a=this.addTile(i),c[i.id]=!0,a.isRenderable()||this.findLoadedChildren(i,l,c)||this.findLoadedParent(i,s,c);for(var p={},m=Object.keys(c),v=0;v<m.length;v++){var g=m[v];i=u.fromID(g),a=this._tiles[g],a&&a.timeAdded>h-(e||0)&&(this.findLoadedChildren(i,l,c)&&(c[g]=!0),this.findLoadedParent(i,s,p))}var y;for(y in p)c[y]||(this._coveredTiles[y]=!0);for(y in p)c[y]=!0;var b=f.keysDifference(this._tiles,c);for(r=0;r<b.length;r++)this.removeTile(+b[r]);this.transform=t}},addTile:function(t){var e=this._tiles[t.id];if(e)return e;var r=t.wrapped()\n", ";if(e=this._tiles[r.id],e||(e=this._cache.get(r.id))&&this._redoPlacement&&this._redoPlacement(e),!e){var n=t.z,i=n>this.maxzoom?Math.pow(2,n-this.maxzoom):1;e=new s(r,this.tileSize*i,this.maxzoom),this.loadTile(e,this._tileLoaded.bind(this,e))}return e.uses++,this._tiles[t.id]=e,this.fire(\"tile.add\",{tile:e}),this._source.fire(\"tile.add\",{tile:e}),e},removeTile:function(t){var e=this._tiles[t];e&&(e.uses--,delete this._tiles[t],this.fire(\"tile.remove\",{tile:e}),this._source.fire(\"tile.remove\",{tile:e}),e.uses>0||(e.isRenderable()?this._cache.add(e.coord.wrapped().id,e):(e.aborted=!0,this.abortTile(e),this.unloadTile(e))))},clearTiles:function(){for(var t in this._tiles)this.removeTile(t);this._cache.reset()},tilesIn:function(t){for(var e={},r=this.getIds(),n=1/0,a=1/0,o=-1/0,s=-1/0,l=t[0].zoom,c=0;c<t.length;c++){var f=t[c];n=Math.min(n,f.column),a=Math.min(a,f.row),o=Math.max(o,f.column),s=Math.max(s,f.row)}for(var p=0;p<r.length;p++){var m=this._tiles[r[p]],v=u.fromID(r[p]),g=[i(v,m.sourceMaxZoom,new h(n,a,l)),i(v,m.sourceMaxZoom,new h(o,s,l))];if(g[0].x<d&&g[0].y<d&&g[1].x>=0&&g[1].y>=0){for(var y=[],b=0;b<t.length;b++)y.push(i(v,m.sourceMaxZoom,t[b]));var x=e[m.coord.id];void 0===x&&(x=e[m.coord.id]={tile:m,coord:v,queryGeometry:[],scale:Math.pow(2,this.transform.zoom-m.coord.z)}),x.queryGeometry.push(y)}}var _=[];for(var w in e)_.push(e[w]);return _},redoPlacement:function(){for(var t=this.getIds(),e=0;e<t.length;e++){this.getTileByID(t[e]).redoPlacement(this)}},getVisibleCoordinates:function(){return this.getRenderableIds().map(u.fromID)}})},{\"../data/bucket\":329,\"../geo/coordinate\":338,\"../util/evented\":434,\"../util/lru_cache\":438,\"../util/util\":442,\"./source\":366,\"./tile\":368,\"./tile_coord\":369}],368:[function(t,e,r){\"use strict\";function n(t,e,r){this.coord=t,this.uid=a.uniqueId(),this.uses=0,this.tileSize=e,this.sourceMaxZoom=r,this.buckets={},this.state=\"loading\"}function i(t,e){if(e){for(var r={},n=0;n<t.length;n++){var i=e.getLayer(t[n].layerId);if(i){var s=o.create(a.extend({layer:i,childLayers:t[n].childLayerIds.map(e.getLayer.bind(e)).filter(function(t){return t})},t[n]));r[s.id]=s}}return r}}var a=t(\"../util/util\"),o=t(\"../data/bucket\"),s=t(\"../data/feature_index\"),l=t(\"vector-tile\"),u=t(\"pbf\"),c=t(\"../util/vectortile_to_geojson\"),h=t(\"feature-filter\"),f=t(\"../symbol/collision_tile\"),d=t(\"../symbol/collision_box\"),p=t(\"../symbol/symbol_instances\"),m=t(\"../symbol/symbol_quads\");e.exports=n,n.prototype={loadVectorData:function(t,e){this.state=\"loaded\",t&&(this.collisionBoxArray=new d(t.collisionBoxArray),this.collisionTile=new f(t.collisionTile,this.collisionBoxArray),this.symbolInstancesArray=new p(t.symbolInstancesArray),this.symbolQuadsArray=new m(t.symbolQuadsArray),this.featureIndex=new s(t.featureIndex,t.rawTileData,this.collisionTile),this.rawTileData=t.rawTileData,this.buckets=i(t.buckets,e))},reloadSymbolData:function(t,e,r){if(\"unloaded\"!==this.state){this.collisionTile=new f(t.collisionTile,this.collisionBoxArray),this.featureIndex.setCollisionTile(this.collisionTile);for(var n in this.buckets){var o=this.buckets[n];\"symbol\"===o.type&&(o.destroy(e.gl),delete this.buckets[n])}a.extend(this.buckets,i(t.buckets,r))}},unloadVectorData:function(t){for(var e in this.buckets){this.buckets[e].destroy(t.gl)}this.collisionBoxArray=null,this.symbolQuadsArray=null,this.symbolInstancesArray=null,this.collisionTile=null,this.featureIndex=null,this.rawTileData=null,this.buckets=null,this.state=\"unloaded\"},redoPlacement:function(t){function e(e,r){this.reloadSymbolData(r,t.map.painter,t.map.style),t.fire(\"tile.load\",{tile:this}),this.state=\"loaded\",this.redoWhenDone&&(this.redoPlacement(t),this.redoWhenDone=!1)}if(\"loaded\"!==this.state||\"reloading\"===this.state)return void(this.redoWhenDone=!0);this.state=\"reloading\",t.dispatcher.send(\"redo placement\",{uid:this.uid,source:t.id,angle:t.map.transform.angle,pitch:t.map.transform.pitch,showCollisionBoxes:t.map.showCollisionBoxes},e.bind(this),this.workerID)},getBucket:function(t){return this.buckets&&this.buckets[t.ref||t.id]},querySourceFeatures:function(t,e){if(this.rawTileData){this.vtLayers||(this.vtLayers=new l.VectorTile(new u(new Uint8Array(this.rawTileData))).layers);var r=this.vtLayers._geojsonTileLayer||this.vtLayers[e.sourceLayer];if(r)for(var n=h(e.filter),i={z:this.coord.z,x:this.coord.x,y:this.coord.y},a=0;a<r.length;a++){var o=r.feature(a);if(n(o)){var s=new c(o,this.coord.z,this.coord.x,this.coord.y);s.tile=i,t.push(s)}}}},isRenderable:function(){return\"loaded\"===this.state||\"reloading\"===this.state}}},{\"../data/bucket\":329,\"../data/feature_index\":336,\"../symbol/collision_box\":394,\"../symbol/collision_tile\":396,\"../symbol/symbol_instances\":405,\"../symbol/symbol_quads\":406,\"../util/util\":442,\"../util/vectortile_to_geojson\":443,\"feature-filter\":132,pbf:478,\"vector-tile\":550}],369:[function(t,e,r){\"use strict\";function n(t,e,r,n){l(!isNaN(t)&&t>=0&&t%1==0),l(!isNaN(e)&&e>=0&&e%1==0),l(!isNaN(r)&&r>=0&&r%1==0),isNaN(n)&&(n=0),this.z=+t,this.x=+e,this.y=+r,this.w=+n,(n*=2)<0&&(n=-1*n-1);var i=1<<this.z;this.id=32*(i*i*n+i*this.y+this.x)+this.z,this.posMatrix=null}function i(t,e,r){for(var n,i=\"\",a=t;a>0;a--)n=1<<a-1,i+=(e&n?1:0)+(r&n?2:0);return i}function a(t,e){if(t.row>e.row){var r=t;t=e,e=r}return{x0:t.column,y0:t.row,x1:e.column,y1:e.row,dx:e.column-t.column,dy:e.row-t.row}}function o(t,e,r,n,i){var a=Math.max(r,Math.floor(e.y0)),o=Math.min(n,Math.ceil(e.y1));if(t.x0===e.x0&&t.y0===e.y0?t.x0+e.dy/t.dy*t.dx<e.x1:t.x1-e.dy/t.dy*t.dx<e.x0){var s=t;t=e,e=s}for(var l=t.dx/t.dy,u=e.dx/e.dy,c=t.dx>0,h=e.dx<0,f=a;f<o;f++){var d=l*Math.max(0,Math.min(t.dy,f+c-t.y0))+t.x0,p=u*Math.max(0,Math.min(e.dy,f+h-e.y0))+e.x0;i(Math.floor(p),Math.ceil(d),f)}}function s(t,e,r,n,i,s){var l,u=a(t,e),c=a(e,r),h=a(r,t);u.dy>c.dy&&(l=u,u=c,c=l),u.dy>h.dy&&(l=u,u=h,h=l),c.dy>h.dy&&(l=c,c=h,h=l),u.dy&&o(h,u,n,i,s),c.dy&&o(h,c,n,i,s)}var l=t(\"assert\"),u=t(\"whoots-js\"),c=t(\"../geo/coordinate\");e.exports=n,n.prototype.toString=function(){return this.z+\"/\"+this.x+\"/\"+this.y},n.prototype.toCoordinate=function(t){var e=Math.min(this.z,t),r=Math.pow(2,e),n=this.y,i=this.x+r*this.w;return new c(i,n,e)},n.fromID=function(t){var e=t%32,r=1<<e,i=(t-e)/32,a=i%r,o=(i-a)/r%r,s=Math.floor(i/(r*r));return s%2!=0&&(s=-1*s-1),s/=2,new n(e,a,o,s)},n.prototype.url=function(t,e,r){var n=u.getTileBBox(this.x,this.y,this.z),a=i(this.z,this.x,this.y);return t[(this.x+this.y)%t.length].replace(\"{prefix}\",(this.x%16).toString(16)+(this.y%16).toString(16)).replace(\"{z}\",Math.min(this.z,e||this.z)).replace(\"{x}\",this.x).replace(\"{y}\",\"tms\"===r?Math.pow(2,this.z)-this.y-1:this.y).replace(\"{quadkey}\",a).replace(\"{bbox-epsg-3857}\",n)},n.prototype.parent=function(t){return 0===this.z?null:this.z>t?new n(this.z-1,this.x,this.y,this.w):new n(this.z-1,Math.floor(this.x/2),Math.floor(this.y/2),this.w)},n.prototype.wrapped=function(){return new n(this.z,this.x,this.y,0)},n.prototype.children=function(t){if(this.z>=t)return[new n(this.z+1,this.x,this.y,this.w)];var e=this.z+1,r=2*this.x,i=2*this.y;return[new n(e,r,i,this.w),new n(e,r+1,i,this.w),new n(e,r,i+1,this.w),new n(e,r+1,i+1,this.w)]},n.cover=function(t,e,r){function i(t,e,i){var s,l,u;if(i>=0&&i<=a)for(s=t;s<e;s++)l=(s%a+a)%a,u=new n(r,l,i,Math.floor(s/a)),o[u.id]=u}var a=1<<t,o={};return s(e[0],e[1],e[2],0,a,i),s(e[2],e[3],e[0],0,a,i),Object.keys(o).map(function(t){return o[t]})}},{\"../geo/coordinate\":338,assert:47,\"whoots-js\":566}],370:[function(t,e,r){\"use strict\";function n(t,e,r){if(this.id=t,this.dispatcher=r,a.extend(this,a.pick(e,[\"url\",\"scheme\",\"tileSize\"])),this._options=a.extend({type:\"vector\"},e),512!==this.tileSize)throw new Error(\"vector tile sources must have a tileSize of 512\");o(e,function(t,e){if(t)return void this.fire(\"error\",t);a.extend(this,e),this.fire(\"load\")}.bind(this))}var i=t(\"../util/evented\"),a=t(\"../util/util\"),o=t(\"./load_tilejson\"),s=t(\"../util/mapbox\").normalizeTileURL;e.exports=n,n.prototype=a.inherit(i,{minzoom:0,maxzoom:22,scheme:\"xyz\",tileSize:512,reparseOverscaled:!0,isTileClipped:!0,onAdd:function(t){this.map=t},serialize:function(){return a.extend({},this._options)},loadTile:function(t,e){function r(r,n){if(!t.aborted){if(r)return e(r);t.loadVectorData(n,this.map.style),t.redoWhenDone&&(t.redoWhenDone=!1,t.redoPlacement(this)),e(null),t.reloadCallback&&(this.loadTile(t,t.reloadCallback),t.reloadCallback=null)}}var n=t.coord.z>this.maxzoom?Math.pow(2,t.coord.z-this.maxzoom):1,i={url:s(t.coord.url(this.tiles,this.maxzoom,this.scheme),this.url),uid:t.uid,coord:t.coord,zoom:t.coord.z,tileSize:this.tileSize*n,source:this.id,overscaling:n,angle:this.map.transform.angle,pitch:this.map.transform.pitch,showCollisionBoxes:this.map.showCollisionBoxes};t.workerID?\"loading\"===t.state?t.reloadCallback=e:(i.rawTileData=t.rawTileData,this.dispatcher.send(\"reload tile\",i,r.bind(this),t.workerID)):t.workerID=this.dispatcher.send(\"load tile\",i,r.bind(this))},abortTile:function(t){this.dispatcher.send(\"abort tile\",{uid:t.uid,source:this.id},null,t.workerID)},unloadTile:function(t){t.unloadVectorData(this.map.painter),this.dispatcher.send(\"remove tile\",{uid:t.uid,source:this.id},null,t.workerID)}})},{\"../util/evented\":434,\"../util/mapbox\":439,\"../util/util\":442,\"./load_tilejson\":362}],371:[function(t,e,r){\"use strict\";function n(t,e,r){this.actor=t,this.styleLayers=e,r&&(this.loadVectorData=r),this.loading={},this.loaded={}}var i=t(\"../util/ajax\"),a=t(\"vector-tile\"),o=t(\"pbf\"),s=t(\"./worker_tile\");e.exports=n,n.prototype={loadTile:function(t,e){function r(t,r){return delete this.loading[n][i],t?e(t):r?(a.data=r.tile,a.parse(a.data,this.styleLayers.getLayerFamilies(),this.actor,r.rawTileData,e),this.loaded[n]=this.loaded[n]||{},void(this.loaded[n][i]=a)):e(null,null)}var n=t.source,i=t.uid;this.loading[n]||(this.loading[n]={});var a=this.loading[n][i]=new s(t);a.abort=this.loadVectorData(t,r.bind(this))},reloadTile:function(t,e){var r=this.loaded[t.source],n=t.uid;if(r&&r[n]){var i=r[n];i.parse(i.data,this.styleLayers.getLayerFamilies(),this.actor,t.rawTileData,e)}},abortTile:function(t){var e=this.loading[t.source],r=t.uid;e&&e[r]&&e[r].abort&&(e[r].abort(),delete e[r])},removeTile:function(t){var e=this.loaded[t.source],r=t.uid;e&&e[r]&&delete e[r]},loadVectorData:function(t,e){function r(t,r){if(t)return e(t);var n=new a.VectorTile(new o(new Uint8Array(r)));e(t,{tile:n,rawTileData:r})}var n=i.getArrayBuffer(t.url,r.bind(this));return function(){n.abort()}},redoPlacement:function(t,e){var r=this.loaded[t.source],n=this.loading[t.source],i=t.uid;if(r&&r[i]){var a=r[i],o=a.redoPlacement(t.angle,t.pitch,t.showCollisionBoxes);o.result&&e(null,o.result,o.transferables)}else n&&n[i]&&(n[i].angle=t.angle)}}},{\"../util/ajax\":425,\"./worker_tile\":374,pbf:478,\"vector-tile\":550}],372:[function(t,e,r){\"use strict\";function n(t,e){this.id=t,this.urls=e.urls,this.coordinates=e.coordinates,u.getVideo(e.urls,function(t,r){if(t)return this.fire(\"error\",{error:t});this.video=r,this.video.loop=!0;var n;this.video.addEventListener(\"playing\",function(){n=this.map.style.animationLoop.set(1/0),this.map._rerender()}.bind(this)),this.video.addEventListener(\"pause\",function(){this.map.style.animationLoop.cancel(n)}.bind(this)),this.map&&(this.video.play(),this.setCoordinates(e.coordinates)),this.fire(\"load\")}.bind(this))}var i=t(\"../util/util\"),a=t(\"./tile_coord\"),o=t(\"../geo/lng_lat\"),s=t(\"point-geometry\"),l=t(\"../util/evented\"),u=t(\"../util/ajax\"),c=t(\"../data/bucket\").EXTENT,h=t(\"../render/draw_raster\").RasterBoundsArray,f=t(\"../data/buffer\"),d=t(\"../render/vertex_array_object\");e.exports=n,n.prototype=i.inherit(l,{minzoom:0,maxzoom:22,tileSize:512,roundZoom:!0,getVideo:function(){return this.video},onAdd:function(t){this.map||(this.map=t,this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))},setCoordinates:function(t){this.coordinates=t;var e=this.map,r=t.map(function(t){return e.transform.locationCoordinate(o.convert(t)).zoomTo(0)}),n=this.centerCoord=i.getCoordinatesCenter(r);return n.column=Math.round(n.column),n.row=Math.round(n.row),this.minzoom=this.maxzoom=n.zoom,this._coord=new a(n.zoom,n.column,n.row),this._tileCoords=r.map(function(t){var e=t.zoomTo(n.zoom);return new s(Math.round((e.column-n.column)*c),Math.round((e.row-n.row)*c))}),this.fire(\"change\"),this},_setTile:function(t){this._prepared=!1,this.tile=t;var e=new h;e.emplaceBack(this._tileCoords[0].x,this._tileCoords[0].y,0,0),e.emplaceBack(this._tileCoords[1].x,this._tileCoords[1].y,32767,0),e.emplaceBack(this._tileCoords[3].x,this._tileCoords[3].y,0,32767),e.emplaceBack(this._tileCoords[2].x,this._tileCoords[2].y,32767,32767),this.tile.buckets={},this.tile.boundsBuffer=new f(e.serialize(),h.serialize(),f.BufferType.VERTEX),this.tile.boundsVAO=new d,this.tile.state=\"loaded\"},prepare:function(){if(!(this.video.readyState<2)&&this.tile){var t=this.map.painter.gl;this._prepared?(t.bindTexture(t.TEXTURE_2D,this.tile.texture),t.texSubImage2D(t.TEXTURE_2D,0,0,0,t.RGBA,t.UNSIGNED_BYTE,this.video)):(this._prepared=!0,this.tile.texture=t.createTexture(),t.bindTexture(t.TEXTURE_2D,this.tile.texture),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.LINEAR),t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,this.video)),this._currentTime=this.video.currentTime}},loadTile:function(t,e){this._coord&&this._coord.toString()===t.coord.toString()?(this._setTile(t),e(null)):(t.state=\"errored\",e(null))},serialize:function(){return{type:\"video\",urls:this.urls,coordinates:this.coordinates}}})},{\"../data/bucket\":329,\"../data/buffer\":334,\"../geo/lng_lat\":339,\"../render/draw_raster\":351,\"../render/vertex_array_object\":357,\"../util/ajax\":425,\"../util/evented\":434,\"../util/util\":442,\"./tile_coord\":369,\"point-geometry\":484}],373:[function(t,e,r){\"use strict\";function n(t){this.self=t,this.actor=new a(t,this);var e={getLayers:function(){return this.layers}.bind(this),getLayerFamilies:function(){return this.layerFamilies}.bind(this)};this.workerSources={vector:new l(this.actor,e),geojson:new u(this.actor,e)},this.self.registerWorkerSource=function(t,r){if(this.workerSources[t])throw new Error('Worker source with name \"'+t+'\" already registered.');this.workerSources[t]=new r(this.actor,e)}.bind(this)}function i(t){var e={};for(var r in t){var n=t[r],i=n.ref||n.id,a=t[i];a.layout&&\"none\"===a.layout.visibility||(e[i]=e[i]||[],r===i?e[i].unshift(n):e[i].push(n))}return e}var a=t(\"../util/actor\"),o=t(\"../style/style_layer\"),s=t(\"../util/util\"),l=t(\"./vector_tile_worker_source\"),u=t(\"./geojson_worker_source\");e.exports=function(t){return new n(t)},s.extend(n.prototype,{\"set layers\":function(t){function e(t){var e=o.create(t,t.ref&&r.layers[t.ref]);e.updatePaintTransitions({},{transition:!1}),r.layers[e.id]=e}this.layers={};for(var r=this,n=[],a=0;a<t.length;a++){var s=t[a];\"fill\"!==s.type&&\"line\"!==s.type&&\"circle\"!==s.type&&\"symbol\"!==s.type||(s.ref?n.push(a):e(s))}for(var l=0;l<n.length;l++)e(t[n[l]]);this.layerFamilies=i(this.layers)},\"update layers\":function(t){function e(t){var e=a.layers[t.ref];a.layers[t.id]?a.layers[t.id].set(t,e):a.layers[t.id]=o.create(t,e),a.layers[t.id].updatePaintTransitions({},{transition:!1})}var r,n,a=this;for(r in t)n=t[r],n.ref&&e(n);for(r in t)n=t[r],n.ref||e(n);this.layerFamilies=i(this.layers)},\"load tile\":function(t,e){var r=t.type||\"vector\";this.workerSources[r].loadTile(t,e)},\"reload tile\":function(t,e){var r=t.type||\"vector\";this.workerSources[r].reloadTile(t,e)},\"abort tile\":function(t){var e=t.type||\"vector\";this.workerSources[e].abortTile(t)},\"remove tile\":function(t){var e=t.type||\"vector\";this.workerSources[e].removeTile(t)},\"redo placement\":function(t,e){var r=t.type||\"vector\";this.workerSources[r].redoPlacement(t,e)},\"load worker source\":function(t,e){try{this.self.importScripts(t.url),e()}catch(t){e(t)}}})},{\"../style/style_layer\":381,\"../util/actor\":424,\"../util/util\":442,\"./geojson_worker_source\":359,\"./vector_tile_worker_source\":371}],374:[function(t,e,r){\"use strict\";function n(t){this.coord=t.coord,this.uid=t.uid,this.zoom=t.zoom,this.tileSize=t.tileSize,this.source=t.source,this.overscaling=t.overscaling,this.angle=t.angle,this.pitch=t.pitch,this.showCollisionBoxes=t.showCollisionBoxes}function i(t){return!t.isEmpty()}function a(t){return t.serialize()}function o(t){var e=[];for(var r in t)t[r].getTransferables(e);return e}function s(t){return t.id}var l=t(\"../data/feature_index\"),u=t(\"../symbol/collision_tile\"),c=t(\"../data/bucket\"),h=t(\"../symbol/collision_box\"),f=t(\"../util/dictionary_coder\"),d=t(\"../util/util\"),p=t(\"../symbol/symbol_instances\"),m=t(\"../symbol/symbol_quads\");e.exports=n,n.prototype.parse=function(t,e,r,n,v){function g(t,e){for(var r=0;r<t.length;r++){var n=t.feature(r);n.index=r;for(var i in e)e[i].filter(n)&&e[i].features.push(n)}}function y(t){if(t)return v(t);if(2===++N){for(var e=P.length-1;e>=0;e--)b(E,P[e]);x()}}function b(t,e){if(e.populateArrays(A,j,F),\"symbol\"!==e.type)for(var r=0;r<e.features.length;r++){var n=e.features[r];T.insert(n,n.index,e.sourceLayerIndex,e.index)}e.features=null}function x(){E.status=\"done\",E.redoPlacementAfterDone&&(E.redoPlacement(E.angle,E.pitch,null),E.redoPlacementAfterDone=!1);var t=T.serialize(),e=A.serialize(),r=E.collisionBoxArray.serialize(),s=E.symbolInstancesArray.serialize(),l=E.symbolQuadsArray.serialize(),u=[n].concat(t.transferables).concat(e.transferables),c=D.filter(i);v(null,{buckets:c.map(a),featureIndex:t.data,collisionTile:e.data,collisionBoxArray:r,symbolInstancesArray:s,symbolQuadsArray:l,rawTileData:n},o(c).concat(u))}this.status=\"parsing\",this.data=t,this.collisionBoxArray=new h,this.symbolInstancesArray=new p,this.symbolQuadsArray=new m;var _,w,M,k,A=new u(this.angle,this.pitch,this.collisionBoxArray),T=new l(this.coord,this.overscaling,A,t.layers),S=new f(t.layers?Object.keys(t.layers).sort():[\"_geojsonTileLayer\"]),E=this,L={},C={},I=0;for(var z in e)w=e[z][0],w.source===this.source&&(w.ref||w.minzoom&&this.zoom<w.minzoom||w.maxzoom&&this.zoom>=w.maxzoom||w.layout&&\"none\"===w.layout.visibility||t.layers&&!t.layers[w.sourceLayer]||(k=c.create({layer:w,index:I++,childLayers:e[z],zoom:this.zoom,overscaling:this.overscaling,showCollisionBoxes:this.showCollisionBoxes,collisionBoxArray:this.collisionBoxArray,symbolQuadsArray:this.symbolQuadsArray,symbolInstancesArray:this.symbolInstancesArray,sourceLayerIndex:S.encode(w.sourceLayer||\"_geojsonTileLayer\")}),k.createFilter(),L[w.id]=k,t.layers&&(M=w.sourceLayer,C[M]=C[M]||{},C[M][w.id]=k)));if(t.layers)for(M in C)1===w.version&&d.warnOnce('Vector tile source \"'+this.source+'\" layer \"'+M+'\" does not use vector tile spec v2 and therefore may have some rendering errors.'),(w=t.layers[M])&&g(w,C[M]);else g(t,L);var D=[],P=this.symbolBuckets=[],O=[];T.bucketLayerIDs={};for(var R in L)k=L[R],0!==k.features.length&&(T.bucketLayerIDs[k.index]=k.childLayers.map(s),D.push(k),\"symbol\"===k.type?P.push(k):O.push(k));var F={},j={},N=0;if(P.length>0){for(_=P.length-1;_>=0;_--)P[_].updateIcons(F),P[_].updateFont(j);for(var B in j)j[B]=Object.keys(j[B]).map(Number);F=Object.keys(F),r.send(\"get glyphs\",{uid:this.uid,stacks:j},function(t,e){j=e,y(t)}),F.length?r.send(\"get icons\",{icons:F},function(t,e){F=e,y(t)}):y()}for(_=O.length-1;_>=0;_--)b(this,O[_]);if(0===P.length)return x()},n.prototype.redoPlacement=function(t,e,r){if(\"done\"!==this.status)return this.redoPlacementAfterDone=!0,this.angle=t,{};for(var n=new u(t,e,this.collisionBoxArray),s=this.symbolBuckets,l=s.length-1;l>=0;l--)s[l].placeFeatures(n,r);var c=n.serialize(),h=s.filter(i);return{result:{buckets:h.map(a),collisionTile:c.data},transferables:o(h).concat(c.transferables)}}},{\"../data/bucket\":329,\"../data/feature_index\":336,\"../symbol/collision_box\":394,\"../symbol/collision_tile\":396,\"../symbol/symbol_instances\":405,\"../symbol/symbol_quads\":406,\"../util/dictionary_coder\":432,\"../util/util\":442}],375:[function(t,e,r){\"use strict\";function n(){this.n=0,this.times=[]}e.exports=n,n.prototype.stopped=function(){return this.times=this.times.filter(function(t){return t.time>=(new Date).getTime()}),!this.times.length},n.prototype.set=function(t){return this.times.push({id:this.n,time:t+(new Date).getTime()}),this.n++},n.prototype.cancel=function(t){this.times=this.times.filter(function(e){return e.id!==t})}},{}],376:[function(t,e,r){\"use strict\";function n(t){this.base=t,this.retina=s.devicePixelRatio>1;var e=this.retina?\"@2x\":\"\";o.getJSON(l(t,e,\".json\"),function(t,e){if(t)return void this.fire(\"error\",{error:t});this.data=e,this.img&&this.fire(\"load\")}.bind(this)),o.getImage(l(t,e,\".png\"),function(t,e){if(t)return void this.fire(\"error\",{error:t});for(var r=e.getData(),n=e.data=new Uint8Array(r.length),i=0;i<r.length;i+=4){var a=r[i+3]/255;n[i+0]=r[i+0]*a,n[i+1]=r[i+1]*a,n[i+2]=r[i+2]*a,n[i+3]=r[i+3]}this.img=e,this.data&&this.fire(\"load\")}.bind(this))}function i(){}var a=t(\"../util/evented\"),o=t(\"../util/ajax\"),s=t(\"../util/browser\"),l=t(\"../util/mapbox\").normalizeSpriteURL;e.exports=n,n.prototype=Object.create(a),n.prototype.toJSON=function(){return this.base},n.prototype.loaded=function(){return!(!this.data||!this.img)},n.prototype.resize=function(){if(s.devicePixelRatio>1!==this.retina){var t=new n(this.base);t.on(\"load\",function(){this.img=t.img,this.data=t.data,this.retina=t.retina}.bind(this))}},i.prototype={x:0,y:0,width:0,height:0,pixelRatio:1,sdf:!1},n.prototype.getSpritePosition=function(t){if(!this.loaded())return new i;var e=this.data&&this.data[t];return e&&this.img?e:new i}},{\"../util/ajax\":425,\"../util/browser\":426,\"../util/evented\":434,\"../util/mapbox\":439}],377:[function(t,e,r){\"use strict\";var n=t(\"csscolorparser\").parseCSSColor,i=t(\"../util/util\"),a=t(\"./style_function\"),o={};e.exports=function t(e){if(a.isFunctionDefinition(e))return i.extend({},e,{stops:e.stops.map(function(e){return[e[0],t(e[1])]})});if(\"string\"==typeof e){if(!o[e]){var r=n(e);if(!r)throw new Error(\"Invalid color \"+e);o[e]=[r[0]/255*r[3],r[1]/255*r[3],r[2]/255*r[3],r[3]]}return o[e]}throw new Error(\"Invalid color \"+e)}},{\"../util/util\":442,\"./style_function\":380,csscolorparser:108}],378:[function(t,e,r){\"use strict\";function n(t,e,r){this.animationLoop=e||new m,this.dispatcher=new p(r||1,this),this.spriteAtlas=new l(1024,1024),this.lineAtlas=new u(256,512),this._layers={},this._order=[],this._groups=[],this.sources={},this.zoomHistory={},c.bindAll([\"_forwardSourceEvent\",\"_forwardTileEvent\",\"_forwardLayerEvent\",\"_redoPlacement\"],this),this._resetUpdates();var n=function(t,e){if(t)return void this.fire(\"error\",{error:t});if(!v.emitErrors(this,v(e))){this._loaded=!0,this.stylesheet=e,this.updateClasses();var r=e.sources;for(var n in r)this.addSource(n,r[n]);e.sprite&&(this.sprite=new o(e.sprite),this.sprite.on(\"load\",this.fire.bind(this,\"change\"))),this.glyphSource=new s(e.glyphs),this._resolve(),this.fire(\"load\")}}.bind(this);\"string\"==typeof t?h.getJSON(f(t),n):d.frame(n.bind(this,null,t)),this.on(\"source.load\",function(t){var e=t.source;if(e&&e.vectorLayerIds)for(var r in this._layers){var n=this._layers[r];n.source===e.id&&this._validateLayer(n)}})}var i=t(\"../util/evented\"),a=t(\"./style_layer\"),o=t(\"./image_sprite\"),s=t(\"../symbol/glyph_source\"),l=t(\"../symbol/sprite_atlas\"),u=t(\"../render/line_atlas\"),c=t(\"../util/util\"),h=t(\"../util/ajax\"),f=t(\"../util/mapbox\").normalizeStyleURL,d=t(\"../util/browser\"),p=t(\"../util/dispatcher\"),m=t(\"./animation_loop\"),v=t(\"./validate_style\"),g=t(\"../source/source\"),y=t(\"../source/query_features\"),b=t(\"../source/source_cache\"),x=t(\"./style_spec\"),_=t(\"./style_function\");e.exports=n,n.prototype=c.inherit(i,{_loaded:!1,_validateLayer:function(t){var e=this.sources[t.source];t.sourceLayer&&e&&e.vectorLayerIds&&-1===e.vectorLayerIds.indexOf(t.sourceLayer)&&this.fire(\"error\",{error:new Error('Source layer \"'+t.sourceLayer+'\" does not exist on source \"'+e.id+'\" as specified by style layer \"'+t.id+'\"')})},loaded:function(){if(!this._loaded)return!1;if(Object.keys(this._updates.sources).length)return!1;for(var t in this.sources)if(!this.sources[t].loaded())return!1;return!(this.sprite&&!this.sprite.loaded())},_resolve:function(){var t,e;this._layers={},this._order=this.stylesheet.layers.map(function(t){return t.id});for(var r=0;r<this.stylesheet.layers.length;r++)e=this.stylesheet.layers[r],e.ref||(t=a.create(e),this._layers[t.id]=t,t.on(\"error\",this._forwardLayerEvent));for(var n=0;n<this.stylesheet.layers.length;n++)if(e=this.stylesheet.layers[n],e.ref){var i=this.getLayer(e.ref);t=a.create(e,i),this._layers[t.id]=t,t.on(\"error\",this._forwardLayerEvent)}this._groupLayers(),this._updateWorkerLayers()},_groupLayers:function(){var t;this._groups=[];for(var e=0;e<this._order.length;++e){var r=this._layers[this._order[e]];t&&r.source===t.source||(t=[],t.source=r.source,this._groups.push(t)),t.push(r)}},_updateWorkerLayers:function(t){this.dispatcher.broadcast(t?\"update layers\":\"set layers\",this._serializeLayers(t))},_serializeLayers:function(t){t=t||this._order;for(var e=[],r={includeRefProperties:!0},n=0;n<t.length;n++)e.push(this._layers[t[n]].serialize(r));return e},_applyClasses:function(t,e){if(this._loaded){t=t||[],e=e||{transition:!0};var r=this.stylesheet.transition||{},n=this._updates.allPaintProps?this._layers:this._updates.paintProps;for(var i in n){var a=this._layers[i],o=this._updates.paintProps[i];if(this._updates.allPaintProps||o.all)a.updatePaintTransitions(t,e,r,this.animationLoop);else for(var s in o)this._layers[i].updatePaintTransition(s,t,e,r,this.animationLoop)}}},_recalculate:function(t){for(var e in this.sources)this.sources[e].used=!1;this._updateZoomHistory(t),this.rasterFadeDuration=300;for(var r in this._layers){var n=this._layers[r];n.recalculate(t,this.zoomHistory),!n.isHidden(t)&&n.source&&(this.sources[n.source].used=!0)}Math.floor(this.z)!==Math.floor(t)&&this.animationLoop.set(300),this.z=t,this.fire(\"zoom\")},_updateZoomHistory:function(t){var e=this.zoomHistory;void 0===e.lastIntegerZoom&&(e.lastIntegerZoom=Math.floor(t),e.lastIntegerZoomTime=0,e.lastZoom=t),Math.floor(e.lastZoom)<Math.floor(t)?(e.lastIntegerZoom=Math.floor(t),e.lastIntegerZoomTime=Date.now()):Math.floor(e.lastZoom)>Math.floor(t)&&(e.lastIntegerZoom=Math.floor(t+1),e.lastIntegerZoomTime=Date.now()),e.lastZoom=t},_checkLoaded:function(){if(!this._loaded)throw new Error(\"Style is not done loading\")},update:function(t,e){if(!this._updates.changed)return this;if(this._updates.allLayers)this._groupLayers(),this._updateWorkerLayers();else{var r=Object.keys(this._updates.layers);r.length&&this._updateWorkerLayers(r)}var n,i=Object.keys(this._updates.sources);for(n=0;n<i.length;n++)this._reloadSource(i[n]);for(n=0;n<this._updates.events.length;n++){var a=this._updates.events[n];this.fire(a[0],a[1])}return this._applyClasses(t,e),this._updates.changed&&this.fire(\"change\"),this._resetUpdates(),this},_resetUpdates:function(){this._updates={events:[],layers:{},sources:{},paintProps:{}}},addSource:function(t,e){if(this._checkLoaded(),void 0!==this.sources[t])throw new Error(\"There is already a source with this ID\");if(!e.type)throw new Error(\"The type property must be defined, but the only the following properties were given: \"+Object.keys(e)+\".\");return[\"vector\",\"raster\",\"geojson\",\"video\",\"image\"].indexOf(e.type)>=0&&this._handleErrors(v.source,\"sources.\"+t,e)?this:(e=new b(t,e,this.dispatcher),this.sources[t]=e,e.style=this,e.on(\"load\",this._forwardSourceEvent).on(\"error\",this._forwardSourceEvent).on(\"change\",this._forwardSourceEvent).on(\"tile.add\",this._forwardTileEvent).on(\"tile.load\",this._forwardTileEvent).on(\"tile.error\",this._forwardTileEvent).on(\"tile.remove\",this._forwardTileEvent).on(\"tile.stats\",this._forwardTileEvent),this._updates.events.push([\"source.add\",{source:e}]),this._updates.changed=!0,this)},removeSource:function(t){if(this._checkLoaded(),void 0===this.sources[t])throw new Error(\"There is no source with this ID\");var e=this.sources[t];return delete this.sources[t],delete this._updates.sources[t],e.off(\"load\",this._forwardSourceEvent).off(\"error\",this._forwardSourceEvent).off(\"change\",this._forwardSourceEvent).off(\"tile.add\",this._forwardTileEvent).off(\"tile.load\",this._forwardTileEvent).off(\"tile.error\",this._forwardTileEvent).off(\"tile.remove\",this._forwardTileEvent).off(\"tile.stats\",this._forwardTileEvent),this._updates.events.push([\"source.remove\",{source:e}]),this._updates.changed=!0,this},getSource:function(t){return this.sources[t]&&this.sources[t].getSource()},addLayer:function(t,e){if(this._checkLoaded(),!(t instanceof a)){if(this._handleErrors(v.layer,\"layers.\"+t.id,t,!1,{arrayIndex:-1}))return this;var r=t.ref&&this.getLayer(t.ref);t=a.create(t,r)}return this._validateLayer(t),t.on(\"error\",this._forwardLayerEvent),this._layers[t.id]=t,this._order.splice(e?this._order.indexOf(e):1/0,0,t.id),this._updates.allLayers=!0,t.source&&(this._updates.sources[t.source]=!0),this._updates.events.push([\"layer.add\",{layer:t}]),this.updateClasses(t.id)},removeLayer:function(t){this._checkLoaded();var e=this._layers[t];if(void 0===e)throw new Error(\"There is no layer with this ID\");for(var r in this._layers)this._layers[r].ref===t&&this.removeLayer(r);return e.off(\"error\",this._forwardLayerEvent),delete this._layers[t],delete this._updates.layers[t],delete this._updates.paintProps[t],this._order.splice(this._order.indexOf(t),1),this._updates.allLayers=!0,this._updates.events.push([\"layer.remove\",{layer:e}]),this._updates.changed=!0,this},getLayer:function(t){return this._layers[t]},getReferentLayer:function(t){var e=this.getLayer(t);return e.ref&&(e=this.getLayer(e.ref)),e},setLayerZoomRange:function(t,e,r){this._checkLoaded();var n=this.getReferentLayer(t);return n.minzoom===e&&n.maxzoom===r?this:(null!=e&&(n.minzoom=e),null!=r&&(n.maxzoom=r),this._updateLayer(n))},setFilter:function(t,e){this._checkLoaded();var r=this.getReferentLayer(t);return null!==e&&this._handleErrors(v.filter,\"layers.\"+r.id+\".filter\",e)?this:c.deepEqual(r.filter,e)?this:(r.filter=c.clone(e),this._updateLayer(r))},getFilter:function(t){return this.getReferentLayer(t).filter},setLayoutProperty:function(t,e,r){this._checkLoaded();var n=this.getReferentLayer(t);return c.deepEqual(n.getLayoutProperty(e),r)?this:(n.setLayoutProperty(e,r),this._updateLayer(n))},getLayoutProperty:function(t,e){return this.getReferentLayer(t).getLayoutProperty(e)},setPaintProperty:function(t,e,r,n){this._checkLoaded();var i=this.getLayer(t);if(c.deepEqual(i.getPaintProperty(e,n),r))return this;var a=i.isPaintValueFeatureConstant(e);return i.setPaintProperty(e,r,n),!(r&&_.isFunctionDefinition(r)&&\"$zoom\"!==r.property&&void 0!==r.property)&&a||(this._updates.layers[t]=!0,i.source&&(this._updates.sources[i.source]=!0)),this.updateClasses(t,e)},getPaintProperty:function(t,e,r){return this.getLayer(t).getPaintProperty(e,r)},updateClasses:function(t,e){if(this._updates.changed=!0,t){var r=this._updates.paintProps;r[t]||(r[t]={}),r[t][e||\"all\"]=!0}else this._updates.allPaintProps=!0;return this},serialize:function(){return c.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,sources:c.mapObject(this.sources,function(t){return t.serialize()}),layers:this._order.map(function(t){return this._layers[t].serialize()},this)},function(t){return void 0!==t})},_updateLayer:function(t){return this._updates.layers[t.id]=!0,t.source&&(this._updates.sources[t.source]=!0),this._updates.changed=!0,this},_flattenRenderedFeatures:function(t){for(var e=[],r=this._order.length-1;r>=0;r--)for(var n=this._order[r],i=0;i<t.length;i++){var a=t[i][n];if(a)for(var o=0;o<a.length;o++)e.push(a[o])}return e},queryRenderedFeatures:function(t,e,r,n){\n", "e&&e.filter&&this._handleErrors(v.filter,\"queryRenderedFeatures.filter\",e.filter,!0);var i={};if(e&&e.layers)for(var a=0;a<e.layers.length;a++){var o=e.layers[a];i[this._layers[o].source]=!0}var s=[];for(var l in this.sources)if(!e.layers||i[l]){var u=this.sources[l],c=y.rendered(u,this._layers,t,e,r,n);s.push(c)}return this._flattenRenderedFeatures(s)},querySourceFeatures:function(t,e){e&&e.filter&&this._handleErrors(v.filter,\"querySourceFeatures.filter\",e.filter,!0);var r=this.sources[t];return r?y.source(r,e):[]},addSourceType:function(t,e,r){return g.getType(t)?r(new Error('A source type called \"'+t+'\" already exists.')):(g.setType(t,e),e.workerSourceURL?void this.dispatcher.broadcast(\"load worker source\",{name:t,url:e.workerSourceURL},r):r(null,null))},_handleErrors:function(t,e,r,n,i){var a=n?v.throwErrors:v.emitErrors,o=t.call(v,c.extend({key:e,style:this.serialize(),value:r,styleSpec:x},i));return a.call(v,this,o)},_remove:function(){this.dispatcher.remove()},_reloadSource:function(t){this.sources[t].reload()},_updateSources:function(t){for(var e in this.sources)this.sources[e].update(t)},_redoPlacement:function(){for(var t in this.sources)this.sources[t].redoPlacement&&this.sources[t].redoPlacement()},_forwardSourceEvent:function(t){this.fire(\"source.\"+t.type,c.extend({source:t.target.getSource()},t))},_forwardTileEvent:function(t){this.fire(t.type,c.extend({source:t.target},t))},_forwardLayerEvent:function(t){this.fire(\"layer.\"+t.type,c.extend({layer:{id:t.target.id}},t))},\"get sprite json\":function(t,e){var r=this.sprite;r.loaded()?e(null,{sprite:r.data,retina:r.retina}):r.on(\"load\",function(){e(null,{sprite:r.data,retina:r.retina})})},\"get icons\":function(t,e){var r=this.sprite,n=this.spriteAtlas;r.loaded()?(n.setSprite(r),n.addIcons(t.icons,e)):r.on(\"load\",function(){n.setSprite(r),n.addIcons(t.icons,e)})},\"get glyphs\":function(t,e){function r(t,r,n){t&&console.error(t),a[n]=r,0===--i&&e(null,a)}var n=t.stacks,i=Object.keys(n).length,a={};for(var o in n)this.glyphSource.getSimpleGlyphs(o,n[o],t.uid,r)}})},{\"../render/line_atlas\":354,\"../source/query_features\":364,\"../source/source\":366,\"../source/source_cache\":367,\"../symbol/glyph_source\":399,\"../symbol/sprite_atlas\":404,\"../util/ajax\":425,\"../util/browser\":426,\"../util/dispatcher\":433,\"../util/evented\":434,\"../util/mapbox\":439,\"../util/util\":442,\"./animation_loop\":375,\"./image_sprite\":376,\"./style_function\":380,\"./style_layer\":381,\"./style_spec\":388,\"./validate_style\":390}],379:[function(t,e,r){\"use strict\";function n(t,e){this.value=s.clone(e),this.isFunction=a.isFunctionDefinition(e),this.json=JSON.stringify(this.value);var r=\"color\"===t.type&&this.value?o(this.value):e;if(this.calculate=a[t.function||\"piecewise-constant\"](r),this.isFeatureConstant=this.calculate.isFeatureConstant,this.isZoomConstant=this.calculate.isZoomConstant,\"piecewise-constant\"===t.function&&t.transition&&(this.calculate=i(this.calculate)),!this.isFeatureConstant&&!this.isZoomConstant){this.stopZoomLevels=[];for(var n=[],l=this.value.stops,u=0;u<this.value.stops.length;u++){var c=l[u][0].zoom;this.stopZoomLevels.indexOf(c)<0&&(this.stopZoomLevels.push(c),n.push([c,n.length]))}this.calculateInterpolationT=a.interpolated({stops:n,base:e.base})}}function i(t){return function(e,r){var n,i,a,o=e.zoom,s=e.zoomHistory,l=e.duration,u=o%1,c=Math.min((Date.now()-s.lastIntegerZoomTime)/l,1),h=1;return o>s.lastIntegerZoom?(n=u+(1-u)*c,h*=2,i=t({zoom:o-1},r),a=t({zoom:o},r)):(n=1-(1-c)*u,a=t({zoom:o},r),i=t({zoom:o+1},r),h/=2),void 0===i||void 0===a?void 0:{from:i,fromScale:h,to:a,toScale:1,t:n}}}var a=t(\"./style_function\"),o=t(\"./parse_color\"),s=t(\"../util/util\");e.exports=n},{\"../util/util\":442,\"./parse_color\":377,\"./style_function\":380}],380:[function(t,e,r){\"use strict\";var n=t(\"mapbox-gl-function\");r.interpolated=function(t){var e=n.interpolated(t),r=function(t,r){return e(t&&t.zoom,r||{})};return r.isFeatureConstant=e.isFeatureConstant,r.isZoomConstant=e.isZoomConstant,r},r[\"piecewise-constant\"]=function(t){var e=n[\"piecewise-constant\"](t),r=function(t,r){return e(t&&t.zoom,r||{})};return r.isFeatureConstant=e.isFeatureConstant,r.isZoomConstant=e.isZoomConstant,r},r.isFunctionDefinition=n.isFunctionDefinition},{\"mapbox-gl-function\":302}],381:[function(t,e,r){\"use strict\";function n(t,e){this.set(t,e)}function i(t){return t.value}var a=t(\"../util/util\"),o=t(\"./style_transition\"),s=t(\"./style_declaration\"),l=t(\"./style_spec\"),u=t(\"./validate_style\"),c=t(\"./parse_color\"),h=t(\"../util/evented\");e.exports=n;n.create=function(e,r){return new({background:t(\"./style_layer/background_style_layer\"),circle:t(\"./style_layer/circle_style_layer\"),fill:t(\"./style_layer/fill_style_layer\"),line:t(\"./style_layer/line_style_layer\"),raster:t(\"./style_layer/raster_style_layer\"),symbol:t(\"./style_layer/symbol_style_layer\")}[(r||e).type])(e,r)},n.prototype=a.inherit(h,{set:function(t,e){this.id=t.id,this.ref=t.ref,this.metadata=t.metadata,this.type=(e||t).type,this.source=(e||t).source,this.sourceLayer=(e||t)[\"source-layer\"],this.minzoom=(e||t).minzoom,this.maxzoom=(e||t).maxzoom,this.filter=(e||t).filter,this.paint={},this.layout={},this._paintSpecifications=l[\"paint_\"+this.type],this._layoutSpecifications=l[\"layout_\"+this.type],this._paintTransitions={},this._paintTransitionOptions={},this._paintDeclarations={},this._layoutDeclarations={},this._layoutFunctions={};var r,n;for(var i in t){var a=i.match(/^paint(?:\\.(.*))?$/);if(a){var o=a[1]||\"\";for(r in t[i])this.setPaintProperty(r,t[i][r],o)}}if(this.ref)this._layoutDeclarations=e._layoutDeclarations;else for(n in t.layout)this.setLayoutProperty(n,t.layout[n]);for(r in this._paintSpecifications)this.paint[r]=this.getPaintValue(r);for(n in this._layoutSpecifications)this._updateLayoutValue(n)},setLayoutProperty:function(t,e){if(null==e)delete this._layoutDeclarations[t];else{var r=\"layers.\"+this.id+\".layout.\"+t;if(this._handleErrors(u.layoutProperty,r,t,e))return;this._layoutDeclarations[t]=new s(this._layoutSpecifications[t],e)}this._updateLayoutValue(t)},getLayoutProperty:function(t){return this._layoutDeclarations[t]&&this._layoutDeclarations[t].value},getLayoutValue:function(t,e,r){var n=this._layoutSpecifications[t],i=this._layoutDeclarations[t];return i?i.calculate(e,r):n.default},setPaintProperty:function(t,e,r){var n=\"layers.\"+this.id+(r?'[\"paint.'+r+'\"].':\".paint.\")+t;if(a.endsWith(t,\"-transition\"))if(this._paintTransitionOptions[r||\"\"]||(this._paintTransitionOptions[r||\"\"]={}),null===e||void 0===e)delete this._paintTransitionOptions[r||\"\"][t];else{if(this._handleErrors(u.paintProperty,n,t,e))return;this._paintTransitionOptions[r||\"\"][t]=e}else if(this._paintDeclarations[r||\"\"]||(this._paintDeclarations[r||\"\"]={}),null===e||void 0===e)delete this._paintDeclarations[r||\"\"][t];else{if(this._handleErrors(u.paintProperty,n,t,e))return;this._paintDeclarations[r||\"\"][t]=new s(this._paintSpecifications[t],e)}},getPaintProperty:function(t,e){return e=e||\"\",a.endsWith(t,\"-transition\")?this._paintTransitionOptions[e]&&this._paintTransitionOptions[e][t]:this._paintDeclarations[e]&&this._paintDeclarations[e][t]&&this._paintDeclarations[e][t].value},getPaintValue:function(t,e,r){var n=this._paintSpecifications[t],i=this._paintTransitions[t];return i?i.calculate(e,r):\"color\"===n.type&&n.default?c(n.default):n.default},getPaintValueStopZoomLevels:function(t){var e=this._paintTransitions[t];return e?e.declaration.stopZoomLevels:[]},getPaintInterpolationT:function(t,e){return this._paintTransitions[t].declaration.calculateInterpolationT({zoom:e})},isPaintValueFeatureConstant:function(t){var e=this._paintTransitions[t];return!e||e.declaration.isFeatureConstant},isLayoutValueFeatureConstant:function(t){var e=this._layoutDeclarations[t];return!e||e.isFeatureConstant},isPaintValueZoomConstant:function(t){var e=this._paintTransitions[t];return!e||e.declaration.isZoomConstant},isHidden:function(t){return!!(this.minzoom&&t<this.minzoom)||(!!(this.maxzoom&&t>=this.maxzoom)||(\"none\"===this.layout.visibility||0===this.paint[this.type+\"-opacity\"]))},updatePaintTransitions:function(t,e,r,n){for(var i=a.extend({},this._paintDeclarations[\"\"]),o=0;o<t.length;o++)a.extend(i,this._paintDeclarations[t[o]]);var s;for(s in i)this._applyPaintDeclaration(s,i[s],e,r,n);for(s in this._paintTransitions)s in i||this._applyPaintDeclaration(s,null,e,r,n)},updatePaintTransition:function(t,e,r,n,i){for(var a=this._paintDeclarations[\"\"][t],o=0;o<e.length;o++){var s=this._paintDeclarations[e[o]];s&&s[t]&&(a=s[t])}this._applyPaintDeclaration(t,a,r,n,i)},recalculate:function(t,e){for(var r in this._paintTransitions)this.paint[r]=this.getPaintValue(r,{zoom:t,zoomHistory:e});for(var n in this._layoutFunctions)this.layout[n]=this.getLayoutValue(n,{zoom:t,zoomHistory:e})},serialize:function(t){var e={id:this.id,ref:this.ref,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom};for(var r in this._paintDeclarations){e[\"\"===r?\"paint\":\"paint.\"+r]=a.mapObject(this._paintDeclarations[r],i)}return(!this.ref||t&&t.includeRefProperties)&&a.extend(e,{type:this.type,source:this.source,\"source-layer\":this.sourceLayer,filter:this.filter,layout:a.mapObject(this._layoutDeclarations,i)}),a.filterObject(e,function(t,e){return void 0!==t&&!(\"layout\"===e&&!Object.keys(t).length)})},_applyPaintDeclaration:function(t,e,r,n,i){var l=r.transition?this._paintTransitions[t]:void 0,u=this._paintSpecifications[t];if(null!==e&&void 0!==e||(e=new s(u,u.default)),!l||l.declaration.json!==e.json){var c=a.extend({duration:300,delay:0},n,this.getPaintProperty(t+\"-transition\")),h=this._paintTransitions[t]=new o(u,e,l,c);h.instant()||(h.loopID=i.set(h.endTime-Date.now())),l&&i.cancel(l.loopID)}},_updateLayoutValue:function(t){var e=this._layoutDeclarations[t];e&&e.isFunction?this._layoutFunctions[t]=!0:(delete this._layoutFunctions[t],this.layout[t]=this.getLayoutValue(t))},_handleErrors:function(t,e,r,n){return u.emitErrors(this,t.call(u,{key:e,layerType:this.type,objectKey:r,value:n,styleSpec:l,style:{glyphs:!0,sprite:!0}}))}})},{\"../util/evented\":434,\"../util/util\":442,\"./parse_color\":377,\"./style_declaration\":379,\"./style_layer/background_style_layer\":382,\"./style_layer/circle_style_layer\":383,\"./style_layer/fill_style_layer\":384,\"./style_layer/line_style_layer\":385,\"./style_layer/raster_style_layer\":386,\"./style_layer/symbol_style_layer\":387,\"./style_spec\":388,\"./style_transition\":389,\"./validate_style\":390}],382:[function(t,e,r){\"use strict\";function n(){a.apply(this,arguments)}var i=t(\"../../util/util\"),a=t(\"../style_layer\");e.exports=n,n.prototype=i.inherit(a,{})},{\"../../util/util\":442,\"../style_layer\":381}],383:[function(t,e,r){\"use strict\";function n(){a.apply(this,arguments)}var i=t(\"../../util/util\"),a=t(\"../style_layer\");e.exports=n,n.prototype=i.inherit(a,{})},{\"../../util/util\":442,\"../style_layer\":381}],384:[function(t,e,r){\"use strict\";function n(){a.apply(this,arguments)}var i=t(\"../../util/util\"),a=t(\"../style_layer\");n.prototype=i.inherit(a,{getPaintValue:function(t,e,r){return\"fill-outline-color\"===t&&void 0===this.getPaintProperty(\"fill-outline-color\")?a.prototype.getPaintValue.call(this,\"fill-color\",e,r):a.prototype.getPaintValue.call(this,t,e,r)},getPaintValueStopZoomLevels:function(t){return\"fill-outline-color\"===t&&void 0===this.getPaintProperty(\"fill-outline-color\")?a.prototype.getPaintValueStopZoomLevels.call(this,\"fill-color\"):a.prototype.getPaintValueStopZoomLevels.call(this,arguments)},getPaintInterpolationT:function(t,e){return\"fill-outline-color\"===t&&void 0===this.getPaintProperty(\"fill-outline-color\")?a.prototype.getPaintInterpolationT.call(this,\"fill-color\",e):a.prototype.getPaintInterpolationT.call(this,t,e)},isPaintValueFeatureConstant:function(t){return\"fill-outline-color\"===t&&void 0===this.getPaintProperty(\"fill-outline-color\")?a.prototype.isPaintValueFeatureConstant.call(this,\"fill-color\"):a.prototype.isPaintValueFeatureConstant.call(this,t)},isPaintValueZoomConstant:function(t){return\"fill-outline-color\"===t&&void 0===this.getPaintProperty(\"fill-outline-color\")?a.prototype.isPaintValueZoomConstant.call(this,\"fill-color\"):a.prototype.isPaintValueZoomConstant.call(this,t)}}),e.exports=n},{\"../../util/util\":442,\"../style_layer\":381}],385:[function(t,e,r){\"use strict\";function n(){a.apply(this,arguments)}var i=t(\"../../util/util\"),a=t(\"../style_layer\");e.exports=n,n.prototype=i.inherit(a,{getPaintValue:function(t,e,r){var n=a.prototype.getPaintValue.apply(this,arguments);if(n&&\"line-dasharray\"===t){var i=Math.floor(e.zoom);this._flooredZoom!==i&&(this._flooredZoom=i,this._flooredLineWidth=this.getPaintValue(\"line-width\",e,r)),n.fromScale*=this._flooredLineWidth,n.toScale*=this._flooredLineWidth}return n}})},{\"../../util/util\":442,\"../style_layer\":381}],386:[function(t,e,r){\"use strict\";function n(){a.apply(this,arguments)}var i=t(\"../../util/util\"),a=t(\"../style_layer\");e.exports=n,n.prototype=i.inherit(a,{})},{\"../../util/util\":442,\"../style_layer\":381}],387:[function(t,e,r){\"use strict\";function n(){a.apply(this,arguments)}var i=t(\"../../util/util\"),a=t(\"../style_layer\");e.exports=n,n.prototype=i.inherit(a,{isHidden:function(){if(a.prototype.isHidden.apply(this,arguments))return!0;var t=0===this.paint[\"text-opacity\"]||!this.layout[\"text-field\"],e=0===this.paint[\"icon-opacity\"]||!this.layout[\"icon-image\"];return!(!t||!e)},getLayoutValue:function(t,e,r){return(\"text-rotation-alignment\"!==t||\"line\"!==this.getLayoutValue(\"symbol-placement\",e,r)||this.getLayoutProperty(\"text-rotation-alignment\"))&&(\"icon-rotation-alignment\"!==t||\"line\"!==this.getLayoutValue(\"symbol-placement\",e,r)||this.getLayoutProperty(\"icon-rotation-alignment\"))?\"text-pitch-alignment\"!==t||this.getLayoutProperty(\"text-pitch-alignment\")?a.prototype.getLayoutValue.apply(this,arguments):this.getLayoutValue(\"text-rotation-alignment\"):\"map\"}})},{\"../../util/util\":442,\"../style_layer\":381}],388:[function(t,e,r){\"use strict\";e.exports=t(\"mapbox-gl-style-spec/reference/latest.min\")},{\"mapbox-gl-style-spec/reference/latest.min\":325}],389:[function(t,e,r){\"use strict\";function n(t,e,r,n){this.declaration=e,this.startTime=this.endTime=(new Date).getTime(),\"piecewise-constant\"===t.function&&t.transition?this.interp=i:this.interp=o[t.type],this.oldTransition=r,this.duration=n.duration||0,this.delay=n.delay||0,this.instant()||(this.endTime=this.startTime+this.duration+this.delay,this.ease=a.easeCubicInOut),r&&r.endTime<=this.startTime&&delete r.oldTransition}function i(t,e,r){return void 0===(t&&t.to)||void 0===(e&&e.to)?void 0:{from:t.to,fromScale:t.toScale,to:e.to,toScale:e.toScale,t:r}}var a=t(\"../util/util\"),o=t(\"../util/interpolate\");e.exports=n,n.prototype.instant=function(){return!this.oldTransition||!this.interp||0===this.duration&&0===this.delay},n.prototype.calculate=function(t,e){var r=this.declaration.calculate(a.extend({},t,{duration:this.duration}),e);if(this.instant())return r;var n=t.time||Date.now();if(n<this.endTime){var i=this.oldTransition.calculate(a.extend({},t,{time:this.startTime}),e),o=this.ease((n-this.startTime-this.delay)/this.duration);r=this.interp(i,r,o)}return r}},{\"../util/interpolate\":436,\"../util/util\":442}],390:[function(t,e,r){\"use strict\";e.exports=t(\"mapbox-gl-style-spec/lib/validate_style.min\"),e.exports.emitErrors=function(t,e){if(e&&e.length){for(var r=0;r<e.length;r++)t.fire(\"error\",{error:new Error(e[r].message)});return!0}return!1},e.exports.throwErrors=function(t,e){if(e)for(var r=0;r<e.length;r++)throw new Error(e[r].message)}},{\"mapbox-gl-style-spec/lib/validate_style.min\":324}],391:[function(t,e,r){\"use strict\";function n(t,e,r,n){this.x=t,this.y=e,this.angle=r,void 0!==n&&(this.segment=n)}var i=t(\"point-geometry\");e.exports=n,n.prototype=Object.create(i.prototype),n.prototype.clone=function(){return new n(this.x,this.y,this.angle,this.segment)}},{\"point-geometry\":484}],392:[function(t,e,r){\"use strict\";function n(t,e,r,n,i){if(void 0===e.segment)return!0;for(var a=e,o=e.segment+1,s=0;s>-r/2;){if(--o<0)return!1;s-=t[o].dist(a),a=t[o]}s+=t[o].dist(t[o+1]),o++;for(var l=[],u=0;s<r/2;){var c=t[o-1],h=t[o],f=t[o+1];if(!f)return!1;var d=c.angleTo(h)-h.angleTo(f);for(d=Math.abs((d+3*Math.PI)%(2*Math.PI)-Math.PI),l.push({distance:s,angleDelta:d}),u+=d;s-l[0].distance>n;)u-=l.shift().angleDelta;if(u>i)return!1;o++,s+=h.dist(f)}return!0}e.exports=n},{}],393:[function(t,e,r){\"use strict\";function n(t,e,r,n,a){for(var o=[],s=0;s<t.length;s++)for(var l,u=t[s],c=0;c<u.length-1;c++){var h=u[c],f=u[c+1];h.x<e&&f.x<e||(h.x<e?h=new i(e,h.y+(f.y-h.y)*((e-h.x)/(f.x-h.x)))._round():f.x<e&&(f=new i(e,h.y+(f.y-h.y)*((e-h.x)/(f.x-h.x)))._round()),h.y<r&&f.y<r||(h.y<r?h=new i(h.x+(f.x-h.x)*((r-h.y)/(f.y-h.y)),r)._round():f.y<r&&(f=new i(h.x+(f.x-h.x)*((r-h.y)/(f.y-h.y)),r)._round()),h.x>=n&&f.x>=n||(h.x>=n?h=new i(n,h.y+(f.y-h.y)*((n-h.x)/(f.x-h.x)))._round():f.x>=n&&(f=new i(n,h.y+(f.y-h.y)*((n-h.x)/(f.x-h.x)))._round()),h.y>=a&&f.y>=a||(h.y>=a?h=new i(h.x+(f.x-h.x)*((a-h.y)/(f.y-h.y)),a)._round():f.y>=a&&(f=new i(h.x+(f.x-h.x)*((a-h.y)/(f.y-h.y)),a)._round()),l&&h.equals(l[l.length-1])||(l=[h],o.push(l)),l.push(f)))))}return o}var i=t(\"point-geometry\");e.exports=n},{\"point-geometry\":484}],394:[function(t,e,r){\"use strict\";var n=t(\"../util/struct_array\"),i=t(\"../util/util\"),a=t(\"point-geometry\"),o=e.exports=new n({members:[{type:\"Int16\",name:\"anchorPointX\"},{type:\"Int16\",name:\"anchorPointY\"},{type:\"Int16\",name:\"x1\"},{type:\"Int16\",name:\"y1\"},{type:\"Int16\",name:\"x2\"},{type:\"Int16\",name:\"y2\"},{type:\"Float32\",name:\"maxScale\"},{type:\"Uint32\",name:\"featureIndex\"},{type:\"Uint16\",name:\"sourceLayerIndex\"},{type:\"Uint16\",name:\"bucketIndex\"},{type:\"Int16\",name:\"bbox0\"},{type:\"Int16\",name:\"bbox1\"},{type:\"Int16\",name:\"bbox2\"},{type:\"Int16\",name:\"bbox3\"},{type:\"Float32\",name:\"placementScale\"}]});i.extendAll(o.prototype.StructType.prototype,{get anchorPoint(){return new a(this.anchorPointX,this.anchorPointY)}})},{\"../util/struct_array\":440,\"../util/util\":442,\"point-geometry\":484}],395:[function(t,e,r){\"use strict\";function n(t,e,r,n,i,a,o,s,l,u,c){var h=o.top*s-l,f=o.bottom*s+l,d=o.left*s-l,p=o.right*s+l;if(this.boxStartIndex=t.length,u){var m=f-h,v=p-d;if(m>0)if(m=Math.max(10*s,m),c){var g=e[r.segment+1].sub(e[r.segment])._unit()._mult(v),y=[r.sub(g),r.add(g)];this._addLineCollisionBoxes(t,y,r,0,v,m,n,i,a)}else this._addLineCollisionBoxes(t,e,r,r.segment,v,m,n,i,a)}else t.emplaceBack(r.x,r.y,d,h,p,f,1/0,n,i,a,0,0,0,0,0);this.boxEndIndex=t.length}e.exports=n,n.prototype._addLineCollisionBoxes=function(t,e,r,n,i,a,o,s,l){var u=a/2,c=Math.floor(i/u),h=-a/2,f=this.boxes,d=r,p=n+1,m=h;do{if(--p<0)return f;m-=e[p].dist(d),d=e[p]}while(m>-i/2);for(var v=e[p].dist(e[p+1]),g=0;g<c;g++){for(var y=-i/2+g*u;m+v<y;){if(m+=v,++p+1>=e.length)return f;v=e[p].dist(e[p+1])}var b=y-m,x=e[p],_=e[p+1],w=_.sub(x)._unit()._mult(b)._add(x)._round(),M=Math.max(Math.abs(y-h)-u/2,0),k=i/2/M;t.emplaceBack(w.x,w.y,-a/2,-a/2,a/2,a/2,k,o,s,l,0,0,0,0,0)}return f}},{}],396:[function(t,e,r){\"use strict\";function n(t,e,r){if(\"object\"==typeof t){var n=t;r=e,t=n.angle,e=n.pitch,this.grid=new o(n.grid),this.ignoredGrid=new o(n.ignoredGrid)}else this.grid=new o(a,12,6),this.ignoredGrid=new o(a,12,0);this.angle=t,this.pitch=e;var i=Math.sin(t),s=Math.cos(t);if(this.rotationMatrix=[s,-i,i,s],this.reverseRotationMatrix=[s,i,-i,s],this.yStretch=1/Math.cos(e/180*Math.PI),this.yStretch=Math.pow(this.yStretch,1.3),this.collisionBoxArray=r,0===r.length){r.emplaceBack();r.emplaceBack(0,0,0,-32767,0,32767,32767,0,0,0,0,0,0,0,0,0),r.emplaceBack(a,0,0,-32767,0,32767,32767,0,0,0,0,0,0,0,0,0),r.emplaceBack(0,0,-32767,0,32767,0,32767,0,0,0,0,0,0,0,0,0),r.emplaceBack(0,a,-32767,0,32767,0,32767,0,0,0,0,0,0,0,0,0)}this.tempCollisionBox=r.get(0),this.edges=[r.get(1),r.get(2),r.get(3),r.get(4)]}var i=t(\"point-geometry\"),a=t(\"../data/bucket\").EXTENT,o=t(\"grid-index\");e.exports=n,n.prototype.serialize=function(){var t={angle:this.angle,pitch:this.pitch,grid:this.grid.toArrayBuffer(),ignoredGrid:this.ignoredGrid.toArrayBuffer()};return{data:t,transferables:[t.grid,t.ignoredGrid]}},n.prototype.minScale=.25,n.prototype.maxScale=2,n.prototype.placeCollisionFeature=function(t,e,r){for(var n=this.collisionBoxArray,a=this.minScale,o=this.rotationMatrix,s=this.yStretch,l=t.boxStartIndex;l<t.boxEndIndex;l++){var u=n.get(l),c=u.anchorPoint._matMult(o),h=c.x,f=c.y,d=h+u.x1,p=f+u.y1*s,m=h+u.x2,v=f+u.y2*s;if(u.bbox0=d,u.bbox1=p,u.bbox2=m,u.bbox3=v,!e)for(var g=this.grid.query(d,p,m,v),y=0;y<g.length;y++){var b=n.get(g[y]),x=b.anchorPoint._matMult(o);if((a=this.getPlacementScale(a,c,u,x,b))>=this.maxScale)return a}if(r){var _;if(this.angle){var w=this.reverseRotationMatrix,M=new i(u.x1,u.y1).matMult(w),k=new i(u.x2,u.y1).matMult(w),A=new i(u.x1,u.y2).matMult(w),T=new i(u.x2,u.y2).matMult(w);_=this.tempCollisionBox,_.anchorPointX=u.anchorPoint.x,_.anchorPointY=u.anchorPoint.y,_.x1=Math.min(M.x,k.x,A.x,T.x),_.y1=Math.min(M.y,k.x,A.x,T.x),_.x2=Math.max(M.x,k.x,A.x,T.x),_.y2=Math.max(M.y,k.x,A.x,T.x),_.maxScale=u.maxScale}else _=u;for(var S=0;S<this.edges.length;S++){var E=this.edges[S];if((a=this.getPlacementScale(a,u.anchorPoint,_,E.anchorPoint,E))>=this.maxScale)return a}}}return a},n.prototype.queryRenderedSymbols=function(t,e,r,n,a){var o={},s=[],l=this.collisionBoxArray,u=this.rotationMatrix,c=new i(t,e)._matMult(u),h=this.tempCollisionBox;h.anchorX=c.x,h.anchorY=c.y,h.x1=0,h.y1=0,h.x2=r-t,h.y2=n-e,h.maxScale=a,a=h.maxScale;for(var f=[c.x+h.x1/a,c.y+h.y1/a*this.yStretch,c.x+h.x2/a,c.y+h.y2/a*this.yStretch],d=this.grid.query(f[0],f[1],f[2],f[3]),p=this.ignoredGrid.query(f[0],f[1],f[2],f[3]),m=0;m<p.length;m++)d.push(p[m]);for(var v=0;v<d.length;v++){var g=l.get(d[v]),y=g.sourceLayerIndex,b=g.featureIndex;if(void 0===o[y]&&(o[y]={}),!o[y][b]){var x=g.anchorPoint.matMult(u);this.getPlacementScale(this.minScale,c,h,x,g)>=a&&(o[y][b]=!0,s.push(d[v]))}}return s},n.prototype.getPlacementScale=function(t,e,r,n,i){var a=e.x-n.x,o=e.y-n.y,s=(i.x1-r.x2)/a,l=(i.x2-r.x1)/a,u=(i.y1-r.y2)*this.yStretch/o,c=(i.y2-r.y1)*this.yStretch/o;(isNaN(s)||isNaN(l))&&(s=l=1),(isNaN(u)||isNaN(c))&&(u=c=1);var h=Math.min(Math.max(s,l),Math.max(u,c)),f=i.maxScale,d=r.maxScale;return h>f&&(h=f),h>d&&(h=d),h>t&&h>=i.placementScale&&(t=h),t},n.prototype.insertCollisionFeature=function(t,e,r){for(var n=r?this.ignoredGrid:this.grid,i=this.collisionBoxArray,a=t.boxStartIndex;a<t.boxEndIndex;a++){var o=i.get(a);o.placementScale=e,e<this.maxScale&&n.insert(a,o.bbox0,o.bbox1,o.bbox2,o.bbox3)}}},{\"../data/bucket\":329,\"grid-index\":287,\"point-geometry\":484}],397:[function(t,e,r){\"use strict\";function n(t,e,r,n,a,o,s,l,u){var c=n?.6*o*s:0,h=Math.max(n?n.right-n.left:0,a?a.right-a.left:0),f=0===t[0].x||t[0].x===u||0===t[0].y||t[0].y===u;e-h*s<e/4&&(e=h*s+e/4);var d=2*o;return i(t,f?e/2*l%e:(h/2+d)*s*l%e,e,c,r,h*s,f,!1,u)}function i(t,e,r,n,l,u,c,h,f){for(var d=u/2,p=0,m=0;m<t.length-1;m++)p+=t[m].dist(t[m+1]);for(var v=0,g=e-r,y=[],b=0;b<t.length-1;b++){for(var x=t[b],_=t[b+1],w=x.dist(_),M=_.angleTo(x);g+r<v+w;){g+=r;var k=(g-v)/w,A=a(x.x,_.x,k),T=a(x.y,_.y,k);if(A>=0&&A<f&&T>=0&&T<f&&g-d>=0&&g+d<=p){var S=new o(A,T,M,b)._round();n&&!s(t,S,u,n,l)||y.push(S)}}v+=w}return h||y.length||c||(y=i(t,v/2,r,n,l,u,c,!0,f)),y}var a=t(\"../util/interpolate\"),o=t(\"../symbol/anchor\"),s=t(\"./check_max_angle\");e.exports=n},{\"../symbol/anchor\":391,\"../util/interpolate\":436,\"./check_max_angle\":392}],398:[function(t,e,r){\"use strict\";function n(){this.width=o,this.height=o,this.bin=new i(this.width,this.height),this.index={},this.ids={},this.data=new Uint8Array(this.width*this.height)}var i=t(\"shelf-pack\"),a=t(\"../util/util\"),o=128;e.exports=n,n.prototype.getGlyphs=function(){var t,e,r,n={};for(var i in this.ids)t=i.split(\"#\"),e=t[0],r=t[1],n[e]||(n[e]=[]),n[e].push(r);return n},n.prototype.getRects=function(){var t,e,r,n={};for(var i in this.ids)t=i.split(\"#\"),e=t[0],r=t[1],n[e]||(n[e]={}),n[e][r]=this.index[i];return n},n.prototype.addGlyph=function(t,e,r,n){if(!r)return null;var i=e+\"#\"+r.id;if(this.index[i])return this.ids[i].indexOf(t)<0&&this.ids[i].push(t),this.index[i];if(!r.bitmap)return null;var o=r.width+2*n,s=r.height+2*n,l=o+2,u=s+2;l+=4-l%4,u+=4-u%4;var c=this.bin.packOne(l,u);if(c||(this.resize(),c=this.bin.packOne(l,u)),!c)return a.warnOnce(\"glyph bitmap overflow\"),null;this.index[i]=c,this.ids[i]=[t];for(var h=this.data,f=r.bitmap,d=0;d<s;d++)for(var p=this.width*(c.y+d+1)+c.x+1,m=o*d,v=0;v<o;v++)h[p+v]=f[m+v];return this.dirty=!0,c},n.prototype.resize=function(){var t=this.width,e=this.height;if(!(t>=2048||e>=2048)){this.texture&&(this.gl&&this.gl.deleteTexture(this.texture),this.texture=null),this.width*=4,this.height*=4,this.bin.resize(this.width,this.height);for(var r=new ArrayBuffer(this.width*this.height),n=0;n<e;n++){var i=new Uint8Array(this.data.buffer,e*n,t);new Uint8Array(r,e*n*4,t).set(i)}this.data=new Uint8Array(r)}},n.prototype.bind=function(t){this.gl=t,this.texture?t.bindTexture(t.TEXTURE_2D,this.texture):(this.texture=t.createTexture(),t.bindTexture(t.TEXTURE_2D,this.texture),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),t.texImage2D(t.TEXTURE_2D,0,t.ALPHA,this.width,this.height,0,t.ALPHA,t.UNSIGNED_BYTE,null))},n.prototype.updateTexture=function(t){this.bind(t),this.dirty&&(t.texSubImage2D(t.TEXTURE_2D,0,0,0,this.width,this.height,t.ALPHA,t.UNSIGNED_BYTE,this.data),this.dirty=!1)}},{\"../util/util\":442,\"shelf-pack\":514}],399:[function(t,e,r){\"use strict\";function n(t){this.url=t&&o(t),this.atlases={},this.stacks={},this.loading={}}function i(t,e,r){this.advance=t.advance,this.left=t.left-r-1,this.top=t.top+r+1,this.rect=e}function a(t,e,r,n){return n=n||\"abc\",r.replace(\"{s}\",n[t.length%n.length]).replace(\"{fontstack}\",t).replace(\"{range}\",e)}var o=t(\"../util/mapbox\").normalizeGlyphsURL,s=t(\"../util/ajax\").getArrayBuffer,l=t(\"../util/glyphs\"),u=t(\"../symbol/glyph_atlas\"),c=t(\"pbf\");e.exports=n,n.prototype.getSimpleGlyphs=function(t,e,r,n){void 0===this.stacks[t]&&(this.stacks[t]={}),void 0===this.atlases[t]&&(this.atlases[t]=new u);for(var a,o={},s=this.stacks[t],l=this.atlases[t],c={},h=0,f=0;f<e.length;f++){var d=e[f];if(a=Math.floor(d/256),s[a]){var p=s[a].glyphs[d],m=l.addGlyph(r,t,p,3);p&&(o[d]=new i(p,m,3))}else void 0===c[a]&&(c[a]=[],h++),c[a].push(d)}h||n(void 0,o,t);var v=function(e,a,s){if(!e)for(var u=this.stacks[t][a]=s.stacks[0],f=0;f<c[a].length;f++){var d=c[a][f],p=u.glyphs[d],m=l.addGlyph(r,t,p,3);p&&(o[d]=new i(p,m,3))}--h||n(void 0,o,t)}.bind(this);for(var g in c)this.loadRange(t,g,v)},n.prototype.loadRange=function(t,e,r){if(256*e>65535)return r(\"glyphs > 65535 not supported\");void 0===this.loading[t]&&(this.loading[t]={});var n=this.loading[t];if(n[e])n[e].push(r);else{n[e]=[r];var i=256*e+\"-\"+(256*e+255),o=a(t,i,this.url);s(o,function(t,r){for(var i=!t&&new l(new c(new Uint8Array(r))),a=0;a<n[e].length;a++)n[e][a](t,e,i);delete n[e]})}},n.prototype.getGlyphAtlas=function(t){return this.atlases[t]}},{\"../symbol/glyph_atlas\":398,\"../util/ajax\":425,\"../util/glyphs\":435,\"../util/mapbox\":439,pbf:478}],400:[function(t,e,r){\"use strict\";e.exports=function(t,e,r){function n(n){c.push(t[n]),h.push(r[n]),f.push(e[n]),d++}function i(t,e,r){var n=u[t];return delete u[t],u[e]=n,h[n][0].pop(),h[n][0]=h[n][0].concat(r[0]),n}function a(t,e,r){var n=l[e];return delete l[e],l[t]=n,h[n][0].shift(),h[n][0]=r[0].concat(h[n][0]),n}function o(t,e,r){var n=r?e[0][e[0].length-1]:e[0][0];return t+\":\"+n.x+\":\"+n.y}var s,l={},u={},c=[],h=[],f=[],d=0;for(s=0;s<t.length;s++){var p=r[s],m=e[s];if(m){var v=o(m,p),g=o(m,p,!0);if(v in u&&g in l&&u[v]!==l[g]){var y=a(v,g,p),b=i(v,g,h[y]);delete l[v],delete u[g],u[o(m,h[b],!0)]=b,h[y]=null}else v in u?i(v,g,p):g in l?a(v,g,p):(n(s),l[v]=d-1,u[g]=d-1)}else n(s)}return{features:c,textFeatures:f,geometries:h}}},{}],401:[function(t,e,r){\"use strict\";function n(t,e,r,n,i,a,o,s,l,u){this.anchorPoint=t,this.tl=e,this.tr=r,this.bl=n,this.br=i,this.tex=a,this.anchorAngle=o,this.glyphAngle=s,this.minScale=l,this.maxScale=u}function i(t,e,r,i,a,o,u,c,h){var f,d,p,m,v=e.image.rect,g=a.layout,y=e.left-1,b=y+v.w/e.image.pixelRatio,x=e.top-1,_=x+v.h/e.image.pixelRatio;if(\"none\"!==g[\"icon-text-fit\"]&&u){var w=b-y,M=_-x,k=g[\"text-size\"]/24,A=u.left*k,T=u.right*k,S=u.top*k,E=u.bottom*k,L=T-A,C=E-S,I=g[\"icon-text-fit-padding\"][0],z=g[\"icon-text-fit-padding\"][1],D=g[\"icon-text-fit-padding\"][2],P=g[\"icon-text-fit-padding\"][3],O=\"width\"===g[\"icon-text-fit\"]?.5*(C-M):0,R=\"height\"===g[\"icon-text-fit\"]?.5*(L-w):0,F=\"width\"===g[\"icon-text-fit\"]||\"both\"===g[\"icon-text-fit\"]?L:w,j=\"height\"===g[\"icon-text-fit\"]||\"both\"===g[\"icon-text-fit\"]?C:M;f=new s(A+R-P,S+O-I),d=new s(A+R+z+F,S+O-I),p=new s(A+R+z+F,S+O+D+j),m=new s(A+R-P,S+O+D+j)}else f=new s(y,x),d=new s(b,x),p=new s(b,_),m=new s(y,_);var N=a.getLayoutValue(\"icon-rotate\",c,h)*Math.PI/180;if(o){var B=i[t.segment];if(t.y===B.y&&t.x===B.x&&t.segment+1<i.length){var U=i[t.segment+1];N+=Math.atan2(t.y-U.y,t.x-U.x)+Math.PI}else N+=Math.atan2(t.y-B.y,t.x-B.x)}if(N){var V=Math.sin(N),H=Math.cos(N),q=[H,-V,V,H];f=f.matMult(q),d=d.matMult(q),m=m.matMult(q),p=p.matMult(q)}return[new n(new s(t.x,t.y),f,d,m,p,e.image.rect,0,0,l,1/0)]}function a(t,e,r,i,a,u){for(var c=a.layout[\"text-rotate\"]*Math.PI/180,h=a.layout[\"text-keep-upright\"],f=e.positionedGlyphs,d=[],p=0;p<f.length;p++){var m=f[p],v=m.glyph,g=v.rect;if(g){var y,b=(m.x+v.advance/2)*r,x=l;u?(y=[],x=o(y,t,b,i,t.segment,!0),h&&(x=Math.min(x,o(y,t,b,i,t.segment,!1)))):y=[{anchorPoint:new s(t.x,t.y),offset:0,angle:0,maxScale:1/0,minScale:l}];for(var _=m.x+v.left,w=m.y-v.top,M=_+g.w,k=w+g.h,A=new s(_,w),T=new s(M,w),S=new s(_,k),E=new s(M,k),L=0;L<y.length;L++){var C=y[L],I=A,z=T,D=S,P=E;if(c){var O=Math.sin(c),R=Math.cos(c),F=[R,-O,O,R];I=I.matMult(F),z=z.matMult(F),D=D.matMult(F),P=P.matMult(F)}var j=Math.max(C.minScale,x),N=(t.angle+C.offset+2*Math.PI)%(2*Math.PI),B=(C.angle+C.offset+2*Math.PI)%(2*Math.PI);d.push(new n(C.anchorPoint,I,z,D,P,g,N,B,j,C.maxScale))}}}return d}function o(t,e,r,n,i,a){var o=!a;r<0&&(a=!a),a&&i++;var u=new s(e.x,e.y),c=n[i],h=1/0;r=Math.abs(r);for(var f=l;;){var d=u.dist(c),p=r/d,m=Math.atan2(c.y-u.y,c.x-u.x);if(a||(m+=Math.PI),t.push({anchorPoint:u,offset:o?Math.PI:0,minScale:p,maxScale:h,angle:(m+2*Math.PI)%(2*Math.PI)}),p<=f)break;for(u=c;u.equals(c);)if(i+=a?1:-1,!(c=n[i]))return p;var v=c.sub(u)._unit();u=u.sub(v._mult(d)),h=p}return f}var s=t(\"point-geometry\");e.exports={getIconQuads:i,getGlyphQuads:a,SymbolQuad:n};var l=.5},{\"point-geometry\":484}],402:[function(t,e,r){\"use strict\";function n(t,e,r){for(var n=[],a=0,o=t.length;a<o;a++){var s=i(t[a].properties,e[\"text-field\"]);if(s){s=s.toString();var l=e[\"text-transform\"];\"uppercase\"===l?s=s.toLocaleUpperCase():\"lowercase\"===l&&(s=s.toLocaleLowerCase());for(var u=0;u<s.length;u++)r[s.charCodeAt(u)]=!0;n[a]=s}else n[a]=null}return n}var i=t(\"../util/token\");e.exports=n},{\"../util/token\":441}],403:[function(t,e,r){\"use strict\";function n(t,e,r,n){this.codePoint=t,this.x=e,this.y=r,this.glyph=n}function i(t,e,r,n,i,a){this.positionedGlyphs=t,this.text=e,this.top=r,this.bottom=n,this.left=i,this.right=a}function a(t,e,r,a,s,l,u,c,h){for(var f=[],d=new i(f,t,h[1],h[1],h[0],h[0]),p=0,m=0;m<t.length;m++){var v=t.charCodeAt(m),g=e[v];g&&(f.push(new n(v,p,-17,g)),p+=g.advance+c)}return!!f.length&&(o(d,e,a,r,s,l,u,h),d)}function o(t,e,r,n,i,a,o,u){var c=null,d=0,p=0,m=0,v=0,g=t.positionedGlyphs;if(n)for(var y=0;y<g.length;y++){var b=g[y];if(b.x-=d,b.y+=r*m,b.x>n&&null!==c){var x=g[c+1].x;v=Math.max(x,v);for(var _=c+1;_<=y;_++)g[_].y+=r,g[_].x-=x;if(o){var w=c;h[g[c].codePoint]&&w--,s(g,e,p,w,o)}p=c+1,c=null,d+=x,m++}f[b.codePoint]&&(c=y)}var M=g[g.length-1],k=M.x+e[M.codePoint].advance;v=Math.max(v,k);var A=(m+1)*r;s(g,e,p,g.length-1,o),l(g,o,i,a,v,r,m,u),t.top+=-a*A,t.bottom=t.top+A,t.left+=-i*v,t.right=t.left+v}function s(t,e,r,n,i){for(var a=e[t[n].codePoint].advance,o=(t[n].x+a)*i,s=r;s<=n;s++)t[s].x-=o}\n", "function l(t,e,r,n,i,a,o,s){for(var l=(e-r)*i+s[0],u=(-n*(o+1)+.5)*a+s[1],c=0;c<t.length;c++)t[c].x+=l,t[c].y+=u}function u(t,e){if(!t||!t.rect)return null;var r=e[\"icon-offset\"][0],n=e[\"icon-offset\"][1],i=r-t.width/2,a=i+t.width,o=n-t.height/2;return new c(t,o,o+t.height,i,a)}function c(t,e,r,n,i){this.image=t,this.top=e,this.bottom=r,this.left=n,this.right=i}e.exports={shapeText:a,shapeIcon:u};var h={32:!0,8203:!0},f={32:!0,38:!0,43:!0,45:!0,47:!0,173:!0,183:!0,8203:!0,8208:!0,8211:!0}},{}],404:[function(t,e,r){\"use strict\";function n(t,e){this.width=t,this.height=e,this.bin=new o(t,e),this.images={},this.data=!1,this.texture=0,this.filter=0,this.pixelRatio=1,this.dirty=!0}function i(t,e,r,n,i,a,o,s,l,u,c){var h,f,d=n*e+r,p=s*a+o;if(c)for(p-=a,f=-1;f<=u;f++,d=((f+u)%u+n)*e+r,p+=a)for(h=-1;h<=l;h++)i[p+h]=t[d+(h+l)%l];else for(f=0;f<u;f++,d+=e,p+=a)for(h=0;h<l;h++)i[p+h]=t[d+h]}function a(t,e,r,n,i){this.rect=t,this.width=e,this.height=r,this.sdf=n,this.pixelRatio=i}var o=t(\"shelf-pack\"),s=t(\"../util/browser\"),l=t(\"../util/util\");e.exports=n,n.prototype.allocateImage=function(t,e){t/=this.pixelRatio,e/=this.pixelRatio;var r=t+2+(4-(t+2)%4),n=e+2+(4-(e+2)%4),i=this.bin.packOne(r,n);return i||(l.warnOnce(\"SpriteAtlas out of space.\"),null)},n.prototype.getImage=function(t,e){if(this.images[t])return this.images[t];if(!this.sprite)return null;var r=this.sprite.getSpritePosition(t);if(!r.width||!r.height)return null;var n=this.allocateImage(r.width,r.height);if(!n)return null;var i=new a(n,r.width/r.pixelRatio,r.height/r.pixelRatio,r.sdf,r.pixelRatio/this.pixelRatio);return this.images[t]=i,this.copy(n,r,e),i},n.prototype.getPosition=function(t,e){var r=this.getImage(t,e),n=r&&r.rect;if(!n)return null;var i=r.width*r.pixelRatio,a=r.height*r.pixelRatio;return{size:[r.width,r.height],tl:[(n.x+1)/this.width,(n.y+1)/this.height],br:[(n.x+1+i)/this.width,(n.y+1+a)/this.height]}},n.prototype.allocate=function(){if(!this.data){var t=Math.floor(this.width*this.pixelRatio),e=Math.floor(this.height*this.pixelRatio);this.data=new Uint32Array(t*e);for(var r=0;r<this.data.length;r++)this.data[r]=0}},n.prototype.copy=function(t,e,r){if(this.sprite.img.data){var n=new Uint32Array(this.sprite.img.data.buffer);this.allocate();var a=this.data;i(n,this.sprite.img.width,e.x,e.y,a,this.width*this.pixelRatio,(t.x+1)*this.pixelRatio,(t.y+1)*this.pixelRatio,e.width,e.height,r),this.dirty=!0}},n.prototype.setSprite=function(t){t&&(this.pixelRatio=s.devicePixelRatio>1?2:1,this.canvas&&(this.canvas.width=this.width*this.pixelRatio,this.canvas.height=this.height*this.pixelRatio)),this.sprite=t},n.prototype.addIcons=function(t,e){for(var r=0;r<t.length;r++)this.getImage(t[r]);e(null,this.images)},n.prototype.bind=function(t,e){var r=!1;this.texture?t.bindTexture(t.TEXTURE_2D,this.texture):(this.texture=t.createTexture(),t.bindTexture(t.TEXTURE_2D,this.texture),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),r=!0);var n=e?t.LINEAR:t.NEAREST;n!==this.filter&&(t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,n),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,n),this.filter=n),this.dirty&&(this.allocate(),r?t.texImage2D(t.TEXTURE_2D,0,t.RGBA,this.width*this.pixelRatio,this.height*this.pixelRatio,0,t.RGBA,t.UNSIGNED_BYTE,new Uint8Array(this.data.buffer)):t.texSubImage2D(t.TEXTURE_2D,0,0,0,this.width*this.pixelRatio,this.height*this.pixelRatio,t.RGBA,t.UNSIGNED_BYTE,new Uint8Array(this.data.buffer)),this.dirty=!1)}},{\"../util/browser\":426,\"../util/util\":442,\"shelf-pack\":514}],405:[function(t,e,r){\"use strict\";var n=t(\"../util/struct_array\"),i=t(\"../util/util\"),a=t(\"point-geometry\"),o=e.exports=new n({members:[{type:\"Uint16\",name:\"textBoxStartIndex\"},{type:\"Uint16\",name:\"textBoxEndIndex\"},{type:\"Uint16\",name:\"iconBoxStartIndex\"},{type:\"Uint16\",name:\"iconBoxEndIndex\"},{type:\"Uint16\",name:\"glyphQuadStartIndex\"},{type:\"Uint16\",name:\"glyphQuadEndIndex\"},{type:\"Uint16\",name:\"iconQuadStartIndex\"},{type:\"Uint16\",name:\"iconQuadEndIndex\"},{type:\"Int16\",name:\"anchorPointX\"},{type:\"Int16\",name:\"anchorPointY\"},{type:\"Int8\",name:\"index\"}]});i.extendAll(o.prototype.StructType.prototype,{get anchorPoint(){return new a(this.anchorPointX,this.anchorPointY)}})},{\"../util/struct_array\":440,\"../util/util\":442,\"point-geometry\":484}],406:[function(t,e,r){\"use strict\";var n=t(\"../util/struct_array\"),i=t(\"../util/util\"),a=t(\"point-geometry\"),o=t(\"./quads\").SymbolQuad,s=e.exports=new n({members:[{type:\"Int16\",name:\"anchorPointX\"},{type:\"Int16\",name:\"anchorPointY\"},{type:\"Float32\",name:\"tlX\"},{type:\"Float32\",name:\"tlY\"},{type:\"Float32\",name:\"trX\"},{type:\"Float32\",name:\"trY\"},{type:\"Float32\",name:\"blX\"},{type:\"Float32\",name:\"blY\"},{type:\"Float32\",name:\"brX\"},{type:\"Float32\",name:\"brY\"},{type:\"Int16\",name:\"texH\"},{type:\"Int16\",name:\"texW\"},{type:\"Int16\",name:\"texX\"},{type:\"Int16\",name:\"texY\"},{type:\"Float32\",name:\"anchorAngle\"},{type:\"Float32\",name:\"glyphAngle\"},{type:\"Float32\",name:\"maxScale\"},{type:\"Float32\",name:\"minScale\"}]});i.extendAll(s.prototype.StructType.prototype,{get anchorPoint(){return new a(this.anchorPointX,this.anchorPointY)},get SymbolQuad(){return new o(this.anchorPoint,new a(this.tlX,this.tlY),new a(this.trX,this.trY),new a(this.blX,this.blY),new a(this.brX,this.brY),{x:this.texX,y:this.texY,h:this.texH,w:this.texW,height:this.texH,width:this.texW},this.anchorAngle,this.glyphAngle,this.minScale,this.maxScale)}})},{\"../util/struct_array\":440,\"../util/util\":442,\"./quads\":401,\"point-geometry\":484}],407:[function(t,e,r){\"use strict\";var n=t(\"../util/dom\"),i=t(\"point-geometry\"),a={scrollZoom:t(\"./handler/scroll_zoom\"),boxZoom:t(\"./handler/box_zoom\"),dragRotate:t(\"./handler/drag_rotate\"),dragPan:t(\"./handler/drag_pan\"),keyboard:t(\"./handler/keyboard\"),doubleClickZoom:t(\"./handler/dblclick_zoom\"),touchZoomRotate:t(\"./handler/touch_zoom_rotate\")};e.exports=function(t,e){function r(t){g(\"mouseout\",t)}function o(e){t.stop(),_=n.mousePos(b,e),g(\"mousedown\",e)}function s(e){var r=t.dragRotate&&t.dragRotate.isActive();x&&!r&&g(\"contextmenu\",x),x=null,g(\"mouseup\",e)}function l(e){if(!(t.dragPan&&t.dragPan.isActive()||t.dragRotate&&t.dragRotate.isActive())){for(var r=e.toElement||e.target;r&&r!==b;)r=r.parentNode;r===b&&g(\"mousemove\",e)}}function u(e){t.stop(),y(\"touchstart\",e),!e.touches||e.touches.length>1||(w?(clearTimeout(w),w=null,g(\"dblclick\",e)):w=setTimeout(d,300))}function c(t){y(\"touchmove\",t)}function h(t){y(\"touchend\",t)}function f(t){y(\"touchcancel\",t)}function d(){w=null}function p(t){n.mousePos(b,t).equals(_)&&g(\"click\",t)}function m(t){g(\"dblclick\",t),t.preventDefault()}function v(t){x=t,t.preventDefault()}function g(e,r){var i=n.mousePos(b,r);return t.fire(e,{lngLat:t.unproject(i),point:i,originalEvent:r})}function y(e,r){var a=n.touchPos(b,r),o=a.reduce(function(t,e,r,n){return t.add(e.div(n.length))},new i(0,0));return t.fire(e,{lngLat:t.unproject(o),point:o,lngLats:a.map(function(e){return t.unproject(e)},this),points:a,originalEvent:r})}var b=t.getCanvasContainer(),x=null,_=null,w=null;for(var M in a)t[M]=new a[M](t,e),e.interactive&&e[M]&&t[M].enable();b.addEventListener(\"mouseout\",r,!1),b.addEventListener(\"mousedown\",o,!1),b.addEventListener(\"mouseup\",s,!1),b.addEventListener(\"mousemove\",l,!1),b.addEventListener(\"touchstart\",u,!1),b.addEventListener(\"touchend\",h,!1),b.addEventListener(\"touchmove\",c,!1),b.addEventListener(\"touchcancel\",f,!1),b.addEventListener(\"click\",p,!1),b.addEventListener(\"dblclick\",m,!1),b.addEventListener(\"contextmenu\",v,!1)}},{\"../util/dom\":428,\"./handler/box_zoom\":413,\"./handler/dblclick_zoom\":414,\"./handler/drag_pan\":415,\"./handler/drag_rotate\":416,\"./handler/keyboard\":417,\"./handler/scroll_zoom\":418,\"./handler/touch_zoom_rotate\":419,\"point-geometry\":484}],408:[function(t,e,r){\"use strict\";var n=t(\"../util/util\"),i=t(\"../util/interpolate\"),a=t(\"../util/browser\"),o=t(\"../geo/lng_lat\"),s=t(\"../geo/lng_lat_bounds\"),l=t(\"point-geometry\"),u=e.exports=function(){};n.extend(u.prototype,{getCenter:function(){return this.transform.center},setCenter:function(t,e){return this.jumpTo({center:t},e),this},panBy:function(t,e,r){return this.panTo(this.transform.center,n.extend({offset:l.convert(t).mult(-1)},e),r),this},panTo:function(t,e,r){return this.easeTo(n.extend({center:t},e),r)},getZoom:function(){return this.transform.zoom},setZoom:function(t,e){return this.jumpTo({zoom:t},e),this},zoomTo:function(t,e,r){return this.easeTo(n.extend({zoom:t},e),r)},zoomIn:function(t,e){return this.zoomTo(this.getZoom()+1,t,e),this},zoomOut:function(t,e){return this.zoomTo(this.getZoom()-1,t,e),this},getBearing:function(){return this.transform.bearing},setBearing:function(t,e){return this.jumpTo({bearing:t},e),this},rotateTo:function(t,e,r){return this.easeTo(n.extend({bearing:t},e),r)},resetNorth:function(t,e){return this.rotateTo(0,n.extend({duration:1e3},t),e),this},snapToNorth:function(t,e){return Math.abs(this.getBearing())<this._bearingSnap?this.resetNorth(t,e):this},getPitch:function(){return this.transform.pitch},setPitch:function(t,e){return this.jumpTo({pitch:t},e),this},fitBounds:function(t,e,r){e=n.extend({padding:0,offset:[0,0],maxZoom:1/0},e),t=s.convert(t);var i=l.convert(e.offset),a=this.transform,o=a.project(t.getNorthWest()),u=a.project(t.getSouthEast()),c=u.sub(o),h=(a.width-2*e.padding-2*Math.abs(i.x))/c.x,f=(a.height-2*e.padding-2*Math.abs(i.y))/c.y;return e.center=a.unproject(o.add(u).div(2)),e.zoom=Math.min(a.scaleZoom(a.scale*Math.min(h,f)),e.maxZoom),e.bearing=0,e.linear?this.easeTo(e,r):this.flyTo(e,r)},jumpTo:function(t,e){this.stop();var r=this.transform,n=!1,i=!1,a=!1;return\"zoom\"in t&&r.zoom!==+t.zoom&&(n=!0,r.zoom=+t.zoom),\"center\"in t&&(r.center=o.convert(t.center)),\"bearing\"in t&&r.bearing!==+t.bearing&&(i=!0,r.bearing=+t.bearing),\"pitch\"in t&&r.pitch!==+t.pitch&&(a=!0,r.pitch=+t.pitch),this.fire(\"movestart\",e).fire(\"move\",e),n&&this.fire(\"zoomstart\",e).fire(\"zoom\",e).fire(\"zoomend\",e),i&&this.fire(\"rotate\",e),a&&this.fire(\"pitch\",e),this.fire(\"moveend\",e)},easeTo:function(t,e){this.stop(),t=n.extend({offset:[0,0],duration:500,easing:n.ease},t);var r,a,s=this.transform,u=l.convert(t.offset),c=this.getZoom(),h=this.getBearing(),f=this.getPitch(),d=\"zoom\"in t?+t.zoom:c,p=\"bearing\"in t?this._normalizeBearing(t.bearing,h):h,m=\"pitch\"in t?+t.pitch:f;\"center\"in t?(r=o.convert(t.center),a=s.centerPoint.add(u)):\"around\"in t?(r=o.convert(t.around),a=s.locationPoint(r)):(a=s.centerPoint.add(u),r=s.pointLocation(a));var v=s.locationPoint(r);return!1===t.animate&&(t.duration=0),this.zooming=d!==c,this.rotating=h!==p,this.pitching=m!==f,t.noMoveStart||this.fire(\"movestart\",e),this.zooming&&this.fire(\"zoomstart\",e),clearTimeout(this._onEaseEnd),this._ease(function(t){this.zooming&&(s.zoom=i(c,d,t)),this.rotating&&(s.bearing=i(h,p,t)),this.pitching&&(s.pitch=i(f,m,t)),s.setLocationAtPoint(r,v.add(a.sub(v)._mult(t))),this.fire(\"move\",e),this.zooming&&this.fire(\"zoom\",e),this.rotating&&this.fire(\"rotate\",e),this.pitching&&this.fire(\"pitch\",e)},function(){t.delayEndEvents?this._onEaseEnd=setTimeout(this._easeToEnd.bind(this,e),t.delayEndEvents):this._easeToEnd(e)}.bind(this),t),this},_easeToEnd:function(t){var e=this.zooming;this.zooming=!1,this.rotating=!1,this.pitching=!1,e&&this.fire(\"zoomend\",t),this.fire(\"moveend\",t)},flyTo:function(t,e){function r(t){var e=(A*A-k*k+(t?-1:1)*L*L*T*T)/(2*(t?A:k)*L*T);return Math.log(Math.sqrt(e*e+1)-e)}function a(t){return(Math.exp(t)-Math.exp(-t))/2}function s(t){return(Math.exp(t)+Math.exp(-t))/2}function u(t){return a(t)/s(t)}this.stop(),t=n.extend({offset:[0,0],speed:1.2,curve:1.42,easing:n.ease},t);var c=this.transform,h=l.convert(t.offset),f=this.getZoom(),d=this.getBearing(),p=this.getPitch(),m=\"center\"in t?o.convert(t.center):this.getCenter(),v=\"zoom\"in t?+t.zoom:f,g=\"bearing\"in t?this._normalizeBearing(t.bearing,d):d,y=\"pitch\"in t?+t.pitch:p;Math.abs(c.center.lng)+Math.abs(m.lng)>180&&(c.center.lng>0&&m.lng<0?m.lng+=360:c.center.lng<0&&m.lng>0&&(m.lng-=360));var b=c.zoomScale(v-f),x=c.point,_=\"center\"in t?c.project(m).sub(h.div(b)):x,w=c.worldSize,M=t.curve,k=Math.max(c.width,c.height),A=k/b,T=_.sub(x).mag();if(\"minZoom\"in t){var S=n.clamp(Math.min(t.minZoom,f,v),c.minZoom,c.maxZoom),E=k/c.zoomScale(S-f);M=Math.sqrt(E/T*2)}var L=M*M,C=r(0),I=function(t){return s(C)/s(C+M*t)},z=function(t){return k*((s(C)*u(C+M*t)-a(C))/L)/T},D=(r(1)-C)/M;if(Math.abs(T)<1e-6){if(Math.abs(k-A)<1e-6)return this.easeTo(t);var P=A<k?-1:1;D=Math.abs(Math.log(A/k))/M,z=function(){return 0},I=function(t){return Math.exp(P*M*t)}}if(\"duration\"in t)t.duration=+t.duration;else{var O=\"screenSpeed\"in t?+t.screenSpeed/M:+t.speed;t.duration=1e3*D/O}return this.zooming=!0,d!==g&&(this.rotating=!0),p!==y&&(this.pitching=!0),this.fire(\"movestart\",e),this.fire(\"zoomstart\",e),this._ease(function(t){var r=t*D,n=z(r);c.zoom=f+c.scaleZoom(1/I(r)),c.center=c.unproject(x.add(_.sub(x).mult(n)),w),this.rotating&&(c.bearing=i(d,g,t)),this.pitching&&(c.pitch=i(p,y,t)),this.fire(\"move\",e),this.fire(\"zoom\",e),this.rotating&&this.fire(\"rotate\",e),this.pitching&&this.fire(\"pitch\",e)},function(){this.zooming=!1,this.rotating=!1,this.pitching=!1,this.fire(\"zoomend\",e),this.fire(\"moveend\",e)},t),this},isEasing:function(){return!!this._abortFn},stop:function(){return this._abortFn&&(this._abortFn(),this._finishEase()),this},_ease:function(t,e,r){this._finishFn=e,this._abortFn=a.timed(function(e){t.call(this,r.easing(e)),1===e&&this._finishEase()},!1===r.animate?0:r.duration,this)},_finishEase:function(){delete this._abortFn;var t=this._finishFn;delete this._finishFn,t.call(this)},_normalizeBearing:function(t,e){t=n.wrap(t,-180,180);var r=Math.abs(t-e);return Math.abs(t-360-e)<r&&(t-=360),Math.abs(t+360-e)<r&&(t+=360),t},_updateEasing:function(t,e,r){var i;if(this.ease){var a=this.ease,o=(Date.now()-a.start)/a.duration,s=a.easing(o+.01)-a.easing(o),l=.27/Math.sqrt(s*s+1e-4)*.01,u=Math.sqrt(.0729-l*l);i=n.bezier(l,u,.25,1)}else i=r?n.bezier.apply(n,r):n.ease;return this.ease={start:(new Date).getTime(),to:Math.pow(2,e),duration:t,easing:i},i}})},{\"../geo/lng_lat\":339,\"../geo/lng_lat_bounds\":340,\"../util/browser\":426,\"../util/interpolate\":436,\"../util/util\":442,\"point-geometry\":484}],409:[function(t,e,r){\"use strict\";function n(t){o.setOptions(this,t)}var i=t(\"./control\"),a=t(\"../../util/dom\"),o=t(\"../../util/util\");e.exports=n,n.createAttributionString=function(t){var e=[];for(var r in t){var n=t[r];n.attribution&&e.indexOf(n.attribution)<0&&e.push(n.attribution)}return e.sort(function(t,e){return t.length-e.length}),e=e.filter(function(t,r){for(var n=r+1;n<e.length;n++)if(e[n].indexOf(t)>=0)return!1;return!0}),e.join(\" | \")},n.prototype=o.inherit(i,{options:{position:\"bottom-right\"},onAdd:function(t){var e=this._container=a.create(\"div\",\"mapboxgl-ctrl-attrib\",t.getContainer());return this._update(),t.on(\"source.load\",this._update.bind(this)),t.on(\"source.change\",this._update.bind(this)),t.on(\"source.remove\",this._update.bind(this)),t.on(\"moveend\",this._updateEditLink.bind(this)),e},_update:function(){this._map.style&&(this._container.innerHTML=n.createAttributionString(this._map.style.sources)),this._editLink=this._container.getElementsByClassName(\"mapbox-improve-map\")[0],this._updateEditLink()},_updateEditLink:function(){if(this._editLink){var t=this._map.getCenter();this._editLink.href=\"https://www.mapbox.com/map-feedback/#/\"+t.lng+\"/\"+t.lat+\"/\"+Math.round(this._map.getZoom()+1)}}})},{\"../../util/dom\":428,\"../../util/util\":442,\"./control\":410}],410:[function(t,e,r){\"use strict\";function n(){}var i=t(\"../../util/util\"),a=t(\"../../util/evented\");e.exports=n,n.prototype={addTo:function(t){this._map=t;var e=this._container=this.onAdd(t);if(this.options&&this.options.position){var r=this.options.position,n=t._controlCorners[r];e.className+=\" mapboxgl-ctrl\",-1!==r.indexOf(\"bottom\")?n.insertBefore(e,n.firstChild):n.appendChild(e)}return this},remove:function(){return this._container.parentNode.removeChild(this._container),this.onRemove&&this.onRemove(this._map),this._map=null,this}},i.extend(n.prototype,a)},{\"../../util/evented\":434,\"../../util/util\":442}],411:[function(t,e,r){\"use strict\";function n(t){s.setOptions(this,t)}var i=t(\"./control\"),a=t(\"../../util/browser\"),o=t(\"../../util/dom\"),s=t(\"../../util/util\");e.exports=n;var l={enableHighAccuracy:!1,timeout:6e3};n.prototype=s.inherit(i,{options:{position:\"top-right\"},onAdd:function(t){var e=this._container=o.create(\"div\",\"mapboxgl-ctrl-group\",t.getContainer());return a.supportsGeolocation?(this._container.addEventListener(\"contextmenu\",this._onContextMenu.bind(this)),this._geolocateButton=o.create(\"button\",\"mapboxgl-ctrl-icon mapboxgl-ctrl-geolocate\",this._container),this._geolocateButton.type=\"button\",this._geolocateButton.addEventListener(\"click\",this._onClickGeolocate.bind(this)),e):e},_onContextMenu:function(t){t.preventDefault()},_onClickGeolocate:function(){navigator.geolocation.getCurrentPosition(this._success.bind(this),this._error.bind(this),l),this._timeoutId=setTimeout(this._finish.bind(this),1e4)},_success:function(t){this._map.jumpTo({center:[t.coords.longitude,t.coords.latitude],zoom:17,bearing:0,pitch:0}),this.fire(\"geolocate\",t),this._finish()},_error:function(t){this.fire(\"error\",t),this._finish()},_finish:function(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0}})},{\"../../util/browser\":426,\"../../util/dom\":428,\"../../util/util\":442,\"./control\":410}],412:[function(t,e,r){\"use strict\";function n(t){s.setOptions(this,t)}function i(t){return new MouseEvent(t.type,{button:2,buttons:2,bubbles:!0,cancelable:!0,detail:t.detail,view:t.view,screenX:t.screenX,screenY:t.screenY,clientX:t.clientX,clientY:t.clientY,movementX:t.movementX,movementY:t.movementY,ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,altKey:t.altKey,metaKey:t.metaKey})}var a=t(\"./control\"),o=t(\"../../util/dom\"),s=t(\"../../util/util\");e.exports=n,n.prototype=s.inherit(a,{options:{position:\"top-right\"},onAdd:function(t){var e=\"mapboxgl-ctrl\",r=this._container=o.create(\"div\",e+\"-group\",t.getContainer());return this._container.addEventListener(\"contextmenu\",this._onContextMenu.bind(this)),this._zoomInButton=this._createButton(e+\"-icon \"+e+\"-zoom-in\",t.zoomIn.bind(t)),this._zoomOutButton=this._createButton(e+\"-icon \"+e+\"-zoom-out\",t.zoomOut.bind(t)),this._compass=this._createButton(e+\"-icon \"+e+\"-compass\",t.resetNorth.bind(t)),this._compassArrow=o.create(\"div\",\"arrow\",this._compass),this._compass.addEventListener(\"mousedown\",this._onCompassDown.bind(this)),this._onCompassMove=this._onCompassMove.bind(this),this._onCompassUp=this._onCompassUp.bind(this),t.on(\"rotate\",this._rotateCompassArrow.bind(this)),this._rotateCompassArrow(),this._el=t.getCanvasContainer(),r},_onContextMenu:function(t){t.preventDefault()},_onCompassDown:function(t){0===t.button&&(o.disableDrag(),document.addEventListener(\"mousemove\",this._onCompassMove),document.addEventListener(\"mouseup\",this._onCompassUp),this._el.dispatchEvent(i(t)),t.stopPropagation())},_onCompassMove:function(t){0===t.button&&(this._el.dispatchEvent(i(t)),t.stopPropagation())},_onCompassUp:function(t){0===t.button&&(document.removeEventListener(\"mousemove\",this._onCompassMove),document.removeEventListener(\"mouseup\",this._onCompassUp),o.enableDrag(),this._el.dispatchEvent(i(t)),t.stopPropagation())},_createButton:function(t,e){var r=o.create(\"button\",t,this._container);return r.type=\"button\",r.addEventListener(\"click\",function(){e()}),r},_rotateCompassArrow:function(){var t=\"rotate(\"+this._map.transform.angle*(180/Math.PI)+\"deg)\";this._compassArrow.style.transform=t}})},{\"../../util/dom\":428,\"../../util/util\":442,\"./control\":410}],413:[function(t,e,r){\"use strict\";function n(t){this._map=t,this._el=t.getCanvasContainer(),this._container=t.getContainer(),o.bindHandlers(this)}var i=t(\"../../util/dom\"),a=t(\"../../geo/lng_lat_bounds\"),o=t(\"../../util/util\");e.exports=n,n.prototype={_enabled:!1,_active:!1,isEnabled:function(){return this._enabled},isActive:function(){return this._active},enable:function(){this.isEnabled()||(this._el.addEventListener(\"mousedown\",this._onMouseDown,!1),this._enabled=!0)},disable:function(){this.isEnabled()&&(this._el.removeEventListener(\"mousedown\",this._onMouseDown),this._enabled=!1)},_onMouseDown:function(t){t.shiftKey&&0===t.button&&(document.addEventListener(\"mousemove\",this._onMouseMove,!1),document.addEventListener(\"keydown\",this._onKeyDown,!1),document.addEventListener(\"mouseup\",this._onMouseUp,!1),i.disableDrag(),this._startPos=i.mousePos(this._el,t),this._active=!0)},_onMouseMove:function(t){var e=this._startPos,r=i.mousePos(this._el,t);this._box||(this._box=i.create(\"div\",\"mapboxgl-boxzoom\",this._container),this._container.classList.add(\"mapboxgl-crosshair\"),this._fireEvent(\"boxzoomstart\",t));var n=Math.min(e.x,r.x),a=Math.max(e.x,r.x),o=Math.min(e.y,r.y),s=Math.max(e.y,r.y);i.setTransform(this._box,\"translate(\"+n+\"px,\"+o+\"px)\"),this._box.style.width=a-n+\"px\",this._box.style.height=s-o+\"px\"},_onMouseUp:function(t){if(0===t.button){var e=this._startPos,r=i.mousePos(this._el,t),n=new a(this._map.unproject(e),this._map.unproject(r));this._finish(),e.x===r.x&&e.y===r.y?this._fireEvent(\"boxzoomcancel\",t):this._map.fitBounds(n,{linear:!0}).fire(\"boxzoomend\",{originalEvent:t,boxZoomBounds:n})}},_onKeyDown:function(t){27===t.keyCode&&(this._finish(),this._fireEvent(\"boxzoomcancel\",t))},_finish:function(){this._active=!1,document.removeEventListener(\"mousemove\",this._onMouseMove,!1),document.removeEventListener(\"keydown\",this._onKeyDown,!1),document.removeEventListener(\"mouseup\",this._onMouseUp,!1),this._container.classList.remove(\"mapboxgl-crosshair\"),this._box&&(this._box.parentNode.removeChild(this._box),this._box=null),i.enableDrag()},_fireEvent:function(t,e){return this._map.fire(t,{originalEvent:e})}}},{\"../../geo/lng_lat_bounds\":340,\"../../util/dom\":428,\"../../util/util\":442}],414:[function(t,e,r){\"use strict\";function n(t){this._map=t,this._onDblClick=this._onDblClick.bind(this)}e.exports=n,n.prototype={_enabled:!1,isEnabled:function(){return this._enabled},enable:function(){this.isEnabled()||(this._map.on(\"dblclick\",this._onDblClick),this._enabled=!0)},disable:function(){this.isEnabled()&&(this._map.off(\"dblclick\",this._onDblClick),this._enabled=!1)},_onDblClick:function(t){this._map.zoomTo(this._map.getZoom()+(t.originalEvent.shiftKey?-1:1),{around:t.lngLat},t)}}},{}],415:[function(t,e,r){\"use strict\";function n(t){this._map=t,this._el=t.getCanvasContainer(),a.bindHandlers(this)}var i=t(\"../../util/dom\"),a=t(\"../../util/util\");e.exports=n;var o=a.bezier(0,0,.3,1);n.prototype={_enabled:!1,_active:!1,isEnabled:function(){return this._enabled},isActive:function(){return this._active},enable:function(){this.isEnabled()||(this._el.addEventListener(\"mousedown\",this._onDown),this._el.addEventListener(\"touchstart\",this._onDown),this._enabled=!0)},disable:function(){this.isEnabled()&&(this._el.removeEventListener(\"mousedown\",this._onDown),this._el.removeEventListener(\"touchstart\",this._onDown),this._enabled=!1)},_onDown:function(t){this._ignoreEvent(t)||this.isActive()||(t.touches?(document.addEventListener(\"touchmove\",this._onMove),document.addEventListener(\"touchend\",this._onTouchEnd)):(document.addEventListener(\"mousemove\",this._onMove),document.addEventListener(\"mouseup\",this._onMouseUp)),this._active=!1,this._startPos=this._pos=i.mousePos(this._el,t),this._inertia=[[Date.now(),this._pos]])},_onMove:function(t){if(!this._ignoreEvent(t)){this.isActive()||(this._active=!0,this._fireEvent(\"dragstart\",t),this._fireEvent(\"movestart\",t));var e=i.mousePos(this._el,t),r=this._map;r.stop(),this._drainInertiaBuffer(),this._inertia.push([Date.now(),e]),r.transform.setLocationAtPoint(r.transform.pointLocation(this._pos),e),this._fireEvent(\"drag\",t),this._fireEvent(\"move\",t),this._pos=e,t.preventDefault()}},_onUp:function(t){if(this.isActive()){this._active=!1,this._fireEvent(\"dragend\",t),this._drainInertiaBuffer();var e=function(){this._fireEvent(\"moveend\",t)}.bind(this),r=this._inertia;if(r.length<2)return void e();var n=r[r.length-1],i=r[0],a=n[1].sub(i[1]),s=(n[0]-i[0])/1e3;if(0===s||n[1].equals(i[1]))return void e();var l=a.mult(.3/s),u=l.mag();u>1400&&(u=1400,l._unit()._mult(u));var c=u/750,h=l.mult(-c/2);this._map.panBy(h,{duration:1e3*c,easing:o,noMoveStart:!0},{originalEvent:t})}},_onMouseUp:function(t){this._ignoreEvent(t)||(this._onUp(t),document.removeEventListener(\"mousemove\",this._onMove),document.removeEventListener(\"mouseup\",this._onMouseUp))},_onTouchEnd:function(t){this._ignoreEvent(t)||(this._onUp(t),document.removeEventListener(\"touchmove\",this._onMove),document.removeEventListener(\"touchend\",this._onTouchEnd))},_fireEvent:function(t,e){return this._map.fire(t,{originalEvent:e})},_ignoreEvent:function(t){var e=this._map;if(e.boxZoom&&e.boxZoom.isActive())return!0;if(e.dragRotate&&e.dragRotate.isActive())return!0;if(t.touches)return t.touches.length>1;if(t.ctrlKey)return!0;return\"mousemove\"===t.type?!1&t.buttons:0!==t.button},_drainInertiaBuffer:function(){for(var t=this._inertia,e=Date.now();t.length>0&&e-t[0][0]>160;)t.shift()}}},{\"../../util/dom\":428,\"../../util/util\":442}],416:[function(t,e,r){\"use strict\";function n(t,e){this._map=t,this._el=t.getCanvasContainer(),this._bearingSnap=e.bearingSnap,o.bindHandlers(this)}var i=t(\"../../util/dom\"),a=t(\"point-geometry\"),o=t(\"../../util/util\");e.exports=n;var s=o.bezier(0,0,.25,1);n.prototype={_enabled:!1,_active:!1,isEnabled:function(){return this._enabled},isActive:function(){return this._active},enable:function(){this.isEnabled()||(this._el.addEventListener(\"mousedown\",this._onDown),this._enabled=!0)},disable:function(){this.isEnabled()&&(this._el.removeEventListener(\"mousedown\",this._onDown),this._enabled=!1)},_onDown:function(t){if(!this._ignoreEvent(t)&&!this.isActive()){document.addEventListener(\"mousemove\",this._onMove),document.addEventListener(\"mouseup\",this._onUp),this._active=!1,this._inertia=[[Date.now(),this._map.getBearing()]],this._startPos=this._pos=i.mousePos(this._el,t),this._center=this._map.transform.centerPoint;var e=this._startPos.sub(this._center);e.mag()<200&&(this._center=this._startPos.add(new a(-200,0)._rotate(e.angle()))),t.preventDefault()}},_onMove:function(t){if(!this._ignoreEvent(t)){this.isActive()||(this._active=!0,this._fireEvent(\"rotatestart\",t),this._fireEvent(\"movestart\",t));var e=this._map;e.stop();var r=this._pos,n=i.mousePos(this._el,t),a=this._center,o=r.sub(a).angleWith(n.sub(a))/Math.PI*180,s=e.getBearing()-o,l=this._inertia,u=l[l.length-1];this._drainInertiaBuffer(),l.push([Date.now(),e._normalizeBearing(s,u[1])]),e.transform.bearing=s,this._fireEvent(\"rotate\",t),this._fireEvent(\"move\",t),this._pos=n}},_onUp:function(t){if(!this._ignoreEvent(t)&&(document.removeEventListener(\"mousemove\",this._onMove),document.removeEventListener(\"mouseup\",this._onUp),this.isActive())){this._active=!1,this._fireEvent(\"rotateend\",t),this._drainInertiaBuffer();var e=this._map,r=e.getBearing(),n=this._inertia,i=function(){Math.abs(r)<this._bearingSnap?e.resetNorth({noMoveStart:!0},{originalEvent:t}):this._fireEvent(\"moveend\",t)}.bind(this);if(n.length<2)return void i();var a=n[0],o=n[n.length-1],l=n[n.length-2],u=e._normalizeBearing(r,l[1]),c=o[1]-a[1],h=c<0?-1:1,f=(o[0]-a[0])/1e3;if(0===c||0===f)return void i();var d=Math.abs(c*(.25/f));d>180&&(d=180);var p=d/180;u+=h*d*(p/2),Math.abs(e._normalizeBearing(u,0))<this._bearingSnap&&(u=e._normalizeBearing(0,u)),e.rotateTo(u,{duration:1e3*p,easing:s,noMoveStart:!0},{originalEvent:t})}},_fireEvent:function(t,e){return this._map.fire(t,{originalEvent:e})},_ignoreEvent:function(t){var e=this._map;if(e.boxZoom&&e.boxZoom.isActive())return!0;if(e.dragPan&&e.dragPan.isActive())return!0;if(t.touches)return t.touches.length>1;var r=t.ctrlKey?1:2,n=t.ctrlKey?0:2;return\"mousemove\"===t.type?t.buttons&0===r:t.button!==n},_drainInertiaBuffer:function(){for(var t=this._inertia,e=Date.now();t.length>0&&e-t[0][0]>160;)t.shift()}}},{\"../../util/dom\":428,\"../../util/util\":442,\"point-geometry\":484}],417:[function(t,e,r){\"use strict\";function n(t){this._map=t,this._el=t.getCanvasContainer(),this._onKeyDown=this._onKeyDown.bind(this)}e.exports=n;n.prototype={_enabled:!1,isEnabled:function(){return this._enabled},enable:function(){this.isEnabled()||(this._el.addEventListener(\"keydown\",this._onKeyDown,!1),this._enabled=!0)},disable:function(){this.isEnabled()&&(this._el.removeEventListener(\"keydown\",this._onKeyDown),this._enabled=!1)},_onKeyDown:function(t){if(!(t.altKey||t.ctrlKey||t.metaKey)){var e=this._map,r={originalEvent:t};if(!e.isEasing())switch(t.keyCode){case 61:case 107:case 171:case 187:e.zoomTo(Math.round(e.getZoom())+(t.shiftKey?2:1),r);break;case 189:case 109:case 173:e.zoomTo(Math.round(e.getZoom())-(t.shiftKey?2:1),r);break;case 37:t.shiftKey?e.easeTo({bearing:e.getBearing()-2},r):(t.preventDefault(),e.panBy([-80,0],r));break;case 39:t.shiftKey?e.easeTo({bearing:e.getBearing()+2},r):(t.preventDefault(),e.panBy([80,0],r));break;case 38:t.shiftKey?e.easeTo({pitch:e.getPitch()+5},r):(t.preventDefault(),e.panBy([0,-80],r));break;case 40:t.shiftKey?e.easeTo({pitch:Math.max(e.getPitch()-5,0)},r):(t.preventDefault(),e.panBy([0,80],r))}}}}},{}],418:[function(t,e,r){\"use strict\";function n(t){this._map=t,this._el=t.getCanvasContainer(),o.bindHandlers(this)}var i=t(\"../../util/dom\"),a=t(\"../../util/browser\"),o=t(\"../../util/util\");e.exports=n;var s=\"undefined\"!=typeof navigator?navigator.userAgent.toLowerCase():\"\",l=-1!==s.indexOf(\"firefox\"),u=-1!==s.indexOf(\"safari\")&&-1===s.indexOf(\"chrom\");n.prototype={_enabled:!1,isEnabled:function(){return this._enabled},enable:function(){this.isEnabled()||(this._el.addEventListener(\"wheel\",this._onWheel,!1),this._el.addEventListener(\"mousewheel\",this._onWheel,!1),this._enabled=!0)},disable:function(){this.isEnabled()&&(this._el.removeEventListener(\"wheel\",this._onWheel),this._el.removeEventListener(\"mousewheel\",this._onWheel),this._enabled=!1)},_onWheel:function(t){var e;\"wheel\"===t.type?(e=t.deltaY,l&&t.deltaMode===window.WheelEvent.DOM_DELTA_PIXEL&&(e/=a.devicePixelRatio),t.deltaMode===window.WheelEvent.DOM_DELTA_LINE&&(e*=40)):\"mousewheel\"===t.type&&(e=-t.wheelDeltaY,u&&(e/=3));var r=a.now(),n=r-(this._time||0);this._pos=i.mousePos(this._el,t),this._time=r,0!==e&&e%4.000244140625==0?(this._type=\"wheel\",e=Math.floor(e/4)):0!==e&&Math.abs(e)<4?this._type=\"trackpad\":n>400?(this._type=null,this._lastValue=e,this._timeout=setTimeout(this._onTimeout,40)):this._type||(this._type=Math.abs(n*e)<200?\"trackpad\":\"wheel\",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,e+=this._lastValue)),t.shiftKey&&e&&(e/=4),this._type&&this._zoom(-e,t),t.preventDefault()},_onTimeout:function(){this._type=\"wheel\",this._zoom(-this._lastValue)},_zoom:function(t,e){if(0!==t){var r=this._map,n=2/(1+Math.exp(-Math.abs(t/100)));t<0&&0!==n&&(n=1/n);var i=r.ease?r.ease.to:r.transform.scale,a=r.transform.scaleZoom(i*n);r.zoomTo(a,{duration:0,around:r.unproject(this._pos),delayEndEvents:200},{originalEvent:e})}}}},{\"../../util/browser\":426,\"../../util/dom\":428,\"../../util/util\":442}],419:[function(t,e,r){\"use strict\";function n(t){this._map=t,this._el=t.getCanvasContainer(),a.bindHandlers(this)}var i=t(\"../../util/dom\"),a=t(\"../../util/util\");e.exports=n;var o=a.bezier(0,0,.15,1);n.prototype={_enabled:!1,isEnabled:function(){return this._enabled},enable:function(){this.isEnabled()||(this._el.addEventListener(\"touchstart\",this._onStart,!1),this._enabled=!0)},disable:function(){this.isEnabled()&&(this._el.removeEventListener(\"touchstart\",this._onStart),this._enabled=!1)},disableRotation:function(){this._rotationDisabled=!0},enableRotation:function(){this._rotationDisabled=!1},_onStart:function(t){if(2===t.touches.length){var e=i.mousePos(this._el,t.touches[0]),r=i.mousePos(this._el,t.touches[1]);this._startVec=e.sub(r),this._startScale=this._map.transform.scale,this._startBearing=this._map.transform.bearing,this._gestureIntent=void 0,this._inertia=[],\n", "document.addEventListener(\"touchmove\",this._onMove,!1),document.addEventListener(\"touchend\",this._onEnd,!1)}},_onMove:function(t){if(2===t.touches.length){var e=i.mousePos(this._el,t.touches[0]),r=i.mousePos(this._el,t.touches[1]),n=e.add(r).div(2),a=e.sub(r),o=a.mag()/this._startVec.mag(),s=this._rotationDisabled?0:180*a.angleWith(this._startVec)/Math.PI,l=this._map;if(this._gestureIntent){var u={duration:0,around:l.unproject(n)};\"rotate\"===this._gestureIntent&&(u.bearing=this._startBearing+s),\"zoom\"!==this._gestureIntent&&\"rotate\"!==this._gestureIntent||(u.zoom=l.transform.scaleZoom(this._startScale*o)),l.stop(),this._drainInertiaBuffer(),this._inertia.push([Date.now(),o,n]),l.easeTo(u,{originalEvent:t})}else{var c=Math.abs(1-o)>.15;Math.abs(s)>4?this._gestureIntent=\"rotate\":c&&(this._gestureIntent=\"zoom\"),this._gestureIntent&&(this._startVec=a,this._startScale=l.transform.scale,this._startBearing=l.transform.bearing)}t.preventDefault()}},_onEnd:function(t){document.removeEventListener(\"touchmove\",this._onMove),document.removeEventListener(\"touchend\",this._onEnd),this._drainInertiaBuffer();var e=this._inertia,r=this._map;if(e.length<2)return void r.snapToNorth({},{originalEvent:t});var n=e[e.length-1],i=e[0],a=r.transform.scaleZoom(this._startScale*n[1]),s=r.transform.scaleZoom(this._startScale*i[1]),l=a-s,u=(n[0]-i[0])/1e3,c=n[2];if(0===u||a===s)return void r.snapToNorth({},{originalEvent:t});var h=.15*l/u;Math.abs(h)>2.5&&(h=h>0?2.5:-2.5);var f=1e3*Math.abs(h/(12*.15)),d=a+h*f/2e3;d<0&&(d=0),r.easeTo({zoom:d,duration:f,easing:o,around:r.unproject(c)},{originalEvent:t})},_drainInertiaBuffer:function(){for(var t=this._inertia,e=Date.now();t.length>2&&e-t[0][0]>160;)t.shift()}}},{\"../../util/dom\":428,\"../../util/util\":442}],420:[function(t,e,r){\"use strict\";function n(){i.bindAll([\"_onHashChange\",\"_updateHash\"],this)}e.exports=n;var i=t(\"../util/util\");n.prototype={addTo:function(t){return this._map=t,window.addEventListener(\"hashchange\",this._onHashChange,!1),this._map.on(\"moveend\",this._updateHash),this},remove:function(){return window.removeEventListener(\"hashchange\",this._onHashChange,!1),this._map.off(\"moveend\",this._updateHash),delete this._map,this},_onHashChange:function(){var t=location.hash.replace(\"#\",\"\").split(\"/\");return t.length>=3&&(this._map.jumpTo({center:[+t[2],+t[1]],zoom:+t[0],bearing:+(t[3]||0)}),!0)},_updateHash:function(){var t=this._map.getCenter(),e=this._map.getZoom(),r=this._map.getBearing(),n=Math.max(0,Math.ceil(Math.log(e)/Math.LN2)),i=\"#\"+Math.round(100*e)/100+\"/\"+t.lat.toFixed(n)+\"/\"+t.lng.toFixed(n)+(r?\"/\"+Math.round(10*r)/10:\"\");window.history.replaceState(\"\",\"\",i)}}},{\"../util/util\":442}],421:[function(t,e,r){\"use strict\";function n(t){t.parentNode&&t.parentNode.removeChild(t)}var i=t(\"../util/canvas\"),a=t(\"../util/util\"),o=t(\"../util/browser\"),s=t(\"../util/browser\").window,l=t(\"../util/evented\"),u=t(\"../util/dom\"),c=t(\"../style/style\"),h=t(\"../style/animation_loop\"),f=t(\"../render/painter\"),d=t(\"../geo/transform\"),p=t(\"./hash\"),m=t(\"./bind_handlers\"),v=t(\"./camera\"),g=t(\"../geo/lng_lat\"),y=t(\"../geo/lng_lat_bounds\"),b=t(\"point-geometry\"),x=t(\"./control/attribution\"),_={center:[0,0],zoom:0,bearing:0,pitch:0,minZoom:0,maxZoom:20,interactive:!0,scrollZoom:!0,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,bearingSnap:7,hash:!1,attributionControl:!0,failIfMajorPerformanceCaveat:!1,preserveDrawingBuffer:!1,trackResize:!0,workerCount:Math.max(o.hardwareConcurrency-1,1)},w=e.exports=function(t){if(t=a.extend({},_,t),t.workerCount<1)throw new Error(\"workerCount must an integer greater than or equal to 1.\");this._interactive=t.interactive,this._failIfMajorPerformanceCaveat=t.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=t.preserveDrawingBuffer,this._trackResize=t.trackResize,this._workerCount=t.workerCount,this._bearingSnap=t.bearingSnap,\"string\"==typeof t.container?this._container=document.getElementById(t.container):this._container=t.container,this.animationLoop=new h,this.transform=new d(t.minZoom,t.maxZoom),t.maxBounds&&this.setMaxBounds(t.maxBounds),a.bindAll([\"_forwardStyleEvent\",\"_forwardSourceEvent\",\"_forwardLayerEvent\",\"_forwardTileEvent\",\"_onStyleLoad\",\"_onStyleChange\",\"_onSourceAdd\",\"_onSourceRemove\",\"_onSourceUpdate\",\"_onWindowOnline\",\"_onWindowResize\",\"_update\",\"_render\"],this),this._setupContainer(),this._setupPainter(),this.on(\"move\",this._update.bind(this,!1)),this.on(\"zoom\",this._update.bind(this,!0)),this.on(\"moveend\",function(){this.animationLoop.set(300),this._rerender()}.bind(this)),void 0!==s&&(s.addEventListener(\"online\",this._onWindowOnline,!1),s.addEventListener(\"resize\",this._onWindowResize,!1)),m(this,t),this._hash=t.hash&&(new p).addTo(this),this._hash&&this._hash._onHashChange()||this.jumpTo({center:t.center,zoom:t.zoom,bearing:t.bearing,pitch:t.pitch}),this.stacks={},this._classes=[],this.resize(),t.classes&&this.setClasses(t.classes),t.style&&this.setStyle(t.style),t.attributionControl&&this.addControl(new x(t.attributionControl));var e=this.fire.bind(this,\"error\");this.on(\"style.error\",e),this.on(\"source.error\",e),this.on(\"tile.error\",e),this.on(\"layer.error\",e)};a.extend(w.prototype,l),a.extend(w.prototype,v.prototype),a.extend(w.prototype,{addControl:function(t){return t.addTo(this),this},addClass:function(t,e){return this._classes.indexOf(t)>=0||\"\"===t?this:(this._classes.push(t),this._classOptions=e,this.style&&this.style.updateClasses(),this._update(!0))},removeClass:function(t,e){var r=this._classes.indexOf(t);return r<0||\"\"===t?this:(this._classes.splice(r,1),this._classOptions=e,this.style&&this.style.updateClasses(),this._update(!0))},setClasses:function(t,e){for(var r={},n=0;n<t.length;n++)\"\"!==t[n]&&(r[t[n]]=!0);return this._classes=Object.keys(r),this._classOptions=e,this.style&&this.style.updateClasses(),this._update(!0)},hasClass:function(t){return this._classes.indexOf(t)>=0},getClasses:function(){return this._classes},resize:function(){var t=0,e=0;return this._container&&(t=this._container.offsetWidth||400,e=this._container.offsetHeight||300),this._canvas.resize(t,e),this.transform.resize(t,e),this.painter.resize(t,e),this.fire(\"movestart\").fire(\"move\").fire(\"resize\").fire(\"moveend\")},getBounds:function(){var t=new y(this.transform.pointLocation(new b(0,0)),this.transform.pointLocation(this.transform.size));return(this.transform.angle||this.transform.pitch)&&(t.extend(this.transform.pointLocation(new b(this.transform.size.x,0))),t.extend(this.transform.pointLocation(new b(0,this.transform.size.y)))),t},setMaxBounds:function(t){if(t){var e=y.convert(t);this.transform.lngRange=[e.getWest(),e.getEast()],this.transform.latRange=[e.getSouth(),e.getNorth()],this.transform._constrain(),this._update()}else null!==t&&void 0!==t||(this.transform.lngRange=[],this.transform.latRange=[],this._update());return this},setMinZoom:function(t){if((t=null===t||void 0===t?0:t)>=0&&t<=this.transform.maxZoom)return this.transform.minZoom=t,this._update(),this.getZoom()<t&&this.setZoom(t),this;throw new Error(\"minZoom must be between 0 and the current maxZoom, inclusive\")},setMaxZoom:function(t){if((t=null===t||void 0===t?20:t)>=this.transform.minZoom&&t<=20)return this.transform.maxZoom=t,this._update(),this.getZoom()>t&&this.setZoom(t),this;throw new Error(\"maxZoom must be between the current minZoom and 20, inclusive\")},project:function(t){return this.transform.locationPoint(g.convert(t))},unproject:function(t){return this.transform.pointLocation(b.convert(t))},queryRenderedFeatures:function(){var t,e={};return 2===arguments.length?(t=arguments[0],e=arguments[1]):1===arguments.length&&function(t){return t instanceof b||Array.isArray(t)}(arguments[0])?t=arguments[0]:1===arguments.length&&(e=arguments[0]),this.style.queryRenderedFeatures(this._makeQueryGeometry(t),e,this.transform.zoom,this.transform.angle)},_makeQueryGeometry:function(t){void 0===t&&(t=[b.convert([0,0]),b.convert([this.transform.width,this.transform.height])]);var e;if(t instanceof b||\"number\"==typeof t[0])e=[b.convert(t)];else{var r=[b.convert(t[0]),b.convert(t[1])];e=[r[0],new b(r[1].x,r[0].y),r[1],new b(r[0].x,r[1].y),r[0]]}return e=e.map(function(t){return this.transform.pointCoordinate(t)}.bind(this))},querySourceFeatures:function(t,e){return this.style.querySourceFeatures(t,e)},setStyle:function(t){return this.style&&(this.style.off(\"load\",this._onStyleLoad).off(\"error\",this._forwardStyleEvent).off(\"change\",this._onStyleChange).off(\"source.add\",this._onSourceAdd).off(\"source.remove\",this._onSourceRemove).off(\"source.load\",this._onSourceUpdate).off(\"source.error\",this._forwardSourceEvent).off(\"source.change\",this._onSourceUpdate).off(\"layer.add\",this._forwardLayerEvent).off(\"layer.remove\",this._forwardLayerEvent).off(\"layer.error\",this._forwardLayerEvent).off(\"tile.add\",this._forwardTileEvent).off(\"tile.remove\",this._forwardTileEvent).off(\"tile.load\",this._update).off(\"tile.error\",this._forwardTileEvent).off(\"tile.stats\",this._forwardTileEvent)._remove(),this.off(\"rotate\",this.style._redoPlacement),this.off(\"pitch\",this.style._redoPlacement)),t?(this.style=t instanceof c?t:new c(t,this.animationLoop,this._workerCount),this.style.on(\"load\",this._onStyleLoad).on(\"error\",this._forwardStyleEvent).on(\"change\",this._onStyleChange).on(\"source.add\",this._onSourceAdd).on(\"source.remove\",this._onSourceRemove).on(\"source.load\",this._onSourceUpdate).on(\"source.error\",this._forwardSourceEvent).on(\"source.change\",this._onSourceUpdate).on(\"layer.add\",this._forwardLayerEvent).on(\"layer.remove\",this._forwardLayerEvent).on(\"layer.error\",this._forwardLayerEvent).on(\"tile.add\",this._forwardTileEvent).on(\"tile.remove\",this._forwardTileEvent).on(\"tile.load\",this._update).on(\"tile.error\",this._forwardTileEvent).on(\"tile.stats\",this._forwardTileEvent),this.on(\"rotate\",this.style._redoPlacement),this.on(\"pitch\",this.style._redoPlacement),this):(this.style=null,this)},getStyle:function(){if(this.style)return this.style.serialize()},addSource:function(t,e){return this.style.addSource(t,e),this._update(!0),this},addSourceType:function(t,e,r){return this.style.addSourceType(t,e,r)},removeSource:function(t){return this.style.removeSource(t),this._update(!0),this},getSource:function(t){return this.style.getSource(t)},addLayer:function(t,e){return this.style.addLayer(t,e),this._update(!0),this},removeLayer:function(t){return this.style.removeLayer(t),this._update(!0),this},getLayer:function(t){return this.style.getLayer(t)},setFilter:function(t,e){return this.style.setFilter(t,e),this._update(!0),this},setLayerZoomRange:function(t,e,r){return this.style.setLayerZoomRange(t,e,r),this._update(!0),this},getFilter:function(t){return this.style.getFilter(t)},setPaintProperty:function(t,e,r,n){return this.style.setPaintProperty(t,e,r,n),this._update(!0),this},getPaintProperty:function(t,e,r){return this.style.getPaintProperty(t,e,r)},setLayoutProperty:function(t,e,r){return this.style.setLayoutProperty(t,e,r),this._update(!0),this},getLayoutProperty:function(t,e){return this.style.getLayoutProperty(t,e)},getContainer:function(){return this._container},getCanvasContainer:function(){return this._canvasContainer},getCanvas:function(){return this._canvas.getElement()},_setupContainer:function(){var t=this._container;t.classList.add(\"mapboxgl-map\");var e=this._canvasContainer=u.create(\"div\",\"mapboxgl-canvas-container\",t);this._interactive&&e.classList.add(\"mapboxgl-interactive\"),this._canvas=new i(this,e);var r=this._controlContainer=u.create(\"div\",\"mapboxgl-control-container\",t),n=this._controlCorners={};[\"top-left\",\"top-right\",\"bottom-left\",\"bottom-right\"].forEach(function(t){n[t]=u.create(\"div\",\"mapboxgl-ctrl-\"+t,r)})},_setupPainter:function(){var t=this._canvas.getWebGLContext({failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer});if(!t)return void this.fire(\"error\",{error:new Error(\"Failed to initialize WebGL\")});this.painter=new f(t,this.transform)},_contextLost:function(t){t.preventDefault(),this._frameId&&o.cancelFrame(this._frameId),this.fire(\"webglcontextlost\",{originalEvent:t})},_contextRestored:function(t){this._setupPainter(),this.resize(),this._update(),this.fire(\"webglcontextrestored\",{originalEvent:t})},loaded:function(){return!this._styleDirty&&!this._sourcesDirty&&!(!this.style||!this.style.loaded())},_update:function(t){return this.style?(this._styleDirty=this._styleDirty||t,this._sourcesDirty=!0,this._rerender(),this):this},_render:function(){try{this.style&&this._styleDirty&&(this._styleDirty=!1,this.style.update(this._classes,this._classOptions),this._classOptions=null,this.style._recalculate(this.transform.zoom)),this.style&&this._sourcesDirty&&(this._sourcesDirty=!1,this.style._updateSources(this.transform)),this.painter.render(this.style,{debug:this.showTileBoundaries,showOverdrawInspector:this._showOverdrawInspector,vertices:this.vertices,rotating:this.rotating,zooming:this.zooming}),this.fire(\"render\"),this.loaded()&&!this._loaded&&(this._loaded=!0,this.fire(\"load\")),this._frameId=null,this.animationLoop.stopped()||(this._styleDirty=!0),(this._sourcesDirty||this._repaint||this._styleDirty)&&this._rerender()}catch(t){this.fire(\"error\",{error:t})}return this},remove:function(){this._hash&&this._hash.remove(),o.cancelFrame(this._frameId),this.setStyle(null),void 0!==s&&s.removeEventListener(\"resize\",this._onWindowResize,!1);var t=this.painter.gl.getExtension(\"WEBGL_lose_context\");t&&t.loseContext(),n(this._canvasContainer),n(this._controlContainer),this._container.classList.remove(\"mapboxgl-map\")},_rerender:function(){this.style&&!this._frameId&&(this._frameId=o.frame(this._render))},_forwardStyleEvent:function(t){this.fire(\"style.\"+t.type,a.extend({style:t.target},t))},_forwardSourceEvent:function(t){this.fire(t.type,a.extend({style:t.target},t))},_forwardLayerEvent:function(t){this.fire(t.type,a.extend({style:t.target},t))},_forwardTileEvent:function(t){this.fire(t.type,a.extend({style:t.target},t))},_onStyleLoad:function(t){this.transform.unmodified&&this.jumpTo(this.style.stylesheet),this.style.update(this._classes,{transition:!1}),this._forwardStyleEvent(t)},_onStyleChange:function(t){this._update(!0),this._forwardStyleEvent(t)},_onSourceAdd:function(t){var e=t.source;e.onAdd&&e.onAdd(this),this._forwardSourceEvent(t)},_onSourceRemove:function(t){var e=t.source;e.onRemove&&e.onRemove(this),this._forwardSourceEvent(t)},_onSourceUpdate:function(t){this._update(),this._forwardSourceEvent(t)},_onWindowOnline:function(){this._update()},_onWindowResize:function(){this._trackResize&&this.stop().resize()._update()}}),a.extendAll(w.prototype,{_showTileBoundaries:!1,get showTileBoundaries(){return this._showTileBoundaries},set showTileBoundaries(t){this._showTileBoundaries!==t&&(this._showTileBoundaries=t,this._update())},_showCollisionBoxes:!1,get showCollisionBoxes(){return this._showCollisionBoxes},set showCollisionBoxes(t){this._showCollisionBoxes!==t&&(this._showCollisionBoxes=t,this.style._redoPlacement())},_showOverdrawInspector:!1,get showOverdrawInspector(){return this._showOverdrawInspector},set showOverdrawInspector(t){this._showOverdrawInspector!==t&&(this._showOverdrawInspector=t,this._update())},_repaint:!1,get repaint(){return this._repaint},set repaint(t){this._repaint=t,this._update()},_vertices:!1,get vertices(){return this._vertices},set vertices(t){this._vertices=t,this._update()}})},{\"../geo/lng_lat\":339,\"../geo/lng_lat_bounds\":340,\"../geo/transform\":341,\"../render/painter\":355,\"../style/animation_loop\":375,\"../style/style\":378,\"../util/browser\":426,\"../util/canvas\":427,\"../util/dom\":428,\"../util/evented\":434,\"../util/util\":442,\"./bind_handlers\":407,\"./camera\":408,\"./control/attribution\":409,\"./hash\":420,\"point-geometry\":484}],422:[function(t,e,r){\"use strict\";function n(t,e){t||(t=i.create(\"div\")),t.classList.add(\"mapboxgl-marker\"),this._el=t,this._offset=o.convert(e&&e.offset||[0,0]),this._update=this._update.bind(this)}e.exports=n;var i=t(\"../util/dom\"),a=t(\"../geo/lng_lat\"),o=t(\"point-geometry\");n.prototype={addTo:function(t){return this.remove(),this._map=t,t.getCanvasContainer().appendChild(this._el),t.on(\"move\",this._update),this._update(),this},remove:function(){this._map&&(this._map.off(\"move\",this._update),this._map=null);var t=this._el.parentNode;return t&&t.removeChild(this._el),this},getLngLat:function(){return this._lngLat},setLngLat:function(t){return this._lngLat=a.convert(t),this._update(),this},getElement:function(){return this._el},_update:function(){if(this._map){var t=this._map.project(this._lngLat)._add(this._offset);i.setTransform(this._el,\"translate(\"+t.x+\"px,\"+t.y+\"px)\")}}}},{\"../geo/lng_lat\":339,\"../util/dom\":428,\"point-geometry\":484}],423:[function(t,e,r){\"use strict\";function n(t){i.setOptions(this,t),i.bindAll([\"_update\",\"_onClickClose\"],this)}e.exports=n;var i=t(\"../util/util\"),a=t(\"../util/evented\"),o=t(\"../util/dom\"),s=t(\"../geo/lng_lat\");n.prototype=i.inherit(a,{options:{closeButton:!0,closeOnClick:!0},addTo:function(t){return this._map=t,this._map.on(\"move\",this._update),this.options.closeOnClick&&this._map.on(\"click\",this._onClickClose),this._update(),this},remove:function(){return this._content&&this._content.parentNode&&this._content.parentNode.removeChild(this._content),this._container&&(this._container.parentNode.removeChild(this._container),delete this._container),this._map&&(this._map.off(\"move\",this._update),this._map.off(\"click\",this._onClickClose),delete this._map),this.fire(\"close\"),this},getLngLat:function(){return this._lngLat},setLngLat:function(t){return this._lngLat=s.convert(t),this._update(),this},setText:function(t){return this.setDOMContent(document.createTextNode(t))},setHTML:function(t){var e,r=document.createDocumentFragment(),n=document.createElement(\"body\");for(n.innerHTML=t;;){if(!(e=n.firstChild))break;r.appendChild(e)}return this.setDOMContent(r)},setDOMContent:function(t){return this._createContent(),this._content.appendChild(t),this._update(),this},_createContent:function(){this._content&&this._content.parentNode&&this._content.parentNode.removeChild(this._content),this._content=o.create(\"div\",\"mapboxgl-popup-content\",this._container),this.options.closeButton&&(this._closeButton=o.create(\"button\",\"mapboxgl-popup-close-button\",this._content),this._closeButton.type=\"button\",this._closeButton.innerHTML=\"&#215;\",this._closeButton.addEventListener(\"click\",this._onClickClose))},_update:function(){if(this._map&&this._lngLat&&this._content){this._container||(this._container=o.create(\"div\",\"mapboxgl-popup\",this._map.getContainer()),this._tip=o.create(\"div\",\"mapboxgl-popup-tip\",this._container),this._container.appendChild(this._content));var t=this._map.project(this._lngLat).round(),e=this.options.anchor;if(!e){var r=this._container.offsetWidth,n=this._container.offsetHeight;e=t.y<n?[\"top\"]:t.y>this._map.transform.height-n?[\"bottom\"]:[],t.x<r/2?e.push(\"left\"):t.x>this._map.transform.width-r/2&&e.push(\"right\"),e=0===e.length?\"bottom\":e.join(\"-\")}var i={top:\"translate(-50%,0)\",\"top-left\":\"translate(0,0)\",\"top-right\":\"translate(-100%,0)\",bottom:\"translate(-50%,-100%)\",\"bottom-left\":\"translate(0,-100%)\",\"bottom-right\":\"translate(-100%,-100%)\",left:\"translate(0,-50%)\",right:\"translate(-100%,-50%)\"},a=this._container.classList;for(var s in i)a.remove(\"mapboxgl-popup-anchor-\"+s);a.add(\"mapboxgl-popup-anchor-\"+e),o.setTransform(this._container,i[e]+\" translate(\"+t.x+\"px,\"+t.y+\"px)\")}},_onClickClose:function(){this.remove()}})},{\"../geo/lng_lat\":339,\"../util/dom\":428,\"../util/evented\":434,\"../util/util\":442}],424:[function(t,e,r){\"use strict\";function n(t,e){this.target=t,this.parent=e,this.callbacks={},this.callbackID=0,this.receive=this.receive.bind(this),this.target.addEventListener(\"message\",this.receive,!1)}e.exports=n,n.prototype.receive=function(t){function e(t,e,r){this.postMessage({type:\"<response>\",id:String(i),error:t?String(t):null,data:e},r)}var r,n=t.data,i=n.id;if(\"<response>\"===n.type)r=this.callbacks[n.id],delete this.callbacks[n.id],r&&r(n.error||null,n.data);else if(void 0!==n.id&&this.parent[n.type])this.parent[n.type](n.data,e.bind(this));else if(void 0!==n.id&&this.parent.workerSources){var a=n.type.split(\".\");this.parent.workerSources[a[0]][a[1]](n.data,e.bind(this))}else this.parent[n.type](n.data)},n.prototype.send=function(t,e,r,n){var i=null;r&&(this.callbacks[i=this.callbackID++]=r),this.postMessage({type:t,id:String(i),data:e},n)},n.prototype.postMessage=function(t,e){this.target.postMessage(t,e)}},{}],425:[function(t,e,r){\"use strict\";function n(t){var e=document.createElement(\"a\");return e.href=t,e.protocol===document.location.protocol&&e.host===document.location.host}r.getJSON=function(t,e){var r=new XMLHttpRequest;return r.open(\"GET\",t,!0),r.setRequestHeader(\"Accept\",\"application/json\"),r.onerror=function(t){e(t)},r.onload=function(){if(r.status>=200&&r.status<300&&r.response){var t;try{t=JSON.parse(r.response)}catch(t){return e(t)}e(null,t)}else e(new Error(r.statusText))},r.send(),r},r.getArrayBuffer=function(t,e){var r=new XMLHttpRequest;return r.open(\"GET\",t,!0),r.responseType=\"arraybuffer\",r.onerror=function(t){e(t)},r.onload=function(){r.status>=200&&r.status<300&&r.response?e(null,r.response):e(new Error(r.statusText))},r.send(),r},r.getImage=function(t,e){return r.getArrayBuffer(t,function(t,r){if(t)return e(t);var n=new Image;n.onload=function(){e(null,n),(window.URL||window.webkitURL).revokeObjectURL(n.src)};var i=new Blob([new Uint8Array(r)],{type:\"image/png\"});return n.src=(window.URL||window.webkitURL).createObjectURL(i),n.getData=function(){var t=document.createElement(\"canvas\"),e=t.getContext(\"2d\");return t.width=n.width,t.height=n.height,e.drawImage(n,0,0),e.getImageData(0,0,n.width,n.height).data},n})},r.getVideo=function(t,e){var r=document.createElement(\"video\");r.onloadstart=function(){e(null,r)};for(var i=0;i<t.length;i++){var a=document.createElement(\"source\");n(t[i])||(r.crossOrigin=\"Anonymous\"),a.src=t[i],r.appendChild(a)}return r.getData=function(){return r},r}},{}],426:[function(t,e,r){\"use strict\";r.window=window,e.exports.now=function(){return window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now.bind(Date)}();var n=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame;r.frame=function(t){return n(t)};var i=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame;r.cancelFrame=function(t){i(t)},r.timed=function(t,n,i){function a(l){o||(l=e.exports.now(),l>=s+n?t.call(i,1):(t.call(i,(l-s)/n),r.frame(a)))}if(!n)return t.call(i,1),null;var o=!1,s=e.exports.now();return r.frame(a),function(){o=!0}},r.supported=t(\"mapbox-gl-supported\"),r.hardwareConcurrency=navigator.hardwareConcurrency||4,Object.defineProperty(r,\"devicePixelRatio\",{get:function(){return window.devicePixelRatio}}),r.supportsWebp=!1;var a=document.createElement(\"img\");a.onload=function(){r.supportsWebp=!0},a.src=\"data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=\",r.supportsGeolocation=!!navigator.geolocation},{\"mapbox-gl-supported\":327}],427:[function(t,e,r){\"use strict\";function n(t,e){this.canvas=document.createElement(\"canvas\"),t&&e&&(this.canvas.style.position=\"absolute\",this.canvas.classList.add(\"mapboxgl-canvas\"),this.canvas.addEventListener(\"webglcontextlost\",t._contextLost.bind(t),!1),this.canvas.addEventListener(\"webglcontextrestored\",t._contextRestored.bind(t),!1),this.canvas.setAttribute(\"tabindex\",0),e.appendChild(this.canvas))}var i=t(\"../util\"),a=t(\"mapbox-gl-supported\");e.exports=n,n.prototype.resize=function(t,e){var r=window.devicePixelRatio||1;this.canvas.width=r*t,this.canvas.height=r*e,this.canvas.style.width=t+\"px\",this.canvas.style.height=e+\"px\"},n.prototype.getWebGLContext=function(t){return t=i.extend({},t,a.webGLContextAttributes),this.canvas.getContext(\"webgl\",t)||this.canvas.getContext(\"experimental-webgl\",t)},n.prototype.getElement=function(){return this.canvas}},{\"../util\":442,\"mapbox-gl-supported\":327}],428:[function(t,e,r){\"use strict\";function n(t){for(var e=0;e<t.length;e++)if(t[e]in s)return t[e]}function i(t){t.preventDefault(),t.stopPropagation(),window.removeEventListener(\"click\",i,!0)}var a=t(\"point-geometry\");r.create=function(t,e,r){var n=document.createElement(t);return e&&(n.className=e),r&&r.appendChild(n),n};var o,s=document.documentElement.style,l=n([\"userSelect\",\"MozUserSelect\",\"WebkitUserSelect\",\"msUserSelect\"]);r.disableDrag=function(){l&&(o=s[l],s[l]=\"none\")},r.enableDrag=function(){l&&(s[l]=o)};var u=n([\"transform\",\"WebkitTransform\"]);r.setTransform=function(t,e){t.style[u]=e},r.suppressClick=function(){window.addEventListener(\"click\",i,!0),window.setTimeout(function(){window.removeEventListener(\"click\",i,!0)},0)},r.mousePos=function(t,e){var r=t.getBoundingClientRect();return e=e.touches?e.touches[0]:e,new a(e.clientX-r.left-t.clientLeft,e.clientY-r.top-t.clientTop)},r.touchPos=function(t,e){for(var r=t.getBoundingClientRect(),n=[],i=0;i<e.touches.length;i++)n.push(new a(e.touches[i].clientX-r.left-t.clientLeft,e.touches[i].clientY-r.top-t.clientTop));return n}},{\"point-geometry\":484}],429:[function(t,e,r){\"use strict\";var n=t(\"webworkify\");e.exports=function(){return new n(t(\"../../source/worker\"))}},{\"../../source/worker\":373,webworkify:564}],430:[function(t,e,r){\"use strict\";function n(t,e){return e.area-t.area}function i(t){for(var e,r,n=0,i=0,a=t.length,o=a-1;i<a;o=i++)e=t[i],r=t[o],n+=(r.x-e.x)*(e.y+r.y);return n}var a=t(\"quickselect\");e.exports=function(t,e){var r=t.length;if(r<=1)return[t];for(var o,s,l=[],u=0;u<r;u++){var c=i(t[u]);0!==c&&(t[u].area=Math.abs(c),void 0===s&&(s=c<0),s===c<0?(o&&l.push(o),o=[t[u]]):o.push(t[u]))}if(o&&l.push(o),e>1)for(var h=0;h<l.length;h++)l[h].length<=e||(a(l[h],e,1,l[h].length-1,n),l[h]=l[h].slice(0,e));return l}},{quickselect:493}],431:[function(t,e,r){\"use strict\";e.exports={API_URL:\"https://api.mapbox.com\",REQUIRE_ACCESS_TOKEN:!0}},{}],432:[function(t,e,r){\"use strict\";function n(t){this._stringToNumber={},this._numberToString=[];for(var e=0;e<t.length;e++){var r=t[e];this._stringToNumber[r]=e,this._numberToString[e]=r}}var i=t(\"assert\");e.exports=n,n.prototype.encode=function(t){return i(t in this._stringToNumber),this._stringToNumber[t]},n.prototype.decode=function(t){return i(t<this._numberToString.length),this._numberToString[t]}},{assert:47}],433:[function(t,e,r){\"use strict\";function n(t,e){this.actors=[],this.currentActor=0;for(var r=0;r<t;r++){var n=new o,i=new a(n,e);i.name=\"Worker \"+r,this.actors.push(i)}}var i=t(\"./util\"),a=t(\"./actor\"),o=t(\"./web_worker\");e.exports=n,n.prototype={broadcast:function(t,e,r){r=r||function(){},i.asyncAll(this.actors,function(r,n){r.send(t,e,n)},r)},send:function(t,e,r,n,i){return(\"number\"!=typeof n||isNaN(n))&&(n=this.currentActor=(this.currentActor+1)%this.actors.length),this.actors[n].send(t,e,r,i),n},remove:function(){for(var t=0;t<this.actors.length;t++)this.actors[t].target.terminate();this.actors=[]}}},{\"./actor\":424,\"./util\":442,\"./web_worker\":429}],434:[function(t,e,r){\"use strict\";var n=t(\"./util\"),i={on:function(t,e){return this._events=this._events||{},this._events[t]=this._events[t]||[],this._events[t].push(e),this},off:function(t,e){if(!t)return delete this._events,this;if(!this.listens(t))return this;if(e){var r=this._events[t].indexOf(e);r>=0&&this._events[t].splice(r,1),this._events[t].length||delete this._events[t]}else delete this._events[t];return this},once:function(t,e){var r=function(n){this.off(t,r),e.call(this,n)}.bind(this);return this.on(t,r),this},fire:function(t,e){if(!this.listens(t))return n.endsWith(t,\"error\")&&console.error(e&&e.error||e||\"Empty error event\"),this;e=n.extend({},e),n.extend(e,{type:t,target:this});for(var r=this._events[t].slice(),i=0;i<r.length;i++)r[i].call(this,e);return this},listens:function(t){return!(!this._events||!this._events[t])}};e.exports=i},{\"./util\":442}],435:[function(t,e,r){\"use strict\";function n(t,e){this.stacks=t.readFields(i,[],e)}function i(t,e,r){if(1===t){var n=r.readMessage(a,{glyphs:{}});e.push(n)}}function a(t,e,r){if(1===t)e.name=r.readString();else if(2===t)e.range=r.readString();else if(3===t){var n=r.readMessage(o,{});e.glyphs[n.id]=n}}function o(t,e,r){1===t?e.id=r.readVarint():2===t?e.bitmap=r.readBytes():3===t?e.width=r.readVarint():4===t?e.height=r.readVarint():5===t?e.left=r.readSVarint():6===t?e.top=r.readSVarint():7===t&&(e.advance=r.readVarint())}e.exports=n},{}],436:[function(t,e,r){\"use strict\";function n(t,e,r){return t*(1-r)+e*r}e.exports=n,n.number=n,n.vec2=function(t,e,r){return[n(t[0],e[0],r),n(t[1],e[1],r)]},n.color=function(t,e,r){return[n(t[0],e[0],r),n(t[1],e[1],r),n(t[2],e[2],r),n(t[3],e[3],r)]},n.array=function(t,e,r){return t.map(function(t,i){return n(t,e[i],r)})}},{}],437:[function(t,e,r){\"use strict\";function n(t,e,r){for(var n=0;n<t.length;n++)for(var i=t[n],a=0;a<e.length;a++)for(var o=e[a],s=0;s<o.length;s++){var l=o[s];if(d(i,l))return!0;if(c(l,i,r))return!0}return!1}function i(t,e){if(1===t.length&&1===t[0].length)return f(e,t[0][0]);for(var r=0;r<e.length;r++)for(var n=e[r],i=0;i<n.length;i++)if(f(t,n[i]))return!0;for(var a=0;a<t.length;a++){for(var o=t[a],l=0;l<o.length;l++)if(f(e,o[l]))return!0;for(var u=0;u<e.length;u++)if(s(o,e[u]))return!0}return!1}function a(t,e,r){for(var n=0;n<e.length;n++)for(var i=e[n],a=0;a<t.length;a++){var s=t[a];if(s.length>=3)for(var l=0;l<i.length;l++)if(d(s,i[l]))return!0;if(o(s,i,r))return!0}return!1}function o(t,e,r){if(t.length>1){if(s(t,e))return!0;for(var n=0;n<e.length;n++)if(c(e[n],t,r))return!0}for(var i=0;i<t.length;i++)if(c(t[i],e,r))return!0;return!1}function s(t,e){for(var r=0;r<t.length-1;r++)for(var n=t[r],i=t[r+1],a=0;a<e.length-1;a++){var o=e[a],s=e[a+1];if(u(n,i,o,s))return!0}return!1}function l(t,e,r){return(r.y-t.y)*(e.x-t.x)>(e.y-t.y)*(r.x-t.x)}function u(t,e,r,n){return l(t,r,n)!==l(e,r,n)&&l(t,e,r)!==l(t,e,n)}function c(t,e,r){var n=r*r;if(1===e.length)return t.distSqr(e[0])<n;for(var i=1;i<e.length;i++){if(h(t,e[i-1],e[i])<n)return!0}return!1}function h(t,e,r){var n=e.distSqr(r);if(0===n)return t.distSqr(e);var i=((t.x-e.x)*(r.x-e.x)+(t.y-e.y)*(r.y-e.y))/n;return i<0?t.distSqr(e):i>1?t.distSqr(r):t.distSqr(r.sub(e)._mult(i)._add(e))}function f(t,e){for(var r,n,i,a=!1,o=0;o<t.length;o++){r=t[o];for(var s=0,l=r.length-1;s<r.length;l=s++)n=r[s],i=r[l],n.y>e.y!=i.y>e.y&&e.x<(i.x-n.x)*(e.y-n.y)/(i.y-n.y)+n.x&&(a=!a)}return a}function d(t,e){for(var r=!1,n=0,i=t.length-1;n<t.length;i=n++){var a=t[n],o=t[i];a.y>e.y!=o.y>e.y&&e.x<(o.x-a.x)*(e.y-a.y)/(o.y-a.y)+a.x&&(r=!r)}return r}e.exports={multiPolygonIntersectsBufferedMultiPoint:n,multiPolygonIntersectsMultiPolygon:i,multiPolygonIntersectsBufferedMultiLine:a}},{}],438:[function(t,e,r){\"use strict\";function n(t,e){this.max=t,this.onRemove=e,this.reset()}e.exports=n,n.prototype.reset=function(){for(var t in this.data)this.onRemove(this.data[t]);return this.data={},this.order=[],this},n.prototype.add=function(t,e){if(this.has(t))this.order.splice(this.order.indexOf(t),1),this.data[t]=e,this.order.push(t);else if(this.data[t]=e,this.order.push(t),this.order.length>this.max){var r=this.get(this.order[0]);r&&this.onRemove(r)}return this},n.prototype.has=function(t){return t in this.data},n.prototype.keys=function(){return this.order},n.prototype.get=function(t){if(!this.has(t))return null;var e=this.data[t];return delete this.data[t],this.order.splice(this.order.indexOf(t),1),e},n.prototype.setMaxSize=function(t){for(this.max=t;this.order.length>this.max;){var e=this.get(this.order[0]);e&&this.onRemove(e)}return this}},{}],439:[function(t,e,r){\"use strict\";function n(t,e,r){if(!(r=r||o.ACCESS_TOKEN)&&o.REQUIRE_ACCESS_TOKEN)throw new Error(\"An API access token is required to use Mapbox GL. See https://www.mapbox.com/developers/api/#access-tokens\");if(t=t.replace(/^mapbox:\\/\\//,o.API_URL+e),\n", "t+=-1!==t.indexOf(\"?\")?\"&access_token=\":\"?access_token=\",o.REQUIRE_ACCESS_TOKEN){if(\"s\"===r[0])throw new Error(\"Use a public access token (pk.*) with Mapbox GL JS, not a secret access token (sk.*). See https://www.mapbox.com/developers/api/#access-tokens\");t+=r}return t}function i(t){return t?\"?\"+t:\"\"}function a(t){return t.access_token&&\"tk.\"===t.access_token.slice(0,3)?u.extend({},t,{access_token:o.ACCESS_TOKEN}):t}var o=t(\"./config\"),s=t(\"./browser\"),l=t(\"url\"),u=t(\"./util\");e.exports.normalizeStyleURL=function(t,e){var r=l.parse(t);return\"mapbox:\"!==r.protocol?t:n(\"mapbox:/\"+r.pathname+i(r.query),\"/styles/v1/\",e)},e.exports.normalizeSourceURL=function(t,e){return\"mapbox:\"!==l.parse(t).protocol?t:n(t+\".json\",\"/v4/\",e)+\"&secure\"},e.exports.normalizeGlyphsURL=function(t,e){var r=l.parse(t);return\"mapbox:\"!==r.protocol?t:n(\"mapbox://\"+r.pathname.split(\"/\")[1]+\"/{fontstack}/{range}.pbf\"+i(r.query),\"/fonts/v1/\",e)},e.exports.normalizeSpriteURL=function(t,e,r,a){var o=l.parse(t);return\"mapbox:\"!==o.protocol?(o.pathname+=e+r,l.format(o)):n(\"mapbox:/\"+o.pathname+\"/sprite\"+e+r+i(o.query),\"/styles/v1/\",a)},e.exports.normalizeTileURL=function(t,e,r){var n=l.parse(t,!0);if(!e)return t;if(\"mapbox:\"!==l.parse(e).protocol)return t;var i=s.supportsWebp?\".webp\":\"$1\",o=s.devicePixelRatio>=2||512===r?\"@2x\":\"\";return l.format({protocol:n.protocol,hostname:n.hostname,pathname:n.pathname.replace(/(\\.(?:png|jpg)\\d*)/,o+i),query:a(n.query)})}},{\"./browser\":426,\"./config\":431,\"./util\":442,url:545}],440:[function(t,e,r){\"use strict\";function n(t){function e(){f.apply(this,arguments)}function r(){d.apply(this,arguments),this.members=e.prototype.members}var n=JSON.stringify(t);if(v[n])return v[n];void 0===t.alignment&&(t.alignment=1),e.prototype=Object.create(f.prototype);var s=0,u=0,g=[\"Uint8\"];return e.prototype.members=t.members.map(function(r){r={name:r.name,type:r.type,components:r.components||1},p(r.name.length),p(r.type in m),g.indexOf(r.type)<0&&g.push(r.type);var n=o(r.type);u=Math.max(u,n),r.offset=s=a(s,Math.max(t.alignment,n));for(var i=0;i<r.components;i++)Object.defineProperty(e.prototype,r.name+(1===r.components?\"\":i),{get:c(r,i),set:h(r,i)});return s+=n*r.components,r}),e.prototype.alignment=t.alignment,e.prototype.size=a(s,Math.max(u,t.alignment)),r.serialize=i,r.prototype=Object.create(d.prototype),r.prototype.StructType=e,r.prototype.bytesPerElement=e.prototype.size,r.prototype.emplaceBack=l(e.prototype.members,e.prototype.size),r.prototype._usedTypes=g,v[n]=r,r}function i(){return{members:this.prototype.StructType.prototype.members,alignment:this.prototype.StructType.prototype.alignment,bytesPerElement:this.prototype.bytesPerElement}}function a(t,e){return Math.ceil(t/e)*e}function o(t){return m[t].BYTES_PER_ELEMENT}function s(t){return t.toLowerCase()}function l(t,e){for(var r=[],n=[],i=\"var i = this.length;\\nthis.resize(this.length + 1);\\n\",a=0;a<t.length;a++){var l=t[a],u=o(l.type);r.indexOf(u)<0&&(r.push(u),i+=\"var o\"+u.toFixed(0)+\" = i * \"+(e/u).toFixed(0)+\";\\n\");for(var c=0;c<l.components;c++){var h=\"v\"+n.length,f=\"o\"+u.toFixed(0)+\" + \"+(l.offset/u+c).toFixed(0);i+=\"this.\"+s(l.type)+\"[\"+f+\"] = \"+h+\";\\n\",n.push(h)}}return i+=\"return i;\",new Function(n,i)}function u(t,e){var r=\"this._pos\"+o(t.type).toFixed(0),n=(t.offset/o(t.type)+e).toFixed(0),i=r+\" + \"+n;return\"this._structArray.\"+s(t.type)+\"[\"+i+\"]\"}function c(t,e){return new Function([],\"return \"+u(t,e)+\";\")}function h(t,e){return new Function([\"x\"],u(t,e)+\" = x;\")}function f(t,e){this._structArray=t,this._pos1=e*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8}function d(t){void 0!==t?(this.arrayBuffer=t.arrayBuffer,this.length=t.length,this.capacity=this.arrayBuffer.byteLength/this.bytesPerElement,this._refreshViews()):(this.capacity=-1,this.resize(0))}var p=t(\"assert\");e.exports=n;var m={Int8:Int8Array,Uint8:Uint8Array,Uint8Clamped:Uint8ClampedArray,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array,Float64:Float64Array},v={};d.prototype.DEFAULT_CAPACITY=128,d.prototype.RESIZE_MULTIPLIER=5,d.prototype.serialize=function(){return this.trim(),{length:this.length,arrayBuffer:this.arrayBuffer}},d.prototype.get=function(t){return new this.StructType(this,t)},d.prototype.trim=function(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},d.prototype.resize=function(t){if(this.length=t,t>this.capacity){this.capacity=Math.max(t,Math.floor(this.capacity*this.RESIZE_MULTIPLIER),this.DEFAULT_CAPACITY),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var e=this.uint8;this._refreshViews(),e&&this.uint8.set(e)}},d.prototype._refreshViews=function(){for(var t=0;t<this._usedTypes.length;t++){var e=this._usedTypes[t];this[s(e)]=new m[e](this.arrayBuffer)}},d.prototype.toArray=function(t,e){for(var r=[],n=t;n<e;n++){var i=this.get(n);r.push(i)}return r}},{assert:47}],441:[function(t,e,r){\"use strict\";function n(t,e){return e.replace(/{([^{}]+)}/g,function(e,r){return r in t?t[r]:\"\"})}e.exports=n},{}],442:[function(t,e,r){\"use strict\";var n=t(\"unitbezier\"),i=t(\"../geo/coordinate\");r.easeCubicInOut=function(t){if(t<=0)return 0;if(t>=1)return 1;var e=t*t,r=e*t;return 4*(t<.5?r:3*(t-e)+r-.75)},r.bezier=function(t,e,r,i){var a=new n(t,e,r,i);return function(t){return a.solve(t)}},r.ease=r.bezier(.25,.1,.25,1),r.clamp=function(t,e,r){return Math.min(r,Math.max(e,t))},r.wrap=function(t,e,r){var n=r-e,i=((t-e)%n+n)%n+e;return i===e?r:i},r.coalesce=function(){for(var t=0;t<arguments.length;t++){var e=arguments[t];if(null!==e&&void 0!==e)return e}},r.asyncAll=function(t,e,r){if(!t.length)return r(null,[]);var n=t.length,i=new Array(t.length),a=null;t.forEach(function(t,o){e(t,function(t,e){t&&(a=t),i[o]=e,0==--n&&r(a,i)})})},r.keysDifference=function(t,e){var r=[];for(var n in t)n in e||r.push(n);return r},r.extend=function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)t[n]=r[n]}return t},r.extendAll=function(t,e){for(var r in e)Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t},r.inherit=function(t,e){var n=\"function\"==typeof t?t.prototype:t,i=Object.create(n);return r.extendAll(i,e),i},r.pick=function(t,e){for(var r={},n=0;n<e.length;n++){var i=e[n];i in t&&(r[i]=t[i])}return r};var a=1;r.uniqueId=function(){return a++},r.debounce=function(t,e){var r,n;return function(){n=arguments,clearTimeout(r),r=setTimeout(function(){t.apply(null,n)},e)}},r.bindAll=function(t,e){t.forEach(function(t){e[t]&&(e[t]=e[t].bind(e))})},r.bindHandlers=function(t){for(var e in t)\"function\"==typeof t[e]&&0===e.indexOf(\"_on\")&&(t[e]=t[e].bind(t))},r.setOptions=function(t,e){t.hasOwnProperty(\"options\")||(t.options=t.options?Object.create(t.options):{});for(var r in e)t.options[r]=e[r];return t.options},r.getCoordinatesCenter=function(t){for(var e=1/0,r=1/0,n=-1/0,a=-1/0,o=0;o<t.length;o++)e=Math.min(e,t[o].column),r=Math.min(r,t[o].row),n=Math.max(n,t[o].column),a=Math.max(a,t[o].row);var s=n-e,l=a-r,u=Math.max(s,l);return new i((e+n)/2,(r+a)/2,0).zoomTo(Math.floor(-Math.log(u)/Math.LN2))},r.endsWith=function(t,e){return-1!==t.indexOf(e,t.length-e.length)},r.startsWith=function(t,e){return 0===t.indexOf(e)},r.mapObject=function(t,e,r){var n={};for(var i in t)n[i]=e.call(r||this,t[i],i,t);return n},r.filterObject=function(t,e,r){var n={};for(var i in t)e.call(r||this,t[i],i,t)&&(n[i]=t[i]);return n},r.deepEqual=function t(e,r){if(Array.isArray(e)){if(!Array.isArray(r)||e.length!==r.length)return!1;for(var n=0;n<e.length;n++)if(!t(e[n],r[n]))return!1;return!0}if(\"object\"==typeof e&&null!==e&&null!==r){if(\"object\"!=typeof r)return!1;if(Object.keys(e).length!==Object.keys(r).length)return!1;for(var i in e)if(!t(e[i],r[i]))return!1;return!0}return e===r},r.clone=function(t){return Array.isArray(t)?t.map(r.clone):\"object\"==typeof t?r.mapObject(t,r.clone):t},r.arraysIntersect=function(t,e){for(var r=0;r<t.length;r++)if(e.indexOf(t[r])>=0)return!0;return!1};var o={};r.warnOnce=function(t){o[t]||(\"undefined\"!=typeof console&&console.warn(t),o[t]=!0)}},{\"../geo/coordinate\":338,unitbezier:544}],443:[function(t,e,r){\"use strict\";function n(t,e,r,n){this._vectorTileFeature=t,t._z=e,t._x=r,t._y=n,this.properties=t.properties,null!=t.id&&(this.id=t.id)}e.exports=n,n.prototype={type:\"Feature\",get geometry(){return void 0===this._geometry&&(this._geometry=this._vectorTileFeature.toGeoJSON(this._vectorTileFeature._x,this._vectorTileFeature._y,this._vectorTileFeature._z).geometry),this._geometry},set geometry(t){this._geometry=t},toJSON:function(){var t={};for(var e in this)\"_geometry\"!==e&&\"_vectorTileFeature\"!==e&&\"toJSON\"!==e&&(t[e]=this[e]);return t}}},{}],444:[function(t,e,r){e.exports={_args:[[{raw:\"mapbox-gl@^0.22.0\",scope:null,escapedName:\"mapbox-gl\",name:\"mapbox-gl\",rawSpec:\"^0.22.0\",spec:\">=0.22.0 <0.23.0\",type:\"range\"},\"/home/etienne/Documents/plotly/plotly.js\"]],_from:\"mapbox-gl@>=0.22.0 <0.23.0\",_id:\"mapbox-gl@0.22.1\",_inCache:!0,_location:\"/mapbox-gl\",_nodeVersion:\"4.4.5\",_npmOperationalInternal:{host:\"packages-12-west.internal.npmjs.com\",tmp:\"tmp/mapbox-gl-0.22.1.tgz_1471549891670_0.8762630566488951\"},_npmUser:{name:\"lucaswoj\",email:\"lucas@lucaswoj.com\"},_npmVersion:\"2.15.5\",_phantomChildren:{},_requested:{raw:\"mapbox-gl@^0.22.0\",scope:null,escapedName:\"mapbox-gl\",name:\"mapbox-gl\",rawSpec:\"^0.22.0\",spec:\">=0.22.0 <0.23.0\",type:\"range\"},_requiredBy:[\"/\"],_resolved:\"https://registry.npmjs.org/mapbox-gl/-/mapbox-gl-0.22.1.tgz\",_shasum:\"92a965547d4c2f24c22cbc487eeda48694cb627a\",_shrinkwrap:null,_spec:\"mapbox-gl@^0.22.0\",_where:\"/home/etienne/Documents/plotly/plotly.js\",browser:{\"./js/util/ajax.js\":\"./js/util/browser/ajax.js\",\"./js/util/browser.js\":\"./js/util/browser/browser.js\",\"./js/util/canvas.js\":\"./js/util/browser/canvas.js\",\"./js/util/dom.js\":\"./js/util/browser/dom.js\",\"./js/util/web_worker.js\":\"./js/util/browser/web_worker.js\"},bugs:{url:\"https://github.com/mapbox/mapbox-gl-js/issues\"},dependencies:{csscolorparser:\"^1.0.2\",earcut:\"^2.0.3\",\"feature-filter\":\"^2.2.0\",\"geojson-rewind\":\"^0.1.0\",\"geojson-vt\":\"^2.4.0\",\"gl-matrix\":\"^2.3.1\",\"grid-index\":\"^1.0.0\",\"mapbox-gl-function\":\"^1.2.1\",\"mapbox-gl-shaders\":\"github:mapbox/mapbox-gl-shaders#de2ab007455aa2587c552694c68583f94c9f2747\",\"mapbox-gl-style-spec\":\"github:mapbox/mapbox-gl-style-spec#83b1a3e5837d785af582efd5ed1a212f2df6a4ae\",\"mapbox-gl-supported\":\"^1.2.0\",pbf:\"^1.3.2\",pngjs:\"^2.2.0\",\"point-geometry\":\"^0.0.0\",quickselect:\"^1.0.0\",request:\"^2.39.0\",\"resolve-url\":\"^0.2.1\",\"shelf-pack\":\"^1.0.0\",supercluster:\"^2.0.1\",unassertify:\"^2.0.0\",unitbezier:\"^0.0.0\",\"vector-tile\":\"^1.3.0\",\"vt-pbf\":\"^2.0.2\",webworkify:\"^1.3.0\",\"whoots-js\":\"^2.0.0\"},description:\"A WebGL interactive maps library\",devDependencies:{\"babel-preset-react\":\"^6.11.1\",babelify:\"^7.3.0\",benchmark:\"~2.1.0\",browserify:\"^13.0.0\",clipboard:\"^1.5.12\",\"concat-stream\":\"1.5.1\",coveralls:\"^2.11.8\",doctrine:\"^1.2.1\",documentation:\"https://github.com/documentationjs/documentation/archive/bb41619c734e59ef3fbc3648610032efcfdaaace.tar.gz\",\"documentation-theme-utils\":\"3.0.0\",envify:\"^3.4.0\",eslint:\"^2.5.3\",\"eslint-config-mourner\":\"^2.0.0\",\"eslint-plugin-html\":\"^1.5.1\",gl:\"^4.0.1\",handlebars:\"4.0.5\",\"highlight.js\":\"9.3.0\",istanbul:\"^0.4.2\",\"json-loader\":\"^0.5.4\",lodash:\"^4.13.1\",\"mapbox-gl-test-suite\":\"github:mapbox/mapbox-gl-test-suite#7babab52fb02788ebbc38384139bf350e8e38552\",\"memory-fs\":\"^0.3.0\",minifyify:\"^7.0.1\",\"npm-run-all\":\"^3.0.0\",nyc:\"6.4.0\",proxyquire:\"^1.7.9\",remark:\"4.2.2\",\"remark-html\":\"3.0.0\",sinon:\"^1.15.4\",st:\"^1.2.0\",tap:\"^5.7.0\",\"transform-loader\":\"^0.2.3\",\"unist-util-visit\":\"1.1.0\",vinyl:\"1.1.1\",\"vinyl-fs\":\"2.4.3\",watchify:\"^3.7.0\",webpack:\"^1.13.1\",\"webworkify-webpack\":\"^1.1.3\"},directories:{},dist:{shasum:\"92a965547d4c2f24c22cbc487eeda48694cb627a\",tarball:\"https://registry.npmjs.org/mapbox-gl/-/mapbox-gl-0.22.1.tgz\"},engines:{node:\">=4.0.0\"},gitHead:\"13a9015341f0602ccb55c98c53079838ad4b70b5\",homepage:\"https://github.com/mapbox/mapbox-gl-js#readme\",license:\"BSD-3-Clause\",main:\"js/mapbox-gl.js\",maintainers:[{name:\"aaronlidman\",email:\"aaronlidman@gmail.com\"},{name:\"ajashton\",email:\"aj.ashton@gmail.com\"},{name:\"ansis\",email:\"ansis.brammanis@gmail.com\"},{name:\"bergwerkgis\",email:\"wb@bergwerk-gis.at\"},{name:\"bhousel\",email:\"bryan@mapbox.com\"},{name:\"bsudekum\",email:\"bobby@mapbox.com\"},{name:\"camilleanne\",email:\"camille@mapbox.com\"},{name:\"dnomadb\",email:\"damon@mapbox.com\"},{name:\"dthompson\",email:\"dthompson@gmail.com\"},{name:\"emilymcafee\",email:\"emily@mapbox.com\"},{name:\"flippmoke\",email:\"flippmoke@gmail.com\"},{name:\"freenerd\",email:\"spam@freenerd.de\"},{name:\"gretacb\",email:\"carol@mapbox.com\"},{name:\"ian29\",email:\"ian.villeda@gmail.com\"},{name:\"ianshward\",email:\"ian@mapbox.com\"},{name:\"ingalls\",email:\"nicholas.ingalls@gmail.com\"},{name:\"jfirebaugh\",email:\"john.firebaugh@gmail.com\"},{name:\"jrpruit1\",email:\"jake@jakepruitt.com\"},{name:\"karenzshea\",email:\"karen@mapbox.com\"},{name:\"kkaefer\",email:\"kkaefer@gmail.com\"},{name:\"lbud\",email:\"lauren@mapbox.com\"},{name:\"lucaswoj\",email:\"lucas@lucaswoj.com\"},{name:\"lxbarth\",email:\"alex@mapbox.com\"},{name:\"lyzidiamond\",email:\"lyzi@mapbox.com\"},{name:\"mapbox-admin\",email:\"accounts@mapbox.com\"},{name:\"mateov\",email:\"matt@mapbox.com\"},{name:\"mcwhittemore\",email:\"mcwhittemore@gmail.com\"},{name:\"miccolis\",email:\"jeff@miccolis.net\"},{name:\"mikemorris\",email:\"michael.patrick.morris@gmail.com\"},{name:\"morganherlocker\",email:\"morgan.herlocker@gmail.com\"},{name:\"mourner\",email:\"agafonkin@gmail.com\"},{name:\"nickidlugash\",email:\"nicki@mapbox.com\"},{name:\"rclark\",email:\"ryan.clark.j@gmail.com\"},{name:\"samanbb\",email:\"saman@mapbox.com\"},{name:\"sbma44\",email:\"tlee@mapbox.com\"},{name:\"scothis\",email:\"scothis@gmail.com\"},{name:\"sgillies\",email:\"sean@mapbox.com\"},{name:\"springmeyer\",email:\"dane@mapbox.com\"},{name:\"themarex\",email:\"patrick@mapbox.com\"},{name:\"tmcw\",email:\"tom@macwright.org\"},{name:\"tristen\",email:\"tristen.brown@gmail.com\"},{name:\"willwhite\",email:\"will@mapbox.com\"},{name:\"yhahn\",email:\"young@mapbox.com\"}],name:\"mapbox-gl\",optionalDependencies:{},readme:\"ERROR: No README data found!\",repository:{type:\"git\",url:\"git://github.com/mapbox/mapbox-gl-js.git\"},scripts:{build:\"npm run build-docs # invoked by publisher when publishing docs on the mb-pages branch\",\"build-dev\":\"browserify js/mapbox-gl.js --debug --standalone mapboxgl > dist/mapbox-gl-dev.js && tap --no-coverage test/build/dev.test.js\",\"build-docs\":\"documentation build --github --format html -c documentation.yml --theme ./docs/_theme --output docs/api/\",\"build-min\":\"browserify js/mapbox-gl.js --debug -t unassertify --plugin [minifyify --map mapbox-gl.js.map --output dist/mapbox-gl.js.map] --standalone mapboxgl > dist/mapbox-gl.js && tap --no-coverage test/build/min.test.js\",\"build-token\":\"browserify debug/access-token-src.js --debug -t envify > debug/access-token.js\",lint:\"eslint --ignore-path .gitignore js test bench docs/_posts/examples/*.html\",\"open-changed-examples\":\"git diff --name-only mb-pages HEAD -- docs/_posts/examples/*.html | awk '{print \\\"http://127.0.0.1:4000/mapbox-gl-js/example/\\\" substr($0,33,length($0)-37)}' | xargs open\",start:\"run-p build-token watch-dev watch-bench start-server\",\"start-bench\":\"run-p build-token watch-bench start-server\",\"start-debug\":\"run-p build-token watch-dev start-server\",\"start-docs\":\"npm run build-min && npm run build-docs && jekyll serve -w\",\"start-server\":\"st --no-cache --localhost --port 9966 --index index.html .\",test:\"npm run lint && tap --reporter dot test/js/*/*.js test/build/webpack.test.js\",\"test-suite\":\"node test/render.test.js && node test/query.test.js\",\"watch-bench\":\"node bench/download-data.js && watchify bench/index.js --plugin [minifyify --no-map] -t [babelify --presets react] -t unassertify -t envify -o bench/bench.js -v\",\"watch-dev\":\"watchify js/mapbox-gl.js --debug --standalone mapboxgl -o dist/mapbox-gl-dev.js -v\"},version:\"0.22.1\"}},{}],445:[function(t,e,r){\"use strict\";function n(t,e,r){for(var n=new Array(t),i=0;i<t;++i)n[i]=0,i===e&&(n[i]+=.5),i===r&&(n[i]+=.5);return n}function i(t,e){if(0===e||e===(1<<t+1)-1)return[];for(var r=[],i=[],a=0;a<=t;++a)if(e&1<<a){r.push(n(t,a-1,a-1)),i.push(null);for(var s=0;s<=t;++s)~e&1<<s&&(r.push(n(t,a-1,s-1)),i.push([a,s]))}var l=o(r),u=[];t:for(var a=0;a<l.length;++a){for(var c=l[a],h=[],s=0;s<c.length;++s){if(!i[c[s]])continue t;h.push(i[c[s]].slice())}u.push(h)}return u}function a(t){for(var e=1<<t+1,r=new Array(e),n=0;n<e;++n)r[n]=i(t,n);return r}e.exports=a;var o=t(\"convex-hull\")},{\"convex-hull\":103}],446:[function(t,e,r){function n(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3];return t[0]=r[0]*n+r[4]*i+r[8]*a+r[12]*o,t[1]=r[1]*n+r[5]*i+r[9]*a+r[13]*o,t[2]=r[2]*n+r[6]*i+r[10]*a+r[14]*o,t[3]=r[3]*n+r[7]*i+r[11]*a+r[15]*o,t}function i(t,e){t[0][0]=e[0],t[0][1]=e[1],t[0][2]=e[2],t[1][0]=e[4],t[1][1]=e[5],t[1][2]=e[6],t[2][0]=e[8],t[2][1]=e[9],t[2][2]=e[10]}function a(t,e,r,n,i){t[0]=e[0]*n+r[0]*i,t[1]=e[1]*n+r[1]*i,t[2]=e[2]*n+r[2]*i}var o=t(\"./normalize\"),s=t(\"gl-mat4/create\"),l=t(\"gl-mat4/clone\"),u=t(\"gl-mat4/determinant\"),c=t(\"gl-mat4/invert\"),h=t(\"gl-mat4/transpose\"),f={length:t(\"gl-vec3/length\"),normalize:t(\"gl-vec3/normalize\"),dot:t(\"gl-vec3/dot\"),cross:t(\"gl-vec3/cross\")},d=s(),p=s(),m=[0,0,0,0],v=[[0,0,0],[0,0,0],[0,0,0]],g=[0,0,0];e.exports=function(t,e,r,s,y,b){if(e||(e=[0,0,0]),r||(r=[0,0,0]),s||(s=[0,0,0]),y||(y=[0,0,0,1]),b||(b=[0,0,0,1]),!o(d,t))return!1;if(l(p,d),p[3]=0,p[7]=0,p[11]=0,p[15]=1,Math.abs(u(p)<1e-8))return!1;var x=d[3],_=d[7],w=d[11],M=d[12],k=d[13],A=d[14],T=d[15];if(0!==x||0!==_||0!==w){m[0]=x,m[1]=_,m[2]=w,m[3]=T;if(!c(p,p))return!1;h(p,p),n(y,m,p)}else y[0]=y[1]=y[2]=0,y[3]=1;if(e[0]=M,e[1]=k,e[2]=A,i(v,d),r[0]=f.length(v[0]),f.normalize(v[0],v[0]),s[0]=f.dot(v[0],v[1]),a(v[1],v[1],v[0],1,-s[0]),r[1]=f.length(v[1]),f.normalize(v[1],v[1]),s[0]/=r[1],s[1]=f.dot(v[0],v[2]),a(v[2],v[2],v[0],1,-s[1]),s[2]=f.dot(v[1],v[2]),a(v[2],v[2],v[1],1,-s[2]),r[2]=f.length(v[2]),f.normalize(v[2],v[2]),s[1]/=r[2],s[2]/=r[2],f.cross(g,v[1],v[2]),f.dot(v[0],g)<0)for(var S=0;S<3;S++)r[S]*=-1,v[S][0]*=-1,v[S][1]*=-1,v[S][2]*=-1;return b[0]=.5*Math.sqrt(Math.max(1+v[0][0]-v[1][1]-v[2][2],0)),b[1]=.5*Math.sqrt(Math.max(1-v[0][0]+v[1][1]-v[2][2],0)),b[2]=.5*Math.sqrt(Math.max(1-v[0][0]-v[1][1]+v[2][2],0)),b[3]=.5*Math.sqrt(Math.max(1+v[0][0]+v[1][1]+v[2][2],0)),v[2][1]>v[1][2]&&(b[0]=-b[0]),v[0][2]>v[2][0]&&(b[1]=-b[1]),v[1][0]>v[0][1]&&(b[2]=-b[2]),!0}},{\"./normalize\":447,\"gl-mat4/clone\":175,\"gl-mat4/create\":176,\"gl-mat4/determinant\":177,\"gl-mat4/invert\":181,\"gl-mat4/transpose\":191,\"gl-vec3/cross\":272,\"gl-vec3/dot\":273,\"gl-vec3/length\":274,\"gl-vec3/normalize\":276}],447:[function(t,e,r){e.exports=function(t,e){var r=e[15];if(0===r)return!1;for(var n=1/r,i=0;i<16;i++)t[i]=e[i]*n;return!0}},{}],448:[function(t,e,r){function n(t,e,r,n){if(0===c(e)||0===c(r))return!1;var i=u(e,f.translate,f.scale,f.skew,f.perspective,f.quaternion),a=u(r,d.translate,d.scale,d.skew,d.perspective,d.quaternion);return!(!i||!a)&&(s(p.translate,f.translate,d.translate,n),s(p.skew,f.skew,d.skew,n),s(p.scale,f.scale,d.scale,n),s(p.perspective,f.perspective,d.perspective,n),h(p.quaternion,f.quaternion,d.quaternion,n),l(t,p.translate,p.scale,p.skew,p.perspective,p.quaternion),!0)}function i(){return{translate:a(),scale:a(1),skew:a(),perspective:o(),quaternion:o()}}function a(t){return[t||0,t||0,t||0]}function o(){return[0,0,0,1]}var s=t(\"gl-vec3/lerp\"),l=t(\"mat4-recompose\"),u=t(\"mat4-decompose\"),c=t(\"gl-mat4/determinant\"),h=t(\"quat-slerp\"),f=i(),d=i(),p=i();e.exports=n},{\"gl-mat4/determinant\":177,\"gl-vec3/lerp\":275,\"mat4-decompose\":446,\"mat4-recompose\":449,\"quat-slerp\":489}],449:[function(t,e,r){var n={identity:t(\"gl-mat4/identity\"),translate:t(\"gl-mat4/translate\"),multiply:t(\"gl-mat4/multiply\"),create:t(\"gl-mat4/create\"),scale:t(\"gl-mat4/scale\"),fromRotationTranslation:t(\"gl-mat4/fromRotationTranslation\")},i=(n.create(),n.create());e.exports=function(t,e,r,a,o,s){return n.identity(t),n.fromRotationTranslation(t,s,e),t[3]=o[0],t[7]=o[1],t[11]=o[2],t[15]=o[3],n.identity(i),0!==a[2]&&(i[9]=a[2],n.multiply(t,t,i)),0!==a[1]&&(i[9]=0,i[8]=a[1],n.multiply(t,t,i)),0!==a[0]&&(i[8]=0,i[4]=a[0],n.multiply(t,t,i)),n.scale(t,t,r),t}},{\"gl-mat4/create\":176,\"gl-mat4/fromRotationTranslation\":179,\"gl-mat4/identity\":180,\"gl-mat4/multiply\":183,\"gl-mat4/scale\":189,\"gl-mat4/translate\":190}],450:[function(t,e,r){\"use strict\";function n(t){this._components=t.slice(),this._time=[0],this.prevMatrix=t.slice(),this.nextMatrix=t.slice(),this.computedMatrix=t.slice(),this.computedInverse=t.slice(),this.computedEye=[0,0,0],this.computedUp=[0,0,0],this.computedCenter=[0,0,0],this.computedRadius=[0],this._limits=[-1/0,1/0]}function i(t){return t=t||{},new n(t.matrix||[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])}var a=t(\"binary-search-bounds\"),o=t(\"mat4-interpolate\"),s=t(\"gl-mat4/invert\"),l=t(\"gl-mat4/rotateX\"),u=t(\"gl-mat4/rotateY\"),c=t(\"gl-mat4/rotateZ\"),h=t(\"gl-mat4/lookAt\"),f=t(\"gl-mat4/translate\"),d=(t(\"gl-mat4/scale\"),t(\"gl-vec3/normalize\")),p=[0,0,0];e.exports=i;var m=n.prototype;m.recalcMatrix=function(t){var e=this._time,r=a.le(e,t),n=this.computedMatrix;if(!(r<0)){var i=this._components;if(r===e.length-1)for(var l=16*r,u=0;u<16;++u)n[u]=i[l++];else{for(var c=e[r+1]-e[r],l=16*r,h=this.prevMatrix,f=!0,u=0;u<16;++u)h[u]=i[l++];for(var p=this.nextMatrix,u=0;u<16;++u)p[u]=i[l++],f=f&&h[u]===p[u];if(c<1e-6||f)for(var u=0;u<16;++u)n[u]=h[u];else o(n,h,p,(t-e[r])/c)}var m=this.computedUp;m[0]=n[1],m[1]=n[5],m[2]=n[9],d(m,m);var v=this.computedInverse;s(v,n);var g=this.computedEye,y=v[15];g[0]=v[12]/y,g[1]=v[13]/y,g[2]=v[14]/y;for(var b=this.computedCenter,x=Math.exp(this.computedRadius[0]),u=0;u<3;++u)b[u]=g[u]-n[2+4*u]*x}},m.idle=function(t){if(!(t<this.lastT())){for(var e=this._components,r=e.length-16,n=0;n<16;++n)e.push(e[r++]);this._time.push(t)}},m.flush=function(t){var e=a.gt(this._time,t)-2;e<0||(this._time.splice(0,e),this._components.splice(0,16*e))},m.lastT=function(){return this._time[this._time.length-1]},m.lookAt=function(t,e,r,n){this.recalcMatrix(t),e=e||this.computedEye,r=r||p,n=n||this.computedUp,this.setMatrix(t,h(this.computedMatrix,e,r,n));for(var i=0,a=0;a<3;++a)i+=Math.pow(r[a]-e[a],2);i=Math.log(Math.sqrt(i)),this.computedRadius[0]=i},m.rotate=function(t,e,r,n){this.recalcMatrix(t);var i=this.computedInverse;e&&u(i,i,e),r&&l(i,i,r),n&&c(i,i,n),this.setMatrix(t,s(this.computedMatrix,i))};var v=[0,0,0];m.pan=function(t,e,r,n){v[0]=-(e||0),v[1]=-(r||0),v[2]=-(n||0),this.recalcMatrix(t);var i=this.computedInverse;f(i,i,v),this.setMatrix(t,s(i,i))},m.translate=function(t,e,r,n){v[0]=e||0,v[1]=r||0,v[2]=n||0,this.recalcMatrix(t);var i=this.computedMatrix;f(i,i,v),this.setMatrix(t,i)},m.setMatrix=function(t,e){if(!(t<this.lastT())){this._time.push(t);for(var r=0;r<16;++r)this._components.push(e[r])}},m.setDistance=function(t,e){this.computedRadius[0]=e},m.setDistanceLimits=function(t,e){var r=this._limits;r[0]=t,r[1]=e},m.getDistanceLimits=function(t){var e=this._limits;return t?(t[0]=e[0],t[1]=e[1],t):e}},{\"binary-search-bounds\":66,\"gl-mat4/invert\":181,\"gl-mat4/lookAt\":182,\"gl-mat4/rotateX\":186,\"gl-mat4/rotateY\":187,\"gl-mat4/rotateZ\":188,\"gl-mat4/scale\":189,\"gl-mat4/translate\":190,\"gl-vec3/normalize\":276,\"mat4-interpolate\":448}],451:[function(t,e,r){\"use strict\";function n(t){var e=t.length;if(e<3){for(var r=new Array(e),n=0;n<e;++n)r[n]=n;return 2===e&&t[0][0]===t[1][0]&&t[0][1]===t[1][1]?[0]:r}for(var a=new Array(e),n=0;n<e;++n)a[n]=n;a.sort(function(e,r){var n=t[e][0]-t[r][0];return n||t[e][1]-t[r][1]});for(var o=[a[0],a[1]],s=[a[0],a[1]],n=2;n<e;++n){for(var l=a[n],u=t[l],c=o.length;c>1&&i(t[o[c-2]],t[o[c-1]],u)<=0;)c-=1,o.pop();for(o.push(l),c=s.length;c>1&&i(t[s[c-2]],t[s[c-1]],u)>=0;)c-=1,s.pop();s.push(l)}for(var r=new Array(s.length+o.length-2),h=0,n=0,f=o.length;n<f;++n)r[h++]=o[n];for(var d=s.length-2;d>0;--d)r[h++]=s[d];return r}e.exports=n;var i=t(\"robust-orientation\")[3]},{\"robust-orientation\":508}],452:[function(t,e,r){\"use strict\";function n(t,e){function r(t){var e=!1;return\"altKey\"in t&&(e=e||t.altKey!==v.alt,v.alt=!!t.altKey),\"shiftKey\"in t&&(e=e||t.shiftKey!==v.shift,v.shift=!!t.shiftKey),\"ctrlKey\"in t&&(e=e||t.ctrlKey!==v.control,v.control=!!t.ctrlKey),\"metaKey\"in t&&(e=e||t.metaKey!==v.meta,v.meta=!!t.metaKey),e}function n(t,n){var a=i.x(n),o=i.y(n);\"buttons\"in n&&(t=0|n.buttons),(t!==d||a!==p||o!==m||r(n))&&(d=0|t,p=a||0,m=o||0,e&&e(d,p,m,v))}function a(t){n(0,t)}function o(){(d||p||m||v.shift||v.alt||v.meta||v.control)&&(p=m=0,d=0,v.shift=v.alt=v.control=v.meta=!1,e&&e(0,0,0,v))}function s(t){r(t)&&e&&e(d,p,m,v)}function l(t){0===i.buttons(t)?n(0,t):n(d,t)}function u(t){n(d|i.buttons(t),t)}function c(t){n(d&~i.buttons(t),t)}function h(){g||(g=!0,t.addEventListener(\"mousemove\",l),t.addEventListener(\"mousedown\",u),t.addEventListener(\"mouseup\",c),t.addEventListener(\"mouseleave\",a),t.addEventListener(\"mouseenter\",a),t.addEventListener(\"mouseout\",a),t.addEventListener(\"mouseover\",a),t.addEventListener(\"blur\",o),t.addEventListener(\"keyup\",s),t.addEventListener(\"keydown\",s),t.addEventListener(\"keypress\",s),t!==window&&(window.addEventListener(\"blur\",o),window.addEventListener(\"keyup\",s),window.addEventListener(\"keydown\",s),window.addEventListener(\"keypress\",s)))}function f(){g&&(g=!1,t.removeEventListener(\"mousemove\",l),t.removeEventListener(\"mousedown\",u),t.removeEventListener(\"mouseup\",c),t.removeEventListener(\"mouseleave\",a),t.removeEventListener(\"mouseenter\",a),t.removeEventListener(\"mouseout\",a),t.removeEventListener(\"mouseover\",a),t.removeEventListener(\"blur\",o),t.removeEventListener(\"keyup\",s),t.removeEventListener(\"keydown\",s),t.removeEventListener(\"keypress\",s),t!==window&&(window.removeEventListener(\"blur\",o),window.removeEventListener(\"keyup\",s),window.removeEventListener(\"keydown\",s),window.removeEventListener(\"keypress\",s)))}e||(e=t,t=window);var d=0,p=0,m=0,v={shift:!1,alt:!1,control:!1,meta:!1},g=!1;h();var y={element:t};return Object.defineProperties(y,{enabled:{get:function(){return g},set:function(t){t?h():f()},enumerable:!0},buttons:{get:function(){return d},enumerable:!0},x:{get:function(){return p},enumerable:!0},y:{get:function(){return m},enumerable:!0},mods:{get:function(){return v},enumerable:!0}}),y}e.exports=n;var i=t(\"mouse-event\")},{\"mouse-event\":454}],453:[function(t,e,r){function n(t,e,r){e=e||t.currentTarget||t.srcElement,Array.isArray(r)||(r=[0,0]);var n=t.clientX||0,a=t.clientY||0,o=i(e);return r[0]=n-o.left,r[1]=a-o.top,r}function i(t){return t===window||t===document||t===document.body?a:t.getBoundingClientRect()}var a={left:0,top:0};e.exports=n},{}],454:[function(t,e,r){\"use strict\";function n(t){if(\"object\"==typeof t){if(\"buttons\"in t)return t.buttons;if(\"which\"in t){var e=t.which;if(2===e)return 4;if(3===e)return 2;if(e>0)return 1<<e-1}else if(\"button\"in t){var e=t.button;if(1===e)return 4;if(2===e)return 2;if(e>=0)return 1<<e}}return 0}function i(t){return t.target||t.srcElement||window}function a(t){if(\"object\"==typeof t){if(\"offsetX\"in t)return t.offsetX;var e=i(t),r=e.getBoundingClientRect();return t.clientX-r.left}return 0}function o(t){if(\"object\"==typeof t){if(\"offsetY\"in t)return t.offsetY;var e=i(t),r=e.getBoundingClientRect();return t.clientY-r.top}return 0}r.buttons=n,r.element=i,r.x=a,r.y=o},{}],455:[function(t,e,r){\"use strict\";function n(t,e,r){\"function\"==typeof t&&(r=!!e,e=t,t=window);var n=i(\"ex\",t),a=function(t){r&&t.preventDefault();var i=t.deltaX||0,a=t.deltaY||0,o=t.deltaZ||0,s=t.deltaMode,l=1;switch(s){case 1:l=n;break;case 2:l=window.innerHeight}if(i*=l,a*=l,o*=l,i||a||o)return e(i,a,o,t)};return t.addEventListener(\"wheel\",a),a}var i=t(\"to-px\");e.exports=n},{\"to-px\":535}],456:[function(t,e,r){\"use strict\";function n(t){return\"a\"+t}function i(t){return\"d\"+t}function a(t,e){return\"c\"+t+\"_\"+e}function o(t){return\"s\"+t}function s(t,e){return\"t\"+t+\"_\"+e}function l(t){return\"o\"+t}function u(t){return\"x\"+t}function c(t){return\"p\"+t}function h(t,e){return\"d\"+t+\"_\"+e}function f(t){return\"i\"+t}function d(t,e){return\"u\"+t+\"_\"+e}function p(t){return\"b\"+t}function m(t){return\"y\"+t}function v(t){return\"e\"+t}function g(t){return\"v\"+t}function y(t,e,r){for(var n=0,i=0;i<t;++i)e&1<<i&&(n|=1<<r[i]);return n}function b(t,e,r,b,x,E){function L(t,e){j.push(\"for(\",f(x[t]),\"=\",e,\";\",f(x[t]),\"<\",o(x[t]),\";\",\"++\",f(x[t]),\"){\")}function C(t){for(var e=0;e<O;++e)j.push(c(e),\"+=\",d(e,x[t]),\";\");j.push(\"}\")}function I(t){for(var e=t-1;e>=0;--e)L(e,0);for(var r=[],e=0;e<O;++e)E[e]?r.push(i(e)+\".get(\"+c(e)+\")\"):r.push(i(e)+\"[\"+c(e)+\"]\");for(var e=0;e<b;++e)r.push(u(e));j.push(M,\"[\",T,\"++]=phase(\",r.join(),\");\");for(var e=0;e<t;++e)C(e);for(var n=0;n<O;++n)j.push(c(n),\"+=\",d(n,x[t]),\";\")}function z(t){for(var e=0;e<O;++e)E[e]?j.push(a(e,0),\"=\",i(e),\".get(\",c(e),\");\"):j.push(a(e,0),\"=\",i(e),\"[\",c(e),\"];\");for(var r=[],e=0;e<O;++e)r.push(a(e,0));for(var e=0;e<b;++e)r.push(u(e));j.push(p(0),\"=\",M,\"[\",T,\"]=phase(\",r.join(),\");\");for(var n=1;n<1<<R;++n)j.push(p(n),\"=\",M,\"[\",T,\"+\",v(n),\"];\");for(var o=[],n=1;n<1<<R;++n)o.push(\"(\"+p(0)+\"!==\"+p(n)+\")\");j.push(\"if(\",o.join(\"||\"),\"){\");for(var s=[],e=0;e<R;++e)s.push(f(e));for(var e=0;e<O;++e){s.push(a(e,0));for(var n=1;n<1<<R;++n)E[e]?j.push(a(e,n),\"=\",i(e),\".get(\",c(e),\"+\",h(e,n),\");\"):j.push(a(e,n),\"=\",i(e),\"[\",c(e),\"+\",h(e,n),\"];\"),s.push(a(e,n))}for(var e=0;e<1<<R;++e)s.push(p(e));for(var e=0;e<b;++e)s.push(u(e));j.push(\"vertex(\",s.join(),\");\",g(0),\"=\",w,\"[\",T,\"]=\",k,\"++;\");for(var l=(1<<R)-1,d=p(l),n=0;n<R;++n)if(0==(t&~(1<<n))){for(var m=l^1<<n,y=p(m),x=[],_=m;_>0;_=_-1&m)x.push(w+\"[\"+T+\"+\"+v(_)+\"]\");x.push(g(0));for(var _=0;_<O;++_)1&n?x.push(a(_,l),a(_,m)):x.push(a(_,m),a(_,l));1&n?x.push(d,y):x.push(y,d);for(var _=0;_<b;++_)x.push(u(_));j.push(\"if(\",d,\"!==\",y,\"){\",\"face(\",x.join(),\")}\")}j.push(\"}\",T,\"+=1;\")}function D(){for(var t=1;t<1<<R;++t)j.push(S,\"=\",v(t),\";\",v(t),\"=\",m(t),\";\",m(t),\"=\",S,\";\")}function P(t,e){if(t<0)return void z(e);I(t),j.push(\"if(\",o(x[t]),\">0){\",f(x[t]),\"=1;\"),P(t-1,e|1<<x[t]);for(var r=0;r<O;++r)j.push(c(r),\"+=\",d(r,x[t]),\";\");t===R-1&&(j.push(T,\"=0;\"),D()),L(t,2),P(t-1,e),t===R-1&&(j.push(\"if(\",f(x[R-1]),\"&1){\",T,\"=0;}\"),D()),C(t),j.push(\"}\")}var O=E.length,R=x.length;if(R<2)throw new Error(\"ndarray-extract-contour: Dimension must be at least 2\");for(var F=\"extractContour\"+x.join(\"_\"),j=[],N=[],B=[],U=0;U<O;++U)B.push(n(U));for(var U=0;U<b;++U)B.push(u(U));for(var U=0;U<R;++U)N.push(o(U)+\"=\"+n(0)+\".shape[\"+U+\"]|0\");for(var U=0;U<O;++U){N.push(i(U)+\"=\"+n(U)+\".data\",l(U)+\"=\"+n(U)+\".offset|0\");for(var V=0;V<R;++V)N.push(s(U,V)+\"=\"+n(U)+\".stride[\"+V+\"]|0\")}for(var U=0;U<O;++U){N.push(c(U)+\"=\"+l(U)),N.push(a(U,0));for(var V=1;V<1<<R;++V){for(var H=[],q=0;q<R;++q)V&1<<q&&H.push(\"-\"+s(U,q));N.push(h(U,V)+\"=(\"+H.join(\"\")+\")|0\"),N.push(a(U,V)+\"=0\")}}for(var U=0;U<O;++U)for(var V=0;V<R;++V){var G=[s(U,x[V])];V>0&&G.push(s(U,x[V-1])+\"*\"+o(x[V-1])),N.push(d(U,x[V])+\"=(\"+G.join(\"-\")+\")|0\")}for(var U=0;U<R;++U)N.push(f(U)+\"=0\");N.push(k+\"=0\");for(var Y=[\"2\"],U=R-2;U>=0;--U)Y.push(o(x[U]));N.push(A+\"=(\"+Y.join(\"*\")+\")|0\",M+\"=mallocUint32(\"+A+\")\",w+\"=mallocUint32(\"+A+\")\",T+\"=0\"),N.push(p(0)+\"=0\");for(var V=1;V<1<<R;++V){for(var W=[],X=[],q=0;q<R;++q)V&1<<q&&(0===X.length?W.push(\"1\"):W.unshift(X.join(\"*\"))),X.push(o(x[q]));var Z=\"\";W[0].indexOf(o(x[R-2]))<0&&(Z=\"-\");var J=y(R,V,x);N.push(v(J)+\"=(-\"+W.join(\"-\")+\")|0\",m(J)+\"=(\"+Z+W.join(\"-\")+\")|0\",p(J)+\"=0\")}N.push(g(0)+\"=0\",S+\"=0\"),P(R-1,0),j.push(\"freeUint32(\",w,\");freeUint32(\",M,\");\");var K=[\"'use strict';\",\"function \",F,\"(\",B.join(),\"){\",\"var \",N.join(),\";\",j.join(\"\"),\"}\",\"return \",F].join(\"\");return new Function(\"vertex\",\"face\",\"phase\",\"mallocUint32\",\"freeUint32\",K)(t,e,r,_.mallocUint32,_.freeUint32)}function x(t){function e(t){throw new Error(\"ndarray-extract-contour: \"+t)}\"object\"!=typeof t&&e(\"Must specify arguments\");var r=t.order;Array.isArray(r)||e(\"Must specify order\");var n=t.arrayArguments||1;n<1&&e(\"Must have at least one array argument\");var i=t.scalarArguments||0;i<0&&e(\"Scalar arg count must be > 0\"),\n", "\"function\"!=typeof t.vertex&&e(\"Must specify vertex creation function\"),\"function\"!=typeof t.cell&&e(\"Must specify cell creation function\"),\"function\"!=typeof t.phase&&e(\"Must specify phase function\");for(var a=t.getters||[],o=new Array(n),s=0;s<n;++s)a.indexOf(s)>=0?o[s]=!0:o[s]=!1;return b(t.vertex,t.cell,t.phase,i,r,o)}var _=t(\"typedarray-pool\");e.exports=x;var w=\"V\",M=\"P\",k=\"N\",A=\"Q\",T=\"X\",S=\"T\"},{\"typedarray-pool\":541}],457:[function(t,e,r){\"use strict\";var n=t(\"cwise/lib/wrapper\")({args:[\"index\",\"array\",\"scalar\"],pre:{body:\"{}\",args:[],thisVars:[],localVars:[]},body:{body:\"{_inline_1_arg1_=_inline_1_arg2_.apply(void 0,_inline_1_arg0_)}\",args:[{name:\"_inline_1_arg0_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_1_arg1_\",lvalue:!0,rvalue:!1,count:1},{name:\"_inline_1_arg2_\",lvalue:!1,rvalue:!0,count:1}],thisVars:[],localVars:[]},post:{body:\"{}\",args:[],thisVars:[],localVars:[]},debug:!1,funcName:\"cwise\",blockSize:64});e.exports=function(t,e){return n(t,e),t}},{\"cwise/lib/wrapper\":113}],458:[function(t,e,r){\"use strict\";function n(t){if(t in l)return l[t];for(var e=[],r=0;r<t;++r)e.push(\"out\",r,\"s=0.5*(inp\",r,\"l-inp\",r,\"r);\");for(var n=[\"array\"],i=[\"junk\"],r=0;r<t;++r){n.push(\"array\"),i.push(\"out\"+r+\"s\");var a=o(t);a[r]=-1,n.push({array:0,offset:a.slice()}),a[r]=1,n.push({array:0,offset:a.slice()}),i.push(\"inp\"+r+\"l\",\"inp\"+r+\"r\")}return l[t]=s({args:n,pre:c,post:c,body:{body:e.join(\"\"),args:i.map(function(t){return{name:t,lvalue:0===t.indexOf(\"out\"),rvalue:0===t.indexOf(\"inp\"),count:\"junk\"!==t|0}}),thisVars:[],localVars:[]},funcName:\"fdTemplate\"+t})}function i(t){var e=t.join(),r=u[e];if(r)return r;for(var i=t.length,a=[\"function gradient(dst,src){var s=src.shape.slice();\"],o=0;o<1<<i;++o){for(var s=[],c=0;c<i;++c)o&1<<c&&s.push(c+1);for(var d=0;d<1<<s.length;++d){for(var p=s.slice(),c=0;c<s.length;++c)d&1<<c&&(p[c]=-p[c]);!function(e){for(var r=i-e.length,n=[],o=[],s=[],l=0;l<i;++l)e.indexOf(l+1)>=0?s.push(\"0\"):e.indexOf(-(l+1))>=0?s.push(\"s[\"+l+\"]-1\"):(s.push(\"-1\"),n.push(\"1\"),o.push(\"s[\"+l+\"]-2\"));var u=\".lo(\"+n.join()+\").hi(\"+o.join()+\")\";if(0===n.length&&(u=\"\"),r>0){a.push(\"if(1\");for(var l=0;l<i;++l)e.indexOf(l+1)>=0||e.indexOf(-(l+1))>=0||a.push(\"&&s[\",l,\"]>2\");a.push(\"){grad\",r,\"(src.pick(\",s.join(),\")\",u);for(var l=0;l<i;++l)e.indexOf(l+1)>=0||e.indexOf(-(l+1))>=0||a.push(\",dst.pick(\",s.join(),\",\",l,\")\",u);a.push(\");\")}for(var l=0;l<e.length;++l){var c=Math.abs(e[l])-1,h=\"dst.pick(\"+s.join()+\",\"+c+\")\"+u;switch(t[c]){case\"clamp\":var f=s.slice(),d=s.slice();e[l]<0?f[c]=\"s[\"+c+\"]-2\":d[c]=\"1\",0===r?a.push(\"if(s[\",c,\"]>1){dst.set(\",s.join(),\",\",c,\",0.5*(src.get(\",f.join(),\")-src.get(\",d.join(),\")))}else{dst.set(\",s.join(),\",\",c,\",0)};\"):a.push(\"if(s[\",c,\"]>1){diff(\",h,\",src.pick(\",f.join(),\")\",u,\",src.pick(\",d.join(),\")\",u,\");}else{zero(\",h,\");};\");break;case\"mirror\":0===r?a.push(\"dst.set(\",s.join(),\",\",c,\",0);\"):a.push(\"zero(\",h,\");\");break;case\"wrap\":var p=s.slice(),m=s.slice();e[l]<0?(p[c]=\"s[\"+c+\"]-2\",m[c]=\"0\"):(p[c]=\"s[\"+c+\"]-1\",m[c]=\"1\"),0===r?a.push(\"if(s[\",c,\"]>2){dst.set(\",s.join(),\",\",c,\",0.5*(src.get(\",p.join(),\")-src.get(\",m.join(),\")))}else{dst.set(\",s.join(),\",\",c,\",0)};\"):a.push(\"if(s[\",c,\"]>2){diff(\",h,\",src.pick(\",p.join(),\")\",u,\",src.pick(\",m.join(),\")\",u,\");}else{zero(\",h,\");};\");break;default:throw new Error(\"ndarray-gradient: Invalid boundary condition\")}}r>0&&a.push(\"};\")}(p)}}a.push(\"return dst;};return gradient\");for(var m=[\"diff\",\"zero\"],v=[h,f],o=1;o<=i;++o)m.push(\"grad\"+o),v.push(n(o));m.push(a.join(\"\"));var g=Function.apply(void 0,m),r=g.apply(void 0,v);return l[e]=r,r}function a(t,e,r){if(Array.isArray(r)){if(r.length!==e.dimension)throw new Error(\"ndarray-gradient: invalid boundary conditions\")}else r=\"string\"==typeof r?o(e.dimension,r):o(e.dimension,\"clamp\");if(t.dimension!==e.dimension+1)throw new Error(\"ndarray-gradient: output dimension must be +1 input dimension\");if(t.shape[e.dimension]!==e.dimension)throw new Error(\"ndarray-gradient: output shape must match input shape\");for(var n=0;n<e.dimension;++n)if(t.shape[n]!==e.shape[n])throw new Error(\"ndarray-gradient: shape mismatch\");return 0===e.size?t:e.dimension<=0?(t.set(0),t):i(r)(t,e)}e.exports=a;var o=t(\"dup\"),s=t(\"cwise-compiler\"),l={},u={},c={body:\"\",args:[],thisVars:[],localVars:[]},h=s({args:[\"array\",\"array\",\"array\"],pre:c,post:c,body:{args:[{name:\"out\",lvalue:!0,rvalue:!1,count:1},{name:\"left\",lvalue:!1,rvalue:!0,count:1},{name:\"right\",lvalue:!1,rvalue:!0,count:1}],body:\"out=0.5*(left-right)\",thisVars:[],localVars:[]},funcName:\"cdiff\"}),f=s({args:[\"array\"],pre:c,post:c,body:{args:[{name:\"out\",lvalue:!0,rvalue:!1,count:1}],body:\"out=0\",thisVars:[],localVars:[]},funcName:\"zero\"})},{\"cwise-compiler\":110,dup:125}],459:[function(t,e,r){\"use strict\";function n(t,e,r){var n=e.dimension,o=a([],r);return i(t,e,function(t,e){for(var r=0;r<n;++r){t[r]=o[(n+1)*n+r];for(var i=0;i<n;++i)t[r]+=o[(n+1)*i+r]*e[i]}for(var a=o[(n+1)*(n+1)-1],i=0;i<n;++i)a+=o[(n+1)*i+n]*e[i];for(var s=1/a,r=0;r<n;++r)t[r]*=s;return t}),t}var i=t(\"ndarray-warp\"),a=t(\"gl-matrix-invert\");e.exports=n},{\"gl-matrix-invert\":192,\"ndarray-warp\":466}],460:[function(t,e,r){\"use strict\";function n(t,e){var r=Math.floor(e),n=e-r,i=0<=r&&r<t.shape[0],a=0<=r+1&&r+1<t.shape[0];return(1-n)*(i?+t.get(r):0)+n*(a?+t.get(r+1):0)}function i(t,e,r){var n=Math.floor(e),i=e-n,a=0<=n&&n<t.shape[0],o=0<=n+1&&n+1<t.shape[0],s=Math.floor(r),l=r-s,u=0<=s&&s<t.shape[1],c=0<=s+1&&s+1<t.shape[1],h=a&&u?t.get(n,s):0,f=a&&c?t.get(n,s+1):0;return(1-l)*((1-i)*h+i*(o&&u?t.get(n+1,s):0))+l*((1-i)*f+i*(o&&c?t.get(n+1,s+1):0))}function a(t,e,r,n){var i=Math.floor(e),a=e-i,o=0<=i&&i<t.shape[0],s=0<=i+1&&i+1<t.shape[0],l=Math.floor(r),u=r-l,c=0<=l&&l<t.shape[1],h=0<=l+1&&l+1<t.shape[1],f=Math.floor(n),d=n-f,p=0<=f&&f<t.shape[2],m=0<=f+1&&f+1<t.shape[2],v=o&&c&&p?t.get(i,l,f):0,g=o&&h&&p?t.get(i,l+1,f):0,y=s&&c&&p?t.get(i+1,l,f):0,b=s&&h&&p?t.get(i+1,l+1,f):0,x=o&&c&&m?t.get(i,l,f+1):0,_=o&&h&&m?t.get(i,l+1,f+1):0;return(1-d)*((1-u)*((1-a)*v+a*y)+u*((1-a)*g+a*b))+d*((1-u)*((1-a)*x+a*(s&&c&&m?t.get(i+1,l,f+1):0))+u*((1-a)*_+a*(s&&h&&m?t.get(i+1,l+1,f+1):0)))}function o(t){var e,r,n=0|t.shape.length,i=new Array(n),a=new Array(n),o=new Array(n),s=new Array(n);for(e=0;e<n;++e)r=+arguments[e+1],i[e]=Math.floor(r),a[e]=r-i[e],o[e]=0<=i[e]&&i[e]<t.shape[e],s[e]=0<=i[e]+1&&i[e]+1<t.shape[e];var l,u,c,h=0;t:for(e=0;e<1<<n;++e){for(u=1,c=t.offset,l=0;l<n;++l)if(e&1<<l){if(!s[l])continue t;u*=a[l],c+=t.stride[l]*(i[l]+1)}else{if(!o[l])continue t;u*=1-a[l],c+=t.stride[l]*i[l]}h+=u*t.data[c]}return h}function s(t,e,r,s){switch(t.shape.length){case 0:return 0;case 1:return n(t,e);case 2:return i(t,e,r);case 3:return a(t,e,r,s);default:return o.apply(void 0,arguments)}}e.exports=s,e.exports.d1=n,e.exports.d2=i,e.exports.d3=a},{}],461:[function(t,e,r){\"use strict\";function n(t){if(!t)return s;for(var e=0;e<t.args.length;++e){var r=t.args[e];t.args[e]=0===e?{name:r,lvalue:!0,rvalue:!!t.rvalue,count:t.count||1}:{name:r,lvalue:!1,rvalue:!0,count:1}}return t.thisVars||(t.thisVars=[]),t.localVars||(t.localVars=[]),t}function i(t){return o({args:t.args,pre:n(t.pre),body:n(t.body),post:n(t.proc),funcName:t.funcName})}function a(t){for(var e=[],r=0;r<t.args.length;++r)e.push(\"a\"+r);return new Function(\"P\",[\"return function \",t.funcName,\"_ndarrayops(\",e.join(\",\"),\") {P(\",e.join(\",\"),\");return a0}\"].join(\"\"))(i(t))}var o=t(\"cwise-compiler\"),s={body:\"\",args:[],thisVars:[],localVars:[]},l={add:\"+\",sub:\"-\",mul:\"*\",div:\"/\",mod:\"%\",band:\"&\",bor:\"|\",bxor:\"^\",lshift:\"<<\",rshift:\">>\",rrshift:\">>>\"};!function(){for(var t in l){var e=l[t];r[t]=a({args:[\"array\",\"array\",\"array\"],body:{args:[\"a\",\"b\",\"c\"],body:\"a=b\"+e+\"c\"},funcName:t}),r[t+\"eq\"]=a({args:[\"array\",\"array\"],body:{args:[\"a\",\"b\"],body:\"a\"+e+\"=b\"},rvalue:!0,funcName:t+\"eq\"}),r[t+\"s\"]=a({args:[\"array\",\"array\",\"scalar\"],body:{args:[\"a\",\"b\",\"s\"],body:\"a=b\"+e+\"s\"},funcName:t+\"s\"}),r[t+\"seq\"]=a({args:[\"array\",\"scalar\"],body:{args:[\"a\",\"s\"],body:\"a\"+e+\"=s\"},rvalue:!0,funcName:t+\"seq\"})}}();var u={not:\"!\",bnot:\"~\",neg:\"-\",recip:\"1.0/\"};!function(){for(var t in u){var e=u[t];r[t]=a({args:[\"array\",\"array\"],body:{args:[\"a\",\"b\"],body:\"a=\"+e+\"b\"},funcName:t}),r[t+\"eq\"]=a({args:[\"array\"],body:{args:[\"a\"],body:\"a=\"+e+\"a\"},rvalue:!0,count:2,funcName:t+\"eq\"})}}();var c={and:\"&&\",or:\"||\",eq:\"===\",neq:\"!==\",lt:\"<\",gt:\">\",leq:\"<=\",geq:\">=\"};!function(){for(var t in c){var e=c[t];r[t]=a({args:[\"array\",\"array\",\"array\"],body:{args:[\"a\",\"b\",\"c\"],body:\"a=b\"+e+\"c\"},funcName:t}),r[t+\"s\"]=a({args:[\"array\",\"array\",\"scalar\"],body:{args:[\"a\",\"b\",\"s\"],body:\"a=b\"+e+\"s\"},funcName:t+\"s\"}),r[t+\"eq\"]=a({args:[\"array\",\"array\"],body:{args:[\"a\",\"b\"],body:\"a=a\"+e+\"b\"},rvalue:!0,count:2,funcName:t+\"eq\"}),r[t+\"seq\"]=a({args:[\"array\",\"scalar\"],body:{args:[\"a\",\"s\"],body:\"a=a\"+e+\"s\"},rvalue:!0,count:2,funcName:t+\"seq\"})}}();var h=[\"abs\",\"acos\",\"asin\",\"atan\",\"ceil\",\"cos\",\"exp\",\"floor\",\"log\",\"round\",\"sin\",\"sqrt\",\"tan\"];!function(){for(var t=0;t<h.length;++t){var e=h[t];r[e]=a({args:[\"array\",\"array\"],pre:{args:[],body:\"this_f=Math.\"+e,thisVars:[\"this_f\"]},body:{args:[\"a\",\"b\"],body:\"a=this_f(b)\",thisVars:[\"this_f\"]},funcName:e}),r[e+\"eq\"]=a({args:[\"array\"],pre:{args:[],body:\"this_f=Math.\"+e,thisVars:[\"this_f\"]},body:{args:[\"a\"],body:\"a=this_f(a)\",thisVars:[\"this_f\"]},rvalue:!0,count:2,funcName:e+\"eq\"})}}();var f=[\"max\",\"min\",\"atan2\",\"pow\"];!function(){for(var t=0;t<f.length;++t){var e=f[t];r[e]=a({args:[\"array\",\"array\",\"array\"],pre:{args:[],body:\"this_f=Math.\"+e,thisVars:[\"this_f\"]},body:{args:[\"a\",\"b\",\"c\"],body:\"a=this_f(b,c)\",thisVars:[\"this_f\"]},funcName:e}),r[e+\"s\"]=a({args:[\"array\",\"array\",\"scalar\"],pre:{args:[],body:\"this_f=Math.\"+e,thisVars:[\"this_f\"]},body:{args:[\"a\",\"b\",\"c\"],body:\"a=this_f(b,c)\",thisVars:[\"this_f\"]},funcName:e+\"s\"}),r[e+\"eq\"]=a({args:[\"array\",\"array\"],pre:{args:[],body:\"this_f=Math.\"+e,thisVars:[\"this_f\"]},body:{args:[\"a\",\"b\"],body:\"a=this_f(a,b)\",thisVars:[\"this_f\"]},rvalue:!0,count:2,funcName:e+\"eq\"}),r[e+\"seq\"]=a({args:[\"array\",\"scalar\"],pre:{args:[],body:\"this_f=Math.\"+e,thisVars:[\"this_f\"]},body:{args:[\"a\",\"b\"],body:\"a=this_f(a,b)\",thisVars:[\"this_f\"]},rvalue:!0,count:2,funcName:e+\"seq\"})}}();var d=[\"atan2\",\"pow\"];!function(){for(var t=0;t<d.length;++t){var e=d[t];r[e+\"op\"]=a({args:[\"array\",\"array\",\"array\"],pre:{args:[],body:\"this_f=Math.\"+e,thisVars:[\"this_f\"]},body:{args:[\"a\",\"b\",\"c\"],body:\"a=this_f(c,b)\",thisVars:[\"this_f\"]},funcName:e+\"op\"}),r[e+\"ops\"]=a({args:[\"array\",\"array\",\"scalar\"],pre:{args:[],body:\"this_f=Math.\"+e,thisVars:[\"this_f\"]},body:{args:[\"a\",\"b\",\"c\"],body:\"a=this_f(c,b)\",thisVars:[\"this_f\"]},funcName:e+\"ops\"}),r[e+\"opeq\"]=a({args:[\"array\",\"array\"],pre:{args:[],body:\"this_f=Math.\"+e,thisVars:[\"this_f\"]},body:{args:[\"a\",\"b\"],body:\"a=this_f(b,a)\",thisVars:[\"this_f\"]},rvalue:!0,count:2,funcName:e+\"opeq\"}),r[e+\"opseq\"]=a({args:[\"array\",\"scalar\"],pre:{args:[],body:\"this_f=Math.\"+e,thisVars:[\"this_f\"]},body:{args:[\"a\",\"b\"],body:\"a=this_f(b,a)\",thisVars:[\"this_f\"]},rvalue:!0,count:2,funcName:e+\"opseq\"})}}(),r.any=o({args:[\"array\"],pre:s,body:{args:[{name:\"a\",lvalue:!1,rvalue:!0,count:1}],body:\"if(a){return true}\",localVars:[],thisVars:[]},post:{args:[],localVars:[],thisVars:[],body:\"return false\"},funcName:\"any\"}),r.all=o({args:[\"array\"],pre:s,body:{args:[{name:\"x\",lvalue:!1,rvalue:!0,count:1}],body:\"if(!x){return false}\",localVars:[],thisVars:[]},post:{args:[],localVars:[],thisVars:[],body:\"return true\"},funcName:\"all\"}),r.sum=o({args:[\"array\"],pre:{args:[],localVars:[],thisVars:[\"this_s\"],body:\"this_s=0\"},body:{args:[{name:\"a\",lvalue:!1,rvalue:!0,count:1}],body:\"this_s+=a\",localVars:[],thisVars:[\"this_s\"]},post:{args:[],localVars:[],thisVars:[\"this_s\"],body:\"return this_s\"},funcName:\"sum\"}),r.prod=o({args:[\"array\"],pre:{args:[],localVars:[],thisVars:[\"this_s\"],body:\"this_s=1\"},body:{args:[{name:\"a\",lvalue:!1,rvalue:!0,count:1}],body:\"this_s*=a\",localVars:[],thisVars:[\"this_s\"]},post:{args:[],localVars:[],thisVars:[\"this_s\"],body:\"return this_s\"},funcName:\"prod\"}),r.norm2squared=o({args:[\"array\"],pre:{args:[],localVars:[],thisVars:[\"this_s\"],body:\"this_s=0\"},body:{args:[{name:\"a\",lvalue:!1,rvalue:!0,count:2}],body:\"this_s+=a*a\",localVars:[],thisVars:[\"this_s\"]},post:{args:[],localVars:[],thisVars:[\"this_s\"],body:\"return this_s\"},funcName:\"norm2squared\"}),r.norm2=o({args:[\"array\"],pre:{args:[],localVars:[],thisVars:[\"this_s\"],body:\"this_s=0\"},body:{args:[{name:\"a\",lvalue:!1,rvalue:!0,count:2}],body:\"this_s+=a*a\",localVars:[],thisVars:[\"this_s\"]},post:{args:[],localVars:[],thisVars:[\"this_s\"],body:\"return Math.sqrt(this_s)\"},funcName:\"norm2\"}),r.norminf=o({args:[\"array\"],pre:{args:[],localVars:[],thisVars:[\"this_s\"],body:\"this_s=0\"},body:{args:[{name:\"a\",lvalue:!1,rvalue:!0,count:4}],body:\"if(-a>this_s){this_s=-a}else if(a>this_s){this_s=a}\",localVars:[],thisVars:[\"this_s\"]},post:{args:[],localVars:[],thisVars:[\"this_s\"],body:\"return this_s\"},funcName:\"norminf\"}),r.norm1=o({args:[\"array\"],pre:{args:[],localVars:[],thisVars:[\"this_s\"],body:\"this_s=0\"},body:{args:[{name:\"a\",lvalue:!1,rvalue:!0,count:3}],body:\"this_s+=a<0?-a:a\",localVars:[],thisVars:[\"this_s\"]},post:{args:[],localVars:[],thisVars:[\"this_s\"],body:\"return this_s\"},funcName:\"norm1\"}),r.sup=o({args:[\"array\"],pre:{body:\"this_h=-Infinity\",args:[],thisVars:[\"this_h\"],localVars:[]},body:{body:\"if(_inline_1_arg0_>this_h)this_h=_inline_1_arg0_\",args:[{name:\"_inline_1_arg0_\",lvalue:!1,rvalue:!0,count:2}],thisVars:[\"this_h\"],localVars:[]},post:{body:\"return this_h\",args:[],thisVars:[\"this_h\"],localVars:[]}}),r.inf=o({args:[\"array\"],pre:{body:\"this_h=Infinity\",args:[],thisVars:[\"this_h\"],localVars:[]},body:{body:\"if(_inline_1_arg0_<this_h)this_h=_inline_1_arg0_\",args:[{name:\"_inline_1_arg0_\",lvalue:!1,rvalue:!0,count:2}],thisVars:[\"this_h\"],localVars:[]},post:{body:\"return this_h\",args:[],thisVars:[\"this_h\"],localVars:[]}}),r.argmin=o({args:[\"index\",\"array\",\"shape\"],pre:{body:\"{this_v=Infinity;this_i=_inline_0_arg2_.slice(0)}\",args:[{name:\"_inline_0_arg0_\",lvalue:!1,rvalue:!1,count:0},{name:\"_inline_0_arg1_\",lvalue:!1,rvalue:!1,count:0},{name:\"_inline_0_arg2_\",lvalue:!1,rvalue:!0,count:1}],thisVars:[\"this_i\",\"this_v\"],localVars:[]},body:{body:\"{if(_inline_1_arg1_<this_v){this_v=_inline_1_arg1_;for(var _inline_1_k=0;_inline_1_k<_inline_1_arg0_.length;++_inline_1_k){this_i[_inline_1_k]=_inline_1_arg0_[_inline_1_k]}}}\",args:[{name:\"_inline_1_arg0_\",lvalue:!1,rvalue:!0,count:2},{name:\"_inline_1_arg1_\",lvalue:!1,rvalue:!0,count:2}],thisVars:[\"this_i\",\"this_v\"],localVars:[\"_inline_1_k\"]},post:{body:\"{return this_i}\",args:[],thisVars:[\"this_i\"],localVars:[]}}),r.argmax=o({args:[\"index\",\"array\",\"shape\"],pre:{body:\"{this_v=-Infinity;this_i=_inline_0_arg2_.slice(0)}\",args:[{name:\"_inline_0_arg0_\",lvalue:!1,rvalue:!1,count:0},{name:\"_inline_0_arg1_\",lvalue:!1,rvalue:!1,count:0},{name:\"_inline_0_arg2_\",lvalue:!1,rvalue:!0,count:1}],thisVars:[\"this_i\",\"this_v\"],localVars:[]},body:{body:\"{if(_inline_1_arg1_>this_v){this_v=_inline_1_arg1_;for(var _inline_1_k=0;_inline_1_k<_inline_1_arg0_.length;++_inline_1_k){this_i[_inline_1_k]=_inline_1_arg0_[_inline_1_k]}}}\",args:[{name:\"_inline_1_arg0_\",lvalue:!1,rvalue:!0,count:2},{name:\"_inline_1_arg1_\",lvalue:!1,rvalue:!0,count:2}],thisVars:[\"this_i\",\"this_v\"],localVars:[\"_inline_1_k\"]},post:{body:\"{return this_i}\",args:[],thisVars:[\"this_i\"],localVars:[]}}),r.random=a({args:[\"array\"],pre:{args:[],body:\"this_f=Math.random\",thisVars:[\"this_f\"]},body:{args:[\"a\"],body:\"a=this_f()\",thisVars:[\"this_f\"]},funcName:\"random\"}),r.assign=a({args:[\"array\",\"array\"],body:{args:[\"a\",\"b\"],body:\"a=b\"},funcName:\"assign\"}),r.assigns=a({args:[\"array\",\"scalar\"],body:{args:[\"a\",\"b\"],body:\"a=b\"},funcName:\"assigns\"}),r.equals=o({args:[\"array\",\"array\"],pre:s,body:{args:[{name:\"x\",lvalue:!1,rvalue:!0,count:1},{name:\"y\",lvalue:!1,rvalue:!0,count:1}],body:\"if(x!==y){return false}\",localVars:[],thisVars:[]},post:{args:[],localVars:[],thisVars:[],body:\"return true\"},funcName:\"equals\"})},{\"cwise-compiler\":110}],462:[function(t,e,r){\"use strict\";var n=t(\"ndarray\"),i=t(\"./doConvert.js\");e.exports=function(t,e){for(var r=[],a=t,o=1;Array.isArray(a);)r.push(a.length),o*=a.length,a=a[0];return 0===r.length?n():(e||(e=n(new Float64Array(o),r)),i(e,t),e)}},{\"./doConvert.js\":463,ndarray:467}],463:[function(t,e,r){e.exports=t(\"cwise-compiler\")({args:[\"array\",\"scalar\",\"index\"],pre:{body:\"{}\",args:[],thisVars:[],localVars:[]},body:{body:\"{\\nvar _inline_1_v=_inline_1_arg1_,_inline_1_i\\nfor(_inline_1_i=0;_inline_1_i<_inline_1_arg2_.length-1;++_inline_1_i) {\\n_inline_1_v=_inline_1_v[_inline_1_arg2_[_inline_1_i]]\\n}\\n_inline_1_arg0_=_inline_1_v[_inline_1_arg2_[_inline_1_arg2_.length-1]]\\n}\",args:[{name:\"_inline_1_arg0_\",lvalue:!0,rvalue:!1,count:1},{name:\"_inline_1_arg1_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_1_arg2_\",lvalue:!1,rvalue:!0,count:4}],thisVars:[],localVars:[\"_inline_1_i\",\"_inline_1_v\"]},post:{body:\"{}\",args:[],thisVars:[],localVars:[]},funcName:\"convert\",blockSize:64})},{\"cwise-compiler\":110}],464:[function(t,e,r){\"use strict\";function n(t){switch(t){case\"uint8\":return[l.mallocUint8,l.freeUint8];case\"uint16\":return[l.mallocUint16,l.freeUint16];case\"uint32\":return[l.mallocUint32,l.freeUint32];case\"int8\":return[l.mallocInt8,l.freeInt8];case\"int16\":return[l.mallocInt16,l.freeInt16];case\"int32\":return[l.mallocInt32,l.freeInt32];case\"float32\":return[l.mallocFloat,l.freeFloat];case\"float64\":return[l.mallocDouble,l.freeDouble];default:return null}}function i(t){for(var e=[],r=0;r<t;++r)e.push(\"s\"+r);for(var r=0;r<t;++r)e.push(\"n\"+r);for(var r=1;r<t;++r)e.push(\"d\"+r);for(var r=1;r<t;++r)e.push(\"e\"+r);for(var r=1;r<t;++r)e.push(\"f\"+r);return e}function a(t,e){function r(t){return\"generic\"===e?[\"data.get(\",t,\")\"].join(\"\"):[\"data[\",t,\"]\"].join(\"\")}function a(t,r){return\"generic\"===e?[\"data.set(\",t,\",\",r,\")\"].join(\"\"):[\"data[\",t,\"]=\",r].join(\"\")}var o=[\"'use strict'\"],s=[\"ndarrayInsertionSort\",t.join(\"d\"),e].join(\"\"),l=[\"left\",\"right\",\"data\",\"offset\"].concat(i(t.length)),u=n(e),c=[\"i,j,cptr,ptr=left*s0+offset\"];if(t.length>1){for(var h=[],f=1;f<t.length;++f)c.push(\"i\"+f),h.push(\"n\"+f);u?c.push(\"scratch=malloc(\"+h.join(\"*\")+\")\"):c.push(\"scratch=new Array(\"+h.join(\"*\")+\")\"),c.push(\"dptr\",\"sptr\",\"a\",\"b\")}else c.push(\"scratch\");if(o.push([\"function \",s,\"(\",l.join(\",\"),\"){var \",c.join(\",\")].join(\"\"),\"for(i=left+1;i<=right;++i){\",\"j=i;ptr+=s0\",\"cptr=ptr\"),t.length>1){o.push(\"dptr=0;sptr=ptr\");for(var f=t.length-1;f>=0;--f){var d=t[f];0!==d&&o.push([\"for(i\",d,\"=0;i\",d,\"<n\",d,\";++i\",d,\"){\"].join(\"\"))}o.push(\"scratch[dptr++]=\",r(\"sptr\"));for(var f=0;f<t.length;++f){var d=t[f];0!==d&&o.push(\"sptr+=d\"+d,\"}\")}o.push(\"__g:while(j--\\x3eleft){\",\"dptr=0\",\"sptr=cptr-s0\");for(var f=1;f<t.length;++f)1===f&&o.push(\"__l:\"),o.push([\"for(i\",f,\"=0;i\",f,\"<n\",f,\";++i\",f,\"){\"].join(\"\"));o.push([\"a=\",r(\"sptr\"),\"\\nb=scratch[dptr]\\nif(a<b){break __g}\\nif(a>b){break __l}\"].join(\"\"));for(var f=t.length-1;f>=1;--f)o.push(\"sptr+=e\"+f,\"dptr+=f\"+f,\"}\");o.push(\"dptr=cptr;sptr=cptr-s0\");for(var f=t.length-1;f>=0;--f){var d=t[f];0!==d&&o.push([\"for(i\",d,\"=0;i\",d,\"<n\",d,\";++i\",d,\"){\"].join(\"\"))}o.push(a(\"dptr\",r(\"sptr\")));for(var f=0;f<t.length;++f){var d=t[f];0!==d&&o.push([\"dptr+=d\",d,\";sptr+=d\",d].join(\"\"),\"}\")}o.push(\"cptr-=s0\\n}\"),o.push(\"dptr=cptr;sptr=0\");for(var f=t.length-1;f>=0;--f){var d=t[f];0!==d&&o.push([\"for(i\",d,\"=0;i\",d,\"<n\",d,\";++i\",d,\"){\"].join(\"\"))}o.push(a(\"dptr\",\"scratch[sptr++]\"));for(var f=0;f<t.length;++f){var d=t[f];0!==d&&o.push(\"dptr+=d\"+d,\"}\")}}else o.push(\"scratch=\"+r(\"ptr\"),\"while((j--\\x3eleft)&&(\"+r(\"cptr-s0\")+\">scratch)){\",a(\"cptr\",r(\"cptr-s0\")),\"cptr-=s0\",\"}\",a(\"cptr\",\"scratch\"));if(o.push(\"}\"),t.length>1&&u&&o.push(\"free(scratch)\"),o.push(\"} return \"+s),u){var p=new Function(\"malloc\",\"free\",o.join(\"\\n\"));return p(u[0],u[1])}var p=new Function(o.join(\"\\n\"));return p()}function o(t,e,r){function a(t){return[\"(offset+\",t,\"*s0)\"].join(\"\")}function o(t){return\"generic\"===e?[\"data.get(\",t,\")\"].join(\"\"):[\"data[\",t,\"]\"].join(\"\")}function s(t,r){return\"generic\"===e?[\"data.set(\",t,\",\",r,\")\"].join(\"\"):[\"data[\",t,\"]=\",r].join(\"\")}function l(e,r,n){if(1===e.length)_.push(\"ptr0=\"+a(e[0]));else for(var i=0;i<e.length;++i)_.push([\"b_ptr\",i,\"=s0*\",e[i]].join(\"\"));r&&_.push(\"pivot_ptr=0\"),_.push(\"ptr_shift=offset\");for(var i=t.length-1;i>=0;--i){var o=t[i];0!==o&&_.push([\"for(i\",o,\"=0;i\",o,\"<n\",o,\";++i\",o,\"){\"].join(\"\"))}if(e.length>1)for(var i=0;i<e.length;++i)_.push([\"ptr\",i,\"=b_ptr\",i,\"+ptr_shift\"].join(\"\"));_.push(n),r&&_.push(\"++pivot_ptr\");for(var i=0;i<t.length;++i){var o=t[i];0!==o&&(e.length>1?_.push(\"ptr_shift+=d\"+o):_.push(\"ptr0+=d\"+o),_.push(\"}\"))}}function c(e,r,n,i){if(1===r.length)_.push(\"ptr0=\"+a(r[0]));else{for(var o=0;o<r.length;++o)_.push([\"b_ptr\",o,\"=s0*\",r[o]].join(\"\"));_.push(\"ptr_shift=offset\")}n&&_.push(\"pivot_ptr=0\"),e&&_.push(e+\":\");for(var o=1;o<t.length;++o)_.push([\"for(i\",o,\"=0;i\",o,\"<n\",o,\";++i\",o,\"){\"].join(\"\"));if(r.length>1)for(var o=0;o<r.length;++o)_.push([\"ptr\",o,\"=b_ptr\",o,\"+ptr_shift\"].join(\"\"));_.push(i);for(var o=t.length-1;o>=1;--o)n&&_.push(\"pivot_ptr+=f\"+o),r.length>1?_.push(\"ptr_shift+=e\"+o):_.push(\"ptr0+=e\"+o),_.push(\"}\")}function h(){t.length>1&&k&&_.push(\"free(pivot1)\",\"free(pivot2)\")}function f(e,r){var n=\"el\"+e,i=\"el\"+r;if(t.length>1){var s=\"__l\"+ ++A;c(s,[n,i],!1,[\"comp=\",o(\"ptr0\"),\"-\",o(\"ptr1\"),\"\\n\",\"if(comp>0){tmp0=\",n,\";\",n,\"=\",i,\";\",i,\"=tmp0;break \",s,\"}\\n\",\"if(comp<0){break \",s,\"}\"].join(\"\"))}else _.push([\"if(\",o(a(n)),\">\",o(a(i)),\"){tmp0=\",n,\";\",n,\"=\",i,\";\",i,\"=tmp0}\"].join(\"\"))}function d(e,r){t.length>1?l([e,r],!1,s(\"ptr0\",o(\"ptr1\"))):_.push(s(a(e),o(a(r))))}function p(e,r,n){if(t.length>1){var i=\"__l\"+ ++A;c(i,[r],!0,[e,\"=\",o(\"ptr0\"),\"-pivot\",n,\"[pivot_ptr]\\n\",\"if(\",e,\"!==0){break \",i,\"}\"].join(\"\"))}else _.push([e,\"=\",o(a(r)),\"-pivot\",n].join(\"\"))}function m(e,r){t.length>1?l([e,r],!1,[\"tmp=\",o(\"ptr0\"),\"\\n\",s(\"ptr0\",o(\"ptr1\")),\"\\n\",s(\"ptr1\",\"tmp\")].join(\"\")):_.push([\"ptr0=\",a(e),\"\\n\",\"ptr1=\",a(r),\"\\n\",\"tmp=\",o(\"ptr0\"),\"\\n\",s(\"ptr0\",o(\"ptr1\")),\"\\n\",s(\"ptr1\",\"tmp\")].join(\"\"))}function v(e,r,n){t.length>1?(l([e,r,n],!1,[\"tmp=\",o(\"ptr0\"),\"\\n\",s(\"ptr0\",o(\"ptr1\")),\"\\n\",s(\"ptr1\",o(\"ptr2\")),\"\\n\",s(\"ptr2\",\"tmp\")].join(\"\")),_.push(\"++\"+r,\"--\"+n)):_.push([\"ptr0=\",a(e),\"\\n\",\"ptr1=\",a(r),\"\\n\",\"ptr2=\",a(n),\"\\n\",\"++\",r,\"\\n\",\"--\",n,\"\\n\",\"tmp=\",o(\"ptr0\"),\"\\n\",s(\"ptr0\",o(\"ptr1\")),\"\\n\",s(\"ptr1\",o(\"ptr2\")),\"\\n\",s(\"ptr2\",\"tmp\")].join(\"\"))}function g(t,e){m(t,e),_.push(\"--\"+e)}function y(e,r,n){t.length>1?l([e,r],!0,[s(\"ptr0\",o(\"ptr1\")),\"\\n\",s(\"ptr1\",[\"pivot\",n,\"[pivot_ptr]\"].join(\"\"))].join(\"\")):_.push(s(a(e),o(a(r))),s(a(r),\"pivot\"+n))}function b(e,r){_.push([\"if((\",r,\"-\",e,\")<=\",u,\"){\\n\",\"insertionSort(\",e,\",\",r,\",data,offset,\",i(t.length).join(\",\"),\")\\n\",\"}else{\\n\",w,\"(\",e,\",\",r,\",data,offset,\",i(t.length).join(\",\"),\")\\n\",\"}\"].join(\"\"))}function x(e,r,n){t.length>1?(_.push([\"__l\",++A,\":while(true){\"].join(\"\")),l([e],!0,[\"if(\",o(\"ptr0\"),\"!==pivot\",r,\"[pivot_ptr]){break __l\",A,\"}\"].join(\"\")),_.push(n,\"}\")):_.push([\"while(\",o(a(e)),\"===pivot\",r,\"){\",n,\"}\"].join(\"\"))}var _=[\"'use strict'\"],w=[\"ndarrayQuickSort\",t.join(\"d\"),e].join(\"\"),M=[\"left\",\"right\",\"data\",\"offset\"].concat(i(t.length)),k=n(e),A=0;_.push([\"function \",w,\"(\",M.join(\",\"),\"){\"].join(\"\"));var T=[\"sixth=((right-left+1)/6)|0\",\"index1=left+sixth\",\"index5=right-sixth\",\"index3=(left+right)>>1\",\"index2=index3-sixth\",\"index4=index3+sixth\",\"el1=index1\",\"el2=index2\",\"el3=index3\",\"el4=index4\",\"el5=index5\",\"less=left+1\",\"great=right-1\",\"pivots_are_equal=true\",\"tmp\",\"tmp0\",\"x\",\"y\",\"z\",\"k\",\"ptr0\",\"ptr1\",\"ptr2\",\"comp_pivot1=0\",\"comp_pivot2=0\",\"comp=0\"];if(t.length>1){for(var S=[],E=1;E<t.length;++E)S.push(\"n\"+E),T.push(\"i\"+E);for(var E=0;E<8;++E)T.push(\"b_ptr\"+E);T.push(\"ptr3\",\"ptr4\",\"ptr5\",\"ptr6\",\"ptr7\",\"pivot_ptr\",\"ptr_shift\",\"elementSize=\"+S.join(\"*\")),k?T.push(\"pivot1=malloc(elementSize)\",\"pivot2=malloc(elementSize)\"):T.push(\"pivot1=new Array(elementSize),pivot2=new Array(elementSize)\")}else T.push(\"pivot1\",\"pivot2\");if(_.push(\"var \"+T.join(\",\")),f(1,2),f(4,5),f(1,3),f(2,3),f(1,4),f(3,4),f(2,5),f(2,3),f(4,5),t.length>1?l([\"el1\",\"el2\",\"el3\",\"el4\",\"el5\",\"index1\",\"index3\",\"index5\"],!0,[\"pivot1[pivot_ptr]=\",o(\"ptr1\"),\"\\n\",\"pivot2[pivot_ptr]=\",o(\"ptr3\"),\"\\n\",\"pivots_are_equal=pivots_are_equal&&(pivot1[pivot_ptr]===pivot2[pivot_ptr])\\n\",\"x=\",o(\"ptr0\"),\"\\n\",\"y=\",o(\"ptr2\"),\"\\n\",\"z=\",o(\"ptr4\"),\"\\n\",s(\"ptr5\",\"x\"),\"\\n\",s(\"ptr6\",\"y\"),\"\\n\",s(\"ptr7\",\"z\")].join(\"\")):_.push([\"pivot1=\",o(a(\"el2\")),\"\\n\",\"pivot2=\",o(a(\"el4\")),\"\\n\",\"pivots_are_equal=pivot1===pivot2\\n\",\"x=\",o(a(\"el1\")),\"\\n\",\"y=\",o(a(\"el3\")),\"\\n\",\"z=\",o(a(\"el5\")),\"\\n\",s(a(\"index1\"),\"x\"),\"\\n\",s(a(\"index3\"),\"y\"),\"\\n\",s(a(\"index5\"),\"z\")].join(\"\")),d(\"index2\",\"left\"),d(\"index4\",\"right\"),_.push(\"if(pivots_are_equal){\"),_.push(\"for(k=less;k<=great;++k){\"),p(\"comp\",\"k\",1),_.push(\"if(comp===0){continue}\"),_.push(\"if(comp<0){\"),_.push(\"if(k!==less){\"),m(\"k\",\"less\"),_.push(\"}\"),_.push(\"++less\"),_.push(\"}else{\"),_.push(\"while(true){\"),p(\"comp\",\"great\",1),_.push(\"if(comp>0){\"),_.push(\"great--\"),_.push(\"}else if(comp<0){\"),v(\"k\",\"less\",\"great\"),_.push(\"break\"),_.push(\"}else{\"),g(\"k\",\"great\"),_.push(\"break\"),_.push(\"}\"),_.push(\"}\"),_.push(\"}\"),_.push(\"}\"),_.push(\"}else{\"),_.push(\"for(k=less;k<=great;++k){\"),p(\"comp_pivot1\",\"k\",1),_.push(\"if(comp_pivot1<0){\"),_.push(\"if(k!==less){\"),m(\"k\",\"less\"),_.push(\"}\"),_.push(\"++less\"),_.push(\"}else{\"),p(\"comp_pivot2\",\"k\",2),_.push(\"if(comp_pivot2>0){\"),_.push(\"while(true){\"),p(\"comp\",\"great\",2),_.push(\"if(comp>0){\"),_.push(\"if(--great<k){break}\"),_.push(\"continue\"),_.push(\"}else{\"),p(\"comp\",\"great\",1),_.push(\"if(comp<0){\"),v(\"k\",\"less\",\"great\"),_.push(\"}else{\"),g(\"k\",\"great\"),_.push(\"}\"),_.push(\"break\"),_.push(\"}\"),_.push(\"}\"),_.push(\"}\"),_.push(\"}\"),_.push(\"}\"),_.push(\"}\"),y(\"left\",\"(less-1)\",1),y(\"right\",\"(great+1)\",2),b(\"left\",\"(less-2)\"),b(\"(great+2)\",\"right\"),_.push(\"if(pivots_are_equal){\"),h(),_.push(\"return\"),_.push(\"}\"),_.push(\"if(less<index1&&great>index5){\"),x(\"less\",1,\"++less\"),x(\"great\",2,\"--great\"),_.push(\"for(k=less;k<=great;++k){\"),p(\"comp_pivot1\",\"k\",1),_.push(\"if(comp_pivot1===0){\"),_.push(\"if(k!==less){\"),m(\"k\",\"less\"),_.push(\"}\"),_.push(\"++less\"),_.push(\"}else{\"),p(\"comp_pivot2\",\"k\",2),_.push(\"if(comp_pivot2===0){\"),_.push(\"while(true){\"),p(\"comp\",\"great\",2),_.push(\"if(comp===0){\"),_.push(\"if(--great<k){break}\"),_.push(\"continue\"),_.push(\"}else{\"),p(\"comp\",\"great\",1),_.push(\"if(comp<0){\"),v(\"k\",\"less\",\"great\"),_.push(\"}else{\"),g(\"k\",\"great\"),_.push(\"}\"),_.push(\"break\"),_.push(\"}\"),_.push(\"}\"),_.push(\"}\"),_.push(\"}\"),_.push(\"}\"),_.push(\"}\"),h(),b(\"less\",\"great\"),_.push(\"}return \"+w),t.length>1&&k){var L=new Function(\"insertionSort\",\"malloc\",\"free\",_.join(\"\\n\"));return L(r,k[0],k[1])}var L=new Function(\"insertionSort\",_.join(\"\\n\"));return L(r)}function s(t,e){var r=[\"'use strict'\"],n=[\"ndarraySortWrapper\",t.join(\"d\"),e].join(\"\"),s=[\"array\"];r.push([\"function \",n,\"(\",s.join(\",\"),\"){\"].join(\"\"));for(var l=[\"data=array.data,offset=array.offset|0,shape=array.shape,stride=array.stride\"],c=0;c<t.length;++c)l.push([\"s\",c,\"=stride[\",c,\"]|0,n\",c,\"=shape[\",c,\"]|0\"].join(\"\"));for(var h=new Array(t.length),f=[],c=0;c<t.length;++c){var d=t[c];0!==d&&(0===f.length?h[d]=\"1\":h[d]=f.join(\"*\"),f.push(\"n\"+d))}for(var p=-1,m=-1,c=0;c<t.length;++c){var v=t[c];0!==v&&(p>0?l.push([\"d\",v,\"=s\",v,\"-d\",p,\"*n\",p].join(\"\")):l.push([\"d\",v,\"=s\",v].join(\"\")),p=v);var d=t.length-1-c;0!==d&&(m>0?l.push([\"e\",d,\"=s\",d,\"-e\",m,\"*n\",m,\",f\",d,\"=\",h[d],\"-f\",m,\"*n\",m].join(\"\")):l.push([\"e\",d,\"=s\",d,\",f\",d,\"=\",h[d]].join(\"\")),m=d)}r.push(\"var \"+l.join(\",\"));var g=[\"0\",\"n0-1\",\"data\",\"offset\"].concat(i(t.length));r.push([\"if(n0<=\",u,\"){\",\"insertionSort(\",g.join(\",\"),\")}else{\",\"quickSort(\",g.join(\",\"),\")}\"].join(\"\")),r.push(\"}return \"+n);var y=new Function(\"insertionSort\",\"quickSort\",r.join(\"\\n\")),b=a(t,e);return y(b,o(t,e,b))}var l=t(\"typedarray-pool\"),u=32;e.exports=s},{\"typedarray-pool\":541}],465:[function(t,e,r){\"use strict\";function n(t){var e=t.order,r=t.dtype,n=[e,r],o=n.join(\":\"),s=a[o];return s||(a[o]=s=i(e,r)),s(t),t}var i=t(\"./lib/compile_sort.js\"),a={};e.exports=n},{\"./lib/compile_sort.js\":464}],466:[function(t,e,r){\"use strict\";var n=t(\"ndarray-linear-interpolate\"),i=t(\"cwise/lib/wrapper\")({args:[\"index\",\"array\",\"scalar\",\"scalar\",\"scalar\"],pre:{body:\"{this_warped=new Array(_inline_9_arg4_)}\",args:[{name:\"_inline_9_arg0_\",lvalue:!1,rvalue:!1,count:0},{name:\"_inline_9_arg1_\",lvalue:!1,rvalue:!1,count:0},{name:\"_inline_9_arg2_\",lvalue:!1,rvalue:!1,count:0},{name:\"_inline_9_arg3_\",lvalue:!1,rvalue:!1,count:0},{name:\"_inline_9_arg4_\",lvalue:!1,rvalue:!0,count:1}],thisVars:[\"this_warped\"],localVars:[]},body:{body:\"{_inline_10_arg2_(this_warped,_inline_10_arg0_),_inline_10_arg1_=_inline_10_arg3_.apply(void 0,this_warped)}\",args:[{name:\"_inline_10_arg0_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_10_arg1_\",lvalue:!0,rvalue:!1,count:1},{name:\"_inline_10_arg2_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_10_arg3_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_10_arg4_\",lvalue:!1,rvalue:!1,count:0}],thisVars:[\"this_warped\"],localVars:[]},post:{body:\"{}\",args:[],thisVars:[],localVars:[]},debug:!1,funcName:\"warpND\",blockSize:64}),a=t(\"cwise/lib/wrapper\")({args:[\"index\",\"array\",\"scalar\",\"scalar\",\"scalar\"],pre:{body:\"{this_warped=[0]}\",args:[],thisVars:[\"this_warped\"],localVars:[]},body:{body:\"{_inline_13_arg2_(this_warped,_inline_13_arg0_),_inline_13_arg1_=_inline_13_arg3_(_inline_13_arg4_,this_warped[0])}\",args:[{name:\"_inline_13_arg0_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_13_arg1_\",lvalue:!0,rvalue:!1,count:1},{name:\"_inline_13_arg2_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_13_arg3_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_13_arg4_\",lvalue:!1,rvalue:!0,count:1}],thisVars:[\"this_warped\"],localVars:[]},post:{body:\"{}\",args:[],thisVars:[],localVars:[]},debug:!1,funcName:\"warp1D\",blockSize:64}),o=t(\"cwise/lib/wrapper\")({args:[\"index\",\"array\",\"scalar\",\"scalar\",\"scalar\"],pre:{body:\"{this_warped=[0,0]}\",args:[],thisVars:[\"this_warped\"],localVars:[]},body:{body:\"{_inline_16_arg2_(this_warped,_inline_16_arg0_),_inline_16_arg1_=_inline_16_arg3_(_inline_16_arg4_,this_warped[0],this_warped[1])}\",args:[{name:\"_inline_16_arg0_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_16_arg1_\",lvalue:!0,rvalue:!1,count:1},{name:\"_inline_16_arg2_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_16_arg3_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_16_arg4_\",lvalue:!1,rvalue:!0,count:1}],thisVars:[\"this_warped\"],localVars:[]},post:{body:\"{}\",args:[],thisVars:[],localVars:[]},debug:!1,funcName:\"warp2D\",blockSize:64}),s=t(\"cwise/lib/wrapper\")({args:[\"index\",\"array\",\"scalar\",\"scalar\",\"scalar\"],pre:{body:\"{this_warped=[0,0,0]}\",args:[],thisVars:[\"this_warped\"],localVars:[]},body:{body:\"{_inline_19_arg2_(this_warped,_inline_19_arg0_),_inline_19_arg1_=_inline_19_arg3_(_inline_19_arg4_,this_warped[0],this_warped[1],this_warped[2])}\",args:[{name:\"_inline_19_arg0_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_19_arg1_\",lvalue:!0,rvalue:!1,count:1},{name:\"_inline_19_arg2_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_19_arg3_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_19_arg4_\",lvalue:!1,rvalue:!0,count:1}],thisVars:[\"this_warped\"],localVars:[]},post:{body:\"{}\",args:[],thisVars:[],localVars:[]},debug:!1,funcName:\"warp3D\",blockSize:64});e.exports=function(t,e,r){switch(e.shape.length){case 1:a(t,r,n.d1,e);break;case 2:o(t,r,n.d2,e);break;case 3:s(t,r,n.d3,e);break;default:i(t,r,n.bind(void 0,e),e.shape.length)}return t}},{\"cwise/lib/wrapper\":113,\"ndarray-linear-interpolate\":460}],467:[function(t,e,r){function n(t,e){return t[0]-e[0]}function i(){var t,e=this.stride,r=new Array(e.length);for(t=0;t<r.length;++t)r[t]=[Math.abs(e[t]),t];r.sort(n);var i=new Array(r.length);for(t=0;t<i.length;++t)i[t]=r[t][1];return i}function a(t,e){var r=[\"View\",e,\"d\",t].join(\"\");e<0&&(r=\"View_Nil\"+t);var n=\"generic\"===t;if(-1===e){\n", "var a=\"function \"+r+\"(a){this.data=a;};var proto=\"+r+\".prototype;proto.dtype='\"+t+\"';proto.index=function(){return -1};proto.size=0;proto.dimension=-1;proto.shape=proto.stride=proto.order=[];proto.lo=proto.hi=proto.transpose=proto.step=function(){return new \"+r+\"(this.data);};proto.get=proto.set=function(){};proto.pick=function(){return null};return function construct_\"+r+\"(a){return new \"+r+\"(a);}\",o=new Function(a);return o()}if(0===e){var a=\"function \"+r+\"(a,d) {this.data = a;this.offset = d};var proto=\"+r+\".prototype;proto.dtype='\"+t+\"';proto.index=function(){return this.offset};proto.dimension=0;proto.size=1;proto.shape=proto.stride=proto.order=[];proto.lo=proto.hi=proto.transpose=proto.step=function \"+r+\"_copy() {return new \"+r+\"(this.data,this.offset)};proto.pick=function \"+r+\"_pick(){return TrivialArray(this.data);};proto.valueOf=proto.get=function \"+r+\"_get(){return \"+(n?\"this.data.get(this.offset)\":\"this.data[this.offset]\")+\"};proto.set=function \"+r+\"_set(v){return \"+(n?\"this.data.set(this.offset,v)\":\"this.data[this.offset]=v\")+\"};return function construct_\"+r+\"(a,b,c,d){return new \"+r+\"(a,d)}\",o=new Function(\"TrivialArray\",a);return o(h[t][0])}var a=[\"'use strict'\"],s=l(e),u=s.map(function(t){return\"i\"+t}),c=\"this.offset+\"+s.map(function(t){return\"this.stride[\"+t+\"]*i\"+t}).join(\"+\"),f=s.map(function(t){return\"b\"+t}).join(\",\"),d=s.map(function(t){return\"c\"+t}).join(\",\");a.push(\"function \"+r+\"(a,\"+f+\",\"+d+\",d){this.data=a\",\"this.shape=[\"+f+\"]\",\"this.stride=[\"+d+\"]\",\"this.offset=d|0}\",\"var proto=\"+r+\".prototype\",\"proto.dtype='\"+t+\"'\",\"proto.dimension=\"+e),a.push(\"Object.defineProperty(proto,'size',{get:function \"+r+\"_size(){return \"+s.map(function(t){return\"this.shape[\"+t+\"]\"}).join(\"*\"),\"}})\"),1===e?a.push(\"proto.order=[0]\"):(a.push(\"Object.defineProperty(proto,'order',{get:\"),e<4?(a.push(\"function \"+r+\"_order(){\"),2===e?a.push(\"return (Math.abs(this.stride[0])>Math.abs(this.stride[1]))?[1,0]:[0,1]}})\"):3===e&&a.push(\"var s0=Math.abs(this.stride[0]),s1=Math.abs(this.stride[1]),s2=Math.abs(this.stride[2]);if(s0>s1){if(s1>s2){return [2,1,0];}else if(s0>s2){return [1,2,0];}else{return [1,0,2];}}else if(s0>s2){return [2,0,1];}else if(s2>s1){return [0,1,2];}else{return [0,2,1];}}})\")):a.push(\"ORDER})\")),a.push(\"proto.set=function \"+r+\"_set(\"+u.join(\",\")+\",v){\"),n?a.push(\"return this.data.set(\"+c+\",v)}\"):a.push(\"return this.data[\"+c+\"]=v}\"),a.push(\"proto.get=function \"+r+\"_get(\"+u.join(\",\")+\"){\"),n?a.push(\"return this.data.get(\"+c+\")}\"):a.push(\"return this.data[\"+c+\"]}\"),a.push(\"proto.index=function \"+r+\"_index(\",u.join(),\"){return \"+c+\"}\"),a.push(\"proto.hi=function \"+r+\"_hi(\"+u.join(\",\")+\"){return new \"+r+\"(this.data,\"+s.map(function(t){return[\"(typeof i\",t,\"!=='number'||i\",t,\"<0)?this.shape[\",t,\"]:i\",t,\"|0\"].join(\"\")}).join(\",\")+\",\"+s.map(function(t){return\"this.stride[\"+t+\"]\"}).join(\",\")+\",this.offset)}\");var p=s.map(function(t){return\"a\"+t+\"=this.shape[\"+t+\"]\"}),m=s.map(function(t){return\"c\"+t+\"=this.stride[\"+t+\"]\"});a.push(\"proto.lo=function \"+r+\"_lo(\"+u.join(\",\")+\"){var b=this.offset,d=0,\"+p.join(\",\")+\",\"+m.join(\",\"));for(var v=0;v<e;++v)a.push(\"if(typeof i\"+v+\"==='number'&&i\"+v+\">=0){d=i\"+v+\"|0;b+=c\"+v+\"*d;a\"+v+\"-=d}\");a.push(\"return new \"+r+\"(this.data,\"+s.map(function(t){return\"a\"+t}).join(\",\")+\",\"+s.map(function(t){return\"c\"+t}).join(\",\")+\",b)}\"),a.push(\"proto.step=function \"+r+\"_step(\"+u.join(\",\")+\"){var \"+s.map(function(t){return\"a\"+t+\"=this.shape[\"+t+\"]\"}).join(\",\")+\",\"+s.map(function(t){return\"b\"+t+\"=this.stride[\"+t+\"]\"}).join(\",\")+\",c=this.offset,d=0,ceil=Math.ceil\");for(var v=0;v<e;++v)a.push(\"if(typeof i\"+v+\"==='number'){d=i\"+v+\"|0;if(d<0){c+=b\"+v+\"*(a\"+v+\"-1);a\"+v+\"=ceil(-a\"+v+\"/d)}else{a\"+v+\"=ceil(a\"+v+\"/d)}b\"+v+\"*=d}\");a.push(\"return new \"+r+\"(this.data,\"+s.map(function(t){return\"a\"+t}).join(\",\")+\",\"+s.map(function(t){return\"b\"+t}).join(\",\")+\",c)}\");for(var g=new Array(e),y=new Array(e),v=0;v<e;++v)g[v]=\"a[i\"+v+\"]\",y[v]=\"b[i\"+v+\"]\";a.push(\"proto.transpose=function \"+r+\"_transpose(\"+u+\"){\"+u.map(function(t,e){return t+\"=(\"+t+\"===undefined?\"+e+\":\"+t+\"|0)\"}).join(\";\"),\"var a=this.shape,b=this.stride;return new \"+r+\"(this.data,\"+g.join(\",\")+\",\"+y.join(\",\")+\",this.offset)}\"),a.push(\"proto.pick=function \"+r+\"_pick(\"+u+\"){var a=[],b=[],c=this.offset\");for(var v=0;v<e;++v)a.push(\"if(typeof i\"+v+\"==='number'&&i\"+v+\">=0){c=(c+this.stride[\"+v+\"]*i\"+v+\")|0}else{a.push(this.shape[\"+v+\"]);b.push(this.stride[\"+v+\"])}\");a.push(\"var ctor=CTOR_LIST[a.length+1];return ctor(this.data,a,b,c)}\"),a.push(\"return function construct_\"+r+\"(data,shape,stride,offset){return new \"+r+\"(data,\"+s.map(function(t){return\"shape[\"+t+\"]\"}).join(\",\")+\",\"+s.map(function(t){return\"stride[\"+t+\"]\"}).join(\",\")+\",offset)}\");var o=new Function(\"CTOR_LIST\",\"ORDER\",a.join(\"\\n\"));return o(h[t],i)}function o(t){if(u(t))return\"buffer\";if(c)switch(Object.prototype.toString.call(t)){case\"[object Float64Array]\":return\"float64\";case\"[object Float32Array]\":return\"float32\";case\"[object Int8Array]\":return\"int8\";case\"[object Int16Array]\":return\"int16\";case\"[object Int32Array]\":return\"int32\";case\"[object Uint8Array]\":return\"uint8\";case\"[object Uint16Array]\":return\"uint16\";case\"[object Uint32Array]\":return\"uint32\";case\"[object Uint8ClampedArray]\":return\"uint8_clamped\"}return Array.isArray(t)?\"array\":\"generic\"}function s(t,e,r,n){if(void 0===t){var i=h.array[0];return i([])}\"number\"==typeof t&&(t=[t]),void 0===e&&(e=[t.length]);var s=e.length;if(void 0===r){r=new Array(s);for(var l=s-1,u=1;l>=0;--l)r[l]=u,u*=e[l]}if(void 0===n){n=0;for(var l=0;l<s;++l)r[l]<0&&(n-=(e[l]-1)*r[l])}for(var c=o(t),f=h[c];f.length<=s+1;)f.push(a(c,f.length-1));var i=f[s+1];return i(t,e,r,n)}var l=t(\"iota-array\"),u=t(\"is-buffer\"),c=\"undefined\"!=typeof Float64Array,h={float32:[],float64:[],int8:[],int16:[],int32:[],uint8:[],uint16:[],uint32:[],array:[],uint8_clamped:[],buffer:[],generic:[]};e.exports=s},{\"iota-array\":293,\"is-buffer\":295}],468:[function(t,e,r){\"use strict\";function n(t,e){if(isNaN(t)||isNaN(e))return NaN;if(t===e)return t;if(0===t)return e<0?-a:a;var r=i.hi(t),n=i.lo(t);return e>t==t>0?n===o?(r+=1,n=0):n+=1:0===n?(n=o,r-=1):n-=1,i.pack(n,r)}var i=t(\"double-bits\"),a=Math.pow(2,-1074),o=-1>>>0;e.exports=n},{\"double-bits\":124}],469:[function(t,e,r){r.vertexNormals=function(t,e,r){for(var n=e.length,i=new Array(n),a=void 0===r?1e-6:r,o=0;o<n;++o)i[o]=[0,0,0];for(var o=0;o<t.length;++o)for(var s=t[o],l=0,u=s[s.length-1],c=s[0],h=0;h<s.length;++h){l=u,u=c,c=s[(h+1)%s.length];for(var f=e[l],d=e[u],p=e[c],m=new Array(3),v=0,g=new Array(3),y=0,b=0;b<3;++b)m[b]=f[b]-d[b],v+=m[b]*m[b],g[b]=p[b]-d[b],y+=g[b]*g[b];if(v*y>a)for(var x=i[u],_=1/Math.sqrt(v*y),b=0;b<3;++b){var w=(b+1)%3,M=(b+2)%3;x[b]+=_*(g[w]*m[M]-g[M]*m[w])}}for(var o=0;o<n;++o){for(var x=i[o],k=0,b=0;b<3;++b)k+=x[b]*x[b];if(k>a)for(var _=1/Math.sqrt(k),b=0;b<3;++b)x[b]*=_;else for(var b=0;b<3;++b)x[b]=0}return i},r.faceNormals=function(t,e,r){for(var n=t.length,i=new Array(n),a=void 0===r?1e-6:r,o=0;o<n;++o){for(var s=t[o],l=new Array(3),u=0;u<3;++u)l[u]=e[s[u]];for(var c=new Array(3),h=new Array(3),u=0;u<3;++u)c[u]=l[1][u]-l[0][u],h[u]=l[2][u]-l[0][u];for(var f=new Array(3),d=0,u=0;u<3;++u){var p=(u+1)%3,m=(u+2)%3;f[u]=c[p]*h[m]-c[m]*h[p],d+=f[u]*f[u]}d=d>a?1/Math.sqrt(d):0;for(var u=0;u<3;++u)f[u]*=d;i[o]=f}return i}},{}],470:[function(t,e,r){\"use strict\";function n(t){if(null===t||void 0===t)throw new TypeError(\"Object.assign cannot be called with null or undefined\");return Object(t)}var i=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var t=new String(\"abc\");if(t[5]=\"de\",\"5\"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},r=0;r<10;r++)e[\"_\"+String.fromCharCode(r)]=r;if(\"0123456789\"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(\"\"))return!1;var n={};return\"abcdefghijklmnopqrst\".split(\"\").forEach(function(t){n[t]=t}),\"abcdefghijklmnopqrst\"===Object.keys(Object.assign({},n)).join(\"\")}catch(t){return!1}}()?Object.assign:function(t,e){for(var r,s,l=n(t),u=1;u<arguments.length;u++){r=Object(arguments[u]);for(var c in r)a.call(r,c)&&(l[c]=r[c]);if(i){s=i(r);for(var h=0;h<s.length;h++)o.call(r,s[h])&&(l[s[h]]=r[s[h]])}}return l}},{}],471:[function(t,e,r){\"use strict\";function n(t,e){var r,n,o;return\"string\"==typeof t?(r=i(t,e),n=r.width,o=r.height):t instanceof HTMLCanvasElement?(n=t.width,o=t.height,t=t.getContext(\"2d\"),r=t.getImageData(0,0,n,o)):t instanceof ImageData&&(n=t.width,o=t.height,r=t),a(r)}function i(t,e){e||(e={});var r=e.family||\"sans-serif\",n=l.width,i=l.height,a=e.width||e.height||e.size;a&&a!=n&&(n=i=l.width=l.height=a);var o=e.fontSize||n/2;return u.fillStyle=\"#000\",u.fillRect(0,0,n,i),u.font=o+\"px \"+r,u.textBaseline=\"middle\",u.textAlign=\"center\",u.fillStyle=\"white\",u.fillText(t,n/2,i/2),u.getImageData(0,0,n,i)}function a(t){var e,r,n,i,a,l,u,c,h,f,d,p,m,v=t.data,g=t.width,y=t.height,b=Array(y),x=Array(y),_=0,w=0,M=g,k=0,A=0,T=Array(y);for(r=0;r<y;r++)if(l=0,u=0,a=4*r*g,d=o(v.subarray(a,a+4*g),4),d[0]!==d[1]){for(_||(_=r),w=r,e=d[0];e<d[1];e++)i=4*e,n=v[a+i],l+=n,u+=e*n;b[r]=0===l?0:l/g,x[r]=0===l?0:u/l,d[0]<M&&(M=d[0]),d[1]>k&&(k=d[1]),T[r]=d}for(l=0,c=0,u=0,r=0;r<y;r++)(p=b[r])&&(c+=p*r,l+=p,u+=x[r]*p);for(f=c/l,h=u/l,A=0,m=0,r=0;r<y;r++)(d=T[r])&&(m=Math.max(s(h-d[0],f-r),s(h-d[1],f-r)))>A&&(A=m);return{center:[h,f],bounds:[M,_,k,w+1],radius:Math.sqrt(A)}}function o(t,e){var r=0,n=t.length,i=0;for(e||(e=4);!t[i]&&i<n;)i+=e;for(r=i,i=t.length;!t[i]&&i>r;)i-=e;return n=i,[r/e,n/e]}function s(t,e){return t*t+e*e}e.exports=n;var l=document.createElement(\"canvas\"),u=l.getContext(\"2d\");l.width=200,l.height=200,n.canvas=l},{}],472:[function(t,e,r){\"use strict\";function n(t,e,r,n,i,a,o,s,l,u){var c=e+a+u;if(h>0){var h=Math.sqrt(c+1);t[0]=.5*(o-l)/h,t[1]=.5*(s-n)/h,t[2]=.5*(r-a)/h,t[3]=.5*h}else{var f=Math.max(e,a,u),h=Math.sqrt(2*f-c+1);e>=f?(t[0]=.5*h,t[1]=.5*(i+r)/h,t[2]=.5*(s+n)/h,t[3]=.5*(o-l)/h):a>=f?(t[0]=.5*(r+i)/h,t[1]=.5*h,t[2]=.5*(l+o)/h,t[3]=.5*(s-n)/h):(t[0]=.5*(n+s)/h,t[1]=.5*(o+l)/h,t[2]=.5*h,t[3]=.5*(r-i)/h)}return t}e.exports=n},{}],473:[function(t,e,r){\"use strict\";function n(t,e,r){return Math.sqrt(Math.pow(t,2)+Math.pow(e,2)+Math.pow(r,2))}function i(t,e,r,n){return Math.sqrt(Math.pow(t,2)+Math.pow(e,2)+Math.pow(r,2)+Math.pow(n,2))}function a(t,e){var r=e[0],n=e[1],a=e[2],o=e[3],s=i(r,n,a,o);s>1e-6?(t[0]=r/s,t[1]=n/s,t[2]=a/s,t[3]=o/s):(t[0]=t[1]=t[2]=0,t[3]=1)}function o(t,e,r){this.radius=l([r]),this.center=l(e),this.rotation=l(t),this.computedRadius=this.radius.curve(0),this.computedCenter=this.center.curve(0),this.computedRotation=this.rotation.curve(0),this.computedUp=[.1,0,0],this.computedEye=[.1,0,0],this.computedMatrix=[.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.recalcMatrix(0)}function s(t){t=t||{};var e=t.center||[0,0,0],r=t.rotation||[0,0,0,1],n=t.radius||1;e=[].slice.call(e,0,3),r=[].slice.call(r,0,4),a(r,r);var i=new o(r,e,Math.log(n));return i.setDistanceLimits(t.zoomMin,t.zoomMax),(\"eye\"in t||\"up\"in t)&&i.lookAt(0,t.eye,t.center,t.up),i}e.exports=s;var l=t(\"filtered-vector\"),u=t(\"gl-mat4/lookAt\"),c=t(\"gl-mat4/fromQuat\"),h=t(\"gl-mat4/invert\"),f=t(\"./lib/quatFromFrame\"),d=o.prototype;d.lastT=function(){return Math.max(this.radius.lastT(),this.center.lastT(),this.rotation.lastT())},d.recalcMatrix=function(t){this.radius.curve(t),this.center.curve(t),this.rotation.curve(t);var e=this.computedRotation;a(e,e);var r=this.computedMatrix;c(r,e);var n=this.computedCenter,i=this.computedEye,o=this.computedUp,s=Math.exp(this.computedRadius[0]);i[0]=n[0]+s*r[2],i[1]=n[1]+s*r[6],i[2]=n[2]+s*r[10],o[0]=r[1],o[1]=r[5],o[2]=r[9];for(var l=0;l<3;++l){for(var u=0,h=0;h<3;++h)u+=r[l+4*h]*i[h];r[12+l]=-u}},d.getMatrix=function(t,e){this.recalcMatrix(t);var r=this.computedMatrix;if(e){for(var n=0;n<16;++n)e[n]=r[n];return e}return r},d.idle=function(t){this.center.idle(t),this.radius.idle(t),this.rotation.idle(t)},d.flush=function(t){this.center.flush(t),this.radius.flush(t),this.rotation.flush(t)},d.pan=function(t,e,r,i){e=e||0,r=r||0,i=i||0,this.recalcMatrix(t);var a=this.computedMatrix,o=a[1],s=a[5],l=a[9],u=n(o,s,l);o/=u,s/=u,l/=u;var c=a[0],h=a[4],f=a[8],d=c*o+h*s+f*l;c-=o*d,h-=s*d,f-=l*d;var p=n(c,h,f);c/=p,h/=p,f/=p;var m=a[2],v=a[6],g=a[10],y=m*o+v*s+g*l,b=m*c+v*h+g*f;m-=y*o+b*c,v-=y*s+b*h,g-=y*l+b*f;var x=n(m,v,g);m/=x,v/=x,g/=x;var _=c*e+o*r,w=h*e+s*r,M=f*e+l*r;this.center.move(t,_,w,M);var k=Math.exp(this.computedRadius[0]);k=Math.max(1e-4,k+i),this.radius.set(t,Math.log(k))},d.rotate=function(t,e,r,a){this.recalcMatrix(t),e=e||0,r=r||0;var o=this.computedMatrix,s=o[0],l=o[4],u=o[8],c=o[1],h=o[5],f=o[9],d=o[2],p=o[6],m=o[10],v=e*s+r*c,g=e*l+r*h,y=e*u+r*f,b=-(p*y-m*g),x=-(m*v-d*y),_=-(d*g-p*v),w=Math.sqrt(Math.max(0,1-Math.pow(b,2)-Math.pow(x,2)-Math.pow(_,2))),M=i(b,x,_,w);M>1e-6?(b/=M,x/=M,_/=M,w/=M):(b=x=_=0,w=1);var k=this.computedRotation,A=k[0],T=k[1],S=k[2],E=k[3],L=A*w+E*b+T*_-S*x,C=T*w+E*x+S*b-A*_,I=S*w+E*_+A*x-T*b,z=E*w-A*b-T*x-S*_;if(a){b=d,x=p,_=m;var D=Math.sin(a)/n(b,x,_);b*=D,x*=D,_*=D,w=Math.cos(e),L=L*w+z*b+C*_-I*x,C=C*w+z*x+I*b-L*_,I=I*w+z*_+L*x-C*b,z=z*w-L*b-C*x-I*_}var P=i(L,C,I,z);P>1e-6?(L/=P,C/=P,I/=P,z/=P):(L=C=I=0,z=1),this.rotation.set(t,L,C,I,z)},d.lookAt=function(t,e,r,n){this.recalcMatrix(t),r=r||this.computedCenter,e=e||this.computedEye,n=n||this.computedUp;var i=this.computedMatrix;u(i,e,r,n);var o=this.computedRotation;f(o,i[0],i[1],i[2],i[4],i[5],i[6],i[8],i[9],i[10]),a(o,o),this.rotation.set(t,o[0],o[1],o[2],o[3]);for(var s=0,l=0;l<3;++l)s+=Math.pow(r[l]-e[l],2);this.radius.set(t,.5*Math.log(Math.max(s,1e-6))),this.center.set(t,r[0],r[1],r[2])},d.translate=function(t,e,r,n){this.center.move(t,e||0,r||0,n||0)},d.setMatrix=function(t,e){var r=this.computedRotation;f(r,e[0],e[1],e[2],e[4],e[5],e[6],e[8],e[9],e[10]),a(r,r),this.rotation.set(t,r[0],r[1],r[2],r[3]);var n=this.computedMatrix;h(n,e);var i=n[15];if(Math.abs(i)>1e-6){var o=n[12]/i,s=n[13]/i,l=n[14]/i;this.recalcMatrix(t);var u=Math.exp(this.computedRadius[0]);this.center.set(t,o-n[2]*u,s-n[6]*u,l-n[10]*u),this.radius.idle(t)}else this.center.idle(t),this.radius.idle(t)},d.setDistance=function(t,e){e>0&&this.radius.set(t,Math.log(e))},d.setDistanceLimits=function(t,e){t=t>0?Math.log(t):-1/0,e=e>0?Math.log(e):1/0,e=Math.max(e,t),this.radius.bounds[0][0]=t,this.radius.bounds[1][0]=e},d.getDistanceLimits=function(t){var e=this.radius.bounds;return t?(t[0]=Math.exp(e[0][0]),t[1]=Math.exp(e[1][0]),t):[Math.exp(e[0][0]),Math.exp(e[1][0])]},d.toJSON=function(){return this.recalcMatrix(this.lastT()),{center:this.computedCenter.slice(),rotation:this.computedRotation.slice(),distance:Math.log(this.computedRadius[0]),zoomMin:this.radius.bounds[0][0],zoomMax:this.radius.bounds[1][0]}},d.fromJSON=function(t){var e=this.lastT(),r=t.center;r&&this.center.set(e,r[0],r[1],r[2]);var n=t.rotation;n&&this.rotation.set(e,n[0],n[1],n[2],n[3]);var i=t.distance;i&&i>0&&this.radius.set(e,Math.log(i)),this.setDistanceLimits(t.zoomMin,t.zoomMax)}},{\"./lib/quatFromFrame\":472,\"filtered-vector\":133,\"gl-mat4/fromQuat\":178,\"gl-mat4/invert\":181,\"gl-mat4/lookAt\":182}],474:[function(t,e,r){\"use strict\";var n=t(\"repeat-string\");e.exports=function(t,e,r){return r=void 0!==r?r+\"\":\" \",n(r,e)+t}},{\"repeat-string\":500}],475:[function(t,e,r){e.exports=function(t,e){e||(e=[0,\"\"]),t=String(t);var r=parseFloat(t,10);return e[0]=r,e[1]=t.match(/[\\d.\\-\\+]*\\s*(.*)/)[1]||\"\",e}},{}],476:[function(t,e,r){(function(t){function e(t,e){for(var r=0,n=t.length-1;n>=0;n--){var i=t[n];\".\"===i?t.splice(n,1):\"..\"===i?(t.splice(n,1),r++):r&&(t.splice(n,1),r--)}if(e)for(;r--;r)t.unshift(\"..\");return t}function n(t,e){if(t.filter)return t.filter(e);for(var r=[],n=0;n<t.length;n++)e(t[n],n,t)&&r.push(t[n]);return r}var i=/^(\\/?|)([\\s\\S]*?)((?:\\.{1,2}|[^\\/]+?|)(\\.[^.\\/]*|))(?:[\\/]*)$/,a=function(t){return i.exec(t).slice(1)};r.resolve=function(){for(var r=\"\",i=!1,a=arguments.length-1;a>=-1&&!i;a--){var o=a>=0?arguments[a]:t.cwd();if(\"string\"!=typeof o)throw new TypeError(\"Arguments to path.resolve must be strings\");o&&(r=o+\"/\"+r,i=\"/\"===o.charAt(0))}return r=e(n(r.split(\"/\"),function(t){return!!t}),!i).join(\"/\"),(i?\"/\":\"\")+r||\".\"},r.normalize=function(t){var i=r.isAbsolute(t),a=\"/\"===o(t,-1);return t=e(n(t.split(\"/\"),function(t){return!!t}),!i).join(\"/\"),t||i||(t=\".\"),t&&a&&(t+=\"/\"),(i?\"/\":\"\")+t},r.isAbsolute=function(t){return\"/\"===t.charAt(0)},r.join=function(){var t=Array.prototype.slice.call(arguments,0);return r.normalize(n(t,function(t,e){if(\"string\"!=typeof t)throw new TypeError(\"Arguments to path.join must be strings\");return t}).join(\"/\"))},r.relative=function(t,e){function n(t){for(var e=0;e<t.length&&\"\"===t[e];e++);for(var r=t.length-1;r>=0&&\"\"===t[r];r--);return e>r?[]:t.slice(e,r-e+1)}t=r.resolve(t).substr(1),e=r.resolve(e).substr(1);for(var i=n(t.split(\"/\")),a=n(e.split(\"/\")),o=Math.min(i.length,a.length),s=o,l=0;l<o;l++)if(i[l]!==a[l]){s=l;break}for(var u=[],l=s;l<i.length;l++)u.push(\"..\");return u=u.concat(a.slice(s)),u.join(\"/\")},r.sep=\"/\",r.delimiter=\":\",r.dirname=function(t){var e=a(t),r=e[0],n=e[1];return r||n?(n&&(n=n.substr(0,n.length-1)),r+n):\".\"},r.basename=function(t,e){var r=a(t)[2];return e&&r.substr(-1*e.length)===e&&(r=r.substr(0,r.length-e.length)),r},r.extname=function(t){return a(t)[3]};var o=\"b\"===\"ab\".substr(-1)?function(t,e,r){return t.substr(e,r)}:function(t,e,r){return e<0&&(e=t.length+e),t.substr(e,r)}}).call(this,t(\"_process\"))},{_process:487}],477:[function(t,e,r){\"use strict\";function n(t){var e;t&&t.length&&(e=t,t=e.length);var r=new Uint8Array(t||0);return e&&r.set(e),r.readUInt32LE=a.readUInt32LE,r.writeUInt32LE=a.writeUInt32LE,r.readInt32LE=a.readInt32LE,r.writeInt32LE=a.writeInt32LE,r.readFloatLE=a.readFloatLE,r.writeFloatLE=a.writeFloatLE,r.readDoubleLE=a.readDoubleLE,r.writeDoubleLE=a.writeDoubleLE,r.toString=a.toString,r.write=a.write,r.slice=a.slice,r.copy=a.copy,r._isBuffer=!0,r}function i(t){for(var e,r,n=t.length,i=[],a=0;a<n;a++){if((e=t.charCodeAt(a))>55295&&e<57344){if(!r){e>56319||a+1===n?i.push(239,191,189):r=e;continue}if(e<56320){i.push(239,191,189),r=e;continue}e=r-55296<<10|e-56320|65536,r=null}else r&&(i.push(239,191,189),r=null);e<128?i.push(e):e<2048?i.push(e>>6|192,63&e|128):e<65536?i.push(e>>12|224,e>>6&63|128,63&e|128):i.push(e>>18|240,e>>12&63|128,e>>6&63|128,63&e|128)}return i}e.exports=n;var a,o,s,l=t(\"ieee754\");a={readUInt32LE:function(t){return(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},writeUInt32LE:function(t,e){this[e]=t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24},readInt32LE:function(t){return(this[t]|this[t+1]<<8|this[t+2]<<16)+(this[t+3]<<24)},readFloatLE:function(t){return l.read(this,t,!0,23,4)},readDoubleLE:function(t){return l.read(this,t,!0,52,8)},writeFloatLE:function(t,e){return l.write(this,t,e,!0,23,4)},writeDoubleLE:function(t,e){return l.write(this,t,e,!0,52,8)},toString:function(t,e,r){var n=\"\",i=\"\";e=e||0,r=Math.min(this.length,r||this.length);for(var a=e;a<r;a++){var o=this[a];o<=127?(n+=decodeURIComponent(i)+String.fromCharCode(o),i=\"\"):i+=\"%\"+o.toString(16)}return n+=decodeURIComponent(i)},write:function(t,e){for(var r=t===o?s:i(t),n=0;n<r.length;n++)this[e+n]=r[n]},slice:function(t,e){return this.subarray(t,e)},copy:function(t,e){e=e||0;for(var r=0;r<this.length;r++)t[e+r]=this[r]}},a.writeInt32LE=a.writeUInt32LE,n.byteLength=function(t){return o=t,s=i(t),s.length},n.isBuffer=function(t){return!(!t||!t._isBuffer)}},{ieee754:289}],478:[function(t,e,r){(function(r){\"use strict\";function n(t){this.buf=v.isBuffer(t)?t:new v(t||0),this.pos=0,this.length=this.buf.length}function i(t,e){var r,n=e.buf;if(r=n[e.pos++],t+=268435456*(127&r),r<128)return t;if(r=n[e.pos++],t+=34359738368*(127&r),r<128)return t;if(r=n[e.pos++],t+=4398046511104*(127&r),r<128)return t;if(r=n[e.pos++],t+=562949953421312*(127&r),r<128)return t;if(r=n[e.pos++],t+=72057594037927940*(127&r),r<128)return t;if(r=n[e.pos++],t+=0x8000000000000000*(127&r),r<128)return t;throw new Error(\"Expected varint not more than 10 bytes\")}function a(t,e){e.realloc(10);for(var r=e.pos+10;t>=1;){if(e.pos>=r)throw new Error(\"Given varint doesn't fit into 10 bytes\");var n=255&t;e.buf[e.pos++]=n|(t>=128?128:0),t/=128}}function o(t,e,r){var n=e<=16383?1:e<=2097151?2:e<=268435455?3:Math.ceil(Math.log(e)/(7*Math.LN2));r.realloc(n);for(var i=r.pos-1;i>=t;i--)r.buf[i+n]=r.buf[i]}function s(t,e){for(var r=0;r<t.length;r++)e.writeVarint(t[r])}function l(t,e){for(var r=0;r<t.length;r++)e.writeSVarint(t[r])}function u(t,e){for(var r=0;r<t.length;r++)e.writeFloat(t[r])}function c(t,e){for(var r=0;r<t.length;r++)e.writeDouble(t[r])}function h(t,e){for(var r=0;r<t.length;r++)e.writeBoolean(t[r])}function f(t,e){for(var r=0;r<t.length;r++)e.writeFixed32(t[r])}function d(t,e){for(var r=0;r<t.length;r++)e.writeSFixed32(t[r])}function p(t,e){for(var r=0;r<t.length;r++)e.writeFixed64(t[r])}function m(t,e){for(var r=0;r<t.length;r++)e.writeSFixed64(t[r])}e.exports=n;var v=r.Buffer||t(\"./buffer\");n.Varint=0,n.Fixed64=1,n.Bytes=2,n.Fixed32=5;var g=Math.pow(2,63);n.prototype={destroy:function(){this.buf=null},readFields:function(t,e,r){for(r=r||this.length;this.pos<r;){var n=this.readVarint(),i=n>>3,a=this.pos;t(i,e,this),this.pos===a&&this.skip(n)}return e},readMessage:function(t,e){return this.readFields(t,e,this.readVarint()+this.pos)},readFixed32:function(){var t=this.buf.readUInt32LE(this.pos);return this.pos+=4,t},readSFixed32:function(){var t=this.buf.readInt32LE(this.pos);return this.pos+=4,t},readFixed64:function(){var t=this.buf.readUInt32LE(this.pos)+4294967296*this.buf.readUInt32LE(this.pos+4);return this.pos+=8,t},readSFixed64:function(){var t=this.buf.readUInt32LE(this.pos)+4294967296*this.buf.readInt32LE(this.pos+4);return this.pos+=8,t},readFloat:function(){var t=this.buf.readFloatLE(this.pos);return this.pos+=4,t},readDouble:function(){var t=this.buf.readDoubleLE(this.pos);return this.pos+=8,t},readVarint:function(){var t,e,r=this.buf;return e=r[this.pos++],t=127&e,e<128?t:(e=r[this.pos++],t|=(127&e)<<7,e<128?t:(e=r[this.pos++],t|=(127&e)<<14,e<128?t:(e=r[this.pos++],t|=(127&e)<<21,e<128?t:i(t,this))))},readVarint64:function(){var t=this.pos,e=this.readVarint();if(e<g)return e;for(var r=this.pos-2;255===this.buf[r];)r--;r<t&&(r=t),e=0;for(var n=0;n<r-t+1;n++){var i=127&~this.buf[t+n];e+=n<4?i<<7*n:i*Math.pow(2,7*n)}return-e-1},readSVarint:function(){var t=this.readVarint();return t%2==1?(t+1)/-2:t/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var t=this.readVarint()+this.pos,e=this.buf.toString(\"utf8\",this.pos,t);return this.pos=t,e},readBytes:function(){var t=this.readVarint()+this.pos,e=this.buf.slice(this.pos,t);return this.pos=t,e},readPackedVarint:function(){for(var t=this.readVarint()+this.pos,e=[];this.pos<t;)e.push(this.readVarint());return e},readPackedSVarint:function(){for(var t=this.readVarint()+this.pos,e=[];this.pos<t;)e.push(this.readSVarint());return e},readPackedBoolean:function(){for(var t=this.readVarint()+this.pos,e=[];this.pos<t;)e.push(this.readBoolean());return e},readPackedFloat:function(){for(var t=this.readVarint()+this.pos,e=[];this.pos<t;)e.push(this.readFloat());return e},readPackedDouble:function(){for(var t=this.readVarint()+this.pos,e=[];this.pos<t;)e.push(this.readDouble());return e},readPackedFixed32:function(){for(var t=this.readVarint()+this.pos,e=[];this.pos<t;)e.push(this.readFixed32());return e},readPackedSFixed32:function(){for(var t=this.readVarint()+this.pos,e=[];this.pos<t;)e.push(this.readSFixed32());return e},readPackedFixed64:function(){for(var t=this.readVarint()+this.pos,e=[];this.pos<t;)e.push(this.readFixed64());return e},readPackedSFixed64:function(){for(var t=this.readVarint()+this.pos,e=[];this.pos<t;)e.push(this.readSFixed64());return e},skip:function(t){var e=7&t;if(e===n.Varint)for(;this.buf[this.pos++]>127;);else if(e===n.Bytes)this.pos=this.readVarint()+this.pos;else if(e===n.Fixed32)this.pos+=4;else{if(e!==n.Fixed64)throw new Error(\"Unimplemented type: \"+e);this.pos+=8}},writeTag:function(t,e){this.writeVarint(t<<3|e)},realloc:function(t){for(var e=this.length||16;e<this.pos+t;)e*=2;if(e!==this.length){var r=new v(e);this.buf.copy(r),this.buf=r,this.length=e}},finish:function(){return this.length=this.pos,this.pos=0,this.buf.slice(0,this.length)},writeFixed32:function(t){this.realloc(4),this.buf.writeUInt32LE(t,this.pos),this.pos+=4},writeSFixed32:function(t){this.realloc(4),this.buf.writeInt32LE(t,this.pos),this.pos+=4},writeFixed64:function(t){this.realloc(8),this.buf.writeInt32LE(-1&t,this.pos),this.buf.writeUInt32LE(Math.floor(t*(1/4294967296)),this.pos+4),this.pos+=8},writeSFixed64:function(t){this.realloc(8),this.buf.writeInt32LE(-1&t,this.pos),this.buf.writeInt32LE(Math.floor(t*(1/4294967296)),this.pos+4),this.pos+=8},writeVarint:function(t){if((t=+t)>268435455)return void a(t,this);this.realloc(4),this.buf[this.pos++]=127&t|(t>127?128:0),t<=127||(this.buf[this.pos++]=127&(t>>>=7)|(t>127?128:0),t<=127||(this.buf[this.pos++]=127&(t>>>=7)|(t>127?128:0),t<=127||(this.buf[this.pos++]=t>>>7&127)))},writeSVarint:function(t){this.writeVarint(t<0?2*-t-1:2*t)},writeBoolean:function(t){this.writeVarint(Boolean(t))},writeString:function(t){t=String(t);var e=v.byteLength(t);this.writeVarint(e),this.realloc(e),this.buf.write(t,this.pos),this.pos+=e},writeFloat:function(t){this.realloc(4),this.buf.writeFloatLE(t,this.pos),this.pos+=4},writeDouble:function(t){this.realloc(8),this.buf.writeDoubleLE(t,this.pos),this.pos+=8},writeBytes:function(t){var e=t.length;this.writeVarint(e),this.realloc(e);for(var r=0;r<e;r++)this.buf[this.pos++]=t[r]},writeRawMessage:function(t,e){this.pos++;var r=this.pos;t(e,this);var n=this.pos-r;n>=128&&o(r,n,this),this.pos=r-1,this.writeVarint(n),this.pos+=n},writeMessage:function(t,e,r){this.writeTag(t,n.Bytes),this.writeRawMessage(e,r)},writePackedVarint:function(t,e){this.writeMessage(t,s,e)},writePackedSVarint:function(t,e){this.writeMessage(t,l,e)},writePackedBoolean:function(t,e){this.writeMessage(t,h,e)},writePackedFloat:function(t,e){this.writeMessage(t,u,e)},writePackedDouble:function(t,e){this.writeMessage(t,c,e)},writePackedFixed32:function(t,e){this.writeMessage(t,f,e)},writePackedSFixed32:function(t,e){this.writeMessage(t,d,e)},writePackedFixed64:function(t,e){this.writeMessage(t,p,e)},writePackedSFixed64:function(t,e){this.writeMessage(t,m,e)},writeBytesField:function(t,e){this.writeTag(t,n.Bytes),this.writeBytes(e)},writeFixed32Field:function(t,e){this.writeTag(t,n.Fixed32),this.writeFixed32(e)},writeSFixed32Field:function(t,e){this.writeTag(t,n.Fixed32),this.writeSFixed32(e)},writeFixed64Field:function(t,e){this.writeTag(t,n.Fixed64),this.writeFixed64(e)},writeSFixed64Field:function(t,e){this.writeTag(t,n.Fixed64),this.writeSFixed64(e)},writeVarintField:function(t,e){this.writeTag(t,n.Varint),this.writeVarint(e)},writeSVarintField:function(t,e){this.writeTag(t,n.Varint),this.writeSVarint(e)},writeStringField:function(t,e){this.writeTag(t,n.Bytes),this.writeString(e)},writeFloatField:function(t,e){this.writeTag(t,n.Fixed32),this.writeFloat(e)},writeDoubleField:function(t,e){this.writeTag(t,n.Fixed64),this.writeDouble(e)},writeBooleanField:function(t,e){this.writeVarintField(t,Boolean(e))}}}).call(this,\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{\"./buffer\":477}],479:[function(t,e,r){\"use strict\";function n(t){var e=t.length;if(e<i){for(var r=1,n=0;n<e;++n)for(var o=0;o<n;++o)if(t[n]<t[o])r=-r;else if(t[n]===t[o])return 0;return r}for(var s=a.mallocUint8(e),n=0;n<e;++n)s[n]=0;for(var r=1,n=0;n<e;++n)if(!s[n]){var l=1;s[n]=1;for(var o=t[n];o!==n;o=t[o]){if(s[o])return a.freeUint8(s),0;l+=1,s[o]=1}1&l||(r=-r)}return a.freeUint8(s),r}e.exports=n;var i=32,a=t(\"typedarray-pool\")},{\"typedarray-pool\":541}],480:[function(t,e,r){\"use strict\";function n(t){var e=t.length;switch(e){case 0:case 1:return 0;case 2:return t[1]}var r,n,i,s=a.mallocUint32(e),l=a.mallocUint32(e),u=0;for(o(t,l),i=0;i<e;++i)s[i]=t[i];for(i=e-1;i>0;--i)n=l[i],r=s[i],s[i]=s[n],s[n]=r,l[i]=l[r],l[r]=n,u=(u+r)*i;return a.freeUint32(l),a.freeUint32(s),u}function i(t,e,r){switch(t){case 0:return r||[];case 1:return r?(r[0]=0,r):[0];case 2:return r?(e?(r[0]=0,r[1]=1):(r[0]=1,r[1]=0),r):e?[0,1]:[1,0]}r=r||new Array(t);var n,i,a,o=1;for(r[0]=0,a=1;a<t;++a)r[a]=a,o=o*a|0;for(a=t-1;a>0;--a)n=e/o|0,e=e-n*o|0,o=o/a|0,i=0|r[a],r[a]=0|r[n],r[n]=0|i;return r}var a=t(\"typedarray-pool\"),o=t(\"invert-permutation\");r.rank=n,r.unrank=i},{\"invert-permutation\":292,\"typedarray-pool\":541}],481:[function(t,e,r){\"use strict\";function n(t,e){function r(t,e){var r=s[e][t[e]];r.splice(r.indexOf(t),1)}function n(t,n,a){for(var o,l,u,c=0;c<2;++c)if(s[c][n].length>0){o=s[c][n][0],u=c;break}l=o[1^u];for(var h=0;h<2;++h)for(var f=s[h][n],d=0;d<f.length;++d){var p=f[d],m=p[1^h],v=i(e[t],e[n],e[l],e[m]);v>0&&(o=p,l=m,u=h)}return a?l:(o&&r(o,u),l)}for(var a=0|e.length,o=t.length,s=[new Array(a),new Array(a)],l=0;l<a;++l)s[0][l]=[],s[1][l]=[];for(var l=0;l<o;++l){var u=t[l];s[0][u[0]].push(u),s[1][u[1]].push(u)}for(var c=[],l=0;l<a;++l)s[0][l].length+s[1][l].length===0&&c.push([l]);for(var l=0;l<a;++l)for(var h=0;h<2;++h){for(var f=[];s[h][l].length>0;){var d=(s[0][l].length,function(t,a){var o=s[a][t][0],l=[t];r(o,a);for(var u=o[1^a];;){for(;u!==t;)l.push(u),u=n(l[l.length-2],u,!1);if(s[0][t].length+s[1][t].length===0)break;var c=l[l.length-1],h=t,f=l[1],d=n(c,h,!0);if(i(e[c],e[h],e[f],e[d])<0)break;l.push(t),u=n(c,h)}return l}(l,h));!function(t,e){return e[1]===e[e.length-1]}(f,d)?(f.length>0&&c.push(f),f=d):f.push.apply(f,d)}f.length>0&&c.push(f)}return c}e.exports=n;var i=t(\"compare-angle\")},{\"compare-angle\":100}],482:[function(t,e,r){\"use strict\";function n(t,e){for(var r=i(t,e.length),n=new Array(e.length),a=new Array(e.length),o=[],s=0;s<e.length;++s){var l=r[s].length;a[s]=l,n[s]=!0,l<=1&&o.push(s)}for(;o.length>0;){var u=o.pop();n[u]=!1;for(var c=r[u],s=0;s<c.length;++s){var h=c[s];0==--a[h]&&o.push(h)}}for(var f=new Array(e.length),d=[],s=0;s<e.length;++s)if(n[s]){var u=d.length;f[s]=u,d.push(e[s])}else f[s]=-1;for(var p=[],s=0;s<t.length;++s){var m=t[s];n[m[0]]&&n[m[1]]&&p.push([f[m[0]],f[m[1]]])}return[p,d]}e.exports=n;var i=t(\"edges-to-adjacency-list\")},{\"edges-to-adjacency-list\":127}],483:[function(t,e,r){\"use strict\";function n(t,e){for(var r=new Array(t),n=0;n<t;++n)r[n]=e;return r}function i(t){for(var e=new Array(t),r=0;r<t;++r)e[r]=[];return e}function a(t,e){function r(t){for(var r=t.length,n=[0],i=0;i<r;++i){var a=e[t[i]],o=e[t[(i+1)%r]],s=u(-a[0],a[1]),l=u(-a[0],o[1]),h=u(o[0],a[1]),f=u(o[0],o[1]);n=c(n,c(c(s,l),c(h,f)))}return n[n.length-1]>0}function a(t){for(var e=t.length,r=0;r<e;++r)if(!P[t[r]])return!1;return!0}var d=f(t,e);t=d[0],e=d[1];for(var p=e.length,m=(t.length,o(t,e.length)),v=0;v<p;++v)if(m[v].length%2==1)throw new Error(\"planar-graph-to-polyline: graph must be manifold\");var g=s(t,e);g=g.filter(r);for(var y=g.length,b=new Array(y),x=new Array(y),v=0;v<y;++v){b[v]=v;var _=new Array(y),w=g[v].map(function(t){return e[t]}),M=l([w]),k=0;t:for(var A=0;A<y;++A)if(_[A]=0,v!==A){for(var T=g[A],S=T.length,E=0;E<S;++E){var L=M(e[T[E]]);if(0!==L){L<0&&(_[A]=1,k+=1);continue t}}_[A]=1,k+=1}x[v]=[k,v,_]}x.sort(function(t,e){return e[0]-t[0]});for(var v=0;v<y;++v)for(var _=x[v],C=_[1],I=_[2],A=0;A<y;++A)I[A]&&(b[A]=C);for(var z=i(y),v=0;v<y;++v)z[v].push(b[v]),z[b[v]].push(v);for(var D={},P=n(p,!1),v=0;v<y;++v)for(var T=g[v],S=T.length,A=0;A<S;++A){var O=T[A],R=T[(A+1)%S],F=Math.min(O,R)+\":\"+Math.max(O,R);if(F in D){var j=D[F];z[j].push(v),z[v].push(j),P[O]=P[R]=!0}else D[F]=v}for(var N=[],B=n(y,-1),v=0;v<y;++v)b[v]!==v||a(g[v])?B[v]=-1:(N.push(v),B[v]=0);for(var d=[];N.length>0;){var U=N.pop(),V=z[U];h(V,function(t,e){return t-e});var H,q=V.length,G=B[U];if(0===G){var T=g[U];H=[T]}for(var v=0;v<q;++v){var Y=V[v];if(!(B[Y]>=0)&&(B[Y]=1^G,N.push(Y),0===G)){var T=g[Y];a(T)||(T.reverse(),H.push(T))}}0===G&&d.push(H)}return d}e.exports=a\n", ";var o=t(\"edges-to-adjacency-list\"),s=t(\"planar-dual\"),l=t(\"point-in-big-polygon\"),u=t(\"two-product\"),c=t(\"robust-sum\"),h=t(\"uniq\"),f=t(\"./lib/trim-leaves\")},{\"./lib/trim-leaves\":482,\"edges-to-adjacency-list\":127,\"planar-dual\":481,\"point-in-big-polygon\":485,\"robust-sum\":513,\"two-product\":539,uniq:543}],484:[function(t,e,r){\"use strict\";function n(t,e){this.x=t,this.y=e}e.exports=n,n.prototype={clone:function(){return new n(this.x,this.y)},add:function(t){return this.clone()._add(t)},sub:function(t){return this.clone()._sub(t)},mult:function(t){return this.clone()._mult(t)},div:function(t){return this.clone()._div(t)},rotate:function(t){return this.clone()._rotate(t)},matMult:function(t){return this.clone()._matMult(t)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(t){return this.x===t.x&&this.y===t.y},dist:function(t){return Math.sqrt(this.distSqr(t))},distSqr:function(t){var e=t.x-this.x,r=t.y-this.y;return e*e+r*r},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(t){return Math.atan2(this.y-t.y,this.x-t.x)},angleWith:function(t){return this.angleWithSep(t.x,t.y)},angleWithSep:function(t,e){return Math.atan2(this.x*e-this.y*t,this.x*t+this.y*e)},_matMult:function(t){var e=t[0]*this.x+t[1]*this.y,r=t[2]*this.x+t[3]*this.y;return this.x=e,this.y=r,this},_add:function(t){return this.x+=t.x,this.y+=t.y,this},_sub:function(t){return this.x-=t.x,this.y-=t.y,this},_mult:function(t){return this.x*=t,this.y*=t,this},_div:function(t){return this.x/=t,this.y/=t,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var t=this.y;return this.y=this.x,this.x=-t,this},_rotate:function(t){var e=Math.cos(t),r=Math.sin(t),n=e*this.x-r*this.y,i=r*this.x+e*this.y;return this.x=n,this.y=i,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},n.convert=function(t){return t instanceof n?t:Array.isArray(t)?new n(t[0],t[1]):t}},{}],485:[function(t,e,r){function n(){return!0}function i(t){return function(e,r){var i=t[e];return!!i&&!!i.queryPoint(r,n)}}function a(t){for(var e={},r=0;r<t.length;++r){var n=t[r],a=n[0][0],o=n[0][1],s=n[1][1],l=[Math.min(o,s),Math.max(o,s)];a in e?e[a].push(l):e[a]=[l]}for(var u={},c=Object.keys(e),r=0;r<c.length;++r){var h=e[c[r]];u[c[r]]=d(h)}return i(u)}function o(t,e){return function(r){var n=p.le(e,r[0]);if(n<0)return 1;var i=t[n];if(!i){if(!(n>0&&e[n]===r[0]))return 1;i=t[n-1]}for(var a=1;i;){var o=i.key,s=h(r,o[0],o[1]);if(o[0][0]<o[1][0])if(s<0)i=i.left;else{if(!(s>0))return 0;a=-1,i=i.right}else if(s>0)i=i.left;else{if(!(s<0))return 0;a=1,i=i.right}}return a}}function s(t){return 1}function l(t){return function(e){return t(e[0],e[1])?0:1}}function u(t,e){return function(r){return t(r[0],r[1])?0:e(r)}}function c(t){for(var e=t.length,r=[],n=[],i=0;i<e;++i)for(var c=t[i],h=c.length,d=h-1,p=0;p<h;d=p++){var m=c[d],v=c[p];m[0]===v[0]?n.push([m,v]):r.push([m,v])}if(0===r.length)return 0===n.length?s:l(a(n));var g=f(r),y=o(g.slabs,g.coordinates);return 0===n.length?y:u(a(n),y)}e.exports=c;var h=t(\"robust-orientation\")[3],f=t(\"slab-decomposition\"),d=t(\"interval-tree-1d\"),p=t(\"binary-search-bounds\")},{\"binary-search-bounds\":66,\"interval-tree-1d\":291,\"robust-orientation\":508,\"slab-decomposition\":525}],486:[function(t,e,r){\"use strict\";function n(t,e,r,n,s){i.length<n.length&&(i=new Float64Array(n.length),a=new Float64Array(n.length),o=new Float64Array(n.length));for(var l=0;l<n.length;++l)i[l]=t[l]-n[l],a[l]=e[l]-t[l],o[l]=r[l]-t[l];for(var u=0,c=0,h=0,f=0,d=0,p=0,l=0;l<n.length;++l){var m=a[l],v=o[l],g=i[l];u+=m*m,c+=m*v,h+=v*v,f+=g*m,d+=g*v,p+=g*g}var y,b=Math.abs(u*h-c*c),x=c*d-h*f,_=c*f-u*d;if(x+_<=b)if(x<0)_<0&&f<0?(_=0,-f>=u?(x=1,y=u+2*f+p):(x=-f/u,y=f*x+p)):(x=0,d>=0?(_=0,y=p):-d>=h?(_=1,y=h+2*d+p):(_=-d/h,y=d*_+p));else if(_<0)_=0,f>=0?(x=0,y=p):-f>=u?(x=1,y=u+2*f+p):(x=-f/u,y=f*x+p);else{var w=1/b;x*=w,_*=w,y=x*(u*x+c*_+2*f)+_*(c*x+h*_+2*d)+p}else{var M,k,A,T;x<0?(M=c+f,k=h+d,k>M?(A=k-M,T=u-2*c+h,A>=T?(x=1,_=0,y=u+2*f+p):(x=A/T,_=1-x,y=x*(u*x+c*_+2*f)+_*(c*x+h*_+2*d)+p)):(x=0,k<=0?(_=1,y=h+2*d+p):d>=0?(_=0,y=p):(_=-d/h,y=d*_+p))):_<0?(M=c+d,k=u+f,k>M?(A=k-M,T=u-2*c+h,A>=T?(_=1,x=0,y=h+2*d+p):(_=A/T,x=1-_,y=x*(u*x+c*_+2*f)+_*(c*x+h*_+2*d)+p)):(_=0,k<=0?(x=1,y=u+2*f+p):f>=0?(x=0,y=p):(x=-f/u,y=f*x+p))):(A=h+d-c-f,A<=0?(x=0,_=1,y=h+2*d+p):(T=u-2*c+h,A>=T?(x=1,_=0,y=u+2*f+p):(x=A/T,_=1-x,y=x*(u*x+c*_+2*f)+_*(c*x+h*_+2*d)+p)))}for(var S=1-x-_,l=0;l<n.length;++l)s[l]=S*t[l]+x*e[l]+_*r[l];return y<0?0:y}var i=new Float64Array(4),a=new Float64Array(4),o=new Float64Array(4);e.exports=n},{}],487:[function(t,e,r){function n(){throw new Error(\"setTimeout has not been defined\")}function i(){throw new Error(\"clearTimeout has not been defined\")}function a(t){if(h===setTimeout)return setTimeout(t,0);if((h===n||!h)&&setTimeout)return h=setTimeout,setTimeout(t,0);try{return h(t,0)}catch(e){try{return h.call(null,t,0)}catch(e){return h.call(this,t,0)}}}function o(t){if(f===clearTimeout)return clearTimeout(t);if((f===i||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(t);try{return f(t)}catch(e){try{return f.call(null,t)}catch(e){return f.call(this,t)}}}function s(){v&&p&&(v=!1,p.length?m=p.concat(m):g=-1,m.length&&l())}function l(){if(!v){var t=a(s);v=!0;for(var e=m.length;e;){for(p=m,m=[];++g<e;)p&&p[g].run();g=-1,e=m.length}p=null,v=!1,o(t)}}function u(t,e){this.fun=t,this.array=e}function c(){}var h,f,d=e.exports={};!function(){try{h=\"function\"==typeof setTimeout?setTimeout:n}catch(t){h=n}try{f=\"function\"==typeof clearTimeout?clearTimeout:i}catch(t){f=i}}();var p,m=[],v=!1,g=-1;d.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];m.push(new u(t,e)),1!==m.length||v||a(l)},u.prototype.run=function(){this.fun.apply(null,this.array)},d.title=\"browser\",d.browser=!0,d.env={},d.argv=[],d.version=\"\",d.versions={},d.on=c,d.addListener=c,d.once=c,d.off=c,d.removeListener=c,d.removeAllListeners=c,d.emit=c,d.prependListener=c,d.prependOnceListener=c,d.listeners=function(t){return[]},d.binding=function(t){throw new Error(\"process.binding is not supported\")},d.cwd=function(){return\"/\"},d.chdir=function(t){throw new Error(\"process.chdir is not supported\")},d.umask=function(){return 0}},{}],488:[function(e,r,n){(function(e){!function(i){function a(t){throw new RangeError(P[t])}function o(t,e){for(var r=t.length,n=[];r--;)n[r]=e(t[r]);return n}function s(t,e){var r=t.split(\"@\"),n=\"\";return r.length>1&&(n=r[0]+\"@\",t=r[1]),t=t.replace(D,\".\"),n+o(t.split(\".\"),e).join(\".\")}function l(t){for(var e,r,n=[],i=0,a=t.length;i<a;)e=t.charCodeAt(i++),e>=55296&&e<=56319&&i<a?(r=t.charCodeAt(i++),56320==(64512&r)?n.push(((1023&e)<<10)+(1023&r)+65536):(n.push(e),i--)):n.push(e);return n}function u(t){return o(t,function(t){var e=\"\";return t>65535&&(t-=65536,e+=F(t>>>10&1023|55296),t=56320|1023&t),e+=F(t)}).join(\"\")}function c(t){return t-48<10?t-22:t-65<26?t-65:t-97<26?t-97:M}function h(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function f(t,e,r){var n=0;for(t=r?R(t/S):t>>1,t+=R(t/e);t>O*A>>1;n+=M)t=R(t/O);return R(n+(O+1)*t/(t+T))}function d(t){var e,r,n,i,o,s,l,h,d,p,m=[],v=t.length,g=0,y=L,b=E;for(r=t.lastIndexOf(C),r<0&&(r=0),n=0;n<r;++n)t.charCodeAt(n)>=128&&a(\"not-basic\"),m.push(t.charCodeAt(n));for(i=r>0?r+1:0;i<v;){for(o=g,s=1,l=M;i>=v&&a(\"invalid-input\"),h=c(t.charCodeAt(i++)),(h>=M||h>R((w-g)/s))&&a(\"overflow\"),g+=h*s,d=l<=b?k:l>=b+A?A:l-b,!(h<d);l+=M)p=M-d,s>R(w/p)&&a(\"overflow\"),s*=p;e=m.length+1,b=f(g-o,e,0==o),R(g/e)>w-y&&a(\"overflow\"),y+=R(g/e),g%=e,m.splice(g++,0,y)}return u(m)}function p(t){var e,r,n,i,o,s,u,c,d,p,m,v,g,y,b,x=[];for(t=l(t),v=t.length,e=L,r=0,o=E,s=0;s<v;++s)(m=t[s])<128&&x.push(F(m));for(n=i=x.length,i&&x.push(C);n<v;){for(u=w,s=0;s<v;++s)(m=t[s])>=e&&m<u&&(u=m);for(g=n+1,u-e>R((w-r)/g)&&a(\"overflow\"),r+=(u-e)*g,e=u,s=0;s<v;++s)if(m=t[s],m<e&&++r>w&&a(\"overflow\"),m==e){for(c=r,d=M;p=d<=o?k:d>=o+A?A:d-o,!(c<p);d+=M)b=c-p,y=M-p,x.push(F(h(p+b%y,0))),c=R(b/y);x.push(F(h(c,0))),o=f(r,g,n==i),r=0,++n}++r,++e}return x.join(\"\")}function m(t){return s(t,function(t){return I.test(t)?d(t.slice(4).toLowerCase()):t})}function v(t){return s(t,function(t){return z.test(t)?\"xn--\"+p(t):t})}var g=\"object\"==typeof n&&n&&!n.nodeType&&n,y=\"object\"==typeof r&&r&&!r.nodeType&&r,b=\"object\"==typeof e&&e;b.global!==b&&b.window!==b&&b.self!==b||(i=b);var x,_,w=2147483647,M=36,k=1,A=26,T=38,S=700,E=72,L=128,C=\"-\",I=/^xn--/,z=/[^\\x20-\\x7E]/,D=/[\\x2E\\u3002\\uFF0E\\uFF61]/g,P={overflow:\"Overflow: input needs wider integers to process\",\"not-basic\":\"Illegal input >= 0x80 (not a basic code point)\",\"invalid-input\":\"Invalid input\"},O=M-k,R=Math.floor,F=String.fromCharCode;if(x={version:\"1.4.1\",ucs2:{decode:l,encode:u},decode:d,encode:p,toASCII:v,toUnicode:m},\"function\"==typeof t&&\"object\"==typeof t.amd&&t.amd)t(\"punycode\",function(){return x});else if(g&&y)if(r.exports==g)y.exports=x;else for(_ in x)x.hasOwnProperty(_)&&(g[_]=x[_]);else i.punycode=x}(this)}).call(this,\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{}],489:[function(t,e,r){e.exports=t(\"gl-quat/slerp\")},{\"gl-quat/slerp\":231}],490:[function(t,e,r){\"use strict\";function n(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.exports=function(t,e,r,a){e=e||\"&\",r=r||\"=\";var o={};if(\"string\"!=typeof t||0===t.length)return o;var s=/\\+/g;t=t.split(e);var l=1e3;a&&\"number\"==typeof a.maxKeys&&(l=a.maxKeys);var u=t.length;l>0&&u>l&&(u=l);for(var c=0;c<u;++c){var h,f,d,p,m=t[c].replace(s,\"%20\"),v=m.indexOf(r);v>=0?(h=m.substr(0,v),f=m.substr(v+1)):(h=m,f=\"\"),d=decodeURIComponent(h),p=decodeURIComponent(f),n(o,d)?i(o[d])?o[d].push(p):o[d]=[o[d],p]:o[d]=p}return o};var i=Array.isArray||function(t){return\"[object Array]\"===Object.prototype.toString.call(t)}},{}],491:[function(t,e,r){\"use strict\";function n(t,e){if(t.map)return t.map(e);for(var r=[],n=0;n<t.length;n++)r.push(e(t[n],n));return r}var i=function(t){switch(typeof t){case\"string\":return t;case\"boolean\":return t?\"true\":\"false\";case\"number\":return isFinite(t)?t:\"\";default:return\"\"}};e.exports=function(t,e,r,s){return e=e||\"&\",r=r||\"=\",null===t&&(t=void 0),\"object\"==typeof t?n(o(t),function(o){var s=encodeURIComponent(i(o))+r;return a(t[o])?n(t[o],function(t){return s+encodeURIComponent(i(t))}).join(e):s+encodeURIComponent(i(t[o]))}).join(e):s?encodeURIComponent(i(s))+r+encodeURIComponent(i(t)):\"\"};var a=Array.isArray||function(t){return\"[object Array]\"===Object.prototype.toString.call(t)},o=Object.keys||function(t){var e=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.push(r);return e}},{}],492:[function(t,e,r){\"use strict\";r.decode=r.parse=t(\"./decode\"),r.encode=r.stringify=t(\"./encode\")},{\"./decode\":490,\"./encode\":491}],493:[function(t,e,r){\"use strict\";function n(t,e,r,o,s){for(r=r||0,o=o||t.length-1,s=s||a;o>r;){if(o-r>600){var l=o-r+1,u=e-r+1,c=Math.log(l),h=.5*Math.exp(2*c/3),f=.5*Math.sqrt(c*h*(l-h)/l)*(u-l/2<0?-1:1);n(t,e,Math.max(r,Math.floor(e-u*h/l+f)),Math.min(o,Math.floor(e+(l-u)*h/l+f)),s)}var d=t[e],p=r,m=o;for(i(t,r,e),s(t[o],d)>0&&i(t,r,o);p<m;){for(i(t,p,m),p++,m--;s(t[p],d)<0;)p++;for(;s(t[m],d)>0;)m--}0===s(t[r],d)?i(t,r,m):(m++,i(t,m,o)),m<=e&&(r=m+1),e<=m&&(o=m-1)}}function i(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function a(t,e){return t<e?-1:t>e?1:0}e.exports=n},{}],494:[function(t,e,r){\"use strict\";function n(t,e){for(var r=t.length,n=new Array(r),a=0;a<r;++a)n[a]=i(t[a],e[a]);return n}var i=t(\"big-rat/add\");e.exports=n},{\"big-rat/add\":50}],495:[function(t,e,r){\"use strict\";function n(t){for(var e=new Array(t.length),r=0;r<t.length;++r)e[r]=i(t[r]);return e}e.exports=n;var i=t(\"big-rat\")},{\"big-rat\":53}],496:[function(t,e,r){\"use strict\";function n(t,e){for(var r=i(e),n=t.length,o=new Array(n),s=0;s<n;++s)o[s]=a(t[s],r);return o}var i=t(\"big-rat\"),a=t(\"big-rat/mul\");e.exports=n},{\"big-rat\":53,\"big-rat/mul\":62}],497:[function(t,e,r){\"use strict\";function n(t,e){for(var r=t.length,n=new Array(r),a=0;a<r;++a)n[a]=i(t[a],e[a]);return n}var i=t(\"big-rat/sub\");e.exports=n},{\"big-rat/sub\":64}],498:[function(t,e,r){\"use strict\";function n(t){t.sort(a);for(var e=t.length,r=0,n=0;n<e;++n){var s=t[n],l=o(s);if(0!==l){if(r>0){var u=t[r-1];if(0===i(s,u)&&o(u)!==l){r-=1;continue}}t[r++]=s}}return t.length=r,t}var i=t(\"compare-cell\"),a=t(\"compare-oriented-cell\"),o=t(\"cell-orientation\");e.exports=n},{\"cell-orientation\":85,\"compare-cell\":101,\"compare-oriented-cell\":102}],499:[function(e,r,n){!function(e,i){\"object\"==typeof n&&void 0!==r?r.exports=i():\"function\"==typeof t&&t.amd?t(i):e.createREGL=i()}(this,function(){\"use strict\";function t(t){return\"undefined\"!=typeof btoa?btoa(t):\"base64:\"+t}function e(t){var e=new Error(\"(regl) \"+t);throw console.error(e),e}function r(t,r){t||e(r)}function n(t){return t?\": \"+t:\"\"}function i(t,r,i){t in r||e(\"unknown parameter (\"+t+\")\"+n(i)+\". possible values: \"+Object.keys(r).join())}function a(t,r){Qt(t)||e(\"invalid parameter type\"+n(r)+\". must be a typed array\")}function o(t,r,i){typeof t!==r&&e(\"invalid parameter type\"+n(i)+\". expected \"+r+\", got \"+typeof t)}function s(t,r){t>=0&&(0|t)===t||e(\"invalid parameter type, (\"+t+\")\"+n(r)+\". must be a nonnegative integer\")}function l(t,r,i){r.indexOf(t)<0&&e(\"invalid value\"+n(i)+\". must be one of: \"+r)}function u(t){Object.keys(t).forEach(function(t){te.indexOf(t)<0&&e('invalid regl constructor argument \"'+t+'\". must be one of '+te)})}function c(t,e){for(t+=\"\";t.length<e;)t=\" \"+t;return t}function h(){this.name=\"unknown\",this.lines=[],this.index={},this.hasErrors=!1}function f(t,e){this.number=t,this.line=e,this.errors=[]}function d(t,e,r){this.file=t,this.line=e,this.message=r}function p(){var t=new Error,e=(t.stack||t).toString(),r=/compileProcedure.*\\n\\s*at.*\\((.*)\\)/.exec(e);if(r)return r[1];var n=/compileProcedure.*\\n\\s*at\\s+(.*)(\\n|$)/.exec(e);return n?n[1]:\"unknown\"}function m(){var t=new Error,e=(t.stack||t).toString(),r=/at REGLCommand.*\\n\\s+at.*\\((.*)\\)/.exec(e);if(r)return r[1];var n=/at REGLCommand.*\\n\\s+at\\s+(.*)\\n/.exec(e);return n?n[1]:\"unknown\"}function v(e,r){var n=e.split(\"\\n\"),i=1,a=0,o={unknown:new h,0:new h};o.unknown.name=o[0].name=r||p(),o.unknown.lines.push(new f(0,\"\"));for(var s=0;s<n.length;++s){var l=n[s],u=/^\\s*\\#\\s*(\\w+)\\s+(.+)\\s*$/.exec(l);if(u)switch(u[1]){case\"line\":var c=/(\\d+)(\\s+\\d+)?/.exec(u[2]);c&&(i=0|c[1],c[2]&&((a=0|c[2])in o||(o[a]=new h)));break;case\"define\":var d=/SHADER_NAME(_B64)?\\s+(.*)$/.exec(u[2]);d&&(o[a].name=d[1]?t(d[2]):d[2])}o[a].lines.push(new f(i++,l))}return Object.keys(o).forEach(function(t){var e=o[t];e.lines.forEach(function(t){e.index[t.number]=t})}),o}function g(t){var e=[];return t.split(\"\\n\").forEach(function(t){if(!(t.length<5)){var r=/^ERROR\\:\\s+(\\d+)\\:(\\d+)\\:\\s*(.*)$/.exec(t);r?e.push(new d(0|r[1],0|r[2],r[3].trim())):t.length>0&&e.push(new d(\"unknown\",0,t))}}),e}function y(t,e){e.forEach(function(e){var r=t[e.file];if(r){var n=r.index[e.line];if(n)return n.errors.push(e),void(r.hasErrors=!0)}t.unknown.hasErrors=!0,t.unknown.lines[0].errors.push(e)})}function b(t,e,n,i,a){if(!t.getShaderParameter(e,t.COMPILE_STATUS)){var o=t.getShaderInfoLog(e),s=i===t.FRAGMENT_SHADER?\"fragment\":\"vertex\";T(n,\"string\",s+\" shader source must be a string\",a);var l=v(n,a),u=g(o);y(l,u),Object.keys(l).forEach(function(t){function e(t,e){n.push(t),i.push(e||\"\")}var r=l[t];if(r.hasErrors){var n=[\"\"],i=[\"\"];e(\"file number \"+t+\": \"+r.name+\"\\n\",\"color:red;text-decoration:underline;font-weight:bold\"),r.lines.forEach(function(t){if(t.errors.length>0){e(c(t.number,4)+\"| \",\"background-color:yellow; font-weight:bold\"),e(t.line+\"\\n\",\"color:red; background-color:yellow; font-weight:bold\");var r=0;t.errors.forEach(function(n){var i=n.message,a=/^\\s*\\'(.*)\\'\\s*\\:\\s*(.*)$/.exec(i);if(a){var o=a[1];switch(i=a[2],o){case\"assign\":o=\"=\"}r=Math.max(t.line.indexOf(o,r),0)}else r=0;e(c(\"| \",6)),e(c(\"^^^\",r+3)+\"\\n\",\"font-weight:bold\"),e(c(\"| \",6)),e(i+\"\\n\",\"font-weight:bold\")}),e(c(\"| \",6)+\"\\n\")}else e(c(t.number,4)+\"| \"),e(t.line+\"\\n\",\"color:red\")}),\"undefined\"!=typeof document?(i[0]=n.join(\"%c\"),console.log.apply(console,i)):console.log(n.join(\"\"))}}),r.raise(\"Error compiling \"+s+\" shader, \"+l[0].name)}}function x(t,e,n,i,a){if(!t.getProgramParameter(e,t.LINK_STATUS)){var o=t.getProgramInfoLog(e),s=v(n,a),l=v(i,a),u='Error linking program with vertex shader, \"'+l[0].name+'\", and fragment shader \"'+s[0].name+'\"';\"undefined\"!=typeof document?console.log(\"%c\"+u+\"\\n%c\"+o,\"color:red;text-decoration:underline;font-weight:bold\",\"color:red\"):console.log(u+\"\\n\"+o),r.raise(u)}}function _(t){t._commandRef=p()}function w(t,e,r,n){function i(t){return t?n.id(t):0}function a(t,e){Object.keys(e).forEach(function(e){t[n.id(e)]=!0})}_(t),t._fragId=i(t.static.frag),t._vertId=i(t.static.vert);var o=t._uniformSet={};a(o,e.static),a(o,e.dynamic);var s=t._attributeSet={};a(s,r.static),a(s,r.dynamic),t._hasCount=\"count\"in t.static||\"count\"in t.dynamic||\"elements\"in t.static||\"elements\"in t.dynamic}function M(t,r){var n=m();e(t+\" in command \"+(r||p())+(\"unknown\"===n?\"\":\" called from \"+n))}function k(t,e,r){t||M(e,r||p())}function A(t,e,r,i){t in e||M(\"unknown parameter (\"+t+\")\"+n(r)+\". possible values: \"+Object.keys(e).join(),i||p())}function T(t,e,r,i){typeof t!==e&&M(\"invalid parameter type\"+n(r)+\". expected \"+e+\", got \"+typeof t,i||p())}function S(t){t()}function E(t,e,r){t.texture?l(t.texture._texture.internalformat,e,\"unsupported texture format for attachment\"):l(t.renderbuffer._renderbuffer.format,r,\"unsupported renderbuffer format for attachment\")}function L(t,e){return t===ue||t===le||t===ce?2:t===he?4:fe[t]*e}function C(t){return!(t&t-1||!t)}function I(t,e,n){var i,a=e.width,o=e.height,s=e.channels;r(a>0&&a<=n.maxTextureSize&&o>0&&o<=n.maxTextureSize,\"invalid texture shape\"),t.wrapS===ee&&t.wrapT===ee||r(C(a)&&C(o),\"incompatible wrap mode for texture, both width and height must be power of 2\"),1===e.mipmask?1!==a&&1!==o&&r(t.minFilter!==ne&&t.minFilter!==ae&&t.minFilter!==ie&&t.minFilter!==oe,\"min filter requires mipmap\"):(r(C(a)&&C(o),\"texture must be a square power of 2 to support mipmapping\"),r(e.mipmask===(a<<1)-1,\"missing or incomplete mipmap data\")),e.type===se&&(n.extensions.indexOf(\"oes_texture_float_linear\")<0&&r(t.minFilter===re&&t.magFilter===re,\"filter not supported, must enable oes_texture_float_linear\"),r(!t.genMipmaps,\"mipmap generation not supported with float textures\"));var l=e.images;for(i=0;i<16;++i)if(l[i]){var u=a>>i,c=o>>i;r(e.mipmask&1<<i,\"missing mipmap data\");var h=l[i];if(r(h.width===u&&h.height===c,\"invalid shape for mip images\"),r(h.format===e.format&&h.internalformat===e.internalformat&&h.type===e.type,\"incompatible type for mip image\"),h.compressed);else if(h.data){var f=Math.ceil(L(h.type,s)*u/h.unpackAlignment)*h.unpackAlignment;r(h.data.byteLength===f*c,\"invalid data for image, buffer size is inconsistent with image format\")}else h.element||h.copy}else t.genMipmaps||r(0==(e.mipmask&1<<i),\"extra mipmap data\");e.compressed&&r(!t.genMipmaps,\"mipmap generation for compressed images not supported\")}function z(t,e,n,i){var a=t.width,o=t.height,s=t.channels;r(a>0&&a<=i.maxTextureSize&&o>0&&o<=i.maxTextureSize,\"invalid texture shape\"),r(a===o,\"cube map must be square\"),r(e.wrapS===ee&&e.wrapT===ee,\"wrap mode not supported by cube map\");for(var l=0;l<n.length;++l){var u=n[l];r(u.width===a&&u.height===o,\"inconsistent cube map face shape\"),e.genMipmaps&&(r(!u.compressed,\"can not generate mipmap for compressed textures\"),r(1===u.mipmask,\"can not specify mipmaps and generate mipmaps\"));for(var c=u.images,h=0;h<16;++h){var f=c[h];if(f){var d=a>>h,p=o>>h;r(u.mipmask&1<<h,\"missing mipmap data\"),r(f.width===d&&f.height===p,\"invalid shape for mip images\"),r(f.format===t.format&&f.internalformat===t.internalformat&&f.type===t.type,\"incompatible type for mip image\"),f.compressed||(f.data?r(f.data.byteLength===d*p*Math.max(L(f.type,s),f.unpackAlignment),\"invalid data for image, buffer size is inconsistent with image format\"):f.element||f.copy)}}}}function D(t,e){this.id=pe++,this.type=t,this.data=e}function P(t){return t.replace(/\\\\/g,\"\\\\\\\\\").replace(/\"/g,'\\\\\"')}function O(t){if(0===t.length)return[];var e=t.charAt(0),r=t.charAt(t.length-1);if(t.length>1&&e===r&&('\"'===e||\"'\"===e))return['\"'+P(t.substr(1,t.length-2))+'\"'];var n=/\\[(false|true|null|\\d+|'[^']*'|\"[^\"]*\")\\]/.exec(t);if(n)return O(t.substr(0,n.index)).concat(O(n[1])).concat(O(t.substr(n.index+n[0].length)));var i=t.split(\".\");if(1===i.length)return['\"'+P(t)+'\"'];for(var a=[],o=0;o<i.length;++o)a=a.concat(O(i[o]));return a}function R(t){return\"[\"+O(t).join(\"][\")+\"]\"}function F(t,e){return new D(t,R(e+\"\"))}function j(t){return\"function\"==typeof t&&!t._reglType||t instanceof D}function N(t,e){return\"function\"==typeof t?new D(me,t):t}function B(){var t={\"\":0},e=[\"\"];return{id:function(r){var n=t[r];return n||(n=t[r]=e.length,e.push(r),n)},str:function(t){return e[t]}}}function U(t,e,r){function n(){var e=window.innerWidth,n=window.innerHeight;if(t!==document.body){var i=t.getBoundingClientRect();e=i.right-i.left,n=i.bottom-i.top}a.width=r*e,a.height=r*n,$t(a.style,{width:e+\"px\",height:n+\"px\"})}function i(){window.removeEventListener(\"resize\",n),t.removeChild(a)}var a=document.createElement(\"canvas\");return $t(a.style,{border:0,margin:0,padding:0,top:0,left:0}),t.appendChild(a),t===document.body&&(a.style.position=\"absolute\",$t(t.style,{margin:0,padding:0})),window.addEventListener(\"resize\",n,!1),n(),{canvas:a,onDestroy:i}}function V(t,e){function r(r){try{return t.getContext(r,e)}catch(t){return null}}return r(\"webgl\")||r(\"experimental-webgl\")||r(\"webgl-experimental\")}function H(t){return\"string\"==typeof t.nodeName&&\"function\"==typeof t.appendChild&&\"function\"==typeof t.getBoundingClientRect}function q(t){return\"function\"==typeof t.drawArrays||\"function\"==typeof t.drawElements}function G(t){return\"string\"==typeof t?t.split():(de(Array.isArray(t),\"invalid extension array\"),t)}function Y(t){return\"string\"==typeof t?(de(\"undefined\"!=typeof document,\"not supported outside of DOM\"),document.querySelector(t)):t}function W(t){var e,r,n,i,a=t||{},o={},s=[],l=[],u=\"undefined\"==typeof window?1:window.devicePixelRatio,c=!1,h=function(t){t&&de.raise(t)},f=function(){};if(\"string\"==typeof a?(de(\"undefined\"!=typeof document,\"selector queries only supported in DOM enviroments\"),e=document.querySelector(a),de(e,\"invalid query string for element\")):\"object\"==typeof a?H(a)?e=a:q(a)?(i=a,n=i.canvas):(de.constructor(a),\"gl\"in a?i=a.gl:\"canvas\"in a?n=Y(a.canvas):\"container\"in a&&(r=Y(a.container)),\"attributes\"in a&&(o=a.attributes,de.type(o,\"object\",\"invalid context attributes\")),\"extensions\"in a&&(s=G(a.extensions)),\"optionalExtensions\"in a&&(l=G(a.optionalExtensions)),\"onDone\"in a&&(de.type(a.onDone,\"function\",\"invalid or missing onDone callback\"),h=a.onDone),\"profile\"in a&&(c=!!a.profile),\"pixelRatio\"in a&&(u=+a.pixelRatio,de(u>0,\"invalid pixel ratio\"))):de.raise(\"invalid arguments to regl\"),e&&(\"canvas\"===e.nodeName.toLowerCase()?n=e:r=e),!i){if(!n){de(\"undefined\"!=typeof document,\"must manually specify webgl context outside of DOM environments\");var d=U(r||document.body,h,u);if(!d)return null;n=d.canvas,f=d.onDestroy}i=V(n,o)}return i?{gl:i,canvas:n,container:r,extensions:s,optionalExtensions:l,pixelRatio:u,profile:c,onDone:h,onDestroy:f}:(f(),h(\"webgl not supported, try upgrading your browser or graphics drivers http://get.webgl.org\"),null)}function X(t,e){function r(e){de.type(e,\"string\",\"extension name must be string\");var r,i=e.toLowerCase();try{r=n[i]=t.getExtension(i)}catch(t){}return!!r}for(var n={},i=0;i<e.extensions.length;++i){var a=e.extensions[i];if(!r(a))return e.onDestroy(),e.onDone('\"'+a+'\" extension is not supported by the current WebGL context, try upgrading your system or a different browser'),null}return e.optionalExtensions.forEach(r),{extensions:n,restore:function(){Object.keys(n).forEach(function(t){if(!r(t))throw new Error(\"(regl): error restoring extension \"+t)})}}}function Z(t){return!!t&&\"object\"==typeof t&&Array.isArray(t.shape)&&Array.isArray(t.stride)&&\"number\"==typeof t.offset&&t.shape.length===t.stride.length&&(Array.isArray(t.data)||Qt(t.data))}function J(t,e){for(var r=Array(t),n=0;n<t;++n)r[n]=e(n);return r}function K(t){for(var e=16;e<=1<<28;e*=16)if(t<=e)return e;return 0}function Q(t){var e,r;return e=(t>65535)<<4,t>>>=e,r=(t>255)<<3,t>>>=r,e|=r,r=(t>15)<<2,t>>>=r,e|=r,r=(t>3)<<1,t>>>=r,(e|=r)|t>>1}function $(t){var e=K(t),r=Ee[Q(e)>>2];return r.length>0?r.pop():new ArrayBuffer(e)}function tt(t){Ee[Q(t.byteLength)>>2].push(t)}function et(t,e){var r=null;switch(t){case _e:r=new Int8Array($(e),0,e);break;case we:r=new Uint8Array($(e),0,e);break;case Me:r=new Int16Array($(2*e),0,e);break;case ke:r=new Uint16Array($(2*e),0,e);break;case Ae:r=new Int32Array($(4*e),0,e);break;case Te:r=new Uint32Array($(4*e),0,e);break;case Se:r=new Float32Array($(4*e),0,e);break;default:return null}return r.length!==e?r.subarray(0,e):r}function rt(t){tt(t.buffer)}function nt(t,e,r){for(var n=0;n<e;++n)r[n]=t[n]}function it(t,e,r,n){for(var i=0,a=0;a<e;++a)for(var o=t[a],s=0;s<r;++s)n[i++]=o[s]}function at(t,e,r,n,i,a){for(var o=a,s=0;s<e;++s)for(var l=t[s],u=0;u<r;++u)for(var c=l[u],h=0;h<n;++h)i[o++]=c[h]}function ot(t,e,r,n,i){for(var a=1,o=r+1;o<e.length;++o)a*=e[o];var s=e[r];if(e.length-r==4){var l=e[r+1],u=e[r+2],c=e[r+3];for(o=0;o<s;++o)at(t[o],l,u,c,n,i),i+=a}else for(o=0;o<s;++o)ot(t[o],e,r+1,n,i),i+=a}function st(t,e,r,n){var i=1;if(e.length)for(var a=0;a<e.length;++a)i*=e[a];else i=0;var o=n||Le.allocType(r,i);switch(e.length){case 0:break;case 1:nt(t,e[0],o);break;case 2:it(t,e[0],e[1],o);break;case 3:at(t,e[0],e[1],e[2],o,0);break;default:ot(t,e,0,o,0)}return o}function lt(t){for(var e=[],r=t;r.length;r=r[0])e.push(r.length);return e}function ut(t){return 0|Kt[Object.prototype.toString.call(t)]}function ct(t,e){for(var r=0;r<e.length;++r)t[r]=e[r]}function ht(t,e,r,n,i,a,o){for(var s=0,l=0;l<r;++l)for(var u=0;u<n;++u)t[s++]=e[i*l+a*u+o]}function ft(t,e,r){function n(e){this.id=h++,this.buffer=t.createBuffer(),this.type=e,this.usage=Oe,this.byteLength=0,this.dimension=1,this.dtype=Fe,this.persistentData=null,r.profile&&(this.stats={size:0})}function i(t,e){var r=d.pop();return r||(r=new n(t)),r.bind(),s(r,e,Re,0,1,!1),r}function a(t){d.push(t)}function o(e,r,n){e.byteLength=r.byteLength,t.bufferData(e.type,r,n)}function s(t,e,r,n,i,a){var s;if(t.usage=r,Array.isArray(e)){if(t.dtype=n||je,e.length>0){var l;if(Array.isArray(e[0])){s=Pe(e);for(var u=1,c=1;c<s.length;++c)u*=s[c];t.dimension=u,l=De(e,s,t.dtype),o(t,l,r),a?t.persistentData=l:Le.freeType(l)}else if(\"number\"==typeof e[0]){t.dimension=i;var h=Le.allocType(t.dtype,e.length);ct(h,e),o(t,h,r),a?t.persistentData=h:Le.freeType(h)}else Qt(e[0])?(t.dimension=e[0].length,t.dtype=n||ut(e[0])||je,l=De(e,[e.length,e[0].length],t.dtype),o(t,l,r),a?t.persistentData=l:Le.freeType(l)):de.raise(\"invalid buffer data\")}}else if(Qt(e))t.dtype=n||ut(e),t.dimension=i,o(t,e,r),a&&(t.persistentData=new Uint8Array(new Uint8Array(e.buffer)));else if(Z(e)){s=e.shape;var f=e.stride,d=e.offset,p=0,m=0,v=0,g=0;1===s.length?(p=s[0],m=1,v=f[0],g=0):2===s.length?(p=s[0],m=s[1],v=f[0],g=f[1]):de.raise(\"invalid shape\"),t.dtype=n||ut(e.data)||je,t.dimension=m;var y=Le.allocType(t.dtype,p*m);ht(y,e.data,p,m,v,g,d),o(t,y,r),a?t.persistentData=y:Le.freeType(y)}else de.raise(\"invalid buffer data\")}function l(r){e.bufferCount--;var n=r.buffer;de(n,\"buffer must not be deleted already\"),t.deleteBuffer(n),r.buffer=null,delete f[r.id]}function u(i,a,o,u){function c(e){var n=Oe,i=null,a=0,o=0,l=1;return Array.isArray(e)||Qt(e)||Z(e)?i=e:\"number\"==typeof e?a=0|e:e&&(de.type(e,\"object\",\"buffer arguments must be an object, a number or an array\"),\"data\"in e&&(de(null===i||Array.isArray(i)||Qt(i)||Z(i),\"invalid data for buffer\"),i=e.data),\"usage\"in e&&(de.parameter(e.usage,ze,\"invalid buffer usage\"),n=ze[e.usage]),\"type\"in e&&(de.parameter(e.type,Ie,\"invalid buffer type\"),o=Ie[e.type]),\"dimension\"in e&&(de.type(e.dimension,\"number\",\"invalid dimension\"),l=0|e.dimension),\"length\"in e&&(de.nni(a,\"buffer length must be a nonnegative integer\"),a=0|e.length)),p.bind(),i?s(p,i,n,o,l,u):(t.bufferData(p.type,a,n),p.dtype=o||Fe,p.usage=n,p.dimension=l,p.byteLength=a),r.profile&&(p.stats.size=p.byteLength*Ne[p.dtype]),c}function h(e,r){de(r+e.byteLength<=p.byteLength,\"invalid buffer subdata call, buffer is too small. Can't write data of size \"+e.byteLength+\" starting from offset \"+r+\" to a buffer of size \"+p.byteLength),t.bufferSubData(p.type,r,e)}function d(t,e){var r,n=0|(e||0);if(p.bind(),Array.isArray(t)){if(t.length>0)if(\"number\"==typeof t[0]){var i=Le.allocType(p.dtype,t.length);ct(i,t),h(i,n),Le.freeType(i)}else if(Array.isArray(t[0])||Qt(t[0])){r=Pe(t);var a=De(t,r,p.dtype);h(a,n),Le.freeType(a)}else de.raise(\"invalid buffer data\")}else if(Qt(t))h(t,n);else if(Z(t)){r=t.shape;var o=t.stride,s=0,l=0,u=0,f=0;1===r.length?(s=r[0],l=1,u=o[0],f=0):2===r.length?(s=r[0],l=r[1],u=o[0],f=o[1]):de.raise(\"invalid shape\");var d=Array.isArray(t.data)?p.dtype:ut(t.data),m=Le.allocType(d,s*l);ht(m,t.data,s,l,u,f,t.offset),h(m,n),Le.freeType(m)}else de.raise(\"invalid data for buffer subdata\");return c}e.bufferCount++;var p=new n(a);return f[p.id]=p,o||c(i),c._reglType=\"buffer\",c._buffer=p,c.subdata=d,r.profile&&(c.stats=p.stats),c.destroy=function(){l(p)},c}function c(){xe(f).forEach(function(e){e.buffer=t.createBuffer(),t.bindBuffer(e.type,e.buffer),t.bufferData(e.type,e.persistentData||e.byteLength,e.usage)})}var h=0,f={};n.prototype.bind=function(){t.bindBuffer(this.type,this.buffer)},n.prototype.destroy=function(){l(this)};var d=[];return r.profile&&(e.getTotalBufferSize=function(){var t=0;return Object.keys(f).forEach(function(e){t+=f[e].stats.size}),t}),{create:u,createStream:i,destroyStream:a,clear:function(){xe(f).forEach(l),d.forEach(l)},getBuffer:function(t){return t&&t._buffer instanceof n?t._buffer:null},restore:c,_initBuffer:s}}function dt(t,e,r,n){function i(t){this.id=h++,c[this.id]=this,this.buffer=t,this.primType=He,this.vertCount=0,this.type=0}function a(t){var e=d.pop();return e||(e=new i(r.create(null,Je,!0,!1)._buffer)),s(e,t,Ke,-1,-1,0,0),e}function o(t){d.push(t)}function s(n,i,a,o,s,l,u){if(n.buffer.bind(),i){var c=u;u||Qt(i)&&(!Z(i)||Qt(i.data))||(c=e.oes_element_index_uint?Ze:We),r._initBuffer(n.buffer,i,a,c,3)}else t.bufferData(Je,l,a),n.buffer.dtype=h||Ge,n.buffer.usage=a,n.buffer.dimension=3,n.buffer.byteLength=l;var h=u;if(!u){switch(n.buffer.dtype){case Ge:case qe:h=Ge;break;case We:case Ye:h=We;break;case Ze:case Xe:h=Ze;break;default:de.raise(\"unsupported type for element array\")}n.buffer.dtype=h}n.type=h,de(h!==Ze||!!e.oes_element_index_uint,\"32 bit element buffers not supported, enable oes_element_index_uint first\");var f=s;f<0&&(f=n.buffer.byteLength,h===We?f>>=1:h===Ze&&(f>>=2)),n.vertCount=f;var d=o;if(o<0){d=He;var p=n.buffer.dimension;1===p&&(d=Ue),2===p&&(d=Ve),3===p&&(d=He)}n.primType=d}function l(t){n.elementsCount--,de(null!==t.buffer,\"must not double destroy elements\"),delete c[t.id],t.buffer.destroy(),t.buffer=null}function u(t,e){function a(t){if(t)if(\"number\"==typeof t)o(t),u.primType=He,u.vertCount=0|t,u.type=Ge;else{var e=null,r=Qe,n=-1,i=-1,l=0,c=0;Array.isArray(t)||Qt(t)||Z(t)?e=t:(de.type(t,\"object\",\"invalid arguments for elements\"),\"data\"in t&&(e=t.data,de(Array.isArray(e)||Qt(e)||Z(e),\"invalid data for element buffer\")),\"usage\"in t&&(de.parameter(t.usage,ze,\"invalid element buffer usage\"),r=ze[t.usage]),\"primitive\"in t&&(de.parameter(t.primitive,Be,\"invalid element buffer primitive\"),n=Be[t.primitive]),\"count\"in t&&(de(\"number\"==typeof t.count&&t.count>=0,\"invalid vertex count for elements\"),i=0|t.count),\"type\"in t&&(de.parameter(t.type,f,\"invalid buffer type\"),c=f[t.type]),\"length\"in t?l=0|t.length:(l=i,c===We||c===Ye?l*=2:c!==Ze&&c!==Xe||(l*=4))),s(u,e,r,n,i,l,c)}else o(),u.primType=He,\n", "u.vertCount=0,u.type=Ge;return a}var o=r.create(null,Je,!0),u=new i(o._buffer);return n.elementsCount++,a(t),a._reglType=\"elements\",a._elements=u,a.subdata=function(t,e){return o.subdata(t,e),a},a.destroy=function(){l(u)},a}var c={},h=0,f={uint8:Ge,uint16:We};e.oes_element_index_uint&&(f.uint32=Ze),i.prototype.bind=function(){this.buffer.bind()};var d=[];return{create:u,createStream:a,destroyStream:o,getElements:function(t){return\"function\"==typeof t&&t._elements instanceof i?t._elements:null},clear:function(){xe(c).forEach(l)}}}function pt(t){for(var e=Le.allocType(er,t.length),r=0;r<t.length;++r)if(isNaN(t[r]))e[r]=65535;else if(t[r]===1/0)e[r]=31744;else if(t[r]===-1/0)e[r]=64512;else{$e[0]=t[r];var n=tr[0],i=n>>>31<<15,a=(n<<1>>>24)-127,o=n>>13&1023;if(a<-24)e[r]=i;else if(a<-14){var s=-14-a;e[r]=i+(o+1024>>s)}else e[r]=a>15?i+31744:i+(a+15<<10)+o}return e}function mt(t){return Array.isArray(t)||Qt(t)}function vt(t){return\"[object \"+t+\"]\"}function gt(t){return Array.isArray(t)&&(0===t.length||\"number\"==typeof t[0])}function yt(t){return!!Array.isArray(t)&&!(0===t.length||!mt(t[0]))}function bt(t){return Object.prototype.toString.call(t)}function xt(t){return bt(t)===dn}function _t(t){return bt(t)===pn}function wt(t){return bt(t)===mn}function Mt(t){return bt(t)===vn}function kt(t){if(!t)return!1;var e=bt(t);return gn.indexOf(e)>=0||(gt(t)||yt(t)||Z(t))}function At(t){return 0|Kt[Object.prototype.toString.call(t)]}function Tt(t,e){var r=e.length;switch(t.type){case Or:case Rr:case Fr:case jr:var n=Le.allocType(t.type,r);n.set(e),t.data=n;break;case wr:t.data=pt(e);break;default:de.raise(\"unsupported texture type, must specify a typed array\")}}function St(t,e){return Le.allocType(t.type===wr?jr:t.type,e)}function Et(t,e){t.type===wr?(t.data=pt(e),Le.freeType(e)):t.data=e}function Lt(t,e,r,n,i,a){for(var o=t.width,s=t.height,l=t.channels,u=o*s*l,c=St(t,u),h=0,f=0;f<s;++f)for(var d=0;d<o;++d)for(var p=0;p<l;++p)c[h++]=e[r*d+n*f+i*p+a];Et(t,c)}function Ct(t,e,r,n,i,a){var o;if(o=void 0!==bn[t]?bn[t]:fn[t]*yn[e],a&&(o*=6),i){for(var s=0,l=r;l>=1;)s+=o*l*l,l/=2;return s}return o*r*n}function It(t,e,r,n,i,a,o){function s(){this.internalformat=or,this.format=or,this.type=Or,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=0,this.width=0,this.height=0,this.channels=0}function l(t,e){t.internalformat=e.internalformat,t.format=e.format,t.type=e.type,t.compressed=e.compressed,t.premultiplyAlpha=e.premultiplyAlpha,t.flipY=e.flipY,t.unpackAlignment=e.unpackAlignment,t.colorSpace=e.colorSpace,t.width=e.width,t.height=e.height,t.channels=e.channels}function u(t,n){if(\"object\"==typeof n&&n){if(\"premultiplyAlpha\"in n&&(de.type(n.premultiplyAlpha,\"boolean\",\"invalid premultiplyAlpha\"),t.premultiplyAlpha=n.premultiplyAlpha),\"flipY\"in n&&(de.type(n.flipY,\"boolean\",\"invalid texture flip\"),t.flipY=n.flipY),\"alignment\"in n&&(de.oneOf(n.alignment,[1,2,4,8],\"invalid texture unpack alignment\"),t.unpackAlignment=n.alignment),\"colorSpace\"in n&&(de.parameter(n.colorSpace,j,\"invalid colorSpace\"),t.colorSpace=j[n.colorSpace]),\"type\"in n){var i=n.type;de(e.oes_texture_float||!(\"float\"===i||\"float32\"===i),\"you must enable the OES_texture_float extension in order to use floating point textures.\"),de(e.oes_texture_half_float||!(\"half float\"===i||\"float16\"===i),\"you must enable the OES_texture_half_float extension in order to use 16-bit floating point textures.\"),de(e.webgl_depth_texture||!(\"uint16\"===i||\"uint32\"===i||\"depth stencil\"===i),\"you must enable the WEBGL_depth_texture extension in order to use depth/stencil textures.\"),de.parameter(i,N,\"invalid texture type\"),t.type=N[i]}var a=t.width,o=t.height,s=t.channels,l=!1;\"shape\"in n?(de(Array.isArray(n.shape)&&n.shape.length>=2,\"shape must be an array\"),a=n.shape[0],o=n.shape[1],3===n.shape.length&&(s=n.shape[2],de(s>0&&s<=4,\"invalid number of channels\"),l=!0),de(a>=0&&a<=r.maxTextureSize,\"invalid width\"),de(o>=0&&o<=r.maxTextureSize,\"invalid height\")):(\"radius\"in n&&(a=o=n.radius,de(a>=0&&a<=r.maxTextureSize,\"invalid radius\")),\"width\"in n&&(a=n.width,de(a>=0&&a<=r.maxTextureSize,\"invalid width\")),\"height\"in n&&(o=n.height,de(o>=0&&o<=r.maxTextureSize,\"invalid height\")),\"channels\"in n&&(s=n.channels,de(s>0&&s<=4,\"invalid number of channels\"),l=!0)),t.width=0|a,t.height=0|o,t.channels=0|s;var u=!1;if(\"format\"in n){var c=n.format;de(e.webgl_depth_texture||!(\"depth\"===c||\"depth stencil\"===c),\"you must enable the WEBGL_depth_texture extension in order to use depth/stencil textures.\"),de.parameter(c,B,\"invalid texture format\");var h=t.internalformat=B[c];t.format=J[h],c in N&&(\"type\"in n||(t.type=N[c])),c in U&&(t.compressed=!0),u=!0}!l&&u?t.channels=fn[t.format]:l&&!u?t.channels!==hn[t.format]&&(t.format=t.internalformat=hn[t.channels]):u&&l&&de(t.channels===fn[t.format],\"number of channels inconsistent with specified format\")}}function c(e){t.pixelStorei(an,e.flipY),t.pixelStorei(on,e.premultiplyAlpha),t.pixelStorei(sn,e.colorSpace),t.pixelStorei(nn,e.unpackAlignment)}function h(){s.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function f(t,e){var n=null;if(kt(e)?n=e:e&&(de.type(e,\"object\",\"invalid pixel data type\"),u(t,e),\"x\"in e&&(t.xOffset=0|e.x),\"y\"in e&&(t.yOffset=0|e.y),kt(e.data)&&(n=e.data)),de(!t.compressed||n instanceof Uint8Array,\"compressed texture data must be stored in a uint8array\"),e.copy){de(!n,\"can not specify copy and data field for the same texture\");var a=i.viewportWidth,o=i.viewportHeight;t.width=t.width||a-t.xOffset,t.height=t.height||o-t.yOffset,t.needsCopy=!0,de(t.xOffset>=0&&t.xOffset<a&&t.yOffset>=0&&t.yOffset<o&&t.width>0&&t.width<=a&&t.height>0&&t.height<=o,\"copy texture read out of bounds\")}else if(n){if(Qt(n))t.channels=t.channels||4,t.data=n,\"type\"in e||t.type!==Or||(t.type=At(n));else if(gt(n))t.channels=t.channels||4,Tt(t,n),t.alignment=1,t.needsFree=!0;else if(Z(n)){var s=n.data;Array.isArray(s)||t.type!==Or||(t.type=At(s));var l,c,h,f,d,p,m=n.shape,v=n.stride;3===m.length?(h=m[2],p=v[2]):(de(2===m.length,\"invalid ndarray pixel data, must be 2 or 3D\"),h=1,p=1),l=m[0],c=m[1],f=v[0],d=v[1],t.alignment=1,t.width=l,t.height=c,t.channels=h,t.format=t.internalformat=hn[h],t.needsFree=!0,Lt(t,s,f,d,p,n.offset)}else if(xt(n)||_t(n))xt(n)?t.element=n:t.element=n.canvas,t.width=t.element.width,t.height=t.element.height,t.channels=4;else if(wt(n))t.element=n,t.width=n.naturalWidth,t.height=n.naturalHeight,t.channels=4;else if(Mt(n))t.element=n,t.width=n.videoWidth,t.height=n.videoHeight,t.channels=4;else if(yt(n)){var g=t.width||n[0].length,y=t.height||n.length,b=t.channels;b=mt(n[0][0])?b||n[0][0].length:b||1;for(var x=Ce.shape(n),_=1,w=0;w<x.length;++w)_*=x[w];var M=St(t,_);Ce.flatten(n,x,\"\",M),Et(t,M),t.alignment=1,t.width=g,t.height=y,t.channels=b,t.format=t.internalformat=hn[b],t.needsFree=!0}}else t.width=t.width||1,t.height=t.height||1,t.channels=t.channels||4;t.type===jr?de(r.extensions.indexOf(\"oes_texture_float\")>=0,\"oes_texture_float extension not enabled\"):t.type===wr&&de(r.extensions.indexOf(\"oes_texture_half_float\")>=0,\"oes_texture_half_float extension not enabled\")}function d(e,r,i){var a=e.element,o=e.data,s=e.internalformat,l=e.format,u=e.type,h=e.width,f=e.height;c(e),a?t.texImage2D(r,i,l,l,u,a):e.compressed?t.compressedTexImage2D(r,i,s,h,f,0,o):e.needsCopy?(n(),t.copyTexImage2D(r,i,l,e.xOffset,e.yOffset,h,f,0)):t.texImage2D(r,i,l,h,f,0,l,u,o)}function p(e,r,i,a,o){var s=e.element,l=e.data,u=e.internalformat,h=e.format,f=e.type,d=e.width,p=e.height;c(e),s?t.texSubImage2D(r,o,i,a,h,f,s):e.compressed?t.compressedTexSubImage2D(r,o,i,a,u,d,p,l):e.needsCopy?(n(),t.copyTexSubImage2D(r,o,i,a,e.xOffset,e.yOffset,d,p)):t.texSubImage2D(r,o,i,a,d,p,h,f,l)}function m(){return K.pop()||new h}function v(t){t.needsFree&&Le.freeType(t.data),h.call(t),K.push(t)}function g(){s.call(this),this.genMipmaps=!1,this.mipmapHint=$r,this.mipmask=0,this.images=Array(16)}function y(t,e,r){var n=t.images[0]=m();t.mipmask=1,n.width=t.width=e,n.height=t.height=r,n.channels=t.channels=4}function b(t,e){var r=null;if(kt(e))r=t.images[0]=m(),l(r,t),f(r,e),t.mipmask=1;else if(u(t,e),Array.isArray(e.mipmap))for(var n=e.mipmap,i=0;i<n.length;++i)r=t.images[i]=m(),l(r,t),r.width>>=i,r.height>>=i,f(r,n[i]),t.mipmask|=1<<i;else r=t.images[0]=m(),l(r,t),f(r,e),t.mipmask=1;l(t,t.images[0]),(t.compressed&&t.internalformat===Mr||t.internalformat===kr||t.internalformat===Ar||t.internalformat===Tr)&&de(t.width%4==0&&t.height%4==0,\"for compressed texture formats, mipmap level 0 must have width and height that are a multiple of 4\")}function x(t,e){for(var r=t.images,n=0;n<r.length;++n){if(!r[n])return;d(r[n],e,n)}}function _(){var t=Q.pop()||new g;s.call(t),t.mipmask=0;for(var e=0;e<16;++e)t.images[e]=null;return t}function w(t){for(var e=t.images,r=0;r<e.length;++r)e[r]&&v(e[r]),e[r]=null;Q.push(t)}function M(){this.minFilter=Yr,this.magFilter=Yr,this.wrapS=Vr,this.wrapT=Vr,this.anisotropic=1,this.genMipmaps=!1,this.mipmapHint=$r}function k(t,e){if(\"min\"in e){var n=e.min;de.parameter(n,F),t.minFilter=F[n],cn.indexOf(t.minFilter)>=0&&(t.genMipmaps=!0)}if(\"mag\"in e){var i=e.mag;de.parameter(i,R),t.magFilter=R[i]}var a=t.wrapS,o=t.wrapT;if(\"wrap\"in e){var s=e.wrap;\"string\"==typeof s?(de.parameter(s,O),a=o=O[s]):Array.isArray(s)&&(de.parameter(s[0],O),de.parameter(s[1],O),a=O[s[0]],o=O[s[1]])}else{if(\"wrapS\"in e){var l=e.wrapS;de.parameter(l,O),a=O[l]}if(\"wrapT\"in e){var u=e.wrapT;de.parameter(u,O),o=O[u]}}if(t.wrapS=a,t.wrapT=o,\"anisotropic\"in e){var c=e.anisotropic;de(\"number\"==typeof c&&c>=1&&c<=r.maxAnisotropic,\"aniso samples must be between 1 and \"),t.anisotropic=e.anisotropic}if(\"mipmap\"in e){var h=!1;switch(typeof e.mipmap){case\"string\":de.parameter(e.mipmap,P,\"invalid mipmap hint\"),t.mipmapHint=P[e.mipmap],t.genMipmaps=!0,h=!0;break;case\"boolean\":h=t.genMipmaps=e.mipmap;break;case\"object\":de(Array.isArray(e.mipmap),\"invalid mipmap type\"),t.genMipmaps=!1,h=!0;break;default:de.raise(\"invalid mipmap type\")}!h||\"min\"in e||(t.minFilter=Xr)}}function A(r,n){t.texParameteri(n,Gr,r.minFilter),t.texParameteri(n,qr,r.magFilter),t.texParameteri(n,Nr,r.wrapS),t.texParameteri(n,Br,r.wrapT),e.ext_texture_filter_anisotropic&&t.texParameteri(n,rn,r.anisotropic),r.genMipmaps&&(t.hint(Qr,r.mipmapHint),t.generateMipmap(n))}function T(e){s.call(this),this.mipmask=0,this.internalformat=or,this.id=$++,this.refCount=1,this.target=e,this.texture=t.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new M,o.profile&&(this.stats={size:0})}function S(e){t.activeTexture(un),t.bindTexture(e.target,e.texture)}function E(){var e=rt[0];e?t.bindTexture(e.target,e.texture):t.bindTexture(nr,null)}function L(e){var r=e.texture;de(r,\"must not double destroy texture\");var n=e.unit,i=e.target;n>=0&&(t.activeTexture(un+n),t.bindTexture(i,null),rt[n]=null),t.deleteTexture(r),e.texture=null,e.params=null,e.pixels=null,e.refCount=0,delete tt[e.id],a.textureCount--}function C(e,n){function i(t,e){var n=c.texInfo;M.call(n);var a=_();return\"number\"==typeof t?\"number\"==typeof e?y(a,0|t,0|e):y(a,0|t,0|t):t?(de.type(t,\"object\",\"invalid arguments to regl.texture\"),k(n,t),b(a,t)):y(a,1,1),n.genMipmaps&&(a.mipmask=(a.width<<1)-1),c.mipmask=a.mipmask,l(c,a),de.texture2D(n,a,r),c.internalformat=a.internalformat,i.width=a.width,i.height=a.height,S(c),x(a,nr),A(n,nr),E(),w(a),o.profile&&(c.stats.size=Ct(c.internalformat,c.type,a.width,a.height,n.genMipmaps,!1)),i.format=q[c.internalformat],i.type=G[c.type],i.mag=Y[n.magFilter],i.min=W[n.minFilter],i.wrapS=X[n.wrapS],i.wrapT=X[n.wrapT],i}function s(t,e,r,n){de(!!t,\"must specify image data\");var a=0|e,o=0|r,s=0|n,u=m();return l(u,c),u.width=0,u.height=0,f(u,t),u.width=u.width||(c.width>>s)-a,u.height=u.height||(c.height>>s)-o,de(c.type===u.type&&c.format===u.format&&c.internalformat===u.internalformat,\"incompatible format for texture.subimage\"),de(a>=0&&o>=0&&a+u.width<=c.width&&o+u.height<=c.height,\"texture.subimage write out of bounds\"),de(c.mipmask&1<<s,\"missing mipmap data\"),de(u.data||u.element||u.needsCopy,\"missing image data\"),S(c),p(u,nr,a,o,s),E(),v(u),i}function u(e,r){var n=0|e,a=0|r||n;if(n===c.width&&a===c.height)return i;i.width=c.width=n,i.height=c.height=a,S(c);for(var s=0;c.mipmask>>s;++s)t.texImage2D(nr,s,c.format,n>>s,a>>s,0,c.format,c.type,null);return E(),o.profile&&(c.stats.size=Ct(c.internalformat,c.type,n,a,!1,!1)),i}var c=new T(nr);return tt[c.id]=c,a.textureCount++,i(e,n),i.subimage=s,i.resize=u,i._reglType=\"texture2d\",i._texture=c,o.profile&&(i.stats=c.stats),i.destroy=function(){c.decRef()},i}function I(e,n,i,s,c,h){function d(t,e,n,i,a,s){var c,h=C.texInfo;for(M.call(h),c=0;c<6;++c)I[c]=_();if(\"number\"!=typeof t&&t)if(\"object\"==typeof t)if(e)b(I[0],t),b(I[1],e),b(I[2],n),b(I[3],i),b(I[4],a),b(I[5],s);else if(k(h,t),u(C,t),\"faces\"in t){var f=t.faces;for(de(Array.isArray(f)&&6===f.length,\"cube faces must be a length 6 array\"),c=0;c<6;++c)de(\"object\"==typeof f[c]&&!!f[c],\"invalid input for cube map face\"),l(I[c],C),b(I[c],f[c])}else for(c=0;c<6;++c)b(I[c],t);else de.raise(\"invalid arguments to cube map\");else{var p=0|t||1;for(c=0;c<6;++c)y(I[c],p,p)}for(l(C,I[0]),h.genMipmaps?C.mipmask=(I[0].width<<1)-1:C.mipmask=I[0].mipmask,de.textureCube(C,h,I,r),C.internalformat=I[0].internalformat,d.width=I[0].width,d.height=I[0].height,S(C),c=0;c<6;++c)x(I[c],ar+c);for(A(h,ir),E(),o.profile&&(C.stats.size=Ct(C.internalformat,C.type,d.width,d.height,h.genMipmaps,!0)),d.format=q[C.internalformat],d.type=G[C.type],d.mag=Y[h.magFilter],d.min=W[h.minFilter],d.wrapS=X[h.wrapS],d.wrapT=X[h.wrapT],c=0;c<6;++c)w(I[c]);return d}function g(t,e,r,n,i){de(!!e,\"must specify image data\"),de(\"number\"==typeof t&&t===(0|t)&&t>=0&&t<6,\"invalid face\");var a=0|r,o=0|n,s=0|i,u=m();return l(u,C),u.width=0,u.height=0,f(u,e),u.width=u.width||(C.width>>s)-a,u.height=u.height||(C.height>>s)-o,de(C.type===u.type&&C.format===u.format&&C.internalformat===u.internalformat,\"incompatible format for texture.subimage\"),de(a>=0&&o>=0&&a+u.width<=C.width&&o+u.height<=C.height,\"texture.subimage write out of bounds\"),de(C.mipmask&1<<s,\"missing mipmap data\"),de(u.data||u.element||u.needsCopy,\"missing image data\"),S(C),p(u,ar+t,a,o,s),E(),v(u),d}function L(e){var r=0|e;if(r!==C.width){d.width=C.width=r,d.height=C.height=r,S(C);for(var n=0;n<6;++n)for(var i=0;C.mipmask>>i;++i)t.texImage2D(ar+n,i,C.format,r>>i,r>>i,0,C.format,C.type,null);return E(),o.profile&&(C.stats.size=Ct(C.internalformat,C.type,d.width,d.height,!1,!0)),d}}var C=new T(ir);tt[C.id]=C,a.cubeCount++;var I=new Array(6);return d(e,n,i,s,c,h),d.subimage=g,d.resize=L,d._reglType=\"textureCube\",d._texture=C,o.profile&&(d.stats=C.stats),d.destroy=function(){C.decRef()},d}function z(){for(var e=0;e<et;++e)t.activeTexture(un+e),t.bindTexture(nr,null),rt[e]=null;xe(tt).forEach(L),a.cubeCount=0,a.textureCount=0}function D(){xe(tt).forEach(function(e){e.texture=t.createTexture(),t.bindTexture(e.target,e.texture);for(var r=0;r<32;++r)if(0!=(e.mipmask&1<<r))if(e.target===nr)t.texImage2D(nr,r,e.internalformat,e.width>>r,e.height>>r,0,e.internalformat,e.type,null);else for(var n=0;n<6;++n)t.texImage2D(ar+n,r,e.internalformat,e.width>>r,e.height>>r,0,e.internalformat,e.type,null);A(e.texInfo,e.target)})}var P={\"don't care\":$r,\"dont care\":$r,nice:en,fast:tn},O={repeat:Ur,clamp:Vr,mirror:Hr},R={nearest:Yr,linear:Wr},F=$t({mipmap:Kr,\"nearest mipmap nearest\":Xr,\"linear mipmap nearest\":Zr,\"nearest mipmap linear\":Jr,\"linear mipmap linear\":Kr},R),j={none:0,browser:ln},N={uint8:Or,rgba4:pr,rgb565:vr,\"rgb5 a1\":mr},B={alpha:sr,luminance:ur,\"luminance alpha\":cr,rgb:lr,rgba:or,rgba4:hr,\"rgb5 a1\":fr,rgb565:dr},U={};e.ext_srgb&&(B.srgb=xr,B.srgba=_r),e.oes_texture_float&&(N.float32=N.float=jr),e.oes_texture_half_float&&(N.float16=N[\"half float\"]=wr),e.webgl_depth_texture&&($t(B,{depth:yr,\"depth stencil\":br}),$t(N,{uint16:Rr,uint32:Fr,\"depth stencil\":gr})),e.webgl_compressed_texture_s3tc&&$t(U,{\"rgb s3tc dxt1\":Mr,\"rgba s3tc dxt1\":kr,\"rgba s3tc dxt3\":Ar,\"rgba s3tc dxt5\":Tr}),e.webgl_compressed_texture_atc&&$t(U,{\"rgb atc\":Sr,\"rgba atc explicit alpha\":Er,\"rgba atc interpolated alpha\":Lr}),e.webgl_compressed_texture_pvrtc&&$t(U,{\"rgb pvrtc 4bppv1\":Cr,\"rgb pvrtc 2bppv1\":Ir,\"rgba pvrtc 4bppv1\":zr,\"rgba pvrtc 2bppv1\":Dr}),e.webgl_compressed_texture_etc1&&(U[\"rgb etc1\"]=Pr);var V=Array.prototype.slice.call(t.getParameter(rr));Object.keys(U).forEach(function(t){var e=U[t];V.indexOf(e)>=0&&(B[t]=e)});var H=Object.keys(B);r.textureFormats=H;var q=[];Object.keys(B).forEach(function(t){var e=B[t];q[e]=t});var G=[];Object.keys(N).forEach(function(t){var e=N[t];G[e]=t});var Y=[];Object.keys(R).forEach(function(t){var e=R[t];Y[e]=t});var W=[];Object.keys(F).forEach(function(t){var e=F[t];W[e]=t});var X=[];Object.keys(O).forEach(function(t){var e=O[t];X[e]=t});var J=H.reduce(function(t,e){var r=B[e];return r===ur||r===sr||r===ur||r===cr||r===yr||r===br?t[r]=r:r===fr||e.indexOf(\"rgba\")>=0?t[r]=or:t[r]=lr,t},{}),K=[],Q=[],$=0,tt={},et=r.maxTextureUnits,rt=Array(et).map(function(){return null});return $t(T.prototype,{bind:function(){var e=this;e.bindCount+=1;var r=e.unit;if(r<0){for(var n=0;n<et;++n){var i=rt[n];if(i){if(i.bindCount>0)continue;i.unit=-1}rt[n]=e,r=n;break}r>=et&&de.raise(\"insufficient number of texture units\"),o.profile&&a.maxTextureUnits<r+1&&(a.maxTextureUnits=r+1),e.unit=r,t.activeTexture(un+r),t.bindTexture(e.target,e.texture)}return r},unbind:function(){this.bindCount-=1},decRef:function(){--this.refCount<=0&&L(this)}}),o.profile&&(a.getTotalTextureSize=function(){var t=0;return Object.keys(tt).forEach(function(e){t+=tt[e].stats.size}),t}),{create2D:C,createCube:I,clear:z,getTexture:function(t){return null},restore:D}}function zt(t,e,r){return wn[t]*e*r}function Dt(t,e,r,n,i,a){function o(t,e,r){this.target=t,this.texture=e,this.renderbuffer=r;var n=0,i=0;e?(n=e.width,i=e.height):r&&(n=r.width,i=r.height),this.width=n,this.height=i}function s(t){t&&(t.texture&&t.texture._texture.decRef(),t.renderbuffer&&t.renderbuffer._renderbuffer.decRef())}function l(t,e,r){if(t)if(t.texture){var n=t.texture._texture,i=Math.max(1,n.width),a=Math.max(1,n.height);de(i===e&&a===r,\"inconsistent width/height for supplied texture\"),n.refCount+=1}else{var o=t.renderbuffer._renderbuffer;de(o.width===e&&o.height===r,\"inconsistent width/height for renderbuffer\"),o.refCount+=1}}function u(e,r){r&&(r.texture?t.framebufferTexture2D(kn,e,r.target,r.texture._texture.texture,0):t.framebufferRenderbuffer(kn,e,An,r.renderbuffer._renderbuffer.renderbuffer))}function c(t){var e=Tn,r=null,n=null,i=t;\"object\"==typeof t&&(i=t.data,\"target\"in t&&(e=0|t.target)),de.type(i,\"function\",\"invalid attachment data\");var a=i._reglType;return\"texture2d\"===a?(r=i,de(e===Tn)):\"textureCube\"===a?(r=i,de(e>=Sn&&e<Sn+6,\"invalid cube map target\")):\"renderbuffer\"===a?(n=i,e=An):de.raise(\"invalid regl object for attachment\"),new o(e,r,n)}function h(t,e,r,a,s){if(r){var l=n.create2D({width:t,height:e,format:a,type:s});return l._texture.refCount=0,new o(Tn,l,null)}var u=i.create({width:t,height:e,format:a});return u._renderbuffer.refCount=0,new o(An,null,u)}function f(t){return t&&(t.texture||t.renderbuffer)}function d(t,e,r){t&&(t.texture?t.texture.resize(e,r):t.renderbuffer&&t.renderbuffer.resize(e,r))}function p(){this.id=A++,T[this.id]=this,this.framebuffer=t.createFramebuffer(),this.width=0,this.height=0,this.colorAttachments=[],this.depthAttachment=null,this.stencilAttachment=null,this.depthStencilAttachment=null}function m(t){t.colorAttachments.forEach(s),s(t.depthAttachment),s(t.stencilAttachment),s(t.depthStencilAttachment)}function v(e){var r=e.framebuffer;de(r,\"must not double destroy framebuffer\"),t.deleteFramebuffer(r),e.framebuffer=null,a.framebufferCount--,delete T[e.id]}function g(e){var n;t.bindFramebuffer(kn,e.framebuffer);var i=e.colorAttachments;for(n=0;n<i.length;++n)u(En+n,i[n]);for(n=i.length;n<r.maxColorAttachments;++n)t.framebufferTexture2D(kn,En+n,Tn,null,0);t.framebufferTexture2D(kn,In,Tn,null,0),t.framebufferTexture2D(kn,Ln,Tn,null,0),t.framebufferTexture2D(kn,Cn,Tn,null,0),u(Ln,e.depthAttachment),u(Cn,e.stencilAttachment),u(In,e.depthStencilAttachment);var a=t.checkFramebufferStatus(kn);a!==zn&&de.raise(\"framebuffer configuration not supported, status = \"+Un[a]),t.bindFramebuffer(kn,_.next),_.cur=_.next,t.getError()}function y(t,n){function i(t,n){var a;de(_.next!==s,\"can not update framebuffer which is currently in use\");var o=e.webgl_draw_buffers,u=0,d=0,p=!0,v=!0,y=null,b=!0,x=\"rgba\",A=\"uint8\",T=1,S=null,E=null,L=null,C=!1;if(\"number\"==typeof t)u=0|t,d=0|n||u;else if(t){de.type(t,\"object\",\"invalid arguments for framebuffer\");var I=t;if(\"shape\"in I){var z=I.shape;de(Array.isArray(z)&&z.length>=2,\"invalid shape for framebuffer\"),u=z[0],d=z[1]}else\"radius\"in I&&(u=d=I.radius),\"width\"in I&&(u=I.width),\"height\"in I&&(d=I.height);(\"color\"in I||\"colors\"in I)&&(y=I.color||I.colors,Array.isArray(y)&&de(1===y.length||o,\"multiple render targets not supported\")),y||(\"colorCount\"in I&&(T=0|I.colorCount,de(T>0,\"invalid color buffer count\")),\"colorTexture\"in I&&(b=!!I.colorTexture,x=\"rgba4\"),\"colorType\"in I&&(A=I.colorType,b?(de(e.oes_texture_float||!(\"float\"===A||\"float32\"===A),\"you must enable OES_texture_float in order to use floating point framebuffer objects\"),de(e.oes_texture_half_float||!(\"half float\"===A||\"float16\"===A),\"you must enable OES_texture_half_float in order to use 16-bit floating point framebuffer objects\")):\"half float\"===A||\"float16\"===A?(de(e.ext_color_buffer_half_float,\"you must enable EXT_color_buffer_half_float to use 16-bit render buffers\"),x=\"rgba16f\"):\"float\"!==A&&\"float32\"!==A||(de(e.webgl_color_buffer_float,\"you must enable WEBGL_color_buffer_float in order to use 32-bit floating point renderbuffers\"),x=\"rgba32f\"),de.oneOf(A,k,\"invalid color type\")),\"colorFormat\"in I&&(x=I.colorFormat,w.indexOf(x)>=0?b=!0:M.indexOf(x)>=0?b=!1:b?de.oneOf(I.colorFormat,w,\"invalid color format for texture\"):de.oneOf(I.colorFormat,M,\"invalid color format for renderbuffer\"))),(\"depthTexture\"in I||\"depthStencilTexture\"in I)&&(C=!(!I.depthTexture&&!I.depthStencilTexture),de(!C||e.webgl_depth_texture,\"webgl_depth_texture extension not supported\")),\"depth\"in I&&(\"boolean\"==typeof I.depth?p=I.depth:(S=I.depth,v=!1)),\"stencil\"in I&&(\"boolean\"==typeof I.stencil?v=I.stencil:(E=I.stencil,p=!1)),\"depthStencil\"in I&&(\"boolean\"==typeof I.depthStencil?p=v=I.depthStencil:(L=I.depthStencil,p=!1,v=!1))}else u=d=1;var D=null,P=null,O=null,R=null;if(Array.isArray(y))D=y.map(c);else if(y)D=[c(y)];else for(D=new Array(T),a=0;a<T;++a)D[a]=h(u,d,b,x,A);de(e.webgl_draw_buffers||D.length<=1,\"you must enable the WEBGL_draw_buffers extension in order to use multiple color buffers.\"),de(D.length<=r.maxColorAttachments,\"too many color attachments, not supported\"),u=u||D[0].width,d=d||D[0].height,S?P=c(S):p&&!v&&(P=h(u,d,C,\"depth\",\"uint32\")),E?O=c(E):v&&!p&&(O=h(u,d,!1,\"stencil\",\"uint8\")),L?R=c(L):!S&&!E&&v&&p&&(R=h(u,d,C,\"depth stencil\",\"depth stencil\")),de(!!S+!!E+!!L<=1,\"invalid framebuffer configuration, can specify exactly one depth/stencil attachment\");var F=null;for(a=0;a<D.length;++a)if(l(D[a],u,d),de(!D[a]||D[a].texture&&Pn.indexOf(D[a].texture._texture.format)>=0||D[a].renderbuffer&&Bn.indexOf(D[a].renderbuffer._renderbuffer.format)>=0,\"framebuffer color attachment \"+a+\" is invalid\"),D[a]&&D[a].texture){var j=On[D[a].texture._texture.format]*Rn[D[a].texture._texture.type];null===F?F=j:de(F===j,\"all color attachments much have the same number of bits per pixel.\")}return l(P,u,d),de(!P||P.texture&&P.texture._texture.format===Dn||P.renderbuffer&&P.renderbuffer._renderbuffer.format===Fn,\"invalid depth attachment for framebuffer object\"),l(O,u,d),de(!O||O.renderbuffer&&O.renderbuffer._renderbuffer.format===jn,\"invalid stencil attachment for framebuffer object\"),l(R,u,d),de(!R||R.texture&&R.texture._texture.format===Nn||R.renderbuffer&&R.renderbuffer._renderbuffer.format===Nn,\"invalid depth-stencil attachment for framebuffer object\"),m(s),s.width=u,s.height=d,s.colorAttachments=D,s.depthAttachment=P,s.stencilAttachment=O,s.depthStencilAttachment=R,i.color=D.map(f),i.depth=f(P),i.stencil=f(O),i.depthStencil=f(R),i.width=s.width,i.height=s.height,g(s),i}function o(t,e){de(_.next!==s,\"can not resize a framebuffer which is currently in use\");var r=0|t,n=0|e||r;if(r===s.width&&n===s.height)return i;for(var a=s.colorAttachments,o=0;o<a.length;++o)d(a[o],r,n);return d(s.depthAttachment,r,n),d(s.stencilAttachment,r,n),d(s.depthStencilAttachment,r,n),s.width=i.width=r,s.height=i.height=n,g(s),i}var s=new p;return a.framebufferCount++,i(t,n),$t(i,{resize:o,_reglType:\"framebuffer\",_framebuffer:s,destroy:function(){v(s),m(s)},use:function(t){_.setFBO({framebuffer:i},t)}})}function b(t){function i(t){var r;de(o.indexOf(_.next)<0,\"can not update framebuffer which is currently in use\");var a=e.webgl_draw_buffers,s={color:null},l=0,u=null,c=\"rgba\",h=\"uint8\",f=1;if(\"number\"==typeof t)l=0|t;else if(t){de.type(t,\"object\",\"invalid arguments for framebuffer\");var d=t;if(\"shape\"in d){var p=d.shape;de(Array.isArray(p)&&p.length>=2,\"invalid shape for framebuffer\"),de(p[0]===p[1],\"cube framebuffer must be square\"),l=p[0]}else\"radius\"in d&&(l=0|d.radius),\"width\"in d?(l=0|d.width,\"height\"in d&&de(d.height===l,\"must be square\")):\"height\"in d&&(l=0|d.height);(\"color\"in d||\"colors\"in d)&&(u=d.color||d.colors,Array.isArray(u)&&de(1===u.length||a,\"multiple render targets not supported\")),u||(\"colorCount\"in d&&(f=0|d.colorCount,de(f>0,\"invalid color buffer count\")),\"colorType\"in d&&(de.oneOf(d.colorType,k,\"invalid color type\"),h=d.colorType),\"colorFormat\"in d&&(c=d.colorFormat,de.oneOf(d.colorFormat,w,\"invalid color format for texture\"))),\"depth\"in d&&(s.depth=d.depth),\"stencil\"in d&&(s.stencil=d.stencil),\"depthStencil\"in d&&(s.depthStencil=d.depthStencil)}else l=1;var m;if(u)if(Array.isArray(u))for(m=[],r=0;r<u.length;++r)m[r]=u[r];else m=[u];else{m=Array(f);var v={radius:l,format:c,type:h};for(r=0;r<f;++r)m[r]=n.createCube(v)}for(s.color=Array(m.length),r=0;r<m.length;++r){var g=m[r];de(\"function\"==typeof g&&\"textureCube\"===g._reglType,\"invalid cube map\"),l=l||g.width,de(g.width===l&&g.height===l,\"invalid cube map shape\"),s.color[r]={target:Sn,data:m[r]}}for(r=0;r<6;++r){for(var b=0;b<m.length;++b)s.color[b].target=Sn+r;r>0&&(s.depth=o[0].depth,s.stencil=o[0].stencil,s.depthStencil=o[0].depthStencil),o[r]?o[r](s):o[r]=y(s)}return $t(i,{width:l,height:l,color:m})}function a(t){var e,n=0|t;if(de(n>0&&n<=r.maxCubeMapSize,\"invalid radius for cube fbo\"),n===i.width)return i;var a=i.color;for(e=0;e<a.length;++e)a[e].resize(n);for(e=0;e<6;++e)o[e].resize(n);return i.width=i.height=n,i}var o=Array(6);return i(t),$t(i,{faces:o,resize:a,_reglType:\"framebufferCube\",destroy:function(){o.forEach(function(t){t.destroy()})}})}function x(){xe(T).forEach(function(e){e.framebuffer=t.createFramebuffer(),g(e)})}var _={cur:null,next:null,dirty:!1,setFBO:null},w=[\"rgba\"],M=[\"rgba4\",\"rgb565\",\"rgb5 a1\"];e.ext_srgb&&M.push(\"srgba\"),e.ext_color_buffer_half_float&&M.push(\"rgba16f\",\"rgb16f\"),e.webgl_color_buffer_float&&M.push(\"rgba32f\");var k=[\"uint8\"];e.oes_texture_half_float&&k.push(\"half float\",\"float16\"),e.oes_texture_float&&k.push(\"float\",\"float32\");var A=0,T={};return $t(_,{getFramebuffer:function(t){if(\"function\"==typeof t&&\"framebuffer\"===t._reglType){var e=t._framebuffer;if(e instanceof p)return e}return null},create:y,createCube:b,clear:function(){xe(T).forEach(v)},restore:x})}function Pt(){this.state=0,this.x=0,this.y=0,this.z=0,this.w=0,this.buffer=null,this.size=0,this.normalized=!1,this.type=Vn,this.offset=0,this.stride=0,this.divisor=0}function Ot(t,e,r,n,i){for(var a=r.maxAttributes,o=new Array(a),s=0;s<a;++s)o[s]=new Pt;return{Record:Pt,scope:{},state:o}}function Rt(t,e,r,n){function i(t,e,r,n){this.name=t,this.id=e,this.location=r,this.info=n}function a(t,e){for(var r=0;r<t.length;++r)if(t[r].id===e.id)return void(t[r].location=e.location);t.push(e)}function o(r,n,i){var a=r===Hn?c:h,o=a[n];if(!o){var s=e.str(n);o=t.createShader(r),t.shaderSource(o,s),t.compileShader(o),de.shaderError(t,o,s,r,i),a[n]=o}return o}function s(t,e){this.id=p++,this.fragId=t,this.vertId=e,this.program=null,this.uniforms=[],this.attributes=[],n.profile&&(this.stats={uniformsCount:0,attributesCount:0})}function l(r,s){var l,u,c=o(Hn,r.fragId),h=o(qn,r.vertId),f=r.program=t.createProgram();t.attachShader(f,c),t.attachShader(f,h),t.linkProgram(f),de.linkError(t,f,e.str(r.fragId),e.str(r.vertId),s);var d=t.getProgramParameter(f,Gn);n.profile&&(r.stats.uniformsCount=d);var p=r.uniforms;for(l=0;l<d;++l)if(u=t.getActiveUniform(f,l))if(u.size>1)for(var m=0;m<u.size;++m){var v=u.name.replace(\"[0]\",\"[\"+m+\"]\");a(p,new i(v,e.id(v),t.getUniformLocation(f,v),u))}else a(p,new i(u.name,e.id(u.name),t.getUniformLocation(f,u.name),u));var g=t.getProgramParameter(f,Yn);n.profile&&(r.stats.attributesCount=g);var y=r.attributes;for(l=0;l<g;++l)(u=t.getActiveAttrib(f,l))&&a(y,new i(u.name,e.id(u.name),t.getAttribLocation(f,u.name),u))}function u(){c={},h={};for(var t=0;t<d.length;++t)l(d[t])}var c={},h={},f={},d=[],p=0;return n.profile&&(r.getMaxUniformsCount=function(){var t=0;return d.forEach(function(e){e.stats.uniformsCount>t&&(t=e.stats.uniformsCount)}),t},r.getMaxAttributesCount=function(){var t=0;return d.forEach(function(e){e.stats.attributesCount>t&&(t=e.stats.attributesCount)}),t}),{clear:function(){var e=t.deleteShader.bind(t);xe(c).forEach(e),c={},xe(h).forEach(e),h={},d.forEach(function(e){t.deleteProgram(e.program)}),d.length=0,f={},r.shaderCount=0},program:function(t,e,n){de.command(t>=0,\"missing vertex shader\",n),de.command(e>=0,\"missing fragment shader\",n);var i=f[e];i||(i=f[e]={});var a=i[t];return a||(a=new s(e,t),r.shaderCount++,l(a,n),i[t]=a,d.push(a)),a},restore:u,shader:o,frag:-1,vert:-1}}function Ft(t,e,r,n,i,a){function o(o){var s;null===e.next?(de(i.preserveDrawingBuffer,'you must create a webgl context with \"preserveDrawingBuffer\":true in order to read pixels from the drawing buffer'),s=Xn):(de(null!==e.next.colorAttachments[0].texture,\"You cannot read from a renderbuffer\"),s=e.next.colorAttachments[0].texture._texture.type,a.oes_texture_float?de(s===Xn||s===Jn,\"Reading from a framebuffer is only allowed for the types 'uint8' and 'float'\"):de(s===Xn,\"Reading from a framebuffer is only allowed for the type 'uint8'\"));var l=0,u=0,c=n.framebufferWidth,h=n.framebufferHeight,f=null;Qt(o)?f=o:o&&(de.type(o,\"object\",\"invalid arguments to regl.read()\"),l=0|o.x,u=0|o.y,de(l>=0&&l<n.framebufferWidth,\"invalid x offset for regl.read\"),de(u>=0&&u<n.framebufferHeight,\"invalid y offset for regl.read\"),c=0|(o.width||n.framebufferWidth-l),h=0|(o.height||n.framebufferHeight-u),f=o.data||null),f&&(s===Xn?de(f instanceof Uint8Array,\"buffer must be 'Uint8Array' when reading from a framebuffer of type 'uint8'\"):s===Jn&&de(f instanceof Float32Array,\"buffer must be 'Float32Array' when reading from a framebuffer of type 'float'\")),de(c>0&&c+l<=n.framebufferWidth,\"invalid width for read pixels\"),de(h>0&&h+u<=n.framebufferHeight,\"invalid height for read pixels\"),r();var d=c*h*4;return f||(s===Xn?f=new Uint8Array(d):s===Jn&&(f=f||new Float32Array(d))),de.isTypedArray(f,\"data buffer for regl.read() must be a typedarray\"),de(f.byteLength>=d,\"data buffer for regl.read() too small\"),t.pixelStorei(Zn,4),t.readPixels(l,u,c,h,Wn,s,f),f}function s(t){var r;return e.setFBO({framebuffer:t.framebuffer},function(){r=o(t)}),r}function l(t){return t&&\"framebuffer\"in t?s(t):o(t)}return l}function jt(t){return Array.prototype.slice.call(t)}function Nt(t){return jt(t).join(\"\")}function Bt(){function t(t){for(var e=0;e<l.length;++e)if(l[e]===t)return s[e];var r=\"g\"+o++;return s.push(r),l.push(t),r}function e(){function t(){r.push.apply(r,jt(arguments))}function e(){var t=\"v\"+o++;return n.push(t),arguments.length>0&&(r.push(t,\"=\"),r.push.apply(r,jt(arguments)),r.push(\";\")),t}var r=[],n=[];return $t(t,{def:e,toString:function(){return Nt([n.length>0?\"var \"+n+\";\":\"\",Nt(r)])}})}function r(){function t(t,e){\n", "n(t,e,\"=\",r.def(t,e),\";\")}var r=e(),n=e(),i=r.toString,a=n.toString;return $t(function(){r.apply(r,jt(arguments))},{def:r.def,entry:r,exit:n,save:t,set:function(e,n,i){t(e,n),r(e,n,\"=\",i,\";\")},toString:function(){return i()+a()}})}function n(){var t=Nt(arguments),e=r(),n=r(),i=e.toString,a=n.toString;return $t(e,{then:function(){return e.apply(e,jt(arguments)),this},else:function(){return n.apply(n,jt(arguments)),this},toString:function(){var e=a();return e&&(e=\"else{\"+e+\"}\"),Nt([\"if(\",t,\"){\",i(),\"}\",e])}})}function i(t,e){function n(){var t=\"a\"+i.length;return i.push(t),t}var i=[];e=e||0;for(var a=0;a<e;++a)n();var o=r(),s=o.toString;return c[t]=$t(o,{arg:n,toString:function(){return Nt([\"function(\",i.join(),\"){\",s(),\"}\"])}})}function a(){var t=['\"use strict\";',u,\"return {\"];Object.keys(c).forEach(function(e){t.push('\"',e,'\":',c[e].toString(),\",\")}),t.push(\"}\");var e=Nt(t).replace(/;/g,\";\\n\").replace(/}/g,\"}\\n\").replace(/{/g,\"{\\n\");return Function.apply(null,s.concat(e)).apply(null,l)}var o=0,s=[],l=[],u=e(),c={};return{global:u,link:t,block:e,proc:i,scope:r,cond:n,compile:a}}function Ut(t){return Array.isArray(t)||Qt(t)||Z(t)}function Vt(t){return t.sort(function(t,e){return t===zi?-1:e===zi?1:t<e?-1:1})}function Ht(t,e,r,n){this.thisDep=t,this.contextDep=e,this.propDep=r,this.append=n}function qt(t){return t&&!(t.thisDep||t.contextDep||t.propDep)}function Gt(t){return new Ht(!1,!1,!1,t)}function Yt(t,e){var r=t.type;if(r===ei){var n=t.data.length;return new Ht(!0,n>=1,n>=2,e)}if(r===ai){var i=t.data;return new Ht(i.thisDep,i.contextDep,i.propDep,e)}return new Ht(r===ii,r===ni,r===ri,e)}function Wt(t,e,r,n,i,a,o,s,l,u,c,h,f,d,p){function m(t){return t.replace(\".\",\"_\")}function v(t,e,r){var n=m(t);et.push(t),tt[n]=$[n]=!!r,rt[n]=e}function g(t,e,r){var n=m(t);et.push(t),Array.isArray(r)?($[n]=r.slice(),tt[n]=r.slice()):$[n]=tt[n]=r,nt[n]=e}function y(){var t=Bt(),r=t.link,n=t.global;t.id=ot++,t.batchId=\"0\";var i=r(it),a=t.shared={props:\"a0\"};Object.keys(it).forEach(function(t){a[t]=n.def(i,\".\",t)}),de.optional(function(){t.CHECK=r(de),t.commandStr=de.guessCommand(),t.command=r(t.commandStr),t.assert=function(t,e,n){t(\"if(!(\",e,\"))\",this.CHECK,\".commandRaise(\",r(n),\",\",this.command,\");\")},at.invalidBlendCombinations=Ua});var o=t.next={},s=t.current={};Object.keys(nt).forEach(function(t){Array.isArray($[t])&&(o[t]=n.def(a.next,\".\",t),s[t]=n.def(a.current,\".\",t))});var l=t.constants={};Object.keys(at).forEach(function(t){l[t]=n.def(JSON.stringify(at[t]))}),t.invoke=function(e,n){switch(n.type){case ei:var i=[\"this\",a.context,a.props,t.batchId];return e.def(r(n.data),\".call(\",i.slice(0,Math.max(n.data.length+1,4)),\")\");case ri:return e.def(a.props,n.data);case ni:return e.def(a.context,n.data);case ii:return e.def(\"this\",n.data);case ai:return n.data.append(t,e),n.data.ref}},t.attribCache={};var c={};return t.scopeAttrib=function(t){var n=e.id(t);if(n in c)return c[n];var i=u.scope[n];return i||(i=u.scope[n]=new X),c[n]=r(i)},t}function b(t){var e,r=t.static,n=t.dynamic;if(Di in r){var i=!!r[Di];e=Gt(function(t,e){return i}),e.enable=i}else if(Di in n){var a=n[Di];e=Yt(a,function(t,e){return t.invoke(e,a)})}return e}function x(t,e){var r=t.static,n=t.dynamic;if(Pi in r){var i=r[Pi];return i?(i=s.getFramebuffer(i),de.command(i,\"invalid framebuffer object\"),Gt(function(t,e){var r=t.link(i),n=t.shared;e.set(n.framebuffer,\".next\",r);var a=n.context;return e.set(a,\".\"+Vi,r+\".width\"),e.set(a,\".\"+Hi,r+\".height\"),r})):Gt(function(t,e){var r=t.shared;e.set(r.framebuffer,\".next\",\"null\");var n=r.context;return e.set(n,\".\"+Vi,n+\".\"+Yi),e.set(n,\".\"+Hi,n+\".\"+Wi),\"null\"})}if(Pi in n){var a=n[Pi];return Yt(a,function(t,e){var r=t.invoke(e,a),n=t.shared,i=n.framebuffer,o=e.def(i,\".getFramebuffer(\",r,\")\");de.optional(function(){t.assert(e,\"!\"+r+\"||\"+o,\"invalid framebuffer object\")}),e.set(i,\".next\",o);var s=n.context;return e.set(s,\".\"+Vi,o+\"?\"+o+\".width:\"+s+\".\"+Yi),e.set(s,\".\"+Hi,o+\"?\"+o+\".height:\"+s+\".\"+Wi),o})}return null}function _(t,e,r){function n(t){if(t in i){var n=i[t];de.commandType(n,\"object\",\"invalid \"+t,r.commandStr);var o,s,l=!0,u=0|n.x,c=0|n.y;return\"width\"in n?(o=0|n.width,de.command(o>=0,\"invalid \"+t,r.commandStr)):l=!1,\"height\"in n?(s=0|n.height,de.command(s>=0,\"invalid \"+t,r.commandStr)):l=!1,new Ht(!l&&e&&e.thisDep,!l&&e&&e.contextDep,!l&&e&&e.propDep,function(t,e){var r=t.shared.context,i=o;\"width\"in n||(i=e.def(r,\".\",Vi,\"-\",u));var a=s;return\"height\"in n||(a=e.def(r,\".\",Hi,\"-\",c)),[u,c,i,a]})}if(t in a){var h=a[t],f=Yt(h,function(e,r){var n=e.invoke(r,h);de.optional(function(){e.assert(r,n+\"&&typeof \"+n+'===\"object\"',\"invalid \"+t)});var i=e.shared.context,a=r.def(n,\".x|0\"),o=r.def(n,\".y|0\"),s=r.def('\"width\" in ',n,\"?\",n,\".width|0:\",\"(\",i,\".\",Vi,\"-\",a,\")\"),l=r.def('\"height\" in ',n,\"?\",n,\".height|0:\",\"(\",i,\".\",Hi,\"-\",o,\")\");return de.optional(function(){e.assert(r,s+\">=0&&\"+l+\">=0\",\"invalid \"+t)}),[a,o,s,l]});return e&&(f.thisDep=f.thisDep||e.thisDep,f.contextDep=f.contextDep||e.contextDep,f.propDep=f.propDep||e.propDep),f}return e?new Ht(e.thisDep,e.contextDep,e.propDep,function(t,e){var r=t.shared.context;return[0,0,e.def(r,\".\",Vi),e.def(r,\".\",Hi)]}):null}var i=t.static,a=t.dynamic,o=n(zi);if(o){var s=o;o=new Ht(o.thisDep,o.contextDep,o.propDep,function(t,e){var r=s.append(t,e),n=t.shared.context;return e.set(n,\".\"+qi,r[2]),e.set(n,\".\"+Gi,r[3]),r})}return{viewport:o,scissor_box:n(Ii)}}function w(t){function r(t){if(t in i){var r=e.id(i[t]);de.optional(function(){c.shader(qa[t],r,de.guessCommand())});var n=Gt(function(){return r});return n.id=r,n}if(t in a){var o=a[t];return Yt(o,function(e,r){var n=e.invoke(r,o),i=r.def(e.shared.strings,\".id(\",n,\")\");return de.optional(function(){r(e.shared.shader,\".shader(\",qa[t],\",\",i,\",\",e.command,\");\")}),i})}return null}var n,i=t.static,a=t.dynamic,o=r(Ri),s=r(Oi),l=null;return qt(o)&&qt(s)?(l=c.program(s.id,o.id),n=Gt(function(t,e){return t.link(l)})):n=new Ht(o&&o.thisDep||s&&s.thisDep,o&&o.contextDep||s&&s.contextDep,o&&o.propDep||s&&s.propDep,function(t,e){var r,n=t.shared.shader;r=o?o.append(t,e):e.def(n,\".\",Ri);var i;i=s?s.append(t,e):e.def(n,\".\",Oi);var a=n+\".program(\"+i+\",\"+r;return de.optional(function(){a+=\",\"+t.command}),e.def(a+\")\")}),{frag:o,vert:s,progVar:n,program:l}}function M(t,e){function r(t,r){if(t in n){var a=0|n[t];return de.command(!r||a>=0,\"invalid \"+t,e.commandStr),Gt(function(t,e){return r&&(t.OFFSET=a),a})}if(t in i){var s=i[t];return Yt(s,function(e,n){var i=e.invoke(n,s);return r&&(e.OFFSET=i,de.optional(function(){e.assert(n,i+\">=0\",\"invalid \"+t)})),i})}return r&&o?Gt(function(t,e){return t.OFFSET=\"0\",0}):null}var n=t.static,i=t.dynamic,o=function(){if(Fi in n){var t=n[Fi];Ut(t)?t=a.getElements(a.create(t,!0)):t&&(t=a.getElements(t),de.command(t,\"invalid elements\",e.commandStr));var r=Gt(function(e,r){if(t){var n=e.link(t);return e.ELEMENTS=n,n}return e.ELEMENTS=null,null});return r.value=t,r}if(Fi in i){var o=i[Fi];return Yt(o,function(t,e){var r=t.shared,n=r.isBufferArgs,i=r.elements,a=t.invoke(e,o),s=e.def(\"null\"),l=e.def(n,\"(\",a,\")\"),u=t.cond(l).then(s,\"=\",i,\".createStream(\",a,\");\").else(s,\"=\",i,\".getElements(\",a,\");\");return de.optional(function(){t.assert(u.else,\"!\"+a+\"||\"+s,\"invalid elements\")}),e.entry(u),e.exit(t.cond(l).then(i,\".destroyStream(\",s,\");\")),t.ELEMENTS=s,s})}return null}(),s=r(Bi,!0);return{elements:o,primitive:function(){if(ji in n){var t=n[ji];return de.commandParameter(t,Be,\"invalid primitve\",e.commandStr),Gt(function(e,r){return Be[t]})}if(ji in i){var r=i[ji];return Yt(r,function(t,e){var n=t.constants.primTypes,i=t.invoke(e,r);return de.optional(function(){t.assert(e,i+\" in \"+n,\"invalid primitive, must be one of \"+Object.keys(Be))}),e.def(n,\"[\",i,\"]\")})}return o?qt(o)?Gt(o.value?function(t,e){return e.def(t.ELEMENTS,\".primType\")}:function(){return Aa}):new Ht(o.thisDep,o.contextDep,o.propDep,function(t,e){var r=t.ELEMENTS;return e.def(r,\"?\",r,\".primType:\",Aa)}):null}(),count:function(){if(Ni in n){var t=0|n[Ni];return de.command(\"number\"==typeof t&&t>=0,\"invalid vertex count\",e.commandStr),Gt(function(){return t})}if(Ni in i){var r=i[Ni];return Yt(r,function(t,e){var n=t.invoke(e,r);return de.optional(function(){t.assert(e,\"typeof \"+n+'===\"number\"&&'+n+\">=0&&\"+n+\"===(\"+n+\"|0)\",\"invalid vertex count\")}),n})}if(o){if(qt(o)){if(o)return s?new Ht(s.thisDep,s.contextDep,s.propDep,function(t,e){var r=e.def(t.ELEMENTS,\".vertCount-\",t.OFFSET);return de.optional(function(){t.assert(e,r+\">=0\",\"invalid vertex offset/element buffer too small\")}),r}):Gt(function(t,e){return e.def(t.ELEMENTS,\".vertCount\")});var a=Gt(function(){return-1});return de.optional(function(){a.MISSING=!0}),a}var l=new Ht(o.thisDep||s.thisDep,o.contextDep||s.contextDep,o.propDep||s.propDep,function(t,e){var r=t.ELEMENTS;return t.OFFSET?e.def(r,\"?\",r,\".vertCount-\",t.OFFSET,\":-1\"):e.def(r,\"?\",r,\".vertCount:-1\")});return de.optional(function(){l.DYNAMIC=!0}),l}return null}(),instances:r(Ui,!1),offset:s}}function k(t,e){var r=t.static,i=t.dynamic,a={};return et.forEach(function(t){function o(e,n){if(t in r){var o=e(r[t]);a[s]=Gt(function(){return o})}else if(t in i){var l=i[t];a[s]=Yt(l,function(t,e){return n(t,e,t.invoke(e,l))})}}var s=m(t);switch(t){case vi:case si:case oi:case Ai:case hi:case Ci:case xi:case wi:case Mi:case pi:return o(function(r){return de.commandType(r,\"boolean\",t,e.commandStr),r},function(e,r,n){return de.optional(function(){e.assert(r,\"typeof \"+n+'===\"boolean\"',\"invalid flag \"+t,e.commandStr)}),n});case fi:return o(function(r){return de.commandParameter(r,Va,\"invalid \"+t,e.commandStr),Va[r]},function(e,r,n){var i=e.constants.compareFuncs;return de.optional(function(){e.assert(r,n+\" in \"+i,\"invalid \"+t+\", must be one of \"+Object.keys(Va))}),r.def(i,\"[\",n,\"]\")});case di:return o(function(t){return de.command(mt(t)&&2===t.length&&\"number\"==typeof t[0]&&\"number\"==typeof t[1]&&t[0]<=t[1],\"depth range is 2d array\",e.commandStr),t},function(t,e,r){return de.optional(function(){t.assert(e,t.shared.isArrayLike+\"(\"+r+\")&&\"+r+\".length===2&&typeof \"+r+'[0]===\"number\"&&typeof '+r+'[1]===\"number\"&&'+r+\"[0]<=\"+r+\"[1]\",\"depth range must be a 2d array\")}),[e.def(\"+\",r,\"[0]\"),e.def(\"+\",r,\"[1]\")]});case ci:return o(function(t){de.commandType(t,\"object\",\"blend.func\",e.commandStr);var r=\"srcRGB\"in t?t.srcRGB:t.src,n=\"srcAlpha\"in t?t.srcAlpha:t.src,i=\"dstRGB\"in t?t.dstRGB:t.dst,a=\"dstAlpha\"in t?t.dstAlpha:t.dst;return de.commandParameter(r,Ba,s+\".srcRGB\",e.commandStr),de.commandParameter(n,Ba,s+\".srcAlpha\",e.commandStr),de.commandParameter(i,Ba,s+\".dstRGB\",e.commandStr),de.commandParameter(a,Ba,s+\".dstAlpha\",e.commandStr),de.command(-1===Ua.indexOf(r+\", \"+i),\"unallowed blending combination (srcRGB, dstRGB) = (\"+r+\", \"+i+\")\",e.commandStr),[Ba[r],Ba[i],Ba[n],Ba[a]]},function(e,r,n){function i(i,o){var s=r.def('\"',i,o,'\" in ',n,\"?\",n,\".\",i,o,\":\",n,\".\",i);return de.optional(function(){e.assert(r,s+\" in \"+a,\"invalid \"+t+\".\"+i+o+\", must be one of \"+Object.keys(Ba))}),s}var a=e.constants.blendFuncs;de.optional(function(){e.assert(r,n+\"&&typeof \"+n+'===\"object\"',\"invalid blend func, must be an object\")});var o=i(\"src\",\"RGB\"),s=i(\"dst\",\"RGB\");de.optional(function(){var t=e.constants.invalidBlendCombinations;e.assert(r,t+\".indexOf(\"+o+'+\", \"+'+s+\") === -1 \",\"unallowed blending combination for (srcRGB, dstRGB)\")});var l=r.def(a,\"[\",o,\"]\"),u=r.def(a,\"[\",i(\"src\",\"Alpha\"),\"]\");return[l,r.def(a,\"[\",s,\"]\"),u,r.def(a,\"[\",i(\"dst\",\"Alpha\"),\"]\")]});case ui:return o(function(r){return\"string\"==typeof r?(de.commandParameter(r,Z,\"invalid \"+t,e.commandStr),[Z[r],Z[r]]):\"object\"==typeof r?(de.commandParameter(r.rgb,Z,t+\".rgb\",e.commandStr),de.commandParameter(r.alpha,Z,t+\".alpha\",e.commandStr),[Z[r.rgb],Z[r.alpha]]):void de.commandRaise(\"invalid blend.equation\",e.commandStr)},function(e,r,n){var i=e.constants.blendEquations,a=r.def(),o=r.def(),s=e.cond(\"typeof \",n,'===\"string\"');return de.optional(function(){function r(t,r,n){e.assert(t,n+\" in \"+i,\"invalid \"+r+\", must be one of \"+Object.keys(Z))}r(s.then,t,n),e.assert(s.else,n+\"&&typeof \"+n+'===\"object\"',\"invalid \"+t),r(s.else,t+\".rgb\",n+\".rgb\"),r(s.else,t+\".alpha\",n+\".alpha\")}),s.then(a,\"=\",o,\"=\",i,\"[\",n,\"];\"),s.else(a,\"=\",i,\"[\",n,\".rgb];\",o,\"=\",i,\"[\",n,\".alpha];\"),r(s),[a,o]});case li:return o(function(t){return de.command(mt(t)&&4===t.length,\"blend.color must be a 4d array\",e.commandStr),J(4,function(e){return+t[e]})},function(t,e,r){return de.optional(function(){t.assert(e,t.shared.isArrayLike+\"(\"+r+\")&&\"+r+\".length===4\",\"blend.color must be a 4d array\")}),J(4,function(t){return e.def(\"+\",r,\"[\",t,\"]\")})});case Ti:return o(function(t){return de.commandType(t,\"number\",s,e.commandStr),0|t},function(t,e,r){return de.optional(function(){t.assert(e,\"typeof \"+r+'===\"number\"',\"invalid stencil.mask\")}),e.def(r,\"|0\")});case Si:return o(function(r){de.commandType(r,\"object\",s,e.commandStr);var n=r.cmp||\"keep\",i=r.ref||0,a=\"mask\"in r?r.mask:-1;return de.commandParameter(n,Va,t+\".cmp\",e.commandStr),de.commandType(i,\"number\",t+\".ref\",e.commandStr),de.commandType(a,\"number\",t+\".mask\",e.commandStr),[Va[n],i,a]},function(t,e,r){var n=t.constants.compareFuncs;return de.optional(function(){function i(){t.assert(e,Array.prototype.join.call(arguments,\"\"),\"invalid stencil.func\")}i(r+\"&&typeof \",r,'===\"object\"'),i('!(\"cmp\" in ',r,\")||(\",r,\".cmp in \",n,\")\")}),[e.def('\"cmp\" in ',r,\"?\",n,\"[\",r,\".cmp]\",\":\",Da),e.def(r,\".ref|0\"),e.def('\"mask\" in ',r,\"?\",r,\".mask|0:-1\")]});case Ei:case Li:return o(function(r){de.commandType(r,\"object\",s,e.commandStr);var n=r.fail||\"keep\",i=r.zfail||\"keep\",a=r.zpass||\"keep\";return de.commandParameter(n,Ha,t+\".fail\",e.commandStr),de.commandParameter(i,Ha,t+\".zfail\",e.commandStr),de.commandParameter(a,Ha,t+\".zpass\",e.commandStr),[t===Li?Sa:Ta,Ha[n],Ha[i],Ha[a]]},function(e,r,n){function i(i){return de.optional(function(){e.assert(r,'!(\"'+i+'\" in '+n+\")||(\"+n+\".\"+i+\" in \"+a+\")\",\"invalid \"+t+\".\"+i+\", must be one of \"+Object.keys(Ha))}),r.def('\"',i,'\" in ',n,\"?\",a,\"[\",n,\".\",i,\"]:\",Da)}var a=e.constants.stencilOps;return de.optional(function(){e.assert(r,n+\"&&typeof \"+n+'===\"object\"',\"invalid \"+t)}),[t===Li?Sa:Ta,i(\"fail\"),i(\"zfail\"),i(\"zpass\")]});case _i:return o(function(t){de.commandType(t,\"object\",s,e.commandStr);var r=0|t.factor,n=0|t.units;return de.commandType(r,\"number\",s+\".factor\",e.commandStr),de.commandType(n,\"number\",s+\".units\",e.commandStr),[r,n]},function(e,r,n){return de.optional(function(){e.assert(r,n+\"&&typeof \"+n+'===\"object\"',\"invalid \"+t)}),[r.def(n,\".factor|0\"),r.def(n,\".units|0\")]});case gi:return o(function(t){var r=0;return\"front\"===t?r=Ta:\"back\"===t&&(r=Sa),de.command(!!r,s,e.commandStr),r},function(t,e,r){return de.optional(function(){t.assert(e,r+'===\"front\"||'+r+'===\"back\"',\"invalid cull.face\")}),e.def(r,'===\"front\"?',Ta,\":\",Sa)});case bi:return o(function(t){return de.command(\"number\"==typeof t&&t>=n.lineWidthDims[0]&&t<=n.lineWidthDims[1],\"invalid line width, must positive number between \"+n.lineWidthDims[0]+\" and \"+n.lineWidthDims[1],e.commandStr),t},function(t,e,r){return de.optional(function(){t.assert(e,\"typeof \"+r+'===\"number\"&&'+r+\">=\"+n.lineWidthDims[0]+\"&&\"+r+\"<=\"+n.lineWidthDims[1],\"invalid line width\")}),r});case yi:return o(function(t){return de.commandParameter(t,Ga,s,e.commandStr),Ga[t]},function(t,e,r){return de.optional(function(){t.assert(e,r+'===\"cw\"||'+r+'===\"ccw\"',\"invalid frontFace, must be one of cw,ccw\")}),e.def(r+'===\"cw\"?'+Ea+\":\"+La)});case mi:return o(function(t){return de.command(mt(t)&&4===t.length,\"color.mask must be length 4 array\",e.commandStr),t.map(function(t){return!!t})},function(t,e,r){return de.optional(function(){t.assert(e,t.shared.isArrayLike+\"(\"+r+\")&&\"+r+\".length===4\",\"invalid color.mask\")}),J(4,function(t){return\"!!\"+r+\"[\"+t+\"]\"})});case ki:return o(function(t){de.command(\"object\"==typeof t&&t,s,e.commandStr);var r=\"value\"in t?t.value:1,n=!!t.invert;return de.command(\"number\"==typeof r&&r>=0&&r<=1,\"sample.coverage.value must be a number between 0 and 1\",e.commandStr),[r,n]},function(t,e,r){return de.optional(function(){t.assert(e,r+\"&&typeof \"+r+'===\"object\"',\"invalid sample.coverage\")}),[e.def('\"value\" in ',r,\"?+\",r,\".value:1\"),e.def(\"!!\",r,\".invert\")]})}}),a}function A(t,e){var r=t.static,n=t.dynamic,i={};return Object.keys(r).forEach(function(t){var n,a=r[t];if(\"number\"==typeof a||\"boolean\"==typeof a)n=Gt(function(){return a});else if(\"function\"==typeof a){var o=a._reglType;\"texture2d\"===o||\"textureCube\"===o?n=Gt(function(t){return t.link(a)}):\"framebuffer\"===o||\"framebufferCube\"===o?(de.command(a.color.length>0,'missing color attachment for framebuffer sent to uniform \"'+t+'\"',e.commandStr),n=Gt(function(t){return t.link(a.color[0])})):de.commandRaise('invalid data for uniform \"'+t+'\"',e.commandStr)}else mt(a)?n=Gt(function(e){return e.global.def(\"[\",J(a.length,function(r){return de.command(\"number\"==typeof a[r]||\"boolean\"==typeof a[r],\"invalid uniform \"+t,e.commandStr),a[r]}),\"]\")}):de.commandRaise('invalid or missing data for uniform \"'+t+'\"',e.commandStr);n.value=a,i[t]=n}),Object.keys(n).forEach(function(t){var e=n[t];i[t]=Yt(e,function(t,r){return t.invoke(r,e)})}),i}function T(t,r){var n=t.static,a=t.dynamic,o={};return Object.keys(n).forEach(function(t){var a=n[t],s=e.id(t),l=new X;if(Ut(a))l.state=$n,l.buffer=i.getBuffer(i.create(a,Zi,!1,!0)),l.type=0;else{var u=i.getBuffer(a);if(u)l.state=$n,l.buffer=u,l.type=0;else if(de.command(\"object\"==typeof a&&a,\"invalid data for attribute \"+t,r.commandStr),a.constant){var c=a.constant;l.buffer=\"null\",l.state=ti,\"number\"==typeof c?l.x=c:(de.command(mt(c)&&c.length>0&&c.length<=4,\"invalid constant for attribute \"+t,r.commandStr),Kn.forEach(function(t,e){e<c.length&&(l[t]=c[e])}))}else{u=Ut(a.buffer)?i.getBuffer(i.create(a.buffer,Zi,!1,!0)):i.getBuffer(a.buffer),de.command(!!u,'missing buffer for attribute \"'+t+'\"',r.commandStr);var h=0|a.offset;de.command(h>=0,'invalid offset for attribute \"'+t+'\"',r.commandStr);var f=0|a.stride;de.command(f>=0&&f<256,'invalid stride for attribute \"'+t+'\", must be integer betweeen [0, 255]',r.commandStr);var d=0|a.size;de.command(!(\"size\"in a)||d>0&&d<=4,'invalid size for attribute \"'+t+'\", must be 1,2,3,4',r.commandStr);var p=!!a.normalized,m=0;\"type\"in a&&(de.commandParameter(a.type,Ie,\"invalid type for attribute \"+t,r.commandStr),m=Ie[a.type]);var v=0|a.divisor;\"divisor\"in a&&(de.command(0===v||K,'cannot specify divisor for attribute \"'+t+'\", instancing not supported',r.commandStr),de.command(v>=0,'invalid divisor for attribute \"'+t+'\"',r.commandStr)),de.optional(function(){var e=r.commandStr,n=[\"buffer\",\"offset\",\"divisor\",\"normalized\",\"type\",\"size\",\"stride\"];Object.keys(a).forEach(function(r){de.command(n.indexOf(r)>=0,'unknown parameter \"'+r+'\" for attribute pointer \"'+t+'\" (valid parameters are '+n+\")\",e)})}),l.buffer=u,l.state=$n,l.size=d,l.normalized=p,l.type=m||u.dtype,l.offset=h,l.stride=f,l.divisor=v}}o[t]=Gt(function(t,e){var r=t.attribCache;if(s in r)return r[s];var n={isStream:!1};return Object.keys(l).forEach(function(t){n[t]=l[t]}),l.buffer&&(n.buffer=t.link(l.buffer),n.type=n.type||n.buffer+\".dtype\"),r[s]=n,n})}),Object.keys(a).forEach(function(t){function e(e,n){function i(t){n(u[t],\"=\",a,\".\",t,\"|0;\")}var a=e.invoke(n,r),o=e.shared,s=o.isBufferArgs,l=o.buffer;de.optional(function(){e.assert(n,a+\"&&(typeof \"+a+'===\"object\"||typeof '+a+'===\"function\")&&('+s+\"(\"+a+\")||\"+l+\".getBuffer(\"+a+\")||\"+l+\".getBuffer(\"+a+\".buffer)||\"+s+\"(\"+a+'.buffer)||(\"constant\" in '+a+\"&&(typeof \"+a+'.constant===\"number\"||'+o.isArrayLike+\"(\"+a+\".constant))))\",'invalid dynamic attribute \"'+t+'\"')});var u={isStream:n.def(!1)},c=new X;c.state=$n,Object.keys(c).forEach(function(t){u[t]=n.def(\"\"+c[t])});var h=u.buffer,f=u.type;return n(\"if(\",s,\"(\",a,\")){\",u.isStream,\"=true;\",h,\"=\",l,\".createStream(\",Zi,\",\",a,\");\",f,\"=\",h,\".dtype;\",\"}else{\",h,\"=\",l,\".getBuffer(\",a,\");\",\"if(\",h,\"){\",f,\"=\",h,\".dtype;\",'}else if(\"constant\" in ',a,\"){\",u.state,\"=\",ti,\";\",\"if(typeof \"+a+'.constant === \"number\"){',u[Kn[0]],\"=\",a,\".constant;\",Kn.slice(1).map(function(t){return u[t]}).join(\"=\"),\"=0;\",\"}else{\",Kn.map(function(t,e){return u[t]+\"=\"+a+\".constant.length>=\"+e+\"?\"+a+\".constant[\"+e+\"]:0;\"}).join(\"\"),\"}}else{\",\"if(\",s,\"(\",a,\".buffer)){\",h,\"=\",l,\".createStream(\",Zi,\",\",a,\".buffer);\",\"}else{\",h,\"=\",l,\".getBuffer(\",a,\".buffer);\",\"}\",f,'=\"type\" in ',a,\"?\",o.glTypes,\"[\",a,\".type]:\",h,\".dtype;\",u.normalized,\"=!!\",a,\".normalized;\"),i(\"size\"),i(\"offset\"),i(\"stride\"),i(\"divisor\"),n(\"}}\"),n.exit(\"if(\",u.isStream,\"){\",l,\".destroyStream(\",h,\");\",\"}\"),u}var r=a[t];o[t]=Yt(r,e)}),o}function S(t){var e=t.static,r=t.dynamic,n={};return Object.keys(e).forEach(function(t){var r=e[t];n[t]=Gt(function(t,e){return\"number\"==typeof r||\"boolean\"==typeof r?\"\"+r:t.link(r)})}),Object.keys(r).forEach(function(t){var e=r[t];n[t]=Yt(e,function(t,r){return t.invoke(r,e)})}),n}function E(t,e,r,n,i){function a(t){var e=u[t];e&&(h[t]=e)}var o=t.static,s=t.dynamic;de.optional(function(){function t(t){Object.keys(t).forEach(function(t){de.command(e.indexOf(t)>=0,'unknown parameter \"'+t+'\"',i.commandStr)})}var e=[Pi,Oi,Ri,Fi,ji,Bi,Ni,Ui,Di].concat(et);t(o),t(s)});var l=x(t,i),u=_(t,l,i),c=M(t,i),h=k(t,i),f=w(t,i);a(zi),a(m(Ii));var d=Object.keys(h).length>0,p={framebuffer:l,draw:c,shader:f,state:h,dirty:d};return p.profile=b(t,i),p.uniforms=A(r,i),p.attributes=T(e,i),p.context=S(n,i),p}function L(t,e,r){var n=t.shared,i=n.context,a=t.scope();Object.keys(r).forEach(function(n){e.save(i,\".\"+n);var o=r[n];a(i,\".\",n,\"=\",o.append(t,e),\";\")}),e(a)}function C(t,e,r,n){var i,a=t.shared,o=a.gl,s=a.framebuffer;Q&&(i=e.def(a.extensions,\".webgl_draw_buffers\"));var l,u=t.constants,c=u.drawBuffer,h=u.backBuffer;l=r?r.append(t,e):e.def(s,\".next\"),n||e(\"if(\",l,\"!==\",s,\".cur){\"),e(\"if(\",l,\"){\",o,\".bindFramebuffer(\",ja,\",\",l,\".framebuffer);\"),Q&&e(i,\".drawBuffersWEBGL(\",c,\"[\",l,\".colorAttachments.length]);\"),e(\"}else{\",o,\".bindFramebuffer(\",ja,\",null);\"),Q&&e(i,\".drawBuffersWEBGL(\",h,\");\"),e(\"}\",s,\".cur=\",l,\";\"),n||e(\"}\")}function I(t,e,r){var n=t.shared,i=n.gl,a=t.current,o=t.next,s=n.current,l=n.next,u=t.cond(s,\".dirty\");et.forEach(function(e){var n=m(e);if(!(n in r.state)){var c,h;if(n in o){c=o[n],h=a[n];var f=J($[n].length,function(t){return u.def(c,\"[\",t,\"]\")});u(t.cond(f.map(function(t,e){return t+\"!==\"+h+\"[\"+e+\"]\"}).join(\"||\")).then(i,\".\",nt[n],\"(\",f,\");\",f.map(function(t,e){return h+\"[\"+e+\"]=\"+t}).join(\";\"),\";\"))}else{c=u.def(l,\".\",n);var d=t.cond(c,\"!==\",s,\".\",n);u(d),n in rt?d(t.cond(c).then(i,\".enable(\",rt[n],\");\").else(i,\".disable(\",rt[n],\");\"),s,\".\",n,\"=\",c,\";\"):d(i,\".\",nt[n],\"(\",c,\");\",s,\".\",n,\"=\",c,\";\")}}}),0===Object.keys(r.state).length&&u(s,\".dirty=false;\"),e(u)}function z(t,e,r,n){var i=t.shared,a=t.current,o=i.current,s=i.gl;Vt(Object.keys(r)).forEach(function(i){var l=r[i];if(!n||n(l)){var u=l.append(t,e);if(rt[i]){var c=rt[i];qt(l)?u?e(s,\".enable(\",c,\");\"):e(s,\".disable(\",c,\");\"):e(t.cond(u).then(s,\".enable(\",c,\");\").else(s,\".disable(\",c,\");\")),e(o,\".\",i,\"=\",u,\";\")}else if(mt(u)){var h=a[i];e(s,\".\",nt[i],\"(\",u,\");\",u.map(function(t,e){return h+\"[\"+e+\"]=\"+t}).join(\";\"),\";\")}else e(s,\".\",nt[i],\"(\",u,\");\",o,\".\",i,\"=\",u,\";\")}})}function D(t,e){K&&(t.instancing=e.def(t.shared.extensions,\".angle_instanced_arrays\"))}function P(t,e,r,n,i){function a(){return\"undefined\"==typeof performance?\"Date.now()\":\"performance.now()\"}function o(t){u=e.def(),t(u,\"=\",a(),\";\"),\"string\"==typeof i?t(p,\".count+=\",i,\";\"):t(p,\".count++;\"),d&&(n?(c=e.def(),t(c,\"=\",v,\".getNumPendingQueries();\")):t(v,\".beginQuery(\",p,\");\"))}function s(t){t(p,\".cpuTime+=\",a(),\"-\",u,\";\"),d&&(n?t(v,\".pushScopeStats(\",c,\",\",v,\".getNumPendingQueries(),\",p,\");\"):t(v,\".endQuery();\"))}function l(t){var r=e.def(m,\".profile\");e(m,\".profile=\",t,\";\"),e.exit(m,\".profile=\",r,\";\")}var u,c,h,f=t.shared,p=t.stats,m=f.current,v=f.timer,g=r.profile;if(g){if(qt(g))return void(g.enable?(o(e),s(e.exit),l(\"true\")):l(\"false\"));h=g.append(t,e),l(h)}else h=e.def(m,\".profile\");var y=t.block();o(y),e(\"if(\",h,\"){\",y,\"}\");var b=t.block();s(b),e.exit(\"if(\",h,\"){\",b,\"}\")}function O(t,e,r,n,i){function a(t){switch(t){case ua:case da:case ga:return 2;case ca:case pa:case ya:return 3;case ha:case ma:case ba:return 4;default:return 1}}function o(r,n,i){function a(){e(\"if(!\",c,\".buffer){\",l,\".enableVertexAttribArray(\",u,\");}\");var r,a=i.type;if(r=i.size?e.def(i.size,\"||\",n):n,e(\"if(\",c,\".type!==\",a,\"||\",c,\".size!==\",r,\"||\",p.map(function(t){return c+\".\"+t+\"!==\"+i[t]}).join(\"||\"),\"){\",l,\".bindBuffer(\",Zi,\",\",f,\".buffer);\",l,\".vertexAttribPointer(\",[u,r,a,i.normalized,i.stride,i.offset],\");\",c,\".type=\",a,\";\",c,\".size=\",r,\";\",p.map(function(t){return c+\".\"+t+\"=\"+i[t]+\";\"}).join(\"\"),\"}\"),K){var o=i.divisor;e(\"if(\",c,\".divisor!==\",o,\"){\",t.instancing,\".vertexAttribDivisorANGLE(\",[u,o],\");\",c,\".divisor=\",o,\";}\")}}function o(){e(\"if(\",c,\".buffer){\",l,\".disableVertexAttribArray(\",u,\");\",\"}if(\",Kn.map(function(t,e){return c+\".\"+t+\"!==\"+d[e]}).join(\"||\"),\"){\",l,\".vertexAttrib4f(\",u,\",\",d,\");\",Kn.map(function(t,e){return c+\".\"+t+\"=\"+d[e]+\";\"}).join(\"\"),\"}\")}var l=s.gl,u=e.def(r,\".location\"),c=e.def(s.attributes,\"[\",u,\"]\"),h=i.state,f=i.buffer,d=[i.x,i.y,i.z,i.w],p=[\"buffer\",\"normalized\",\"offset\",\"stride\"];h===$n?a():h===ti?o():(e(\"if(\",h,\"===\",$n,\"){\"),a(),e(\"}else{\"),o(),e(\"}\"))}var s=t.shared;n.forEach(function(n){var s,l=n.name,u=r.attributes[l];if(u){if(!i(u))return;s=u.append(t,e)}else{if(!i(Ya))return;var c=t.scopeAttrib(l);de.optional(function(){t.assert(e,c+\".state\",\"missing attribute \"+l)}),s={},Object.keys(new X).forEach(function(t){s[t]=e.def(c,\".\",t)})}o(t.link(n),a(n.info.type),s)})}function R(t,r,n,i,a){for(var o,s=t.shared,l=s.gl,u=0;u<i.length;++u){var c,h=i[u],f=h.name,d=h.info.type,p=n.uniforms[f],m=t.link(h),v=m+\".location\";if(p){if(!a(p))continue;if(qt(p)){var g=p.value;if(de.command(null!==g&&void 0!==g,'missing uniform \"'+f+'\"',t.commandStr),d===Ma||d===ka){de.command(\"function\"==typeof g&&(d===Ma&&(\"texture2d\"===g._reglType||\"framebuffer\"===g._reglType)||d===ka&&(\"textureCube\"===g._reglType||\"framebufferCube\"===g._reglType)),\"invalid texture for uniform \"+f,t.commandStr);var y=t.link(g._texture||g.color[0]._texture);r(l,\".uniform1i(\",v,\",\",y+\".bind());\"),r.exit(y,\".unbind();\")}else if(d===xa||d===_a||d===wa){de.optional(function(){de.command(mt(g),\"invalid matrix for uniform \"+f,t.commandStr),de.command(d===xa&&4===g.length||d===_a&&9===g.length||d===wa&&16===g.length,\"invalid length for matrix uniform \"+f,t.commandStr)});var b=t.global.def(\"new Float32Array([\"+Array.prototype.slice.call(g)+\"])\"),x=2;d===_a?x=3:d===wa&&(x=4),r(l,\".uniformMatrix\",x,\"fv(\",v,\",false,\",b,\");\")}else{switch(d){case la:de.commandType(g,\"number\",\"uniform \"+f,t.commandStr),o=\"1f\";break;case ua:de.command(mt(g)&&2===g.length,\"uniform \"+f,t.commandStr),o=\"2f\";break;case ca:de.command(mt(g)&&3===g.length,\"uniform \"+f,t.commandStr),o=\"3f\";break;case ha:de.command(mt(g)&&4===g.length,\"uniform \"+f,t.commandStr),o=\"4f\";break;case va:de.commandType(g,\"boolean\",\"uniform \"+f,t.commandStr),o=\"1i\";break;case fa:de.commandType(g,\"number\",\"uniform \"+f,t.commandStr),o=\"1i\";break;case ga:case da:de.command(mt(g)&&2===g.length,\"uniform \"+f,t.commandStr),o=\"2i\";break;case ya:case pa:de.command(mt(g)&&3===g.length,\"uniform \"+f,t.commandStr),o=\"3i\";break;case ba:case ma:de.command(mt(g)&&4===g.length,\"uniform \"+f,t.commandStr),o=\"4i\"}r(l,\".uniform\",o,\"(\",v,\",\",mt(g)?Array.prototype.slice.call(g):g,\");\")}continue}c=p.append(t,r)}else{if(!a(Ya))continue;c=r.def(s.uniforms,\"[\",e.id(f),\"]\")}d===Ma?r(\"if(\",c,\"&&\",c,'._reglType===\"framebuffer\"){',c,\"=\",c,\".color[0];\",\"}\"):d===ka&&r(\"if(\",c,\"&&\",c,'._reglType===\"framebufferCube\"){',c,\"=\",c,\".color[0];\",\"}\"),de.optional(function(){function e(e,n){t.assert(r,e,'bad data or missing for uniform \"'+f+'\". '+n)}function n(t){e(\"typeof \"+c+'===\"'+t+'\"',\"invalid type, expected \"+t)}function i(r,n){e(s.isArrayLike+\"(\"+c+\")&&\"+c+\".length===\"+r,\"invalid vector, should have length \"+r,t.commandStr)}function a(r){e(\"typeof \"+c+'===\"function\"&&'+c+'._reglType===\"texture'+(r===Ki?\"2d\":\"Cube\")+'\"',\"invalid texture type\",t.commandStr)}switch(d){case fa:n(\"number\");break;case da:i(2,\"number\");break;case pa:i(3,\"number\");break;case ma:i(4,\"number\");break;case la:n(\"number\");break;case ua:i(2,\"number\");break;case ca:i(3,\"number\");break;case ha:i(4,\"number\");break;case va:n(\"boolean\");break;case ga:i(2,\"boolean\");break;case ya:i(3,\"boolean\");break;case ba:i(4,\"boolean\");break;case xa:i(4,\"number\");break;case _a:i(9,\"number\");break;case wa:i(16,\"number\");break;case Ma:a(Ki);break;case ka:a(Qi)}});var _=1;switch(d){case Ma:case ka:var w=r.def(c,\"._texture\");r(l,\".uniform1i(\",v,\",\",w,\".bind());\"),r.exit(w,\".unbind();\");continue;case fa:case va:o=\"1i\";break;case da:case ga:o=\"2i\",_=2;break;case pa:case ya:o=\"3i\",_=3;break;case ma:case ba:o=\"4i\",_=4;break;case la:o=\"1f\";break;case ua:o=\"2f\",_=2;break;case ca:o=\"3f\",_=3;break;case ha:o=\"4f\",_=4;break;case xa:o=\"Matrix2fv\";break;case _a:o=\"Matrix3fv\";break;case wa:o=\"Matrix4fv\"}if(r(l,\".uniform\",o,\"(\",v,\",\"),\"M\"===o.charAt(0)){var M=Math.pow(d-xa+2,2),k=t.global.def(\"new Float32Array(\",M,\")\");r(\"false,(Array.isArray(\",c,\")||\",c,\" instanceof Float32Array)?\",c,\":(\",J(M,function(t){return k+\"[\"+t+\"]=\"+c+\"[\"+t+\"]\"}),\",\",k,\")\")}else r(_>1?J(_,function(t){return c+\"[\"+t+\"]\"}):c);r(\");\")}}function F(t,e,r,n){function i(i){var a=c[i];return a?a.contextDep&&n.contextDynamic||a.propDep?a.append(t,r):a.append(t,e):e.def(u,\".\",i)}function a(){function t(){r(v,\".drawElementsInstancedANGLE(\",[f,p,g,d+\"<<((\"+g+\"-\"+Qn+\")>>1)\",m],\");\")}function e(){r(v,\".drawArraysInstancedANGLE(\",[f,d,p,m],\");\")}h?y?t():(r(\"if(\",h,\"){\"),t(),r(\"}else{\"),e(),r(\"}\")):e()}function o(){function t(){r(l+\".drawElements(\"+[f,p,g,d+\"<<((\"+g+\"-\"+Qn+\")>>1)\"]+\");\")}function e(){r(l+\".drawArrays(\"+[f,d,p]+\");\")}h?y?t():(r(\"if(\",h,\"){\"),t(),r(\"}else{\"),e(),r(\"}\")):e()}var s=t.shared,l=s.gl,u=s.draw,c=n.draw,h=function(){var i,a=c.elements,o=e;return a?((a.contextDep&&n.contextDynamic||a.propDep)&&(o=r),i=a.append(t,o)):i=o.def(u,\".\",Fi),i&&o(\"if(\"+i+\")\"+l+\".bindBuffer(\"+Ji+\",\"+i+\".buffer.buffer);\"),i}(),f=i(ji),d=i(Bi),p=function(){var i,a=c.count,o=e;return a?((a.contextDep&&n.contextDynamic||a.propDep)&&(o=r),i=a.append(t,o),de.optional(function(){a.MISSING&&t.assert(e,\"false\",\"missing vertex count\"),a.DYNAMIC&&t.assert(o,i+\">=0\",\"missing vertex count\")})):(i=o.def(u,\".\",Ni),de.optional(function(){t.assert(o,i+\">=0\",\"missing vertex count\")})),i}();if(\"number\"==typeof p){if(0===p)return}else r(\"if(\",p,\"){\"),r.exit(\"}\");var m,v;K&&(m=i(Ui),v=t.instancing);var g=h+\".type\",y=c.elements&&qt(c.elements);K&&(\"number\"!=typeof m||m>=0)?\"string\"==typeof m?(r(\"if(\",m,\">0){\"),a(),r(\"}else if(\",m,\"<0){\"),o(),r(\"}\")):a():o()}function j(t,e,r,n,i){var a=y(),o=a.proc(\"body\",i);return de.optional(function(){a.commandStr=e.commandStr,a.command=a.link(e.commandStr)}),K&&(a.instancing=o.def(a.shared.extensions,\".angle_instanced_arrays\")),t(a,o,r,n),a.compile().body}function N(t,e,r,n){D(t,e),O(t,e,r,n.attributes,function(){return!0}),R(t,e,r,n.uniforms,function(){return!0}),F(t,e,e,r)}function B(t,e){var r=t.proc(\"draw\",1);D(t,r),L(t,r,e.context),C(t,r,e.framebuffer),I(t,r,e),z(t,r,e.state),P(t,r,e,!1,!0);var n=e.shader.progVar.append(t,r);if(r(t.shared.gl,\".useProgram(\",n,\".program);\"),e.shader.program)N(t,r,e,e.shader.program);else{var i=t.global.def(\"{}\"),a=r.def(n,\".id\"),o=r.def(i,\"[\",a,\"]\");r(t.cond(o).then(o,\".call(this,a0);\").else(o,\"=\",i,\"[\",a,\"]=\",t.link(function(r){return j(N,t,e,r,1)}),\"(\",n,\");\",o,\".call(this,a0);\"))}Object.keys(e.state).length>0&&r(t.shared.current,\".dirty=true;\")}function U(t,e,r,n){function i(){return!0}t.batchId=\"a1\",D(t,e),O(t,e,r,n.attributes,i),R(t,e,r,n.uniforms,i),F(t,e,e,r)}function V(t,e,r,n){function i(t){return t.contextDep&&o||t.propDep}function a(t){return!i(t)}D(t,e);var o=r.contextDep,s=e.def(),l=e.def();t.shared.props=l,t.batchId=s;var u=t.scope(),c=t.scope();if(e(u.entry,\"for(\",s,\"=0;\",s,\"<\",\"a1\",\";++\",s,\"){\",l,\"=\",\"a0\",\"[\",s,\"];\",c,\"}\",u.exit),r.needsContext&&L(t,c,r.context),r.needsFramebuffer&&C(t,c,r.framebuffer),z(t,c,r.state,i),\n", "r.profile&&i(r.profile)&&P(t,c,r,!1,!0),n)O(t,u,r,n.attributes,a),O(t,c,r,n.attributes,i),R(t,u,r,n.uniforms,a),R(t,c,r,n.uniforms,i),F(t,u,c,r);else{var h=t.global.def(\"{}\"),f=r.shader.progVar.append(t,c),d=c.def(f,\".id\"),p=c.def(h,\"[\",d,\"]\");c(t.shared.gl,\".useProgram(\",f,\".program);\",\"if(!\",p,\"){\",p,\"=\",h,\"[\",d,\"]=\",t.link(function(e){return j(U,t,r,e,2)}),\"(\",f,\");}\",p,\".call(this,a0[\",s,\"],\",s,\");\")}}function H(t,e){function r(t){return t.contextDep&&i||t.propDep}var n=t.proc(\"batch\",2);t.batchId=\"0\",D(t,n);var i=!1,a=!0;Object.keys(e.context).forEach(function(t){i=i||e.context[t].propDep}),i||(L(t,n,e.context),a=!1);var o=e.framebuffer,s=!1;o?(o.propDep?i=s=!0:o.contextDep&&i&&(s=!0),s||C(t,n,o)):C(t,n,null),e.state.viewport&&e.state.viewport.propDep&&(i=!0),I(t,n,e),z(t,n,e.state,function(t){return!r(t)}),e.profile&&r(e.profile)||P(t,n,e,!1,\"a1\"),e.contextDep=i,e.needsContext=a,e.needsFramebuffer=s;var l=e.shader.progVar;if(l.contextDep&&i||l.propDep)V(t,n,e,null);else{var u=l.append(t,n);if(n(t.shared.gl,\".useProgram(\",u,\".program);\"),e.shader.program)V(t,n,e,e.shader.program);else{var c=t.global.def(\"{}\"),h=n.def(u,\".id\"),f=n.def(c,\"[\",h,\"]\");n(t.cond(f).then(f,\".call(this,a0,a1);\").else(f,\"=\",c,\"[\",h,\"]=\",t.link(function(r){return j(V,t,e,r,2)}),\"(\",u,\");\",f,\".call(this,a0,a1);\"))}}Object.keys(e.state).length>0&&n(t.shared.current,\".dirty=true;\")}function q(t,r){function n(e){var n=r.shader[e];n&&i.set(a.shader,\".\"+e,n.append(t,i))}var i=t.proc(\"scope\",3);t.batchId=\"a2\";var a=t.shared,o=a.current;L(t,i,r.context),r.framebuffer&&r.framebuffer.append(t,i),Vt(Object.keys(r.state)).forEach(function(e){var n=r.state[e],o=n.append(t,i);mt(o)?o.forEach(function(r,n){i.set(t.next[e],\"[\"+n+\"]\",r)}):i.set(a.next,\".\"+e,o)}),P(t,i,r,!0,!0),[Fi,Bi,Ni,Ui,ji].forEach(function(e){var n=r.draw[e];n&&i.set(a.draw,\".\"+e,\"\"+n.append(t,i))}),Object.keys(r.uniforms).forEach(function(n){i.set(a.uniforms,\"[\"+e.id(n)+\"]\",r.uniforms[n].append(t,i))}),Object.keys(r.attributes).forEach(function(e){var n=r.attributes[e].append(t,i),a=t.scopeAttrib(e);Object.keys(new X).forEach(function(t){i.set(a,\".\"+t,n[t])})}),n(Oi),n(Ri),Object.keys(r.state).length>0&&(i(o,\".dirty=true;\"),i.exit(o,\".dirty=true;\")),i(\"a1(\",t.shared.context,\",a0,\",t.batchId,\");\")}function G(t){if(\"object\"==typeof t&&!mt(t)){for(var e=Object.keys(t),r=0;r<e.length;++r)if(ve.isDynamic(t[e[r]]))return!0;return!1}}function Y(t,e,r){function n(t,e){o.forEach(function(r){var n=i[r];if(ve.isDynamic(n)){var a=t.invoke(e,n);e(c,\".\",r,\"=\",a,\";\")}})}var i=e.static[r];if(i&&G(i)){var a=t.global,o=Object.keys(i),s=!1,l=!1,u=!1,c=t.global.def(\"{}\");o.forEach(function(e){var r=i[e];if(ve.isDynamic(r)){\"function\"==typeof r&&(r=i[e]=ve.unbox(r));var n=Yt(r,null);s=s||n.thisDep,u=u||n.propDep,l=l||n.contextDep}else{switch(a(c,\".\",e,\"=\"),typeof r){case\"number\":a(r);break;case\"string\":a('\"',r,'\"');break;case\"object\":Array.isArray(r)&&a(\"[\",r.join(),\"]\");break;default:a(t.link(r))}a(\";\")}}),e.dynamic[r]=new ve.DynamicVariable(ai,{thisDep:s,contextDep:l,propDep:u,ref:c,append:n}),delete e.static[r]}}function W(t,e,r,n,i){var a=y();a.stats=a.link(i),Object.keys(e.static).forEach(function(t){Y(a,e,t)}),Xi.forEach(function(e){Y(a,t,e)});var o=E(t,e,r,n,a);return B(a,o),q(a,o),H(a,o),a.compile()}var X=u.Record,Z={add:32774,subtract:32778,\"reverse subtract\":32779};r.ext_blend_minmax&&(Z.min=Ca,Z.max=Ia);var K=r.angle_instanced_arrays,Q=r.webgl_draw_buffers,$={dirty:!0,profile:p.profile},tt={},et=[],rt={},nt={};v(oi,ea),v(si,ta),g(li,\"blendColor\",[0,0,0,0]),g(ui,\"blendEquationSeparate\",[Ra,Ra]),g(ci,\"blendFuncSeparate\",[Oa,Pa,Oa,Pa]),v(hi,na,!0),g(fi,\"depthFunc\",Fa),g(di,\"depthRange\",[0,1]),g(pi,\"depthMask\",!0),g(mi,mi,[!0,!0,!0,!0]),v(vi,$i),g(gi,\"cullFace\",Sa),g(yi,yi,La),g(bi,bi,1),v(xi,aa),g(_i,\"polygonOffset\",[0,0]),v(wi,oa),v(Mi,sa),g(ki,\"sampleCoverage\",[1,!1]),v(Ai,ra),g(Ti,\"stencilMask\",-1),g(Si,\"stencilFunc\",[za,0,-1]),g(Ei,\"stencilOpSeparate\",[Ta,Da,Da,Da]),g(Li,\"stencilOpSeparate\",[Sa,Da,Da,Da]),v(Ci,ia),g(Ii,\"scissor\",[0,0,t.drawingBufferWidth,t.drawingBufferHeight]),g(zi,zi,[0,0,t.drawingBufferWidth,t.drawingBufferHeight]);var it={gl:t,context:f,strings:e,next:tt,current:$,draw:h,elements:a,buffer:i,shader:c,attributes:u.state,uniforms:l,framebuffer:s,extensions:r,timer:d,isBufferArgs:Ut},at={primTypes:Be,compareFuncs:Va,blendFuncs:Ba,blendEquations:Z,stencilOps:Ha,glTypes:Ie,orientationType:Ga};de.optional(function(){it.isArrayLike=mt}),Q&&(at.backBuffer=[Sa],at.drawBuffer=J(n.maxDrawbuffers,function(t){return 0===t?[0]:J(t,function(t){return Na+t})}));var ot=0;return{next:tt,current:$,procs:function(){var e=y(),r=e.proc(\"poll\"),i=e.proc(\"refresh\"),a=e.block();r(a),i(a);var o=e.shared,s=o.gl,l=o.next,u=o.current;a(u,\".dirty=false;\"),C(e,r),C(e,i,null,!0);var c,h=t.getExtension(\"angle_instanced_arrays\");h&&(c=e.link(h));for(var f=0;f<n.maxAttributes;++f){var d=i.def(o.attributes,\"[\",f,\"]\"),p=e.cond(d,\".buffer\");p.then(s,\".enableVertexAttribArray(\",f,\");\",s,\".bindBuffer(\",Zi,\",\",d,\".buffer.buffer);\",s,\".vertexAttribPointer(\",f,\",\",d,\".size,\",d,\".type,\",d,\".normalized,\",d,\".stride,\",d,\".offset);\").else(s,\".disableVertexAttribArray(\",f,\");\",s,\".vertexAttrib4f(\",f,\",\",d,\".x,\",d,\".y,\",d,\".z,\",d,\".w);\",d,\".buffer=null;\"),i(p),h&&i(c,\".vertexAttribDivisorANGLE(\",f,\",\",d,\".divisor);\")}return Object.keys(rt).forEach(function(t){var n=rt[t],o=a.def(l,\".\",t),c=e.block();c(\"if(\",o,\"){\",s,\".enable(\",n,\")}else{\",s,\".disable(\",n,\")}\",u,\".\",t,\"=\",o,\";\"),i(c),r(\"if(\",o,\"!==\",u,\".\",t,\"){\",c,\"}\")}),Object.keys(nt).forEach(function(t){var n,o,c=nt[t],h=$[t],f=e.block();if(f(s,\".\",c,\"(\"),mt(h)){var d=h.length;n=e.global.def(l,\".\",t),o=e.global.def(u,\".\",t),f(J(d,function(t){return n+\"[\"+t+\"]\"}),\");\",J(d,function(t){return o+\"[\"+t+\"]=\"+n+\"[\"+t+\"];\"}).join(\"\")),r(\"if(\",J(d,function(t){return n+\"[\"+t+\"]!==\"+o+\"[\"+t+\"]\"}).join(\"||\"),\"){\",f,\"}\")}else n=a.def(l,\".\",t),o=a.def(u,\".\",t),f(n,\");\",u,\".\",t,\"=\",n,\";\"),r(\"if(\",n,\"!==\",o,\"){\",f,\"}\");i(f)}),e.compile()}(),compile:W}}function Xt(){return{bufferCount:0,elementsCount:0,framebufferCount:0,shaderCount:0,textureCount:0,cubeCount:0,renderbufferCount:0,maxTextureUnits:0}}function Zt(t,e){for(var r=0;r<t.length;++r)if(t[r]===e)return r;return-1}function Jt(t){function e(){if(0===q.length)return k&&k.update(),void(J=null);J=ge.next(e),f();for(var t=q.length-1;t>=0;--t){var r=q[t];r&&r(E,null,0)}g.flush(),k&&k.update()}function r(){!J&&q.length>0&&(J=ge.next(e))}function n(){J&&(ge.cancel(e),J=null)}function i(t){t.preventDefault(),b=!0,n(),G.forEach(function(t){t()})}function a(t){g.getError(),b=!1,x.restore(),O.restore(),z.restore(),R.restore(),F.restore(),j.restore(),k&&k.restore(),N.procs.refresh(),r(),Y.forEach(function(t){t()})}function o(){q.length=0,n(),H&&(H.removeEventListener(eo,i),H.removeEventListener(ro,a)),O.clear(),j.clear(),F.clear(),R.clear(),D.clear(),z.clear(),k&&k.clear(),Z.forEach(function(t){t()})}function s(t){function e(t){var e={},r={};return Object.keys(t).forEach(function(n){var i=t[n];ve.isDynamic(i)?r[n]=ve.unbox(i,n):e[n]=i}),{dynamic:r,static:e}}function r(t){for(;d.length<t;)d.push(null);return d}function n(t,e){var n;if(b&&de.raise(\"context lost\"),\"function\"==typeof t)return f.call(this,null,t,0);if(\"function\"==typeof e){if(\"number\"==typeof t){for(n=0;n<t;++n)f.call(this,null,e,n);return}if(Array.isArray(t)){for(n=0;n<t.length;++n)f.call(this,t[n],e,n);return}return f.call(this,t,e,0)}if(\"number\"==typeof t){if(t>0)return h.call(this,r(0|t),0|t)}else{if(!Array.isArray(t))return c.call(this,t);if(t.length)return h.call(this,t,t.length)}}de(!!t,\"invalid args to regl({...})\"),de.type(t,\"object\",\"invalid args to regl({...})\");var i=e(t.context||{}),a=e(t.uniforms||{}),o=e(t.attributes||{}),s=e(function(t){function e(t){if(t in r){var e=r[t];delete r[t],Object.keys(e).forEach(function(n){r[t+\".\"+n]=e[n]})}}var r=$t({},t);return delete r.uniforms,delete r.attributes,delete r.context,\"stencil\"in r&&r.stencil.op&&(r.stencil.opBack=r.stencil.opFront=r.stencil.op,delete r.stencil.op),e(\"blend\"),e(\"depth\"),e(\"cull\"),e(\"stencil\"),e(\"polygonOffset\"),e(\"scissor\"),e(\"sample\"),r}(t)),l={gpuTime:0,cpuTime:0,count:0},u=N.compile(s,o,a,i,l),c=u.draw,h=u.batch,f=u.scope,d=[];return $t(n,{stats:l})}function l(t,e){var r=0;N.procs.poll();var n=e.color;n&&(g.clearColor(+n[0]||0,+n[1]||0,+n[2]||0,+n[3]||0),r|=Ka),\"depth\"in e&&(g.clearDepth(+e.depth),r|=Qa),\"stencil\"in e&&(g.clearStencil(0|e.stencil),r|=$a),de(!!r,\"called regl.clear with no buffer specified\"),g.clear(r)}function u(t){if(de(\"object\"==typeof t&&t,\"regl.clear() takes an object as input\"),\"framebuffer\"in t)if(t.framebuffer&&\"framebufferCube\"===t.framebuffer_reglType)for(var e=0;e<6;++e)K($t({framebuffer:t.framebuffer.faces[e]},t),l);else K(t,l);else l(null,t)}function c(t){function e(){function e(){var t=Zt(q,e);q[t]=q[q.length-1],q.length-=1,q.length<=0&&n()}var r=Zt(q,t);de(r>=0,\"cannot cancel a frame twice\"),q[r]=e}return de.type(t,\"function\",\"regl.frame() callback must be a function\"),q.push(t),r(),{cancel:e}}function h(){var t=V.viewport,e=V.scissor_box;t[0]=t[1]=e[0]=e[1]=0,E.viewportWidth=E.framebufferWidth=E.drawingBufferWidth=t[2]=e[2]=g.drawingBufferWidth,E.viewportHeight=E.framebufferHeight=E.drawingBufferHeight=t[3]=e[3]=g.drawingBufferHeight}function f(){E.tick+=1,E.time=p(),h(),N.procs.poll()}function d(){h(),N.procs.refresh(),k&&k.update()}function p(){return(ye()-A)/1e3}function m(t,e){de.type(e,\"function\",\"listener callback must be a function\");var r;switch(t){case\"frame\":return c(e);case\"lost\":r=G;break;case\"restore\":r=Y;break;case\"destroy\":r=Z;break;default:de.raise(\"invalid event, must be one of frame,lost,restore,destroy\")}return r.push(e),{cancel:function(){for(var t=0;t<r.length;++t)if(r[t]===e)return r[t]=r[r.length-1],void r.pop()}}}var v=W(t);if(!v)return null;var g=v.gl,y=g.getContextAttributes(),b=g.isContextLost(),x=X(g,v);if(!x)return null;var _=B(),w=Xt(),M=x.extensions,k=Ja(g,M),A=ye(),T=g.drawingBufferWidth,S=g.drawingBufferHeight,E={tick:0,time:0,viewportWidth:T,viewportHeight:S,framebufferWidth:T,framebufferHeight:S,drawingBufferWidth:T,drawingBufferHeight:S,pixelRatio:v.pixelRatio},L={},C={elements:null,primitive:4,count:-1,offset:0,instances:-1},I=be(g,M),z=ft(g,w,v),D=dt(g,M,z,w),P=Ot(g,M,I,z,_),O=Rt(g,_,w,v),R=It(g,M,I,function(){N.procs.poll()},E,w,v),F=Mn(g,M,I,w,v),j=Dt(g,M,I,R,F,w),N=Wt(g,_,M,I,z,D,R,j,L,P,O,C,E,k,v),U=Ft(g,j,N.procs.poll,E,y,M),V=N.next,H=g.canvas,q=[],G=[],Y=[],Z=[v.onDestroy],J=null;H&&(H.addEventListener(eo,i,!1),H.addEventListener(ro,a,!1));var K=j.setFBO=s({framebuffer:ve.define.call(null,no,\"framebuffer\")});d();var Q=$t(s,{clear:u,prop:ve.define.bind(null,no),context:ve.define.bind(null,io),this:ve.define.bind(null,ao),draw:s({}),buffer:function(t){return z.create(t,to,!1,!1)},elements:function(t){return D.create(t,!1)},texture:R.create2D,cube:R.createCube,renderbuffer:F.create,framebuffer:j.create,framebufferCube:j.createCube,attributes:y,frame:c,on:m,limits:I,hasExtension:function(t){return I.extensions.indexOf(t.toLowerCase())>=0},read:U,destroy:o,_gl:g,_refresh:d,poll:function(){f(),k&&k.update()},now:p,stats:w});return v.onDone(null,Q),Q}var Kt={\"[object Int8Array]\":5120,\"[object Int16Array]\":5122,\"[object Int32Array]\":5124,\"[object Uint8Array]\":5121,\"[object Uint8ClampedArray]\":5121,\"[object Uint16Array]\":5123,\"[object Uint32Array]\":5125,\"[object Float32Array]\":5126,\"[object Float64Array]\":5121,\"[object ArrayBuffer]\":5121},Qt=function(t){return Object.prototype.toString.call(t)in Kt},$t=function(t,e){for(var r=Object.keys(e),n=0;n<r.length;++n)t[r[n]]=e[r[n]];return t},te=[\"gl\",\"canvas\",\"container\",\"attributes\",\"pixelRatio\",\"extensions\",\"optionalExtensions\",\"profile\",\"onDone\"],ee=33071,re=9728,ne=9984,ie=9985,ae=9986,oe=9987,se=5126,le=32819,ue=32820,ce=33635,he=34042,fe={};fe[5120]=fe[5121]=1,fe[5122]=fe[5123]=fe[36193]=fe[ce]=fe[le]=fe[ue]=2,fe[5124]=fe[5125]=fe[se]=fe[he]=4;var de=$t(r,{optional:S,raise:e,commandRaise:M,command:k,parameter:i,commandParameter:A,constructor:u,type:o,commandType:T,isTypedArray:a,nni:s,oneOf:l,shaderError:b,linkError:x,callSite:m,saveCommandRef:_,saveDrawInfo:w,framebufferFormat:E,guessCommand:p,texture2D:I,textureCube:z}),pe=0,me=0,ve={DynamicVariable:D,define:F,isDynamic:j,unbox:N,accessor:R},ge={next:\"function\"==typeof requestAnimationFrame?function(t){return requestAnimationFrame(t)}:function(t){return setTimeout(t,16)},cancel:\"function\"==typeof cancelAnimationFrame?function(t){return cancelAnimationFrame(t)}:clearTimeout},ye=\"undefined\"!=typeof performance&&performance.now?function(){return performance.now()}:function(){return+new Date},be=function(t,e){var r=1;e.ext_texture_filter_anisotropic&&(r=t.getParameter(34047));var n=1,i=1;return e.webgl_draw_buffers&&(n=t.getParameter(34852),i=t.getParameter(36063)),{colorBits:[t.getParameter(3410),t.getParameter(3411),t.getParameter(3412),t.getParameter(3413)],depthBits:t.getParameter(3414),stencilBits:t.getParameter(3415),subpixelBits:t.getParameter(3408),extensions:Object.keys(e).filter(function(t){return!!e[t]}),maxAnisotropic:r,maxDrawbuffers:n,maxColorAttachments:i,pointSizeDims:t.getParameter(33901),lineWidthDims:t.getParameter(33902),maxViewportDims:t.getParameter(3386),maxCombinedTextureUnits:t.getParameter(35661),maxCubeMapSize:t.getParameter(34076),maxRenderbufferSize:t.getParameter(34024),maxTextureUnits:t.getParameter(34930),maxTextureSize:t.getParameter(3379),maxAttributes:t.getParameter(34921),maxVertexUniforms:t.getParameter(36347),maxVertexTextureUnits:t.getParameter(35660),maxVaryingVectors:t.getParameter(36348),maxFragmentUniforms:t.getParameter(36349),glsl:t.getParameter(35724),renderer:t.getParameter(7937),vendor:t.getParameter(7936),version:t.getParameter(7938)}},xe=function(t){return Object.keys(t).map(function(e){return t[e]})},_e=5120,we=5121,Me=5122,ke=5123,Ae=5124,Te=5125,Se=5126,Ee=J(8,function(){return[]}),Le={alloc:$,free:tt,allocType:et,freeType:rt},Ce={shape:lt,flatten:st},Ie={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},ze={dynamic:35048,stream:35040,static:35044},De=Ce.flatten,Pe=Ce.shape,Oe=35044,Re=35040,Fe=5121,je=5126,Ne=[];Ne[5120]=1,Ne[5122]=2,Ne[5124]=4,Ne[5121]=1,Ne[5123]=2,Ne[5125]=4,Ne[5126]=4;var Be={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,\"line loop\":2,\"line strip\":3,\"triangle strip\":5,\"triangle fan\":6},Ue=0,Ve=1,He=4,qe=5120,Ge=5121,Ye=5122,We=5123,Xe=5124,Ze=5125,Je=34963,Ke=35040,Qe=35044,$e=new Float32Array(1),tr=new Uint32Array($e.buffer),er=5123,rr=34467,nr=3553,ir=34067,ar=34069,or=6408,sr=6406,lr=6407,ur=6409,cr=6410,hr=32854,fr=32855,dr=36194,pr=32819,mr=32820,vr=33635,gr=34042,yr=6402,br=34041,xr=35904,_r=35906,wr=36193,Mr=33776,kr=33777,Ar=33778,Tr=33779,Sr=35986,Er=35987,Lr=34798,Cr=35840,Ir=35841,zr=35842,Dr=35843,Pr=36196,Or=5121,Rr=5123,Fr=5125,jr=5126,Nr=10242,Br=10243,Ur=10497,Vr=33071,Hr=33648,qr=10240,Gr=10241,Yr=9728,Wr=9729,Xr=9984,Zr=9985,Jr=9986,Kr=9987,Qr=33170,$r=4352,tn=4353,en=4354,rn=34046,nn=3317,an=37440,on=37441,sn=37443,ln=37444,un=33984,cn=[Xr,Jr,Zr,Kr],hn=[0,ur,cr,lr,or],fn={};fn[ur]=fn[sr]=fn[yr]=1,fn[br]=fn[cr]=2,fn[lr]=fn[xr]=3,fn[or]=fn[_r]=4;var dn=vt(\"HTMLCanvasElement\"),pn=vt(\"CanvasRenderingContext2D\"),mn=vt(\"HTMLImageElement\"),vn=vt(\"HTMLVideoElement\"),gn=Object.keys(Kt).concat([dn,pn,mn,vn]),yn=[];yn[Or]=1,yn[jr]=4,yn[wr]=2,yn[Rr]=2,yn[Fr]=4;var bn=[];bn[hr]=2,bn[fr]=2,bn[dr]=2,bn[br]=4,bn[Mr]=.5,bn[kr]=.5,bn[Ar]=1,bn[Tr]=1,bn[Sr]=.5,bn[Er]=1,bn[Lr]=1,bn[Cr]=.5,bn[Ir]=.25,bn[zr]=.5,bn[Dr]=.25,bn[Pr]=.5;var xn=36161,_n=32854,wn=[];wn[_n]=2,wn[32855]=2,wn[36194]=2,wn[33189]=2,wn[36168]=1,wn[34041]=4,wn[35907]=4,wn[34836]=16,wn[34842]=8,wn[34843]=6;var Mn=function(t,e,r,n,i){function a(t){this.id=h++,this.refCount=1,this.renderbuffer=t,this.format=_n,this.width=0,this.height=0,i.profile&&(this.stats={size:0})}function o(e){var r=e.renderbuffer;de(r,\"must not double destroy renderbuffer\"),t.bindRenderbuffer(xn,null),t.deleteRenderbuffer(r),e.renderbuffer=null,e.refCount=0,delete f[e.id],n.renderbufferCount--}function s(e,o){function s(e,n){var a=0,o=0,l=_n;if(\"object\"==typeof e&&e){var f=e;if(\"shape\"in f){var d=f.shape;de(Array.isArray(d)&&d.length>=2,\"invalid renderbuffer shape\"),a=0|d[0],o=0|d[1]}else\"radius\"in f&&(a=o=0|f.radius),\"width\"in f&&(a=0|f.width),\"height\"in f&&(o=0|f.height);\"format\"in f&&(de.parameter(f.format,u,\"invalid renderbuffer format\"),l=u[f.format])}else\"number\"==typeof e?(a=0|e,o=\"number\"==typeof n?0|n:a):e?de.raise(\"invalid arguments to renderbuffer constructor\"):a=o=1;if(de(a>0&&o>0&&a<=r.maxRenderbufferSize&&o<=r.maxRenderbufferSize,\"invalid renderbuffer size\"),a!==h.width||o!==h.height||l!==h.format)return s.width=h.width=a,s.height=h.height=o,h.format=l,t.bindRenderbuffer(xn,h.renderbuffer),t.renderbufferStorage(xn,l,a,o),i.profile&&(h.stats.size=zt(h.format,h.width,h.height)),s.format=c[h.format],s}function l(e,n){var a=0|e,o=0|n||a;return a===h.width&&o===h.height?s:(de(a>0&&o>0&&a<=r.maxRenderbufferSize&&o<=r.maxRenderbufferSize,\"invalid renderbuffer size\"),s.width=h.width=a,s.height=h.height=o,t.bindRenderbuffer(xn,h.renderbuffer),t.renderbufferStorage(xn,h.format,a,o),i.profile&&(h.stats.size=zt(h.format,h.width,h.height)),s)}var h=new a(t.createRenderbuffer());return f[h.id]=h,n.renderbufferCount++,s(e,o),s.resize=l,s._reglType=\"renderbuffer\",s._renderbuffer=h,i.profile&&(s.stats=h.stats),s.destroy=function(){h.decRef()},s}function l(){xe(f).forEach(function(e){e.renderbuffer=t.createRenderbuffer(),t.bindRenderbuffer(xn,e.renderbuffer),t.renderbufferStorage(xn,e.format,e.width,e.height)}),t.bindRenderbuffer(xn,null)}var u={rgba4:_n,rgb565:36194,\"rgb5 a1\":32855,depth:33189,stencil:36168,\"depth stencil\":34041};e.ext_srgb&&(u.srgba=35907),e.ext_color_buffer_half_float&&(u.rgba16f=34842,u.rgb16f=34843),e.webgl_color_buffer_float&&(u.rgba32f=34836);var c=[];Object.keys(u).forEach(function(t){var e=u[t];c[e]=t});var h=0,f={};return a.prototype.decRef=function(){--this.refCount<=0&&o(this)},i.profile&&(n.getTotalRenderbufferSize=function(){var t=0;return Object.keys(f).forEach(function(e){t+=f[e].stats.size}),t}),{create:s,clear:function(){xe(f).forEach(o)},restore:l}},kn=36160,An=36161,Tn=3553,Sn=34069,En=36064,Ln=36096,Cn=36128,In=33306,zn=36053,Dn=6402,Pn=[6408],On=[];On[6408]=4;var Rn=[];Rn[5121]=1,Rn[5126]=4,Rn[36193]=2;var Fn=33189,jn=36168,Nn=34041,Bn=[32854,32855,36194,35907,34842,34843,34836],Un={};Un[zn]=\"complete\",Un[36054]=\"incomplete attachment\",Un[36057]=\"incomplete dimensions\",Un[36055]=\"incomplete, missing attachment\",Un[36061]=\"unsupported\";var Vn=5126,Hn=35632,qn=35633,Gn=35718,Yn=35721,Wn=6408,Xn=5121,Zn=3333,Jn=5126,Kn=\"xyzw\".split(\"\"),Qn=5121,$n=1,ti=2,ei=0,ri=1,ni=2,ii=3,ai=4,oi=\"dither\",si=\"blend.enable\",li=\"blend.color\",ui=\"blend.equation\",ci=\"blend.func\",hi=\"depth.enable\",fi=\"depth.func\",di=\"depth.range\",pi=\"depth.mask\",mi=\"colorMask\",vi=\"cull.enable\",gi=\"cull.face\",yi=\"frontFace\",bi=\"lineWidth\",xi=\"polygonOffset.enable\",_i=\"polygonOffset.offset\",wi=\"sample.alpha\",Mi=\"sample.enable\",ki=\"sample.coverage\",Ai=\"stencil.enable\",Ti=\"stencil.mask\",Si=\"stencil.func\",Ei=\"stencil.opFront\",Li=\"stencil.opBack\",Ci=\"scissor.enable\",Ii=\"scissor.box\",zi=\"viewport\",Di=\"profile\",Pi=\"framebuffer\",Oi=\"vert\",Ri=\"frag\",Fi=\"elements\",ji=\"primitive\",Ni=\"count\",Bi=\"offset\",Ui=\"instances\",Vi=Pi+\"Width\",Hi=Pi+\"Height\",qi=zi+\"Width\",Gi=zi+\"Height\",Yi=\"drawingBufferWidth\",Wi=\"drawingBufferHeight\",Xi=[ci,ui,Si,Ei,Li,ki,zi,Ii,_i],Zi=34962,Ji=34963,Ki=3553,Qi=34067,$i=2884,ta=3042,ea=3024,ra=2960,na=2929,ia=3089,aa=32823,oa=32926,sa=32928,la=5126,ua=35664,ca=35665,ha=35666,fa=5124,da=35667,pa=35668,ma=35669,va=35670,ga=35671,ya=35672,ba=35673,xa=35674,_a=35675,wa=35676,Ma=35678,ka=35680,Aa=4,Ta=1028,Sa=1029,Ea=2304,La=2305,Ca=32775,Ia=32776,za=519,Da=7680,Pa=0,Oa=1,Ra=32774,Fa=513,ja=36160,Na=36064,Ba={0:0,1:1,zero:0,one:1,\"src color\":768,\"one minus src color\":769,\"src alpha\":770,\"one minus src alpha\":771,\"dst color\":774,\"one minus dst color\":775,\"dst alpha\":772,\"one minus dst alpha\":773,\"constant color\":32769,\"one minus constant color\":32770,\"constant alpha\":32771,\"one minus constant alpha\":32772,\"src alpha saturate\":776},Ua=[\"constant color, constant alpha\",\"one minus constant color, constant alpha\",\"constant color, one minus constant alpha\",\"one minus constant color, one minus constant alpha\",\"constant alpha, constant color\",\"constant alpha, one minus constant color\",\"one minus constant alpha, constant color\",\"one minus constant alpha, one minus constant color\"],Va={never:512,less:513,\"<\":513,equal:514,\"=\":514,\"==\":514,\"===\":514,lequal:515,\"<=\":515,greater:516,\">\":516,notequal:517,\"!=\":517,\"!==\":517,gequal:518,\">=\":518,always:519},Ha={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,\"increment wrap\":34055,\"decrement wrap\":34056,invert:5386},qa={frag:35632,vert:35633},Ga={cw:Ea,ccw:La},Ya=new Ht(!1,!1,!1,function(){}),Wa=34918,Xa=34919,Za=35007,Ja=function(t,e){function r(){return f.pop()||h.createQueryEXT()}function n(t){f.push(t)}function i(t){var e=r();h.beginQueryEXT(Za,e),d.push(e),u(d.length-1,d.length,t)}function a(){h.endQueryEXT(Za)}function o(){this.startQueryIndex=-1,this.endQueryIndex=-1,this.sum=0,this.stats=null}function s(){return p.pop()||new o}function l(t){p.push(t)}function u(t,e,r){var n=s();n.startQueryIndex=t,n.endQueryIndex=e,n.sum=0,n.stats=r,m.push(n)}function c(){var t,e,r=d.length;if(0!==r){g.length=Math.max(g.length,r+1),v.length=Math.max(v.length,r+1),v[0]=0,g[0]=0;var i=0;for(t=0,e=0;e<d.length;++e){var a=d[e];h.getQueryObjectEXT(a,Xa)?(i+=h.getQueryObjectEXT(a,Wa),n(a)):d[t++]=a,v[e+1]=i,g[e+1]=t}for(d.length=t,t=0,e=0;e<m.length;++e){var o=m[e],s=o.startQueryIndex,u=o.endQueryIndex;o.sum+=v[u]-v[s];var c=g[s],f=g[u];f===c?(o.stats.gpuTime+=o.sum/1e6,l(o)):(o.startQueryIndex=c,o.endQueryIndex=f,m[t++]=o)}m.length=t}}var h=e.ext_disjoint_timer_query;if(!h)return null;var f=[],d=[],p=[],m=[],v=[],g=[];return{beginQuery:i,endQuery:a,pushScopeStats:u,update:c,getNumPendingQueries:function(){return d.length},clear:function(){f.push.apply(f,d);for(var t=0;t<f.length;t++)h.deleteQueryEXT(f[t]);d.length=0,f.length=0},restore:function(){d.length=0,f.length=0}}},Ka=16384,Qa=256,$a=1024,to=34962,eo=\"webglcontextlost\",ro=\"webglcontextrestored\",no=1,io=2,ao=3;return Jt})},{}],500:[function(t,e,r){\"use strict\";function n(t,e){if(\"string\"!=typeof t)throw new TypeError(\"expected a string\");if(1===e)return t;if(2===e)return t+t;var r=t.length*e;if(i!==t||void 0===i)i=t,a=\"\";else if(a.length>=r)return a.substr(0,r);for(;r>a.length&&e>1;)1&e&&(a+=t),e>>=1,t+=t;return a+=t,a=a.substr(0,r)}var i,a=\"\";e.exports=n},{}],501:[function(e,r,n){!function(e,i){\"function\"==typeof t&&t.amd?t(i):\"object\"==typeof n?r.exports=i():e.resolveUrl=i()}(this,function(){function t(){var t=arguments.length;if(0===t)throw new Error(\"resolveUrl requires at least one argument; got none.\");var e=document.createElement(\"base\");if(e.href=arguments[0],1===t)return e.href;var r=document.getElementsByTagName(\"head\")[0];r.insertBefore(e,r.firstChild);for(var n,i=document.createElement(\"a\"),a=1;a<t;a++)i.href=arguments[a],n=i.href,e.href=n;return r.removeChild(e),n}return t})},{}],502:[function(t,e,r){(function(t){e.exports=t.performance&&t.performance.now?function(){return performance.now()}:Date.now||function(){return+new Date}}).call(this,\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{}],503:[function(t,e,r){\"use strict\";function n(t){for(var e=t.length,r=t[t.length-1],n=e,i=e-2;i>=0;--i){var a=r,o=t[i];r=a+o;var s=r-a,l=o-s;l&&(t[--n]=r,r=l)}for(var u=0,i=n;i<e;++i){var a=t[i],o=r;r=a+o;var s=r-a,l=o-s;l&&(t[u++]=l)}return t[u++]=r,t.length=u,t}e.exports=n},{}],504:[function(t,e,r){\"use strict\";function n(t,e){for(var r=new Array(t.length-1),n=1;n<t.length;++n)for(var i=r[n-1]=new Array(t.length-1),a=0,o=0;a<t.length;++a)a!==e&&(i[o++]=t[n][a]);return r}function i(t){for(var e=new Array(t),r=0;r<t;++r){e[r]=new Array(t);for(var n=0;n<t;++n)e[r][n]=[\"m[\",r,\"][\",n,\"]\"].join(\"\")}return e}function a(t){return 1&t?\"-\":\"\"}function o(t){if(1===t.length)return t[0];if(2===t.length)return[\"sum(\",t[0],\",\",t[1],\")\"].join(\"\");var e=t.length>>1;return[\"sum(\",o(t.slice(0,e)),\",\",o(t.slice(e)),\")\"].join(\"\")}function s(t){if(2===t.length)return[\"sum(prod(\",t[0][0],\",\",t[1][1],\"),prod(-\",t[0][1],\",\",t[1][0],\"))\"].join(\"\");for(var e=[],r=0;r<t.length;++r)e.push([\"scale(\",s(n(t,r)),\",\",a(r),t[0][r],\")\"].join(\"\"));return o(e)}function l(t){return new Function(\"sum\",\"scale\",\"prod\",\"compress\",[\"function robustDeterminant\",t,\"(m){return compress(\",s(i(t)),\")};return robustDeterminant\",t].join(\"\"))(c,h,u,f)}var u=t(\"two-product\"),c=t(\"robust-sum\"),h=t(\"robust-scale\"),f=t(\"robust-compress\"),d=6,p=[function(){return[0]},function(t){return[t[0][0]]}];!function(){for(;p.length<d;)p.push(l(p.length));for(var t=[],r=[\"function robustDeterminant(m){switch(m.length){\"],n=0;n<d;++n)t.push(\"det\"+n),r.push(\"case \",n,\":return det\",n,\"(m);\");r.push(\"}var det=CACHE[m.length];if(!det)det=CACHE[m.length]=gen(m.length);return det(m);}return robustDeterminant\"),t.push(\"CACHE\",\"gen\",r.join(\"\"));var i=Function.apply(void 0,t);e.exports=i.apply(void 0,p.concat([p,l]));for(var n=0;n<p.length;++n)e.exports[n]=p[n]}()},{\"robust-compress\":503,\"robust-scale\":510,\"robust-sum\":513,\"two-product\":539}],505:[function(t,e,r){\"use strict\";function n(t,e){for(var r=i(t[0],e[0]),n=1;n<t.length;++n)r=a(r,i(t[n],e[n]));return r}var i=t(\"two-product\"),a=t(\"robust-sum\");e.exports=n},{\"robust-sum\":513,\"two-product\":539}],506:[function(t,e,r){\"use strict\";function n(t,e){for(var r=new Array(t.length-1),n=1;n<t.length;++n)for(var i=r[n-1]=new Array(t.length-1),a=0,o=0;a<t.length;++a)a!==e&&(i[o++]=t[n][a]);return r}function i(t){for(var e=new Array(t),r=0;r<t;++r){e[r]=new Array(t);for(var n=0;n<t;++n)e[r][n]=[\"m\",n,\"[\",t-r-2,\"]\"].join(\"\")}return e}function a(t){if(1===t.length)return t[0];if(2===t.length)return[\"sum(\",t[0],\",\",t[1],\")\"].join(\"\");var e=t.length>>1;return[\"sum(\",a(t.slice(0,e)),\",\",a(t.slice(e)),\")\"].join(\"\")}function o(t,e){if(\"m\"===t.charAt(0)){if(\"w\"===e.charAt(0)){var r=t.split(\"[\");return[\"w\",e.substr(1),\"m\",r[0].substr(1)].join(\"\")}return[\"prod(\",t,\",\",e,\")\"].join(\"\")}return o(e,t)}function s(t){return!0&t?\"-\":\"\"}function l(t){if(2===t.length)return[[\"diff(\",o(t[0][0],t[1][1]),\",\",o(t[1][0],t[0][1]),\")\"].join(\"\")];for(var e=[],r=0;r<t.length;++r)e.push([\"scale(\",a(l(n(t,r))),\",\",s(r),t[0][r],\")\"].join(\"\"));return e}function u(t,e){for(var r=[],n=0;n<e-2;++n)r.push([\"prod(m\",t,\"[\",n,\"],m\",t,\"[\",n,\"])\"].join(\"\"));return a(r)}function c(t){for(var e=[],r=[],o=i(t),s=0;s<t;++s)o[0][s]=\"1\",o[t-1][s]=\"w\"+s;for(var s=0;s<t;++s)0==(1&s)?e.push.apply(e,l(n(o,s))):r.push.apply(r,l(n(o,s)));for(var c=a(e),h=a(r),f=\"exactInSphere\"+t,d=[],s=0;s<t;++s)d.push(\"m\"+s);for(var p=[\"function \",f,\"(\",d.join(),\"){\"],s=0;s<t;++s){p.push(\"var w\",s,\"=\",u(s,t),\";\");for(var b=0;b<t;++b)b!==s&&p.push(\"var w\",s,\"m\",b,\"=scale(w\",s,\",m\",b,\"[0]);\")}return p.push(\"var p=\",c,\",n=\",h,\",d=diff(p,n);return d[d.length-1];}return \",f),new Function(\"sum\",\"diff\",\"prod\",\"scale\",p.join(\"\"))(v,g,m,y)}function h(){return 0}function f(){return 0}function d(){return 0}function p(t){var e=x[t.length];return e||(e=x[t.length]=c(t.length)),e.apply(void 0,t)}var m=t(\"two-product\"),v=t(\"robust-sum\"),g=t(\"robust-subtract\"),y=t(\"robust-scale\"),b=6,x=[h,f,d];!function(){for(;x.length<=b;)x.push(c(x.length));for(var t=[],r=[\"slow\"],n=0;n<=b;++n)t.push(\"a\"+n),r.push(\"o\"+n);for(var i=[\"function testInSphere(\",t.join(),\"){switch(arguments.length){case 0:case 1:return 0;\"],n=2;n<=b;++n)i.push(\"case \",n,\":return o\",n,\"(\",t.slice(0,n).join(),\");\");i.push(\"}var s=new Array(arguments.length);for(var i=0;i<arguments.length;++i){s[i]=arguments[i]};return slow(s);}return testInSphere\"),r.push(i.join(\"\"));var a=Function.apply(void 0,r);e.exports=a.apply(void 0,[p].concat(x));for(var n=0;n<=b;++n)e.exports[n]=x[n]}()},{\"robust-scale\":510,\"robust-subtract\":512,\"robust-sum\":513,\"two-product\":539}],507:[function(t,e,r){\"use strict\";function n(t){for(var e=\"robustLinearSolve\"+t+\"d\",r=[\"function \",e,\"(A,b){return [\"],n=0;n<t;++n){r.push(\"det([\");for(var i=0;i<t;++i){i>0&&r.push(\",\"),r.push(\"[\");for(var a=0;a<t;++a)a>0&&r.push(\",\"),a===n?r.push(\"+b[\",i,\"]\"):r.push(\"+A[\",i,\"][\",a,\"]\");r.push(\"]\")}r.push(\"]),\")}r.push(\"det(A)]}return \",e);var s=new Function(\"det\",r.join(\"\"));return s(t<6?o[t]:o)}function i(){return[0]}function a(t,e){return[[e[0]],[t[0][0]]]}var o=t(\"robust-determinant\"),s=6,l=[i,a];!function(){for(;l.length<s;)l.push(n(l.length));for(var t=[],r=[\"function dispatchLinearSolve(A,b){switch(A.length){\"],i=0;i<s;++i)t.push(\"s\"+i),r.push(\"case \",i,\":return s\",i,\"(A,b);\");r.push(\"}var s=CACHE[A.length];if(!s)s=CACHE[A.length]=g(A.length);return s(A,b)}return dispatchLinearSolve\"),t.push(\"CACHE\",\"g\",r.join(\"\"));var a=Function.apply(void 0,t);e.exports=a.apply(void 0,l.concat([l,n]));for(var i=0;i<s;++i)e.exports[i]=l[i]}()},{\"robust-determinant\":504}],508:[function(t,e,r){\"use strict\";function n(t,e){for(var r=new Array(t.length-1),n=1;n<t.length;++n)for(var i=r[n-1]=new Array(t.length-1),a=0,o=0;a<t.length;++a)a!==e&&(i[o++]=t[n][a]);return r}function i(t){for(var e=new Array(t),r=0;r<t;++r){e[r]=new Array(t);for(var n=0;n<t;++n)e[r][n]=[\"m\",n,\"[\",t-r-1,\"]\"].join(\"\")}return e}function a(t){return 1&t?\"-\":\"\"}function o(t){if(1===t.length)return t[0];if(2===t.length)return[\"sum(\",t[0],\",\",t[1],\")\"].join(\"\");var e=t.length>>1;return[\"sum(\",o(t.slice(0,e)),\",\",o(t.slice(e)),\")\"].join(\"\")}function s(t){if(2===t.length)return[[\"sum(prod(\",t[0][0],\",\",t[1][1],\"),prod(-\",t[0][1],\",\",t[1][0],\"))\"].join(\"\")];for(var e=[],r=0;r<t.length;++r)e.push([\"scale(\",o(s(n(t,r))),\",\",a(r),t[0][r],\")\"].join(\"\"));return e}function l(t){for(var e=[],r=[],a=i(t),l=[],u=0;u<t;++u)0==(1&u)?e.push.apply(e,s(n(a,u))):r.push.apply(r,s(n(a,u))),l.push(\"m\"+u);var p=o(e),m=o(r),v=\"orientation\"+t+\"Exact\",g=[\"function \",v,\"(\",l.join(),\"){var p=\",p,\",n=\",m,\",d=sub(p,n);return d[d.length-1];};return \",v].join(\"\");return new Function(\"sum\",\"prod\",\"scale\",\"sub\",g)(h,c,f,d)}function u(t){var e=g[t.length];return e||(e=g[t.length]=l(t.length)),e.apply(void 0,t)}var c=t(\"two-product\"),h=t(\"robust-sum\"),f=t(\"robust-scale\"),d=t(\"robust-subtract\"),p=5,m=l(3),v=l(4),g=[function(){return 0},function(){return 0},function(t,e){return e[0]-t[0]},function(t,e,r){var n,i=(t[1]-r[1])*(e[0]-r[0]),a=(t[0]-r[0])*(e[1]-r[1]),o=i-a;if(i>0){if(a<=0)return o;n=i+a}else{if(!(i<0))return o;if(a>=0)return o;n=-(i+a)}var s=3.3306690738754716e-16*n;return o>=s||o<=-s?o:m(t,e,r)},function(t,e,r,n){var i=t[0]-n[0],a=e[0]-n[0],o=r[0]-n[0],s=t[1]-n[1],l=e[1]-n[1],u=r[1]-n[1],c=t[2]-n[2],h=e[2]-n[2],f=r[2]-n[2],d=a*u,p=o*l,m=o*s,g=i*u,y=i*l,b=a*s,x=c*(d-p)+h*(m-g)+f*(y-b),_=(Math.abs(d)+Math.abs(p))*Math.abs(c)+(Math.abs(m)+Math.abs(g))*Math.abs(h)+(Math.abs(y)+Math.abs(b))*Math.abs(f),w=7.771561172376103e-16*_;return x>w||-x>w?x:v(t,e,r,n)}];!function(){for(;g.length<=p;)g.push(l(g.length));for(var t=[],r=[\"slow\"],n=0;n<=p;++n)t.push(\"a\"+n),r.push(\"o\"+n);for(var i=[\"function getOrientation(\",t.join(),\"){switch(arguments.length){case 0:case 1:return 0;\"],n=2;n<=p;++n)i.push(\"case \",n,\":return o\",n,\"(\",t.slice(0,n).join(),\");\");i.push(\"}var s=new Array(arguments.length);for(var i=0;i<arguments.length;++i){s[i]=arguments[i]};return slow(s);}return getOrientation\"),r.push(i.join(\"\"));var a=Function.apply(void 0,r);e.exports=a.apply(void 0,[u].concat(g));for(var n=0;n<=p;++n)e.exports[n]=g[n]}()},{\"robust-scale\":510,\"robust-subtract\":512,\"robust-sum\":513,\"two-product\":539}],509:[function(t,e,r){\"use strict\";function n(t,e){if(1===t.length)return a(e,t[0]);if(1===e.length)return a(t,e[0]);if(0===t.length||0===e.length)return[0];var r=[0];if(t.length<e.length)for(var n=0;n<t.length;++n)r=i(r,a(e,t[n]));else for(var n=0;n<e.length;++n)r=i(r,a(t,e[n]));return r}var i=t(\"robust-sum\"),a=t(\"robust-scale\");e.exports=n},{\"robust-scale\":510,\"robust-sum\":513}],\n", "510:[function(t,e,r){\"use strict\";function n(t,e){var r=t.length;if(1===r){var n=i(t[0],e);return n[0]?n:[n[1]]}var o=new Array(2*r),s=[.1,.1],l=[.1,.1],u=0;i(t[0],e,s),s[0]&&(o[u++]=s[0]);for(var c=1;c<r;++c){i(t[c],e,l);var h=s[1];a(h,l[0],s),s[0]&&(o[u++]=s[0]);var f=l[1],d=s[1],p=f+d,m=p-f,v=d-m;s[1]=p,v&&(o[u++]=v)}return s[1]&&(o[u++]=s[1]),0===u&&(o[u++]=0),o.length=u,o}var i=t(\"two-product\"),a=t(\"two-sum\");e.exports=n},{\"two-product\":539,\"two-sum\":540}],511:[function(t,e,r){\"use strict\";function n(t,e,r,n){for(var i=0;i<2;++i){var a=t[i],o=e[i],s=Math.min(a,o),l=Math.max(a,o),u=r[i],c=n[i],h=Math.min(u,c);if(Math.max(u,c)<s||l<h)return!1}return!0}function i(t,e,r,i){var o=a(t,r,i),s=a(e,r,i);if(o>0&&s>0||o<0&&s<0)return!1;var l=a(r,t,e),u=a(i,t,e);return!(l>0&&u>0||l<0&&u<0)&&(0!==o||0!==s||0!==l||0!==u||n(t,e,r,i))}e.exports=i;var a=t(\"robust-orientation\")[3]},{\"robust-orientation\":508}],512:[function(t,e,r){\"use strict\";function n(t,e){var r=t+e,n=r-t,i=r-n,a=e-n,o=t-i,s=o+a;return s?[s,r]:[r]}function i(t,e){var r=0|t.length,i=0|e.length;if(1===r&&1===i)return n(t[0],-e[0]);var a,o,s=r+i,l=new Array(s),u=0,c=0,h=0,f=Math.abs,d=t[c],p=f(d),m=-e[h],v=f(m);p<v?(o=d,(c+=1)<r&&(d=t[c],p=f(d))):(o=m,(h+=1)<i&&(m=-e[h],v=f(m))),c<r&&p<v||h>=i?(a=d,(c+=1)<r&&(d=t[c],p=f(d))):(a=m,(h+=1)<i&&(m=-e[h],v=f(m)));for(var g,y,b,x,_,w=a+o,M=w-a,k=o-M,A=k,T=w;c<r&&h<i;)p<v?(a=d,(c+=1)<r&&(d=t[c],p=f(d))):(a=m,(h+=1)<i&&(m=-e[h],v=f(m))),o=A,w=a+o,M=w-a,k=o-M,k&&(l[u++]=k),g=T+w,y=g-T,b=g-y,x=w-y,_=T-b,A=_+x,T=g;for(;c<r;)a=d,o=A,w=a+o,M=w-a,k=o-M,k&&(l[u++]=k),g=T+w,y=g-T,b=g-y,x=w-y,_=T-b,A=_+x,T=g,(c+=1)<r&&(d=t[c]);for(;h<i;)a=m,o=A,w=a+o,M=w-a,k=o-M,k&&(l[u++]=k),g=T+w,y=g-T,b=g-y,x=w-y,_=T-b,A=_+x,T=g,(h+=1)<i&&(m=-e[h]);return A&&(l[u++]=A),T&&(l[u++]=T),u||(l[u++]=0),l.length=u,l}e.exports=i},{}],513:[function(t,e,r){\"use strict\";function n(t,e){var r=t+e,n=r-t,i=r-n,a=e-n,o=t-i,s=o+a;return s?[s,r]:[r]}function i(t,e){var r=0|t.length,i=0|e.length;if(1===r&&1===i)return n(t[0],e[0]);var a,o,s=r+i,l=new Array(s),u=0,c=0,h=0,f=Math.abs,d=t[c],p=f(d),m=e[h],v=f(m);p<v?(o=d,(c+=1)<r&&(d=t[c],p=f(d))):(o=m,(h+=1)<i&&(m=e[h],v=f(m))),c<r&&p<v||h>=i?(a=d,(c+=1)<r&&(d=t[c],p=f(d))):(a=m,(h+=1)<i&&(m=e[h],v=f(m)));for(var g,y,b,x,_,w=a+o,M=w-a,k=o-M,A=k,T=w;c<r&&h<i;)p<v?(a=d,(c+=1)<r&&(d=t[c],p=f(d))):(a=m,(h+=1)<i&&(m=e[h],v=f(m))),o=A,w=a+o,M=w-a,k=o-M,k&&(l[u++]=k),g=T+w,y=g-T,b=g-y,x=w-y,_=T-b,A=_+x,T=g;for(;c<r;)a=d,o=A,w=a+o,M=w-a,k=o-M,k&&(l[u++]=k),g=T+w,y=g-T,b=g-y,x=w-y,_=T-b,A=_+x,T=g,(c+=1)<r&&(d=t[c]);for(;h<i;)a=m,o=A,w=a+o,M=w-a,k=o-M,k&&(l[u++]=k),g=T+w,y=g-T,b=g-y,x=w-y,_=T-b,A=_+x,T=g,(h+=1)<i&&(m=e[h]);return A&&(l[u++]=A),T&&(l[u++]=T),u||(l[u++]=0),l.length=u,l}e.exports=i},{}],514:[function(e,r,n){!function(e,i){\"object\"==typeof n&&void 0!==r?r.exports=i():\"function\"==typeof t&&t.amd?t(i):e.ShelfPack=i()}(this,function(){function t(t,e,r){r=r||{},this.w=t||64,this.h=e||64,this.autoResize=!!r.autoResize,this.shelves=[],this.stats={},this.count=function(t){this.stats[t]=1+(0|this.stats[t])}}function e(t,e,r){this.x=0,this.y=t,this.w=this.free=e,this.h=r}return t.prototype.pack=function(t,e){t=[].concat(t),e=e||{};for(var r,n,i,a=[],o=0;o<t.length;o++)if(r=t[o].w||t[o].width,n=t[o].h||t[o].height,r&&n){if(!(i=this.packOne(r,n)))continue;e.inPlace&&(t[o].x=i.x,t[o].y=i.y),a.push(i)}if(this.shelves.length>0){for(var s=0,l=0,u=0;u<this.shelves.length;u++){var c=this.shelves[u];l+=c.h,s=Math.max(c.w-c.free,s)}this.resize(s,l)}return a},t.prototype.packOne=function(t,r){for(var n,i,a=0,o={shelf:-1,waste:1/0},s=0;s<this.shelves.length;s++){if(n=this.shelves[s],a+=n.h,r===n.h&&t<=n.free)return this.count(r),n.alloc(t,r);r>n.h||t>n.free||r<n.h&&t<=n.free&&(i=n.h-r)<o.waste&&(o.waste=i,o.shelf=s)}if(-1!==o.shelf)return n=this.shelves[o.shelf],this.count(r),n.alloc(t,r);if(r<=this.h-a&&t<=this.w)return n=new e(a,this.w,r),this.shelves.push(n),this.count(r),n.alloc(t,r);if(this.autoResize){var l,u,c,h;return l=u=this.h,c=h=this.w,(c<=l||t>c)&&(h=2*Math.max(t,c)),(l<c||r>l)&&(u=2*Math.max(r,l)),this.resize(h,u),this.packOne(t,r)}return null},t.prototype.clear=function(){this.shelves=[],this.stats={}},t.prototype.resize=function(t,e){this.w=t,this.h=e;for(var r=0;r<this.shelves.length;r++)this.shelves[r].resize(t);return!0},e.prototype.alloc=function(t,e){if(t>this.free||e>this.h)return null;var r=this.x;return this.x+=t,this.free-=t,{x:r,y:this.y,w:t,h:e,width:t,height:e}},e.prototype.resize=function(t){return this.free+=t-this.w,this.w=t,!0},t})},{}],515:[function(t,e,r){\"use strict\";e.exports=function(t){return t<0?-1:t>0?1:0}},{}],516:[function(t,e,r){\"use strict\";function n(t){return a(i(t))}e.exports=n;var i=t(\"boundary-cells\"),a=t(\"reduce-simplicial-complex\")},{\"boundary-cells\":69,\"reduce-simplicial-complex\":498}],517:[function(t,e,r){\"use strict\";function n(t){for(var e=t.length,r=0,n=0;n<e;++n)r=0|Math.max(r,t[n].length);return r-1}function i(t,e){for(var r=t.length,n=h.mallocUint8(r),i=0;i<r;++i)n[i]=t[i]<e|0;return n}function a(t,e){for(var r=t.length,n=e*(e+1)/2*r|0,i=h.mallocUint32(2*n),a=0,o=0;o<r;++o)for(var s=t[o],e=s.length,l=0;l<e;++l)for(var u=0;u<l;++u){var d=s[u],p=s[l];i[a++]=0|Math.min(d,p),i[a++]=0|Math.max(d,p)}f(c(i,[a/2|0,2]));for(var m=2,o=2;o<a;o+=2)i[o-2]===i[o]&&i[o-1]===i[o+1]||(i[m++]=i[o],i[m++]=i[o+1]);return c(i,[m/2|0,2])}function o(t,e,r,n){for(var i=t.data,a=t.shape[0],o=h.mallocDouble(a),s=0,l=0;l<a;++l){var u=i[2*l],f=i[2*l+1];if(r[u]!==r[f]){var d=e[u],p=e[f];i[2*s]=u,i[2*s+1]=f,o[s++]=(p-n)/(p-d)}}return t.shape[0]=s,c(o,[s])}function s(t,e){var r=h.mallocInt32(2*e),n=t.shape[0],i=t.data;r[0]=0;for(var a=0,o=0;o<n;++o){var s=i[2*o];if(s!==a){for(r[2*a+1]=o;++a<s;)r[2*a]=o,r[2*a+1]=o;r[2*a]=o}}for(r[2*a+1]=n;++a<e;)r[2*a]=r[2*a+1]=n;return r}function l(t){for(var e=0|t.shape[0],r=t.data,n=new Array(e),i=0;i<e;++i)n[i]=[r[2*i],r[2*i+1]];return n}function u(t,e,r,u){if(r=r||0,void 0===u&&(u=n(t)),0===t.length||u<1)return{cells:[],vertexIds:[],vertexWeights:[]};var c=i(e,+r),f=a(t,u),p=o(f,e,c,+r),m=s(f,0|e.length),v=d(u)(t,f.data,m,c),g=l(f),y=[].slice.call(p.data,0,p.shape[0]);return h.free(c),h.free(f.data),h.free(p.data),h.free(m),{cells:v,vertexIds:g,vertexWeights:y}}e.exports=u;var c=t(\"ndarray\"),h=t(\"typedarray-pool\"),f=t(\"ndarray-sort\"),d=t(\"./lib/codegen\")},{\"./lib/codegen\":518,ndarray:467,\"ndarray-sort\":465,\"typedarray-pool\":541}],518:[function(t,e,r){\"use strict\";function n(t){var e=0,r=new Array(t+1);r[0]=[[]];for(var n=1;n<=t;++n)for(var i=r[n]=o(n),s=0;s<i.length;++s)e=Math.max(e,i[n].length);for(var l=[\"function B(C,E,i,j){\",\"var a=Math.min(i,j)|0,b=Math.max(i,j)|0,l=C[2*a],h=C[2*a+1];\",\"while(l<h){\",\"var m=(l+h)>>1,v=E[2*m+1];\",\"if(v===b){return m}\",\"if(b<v){h=m}else{l=m+1}\",\"}\",\"return l;\",\"};\",\"function getContour\",t,\"d(F,E,C,S){\",\"var n=F.length,R=[];\",\"for(var i=0;i<n;++i){var c=F[i],l=c.length;\"],n=t+1;n>1;--n){n<t+1&&l.push(\"else \"),l.push(\"if(l===\",n,\"){\");for(var u=[],s=0;s<n;++s)u.push(\"(S[c[\"+s+\"]]<<\"+s+\")\");l.push(\"var M=\",u.join(\"+\"),\";if(M===0||M===\",(1<<n)-1,\"){continue}switch(M){\");for(var i=r[n-1],s=0;s<i.length;++s)l.push(\"case \",s,\":\"),function(t){if(!(t.length<=0)){l.push(\"R.push(\");for(var e=0;e<t.length;++e){var r=t[e];e>0&&l.push(\",\"),l.push(\"[\");for(var n=0;n<r.length;++n){var i=r[n];n>0&&l.push(\",\"),l.push(\"B(C,E,c[\",i[0],\"],c[\",i[1],\"])\")}l.push(\"]\")}l.push(\");\")}}(i[s]),l.push(\"break;\");l.push(\"}}\")}return l.push(\"}return R;};return getContour\",t,\"d\"),new Function(\"pool\",l.join(\"\"))(a)}function i(t){var e=s[t];return e||(e=s[t]=n(t)),e}e.exports=i;var a=t(\"typedarray-pool\"),o=t(\"marching-simplex-table\"),s={}},{\"marching-simplex-table\":445,\"typedarray-pool\":541}],519:[function(t,e,r){\"use strict\";\"use restrict\";function n(t){for(var e=0,r=Math.max,n=0,i=t.length;n<i;++n)e=r(e,t[n].length);return e-1}function i(t){for(var e=-1,r=Math.max,n=0,i=t.length;n<i;++n)for(var a=t[n],o=0,s=a.length;o<s;++o)e=r(e,a[o]);return e+1}function a(t){for(var e=new Array(t.length),r=0,n=t.length;r<n;++r)e[r]=t[r].slice(0);return e}function o(t,e){var r=t.length,n=t.length-e.length,i=Math.min;if(n)return n;switch(r){case 0:return 0;case 1:return t[0]-e[0];case 2:var a=t[0]+t[1]-e[0]-e[1];return a||i(t[0],t[1])-i(e[0],e[1]);case 3:var o=t[0]+t[1],s=e[0]+e[1];if(a=o+t[2]-(s+e[2]))return a;var l=i(t[0],t[1]),u=i(e[0],e[1]),a=i(l,t[2])-i(u,e[2]);return a||i(l+t[2],o)-i(u+e[2],s);default:var c=t.slice(0);c.sort();var h=e.slice(0);h.sort();for(var f=0;f<r;++f)if(n=c[f]-h[f])return n;return 0}}function s(t,e){return o(t[0],e[0])}function l(t,e){if(e){for(var r=t.length,n=new Array(r),i=0;i<r;++i)n[i]=[t[i],e[i]];n.sort(s);for(var i=0;i<r;++i)t[i]=n[i][0],e[i]=n[i][1];return t}return t.sort(o),t}function u(t){if(0===t.length)return[];for(var e=1,r=t.length,n=1;n<r;++n){var i=t[n];if(o(i,t[n-1])){if(n===e){e++;continue}t[e++]=i}}return t.length=e,t}function c(t,e){for(var r=0,n=t.length-1,i=-1;r<=n;){var a=r+n>>1,s=o(t[a],e);s<=0?(0===s&&(i=a),r=a+1):s>0&&(n=a-1)}return i}function h(t,e){for(var r=new Array(t.length),n=0,i=r.length;n<i;++n)r[n]=[];for(var a=[],n=0,s=e.length;n<s;++n)for(var l=e[n],u=l.length,h=1,f=1<<u;h<f;++h){a.length=b.popCount(h);for(var d=0,p=0;p<u;++p)h&1<<p&&(a[d++]=l[p]);var m=c(t,a);if(!(m<0))for(;;)if(r[m++].push(n),m>=t.length||0!==o(t[m],a))break}return r}function f(t,e){if(!e)return h(u(p(t,0)),t,0);for(var r=new Array(e),n=0;n<e;++n)r[n]=[];for(var n=0,i=t.length;n<i;++n)for(var a=t[n],o=0,s=a.length;o<s;++o)r[a[o]].push(n);return r}function d(t){for(var e=[],r=0,n=t.length;r<n;++r)for(var i=t[r],a=0|i.length,o=1,s=1<<a;o<s;++o){for(var u=[],c=0;c<a;++c)o>>>c&1&&u.push(i[c]);e.push(u)}return l(e)}function p(t,e){if(e<0)return[];for(var r=[],n=(1<<e+1)-1,i=0;i<t.length;++i)for(var a=t[i],o=n;o<1<<a.length;o=b.nextCombination(o)){for(var s=new Array(e+1),u=0,c=0;c<a.length;++c)o&1<<c&&(s[u++]=a[c]);r.push(s)}return l(r)}function m(t){for(var e=[],r=0,n=t.length;r<n;++r)for(var i=t[r],a=0,o=i.length;a<o;++a){for(var s=new Array(i.length-1),u=0,c=0;u<o;++u)u!==a&&(s[c++]=i[u]);e.push(s)}return l(e)}function v(t,e){for(var r=new x(e),n=0;n<t.length;++n)for(var i=t[n],a=0;a<i.length;++a)for(var o=a+1;o<i.length;++o)r.link(i[a],i[o]);for(var s=[],l=r.ranks,n=0;n<l.length;++n)l[n]=-1;for(var n=0;n<t.length;++n){var u=r.find(t[n][0]);l[u]<0?(l[u]=s.length,s.push([t[n].slice(0)])):s[l[u]].push(t[n].slice(0))}return s}function g(t){for(var e=u(l(p(t,0))),r=new x(e.length),n=0;n<t.length;++n)for(var i=t[n],a=0;a<i.length;++a)for(var o=c(e,[i[a]]),s=a+1;s<i.length;++s)r.link(o,c(e,[i[s]]));for(var h=[],f=r.ranks,n=0;n<f.length;++n)f[n]=-1;for(var n=0;n<t.length;++n){var d=r.find(c(e,[t[n][0]]));f[d]<0?(f[d]=h.length,h.push([t[n].slice(0)])):h[f[d]].push(t[n].slice(0))}return h}function y(t,e){return e?v(t,e):g(t)}var b=t(\"bit-twiddle\"),x=t(\"union-find\");r.dimension=n,r.countVertices=i,r.cloneCells=a,r.compareCells=o,r.normalize=l,r.unique=u,r.findCell=c,r.incidence=h,r.dual=f,r.explode=d,r.skeleton=p,r.boundary=m,r.connectedComponents=y},{\"bit-twiddle\":67,\"union-find\":542}],520:[function(t,e,r){arguments[4][67][0].apply(r,arguments)},{dup:67}],521:[function(t,e,r){arguments[4][519][0].apply(r,arguments)},{\"bit-twiddle\":520,dup:519,\"union-find\":522}],522:[function(t,e,r){\"use strict\";\"use restrict\";function n(t){this.roots=new Array(t),this.ranks=new Array(t);for(var e=0;e<t;++e)this.roots[e]=e,this.ranks[e]=0}e.exports=n,n.prototype.length=function(){return this.roots.length},n.prototype.makeSet=function(){var t=this.roots.length;return this.roots.push(t),this.ranks.push(0),t},n.prototype.find=function(t){for(var e=this.roots;e[t]!==t;){var r=e[t];e[t]=e[r],t=r}return t},n.prototype.link=function(t,e){var r=this.find(t),n=this.find(e);if(r!==n){var i=this.ranks,a=this.roots,o=i[r],s=i[n];o<s?a[r]=n:s<o?a[n]=r:(a[n]=r,++i[r])}}},{}],523:[function(t,e,r){\"use strict\";function n(t,e,r){return Math.abs(a(t,e,r))/Math.sqrt(Math.pow(e[0]-r[0],2)+Math.pow(e[1]-r[1],2))}function i(t,e,r){function i(t){if(b[t])return 1/0;var r=v[t],i=g[t];return r<0||i<0?1/0:n(e[t],e[r],e[i])}function a(t,e){var r=k[t],n=k[e];k[t]=n,k[e]=r,A[r]=e,A[n]=t}function s(t){return y[k[t]]}function l(t){return 1&t?t-1>>1:(t>>1)-1}function u(t){for(var e=s(t);;){var r=e,n=2*t+1,i=2*(t+1),o=t;if(n<T){var l=s(n);l<r&&(o=n,r=l)}if(i<T){s(i)<r&&(o=i)}if(o===t)return t;a(t,o),t=o}}function c(t){for(var e=s(t);t>0;){var r=l(t);if(r>=0){if(e<s(r)){a(t,r),t=r;continue}}return t}}function h(){if(T>0){var t=k[0];return a(0,T-1),T-=1,u(0),t}return-1}function f(t,e){var r=k[t];return y[r]===e?t:(y[r]=-1/0,c(t),h(),y[r]=e,T+=1,c(T-1))}function d(t,e){if(t[e]<0)return e;var r=e,n=e;do{var i=t[n];if(!b[n]||i<0||i===n)break;if(n=i,i=t[n],!b[n]||i<0||i===n)break;n=i,r=t[r]}while(r!==n);for(var a=e;a!==n;a=t[a])t[a]=n;return n}for(var p=e.length,m=t.length,v=new Array(p),g=new Array(p),y=new Array(p),b=new Array(p),x=0;x<p;++x)v[x]=g[x]=-1,y[x]=1/0,b[x]=!1;for(var x=0;x<m;++x){var _=t[x];if(2!==_.length)throw new Error(\"Input must be a graph\");var w=_[1],M=_[0];-1!==g[M]?g[M]=-2:g[M]=w,-1!==v[w]?v[w]=-2:v[w]=M}for(var k=[],A=new Array(p),x=0;x<p;++x){(y[x]=i(x))<1/0?(A[x]=k.length,k.push(x)):A[x]=-1}for(var T=k.length,x=T>>1;x>=0;--x)u(x);for(;;){var S=h();if(S<0||y[S]>r)break;!function(t){if(!b[t]){b[t]=!0;var e=v[t],r=g[t];v[r]>=0&&(v[r]=e),g[e]>=0&&(g[e]=r),A[e]>=0&&f(A[e],i(e)),A[r]>=0&&f(A[r],i(r))}}(S)}for(var E=[],x=0;x<p;++x)b[x]||(A[x]=E.length,E.push(e[x].slice()));var L=(E.length,[]);return t.forEach(function(t){var e=d(v,t[0]),r=d(g,t[1]);if(e>=0&&r>=0&&e!==r){var n=A[e],i=A[r];n!==i&&L.push([n,i])}}),o.unique(o.normalize(L)),{positions:E,edges:L}}e.exports=i;var a=t(\"robust-orientation\"),o=t(\"simplicial-complex\")},{\"robust-orientation\":508,\"simplicial-complex\":521}],524:[function(t,e,r){\"use strict\";function n(t,e){var r,n;if(e[0][0]<e[1][0])r=e[0],n=e[1];else{if(!(e[0][0]>e[1][0])){var i=Math.min(t[0][1],t[1][1]),o=Math.max(t[0][1],t[1][1]),s=Math.min(e[0][1],e[1][1]),l=Math.max(e[0][1],e[1][1]);return o<s?o-s:i>l?i-l:o-l}r=e[1],n=e[0]}var u,c;t[0][1]<t[1][1]?(u=t[0],c=t[1]):(u=t[1],c=t[0]);var h=a(n,r,u);return h||((h=a(n,r,c))||c-n)}function i(t,e){var r,i;if(e[0][0]<e[1][0])r=e[0],i=e[1];else{if(!(e[0][0]>e[1][0]))return n(e,t);r=e[1],i=e[0]}var o,s;if(t[0][0]<t[1][0])o=t[0],s=t[1];else{if(!(t[0][0]>t[1][0]))return-n(t,e);o=t[1],s=t[0]}var l=a(r,i,s),u=a(r,i,o);if(l<0){if(u<=0)return l}else if(l>0){if(u>=0)return l}else if(u)return u;if(l=a(s,o,i),u=a(s,o,r),l<0){if(u<=0)return l}else if(l>0){if(u>=0)return l}else if(u)return u;return i[0]-s[0]}e.exports=i;var a=t(\"robust-orientation\")},{\"robust-orientation\":508}],525:[function(t,e,r){\"use strict\";function n(t,e,r){this.slabs=t,this.coordinates=e,this.horizontal=r}function i(t,e){return t.y-e}function a(t,e){for(var r=null;t;){var n,i,o=t.key;o[0][0]<o[1][0]?(n=o[0],i=o[1]):(n=o[1],i=o[0]);var s=h(n,i,e);if(s<0)t=t.left;else if(s>0)if(e[0]!==o[1][0])r=t,t=t.right;else{var l=a(t.right,e);if(l)return l;t=t.left}else{if(e[0]!==o[1][0])return t;var l=a(t.right,e);if(l)return l;t=t.left}}return r}function o(t,e,r,n){this.y=t,this.index=e,this.start=r,this.closed=n}function s(t,e,r,n){this.x=t,this.segment=e,this.create=r,this.index=n}function l(t){for(var e=t.length,r=2*e,i=new Array(r),a=0;a<e;++a){var l=t[a],u=l[0][0]<l[1][0];i[2*a]=new s(l[0][0],l,u,a),i[2*a+1]=new s(l[1][0],l,!u,a)}i.sort(function(t,e){var r=t.x-e.x;return r||((r=t.create-e.create)||Math.min(t.segment[0][1],t.segment[1][1])-Math.min(e.segment[0][1],e.segment[1][1]))});for(var h=c(f),d=[],p=[],m=[],a=0;a<r;){for(var v=i[a].x,g=[];a<r;){var y=i[a];if(y.x!==v)break;a+=1,y.segment[0][0]===y.x&&y.segment[1][0]===y.x?y.create&&(y.segment[0][1]<y.segment[1][1]?(g.push(new o(y.segment[0][1],y.index,!0,!0)),g.push(new o(y.segment[1][1],y.index,!1,!1))):(g.push(new o(y.segment[1][1],y.index,!0,!1)),g.push(new o(y.segment[0][1],y.index,!1,!0)))):h=y.create?h.insert(y.segment,y.index):h.remove(y.segment)}d.push(h.root),p.push(v),m.push(g)}return new n(d,p,m)}e.exports=l;var u=t(\"binary-search-bounds\"),c=t(\"functional-red-black-tree\"),h=t(\"robust-orientation\"),f=t(\"./lib/order-segments\");n.prototype.castUp=function(t){var e=u.le(this.coordinates,t[0]);if(e<0)return-1;var r=(this.slabs[e],a(this.slabs[e],t)),n=-1;if(r&&(n=r.value),this.coordinates[e]===t[0]){var o=null;if(r&&(o=r.key),e>0){var s=a(this.slabs[e-1],t);s&&(o?f(s.key,o)>0&&(o=s.key,n=s.value):(n=s.value,o=s.key))}var l=this.horizontal[e];if(l.length>0){var c=u.ge(l,t[1],i);if(c<l.length){var d=l[c];if(t[1]===d.y){if(d.closed)return d.index;for(;c<l.length-1&&l[c+1].y===t[1];)if(c+=1,d=l[c],d.closed)return d.index;if(d.y===t[1]&&!d.start){if((c+=1)>=l.length)return n;d=l[c]}}if(d.start)if(o){var p=h(o[0],o[1],[t[0],d.y]);o[0][0]>o[1][0]&&(p=-p),p>0&&(n=d.index)}else n=d.index;else d.y!==t[1]&&(n=d.index)}}}return n}},{\"./lib/order-segments\":524,\"binary-search-bounds\":66,\"functional-red-black-tree\":135,\"robust-orientation\":508}],526:[function(t,e,r){\"use strict\";function n(t,e){var r=u(l(t,e),[e[e.length-1]]);return r[r.length-1]}function i(t,e,r,n){var i=n-e,a=-e/i;a<0?a=0:a>1&&(a=1);for(var o=1-a,s=t.length,l=new Array(s),u=0;u<s;++u)l[u]=a*t[u]+o*r[u];return l}function a(t,e){for(var r=[],a=[],o=n(t[t.length-1],e),s=t[t.length-1],l=t[0],u=0;u<t.length;++u,s=l){l=t[u];var c=n(l,e);if(o<0&&c>0||o>0&&c<0){var h=i(s,c,l,o);r.push(h),a.push(h.slice())}c<0?a.push(l.slice()):c>0?r.push(l.slice()):(r.push(l.slice()),a.push(l.slice())),o=c}return{positive:r,negative:a}}function o(t,e){for(var r=[],a=n(t[t.length-1],e),o=t[t.length-1],s=t[0],l=0;l<t.length;++l,o=s){s=t[l];var u=n(s,e);(a<0&&u>0||a>0&&u<0)&&r.push(i(o,u,s,a)),u>=0&&r.push(s.slice()),a=u}return r}function s(t,e){for(var r=[],a=n(t[t.length-1],e),o=t[t.length-1],s=t[0],l=0;l<t.length;++l,o=s){s=t[l];var u=n(s,e);(a<0&&u>0||a>0&&u<0)&&r.push(i(o,u,s,a)),u<=0&&r.push(s.slice()),a=u}return r}var l=t(\"robust-dot-product\"),u=t(\"robust-sum\");e.exports=a,e.exports.positive=o,e.exports.negative=s},{\"robust-dot-product\":505,\"robust-sum\":513}],527:[function(e,r,n){!function(){\"use strict\";function e(t){return i(a(t),arguments)}function r(t,r){return e.apply(null,[t].concat(r||[]))}function i(t,r){var n,i,a,s,l,u,c,h,f,d=1,p=t.length,m=\"\";for(i=0;i<p;i++)if(\"string\"==typeof t[i])m+=t[i];else if(Array.isArray(t[i])){if(s=t[i],s[2])for(n=r[d],a=0;a<s[2].length;a++){if(!n.hasOwnProperty(s[2][a]))throw new Error(e('[sprintf] property \"%s\" does not exist',s[2][a]));n=n[s[2][a]]}else n=s[1]?r[s[1]]:r[d++];if(o.not_type.test(s[8])&&o.not_primitive.test(s[8])&&n instanceof Function&&(n=n()),o.numeric_arg.test(s[8])&&\"number\"!=typeof n&&isNaN(n))throw new TypeError(e(\"[sprintf] expecting number but found %T\",n));switch(o.number.test(s[8])&&(h=n>=0),s[8]){case\"b\":n=parseInt(n,10).toString(2);break;case\"c\":n=String.fromCharCode(parseInt(n,10));break;case\"d\":case\"i\":n=parseInt(n,10);break;case\"j\":n=JSON.stringify(n,null,s[6]?parseInt(s[6]):0);break;case\"e\":n=s[7]?parseFloat(n).toExponential(s[7]):parseFloat(n).toExponential();break;case\"f\":n=s[7]?parseFloat(n).toFixed(s[7]):parseFloat(n);break;case\"g\":n=s[7]?String(Number(n.toPrecision(s[7]))):parseFloat(n);break;case\"o\":n=(parseInt(n,10)>>>0).toString(8);break;case\"s\":n=String(n),n=s[7]?n.substring(0,s[7]):n;break;case\"t\":n=String(!!n),n=s[7]?n.substring(0,s[7]):n;break;case\"T\":n=Object.prototype.toString.call(n).slice(8,-1).toLowerCase(),n=s[7]?n.substring(0,s[7]):n;break;case\"u\":n=parseInt(n,10)>>>0;break;case\"v\":n=n.valueOf(),n=s[7]?n.substring(0,s[7]):n;break;case\"x\":n=(parseInt(n,10)>>>0).toString(16);break;case\"X\":n=(parseInt(n,10)>>>0).toString(16).toUpperCase()}o.json.test(s[8])?m+=n:(!o.number.test(s[8])||h&&!s[3]?f=\"\":(f=h?\"+\":\"-\",n=n.toString().replace(o.sign,\"\")),u=s[4]?\"0\"===s[4]?\"0\":s[4].charAt(1):\" \",c=s[6]-(f+n).length,l=s[6]&&c>0?u.repeat(c):\"\",m+=s[5]?f+n+l:\"0\"===u?f+l+n:l+f+n)}return m}function a(t){if(s[t])return s[t];for(var e,r=t,n=[],i=0;r;){if(null!==(e=o.text.exec(r)))n.push(e[0]);else if(null!==(e=o.modulo.exec(r)))n.push(\"%\");else{if(null===(e=o.placeholder.exec(r)))throw new SyntaxError(\"[sprintf] unexpected placeholder\");if(e[2]){i|=1;var a=[],l=e[2],u=[];if(null===(u=o.key.exec(l)))throw new SyntaxError(\"[sprintf] failed to parse named argument key\");for(a.push(u[1]);\"\"!==(l=l.substring(u[0].length));)if(null!==(u=o.key_access.exec(l)))a.push(u[1]);else{if(null===(u=o.index_access.exec(l)))throw new SyntaxError(\"[sprintf] failed to parse named argument key\");a.push(u[1])}e[2]=a}else i|=2;if(3===i)throw new Error(\"[sprintf] mixing positional and named placeholders is not (yet) supported\");n.push(e)}r=r.substring(e[0].length)}return s[t]=n}var o={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\\x25]+/,modulo:/^\\x25{2}/,placeholder:/^\\x25(?:([1-9]\\d*)\\$|\\(([^\\)]+)\\))?(\\+)?(0|'[^$])?(-)?(\\d+)?(?:\\.(\\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\\d]*)/i,key_access:/^\\.([a-z_][a-z_\\d]*)/i,index_access:/^\\[(\\d+)\\]/,sign:/^[\\+\\-]/},s=Object.create(null);void 0!==n&&(n.sprintf=e,n.vsprintf=r),\"undefined\"!=typeof window&&(window.sprintf=e,window.vsprintf=r,\"function\"==typeof t&&t.amd&&t(function(){return{sprintf:e,vsprintf:r}}))}()},{}],528:[function(t,e,r){\"use strict\";function n(t){for(var e=t.length,r=new Array(e),n=new Array(e),i=new Array(e),a=new Array(e),o=new Array(e),s=new Array(e),l=0;l<e;++l)r[l]=-1,n[l]=0,i[l]=!1,a[l]=0,o[l]=-1,s[l]=[];for(var u=0,c=[],h=[],l=0;l<e;++l)r[l]<0&&function(e){var l=[e],f=[e];for(r[e]=n[e]=u,i[e]=!0,u+=1;f.length>0;){e=f[f.length-1];var d=t[e];if(a[e]<d.length){for(var p=a[e];p<d.length;++p){var m=d[p];if(r[m]<0){r[m]=n[m]=u,i[m]=!0,u+=1,l.push(m),f.push(m);break}i[m]&&(n[e]=0|Math.min(n[e],n[m])),o[m]>=0&&s[e].push(o[m])}a[e]=p}else{if(n[e]===r[e]){for(var v=[],g=[],y=0,p=l.length-1;p>=0;--p){var b=l[p];if(i[b]=!1,v.push(b),g.push(s[b]),y+=s[b].length,o[b]=c.length,b===e){l.length=p;break}}c.push(v);for(var x=new Array(y),p=0;p<g.length;p++)for(var _=0;_<g[p].length;_++)x[--y]=g[p][_];h.push(x)}f.pop()}}}(l);for(var f,l=0;l<h.length;l++){var d=h[l];if(0!==d.length){d.sort(function(t,e){return t-e}),f=[d[0]];for(var p=1;p<d.length;p++)d[p]!==d[p-1]&&f.push(d[p]);h[l]=f}}return{components:c,adjacencyList:h}}e.exports=n},{}],529:[function(t,e,r){\"use strict\";function n(t){return new i(t)}function i(t){this.options=d(Object.create(this.options),t),this.trees=new Array(this.options.maxZoom+1)}function a(t,e,r,n,i){return{x:t,y:e,zoom:1/0,id:n,properties:i,parentId:-1,numPoints:r}}function o(t,e){var r=t.geometry.coordinates;return{x:u(r[0]),y:c(r[1]),zoom:1/0,id:e,parentId:-1}}function s(t){return{type:\"Feature\",properties:l(t),geometry:{type:\"Point\",coordinates:[h(t.x),f(t.y)]}}}function l(t){var e=t.numPoints,r=e>=1e4?Math.round(e/1e3)+\"k\":e>=1e3?Math.round(e/100)/10+\"k\":e;return d(d({},t.properties),{cluster:!0,cluster_id:t.id,point_count:e,point_count_abbreviated:r})}function u(t){return t/360+.5}function c(t){var e=Math.sin(t*Math.PI/180),r=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return r<0?0:r>1?1:r}function h(t){return 360*(t-.5)}function f(t){var e=(180-360*t)*Math.PI/180;return 360*Math.atan(Math.exp(e))/Math.PI-90}function d(t,e){for(var r in e)t[r]=e[r];return t}function p(t){return t.x}function m(t){return t.y}var v=t(\"kdbush\");e.exports=n,i.prototype={options:{minZoom:0,maxZoom:16,radius:40,extent:512,nodeSize:64,log:!1,reduce:null,initial:function(){return{}},map:function(t){return t}},load:function(t){var e=this.options.log;e&&console.time(\"total time\");var r=\"prepare \"+t.length+\" points\";e&&console.time(r),this.points=t;var n=t.map(o);e&&console.timeEnd(r);for(var i=this.options.maxZoom;i>=this.options.minZoom;i--){var a=+Date.now();this.trees[i+1]=v(n,p,m,this.options.nodeSize,Float32Array),n=this._cluster(n,i),e&&console.log(\"z%d: %d clusters in %dms\",i,n.length,+Date.now()-a)}return this.trees[this.options.minZoom]=v(n,p,m,this.options.nodeSize,Float32Array),e&&console.timeEnd(\"total time\"),this},getClusters:function(t,e){for(var r=this.trees[this._limitZoom(e)],n=r.range(u(t[0]),c(t[3]),u(t[2]),c(t[1])),i=[],a=0;a<n.length;a++){var o=r.points[n[a]];i.push(o.numPoints?s(o):this.points[o.id])}return i},getChildren:function(t,e){for(var r=this.trees[e+1].points[t],n=this.options.radius/(this.options.extent*Math.pow(2,e)),i=this.trees[e+1].within(r.x,r.y,n),a=[],o=0;o<i.length;o++){var l=this.trees[e+1].points[i[o]];l.parentId===t&&a.push(l.numPoints?s(l):this.points[l.id])}return a},getLeaves:function(t,e,r,n){r=r||10,n=n||0;var i=[];return this._appendLeaves(i,t,e,r,n,0),i},getTile:function(t,e,r){var n=this.trees[this._limitZoom(t)],i=Math.pow(2,t),a=this.options.extent,o=this.options.radius,s=o/a,l=(r-s)/i,u=(r+1+s)/i,c={features:[]};return this._addTileFeatures(n.range((e-s)/i,l,(e+1+s)/i,u),n.points,e,r,i,c),0===e&&this._addTileFeatures(n.range(1-s/i,l,1,u),n.points,i,r,i,c),e===i-1&&this._addTileFeatures(n.range(0,l,s/i,u),n.points,-1,r,i,c),c.features.length?c:null},getClusterExpansionZoom:function(t,e){for(;e<this.options.maxZoom;){var r=this.getChildren(t,e);if(e++,1!==r.length)break;t=r[0].properties.cluster_id}return e},_appendLeaves:function(t,e,r,n,i,a){for(var o=this.getChildren(e,r),s=0;s<o.length;s++){var l=o[s].properties;if(l.cluster?a+l.point_count<=i?a+=l.point_count:a=this._appendLeaves(t,l.cluster_id,r+1,n,i,a):a<i?a++:t.push(o[s]),t.length===n)break}return a},_addTileFeatures:function(t,e,r,n,i,a){for(var o=0;o<t.length;o++){var s=e[t[o]];a.features.push({type:1,geometry:[[Math.round(this.options.extent*(s.x*i-r)),Math.round(this.options.extent*(s.y*i-n))]],tags:s.numPoints?l(s):this.points[s.id].properties})}},_limitZoom:function(t){return Math.max(this.options.minZoom,Math.min(t,this.options.maxZoom+1))},_cluster:function(t,e){for(var r=[],n=this.options.radius/(this.options.extent*Math.pow(2,e)),i=0;i<t.length;i++){var o=t[i];if(!(o.zoom<=e)){o.zoom=e;var s=this.trees[e+1],l=s.within(o.x,o.y,n),u=o.numPoints||1,c=o.x*u,h=o.y*u,f=null;this.options.reduce&&(f=this.options.initial(),this._accumulate(f,o));for(var d=0;d<l.length;d++){var p=s.points[l[d]];if(e<p.zoom){var m=p.numPoints||1;p.zoom=e,c+=p.x*m,h+=p.y*m,u+=m,p.parentId=i,this.options.reduce&&this._accumulate(f,p)}}1===u?r.push(o):(o.parentId=i,r.push(a(c/u,h/u,u,i,f)))}}return r},_accumulate:function(t,e){var r=e.numPoints?e.properties:this.options.map(this.points[e.id].properties);this.options.reduce(t,r)}}},{kdbush:298}],530:[function(t,e,r){\"use strict\";function n(t){return t.split(\"\").map(function(t){return t in i?i[t]:\"\"}).join(\"\")}e.exports=n;var i={\" \":\" \",0:\"\\u2070\",1:\"\\xb9\",2:\"\\xb2\",3:\"\\xb3\",4:\"\\u2074\",5:\"\\u2075\",6:\"\\u2076\",7:\"\\u2077\",8:\"\\u2078\",9:\"\\u2079\",\"+\":\"\\u207a\",\"-\":\"\\u207b\",a:\"\\u1d43\",b:\"\\u1d47\",c:\"\\u1d9c\",d:\"\\u1d48\",e:\"\\u1d49\",f:\"\\u1da0\",g:\"\\u1d4d\",h:\"\\u02b0\",i:\"\\u2071\",j:\"\\u02b2\",k:\"\\u1d4f\",l:\"\\u02e1\",m:\"\\u1d50\",n:\"\\u207f\",o:\"\\u1d52\",p:\"\\u1d56\",r:\"\\u02b3\",s:\"\\u02e2\",t:\"\\u1d57\",u:\"\\u1d58\",v:\"\\u1d5b\",w:\"\\u02b7\",x:\"\\u02e3\",y:\"\\u02b8\",z:\"\\u1dbb\"}},{}],531:[function(t,e,r){\"use strict\";function n(t,e){var r=t.length,n=[\"'use strict';\"],i=\"surfaceNets\"+t.join(\"_\")+\"d\"+e;n.push(\"var contour=genContour({\",\"order:[\",t.join(),\"],\",\"scalarArguments: 3,\",\"phase:function phaseFunc(p,a,b,c) { return (p > c)|0 },\"),\"generic\"===e&&n.push(\"getters:[0],\");for(var a=[],l=[],u=0;u<r;++u)a.push(\"d\"+u),l.push(\"d\"+u);for(var u=0;u<1<<r;++u)a.push(\"v\"+u),l.push(\"v\"+u);for(var u=0;u<1<<r;++u)a.push(\"p\"+u),l.push(\"p\"+u);a.push(\"a\",\"b\",\"c\"),l.push(\"a\",\"c\"),n.push(\"vertex:function vertexFunc(\",a.join(),\"){\");for(var c=[],u=0;u<1<<r;++u)c.push(\"(p\"+u+\"<<\"+u+\")\");n.push(\"var m=(\",c.join(\"+\"),\")|0;if(m===0||m===\",(1<<(1<<r))-1,\"){return}\");var h=[],f=[];1<<(1<<r)<=128?(n.push(\"switch(m){\"),f=n):n.push(\"switch(m>>>7){\");for(var u=0;u<1<<(1<<r);++u){if(1<<(1<<r)>128&&u%128==0){h.length>0&&f.push(\"}}\");var d=\"vExtra\"+h.length;n.push(\"case \",u>>>7,\":\",d,\"(m&0x7f,\",l.join(),\");break;\"),f=[\"function \",d,\"(m,\",l.join(),\"){switch(m){\"],h.push(f)}f.push(\"case \",127&u,\":\");for(var p=new Array(r),m=new Array(r),v=new Array(r),g=new Array(r),y=0,b=0;b<r;++b)p[b]=[],m[b]=[],v[b]=0,g[b]=0;for(var b=0;b<1<<r;++b)for(var x=0;x<r;++x){var _=b^1<<x;if(!(_>b)&&!(u&1<<_)!=!(u&1<<b)){var w=1;u&1<<_?m[x].push(\"v\"+_+\"-v\"+b):(m[x].push(\"v\"+b+\"-v\"+_),w=-w),w<0?(p[x].push(\"-v\"+b+\"-v\"+_),v[x]+=2):(p[x].push(\"v\"+b+\"+v\"+_),v[x]-=2),y+=1;for(var M=0;M<r;++M)M!==x&&(_&1<<M?g[M]+=1:g[M]-=1)}}for(var k=[],x=0;x<r;++x)if(0===p[x].length)k.push(\"d\"+x+\"-0.5\");else{var A=\"\";v[x]<0?A=v[x]+\"*c\":v[x]>0&&(A=\"+\"+v[x]+\"*c\");var T=p[x].length/y*.5,S=.5+g[x]/y*.5;k.push(\"d\"+x+\"-\"+S+\"-\"+T+\"*(\"+p[x].join(\"+\")+A+\")/(\"+m[x].join(\"+\")+\")\")}f.push(\"a.push([\",k.join(),\"]);\",\"break;\")}n.push(\"}},\"),h.length>0&&f.push(\"}}\");for(var E=[],u=0;u<1<<r-1;++u)E.push(\"v\"+u);E.push(\"c0\",\"c1\",\"p0\",\"p1\",\"a\",\"b\",\"c\"),n.push(\"cell:function cellFunc(\",E.join(),\"){\");var L=s(r-1);n.push(\"if(p0){b.push(\",L.map(function(t){return\"[\"+t.map(function(t){return\"v\"+t})+\"]\"}).join(),\")}else{b.push(\",L.map(function(t){var e=t.slice();return e.reverse(),\"[\"+e.map(function(t){return\"v\"+t})+\"]\"}).join(),\")}}});function \",i,\"(array,level){var verts=[],cells=[];contour(array,verts,cells,level);return {positions:verts,cells:cells};} return \",i,\";\");for(var u=0;u<h.length;++u)n.push(h[u].join(\"\"));return new Function(\"genContour\",n.join(\"\"))(o)}function i(t,e){for(var r=l(t,e),n=r.length,i=new Array(n),a=new Array(n),o=0;o<n;++o)i[o]=[r[o]],a[o]=[o];return{positions:i,cells:a}}function a(t,e){if(t.dimension<=0)return{positions:[],cells:[]};if(1===t.dimension)return i(t,e);var r=t.order.join()+\"-\"+t.dtype,a=u[r],e=+e||0;return a||(a=u[r]=n(t.order,t.dtype)),a(t,e)}e.exports=a;var o=t(\"ndarray-extract-contour\"),s=t(\"triangulate-hypercube\"),l=t(\"zero-crossings\"),u={}},{\"ndarray-extract-contour\":456,\"triangulate-hypercube\":537,\"zero-crossings\":584}],532:[function(t,e,r){(function(r){\"use strict\";function n(t){for(var e=t.cells,r=t.positions,n=new Float32Array(6*e.length),i=0,a=0,o=0;o<e.length;++o)for(var s=e[o],l=0;l<3;++l){var u=r[s[l]];n[i++]=u[0],n[i++]=u[1]+1.4,a=Math.max(u[0],a)}return{data:n,shape:a}}function i(t,e,r){var r=r||{},o=s[t];o||(o=s[t]={\" \":{data:new Float32Array(0),shape:.2}});var l=o[e];if(!l)if(e.length<=1||!/\\d/.test(e))l=o[e]=n(a(e,{triangles:!0,font:t,textAlign:r.textAlign||\"left\",textBaseline:\"alphabetic\"}));else{for(var u=e.split(/(\\d|\\s)/),c=new Array(u.length),h=0,f=0,d=0;d<u.length;++d)c[d]=i(t,u[d]),h+=c[d].data.length,f+=c[d].shape,d>0&&(f+=.02);for(var p=new Float32Array(h),m=0,v=-.5*f,d=0;d<c.length;++d){for(var g=c[d].data,y=0;y<g.length;y+=2)p[m++]=g[y]+v,p[m++]=g[y+1];v+=c[d].shape+.02}l=o[e]={data:p,shape:f}}return l}e.exports=i;var a=t(\"vectorize-text\"),o=window||r.global||{},s=o.__TEXT_CACHE||{};o.__TEXT_CACHE={}}).call(this,t(\"_process\"))},{_process:487,\"vectorize-text\":554}],533:[function(t,e,r){\"use strict\";function n(t,e,r,n,i){this.fontSize=t||24,this.buffer=void 0===e?3:e,this.cutoff=n||.25,this.fontFamily=i||\"sans-serif\",this.radius=r||8;var a=this.size=this.fontSize+2*this.buffer;this.canvas=document.createElement(\"canvas\"),this.canvas.width=this.canvas.height=a,this.ctx=this.canvas.getContext(\"2d\"),this.ctx.font=t+\"px \"+this.fontFamily,this.ctx.textBaseline=\"middle\",this.ctx.fillStyle=\"black\",this.gridOuter=new Float64Array(a*a),this.gridInner=new Float64Array(a*a),this.f=new Float64Array(a),this.d=new Float64Array(a),this.z=new Float64Array(a+1),this.v=new Int16Array(a),this.middle=Math.round(a/2*(navigator.userAgent.indexOf(\"Gecko/\")>=0?1.2:1))}function i(t,e,r,n,i,o,s){for(var l=0;l<e;l++){for(var u=0;u<r;u++)n[u]=t[u*e+l];for(a(n,i,o,s,r),u=0;u<r;u++)t[u*e+l]=i[u]}for(u=0;u<r;u++){for(l=0;l<e;l++)n[l]=t[u*e+l];for(a(n,i,o,s,e),l=0;l<e;l++)t[u*e+l]=Math.sqrt(i[l])}}function a(t,e,r,n,i){r[0]=0,n[0]=-o,n[1]=+o;for(var a=1,s=0;a<i;a++){for(var l=(t[a]+a*a-(t[r[s]]+r[s]*r[s]))/(2*a-2*r[s]);l<=n[s];)s--,l=(t[a]+a*a-(t[r[s]]+r[s]*r[s]))/(2*a-2*r[s]);s++,r[s]=a,n[s]=l,n[s+1]=+o}for(a=0,s=0;a<i;a++){\n", "for(;n[s+1]<a;)s++;e[a]=(a-r[s])*(a-r[s])+t[r[s]]}}e.exports=n;var o=1e20;n.prototype.draw=function(t){this.ctx.clearRect(0,0,this.size,this.size),this.ctx.fillText(t,this.buffer,this.middle);for(var e=this.ctx.getImageData(0,0,this.size,this.size),r=e.data,n=0;n<this.size*this.size;n++){var a=r[4*n+3]/255;this.gridOuter[n]=1===a?0:0===a?o:Math.pow(Math.max(0,.5-a),2),this.gridInner[n]=1===a?o:0===a?0:Math.pow(Math.max(0,a-.5),2)}for(i(this.gridOuter,this.size,this.size,this.f,this.d,this.v,this.z),i(this.gridInner,this.size,this.size,this.f,this.d,this.v,this.z),n=0;n<this.size*this.size;n++){var s=this.gridOuter[n]-this.gridInner[n],l=Math.max(0,Math.min(255,Math.round(255-255*(s/this.radius+this.cutoff))));r[4*n+0]=l,r[4*n+1]=l,r[4*n+2]=l,r[4*n+3]=255}return e}},{}],534:[function(e,r,n){!function(e){function n(t,e){if(t=t||\"\",e=e||{},t instanceof n)return t;if(!(this instanceof n))return new n(t,e);var r=i(t);this._originalInput=t,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=V(100*this._a)/100,this._format=e.format||r.format,this._gradientType=e.gradientType,this._r<1&&(this._r=V(this._r)),this._g<1&&(this._g=V(this._g)),this._b<1&&(this._b=V(this._b)),this._ok=r.ok,this._tc_id=U++}function i(t){var e={r:0,g:0,b:0},r=1,n=null,i=null,o=null,l=!1,c=!1;return\"string\"==typeof t&&(t=F(t)),\"object\"==typeof t&&(R(t.r)&&R(t.g)&&R(t.b)?(e=a(t.r,t.g,t.b),l=!0,c=\"%\"===String(t.r).substr(-1)?\"prgb\":\"rgb\"):R(t.h)&&R(t.s)&&R(t.v)?(n=D(t.s),i=D(t.v),e=u(t.h,n,i),l=!0,c=\"hsv\"):R(t.h)&&R(t.s)&&R(t.l)&&(n=D(t.s),o=D(t.l),e=s(t.h,n,o),l=!0,c=\"hsl\"),t.hasOwnProperty(\"a\")&&(r=t.a)),r=T(r),{ok:l,format:t.format||c,r:H(255,q(e.r,0)),g:H(255,q(e.g,0)),b:H(255,q(e.b,0)),a:r}}function a(t,e,r){return{r:255*S(t,255),g:255*S(e,255),b:255*S(r,255)}}function o(t,e,r){t=S(t,255),e=S(e,255),r=S(r,255);var n,i,a=q(t,e,r),o=H(t,e,r),s=(a+o)/2;if(a==o)n=i=0;else{var l=a-o;switch(i=s>.5?l/(2-a-o):l/(a+o),a){case t:n=(e-r)/l+(e<r?6:0);break;case e:n=(r-t)/l+2;break;case r:n=(t-e)/l+4}n/=6}return{h:n,s:i,l:s}}function s(t,e,r){function n(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+6*(e-t)*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}var i,a,o;if(t=S(t,360),e=S(e,100),r=S(r,100),0===e)i=a=o=r;else{var s=r<.5?r*(1+e):r+e-r*e,l=2*r-s;i=n(l,s,t+1/3),a=n(l,s,t),o=n(l,s,t-1/3)}return{r:255*i,g:255*a,b:255*o}}function l(t,e,r){t=S(t,255),e=S(e,255),r=S(r,255);var n,i,a=q(t,e,r),o=H(t,e,r),s=a,l=a-o;if(i=0===a?0:l/a,a==o)n=0;else{switch(a){case t:n=(e-r)/l+(e<r?6:0);break;case e:n=(r-t)/l+2;break;case r:n=(t-e)/l+4}n/=6}return{h:n,s:i,v:s}}function u(t,r,n){t=6*S(t,360),r=S(r,100),n=S(n,100);var i=e.floor(t),a=t-i,o=n*(1-r),s=n*(1-a*r),l=n*(1-(1-a)*r),u=i%6;return{r:255*[n,s,o,o,l,n][u],g:255*[l,n,n,s,o,o][u],b:255*[o,o,l,n,n,s][u]}}function c(t,e,r,n){var i=[z(V(t).toString(16)),z(V(e).toString(16)),z(V(r).toString(16))];return n&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join(\"\")}function h(t,e,r,n,i){var a=[z(V(t).toString(16)),z(V(e).toString(16)),z(V(r).toString(16)),z(P(n))];return i&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join(\"\")}function f(t,e,r,n){return[z(P(n)),z(V(t).toString(16)),z(V(e).toString(16)),z(V(r).toString(16))].join(\"\")}function d(t,e){e=0===e?0:e||10;var r=n(t).toHsl();return r.s-=e/100,r.s=E(r.s),n(r)}function p(t,e){e=0===e?0:e||10;var r=n(t).toHsl();return r.s+=e/100,r.s=E(r.s),n(r)}function m(t){return n(t).desaturate(100)}function v(t,e){e=0===e?0:e||10;var r=n(t).toHsl();return r.l+=e/100,r.l=E(r.l),n(r)}function g(t,e){e=0===e?0:e||10;var r=n(t).toRgb();return r.r=q(0,H(255,r.r-V(-e/100*255))),r.g=q(0,H(255,r.g-V(-e/100*255))),r.b=q(0,H(255,r.b-V(-e/100*255))),n(r)}function y(t,e){e=0===e?0:e||10;var r=n(t).toHsl();return r.l-=e/100,r.l=E(r.l),n(r)}function b(t,e){var r=n(t).toHsl(),i=(r.h+e)%360;return r.h=i<0?360+i:i,n(r)}function x(t){var e=n(t).toHsl();return e.h=(e.h+180)%360,n(e)}function _(t){var e=n(t).toHsl(),r=e.h;return[n(t),n({h:(r+120)%360,s:e.s,l:e.l}),n({h:(r+240)%360,s:e.s,l:e.l})]}function w(t){var e=n(t).toHsl(),r=e.h;return[n(t),n({h:(r+90)%360,s:e.s,l:e.l}),n({h:(r+180)%360,s:e.s,l:e.l}),n({h:(r+270)%360,s:e.s,l:e.l})]}function M(t){var e=n(t).toHsl(),r=e.h;return[n(t),n({h:(r+72)%360,s:e.s,l:e.l}),n({h:(r+216)%360,s:e.s,l:e.l})]}function k(t,e,r){e=e||6,r=r||30;var i=n(t).toHsl(),a=360/r,o=[n(t)];for(i.h=(i.h-(a*e>>1)+720)%360;--e;)i.h=(i.h+a)%360,o.push(n(i));return o}function A(t,e){e=e||6;for(var r=n(t).toHsv(),i=r.h,a=r.s,o=r.v,s=[],l=1/e;e--;)s.push(n({h:i,s:a,v:o})),o=(o+l)%1;return s}function T(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function S(t,r){C(t)&&(t=\"100%\");var n=I(t);return t=H(r,q(0,parseFloat(t))),n&&(t=parseInt(t*r,10)/100),e.abs(t-r)<1e-6?1:t%r/parseFloat(r)}function E(t){return H(1,q(0,t))}function L(t){return parseInt(t,16)}function C(t){return\"string\"==typeof t&&-1!=t.indexOf(\".\")&&1===parseFloat(t)}function I(t){return\"string\"==typeof t&&-1!=t.indexOf(\"%\")}function z(t){return 1==t.length?\"0\"+t:\"\"+t}function D(t){return t<=1&&(t=100*t+\"%\"),t}function P(t){return e.round(255*parseFloat(t)).toString(16)}function O(t){return L(t)/255}function R(t){return!!X.CSS_UNIT.exec(t)}function F(t){t=t.replace(N,\"\").replace(B,\"\").toLowerCase();var e=!1;if(Y[t])t=Y[t],e=!0;else if(\"transparent\"==t)return{r:0,g:0,b:0,a:0,format:\"name\"};var r;return(r=X.rgb.exec(t))?{r:r[1],g:r[2],b:r[3]}:(r=X.rgba.exec(t))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=X.hsl.exec(t))?{h:r[1],s:r[2],l:r[3]}:(r=X.hsla.exec(t))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=X.hsv.exec(t))?{h:r[1],s:r[2],v:r[3]}:(r=X.hsva.exec(t))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=X.hex8.exec(t))?{r:L(r[1]),g:L(r[2]),b:L(r[3]),a:O(r[4]),format:e?\"name\":\"hex8\"}:(r=X.hex6.exec(t))?{r:L(r[1]),g:L(r[2]),b:L(r[3]),format:e?\"name\":\"hex\"}:(r=X.hex4.exec(t))?{r:L(r[1]+\"\"+r[1]),g:L(r[2]+\"\"+r[2]),b:L(r[3]+\"\"+r[3]),a:O(r[4]+\"\"+r[4]),format:e?\"name\":\"hex8\"}:!!(r=X.hex3.exec(t))&&{r:L(r[1]+\"\"+r[1]),g:L(r[2]+\"\"+r[2]),b:L(r[3]+\"\"+r[3]),format:e?\"name\":\"hex\"}}function j(t){var e,r;return t=t||{level:\"AA\",size:\"small\"},e=(t.level||\"AA\").toUpperCase(),r=(t.size||\"small\").toLowerCase(),\"AA\"!==e&&\"AAA\"!==e&&(e=\"AA\"),\"small\"!==r&&\"large\"!==r&&(r=\"small\"),{level:e,size:r}}var N=/^\\s+/,B=/\\s+$/,U=0,V=e.round,H=e.min,q=e.max,G=e.random;n.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var t,r,n,i,a,o,s=this.toRgb();return t=s.r/255,r=s.g/255,n=s.b/255,i=t<=.03928?t/12.92:e.pow((t+.055)/1.055,2.4),a=r<=.03928?r/12.92:e.pow((r+.055)/1.055,2.4),o=n<=.03928?n/12.92:e.pow((n+.055)/1.055,2.4),.2126*i+.7152*a+.0722*o},setAlpha:function(t){return this._a=T(t),this._roundA=V(100*this._a)/100,this},toHsv:function(){var t=l(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=l(this._r,this._g,this._b),e=V(360*t.h),r=V(100*t.s),n=V(100*t.v);return 1==this._a?\"hsv(\"+e+\", \"+r+\"%, \"+n+\"%)\":\"hsva(\"+e+\", \"+r+\"%, \"+n+\"%, \"+this._roundA+\")\"},toHsl:function(){var t=o(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=o(this._r,this._g,this._b),e=V(360*t.h),r=V(100*t.s),n=V(100*t.l);return 1==this._a?\"hsl(\"+e+\", \"+r+\"%, \"+n+\"%)\":\"hsla(\"+e+\", \"+r+\"%, \"+n+\"%, \"+this._roundA+\")\"},toHex:function(t){return c(this._r,this._g,this._b,t)},toHexString:function(t){return\"#\"+this.toHex(t)},toHex8:function(t){return h(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return\"#\"+this.toHex8(t)},toRgb:function(){return{r:V(this._r),g:V(this._g),b:V(this._b),a:this._a}},toRgbString:function(){return 1==this._a?\"rgb(\"+V(this._r)+\", \"+V(this._g)+\", \"+V(this._b)+\")\":\"rgba(\"+V(this._r)+\", \"+V(this._g)+\", \"+V(this._b)+\", \"+this._roundA+\")\"},toPercentageRgb:function(){return{r:V(100*S(this._r,255))+\"%\",g:V(100*S(this._g,255))+\"%\",b:V(100*S(this._b,255))+\"%\",a:this._a}},toPercentageRgbString:function(){return 1==this._a?\"rgb(\"+V(100*S(this._r,255))+\"%, \"+V(100*S(this._g,255))+\"%, \"+V(100*S(this._b,255))+\"%)\":\"rgba(\"+V(100*S(this._r,255))+\"%, \"+V(100*S(this._g,255))+\"%, \"+V(100*S(this._b,255))+\"%, \"+this._roundA+\")\"},toName:function(){return 0===this._a?\"transparent\":!(this._a<1)&&(W[c(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e=\"#\"+f(this._r,this._g,this._b,this._a),r=e,i=this._gradientType?\"GradientType = 1, \":\"\";if(t){var a=n(t);r=\"#\"+f(a._r,a._g,a._b,a._a)}return\"progid:DXImageTransform.Microsoft.gradient(\"+i+\"startColorstr=\"+e+\",endColorstr=\"+r+\")\"},toString:function(t){var e=!!t;t=t||this._format;var r=!1,n=this._a<1&&this._a>=0;return e||!n||\"hex\"!==t&&\"hex6\"!==t&&\"hex3\"!==t&&\"hex4\"!==t&&\"hex8\"!==t&&\"name\"!==t?(\"rgb\"===t&&(r=this.toRgbString()),\"prgb\"===t&&(r=this.toPercentageRgbString()),\"hex\"!==t&&\"hex6\"!==t||(r=this.toHexString()),\"hex3\"===t&&(r=this.toHexString(!0)),\"hex4\"===t&&(r=this.toHex8String(!0)),\"hex8\"===t&&(r=this.toHex8String()),\"name\"===t&&(r=this.toName()),\"hsl\"===t&&(r=this.toHslString()),\"hsv\"===t&&(r=this.toHsvString()),r||this.toHexString()):\"name\"===t&&0===this._a?this.toName():this.toRgbString()},clone:function(){return n(this.toString())},_applyModification:function(t,e){var r=t.apply(null,[this].concat([].slice.call(e)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(v,arguments)},brighten:function(){return this._applyModification(g,arguments)},darken:function(){return this._applyModification(y,arguments)},desaturate:function(){return this._applyModification(d,arguments)},saturate:function(){return this._applyModification(p,arguments)},greyscale:function(){return this._applyModification(m,arguments)},spin:function(){return this._applyModification(b,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(k,arguments)},complement:function(){return this._applyCombination(x,arguments)},monochromatic:function(){return this._applyCombination(A,arguments)},splitcomplement:function(){return this._applyCombination(M,arguments)},triad:function(){return this._applyCombination(_,arguments)},tetrad:function(){return this._applyCombination(w,arguments)}},n.fromRatio=function(t,e){if(\"object\"==typeof t){var r={};for(var i in t)t.hasOwnProperty(i)&&(r[i]=\"a\"===i?t[i]:D(t[i]));t=r}return n(t,e)},n.equals=function(t,e){return!(!t||!e)&&n(t).toRgbString()==n(e).toRgbString()},n.random=function(){return n.fromRatio({r:G(),g:G(),b:G()})},n.mix=function(t,e,r){r=0===r?0:r||50;var i=n(t).toRgb(),a=n(e).toRgb(),o=r/100;return n({r:(a.r-i.r)*o+i.r,g:(a.g-i.g)*o+i.g,b:(a.b-i.b)*o+i.b,a:(a.a-i.a)*o+i.a})},n.readability=function(t,r){var i=n(t),a=n(r);return(e.max(i.getLuminance(),a.getLuminance())+.05)/(e.min(i.getLuminance(),a.getLuminance())+.05)},n.isReadable=function(t,e,r){var i,a,o=n.readability(t,e);switch(a=!1,i=j(r),i.level+i.size){case\"AAsmall\":case\"AAAlarge\":a=o>=4.5;break;case\"AAlarge\":a=o>=3;break;case\"AAAsmall\":a=o>=7}return a},n.mostReadable=function(t,e,r){var i,a,o,s,l=null,u=0;r=r||{},a=r.includeFallbackColors,o=r.level,s=r.size;for(var c=0;c<e.length;c++)(i=n.readability(t,e[c]))>u&&(u=i,l=n(e[c]));return n.isReadable(t,l,{level:o,size:s})||!a?l:(r.includeFallbackColors=!1,n.mostReadable(t,[\"#fff\",\"#000\"],r))};var Y=n.names={aliceblue:\"f0f8ff\",antiquewhite:\"faebd7\",aqua:\"0ff\",aquamarine:\"7fffd4\",azure:\"f0ffff\",beige:\"f5f5dc\",bisque:\"ffe4c4\",black:\"000\",blanchedalmond:\"ffebcd\",blue:\"00f\",blueviolet:\"8a2be2\",brown:\"a52a2a\",burlywood:\"deb887\",burntsienna:\"ea7e5d\",cadetblue:\"5f9ea0\",chartreuse:\"7fff00\",chocolate:\"d2691e\",coral:\"ff7f50\",cornflowerblue:\"6495ed\",cornsilk:\"fff8dc\",crimson:\"dc143c\",cyan:\"0ff\",darkblue:\"00008b\",darkcyan:\"008b8b\",darkgoldenrod:\"b8860b\",darkgray:\"a9a9a9\",darkgreen:\"006400\",darkgrey:\"a9a9a9\",darkkhaki:\"bdb76b\",darkmagenta:\"8b008b\",darkolivegreen:\"556b2f\",darkorange:\"ff8c00\",darkorchid:\"9932cc\",darkred:\"8b0000\",darksalmon:\"e9967a\",darkseagreen:\"8fbc8f\",darkslateblue:\"483d8b\",darkslategray:\"2f4f4f\",darkslategrey:\"2f4f4f\",darkturquoise:\"00ced1\",darkviolet:\"9400d3\",deeppink:\"ff1493\",deepskyblue:\"00bfff\",dimgray:\"696969\",dimgrey:\"696969\",dodgerblue:\"1e90ff\",firebrick:\"b22222\",floralwhite:\"fffaf0\",forestgreen:\"228b22\",fuchsia:\"f0f\",gainsboro:\"dcdcdc\",ghostwhite:\"f8f8ff\",gold:\"ffd700\",goldenrod:\"daa520\",gray:\"808080\",green:\"008000\",greenyellow:\"adff2f\",grey:\"808080\",honeydew:\"f0fff0\",hotpink:\"ff69b4\",indianred:\"cd5c5c\",indigo:\"4b0082\",ivory:\"fffff0\",khaki:\"f0e68c\",lavender:\"e6e6fa\",lavenderblush:\"fff0f5\",lawngreen:\"7cfc00\",lemonchiffon:\"fffacd\",lightblue:\"add8e6\",lightcoral:\"f08080\",lightcyan:\"e0ffff\",lightgoldenrodyellow:\"fafad2\",lightgray:\"d3d3d3\",lightgreen:\"90ee90\",lightgrey:\"d3d3d3\",lightpink:\"ffb6c1\",lightsalmon:\"ffa07a\",lightseagreen:\"20b2aa\",lightskyblue:\"87cefa\",lightslategray:\"789\",lightslategrey:\"789\",lightsteelblue:\"b0c4de\",lightyellow:\"ffffe0\",lime:\"0f0\",limegreen:\"32cd32\",linen:\"faf0e6\",magenta:\"f0f\",maroon:\"800000\",mediumaquamarine:\"66cdaa\",mediumblue:\"0000cd\",mediumorchid:\"ba55d3\",mediumpurple:\"9370db\",mediumseagreen:\"3cb371\",mediumslateblue:\"7b68ee\",mediumspringgreen:\"00fa9a\",mediumturquoise:\"48d1cc\",mediumvioletred:\"c71585\",midnightblue:\"191970\",mintcream:\"f5fffa\",mistyrose:\"ffe4e1\",moccasin:\"ffe4b5\",navajowhite:\"ffdead\",navy:\"000080\",oldlace:\"fdf5e6\",olive:\"808000\",olivedrab:\"6b8e23\",orange:\"ffa500\",orangered:\"ff4500\",orchid:\"da70d6\",palegoldenrod:\"eee8aa\",palegreen:\"98fb98\",paleturquoise:\"afeeee\",palevioletred:\"db7093\",papayawhip:\"ffefd5\",peachpuff:\"ffdab9\",peru:\"cd853f\",pink:\"ffc0cb\",plum:\"dda0dd\",powderblue:\"b0e0e6\",purple:\"800080\",rebeccapurple:\"663399\",red:\"f00\",rosybrown:\"bc8f8f\",royalblue:\"4169e1\",saddlebrown:\"8b4513\",salmon:\"fa8072\",sandybrown:\"f4a460\",seagreen:\"2e8b57\",seashell:\"fff5ee\",sienna:\"a0522d\",silver:\"c0c0c0\",skyblue:\"87ceeb\",slateblue:\"6a5acd\",slategray:\"708090\",slategrey:\"708090\",snow:\"fffafa\",springgreen:\"00ff7f\",steelblue:\"4682b4\",tan:\"d2b48c\",teal:\"008080\",thistle:\"d8bfd8\",tomato:\"ff6347\",turquoise:\"40e0d0\",violet:\"ee82ee\",wheat:\"f5deb3\",white:\"fff\",whitesmoke:\"f5f5f5\",yellow:\"ff0\",yellowgreen:\"9acd32\"},W=n.hexNames=function(t){var e={};for(var r in t)t.hasOwnProperty(r)&&(e[t[r]]=r);return e}(Y),X=function(){var t=\"(?:[-\\\\+]?\\\\d*\\\\.\\\\d+%?)|(?:[-\\\\+]?\\\\d+%?)\",e=\"[\\\\s|\\\\(]+(\"+t+\")[,|\\\\s]+(\"+t+\")[,|\\\\s]+(\"+t+\")\\\\s*\\\\)?\",r=\"[\\\\s|\\\\(]+(\"+t+\")[,|\\\\s]+(\"+t+\")[,|\\\\s]+(\"+t+\")[,|\\\\s]+(\"+t+\")\\\\s*\\\\)?\";return{CSS_UNIT:new RegExp(t),rgb:new RegExp(\"rgb\"+e),rgba:new RegExp(\"rgba\"+r),hsl:new RegExp(\"hsl\"+e),hsla:new RegExp(\"hsla\"+r),hsv:new RegExp(\"hsv\"+e),hsva:new RegExp(\"hsva\"+r),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();void 0!==r&&r.exports?r.exports=n:\"function\"==typeof t&&t.amd?t(function(){return n}):window.tinycolor=n}(Math)},{}],535:[function(t,e,r){\"use strict\";function n(t,e){var r=o(getComputedStyle(t).getPropertyValue(e));return r[0]*a(r[1],t)}function i(t,e){var r=document.createElement(\"div\");r.style[\"font-size\"]=\"128\"+t,e.appendChild(r);var i=n(r,\"font-size\")/128;return e.removeChild(r),i}function a(t,e){switch(e=e||document.body,t=(t||\"px\").trim().toLowerCase(),e!==window&&e!==document||(e=document.body),t){case\"%\":return e.clientHeight/100;case\"ch\":case\"ex\":return i(t,e);case\"em\":return n(e,\"font-size\");case\"rem\":return n(document.body,\"font-size\");case\"vw\":return window.innerWidth/100;case\"vh\":return window.innerHeight/100;case\"vmin\":return Math.min(window.innerWidth,window.innerHeight)/100;case\"vmax\":return Math.max(window.innerWidth,window.innerHeight)/100;case\"in\":return s;case\"cm\":return s/2.54;case\"mm\":return s/25.4;case\"pt\":return s/72;case\"pc\":return s/6}return 1}var o=t(\"parse-unit\");e.exports=a;var s=96},{\"parse-unit\":475}],536:[function(e,r,n){!function(e,i){\"object\"==typeof n&&void 0!==r?i(n):\"function\"==typeof t&&t.amd?t([\"exports\"],i):i(e.topojson=e.topojson||{})}(this,function(t){\"use strict\";function e(t,e){var n=e.id,i=e.bbox,a=null==e.properties?{}:e.properties,o=r(t,e);return null==n&&null==i?{type:\"Feature\",properties:a,geometry:o}:null==i?{type:\"Feature\",id:n,properties:a,geometry:o}:{type:\"Feature\",id:n,bbox:i,properties:a,geometry:o}}function r(t,e){function r(t,e){e.length&&e.pop();for(var r=h[t<0?~t:t],n=0,i=r.length;n<i;++n)e.push(u(r[n].slice(),n));t<0&&c(e,i)}function n(t){return u(t.slice())}function i(t){for(var e=[],n=0,i=t.length;n<i;++n)r(t[n],e);return e.length<2&&e.push(e[0].slice()),e}function a(t){for(var e=i(t);e.length<4;)e.push(e[0].slice());return e}function o(t){return t.map(a)}function s(t){var e,r=t.type;switch(r){case\"GeometryCollection\":return{type:r,geometries:t.geometries.map(s)};case\"Point\":e=n(t.coordinates);break;case\"MultiPoint\":e=t.coordinates.map(n);break;case\"LineString\":e=i(t.arcs);break;case\"MultiLineString\":e=t.arcs.map(i);break;case\"Polygon\":e=o(t.arcs);break;case\"MultiPolygon\":e=t.arcs.map(o);break;default:return null}return{type:r,coordinates:e}}var u=l(t),h=t.arcs;return s(e)}function n(t,e,r){var n,a,o;if(arguments.length>1)n=i(t,e,r);else for(a=0,n=new Array(o=t.arcs.length);a<o;++a)n[a]=a;return{type:\"MultiLineString\",arcs:f(t,n)}}function i(t,e,r){function n(t){var e=t<0?~t:t;(c[e]||(c[e]=[])).push({i:t,g:l})}function i(t){t.forEach(n)}function a(t){t.forEach(i)}function o(t){t.forEach(a)}function s(t){switch(l=t,t.type){case\"GeometryCollection\":t.geometries.forEach(s);break;case\"LineString\":i(t.arcs);break;case\"MultiLineString\":case\"Polygon\":a(t.arcs);break;case\"MultiPolygon\":o(t.arcs)}}var l,u=[],c=[];return s(e),c.forEach(null==r?function(t){u.push(t[0].i)}:function(t){r(t[0].g,t[t.length-1].g)&&u.push(t[0].i)}),u}function a(t){for(var e,r=-1,n=t.length,i=t[n-1],a=0;++r<n;)e=i,i=t[r],a+=e[0]*i[1]-e[1]*i[0];return Math.abs(a)}function o(t,e){function n(t){switch(t.type){case\"GeometryCollection\":t.geometries.forEach(n);break;case\"Polygon\":i(t.arcs);break;case\"MultiPolygon\":t.arcs.forEach(i)}}function i(t){t.forEach(function(e){e.forEach(function(e){(s[e=e<0?~e:e]||(s[e]=[])).push(t)})}),l.push(t)}function o(e){return a(r(t,{type:\"Polygon\",arcs:[e]}).coordinates[0])}var s={},l=[],u=[];return e.forEach(n),l.forEach(function(t){if(!t._){var e=[],r=[t];for(t._=1,u.push(e);t=r.pop();)e.push(t),t.forEach(function(t){t.forEach(function(t){s[t<0?~t:t].forEach(function(t){t._||(t._=1,r.push(t))})})})}}),l.forEach(function(t){delete t._}),{type:\"MultiPolygon\",arcs:u.map(function(e){var r,n=[];if(e.forEach(function(t){t.forEach(function(t){t.forEach(function(t){s[t<0?~t:t].length<2&&n.push(t)})})}),n=f(t,n),(r=n.length)>1)for(var i,a,l=1,u=o(n[0]);l<r;++l)(i=o(n[l]))>u&&(a=n[0],n[0]=n[l],n[l]=a,u=i);return n})}}var s=function(t){return t},l=function(t){if(null==(e=t.transform))return s;var e,r,n,i=e.scale[0],a=e.scale[1],o=e.translate[0],l=e.translate[1];return function(t,e){return e||(r=n=0),t[0]=(r+=t[0])*i+o,t[1]=(n+=t[1])*a+l,t}},u=function(t){function e(t){s[0]=t[0],s[1]=t[1],o(s),s[0]<u&&(u=s[0]),s[0]>h&&(h=s[0]),s[1]<c&&(c=s[1]),s[1]>f&&(f=s[1])}function r(t){switch(t.type){case\"GeometryCollection\":t.geometries.forEach(r);break;case\"Point\":e(t.coordinates);break;case\"MultiPoint\":t.coordinates.forEach(e)}}var n=t.bbox;if(!n){var i,a,o=l(t),s=new Array(2),u=1/0,c=u,h=-u,f=-u;t.arcs.forEach(function(t){for(var e=-1,r=t.length;++e<r;)i=t[e],s[0]=i[0],s[1]=i[1],o(s,e),s[0]<u&&(u=s[0]),s[0]>h&&(h=s[0]),s[1]<c&&(c=s[1]),s[1]>f&&(f=s[1])});for(a in t.objects)r(t.objects[a]);n=t.bbox=[u,c,h,f]}return n},c=function(t,e){for(var r,n=t.length,i=n-e;i<--n;)r=t[i],t[i++]=t[n],t[n]=r},h=function(t,r){return\"GeometryCollection\"===r.type?{type:\"FeatureCollection\",features:r.geometries.map(function(r){return e(t,r)})}:e(t,r)},f=function(t,e){function r(e){var r,n=t.arcs[e<0?~e:e],i=n[0];return t.transform?(r=[0,0],n.forEach(function(t){r[0]+=t[0],r[1]+=t[1]})):r=n[n.length-1],e<0?[r,i]:[i,r]}function n(t,e){for(var r in t){var n=t[r];delete e[n.start],delete n.start,delete n.end,n.forEach(function(t){i[t<0?~t:t]=1}),s.push(n)}}var i={},a={},o={},s=[],l=-1;return e.forEach(function(r,n){var i,a=t.arcs[r<0?~r:r];a.length<3&&!a[1][0]&&!a[1][1]&&(i=e[++l],e[l]=r,e[n]=i)}),e.forEach(function(t){var e,n,i=r(t),s=i[0],l=i[1];if(e=o[s])if(delete o[e.end],e.push(t),e.end=l,n=a[l]){delete a[n.start];var u=n===e?e:e.concat(n);a[u.start=e.start]=o[u.end=n.end]=u}else a[e.start]=o[e.end]=e;else if(e=a[l])if(delete a[e.start],e.unshift(t),e.start=s,n=o[s]){delete o[n.end];var c=n===e?e:n.concat(e);a[c.start=n.start]=o[c.end=e.end]=c}else a[e.start]=o[e.end]=e;else e=[t],a[e.start=s]=o[e.end=l]=e}),n(o,a),n(a,o),e.forEach(function(t){i[t<0?~t:t]||s.push([t])}),s},d=function(t){return r(t,n.apply(this,arguments))},p=function(t){return r(t,o.apply(this,arguments))},m=function(t,e){for(var r=0,n=t.length;r<n;){var i=r+n>>>1;t[i]<e?r=i+1:n=i}return r},v=function(t){function e(t,e){t.forEach(function(t){t<0&&(t=~t);var r=i[t];r?r.push(e):i[t]=[e]})}function r(t,r){t.forEach(function(t){e(t,r)})}function n(t,e){\"GeometryCollection\"===t.type?t.geometries.forEach(function(t){n(t,e)}):t.type in o&&o[t.type](t.arcs,e)}var i={},a=t.map(function(){return[]}),o={LineString:e,MultiLineString:r,Polygon:r,MultiPolygon:function(t,e){t.forEach(function(t){r(t,e)})}};t.forEach(n);for(var s in i)for(var l=i[s],u=l.length,c=0;c<u;++c)for(var h=c+1;h<u;++h){var f,d=l[c],p=l[h];(f=a[d])[s=m(f,p)]!==p&&f.splice(s,0,p),(f=a[p])[s=m(f,d)]!==d&&f.splice(s,0,d)}return a},g=function(t,e){function r(t){t[0]=Math.round((t[0]-o)/s),t[1]=Math.round((t[1]-l)/c)}function n(t){switch(t.type){case\"GeometryCollection\":t.geometries.forEach(n);break;case\"Point\":r(t.coordinates);break;case\"MultiPoint\":t.coordinates.forEach(r)}}if(!((e=Math.floor(e))>=2))throw new Error(\"n must be \\u22652\");if(t.transform)throw new Error(\"already quantized\");var i,a=u(t),o=a[0],s=(a[2]-o)/(e-1)||1,l=a[1],c=(a[3]-l)/(e-1)||1;t.arcs.forEach(function(t){for(var e,r,n,i=1,a=1,u=t.length,h=t[0],f=h[0]=Math.round((h[0]-o)/s),d=h[1]=Math.round((h[1]-l)/c);i<u;++i)h=t[i],r=Math.round((h[0]-o)/s),n=Math.round((h[1]-l)/c),r===f&&n===d||(e=t[a++],e[0]=r-f,f=r,e[1]=n-d,d=n);a<2&&(e=t[a++],e[0]=0,e[1]=0),t.length=a});for(i in t.objects)n(t.objects[i]);return t.transform={scale:[s,c],translate:[o,l]},t},y=function(t){if(null==(e=t.transform))return s;var e,r,n,i=e.scale[0],a=e.scale[1],o=e.translate[0],l=e.translate[1];return function(t,e){e||(r=n=0);var s=Math.round((t[0]-o)/i),u=Math.round((t[1]-l)/a);return t[0]=s-r,r=s,t[1]=u-n,n=u,t}};t.bbox=u,t.feature=h,t.mesh=d,t.meshArcs=n,t.merge=p,t.mergeArcs=o,t.neighbors=v,t.quantize=g,t.transform=l,t.untransform=y,Object.defineProperty(t,\"__esModule\",{value:!0})})},{}],537:[function(t,e,r){\"use strict\";function n(t){if(t<0)return[];if(0===t)return[[0]];for(var e=0|Math.round(o(t+1)),r=[],n=0;n<e;++n){for(var s=i.unrank(t,n),l=[0],u=0,c=0;c<s.length;++c)u+=1<<s[c],l.push(u);a(s)<1&&(l[0]=u,l[t]=0),r.push(l)}return r}e.exports=n;var i=t(\"permutation-rank\"),a=t(\"permutation-parity\"),o=t(\"gamma\")},{gamma:136,\"permutation-parity\":479,\"permutation-rank\":480}],538:[function(t,e,r){\"use strict\";function n(t,e,r){return Math.sqrt(Math.pow(t,2)+Math.pow(e,2)+Math.pow(r,2))}function i(t){return Math.min(1,Math.max(-1,t))}function a(t){var e=Math.abs(t[0]),r=Math.abs(t[1]),n=Math.abs(t[2]),i=[0,0,0];e>Math.max(r,n)?i[2]=1:r>Math.max(e,n)?i[0]=1:i[1]=1;for(var a=0,o=0,s=0;s<3;++s)a+=t[s]*t[s],o+=i[s]*t[s];for(var s=0;s<3;++s)i[s]-=o/a*t[s];return f(i,i),i}function o(t,e,r,n,i,a,o,s){this.center=l(r),this.up=l(n),this.right=l(i),this.radius=l([a]),this.angle=l([o,s]),this.angle.bounds=[[-1/0,-Math.PI/2],[1/0,Math.PI/2]],this.setDistanceLimits(t,e),this.computedCenter=this.center.curve(0),this.computedUp=this.up.curve(0),this.computedRight=this.right.curve(0),this.computedRadius=this.radius.curve(0),this.computedAngle=this.angle.curve(0),this.computedToward=[0,0,0],this.computedEye=[0,0,0],this.computedMatrix=new Array(16);for(var u=0;u<16;++u)this.computedMatrix[u]=.5;this.recalcMatrix(0)}function s(t){t=t||{};var e=t.center||[0,0,0],r=t.up||[0,1,0],i=t.right||a(r),s=t.radius||1,l=t.theta||0,u=t.phi||0;if(e=[].slice.call(e,0,3),r=[].slice.call(r,0,3),f(r,r),i=[].slice.call(i,0,3),f(i,i),\"eye\"in t){var c=t.eye,p=[c[0]-e[0],c[1]-e[1],c[2]-e[2]];h(i,p,r),n(i[0],i[1],i[2])<1e-6?i=a(r):f(i,i),s=n(p[0],p[1],p[2]);var m=d(r,p)/s,v=d(i,p)/s;u=Math.acos(m),l=Math.acos(v)}return s=Math.log(s),new o(t.zoomMin,t.zoomMax,e,r,i,s,l,u)}e.exports=s;var l=t(\"filtered-vector\"),u=t(\"gl-mat4/invert\"),c=t(\"gl-mat4/rotate\"),h=t(\"gl-vec3/cross\"),f=t(\"gl-vec3/normalize\"),d=t(\"gl-vec3/dot\"),p=o.prototype;p.setDistanceLimits=function(t,e){t=t>0?Math.log(t):-1/0,e=e>0?Math.log(e):1/0,e=Math.max(e,t),this.radius.bounds[0][0]=t,this.radius.bounds[1][0]=e},p.getDistanceLimits=function(t){var e=this.radius.bounds[0];return t?(t[0]=Math.exp(e[0][0]),t[1]=Math.exp(e[1][0]),t):[Math.exp(e[0][0]),Math.exp(e[1][0])]},p.recalcMatrix=function(t){this.center.curve(t),this.up.curve(t),this.right.curve(t),this.radius.curve(t),this.angle.curve(t);for(var e=this.computedUp,r=this.computedRight,i=0,a=0,o=0;o<3;++o)a+=e[o]*r[o],i+=e[o]*e[o];for(var s=Math.sqrt(i),l=0,o=0;o<3;++o)r[o]-=e[o]*a/i,l+=r[o]*r[o],e[o]/=s;for(var u=Math.sqrt(l),o=0;o<3;++o)r[o]/=u;var c=this.computedToward;h(c,e,r),f(c,c);for(var d=Math.exp(this.computedRadius[0]),p=this.computedAngle[0],m=this.computedAngle[1],v=Math.cos(p),g=Math.sin(p),y=Math.cos(m),b=Math.sin(m),x=this.computedCenter,_=v*y,w=g*y,M=b,k=-v*b,A=-g*b,T=y,S=this.computedEye,E=this.computedMatrix,o=0;o<3;++o){var L=_*r[o]+w*c[o]+M*e[o];E[4*o+1]=k*r[o]+A*c[o]+T*e[o],E[4*o+2]=L,E[4*o+3]=0}var C=E[1],I=E[5],z=E[9],D=E[2],P=E[6],O=E[10],R=I*O-z*P,F=z*D-C*O,j=C*P-I*D,N=n(R,F,j);R/=N,F/=N,j/=N,E[0]=R,E[4]=F,E[8]=j;for(var o=0;o<3;++o)S[o]=x[o]+E[2+4*o]*d;for(var o=0;o<3;++o){for(var l=0,B=0;B<3;++B)l+=E[o+4*B]*S[B];E[12+o]=-l}E[15]=1},p.getMatrix=function(t,e){this.recalcMatrix(t);var r=this.computedMatrix;if(e){for(var n=0;n<16;++n)e[n]=r[n];return e}return r};var m=[0,0,0];p.rotate=function(t,e,r,n){if(this.angle.move(t,e,r),n){this.recalcMatrix(t);var i=this.computedMatrix;m[0]=i[2],m[1]=i[6],m[2]=i[10];for(var a=this.computedUp,o=this.computedRight,s=this.computedToward,l=0;l<3;++l)i[4*l]=a[l],i[4*l+1]=o[l],i[4*l+2]=s[l];c(i,i,n,m);for(var l=0;l<3;++l)a[l]=i[4*l],o[l]=i[4*l+1];this.up.set(t,a[0],a[1],a[2]),this.right.set(t,o[0],o[1],o[2])}},p.pan=function(t,e,r,i){e=e||0,r=r||0,i=i||0,this.recalcMatrix(t);var a=this.computedMatrix,o=(Math.exp(this.computedRadius[0]),a[1]),s=a[5],l=a[9],u=n(o,s,l);o/=u,s/=u,l/=u;var c=a[0],h=a[4],f=a[8],d=c*o+h*s+f*l;c-=o*d,h-=s*d,f-=l*d;var p=n(c,h,f);c/=p,h/=p,f/=p;var m=c*e+o*r,v=h*e+s*r,g=f*e+l*r;this.center.move(t,m,v,g);var y=Math.exp(this.computedRadius[0]);y=Math.max(1e-4,y+i),this.radius.set(t,Math.log(y))},p.translate=function(t,e,r,n){this.center.move(t,e||0,r||0,n||0)},p.setMatrix=function(t,e,r,a){var o=1;\"number\"==typeof r&&(o=0|r),(o<0||o>3)&&(o=1);var s=(o+2)%3;e||(this.recalcMatrix(t),e=this.computedMatrix);var l=e[o],c=e[o+4],h=e[o+8];if(a){var f=Math.abs(l),d=Math.abs(c),p=Math.abs(h),m=Math.max(f,d,p);f===m?(l=l<0?-1:1,c=h=0):p===m?(h=h<0?-1:1,l=c=0):(c=c<0?-1:1,l=h=0)}else{var v=n(l,c,h);l/=v,c/=v,h/=v}var g=e[s],y=e[s+4],b=e[s+8],x=g*l+y*c+b*h;g-=l*x,y-=c*x,b-=h*x;var _=n(g,y,b);g/=_,y/=_,b/=_;var w=c*b-h*y,M=h*g-l*b,k=l*y-c*g,A=n(w,M,k);w/=A,M/=A,k/=A,this.center.jump(t,q,G,Y),this.radius.idle(t),this.up.jump(t,l,c,h),this.right.jump(t,g,y,b);var T,S;if(2===o){var E=e[1],L=e[5],C=e[9],I=E*g+L*y+C*b,z=E*w+L*M+C*k;T=R<0?-Math.PI/2:Math.PI/2,S=Math.atan2(z,I)}else{var D=e[2],P=e[6],O=e[10],R=D*l+P*c+O*h,F=D*g+P*y+O*b,j=D*w+P*M+O*k;T=Math.asin(i(R)),S=Math.atan2(j,F)}this.angle.jump(t,S,T),this.recalcMatrix(t);var N=e[2],B=e[6],U=e[10],V=this.computedMatrix;u(V,e);var H=V[15],q=V[12]/H,G=V[13]/H,Y=V[14]/H,W=Math.exp(this.computedRadius[0]);this.center.jump(t,q-N*W,G-B*W,Y-U*W)},p.lastT=function(){return Math.max(this.center.lastT(),this.up.lastT(),this.right.lastT(),this.radius.lastT(),this.angle.lastT())},p.idle=function(t){this.center.idle(t),this.up.idle(t),this.right.idle(t),this.radius.idle(t),this.angle.idle(t)},p.flush=function(t){this.center.flush(t),this.up.flush(t),this.right.flush(t),this.radius.flush(t),this.angle.flush(t)},p.setDistance=function(t,e){e>0&&this.radius.set(t,Math.log(e))},p.lookAt=function(t,e,r,a){this.recalcMatrix(t),e=e||this.computedEye,r=r||this.computedCenter,a=a||this.computedUp;var o=a[0],s=a[1],l=a[2],u=n(o,s,l);if(!(u<1e-6)){o/=u,s/=u,l/=u;var c=e[0]-r[0],h=e[1]-r[1],f=e[2]-r[2],d=n(c,h,f);if(!(d<1e-6)){c/=d,h/=d,f/=d;var p=this.computedRight,m=p[0],v=p[1],g=p[2],y=o*m+s*v+l*g;m-=y*o,v-=y*s,g-=y*l;var b=n(m,v,g);if(!(b<.01&&(m=s*f-l*h,v=l*c-o*f,g=o*h-s*c,(b=n(m,v,g))<1e-6))){m/=b,v/=b,g/=b,this.up.set(t,o,s,l),this.right.set(t,m,v,g),this.center.set(t,r[0],r[1],r[2]),this.radius.set(t,Math.log(d));var x=s*g-l*v,_=l*m-o*g,w=o*v-s*m,M=n(x,_,w);x/=M,_/=M,w/=M;var k=o*c+s*h+l*f,A=m*c+v*h+g*f,T=x*c+_*h+w*f,S=Math.asin(i(k)),E=Math.atan2(T,A),L=this.angle._state,C=L[L.length-1],I=L[L.length-2];C%=2*Math.PI;var z=Math.abs(C+2*Math.PI-E),D=Math.abs(C-E),P=Math.abs(C-2*Math.PI-E);z<D&&(C+=2*Math.PI),P<D&&(C-=2*Math.PI),this.angle.jump(this.angle.lastT(),C,I),this.angle.set(t,E,S)}}}}},{\"filtered-vector\":133,\"gl-mat4/invert\":181,\"gl-mat4/rotate\":185,\"gl-vec3/cross\":272,\"gl-vec3/dot\":273,\"gl-vec3/normalize\":276}],539:[function(t,e,r){\"use strict\";function n(t,e,r){var n=t*e,a=i*t,o=a-t,s=a-o,l=t-s,u=i*e,c=u-e,h=u-c,f=e-h,d=n-s*h,p=d-l*h,m=p-s*f,v=l*f-m;return r?(r[0]=v,r[1]=n,r):[v,n]}e.exports=n;var i=+(Math.pow(2,27)+1)},{}],540:[function(t,e,r){\"use strict\";function n(t,e,r){var n=t+e,i=n-t,a=n-i,o=e-i,s=t-a;return r?(r[0]=s+o,r[1]=n,r):[s+o,n]}e.exports=n},{}],541:[function(t,e,r){(function(e,n){\"use strict\";function i(t){if(t){var e=t.length||t.byteLength,r=y.log2(e);w[r].push(t)}}function a(t){i(t.buffer)}function o(t){var t=y.nextPow2(t),e=y.log2(t),r=w[e];return r.length>0?r.pop():new ArrayBuffer(t)}function s(t){return new Uint8Array(o(t),0,t)}function l(t){return new Uint16Array(o(2*t),0,t)}function u(t){return new Uint32Array(o(4*t),0,t)}function c(t){return new Int8Array(o(t),0,t)}function h(t){return new Int16Array(o(2*t),0,t)}function f(t){return new Int32Array(o(4*t),0,t)}function d(t){return new Float32Array(o(4*t),0,t)}function p(t){return new Float64Array(o(8*t),0,t)}function m(t){return x?new Uint8ClampedArray(o(t),0,t):s(t)}function v(t){return new DataView(o(t),0,t)}function g(t){t=y.nextPow2(t);var e=y.log2(t),r=M[e];return r.length>0?r.pop():new n(t)}var y=t(\"bit-twiddle\"),b=t(\"dup\");e.__TYPEDARRAY_POOL||(e.__TYPEDARRAY_POOL={UINT8:b([32,0]),UINT16:b([32,0]),UINT32:b([32,0]),INT8:b([32,0]),INT16:b([32,0]),INT32:b([32,0]),FLOAT:b([32,0]),DOUBLE:b([32,0]),DATA:b([32,0]),UINT8C:b([32,0]),BUFFER:b([32,0])});var x=\"undefined\"!=typeof Uint8ClampedArray,_=e.__TYPEDARRAY_POOL;_.UINT8C||(_.UINT8C=b([32,0])),_.BUFFER||(_.BUFFER=b([32,0]));var w=_.DATA,M=_.BUFFER;r.free=function(t){if(n.isBuffer(t))M[y.log2(t.length)].push(t);else{if(\"[object ArrayBuffer]\"!==Object.prototype.toString.call(t)&&(t=t.buffer),!t)return;var e=t.length||t.byteLength,r=0|y.log2(e);w[r].push(t)}},r.freeUint8=r.freeUint16=r.freeUint32=r.freeInt8=r.freeInt16=r.freeInt32=r.freeFloat32=r.freeFloat=r.freeFloat64=r.freeDouble=r.freeUint8Clamped=r.freeDataView=a,r.freeArrayBuffer=i,r.freeBuffer=function(t){M[y.log2(t.length)].push(t)},r.malloc=function(t,e){\n", "if(void 0===e||\"arraybuffer\"===e)return o(t);switch(e){case\"uint8\":return s(t);case\"uint16\":return l(t);case\"uint32\":return u(t);case\"int8\":return c(t);case\"int16\":return h(t);case\"int32\":return f(t);case\"float\":case\"float32\":return d(t);case\"double\":case\"float64\":return p(t);case\"uint8_clamped\":return m(t);case\"buffer\":return g(t);case\"data\":case\"dataview\":return v(t);default:return null}return null},r.mallocArrayBuffer=o,r.mallocUint8=s,r.mallocUint16=l,r.mallocUint32=u,r.mallocInt8=c,r.mallocInt16=h,r.mallocInt32=f,r.mallocFloat32=r.mallocFloat=d,r.mallocFloat64=r.mallocDouble=p,r.mallocUint8Clamped=m,r.mallocDataView=v,r.mallocBuffer=g,r.clearCache=function(){for(var t=0;t<32;++t)_.UINT8[t].length=0,_.UINT16[t].length=0,_.UINT32[t].length=0,_.INT8[t].length=0,_.INT16[t].length=0,_.INT32[t].length=0,_.FLOAT[t].length=0,_.DOUBLE[t].length=0,_.UINT8C[t].length=0,w[t].length=0,M[t].length=0}}).call(this,\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{},t(\"buffer\").Buffer)},{\"bit-twiddle\":67,buffer:77,dup:125}],542:[function(t,e,r){\"use strict\";\"use restrict\";function n(t){this.roots=new Array(t),this.ranks=new Array(t);for(var e=0;e<t;++e)this.roots[e]=e,this.ranks[e]=0}e.exports=n;var i=n.prototype;Object.defineProperty(i,\"length\",{get:function(){return this.roots.length}}),i.makeSet=function(){var t=this.roots.length;return this.roots.push(t),this.ranks.push(0),t},i.find=function(t){for(var e=t,r=this.roots;r[t]!==t;)t=r[t];for(;r[e]!==t;){var n=r[e];r[e]=t,e=n}return t},i.link=function(t,e){var r=this.find(t),n=this.find(e);if(r!==n){var i=this.ranks,a=this.roots,o=i[r],s=i[n];o<s?a[r]=n:s<o?a[n]=r:(a[n]=r,++i[r])}}},{}],543:[function(t,e,r){\"use strict\";function n(t,e){for(var r=1,n=t.length,i=t[0],a=t[0],o=1;o<n;++o)if(a=i,i=t[o],e(i,a)){if(o===r){r++;continue}t[r++]=i}return t.length=r,t}function i(t){for(var e=1,r=t.length,n=t[0],i=t[0],a=1;a<r;++a,i=n)if(i=n,(n=t[a])!==i){if(a===e){e++;continue}t[e++]=n}return t.length=e,t}function a(t,e,r){return 0===t.length?t:e?(r||t.sort(e),n(t,e)):(r||t.sort(),i(t))}e.exports=a},{}],544:[function(t,e,r){function n(t,e,r,n){this.cx=3*t,this.bx=3*(r-t)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*e,this.by=3*(n-e)-this.cy,this.ay=1-this.cy-this.by,this.p1x=t,this.p1y=n,this.p2x=r,this.p2y=n}e.exports=n,n.prototype.sampleCurveX=function(t){return((this.ax*t+this.bx)*t+this.cx)*t},n.prototype.sampleCurveY=function(t){return((this.ay*t+this.by)*t+this.cy)*t},n.prototype.sampleCurveDerivativeX=function(t){return(3*this.ax*t+2*this.bx)*t+this.cx},n.prototype.solveCurveX=function(t,e){void 0===e&&(e=1e-6);var r,n,i,a,o;for(i=t,o=0;o<8;o++){if(a=this.sampleCurveX(i)-t,Math.abs(a)<e)return i;var s=this.sampleCurveDerivativeX(i);if(Math.abs(s)<1e-6)break;i-=a/s}if(r=0,n=1,(i=t)<r)return r;if(i>n)return n;for(;r<n;){if(a=this.sampleCurveX(i),Math.abs(a-t)<e)return i;t>a?r=i:n=i,i=.5*(n-r)+r}return i},n.prototype.solve=function(t,e){return this.sampleCurveY(this.solveCurveX(t,e))}},{}],545:[function(t,e,r){\"use strict\";function n(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function i(t,e,r){if(t&&u.isObject(t)&&t instanceof n)return t;var i=new n;return i.parse(t,e,r),i}function a(t){return u.isString(t)&&(t=i(t)),t instanceof n?t.format():n.prototype.format.call(t)}function o(t,e){return i(t,!1,!0).resolve(e)}function s(t,e){return t?i(t,!1,!0).resolveObject(e):e}var l=t(\"punycode\"),u=t(\"./util\");r.parse=i,r.resolve=o,r.resolveObject=s,r.format=a,r.Url=n;var c=/^([a-z0-9.+-]+:)/i,h=/:[0-9]*$/,f=/^(\\/\\/?(?!\\/)[^\\?\\s]*)(\\?[^\\s]*)?$/,d=[\"<\",\">\",'\"',\"`\",\" \",\"\\r\",\"\\n\",\"\\t\"],p=[\"{\",\"}\",\"|\",\"\\\\\",\"^\",\"`\"].concat(d),m=[\"'\"].concat(p),v=[\"%\",\"/\",\"?\",\";\",\"#\"].concat(m),g=[\"/\",\"?\",\"#\"],y=/^[+a-z0-9A-Z_-]{0,63}$/,b=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,x={javascript:!0,\"javascript:\":!0},_={javascript:!0,\"javascript:\":!0},w={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,\"http:\":!0,\"https:\":!0,\"ftp:\":!0,\"gopher:\":!0,\"file:\":!0},M=t(\"querystring\");n.prototype.parse=function(t,e,r){if(!u.isString(t))throw new TypeError(\"Parameter 'url' must be a string, not \"+typeof t);var n=t.indexOf(\"?\"),i=-1!==n&&n<t.indexOf(\"#\")?\"?\":\"#\",a=t.split(i),o=/\\\\/g;a[0]=a[0].replace(o,\"/\"),t=a.join(i);var s=t;if(s=s.trim(),!r&&1===t.split(\"#\").length){var h=f.exec(s);if(h)return this.path=s,this.href=s,this.pathname=h[1],h[2]?(this.search=h[2],this.query=e?M.parse(this.search.substr(1)):this.search.substr(1)):e&&(this.search=\"\",this.query={}),this}var d=c.exec(s);if(d){d=d[0];var p=d.toLowerCase();this.protocol=p,s=s.substr(d.length)}if(r||d||s.match(/^\\/\\/[^@\\/]+@[^@\\/]+/)){var k=\"//\"===s.substr(0,2);!k||d&&_[d]||(s=s.substr(2),this.slashes=!0)}if(!_[d]&&(k||d&&!w[d])){for(var A=-1,T=0;T<g.length;T++){var S=s.indexOf(g[T]);-1!==S&&(-1===A||S<A)&&(A=S)}var E,L;L=-1===A?s.lastIndexOf(\"@\"):s.lastIndexOf(\"@\",A),-1!==L&&(E=s.slice(0,L),s=s.slice(L+1),this.auth=decodeURIComponent(E)),A=-1;for(var T=0;T<v.length;T++){var S=s.indexOf(v[T]);-1!==S&&(-1===A||S<A)&&(A=S)}-1===A&&(A=s.length),this.host=s.slice(0,A),s=s.slice(A),this.parseHost(),this.hostname=this.hostname||\"\";var C=\"[\"===this.hostname[0]&&\"]\"===this.hostname[this.hostname.length-1];if(!C)for(var I=this.hostname.split(/\\./),T=0,z=I.length;T<z;T++){var D=I[T];if(D&&!D.match(y)){for(var P=\"\",O=0,R=D.length;O<R;O++)D.charCodeAt(O)>127?P+=\"x\":P+=D[O];if(!P.match(y)){var F=I.slice(0,T),j=I.slice(T+1),N=D.match(b);N&&(F.push(N[1]),j.unshift(N[2])),j.length&&(s=\"/\"+j.join(\".\")+s),this.hostname=F.join(\".\");break}}}this.hostname.length>255?this.hostname=\"\":this.hostname=this.hostname.toLowerCase(),C||(this.hostname=l.toASCII(this.hostname));var B=this.port?\":\"+this.port:\"\",U=this.hostname||\"\";this.host=U+B,this.href+=this.host,C&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),\"/\"!==s[0]&&(s=\"/\"+s))}if(!x[p])for(var T=0,z=m.length;T<z;T++){var V=m[T];if(-1!==s.indexOf(V)){var H=encodeURIComponent(V);H===V&&(H=escape(V)),s=s.split(V).join(H)}}var q=s.indexOf(\"#\");-1!==q&&(this.hash=s.substr(q),s=s.slice(0,q));var G=s.indexOf(\"?\");if(-1!==G?(this.search=s.substr(G),this.query=s.substr(G+1),e&&(this.query=M.parse(this.query)),s=s.slice(0,G)):e&&(this.search=\"\",this.query={}),s&&(this.pathname=s),w[p]&&this.hostname&&!this.pathname&&(this.pathname=\"/\"),this.pathname||this.search){var B=this.pathname||\"\",Y=this.search||\"\";this.path=B+Y}return this.href=this.format(),this},n.prototype.format=function(){var t=this.auth||\"\";t&&(t=encodeURIComponent(t),t=t.replace(/%3A/i,\":\"),t+=\"@\");var e=this.protocol||\"\",r=this.pathname||\"\",n=this.hash||\"\",i=!1,a=\"\";this.host?i=t+this.host:this.hostname&&(i=t+(-1===this.hostname.indexOf(\":\")?this.hostname:\"[\"+this.hostname+\"]\"),this.port&&(i+=\":\"+this.port)),this.query&&u.isObject(this.query)&&Object.keys(this.query).length&&(a=M.stringify(this.query));var o=this.search||a&&\"?\"+a||\"\";return e&&\":\"!==e.substr(-1)&&(e+=\":\"),this.slashes||(!e||w[e])&&!1!==i?(i=\"//\"+(i||\"\"),r&&\"/\"!==r.charAt(0)&&(r=\"/\"+r)):i||(i=\"\"),n&&\"#\"!==n.charAt(0)&&(n=\"#\"+n),o&&\"?\"!==o.charAt(0)&&(o=\"?\"+o),r=r.replace(/[?#]/g,function(t){return encodeURIComponent(t)}),o=o.replace(\"#\",\"%23\"),e+i+r+o+n},n.prototype.resolve=function(t){return this.resolveObject(i(t,!1,!0)).format()},n.prototype.resolveObject=function(t){if(u.isString(t)){var e=new n;e.parse(t,!1,!0),t=e}for(var r=new n,i=Object.keys(this),a=0;a<i.length;a++){var o=i[a];r[o]=this[o]}if(r.hash=t.hash,\"\"===t.href)return r.href=r.format(),r;if(t.slashes&&!t.protocol){for(var s=Object.keys(t),l=0;l<s.length;l++){var c=s[l];\"protocol\"!==c&&(r[c]=t[c])}return w[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname=\"/\"),r.href=r.format(),r}if(t.protocol&&t.protocol!==r.protocol){if(!w[t.protocol]){for(var h=Object.keys(t),f=0;f<h.length;f++){var d=h[f];r[d]=t[d]}return r.href=r.format(),r}if(r.protocol=t.protocol,t.host||_[t.protocol])r.pathname=t.pathname;else{for(var p=(t.pathname||\"\").split(\"/\");p.length&&!(t.host=p.shift()););t.host||(t.host=\"\"),t.hostname||(t.hostname=\"\"),\"\"!==p[0]&&p.unshift(\"\"),p.length<2&&p.unshift(\"\"),r.pathname=p.join(\"/\")}if(r.search=t.search,r.query=t.query,r.host=t.host||\"\",r.auth=t.auth,r.hostname=t.hostname||t.host,r.port=t.port,r.pathname||r.search){var m=r.pathname||\"\",v=r.search||\"\";r.path=m+v}return r.slashes=r.slashes||t.slashes,r.href=r.format(),r}var g=r.pathname&&\"/\"===r.pathname.charAt(0),y=t.host||t.pathname&&\"/\"===t.pathname.charAt(0),b=y||g||r.host&&t.pathname,x=b,M=r.pathname&&r.pathname.split(\"/\")||[],p=t.pathname&&t.pathname.split(\"/\")||[],k=r.protocol&&!w[r.protocol];if(k&&(r.hostname=\"\",r.port=null,r.host&&(\"\"===M[0]?M[0]=r.host:M.unshift(r.host)),r.host=\"\",t.protocol&&(t.hostname=null,t.port=null,t.host&&(\"\"===p[0]?p[0]=t.host:p.unshift(t.host)),t.host=null),b=b&&(\"\"===p[0]||\"\"===M[0])),y)r.host=t.host||\"\"===t.host?t.host:r.host,r.hostname=t.hostname||\"\"===t.hostname?t.hostname:r.hostname,r.search=t.search,r.query=t.query,M=p;else if(p.length)M||(M=[]),M.pop(),M=M.concat(p),r.search=t.search,r.query=t.query;else if(!u.isNullOrUndefined(t.search)){if(k){r.hostname=r.host=M.shift();var A=!!(r.host&&r.host.indexOf(\"@\")>0)&&r.host.split(\"@\");A&&(r.auth=A.shift(),r.host=r.hostname=A.shift())}return r.search=t.search,r.query=t.query,u.isNull(r.pathname)&&u.isNull(r.search)||(r.path=(r.pathname?r.pathname:\"\")+(r.search?r.search:\"\")),r.href=r.format(),r}if(!M.length)return r.pathname=null,r.search?r.path=\"/\"+r.search:r.path=null,r.href=r.format(),r;for(var T=M.slice(-1)[0],S=(r.host||t.host||M.length>1)&&(\".\"===T||\"..\"===T)||\"\"===T,E=0,L=M.length;L>=0;L--)T=M[L],\".\"===T?M.splice(L,1):\"..\"===T?(M.splice(L,1),E++):E&&(M.splice(L,1),E--);if(!b&&!x)for(;E--;E)M.unshift(\"..\");!b||\"\"===M[0]||M[0]&&\"/\"===M[0].charAt(0)||M.unshift(\"\"),S&&\"/\"!==M.join(\"/\").substr(-1)&&M.push(\"\");var C=\"\"===M[0]||M[0]&&\"/\"===M[0].charAt(0);if(k){r.hostname=r.host=C?\"\":M.length?M.shift():\"\";var A=!!(r.host&&r.host.indexOf(\"@\")>0)&&r.host.split(\"@\");A&&(r.auth=A.shift(),r.host=r.hostname=A.shift())}return b=b||r.host&&M.length,b&&!C&&M.unshift(\"\"),M.length?r.pathname=M.join(\"/\"):(r.pathname=null,r.path=null),u.isNull(r.pathname)&&u.isNull(r.search)||(r.path=(r.pathname?r.pathname:\"\")+(r.search?r.search:\"\")),r.auth=t.auth||r.auth,r.slashes=r.slashes||t.slashes,r.href=r.format(),r},n.prototype.parseHost=function(){var t=this.host,e=h.exec(t);e&&(e=e[0],\":\"!==e&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)}},{\"./util\":546,punycode:488,querystring:492}],546:[function(t,e,r){\"use strict\";e.exports={isString:function(t){return\"string\"==typeof t},isObject:function(t){return\"object\"==typeof t&&null!==t},isNull:function(t){return null===t},isNullOrUndefined:function(t){return null==t}}},{}],547:[function(t,e,r){\"function\"==typeof Object.create?e.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}},{}],548:[function(t,e,r){e.exports=function(t){return t&&\"object\"==typeof t&&\"function\"==typeof t.copy&&\"function\"==typeof t.fill&&\"function\"==typeof t.readUInt8}},{}],549:[function(t,e,r){(function(e,n){function i(t,e){var n={seen:[],stylize:o};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),m(e)?n.showHidden=e:e&&r._extend(n,e),_(n.showHidden)&&(n.showHidden=!1),_(n.depth)&&(n.depth=2),_(n.colors)&&(n.colors=!1),_(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=a),l(n,t,n.depth)}function a(t,e){var r=i.styles[e];return r?\"\\x1b[\"+i.colors[r][0]+\"m\"+t+\"\\x1b[\"+i.colors[r][1]+\"m\":t}function o(t,e){return t}function s(t){var e={};return t.forEach(function(t,r){e[t]=!0}),e}function l(t,e,n){if(t.customInspect&&e&&T(e.inspect)&&e.inspect!==r.inspect&&(!e.constructor||e.constructor.prototype!==e)){var i=e.inspect(n,t);return b(i)||(i=l(t,i,n)),i}var a=u(t,e);if(a)return a;var o=Object.keys(e),m=s(o);if(t.showHidden&&(o=Object.getOwnPropertyNames(e)),A(e)&&(o.indexOf(\"message\")>=0||o.indexOf(\"description\")>=0))return c(e);if(0===o.length){if(T(e)){var v=e.name?\": \"+e.name:\"\";return t.stylize(\"[Function\"+v+\"]\",\"special\")}if(w(e))return t.stylize(RegExp.prototype.toString.call(e),\"regexp\");if(k(e))return t.stylize(Date.prototype.toString.call(e),\"date\");if(A(e))return c(e)}var g=\"\",y=!1,x=[\"{\",\"}\"];if(p(e)&&(y=!0,x=[\"[\",\"]\"]),T(e)){g=\" [Function\"+(e.name?\": \"+e.name:\"\")+\"]\"}if(w(e)&&(g=\" \"+RegExp.prototype.toString.call(e)),k(e)&&(g=\" \"+Date.prototype.toUTCString.call(e)),A(e)&&(g=\" \"+c(e)),0===o.length&&(!y||0==e.length))return x[0]+g+x[1];if(n<0)return w(e)?t.stylize(RegExp.prototype.toString.call(e),\"regexp\"):t.stylize(\"[Object]\",\"special\");t.seen.push(e);var _;return _=y?h(t,e,n,m,o):o.map(function(r){return f(t,e,n,m,r,y)}),t.seen.pop(),d(_,g,x)}function u(t,e){if(_(e))return t.stylize(\"undefined\",\"undefined\");if(b(e)){var r=\"'\"+JSON.stringify(e).replace(/^\"|\"$/g,\"\").replace(/'/g,\"\\\\'\").replace(/\\\\\"/g,'\"')+\"'\";return t.stylize(r,\"string\")}return y(e)?t.stylize(\"\"+e,\"number\"):m(e)?t.stylize(\"\"+e,\"boolean\"):v(e)?t.stylize(\"null\",\"null\"):void 0}function c(t){return\"[\"+Error.prototype.toString.call(t)+\"]\"}function h(t,e,r,n,i){for(var a=[],o=0,s=e.length;o<s;++o)I(e,String(o))?a.push(f(t,e,r,n,String(o),!0)):a.push(\"\");return i.forEach(function(i){i.match(/^\\d+$/)||a.push(f(t,e,r,n,i,!0))}),a}function f(t,e,r,n,i,a){var o,s,u;if(u=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]},u.get?s=u.set?t.stylize(\"[Getter/Setter]\",\"special\"):t.stylize(\"[Getter]\",\"special\"):u.set&&(s=t.stylize(\"[Setter]\",\"special\")),I(n,i)||(o=\"[\"+i+\"]\"),s||(t.seen.indexOf(u.value)<0?(s=v(r)?l(t,u.value,null):l(t,u.value,r-1),s.indexOf(\"\\n\")>-1&&(s=a?s.split(\"\\n\").map(function(t){return\" \"+t}).join(\"\\n\").substr(2):\"\\n\"+s.split(\"\\n\").map(function(t){return\" \"+t}).join(\"\\n\"))):s=t.stylize(\"[Circular]\",\"special\")),_(o)){if(a&&i.match(/^\\d+$/))return s;o=JSON.stringify(\"\"+i),o.match(/^\"([a-zA-Z_][a-zA-Z_0-9]*)\"$/)?(o=o.substr(1,o.length-2),o=t.stylize(o,\"name\")):(o=o.replace(/'/g,\"\\\\'\").replace(/\\\\\"/g,'\"').replace(/(^\"|\"$)/g,\"'\"),o=t.stylize(o,\"string\"))}return o+\": \"+s}function d(t,e,r){var n=0;return t.reduce(function(t,e){return n++,e.indexOf(\"\\n\")>=0&&n++,t+e.replace(/\\u001b\\[\\d\\d?m/g,\"\").length+1},0)>60?r[0]+(\"\"===e?\"\":e+\"\\n \")+\" \"+t.join(\",\\n \")+\" \"+r[1]:r[0]+e+\" \"+t.join(\", \")+\" \"+r[1]}function p(t){return Array.isArray(t)}function m(t){return\"boolean\"==typeof t}function v(t){return null===t}function g(t){return null==t}function y(t){return\"number\"==typeof t}function b(t){return\"string\"==typeof t}function x(t){return\"symbol\"==typeof t}function _(t){return void 0===t}function w(t){return M(t)&&\"[object RegExp]\"===E(t)}function M(t){return\"object\"==typeof t&&null!==t}function k(t){return M(t)&&\"[object Date]\"===E(t)}function A(t){return M(t)&&(\"[object Error]\"===E(t)||t instanceof Error)}function T(t){return\"function\"==typeof t}function S(t){return null===t||\"boolean\"==typeof t||\"number\"==typeof t||\"string\"==typeof t||\"symbol\"==typeof t||void 0===t}function E(t){return Object.prototype.toString.call(t)}function L(t){return t<10?\"0\"+t.toString(10):t.toString(10)}function C(){var t=new Date,e=[L(t.getHours()),L(t.getMinutes()),L(t.getSeconds())].join(\":\");return[t.getDate(),O[t.getMonth()],e].join(\" \")}function I(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var z=/%[sdj%]/g;r.format=function(t){if(!b(t)){for(var e=[],r=0;r<arguments.length;r++)e.push(i(arguments[r]));return e.join(\" \")}for(var r=1,n=arguments,a=n.length,o=String(t).replace(z,function(t){if(\"%%\"===t)return\"%\";if(r>=a)return t;switch(t){case\"%s\":return String(n[r++]);case\"%d\":return Number(n[r++]);case\"%j\":try{return JSON.stringify(n[r++])}catch(t){return\"[Circular]\"}default:return t}}),s=n[r];r<a;s=n[++r])v(s)||!M(s)?o+=\" \"+s:o+=\" \"+i(s);return o},r.deprecate=function(t,i){function a(){if(!o){if(e.throwDeprecation)throw new Error(i);e.traceDeprecation?console.trace(i):console.error(i),o=!0}return t.apply(this,arguments)}if(_(n.process))return function(){return r.deprecate(t,i).apply(this,arguments)};if(!0===e.noDeprecation)return t;var o=!1;return a};var D,P={};r.debuglog=function(t){if(_(D)&&(D=e.env.NODE_DEBUG||\"\"),t=t.toUpperCase(),!P[t])if(new RegExp(\"\\\\b\"+t+\"\\\\b\",\"i\").test(D)){var n=e.pid;P[t]=function(){var e=r.format.apply(r,arguments);console.error(\"%s %d: %s\",t,n,e)}}else P[t]=function(){};return P[t]},r.inspect=i,i.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},i.styles={special:\"cyan\",number:\"yellow\",boolean:\"yellow\",undefined:\"grey\",null:\"bold\",string:\"green\",date:\"magenta\",regexp:\"red\"},r.isArray=p,r.isBoolean=m,r.isNull=v,r.isNullOrUndefined=g,r.isNumber=y,r.isString=b,r.isSymbol=x,r.isUndefined=_,r.isRegExp=w,r.isObject=M,r.isDate=k,r.isError=A,r.isFunction=T,r.isPrimitive=S,r.isBuffer=t(\"./support/isBuffer\");var O=[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\"];r.log=function(){console.log(\"%s - %s\",C(),r.format.apply(r,arguments))},r.inherits=t(\"inherits\"),r._extend=function(t,e){if(!e||!M(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t}}).call(this,t(\"_process\"),\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{\"./support/isBuffer\":548,_process:487,inherits:547}],550:[function(t,e,r){e.exports.VectorTile=t(\"./lib/vectortile.js\"),e.exports.VectorTileFeature=t(\"./lib/vectortilefeature.js\"),e.exports.VectorTileLayer=t(\"./lib/vectortilelayer.js\")},{\"./lib/vectortile.js\":551,\"./lib/vectortilefeature.js\":552,\"./lib/vectortilelayer.js\":553}],551:[function(t,e,r){\"use strict\";function n(t,e){this.layers=t.readFields(i,{},e)}function i(t,e,r){if(3===t){var n=new a(r,r.readVarint()+r.pos);n.length&&(e[n.name]=n)}}var a=t(\"./vectortilelayer\");e.exports=n},{\"./vectortilelayer\":553}],552:[function(t,e,r){\"use strict\";function n(t,e,r,n,a){this.properties={},this.extent=r,this.type=0,this._pbf=t,this._geometry=-1,this._keys=n,this._values=a,t.readFields(i,this,e)}function i(t,e,r){1==t?e.id=r.readVarint():2==t?a(r,e):3==t?e.type=r.readVarint():4==t&&(e._geometry=r.pos)}function a(t,e){for(var r=t.readVarint()+t.pos;t.pos<r;){var n=e._keys[t.readVarint()],i=e._values[t.readVarint()];e.properties[n]=i}}function o(t){var e=t.length;if(e<=1)return[t];for(var r,n,i=[],a=0;a<e;a++){var o=s(t[a]);0!==o&&(void 0===n&&(n=o<0),n===o<0?(r&&i.push(r),r=[t[a]]):r.push(t[a]))}return r&&i.push(r),i}function s(t){for(var e,r,n=0,i=0,a=t.length,o=a-1;i<a;o=i++)e=t[i],r=t[o],n+=(r.x-e.x)*(e.y+r.y);return n}var l=t(\"point-geometry\");e.exports=n,n.types=[\"Unknown\",\"Point\",\"LineString\",\"Polygon\"],n.prototype.loadGeometry=function(){var t=this._pbf;t.pos=this._geometry;for(var e,r=t.readVarint()+t.pos,n=1,i=0,a=0,o=0,s=[];t.pos<r;){if(!i){var u=t.readVarint();n=7&u,i=u>>3}if(i--,1===n||2===n)a+=t.readSVarint(),o+=t.readSVarint(),1===n&&(e&&s.push(e),e=[]),e.push(new l(a,o));else{if(7!==n)throw new Error(\"unknown command \"+n);e&&e.push(e[0].clone())}}return e&&s.push(e),s},n.prototype.bbox=function(){var t=this._pbf;t.pos=this._geometry;for(var e=t.readVarint()+t.pos,r=1,n=0,i=0,a=0,o=1/0,s=-1/0,l=1/0,u=-1/0;t.pos<e;){if(!n){var c=t.readVarint();r=7&c,n=c>>3}if(n--,1===r||2===r)i+=t.readSVarint(),a+=t.readSVarint(),i<o&&(o=i),i>s&&(s=i),a<l&&(l=a),a>u&&(u=a);else if(7!==r)throw new Error(\"unknown command \"+r)}return[o,l,s,u]},n.prototype.toGeoJSON=function(t,e,r){function i(t){for(var e=0;e<t.length;e++){var r=t[e],n=180-360*(r.y+c)/l;t[e]=[360*(r.x+u)/l-180,360/Math.PI*Math.atan(Math.exp(n*Math.PI/180))-90]}}var a,s,l=this.extent*Math.pow(2,r),u=this.extent*t,c=this.extent*e,h=this.loadGeometry(),f=n.types[this.type];switch(this.type){case 1:var d=[];for(a=0;a<h.length;a++)d[a]=h[a][0];h=d,i(h);break;case 2:for(a=0;a<h.length;a++)i(h[a]);break;case 3:for(h=o(h),a=0;a<h.length;a++)for(s=0;s<h[a].length;s++)i(h[a][s])}1===h.length?h=h[0]:f=\"Multi\"+f;var p={type:\"Feature\",geometry:{type:f,coordinates:h},properties:this.properties};return\"id\"in this&&(p.id=this.id),p}},{\"point-geometry\":484}],553:[function(t,e,r){\"use strict\";function n(t,e){this.version=1,this.name=null,this.extent=4096,this.length=0,this._pbf=t,this._keys=[],this._values=[],this._features=[],t.readFields(i,this,e),this.length=this._features.length}function i(t,e,r){15===t?e.version=r.readVarint():1===t?e.name=r.readString():5===t?e.extent=r.readVarint():2===t?e._features.push(r.pos):3===t?e._keys.push(r.readString()):4===t&&e._values.push(a(r))}function a(t){for(var e=null,r=t.readVarint()+t.pos;t.pos<r;){var n=t.readVarint()>>3;e=1===n?t.readString():2===n?t.readFloat():3===n?t.readDouble():4===n?t.readVarint64():5===n?t.readVarint():6===n?t.readSVarint():7===n?t.readBoolean():null}return e}var o=t(\"./vectortilefeature.js\");e.exports=n,n.prototype.feature=function(t){if(t<0||t>=this._features.length)throw new Error(\"feature index out of bounds\");this._pbf.pos=this._features[t];var e=this._pbf.readVarint()+this._pbf.pos;return new o(this._pbf,e,this.extent,this._keys,this._values)}},{\"./vectortilefeature.js\":552}],554:[function(t,e,r){\"use strict\";function n(t,e){return\"object\"==typeof e&&null!==e||(e={}),i(t,e.canvas||a,e.context||o,e)}e.exports=n;var i=t(\"./lib/vtext\"),a=null,o=null;\"undefined\"!=typeof document&&(a=document.createElement(\"canvas\"),a.width=8192,a.height=1024,o=a.getContext(\"2d\"))},{\"./lib/vtext\":555}],555:[function(t,e,r){\"use strict\";function n(t,e,r){for(var n=e.textAlign||\"start\",i=e.textBaseline||\"alphabetic\",a=[1<<30,1<<30],o=[0,0],s=t.length,l=0;l<s;++l)for(var u=t[l],c=0;c<2;++c)a[c]=0|Math.min(a[c],u[c]),o[c]=0|Math.max(o[c],u[c]);var h=0;switch(n){case\"center\":h=-.5*(a[0]+o[0]);break;case\"right\":case\"end\":h=-o[0];break;case\"left\":case\"start\":h=-a[0];break;default:throw new Error(\"vectorize-text: Unrecognized textAlign: '\"+n+\"'\")}var f=0;switch(i){case\"hanging\":case\"top\":f=-a[1];break;case\"middle\":f=-.5*(a[1]+o[1]);break;case\"alphabetic\":case\"ideographic\":f=-3*r;break;case\"bottom\":f=-o[1];break;default:throw new Error(\"vectorize-text: Unrecoginized textBaseline: '\"+i+\"'\")}var d=1/r;return\"lineHeight\"in e?d*=+e.lineHeight:\"width\"in e?d=e.width/(o[0]-a[0]):\"height\"in e&&(d=e.height/(o[1]-a[1])),t.map(function(t){return[d*(t[0]+h),d*(t[1]+f)]})}function i(t,e,r,n){var i=0|Math.ceil(e.measureText(r).width+2*n);if(i>8192)throw new Error(\"vectorize-text: String too long (sorry, this will get fixed later)\");var a=3*n;t.height<a&&(t.height=a),e.fillStyle=\"#000\",e.fillRect(0,0,t.width,t.height),e.fillStyle=\"#fff\",e.fillText(r,n,2*n);var o=e.getImageData(0,0,i,a);return c(o.data,[a,i,4]).pick(-1,-1,0).transpose(1,0)}function a(t,e){var r=u(t,128);return e?h(r.cells,r.positions,.25):{edges:r.cells,positions:r.positions}}function o(t,e,r,i){var o=a(t,i),s=n(o.positions,e,r),l=o.edges,u=\"ccw\"===e.orientation;if(f(s,l),e.polygons||e.polygon||e.polyline){for(var c=p(l,s),h=new Array(c.length),m=0;m<c.length;++m){for(var v=c[m],g=new Array(v.length),y=0;y<v.length;++y){for(var b=v[y],x=new Array(b.length),_=0;_<b.length;++_)x[_]=s[b[_]].slice();u&&x.reverse(),g[y]=x}h[m]=g}return h}return e.triangles||e.triangulate||e.triangle?{cells:d(s,l,{delaunay:!1,exterior:!1,interior:!0}),positions:s}:{edges:l,positions:s}}function s(t,e,r){try{return o(t,e,r,!0)}catch(t){}try{return o(t,e,r,!1)}catch(t){}return e.polygons||e.polyline||e.polygon?[]:e.triangles||e.triangulate||e.triangle?{cells:[],positions:[]}:{edges:[],positions:[]}}function l(t,e,r,n){var a=n.size||64,o=n.font||\"normal\";return r.font=a+\"px \"+o,r.textAlign=\"start\",r.textBaseline=\"alphabetic\",r.direction=\"ltr\",s(i(e,r,t,a),n,a)}e.exports=l,e.exports.processPixels=s;var u=t(\"surface-nets\"),c=t(\"ndarray\"),h=t(\"simplify-planar-graph\"),f=t(\"clean-pslg\"),d=t(\"cdt2d\"),p=t(\"planar-graph-to-polyline\")},{cdt2d:79,\"clean-pslg\":89,ndarray:467,\"planar-graph-to-polyline\":483,\"simplify-planar-graph\":523,\"surface-nets\":531}],556:[function(t,e,r){function n(t){var e=[];for(var r in t.layers)e.push(a(t.layers[r]));var n=new c;return h.tile.write({layers:e},n),n.finish()}function i(t){var e={};for(var r in t)e[r]=new f(t[r].features),e[r].name=r;return n({layers:e})}function a(t){for(var e={name:t.name||\"\",version:t.version||1,extent:t.extent||4096,keys:[],values:[],features:[]},r={},n={},i=0;i<t.length;i++){var a=t.feature(i);a.geometry=l(a.loadGeometry());var o=[];for(var s in a.properties){var c=r[s];void 0===c&&(e.keys.push(s),c=e.keys.length-1,r[s]=c);var h=u(a.properties[s]),f=n[h.key];void 0===f&&(e.values.push(h),f=e.values.length-1,n[h.key]=f),o.push(c),o.push(f)}a.tags=o,e.features.push(a)}return e}function o(t,e){return(e<<3)+(7&t)}function s(t){return t<<1^t>>31}function l(t){for(var e=[],r=0,n=0,i=t.length,a=0;a<i;a++){var l=t[a];e.push(o(1,1));for(var u=0;u<l.length;u++){1===u&&e.push(o(2,l.length-1));var c=l[u].x-r,h=l[u].y-n;e.push(s(c),s(h)),r+=c,n+=h}}return e}function u(t){var e,r=typeof t;return\"string\"===r?e={string_value:t}:\"boolean\"===r?e={bool_value:t}:\"number\"===r?e=t%1!=0?{double_value:t}:t<0?{sint_value:t}:{uint_value:t}:(t=JSON.stringify(t),e={string_value:t}),e.key=r+\":\"+t,e}var c=t(\"pbf\"),h=t(\"./vector-tile-pb\"),f=t(\"./lib/geojson_wrapper\");e.exports=n,e.exports.fromVectorTileJs=n,e.exports.fromGeojsonVt=i,e.exports.GeoJSONWrapper=f},{\"./lib/geojson_wrapper\":557,\"./vector-tile-pb\":558,pbf:478}],557:[function(t,e,r){\"use strict\";function n(t){this.features=t,this.length=t.length}function i(t){this.id=\"number\"==typeof t.id?t.id:void 0,this.type=t.type,this.rawGeometry=1===t.type?[t.geometry]:t.geometry,this.properties=t.tags,this.extent=4096}var a=t(\"point-geometry\"),o=t(\"vector-tile\").VectorTileFeature;e.exports=n,n.prototype.feature=function(t){return new i(this.features[t])},i.prototype.loadGeometry=function(){var t=this.rawGeometry;this.geometry=[];for(var e=0;e<t.length;e++){for(var r=t[e],n=[],i=0;i<r.length;i++)n.push(new a(r[i][0],r[i][1]));this.geometry.push(n)}return this.geometry},i.prototype.bbox=function(){this.geometry||this.loadGeometry();for(var t=this.geometry,e=1/0,r=-1/0,n=1/0,i=-1/0,a=0;a<t.length;a++)for(var o=t[a],s=0;s<o.length;s++){var l=o[s];e=Math.min(e,l.x),r=Math.max(r,l.x),n=Math.min(n,l.y),i=Math.max(i,l.y)}return[e,n,r,i]},i.prototype.toGeoJSON=o.prototype.toGeoJSON},{\"point-geometry\":484,\"vector-tile\":550}],558:[function(t,e,r){\"use strict\";function n(t,e){return t.readFields(i,{layers:[]},e)}function i(t,e,r){3===t&&e.layers.push(f(r,r.readVarint()+r.pos))}function a(t,e){var r;if(void 0!==t.layers)for(r=0;r<t.layers.length;r++)e.writeMessage(3,p,t.layers[r])}function o(t,e){return t.readFields(s,{},e)}function s(t,e,r){1===t?e.string_value=r.readString():2===t?e.float_value=r.readFloat():3===t?e.double_value=r.readDouble():4===t?e.int_value=r.readVarint():5===t?e.uint_value=r.readVarint():6===t?e.sint_value=r.readSVarint():7===t&&(e.bool_value=r.readBoolean())}function l(t,e){void 0!==t.string_value&&e.writeStringField(1,t.string_value),void 0!==t.float_value&&e.writeFloatField(2,t.float_value),void 0!==t.double_value&&e.writeDoubleField(3,t.double_value),void 0!==t.int_value&&e.writeVarintField(4,t.int_value),void 0!==t.uint_value&&e.writeVarintField(5,t.uint_value),void 0!==t.sint_value&&e.writeSVarintField(6,t.sint_value),void 0!==t.bool_value&&e.writeBooleanField(7,t.bool_value)}function u(t,e){var r=t.readFields(c,{},e);return void 0===r.type&&(r.type=\"Unknown\"),r}function c(t,e,r){1===t?e.id=r.readVarint():2===t?e.tags=r.readPackedVarint():3===t?e.type=r.readVarint():4===t&&(e.geometry=r.readPackedVarint())}function h(t,e){void 0!==t.id&&e.writeVarintField(1,t.id),void 0!==t.tags&&e.writePackedVarint(2,t.tags),void 0!==t.type&&e.writeVarintField(3,t.type),void 0!==t.geometry&&e.writePackedVarint(4,t.geometry)}function f(t,e){return t.readFields(d,{features:[],keys:[],values:[]},e)}function d(t,e,r){15===t?e.version=r.readVarint():1===t?e.name=r.readString():2===t?e.features.push(u(r,r.readVarint()+r.pos)):3===t?e.keys.push(r.readString()):4===t?e.values.push(o(r,r.readVarint()+r.pos)):5===t&&(e.extent=r.readVarint())}function p(t,e){void 0!==t.version&&e.writeVarintField(15,t.version),void 0!==t.name&&e.writeStringField(1,t.name);var r;if(void 0!==t.features)for(r=0;r<t.features.length;r++)e.writeMessage(2,h,t.features[r]);if(void 0!==t.keys)for(r=0;r<t.keys.length;r++)e.writeStringField(3,t.keys[r]);if(void 0!==t.values)for(r=0;r<t.values.length;r++)e.writeMessage(4,l,t.values[r]);void 0!==t.extent&&e.writeVarintField(5,t.extent)}var m=r.tile={read:n,write:a};m.GeomType={Unknown:0,Point:1,LineString:2,Polygon:3},m.value={read:o,write:l},m.feature={read:u,write:h},m.layer={read:f,write:p}},{}],559:[function(t,e,r){!function(){\"use strict\";function t(e){e.permitHostObjects___&&e.permitHostObjects___(t)}function r(t){return!(t.substr(0,d.length)==d&&\"___\"===t.substr(t.length-3))}function n(t){if(t!==Object(t))throw new TypeError(\"Not an object: \"+t);var e=t[p];if(e&&e.key===t)return e;if(f(t)){e={key:t};try{return h(t,p,{value:e,writable:!1,enumerable:!1,configurable:!1}),e}catch(t){return}}}function i(t){return t.prototype=null,Object.freeze(t)}function a(){y||\"undefined\"==typeof console||(y=!0,console.warn(\"WeakMap should be invoked as new WeakMap(), not WeakMap(). This will be an error in the future.\"))}if(\"undefined\"==typeof ses||!ses.ok||ses.ok()){\"undefined\"!=typeof ses&&(ses.weakMapPermitHostObjects=t);var o=!1;if(\"function\"==typeof WeakMap){var s=WeakMap;if(\"undefined\"!=typeof navigator&&/Firefox/.test(navigator.userAgent));else{var l=new s,u=Object.freeze({});if(l.set(u,1),1===l.get(u))return void(e.exports=WeakMap);o=!0}}var c=(Object.prototype.hasOwnProperty,Object.getOwnPropertyNames),h=Object.defineProperty,f=Object.isExtensible,d=\"weakmap:\",p=d+\"ident:\"+Math.random()+\"___\";if(\"undefined\"!=typeof crypto&&\"function\"==typeof crypto.getRandomValues&&\"function\"==typeof ArrayBuffer&&\"function\"==typeof Uint8Array){var m=new ArrayBuffer(25),v=new Uint8Array(m);crypto.getRandomValues(v),p=d+\"rand:\"+Array.prototype.map.call(v,function(t){return(t%36).toString(36)}).join(\"\")+\"___\"}if(h(Object,\"getOwnPropertyNames\",{value:function(t){return c(t).filter(r)}}),\"getPropertyNames\"in Object){var g=Object.getPropertyNames;h(Object,\"getPropertyNames\",{value:function(t){return g(t).filter(r)}})}!function(){var t=Object.freeze;h(Object,\"freeze\",{value:function(e){return n(e),t(e)}});var e=Object.seal;h(Object,\"seal\",{value:function(t){return n(t),e(t)}});var r=Object.preventExtensions;h(Object,\"preventExtensions\",{value:function(t){return n(t),r(t)}})}();var y=!1,b=0,x=function(){function t(t,e){var r,i=n(t);return i?u in i?i[u]:e:(r=s.indexOf(t),r>=0?l[r]:e)}function e(t){var e=n(t);return e?u in e:s.indexOf(t)>=0}function r(t,e){var r,i=n(t);return i?i[u]=e:(r=s.indexOf(t),r>=0?l[r]=e:(r=s.length,l[r]=e,s[r]=t)),this}function o(t){var e,r,i=n(t);return i?u in i&&delete i[u]:!((e=s.indexOf(t))<0)&&(r=s.length-1,s[e]=void 0,l[e]=l[r],s[e]=s[r],s.length=r,l.length=r,!0)}this instanceof x||a();var s=[],l=[],u=b++;return Object.create(x.prototype,{get___:{value:i(t)},has___:{value:i(e)},set___:{value:i(r)},delete___:{value:i(o)}})};x.prototype=Object.create(Object.prototype,{get:{value:function(t,e){return this.get___(t,e)},writable:!0,configurable:!0},has:{value:function(t){return this.has___(t)},writable:!0,configurable:!0},set:{value:function(t,e){return this.set___(t,e)},writable:!0,configurable:!0},delete:{value:function(t){return this.delete___(t)},writable:!0,configurable:!0}}),\"function\"==typeof s?function(){function r(){function e(t,e){return c?u.has(t)?u.get(t):c.get___(t,e):u.get(t,e)}function r(t){return u.has(t)||!!c&&c.has___(t)}function n(t){var e=!!u.delete(t);return c?c.delete___(t)||e:e}this instanceof x||a()\n", ";var l,u=new s,c=void 0,h=!1;return l=o?function(t,e){return u.set(t,e),u.has(t)||(c||(c=new x),c.set(t,e)),this}:function(t,e){if(h)try{u.set(t,e)}catch(r){c||(c=new x),c.set___(t,e)}else u.set(t,e);return this},Object.create(x.prototype,{get___:{value:i(e)},has___:{value:i(r)},set___:{value:i(l)},delete___:{value:i(n)},permitHostObjects___:{value:i(function(e){if(e!==t)throw new Error(\"bogus call to permitHostObjects___\");h=!0})}})}o&&\"undefined\"!=typeof Proxy&&(Proxy=void 0),r.prototype=x.prototype,e.exports=r,Object.defineProperty(WeakMap.prototype,\"constructor\",{value:WeakMap,enumerable:!1,configurable:!0,writable:!0})}():(\"undefined\"!=typeof Proxy&&(Proxy=void 0),e.exports=x)}}()},{}],560:[function(t,e,r){function n(){var t={};return function(e){if((\"object\"!=typeof e||null===e)&&\"function\"!=typeof e)throw new Error(\"Weakmap-shim: Key must be object\");var r=e.valueOf(t);return r&&r.identity===t?r:i(e,t)}}var i=t(\"./hidden-store.js\");e.exports=n},{\"./hidden-store.js\":561}],561:[function(t,e,r){function n(t,e){var r={identity:e},n=t.valueOf;return Object.defineProperty(t,\"valueOf\",{value:function(t){return t!==e?n.apply(this,arguments):r},writable:!0}),r}e.exports=n},{}],562:[function(t,e,r){function n(){var t=i();return{get:function(e,r){var n=t(e);return n.hasOwnProperty(\"value\")?n.value:r},set:function(e,r){return t(e).value=r,this},has:function(e){return\"value\"in t(e)},delete:function(e){return delete t(e).value}}}var i=t(\"./create-store.js\");e.exports=n},{\"./create-store.js\":560}],563:[function(t,e,r){var n=t(\"get-canvas-context\");e.exports=function(t){return n(\"webgl\",t)}},{\"get-canvas-context\":147}],564:[function(t,e,r){var n=arguments[3],i=arguments[4],a=arguments[5],o=JSON.stringify;e.exports=function(t,e){function r(t){v[t]=!0;for(var e in i[t][1]){var n=i[t][1][e];v[n]||r(n)}}for(var s,l=Object.keys(a),u=0,c=l.length;u<c;u++){var h=l[u],f=a[h].exports;if(f===t||f&&f.default===t){s=h;break}}if(!s){s=Math.floor(Math.pow(16,8)*Math.random()).toString(16);for(var d={},u=0,c=l.length;u<c;u++){var h=l[u];d[h]=h}i[s]=[Function([\"require\",\"module\",\"exports\"],\"(\"+t+\")(self)\"),d]}var p=Math.floor(Math.pow(16,8)*Math.random()).toString(16),m={};m[s]=s,i[p]=[Function([\"require\"],\"var f = require(\"+ o(s) +\");(f.default ? f.default : f)(self);\"),m];var v={};r(p);var g=\"(\"+n+\")({\"+Object.keys(v).map(function(t){return o(t)+\":[\"+i[t][0]+\",\"+o(i[t][1])+\"]\"}).join(\",\")+\"},{},[\"+o(p)+\"])\",y=window.URL||window.webkitURL||window.mozURL||window.msURL,b=new Blob([g],{type:\"text/javascript\"});if(e&&e.bare)return b;var x=y.createObjectURL(b),_=new Worker(x);return _.objectURL=x,_}},{}],565:[function(t,e,r){e.exports.RADIUS=6378137,e.exports.FLATTENING=1/298.257223563,e.exports.POLAR_RADIUS=6356752.3142},{}],566:[function(e,r,n){!function(e,i){\"object\"==typeof n&&void 0!==r?i(n):\"function\"==typeof t&&t.amd?t([\"exports\"],i):i(e.WhooTS=e.WhooTS||{})}(this,function(t){function e(t,e,n,i,a,o){return o=o||{},t+\"?\"+[\"bbox=\"+r(n,i,a),\"format=\"+(o.format||\"image/png\"),\"service=\"+(o.service||\"WMS\"),\"version=\"+(o.version||\"1.1.1\"),\"request=\"+(o.request||\"GetMap\"),\"srs=\"+(o.srs||\"EPSG:3857\"),\"width=\"+(o.width||256),\"height=\"+(o.height||256),\"layers=\"+e].join(\"&\")}function r(t,e,r){e=Math.pow(2,r)-e-1;var i=n(256*t,256*e,r),a=n(256*(t+1),256*(e+1),r);return i[0]+\",\"+i[1]+\",\"+a[0]+\",\"+a[1]}function n(t,e,r){var n=2*Math.PI*6378137/256/Math.pow(2,r);return[t*n-2*Math.PI*6378137/2,e*n-2*Math.PI*6378137/2]}t.getURL=e,t.getTileBBox=r,t.getMercCoords=n,Object.defineProperty(t,\"__esModule\",{value:!0})})},{}],567:[function(t,e,r){function n(t){this.local=this.regionalOptions[t||\"\"]||this.regionalOptions[\"\"]}function i(t,e,r,n){var i,a;if(\"object\"==typeof t)i=t,a=e||{};else{if(!(\"number\"==typeof t&&t>=1888&&t<=2111))throw new Error(\"Solar year outside range 1888-2111\");if(!(\"number\"==typeof e&&e>=1&&e<=12))throw new Error(\"Solar month outside range 1 - 12\");if(!(\"number\"==typeof r&&r>=1&&r<=31))throw new Error(\"Solar day outside range 1 - 31\");i={year:t,month:e,day:r},a=n||{}}var o=p[i.year-p[0]],s=i.year<<9|i.month<<5|i.day;a.year=s>=o?i.year:i.year-1,o=p[a.year-p[0]];var l,u=o>>9&4095,c=o>>5&15,h=31&o,f=new Date(u,c-1,h),m=new Date(i.year,i.month-1,i.day);l=Math.round((m-f)/864e5);var v,g=d[a.year-d[0]];for(v=0;v<13;v++){var y=g&1<<12-v?30:29;if(l<y)break;l-=y}var b=g>>13;return!b||v<b?(a.isIntercalary=!1,a.month=1+v):v===b?(a.isIntercalary=!0,a.month=v):(a.isIntercalary=!1,a.month=v),a.day=1+l,a}function a(t,e,r,n,i){var a,o;if(\"object\"==typeof t)o=t,a=e||{};else{if(!(\"number\"==typeof t&&t>=1888&&t<=2111))throw new Error(\"Lunar year outside range 1888-2111\");if(!(\"number\"==typeof e&&e>=1&&e<=12))throw new Error(\"Lunar month outside range 1 - 12\");if(!(\"number\"==typeof r&&r>=1&&r<=30))throw new Error(\"Lunar day outside range 1 - 30\");var s;\"object\"==typeof n?(s=!1,a=n):(s=!!n,a=i||{}),o={year:t,month:e,day:r,isIntercalary:s}}var l;l=o.day-1;var u,c=d[o.year-d[0]],h=c>>13;u=h?o.month>h?o.month:o.isIntercalary?o.month:o.month-1:o.month-1;for(var f=0;f<u;f++){l+=c&1<<12-f?30:29}var m=p[o.year-p[0]],v=m>>9&4095,g=m>>5&15,y=31&m,b=new Date(v,g-1,y+l);return a.year=b.getFullYear(),a.month=1+b.getMonth(),a.day=b.getDate(),a}var o=t(\"../main\"),s=t(\"object-assign\"),l=o.instance();n.prototype=new o.baseCalendar,s(n.prototype,{name:\"Chinese\",jdEpoch:1721425.5,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{\"\":{name:\"Chinese\",epochs:[\"BEC\",\"EC\"],monthNumbers:function(t,e){if(\"string\"==typeof t){var r=t.match(c);return r?r[0]:\"\"}var n=this._validateYear(t),i=t.month(),a=\"\"+this.toChineseMonth(n,i);return e&&a.length<2&&(a=\"0\"+a),this.isIntercalaryMonth(n,i)&&(a+=\"i\"),a},monthNames:function(t){if(\"string\"==typeof t){var e=t.match(h);return e?e[0]:\"\"}var r=this._validateYear(t),n=t.month(),i=this.toChineseMonth(r,n),a=[\"\\u4e00\\u6708\",\"\\u4e8c\\u6708\",\"\\u4e09\\u6708\",\"\\u56db\\u6708\",\"\\u4e94\\u6708\",\"\\u516d\\u6708\",\"\\u4e03\\u6708\",\"\\u516b\\u6708\",\"\\u4e5d\\u6708\",\"\\u5341\\u6708\",\"\\u5341\\u4e00\\u6708\",\"\\u5341\\u4e8c\\u6708\"][i-1];return this.isIntercalaryMonth(r,n)&&(a=\"\\u95f0\"+a),a},monthNamesShort:function(t){if(\"string\"==typeof t){var e=t.match(f);return e?e[0]:\"\"}var r=this._validateYear(t),n=t.month(),i=this.toChineseMonth(r,n),a=[\"\\u4e00\",\"\\u4e8c\",\"\\u4e09\",\"\\u56db\",\"\\u4e94\",\"\\u516d\",\"\\u4e03\",\"\\u516b\",\"\\u4e5d\",\"\\u5341\",\"\\u5341\\u4e00\",\"\\u5341\\u4e8c\"][i-1];return this.isIntercalaryMonth(r,n)&&(a=\"\\u95f0\"+a),a},parseMonth:function(t,e){t=this._validateYear(t);var r,n=parseInt(e);if(isNaN(n))\"\\u95f0\"===e[0]&&(r=!0,e=e.substring(1)),\"\\u6708\"===e[e.length-1]&&(e=e.substring(0,e.length-1)),n=1+[\"\\u4e00\",\"\\u4e8c\",\"\\u4e09\",\"\\u56db\",\"\\u4e94\",\"\\u516d\",\"\\u4e03\",\"\\u516b\",\"\\u4e5d\",\"\\u5341\",\"\\u5341\\u4e00\",\"\\u5341\\u4e8c\"].indexOf(e);else{var i=e[e.length-1];r=\"i\"===i||\"I\"===i}return this.toMonthIndex(t,n,r)},dayNames:[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"],dayNamesShort:[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],dayNamesMin:[\"Su\",\"Mo\",\"Tu\",\"We\",\"Th\",\"Fr\",\"Sa\"],digits:null,dateFormat:\"yyyy/mm/dd\",firstDay:1,isRTL:!1}},_validateYear:function(t,e){if(t.year&&(t=t.year()),\"number\"!=typeof t||t<1888||t>2111)throw e.replace(/\\{0\\}/,this.local.name);return t},toMonthIndex:function(t,e,r){var n=this.intercalaryMonth(t);if(r&&e!==n||e<1||e>12)throw o.local.invalidMonth.replace(/\\{0\\}/,this.local.name);return n?!r&&e<=n?e-1:e:e-1},toChineseMonth:function(t,e){t.year&&(t=t.year(),e=t.month());var r=this.intercalaryMonth(t),n=r?12:11;if(e<0||e>n)throw o.local.invalidMonth.replace(/\\{0\\}/,this.local.name);return r?e<r?e+1:e:e+1},intercalaryMonth:function(t){return t=this._validateYear(t),d[t-d[0]]>>13},isIntercalaryMonth:function(t,e){t.year&&(t=t.year(),e=t.month());var r=this.intercalaryMonth(t);return!!r&&r===e},leapYear:function(t){return 0!==this.intercalaryMonth(t)},weekOfYear:function(t,e,r){var n,i=this._validateYear(t,o.local.invalidyear),a=p[i-p[0]],s=a>>9&4095,u=a>>5&15,c=31&a;n=l.newDate(s,u,c),n.add(4-(n.dayOfWeek()||7),\"d\");var h=this.toJD(t,e,r)-n.toJD();return 1+Math.floor(h/7)},monthsInYear:function(t){return this.leapYear(t)?13:12},daysInMonth:function(t,e){t.year&&(e=t.month(),t=t.year()),t=this._validateYear(t);var r=d[t-d[0]];if(e>(r>>13?12:11))throw o.local.invalidMonth.replace(/\\{0\\}/,this.local.name);return r&1<<12-e?30:29},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)<6},toJD:function(t,e,r){var n=this._validate(t,s,r,o.local.invalidDate);t=this._validateYear(n.year()),e=n.month(),r=n.day();var i=this.isIntercalaryMonth(t,e),s=this.toChineseMonth(t,e),u=a(t,s,r,i);return l.toJD(u.year,u.month,u.day)},fromJD:function(t){var e=l.fromJD(t),r=i(e.year(),e.month(),e.day()),n=this.toMonthIndex(r.year,r.month,r.isIntercalary);return this.newDate(r.year,n,r.day)},fromString:function(t){var e=t.match(u),r=this._validateYear(+e[1]),n=+e[2],i=!!e[3],a=this.toMonthIndex(r,n,i),o=+e[4];return this.newDate(r,a,o)},add:function(t,e,r){var i=t.year(),a=t.month(),o=this.isIntercalaryMonth(i,a),s=this.toChineseMonth(i,a),l=Object.getPrototypeOf(n.prototype).add.call(this,t,e,r);if(\"y\"===r){var u=l.year(),c=l.month(),h=this.isIntercalaryMonth(u,s),f=o&&h?this.toMonthIndex(u,s,!0):this.toMonthIndex(u,s,!1);f!==c&&l.month(f)}return l}});var u=/^\\s*(-?\\d\\d\\d\\d|\\d\\d)[-\\/](\\d?\\d)([iI]?)[-\\/](\\d?\\d)/m,c=/^\\d?\\d[iI]?/m,h=/^\\u95f0?\\u5341?[\\u4e00\\u4e8c\\u4e09\\u56db\\u4e94\\u516d\\u4e03\\u516b\\u4e5d]?\\u6708/m,f=/^\\u95f0?\\u5341?[\\u4e00\\u4e8c\\u4e09\\u56db\\u4e94\\u516d\\u4e03\\u516b\\u4e5d]?/m;o.calendars.chinese=n;var d=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],p=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904]},{\"../main\":581,\"object-assign\":470}],568:[function(t,e,r){function n(t){this.local=this.regionalOptions[t||\"\"]||this.regionalOptions[\"\"]}var i=t(\"../main\"),a=t(\"object-assign\");n.prototype=new i.baseCalendar,a(n.prototype,{name:\"Coptic\",jdEpoch:1825029.5,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{\"\":{name:\"Coptic\",epochs:[\"BAM\",\"AM\"],monthNames:[\"Thout\",\"Paopi\",\"Hathor\",\"Koiak\",\"Tobi\",\"Meshir\",\"Paremhat\",\"Paremoude\",\"Pashons\",\"Paoni\",\"Epip\",\"Mesori\",\"Pi Kogi Enavot\"],monthNamesShort:[\"Tho\",\"Pao\",\"Hath\",\"Koi\",\"Tob\",\"Mesh\",\"Pat\",\"Pad\",\"Pash\",\"Pao\",\"Epi\",\"Meso\",\"PiK\"],dayNames:[\"Tkyriaka\",\"Pesnau\",\"Pshoment\",\"Peftoou\",\"Ptiou\",\"Psoou\",\"Psabbaton\"],dayNamesShort:[\"Tky\",\"Pes\",\"Psh\",\"Pef\",\"Pti\",\"Pso\",\"Psa\"],dayNamesMin:[\"Tk\",\"Pes\",\"Psh\",\"Pef\",\"Pt\",\"Pso\",\"Psa\"],digits:null,dateFormat:\"dd/mm/yyyy\",firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,i.local.invalidYear),t=e.year()+(e.year()<0?1:0);return t%4==3||t%4==-1},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,i.local.invalidYear||i.regionalOptions[\"\"].invalidYear),13},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),\"d\"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,i.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(13===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)<6},toJD:function(t,e,r){var n=this._validate(t,e,r,i.local.invalidDate);return t=n.year(),t<0&&t++,n.day()+30*(n.month()-1)+365*(t-1)+Math.floor(t/4)+this.jdEpoch-1},fromJD:function(t){var e=Math.floor(t)+.5-this.jdEpoch,r=Math.floor((e-Math.floor((e+366)/1461))/365)+1;r<=0&&r--,e=Math.floor(t)+.5-this.newDate(r,1,1).toJD();var n=Math.floor(e/30)+1,i=e-30*(n-1)+1;return this.newDate(r,n,i)}}),i.calendars.coptic=n},{\"../main\":581,\"object-assign\":470}],569:[function(t,e,r){function n(t){this.local=this.regionalOptions[t||\"\"]||this.regionalOptions[\"\"]}var i=t(\"../main\"),a=t(\"object-assign\");n.prototype=new i.baseCalendar,a(n.prototype,{name:\"Discworld\",jdEpoch:1721425.5,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{\"\":{name:\"Discworld\",epochs:[\"BUC\",\"UC\"],monthNames:[\"Ick\",\"Offle\",\"February\",\"March\",\"April\",\"May\",\"June\",\"Grune\",\"August\",\"Spune\",\"Sektober\",\"Ember\",\"December\"],monthNamesShort:[\"Ick\",\"Off\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Gru\",\"Aug\",\"Spu\",\"Sek\",\"Emb\",\"Dec\"],dayNames:[\"Sunday\",\"Octeday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"],dayNamesShort:[\"Sun\",\"Oct\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],dayNamesMin:[\"Su\",\"Oc\",\"Mo\",\"Tu\",\"We\",\"Th\",\"Fr\",\"Sa\"],digits:null,dateFormat:\"yyyy/mm/dd\",firstDay:2,isRTL:!1}},leapYear:function(t){return this._validate(t,this.minMonth,this.minDay,i.local.invalidYear),!1},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,i.local.invalidYear),13},daysInYear:function(t){return this._validate(t,this.minMonth,this.minDay,i.local.invalidYear),400},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),\"d\"),Math.floor((n.dayOfYear()-1)/8)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,i.local.invalidMonth);return this.daysPerMonth[r.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(t,e,r){return(this._validate(t,e,r,i.local.invalidDate).day()+1)%8},weekDay:function(t,e,r){var n=this.dayOfWeek(t,e,r);return n>=2&&n<=6},extraInfo:function(t,e,r){var n=this._validate(t,e,r,i.local.invalidDate);return{century:o[Math.floor((n.year()-1)/100)+1]||\"\"}},toJD:function(t,e,r){var n=this._validate(t,e,r,i.local.invalidDate);return t=n.year()+(n.year()<0?1:0),e=n.month(),(r=n.day())+(e>1?16:0)+(e>2?32*(e-2):0)+400*(t-1)+this.jdEpoch-1},fromJD:function(t){t=Math.floor(t+.5)-Math.floor(this.jdEpoch)-1;var e=Math.floor(t/400)+1;t-=400*(e-1),t+=t>15?16:0;var r=Math.floor(t/32)+1,n=t-32*(r-1)+1;return this.newDate(e<=0?e-1:e,r,n)}});var o={20:\"Fruitbat\",21:\"Anchovy\"};i.calendars.discworld=n},{\"../main\":581,\"object-assign\":470}],570:[function(t,e,r){function n(t){this.local=this.regionalOptions[t||\"\"]||this.regionalOptions[\"\"]}var i=t(\"../main\"),a=t(\"object-assign\");n.prototype=new i.baseCalendar,a(n.prototype,{name:\"Ethiopian\",jdEpoch:1724220.5,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{\"\":{name:\"Ethiopian\",epochs:[\"BEE\",\"EE\"],monthNames:[\"Meskerem\",\"Tikemet\",\"Hidar\",\"Tahesas\",\"Tir\",\"Yekatit\",\"Megabit\",\"Miazia\",\"Genbot\",\"Sene\",\"Hamle\",\"Nehase\",\"Pagume\"],monthNamesShort:[\"Mes\",\"Tik\",\"Hid\",\"Tah\",\"Tir\",\"Yek\",\"Meg\",\"Mia\",\"Gen\",\"Sen\",\"Ham\",\"Neh\",\"Pag\"],dayNames:[\"Ehud\",\"Segno\",\"Maksegno\",\"Irob\",\"Hamus\",\"Arb\",\"Kidame\"],dayNamesShort:[\"Ehu\",\"Seg\",\"Mak\",\"Iro\",\"Ham\",\"Arb\",\"Kid\"],dayNamesMin:[\"Eh\",\"Se\",\"Ma\",\"Ir\",\"Ha\",\"Ar\",\"Ki\"],digits:null,dateFormat:\"dd/mm/yyyy\",firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,i.local.invalidYear),t=e.year()+(e.year()<0?1:0);return t%4==3||t%4==-1},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,i.local.invalidYear||i.regionalOptions[\"\"].invalidYear),13},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),\"d\"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,i.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(13===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)<6},toJD:function(t,e,r){var n=this._validate(t,e,r,i.local.invalidDate);return t=n.year(),t<0&&t++,n.day()+30*(n.month()-1)+365*(t-1)+Math.floor(t/4)+this.jdEpoch-1},fromJD:function(t){var e=Math.floor(t)+.5-this.jdEpoch,r=Math.floor((e-Math.floor((e+366)/1461))/365)+1;r<=0&&r--,e=Math.floor(t)+.5-this.newDate(r,1,1).toJD();var n=Math.floor(e/30)+1,i=e-30*(n-1)+1;return this.newDate(r,n,i)}}),i.calendars.ethiopian=n},{\"../main\":581,\"object-assign\":470}],571:[function(t,e,r){function n(t){this.local=this.regionalOptions[t||\"\"]||this.regionalOptions[\"\"]}function i(t,e){return t-e*Math.floor(t/e)}var a=t(\"../main\"),o=t(\"object-assign\");n.prototype=new a.baseCalendar,o(n.prototype,{name:\"Hebrew\",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{\"\":{name:\"Hebrew\",epochs:[\"BAM\",\"AM\"],monthNames:[\"Nisan\",\"Iyar\",\"Sivan\",\"Tammuz\",\"Av\",\"Elul\",\"Tishrei\",\"Cheshvan\",\"Kislev\",\"Tevet\",\"Shevat\",\"Adar\",\"Adar II\"],monthNamesShort:[\"Nis\",\"Iya\",\"Siv\",\"Tam\",\"Av\",\"Elu\",\"Tis\",\"Che\",\"Kis\",\"Tev\",\"She\",\"Ada\",\"Ad2\"],dayNames:[\"Yom Rishon\",\"Yom Sheni\",\"Yom Shlishi\",\"Yom Revi'i\",\"Yom Chamishi\",\"Yom Shishi\",\"Yom Shabbat\"],dayNamesShort:[\"Ris\",\"She\",\"Shl\",\"Rev\",\"Cha\",\"Shi\",\"Sha\"],dayNamesMin:[\"Ri\",\"She\",\"Shl\",\"Re\",\"Ch\",\"Shi\",\"Sha\"],digits:null,dateFormat:\"dd/mm/yyyy\",firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,a.local.invalidYear);return this._leapYear(e.year())},_leapYear:function(t){return t=t<0?t+1:t,i(7*t+1,19)<7},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,a.local.invalidYear),this._leapYear(t.year?t.year():t)?13:12},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),\"d\"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(t){return t=this._validate(t,this.minMonth,this.minDay,a.local.invalidYear).year(),this.toJD(-1===t?1:t+1,7,1)-this.toJD(t,7,1)},daysInMonth:function(t,e){return t.year&&(e=t.month(),t=t.year()),this._validate(t,e,this.minDay,a.local.invalidMonth),12===e&&this.leapYear(t)?30:8===e&&5===i(this.daysInYear(t),10)?30:9===e&&3===i(this.daysInYear(t),10)?29:this.daysPerMonth[e-1]},weekDay:function(t,e,r){return 6!==this.dayOfWeek(t,e,r)},extraInfo:function(t,e,r){var n=this._validate(t,e,r,a.local.invalidDate);return{yearType:(this.leapYear(n)?\"embolismic\":\"common\")+\" \"+[\"deficient\",\"regular\",\"complete\"][this.daysInYear(n)%10-3]}},toJD:function(t,e,r){var n=this._validate(t,e,r,a.local.invalidDate);t=n.year(),e=n.month(),r=n.day();var i=t<=0?t+1:t,o=this.jdEpoch+this._delay1(i)+this._delay2(i)+r+1;if(e<7){for(var s=7;s<=this.monthsInYear(t);s++)o+=this.daysInMonth(t,s);for(var s=1;s<e;s++)o+=this.daysInMonth(t,s)}else for(var s=7;s<e;s++)o+=this.daysInMonth(t,s);return o},_delay1:function(t){var e=Math.floor((235*t-234)/19),r=12084+13753*e,n=29*e+Math.floor(r/25920);return i(3*(n+1),7)<3&&n++,n},_delay2:function(t){var e=this._delay1(t-1),r=this._delay1(t);return this._delay1(t+1)-r==356?2:r-e==382?1:0},fromJD:function(t){t=Math.floor(t)+.5;for(var e=Math.floor(98496*(t-this.jdEpoch)/35975351)-1;t>=this.toJD(-1===e?1:e+1,7,1);)e++;for(var r=t<this.toJD(e,1,1)?7:1;t>this.toJD(e,r,this.daysInMonth(e,r));)r++;var n=t-this.toJD(e,r,1)+1;return this.newDate(e,r,n)}}),a.calendars.hebrew=n},{\"../main\":581,\"object-assign\":470}],572:[function(t,e,r){function n(t){this.local=this.regionalOptions[t||\"\"]||this.regionalOptions[\"\"]}var i=t(\"../main\"),a=t(\"object-assign\");n.prototype=new i.baseCalendar,a(n.prototype,{name:\"Islamic\",jdEpoch:1948439.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{\"\":{name:\"Islamic\",epochs:[\"BH\",\"AH\"],monthNames:[\"Muharram\",\"Safar\",\"Rabi' al-awwal\",\"Rabi' al-thani\",\"Jumada al-awwal\",\"Jumada al-thani\",\"Rajab\",\"Sha'aban\",\"Ramadan\",\"Shawwal\",\"Dhu al-Qi'dah\",\"Dhu al-Hijjah\"],monthNamesShort:[\"Muh\",\"Saf\",\"Rab1\",\"Rab2\",\"Jum1\",\"Jum2\",\"Raj\",\"Sha'\",\"Ram\",\"Shaw\",\"DhuQ\",\"DhuH\"],dayNames:[\"Yawm al-ahad\",\"Yawm al-ithnayn\",\"Yawm ath-thulaathaa'\",\"Yawm al-arbi'aa'\",\"Yawm al-kham\\u012bs\",\"Yawm al-jum'a\",\"Yawm as-sabt\"],dayNamesShort:[\"Aha\",\"Ith\",\"Thu\",\"Arb\",\"Kha\",\"Jum\",\"Sab\"],dayNamesMin:[\"Ah\",\"It\",\"Th\",\"Ar\",\"Kh\",\"Ju\",\"Sa\"],digits:null,dateFormat:\"yyyy/mm/dd\",firstDay:6,isRTL:!1}},leapYear:function(t){return(11*this._validate(t,this.minMonth,this.minDay,i.local.invalidYear).year()+14)%30<11},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),\"d\"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(t){return this.leapYear(t)?355:354},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,i.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(12===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return 5!==this.dayOfWeek(t,e,r)},toJD:function(t,e,r){var n=this._validate(t,e,r,i.local.invalidDate);return t=n.year(),e=n.month(),r=n.day(),t=t<=0?t+1:t,r+Math.ceil(29.5*(e-1))+354*(t-1)+Math.floor((3+11*t)/30)+this.jdEpoch-1},fromJD:function(t){t=Math.floor(t)+.5;var e=Math.floor((30*(t-this.jdEpoch)+10646)/10631);e=e<=0?e-1:e;var r=Math.min(12,Math.ceil((t-29-this.toJD(e,1,1))/29.5)+1),n=t-this.toJD(e,r,1)+1;return this.newDate(e,r,n)}}),i.calendars.islamic=n},{\"../main\":581,\"object-assign\":470}],573:[function(t,e,r){function n(t){this.local=this.regionalOptions[t||\"\"]||this.regionalOptions[\"\"]}var i=t(\"../main\"),a=t(\"object-assign\");n.prototype=new i.baseCalendar,a(n.prototype,{name:\"Julian\",jdEpoch:1721423.5,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{\"\":{name:\"Julian\",epochs:[\"BC\",\"AD\"],monthNames:[\"January\",\"February\",\"March\",\"April\",\"May\",\"June\",\"July\",\"August\",\"September\",\"October\",\"November\",\"December\"],monthNamesShort:[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\"],dayNames:[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"],dayNamesShort:[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],dayNamesMin:[\"Su\",\"Mo\",\"Tu\",\"We\",\"Th\",\"Fr\",\"Sa\"],digits:null,dateFormat:\"mm/dd/yyyy\",firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,i.local.invalidYear),t=e.year()<0?e.year()+1:e.year();return t%4==0},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(4-(n.dayOfWeek()||7),\"d\"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,i.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(2===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)<6},toJD:function(t,e,r){var n=this._validate(t,e,r,i.local.invalidDate);return t=n.year(),e=n.month(),r=n.day(),t<0&&t++,e<=2&&(t--,e+=12),Math.floor(365.25*(t+4716))+Math.floor(30.6001*(e+1))+r-1524.5},fromJD:function(t){var e=Math.floor(t+.5),r=e+1524,n=Math.floor((r-122.1)/365.25),i=Math.floor(365.25*n),a=Math.floor((r-i)/30.6001),o=a-Math.floor(a<14?1:13),s=n-Math.floor(o>2?4716:4715),l=r-i-Math.floor(30.6001*a);return s<=0&&s--,this.newDate(s,o,l)}}),i.calendars.julian=n},{\"../main\":581,\"object-assign\":470}],574:[function(t,e,r){function n(t){this.local=this.regionalOptions[t||\"\"]||this.regionalOptions[\"\"]}function i(t,e){return t-e*Math.floor(t/e)}function a(t,e){return i(t-1,e)+1}var o=t(\"../main\"),s=t(\"object-assign\");n.prototype=new o.baseCalendar,s(n.prototype,{name:\"Mayan\",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{\"\":{name:\"Mayan\",epochs:[\"\",\"\"],monthNames:[\"0\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\",\"13\",\"14\",\"15\",\"16\",\"17\"],monthNamesShort:[\"0\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\",\"13\",\"14\",\"15\",\"16\",\"17\"],dayNames:[\"0\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\",\"13\",\"14\",\"15\",\"16\",\"17\",\"18\",\"19\"],dayNamesShort:[\"0\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\",\"13\",\"14\",\"15\",\"16\",\"17\",\"18\",\"19\"],dayNamesMin:[\"0\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\",\"13\",\"14\",\"15\",\"16\",\"17\",\"18\",\"19\"],digits:null,dateFormat:\"YYYY.m.d\",firstDay:0,isRTL:!1,haabMonths:[\"Pop\",\"Uo\",\"Zip\",\"Zotz\",\"Tzec\",\"Xul\",\"Yaxkin\",\"Mol\",\"Chen\",\"Yax\",\"Zac\",\"Ceh\",\"Mac\",\"Kankin\",\"Muan\",\"Pax\",\"Kayab\",\"Cumku\",\"Uayeb\"],tzolkinMonths:[\"Imix\",\"Ik\",\"Akbal\",\"Kan\",\"Chicchan\",\"Cimi\",\"Manik\",\"Lamat\",\"Muluc\",\"Oc\",\"Chuen\",\"Eb\",\"Ben\",\"Ix\",\"Men\",\"Cib\",\"Caban\",\"Etznab\",\"Cauac\",\"Ahau\"]}},leapYear:function(t){return this._validate(t,this.minMonth,this.minDay,o.local.invalidYear),!1},formatYear:function(t){t=this._validate(t,this.minMonth,this.minDay,o.local.invalidYear).year();var e=Math.floor(t/400);return t%=400,t+=t<0?400:0,e+\".\"+Math.floor(t/20)+\".\"+t%20},forYear:function(t){if(t=t.split(\".\"),t.length<3)throw\"Invalid Mayan year\";for(var e=0,r=0;r<t.length;r++){var n=parseInt(t[r],10);if(Math.abs(n)>19||r>0&&n<0)throw\"Invalid Mayan year\";e=20*e+n}return e},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,o.local.invalidYear),18},weekOfYear:function(t,e,r){return this._validate(t,e,r,o.local.invalidDate),0},daysInYear:function(t){return this._validate(t,this.minMonth,this.minDay,o.local.invalidYear),360},daysInMonth:function(t,e){return this._validate(t,e,this.minDay,o.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(t,e,r){return this._validate(t,e,r,o.local.invalidDate).day()},weekDay:function(t,e,r){return this._validate(t,e,r,o.local.invalidDate),!0},extraInfo:function(t,e,r){var n=this._validate(t,e,r,o.local.invalidDate),i=n.toJD(),a=this._toHaab(i),s=this._toTzolkin(i);return{haabMonthName:this.local.haabMonths[a[0]-1],haabMonth:a[0],haabDay:a[1],tzolkinDayName:this.local.tzolkinMonths[s[0]-1],tzolkinDay:s[0],tzolkinTrecena:s[1]}},_toHaab:function(t){t-=this.jdEpoch;var e=i(t+8+340,365);return[Math.floor(e/20)+1,i(e,20)]},_toTzolkin:function(t){return t-=this.jdEpoch,[a(t+20,20),a(t+4,13)]},toJD:function(t,e,r){var n=this._validate(t,e,r,o.local.invalidDate);return n.day()+20*n.month()+360*n.year()+this.jdEpoch},fromJD:function(t){t=Math.floor(t)+.5-this.jdEpoch;var e=Math.floor(t/360);t%=360,t+=t<0?360:0;var r=Math.floor(t/20),n=t%20;return this.newDate(e,r,n)}}),o.calendars.mayan=n},{\"../main\":581,\"object-assign\":470}],575:[function(t,e,r){function n(t){this.local=this.regionalOptions[t||\"\"]||this.regionalOptions[\"\"]}var i=t(\"../main\"),a=t(\"object-assign\");n.prototype=new i.baseCalendar;var o=i.instance(\"gregorian\");a(n.prototype,{name:\"Nanakshahi\",jdEpoch:2257673.5,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{\"\":{name:\"Nanakshahi\",epochs:[\"BN\",\"AN\"],monthNames:[\"Chet\",\"Vaisakh\",\"Jeth\",\"Harh\",\"Sawan\",\"Bhadon\",\"Assu\",\"Katak\",\"Maghar\",\"Poh\",\"Magh\",\"Phagun\"],monthNamesShort:[\"Che\",\"Vai\",\"Jet\",\"Har\",\"Saw\",\"Bha\",\"Ass\",\"Kat\",\"Mgr\",\"Poh\",\"Mgh\",\"Pha\"],dayNames:[\"Somvaar\",\"Mangalvar\",\"Budhvaar\",\"Veervaar\",\"Shukarvaar\",\"Sanicharvaar\",\"Etvaar\"],dayNamesShort:[\"Som\",\"Mangal\",\"Budh\",\"Veer\",\"Shukar\",\"Sanichar\",\"Et\"],dayNamesMin:[\"So\",\"Ma\",\"Bu\",\"Ve\",\"Sh\",\"Sa\",\"Et\"],digits:null,dateFormat:\"dd-mm-yyyy\",firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,i.local.invalidYear||i.regionalOptions[\"\"].invalidYear);return o.leapYear(e.year()+(e.year()<1?1:0)+1469)},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(1-(n.dayOfWeek()||7),\"d\"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,i.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(12===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)<6},toJD:function(t,e,r){var n=this._validate(t,e,r,i.local.invalidMonth),t=n.year();t<0&&t++;for(var a=n.day(),s=1;s<n.month();s++)a+=this.daysPerMonth[s-1];return a+o.toJD(t+1468,3,13)},fromJD:function(t){t=Math.floor(t+.5);for(var e=Math.floor((t-(this.jdEpoch-1))/366);t>=this.toJD(e+1,1,1);)e++;for(var r=t-Math.floor(this.toJD(e,1,1)+.5)+1,n=1;r>this.daysInMonth(e,n);)r-=this.daysInMonth(e,n),n++;return this.newDate(e,n,r)}}),i.calendars.nanakshahi=n},{\"../main\":581,\"object-assign\":470}],576:[function(t,e,r){function n(t){this.local=this.regionalOptions[t||\"\"]||this.regionalOptions[\"\"]}var i=t(\"../main\"),a=t(\"object-assign\");n.prototype=new i.baseCalendar,a(n.prototype,{name:\"Nepali\",jdEpoch:1700709.5,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{\"\":{name:\"Nepali\",epochs:[\"BBS\",\"ABS\"],monthNames:[\"Baisakh\",\"Jestha\",\"Ashadh\",\"Shrawan\",\"Bhadra\",\"Ashwin\",\"Kartik\",\"Mangsir\",\"Paush\",\"Mangh\",\"Falgun\",\"Chaitra\"],monthNamesShort:[\"Bai\",\"Je\",\"As\",\"Shra\",\"Bha\",\"Ash\",\"Kar\",\"Mang\",\"Pau\",\"Ma\",\"Fal\",\"Chai\"],dayNames:[\"Aaitabaar\",\"Sombaar\",\"Manglbaar\",\"Budhabaar\",\"Bihibaar\",\"Shukrabaar\",\"Shanibaar\"],dayNamesShort:[\"Aaita\",\"Som\",\"Mangl\",\"Budha\",\"Bihi\",\"Shukra\",\"Shani\"],dayNamesMin:[\"Aai\",\"So\",\"Man\",\"Bu\",\"Bi\",\"Shu\",\"Sha\"],digits:null,dateFormat:\"dd/mm/yyyy\",firstDay:1,isRTL:!1}},leapYear:function(t){return this.daysInYear(t)!==this.daysPerYear},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),\"d\"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(t){if(t=this._validate(t,this.minMonth,this.minDay,i.local.invalidYear).year(),void 0===this.NEPALI_CALENDAR_DATA[t])return this.daysPerYear;for(var e=0,r=this.minMonth;r<=12;r++)e+=this.NEPALI_CALENDAR_DATA[t][r];return e},daysInMonth:function(t,e){return t.year&&(e=t.month(),t=t.year()),this._validate(t,e,this.minDay,i.local.invalidMonth),void 0===this.NEPALI_CALENDAR_DATA[t]?this.daysPerMonth[e-1]:this.NEPALI_CALENDAR_DATA[t][e]},weekDay:function(t,e,r){return 6!==this.dayOfWeek(t,e,r)},toJD:function(t,e,r){var n=this._validate(t,e,r,i.local.invalidDate);t=n.year(),e=n.month(),r=n.day();var a=i.instance(),o=0,s=e,l=t;this._createMissingCalendarData(t);var u=t-(s>9||9===s&&r>=this.NEPALI_CALENDAR_DATA[l][0]?56:57);for(9!==e&&(o=r,\n", "s--);9!==s;)s<=0&&(s=12,l--),o+=this.NEPALI_CALENDAR_DATA[l][s],s--;return 9===e?(o+=r-this.NEPALI_CALENDAR_DATA[l][0])<0&&(o+=a.daysInYear(u)):o+=this.NEPALI_CALENDAR_DATA[l][9]-this.NEPALI_CALENDAR_DATA[l][0],a.newDate(u,1,1).add(o,\"d\").toJD()},fromJD:function(t){var e=i.instance(),r=e.fromJD(t),n=r.year(),a=r.dayOfYear(),o=n+56;this._createMissingCalendarData(o);for(var s=9,l=this.NEPALI_CALENDAR_DATA[o][0],u=this.NEPALI_CALENDAR_DATA[o][s]-l+1;a>u;)s++,s>12&&(s=1,o++),u+=this.NEPALI_CALENDAR_DATA[o][s];var c=this.NEPALI_CALENDAR_DATA[o][s]-(u-a);return this.newDate(o,s,c)},_createMissingCalendarData:function(t){var e=this.daysPerMonth.slice(0);e.unshift(17);for(var r=t-1;r<t+2;r++)void 0===this.NEPALI_CALENDAR_DATA[r]&&(this.NEPALI_CALENDAR_DATA[r]=e)},NEPALI_CALENDAR_DATA:{1970:[18,31,31,32,31,31,31,30,29,30,29,30,30],1971:[18,31,31,32,31,32,30,30,29,30,29,30,30],1972:[17,31,32,31,32,31,30,30,30,29,29,30,30],1973:[19,30,32,31,32,31,30,30,30,29,30,29,31],1974:[19,31,31,32,30,31,31,30,29,30,29,30,30],1975:[18,31,31,32,32,30,31,30,29,30,29,30,30],1976:[17,31,32,31,32,31,30,30,30,29,29,30,31],1977:[18,31,32,31,32,31,31,29,30,29,30,29,31],1978:[18,31,31,32,31,31,31,30,29,30,29,30,30],1979:[18,31,31,32,32,31,30,30,29,30,29,30,30],1980:[17,31,32,31,32,31,30,30,30,29,29,30,31],1981:[18,31,31,31,32,31,31,29,30,30,29,30,30],1982:[18,31,31,32,31,31,31,30,29,30,29,30,30],1983:[18,31,31,32,32,31,30,30,29,30,29,30,30],1984:[17,31,32,31,32,31,30,30,30,29,29,30,31],1985:[18,31,31,31,32,31,31,29,30,30,29,30,30],1986:[18,31,31,32,31,31,31,30,29,30,29,30,30],1987:[18,31,32,31,32,31,30,30,29,30,29,30,30],1988:[17,31,32,31,32,31,30,30,30,29,29,30,31],1989:[18,31,31,31,32,31,31,30,29,30,29,30,30],1990:[18,31,31,32,31,31,31,30,29,30,29,30,30],1991:[18,31,32,31,32,31,30,30,29,30,29,30,30],1992:[17,31,32,31,32,31,30,30,30,29,30,29,31],1993:[18,31,31,31,32,31,31,30,29,30,29,30,30],1994:[18,31,31,32,31,31,31,30,29,30,29,30,30],1995:[17,31,32,31,32,31,30,30,30,29,29,30,30],1996:[17,31,32,31,32,31,30,30,30,29,30,29,31],1997:[18,31,31,32,31,31,31,30,29,30,29,30,30],1998:[18,31,31,32,31,31,31,30,29,30,29,30,30],1999:[17,31,32,31,32,31,30,30,30,29,29,30,31],2e3:[17,30,32,31,32,31,30,30,30,29,30,29,31],2001:[18,31,31,32,31,31,31,30,29,30,29,30,30],2002:[18,31,31,32,32,31,30,30,29,30,29,30,30],2003:[17,31,32,31,32,31,30,30,30,29,29,30,31],2004:[17,30,32,31,32,31,30,30,30,29,30,29,31],2005:[18,31,31,32,31,31,31,30,29,30,29,30,30],2006:[18,31,31,32,32,31,30,30,29,30,29,30,30],2007:[17,31,32,31,32,31,30,30,30,29,29,30,31],2008:[17,31,31,31,32,31,31,29,30,30,29,29,31],2009:[18,31,31,32,31,31,31,30,29,30,29,30,30],2010:[18,31,31,32,32,31,30,30,29,30,29,30,30],2011:[17,31,32,31,32,31,30,30,30,29,29,30,31],2012:[17,31,31,31,32,31,31,29,30,30,29,30,30],2013:[18,31,31,32,31,31,31,30,29,30,29,30,30],2014:[18,31,31,32,32,31,30,30,29,30,29,30,30],2015:[17,31,32,31,32,31,30,30,30,29,29,30,31],2016:[17,31,31,31,32,31,31,29,30,30,29,30,30],2017:[18,31,31,32,31,31,31,30,29,30,29,30,30],2018:[18,31,32,31,32,31,30,30,29,30,29,30,30],2019:[17,31,32,31,32,31,30,30,30,29,30,29,31],2020:[17,31,31,31,32,31,31,30,29,30,29,30,30],2021:[18,31,31,32,31,31,31,30,29,30,29,30,30],2022:[17,31,32,31,32,31,30,30,30,29,29,30,30],2023:[17,31,32,31,32,31,30,30,30,29,30,29,31],2024:[17,31,31,31,32,31,31,30,29,30,29,30,30],2025:[18,31,31,32,31,31,31,30,29,30,29,30,30],2026:[17,31,32,31,32,31,30,30,30,29,29,30,31],2027:[17,30,32,31,32,31,30,30,30,29,30,29,31],2028:[17,31,31,32,31,31,31,30,29,30,29,30,30],2029:[18,31,31,32,31,32,30,30,29,30,29,30,30],2030:[17,31,32,31,32,31,30,30,30,30,30,30,31],2031:[17,31,32,31,32,31,31,31,31,31,31,31,31],2032:[17,32,32,32,32,32,32,32,32,32,32,32,32],2033:[18,31,31,32,32,31,30,30,29,30,29,30,30],2034:[17,31,32,31,32,31,30,30,30,29,29,30,31],2035:[17,30,32,31,32,31,31,29,30,30,29,29,31],2036:[17,31,31,32,31,31,31,30,29,30,29,30,30],2037:[18,31,31,32,32,31,30,30,29,30,29,30,30],2038:[17,31,32,31,32,31,30,30,30,29,29,30,31],2039:[17,31,31,31,32,31,31,29,30,30,29,30,30],2040:[17,31,31,32,31,31,31,30,29,30,29,30,30],2041:[18,31,31,32,32,31,30,30,29,30,29,30,30],2042:[17,31,32,31,32,31,30,30,30,29,29,30,31],2043:[17,31,31,31,32,31,31,29,30,30,29,30,30],2044:[17,31,31,32,31,31,31,30,29,30,29,30,30],2045:[18,31,32,31,32,31,30,30,29,30,29,30,30],2046:[17,31,32,31,32,31,30,30,30,29,29,30,31],2047:[17,31,31,31,32,31,31,30,29,30,29,30,30],2048:[17,31,31,32,31,31,31,30,29,30,29,30,30],2049:[17,31,32,31,32,31,30,30,30,29,29,30,30],2050:[17,31,32,31,32,31,30,30,30,29,30,29,31],2051:[17,31,31,31,32,31,31,30,29,30,29,30,30],2052:[17,31,31,32,31,31,31,30,29,30,29,30,30],2053:[17,31,32,31,32,31,30,30,30,29,29,30,30],2054:[17,31,32,31,32,31,30,30,30,29,30,29,31],2055:[17,31,31,32,31,31,31,30,29,30,30,29,30],2056:[17,31,31,32,31,32,30,30,29,30,29,30,30],2057:[17,31,32,31,32,31,30,30,30,29,29,30,31],2058:[17,30,32,31,32,31,30,30,30,29,30,29,31],2059:[17,31,31,32,31,31,31,30,29,30,29,30,30],2060:[17,31,31,32,32,31,30,30,29,30,29,30,30],2061:[17,31,32,31,32,31,30,30,30,29,29,30,31],2062:[17,30,32,31,32,31,31,29,30,29,30,29,31],2063:[17,31,31,32,31,31,31,30,29,30,29,30,30],2064:[17,31,31,32,32,31,30,30,29,30,29,30,30],2065:[17,31,32,31,32,31,30,30,30,29,29,30,31],2066:[17,31,31,31,32,31,31,29,30,30,29,29,31],2067:[17,31,31,32,31,31,31,30,29,30,29,30,30],2068:[17,31,31,32,32,31,30,30,29,30,29,30,30],2069:[17,31,32,31,32,31,30,30,30,29,29,30,31],2070:[17,31,31,31,32,31,31,29,30,30,29,30,30],2071:[17,31,31,32,31,31,31,30,29,30,29,30,30],2072:[17,31,32,31,32,31,30,30,29,30,29,30,30],2073:[17,31,32,31,32,31,30,30,30,29,29,30,31],2074:[17,31,31,31,32,31,31,30,29,30,29,30,30],2075:[17,31,31,32,31,31,31,30,29,30,29,30,30],2076:[16,31,32,31,32,31,30,30,30,29,29,30,30],2077:[17,31,32,31,32,31,30,30,30,29,30,29,31],2078:[17,31,31,31,32,31,31,30,29,30,29,30,30],2079:[17,31,31,32,31,31,31,30,29,30,29,30,30],2080:[16,31,32,31,32,31,30,30,30,29,29,30,30],2081:[17,31,31,32,32,31,30,30,30,29,30,30,30],2082:[17,31,32,31,32,31,30,30,30,29,30,30,30],2083:[17,31,31,32,31,31,30,30,30,29,30,30,30],2084:[17,31,31,32,31,31,30,30,30,29,30,30,30],2085:[17,31,32,31,32,31,31,30,30,29,30,30,30],2086:[17,31,32,31,32,31,30,30,30,29,30,30,30],2087:[16,31,31,32,31,31,31,30,30,29,30,30,30],2088:[16,30,31,32,32,30,31,30,30,29,30,30,30],2089:[17,31,32,31,32,31,30,30,30,29,30,30,30],2090:[17,31,32,31,32,31,30,30,30,29,30,30,30],2091:[16,31,31,32,31,31,31,30,30,29,30,30,30],2092:[16,31,31,32,32,31,30,30,30,29,30,30,30],2093:[17,31,32,31,32,31,30,30,30,29,30,30,30],2094:[17,31,31,32,31,31,30,30,30,29,30,30,30],2095:[17,31,31,32,31,31,31,30,29,30,30,30,30],2096:[17,30,31,32,32,31,30,30,29,30,29,30,30],2097:[17,31,32,31,32,31,30,30,30,29,30,30,30],2098:[17,31,31,32,31,31,31,29,30,29,30,30,31],2099:[17,31,31,32,31,31,31,30,29,29,30,30,30],2100:[17,31,32,31,32,30,31,30,29,30,29,30,30]}}),i.calendars.nepali=n},{\"../main\":581,\"object-assign\":470}],577:[function(t,e,r){function n(t){this.local=this.regionalOptions[t||\"\"]||this.regionalOptions[\"\"]}function i(t,e){return t-e*Math.floor(t/e)}var a=t(\"../main\"),o=t(\"object-assign\");n.prototype=new a.baseCalendar,o(n.prototype,{name:\"Persian\",jdEpoch:1948320.5,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{\"\":{name:\"Persian\",epochs:[\"BP\",\"AP\"],monthNames:[\"Farvardin\",\"Ordibehesht\",\"Khordad\",\"Tir\",\"Mordad\",\"Shahrivar\",\"Mehr\",\"Aban\",\"Azar\",\"Day\",\"Bahman\",\"Esfand\"],monthNamesShort:[\"Far\",\"Ord\",\"Kho\",\"Tir\",\"Mor\",\"Sha\",\"Meh\",\"Aba\",\"Aza\",\"Day\",\"Bah\",\"Esf\"],dayNames:[\"Yekshambe\",\"Doshambe\",\"Seshambe\",\"Ch\\xe6harshambe\",\"Panjshambe\",\"Jom'e\",\"Shambe\"],dayNamesShort:[\"Yek\",\"Do\",\"Se\",\"Ch\\xe6\",\"Panj\",\"Jom\",\"Sha\"],dayNamesMin:[\"Ye\",\"Do\",\"Se\",\"Ch\",\"Pa\",\"Jo\",\"Sh\"],digits:null,dateFormat:\"yyyy/mm/dd\",firstDay:6,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,a.local.invalidYear);return 682*((e.year()-(e.year()>0?474:473))%2820+474+38)%2816<682},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-(n.dayOfWeek()+1)%7,\"d\"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,a.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(12===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return 5!==this.dayOfWeek(t,e,r)},toJD:function(t,e,r){var n=this._validate(t,e,r,a.local.invalidDate);t=n.year(),e=n.month(),r=n.day();var o=t-(t>=0?474:473),s=474+i(o,2820);return r+(e<=7?31*(e-1):30*(e-1)+6)+Math.floor((682*s-110)/2816)+365*(s-1)+1029983*Math.floor(o/2820)+this.jdEpoch-1},fromJD:function(t){t=Math.floor(t)+.5;var e=t-this.toJD(475,1,1),r=Math.floor(e/1029983),n=i(e,1029983),a=2820;if(1029982!==n){var o=Math.floor(n/366),s=i(n,366);a=Math.floor((2134*o+2816*s+2815)/1028522)+o+1}var l=a+2820*r+474;l=l<=0?l-1:l;var u=t-this.toJD(l,1,1)+1,c=u<=186?Math.ceil(u/31):Math.ceil((u-6)/30),h=t-this.toJD(l,c,1)+1;return this.newDate(l,c,h)}}),a.calendars.persian=n,a.calendars.jalali=n},{\"../main\":581,\"object-assign\":470}],578:[function(t,e,r){function n(t){this.local=this.regionalOptions[t||\"\"]||this.regionalOptions[\"\"]}var i=t(\"../main\"),a=t(\"object-assign\"),o=i.instance();n.prototype=new i.baseCalendar,a(n.prototype,{name:\"Taiwan\",jdEpoch:2419402.5,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{\"\":{name:\"Taiwan\",epochs:[\"BROC\",\"ROC\"],monthNames:[\"January\",\"February\",\"March\",\"April\",\"May\",\"June\",\"July\",\"August\",\"September\",\"October\",\"November\",\"December\"],monthNamesShort:[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\"],dayNames:[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"],dayNamesShort:[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],dayNamesMin:[\"Su\",\"Mo\",\"Tu\",\"We\",\"Th\",\"Fr\",\"Sa\"],digits:null,dateFormat:\"yyyy/mm/dd\",firstDay:1,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,i.local.invalidYear),t=this._t2gYear(e.year());return o.leapYear(t)},weekOfYear:function(t,e,r){var n=this._validate(t,this.minMonth,this.minDay,i.local.invalidYear),t=this._t2gYear(n.year());return o.weekOfYear(t,n.month(),n.day())},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,i.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(2===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)<6},toJD:function(t,e,r){var n=this._validate(t,e,r,i.local.invalidDate),t=this._t2gYear(n.year());return o.toJD(t,n.month(),n.day())},fromJD:function(t){var e=o.fromJD(t),r=this._g2tYear(e.year());return this.newDate(r,e.month(),e.day())},_t2gYear:function(t){return t+this.yearsOffset+(t>=-this.yearsOffset&&t<=-1?1:0)},_g2tYear:function(t){return t-this.yearsOffset-(t>=1&&t<=this.yearsOffset?1:0)}}),i.calendars.taiwan=n},{\"../main\":581,\"object-assign\":470}],579:[function(t,e,r){function n(t){this.local=this.regionalOptions[t||\"\"]||this.regionalOptions[\"\"]}var i=t(\"../main\"),a=t(\"object-assign\"),o=i.instance();n.prototype=new i.baseCalendar,a(n.prototype,{name:\"Thai\",jdEpoch:1523098.5,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{\"\":{name:\"Thai\",epochs:[\"BBE\",\"BE\"],monthNames:[\"January\",\"February\",\"March\",\"April\",\"May\",\"June\",\"July\",\"August\",\"September\",\"October\",\"November\",\"December\"],monthNamesShort:[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\"],dayNames:[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"],dayNamesShort:[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],dayNamesMin:[\"Su\",\"Mo\",\"Tu\",\"We\",\"Th\",\"Fr\",\"Sa\"],digits:null,dateFormat:\"dd/mm/yyyy\",firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,i.local.invalidYear),t=this._t2gYear(e.year());return o.leapYear(t)},weekOfYear:function(t,e,r){var n=this._validate(t,this.minMonth,this.minDay,i.local.invalidYear),t=this._t2gYear(n.year());return o.weekOfYear(t,n.month(),n.day())},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,i.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(2===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)<6},toJD:function(t,e,r){var n=this._validate(t,e,r,i.local.invalidDate),t=this._t2gYear(n.year());return o.toJD(t,n.month(),n.day())},fromJD:function(t){var e=o.fromJD(t),r=this._g2tYear(e.year());return this.newDate(r,e.month(),e.day())},_t2gYear:function(t){return t-this.yearsOffset-(t>=1&&t<=this.yearsOffset?1:0)},_g2tYear:function(t){return t+this.yearsOffset+(t>=-this.yearsOffset&&t<=-1?1:0)}}),i.calendars.thai=n},{\"../main\":581,\"object-assign\":470}],580:[function(t,e,r){function n(t){this.local=this.regionalOptions[t||\"\"]||this.regionalOptions[\"\"]}var i=t(\"../main\"),a=t(\"object-assign\");n.prototype=new i.baseCalendar,a(n.prototype,{name:\"UmmAlQura\",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{\"\":{name:\"Umm al-Qura\",epochs:[\"BH\",\"AH\"],monthNames:[\"Al-Muharram\",\"Safar\",\"Rabi' al-awwal\",\"Rabi' Al-Thani\",\"Jumada Al-Awwal\",\"Jumada Al-Thani\",\"Rajab\",\"Sha'aban\",\"Ramadan\",\"Shawwal\",\"Dhu al-Qi'dah\",\"Dhu al-Hijjah\"],monthNamesShort:[\"Muh\",\"Saf\",\"Rab1\",\"Rab2\",\"Jum1\",\"Jum2\",\"Raj\",\"Sha'\",\"Ram\",\"Shaw\",\"DhuQ\",\"DhuH\"],dayNames:[\"Yawm al-Ahad\",\"Yawm al-Ithnain\",\"Yawm al-Thal\\u0101th\\u0101\\u2019\",\"Yawm al-Arba\\u2018\\u0101\\u2019\",\"Yawm al-Kham\\u012bs\",\"Yawm al-Jum\\u2018a\",\"Yawm al-Sabt\"],dayNamesMin:[\"Ah\",\"Ith\",\"Th\",\"Ar\",\"Kh\",\"Ju\",\"Sa\"],digits:null,dateFormat:\"yyyy/mm/dd\",firstDay:6,isRTL:!0}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,i.local.invalidYear);return 355===this.daysInYear(e.year())},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),\"d\"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(t){for(var e=0,r=1;r<=12;r++)e+=this.daysInMonth(t,r);return e},daysInMonth:function(t,e){for(var r=this._validate(t,e,this.minDay,i.local.invalidMonth),n=r.toJD()-24e5+.5,a=0,s=0;s<o.length;s++){if(o[s]>n)return o[a]-o[a-1];a++}return 30},weekDay:function(t,e,r){return 5!==this.dayOfWeek(t,e,r)},toJD:function(t,e,r){var n=this._validate(t,e,r,i.local.invalidDate),a=12*(n.year()-1)+n.month()-15292;return n.day()+o[a-1]-1+24e5-.5},fromJD:function(t){for(var e=t-24e5+.5,r=0,n=0;n<o.length&&!(o[n]>e);n++)r++;var i=r+15292,a=Math.floor((i-1)/12),s=a+1,l=i-12*a,u=e-o[r-1]+1;return this.newDate(s,l,u)},isValid:function(t,e,r){var n=i.baseCalendar.prototype.isValid.apply(this,arguments);return n&&(t=null!=t.year?t.year:t,n=t>=1276&&t<=1500),n},_validate:function(t,e,r,n){var a=i.baseCalendar.prototype._validate.apply(this,arguments);if(a.year<1276||a.year>1500)throw n.replace(/\\{0\\}/,this.local.name);return a}}),i.calendars.ummalqura=n;var o=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]},{\"../main\":581,\"object-assign\":470}],581:[function(t,e,r){function n(){this.regionalOptions=[],this.regionalOptions[\"\"]={invalidCalendar:\"Calendar {0} not found\",invalidDate:\"Invalid {0} date\",invalidMonth:\"Invalid {0} month\",invalidYear:\"Invalid {0} year\",differentCalendars:\"Cannot mix {0} and {1} dates\"},this.local=this.regionalOptions[\"\"],this.calendars={},this._localCals={}}function i(t,e,r,n){if(this._calendar=t,this._year=e,this._month=r,this._day=n,0===this._calendar._validateLevel&&!this._calendar.isValid(this._year,this._month,this._day))throw(u.local.invalidDate||u.regionalOptions[\"\"].invalidDate).replace(/\\{0\\}/,this._calendar.local.name)}function a(t,e){return t=\"\"+t,\"000000\".substring(0,e-t.length)+t}function o(){this.shortYearCutoff=\"+10\"}function s(t){this.local=this.regionalOptions[t]||this.regionalOptions[\"\"]}var l=t(\"object-assign\");l(n.prototype,{instance:function(t,e){t=(t||\"gregorian\").toLowerCase(),e=e||\"\";var r=this._localCals[t+\"-\"+e];if(!r&&this.calendars[t]&&(r=new this.calendars[t](e),this._localCals[t+\"-\"+e]=r),!r)throw(this.local.invalidCalendar||this.regionalOptions[\"\"].invalidCalendar).replace(/\\{0\\}/,t);return r},newDate:function(t,e,r,n,i){return n=(null!=t&&t.year?t.calendar():\"string\"==typeof n?this.instance(n,i):n)||this.instance(),n.newDate(t,e,r)},substituteDigits:function(t){\n", "return function(e){return(e+\"\").replace(/[0-9]/g,function(e){return t[e]})}},substituteChineseDigits:function(t,e){return function(r){for(var n=\"\",i=0;r>0;){var a=r%10;n=(0===a?\"\":t[a]+e[i])+n,i++,r=Math.floor(r/10)}return 0===n.indexOf(t[1]+e[1])&&(n=n.substr(1)),n||t[0]}}}),l(i.prototype,{newDate:function(t,e,r){return this._calendar.newDate(null==t?this:t,e,r)},year:function(t){return 0===arguments.length?this._year:this.set(t,\"y\")},month:function(t){return 0===arguments.length?this._month:this.set(t,\"m\")},day:function(t){return 0===arguments.length?this._day:this.set(t,\"d\")},date:function(t,e,r){if(!this._calendar.isValid(t,e,r))throw(u.local.invalidDate||u.regionalOptions[\"\"].invalidDate).replace(/\\{0\\}/,this._calendar.local.name);return this._year=t,this._month=e,this._day=r,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(t,e){return this._calendar.add(this,t,e)},set:function(t,e){return this._calendar.set(this,t,e)},compareTo:function(t){if(this._calendar.name!==t._calendar.name)throw(u.local.differentCalendars||u.regionalOptions[\"\"].differentCalendars).replace(/\\{0\\}/,this._calendar.local.name).replace(/\\{1\\}/,t._calendar.local.name);var e=this._year!==t._year?this._year-t._year:this._month!==t._month?this.monthOfYear()-t.monthOfYear():this._day-t._day;return 0===e?0:e<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(t){return this._calendar.fromJD(t)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(t){return this._calendar.fromJSDate(t)},toString:function(){return(this.year()<0?\"-\":\"\")+a(Math.abs(this.year()),4)+\"-\"+a(this.month(),2)+\"-\"+a(this.day(),2)}}),l(o.prototype,{_validateLevel:0,newDate:function(t,e,r){return null==t?this.today():(t.year&&(this._validate(t,e,r,u.local.invalidDate||u.regionalOptions[\"\"].invalidDate),r=t.day(),e=t.month(),t=t.year()),new i(this,t,e,r))},today:function(){return this.fromJSDate(new Date)},epoch:function(t){return this._validate(t,this.minMonth,this.minDay,u.local.invalidYear||u.regionalOptions[\"\"].invalidYear).year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,u.local.invalidYear||u.regionalOptions[\"\"].invalidYear);return(e.year()<0?\"-\":\"\")+a(Math.abs(e.year()),4)},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,u.local.invalidYear||u.regionalOptions[\"\"].invalidYear),12},monthOfYear:function(t,e){var r=this._validate(t,e,this.minDay,u.local.invalidMonth||u.regionalOptions[\"\"].invalidMonth);return(r.month()+this.monthsInYear(r)-this.firstMonth)%this.monthsInYear(r)+this.minMonth},fromMonthOfYear:function(t,e){var r=(e+this.firstMonth-2*this.minMonth)%this.monthsInYear(t)+this.minMonth;return this._validate(t,r,this.minDay,u.local.invalidMonth||u.regionalOptions[\"\"].invalidMonth),r},daysInYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,u.local.invalidYear||u.regionalOptions[\"\"].invalidYear);return this.leapYear(e)?366:365},dayOfYear:function(t,e,r){var n=this._validate(t,e,r,u.local.invalidDate||u.regionalOptions[\"\"].invalidDate);return n.toJD()-this.newDate(n.year(),this.fromMonthOfYear(n.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(t,e,r){var n=this._validate(t,e,r,u.local.invalidDate||u.regionalOptions[\"\"].invalidDate);return(Math.floor(this.toJD(n))+2)%this.daysInWeek()},extraInfo:function(t,e,r){return this._validate(t,e,r,u.local.invalidDate||u.regionalOptions[\"\"].invalidDate),{}},add:function(t,e,r){return this._validate(t,this.minMonth,this.minDay,u.local.invalidDate||u.regionalOptions[\"\"].invalidDate),this._correctAdd(t,this._add(t,e,r),e,r)},_add:function(t,e,r){if(this._validateLevel++,\"d\"===r||\"w\"===r){var n=t.toJD()+e*(\"w\"===r?this.daysInWeek():1),i=t.calendar().fromJD(n);return this._validateLevel--,[i.year(),i.month(),i.day()]}try{var a=t.year()+(\"y\"===r?e:0),o=t.monthOfYear()+(\"m\"===r?e:0),i=t.day();\"y\"===r?(t.month()!==this.fromMonthOfYear(a,o)&&(o=this.newDate(a,t.month(),this.minDay).monthOfYear()),o=Math.min(o,this.monthsInYear(a)),i=Math.min(i,this.daysInMonth(a,this.fromMonthOfYear(a,o)))):\"m\"===r&&(!function(t){for(;o<t.minMonth;)a--,o+=t.monthsInYear(a);for(var e=t.monthsInYear(a);o>e-1+t.minMonth;)a++,o-=e,e=t.monthsInYear(a)}(this),i=Math.min(i,this.daysInMonth(a,this.fromMonthOfYear(a,o))));var s=[a,this.fromMonthOfYear(a,o),i];return this._validateLevel--,s}catch(t){throw this._validateLevel--,t}},_correctAdd:function(t,e,r,n){if(!(this.hasYearZero||\"y\"!==n&&\"m\"!==n||0!==e[0]&&t.year()>0==e[0]>0)){var i={y:[1,1,\"y\"],m:[1,this.monthsInYear(-1),\"m\"],w:[this.daysInWeek(),this.daysInYear(-1),\"d\"],d:[1,this.daysInYear(-1),\"d\"]}[n],a=r<0?-1:1;e=this._add(t,r*i[0]+a*i[1],i[2])}return t.date(e[0],e[1],e[2])},set:function(t,e,r){this._validate(t,this.minMonth,this.minDay,u.local.invalidDate||u.regionalOptions[\"\"].invalidDate);var n=\"y\"===r?e:t.year(),i=\"m\"===r?e:t.month(),a=\"d\"===r?e:t.day();return\"y\"!==r&&\"m\"!==r||(a=Math.min(a,this.daysInMonth(n,i))),t.date(n,i,a)},isValid:function(t,e,r){this._validateLevel++;var n=this.hasYearZero||0!==t;if(n){var i=this.newDate(t,e,this.minDay);n=e>=this.minMonth&&e-this.minMonth<this.monthsInYear(i)&&r>=this.minDay&&r-this.minDay<this.daysInMonth(i)}return this._validateLevel--,n},toJSDate:function(t,e,r){var n=this._validate(t,e,r,u.local.invalidDate||u.regionalOptions[\"\"].invalidDate);return u.instance().fromJD(this.toJD(n)).toJSDate()},fromJSDate:function(t){return this.fromJD(u.instance().fromJSDate(t).toJD())},_validate:function(t,e,r,n){if(t.year){if(0===this._validateLevel&&this.name!==t.calendar().name)throw(u.local.differentCalendars||u.regionalOptions[\"\"].differentCalendars).replace(/\\{0\\}/,this.local.name).replace(/\\{1\\}/,t.calendar().local.name);return t}try{if(1===++this._validateLevel&&!this.isValid(t,e,r))throw n.replace(/\\{0\\}/,this.local.name);var i=this.newDate(t,e,r);return this._validateLevel--,i}catch(t){throw this._validateLevel--,t}}}),s.prototype=new o,l(s.prototype,{name:\"Gregorian\",jdEpoch:1721425.5,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{\"\":{name:\"Gregorian\",epochs:[\"BCE\",\"CE\"],monthNames:[\"January\",\"February\",\"March\",\"April\",\"May\",\"June\",\"July\",\"August\",\"September\",\"October\",\"November\",\"December\"],monthNamesShort:[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\"],dayNames:[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"],dayNamesShort:[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],dayNamesMin:[\"Su\",\"Mo\",\"Tu\",\"We\",\"Th\",\"Fr\",\"Sa\"],digits:null,dateFormat:\"mm/dd/yyyy\",firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,u.local.invalidYear||u.regionalOptions[\"\"].invalidYear),t=e.year()+(e.year()<0?1:0);return t%4==0&&(t%100!=0||t%400==0)},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(4-(n.dayOfWeek()||7),\"d\"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,u.local.invalidMonth||u.regionalOptions[\"\"].invalidMonth);return this.daysPerMonth[r.month()-1]+(2===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)<6},toJD:function(t,e,r){var n=this._validate(t,e,r,u.local.invalidDate||u.regionalOptions[\"\"].invalidDate);t=n.year(),e=n.month(),r=n.day(),t<0&&t++,e<3&&(e+=12,t--);var i=Math.floor(t/100),a=2-i+Math.floor(i/4);return Math.floor(365.25*(t+4716))+Math.floor(30.6001*(e+1))+r+a-1524.5},fromJD:function(t){var e=Math.floor(t+.5),r=Math.floor((e-1867216.25)/36524.25);r=e+1+r-Math.floor(r/4);var n=r+1524,i=Math.floor((n-122.1)/365.25),a=Math.floor(365.25*i),o=Math.floor((n-a)/30.6001),s=n-a-Math.floor(30.6001*o),l=o-(o>13.5?13:1),u=i-(l>2.5?4716:4715);return u<=0&&u--,this.newDate(u,l,s)},toJSDate:function(t,e,r){var n=this._validate(t,e,r,u.local.invalidDate||u.regionalOptions[\"\"].invalidDate),i=new Date(n.year(),n.month()-1,n.day());return i.setHours(0),i.setMinutes(0),i.setSeconds(0),i.setMilliseconds(0),i.setHours(i.getHours()>12?i.getHours()+2:0),i},fromJSDate:function(t){return this.newDate(t.getFullYear(),t.getMonth()+1,t.getDate())}});var u=e.exports=new n;u.cdate=i,u.baseCalendar=o,u.calendars.gregorian=s},{\"object-assign\":470}],582:[function(t,e,r){var n=t(\"object-assign\"),i=t(\"./main\");n(i.regionalOptions[\"\"],{invalidArguments:\"Invalid arguments\",invalidFormat:\"Cannot format a date from another calendar\",missingNumberAt:\"Missing number at position {0}\",unknownNameAt:\"Unknown name at position {0}\",unexpectedLiteralAt:\"Unexpected literal at position {0}\",unexpectedText:\"Additional text found at end\"}),i.local=i.regionalOptions[\"\"],n(i.cdate.prototype,{formatDate:function(t,e){return\"string\"!=typeof t&&(e=t,t=\"\"),this._calendar.formatDate(t||\"\",this,e)}}),n(i.baseCalendar.prototype,{UNIX_EPOCH:i.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:86400,TICKS_EPOCH:i.instance().jdEpoch,TICKS_PER_DAY:864e9,ATOM:\"yyyy-mm-dd\",COOKIE:\"D, dd M yyyy\",FULL:\"DD, MM d, yyyy\",ISO_8601:\"yyyy-mm-dd\",JULIAN:\"J\",RFC_822:\"D, d M yy\",RFC_850:\"DD, dd-M-yy\",RFC_1036:\"D, d M yy\",RFC_1123:\"D, d M yyyy\",RFC_2822:\"D, d M yyyy\",RSS:\"D, d M yy\",TICKS:\"!\",TIMESTAMP:\"@\",W3C:\"yyyy-mm-dd\",formatDate:function(t,e,r){if(\"string\"!=typeof t&&(r=e,e=t,t=\"\"),!e)return\"\";if(e.calendar()!==this)throw i.local.invalidFormat||i.regionalOptions[\"\"].invalidFormat;t=t||this.local.dateFormat,r=r||{};for(var n=r.dayNamesShort||this.local.dayNamesShort,a=r.dayNames||this.local.dayNames,o=r.monthNumbers||this.local.monthNumbers,s=r.monthNamesShort||this.local.monthNamesShort,l=r.monthNames||this.local.monthNames,u=(r.calculateWeek||this.local.calculateWeek,function(e,r){for(var n=1;v+n<t.length&&t.charAt(v+n)===e;)n++;return v+=n-1,Math.floor(n/(r||1))>1}),c=function(t,e,r,n){var i=\"\"+e;if(u(t,n))for(;i.length<r;)i=\"0\"+i;return i},h=this,f=this.local.digits,d=function(t){return r.localNumbers&&f?f(t):t},p=\"\",m=!1,v=0;v<t.length;v++)if(m)\"'\"!==t.charAt(v)||u(\"'\")?p+=t.charAt(v):m=!1;else switch(t.charAt(v)){case\"d\":p+=d(c(\"d\",e.day(),2));break;case\"D\":p+=function(t,e,r,n){return u(t)?n[e]:r[e]}(\"D\",e.dayOfWeek(),n,a);break;case\"o\":p+=c(\"o\",e.dayOfYear(),3);break;case\"w\":p+=c(\"w\",e.weekOfYear(),2);break;case\"m\":p+=function(t){return\"function\"==typeof o?o.call(h,t,u(\"m\")):d(c(\"m\",t.month(),2))}(e);break;case\"M\":p+=function(t,e){return e?\"function\"==typeof l?l.call(h,t):l[t.month()-h.minMonth]:\"function\"==typeof s?s.call(h,t):s[t.month()-h.minMonth]}(e,u(\"M\"));break;case\"y\":p+=u(\"y\",2)?e.year():(e.year()%100<10?\"0\":\"\")+e.year()%100;break;case\"Y\":u(\"Y\",2),p+=e.formatYear();break;case\"J\":p+=e.toJD();break;case\"@\":p+=(e.toJD()-this.UNIX_EPOCH)*this.SECS_PER_DAY;break;case\"!\":p+=(e.toJD()-this.TICKS_EPOCH)*this.TICKS_PER_DAY;break;case\"'\":u(\"'\")?p+=\"'\":m=!0;break;default:p+=t.charAt(v)}return p},parseDate:function(t,e,r){if(null==e)throw i.local.invalidArguments||i.regionalOptions[\"\"].invalidArguments;if(\"\"===(e=\"object\"==typeof e?e.toString():e+\"\"))return null;t=t||this.local.dateFormat,r=r||{};var n=r.shortYearCutoff||this.shortYearCutoff;n=\"string\"!=typeof n?n:this.today().year()%100+parseInt(n,10);for(var a=r.dayNamesShort||this.local.dayNamesShort,o=r.dayNames||this.local.dayNames,s=r.parseMonth||this.local.parseMonth,l=r.monthNumbers||this.local.monthNumbers,u=r.monthNamesShort||this.local.monthNamesShort,c=r.monthNames||this.local.monthNames,h=-1,f=-1,d=-1,p=-1,m=-1,v=!1,g=!1,y=function(e,r){for(var n=1;k+n<t.length&&t.charAt(k+n)===e;)n++;return k+=n-1,Math.floor(n/(r||1))>1},b=function(t,r){var n=y(t,r),a=[2,3,n?4:2,n?4:2,10,11,20][\"oyYJ@!\".indexOf(t)+1],o=new RegExp(\"^-?\\\\d{1,\"+a+\"}\"),s=e.substring(M).match(o);if(!s)throw(i.local.missingNumberAt||i.regionalOptions[\"\"].missingNumberAt).replace(/\\{0\\}/,M);return M+=s[0].length,parseInt(s[0],10)},x=this,_=function(t,r,n,a){for(var o=y(t,a)?n:r,s=0;s<o.length;s++)if(e.substr(M,o[s].length).toLowerCase()===o[s].toLowerCase())return M+=o[s].length,s+x.minMonth;throw(i.local.unknownNameAt||i.regionalOptions[\"\"].unknownNameAt).replace(/\\{0\\}/,M)},w=function(){if(e.charAt(M)!==t.charAt(k))throw(i.local.unexpectedLiteralAt||i.regionalOptions[\"\"].unexpectedLiteralAt).replace(/\\{0\\}/,M);M++},M=0,k=0;k<t.length;k++)if(g)\"'\"!==t.charAt(k)||y(\"'\")?w():g=!1;else switch(t.charAt(k)){case\"d\":p=b(\"d\");break;case\"D\":_(\"D\",a,o);break;case\"o\":m=b(\"o\");break;case\"w\":b(\"w\");break;case\"m\":d=function(){if(\"function\"==typeof l){y(\"m\");var t=l.call(x,e.substring(M));return M+=t.length,t}return b(\"m\")}();break;case\"M\":d=function(){if(\"function\"==typeof c){var t=y(\"M\")?c.call(x,e.substring(M)):u.call(x,e.substring(M));return M+=t.length,t}return _(\"M\",u,c)}();break;case\"y\":var A=k;v=!y(\"y\",2),k=A,f=b(\"y\",2);break;case\"Y\":f=b(\"Y\",2);break;case\"J\":h=b(\"J\")+.5,\".\"===e.charAt(M)&&(M++,b(\"J\"));break;case\"@\":h=b(\"@\")/this.SECS_PER_DAY+this.UNIX_EPOCH;break;case\"!\":h=b(\"!\")/this.TICKS_PER_DAY+this.TICKS_EPOCH;break;case\"*\":M=e.length;break;case\"'\":y(\"'\")?w():g=!0;break;default:w()}if(M<e.length)throw i.local.unexpectedText||i.regionalOptions[\"\"].unexpectedText;if(-1===f?f=this.today().year():f<100&&v&&(f+=-1===n?1900:this.today().year()-this.today().year()%100-(f<=n?0:100)),\"string\"==typeof d&&(d=s.call(this,f,d)),m>-1){d=1,p=m;for(var T=this.daysInMonth(f,d);p>T;T=this.daysInMonth(f,d))d++,p-=T}return h>-1?this.fromJD(h):this.newDate(f,d,p)},determineDate:function(t,e,r,n,i){r&&\"object\"!=typeof r&&(i=n,n=r,r=null),\"string\"!=typeof n&&(i=n,n=\"\");var a=this;return e=e?e.newDate():null,t=null==t?e:\"string\"==typeof t?function(t){try{return a.parseDate(n,t,i)}catch(t){}t=t.toLowerCase();for(var e=(t.match(/^c/)&&r?r.newDate():null)||a.today(),o=/([+-]?[0-9]+)\\s*(d|w|m|y)?/g,s=o.exec(t);s;)e.add(parseInt(s[1],10),s[2]||\"d\"),s=o.exec(t);return e}(t):\"number\"==typeof t?isNaN(t)||t===1/0||t===-1/0?e:a.today().add(t,\"d\"):a.newDate(t)}})},{\"./main\":581,\"object-assign\":470}],583:[function(t,e,r){e.exports=t(\"cwise-compiler\")({args:[\"array\",{offset:[1],array:0},\"scalar\",\"scalar\",\"index\"],pre:{body:\"{}\",args:[],thisVars:[],localVars:[]},post:{body:\"{}\",args:[],thisVars:[],localVars:[]},body:{body:\"{\\n var _inline_1_da = _inline_1_arg0_ - _inline_1_arg3_\\n var _inline_1_db = _inline_1_arg1_ - _inline_1_arg3_\\n if((_inline_1_da >= 0) !== (_inline_1_db >= 0)) {\\n _inline_1_arg2_.push(_inline_1_arg4_[0] + 0.5 + 0.5 * (_inline_1_da + _inline_1_db) / (_inline_1_da - _inline_1_db))\\n }\\n }\",args:[{name:\"_inline_1_arg0_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_1_arg1_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_1_arg2_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_1_arg3_\",lvalue:!1,rvalue:!0,count:2},{name:\"_inline_1_arg4_\",lvalue:!1,rvalue:!0,count:1}],thisVars:[],localVars:[\"_inline_1_da\",\"_inline_1_db\"]},funcName:\"zeroCrossings\"})},{\"cwise-compiler\":110}],584:[function(t,e,r){\"use strict\";function n(t,e){var r=[];return e=+e||0,i(t.hi(t.shape[0]-1),r,e),r}e.exports=n;var i=t(\"./lib/zc-core\")},{\"./lib/zc-core\":583}],585:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../plots/cartesian/axes\"),a=t(\"./common_defaults\"),o=t(\"./attributes\");e.exports=function(t,e,r,s,l){function u(r,i){return n.coerce(t,e,o,r,i)}s=s||{},l=l||{};var c=u(\"visible\",!l.itemIsNotPlainObject),h=u(\"clicktoshow\");if(!c&&!h)return e;a(t,e,r,u);for(var f=e.showarrow,d=[\"x\",\"y\"],p=[-10,-30],m={_fullLayout:r},v=0;v<2;v++){var g=d[v],y=i.coerceRef(t,e,m,g,\"\",\"paper\");if(i.coercePosition(e,m,u,y,g,.5),f){var b=\"a\"+g,x=i.coerceRef(t,e,m,b,\"pixel\");\"pixel\"!==x&&x!==y&&(x=e[b]=\"pixel\");var _=\"pixel\"===x?p[v]:.4;i.coercePosition(e,m,u,x,b,_)}u(g+\"anchor\"),u(g+\"shift\")}if(n.noneOrAll(t,e,[\"x\",\"y\"]),f&&n.noneOrAll(t,e,[\"ax\",\"ay\"]),h){var w=u(\"xclick\"),M=u(\"yclick\");e._xclick=void 0===w?e.x:i.cleanPosition(w,m,e.xref),e._yclick=void 0===M?e.y:i.cleanPosition(M,m,e.yref)}return e}},{\"../../lib\":728,\"../../plots/cartesian/axes\":772,\"./attributes\":587,\"./common_defaults\":590}],586:[function(t,e,r){\"use strict\";e.exports=[{path:\"\",backoff:0},{path:\"M-2.4,-3V3L0.6,0Z\",backoff:.6},{path:\"M-3.7,-2.5V2.5L1.3,0Z\",backoff:1.3},{path:\"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z\",backoff:1.55},{path:\"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z\",backoff:1.6},{path:\"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z\",backoff:2},{path:\"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z\",backoff:0,noRotate:!0},{path:\"M2,2V-2H-2V2Z\",backoff:0,noRotate:!0}]},{}],587:[function(t,e,r){\"use strict\";var n=t(\"./arrow_paths\"),i=t(\"../../plots/font_attributes\"),a=t(\"../../plots/cartesian/constants\");e.exports={_isLinkedToArray:\"annotation\",visible:{valType:\"boolean\",dflt:!0,editType:\"calcIfAutorange\"},text:{valType:\"string\",editType:\"calcIfAutorange\"},textangle:{valType:\"angle\",dflt:0,editType:\"calcIfAutorange\"},font:i({editType:\"calcIfAutorange\",colorEditType:\"arraydraw\"}),width:{valType:\"number\",min:1,dflt:null,editType:\"calcIfAutorange\"},height:{valType:\"number\",min:1,dflt:null,editType:\"calcIfAutorange\"},opacity:{valType:\"number\",min:0,max:1,dflt:1,editType:\"arraydraw\"},align:{valType:\"enumerated\",values:[\"left\",\"center\",\"right\"],dflt:\"center\",editType:\"arraydraw\"},valign:{valType:\"enumerated\",values:[\"top\",\"middle\",\"bottom\"],dflt:\"middle\",editType:\"arraydraw\"},bgcolor:{valType:\"color\",dflt:\"rgba(0,0,0,0)\",editType:\"arraydraw\"},bordercolor:{valType:\"color\",dflt:\"rgba(0,0,0,0)\",editType:\"arraydraw\"},borderpad:{valType:\"number\",min:0,dflt:1,editType:\"calcIfAutorange\"},borderwidth:{valType:\"number\",min:0,dflt:1,editType:\"calcIfAutorange\"},showarrow:{valType:\"boolean\",dflt:!0,editType:\"calcIfAutorange\"},arrowcolor:{valType:\"color\",editType:\"arraydraw\"},arrowhead:{valType:\"integer\",min:0,max:n.length,dflt:1,editType:\"arraydraw\"},arrowsize:{valType:\"number\",min:.3,dflt:1,editType:\"calcIfAutorange\"},arrowwidth:{valType:\"number\",min:.1,editType:\"calcIfAutorange\"},standoff:{valType:\"number\",min:0,dflt:0,editType:\"calcIfAutorange\"},ax:{valType:\"any\",editType:\"calcIfAutorange\"},ay:{valType:\"any\",editType:\"calcIfAutorange\"},axref:{valType:\"enumerated\",dflt:\"pixel\",values:[\"pixel\",a.idRegex.x.toString()],editType:\"calc\"},ayref:{valType:\"enumerated\",dflt:\"pixel\",values:[\"pixel\",a.idRegex.y.toString()],editType:\"calc\"},xref:{valType:\"enumerated\",values:[\"paper\",a.idRegex.x.toString()],editType:\"calc\"},x:{valType:\"any\",editType:\"calcIfAutorange\"},xanchor:{valType:\"enumerated\",values:[\"auto\",\"left\",\"center\",\"right\"],dflt:\"auto\",editType:\"calcIfAutorange\"},xshift:{valType:\"number\",dflt:0,editType:\"calcIfAutorange\"},yref:{valType:\"enumerated\",values:[\"paper\",a.idRegex.y.toString()],editType:\"calc\"},y:{valType:\"any\",editType:\"calcIfAutorange\"},yanchor:{valType:\"enumerated\",values:[\"auto\",\"top\",\"middle\",\"bottom\"],dflt:\"auto\",editType:\"calcIfAutorange\"},yshift:{valType:\"number\",dflt:0,editType:\"calcIfAutorange\"},clicktoshow:{valType:\"enumerated\",values:[!1,\"onoff\",\"onout\"],dflt:!1,editType:\"arraydraw\"},xclick:{valType:\"any\",editType:\"arraydraw\"},yclick:{valType:\"any\",editType:\"arraydraw\"},hovertext:{valType:\"string\",editType:\"arraydraw\"},hoverlabel:{bgcolor:{valType:\"color\",editType:\"arraydraw\"},bordercolor:{valType:\"color\",editType:\"arraydraw\"},font:i({editType:\"arraydraw\"}),editType:\"arraydraw\"},captureevents:{valType:\"boolean\",editType:\"arraydraw\"},editType:\"calc\",_deprecated:{ref:{valType:\"string\",editType:\"calc\"}}}},{\"../../plots/cartesian/constants\":777,\"../../plots/font_attributes\":796,\"./arrow_paths\":586}],588:[function(t,e,r){\"use strict\";function n(t){var e=t._fullLayout;i.filterVisible(e.annotations).forEach(function(e){var r,n,i=a.getFromId(t,e.xref),o=a.getFromId(t,e.yref),s=3*e.arrowsize*e.arrowwidth||0;i&&i.autorange&&(r=s+e.xshift,n=s-e.xshift,e.axref===e.xref?(a.expand(i,[i.r2c(e.x)],{ppadplus:r,ppadminus:n}),a.expand(i,[i.r2c(e.ax)],{ppadplus:e._xpadplus,ppadminus:e._xpadminus})):a.expand(i,[i.r2c(e.x)],{ppadplus:Math.max(e._xpadplus,r),ppadminus:Math.max(e._xpadminus,n)})),o&&o.autorange&&(r=s-e.yshift,n=s+e.yshift,e.ayref===e.yref?(a.expand(o,[o.r2c(e.y)],{ppadplus:r,ppadminus:n}),a.expand(o,[o.r2c(e.ay)],{ppadplus:e._ypadplus,ppadminus:e._ypadminus})):a.expand(o,[o.r2c(e.y)],{ppadplus:Math.max(e._ypadplus,r),ppadminus:Math.max(e._ypadminus,n)}))})}var i=t(\"../../lib\"),a=t(\"../../plots/cartesian/axes\"),o=t(\"./draw\").draw;e.exports=function(t){var e=t._fullLayout,r=i.filterVisible(e.annotations);if(r.length&&t._fullData.length){var s={};r.forEach(function(t){s[t.xref]=!0,s[t.yref]=!0});if(a.list(t).filter(function(t){return t.autorange&&s[t._id]}).length)return i.syncOrAsync([o,n],t)}}},{\"../../lib\":728,\"../../plots/cartesian/axes\":772,\"./draw\":593}],589:[function(t,e,r){\"use strict\";function n(t,e){var r=a(t,e);return r.on.length>0||r.explicitOff.length>0}function i(t,e){var r,n=a(t,e),i=n.on,o=n.off.concat(n.explicitOff),l={};if(i.length||o.length){for(r=0;r<i.length;r++)l[\"annotations[\"+i[r]+\"].visible\"]=!0;for(r=0;r<o.length;r++)l[\"annotations[\"+o[r]+\"].visible\"]=!1;return s.update(t,{},l)}}function a(t,e){var r,n,i,a,s,l,u,c,h=t._fullLayout.annotations,f=[],d=[],p=[],m=(e||[]).length;for(r=0;r<h.length;r++)if(i=h[r],a=i.clicktoshow){for(n=0;n<m;n++)if(s=e[n],l=s.xaxis,u=s.yaxis,l._id===i.xref&&u._id===i.yref&&l.d2r(s.x)===o(i._xclick,l)&&u.d2r(s.y)===o(i._yclick,u)){c=i.visible?\"onout\"===a?d:p:f,c.push(r);break}n===m&&i.visible&&\"onout\"===a&&d.push(r)}return{on:f,off:d,explicitOff:p}}function o(t,e){return\"log\"===e.type?e.l2r(t):e.d2r(t)}var s=t(\"../../plotly\");e.exports={hasClickToShow:n,onClick:i}},{\"../../plotly\":767}],590:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../color\");e.exports=function(t,e,r,a){a(\"opacity\");var o=a(\"bgcolor\"),s=a(\"bordercolor\"),l=i.opacity(s);a(\"borderpad\");var u=a(\"borderwidth\"),c=a(\"showarrow\");a(\"text\",c?\" \":\"new text\"),a(\"textangle\"),n.coerceFont(a,\"font\",r.font),a(\"width\"),a(\"align\"),a(\"height\")&&a(\"valign\"),c&&(a(\"arrowcolor\",l?e.bordercolor:i.defaultLine),a(\"arrowhead\"),a(\"arrowsize\"),a(\"arrowwidth\",2*(l&&u||1)),a(\"standoff\"));var h=a(\"hovertext\"),f=r.hoverlabel||{};if(h){var d=a(\"hoverlabel.bgcolor\",f.bgcolor||(i.opacity(o)?i.rgb(o):i.defaultLine)),p=a(\"hoverlabel.bordercolor\",f.bordercolor||i.contrast(d));n.coerceFont(a,\"hoverlabel.font\",{family:f.font.family,size:f.font.size,color:f.font.color||p})}a(\"captureevents\",!!h)}},{\"../../lib\":728,\"../color\":604}],591:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../../lib/to_log_range\");e.exports=function(t,e,r,a){function o(t){var r=u[t],o=null;o=s?i(r,e.range):Math.pow(10,r),n(o)||(o=null),a(c+t,o)}e=e||{};var s=\"log\"===r&&\"linear\"===e.type,l=\"linear\"===r&&\"log\"===e.type;if(s||l)for(var u,c,h=t._fullLayout.annotations,f=e._id.charAt(0),d=0;d<h.length;d++)u=h[d],c=\"annotations[\"+d+\"].\",u[f+\"ref\"]===e._id&&o(f),u[\"a\"+f+\"ref\"]===e._id&&o(\"a\"+f)}},{\"../../lib/to_log_range\":752,\"fast-isnumeric\":131}],592:[function(t,e,r){\"use strict\";var n=t(\"../../plots/array_container_defaults\"),i=t(\"./annotation_defaults\");e.exports=function(t,e){n(t,e,{name:\"annotations\",handleItemDefaults:i})}},{\"../../plots/array_container_defaults\":769,\"./annotation_defaults\":585}],593:[function(t,e,r){\"use strict\";function n(t){var e=t._fullLayout;e._infolayer.selectAll(\".annotation\").remove();for(var r=0;r<e.annotations.length;r++)e.annotations[r].visible&&i(t,r);return l.previousPromises(t)}function i(t,e){var r=t._fullLayout,n=r.annotations[e]||{};a(t,n,e,!1,c.getFromId(t,n.xref),c.getFromId(t,n.yref))}function a(t,e,r,n,i,a){function l(r){return r.call(f.font,F).attr({\"text-anchor\":{left:\"start\",right:\"end\"}[e.align]||\"middle\"}),p.convertToTspans(r,t,c),r}function c(){function r(t,e){return\"auto\"===e&&(e=t<1/3?\"left\":t>2/3?\"right\":\"center\"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[e]}var o=j.selectAll(\"a\");if(1===o.size()&&o.text()===j.text()){C.insert(\"a\",\":first-child\").attr({\"xlink:xlink:href\":o.attr(\"xlink:href\"),\"xlink:xlink:show\":o.attr(\"xlink:show\")}).style({cursor:\"pointer\"}).node().appendChild(P.node())}var l=C.select(\".annotation-text-math-group\"),c=!l.empty(),d=f.bBox((c?l:j).node()),y=d.width,L=d.height,z=e.width||y,F=e.height||L,N=Math.round(z+2*D),B=Math.round(F+2*D);e._w=z,e._h=F;for(var U=!1,V=[\"x\",\"y\"],H=0;H<V.length;H++){var q,G,Y,W,X,Z=V[H],J=e[Z+\"ref\"]||Z,K=e[\"a\"+Z+\"ref\"],Q={x:i,y:a}[Z],$=(A+(\"x\"===Z?0:-90))*Math.PI/180,tt=N*Math.cos($),et=B*Math.sin($),rt=Math.abs(tt)+Math.abs(et),nt=e[Z+\"anchor\"],it=e[Z+\"shift\"]*(\"x\"===Z?1:-1),at=k[Z];if(Q){var ot=Q.r2fraction(e[Z]);if((t._dragging||!Q.autorange)&&(ot<0||ot>1)&&(K===J?((ot=Q.r2fraction(e[\"a\"+Z]))<0||ot>1)&&(U=!0):U=!0,U))continue;q=Q._offset+Q.r2p(e[Z]),W=.5}else\"x\"===Z?(Y=e[Z],q=_.l+_.w*Y):(Y=1-e[Z],q=_.t+_.h*Y),W=e.showarrow?.5:Y;if(e.showarrow){at.head=q;var st=e[\"a\"+Z];X=tt*r(.5,e.xanchor)-et*r(.5,e.yanchor),K===J?(at.tail=Q._offset+Q.r2p(st),G=X):(at.tail=q+st,G=X+st),at.text=at.tail+X;var lt=x[\"x\"===Z?\"width\":\"height\"];if(\"paper\"===J&&(at.head=u.constrain(at.head,1,lt-1)),\"pixel\"===K){var ut=-Math.max(at.tail-3,at.text),ct=Math.min(at.tail+3,at.text)-lt;ut>0?(at.tail+=ut,at.text+=ut):ct>0&&(at.tail-=ct,at.text-=ct)}at.tail+=it,at.head+=it}else X=rt*r(W,nt),G=X,at.text=q+X;at.text+=it,X+=it,G+=it,e[\"_\"+Z+\"padplus\"]=rt/2+G,e[\"_\"+Z+\"padminus\"]=rt/2-G,e[\"_\"+Z+\"size\"]=rt,e[\"_\"+Z+\"shift\"]=X}if(U)return void C.remove();var ht=0,ft=0;if(\"left\"!==e.align&&(ht=(z-y)*(\"center\"===e.align?.5:1)),\"top\"!==e.valign&&(ft=(F-L)*(\"middle\"===e.valign?.5:1)),c)l.select(\"svg\").attr({x:D+ht-1,y:D+ft}).call(f.setClipUrl,O?M:null);else{var dt=D+ft-d.top,pt=D+ht-d.left;j.call(p.positionText,pt,dt).call(f.setClipUrl,O?M:null)}R.select(\"rect\").call(f.setRect,D,D,z,F),P.call(f.setRect,I/2,I/2,N-I,B-I),C.call(f.setTranslate,Math.round(k.x.text-N/2),Math.round(k.y.text-B/2)),S.attr({transform:\"rotate(\"+A+\",\"+k.x.text+\",\"+k.y.text+\")\"});var mt=function(r,o){T.selectAll(\".annotation-arrow-g\").remove();var l=k.x.head,c=k.y.head,d=k.x.tail+r,p=k.y.tail+o,m=k.x.text+r,y=k.y.text+o,x=u.rotationXYMatrix(A,m,y),M=u.apply2DTransform(x),E=u.apply2DTransform2(x),L=+P.attr(\"width\"),I=+P.attr(\"height\"),z=m-.5*L,D=z+L,O=y-.5*I,R=O+I,F=[[z,O,z,R],[z,R,D,R],[D,R,D,O],[D,O,z,O]].map(E);if(!F.reduce(function(t,e){return t^!!u.segmentsIntersect(l,c,l+1e6,c+1e6,e[0],e[1],e[2],e[3])},!1)){F.forEach(function(t){var e=u.segmentsIntersect(d,p,l,c,t[0],t[1],t[2],t[3]);e&&(d=e.x,p=e.y)});var j=e.arrowwidth,N=e.arrowcolor,B=T.append(\"g\").style({opacity:h.opacity(N)}).classed(\"annotation-arrow-g\",!0),U=B.append(\"path\").attr(\"d\",\"M\"+d+\",\"+p+\"L\"+l+\",\"+c).style(\"stroke-width\",j+\"px\").call(h.stroke,h.rgb(N));if(g(U,\"end\",e),w.annotationPosition&&U.node().parentNode&&!n){var V=l,H=c;if(e.standoff){var q=Math.sqrt(Math.pow(l-d,2)+Math.pow(c-p,2));V+=e.standoff*(d-l)/q,H+=e.standoff*(p-c)/q}var G,Y,W,X=B.append(\"path\").classed(\"annotation-arrow\",!0).classed(\"anndrag\",!0).attr({d:\"M3,3H-3V-3H3ZM0,0L\"+(d-V)+\",\"+(p-H),transform:\"translate(\"+V+\",\"+H+\")\"}).style(\"stroke-width\",j+6+\"px\").call(h.stroke,\"rgba(0,0,0,0)\").call(h.fill,\"rgba(0,0,0,0)\");v.init({element:X.node(),gd:t,prepFn:function(){var t=f.getTranslate(C);Y=t.x,W=t.y,G={},i&&i.autorange&&(G[i._name+\".autorange\"]=!0),a&&a.autorange&&(G[a._name+\".autorange\"]=!0)},moveFn:function(t,r){var n=M(Y,W),o=n[0]+t,s=n[1]+r;C.call(f.setTranslate,o,s),G[b+\".x\"]=i?i.p2r(i.r2p(e.x)+t):e.x+t/_.w,G[b+\".y\"]=a?a.p2r(a.r2p(e.y)+r):e.y-r/_.h,e.axref===e.xref&&(G[b+\".ax\"]=i.p2r(i.r2p(e.ax)+t)),e.ayref===e.yref&&(G[b+\".ay\"]=a.p2r(a.r2p(e.ay)+r)),B.attr(\"transform\",\"translate(\"+t+\",\"+r+\")\"),S.attr({transform:\"rotate(\"+A+\",\"+o+\",\"+s+\")\"})},doneFn:function(e){if(e){s.relayout(t,G);var r=document.querySelector(\".js-notes-box-panel\");r&&r.redraw(r.selectedObj)}}})}}};if(e.showarrow&&mt(0,0),E){var vt,gt;v.init({element:C.node(),gd:t,prepFn:function(){gt=S.attr(\"transform\"),vt={}},moveFn:function(t,r){var o=\"pointer\";if(e.showarrow)e.axref===e.xref?vt[b+\".ax\"]=i.p2r(i.r2p(e.ax)+t):vt[b+\".ax\"]=e.ax+t,e.ayref===e.yref?vt[b+\".ay\"]=a.p2r(a.r2p(e.ay)+r):vt[b+\".ay\"]=e.ay+r,mt(t,r);else{if(n)return;if(i)vt[b+\".x\"]=e.x+t/i._m;else{var s=e._xsize/_.w,l=e.x+(e._xshift-e.xshift)/_.w-s/2;vt[b+\".x\"]=v.align(l+t/_.w,s,0,1,e.xanchor)}if(a)vt[b+\".y\"]=e.y+r/a._m;else{var u=e._ysize/_.h,c=e.y-(e._yshift+e.yshift)/_.h-u/2;vt[b+\".y\"]=v.align(c-r/_.h,u,0,1,e.yanchor)}i&&a||(o=v.getCursor(i?.5:vt[b+\".x\"],a?.5:vt[b+\".y\"],e.xanchor,e.yanchor))}S.attr({transform:\"translate(\"+t+\",\"+r+\")\"+gt}),m(C,o)},doneFn:function(e){if(m(C),e){s.relayout(t,vt);var r=document.querySelector(\".js-notes-box-panel\");r&&r.redraw(r.selectedObj)}}})}}var y,b,x=t._fullLayout,_=t._fullLayout._size,w=t._context.edits;n?(y=\"annotation-\"+n,b=n+\".annotations[\"+r+\"]\"):(y=\"annotation\",b=\"annotations[\"+r+\"]\"),x._infolayer.selectAll(\".\"+y+'[data-index=\"'+r+'\"]').remove();var M=\"clip\"+x._uid+\"_ann\"+r;if(!e._input||!1===e.visible)return void o.selectAll(\"#\"+M).remove();var k={x:{},y:{}},A=+e.textangle||0,T=x._infolayer.append(\"g\").classed(y,!0).attr(\"data-index\",String(r)).style(\"opacity\",e.opacity),S=T.append(\"g\").classed(\"annotation-text-g\",!0),E=w[e.showarrow?\"annotationTail\":\"annotationPosition\"],L=e.captureevents||w.annotationText||E,C=S.append(\"g\").style(\"pointer-events\",L?\"all\":null).call(m,\"default\").on(\"click\",function(){t._dragging=!1;var i={index:r,annotation:e._input,fullAnnotation:e,event:o.event};n&&(i.subplotId=n),t.emit(\"plotly_clickannotation\",i)});e.hovertext&&C.on(\"mouseover\",function(){var r=e.hoverlabel,n=r.font,i=this.getBoundingClientRect(),a=t.getBoundingClientRect();d.loneHover({x0:i.left-a.left,x1:i.right-a.left,y:(i.top+i.bottom)/2-a.top,text:e.hovertext,color:r.bgcolor,borderColor:r.bordercolor,fontFamily:n.family,fontSize:n.size,fontColor:n.color},{container:x._hoverlayer.node(),outerContainer:x._paper.node(),gd:t})}).on(\"mouseout\",function(){d.loneUnhover(x._hoverlayer.node())});var I=e.borderwidth,z=e.borderpad,D=I+z,P=C.append(\"rect\").attr(\"class\",\"bg\").style(\"stroke-width\",I+\"px\").call(h.stroke,e.bordercolor).call(h.fill,e.bgcolor),O=e.width||e.height,R=x._topclips.selectAll(\"#\"+M).data(O?[0]:[]);R.enter().append(\"clipPath\").classed(\"annclip\",!0).attr(\"id\",M).append(\"rect\"),R.exit().remove();var F=e.font,j=C.append(\"text\").classed(\"annotation-text\",!0).text(e.text);w.annotationText?j.call(p.makeEditable,{delegate:C,gd:t}).call(l).on(\"edit\",function(r){e.text=r,this.call(l);var n={};n[b+\".text\"]=e.text,i&&i.autorange&&(n[i._name+\".autorange\"]=!0),a&&a.autorange&&(n[a._name+\".autorange\"]=!0),s.relayout(t,n)}):j.call(l)}var o=t(\"d3\"),s=t(\"../../plotly\"),l=t(\"../../plots/plots\"),u=t(\"../../lib\"),c=t(\"../../plots/cartesian/axes\"),h=t(\"../color\"),f=t(\"../drawing\"),d=t(\"../fx\"),p=t(\"../../lib/svg_text_utils\"),m=t(\"../../lib/setcursor\"),v=t(\"../dragelement\"),g=t(\"./draw_arrow_head\");e.exports={draw:n,drawOne:i,drawRaw:a}},{\"../../lib\":728,\"../../lib/setcursor\":746,\"../../lib/svg_text_utils\":750,\"../../plotly\":767,\"../../plots/cartesian/axes\":772,\"../../plots/plots\":831,\"../color\":604,\"../dragelement\":625,\"../drawing\":628,\"../fx\":645,\"./draw_arrow_head\":594,d3:122}],594:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../color\"),a=t(\"./arrow_paths\");e.exports=function(t,e,r){function o(){t.style(\"stroke-dasharray\",\"0px,100px\")}function s(e,a){d.path&&(d.noRotate&&(a=0),n.select(f.parentNode).append(\"path\").attr({class:t.attr(\"class\"),d:d.path,transform:\"translate(\"+e.x+\",\"+e.y+\")\"+(a?\"rotate(\"+180*a/Math.PI+\")\":\"\")+\"scale(\"+p+\")\"}).style({\n", "fill:i.rgb(r.arrowcolor),\"stroke-width\":0}))}var l,u,c,h,f=t.node(),d=a[r.arrowhead||0],p=(r.arrowwidth||1)*r.arrowsize,m=e.indexOf(\"start\")>=0,v=e.indexOf(\"end\")>=0,g=d.backoff*p+r.standoff;if(\"line\"===f.nodeName){l={x:+t.attr(\"x1\"),y:+t.attr(\"y1\")},u={x:+t.attr(\"x2\"),y:+t.attr(\"y2\")};var y=l.x-u.x,b=l.y-u.y;if(c=Math.atan2(b,y),h=c+Math.PI,g){if(g*g>y*y+b*b)return void o();var x=g*Math.cos(c),_=g*Math.sin(c);m&&(l.x-=x,l.y-=_,t.attr({x1:l.x,y1:l.y})),v&&(u.x+=x,u.y+=_,t.attr({x2:u.x,y2:u.y}))}}else if(\"path\"===f.nodeName){var w=f.getTotalLength(),M=\"\";if(w<g)return void o();if(m){var k=f.getPointAtLength(0),A=f.getPointAtLength(.1);c=Math.atan2(k.y-A.y,k.x-A.x),l=f.getPointAtLength(Math.min(g,w)),g&&(M=\"0px,\"+g+\"px,\")}if(v){var T=f.getPointAtLength(w),S=f.getPointAtLength(w-.1);if(h=Math.atan2(T.y-S.y,T.x-S.x),u=f.getPointAtLength(Math.max(0,w-g)),g){var E=M?2*g:g;M+=w-E+\"px,\"+w+\"px\"}}else M&&(M+=w+\"px\");M&&t.style(\"stroke-dasharray\",M)}m&&s(l,c),v&&s(u,h)}},{\"../color\":604,\"./arrow_paths\":586,d3:122}],595:[function(t,e,r){\"use strict\";var n=t(\"./draw\"),i=t(\"./click\");e.exports={moduleType:\"component\",name:\"annotations\",layoutAttributes:t(\"./attributes\"),supplyLayoutDefaults:t(\"./defaults\"),calcAutorange:t(\"./calc_autorange\"),draw:n.draw,drawOne:n.drawOne,drawRaw:n.drawRaw,hasClickToShow:i.hasClickToShow,onClick:i.onClick,convertCoords:t(\"./convert_coords\")}},{\"./attributes\":587,\"./calc_autorange\":588,\"./click\":589,\"./convert_coords\":591,\"./defaults\":592,\"./draw\":593}],596:[function(t,e,r){\"use strict\";var n=t(\"../annotations/attributes\"),i=t(\"../../plot_api/edit_types\").overrideAll;e.exports=i({_isLinkedToArray:\"annotation\",visible:n.visible,x:{valType:\"any\"},y:{valType:\"any\"},z:{valType:\"any\"},ax:{valType:\"number\"},ay:{valType:\"number\"},xanchor:n.xanchor,xshift:n.xshift,yanchor:n.yanchor,yshift:n.yshift,text:n.text,textangle:n.textangle,font:n.font,width:n.width,height:n.height,opacity:n.opacity,align:n.align,valign:n.valign,bgcolor:n.bgcolor,bordercolor:n.bordercolor,borderpad:n.borderpad,borderwidth:n.borderwidth,showarrow:n.showarrow,arrowcolor:n.arrowcolor,arrowhead:n.arrowhead,arrowsize:n.arrowsize,arrowwidth:n.arrowwidth,standoff:n.standoff,hovertext:n.hovertext,hoverlabel:n.hoverlabel,captureevents:n.captureevents},\"calc\",\"from-root\")},{\"../../plot_api/edit_types\":756,\"../annotations/attributes\":587}],597:[function(t,e,r){\"use strict\";function n(t,e){var r=e.fullSceneLayout,n=r.domain,o=e.fullLayout._size,s={pdata:null,type:\"linear\",autorange:!1,range:[-1/0,1/0]};t._xa={},i.extendFlat(t._xa,s),a.setConvert(t._xa),t._xa._offset=o.l+n.x[0]*o.w,t._xa.l2p=function(){return.5*(1+t.pdata[0]/t.pdata[3])*o.w*(n.x[1]-n.x[0])},t._ya={},i.extendFlat(t._ya,s),a.setConvert(t._ya),t._ya._offset=o.t+(1-n.y[1])*o.h,t._ya.l2p=function(){return.5*(1-t.pdata[1]/t.pdata[3])*o.h*(n.y[1]-n.y[0])}}var i=t(\"../../lib\"),a=t(\"../../plots/cartesian/axes\");e.exports=function(t){for(var e=t.fullSceneLayout,r=e.annotations,i=0;i<r.length;i++)n(r[i],t);t.fullLayout._infolayer.selectAll(\".annotation-\"+t.id).remove()}},{\"../../lib\":728,\"../../plots/cartesian/axes\":772}],598:[function(t,e,r){\"use strict\";function n(t,e,r,n,o){function u(r,n){return i.coerce(t,e,l,r,n)}function c(t){var n=t+\"axis\",i={_fullLayout:{}};return i._fullLayout[n]=r[n],a.coercePosition(e,i,u,t,t,.5)}return u(\"visible\",!o.itemIsNotPlainObject)?(s(t,e,n.fullLayout,u),c(\"x\"),c(\"y\"),c(\"z\"),i.noneOrAll(t,e,[\"x\",\"y\",\"z\"]),e.xref=\"x\",e.yref=\"y\",e.zref=\"z\",u(\"xanchor\"),u(\"yanchor\"),u(\"xshift\"),u(\"yshift\"),e.showarrow&&(e.axref=\"pixel\",e.ayref=\"pixel\",u(\"ax\",-10),u(\"ay\",-30),i.noneOrAll(t,e,[\"ax\",\"ay\"])),e):e}var i=t(\"../../lib\"),a=t(\"../../plots/cartesian/axes\"),o=t(\"../../plots/array_container_defaults\"),s=t(\"../annotations/common_defaults\"),l=t(\"./attributes\");e.exports=function(t,e,r){o(t,e,{name:\"annotations\",handleItemDefaults:n,fullLayout:r.fullLayout})}},{\"../../lib\":728,\"../../plots/array_container_defaults\":769,\"../../plots/cartesian/axes\":772,\"../annotations/common_defaults\":590,\"./attributes\":596}],599:[function(t,e,r){\"use strict\";var n=t(\"../annotations/draw\").drawRaw,i=t(\"../../plots/gl3d/project\"),a=[\"x\",\"y\",\"z\"];e.exports=function(t){for(var e=t.fullSceneLayout,r=t.dataScale,o=e.annotations,s=0;s<o.length;s++){for(var l=o[s],u=!1,c=0;c<3;c++){var h=a[c],f=l[h],d=e[h+\"axis\"],p=d.r2fraction(f);if(p<0||p>1){u=!0;break}}u?t.fullLayout._infolayer.select(\".annotation-\"+t.id+'[data-index=\"'+s+'\"]').remove():(l.pdata=i(t.glplot.cameraParams,[e.xaxis.r2l(l.x)*r[0],e.yaxis.r2l(l.y)*r[1],e.zaxis.r2l(l.z)*r[2]]),n(t.graphDiv,l,s,t.id,l._xa,l._ya))}}},{\"../../plots/gl3d/project\":820,\"../annotations/draw\":593}],600:[function(t,e,r){\"use strict\";e.exports={moduleType:\"component\",name:\"annotations3d\",schema:{subplots:{scene:{annotations:t(\"./attributes\")}}},layoutAttributes:t(\"./attributes\"),handleDefaults:t(\"./defaults\"),convert:t(\"./convert\"),draw:t(\"./draw\")}},{\"./attributes\":596,\"./convert\":597,\"./defaults\":598,\"./draw\":599}],601:[function(t,e,r){\"use strict\";e.exports=t(\"world-calendars/dist/main\"),t(\"world-calendars/dist/plus\"),t(\"world-calendars/dist/calendars/chinese\"),t(\"world-calendars/dist/calendars/coptic\"),t(\"world-calendars/dist/calendars/discworld\"),t(\"world-calendars/dist/calendars/ethiopian\"),t(\"world-calendars/dist/calendars/hebrew\"),t(\"world-calendars/dist/calendars/islamic\"),t(\"world-calendars/dist/calendars/julian\"),t(\"world-calendars/dist/calendars/mayan\"),t(\"world-calendars/dist/calendars/nanakshahi\"),t(\"world-calendars/dist/calendars/nepali\"),t(\"world-calendars/dist/calendars/persian\"),t(\"world-calendars/dist/calendars/taiwan\"),t(\"world-calendars/dist/calendars/thai\"),t(\"world-calendars/dist/calendars/ummalqura\")},{\"world-calendars/dist/calendars/chinese\":567,\"world-calendars/dist/calendars/coptic\":568,\"world-calendars/dist/calendars/discworld\":569,\"world-calendars/dist/calendars/ethiopian\":570,\"world-calendars/dist/calendars/hebrew\":571,\"world-calendars/dist/calendars/islamic\":572,\"world-calendars/dist/calendars/julian\":573,\"world-calendars/dist/calendars/mayan\":574,\"world-calendars/dist/calendars/nanakshahi\":575,\"world-calendars/dist/calendars/nepali\":576,\"world-calendars/dist/calendars/persian\":577,\"world-calendars/dist/calendars/taiwan\":578,\"world-calendars/dist/calendars/thai\":579,\"world-calendars/dist/calendars/ummalqura\":580,\"world-calendars/dist/main\":581,\"world-calendars/dist/plus\":582}],602:[function(t,e,r){\"use strict\";function n(t,e,r){for(var n,a,o,s,l,u=Math.floor((e+.05)/h)+c,f=i(r).fromJD(u),d=0;-1!==(d=t.indexOf(\"%\",d));)n=t.charAt(d+1),\"0\"===n||\"-\"===n||\"_\"===n?(o=3,a=t.charAt(d+2),\"_\"===n&&(n=\"-\")):(a=n,n=\"0\",o=2),s=b[a],s?(l=s===y?y:f.formatDate(s[n]),t=t.substr(0,d)+l+t.substr(d+o),d+=l.length):d+=o;return t}function i(t){var e=x[t];return e||(e=x[t]=s.instance(t))}function a(t){return l.extendFlat({},f,{description:t})}function o(t){return\"Sets the calendar system to use with `\"+t+\"` date data.\"}var s=t(\"./calendars\"),l=t(\"../../lib\"),u=t(\"../../constants/numerical\"),c=u.EPOCHJD,h=u.ONEDAY,f={valType:\"enumerated\",values:Object.keys(s.calendars),editType:\"calc\",dflt:\"gregorian\"},d=function(t,e,r,n){var i={};return i[r]=f,l.coerce(t,e,i,r,n)},p=function(t,e,r,n){for(var i=0;i<r.length;i++)d(t,e,r[i]+\"calendar\",n.calendar)},m={chinese:\"2000-01-01\",coptic:\"2000-01-01\",discworld:\"2000-01-01\",ethiopian:\"2000-01-01\",hebrew:\"5000-01-01\",islamic:\"1000-01-01\",julian:\"2000-01-01\",mayan:\"5000-01-01\",nanakshahi:\"1000-01-01\",nepali:\"2000-01-01\",persian:\"1000-01-01\",jalali:\"1000-01-01\",taiwan:\"1000-01-01\",thai:\"2000-01-01\",ummalqura:\"1400-01-01\"},v={chinese:\"2000-01-02\",coptic:\"2000-01-03\",discworld:\"2000-01-03\",ethiopian:\"2000-01-05\",hebrew:\"5000-01-01\",islamic:\"1000-01-02\",julian:\"2000-01-03\",mayan:\"5000-01-01\",nanakshahi:\"1000-01-05\",nepali:\"2000-01-05\",persian:\"1000-01-01\",jalali:\"1000-01-01\",taiwan:\"1000-01-04\",thai:\"2000-01-04\",ummalqura:\"1400-01-06\"},g={chinese:[\"2000-01-01\",\"2001-01-01\"],coptic:[\"1700-01-01\",\"1701-01-01\"],discworld:[\"1800-01-01\",\"1801-01-01\"],ethiopian:[\"2000-01-01\",\"2001-01-01\"],hebrew:[\"5700-01-01\",\"5701-01-01\"],islamic:[\"1400-01-01\",\"1401-01-01\"],julian:[\"2000-01-01\",\"2001-01-01\"],mayan:[\"5200-01-01\",\"5201-01-01\"],nanakshahi:[\"0500-01-01\",\"0501-01-01\"],nepali:[\"2000-01-01\",\"2001-01-01\"],persian:[\"1400-01-01\",\"1401-01-01\"],jalali:[\"1400-01-01\",\"1401-01-01\"],taiwan:[\"0100-01-01\",\"0101-01-01\"],thai:[\"2500-01-01\",\"2501-01-01\"],ummalqura:[\"1400-01-01\",\"1401-01-01\"]},y=\"##\",b={d:{0:\"dd\",\"-\":\"d\"},e:{0:\"d\",\"-\":\"d\"},a:{0:\"D\",\"-\":\"D\"},A:{0:\"DD\",\"-\":\"DD\"},j:{0:\"oo\",\"-\":\"o\"},W:{0:\"ww\",\"-\":\"w\"},m:{0:\"mm\",\"-\":\"m\"},b:{0:\"M\",\"-\":\"M\"},B:{0:\"MM\",\"-\":\"MM\"},y:{0:\"yy\",\"-\":\"yy\"},Y:{0:\"yyyy\",\"-\":\"yyyy\"},U:y,w:y,c:{0:\"D M d %X yyyy\",\"-\":\"D M d %X yyyy\"},x:{0:\"mm/dd/yyyy\",\"-\":\"mm/dd/yyyy\"}},x={},_={xcalendar:a(o(\"x\"))},w=l.extendFlat({},_,{ycalendar:a(o(\"y\"))}),M=l.extendFlat({},w,{zcalendar:a(o(\"z\"))}),k=a([\"Sets the calendar system to use for `range` and `tick0`\",\"if this is a date axis. This does not set the calendar for\",\"interpreting data on this axis, that's specified in the trace\",\"or via the global `layout.calendar`\"].join(\" \"));e.exports={moduleType:\"component\",name:\"calendars\",schema:{traces:{scatter:w,bar:w,box:w,heatmap:w,contour:w,histogram:w,histogram2d:w,histogram2dcontour:w,scatter3d:M,surface:M,mesh3d:M,scattergl:w,ohlc:_,candlestick:_},layout:{calendar:a([\"Sets the default calendar system to use for interpreting and\",\"displaying dates throughout the plot.\"].join(\" \"))},subplots:{xaxis:{calendar:k},yaxis:{calendar:k},scene:{xaxis:{calendar:k},yaxis:{calendar:k},zaxis:{calendar:k}}},transforms:{filter:{valuecalendar:a([\"Sets the calendar system to use for `value`, if it is a date.\"].join(\" \")),targetcalendar:a([\"Sets the calendar system to use for `target`, if it is an\",\"array of dates. If `target` is a string (eg *x*) we use the\",\"corresponding trace attribute (eg `xcalendar`) if it exists,\",\"even if `targetcalendar` is provided.\"].join(\" \"))}}},layoutAttributes:f,handleDefaults:d,handleTraceDefaults:p,CANONICAL_SUNDAY:v,CANONICAL_TICK:m,DFLTRANGE:g,getCal:i,worldCalFmt:n}},{\"../../constants/numerical\":707,\"../../lib\":728,\"./calendars\":601}],603:[function(t,e,r){\"use strict\";r.defaults=[\"#1f77b4\",\"#ff7f0e\",\"#2ca02c\",\"#d62728\",\"#9467bd\",\"#8c564b\",\"#e377c2\",\"#7f7f7f\",\"#bcbd22\",\"#17becf\"],r.defaultLine=\"#444\",r.lightLine=\"#eee\",r.background=\"#fff\",r.borderLine=\"#BEC8D9\",r.lightFraction=1e3/11},{}],604:[function(t,e,r){\"use strict\";function n(t){if(a(t)||\"string\"!=typeof t)return t;var e=t.trim();if(\"rgb\"!==e.substr(0,3))return t;var r=e.match(/^rgba?\\s*\\(([^()]*)\\)$/);if(!r)return t;var n=r[1].trim().split(/\\s*[\\s,]\\s*/),i=\"a\"===e.charAt(3)&&4===n.length;if(!i&&3!==n.length)return t;for(var o=0;o<n.length;o++){if(!n[o].length)return t;if(n[o]=Number(n[o]),!(n[o]>=0))return t;if(3===o)n[o]>1&&(n[o]=1);else if(n[o]>=1)return t}var s=Math.round(255*n[0])+\", \"+Math.round(255*n[1])+\", \"+Math.round(255*n[2]);return i?\"rgba(\"+s+\", \"+n[3]+\")\":\"rgb(\"+s+\")\"}var i=t(\"tinycolor2\"),a=t(\"fast-isnumeric\"),o=e.exports={},s=t(\"./attributes\");o.defaults=s.defaults;var l=o.defaultLine=s.defaultLine;o.lightLine=s.lightLine;var u=o.background=s.background;o.tinyRGB=function(t){var e=t.toRgb();return\"rgb(\"+Math.round(e.r)+\", \"+Math.round(e.g)+\", \"+Math.round(e.b)+\")\"},o.rgb=function(t){return o.tinyRGB(i(t))},o.opacity=function(t){return t?i(t).getAlpha():0},o.addOpacity=function(t,e){var r=i(t).toRgb();return\"rgba(\"+Math.round(r.r)+\", \"+Math.round(r.g)+\", \"+Math.round(r.b)+\", \"+e+\")\"},o.combine=function(t,e){var r=i(t).toRgb();if(1===r.a)return i(t).toRgbString();var n=i(e||u).toRgb(),a=1===n.a?n:{r:255*(1-n.a)+n.r*n.a,g:255*(1-n.a)+n.g*n.a,b:255*(1-n.a)+n.b*n.a},o={r:a.r*(1-r.a)+r.r*r.a,g:a.g*(1-r.a)+r.g*r.a,b:a.b*(1-r.a)+r.b*r.a};return i(o).toRgbString()},o.contrast=function(t,e,r){var n=i(t);return 1!==n.getAlpha()&&(n=i(o.combine(t,u))),(n.isDark()?e?n.lighten(e):u:r?n.darken(r):l).toString()},o.stroke=function(t,e){var r=i(e);t.style({stroke:o.tinyRGB(r),\"stroke-opacity\":r.getAlpha()})},o.fill=function(t,e){var r=i(e);t.style({fill:o.tinyRGB(r),\"fill-opacity\":r.getAlpha()})},o.clean=function(t){if(t&&\"object\"==typeof t){var e,r,i,a,s=Object.keys(t);for(e=0;e<s.length;e++)if(i=s[e],a=t[i],\"color\"===i.substr(i.length-5))if(Array.isArray(a))for(r=0;r<a.length;r++)a[r]=n(a[r]);else t[i]=n(a);else if(\"colorscale\"===i.substr(i.length-10)&&Array.isArray(a))for(r=0;r<a.length;r++)Array.isArray(a[r])&&(a[r][1]=n(a[r][1]));else if(Array.isArray(a)){var l=a[0];if(!Array.isArray(l)&&l&&\"object\"==typeof l)for(r=0;r<a.length;r++)o.clean(a[r])}else a&&\"object\"==typeof a&&o.clean(a)}}},{\"./attributes\":603,\"fast-isnumeric\":131,tinycolor2:534}],605:[function(t,e,r){\"use strict\";var n=t(\"../../plots/cartesian/layout_attributes\"),i=t(\"../../plots/font_attributes\"),a=t(\"../../lib/extend\").extendFlat,o=t(\"../../plot_api/edit_types\").overrideAll;e.exports=o({thicknessmode:{valType:\"enumerated\",values:[\"fraction\",\"pixels\"],dflt:\"pixels\"},thickness:{valType:\"number\",min:0,dflt:30},lenmode:{valType:\"enumerated\",values:[\"fraction\",\"pixels\"],dflt:\"fraction\"},len:{valType:\"number\",min:0,dflt:1},x:{valType:\"number\",dflt:1.02,min:-2,max:3},xanchor:{valType:\"enumerated\",values:[\"left\",\"center\",\"right\"],dflt:\"left\"},xpad:{valType:\"number\",min:0,dflt:10},y:{valType:\"number\",dflt:.5,min:-2,max:3},yanchor:{valType:\"enumerated\",values:[\"top\",\"middle\",\"bottom\"],dflt:\"middle\"},ypad:{valType:\"number\",min:0,dflt:10},outlinecolor:n.linecolor,outlinewidth:n.linewidth,bordercolor:n.linecolor,borderwidth:{valType:\"number\",min:0,dflt:0},bgcolor:{valType:\"color\",dflt:\"rgba(0,0,0,0)\"},tickmode:n.tickmode,nticks:n.nticks,tick0:n.tick0,dtick:n.dtick,tickvals:n.tickvals,ticktext:n.ticktext,ticks:a({},n.ticks,{dflt:\"\"}),ticklen:n.ticklen,tickwidth:n.tickwidth,tickcolor:n.tickcolor,showticklabels:n.showticklabels,tickfont:i({}),tickangle:n.tickangle,tickformat:n.tickformat,tickprefix:n.tickprefix,showtickprefix:n.showtickprefix,ticksuffix:n.ticksuffix,showticksuffix:n.showticksuffix,separatethousands:n.separatethousands,exponentformat:n.exponentformat,showexponent:n.showexponent,title:{valType:\"string\",dflt:\"Click to enter colorscale title\"},titlefont:i({}),titleside:{valType:\"enumerated\",values:[\"right\",\"top\",\"bottom\"],dflt:\"top\"}},\"colorbars\",\"from-root\")},{\"../../lib/extend\":717,\"../../plot_api/edit_types\":756,\"../../plots/cartesian/layout_attributes\":783,\"../../plots/font_attributes\":796}],606:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../plots/cartesian/tick_value_defaults\"),a=t(\"../../plots/cartesian/tick_mark_defaults\"),o=t(\"../../plots/cartesian/tick_label_defaults\"),s=t(\"./attributes\");e.exports=function(t,e,r){function l(t,e){return n.coerce(c,u,s,t,e)}var u=e.colorbar={},c=t.colorbar||{};l(\"thickness\",\"fraction\"===l(\"thicknessmode\")?30/(r.width-r.margin.l-r.margin.r):30),l(\"len\",\"fraction\"===l(\"lenmode\")?1:r.height-r.margin.t-r.margin.b),l(\"x\"),l(\"xanchor\"),l(\"xpad\"),l(\"y\"),l(\"yanchor\"),l(\"ypad\"),n.noneOrAll(c,u,[\"x\",\"y\"]),l(\"outlinecolor\"),l(\"outlinewidth\"),l(\"bordercolor\"),l(\"borderwidth\"),l(\"bgcolor\"),i(c,u,l,\"linear\"),o(c,u,l,\"linear\",{outerTicks:!1,font:r.font,noHover:!0}),a(c,u,l,\"linear\",{outerTicks:!1,font:r.font,noHover:!0}),l(\"title\"),n.coerceFont(l,\"titlefont\",r.font),l(\"titleside\")}},{\"../../lib\":728,\"../../plots/cartesian/tick_label_defaults\":790,\"../../plots/cartesian/tick_mark_defaults\":791,\"../../plots/cartesian/tick_value_defaults\":792,\"./attributes\":605}],607:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"tinycolor2\"),a=t(\"../../plotly\"),o=t(\"../../plots/plots\"),s=t(\"../../registry\"),l=t(\"../../plots/cartesian/axes\"),u=t(\"../dragelement\"),c=t(\"../../lib\"),h=t(\"../../lib/extend\").extendFlat,f=t(\"../../lib/setcursor\"),d=t(\"../drawing\"),p=t(\"../color\"),m=t(\"../titles\"),v=t(\"../../lib/svg_text_utils\"),g=t(\"../../constants/alignment\").LINE_SPACING,y=t(\"../../plots/cartesian/axis_defaults\"),b=t(\"../../plots/cartesian/position_defaults\"),x=t(\"../../plots/cartesian/layout_attributes\"),_=t(\"./attributes\");e.exports=function(t,e){function r(){function _(t,e){return c.coerce(et,rt,x,t,e)}function k(){if(-1!==[\"top\",\"bottom\"].indexOf(M.titleside)){var e=lt.select(\".cbtitle\"),r=e.select(\"text\"),a=[-M.outlinewidth/2,M.outlinewidth/2],o=e.select(\".h\"+rt._id+\"title-math-group\").node(),s=15.6;if(r.node()&&(s=parseInt(r.node().style.fontSize,10)*g),o?(ct=d.bBox(o).height)>s&&(a[1]-=(ct-s)/2):r.node()&&!r.classed(\"js-placeholder\")&&(ct=d.bBox(r.node()).height),ct){if(ct+=5,\"top\"===M.titleside)rt.domain[1]-=ct/E.h,a[1]*=-1;else{rt.domain[0]+=ct/E.h;var u=v.lineCount(r);a[1]+=(1-u)*s}e.attr(\"transform\",\"translate(\"+a+\")\"),rt.setScale()}}lt.selectAll(\".cbfills,.cblines,.cbaxis\").attr(\"transform\",\"translate(0,\"+Math.round(E.h*(1-rt.domain[1]))+\")\");var h=lt.select(\".cbfills\").selectAll(\"rect.cbfill\").data(D);h.enter().append(\"rect\").classed(\"cbfill\",!0).style(\"stroke\",\"none\"),h.exit().remove(),h.each(function(t,e){var r=[0===e?I[0]:(D[e]+D[e-1])/2,e===D.length-1?I[1]:(D[e]+D[e+1])/2].map(rt.c2p).map(Math.round);e!==D.length-1&&(r[1]+=r[1]>r[0]?1:-1);var a=O(t).replace(\"e-\",\"\"),o=i(a).toHexString();n.select(this).attr({x:J,width:Math.max(H,2),y:n.min(r),height:Math.max(n.max(r)-n.min(r),2),fill:o})});var f=lt.select(\".cblines\").selectAll(\"path.cbline\").data(M.line.color&&M.line.width?z:[]);return f.enter().append(\"path\").classed(\"cbline\",!0),f.exit().remove(),f.each(function(t){n.select(this).attr(\"d\",\"M\"+J+\",\"+(Math.round(rt.c2p(t))+M.line.width/2%1)+\"h\"+H).call(d.lineGroupStyle,M.line.width,P(t),M.line.dash)}),rt._axislayer.selectAll(\"g.\"+rt._id+\"tick,path\").remove(),rt._pos=J+H+(M.outlinewidth||0)/2-(\"outside\"===M.ticks?1:0),rt.side=\"right\",c.syncOrAsync([function(){return l.doTicks(t,rt,!0)},function(){if(-1===[\"top\",\"bottom\"].indexOf(M.titleside)){var e=rt.titlefont.size,r=rt._offset+rt._length/2,i=E.l+(rt.position||0)*E.w+(\"right\"===rt.side?10+e*(rt.showticklabels?1:.5):-10-e*(rt.showticklabels?.5:0));A(\"h\"+rt._id+\"title\",{avoid:{selection:n.select(t).selectAll(\"g.\"+rt._id+\"tick\"),side:M.titleside,offsetLeft:E.l,offsetTop:E.t,maxShift:S.width},attributes:{x:i,y:r,\"text-anchor\":\"middle\"},transform:{rotate:\"-90\",offset:0}})}}])}function A(e,r){var n,i=w();n=s.traceIs(i,\"markerColorscale\")?\"marker.colorbar.title\":\"colorbar.title\";var a={propContainer:rt,propName:n,traceIndex:i.index,dfltName:\"colorscale\",containerGroup:lt.select(\".cbtitle\")},o=\"h\"===e.charAt(0)?e.substr(1):\"h\"+e;lt.selectAll(\".\"+o+\",.\"+o+\"-math-group\").remove(),m.draw(t,e,h(a,r||{}))}function T(){var r=H+M.outlinewidth/2+d.bBox(rt._axislayer.node()).width;if(B=ut.select(\"text\"),B.node()&&!B.classed(\"js-placeholder\")){var n,i=ut.select(\".h\"+rt._id+\"title-math-group\").node();n=i&&-1!==[\"top\",\"bottom\"].indexOf(M.titleside)?d.bBox(i).width:d.bBox(ut.node()).right-J-E.l,r=Math.max(r,n)}var a=2*M.xpad+r+M.borderwidth+M.outlinewidth/2,s=$-tt;lt.select(\".cbbg\").attr({x:J-M.xpad-(M.borderwidth+M.outlinewidth)/2,y:tt-X,width:Math.max(a,2),height:Math.max(s+2*X,2)}).call(p.fill,M.bgcolor).call(p.stroke,M.bordercolor).style({\"stroke-width\":M.borderwidth}),lt.selectAll(\".cboutline\").attr({x:J,y:tt+M.ypad+(\"top\"===M.titleside?ct:0),width:Math.max(H,2),height:Math.max(s-2*M.ypad-ct,2)}).call(p.stroke,M.outlinecolor).style({fill:\"None\",\"stroke-width\":M.outlinewidth});var l=({center:.5,right:1}[M.xanchor]||0)*a;lt.attr(\"transform\",\"translate(\"+(E.l-l)+\",\"+E.t+\")\"),o.autoMargin(t,e,{x:M.x,y:M.y,l:a*({right:1,center:.5}[M.xanchor]||0),r:a*({left:1,center:.5}[M.xanchor]||0),t:s*({bottom:1,middle:.5}[M.yanchor]||0),b:s*({top:1,middle:.5}[M.yanchor]||0)})}var S=t._fullLayout,E=S._size;if(\"function\"!=typeof M.fillcolor&&\"function\"!=typeof M.line.color)return void S._infolayer.selectAll(\"g.\"+e).remove();var L,C,I=n.extent((\"function\"==typeof M.fillcolor?M.fillcolor:M.line.color).domain()),z=[],D=[],P=\"function\"==typeof M.line.color?M.line.color:function(){return M.line.color},O=\"function\"==typeof M.fillcolor?M.fillcolor:function(){return M.fillcolor},R=M.levels.end+M.levels.size/100,F=M.levels.size,j=1.001*I[0]-.001*I[1],N=1.001*I[1]-.001*I[0];for(C=0;C<1e5&&(L=M.levels.start+C*F,!(F>0?L>=R:L<=R));C++)L>j&&L<N&&z.push(L);if(\"function\"==typeof M.fillcolor)if(M.filllevels)for(R=M.filllevels.end+M.filllevels.size/100,F=M.filllevels.size,C=0;C<1e5&&(L=M.filllevels.start+C*F,!(F>0?L>=R:L<=R));C++)L>I[0]&&L<I[1]&&D.push(L);else D=z.map(function(t){return t-M.levels.size/2}),D.push(D[D.length-1]+M.levels.size);else M.fillcolor&&\"string\"==typeof M.fillcolor&&(D=[0]);M.levels.size<0&&(z.reverse(),D.reverse());var B,U=S.height-S.margin.t-S.margin.b,V=S.width-S.margin.l-S.margin.r,H=Math.round(M.thickness*(\"fraction\"===M.thicknessmode?V:1)),q=H/E.w,G=Math.round(M.len*(\"fraction\"===M.lenmode?U:1)),Y=G/E.h,W=M.xpad/E.w,X=(M.borderwidth+M.outlinewidth)/2,Z=M.ypad/E.h,J=Math.round(M.x*E.w+M.xpad),K=M.x-q*({middle:.5,right:1}[M.xanchor]||0),Q=M.y+Y*(({top:-.5,bottom:.5}[M.yanchor]||0)-.5),$=Math.round(E.h*(1-Q)),tt=$-G,et={type:\"linear\",range:I,tickmode:M.tickmode,nticks:M.nticks,tick0:M.tick0,dtick:M.dtick,tickvals:M.tickvals,ticktext:M.ticktext,ticks:M.ticks,ticklen:M.ticklen,tickwidth:M.tickwidth,tickcolor:M.tickcolor,showticklabels:M.showticklabels,tickfont:M.tickfont,tickangle:M.tickangle,tickformat:M.tickformat,exponentformat:M.exponentformat,separatethousands:M.separatethousands,showexponent:M.showexponent,showtickprefix:M.showtickprefix,tickprefix:M.tickprefix,showticksuffix:M.showticksuffix,ticksuffix:M.ticksuffix,title:M.title,titlefont:M.titlefont,showline:!0,anchor:\"free\",position:1},rt={type:\"linear\",_id:\"y\"+e},nt={letter:\"y\",font:S.font,noHover:!0,calendar:S.calendar};if(y(et,rt,_,nt,S),b(et,rt,_,nt),rt.position=M.x+W+q,r.axis=rt,-1!==[\"top\",\"bottom\"].indexOf(M.titleside)&&(rt.titleside=M.titleside,rt.titlex=M.x+W,rt.titley=Q+(\"top\"===M.titleside?Y-Z:Z)),M.line.color&&\"auto\"===M.tickmode){rt.tickmode=\"linear\",rt.tick0=M.levels.start;var it=M.levels.size,at=c.constrain(($-tt)/50,4,15)+1,ot=(I[1]-I[0])/((M.nticks||at)*it);if(ot>1){var st=Math.pow(10,Math.floor(Math.log(ot)/Math.LN10));it*=st*c.roundUp(ot/st,[2,5,10]),(Math.abs(M.levels.start)/M.levels.size+1e-6)%1<2e-6&&(rt.tick0=0)}rt.dtick=it}rt.domain=[Q+Z,Q+Y-Z],rt.setScale();var lt=S._infolayer.selectAll(\"g.\"+e).data([0]);lt.enter().append(\"g\").classed(e,!0).each(function(){var t=n.select(this);t.append(\"rect\").classed(\"cbbg\",!0),t.append(\"g\").classed(\"cbfills\",!0),t.append(\"g\").classed(\"cblines\",!0),t.append(\"g\").classed(\"cbaxis\",!0).classed(\"crisp\",!0),t.append(\"g\").classed(\"cbtitleunshift\",!0).append(\"g\").classed(\"cbtitle\",!0),t.append(\"rect\").classed(\"cboutline\",!0),t.select(\".cbtitle\").datum(0)}),lt.attr(\"transform\",\"translate(\"+Math.round(E.l)+\",\"+Math.round(E.t)+\")\");var ut=lt.select(\".cbtitleunshift\").attr(\"transform\",\"translate(-\"+Math.round(E.l)+\",-\"+Math.round(E.t)+\")\");rt._axislayer=lt.select(\".cbaxis\");var ct=0;if(-1!==[\"top\",\"bottom\"].indexOf(M.titleside)){var ht,ft=E.l+(M.x+W)*E.w,dt=rt.titlefont.size;ht=\"top\"===M.titleside?(1-(Q+Y-Z))*E.h+E.t+3+.75*dt:(1-(Q+Z))*E.h+E.t-3-.25*dt,A(rt._id+\"title\",{attributes:{x:ft,y:ht,\"text-anchor\":\"start\"}})}var pt=c.syncOrAsync([o.previousPromises,k,o.previousPromises,T],t);if(pt&&pt.then&&(t._promises||[]).push(pt),t._context.edits.colorbarPosition){var mt,vt,gt;u.init({element:lt.node(),gd:t,prepFn:function(){mt=lt.attr(\"transform\"),f(lt)},moveFn:function(t,e){lt.attr(\"transform\",mt+\" translate(\"+t+\",\"+e+\")\"),vt=u.align(K+t/E.w,q,0,1,M.xanchor),gt=u.align(Q-e/E.h,Y,0,1,M.yanchor);var r=u.getCursor(vt,gt,M.xanchor,M.yanchor);f(lt,r)},doneFn:function(e){f(lt),e&&void 0!==vt&&void 0!==gt&&a.restyle(t,{\"colorbar.x\":vt,\"colorbar.y\":gt},w().index)}})}return pt}function w(){var r,n,i=e.substr(2);for(r=0;r<t._fullData.length;r++)if(n=t._fullData[r],n.uid===i)return n}var M={};return Object.keys(_).forEach(function(t){M[t]=null}),M.fillcolor=null,M.line={color:null,width:null,dash:null},M.levels={start:null,end:null,size:null},M.filllevels=null,Object.keys(M).forEach(function(t){r[t]=function(e){return arguments.length?(M[t]=c.isPlainObject(M[t])?c.extendFlat(M[t],e):e,r):M[t]}}),r.options=function(t){return Object.keys(t).forEach(function(e){\"function\"==typeof r[e]&&r[e](t[e])}),r},r._opts=M,r}},{\"../../constants/alignment\":701,\"../../lib\":728,\"../../lib/extend\":717,\"../../lib/setcursor\":746,\"../../lib/svg_text_utils\":750,\"../../plotly\":767,\"../../plots/cartesian/axes\":772,\"../../plots/cartesian/axis_defaults\":774,\"../../plots/cartesian/layout_attributes\":783,\"../../plots/cartesian/position_defaults\":786,\"../../plots/plots\":831,\"../../registry\":846,\"../color\":604,\"../dragelement\":625,\"../drawing\":628,\"../titles\":694,\"./attributes\":605,d3:122,tinycolor2:534}],608:[function(t,e,r){\"use strict\";var n=t(\"../../lib\");e.exports=function(t){return n.isPlainObject(t.colorbar)}},{\"../../lib\":728}],609:[function(t,e,r){\"use strict\";e.exports={zauto:{valType:\"boolean\",dflt:!0,editType:\"calc\",impliedEdits:{zmin:void 0,zmax:void 0}},zmin:{valType:\"number\",dflt:null,editType:\"plot\",impliedEdits:{zauto:!1}},zmax:{valType:\"number\",dflt:null,editType:\"plot\",impliedEdits:{zauto:!1}},colorscale:{valType:\"colorscale\",editType:\"calc\",impliedEdits:{autocolorscale:!1}},autocolorscale:{valType:\"boolean\",dflt:!0,editType:\"calc\",impliedEdits:{colorscale:void 0}},reversescale:{valType:\"boolean\",dflt:!1,editType:\"calc\"},showscale:{valType:\"boolean\",dflt:!0,editType:\"calc\"}}},{}],610:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"./scales\"),a=t(\"./flip_scale\");e.exports=function(t,e,r,o){var s,l;r?(s=n.nestedProperty(t,r).get(),l=n.nestedProperty(t._input,r).get()):(s=t,l=t._input);var u=o+\"auto\",c=o+\"min\",h=o+\"max\",f=s[u],d=s[c],p=s[h],m=s.colorscale;!1===f&&void 0!==d||(d=n.aggNums(Math.min,null,e)),!1===f&&void 0!==p||(p=n.aggNums(Math.max,null,e)),d===p&&(d-=.5,p+=.5),s[c]=d,s[h]=p,l[c]=d,l[h]=p,l[u]=!1!==f||void 0===d&&void 0===p,s.autocolorscale&&(m=d*p<0?i.RdBu:d>=0?i.Reds:i.Blues,l.colorscale=m,s.reversescale&&(m=a(m)),s.colorscale=m)}},{\"../../lib\":728,\"./flip_scale\":615,\"./scales\":622}],611:[function(t,e,r){\"use strict\";var n=t(\"./attributes\"),i=t(\"../../lib/extend\").extendFlat;t(\"./scales.js\");e.exports=function(t,e,r){return{color:{valType:\"color\",arrayOk:!0,editType:e||\"style\"},colorscale:i({},n.colorscale,{}),cauto:i({},n.zauto,{impliedEdits:{cmin:void 0,cmax:void 0}}),cmax:i({},n.zmax,{editType:e||n.zmax.editType,impliedEdits:{cauto:!1}}),cmin:i({},n.zmin,{editType:e||n.zmin.editType,impliedEdits:{cauto:!1}}),autocolorscale:i({},n.autocolorscale,{dflt:!1===r?r:n.autocolorscale.dflt}),reversescale:i({},n.reversescale,{})}}},{\"../../lib/extend\":717,\"./attributes\":609,\"./scales.js\":622}],612:[function(t,e,r){\"use strict\";var n=t(\"./scales\");e.exports=n.RdBu},{\"./scales\":622}],613:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../../lib\"),a=t(\"../colorbar/has_colorbar\"),o=t(\"../colorbar/defaults\"),s=t(\"./is_valid_scale\"),l=t(\"./flip_scale\");e.exports=function(t,e,r,u,c){var h=c.prefix,f=c.cLetter,d=h.slice(0,h.length-1),p=h?i.nestedProperty(t,d).get()||{}:t,m=h?i.nestedProperty(e,d).get()||{}:e,v=p[f+\"min\"],g=p[f+\"max\"],y=p.colorscale;u(h+f+\"auto\",!(n(v)&&n(g)&&v<g)),u(h+f+\"min\"),u(h+f+\"max\");var b;void 0!==y&&(b=!s(y)),u(h+\"autocolorscale\",b);var x=u(h+\"colorscale\");if(u(h+\"reversescale\")&&(m.colorscale=l(x)),\"marker.line.\"!==h){var _;h&&(_=a(p)),u(h+\"showscale\",_)&&o(p,m,r)}}},{\"../../lib\":728,\"../colorbar/defaults\":606,\"../colorbar/has_colorbar\":608,\"./flip_scale\":615,\"./is_valid_scale\":619,\"fast-isnumeric\":131}],614:[function(t,e,r){\"use strict\";e.exports=function(t,e,r){for(var n=t.length,i=new Array(n),a=new Array(n),o=0;o<n;o++){var s=t[o];i[o]=e+s[0]*(r-e),a[o]=s[1]}return{domain:i,range:a}}},{}],615:[function(t,e,r){\"use strict\";e.exports=function(t){for(var e,r=t.length,n=new Array(r),i=r-1,a=0;i>=0;i--,a++)e=t[i],n[a]=[1-e[0],e[1]];return n}},{}],616:[function(t,e,r){\"use strict\";var n=t(\"./scales\"),i=t(\"./default_scale\"),a=t(\"./is_valid_scale_array\");e.exports=function(t,e){function r(){try{t=n[t]||JSON.parse(t)}catch(r){t=e}}return e||(e=i),t?(\"string\"==typeof t&&(r(),\"string\"==typeof t&&r()),a(t)?t:e):e}},{\"./default_scale\":612,\"./is_valid_scale_array\":620,\"./scales\":622}],617:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../../lib\"),a=t(\"./is_valid_scale\");e.exports=function(t,e){var r=e?i.nestedProperty(t,e).get()||{}:t,o=r.color,s=!1;if(Array.isArray(o))for(var l=0;l<o.length;l++)if(n(o[l])){s=!0;break}return i.isPlainObject(r)&&(s||!0===r.showscale||n(r.cmin)&&n(r.cmax)||a(r.colorscale)||i.isPlainObject(r.colorbar))}},{\"../../lib\":728,\"./is_valid_scale\":619,\"fast-isnumeric\":131}],618:[function(t,e,r){\"use strict\";r.scales=t(\"./scales\"),r.defaultScale=t(\"./default_scale\"),r.attributes=t(\"./attributes\"),r.handleDefaults=t(\"./defaults\"),r.calc=t(\"./calc\"),r.hasColorscale=t(\"./has_colorscale\"),r.isValidScale=t(\"./is_valid_scale\"),r.getScale=t(\"./get_scale\"),r.flipScale=t(\"./flip_scale\"),r.extractScale=t(\"./extract_scale\"),r.makeColorScaleFunc=t(\"./make_color_scale_func\")},{\"./attributes\":609,\"./calc\":610,\"./default_scale\":612,\"./defaults\":613,\"./extract_scale\":614,\"./flip_scale\":615,\"./get_scale\":616,\"./has_colorscale\":617,\"./is_valid_scale\":619,\"./make_color_scale_func\":621,\"./scales\":622}],619:[function(t,e,r){\"use strict\";var n=t(\"./scales\"),i=t(\"./is_valid_scale_array\");e.exports=function(t){return void 0!==n[t]||i(t)}},{\"./is_valid_scale_array\":620,\"./scales\":622}],620:[function(t,e,r){\"use strict\";var n=t(\"tinycolor2\");e.exports=function(t){var e=0;if(!Array.isArray(t)||t.length<2)return!1;if(!t[0]||!t[t.length-1])return!1;if(0!=+t[0][0]||1!=+t[t.length-1][0])return!1;for(var r=0;r<t.length;r++){var i=t[r];if(2!==i.length||+i[0]<e||!n(i[1]).isValid())return!1;e=+i[0]}return!0}},{tinycolor2:534}],621:[function(t,e,r){\"use strict\";function n(t){var e={r:t[0],g:t[1],b:t[2],a:t[3]};return a(e).toRgbString()}var i=t(\"d3\"),a=t(\"tinycolor2\"),o=t(\"fast-isnumeric\"),s=t(\"../color\");e.exports=function(t,e){e=e||{};for(var r=t.domain,l=t.range,u=l.length,c=new Array(u),h=0;h<u;h++){var f=a(l[h]).toRgb();c[h]=[f.r,f.g,f.b,f.a]}var d,p=i.scale.linear().domain(r).range(c).clamp(!0),m=e.noNumericCheck,v=e.returnArray;return d=m&&v?p:m?function(t){return n(p(t))}:v?function(t){return o(t)?p(t):a(t).isValid()?t:s.defaultLine}:function(t){return o(t)?n(p(t)):a(t).isValid()?t:s.defaultLine},d.domain=p.domain,d.range=function(){return l},d}},{\"../color\":604,d3:122,\"fast-isnumeric\":131,tinycolor2:534}],622:[function(t,e,r){\"use strict\";e.exports={Greys:[[0,\"rgb(0,0,0)\"],[1,\"rgb(255,255,255)\"]],YlGnBu:[[0,\"rgb(8,29,88)\"],[.125,\"rgb(37,52,148)\"],[.25,\"rgb(34,94,168)\"],[.375,\"rgb(29,145,192)\"],[.5,\"rgb(65,182,196)\"],[.625,\"rgb(127,205,187)\"],[.75,\"rgb(199,233,180)\"],[.875,\"rgb(237,248,217)\"],[1,\"rgb(255,255,217)\"]],Greens:[[0,\"rgb(0,68,27)\"],[.125,\"rgb(0,109,44)\"],[.25,\"rgb(35,139,69)\"],[.375,\"rgb(65,171,93)\"],[.5,\"rgb(116,196,118)\"],[.625,\"rgb(161,217,155)\"],[.75,\"rgb(199,233,192)\"],[.875,\"rgb(229,245,224)\"],[1,\"rgb(247,252,245)\"]],YlOrRd:[[0,\"rgb(128,0,38)\"],[.125,\"rgb(189,0,38)\"],[.25,\"rgb(227,26,28)\"],[.375,\"rgb(252,78,42)\"],[.5,\"rgb(253,141,60)\"],[.625,\"rgb(254,178,76)\"],[.75,\"rgb(254,217,118)\"],[.875,\"rgb(255,237,160)\"],[1,\"rgb(255,255,204)\"]],Bluered:[[0,\"rgb(0,0,255)\"],[1,\"rgb(255,0,0)\"]],RdBu:[[0,\"rgb(5,10,172)\"],[.35,\"rgb(106,137,247)\"],[.5,\"rgb(190,190,190)\"],[.6,\"rgb(220,170,132)\"],[.7,\"rgb(230,145,90)\"],[1,\"rgb(178,10,28)\"]],Reds:[[0,\"rgb(220,220,220)\"],[.2,\"rgb(245,195,157)\"],[.4,\"rgb(245,160,105)\"],[1,\"rgb(178,10,28)\"]],Blues:[[0,\"rgb(5,10,172)\"],[.35,\"rgb(40,60,190)\"],[.5,\"rgb(70,100,245)\"],[.6,\"rgb(90,120,245)\"],[.7,\"rgb(106,137,247)\"],[1,\"rgb(220,220,220)\"]],Picnic:[[0,\"rgb(0,0,255)\"],[.1,\"rgb(51,153,255)\"],[.2,\"rgb(102,204,255)\"],[.3,\"rgb(153,204,255)\"],[.4,\"rgb(204,204,255)\"],[.5,\"rgb(255,255,255)\"],[.6,\"rgb(255,204,255)\"],[.7,\"rgb(255,153,255)\"],[.8,\"rgb(255,102,204)\"],[.9,\"rgb(255,102,102)\"],[1,\"rgb(255,0,0)\"]],\n", "Rainbow:[[0,\"rgb(150,0,90)\"],[.125,\"rgb(0,0,200)\"],[.25,\"rgb(0,25,255)\"],[.375,\"rgb(0,152,255)\"],[.5,\"rgb(44,255,150)\"],[.625,\"rgb(151,255,0)\"],[.75,\"rgb(255,234,0)\"],[.875,\"rgb(255,111,0)\"],[1,\"rgb(255,0,0)\"]],Portland:[[0,\"rgb(12,51,131)\"],[.25,\"rgb(10,136,186)\"],[.5,\"rgb(242,211,56)\"],[.75,\"rgb(242,143,56)\"],[1,\"rgb(217,30,30)\"]],Jet:[[0,\"rgb(0,0,131)\"],[.125,\"rgb(0,60,170)\"],[.375,\"rgb(5,255,255)\"],[.625,\"rgb(255,255,0)\"],[.875,\"rgb(250,0,0)\"],[1,\"rgb(128,0,0)\"]],Hot:[[0,\"rgb(0,0,0)\"],[.3,\"rgb(230,0,0)\"],[.6,\"rgb(255,210,0)\"],[1,\"rgb(255,255,255)\"]],Blackbody:[[0,\"rgb(0,0,0)\"],[.2,\"rgb(230,0,0)\"],[.4,\"rgb(230,210,0)\"],[.7,\"rgb(255,255,255)\"],[1,\"rgb(160,200,255)\"]],Earth:[[0,\"rgb(0,0,130)\"],[.1,\"rgb(0,180,180)\"],[.2,\"rgb(40,210,40)\"],[.4,\"rgb(230,230,50)\"],[.6,\"rgb(120,70,20)\"],[1,\"rgb(255,255,255)\"]],Electric:[[0,\"rgb(0,0,0)\"],[.15,\"rgb(30,0,100)\"],[.4,\"rgb(120,0,100)\"],[.6,\"rgb(160,90,0)\"],[.8,\"rgb(230,200,0)\"],[1,\"rgb(255,250,220)\"]],Viridis:[[0,\"#440154\"],[.06274509803921569,\"#48186a\"],[.12549019607843137,\"#472d7b\"],[.18823529411764706,\"#424086\"],[.25098039215686274,\"#3b528b\"],[.3137254901960784,\"#33638d\"],[.3764705882352941,\"#2c728e\"],[.4392156862745098,\"#26828e\"],[.5019607843137255,\"#21918c\"],[.5647058823529412,\"#1fa088\"],[.6274509803921569,\"#28ae80\"],[.6901960784313725,\"#3fbc73\"],[.7529411764705882,\"#5ec962\"],[.8156862745098039,\"#84d44b\"],[.8784313725490196,\"#addc30\"],[.9411764705882353,\"#d8e219\"],[1,\"#fde725\"]]}},{}],623:[function(t,e,r){\"use strict\";e.exports=function(t,e,r,n,i){var a=(t-r)/(n-r),o=a+e/(n-r),s=(a+o)/2;return\"left\"===i||\"bottom\"===i?a:\"center\"===i||\"middle\"===i?s:\"right\"===i||\"top\"===i?o:a<2/3-s?a:o>4/3-s?o:s}},{}],624:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=[[\"sw-resize\",\"s-resize\",\"se-resize\"],[\"w-resize\",\"move\",\"e-resize\"],[\"nw-resize\",\"n-resize\",\"ne-resize\"]];e.exports=function(t,e,r,a){return t=\"left\"===r?0:\"center\"===r?1:\"right\"===r?2:n.constrain(Math.floor(3*t),0,2),e=\"bottom\"===a?0:\"middle\"===a?1:\"top\"===a?2:n.constrain(Math.floor(3*e),0,2),i[e][t]}},{\"../../lib\":728}],625:[function(t,e,r){\"use strict\";function n(){var t=document.createElement(\"div\");t.className=\"dragcover\";var e=t.style;return e.position=\"fixed\",e.left=0,e.right=0,e.top=0,e.bottom=0,e.zIndex=999999999,e.background=\"none\",document.body.appendChild(t),t}function i(t){t._dragging=!1,t._replotPending&&l.plot(t)}function a(t){return o(t.changedTouches?t.changedTouches[0]:t,document.body)}var o=t(\"mouse-event-offset\"),s=t(\"has-hover\"),l=t(\"../../plotly\"),u=t(\"../../lib\"),c=t(\"../../plots/cartesian/constants\"),h=t(\"../../constants/interactions\"),f=e.exports={};f.align=t(\"./align\"),f.getCursor=t(\"./cursor\");var d=t(\"./unhover\");f.unhover=d.wrapped,f.unhoverRaw=d.raw,f.init=function(t){function e(e){y._dragged=!1,y._dragging=!0;var i=a(e);return l=i[0],d=i[1],g=e.target,p=(new Date).getTime(),p-y._mouseDownTime<x?b+=1:(b=1,y._mouseDownTime=p),t.prepFn&&t.prepFn(e,l,d),s?(v=n(),v.style.cursor=window.getComputedStyle(t.element).cursor):(v=document,m=window.getComputedStyle(document.documentElement).cursor,document.documentElement.style.cursor=window.getComputedStyle(t.element).cursor),v.addEventListener(\"mousemove\",r),v.addEventListener(\"mouseup\",o),v.addEventListener(\"mouseout\",o),v.addEventListener(\"touchmove\",r),v.addEventListener(\"touchend\",o),u.pauseEvent(e)}function r(e){var r=a(e),n=r[0]-l,i=r[1]-d,o=t.minDrag||c.MINDRAG;return Math.abs(n)<o&&(n=0),Math.abs(i)<o&&(i=0),(n||i)&&(y._dragged=!0,f.unhover(y)),t.moveFn&&t.moveFn(n,i,y._dragged),u.pauseEvent(e)}function o(e){if(v.removeEventListener(\"mousemove\",r),v.removeEventListener(\"mouseup\",o),v.removeEventListener(\"mouseout\",o),v.removeEventListener(\"touchmove\",r),v.removeEventListener(\"touchend\",o),s?u.removeElement(v):m&&(v.documentElement.style.cursor=m,m=null),!y._dragging)return void(y._dragged=!1);if(y._dragging=!1,(new Date).getTime()-y._mouseDownTime>x&&(b=Math.max(b-1,1)),t.doneFn&&t.doneFn(y._dragged,b,e),!y._dragged){var n;try{n=new MouseEvent(\"click\",e)}catch(t){var l=a(e);n=document.createEvent(\"MouseEvents\"),n.initMouseEvent(\"click\",e.bubbles,e.cancelable,e.view,e.detail,e.screenX,e.screenY,l[0],l[1],e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,e.button,e.relatedTarget)}g.dispatchEvent(n)}return i(y),y._dragged=!1,u.pauseEvent(e)}var l,d,p,m,v,g,y=t.gd,b=1,x=h.DBLCLICKDELAY;y._mouseDownTime||(y._mouseDownTime=0),t.element.style.pointerEvents=\"all\",t.element.onmousedown=e,t.element.ontouchstart=e},f.coverSlip=n},{\"../../constants/interactions\":706,\"../../lib\":728,\"../../plotly\":767,\"../../plots/cartesian/constants\":777,\"./align\":623,\"./cursor\":624,\"./unhover\":626,\"has-hover\":288,\"mouse-event-offset\":453}],626:[function(t,e,r){\"use strict\";var n=t(\"../../lib/events\"),i=t(\"../../lib/throttle\"),a=t(\"../../lib/get_graph_div\"),o=t(\"../fx/constants\"),s=e.exports={};s.wrapped=function(t,e,r){t=a(t),i.clear(t._fullLayout._uid+o.HOVERID),s.raw(t,e,r)},s.raw=function(t,e){var r=t._fullLayout,i=t._hoverdata;e||(e={}),e.target&&!1===n.triggerHandler(t,\"plotly_beforehover\",e)||(r._hoverlayer.selectAll(\"g\").remove(),r._hoverlayer.selectAll(\"line\").remove(),r._hoverlayer.selectAll(\"circle\").remove(),t._hoverdata=void 0,e.target&&i&&t.emit(\"plotly_unhover\",{event:e,points:i}))}},{\"../../lib/events\":716,\"../../lib/get_graph_div\":723,\"../../lib/throttle\":751,\"../fx/constants\":640}],627:[function(t,e,r){\"use strict\";r.dash={valType:\"string\",values:[\"solid\",\"dot\",\"dash\",\"longdash\",\"dashdot\",\"longdashdot\"],dflt:\"solid\",editType:\"style\"}},{}],628:[function(t,e,r){\"use strict\";function n(t,e,r,n,i,a,o,s){if(u.traceIs(r,\"symbols\")){var l=y(r);e.attr(\"d\",function(t){var e;e=\"various\"===t.ms||\"various\"===a.size?3:g.isBubble(r)?l(t.ms):(a.size||6)/2,t.mrc=e;var n=b.symbolNumber(t.mx||a.symbol)||0,i=n%100;return t.om=n%200>=100,b.symbolFuncs[i](e)+(n>=200?w:\"\")}).style(\"opacity\",function(t){return(t.mo+1||a.opacity+1)-1})}var h,f,d,p=!1;if(t.so?(d=o.outlierwidth,f=o.outliercolor,h=a.outliercolor):(d=(t.mlw+1||o.width+1||(t.trace?t.trace.marker.line.width:0)+1)-1,f=\"mlc\"in t?t.mlcc=i(t.mlc):Array.isArray(o.color)?c.defaultLine:o.color,Array.isArray(a.color)&&(h=c.defaultLine,p=!0),h=\"mc\"in t?t.mcc=n(t.mc):a.color||\"rgba(0,0,0,0)\"),t.om)e.call(c.stroke,h).style({\"stroke-width\":(d||1)+\"px\",fill:\"none\"});else{e.style(\"stroke-width\",d+\"px\");var m=a.gradient,v=t.mgt;if(v?p=!0:v=m&&m.type,v&&\"none\"!==v){var x=t.mgc;x?p=!0:x=m.color;var _=\"g\"+s._fullLayout._uid+\"-\"+r.uid;p&&(_+=\"-\"+t.i),e.call(b.gradient,s,_,v,h,x)}else e.call(c.fill,h);d&&e.call(c.stroke,f)}}function i(t,e,r,n){var i=t[0]-e[0],a=t[1]-e[1],s=r[0]-e[0],l=r[1]-e[1],u=Math.pow(i*i+a*a,T/2),c=Math.pow(s*s+l*l,T/2),h=(c*c*i-u*u*s)*n,f=(c*c*a-u*u*l)*n,d=3*c*(u+c),p=3*u*(u+c);return[[o.round(e[0]+(d&&h/d),2),o.round(e[1]+(d&&f/d),2)],[o.round(e[0]-(p&&h/p),2),o.round(e[1]-(p&&f/p),2)]]}function a(t){var e=t.getAttribute(\"data-unformatted\");if(null!==e)return e+t.getAttribute(\"data-math\")+t.getAttribute(\"text-anchor\")+t.getAttribute(\"style\")}var o=t(\"d3\"),s=t(\"fast-isnumeric\"),l=t(\"tinycolor2\"),u=t(\"../../registry\"),c=t(\"../color\"),h=t(\"../colorscale\"),f=t(\"../../lib\"),d=t(\"../../lib/svg_text_utils\"),p=t(\"../../constants/xmlns_namespaces\"),m=t(\"../../constants/alignment\"),v=m.LINE_SPACING,g=t(\"../../traces/scatter/subtypes\"),y=t(\"../../traces/scatter/make_bubble_size_func\"),b=e.exports={};b.font=function(t,e,r,n){f.isPlainObject(e)&&(n=e.color,r=e.size,e=e.family),e&&t.style(\"font-family\",e),r+1&&t.style(\"font-size\",r+\"px\"),n&&t.call(c.fill,n)},b.setPosition=function(t,e,r){t.attr(\"x\",e).attr(\"y\",r)},b.setSize=function(t,e,r){t.attr(\"width\",e).attr(\"height\",r)},b.setRect=function(t,e,r,n,i){t.call(b.setPosition,e,r).call(b.setSize,n,i)},b.translatePoint=function(t,e,r,n){var i=r.c2p(t.x),a=n.c2p(t.y);return!!(s(i)&&s(a)&&e.node())&&(\"text\"===e.node().nodeName?e.attr(\"x\",i).attr(\"y\",a):e.attr(\"transform\",\"translate(\"+i+\",\"+a+\")\"),!0)},b.translatePoints=function(t,e,r){t.each(function(t){var n=o.select(this);b.translatePoint(t,n,e,r)})},b.hideOutsideRangePoint=function(t,e,r,n){e.attr(\"display\",r.isPtWithinRange(t)&&n.isPtWithinRange(t)?null:\"none\")},b.hideOutsideRangePoints=function(t,e){if(e._hasClipOnAxisFalse){var r=e.xaxis,n=e.yaxis;t.each(function(t){b.hideOutsideRangePoint(t,o.select(this),r,n)})}},b.crispRound=function(t,e,r){return e&&s(e)?t._context.staticPlot?e:e<1?1:Math.round(e):r||0},b.singleLineStyle=function(t,e,r,n,i){e.style(\"fill\",\"none\");var a=(((t||[])[0]||{}).trace||{}).line||{},o=r||a.width||0,s=i||a.dash||\"\";c.stroke(e,n||a.color),b.dashLine(e,s,o)},b.lineGroupStyle=function(t,e,r,n){t.style(\"fill\",\"none\").each(function(t){var i=(((t||[])[0]||{}).trace||{}).line||{},a=e||i.width||0,s=n||i.dash||\"\";o.select(this).call(c.stroke,r||i.color).call(b.dashLine,s,a)})},b.dashLine=function(t,e,r){r=+r||0,e=b.dashStyle(e,r),t.style({\"stroke-dasharray\":e,\"stroke-width\":r+\"px\"})},b.dashStyle=function(t,e){e=+e||1;var r=Math.max(e,3);return\"solid\"===t?t=\"\":\"dot\"===t?t=r+\"px,\"+r+\"px\":\"dash\"===t?t=3*r+\"px,\"+3*r+\"px\":\"longdash\"===t?t=5*r+\"px,\"+5*r+\"px\":\"dashdot\"===t?t=3*r+\"px,\"+r+\"px,\"+r+\"px,\"+r+\"px\":\"longdashdot\"===t&&(t=5*r+\"px,\"+2*r+\"px,\"+r+\"px,\"+2*r+\"px\"),t},b.singleFillStyle=function(t){var e=o.select(t.node()),r=e.data(),n=(((r[0]||[])[0]||{}).trace||{}).fillcolor;n&&t.call(c.fill,n)},b.fillGroupStyle=function(t){t.style(\"stroke-width\",0).each(function(e){var r=o.select(this);try{r.call(c.fill,e[0].trace.fillcolor)}catch(e){f.error(e,t),r.remove()}})};var x=t(\"./symbol_defs\");b.symbolNames=[],b.symbolFuncs=[],b.symbolNeedLines={},b.symbolNoDot={},b.symbolList=[],Object.keys(x).forEach(function(t){var e=x[t];b.symbolList=b.symbolList.concat([e.n,t,e.n+100,t+\"-open\"]),b.symbolNames[e.n]=t,b.symbolFuncs[e.n]=e.f,e.needLine&&(b.symbolNeedLines[e.n]=!0),e.noDot?b.symbolNoDot[e.n]=!0:b.symbolList=b.symbolList.concat([e.n+200,t+\"-dot\",e.n+300,t+\"-open-dot\"])});var _=b.symbolNames.length,w=\"M0,0.5L0.5,0L0,-0.5L-0.5,0Z\";b.symbolNumber=function(t){if(\"string\"==typeof t){var e=0;t.indexOf(\"-open\")>0&&(e=100,t=t.replace(\"-open\",\"\")),t.indexOf(\"-dot\")>0&&(e+=200,t=t.replace(\"-dot\",\"\")),t=b.symbolNames.indexOf(t),t>=0&&(t+=e)}return t%100>=_||t>=400?0:Math.floor(Math.max(t,0))};var M={x1:1,x2:0,y1:0,y2:0},k={x1:0,x2:0,y1:1,y2:0};b.gradient=function(t,e,r,n,i,a){var s=e._fullLayout._defs.select(\".gradients\").selectAll(\"#\"+r).data([n+i+a],f.identity);s.exit().remove(),s.enter().append(\"radial\"===n?\"radialGradient\":\"linearGradient\").each(function(){var t=o.select(this);\"horizontal\"===n?t.attr(M):\"vertical\"===n&&t.attr(k),t.attr(\"id\",r);var e=l(i),s=l(a);t.append(\"stop\").attr({offset:\"0%\",\"stop-color\":c.tinyRGB(s),\"stop-opacity\":s.getAlpha()}),t.append(\"stop\").attr({offset:\"100%\",\"stop-color\":c.tinyRGB(e),\"stop-opacity\":e.getAlpha()})}),t.style({fill:\"url(#\"+r+\")\",\"fill-opacity\":null})},b.initGradients=function(t){var e=t._fullLayout._defs.selectAll(\".gradients\").data([0]);e.enter().append(\"g\").classed(\"gradients\",!0),e.selectAll(\"linearGradient,radialGradient\").remove()},b.singlePointStyle=function(t,e,r,i,a,o){var s=r.marker;n(t,e,r,i,a,s,s.line,o)},b.pointStyle=function(t,e,r){if(t.size()){var n=e.marker,i=b.tryColorscale(n,\"\"),a=b.tryColorscale(n,\"line\");t.each(function(t){b.singlePointStyle(t,o.select(this),e,i,a,r)})}},b.tryColorscale=function(t,e){var r=e?f.nestedProperty(t,e).get():t,n=r.colorscale,i=r.color;return n&&Array.isArray(i)?h.makeColorScaleFunc(h.extractScale(n,r.cmin,r.cmax)):f.identity};var A={start:1,end:-1,middle:0,bottom:1,top:-1};b.textPointStyle=function(t,e,r){t.each(function(t){var n=o.select(this),i=f.extractOption(t,e,\"tx\",\"text\");if(!i)return void n.remove();var a=t.tp||e.textposition,l=-1!==a.indexOf(\"top\")?\"top\":-1!==a.indexOf(\"bottom\")?\"bottom\":\"middle\",u=-1!==a.indexOf(\"left\")?\"end\":-1!==a.indexOf(\"right\")?\"start\":\"middle\",c=t.ts||e.textfont.size,h=t.mrc?t.mrc/.8+1:0;c=s(c)&&c>0?c:0,n.call(b.font,t.tf||e.textfont.family,c,t.tc||e.textfont.color).attr(\"text-anchor\",u).text(i).call(d.convertToTspans,r);var p=o.select(this.parentNode),m=(d.lineCount(n)-1)*v+1,g=A[u]*h,y=.75*c+A[l]*h+(A[l]-1)*m*c/2;p.attr(\"transform\",\"translate(\"+g+\",\"+y+\")\")})};var T=.5;b.smoothopen=function(t,e){if(t.length<3)return\"M\"+t.join(\"L\");var r,n=\"M\"+t[0],a=[];for(r=1;r<t.length-1;r++)a.push(i(t[r-1],t[r],t[r+1],e));for(n+=\"Q\"+a[0][0]+\" \"+t[1],r=2;r<t.length-1;r++)n+=\"C\"+a[r-2][1]+\" \"+a[r-1][0]+\" \"+t[r];return n+=\"Q\"+a[t.length-3][1]+\" \"+t[t.length-1]},b.smoothclosed=function(t,e){if(t.length<3)return\"M\"+t.join(\"L\")+\"Z\";var r,n=\"M\"+t[0],a=t.length-1,o=[i(t[a],t[0],t[1],e)];for(r=1;r<a;r++)o.push(i(t[r-1],t[r],t[r+1],e));for(o.push(i(t[a-1],t[a],t[0],e)),r=1;r<=a;r++)n+=\"C\"+o[r-1][1]+\" \"+o[r][0]+\" \"+t[r];return n+=\"C\"+o[a][1]+\" \"+o[0][0]+\" \"+t[0]+\"Z\"};var S={hv:function(t,e){return\"H\"+o.round(e[0],2)+\"V\"+o.round(e[1],2)},vh:function(t,e){return\"V\"+o.round(e[1],2)+\"H\"+o.round(e[0],2)},hvh:function(t,e){return\"H\"+o.round((t[0]+e[0])/2,2)+\"V\"+o.round(e[1],2)+\"H\"+o.round(e[0],2)},vhv:function(t,e){return\"V\"+o.round((t[1]+e[1])/2,2)+\"H\"+o.round(e[0],2)+\"V\"+o.round(e[1],2)}},E=function(t,e){return\"L\"+o.round(e[0],2)+\",\"+o.round(e[1],2)};b.steps=function(t){var e=S[t]||E;return function(t){for(var r=\"M\"+o.round(t[0][0],2)+\",\"+o.round(t[0][1],2),n=1;n<t.length;n++)r+=e(t[n-1],t[n]);return r}},b.makeTester=function(){var t=o.select(\"body\").selectAll(\"#js-plotly-tester\").data([0]);t.enter().append(\"svg\").attr(\"id\",\"js-plotly-tester\").attr(p.svgAttrs).style({position:\"absolute\",left:\"-10000px\",top:\"-10000px\",width:\"9000px\",height:\"9000px\",\"z-index\":\"1\"});var e=t.selectAll(\".js-reference-point\").data([0]);e.enter().append(\"path\").classed(\"js-reference-point\",!0).attr(\"d\",\"M0,0H1V1H0Z\").style({\"stroke-width\":0,fill:\"black\"}),b.tester=t,b.testref=e},b.savedBBoxes={};var L=0;b.bBox=function(t,e,r){r||(r=a(t));var n;if(r){if(n=b.savedBBoxes[r])return f.extendFlat({},n)}else if(1===t.childNodes.length){var i=t.childNodes[0];if(r=a(i)){var s=+i.getAttribute(\"x\")||0,l=+i.getAttribute(\"y\")||0,u=i.getAttribute(\"transform\");if(!u){var c=b.bBox(i,!1,r);return s&&(c.left+=s,c.right+=s),l&&(c.top+=l,c.bottom+=l),c}if(r+=\"~\"+s+\"~\"+l+\"~\"+u,n=b.savedBBoxes[r])return f.extendFlat({},n)}}var h,p;e?h=t:(p=b.tester.node(),h=t.cloneNode(!0),p.appendChild(h)),o.select(h).attr(\"transform\",null).call(d.positionText,0,0);var m=h.getBoundingClientRect(),v=b.testref.node().getBoundingClientRect();e||p.removeChild(h);var g={height:m.height,width:m.width,left:m.left-v.left,top:m.top-v.top,right:m.right-v.left,bottom:m.bottom-v.top};return L>=1e4&&(b.savedBBoxes={},L=0),r&&(b.savedBBoxes[r]=g),L++,f.extendFlat({},g)},b.setClipUrl=function(t,e){if(!e)return void t.attr(\"clip-path\",null);var r=\"#\"+e,n=o.select(\"base\");n.size()&&n.attr(\"href\")&&(r=window.location.href.split(\"#\")[0]+r),t.attr(\"clip-path\",\"url(\"+r+\")\")},b.getTranslate=function(t){var e=/.*\\btranslate\\((-?\\d*\\.?\\d*)[^-\\d]*(-?\\d*\\.?\\d*)[^\\d].*/,r=t.attr?\"attr\":\"getAttribute\",n=t[r](\"transform\")||\"\",i=n.replace(e,function(t,e,r){return[e,r].join(\" \")}).split(\" \");return{x:+i[0]||0,y:+i[1]||0}},b.setTranslate=function(t,e,r){var n=/(\\btranslate\\(.*?\\);?)/,i=t.attr?\"attr\":\"getAttribute\",a=t.attr?\"attr\":\"setAttribute\",o=t[i](\"transform\")||\"\";return e=e||0,r=r||0,o=o.replace(n,\"\").trim(),o+=\" translate(\"+e+\", \"+r+\")\",o=o.trim(),t[a](\"transform\",o),o},b.getScale=function(t){var e=/.*\\bscale\\((\\d*\\.?\\d*)[^\\d]*(\\d*\\.?\\d*)[^\\d].*/,r=t.attr?\"attr\":\"getAttribute\",n=t[r](\"transform\")||\"\",i=n.replace(e,function(t,e,r){return[e,r].join(\" \")}).split(\" \");return{x:+i[0]||1,y:+i[1]||1}},b.setScale=function(t,e,r){var n=/(\\bscale\\(.*?\\);?)/,i=t.attr?\"attr\":\"getAttribute\",a=t.attr?\"attr\":\"setAttribute\",o=t[i](\"transform\")||\"\";return e=e||1,r=r||1,o=o.replace(n,\"\").trim(),o+=\" scale(\"+e+\", \"+r+\")\",o=o.trim(),t[a](\"transform\",o),o},b.setPointGroupScale=function(t,e,r){var n,i,a;return e=e||1,r=r||1,i=1===e&&1===r?\"\":\" scale(\"+e+\",\"+r+\")\",a=/\\s*sc.*/,t.each(function(){n=(this.getAttribute(\"transform\")||\"\").replace(a,\"\"),n+=i,n=n.trim(),this.setAttribute(\"transform\",n)}),i};var C=/translate\\([^)]*\\)\\s*$/;b.setTextPointsScale=function(t,e,r){t.each(function(){var t,n=o.select(this),i=n.select(\"text\");if(i.node()){var a=parseFloat(i.attr(\"x\")||0),s=parseFloat(i.attr(\"y\")||0),l=(n.attr(\"transform\")||\"\").match(C);t=1===e&&1===r?[]:[\"translate(\"+a+\",\"+s+\")\",\"scale(\"+e+\",\"+r+\")\",\"translate(\"+-a+\",\"+-s+\")\"],l&&t.push(l),n.attr(\"transform\",t.join(\" \"))}})}},{\"../../constants/alignment\":701,\"../../constants/xmlns_namespaces\":709,\"../../lib\":728,\"../../lib/svg_text_utils\":750,\"../../registry\":846,\"../../traces/scatter/make_bubble_size_func\":1047,\"../../traces/scatter/subtypes\":1052,\"../color\":604,\"../colorscale\":618,\"./symbol_defs\":629,d3:122,\"fast-isnumeric\":131,tinycolor2:534}],629:[function(t,e,r){\"use strict\";var n=t(\"d3\");e.exports={circle:{n:0,f:function(t){var e=n.round(t,2);return\"M\"+e+\",0A\"+e+\",\"+e+\" 0 1,1 0,-\"+e+\"A\"+e+\",\"+e+\" 0 0,1 \"+e+\",0Z\"}},square:{n:1,f:function(t){var e=n.round(t,2);return\"M\"+e+\",\"+e+\"H-\"+e+\"V-\"+e+\"H\"+e+\"Z\"}},diamond:{n:2,f:function(t){var e=n.round(1.3*t,2);return\"M\"+e+\",0L0,\"+e+\"L-\"+e+\",0L0,-\"+e+\"Z\"}},cross:{n:3,f:function(t){var e=n.round(.4*t,2),r=n.round(1.2*t,2);return\"M\"+r+\",\"+e+\"H\"+e+\"V\"+r+\"H-\"+e+\"V\"+e+\"H-\"+r+\"V-\"+e+\"H-\"+e+\"V-\"+r+\"H\"+e+\"V-\"+e+\"H\"+r+\"Z\"}},x:{n:4,f:function(t){var e=n.round(.8*t/Math.sqrt(2),2),r=\"l\"+e+\",\"+e,i=\"l\"+e+\",-\"+e,a=\"l-\"+e+\",-\"+e,o=\"l-\"+e+\",\"+e;return\"M0,\"+e+r+i+a+i+a+o+a+o+r+o+r+\"Z\"}},\"triangle-up\":{n:5,f:function(t){var e=n.round(2*t/Math.sqrt(3),2);return\"M-\"+e+\",\"+n.round(t/2,2)+\"H\"+e+\"L0,-\"+n.round(t,2)+\"Z\"}},\"triangle-down\":{n:6,f:function(t){var e=n.round(2*t/Math.sqrt(3),2);return\"M-\"+e+\",-\"+n.round(t/2,2)+\"H\"+e+\"L0,\"+n.round(t,2)+\"Z\"}},\"triangle-left\":{n:7,f:function(t){var e=n.round(2*t/Math.sqrt(3),2);return\"M\"+n.round(t/2,2)+\",-\"+e+\"V\"+e+\"L-\"+n.round(t,2)+\",0Z\"}},\"triangle-right\":{n:8,f:function(t){var e=n.round(2*t/Math.sqrt(3),2);return\"M-\"+n.round(t/2,2)+\",-\"+e+\"V\"+e+\"L\"+n.round(t,2)+\",0Z\"}},\"triangle-ne\":{n:9,f:function(t){var e=n.round(.6*t,2),r=n.round(1.2*t,2);return\"M-\"+r+\",-\"+e+\"H\"+e+\"V\"+r+\"Z\"}},\"triangle-se\":{n:10,f:function(t){var e=n.round(.6*t,2),r=n.round(1.2*t,2);return\"M\"+e+\",-\"+r+\"V\"+e+\"H-\"+r+\"Z\"}},\"triangle-sw\":{n:11,f:function(t){var e=n.round(.6*t,2),r=n.round(1.2*t,2);return\"M\"+r+\",\"+e+\"H-\"+e+\"V-\"+r+\"Z\"}},\"triangle-nw\":{n:12,f:function(t){var e=n.round(.6*t,2),r=n.round(1.2*t,2);return\"M-\"+e+\",\"+r+\"V-\"+e+\"H\"+r+\"Z\"}},pentagon:{n:13,f:function(t){var e=n.round(.951*t,2),r=n.round(.588*t,2),i=n.round(-t,2),a=n.round(-.309*t,2);return\"M\"+e+\",\"+a+\"L\"+r+\",\"+n.round(.809*t,2)+\"H-\"+r+\"L-\"+e+\",\"+a+\"L0,\"+i+\"Z\"}},hexagon:{n:14,f:function(t){var e=n.round(t,2),r=n.round(t/2,2),i=n.round(t*Math.sqrt(3)/2,2);return\"M\"+i+\",-\"+r+\"V\"+r+\"L0,\"+e+\"L-\"+i+\",\"+r+\"V-\"+r+\"L0,-\"+e+\"Z\"}},hexagon2:{n:15,f:function(t){var e=n.round(t,2),r=n.round(t/2,2),i=n.round(t*Math.sqrt(3)/2,2);return\"M-\"+r+\",\"+i+\"H\"+r+\"L\"+e+\",0L\"+r+\",-\"+i+\"H-\"+r+\"L-\"+e+\",0Z\"}},octagon:{n:16,f:function(t){var e=n.round(.924*t,2),r=n.round(.383*t,2);return\"M-\"+r+\",-\"+e+\"H\"+r+\"L\"+e+\",-\"+r+\"V\"+r+\"L\"+r+\",\"+e+\"H-\"+r+\"L-\"+e+\",\"+r+\"V-\"+r+\"Z\"}},star:{n:17,f:function(t){var e=1.4*t,r=n.round(.225*e,2),i=n.round(.951*e,2),a=n.round(.363*e,2),o=n.round(.588*e,2),s=n.round(-e,2),l=n.round(-.309*e,2),u=n.round(.118*e,2),c=n.round(.809*e,2);return\"M\"+r+\",\"+l+\"H\"+i+\"L\"+a+\",\"+u+\"L\"+o+\",\"+c+\"L0,\"+n.round(.382*e,2)+\"L-\"+o+\",\"+c+\"L-\"+a+\",\"+u+\"L-\"+i+\",\"+l+\"H-\"+r+\"L0,\"+s+\"Z\"}},hexagram:{n:18,f:function(t){var e=n.round(.66*t,2),r=n.round(.38*t,2),i=n.round(.76*t,2);return\"M-\"+i+\",0l-\"+r+\",-\"+e+\"h\"+i+\"l\"+r+\",-\"+e+\"l\"+r+\",\"+e+\"h\"+i+\"l-\"+r+\",\"+e+\"l\"+r+\",\"+e+\"h-\"+i+\"l-\"+r+\",\"+e+\"l-\"+r+\",-\"+e+\"h-\"+i+\"Z\"}},\"star-triangle-up\":{n:19,f:function(t){var e=n.round(t*Math.sqrt(3)*.8,2),r=n.round(.8*t,2),i=n.round(1.6*t,2),a=n.round(4*t,2),o=\"A \"+a+\",\"+a+\" 0 0 1 \";return\"M-\"+e+\",\"+r+o+e+\",\"+r+o+\"0,-\"+i+o+\"-\"+e+\",\"+r+\"Z\"}},\"star-triangle-down\":{n:20,f:function(t){var e=n.round(t*Math.sqrt(3)*.8,2),r=n.round(.8*t,2),i=n.round(1.6*t,2),a=n.round(4*t,2),o=\"A \"+a+\",\"+a+\" 0 0 1 \";return\"M\"+e+\",-\"+r+o+\"-\"+e+\",-\"+r+o+\"0,\"+i+o+e+\",-\"+r+\"Z\"}},\"star-square\":{n:21,f:function(t){var e=n.round(1.1*t,2),r=n.round(2*t,2),i=\"A \"+r+\",\"+r+\" 0 0 1 \";return\"M-\"+e+\",-\"+e+i+\"-\"+e+\",\"+e+i+e+\",\"+e+i+e+\",-\"+e+i+\"-\"+e+\",-\"+e+\"Z\"}},\"star-diamond\":{n:22,f:function(t){var e=n.round(1.4*t,2),r=n.round(1.9*t,2),i=\"A \"+r+\",\"+r+\" 0 0 1 \";return\"M-\"+e+\",0\"+i+\"0,\"+e+i+e+\",0\"+i+\"0,-\"+e+i+\"-\"+e+\",0Z\"}},\"diamond-tall\":{n:23,f:function(t){var e=n.round(.7*t,2),r=n.round(1.4*t,2);return\"M0,\"+r+\"L\"+e+\",0L0,-\"+r+\"L-\"+e+\",0Z\"}},\"diamond-wide\":{n:24,f:function(t){var e=n.round(1.4*t,2),r=n.round(.7*t,2);return\"M0,\"+r+\"L\"+e+\",0L0,-\"+r+\"L-\"+e+\",0Z\"}},hourglass:{n:25,f:function(t){var e=n.round(t,2);return\"M\"+e+\",\"+e+\"H-\"+e+\"L\"+e+\",-\"+e+\"H-\"+e+\"Z\"},noDot:!0},bowtie:{n:26,f:function(t){var e=n.round(t,2);return\"M\"+e+\",\"+e+\"V-\"+e+\"L-\"+e+\",\"+e+\"V-\"+e+\"Z\"},noDot:!0},\"circle-cross\":{n:27,f:function(t){var e=n.round(t,2);return\"M0,\"+e+\"V-\"+e+\"M\"+e+\",0H-\"+e+\"M\"+e+\",0A\"+e+\",\"+e+\" 0 1,1 0,-\"+e+\"A\"+e+\",\"+e+\" 0 0,1 \"+e+\",0Z\"},needLine:!0,noDot:!0},\"circle-x\":{n:28,f:function(t){var e=n.round(t,2),r=n.round(t/Math.sqrt(2),2);return\"M\"+r+\",\"+r+\"L-\"+r+\",-\"+r+\"M\"+r+\",-\"+r+\"L-\"+r+\",\"+r+\"M\"+e+\",0A\"+e+\",\"+e+\" 0 1,1 0,-\"+e+\"A\"+e+\",\"+e+\" 0 0,1 \"+e+\",0Z\"},needLine:!0,noDot:!0},\"square-cross\":{n:29,f:function(t){var e=n.round(t,2);return\"M0,\"+e+\"V-\"+e+\"M\"+e+\",0H-\"+e+\"M\"+e+\",\"+e+\"H-\"+e+\"V-\"+e+\"H\"+e+\"Z\"},needLine:!0,noDot:!0},\"square-x\":{n:30,f:function(t){var e=n.round(t,2);return\"M\"+e+\",\"+e+\"L-\"+e+\",-\"+e+\"M\"+e+\",-\"+e+\"L-\"+e+\",\"+e+\"M\"+e+\",\"+e+\"H-\"+e+\"V-\"+e+\"H\"+e+\"Z\"},needLine:!0,noDot:!0},\"diamond-cross\":{n:31,f:function(t){var e=n.round(1.3*t,2);return\"M\"+e+\",0L0,\"+e+\"L-\"+e+\",0L0,-\"+e+\"ZM0,-\"+e+\"V\"+e+\"M-\"+e+\",0H\"+e},needLine:!0,noDot:!0},\"diamond-x\":{n:32,f:function(t){var e=n.round(1.3*t,2),r=n.round(.65*t,2);return\"M\"+e+\",0L0,\"+e+\"L-\"+e+\",0L0,-\"+e+\"ZM-\"+r+\",-\"+r+\"L\"+r+\",\"+r+\"M-\"+r+\",\"+r+\"L\"+r+\",-\"+r},needLine:!0,noDot:!0},\"cross-thin\":{n:33,f:function(t){var e=n.round(1.4*t,2);return\"M0,\"+e+\"V-\"+e+\"M\"+e+\",0H-\"+e},needLine:!0,noDot:!0},\"x-thin\":{n:34,f:function(t){var e=n.round(t,2);return\"M\"+e+\",\"+e+\"L-\"+e+\",-\"+e+\"M\"+e+\",-\"+e+\"L-\"+e+\",\"+e},needLine:!0,noDot:!0},asterisk:{n:35,f:function(t){var e=n.round(1.2*t,2),r=n.round(.85*t,2);return\"M0,\"+e+\"V-\"+e+\"M\"+e+\",0H-\"+e+\"M\"+r+\",\"+r+\"L-\"+r+\",-\"+r+\"M\"+r+\",-\"+r+\"L-\"+r+\",\"+r},needLine:!0,noDot:!0},hash:{n:36,f:function(t){var e=n.round(t/2,2),r=n.round(t,2);return\"M\"+e+\",\"+r+\"V-\"+r+\"m-\"+r+\",0V\"+r+\"M\"+r+\",\"+e+\"H-\"+r+\"m0,-\"+r+\"H\"+r},needLine:!0},\"y-up\":{n:37,f:function(t){var e=n.round(1.2*t,2),r=n.round(1.6*t,2),i=n.round(.8*t,2);return\"M-\"+e+\",\"+i+\"L0,0M\"+e+\",\"+i+\"L0,0M0,-\"+r+\"L0,0\"},needLine:!0,noDot:!0},\"y-down\":{n:38,f:function(t){var e=n.round(1.2*t,2),r=n.round(1.6*t,2),i=n.round(.8*t,2);return\"M-\"+e+\",-\"+i+\"L0,0M\"+e+\",-\"+i+\"L0,0M0,\"+r+\"L0,0\"},needLine:!0,noDot:!0},\"y-left\":{n:39,f:function(t){var e=n.round(1.2*t,2),r=n.round(1.6*t,2),i=n.round(.8*t,2);return\"M\"+i+\",\"+e+\"L0,0M\"+i+\",-\"+e+\"L0,0M-\"+r+\",0L0,0\"},needLine:!0,noDot:!0},\"y-right\":{n:40,f:function(t){var e=n.round(1.2*t,2),r=n.round(1.6*t,2),i=n.round(.8*t,2);return\"M-\"+i+\",\"+e+\"L0,0M-\"+i+\",-\"+e+\"L0,0M\"+r+\",0L0,0\"},needLine:!0,noDot:!0},\"line-ew\":{n:41,f:function(t){var e=n.round(1.4*t,2);return\"M\"+e+\",0H-\"+e},needLine:!0,noDot:!0},\"line-ns\":{n:42,f:function(t){var e=n.round(1.4*t,2);return\"M0,\"+e+\"V-\"+e},needLine:!0,noDot:!0},\"line-ne\":{n:43,f:function(t){var e=n.round(t,2);return\"M\"+e+\",-\"+e+\"L-\"+e+\",\"+e},needLine:!0,noDot:!0},\"line-nw\":{n:44,f:function(t){var e=n.round(t,2);return\"M\"+e+\",\"+e+\"L-\"+e+\",-\"+e},needLine:!0,noDot:!0}}},{d3:122}],630:[function(t,e,r){\"use strict\";e.exports={visible:{valType:\"boolean\",editType:\"calc\"},type:{valType:\"enumerated\",values:[\"percent\",\"constant\",\"sqrt\",\"data\"],editType:\"calc\"},symmetric:{valType:\"boolean\",editType:\"calc\"},array:{valType:\"data_array\",editType:\"calc\"},arrayminus:{valType:\"data_array\",editType:\"calc\"},value:{valType:\"number\",min:0,dflt:10,editType:\"calc\"},valueminus:{valType:\"number\",min:0,dflt:10,editType:\"calc\"},traceref:{valType:\"integer\",min:0,dflt:0,editType:\"style\"},tracerefminus:{valType:\"integer\",min:0,dflt:0,editType:\"style\"},copy_ystyle:{valType:\"boolean\",editType:\"plot\"},copy_zstyle:{valType:\"boolean\",editType:\"style\"},color:{valType:\"color\",editType:\"style\"},thickness:{valType:\"number\",min:0,dflt:2,editType:\"style\"},width:{valType:\"number\",min:0,editType:\"plot\"},editType:\"calc\",_deprecated:{opacity:{valType:\"number\",editType:\"style\"}}}},{}],631:[function(t,e,r){\"use strict\";function n(t,e,r,n){var a=e[\"error_\"+n]||{},l=a.visible&&-1!==[\"linear\",\"log\"].indexOf(r.type),u=[];if(l){for(var c=s(a),h=0;h<t.length;h++){var f=t[h],d=f[n];if(i(r.c2l(d))){var p=c(d,h);if(i(p[0])&&i(p[1])){var m=f[n+\"s\"]=d-p[0],v=f[n+\"h\"]=d+p[1];u.push(m,v)}}}o.expand(r,u,{padded:!0})}}var i=t(\"fast-isnumeric\"),a=t(\"../../registry\"),o=t(\"../../plots/cartesian/axes\"),s=t(\"./compute_error\");e.exports=function(t){for(var e=t.calcdata,r=0;r<e.length;r++){var i=e[r],s=i[0].trace;if(a.traceIs(s,\"errorBarsOK\")){var l=o.getFromId(t,s.xaxis),u=o.getFromId(t,s.yaxis);n(i,s,l,\"x\"),n(i,s,u,\"y\")}}}},{\"../../plots/cartesian/axes\":772,\"../../registry\":846,\"./compute_error\":632,\"fast-isnumeric\":131}],632:[function(t,e,r){\"use strict\";function n(t,e){return\"percent\"===t?function(t){return Math.abs(t*e/100)}:\"constant\"===t?function(){return Math.abs(e)}:\"sqrt\"===t?function(t){return Math.sqrt(Math.abs(t))}:void 0}e.exports=function(t){var e=t.type,r=t.symmetric;if(\"data\"===e){var i=t.array,a=t.arrayminus;return r||void 0===a?function(t,e){var r=+i[e];return[r,r]}:function(t,e){return[+a[e],+i[e]]}}var o=n(e,t.value),s=n(e,t.valueminus);return r||void 0===t.valueminus?function(t){var e=o(t);return[e,e]}:function(t){return[s(t),o(t)]}}},{}],633:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../../registry\"),a=t(\"../../lib\"),o=t(\"./attributes\");e.exports=function(t,e,r,s){function l(t,e){return a.coerce(h,c,o,t,e)}var u=\"error_\"+s.axis,c=e[u]={},h=t[u]||{};if(!1!==l(\"visible\",void 0!==h.array||void 0!==h.value||\"sqrt\"===h.type)){var f=l(\"type\",\"array\"in h?\"data\":\"percent\"),d=!0;\"sqrt\"!==f&&(d=l(\"symmetric\",!((\"data\"===f?\"arrayminus\":\"valueminus\")in h))),\"data\"===f?(l(\"array\")||(c.array=[]),l(\"traceref\"),d||(l(\"arrayminus\")||(c.arrayminus=[]),l(\"tracerefminus\"))):\"percent\"!==f&&\"constant\"!==f||(l(\"value\"),d||l(\"valueminus\"));var p=\"copy_\"+s.inherit+\"style\";s.inherit&&(e[\"error_\"+s.inherit]||{}).visible&&l(p,!(h.color||n(h.thickness)||n(h.width))),s.inherit&&c[p]||(l(\"color\",r),l(\"thickness\"),l(\"width\",i.traceIs(e,\"gl3d\")?0:4))}}},{\"../../lib\":728,\"../../registry\":846,\"./attributes\":630,\"fast-isnumeric\":131}],634:[function(t,e,r){\"use strict\";var n=e.exports={};n.attributes=t(\"./attributes\"),n.supplyDefaults=t(\"./defaults\"),n.calc=t(\"./calc\"),n.calcFromTrace=function(t,e){for(var r=t.x||[],i=t.y||[],a=r.length||i.length,o=new Array(a),s=0;s<a;s++)o[s]={x:r[s],y:i[s]};return o[0].trace=t,n.calc({calcdata:[o],_fullLayout:e}),o},n.plot=t(\"./plot\"),n.style=t(\"./style\"),n.hoverInfo=function(t,e,r){(e.error_y||{}).visible&&(r.yerr=t.yh-t.y,e.error_y.symmetric||(r.yerrneg=t.y-t.ys)),(e.error_x||{}).visible&&(r.xerr=t.xh-t.x,e.error_x.symmetric||(r.xerrneg=t.x-t.xs))}},{\"./attributes\":630,\"./calc\":631,\"./defaults\":633,\"./plot\":635,\"./style\":636}],635:[function(t,e,r){\"use strict\";function n(t,e,r){var n={x:e.c2p(t.x),y:r.c2p(t.y)};return void 0!==t.yh&&(n.yh=r.c2p(t.yh),n.ys=r.c2p(t.ys),a(n.ys)||(n.noYS=!0,n.ys=r.c2p(t.ys,!0))),void 0!==t.xh&&(n.xh=e.c2p(t.xh),n.xs=e.c2p(t.xs),a(n.xs)||(n.noXS=!0,n.xs=e.c2p(t.xs,!0))),n}var i=t(\"d3\"),a=t(\"fast-isnumeric\"),o=t(\"../drawing\"),s=t(\"../../traces/scatter/subtypes\");e.exports=function(t,e,r){var l,u=e.xaxis,c=e.yaxis,h=r&&r.duration>0;t.each(function(t){var f,d=t[0].trace,p=d.error_x||{},m=d.error_y||{};d.ids&&(f=function(t){return t.id});var v=s.hasMarkers(d)&&d.marker.maxdisplayed>0;m.visible||p.visible||(t=[]);var g=i.select(this).selectAll(\"g.errorbar\").data(t,f);if(g.exit().remove(),t.length){p.visible||g.selectAll(\"path.xerror\").remove(),m.visible||g.selectAll(\"path.yerror\").remove(),g.style(\"opacity\",1);var y=g.enter().append(\"g\").classed(\"errorbar\",!0);h&&y.style(\"opacity\",0).transition().duration(r.duration).style(\"opacity\",1),o.setClipUrl(g,e.layerClipId),g.each(function(t){var e=i.select(this),o=n(t,u,c);if(!v||t.vis){var s;if(m.visible&&a(o.x)&&a(o.yh)&&a(o.ys)){var f=m.width;s=\"M\"+(o.x-f)+\",\"+o.yh+\"h\"+2*f+\"m-\"+f+\",0V\"+o.ys,o.noYS||(s+=\"m-\"+f+\",0h\"+2*f);var d=e.select(\"path.yerror\");l=!d.size(),l?d=e.append(\"path\").style(\"vector-effect\",\"non-scaling-stroke\").classed(\"yerror\",!0):h&&(d=d.transition().duration(r.duration).ease(r.easing)),d.attr(\"d\",s)}if(p.visible&&a(o.y)&&a(o.xh)&&a(o.xs)){var g=(p.copy_ystyle?m:p).width;s=\"M\"+o.xh+\",\"+(o.y-g)+\"v\"+2*g+\"m0,-\"+g+\"H\"+o.xs,o.noXS||(s+=\"m0,-\"+g+\"v\"+2*g);var y=e.select(\"path.xerror\");l=!y.size(),l?y=e.append(\"path\").style(\"vector-effect\",\"non-scaling-stroke\").classed(\"xerror\",!0):h&&(y=y.transition().duration(r.duration).ease(r.easing)),y.attr(\"d\",s)}}})}})}},{\"../../traces/scatter/subtypes\":1052,\"../drawing\":628,d3:122,\"fast-isnumeric\":131}],636:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../color\");e.exports=function(t){t.each(function(t){var e=t[0].trace,r=e.error_y||{},a=e.error_x||{},o=n.select(this);o.selectAll(\"path.yerror\").style(\"stroke-width\",r.thickness+\"px\").call(i.stroke,r.color),a.copy_ystyle&&(a=r),o.selectAll(\"path.xerror\").style(\"stroke-width\",a.thickness+\"px\").call(i.stroke,a.color)})}},{\"../color\":604,d3:122}],637:[function(t,e,r){\"use strict\";var n=t(\"../../plots/font_attributes\");e.exports={hoverlabel:{bgcolor:{valType:\"color\",arrayOk:!0,editType:\"none\"},bordercolor:{valType:\"color\",arrayOk:!0,editType:\"none\"},font:n({arrayOk:!0,editType:\"none\"}),namelength:{valType:\"integer\",min:-1,arrayOk:!0,editType:\"none\"},editType:\"calc\"}}},{\"../../plots/font_attributes\":796}],638:[function(t,e,r){\"use strict\";function n(t,e,r,n){n=n||i.identity,Array.isArray(t)&&(e[0][r]=n(t))}var i=t(\"../../lib\"),a=t(\"../../registry\");e.exports=function(t){for(var e=t.calcdata,r=t._fullLayout,o=0;o<e.length;o++){var s=e[o],l=s[0].trace;if(!a.traceIs(l,\"pie\")){var u=a.traceIs(l,\"2dMap\")?n:i.fillArray;u(l.hoverinfo,s,\"hi\",function(t){return function(e){return i.coerceHoverinfo({hoverinfo:e},{_module:t._module},r)}}(l)),l.hoverlabel&&(u(l.hoverlabel.bgcolor,s,\"hbg\"),u(l.hoverlabel.bordercolor,s,\"hbc\"),u(l.hoverlabel.font.size,s,\"hts\"),u(l.hoverlabel.font.color,s,\"htc\"),u(l.hoverlabel.font.family,s,\"htf\"),u(l.hoverlabel.namelength,s,\"hnl\"))}}}},{\"../../lib\":728,\"../../registry\":846}],639:[function(t,e,r){\"use strict\";var n=t(\"../../registry\"),i=t(\"./hover\").hover;e.exports=function(t,e,r){function a(){t.emit(\"plotly_click\",{points:t._hoverdata,event:e})}var o=n.getComponentMethod(\"annotations\",\"onClick\")(t,t._hoverdata);void 0!==r&&i(t,e,r,!0),t._hoverdata&&e&&e.target&&(o&&o.then?o.then(a):a(),e.stopImmediatePropagation&&e.stopImmediatePropagation())}},{\"../../registry\":846,\"./hover\":643}],640:[function(t,e,r){\"use strict\";e.exports={MAXDIST:20,YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:\"Arial, sans-serif\",HOVERMINTIME:50,HOVERID:\"-hover\"}},{}],641:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"./attributes\"),a=t(\"./hoverlabel_defaults\");e.exports=function(t,e,r,o){function s(r,a){return n.coerce(t,e,i,r,a)}a(t,e,s,o.hoverlabel)}},{\"../../lib\":728,\"./attributes\":637,\"./hoverlabel_defaults\":644}],642:[function(t,e,r){\"use strict\";function n(t,e){return function(r){var n=t(r),i=e(r);return Math.sqrt(n*n+i*i)}}var i=t(\"../../lib\"),a=t(\"./constants\");r.getSubplot=function(t){return t.subplot||t.xaxis+t.yaxis||t.geo},r.flat=function(t,e){for(var r=new Array(t.length),n=0;n<t.length;n++)r[n]=e;return r},r.p2c=function(t,e){for(var r=new Array(t.length),n=0;n<t.length;n++)r[n]=t[n].p2c(e);return r},r.getDistanceFunction=function(t,e,r,i){return\"closest\"===t?i||n(e,r):\"x\"===t?e:r},r.getClosest=function(t,e,r){if(!1!==r.index)r.index>=0&&r.index<t.length?r.distance=0:r.index=!1;else for(var n=0;n<t.length;n++){\n", "var i=e(t[n]);i<=r.distance&&(r.index=n,r.distance=i)}return r},r.inbox=function(t,e){return t*e<0||0===t?a.MAXDIST*(.6-.3/Math.max(3,Math.abs(t-e))):1/0},r.appendArrayPointValue=function(t,e,r){var n=e._arrayAttrs;if(n)for(var a=0;a<n.length;a++){var o,s=n[a];if(o=\"ids\"===s?\"id\":\"locations\"===s?\"location\":s,void 0===t[o]){var l=i.nestedProperty(e,s).get();Array.isArray(r)?Array.isArray(l)&&Array.isArray(l[r[0]])&&(t[o]=l[r[0]][r[1]]):t[o]=l[r]}}}},{\"../../lib\":728,\"./constants\":640}],643:[function(t,e,r){\"use strict\";function n(t,e,r,n){if((\"pie\"===r||\"sankey\"===r)&&!n)return void t.emit(\"plotly_hover\",{event:e.originalEvent,points:[e]});r||(r=\"xy\");var f=Array.isArray(r)?r:[r],m=t._fullLayout,g=m._plots||[],k=g[r];if(k){var A=k.overlays.map(function(t){return t.id});f=f.concat(A)}for(var T=f.length,S=new Array(T),E=new Array(T),L=0;L<T;L++){var C=f[L],I=g[C];if(I)S[L]=x.getFromId(t,I.xaxis._id),E[L]=x.getFromId(t,I.yaxis._id);else{var z=m[C]._subplot;S[L]=z.xaxis,E[L]=z.yaxis}}var D=e.hovermode||m.hovermode;if(-1===[\"x\",\"y\",\"closest\"].indexOf(D)||!t.calcdata||t.querySelector(\".zoombox\")||t._dragging)return b.unhoverRaw(t,e);var P,O,R,F,j,N,B,U,V,H,q,G,Y,W=[],X=[];if(Array.isArray(e))for(D=\"array\",R=0;R<e.length;R++)j=t.calcdata[e[R].curveNumber||0],\"skip\"!==j[0].trace.hoverinfo&&X.push(j);else{for(F=0;F<t.calcdata.length;F++)j=t.calcdata[F],N=j[0].trace,\"skip\"!==N.hoverinfo&&-1!==f.indexOf(w.getSubplot(N))&&X.push(j);var Z,J,K=!e.target;if(K)Z=\"xpx\"in e?e.xpx:S[0]._length/2,J=\"ypx\"in e?e.ypx:E[0]._length/2;else{if(!1===p.triggerHandler(t,\"plotly_beforehover\",e))return;var Q=e.target.getBoundingClientRect();if(Z=e.clientX-Q.left,J=e.clientY-Q.top,Z<0||Z>Q.width||J<0||J>Q.height)return b.unhoverRaw(t,e)}if(P=\"xval\"in e?w.flat(f,e.xval):w.p2c(S,Z),O=\"yval\"in e?w.flat(f,e.yval):w.p2c(E,J),!h(P[0])||!h(O[0]))return d.warn(\"Fx.hover failed\",e,t),b.unhoverRaw(t,e)}var $=1/0;for(F=0;F<X.length;F++)if((j=X[F])&&j[0]&&j[0].trace&&!0===j[0].trace.visible&&(N=j[0].trace,-1===[\"carpet\",\"contourcarpet\"].indexOf(N._module.name))){if(B=w.getSubplot(N),U=f.indexOf(B),V=D,G={cd:j,trace:N,xa:S[U],ya:E[U],index:!1,distance:Math.min($,M.MAXDIST),color:y.defaultLine,name:N.name,x0:void 0,x1:void 0,y0:void 0,y1:void 0,xLabelVal:void 0,yLabelVal:void 0,zLabelVal:void 0,text:void 0},m[B]&&(G.subplot=m[B]._subplot),Y=W.length,\"array\"===V){var tt=e[F];\"pointNumber\"in tt?(G.index=tt.pointNumber,V=\"closest\"):(V=\"\",\"xval\"in tt&&(H=tt.xval,V=\"x\"),\"yval\"in tt&&(q=tt.yval,V=V?\"closest\":\"y\"))}else H=P[U],q=O[U];if(N._module&&N._module.hoverPoints){var et=N._module.hoverPoints(G,H,q,V);if(et)for(var rt,nt=0;nt<et.length;nt++)rt=et[nt],h(rt.x0)&&h(rt.y0)&&W.push(s(rt,D))}else d.log(\"Unrecognized trace type in hover:\",N);\"closest\"===D&&W.length>Y&&(W.splice(0,Y),$=W[0].distance)}if(0===W.length)return b.unhoverRaw(t,e);W.sort(function(t,e){return t.distance-e.distance});var it=t._hoverdata,at=[];for(R=0;R<W.length;R++){var ot=W[R],st={data:ot.trace._input,fullData:ot.trace,curveNumber:ot.trace.index,pointNumber:ot.index};ot.trace._module.eventData?st=ot.trace._module.eventData(st,ot):(st.x=ot.xVal,st.y=ot.yVal,st.xaxis=ot.xa,st.yaxis=ot.ya,void 0!==ot.zLabelVal&&(st.z=ot.zLabelVal)),w.appendArrayPointValue(st,ot.trace,ot.index),at.push(st)}if(t._hoverdata=at,u(t,e,it)&&m._hasCartesian){l(W,{hovermode:D,fullLayout:m,container:m._hoverlayer,outerContainer:m._paperdiv})}var lt=\"y\"===D&&X.length>1,ut=y.combine(m.plot_bgcolor||y.background,m.paper_bgcolor),ct={hovermode:D,rotateLabels:lt,bgColor:ut,container:m._hoverlayer,outerContainer:m._paperdiv,commonLabelOpts:m.hoverlabel},ht=i(W,ct,t);if(a(W,lt?\"xa\":\"ya\"),o(ht,lt),e.target&&e.target.tagName){var ft=_.getComponentMethod(\"annotations\",\"hasClickToShow\")(t,at);v(c.select(e.target),ft?\"pointer\":\"\")}e.target&&!n&&u(t,e,it)&&(it&&t.emit(\"plotly_unhover\",{event:e,points:it}),t.emit(\"plotly_hover\",{event:e,points:t._hoverdata,xaxes:S,yaxes:E,xvals:P,yvals:O}))}function i(t,e,r){var n,i,a=e.hovermode,o=e.rotateLabels,s=e.bgColor,l=e.container,u=e.outerContainer,h=e.commonLabelOpts||{},f=e.fontFamily||M.HOVERFONT,d=e.fontSize||M.HOVERFONTSIZE,p=t[0],v=p.xa,b=p.ya,x=\"y\"===a?\"yLabel\":\"xLabel\",_=p[x],w=(String(_)||\"\").split(\" \")[0],A=u.node().getBoundingClientRect(),T=A.top,S=A.width,E=A.height,I=p.distance<=M.MAXDIST&&(\"x\"===a||\"y\"===a);for(n=0;n<t.length;n++){i=t[n].hoverinfo||t[n].trace.hoverinfo;var z=i.split(\"+\");if(-1===z.indexOf(\"all\")&&-1===z.indexOf(a)){I=!1;break}}var D=l.selectAll(\"g.axistext\").data(I?[0]:[]);D.enter().append(\"g\").classed(\"axistext\",!0),D.exit().remove(),D.each(function(){var e=c.select(this),n=e.selectAll(\"path\").data([0]),i=e.selectAll(\"text\").data([0]);n.enter().append(\"path\").style({\"stroke-width\":\"1px\"}),n.style({fill:h.bgcolor||y.defaultLine,stroke:h.bordercolor||y.background}),i.enter().append(\"text\").attr(\"data-notex\",1),i.text(_).call(g.font,h.font.family||f,h.font.size||d,h.font.color||y.background).call(m.positionText,0,0).call(m.convertToTspans,r),e.attr(\"transform\",\"\");var o=i.node().getBoundingClientRect();if(\"x\"===a){i.attr(\"text-anchor\",\"middle\").call(m.positionText,0,\"top\"===v.side?T-o.bottom-L-C:T-o.top+L+C);var s=\"top\"===v.side?\"-\":\"\";n.attr(\"d\",\"M0,0L\"+L+\",\"+s+L+\"H\"+(C+o.width/2)+\"v\"+s+(2*C+o.height)+\"H-\"+(C+o.width/2)+\"V\"+s+L+\"H-\"+L+\"Z\"),e.attr(\"transform\",\"translate(\"+(v._offset+(p.x0+p.x1)/2)+\",\"+(b._offset+(\"top\"===v.side?0:b._length))+\")\")}else{i.attr(\"text-anchor\",\"right\"===b.side?\"start\":\"end\").call(m.positionText,(\"right\"===b.side?1:-1)*(C+L),T-o.top-o.height/2);var l=\"right\"===b.side?\"\":\"-\";n.attr(\"d\",\"M0,0L\"+l+L+\",\"+L+\"V\"+(C+o.height/2)+\"h\"+l+(2*C+o.width)+\"V-\"+(C+o.height/2)+\"H\"+l+L+\"V-\"+L+\"Z\"),e.attr(\"transform\",\"translate(\"+(v._offset+(\"right\"===b.side?v._length:0))+\",\"+(b._offset+(p.y0+p.y1)/2)+\")\")}t=t.filter(function(t){return void 0!==t.zLabelVal||(t[x]||\"\").split(\" \")[0]===w})});var P=l.selectAll(\"g.hovertext\").data(t,function(t){return[t.trace.index,t.index,t.x0,t.y0,t.name,t.attr,t.xa,t.ya||\"\"].join(\",\")});return P.enter().append(\"g\").classed(\"hovertext\",!0).each(function(){var t=c.select(this);t.append(\"rect\").call(y.fill,y.addOpacity(s,.8)),t.append(\"text\").classed(\"name\",!0),t.append(\"path\").style(\"stroke-width\",\"1px\"),t.append(\"text\").classed(\"nums\",!0).call(g.font,f,d)}),P.exit().remove(),P.each(function(t){var e=c.select(this).attr(\"transform\",\"\"),n=\"\",i=\"\",l=y.opacity(t.color)?t.color:y.defaultLine,u=y.combine(l,s),h=t.borderColor||y.contrast(u);if(void 0!==t.nameOverride&&(t.name=t.nameOverride),t.name){n=m.plainText(t.name||\"\");var p=Math.round(t.nameLength);p>-1&&n.length>p&&(n=p>3?n.substr(0,p-3)+\"...\":n.substr(0,p))}void 0!==t.extraText&&(i+=t.extraText),void 0!==t.zLabel?(void 0!==t.xLabel&&(i+=\"x: \"+t.xLabel+\"<br>\"),void 0!==t.yLabel&&(i+=\"y: \"+t.yLabel+\"<br>\"),i+=(i?\"z: \":\"\")+t.zLabel):I&&t[a+\"Label\"]===_?i=t[(\"x\"===a?\"y\":\"x\")+\"Label\"]||\"\":void 0===t.xLabel?void 0!==t.yLabel&&(i=t.yLabel):i=void 0===t.yLabel?t.xLabel:\"(\"+t.xLabel+\", \"+t.yLabel+\")\",t.text&&!Array.isArray(t.text)&&(i+=(i?\"<br>\":\"\")+t.text),\"\"===i&&(\"\"===n&&e.remove(),i=n);var v=e.select(\"text.nums\").call(g.font,t.fontFamily||f,t.fontSize||d,t.fontColor||h).text(i).attr(\"data-notex\",1).call(m.positionText,0,0).call(m.convertToTspans,r),b=e.select(\"text.name\"),x=0;n&&n!==i?(b.call(g.font,t.fontFamily||f,t.fontSize||d,u).text(n).attr(\"data-notex\",1).call(m.positionText,0,0).call(m.convertToTspans,r),x=b.node().getBoundingClientRect().width+2*C):(b.remove(),e.select(\"rect\").remove()),e.select(\"path\").style({fill:u,stroke:h});var w,M,A=v.node().getBoundingClientRect(),z=t.xa._offset+(t.x0+t.x1)/2,D=t.ya._offset+(t.y0+t.y1)/2,P=Math.abs(t.x1-t.x0),O=Math.abs(t.y1-t.y0),R=A.width+L+C+x;t.ty0=T-A.top,t.bx=A.width+2*C,t.by=A.height+2*C,t.anchor=\"start\",t.txwidth=A.width,t.tx2width=x,t.offset=0,o?(t.pos=z,w=D+O/2+R<=E,M=D-O/2-R>=0,\"top\"!==t.idealAlign&&w||!M?w?(D+=O/2,t.anchor=\"start\"):t.anchor=\"middle\":(D-=O/2,t.anchor=\"end\")):(t.pos=D,w=z+P/2+R<=S,M=z-P/2-R>=0,\"left\"!==t.idealAlign&&w||!M?w?(z+=P/2,t.anchor=\"start\"):t.anchor=\"middle\":(z-=P/2,t.anchor=\"end\")),v.attr(\"text-anchor\",t.anchor),x&&b.attr(\"text-anchor\",t.anchor),e.attr(\"transform\",\"translate(\"+z+\",\"+D+\")\"+(o?\"rotate(\"+k+\")\":\"\"))}),P}function a(t,e){function r(t){var e=t[0],r=t[t.length-1];if(i=e.pmin-e.pos-e.dp+e.size,a=r.pos+r.dp+r.size-e.pmax,i>.01){for(s=t.length-1;s>=0;s--)t[s].dp+=i;n=!1}if(!(a<.01)){if(i<-.01){for(s=t.length-1;s>=0;s--)t[s].dp-=a;n=!1}if(n){var u=0;for(o=0;o<t.length;o++)l=t[o],l.pos+l.dp+l.size>e.pmax&&u++;for(o=t.length-1;o>=0&&!(u<=0);o--)l=t[o],l.pos>e.pmax-1&&(l.del=!0,u--);for(o=0;o<t.length&&!(u<=0);o++)if(l=t[o],l.pos<e.pmin+1)for(l.del=!0,u--,a=2*l.size,s=t.length-1;s>=0;s--)t[s].dp-=a;for(o=t.length-1;o>=0&&!(u<=0);o--)l=t[o],l.pos+l.dp+l.size>e.pmax&&(l.del=!0,u--)}}}for(var n,i,a,o,s,l,u,c=0,h=t.map(function(t,r){var n=t[e];return[{i:r,dp:0,pos:t.pos,posref:t.posref,size:t.by*(\"x\"===n._id.charAt(0)?T:1)/2,pmin:n._offset,pmax:n._offset+n._length}]}).sort(function(t,e){return t[0].posref-e[0].posref});!n&&c<=t.length;){for(c++,n=!0,o=0;o<h.length-1;){var f=h[o],d=h[o+1],p=f[f.length-1],m=d[0];if((i=p.pos+p.dp+p.size-m.pos-m.dp+m.size)>.01&&p.pmin===m.pmin&&p.pmax===m.pmax){for(s=d.length-1;s>=0;s--)d[s].dp+=i;for(f.push.apply(f,d),h.splice(o+1,1),u=0,s=f.length-1;s>=0;s--)u+=f[s].dp;for(a=u/f.length,s=f.length-1;s>=0;s--)f[s].dp-=a;n=!1}else o++}h.forEach(r)}for(o=h.length-1;o>=0;o--){var v=h[o];for(s=v.length-1;s>=0;s--){var g=v[s],y=t[g.i];y.offset=g.dp,y.del=g.del}}}function o(t,e){t.each(function(t){var r=c.select(this);if(t.del)return void r.remove();var n=\"end\"===t.anchor?-1:1,i=r.select(\"text.nums\"),a={start:1,end:-1,middle:0}[t.anchor],o=a*(L+C),s=o+a*(t.txwidth+C),l=0,u=t.offset;\"middle\"===t.anchor&&(o-=t.tx2width/2,s-=t.tx2width/2),e&&(u*=-E,l=t.offset*S),r.select(\"path\").attr(\"d\",\"middle\"===t.anchor?\"M-\"+t.bx/2+\",-\"+t.by/2+\"h\"+t.bx+\"v\"+t.by+\"h-\"+t.bx+\"Z\":\"M0,0L\"+(n*L+l)+\",\"+(L+u)+\"v\"+(t.by/2-L)+\"h\"+n*t.bx+\"v-\"+t.by+\"H\"+(n*L+l)+\"V\"+(u-L)+\"Z\"),i.call(m.positionText,o+l,u+t.ty0-t.by/2+C),t.tx2width&&(r.select(\"text.name\").call(m.positionText,s+a*C+l,u+t.ty0-t.by/2+C),r.select(\"rect\").call(g.setRect,s+(a-1)*t.tx2width/2+l,u-t.by/2-1,t.tx2width,t.by+2))})}function s(t,e){function r(e,r,n){var i=s(r,n);i&&(t[e]=i)}var n=t.index,i=t.trace||{},a=t.cd[0],o=t.cd[n]||{},s=Array.isArray(n)?function(t,e){return d.castOption(a,n,t)||d.extractOption({},i,\"\",e)}:function(t,e){return d.extractOption(o,i,t,e)};r(\"hoverinfo\",\"hi\",\"hoverinfo\"),r(\"color\",\"hbg\",\"hoverlabel.bgcolor\"),r(\"borderColor\",\"hbc\",\"hoverlabel.bordercolor\"),r(\"fontFamily\",\"htf\",\"hoverlabel.font.family\"),r(\"fontSize\",\"hts\",\"hoverlabel.font.size\"),r(\"fontColor\",\"htc\",\"hoverlabel.font.color\"),r(\"nameLength\",\"hnl\",\"hoverlabel.namelength\"),t.posref=\"y\"===e?(t.x0+t.x1)/2:(t.y0+t.y1)/2,t.x0=d.constrain(t.x0,0,t.xa._length),t.x1=d.constrain(t.x1,0,t.xa._length),t.y0=d.constrain(t.y0,0,t.ya._length),t.y1=d.constrain(t.y1,0,t.ya._length);var l;if(void 0!==t.xLabelVal){l=\"log\"===t.xa.type&&t.xLabelVal<=0;var u=x.tickText(t.xa,t.xa.c2l(l?-t.xLabelVal:t.xLabelVal),\"hover\");l?0===t.xLabelVal?t.xLabel=\"0\":t.xLabel=\"-\"+u.text:t.xLabel=u.text,t.xVal=t.xa.c2d(t.xLabelVal)}if(void 0!==t.yLabelVal){l=\"log\"===t.ya.type&&t.yLabelVal<=0;var c=x.tickText(t.ya,t.ya.c2l(l?-t.yLabelVal:t.yLabelVal),\"hover\");l?0===t.yLabelVal?t.yLabel=\"0\":t.yLabel=\"-\"+c.text:t.yLabel=c.text,t.yVal=t.ya.c2d(t.yLabelVal)}if(void 0!==t.zLabelVal&&(t.zLabel=String(t.zLabelVal)),!(isNaN(t.xerr)||\"log\"===t.xa.type&&t.xerr<=0)){var h=x.tickText(t.xa,t.xa.c2l(t.xerr),\"hover\").text;void 0!==t.xerrneg?t.xLabel+=\" +\"+h+\" / -\"+x.tickText(t.xa,t.xa.c2l(t.xerrneg),\"hover\").text:t.xLabel+=\" \\xb1 \"+h,\"x\"===e&&(t.distance+=1)}if(!(isNaN(t.yerr)||\"log\"===t.ya.type&&t.yerr<=0)){var f=x.tickText(t.ya,t.ya.c2l(t.yerr),\"hover\").text;void 0!==t.yerrneg?t.yLabel+=\" +\"+f+\" / -\"+x.tickText(t.ya,t.ya.c2l(t.yerrneg),\"hover\").text:t.yLabel+=\" \\xb1 \"+f,\"y\"===e&&(t.distance+=1)}var p=t.hoverinfo||t.trace.hoverinfo;return\"all\"!==p&&(p=p.split(\"+\"),-1===p.indexOf(\"x\")&&(t.xLabel=void 0),-1===p.indexOf(\"y\")&&(t.yLabel=void 0),-1===p.indexOf(\"z\")&&(t.zLabel=void 0),-1===p.indexOf(\"text\")&&(t.text=void 0),-1===p.indexOf(\"name\")&&(t.name=void 0)),t}function l(t,e){var r=e.hovermode,n=e.container,i=t[0],a=i.xa,o=i.ya,s=a.showspikes,l=o.showspikes;if(n.selectAll(\".spikeline\").remove(),\"closest\"===r&&(s||l)){var u=e.fullLayout,c=a._offset+(i.x0+i.x1)/2,h=o._offset+(i.y0+i.y1)/2,d=y.combine(u.plot_bgcolor,u.paper_bgcolor),p=f.readability(i.color,d)<1.5?y.contrast(d):i.color;if(l){var m=o.spikemode,v=o.spikethickness,b=o.spikecolor||p,x=o._boundingBox,_=(x.left+x.right)/2<c?x.right:x.left;if(-1!==m.indexOf(\"toaxis\")||-1!==m.indexOf(\"across\")){var w=_,M=c;-1!==m.indexOf(\"across\")&&(w=o._counterSpan[0],M=o._counterSpan[1]),n.append(\"line\").attr({x1:w,x2:M,y1:h,y2:h,\"stroke-width\":v+2,stroke:d}).classed(\"spikeline\",!0).classed(\"crisp\",!0),n.append(\"line\").attr({x1:w,x2:M,y1:h,y2:h,\"stroke-width\":v,stroke:b,\"stroke-dasharray\":g.dashStyle(o.spikedash,v)}).classed(\"spikeline\",!0).classed(\"crisp\",!0)}-1!==m.indexOf(\"marker\")&&n.append(\"circle\").attr({cx:_+(\"right\"!==o.side?v:-v),cy:h,r:v,fill:b}).classed(\"spikeline\",!0)}if(s){var k=a.spikemode,A=a.spikethickness,T=a.spikecolor||p,S=a._boundingBox,E=(S.top+S.bottom)/2<h?S.bottom:S.top;if(-1!==k.indexOf(\"toaxis\")||-1!==k.indexOf(\"across\")){var L=E,C=h;-1!==k.indexOf(\"across\")&&(L=a._counterSpan[0],C=a._counterSpan[1]),n.append(\"line\").attr({x1:c,x2:c,y1:L,y2:C,\"stroke-width\":A+2,stroke:d}).classed(\"spikeline\",!0).classed(\"crisp\",!0),n.append(\"line\").attr({x1:c,x2:c,y1:L,y2:C,\"stroke-width\":A,stroke:T,\"stroke-dasharray\":g.dashStyle(a.spikedash,A)}).classed(\"spikeline\",!0).classed(\"crisp\",!0)}-1!==k.indexOf(\"marker\")&&n.append(\"circle\").attr({cx:c,cy:E-(\"top\"!==a.side?A:-A),r:A,fill:T}).classed(\"spikeline\",!0)}}}function u(t,e,r){if(!r||r.length!==t._hoverdata.length)return!0;for(var n=r.length-1;n>=0;n--){var i=r[n],a=t._hoverdata[n];if(i.curveNumber!==a.curveNumber||String(i.pointNumber)!==String(a.pointNumber))return!0}return!1}var c=t(\"d3\"),h=t(\"fast-isnumeric\"),f=t(\"tinycolor2\"),d=t(\"../../lib\"),p=t(\"../../lib/events\"),m=t(\"../../lib/svg_text_utils\"),v=t(\"../../lib/override_cursor\"),g=t(\"../drawing\"),y=t(\"../color\"),b=t(\"../dragelement\"),x=t(\"../../plots/cartesian/axes\"),_=t(\"../../registry\"),w=t(\"./helpers\"),M=t(\"./constants\"),k=M.YANGLE,A=Math.PI*k/180,T=1/Math.sin(A),S=Math.cos(A),E=Math.sin(A),L=M.HOVERARROWSIZE,C=M.HOVERTEXTPAD;r.hover=function(t,e,r,i){t=d.getGraphDiv(t),d.throttle(t._fullLayout._uid+M.HOVERID,M.HOVERMINTIME,function(){n(t,e,r,i)})},r.loneHover=function(t,e){var r={color:t.color||y.defaultLine,x0:t.x0||t.x||0,x1:t.x1||t.x||0,y0:t.y0||t.y||0,y1:t.y1||t.y||0,xLabel:t.xLabel,yLabel:t.yLabel,zLabel:t.zLabel,text:t.text,name:t.name,idealAlign:t.idealAlign,borderColor:t.borderColor,fontFamily:t.fontFamily,fontSize:t.fontSize,fontColor:t.fontColor,trace:{index:0,hoverinfo:\"\"},xa:{_offset:0},ya:{_offset:0},index:0},n=c.select(e.container),a=e.outerContainer?c.select(e.outerContainer):n,s={hovermode:\"closest\",rotateLabels:!1,bgColor:e.bgColor||y.background,container:n,outerContainer:a},l=i([r],s,e.gd);return o(l,s.rotateLabels),l.node()}},{\"../../lib\":728,\"../../lib/events\":716,\"../../lib/override_cursor\":738,\"../../lib/svg_text_utils\":750,\"../../plots/cartesian/axes\":772,\"../../registry\":846,\"../color\":604,\"../dragelement\":625,\"../drawing\":628,\"./constants\":640,\"./helpers\":642,d3:122,\"fast-isnumeric\":131,tinycolor2:534}],644:[function(t,e,r){\"use strict\";var n=t(\"../../lib\");e.exports=function(t,e,r,i){i=i||{},r(\"hoverlabel.bgcolor\",i.bgcolor),r(\"hoverlabel.bordercolor\",i.bordercolor),r(\"hoverlabel.namelength\",i.namelength),n.coerceFont(r,\"hoverlabel.font\",i.font)}},{\"../../lib\":728}],645:[function(t,e,r){\"use strict\";function n(t){var e=s.isD3Selection(t)?t:o.select(t);e.selectAll(\"g.hovertext\").remove(),e.selectAll(\".spikeline\").remove()}function i(t,e,r){return s.castOption(t,e,\"hoverlabel.\"+r)}function a(t,e,r){function n(r){return s.coerceHoverinfo({hoverinfo:r},{_module:t._module},e)}return s.castOption(t,r,\"hoverinfo\",n)}var o=t(\"d3\"),s=t(\"../../lib\"),l=t(\"../dragelement\"),u=t(\"./helpers\"),c=t(\"./layout_attributes\");e.exports={moduleType:\"component\",name:\"fx\",constants:t(\"./constants\"),schema:{layout:c},attributes:t(\"./attributes\"),layoutAttributes:c,supplyLayoutGlobalDefaults:t(\"./layout_global_defaults\"),supplyDefaults:t(\"./defaults\"),supplyLayoutDefaults:t(\"./layout_defaults\"),calc:t(\"./calc\"),getDistanceFunction:u.getDistanceFunction,getClosest:u.getClosest,inbox:u.inbox,appendArrayPointValue:u.appendArrayPointValue,castHoverOption:i,castHoverinfo:a,hover:t(\"./hover\").hover,unhover:l.unhover,loneHover:t(\"./hover\").loneHover,loneUnhover:n,click:t(\"./click\")}},{\"../../lib\":728,\"../dragelement\":625,\"./attributes\":637,\"./calc\":638,\"./click\":639,\"./constants\":640,\"./defaults\":641,\"./helpers\":642,\"./hover\":643,\"./layout_attributes\":646,\"./layout_defaults\":647,\"./layout_global_defaults\":648,d3:122}],646:[function(t,e,r){\"use strict\";var n=t(\"./constants\"),i=t(\"../../plots/font_attributes\")({editType:\"none\"});i.family.dflt=n.HOVERFONT,i.size.dflt=n.HOVERFONTSIZE,e.exports={dragmode:{valType:\"enumerated\",values:[\"zoom\",\"pan\",\"select\",\"lasso\",\"orbit\",\"turntable\"],dflt:\"zoom\",editType:\"modebar\"},hovermode:{valType:\"enumerated\",values:[\"x\",\"y\",\"closest\",!1],editType:\"modebar\"},hoverlabel:{bgcolor:{valType:\"color\",editType:\"none\"},bordercolor:{valType:\"color\",editType:\"none\"},font:i,namelength:{valType:\"integer\",min:-1,dflt:15,editType:\"none\"},editType:\"none\"}}},{\"../../plots/font_attributes\":796,\"./constants\":640}],647:[function(t,e,r){\"use strict\";function n(t){for(var e=!0,r=0;r<t.length;r++){if(\"h\"!==t[r].orientation){e=!1;break}}return e}var i=t(\"../../lib\"),a=t(\"./layout_attributes\");e.exports=function(t,e,r){function o(r,n){return i.coerce(t,e,a,r,n)}o(\"dragmode\");var s;e._has(\"cartesian\")?(e._isHoriz=n(r),s=e._isHoriz?\"y\":\"x\"):s=\"closest\",o(\"hovermode\",s);var l=e._has(\"mapbox\"),u=e._has(\"geo\"),c=e._basePlotModules.length;\"zoom\"===e.dragmode&&((l||u)&&1===c||l&&u&&2===c)&&(e.dragmode=\"pan\")}},{\"../../lib\":728,\"./layout_attributes\":646}],648:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"./hoverlabel_defaults\"),a=t(\"./layout_attributes\");e.exports=function(t,e){function r(r,i){return n.coerce(t,e,a,r,i)}i(t,e,r)}},{\"../../lib\":728,\"./hoverlabel_defaults\":644,\"./layout_attributes\":646}],649:[function(t,e,r){\"use strict\";var n=t(\"../../plots/cartesian/constants\");e.exports={_isLinkedToArray:\"image\",visible:{valType:\"boolean\",dflt:!0,editType:\"arraydraw\"},source:{valType:\"string\",editType:\"arraydraw\"},layer:{valType:\"enumerated\",values:[\"below\",\"above\"],dflt:\"above\",editType:\"arraydraw\"},sizex:{valType:\"number\",dflt:0,editType:\"arraydraw\"},sizey:{valType:\"number\",dflt:0,editType:\"arraydraw\"},sizing:{valType:\"enumerated\",values:[\"fill\",\"contain\",\"stretch\"],dflt:\"contain\",editType:\"arraydraw\"},opacity:{valType:\"number\",min:0,max:1,dflt:1,editType:\"arraydraw\"},x:{valType:\"any\",dflt:0,editType:\"arraydraw\"},y:{valType:\"any\",dflt:0,editType:\"arraydraw\"},xanchor:{valType:\"enumerated\",values:[\"left\",\"center\",\"right\"],dflt:\"left\",editType:\"arraydraw\"},yanchor:{valType:\"enumerated\",values:[\"top\",\"middle\",\"bottom\"],dflt:\"top\",editType:\"arraydraw\"},xref:{valType:\"enumerated\",values:[\"paper\",n.idRegex.x.toString()],dflt:\"paper\",editType:\"arraydraw\"},yref:{valType:\"enumerated\",values:[\"paper\",n.idRegex.y.toString()],dflt:\"paper\",editType:\"arraydraw\"},editType:\"arraydraw\"}},{\"../../plots/cartesian/constants\":777}],650:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../../lib/to_log_range\");e.exports=function(t,e,r,a){e=e||{};var o=\"log\"===r&&\"linear\"===e.type,s=\"linear\"===r&&\"log\"===e.type;if(o||s)for(var l,u,c=t._fullLayout.images,h=e._id.charAt(0),f=0;f<c.length;f++)if(l=c[f],u=\"images[\"+f+\"].\",l[h+\"ref\"]===e._id){var d=l[h],p=l[\"size\"+h],m=null,v=null;if(o){m=i(d,e.range);var g=p/Math.pow(10,m)/2;v=2*Math.log(g+Math.sqrt(1+g*g))/Math.LN10}else m=Math.pow(10,d),v=m*(Math.pow(10,p/2)-Math.pow(10,-p/2));n(m)?n(v)||(v=null):(m=null,v=null),a(u+h,m),a(u+\"size\"+h,v)}}},{\"../../lib/to_log_range\":752,\"fast-isnumeric\":131}],651:[function(t,e,r){\"use strict\";function n(t,e,r){function n(r,n){return i.coerce(t,e,s,r,n)}if(!n(\"visible\",!!n(\"source\")))return e;n(\"layer\"),n(\"xanchor\"),n(\"yanchor\"),n(\"sizex\"),n(\"sizey\"),n(\"sizing\"),n(\"opacity\");for(var o={_fullLayout:r},l=[\"x\",\"y\"],u=0;u<2;u++){var c=l[u],h=a.coerceRef(t,e,o,c,\"paper\");a.coercePosition(e,o,n,h,c,0)}return e}var i=t(\"../../lib\"),a=t(\"../../plots/cartesian/axes\"),o=t(\"../../plots/array_container_defaults\"),s=t(\"./attributes\");e.exports=function(t,e){o(t,e,{name:\"images\",handleItemDefaults:n})}},{\"../../lib\":728,\"../../plots/array_container_defaults\":769,\"../../plots/cartesian/axes\":772,\"./attributes\":649}],652:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../drawing\"),a=t(\"../../plots/cartesian/axes\"),o=t(\"../../constants/xmlns_namespaces\");e.exports=function(t){function e(e){var r=n.select(this);if(!this.img||this.img.src!==e.source){r.attr(\"xmlns\",o.svg);var i=new Promise(function(t){function n(){r.remove(),t()}var i=new Image;this.img=i,i.setAttribute(\"crossOrigin\",\"anonymous\"),i.onerror=n,i.onload=function(){var e=document.createElement(\"canvas\");e.width=this.width,e.height=this.height,e.getContext(\"2d\").drawImage(this,0,0);var n=e.toDataURL(\"image/png\");r.attr(\"xlink:href\",n),t()},r.on(\"error\",n),i.src=e.source}.bind(this));t._promises.push(i)}}function r(e){var r=n.select(this),o=a.getFromId(t,e.xref),s=a.getFromId(t,e.yref),l=u._size,c=o?Math.abs(o.l2p(e.sizex)-o.l2p(0)):e.sizex*l.w,h=s?Math.abs(s.l2p(e.sizey)-s.l2p(0)):e.sizey*l.h,f=c*m.x[e.xanchor].offset,d=h*m.y[e.yanchor].offset,p=m.x[e.xanchor].sizing+m.y[e.yanchor].sizing,v=(o?o.r2p(e.x)+o._offset:e.x*l.w+l.l)+f,g=(s?s.r2p(e.y)+s._offset:l.h-e.y*l.h+l.t)+d;switch(e.sizing){case\"fill\":p+=\" slice\";break;case\"stretch\":p=\"none\"}r.attr({x:v,y:g,width:c,height:h,preserveAspectRatio:p,opacity:e.opacity});var y=o?o._id:\"\",b=s?s._id:\"\",x=y+b;r.call(i.setClipUrl,x?\"clip\"+u._uid+x:null)}var s,l,u=t._fullLayout,c=[],h={},f=[];for(l=0;l<u.images.length;l++){var d=u.images[l];if(d.visible)if(\"below\"===d.layer&&\"paper\"!==d.xref&&\"paper\"!==d.yref){s=d.xref+d.yref;var p=u._plots[s];if(!p){f.push(d);continue}p.mainplot&&(s=p.mainplot.id),h[s]||(h[s]=[]),h[s].push(d)}else\"above\"===d.layer?c.push(d):f.push(d)}var m={x:{left:{sizing:\"xMin\",offset:0},center:{sizing:\"xMid\",offset:-.5},right:{sizing:\"xMax\",offset:-1}},y:{top:{sizing:\"YMin\",offset:0},middle:{sizing:\"YMid\",offset:-.5},bottom:{sizing:\"YMax\",offset:-1}}},v=u._imageLowerLayer.selectAll(\"image\").data(f),g=u._imageUpperLayer.selectAll(\"image\").data(c);v.enter().append(\"image\"),g.enter().append(\"image\"),v.exit().remove(),g.exit().remove(),v.each(function(t){e.bind(this)(t),r.bind(this)(t)}),g.each(function(t){e.bind(this)(t),r.bind(this)(t)});var y=Object.keys(u._plots);for(l=0;l<y.length;l++){s=y[l];var b=u._plots[s];if(b.imagelayer){var x=b.imagelayer.selectAll(\"image\").data(h[s]||[]);x.enter().append(\"image\"),x.exit().remove(),x.each(function(t){e.bind(this)(t),r.bind(this)(t)})}}}},{\"../../constants/xmlns_namespaces\":709,\"../../plots/cartesian/axes\":772,\"../drawing\":628,d3:122}],653:[function(t,e,r){\"use strict\";e.exports={moduleType:\"component\",name:\"images\",layoutAttributes:t(\"./attributes\"),supplyLayoutDefaults:t(\"./defaults\"),draw:t(\"./draw\"),convertCoords:t(\"./convert_coords\")}},{\"./attributes\":649,\"./convert_coords\":650,\"./defaults\":651,\"./draw\":652}],654:[function(t,e,r){\"use strict\";r.isRightAnchor=function(t){return\"right\"===t.xanchor||\"auto\"===t.xanchor&&t.x>=2/3},r.isCenterAnchor=function(t){return\"center\"===t.xanchor||\"auto\"===t.xanchor&&t.x>1/3&&t.x<2/3},r.isBottomAnchor=function(t){return\"bottom\"===t.yanchor||\"auto\"===t.yanchor&&t.y<=1/3},r.isMiddleAnchor=function(t){return\"middle\"===t.yanchor||\"auto\"===t.yanchor&&t.y>1/3&&t.y<2/3}},{}],655:[function(t,e,r){\"use strict\";var n=t(\"../../plots/font_attributes\"),i=t(\"../color/attributes\");e.exports={bgcolor:{valType:\"color\",editType:\"legend\"},bordercolor:{valType:\"color\",dflt:i.defaultLine,editType:\"legend\"},borderwidth:{valType:\"number\",min:0,dflt:0,editType:\"legend\"},font:n({editType:\"legend\"}),orientation:{valType:\"enumerated\",values:[\"v\",\"h\"],dflt:\"v\",editType:\"legend\"},traceorder:{valType:\"flaglist\",flags:[\"reversed\",\"grouped\"],extras:[\"normal\"],editType:\"legend\"},tracegroupgap:{valType:\"number\",min:0,dflt:10,editType:\"legend\"},x:{valType:\"number\",min:-2,max:3,dflt:1.02,editType:\"legend\"},xanchor:{valType:\"enumerated\",values:[\"auto\",\"left\",\"center\",\"right\"],dflt:\"left\",editType:\"legend\"},y:{valType:\"number\",min:-2,max:3,dflt:1,editType:\"legend\"},yanchor:{valType:\"enumerated\",values:[\"auto\",\"top\",\"middle\",\"bottom\"],dflt:\"auto\",editType:\"legend\"},editType:\"legend\"}},{\"../../plots/font_attributes\":796,\"../color/attributes\":603}],656:[function(t,e,r){\"use strict\";e.exports={scrollBarWidth:4,scrollBarHeight:20,scrollBarColor:\"#808BA4\",scrollBarMargin:4}},{}],657:[function(t,e,r){\"use strict\";var n=t(\"../../registry\"),i=t(\"../../lib\"),a=t(\"./attributes\"),o=t(\"../../plots/layout_attributes\"),s=t(\"./helpers\");e.exports=function(t,e,r){function l(t,e){return i.coerce(d,p,a,t,e)}for(var u,c,h,f,d=t.legend||{},p=e.legend={},m=0,v=\"normal\",g=0;g<r.length;g++){var y=r[g];s.legendGetsTrace(y)&&(m++,n.traceIs(y,\"pie\")&&m++),(n.traceIs(y,\"bar\")&&\"stack\"===e.barmode||-1!==[\"tonextx\",\"tonexty\"].indexOf(y.fill))&&(v=s.isGrouped({traceorder:v})?\"grouped+reversed\":\"reversed\"),void 0!==y.legendgroup&&\"\"!==y.legendgroup&&(v=s.isReversed({traceorder:v})?\"reversed+grouped\":\"grouped\")}if(!1!==i.coerce(t,e,o,\"showlegend\",m>1)){if(l(\"bgcolor\",e.paper_bgcolor),l(\"bordercolor\"),l(\"borderwidth\"),i.coerceFont(l,\"font\",e.font),l(\"orientation\"),\"h\"===p.orientation){var b=t.xaxis;b&&b.rangeslider&&b.rangeslider.visible?(u=0,h=\"left\",c=1.1,f=\"bottom\"):(u=0,h=\"left\",c=-.1,f=\"top\")}l(\"traceorder\",v),s.isGrouped(e.legend)&&l(\"tracegroupgap\"),l(\"x\",u),l(\"xanchor\",h),l(\"y\",c),l(\"yanchor\",f),i.noneOrAll(d,p,[\"x\",\"y\"])}}},{\"../../lib\":728,\"../../plots/layout_attributes\":822,\"../../registry\":846,\"./attributes\":655,\"./helpers\":661}],658:[function(t,e,r){\"use strict\";function n(t,e){function r(r){g.convertToTspans(r,e,function(){a(t,e)})}var n=t.data()[0][0],i=e._fullLayout,o=n.trace,s=d.traceIs(o,\"pie\"),l=o.index,u=s?n.label:o.name,f=t.selectAll(\"text.legendtext\").data([0]);f.enter().append(\"text\").classed(\"legendtext\",!0),f.attr(\"text-anchor\",\"start\").classed(\"user-select-none\",!0).call(m.font,i.legend.font).text(u),e._context.edits.legendText&&!s?f.call(g.makeEditable,{gd:e}).call(r).on(\"edit\",function(t){this.text(t).call(r);var i=t;this.text()||(t=\" \");var a,o,s=n.trace._fullInput||{},u={};if(-1!==[\"ohlc\",\"candlestick\"].indexOf(s.type))a=n.trace.transforms,o=a[a.length-1].direction,u[o+\".name\"]=t;else if(d.hasTransform(s,\"groupby\")){var f=d.getTransformIndices(s,\"groupby\"),p=f[f.length-1],m=h.keyedContainer(s,\"transforms[\"+p+\"].styles\",\"target\",\"value.name\");\"\"===i?m.remove(n.trace._group):m.set(n.trace._group,t),u=m.constructUpdate()}else u.name=t;return c.restyle(e,u,l)}):f.call(r)}function i(t,e){var r,n=1,i=t.selectAll(\"rect\").data([0]);i.enter().append(\"rect\").classed(\"legendtoggle\",!0).style(\"cursor\",\"pointer\").attr(\"pointer-events\",\"all\").call(v.fill,\"rgba(0,0,0,0)\"),i.on(\"mousedown\",function(){r=(new Date).getTime(),r-e._legendMouseDownTime<T?n+=1:(n=1,e._legendMouseDownTime=r)}),i.on(\"mouseup\",function(){if(!e._dragged&&!e._editing){var r=e._fullLayout.legend;(new Date).getTime()-e._legendMouseDownTime>T&&(n=Math.max(n-1,1)),1===n?r._clickTimeout=setTimeout(function(){y(t,e,n)},T):2===n&&(r._clickTimeout&&clearTimeout(r._clickTimeout),e._legendMouseDownTime=0,y(t,e,n))}})}function a(t,e){var r=t.data()[0][0];if(!r.trace.showlegend)return void t.remove();var n,i,a=t.select(\"g[class*=math-group]\"),o=a.node(),s=e._fullLayout.legend,l=s.font.size*_;if(o){var u=m.bBox(o);n=u.height,i=u.width,m.setTranslate(a,0,n/4)}else{var c=t.select(\".legendtext\"),h=g.lineCount(c),f=c.node();n=l*h,i=f?m.bBox(f).width:0;var d=l*(.3+(1-h)/2);g.positionText(c,40,d)}n=Math.max(n,16)+3,r.height=n,r.width=i}function o(t,e,r){var n=t._fullLayout,i=n.legend,a=i.borderwidth,o=k.isGrouped(i),s=0;if(i.width=0,i.height=0,k.isVertical(i))o&&e.each(function(t,e){m.setTranslate(this,0,e*i.tracegroupgap)}),r.each(function(t){var e=t[0],r=e.height,n=e.width;m.setTranslate(this,a,5+a+i.height+r/2),i.height+=r,i.width=Math.max(i.width,n)}),i.width+=45+2*a,i.height+=10+2*a,o&&(i.height+=(i._lgroupsLength-1)*i.tracegroupgap),s=40;else if(o){for(var l=[i.width],c=e.data(),h=0,f=c.length;h<f;h++){var d=c[h].map(function(t){return t[0].width}),p=40+Math.max.apply(null,d);i.width+=i.tracegroupgap+p,l.push(i.width)}e.each(function(t,e){m.setTranslate(this,l[e],0)}),e.each(function(){var t=u.select(this),e=t.selectAll(\"g.traces\"),r=0;e.each(function(t){var e=t[0],n=e.height;m.setTranslate(this,0,5+a+r+n/2),r+=n}),i.height=Math.max(i.height,r)}),i.height+=10+2*a,i.width+=2*a}else{var v=0,g=0,y=0,b=0;r.each(function(t){y=Math.max(40+t[0].width,y)}),r.each(function(t){var e=t[0],r=y,o=i.tracegroupgap||5;a+b+o+r>n.width-(n.margin.r+n.margin.l)&&(b=0,v+=g,i.height=i.height+g,g=0),m.setTranslate(this,a+b,5+a+e.height/2+v),i.width+=o+r,i.height=Math.max(i.height,e.height),b+=o+r,g=Math.max(e.height,g)}),i.width+=2*a,i.height+=10+2*a}i.width=Math.ceil(i.width),i.height=Math.ceil(i.height),r.each(function(e){var r=e[0];u.select(this).select(\".legendtoggle\").call(m.setRect,0,-r.height/2,(t._context.edits.legendText?0:i.width)+s,r.height)})}function s(t){var e=t._fullLayout,r=e.legend,n=\"left\";A.isRightAnchor(r)?n=\"right\":A.isCenterAnchor(r)&&(n=\"center\");var i=\"top\";A.isBottomAnchor(r)?i=\"bottom\":A.isMiddleAnchor(r)&&(i=\"middle\"),f.autoMargin(t,\"legend\",{x:r.x,y:r.y,l:r.width*({right:1,center:.5}[n]||0),r:r.width*({left:1,center:.5}[n]||0),b:r.height*({top:1,middle:.5}[i]||0),t:r.height*({bottom:1,middle:.5}[i]||0)})}function l(t){var e=t._fullLayout,r=e.legend,n=\"left\";A.isRightAnchor(r)?n=\"right\":A.isCenterAnchor(r)&&(n=\"center\"),f.autoMargin(t,\"legend\",{x:r.x,y:.5,l:r.width*({right:1,center:.5}[n]||0),r:r.width*({left:1,center:.5}[n]||0),b:0,t:0})}var u=t(\"d3\"),c=t(\"../../plotly\"),h=t(\"../../lib\"),f=t(\"../../plots/plots\"),d=t(\"../../registry\"),p=t(\"../dragelement\"),m=t(\"../drawing\"),v=t(\"../color\"),g=t(\"../../lib/svg_text_utils\"),y=t(\"./handle_click\"),b=t(\"./constants\"),x=t(\"../../constants/interactions\"),_=t(\"../../constants/alignment\").LINE_SPACING,w=t(\"./get_legend_data\"),M=t(\"./style\"),k=t(\"./helpers\"),A=t(\"./anchor_utils\"),T=x.DBLCLICKDELAY;e.exports=function(t){function e(t,e){L.attr(\"data-scroll\",e).call(m.setTranslate,0,e),C.call(m.setRect,N,t,b.scrollBarWidth,b.scrollBarHeight),S.select(\"rect\").attr({y:g.borderwidth-e})}var r=t._fullLayout,a=\"legend\"+r._uid;if(r._infolayer&&t.calcdata){t._legendMouseDownTime||(t._legendMouseDownTime=0);var g=r.legend,x=r.showlegend&&w(t.calcdata,g),_=r.hiddenlabels||[];if(!r.showlegend||!x.length)return r._infolayer.selectAll(\".legend\").remove(),r._topdefs.select(\"#\"+a).remove(),void f.autoMargin(t,\"legend\");var k=r._infolayer.selectAll(\"g.legend\").data([0]);k.enter().append(\"g\").attr({class:\"legend\",\"pointer-events\":\"all\"});var S=r._topdefs.selectAll(\"#\"+a).data([0]);S.enter().append(\"clipPath\").attr(\"id\",a).append(\"rect\");var E=k.selectAll(\"rect.bg\").data([0]);E.enter().append(\"rect\").attr({class:\"bg\",\"shape-rendering\":\"crispEdges\"}),E.call(v.stroke,g.bordercolor),E.call(v.fill,g.bgcolor),E.style(\"stroke-width\",g.borderwidth+\"px\");var L=k.selectAll(\"g.scrollbox\").data([0]);L.enter().append(\"g\").attr(\"class\",\"scrollbox\");var C=k.selectAll(\"rect.scrollbar\").data([0]);C.enter().append(\"rect\").attr({class:\"scrollbar\",rx:20,ry:2,width:0,height:0}).call(v.fill,\"#808BA4\");var I=L.selectAll(\"g.groups\").data(x);I.enter().append(\"g\").attr(\"class\",\"groups\"),I.exit().remove();var z=I.selectAll(\"g.traces\").data(h.identity)\n", ";z.enter().append(\"g\").attr(\"class\",\"traces\"),z.exit().remove(),z.call(M,t).style(\"opacity\",function(t){var e=t[0].trace;return d.traceIs(e,\"pie\")?-1!==_.indexOf(t[0].label)?.5:1:\"legendonly\"===e.visible?.5:1}).each(function(){u.select(this).call(n,t).call(i,t)});var D=0!==k.enter().size();D&&(o(t,I,z),s(t));var P=r.width,O=r.height;o(t,I,z),g.height>O?l(t):s(t);var R=r._size,F=R.l+R.w*g.x,j=R.t+R.h*(1-g.y);A.isRightAnchor(g)?F-=g.width:A.isCenterAnchor(g)&&(F-=g.width/2),A.isBottomAnchor(g)?j-=g.height:A.isMiddleAnchor(g)&&(j-=g.height/2);var N=g.width,B=R.w;N>B?(F=R.l,N=B):(F+N>P&&(F=P-N),F<0&&(F=0),N=Math.min(P-F,g.width));var U=g.height,V=R.h;U>V?(j=R.t,U=V):(j+U>O&&(j=O-U),j<0&&(j=0),U=Math.min(O-j,g.height)),m.setTranslate(k,F,j);var H,q,G=U-b.scrollBarHeight-2*b.scrollBarMargin,Y=g.height-U;if(g.height<=U||t._context.staticPlot)E.attr({width:N-g.borderwidth,height:U-g.borderwidth,x:g.borderwidth/2,y:g.borderwidth/2}),m.setTranslate(L,0,0),S.select(\"rect\").attr({width:N-2*g.borderwidth,height:U-2*g.borderwidth,x:g.borderwidth,y:g.borderwidth}),L.call(m.setClipUrl,a);else{H=b.scrollBarMargin,q=L.attr(\"data-scroll\")||0,E.attr({width:N-2*g.borderwidth+b.scrollBarWidth+b.scrollBarMargin,height:U-g.borderwidth,x:g.borderwidth/2,y:g.borderwidth/2}),S.select(\"rect\").attr({width:N-2*g.borderwidth+b.scrollBarWidth+b.scrollBarMargin,height:U-2*g.borderwidth,x:g.borderwidth,y:g.borderwidth-q}),L.call(m.setClipUrl,a),D&&e(H,q),k.on(\"wheel\",null),k.on(\"wheel\",function(){q=h.constrain(L.attr(\"data-scroll\")-u.event.deltaY/G*Y,-Y,0),H=b.scrollBarMargin-q/Y*G,e(H,q),0!==q&&q!==-Y&&u.event.preventDefault()}),C.on(\".drag\",null),L.on(\".drag\",null);var W=u.behavior.drag().on(\"drag\",function(){H=h.constrain(u.event.y-b.scrollBarHeight/2,b.scrollBarMargin,b.scrollBarMargin+G),q=-(H-b.scrollBarMargin)/G*Y,e(H,q)});C.call(W),L.call(W)}if(t._context.edits.legendPosition){var X,Z,J,K;k.classed(\"cursor-move\",!0),p.init({element:k.node(),gd:t,prepFn:function(){var t=m.getTranslate(k);J=t.x,K=t.y},moveFn:function(t,e){var r=J+t,n=K+e;m.setTranslate(k,r,n),X=p.align(r,0,R.l,R.l+R.w,g.xanchor),Z=p.align(n,0,R.t+R.h,R.t,g.yanchor)},doneFn:function(e,n,i){if(e&&void 0!==X&&void 0!==Z)c.relayout(t,{\"legend.x\":X,\"legend.y\":Z});else{var a=r._infolayer.selectAll(\"g.traces\").filter(function(){var t=this.getBoundingClientRect();return i.clientX>=t.left&&i.clientX<=t.right&&i.clientY>=t.top&&i.clientY<=t.bottom});a.size()>0&&(1===n?k._clickTimeout=setTimeout(function(){y(a,t,n)},T):2===n&&(k._clickTimeout&&clearTimeout(k._clickTimeout),y(a,t,n)))}}})}}}},{\"../../constants/alignment\":701,\"../../constants/interactions\":706,\"../../lib\":728,\"../../lib/svg_text_utils\":750,\"../../plotly\":767,\"../../plots/plots\":831,\"../../registry\":846,\"../color\":604,\"../dragelement\":625,\"../drawing\":628,\"./anchor_utils\":654,\"./constants\":656,\"./get_legend_data\":659,\"./handle_click\":660,\"./helpers\":661,\"./style\":663,d3:122}],659:[function(t,e,r){\"use strict\";var n=t(\"../../registry\"),i=t(\"./helpers\");e.exports=function(t,e){function r(t,r){if(\"\"!==t&&i.isGrouped(e))-1===l.indexOf(t)?(l.push(t),u=!0,s[t]=[[r]]):s[t].push([r]);else{var n=\"~~i\"+h;l.push(n),s[n]=[[r]],h++}}var a,o,s={},l=[],u=!1,c={},h=0;for(a=0;a<t.length;a++){var f=t[a],d=f[0],p=d.trace,m=p.legendgroup;if(i.legendGetsTrace(p)&&p.showlegend)if(n.traceIs(p,\"pie\"))for(c[m]||(c[m]={}),o=0;o<f.length;o++){var v=f[o].label;c[m][v]||(r(m,{label:v,color:f[o].color,i:f[o].i,trace:p}),c[m][v]=!0)}else r(m,d)}if(!l.length)return[];var g,y,b=l.length;if(u&&i.isGrouped(e))for(y=new Array(b),a=0;a<b;a++)g=s[l[a]],y[a]=i.isReversed(e)?g.reverse():g;else{for(y=[new Array(b)],a=0;a<b;a++)g=s[l[a]][0],y[0][i.isReversed(e)?b-a-1:a]=g;b=1}return e._lgroupsLength=b,y}},{\"../../registry\":846,\"./helpers\":661}],660:[function(t,e,r){\"use strict\";var n=t(\"../../plotly\"),i=t(\"../../lib\"),a=t(\"../../registry\"),o=!0;e.exports=function(t,e,r){function s(t,e,r){var n=_.indexOf(t),i=x[e];return i||(i=x[e]=[]),-1===_.indexOf(t)&&(_.push(t),n=_.length-1),i[n]=r,n}function l(t,e){var r=t._fullInput;if(a.hasTransform(r,\"groupby\")){var n=w[r.index];if(!n){var o=a.getTransformIndices(r,\"groupby\"),l=o[o.length-1];n=i.keyedContainer(r,\"transforms[\"+l+\"].styles\",\"target\",\"value.visible\"),w[r.index]=n}var u=n.get(t._group);void 0===u&&(u=!0),!1!==u&&n.set(t._group,e),M[r.index]=s(r.index,\"visible\",!1!==r.visible)}else{var c=!1!==r.visible&&e;s(r.index,\"visible\",c)}}if(!e._dragged&&!e._editing){var u,c,h,f,d,p,m=e._fullLayout.hiddenlabels?e._fullLayout.hiddenlabels.slice():[],v=t.data()[0][0],g=e._fullData,y=v.trace,b=y.legendgroup,x={},_=[],w=[],M=[];if(1===r&&o&&e.data&&e._context.showTips?(i.notifier(\"Double click on legend to isolate individual trace\",\"long\"),o=!1):o=!1,a.traceIs(y,\"pie\")){var k=v.label,A=m.indexOf(k);1===r?-1===A?m.push(k):m.splice(A,1):2===r&&(m=[],e.calcdata[0].forEach(function(t){k!==t.label&&m.push(t.label)}),e._fullLayout.hiddenlabels&&e._fullLayout.hiddenlabels.length===m.length&&-1===A&&(m=[])),n.relayout(e,\"hiddenlabels\",m)}else{var T,S=b&&b.length,E=[];if(S)for(u=0;u<g.length;u++)T=g[u],T.visible&&T.legendgroup===b&&E.push(u);if(1===r){var L;switch(y.visible){case!0:L=\"legendonly\";break;case!1:L=!1;break;case\"legendonly\":L=!0}if(S)for(u=0;u<g.length;u++)!1!==g[u].visible&&g[u].legendgroup===b&&l(g[u],L);else l(y,L)}else if(2===r){var C,I,z,D=!0;for(u=0;u<g.length;u++)if(!(C=g[u]===y)&&!(I=S&&g[u].legendgroup===b)&&!0===g[u].visible&&!a.traceIs(g[u],\"notLegendIsolatable\")){D=!1;break}for(u=0;u<g.length;u++)if(!1!==g[u].visible&&!a.traceIs(g[u],\"notLegendIsolatable\"))switch(y.visible){case\"legendonly\":l(g[u],!0);break;case!0:z=!!D||\"legendonly\",C=g[u]===y,I=C||S&&g[u].legendgroup===b,l(g[u],!!I||z)}}for(u=0;u<w.length;u++)if(h=w[u]){var P=h.constructUpdate(),O=Object.keys(P);for(c=0;c<O.length;c++)f=O[c],p=x[f]=x[f]||[],p[M[u]]=P[f]}for(d=Object.keys(x),u=0;u<d.length;u++)for(f=d[u],c=0;c<_.length;c++)x[f].hasOwnProperty(c)||(x[f][c]=void 0);n.restyle(e,x,_)}}}},{\"../../lib\":728,\"../../plotly\":767,\"../../registry\":846}],661:[function(t,e,r){\"use strict\";var n=t(\"../../registry\");r.legendGetsTrace=function(t){return t.visible&&n.traceIs(t,\"showLegend\")},r.isGrouped=function(t){return-1!==(t.traceorder||\"\").indexOf(\"grouped\")},r.isVertical=function(t){return\"h\"!==t.orientation},r.isReversed=function(t){return-1!==(t.traceorder||\"\").indexOf(\"reversed\")}},{\"../../registry\":846}],662:[function(t,e,r){\"use strict\";e.exports={moduleType:\"component\",name:\"legend\",layoutAttributes:t(\"./attributes\"),supplyLayoutDefaults:t(\"./defaults\"),draw:t(\"./draw\"),style:t(\"./style\")}},{\"./attributes\":655,\"./defaults\":657,\"./draw\":658,\"./style\":663}],663:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../../registry\"),a=t(\"../../lib\"),o=t(\"../drawing\"),s=t(\"../color\"),l=t(\"../../traces/scatter/subtypes\"),u=t(\"../../traces/pie/style_one\");e.exports=function(t,e){function r(t){var e=t[0].trace,r=e.visible&&e.fill&&\"none\"!==e.fill,i=l.hasLines(e);e&&e._module&&\"contourcarpet\"===e._module.name&&(i=e.contours.showlines,r=\"fill\"===e.contours.coloring);var a=n.select(this).select(\".legendfill\").selectAll(\"path\").data(r?[t]:[]);a.enter().append(\"path\").classed(\"js-fill\",!0),a.exit().remove(),a.attr(\"d\",\"M5,0h30v6h-30z\").call(o.fillGroupStyle);var s=n.select(this).select(\".legendlines\").selectAll(\"path\").data(i?[t]:[]);s.enter().append(\"path\").classed(\"js-line\",!0).attr(\"d\",\"M5,0h30\"),s.exit().remove(),s.call(o.lineGroupStyle)}function c(t){function r(t,e,r){var n=a.nestedProperty(h,t).get(),i=Array.isArray(n)&&e?e(n):n;if(r){if(i<r[0])return r[0];if(i>r[1])return r[1]}return i}function i(t){return t[0]}var s,u,c=t[0],h=c.trace,f=l.hasMarkers(h),d=l.hasText(h),p=l.hasLines(h);if(f||d||p){var m={},v={};f&&(m.mc=r(\"marker.color\",i),m.mo=r(\"marker.opacity\",a.mean,[.2,1]),m.ms=r(\"marker.size\",a.mean,[2,16]),m.mlc=r(\"marker.line.color\",i),m.mlw=r(\"marker.line.width\",a.mean,[0,5]),v.marker={sizeref:1,sizemin:1,sizemode:\"diameter\"}),p&&(v.line={width:r(\"line.width\",i,[0,10])}),d&&(m.tx=\"Aa\",m.tp=r(\"textposition\",i),m.ts=10,m.tc=r(\"textfont.color\",i),m.tf=r(\"textfont.family\",i)),s=[a.minExtend(c,m)],u=a.minExtend(h,v)}var g=n.select(this).select(\"g.legendpoints\"),y=g.selectAll(\"path.scatterpts\").data(f?s:[]);y.enter().append(\"path\").classed(\"scatterpts\",!0).attr(\"transform\",\"translate(20,0)\"),y.exit().remove(),y.call(o.pointStyle,u,e),f&&(s[0].mrc=3);var b=g.selectAll(\"g.pointtext\").data(d?s:[]);b.enter().append(\"g\").classed(\"pointtext\",!0).append(\"text\").attr(\"transform\",\"translate(20,0)\"),b.exit().remove(),b.selectAll(\"text\").call(o.textPointStyle,u,e)}function h(t){var e=t[0].trace,r=e.marker||{},a=r.line||{},o=n.select(this).select(\"g.legendpoints\").selectAll(\"path.legendbar\").data(i.traceIs(e,\"bar\")?[t]:[]);o.enter().append(\"path\").classed(\"legendbar\",!0).attr(\"d\",\"M6,6H-6V-6H6Z\").attr(\"transform\",\"translate(20,0)\"),o.exit().remove(),o.each(function(t){var e=n.select(this),i=t[0],o=(i.mlw+1||a.width+1)-1;e.style(\"stroke-width\",o+\"px\").call(s.fill,i.mc||r.color),o&&e.call(s.stroke,i.mlc||a.color)})}function f(t){var e=t[0].trace,r=n.select(this).select(\"g.legendpoints\").selectAll(\"path.legendbox\").data(i.traceIs(e,\"box\")&&e.visible?[t]:[]);r.enter().append(\"path\").classed(\"legendbox\",!0).attr(\"d\",\"M6,6H-6V-6H6Z\").attr(\"transform\",\"translate(20,0)\"),r.exit().remove(),r.each(function(){var t=e.line.width,r=n.select(this);r.style(\"stroke-width\",t+\"px\").call(s.fill,e.fillcolor),t&&r.call(s.stroke,e.line.color)})}function d(t){var e=t[0].trace,r=n.select(this).select(\"g.legendpoints\").selectAll(\"path.legendpie\").data(i.traceIs(e,\"pie\")&&e.visible?[t]:[]);r.enter().append(\"path\").classed(\"legendpie\",!0).attr(\"d\",\"M6,6H-6V-6H6Z\").attr(\"transform\",\"translate(20,0)\"),r.exit().remove(),r.size()&&r.call(u,t[0],e)}t.each(function(t){var e=n.select(this),r=e.selectAll(\"g.layers\").data([0]);r.enter().append(\"g\").classed(\"layers\",!0),r.style(\"opacity\",t[0].trace.opacity),r.selectAll(\"g.legendfill\").data([t]).enter().append(\"g\").classed(\"legendfill\",!0),r.selectAll(\"g.legendlines\").data([t]).enter().append(\"g\").classed(\"legendlines\",!0);var i=r.selectAll(\"g.legendsymbols\").data([t]);i.enter().append(\"g\").classed(\"legendsymbols\",!0),i.selectAll(\"g.legendpoints\").data([t]).enter().append(\"g\").classed(\"legendpoints\",!0)}).each(h).each(f).each(d).each(r).each(c)}},{\"../../lib\":728,\"../../registry\":846,\"../../traces/pie/style_one\":1017,\"../../traces/scatter/subtypes\":1052,\"../color\":604,\"../drawing\":628,d3:122}],664:[function(t,e,r){\"use strict\";function n(t,e){var r,n,i=e.currentTarget,a=i.getAttribute(\"data-attr\"),o=i.getAttribute(\"data-val\")||!0,s=t._fullLayout,l={},u=d.list(t,null,!0),c=\"on\";if(\"zoom\"===a){var f,p=\"in\"===o?.5:2,m=(1+p)/2,v=(1-p)/2;for(n=0;n<u.length;n++)if(r=u[n],!r.fixedrange)if(f=r._name,\"auto\"===o)l[f+\".autorange\"]=!0;else if(\"reset\"===o){if(void 0===r._rangeInitial)l[f+\".autorange\"]=!0;else{var g=r._rangeInitial.slice();l[f+\".range[0]\"]=g[0],l[f+\".range[1]\"]=g[1]}void 0!==r._showSpikeInitial&&(l[f+\".showspikes\"]=r._showSpikeInitial,\"on\"!==c||r._showSpikeInitial||(c=\"off\"))}else{var y=[r.r2l(r.range[0]),r.r2l(r.range[1])],b=[m*y[0]+v*y[1],m*y[1]+v*y[0]];l[f+\".range[0]\"]=r.l2r(b[0]),l[f+\".range[1]\"]=r.l2r(b[1])}s._cartesianSpikesEnabled=c}else{if(\"hovermode\"!==a||\"x\"!==o&&\"y\"!==o){if(\"hovermode\"===a&&\"closest\"===o){for(n=0;n<u.length;n++)r=u[n],\"on\"!==c||r.showspikes||(c=\"off\");s._cartesianSpikesEnabled=c}}else o=s._isHoriz?\"y\":\"x\",i.setAttribute(\"data-val\",o),\"closest\"!==o&&(s._cartesianSpikesEnabled=\"off\");l[a]=o}h.relayout(t,l)}function i(t,e){for(var r=e.currentTarget,n=r.getAttribute(\"data-attr\"),i=r.getAttribute(\"data-val\")||!0,a=t._fullLayout,o=f.getSubplotIds(a,\"gl3d\"),s={},l=n.split(\".\"),u=0;u<o.length;u++)s[o[u]+\".\"+l[1]]=i;h.relayout(t,s)}function a(t,e){for(var r=e.currentTarget,n=r.getAttribute(\"data-attr\"),i=t._fullLayout,a=f.getSubplotIds(i,\"gl3d\"),o={},s=0;s<a.length;s++){var l=a[s],u=l+\".camera\",c=i[l]._scene;\"resetDefault\"===n?o[u]=null:\"resetLastSave\"===n&&(o[u]=p.extendDeep({},c.cameraInitial))}h.relayout(t,o)}function o(t,e){var r=e.currentTarget,n=r._previousVal||!1,i=t.layout,a=t._fullLayout,o=f.getSubplotIds(a,\"gl3d\"),s=[\"xaxis\",\"yaxis\",\"zaxis\"],l=[\"showspikes\",\"spikesides\",\"spikethickness\",\"spikecolor\"],u={},c={},d={};if(n)d=p.extendDeep(i,n),r._previousVal=null;else{d={\"allaxes.showspikes\":!1};for(var m=0;m<o.length;m++){var v=o[m],g=a[v],y=u[v]={};y.hovermode=g.hovermode,d[v+\".hovermode\"]=!1;for(var b=0;b<3;b++){var x=s[b];c=y[x]={};for(var _=0;_<l.length;_++){var w=l[_];c[w]=g[x][w]}}}r._previousVal=p.extendDeep({},u)}h.relayout(t,d)}function s(t,e){for(var r=e.currentTarget,n=r.getAttribute(\"data-attr\"),i=r.getAttribute(\"data-val\")||!0,a=t._fullLayout,o=f.getSubplotIds(a,\"geo\"),s=0;s<o.length;s++){var l=o[s],u=a[l];if(\"zoom\"===n){var d=u.projection.scale,p=\"in\"===i?2*d:.5*d;h.relayout(t,l+\".projection.scale\",p)}else\"reset\"===n&&c(t,\"geo\")}}function l(t){var e,r=t._fullLayout;e=r._has(\"cartesian\")?r._isHoriz?\"y\":\"x\":\"closest\";var n=!t._fullLayout.hovermode&&e;h.relayout(t,\"hovermode\",n)}function u(t){for(var e,r,n=t._fullLayout,i=d.list(t,null,!0),a={},o=0;o<i.length;o++)e=i[o],r=e._name,a[r+\".showspikes\"]=\"on\"===n._cartesianSpikesEnabled;return a}function c(t,e){for(var r=t._fullLayout,n=f.getSubplotIds(r,e),i={},a=0;a<n.length;a++)for(var o=n[a],s=r[o]._subplot,l=s.viewInitial,u=Object.keys(l),c=0;c<u.length;c++){var d=u[c];i[o+\".\"+d]=l[d]}h.relayout(t,i)}var h=t(\"../../plotly\"),f=t(\"../../plots/plots\"),d=t(\"../../plots/cartesian/axes\"),p=t(\"../../lib\"),m=t(\"../../snapshot/download\"),v=t(\"../../../build/ploticon\"),g=e.exports={};g.toImage={name:\"toImage\",title:\"Download plot as a png\",icon:v.camera,click:function(t){var e=\"png\";p.notifier(\"Taking snapshot - this may take a few seconds\",\"long\"),p.isIE()&&(p.notifier(\"IE only supports svg. Changing format to svg.\",\"long\"),e=\"svg\"),m(t,{format:e}).then(function(t){p.notifier(\"Snapshot succeeded - \"+t,\"long\")}).catch(function(){p.notifier(\"Sorry there was a problem downloading your snapshot!\",\"long\")})}},g.sendDataToCloud={name:\"sendDataToCloud\",title:\"Save and edit plot in cloud\",icon:v.disk,click:function(t){f.sendDataToCloud(t)}},g.zoom2d={name:\"zoom2d\",title:\"Zoom\",attr:\"dragmode\",val:\"zoom\",icon:v.zoombox,click:n},g.pan2d={name:\"pan2d\",title:\"Pan\",attr:\"dragmode\",val:\"pan\",icon:v.pan,click:n},g.select2d={name:\"select2d\",title:\"Box Select\",attr:\"dragmode\",val:\"select\",icon:v.selectbox,click:n},g.lasso2d={name:\"lasso2d\",title:\"Lasso Select\",attr:\"dragmode\",val:\"lasso\",icon:v.lasso,click:n},g.zoomIn2d={name:\"zoomIn2d\",title:\"Zoom in\",attr:\"zoom\",val:\"in\",icon:v.zoom_plus,click:n},g.zoomOut2d={name:\"zoomOut2d\",title:\"Zoom out\",attr:\"zoom\",val:\"out\",icon:v.zoom_minus,click:n},g.autoScale2d={name:\"autoScale2d\",title:\"Autoscale\",attr:\"zoom\",val:\"auto\",icon:v.autoscale,click:n},g.resetScale2d={name:\"resetScale2d\",title:\"Reset axes\",attr:\"zoom\",val:\"reset\",icon:v.home,click:n},g.hoverClosestCartesian={name:\"hoverClosestCartesian\",title:\"Show closest data on hover\",attr:\"hovermode\",val:\"closest\",icon:v.tooltip_basic,gravity:\"ne\",click:n},g.hoverCompareCartesian={name:\"hoverCompareCartesian\",title:\"Compare data on hover\",attr:\"hovermode\",val:function(t){return t._fullLayout._isHoriz?\"y\":\"x\"},icon:v.tooltip_compare,gravity:\"ne\",click:n},g.zoom3d={name:\"zoom3d\",title:\"Zoom\",attr:\"scene.dragmode\",val:\"zoom\",icon:v.zoombox,click:i},g.pan3d={name:\"pan3d\",title:\"Pan\",attr:\"scene.dragmode\",val:\"pan\",icon:v.pan,click:i},g.orbitRotation={name:\"orbitRotation\",title:\"orbital rotation\",attr:\"scene.dragmode\",val:\"orbit\",icon:v[\"3d_rotate\"],click:i},g.tableRotation={name:\"tableRotation\",title:\"turntable rotation\",attr:\"scene.dragmode\",val:\"turntable\",icon:v[\"z-axis\"],click:i},g.resetCameraDefault3d={name:\"resetCameraDefault3d\",title:\"Reset camera to default\",attr:\"resetDefault\",icon:v.home,click:a},g.resetCameraLastSave3d={name:\"resetCameraLastSave3d\",title:\"Reset camera to last save\",attr:\"resetLastSave\",icon:v.movie,click:a},g.hoverClosest3d={name:\"hoverClosest3d\",title:\"Toggle show closest data on hover\",attr:\"hovermode\",val:null,toggle:!0,icon:v.tooltip_basic,gravity:\"ne\",click:o},g.zoomInGeo={name:\"zoomInGeo\",title:\"Zoom in\",attr:\"zoom\",val:\"in\",icon:v.zoom_plus,click:s},g.zoomOutGeo={name:\"zoomOutGeo\",title:\"Zoom out\",attr:\"zoom\",val:\"out\",icon:v.zoom_minus,click:s},g.resetGeo={name:\"resetGeo\",title:\"Reset\",attr:\"reset\",val:null,icon:v.autoscale,click:s},g.hoverClosestGeo={name:\"hoverClosestGeo\",title:\"Toggle show closest data on hover\",attr:\"hovermode\",val:null,toggle:!0,icon:v.tooltip_basic,gravity:\"ne\",click:l},g.hoverClosestGl2d={name:\"hoverClosestGl2d\",title:\"Toggle show closest data on hover\",attr:\"hovermode\",val:null,toggle:!0,icon:v.tooltip_basic,gravity:\"ne\",click:l},g.hoverClosestPie={name:\"hoverClosestPie\",title:\"Toggle show closest data on hover\",attr:\"hovermode\",val:\"closest\",icon:v.tooltip_basic,gravity:\"ne\",click:l},g.toggleHover={name:\"toggleHover\",title:\"Toggle show closest data on hover\",attr:\"hovermode\",val:null,toggle:!0,icon:v.tooltip_basic,gravity:\"ne\",click:function(t,e){l(t),o(t,e)}},g.resetViews={name:\"resetViews\",title:\"Reset views\",icon:v.home,click:function(t,e){var r=e.currentTarget;r.setAttribute(\"data-attr\",\"zoom\"),r.setAttribute(\"data-val\",\"reset\"),n(t,e),r.setAttribute(\"data-attr\",\"resetLastSave\"),a(t,e),c(t,\"geo\"),c(t,\"mapbox\")}},g.toggleSpikelines={name:\"toggleSpikelines\",title:\"Toggle Spike Lines\",icon:v.spikeline,attr:\"_cartesianSpikesEnabled\",val:\"on\",click:function(t){var e=t._fullLayout;e._cartesianSpikesEnabled=\"closest\"===e.hovermode&&\"on\"===e._cartesianSpikesEnabled?\"off\":\"on\";var r=u(t);r.hovermode=\"closest\",h.relayout(t,r)}},g.resetViewMapbox={name:\"resetViewMapbox\",title:\"Reset view\",attr:\"reset\",icon:v.home,click:function(t){c(t,\"mapbox\")}}},{\"../../../build/ploticon\":2,\"../../lib\":728,\"../../plotly\":767,\"../../plots/cartesian/axes\":772,\"../../plots/plots\":831,\"../../snapshot/download\":848}],665:[function(t,e,r){\"use strict\";r.manage=t(\"./manage\")},{\"./manage\":666}],666:[function(t,e,r){\"use strict\";function n(t,e,r){function n(t){for(var r=[],n=0;n<t.length;n++){var i=t[n];-1===e.indexOf(i)&&r.push(f[i])}g.push(r)}var s=t._fullLayout,l=t._fullData,u=s._has(\"cartesian\"),c=s._has(\"gl3d\"),h=s._has(\"geo\"),d=s._has(\"pie\"),p=s._has(\"gl2d\"),m=s._has(\"ternary\"),v=s._has(\"mapbox\"),g=[];if(n([\"toImage\",\"sendDataToCloud\"]),(u||p||d||m)+h+c>1)return n([\"resetViews\",\"toggleHover\"]),o(g,r);c&&(n([\"zoom3d\",\"pan3d\",\"orbitRotation\",\"tableRotation\"]),n([\"resetCameraDefault3d\",\"resetCameraLastSave3d\"]),n([\"hoverClosest3d\"]));var y=i(s),b=[];return((u||p)&&!y||m)&&(b=[\"zoom2d\",\"pan2d\"]),(v||h)&&(b=[\"pan2d\"]),a(l)&&(b.push(\"select2d\"),b.push(\"lasso2d\")),b.length&&n(b),!u&&!p||y||m||n([\"zoomIn2d\",\"zoomOut2d\",\"autoScale2d\",\"resetScale2d\"]),u&&d?n([\"toggleHover\"]):p?n([\"hoverClosestGl2d\"]):u?n([\"toggleSpikelines\",\"hoverClosestCartesian\",\"hoverCompareCartesian\"]):d?n([\"hoverClosestPie\"]):v?n([\"resetViewMapbox\",\"toggleHover\"]):h&&(n([\"zoomInGeo\",\"zoomOutGeo\",\"resetGeo\"]),n([\"hoverClosestGeo\"])),o(g,r)}function i(t){for(var e=l.list({_fullLayout:t},null,!0),r=!0,n=0;n<e.length;n++)if(!e[n].fixedrange){r=!1;break}return r}function a(t){for(var e=!1,r=0;r<t.length&&!e;r++){var n=t[r];n._module&&n._module.selectPoints&&(c.traceIs(n,\"scatter-like\")?(u.hasMarkers(n)||u.hasText(n))&&(e=!0):e=!0)}return e}function o(t,e){if(e.length)if(Array.isArray(e[0]))for(var r=0;r<e.length;r++)t.push(e[r]);else t.push(e);return t}function s(t){for(var e=0;e<t.length;e++)for(var r=t[e],n=0;n<r.length;n++){var i=r[n];if(\"string\"==typeof i){if(void 0===f[i])throw new Error([\"*modeBarButtons* configuration options\",\"invalid button name\"].join(\" \"));t[e][n]=f[i]}}return t}var l=t(\"../../plots/cartesian/axes\"),u=t(\"../../traces/scatter/subtypes\"),c=t(\"../../registry\"),h=t(\"./modebar\"),f=t(\"./buttons\");e.exports=function(t){var e=t._fullLayout,r=t._context,i=e._modeBar;if(!r.displayModeBar)return void(i&&(i.destroy(),delete e._modeBar));if(!Array.isArray(r.modeBarButtonsToRemove))throw new Error([\"*modeBarButtonsToRemove* configuration options\",\"must be an array.\"].join(\" \"));if(!Array.isArray(r.modeBarButtonsToAdd))throw new Error([\"*modeBarButtonsToAdd* configuration options\",\"must be an array.\"].join(\" \"));var a,o=r.modeBarButtons;a=Array.isArray(o)&&o.length?s(o):n(t,r.modeBarButtonsToRemove,r.modeBarButtonsToAdd),i?i.update(t,a):e._modeBar=h(t,a)}},{\"../../plots/cartesian/axes\":772,\"../../registry\":846,\"../../traces/scatter/subtypes\":1052,\"./buttons\":664,\"./modebar\":667}],667:[function(t,e,r){\"use strict\";function n(t){this.container=t.container,this.element=document.createElement(\"div\"),this.update(t.graphInfo,t.buttons),this.container.appendChild(this.element)}function i(t,e){var r=t._fullLayout,i=new n({graphInfo:t,container:r._paperdiv.node(),buttons:e});return r._privateplot&&a.select(i.element).append(\"span\").classed(\"badge-private float--left\",!0).text(\"PRIVATE\"),i}var a=t(\"d3\"),o=t(\"../../lib\"),s=t(\"../../../build/ploticon\"),l=n.prototype;l.update=function(t,e){this.graphInfo=t;var r=this.graphInfo._context;\"hover\"===r.displayModeBar?this.element.className=\"modebar modebar--hover\":this.element.className=\"modebar\";var n=!this.hasButtons(e),i=this.hasLogo!==r.displaylogo;(n||i)&&(this.removeAllButtons(),this.updateButtons(e),r.displaylogo&&(this.element.appendChild(this.getLogo()),this.hasLogo=!0)),this.updateActiveButton()},l.updateButtons=function(t){var e=this;this.buttons=t,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(t){var r=e.createGroup();t.forEach(function(t){var n=t.name;if(!n)throw new Error(\"must provide button 'name' in button config\");if(-1!==e.buttonsNames.indexOf(n))throw new Error(\"button name '\"+n+\"' is taken\");e.buttonsNames.push(n);var i=e.createButton(t);e.buttonElements.push(i),r.appendChild(i)}),e.element.appendChild(r)})},l.createGroup=function(){var t=document.createElement(\"div\");return t.className=\"modebar-group\",t},l.createButton=function(t){var e=this,r=document.createElement(\"a\");r.setAttribute(\"rel\",\"tooltip\"),r.className=\"modebar-btn\";var n=t.title;void 0===n&&(n=t.name),(n||0===n)&&r.setAttribute(\"data-title\",n),void 0!==t.attr&&r.setAttribute(\"data-attr\",t.attr);var i=t.val;if(void 0!==i&&(\"function\"==typeof i&&(i=i(this.graphInfo)),r.setAttribute(\"data-val\",i)),\"function\"!=typeof t.click)throw new Error(\"must provide button 'click' function in button config\");return r.addEventListener(\"click\",function(r){t.click(e.graphInfo,r),e.updateActiveButton(r.currentTarget)}),r.setAttribute(\"data-toggle\",t.toggle||!1),t.toggle&&a.select(r).classed(\"active\",!0),r.appendChild(this.createIcon(t.icon||s.question,t.name)),r.setAttribute(\"data-gravity\",t.gravity||\"n\"),r},l.createIcon=function(t,e){var r=t.ascent-t.descent,n=\"http://www.w3.org/2000/svg\",i=document.createElementNS(n,\"svg\"),a=document.createElementNS(n,\"path\");i.setAttribute(\"height\",\"1em\"),i.setAttribute(\"width\",t.width/r+\"em\"),i.setAttribute(\"viewBox\",[0,0,t.width,r].join(\" \"));var o=\"toggleSpikelines\"===e?\"matrix(1.5 0 0 -1.5 0 \"+t.ascent+\")\":\"matrix(1 0 0 -1 0 \"+t.ascent+\")\";return a.setAttribute(\"d\",t.path),a.setAttribute(\"transform\",o),i.appendChild(a),i},l.updateActiveButton=function(t){var e=this.graphInfo._fullLayout,r=void 0!==t?t.getAttribute(\"data-attr\"):null;this.buttonElements.forEach(function(t){var n=t.getAttribute(\"data-val\")||!0,i=t.getAttribute(\"data-attr\"),s=\"true\"===t.getAttribute(\"data-toggle\"),l=a.select(t);if(s)i===r&&l.classed(\"active\",!l.classed(\"active\"));else{var u=null===i?i:o.nestedProperty(e,i).get();l.classed(\"active\",u===n)}})},l.hasButtons=function(t){var e=this.buttons;if(!e)return!1;if(t.length!==e.length)return!1;for(var r=0;r<t.length;++r){if(t[r].length!==e[r].length)return!1;for(var n=0;n<t[r].length;n++)if(t[r][n].name!==e[r][n].name)return!1}return!0},l.getLogo=function(){var t=this.createGroup(),e=document.createElement(\"a\");return e.href=\"https://plot.ly/\",e.target=\"_blank\",e.setAttribute(\"data-title\",\"Produced with Plotly\"),e.className=\"modebar-btn plotlyjsicon modebar-btn--logo\",e.appendChild(this.createIcon(s.plotlylogo)),t.appendChild(e),t},l.removeAllButtons=function(){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.hasLogo=!1},l.destroy=function(){o.removeElement(this.container.querySelector(\".modebar\"))},e.exports=i},{\"../../../build/ploticon\":2,\"../../lib\":728,d3:122}],668:[function(t,e,r){\"use strict\";var n=t(\"../../plots/font_attributes\"),i=t(\"../color/attributes\"),a=t(\"../../lib/extend\").extendFlat,o=t(\"./button_attributes\");o=a(o,{_isLinkedToArray:\"button\"}),e.exports={visible:{valType:\"boolean\",editType:\"plot\"},buttons:o,x:{valType:\"number\",min:-2,max:3,editType:\"plot\"},xanchor:{valType:\"enumerated\",values:[\"auto\",\"left\",\"center\",\"right\"],dflt:\"left\",editType:\"plot\"},y:{valType:\"number\",min:-2,max:3,editType:\"plot\"},yanchor:{valType:\"enumerated\",values:[\"auto\",\"top\",\"middle\",\"bottom\"],dflt:\"bottom\",editType:\"plot\"},font:n({editType:\"plot\"}),bgcolor:{valType:\"color\",dflt:i.lightLine,editType:\"plot\"},activecolor:{valType:\"color\",editType:\"plot\"},bordercolor:{valType:\"color\",dflt:i.defaultLine,editType:\"plot\"},borderwidth:{valType:\"number\",min:0,dflt:0,editType:\"plot\"},editType:\"plot\"}},{\"../../lib/extend\":717,\"../../plots/font_attributes\":796,\"../color/attributes\":603,\"./button_attributes\":669}],669:[function(t,e,r){\"use strict\";e.exports={step:{valType:\"enumerated\",values:[\"month\",\"year\",\"day\",\"hour\",\"minute\",\"second\",\"all\"],dflt:\"month\",editType:\"plot\"},stepmode:{valType:\"enumerated\",values:[\"backward\",\"todate\"],dflt:\"backward\",editType:\"plot\"},count:{valType:\"number\",min:0,dflt:1,editType:\"plot\"},label:{valType:\"string\",editType:\"plot\"},editType:\"plot\"}},{}],670:[function(t,e,r){\"use strict\";e.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}},{}],671:[function(t,e,r){\"use strict\";function n(t,e,r){function n(t,e){return a.coerce(i,o,l,t,e)}for(var i,o,s=t.buttons||[],u=e.buttons=[],c=0;c<s.length;c++)if(i=s[c],o={},a.isPlainObject(i)){var h=n(\"step\");\"all\"!==h&&(!r||\"gregorian\"===r||\"month\"!==h&&\"year\"!==h?n(\"stepmode\"):o.stepmode=\"backward\",n(\"count\")),n(\"label\"),o._index=c,u.push(o)}return u}function i(t,e,r){for(var n=r.filter(function(r){return e[r].anchor===t._id}),i=0,a=0;a<n.length;a++){var o=e[n[a]].domain;o&&(i=Math.max(o[1],i))}return[t.domain[0],i+u.yPad]}var a=t(\"../../lib\"),o=t(\"../color\"),s=t(\"./attributes\"),l=t(\"./button_attributes\"),u=t(\"./constants\");e.exports=function(t,e,r,l,c){function h(t,e){return a.coerce(f,d,s,t,e)}var f=t.rangeselector||{},d=e.rangeselector={};if(h(\"visible\",n(f,d,c).length>0)){var p=i(e,r,l);h(\"x\",p[0]),h(\"y\",p[1]),a.noneOrAll(t,e,[\"x\",\"y\"]),h(\"xanchor\"),h(\"yanchor\"),a.coerceFont(h,\"font\",r.font);var m=h(\"bgcolor\");h(\"activecolor\",o.contrast(m,u.lightAmount,u.darkAmount)),h(\"bordercolor\"),h(\"borderwidth\")}}},{\"../../lib\":728,\"../color\":604,\"./attributes\":668,\"./button_attributes\":669,\"./constants\":670}],672:[function(t,e,r){\"use strict\";function n(t){for(var e=g.list(t,\"x\",!0),r=[],n=0;n<e.length;n++){var i=e[n];i.rangeselector&&i.rangeselector.visible&&r.push(i)}return r}function i(t){return t._id}function a(t,e,r){if(\"all\"===e.step)return!0===t.autorange;var n=Object.keys(r);return t.range[0]===r[n[0]]&&t.range[1]===r[n[1]]}function o(t,e,r){var n=t.selectAll(\"rect\").data([0]);n.enter().append(\"rect\").classed(\"selector-rect\",!0),n.attr(\"shape-rendering\",\"crispEdges\"),n.attr({rx:x.rx,ry:x.ry}),n.call(p.stroke,e.bordercolor).call(p.fill,s(e,r)).style(\"stroke-width\",e.borderwidth+\"px\")}function s(t,e){return e.isActive||e.isHovered?t.activecolor:t.bgcolor}function l(t,e,r,n){function i(t){v.convertToTspans(t,n)}var a=t.selectAll(\"text\").data([0]);a.enter().append(\"text\").classed(\"selector-text\",!0).classed(\"user-select-none\",!0),a.attr(\"text-anchor\",\"middle\"),a.call(m.font,e.font).text(u(r)).call(i)}function u(t){return t.label?t.label:\"all\"===t.step?\"all\":t.count+t.step.charAt(0)}function c(t,e,r,n){r.width=0,r.height=0;var i=r.borderwidth;e.each(function(){var t=h.select(this),e=t.select(\".selector-text\"),n=r.font.size*b,i=Math.max(n*v.lineCount(e),16)+3;r.height=Math.max(r.height,i)}),e.each(function(){var t=h.select(this),e=t.select(\".selector-rect\"),n=t.select(\".selector-text\"),a=n.node()&&m.bBox(n.node()).width,o=r.font.size*b,s=v.lineCount(n),l=Math.max(a+10,x.minButtonWidth);t.attr(\"transform\",\"translate(\"+(i+r.width)+\",\"+i+\")\"),e.attr({x:0,y:0,width:l,height:r.height}),v.positionText(n,l/2,r.height/2-(s-1)*o/2+3),r.width+=l+5}),e.selectAll(\"rect\").attr(\"height\",r.height);var a=t._fullLayout._size;r.lx=a.l+a.w*r.x,r.ly=a.t+a.h*(1-r.y);var o=\"left\";y.isRightAnchor(r)&&(r.lx-=r.width,o=\"right\"),y.isCenterAnchor(r)&&(r.lx-=r.width/2,o=\"center\");var s=\"top\";y.isBottomAnchor(r)&&(r.ly-=r.height,s=\"bottom\"),y.isMiddleAnchor(r)&&(r.ly-=r.height/2,s=\"middle\"),r.width=Math.ceil(r.width),r.height=Math.ceil(r.height),r.lx=Math.round(r.lx),r.ly=Math.round(r.ly),d.autoMargin(t,n+\"-range-selector\",{x:r.x,y:r.y,l:r.width*({right:1,center:.5}[o]||0),r:r.width*({left:1,center:.5}[o]||0),b:r.height*({top:1,middle:.5}[s]||0),t:r.height*({bottom:1,middle:.5}[s]||0)})}var h=t(\"d3\"),f=t(\"../../plotly\"),d=t(\"../../plots/plots\"),p=t(\"../color\"),m=t(\"../drawing\"),v=t(\"../../lib/svg_text_utils\"),g=t(\"../../plots/cartesian/axis_ids\"),y=t(\"../legend/anchor_utils\"),b=t(\"../../constants/alignment\").LINE_SPACING,x=t(\"./constants\"),_=t(\"./get_update_object\");e.exports=function(t){var e=t._fullLayout,r=e._infolayer.selectAll(\".rangeselector\").data(n(t),i);r.enter().append(\"g\").classed(\"rangeselector\",!0),r.exit().remove(),r.style({cursor:\"pointer\",\"pointer-events\":\"all\"}),r.each(function(e){var r=h.select(this),n=e,i=n.rangeselector,s=r.selectAll(\"g.button\").data(i.buttons);s.enter().append(\"g\").classed(\"button\",!0),s.exit().remove(),s.each(function(e){var r=h.select(this),s=_(n,e);e.isActive=a(n,e,s),r.call(o,i,e),r.call(l,i,e,t),r.on(\"click\",function(){t._dragged||f.relayout(t,s)}),r.on(\"mouseover\",function(){e.isHovered=!0,r.call(o,i,e)}),r.on(\"mouseout\",function(){e.isHovered=!1,r.call(o,i,e)})}),c(t,s,i,n._name),r.attr(\"transform\",\"translate(\"+i.lx+\",\"+i.ly+\")\")})}},{\"../../constants/alignment\":701,\"../../lib/svg_text_utils\":750,\"../../plotly\":767,\"../../plots/cartesian/axis_ids\":775,\"../../plots/plots\":831,\"../color\":604,\"../drawing\":628,\"../legend/anchor_utils\":654,\"./constants\":670,\"./get_update_object\":673,d3:122}],673:[function(t,e,r){\"use strict\";function n(t,e){var r,n=t.range,a=new Date(t.r2l(n[1])),o=e.step,s=e.count;switch(e.stepmode){case\"backward\":r=t.l2r(+i.time[o].utc.offset(a,-s));break;case\"todate\":var l=i.time[o].utc.offset(a,-s);r=t.l2r(+i.time[o].utc.ceil(l))}return[r,n[1]]}var i=t(\"d3\");e.exports=function(t,e){var r=t._name,i={};if(\"all\"===e.step)i[r+\".autorange\"]=!0;else{var a=n(t,e);i[r+\".range[0]\"]=a[0],i[r+\".range[1]\"]=a[1]}return i}},{d3:122}],674:[function(t,e,r){\"use strict\";e.exports={moduleType:\"component\",name:\"rangeselector\",schema:{subplots:{xaxis:{rangeselector:t(\"./attributes\")}}},layoutAttributes:t(\"./attributes\"),handleDefaults:t(\"./defaults\"),draw:t(\"./draw\")}},{\"./attributes\":668,\"./defaults\":671,\"./draw\":672}],675:[function(t,e,r){\"use strict\";var n=t(\"../color/attributes\");e.exports={bgcolor:{valType:\"color\",dflt:n.background,editType:\"calc\"},bordercolor:{valType:\"color\",dflt:n.defaultLine,editType:\"calc\"},borderwidth:{valType:\"integer\",dflt:0,min:0,editType:\"calc\"},autorange:{valType:\"boolean\",dflt:!0,editType:\"calc\"},range:{valType:\"info_array\",items:[{valType:\"any\",editType:\"calc\"},{valType:\"any\",editType:\"calc\"}],editType:\"calc\"},thickness:{valType:\"number\",dflt:.15,min:0,max:1,editType:\"calc\"},visible:{valType:\"boolean\",dflt:!0,editType:\"calc\"},editType:\"calc\"}},{\"../color/attributes\":603}],676:[function(t,e,r){\"use strict\";var n=t(\"../../plots/cartesian/axes\"),i=t(\"./constants\");e.exports=function(t){for(var e=n.list(t,\"x\",!0),r=0;r<e.length;r++){var a=e[r],o=a[i.name];o&&o.visible&&o.autorange&&a._min.length&&a._max.length&&(o._input.autorange=!0,\n", "o._input.range=o.range=n.getAutoRange(a))}}},{\"../../plots/cartesian/axes\":772,\"./constants\":677}],677:[function(t,e,r){\"use strict\";e.exports={name:\"rangeslider\",containerClassName:\"rangeslider-container\",bgClassName:\"rangeslider-bg\",rangePlotClassName:\"rangeslider-rangeplot\",maskMinClassName:\"rangeslider-mask-min\",maskMaxClassName:\"rangeslider-mask-max\",slideBoxClassName:\"rangeslider-slidebox\",grabberMinClassName:\"rangeslider-grabber-min\",grabAreaMinClassName:\"rangeslider-grabarea-min\",handleMinClassName:\"rangeslider-handle-min\",grabberMaxClassName:\"rangeslider-grabber-max\",grabAreaMaxClassName:\"rangeslider-grabarea-max\",handleMaxClassName:\"rangeslider-handle-max\",maskColor:\"rgba(0,0,0,0.4)\",slideBoxFill:\"transparent\",slideBoxCursor:\"ew-resize\",grabAreaFill:\"transparent\",grabAreaCursor:\"col-resize\",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}},{}],678:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"./attributes\");e.exports=function(t,e,r){function a(t,e){return n.coerce(o,l,i,t,e)}if(t[r].rangeslider){n.isPlainObject(t[r].rangeslider)||(t[r].rangeslider={});var o=t[r].rangeslider,s=e[r],l=s.rangeslider={};if(a(\"visible\")){if(a(\"bgcolor\",e.plot_bgcolor),a(\"bordercolor\"),a(\"borderwidth\"),a(\"thickness\"),a(\"autorange\",!s.isValidRange(o.range)),a(\"range\"),l.range){var u=l.range,c=s.range;u[0]=s.l2r(Math.min(s.r2l(u[0]),s.r2l(c[0]))),u[1]=s.l2r(Math.max(s.r2l(u[1]),s.r2l(c[1])))}s.cleanRange(\"rangeslider.range\"),l._input=o}}}},{\"../../lib\":728,\"./attributes\":675}],679:[function(t,e,r){\"use strict\";function n(t){var e=w.list({_fullLayout:t},\"x\",!0),r=A.name,n=[];if(t._has(\"gl2d\"))return n;for(var i=0;i<e.length;i++){var a=e[i];a[r]&&a[r].visible&&n.push(a)}return n}function i(t,e,r,n){var i=t.select(\"rect.\"+A.slideBoxClassName).node(),o=t.select(\"rect.\"+A.grabAreaMinClassName).node(),s=t.select(\"rect.\"+A.grabAreaMaxClassName).node();t.on(\"mousedown\",function(){function l(l){var u,c,y,b=+l.clientX-f;switch(h){case i:y=\"ew-resize\",u=p+b,c=v+b;break;case o:y=\"col-resize\",u=p+b,c=v;break;case s:y=\"col-resize\",u=p,c=v+b;break;default:y=\"ew-resize\",u=d,c=d+b}if(c<u){var x=c;c=u,u=x}n._pixelMin=u,n._pixelMax=c,k(m.select(g),y),a(t,e,r,n)}function u(){g.removeEventListener(\"mousemove\",l),g.removeEventListener(\"mouseup\",u),y.removeElement(g)}var c=m.event,h=c.target,f=c.clientX,d=f-t.node().getBoundingClientRect().left,p=n.d2p(r._rl[0]),v=n.d2p(r._rl[1]),g=M.coverSlip();g.addEventListener(\"mousemove\",l),g.addEventListener(\"mouseup\",u)})}function a(t,e,r,n){function i(t){return r.l2r(y.constrain(t,n._rl[0],n._rl[1]))}var a=i(n.p2d(n._pixelMin)),o=i(n.p2d(n._pixelMax));window.requestAnimationFrame(function(){v.relayout(e,r._name+\".range\",[a,o])})}function o(t,e,r,n){function i(t){return y.constrain(t,0,n._width)}function a(t){return y.constrain(t,-o,n._width+o)}var o=A.handleWidth/2,s=i(n.d2p(r._rl[0])),l=i(n.d2p(r._rl[1]));t.select(\"rect.\"+A.slideBoxClassName).attr(\"x\",s).attr(\"width\",l-s),t.select(\"rect.\"+A.maskMinClassName).attr(\"width\",s),t.select(\"rect.\"+A.maskMaxClassName).attr(\"x\",l).attr(\"width\",n._width-l);var u=Math.round(a(s-o))-.5,c=Math.round(a(l-o))+.5;t.select(\"g.\"+A.grabberMinClassName).attr(\"transform\",\"translate(\"+u+\",0.5)\"),t.select(\"g.\"+A.grabberMaxClassName).attr(\"transform\",\"translate(\"+c+\",0.5)\")}function s(t,e,r,n){var i=t.selectAll(\"rect.\"+A.bgClassName).data([0]);i.enter().append(\"rect\").classed(A.bgClassName,!0).attr({x:0,y:0,\"shape-rendering\":\"crispEdges\"});var a=n.borderwidth%2==0?n.borderwidth:n.borderwidth-1,o=-n._offsetShift,s=b.crispRound(e,n.borderwidth);i.attr({width:n._width+a,height:n._height+a,transform:\"translate(\"+o+\",\"+o+\")\",fill:n.bgcolor,stroke:n.bordercolor,\"stroke-width\":s})}function l(t,e,r,n){var i=e._fullLayout,a=i._topdefs.selectAll(\"#\"+n._clipId).data([0]);a.enter().append(\"clipPath\").attr(\"id\",n._clipId).append(\"rect\").attr({x:0,y:0}),a.select(\"rect\").attr({width:n._width,height:n._height})}function u(t,e,r,n){var i=w.getSubplots(e,r),a=e.calcdata,o=t.selectAll(\"g.\"+A.rangePlotClassName).data(i,y.identity);o.enter().append(\"g\").attr(\"class\",function(t){return A.rangePlotClassName+\" \"+t}).call(b.setClipUrl,n._clipId),o.order(),o.exit().remove();var s;o.each(function(t,i){var o=m.select(this),l=0===i,u=w.getFromId(e,t,\"y\"),h=u._name,f={data:[],layout:{xaxis:{type:r.type,domain:[0,1],range:n.range.slice(),calendar:r.calendar},width:n._width,height:n._height,margin:{t:0,b:0,l:0,r:0}}};f.layout[h]={type:u.type,domain:[0,1],range:u.range.slice(),calendar:u.calendar},g.supplyDefaults(f);var d=f._fullLayout.xaxis,p=f._fullLayout[h],v={id:t,plotgroup:o,xaxis:d,yaxis:p};l?s=v:(v.mainplot=\"xy\",v.mainplotinfo=s),_.rangePlot(e,v,c(a,t))})}function c(t,e){for(var r=[],n=0;n<t.length;n++){var i=t[n],a=i[0].trace;a.xaxis+a.yaxis===e&&r.push(i)}return r}function h(t,e,r,n){var i=t.selectAll(\"rect.\"+A.maskMinClassName).data([0]);i.enter().append(\"rect\").classed(A.maskMinClassName,!0).attr({x:0,y:0}).attr(\"shape-rendering\",\"crispEdges\"),i.attr(\"height\",n._height).call(x.fill,A.maskColor);var a=t.selectAll(\"rect.\"+A.maskMaxClassName).data([0]);a.enter().append(\"rect\").classed(A.maskMaxClassName,!0).attr(\"y\",0).attr(\"shape-rendering\",\"crispEdges\"),a.attr(\"height\",n._height).call(x.fill,A.maskColor)}function f(t,e,r,n){if(!e._context.staticPlot){var i=t.selectAll(\"rect.\"+A.slideBoxClassName).data([0]);i.enter().append(\"rect\").classed(A.slideBoxClassName,!0).attr(\"y\",0).attr(\"cursor\",A.slideBoxCursor).attr(\"shape-rendering\",\"crispEdges\"),i.attr({height:n._height,fill:A.slideBoxFill})}}function d(t,e,r,n){var i=t.selectAll(\"g.\"+A.grabberMinClassName).data([0]);i.enter().append(\"g\").classed(A.grabberMinClassName,!0);var a=t.selectAll(\"g.\"+A.grabberMaxClassName).data([0]);a.enter().append(\"g\").classed(A.grabberMaxClassName,!0);var o={x:0,width:A.handleWidth,rx:A.handleRadius,fill:x.background,stroke:x.defaultLine,\"stroke-width\":A.handleStrokeWidth,\"shape-rendering\":\"crispEdges\"},s={y:Math.round(n._height/4),height:Math.round(n._height/2)},l=i.selectAll(\"rect.\"+A.handleMinClassName).data([0]);l.enter().append(\"rect\").classed(A.handleMinClassName,!0).attr(o),l.attr(s);var u=a.selectAll(\"rect.\"+A.handleMaxClassName).data([0]);if(u.enter().append(\"rect\").classed(A.handleMaxClassName,!0).attr(o),u.attr(s),!e._context.staticPlot){var c={width:A.grabAreaWidth,x:0,y:0,fill:A.grabAreaFill,cursor:A.grabAreaCursor},h=i.selectAll(\"rect.\"+A.grabAreaMinClassName).data([0]);h.enter().append(\"rect\").classed(A.grabAreaMinClassName,!0).attr(c),h.attr(\"height\",n._height);var f=a.selectAll(\"rect.\"+A.grabAreaMaxClassName).data([0]);f.enter().append(\"rect\").classed(A.grabAreaMaxClassName,!0).attr(c),f.attr(\"height\",n._height)}}function p(t){for(var e=t._fullLayout._pushmargin||{},r=Object.keys(e),n=0;n<r.length;n++){var i=r[n];-1!==i.indexOf(A.name)&&g.autoMargin(t,i)}}var m=t(\"d3\"),v=t(\"../../plotly\"),g=t(\"../../plots/plots\"),y=t(\"../../lib\"),b=t(\"../drawing\"),x=t(\"../color\"),_=t(\"../../plots/cartesian\"),w=t(\"../../plots/cartesian/axes\"),M=t(\"../dragelement\"),k=t(\"../../lib/setcursor\"),A=t(\"./constants\");e.exports=function(t){function e(t){return t._name}var r=t._fullLayout,a=n(r),c=r._infolayer.selectAll(\"g.\"+A.containerClassName).data(a,e);c.enter().append(\"g\").classed(A.containerClassName,!0).attr(\"pointer-events\",\"all\"),c.exit().each(function(t){var e=m.select(this),n=t[A.name];e.remove(),r._topdefs.select(\"#\"+n._clipId).remove()}),c.exit().size()&&p(t),0!==a.length&&c.each(function(e){var n=m.select(this),a=e[A.name],c=r[w.id2name(e.anchor)],p=r.margin,v=r._size,y=e.domain,b=c.domain,x=(e._boundingBox||{}).height||0;a._id=A.name+e._id,a._clipId=a._id+\"-\"+r._uid,a._width=v.w*(y[1]-y[0]),a._height=(r.height-p.b-p.t)*a.thickness,a._offsetShift=Math.floor(a.borderwidth/2);var _=Math.round(p.l+v.w*y[0]),M=Math.round(p.t+v.h*(1-b[0])+x+a._offsetShift+A.extraPad);n.attr(\"transform\",\"translate(\"+_+\",\"+M+\")\");var k=e.r2l(a.range[0]),T=e.r2l(a.range[1]),S=T-k;a.p2d=function(t){return t/a._width*S+k},a.d2p=function(t){return(t-k)/S*a._width},a._rl=[k,T],n.call(s,t,e,a).call(l,t,e,a).call(u,t,e,a).call(h,t,e,a).call(f,t,e,a).call(d,t,e,a),i(n,t,e,a),o(n,t,e,a),g.autoMargin(t,a._id,{x:y[0],y:b[0],l:0,r:0,t:0,b:a._height+p.b+x,pad:A.extraPad+2*a._offsetShift})})}},{\"../../lib\":728,\"../../lib/setcursor\":746,\"../../plotly\":767,\"../../plots/cartesian\":782,\"../../plots/cartesian/axes\":772,\"../../plots/plots\":831,\"../color\":604,\"../dragelement\":625,\"../drawing\":628,\"./constants\":677,d3:122}],680:[function(t,e,r){\"use strict\";e.exports={moduleType:\"component\",name:\"rangeslider\",schema:{subplots:{xaxis:{rangeslider:t(\"./attributes\")}}},layoutAttributes:t(\"./attributes\"),handleDefaults:t(\"./defaults\"),calcAutorange:t(\"./calc_autorange\"),draw:t(\"./draw\")}},{\"./attributes\":675,\"./calc_autorange\":676,\"./defaults\":678,\"./draw\":679}],681:[function(t,e,r){\"use strict\";var n=t(\"../annotations/attributes\"),i=t(\"../../traces/scatter/attributes\").line,a=t(\"../drawing/attributes\").dash,o=t(\"../../lib/extend\").extendFlat;e.exports={_isLinkedToArray:\"shape\",visible:{valType:\"boolean\",dflt:!0,editType:\"calcIfAutorange\"},type:{valType:\"enumerated\",values:[\"circle\",\"rect\",\"path\",\"line\"],editType:\"calcIfAutorange\"},layer:{valType:\"enumerated\",values:[\"below\",\"above\"],dflt:\"above\",editType:\"arraydraw\"},xref:o({},n.xref,{}),x0:{valType:\"any\",editType:\"calcIfAutorange\"},x1:{valType:\"any\",editType:\"calcIfAutorange\"},yref:o({},n.yref,{}),y0:{valType:\"any\",editType:\"calcIfAutorange\"},y1:{valType:\"any\",editType:\"calcIfAutorange\"},path:{valType:\"string\",editType:\"calcIfAutorange\"},opacity:{valType:\"number\",min:0,max:1,dflt:1,editType:\"arraydraw\"},line:{color:o({},i.color,{editType:\"arraydraw\"}),width:o({},i.width,{editType:\"calcIfAutorange\"}),dash:o({},a,{editType:\"arraydraw\"}),editType:\"calcIfAutorange\"},fillcolor:{valType:\"color\",dflt:\"rgba(0,0,0,0)\",editType:\"arraydraw\"},editType:\"arraydraw\"}},{\"../../lib/extend\":717,\"../../traces/scatter/attributes\":1031,\"../annotations/attributes\":587,\"../drawing/attributes\":627}],682:[function(t,e,r){\"use strict\";function n(t,e,r,n,i){var a=\"category\"===t.type?t.r2c:t.d2c;if(void 0!==e)return[a(e),a(r)];if(n){var l,u,c,h,f,d=1/0,p=-1/0,m=n.match(o.segmentRE);for(\"date\"===t.type&&(a=s.decodeDate(a)),l=0;l<m.length;l++)u=m[l],void 0!==(c=i[u.charAt(0)].drawn)&&(!(h=m[l].substr(1).match(o.paramRE))||h.length<c||(f=a(h[c]),f<d&&(d=f),f>p&&(p=f)));return p>=d?[d,p]:void 0}}var i=t(\"../../lib\"),a=t(\"../../plots/cartesian/axes\"),o=t(\"./constants\"),s=t(\"./helpers\");e.exports=function(t){var e=t._fullLayout,r=i.filterVisible(e.shapes);if(r.length&&t._fullData.length)for(var s=0;s<r.length;s++){var l,u,c=r[s],h=c.line.width/2;\"paper\"!==c.xref&&(l=a.getFromId(t,c.xref),(u=n(l,c.x0,c.x1,c.path,o.paramIsX))&&a.expand(l,u,{ppad:h})),\"paper\"!==c.yref&&(l=a.getFromId(t,c.yref),(u=n(l,c.y0,c.y1,c.path,o.paramIsY))&&a.expand(l,u,{ppad:h}))}}},{\"../../lib\":728,\"../../plots/cartesian/axes\":772,\"./constants\":683,\"./helpers\":686}],683:[function(t,e,r){\"use strict\";e.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}},{}],684:[function(t,e,r){\"use strict\";var n=t(\"../../plots/array_container_defaults\"),i=t(\"./shape_defaults\");e.exports=function(t,e){n(t,e,{name:\"shapes\",handleItemDefaults:i})}},{\"../../plots/array_container_defaults\":769,\"./shape_defaults\":688}],685:[function(t,e,r){\"use strict\";function n(t){var e=t._fullLayout;e._shapeUpperLayer.selectAll(\"path\").remove(),e._shapeLowerLayer.selectAll(\"path\").remove(),e._shapeSubplotLayers.selectAll(\"path\").remove();for(var r=0;r<e.shapes.length;r++)e.shapes[r].visible&&i(t,r)}function i(t,e){function r(r){var n={\"data-index\":e,\"fill-rule\":\"evenodd\",d:o(t,i)},s=i.line.width?i.line.color:\"rgba(0,0,0,0)\",l=r.append(\"path\").attr(n).style(\"opacity\",i.opacity).call(f.stroke,s).call(f.fill,i.fillcolor).call(d.dashLine,i.line.dash,i.line.width),u=(i.xref+i.yref).replace(/paper/g,\"\");l.call(d.setClipUrl,u?\"clip\"+t._fullLayout._uid+u:null),t._context.edits.shapePosition&&a(t,l,i,e)}t._fullLayout._paper.selectAll('.shapelayer [data-index=\"'+e+'\"]').remove();var n=(t.layout.shapes||[])[e],i=t._fullLayout.shapes[e];if(n&&!1!==i.visible)if(\"below\"!==i.layer)r(t._fullLayout._shapeUpperLayer);else if(\"paper\"===i.xref||\"paper\"===i.yref)r(t._fullLayout._shapeLowerLayer);else{var s=t._fullLayout._plots[i.xref+i.yref];if(s){var l=s.mainplotinfo||s;r(l.shapelayer)}else r(t._fullLayout._shapeLowerLayer)}}function a(t,e,r,n){function i(t){var r=Z.right-Z.left,n=Z.bottom-Z.top,i=t.clientX-Z.left,a=t.clientY-Z.top,o=r>Y&&n>W&&!t.shiftKey?p.getCursor(i/r,1-a/n):\"move\";m(e,o),G=o.split(\"-\")[0]}function a(e){N=h.getFromId(t,r.xref),B=h.getFromId(t,r.yref),U=g.getDataToPixel(t,N),V=g.getDataToPixel(t,B,!0),H=g.getPixelToData(t,N),q=g.getPixelToData(t,B,!0);var a=\"shapes[\"+n+\"]\";\"path\"===r.type?(F=r.path,j=a+\".path\"):(v=U(r.x0),y=V(r.y0),b=U(r.x1),x=V(r.y1),_=a+\".x0\",w=a+\".y0\",M=a+\".x1\",k=a+\".y1\"),v<b?(S=v,I=a+\".x0\",O=\"x0\",E=b,z=a+\".x1\",R=\"x1\"):(S=b,I=a+\".x1\",O=\"x1\",E=v,z=a+\".x0\",R=\"x0\"),y<x?(A=y,L=a+\".y0\",D=\"y0\",T=x,C=a+\".y1\",P=\"y1\"):(A=x,L=a+\".y1\",D=\"y1\",T=y,C=a+\".y0\",P=\"y0\"),d={},i(e),X.moveFn=\"move\"===G?c:f}function s(r){m(e),r&&u.relayout(t,d)}function c(n,i){if(\"path\"===r.type){var a=function(t){return H(U(t)+n)};N&&\"date\"===N.type&&(a=g.encodeDate(a));var s=function(t){return q(V(t)+i)};B&&\"date\"===B.type&&(s=g.encodeDate(s)),r.path=l(F,a,s),d[j]=r.path}else d[_]=r.x0=H(v+n),d[w]=r.y0=q(y+i),d[M]=r.x1=H(b+n),d[k]=r.y1=q(x+i);e.attr(\"d\",o(t,r))}function f(n,i){if(\"path\"===r.type){var a=function(t){return H(U(t)+n)};N&&\"date\"===N.type&&(a=g.encodeDate(a));var s=function(t){return q(V(t)+i)};B&&\"date\"===B.type&&(s=g.encodeDate(s)),r.path=l(F,a,s),d[j]=r.path}else{var u=~G.indexOf(\"n\")?A+i:A,c=~G.indexOf(\"s\")?T+i:T,h=~G.indexOf(\"w\")?S+n:S,f=~G.indexOf(\"e\")?E+n:E;c-u>W&&(d[L]=r[D]=q(u),d[C]=r[P]=q(c)),f-h>Y&&(d[I]=r[O]=H(h),d[z]=r[R]=H(f))}e.attr(\"d\",o(t,r))}var d,v,y,b,x,_,w,M,k,A,T,S,E,L,C,I,z,D,P,O,R,F,j,N,B,U,V,H,q,G,Y=10,W=10,X={element:e.node(),gd:t,prepFn:a,doneFn:s},Z=X.element.getBoundingClientRect();p.init(X),e.node().onmousemove=i}function o(t,e){var r,n,i,a,o=e.type,l=h.getFromId(t,e.xref),u=h.getFromId(t,e.yref),c=t._fullLayout._size;if(l?(r=g.shapePositionToRange(l),n=function(t){return l._offset+l.r2p(r(t,!0))}):n=function(t){return c.l+c.w*t},u?(i=g.shapePositionToRange(u),a=function(t){return u._offset+u.r2p(i(t,!0))}):a=function(t){return c.t+c.h*(1-t)},\"path\"===o)return l&&\"date\"===l.type&&(n=g.decodeDate(n)),u&&\"date\"===u.type&&(a=g.decodeDate(a)),s(e.path,n,a);var f=n(e.x0),d=n(e.x1),p=a(e.y0),m=a(e.y1);if(\"line\"===o)return\"M\"+f+\",\"+p+\"L\"+d+\",\"+m;if(\"rect\"===o)return\"M\"+f+\",\"+p+\"H\"+d+\"V\"+m+\"H\"+f+\"Z\";var v=(f+d)/2,y=(p+m)/2,b=Math.abs(v-f),x=Math.abs(y-p),_=\"A\"+b+\",\"+x,w=v+b+\",\"+y;return\"M\"+w+_+\" 0 1,1 \"+v+\",\"+(y-x)+_+\" 0 0,1 \"+w+\"Z\"}function s(t,e,r){return t.replace(v.segmentRE,function(t){var n=0,i=t.charAt(0),a=v.paramIsX[i],o=v.paramIsY[i],s=v.numParams[i],l=t.substr(1).replace(v.paramRE,function(t){return a[n]?t=e(t):o[n]&&(t=r(t)),n++,n>s&&(t=\"X\"),t});return n>s&&(l=l.replace(/[\\s,]*X.*/,\"\"),c.log(\"Ignoring extra params in segment \"+t)),i+l})}function l(t,e,r){return t.replace(v.segmentRE,function(t){var n=0,i=t.charAt(0),a=v.paramIsX[i],o=v.paramIsY[i],s=v.numParams[i];return i+t.substr(1).replace(v.paramRE,function(t){return n>=s?t:(a[n]?t=e(t):o[n]&&(t=r(t)),n++,t)})})}var u=t(\"../../plotly\"),c=t(\"../../lib\"),h=t(\"../../plots/cartesian/axes\"),f=t(\"../color\"),d=t(\"../drawing\"),p=t(\"../dragelement\"),m=t(\"../../lib/setcursor\"),v=t(\"./constants\"),g=t(\"./helpers\");e.exports={draw:n,drawOne:i}},{\"../../lib\":728,\"../../lib/setcursor\":746,\"../../plotly\":767,\"../../plots/cartesian/axes\":772,\"../color\":604,\"../dragelement\":625,\"../drawing\":628,\"./constants\":683,\"./helpers\":686}],686:[function(t,e,r){\"use strict\";r.rangeToShapePosition=function(t){return\"log\"===t.type?t.r2d:function(t){return t}},r.shapePositionToRange=function(t){return\"log\"===t.type?t.d2r:function(t){return t}},r.decodeDate=function(t){return function(e){return e.replace&&(e=e.replace(\"_\",\" \")),t(e)}},r.encodeDate=function(t){return function(e){return t(e).replace(\" \",\"_\")}},r.getDataToPixel=function(t,e,n){var i,a=t._fullLayout._size;if(e){var o=r.shapePositionToRange(e);i=function(t){return e._offset+e.r2p(o(t,!0))},\"date\"===e.type&&(i=r.decodeDate(i))}else i=n?function(t){return a.t+a.h*(1-t)}:function(t){return a.l+a.w*t};return i},r.getPixelToData=function(t,e,n){var i,a=t._fullLayout._size;if(e){var o=r.rangeToShapePosition(e);i=function(t){return o(e.p2r(t-e._offset))}}else i=n?function(t){return 1-(t-a.t)/a.h}:function(t){return(t-a.l)/a.w};return i}},{}],687:[function(t,e,r){\"use strict\";var n=t(\"./draw\");e.exports={moduleType:\"component\",name:\"shapes\",layoutAttributes:t(\"./attributes\"),supplyLayoutDefaults:t(\"./defaults\"),calcAutorange:t(\"./calc_autorange\"),draw:n.draw,drawOne:n.drawOne}},{\"./attributes\":681,\"./calc_autorange\":682,\"./defaults\":684,\"./draw\":685}],688:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../plots/cartesian/axes\"),a=t(\"./attributes\"),o=t(\"./helpers\");e.exports=function(t,e,r,s,l){function u(r,i){return n.coerce(t,e,a,r,i)}if(s=s||{},l=l||{},!u(\"visible\",!l.itemIsNotPlainObject))return e;u(\"layer\"),u(\"opacity\"),u(\"fillcolor\"),u(\"line.color\"),u(\"line.width\"),u(\"line.dash\");for(var c=t.path?\"path\":\"rect\",h=u(\"type\",c),f=[\"x\",\"y\"],d=0;d<2;d++){var p=f[d],m={_fullLayout:r},v=i.coerceRef(t,e,m,p,\"\",\"paper\");if(\"path\"!==h){var g,y,b;\"paper\"!==v?(g=i.getFromId(m,v),b=o.rangeToShapePosition(g),y=o.shapePositionToRange(g)):y=b=n.identity;var x=p+\"0\",_=p+\"1\",w=t[x],M=t[_];t[x]=y(t[x],!0),t[_]=y(t[_],!0),i.coercePosition(e,m,u,v,x,.25),i.coercePosition(e,m,u,v,_,.75),e[x]=b(e[x]),e[_]=b(e[_]),t[x]=w,t[_]=M}}return\"path\"===h?u(\"path\"):n.noneOrAll(t,e,[\"x0\",\"x1\",\"y0\",\"y1\"]),e}},{\"../../lib\":728,\"../../plots/cartesian/axes\":772,\"./attributes\":681,\"./helpers\":686}],689:[function(t,e,r){\"use strict\";var n=t(\"../../plots/font_attributes\"),i=t(\"../../plots/pad_attributes\"),a=t(\"../../lib/extend\").extendDeepAll,o=t(\"../../plot_api/edit_types\").overrideAll,s=t(\"../../plots/animation_attributes\"),l=t(\"./constants\"),u={_isLinkedToArray:\"step\",method:{valType:\"enumerated\",values:[\"restyle\",\"relayout\",\"animate\",\"update\",\"skip\"],dflt:\"restyle\"},args:{valType:\"info_array\",freeLength:!0,items:[{valType:\"any\"},{valType:\"any\"},{valType:\"any\"}]},label:{valType:\"string\"},value:{valType:\"string\"},execute:{valType:\"boolean\",dflt:!0}};e.exports=o({_isLinkedToArray:\"slider\",visible:{valType:\"boolean\",dflt:!0},active:{valType:\"number\",min:0,dflt:0},steps:u,lenmode:{valType:\"enumerated\",values:[\"fraction\",\"pixels\"],dflt:\"fraction\"},len:{valType:\"number\",min:0,dflt:1},x:{valType:\"number\",min:-2,max:3,dflt:0},pad:a({},i,{},{t:{dflt:20}}),xanchor:{valType:\"enumerated\",values:[\"auto\",\"left\",\"center\",\"right\"],dflt:\"left\"},y:{valType:\"number\",min:-2,max:3,dflt:0},yanchor:{valType:\"enumerated\",values:[\"auto\",\"top\",\"middle\",\"bottom\"],dflt:\"top\"},transition:{duration:{valType:\"number\",min:0,dflt:150},easing:{valType:\"enumerated\",values:s.transition.easing.values,dflt:\"cubic-in-out\"}},currentvalue:{visible:{valType:\"boolean\",dflt:!0},xanchor:{valType:\"enumerated\",values:[\"left\",\"center\",\"right\"],dflt:\"left\"},offset:{valType:\"number\",dflt:10},prefix:{valType:\"string\"},suffix:{valType:\"string\"},font:n({})},font:n({}),activebgcolor:{valType:\"color\",dflt:l.gripBgActiveColor},bgcolor:{valType:\"color\",dflt:l.railBgColor},bordercolor:{valType:\"color\",dflt:l.railBorderColor},borderwidth:{valType:\"number\",min:0,dflt:l.railBorderWidth},ticklen:{valType:\"number\",min:0,dflt:l.tickLength},tickcolor:{valType:\"color\",dflt:l.tickColor},tickwidth:{valType:\"number\",min:0,dflt:1},minorticklen:{valType:\"number\",min:0,dflt:l.minorTickLength}},\"arraydraw\",\"from-root\")},{\"../../lib/extend\":717,\"../../plot_api/edit_types\":756,\"../../plots/animation_attributes\":768,\"../../plots/font_attributes\":796,\"../../plots/pad_attributes\":830,\"./constants\":690}],690:[function(t,e,r){\"use strict\";e.exports={name:\"sliders\",containerClassName:\"slider-container\",groupClassName:\"slider-group\",inputAreaClass:\"slider-input-area\",railRectClass:\"slider-rail-rect\",railTouchRectClass:\"slider-rail-touch-rect\",gripRectClass:\"slider-grip-rect\",tickRectClass:\"slider-tick-rect\",inputProxyClass:\"slider-input-proxy\",labelsClass:\"slider-labels\",labelGroupClass:\"slider-label-group\",labelClass:\"slider-label\",currentValueClass:\"slider-current-value\",railHeight:5,menuIndexAttrName:\"slider-active-index\",autoMarginIdRoot:\"slider-\",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:\"#bec8d9\",railBgColor:\"#f8fafc\",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:\"#bec8d9\",gripBgColor:\"#f6f8fa\",gripBgActiveColor:\"#dbdde0\",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:\"#333\",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:\"#333\",minorTickLength:4,currentValuePadding:8,currentValueInset:0}},{}],691:[function(t,e,r){\"use strict\";function n(t,e,r){function n(r,n){return a.coerce(t,e,s,r,n)}n(\"visible\",i(t,e).length>0)&&(n(\"active\"),n(\"x\"),n(\"y\"),a.noneOrAll(t,e,[\"x\",\"y\"]),n(\"xanchor\"),n(\"yanchor\"),n(\"len\"),n(\"lenmode\"),n(\"pad.t\"),n(\"pad.r\"),n(\"pad.b\"),n(\"pad.l\"),a.coerceFont(n,\"font\",r.font),n(\"currentvalue.visible\")&&(n(\"currentvalue.xanchor\"),n(\"currentvalue.prefix\"),n(\"currentvalue.suffix\"),n(\"currentvalue.offset\"),a.coerceFont(n,\"currentvalue.font\",e.font)),n(\"transition.duration\"),n(\"transition.easing\"),n(\"bgcolor\"),n(\"activebgcolor\"),n(\"bordercolor\"),n(\"borderwidth\"),n(\"ticklen\"),n(\"tickwidth\"),n(\"tickcolor\"),n(\"minorticklen\"))}function i(t,e){function r(t,e){return a.coerce(n,i,c,t,e)}for(var n,i,o=t.steps||[],s=e.steps=[],l=0;l<o.length;l++)n=o[l],i={},r(\"method\"),a.isPlainObject(n)&&(\"skip\"===i.method||Array.isArray(n.args))&&(r(\"args\"),r(\"label\",\"step-\"+l),r(\"value\",i.label),r(\"execute\"),s.push(i));return s}var a=t(\"../../lib\"),o=t(\"../../plots/array_container_defaults\"),s=t(\"./attributes\"),l=t(\"./constants\"),u=l.name,c=s.steps;e.exports=function(t,e){o(t,e,{name:u,handleItemDefaults:n})}},{\"../../lib\":728,\"../../plots/array_container_defaults\":769,\"./attributes\":689,\"./constants\":690}],692:[function(t,e,r){\"use strict\";function n(t,e){for(var r=t[E.name],n=[],i=0;i<r.length;i++){var a=r[i];a.visible&&a.steps.length&&(a.gd=e,n.push(a))}return n}function i(t){return t._index}function a(t,e){var r=A.tester.selectAll(\"g.\"+E.labelGroupClass).data(e.steps);r.enter().append(\"g\").classed(E.labelGroupClass,!0);var n=0,i=0;r.each(function(t){var r=w.select(this),a=u(r,{step:t},e),o=a.node();if(o){var s=A.bBox(o);i=Math.max(i,s.height),n=Math.max(n,s.width)}}),r.remove(),e.inputAreaWidth=Math.max(E.railWidth,E.gripHeight);var a=t._fullLayout._size;e.lx=a.l+a.w*e.x,e.ly=a.t+a.h*(1-e.y),\"fraction\"===e.lenmode?e.outerLength=Math.round(a.w*e.len):e.outerLength=e.len,e.lenPad=Math.round(.5*E.gripWidth),e.inputAreaStart=0,e.inputAreaLength=Math.round(e.outerLength-e.pad.l-e.pad.r);var o=e.inputAreaLength-2*E.stepInset,l=o/(e.steps.length-1),c=n+E.labelPadding;if(e.labelStride=Math.max(1,Math.ceil(c/l)),e.labelHeight=i,e.currentValueMaxWidth=0,e.currentValueHeight=0,e.currentValueTotalHeight=0,e.currentValueMaxLines=1,e.currentvalue.visible){var h=A.tester.append(\"g\");r.each(function(t){var r=s(h,e,t.label),n=r.node()&&A.bBox(r.node())||{width:0,height:0},i=T.lineCount(r);e.currentValueMaxWidth=Math.max(e.currentValueMaxWidth,Math.ceil(n.width)),e.currentValueHeight=Math.max(e.currentValueHeight,Math.ceil(n.height)),e.currentValueMaxLines=Math.max(e.currentValueMaxLines,i)}),e.currentValueTotalHeight=e.currentValueHeight+e.currentvalue.offset,h.remove()}e.height=e.currentValueTotalHeight+E.tickOffset+e.ticklen+E.labelOffset+e.labelHeight+e.pad.t+e.pad.b;var f=\"left\";S.isRightAnchor(e)&&(e.lx-=e.outerLength,f=\"right\"),S.isCenterAnchor(e)&&(e.lx-=e.outerLength/2,f=\"center\");var d=\"top\";S.isBottomAnchor(e)&&(e.ly-=e.height,d=\"bottom\"),S.isMiddleAnchor(e)&&(e.ly-=e.height/2,d=\"middle\"),e.outerLength=Math.ceil(e.outerLength),e.height=Math.ceil(e.height),e.lx=Math.round(e.lx),e.ly=Math.round(e.ly),M.autoMargin(t,E.autoMarginIdRoot+e._index,{x:e.x,y:e.y,l:e.outerLength*({right:1,center:.5}[f]||0),r:e.outerLength*({left:1,center:.5}[f]||0),b:e.height*({top:1,middle:.5}[d]||0),t:e.height*({bottom:1,middle:.5}[d]||0)})}function o(t,e,r){r.active>=r.steps.length&&(r.active=0),e.call(s,r).call(x,r).call(c,r).call(p,r).call(b,t,r).call(l,t,r),A.setTranslate(e,r.lx+r.pad.l,r.ly+r.pad.t),e.call(v,r,r.active/(r.steps.length-1),!1),e.call(s,r)}function s(t,e,r){if(e.currentvalue.visible){var n,i,a=t.selectAll(\"text\").data([0]);switch(e.currentvalue.xanchor){case\"right\":n=e.inputAreaLength-E.currentValueInset-e.currentValueMaxWidth,i=\"left\";break;case\"center\":n=.5*e.inputAreaLength,i=\"middle\";break;default:n=E.currentValueInset,i=\"left\"}a.enter().append(\"text\").classed(E.labelClass,!0).classed(\"user-select-none\",!0).attr({\"text-anchor\":i,\"data-notex\":1});var o=e.currentvalue.prefix?e.currentvalue.prefix:\"\";if(\"string\"==typeof r)o+=r;else{o+=e.steps[e.active].label}e.currentvalue.suffix&&(o+=e.currentvalue.suffix),a.call(A.font,e.currentvalue.font).text(o).call(T.convertToTspans,e.gd);var s=T.lineCount(a),l=(e.currentValueMaxLines+1-s)*e.currentvalue.font.size*L;return T.positionText(a,n,l),a}}function l(t,e,r){var n=t.selectAll(\"rect.\"+E.gripRectClass).data([0]);n.enter().append(\"rect\").classed(E.gripRectClass,!0).call(d,e,t,r).style(\"pointer-events\",\"all\"),n.attr({width:E.gripWidth,height:E.gripHeight,rx:E.gripRadius,ry:E.gripRadius}).call(k.stroke,r.bordercolor).call(k.fill,r.bgcolor).style(\"stroke-width\",r.borderwidth+\"px\")}function u(t,e,r){var n=t.selectAll(\"text\").data([0]);return n.enter().append(\"text\").classed(E.labelClass,!0).classed(\"user-select-none\",!0).attr({\"text-anchor\":\"middle\",\"data-notex\":1}),n.call(A.font,r.font).text(e.step.label).call(T.convertToTspans,r.gd),n}function c(t,e){var r=t.selectAll(\"g.\"+E.labelsClass).data([0]);r.enter().append(\"g\").classed(E.labelsClass,!0);var n=r.selectAll(\"g.\"+E.labelGroupClass).data(e.labelSteps);n.enter().append(\"g\").classed(E.labelGroupClass,!0),n.exit().remove(),n.each(function(t){var r=w.select(this);r.call(u,t,e),A.setTranslate(r,g(e,t.fraction),E.tickOffset+e.ticklen+e.font.size*L+E.labelOffset+e.currentValueTotalHeight)})}function h(t,e,r,n,i){var a=Math.round(n*(r.steps.length-1));a!==r.active&&f(t,e,r,a,!0,i)}function f(t,e,r,n,i,a){var o=r.active;r._input.active=r.active=n;var l=r.steps[r.active];e.call(v,r,r.active/(r.steps.length-1),a),e.call(s,r),t.emit(\"plotly_sliderchange\",{slider:r,step:r.steps[r.active],interaction:i,previousActive:o}),l&&l.method&&i&&(e._nextMethod?(e._nextMethod.step=l,e._nextMethod.doCallback=i,e._nextMethod.doTransition=a):(e._nextMethod={step:l,doCallback:i,doTransition:a},e._nextMethodRaf=window.requestAnimationFrame(function(){var r=e._nextMethod.step;r.method&&(r.execute&&M.executeAPICommand(t,r.method,r.args),e._nextMethod=null,e._nextMethodRaf=null)})))}function d(t,e,r){function n(){return r.data()[0]}var i=r.node(),a=w.select(e);t.on(\"mousedown\",function(){var t=n();e.emit(\"plotly_sliderstart\",{slider:t});var o=r.select(\".\"+E.gripRectClass);w.event.stopPropagation(),w.event.preventDefault(),o.call(k.fill,t.activebgcolor);var s=y(t,w.mouse(i)[0]);h(e,r,t,s,!0),t._dragging=!0,a.on(\"mousemove\",function(){var t=n(),a=y(t,w.mouse(i)[0]);h(e,r,t,a,!1)}),a.on(\"mouseup\",function(){var t=n();t._dragging=!1,o.call(k.fill,t.bgcolor),a.on(\"mouseup\",null),a.on(\"mousemove\",null),e.emit(\"plotly_sliderend\",{slider:t,step:t.steps[t.active]})})})}function p(t,e){var r=t.selectAll(\"rect.\"+E.tickRectClass).data(e.steps);r.enter().append(\"rect\").classed(E.tickRectClass,!0),r.exit().remove(),r.attr({width:e.tickwidth+\"px\",\"shape-rendering\":\"crispEdges\"}),r.each(function(t,r){var n=r%e.labelStride==0,i=w.select(this);i.attr({height:n?e.ticklen:e.minorticklen}).call(k.fill,e.tickcolor),A.setTranslate(i,g(e,r/(e.steps.length-1))-.5*e.tickwidth,(n?E.tickOffset:E.minorTickOffset)+e.currentValueTotalHeight)})}function m(t){t.labelSteps=[];for(var e=t.steps.length,r=0;r<e;r+=t.labelStride)t.labelSteps.push({fraction:r/(e-1),step:t.steps[r]})}function v(t,e,r,n){var i=t.select(\"rect.\"+E.gripRectClass),a=g(e,r);if(!e._invokingCommand){var o=i;n&&e.transition.duration>0&&(o=o.transition().duration(e.transition.duration).ease(e.transition.easing)),o.attr(\"transform\",\"translate(\"+(a-.5*E.gripWidth)+\",\"+e.currentValueTotalHeight+\")\")}}function g(t,e){return t.inputAreaStart+E.stepInset+(t.inputAreaLength-2*E.stepInset)*Math.min(1,Math.max(0,e))}function y(t,e){return Math.min(1,Math.max(0,(e-E.stepInset-t.inputAreaStart)/(t.inputAreaLength-2*E.stepInset-2*t.inputAreaStart)))}function b(t,e,r){var n=t.selectAll(\"rect.\"+E.railTouchRectClass).data([0]);n.enter().append(\"rect\").classed(E.railTouchRectClass,!0).call(d,e,t,r).style(\"pointer-events\",\"all\"),n.attr({width:r.inputAreaLength,height:Math.max(r.inputAreaWidth,E.tickOffset+r.ticklen+r.labelHeight)}).call(k.fill,r.bgcolor).attr(\"opacity\",0),A.setTranslate(n,0,r.currentValueTotalHeight)}function x(t,e){var r=t.selectAll(\"rect.\"+E.railRectClass).data([0]);r.enter().append(\"rect\").classed(E.railRectClass,!0);var n=e.inputAreaLength-2*E.railInset;r.attr({width:n,height:E.railWidth,rx:E.railRadius,ry:E.railRadius,\"shape-rendering\":\"crispEdges\"}).call(k.stroke,e.bordercolor).call(k.fill,e.bgcolor).style(\"stroke-width\",e.borderwidth+\"px\"),A.setTranslate(r,E.railInset,.5*(e.inputAreaWidth-E.railWidth)+e.currentValueTotalHeight)}function _(t){for(var e=t._fullLayout._pushmargin||{},r=Object.keys(e),n=0;n<r.length;n++){var i=r[n];-1!==i.indexOf(E.autoMarginIdRoot)&&M.autoMargin(t,i)}}var w=t(\"d3\"),M=t(\"../../plots/plots\"),k=t(\"../color\"),A=t(\"../drawing\"),T=t(\"../../lib/svg_text_utils\"),S=t(\"../legend/anchor_utils\"),E=t(\"./constants\"),L=t(\"../../constants/alignment\").LINE_SPACING;e.exports=function(t){var e=t._fullLayout,r=n(e,t),s=e._infolayer.selectAll(\"g.\"+E.containerClassName).data(r.length>0?[0]:[]);if(s.enter().append(\"g\").classed(E.containerClassName,!0).style(\"cursor\",\"ew-resize\"),s.exit().remove(),s.exit().size()&&_(t),0!==r.length){var l=s.selectAll(\"g.\"+E.groupClassName).data(r,i);l.enter().append(\"g\").classed(E.groupClassName,!0),l.exit().each(function(e){w.select(this).remove(),e._commandObserver.remove(),delete e._commandObserver,M.autoMargin(t,E.autoMarginIdRoot+e._index)});for(var u=0;u<r.length;u++){var c=r[u];a(t,c)}l.each(function(e){if(!(e.steps.length<2)){var r=w.select(this);m(e),M.manageCommandObserver(t,e,e.steps,function(e){var n=r.data()[0];n.active!==e.index&&(n._dragging||f(t,r,n,e.index,!1,!0))}),o(t,w.select(this),e)}})}}},{\"../../constants/alignment\":701,\"../../lib/svg_text_utils\":750,\"../../plots/plots\":831,\"../color\":604,\"../drawing\":628,\"../legend/anchor_utils\":654,\"./constants\":690,d3:122}],693:[function(t,e,r){\"use strict\";var n=t(\"./constants\");e.exports={moduleType:\"component\",name:n.name,layoutAttributes:t(\"./attributes\"),supplyLayoutDefaults:t(\"./defaults\"),draw:t(\"./draw\")}},{\"./attributes\":689,\"./constants\":690,\"./defaults\":691,\"./draw\":692}],694:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"fast-isnumeric\"),a=t(\"../../plotly\"),o=t(\"../../plots/plots\"),s=t(\"../../lib\"),l=t(\"../drawing\"),u=t(\"../color\"),c=t(\"../../lib/svg_text_utils\"),h=t(\"../../constants/interactions\"),f=/Click to enter .+ title/;(e.exports={}).draw=function(t,e,r){function d(t){s.syncOrAsync([p,m],t)}function p(e){\n", "return e.attr(\"transform\",M?\"rotate(\"+[M.rotate,w.x,w.y]+\") translate(0, \"+M.offset+\")\":null),e.style({\"font-family\":T,\"font-size\":n.round(S,2)+\"px\",fill:u.rgb(E),opacity:L*u.opacity(E),\"font-weight\":o.fontWeight}).attr(w).call(c.convertToTspans,t),o.previousPromises(t)}function m(t){var e=n.select(t.node().parentNode);if(_&&_.selection&&_.side&&I){e.attr(\"transform\",null);var r=0,a={left:\"right\",right:\"left\",top:\"bottom\",bottom:\"top\"}[_.side],o=-1!==[\"left\",\"top\"].indexOf(_.side)?-1:1,u=i(_.pad)?_.pad:2,c=l.bBox(e.node()),h={left:0,top:0,right:A.width,bottom:A.height},f=_.maxShift||(h[_.side]-c[_.side])*(\"left\"===_.side||\"top\"===_.side?-1:1);if(f<0)r=f;else{var d=_.offsetLeft||0,p=_.offsetTop||0;c.left-=d,c.right-=d,c.top-=p,c.bottom-=p,_.selection.each(function(){var t=l.bBox(this);s.bBoxIntersect(c,t,u)&&(r=Math.max(r,o*(t[_.side]-c[a])+u))}),r=Math.min(f,r)}if(r>0||f<0){var m={left:[-r,0],right:[r,0],top:[0,-r],bottom:[0,r]}[_.side];e.attr(\"transform\",\"translate(\"+m+\")\")}}}var v,g=r.propContainer,y=r.propName,b=r.traceIndex,x=r.dfltName,_=r.avoid||{},w=r.attributes,M=r.transform,k=r.containerGroup,A=t._fullLayout,T=g.titlefont.family,S=g.titlefont.size,E=g.titlefont.color,L=1,C=!1,I=g.title.trim();\"title\"===y?v=\"titleText\":-1!==y.indexOf(\"axis\")?v=\"axisTitleText\":y.indexOf(!0)&&(v=\"colorbarTitleText\");var z=t._context.edits[v];\"\"===I&&(L=0),I.match(f)&&(L=.2,C=!0,z||(I=\"\"));var D=I||z;k||(k=A._infolayer.selectAll(\".g-\"+e).data([0]),k.enter().append(\"g\").classed(\"g-\"+e,!0));var P=k.selectAll(\"text\").data(D?[0]:[]);if(P.enter().append(\"text\"),P.text(I).attr(\"class\",e),P.exit().remove(),D){P.call(d);var O=\"Click to enter \"+x+\" title\";z&&(I?P.on(\".opacity\",null):function(){L=0,C=!0,I=O,P.text(I).on(\"mouseover.opacity\",function(){n.select(this).transition().duration(h.SHOW_PLACEHOLDER).style(\"opacity\",1)}).on(\"mouseout.opacity\",function(){n.select(this).transition().duration(h.HIDE_PLACEHOLDER).style(\"opacity\",0)})}(),P.call(c.makeEditable,{gd:t}).on(\"edit\",function(e){void 0!==b?a.restyle(t,y,e,b):a.relayout(t,y,e)}).on(\"cancel\",function(){this.text(this.attr(\"data-unformatted\")).call(d)}).on(\"input\",function(t){this.text(t||\" \").call(c.positionText,w.x,w.y)})),P.classed(\"js-placeholder\",C)}}},{\"../../constants/interactions\":706,\"../../lib\":728,\"../../lib/svg_text_utils\":750,\"../../plotly\":767,\"../../plots/plots\":831,\"../color\":604,\"../drawing\":628,d3:122,\"fast-isnumeric\":131}],695:[function(t,e,r){\"use strict\";var n=t(\"../../plots/font_attributes\"),i=t(\"../color/attributes\"),a=t(\"../../lib/extend\").extendFlat,o=t(\"../../plot_api/edit_types\").overrideAll,s=t(\"../../plots/pad_attributes\"),l={_isLinkedToArray:\"button\",method:{valType:\"enumerated\",values:[\"restyle\",\"relayout\",\"animate\",\"update\",\"skip\"],dflt:\"restyle\"},args:{valType:\"info_array\",freeLength:!0,items:[{valType:\"any\"},{valType:\"any\"},{valType:\"any\"}]},label:{valType:\"string\",dflt:\"\"},execute:{valType:\"boolean\",dflt:!0}};e.exports=o({_isLinkedToArray:\"updatemenu\",_arrayAttrRegexps:[/^updatemenus\\[(0|[1-9][0-9]+)\\]\\.buttons/],visible:{valType:\"boolean\"},type:{valType:\"enumerated\",values:[\"dropdown\",\"buttons\"],dflt:\"dropdown\"},direction:{valType:\"enumerated\",values:[\"left\",\"right\",\"up\",\"down\"],dflt:\"down\"},active:{valType:\"integer\",min:-1,dflt:0},showactive:{valType:\"boolean\",dflt:!0},buttons:l,x:{valType:\"number\",min:-2,max:3,dflt:-.05},xanchor:{valType:\"enumerated\",values:[\"auto\",\"left\",\"center\",\"right\"],dflt:\"right\"},y:{valType:\"number\",min:-2,max:3,dflt:1},yanchor:{valType:\"enumerated\",values:[\"auto\",\"top\",\"middle\",\"bottom\"],dflt:\"top\"},pad:a({},s,{}),font:n({}),bgcolor:{valType:\"color\"},bordercolor:{valType:\"color\",dflt:i.borderLine},borderwidth:{valType:\"number\",min:0,dflt:1,editType:\"arraydraw\"}},\"arraydraw\",\"from-root\")},{\"../../lib/extend\":717,\"../../plot_api/edit_types\":756,\"../../plots/font_attributes\":796,\"../../plots/pad_attributes\":830,\"../color/attributes\":603}],696:[function(t,e,r){\"use strict\";e.exports={name:\"updatemenus\",containerClassName:\"updatemenu-container\",headerGroupClassName:\"updatemenu-header-group\",headerClassName:\"updatemenu-header\",headerArrowClassName:\"updatemenu-header-arrow\",dropdownButtonGroupClassName:\"updatemenu-dropdown-button-group\",dropdownButtonClassName:\"updatemenu-dropdown-button\",buttonClassName:\"updatemenu-button\",itemRectClassName:\"updatemenu-item-rect\",itemTextClassName:\"updatemenu-item-text\",menuIndexAttrName:\"updatemenu-active-index\",autoMarginIdRoot:\"updatemenu-\",blankHeaderOpts:{label:\" \"},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:\"#F4FAFF\",hoverColor:\"#F4FAFF\",arrowSymbol:{left:\"\\u25c4\",right:\"\\u25ba\",up:\"\\u25b2\",down:\"\\u25bc\"}}},{}],697:[function(t,e,r){\"use strict\";function n(t,e,r){function n(r,n){return a.coerce(t,e,s,r,n)}n(\"visible\",i(t,e).length>0)&&(n(\"active\"),n(\"direction\"),n(\"type\"),n(\"showactive\"),n(\"x\"),n(\"y\"),a.noneOrAll(t,e,[\"x\",\"y\"]),n(\"xanchor\"),n(\"yanchor\"),n(\"pad.t\"),n(\"pad.r\"),n(\"pad.b\"),n(\"pad.l\"),a.coerceFont(n,\"font\",r.font),n(\"bgcolor\",r.paper_bgcolor),n(\"bordercolor\"),n(\"borderwidth\"))}function i(t,e){function r(t,e){return a.coerce(n,i,c,t,e)}for(var n,i,o=t.buttons||[],s=e.buttons=[],l=0;l<o.length;l++)n=o[l],i={},r(\"method\"),a.isPlainObject(n)&&(\"skip\"===i.method||Array.isArray(n.args))&&(r(\"args\"),r(\"label\"),r(\"execute\"),i._index=l,s.push(i));return s}var a=t(\"../../lib\"),o=t(\"../../plots/array_container_defaults\"),s=t(\"./attributes\"),l=t(\"./constants\"),u=l.name,c=s.buttons;e.exports=function(t,e){o(t,e,{name:u,handleItemDefaults:n})}},{\"../../lib\":728,\"../../plots/array_container_defaults\":769,\"./attributes\":695,\"./constants\":696}],698:[function(t,e,r){\"use strict\";function n(t){for(var e=t[L.name],r=[],n=0;n<e.length;n++){var i=e[n];i.visible&&r.push(i)}return r}function i(t){return t._index}function a(t){return-1==+t.attr(L.menuIndexAttrName)}function o(t,e){return+t.attr(L.menuIndexAttrName)===e._index}function s(t,e,r,n,i,a,o,s){e._input.active=e.active=o,\"buttons\"===e.type?u(t,n,null,null,e):\"dropdown\"===e.type&&(i.attr(L.menuIndexAttrName,\"-1\"),l(t,n,i,a,e),s||u(t,n,i,a,e))}function l(t,e,r,n,i){var a=e.selectAll(\"g.\"+L.headerClassName).data([0]);a.enter().append(\"g\").classed(L.headerClassName,!0).style(\"pointer-events\",\"all\");var s=i.active,l=i.buttons[s]||L.blankHeaderOpts,c={y:i.pad.t,yPad:0,x:i.pad.l,xPad:0,index:0},h={width:i.headerWidth,height:i.headerHeight};a.call(f,i,l,t).call(b,i,c,h);var d=e.selectAll(\"text.\"+L.headerArrowClassName).data([0]);d.enter().append(\"text\").classed(L.headerArrowClassName,!0).classed(\"user-select-none\",!0).attr(\"text-anchor\",\"end\").call(A.font,i.font).text(L.arrowSymbol[i.direction]),d.attr({x:i.headerWidth-L.arrowOffsetX+i.pad.l,y:i.headerHeight/2+L.textOffsetY+i.pad.t}),a.on(\"click\",function(){r.call(x),r.attr(L.menuIndexAttrName,o(r,i)?-1:String(i._index)),u(t,e,r,n,i)}),a.on(\"mouseover\",function(){a.call(v)}),a.on(\"mouseout\",function(){a.call(g,i)}),A.setTranslate(e,i.lx,i.ly)}function u(t,e,r,n,i){r||(r=e,r.attr(\"pointer-events\",\"all\"));var o=a(r)&&\"buttons\"!==i.type?[]:i.buttons,l=\"dropdown\"===i.type?L.dropdownButtonClassName:L.buttonClassName,u=r.selectAll(\"g.\"+l).data(o),d=u.enter().append(\"g\").classed(l,!0),p=u.exit();\"dropdown\"===i.type?(d.attr(\"opacity\",\"0\").transition().attr(\"opacity\",\"1\"),p.transition().attr(\"opacity\",\"0\").remove()):p.remove();var y=0,x=0,_=-1!==[\"up\",\"down\"].indexOf(i.direction);\"dropdown\"===i.type&&(_?x=i.headerHeight+L.gapButtonHeader:y=i.headerWidth+L.gapButtonHeader),\"dropdown\"===i.type&&\"up\"===i.direction&&(x=-L.gapButtonHeader+L.gapButton-i.openHeight),\"dropdown\"===i.type&&\"left\"===i.direction&&(y=-L.gapButtonHeader+L.gapButton-i.openWidth);var k={x:i.lx+y+i.pad.l,y:i.ly+x+i.pad.t,yPad:L.gapButton,xPad:L.gapButton,index:0},A={l:k.x+i.borderwidth,t:k.y+i.borderwidth};u.each(function(a,o){var l=w.select(this);l.call(f,i,a,t).call(b,i,k),l.on(\"click\",function(){w.event.defaultPrevented||(s(t,i,a,e,r,n,o),a.execute&&M.executeAPICommand(t,a.method,a.args),t.emit(\"plotly_buttonclicked\",{menu:i,button:a,active:i.active}))}),l.on(\"mouseover\",function(){l.call(v)}),l.on(\"mouseout\",function(){l.call(g,i),u.call(m,i)})}),u.call(m,i),_?(A.w=Math.max(i.openWidth,i.headerWidth),A.h=k.y-A.t):(A.w=k.x-A.l,A.h=Math.max(i.openHeight,i.headerHeight)),A.direction=i.direction,n&&(u.size()?c(t,e,r,n,i,A):h(n))}function c(t,e,r,n,i,a){var o,s,l,u=i.direction,c=\"up\"===u||\"down\"===u,h=i.active;if(c)for(s=0,l=0;l<h;l++)s+=i.heights[l]+L.gapButton;else for(o=0,l=0;l<h;l++)o+=i.widths[l]+L.gapButton;n.enable(a,o,s),n.hbar&&n.hbar.attr(\"opacity\",\"0\").transition().attr(\"opacity\",\"1\"),n.vbar&&n.vbar.attr(\"opacity\",\"0\").transition().attr(\"opacity\",\"1\")}function h(t){var e=!!t.hbar,r=!!t.vbar;e&&t.hbar.transition().attr(\"opacity\",\"0\").each(\"end\",function(){e=!1,r||t.disable()}),r&&t.vbar.transition().attr(\"opacity\",\"0\").each(\"end\",function(){r=!1,e||t.disable()})}function f(t,e,r,n){t.call(d,e).call(p,e,r,n)}function d(t,e){var r=t.selectAll(\"rect\").data([0]);r.enter().append(\"rect\").classed(L.itemRectClassName,!0).attr({rx:L.rx,ry:L.ry,\"shape-rendering\":\"crispEdges\"}),r.call(k.stroke,e.bordercolor).call(k.fill,e.bgcolor).style(\"stroke-width\",e.borderwidth+\"px\")}function p(t,e,r,n){var i=t.selectAll(\"text\").data([0]);i.enter().append(\"text\").classed(L.itemTextClassName,!0).classed(\"user-select-none\",!0).attr({\"text-anchor\":\"start\",\"data-notex\":1}),i.call(A.font,e.font).text(r.label).call(T.convertToTspans,n)}function m(t,e){var r=e.active;t.each(function(t,n){var i=w.select(this);n===r&&e.showactive&&i.select(\"rect.\"+L.itemRectClassName).call(k.fill,L.activeColor)})}function v(t){t.select(\"rect.\"+L.itemRectClassName).call(k.fill,L.hoverColor)}function g(t,e){t.select(\"rect.\"+L.itemRectClassName).call(k.fill,e.bgcolor)}function y(t,e){e.width1=0,e.height1=0,e.heights=[],e.widths=[],e.totalWidth=0,e.totalHeight=0,e.openWidth=0,e.openHeight=0,e.lx=0,e.ly=0;var r=A.tester.selectAll(\"g.\"+L.dropdownButtonClassName).data(e.buttons);r.enter().append(\"g\").classed(L.dropdownButtonClassName,!0);var n=-1!==[\"up\",\"down\"].indexOf(e.direction);r.each(function(r,i){var a=w.select(this);a.call(f,e,r,t);var o=a.select(\".\"+L.itemTextClassName),s=o.node()&&A.bBox(o.node()).width,l=Math.max(s+L.textPadX,L.minWidth),u=e.font.size*E,c=T.lineCount(o),h=Math.max(u*c,L.minHeight)+L.textOffsetY;h=Math.ceil(h),l=Math.ceil(l),e.widths[i]=l,e.heights[i]=h,e.height1=Math.max(e.height1,h),e.width1=Math.max(e.width1,l),n?(e.totalWidth=Math.max(e.totalWidth,l),e.openWidth=e.totalWidth,e.totalHeight+=h+L.gapButton,e.openHeight+=h+L.gapButton):(e.totalWidth+=l+L.gapButton,e.openWidth+=l+L.gapButton,e.totalHeight=Math.max(e.totalHeight,h),e.openHeight=e.totalHeight)}),n?e.totalHeight-=L.gapButton:e.totalWidth-=L.gapButton,e.headerWidth=e.width1+L.arrowPadX,e.headerHeight=e.height1,\"dropdown\"===e.type&&(n?(e.width1+=L.arrowPadX,e.totalHeight=e.height1):e.totalWidth=e.width1,e.totalWidth+=L.arrowPadX),r.remove();var i=e.totalWidth+e.pad.l+e.pad.r,a=e.totalHeight+e.pad.t+e.pad.b,o=t._fullLayout._size;e.lx=o.l+o.w*e.x,e.ly=o.t+o.h*(1-e.y);var s=\"left\";S.isRightAnchor(e)&&(e.lx-=i,s=\"right\"),S.isCenterAnchor(e)&&(e.lx-=i/2,s=\"center\");var l=\"top\";S.isBottomAnchor(e)&&(e.ly-=a,l=\"bottom\"),S.isMiddleAnchor(e)&&(e.ly-=a/2,l=\"middle\"),e.totalWidth=Math.ceil(e.totalWidth),e.totalHeight=Math.ceil(e.totalHeight),e.lx=Math.round(e.lx),e.ly=Math.round(e.ly),M.autoMargin(t,L.autoMarginIdRoot+e._index,{x:e.x,y:e.y,l:i*({right:1,center:.5}[s]||0),r:i*({left:1,center:.5}[s]||0),b:a*({top:1,middle:.5}[l]||0),t:a*({bottom:1,middle:.5}[l]||0)})}function b(t,e,r,n){n=n||{};var i=t.select(\".\"+L.itemRectClassName),a=t.select(\".\"+L.itemTextClassName),o=e.borderwidth,s=r.index;A.setTranslate(t,o+r.x,o+r.y);var l=-1!==[\"up\",\"down\"].indexOf(e.direction),u=n.height||(l?e.heights[s]:e.height1);i.attr({x:0,y:0,width:n.width||(l?e.width1:e.widths[s]),height:u});var c=e.font.size*E,h=T.lineCount(a),f=(h-1)*c/2;T.positionText(a,L.textOffsetX,u/2-f+L.textOffsetY),l?r.y+=e.heights[s]+r.yPad:r.x+=e.widths[s]+r.xPad,r.index++}function x(t){t.selectAll(\"g.\"+L.dropdownButtonClassName).remove()}function _(t){for(var e=t._fullLayout._pushmargin||{},r=Object.keys(e),n=0;n<r.length;n++){var i=r[n];-1!==i.indexOf(L.autoMarginIdRoot)&&M.autoMargin(t,i)}}var w=t(\"d3\"),M=t(\"../../plots/plots\"),k=t(\"../color\"),A=t(\"../drawing\"),T=t(\"../../lib/svg_text_utils\"),S=t(\"../legend/anchor_utils\"),E=t(\"../../constants/alignment\").LINE_SPACING,L=t(\"./constants\"),C=t(\"./scrollbox\");e.exports=function(t){var e=t._fullLayout,r=n(e),a=e._infolayer.selectAll(\"g.\"+L.containerClassName).data(r.length>0?[0]:[]);if(a.enter().append(\"g\").classed(L.containerClassName,!0).style(\"cursor\",\"pointer\"),a.exit().remove(),a.exit().size()&&_(t),0!==r.length){var c=a.selectAll(\"g.\"+L.headerGroupClassName).data(r,i);c.enter().append(\"g\").classed(L.headerGroupClassName,!0);var h=a.selectAll(\"g.\"+L.dropdownButtonGroupClassName).data([0]);h.enter().append(\"g\").classed(L.dropdownButtonGroupClassName,!0).style(\"pointer-events\",\"all\");for(var f=0;f<r.length;f++){var d=r[f];y(t,d)}var p=\"updatemenus\"+e._uid,m=new C(t,h,p);c.enter().size()&&h.call(x).attr(L.menuIndexAttrName,\"-1\"),c.exit().each(function(e){w.select(this).remove(),h.call(x).attr(L.menuIndexAttrName,\"-1\"),M.autoMargin(t,L.autoMarginIdRoot+e._index)}),c.each(function(e){var r=w.select(this),n=\"dropdown\"===e.type?h:null;M.manageCommandObserver(t,e,e.buttons,function(i){s(t,e,e.buttons[i.index],r,n,m,i.index,!0)}),\"dropdown\"===e.type?(l(t,r,h,m,e),o(h,e)&&u(t,r,h,m,e)):u(t,r,null,null,e)})}}},{\"../../constants/alignment\":701,\"../../lib/svg_text_utils\":750,\"../../plots/plots\":831,\"../color\":604,\"../drawing\":628,\"../legend/anchor_utils\":654,\"./constants\":696,\"./scrollbox\":700,d3:122}],699:[function(t,e,r){arguments[4][693][0].apply(r,arguments)},{\"./attributes\":695,\"./constants\":696,\"./defaults\":697,\"./draw\":698,dup:693}],700:[function(t,e,r){\"use strict\";function n(t,e,r){this.gd=t,this.container=e,this.id=r,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll(\"rect.scrollbox-bg\").data([0]),this.bg.exit().on(\".drag\",null).on(\"wheel\",null).remove(),this.bg.enter().append(\"rect\").classed(\"scrollbox-bg\",!0).style(\"pointer-events\",\"all\").attr({opacity:0,x:0,y:0,width:0,height:0})}e.exports=n;var i=t(\"d3\"),a=t(\"../color\"),o=t(\"../drawing\"),s=t(\"../../lib\");n.barWidth=2,n.barLength=20,n.barRadius=2,n.barPad=1,n.barColor=\"#808BA4\",n.prototype.enable=function(t,e,r){var s=this.gd._fullLayout,l=s.width,u=s.height;this.position=t;var c,h,f,d,p=this.position.l,m=this.position.w,v=this.position.t,g=this.position.h,y=this.position.direction,b=\"down\"===y,x=\"left\"===y,_=\"right\"===y,w=\"up\"===y,M=m,k=g;b||x||_||w||(this.position.direction=\"down\",b=!0),b||w?(c=p,h=c+M,b?(f=v,d=Math.min(f+k,u),k=d-f):(d=v+k,f=Math.max(d-k,0),k=d-f)):(f=v,d=f+k,x?(h=p+M,c=Math.max(h-M,0),M=h-c):(c=p,h=Math.min(c+M,l),M=h-c)),this._box={l:c,t:f,w:M,h:k};var A=m>M,T=n.barLength+2*n.barPad,S=n.barWidth+2*n.barPad,E=p,L=v+g;L+S>u&&(L=u-S);var C=this.container.selectAll(\"rect.scrollbar-horizontal\").data(A?[0]:[]);C.exit().on(\".drag\",null).remove(),C.enter().append(\"rect\").classed(\"scrollbar-horizontal\",!0).call(a.fill,n.barColor),A?(this.hbar=C.attr({rx:n.barRadius,ry:n.barRadius,x:E,y:L,width:T,height:S}),this._hbarXMin=E+T/2,this._hbarTranslateMax=M-T):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var I=g>k,z=n.barWidth+2*n.barPad,D=n.barLength+2*n.barPad,P=p+m,O=v;P+z>l&&(P=l-z);var R=this.container.selectAll(\"rect.scrollbar-vertical\").data(I?[0]:[]);R.exit().on(\".drag\",null).remove(),R.enter().append(\"rect\").classed(\"scrollbar-vertical\",!0).call(a.fill,n.barColor),I?(this.vbar=R.attr({rx:n.barRadius,ry:n.barRadius,x:P,y:O,width:z,height:D}),this._vbarYMin=O+D/2,this._vbarTranslateMax=k-D):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var F=this.id,j=c-.5,N=I?h+z+.5:h+.5,B=f-.5,U=A?d+S+.5:d+.5,V=s._topdefs.selectAll(\"#\"+F).data(A||I?[0]:[]);if(V.exit().remove(),V.enter().append(\"clipPath\").attr(\"id\",F).append(\"rect\"),A||I?(this._clipRect=V.select(\"rect\").attr({x:Math.floor(j),y:Math.floor(B),width:Math.ceil(N)-Math.floor(j),height:Math.ceil(U)-Math.floor(B)}),this.container.call(o.setClipUrl,F),this.bg.attr({x:p,y:v,width:m,height:g})):(this.bg.attr({width:0,height:0}),this.container.on(\"wheel\",null).on(\".drag\",null).call(o.setClipUrl,null),delete this._clipRect),A||I){var H=i.behavior.drag().on(\"dragstart\",function(){i.event.sourceEvent.preventDefault()}).on(\"drag\",this._onBoxDrag.bind(this));this.container.on(\"wheel\",null).on(\"wheel\",this._onBoxWheel.bind(this)).on(\".drag\",null).call(H);var q=i.behavior.drag().on(\"dragstart\",function(){i.event.sourceEvent.preventDefault(),i.event.sourceEvent.stopPropagation()}).on(\"drag\",this._onBarDrag.bind(this));A&&this.hbar.on(\".drag\",null).call(q),I&&this.vbar.on(\".drag\",null).call(q)}this.setTranslate(e,r)},n.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on(\"wheel\",null).on(\".drag\",null).call(o.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(\".drag\",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(\".drag\",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)},n.prototype._onBoxDrag=function(){var t=this.translateX,e=this.translateY;this.hbar&&(t-=i.event.dx),this.vbar&&(e-=i.event.dy),this.setTranslate(t,e)},n.prototype._onBoxWheel=function(){var t=this.translateX,e=this.translateY;this.hbar&&(t+=i.event.deltaY),this.vbar&&(e+=i.event.deltaY),this.setTranslate(t,e)},n.prototype._onBarDrag=function(){var t=this.translateX,e=this.translateY;if(this.hbar){var r=t+this._hbarXMin,n=r+this._hbarTranslateMax;t=(s.constrain(i.event.x,r,n)-r)/(n-r)*(this.position.w-this._box.w)}if(this.vbar){var a=e+this._vbarYMin,o=a+this._vbarTranslateMax;e=(s.constrain(i.event.y,a,o)-a)/(o-a)*(this.position.h-this._box.h)}this.setTranslate(t,e)},n.prototype.setTranslate=function(t,e){var r=this.position.w-this._box.w,n=this.position.h-this._box.h;if(t=s.constrain(t||0,0,r),e=s.constrain(e||0,0,n),this.translateX=t,this.translateY=e,this.container.call(o.setTranslate,this._box.l-this.position.l-t,this._box.t-this.position.t-e),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+t-.5),y:Math.floor(this.position.t+e-.5)}),this.hbar){var i=t/r;this.hbar.call(o.setTranslate,t+i*this._hbarTranslateMax,e)}if(this.vbar){var a=e/n;this.vbar.call(o.setTranslate,t,e+a*this._vbarTranslateMax)}}},{\"../../lib\":728,\"../color\":604,\"../drawing\":628,d3:122}],701:[function(t,e,r){\"use strict\";e.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},LINE_SPACING:1.3,MID_SHIFT:.35}},{}],702:[function(t,e,r){\"use strict\";e.exports={solid:[1],dot:[1,1],dash:[4,1],longdash:[8,1],dashdot:[4,1,1,1],longdashdot:[8,1,1,1]}},{}],703:[function(t,e,r){\"use strict\";for(var n=t(\"../lib/extend\").extendFlat,i={circle:{unicode:\"\\u25cf\"},square:{unicode:\"\\u25a0\"},diamond:{unicode:\"\\u25c6\"},cross:{unicode:\"\\u271a\"},x:{unicode:\"\\u274c\"},\"triangle-up\":{unicode:\"\\u25b2\"},\"triangle-down\":{unicode:\"\\u25bc\"},\"triangle-left\":{unicode:\"\\u25c4\"},\"triangle-right\":{unicode:\"\\u25ba\"},\"triangle-ne\":{unicode:\"\\u25e5\"},\"triangle-nw\":{unicode:\"\\u25e4\"},\"triangle-se\":{unicode:\"\\u25e2\"},\"triangle-sw\":{unicode:\"\\u25e3\"},pentagon:{unicode:\"\\u2b1f\"},hexagon:{unicode:\"\\u2b22\"},hexagon2:{unicode:\"\\u2b23\"},star:{unicode:\"\\u2605\"},\"diamond-tall\":{unicode:\"\\u2666\"},bowtie:{unicode:\"\\u29d3\"},\"diamond-x\":{unicode:\"\\u2756\"},\"cross-thin\":{unicode:\"+\",noBorder:!0},asterisk:{unicode:\"\\u2733\",noBorder:!0},\"y-up\":{unicode:\"\\u2144\",noBorder:!0},\"y-down\":{unicode:\"Y\",noBorder:!0},\"line-ew\":{unicode:\"\\u2500\",noBorder:!0},\"line-ns\":{unicode:\"\\u2502\",noBorder:!0}},a={},o=Object.keys(i),s=0;s<o.length;s++){var l=o[s];a[l+\"-open\"]=n({},i[l])}var u={\"circle-cross-open\":{unicode:\"\\u2a01\",noFill:!0},\"circle-x-open\":{unicode:\"\\u2a02\",noFill:!0},\"square-cross-open\":{unicode:\"\\u229e\",noFill:!0},\"square-x-open\":{unicode:\"\\u22a0\",noFill:!0}};e.exports=n({},i,a,u)},{\"../lib/extend\":717}],704:[function(t,e,r){\"use strict\";e.exports={solid:[[],0],dot:[[.5,1],200],dash:[[.5,1],50],longdash:[[.5,1],10],dashdot:[[.5,.625,.875,1],50],longdashdot:[[.5,.7,.8,1],10]}},{}],705:[function(t,e,r){\"use strict\";e.exports={circle:\"\\u25cf\",\"circle-open\":\"\\u25cb\",square:\"\\u25a0\",\"square-open\":\"\\u25a1\",diamond:\"\\u25c6\",\"diamond-open\":\"\\u25c7\",cross:\"+\",x:\"\\u274c\"}},{}],706:[function(t,e,r){\"use strict\";e.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DBLCLICKDELAY:300,DESELECTDIM:.2}},{}],707:[function(t,e,r){\"use strict\";e.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE/1e4,ONEAVGYEAR:315576e5,ONEAVGMONTH:26298e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,EPOCHJD:2440587.5,ALMOST_EQUAL:1-1e-6,MINUS_SIGN:\"\\u2212\"}},{}],708:[function(t,e,r){\"use strict\";e.exports={entityToUnicode:{mu:\"\\u03bc\",\"#956\":\"\\u03bc\",amp:\"&\",\"#28\":\"&\",lt:\"<\",\"#60\":\"<\",gt:\">\",\"#62\":\">\",nbsp:\"\\xa0\",\"#160\":\"\\xa0\",times:\"\\xd7\",\"#215\":\"\\xd7\",plusmn:\"\\xb1\",\"#177\":\"\\xb1\",deg:\"\\xb0\",\"#176\":\"\\xb0\"}}},{}],709:[function(t,e,r){\"use strict\";r.xmlns=\"http://www.w3.org/2000/xmlns/\",r.svg=\"http://www.w3.org/2000/svg\",r.xlink=\"http://www.w3.org/1999/xlink\",r.svgAttrs={xmlns:r.svg,\"xmlns:xlink\":r.xlink}},{}],710:[function(t,e,r){\"use strict\";var n=t(\"./plotly\");r.version=\"1.31.0\",t(\"es6-promise\").polyfill(),t(\"../build/plotcss\"),t(\"./fonts/mathjax_config\"),r.plot=n.plot,r.newPlot=n.newPlot,r.restyle=n.restyle,r.relayout=n.relayout,r.redraw=n.redraw,r.update=n.update,r.extendTraces=n.extendTraces,r.prependTraces=n.prependTraces,r.addTraces=n.addTraces,r.deleteTraces=n.deleteTraces,r.moveTraces=n.moveTraces,r.purge=n.purge,r.setPlotConfig=t(\"./plot_api/set_plot_config\"),r.register=t(\"./plot_api/register\"),r.toImage=t(\"./plot_api/to_image\"),r.downloadImage=t(\"./snapshot/download\"),r.validate=t(\"./plot_api/validate\"),r.addFrames=n.addFrames,r.deleteFrames=n.deleteFrames,r.animate=n.animate,r.register(t(\"./traces/scatter\")),r.register([t(\"./components/fx\"),t(\"./components/legend\"),t(\"./components/annotations\"),t(\"./components/annotations3d\"),t(\"./components/shapes\"),t(\"./components/images\"),t(\"./components/updatemenus\"),t(\"./components/sliders\"),t(\"./components/rangeslider\"),t(\"./components/rangeselector\")]),r.Icons=t(\"../build/ploticon\"),r.Plots=n.Plots,r.Fx=t(\"./components/fx\"),r.Snapshot=t(\"./snapshot\"),r.PlotSchema=t(\"./plot_api/plot_schema\"),r.Queue=t(\"./lib/queue\"),r.d3=t(\"d3\")},{\"../build/plotcss\":1,\"../build/ploticon\":2,\"./components/annotations\":595,\"./components/annotations3d\":600,\"./components/fx\":645,\"./components/images\":653,\"./components/legend\":662,\"./components/rangeselector\":674,\"./components/rangeslider\":680,\"./components/shapes\":687,\"./components/sliders\":693,\"./components/updatemenus\":699,\"./fonts/mathjax_config\":711,\"./lib/queue\":741,\"./plot_api/plot_schema\":761,\"./plot_api/register\":762,\"./plot_api/set_plot_config\":763,\"./plot_api/to_image\":765,\"./plot_api/validate\":766,\"./plotly\":767,\"./snapshot\":851,\"./snapshot/download\":848,\"./traces/scatter\":1042,d3:122,\"es6-promise\":128}],711:[function(t,e,r){\"use strict\";\"undefined\"!=typeof MathJax?(r.MathJax=!0,MathJax.Hub.Config({messageStyle:\"none\",skipStartupTypeset:!0,displayAlign:\"left\",tex2jax:{inlineMath:[[\"$\",\"$\"],[\"\\\\(\",\"\\\\)\"]]}}),MathJax.Hub.Configured()):r.MathJax=!1},{}],712:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../constants/numerical\").BADNUM,a=/^['\"%,$#\\s']+|[, ]|['\"%,$#\\s']+$/g;e.exports=function(t){return\"string\"==typeof t&&(t=t.replace(a,\"\")),n(t)?Number(t):i}},{\"../constants/numerical\":707,\"fast-isnumeric\":131}],713:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"tinycolor2\"),a=t(\"../plots/attributes\"),o=t(\"../components/colorscale/get_scale\"),s=(Object.keys(t(\"../components/colorscale/scales\")),t(\"./nested_property\")),l=t(\"./regex\").counter;r.valObjectMeta={data_array:{coerceFunction:function(t,e,r){Array.isArray(t)?e.set(t):void 0!==r&&e.set(r)}},enumerated:{coerceFunction:function(t,e,r,n){n.coerceNumber&&(t=+t),-1===n.values.indexOf(t)?e.set(r):e.set(t)},validateFunction:function(t,e){e.coerceNumber&&(t=+t);for(var r=e.values,n=0;n<r.length;n++){var i=String(r[n]);if(\"/\"===i.charAt(0)&&\"/\"===i.charAt(i.length-1)){if(new RegExp(i.substr(1,i.length-2)).test(t))return!0}else if(t===r[n])return!0}return!1}},boolean:{coerceFunction:function(t,e,r){!0===t||!1===t?e.set(t):e.set(r)}},number:{coerceFunction:function(t,e,r,i){!n(t)||void 0!==i.min&&t<i.min||void 0!==i.max&&t>i.max?e.set(r):e.set(+t)}},integer:{coerceFunction:function(t,e,r,i){t%1||!n(t)||void 0!==i.min&&t<i.min||void 0!==i.max&&t>i.max?e.set(r):e.set(+t)}},string:{coerceFunction:function(t,e,r,n){if(\"string\"!=typeof t){var i=\"number\"==typeof t;!0!==n.strict&&i?e.set(String(t)):e.set(r)}else n.noBlank&&!t?e.set(r):e.set(t)}},color:{coerceFunction:function(t,e,r){i(t).isValid()?e.set(t):e.set(r)}},colorscale:{coerceFunction:function(t,e,r){e.set(o(t,r))}},angle:{coerceFunction:function(t,e,r){\"auto\"===t?e.set(\"auto\"):n(t)?(Math.abs(t)>180&&(t-=360*Math.round(t/360)),e.set(+t)):e.set(r)}},subplotid:{coerceFunction:function(t,e,r){if(\"string\"==typeof t&&l(r).test(t))return void e.set(t);e.set(r)},validateFunction:function(t,e){var r=e.dflt;return t===r||\"string\"==typeof t&&!!l(r).test(t)}},flaglist:{coerceFunction:function(t,e,r,n){if(\"string\"!=typeof t)return void e.set(r);if(-1!==(n.extras||[]).indexOf(t))return void e.set(t);for(var i=t.split(\"+\"),a=0;a<i.length;){var o=i[a];-1===n.flags.indexOf(o)||i.indexOf(o)<a?i.splice(a,1):a++}i.length?e.set(i.join(\"+\")):e.set(r)}},any:{coerceFunction:function(t,e,r){void 0===t?e.set(r):e.set(t)}},info_array:{coerceFunction:function(t,e,n,i){if(!Array.isArray(t))return void e.set(n);var a=i.items,o=[];n=Array.isArray(n)?n:[];for(var s=0;s<a.length;s++)r.coerce(t,o,a,\"[\"+s+\"]\",n[s]);e.set(o)},validateFunction:function(t,e){if(!Array.isArray(t))return!1;var n=e.items;if(!e.freeLength&&t.length!==n.length)return!1;for(var i=0;i<t.length;i++){if(!r.validate(t[i],e.items[i]))return!1}return!0}}},r.coerce=function(t,e,n,i,a){var o=s(n,i).get(),l=s(t,i),u=s(e,i),c=l.get();return void 0===a&&(a=o.dflt),o.arrayOk&&Array.isArray(c)?(u.set(c),c):(r.valObjectMeta[o.valType].coerceFunction(c,u,a,o),u.get())},r.coerce2=function(t,e,n,i,a){var o=s(t,i),l=r.coerce(t,e,n,i,a),u=o.get();return void 0!==u&&null!==u&&l},r.coerceFont=function(t,e,r){var n={};return r=r||{},n.family=t(e+\".family\",r.family),n.size=t(e+\".size\",r.size),n.color=t(e+\".color\",r.color),n},r.coerceHoverinfo=function(t,e,n){var i,o=e._module.attributes,s=o.hoverinfo?{hoverinfo:o.hoverinfo}:a,l=s.hoverinfo;if(1===n._dataLength){var u=\"all\"===l.dflt?l.flags.slice():l.dflt.split(\"+\");u.splice(u.indexOf(\"name\"),1),i=u.join(\"+\")}return r.coerce(t,e,s,\"hoverinfo\",i)},r.validate=function(t,e){var n=r.valObjectMeta[e.valType];if(e.arrayOk&&Array.isArray(t))return!0;if(n.validateFunction)return n.validateFunction(t,e);var i={},a=i,o={set:function(t){a=t}};return n.coerceFunction(t,o,i,e),a!==i}},{\"../components/colorscale/get_scale\":616,\"../components/colorscale/scales\":622,\"../plots/attributes\":770,\"./nested_property\":735,\"./regex\":742,\"fast-isnumeric\":131,tinycolor2:534}],714:[function(t,e,r){\"use strict\";function n(t){return t&&M.componentsRegistry.calendars&&\"string\"==typeof t&&\"gregorian\"!==t}function i(t,e){return String(t+Math.pow(10,e)).substr(1)}function a(t,e,r,n,a){if((e||r||n||a)&&(t+=\" \"+i(e,2)+\":\"+i(r,2),(n||a)&&(t+=\":\"+i(n,2),a))){for(var o=4;a%10==0;)o-=1,a/=10;t+=\".\"+i(a,o)}return t}function o(t,e,r){t=t.replace(D,function(t){var r=Math.min(+t.charAt(1)||6,6);return(e/1e3%1+2).toFixed(r).substr(2).replace(/0+$/,\"\")||\"0\"});var i=new Date(Math.floor(e+.05));if(n(r))try{t=M.getComponentMethod(\"calendars\",\"worldCalFmt\")(t,e,r)}catch(t){return\"Invalid\"}return k(t)(i)}function s(t,e){var r=m(t+.05,y),n=i(Math.floor(r/b),2)+\":\"+i(m(Math.floor(r/x),60),2);if(\"M\"!==e){d(e)||(e=0);var a=Math.min(m(t/_,60),P[e]),o=(100+a).toFixed(e).substr(1);e>0&&(o=o.replace(/0+$/,\"\").replace(/[\\.]$/,\"\")),n+=\":\"+o}return n}function l(t){return t.formatDate(\"yyyy\")}function u(t){return t.formatDate(\"M yyyy\")}function c(t){return t.formatDate(\"M d\")}function h(t){return t.formatDate(\"M d, yyyy\")}var f=t(\"d3\"),d=t(\"fast-isnumeric\"),p=t(\"./loggers\").error,m=t(\"./mod\"),v=t(\"../constants/numerical\"),g=v.BADNUM,y=v.ONEDAY,b=v.ONEHOUR,x=v.ONEMIN,_=v.ONESEC,w=v.EPOCHJD,M=t(\"../registry\"),k=f.time.format.utc,A=/^\\s*(-?\\d\\d\\d\\d|\\d\\d)(-(\\d?\\d)(-(\\d?\\d)([ Tt]([01]?\\d|2[0-3])(:([0-5]\\d)(:([0-5]\\d(\\.\\d+)?))?(Z|z|[+\\-]\\d\\d:?\\d\\d)?)?)?)?)?\\s*$/m,T=/^\\s*(-?\\d\\d\\d\\d|\\d\\d)(-(\\d?\\di?)(-(\\d?\\d)([ Tt]([01]?\\d|2[0-3])(:([0-5]\\d)(:([0-5]\\d(\\.\\d+)?))?(Z|z|[+\\-]\\d\\d:?\\d\\d)?)?)?)?)?\\s*$/m,S=(new Date).getFullYear()-70;r.dateTick0=function(t,e){return n(t)?e?M.getComponentMethod(\"calendars\",\"CANONICAL_SUNDAY\")[t]:M.getComponentMethod(\"calendars\",\"CANONICAL_TICK\")[t]:e?\"2000-01-02\":\"2000-01-01\"},r.dfltRange=function(t){return n(t)?M.getComponentMethod(\"calendars\",\"DFLTRANGE\")[t]:[\"2000-01-01\",\"2001-01-01\"]},r.isJSDate=function(t){return\"object\"==typeof t&&null!==t&&\"function\"==typeof t.getTime};var E,L;r.dateTime2ms=function(t,e){if(r.isJSDate(t))return t=Number(t)-t.getTimezoneOffset()*x,t>=E&&t<=L?t:g;if(\"string\"!=typeof t&&\"number\"!=typeof t)return g;t=String(t);var i=n(e),a=t.charAt(0);!i||\"G\"!==a&&\"g\"!==a||(t=t.substr(1),e=\"\");var o=i&&\"chinese\"===e.substr(0,7),s=t.match(o?T:A);if(!s)return g;var l=s[1],u=s[3]||\"1\",c=Number(s[5]||1),h=Number(s[7]||0),f=Number(s[9]||0),d=Number(s[11]||0);if(i){if(2===l.length)return g;l=Number(l);var p;try{var m=M.getComponentMethod(\"calendars\",\"getCal\")(e);if(o){var v=\"i\"===u.charAt(u.length-1);u=parseInt(u,10),p=m.newDate(l,m.toMonthIndex(l,u,v),c)}else p=m.newDate(l,Number(u),c)}catch(t){return g}return p?(p.toJD()-w)*y+h*b+f*x+d*_:g}l=2===l.length?(Number(l)+2e3-S)%100+S:Number(l),u-=1;var k=new Date(Date.UTC(2e3,u,c,h,f));return k.setUTCFullYear(l),k.getUTCMonth()!==u?g:k.getUTCDate()!==c?g:k.getTime()+d*_},E=r.MIN_MS=r.dateTime2ms(\"-9999\"),L=r.MAX_MS=r.dateTime2ms(\"9999-12-31 23:59:59.9999\"),r.isDateTime=function(t,e){return r.dateTime2ms(t,e)!==g};var C=90*y,I=3*b,z=5*x;r.ms2DateTime=function(t,e,r){if(\"number\"!=typeof t||!(t>=E&&t<=L))return g;e||(e=0);var i,o,s,l,u,c,h=Math.floor(10*m(t+.05,1)),f=Math.round(t-h/10);if(n(r)){var d=Math.floor(f/y)+w,p=Math.floor(m(t,y));try{i=M.getComponentMethod(\"calendars\",\"getCal\")(r).fromJD(d).formatDate(\"yyyy-mm-dd\")}catch(t){i=k(\"G%Y-%m-%d\")(new Date(f))}if(\"-\"===i.charAt(0))for(;i.length<11;)i=\"-0\"+i.substr(1);else for(;i.length<10;)i=\"0\"+i;o=e<C?Math.floor(p/b):0,s=e<C?Math.floor(p%b/x):0,l=e<I?Math.floor(p%x/_):0,u=e<z?p%_*10+h:0}else c=new Date(f),i=k(\"%Y-%m-%d\")(c),o=e<C?c.getUTCHours():0,s=e<C?c.getUTCMinutes():0,l=e<I?c.getUTCSeconds():0,u=e<z?10*c.getUTCMilliseconds()+h:0;return a(i,o,s,l,u)},r.ms2DateTimeLocal=function(t){if(!(t>=E+y&&t<=L-y))return g;var e=Math.floor(10*m(t+.05,1)),r=new Date(Math.round(t-e/10));return a(f.time.format(\"%Y-%m-%d\")(r),r.getHours(),r.getMinutes(),r.getSeconds(),10*r.getUTCMilliseconds()+e)},r.cleanDate=function(t,e,i){if(r.isJSDate(t)||\"number\"==typeof t){if(n(i))return p(\"JS Dates and milliseconds are incompatible with world calendars\",t),e;if(!(t=r.ms2DateTimeLocal(+t))&&void 0!==e)return e}else if(!r.isDateTime(t,i))return p(\"unrecognized date\",t),e;return t};var D=/%\\d?f/g,P=[59,59.9,59.99,59.999,59.9999],O=k(\"%Y\"),R=k(\"%b %Y\"),F=k(\"%b %-d\"),j=k(\"%b %-d, %Y\");r.formatDate=function(t,e,r,i){var a,f;if(i=n(i)&&i,e)return o(e,t,i);if(i)try{var d=Math.floor((t+.05)/y)+w,p=M.getComponentMethod(\"calendars\",\"getCal\")(i).fromJD(d);\"y\"===r?f=l(p):\"m\"===r?f=u(p):\"d\"===r?(a=l(p),f=c(p)):(a=h(p),f=s(t,r))}catch(t){return\"Invalid\"}else{var m=new Date(Math.floor(t+.05))\n", ";\"y\"===r?f=O(m):\"m\"===r?f=R(m):\"d\"===r?(a=O(m),f=F(m)):(a=j(m),f=s(t,r))}return f+(a?\"\\n\"+a:\"\")};var N=3*y;r.incrementMonth=function(t,e,r){r=n(r)&&r;var i=m(t,y);if(t=Math.round(t-i),r)try{var a=Math.round(t/y)+w,o=M.getComponentMethod(\"calendars\",\"getCal\")(r),s=o.fromJD(a);return e%12?o.add(s,e,\"m\"):o.add(s,e/12,\"y\"),(s.toJD()-w)*y+i}catch(e){p(\"invalid ms \"+t+\" in calendar \"+r)}var l=new Date(t+N);return l.setUTCMonth(l.getUTCMonth()+e)+i-N},r.findExactDates=function(t,e){for(var r,i,a=0,o=0,s=0,l=0,u=n(e)&&M.getComponentMethod(\"calendars\",\"getCal\")(e),c=0;c<t.length;c++)if(i=t[c],d(i)){if(!(i%y))if(u)try{r=u.fromJD(i/y+w),1===r.day()?1===r.month()?a++:o++:s++}catch(t){}else r=new Date(i),1===r.getUTCDate()?0===r.getUTCMonth()?a++:o++:s++}else l++;o+=a,s+=o;var h=t.length-l;return{exactYears:a/h,exactMonths:o/h,exactDays:s/h}}},{\"../constants/numerical\":707,\"../registry\":846,\"./loggers\":732,\"./mod\":734,d3:122,\"fast-isnumeric\":131}],715:[function(t,e,r){\"use strict\";e.exports=function(t,e){return Array.isArray(t)||(t=[]),t.length=e,t}},{}],716:[function(t,e,r){\"use strict\";var n=t(\"events\").EventEmitter,i={init:function(t){if(t._ev instanceof n)return t;var e=new n,r=new n;return t._ev=e,t._internalEv=r,t.on=e.on.bind(e),t.once=e.once.bind(e),t.removeListener=e.removeListener.bind(e),t.removeAllListeners=e.removeAllListeners.bind(e),t._internalOn=r.on.bind(r),t._internalOnce=r.once.bind(r),t._removeInternalListener=r.removeListener.bind(r),t._removeAllInternalListeners=r.removeAllListeners.bind(r),t.emit=function(n,i){\"undefined\"!=typeof jQuery&&jQuery(t).trigger(n,i),e.emit(n,i),r.emit(n,i)},t},triggerHandler:function(t,e,r){var n,i;\"undefined\"!=typeof jQuery&&(n=jQuery(t).triggerHandler(e,r));var a=t._ev;if(!a)return n;var o=a._events[e];if(!o)return n;\"function\"==typeof o&&(o=[o]);for(var s=o.pop(),l=0;l<o.length;l++)o[l](r);return i=s(r),void 0!==n?n:i},purge:function(t){return delete t._ev,delete t.on,delete t.once,delete t.removeListener,delete t.removeAllListeners,delete t.emit,delete t._ev,delete t._internalEv,delete t._internalOn,delete t._internalOnce,delete t._removeInternalListener,delete t._removeAllInternalListeners,t}};e.exports=i},{events:129}],717:[function(t,e,r){\"use strict\";function n(t,e){var r,n;for(r=0;r<t.length;r++){if(null!==(n=t[r])&&\"object\"==typeof n)return!1;void 0!==n&&(e[r]=n)}return!0}function i(t,e,r,s){var l,u,c,h,f,d,p=t[0],m=t.length;if(2===m&&o(p)&&o(t[1])&&0===p.length){if(n(t[1],p))return p;p.splice(0,p.length)}for(var v=1;v<m;v++){l=t[v];for(u in l)c=p[u],h=l[u],s&&o(h)?p[u]=h:e&&h&&(a(h)||(f=o(h)))?(f?(f=!1,d=c&&o(c)?c:[]):d=c&&a(c)?c:{},p[u]=i([d,h],e,r,s)):(void 0!==h||r)&&(p[u]=h)}return p}var a=t(\"./is_plain_object.js\"),o=Array.isArray;r.extendFlat=function(){return i(arguments,!1,!1,!1)},r.extendDeep=function(){return i(arguments,!0,!1,!1)},r.extendDeepAll=function(){return i(arguments,!0,!0,!1)},r.extendDeepNoArrays=function(){return i(arguments,!0,!1,!0)}},{\"./is_plain_object.js\":730}],718:[function(t,e,r){\"use strict\";e.exports=function(t){for(var e={},r=[],n=0,i=0;i<t.length;i++){var a=t[i];1!==e[a]&&(e[a]=1,r[n++]=a)}return r}},{}],719:[function(t,e,r){\"use strict\";e.exports=function(t){for(var e=[],r=0;r<t.length;r++){var n=t[r];!0===n.visible&&e.push(n)}return e}},{}],720:[function(t,e,r){\"use strict\";function n(t,e){return(0,l[t])(e)}function i(t){for(var e=0;e<s.length;e++){var r=s[e];if(new RegExp(a[r]).test(t.trim().toLowerCase()))return r}return o.warn(\"Unrecognized country name: \"+t+\".\"),!1}var a=t(\"country-regex\"),o=t(\"../lib\"),s=Object.keys(a),l={\"ISO-3\":o.identity,\"USA-states\":o.identity,\"country names\":i};r.locationToFeature=function(t,e,r){var i=n(t,e);if(i){for(var a=0;a<r.length;a++){var s=r[a];if(s.id===i)return s}o.warn([\"Location with id\",i,\"does not have a matching topojson feature at this resolution.\"].join(\" \"))}return!1}},{\"../lib\":728,\"country-regex\":107}],721:[function(t,e,r){\"use strict\";var n=t(\"../constants/numerical\").BADNUM;r.calcTraceToLineCoords=function(t){for(var e=t[0].trace,r=e.connectgaps,i=[],a=[],o=0;o<t.length;o++){var s=t[o],l=s.lonlat;l[0]!==n?a.push(l):!r&&a.length>0&&(i.push(a),a=[])}return a.length>0&&i.push(a),i},r.makeLine=function(t){return 1===t.length?{type:\"LineString\",coordinates:t[0]}:{type:\"MultiLineString\",coordinates:t}},r.makePolygon=function(t){if(1===t.length)return{type:\"Polygon\",coordinates:t};for(var e=new Array(t.length),r=0;r<t.length;r++)e[r]=[t[r]];return{type:\"MultiPolygon\",coordinates:e}},r.makeBlank=function(){return{type:\"Point\",coordinates:[]}}},{\"../constants/numerical\":707}],722:[function(t,e,r){\"use strict\";function n(t,e,r,n,i,a,o,s){var l=r-t,u=i-t,c=o-i,h=n-e,f=a-e,d=s-a,p=l*d-c*h;if(0===p)return null;var m=(u*d-c*f)/p,v=(u*h-l*f)/p;return v<0||v>1||m<0||m>1?null:{x:t+l*m,y:e+h*m}}function i(t,e,r,n,i){var a=n*t+i*e;if(a<0)return n*n+i*i;if(a>r){var o=n-t,s=i-e;return o*o+s*s}var l=n*e-i*t;return l*l/r}var a=t(\"./mod\");r.segmentsIntersect=n,r.segmentDistance=function(t,e,r,a,o,s,l,u){if(n(t,e,r,a,o,s,l,u))return 0;var c=r-t,h=a-e,f=l-o,d=u-s,p=c*c+h*h,m=f*f+d*d,v=Math.min(i(c,h,p,o-t,s-e),i(c,h,p,l-t,u-e),i(f,d,m,t-o,e-s),i(f,d,m,r-o,a-s));return Math.sqrt(v)};var o,s,l;r.getTextLocation=function(t,e,r,n){if(t===s&&n===l||(o={},s=t,l=n),o[r])return o[r];var i=t.getPointAtLength(a(r-n/2,e)),u=t.getPointAtLength(a(r+n/2,e)),c=Math.atan((u.y-i.y)/(u.x-i.x)),h=t.getPointAtLength(a(r,e)),f=(4*h.x+i.x+u.x)/6,d=(4*h.y+i.y+u.y)/6,p={x:f,y:d,theta:c};return o[r]=p,p},r.clearLocationCache=function(){s=null},r.getVisibleSegment=function(t,e,r){function n(e){var r=t.getPointAtLength(e);0===e?i=r:e===h&&(a=r);var n=r.x<o?o-r.x:r.x>s?r.x-s:0,c=r.y<l?l-r.y:r.y>u?r.y-u:0;return Math.sqrt(n*n+c*c)}for(var i,a,o=e.left,s=e.right,l=e.top,u=e.bottom,c=0,h=t.getTotalLength(),f=h,d=n(c);d;){if((c+=d+r)>f)return;d=n(c)}for(d=n(f);d;){if(f-=d+r,c>f)return;d=n(f)}return{min:c,max:f,len:f-c,total:h,isClosed:0===c&&f===h&&Math.abs(i.x-a.x)<.1&&Math.abs(i.y-a.y)<.1}}},{\"./mod\":734}],723:[function(t,e,r){\"use strict\";e.exports=function(t){var e;if(\"string\"==typeof t){if(null===(e=document.getElementById(t)))throw new Error(\"No DOM element with id '\"+t+\"' exists on the page.\");return e}if(null===t||void 0===t)throw new Error(\"DOM element provided is null or undefined\");return t}},{}],724:[function(t,e,r){\"use strict\";function n(t,e){var r=t;return r[3]*=e,r}function i(t){if(s(t))return h;var e=l(t);return e.length?e:h}function a(t){return s(t)?t:f}function o(t,e,r){var o,s,c,d,p,m=t.color,v=Array.isArray(m),g=Array.isArray(e),y=[];if(o=void 0!==t.colorscale?u.makeColorScaleFunc(u.extractScale(t.colorscale,t.cmin,t.cmax)):i,s=v?function(t,e){return void 0===t[e]?h:l(o(t[e]))}:i,c=g?function(t,e){return void 0===t[e]?f:a(t[e])}:a,v||g)for(var b=0;b<r;b++)d=s(m,b),p=c(e,b),y[b]=n(d,p);else y=n(l(m),e);return y}var s=t(\"fast-isnumeric\"),l=t(\"color-rgba\"),u=t(\"../components/colorscale\"),c=t(\"../components/color/attributes\").defaultLine,h=l(c),f=1;e.exports=o},{\"../components/color/attributes\":603,\"../components/colorscale\":618,\"color-rgba\":95,\"fast-isnumeric\":131}],725:[function(t,e,r){\"use strict\";function n(t){return[t]}var i=t(\"./identity\");e.exports={keyFun:function(t){return t.key},repeat:n,descend:i,wrap:n,unwrap:function(t){return t[0]}}},{\"./identity\":727}],726:[function(t,e,r){\"use strict\";function n(t){for(var e=0;(e=t.indexOf(\"<sup>\",e))>=0;){var r=t.indexOf(\"</sup>\",e);if(r<e)break;t=t.slice(0,e)+l(t.slice(e+5,r))+t.slice(r+6)}return t}function i(t){return t.replace(/\\<br\\>/g,\"\\n\")}function a(t){return t.replace(/\\<.*\\>/g,\"\")}function o(t){for(var e=u.entityToUnicode,r=0;(r=t.indexOf(\"&\",r))>=0;){var n=t.indexOf(\";\",r);if(n<r)r+=1;else{var i=e[t.slice(r+1,n)];t=i?t.slice(0,r)+i+t.slice(n+1):t.slice(0,r)+t.slice(n+1)}}return t}function s(t){return\"\"+o(a(n(i(t))))}var l=t(\"superscript-text\"),u=t(\"../constants/string_mappings\");e.exports=s},{\"../constants/string_mappings\":708,\"superscript-text\":530}],727:[function(t,e,r){\"use strict\";e.exports=function(t){return t}},{}],728:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"fast-isnumeric\"),a=t(\"../constants/numerical\"),o=a.FP_SAFE,s=a.BADNUM,l=e.exports={};l.nestedProperty=t(\"./nested_property\"),l.keyedContainer=t(\"./keyed_container\"),l.relativeAttr=t(\"./relative_attr\"),l.isPlainObject=t(\"./is_plain_object\"),l.isArray=t(\"./is_array\"),l.mod=t(\"./mod\"),l.toLogRange=t(\"./to_log_range\"),l.relinkPrivateKeys=t(\"./relink_private\"),l.ensureArray=t(\"./ensure_array\");var u=t(\"./coerce\");l.valObjectMeta=u.valObjectMeta,l.coerce=u.coerce,l.coerce2=u.coerce2,l.coerceFont=u.coerceFont,l.coerceHoverinfo=u.coerceHoverinfo,l.validate=u.validate;var c=t(\"./dates\");l.dateTime2ms=c.dateTime2ms,l.isDateTime=c.isDateTime,l.ms2DateTime=c.ms2DateTime,l.ms2DateTimeLocal=c.ms2DateTimeLocal,l.cleanDate=c.cleanDate,l.isJSDate=c.isJSDate,l.formatDate=c.formatDate,l.incrementMonth=c.incrementMonth,l.dateTick0=c.dateTick0,l.dfltRange=c.dfltRange,l.findExactDates=c.findExactDates,l.MIN_MS=c.MIN_MS,l.MAX_MS=c.MAX_MS;var h=t(\"./search\");l.findBin=h.findBin,l.sorterAsc=h.sorterAsc,l.sorterDes=h.sorterDes,l.distinctVals=h.distinctVals,l.roundUp=h.roundUp;var f=t(\"./stats\");l.aggNums=f.aggNums,l.len=f.len,l.mean=f.mean,l.variance=f.variance,l.stdev=f.stdev,l.interp=f.interp;var d=t(\"./matrix\");l.init2dArray=d.init2dArray,l.transposeRagged=d.transposeRagged,l.dot=d.dot,l.translationMatrix=d.translationMatrix,l.rotationMatrix=d.rotationMatrix,l.rotationXYMatrix=d.rotationXYMatrix,l.apply2DTransform=d.apply2DTransform,l.apply2DTransform2=d.apply2DTransform2;var p=t(\"./geometry2d\");l.segmentsIntersect=p.segmentsIntersect,l.segmentDistance=p.segmentDistance,l.getTextLocation=p.getTextLocation,l.clearLocationCache=p.clearLocationCache,l.getVisibleSegment=p.getVisibleSegment;var m=t(\"./extend\");l.extendFlat=m.extendFlat,l.extendDeep=m.extendDeep,l.extendDeepAll=m.extendDeepAll,l.extendDeepNoArrays=m.extendDeepNoArrays;var v=t(\"./loggers\");l.log=v.log,l.warn=v.warn,l.error=v.error;var g=t(\"./regex\");l.counterRegex=g.counter;var y=t(\"./throttle\");l.throttle=y.throttle,l.throttleDone=y.done,l.clearThrottle=y.clear,l.getGraphDiv=t(\"./get_graph_div\"),l.notifier=t(\"./notifier\"),l.filterUnique=t(\"./filter_unique\"),l.filterVisible=t(\"./filter_visible\"),l.pushUnique=t(\"./push_unique\"),l.cleanNumber=t(\"./clean_number\"),l.ensureNumber=function(t){return i(t)?(t=Number(t),t<-o||t>o?s:i(t)?Number(t):s):s},l.noop=t(\"./noop\"),l.identity=t(\"./identity\"),l.swapAttrs=function(t,e,r,n){r||(r=\"x\"),n||(n=\"y\");for(var i=0;i<e.length;i++){var a=e[i],o=l.nestedProperty(t,a.replace(\"?\",r)),s=l.nestedProperty(t,a.replace(\"?\",n)),u=o.get();o.set(s.get()),s.set(u)}},l.pauseEvent=function(t){return t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault(),t.cancelBubble=!0,!1},l.raiseToTop=function(t){t.parentNode.appendChild(t)},l.cancelTransition=function(t){return t.transition().duration(0)},l.constrain=function(t,e,r){return e>r?Math.max(r,Math.min(e,t)):Math.max(e,Math.min(r,t))},l.bBoxIntersect=function(t,e,r){return r=r||0,t.left<=e.right+r&&e.left<=t.right+r&&t.top<=e.bottom+r&&e.top<=t.bottom+r},l.simpleMap=function(t,e,r,n){for(var i=t.length,a=new Array(i),o=0;o<i;o++)a[o]=e(t[o],r,n);return a},l.randstr=function t(e,r,n){if(n||(n=16),void 0===r&&(r=24),r<=0)return\"0\";var i,a,o,s=Math.log(Math.pow(2,r))/Math.log(n),l=\"\";for(i=2;s===1/0;i*=2)s=Math.log(Math.pow(2,r/i))/Math.log(n)*i;var u=s-Math.floor(s);for(i=0;i<Math.floor(s);i++)o=Math.floor(Math.random()*n).toString(n),l=o+l;u&&(a=Math.pow(n,u),o=Math.floor(Math.random()*a).toString(n),l=o+l);var c=parseInt(l,n);return e&&e.indexOf(l)>-1||c!==1/0&&c>=Math.pow(2,r)?t(e,r,n):l},l.OptionControl=function(t,e){t||(t={}),e||(e=\"opt\");var r={};return r.optionList=[],r._newoption=function(n){n[e]=t,r[n.name]=n,r.optionList.push(n)},r[\"_\"+e]=t,r},l.smooth=function(t,e){if((e=Math.round(e)||0)<2)return t;var r,n,i,a,o=t.length,s=2*o,l=2*e-1,u=new Array(l),c=new Array(o);for(r=0;r<l;r++)u[r]=(1-Math.cos(Math.PI*(r+1)/e))/(2*e);for(r=0;r<o;r++){for(a=0,n=0;n<l;n++)i=r+n+1-e,i<-o?i-=s*Math.round(i/s):i>=s&&(i-=s*Math.floor(i/s)),i<0?i=-1-i:i>=o&&(i=s-1-i),a+=t[i]*u[n];c[r]=a}return c},l.syncOrAsync=function(t,e,r){function n(){return l.syncOrAsync(t,e,r)}for(var i,a;t.length;)if(a=t.splice(0,1)[0],(i=a(e))&&i.then)return i.then(n).then(void 0,l.promiseError);return r&&r(e)},l.stripTrailingSlash=function(t){return\"/\"===t.substr(-1)?t.substr(0,t.length-1):t},l.noneOrAll=function(t,e,r){if(t){var n,i,a=!1,o=!0;for(n=0;n<r.length;n++)i=t[r[n]],void 0!==i&&null!==i?a=!0:o=!1;if(a&&!o)for(n=0;n<r.length;n++)t[r[n]]=e[r[n]]}},l.mergeArray=function(t,e,r){if(Array.isArray(t))for(var n=Math.min(t.length,e.length),i=0;i<n;i++)e[i][r]=t[i]},l.fillArray=function(t,e,r,n){if(n=n||l.identity,Array.isArray(t))for(var i=0;i<e.length;i++)e[i][r]=n(t[i])},l.castOption=function(t,e,r,n){n=n||l.identity;var i=l.nestedProperty(t,r).get();return Array.isArray(i)?n(Array.isArray(e)&&Array.isArray(i[e[0]])?i[e[0]][e[1]]:i[e]):i},l.extractOption=function(t,e,r,n){if(r in t)return t[r];var i=l.nestedProperty(e,n).get();return Array.isArray(i)?void 0:i},l.getTargetArray=function(t,e){var r=e.target;if(\"string\"==typeof r&&r){var n=l.nestedProperty(t,r).get();return!!Array.isArray(n)&&n}return!!Array.isArray(r)&&r},l.minExtend=function(t,e){var r={};\"object\"!=typeof e&&(e={});var n,i,a,o=Object.keys(t);for(n=0;n<o.length;n++)i=o[n],a=t[i],\"_\"!==i.charAt(0)&&\"function\"!=typeof a&&(\"module\"===i?r[i]=a:Array.isArray(a)?r[i]=a.slice(0,3):r[i]=a&&\"object\"==typeof a?l.minExtend(t[i],e[i]):a);for(o=Object.keys(e),n=0;n<o.length;n++)i=o[n],\"object\"==typeof(a=e[i])&&i in r&&\"object\"==typeof r[i]||(r[i]=a);return r},l.titleCase=function(t){return t.charAt(0).toUpperCase()+t.substr(1)},l.containsAny=function(t,e){for(var r=0;r<e.length;r++)if(-1!==t.indexOf(e[r]))return!0;return!1},l.isPlotDiv=function(t){var e=n.select(t);return e.node()instanceof HTMLElement&&e.size()&&e.classed(\"js-plotly-plot\")},l.removeElement=function(t){var e=t&&t.parentNode;e&&e.removeChild(t)},l.addStyleRule=function(t,e){if(!l.styleSheet){var r=document.createElement(\"style\");r.appendChild(document.createTextNode(\"\")),document.head.appendChild(r),l.styleSheet=r.sheet}var n=l.styleSheet;n.insertRule?n.insertRule(t+\"{\"+e+\"}\",0):n.addRule?n.addRule(t,e,0):l.warn(\"addStyleRule failed\")},l.isIE=function(){return void 0!==window.navigator.msSaveBlob},l.isD3Selection=function(t){return t&&\"function\"==typeof t.classed},l.objectFromPath=function(t,e){for(var r,n=t.split(\".\"),i=r={},a=0;a<n.length;a++){var o=n[a],s=null,l=n[a].match(/(.*)\\[([0-9]+)\\]/);l?(o=l[1],s=l[2],r=r[o]=[],a===n.length-1?r[s]=e:r[s]={},r=r[s]):(a===n.length-1?r[o]=e:r[o]={},r=r[o])}return i};var b=/^([^\\[\\.]+)\\.(.+)?/,x=/^([^\\.]+)\\[([0-9]+)\\](\\.)?(.+)?/;l.expandObjectPaths=function(t){var e,r,n,i,a,o,s;if(\"object\"==typeof t&&!Array.isArray(t))for(r in t)t.hasOwnProperty(r)&&((e=r.match(b))?(i=t[r],n=e[1],delete t[r],t[n]=l.extendDeepNoArrays(t[n]||{},l.objectFromPath(r,l.expandObjectPaths(i))[n])):(e=r.match(x))?(i=t[r],n=e[1],a=parseInt(e[2]),delete t[r],t[n]=t[n]||[],\".\"===e[3]?(s=e[4],o=t[n][a]=t[n][a]||{},l.extendDeepNoArrays(o,l.objectFromPath(s,l.expandObjectPaths(i)))):t[n][a]=l.expandObjectPaths(i)):t[r]=l.expandObjectPaths(t[r]));return t},l.numSeparate=function(t,e,r){if(r||(r=!1),\"string\"!=typeof e||0===e.length)throw new Error(\"Separator string required for formatting!\");\"number\"==typeof t&&(t=String(t));var n=/(\\d+)(\\d{3})/,i=e.charAt(0),a=e.charAt(1),o=t.split(\".\"),s=o[0],l=o.length>1?i+o[1]:\"\";if(a&&(o.length>1||s.length>4||r))for(;n.test(s);)s=s.replace(n,\"$1\"+a+\"$2\");return s+l};var _=/%{([^\\s%{}]*)}/g,w=/^\\w*$/;l.templateString=function(t,e){var r={};return t.replace(_,function(t,n){return w.test(n)?e[n]||\"\":(r[n]=r[n]||l.nestedProperty(e,n).get,r[n]()||\"\")})}},{\"../constants/numerical\":707,\"./clean_number\":712,\"./coerce\":713,\"./dates\":714,\"./ensure_array\":715,\"./extend\":717,\"./filter_unique\":718,\"./filter_visible\":719,\"./geometry2d\":722,\"./get_graph_div\":723,\"./identity\":727,\"./is_array\":729,\"./is_plain_object\":730,\"./keyed_container\":731,\"./loggers\":732,\"./matrix\":733,\"./mod\":734,\"./nested_property\":735,\"./noop\":736,\"./notifier\":737,\"./push_unique\":740,\"./regex\":742,\"./relative_attr\":743,\"./relink_private\":744,\"./search\":745,\"./stats\":748,\"./throttle\":751,\"./to_log_range\":752,d3:122,\"fast-isnumeric\":131}],729:[function(t,e,r){\"use strict\";var n=\"undefined\"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer:{isView:function(){return!1}};e.exports=function(t){return Array.isArray(t)||n.isView(t)}},{}],730:[function(t,e,r){\"use strict\";e.exports=function(t){return window&&window.process&&window.process.versions?\"[object Object]\"===Object.prototype.toString.call(t):\"[object Object]\"===Object.prototype.toString.call(t)&&Object.getPrototypeOf(t)===Object.prototype}},{}],731:[function(t,e,r){\"use strict\";var n=t(\"./nested_property\"),i=/^\\w*$/;e.exports=function(t,e,r,a){r=r||\"name\",a=a||\"value\";var o,s,l={};s=e&&e.length?n(t,e).get():t,e=e||\"\",s=s||[];var u={};for(o=0;o<s.length;o++)u[s[o][r]]=o;var c=i.test(a),h={set:function(t,e){var i=null===e?4:0,o=u[t];void 0===o?(i|=3,o=s.length,u[t]=o):e!==(c?s[o][a]:n(s[o],a).get())&&(i|=2);var f=s[o]=s[o]||{};return f[r]=t,c?f[a]=e:n(f,a).set(e),null!==e&&(i&=-5),l[o]=l[o]|i,h},get:function(t){var e=u[t];return void 0===e?void 0:c?s[e][a]:n(s[e],a).get()},rename:function(t,e){var n=u[t];return void 0===n?h:(l[n]=1|l[n],u[e]=n,delete u[t],s[n][r]=e,h)},remove:function(t){var e=u[t];if(void 0===e)return h;var i=s[e];if(Object.keys(i).length>2)return l[e]=2|l[e],h.set(t,null);if(c){for(o=e;o<s.length;o++)l[o]=3|l[o];for(o=e;o<s.length;o++)u[s[o][r]]--;s.splice(e,1),delete u[t]}else n(i,a).set(null),l[e]=6|l[e];return h},constructUpdate:function(){for(var t,i,o={},u=Object.keys(l),h=0;h<u.length;h++)i=u[h],t=e+\"[\"+i+\"]\",s[i]?(1&l[i]&&(o[t+\".\"+r]=s[i][r]),2&l[i]&&(o[t+\".\"+a]=c?4&l[i]?null:s[i][a]:4&l[i]?null:n(s[i],a).get())):o[t]=null;return o}};return h}},{\"./nested_property\":735}],732:[function(t,e,r){\"use strict\";function n(t,e){if(t.apply)t.apply(t,e);else for(var r=0;r<e.length;r++)t(e[r])}var i=t(\"../plot_api/plot_config\"),a=e.exports={};a.log=function(){if(i.logging>1){for(var t=[\"LOG:\"],e=0;e<arguments.length;e++)t.push(arguments[e]);n(console.trace||console.log,t)}},a.warn=function(){if(i.logging>0){for(var t=[\"WARN:\"],e=0;e<arguments.length;e++)t.push(arguments[e]);n(console.trace||console.log,t)}},a.error=function(){if(i.logging>0){for(var t=[\"ERROR:\"],e=0;e<arguments.length;e++)t.push(arguments[e]);n(console.error,t)}}},{\"../plot_api/plot_config\":760}],733:[function(t,e,r){\"use strict\";r.init2dArray=function(t,e){for(var r=new Array(t),n=0;n<t;n++)r[n]=new Array(e);return r},r.transposeRagged=function(t){var e,r,n=0,i=t.length;for(e=0;e<i;e++)n=Math.max(n,t[e].length);var a=new Array(n);for(e=0;e<n;e++)for(a[e]=new Array(i),r=0;r<i;r++)a[e][r]=t[r][e];return a},r.dot=function(t,e){if(!t.length||!e.length||t.length!==e.length)return null;var n,i,a=t.length;if(t[0].length)for(n=new Array(a),i=0;i<a;i++)n[i]=r.dot(t[i],e);else if(e[0].length){var o=r.transposeRagged(e);for(n=new Array(o.length),i=0;i<o.length;i++)n[i]=r.dot(t,o[i])}else for(n=0,i=0;i<a;i++)n+=t[i]*e[i];return n},r.translationMatrix=function(t,e){return[[1,0,t],[0,1,e],[0,0,1]]},r.rotationMatrix=function(t){var e=t*Math.PI/180;return[[Math.cos(e),-Math.sin(e),0],[Math.sin(e),Math.cos(e),0],[0,0,1]]},r.rotationXYMatrix=function(t,e,n){return r.dot(r.dot(r.translationMatrix(e,n),r.rotationMatrix(t)),r.translationMatrix(-e,-n))},r.apply2DTransform=function(t){return function(){var e=arguments;3===e.length&&(e=e[0]);var n=1===arguments.length?e[0]:[e[0],e[1]];return r.dot(t,[n[0],n[1],1]).slice(0,2)}},r.apply2DTransform2=function(t){var e=r.apply2DTransform(t);return function(t){return e(t.slice(0,2)).concat(e(t.slice(2,4)))}}},{}],734:[function(t,e,r){\"use strict\";e.exports=function(t,e){var r=t%e;return r<0?r+e:r}},{}],735:[function(t,e,r){\"use strict\";function n(t,e){return function(){var r,i,a,o,s,l=t;for(o=0;o<e.length-1;o++){if(-1===(r=e[o])){for(i=!0,a=[],s=0;s<l.length;s++)a[s]=n(l[s],e.slice(o+1))(),a[s]!==a[0]&&(i=!1);return i?a[0]:a}if(\"number\"==typeof r&&!d(l))return;if(\"object\"!=typeof(l=l[r])||null===l)return}if(\"object\"==typeof l&&null!==l&&null!==(a=l[e[o]]))return a}}function i(t,e){if(!c(t)||p(t)&&\"]\"===e.charAt(e.length-1)||e.match(g)&&void 0!==t)return!1;if(!d(t))return!0;if(e.match(v))return!0;var r=m(e);return r&&\"\"===r.index}function a(t,e,r){return function(n){var a,c,h=t,f=\"\",p=[[t,f]],m=i(n,r);for(c=0;c<e.length-1;c++){if(\"number\"==typeof(a=e[c])&&!d(h))throw\"array index but container is not an array\";if(-1===a){if(m=!s(h,e.slice(c+1),n,r))break;return}if(!l(h,a,e[c+1],m))break;if(\"object\"!=typeof(h=h[a])||null===h)throw\"container is not an object\";f=o(f,a),p.push([h,f])}m?(c===e.length-1&&delete h[e[c]],u(p)):h[e[c]]=n}}function o(t,e){var r=e;return f(e)?r=\"[\"+e+\"]\":t&&(r=\".\"+e),t+r}function s(t,e,r,n){var o,s=d(r),u=!0,c=r,h=n.replace(\"-1\",0),f=!s&&i(r,h),p=e[0];for(o=0;o<t.length;o++)h=n.replace(\"-1\",o),s&&(c=r[o%r.length],f=i(c,h)),f&&(u=!1),l(t,o,p,f)&&a(t[o],e,n.replace(\"-1\",o))(c);return u}function l(t,e,r,n){if(void 0===t[e]){if(n)return!1;t[e]=\"number\"==typeof r?[]:{}}return!0}function u(t){var e,r,n,a,s,l;for(e=t.length-1;e>=0;e--){if(n=t[e][0],a=t[e][1],l=!1,d(n))for(r=n.length-1;r>=0;r--)i(n[r],o(a,r))?l?n[r]=void 0:n.pop():l=!0;else if(\"object\"==typeof n&&null!==n)for(s=Object.keys(n),l=!1,r=s.length-1;r>=0;r--)i(n[s[r]],o(a,s[r]))?delete n[s[r]]:l=!0;if(l)return}}function c(t){return void 0===t||null===t||\"object\"==typeof t&&(d(t)?!t.length:!Object.keys(t).length)}function h(t,e,r){return{set:function(){throw\"bad container\"},get:function(){},astr:e,parts:r,obj:t}}var f=t(\"fast-isnumeric\"),d=t(\"./is_array\"),p=t(\"./is_plain_object\"),m=t(\"../plot_api/container_array_match\");e.exports=function(t,e){if(f(e))e=String(e);else if(\"string\"!=typeof e||\"[-1]\"===e.substr(e.length-4))throw\"bad property string\";for(var r,i,o,s=0,l=e.split(\".\");s<l.length;){if(r=String(l[s]).match(/^([^\\[\\]]*)((\\[\\-?[0-9]*\\])+)$/)){if(r[1])l[s]=r[1];else{if(0!==s)throw\"bad property string\";l.splice(0,1)}for(i=r[2].substr(1,r[2].length-2).split(\"][\"),o=0;o<i.length;o++)s++,l.splice(s,0,Number(i[o]))}s++}return\"object\"!=typeof t?h(t,e,l):{set:a(t,l,e),get:n(t,l),astr:e,parts:l,obj:t}};var v=/(^|\\.)((domain|range)(\\.[xy])?|args|parallels)$/,g=/(^|\\.)args\\[/},{\"../plot_api/container_array_match\":755,\"./is_array\":729,\"./is_plain_object\":730,\"fast-isnumeric\":131}],736:[function(t,e,r){\"use strict\";e.exports=function(){}},{}],737:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"fast-isnumeric\"),a=[];e.exports=function(t,e){function r(t){t.duration(700).style(\"opacity\",0).each(\"end\",function(t){var e=a.indexOf(t);-1!==e&&a.splice(e,1),n.select(this).remove()})}if(-1===a.indexOf(t)){a.push(t);var o=1e3;i(e)?o=e:\"long\"===e&&(o=3e3);var s=n.select(\"body\").selectAll(\".plotly-notifier\").data([0]);s.enter().append(\"div\").classed(\"plotly-notifier\",!0);s.selectAll(\".notifier-note\").data(a).enter().append(\"div\").classed(\"notifier-note\",!0).style(\"opacity\",0).each(function(t){var e=n.select(this);e.append(\"button\").classed(\"notifier-close\",!0).html(\"&times;\").on(\"click\",function(){e.transition().call(r)});for(var i=e.append(\"p\"),a=t.split(/<br\\s*\\/?>/g),s=0;s<a.length;s++)s&&i.append(\"br\"),i.append(\"span\").text(a[s]);e.transition().duration(700).style(\"opacity\",1).transition().delay(o).call(r)})}}},{d3:122,\"fast-isnumeric\":131}],738:[function(t,e,r){\"use strict\";var n=t(\"./setcursor\"),i=\"data-savedcursor\";e.exports=function(t,e){var r=t.attr(i);if(e){if(!r){for(var a=(t.attr(\"class\")||\"\").split(\" \"),o=0;o<a.length;o++){var s=a[o];0===s.indexOf(\"cursor-\")&&t.attr(i,s.substr(7)).classed(s,!1)}t.attr(i)||t.attr(i,\"!!\")}n(t,e)}else r&&(t.attr(i,null),\"!!\"===r?n(t):n(t,r))}},{\"./setcursor\":746}],739:[function(t,e,r){\"use strict\";var n=t(\"./matrix\").dot,i=t(\"../constants/numerical\").BADNUM,a=e.exports={};a.tester=function(t){function e(t,e){var r=t[0],n=t[1];return!(r===i||r<a||r>o||n===i||n<s||n>l)&&(!e||!c(t))}function r(t,e){var r=t[0],u=t[1];if(r===i||r<a||r>o||u===i||u<s||u>l)return!1;var c,h,f,d,p,m=n.length,v=n[0][0],g=n[0][1],y=0;for(c=1;c<m;c++)if(h=v,f=g,v=n[c][0],g=n[c][1],d=Math.min(h,v),!(r<d||r>Math.max(h,v)||u>Math.max(f,g)))if(u<Math.min(f,g))r!==d&&y++;else{if(p=v===h?u:f+(r-h)*(g-f)/(v-h),u===p)return 1!==c||!e;u<=p&&r!==d&&y++}return y%2==1}var n=t.slice(),a=n[0][0],o=a,s=n[0][1],l=s;n.push(n[0]);for(var u=1;u<n.length;u++)a=Math.min(a,n[u][0]),o=Math.max(o,n[u][0]),s=Math.min(s,n[u][1]),l=Math.max(l,n[u][1]);var c,h=!1;return 5===n.length&&(n[0][0]===n[1][0]?n[2][0]===n[3][0]&&n[0][1]===n[3][1]&&n[1][1]===n[2][1]&&(h=!0,c=function(t){return t[0]===n[0][0]}):n[0][1]===n[1][1]&&n[2][1]===n[3][1]&&n[0][0]===n[3][0]&&n[1][0]===n[2][0]&&(h=!0,c=function(t){return t[1]===n[0][1]})),{xmin:a,xmax:o,ymin:s,ymax:l,pts:n,contains:h?e:r,isRect:h}};var o=a.isSegmentBent=function(t,e,r,i){var a,o,s,l=t[e],u=[t[r][0]-l[0],t[r][1]-l[1]],c=n(u,u),h=Math.sqrt(c),f=[-u[1]/h,u[0]/h];for(a=e+1;a<r;a++)if(o=[t[a][0]-l[0],t[a][1]-l[1]],(s=n(o,u))<0||s>c||Math.abs(n(o,f))>i)return!0;return!1};a.filter=function(t,e){function r(r){t.push(r);var s=n.length,l=i;n.splice(a+1);for(var u=l+1;u<t.length;u++)(u===t.length-1||o(t,l,u+1,e))&&(n.push(t[u]),n.length<s-2&&(i=u,a=n.length-1),l=u)}var n=[t[0]],i=0,a=0;if(t.length>1){r(t.pop())}return{addPt:r,raw:t,filtered:n}}},{\"../constants/numerical\":707,\"./matrix\":733}],740:[function(t,e,r){\"use strict\";e.exports=function(t,e){if(e instanceof RegExp){var r,n=e.toString();for(r=0;r<t.length;r++)if(t[r]instanceof RegExp&&t[r].toString()===n)return t;t.push(e)}else e&&-1===t.indexOf(e)&&t.push(e);return t}},{}],741:[function(t,e,r){\"use strict\";function n(t,e){for(var r,n=[],a=0;a<e.length;a++)r=e[a],n[a]=r===t?r:\"object\"==typeof r?Array.isArray(r)?i.extendDeep([],r):i.extendDeepAll({},r):r;return n}var i=t(\"../lib\"),a=t(\"../plot_api/plot_config\"),o={};o.add=function(t,e,r,n,i){var o,s;if(t.undoQueue=t.undoQueue||{index:0,queue:[],sequence:!1},s=t.undoQueue.index,t.autoplay)return void(t.undoQueue.inSequence||(t.autoplay=!1));!t.undoQueue.sequence||t.undoQueue.beginSequence?(o={undo:{calls:[],args:[]},redo:{calls:[],args:[]}},t.undoQueue.queue.splice(s,t.undoQueue.queue.length-s,o),t.undoQueue.index+=1):o=t.undoQueue.queue[s-1],t.undoQueue.beginSequence=!1,o&&(o.undo.calls.unshift(e),o.undo.args.unshift(r),o.redo.calls.push(n),o.redo.args.push(i)),t.undoQueue.queue.length>a.queueLength&&(t.undoQueue.queue.shift(),t.undoQueue.index--)},o.startSequence=function(t){t.undoQueue=t.undoQueue||{index:0,queue:[],sequence:!1},t.undoQueue.sequence=!0,t.undoQueue.beginSequence=!0},o.stopSequence=function(t){t.undoQueue=t.undoQueue||{index:0,queue:[],sequence:!1},t.undoQueue.sequence=!1,t.undoQueue.beginSequence=!1},o.undo=function(t){var e,r;if(t.framework&&t.framework.isPolar)return void t.framework.undo();if(!(void 0===t.undoQueue||isNaN(t.undoQueue.index)||t.undoQueue.index<=0)){for(t.undoQueue.index--,e=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,r=0;r<e.undo.calls.length;r++)o.plotDo(t,e.undo.calls[r],e.undo.args[r]);t.undoQueue.inSequence=!1,t.autoplay=!1}},o.redo=function(t){var e,r;if(t.framework&&t.framework.isPolar)return void t.framework.redo();if(!(void 0===t.undoQueue||isNaN(t.undoQueue.index)||t.undoQueue.index>=t.undoQueue.queue.length)){for(e=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,r=0;r<e.redo.calls.length;r++)o.plotDo(t,e.redo.calls[r],e.redo.args[r]);t.undoQueue.inSequence=!1,t.autoplay=!1,t.undoQueue.index++}},o.plotDo=function(t,e,r){t.autoplay=!0,r=n(t,r),e.apply(null,r)},e.exports=o},{\"../lib\":728,\"../plot_api/plot_config\":760}],742:[function(t,e,r){\"use strict\";r.counter=function(t,e,r){return new RegExp(\"^\"+t+\"([2-9]|[1-9][0-9]+)?\"+(e||\"\")+(r?\"\":\"$\"))}},{}],743:[function(t,e,r){\"use strict\";var n=/^(.*)(\\.[^\\.\\[\\]]+|\\[\\d\\])$/,i=/^[^\\.\\[\\]]+$/;e.exports=function(t,e){for(;e;){var r=t.match(n);if(r)t=r[1];else{if(!t.match(i))throw new Error(\"bad relativeAttr call:\"+[t,e]);t=\"\"}if(\"^\"!==e.charAt(0))break;e=e.slice(1)}return t&&\"[\"!==e.charAt(0)?t+\".\"+e:t+e}},{}],744:[function(t,e,r){\"use strict\";var n=t(\"./is_array\"),i=t(\"./is_plain_object\");e.exports=function t(e,r){for(var a=Object.keys(r||{}),o=0;o<a.length;o++){var s=a[o],l=r[s],u=e[s];if(\"_\"===s.charAt(0)||\"function\"==typeof l){if(s in e)continue;e[s]=l}else if(n(l)&&n(u)&&i(l[0]))for(var c=0;c<l.length;c++)i(l[c])&&i(u[c])&&t(u[c],l[c]);else i(l)&&i(u)&&(t(u,l),Object.keys(u).length||delete e[s])}}},{\"./is_array\":729,\"./is_plain_object\":730}],745:[function(t,e,r){\"use strict\";function n(t,e){return t<e}function i(t,e){return t<=e}function a(t,e){return t>e}function o(t,e){return t>=e}var s=t(\"fast-isnumeric\"),l=t(\"./loggers\");r.findBin=function(t,e,r){if(s(e.start))return r?Math.ceil((t-e.start)/e.size)-1:Math.floor((t-e.start)/e.size);var u,c,h=0,f=e.length,d=0;for(c=e[e.length-1]>=e[0]?r?n:i:r?o:a;h<f&&d++<100;)u=Math.floor((h+f)/2),c(e[u],t)?h=u+1:f=u;return d>90&&l.log(\"Long binary search...\"),h-1},r.sorterAsc=function(t,e){return t-e},r.sorterDes=function(t,e){return e-t},r.distinctVals=function(t){var e=t.slice();e.sort(r.sorterAsc);for(var n=e.length-1,i=e[n]-e[0]||1,a=i/(n||1)/1e4,o=[e[0]],s=0;s<n;s++)e[s+1]>e[s]+a&&(i=Math.min(i,e[s+1]-e[s]),o.push(e[s+1]));return{vals:o,minDiff:i}},r.roundUp=function(t,e,r){for(var n,i=0,a=e.length-1,o=0,s=r?0:1,l=r?1:0,u=r?Math.ceil:Math.floor;i<a&&o++<100;)n=u((i+a)/2),e[n]<=t?i=n+s:a=n-l;return e[i]}},{\"./loggers\":732,\"fast-isnumeric\":131}],746:[function(t,e,r){\"use strict\";e.exports=function(t,e){(t.attr(\"class\")||\"\").split(\" \").forEach(function(e){0===e.indexOf(\"cursor-\")&&t.classed(e,!1)}),e&&t.classed(\"cursor-\"+e,!0)}},{}],747:[function(t,e,r){\"use strict\";var n=t(\"../components/color\"),i=function(){};e.exports=function(t){for(var e in t)\"function\"==typeof t[e]&&(t[e]=i);t.destroy=function(){t.container.parentNode.removeChild(t.container)};var r=document.createElement(\"div\");return r.textContent=\"Webgl is not supported by your browser - visit http://get.webgl.org for more info\",r.style.cursor=\"pointer\",r.style.fontSize=\"24px\",r.style.color=n.defaults[0],t.container.appendChild(r),t.container.style.background=\"#FFFFFF\",t.container.onclick=function(){window.open(\"http://get.webgl.org\")},!1}},{\"../components/color\":604}],748:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\");r.aggNums=function(t,e,i,a){var o,s;if(a||(a=i.length),n(e)||(e=!1),Array.isArray(i[0])){for(s=new Array(a),o=0;o<a;o++)s[o]=r.aggNums(t,e,i[o]);i=s}for(o=0;o<a;o++)n(e)?n(i[o])&&(e=t(+e,+i[o])):e=i[o];return e},r.len=function(t){return r.aggNums(function(t){return t+1},0,t)},r.mean=function(t,e){return e||(e=r.len(t)),r.aggNums(function(t,e){return t+e},0,t)/e},r.variance=function(t,e,i){return e||(e=r.len(t)),n(i)||(i=r.mean(t,e)),r.aggNums(function(t,e){return t+Math.pow(e-i,2)},0,t)/e},r.stdev=function(t,e,n){return Math.sqrt(r.variance(t,e,n))},r.interp=function(t,e){if(!n(e))throw\"n should be a finite number\";if((e=e*t.length-.5)<0)return t[0];if(e>t.length-1)return t[t.length-1];var r=e%1;return r*t[Math.ceil(e)]+(1-r)*t[Math.floor(e)]}},{\"fast-isnumeric\":131}],749:[function(t,e,r){\"use strict\";function n(t){var e=i(t);return e.length?e:[0,0,0,1]}var i=t(\"color-rgba\");e.exports=n},{\"color-rgba\":95}],750:[function(t,e,r){\"use strict\";function n(t,e){return t.node().getBoundingClientRect()[e]}function i(t){return t.replace(g,\"\\\\lt \").replace(y,\"\\\\gt \")}function a(t,e,r){var n=\"math-output-\"+f.randstr([],64),a=h.select(\"body\").append(\"div\").attr({id:n}).style({visibility:\"hidden\",position:\"absolute\"}).style({\"font-size\":e.fontSize+\"px\"}).text(i(t));MathJax.Hub.Queue([\"Typeset\",MathJax.Hub,a.node()],function(){var e=h.select(\"body\").select(\"#MathJax_SVG_glyphs\")\n", ";if(a.select(\".MathJax_SVG\").empty()||!a.select(\"svg\").node())f.log(\"There was an error in the tex syntax.\",t),r();else{var n=a.select(\"svg\").node().getBoundingClientRect();r(a.select(\".MathJax_SVG\"),e,n)}a.remove()})}function o(t,e){if(!t)return null;var r=t.match(e);return r&&(r[3]||r[4])}function s(t,e){if(!t)return\"\";for(var r=0;r<e.length;r++){var n=e[r];t=t.replace(n.regExp,n.sub)}return t}function l(t){return s(t,A)}function u(t,e){function r(){c++;var e=document.createElementNS(d.svg,\"tspan\");h.select(e).attr({class:\"line\",dy:c*m+\"em\"}),t.appendChild(e),a=e;var r=u;if(u=[{node:e}],r.length>1)for(var i=1;i<r.length;i++)n(r[i])}function n(t){var e,r=t.type,n={};if(\"a\"===r){e=\"a\";var o=t.target,s=t.href,l=t.popup;s&&(n={\"xlink:xlink:show\":\"_blank\"===o||\"_\"!==o.charAt(0)?\"new\":\"replace\",target:o,\"xlink:xlink:href\":s},l&&(n.onclick='window.open(this.href.baseVal,this.target.baseVal,\"'+l+'\");return false;'))}else e=\"tspan\";t.style&&(n.style=t.style);var c=document.createElementNS(d.svg,e);if(\"sup\"===r||\"sub\"===r){i(a,w),a.appendChild(c);var f=document.createElementNS(d.svg,\"tspan\");i(f,w),h.select(f).attr(\"dy\",_[r]),n.dy=x[r],a.appendChild(c),a.appendChild(f)}else a.appendChild(c);h.select(c).attr(n),a=t.node=c,u.push(t)}function i(t,e){t.appendChild(document.createTextNode(e))}e=l(e).replace(T,\" \");var a,s=!1,u=[],c=-1;L.test(e)?r():(a=t,u=[{node:t}]);for(var p=e.split(S),v=0;v<p.length;v++){var g=p[v],y=g.match(E),k=y&&y[2].toLowerCase(),A=b[k];if(\"br\"===k)r();else if(void 0===A)i(a,g);else if(y[1])!function(t){if(1===u.length)return void f.log(\"Ignoring unexpected end tag </\"+t+\">.\",e);var r=u.pop();t!==r.type&&f.log(\"Start tag <\"+r.type+\"> doesnt match end tag <\"+t+\">. Pretending it did match.\",e),a=u[u.length-1].node}(k);else{var O=y[4],R={type:k},F=o(O,C);if(F?(F=F.replace(P,\"$1 fill:\"),A&&(F+=\";\"+A)):A&&(F=A),F&&(R.style=F),\"a\"===k){s=!0;var j=o(O,I);if(j){var N=document.createElement(\"a\");N.href=j,-1!==M.indexOf(N.protocol)&&(R.href=encodeURI(j),R.target=o(O,z)||\"_blank\",R.popup=o(O,D))}}n(R)}}return s}function c(t,e,r){var n,i,a,o=r.horizontalAlign,s=r.verticalAlign||\"top\",l=t.node().getBoundingClientRect(),u=e.node().getBoundingClientRect();return i=\"bottom\"===s?function(){return l.bottom-n.height}:\"middle\"===s?function(){return l.top+(l.height-n.height)/2}:function(){return l.top},a=\"right\"===o?function(){return l.right-n.width}:\"center\"===o?function(){return l.left+(l.width-n.width)/2}:function(){return l.left},function(){return n=this.node().getBoundingClientRect(),this.style({top:i()-u.top+\"px\",left:a()-u.left+\"px\",\"z-index\":1e3}),this}}var h=t(\"d3\"),f=t(\"../lib\"),d=t(\"../constants/xmlns_namespaces\"),p=t(\"../constants/string_mappings\"),m=t(\"../constants/alignment\").LINE_SPACING,v=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;r.convertToTspans=function(t,e,i){function o(){c.empty()||(f=t.attr(\"class\")+\"-math\",c.select(\"svg.\"+f).remove()),t.text(\"\").style(\"white-space\",\"pre\"),u(t.node(),s)&&t.style(\"pointer-events\",\"all\"),r.positionText(t),i&&i.call(t)}var s=t.text(),l=!t.attr(\"data-notex\")&&\"undefined\"!=typeof MathJax&&s.match(v),c=h.select(t.node().parentNode);if(!c.empty()){var f=t.attr(\"class\")?t.attr(\"class\").split(\" \")[0]:\"text\";return f+=\"-math\",c.selectAll(\"svg.\"+f).remove(),c.selectAll(\"g.\"+f+\"-group\").remove(),t.style(\"display\",null).attr({\"data-unformatted\":s,\"data-math\":\"N\"}),l?(e&&e._promises||[]).push(new Promise(function(e){t.style(\"display\",\"none\");var r=parseInt(t.node().style.fontSize,10);a(l[2],{fontSize:r},function(a,l,u){c.selectAll(\"svg.\"+f).remove(),c.selectAll(\"g.\"+f+\"-group\").remove();var h=a&&a.select(\"svg\");if(!h||!h.node())return o(),void e();var d=c.append(\"g\").classed(f+\"-group\",!0).attr({\"pointer-events\":\"none\",\"data-unformatted\":s,\"data-math\":\"Y\"});d.node().appendChild(h.node()),l&&l.node()&&h.node().insertBefore(l.node().cloneNode(!0),h.node().firstChild),h.attr({class:f,height:u.height,preserveAspectRatio:\"xMinYMin meet\"}).style({overflow:\"visible\",\"pointer-events\":\"none\"});var p=t.node().style.fill||\"black\";h.select(\"g\").attr({fill:p,stroke:p});var m=n(h,\"width\"),v=n(h,\"height\"),g=+t.attr(\"x\")-m*{start:0,middle:.5,end:1}[t.attr(\"text-anchor\")||\"start\"],y=r||n(t,\"height\"),b=-y/4;\"y\"===f[0]?(d.attr({transform:\"rotate(\"+[-90,+t.attr(\"x\"),+t.attr(\"y\")]+\") translate(\"+[-m/2,b-v/2]+\")\"}),h.attr({x:+t.attr(\"x\"),y:+t.attr(\"y\")})):\"l\"===f[0]?h.attr({x:t.attr(\"x\"),y:b-v/2}):\"a\"===f[0]?h.attr({x:0,y:b}):h.attr({x:g,y:+t.attr(\"y\")+b-v/2}),i&&i.call(t,d),e(d)})})):o(),t}};var g=/(<|&lt;|&#60;)/g,y=/(>|&gt;|&#62;)/g,b={sup:\"font-size:70%\",sub:\"font-size:70%\",b:\"font-weight:bold\",i:\"font-style:italic\",a:\"cursor:pointer\",span:\"\",em:\"font-style:italic;font-weight:bold\"},x={sub:\"0.3em\",sup:\"-0.6em\"},_={sub:\"-0.21em\",sup:\"0.42em\"},w=\"\\u200b\",M=[\"http:\",\"https:\",\"mailto:\",\"\",void 0,\":\"],k=new RegExp(\"</?(\"+Object.keys(b).join(\"|\")+\")( [^>]*)?/?>\",\"g\"),A=Object.keys(p.entityToUnicode).map(function(t){return{regExp:new RegExp(\"&\"+t+\";\",\"g\"),sub:p.entityToUnicode[t]}}),T=/(\\r\\n?|\\n)/g,S=/(<[^<>]*>)/,E=/<(\\/?)([^ >]*)(\\s+(.*))?>/i,L=/<br(\\s+.*)?>/i,C=/(^|[\\s\"'])style\\s*=\\s*(\"([^\"]*);?\"|'([^']*);?')/i,I=/(^|[\\s\"'])href\\s*=\\s*(\"([^\"]*)\"|'([^']*)')/i,z=/(^|[\\s\"'])target\\s*=\\s*(\"([^\"\\s]*)\"|'([^'\\s]*)')/i,D=/(^|[\\s\"'])popup\\s*=\\s*(\"([\\w=,]*)\"|'([\\w=,]*)')/i,P=/(^|;)\\s*color:/;r.plainText=function(t){return(t||\"\").replace(k,\" \")},r.lineCount=function(t){return t.selectAll(\"tspan.line\").size()||1},r.positionText=function(t,e,r){return t.each(function(){function t(t,e){return void 0===e?null===(e=n.attr(t))&&(n.attr(t,0),e=0):n.attr(t,e),e}var n=h.select(this),i=t(\"x\",e),a=t(\"y\",r);\"text\"===this.nodeName&&n.selectAll(\"tspan.line\").attr({x:i,y:a})})},r.makeEditable=function(t,e){function r(){i(),t.style({opacity:0});var e,r=l.attr(\"class\");(e=r?\".\"+r.split(\" \")[0]+\"-math-group\":\"[class*=-math-group]\")&&h.select(t.node().parentNode).select(e).style({opacity:0})}function n(t){var e=t.node(),r=document.createRange();r.selectNodeContents(e);var n=window.getSelection();n.removeAllRanges(),n.addRange(r),e.focus()}function i(){var r=h.select(a),i=r.select(\".svg-container\"),o=i.append(\"div\"),l=t.node().style,u=parseFloat(l.fontSize||12);o.classed(\"plugin-editable editable\",!0).style({position:\"absolute\",\"font-family\":l.fontFamily||\"Arial\",\"font-size\":u,color:e.fill||l.fill||\"black\",opacity:1,\"background-color\":e.background||\"transparent\",outline:\"#ffffff33 1px solid\",margin:[-u/8+1,0,0,-1].join(\"px \")+\"px\",padding:\"0\",\"box-sizing\":\"border-box\"}).attr({contenteditable:!0}).text(e.text||t.attr(\"data-unformatted\")).call(c(t,i,e)).on(\"blur\",function(){a._editing=!1,t.text(this.textContent).style({opacity:1});var e,r=h.select(this).attr(\"class\");(e=r?\".\"+r.split(\" \")[0]+\"-math-group\":\"[class*=-math-group]\")&&h.select(t.node().parentNode).select(e).style({opacity:0});var n=this.textContent;h.select(this).transition().duration(0).remove(),h.select(document).on(\"mouseup\",null),s.edit.call(t,n)}).on(\"focus\",function(){var t=this;a._editing=!0,h.select(document).on(\"mouseup\",function(){if(h.event.target===t)return!1;document.activeElement===o.node()&&o.node().blur()})}).on(\"keyup\",function(){27===h.event.which?(a._editing=!1,t.style({opacity:1}),h.select(this).style({opacity:0}).on(\"blur\",function(){return!1}).transition().remove(),s.cancel.call(t,this.textContent)):(s.input.call(t,this.textContent),h.select(this).call(c(t,i,e)))}).on(\"keydown\",function(){13===h.event.which&&this.blur()}).call(n)}var a=e.gd,o=e.delegate,s=h.dispatch(\"edit\",\"input\",\"cancel\"),l=o||t;if(t.style({\"pointer-events\":o?\"none\":\"all\"}),1!==t.size())throw new Error(\"boo\");return e.immediate?r():l.on(\"click\",r),h.rebind(t,s,\"on\")}},{\"../constants/alignment\":701,\"../constants/string_mappings\":708,\"../constants/xmlns_namespaces\":709,\"../lib\":728,d3:122}],751:[function(t,e,r){\"use strict\";function n(t){t&&null!==t.timer&&(clearTimeout(t.timer),t.timer=null)}var i={};r.throttle=function(t,e,r){function a(){r(),o.ts=Date.now(),o.onDone&&(o.onDone(),o.onDone=null)}var o=i[t],s=Date.now();if(!o){for(var l in i)i[l].ts<s-6e4&&delete i[l];o=i[t]={ts:0,timer:null}}if(n(o),s>o.ts+e)return void a();o.timer=setTimeout(function(){a(),o.timer=null},e)},r.done=function(t){var e=i[t];return e&&e.timer?new Promise(function(t){var r=e.onDone;e.onDone=function(){r&&r(),t(),e.onDone=null}}):Promise.resolve()},r.clear=function(t){if(t)n(i[t]),delete i[t];else for(var e in i)r.clear(e)}},{}],752:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\");e.exports=function(t,e){if(t>0)return Math.log(t)/Math.LN10;var r=Math.log(Math.min(e[0],e[1]))/Math.LN10;return n(r)||(r=Math.log(Math.max(e[0],e[1]))/Math.LN10-6),r}},{\"fast-isnumeric\":131}],753:[function(t,e,r){\"use strict\";var n=e.exports={},i=t(\"../plots/geo/constants\").locationmodeToLayer,a=t(\"topojson-client\").feature;n.getTopojsonName=function(t){return[t.scope.replace(/ /g,\"-\"),\"_\",t.resolution.toString(),\"m\"].join(\"\")},n.getTopojsonPath=function(t,e){return t+e+\".json\"},n.getTopojsonFeatures=function(t,e){var r=i[t.locationmode],n=e.objects[r];return a(e,n).features}},{\"../plots/geo/constants\":798,\"topojson-client\":536}],754:[function(t,e,r){\"use strict\";function n(t,e){for(var r=new Float32Array(e),n=0;n<e;n++)r[n]=t[n];return r}function i(t,e){for(var r=new Float64Array(e),n=0;n<e;n++)r[n]=t[n];return r}e.exports=function(t,e){if(t instanceof Float32Array)return n(t,e);if(t instanceof Float64Array)return i(t,e);throw new Error(\"This array type is not yet supported by `truncate`.\")}},{}],755:[function(t,e,r){\"use strict\";var n=t(\"../registry\");e.exports=function(t){for(var e,r,i=n.layoutArrayContainers,a=n.layoutArrayRegexes,o=t.split(\"[\")[0],s=0;s<a.length;s++)if((r=t.match(a[s]))&&0===r.index){e=r[0];break}if(e||(e=i[i.indexOf(o)]),!e)return!1;var l=t.substr(e.length);return l?!!(r=l.match(/^\\[(0|[1-9][0-9]*)\\](\\.(.+))?$/))&&{array:e,index:Number(r[1]),property:r[3]||\"\"}:{array:e,index:\"\",property:\"\"}}},{\"../registry\":846}],756:[function(t,e,r){\"use strict\";function n(t){for(var e={},r=0;r<t.length;r++)e[t[r]]=!1;return e}function i(t,e,r){var n=s({},t);for(var i in n){var o=n[i];l(o)&&(n[i]=a(o,e,r,i))}return\"from-root\"===r&&(n.editType=e),n}function a(t,e,r,n){if(t.valType){var o=s({},t);if(o.editType=e,Array.isArray(t.items)){o.items=new Array(t.items.length);for(var l=0;l<t.items.length;l++)o.items[l]=a(t.items[l],e,\"from-root\")}return o}return i(t,e,\"_\"===n.charAt(0)?\"nested\":\"from-root\")}var o=t(\"../lib\"),s=o.extendFlat,l=o.isPlainObject,u={valType:\"flaglist\",extras:[\"none\"],flags:[\"calc\",\"calcIfAutorange\",\"clearAxisTypes\",\"plot\",\"style\",\"colorbars\"]},c={valType:\"flaglist\",extras:[\"none\"],flags:[\"calc\",\"calcIfAutorange\",\"plot\",\"legend\",\"ticks\",\"layoutstyle\",\"modebar\",\"camera\",\"arraydraw\"]},h=u.flags.slice().concat([\"clearCalc\",\"fullReplot\"]),f=c.flags.slice().concat(\"layoutReplot\");e.exports={traces:u,layout:c,traceFlags:function(){return n(h)},layoutFlags:function(){return n(f)},update:function(t,e){var r=e.editType;if(r&&\"none\"!==r)for(var n=r.split(\"+\"),i=0;i<n.length;i++)t[n[i]]=!0},overrideAll:i}},{\"../lib\":728}],757:[function(t,e,r){\"use strict\";function n(t,e){var r=t[e],n=e.charAt(0);r&&\"paper\"!==r&&(t[e]=f.cleanId(r,n))}function i(t){var e=\"middle\",r=\"center\";return-1!==t.indexOf(\"top\")?e=\"top\":-1!==t.indexOf(\"bottom\")&&(e=\"bottom\"),-1!==t.indexOf(\"left\")?r=\"left\":-1!==t.indexOf(\"right\")&&(r=\"right\"),e+\" \"+r}function a(t,e){return e in t&&\"object\"==typeof t[e]&&0===Object.keys(t[e]).length}function o(t){var e=t.search(p);if(e>0)return t.substr(0,e)}var s=t(\"fast-isnumeric\"),l=t(\"gl-mat4/fromQuat\"),u=t(\"../registry\"),c=t(\"../lib\"),h=t(\"../plots/plots\"),f=t(\"../plots/cartesian/axes\"),d=t(\"../components/color\");r.clearPromiseQueue=function(t){Array.isArray(t._promises)&&t._promises.length>0&&c.log(\"Clearing previous rejected promises from queue.\"),t._promises=[]},r.cleanLayout=function(t){var e,r;t||(t={}),t.xaxis1&&(t.xaxis||(t.xaxis=t.xaxis1),delete t.xaxis1),t.yaxis1&&(t.yaxis||(t.yaxis=t.yaxis1),delete t.yaxis1);var i=f.list({_fullLayout:t});for(e=0;e<i.length;e++){var o=i[e];o.anchor&&\"free\"!==o.anchor&&(o.anchor=f.cleanId(o.anchor)),o.overlaying&&(o.overlaying=f.cleanId(o.overlaying)),o.type||(o.isdate?o.type=\"date\":o.islog?o.type=\"log\":!1===o.isdate&&!1===o.islog&&(o.type=\"linear\")),\"withzero\"!==o.autorange&&\"tozero\"!==o.autorange||(o.autorange=!0,o.rangemode=\"tozero\"),delete o.islog,delete o.isdate,delete o.categories,a(o,\"domain\")&&delete o.domain,void 0!==o.autotick&&(void 0===o.tickmode&&(o.tickmode=o.autotick?\"auto\":\"linear\"),delete o.autotick)}var s=Array.isArray(t.annotations)?t.annotations.length:0;for(e=0;e<s;e++){var u=t.annotations[e];c.isPlainObject(u)&&(u.ref&&(\"paper\"===u.ref?(u.xref=\"paper\",u.yref=\"paper\"):\"data\"===u.ref&&(u.xref=\"x\",u.yref=\"y\"),delete u.ref),n(u,\"xref\"),n(u,\"yref\"))}var p=Array.isArray(t.shapes)?t.shapes.length:0;for(e=0;e<p;e++){var m=t.shapes[e];c.isPlainObject(m)&&(n(m,\"xref\"),n(m,\"yref\"))}var v=t.legend;v&&(v.x>3?(v.x=1.02,v.xanchor=\"left\"):v.x<-2&&(v.x=-.02,v.xanchor=\"right\"),v.y>3?(v.y=1.02,v.yanchor=\"bottom\"):v.y<-2&&(v.y=-.02,v.yanchor=\"top\")),\"rotate\"===t.dragmode&&(t.dragmode=\"orbit\"),t.scene1&&(t.scene||(t.scene=t.scene1),delete t.scene1);var g=h.getSubplotIds(t,\"gl3d\");for(e=0;e<g.length;e++){var y=t[g[e]],b=y.cameraposition;if(Array.isArray(b)&&4===b[0].length){var x=b[0],_=b[1],w=b[2],M=l([],x),k=[];for(r=0;r<3;++r)k[r]=_[e]+w*M[2+4*r];y.camera={eye:{x:k[0],y:k[1],z:k[2]},center:{x:_[0],y:_[1],z:_[2]},up:{x:M[1],y:M[5],z:M[9]}},delete y.cameraposition}}return d.clean(t),t},r.cleanData=function(t,e){for(var n=[],o=(t.concat(Array.isArray(e)?e:[]).filter(function(t){return\"uid\"in t}).map(function(t){return t.uid})),s=0;s<t.length;s++){var l,p=t[s];if(!(\"uid\"in p)||-1!==n.indexOf(p.uid)){var m;for(l=0;l<100&&(m=c.randstr(o),-1!==n.indexOf(m));l++);p.uid=c.randstr(o),o.push(p.uid)}if(n.push(p.uid),\"histogramy\"===p.type&&\"xbins\"in p&&!(\"ybins\"in p)&&(p.ybins=p.xbins,delete p.xbins),p.error_y&&\"opacity\"in p.error_y){var v=d.defaults,g=p.error_y.color||(u.traceIs(p,\"bar\")?d.defaultLine:v[s%v.length]);p.error_y.color=d.addOpacity(d.rgb(g),d.opacity(g)*p.error_y.opacity),delete p.error_y.opacity}if(\"bardir\"in p&&(\"h\"!==p.bardir||!u.traceIs(p,\"bar\")&&\"histogram\"!==p.type.substr(0,9)||(p.orientation=\"h\",r.swapXYData(p)),delete p.bardir),\"histogramy\"===p.type&&r.swapXYData(p),\"histogramx\"!==p.type&&\"histogramy\"!==p.type||(p.type=\"histogram\"),\"scl\"in p&&(p.colorscale=p.scl,delete p.scl),\"reversescl\"in p&&(p.reversescale=p.reversescl,delete p.reversescl),p.xaxis&&(p.xaxis=f.cleanId(p.xaxis,\"x\")),p.yaxis&&(p.yaxis=f.cleanId(p.yaxis,\"y\")),u.traceIs(p,\"gl3d\")&&p.scene&&(p.scene=h.subplotsRegistry.gl3d.cleanId(p.scene)),u.traceIs(p,\"pie\")||u.traceIs(p,\"bar\")||(Array.isArray(p.textposition)?p.textposition=p.textposition.map(i):p.textposition&&(p.textposition=i(p.textposition))),u.traceIs(p,\"2dMap\")&&(\"YIGnBu\"===p.colorscale&&(p.colorscale=\"YlGnBu\"),\"YIOrRd\"===p.colorscale&&(p.colorscale=\"YlOrRd\")),u.traceIs(p,\"markerColorscale\")&&p.marker){var y=p.marker;\"YIGnBu\"===y.colorscale&&(y.colorscale=\"YlGnBu\"),\"YIOrRd\"===y.colorscale&&(y.colorscale=\"YlOrRd\")}if(\"surface\"===p.type&&c.isPlainObject(p.contours)){var b=[\"x\",\"y\",\"z\"];for(l=0;l<b.length;l++){var x=p.contours[b[l]];c.isPlainObject(x)&&(x.highlightColor&&(x.highlightcolor=x.highlightColor,delete x.highlightColor),x.highlightWidth&&(x.highlightwidth=x.highlightWidth,delete x.highlightWidth))}}if(Array.isArray(p.transforms)){var _=p.transforms;for(l=0;l<_.length;l++){var w=_[l];if(c.isPlainObject(w))switch(w.type){case\"filter\":w.filtersrc&&(w.target=w.filtersrc,delete w.filtersrc),w.calendar&&(w.valuecalendar||(w.valuecalendar=w.calendar),delete w.calendar);break;case\"groupby\":if(w.styles=w.styles||w.style,w.styles&&!Array.isArray(w.styles)){var M=w.styles,k=Object.keys(M);w.styles=[];for(var A=0;A<k.length;A++)w.styles.push({target:k[A],value:M[k[A]]})}}}}a(p,\"line\")&&delete p.line,\"marker\"in p&&(a(p.marker,\"line\")&&delete p.marker.line,a(p,\"marker\")&&delete p.marker),d.clean(p)}},r.swapXYData=function(t){var e;if(c.swapAttrs(t,[\"?\",\"?0\",\"d?\",\"?bins\",\"nbins?\",\"autobin?\",\"?src\",\"error_?\"]),Array.isArray(t.z)&&Array.isArray(t.z[0])&&(t.transpose?delete t.transpose:t.transpose=!0),t.error_x&&t.error_y){var r=t.error_y,n=\"copy_ystyle\"in r?r.copy_ystyle:!(r.color||r.thickness||r.width);c.swapAttrs(t,[\"error_?.copy_ystyle\"]),n&&c.swapAttrs(t,[\"error_?.color\",\"error_?.thickness\",\"error_?.width\"])}if(\"string\"==typeof t.hoverinfo){var i=t.hoverinfo.split(\"+\");for(e=0;e<i.length;e++)\"x\"===i[e]?i[e]=\"y\":\"y\"===i[e]&&(i[e]=\"x\");t.hoverinfo=i.join(\"+\")}},r.coerceTraceIndices=function(t,e){return s(e)?[e]:Array.isArray(e)&&e.length?e:t.data.map(function(t,e){return e})},r.manageArrayContainers=function(t,e,r){var n=t.obj,i=t.parts,a=i.length,o=i[a-1],l=s(o);if(l&&null===e){var u=i.slice(0,a-1).join(\".\");c.nestedProperty(n,u).get().splice(o,1)}else l&&void 0===t.get()?(void 0===t.get()&&(r[t.astr]=null),t.set(e)):t.set(e)};var p=/(\\.[^\\[\\]\\.]+|\\[[^\\[\\]\\.]+\\])$/;r.hasParent=function(t,e){for(var r=o(e);r;){if(r in t)return!0;r=o(r)}return!1};var m=[\"x\",\"y\",\"z\"];r.clearAxisTypes=function(t,e,r){for(var n=0;n<e.length;n++)for(var i=t._fullData[n],a=0;a<3;a++){var o=f.getFromTrace(t,i,m[a]);if(o&&\"log\"!==o.type){var s=o._name,l=o._id.substr(1);if(\"scene\"===l.substr(0,5)){if(void 0!==r[l])continue;s=l+\".\"+s}var u=s+\".type\";void 0===r[s]&&void 0===r[u]&&c.nestedProperty(t.layout,u).set(null)}}}},{\"../components/color\":604,\"../lib\":728,\"../plots/cartesian/axes\":772,\"../plots/plots\":831,\"../registry\":846,\"fast-isnumeric\":131,\"gl-mat4/fromQuat\":178}],758:[function(t,e,r){\"use strict\";var n=t(\"../lib/nested_property\"),i=t(\"../lib/is_plain_object\"),a=t(\"../lib/noop\"),o=t(\"../lib/loggers\"),s=t(\"../lib/search\").sorterAsc,l=t(\"../registry\");r.containerArrayMatch=t(\"./container_array_match\");var u=r.isAddVal=function(t){return\"add\"===t||i(t)},c=r.isRemoveVal=function(t){return null===t||\"remove\"===t};r.applyContainerArrayChanges=function(t,e,r,i){var h=e.astr,f=l.getComponentMethod(h,\"supplyLayoutDefaults\"),d=l.getComponentMethod(h,\"draw\"),p=l.getComponentMethod(h,\"drawOne\"),m=i.replot||i.recalc||f===a||d===a,v=t.layout,g=t._fullLayout;if(r[\"\"]){Object.keys(r).length>1&&o.warn(\"Full array edits are incompatible with other edits\",h);var y=r[\"\"][\"\"];if(c(y))e.set(null);else{if(!Array.isArray(y))return o.warn(\"Unrecognized full array edit value\",h,y),!0;e.set(y)}return!m&&(f(v,g),d(t),!0)}var b,x,_,w,M,k,A,T=Object.keys(r).map(Number).sort(s),S=e.get(),E=S||[],L=n(g,h).get(),C=[],I=-1,z=E.length;for(b=0;b<T.length;b++)if(_=T[b],w=r[_],M=Object.keys(w),k=w[\"\"],A=u(k),_<0||_>E.length-(A?0:1))o.warn(\"index out of range\",h,_);else if(void 0!==k)M.length>1&&o.warn(\"Insertion & removal are incompatible with edits to the same index.\",h,_),c(k)?C.push(_):A?(\"add\"===k&&(k={}),E.splice(_,0,k),L&&L.splice(_,0,{})):o.warn(\"Unrecognized full object edit value\",h,_,k),-1===I&&(I=_);else for(x=0;x<M.length;x++)n(E[_],M[x]).set(w[M[x]]);for(b=C.length-1;b>=0;b--)E.splice(C[b],1),L&&L.splice(C[b],1);if(E.length?S||e.set(E):e.set(null),m)return!1;if(f(v,g),p!==a){var D;if(-1===I)D=T;else{for(z=Math.max(E.length,z),D=[],b=0;b<T.length&&!((_=T[b])>=I);b++)D.push(_);for(b=I;b<z;b++)D.push(b)}for(b=0;b<D.length;b++)p(t,D[b])}else d(t);return!0}},{\"../lib/is_plain_object\":730,\"../lib/loggers\":732,\"../lib/nested_property\":735,\"../lib/noop\":736,\"../lib/search\":745,\"../registry\":846,\"./container_array_match\":755}],759:[function(t,e,r){\"use strict\";function n(t,e){try{t._fullLayout._paper.style(\"background\",e)}catch(t){w.error(t)}}function i(t,e){n(t,I.combine(e,\"white\"))}function a(t,e){t._context||(t._context=w.extendDeep({},_.defaultConfig));var r,a,o,s=t._context;if(e){for(a=Object.keys(e),r=0;r<a.length;r++)\"editable\"!==(o=a[r])&&\"edits\"!==o&&o in s&&(\"setBackground\"===o&&\"opaque\"===e[o]?s[o]=i:s[o]=e[o]);e.plot3dPixelRatio&&!s.plotGlPixelRatio&&(s.plotGlPixelRatio=s.plot3dPixelRatio);var l=e.editable;if(void 0!==l)for(s.editable=l,a=Object.keys(s.edits),r=0;r<a.length;r++)s.edits[a[r]]=l;if(e.edits)for(a=Object.keys(e.edits),r=0;r<a.length;r++)(o=a[r])in s.edits&&(s.edits[o]=e.edits[o])}s.staticPlot&&(s.editable=!1,s.edits={},s.autosizable=!1,s.scrollZoom=!1,s.doubleClick=!1,s.showTips=!1,s.showLink=!1,s.displayModeBar=!1),\"hover\"!==s.displayModeBar||x||(s.displayModeBar=!0),\"transparent\"!==s.setBackground&&\"function\"==typeof s.setBackground||(s.setBackground=n)}function o(t,e,r){var n=y.select(t).selectAll(\".plot-container\").data([0]);n.enter().insert(\"div\",\":first-child\").classed(\"plot-container plotly\",!0);var i=n.selectAll(\".svg-container\").data([0]);i.enter().append(\"div\").classed(\"svg-container\",!0).style(\"position\",\"relative\"),i.html(\"\"),e&&(t.data=e),r&&(t.layout=r),E.manager.fillLayout(t),i.style({width:t._fullLayout.width+\"px\",height:t._fullLayout.height+\"px\"}),t.framework=E.manager.framework(t),t.framework({data:t.data,layout:t.layout},i.node()),t.framework.setUndoPoint();var a=t.framework.svg(),o=1,s=t._fullLayout.title;\"\"!==s&&s||(o=0);var l=function(){this.call(P.convertToTspans,t)},u=a.select(\".title-group text\").call(l);if(t._context.edits.titleText){s&&\"Click to enter title\"!==s||(o=.2,u.attr({\"data-unformatted\":\"Click to enter title\"}).text(\"Click to enter title\").style({opacity:o}).on(\"mouseover.opacity\",function(){y.select(this).transition().duration(100).style(\"opacity\",1)}).on(\"mouseout.opacity\",function(){y.select(this).transition().duration(1e3).style(\"opacity\",0)}));var c=function(){this.call(P.makeEditable,{gd:t}).on(\"edit\",function(e){t.framework({layout:{title:e}}),this.text(e).call(l),this.call(c)}).on(\"cancel\",function(){var t=this.attr(\"data-unformatted\");this.text(t).call(l)})};u.call(c)}return t._context.setBackground(t,t._fullLayout.paper_bgcolor),S.addLinks(t),Promise.resolve()}function s(t,e){var r,n,i=e+1,a=[];for(r=0;r<t.length;r++)n=t[r],n<0?a.push(i+n):a.push(n);return a}function l(t,e,r){var n,i;for(n=0;n<e.length;n++){if((i=e[n])!==parseInt(i,10))throw new Error(\"all values in \"+r+\" must be integers\");if(i>=t.data.length||i<-t.data.length)throw new Error(r+\" must be valid indices for gd.data.\");if(e.indexOf(i,n+1)>-1||i>=0&&e.indexOf(-t.data.length+i)>-1||i<0&&e.indexOf(t.data.length+i)>-1)throw new Error(\"each index in \"+r+\" must be unique.\")}}function u(t,e,r){if(!Array.isArray(t.data))throw new Error(\"gd.data must be an array.\");if(void 0===e)throw new Error(\"currentIndices is a required argument.\");if(Array.isArray(e)||(e=[e]),l(t,e,\"currentIndices\"),void 0===r||Array.isArray(r)||(r=[r]),void 0!==r&&l(t,r,\"newIndices\"),void 0!==r&&e.length!==r.length)throw new Error(\"current and new indices must be of equal length.\")}function c(t,e,r){var n,i;if(!Array.isArray(t.data))throw new Error(\"gd.data must be an array.\");if(void 0===e)throw new Error(\"traces must be defined.\");for(Array.isArray(e)||(e=[e]),n=0;n<e.length;n++)if(\"object\"!=typeof(i=e[n])||Array.isArray(i)||null===i)throw new Error(\"all values in traces array must be non-array objects\");if(void 0===r||Array.isArray(r)||(r=[r]),void 0!==r&&r.length!==e.length)throw new Error(\"if indices is specified, traces.length must equal indices.length\")}function h(t,e,r,n){var i=w.isPlainObject(n);if(!Array.isArray(t.data))throw new Error(\"gd.data must be an array\");if(!w.isPlainObject(e))throw new Error(\"update must be a key:value object\");if(void 0===r)throw new Error(\"indices must be an integer or array of integers\");l(t,r,\"indices\");for(var a in e){if(!Array.isArray(e[a])||e[a].length!==r.length)throw new Error(\"attribute \"+a+\" must be an array of length equal to indices array length\");if(i&&(!(a in n)||!Array.isArray(n[a])||n[a].length!==e[a].length))throw new Error(\"when maxPoints is set as a key:value object it must contain a 1:1 corrispondence with the keys and number of traces in the update object\")}}function f(t,e,r,n){var i,a,o,l,u,c=w.isPlainObject(n),h=[];Array.isArray(r)||(r=[r]),r=s(r,t.data.length-1);for(var f in e)for(var d=0;d<r.length;d++){if(i=t.data[r[d]],o=w.nestedProperty(i,f),a=o.get(),l=e[f][d],!Array.isArray(l))throw new Error(\"attribute: \"+f+\" index: \"+d+\" must be an array\");if(!Array.isArray(a))throw new Error(\"cannot extend missing or non-array attribute: \"+f);u=c?n[f][d]:n,b(u)||(u=-1),h.push({prop:o,target:a,insert:l,maxp:Math.floor(u)})}return h}function d(t,e,r,n,i,a){h(t,e,r,n);for(var o,s,l,u=f(t,e,r,n),c=[],d={},p={},m=0;m<u.length;m++)s=u[m].prop,l=u[m].maxp,o=i(u[m].target,u[m].insert),l>=0&&l<o.length&&(c=a(o,l)),l=u[m].target.length,s.set(o),Array.isArray(d[s.astr])||(d[s.astr]=[]),Array.isArray(p[s.astr])||(p[s.astr]=[]),d[s.astr].push(c),p[s.astr].push(l);return{update:d,maxPoints:p}}function p(t){return void 0===t?null:t}function m(t,e,r){function n(){return r.map(function(){})}function i(t){var e=_.Axes.id2name(t);-1===u.indexOf(e)&&u.push(e)}function a(t){return\"LAYOUT\"+t+\".autorange\"}function o(t){return\"LAYOUT\"+t+\".range\"}function s(i,a,o){if(Array.isArray(i))return void i.forEach(function(t){s(t,a,o)});if(!(i in e||R.hasParent(e,i))){var l;l=\"LAYOUT\"===i.substr(0,6)?w.nestedProperty(t.layout,i.replace(\"LAYOUT\",\"\")):w.nestedProperty(f[r[o]],i),i in v||(v[i]=n()),void 0===v[i][o]&&(v[i][o]=p(l.get())),void 0!==a&&l.set(a)}}var l,u,c=t._fullLayout,h=t._fullData,f=t.data,d=j.traceFlags(),m={},v={},g={};for(var y in e){if(R.hasParent(e,y))throw new Error(\"cannot set \"+y+\"and a parent attribute simultaneously\");var b,x,M,k,E,L,C=e[y];if(m[y]=C,\"LAYOUT\"!==y.substr(0,6)){for(v[y]=n(),l=0;l<r.length;l++)if(b=f[r[l]],x=h[r[l]],M=w.nestedProperty(b,y),k=M.get(),void 0!==(E=Array.isArray(C)?C[l%C.length]:C)){if((L=T.getTraceValObject(x,M.parts))&&L.impliedEdits&&null!==E)for(var I in L.impliedEdits)s(w.relativeAttr(y,I),L.impliedEdits[I],l);else if(\"colorbar.thicknessmode\"===y&&M.get()!==E&&-1!==[\"fraction\",\"pixels\"].indexOf(E)&&x.colorbar){var z=-1!==[\"top\",\"bottom\"].indexOf(x.colorbar.orient)?c.height-c.margin.t-c.margin.b:c.width-c.margin.l-c.margin.r;s(\"colorbar.thickness\",x.colorbar.thickness*(\"fraction\"===E?1/z:z),l)}else if(\"colorbar.lenmode\"===y&&M.get()!==E&&-1!==[\"fraction\",\"pixels\"].indexOf(E)&&x.colorbar){var D=-1!==[\"top\",\"bottom\"].indexOf(x.colorbar.orient)?c.width-c.margin.l-c.margin.r:c.height-c.margin.t-c.margin.b;s(\"colorbar.len\",x.colorbar.len*(\"fraction\"===E?1/D:D),l)}else\"colorbar.tick0\"!==y&&\"colorbar.dtick\"!==y||s(\"colorbar.tickmode\",\"linear\",l);if(\"type\"===y&&\"pie\"===E!=(\"pie\"===k)){var P=\"x\",O=\"y\";\"bar\"!==E&&\"bar\"!==k||\"h\"!==b.orientation||(P=\"y\",O=\"x\"),w.swapAttrs(b,[\"?\",\"?src\"],\"labels\",P),w.swapAttrs(b,[\"d?\",\"?0\"],\"label\",P),w.swapAttrs(b,[\"?\",\"?src\"],\"values\",O),\"pie\"===k?(w.nestedProperty(b,\"marker.color\").set(w.nestedProperty(b,\"marker.colors\").get()),c._pielayer.selectAll(\"g.trace\").remove()):A.traceIs(b,\"cartesian\")&&(w.nestedProperty(b,\"marker.colors\").set(w.nestedProperty(b,\"marker.color\").get()),g[b.xaxis||\"x\"]=!0,g[b.yaxis||\"y\"]=!0)}v[y][l]=p(k);var F=[\"swapxy\",\"swapxyaxes\",\"orientation\",\"orientationaxes\"];if(-1!==F.indexOf(y)){if(\"orientation\"===y){M.set(E);var N=b.x&&!b.y?\"h\":\"v\";if((M.get()||N)===x.orientation)continue}else\"orientationaxes\"===y&&(b.orientation={v:\"h\",h:\"v\"}[x.orientation]);R.swapXYData(b),d.calc=d.clearAxisTypes=!0}else-1!==S.dataArrayContainers.indexOf(M.parts[0])?(R.manageArrayContainers(M,E,v),d.calc=!0):(L?L.arrayOk&&(Array.isArray(E)||Array.isArray(k))?d.calc=!0:j.update(d,L):d.calc=!0,M.set(E))}if(-1!==[\"swapxyaxes\",\"orientationaxes\"].indexOf(y)&&_.Axes.swap(t,r),\"orientationaxes\"===y){var B=w.nestedProperty(t.layout,\"hovermode\");\"x\"===B.get()?B.set(\"y\"):\"y\"===B.get()&&B.set(\"x\")}if(-1!==[\"orientation\",\"type\"].indexOf(y)){for(u=[],l=0;l<r.length;l++){var U=f[r[l]];A.traceIs(U,\"cartesian\")&&(i(U.xaxis||\"x\"),i(U.yaxis||\"y\"),\"type\"===y&&s([\"autobinx\",\"autobiny\"],!0,l))}s(u.map(a),!0,0),s(u.map(o),[0,1],0)}}else M=w.nestedProperty(t.layout,y.replace(\"LAYOUT\",\"\")),v[y]=[p(M.get())],M.set(Array.isArray(C)?C[0]:C),d.calc=!0}var V=!1,H=_.Axes.list(t);for(l=0;l<H.length;l++)if(H[l].autorange){V=!0;break}var q=Object.keys(g);t:for(l=0;l<q.length;l++){for(var G=q[l],Y=G.charAt(0),W=Y+\"axis\",X=0;X<f.length;X++)if(A.traceIs(f[X],\"cartesian\")&&(f[X][W]||Y)===G)continue t;s(\"LAYOUT\"+_.Axes.id2name(G),null,0)}return(d.calc||d.calcIfAutorange&&V)&&(d.clearCalc=!0),(d.calc||d.plot||d.calcIfAutorange)&&(d.fullReplot=!0),{flags:d,undoit:v,redoit:m,traces:r,eventData:w.extendDeepNoArrays([],[m,r])}}function v(t,e){function r(t,n){if(Array.isArray(t))return void t.forEach(function(t){r(t,n)});if(!(t in e||R.hasParent(e,t))){var i=w.nestedProperty(l,t);t in x||(x[t]=p(i.get())),void 0!==n&&i.set(n)}}function n(e,r){if(!w.isPlainObject(e))return!1;var n=e[r+\"ref\"]||r,i=_.Axes.getFromId(t,n);return i||n.charAt(0)!==r||(i=_.Axes.getFromId(t,r)),(i||{}).autorange}function i(t){var e=H.name2id(t.split(\".\")[0]);return M[e]=1,e}var a,o,s,l=t.layout,u=t._fullLayout,c=Object.keys(e),h=_.Axes.list(t),f={};for(o=0;o<c.length;o++)if(0===c[o].indexOf(\"allaxes\")){for(s=0;s<h.length;s++){var d=h[s]._id.substr(1),m=-1!==d.indexOf(\"scene\")?d+\".\":\"\",v=c[o].replace(\"allaxes\",m+h[s]._name);e[v]||(e[v]=e[c[o]])}delete e[c[o]]}var g,y=j.layoutFlags(),b={},x={},M={};for(var k in e){if(R.hasParent(e,k))throw new Error(\"cannot set \"+k+\"and a parent attribute simultaneously\");var E=w.nestedProperty(l,k),L=e[k],C=E.parts.length,I=\"string\"==typeof E.parts[C-1]?C-1:C-2,z=E.parts[I],D=E.parts[I-1]+\".\"+z,P=E.parts.slice(0,I).join(\".\"),F=w.nestedProperty(t.layout,P).get(),B=w.nestedProperty(u,P).get(),U=E.get();if(void 0!==L){b[k]=L,x[k]=\"reverse\"===z?L:p(U);var V=T.getLayoutValObject(u,E.parts);if(V&&V.impliedEdits&&null!==L)for(var q in V.impliedEdits)r(w.relativeAttr(k,q),V.impliedEdits[q]);if(-1!==[\"width\",\"height\"].indexOf(k)&&null===L)u[k]=t._initialAutoSize[k];else if(D.match(/^[xyz]axis[0-9]*\\.range(\\[[0|1]\\])?$/))i(D),w.nestedProperty(u,P+\"._inputRange\").set(null);else if(D.match(/^[xyz]axis[0-9]*\\.autorange$/)){i(D),w.nestedProperty(u,P+\"._inputRange\").set(null);var G=w.nestedProperty(u,P).get();G._inputDomain&&(G._input.domain=G._inputDomain.slice())}else D.match(/^[xyz]axis[0-9]*\\.domain(\\[[0|1]\\])?$/)&&w.nestedProperty(u,P+\"._inputDomain\").set(null);if(\"type\"===z){var Y=F,W=\"linear\"===B.type&&\"log\"===L,X=\"log\"===B.type&&\"linear\"===L;if(W||X){if(Y&&Y.range)if(B.autorange)W&&(Y.range=Y.range[1]>Y.range[0]?[1,2]:[2,1]);else{var Z=Y.range[0],J=Y.range[1];W?(Z<=0&&J<=0&&r(P+\".autorange\",!0),Z<=0?Z=J/1e6:J<=0&&(J=Z/1e6),r(P+\".range[0]\",Math.log(Z)/Math.LN10),r(P+\".range[1]\",Math.log(J)/Math.LN10)):(r(P+\".range[0]\",Math.pow(10,Z)),r(P+\".range[1]\",Math.pow(10,J)))}else r(P+\".autorange\",!0);A.getComponentMethod(\"annotations\",\"convertCoords\")(t,B,L,r),A.getComponentMethod(\"images\",\"convertCoords\")(t,B,L,r)}else r(P+\".autorange\",!0),r(P+\".range\",null);w.nestedProperty(u,P+\"._inputRange\").set(null)}else if(z.match(N.AX_NAME_PATTERN)){var K=w.nestedProperty(u,k).get(),Q=(L||{}).type;Q&&\"-\"!==Q||(Q=\"linear\"),A.getComponentMethod(\"annotations\",\"convertCoords\")(t,K,Q,r),A.getComponentMethod(\"images\",\"convertCoords\")(t,K,Q,r)}var $=O.containerArrayMatch(k);if($){a=$.array,o=$.index;var tt=$.property,et=w.nestedProperty(l,a),rt=(et||[])[o]||{},nt=rt,it=V||{editType:\"calc\"},at=-1!==it.editType.indexOf(\"calcIfAutorange\");\"\"===o?(at?y.calc=!0:j.update(y,it),at=!1):\"\"===tt&&(nt=L,O.isAddVal(L)?x[k]=null:O.isRemoveVal(L)?(x[k]=rt,nt=rt):w.warn(\"unrecognized full object value\",e)),at&&(n(nt,\"x\")||n(nt,\"y\"))?y.calc=!0:j.update(y,it),f[a]||(f[a]={});var ot=f[a][o];ot||(ot=f[a][o]={}),ot[tt]=L,delete e[k]}else\"reverse\"===z?(F.range?F.range.reverse():(r(P+\".autorange\",!0),F.range=[1,0]),B.autorange?y.calc=!0:y.plot=!0):((!u._has(\"gl2d\")||\"dragmode\"!==k||\"lasso\"!==L&&\"select\"!==L||\"lasso\"===U||\"select\"===U)&&V?j.update(y,V):y.calc=!0,E.set(L))}}for(a in f){O.applyContainerArrayChanges(t,w.nestedProperty(l,a),f[a],y)||(y.plot=!0)}var st=u._axisConstraintGroups;for(g in M)for(o=0;o<st.length;o++){var lt=st[o];if(lt[g]){y.calc=!0;for(var ut in lt)M[ut]||(H.getFromId(t,ut)._constraintShrinkable=!0)}}var ct=u.width,ht=u.height\n", ";return t.layout.autosize&&S.plotAutoSize(t,t.layout,u),(e.height||e.width||u.width!==ct||u.height!==ht)&&(y.calc=!0),(y.plot||y.calc)&&(y.layoutReplot=!0),{flags:y,undoit:x,redoit:b,eventData:w.extendDeep({},b)}}function g(t){var e=y.select(t),r=t._fullLayout;if(r._container=e.selectAll(\".plot-container\").data([0]),r._container.enter().insert(\"div\",\":first-child\").classed(\"plot-container\",!0).classed(\"plotly\",!0),r._paperdiv=r._container.selectAll(\".svg-container\").data([0]),r._paperdiv.enter().append(\"div\").classed(\"svg-container\",!0).style(\"position\",\"relative\"),r._glcontainer=r._paperdiv.selectAll(\".gl-container\").data([0]),r._glcontainer.enter().append(\"div\").classed(\"gl-container\",!0),r._paperdiv.selectAll(\".main-svg\").remove(),r._paper=r._paperdiv.insert(\"svg\",\":first-child\").classed(\"main-svg\",!0),r._toppaper=r._paperdiv.append(\"svg\").classed(\"main-svg\",!0),!r._uid){var n=[];y.selectAll(\"defs\").each(function(){this.id&&n.push(this.id.split(\"-\")[1])}),r._uid=w.randstr(n)}r._paperdiv.selectAll(\".main-svg\").attr(D.svgAttrs),r._defs=r._paper.append(\"defs\").attr(\"id\",\"defs-\"+r._uid),r._clips=r._defs.append(\"g\").classed(\"clips\",!0),r._topdefs=r._toppaper.append(\"defs\").attr(\"id\",\"topdefs-\"+r._uid),r._topclips=r._topdefs.append(\"g\").classed(\"clips\",!0),r._bgLayer=r._paper.append(\"g\").classed(\"bglayer\",!0),r._draggers=r._paper.append(\"g\").classed(\"draglayer\",!0);var i=r._paper.append(\"g\").classed(\"layer-below\",!0);r._imageLowerLayer=i.append(\"g\").classed(\"imagelayer\",!0),r._shapeLowerLayer=i.append(\"g\").classed(\"shapelayer\",!0),r._cartesianlayer=r._paper.append(\"g\").classed(\"cartesianlayer\",!0),r._ternarylayer=r._paper.append(\"g\").classed(\"ternarylayer\",!0),r._geolayer=r._paper.append(\"g\").classed(\"geolayer\",!0);var a=r._paper.append(\"g\").classed(\"layer-above\",!0);r._imageUpperLayer=a.append(\"g\").classed(\"imagelayer\",!0),r._shapeUpperLayer=a.append(\"g\").classed(\"shapelayer\",!0),r._pielayer=r._paper.append(\"g\").classed(\"pielayer\",!0),r._glimages=r._paper.append(\"g\").classed(\"glimages\",!0),r._infolayer=r._toppaper.append(\"g\").classed(\"infolayer\",!0),r._zoomlayer=r._toppaper.append(\"g\").classed(\"zoomlayer\",!0),r._hoverlayer=r._toppaper.append(\"g\").classed(\"hoverlayer\",!0),t.emit(\"plotly_framework\")}var y=t(\"d3\"),b=t(\"fast-isnumeric\"),x=t(\"has-hover\"),_=t(\"../plotly\"),w=t(\"../lib\"),M=t(\"../lib/events\"),k=t(\"../lib/queue\"),A=t(\"../registry\"),T=t(\"./plot_schema\"),S=t(\"../plots/plots\"),E=t(\"../plots/polar\"),L=t(\"../plots/cartesian/graph_interact\"),C=t(\"../components/drawing\"),I=t(\"../components/color\"),z=t(\"../components/errorbars\"),D=t(\"../constants/xmlns_namespaces\"),P=t(\"../lib/svg_text_utils\"),O=t(\"./manage_arrays\"),R=t(\"./helpers\"),F=t(\"./subroutines\"),j=t(\"./edit_types\"),N=t(\"../plots/cartesian/constants\"),B=t(\"../plots/cartesian/constraints\"),U=B.enforce,V=B.clean,H=t(\"../plots/cartesian/axis_ids\");_.plot=function(t,e,r,n){function i(){if(m)return _.addFrames(t,m)}function s(){for(var e=x._basePlotModules,r=0;r<e.length;r++)e[r].drawFramework&&e[r].drawFramework(t);return w.syncOrAsync([F.layoutStyles],t)}function l(){var e,r,n,i=t.calcdata;for(A.getComponentMethod(\"legend\",\"draw\")(t),A.getComponentMethod(\"rangeselector\",\"draw\")(t),A.getComponentMethod(\"sliders\",\"draw\")(t),A.getComponentMethod(\"updatemenus\",\"draw\")(t),e=0;e<i.length;e++)r=i[e],n=r[0].trace,!0===n.visible&&n._module.colorbar?n._module.colorbar(t,r):S.autoMargin(t,\"cb\"+n.uid);return S.doAutoMargin(t),S.previousPromises(t)}function u(){if(JSON.stringify(x._size)!==E)return w.syncOrAsync([l,F.layoutStyles],t)}function c(){if(!k)return void U(t);var e,r,n,i=S.getSubplotIds(x,\"cartesian\"),a=x._modules,o=[];for(n=0;n<a.length;n++)w.pushUnique(o,a[n].setPositions);if(o.length)for(r=0;r<i.length;r++)for(e=x._plots[i[r]],n=0;n<o.length;n++)o[n](t,e);return z.calc(t),w.syncOrAsync([A.getComponentMethod(\"shapes\",\"calcAutorange\"),A.getComponentMethod(\"annotations\",\"calcAutorange\"),h,A.getComponentMethod(\"rangeslider\",\"calcAutorange\")],t)}function h(){if(!t._transitioning){for(var e=_.Axes.list(t,\"\",!0),r=0;r<e.length;r++){var n=e[r];V(t,n),_.Axes.doAutoRange(n)}U(t),b&&_.Axes.saveRangeInitial(t)}}function f(){return _.Axes.doTicks(t,\"redraw\")}function d(){var e,r=t.calcdata,n=x._infolayer.selectAll(\"g.rangeslider-container\");for(e=0;e<r.length;e++){var i=r[e][0].trace,a=!0===i.visible,o=i.uid;if(!a||!A.traceIs(i,\"2dMap\")){var s=\".hm\"+o+\",.contour\"+o+\",#clip\"+o;x._paper.selectAll(s).remove(),n.selectAll(s).remove()}a&&i._module.colorbar||x._infolayer.selectAll(\".cb\"+o).remove()}var l=x._basePlotModules;for(e=0;e<l.length;e++)l[e].plot(t);var u=x._paper.selectAll(\".layer-subplot\");return x._shapeSubplotLayers=u.selectAll(\".shapelayer\"),S.style(t),A.getComponentMethod(\"shapes\",\"draw\")(t),A.getComponentMethod(\"annotations\",\"draw\")(t),S.addLinks(t),x._replotting=!1,S.previousPromises(t)}function p(){A.getComponentMethod(\"shapes\",\"draw\")(t),A.getComponentMethod(\"images\",\"draw\")(t),A.getComponentMethod(\"annotations\",\"draw\")(t),A.getComponentMethod(\"legend\",\"draw\")(t),A.getComponentMethod(\"rangeslider\",\"draw\")(t),A.getComponentMethod(\"rangeselector\",\"draw\")(t),A.getComponentMethod(\"sliders\",\"draw\")(t),A.getComponentMethod(\"updatemenus\",\"draw\")(t)}var m;if(t=w.getGraphDiv(t),M.init(t),w.isPlainObject(e)){var v=e;e=v.data,r=v.layout,n=v.config,m=v.frames}if(!1===M.triggerHandler(t,\"plotly_beforeplot\",[e,r,n]))return Promise.reject();e||r||w.isPlotDiv(t)||w.warn(\"Calling Plotly.plot as if redrawing but this container doesn't yet have a plot.\",t),a(t,n),r||(r={}),y.select(t).classed(\"js-plotly-plot\",!0),C.makeTester(),Array.isArray(t._promises)||(t._promises=[]);var b=0===(t.data||[]).length&&Array.isArray(e);if(Array.isArray(e)&&(R.cleanData(e,t.data),b?t.data=e:t.data.push.apply(t.data,e),t.empty=!1),t.layout&&!b||(t.layout=R.cleanLayout(r)),t._dragging&&!t._transitioning)return t._replotPending=!0,Promise.reject();t._replotPending=!1,S.supplyDefaults(t);var x=t._fullLayout;if(e&&e[0]&&e[0].r)return o(t,e,r);x._replotting=!0,b&&g(t),t.framework!==g&&(t.framework=g,g(t)),C.initGradients(t),b&&_.Axes.saveShowSpikeInitial(t);var k=!t.calcdata||t.calcdata.length!==(t._fullData||[]).length;k&&S.doCalcdata(t);for(var T=0;T<t.calcdata.length;T++)t.calcdata[T][0].trace=t._fullData[T];var E=JSON.stringify(x._size),I=[S.previousPromises,i,s,l,u,c,F.layoutStyles,f,d,p,L,S.rehover,S.previousPromises],D=w.syncOrAsync(I,t);return D&&D.then||(D=Promise.resolve()),D.then(function(){return t.emit(\"plotly_afterplot\"),t})},_.redraw=function(t){if(t=w.getGraphDiv(t),!w.isPlotDiv(t))throw new Error(\"This element is not a Plotly plot: \"+t);return R.cleanData(t.data,t.data),R.cleanLayout(t.layout),t.calcdata=void 0,_.plot(t).then(function(){return t.emit(\"plotly_redraw\"),t})},_.newPlot=function(t,e,r,n){return t=w.getGraphDiv(t),S.cleanPlot([],{},t._fullData||{},t._fullLayout||{}),S.purge(t),_.plot(t,e,r,n)},_.extendTraces=function t(e,r,n,i){e=w.getGraphDiv(e);var a=d(e,r,n,i,function(t,e){return t.concat(e)},function(t,e){return t.splice(0,t.length-e)}),o=_.redraw(e),s=[e,a.update,n,a.maxPoints];return k.add(e,_.prependTraces,s,t,arguments),o},_.prependTraces=function t(e,r,n,i){e=w.getGraphDiv(e);var a=d(e,r,n,i,function(t,e){return e.concat(t)},function(t,e){return t.splice(e,t.length)}),o=_.redraw(e),s=[e,a.update,n,a.maxPoints];return k.add(e,_.extendTraces,s,t,arguments),o},_.addTraces=function t(e,r,n){e=w.getGraphDiv(e);var i,a,o=[],s=_.deleteTraces,l=t,h=[e,o],f=[e,r];for(c(e,r,n),Array.isArray(r)||(r=[r]),r=r.map(function(t){return w.extendFlat({},t)}),R.cleanData(r,e.data),i=0;i<r.length;i++)e.data.push(r[i]);for(i=0;i<r.length;i++)o.push(-r.length+i);if(void 0===n)return a=_.redraw(e),k.add(e,s,h,l,f),a;Array.isArray(n)||(n=[n]);try{u(e,o,n)}catch(t){throw e.data.splice(e.data.length-r.length,r.length),t}return k.startSequence(e),k.add(e,s,h,l,f),a=_.moveTraces(e,o,n),k.stopSequence(e),a},_.deleteTraces=function t(e,r){e=w.getGraphDiv(e);var n,i,a=[],o=_.addTraces,u=t,c=[e,a,r],h=[e,r];if(void 0===r)throw new Error(\"indices must be an integer or array of integers.\");for(Array.isArray(r)||(r=[r]),l(e,r,\"indices\"),r=s(r,e.data.length-1),r.sort(w.sorterDes),n=0;n<r.length;n+=1)i=e.data.splice(r[n],1)[0],a.push(i);var f=_.redraw(e);return k.add(e,o,c,u,h),f},_.moveTraces=function t(e,r,n){e=w.getGraphDiv(e);var i,a=[],o=[],l=t,c=t,h=[e,n,r],f=[e,r,n];if(u(e,r,n),r=Array.isArray(r)?r:[r],void 0===n)for(n=[],i=0;i<r.length;i++)n.push(-r.length+i);for(n=Array.isArray(n)?n:[n],r=s(r,e.data.length-1),n=s(n,e.data.length-1),i=0;i<e.data.length;i++)-1===r.indexOf(i)&&a.push(e.data[i]);for(i=0;i<r.length;i++)o.push({newIndex:n[i],trace:e.data[r[i]]});for(o.sort(function(t,e){return t.newIndex-e.newIndex}),i=0;i<o.length;i+=1)a.splice(o[i].newIndex,0,o[i].trace);e.data=a;var d=_.redraw(e);return k.add(e,l,h,c,f),d},_.restyle=function t(e,r,n,i){e=w.getGraphDiv(e),R.clearPromiseQueue(e);var a={};if(\"string\"==typeof r)a[r]=n;else{if(!w.isPlainObject(r))return w.warn(\"Restyle fail.\",r,n,i),Promise.reject();a=w.extendFlat({},r),void 0===i&&(i=n)}Object.keys(a).length&&(e.changed=!0);var o=R.coerceTraceIndices(e,i),s=m(e,a,o),l=s.flags;l.clearCalc&&(e.calcdata=void 0),l.clearAxisTypes&&R.clearAxisTypes(e,o,{});var u=[];l.fullReplot?u.push(_.plot):(u.push(S.previousPromises),S.supplyDefaults(e),l.style&&u.push(F.doTraceStyle),l.colorbars&&u.push(F.doColorBars)),u.push(S.rehover),k.add(e,t,[e,s.undoit,s.traces],t,[e,s.redoit,s.traces]);var c=w.syncOrAsync(u,e);return c&&c.then||(c=Promise.resolve()),c.then(function(){return e.emit(\"plotly_restyle\",s.eventData),e})},_.relayout=function t(e,r,n){if(e=w.getGraphDiv(e),R.clearPromiseQueue(e),e.framework&&e.framework.isPolar)return Promise.resolve(e);var i={};if(\"string\"==typeof r)i[r]=n;else{if(!w.isPlainObject(r))return w.warn(\"Relayout fail.\",r,n),Promise.reject();i=w.extendFlat({},r)}Object.keys(i).length&&(e.changed=!0);var a=v(e,i),o=a.flags;o.calc&&(e.calcdata=void 0);var s=[S.previousPromises];o.layoutReplot?s.push(F.layoutReplot):Object.keys(i).length&&(S.supplyDefaults(e),o.legend&&s.push(F.doLegend),o.layoutstyle&&s.push(F.layoutStyles),o.ticks&&s.push(F.doTicksRelayout),o.modebar&&s.push(F.doModeBar),o.camera&&s.push(F.doCamera)),s.push(S.rehover),k.add(e,t,[e,a.undoit],t,[e,a.redoit]);var l=w.syncOrAsync(s,e);return l&&l.then||(l=Promise.resolve(e)),l.then(function(){return e.emit(\"plotly_relayout\",a.eventData),e})},_.update=function t(e,r,n,i){if(e=w.getGraphDiv(e),R.clearPromiseQueue(e),e.framework&&e.framework.isPolar)return Promise.resolve(e);w.isPlainObject(r)||(r={}),w.isPlainObject(n)||(n={}),Object.keys(r).length&&(e.changed=!0),Object.keys(n).length&&(e.changed=!0);var a=R.coerceTraceIndices(e,i),o=m(e,w.extendFlat({},r),a),s=o.flags,l=v(e,w.extendFlat({},n)),u=l.flags;(s.clearCalc||u.calc)&&(e.calcdata=void 0),s.clearAxisTypes&&R.clearAxisTypes(e,a,n);var c=[];if(s.fullReplot&&u.layoutReplot){var h=e.data,f=e.layout;e.data=void 0,e.layout=void 0,c.push(function(){return _.plot(e,h,f)})}else s.fullReplot?c.push(_.plot):u.layoutReplot?c.push(F.layoutReplot):(c.push(S.previousPromises),S.supplyDefaults(e),s.style&&c.push(F.doTraceStyle),s.colorbars&&c.push(F.doColorBars),u.legend&&c.push(F.doLegend),u.layoutstyle&&c.push(F.layoutStyles),u.ticks&&c.push(F.doTicksRelayout),u.modebar&&c.push(F.doModeBar),u.camera&&c.push(F.doCamera));c.push(S.rehover),k.add(e,t,[e,o.undoit,l.undoit,o.traces],t,[e,o.redoit,l.redoit,o.traces]);var d=w.syncOrAsync(c,e);return d&&d.then||(d=Promise.resolve(e)),d.then(function(){return e.emit(\"plotly_update\",{data:o.eventData,layout:l.eventData}),e})},_.animate=function(t,e,r){function n(t){return Array.isArray(s)?t>=s.length?s[0]:s[t]:s}function i(t){return Array.isArray(l)?t>=l.length?l[0]:l[t]:l}function a(t,e){var r=0;return function(){if(t&&++r===e)return t()}}if(t=w.getGraphDiv(t),!w.isPlotDiv(t))throw new Error(\"This element is not a Plotly plot: \"+t+\". It's likely that you've failed to create a plot before animating it. For more details, see https://plot.ly/javascript/animations/\");var o=t._transitionData;o._frameQueue||(o._frameQueue=[]),r=S.supplyAnimationDefaults(r);var s=r.transition,l=r.frame;return void 0===o._frameWaitingCnt&&(o._frameWaitingCnt=0),new Promise(function(l,u){function c(){t.emit(\"plotly_animated\"),window.cancelAnimationFrame(o._animationRaf),o._animationRaf=null}function h(){o._currentFrame&&o._currentFrame.onComplete&&o._currentFrame.onComplete();var e=o._currentFrame=o._frameQueue.shift();if(e){var r=e.name?e.name.toString():null;t._fullLayout._currentFrame=r,o._lastFrameAt=Date.now(),o._timeToNext=e.frameOpts.duration,S.transition(t,e.frame.data,e.frame.layout,R.coerceTraceIndices(t,e.frame.traces),e.frameOpts,e.transitionOpts).then(function(){e.onComplete&&e.onComplete()}),t.emit(\"plotly_animatingframe\",{name:r,frame:e.frame,animation:{frame:e.frameOpts,transition:e.transitionOpts}})}else c()}function f(){t.emit(\"plotly_animating\"),o._lastFrameAt=-1/0,o._timeToNext=0,o._runningTransitions=0,o._currentFrame=null;var e=function(){o._animationRaf=window.requestAnimationFrame(e),Date.now()-o._lastFrameAt>o._timeToNext&&h()};e()}function d(t){return Array.isArray(s)?v>=s.length?t.transitionOpts=s[v]:t.transitionOpts=s[0]:t.transitionOpts=s,v++,t}var p,m,v=0,g=[],y=void 0===e||null===e,b=Array.isArray(e);if(y||b||!w.isPlainObject(e)){if(y||-1!==[\"string\",\"number\"].indexOf(typeof e))for(p=0;p<o._frames.length;p++)(m=o._frames[p])&&(y||String(m.group)===String(e))&&g.push({type:\"byname\",name:String(m.name),data:d({name:m.name})});else if(b)for(p=0;p<e.length;p++){var x=e[p];-1!==[\"number\",\"string\"].indexOf(typeof x)?(x=String(x),g.push({type:\"byname\",name:x,data:d({name:x})})):w.isPlainObject(x)&&g.push({type:\"object\",data:d(w.extendFlat({},x))})}}else g.push({type:\"object\",data:d(w.extendFlat({},e))});for(p=0;p<g.length;p++)if(m=g[p],\"byname\"===m.type&&!o._frameHash[m.data.name])return w.warn('animate failure: frame not found: \"'+m.data.name+'\"'),void u();-1!==[\"next\",\"immediate\"].indexOf(r.mode)&&function(){if(0!==o._frameQueue.length){for(;o._frameQueue.length;){var e=o._frameQueue.pop();e.onInterrupt&&e.onInterrupt()}t.emit(\"plotly_animationinterrupted\",[])}}(),\"reverse\"===r.direction&&g.reverse();var _=t._fullLayout._currentFrame;if(_&&r.fromcurrent){var M=-1;for(p=0;p<g.length;p++)if(m=g[p],\"byname\"===m.type&&m.name===_){M=p;break}if(M>0&&M<g.length-1){var k=[];for(p=0;p<g.length;p++)m=g[p],(\"byname\"!==g[p].type||p>M)&&k.push(m);g=k}}g.length>0?function(e){if(0!==e.length){for(var s=0;s<e.length;s++){var c;c=\"byname\"===e[s].type?S.computeFrame(t,e[s].name):e[s].data;var h=i(s),d=n(s);d.duration=Math.min(d.duration,h.duration);var p={frame:c,name:e[s].name,frameOpts:h,transitionOpts:d};s===e.length-1&&(p.onComplete=a(l,2),p.onInterrupt=u),o._frameQueue.push(p)}\"immediate\"===r.mode&&(o._lastFrameAt=-1/0),o._animationRaf||f()}}(g):(t.emit(\"plotly_animated\"),l())})},_.addFrames=function(t,e,r){t=w.getGraphDiv(t);var n=0;if(null===e||void 0===e)return Promise.resolve();if(!w.isPlotDiv(t))throw new Error(\"This element is not a Plotly plot: \"+t+\". It's likely that you've failed to create a plot before adding frames. For more details, see https://plot.ly/javascript/animations/\");var i,a,o,s,l=t._transitionData._frames,u=t._transitionData._frameHash;if(!Array.isArray(e))throw new Error(\"addFrames failure: frameList must be an Array of frame definitions\"+e);var c=l.length+2*e.length,h=[];for(i=e.length-1;i>=0;i--)if(w.isPlainObject(e[i])){var f=(u[e[i].name]||{}).name,d=e[i].name;f&&d&&\"number\"==typeof d&&u[f]&&(n++,w.warn('addFrames: overwriting frame \"'+u[f].name+'\" with a frame whose name of type \"number\" also equates to \"'+f+'\". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'),n>5&&w.warn(\"addFrames: This API call has yielded too many warnings. For the rest of this call, further warnings about numeric frame names will be suppressed.\")),h.push({frame:S.supplyFrameDefaults(e[i]),index:r&&void 0!==r[i]&&null!==r[i]?r[i]:c+i})}h.sort(function(t,e){return t.index>e.index?-1:t.index<e.index?1:0});var p=[],m=[],v=l.length;for(i=h.length-1;i>=0;i--){if(a=h[i].frame,\"number\"==typeof a.name&&w.warn(\"Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings\"),!a.name)for(;u[a.name=\"frame \"+t._transitionData._counter++];);if(u[a.name]){for(o=0;o<l.length&&(l[o]||{}).name!==a.name;o++);p.push({type:\"replace\",index:o,value:a}),m.unshift({type:\"replace\",index:o,value:l[o]})}else s=Math.max(0,Math.min(h[i].index,v)),p.push({type:\"insert\",index:s,value:a}),m.unshift({type:\"delete\",index:s}),v++}var g=S.modifyFrames,y=S.modifyFrames,b=[t,m],x=[t,p];return k&&k.add(t,g,b,y,x),S.modifyFrames(t,p)},_.deleteFrames=function(t,e){if(t=w.getGraphDiv(t),!w.isPlotDiv(t))throw new Error(\"This element is not a Plotly plot: \"+t);var r,n,i=t._transitionData._frames,a=[],o=[];if(!e)for(e=[],r=0;r<i.length;r++)e.push(r);for(e=e.slice(0),e.sort(),r=e.length-1;r>=0;r--)n=e[r],a.push({type:\"delete\",index:n}),o.unshift({type:\"insert\",index:n,value:i[n]});var s=S.modifyFrames,l=S.modifyFrames,u=[t,o],c=[t,a];return k&&k.add(t,s,u,l,c),S.modifyFrames(t,a)},_.purge=function(t){t=w.getGraphDiv(t);var e=t._fullLayout||{},r=t._fullData||[];return S.cleanPlot([],{},r,e),S.purge(t),M.purge(t),e._container&&e._container.remove(),delete t._context,t}},{\"../components/color\":604,\"../components/drawing\":628,\"../components/errorbars\":634,\"../constants/xmlns_namespaces\":709,\"../lib\":728,\"../lib/events\":716,\"../lib/queue\":741,\"../lib/svg_text_utils\":750,\"../plotly\":767,\"../plots/cartesian/axis_ids\":775,\"../plots/cartesian/constants\":777,\"../plots/cartesian/constraints\":779,\"../plots/cartesian/graph_interact\":781,\"../plots/plots\":831,\"../plots/polar\":834,\"../registry\":846,\"./edit_types\":756,\"./helpers\":757,\"./manage_arrays\":758,\"./plot_schema\":761,\"./subroutines\":764,d3:122,\"fast-isnumeric\":131,\"has-hover\":288}],760:[function(t,e,r){\"use strict\";e.exports={staticPlot:!1,editable:!1,edits:{annotationPosition:!1,annotationTail:!1,annotationText:!1,axisTitleText:!1,colorbarPosition:!1,colorbarTitleText:!1,legendPosition:!1,legendText:!1,shapePosition:!1,titleText:!1},autosizable:!1,queueLength:0,fillFrame:!1,frameMargins:0,scrollZoom:!1,doubleClick:\"reset+autosize\",showTips:!0,showAxisDragHandles:!0,showAxisRangeEntryBoxes:!0,showLink:!1,sendData:!0,linkText:\"Edit chart\",showSources:!1,displayModeBar:\"hover\",modeBarButtonsToRemove:[],modeBarButtonsToAdd:[],modeBarButtons:!1,displaylogo:!0,plotGlPixelRatio:2,setBackground:\"transparent\",topojsonURL:\"https://cdn.plot.ly/\",mapboxAccessToken:null,logging:!1,globalTransforms:[]}},{}],761:[function(t,e,r){\"use strict\";function n(t,e){var r,n,i,a,o=t._basePlotModules;if(o){var s;for(r=0;r<o.length;r++){if(i=o[r],i.attrRegex&&i.attrRegex.test(e)){if(i.layoutAttrOverrides)return i.layoutAttrOverrides;!s&&i.layoutAttributes&&(s=i.layoutAttributes)}var l=i.baseLayoutAttrOverrides;if(l&&e in l)return l[e]}if(s)return s}var u=t._modules;if(u)for(r=0;r<u.length;r++)if((a=u[r].layoutAttributes)&&e in a)return a[e];for(n in v.componentsRegistry)if(i=v.componentsRegistry[n],!i.schema&&e===i.name)return i.layoutAttributes;return e in b?b[e]:\"radialaxis\"===e||\"angularaxis\"===e?M[e]:M.layout[e]||!1}function i(t,e,r){if(!t)return!1;if(t._isLinkedToArray)if(a(e[r]))r++;else if(r<e.length)return!1;for(;r<e.length;r++){var n=t[e[r]];if(!g.isPlainObject(n))break;if(t=n,r===e.length-1)break;if(t._isLinkedToArray){if(r++,!a(e[r]))return!1}else if(\"info_array\"===t.valType){r++;var i=e[r];if(!a(i)||i>=t.items.length)return!1;t=t.items[i]}}return t}function a(t){return t===Math.round(t)&&t>=0}function o(t){var e,r;\"area\"===t?(e={attributes:w},r={}):(e=v.modules[t]._module,r=e.basePlotModule);var n={};n.type=null,T(n,y),T(n,e.attributes),r.attributes&&T(n,r.attributes),n.type=t;var i={meta:e.meta||{},attributes:c(n)};if(e.layoutAttributes){var a={};T(a,e.layoutAttributes),i.layoutAttributes=c(a)}return i}function s(){var t,e,r={};T(r,b);for(t in v.subplotsRegistry)if(e=v.subplotsRegistry[t],e.layoutAttributes)if(\"cartesian\"===e.name)p(r,e,\"xaxis\"),p(r,e,\"yaxis\");else{var n=\"subplot\"===e.attr?e.name:e.attr;p(r,e,n)}r=d(r);for(t in v.componentsRegistry){e=v.componentsRegistry[t];var i=e.schema;if(i&&(i.subplots||i.layout)){var a=i.subplots;if(a&&a.xaxis&&!a.yaxis)for(var o in a.xaxis)delete r.yaxis[o]}else e.layoutAttributes&&m(r,e.layoutAttributes,e.name)}return{layoutAttributes:c(r)}}function l(t){var e=v.transformsRegistry[t],r=T({},e.attributes);return Object.keys(v.componentsRegistry).forEach(function(e){var n=v.componentsRegistry[e];n.schema&&n.schema.transforms&&n.schema.transforms[t]&&Object.keys(n.schema.transforms[t]).forEach(function(e){m(r,n.schema.transforms[t][e],e)})}),{attributes:c(r)}}function u(){var t={frames:g.extendDeepAll({},x)};return c(t),t.frames}function c(t){return h(t),f(t),t}function h(t){function e(t){return{valType:\"string\",editType:\"none\"}}function n(t,n,i){r.isValObject(t)?\"data_array\"===t.valType?(t.role=\"data\",i[n+\"src\"]=e(n)):!0===t.arrayOk&&(i[n+\"src\"]=e(n)):g.isPlainObject(t)&&(t.role=\"object\")}r.crawl(t,n)}function f(t){function e(t,e,r){if(t){var n=t[E];n&&(delete t[E],r[e]={items:{}},r[e].items[n]=t,r[e].role=\"object\")}}r.crawl(t,e)}function d(t){return A(t,{radialaxis:M.radialaxis,angularaxis:M.angularaxis}),A(t,M.layout),t}function p(t,e,r){var n=g.nestedProperty(t,r),i=T({},e.layoutAttributes);i[S]=!0,n.set(i)}function m(t,e,r){var n=g.nestedProperty(t,r);n.set(T(n.get()||{},e))}var v=t(\"../registry\"),g=t(\"../lib\"),y=t(\"../plots/attributes\"),b=t(\"../plots/layout_attributes\"),x=t(\"../plots/frame_attributes\"),_=t(\"../plots/animation_attributes\"),w=t(\"../plots/polar/area_attributes\"),M=t(\"../plots/polar/axis_attributes\"),k=t(\"./edit_types\"),A=g.extendFlat,T=g.extendDeepAll,S=\"_isSubplotObj\",E=\"_isLinkedToArray\",L=[S,E,\"_arrayAttrRegexps\",\"_deprecated\"];r.IS_SUBPLOT_OBJ=S,r.IS_LINKED_TO_ARRAY=E,r.DEPRECATED=\"_deprecated\",r.UNDERSCORE_ATTRS=L,r.get=function(){var t={};v.allTypes.concat(\"area\").forEach(function(e){t[e]=o(e)});var e={};return Object.keys(v.transformsRegistry).forEach(function(t){e[t]=l(t)}),{defs:{valObjects:g.valObjectMeta,metaKeys:L.concat([\"description\",\"role\",\"editType\",\"impliedEdits\"]),editType:{traces:k.traces,layout:k.layout},impliedEdits:{}},traces:t,layout:s(),transforms:e,frames:u(),animation:c(_)}},r.crawl=function(t,e,n,i){var a=n||0;i=i||\"\",Object.keys(t).forEach(function(n){var o=t[n];if(-1===L.indexOf(n)){var s=(i?i+\".\":\"\")+n;e(o,n,t,a,s),r.isValObject(o)||g.isPlainObject(o)&&\"impliedEdits\"!==n&&r.crawl(o,e,a+1,s)}})},r.isValObject=function(t){return t&&void 0!==t.valType},r.findArrayAttributes=function(t){function e(e,r,o,s){if(a=a.slice(0,s).concat([r]),e&&(\"data_array\"===e.valType||!0===e.arrayOk)&&!(\"colorbar\"===a[s-1]&&(\"ticktext\"===r||\"tickvals\"===r))){var l=n(a),u=g.nestedProperty(t,l).get();Array.isArray(u)&&i.push(l)}}function n(t){return t.join(\".\")}var i=[],a=[];if(r.crawl(y,e),t._module&&t._module.attributes&&r.crawl(t._module.attributes,e),t.transforms)for(var o=t.transforms,s=0;s<o.length;s++){var l=o[s],u=l._module;u&&(a=[\"transforms[\"+s+\"]\"],r.crawl(u.attributes,e,1))}return t._fullInput&&t._fullInput._module&&t._fullInput._module.attributes&&(r.crawl(t._fullInput._module.attributes,e),i=g.filterUnique(i)),i},r.getTraceValObject=function(t,e){var r,n,o=e[0],s=1;if(\"transforms\"===o){if(!Array.isArray(t.transforms))return!1;var l=e[1];if(!a(l)||l>=t.transforms.length)return!1;r=(v.transformsRegistry[t.transforms[l].type]||{}).attributes,n=r&&r[e[2]],s=3}else if(\"area\"===t.type)n=w[o];else{var u=t._module;if(u||(u=(v.modules[t.type||y.type.dflt]||{})._module),!u)return!1;if(r=u.attributes,!(n=r&&r[o])){var c=u.basePlotModule;c&&c.attributes&&(n=c.attributes[o])}n||(n=y[o])}return i(n,e,s)},r.getLayoutValObject=function(t,e){return i(n(t,e[0]),e,1)}},{\"../lib\":728,\"../plots/animation_attributes\":768,\"../plots/attributes\":770,\"../plots/frame_attributes\":797,\"../plots/layout_attributes\":822,\"../plots/polar/area_attributes\":832,\"../plots/polar/axis_attributes\":833,\"../registry\":846,\"./edit_types\":756}],762:[function(t,e,r){\"use strict\";function n(t){o.register(t,t.name,t.categories,t.meta),o.subplotsRegistry[t.basePlotModule.name]||o.registerSubplot(t.basePlotModule)}function i(t){if(\"string\"!=typeof t.name)throw new Error(\"Transform module *name* must be a string.\");var e=\"Transform module \"+t.name,r=\"function\"==typeof t.transform,n=\"function\"==typeof t.calcTransform;if(!r&&!n)throw new Error(e+\" is missing a *transform* or *calcTransform* method.\");r&&n&&s.log([e+\" has both a *transform* and *calcTransform* methods.\",\"Please note that all *transform* methods are executed\",\"before all *calcTransform* methods.\"].join(\" \")),s.isPlainObject(t.attributes)||s.log(e+\" registered without an *attributes* object.\"),\"function\"!=typeof t.supplyDefaults&&s.log(e+\" registered without a *supplyDefaults* method.\"),o.registerTransform(t)}function a(t){if(\"string\"!=typeof t.name)throw new Error(\"Component module *name* must be a string.\");o.registerComponent(t)}var o=t(\"../registry\"),s=t(\"../lib\");e.exports=function(t){if(!t)throw new Error(\"No argument passed to Plotly.register.\");t&&!Array.isArray(t)&&(t=[t]);for(var e=0;e<t.length;e++){var r=t[e];if(!r)throw new Error(\"Invalid module was attempted to be registered!\");switch(r.moduleType){case\"trace\":n(r);break;case\"transform\":i(r);break;case\"component\":a(r);break;default:throw new Error(\"Invalid module was attempted to be registered!\")}}}},{\"../lib\":728,\"../registry\":846}],763:[function(t,e,r){\"use strict\";var n=t(\"../plotly\"),i=t(\"../lib\");e.exports=function(t){return i.extendFlat(n.defaultConfig,t)}},{\"../lib\":728,\"../plotly\":767}],764:[function(t,e,r){\"use strict\";function n(t,e,r){for(var n=0;n<r.length;n++){var i=r[n][0],a=r[n][1];if(!(i[0]>=t[1]||i[1]<=t[0])&&(a[0]<e[1]&&a[1]>e[0]))return!0}return!1}function i(t,e,r){return t._anchorAxis===e&&(t.mirror||t.side===r)||\"all\"===t.mirror||\"allticks\"===t.mirror||t.mirrors&&t.mirrors[e._id+r]}function a(t,e,r){var n=[],i=e._anchorAxis;if(i){var a=i._mainAxis;if(-1===n.indexOf(a)){n.push(a);for(var o=0;o<r.length;o++)r[o].overlaying===a._id&&-1===n.indexOf(r[o])&&n.push(r[o])}}return n}function o(t,e,r){for(var n=0;n<e.length;n++){var a=e[n],o=a._anchorAxis;if(o&&i(a,o,r))return p.crispRound(t,a.linewidth)}}function s(t,e,r,n,i,s){if(n)return r;var l,u=e._mainAxis,c=a(t,u,s),h=o(t,c,i);if(h)return h;for(l=0;l<s.length;l++)if(s[l].overlaying===u._id&&(c=a(t,s[l],s),h=o(t,c,i)))return h;return 0}var l=t(\"d3\"),u=t(\"../plotly\"),c=t(\"../registry\"),h=t(\"../plots/plots\"),f=t(\"../lib\"),d=t(\"../components/color\"),p=t(\"../components/drawing\"),m=t(\"../components/titles\"),v=t(\"../components/modebar\"),g=t(\"../plots/cartesian/graph_interact\"),y=t(\"../plots/cartesian/constants\");r.layoutStyles=function(t){return f.syncOrAsync([h.doAutoMargin,r.lsInner],t)},r.lsInner=function(t){var e,a=t._fullLayout,o=a._size,c=o.p,h=u.Axes.list(t),f=a._has(\"cartesian\");for(e=0;e<h.length;e++)h[e]._linepositions={};a._paperdiv.style({width:a.width+\"px\",height:a.height+\"px\"}).selectAll(\".main-svg\").call(p.setSize,a.width,a.height),t._context.setBackground(t,a.paper_bgcolor);var m=a._paper.selectAll(\"g.subplot\"),g=[],b=[];m.each(function(t){var e=a._plots[t];if(e.mainplot)return e.bg&&e.bg.remove(),void(e.bg=void 0);var r=e.xaxis.domain,i=e.yaxis.domain,o=[];n(r,i,b)?o=[0]:(g.push(t),b.push([r,i]));var s=e.plotgroup.selectAll(\".bg\").data(o);s.enter().append(\"rect\").classed(\"bg\",!0),s.exit().remove(),s.each(function(){e.bg=s;var t=e.plotgroup.node();t.insertBefore(this,t.childNodes[0])})});var x=a._bgLayer.selectAll(\".bg\").data(g);x.enter().append(\"rect\").classed(\"bg\",!0),x.exit().remove(),x.each(function(t){a._plots[t].bg=l.select(this)});var _={};return m.each(function(r){function n(t,e){return e?\"M\"+P+\",\"+t+\"H\"+R:\"\"}function l(t,e){return e?\"M\"+t+\",\"+H+\"V\"+U:\"\"}var u=a._plots[r],m=u.xaxis,v=u.yaxis;m.setScale(),v.setScale(),u.bg&&f&&u.bg.call(p.setRect,m._offset-c,v._offset-c,m._length+2*c,v._length+2*c).call(d.fill,a.plot_bgcolor).style(\"stroke-width\",0),u.clipId=\"clip\"+a._uid+r+\"plot\";var g=a._clips.selectAll(\"#\"+u.clipId).data([0]);g.enter().append(\"clipPath\").attr({class:\"plotclip\",id:u.clipId}).append(\"rect\"),g.selectAll(\"rect\").attr({width:m._length,height:v._length}),p.setTranslate(u.plot,m._offset,v._offset);var b,x;for(u._hasClipOnAxisFalse?(b=null,x=u.clipId):(b=u.clipId,x=null),p.setClipUrl(u.plot,b),e=0;e<y.traceLayerClasses.length;e++){var w=y.traceLayerClasses[e];\"scatterlayer\"!==w&&u.plot.selectAll(\"g.\"+w).call(p.setClipUrl,x)}u.layerClipId=x;var M=!m._anchorAxis,k=M&&!_[m._id],A=i(m,v,\"bottom\"),T=i(m,v,\"top\"),S=!v._anchorAxis,E=S&&!_[v._id],L=i(v,m,\"left\"),C=i(v,m,\"right\"),I=p.crispRound(t,m.linewidth,1),z=p.crispRound(t,v.linewidth,1),D=s(t,m,z,L,\"left\",h),P=!M&&D?-c-D:0,O=s(t,m,z,C,\"right\",h),R=m._length+(!M&&O?c+O:0),F=o.h*(1-(m.position||0))+I/2%1,j=v._length+c+I/2,N=-c-I/2,B=!S&&s(t,v,I,A,\"bottom\",h),U=v._length+(B?c:0),V=!S&&s(t,v,I,T,\"top\",h),H=V?-c:0,q=o.w*(v.position||0)+z/2%1,G=-c-z/2,Y=m._length+c+z/2;m._linepositions[r]=[A?j:void 0,T?N:void 0,k?F:void 0],m._anchorAxis===v?m._linepositions[r][3]=\"top\"===m.side?N:j:k&&(m._linepositions[r][3]=F),v._linepositions[r]=[L?G:void 0,C?Y:void 0,E?q:void 0],v._anchorAxis===m?v._linepositions[r][3]=\"right\"===v.side?Y:G:E&&(v._linepositions[r][3]=q);var W=\"translate(\"+m._offset+\",\"+v._offset+\")\",X=W,Z=W;k&&(X=\"translate(\"+m._offset+\",\"+o.t+\")\",N+=v._offset-o.t,j+=v._offset-o.t),E&&(Z=\"translate(\"+o.l+\",\"+v._offset+\")\",G+=m._offset-o.l,Y+=m._offset-o.l),f&&(u.xlines.attr(\"transform\",X).attr(\"d\",n(j,A)+n(N,T)+n(F,k)||\"M0,0\").style(\"stroke-width\",I+\"px\").call(d.stroke,m.showline?m.linecolor:\"rgba(0,0,0,0)\"),u.ylines.attr(\"transform\",Z).attr(\"d\",l(G,L)+l(Y,C)+l(q,E)||\"M0,0\").style(\"stroke-width\",z+\"px\").call(d.stroke,v.showline?v.linecolor:\"rgba(0,0,0,0)\")),u.xaxislayer.attr(\"transform\",X),u.yaxislayer.attr(\"transform\",Z),u.gridlayer.attr(\"transform\",W),u.zerolinelayer.attr(\"transform\",W),u.draglayer.attr(\"transform\",W),k&&(_[m._id]=1),E&&(_[v._id]=1)}),u.Axes.makeClipPaths(t),r.drawMainTitle(t),v.manage(t),t._promises.length&&Promise.all(t._promises)},r.drawMainTitle=function(t){var e=t._fullLayout;m.draw(t,\"gtitle\",{propContainer:e,propName:\"title\",dfltName:\"Plot\",attributes:{x:e.width/2,y:e._size.t/2,\"text-anchor\":\"middle\"}})},r.doTraceStyle=function(t){for(var e=0;e<t.calcdata.length;e++){var r=t.calcdata[e],n=((r[0]||{}).trace||{})._module||{},i=n.arraysToCalcdata;i&&i(r,r[0].trace)}return h.style(t),c.getComponentMethod(\"legend\",\"draw\")(t),h.previousPromises(t)},r.doColorBars=function(t){for(var e=0;e<t.calcdata.length;e++){var r=t.calcdata[e][0];if((r.t||{}).cb){var n=r.trace,i=r.t.cb;c.traceIs(n,\"contour\")&&i.line({width:!1!==n.contours.showlines?n.line.width:0,dash:n.line.dash,color:\"line\"===n.contours.coloring?i._opts.line.color:n.line.color}),c.traceIs(n,\"markerColorscale\")?i.options(n.marker.colorbar)():i.options(n.colorbar)()}}return h.previousPromises(t)},r.layoutReplot=function(t){var e=t.layout;return t.layout=void 0,u.plot(t,\"\",e)},r.doLegend=function(t){return c.getComponentMethod(\"legend\",\"draw\")(t),h.previousPromises(t)},r.doTicksRelayout=function(t){return u.Axes.doTicks(t,\"redraw\"),r.drawMainTitle(t),h.previousPromises(t)},r.doModeBar=function(t){var e=t._fullLayout;v.manage(t),g(t);for(var r=0;r<e._basePlotModules.length;r++){var n=e._basePlotModules[r].updateFx;n&&n(e)}return h.previousPromises(t)},r.doCamera=function(t){for(var e=t._fullLayout,r=h.getSubplotIds(e,\"gl3d\"),n=0;n<r.length;n++){var i=e[r[n]];i._scene.setCamera(i.camera)}}},{\"../components/color\":604,\"../components/drawing\":628,\"../components/modebar\":665,\"../components/titles\":694,\"../lib\":728,\"../plotly\":767,\"../plots/cartesian/constants\":777,\"../plots/cartesian/graph_interact\":781,\"../plots/plots\":831,\"../registry\":846,d3:122}],765:[function(t,e,r){\"use strict\";function n(t,e){\n", "function r(t){return!(t in e)||a.validate(e[t],u[t])}function n(t,r){return a.coerce(e,g,u,t,r)}function h(){return new Promise(function(t){setTimeout(t,o.getDelay(k._fullLayout))})}function f(){return new Promise(function(t,e){var r=s(k,y,_),n=k._fullLayout.width,o=k._fullLayout.height;if(i.purge(k),document.body.removeChild(k),\"svg\"===y)return t(M?r:\"data:image/svg+xml,\"+encodeURIComponent(r));var u=document.createElement(\"canvas\");u.id=a.randstr(),l({format:y,width:n,height:o,scale:_,canvas:u,svg:r,promise:!0}).then(t).catch(e)})}function d(t){return M?t.replace(c,\"\"):t}e=e||{};var p,m,v;if(a.isPlainObject(t)?(p=t.data||[],m=t.layout||{},v=t.config||{}):(t=a.getGraphDiv(t),p=a.extendDeep([],t.data),m=a.extendDeep({},t.layout),v=t._context),!r(\"width\")||!r(\"height\"))throw new Error(\"Height and width should be pixel values.\");if(!r(\"format\"))throw new Error(\"Image format is not jpeg, png, svg or webp.\");var g={},y=n(\"format\"),b=n(\"width\"),x=n(\"height\"),_=n(\"scale\"),w=n(\"setBackground\"),M=n(\"imageDataOnly\"),k=document.createElement(\"div\");k.style.position=\"absolute\",k.style.left=\"-5000px\",document.body.appendChild(k);var A=a.extendFlat({},m);b&&(A.width=b),x&&(A.height=x);var T=a.extendFlat({},v,{staticPlot:!0,setBackground:w}),S=o.getRedrawFunc(k);return new Promise(function(t,e){i.plot(k,p,A,T).then(S).then(h).then(f).then(function(e){t(d(e))}).catch(function(t){e(t)})})}var i=t(\"../plotly\"),a=t(\"../lib\"),o=t(\"../snapshot/helpers\"),s=t(\"../snapshot/tosvg\"),l=t(\"../snapshot/svgtoimg\"),u={format:{valType:\"enumerated\",values:[\"png\",\"jpeg\",\"webp\",\"svg\"],dflt:\"png\"},width:{valType:\"number\",min:1},height:{valType:\"number\",min:1},scale:{valType:\"number\",min:0,dflt:1},setBackground:{valType:\"any\",dflt:!1},imageDataOnly:{valType:\"boolean\",dflt:!1}},c=/^data:image\\/\\w+;base64,/;e.exports=n},{\"../lib\":728,\"../plotly\":767,\"../snapshot/helpers\":850,\"../snapshot/svgtoimg\":852,\"../snapshot/tosvg\":854}],766:[function(t,e,r){\"use strict\";function n(t,e,r,i,a,u){u=u||[];for(var c=Object.keys(t),f=0;f<c.length;f++){var d=c[f];if(\"transforms\"!==d){var v=u.slice();v.push(d);var g=t[d],y=e[d],b=l(r,d),x=\"info_array\"===(b||{}).valType,_=\"colorscale\"===(b||{}).valType;if(s(r,d))if(p(g)&&p(y))n(g,y,b,i,a,v);else if(b.items&&!x&&m(g)){var w,M,k=b.items,A=k[Object.keys(k)[0]],T=[];for(w=0;w<y.length;w++){var S=y[w]._index||w;M=v.slice(),M.push(S),p(g[S])&&p(y[w])&&(T.push(S),n(g[S],y[w],A,i,a,M))}for(w=0;w<g.length;w++)M=v.slice(),M.push(w),p(g[w])?-1===T.indexOf(w)&&i.push(o(\"unused\",a,M)):i.push(o(\"object\",a,M,g[w]))}else!p(g)&&p(y)?i.push(o(\"object\",a,v,g)):m(g)||!m(y)||x||_?d in e?h.validate(g,b)?\"enumerated\"===b.valType&&(b.coerceNumber&&g!==+y||g!==y)&&i.push(o(\"dynamic\",a,v,g,y)):i.push(o(\"value\",a,v,g)):i.push(o(\"unused\",a,v,g)):i.push(o(\"array\",a,v,g));else i.push(o(\"schema\",a,v))}}return i}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r].type,i=t.traces[n].layoutAttributes;i&&h.extendFlat(t.layout.layoutAttributes,i)}return t.layout.layoutAttributes}function a(t){return m(t)?\"In data trace \"+t[1]+\", \":\"In \"+t+\", \"}function o(t,e,r,n,i){r=r||\"\";var a,o;m(e)?(a=e[0],o=e[1]):(a=e,o=null);var s=c(r),l=v[t](e,s,n,i);return h.log(l),{code:t,container:a,trace:o,path:r,astr:s,msg:l}}function s(t,e){var r=u(e),n=r.keyMinusId,i=r.id;return!!(n in t&&t[n]._isSubplotObj&&i)||e in t}function l(t,e){return t[u(e).keyMinusId]}function u(t){var e=t.match(g);return{keyMinusId:e&&e[1],id:e&&e[2]}}function c(t){if(!m(t))return String(t);for(var e=\"\",r=0;r<t.length;r++){var n=t[r];\"number\"==typeof n?e=e.substr(0,e.length-1)+\"[\"+n+\"]\":e+=n,r<t.length-1&&(e+=\".\")}return e}var h=t(\"../lib\"),f=t(\"../plots/plots\"),d=t(\"./plot_schema\"),p=h.isPlainObject,m=Array.isArray;e.exports=function(t,e){var r,a,s=d.get(),l=[],u={};m(t)?(u.data=h.extendDeep([],t),r=t):(u.data=[],r=[],l.push(o(\"array\",\"data\"))),p(e)?(u.layout=h.extendDeep({},e),a=e):(u.layout={},a={},arguments.length>1&&l.push(o(\"object\",\"layout\"))),f.supplyDefaults(u);for(var c=u._fullData,v=r.length,g=0;g<v;g++){var y=r[g],b=[\"data\",g];if(p(y)){var x=c[g],_=x.type,w=s.traces[_].attributes;w.type={valType:\"enumerated\",values:[_]},!1===x.visible&&!1!==y.visible&&l.push(o(\"invisible\",b)),n(y,x,w,l,b);var M=y.transforms,k=x.transforms;if(M){m(M)||l.push(o(\"array\",b,[\"transforms\"])),b.push(\"transforms\");for(var A=0;A<M.length;A++){var T=[\"transforms\",A],S=M[A].type;if(p(M[A])){var E=s.transforms[S]?s.transforms[S].attributes:{};E.type={valType:\"enumerated\",values:Object.keys(s.transforms)},n(M[A],k[A],E,l,b,T)}else l.push(o(\"object\",b,T))}}}else l.push(o(\"object\",b))}return n(a,u._fullLayout,i(s,c),l,\"layout\"),0===l.length?void 0:l};var v={object:function(t,e){return(\"layout\"===t&&\"\"===e?\"The layout argument\":\"data\"===t[0]&&\"\"===e?\"Trace \"+t[1]+\" in the data argument\":a(t)+\"key \"+e)+\" must be linked to an object container\"},array:function(t,e){return(\"data\"===t?\"The data argument\":a(t)+\"key \"+e)+\" must be linked to an array container\"},schema:function(t,e){return a(t)+\"key \"+e+\" is not part of the schema\"},unused:function(t,e,r){var n=p(r)?\"container\":\"key\";return a(t)+n+\" \"+e+\" did not get coerced\"},dynamic:function(t,e,r,n){return[a(t)+\"key\",e,\"(set to '\"+r+\"')\",\"got reset to\",\"'\"+n+\"'\",\"during defaults.\"].join(\" \")},invisible:function(t){return\"Trace \"+t[1]+\" got defaulted to be not visible\"},value:function(t,e,r){return[a(t)+\"key \"+e,\"is set to an invalid value (\"+r+\")\"].join(\" \")}},g=h.counterRegex(\"([a-z]+)\")},{\"../lib\":728,\"../plots/plots\":831,\"./plot_schema\":761}],767:[function(t,e,r){\"use strict\";r.defaultConfig=t(\"./plot_api/plot_config\"),r.Plots=t(\"./plots/plots\"),r.Axes=t(\"./plots/cartesian/axes\"),r.ModeBar=t(\"./components/modebar\"),t(\"./plot_api/plot_api\")},{\"./components/modebar\":665,\"./plot_api/plot_api\":759,\"./plot_api/plot_config\":760,\"./plots/cartesian/axes\":772,\"./plots/plots\":831}],768:[function(t,e,r){\"use strict\";e.exports={mode:{valType:\"enumerated\",dflt:\"afterall\",values:[\"immediate\",\"next\",\"afterall\"]},direction:{valType:\"enumerated\",values:[\"forward\",\"reverse\"],dflt:\"forward\"},fromcurrent:{valType:\"boolean\",dflt:!1},frame:{duration:{valType:\"number\",min:0,dflt:500},redraw:{valType:\"boolean\",dflt:!0}},transition:{duration:{valType:\"number\",min:0,dflt:500},easing:{valType:\"enumerated\",dflt:\"cubic-in-out\",values:[\"linear\",\"quad\",\"cubic\",\"sin\",\"exp\",\"circle\",\"elastic\",\"back\",\"bounce\",\"linear-in\",\"quad-in\",\"cubic-in\",\"sin-in\",\"exp-in\",\"circle-in\",\"elastic-in\",\"back-in\",\"bounce-in\",\"linear-out\",\"quad-out\",\"cubic-out\",\"sin-out\",\"exp-out\",\"circle-out\",\"elastic-out\",\"back-out\",\"bounce-out\",\"linear-in-out\",\"quad-in-out\",\"cubic-in-out\",\"sin-in-out\",\"exp-in-out\",\"circle-in-out\",\"elastic-in-out\",\"back-in-out\",\"bounce-in-out\"]}}}},{}],769:[function(t,e,r){\"use strict\";var n=t(\"../lib\");e.exports=function(t,e,r){var i,a=r.name,o=e[a],s=n.isArray(t[a])?t[a]:[],l=e[a]=[];for(i=0;i<s.length;i++){var u=s[i],c={},h={};n.isPlainObject(u)||(h.itemIsNotPlainObject=!0,u={}),r.handleItemDefaults(u,c,e,r,h),c._input=u,c._index=i,l.push(c)}if(n.isArray(o)){var f=Math.min(o.length,l.length);for(i=0;i<f;i++)n.relinkPrivateKeys(l[i],o[i])}}},{\"../lib\":728}],770:[function(t,e,r){\"use strict\";var n=t(\"../components/fx/attributes\");e.exports={type:{valType:\"enumerated\",values:[],dflt:\"scatter\",editType:\"calc+clearAxisTypes\"},visible:{valType:\"enumerated\",values:[!0,!1,\"legendonly\"],dflt:!0,editType:\"calc\"},showlegend:{valType:\"boolean\",dflt:!0,editType:\"style\"},legendgroup:{valType:\"string\",dflt:\"\",editType:\"style\"},opacity:{valType:\"number\",min:0,max:1,dflt:1,editType:\"style\"},name:{valType:\"string\",editType:\"style\"},uid:{valType:\"string\",dflt:\"\",editType:\"calc\"},ids:{valType:\"data_array\",editType:\"calc\"},customdata:{valType:\"data_array\",editType:\"calc\"},hoverinfo:{valType:\"flaglist\",flags:[\"x\",\"y\",\"z\",\"text\",\"name\"],extras:[\"all\",\"none\",\"skip\"],arrayOk:!0,dflt:\"all\",editType:\"none\"},hoverlabel:n.hoverlabel,stream:{token:{valType:\"string\",noBlank:!0,strict:!0,editType:\"calc\"},maxpoints:{valType:\"number\",min:0,max:1e4,dflt:500,editType:\"calc\"},editType:\"calc\"}}},{\"../components/fx/attributes\":637}],771:[function(t,e,r){\"use strict\";e.exports={xaxis:{valType:\"subplotid\",dflt:\"x\",editType:\"calc+clearAxisTypes\"},yaxis:{valType:\"subplotid\",dflt:\"y\",editType:\"calc+clearAxisTypes\"}}},{}],772:[function(t,e,r){\"use strict\";function n(t){return+t}function i(t){return String(t)}function a(t,e,r,n,i){function a(e){return(1+100*(e-t)/r.dtick)%100<2}for(var o=0,s=0,l=0,u=0,c=0;c<e.length;c++)e[c]%1==0?l++:M(e[c])||u++,a(e[c])&&o++,a(e[c]+r.dtick/2)&&s++;var h=e.length-u;if(l===h&&\"date\"!==r.type)r.dtick<1?t=n-.5*r.dtick:(t-=.5)+r.dtick<n&&(t+=r.dtick);else if(s<.1*h&&(o>.3*h||a(n)||a(i))){var f=r.dtick/2;t+=t+f<n?f:-f}return t}function o(t,e,r,n,i){var a=A.findExactDates(e,i);if(a.exactDays>.8){var o=Number(r.substr(1));a.exactYears>.8&&o%12==0?t=B.tickIncrement(t,\"M6\",\"reverse\")+1.5*P:a.exactMonths>.8?t=B.tickIncrement(t,\"M1\",\"reverse\")+15.5*P:t-=P/2;var s=B.tickIncrement(t,r);if(s<=n)return s}return t}function s(t){var e,r,n=t.tickvals,i=t.ticktext,a=new Array(n.length),o=A.simpleMap(t.range,t.r2l),s=1.0001*o[0]-1e-4*o[1],l=1.0001*o[1]-1e-4*o[0],u=Math.min(s,l),h=Math.max(s,l),f=0;Array.isArray(i)||(i=[]);var d=\"category\"===t.type?t.d2l_noadd:t.d2l;for(\"log\"===t.type&&\"L\"!==String(t.dtick).charAt(0)&&(t.dtick=\"L\"+Math.pow(10,Math.floor(Math.min(t.range[0],t.range[1]))-1)),r=0;r<n.length;r++)(e=d(n[r]))>u&&e<h&&(void 0===i[r]?a[f]=B.tickText(t,e):a[f]=c(t,e,String(i[r])),f++);return f<n.length&&a.splice(f,n.length-f),a}function l(t,e,r){return e*A.roundUp(t/e,r)}function u(t){var e=t.dtick;if(t._tickexponent=0,M(e)||\"string\"==typeof e||(e=1),\"category\"===t.type&&(t._tickround=null),\"date\"===t.type){var r=t.r2l(t.tick0),n=t.l2r(r).replace(/(^-|i)/g,\"\"),i=n.length;if(\"M\"===String(e).charAt(0))i>10||\"01-01\"!==n.substr(5)?t._tickround=\"d\":t._tickround=+e.substr(1)%12==0?\"y\":\"m\";else if(e>=P&&i<=10||e>=15*P)t._tickround=\"d\";else if(e>=R&&i<=16||e>=O)t._tickround=\"M\";else if(e>=F&&i<=19||e>=R)t._tickround=\"S\";else{var a=t.l2r(r+e).replace(/^-/,\"\").length;t._tickround=Math.max(i,a)-20}}else if(M(e)||\"L\"===e.charAt(0)){var o=t.range.map(t.r2d||Number);M(e)||(e=Number(e.substr(1))),t._tickround=2-Math.floor(Math.log(e)/Math.LN10+.01);var s=Math.max(Math.abs(o[0]),Math.abs(o[1])),l=Math.floor(Math.log(s)/Math.LN10+.01);Math.abs(l)>3&&(m(t.exponentformat)&&!v(l)?t._tickexponent=3*Math.round((l-1)/3):t._tickexponent=l)}else t._tickround=null}function c(t,e,r){var n=t.tickfont||{};return{x:e,dx:0,dy:0,text:r||\"\",fontSize:n.size,font:n.family,fontColor:n.color}}function h(t,e,r,n){var i=t._tickround,a=r&&t.hoverformat||t.tickformat;n&&(i=M(i)?4:{y:\"m\",m:\"d\",d:\"M\",M:\"S\",S:4}[i]);var o,s=A.formatDate(e.x,a,i,t.calendar),l=s.indexOf(\"\\n\");-1!==l&&(o=s.substr(l+1),s=s.substr(0,l)),n&&(\"00:00:00\"===s||\"00:00\"===s?(s=o,o=\"\"):8===s.length&&(s=s.replace(/:00$/,\"\"))),o&&(r?\"d\"===i?s+=\", \"+o:s=o+(s?\", \"+s:\"\"):t._inCalcTicks&&o===t._prevDateHead||(s+=\"<br>\"+o,t._prevDateHead=o)),e.text=s}function f(t,e,r,n,i){var a=t.dtick,o=e.x;if(\"never\"===i&&(i=\"\"),!n||\"string\"==typeof a&&\"L\"===a.charAt(0)||(a=\"L3\"),t.tickformat||\"string\"==typeof a&&\"L\"===a.charAt(0))e.text=g(Math.pow(10,o),t,i,n);else if(M(a)||\"D\"===a.charAt(0)&&A.mod(o+.01,1)<.1){var s=Math.round(o);-1!==[\"e\",\"E\",\"power\"].indexOf(t.exponentformat)||m(t.exponentformat)&&v(s)?(e.text=0===s?1:1===s?\"10\":s>1?\"10<sup>\"+s+\"</sup>\":\"10<sup>\"+j+-s+\"</sup>\",e.fontSize*=1.25):(e.text=g(Math.pow(10,o),t,\"\",\"fakehover\"),\"D1\"===a&&\"y\"===t._id.charAt(0)&&(e.dy-=e.fontSize/6))}else{if(\"D\"!==a.charAt(0))throw\"unrecognized dtick \"+String(a);e.text=String(Math.round(Math.pow(10,A.mod(o,1)))),e.fontSize*=.75}if(\"D1\"===t.dtick){var l=String(e.text).charAt(0);\"0\"!==l&&\"1\"!==l||(\"y\"===t._id.charAt(0)?e.dx-=e.fontSize/4:(e.dy+=e.fontSize/2,e.dx+=(t.range[1]>t.range[0]?1:-1)*e.fontSize*(o<0?.5:.25)))}}function d(t,e){var r=t._categories[Math.round(e.x)];void 0===r&&(r=\"\"),e.text=String(r)}function p(t,e,r,n,i){\"never\"===i?i=\"\":\"all\"===t.showexponent&&Math.abs(e.x/t.dtick)<1e-6&&(i=\"hide\"),e.text=g(e.x,t,i,n)}function m(t){return\"SI\"===t||\"B\"===t}function v(t){return t>14||t<-15}function g(t,e,r,n){var i=t<0,a=e._tickround,o=r||e.exponentformat||\"B\",s=e._tickexponent,l=e.tickformat,c=e.separatethousands;if(n){var h={exponentformat:e.exponentformat,dtick:\"none\"===e.showexponent?e.dtick:M(t)?Math.abs(t)||1:1,range:\"none\"===e.showexponent?e.range.map(e.r2d):[0,t||1]};u(h),a=(Number(h._tickround)||0)+4,s=h._tickexponent,e.hoverformat&&(l=e.hoverformat)}if(l)return w.format(l)(t).replace(/-/g,j);var f=Math.pow(10,-a)/2;if(\"none\"===o&&(s=0),(t=Math.abs(t))<f)t=\"0\",i=!1;else{if(t+=f,s&&(t*=Math.pow(10,-s),a+=s),0===a)t=String(Math.floor(t));else if(a<0){t=String(Math.round(t)),t=t.substr(0,t.length+a);for(var d=a;d<0;d++)t+=\"0\"}else{t=String(t);var p=t.indexOf(\".\")+1;p&&(t=t.substr(0,p+a).replace(/\\.?0+$/,\"\"))}t=A.numSeparate(t,e._separators,c)}if(s&&\"hide\"!==o){m(o)&&v(s)&&(o=\"power\");var g;g=s<0?j+-s:\"power\"!==o?\"+\"+s:String(s),\"e\"===o?t+=\"e\"+g:\"E\"===o?t+=\"E\"+g:\"power\"===o?t+=\"\\xd710<sup>\"+g+\"</sup>\":\"B\"===o&&9===s?t+=\"B\":m(o)&&(t+=J[s/3+5])}return i?j+t:t}function y(t,e){var r,n,i=[];for(r=0;r<e.length;r++){var a=[],o=t._fullData[e[r]].xaxis,s=t._fullData[e[r]].yaxis;if(o&&s){for(n=0;n<i.length;n++)-1===i[n].x.indexOf(o)&&-1===i[n].y.indexOf(s)||a.push(n);if(a.length){var l,u=i[a[0]];if(a.length>1)for(n=1;n<a.length;n++)l=i[a[n]],b(u.x,l.x),b(u.y,l.y);b(u.x,[o]),b(u.y,[s])}else i.push({x:[o],y:[s]})}}return i}function b(t,e){for(var r=0;r<e.length;r++)-1===t.indexOf(e[r])&&t.push(e[r])}function x(t,e,r){var n,i,a=[],o=[],s=t.layout;for(n=0;n<e.length;n++)a.push(B.getFromId(t,e[n]));for(n=0;n<r.length;n++)o.push(B.getFromId(t,r[n]));var l=Object.keys(a[0]),u=[\"anchor\",\"domain\",\"overlaying\",\"position\",\"side\",\"tickangle\"],c=[\"linear\",\"log\"];for(n=0;n<l.length;n++){var h=l[n],f=a[0][h],d=o[0][h],p=!0,m=!1,v=!1;if(\"_\"!==h.charAt(0)&&\"function\"!=typeof f&&-1===u.indexOf(h)){for(i=1;i<a.length&&p;i++){var g=a[i][h];\"type\"===h&&-1!==c.indexOf(f)&&-1!==c.indexOf(g)&&f!==g?m=!0:g!==f&&(p=!1)}for(i=1;i<o.length&&p;i++){var y=o[i][h];\"type\"===h&&-1!==c.indexOf(d)&&-1!==c.indexOf(y)&&d!==y?v=!0:o[i][h]!==d&&(p=!1)}p&&(m&&(s[a[0]._name].type=\"linear\"),v&&(s[o[0]._name].type=\"linear\"),_(s,h,a,o))}}for(n=0;n<t._fullLayout.annotations.length;n++){var b=t._fullLayout.annotations[n];-1!==e.indexOf(b.xref)&&-1!==r.indexOf(b.yref)&&A.swapAttrs(s.annotations[n],[\"?\"])}}function _(t,e,r,n){var i,a=A.nestedProperty,o=a(t[r[0]._name],e).get(),s=a(t[n[0]._name],e).get();for(\"title\"===e&&(\"Click to enter X axis title\"===o&&(o=\"Click to enter Y axis title\"),\"Click to enter Y axis title\"===s&&(s=\"Click to enter X axis title\")),i=0;i<r.length;i++)a(t,r[i]._name+\".\"+e).set(s);for(i=0;i<n.length;i++)a(t,n[i]._name+\".\"+e).set(o)}var w=t(\"d3\"),M=t(\"fast-isnumeric\"),k=t(\"../../registry\"),A=t(\"../../lib\"),T=t(\"../../lib/svg_text_utils\"),S=t(\"../../components/titles\"),E=t(\"../../components/color\"),L=t(\"../../components/drawing\"),C=t(\"../../constants/numerical\"),I=C.FP_SAFE,z=C.ONEAVGYEAR,D=C.ONEAVGMONTH,P=C.ONEDAY,O=C.ONEHOUR,R=C.ONEMIN,F=C.ONESEC,j=C.MINUS_SIGN,N=t(\"../../constants/alignment\").MID_SHIFT,B=e.exports={};B.layoutAttributes=t(\"./layout_attributes\"),B.supplyLayoutDefaults=t(\"./layout_defaults\"),B.setConvert=t(\"./set_convert\");var U=t(\"./axis_autotype\"),V=t(\"./axis_ids\");B.id2name=V.id2name,B.cleanId=V.cleanId,B.list=V.list,B.listIds=V.listIds,B.getFromId=V.getFromId,B.getFromTrace=V.getFromTrace,B.coerceRef=function(t,e,r,n,i,a){var o=n.charAt(n.length-1),s=B.listIds(r,o),l=n+\"ref\",u={};return i||(i=s[0]||a),a||(a=i),u[l]={valType:\"enumerated\",values:s.concat(a?[a]:[]),dflt:i},A.coerce(t,e,u,l)},B.coercePosition=function(t,e,r,n,i,a){var o,s;if(\"paper\"===n||\"pixel\"===n)o=A.ensureNumber,s=r(i,a);else{var l=B.getFromId(e,n);a=l.fraction2r(a),s=r(i,a),o=l.cleanPos}t[i]=o(s)},B.cleanPosition=function(t,e,r){return(\"paper\"===r||\"pixel\"===r?A.ensureNumber:B.getFromId(e,r).cleanPos)(t)};var H=B.getDataConversions=function(t,e,r,a){var o,s=\"x\"===r||\"y\"===r||\"z\"===r?r:a;if(Array.isArray(s)){if(o={type:U(a),_categories:[]},B.setConvert(o),\"category\"===o.type)for(var l=0;l<a.length;l++)o.d2c(a[l])}else o=B.getFromTrace(t,e,s);return o?{d2c:o.d2c,c2d:o.c2d}:\"ids\"===s?{d2c:i,c2d:i}:{d2c:n,c2d:n}};B.getDataToCoordFunc=function(t,e,r,n){return H(t,e,r,n).d2c},B.counterLetter=function(t){var e=t.charAt(0);return\"x\"===e?\"y\":\"y\"===e?\"x\":void 0},B.minDtick=function(t,e,r,n){-1===[\"log\",\"category\"].indexOf(t.type)&&n?void 0===t._minDtick?(t._minDtick=e,t._forceTick0=r):t._minDtick&&((t._minDtick/e+1e-6)%1<2e-6&&((r-t._forceTick0)/e%1+1.000001)%1<2e-6?(t._minDtick=e,t._forceTick0=r):((e/t._minDtick+1e-6)%1>2e-6||((r-t._forceTick0)/t._minDtick%1+1.000001)%1>2e-6)&&(t._minDtick=0)):t._minDtick=0},B.getAutoRange=function(t){var e,r=[],n=t._min[0].val,i=t._max[0].val;for(e=1;e<t._min.length&&n===i;e++)n=Math.min(n,t._min[e].val);for(e=1;e<t._max.length&&n===i;e++)i=Math.max(i,t._max[e].val);var a,o,s,l,u,c,h,f=0,d=!1;if(t.range){var p=A.simpleMap(t.range,t.r2l);d=p[1]<p[0]}for(\"reversed\"===t.autorange&&(d=!0,t.autorange=!0),e=0;e<t._min.length;e++)for(o=t._min[e],a=0;a<t._max.length;a++)s=t._max[a],h=s.val-o.val,c=t._length-o.pad-s.pad,h>0&&c>0&&h/c>f&&(l=o,u=s,f=h/c);if(n===i){var m=n-1,v=n+1;r=\"tozero\"===t.rangemode?n<0?[m,0]:[0,v]:\"nonnegative\"===t.rangemode?[Math.max(0,m),Math.max(0,v)]:[m,v]}else f&&(\"linear\"!==t.type&&\"-\"!==t.type||(\"tozero\"===t.rangemode?(l.val>=0&&(l={val:0,pad:0}),u.val<=0&&(u={val:0,pad:0})):\"nonnegative\"===t.rangemode&&(l.val-f*l.pad<0&&(l={val:0,pad:0}),u.val<0&&(u={val:1,pad:0})),f=(u.val-l.val)/(t._length-l.pad-u.pad)),r=[l.val-f*l.pad,u.val+f*u.pad]);return r[0]===r[1]&&(\"tozero\"===t.rangemode?r=r[0]<0?[r[0],0]:r[0]>0?[0,r[0]]:[0,1]:(r=[r[0]-1,r[0]+1],\"nonnegative\"===t.rangemode&&(r[0]=Math.max(0,r[0])))),d&&r.reverse(),A.simpleMap(r,t.l2r||Number)},B.doAutoRange=function(t){t._length||t.setScale();var e=t._min&&t._max&&t._min.length&&t._max.length;if(t.autorange&&e){t.range=B.getAutoRange(t),t._r=t.range.slice(),t._rl=A.simpleMap(t._r,t.r2l);var r=t._input;r.range=t.range.slice(),r.autorange=t.autorange}},B.saveRangeInitial=function(t,e){for(var r=B.list(t,\"\",!0),n=!1,i=0;i<r.length;i++){var a=r[i],o=void 0===a._rangeInitial,s=o||!(a.range[0]===a._rangeInitial[0]&&a.range[1]===a._rangeInitial[1]);(o&&!1===a.autorange||e&&s)&&(a._rangeInitial=a.range.slice(),n=!0)}return n},B.saveShowSpikeInitial=function(t,e){for(var r=B.list(t,\"\",!0),n=!1,i=\"on\",a=0;a<r.length;a++){var o=r[a],s=void 0===o._showSpikeInitial,l=s||!(o.showspikes===o._showspikes);(s||e&&l)&&(o._showSpikeInitial=o.showspikes,n=!0),\"on\"!==i||o.showspikes||(i=\"off\")}return t._fullLayout._cartesianSpikesEnabled=i,n},B.expand=function(t,e,r){function n(t){if(Array.isArray(t))return function(e){return Math.max(Number(t[e]||0),0)};var e=Math.max(Number(t||0),0);return function(){return e}}function i(r){function n(t){return M(t)&&Math.abs(t)<I}if(l=e[r],M(l)){if(h=b(r)+g,f=x(r)+g,p=l-w(r),m=l+_(r),\"log\"===t.type&&p<m/10&&(p=m/10),u=t.c2l(p),c=t.c2l(m),y&&(u=Math.min(0,u),c=Math.max(0,c)),n(u)){for(d=!0,o=0;o<t._min.length&&d;o++)s=t._min[o],s.val<=u&&s.pad>=f?d=!1:s.val>=u&&s.pad<=f&&(t._min.splice(o,1),o--);d&&t._min.push({val:u,pad:y&&0===u?0:f})}if(n(c)){for(d=!0,o=0;o<t._max.length&&d;o++)s=t._max[o],s.val>=c&&s.pad>=h?d=!1:s.val<=c&&s.pad<=h&&(t._max.splice(o,1),o--);d&&t._max.push({val:c,pad:y&&0===c?0:h})}}}if((t.autorange||!!A.nestedProperty(t,\"rangeslider.autorange\").get())&&e){t._min||(t._min=[]),t._max||(t._max=[]),r||(r={}),t._m||t.setScale();var a,o,s,l,u,c,h,f,d,p,m,v=e.length,g=r.padded?.05*t._length:0,y=r.tozero&&(\"linear\"===t.type||\"-\"===t.type);g&&\"domain\"===t.constrain&&t._inputDomain&&(g*=(t._inputDomain[1]-t._inputDomain[0])/(t.domain[1]-t.domain[0]));var b=n((t._m>0?r.ppadplus:r.ppadminus)||r.ppad||0),x=n((t._m>0?r.ppadminus:r.ppadplus)||r.ppad||0),_=n(r.vpadplus||r.vpad),w=n(r.vpadminus||r.vpad);for(a=0;a<6;a++)i(a);for(a=v-1;a>5;a--)i(a)}},B.autoBin=function(t,e,r,n,i){var s=A.aggNums(Math.min,null,t),l=A.aggNums(Math.max,null,t);if(i||(i=e.calendar),\"category\"===e.type)return{start:s-.5,end:l+.5,size:1,_count:l-s+1};var u;if(r)u=(l-s)/r;else{var c=A.distinctVals(t),h=Math.pow(10,Math.floor(Math.log(c.minDiff)/Math.LN10)),f=h*A.roundUp(c.minDiff/h,[.9,1.9,4.9,9.9],!0);u=Math.max(f,2*A.stdev(t)/Math.pow(t.length,n?.25:.4)),M(u)||(u=1)}var d;d=\"log\"===e.type?{type:\"linear\",range:[s,l]}:{type:e.type,range:A.simpleMap([s,l],e.c2r,0,i),calendar:i},B.setConvert(d),B.autoTicks(d,u);var p,m,v=B.tickIncrement(B.tickFirst(d),d.dtick,\"reverse\",i);if(\"number\"==typeof d.dtick)v=a(v,t,d,s,l),m=1+Math.floor((l-v)/d.dtick),p=v+m*d.dtick;else for(\"M\"===d.dtick.charAt(0)&&(v=o(v,t,d.dtick,s,i)),p=v,m=0;p<=l;)p=B.tickIncrement(p,d.dtick,!1,i),m++;return{start:e.c2r(v,0,i),end:e.c2r(p,0,i),size:d.dtick,_count:m}},B.calcTicks=function(t){var e=A.simpleMap(t.range,t.r2l);if(\"auto\"===t.tickmode||!t.dtick){var r,n=t.nticks;n||(\"category\"===t.type?(r=t.tickfont?1.2*(t.tickfont.size||12):15,n=t._length/r):(r=\"y\"===t._id.charAt(0)?40:80,n=A.constrain(t._length/r,4,9)+1)),\"array\"===t.tickmode&&(n*=100),B.autoTicks(t,Math.abs(e[1]-e[0])/n),t._minDtick>0&&t.dtick<2*t._minDtick&&(t.dtick=t._minDtick,t.tick0=t.l2r(t._forceTick0))}if(t.tick0||(t.tick0=\"date\"===t.type?\"2000-01-01\":0),u(t),\"array\"===t.tickmode)return s(t);t._tmin=B.tickFirst(t);var i=e[1]<e[0],a=[],o=1.0001*e[1]-1e-4*e[0];\"category\"===t.type&&(o=i?Math.max(-.5,o):Math.min(t._categories.length-.5,o));for(var l=null,c=Math.max(1e3,t._length||0),h=t._tmin;(i?h>=o:h<=o)&&!(a.length>c||h===l);h=B.tickIncrement(h,t.dtick,i,t.calendar))l=h,a.push(h);t._tmax=a[a.length-1],t._prevDateHead=\"\",t._inCalcTicks=!0;for(var f=new Array(a.length),d=0;d<a.length;d++)f[d]=B.tickText(t,a[d]);return t._inCalcTicks=!1,f};var q=[2,5,10],G=[1,2,3,6,12],Y=[1,2,5,10,15,30],W=[1,2,3,7,14],X=[-.046,0,.301,.477,.602,.699,.778,.845,.903,.954,1],Z=[-.301,0,.301,.699,1];B.autoTicks=function(t,e){var r;if(\"date\"===t.type){t.tick0=A.dateTick0(t.calendar);var n=2*e;n>z?(e/=z,r=Math.pow(10,Math.floor(Math.log(e)/Math.LN10)),t.dtick=\"M\"+12*l(e,r,q)):n>D?(e/=D,t.dtick=\"M\"+l(e,1,G)):n>P?(t.dtick=l(e,P,W),t.tick0=A.dateTick0(t.calendar,!0)):n>O?t.dtick=l(e,O,G):n>R?t.dtick=l(e,R,Y):n>F?t.dtick=l(e,F,Y):(r=Math.pow(10,Math.floor(Math.log(e)/Math.LN10)),t.dtick=l(e,r,q))}else if(\"log\"===t.type){t.tick0=0;var i=A.simpleMap(t.range,t.r2l);if(e>.7)t.dtick=Math.ceil(e);else if(Math.abs(i[1]-i[0])<1){var a=1.5*Math.abs((i[1]-i[0])/e);e=Math.abs(Math.pow(10,i[1])-Math.pow(10,i[0]))/a,r=Math.pow(10,Math.floor(Math.log(e)/Math.LN10)),t.dtick=\"L\"+l(e,r,q)}else t.dtick=e>.3?\"D2\":\"D1\"}else\"category\"===t.type?(t.tick0=0,t.dtick=Math.ceil(Math.max(e,1))):(t.tick0=0,r=Math.pow(10,Math.floor(Math.log(e)/Math.LN10)),t.dtick=l(e,r,q));if(0===t.dtick&&(t.dtick=1),!M(t.dtick)&&\"string\"!=typeof t.dtick){var o=t.dtick;throw t.dtick=1,\"ax.dtick error: \"+String(o)}},B.tickIncrement=function(t,e,r,n){var i=r?-1:1;if(M(e))return t+i*e;var a=e.charAt(0),o=i*Number(e.substr(1));if(\"M\"===a)return A.incrementMonth(t,o,n);if(\"L\"===a)return Math.log(Math.pow(10,t)+o)/Math.LN10;if(\"D\"===a){var s=\"D2\"===e?Z:X,l=t+.01*i,u=A.roundUp(A.mod(l,1),s,r);return Math.floor(l)+Math.log(w.round(Math.pow(10,u),1))/Math.LN10}throw\"unrecognized dtick \"+String(e)},B.tickFirst=function(t){var e=t.r2l||Number,r=A.simpleMap(t.range,e),n=r[1]<r[0],i=n?Math.floor:Math.ceil,a=1.0001*r[0]-1e-4*r[1],o=t.dtick,s=e(t.tick0);if(M(o)){var l=i((a-s)/o)*o+s;return\"category\"===t.type&&(l=A.constrain(l,0,t._categories.length-1)),l}var u=o.charAt(0),c=Number(o.substr(1));if(\"M\"===u){for(var h,f,d,p=0,m=s;p<10;){if(((h=B.tickIncrement(m,o,n,t.calendar))-a)*(m-a)<=0)return n?Math.min(m,h):Math.max(m,h);f=(a-(m+h)/2)/(h-m),d=u+(Math.abs(Math.round(f))||1)*c,m=B.tickIncrement(m,d,f<0?!n:n,t.calendar),p++}return A.error(\"tickFirst did not converge\",t),m}if(\"L\"===u)return Math.log(i((Math.pow(10,a)-s)/c)*c+s)/Math.LN10;if(\"D\"===u){var v=\"D2\"===o?Z:X,g=A.roundUp(A.mod(a,1),v,n);return Math.floor(a)+Math.log(w.round(Math.pow(10,g),1))/Math.LN10}throw\"unrecognized dtick \"+String(o)},B.tickText=function(t,e,r){function n(n){var i;return void 0===n||(r?\"none\"===n:(i={first:t._tmin,last:t._tmax}[n],\"all\"!==n&&e!==i))}var i,a,o=c(t,e),s=\"array\"===t.tickmode,l=r||s,u=\"category\"===t.type?t.d2l_noadd:t.d2l;if(s&&Array.isArray(t.ticktext)){var m=A.simpleMap(t.range,t.r2l),v=Math.abs(m[1]-m[0])/1e4;for(a=0;a<t.ticktext.length&&!(Math.abs(e-u(t.tickvals[a]))<v);a++);if(a<t.ticktext.length)return o.text=String(t.ticktext[a]),o}return i=r?\"never\":\"none\"!==t.exponentformat&&n(t.showexponent)?\"hide\":\"\",\"date\"===t.type?h(t,o,r,l):\"log\"===t.type?f(t,o,r,l,i):\"category\"===t.type?d(t,o):p(t,o,r,l,i),t.tickprefix&&!n(t.showtickprefix)&&(o.text=t.tickprefix+o.text),t.ticksuffix&&!n(t.showticksuffix)&&(o.text+=t.ticksuffix),o};var J=[\"f\",\"p\",\"n\",\"\\u03bc\",\"m\",\"\",\"k\",\"M\",\"G\",\"T\"];B.subplotMatch=/^x([0-9]*)y([0-9]*)$/,B.getSubplots=function(t,e){var r,n,i,a=[],o=t._fullData||t.data||[];for(r=0;r<o.length;r++){var s=o[r];if(!1!==s.visible&&\"legendonly\"!==s.visible&&(k.traceIs(s,\"cartesian\")||k.traceIs(s,\"gl2d\"))){i=(s.xaxis||\"x\")+(s.yaxis||\"y\"),-1===a.indexOf(i)&&a.push(i)}}var l=B.list(t,\"\",!0);for(r=0;r<l.length;r++){var u=l[r],c=u._id.charAt(0),h=\"free\"===u.anchor?\"x\"===c?\"y\":\"x\":u.anchor,f=B.getFromId(t,h),d=!1;for(n=0;n<a.length;n++)if(function(t,e){return-1!==t.indexOf(e._id)}(a[n],u)){d=!0;break}\"free\"===u.anchor&&d||f&&(i=\"x\"===c?u._id+f._id:f._id+u._id,-1===a.indexOf(i)&&a.push(i))}var p=B.subplotMatch,m=[];for(r=0;r<a.length;r++)i=a[r],p.test(i)&&m.push(i);return m.sort(function(t,e){var r=t.match(p),n=e.match(p);return r[1]===n[1]?+(r[2]||1)-(n[2]||1):+(r[1]||0)-(n[1]||0)}),e?B.findSubplotsWithAxis(m,e):m},B.findSubplotsWithAxis=function(t,e){for(var r=new RegExp(\"x\"===e._id.charAt(0)?\"^\"+e._id+\"y\":e._id+\"$\"),n=[],i=0;i<t.length;i++){var a=t[i];r.test(a)&&n.push(a)}return n},B.makeClipPaths=function(t){var e,r,n=t._fullLayout,i={_offset:0,_length:n.width,_id:\"\"},a={_offset:0,_length:n.height,_id:\"\"},o=B.list(t,\"x\",!0),s=B.list(t,\"y\",!0),l=[];for(e=0;e<o.length;e++)for(l.push({x:o[e],y:a}),r=0;r<s.length;r++)0===e&&l.push({x:i,y:s[r]}),l.push({x:o[e],y:s[r]});var u=n._clips.selectAll(\".axesclip\").data(l,function(t){return t.x._id+t.y._id});u.enter().append(\"clipPath\").classed(\"axesclip\",!0).attr(\"id\",function(t){return\"clip\"+n._uid+t.x._id+t.y._id}).append(\"rect\"),u.exit().remove(),u.each(function(t){w.select(this).select(\"rect\").attr({x:t.x._offset||0,y:t.y._offset||0,width:t.x._length||1,height:t.y._length||1})})},B.doTicks=function(t,e,r){function n(t){var e=u.l2p(t.x);return e>1&&e<u._length-1}function i(t,e){var r=t.selectAll(\"path.\"+_).data(\"inside\"===u.ticks?q:b,x);e&&u.ticks?(r.enter().append(\"path\").classed(_,1).classed(\"ticks\",1).classed(\"crisp\",1).call(E.stroke,u.tickcolor).style(\"stroke-width\",F+\"px\").attr(\"d\",e),r.attr(\"transform\",d),r.exit().remove()):r.remove()}function a(r,n){function i(t,e){t.each(function(t){var r=y(e),n=w.select(this),i=n.select(\".text-math-group\"),a=d(t)+(M(e)&&0!=+e?\" rotate(\"+e+\",\"+f(t)+\",\"+(p(t)-t.fontSize/2)+\")\":\"\");if(i.empty())n.select(\"text\").attr({transform:a,\"text-anchor\":r});else{var o=L.bBox(i.node()).width*{end:-.5,start:.5}[r];i.attr(\"transform\",a+(o?\"translate(\"+o+\",0)\":\"\"))}})}function a(){return I.length&&Promise.all(I)}function s(){if(i(h,u.tickangle),\"x\"===g&&!M(u.tickangle)&&(\"log\"!==u.type||\"D\"!==String(u.dtick).charAt(0))){var t=[];for(h.each(function(e){var r=w.select(this),n=r.select(\".text-math-group\"),i=u.l2p(e.x);n.empty()&&(n=r.select(\"text\"));var a=L.bBox(n.node());t.push({top:0,bottom:10,height:10,left:i-a.width/2,right:i+a.width/2+2,width:a.width+2})}),v=0;v<t.length-1;v++)if(A.bBoxIntersect(t[v],t[v+1])){C=30;break}if(C){Math.abs((b[b.length-1].x-b[0].x)*u._m)/(b.length-1)<2.5*E&&(C=90),i(h,C)}u._lastangle=C}return o(),e+\" done\"}function l(){function e(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.max(t[1],e[1])}if(u.showticklabels){var n=t.getBoundingClientRect(),i=r.node().getBoundingClientRect();u._boundingBox={width:i.width,height:i.height,left:i.left-n.left,right:i.right-n.left,top:i.top-n.top,bottom:i.bottom-n.top}}else{var a,o=c._size;\"x\"===g?(a=\"free\"===u.anchor?o.t+o.h*(1-u.position):o.t+o.h*(1-u._anchorAxis.domain[{bottom:0,top:1}[u.side]]),u._boundingBox={top:a,bottom:a,left:u._offset,rigth:u._offset+u._length,width:u._length,height:0}):(a=\"free\"===u.anchor?o.l+o.w*u.position:o.l+o.w*u._anchorAxis.domain[{left:0,right:1}[u.side]],u._boundingBox={left:a,right:a,bottom:u._offset+u._length,top:u._offset,height:u._length,width:0})}if(m){var s=u._counterSpan=[1/0,-1/0];for(v=0;v<m.length;v++){var l=c._plots[m[v]],h=l[\"x\"===g?\"yaxis\":\"xaxis\"];e(s,[h._offset,h._offset+h._length])}\"free\"===u.anchor&&e(s,\"x\"===g?[u._boundingBox.bottom,u._boundingBox.top]:[u._boundingBox.right,u._boundingBox.left])}}var h=r.selectAll(\"g.\"+_).data(b,x);if(!M(n))return h.remove(),void o();if(!u.showticklabels)return h.remove(),o(),void l();var f,p,y,k,S;\"x\"===g?(S=\"bottom\"===U?1:-1,f=function(t){return t.dx+P*S},k=n+(D+z)*S,p=function(t){return t.dy+k+t.fontSize*(\"bottom\"===U?1:-.2)},y=function(t){return M(t)&&0!==t&&180!==t?t*S<0?\"end\":\"start\":\"middle\"}):(S=\"right\"===U?1:-1,p=function(t){return t.dy+t.fontSize*N-P*S},f=function(t){return t.dx+n+(D+z+(90===Math.abs(u.tickangle)?t.fontSize/2:0))*S},y=function(t){return M(t)&&90===Math.abs(t)?\"middle\":\"right\"===U?\"start\":\"end\"});var E=0,C=0,I=[];h.enter().append(\"g\").classed(_,1).append(\"text\").attr(\"text-anchor\",\"middle\").each(function(e){var r=w.select(this),n=t._promises.length;r.call(T.positionText,f(e),p(e)).call(L.font,e.font,e.fontSize,e.fontColor).text(e.text).call(T.convertToTspans,t),n=t._promises[n],n?I.push(t._promises.pop().then(function(){i(r,u.tickangle)})):i(r,u.tickangle)}),h.exit().remove(),h.each(function(t){E=Math.max(E,t.fontSize)}),i(h,u._lastangle||u.tickangle);var O=A.syncOrAsync([a,s,l]);return O&&O.then&&t._promises.push(O),O}function o(){if(!r){var n,i,a,o,s=V.getFromId(t,e),l=w.select(t).selectAll(\"g.\"+e+\"tick\"),u={selection:l,side:s.side},h=e.charAt(0),f=t._fullLayout._size,d=s.titlefont.size;if(l.size()){var p=L.getTranslate(l.node().parentNode);u.offsetLeft=p.x,u.offsetTop=p.y}var m=10+1.5*d+(s.linewidth?s.linewidth-1:0);\"x\"===h?(i=\"free\"===s.anchor?{_offset:f.t+(1-(s.position||0))*f.h,_length:0}:V.getFromId(t,s.anchor),a=s._offset+s._length/2,o=\"top\"===s.side?-m-d*(s.showticklabels?1:0):i._length+m+d*(s.showticklabels?1.5:.5),o+=i._offset,s.rangeslider&&s.rangeslider.visible&&s._boundingBox&&(o+=(c.height-c.margin.b-c.margin.t)*s.rangeslider.thickness+s._boundingBox.height),u.side||(u.side=\"bottom\")):(i=\"free\"===s.anchor?{_offset:f.l+(s.position||0)*f.w,_length:0}:V.getFromId(t,s.anchor),o=s._offset+s._length/2,a=\"right\"===s.side?i._length+m+d*(s.showticklabels?1:.5):-m-d*(s.showticklabels?.5:0),a+=i._offset,n={rotate:\"-90\",offset:0},u.side||(u.side=\"left\")),S.draw(t,e+\"title\",{propContainer:s,propName:s._name+\".title\",dfltName:h.toUpperCase()+\" axis\",avoid:u,transform:n,attributes:{x:a,y:o,\"text-anchor\":\"middle\"}})}}function s(t,e){return!0===t.visible&&t.xaxis+t.yaxis===e&&(!(!k.traceIs(t,\"bar\")||t.orientation!=={x:\"h\",y:\"v\"}[g])||t.fill&&t.fill.charAt(t.fill.length-1)===g)}function l(e,r,i){var a=e.gridlayer,o=e.zerolinelayer,l=e[\"hidegrid\"+g]?[]:q,c=u._gridpath||\"M0,0\"+(\"x\"===g?\"v\":\"h\")+r._length,h=a.selectAll(\"path.\"+C).data(!1===u.showgrid?[]:l,x);if(h.enter().append(\"path\").classed(C,1).classed(\"crisp\",1).attr(\"d\",c).each(function(t){u.zeroline&&(\"linear\"===u.type||\"-\"===u.type)&&Math.abs(t.x)<u.dtick/100&&w.select(this).remove()}),h.attr(\"transform\",d).call(E.stroke,u.gridcolor||\"#ddd\").style(\"stroke-width\",O+\"px\"),h.exit().remove(),o){for(var f=!1,p=0;p<t._fullData.length;p++)if(s(t._fullData[p],i)){f=!0;break}var m=A.simpleMap(u.range,u.r2l),v=m[0]*m[1]<=0&&u.zeroline&&(\"linear\"===u.type||\"-\"===u.type)&&l.length&&(f||n({x:0})||!u.showline),y=o.selectAll(\"path.\"+I).data(v?[{x:0\n", "}]:[]);y.enter().append(\"path\").classed(I,1).classed(\"zl\",1).classed(\"crisp\",1).attr(\"d\",c),y.attr(\"transform\",d).call(E.stroke,u.zerolinecolor||E.defaultLine).style(\"stroke-width\",R+\"px\"),y.exit().remove()}}var u,c=t._fullLayout,h=!1;if(\"object\"==typeof e)u=e,e=u._id,h=!0;else if(u=B.getFromId(t,e),\"redraw\"===e&&c._paper.selectAll(\"g.subplot\").each(function(t){var e=c._plots[t],r=e.xaxis,n=e.yaxis;e.xaxislayer.selectAll(\".\"+r._id+\"tick\").remove(),e.yaxislayer.selectAll(\".\"+n._id+\"tick\").remove(),e.gridlayer.selectAll(\"path\").remove(),e.zerolinelayer.selectAll(\"path\").remove(),c._infolayer.select(\".g-\"+r._id+\"title\").remove(),c._infolayer.select(\".g-\"+n._id+\"title\").remove()}),!e||\"redraw\"===e)return A.syncOrAsync(B.list(t,\"\",!0).map(function(r){return function(){if(r._id){var n=B.doTicks(t,r._id);return\"redraw\"===e&&(r._r=r.range.slice(),r._rl=A.simpleMap(r._r,r.r2l)),n}}}));u.tickformat||(-1===[\"none\",\"e\",\"E\",\"power\",\"SI\",\"B\"].indexOf(u.exponentformat)&&(u.exponentformat=\"e\"),-1===[\"all\",\"first\",\"last\",\"none\"].indexOf(u.showexponent)&&(u.showexponent=\"all\")),u.setScale();var f,d,p,m,v,g=e.charAt(0),y=B.counterLetter(e),b=B.calcTicks(u),x=function(t){return[t.text,t.x,u.mirror].join(\"_\")},_=e+\"tick\",C=e+\"grid\",I=e+\"zl\",z=(u.linewidth||1)/2,D=\"outside\"===u.ticks?u.ticklen:0,P=0,O=L.crispRound(t,u.gridwidth,1),R=L.crispRound(t,u.zerolinewidth,O),F=L.crispRound(t,u.tickwidth,1);if(u._counterangle&&\"outside\"===u.ticks){var j=u._counterangle*Math.PI/180;D=u.ticklen*Math.cos(j)+1,P=u.ticklen*Math.sin(j)}if(u.showticklabels&&(\"outside\"===u.ticks||u.showline)&&(D+=.2*u.tickfont.size),\"x\"===g)f=[\"bottom\",\"top\"],d=function(t){return\"translate(\"+u.l2p(t.x)+\",0)\"},p=function(t,e){if(u._counterangle){var r=u._counterangle*Math.PI/180;return\"M0,\"+t+\"l\"+Math.sin(r)*e+\",\"+Math.cos(r)*e}return\"M0,\"+t+\"v\"+e};else{if(\"y\"!==g)return void A.warn(\"Unrecognized doTicks axis:\",e);f=[\"left\",\"right\"],d=function(t){return\"translate(0,\"+u.l2p(t.x)+\")\"},p=function(t,e){if(u._counterangle){var r=u._counterangle*Math.PI/180;return\"M\"+t+\",0l\"+Math.cos(r)*e+\",\"+-Math.sin(r)*e}return\"M\"+t+\",0h\"+e}}var U=u.side||f[0],H=[-1,1,U===f[1]?1:-1];if(\"inside\"!==u.ticks==(\"x\"===g)&&(H=H.map(function(t){return-t})),u.visible){var q=b.filter(n);if(h){if(i(u._axislayer,p(u._pos+z*H[2],H[2]*u.ticklen)),u._counteraxis){l({gridlayer:u._gridlayer,zerolinelayer:u._zerolinelayer},u._counteraxis)}return a(u._axislayer,u._pos)}m=B.getSubplots(t,u);var G=m.map(function(t){var e=c._plots[t];if(c._has(\"cartesian\")){var r=e[g+\"axislayer\"],n=u._linepositions[t]||[],o=e[y+\"axis\"],s=o._id===u.anchor,h=[!1,!1,!1],d=\"\";if(\"allticks\"===u.mirror?h=[!0,!0,!1]:s&&(\"ticks\"===u.mirror?h=[!0,!0,!1]:h[f.indexOf(U)]=!0),u.mirrors)for(v=0;v<2;v++){var m=u.mirrors[o._id+f[v]];\"ticks\"!==m&&\"labels\"!==m||(h[v]=!0)}return void 0!==n[2]&&(h[2]=!0),h.forEach(function(t,e){var r=n[e],i=H[e];t&&M(r)&&(d+=p(r+z*i,i*u.ticklen))}),i(r,d),l(e,o,t),a(r,n[3])}}).filter(function(t){return t&&t.then});return G.length?Promise.all(G):0}},B.swap=function(t,e){for(var r=y(t,e),n=0;n<r.length;n++)x(t,r[n].x,r[n].y)}},{\"../../components/color\":604,\"../../components/drawing\":628,\"../../components/titles\":694,\"../../constants/alignment\":701,\"../../constants/numerical\":707,\"../../lib\":728,\"../../lib/svg_text_utils\":750,\"../../registry\":846,\"./axis_autotype\":773,\"./axis_ids\":775,\"./layout_attributes\":783,\"./layout_defaults\":784,\"./set_convert\":789,d3:122,\"fast-isnumeric\":131}],773:[function(t,e,r){\"use strict\";function n(t){if(!t)return!1;for(var e=0;e<t.length;e++)if(o(t[e]))return!0;return!1}function i(t,e){for(var r,n=0,i=0,a=Math.max(1,(t.length-1)/1e3),l=0;l<t.length;l+=a)r=t[Math.round(l)],s.isDateTime(r,e)&&(n+=1),o(r)&&(i+=1);return n>2*i}function a(t){for(var e,r=Math.max(1,(t.length-1)/1e3),n=0,i=0,a=0;a<t.length;a+=r)e=t[Math.round(a)],s.cleanNumber(e)!==l?n++:\"string\"==typeof e&&\"\"!==e&&\"None\"!==e&&i++;return i>2*n}var o=t(\"fast-isnumeric\"),s=t(\"../../lib\"),l=t(\"../../constants/numerical\").BADNUM;e.exports=function(t,e){return i(t,e)?\"date\":a(t)?\"category\":n(t)?\"linear\":\"-\"}},{\"../../constants/numerical\":707,\"../../lib\":728,\"fast-isnumeric\":131}],774:[function(t,e,r){\"use strict\";var n=t(\"tinycolor2\").mix,i=t(\"../../registry\"),a=t(\"../../lib\"),o=t(\"../../components/color/attributes\").lightFraction,s=t(\"./layout_attributes\"),l=t(\"./tick_value_defaults\"),u=t(\"./tick_mark_defaults\"),c=t(\"./tick_label_defaults\"),h=t(\"./category_order_defaults\"),f=t(\"./set_convert\"),d=t(\"./ordered_categories\");e.exports=function(t,e,r,p,m){function v(r,n){return a.coerce2(t,e,s,r,n)}var g=p.letter,y=p.font||{},b=\"Click to enter \"+(p.title||g.toUpperCase()+\" axis\")+\" title\",x=r(\"visible\",!p.cheateronly),_=e.type;if(\"date\"===_){i.getComponentMethod(\"calendars\",\"handleDefaults\")(t,e,\"calendar\",p.calendar)}if(f(e,m),r(\"autorange\",!e.isValidRange(t.range))&&r(\"rangemode\"),r(\"range\"),e.cleanRange(),h(t,e,r),e._initialCategories=\"category\"===_?d(g,e.categoryorder,e.categoryarray,p.data):[],!x)return e;var w=r(\"color\"),M=w===t.color?w:y.color;r(\"title\",b),a.coerceFont(r,\"titlefont\",{family:y.family,size:Math.round(1.2*y.size),color:M}),l(t,e,r,_),c(t,e,r,_,p),u(t,e,r,p);var k=v(\"linecolor\",w),A=v(\"linewidth\"),T=r(\"showline\",!!k||!!A);T||(delete e.linecolor,delete e.linewidth),(T||e.ticks)&&r(\"mirror\");var S=v(\"gridcolor\",n(w,p.bgColor,o).toRgbString()),E=v(\"gridwidth\");r(\"showgrid\",p.showGrid||!!S||!!E)||(delete e.gridcolor,delete e.gridwidth);var L=v(\"zerolinecolor\",w),C=v(\"zerolinewidth\");return r(\"zeroline\",p.showGrid||!!L||!!C)||(delete e.zerolinecolor,delete e.zerolinewidth),e}},{\"../../components/color/attributes\":603,\"../../lib\":728,\"../../registry\":846,\"./category_order_defaults\":776,\"./layout_attributes\":783,\"./ordered_categories\":785,\"./set_convert\":789,\"./tick_label_defaults\":790,\"./tick_mark_defaults\":791,\"./tick_value_defaults\":792,tinycolor2:534}],775:[function(t,e,r){\"use strict\";function n(t,e,r){function n(t,r){for(var n=Object.keys(t),i=/^[xyz]axis[0-9]*/,a=[],o=0;o<n.length;o++){var s=n[o];e&&s.charAt(0)!==e||i.test(s)&&a.push(r+s)}return a.sort()}var i=t._fullLayout;if(!i)return[];var o=n(i,\"\");if(r)return o;for(var s=a.getSubplotIds(i,\"gl3d\")||[],l=0;l<s.length;l++){var u=s[l];o=o.concat(n(i[u],u+\".\"))}return o}var i=t(\"../../registry\"),a=t(\"../plots\"),o=t(\"../../lib\"),s=t(\"./constants\");r.id2name=function(t){if(\"string\"==typeof t&&t.match(s.AX_ID_PATTERN)){var e=t.substr(1);return\"1\"===e&&(e=\"\"),t.charAt(0)+\"axis\"+e}},r.name2id=function(t){if(t.match(s.AX_NAME_PATTERN)){var e=t.substr(5);return\"1\"===e&&(e=\"\"),t.charAt(0)+e}},r.cleanId=function(t,e){if(t.match(s.AX_ID_PATTERN)&&(!e||t.charAt(0)===e)){var r=t.substr(1).replace(/^0+/,\"\");return\"1\"===r&&(r=\"\"),t.charAt(0)+r}},r.list=function(t,e,r){return n(t,e,r).map(function(e){return o.nestedProperty(t._fullLayout,e).get()})},r.listIds=function(t,e){return n(t,e,!0).map(r.name2id)},r.getFromId=function(t,e,n){var i=t._fullLayout;return\"x\"===n?e=e.replace(/y[0-9]*/,\"\"):\"y\"===n&&(e=e.replace(/x[0-9]*/,\"\")),i[r.id2name(e)]},r.getFromTrace=function(t,e,n){var a=t._fullLayout,o=null;if(i.traceIs(e,\"gl3d\")){var s=e.scene;\"scene\"===s.substr(0,5)&&(o=a[s][n+\"axis\"])}else o=r.getFromId(t,e[n+\"axis\"]||n);return o}},{\"../../lib\":728,\"../../registry\":846,\"../plots\":831,\"./constants\":777}],776:[function(t,e,r){\"use strict\";e.exports=function(t,e,r){if(\"category\"===e.type){var n,i=t.categoryarray,a=Array.isArray(i)&&i.length>0;a&&(n=\"array\");var o=r(\"categoryorder\",n);\"array\"===o&&r(\"categoryarray\"),a||\"array\"!==o||(e.categoryorder=\"trace\")}}},{}],777:[function(t,e,r){\"use strict\";var n=t(\"../../lib\").counterRegex;e.exports={idRegex:{x:n(\"x\"),y:n(\"y\")},attrRegex:n(\"[xy]axis\"),xAxisMatch:n(\"xaxis\"),yAxisMatch:n(\"yaxis\"),AX_ID_PATTERN:/^[xyz][0-9]*$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,MINDRAG:8,MINSELECT:12,MINZOOM:20,DRAGGERSIZE:20,BENDPX:1.5,REDRAWDELAY:50,SELECTDELAY:100,SELECTID:\"-select\",DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:[\"imagelayer\",\"maplayer\",\"barlayer\",\"carpetlayer\",\"boxlayer\",\"scatterlayer\"],layerValue2layerClass:{\"above traces\":\"above\",\"below traces\":\"below\"}}},{\"../../lib\":728}],778:[function(t,e,r){\"use strict\";function n(t,e,r,n){var i,a,s,l,u=n[o(e)].type,c=[];for(a=0;a<r.length;a++)(s=r[a])!==e&&(l=n[o(s)],l.type!==u||l.fixedrange||c.push(s));for(i=0;i<t.length;i++)if(t[i][e]){var h=t[i],f=[];for(a=0;a<c.length;a++)s=c[a],h[s]||f.push(s);return{linkableAxes:f,thisGroup:h}}return{linkableAxes:c,thisGroup:null}}function i(t,e,r,n,i){var a,o,s,l,u;null===e?(e={},e[r]=1,u=t.length,t.push(e)):u=t.indexOf(e);var c=Object.keys(e);for(a=0;a<t.length;a++)if(s=t[a],a!==u&&s[n]){var h=s[n];for(o=0;o<c.length;o++)l=c[o],s[l]=h*i*e[l];return void t.splice(u,1)}if(1!==i)for(o=0;o<c.length;o++)e[c[o]]*=i;e[n]=1}var a=t(\"../../lib\"),o=t(\"./axis_ids\").id2name;e.exports=function(t,e,r,o,s){var l=s._axisConstraintGroups,u=e._id,c=u.charAt(0);if(!e.fixedrange&&(r(\"constrain\"),a.coerce(t,e,{constraintoward:{valType:\"enumerated\",values:\"x\"===c?[\"left\",\"center\",\"right\"]:[\"bottom\",\"middle\",\"top\"],dflt:\"x\"===c?\"center\":\"middle\"}},\"constraintoward\"),t.scaleanchor)){var h=n(l,u,o,s),f=a.coerce(t,e,{scaleanchor:{valType:\"enumerated\",values:h.linkableAxes}},\"scaleanchor\");if(f){var d=r(\"scaleratio\");d||(d=e.scaleratio=1),i(l,h.thisGroup,u,f,d)}else-1!==o.indexOf(t.scaleanchor)&&a.warn(\"ignored \"+e._name+'.scaleanchor: \"'+t.scaleanchor+'\" to avoid either an infinite loop and possibly inconsistent scaleratios, or because the targetaxis has fixed range.')}}},{\"../../lib\":728,\"./axis_ids\":775}],779:[function(t,e,r){\"use strict\";function n(t,e){var r=t._inputDomain,n=s[t.constraintoward],i=r[0]+(r[1]-r[0])*n;t.domain=t._input.domain=[i+(r[0]-i)/e,i+(r[1]-i)/e]}var i=t(\"./axis_ids\").id2name,a=t(\"./scale_zoom\"),o=t(\"../../constants/numerical\").ALMOST_EQUAL,s=t(\"../../constants/alignment\").FROM_BL;r.enforce=function(t){var e,r,s,l,u,c,h,f=t._fullLayout,d=f._axisConstraintGroups;for(e=0;e<d.length;e++){var p=d[e],m=Object.keys(p),v=1/0,g=0,y=1/0,b={},x={},_=!1;for(r=0;r<m.length;r++)s=m[r],x[s]=l=f[i(s)],l._inputDomain?l.domain=l._inputDomain.slice():l._inputDomain=l.domain.slice(),l._inputRange||(l._inputRange=l.range.slice()),l.setScale(),b[s]=u=Math.abs(l._m)/p[s],v=Math.min(v,u),\"domain\"!==l.constrain&&l._constraintShrinkable||(y=Math.min(y,u)),delete l._constraintShrinkable,g=Math.max(g,u),\"domain\"===l.constrain&&(_=!0);if(!(v>o*g)||_)for(r=0;r<m.length;r++)if(s=m[r],u=b[s],l=x[s],c=l.constrain,u!==y||\"domain\"===c)if(h=u/y,\"range\"===c)a(l,h);else{var w=l._inputDomain,M=(l.domain[1]-l.domain[0])/(w[1]-w[0]),k=(l.r2l(l.range[1])-l.r2l(l.range[0]))/(l.r2l(l._inputRange[1])-l.r2l(l._inputRange[0]));if((h/=M)*k<1){l.domain=l._input.domain=w.slice(),a(l,h);continue}if(k<1&&(l.range=l._input.range=l._inputRange.slice(),h*=k),l.autorange&&l._min.length&&l._max.length){var A=l.r2l(l.range[0]),T=l.r2l(l.range[1]),S=(A+T)/2,E=S,L=S,C=Math.abs(T-S),I=S-C*h*1.0001,z=S+C*h*1.0001;n(l,h),l.setScale();var D,P,O=Math.abs(l._m);for(P=0;P<l._min.length;P++)(D=l._min[P].val-l._min[P].pad/O)>I&&D<E&&(E=D);for(P=0;P<l._max.length;P++)(D=l._max[P].val+l._max[P].pad/O)<z&&D>L&&(L=D);var R=(L-E)/(2*C);h/=R,E=l.l2r(E),L=l.l2r(L),l.range=l._input.range=A<T?[E,L]:[L,E]}n(l,h)}}},r.clean=function(t,e){if(e._inputDomain){for(var r=!1,n=e._id,i=t._fullLayout._axisConstraintGroups,a=0;a<i.length;a++)if(i[a][n]){r=!0;break}r&&\"domain\"===e.constrain||(e._input.domain=e.domain=e._inputDomain,delete e._inputDomain)}}},{\"../../constants/alignment\":701,\"../../constants/numerical\":707,\"./axis_ids\":775,\"./scale_zoom\":787}],780:[function(t,e,r){\"use strict\";function n(t,e,r,n,i,a,o){var s=t.draglayer.selectAll(\".\"+e).data([0]);return s.enter().append(\"rect\").classed(\"drag\",!0).classed(e,!0).style({fill:\"transparent\",\"stroke-width\":0}).attr(\"data-subplot\",t.id),s.call(S.setRect,n,i,a,o).call(E,r),s.node()}function i(t,e){for(var r=0;r<t.length;r++)if(!t[r].fixedrange)return e;return\"\"}function a(t,e){var r,n=t.range[e],i=Math.abs(n-t.range[1-e]);return\"date\"===t.type?n:\"log\"===t.type?(r=Math.ceil(Math.max(0,-Math.log(i)/Math.LN10))+3,x.format(\".\"+r+\"g\")(Math.pow(10,n))):(r=Math.floor(Math.log(Math.abs(n))/Math.LN10)-Math.floor(Math.log(i)/Math.LN10)+4,x.format(\".\"+String(r)+\"g\")(n))}function o(t,e,r,n,i){var a,s,l,u;for(a=0;a<t.length;a++)s=t[a],s.fixedrange||(l=s._rl[0],u=s._rl[1]-l,s.range=[s.l2r(l+u*e),s.l2r(l+u*r)],n[s._name+\".range[0]\"]=s.range[0],n[s._name+\".range[1]\"]=s.range[1]);if(i&&i.length){var c=(e+(1-r))/2;o(i,c,1-c,n)}}function s(t,e){for(var r=0;r<t.length;r++){var n=t[r];n.fixedrange||(n.range=[n.l2r(n._rl[0]-e/n._m),n.l2r(n._rl[1]-e/n._m)])}}function l(t){return 1-(t>=0?Math.min(t,.9):1/(1/Math.max(t,-.3)+3.222))}function u(t,e){return t?\"nsew\"===t?\"pan\"===e?\"move\":\"crosshair\":t.toLowerCase()+\"-resize\":\"pointer\"}function c(t,e,r,n,i){return t.append(\"path\").attr(\"class\",\"zoombox\").style({fill:e>.2?\"rgba(0,0,0,0)\":\"rgba(255,255,255,0)\",\"stroke-width\":0}).attr(\"transform\",\"translate(\"+r+\", \"+n+\")\").attr(\"d\",i+\"Z\")}function h(t,e,r){return t.append(\"path\").attr(\"class\",\"zoombox-corners\").style({fill:T.background,stroke:T.defaultLine,\"stroke-width\":1,opacity:0}).attr(\"transform\",\"translate(\"+e+\", \"+r+\")\").attr(\"d\",\"M0,0Z\")}function f(t){t.selectAll(\".select-outline\").remove()}function d(t,e,r,n,i,a){t.attr(\"d\",n+\"M\"+r.l+\",\"+r.t+\"v\"+r.h+\"h\"+r.w+\"v-\"+r.h+\"h-\"+r.w+\"Z\"),i||(t.transition().style(\"fill\",a>.2?\"rgba(0,0,0,0.4)\":\"rgba(255,255,255,0.3)\").duration(200),e.transition().style(\"opacity\",1).duration(200))}function p(t){x.select(t).selectAll(\".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners\").remove()}function m(t){return-1!==[\"lasso\",\"select\"].indexOf(t)}function v(t,e){return\"M\"+(t.l-.5)+\",\"+(e-j-.5)+\"h-3v\"+(2*j+1)+\"h3ZM\"+(t.r+.5)+\",\"+(e-j-.5)+\"h3v\"+(2*j+1)+\"h-3Z\"}function g(t,e){return\"M\"+(e-j-.5)+\",\"+(t.t-.5)+\"v-3h\"+(2*j+1)+\"v3ZM\"+(e-j-.5)+\",\"+(t.b+.5)+\"v3h\"+(2*j+1)+\"v-3Z\"}function y(t){var e=Math.floor(Math.min(t.b-t.t,t.r-t.l,j)/2);return\"M\"+(t.l-3.5)+\",\"+(t.t-.5+e)+\"h3v\"+-e+\"h\"+e+\"v-3h-\"+(e+3)+\"ZM\"+(t.r+3.5)+\",\"+(t.t-.5+e)+\"h-3v\"+-e+\"h\"+-e+\"v-3h\"+(e+3)+\"ZM\"+(t.r+3.5)+\",\"+(t.b+.5-e)+\"h-3v\"+e+\"h\"+-e+\"v3h\"+(e+3)+\"ZM\"+(t.l-3.5)+\",\"+(t.b+.5-e)+\"h3v\"+e+\"h\"+e+\"v3h-\"+(e+3)+\"Z\"}function b(t,e,r){var n,i,a,o,s,l,u=!1,c={},h={};for(n=0;n<t.length;n++){for(o=t[n],i=0;i<e.length;i++)if(o[e[i]]){for(s in o)-1===(\"x\"===s.charAt(0)?e:r).indexOf(s)&&(c[s]=1);for(a=0;a<r.length;a++)o[r[a]]&&(u=!0)}for(i=0;i<r.length;i++)if(o[r[i]])for(l in o)-1===(\"x\"===l.charAt(0)?e:r).indexOf(l)&&(h[l]=1)}return u&&(k.extendFlat(c,h),h={}),{x:c,y:h,xy:u}}var x=t(\"d3\"),_=t(\"tinycolor2\"),w=t(\"../../plotly\"),M=t(\"../../registry\"),k=t(\"../../lib\"),A=t(\"../../lib/svg_text_utils\"),T=t(\"../../components/color\"),S=t(\"../../components/drawing\"),E=t(\"../../lib/setcursor\"),L=t(\"../../components/dragelement\"),C=t(\"../../constants/alignment\").FROM_TL,I=t(\"../plots\"),z=t(\"./axes\").doTicks,D=t(\"./axis_ids\").getFromId,P=t(\"./select\"),O=t(\"./scale_zoom\"),R=t(\"./constants\"),F=R.MINDRAG,j=R.MINZOOM,N=!0;e.exports=function(t,e,r,T,E,B,U,V){function H(){et=[e.xaxis],rt=[e.yaxis];var r=et[0],n=rt[0];at=r._length,ot=n._length;var a=dt._axisConstraintGroups,o=[r._id],s=[n._id];tt=[e].concat(U&&V?e.overlays:[]);for(var l=1;l<tt.length;l++){var c=tt[l].xaxis,h=tt[l].yaxis;-1===et.indexOf(c)&&(et.push(c),o.push(c._id)),-1===rt.indexOf(h)&&(rt.push(h),s.push(h._id))}st=i(et,V),lt=i(rt,U),ut=u(lt+st,dt.dragmode),nt=r._offset,it=n._offset;var f=b(a,o,s);ct=f.xy,ht=[];for(var d in f.x)ht.push(D(t,d));ft=[];for(var p in f.y)ft.push(D(t,p))}function q(e,r,n){var i=vt.getBoundingClientRect();yt=r-i.left,bt=n-i.top,xt={l:yt,r:yt,w:0,t:bt,b:bt,h:0},_t=t._hmpixcount?t._hmlumcount/t._hmpixcount:_(t._fullLayout.plot_bgcolor).getLuminance(),wt=\"M0,0H\"+at+\"V\"+ot+\"H0V0\",Mt=!1,kt=\"xy\",At=c(pt,_t,nt,it,wt),Tt=h(pt,nt,it),f(pt)}function G(e,r){function n(){kt=\"\",xt.r=xt.l,xt.t=xt.b,Tt.attr(\"d\",\"M0,0Z\")}if(t._transitioningWithDuration)return!1;var i=Math.max(0,Math.min(at,e+yt)),a=Math.max(0,Math.min(ot,r+bt)),o=Math.abs(i-yt),s=Math.abs(a-bt);xt.l=Math.min(yt,i),xt.r=Math.max(yt,i),xt.t=Math.min(bt,a),xt.b=Math.max(bt,a),ct?o>j||s>j?(kt=\"xy\",o/at>s/ot?(s=o*ot/at,bt>a?xt.t=bt-s:xt.b=bt+s):(o=s*at/ot,yt>i?xt.l=yt-o:xt.r=yt+o),Tt.attr(\"d\",y(xt))):n():!lt||s<Math.min(Math.max(.6*o,F),j)?o<F?n():(xt.t=0,xt.b=ot,kt=\"x\",Tt.attr(\"d\",v(xt,bt))):!st||o<Math.min(.6*s,j)?(xt.l=0,xt.r=at,kt=\"y\",Tt.attr(\"d\",g(xt,yt))):(kt=\"xy\",Tt.attr(\"d\",y(xt))),xt.w=xt.r-xt.l,xt.h=xt.b-xt.t,d(At,Tt,xt,wt,Mt,_t),Mt=!0}function Y(e,r){if(Math.min(xt.h,xt.w)<2*F)return 2===r&&K(),p(t);\"xy\"!==kt&&\"x\"!==kt||o(et,xt.l/at,xt.r/at,St,ht),\"xy\"!==kt&&\"y\"!==kt||o(rt,(ot-xt.b)/ot,(ot-xt.t)/ot,St,ft),p(t),Q(kt),N&&t.data&&t._context.showTips&&(k.notifier(\"Double-click to<br>zoom back out\",\"long\"),N=!1)}function W(e,r){var n=1===(U+V).length;if(e)Q();else if(2!==r||n){if(1===r&&n){var i=U?rt[0]:et[0],o=\"s\"===U||\"w\"===V?0:1,s=i._name+\".range[\"+o+\"]\",l=a(i,o),u=\"left\",c=\"middle\";if(i.fixedrange)return;U?(c=\"n\"===U?\"top\":\"bottom\",\"right\"===i.side&&(u=\"right\")):\"e\"===V&&(u=\"right\"),t._context.showAxisRangeEntryBoxes&&x.select(vt).call(A.makeEditable,{gd:t,immediate:!0,background:dt.paper_bgcolor,text:String(l),fill:i.tickfont?i.tickfont.color:\"#444\",horizontalAlign:u,verticalAlign:c}).on(\"edit\",function(e){var r=i.d2r(e);void 0!==r&&w.relayout(t,s,r)})}}else K()}function X(e){function r(t,e,r){function n(e){return t.l2r(a+(e-a)*r)}if(!t.fixedrange){var i=k.simpleMap(t.range,t.r2l),a=i[0]+(i[1]-i[0])*e;t.range=i.map(n)}}if(t._context.scrollZoom||dt._enablescrollzoom){if(t._transitioningWithDuration)return k.pauseEvent(e);var n=t.querySelector(\".plotly\");if(H(),!(n.scrollHeight-n.clientHeight>10||n.scrollWidth-n.clientWidth>10)){clearTimeout(Lt);var i=-e.deltaY;if(isFinite(i)||(i=e.wheelDelta/10),!isFinite(i))return void k.log(\"Did not find wheel motion attributes: \",e);var a,o=Math.exp(-Math.min(Math.max(i,-20),20)/200),s=It.draglayer.select(\".nsewdrag\").node().getBoundingClientRect(),l=(e.clientX-s.left)/s.width,u=(s.bottom-e.clientY)/s.height;if(V||ct){for(V||(l=.5),a=0;a<et.length;a++)r(et[a],l,o);Et[2]*=o,Et[0]+=Et[2]*l*(1/o-1)}if(U||ct){for(U||(u=.5),a=0;a<rt.length;a++)r(rt[a],u,o);Et[3]*=o,Et[1]+=Et[3]*(1-u)*(1/o-1)}return $(Et),J(U,V),Lt=setTimeout(function(){Et=[0,0,at,ot];var t;t=ct?\"xy\":(V?\"x\":\"\")+(U?\"y\":\"\"),Q(t)},Ct),k.pauseEvent(e)}}}function Z(e,r){function n(t,e,r){for(var n,i,a=1-e,o=0;o<t.length;o++){var s=t[o];if(!s.fixedrange){n=s,i=s._rl[a]+(s._rl[e]-s._rl[a])/l(r/s._length);var u=s.l2r(i);!1!==u&&void 0!==u&&(s.range[e]=u)}}return n._length*(n._rl[e]-i)/(n._rl[e]-n._rl[a])}if(!t._transitioningWithDuration){if(H(),\"ew\"===st||\"ns\"===lt)return st&&s(et,e),lt&&s(rt,r),$([st?-e:0,lt?-r:0,at,ot]),void J(lt,st);if(ct&&st&&lt){var i=\"w\"===st==(\"n\"===lt)?1:-1,a=(e/at+i*r/ot)/2;e=a*at,r=i*a*ot}\"w\"===st?e=n(et,0,e):\"e\"===st?e=n(et,1,-e):st||(e=0),\"n\"===lt?r=n(rt,1,r):\"s\"===lt?r=n(rt,0,-r):lt||(r=0);var o=\"w\"===st?e:0,u=\"n\"===lt?r:0;if(ct){var c;if(!st&&1===lt.length){for(c=0;c<et.length;c++)et[c].range=et[c]._r.slice(),O(et[c],1-r/ot);e=r*at/ot,o=e/2}if(!lt&&1===st.length){for(c=0;c<rt.length;c++)rt[c].range=rt[c]._r.slice(),O(rt[c],1-e/at);r=e*ot/at,u=r/2}}$([o,u,at-e,ot-r]),J(lt,st)}}function J(e,r){function n(t){for(a=0;a<t.length;a++)t[a].fixedrange||o.push(t[a]._id)}function i(n,i,s){for(a=0;a<n.length;a++){var l=n[a];if((r&&-1!==o.indexOf(l.xref)||e&&-1!==o.indexOf(l.yref))&&(i(t,a),s))return}}var a,o=[];for((r||ct)&&(n(et),n(ht)),(e||ct)&&(n(rt),n(ft)),St={},a=0;a<o.length;a++){var s=o[a];z(t,s,!0);var l=D(t,s);St[l._name+\".range[0]\"]=l.range[0],St[l._name+\".range[1]\"]=l.range[1]}i(dt.annotations||[],M.getComponentMethod(\"annotations\",\"drawOne\")),i(dt.shapes||[],M.getComponentMethod(\"shapes\",\"drawOne\")),i(dt.images||[],M.getComponentMethod(\"images\",\"draw\"),!0)}function K(){if(!t._transitioningWithDuration){var e,r,n,i=t._context.doubleClick,a=(st?et:[]).concat(lt?rt:[]),o={};if(\"reset+autosize\"===i)for(i=\"autosize\",r=0;r<a.length;r++)if(e=a[r],e._rangeInitial&&(e.range[0]!==e._rangeInitial[0]||e.range[1]!==e._rangeInitial[1])||!e._rangeInitial&&!e.autorange){i=\"reset\";break}if(\"autosize\"===i)for(r=0;r<a.length;r++)e=a[r],e.fixedrange||(o[e._name+\".autorange\"]=!0);else if(\"reset\"===i)for((st||ct)&&(a=a.concat(ht)),lt&&!ct&&(a=a.concat(ft)),ct&&(st?lt||(a=a.concat(rt)):a=a.concat(et)),r=0;r<a.length;r++)e=a[r],e._rangeInitial?(n=e._rangeInitial,o[e._name+\".range[0]\"]=n[0],o[e._name+\".range[1]\"]=n[1]):o[e._name+\".autorange\"]=!0;t.emit(\"plotly_doubleclick\",null),w.relayout(t,o)}}function Q(e){void 0===e&&(e=(V?\"x\":\"\")+(U?\"y\":\"\")),$([0,0,at,ot]),k.syncOrAsync([I.previousPromises,function(){w.relayout(t,St)}],t)}function $(t){function e(t){return t.fixedrange?0:d&&-1!==ht.indexOf(t)?h:p&&-1!==(ct?ht:ft).indexOf(t)?f:0}function r(t,e){return e?(t.range=t._r.slice(),O(t,e),n(t,e)):0}function n(t,e){return t._length*(1-e)*C[t.constraintoward||\"middle\"]}var i,a,o,s,l,u=dt._plots,c=Object.keys(u),h=t[2]/et[0]._length,f=t[3]/rt[0]._length,d=V||ct,p=U||ct;for(i=0;i<c.length;i++){var m=u[c[i]],v=m.xaxis,g=m.yaxis,y=d&&!v.fixedrange&&-1!==et.indexOf(v),b=p&&!g.fixedrange&&-1!==rt.indexOf(g);if(y?(a=h,s=V?t[0]:n(v,a)):(a=e(v),s=r(v,a)),b?(o=f,l=U?t[1]:n(g,o)):(o=e(g),l=r(g,o)),a||o){a||(a=1),o||(o=1);var x=v._offset-s/a,_=g._offset-l/o;dt._defs.select(\"#\"+m.clipId+\"> rect\").call(S.setTranslate,s,l).call(S.setScale,a,o);var w=m.plot.selectAll(\".scatterlayer .points, .boxlayer .points\");m.plot.call(S.setTranslate,x,_).call(S.setScale,1/a,1/o),w.selectAll(\".point\").call(S.setPointGroupScale,a,o).call(S.hideOutsideRangePoints,m),w.selectAll(\".textpoint\").call(S.setTextPointsScale,a,o).call(S.hideOutsideRangePoints,m)}}}var tt,et,rt,nt,it,at,ot,st,lt,ut,ct,ht,ft,dt=t._fullLayout,pt=t._fullLayout._zoomlayer,mt=U+V===\"nsew\";H();var vt=n(e,U+V+\"drag\",ut,r,T,E,B);if(!lt&&!st&&!m(dt.dragmode))return vt.onmousedown=null,vt.style.pointerEvents=mt?\"all\":\"none\",vt;var gt={element:vt,gd:t,plotinfo:e,prepFn:function(e,r,n){var i=t._fullLayout.dragmode;mt?e.shiftKey&&(i=\"pan\"===i?\"zoom\":\"pan\"):i=\"pan\",gt.minDrag=\"lasso\"===i?1:void 0,\"zoom\"===i?(gt.moveFn=G,gt.doneFn=Y,gt.minDrag=1,q(e,r,n)):\"pan\"===i?(gt.moveFn=Z,gt.doneFn=W,f(pt)):m(i)&&(gt.xaxes=et,gt.yaxes=rt,P(e,r,n,gt,i))}};L.init(gt);var yt,bt,xt,_t,wt,Mt,kt,At,Tt,St={},Et=[0,0,at,ot],Lt=null,Ct=R.REDRAWDELAY,It=e.mainplot?dt._plots[e.mainplot]:e;return U.length*V.length!=1&&(void 0!==vt.onwheel?vt.onwheel=X:void 0!==vt.onmousewheel&&(vt.onmousewheel=X)),vt}},{\"../../components/color\":604,\"../../components/dragelement\":625,\"../../components/drawing\":628,\"../../constants/alignment\":701,\"../../lib\":728,\"../../lib/setcursor\":746,\"../../lib/svg_text_utils\":750,\"../../plotly\":767,\"../../registry\":846,\"../plots\":831,\"./axes\":772,\"./axis_ids\":775,\"./constants\":777,\"./scale_zoom\":787,\"./select\":788,d3:122,tinycolor2:534}],781:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../../components/fx\"),a=t(\"../../components/dragelement\"),o=t(\"./constants\"),s=t(\"./dragbox\");e.exports=function(t){var e=t._fullLayout;if((e._has(\"cartesian\")||e._has(\"gl2d\"))&&!t._context.staticPlot){Object.keys(e._plots||{}).sort(function(t,r){if((e._plots[t].mainplot&&!0)===(e._plots[r].mainplot&&!0)){var n=t.split(\"y\"),i=r.split(\"y\");return n[0]===i[0]?Number(n[1]||1)-Number(i[1]||1):Number(n[0]||1)-Number(i[0]||1)}return e._plots[t].mainplot?1:-1}).forEach(function(r){var l=e._plots[r],u=l.xaxis,c=l.yaxis,h=(u._linepositions[r]||[])[3],f=(c._linepositions[r]||[])[3],d=o.DRAGGERSIZE;if(n(h)&&\"top\"===u.side&&(h-=d),n(f)&&\"right\"!==c.side&&(f-=d),!l.mainplot){var p=s(t,l,0,0,u._length,c._length,\"ns\",\"ew\");p.onmousemove=function(e){t._fullLayout._rehover=function(){t._fullLayout._hoversubplot===r&&i.hover(t,e,r)},i.hover(t,e,r),t._fullLayout._lasthover=p,t._fullLayout._hoversubplot=r},p.onmouseout=function(e){t._dragging||(t._fullLayout._hoversubplot=null,a.unhover(t,e))},p.onclick=function(e){i.click(t,e,r)},t._context.showAxisDragHandles&&(s(t,l,-d,-d,d,d,\"n\",\"w\"),s(t,l,u._length,-d,d,d,\"n\",\"e\"),s(t,l,-d,c._length,d,d,\"s\",\"w\"),s(t,l,u._length,c._length,d,d,\"s\",\"e\"))}t._context.showAxisDragHandles&&(n(h)&&(\"free\"===u.anchor&&(h-=e._size.h*(1-c.domain[1])),s(t,l,.1*u._length,h,.8*u._length,d,\"\",\"ew\"),s(t,l,0,h,.1*u._length,d,\"\",\"w\"),s(t,l,.9*u._length,h,.1*u._length,d,\"\",\"e\")),n(f)&&(\"free\"===c.anchor&&(f-=e._size.w*u.domain[0]),s(t,l,f,.1*c._length,d,.8*c._length,\"ns\",\"\"),s(t,l,f,.9*c._length,d,.1*c._length,\"s\",\"\"),s(t,l,f,0,d,.1*c._length,\"n\",\"\")))});var r=e._hoverlayer.node();r.onmousemove=function(r){r.target=e._lasthover,i.hover(t,r,e._hoversubplot)},r.onclick=function(r){r.target=e._lasthover,i.click(t,r)},r.onmousedown=function(t){e._lasthover.onmousedown(t)}}}},{\"../../components/dragelement\":625,\"../../components/fx\":645,\"./constants\":777,\"./dragbox\":780,\"fast-isnumeric\":131}],782:[function(t,e,r){\"use strict\";function n(t,e,r,n,i){var a=t._fullLayout,o=a._modules;e.plot&&e.plot.selectAll(\"g:not(.scatterlayer)\").selectAll(\"g.trace\").remove();for(var s=0;s<o.length;s++){var l=o[s];if(\"cartesian\"===l.basePlotModule.name){for(var u=[],c=0;c<r.length;c++){var h=r[c],f=h[0].trace;f._module===l&&!0===f.visible&&u.push(h)}l.plot(t,e,u,n,i)}}}function i(t){for(var e=t._fullLayout,r=Object.keys(e._plots),n=[],i=[],a=0;a<r.length;a++){var o=r[a],s=e._plots[o],l=s.xaxis,u=s.yaxis,c=l._mainAxis,h=u._mainAxis,f=c._id+h._id;f!==o&&-1!==r.indexOf(f)?(s.mainplot=f,s.mainplotinfo=e._plots[f],i.push(o)):n.push(o)}return n=n.concat(i)}function a(t){var e=t.plotgroup,r=t.id,n=f.layerValue2layerClass[t.xaxis.layer],i=f.layerValue2layerClass[t.yaxis.layer];if(t.mainplot){var a=t.mainplotinfo,o=a.plotgroup,l=r+\"-x\",u=r+\"-y\";t.gridlayer=s(a.overgrid,\"g\",r),t.zerolinelayer=s(a.overzero,\"g\",r),s(a.overlinesBelow,\"path\",l),s(a.overlinesBelow,\"path\",u),s(a.overaxesBelow,\"g\",l),s(a.overaxesBelow,\"g\",u),t.plot=s(a.overplot,\"g\",r),s(a.overlinesAbove,\"path\",l),s(a.overlinesAbove,\"path\",u),s(a.overaxesAbove,\"g\",l),s(a.overaxesAbove,\"g\",u),t.xlines=o.select(\".overlines-\"+n).select(\".\"+l),t.ylines=o.select(\".overlines-\"+i).select(\".\"+u),t.xaxislayer=o.select(\".overaxes-\"+n).select(\".\"+l),t.yaxislayer=o.select(\".overaxes-\"+i).select(\".\"+u)}else{var c=s(e,\"g\",\"layer-subplot\");t.shapelayer=s(c,\"g\",\"shapelayer\"),t.imagelayer=s(c,\"g\",\"imagelayer\"),t.gridlayer=s(e,\"g\",\"gridlayer\"),t.overgrid=s(e,\"g\",\"overgrid\"),t.zerolinelayer=s(e,\"g\",\"zerolinelayer\"),t.overzero=s(e,\"g\",\"overzero\"),s(e,\"path\",\"xlines-below\"),s(e,\"path\",\"ylines-below\"),t.overlinesBelow=s(e,\"g\",\"overlines-below\"),s(e,\"g\",\"xaxislayer-below\"),s(e,\"g\",\"yaxislayer-below\"),t.overaxesBelow=s(e,\"g\",\"overaxes-below\"),t.plot=s(e,\"g\",\"plot\"),t.overplot=s(e,\"g\",\"overplot\"),s(e,\"path\",\"xlines-above\"),s(e,\"path\",\"ylines-above\"),t.overlinesAbove=s(e,\"g\",\"overlines-above\"),s(e,\"g\",\"xaxislayer-above\"),s(e,\"g\",\"yaxislayer-above\"),t.overaxesAbove=s(e,\"g\",\"overaxes-above\"),t.xlines=e.select(\".xlines-\"+n),t.ylines=e.select(\".ylines-\"+i),t.xaxislayer=e.select(\".xaxislayer-\"+n),t.yaxislayer=e.select(\".yaxislayer-\"+i)}for(var h=0;h<f.traceLayerClasses.length;h++)s(t.plot,\"g\",f.traceLayerClasses[h]);t.xlines.style(\"fill\",\"none\").classed(\"crisp\",!0),t.ylines.style(\"fill\",\"none\").classed(\"crisp\",!0)}function o(t,e){if(t){var r={};t.each(function(t){var n=l.select(this),i=\"clip\"+e._uid+t+\"plot\";n.remove(),e._draggers.selectAll(\"g.\"+t).remove(),e._defs.select(\"#\"+i).remove(),r[t]=!0});for(var n=e._plots,i=Object.keys(n),a=0;a<i.length;a++)for(var o=n[i[a]],s=o.overlays||[],u=0;u<s.length;u++){var c=s[u];r[c.id]&&c.plot.selectAll(\".trace\").remove()}}}function s(t,e,r){var n=t.selectAll(\".\"+r).data([0]);return n.enter().append(e).classed(r,!0),n}var l=t(\"d3\"),u=t(\"../../lib\"),c=t(\"../plots\"),h=t(\"./axis_ids\"),f=t(\"./constants\");r.name=\"cartesian\",r.attr=[\"xaxis\",\"yaxis\"],r.idRoot=[\"x\",\"y\"],r.idRegex=f.idRegex,r.attrRegex=f.attrRegex,r.attributes=t(\"./attributes\"),r.layoutAttributes=t(\"./layout_attributes\"),r.transitionAxes=t(\"./transition_axes\"),r.plot=function(t,e,r,i){var a,o=t._fullLayout,s=c.getSubplotIds(o,\"cartesian\"),l=t.calcdata;if(!Array.isArray(e))for(e=[],a=0;a<l.length;a++)e.push(a);for(a=0;a<s.length;a++){for(var u,h=s[a],f=o._plots[h],d=[],p=0;p<l.length;p++){var m=l[p],v=m[0].trace;v.xaxis+v.yaxis===h&&((-1!==e.indexOf(v.index)||v.carpet)&&(u&&u[0].trace.xaxis+u[0].trace.yaxis===h&&-1!==[\"tonextx\",\"tonexty\",\"tonext\"].indexOf(v.fill)&&-1===d.indexOf(u)&&d.push(u),d.push(m)),u=m)}n(t,f,d,r,i)}},r.clean=function(t,e,r,n){var i,a,s,l=n._modules||[],u=e._modules||[];for(s=0;s<l.length;s++)if(\"scatter\"===l[s].name){i=!0;break}for(s=0;s<u.length;s++)if(\"scatter\"===u[s].name){a=!0;break}if(i&&!a){var c=n._plots,f=Object.keys(c||{});for(s=0;s<f.length;s++){var d=c[f[s]];d.plot&&d.plot.select(\"g.scatterlayer\").selectAll(\"g.trace\").remove()}n._infolayer.selectAll(\"g.rangeslider-container\").select(\"g.scatterlayer\").selectAll(\"g.trace\").remove()}var p=n._has&&n._has(\"cartesian\"),m=e._has&&e._has(\"cartesian\");if(p&&!m){var v=n._cartesianlayer.selectAll(\".subplot\"),g=h.listIds({_fullLayout:n});for(v.call(o,n),n._defs.selectAll(\".axesclip\").remove(),s=0;s<g.length;s++)n._infolayer.select(\".\"+g[s]+\"title\").remove()}},r.drawFramework=function(t){var e=t._fullLayout,r=i(t),n=e._cartesianlayer.selectAll(\".subplot\").data(r,u.identity);n.enter().append(\"g\").attr(\"class\",function(t){return\"subplot \"+t}),n.order(),n.exit().call(o,e),n.each(function(t){var r=e._plots[t];if(r.plotgroup=l.select(this),r.overlays=[],a(r),r.mainplot){e._plots[r.mainplot].overlays.push(r)}r.draglayer=s(e._draggers,\"g\",t)})},r.rangePlot=function(t,e,r){a(e),n(t,e,r),c.style(t)}},{\"../../lib\":728,\"../plots\":831,\"./attributes\":771,\"./axis_ids\":775,\"./constants\":777,\"./layout_attributes\":783,\"./transition_axes\":793,d3:122}],783:[function(t,e,r){\"use strict\";var n=t(\"../font_attributes\"),i=t(\"../../components/color/attributes\"),a=t(\"../../components/drawing/attributes\").dash,o=t(\"../../lib/extend\").extendFlat,s=t(\"./constants\");e.exports={visible:{valType:\"boolean\",editType:\"plot\"},color:{valType:\"color\",dflt:i.defaultLine,editType:\"ticks\"},title:{valType:\"string\",editType:\"ticks\"},titlefont:n({editType:\"ticks\"}),type:{valType:\"enumerated\",values:[\"-\",\"linear\",\"log\",\"date\",\"category\"],dflt:\"-\",editType:\"calc\"},autorange:{valType:\"enumerated\",values:[!0,!1,\"reversed\"],dflt:!0,editType:\"calc\",impliedEdits:{\"range[0]\":void 0,\"range[1]\":void 0}},rangemode:{valType:\"enumerated\",values:[\"normal\",\"tozero\",\"nonnegative\"],dflt:\"normal\",editType:\"calc\"},range:{valType:\"info_array\",items:[{valType:\"any\",editType:\"plot\",impliedEdits:{\"^autorange\":!1}},{valType:\"any\",editType:\"plot\",impliedEdits:{\"^autorange\":!1}}],editType:\"plot\",impliedEdits:{autorange:!1}},fixedrange:{valType:\"boolean\",dflt:!1,editType:\"calc\"},scaleanchor:{valType:\"enumerated\",values:[s.idRegex.x.toString(),s.idRegex.y.toString()],editType:\"calc\"},scaleratio:{valType:\"number\",min:0,dflt:1,editType:\"calc\"},constrain:{valType:\"enumerated\",values:[\"range\",\"domain\"],dflt:\"range\",editType:\"calc\"},constraintoward:{valType:\"enumerated\",values:[\"left\",\"center\",\"right\",\"top\",\"middle\",\"bottom\"],editType:\"calc\"},tickmode:{valType:\"enumerated\",values:[\"auto\",\"linear\",\"array\"],editType:\"ticks\",impliedEdits:{tick0:void 0,dtick:void 0}},nticks:{valType:\"integer\",min:0,dflt:0,editType:\"ticks\"},tick0:{valType:\"any\",editType:\"ticks\",impliedEdits:{tickmode:\"linear\"}},dtick:{valType:\"any\",editType:\"ticks\",impliedEdits:{tickmode:\"linear\"}},tickvals:{valType:\"data_array\",editType:\"ticks\"},ticktext:{valType:\"data_array\",editType:\"ticks\"},ticks:{valType:\"enumerated\",values:[\"outside\",\"inside\",\"\"],editType:\"ticks\"},mirror:{valType:\"enumerated\",values:[!0,\"ticks\",!1,\"all\",\"allticks\"],dflt:!1,editType:\"ticks+layoutstyle\"},ticklen:{valType:\"number\",min:0,dflt:5,editType:\"ticks\"},tickwidth:{valType:\"number\",min:0,dflt:1,editType:\"ticks\"},tickcolor:{valType:\"color\",dflt:i.defaultLine,editType:\"ticks\"},showticklabels:{valType:\"boolean\",dflt:!0,editType:\"ticks\"},showspikes:{valType:\"boolean\",dflt:!1,editType:\"modebar\"},spikecolor:{valType:\"color\",\n", "dflt:null,editType:\"none\"},spikethickness:{valType:\"number\",dflt:3,editType:\"none\"},spikedash:o({},a,{dflt:\"dash\",editType:\"none\"}),spikemode:{valType:\"flaglist\",flags:[\"toaxis\",\"across\",\"marker\"],dflt:\"toaxis\",editType:\"none\"},tickfont:n({editType:\"ticks\"}),tickangle:{valType:\"angle\",dflt:\"auto\",editType:\"ticks\"},tickprefix:{valType:\"string\",dflt:\"\",editType:\"ticks\"},showtickprefix:{valType:\"enumerated\",values:[\"all\",\"first\",\"last\",\"none\"],dflt:\"all\",editType:\"ticks\"},ticksuffix:{valType:\"string\",dflt:\"\",editType:\"ticks\"},showticksuffix:{valType:\"enumerated\",values:[\"all\",\"first\",\"last\",\"none\"],dflt:\"all\",editType:\"ticks\"},showexponent:{valType:\"enumerated\",values:[\"all\",\"first\",\"last\",\"none\"],dflt:\"all\",editType:\"ticks\"},exponentformat:{valType:\"enumerated\",values:[\"none\",\"e\",\"E\",\"power\",\"SI\",\"B\"],dflt:\"B\",editType:\"ticks\"},separatethousands:{valType:\"boolean\",dflt:!1,editType:\"ticks\"},tickformat:{valType:\"string\",dflt:\"\",editType:\"ticks\"},hoverformat:{valType:\"string\",dflt:\"\",editType:\"none\"},showline:{valType:\"boolean\",dflt:!1,editType:\"layoutstyle\"},linecolor:{valType:\"color\",dflt:i.defaultLine,editType:\"layoutstyle\"},linewidth:{valType:\"number\",min:0,dflt:1,editType:\"ticks+layoutstyle\"},showgrid:{valType:\"boolean\",editType:\"ticks\"},gridcolor:{valType:\"color\",dflt:i.lightLine,editType:\"ticks\"},gridwidth:{valType:\"number\",min:0,dflt:1,editType:\"ticks\"},zeroline:{valType:\"boolean\",editType:\"ticks\"},zerolinecolor:{valType:\"color\",dflt:i.defaultLine,editType:\"ticks\"},zerolinewidth:{valType:\"number\",dflt:1,editType:\"ticks\"},anchor:{valType:\"enumerated\",values:[\"free\",s.idRegex.x.toString(),s.idRegex.y.toString()],editType:\"plot\"},side:{valType:\"enumerated\",values:[\"top\",\"bottom\",\"left\",\"right\"],editType:\"plot\"},overlaying:{valType:\"enumerated\",values:[\"free\",s.idRegex.x.toString(),s.idRegex.y.toString()],editType:\"calc\"},layer:{valType:\"enumerated\",values:[\"above traces\",\"below traces\"],dflt:\"above traces\",editType:\"plot\"},domain:{valType:\"info_array\",items:[{valType:\"number\",min:0,max:1,editType:\"calc\"},{valType:\"number\",min:0,max:1,editType:\"calc\"}],dflt:[0,1],editType:\"calc\"},position:{valType:\"number\",min:0,max:1,dflt:0,editType:\"plot\"},categoryorder:{valType:\"enumerated\",values:[\"trace\",\"category ascending\",\"category descending\",\"array\"],dflt:\"trace\",editType:\"calc\"},categoryarray:{valType:\"data_array\",editType:\"calc\"},editType:\"calc\",_deprecated:{autotick:{valType:\"boolean\",editType:\"ticks\"}}}},{\"../../components/color/attributes\":603,\"../../components/drawing/attributes\":627,\"../../lib/extend\":717,\"../font_attributes\":796,\"./constants\":777}],784:[function(t,e,r){\"use strict\";var n=t(\"../../registry\"),i=t(\"../../lib\"),a=t(\"../../components/color\"),o=t(\"../layout_attributes\"),s=t(\"./constants\"),l=t(\"./layout_attributes\"),u=t(\"./type_defaults\"),c=t(\"./axis_defaults\"),h=t(\"./constraint_defaults\"),f=t(\"./position_defaults\"),d=t(\"./axis_ids\");e.exports=function(t,e,r){function p(t,e){return Number(t.substr(5)||1)-Number(e.substr(5)||1)}function m(t,e){return i.coerce(N,B,l,t,e)}function v(t){var e={x:P,y:D}[t];return i.simpleMap(e,d.name2id)}var g,y=Object.keys(t),b=[],x=[],_=[],w=[],M=[],k=[],A={},T={};for(g=0;g<r.length;g++){var S,E,L=r[g];if(n.traceIs(L,\"cartesian\"))S=b,E=x;else{if(!n.traceIs(L,\"gl2d\"))continue;S=_,E=w}var C=d.id2name(L.xaxis),I=d.id2name(L.yaxis);if(n.traceIs(L,\"carpet\")&&(\"carpet\"!==L.type||L._cheater)||C&&i.pushUnique(k,C),\"carpet\"===L.type&&L._cheater&&C&&i.pushUnique(M,C),C&&-1===S.indexOf(C)&&S.push(C),I&&-1===E.indexOf(I)&&E.push(I),n.traceIs(L,\"2dMap\")&&(A[C]=!0,A[I]=!0),n.traceIs(L,\"oriented\")){T[\"h\"===L.orientation?I:C]=!0}}if(!e._has(\"gl3d\")&&!e._has(\"geo\"))for(g=0;g<y.length;g++){var z=y[g];-1===_.indexOf(z)&&-1===b.indexOf(z)&&s.xAxisMatch.test(z)?b.push(z):-1===w.indexOf(z)&&-1===x.indexOf(z)&&s.yAxisMatch.test(z)&&x.push(z)}b.length&&x.length&&i.pushUnique(e._basePlotModules,n.subplotsRegistry.cartesian);var D=b.concat(_).sort(p),P=x.concat(w).sort(p),O=D.concat(P),R=a.background;D.length&&P.length&&(R=i.coerce(t,e,o,\"plot_bgcolor\"));var F,j,N,B,U=a.combine(R,e.paper_bgcolor),V={x:v(\"x\"),y:v(\"y\")};for(g=0;g<O.length;g++){F=O[g],i.isPlainObject(t[F])||(t[F]={}),N=t[F],B=e[F]={},u(N,B,m,r,F),j=F.charAt(0);var H=function(e,r){for(var n={x:D,y:P}[e],i=[],a=0;a<n.length;a++){var o=n[a];o===r||(t[o]||{}).overlaying||i.push(d.name2id(o))}return i}(j,F),q={letter:j,font:e.font,outerTicks:A[F],showGrid:!T[F],data:r,bgColor:U,calendar:e.calendar,cheateronly:\"x\"===j&&-1!==M.indexOf(F)&&-1===k.indexOf(F)};c(N,B,m,q,e);m(\"showspikes\")&&(m(\"spikecolor\"),m(\"spikethickness\"),m(\"spikedash\"),m(\"spikemode\"));var G={letter:j,counterAxes:V[j],overlayableAxes:H};f(N,B,m,G),B._input=N}var Y=n.getComponentMethod(\"rangeslider\",\"handleDefaults\"),W=n.getComponentMethod(\"rangeselector\",\"handleDefaults\");for(g=0;g<D.length;g++)F=D[g],N=t[F],B=e[F],Y(t,e,F),\"date\"===B.type&&W(N,B,e,P,B.calendar),m(\"fixedrange\");for(g=0;g<P.length;g++){F=P[g],N=t[F],B=e[F];var X=e[d.id2name(B.anchor)];m(\"fixedrange\",X&&X.rangeslider&&X.rangeslider.visible)}e._axisConstraintGroups=[];var Z=V.x.concat(V.y);for(g=0;g<O.length;g++)F=O[g],j=F.charAt(0),N=t[F],B=e[F],h(N,B,m,Z,e)}},{\"../../components/color\":604,\"../../lib\":728,\"../../registry\":846,\"../layout_attributes\":822,\"./axis_defaults\":774,\"./axis_ids\":775,\"./constants\":777,\"./constraint_defaults\":778,\"./layout_attributes\":783,\"./position_defaults\":786,\"./type_defaults\":794}],785:[function(t,e,r){\"use strict\";function n(t,e,r){var n,a,o,s,l,u=[],c=r.map(function(e){return e[t]}),h=i.bisector(e).left;for(n=0;n<c.length;n++)for(o=c[n],a=0;a<o.length;a++)null!==(s=o[a])&&void 0!==s&&((l=h(u,s))<u.length&&u[l]===s||u.splice(l,0,s));return u}var i=t(\"d3\");e.exports=function(t,e,r,a){switch(e){case\"array\":return Array.isArray(r)?r.slice():[];case\"category ascending\":return n(t,i.ascending,a);case\"category descending\":return n(t,i.descending,a);case\"trace\":default:return[]}}},{d3:122}],786:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../../lib\");e.exports=function(t,e,r,a){var o=a.counterAxes||[],s=a.overlayableAxes||[],l=a.letter;\"free\"===i.coerce(t,e,{anchor:{valType:\"enumerated\",values:[\"free\"].concat(o),dflt:n(t.position)?\"free\":o[0]||\"free\"}},\"anchor\")&&r(\"position\"),i.coerce(t,e,{side:{valType:\"enumerated\",values:\"x\"===l?[\"bottom\",\"top\"]:[\"left\",\"right\"],dflt:\"x\"===l?\"bottom\":\"left\"}},\"side\");var u=!1;if(s.length&&(u=i.coerce(t,e,{overlaying:{valType:\"enumerated\",values:[!1].concat(s),dflt:!1}},\"overlaying\")),!u){var c=r(\"domain\");c[0]>c[1]-.01&&(e.domain=[0,1]),i.noneOrAll(t.domain,e.domain,[0,1])}return r(\"layer\"),e}},{\"../../lib\":728,\"fast-isnumeric\":131}],787:[function(t,e,r){\"use strict\";var n=t(\"../../constants/alignment\").FROM_BL;e.exports=function(t,e,r){void 0===r&&(r=n[t.constraintoward||\"center\"]);var i=[t.r2l(t.range[0]),t.r2l(t.range[1])],a=i[0]+(i[1]-i[0])*r;t.range=t._input.range=[t.l2r(a+(i[0]-a)*e),t.l2r(a+(i[1]-a)*e)]}},{\"../../constants/alignment\":701}],788:[function(t,e,r){\"use strict\";function n(t){return t._id}function i(t,e){if(Array.isArray(t))for(var r=e.cd[0].trace,n=0;n<t.length;n++){var i=t[n];i.curveNumber=r.index,i.data=r._input,i.fullData=r,l(i,r,i.pointNumber)}return t}var a=t(\"../../lib/polygon\"),o=t(\"../../lib/throttle\"),s=t(\"../../components/color\"),l=t(\"../../components/fx/helpers\").appendArrayPointValue,u=t(\"./axes\"),c=t(\"./constants\"),h=a.filter,f=a.tester,d=c.MINSELECT;e.exports=function(t,e,r,a,l){function p(t){var e=\"y\"===t._id.charAt(0)?1:0;return function(r){return t.p2d(r[e])}}function m(t,e){return t-e}var v,g=a.gd._fullLayout._zoomlayer,y=a.element.getBoundingClientRect(),b=a.plotinfo,x=b.xaxis._offset,_=b.yaxis._offset,w=e-y.left,M=r-y.top,k=w,A=M,T=\"M\"+w+\",\"+M,S=a.xaxes[0]._length,E=a.yaxes[0]._length,L=a.xaxes.map(n),C=a.yaxes.map(n),I=a.xaxes.concat(a.yaxes);\"lasso\"===l&&(v=h([[w,M]],c.BENDPX));var z=g.selectAll(\"path.select-outline\").data([1,2]);z.enter().append(\"path\").attr(\"class\",function(t){return\"select-outline select-outline-\"+t}).attr(\"transform\",\"translate(\"+x+\", \"+_+\")\").attr(\"d\",T+\"Z\");var D,P,O,R,F,j=g.append(\"path\").attr(\"class\",\"zoombox-corners\").style({fill:s.background,stroke:s.defaultLine,\"stroke-width\":1}).attr(\"transform\",\"translate(\"+x+\", \"+_+\")\").attr(\"d\",\"M0,0Z\"),N=[],B=a.gd,U=B._fullLayout._uid+c.SELECTID,V=[];for(D=0;D<B.calcdata.length;D++)if(P=B.calcdata[D],O=P[0].trace,O._module&&O._module.selectPoints)if(a.subplot)O.subplot!==a.subplot&&O.geo!==a.subplot||N.push({selectPoints:O._module.selectPoints,cd:P,xaxis:a.xaxes[0],yaxis:a.yaxes[0]});else{if(-1===L.indexOf(O.xaxis))continue;if(-1===C.indexOf(O.yaxis))continue;N.push({selectPoints:O._module.selectPoints,cd:P,xaxis:u.getFromId(B,O.xaxis),yaxis:u.getFromId(B,O.yaxis)})}var H;H=b.fillRangeItems?b.fillRangeItems:\"select\"===l?function(t,e){var r=t.range={};for(D=0;D<I.length;D++){var n=I[D],i=n._id.charAt(0);r[n._id]=[n.p2d(e[i+\"min\"]),n.p2d(e[i+\"max\"])].sort(m)}}:function(t,e,r){var n=t.lassoPoints={};for(D=0;D<I.length;D++){var i=I[D];n[i._id]=r.filtered.map(p(i))}},a.moveFn=function(t,e){var r;k=Math.max(0,Math.min(S,t+w)),A=Math.max(0,Math.min(E,e+M));var n=Math.abs(k-w),s=Math.abs(A-M);\"select\"===l?(s<Math.min(.6*n,d)?(r=f([[w,0],[w,E],[k,E],[k,0]]),j.attr(\"d\",\"M\"+r.xmin+\",\"+(M-d)+\"h-4v\"+2*d+\"h4ZM\"+(r.xmax-1)+\",\"+(M-d)+\"h4v\"+2*d+\"h-4Z\")):n<Math.min(.6*s,d)?(r=f([[0,M],[0,A],[S,A],[S,M]]),j.attr(\"d\",\"M\"+(w-d)+\",\"+r.ymin+\"v-4h\"+2*d+\"v4ZM\"+(w-d)+\",\"+(r.ymax-1)+\"v4h\"+2*d+\"v-4Z\")):(r=f([[w,M],[w,A],[k,A],[k,M]]),j.attr(\"d\",\"M0,0Z\")),z.attr(\"d\",\"M\"+r.xmin+\",\"+r.ymin+\"H\"+(r.xmax-1)+\"V\"+(r.ymax-1)+\"H\"+r.xmin+\"Z\")):\"lasso\"===l&&(v.addPt([k,A]),r=f(v.filtered),z.attr(\"d\",\"M\"+v.filtered.join(\"L\")+\"Z\")),o.throttle(U,c.SELECTDELAY,function(){for(V=[],D=0;D<N.length;D++){R=N[D];var t=i(R.selectPoints(R,r),R);if(V.length)for(var e=0;e<t.length;e++)V.push(t[e]);else V=t}F={points:V},H(F,r,v),a.gd.emit(\"plotly_selecting\",F)})},a.doneFn=function(t,e){j.remove(),o.done(U).then(function(){if(o.clear(U),t||2!==e)a.gd.emit(\"plotly_selected\",F);else{for(z.remove(),D=0;D<N.length;D++)R=N[D],R.selectPoints(R,!1);B.emit(\"plotly_deselect\",null)}})}}},{\"../../components/color\":604,\"../../components/fx/helpers\":642,\"../../lib/polygon\":739,\"../../lib/throttle\":751,\"./axes\":772,\"./constants\":777}],789:[function(t,e,r){\"use strict\";function n(t){return Math.pow(10,t)}var i=t(\"d3\"),a=t(\"fast-isnumeric\"),o=t(\"../../lib\"),s=o.cleanNumber,l=o.ms2DateTime,u=o.dateTime2ms,c=o.ensureNumber,h=t(\"../../constants/numerical\"),f=h.FP_SAFE,d=h.BADNUM,p=t(\"./constants\"),m=t(\"./axis_ids\");e.exports=function(t,e){function r(e,r){if(e>0)return Math.log(e)/Math.LN10;if(e<=0&&r&&t.range&&2===t.range.length){var n=t.range[0],i=t.range[1];return.5*(n+i-3*M*Math.abs(n-i))}return d}function h(e,r,n){var i=u(e,n||t.calendar);if(i===d){if(!a(e))return d;i=u(new Date(+e))}return i}function v(e,r,n){return l(e,r,n||t.calendar)}function g(e){return t._categories[Math.round(e)]}function y(e){if(null!==e&&void 0!==e){if(void 0===t._categoriesMap&&(t._categoriesMap={}),void 0!==t._categoriesMap[e])return t._categoriesMap[e];t._categories.push(e);var r=t._categories.length-1;return t._categoriesMap[e]=r,r}return d}function b(e){if(t._categoriesMap){var r=t._categoriesMap[e];if(void 0!==r)return r}if(a(e))return+e}function x(e){return a(e)?i.round(t._b+t._m*e,2):d}function _(e){return(e-t._b)/t._m}e=e||{};var w=(t._id||\"x\").charAt(0),M=10;t.c2l=\"log\"===t.type?r:c,t.l2c=\"log\"===t.type?n:c,t.l2p=x,t.p2l=_,t.c2p=\"log\"===t.type?function(t,e){return x(r(t,e))}:x,t.p2c=\"log\"===t.type?function(t){return n(_(t))}:_,-1!==[\"linear\",\"-\"].indexOf(t.type)?(t.d2r=t.r2d=t.d2c=t.r2c=t.d2l=t.r2l=s,t.c2d=t.c2r=t.l2d=t.l2r=c,t.d2p=t.r2p=function(e){return t.l2p(s(e))},t.p2d=t.p2r=_,t.cleanPos=c):\"log\"===t.type?(t.d2r=t.d2l=function(t,e){return r(s(t),e)},t.r2d=t.r2c=function(t){return n(s(t))},t.d2c=t.r2l=s,t.c2d=t.l2r=c,t.c2r=r,t.l2d=n,t.d2p=function(e,r){return t.l2p(t.d2r(e,r))},t.p2d=function(t){return n(_(t))},t.r2p=function(e){return t.l2p(s(e))},t.p2r=_,t.cleanPos=c):\"date\"===t.type?(t.d2r=t.r2d=o.identity,t.d2c=t.r2c=t.d2l=t.r2l=h,t.c2d=t.c2r=t.l2d=t.l2r=v,t.d2p=t.r2p=function(e,r,n){return t.l2p(h(e,0,n))},t.p2d=t.p2r=function(t,e,r){return v(_(t),e,r)},t.cleanPos=function(e){return o.cleanDate(e,d,t.calendar)}):\"category\"===t.type&&(t.d2c=t.d2l=y,t.r2d=t.c2d=t.l2d=g,t.d2r=t.d2l_noadd=b,t.r2c=function(e){var r=b(e);return void 0!==r?r:t.fraction2r(.5)},t.l2r=t.c2r=c,t.r2l=b,t.d2p=function(e){return t.l2p(t.r2c(e))},t.p2d=function(t){return g(_(t))},t.r2p=t.d2p,t.p2r=_,t.cleanPos=function(t){return\"string\"==typeof t&&\"\"!==t?t:c(t)}),t.fraction2r=function(e){var r=t.r2l(t.range[0]),n=t.r2l(t.range[1]);return t.l2r(r+e*(n-r))},t.r2fraction=function(e){var r=t.r2l(t.range[0]),n=t.r2l(t.range[1]);return(t.r2l(e)-r)/(n-r)},t.cleanRange=function(e){e||(e=\"range\");var r,n,i=o.nestedProperty(t,e).get();if(n=\"date\"===t.type?o.dfltRange(t.calendar):\"y\"===w?p.DFLTRANGEY:p.DFLTRANGEX,n=n.slice(),!i||2!==i.length)return void o.nestedProperty(t,e).set(n);for(\"date\"===t.type&&(i[0]=o.cleanDate(i[0],d,t.calendar),i[1]=o.cleanDate(i[1],d,t.calendar)),r=0;r<2;r++)if(\"date\"===t.type){if(!o.isDateTime(i[r],t.calendar)){t[e]=n;break}if(t.r2l(i[0])===t.r2l(i[1])){var s=o.constrain(t.r2l(i[0]),o.MIN_MS+1e3,o.MAX_MS-1e3);i[0]=t.l2r(s-1e3),i[1]=t.l2r(s+1e3);break}}else{if(!a(i[r])){if(!a(i[1-r])){t[e]=n;break}i[r]=i[1-r]*(r?10:.1)}if(i[r]<-f?i[r]=-f:i[r]>f&&(i[r]=f),i[0]===i[1]){var l=Math.max(1,Math.abs(1e-6*i[0]));i[0]-=l,i[1]+=l}}},t.setScale=function(r){var n=e._size;if(t._categories||(t._categories=[]),t._categoriesMap||(t._categoriesMap={}),t.overlaying){var i=m.getFromId({_fullLayout:e},t.overlaying);t.domain=i.domain}var a=r&&t._r?\"_r\":\"range\",s=t.calendar;t.cleanRange(a);var l=t.r2l(t[a][0],s),u=t.r2l(t[a][1],s);if(\"y\"===w?(t._offset=n.t+(1-t.domain[1])*n.h,t._length=n.h*(t.domain[1]-t.domain[0]),t._m=t._length/(l-u),t._b=-t._m*u):(t._offset=n.l+t.domain[0]*n.w,t._length=n.w*(t.domain[1]-t.domain[0]),t._m=t._length/(u-l),t._b=-t._m*l),!isFinite(t._m)||!isFinite(t._b))throw o.notifier(\"Something went wrong with axis scaling\",\"long\"),e._replotting=!1,new Error(\"axis scaling\")},t.makeCalcdata=function(e,r){var n,i,a,o=\"date\"===t.type&&e[r+\"calendar\"];if(r in e)for(n=e[r],i=new Array(n.length),a=0;a<n.length;a++)i[a]=t.d2c(n[a],0,o);else{var s=r+\"0\"in e?t.d2c(e[r+\"0\"],0,o):0,l=e[\"d\"+r]?Number(e[\"d\"+r]):1;for(n=e[{x:\"y\",y:\"x\"}[r]],i=new Array(n.length),a=0;a<n.length;a++)i[a]=s+a*l}return i},t.isValidRange=function(e){return Array.isArray(e)&&2===e.length&&a(t.r2l(e[0]))&&a(t.r2l(e[1]))},t.isPtWithinRange=\"x\"===w?function(e){var r=e.x;return r>=t.range[0]&&r<=t.range[1]}:function(e){var r=e.y;return r>=t.range[0]&&r<=t.range[1]},t._min=[],t._max=[],t._separators=e.separators,delete t._minDtick,delete t._forceTick0}},{\"../../constants/numerical\":707,\"../../lib\":728,\"./axis_ids\":775,\"./constants\":777,d3:122,\"fast-isnumeric\":131}],790:[function(t,e,r){\"use strict\";function n(t){var e=[\"showexponent\",\"showtickprefix\",\"showticksuffix\"],r=e.filter(function(e){return void 0!==t[e]}),n=function(e){return t[e]===t[r[0]]};if(r.every(n)||1===r.length)return t[r[0]]}var i=t(\"../../lib\");e.exports=function(t,e,r,a,o){var s=n(t);if(r(\"tickprefix\")&&r(\"showtickprefix\",s),r(\"ticksuffix\")&&r(\"showticksuffix\",s),r(\"showticklabels\")){var l=o.font||{},u=e.color===t.color?e.color:l.color;i.coerceFont(r,\"tickfont\",{family:l.family,size:l.size,color:u}),r(\"tickangle\"),\"category\"!==a&&(r(\"tickformat\")||\"date\"===a||(r(\"showexponent\",s),r(\"exponentformat\"),r(\"separatethousands\")))}\"category\"===a||o.noHover||r(\"hoverformat\")}},{\"../../lib\":728}],791:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"./layout_attributes\");e.exports=function(t,e,r,a){var o=n.coerce2(t,e,i,\"ticklen\"),s=n.coerce2(t,e,i,\"tickwidth\"),l=n.coerce2(t,e,i,\"tickcolor\",e.color);r(\"ticks\",a.outerTicks||o||s||l?\"outside\":\"\")||(delete e.ticklen,delete e.tickwidth,delete e.tickcolor)}},{\"../../lib\":728,\"./layout_attributes\":783}],792:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../../lib\"),a=t(\"../../constants/numerical\").ONEDAY;e.exports=function(t,e,r,o){var s=\"auto\";\"array\"!==t.tickmode||\"log\"!==o&&\"date\"!==o||(t.tickmode=\"auto\"),Array.isArray(t.tickvals)?s=\"array\":t.dtick&&(s=\"linear\");var l=r(\"tickmode\",s);if(\"auto\"===l)r(\"nticks\");else if(\"linear\"===l){var u=\"date\"===o?a:1,c=r(\"dtick\",u);if(n(c))e.dtick=c>0?Number(c):u;else if(\"string\"!=typeof c)e.dtick=u;else{var h=c.charAt(0),f=c.substr(1);f=n(f)?Number(f):0,(f<=0||!(\"date\"===o&&\"M\"===h&&f===Math.round(f)||\"log\"===o&&\"L\"===h||\"log\"===o&&\"D\"===h&&(1===f||2===f)))&&(e.dtick=u)}var d=\"date\"===o?i.dateTick0(e.calendar):0,p=r(\"tick0\",d);\"date\"===o?e.tick0=i.cleanDate(p,d):n(p)&&\"D1\"!==c&&\"D2\"!==c?e.tick0=Number(p):e.tick0=d}else{var m=r(\"tickvals\");void 0===m?e.tickmode=\"auto\":r(\"ticktext\")}}},{\"../../constants/numerical\":707,\"../../lib\":728,\"fast-isnumeric\":131}],793:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../../plotly\"),a=t(\"../../registry\"),o=t(\"../../components/drawing\"),s=t(\"./axes\"),l=t(\"./constants\").attrRegex;e.exports=function(t,e,r,u){function c(e,r){function n(e,r,n){for(i=0;i<e.length;i++){var a=e[i];if(-1===o.indexOf(a.xref)&&-1===o.indexOf(a.yref)||r(t,i),n)return}}var i,o=[];for(o=[e._id,r._id],i=0;i<o.length;i++)s.doTicks(t,o[i],!0);n(v.annotations||[],a.getComponentMethod(\"annotations\",\"drawOne\")),n(v.shapes||[],a.getComponentMethod(\"shapes\",\"drawOne\")),n(v.images||[],a.getComponentMethod(\"images\",\"draw\"),!0)}function h(t){var e=t.xaxis,r=t.yaxis;v._defs.select(\"#\"+t.clipId+\"> rect\").call(o.setTranslate,0,0).call(o.setScale,1,1),t.plot.call(o.setTranslate,e._offset,r._offset).call(o.setScale,1,1);var n=t.plot.select(\".scatterlayer\").selectAll(\".points\");n.selectAll(\".point\").call(o.setPointGroupScale,1,1).call(o.hideOutsideRangePoints,t),n.selectAll(\".textpoint\").call(o.setTextPointsScale,1,1).call(o.hideOutsideRangePoints,t)}function f(e,r){var n,i,a,s=y[e.xaxis._id],l=y[e.yaxis._id],u=[];if(s){n=t._fullLayout[s.axisName],i=n._r,a=s.to,u[0]=(i[0]*(1-r)+r*a[0]-i[0])/(i[1]-i[0])*e.xaxis._length;var h=i[1]-i[0],f=a[1]-a[0];n.range[0]=i[0]*(1-r)+r*a[0],n.range[1]=i[1]*(1-r)+r*a[1],u[2]=e.xaxis._length*(1-r+r*f/h)}else u[0]=0,u[2]=e.xaxis._length;if(l){n=t._fullLayout[l.axisName],i=n._r,a=l.to,u[1]=(i[1]*(1-r)+r*a[1]-i[1])/(i[0]-i[1])*e.yaxis._length;var d=i[1]-i[0],p=a[1]-a[0];n.range[0]=i[0]*(1-r)+r*a[0],n.range[1]=i[1]*(1-r)+r*a[1],u[3]=e.yaxis._length*(1-r+r*p/d)}else u[1]=0,u[3]=e.yaxis._length;c(e.xaxis,e.yaxis);var m=e.xaxis,g=e.yaxis,b=!!s,x=!!l,_=b?m._length/u[2]:1,w=x?g._length/u[3]:1,M=b?u[0]:0,k=x?u[1]:0,A=b?u[0]/u[2]*m._length:0,T=x?u[1]/u[3]*g._length:0,S=m._offset-A,E=g._offset-T;v._defs.select(\"#\"+e.clipId+\"> rect\").call(o.setTranslate,M,k).call(o.setScale,1/_,1/w),e.plot.call(o.setTranslate,S,E).call(o.setScale,_,w).selectAll(\".points\").selectAll(\".point\").call(o.setPointGroupScale,1/_,1/w),e.plot.selectAll(\".points\").selectAll(\".textpoint\").call(o.setTextPointsScale,1/_,1/w)}function d(){for(var e={},r=0;r<b.length;r++){var n=t._fullLayout[y[b[r]].axisName],a=y[b[r]].to;e[n._name+\".range[0]\"]=a[0],e[n._name+\".range[1]\"]=a[1],n.range=a.slice()}return _&&_(),i.relayout(t,e).then(function(){for(var t=0;t<x.length;t++)h(x[t])})}function p(){for(var e={},r=0;r<b.length;r++){var n=t._fullLayout[b[r]+\"axis\"];e[n._name+\".range[0]\"]=n.range[0],e[n._name+\".range[1]\"]=n.range[1],n.range=n._r.slice()}return i.relayout(t,e).then(function(){for(var t=0;t<x.length;t++)h(x[t])})}function m(){M=Date.now();for(var t=Math.min(1,(M-w)/r.duration),e=A(t),n=0;n<x.length;n++)f(x[n],e);M-w>r.duration?(d(),k=window.cancelAnimationFrame(m)):k=window.requestAnimationFrame(m)}var v=t._fullLayout,g=[],y=function(t){var e,r,n,i,a={};for(e in t)if(r=e.split(\".\"),r[0].match(l)){var o=e.charAt(0),s=r[0];if(n=v[s],i={},Array.isArray(t[e])?i.to=t[e].slice(0):Array.isArray(t[e].range)&&(i.to=t[e].range.slice(0)),!i.to)continue;i.axisName=s,i.length=n._length,g.push(o),a[o]=i}return a}(e),b=Object.keys(y),x=function(t,e,r){var n,i,a,o=t._plots,s=[];for(n in o){var l=o[n];if(-1===s.indexOf(l)){var u=l.xaxis._id,c=l.yaxis._id,h=l.xaxis.range,f=l.yaxis.range;l.xaxis._r=l.xaxis.range.slice(),l.yaxis._r=l.yaxis.range.slice(),i=r[u]?r[u].to:h,a=r[c]?r[c].to:f,h[0]===i[0]&&h[1]===i[1]&&f[0]===a[0]&&f[1]===a[1]||-1===e.indexOf(u)&&-1===e.indexOf(c)||s.push(l)}}return s}(v,b,y);if(!x.length)return function(){function e(e,r,n){for(var i=0;i<e.length;i++)if(r(t,i),n)return}e(v.annotations||[],a.getComponentMethod(\"annotations\",\"drawOne\")),e(v.shapes||[],a.getComponentMethod(\"shapes\",\"drawOne\")),e(v.images||[],a.getComponentMethod(\"images\",\"draw\"),!0)}(),!1;var _;u&&(_=u());var w,M,k,A=n.ease(r.easing);return t._transitionData._interruptCallbacks.push(function(){return window.cancelAnimationFrame(k),k=null,p()}),w=Date.now(),k=window.requestAnimationFrame(m),Promise.resolve()}},{\"../../components/drawing\":628,\"../../plotly\":767,\"../../registry\":846,\"./axes\":772,\"./constants\":777,d3:122}],794:[function(t,e,r){\"use strict\";function n(t,e){if(\"-\"===t.type){var r=t._id,n=r.charAt(0);-1!==r.indexOf(\"scene\")&&(r=n);var u=i(e,r,n);if(u){if(\"histogram\"===u.type&&n==={v:\"y\",h:\"x\"}[u.orientation||\"v\"])return void(t.type=\"linear\");var c=n+\"calendar\",h=u[c];if(o(u,n)){for(var f,d=a(u),p=[],m=0;m<e.length;m++)f=e[m],s.traceIs(f,\"box\")&&(f[n+\"axis\"]||n)===r&&(void 0!==f[d]?p.push(f[d][0]):void 0!==f.name?p.push(f.name):p.push(\"text\"),f[c]!==h&&(h=void 0));t.type=l(p,h)}else t.type=l(u[n]||[u[n+\"0\"]],h)}}}function i(t,e,r){for(var n=0;n<t.length;n++){var i=t[n];if((i[r+\"axis\"]||r)===e){if(o(i,r))return i;if((i[r]||[]).length||i[r+\"0\"])return i}}}function a(t){return{v:\"x\",h:\"y\"}[t.orientation||\"v\"]}function o(t,e){var r=a(t),n=s.traceIs(t,\"box\"),i=s.traceIs(t._fullInput||{},\"candlestick\");return n&&!i&&e===r&&void 0===t[r]&&void 0===t[r+\"0\"]}var s=t(\"../../registry\"),l=t(\"./axis_autotype\"),u=t(\"./axis_ids\").name2id;e.exports=function(t,e,r,i,a){a&&(e._name=a,e._id=u(a)),\"-\"===r(\"type\")&&(n(e,i),\"-\"===e.type?e.type=\"linear\":t.type=e.type)}},{\"../../registry\":846,\"./axis_autotype\":773,\"./axis_ids\":775}],795:[function(t,e,r){\"use strict\";function n(t,e,r){var n,i,a,o=!1;if(\"data\"===e.type)n=t._fullData[null!==e.traces?e.traces[0]:0];else{if(\"layout\"!==e.type)return!1;n=t._fullLayout}return i=u.nestedProperty(n,e.prop).get(),a=r[e.type]=r[e.type]||{},a.hasOwnProperty(e.prop)&&a[e.prop]!==i&&(o=!0),a[e.prop]=i,{changed:o,value:i}}function i(t,e){return Array.isArray(e[0])&&1===e[0].length&&-1!==[\"string\",\"number\"].indexOf(typeof e[0][0])?[{type:\"layout\",prop:\"_currentFrame\",value:e[0][0].toString()}]:[]}function a(t,e){var r=[],n=e[0],i={};if(\"string\"==typeof n)i[n]=e[1];else{if(!u.isPlainObject(n))return r;i=n}return s(i,function(t,e,n){r.push({type:\"layout\",prop:t,value:n})},\"\",0),r}function o(t,e){var r,n,i,a,o=[];if(n=e[0],i=e[1],r=e[2],a={},\"string\"==typeof n)a[n]=i;else{if(!u.isPlainObject(n))return o;a=n,void 0===r&&(r=i)}return void 0===r&&(r=null),s(a,function(e,n,i){var a;if(Array.isArray(i)){var s=Math.min(i.length,t.data.length);r&&(s=Math.min(s,r.length)),a=[];for(var l=0;l<s;l++)a[l]=r?r[l]:l}else a=r?r.slice(0):null;if(null===a)Array.isArray(i)&&(i=i[0]);else if(Array.isArray(a)){if(!Array.isArray(i)){var u=i;i=[];for(var c=0;c<a.length;c++)i[c]=u}i.length=Math.min(a.length,i.length)}o.push({type:\"data\",prop:e,traces:a,value:i})},\"\",0),o}function s(t,e,r,n){Object.keys(t).forEach(function(i){var a=t[i];if(\"_\"!==i[0]){var o=r+(n>0?\".\":\"\")+i;u.isPlainObject(a)?s(a,e,o,n+1):e(o,i,a)}})}var l=t(\"../plotly\"),u=t(\"../lib\");r.manageCommandObserver=function(t,e,i,a){var o={},s=!0;e&&e._commandObserver&&(o=e._commandObserver),o.cache||(o.cache={}),o.lookupTable={};var l=r.hasSimpleAPICommandBindings(t,i,o.lookupTable);if(e&&e._commandObserver){if(l)return o;if(e._commandObserver.remove)return e._commandObserver.remove(),e._commandObserver=null,o}if(l){n(t,l,o.cache),o.check=function(){if(s){var e=n(t,l,o.cache);return e.changed&&a&&void 0!==o.lookupTable[e.value]&&(o.disable(),Promise.resolve(a({value:e.value,type:l.type,prop:l.prop,traces:l.traces,index:o.lookupTable[e.value]})).then(o.enable,o.enable)),e.changed}};for(var c=[\"plotly_relayout\",\"plotly_redraw\",\"plotly_restyle\",\"plotly_update\",\"plotly_animatingframe\",\"plotly_afterplot\"],h=0;h<c.length;h++)t._internalOn(c[h],o.check);o.remove=function(){for(var e=0;e<c.length;e++)t._removeInternalListener(c[e],o.check)}}else u.warn(\"Unable to automatically bind plot updates to API command\"),o.lookupTable={},o.remove=function(){};return o.disable=function(){s=!1},o.enable=function(){s=!0},e&&(e._commandObserver=o),o},r.hasSimpleAPICommandBindings=function(t,e,n){var i,a,o=e.length;for(i=0;i<o;i++){var s,l=e[i],u=l.method,c=l.args;if(Array.isArray(c)||(c=[]),!u)return!1;var h=r.computeAPICommandBindings(t,u,c);if(1!==h.length)return!1;if(a){if(s=h[0],s.type!==a.type)return!1;if(s.prop!==a.prop)return!1;if(Array.isArray(a.traces)){if(!Array.isArray(s.traces))return!1;s.traces.sort();for(var f=0;f<a.traces.length;f++)if(a.traces[f]!==s.traces[f])return!1}else if(s.prop!==a.prop)return!1}else a=h[0],Array.isArray(a.traces)&&a.traces.sort();s=h[0];var d=s.value;if(Array.isArray(d)){if(1!==d.length)return!1;d=d[0]}n&&(n[d]=i)}return a},r.executeAPICommand=function(t,e,r){if(\"skip\"===e)return Promise.resolve();var n=l[e],i=[t];Array.isArray(r)||(r=[]);for(var a=0;a<r.length;a++)i.push(r[a]);return n.apply(null,i).catch(function(t){return u.warn(\"API call to Plotly.\"+e+\" rejected.\",t),Promise.reject(t)})},r.computeAPICommandBindings=function(t,e,r){var n;switch(Array.isArray(r)||(r=[]),e){case\"restyle\":n=o(t,r);break;case\"relayout\":n=a(t,r);break;case\"update\":n=o(t,[r[0],r[2]]).concat(a(t,[r[1]]));break;case\"animate\":n=i(t,r);break;default:n=[]}return n}},{\"../lib\":728,\"../plotly\":767}],796:[function(t,e,r){\"use strict\";e.exports=function(t){var e=t.editType,r=t.colorEditType;void 0===r&&(r=e);var n={family:{valType:\"string\",noBlank:!0,strict:!0,editType:e},size:{valType:\"number\",min:1,editType:e},color:{valType:\"color\",editType:r},editType:e};return t.arrayOk&&(n.family.arrayOk=!0,n.size.arrayOk=!0,n.color.arrayOk=!0),n}},{}],797:[function(t,e,r){\"use strict\";e.exports={_isLinkedToArray:\"frames_entry\",group:{valType:\"string\"},name:{valType:\"string\"},traces:{valType:\"any\"},baseframe:{valType:\"string\"},data:{valType:\"any\"},layout:{valType:\"any\"}}},{}],798:[function(t,e,r){\"use strict\";r.projNames={equirectangular:\"equirectangular\",mercator:\"mercator\",orthographic:\"orthographic\",\"natural earth\":\"naturalEarth\",kavrayskiy7:\"kavrayskiy7\",miller:\"miller\",robinson:\"robinson\",eckert4:\"eckert4\",\"azimuthal equal area\":\"azimuthalEqualArea\",\"azimuthal equidistant\":\"azimuthalEquidistant\",\"conic equal area\":\"conicEqualArea\",\"conic conformal\":\"conicConformal\",\"conic equidistant\":\"conicEquidistant\",gnomonic:\"gnomonic\",stereographic:\"stereographic\",mollweide:\"mollweide\",hammer:\"hammer\",\"transverse mercator\":\"transverseMercator\",\"albers usa\":\"albersUsa\",\"winkel tripel\":\"winkel3\",aitoff:\"aitoff\",sinusoidal:\"sinusoidal\"},r.axesNames=[\"lonaxis\",\"lataxis\"],r.lonaxisSpan={orthographic:180,\"azimuthal equal area\":360,\"azimuthal equidistant\":360,\"conic conformal\":180,gnomonic:160,stereographic:180,\"transverse mercator\":180,\"*\":360},r.lataxisSpan={\"conic conformal\":150,stereographic:179.5,\"*\":180},r.scopeDefaults={world:{lonaxisRange:[-180,180],lataxisRange:[-90,90],projType:\"equirectangular\",projRotate:[0,0,0]},usa:{lonaxisRange:[-180,-50],lataxisRange:[15,80],projType:\"albers usa\"},europe:{lonaxisRange:[-30,60],lataxisRange:[30,85],projType:\"conic conformal\",projRotate:[15,0,0],projParallels:[0,60]},asia:{lonaxisRange:[22,160],lataxisRange:[-15,55],projType:\"mercator\",projRotate:[0,0,0]},africa:{lonaxisRange:[-30,60],lataxisRange:[-40,40],projType:\"mercator\",projRotate:[0,0,0]},\"north america\":{lonaxisRange:[-180,-45],lataxisRange:[5,85],projType:\"conic conformal\",projRotate:[-100,0,0],projParallels:[29.5,45.5]},\"south america\":{lonaxisRange:[-100,-30],lataxisRange:[-60,15],projType:\"mercator\",projRotate:[0,0,0]}},r.clipPad=.001,r.precision=.1,r.landColor=\"#F0DC82\",r.waterColor=\"#3399FF\",r.locationmodeToLayer={\"ISO-3\":\"countries\",\"USA-states\":\"subunits\",\"country names\":\"countries\"},r.sphereSVG={type:\"Sphere\"},r.fillLayers={ocean:1,land:1,lakes:1},r.lineLayers={subunits:1,countries:1,coastlines:1,rivers:1,frame:1},r.layers=[\"bg\",\"ocean\",\"land\",\"lakes\",\"subunits\",\"countries\",\"coastlines\",\"rivers\",\"lataxis\",\"lonaxis\",\"frame\",\"backplot\",\"frontplot\"],r.layersForChoropleth=[\"bg\",\"ocean\",\"land\",\"subunits\",\"countries\",\"coastlines\",\"lataxis\",\"lonaxis\",\"frame\",\"backplot\",\"rivers\",\"lakes\",\"frontplot\"],r.layerNameToAdjective={ocean:\"ocean\",land:\"land\",lakes:\"lake\",subunits:\"subunit\",countries:\"country\",coastlines:\"coastline\",rivers:\"river\",frame:\"frame\"}},{}],799:[function(t,e,r){\"use strict\";function n(t){this.id=t.id,this.graphDiv=t.graphDiv,this.container=t.container,this.topojsonURL=t.topojsonURL,this.isStatic=t.staticPlot,this.topojsonName=null,this.topojson=null,this.projection=null,this.viewInitial=null,this.fitScale=null,this.bounds=null,this.midPt=null,this.hasChoropleth=!1,this.traceHash={},this.layers={},this.basePaths={},this.dataPaths={},this.dataPoints={},this.clipDef=null,this.clipRect=null,this.bgRect=null,this.makeFramework()}function i(t){for(var e=t.projection,r=e.type,n=s.geo[y.projNames[r]](),i=t._isClipped?y.lonaxisSpan[r]/2:null,a=[\"center\",\"rotate\",\"parallels\",\"clipExtent\"],o=function(t){return t?n:[]},l=0;l<a.length;l++){var u=a[l];\"function\"!=typeof n[u]&&(n[u]=o)}return n.isLonLatOverEdges=function(t){if(null===n(t))return!0;if(i){var e=n.rotate();return s.geo.distance(t,[-e[0],-e[1]])>i*Math.PI/180}return!1},n.getPath=function(){return s.geo.path().projection(n)},n.getBounds=function(t){return n.getPath().bounds(t)},n.fitExtent=function(t,e){var r=t[1][0]-t[0][0],i=t[1][1]-t[0][1],a=n.clipExtent&&n.clipExtent();n.scale(150).translate([0,0]),a&&n.clipExtent(null);var o=n.getBounds(e),s=Math.min(r/(o[1][0]-o[0][0]),i/(o[1][1]-o[0][1])),l=+t[0][0]+(r-s*(o[1][0]+o[0][0]))/2,u=+t[0][1]+(i-s*(o[1][1]+o[0][1]))/2;return a&&n.clipExtent(a),n.scale(150*s).translate([l,u])},n.precision(y.precision),i&&n.clipAngle(i-y.clipPad),n}function a(t,e){var r=e[t],n=r.dtick,i=y.scopeDefaults[e.scope],a=i.lonaxisRange,o=i.lataxisRange,l=\"lonaxis\"===t?[n]:[0,n];return s.geo.graticule().extent([[a[0],o[0]],[a[1],o[1]]]).step(l)}function o(t,e){var r=y.clipPad,n=t[0]+r,i=t[1]-r,a=e[0]+r,o=e[1]-r;n>0&&i<0&&(i+=360);var s=(i-n)/4;return{type:\"Polygon\",coordinates:[[[n,a],[n,o],[n+s,o],[n+2*s,o],[n+3*s,o],[i,o],[i,a],[i-s,a],[i-2*s,a],[i-3*s,a],[n,a]]]}}var s=t(\"d3\"),l=t(\"../../plotly\"),u=t(\"../../lib\"),c=t(\"../../components/color\"),h=t(\"../../components/drawing\"),f=t(\"../../components/fx\"),d=t(\"../plots\"),p=t(\"../cartesian/axes\"),m=t(\"../../components/dragelement\"),v=t(\"../cartesian/select\"),g=t(\"./zoom\"),y=t(\"./constants\"),b=t(\"../../lib/topojson_utils\"),x=t(\"topojson-client\").feature;t(\"./projections\")(s);var _=n.prototype;e.exports=function(t){return new n(t)},_.plot=function(t,e,r){var n=this,i=e[this.id],a=b.getTopojsonName(i);null===n.topojson||a!==n.topojsonName?(n.topojsonName=a,void 0===PlotlyGeoAssets.topojson[n.topojsonName]?r.push(n.fetchTopojson().then(function(r){PlotlyGeoAssets.topojson[n.topojsonName]=r,n.topojson=r,n.update(t,e)})):(n.topojson=PlotlyGeoAssets.topojson[n.topojsonName],n.update(t,e))):n.update(t,e)},_.fetchTopojson=function(){var t=b.getTopojsonPath(this.topojsonURL,this.topojsonName);return new Promise(function(e,r){s.json(t,function(n,i){if(n)return r(404===n.status?new Error([\"plotly.js could not find topojson file at\",t,\".\",\"Make sure the *topojsonURL* plot config option\",\"is set properly.\"].join(\" \")):new Error([\"unexpected error while fetching topojson file at\",t].join(\" \")));e(i)})})},_.update=function(t,e){var r=e[this.id];if(!this.updateProjection(e,r)){this.hasChoropleth=!1;for(var n=0;n<t.length;n++)if(\"choropleth\"===t[n][0].trace.type){\n", "this.hasChoropleth=!0;break}this.viewInitial||this.saveViewInitial(r),this.updateBaseLayers(e,r),this.updateDims(e,r),this.updateFx(e,r),d.generalUpdatePerTraceModule(this,t,r);var i=this.layers.frontplot.select(\".scatterlayer\");this.dataPoints.point=i.selectAll(\".point\"),this.dataPoints.text=i.selectAll(\"text\"),this.dataPaths.line=i.selectAll(\".js-line\");var a=this.layers.backplot.select(\".choroplethlayer\");this.dataPaths.choropleth=a.selectAll(\"path\"),this.render()}},_.updateProjection=function(t,e){var r=t._size,n=e.domain,a=e.projection,s=a.rotation||{},c=e.center||{},h=this.projection=i(e);h.center([c.lon-s.lon,c.lat-s.lat]).rotate([-s.lon,-s.lat,s.roll]).parallels(a.parallels);var f=[[r.l+r.w*n.x[0],r.t+r.h*(1-n.y[1])],[r.l+r.w*n.x[1],r.t+r.h*(1-n.y[0])]],d=e.lonaxis,p=e.lataxis,m=o(d.range,p.range);h.fitExtent(f,m);var v=this.bounds=h.getBounds(m),g=this.fitScale=h.scale(),y=h.translate();if(!isFinite(v[0][0])||!isFinite(v[0][1])||!isFinite(v[1][0])||!isFinite(v[1][1])||isNaN(y[0])||isNaN(y[0])){for(var b=this.graphDiv,x=[\"projection.rotation\",\"center\",\"lonaxis.range\",\"lataxis.range\"],_=\"Invalid geo settings, relayout'ing to default view.\",w={},M=0;M<x.length;M++)w[this.id+\".\"+x[M]]=null;return this.viewInitial=null,u.warn(_),b._promises.push(l.relayout(b,w)),_}var k=this.midPt=[(v[0][0]+v[1][0])/2,(v[0][1]+v[1][1])/2];if(h.scale(a.scale*g).translate([y[0]+(k[0]-y[0]),y[1]+(k[1]-y[1])]).clipExtent(v),e._isAlbersUsa){var A=h([c.lon,c.lat]),T=h.translate();h.translate([T[0]-(A[0]-T[0]),T[1]-(A[1]-T[1])])}},_.updateBaseLayers=function(t,e){function r(t){return\"lonaxis\"===t||\"lataxis\"===t}function n(t){return Boolean(y.lineLayers[t])}function i(t){return Boolean(y.fillLayers[t])}var o=this,l=o.topojson,u=o.layers,f=o.basePaths,d=this.hasChoropleth?y.layersForChoropleth:y.layers,p=d.filter(function(t){return n(t)||i(t)?e[\"show\"+t]:!r(t)||e[t].showgrid}),m=o.framework.selectAll(\".layer\").data(p,String);m.exit().each(function(t){delete u[t],delete f[t],s.select(this).remove()}),m.enter().append(\"g\").attr(\"class\",function(t){return\"layer \"+t}).each(function(t){var e=u[t]=s.select(this);\"bg\"===t?o.bgRect=e.append(\"rect\").style(\"pointer-events\",\"all\"):r(t)?f[t]=e.append(\"path\").style(\"fill\",\"none\"):\"backplot\"===t?e.append(\"g\").classed(\"choroplethlayer\",!0):\"frontplot\"===t?e.append(\"g\").classed(\"scatterlayer\",!0):n(t)?f[t]=e.append(\"path\").style(\"fill\",\"none\").style(\"stroke-miterlimit\",2):i(t)&&(f[t]=e.append(\"path\").style(\"stroke\",\"none\"))}),m.order(),m.each(function(t){var o=f[t],s=y.layerNameToAdjective[t];\"frame\"===t?o.datum(y.sphereSVG):n(t)||i(t)?o.datum(x(l,l.objects[t])):r(t)&&o.datum(a(t,e)).call(c.stroke,e[t].gridcolor).call(h.dashLine,\"\",e[t].gridwidth),n(t)?o.call(c.stroke,e[s+\"color\"]).call(h.dashLine,\"\",e[s+\"width\"]):i(t)&&o.call(c.fill,e[s+\"color\"])})},_.updateDims=function(t,e){var r=this.bounds,n=(e.framewidth||0)/2,i=r[0][0]-n,a=r[0][1]-n,o=r[1][0]-i+n,s=r[1][1]-a+n;h.setRect(this.clipRect,i,a,o,s),this.bgRect.call(h.setRect,i,a,o,s).call(c.fill,e.bgcolor),this.xaxis._offset=i,this.xaxis._length=o,this.yaxis._offset=a,this.yaxis._length=s},_.updateFx=function(t,e){function r(){var t=i.viewInitial,e={};for(var r in t)e[i.id+\".\"+r]=t[r];l.relayout(a,e),a.emit(\"plotly_doubleclick\",null)}function n(t){return i.projection.invert([t[0]+i.xaxis._offset,t[1]+i.yaxis._offset])}var i=this,a=i.graphDiv,o=i.bgRect,u=t.dragmode;if(!i.isStatic){if(\"pan\"===u)o.node().onmousedown=null,o.call(g(i,e)),o.on(\"dblclick.zoom\",r);else if(\"select\"===u||\"lasso\"===u){o.on(\".zoom\",null);var c;\"select\"===u?c=function(t,e){(t.range={})[i.id]=[n([e.xmin,e.ymin]),n([e.xmax,e.ymax])]}:\"lasso\"===u&&(c=function(t,e,r){(t.lassoPoints={})[i.id]=r.filtered.map(n)});var h={element:i.bgRect.node(),gd:a,plotinfo:{xaxis:i.xaxis,yaxis:i.yaxis,fillRangeItems:c},xaxes:[i.xaxis],yaxes:[i.yaxis],subplot:i.id};h.prepFn=function(t,e,r){v(t,e,r,h,u)},h.doneFn=function(e,r){2===r&&t._zoomlayer.selectAll(\".select-outline\").remove()},m.init(h)}o.on(\"mousemove\",function(){var t=i.projection.invert(s.mouse(this));if(!t||isNaN(t[0])||isNaN(t[1]))return m.unhover(a,s.event);i.xaxis.p2c=function(){return t[0]},i.yaxis.p2c=function(){return t[1]},f.hover(a,s.event,i.id)}),o.on(\"mouseout\",function(){m.unhover(a,s.event)}),o.on(\"click\",function(){f.click(a,s.event)})}},_.makeFramework=function(){var t=this,e=t.graphDiv._fullLayout,r=\"clip\"+e._uid+t.id;t.clipDef=e._clips.append(\"clipPath\").attr(\"id\",r),t.clipRect=t.clipDef.append(\"rect\"),t.framework=s.select(t.container).append(\"g\").attr(\"class\",\"geo \"+t.id).call(h.setClipUrl,r),t.project=function(e){var r=t.projection(e);return r?[r[0]-t.xaxis._offset,r[1]-t.yaxis._offset]:[null,null]},t.xaxis={_id:\"x\",c2p:function(e){return t.project(e)[0]}},t.yaxis={_id:\"y\",c2p:function(e){return t.project(e)[1]}},t.mockAxis={type:\"linear\",showexponent:\"all\",exponentformat:\"B\"},p.setConvert(t.mockAxis,e)},_.saveViewInitial=function(t){var e=t.center||{},r=t.projection,n=r.rotation||{};t._isScoped?this.viewInitial={\"center.lon\":e.lon,\"center.lat\":e.lat,\"projection.scale\":r.scale}:t._isClipped?this.viewInitial={\"projection.scale\":r.scale,\"projection.rotation.lon\":n.lon,\"projection.rotation.lat\":n.lat}:this.viewInitial={\"center.lon\":e.lon,\"center.lat\":e.lat,\"projection.scale\":r.scale,\"projection.rotation.lon\":n.lon}},_.render=function(){function t(t){var e=n(t.lonlat);return e?\"translate(\"+e[0]+\",\"+e[1]+\")\":null}function e(t){return n.isLonLatOverEdges(t.lonlat)?\"none\":null}var r,n=this.projection,i=n.getPath();for(r in this.basePaths)this.basePaths[r].attr(\"d\",i);for(r in this.dataPaths)this.dataPaths[r].attr(\"d\",function(t){return i(t.geojson)});for(r in this.dataPoints)this.dataPoints[r].attr(\"display\",e).attr(\"transform\",t)}},{\"../../components/color\":604,\"../../components/dragelement\":625,\"../../components/drawing\":628,\"../../components/fx\":645,\"../../lib\":728,\"../../lib/topojson_utils\":753,\"../../plotly\":767,\"../cartesian/axes\":772,\"../cartesian/select\":788,\"../plots\":831,\"./constants\":798,\"./projections\":804,\"./zoom\":805,d3:122,\"topojson-client\":536}],800:[function(t,e,r){\"use strict\";var n=t(\"./geo\"),i=t(\"../../plots/plots\"),a=t(\"../../lib\").counterRegex,o=\"geo\";r.name=o,r.attr=o,r.idRoot=o,r.idRegex=r.attrRegex=a(o),r.attributes=t(\"./layout/attributes\"),r.layoutAttributes=t(\"./layout/layout_attributes\"),r.supplyLayoutDefaults=t(\"./layout/defaults\"),r.plot=function(t){var e=t._fullLayout,r=t.calcdata,a=i.getSubplotIds(e,o);void 0===window.PlotlyGeoAssets&&(window.PlotlyGeoAssets={topojson:{}});for(var s=0;s<a.length;s++){var l=a[s],u=i.getSubplotCalcData(r,o,l),c=e[l],h=c._subplot;h||(h=n({id:l,graphDiv:t,container:e._geolayer.node(),topojsonURL:t._context.topojsonURL,staticPlot:t._context.staticPlot}),e[l]._subplot=h),h.plot(u,e,t._promises)}},r.clean=function(t,e,r,n){for(var a=i.getSubplotIds(n,o),s=0;s<a.length;s++){var l=a[s],u=n[l]._subplot;!e[l]&&u&&(u.framework.remove(),u.clipDef.remove())}},r.updateFx=function(t){for(var e=i.getSubplotIds(t,o),r=0;r<e.length;r++){var n=t[e[r]];n._subplot.updateFx(t,n)}}},{\"../../lib\":728,\"../../plots/plots\":831,\"./geo\":799,\"./layout/attributes\":801,\"./layout/defaults\":802,\"./layout/layout_attributes\":803}],801:[function(t,e,r){\"use strict\";e.exports={geo:{valType:\"subplotid\",dflt:\"geo\",editType:\"calc\"}}},{}],802:[function(t,e,r){\"use strict\";function n(t,e,r){var n,i=r(\"resolution\"),o=r(\"scope\"),l=a.scopeDefaults[o],u=r(\"projection.type\",l.projType),c=e._isAlbersUsa=\"albers usa\"===u;c&&(o=e.scope=\"usa\");var h=e._isScoped=\"world\"!==o,f=e._isConic=-1!==u.indexOf(\"conic\");e._isClipped=!!a.lonaxisSpan[u];for(var d=0;d<s.length;d++){var p,m=s[d],v=[30,10][d];if(h)p=l[m+\"Range\"];else{var g=a[m+\"Span\"],y=(g[u]||g[\"*\"])/2,b=r(\"projection.rotation.\"+m.substr(0,3),l.projRotate[d]);p=[b-y,b+y]}r(m+\".tick0\",r(m+\".range\",p)[0]),r(m+\".dtick\",v),n=r(m+\".showgrid\"),n&&(r(m+\".gridcolor\"),r(m+\".gridwidth\"))}var x=e.lonaxis.range,_=e.lataxis.range,w=x[0],M=x[1];w>0&&M<0&&(M+=360);var k,A=(w+M)/2;if(!c){var T=h?l.projRotate:[A,0,0];k=r(\"projection.rotation.lon\",T[0]),r(\"projection.rotation.lat\",T[1]),r(\"projection.rotation.roll\",T[2]),n=r(\"showcoastlines\",!h),n&&(r(\"coastlinecolor\"),r(\"coastlinewidth\")),n=r(\"showocean\"),n&&r(\"oceancolor\")}var S,E;if(c?(S=-96.6,E=38.7):(S=h?A:k,E=(_[0]+_[1])/2),r(\"center.lon\",S),r(\"center.lat\",E),f){r(\"projection.parallels\",l.projParallels||[0,60])}r(\"projection.scale\"),n=r(\"showland\"),n&&r(\"landcolor\"),n=r(\"showlakes\"),n&&r(\"lakecolor\"),n=r(\"showrivers\"),n&&(r(\"rivercolor\"),r(\"riverwidth\")),n=r(\"showcountries\",h&&\"usa\"!==o),n&&(r(\"countrycolor\"),r(\"countrywidth\")),(\"usa\"===o||\"north america\"===o&&50===i)&&(r(\"showsubunits\",!0),r(\"subunitcolor\"),r(\"subunitwidth\")),h||(n=r(\"showframe\",!0))&&(r(\"framecolor\"),r(\"framewidth\")),r(\"bgcolor\")}var i=t(\"../../subplot_defaults\"),a=t(\"../constants\"),o=t(\"./layout_attributes\"),s=a.axesNames;e.exports=function(t,e,r){i(t,e,r,{type:\"geo\",attributes:o,handleDefaults:n,partition:\"y\"})}},{\"../../subplot_defaults\":838,\"../constants\":798,\"./layout_attributes\":803}],803:[function(t,e,r){\"use strict\";var n=t(\"../../../components/color/attributes\"),i=t(\"../constants\"),a=t(\"../../../plot_api/edit_types\").overrideAll,o={range:{valType:\"info_array\",items:[{valType:\"number\"},{valType:\"number\"}]},showgrid:{valType:\"boolean\",dflt:!1},tick0:{valType:\"number\"},dtick:{valType:\"number\"},gridcolor:{valType:\"color\",dflt:n.lightLine},gridwidth:{valType:\"number\",min:0,dflt:1}};e.exports=a({domain:{x:{valType:\"info_array\",items:[{valType:\"number\",min:0,max:1},{valType:\"number\",min:0,max:1}],dflt:[0,1]},y:{valType:\"info_array\",items:[{valType:\"number\",min:0,max:1},{valType:\"number\",min:0,max:1}],dflt:[0,1]}},resolution:{valType:\"enumerated\",values:[110,50],dflt:110,coerceNumber:!0},scope:{valType:\"enumerated\",values:Object.keys(i.scopeDefaults),dflt:\"world\"},projection:{type:{valType:\"enumerated\",values:Object.keys(i.projNames)},rotation:{lon:{valType:\"number\"},lat:{valType:\"number\"},roll:{valType:\"number\"}},parallels:{valType:\"info_array\",items:[{valType:\"number\"},{valType:\"number\"}]},scale:{valType:\"number\",min:0,dflt:1}},center:{lon:{valType:\"number\"},lat:{valType:\"number\"}},showcoastlines:{valType:\"boolean\"},coastlinecolor:{valType:\"color\",dflt:n.defaultLine},coastlinewidth:{valType:\"number\",min:0,dflt:1},showland:{valType:\"boolean\",dflt:!1},landcolor:{valType:\"color\",dflt:i.landColor},showocean:{valType:\"boolean\",dflt:!1},oceancolor:{valType:\"color\",dflt:i.waterColor},showlakes:{valType:\"boolean\",dflt:!1},lakecolor:{valType:\"color\",dflt:i.waterColor},showrivers:{valType:\"boolean\",dflt:!1},rivercolor:{valType:\"color\",dflt:i.waterColor},riverwidth:{valType:\"number\",min:0,dflt:1},showcountries:{valType:\"boolean\"},countrycolor:{valType:\"color\",dflt:n.defaultLine},countrywidth:{valType:\"number\",min:0,dflt:1},showsubunits:{valType:\"boolean\"},subunitcolor:{valType:\"color\",dflt:n.defaultLine},subunitwidth:{valType:\"number\",min:0,dflt:1},showframe:{valType:\"boolean\"},framecolor:{valType:\"color\",dflt:n.defaultLine},framewidth:{valType:\"number\",min:0,dflt:1},bgcolor:{valType:\"color\",dflt:n.background},lonaxis:o,lataxis:o},\"plot\",\"from-root\")},{\"../../../components/color/attributes\":603,\"../../../plot_api/edit_types\":756,\"../constants\":798}],804:[function(t,e,r){\"use strict\";function n(t){function e(t,e){return{type:\"Feature\",id:t.id,properties:t.properties,geometry:r(t.geometry,e)}}function r(e,n){if(!e)return null;if(\"GeometryCollection\"===e.type)return{type:\"GeometryCollection\",geometries:object.geometries.map(function(t){return r(t,n)})};if(!S.hasOwnProperty(e.type))return null;var i=S[e.type];return t.geo.stream(e,n(i)),i.result()}function n(){}function i(t){if((e=t.length)<4)return!1;for(var e,r=0,n=t[e-1][1]*t[0][0]-t[e-1][0]*t[0][1];++r<e;)n+=t[r-1][1]*t[r][0]-t[r-1][0]*t[r][1];return n<=0}function a(t,e){for(var r=e[0],n=e[1],i=!1,a=0,o=t.length,s=o-1;a<o;s=a++){var l=t[a],u=l[0],c=l[1],h=t[s],f=h[0],d=h[1];c>n^d>n&&r<(f-u)*(n-c)/(d-c)+u&&(i=!i)}return i}function o(t){return t?t/Math.sin(t):1}function s(t){return t>1?I:t<-1?-I:Math.asin(t)}function l(t){return t>1?0:t<-1?C:Math.acos(t)}function u(t,e){var r=(2+I)*Math.sin(e);e/=2;for(var n=0,i=1/0;n<10&&Math.abs(i)>E;n++){var a=Math.cos(e);e-=i=(e+Math.sin(e)*(a+2)-r)/(2*a*(1+a))}return[2/Math.sqrt(C*(4+C))*t*(1+Math.cos(e)),2*Math.sqrt(C/(4+C))*Math.sin(e)]}function c(t,e){function r(r,n){var i=R(r/e,n);return i[0]*=t,i}return arguments.length<2&&(e=t),1===e?R:e===1/0?f:(r.invert=function(r,n){var i=R.invert(r/t,n);return i[0]*=e,i},r)}function h(){var t=2,e=O(c),r=e(t);return r.coefficient=function(r){return arguments.length?e(t=+r):t},r}function f(t,e){return[t*Math.cos(e)/Math.cos(e/=2),2*Math.sin(e)]}function d(t,e){return[3*t/(2*C)*Math.sqrt(C*C/3-e*e),e]}function p(t,e){return[t,1.25*Math.log(Math.tan(C/4+.4*e))]}function m(t){return function(e){var r,n=t*Math.sin(e),i=30;do{e-=r=(e+Math.sin(e)-n)/(1+Math.cos(e))}while(Math.abs(r)>E&&--i>0);return e/2}}function v(t,e){var r=e*e,n=r*r;return[t*(.8707-.131979*r+n*(n*(.003971*r-.001529*n)-.013791)),e*(1.007226+r*(.015085+n*(.028874*r-.044475-.005916*n)))]}function g(t,e){var r,n=Math.min(18,36*Math.abs(e)/C),i=Math.floor(n),a=n-i,o=(r=j[i])[0],s=r[1],l=(r=j[++i])[0],u=r[1],c=(r=j[Math.min(19,++i)])[0],h=r[1];return[t*(l+a*(c-o)/2+a*a*(c-2*l+o)/2),(e>0?I:-I)*(u+a*(h-s)/2+a*a*(h-2*u+s)/2)]}function y(t,e){return[t*Math.cos(e),e]}function b(t,e){var r=Math.cos(e),n=o(l(r*Math.cos(t/=2)));return[2*r*Math.sin(t)*n,Math.sin(e)*n]}function x(t,e){var r=b(t,e);return[(r[0]+t/I)/2,(r[1]+e)/2]}t.geo.project=function(t,e){var n=e.stream;if(!n)throw new Error(\"not yet supported\");return(t&&_.hasOwnProperty(t.type)?_[t.type]:r)(t,n)};var _={Feature:e,FeatureCollection:function(t,r){return{type:\"FeatureCollection\",features:t.features.map(function(t){return e(t,r)})}}},w=[],M=[],k={point:function(t,e){w.push([t,e])},result:function(){var t=w.length?w.length<2?{type:\"Point\",coordinates:w[0]}:{type:\"MultiPoint\",coordinates:w}:null;return w=[],t}},A={lineStart:n,point:function(t,e){w.push([t,e])},lineEnd:function(){w.length&&(M.push(w),w=[])},result:function(){var t=M.length?M.length<2?{type:\"LineString\",coordinates:M[0]}:{type:\"MultiLineString\",coordinates:M}:null;return M=[],t}},T={polygonStart:n,lineStart:n,point:function(t,e){w.push([t,e])},lineEnd:function(){var t=w.length;if(t){do{w.push(w[0].slice())}while(++t<4);M.push(w),w=[]}},polygonEnd:n,result:function(){if(!M.length)return null;var t=[],e=[];return M.forEach(function(r){i(r)?t.push([r]):e.push(r)}),e.forEach(function(e){var r=e[0];t.some(function(t){if(a(t[0],r))return t.push(e),!0})||t.push([e])}),M=[],t.length?t.length>1?{type:\"MultiPolygon\",coordinates:t}:{type:\"Polygon\",coordinates:t[0]}:null}},S={Point:k,MultiPoint:k,LineString:A,MultiLineString:A,Polygon:T,MultiPolygon:T,Sphere:T},E=1e-6,L=E*E,C=Math.PI,I=C/2,z=(Math.sqrt(C),C/180),D=180/C,P=t.geo.projection,O=t.geo.projectionMutator;t.geo.interrupt=function(e){function r(t,r){for(var n=r<0?-1:1,i=l[+(r<0)],a=0,o=i.length-1;a<o&&t>i[a][2][0];++a);var s=e(t-i[a][1][0],r);return s[0]+=e(i[a][1][0],n*r>n*i[a][0][1]?i[a][0][1]:r)[0],s}function n(){s=l.map(function(t){return t.map(function(t){var r,n=e(t[0][0],t[0][1])[0],i=e(t[2][0],t[2][1])[0],a=e(t[1][0],t[0][1])[1],o=e(t[1][0],t[1][1])[1];return a>o&&(r=a,a=o,o=r),[[n,a],[i,o]]})})}function i(){for(var e=1e-6,r=[],n=0,i=l[0].length;n<i;++n){var o=l[0][n],s=180*o[0][0]/C,u=180*o[0][1]/C,c=180*o[1][1]/C,h=180*o[2][0]/C,f=180*o[2][1]/C;r.push(a([[s+e,u+e],[s+e,c-e],[h-e,c-e],[h-e,f+e]],30))}for(var n=l[1].length-1;n>=0;--n){var o=l[1][n],s=180*o[0][0]/C,u=180*o[0][1]/C,c=180*o[1][1]/C,h=180*o[2][0]/C,f=180*o[2][1]/C;r.push(a([[h-e,f-e],[h-e,c+e],[s+e,c+e],[s+e,u-e]],30))}return{type:\"Polygon\",coordinates:[t.merge(r)]}}function a(t,e){for(var r,n,i,a=-1,o=t.length,s=t[0],l=[];++a<o;){r=t[a],n=(r[0]-s[0])/e,i=(r[1]-s[1])/e;for(var u=0;u<e;++u)l.push([s[0]+u*n,s[1]+u*i]);s=r}return l.push(r),l}function o(t,e){return Math.abs(t[0]-e[0])<E&&Math.abs(t[1]-e[1])<E}var s,l=[[[[-C,0],[0,I],[C,0]]],[[[-C,0],[0,-I],[C,0]]]];e.invert&&(r.invert=function(t,n){for(var i=s[+(n<0)],a=l[+(n<0)],u=0,c=i.length;u<c;++u){var h=i[u];if(h[0][0]<=t&&t<h[1][0]&&h[0][1]<=n&&n<h[1][1]){var f=e.invert(t-e(a[u][1][0],0)[0],n);return f[0]+=a[u][1][0],o(r(f[0],f[1]),[t,n])?f:null}}});var u=t.geo.projection(r),c=u.stream;return u.stream=function(e){var r=u.rotate(),n=c(e),a=(u.rotate([0,0]),c(e));return u.rotate(r),n.sphere=function(){t.geo.stream(i(),a)},n},u.lobes=function(t){return arguments.length?(l=t.map(function(t){return t.map(function(t){return[[t[0][0]*C/180,t[0][1]*C/180],[t[1][0]*C/180,t[1][1]*C/180],[t[2][0]*C/180,t[2][1]*C/180]]})}),n(),u):l.map(function(t){return t.map(function(t){return[[180*t[0][0]/C,180*t[0][1]/C],[180*t[1][0]/C,180*t[1][1]/C],[180*t[2][0]/C,180*t[2][1]/C]]})})},u},u.invert=function(t,e){var r=.5*e*Math.sqrt((4+C)/C),n=s(r),i=Math.cos(n);return[t/(2/Math.sqrt(C*(4+C))*(1+i)),s((n+r*(i+2))/(2+I))]},(t.geo.eckert4=function(){return P(u)}).raw=u;var R=t.geo.azimuthalEqualArea.raw;f.invert=function(t,e){var r=2*s(e/2);return[t*Math.cos(r/2)/Math.cos(r),r]},(t.geo.hammer=h).raw=c,d.invert=function(t,e){return[2/3*C*t/Math.sqrt(C*C/3-e*e),e]},(t.geo.kavrayskiy7=function(){return P(d)}).raw=d,p.invert=function(t,e){return[t,2.5*Math.atan(Math.exp(.8*e))-.625*C]},(t.geo.miller=function(){return P(p)}).raw=p;var F=(m(C),function(t,e,r){function n(r,n){return[t*r*Math.cos(n=i(n)),e*Math.sin(n)]}var i=m(r);return n.invert=function(n,i){var a=s(i/e);return[n/(t*Math.cos(a)),s((2*a+Math.sin(2*a))/r)]},n}(Math.SQRT2/I,Math.SQRT2,C));(t.geo.mollweide=function(){return P(F)}).raw=F,v.invert=function(t,e){var r,n=e,i=25;do{var a=n*n,o=a*a;n-=r=(n*(1.007226+a*(.015085+o*(.028874*a-.044475-.005916*o)))-e)/(1.007226+a*(.045255+o*(.259866*a-.311325-.005916*11*o)))}while(Math.abs(r)>E&&--i>0);return[t/(.8707+(a=n*n)*(a*(a*a*a*(.003971-.001529*a)-.013791)-.131979)),n]},(t.geo.naturalEarth=function(){return P(v)}).raw=v;var j=[[.9986,-.062],[1,0],[.9986,.062],[.9954,.124],[.99,.186],[.9822,.248],[.973,.31],[.96,.372],[.9427,.434],[.9216,.4958],[.8962,.5571],[.8679,.6176],[.835,.6769],[.7986,.7346],[.7597,.7903],[.7186,.8435],[.6732,.8936],[.6213,.9394],[.5722,.9761],[.5322,1]];j.forEach(function(t){t[1]*=1.0144}),g.invert=function(t,e){var r=e/I,n=90*r,i=Math.min(18,Math.abs(n/5)),a=Math.max(0,Math.floor(i));do{var o=j[a][1],s=j[a+1][1],l=j[Math.min(19,a+2)][1],u=l-o,c=l-2*s+o,h=2*(Math.abs(r)-s)/u,f=c/u,d=h*(1-f*h*(1-2*f*h));if(d>=0||1===a){n=(e>=0?5:-5)*(d+i);var p,m=50;do{i=Math.min(18,Math.abs(n)/5),a=Math.floor(i),d=i-a,o=j[a][1],s=j[a+1][1],l=j[Math.min(19,a+2)][1],n-=(p=(e>=0?I:-I)*(s+d*(l-o)/2+d*d*(l-2*s+o)/2)-e)*D}while(Math.abs(p)>L&&--m>0);break}}while(--a>=0);var v=j[a][0],g=j[a+1][0],y=j[Math.min(19,a+2)][0];return[t/(g+d*(y-v)/2+d*d*(y-2*g+v)/2),n*z]},(t.geo.robinson=function(){return P(g)}).raw=g,y.invert=function(t,e){return[t/Math.cos(e),e]},(t.geo.sinusoidal=function(){return P(y)}).raw=y,b.invert=function(t,e){if(!(t*t+4*e*e>C*C+E)){var r=t,n=e,i=25;do{var a,o=Math.sin(r),s=Math.sin(r/2),u=Math.cos(r/2),c=Math.sin(n),h=Math.cos(n),f=Math.sin(2*n),d=c*c,p=h*h,m=s*s,v=1-p*u*u,g=v?l(h*u)*Math.sqrt(a=1/v):a=0,y=2*g*h*s-t,b=g*c-e,x=a*(p*m+g*h*u*d),_=a*(.5*o*f-2*g*c*s),w=.25*a*(f*s-g*c*p*o),M=a*(d*u+g*m*h),k=_*w-M*x;if(!k)break;var A=(b*_-y*M)/k,T=(y*w-b*x)/k;r-=A,n-=T}while((Math.abs(A)>E||Math.abs(T)>E)&&--i>0);return[r,n]}},(t.geo.aitoff=function(){return P(b)}).raw=b,x.invert=function(t,e){var r=t,n=e,i=25;do{var a,o=Math.cos(n),s=Math.sin(n),u=Math.sin(2*n),c=s*s,h=o*o,f=Math.sin(r),d=Math.cos(r/2),p=Math.sin(r/2),m=p*p,v=1-h*d*d,g=v?l(o*d)*Math.sqrt(a=1/v):a=0,y=.5*(2*g*o*p+r/I)-t,b=.5*(g*s+n)-e,x=.5*a*(h*m+g*o*d*c)+.5/I,_=a*(f*u/4-g*s*p),w=.125*a*(u*p-g*s*h*f),M=.5*a*(c*d+g*m*o)+.5,k=_*w-M*x,A=(b*_-y*M)/k,T=(y*w-b*x)/k;r-=A,n-=T}while((Math.abs(A)>E||Math.abs(T)>E)&&--i>0);return[r,n]},(t.geo.winkel3=function(){return P(x)}).raw=x}e.exports=n},{}],805:[function(t,e,r){\"use strict\";function n(t,e){var r=t.projection;return(e._isScoped?o:e._isClipped?l:s)(t,r)}function i(t,e){return w.behavior.zoom().translate(e.translate()).scale(e.scale())}function a(t,e,r){function n(t,e){var r=M.nestedProperty(s,t);r.get()!==e&&(r.set(e),M.nestedProperty(o,t).set(e),l[i+\".\"+t]=e)}var i=t.id,a=t.graphDiv,o=a.layout[i],s=a._fullLayout[i],l={};r(n),n(\"projection.scale\",e.scale()/t.fitScale),a.emit(\"plotly_relayout\",l)}function o(t,e){function r(){w.select(this).style(T)}function n(){e.scale(w.event.scale).translate(w.event.translate),t.render()}function o(r){var n=e.invert(t.midPt);r(\"center.lon\",n[0]),r(\"center.lat\",n[1])}function s(){w.select(this).style(S),a(t,e,o)}var l=i(t,e);return l.on(\"zoomstart\",r).on(\"zoom\",n).on(\"zoomend\",s),l}function s(t,e){function r(t){return e.invert(t)}function n(t){var n=e(r(t));return Math.abs(n[0]-t[0])>b||Math.abs(n[1]-t[1])>b}function o(){w.select(this).style(T),c=w.mouse(this),h=e.rotate(),f=e.translate(),d=h,p=r(c)}function s(){if(m=w.mouse(this),n(c))return y.scale(e.scale()),void y.translate(e.translate());e.scale(w.event.scale),e.translate([f[0],w.event.translate[1]]),p?r(m)&&(g=r(m),v=[d[0]+(g[0]-p[0]),h[1],h[2]],e.rotate(v),d=v):(c=m,p=r(c)),t.render()}function l(){w.select(this).style(S),a(t,e,u)}function u(r){var n=e.rotate(),i=e.invert(t.midPt);r(\"projection.rotation.lon\",-n[0]),r(\"center.lon\",i[0]),r(\"center.lat\",i[1])}var c,h,f,d,p,m,v,g,y=i(t,e),b=2;return y.on(\"zoomstart\",o).on(\"zoom\",s).on(\"zoomend\",l),y}function l(t,e){function r(t){y++||t({type:\"zoomstart\"})}function n(t){t({type:\"zoom\"})}function o(t){--y||t({type:\"zoomend\"})}function s(t){var r=e.rotate();t(\"projection.rotation.lon\",-r[0]),t(\"projection.rotation.lat\",-r[1])}var l,p={r:e.rotate(),k:e.scale()},m=i(t,e),v=_(m,\"zoomstart\",\"zoom\",\"zoomend\"),y=0,b=m.on;return m.on(\"zoomstart\",function(){w.select(this).style(T);var t=w.mouse(this),i=e.rotate(),a=i,o=e.translate(),s=c(i);l=u(e,t),b.call(m,\"zoom\",function(){var r=w.mouse(this);if(e.scale(p.k=w.event.scale),l){if(u(e,r)){e.rotate(i).translate(o);var c=u(e,r),m=f(l,c),y=g(h(s,m)),b=p.r=d(y,l,a);isFinite(b[0])&&isFinite(b[1])&&isFinite(b[2])||(b=a),e.rotate(b),a=b}}else t=r,l=u(e,t);n(v.of(this,arguments))}),r(v.of(this,arguments))}).on(\"zoomend\",function(){w.select(this).style(S),b.call(m,\"zoom\",null),o(v.of(this,arguments)),a(t,e,s)}).on(\"zoom.redraw\",function(){t.render()}),w.rebind(m,v,\"on\")}function u(t,e){var r=t.invert(e);return r&&isFinite(r[0])&&isFinite(r[1])&&y(r)}function c(t){var e=.5*t[0]*k,r=.5*t[1]*k,n=.5*t[2]*k,i=Math.sin(e),a=Math.cos(e),o=Math.sin(r),s=Math.cos(r),l=Math.sin(n),u=Math.cos(n);return[a*s*u+i*o*l,i*s*u-a*o*l,a*o*u+i*s*l,a*s*l-i*o*u]}function h(t,e){var r=t[0],n=t[1],i=t[2],a=t[3],o=e[0],s=e[1],l=e[2],u=e[3];return[r*o-n*s-i*l-a*u,r*s+n*o+i*u-a*l,r*l-n*u+i*o+a*s,r*u+n*l-i*s+a*o]}function f(t,e){if(t&&e){var r=x(t,e),n=Math.sqrt(b(r,r)),i=.5*Math.acos(Math.max(-1,Math.min(1,b(t,e)))),a=Math.sin(i)/n;return n&&[Math.cos(i),r[2]*a,-r[1]*a,r[0]*a]}}function d(t,e,r){var n=v(e,2,t[0]);n=v(n,1,t[1]),n=v(n,0,t[2]-r[2]);var i,a,o=e[0],s=e[1],l=e[2],u=n[0],c=n[1],h=n[2],f=Math.atan2(s,o)*A,d=Math.sqrt(o*o+s*s);Math.abs(c)>d?(a=(c>0?90:-90)-f,i=0):(a=Math.asin(c/d)*A-f,i=Math.sqrt(d*d-c*c));var m=180-a-2*f,g=(Math.atan2(h,u)-Math.atan2(l,i))*A,y=(Math.atan2(h,u)-Math.atan2(l,-i))*A;return p(r[0],r[1],a,g)<=p(r[0],r[1],m,y)?[a,g,r[2]]:[m,y,r[2]]}function p(t,e,r,n){var i=m(r-t),a=m(n-e);return Math.sqrt(i*i+a*a)}function m(t){return(t%360+540)%360-180}function v(t,e,r){var n=r*k,i=t.slice(),a=0===e?1:0,o=2===e?1:2,s=Math.cos(n),l=Math.sin(n);return i[a]=t[a]*s-t[o]*l,i[o]=t[o]*s+t[a]*l,i}function g(t){return[Math.atan2(2*(t[0]*t[1]+t[2]*t[3]),1-2*(t[1]*t[1]+t[2]*t[2]))*A,Math.asin(Math.max(-1,Math.min(1,2*(t[0]*t[2]-t[3]*t[1]))))*A,Math.atan2(2*(t[0]*t[3]+t[1]*t[2]),1-2*(t[2]*t[2]+t[3]*t[3]))*A]}function y(t){var e=t[0]*k,r=t[1]*k,n=Math.cos(r);return[n*Math.cos(e),n*Math.sin(e),Math.sin(r)]}function b(t,e){for(var r=0,n=0,i=t.length;n<i;++n)r+=t[n]*e[n];return r}function x(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function _(t){for(var e=0,r=arguments.length,n=[];++e<r;)n.push(arguments[e]);var i=w.dispatch.apply(null,n);return i.of=function(e,r){return function(n){var a;try{a=n.sourceEvent=w.event,n.target=t,w.event=n,i[n.type].apply(e,r)}finally{w.event=a}}},i}var w=t(\"d3\"),M=t(\"../../lib\"),k=Math.PI/180,A=180/Math.PI,T={cursor:\"pointer\"},S={cursor:\"auto\"};e.exports=n},{\"../../lib\":728,d3:122}],806:[function(t,e,r){\"use strict\";function n(t,e){this.element=t,this.plot=e,this.mouseListener=null,this.wheelListener=null,this.lastInputTime=Date.now(),this.lastPos=[0,0],this.boxEnabled=!1,this.boxInited=!1,this.boxStart=[0,0],this.boxEnd=[0,0],this.dragStart=[0,0]}function i(t){function e(){t.xaxis.autorange=!1,t.yaxis.autorange=!1}function r(){for(var e=t.graphDiv._fullLayout._axisConstraintGroups,r=t.xaxis._id,n=t.yaxis._id,i=0;i<e.length;i++)if(-1!==e[i][r]){if(-1!==e[i][n])return!0;break}return!1}function i(n,i,a){function o(e,r,n){var i=Math.min(r,n),a=Math.max(r,n);i!==a?(f[e]=i,f[e+2]=a,h.dataBox=f,t.setRanges(f)):(t.selectBox.selectBox=[0,0,1,1],t.glplot.setDirty())}var s,u,f=t.calcDataBox(),d=c.viewBox,p=h.lastPos[0],m=h.lastPos[1],v=l.MINDRAG*c.pixelRatio,g=l.MINZOOM*c.pixelRatio;switch(i*=c.pixelRatio,a*=c.pixelRatio,a=d[3]-d[1]-a,t.fullLayout.dragmode){case\"zoom\":if(n){var y=i/(d[2]-d[0])*(f[2]-f[0])+f[0],b=a/(d[3]-d[1])*(f[3]-f[1])+f[1];h.boxInited||(h.boxStart[0]=y,h.boxStart[1]=b,h.dragStart[0]=i,h.dragStart[1]=a),h.boxEnd[0]=y,h.boxEnd[1]=b,h.boxInited=!0,h.boxEnabled||h.boxStart[0]===h.boxEnd[0]&&h.boxStart[1]===h.boxEnd[1]||(h.boxEnabled=!0);var x=Math.abs(h.dragStart[0]-i)<g,_=Math.abs(h.dragStart[1]-a)<g;if(!r()||x&&_)x&&(h.boxEnd[0]=h.boxStart[0]),_&&(h.boxEnd[1]=h.boxStart[1]);else{s=h.boxEnd[0]-h.boxStart[0],u=h.boxEnd[1]-h.boxStart[1];var w=(f[3]-f[1])/(f[2]-f[0]);Math.abs(s*w)>Math.abs(u)?(h.boxEnd[1]=h.boxStart[1]+Math.abs(s)*w*(u>=0?1:-1),h.boxEnd[1]<f[1]?(h.boxEnd[1]=f[1],h.boxEnd[0]=h.boxStart[0]+(f[1]-h.boxStart[1])/Math.abs(w)):h.boxEnd[1]>f[3]&&(h.boxEnd[1]=f[3],h.boxEnd[0]=h.boxStart[0]+(f[3]-h.boxStart[1])/Math.abs(w))):(h.boxEnd[0]=h.boxStart[0]+Math.abs(u)/w*(s>=0?1:-1),h.boxEnd[0]<f[0]?(h.boxEnd[0]=f[0],h.boxEnd[1]=h.boxStart[1]+(f[0]-h.boxStart[0])*Math.abs(w)):h.boxEnd[0]>f[2]&&(h.boxEnd[0]=f[2],h.boxEnd[1]=h.boxStart[1]+(f[2]-h.boxStart[0])*Math.abs(w)))}}else h.boxEnabled?(s=h.boxStart[0]!==h.boxEnd[0],u=h.boxStart[1]!==h.boxEnd[1],s||u?(s&&(o(0,h.boxStart[0],h.boxEnd[0]),t.xaxis.autorange=!1),u&&(o(1,h.boxStart[1],h.boxEnd[1]),t.yaxis.autorange=!1),t.relayoutCallback()):t.glplot.setDirty(),h.boxEnabled=!1,h.boxInited=!1):h.boxInited&&(h.boxInited=!1);break;case\"pan\":h.boxEnabled=!1,h.boxInited=!1,n?(h.panning||(h.dragStart[0]=i,h.dragStart[1]=a),Math.abs(h.dragStart[0]-i)<v&&(i=h.dragStart[0]),Math.abs(h.dragStart[1]-a)<v&&(a=h.dragStart[1]),s=(p-i)*(f[2]-f[0])/(c.viewBox[2]-c.viewBox[0]),u=(m-a)*(f[3]-f[1])/(c.viewBox[3]-c.viewBox[1]),f[0]+=s,f[2]+=s,f[1]+=u,f[3]+=u,t.setRanges(f),h.panning=!0,h.lastInputTime=Date.now(),e(),t.cameraChanged(),t.handleAnnotations()):h.panning&&(h.panning=!1,t.relayoutCallback())}h.lastPos[0]=i,h.lastPos[1]=a}var u=t.mouseContainer,c=t.glplot,h=new n(u,c);return h.mouseListener=a(u,i),u.addEventListener(\"touchstart\",function(t){var e=s(t.changedTouches[0],u);i(0,e[0],e[1]),i(1,e[0],e[1])}),u.addEventListener(\"touchmove\",function(t){t.preventDefault();var e=s(t.changedTouches[0],u);i(1,e[0],e[1])}),u.addEventListener(\"touchend\",function(){i(0,h.lastPos[0],h.lastPos[1])}),h.wheelListener=o(u,function(r,n){if(!t.scrollZoom)return!1;var i=t.calcDataBox(),a=c.viewBox,o=h.lastPos[0],s=h.lastPos[1],l=Math.exp(5*n/(a[3]-a[1])),u=o/(a[2]-a[0])*(i[2]-i[0])+i[0],f=s/(a[3]-a[1])*(i[3]-i[1])+i[1];return i[0]=(i[0]-u)*l+u,i[2]=(i[2]-u)*l+u,i[1]=(i[1]-f)*l+f,i[3]=(i[3]-f)*l+f,t.setRanges(i),h.lastInputTime=Date.now(),e(),t.cameraChanged(),t.handleAnnotations(),t.relayoutCallback(),!0}),h}var a=t(\"mouse-change\"),o=t(\"mouse-wheel\"),s=t(\"mouse-event-offset\"),l=t(\"../cartesian/constants\");e.exports=i},{\"../cartesian/constants\":777,\"mouse-change\":452,\"mouse-event-offset\":453,\"mouse-wheel\":455}],807:[function(t,e,r){\"use strict\";function n(t){this.scene=t,this.gl=t.gl,this.pixelRatio=t.pixelRatio,this.screenBox=[0,0,1,1],this.viewBox=[0,0,1,1],this.dataBox=[-1,-1,1,1],this.borderLineEnable=[!1,!1,!1,!1],this.borderLineWidth=[1,1,1,1],this.borderLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.ticks=[[],[]],this.tickEnable=[!0,!0,!1,!1],this.tickPad=[15,15,15,15],this.tickAngle=[0,0,0,0],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickMarkLength=[0,0,0,0],this.tickMarkWidth=[0,0,0,0],this.tickMarkColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labels=[\"x\",\"y\"],this.labelEnable=[!0,!0,!1,!1],this.labelAngle=[0,Math.PI/2,0,3*Math.PI/2],this.labelPad=[15,15,15,15],this.labelSize=[12,12],this.labelFont=[\"sans-serif\",\"sans-serif\"],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.title=\"\",this.titleEnable=!0,this.titleCenter=[0,0,0,0],this.titleAngle=0,this.titleColor=[0,0,0,1],this.titleFont=\"sans-serif\",this.titleSize=18,this.gridLineEnable=[!0,!0],this.gridLineColor=[[0,0,0,.5],[0,0,0,.5]],this.gridLineWidth=[1,1],this.zeroLineEnable=[!0,!0],this.zeroLineWidth=[1,1],this.zeroLineColor=[[0,0,0,1],[0,0,0,1]],this.borderColor=[0,0,0,0],this.backgroundColor=[0,0,0,0],this.static=this.scene.staticPlot}function i(t){return new n(t)}var a=t(\"../plots\"),o=t(\"../cartesian/axes\"),s=t(\"../../lib/html2unicode\"),l=t(\"../../lib/str2rgbarray\"),u=n.prototype,c=[\"xaxis\",\"yaxis\"];u.merge=function(t){this.titleEnable=!1,this.backgroundColor=l(t.plot_bgcolor);var e,r,n,i,a,o,u,h,f,d,p;for(d=0;d<2;++d){for(e=c[d],r=t[this.scene[e]._name],n=/Click to enter .+ title/.test(r.title)?\"\":r.title,p=0;p<=2;p+=2)this.labelEnable[d+p]=!1,this.labels[d+p]=s(n),this.labelColor[d+p]=l(r.titlefont.color),this.labelFont[d+p]=r.titlefont.family,this.labelSize[d+p]=r.titlefont.size,this.labelPad[d+p]=this.getLabelPad(e,r),this.tickEnable[d+p]=!1,this.tickColor[d+p]=l((r.tickfont||{}).color),this.tickAngle[d+p]=\"auto\"===r.tickangle?0:Math.PI*-r.tickangle/180,this.tickPad[d+p]=this.getTickPad(r),this.tickMarkLength[d+p]=0,this.tickMarkWidth[d+p]=r.tickwidth||0,this.tickMarkColor[d+p]=l(r.tickcolor),this.borderLineEnable[d+p]=!1,this.borderLineColor[d+p]=l(r.linecolor),this.borderLineWidth[d+p]=r.linewidth||0;u=this.hasSharedAxis(r),a=this.hasAxisInDfltPos(e,r)&&!u,o=this.hasAxisInAltrPos(e,r)&&!u,i=r.mirror||!1,h=u?-1!==String(i).indexOf(\"all\"):!!i,f=u?\"allticks\"===i:-1!==String(i).indexOf(\"ticks\"),a?this.labelEnable[d]=!0:o&&(this.labelEnable[d+2]=!0),a?this.tickEnable[d]=r.showticklabels:o&&(this.tickEnable[d+2]=r.showticklabels),(a||h)&&(this.borderLineEnable[d]=r.showline),(o||h)&&(this.borderLineEnable[d+2]=r.showline),(a||f)&&(this.tickMarkLength[d]=this.getTickMarkLength(r)),(o||f)&&(this.tickMarkLength[d+2]=this.getTickMarkLength(r)),this.gridLineEnable[d]=r.showgrid,this.gridLineColor[d]=l(r.gridcolor),this.gridLineWidth[d]=r.gridwidth,this.zeroLineEnable[d]=r.zeroline,this.zeroLineColor[d]=l(r.zerolinecolor),this.zeroLineWidth[d]=r.zerolinewidth}},u.hasSharedAxis=function(t){var e=this.scene,r=a.getSubplotIds(e.fullLayout,\"gl2d\");return 0!==o.findSubplotsWithAxis(r,t).indexOf(e.id)},u.hasAxisInDfltPos=function(t,e){var r=e.side;return\"xaxis\"===t?\"bottom\"===r:\"yaxis\"===t?\"left\"===r:void 0},u.hasAxisInAltrPos=function(t,e){var r=e.side;return\"xaxis\"===t?\"top\"===r:\"yaxis\"===t?\"right\"===r:void 0},u.getLabelPad=function(t,e){var r=e.titlefont.size,n=e.showticklabels;return\"xaxis\"===t?\"top\"===e.side?r*(1.5+(n?1:0))-10:r*(1.5+(n?.5:0))-10:\"yaxis\"===t?\"right\"===e.side?10+r*(1.5+(n?1:.5)):10+r*(1.5+(n?.5:0)):void 0},u.getTickPad=function(t){return\"outside\"===t.ticks?10+t.ticklen:15},u.getTickMarkLength=function(t){if(!t.ticks)return 0;var e=t.ticklen;return\"inside\"===t.ticks?-e:e},e.exports=i},{\n", "\"../../lib/html2unicode\":726,\"../../lib/str2rgbarray\":749,\"../cartesian/axes\":772,\"../plots\":831}],808:[function(t,e,r){\"use strict\";var n=t(\"../../plot_api/edit_types\").overrideAll,i=t(\"./scene2d\"),a=t(\"../plots\"),o=t(\"../../constants/xmlns_namespaces\"),s=t(\"../cartesian/constants\"),l=t(\"../cartesian\"),u=t(\"../../components/fx/layout_attributes\");r.name=\"gl2d\",r.attr=[\"xaxis\",\"yaxis\"],r.idRoot=[\"x\",\"y\"],r.idRegex=s.idRegex,r.attrRegex=s.attrRegex,r.attributes=t(\"../cartesian/attributes\"),r.layoutAttrOverrides=n(l.layoutAttributes,\"plot\",\"from-root\"),r.baseLayoutAttrOverrides=n({plot_bgcolor:a.layoutAttributes.plot_bgcolor,hoverlabel:u.hoverlabel},\"plot\",\"nested\"),r.plot=function(t){for(var e=t._fullLayout,r=t._fullData,n=a.getSubplotIds(e,\"gl2d\"),o=0;o<n.length;o++){var s=n[o],l=e._plots[s],u=a.getSubplotData(r,\"gl2d\",s),c=l._scene2d;void 0===c&&(c=new i({id:s,graphDiv:t,container:t.querySelector(\".gl-container\"),staticPlot:t._context.staticPlot,plotGlPixelRatio:t._context.plotGlPixelRatio},e),l._scene2d=c),c.plot(u,t.calcdata,e,t.layout)}},r.clean=function(t,e,r,n){for(var i=a.getSubplotIds(n,\"gl2d\"),o=0;o<i.length;o++){var s=i[o],u=n._plots[s];if(u._scene2d){0===a.getSubplotData(t,\"gl2d\",s).length&&(u._scene2d.destroy(),delete n._plots[s])}}l.clean.apply(this,arguments)},r.drawFramework=function(t){t._context.staticPlot||l.drawFramework(t)},r.toSVG=function(t){for(var e=t._fullLayout,r=a.getSubplotIds(e,\"gl2d\"),n=0;n<r.length;n++){var i=e._plots[r[n]],s=i._scene2d,l=s.toImage(\"png\");e._glimages.append(\"svg:image\").attr({xmlns:o.svg,\"xlink:href\":l,x:0,y:0,width:\"100%\",height:\"100%\",preserveAspectRatio:\"none\"}),s.destroy()}},r.updateFx=function(t){for(var e=a.getSubplotIds(t,\"gl2d\"),r=0;r<e.length;r++){t._plots[e[r]]._scene2d.updateFx(t.dragmode)}}},{\"../../components/fx/layout_attributes\":646,\"../../constants/xmlns_namespaces\":709,\"../../plot_api/edit_types\":756,\"../cartesian\":782,\"../cartesian/attributes\":771,\"../cartesian/constants\":777,\"../plots\":831,\"./scene2d\":809}],809:[function(t,e,r){\"use strict\";function n(t,e){this.container=t.container,this.graphDiv=t.graphDiv,this.pixelRatio=t.plotGlPixelRatio||window.devicePixelRatio,this.id=t.id,this.staticPlot=!!t.staticPlot,this.scrollZoom=this.graphDiv._context.scrollZoom,this.fullData=null,this.updateRefs(e),this.makeFramework(),this.glplotOptions=p(this),this.glplotOptions.merge(e),this.glplot=c(this.glplotOptions),this.camera=m(this),this.traces={},this.spikes=h(this.glplot),this.selectBox=f(this.glplot,{innerFill:!1,outerFill:!0}),this.lastButtonState=0,this.pickResult=null,this.isMouseOver=!0,this.bounds=[1/0,1/0,-1/0,-1/0],this.stopped=!1,this.redraw=this.draw.bind(this),this.redraw()}function i(t,e){for(var r=0;r<2;++r){var n=t[r],i=e[r];if(n.length!==i.length)return!0;for(var a=0;a<n.length;++a)if(n[a].x!==i[a].x)return!0}return!1}var a,o,s=t(\"../../registry\"),l=t(\"../../plots/cartesian/axes\"),u=t(\"../../components/fx\"),c=t(\"gl-plot2d\"),h=t(\"gl-spikes2d\"),f=t(\"gl-select-box\"),d=t(\"webgl-context\"),p=t(\"./convert\"),m=t(\"./camera\"),v=t(\"../../lib/html2unicode\"),g=t(\"../../lib/show_no_webgl_msg\"),y=t(\"../../plots/cartesian/constraints\"),b=y.enforce,x=y.clean,_=[\"xaxis\",\"yaxis\"];e.exports=n;var w=n.prototype;w.makeFramework=function(){if(this.staticPlot){if(!(o||(a=document.createElement(\"canvas\"),o=d({canvas:a,preserveDrawingBuffer:!1,premultipliedAlpha:!0,antialias:!0}))))throw new Error(\"Error creating static canvas/context for image server\");this.canvas=a,this.gl=o}else{var t=document.createElement(\"canvas\"),e=d({canvas:t,premultipliedAlpha:!0});e||g(this),this.canvas=t,this.gl=e}var r=this.canvas;r.style.width=\"100%\",r.style.height=\"100%\",r.style.position=\"absolute\",r.style.top=\"0px\",r.style.left=\"0px\",r.style[\"pointer-events\"]=\"none\",this.updateSize(r),r.className+=\"user-select-none\";var n=this.svgContainer=document.createElementNS(\"http://www.w3.org/2000/svg\",\"svg\");n.style.position=\"absolute\",n.style.top=n.style.left=\"0px\",n.style.width=n.style.height=\"100%\",n.style[\"z-index\"]=20,n.style[\"pointer-events\"]=\"none\";var i=this.mouseContainer=document.createElement(\"div\");i.style.position=\"absolute\",i.style[\"pointer-events\"]=\"auto\";var s=this.container;s.appendChild(r),s.appendChild(n),s.appendChild(i);var l=this;i.addEventListener(\"mouseout\",function(){l.isMouseOver=!1,l.unhover()}),i.addEventListener(\"mouseover\",function(){l.isMouseOver=!0})},w.toImage=function(t){t||(t=\"png\"),this.stopped=!0,this.staticPlot&&this.container.appendChild(a),this.updateSize(this.canvas),this.glplot.setDirty(),this.glplot.draw();var e=this.glplot.gl,r=e.drawingBufferWidth,n=e.drawingBufferHeight;e.bindFramebuffer(e.FRAMEBUFFER,null);var i=new Uint8Array(r*n*4);e.readPixels(0,0,r,n,e.RGBA,e.UNSIGNED_BYTE,i);for(var o=0,s=n-1;o<s;++o,--s)for(var l=0;l<r;++l)for(var u=0;u<4;++u){var c=i[4*(r*o+l)+u];i[4*(r*o+l)+u]=i[4*(r*s+l)+u],i[4*(r*s+l)+u]=c}var h=document.createElement(\"canvas\");h.width=r,h.height=n;var f=h.getContext(\"2d\"),d=f.createImageData(r,n);d.data.set(i),f.putImageData(d,0,0);var p;switch(t){case\"jpeg\":p=h.toDataURL(\"image/jpeg\");break;case\"webp\":p=h.toDataURL(\"image/webp\");break;default:p=h.toDataURL(\"image/png\")}return this.staticPlot&&this.container.removeChild(a),p},w.updateSize=function(t){t||(t=this.canvas);var e=this.pixelRatio,r=this.fullLayout,n=r.width,i=r.height,a=0|Math.ceil(e*n),o=0|Math.ceil(e*i);return t.width===a&&t.height===o||(t.width=a,t.height=o),this.redraw&&this.redraw(),t},w.computeTickMarks=function(){this.xaxis.setScale(),this.yaxis.setScale();for(var t=[l.calcTicks(this.xaxis),l.calcTicks(this.yaxis)],e=0;e<2;++e)for(var r=0;r<t[e].length;++r)t[e][r].text=v(t[e][r].text+\"\");return t},w.updateRefs=function(t){this.fullLayout=t;var e=l.subplotMatch,r=\"xaxis\"+this.id.match(e)[1],n=\"yaxis\"+this.id.match(e)[2];this.xaxis=this.fullLayout[r],this.yaxis=this.fullLayout[n]},w.relayoutCallback=function(){var t=this.graphDiv,e=this.xaxis,r=this.yaxis,n=t.layout;n.xaxis.autorange=e.autorange,n.xaxis.range=e.range.slice(0),n.yaxis.autorange=r.autorange,n.yaxis.range=r.range.slice(0);var i={lastInputTime:this.camera.lastInputTime};i[e._name]=e.range.slice(0),i[r._name]=r.range.slice(0),t.emit(\"plotly_relayout\",i)},w.cameraChanged=function(){var t=this.camera;this.glplot.setDataBox(this.calcDataBox());var e=this.computeTickMarks();i(e,this.glplotOptions.ticks)&&(this.glplotOptions.ticks=e,this.glplotOptions.dataBox=t.dataBox,this.glplot.update(this.glplotOptions),this.handleAnnotations())},w.handleAnnotations=function(){for(var t=this.graphDiv,e=this.fullLayout.annotations,r=0;r<e.length;r++){var n=e[r];n.xref===this.xaxis._id&&n.yref===this.yaxis._id&&s.getComponentMethod(\"annotations\",\"drawOne\")(t,r)}},w.destroy=function(){if(this.glplot){var t=this.traces;t&&Object.keys(t).map(function(e){t[e].dispose(),delete t[e]}),this.glplot.dispose(),this.staticPlot||this.container.removeChild(this.canvas),this.container.removeChild(this.svgContainer),this.container.removeChild(this.mouseContainer),this.fullData=null,this.glplot=null,this.stopped=!0,this.camera.mouseListener.enabled=!1,this.mouseContainer.removeEventListener(\"wheel\",this.camera.wheelListener),this.camera=null}},w.plot=function(t,e,r){var n=this.glplot;this.updateRefs(r),this.updateTraces(t,e),this.updateFx(r.dragmode);var i=r.width,a=r.height;this.updateSize(this.canvas);var o=this.glplotOptions;o.merge(r),o.screenBox=[0,0,i,a];var s={_fullLayout:{_axisConstraintGroups:this.graphDiv._fullLayout._axisConstraintGroups,xaxis:this.xaxis,yaxis:this.yaxis}};x(s,this.xaxis),x(s,this.yaxis);var u=r._size,c=this.xaxis.domain,h=this.yaxis.domain;o.viewBox=[u.l+c[0]*u.w,u.b+h[0]*u.h,i-u.r-(1-c[1])*u.w,a-u.t-(1-h[1])*u.h],this.mouseContainer.style.width=u.w*(c[1]-c[0])+\"px\",this.mouseContainer.style.height=u.h*(h[1]-h[0])+\"px\",this.mouseContainer.height=u.h*(h[1]-h[0]),this.mouseContainer.style.left=u.l+c[0]*u.w+\"px\",this.mouseContainer.style.top=u.t+(1-h[1])*u.h+\"px\";var f=this.bounds;f[0]=f[1]=1/0,f[2]=f[3]=-1/0;var d,p,m=Object.keys(this.traces);for(p=0;p<m.length;++p)for(var v=this.traces[m[p]],g=0;g<2;++g)f[g]=Math.min(f[g],v.bounds[g]),f[g+2]=Math.max(f[g+2],v.bounds[g+2]);for(p=0;p<2;++p)f[p]>f[p+2]&&(f[p]=-1,f[p+2]=1),d=this[_[p]],d._length=o.viewBox[p+2]-o.viewBox[p],l.doAutoRange(d),d.setScale();b(s),o.ticks=this.computeTickMarks(),o.dataBox=this.calcDataBox(),o.merge(r),n.update(o),this.glplot.draw()},w.calcDataBox=function(){var t=this.xaxis,e=this.yaxis,r=t.range,n=e.range,i=t.r2l,a=e.r2l;return[i(r[0]),a(n[0]),i(r[1]),a(n[1])]},w.setRanges=function(t){var e=this.xaxis,r=this.yaxis,n=e.l2r,i=r.l2r;e.range=[n(t[0]),n(t[2])],r.range=[i(t[1]),i(t[3])]},w.updateTraces=function(t,e){var r,n,i,a=Object.keys(this.traces);this.fullData=t;t:for(r=0;r<a.length;r++){var o=a[r],s=this.traces[o];for(n=0;n<t.length;n++)if(i=t[n],i.uid===o&&i.type===s.type)continue t;s.dispose(),delete this.traces[o]}for(r=0;r<t.length;r++){i=t[r];var l=e[r],u=this.traces[i.uid];u?u.update(i,l):(u=i._module.plot(this,i,l),this.traces[i.uid]=u)}this.glplot.objects.sort(function(t,e){return t._trace.index-e._trace.index})},w.updateFx=function(t){this.mouseContainer.style[\"pointer-events\"]=\"lasso\"===t||\"select\"===t?\"none\":\"auto\",this.mouseContainer.style.cursor=\"pan\"===t?\"move\":\"zoom\"===t?\"crosshair\":null},w.emitPointAction=function(t,e){for(var r,n=t.trace.uid,i=t.pointIndex,a=0;a<this.fullData.length;a++)this.fullData[a].uid===n&&(r=this.fullData[a]);var o={x:t.traceCoord[0],y:t.traceCoord[1],curveNumber:r.index,pointNumber:i,data:r._input,fullData:this.fullData,xaxis:this.xaxis,yaxis:this.yaxis};u.appendArrayPointValue(o,r,i),this.graphDiv.emit(e,{points:[o]})},w.draw=function(){if(!this.stopped){requestAnimationFrame(this.redraw);var t=this.glplot,e=this.camera,r=e.mouseListener,n=1===this.lastButtonState&&0===r.buttons,i=this.fullLayout;this.lastButtonState=r.buttons,this.cameraChanged();var a,o=r.x*t.pixelRatio,s=this.canvas.height-t.pixelRatio*r.y;if(e.boxEnabled&&\"zoom\"===i.dragmode){this.selectBox.enabled=!0;for(var l=this.selectBox.selectBox=[Math.min(e.boxStart[0],e.boxEnd[0]),Math.min(e.boxStart[1],e.boxEnd[1]),Math.max(e.boxStart[0],e.boxEnd[0]),Math.max(e.boxStart[1],e.boxEnd[1])],c=0;c<2;c++)e.boxStart[c]===e.boxEnd[c]&&(l[c]=t.dataBox[c],l[c+2]=t.dataBox[c+2]);t.setDirty()}else if(!e.panning&&this.isMouseOver){this.selectBox.enabled=!1;var h=i._size,f=this.xaxis.domain,d=this.yaxis.domain;a=t.pick(o/t.pixelRatio+h.l+f[0]*h.w,s/t.pixelRatio-(h.t+(1-d[1])*h.h));var p=a&&a.object._trace.handlePick(a);if(p&&n&&this.emitPointAction(p,\"plotly_click\"),a&&\"skip\"!==a.object._trace.hoverinfo&&i.hovermode&&p&&(!this.lastPickResult||this.lastPickResult.traceUid!==p.trace.uid||this.lastPickResult.dataCoord[0]!==p.dataCoord[0]||this.lastPickResult.dataCoord[1]!==p.dataCoord[1])){var m=p;this.lastPickResult={traceUid:p.trace?p.trace.uid:null,dataCoord:p.dataCoord.slice()},this.spikes.update({center:a.dataCoord}),m.screenCoord=[((t.viewBox[2]-t.viewBox[0])*(a.dataCoord[0]-t.dataBox[0])/(t.dataBox[2]-t.dataBox[0])+t.viewBox[0])/t.pixelRatio,(this.canvas.height-(t.viewBox[3]-t.viewBox[1])*(a.dataCoord[1]-t.dataBox[1])/(t.dataBox[3]-t.dataBox[1])-t.viewBox[1])/t.pixelRatio],this.emitPointAction(p,\"plotly_hover\");var v=this.fullData[m.trace.index]||{},g=m.pointIndex,y=u.castHoverinfo(v,i,g);if(y&&\"all\"!==y){var b=y.split(\"+\");-1===b.indexOf(\"x\")&&(m.traceCoord[0]=void 0),-1===b.indexOf(\"y\")&&(m.traceCoord[1]=void 0),-1===b.indexOf(\"z\")&&(m.traceCoord[2]=void 0),-1===b.indexOf(\"text\")&&(m.textLabel=void 0),-1===b.indexOf(\"name\")&&(m.name=void 0)}u.loneHover({x:m.screenCoord[0],y:m.screenCoord[1],xLabel:this.hoverFormatter(\"xaxis\",m.traceCoord[0]),yLabel:this.hoverFormatter(\"yaxis\",m.traceCoord[1]),zLabel:m.traceCoord[2],text:m.textLabel,name:m.name,color:u.castHoverOption(v,g,\"bgcolor\")||m.color,borderColor:u.castHoverOption(v,g,\"bordercolor\"),fontFamily:u.castHoverOption(v,g,\"font.family\"),fontSize:u.castHoverOption(v,g,\"font.size\"),fontColor:u.castHoverOption(v,g,\"font.color\")},{container:this.svgContainer,gd:this.graphDiv})}}a||this.unhover(),t.draw()}},w.unhover=function(){this.lastPickResult&&(this.spikes.update({}),this.lastPickResult=null,this.graphDiv.emit(\"plotly_unhover\"),u.loneUnhover(this.svgContainer))},w.hoverFormatter=function(t,e){if(void 0!==e){var r=this[t];return l.tickText(r,r.c2l(e),\"hover\").text}}},{\"../../components/fx\":645,\"../../lib/html2unicode\":726,\"../../lib/show_no_webgl_msg\":747,\"../../plots/cartesian/axes\":772,\"../../plots/cartesian/constraints\":779,\"../../registry\":846,\"./camera\":806,\"./convert\":807,\"gl-plot2d\":219,\"gl-select-box\":253,\"gl-spikes2d\":262,\"webgl-context\":563}],810:[function(t,e,r){\"use strict\";function n(t,e){function r(e,r,n,a){var o=p.keyBindingMode;if(!1!==o){var s=\"rotate\"===o,l=\"pan\"===o,c=\"zoom\"===o,f=!!a.control,d=!!a.alt,y=!!a.shift,b=!!(1&e),x=!!(2&e),_=!!(4&e),w=1/t.clientHeight,M=w*(r-m),k=w*(n-v),A=p.flipX?1:-1,T=p.flipY?1:-1,S=i(),E=Math.PI*p.rotateSpeed;if((s&&b&&!f&&!d&&!y||b&&!f&&!d&&y)&&u.rotate(S,A*E*M,-T*E*k,0),(l&&b&&!f&&!d&&!y||x||b&&f&&!d&&!y)&&u.pan(S,-p.translateSpeed*M*h,p.translateSpeed*k*h,0),c&&b&&!f&&!d&&!y||_||b&&!f&&d&&!y){var L=-p.zoomSpeed*k/window.innerHeight*(S-u.lastT())*100;u.pan(S,0,0,h*(Math.exp(L)-1))}return m=r,v=n,g=a,!0}}t=t||document.body,e=e||{};var n=[.01,1/0];\"distanceLimits\"in e&&(n[0]=e.distanceLimits[0],n[1]=e.distanceLimits[1]),\"zoomMin\"in e&&(n[0]=e.zoomMin),\"zoomMax\"in e&&(n[1]=e.zoomMax);var u=a({center:e.center||[0,0,0],up:e.up||[0,1,0],eye:e.eye||[0,0,10],mode:e.mode||\"orbit\",distanceLimits:n}),c=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],h=0,f=t.clientWidth,d=t.clientHeight,p={keyBindingMode:\"rotate\",view:u,element:t,delay:e.delay||16,rotateSpeed:e.rotateSpeed||1,zoomSpeed:e.zoomSpeed||1,translateSpeed:e.translateSpeed||1,flipX:!!e.flipX,flipY:!!e.flipY,modes:u.modes,tick:function(){var e=i(),r=this.delay,n=e-2*r;u.idle(e-r),u.recalcMatrix(n),u.flush(e-(100+2*r));for(var a=!0,o=u.computedMatrix,s=0;s<16;++s)a=a&&c[s]===o[s],c[s]=o[s];var l=t.clientWidth===f&&t.clientHeight===d;return f=t.clientWidth,d=t.clientHeight,a?!l:(h=Math.exp(u.computedRadius[0]),!0)},lookAt:function(t,e,r){u.lookAt(u.lastT(),t,e,r)},rotate:function(t,e,r){u.rotate(u.lastT(),t,e,r)},pan:function(t,e,r){u.pan(u.lastT(),t,e,r)},translate:function(t,e,r){u.translate(u.lastT(),t,e,r)}};Object.defineProperties(p,{matrix:{get:function(){return u.computedMatrix},set:function(t){return u.setMatrix(u.lastT(),t),u.computedMatrix},enumerable:!0},mode:{get:function(){return u.getMode()},set:function(t){var e=u.computedUp.slice(),r=u.computedEye.slice(),n=u.computedCenter.slice();if(u.setMode(t),\"turntable\"===t){var a=i();u._active.lookAt(a,r,n,e),u._active.lookAt(a+500,r,n,[0,0,1]),u._active.flush(a)}return u.getMode()},enumerable:!0},center:{get:function(){return u.computedCenter},set:function(t){return u.lookAt(u.lastT(),null,t),u.computedCenter},enumerable:!0},eye:{get:function(){return u.computedEye},set:function(t){return u.lookAt(u.lastT(),t),u.computedEye},enumerable:!0},up:{get:function(){return u.computedUp},set:function(t){return u.lookAt(u.lastT(),null,null,t),u.computedUp},enumerable:!0},distance:{get:function(){return h},set:function(t){return u.setDistance(u.lastT(),t),t},enumerable:!0},distanceLimits:{get:function(){return u.getDistanceLimits(n)},set:function(t){return u.setDistanceLimits(t),t},enumerable:!0}}),t.addEventListener(\"contextmenu\",function(t){return t.preventDefault(),!1});var m=0,v=0,g={shift:!1,control:!1,alt:!1,meta:!1};return p.mouseListener=o(t,r),t.addEventListener(\"touchstart\",function(e){var n=l(e.changedTouches[0],t);r(0,n[0],n[1],g),r(1,n[0],n[1],g)}),t.addEventListener(\"touchmove\",function(e){var n=l(e.changedTouches[0],t);r(1,n[0],n[1],g)}),t.addEventListener(\"touchend\",function(){r(0,m,v,g)}),p.wheelListener=s(t,function(t,e){if(!1!==p.keyBindingMode){var r=p.flipX?1:-1,n=p.flipY?1:-1,a=i();if(Math.abs(t)>Math.abs(e))u.rotate(a,0,0,-t*r*Math.PI*p.rotateSpeed/window.innerWidth);else{var o=-p.zoomSpeed*n*e/window.innerHeight*(a-u.lastT())/20;u.pan(a,0,0,h*(Math.exp(o)-1))}}},!0),p}e.exports=n;var i=t(\"right-now\"),a=t(\"3d-view\"),o=t(\"mouse-change\"),s=t(\"mouse-wheel\"),l=t(\"mouse-event-offset\")},{\"3d-view\":37,\"mouse-change\":452,\"mouse-event-offset\":453,\"mouse-wheel\":455,\"right-now\":502}],811:[function(t,e,r){\"use strict\";var n=t(\"../../plot_api/edit_types\").overrideAll,i=t(\"../../components/fx/layout_attributes\"),a=t(\"./scene\"),o=t(\"../plots\"),s=t(\"../../lib\"),l=t(\"../../constants/xmlns_namespaces\");r.name=\"gl3d\",r.attr=\"scene\",r.idRoot=\"scene\",r.idRegex=r.attrRegex=s.counterRegex(\"scene\"),r.attributes=t(\"./layout/attributes\"),r.layoutAttributes=t(\"./layout/layout_attributes\"),r.baseLayoutAttrOverrides=n({hoverlabel:i.hoverlabel},\"plot\",\"nested\"),r.supplyLayoutDefaults=t(\"./layout/defaults\"),r.plot=function(t){for(var e=t._fullLayout,r=t._fullData,n=o.getSubplotIds(e,\"gl3d\"),i=0;i<n.length;i++){var l=n[i],u=o.getSubplotData(r,\"gl3d\",l),c=e[l],h=c._scene;h||(h=new a({id:l,graphDiv:t,container:t.querySelector(\".gl-container\"),staticPlot:t._context.staticPlot,plotGlPixelRatio:t._context.plotGlPixelRatio},e),c._scene=h),h.cameraInitial||(h.cameraInitial=s.extendDeep({},c.camera)),h.plot(u,e,t.layout)}},r.clean=function(t,e,r,n){for(var i=o.getSubplotIds(n,\"gl3d\"),a=0;a<i.length;a++){var s=i[a];!e[s]&&n[s]._scene&&(n[s]._scene.destroy(),n._infolayer&&n._infolayer.selectAll(\".annotation-\"+s).remove())}},r.toSVG=function(t){for(var e=t._fullLayout,r=o.getSubplotIds(e,\"gl3d\"),n=e._size,i=0;i<r.length;i++){var a=e[r[i]],s=a.domain,u=a._scene,c=u.toImage(\"png\");e._glimages.append(\"svg:image\").attr({xmlns:l.svg,\"xlink:href\":c,x:n.l+n.w*s.x[0],y:n.t+n.h*(1-s.y[1]),width:n.w*(s.x[1]-s.x[0]),height:n.h*(s.y[1]-s.y[0]),preserveAspectRatio:\"none\"}),u.destroy()}},r.cleanId=function(t){if(t.match(/^scene[0-9]*$/)){var e=t.substr(5);return\"1\"===e&&(e=\"\"),\"scene\"+e}},r.updateFx=function(t){for(var e=o.getSubplotIds(t,\"gl3d\"),r=0;r<e.length;r++){t[e[r]]._scene.updateFx(t.dragmode,t.hovermode)}}},{\"../../components/fx/layout_attributes\":646,\"../../constants/xmlns_namespaces\":709,\"../../lib\":728,\"../../plot_api/edit_types\":756,\"../plots\":831,\"./layout/attributes\":812,\"./layout/defaults\":816,\"./layout/layout_attributes\":817,\"./scene\":821}],812:[function(t,e,r){\"use strict\";e.exports={scene:{valType:\"subplotid\",dflt:\"scene\",editType:\"calc+clearAxisTypes\"}}},{}],813:[function(t,e,r){\"use strict\";var n=t(\"../../../components/color\"),i=t(\"../../cartesian/layout_attributes\"),a=t(\"../../../lib/extend\").extendFlat,o=t(\"../../../plot_api/edit_types\").overrideAll;e.exports=o({visible:i.visible,showspikes:{valType:\"boolean\",dflt:!0},spikesides:{valType:\"boolean\",dflt:!0},spikethickness:{valType:\"number\",min:0,dflt:2},spikecolor:{valType:\"color\",dflt:n.defaultLine},showbackground:{valType:\"boolean\",dflt:!1},backgroundcolor:{valType:\"color\",dflt:\"rgba(204, 204, 204, 0.5)\"},showaxeslabels:{valType:\"boolean\",dflt:!0},color:i.color,categoryorder:i.categoryorder,categoryarray:i.categoryarray,title:i.title,titlefont:i.titlefont,type:i.type,autorange:i.autorange,rangemode:i.rangemode,range:i.range,tickmode:i.tickmode,nticks:i.nticks,tick0:i.tick0,dtick:i.dtick,tickvals:i.tickvals,ticktext:i.ticktext,ticks:i.ticks,mirror:i.mirror,ticklen:i.ticklen,tickwidth:i.tickwidth,tickcolor:i.tickcolor,showticklabels:i.showticklabels,tickfont:i.tickfont,tickangle:i.tickangle,tickprefix:i.tickprefix,showtickprefix:i.showtickprefix,ticksuffix:i.ticksuffix,showticksuffix:i.showticksuffix,showexponent:i.showexponent,exponentformat:i.exponentformat,separatethousands:i.separatethousands,tickformat:i.tickformat,hoverformat:i.hoverformat,showline:i.showline,linecolor:i.linecolor,linewidth:i.linewidth,showgrid:i.showgrid,gridcolor:a({},i.gridcolor,{dflt:\"rgb(204, 204, 204)\"}),gridwidth:i.gridwidth,zeroline:i.zeroline,zerolinecolor:i.zerolinecolor,zerolinewidth:i.zerolinewidth},\"plot\",\"from-root\")},{\"../../../components/color\":604,\"../../../lib/extend\":717,\"../../../plot_api/edit_types\":756,\"../../cartesian/layout_attributes\":783}],814:[function(t,e,r){\"use strict\";var n=t(\"tinycolor2\").mix,i=t(\"../../../lib\"),a=t(\"./axis_attributes\"),o=t(\"../../cartesian/type_defaults\"),s=t(\"../../cartesian/axis_defaults\"),l=[\"xaxis\",\"yaxis\",\"zaxis\"];e.exports=function(t,e,r){function u(t,e){return i.coerce(c,h,a,t,e)}for(var c,h,f=0;f<l.length;f++){var d=l[f];c=t[d]||{},h=e[d]={_id:d[0]+r.scene,_name:d},o(c,h,u,r.data),s(c,h,u,{font:r.font,letter:d[0],data:r.data,showGrid:!0,bgColor:r.bgColor,calendar:r.calendar}),u(\"gridcolor\",n(h.color,r.bgColor,13600/187).toRgbString()),u(\"title\",d[0]),h.setScale=i.noop,u(\"showspikes\")&&(u(\"spikesides\"),u(\"spikethickness\"),u(\"spikecolor\",h.color)),u(\"showaxeslabels\"),u(\"showbackground\")&&u(\"backgroundcolor\")}}},{\"../../../lib\":728,\"../../cartesian/axis_defaults\":774,\"../../cartesian/type_defaults\":794,\"./axis_attributes\":813,tinycolor2:534}],815:[function(t,e,r){\"use strict\";function n(){this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.tickEnable=[!0,!0,!0],this.tickFont=[\"sans-serif\",\"sans-serif\",\"sans-serif\"],this.tickSize=[12,12,12],this.tickAngle=[0,0,0],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[18,18,18],this.labels=[\"x\",\"y\",\"z\"],this.labelEnable=[!0,!0,!0],this.labelFont=[\"Open Sans\",\"Open Sans\",\"Open Sans\"],this.labelSize=[20,20,20],this.labelAngle=[0,0,0],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[30,30,30],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[10,10,10],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!0,!0,!0],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._defaultTickPad=this.tickPad.slice(),this._defaultLabelPad=this.labelPad.slice(),this._defaultLineTickLength=this.lineTickLength.slice()}function i(t){var e=new n;return e.merge(t),e}var a=t(\"../../../lib/html2unicode\"),o=t(\"../../../lib/str2rgbarray\"),s=[\"xaxis\",\"yaxis\",\"zaxis\"];n.prototype.merge=function(t){for(var e=this,r=0;r<3;++r){var n=t[s[r]];n.visible?(e.labels[r]=a(n.title),\"titlefont\"in n&&(n.titlefont.color&&(e.labelColor[r]=o(n.titlefont.color)),n.titlefont.family&&(e.labelFont[r]=n.titlefont.family),n.titlefont.size&&(e.labelSize[r]=n.titlefont.size)),\"showline\"in n&&(e.lineEnable[r]=n.showline),\"linecolor\"in n&&(e.lineColor[r]=o(n.linecolor)),\"linewidth\"in n&&(e.lineWidth[r]=n.linewidth),\"showgrid\"in n&&(e.gridEnable[r]=n.showgrid),\"gridcolor\"in n&&(e.gridColor[r]=o(n.gridcolor)),\"gridwidth\"in n&&(e.gridWidth[r]=n.gridwidth),\"log\"===n.type?e.zeroEnable[r]=!1:\"zeroline\"in n&&(e.zeroEnable[r]=n.zeroline),\"zerolinecolor\"in n&&(e.zeroLineColor[r]=o(n.zerolinecolor)),\"zerolinewidth\"in n&&(e.zeroLineWidth[r]=n.zerolinewidth),\"ticks\"in n&&n.ticks?e.lineTickEnable[r]=!0:e.lineTickEnable[r]=!1,\"ticklen\"in n&&(e.lineTickLength[r]=e._defaultLineTickLength[r]=n.ticklen),\"tickcolor\"in n&&(e.lineTickColor[r]=o(n.tickcolor)),\"tickwidth\"in n&&(e.lineTickWidth[r]=n.tickwidth),\"tickangle\"in n&&(e.tickAngle[r]=\"auto\"===n.tickangle?0:Math.PI*-n.tickangle/180),\"showticklabels\"in n&&(e.tickEnable[r]=n.showticklabels),\"tickfont\"in n&&(n.tickfont.color&&(e.tickColor[r]=o(n.tickfont.color)),n.tickfont.family&&(e.tickFont[r]=n.tickfont.family),n.tickfont.size&&(e.tickSize[r]=n.tickfont.size)),\"mirror\"in n?-1!==[\"ticks\",\"all\",\"allticks\"].indexOf(n.mirror)?(e.lineTickMirror[r]=!0,e.lineMirror[r]=!0):!0===n.mirror?(e.lineTickMirror[r]=!1,e.lineMirror[r]=!0):(e.lineTickMirror[r]=!1,e.lineMirror[r]=!1):e.lineMirror[r]=!1,\"showbackground\"in n&&!1!==n.showbackground?(e.backgroundEnable[r]=!0,e.backgroundColor[r]=o(n.backgroundcolor)):e.backgroundEnable[r]=!1):(e.tickEnable[r]=!1,e.labelEnable[r]=!1,e.lineEnable[r]=!1,e.lineTickEnable[r]=!1,e.gridEnable[r]=!1,e.zeroEnable[r]=!1,e.backgroundEnable[r]=!1)}},e.exports=i},{\"../../../lib/html2unicode\":726,\"../../../lib/str2rgbarray\":749}],816:[function(t,e,r){\"use strict\";function n(t,e,r,n){for(var i=r(\"bgcolor\"),s=a.combine(i,n.paper_bgcolor),u=[\"up\",\"center\",\"eye\"],c=0;c<u.length;c++)r(\"camera.\"+u[c]+\".x\"),r(\"camera.\"+u[c]+\".y\"),r(\"camera.\"+u[c]+\".z\");var h=!!r(\"aspectratio.x\")&&!!r(\"aspectratio.y\")&&!!r(\"aspectratio.z\"),f=h?\"manual\":\"auto\",d=r(\"aspectmode\",f);h||(t.aspectratio=e.aspectratio={x:1,y:1,z:1},\"manual\"===d&&(e.aspectmode=\"auto\"),t.aspectmode=e.aspectmode),l(t,e,{font:n.font,scene:n.id,data:n.fullData,bgColor:s,calendar:n.calendar}),o.getComponentMethod(\"annotations3d\",\"handleDefaults\")(t,e,n),r(\"dragmode\",n.getDfltFromLayout(\"dragmode\")),r(\"hovermode\",n.getDfltFromLayout(\"hovermode\"))}var i=t(\"../../../lib\"),a=t(\"../../../components/color\"),o=t(\"../../../registry\"),s=t(\"../../subplot_defaults\"),l=t(\"./axis_defaults\"),u=t(\"./layout_attributes\");e.exports=function(t,e,r){function a(e){if(!o){return i.validate(t[e],u[e])?t[e]:void 0}}var o=e._basePlotModules.length>1;s(t,e,r,{type:\"gl3d\",attributes:u,handleDefaults:n,fullLayout:e,font:e.font,fullData:r,getDfltFromLayout:a,paper_bgcolor:e.paper_bgcolor,calendar:e.calendar})}},{\"../../../components/color\":604,\"../../../lib\":728,\"../../../registry\":846,\"../../subplot_defaults\":838,\"./axis_defaults\":814,\"./layout_attributes\":817}],817:[function(t,e,r){\"use strict\";function n(t,e,r){return{x:{valType:\"number\",dflt:t,editType:\"camera\"},y:{valType:\"number\",dflt:e,editType:\"camera\"},z:{valType:\"number\",dflt:r,editType:\"camera\"},editType:\"camera\"}}var i=t(\"./axis_attributes\"),a=t(\"../../../lib/extend\").extendFlat,o=t(\"../../../lib\").counterRegex;e.exports={_arrayAttrRegexps:[o(\"scene\",\".annotations\",!0)],bgcolor:{valType:\"color\",dflt:\"rgba(0,0,0,0)\",editType:\"plot\"},camera:{up:a(n(0,0,1),{}),center:a(n(0,0,0),{}),eye:a(n(1.25,1.25,1.25),{}),editType:\"camera\"},domain:{x:{valType:\"info_array\",items:[{valType:\"number\",min:0,max:1,editType:\"plot\"},{valType:\"number\",min:0,max:1,editType:\"plot\"}],dflt:[0,1],editType:\"plot\"},y:{valType:\"info_array\",items:[{valType:\"number\",min:0,max:1,editType:\"plot\"},{valType:\"number\",min:0,max:1,editType:\"plot\"}],dflt:[0,1],editType:\"plot\"},editType:\"plot\"},aspectmode:{valType:\"enumerated\",values:[\"auto\",\"cube\",\"data\",\"manual\"],dflt:\"auto\",editType:\"plot\",impliedEdits:{\"aspectratio.x\":void 0,\"aspectratio.y\":void 0,\"aspectratio.z\":void 0}},aspectratio:{x:{valType:\"number\",min:0,editType:\"plot\",impliedEdits:{\"^aspectmode\":\"manual\"}},y:{valType:\"number\",min:0,editType:\"plot\",impliedEdits:{\"^aspectmode\":\"manual\"}},z:{valType:\"number\",min:0,editType:\"plot\",impliedEdits:{\"^aspectmode\":\"manual\"}},editType:\"plot\",impliedEdits:{aspectmode:\"manual\"}},xaxis:i,yaxis:i,zaxis:i,dragmode:{valType:\"enumerated\",values:[\"orbit\",\"turntable\",\"zoom\",\"pan\",!1],dflt:\"turntable\",editType:\"plot\"},hovermode:{valType:\"enumerated\",values:[\"closest\",!1],dflt:\"closest\",editType:\"modebar\"},editType:\"plot\",_deprecated:{cameraposition:{valType:\"info_array\",editType:\"camera\"}}}},{\"../../../lib\":728,\"../../../lib/extend\":717,\"./axis_attributes\":813}],818:[function(t,e,r){\"use strict\";function n(){this.enabled=[!0,!0,!0],this.colors=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.drawSides=[!0,!0,!0],this.lineWidth=[1,1,1]}function i(t){var e=new n;return e.merge(t),e}var a=t(\"../../../lib/str2rgbarray\"),o=[\"xaxis\",\"yaxis\",\"zaxis\"];n.prototype.merge=function(t){for(var e=0;e<3;++e){var r=t[o[e]];r.visible?(this.enabled[e]=r.showspikes,this.colors[e]=a(r.spikecolor),this.drawSides[e]=r.spikesides,this.lineWidth[e]=r.spikethickness):(this.enabled[e]=!1,this.drawSides[e]=!1)}},e.exports=i},{\"../../../lib/str2rgbarray\":749}],819:[function(t,e,r){\"use strict\";function n(t){for(var e=new Array(3),r=0;r<3;++r){for(var n=t[r],i=new Array(n.length),a=0;a<n.length;++a)i[a]=n[a].x;e[r]=i}return e}function i(t){for(var e=t.axesOptions,r=t.glplot.axesPixels,i=t.fullSceneLayout,c=[[],[],[]],h=0;h<3;++h){var f=i[l[h]];if(f._length=(r[h].hi-r[h].lo)*r[h].pixelsPerDataUnit/t.dataScale[h],Math.abs(f._length)===1/0)c[h]=[];else{f.range[0]=r[h].lo/t.dataScale[h],f.range[1]=r[h].hi/t.dataScale[h],f._m=1/(t.dataScale[h]*r[h].pixelsPerDataUnit),f.range[0]===f.range[1]&&(f.range[0]-=1,f.range[1]+=1);var d=f.tickmode;if(\"auto\"===f.tickmode){f.tickmode=\"linear\";var p=f.nticks||o.constrain(f._length/40,4,9);a.autoTicks(f,Math.abs(f.range[1]-f.range[0])/p)}for(var m=a.calcTicks(f),v=0;v<m.length;++v)m[v].x=m[v].x*t.dataScale[h],m[v].text=s(m[v].text);c[h]=m,f.tickmode=d}}e.ticks=c;for(var h=0;h<3;++h){u[h]=.5*(t.glplot.bounds[0][h]+t.glplot.bounds[1][h]);for(var v=0;v<2;++v)e.bounds[v][h]=t.glplot.bounds[v][h]}t.contourLevels=n(c)}e.exports=i;var a=t(\"../../cartesian/axes\"),o=t(\"../../../lib\"),s=t(\"../../../lib/html2unicode\"),l=[\"xaxis\",\"yaxis\",\"zaxis\"],u=[0,0,0]},{\"../../../lib\":728,\"../../../lib/html2unicode\":726,\"../../cartesian/axes\":772}],820:[function(t,e,r){\"use strict\";function n(t,e){var r,n,i=[0,0,0,0];for(r=0;r<4;++r)for(n=0;n<4;++n)i[n]+=t[4*r+n]*e[r];return i}function i(t,e){return n(t.projection,n(t.view,n(t.model,[e[0],e[1],e[2],1])))}e.exports=i},{}],821:[function(t,e,r){\"use strict\";function n(t){function e(e,r){var n=t.fullSceneLayout[e];return v.tickText(n,n.d2l(r),\"hover\").text}var r,n=t.svgContainer,i=t.container.getBoundingClientRect(),a=i.width,o=i.height;n.setAttributeNS(null,\"viewBox\",\"0 0 \"+a+\" \"+o),n.setAttributeNS(null,\"width\",a),n.setAttributeNS(null,\"height\",o),k(t),t.glplot.axes.update(t.axesOptions);for(var s=Object.keys(t.traces),l=null,u=t.glplot.selection,c=0;c<s.length;++c)r=t.traces[s[c]],\"skip\"!==r.data.hoverinfo&&r.handlePick(u)&&(l=r),r.setContourLevels&&r.setContourLevels();var h;if(null!==l){var f=_(t.glplot.cameraParams,u.dataCoordinate);r=l.data;var d=u.index,p=g.castHoverinfo(r,t.fullLayout,d),m=e(\"xaxis\",u.traceCoordinate[0]),y=e(\"yaxis\",u.traceCoordinate[1]),b=e(\"zaxis\",u.traceCoordinate[2]);if(\"all\"!==p){var x=p.split(\"+\");-1===x.indexOf(\"x\")&&(m=void 0),-1===x.indexOf(\"y\")&&(y=void 0),-1===x.indexOf(\"z\")&&(b=void 0),-1===x.indexOf(\"text\")&&(u.textLabel=void 0),-1===x.indexOf(\"name\")&&(l.name=void 0)}t.fullSceneLayout.hovermode&&g.loneHover({x:(.5+.5*f[0]/f[3])*a,y:(.5-.5*f[1]/f[3])*o,xLabel:m,yLabel:y,zLabel:b,text:u.textLabel,name:l.name,color:g.castHoverOption(r,d,\"bgcolor\")||l.color,borderColor:g.castHoverOption(r,d,\"bordercolor\"),fontFamily:g.castHoverOption(r,d,\"font.family\"),fontSize:g.castHoverOption(r,d,\"font.size\"),fontColor:g.castHoverOption(r,d,\"font.color\")},{container:n,gd:t.graphDiv});var w={x:u.traceCoordinate[0],y:u.traceCoordinate[1],z:u.traceCoordinate[2],data:r._input,fullData:r,curveNumber:r.index,pointNumber:d};g.appendArrayPointValue(w,r,d);var M={points:[w]};u.buttons&&u.distance<5?t.graphDiv.emit(\"plotly_click\",M):t.graphDiv.emit(\"plotly_hover\",M),h=M}else g.loneUnhover(n),t.graphDiv.emit(\"plotly_unhover\",h);t.drawAnnotations(t)}function i(t,e,r,i){var a={canvas:r,gl:i,container:t.container,axes:t.axesOptions,spikes:t.spikeOptions,pickRadius:10,snapToData:!0,autoScale:!0,autoBounds:!1};if(t.staticMode){if(!(h||(c=document.createElement(\"canvas\"),h=d({canvas:c,preserveDrawingBuffer:!0,premultipliedAlpha:!0,antialias:!0}))))throw new Error(\"error creating static canvas/context for image server\");a.pixelRatio=t.pixelRatio,a.gl=h,a.canvas=c}try{t.glplot=f(a)}catch(e){b(t)}var o=function(t){if(!1!==t.fullSceneLayout.dragmode){var e={};e[t.id+\".camera\"]=u(t.camera),t.saveCamera(t.graphDiv.layout),t.graphDiv.emit(\"plotly_relayout\",e)}};if(t.glplot.canvas.addEventListener(\"mouseup\",o.bind(null,t)),t.glplot.canvas.addEventListener(\"wheel\",o.bind(null,t)),t.staticMode||t.glplot.canvas.addEventListener(\"webglcontextlost\",function(t){m.warn(\"Lost WebGL context.\"),t.preventDefault()}),!t.camera){var s=t.fullSceneLayout.camera;t.camera=x(t.container,{center:[s.center.x,s.center.y,s.center.z],\n", "eye:[s.eye.x,s.eye.y,s.eye.z],up:[s.up.x,s.up.y,s.up.z],zoomMin:.1,zoomMax:100,mode:\"orbit\"})}return t.glplot.camera=t.camera,t.glplot.oncontextloss=function(){t.recoverContext()},t.glplot.onrender=n.bind(null,t),t.traces={},!0}function a(t,e){var r=document.createElement(\"div\"),n=t.container;this.graphDiv=t.graphDiv;var a=document.createElementNS(\"http://www.w3.org/2000/svg\",\"svg\");a.style.position=\"absolute\",a.style.top=a.style.left=\"0px\",a.style.width=a.style.height=\"100%\",a.style[\"z-index\"]=20,a.style[\"pointer-events\"]=\"none\",r.appendChild(a),this.svgContainer=a,r.id=t.id,r.style.position=\"absolute\",r.style.top=r.style.left=\"0px\",r.style.width=r.style.height=\"100%\",n.appendChild(r),this.fullLayout=e,this.id=t.id||\"scene\",this.fullSceneLayout=e[this.id],this.plotArgs=[[],{},{}],this.axesOptions=w(e[this.id]),this.spikeOptions=M(e[this.id]),this.container=r,this.staticMode=!!t.staticPlot,this.pixelRatio=t.plotGlPixelRatio||2,this.dataScale=[1,1,1],this.contourLevels=[[],[],[]],this.convertAnnotations=p.getComponentMethod(\"annotations3d\",\"convert\"),this.drawAnnotations=p.getComponentMethod(\"annotations3d\",\"draw\"),i(this,e)}function o(t,e,r,n,i){for(var a,o=0;o<e.length;++o)if(Array.isArray(e[o]))for(var s=0;s<e[o].length;++s)a=t.d2l(e[o][s],0,i),!isNaN(a)&&isFinite(a)&&(n[0][r]=Math.min(n[0][r],a),n[1][r]=Math.max(n[1][r],a));else a=t.d2l(e[o],0,i),!isNaN(a)&&isFinite(a)&&(n[0][r]=Math.min(n[0][r],a),n[1][r]=Math.max(n[1][r],a))}function s(t,e,r){var n=t.fullSceneLayout;o(n.xaxis,e.x,0,r,e.xcalendar),o(n.yaxis,e.y,1,r,e.ycalendar),o(n.zaxis,e.z,2,r,e.zcalendar)}function l(t){return[[t.eye.x,t.eye.y,t.eye.z],[t.center.x,t.center.y,t.center.z],[t.up.x,t.up.y,t.up.z]]}function u(t){return{up:{x:t.up[0],y:t.up[1],z:t.up[2]},center:{x:t.center[0],y:t.center[1],z:t.center[2]},eye:{x:t.eye[0],y:t.eye[1],z:t.eye[2]}}}var c,h,f=t(\"gl-plot3d\"),d=t(\"webgl-context\"),p=t(\"../../registry\"),m=t(\"../../lib\"),v=t(\"../../plots/cartesian/axes\"),g=t(\"../../components/fx\"),y=t(\"../../lib/str2rgbarray\"),b=t(\"../../lib/show_no_webgl_msg\"),x=t(\"./camera\"),_=t(\"./project\"),w=t(\"./layout/convert\"),M=t(\"./layout/spikes\"),k=t(\"./layout/tick_marks\"),A=a.prototype;A.recoverContext=function(){function t(){return r.isContextLost()?void requestAnimationFrame(t):i(e,e.fullLayout,n,r)?void e.plot.apply(e,e.plotArgs):void m.error(\"Catastrophic and unrecoverable WebGL error. Context lost.\")}var e=this,r=this.glplot.gl,n=this.glplot.canvas;this.glplot.dispose(),requestAnimationFrame(t)};var T=[\"xaxis\",\"yaxis\",\"zaxis\"];A.plot=function(t,e,r){if(this.plotArgs=[t,e,r],!this.glplot.contextLost){var n,i,a,o,l,u,c=e[this.id],h=r[this.id];c.bgcolor?this.glplot.clearColor=y(c.bgcolor):this.glplot.clearColor=[0,0,0,0],this.glplot.snapToData=!0,this.fullLayout=e,this.fullSceneLayout=c,this.glplotLayout=c,this.axesOptions.merge(c),this.spikeOptions.merge(c),this.setCamera(c.camera),this.updateFx(c.dragmode,c.hovermode),this.glplot.update({}),this.setConvert(l),t?Array.isArray(t)||(t=[t]):t=[];var f=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]];for(a=0;a<t.length;++a)n=t[a],!0===n.visible&&s(this,n,f);var d=[1,1,1];for(o=0;o<3;++o)f[0][o]>f[1][o]?d[o]=1:f[1][o]===f[0][o]?d[o]=1:d[o]=1/(f[1][o]-f[0][o]);for(this.dataScale=d,this.convertAnnotations(this),a=0;a<t.length;++a)n=t[a],!0===n.visible&&(i=this.traces[n.uid],i?i.update(n):(i=n._module.plot(this,n),this.traces[n.uid]=i),i.name=n.name);var p=Object.keys(this.traces);t:for(a=0;a<p.length;++a){for(o=0;o<t.length;++o)if(t[o].uid===p[a]&&!0===t[o].visible)continue t;i=this.traces[p[a]],i.dispose(),delete this.traces[p[a]]}this.glplot.objects.sort(function(t,e){return t._trace.data.index-e._trace.data.index});var m=[[0,0,0],[0,0,0]],v=[],g={};for(a=0;a<3;++a){if(l=c[T[a]],u=l.type,u in g?(g[u].acc*=d[a],g[u].count+=1):g[u]={acc:d[a],count:1},l.autorange){m[0][a]=1/0,m[1][a]=-1/0;var b=this.glplot.objects,x=this.fullSceneLayout.annotations||[],_=l._name.charAt(0);for(o=0;o<b.length;o++){var w=b[o].bounds;m[0][a]=Math.min(m[0][a],w[0][a]/d[a]),m[1][a]=Math.max(m[1][a],w[1][a]/d[a])}for(o=0;o<x.length;o++){var M=x[o];if(M.visible){var k=l.r2l(M[_]);m[0][a]=Math.min(m[0][a],k),m[1][a]=Math.max(m[1][a],k)}}if(\"rangemode\"in l&&\"tozero\"===l.rangemode&&(m[0][a]=Math.min(m[0][a],0),m[1][a]=Math.max(m[1][a],0)),m[0][a]>m[1][a])m[0][a]=-1,m[1][a]=1;else{var A=m[1][a]-m[0][a];m[0][a]-=A/32,m[1][a]+=A/32}}else{var S=l.range;m[0][a]=l.r2l(S[0]),m[1][a]=l.r2l(S[1])}m[0][a]===m[1][a]&&(m[0][a]-=1,m[1][a]+=1),v[a]=m[1][a]-m[0][a],this.glplot.bounds[0][a]=m[0][a]*d[a],this.glplot.bounds[1][a]=m[1][a]*d[a]}var E=[1,1,1];for(a=0;a<3;++a){l=c[T[a]],u=l.type;var L=g[u];E[a]=Math.pow(L.acc,1/L.count)/d[a]}var C;if(\"auto\"===c.aspectmode)C=Math.max.apply(null,E)/Math.min.apply(null,E)<=4?E:[1,1,1];else if(\"cube\"===c.aspectmode)C=[1,1,1];else if(\"data\"===c.aspectmode)C=E;else{if(\"manual\"!==c.aspectmode)throw new Error(\"scene.js aspectRatio was not one of the enumerated types\");var I=c.aspectratio;C=[I.x,I.y,I.z]}c.aspectratio.x=h.aspectratio.x=C[0],c.aspectratio.y=h.aspectratio.y=C[1],c.aspectratio.z=h.aspectratio.z=C[2],this.glplot.aspect=C;var z=c.domain||null,D=e._size||null;if(z&&D){var P=this.container.style;P.position=\"absolute\",P.left=D.l+z.x[0]*D.w+\"px\",P.top=D.t+(1-z.y[1])*D.h+\"px\",P.width=D.w*(z.x[1]-z.x[0])+\"px\",P.height=D.h*(z.y[1]-z.y[0])+\"px\"}this.glplot.redraw()}},A.destroy=function(){this.glplot&&(this.camera.mouseListener.enabled=!1,this.container.removeEventListener(\"wheel\",this.camera.wheelListener),this.camera=this.glplot.camera=null,this.glplot.dispose(),this.container.parentNode.removeChild(this.container),this.glplot=null)},A.getCamera=function(){return this.glplot.camera.view.recalcMatrix(this.camera.view.lastT()),u(this.glplot.camera)},A.setCamera=function(t){this.glplot.camera.lookAt.apply(this,l(t))},A.saveCamera=function(t){var e=this.getCamera(),r=m.nestedProperty(t,this.id+\".camera\"),n=r.get(),i=!1;if(void 0===n)i=!0;else for(var a=0;a<3;a++)for(var o=0;o<3;o++)if(!function(t,e,r,n){var i=[\"up\",\"center\",\"eye\"],a=[\"x\",\"y\",\"z\"];return e[i[r]]&&t[i[r]][a[n]]===e[i[r]][a[n]]}(e,n,a,o)){i=!0;break}return i&&r.set(e),i},A.updateFx=function(t,e){var r=this.camera;r&&(\"orbit\"===t?(r.mode=\"orbit\",r.keyBindingMode=\"rotate\"):\"turntable\"===t?(r.up=[0,0,1],r.mode=\"turntable\",r.keyBindingMode=\"rotate\"):r.keyBindingMode=t),this.fullSceneLayout.hovermode=e},A.toImage=function(t){t||(t=\"png\"),this.staticMode&&this.container.appendChild(c),this.glplot.redraw();var e=this.glplot.gl,r=e.drawingBufferWidth,n=e.drawingBufferHeight;e.bindFramebuffer(e.FRAMEBUFFER,null);var i=new Uint8Array(r*n*4);e.readPixels(0,0,r,n,e.RGBA,e.UNSIGNED_BYTE,i);for(var a=0,o=n-1;a<o;++a,--o)for(var s=0;s<r;++s)for(var l=0;l<4;++l){var u=i[4*(r*a+s)+l];i[4*(r*a+s)+l]=i[4*(r*o+s)+l],i[4*(r*o+s)+l]=u}var h=document.createElement(\"canvas\");h.width=r,h.height=n;var f=h.getContext(\"2d\"),d=f.createImageData(r,n);d.data.set(i),f.putImageData(d,0,0);var p;switch(t){case\"jpeg\":p=h.toDataURL(\"image/jpeg\");break;case\"webp\":p=h.toDataURL(\"image/webp\");break;default:p=h.toDataURL(\"image/png\")}return this.staticMode&&this.container.removeChild(c),p},A.setConvert=function(){for(var t=0;t<3;t++){var e=this.fullSceneLayout[T[t]];v.setConvert(e,this.fullLayout),e.setScale=m.noop}},e.exports=a},{\"../../components/fx\":645,\"../../lib\":728,\"../../lib/show_no_webgl_msg\":747,\"../../lib/str2rgbarray\":749,\"../../plots/cartesian/axes\":772,\"../../registry\":846,\"./camera\":810,\"./layout/convert\":815,\"./layout/spikes\":818,\"./layout/tick_marks\":819,\"./project\":820,\"gl-plot3d\":221,\"webgl-context\":563}],822:[function(t,e,r){\"use strict\";var n=t(\"./font_attributes\"),i=t(\"../components/color/attributes\"),a=n({editType:\"calc\"});a.family.dflt='\"Open Sans\", verdana, arial, sans-serif',a.size.dflt=12,a.color.dflt=i.defaultLine,e.exports={font:a,title:{valType:\"string\",dflt:\"Click to enter Plot title\",editType:\"layoutstyle\"},titlefont:n({editType:\"layoutstyle\"}),autosize:{valType:\"boolean\",dflt:!1,editType:\"none\"},width:{valType:\"number\",min:10,dflt:700,editType:\"none\"},height:{valType:\"number\",min:10,dflt:450,editType:\"none\"},margin:{l:{valType:\"number\",min:0,dflt:80,editType:\"calc\"},r:{valType:\"number\",min:0,dflt:80,editType:\"calc\"},t:{valType:\"number\",min:0,dflt:100,editType:\"calc\"},b:{valType:\"number\",min:0,dflt:80,editType:\"calc\"},pad:{valType:\"number\",min:0,dflt:0,editType:\"calc\"},autoexpand:{valType:\"boolean\",dflt:!0,editType:\"calc\"},editType:\"calc\"},paper_bgcolor:{valType:\"color\",dflt:i.background,editType:\"plot\"},plot_bgcolor:{valType:\"color\",dflt:i.background,editType:\"layoutstyle\"},separators:{valType:\"string\",dflt:\".,\",editType:\"plot\"},hidesources:{valType:\"boolean\",dflt:!1,editType:\"plot\"},smith:{valType:\"enumerated\",values:[!1],dflt:!1,editType:\"none\"},showlegend:{valType:\"boolean\",editType:\"legend\"}}},{\"../components/color/attributes\":603,\"./font_attributes\":796}],823:[function(t,e,r){\"use strict\";e.exports={styleUrlPrefix:\"mapbox://styles/mapbox/\",styleUrlSuffix:\"v9\",controlContainerClassName:\"mapboxgl-control-container\",noAccessTokenErrorMsg:[\"Missing Mapbox access token.\",\"Mapbox trace type require a Mapbox access token to be registered.\",\"For example:\",\" Plotly.plot(gd, data, layout, { mapboxAccessToken: 'my-access-token' });\",\"More info here: https://www.mapbox.com/help/define-access-token/\"].join(\"\\n\"),mapOnErrorMsg:\"Mapbox error.\"}},{}],824:[function(t,e,r){\"use strict\";var n=t(\"../../lib\");e.exports=function(t,e){var r=t.split(\" \"),i=r[0],a=r[1],o=Array.isArray(e)?n.mean(e):e,s=.5+o/100,l=1.5+o/100,u=[\"\",\"\"],c=[0,0];switch(i){case\"top\":u[0]=\"top\",c[1]=-l;break;case\"bottom\":u[0]=\"bottom\",c[1]=l}switch(a){case\"left\":u[1]=\"right\",c[0]=-s;break;case\"right\":u[1]=\"left\",c[0]=s}var h;return h=u[0]&&u[1]?u.join(\"-\"):u[0]?u[0]:u[1]?u[1]:\"center\",{anchor:h,offset:c}}},{\"../../lib\":728}],825:[function(t,e,r){\"use strict\";function n(t,e){var r=t._fullLayout,n=t._context;if(\"\"===n.mapboxAccessToken)return\"\";for(var i=n.mapboxAccessToken,a=0;a<e.length;a++){var o=r[e[a]];if(o.accesstoken){i=o.accesstoken;break}}if(!i)throw new Error(u.noAccessTokenErrorMsg);return i}var i=t(\"mapbox-gl\"),a=t(\"../../lib\"),o=t(\"../plots\"),s=t(\"../../constants/xmlns_namespaces\"),l=t(\"./mapbox\"),u=t(\"./constants\");r.name=\"mapbox\",r.attr=\"subplot\",r.idRoot=\"mapbox\",r.idRegex=r.attrRegex=a.counterRegex(\"mapbox\"),r.attributes={subplot:{valType:\"subplotid\",dflt:\"mapbox\",editType:\"calc\"}},r.layoutAttributes=t(\"./layout_attributes\"),r.supplyLayoutDefaults=t(\"./layout_defaults\"),r.plot=function(t){var e=t._fullLayout,r=t.calcdata,s=o.getSubplotIds(e,\"mapbox\"),u=n(t,s);i.accessToken=u;for(var c=0;c<s.length;c++){var h=s[c],f=o.getSubplotCalcData(r,\"mapbox\",h),d=e[h],p=d._subplot;d.accesstoken=u,p||(p=l({gd:t,container:e._glcontainer.node(),id:h,fullLayout:e,staticPlot:t._context.staticPlot}),e[h]._subplot=p),p.viewInitial||(p.viewInitial={center:a.extendFlat({},d.center),zoom:d.zoom,bearing:d.bearing,pitch:d.pitch}),p.plot(f,e,t._promises)}},r.clean=function(t,e,r,n){for(var i=o.getSubplotIds(n,\"mapbox\"),a=0;a<i.length;a++){var s=i[a];!e[s]&&n[s]._subplot&&n[s]._subplot.destroy()}},r.toSVG=function(t){for(var e=t._fullLayout,r=o.getSubplotIds(e,\"mapbox\"),n=e._size,i=0;i<r.length;i++){var a=e[r[i]],l=a.domain,u=a._subplot,c=u.toImage(\"png\");e._glimages.append(\"svg:image\").attr({xmlns:s.svg,\"xlink:href\":c,x:n.l+n.w*l.x[0],y:n.t+n.h*(1-l.y[1]),width:n.w*(l.x[1]-l.x[0]),height:n.h*(l.y[1]-l.y[0]),preserveAspectRatio:\"none\"}),u.destroy()}},r.updateFx=function(t){for(var e=o.getSubplotIds(t,\"mapbox\"),r=0;r<e.length;r++){t[e[r]]._subplot.updateFx(t)}}},{\"../../constants/xmlns_namespaces\":709,\"../../lib\":728,\"../plots\":831,\"./constants\":823,\"./layout_attributes\":827,\"./layout_defaults\":828,\"./mapbox\":829,\"mapbox-gl\":343}],826:[function(t,e,r){\"use strict\";function n(t,e){this.mapbox=t,this.map=t.map,this.uid=t.uid+\"-layer\"+e,this.idSource=this.uid+\"-source\",this.idLayer=this.uid+\"-layer\",this.sourceType=null,this.source=null,this.layerType=null,this.below=null,this.visible=!1}function i(t){var e=t.source;return s.isPlainObject(e)||\"string\"==typeof e&&e.length>0}function a(t){var e={},r={};switch(t.type){case\"circle\":s.extendFlat(r,{\"circle-radius\":t.circle.radius,\"circle-color\":t.color,\"circle-opacity\":t.opacity});break;case\"line\":s.extendFlat(r,{\"line-width\":t.line.width,\"line-color\":t.color,\"line-opacity\":t.opacity});break;case\"fill\":s.extendFlat(r,{\"fill-color\":t.color,\"fill-outline-color\":t.fill.outlinecolor,\"fill-opacity\":t.opacity});break;case\"symbol\":var n=t.symbol,i=l(n.textposition,n.iconsize);s.extendFlat(e,{\"icon-image\":n.icon+\"-15\",\"icon-size\":n.iconsize/10,\"text-field\":n.text,\"text-size\":n.textfont.size,\"text-anchor\":i.anchor,\"text-offset\":i.offset}),s.extendFlat(r,{\"icon-color\":t.color,\"text-color\":n.textfont.color,\"text-opacity\":t.opacity})}return{layout:e,paint:r}}function o(t){var e,r=t.sourcetype,n=t.source,i={type:r},a=\"string\"==typeof n;return\"geojson\"===r?e=\"data\":\"vector\"===r&&(e=a?\"url\":\"tiles\"),i[e]=n,i}var s=t(\"../../lib\"),l=t(\"./convert_text_opts\"),u=n.prototype;u.update=function(t){this.visible?this.needsNewSource(t)?(this.updateLayer(t),this.updateSource(t)):this.needsNewLayer(t)&&this.updateLayer(t):(this.updateSource(t),this.updateLayer(t)),this.updateStyle(t),this.visible=i(t)},u.needsNewSource=function(t){return this.sourceType!==t.sourcetype||this.source!==t.source||this.layerType!==t.type},u.needsNewLayer=function(t){return this.layerType!==t.type||this.below!==t.below},u.updateSource=function(t){var e=this.map;if(e.getSource(this.idSource)&&e.removeSource(this.idSource),this.sourceType=t.sourcetype,this.source=t.source,i(t)){var r=o(t);e.addSource(this.idSource,r)}},u.updateLayer=function(t){var e=this.map;if(e.getLayer(this.idLayer)&&e.removeLayer(this.idLayer),this.layerType=t.type,i(t)){e.addLayer({id:this.idLayer,source:this.idSource,\"source-layer\":t.sourcelayer||\"\",type:t.type},t.below);var r={visibility:\"visible\"};this.mapbox.setOptions(this.idLayer,\"setLayoutProperty\",r)}},u.updateStyle=function(t){var e=a(t);i(t)&&(this.mapbox.setOptions(this.idLayer,\"setLayoutProperty\",e.layout),this.mapbox.setOptions(this.idLayer,\"setPaintProperty\",e.paint))},u.dispose=function(){var t=this.map;t.removeLayer(this.idLayer),t.removeSource(this.idSource)},e.exports=function(t,e,r){var i=new n(t,e);return i.update(r),i}},{\"../../lib\":728,\"./convert_text_opts\":824}],827:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../components/color\").defaultLine,a=t(\"../font_attributes\"),o=t(\"../../traces/scatter/attributes\").textposition,s=t(\"../../plot_api/edit_types\").overrideAll,l=a({});l.family.dflt=\"Open Sans Regular, Arial Unicode MS Regular\",e.exports=s({_arrayAttrRegexps:[n.counterRegex(\"mapbox\",\".layers\",!0)],domain:{x:{valType:\"info_array\",items:[{valType:\"number\",min:0,max:1},{valType:\"number\",min:0,max:1}],dflt:[0,1]},y:{valType:\"info_array\",items:[{valType:\"number\",min:0,max:1},{valType:\"number\",min:0,max:1}],dflt:[0,1]}},accesstoken:{valType:\"string\",noBlank:!0,strict:!0},style:{valType:\"any\",values:[\"basic\",\"streets\",\"outdoors\",\"light\",\"dark\",\"satellite\",\"satellite-streets\"],dflt:\"basic\"},center:{lon:{valType:\"number\",dflt:0},lat:{valType:\"number\",dflt:0}},zoom:{valType:\"number\",dflt:1},bearing:{valType:\"number\",dflt:0},pitch:{valType:\"number\",dflt:0},layers:{_isLinkedToArray:\"layer\",sourcetype:{valType:\"enumerated\",values:[\"geojson\",\"vector\"],dflt:\"geojson\"},source:{valType:\"any\"},sourcelayer:{valType:\"string\",dflt:\"\"},type:{valType:\"enumerated\",values:[\"circle\",\"line\",\"fill\",\"symbol\"],dflt:\"circle\"},below:{valType:\"string\",dflt:\"\"},color:{valType:\"color\",dflt:i},opacity:{valType:\"number\",min:0,max:1,dflt:1},circle:{radius:{valType:\"number\",dflt:15}},line:{width:{valType:\"number\",dflt:2}},fill:{outlinecolor:{valType:\"color\",dflt:i}},symbol:{icon:{valType:\"string\",dflt:\"marker\"},iconsize:{valType:\"number\",dflt:10},text:{valType:\"string\",dflt:\"\"},textfont:l,textposition:n.extendFlat({},o,{arrayOk:!1})}}},\"plot\",\"from-root\")},{\"../../components/color\":604,\"../../lib\":728,\"../../plot_api/edit_types\":756,\"../../traces/scatter/attributes\":1031,\"../font_attributes\":796}],828:[function(t,e,r){\"use strict\";function n(t,e,r){r(\"accesstoken\"),r(\"style\"),r(\"center.lon\"),r(\"center.lat\"),r(\"zoom\"),r(\"bearing\"),r(\"pitch\"),i(t,e),e._input=t}function i(t,e){function r(t,e){return a.coerce(n,i,s.layers,t,e)}for(var n,i,o=t.layers||[],l=e.layers=[],u=0;u<o.length;u++)if(n=o[u],i={},a.isPlainObject(n)){var c=r(\"sourcetype\");r(\"source\"),\"vector\"===c&&r(\"sourcelayer\");var h=r(\"type\");r(\"below\"),r(\"color\"),r(\"opacity\"),\"circle\"===h&&r(\"circle.radius\"),\"line\"===h&&r(\"line.width\"),\"fill\"===h&&r(\"fill.outlinecolor\"),\"symbol\"===h&&(r(\"symbol.icon\"),r(\"symbol.iconsize\"),r(\"symbol.text\"),a.coerceFont(r,\"symbol.textfont\"),r(\"symbol.textposition\")),i._index=u,l.push(i)}}var a=t(\"../../lib\"),o=t(\"../subplot_defaults\"),s=t(\"./layout_attributes\");e.exports=function(t,e,r){o(t,e,r,{type:\"mapbox\",attributes:s,handleDefaults:n,partition:\"y\"})}},{\"../../lib\":728,\"../subplot_defaults\":838,\"./layout_attributes\":827}],829:[function(t,e,r){\"use strict\";function n(t){this.id=t.id,this.gd=t.gd,this.container=t.container,this.isStatic=t.staticPlot;var e=t.fullLayout;this.uid=e._uid+\"-\"+this.id,this.opts=e[this.id],this.div=null,this.xaxis=null,this.yaxis=null,this.createFramework(e),this.map=null,this.accessToken=null,this.styleObj=null,this.traceHash={},this.layerList=[]}function i(t){var e=d.style.values,r=d.style.dflt,n={};return u.isPlainObject(t)?(n.id=t.id,n.style=t):\"string\"==typeof t?(n.id=t,n.style=-1!==e.indexOf(t)?a(t):t):(n.id=r,n.style=a(r)),n}function a(t){return f.styleUrlPrefix+t+\"-\"+f.styleUrlSuffix}function o(t){return[t.lon,t.lat]}var s=t(\"mapbox-gl\"),l=t(\"../../components/fx\"),u=t(\"../../lib\"),c=t(\"../../components/dragelement\"),h=t(\"../cartesian/select\"),f=t(\"./constants\"),d=t(\"./layout_attributes\"),p=t(\"./layers\"),m=n.prototype;e.exports=function(t){return new n(t)},m.plot=function(t,e,r){var n=this,i=n.opts=e[this.id];n.map&&i.accesstoken!==n.accessToken&&(n.map.remove(),n.map=null,n.styleObj=null,n.traceHash=[],n.layerList={});var a;a=n.map?new Promise(function(r,i){n.updateMap(t,e,r,i)}):new Promise(function(r,i){n.createMap(t,e,r,i)}),r.push(a)},m.createMap=function(t,e,r,n){function a(){l.loneUnhover(e._toppaper)}var c=this,h=c.gd,d=c.opts,p=c.styleObj=i(d.style);c.accessToken=d.accesstoken;var m=c.map=new s.Map({container:c.div,style:p.style,center:o(d.center),zoom:d.zoom,bearing:d.bearing,pitch:d.pitch,interactive:!c.isStatic,preserveDrawingBuffer:c.isStatic,doubleClickZoom:!1,boxZoom:!1}),v=f.controlContainerClassName,g=c.div.getElementsByClassName(v)[0];c.div.removeChild(g),m._canvas.canvas.style.left=\"0px\",m._canvas.canvas.style.top=\"0px\",c.rejectOnError(n),m.once(\"load\",function(){c.updateData(t),c.updateLayout(e),c.resolveOnRender(r)}),c.isStatic||(m.on(\"moveend\",function(t){if(c.map){var e=c.getView();if(d._input.center=d.center=e.center,d._input.zoom=d.zoom=e.zoom,d._input.bearing=d.bearing=e.bearing,d._input.pitch=d.pitch=e.pitch,t.originalEvent){var r={};r[c.id]=u.extendFlat({},e),h.emit(\"plotly_relayout\",r)}}}),m.on(\"mousemove\",function(t){var e=c.div.getBoundingClientRect();t.clientX=t.point.x+e.left,t.clientY=t.point.y+e.top,t.target.getBoundingClientRect=function(){return e},c.xaxis.p2c=function(){return t.lngLat.lng},c.yaxis.p2c=function(){return t.lngLat.lat},l.hover(h,t,c.id)}),m.on(\"click\",function(t){l.click(h,t.originalEvent)}),m.on(\"dragstart\",a),m.on(\"zoomstart\",a),m.on(\"dblclick\",function(){var t=c.viewInitial;m.setCenter(o(t.center)),m.setZoom(t.zoom),m.setBearing(t.bearing),m.setPitch(t.pitch);var e=c.getView();d._input.center=d.center=e.center,d._input.zoom=d.zoom=e.zoom,d._input.bearing=d.bearing=e.bearing,d._input.pitch=d.pitch=e.pitch,h.emit(\"plotly_doubleclick\",null)}))},m.updateMap=function(t,e,r,n){var a=this,o=a.map;a.rejectOnError(n);var s=i(a.opts.style);a.styleObj.id!==s.id?(a.styleObj=s,o.setStyle(s.style),o.style.once(\"load\",function(){a.traceHash={},a.updateData(t),a.updateLayout(e),a.resolveOnRender(r)})):(a.updateData(t),a.updateLayout(e),a.resolveOnRender(r))},m.updateData=function(t){var e,r,n,i,a=this.traceHash;for(n=0;n<t.length;n++){var o=t[n];r=o[0].trace,e=a[r.uid],e?e.update(o):r._module&&(a[r.uid]=r._module.plot(this,o))}var s=Object.keys(a);t:for(n=0;n<s.length;n++){var l=s[n];for(i=0;i<t.length;i++)if(r=t[i][0].trace,l===r.uid)continue t;e=a[l],e.dispose(),delete a[l]}},m.updateLayout=function(t){var e=this.map,r=this.opts;e.setCenter(o(r.center)),e.setZoom(r.zoom),e.setBearing(r.bearing),e.setPitch(r.pitch),this.updateLayers(),this.updateFramework(t),this.updateFx(t),this.map.resize()},m.resolveOnRender=function(t){var e=this.map;e.on(\"render\",function r(){e.loaded()&&(e.off(\"render\",r),t())})},m.rejectOnError=function(t){function e(){t(new Error(f.mapOnErrorMsg))}var r=this.map;r.once(\"error\",e),r.once(\"style.error\",e),r.once(\"source.error\",e),r.once(\"tile.error\",e),r.once(\"layer.error\",e)},m.createFramework=function(t){var e=this,r=e.div=document.createElement(\"div\");r.id=e.uid,r.style.position=\"absolute\",e.container.appendChild(r),e.xaxis={_id:\"x\",c2p:function(t){return e.project(t).x}},e.yaxis={_id:\"y\",c2p:function(t){return e.project(t).y}},e.updateFramework(t)},m.updateFx=function(t){function e(t){var e=r.map.unproject(t);return[e.lng,e.lat]}var r=this,n=r.map,i=r.gd;if(!r.isStatic){var a,o=t.dragmode;if(a=\"select\"===o?function(t,n){(t.range={})[r.id]=[e([n.xmin,n.ymin]),e([n.xmax,n.ymax])]}:function(t,n,i){(t.lassoPoints={})[r.id]=i.filtered.map(e)},\"select\"===o||\"lasso\"===o){n.dragPan.disable();var s={element:r.div,gd:i,plotinfo:{xaxis:r.xaxis,yaxis:r.yaxis,fillRangeItems:a},xaxes:[r.xaxis],yaxes:[r.yaxis],subplot:r.id};s.prepFn=function(t,e,r){h(t,e,r,s,o)},s.doneFn=function(e,r){2===r&&t._zoomlayer.selectAll(\".select-outline\").remove()},c.init(s)}else n.dragPan.enable(),r.div.onmousedown=null}},m.updateFramework=function(t){var e=t[this.id].domain,r=t._size,n=this.div.style;n.width=r.w*(e.x[1]-e.x[0])+\"px\",n.height=r.h*(e.y[1]-e.y[0])+\"px\",n.left=r.l+e.x[0]*r.w+\"px\",n.top=r.t+(1-e.y[1])*r.h+\"px\",this.xaxis._offset=r.l+e.x[0]*r.w,this.xaxis._length=r.w*(e.x[1]-e.x[0]),this.yaxis._offset=r.t+(1-e.y[1])*r.h,this.yaxis._length=r.h*(e.y[1]-e.y[0])},m.updateLayers=function(){var t,e=this.opts,r=e.layers,n=this.layerList;if(r.length!==n.length){for(t=0;t<n.length;t++)n[t].dispose();for(n=this.layerList=[],t=0;t<r.length;t++)n.push(p(this,t,r[t]))}else for(t=0;t<r.length;t++)n[t].update(r[t])},m.destroy=function(){this.map&&(this.map.remove(),this.map=null,this.container.removeChild(this.div))},m.toImage=function(){return this.map.getCanvas().toDataURL()},m.initSource=function(t){var e={type:\"geojson\",data:{type:\"Feature\",geometry:{type:\"Point\",coordinates:[]}}};return this.map.addSource(t,e)},m.setSourceData=function(t,e){this.map.getSource(t).setData(e)},m.setOptions=function(t,e,r){for(var n=this.map,i=Object.keys(r),a=0;a<i.length;a++){var o=i[a];n[e](t,o,r[o])}},m.project=function(t){return this.map.project(new s.LngLat(t[0],t[1]))},m.getView=function(){var t=this.map,e=t.getCenter();return{center:{lon:e.lng,lat:e.lat},zoom:t.getZoom(),bearing:t.getBearing(),pitch:t.getPitch()}}},{\"../../components/dragelement\":625,\"../../components/fx\":645,\"../../lib\":728,\"../cartesian/select\":788,\"./constants\":823,\"./layers\":826,\"./layout_attributes\":827,\"mapbox-gl\":343}],830:[function(t,e,r){\"use strict\";e.exports={t:{valType:\"number\",dflt:0,editType:\"arraydraw\"},r:{valType:\"number\",dflt:0,editType:\"arraydraw\"},b:{valType:\"number\",dflt:0,editType:\"arraydraw\"},l:{valType:\"number\",dflt:0,editType:\"arraydraw\"},editType:\"arraydraw\"}},{}],831:[function(t,e,r){\"use strict\";function n(t,e){e.text(\"\");var r=e.append(\"a\").attr({\"xlink:xlink:href\":\"#\",class:\"link--impt link--embedview\",\"font-weight\":\"bold\"}).text(t._context.linkText+\" \"+String.fromCharCode(187));if(t._context.sendData)r.on(\"click\",function(){v.sendDataToCloud(t)});else{var n=window.location.pathname.split(\"/\"),i=window.location.search;r.attr({\"xlink:xlink:show\":\"new\",\"xlink:xlink:href\":\"/\"+n[2].split(\".\")[0]+\"/\"+n[1]+i})}}function i(t,e){var r,n,i=t.trace,a=i._arrayAttrs,o={};for(r=0;r<a.length;r++)n=a[r],o[n]=d.nestedProperty(i,n).get().slice();for(t.trace=e,r=0;r<a.length;r++)n=a[r],d.nestedProperty(t.trace,n).set(o[n])}function a(t,e,r,n){for(var i=t.transforms,a=[t],o=0;o<i.length;o++){var s=i[o],l=_[s.type];l&&l.transform&&(a=l.transform(a,{transform:s,fullTrace:t,fullData:e,layout:r,fullLayout:n,transformIndex:o}))}return a}function o(t){var e,r={left:0,right:0,bottom:0,top:0};if(t)for(e in t)t.hasOwnProperty(e)&&(r.left+=t[e].left||0,r.right+=t[e].right||0,r.bottom+=t[e].bottom||0,r.top+=t[e].top||0);return r}function s(t){for(var e=0;e<t.length;e++){t[e]._categories=t[e]._initialCategories.slice(),t[e]._categoriesMap={};for(var r=0;r<t[e]._categories.length;r++)t[e]._categoriesMap[t[e]._categories[r]]=r}}var l=t(\"d3\"),u=t(\"fast-isnumeric\"),c=t(\"../plotly\"),h=t(\"../plot_api/plot_schema\"),f=t(\"../registry\"),d=t(\"../lib\"),p=t(\"../components/color\"),m=t(\"../constants/numerical\").BADNUM,v=e.exports={},g=t(\"./animation_attributes\"),y=t(\"./frame_attributes\"),b=d.relinkPrivateKeys;d.extendFlat(v,f),v.attributes=t(\"./attributes\"),v.attributes.type.values=v.allTypes,v.fontAttrs=t(\"./font_attributes\"),v.layoutAttributes=t(\"./layout_attributes\"),v.fontWeight=\"normal\";var x=v.subplotsRegistry,_=v.transformsRegistry,w=t(\"../components/errorbars\"),M=t(\"./command\");v.executeAPICommand=M.executeAPICommand,v.computeAPICommandBindings=M.computeAPICommandBindings,v.manageCommandObserver=M.manageCommandObserver,v.hasSimpleAPICommandBindings=M.hasSimpleAPICommandBindings,v.findSubplotIds=function(t,e){var r=[];if(!v.subplotsRegistry[e])return r;for(var n=v.subplotsRegistry[e].attr,i=0;i<t.length;i++){var a=t[i];v.traceIs(a,e)&&-1===r.indexOf(a[n])&&r.push(a[n])}return r},v.getSubplotIds=function(t,e){var r=v.subplotsRegistry[e];if(!r)return[];if(!(\"cartesian\"!==e||t._has&&t._has(\"cartesian\")))return[];if(!(\"gl2d\"!==e||t._has&&t._has(\"gl2d\")))return[];if(\"cartesian\"===e||\"gl2d\"===e)return Object.keys(t._plots||{});for(var n=r.attrRegex,i=Object.keys(t),a=[],o=0;o<i.length;o++){var s=i[o];n.test(s)&&a.push(s)}var l=r.idRoot.length;return a.sort(function(t,e){return+(t.substr(l)||1)-+(e.substr(l)||1)}),a},v.getSubplotData=function(t,e,r){if(!v.subplotsRegistry[e])return[];for(var n,i=v.subplotsRegistry[e].attr,a=[],o=0;o<t.length;o++)if(n=t[o],\"gl2d\"===e&&v.traceIs(n,\"gl2d\")){var s=c.Axes.subplotMatch,l=\"x\"+r.match(s)[1],u=\"y\"+r.match(s)[2];n[i[0]]===l&&n[i[1]]===u&&a.push(n)}else n[i]===r&&a.push(n);return a},v.getSubplotCalcData=function(t,e,r){if(!v.subplotsRegistry[e])return[];for(var n=v.subplotsRegistry[e].attr,i=[],a=0;a<t.length;a++){var o=t[a];o[0].trace[n]===r&&i.push(o)}return i},v.redrawText=function(t){if(!(t.data&&t.data[0]&&t.data[0].r))return new Promise(function(e){setTimeout(function(){f.getComponentMethod(\"annotations\",\"draw\")(t),f.getComponentMethod(\"legend\",\"draw\")(t),(t.calcdata||[]).forEach(function(t){t[0]&&t[0].t&&t[0].t.cb&&t[0].t.cb()}),e(v.previousPromises(t))},300)})},v.resize=function(t){return new Promise(function(e,r){t&&!function(t){var e=window.getComputedStyle(t).display;return!e||\"none\"===e}(t)||r(new Error(\"Resize must be passed a displayed plot div element.\")),t._redrawTimer&&clearTimeout(t._redrawTimer),t._redrawTimer=setTimeout(function(){if(t.layout.width&&t.layout.height)return void e(t);delete t.layout.width,delete t.layout.height;var r=t.changed;t.autoplay=!0,c.relayout(t,{autosize:!0}).then(function(){t.changed=r,e(t)})},100)})},v.previousPromises=function(t){if((t._promises||[]).length)return Promise.all(t._promises).then(function(){t._promises=[]})},v.addLinks=function(t){if(t._context.showLink||t._context.showSources){var e=t._fullLayout,r=e._paper.selectAll(\"text.js-plot-link-container\").data([0]);r.enter().append(\"text\").classed(\"js-plot-link-container\",!0).style({\"font-family\":'\"Open Sans\", Arial, sans-serif',\"font-size\":\"12px\",fill:p.defaultLine,\"pointer-events\":\"all\"}).each(function(){var t=l.select(this);t.append(\"tspan\").classed(\"js-link-to-tool\",!0),t.append(\"tspan\").classed(\"js-link-spacer\",!0),t.append(\"tspan\").classed(\"js-sourcelinks\",!0)});var i=r.node(),a={y:e._paper.attr(\"height\")-9};document.body.contains(i)&&i.getComputedTextLength()>=e.width-20?(a[\"text-anchor\"]=\"start\",a.x=5):(a[\"text-anchor\"]=\"end\",a.x=e._paper.attr(\"width\")-7),r.attr(a);var o=r.select(\".js-link-to-tool\"),s=r.select(\".js-link-spacer\"),u=r.select(\".js-sourcelinks\");t._context.showSources&&t._context.showSources(t),t._context.showLink&&n(t,o),s.text(o.text()&&u.text()?\" - \":\"\")}},v.sendDataToCloud=function(t){t.emit(\"plotly_beforeexport\");var e=window.PLOTLYENV&&window.PLOTLYENV.BASE_URL||\"https://plot.ly\",r=l.select(t).append(\"div\").attr(\"id\",\"hiddenform\").style(\"display\",\"none\"),n=r.append(\"form\").attr({action:e+\"/external\",method:\"post\",target:\"_blank\"});return n.append(\"input\").attr({type:\"text\",name:\"data\"}).node().value=v.graphJson(t,!1,\"keepdata\"),n.node().submit(),r.remove(),t.emit(\"plotly_afterexport\"),!1},v.supplyDefaults=function(t){var e,r=t._fullLayout||{},n=t._fullLayout={},a=t.layout||{},o=t._fullData||[],s=t._fullData=[],l=t.data||[];if(t._transitionData||v.createTransitionData(t),r._initialAutoSizeIsDone){var u=r.width,h=r.height;v.supplyLayoutGlobalDefaults(a,n),a.width||(n.width=u),a.height||(n.height=h)}else{v.supplyLayoutGlobalDefaults(a,n);var f=!a.width||!a.height,d=n.autosize,p=t._context&&t._context.autosizable;f&&(d||p)?v.plotAutoSize(t,a,n):f&&v.sanitizeMargins(t),!d&&f&&(a.width=n.width,a.height=n.height)}n._initialAutoSizeIsDone=!0,n._dataLength=l.length,n._globalTransforms=(t._context||{}).globalTransforms,v.supplyDataDefaults(l,s,a,n),n._has=v._hasPlotType.bind(n);var m=n._modules;for(e=0;e<m.length;e++){var g=m[e];g.cleanData&&g.cleanData(s)}if(o.length===l.length)for(e=0;e<s.length;e++)b(s[e],o[e]);v.supplyLayoutModuleDefaults(a,n,s,t._transitionData),n._hasCartesian=n._has(\"cartesian\"),n._hasGeo=n._has(\"geo\"),n._hasGL3D=n._has(\"gl3d\"),n._hasGL2D=n._has(\"gl2d\"),n._hasTernary=n._has(\"ternary\"),n._hasPie=n._has(\"pie\"),v.cleanPlot(s,n,o,r),v.linkSubplots(s,n,o,r),b(n,r),v.doAutoMargin(t);var y=c.Axes.list(t);for(e=0;e<y.length;e++){y[e].setScale()}if((t.calcdata||[]).length===s.length)for(e=0;e<s.length;e++){var x=s[e],_=t.calcdata[e][0];_&&_.trace&&(_.trace._hasCalcTransform?i(_,x):_.trace=x)}},v.createTransitionData=function(t){t._transitionData||(t._transitionData={}),t._transitionData._frames||(t._transitionData._frames=[]),t._transitionData._frameHash||(t._transitionData._frameHash={}),t._transitionData._counter||(t._transitionData._counter=0),t._transitionData._interruptCallbacks||(t._transitionData._interruptCallbacks=[])},v._hasPlotType=function(t){for(var e=this._basePlotModules||[],r=0;r<e.length;r++){if(e[r].name===t)return!0}return!1},v.cleanPlot=function(t,e,r,n){var i,a,o=n._basePlotModules||[];for(i=0;i<o.length;i++){var s=o[i];s.clean&&s.clean(t,e,r,n)}var l=!!n._paper,u=!!n._infolayer;t:for(i=0;i<r.length;i++){var c=r[i],h=c.uid;for(a=0;a<t.length;a++){var f=t[a];if(h===f.uid)continue t}var d=\".hm\"+h+\",.contour\"+h+\",.carpet\"+h+\",#clip\"+h+\",.trace\"+h;l&&n._paper.selectAll(d).remove(),u&&(n._infolayer.selectAll(\".cb\"+h).remove(),n._infolayer.selectAll(\"g.rangeslider-container\").selectAll(d).remove())}n._zoomlayer&&n._zoomlayer.selectAll(\".select-outline\").remove()},v.linkSubplots=function(t,e,r,n){var i,a=n._plots||{},o=e._plots={},s={_fullData:t,_fullLayout:e},l=c.Axes.getSubplots(s);for(i=0;i<l.length;i++){var u,h=l[i],f=a[h],d=c.Axes.getFromId(s,h,\"x\"),p=c.Axes.getFromId(s,h,\"y\");f?(u=o[h]=f,u._scene2d&&u._scene2d.updateRefs(e),u.xaxis.layer!==d.layer&&(u.xlines.attr(\"d\",null),u.xaxislayer.selectAll(\"*\").remove()),u.yaxis.layer!==p.layer&&(u.ylines.attr(\"d\",null),u.yaxislayer.selectAll(\"*\").remove())):(u=o[h]={},u.id=h),u.xaxis=d,u.yaxis=p,u._hasClipOnAxisFalse=!1;for(var m=0;m<t.length;m++){var v=t[m]\n", ";if(v.xaxis===u.xaxis._id&&v.yaxis===u.yaxis._id&&!1===v.cliponaxis){u._hasClipOnAxisFalse=!0;break}}}var g=c.Axes.list(s,null,!0);for(i=0;i<g.length;i++){var y=g[i],b=null;y.overlaying&&(b=c.Axes.getFromId(s,y.overlaying))&&b.overlaying&&(y.overlaying=!1,b=null),y._mainAxis=b||y,b&&(y.domain=b.domain.slice()),y._anchorAxis=\"free\"===y.anchor?null:c.Axes.getFromId(s,y.anchor)}},v.clearExpandedTraceDefaultColors=function(t){function e(t,e,i,a){n[a]=e,n.length=a+1,\"color\"===t.valType&&void 0===t.dflt&&r.push(n.join(\".\"))}var r,n,i;for(n=[],r=t._module._colorAttrs,r||(t._module._colorAttrs=r=[],h.crawl(t._module.attributes,e)),i=0;i<r.length;i++){d.nestedProperty(t,\"_input.\"+r[i]).get()||d.nestedProperty(t,r[i]).set(null)}},v.supplyDataDefaults=function(t,e,r,n){function i(t){e.push(t);var r=t._module;r&&(d.pushUnique(u,r),d.pushUnique(c,t._module.basePlotModule),h++)}var o,s,l,u=n._modules=[],c=n._basePlotModules=[],h=0;n._transformModules=[];var p={},m=[];for(o=0;o<t.length;o++){if(l=t[o],s=v.supplyTraceDefaults(l,h,n,o),s.index=o,s._input=l,s._expandedIndex=h,s.transforms&&s.transforms.length)for(var g=a(s,e,r,n),y=0;y<g.length;y++){var x=g[y],_=v.supplyTraceDefaults(x,h,n,o);b(_,x),x.uid=_.uid=s.uid+y,_.index=o,_._input=l,_._fullInput=s,_._expandedIndex=h,_._expandedInput=x,i(_)}else s._fullInput=s,s._expandedInput=s,i(s);f.traceIs(s,\"carpetAxis\")&&(p[s.carpet]=s),f.traceIs(s,\"carpetDependent\")&&m.push(o)}for(o=0;o<m.length;o++)if(s=e[m[o]],s.visible){var w=p[s.carpet];s._carpet=w,w&&w.visible?(s.xaxis=w.xaxis,s.yaxis=w.yaxis):s.visible=!1}},v.supplyAnimationDefaults=function(t){function e(e,r){return d.coerce(t||{},n,g,e,r)}t=t||{};var r,n={};if(e(\"mode\"),e(\"direction\"),e(\"fromcurrent\"),Array.isArray(t.frame))for(n.frame=[],r=0;r<t.frame.length;r++)n.frame[r]=v.supplyAnimationFrameDefaults(t.frame[r]||{});else n.frame=v.supplyAnimationFrameDefaults(t.frame||{});if(Array.isArray(t.transition))for(n.transition=[],r=0;r<t.transition.length;r++)n.transition[r]=v.supplyAnimationTransitionDefaults(t.transition[r]||{});else n.transition=v.supplyAnimationTransitionDefaults(t.transition||{});return n},v.supplyAnimationFrameDefaults=function(t){function e(e,n){return d.coerce(t||{},r,g.frame,e,n)}var r={};return e(\"duration\"),e(\"redraw\"),r},v.supplyAnimationTransitionDefaults=function(t){function e(e,n){return d.coerce(t||{},r,g.transition,e,n)}var r={};return e(\"duration\"),e(\"easing\"),r},v.supplyFrameDefaults=function(t){function e(e,n){return d.coerce(t,r,y,e,n)}var r={};return e(\"group\"),e(\"name\"),e(\"traces\"),e(\"baseframe\"),e(\"data\"),e(\"layout\"),r},v.supplyTraceDefaults=function(t,e,r,n){function i(e,r){return d.coerce(t,o,v.attributes,e,r)}function a(e,r){if(v.traceIs(o,e))return d.coerce(t,o,v.subplotsRegistry[e].attributes,r)}var o={},s=p.defaults[e%p.defaults.length],l=i(\"visible\");i(\"type\"),i(\"uid\"),i(\"name\",\"trace \"+n);for(var u=Object.keys(x),c=0;c<u.length;c++){var h=u[c];if(-1===[\"cartesian\",\"gl2d\"].indexOf(h)){var m=x[h].attr;m&&a(h,m)}}if(l){i(\"customdata\"),i(\"ids\");var g=v.getModule(o);o._module=g,v.traceIs(o,\"showLegend\")&&(i(\"showlegend\"),i(\"legendgroup\")),f.getComponentMethod(\"fx\",\"supplyDefaults\")(t,o,s,r),g&&(g.supplyDefaults(t,o,s,r),d.coerceHoverinfo(t,o,r)),v.traceIs(o,\"noOpacity\")||i(\"opacity\"),a(\"cartesian\",\"xaxis\"),a(\"cartesian\",\"yaxis\"),a(\"gl2d\",\"xaxis\"),a(\"gl2d\",\"yaxis\"),v.traceIs(o,\"notLegendIsolatable\")&&(o.visible=!!o.visible),v.supplyTransformDefaults(t,o,r)}return o},v.supplyTransformDefaults=function(t,e,r){var n=r._globalTransforms||[],i=r._transformModules||[];if(Array.isArray(t.transforms)||0!==n.length)for(var a=t.transforms||[],o=n.concat(a),s=e.transforms=[],l=0;l<o.length;l++){var u,c=o[l],h=c.type,f=_[h],p=!(c._module&&c._module===f),m=f&&\"function\"==typeof f.transform;f||d.warn(\"Unrecognized transform type \"+h+\".\"),f&&f.supplyDefaults&&(p||m)?(u=f.supplyDefaults(c,e,r,t),u.type=h,u._module=f,d.pushUnique(i,f)):u=d.extendFlat({},c),s.push(u)}},v.supplyLayoutGlobalDefaults=function(t,e){function r(r,n){return d.coerce(t,e,v.layoutAttributes,r,n)}var n=d.coerceFont(r,\"font\");r(\"title\"),d.coerceFont(r,\"titlefont\",{family:n.family,size:Math.round(1.4*n.size),color:n.color}),r(\"autosize\",!(t.width&&t.height)),r(\"width\"),r(\"height\"),r(\"margin.l\"),r(\"margin.r\"),r(\"margin.t\"),r(\"margin.b\"),r(\"margin.pad\"),r(\"margin.autoexpand\"),t.width&&t.height&&v.sanitizeMargins(e),r(\"paper_bgcolor\"),r(\"separators\"),r(\"hidesources\"),r(\"smith\"),f.getComponentMethod(\"calendars\",\"handleDefaults\")(t,e,\"calendar\"),f.getComponentMethod(\"fx\",\"supplyLayoutGlobalDefaults\")(t,e,r)},v.plotAutoSize=function(t,e,r){var n,i,a=t._context||{},s=a.frameMargins,l=d.isPlotDiv(t);if(l&&t.emit(\"plotly_autosize\"),a.fillFrame)n=window.innerWidth,i=window.innerHeight,document.body.style.overflow=\"hidden\";else if(u(s)&&s>0){var c=o(t._boundingBoxMargins),h=c.left+c.right,f=c.bottom+c.top,p=1-2*s,m=r._container&&r._container.node?r._container.node().getBoundingClientRect():{width:r.width,height:r.height};n=Math.round(p*(m.width-h)),i=Math.round(p*(m.height-f))}else{var g=l?window.getComputedStyle(t):{};n=parseFloat(g.width)||r.width,i=parseFloat(g.height)||r.height}var y=v.layoutAttributes.width.min,b=v.layoutAttributes.height.min;n<y&&(n=y),i<b&&(i=b);var x=!e.width&&Math.abs(r.width-n)>1,_=!e.height&&Math.abs(r.height-i)>1;(_||x)&&(x&&(r.width=n),_&&(r.height=i)),t._initialAutoSize||(t._initialAutoSize={width:n,height:i}),v.sanitizeMargins(r)},v.supplyLayoutModuleDefaults=function(t,e,r,n){var i,a;c.Axes.supplyLayoutDefaults(t,e,r);var o=e._basePlotModules;for(i=0;i<o.length;i++)a=o[i],\"cartesian\"!==a.name&&a.supplyLayoutDefaults&&a.supplyLayoutDefaults(t,e,r);var s=e._modules;for(i=0;i<s.length;i++)a=s[i],a.supplyLayoutDefaults&&a.supplyLayoutDefaults(t,e,r);var l=e._transformModules;for(i=0;i<l.length;i++)a=l[i],a.supplyLayoutDefaults&&a.supplyLayoutDefaults(t,e,r,n);var u=Object.keys(f.componentsRegistry);for(i=0;i<u.length;i++)a=f.componentsRegistry[u[i]],a.supplyLayoutDefaults&&a.supplyLayoutDefaults(t,e,r)},v.purge=function(t){var e=t._fullLayout||{};void 0!==e._glcontainer&&e._glcontainer.remove(),void 0!==e._geocontainer&&e._geocontainer.remove(),e._modeBar&&e._modeBar.destroy(),t._transitionData&&(t._transitionData._interruptCallbacks&&(t._transitionData._interruptCallbacks.length=0),t._transitionData._animationRaf&&window.cancelAnimationFrame(t._transitionData._animationRaf)),delete t.data,delete t.layout,delete t._fullData,delete t._fullLayout,delete t.calcdata,delete t.framework,delete t.empty,delete t.fid,delete t.undoqueue,delete t.undonum,delete t.autoplay,delete t.changed,delete t._promises,delete t._redrawTimer,delete t.firstscatter,delete t._hmlumcount,delete t._hmpixcount,delete t.numboxes,delete t._transitionData,delete t._transitioning,delete t._initialAutoSize,delete t._transitioningWithDuration,delete t._dragging,delete t._dragged,delete t._hoverdata,delete t._snapshotInProgress,delete t._editing,delete t._replotPending,delete t._mouseDownTime,delete t._legendMouseDownTime,t.removeAllListeners&&t.removeAllListeners()},v.style=function(t){for(var e=t._fullLayout._modules,r=0;r<e.length;r++){var n=e[r];n.style&&n.style(t)}},v.sanitizeMargins=function(t){if(t&&t.margin){var e,r=t.width,n=t.height,i=t.margin,a=r-(i.l+i.r),o=n-(i.t+i.b);a<0&&(e=(r-1)/(i.l+i.r),i.l=Math.floor(e*i.l),i.r=Math.floor(e*i.r)),o<0&&(e=(n-1)/(i.t+i.b),i.t=Math.floor(e*i.t),i.b=Math.floor(e*i.b))}},v.autoMargin=function(t,e,r){var n=t._fullLayout;if(n._pushmargin||(n._pushmargin={}),!1!==n.margin.autoexpand){if(r){var i=void 0===r.pad?12:r.pad;r.l+r.r>.5*n.width&&(r.l=r.r=0),r.b+r.t>.5*n.height&&(r.b=r.t=0),n._pushmargin[e]={l:{val:r.x,size:r.l+i},r:{val:r.x,size:r.r+i},b:{val:r.y,size:r.b+i},t:{val:r.y,size:r.t+i}}}else delete n._pushmargin[e];n._replotting||v.doAutoMargin(t)}},v.doAutoMargin=function(t){var e=t._fullLayout;e._size||(e._size={}),e._pushmargin||(e._pushmargin={});var r=e._size,n=JSON.stringify(r),i=Math.max(e.margin.l||0,0),a=Math.max(e.margin.r||0,0),o=Math.max(e.margin.t||0,0),s=Math.max(e.margin.b||0,0),l=e._pushmargin;if(!1!==e.margin.autoexpand){l.base={l:{val:0,size:i},r:{val:1,size:a},t:{val:1,size:o},b:{val:0,size:s}};for(var h=Object.keys(l),f=0;f<h.length;f++)for(var d=h[f],p=l[d].l||{},m=l[d].b||{},v=p.val,g=p.size,y=m.val,b=m.size,x=0;x<h.length;x++){var _=h[x];if(u(g)&&l[_].r){var w=l[_].r.val,M=l[_].r.size;if(w>v){var k=(g*w+(M-e.width)*v)/(w-v),A=(M*(1-v)+(g-e.width)*(1-w))/(w-v);k>=0&&A>=0&&k+A>i+a&&(i=k,a=A)}}if(u(b)&&l[_].t){var T=l[_].t.val,S=l[_].t.size;if(T>y){var E=(b*T+(S-e.height)*y)/(T-y),L=(S*(1-y)+(b-e.height)*(1-T))/(T-y);E>=0&&L>=0&&E+L>s+o&&(s=E,o=L)}}}}if(r.l=Math.round(i),r.r=Math.round(a),r.t=Math.round(o),r.b=Math.round(s),r.p=Math.round(e.margin.pad),r.w=Math.round(e.width)-r.l-r.r,r.h=Math.round(e.height)-r.t-r.b,!e._replotting&&\"{}\"!==n&&n!==JSON.stringify(e._size))return c.plot(t)},v.graphJson=function(t,e,r,n,i){function a(t){if(\"function\"==typeof t)return null;if(d.isPlainObject(t)){var e,n,i={};for(e in t)if(\"function\"!=typeof t[e]&&-1===[\"_\",\"[\"].indexOf(e.charAt(0))){if(\"keepdata\"===r){if(\"src\"===e.substr(e.length-3))continue}else if(\"keepstream\"===r){if(\"string\"==typeof(n=t[e+\"src\"])&&n.indexOf(\":\")>0&&!d.isPlainObject(t.stream))continue}else if(\"keepall\"!==r&&\"string\"==typeof(n=t[e+\"src\"])&&n.indexOf(\":\")>0)continue;i[e]=a(t[e])}return i}return Array.isArray(t)?t.map(a):d.isJSDate(t)?d.ms2DateTimeLocal(+t):t}(i&&e&&!t._fullData||i&&!e&&!t._fullLayout)&&v.supplyDefaults(t);var o=i?t._fullData:t.data,s=i?t._fullLayout:t.layout,l=(t._transitionData||{})._frames,u={data:(o||[]).map(function(t){var r=a(t);return e&&delete r.fit,r})};return e||(u.layout=a(s)),t.framework&&t.framework.isPolar&&(u=t.framework.getConfig()),l&&(u.frames=a(l)),\"object\"===n?u:JSON.stringify(u)},v.modifyFrames=function(t,e){var r,n,i,a=t._transitionData._frames,o=t._transitionData._frameHash;for(r=0;r<e.length;r++)switch(n=e[r],n.type){case\"replace\":i=n.value;var s=(a[n.index]||{}).name,l=i.name;a[n.index]=o[l]=i,l!==s&&(delete o[s],o[l]=i);break;case\"insert\":i=n.value,o[i.name]=i,a.splice(n.index,0,i);break;case\"delete\":i=a[n.index],delete o[i.name],a.splice(n.index,1)}return Promise.resolve()},v.computeFrame=function(t,e){var r,n,i,a,o=t._transitionData._frameHash;if(!e)throw new Error(\"computeFrame must be given a string frame name\");var s=o[e.toString()];if(!s)return!1;for(var l=[s],u=[s.name];s.baseframe&&(s=o[s.baseframe.toString()])&&-1===u.indexOf(s.name);)l.push(s),u.push(s.name);for(var c={};s=l.pop();)if(s.layout&&(c.layout=v.extendLayout(c.layout,s.layout)),s.data){if(c.data||(c.data=[]),!(n=s.traces))for(n=[],r=0;r<s.data.length;r++)n[r]=r;for(c.traces||(c.traces=[]),r=0;r<s.data.length;r++)void 0!==(i=n[r])&&null!==i&&(a=c.traces.indexOf(i),-1===a&&(a=c.data.length,c.traces[a]=i),c.data[a]=v.extendTrace(c.data[a],s.data[r]))}return c},v.recomputeFrameHash=function(t){for(var e=t._transitionData._frameHash={},r=t._transitionData._frames,n=0;n<r.length;n++){var i=r[n];i&&i.name&&(e[i.name]=i)}},v.extendObjectWithContainers=function(t,e,r){var n,i,a,o,s,l,u,c,h=d.extendDeepNoArrays({},e||{}),f=d.expandObjectPaths(h),p={};if(r&&r.length)for(a=0;a<r.length;a++)n=d.nestedProperty(f,r[a]),i=n.get(),void 0===i?d.nestedProperty(p,r[a]).set(null):(n.set(null),d.nestedProperty(p,r[a]).set(i));if(t=d.extendDeepNoArrays(t||{},f),r&&r.length)for(a=0;a<r.length;a++)if(s=d.nestedProperty(p,r[a]),u=s.get()){for(l=d.nestedProperty(t,r[a]),c=l.get(),Array.isArray(c)||(c=[],l.set(c)),o=0;o<u.length;o++){var m=u[o];c[o]=null===m?null:v.extendObjectWithContainers(c[o],m)}l.set(c)}return t},v.dataArrayContainers=[\"transforms\"],v.layoutArrayContainers=f.layoutArrayContainers,v.extendTrace=function(t,e){return v.extendObjectWithContainers(t,e,v.dataArrayContainers)},v.extendLayout=function(t,e){return v.extendObjectWithContainers(t,e,v.layoutArrayContainers)},v.transition=function(t,e,r,n,i,a){function o(){var n;for(n=0;n<y.length;n++){var i=y[n],a=t._fullData[i],o=a._module;o&&(o.animatable&&b.push(i),t.data[y[n]]=v.extendTrace(t.data[y[n]],e[n]))}var s=d.expandObjectPaths(d.extendDeepNoArrays({},r)),l=/^[xy]axis[0-9]*$/;for(var u in s)l.test(u)&&delete s[u].range;return v.extendLayout(t.layout,s),delete t.calcdata,v.supplyDefaults(t),v.doCalcdata(t),w.calc(t),Promise.resolve()}function s(t){var e=Promise.resolve();if(!t)return e;for(;t.length;)e=e.then(t.shift());return e}function l(t){if(t)for(;t.length;)t.shift()}function u(){return t.emit(\"plotly_transitioning\",[]),new Promise(function(e){function n(){return l++,function(){u++,x||u!==l||h(e)}}t._transitioning=!0,a.duration>0&&(t._transitioningWithDuration=!0),t._transitionData._interruptCallbacks.push(function(){x=!0}),i.redraw&&t._transitionData._interruptCallbacks.push(function(){return c.redraw(t)}),t._transitionData._interruptCallbacks.push(function(){t.emit(\"plotly_transitioninterrupted\",[])});var o,s,l=0,u=0,f=t._fullLayout._basePlotModules,p=!1;if(r)for(s=0;s<f.length;s++)if(f[s].transitionAxes){var m=d.expandObjectPaths(r);p=f[s].transitionAxes(t,m,a,n)||p}for(p?(o=d.extendFlat({},a),o.duration=0):o=a,s=0;s<f.length;s++)f[s].plot(t,b,o,n);setTimeout(n())})}function h(e){if(t._transitionData)return l(t._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(i.redraw)return c.redraw(t)}).then(function(){t._transitioning=!1,t._transitioningWithDuration=!1,t.emit(\"plotly_transitioned\",[])}).then(e)}function f(){if(t._transitionData)return t._transitioning=!1,s(t._transitionData._interruptCallbacks)}var p,m,g=Array.isArray(e)?e.length:0,y=n.slice(0,g),b=[],x=!1;for(p=0;p<y.length;p++){m=y[p];var _=t._fullData[m],M=_._module;if(M&&!M.animatable){var k={};for(var A in e[p])k[A]=[e[p][A]]}}var T=[v.previousPromises,f,o,v.rehover,u],S=d.syncOrAsync(T,t);return S&&S.then||(S=Promise.resolve()),S.then(function(){return t})},v.doCalcdata=function(t,e){var r,n,i,a,o=c.Axes.list(t),l=t._fullData,u=t._fullLayout,d=new Array(l.length),p=(t.calcdata||[]).slice(0);for(t.calcdata=d,t.firstscatter=!0,t.numboxes=0,t._hmpixcount=0,t._hmlumcount=0,u._piecolormap={},u._piedefaultcolorcount=0,i=0;i<l.length;i++)Array.isArray(e)&&-1===e.indexOf(i)&&(d[i]=p[i]);for(i=0;i<l.length;i++)r=l[i],r._arrayAttrs=h.findArrayAttributes(r);s(o);var v=!1;for(i=0;i<l.length;i++)if(r=l[i],!0===r.visible&&r.transforms)for(n=r._module,n&&n.calc&&n.calc(t,r),a=0;a<r.transforms.length;a++){var g=r.transforms[a];n=_[g.type],n&&n.calcTransform&&(r._hasCalcTransform=!0,v=!0,n.calcTransform(t,r,g))}if(v){for(i=0;i<o.length;i++)o[i]._min=[],o[i]._max=[],o[i]._categories=[],o[i]._categoriesMap={};s(o)}for(i=0;i<l.length;i++){var y=[];r=l[i],!0===r.visible&&(n=r._module)&&n.calc&&(y=n.calc(t,r)),Array.isArray(y)&&y[0]||(y=[{x:m,y:m}]),y[0].t||(y[0].t={}),y[0].trace=r,d[i]=y}f.getComponentMethod(\"fx\",\"calc\")(t)},v.rehover=function(t){t._fullLayout._rehover&&t._fullLayout._rehover()},v.generalUpdatePerTraceModule=function(t,e,r){var n,i=t.traceHash,a={};for(n=0;n<e.length;n++){var o=e[n],s=o[0].trace;s.visible&&(a[s.type]=a[s.type]||[],a[s.type].push(o))}var l=Object.keys(i),u=Object.keys(a);for(n=0;n<l.length;n++){var c=l[n];if(-1===u.indexOf(c)){var h=i[c][0];h[0].trace.visible=!1,a[c]=[h]}}for(u=Object.keys(a),n=0;n<u.length;n++){var f=a[u[n]];f[0][0].trace._module.plot(t,function(t){for(var e=[],r=0;r<t.length;r++){var n=t[r];!0===n[0].trace.visible&&e.push(n)}return e}(f),r)}t.traceHash=a}},{\"../components/color\":604,\"../components/errorbars\":634,\"../constants/numerical\":707,\"../lib\":728,\"../plot_api/plot_schema\":761,\"../plotly\":767,\"../registry\":846,\"./animation_attributes\":768,\"./attributes\":770,\"./command\":795,\"./font_attributes\":796,\"./frame_attributes\":797,\"./layout_attributes\":822,d3:122,\"fast-isnumeric\":131}],832:[function(t,e,r){\"use strict\";var n=t(\"../../traces/scatter/attributes\"),i=n.marker;e.exports={r:n.r,t:n.t,marker:{color:i.color,size:i.size,symbol:i.symbol,opacity:i.opacity,editType:\"calc\"}}},{\"../../traces/scatter/attributes\":1031}],833:[function(t,e,r){\"use strict\";function n(t,e){return a({},e,{showline:{valType:\"boolean\"},showticklabels:{valType:\"boolean\"},tickorientation:{valType:\"enumerated\",values:[\"horizontal\",\"vertical\"]},ticklen:{valType:\"number\",min:0},tickcolor:{valType:\"color\"},ticksuffix:{valType:\"string\"},endpadding:{valType:\"number\"},visible:{valType:\"boolean\"}})}var i=t(\"../cartesian/layout_attributes\"),a=t(\"../../lib/extend\").extendFlat,o=t(\"../../plot_api/edit_types\").overrideAll,s=a({},i.domain,{});e.exports=o({radialaxis:n(\"radial\",{range:{valType:\"info_array\",items:[{valType:\"number\"},{valType:\"number\"}]},domain:s,orientation:{valType:\"number\"}}),angularaxis:n(\"angular\",{range:{valType:\"info_array\",items:[{valType:\"number\",dflt:0},{valType:\"number\",dflt:360}]},domain:s}),layout:{direction:{valType:\"enumerated\",values:[\"clockwise\",\"counterclockwise\"]},orientation:{valType:\"angle\"}}},\"plot\",\"nested\")},{\"../../lib/extend\":717,\"../../plot_api/edit_types\":756,\"../cartesian/layout_attributes\":783}],834:[function(t,e,r){\"use strict\";(e.exports=t(\"./micropolar\")).manager=t(\"./micropolar_manager\")},{\"./micropolar\":835,\"./micropolar_manager\":836}],835:[function(t,e,r){var n=t(\"d3\"),i=t(\"../../lib\"),a=i.extendDeepAll,o=t(\"../../constants/alignment\").MID_SHIFT,s=e.exports={version:\"0.2.2\"};s.Axis=function(){function t(t){r=t||r;var c=u.data,f=u.layout;return(\"string\"==typeof r||r.nodeName)&&(r=n.select(r)),r.datum(c).each(function(t,r){function u(t,e){return l(t)%360+f.orientation}var c=t.slice();h={data:s.util.cloneJson(c),layout:s.util.cloneJson(f)};var d=0;c.forEach(function(t,e){t.color||(t.color=f.defaultColorRange[d],d=(d+1)%f.defaultColorRange.length),t.strokeColor||(t.strokeColor=\"LinePlot\"===t.geometry?t.color:n.rgb(t.color).darker().toString()),h.data[e].color=t.color,h.data[e].strokeColor=t.strokeColor,h.data[e].strokeDash=t.strokeDash,h.data[e].strokeSize=t.strokeSize});var p=c.filter(function(t,e){var r=t.visible;return void 0===r||!0===r}),m=!1,v=p.map(function(t,e){return m=m||void 0!==t.groupId,t});if(m){var g=n.nest().key(function(t,e){return void 0!==t.groupId?t.groupId:\"unstacked\"}).entries(v),y=[],b=g.map(function(t,e){if(\"unstacked\"===t.key)return t.values;var r=t.values[0].r.map(function(t,e){return 0});return t.values.forEach(function(t,e,n){t.yStack=[r],y.push(r),r=s.util.sumArrays(t.r,r)}),t.values});p=n.merge(b)}p.forEach(function(t,e){t.t=Array.isArray(t.t[0])?t.t:[t.t],t.r=Array.isArray(t.r[0])?t.r:[t.r]});var x=Math.min(f.width-f.margin.left-f.margin.right,f.height-f.margin.top-f.margin.bottom)/2;x=Math.max(10,x);var _,w=[f.margin.left+x,f.margin.top+x];if(m){_=[0,n.max(s.util.sumArrays(s.util.arrayLast(p).r[0],s.util.arrayLast(y)))]}else _=n.extent(s.util.flattenArray(p.map(function(t,e){return t.r})));f.radialAxis.domain!=s.DATAEXTENT&&(_[0]=0),i=n.scale.linear().domain(f.radialAxis.domain!=s.DATAEXTENT&&f.radialAxis.domain?f.radialAxis.domain:_).range([0,x]),h.layout.radialAxis.domain=i.domain();var M,k=s.util.flattenArray(p.map(function(t,e){return t.t})),A=\"string\"==typeof k[0];A&&(k=s.util.deduplicate(k),M=k.slice(),k=n.range(k.length),p=p.map(function(t,e){var r=t;return t.t=[k],m&&(r.yStack=t.yStack),r}));var T=p.filter(function(t,e){return\"LinePlot\"===t.geometry||\"DotPlot\"===t.geometry}).length===p.length,S=null===f.needsEndSpacing?A||!T:f.needsEndSpacing,E=f.angularAxis.domain&&f.angularAxis.domain!=s.DATAEXTENT&&!A&&f.angularAxis.domain[0]>=0,L=E?f.angularAxis.domain:n.extent(k),C=Math.abs(k[1]-k[0]);T&&!A&&(C=0);var I=L.slice();S&&A&&(I[1]+=C);var z=f.angularAxis.ticksCount||4;z>8&&(z=z/(z/8)+z%8),f.angularAxis.ticksStep&&(z=(I[1]-I[0])/z);var D=f.angularAxis.ticksStep||(I[1]-I[0])/(z*(f.minorTicks+1));M&&(D=Math.max(Math.round(D),1)),I[2]||(I[2]=D);var P=n.range.apply(this,I);if(P=P.map(function(t,e){return parseFloat(t.toPrecision(12))}),l=n.scale.linear().domain(I.slice(0,2)).range(\"clockwise\"===f.direction?[0,360]:[360,0]),h.layout.angularAxis.domain=l.domain(),h.layout.angularAxis.endPadding=S?C:0,void 0===(e=n.select(this).select(\"svg.chart-root\"))||e.empty()){var O=(new DOMParser).parseFromString(\"<svg xmlns='http://www.w3.org/2000/svg' class='chart-root'>' + '<g class='outer-group'>' + '<g class='chart-group'>' + '<circle class='background-circle'></circle>' + '<g class='geometry-group'></g>' + '<g class='radial axis-group'>' + '<circle class='outside-circle'></circle>' + '</g>' + '<g class='angular axis-group'></g>' + '<g class='guides-group'><line></line><circle r='0'></circle></g>' + '</g>' + '<g class='legend-group'></g>' + '<g class='tooltips-group'></g>' + '<g class='title-group'><text></text></g>' + '</g>' + '</svg>\",\"application/xml\"),R=this.appendChild(this.ownerDocument.importNode(O.documentElement,!0));e=n.select(R)}e.select(\".guides-group\").style({\"pointer-events\":\"none\"}),e.select(\".angular.axis-group\").style({\"pointer-events\":\"none\"}),e.select(\".radial.axis-group\").style({\"pointer-events\":\"none\"});var F,j=e.select(\".chart-group\"),N={fill:\"none\",stroke:f.tickColor},B={\"font-size\":f.font.size,\"font-family\":f.font.family,fill:f.font.color,\"text-shadow\":[\"-1px 0px\",\"1px -1px\",\"-1px 1px\",\"1px 1px\"].map(function(t,e){return\" \"+t+\" 0 \"+f.font.outlineColor}).join(\",\")};if(f.showLegend){F=e.select(\".legend-group\").attr({transform:\"translate(\"+[x,f.margin.top]+\")\"}).style({display:\"block\"});var U=p.map(function(t,e){var r=s.util.cloneJson(t);return r.symbol=\"DotPlot\"===t.geometry?t.dotType||\"circle\":\"LinePlot\"!=t.geometry?\"square\":\"line\",r.visibleInLegend=void 0===t.visibleInLegend||t.visibleInLegend,r.color=\"LinePlot\"===t.geometry?t.strokeColor:t.color,r});s.Legend().config({data:p.map(function(t,e){return t.name||\"Element\"+e}),legendConfig:a({},s.Legend.defaultConfig().legendConfig,{container:F,elements:U,reverseOrder:f.legend.reverseOrder})})();var V=F.node().getBBox();x=Math.min(f.width-V.width-f.margin.left-f.margin.right,f.height-f.margin.top-f.margin.bottom)/2,x=Math.max(10,x),w=[f.margin.left+x,f.margin.top+x],i.range([0,x]),h.layout.radialAxis.domain=i.domain(),F.attr(\"transform\",\"translate(\"+[w[0]+x,w[1]-x]+\")\")}else F=e.select(\".legend-group\").style({display:\"none\"});e.attr({width:f.width,height:f.height}).style({opacity:f.opacity}),j.attr(\"transform\",\"translate(\"+w+\")\").style({cursor:\"crosshair\"});var H=[(f.width-(f.margin.left+f.margin.right+2*x+(V?V.width:0)))/2,(f.height-(f.margin.top+f.margin.bottom+2*x))/2];if(H[0]=Math.max(0,H[0]),H[1]=Math.max(0,H[1]),e.select(\".outer-group\").attr(\"transform\",\"translate(\"+H+\")\"),f.title){var q=e.select(\"g.title-group text\").style(B).text(f.title),G=q.node().getBBox();q.attr({x:w[0]-G.width/2,y:w[1]-x-20})}var Y=e.select(\".radial.axis-group\");if(f.radialAxis.gridLinesVisible){var W=Y.selectAll(\"circle.grid-circle\").data(i.ticks(5));W.enter().append(\"circle\").attr({class:\"grid-circle\"}).style(N),W.attr(\"r\",i),W.exit().remove()}Y.select(\"circle.outside-circle\").attr({r:x}).style(N);var X=e.select(\"circle.background-circle\").attr({r:x}).style({fill:f.backgroundColor,stroke:f.stroke});if(f.radialAxis.visible){var Z=n.svg.axis().scale(i).ticks(5).tickSize(5);Y.call(Z).attr({transform:\"rotate(\"+f.radialAxis.orientation+\")\"}),Y.selectAll(\".domain\").style(N),Y.selectAll(\"g>text\").text(function(t,e){return this.textContent+f.radialAxis.ticksSuffix}).style(B).style({\"text-anchor\":\"start\"}).attr({x:0,y:0,dx:0,dy:0,transform:function(t,e){return\"horizontal\"===f.radialAxis.tickOrientation?\"rotate(\"+-f.radialAxis.orientation+\") translate(\"+[0,B[\"font-size\"]]+\")\":\"translate(\"+[0,B[\"font-size\"]]+\")\"}}),Y.selectAll(\"g>line\").style({stroke:\"black\"})}var J=e.select(\".angular.axis-group\").selectAll(\"g.angular-tick\").data(P),K=J.enter().append(\"g\").classed(\"angular-tick\",!0);J.attr({transform:function(t,e){return\"rotate(\"+u(t,e)+\")\"}}).style({display:f.angularAxis.visible?\"block\":\"none\"}),J.exit().remove(),K.append(\"line\").classed(\"grid-line\",!0).classed(\"major\",function(t,e){return e%(f.minorTicks+1)==0}).classed(\"minor\",function(t,e){return!(e%(f.minorTicks+1)==0)}).style(N),K.selectAll(\".minor\").style({stroke:f.minorTickColor}),J.select(\"line.grid-line\").attr({x1:f.tickLength?x-f.tickLength:0,x2:x}).style({display:f.angularAxis.gridLinesVisible?\"block\":\"none\"}),K.append(\"text\").classed(\"axis-text\",!0).style(B);var Q=J.select(\"text.axis-text\").attr({x:x+f.labelOffset,dy:o+\"em\",transform:function(t,e){var r=u(t,e),n=x+f.labelOffset,i=f.angularAxis.tickOrientation;return\"horizontal\"==i?\"rotate(\"+-r+\" \"+n+\" 0)\":\"radial\"==i?r<270&&r>90?\"rotate(180 \"+n+\" 0)\":null:\"rotate(\"+(r<=180&&r>0?-90:90)+\" \"+n+\" 0)\"}}).style({\"text-anchor\":\"middle\",display:f.angularAxis.labelsVisible?\"block\":\"none\"}).text(function(t,e){return e%(f.minorTicks+1)!=0?\"\":M?M[t]+f.angularAxis.ticksSuffix:t+f.angularAxis.ticksSuffix}).style(B);f.angularAxis.rewriteTicks&&Q.text(function(t,e){return e%(f.minorTicks+1)!=0?\"\":f.angularAxis.rewriteTicks(this.textContent,e)});var $=n.max(j.selectAll(\".angular-tick text\")[0].map(function(t,e){return t.getCTM().e+t.getBBox().width}));F.attr({transform:\"translate(\"+[x+$,f.margin.top]+\")\"});var tt=e.select(\"g.geometry-group\").selectAll(\"g\").size()>0,et=e.select(\"g.geometry-group\").selectAll(\"g.geometry\").data(p);if(et.enter().append(\"g\").attr({class:function(t,e){return\"geometry geometry\"+e}}),et.exit().remove(),p[0]||tt){var rt=[];p.forEach(function(t,e){var r={};r.radialScale=i,r.angularScale=l,r.container=et.filter(function(t,r){return r==e}),r.geometry=t.geometry,r.orientation=f.orientation,r.direction=f.direction,r.index=e,rt.push({data:t,geometryConfig:r})});var nt=n.nest().key(function(t,e){return void 0!==t.data.groupId||\"unstacked\"}).entries(rt),it=[];nt.forEach(function(t,e){\"unstacked\"===t.key?it=it.concat(t.values.map(function(t,e){return[t]})):it.push(t.values)}),it.forEach(function(t,e){var r;r=Array.isArray(t)?t[0].geometryConfig.geometry:t.geometryConfig.geometry;var n=t.map(function(t,e){return a(s[r].defaultConfig(),t)});s[r]().config(n)()})}var at,ot,st=e.select(\".guides-group\"),lt=e.select(\".tooltips-group\"),ut=s.tooltipPanel().config({container:lt,fontSize:8})(),ct=s.tooltipPanel().config({container:lt,fontSize:8})(),ht=s.tooltipPanel().config({container:lt,hasTick:!0})();if(!A){var ft=st.select(\"line\").attr({x1:0,y1:0,y2:0}).style({stroke:\"grey\",\"pointer-events\":\"none\"});j.on(\"mousemove.angular-guide\",function(t,e){var r=s.util.getMousePos(X).angle;ft.attr({x2:-x,transform:\"rotate(\"+r+\")\"}).style({opacity:.5});var n=(r+180+360-f.orientation)%360;at=l.invert(n);var i=s.util.convertToCartesian(x+12,r+180);ut.text(s.util.round(at)).move([i[0]+w[0],i[1]+w[1]])}).on(\"mouseout.angular-guide\",function(t,e){st.select(\"line\").style({opacity:0})})}var dt=st.select(\"circle\").style({stroke:\"grey\",fill:\"none\"});j.on(\"mousemove.radial-guide\",function(t,e){var r=s.util.getMousePos(X).radius;dt.attr({r:r}).style({opacity:.5}),ot=i.invert(s.util.getMousePos(X).radius);var n=s.util.convertToCartesian(r,f.radialAxis.orientation);ct.text(s.util.round(ot)).move([n[0]+w[0],n[1]+w[1]])}).on(\"mouseout.radial-guide\",function(t,e){dt.style({opacity:0}),ht.hide(),ut.hide(),ct.hide()}),e.selectAll(\".geometry-group .mark\").on(\"mouseover.tooltip\",function(t,r){var i=n.select(this),a=this.style.fill,o=\"black\",l=this.style.opacity||1;if(i.attr({\"data-opacity\":l}),a&&\"none\"!==a){i.attr({\"data-fill\":a}),o=n.hsl(a).darker().toString(),i.style({fill:o,opacity:1});var u={t:s.util.round(t[0]),r:s.util.round(t[1])};A&&(u.t=M[t[0]]);var c=\"t: \"+u.t+\", r: \"+u.r,h=this.getBoundingClientRect(),f=e.node().getBoundingClientRect(),d=[h.left+h.width/2-H[0]-f.left,h.top+h.height/2-H[1]-f.top];ht.config({color:o}).text(c),ht.move(d)}else a=this.style.stroke||\"black\",i.attr({\"data-stroke\":a}),o=n.hsl(a).darker().toString(),i.style({stroke:o,opacity:1})}).on(\"mousemove.tooltip\",function(t,e){if(0!=n.event.which)return!1;n.select(this).attr(\"data-fill\")&&ht.show()}).on(\"mouseout.tooltip\",function(t,e){ht.hide();var r=n.select(this),i=r.attr(\"data-fill\");i?r.style({fill:i,opacity:r.attr(\"data-opacity\")}):r.style({stroke:r.attr(\"data-stroke\"),opacity:r.attr(\"data-opacity\")})})}),d}var e,r,i,l,u={data:[],layout:{}},c={},h={},f=n.dispatch(\"hover\"),d={};return d.render=function(e){return t(e),this},d.config=function(t){if(!arguments.length)return u;var e=s.util.cloneJson(t);return e.data.forEach(function(t,e){u.data[e]||(u.data[e]={}),a(u.data[e],s.Axis.defaultConfig().data[0]),a(u.data[e],t)}),a(u.layout,s.Axis.defaultConfig().layout),a(u.layout,e.layout),this},d.getLiveConfig=function(){return h},d.getinputConfig=function(){return c},d.radialScale=function(t){return i},d.angularScale=function(t){return l},d.svg=function(){return e},n.rebind(d,f,\"on\"),d},s.Axis.defaultConfig=function(t,e){return{data:[{t:[1,2,3,4],r:[10,11,12,13],name:\"Line1\",geometry:\"LinePlot\",color:null,strokeDash:\"solid\",strokeColor:null,strokeSize:\"1\",visibleInLegend:!0,opacity:1}],layout:{defaultColorRange:n.scale.category10().range(),title:null,height:450,width:500,margin:{top:40,right:40,bottom:40,left:40},font:{size:12,color:\"gray\",outlineColor:\"white\",family:\"Tahoma, sans-serif\"},direction:\"clockwise\",orientation:0,labelOffset:10,radialAxis:{domain:null,orientation:-45,ticksSuffix:\"\",visible:!0,gridLinesVisible:!0,tickOrientation:\"horizontal\",rewriteTicks:null},angularAxis:{domain:[0,360],ticksSuffix:\"\",visible:!0,gridLinesVisible:!0,labelsVisible:!0,tickOrientation:\"horizontal\",rewriteTicks:null,ticksCount:null,ticksStep:null},minorTicks:0,tickLength:null,tickColor:\"silver\",minorTickColor:\"#eee\",backgroundColor:\"none\",needsEndSpacing:null,showLegend:!0,legend:{reverseOrder:!1},opacity:1}}},s.util={},s.DATAEXTENT=\"dataExtent\",s.AREA=\"AreaChart\",s.LINE=\"LinePlot\",s.DOT=\"DotPlot\",s.BAR=\"BarChart\",s.util._override=function(t,e){for(var r in t)r in e&&(e[r]=t[r])},s.util._extend=function(t,e){for(var r in t)e[r]=t[r]},s.util._rndSnd=function(){return 2*Math.random()-1+(2*Math.random()-1)+(2*Math.random()-1)},s.util.dataFromEquation2=function(t,e){var r=e||6;return n.range(0,360+r,r).map(function(e,r){var n=e*Math.PI/180;return[e,t(n)]})},s.util.dataFromEquation=function(t,e,r){var i=e||6,a=[],o=[];n.range(0,360+i,i).forEach(function(e,r){var n=e*Math.PI/180,i=t(n);a.push(e),o.push(i)});var s={t:a,r:o};return r&&(s.name=r),s},s.util.ensureArray=function(t,e){if(void 0===t)return null;var r=[].concat(t);return n.range(e).map(function(t,e){return r[e]||r[0]})},s.util.fillArrays=function(t,e,r){return e.forEach(function(e,n){t[e]=s.util.ensureArray(t[e],r)}),t},s.util.cloneJson=function(t){return JSON.parse(JSON.stringify(t))},s.util.validateKeys=function(t,e){\"string\"==typeof e&&(e=e.split(\".\"));var r=e.shift();return t[r]&&(!e.length||objHasKeys(t[r],e))},s.util.sumArrays=function(t,e){return n.zip(t,e).map(function(t,e){return n.sum(t)})},s.util.arrayLast=function(t){return t[t.length-1]},s.util.arrayEqual=function(t,e){for(var r=Math.max(t.length,e.length,1);r-- >=0&&t[r]===e[r];);return-2===r},s.util.flattenArray=function(t){for(var e=[];!s.util.arrayEqual(e,t);)e=t,t=[].concat.apply([],t);return t},s.util.deduplicate=function(t){return t.filter(function(t,e,r){return r.indexOf(t)==e})},s.util.convertToCartesian=function(t,e){var r=e*Math.PI/180;return[t*Math.cos(r),t*Math.sin(r)]},s.util.round=function(t,e){var r=e||2,n=Math.pow(10,r);return Math.round(t*n)/n},s.util.getMousePos=function(t){var e=n.mouse(t.node()),r=e[0],i=e[1],a={};return a.x=r,a.y=i,a.pos=e,a.angle=180*(Math.atan2(i,r)+Math.PI)/Math.PI,a.radius=Math.sqrt(r*r+i*i),a},s.util.duplicatesCount=function(t){for(var e,r={},n={},i=0,a=t.length;i<a;i++)e=t[i],e in r?(r[e]++,n[e]=r[e]):r[e]=1;return n},s.util.duplicates=function(t){return Object.keys(s.util.duplicatesCount(t))},s.util.translator=function(t,e,r,n){if(n){var i=r.slice();r=e,e=i}var a=e.reduce(function(t,e){if(void 0!==t)return t[e]},t);void 0!==a&&(e.reduce(function(t,r,n){if(void 0!==t)return n===e.length-1&&delete t[r],t[r]},t),r.reduce(function(t,e,n){return void 0===t[e]&&(t[e]={}),n===r.length-1&&(t[e]=a),t[e]},t))},s.PolyChart=function(){function t(){\n", "var t=e[0].geometryConfig,r=t.container;\"string\"==typeof r&&(r=n.select(r)),r.datum(e).each(function(e,r){function a(e,r){return{r:t.radialScale(e[1]),t:(t.angularScale(e[0])+t.orientation)*Math.PI/180}}function o(t){return{x:t.r*Math.cos(t.t),y:t.r*Math.sin(t.t)}}var s=!!e[0].data.yStack,l=e.map(function(t,e){return s?n.zip(t.data.t[0],t.data.r[0],t.data.yStack[0]):n.zip(t.data.t[0],t.data.r[0])}),u=t.angularScale,c=t.radialScale.domain()[0],h={};h.bar=function(r,i,a){var o=e[a].data,s=t.radialScale(r[1])-t.radialScale(0),l=t.radialScale(r[2]||0),c=o.barWidth;n.select(this).attr({class:\"mark bar\",d:\"M\"+[[s+l,-c/2],[s+l,c/2],[l,c/2],[l,-c/2]].join(\"L\")+\"Z\",transform:function(e,r){return\"rotate(\"+(t.orientation+u(e[0]))+\")\"}})},h.dot=function(t,r,i){var s=t[2]?[t[0],t[1]+t[2]]:t,l=n.svg.symbol().size(e[i].data.dotSize).type(e[i].data.dotType)(t,r);n.select(this).attr({class:\"mark dot\",d:l,transform:function(t,e){var r=o(a(s));return\"translate(\"+[r.x,r.y]+\")\"}})};var f=n.svg.line.radial().interpolate(e[0].data.lineInterpolation).radius(function(e){return t.radialScale(e[1])}).angle(function(e){return t.angularScale(e[0])*Math.PI/180});h.line=function(r,i,a){var o=r[2]?l[a].map(function(t,e){return[t[0],t[1]+t[2]]}):l[a];if(n.select(this).each(h.dot).style({opacity:function(t,r){return+e[a].data.dotVisible},fill:v.stroke(r,i,a)}).attr({class:\"mark dot\"}),!(i>0)){var s=n.select(this.parentNode).selectAll(\"path.line\").data([0]);s.enter().insert(\"path\"),s.attr({class:\"line\",d:f(o),transform:function(e,r){return\"rotate(\"+(t.orientation+90)+\")\"},\"pointer-events\":\"none\"}).style({fill:function(t,e){return v.fill(r,i,a)},\"fill-opacity\":0,stroke:function(t,e){return v.stroke(r,i,a)},\"stroke-width\":function(t,e){return v[\"stroke-width\"](r,i,a)},\"stroke-dasharray\":function(t,e){return v[\"stroke-dasharray\"](r,i,a)},opacity:function(t,e){return v.opacity(r,i,a)},display:function(t,e){return v.display(r,i,a)}})}};var d=t.angularScale.range(),p=Math.abs(d[1]-d[0])/l[0].length*Math.PI/180,m=n.svg.arc().startAngle(function(t){return-p/2}).endAngle(function(t){return p/2}).innerRadius(function(e){return t.radialScale(c+(e[2]||0))}).outerRadius(function(e){return t.radialScale(c+(e[2]||0))+t.radialScale(e[1])});h.arc=function(e,r,i){n.select(this).attr({class:\"mark arc\",d:m,transform:function(e,r){return\"rotate(\"+(t.orientation+u(e[0])+90)+\")\"}})};var v={fill:function(t,r,n){return e[n].data.color},stroke:function(t,r,n){return e[n].data.strokeColor},\"stroke-width\":function(t,r,n){return e[n].data.strokeSize+\"px\"},\"stroke-dasharray\":function(t,r,n){return i[e[n].data.strokeDash]},opacity:function(t,r,n){return e[n].data.opacity},display:function(t,r,n){return void 0===e[n].data.visible||e[n].data.visible?\"block\":\"none\"}},g=n.select(this).selectAll(\"g.layer\").data(l);g.enter().append(\"g\").attr({class:\"layer\"});var y=g.selectAll(\"path.mark\").data(function(t,e){return t});y.enter().append(\"path\").attr({class:\"mark\"}),y.style(v).each(h[t.geometryType]),y.exit().remove(),g.exit().remove()})}var e=[s.PolyChart.defaultConfig()],r=n.dispatch(\"hover\"),i={solid:\"none\",dash:[5,2],dot:[2,5]};return t.config=function(t){return arguments.length?(t.forEach(function(t,r){e[r]||(e[r]={}),a(e[r],s.PolyChart.defaultConfig()),a(e[r],t)}),this):e},t.getColorScale=function(){},n.rebind(t,r,\"on\"),t},s.PolyChart.defaultConfig=function(){return{data:{name:\"geom1\",t:[[1,2,3,4]],r:[[1,2,3,4]],dotType:\"circle\",dotSize:64,dotVisible:!1,barWidth:20,color:\"#ffa500\",strokeSize:1,strokeColor:\"silver\",strokeDash:\"solid\",opacity:1,index:0,visible:!0,visibleInLegend:!0},geometryConfig:{geometry:\"LinePlot\",geometryType:\"arc\",direction:\"clockwise\",orientation:0,container:\"body\",radialScale:null,angularScale:null,colorScale:n.scale.category20()}}},s.BarChart=function(){return s.PolyChart()},s.BarChart.defaultConfig=function(){return{geometryConfig:{geometryType:\"bar\"}}},s.AreaChart=function(){return s.PolyChart()},s.AreaChart.defaultConfig=function(){return{geometryConfig:{geometryType:\"arc\"}}},s.DotPlot=function(){return s.PolyChart()},s.DotPlot.defaultConfig=function(){return{geometryConfig:{geometryType:\"dot\",dotType:\"circle\"}}},s.LinePlot=function(){return s.PolyChart()},s.LinePlot.defaultConfig=function(){return{geometryConfig:{geometryType:\"line\"}}},s.Legend=function(){function t(){var r=e.legendConfig,i=e.data.map(function(t,e){return[].concat(t).map(function(t,n){var i=a({},r.elements[e]);return i.name=t,i.color=[].concat(r.elements[e].color)[n],i})}),o=n.merge(i);o=o.filter(function(t,e){return r.elements[e]&&(r.elements[e].visibleInLegend||void 0===r.elements[e].visibleInLegend)}),r.reverseOrder&&(o=o.reverse());var s=r.container;(\"string\"==typeof s||s.nodeName)&&(s=n.select(s));var l=o.map(function(t,e){return t.color}),u=r.fontSize,c=null==r.isContinuous?\"number\"==typeof o[0]:r.isContinuous,h=c?r.height:u*o.length,f=s.classed(\"legend-group\",!0),d=f.selectAll(\"svg\").data([0]),p=d.enter().append(\"svg\").attr({width:300,height:h+u,xmlns:\"http://www.w3.org/2000/svg\",\"xmlns:xlink\":\"http://www.w3.org/1999/xlink\",version:\"1.1\"});p.append(\"g\").classed(\"legend-axis\",!0),p.append(\"g\").classed(\"legend-marks\",!0);var m=n.range(o.length),v=n.scale[c?\"linear\":\"ordinal\"]().domain(m).range(l),g=n.scale[c?\"linear\":\"ordinal\"]().domain(m)[c?\"range\":\"rangePoints\"]([0,h]),y=function(t,e){var r=3*e;return\"line\"===t?\"M\"+[[-e/2,-e/12],[e/2,-e/12],[e/2,e/12],[-e/2,e/12]]+\"Z\":-1!=n.svg.symbolTypes.indexOf(t)?n.svg.symbol().type(t).size(r)():n.svg.symbol().type(\"square\").size(r)()};if(c){var b=d.select(\".legend-marks\").append(\"defs\").append(\"linearGradient\").attr({id:\"grad1\",x1:\"0%\",y1:\"0%\",x2:\"0%\",y2:\"100%\"}).selectAll(\"stop\").data(l);b.enter().append(\"stop\"),b.attr({offset:function(t,e){return e/(l.length-1)*100+\"%\"}}).style({\"stop-color\":function(t,e){return t}}),d.append(\"rect\").classed(\"legend-mark\",!0).attr({height:r.height,width:r.colorBandWidth,fill:\"url(#grad1)\"})}else{var x=d.select(\".legend-marks\").selectAll(\"path.legend-mark\").data(o);x.enter().append(\"path\").classed(\"legend-mark\",!0),x.attr({transform:function(t,e){return\"translate(\"+[u/2,g(e)+u/2]+\")\"},d:function(t,e){var r=t.symbol;return y(r,u)},fill:function(t,e){return v(e)}}),x.exit().remove()}var _=n.svg.axis().scale(g).orient(\"right\"),w=d.select(\"g.legend-axis\").attr({transform:\"translate(\"+[c?r.colorBandWidth:u,u/2]+\")\"}).call(_);return w.selectAll(\".domain\").style({fill:\"none\",stroke:\"none\"}),w.selectAll(\"line\").style({fill:\"none\",stroke:c?r.textColor:\"none\"}),w.selectAll(\"text\").style({fill:r.textColor,\"font-size\":r.fontSize}).text(function(t,e){return o[e].name}),t}var e=s.Legend.defaultConfig(),r=n.dispatch(\"hover\");return t.config=function(t){return arguments.length?(a(e,t),this):e},n.rebind(t,r,\"on\"),t},s.Legend.defaultConfig=function(t,e){return{data:[\"a\",\"b\",\"c\"],legendConfig:{elements:[{symbol:\"line\",color:\"red\"},{symbol:\"square\",color:\"yellow\"},{symbol:\"diamond\",color:\"limegreen\"}],height:150,colorBandWidth:30,fontSize:12,container:\"body\",isContinuous:null,textColor:\"grey\",reverseOrder:!1}}},s.tooltipPanel=function(){var t,e,r,i={container:null,hasTick:!1,fontSize:12,color:\"white\",padding:5},o=\"tooltip-\"+s.tooltipPanel.uid++,l=function(){t=i.container.selectAll(\"g.\"+o).data([0]);var n=t.enter().append(\"g\").classed(o,!0).style({\"pointer-events\":\"none\",display:\"none\"});return r=n.append(\"path\").style({fill:\"white\",\"fill-opacity\":.9}).attr({d:\"M0 0\"}),e=n.append(\"text\").attr({dx:i.padding+10,dy:.3*+i.fontSize}),l};return l.text=function(a){var o=n.hsl(i.color).l,s=o>=.5?\"#aaa\":\"white\",u=o>=.5?\"black\":\"white\",c=a||\"\";e.style({fill:u,\"font-size\":i.fontSize+\"px\"}).text(c);var h=i.padding,f=e.node().getBBox(),d={fill:i.color,stroke:s,\"stroke-width\":\"2px\"},p=f.width+2*h+10,m=f.height+2*h;return r.attr({d:\"M\"+[[10,-m/2],[10,-m/4],[i.hasTick?0:10,0],[10,m/4],[10,m/2],[p,m/2],[p,-m/2]].join(\"L\")+\"Z\"}).style(d),t.attr({transform:\"translate(\"+[10,-m/2+2*h]+\")\"}),t.style({display:\"block\"}),l},l.move=function(e){if(t)return t.attr({transform:\"translate(\"+[e[0],e[1]]+\")\"}).style({display:\"block\"}),l},l.hide=function(){if(t)return t.style({display:\"none\"}),l},l.show=function(){if(t)return t.style({display:\"block\"}),l},l.config=function(t){return a(i,t),l},l},s.tooltipPanel.uid=1,s.adapter={},s.adapter.plotly=function(){var t={};return t.convert=function(t,e){var r={};if(t.data&&(r.data=t.data.map(function(t,r){var n=a({},t);return[[n,[\"marker\",\"color\"],[\"color\"]],[n,[\"marker\",\"opacity\"],[\"opacity\"]],[n,[\"marker\",\"line\",\"color\"],[\"strokeColor\"]],[n,[\"marker\",\"line\",\"dash\"],[\"strokeDash\"]],[n,[\"marker\",\"line\",\"width\"],[\"strokeSize\"]],[n,[\"marker\",\"symbol\"],[\"dotType\"]],[n,[\"marker\",\"size\"],[\"dotSize\"]],[n,[\"marker\",\"barWidth\"],[\"barWidth\"]],[n,[\"line\",\"interpolation\"],[\"lineInterpolation\"]],[n,[\"showlegend\"],[\"visibleInLegend\"]]].forEach(function(t,r){s.util.translator.apply(null,t.concat(e))}),e||delete n.marker,e&&delete n.groupId,e?(\"LinePlot\"===n.geometry?(n.type=\"scatter\",!0===n.dotVisible?(delete n.dotVisible,n.mode=\"lines+markers\"):n.mode=\"lines\"):\"DotPlot\"===n.geometry?(n.type=\"scatter\",n.mode=\"markers\"):\"AreaChart\"===n.geometry?n.type=\"area\":\"BarChart\"===n.geometry&&(n.type=\"bar\"),delete n.geometry):(\"scatter\"===n.type?\"lines\"===n.mode?n.geometry=\"LinePlot\":\"markers\"===n.mode?n.geometry=\"DotPlot\":\"lines+markers\"===n.mode&&(n.geometry=\"LinePlot\",n.dotVisible=!0):\"area\"===n.type?n.geometry=\"AreaChart\":\"bar\"===n.type&&(n.geometry=\"BarChart\"),delete n.mode,delete n.type),n}),!e&&t.layout&&\"stack\"===t.layout.barmode)){var i=s.util.duplicates(r.data.map(function(t,e){return t.geometry}));r.data.forEach(function(t,e){var n=i.indexOf(t.geometry);-1!=n&&(r.data[e].groupId=n)})}if(t.layout){var o=a({},t.layout);if([[o,[\"plot_bgcolor\"],[\"backgroundColor\"]],[o,[\"showlegend\"],[\"showLegend\"]],[o,[\"radialaxis\"],[\"radialAxis\"]],[o,[\"angularaxis\"],[\"angularAxis\"]],[o.angularaxis,[\"showline\"],[\"gridLinesVisible\"]],[o.angularaxis,[\"showticklabels\"],[\"labelsVisible\"]],[o.angularaxis,[\"nticks\"],[\"ticksCount\"]],[o.angularaxis,[\"tickorientation\"],[\"tickOrientation\"]],[o.angularaxis,[\"ticksuffix\"],[\"ticksSuffix\"]],[o.angularaxis,[\"range\"],[\"domain\"]],[o.angularaxis,[\"endpadding\"],[\"endPadding\"]],[o.radialaxis,[\"showline\"],[\"gridLinesVisible\"]],[o.radialaxis,[\"tickorientation\"],[\"tickOrientation\"]],[o.radialaxis,[\"ticksuffix\"],[\"ticksSuffix\"]],[o.radialaxis,[\"range\"],[\"domain\"]],[o.angularAxis,[\"showline\"],[\"gridLinesVisible\"]],[o.angularAxis,[\"showticklabels\"],[\"labelsVisible\"]],[o.angularAxis,[\"nticks\"],[\"ticksCount\"]],[o.angularAxis,[\"tickorientation\"],[\"tickOrientation\"]],[o.angularAxis,[\"ticksuffix\"],[\"ticksSuffix\"]],[o.angularAxis,[\"range\"],[\"domain\"]],[o.angularAxis,[\"endpadding\"],[\"endPadding\"]],[o.radialAxis,[\"showline\"],[\"gridLinesVisible\"]],[o.radialAxis,[\"tickorientation\"],[\"tickOrientation\"]],[o.radialAxis,[\"ticksuffix\"],[\"ticksSuffix\"]],[o.radialAxis,[\"range\"],[\"domain\"]],[o.font,[\"outlinecolor\"],[\"outlineColor\"]],[o.legend,[\"traceorder\"],[\"reverseOrder\"]],[o,[\"labeloffset\"],[\"labelOffset\"]],[o,[\"defaultcolorrange\"],[\"defaultColorRange\"]]].forEach(function(t,r){s.util.translator.apply(null,t.concat(e))}),e?(void 0!==o.tickLength&&(o.angularaxis.ticklen=o.tickLength,delete o.tickLength),o.tickColor&&(o.angularaxis.tickcolor=o.tickColor,delete o.tickColor)):(o.angularAxis&&void 0!==o.angularAxis.ticklen&&(o.tickLength=o.angularAxis.ticklen),o.angularAxis&&void 0!==o.angularAxis.tickcolor&&(o.tickColor=o.angularAxis.tickcolor)),o.legend&&\"boolean\"!=typeof o.legend.reverseOrder&&(o.legend.reverseOrder=\"normal\"!=o.legend.reverseOrder),o.legend&&\"boolean\"==typeof o.legend.traceorder&&(o.legend.traceorder=o.legend.traceorder?\"reversed\":\"normal\",delete o.legend.reverseOrder),o.margin&&void 0!==o.margin.t){var l=[\"t\",\"r\",\"b\",\"l\",\"pad\"],u=[\"top\",\"right\",\"bottom\",\"left\",\"pad\"],c={};n.entries(o.margin).forEach(function(t,e){c[u[l.indexOf(t.key)]]=t.value}),o.margin=c}e&&(delete o.needsEndSpacing,delete o.minorTickColor,delete o.minorTicks,delete o.angularaxis.ticksCount,delete o.angularaxis.ticksCount,delete o.angularaxis.ticksStep,delete o.angularaxis.rewriteTicks,delete o.angularaxis.nticks,delete o.radialaxis.ticksCount,delete o.radialaxis.ticksCount,delete o.radialaxis.ticksStep,delete o.radialaxis.rewriteTicks,delete o.radialaxis.nticks),r.layout=o}return r},t}},{\"../../constants/alignment\":701,\"../../lib\":728,d3:122}],836:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../../lib\"),a=t(\"../../components/color\"),o=t(\"./micropolar\"),s=t(\"./undo_manager\"),l=i.extendDeepAll,u=e.exports={};u.framework=function(t){function e(e,i){return i&&(h=i),n.select(n.select(h).node().parentNode).selectAll(\".svg-container>*:not(.chart-root)\").remove(),r=r?l(r,e):e,a||(a=o.Axis()),c=o.adapter.plotly().convert(r),a.config(c).render(h),t.data=r.data,t.layout=r.layout,u.fillLayout(t),r}var r,i,a,c,h,f=new s;return e.isPolar=!0,e.svg=function(){return a.svg()},e.getConfig=function(){return r},e.getLiveConfig=function(){return o.adapter.plotly().convert(a.getLiveConfig(),!0)},e.getLiveScales=function(){return{t:a.angularScale(),r:a.radialScale()}},e.setUndoPoint=function(){var t=this,e=o.util.cloneJson(r);!function(e,r){f.add({undo:function(){r&&t(r)},redo:function(){t(e)}})}(e,i),i=o.util.cloneJson(e)},e.undo=function(){f.undo()},e.redo=function(){f.redo()},e},u.fillLayout=function(t){var e=n.select(t).selectAll(\".plot-container\"),r=e.selectAll(\".svg-container\"),i=t.framework&&t.framework.svg&&t.framework.svg(),o={width:800,height:600,paper_bgcolor:a.background,_container:e,_paperdiv:r,_paper:i};t._fullLayout=l(o,t.layout)}},{\"../../components/color\":604,\"../../lib\":728,\"./micropolar\":835,\"./undo_manager\":837,d3:122}],837:[function(t,e,r){\"use strict\";e.exports=function(){function t(t,e){return t?(i=!0,t[e](),i=!1,this):this}var e,r=[],n=-1,i=!1;return{add:function(t){return i?this:(r.splice(n+1,r.length-n),r.push(t),n=r.length-1,this)},setCallback:function(t){e=t},undo:function(){var i=r[n];return i?(t(i,\"undo\"),n-=1,e&&e(i.undo),this):this},redo:function(){var i=r[n+1];return i?(t(i,\"redo\"),n+=1,e&&e(i.redo),this):this},clear:function(){r=[],n=-1},hasUndo:function(){return-1!==n},hasRedo:function(){return n<r.length-1},getCommands:function(){return r},getPreviousCommand:function(){return r[n-1]},getIndex:function(){return n}}}},{}],838:[function(t,e,r){\"use strict\";var n=t(\"../lib\"),i=t(\"./plots\");e.exports=function(t,e,r,a){function o(t,e){return n.coerce(s,l,c,t,e)}for(var s,l,u=a.type,c=a.attributes,h=a.handleDefaults,f=a.partition||\"x\",d=i.findSubplotIds(r,u),p=d.length,m=0;m<p;m++){var v=d[m];s=t[v]?t[v]:t[v]={},e[v]=l={},o(\"domain.\"+f,[m/p,(m+1)/p]),o(\"domain.\"+{x:\"y\",y:\"x\"}[f]),a.id=v,h(s,l,o,a)}}},{\"../lib\":728,\"./plots\":831}],839:[function(t,e,r){\"use strict\";var n=t(\"./ternary\"),i=t(\"../../plots/plots\"),a=t(\"../../lib\").counterRegex;r.name=\"ternary\",r.attr=\"subplot\",r.idRoot=\"ternary\",r.idRegex=r.attrRegex=a(\"ternary\"),r.attributes=t(\"./layout/attributes\"),r.layoutAttributes=t(\"./layout/layout_attributes\"),r.supplyLayoutDefaults=t(\"./layout/defaults\"),r.plot=function(t){for(var e=t._fullLayout,r=t.calcdata,a=i.getSubplotIds(e,\"ternary\"),o=0;o<a.length;o++){var s=a[o],l=i.getSubplotCalcData(r,\"ternary\",s),u=e[s]._subplot;u||(u=new n({id:s,graphDiv:t,container:e._ternarylayer.node()},e),e[s]._subplot=u),u.plot(l,e,t._promises)}},r.clean=function(t,e,r,n){for(var a=i.getSubplotIds(n,\"ternary\"),o=0;o<a.length;o++){var s=a[o],l=n[s]._subplot;!e[s]&&l&&(l.plotContainer.remove(),l.clipDef.remove(),l.clipDefRelative.remove())}}},{\"../../lib\":728,\"../../plots/plots\":831,\"./layout/attributes\":840,\"./layout/defaults\":843,\"./layout/layout_attributes\":844,\"./ternary\":845}],840:[function(t,e,r){\"use strict\";e.exports={subplot:{valType:\"subplotid\",dflt:\"ternary\",editType:\"calc\"}}},{}],841:[function(t,e,r){\"use strict\";var n=t(\"../../cartesian/layout_attributes\"),i=t(\"../../../lib/extend\").extendFlat;e.exports={title:n.title,titlefont:n.titlefont,color:n.color,tickmode:n.tickmode,nticks:i({},n.nticks,{dflt:6,min:1}),tick0:n.tick0,dtick:n.dtick,tickvals:n.tickvals,ticktext:n.ticktext,ticks:n.ticks,ticklen:n.ticklen,tickwidth:n.tickwidth,tickcolor:n.tickcolor,showticklabels:n.showticklabels,showtickprefix:n.showtickprefix,tickprefix:n.tickprefix,showticksuffix:n.showticksuffix,ticksuffix:n.ticksuffix,showexponent:n.showexponent,exponentformat:n.exponentformat,separatethousands:n.separatethousands,tickfont:n.tickfont,tickangle:n.tickangle,tickformat:n.tickformat,hoverformat:n.hoverformat,showline:i({},n.showline,{dflt:!0}),linecolor:n.linecolor,linewidth:n.linewidth,showgrid:i({},n.showgrid,{dflt:!0}),gridcolor:n.gridcolor,gridwidth:n.gridwidth,layer:n.layer,min:{valType:\"number\",dflt:0,min:0}}},{\"../../../lib/extend\":717,\"../../cartesian/layout_attributes\":783}],842:[function(t,e,r){\"use strict\";var n=t(\"tinycolor2\").mix,i=t(\"../../../lib\"),a=t(\"./axis_attributes\"),o=t(\"../../cartesian/tick_label_defaults\"),s=t(\"../../cartesian/tick_mark_defaults\"),l=t(\"../../cartesian/tick_value_defaults\");e.exports=function(t,e,r){function u(r,n){return i.coerce(t,e,a,r,n)}e.type=\"linear\";var c=u(\"color\"),h=c===t.color?c:r.font.color,f=e._name,d=f.charAt(0).toUpperCase(),p=\"Component \"+d,m=u(\"title\",p);e._hovertitle=m===p?m:d,i.coerceFont(u,\"titlefont\",{family:r.font.family,size:Math.round(1.2*r.font.size),color:h}),u(\"min\"),l(t,e,u,\"linear\"),o(t,e,u,\"linear\",{noHover:!1}),s(t,e,u,{outerTicks:!0}),u(\"showticklabels\")&&(i.coerceFont(u,\"tickfont\",{family:r.font.family,size:r.font.size,color:h}),u(\"tickangle\"),u(\"tickformat\")),u(\"hoverformat\"),u(\"showline\")&&(u(\"linecolor\",c),u(\"linewidth\")),u(\"showgrid\")&&(u(\"gridcolor\",n(c,r.bgColor,60).toRgbString()),u(\"gridwidth\")),u(\"layer\")}},{\"../../../lib\":728,\"../../cartesian/tick_label_defaults\":790,\"../../cartesian/tick_mark_defaults\":791,\"../../cartesian/tick_value_defaults\":792,\"./axis_attributes\":841,tinycolor2:534}],843:[function(t,e,r){\"use strict\";function n(t,e,r,n){var a=r(\"bgcolor\"),o=r(\"sum\");n.bgColor=i.combine(a,n.paper_bgcolor);for(var u,c,h,f=0;f<l.length;f++)u=l[f],c=t[u]||{},h=e[u]={_name:u,type:\"linear\"},s(c,h,n);var d=e.aaxis,p=e.baxis,m=e.caxis;d.min+p.min+m.min>=o&&(d.min=0,p.min=0,m.min=0,t.aaxis&&delete t.aaxis.min,t.baxis&&delete t.baxis.min,t.caxis&&delete t.caxis.min)}var i=t(\"../../../components/color\"),a=t(\"../../subplot_defaults\"),o=t(\"./layout_attributes\"),s=t(\"./axis_defaults\"),l=[\"aaxis\",\"baxis\",\"caxis\"];e.exports=function(t,e,r){a(t,e,r,{type:\"ternary\",attributes:o,handleDefaults:n,font:e.font,paper_bgcolor:e.paper_bgcolor})}},{\"../../../components/color\":604,\"../../subplot_defaults\":838,\"./axis_defaults\":842,\"./layout_attributes\":844}],844:[function(t,e,r){\"use strict\";var n=t(\"../../../components/color/attributes\"),i=t(\"./axis_attributes\"),a=t(\"../../../plot_api/edit_types\").overrideAll;e.exports=a({domain:{x:{valType:\"info_array\",items:[{valType:\"number\",min:0,max:1},{valType:\"number\",min:0,max:1}],dflt:[0,1]},y:{valType:\"info_array\",items:[{valType:\"number\",min:0,max:1},{valType:\"number\",min:0,max:1}],dflt:[0,1]}},bgcolor:{valType:\"color\",dflt:n.background},sum:{valType:\"number\",dflt:1,min:0},aaxis:i,baxis:i,caxis:i},\"plot\",\"from-root\")},{\"../../../components/color/attributes\":603,\"../../../plot_api/edit_types\":756,\"./axis_attributes\":841}],845:[function(t,e,r){\"use strict\";function n(t,e){this.id=t.id,this.graphDiv=t.graphDiv,this.init(e),this.makeFramework(e)}function i(t){a.select(t).selectAll(\".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners\").remove()}var a=t(\"d3\"),o=t(\"tinycolor2\"),s=t(\"../../plotly\"),l=t(\"../../lib\"),u=t(\"../../components/color\"),c=t(\"../../components/drawing\"),h=t(\"../cartesian/set_convert\"),f=t(\"../../lib/extend\").extendFlat,d=t(\"../plots\"),p=t(\"../cartesian/axes\"),m=t(\"../../components/dragelement\"),v=t(\"../../components/fx\"),g=t(\"../../components/titles\"),y=t(\"../cartesian/select\"),b=t(\"../cartesian/constants\");e.exports=n;var x=n.prototype;x.init=function(t){this.container=t._ternarylayer,this.defs=t._defs,this.layoutId=t._uid,this.traceHash={},this.layers={}},x.plot=function(t,e){var r=this,n=e[r.id],i=e._size;r._hasClipOnAxisFalse=!1;for(var a=0;a<t.length;a++){if(!1===t[a][0].trace.cliponaxis){r._hasClipOnAxisFalse=!0;break}}r.updateLayers(n),r.adjustLayout(n,i),d.generalUpdatePerTraceModule(r,t,n),r.layers.plotbg.select(\"path\").call(u.fill,n.bgcolor)},x.makeFramework=function(t){var e=this,r=t[e.id],n=e.clipId=\"clip\"+e.layoutId+e.id;e.clipDef=t._clips.selectAll(\"#\"+n).data([0]),e.clipDef.enter().append(\"clipPath\").attr(\"id\",n).append(\"path\").attr(\"d\",\"M0,0Z\");var i=e.clipIdRelative=\"clip-relative\"+e.layoutId+e.id;e.clipDefRelative=t._clips.selectAll(\"#\"+i).data([0]),e.clipDefRelative.enter().append(\"clipPath\").attr(\"id\",i).append(\"path\").attr(\"d\",\"M0,0Z\"),e.plotContainer=e.container.selectAll(\"g.\"+e.id).data([0]),e.plotContainer.enter().append(\"g\").classed(e.id,!0),e.updateLayers(r),c.setClipUrl(e.layers.backplot,n),c.setClipUrl(e.layers.grids,n)},x.updateLayers=function(t){var e=this,r=e.layers,n=[\"draglayer\",\"plotbg\",\"backplot\",\"grids\"];\"below traces\"===t.aaxis.layer&&n.push(\"aaxis\",\"aline\"),\"below traces\"===t.baxis.layer&&n.push(\"baxis\",\"bline\"),\"below traces\"===t.caxis.layer&&n.push(\"caxis\",\"cline\"),n.push(\"frontplot\"),\"above traces\"===t.aaxis.layer&&n.push(\"aaxis\",\"aline\"),\"above traces\"===t.baxis.layer&&n.push(\"baxis\",\"bline\"),\"above traces\"===t.caxis.layer&&n.push(\"caxis\",\"cline\");var i=e.plotContainer.selectAll(\"g.toplevel\").data(n,String),o=[\"agrid\",\"bgrid\",\"cgrid\"];i.enter().append(\"g\").attr(\"class\",function(t){return\"toplevel \"+t}).each(function(t){var e=a.select(this);r[t]=e,\"frontplot\"===t?e.append(\"g\").classed(\"scatterlayer\",!0):\"backplot\"===t?e.append(\"g\").classed(\"maplayer\",!0):\"plotbg\"===t?e.append(\"path\").attr(\"d\",\"M0,0Z\"):\"aline\"===t||\"bline\"===t||\"cline\"===t?e.append(\"path\"):\"grids\"===t&&o.forEach(function(t){r[t]=e.append(\"g\").classed(\"grid \"+t,!0)})}),i.order()};var _=Math.sqrt(4/3);x.adjustLayout=function(t,e){var r,n,i,a,o,s,l=this,d=t.domain,p=(d.x[0]+d.x[1])/2,m=(d.y[0]+d.y[1])/2,v=d.x[1]-d.x[0],g=d.y[1]-d.y[0],y=v*e.w,b=g*e.h,x=t.sum,w=t.aaxis.min,M=t.baxis.min,k=t.caxis.min;y>_*b?(a=b,i=a*_):(i=y,a=i/_),o=v*i/y,s=g*a/b,r=e.l+e.w*p-i/2,n=e.t+e.h*(1-m)-a/2,l.x0=r,l.y0=n,l.w=i,l.h=a,l.sum=x,l.xaxis={type:\"linear\",range:[w+2*k-x,x-w-2*M],domain:[p-o/2,p+o/2],_id:\"x\"},h(l.xaxis,l.graphDiv._fullLayout),l.xaxis.setScale(),l.xaxis.isPtWithinRange=function(t){return t.a>=l.aaxis.range[0]&&t.a<=l.aaxis.range[1]&&t.b>=l.baxis.range[1]&&t.b<=l.baxis.range[0]&&t.c>=l.caxis.range[1]&&t.c<=l.caxis.range[0]},l.yaxis={type:\"linear\",range:[w,x-M-k],domain:[m-s/2,m+s/2],_id:\"y\"},h(l.yaxis,l.graphDiv._fullLayout),l.yaxis.setScale(),l.yaxis.isPtWithinRange=function(){return!0};var A=l.yaxis.domain[0],T=l.aaxis=f({},t.aaxis,{visible:!0,range:[w,x-M-k],side:\"left\",_counterangle:30,tickangle:(+t.aaxis.tickangle||0)-30,domain:[A,A+s*_],_axislayer:l.layers.aaxis,_gridlayer:l.layers.agrid,_pos:0,_id:\"y\",_length:i,_gridpath:\"M0,0l\"+a+\",-\"+i/2});h(T,l.graphDiv._fullLayout),T.setScale();var S=l.baxis=f({},t.baxis,{visible:!0,range:[x-w-k,M],side:\"bottom\",_counterangle:30,domain:l.xaxis.domain,_axislayer:l.layers.baxis,_gridlayer:l.layers.bgrid,_counteraxis:l.aaxis,_pos:0,_id:\"x\",_length:i,_gridpath:\"M0,0l-\"+i/2+\",-\"+a});h(S,l.graphDiv._fullLayout),S.setScale(),T._counteraxis=S;var E=l.caxis=f({},t.caxis,{visible:!0,range:[x-w-M,k],side:\"right\",_counterangle:30,tickangle:(+t.caxis.tickangle||0)+30,domain:[A,A+s*_],_axislayer:l.layers.caxis,_gridlayer:l.layers.cgrid,_counteraxis:l.baxis,_pos:0,_id:\"y\",_length:i,_gridpath:\"M0,0l-\"+a+\",\"+i/2});h(E,l.graphDiv._fullLayout),E.setScale();var L=\"M\"+r+\",\"+(n+a)+\"h\"+i+\"l-\"+i/2+\",-\"+a+\"Z\";l.clipDef.select(\"path\").attr(\"d\",L),l.layers.plotbg.select(\"path\").attr(\"d\",L);var C=\"M0,\"+a+\"h\"+i+\"l-\"+i/2+\",-\"+a+\"Z\";l.clipDefRelative.select(\"path\").attr(\"d\",C);var I=\"translate(\"+r+\",\"+n+\")\";l.plotContainer.selectAll(\".scatterlayer,.maplayer\").attr(\"transform\",I),l.clipDefRelative.select(\"path\").attr(\"transform\",null);var z=\"translate(\"+r+\",\"+(n+a)+\")\";l.layers.baxis.attr(\"transform\",z),l.layers.bgrid.attr(\"transform\",z);var D=\"translate(\"+(r+i/2)+\",\"+n+\")rotate(30)\";l.layers.aaxis.attr(\"transform\",D),l.layers.agrid.attr(\"transform\",D);var P=\"translate(\"+(r+i/2)+\",\"+n+\")rotate(-30)\";l.layers.caxis.attr(\"transform\",P),l.layers.cgrid.attr(\"transform\",P),l.drawAxes(!0),l.plotContainer.selectAll(\".crisp\").classed(\"crisp\",!1),l.layers.aline.select(\"path\").attr(\"d\",T.showline?\"M\"+r+\",\"+(n+a)+\"l\"+i/2+\",-\"+a:\"M0,0\").call(u.stroke,T.linecolor||\"#000\").style(\"stroke-width\",(T.linewidth||0)+\"px\"),l.layers.bline.select(\"path\").attr(\"d\",S.showline?\"M\"+r+\",\"+(n+a)+\"h\"+i:\"M0,0\").call(u.stroke,S.linecolor||\"#000\").style(\"stroke-width\",(S.linewidth||0)+\"px\"),l.layers.cline.select(\"path\").attr(\"d\",E.showline?\"M\"+(r+i/2)+\",\"+n+\"l\"+i/2+\",\"+a:\"M0,0\").call(u.stroke,E.linecolor||\"#000\").style(\"stroke-width\",(E.linewidth||0)+\"px\"),l.graphDiv._context.staticPlot||l.initInteractions(),c.setClipUrl(l.layers.frontplot,l._hasClipOnAxisFalse?null:l.clipId)},x.drawAxes=function(t){var e=this,r=e.graphDiv,n=e.id.substr(7)+\"title\",i=e.aaxis,a=e.baxis,o=e.caxis;if(p.doTicks(r,i,!0),p.doTicks(r,a,!0),p.doTicks(r,o,!0),t){var s=Math.max(i.showticklabels?i.tickfont.size/2:0,(o.showticklabels?.75*o.tickfont.size:0)+(\"outside\"===o.ticks?.87*o.ticklen:0));g.draw(r,\"a\"+n,{propContainer:i,propName:e.id+\".aaxis.title\",dfltName:\"Component A\",attributes:{x:e.x0+e.w/2,y:e.y0-i.titlefont.size/3-s,\"text-anchor\":\"middle\"}});var l=(a.showticklabels?a.tickfont.size:0)+(\"outside\"===a.ticks?a.ticklen:0)+3;g.draw(r,\"b\"+n,{propContainer:a,propName:e.id+\".baxis.title\",dfltName:\"Component B\",attributes:{x:e.x0-l,y:e.y0+e.h+.83*a.titlefont.size+l,\"text-anchor\":\"middle\"}}),g.draw(r,\"c\"+n,{propContainer:o,propName:e.id+\".caxis.title\",dfltName:\"Component C\",attributes:{x:e.x0+e.w+l,y:e.y0+e.h+.83*o.titlefont.size+l,\"text-anchor\":\"middle\"}})}};var w=b.MINZOOM/2+.87,M=\"m-0.87,.5h\"+w+\"v3h-\"+(w+5.2)+\"l\"+(w/2+2.6)+\",-\"+(.87*w+4.5)+\"l2.6,1.5l-\"+w/2+\",\"+.87*w+\"Z\",k=\"m0.87,.5h-\"+w+\"v3h\"+(w+5.2)+\"l-\"+(w/2+2.6)+\",-\"+(.87*w+4.5)+\"l-2.6,1.5l\"+w/2+\",\"+.87*w+\"Z\",A=\"m0,1l\"+w/2+\",\"+.87*w+\"l2.6,-1.5l-\"+(w/2+2.6)+\",-\"+(.87*w+4.5)+\"l-\"+(w/2+2.6)+\",\"+(.87*w+4.5)+\"l2.6,1.5l\"+w/2+\",-\"+.87*w+\"Z\",T=!0;x.initInteractions=function(){function t(t,e,r){var n=F.getBoundingClientRect();w=e-n.left,S=r-n.top,E={a:R.aaxis.range[0],b:R.baxis.range[1],c:R.caxis.range[1]},C=E,L=R.aaxis.range[1]-E.a,I=o(R.graphDiv._fullLayout[R.id].bgcolor).getLuminance(),z=\"M0,\"+R.h+\"L\"+R.w/2+\", 0L\"+R.w+\",\"+R.h+\"Z\",D=!1,P=N.append(\"path\").attr(\"class\",\"zoombox\").attr(\"transform\",\"translate(\"+R.x0+\", \"+R.y0+\")\").style({fill:I>.2?\"rgba(0,0,0,0)\":\"rgba(255,255,255,0)\",\"stroke-width\":0}).attr(\"d\",z),O=N.append(\"path\").attr(\"class\",\"zoombox-corners\").attr(\"transform\",\"translate(\"+R.x0+\", \"+R.y0+\")\").style({fill:u.background,stroke:u.defaultLine,\"stroke-width\":1,opacity:0}).attr(\"d\",\"M0,0Z\"),g()}function e(t,e){return 1-e/R.h}function r(t,e){return 1-(t+(R.h-e)/Math.sqrt(3))/R.w}function n(t,e){return(t-(R.h-e)/Math.sqrt(3))/R.w}function a(t,i){var a=w+t,o=S+i,s=Math.max(0,Math.min(1,e(w,S),e(a,o))),l=Math.max(0,Math.min(1,r(w,S),r(a,o))),u=Math.max(0,Math.min(1,n(w,S),n(a,o))),c=(s/2+u)*R.w,h=(1-s/2-l)*R.w,f=(c+h)/2,d=h-c,p=(1-s)*R.h,m=p-d/_;d<b.MINZOOM?(C=E,P.attr(\"d\",z),O.attr(\"d\",\"M0,0Z\")):(C={a:E.a+s*L,b:E.b+l*L,c:E.c+u*L},P.attr(\"d\",z+\"M\"+c+\",\"+p+\"H\"+h+\"L\"+f+\",\"+m+\"L\"+c+\",\"+p+\"Z\"),O.attr(\"d\",\"M\"+w+\",\"+S+\"m0.5,0.5h5v-2h-5v-5h-2v5h-5v2h5v5h2ZM\"+c+\",\"+p+M+\"M\"+h+\",\"+p+k+\"M\"+f+\",\"+m+A)),D||(P.transition().style(\"fill\",I>.2?\"rgba(0,0,0,0.4)\":\"rgba(255,255,255,0.3)\").duration(200),O.transition().style(\"opacity\",1).duration(200),D=!0)}function h(t,e){if(C===E)return 2===e&&x(),i(j);i(j);var r={};r[R.id+\".aaxis.min\"]=C.a,r[R.id+\".baxis.min\"]=C.b,r[R.id+\".caxis.min\"]=C.c,s.relayout(j,r),T&&j.data&&j._context.showTips&&(l.notifier(\"Double-click to<br>zoom back out\",\"long\"),T=!1)}function f(){E={a:R.aaxis.range[0],b:R.baxis.range[1],c:R.caxis.range[1]},C=E}function d(t,e){var r=t/R.xaxis._m,n=e/R.yaxis._m;C={a:E.a-n,b:E.b+(r+n)/2,c:E.c-(r-n)/2};var i=[C.a,C.b,C.c].sort(),a={a:i.indexOf(C.a),b:i.indexOf(C.b),c:i.indexOf(C.c)};i[0]<0&&(i[1]+i[0]/2<0?(i[2]+=i[0]+i[1],i[0]=i[1]=0):(i[2]+=i[0]/2,i[1]+=i[0]/2,i[0]=0),C={a:i[a.a],b:i[a.b],c:i[a.c]},e=(E.a-C.a)*R.yaxis._m,t=(E.c-C.c-E.b+C.b)*R.xaxis._m);var o=\"translate(\"+(R.x0+t)+\",\"+(R.y0+e)+\")\";R.plotContainer.selectAll(\".scatterlayer,.maplayer\").attr(\"transform\",o);var s=\"translate(\"+-t+\",\"+-e+\")\";if(R.clipDefRelative.select(\"path\").attr(\"transform\",s),R.aaxis.range=[C.a,R.sum-C.b-C.c],R.baxis.range=[R.sum-C.a-C.c,C.b],R.caxis.range=[R.sum-C.a-C.b,C.c],R.drawAxes(!1),R.plotContainer.selectAll(\".crisp\").classed(\"crisp\",!1),R._hasClipOnAxisFalse){var l=R.plotContainer.select(\".scatterlayer\").selectAll(\".points\");l.selectAll(\".point\").call(c.hideOutsideRangePoints,R),l.selectAll(\".textpoint\").call(c.hideOutsideRangePoints,R)}}function p(t,e){if(t){var r={};r[R.id+\".aaxis.min\"]=C.a,r[R.id+\".baxis.min\"]=C.b,r[R.id+\".caxis.min\"]=C.c,s.relayout(j,r)}else 2===e&&x()}function g(){N.selectAll(\".select-outline\").remove()}function x(){var t={};t[R.id+\".aaxis.min\"]=0,t[R.id+\".baxis.min\"]=0,t[R.id+\".caxis.min\"]=0,j.emit(\"plotly_doubleclick\",null),s.relayout(j,t)}var w,S,E,L,C,I,z,D,P,O,R=this,F=R.layers.plotbg.select(\"path\").node(),j=R.graphDiv,N=j._fullLayout._zoomlayer,B={element:F,gd:j,plotinfo:{xaxis:R.xaxis,yaxis:R.yaxis},doubleclick:x,subplot:R.id,prepFn:function(e,r,n){B.xaxes=[R.xaxis],B.yaxes=[R.yaxis];var i=j._fullLayout.dragmode;e.shiftKey&&(i=\"pan\"===i?\"zoom\":\"pan\"),B.minDrag=\"lasso\"===i?1:void 0,\"zoom\"===i?(B.moveFn=a,B.doneFn=h,t(e,r,n)):\"pan\"===i?(B.moveFn=d,B.doneFn=p,f(),g()):\"select\"!==i&&\"lasso\"!==i||y(e,r,n,B,i)}};F.onmousemove=function(t){v.hover(j,t,R.id),j._fullLayout._lasthover=F,j._fullLayout._hoversubplot=R.id},F.onmouseout=function(t){j._dragging||m.unhover(j,t)},F.onclick=function(t){v.click(j,t,R.id)},m.init(B)}},{\"../../components/color\":604,\"../../components/dragelement\":625,\"../../components/drawing\":628,\"../../components/fx\":645,\"../../components/titles\":694,\"../../lib\":728,\"../../lib/extend\":717,\"../../plotly\":767,\"../cartesian/axes\":772,\"../cartesian/constants\":777,\"../cartesian/select\":788,\"../cartesian/set_convert\":789,\"../plots\":831,d3:122,tinycolor2:534}],846:[function(t,e,r){\"use strict\";function n(t){if(t.layoutAttributes){var e=t.layoutAttributes._arrayAttrRegexps;if(e)for(var n=0;n<e.length;n++)c(r.layoutArrayRegexes,e[n])}}function i(t,e){var n=r.componentsRegistry[t].schema;if(n&&n.traces){var i=n.traces[e];i&&d(r.modules[e]._module.attributes,i)}}function a(t,e){var n=r.componentsRegistry[t].schema;if(n&&n.transforms){var i=n.transforms[e];i&&d(r.transformsRegistry[e].attributes,i)}}function o(t,e){var n=r.componentsRegistry[t].schema;if(n&&n.subplots){var i=r.subplotsRegistry[e],a=i.layoutAttributes,o=\"subplot\"===i.attr?i.name:i.attr;Array.isArray(o)&&(o=o[0]);var s=n.subplots[o];a&&s&&d(a,s)}}function s(t){return\"object\"==typeof t&&(t=t.type),t}var l=t(\"./lib/loggers\"),u=t(\"./lib/noop\"),c=t(\"./lib/push_unique\"),h=t(\"./lib/extend\"),f=h.extendFlat,d=h.extendDeepAll,p=t(\"./plots/attributes\"),m=t(\"./plots/layout_attributes\");r.modules={},r.allCategories={},r.allTypes=[],r.subplotsRegistry={},r.transformsRegistry={},r.componentsRegistry={},r.layoutArrayContainers=[],r.layoutArrayRegexes=[],r.traceLayoutAttributes={},r.register=function(t,e,n,a){if(r.modules[e])return void l.log(\"Type \"+e+\" already registered\");for(var o={},s=0;s<n.length;s++)o[n[s]]=!0,r.allCategories[n[s]]=!0;r.modules[e]={_module:t,categories:o},a&&Object.keys(a).length&&(r.modules[e].meta=a),r.allTypes.push(e);for(var u in r.componentsRegistry)i(u,e);t.layoutAttributes&&f(r.traceLayoutAttributes,t.layoutAttributes)},r.registerSubplot=function(t){var e=t.name;if(r.subplotsRegistry[e])return void l.log(\"Plot type \"+e+\" already registered.\");n(t),r.subplotsRegistry[e]=t;for(var i in r.componentsRegistry)o(i,t.name)},r.registerComponent=function(t){var e=t.name\n", ";r.componentsRegistry[e]=t,t.layoutAttributes&&(t.layoutAttributes._isLinkedToArray&&c(r.layoutArrayContainers,e),n(t));for(var s in r.modules)i(e,s);for(var l in r.subplotsRegistry)o(e,l);for(var u in r.transformsRegistry)a(e,u);t.schema&&t.schema.layout&&d(m,t.schema.layout)},r.registerTransform=function(t){r.transformsRegistry[t.name]=t;for(var e in r.componentsRegistry)a(e,t.name)},r.getModule=function(t){if(void 0!==t.r)return l.warn(\"Tried to put a polar trace on an incompatible graph of cartesian data. Ignoring this dataset.\",t),!1;var e=r.modules[s(t)];return!!e&&e._module},r.traceIs=function(t,e){if(\"various\"===(t=s(t)))return!1;var n=r.modules[t];return n||(t&&\"area\"!==t&&l.log(\"Unrecognized trace type \"+t+\".\"),n=r.modules[p.type.dflt]),!!n.categories[e]},r.getTransformIndices=function(t,e){for(var r=[],n=t.transforms||[],i=0;i<n.length;i++)n[i].type===e&&r.push(i);return r},r.hasTransform=function(t,e){for(var r=t.transforms||[],n=0;n<r.length;n++)if(r[n].type===e)return!0;return!1},r.getComponentMethod=function(t,e){var n=r.componentsRegistry[t];return n?n[e]||u:u}},{\"./lib/extend\":717,\"./lib/loggers\":732,\"./lib/noop\":736,\"./lib/push_unique\":740,\"./plots/attributes\":770,\"./plots/layout_attributes\":822}],847:[function(t,e,r){\"use strict\";function n(t){var e;switch(t){case\"themes__thumb\":e={autosize:!0,width:150,height:150,title:\"\",showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case\"thumbnail\":e={title:\"\",hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:\"\",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:e={}}return e}function i(t){return[\"xaxis\",\"yaxis\",\"zaxis\"].indexOf(t.slice(0,5))>-1}var a=t(\"../lib\"),o=t(\"../plots/plots\"),s=a.extendFlat,l=a.extendDeep;e.exports=function(t,e){t.framework&&t.framework.isPolar&&(t=t.framework.getConfig());var r,a=t.data,u=t.layout,c=l([],a),h=l({},u,n(e.tileClass)),f=t._context||{};if(e.width&&(h.width=e.width),e.height&&(h.height=e.height),\"thumbnail\"===e.tileClass||\"themes__thumb\"===e.tileClass){h.annotations=[];var d=Object.keys(h);for(r=0;r<d.length;r++)i(d[r])&&(h[d[r]].title=\"\");for(r=0;r<c.length;r++){var p=c[r];p.showscale=!1,p.marker&&(p.marker.showscale=!1),\"pie\"===p.type&&(p.textposition=\"none\")}}if(Array.isArray(e.annotations))for(r=0;r<e.annotations.length;r++)h.annotations.push(e.annotations[r]);var m=o.getSubplotIds(h,\"gl3d\");if(m.length){var v={};for(\"thumbnail\"===e.tileClass&&(v={title:\"\",showaxeslabels:!1,showticklabels:!1,linetickenable:!1}),r=0;r<m.length;r++){var g=h[m[r]];g.xaxis||(g.xaxis={}),g.yaxis||(g.yaxis={}),g.zaxis||(g.zaxis={}),s(g.xaxis,v),s(g.yaxis,v),s(g.zaxis,v),g._scene=null}}var y=document.createElement(\"div\");e.tileClass&&(y.className=e.tileClass);var b={gd:y,td:y,layout:h,data:c,config:{staticPlot:void 0===e.staticPlot||e.staticPlot,plotGlPixelRatio:void 0===e.plotGlPixelRatio?2:e.plotGlPixelRatio,displaylogo:e.displaylogo||!1,showLink:e.showLink||!1,showTips:e.showTips||!1,mapboxAccessToken:f.mapboxAccessToken}};return\"transparent\"!==e.setBackground&&(b.config.setBackground=e.setBackground||\"opaque\"),b.gd.defaultLayout=n(e.tileClass),b}},{\"../lib\":728,\"../plots/plots\":831}],848:[function(t,e,r){\"use strict\";function n(t,e){return e=e||{},e.format=e.format||\"png\",new Promise(function(r,n){t._snapshotInProgress&&n(new Error(\"Snapshotting already in progress.\")),a.isIE()&&\"svg\"!==e.format&&n(new Error(\"Sorry IE does not support downloading from canvas. Try {format:'svg'} instead.\")),t._snapshotInProgress=!0;var s=i(t,e),l=e.filename||t.fn||\"newplot\";l+=\".\"+e.format,s.then(function(e){return t._snapshotInProgress=!1,o(e,l)}).then(function(t){r(t)}).catch(function(e){t._snapshotInProgress=!1,n(e)})})}var i=t(\"../plot_api/to_image\"),a=t(\"../lib\"),o=t(\"./filesaver\");e.exports=n},{\"../lib\":728,\"../plot_api/to_image\":765,\"./filesaver\":849}],849:[function(t,e,r){\"use strict\";var n=function(t,e){var r=document.createElement(\"a\"),n=\"download\"in r,i=/Version\\/[\\d\\.]+.*Safari/.test(navigator.userAgent);return new Promise(function(a,o){\"undefined\"!=typeof navigator&&/MSIE [1-9]\\./.test(navigator.userAgent)&&o(new Error(\"IE < 10 unsupported\")),i&&(document.location.href=\"data:application/octet-stream\"+t.slice(t.search(/[,;]/)),a(e)),e||(e=\"download\"),n&&(r.href=t,r.download=e,document.body.appendChild(r),r.click(),document.body.removeChild(r),a(e)),\"undefined\"!=typeof navigator&&navigator.msSaveBlob&&(navigator.msSaveBlob(new Blob([t]),e),a(e)),o(new Error(\"download error\"))})};e.exports=n},{}],850:[function(t,e,r){\"use strict\";r.getDelay=function(t){return t._has&&(t._has(\"gl3d\")||t._has(\"gl2d\"))?500:0},r.getRedrawFunc=function(t){if(!(t.data&&t.data[0]&&t.data[0].r))return function(){(t.calcdata||[]).forEach(function(t){t[0]&&t[0].t&&t[0].t.cb&&t[0].t.cb()})}}},{}],851:[function(t,e,r){\"use strict\";var n=t(\"./helpers\"),i={getDelay:n.getDelay,getRedrawFunc:n.getRedrawFunc,clone:t(\"./cloneplot\"),toSVG:t(\"./tosvg\"),svgToImg:t(\"./svgtoimg\"),toImage:t(\"./toimage\"),downloadImage:t(\"./download\")};e.exports=i},{\"./cloneplot\":847,\"./download\":848,\"./helpers\":850,\"./svgtoimg\":852,\"./toimage\":853,\"./tosvg\":854}],852:[function(t,e,r){\"use strict\";function n(t){var e=t.emitter||new a,r=new Promise(function(n,a){var o=window.Image,s=t.svg,l=t.format||\"png\";if(i.isIE()&&\"svg\"!==l){var u=new Error(\"Sorry IE does not support downloading from canvas. Try {format:'svg'} instead.\");return a(u),t.promise?r:e.emit(\"error\",u)}var c=t.canvas,h=t.scale||1,f=t.width||300,d=t.height||150,p=h*f,m=h*d,v=c.getContext(\"2d\"),g=new o,y=\"data:image/svg+xml,\"+encodeURIComponent(s);c.width=p,c.height=m,g.onload=function(){var r;switch(\"svg\"!==l&&v.drawImage(g,0,0,p,m),l){case\"jpeg\":r=c.toDataURL(\"image/jpeg\");break;case\"png\":r=c.toDataURL(\"image/png\");break;case\"webp\":r=c.toDataURL(\"image/webp\");break;case\"svg\":r=y;break;default:var i=\"Image format is not jpeg, png, svg or webp.\";if(a(new Error(i)),!t.promise)return e.emit(\"error\",i)}n(r),t.promise||e.emit(\"success\",r)},g.onerror=function(r){if(a(r),!t.promise)return e.emit(\"error\",r)},g.src=y});return t.promise?r:e}var i=t(\"../lib\"),a=t(\"events\").EventEmitter;e.exports=n},{\"../lib\":728,events:129}],853:[function(t,e,r){\"use strict\";function n(t,e){function r(){var t=s.getDelay(f._fullLayout);setTimeout(function(){var t=u(f),r=document.createElement(\"canvas\");r.id=o.randstr(),n=c({format:e.format,width:f._fullLayout.width,height:f._fullLayout.height,canvas:r,emitter:n,svg:t}),n.clean=function(){f&&document.body.removeChild(f)}},t)}var n=new i,h=l(t,{format:\"png\"}),f=h.gd;f.style.position=\"absolute\",f.style.left=\"-5000px\",document.body.appendChild(f);var d=s.getRedrawFunc(f);return a.plot(f,h.data,h.layout,h.config).then(d).then(r).catch(function(t){n.emit(\"error\",t)}),n}var i=t(\"events\").EventEmitter,a=t(\"../plotly\"),o=t(\"../lib\"),s=t(\"./helpers\"),l=t(\"./cloneplot\"),u=t(\"./tosvg\"),c=t(\"./svgtoimg\");e.exports=n},{\"../lib\":728,\"../plotly\":767,\"./cloneplot\":847,\"./helpers\":850,\"./svgtoimg\":852,\"./tosvg\":854,events:129}],854:[function(t,e,r){\"use strict\";function n(t){var e=a.select(\"body\").append(\"div\").style({display:\"none\"}).html(\"\"),r=t.replace(/(&[^;]*;)/gi,function(t){return\"&lt;\"===t?\"&#60;\":\"&rt;\"===t?\"&#62;\":-1!==t.indexOf(\"<\")||-1!==t.indexOf(\">\")?\"\":e.html(t).text()});return e.remove(),r}function i(t){return t.replace(/&(?!\\w+;|\\#[0-9]+;| \\#x[0-9A-F]+;)/g,\"&amp;\")}var a=t(\"d3\"),o=t(\"../lib\"),s=t(\"../components/drawing\"),l=t(\"../components/color\"),u=t(\"../constants/xmlns_namespaces\"),c=/\"/g,h=new RegExp('(\"TOBESTRIPPED)|(TOBESTRIPPED\")',\"g\");e.exports=function(t,e,r){var f,d=t._fullLayout,p=d._paper,m=d._toppaper,v=d.width,g=d.height;p.insert(\"rect\",\":first-child\").call(s.setRect,0,0,v,g).call(l.fill,d.paper_bgcolor);var y=d._basePlotModules||[];for(f=0;f<y.length;f++){var b=y[f];b.toSVG&&b.toSVG(t)}if(m){var x=m.node().childNodes,_=Array.prototype.slice.call(x);for(f=0;f<_.length;f++){var w=_[f];w.childNodes.length&&p.node().appendChild(w)}}d._draggers&&d._draggers.remove(),p.node().style.background=\"\",p.selectAll(\"text\").attr({\"data-unformatted\":null,\"data-math\":null}).each(function(){var t=a.select(this);if(\"hidden\"===this.style.visibility||\"none\"===this.style.display)return void t.remove();t.style({visibility:null,display:null});var e=this.style.fontFamily;e&&-1!==e.indexOf('\"')&&t.style(\"font-family\",e.replace(c,\"TOBESTRIPPED\"))}),p.selectAll(\".point,.scatterpts\").each(function(){var t=a.select(this),e=this.style.fill;e&&-1!==e.indexOf(\"url(\")&&t.style(\"fill\",e.replace(c,\"TOBESTRIPPED\"))}),\"pdf\"!==e&&\"eps\"!==e||p.selectAll(\"#MathJax_SVG_glyphs path\").attr(\"stroke-width\",0),p.node().setAttributeNS(u.xmlns,\"xmlns\",u.svg),p.node().setAttributeNS(u.xmlns,\"xmlns:xlink\",u.xlink),\"svg\"===e&&r&&(p.attr(\"width\",r*v),p.attr(\"height\",r*g),p.attr(\"viewBox\",\"0 0 \"+v+\" \"+g));var M=(new window.XMLSerializer).serializeToString(p.node());return M=n(M),M=i(M),M=M.replace(h,\"'\"),o.isIE()&&(M=M.replace(/\"/gi,\"'\"),M=M.replace(/(\\('#)([^']*)('\\))/gi,'(\"$2\")'),M=M.replace(/(\\\\')/gi,'\"')),M}},{\"../components/color\":604,\"../components/drawing\":628,\"../constants/xmlns_namespaces\":709,\"../lib\":728,d3:122}],855:[function(t,e,r){\"use strict\";var n=t(\"../../lib\").mergeArray;e.exports=function(t,e){n(e.text,t,\"tx\"),n(e.hovertext,t,\"htx\");var r=e.marker;if(r){n(r.opacity,t,\"mo\"),n(r.color,t,\"mc\");var i=r.line;i&&(n(i.color,t,\"mlc\"),n(i.width,t,\"mlw\"))}}},{\"../../lib\":728}],856:[function(t,e,r){\"use strict\";var n=t(\"../scatter/attributes\"),i=t(\"../../components/colorscale/color_attributes\"),a=t(\"../../components/errorbars/attributes\"),o=t(\"../../components/colorbar/attributes\"),s=t(\"../../plots/font_attributes\"),l=t(\"../../lib/extend\").extendFlat,u=s({editType:\"calc\",arrayOk:!0}),c=n.marker,h=c.line,f=l({},h.width,{dflt:0}),d=l({width:f,editType:\"calc\"},i(\"marker.line\")),p=l({line:d,editType:\"calc\"},i(\"marker\"),{showscale:c.showscale,colorbar:o});e.exports={x:n.x,x0:n.x0,dx:n.dx,y:n.y,y0:n.y0,dy:n.dy,text:n.text,hovertext:n.hovertext,textposition:{valType:\"enumerated\",values:[\"inside\",\"outside\",\"auto\",\"none\"],dflt:\"none\",arrayOk:!0,editType:\"calc\"},textfont:l({},u,{}),insidetextfont:l({},u,{}),outsidetextfont:l({},u,{}),constraintext:{valType:\"enumerated\",values:[\"inside\",\"outside\",\"both\",\"none\"],dflt:\"both\",editType:\"calc\"},orientation:{valType:\"enumerated\",values:[\"v\",\"h\"],editType:\"calc+clearAxisTypes\"},base:{valType:\"any\",dflt:null,arrayOk:!0,editType:\"calc\"},offset:{valType:\"number\",dflt:null,arrayOk:!0,editType:\"calc\"},width:{valType:\"number\",dflt:null,min:0,arrayOk:!0,editType:\"calc\"},marker:p,r:n.r,t:n.t,error_y:a,error_x:a,_deprecated:{bardir:{valType:\"enumerated\",editType:\"calc\",values:[\"v\",\"h\"]}}}},{\"../../components/colorbar/attributes\":605,\"../../components/colorscale/color_attributes\":611,\"../../components/errorbars/attributes\":630,\"../../lib/extend\":717,\"../../plots/font_attributes\":796,\"../scatter/attributes\":1031}],857:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../../plots/cartesian/axes\"),a=t(\"../../components/colorscale/has_colorscale\"),o=t(\"../../components/colorscale/calc\"),s=t(\"./arrays_to_calcdata\");e.exports=function(t,e){var r,l,u,c,h,f=i.getFromId(t,e.xaxis||\"x\"),d=i.getFromId(t,e.yaxis||\"y\"),p=e.orientation||(e.x&&!e.y?\"h\":\"v\");\"h\"===p?(r=f,u=f.makeCalcdata(e,\"x\"),l=d.makeCalcdata(e,\"y\"),h=e.xcalendar):(r=d,u=d.makeCalcdata(e,\"y\"),l=f.makeCalcdata(e,\"x\"),h=e.ycalendar);var m=Math.min(l.length,u.length),v=new Array(m);for(c=0;c<m;c++)v[c]={p:l[c],s:u[c]};var g,y=e.base;if(Array.isArray(y)){for(c=0;c<Math.min(y.length,v.length);c++)g=r.d2c(y[c],0,h),n(g)?(v[c].b=+g,v[c].hasB=1):v[c].b=0;for(;c<v.length;c++)v[c].b=0}else{g=r.d2c(y,0,h);var b=n(g);for(g=b?g:0,c=0;c<v.length;c++)v[c].b=g,b&&(v[c].hasB=1)}return a(e,\"marker\")&&o(e,e.marker.color,\"marker\",\"c\"),a(e,\"marker.line\")&&o(e,e.marker.line.color,\"marker.line\",\"c\"),s(v,e),v}},{\"../../components/colorscale/calc\":610,\"../../components/colorscale/has_colorscale\":617,\"../../plots/cartesian/axes\":772,\"./arrays_to_calcdata\":855,\"fast-isnumeric\":131}],858:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../components/color\"),a=t(\"../scatter/xy_defaults\"),o=t(\"../bar/style_defaults\"),s=t(\"../../components/errorbars/defaults\"),l=t(\"./attributes\");e.exports=function(t,e,r,u){function c(r,i){return n.coerce(t,e,l,r,i)}var h=n.coerceFont;if(!a(t,e,u,c))return void(e.visible=!1);c(\"orientation\",e.x&&!e.y?\"h\":\"v\"),c(\"base\"),c(\"offset\"),c(\"width\"),c(\"text\"),c(\"hovertext\");var f=c(\"textposition\"),d=Array.isArray(f)||\"auto\"===f,p=d||\"inside\"===f,m=d||\"outside\"===f;if(p||m){var v=h(c,\"textfont\",u.font);p&&h(c,\"insidetextfont\",v),m&&h(c,\"outsidetextfont\",v),c(\"constraintext\")}o(t,e,c,r,u),s(t,e,i.defaultLine,{axis:\"y\"}),s(t,e,i.defaultLine,{axis:\"x\",inherit:\"y\"})}},{\"../../components/color\":604,\"../../components/errorbars/defaults\":633,\"../../lib\":728,\"../bar/style_defaults\":868,\"../scatter/xy_defaults\":1054,\"./attributes\":856}],859:[function(t,e,r){\"use strict\";var n=t(\"../../components/fx\"),i=t(\"../../components/errorbars\"),a=t(\"../../components/color\"),o=t(\"../scatter/fill_hover_text\");e.exports=function(t,e,r,s){var l,u,c,h,f,d,p,m=t.cd,v=m[0].trace,g=m[0].t,y=t.xa,b=t.ya,x=function(t){return n.inbox(h(t)-l,f(t)-l)};\"h\"===v.orientation?(l=r,u=function(t){return t.y-t.w/2},c=function(t){return t.y+t.w/2},d=function(t){return n.inbox(t.b-e,t.x-e)+(t.x-e)/(t.x-t.b)},p=x):(l=e,u=function(t){return t.x-t.w/2},c=function(t){return t.x+t.w/2},p=function(t){return n.inbox(t.b-r,t.y-r)+(t.y-r)/(t.y-t.b)},d=x),h=\"closest\"===s?u:function(t){return Math.min(u(t),t.p-g.bargroupwidth/2)},f=\"closest\"===s?c:function(t){return Math.max(c(t),t.p+g.bargroupwidth/2)};var _=n.getDistanceFunction(s,d,p);if(n.getClosest(m,_,t),!1!==t.index){var w=t.index,M=m[w],k=M.mcc||v.marker.color,A=M.mlcc||v.marker.line.color,T=M.mlw||v.marker.line.width;a.opacity(k)?t.color=k:a.opacity(A)&&T&&(t.color=A);var S=v.base?M.b+M.s:M.s;return\"h\"===v.orientation?(t.x0=t.x1=y.c2p(M.x,!0),t.xLabelVal=S,t.y0=b.c2p(h(M),!0),t.y1=b.c2p(f(M),!0),t.yLabelVal=M.p):(t.y0=t.y1=b.c2p(M.y,!0),t.yLabelVal=S,t.x0=y.c2p(h(M),!0),t.x1=y.c2p(f(M),!0),t.xLabelVal=M.p),o(M,v,t),i.hoverInfo(M,v,t),[t]}}},{\"../../components/color\":604,\"../../components/errorbars\":634,\"../../components/fx\":645,\"../scatter/fill_hover_text\":1038}],860:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.layoutAttributes=t(\"./layout_attributes\"),n.supplyDefaults=t(\"./defaults\"),n.supplyLayoutDefaults=t(\"./layout_defaults\"),n.calc=t(\"./calc\"),n.setPositions=t(\"./set_positions\"),n.colorbar=t(\"../scatter/colorbar\"),n.arraysToCalcdata=t(\"./arrays_to_calcdata\"),n.plot=t(\"./plot\"),n.style=t(\"./style\"),n.hoverPoints=t(\"./hover\"),n.selectPoints=t(\"./select\"),n.moduleType=\"trace\",n.name=\"bar\",n.basePlotModule=t(\"../../plots/cartesian\"),n.categories=[\"cartesian\",\"bar\",\"oriented\",\"markerColorscale\",\"errorBarsOK\",\"showLegend\"],n.meta={},e.exports=n},{\"../../plots/cartesian\":782,\"../scatter/colorbar\":1034,\"./arrays_to_calcdata\":855,\"./attributes\":856,\"./calc\":857,\"./defaults\":858,\"./hover\":859,\"./layout_attributes\":861,\"./layout_defaults\":862,\"./plot\":863,\"./select\":864,\"./set_positions\":865,\"./style\":867}],861:[function(t,e,r){\"use strict\";e.exports={barmode:{valType:\"enumerated\",values:[\"stack\",\"group\",\"overlay\",\"relative\"],dflt:\"group\",editType:\"calc\"},barnorm:{valType:\"enumerated\",values:[\"\",\"fraction\",\"percent\"],dflt:\"\",editType:\"calc\"},bargap:{valType:\"number\",min:0,max:1,editType:\"calc\"},bargroupgap:{valType:\"number\",min:0,max:1,dflt:0,editType:\"calc\"}}},{}],862:[function(t,e,r){\"use strict\";var n=t(\"../../registry\"),i=t(\"../../plots/cartesian/axes\"),a=t(\"../../lib\"),o=t(\"./layout_attributes\");e.exports=function(t,e,r){function s(r,n){return a.coerce(t,e,o,r,n)}for(var l=!1,u=!1,c=!1,h={},f=0;f<r.length;f++){var d=r[f];if(n.traceIs(d,\"bar\")){if(l=!0,\"overlay\"!==t.barmode&&\"stack\"!==t.barmode){var p=d.xaxis+d.yaxis;h[p]&&(c=!0),h[p]=!0}if(d.visible&&\"histogram\"===d.type){\"category\"!==i.getFromId({_fullLayout:e},d[\"v\"===d.orientation?\"xaxis\":\"yaxis\"]).type&&(u=!0)}}}if(l){\"overlay\"!==s(\"barmode\")&&s(\"barnorm\"),s(\"bargap\",u&&!c?0:.2),s(\"bargroupgap\")}}},{\"../../lib\":728,\"../../plots/cartesian/axes\":772,\"../../registry\":846,\"./layout_attributes\":861}],863:[function(t,e,r){\"use strict\";function n(t,e,r,n,o,f,d,p){function m(e,r,n){return e.append(\"text\").text(r).attr({class:\"bartext\",transform:\"\",\"text-anchor\":\"middle\",\"data-notex\":1}).call(k.font,n).call(w.convertToTspans,t)}var v=r[0].trace,g=v.orientation,y=s(v,n);if(y){var b=l(v,n);if(\"none\"!==b){var x,_,M,A,T=u(v,n,t._fullLayout.font),S=c(v,n,T),E=h(v,n,T),L=t._fullLayout.barmode,C=\"stack\"===L,I=\"relative\"===L,D=C||I,P=r[n],O=!D||P._outmost,R=Math.abs(f-o)-2*z,F=Math.abs(p-d)-2*z;if(\"outside\"===b&&(O||(b=\"inside\")),\"auto\"===b)if(O){x=m(e,y,S),_=k.bBox(x.node()),M=_.width,A=_.height;var j=M>0&&A>0,N=M<=R&&A<=F,B=M<=F&&A<=R,U=\"h\"===g?R>=M*(F/A):F>=A*(R/M);j&&(N||B||U)?b=\"inside\":(b=\"outside\",x.remove(),x=null)}else b=\"inside\";if(!x&&(x=m(e,y,\"outside\"===b?E:S),_=k.bBox(x.node()),M=_.width,A=_.height,M<=0||A<=0))return void x.remove();var V,H;\"outside\"===b?(H=\"both\"===v.constraintext||\"outside\"===v.constraintext,V=a(o,f,d,p,_,g,H)):(H=\"both\"===v.constraintext||\"inside\"===v.constraintext,V=i(o,f,d,p,_,g,H)),x.attr(\"transform\",V)}}}function i(t,e,r,n,i,a,s){var l,u,c,h,f,d=i.width,p=i.height,m=(i.left+i.right)/2,v=(i.top+i.bottom)/2,g=Math.abs(e-t),y=Math.abs(n-r);g>2*z&&y>2*z?(f=z,g-=2*f,y-=2*f):f=0;var b,x;return d<=g&&p<=y?(b=!1,x=1):d<=y&&p<=g?(b=!0,x=1):d<p==g<y?(b=!1,x=s?Math.min(g/d,y/p):1):(b=!0,x=s?Math.min(y/d,g/p):1),b&&(b=90),b?(l=x*p,u=x*d):(l=x*d,u=x*p),\"h\"===a?e<t?(c=e+f+l/2,h=(r+n)/2):(c=e-f-l/2,h=(r+n)/2):n>r?(c=(t+e)/2,h=n-f-u/2):(c=(t+e)/2,h=n+f+u/2),o(m,v,c,h,x,b)}function a(t,e,r,n,i,a,s){var l,u=\"h\"===a?Math.abs(n-r):Math.abs(e-t);u>2*z&&(l=z);var c=1;s&&(c=\"h\"===a?Math.min(1,u/i.height):Math.min(1,u/i.width));var h,f,d,p,m=(i.left+i.right)/2,v=(i.top+i.bottom)/2;return h=c*i.width,f=c*i.height,\"h\"===a?e<t?(d=e-l-h/2,p=(r+n)/2):(d=e+l+h/2,p=(r+n)/2):n>r?(d=(t+e)/2,p=n+l+f/2):(d=(t+e)/2,p=n-l-f/2),o(m,v,d,p,c,!1)}function o(t,e,r,n,i,a){var o,s;return i<1?o=\"scale(\"+i+\") \":(i=1,o=\"\"),s=a?\"rotate(\"+a+\" \"+t+\" \"+e+\") \":\"\",\"translate(\"+(r-i*t)+\" \"+(n-i*e)+\")\"+o+s}function s(t,e){var r=d(t.text,e);return p(S,r)}function l(t,e){var r=d(t.textposition,e);return m(E,r)}function u(t,e,r){return f(L,t.textfont,e,r)}function c(t,e,r){return f(C,t.insidetextfont,e,r)}function h(t,e,r){return f(I,t.outsidetextfont,e,r)}function f(t,e,r,n){e=e||{};var i=d(e.family,r),a=d(e.size,r),o=d(e.color,r);return{family:p(t.family,i,n.family),size:v(t.size,a,n.size),color:g(t.color,o,n.color)}}function d(t,e){var r;return Array.isArray(t)?e<t.length&&(r=t[e]):r=t,r}function p(t,e,r){if(\"string\"==typeof e){if(e||!t.noBlank)return e}else if(\"number\"==typeof e&&!t.strict)return String(e);return void 0!==r?r:t.dflt}function m(t,e,r){return t.coerceNumber&&(e=+e),-1!==t.values.indexOf(e)?e:void 0!==r?r:t.dflt}function v(t,e,r){if(b(e)){e=+e;var n=t.min,i=t.max;if(!(void 0!==n&&e<n||void 0!==i&&e>i))return e}return void 0!==r?r:t.dflt}function g(t,e,r){return x(e).isValid()?e:void 0!==r?r:t.dflt}var y=t(\"d3\"),b=t(\"fast-isnumeric\"),x=t(\"tinycolor2\"),_=t(\"../../lib\"),w=t(\"../../lib/svg_text_utils\"),M=t(\"../../components/color\"),k=t(\"../../components/drawing\"),A=t(\"../../components/errorbars\"),T=t(\"./attributes\"),S=T.text,E=T.textposition,L=T.textfont,C=T.insidetextfont,I=T.outsidetextfont,z=3;e.exports=function(t,e,r){var i=e.xaxis,a=e.yaxis,o=t._fullLayout,s=e.plot.select(\".barlayer\").selectAll(\"g.trace.bars\").data(r);s.enter().append(\"g\").attr(\"class\",\"trace bars\"),s.append(\"g\").attr(\"class\",\"points\").each(function(e){var r=e[0].node3=y.select(this),s=e[0].t,l=e[0].trace,u=s.poffset,c=Array.isArray(u);r.selectAll(\"g.point\").data(_.identity).enter().append(\"g\").classed(\"point\",!0).each(function(r,s){function h(t){return 0===o.bargap&&0===o.bargroupgap?y.round(Math.round(t)-A,2):t}function f(t,e){return Math.abs(t-e)>=2?h(t):t>e?Math.ceil(t):Math.floor(t)}var d,p,m,v,g=r.p+(c?u[s]:u),x=g+r.w,_=r.b,w=_+r.s;if(\"h\"===l.orientation?(m=a.c2p(g,!0),v=a.c2p(x,!0),d=i.c2p(_,!0),p=i.c2p(w,!0),r.ct=[p,(m+v)/2]):(d=i.c2p(g,!0),p=i.c2p(x,!0),m=a.c2p(_,!0),v=a.c2p(w,!0),r.ct=[(d+p)/2,v]),!(b(d)&&b(p)&&b(m)&&b(v)&&d!==p&&m!==v))return void y.select(this).remove();var k=(r.mlw+1||l.marker.line.width+1||(r.trace?r.trace.marker.line.width:0)+1)-1,A=y.round(k/2%1,2);if(!t._context.staticPlot){var T=M.opacity(r.mc||l.marker.color),S=T<1||k>.01?h:f;d=S(d,p),p=S(p,d),m=S(m,v),v=S(v,m)}var E=y.select(this);E.append(\"path\").style(\"vector-effect\",\"non-scaling-stroke\").attr(\"d\",\"M\"+d+\",\"+m+\"V\"+v+\"H\"+p+\"V\"+m+\"Z\"),n(t,E,e,s,d,p,m,v)})}),s.call(A.plot,e)}},{\"../../components/color\":604,\"../../components/drawing\":628,\"../../components/errorbars\":634,\"../../lib\":728,\"../../lib/svg_text_utils\":750,\"./attributes\":856,d3:122,\"fast-isnumeric\":131,tinycolor2:534}],864:[function(t,e,r){\"use strict\";var n=t(\"../../constants/interactions\").DESELECTDIM;e.exports=function(t,e){var r,i=t.cd,a=[],o=i[0].trace,s=i[0].node3;if(!0===o.visible){if(!1===e)for(r=0;r<i.length;r++)i[r].dim=0;else for(r=0;r<i.length;r++){var l=i[r];e.contains(l.ct)?(a.push({pointNumber:r,x:l.x,y:l.y}),l.dim=0):l.dim=1}return s.selectAll(\".point\").style(\"opacity\",function(t){return t.dim?n:1}),s.selectAll(\"text\").style(\"opacity\",function(t){return t.dim?n:1}),a}}},{\"../../constants/interactions\":706}],865:[function(t,e,r){\"use strict\";function n(t,e,r,n){if(n.length){var s,l,u,c,h,f=t._fullLayout.barmode,d=\"overlay\"===f,p=\"group\"===f;if(d)i(t,e,r,n);else if(p){for(s=[],l=[],u=0;u<n.length;u++)c=n[u],h=c[0].trace,void 0===h.offset?l.push(c):s.push(c);l.length&&a(t,e,r,l),s.length&&i(t,e,r,s)}else{for(s=[],l=[],u=0;u<n.length;u++)c=n[u],h=c[0].trace,void 0===h.base?l.push(c):s.push(c);l.length&&o(t,e,r,l),s.length&&i(t,e,r,s)}}}function i(t,e,r,n){for(var i=t._fullLayout.barnorm,a=!i,o=0;o<n.length;o++){var l=n[o],u=new w([l],!1,a);s(t,e,u),i?(m(t,r,u),v(t,r,u)):d(t,r,u)}}function a(t,e,r,n){var i=t._fullLayout,a=i.barnorm,o=!a,s=new w(n,!1,o);l(t,e,s),a?(m(t,r,s),v(t,r,s)):d(t,r,s)}function o(t,e,r,n){var i=t._fullLayout,a=i.barmode,o=\"stack\"===a,l=\"relative\"===a,u=t._fullLayout.barnorm,c=l,h=!(u||o||l),f=new w(n,c,h);s(t,e,f),p(t,r,f);for(var d=0;d<n.length;d++)for(var m=n[d],g=0;g<m.length;g++){var y=m[g];if(y.s!==b){var x=y.b+y.s===f.get(y.p,y.s);x&&(y._outmost=!0)}}u&&v(t,r,f)}function s(t,e,r){var n,i,a,o,s=t._fullLayout,l=s.bargap,f=s.bargroupgap,d=r.minDiff,p=r.traces,m=d*(1-l),v=m,g=v*(1-f),y=-g/2;for(n=0;n<p.length;n++)i=p[n],a=i[0],o=a.t,o.barwidth=g,o.poffset=y,o.bargroupwidth=m;r.binWidth=p[0][0].t.barwidth/100,u(r),c(t,e,r),h(t,e,r)}function l(t,e,r){var n,i,a,o,s=t._fullLayout,l=s.bargap,f=s.bargroupgap,d=r.positions,p=r.distinctPositions,m=r.minDiff,v=r.traces,g=d.length!==p.length,y=v.length,b=m*(1-l),x=g?b/y:b,_=x*(1-f);for(n=0;n<y;n++){i=v[n],a=i[0];var w=g?((2*n+1-y)*x-_)/2:-_/2;o=a.t,o.barwidth=_,o.poffset=w,o.bargroupwidth=b}r.binWidth=v[0][0].t.barwidth/100,u(r),c(t,e,r),h(t,e,r,g)}function u(t){var e,r,n,i,a,o,s=t.traces;for(e=0;e<s.length;e++){r=s[e],n=r[0],i=n.trace,o=n.t;var l,u=i.offset,c=o.poffset;if(Array.isArray(u)){for(l=u.slice(0,r.length),a=0;a<l.length;a++)y(l[a])||(l[a]=c);for(a=l.length;a<r.length;a++)l.push(c);o.poffset=l}else void 0!==u&&(o.poffset=u);var h=i.width,f=o.barwidth;if(Array.isArray(h)){var d=h.slice(0,r.length);for(a=0;a<d.length;a++)y(d[a])||(d[a]=f);for(a=d.length;a<r.length;a++)d.push(f);if(o.barwidth=d,void 0===u){for(l=[],a=0;a<r.length;a++)l.push(c+(f-d[a])/2);o.poffset=l}}else void 0!==h&&(o.barwidth=h,void 0===u&&(o.poffset=c+(f-h)/2))}}function c(t,e,r){for(var n=r.traces,i=g(e),a=0;a<n.length;a++)for(var o=n[a],s=o[0].t,l=s.poffset,u=Array.isArray(l),c=s.barwidth,h=Array.isArray(c),f=0;f<o.length;f++){var d=o[f],p=d.w=h?c[f]:c;d[i]=d.p+(u?l[f]:l)+p/2}}function h(t,e,r,n){var i=r.traces,a=r.distinctPositions,o=a[0],s=r.minDiff,l=s/2;_.minDtick(e,s,o,n);for(var u=Math.min.apply(Math,a)-l,c=Math.max.apply(Math,a)+l,h=0;h<i.length;h++){var f=i[h],d=f[0],p=d.trace;if(void 0!==p.width||void 0!==p.offset)for(var m=d.t,v=m.poffset,g=m.barwidth,y=Array.isArray(v),b=Array.isArray(g),x=0;x<f.length;x++){var w=f[x],M=y?v[x]:v,k=b?g[x]:g,A=w.p,T=A+M,S=T+k;u=Math.min(u,T),c=Math.max(c,S)}}_.expand(e,[u,c],{padded:!1})}function f(t,e){y(t[0])?t[0]=Math.min(t[0],e):t[0]=e,y(t[1])?t[1]=Math.max(t[1],e):t[1]=e}function d(t,e,r){for(var n=r.traces,i=g(e),a=[null,null],o=0;o<n.length;o++)for(var s=n[o],l=0;l<s.length;l++){var u=s[l],c=u.b,h=c+u.s;u[i]=h,y(e.c2l(h))&&f(a,h),u.hasB&&y(e.c2l(c))&&f(a,c)}_.expand(e,a,{tozero:!0,padded:!0})}function p(t,e,r){var n,i,a,o,s=t._fullLayout,l=s.barnorm,u=g(e),c=r.traces,h=[null,null];for(n=0;n<c.length;n++)for(i=c[n],a=0;a<i.length;a++)if(o=i[a],o.s!==b){var d=r.put(o.p,o.b+o.s),p=d+o.b+o.s;o.b=d,o[u]=p,l||(y(e.c2l(p))&&f(h,p),o.hasB&&y(e.c2l(d))&&f(h,d))}l||_.expand(e,h,{tozero:!0,padded:!0})}function m(t,e,r){for(var n=r.traces,i=0;i<n.length;i++)for(var a=n[i],o=0;o<a.length;o++){var s=a[o];s.s!==b&&r.put(s.p,s.b+s.s)}}function v(t,e,r){function n(t){y(e.c2l(t))&&(t<l-s||t>u+s||!y(l))&&(h=!0,f(c,t))}for(var i=r.traces,a=g(e),o=\"fraction\"===t._fullLayout.barnorm?1:100,s=o/1e9,l=e.l2c(e.c2l(0)),u=\"stack\"===t._fullLayout.barmode?o:l,c=[l,u],h=!1,d=0;d<i.length;d++)for(var p=i[d],m=0;m<p.length;m++){var v=p[m];if(v.s!==b){var x=Math.abs(o/r.get(v.p,v.s));v.b*=x,v.s*=x;var w=v.b,M=w+v.s;v[a]=M,n(M),v.hasB&&n(w)}}_.expand(e,c,{tozero:!0,padded:h})}function g(t){return t._id.charAt(0)}var y=t(\"fast-isnumeric\"),b=t(\"../../constants/numerical\").BADNUM,x=t(\"../../registry\"),_=t(\"../../plots/cartesian/axes\"),w=t(\"./sieve.js\");e.exports=function(t,e){var r,i=e.xaxis,a=e.yaxis,o=t._fullData,s=t.calcdata,l=[],u=[];for(r=0;r<o.length;r++){var c=o[r];!0===c.visible&&x.traceIs(c,\"bar\")&&c.xaxis===i._id&&c.yaxis===a._id&&(\"h\"===c.orientation?l.push(s[r]):u.push(s[r]))}n(t,i,a,u),n(t,a,i,l)}},{\"../../constants/numerical\":707,\"../../plots/cartesian/axes\":772,\"../../registry\":846,\"./sieve.js\":866,\"fast-isnumeric\":131}],866:[function(t,e,r){\"use strict\";function n(t,e,r){this.traces=t,this.separateNegativeValues=e,this.dontMergeOverlappingData=r;for(var n=1/0,o=[],s=0;s<t.length;s++){for(var l=t[s],u=0;u<l.length;u++){var c=l[u];c.p!==a&&o.push(c.p)}l[0]&&l[0].width1&&(n=Math.min(l[0].width1,n))}this.positions=o;var h=i.distinctVals(o);this.distinctPositions=h.vals,1===h.vals.length&&n!==1/0?this.minDiff=n:this.minDiff=Math.min(h.minDiff,n),this.binWidth=this.minDiff,this.bins={}}e.exports=n;var i=t(\"../../lib\"),a=t(\"../../constants/numerical\").BADNUM;n.prototype.put=function(t,e){var r=this.getLabel(t,e),n=this.bins[r]||0;return this.bins[r]=n+e,n},n.prototype.get=function(t,e){var r=this.getLabel(t,e);return this.bins[r]||0},n.prototype.getLabel=function(t,e){return(e<0&&this.separateNegativeValues?\"v\":\"^\")+(this.dontMergeOverlappingData?t:Math.round(t/this.binWidth))}},{\"../../constants/numerical\":707,\"../../lib\":728}],867:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../../components/color\"),a=t(\"../../components/drawing\"),o=t(\"../../components/errorbars\");e.exports=function(t){var e=n.select(t).selectAll(\"g.trace.bars\"),r=e.size(),s=t._fullLayout;e.style(\"opacity\",function(t){return t[0].trace.opacity}).each(function(t){(\"stack\"===s.barmode&&r>1||0===s.bargap&&0===s.bargroupgap&&!t[0].trace.marker.line.width)&&n.select(this).attr(\"shape-rendering\",\"crispEdges\")}),e.selectAll(\"g.points\").each(function(t){var e=t[0].trace,r=e.marker,o=r.line,s=a.tryColorscale(r,\"\"),l=a.tryColorscale(r,\"line\");n.select(this).selectAll(\"path\").each(function(t){var e,a,u=(t.mlw+1||o.width+1)-1,c=n.select(this);e=\"mc\"in t?t.mcc=s(t.mc):Array.isArray(r.color)?i.defaultLine:r.color,c.style(\"stroke-width\",u+\"px\").call(i.fill,e),u&&(a=\"mlc\"in t?t.mlcc=l(t.mlc):Array.isArray(o.color)?i.defaultLine:o.color,c.call(i.stroke,a))})}),e.call(o.style)}},{\"../../components/color\":604,\"../../components/drawing\":628,\"../../components/errorbars\":634,d3:122}],868:[function(t,e,r){\"use strict\";var n=t(\"../../components/color\"),i=t(\"../../components/colorscale/has_colorscale\"),a=t(\"../../components/colorscale/defaults\");e.exports=function(t,e,r,o,s){r(\"marker.color\",o),i(t,\"marker\")&&a(t,e,s,r,{prefix:\"marker.\",cLetter:\"c\"}),r(\"marker.line.color\",n.defaultLine),i(t,\"marker.line\")&&a(t,e,s,r,{prefix:\"marker.line.\",cLetter:\"c\"}),r(\"marker.line.width\")}},{\"../../components/color\":604,\"../../components/colorscale/defaults\":613,\"../../components/colorscale/has_colorscale\":617}],869:[function(t,e,r){\"use strict\";var n=t(\"../scatter/attributes\"),i=t(\"../../components/color/attributes\"),a=t(\"../../lib/extend\").extendFlat,o=n.marker,s=o.line;e.exports={y:{valType:\"data_array\",editType:\"calc+clearAxisTypes\"},x:{valType:\"data_array\",editType:\"calc+clearAxisTypes\"},x0:{valType:\"any\",editType:\"calc+clearAxisTypes\"},y0:{valType:\"any\",editType:\"calc+clearAxisTypes\"},name:{valType:\"string\",editType:\"calc+clearAxisTypes\"},whiskerwidth:{valType:\"number\",min:0,max:1,dflt:.5,editType:\"calcIfAutorange\"},boxpoints:{valType:\"enumerated\",values:[\"all\",\"outliers\",\"suspectedoutliers\",!1],dflt:\"outliers\",editType:\"calcIfAutorange\"},boxmean:{valType:\"enumerated\",values:[!0,\"sd\",!1],dflt:!1,editType:\"calcIfAutorange\"},jitter:{valType:\"number\",min:0,max:1,editType:\"calcIfAutorange\"},pointpos:{valType:\"number\",min:-2,max:2,editType:\"calcIfAutorange\"},orientation:{valType:\"enumerated\",values:[\"v\",\"h\"],editType:\"calc+clearAxisTypes\"},marker:{outliercolor:{valType:\"color\",dflt:\"rgba(0, 0, 0, 0)\",editType:\"style\"},symbol:a({},o.symbol,{arrayOk:!1,editType:\"plot\"}),opacity:a({},o.opacity,{arrayOk:!1,dflt:1,editType:\"style\"}),size:a({},o.size,{arrayOk:!1,editType:\"calcIfAutorange\"}),color:a({},o.color,{arrayOk:!1,editType:\"style\"}),line:{color:a({},s.color,{arrayOk:!1,dflt:i.defaultLine,editType:\"style\"}),width:a({},s.width,{arrayOk:!1,dflt:0,editType:\"style\"}),outliercolor:{valType:\"color\",editType:\"style\"},outlierwidth:{valType:\"number\",min:0,dflt:1,editType:\"style\"},editType:\"style\"},editType:\"plot\"},line:{color:{valType:\"color\",editType:\"style\"},width:{valType:\"number\",min:0,dflt:2,editType:\"style\"},editType:\"plot\"},fillcolor:n.fillcolor}},{\"../../components/color/attributes\":603,\"../../lib/extend\":717,\"../scatter/attributes\":1031}],870:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../../lib\"),a=t(\"../../plots/cartesian/axes\");e.exports=function(t,e){var r,o,s,l,u,c,h,f,d,p=a.getFromId(t,e.xaxis||\"x\"),m=a.getFromId(t,e.yaxis||\"y\"),v=e.orientation,g=[];\"h\"===v?(r=p,o=\"x\",u=m,c=\"y\"):(r=m,o=\"y\",u=p,c=\"x\"),s=r.makeCalcdata(e,o),a.expand(r,s,{padded:!0}),h=function(t,e,r,a,o){var s;return r in e?h=a.makeCalcdata(e,r):(s=r+\"0\"in e?e[r+\"0\"]:\"name\"in e&&(\"category\"===a.type||n(e.name)&&-1!==[\"linear\",\"log\"].indexOf(a.type)||i.isDateTime(e.name)&&\"date\"===a.type)?e.name:t.numboxes,s=a.d2c(s,0,e[r+\"calendar\"]),h=o.map(function(){return s})),h}(t,e,c,u,s);var y=i.distinctVals(h);return f=y.vals,d=y.minDiff/2,l=function(t,e,r,a,o){var s,l,u,c,h=a.length,f=e.length,d=[],p=[];for(s=0;s<h;++s)l=a[s],t[s]={pos:l},p[s]=l-o,d[s]=[];for(p.push(a[h-1]+o),s=0;s<f;++s)c=e[s],n(c)&&(u=i.findBin(r[s],p))>=0&&u<f&&d[u].push(c);return d}(g,s,h,f,d),function(t,e){var r,n,a,o;for(o=0;o<e.length;++o)r=e[o].sort(i.sorterAsc),n=r.length,a=t[o],a.val=r,a.min=r[0],a.max=r[n-1],a.mean=i.mean(r,n),a.sd=i.stdev(r,n,a.mean),a.q1=i.interp(r,.25),a.med=i.interp(r,.5),a.q3=i.interp(r,.75),a.lf=Math.min(a.q1,r[Math.min(i.findBin(2.5*a.q1-1.5*a.q3,r,!0)+1,n-1)]),a.uf=Math.max(a.q3,r[Math.max(i.findBin(2.5*a.q3-1.5*a.q1,r),0)]),a.lo=4*a.q1-3*a.q3,a.uo=4*a.q3-3*a.q1}(g,l),g=g.filter(function(t){return t.val&&t.val.length}),g.length?(g[0].t={boxnum:t.numboxes,dPos:d},t.numboxes++,g):[{t:{emptybox:!0}}]}},{\"../../lib\":728,\"../../plots/cartesian/axes\":772,\"fast-isnumeric\":131}],871:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../registry\"),a=t(\"../../components/color\"),o=t(\"./attributes\")\n", ";e.exports=function(t,e,r,s){function l(r,i){return n.coerce(t,e,o,r,i)}var u,c=l(\"y\"),h=l(\"x\");if(c&&c.length)u=\"v\",h||l(\"x0\");else{if(!h||!h.length)return void(e.visible=!1);u=\"h\",l(\"y0\")}i.getComponentMethod(\"calendars\",\"handleTraceDefaults\")(t,e,[\"x\",\"y\"],s),l(\"orientation\",u),l(\"line.color\",(t.marker||{}).color||r),l(\"line.width\",2),l(\"fillcolor\",a.addOpacity(e.line.color,.5)),l(\"whiskerwidth\"),l(\"boxmean\");var f=n.coerce2(t,e,o,\"marker.outliercolor\"),d=l(\"marker.line.outliercolor\"),p=f||d?l(\"boxpoints\",\"suspectedoutliers\"):l(\"boxpoints\");p&&(l(\"jitter\",\"all\"===p?.3:0),l(\"pointpos\",\"all\"===p?-1.5:0),l(\"marker.symbol\"),l(\"marker.opacity\"),l(\"marker.size\"),l(\"marker.color\",e.line.color),l(\"marker.line.color\"),l(\"marker.line.width\"),\"suspectedoutliers\"===p&&(l(\"marker.line.outliercolor\",e.marker.color),l(\"marker.line.outlierwidth\")))}},{\"../../components/color\":604,\"../../lib\":728,\"../../registry\":846,\"./attributes\":869}],872:[function(t,e,r){\"use strict\";var n=t(\"../../plots/cartesian/axes\"),i=t(\"../../lib\"),a=t(\"../../components/fx\"),o=t(\"../../components/color\");e.exports=function(t,e,r,s){var l,u,c,h,f,d,p,m,v,g=t.cd,y=g[0].trace,b=g[0].t,x=t.xa,_=t.ya,w=[];if(h=\"closest\"===s?2.5*b.bdPos:b.bdPos,\"h\"===y.orientation?(l=function(t){return a.inbox(t.min-e,t.max-e)},u=function(t){var e=t.pos+b.bPos-r;return a.inbox(e-h,e+h)},f=\"y\",d=_,m=\"x\",v=x):(l=function(t){var r=t.pos+b.bPos-e;return a.inbox(r-h,r+h)},u=function(t){return a.inbox(t.min-r,t.max-r)},f=\"x\",d=x,m=\"y\",v=_),c=a.getDistanceFunction(s,l,u),a.getClosest(g,c,t),!1!==t.index){var M=g[t.index],k=y.line.color,A=(y.marker||{}).color;o.opacity(k)&&y.line.width?t.color=k:o.opacity(A)&&y.boxpoints?t.color=A:t.color=y.fillcolor,t[f+\"0\"]=d.c2p(M.pos+b.bPos-b.bdPos,!0),t[f+\"1\"]=d.c2p(M.pos+b.bPos+b.bdPos,!0),n.tickText(d,d.c2l(M.pos),\"hover\").text,t[f+\"LabelVal\"]=M.pos;var T,S,E={},L=[\"med\",\"min\",\"q1\",\"q3\",\"max\"];y.boxmean&&L.push(\"mean\"),y.boxpoints&&[].push.apply(L,[\"lf\",\"uf\"]);for(var C=0;C<L.length;C++)(T=L[C])in M&&!(M[T]in E)&&(E[M[T]]=!0,p=v.c2p(M[T],!0),S=i.extendFlat({},t),S[m+\"0\"]=S[m+\"1\"]=p,S[m+\"LabelVal\"]=M[T],S.attr=T,\"mean\"===T&&\"sd\"in M&&\"sd\"===y.boxmean&&(S[m+\"err\"]=M.sd),t.name=\"\",w.push(S));return w}}},{\"../../components/color\":604,\"../../components/fx\":645,\"../../lib\":728,\"../../plots/cartesian/axes\":772}],873:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.layoutAttributes=t(\"./layout_attributes\"),n.supplyDefaults=t(\"./defaults\"),n.supplyLayoutDefaults=t(\"./layout_defaults\"),n.calc=t(\"./calc\"),n.setPositions=t(\"./set_positions\"),n.plot=t(\"./plot\"),n.style=t(\"./style\"),n.hoverPoints=t(\"./hover\"),n.moduleType=\"trace\",n.name=\"box\",n.basePlotModule=t(\"../../plots/cartesian\"),n.categories=[\"cartesian\",\"symbols\",\"oriented\",\"box\",\"showLegend\"],n.meta={},e.exports=n},{\"../../plots/cartesian\":782,\"./attributes\":869,\"./calc\":870,\"./defaults\":871,\"./hover\":872,\"./layout_attributes\":874,\"./layout_defaults\":875,\"./plot\":876,\"./set_positions\":877,\"./style\":878}],874:[function(t,e,r){\"use strict\";e.exports={boxmode:{valType:\"enumerated\",values:[\"group\",\"overlay\"],dflt:\"overlay\",editType:\"calc\"},boxgap:{valType:\"number\",min:0,max:1,dflt:.3,editType:\"calc\"},boxgroupgap:{valType:\"number\",min:0,max:1,dflt:.3,editType:\"calc\"}}},{}],875:[function(t,e,r){\"use strict\";var n=t(\"../../registry\"),i=t(\"../../lib\"),a=t(\"./layout_attributes\");e.exports=function(t,e,r){function o(r,n){return i.coerce(t,e,a,r,n)}for(var s,l=0;l<r.length;l++)if(n.traceIs(r[l],\"box\")){s=!0;break}s&&(o(\"boxmode\"),o(\"boxgap\"),o(\"boxgroupgap\"))}},{\"../../lib\":728,\"../../registry\":846,\"./layout_attributes\":874}],876:[function(t,e,r){\"use strict\";function n(){l=2e9}function i(){var t=l;return l=(69069*l+1)%4294967296,Math.abs(l-t)<429496729?i():l/4294967296}var a=t(\"d3\"),o=t(\"../../lib\"),s=t(\"../../components/drawing\"),l=2e9;e.exports=function(t,e,r){var l,u,c=t._fullLayout,h=e.xaxis,f=e.yaxis;e.plot.select(\".boxlayer\").selectAll(\"g.trace.boxes\").data(r).enter().append(\"g\").attr(\"class\",\"trace boxes\").each(function(e){var r=e[0].t,d=e[0].trace,p=\"group\"===c.boxmode&&t.numboxes>1,m=r.dPos*(1-c.boxgap)*(1-c.boxgroupgap)/(p?t.numboxes:1),v=p?2*r.dPos*((r.boxnum+.5)/t.numboxes-.5)*(1-c.boxgap):0,g=m*d.whiskerwidth;if(!0!==d.visible||r.emptybox)return void a.select(this).remove();\"h\"===d.orientation?(l=f,u=h):(l=h,u=f),r.bPos=v,r.bdPos=m,n(),a.select(this).selectAll(\"path.box\").data(o.identity).enter().append(\"path\").style(\"vector-effect\",\"non-scaling-stroke\").attr(\"class\",\"box\").each(function(t){var e=l.c2p(t.pos+v,!0),r=l.c2p(t.pos+v-m,!0),n=l.c2p(t.pos+v+m,!0),i=l.c2p(t.pos+v-g,!0),s=l.c2p(t.pos+v+g,!0),c=u.c2p(t.q1,!0),h=u.c2p(t.q3,!0),f=o.constrain(u.c2p(t.med,!0),Math.min(c,h)+1,Math.max(c,h)-1),p=u.c2p(!1===d.boxpoints?t.min:t.lf,!0),y=u.c2p(!1===d.boxpoints?t.max:t.uf,!0);\"h\"===d.orientation?a.select(this).attr(\"d\",\"M\"+f+\",\"+r+\"V\"+n+\"M\"+c+\",\"+r+\"V\"+n+\"H\"+h+\"V\"+r+\"ZM\"+c+\",\"+e+\"H\"+p+\"M\"+h+\",\"+e+\"H\"+y+(0===d.whiskerwidth?\"\":\"M\"+p+\",\"+i+\"V\"+s+\"M\"+y+\",\"+i+\"V\"+s)):a.select(this).attr(\"d\",\"M\"+r+\",\"+f+\"H\"+n+\"M\"+r+\",\"+c+\"H\"+n+\"V\"+h+\"H\"+r+\"ZM\"+e+\",\"+c+\"V\"+p+\"M\"+e+\",\"+h+\"V\"+y+(0===d.whiskerwidth?\"\":\"M\"+i+\",\"+p+\"H\"+s+\"M\"+i+\",\"+y+\"H\"+s))}),d.boxpoints&&a.select(this).selectAll(\"g.points\").data(function(t){return t.forEach(function(t){t.t=r,t.trace=d}),t}).enter().append(\"g\").attr(\"class\",\"points\").selectAll(\"path\").data(function(t){var e,r,n,a,s,l,u,c=\"all\"===d.boxpoints?t.val:t.val.filter(function(e){return e<t.lf||e>t.uf}),h=Math.max((t.max-t.min)/10,t.q3-t.q1),f=1e-9*h,p=.01*h,g=[],y=0;if(d.jitter){if(0===h)for(y=1,g=new Array(c.length),e=0;e<c.length;e++)g[e]=1;else for(e=0;e<c.length;e++)r=Math.max(0,e-5),a=c[r],n=Math.min(c.length-1,e+5),s=c[n],\"all\"!==d.boxpoints&&(c[e]<t.lf?s=Math.min(s,t.lf):a=Math.max(a,t.uf)),l=Math.sqrt(p*(n-r)/(s-a+f))||0,l=o.constrain(Math.abs(l),0,1),g.push(l),y=Math.max(l,y);u=2*d.jitter/y}return c.map(function(e,r){var n,a=d.pointpos;return d.jitter&&(a+=u*g[r]*(i()-.5)),n=\"h\"===d.orientation?{y:t.pos+a*m+v,x:e}:{x:t.pos+a*m+v,y:e},\"suspectedoutliers\"===d.boxpoints&&e<t.uo&&e>t.lo&&(n.so=!0),n})}).enter().append(\"path\").classed(\"point\",!0).call(s.translatePoints,h,f),d.boxmean&&a.select(this).selectAll(\"path.mean\").data(o.identity).enter().append(\"path\").attr(\"class\",\"mean\").style({fill:\"none\",\"vector-effect\":\"non-scaling-stroke\"}).each(function(t){var e=l.c2p(t.pos+v,!0),r=l.c2p(t.pos+v-m,!0),n=l.c2p(t.pos+v+m,!0),i=u.c2p(t.mean,!0),o=u.c2p(t.mean-t.sd,!0),s=u.c2p(t.mean+t.sd,!0);\"h\"===d.orientation?a.select(this).attr(\"d\",\"M\"+i+\",\"+r+\"V\"+n+(\"sd\"!==d.boxmean?\"\":\"m0,0L\"+o+\",\"+e+\"L\"+i+\",\"+r+\"L\"+s+\",\"+e+\"Z\")):a.select(this).attr(\"d\",\"M\"+r+\",\"+i+\"H\"+n+(\"sd\"!==d.boxmean?\"\":\"m0,0L\"+e+\",\"+o+\"L\"+r+\",\"+i+\"L\"+e+\",\"+s+\"Z\"))})})}},{\"../../components/drawing\":628,\"../../lib\":728,d3:122}],877:[function(t,e,r){\"use strict\";var n=t(\"../../registry\"),i=t(\"../../plots/cartesian/axes\"),a=t(\"../../lib\");e.exports=function(t,e){var r,o,s,l,u=t._fullLayout,c=e.xaxis,h=e.yaxis,f=[\"v\",\"h\"];for(o=0;o<f.length;++o){var d,p,m,v=f[o],g=[],y=[],b=0,x=0;for(r=\"h\"===v?h:c,s=0;s<t.calcdata.length;++s)d=t.calcdata[s],p=d[0].t,m=d[0].trace,!0===m.visible&&n.traceIs(m,\"box\")&&!p.emptybox&&m.orientation===v&&m.xaxis===c._id&&m.yaxis===h._id&&(g.push(s),!1!==m.boxpoints&&(b=Math.max(b,m.jitter-m.pointpos-1),x=Math.max(x,m.jitter+m.pointpos-1)));for(s=0;s<g.length;s++)for(d=t.calcdata[g[s]],l=0;l<d.length;l++)y.push(d[l].pos);if(y.length){var _=a.distinctVals(y),w=_.minDiff/2;for(y.length===_.vals.length&&(t.numboxes=1),i.minDtick(r,_.minDiff,_.vals[0],!0),o=0;o<g.length;o++){var M=g[o];t.calcdata[M][0].t.dPos=w}var k=(1-u.boxgap)*(1-u.boxgroupgap)*w/t.numboxes;i.expand(r,_.vals,{vpadminus:w+b*k,vpadplus:w+x*k})}}}},{\"../../lib\":728,\"../../plots/cartesian/axes\":772,\"../../registry\":846}],878:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../../components/color\"),a=t(\"../../components/drawing\");e.exports=function(t){n.select(t).selectAll(\"g.trace.boxes\").style(\"opacity\",function(t){return t[0].trace.opacity}).each(function(e){var r=e[0].trace,o=r.line.width;n.select(this).selectAll(\"path.box\").style(\"stroke-width\",o+\"px\").call(i.stroke,r.line.color).call(i.fill,r.fillcolor),n.select(this).selectAll(\"path.mean\").style({\"stroke-width\":o,\"stroke-dasharray\":2*o+\"px,\"+o+\"px\"}).call(i.stroke,r.line.color),n.select(this).selectAll(\"g.points path\").call(a.pointStyle,r,t)})}},{\"../../components/color\":604,\"../../components/drawing\":628,d3:122}],879:[function(t,e,r){\"use strict\";function n(t){return{name:a.increasing.name,showlegend:a.increasing.showlegend,line:{color:i({},o.line.color,{dflt:t}),width:o.line.width,editType:\"style\"},fillcolor:o.fillcolor,editType:\"style\"}}var i=t(\"../../lib\").extendFlat,a=t(\"../ohlc/attributes\"),o=t(\"../box/attributes\");e.exports={x:a.x,open:a.open,high:a.high,low:a.low,close:a.close,line:{width:i({},o.line.width,{}),editType:\"style\"},increasing:n(a.increasing.line.color.dflt),decreasing:n(a.decreasing.line.color.dflt),text:a.text,whiskerwidth:i({},o.whiskerwidth,{dflt:0})}},{\"../../lib\":728,\"../box/attributes\":869,\"../ohlc/attributes\":990}],880:[function(t,e,r){\"use strict\";function n(t,e,r,n){o(t,e,r,n),r(n+\".line.color\"),r(n+\".line.width\",e.line.width),r(n+\".fillcolor\")}var i=t(\"../../lib\"),a=t(\"../ohlc/ohlc_defaults\"),o=t(\"../ohlc/direction_defaults\"),s=t(\"../ohlc/helpers\"),l=t(\"./attributes\");e.exports=function(t,e,r,o){function u(r,n){return i.coerce(t,e,l,r,n)}if(s.pushDummyTransformOpts(t,e),0===a(t,e,u,o))return void(e.visible=!1);u(\"line.width\"),n(t,e,u,\"increasing\"),n(t,e,u,\"decreasing\"),u(\"text\"),u(\"whiskerwidth\")}},{\"../../lib\":728,\"../ohlc/direction_defaults\":992,\"../ohlc/helpers\":993,\"../ohlc/ohlc_defaults\":995,\"./attributes\":879}],881:[function(t,e,r){\"use strict\";var n=t(\"../../plot_api/register\");e.exports={moduleType:\"trace\",name:\"candlestick\",basePlotModule:t(\"../../plots/cartesian\"),categories:[\"cartesian\",\"showLegend\",\"candlestick\"],meta:{},attributes:t(\"./attributes\"),supplyDefaults:t(\"./defaults\")},n(t(\"../box\")),n(t(\"./transform\"))},{\"../../plot_api/register\":762,\"../../plots/cartesian\":782,\"../box\":873,\"./attributes\":879,\"./defaults\":880,\"./transform\":882}],882:[function(t,e,r){\"use strict\";function n(t,e,r){var n={type:\"box\",boxpoints:!1,visible:t.visible,hoverinfo:t.hoverinfo,opacity:t.opacity,xaxis:t.xaxis,yaxis:t.yaxis,transforms:o.makeTransform(t,e,r)},i=t[r];return i&&a.extendFlat(n,{x:t.x||[0],xcalendar:t.xcalendar,y:[].concat(t.low).concat(t.high),whiskerwidth:t.whiskerwidth,text:t.text,name:i.name,showlegend:i.showlegend,line:i.line,fillcolor:i.fillcolor}),n}var i=t(\"fast-isnumeric\"),a=t(\"../../lib\"),o=t(\"../ohlc/helpers\");r.moduleType=\"transform\",r.name=\"candlestick\",r.attributes={},r.supplyDefaults=function(t,e,r,n){return o.clearEphemeralTransformOpts(n),o.copyOHLC(t,e),t},r.transform=function(t,e){for(var r=[],i=0;i<t.length;i++){var a=t[i];\"candlestick\"===a.type?r.push(n(a,e,\"increasing\"),n(a,e,\"decreasing\")):r.push(a)}return o.addRangeSlider(r,e.layout),r},r.calcTransform=function(t,e,r){for(var n=r.direction,a=o.getFilterFn(n),s=e.open,l=e.high,u=e.low,c=e.close,h=s.length,f=[],d=[],p=e._fullInput.x?function(t){var r=e.x[t];f.push(r,r,r,r,r,r)}:function(t){f.push(t,t,t,t,t,t)},m=0;m<h;m++)a(s[m],c[m])&&i(l[m])&&i(u[m])&&(p(m),function(t,e,r,n){d.push(r,t,n,n,n,e)}(s[m],l[m],u[m],c[m]));e.x=f,e.y=d}},{\"../../lib\":728,\"../ohlc/helpers\":993,\"fast-isnumeric\":131}],883:[function(t,e,r){\"use strict\";function n(t,e,r,n){[\"aaxis\",\"baxis\"].forEach(function(a){var o=a.charAt(0),s=t[a]||{},l={},u={tickfont:\"x\",id:o+\"axis\",letter:o,font:e.font,name:a,data:t[o],calendar:e.calendar,dfltColor:n,bgColor:r.paper_bgcolor,fullLayout:r};i(s,l,u),l._categories=l._categories||[],e[a]=l,t[a]||\"-\"===s.type||(t[a]={type:s.type})})}var i=t(\"./axis_defaults\");e.exports=function(t,e,r,i,a){i(\"a\")||(i(\"da\"),i(\"a0\")),i(\"b\")||(i(\"db\"),i(\"b0\")),n(t,e,r,a)}},{\"./axis_defaults\":888}],884:[function(t,e,r){\"use strict\";function n(t,e){if(!Array.isArray(t)||e>=10)return null;for(var r=1/0,i=-1/0,a=t.length,o=0;o<a;o++){var s=t[o];if(Array.isArray(s)){var l=n(s,e+1);l&&(r=Math.min(l[0],r),i=Math.max(l[1],i))}else r=Math.min(s,r),i=Math.max(s,i)}return[r,i]}e.exports=function(t){return n(t,0)}},{}],885:[function(t,e,r){\"use strict\";var n=t(\"../../plots/font_attributes\"),i=t(\"./axis_attributes\"),a=t(\"../../components/color/attributes\"),o=n({editType:\"calc\"});o.family.dflt='\"Open Sans\", verdana, arial, sans-serif',o.size.dflt=12,o.color.dflt=a.defaultLine,e.exports={carpet:{valType:\"string\",editType:\"calc\"},x:{valType:\"data_array\",editType:\"calc+clearAxisTypes\"},y:{valType:\"data_array\",editType:\"calc+clearAxisTypes\"},a:{valType:\"data_array\",editType:\"calc\"},a0:{valType:\"number\",dflt:0,editType:\"calc\"},da:{valType:\"number\",dflt:1,editType:\"calc\"},b:{valType:\"data_array\",editType:\"calc\"},b0:{valType:\"number\",dflt:0,editType:\"calc\"},db:{valType:\"number\",dflt:1,editType:\"calc\"},cheaterslope:{valType:\"number\",dflt:1,editType:\"calc\"},aaxis:i,baxis:i,font:o,color:{valType:\"color\",dflt:a.defaultLine,editType:\"plot\"}}},{\"../../components/color/attributes\":603,\"../../plots/font_attributes\":796,\"./axis_attributes\":887}],886:[function(t,e,r){\"use strict\";e.exports=function(t,e,r,n){var i,a,o,s,l,u,c,h,f,d,p,m,v,g=Array.isArray(r)?\"a\":\"b\",y=\"a\"===g?t.aaxis:t.baxis,b=y.smoothing,x=\"a\"===g?t.a2i:t.b2j,_=\"a\"===g?r:n,w=\"a\"===g?n:r,M=\"a\"===g?e.a.length:e.b.length,k=\"a\"===g?e.b.length:e.a.length,A=Math.floor(\"a\"===g?t.b2j(w):t.a2i(w)),T=\"a\"===g?function(e){return t.evalxy([],e,A)}:function(e){return t.evalxy([],A,e)};b&&(o=Math.max(0,Math.min(k-2,A)),s=A-o,a=\"a\"===g?function(e,r){return t.dxydi([],e,o,r,s)}:function(e,r){return t.dxydj([],o,e,s,r)});var S=x(_[0]),E=x(_[1]),L=S<E?1:-1,C=1e-8*(E-S),I=L>0?Math.floor:Math.ceil,z=L>0?Math.ceil:Math.floor,D=L>0?Math.min:Math.max,P=L>0?Math.max:Math.min,O=I(S+C),R=z(E-C);c=T(S);var F=[[c]];for(i=O;i*L<R*L;i+=L)l=[],p=P(S,i),m=D(E,i+L),v=m-p,u=Math.max(0,Math.min(M-2,Math.floor(.5*(p+m)))),h=T(m),b&&(f=a(u,p-u),d=a(u,m-u),l.push([c[0]+f[0]/3*v,c[1]+f[1]/3*v]),l.push([h[0]-d[0]/3*v,h[1]-d[1]/3*v])),l.push(h),F.push(l),c=h;return F}},{}],887:[function(t,e,r){\"use strict\";var n=t(\"../../plots/font_attributes\"),i=t(\"../../components/color/attributes\");e.exports={color:{valType:\"color\",editType:\"calc\"},smoothing:{valType:\"number\",dflt:1,min:0,max:1.3,editType:\"calc\"},title:{valType:\"string\",editType:\"calc\"},titlefont:n({editType:\"calc\"}),titleoffset:{valType:\"number\",dflt:10,editType:\"calc\"},type:{valType:\"enumerated\",values:[\"-\",\"linear\",\"date\",\"category\"],dflt:\"-\",editType:\"calc\"},autorange:{valType:\"enumerated\",values:[!0,!1,\"reversed\"],dflt:!0,editType:\"calc\"},rangemode:{valType:\"enumerated\",values:[\"normal\",\"tozero\",\"nonnegative\"],dflt:\"normal\",editType:\"calc\"},range:{valType:\"info_array\",editType:\"calc\",items:[{valType:\"any\",editType:\"calc\"},{valType:\"any\",editType:\"calc\"}]},fixedrange:{valType:\"boolean\",dflt:!1,editType:\"calc\"},cheatertype:{valType:\"enumerated\",values:[\"index\",\"value\"],dflt:\"value\",editType:\"calc\"},tickmode:{valType:\"enumerated\",values:[\"linear\",\"array\"],dflt:\"array\",editType:\"calc\"},nticks:{valType:\"integer\",min:0,dflt:0,editType:\"calc\"},tickvals:{valType:\"data_array\",editType:\"calc\"},ticktext:{valType:\"data_array\",editType:\"calc\"},showticklabels:{valType:\"enumerated\",values:[\"start\",\"end\",\"both\",\"none\"],dflt:\"start\",editType:\"calc\"},tickfont:n({editType:\"calc\"}),tickangle:{valType:\"angle\",dflt:\"auto\",editType:\"calc\"},tickprefix:{valType:\"string\",dflt:\"\",editType:\"calc\"},showtickprefix:{valType:\"enumerated\",values:[\"all\",\"first\",\"last\",\"none\"],dflt:\"all\",editType:\"calc\"},ticksuffix:{valType:\"string\",dflt:\"\",editType:\"calc\"},showticksuffix:{valType:\"enumerated\",values:[\"all\",\"first\",\"last\",\"none\"],dflt:\"all\",editType:\"calc\"},showexponent:{valType:\"enumerated\",values:[\"all\",\"first\",\"last\",\"none\"],dflt:\"all\",editType:\"calc\"},exponentformat:{valType:\"enumerated\",values:[\"none\",\"e\",\"E\",\"power\",\"SI\",\"B\"],dflt:\"B\",editType:\"calc\"},separatethousands:{valType:\"boolean\",dflt:!1,editType:\"calc\"},tickformat:{valType:\"string\",dflt:\"\",editType:\"calc\"},categoryorder:{valType:\"enumerated\",values:[\"trace\",\"category ascending\",\"category descending\",\"array\"],dflt:\"trace\",editType:\"calc\"},categoryarray:{valType:\"data_array\",editType:\"calc\"},labelpadding:{valType:\"integer\",dflt:10,editType:\"calc\"},labelprefix:{valType:\"string\",editType:\"calc\"},labelsuffix:{valType:\"string\",dflt:\"\",editType:\"calc\"},showline:{valType:\"boolean\",dflt:!1,editType:\"calc\"},linecolor:{valType:\"color\",dflt:i.defaultLine,editType:\"calc\"},linewidth:{valType:\"number\",min:0,dflt:1,editType:\"calc\"},gridcolor:{valType:\"color\",editType:\"calc\"},gridwidth:{valType:\"number\",min:0,dflt:1,editType:\"calc\"},showgrid:{valType:\"boolean\",dflt:!0,editType:\"calc\"},minorgridcount:{valType:\"integer\",min:0,dflt:0,editType:\"calc\"},minorgridwidth:{valType:\"number\",min:0,dflt:1,editType:\"calc\"},minorgridcolor:{valType:\"color\",dflt:i.lightLine,editType:\"calc\"},startline:{valType:\"boolean\",editType:\"calc\"},startlinecolor:{valType:\"color\",editType:\"calc\"},startlinewidth:{valType:\"number\",dflt:1,editType:\"calc\"},endline:{valType:\"boolean\",editType:\"calc\"},endlinewidth:{valType:\"number\",dflt:1,editType:\"calc\"},endlinecolor:{valType:\"color\",editType:\"calc\"},tick0:{valType:\"number\",min:0,dflt:0,editType:\"calc\"},dtick:{valType:\"number\",min:0,dflt:1,editType:\"calc\"},arraytick0:{valType:\"integer\",min:0,dflt:0,editType:\"calc\"},arraydtick:{valType:\"integer\",min:1,dflt:1,editType:\"calc\"},editType:\"calc\"}},{\"../../components/color/attributes\":603,\"../../plots/font_attributes\":796}],888:[function(t,e,r){\"use strict\";function n(t,e){if(\"-\"===t.type){var r=t._id,n=r.charAt(0),i=n+\"calendar\",a=t[i];t.type=d(e,a)}}var i=t(\"./attributes\"),a=t(\"../../components/color\").addOpacity,o=t(\"../../registry\"),s=t(\"../../lib\"),l=t(\"../../plots/cartesian/tick_value_defaults\"),u=t(\"../../plots/cartesian/tick_label_defaults\"),c=t(\"../../plots/cartesian/category_order_defaults\"),h=t(\"../../plots/cartesian/set_convert\"),f=t(\"../../plots/cartesian/ordered_categories\"),d=t(\"../../plots/cartesian/axis_autotype\");e.exports=function(t,e,r){function d(r,n){return s.coerce(t,e,g,r,n)}function p(r,n){return s.coerce2(t,e,g,r,n)}var m=r.letter,v=r.font||{},g=i[m+\"axis\"];r.noHover=!0,r.name&&(e._name=r.name,e._id=r.name);var y=d(\"type\");if(\"-\"===y&&(r.data&&n(e,r.data),\"-\"===e.type?e.type=\"linear\":y=t.type=e.type),d(\"smoothing\"),d(\"cheatertype\"),d(\"showticklabels\"),d(\"labelprefix\",m+\" = \"),d(\"labelsuffix\"),d(\"showtickprefix\"),d(\"showticksuffix\"),d(\"separatethousands\"),d(\"tickformat\"),d(\"exponentformat\"),d(\"showexponent\"),d(\"categoryorder\"),d(\"tickmode\"),d(\"tickvals\"),d(\"ticktext\"),d(\"tick0\"),d(\"dtick\"),\"array\"===e.tickmode&&(d(\"arraytick0\"),d(\"arraydtick\")),d(\"labelpadding\"),e._hovertitle=m,\"date\"===y){o.getComponentMethod(\"calendars\",\"handleDefaults\")(t,e,\"calendar\",r.calendar)}h(e,r.fullLayout);var b=d(\"color\",r.dfltColor),x=b===t.color?b:v.color;d(\"title\"),s.coerceFont(d,\"titlefont\",{family:v.family,size:Math.round(1.2*v.size),color:x}),d(\"titleoffset\"),d(\"tickangle\"),d(\"autorange\",!e.isValidRange(t.range))&&d(\"rangemode\"),d(\"range\"),e.cleanRange(),d(\"fixedrange\"),l(t,e,d,y),u(t,e,d,y,r),c(t,e,d);var _=p(\"gridcolor\",a(b,.3)),w=p(\"gridwidth\"),M=d(\"showgrid\");M||(delete e.gridcolor,delete e.gridwidth);var k=p(\"startlinecolor\",b),A=p(\"startlinewidth\",w);d(\"startline\",e.showgrid||!!k||!!A)||(delete e.startlinecolor,delete e.startlinewidth);var T=p(\"endlinecolor\",b),S=p(\"endlinewidth\",w);return d(\"endline\",e.showgrid||!!T||!!S)||(delete e.endlinecolor,delete e.endlinewidth),M?(d(\"minorgridcount\"),d(\"minorgridwidth\",w),d(\"minorgridcolor\",a(_,.06)),e.minorgridcount||(delete e.minorgridwidth,delete e.minorgridcolor)):(delete e.gridcolor,delete e.gridWidth),e._separators=r.fullLayout.separators,e._initialCategories=\"category\"===y?f(m,e.categoryorder,e.categoryarray,r.data):[],\"none\"===e.showticklabels&&(delete e.tickfont,delete e.tickangle,delete e.showexponent,delete e.exponentformat,delete e.tickformat,delete e.showticksuffix,delete e.showtickprefix),e.showticksuffix||delete e.ticksuffix,e.showtickprefix||delete e.tickprefix,d(\"tickmode\"),(!e.title||e.title&&0===e.title.length)&&(delete e.titlefont,delete e.titleoffset),e}},{\"../../components/color\":604,\"../../lib\":728,\"../../plots/cartesian/axis_autotype\":773,\"../../plots/cartesian/category_order_defaults\":776,\"../../plots/cartesian/ordered_categories\":785,\"../../plots/cartesian/set_convert\":789,\"../../plots/cartesian/tick_label_defaults\":790,\"../../plots/cartesian/tick_value_defaults\":792,\"../../registry\":846,\"./attributes\":885}],889:[function(t,e,r){\"use strict\";var n=t(\"../../plots/cartesian/axes\"),i=t(\"./cheater_basis\"),a=t(\"./array_minmax\"),o=t(\"./map_2d_array\"),s=t(\"./calc_gridlines\"),l=t(\"./calc_labels\"),u=t(\"./calc_clippath\"),c=t(\"../heatmap/clean_2d_array\"),h=t(\"./smooth_fill_2d_array\");e.exports=function(t,e){var r,f=n.getFromId(t,e.xaxis||\"x\"),d=n.getFromId(t,e.yaxis||\"y\"),p=e.aaxis,m=e.baxis,v=e._a=e.a,g=e._b=e.b,y={},b=e.y;if(e._cheater){var x=\"index\"===p.cheatertype?v.length:v,_=\"index\"===m.cheatertype?g.length:g;e.x=r=i(x,_,e.cheaterslope)}else r=e.x;e._x=e.x=r=c(r),e._y=e.y=b=c(b),h(r,v,g),h(b,v,g),e.setScale(),y.xp=e.xp=o(e.xp,r,f.c2p),y.yp=e.yp=o(e.yp,b,d.c2p);var w=a(r),M=a(b),k=.5*(w[1]-w[0]),A=.5*(w[1]+w[0]),T=.5*(M[1]-M[0]),S=.5*(M[1]+M[0]);return w=[A-1.3*k,A+1.3*k],M=[S-1.3*T,S+1.3*T],n.expand(f,w,{padded:!0}),n.expand(d,M,{padded:!0}),s(e,y,\"a\",\"b\"),s(e,y,\"b\",\"a\"),l(e,p),l(e,m),y.clipsegments=u(e.xctrl,e.yctrl,p,m),y.x=r,y.y=b,y.a=v,y.b=g,[y]}},{\"../../plots/cartesian/axes\":772,\"../heatmap/clean_2d_array\":950,\"./array_minmax\":884,\"./calc_clippath\":890,\"./calc_gridlines\":891,\"./calc_labels\":892,\"./cheater_basis\":894,\"./map_2d_array\":906,\"./smooth_fill_2d_array\":910}],890:[function(t,e,r){\"use strict\";e.exports=function(t,e,r,n){var i,a,o,s=[],l=!!r.smoothing,u=!!n.smoothing,c=t[0].length-1,h=t.length-1;for(i=0,a=[],o=[];i<=c;i++)a[i]=t[0][i],o[i]=e[0][i];for(s.push({x:a,y:o,bicubic:l}),i=0,a=[],o=[];i<=h;i++)a[i]=t[i][c],o[i]=e[i][c];for(s.push({x:a,y:o,bicubic:u}),i=c,a=[],o=[];i>=0;i--)a[c-i]=t[h][i],o[c-i]=e[h][i];for(s.push({x:a,y:o,bicubic:l}),i=h,a=[],o=[];i>=0;i--)a[h-i]=t[i][0],o[h-i]=e[i][0];return s.push({x:a,y:o,bicubic:u}),s}},{}],891:[function(t,e,r){\"use strict\";var n=t(\"../../plots/cartesian/axes\"),i=t(\"../../lib/extend\").extendFlat;e.exports=function(t,e,r,a){function o(e){var n,i,o,s,l,u,c,h,f,d,p,v,g=[],y=[],b={};if(\"b\"===r)for(i=t.b2j(e),o=Math.floor(Math.max(0,Math.min(P-2,i))),s=i-o,b.length=P,b.crossLength=D,b.xy=function(e){return t.evalxy([],e,i)},b.dxy=function(e,r){return t.dxydi([],e,o,r,s)},n=0;n<D;n++)u=Math.min(D-2,n),c=n-u,h=t.evalxy([],n,i),E.smoothing&&n>0&&(f=t.dxydi([],n-1,o,0,s),g.push(l[0]+f[0]/3),y.push(l[1]+f[1]/3),d=t.dxydi([],n-1,o,1,s),g.push(h[0]-d[0]/3),y.push(h[1]-d[1]/3)),g.push(h[0]),y.push(h[1]),l=h;else for(n=t.a2i(e),u=Math.floor(Math.max(0,Math.min(D-2,n))),c=n-u,b.length=D,b.crossLength=P,b.xy=function(e){return t.evalxy([],n,e)},b.dxy=function(e,r){return t.dxydj([],u,e,c,r)},i=0;i<P;i++)o=Math.min(P-2,i),s=i-o,h=t.evalxy([],n,i),E.smoothing&&i>0&&(p=t.dxydj([],u,i-1,c,0),g.push(l[0]+p[0]/3),y.push(l[1]+p[1]/3),v=t.dxydj([],u,i-1,c,1),g.push(h[0]-v[0]/3),y.push(h[1]-v[1]/3)),g.push(h[0]),y.push(h[1]),l=h;return b.axisLetter=r,b.axis=M,b.crossAxis=E,b.value=e,b.constvar=a,b.index=m,b.x=g,b.y=y,b.smoothing=E.smoothing,b}function s(e){var n,i,o,s,l,u=[],c=[],h={};if(h.length=w.length,h.crossLength=S.length,\"b\"===r)for(o=Math.max(0,Math.min(P-2,e)),l=Math.min(1,Math.max(0,e-o)),h.xy=function(r){return t.evalxy([],r,e)},h.dxy=function(e,r){return t.dxydi([],e,o,r,l)},n=0;n<I;n++)u[n]=L[e*O][n],c[n]=C[e*O][n];else for(i=Math.max(0,Math.min(D-2,e)),s=Math.min(1,Math.max(0,e-i)),h.xy=function(r){return t.evalxy([],e,r)},h.dxy=function(e,r){return t.dxydj([],i,e,s,r)},n=0;n<z;n++)u[n]=L[n][e*O],c[n]=C[n][e*O];return h.axisLetter=r,h.axis=M,h.crossAxis=E,h.value=w[e],h.constvar=a,h.index=e,h.x=u,h.y=c,h.smoothing=E.smoothing,h}var l,u,c,h,f,d,p,m,v,g,y,b,x,_,w=t[r],M=t[r+\"axis\"],k=M._gridlines=[],A=M._minorgridlines=[],T=M._boundarylines=[],S=t[a],E=t[a+\"axis\"];if(\"array\"===M.tickmode)for(M.tickvals=[],l=0;l<w.length;l++)M.tickvals.push(w[l]);var L=t.xctrl,C=t.yctrl,I=L[0].length,z=L.length,D=t.a.length,P=t.b.length;n.calcTicks(M);var O=M.smoothing?3:1;if(\"array\"===M.tickmode){for(h=5e-15,f=[Math.floor((w.length-1-M.arraytick0)/M.arraydtick*(1+h)),Math.ceil(-M.arraytick0/M.arraydtick/(1+h))].sort(function(t,e){return t-e}),d=f[0]-1,p=f[1]+1,m=d;m<p;m++)(u=M.arraytick0+M.arraydtick*m)<0||u>w.length-1||k.push(i(s(u),{color:M.gridcolor,width:M.gridwidth}));for(m=d;m<p;m++)if(c=M.arraytick0+M.arraydtick*m,y=Math.min(c+M.arraydtick,w.length-1),!(c<0||c>w.length-1||y<0||y>w.length-1))for(b=w[c],x=w[y],l=0;l<M.minorgridcount;l++)(_=y-c)<=0||(g=b+(x-b)*(l+1)/(M.minorgridcount+1)*(M.arraydtick/_))<w[0]||g>w[w.length-1]||A.push(i(o(g),{color:M.minorgridcolor,width:M.minorgridwidth}));M.startline&&T.push(i(s(0),{color:M.startlinecolor,width:M.startlinewidth})),M.endline&&T.push(i(s(w.length-1),{color:M.endlinecolor,width:M.endlinewidth}))}else{for(h=5e-15,f=[Math.floor((w[w.length-1]-M.tick0)/M.dtick*(1+h)),Math.ceil((w[0]-M.tick0)/M.dtick/(1+h))].sort(function(t,e){return t-e}),d=f[0],p=f[1],m=d;m<=p;m++)v=M.tick0+M.dtick*m,k.push(i(o(v),{color:M.gridcolor,width:M.gridwidth}));for(m=d-1;m<p+1;m++)for(v=M.tick0+M.dtick*m,l=0;l<M.minorgridcount;l++)(g=v+M.dtick*(l+1)/(M.minorgridcount+1))<w[0]||g>w[w.length-1]||A.push(i(o(g),{color:M.minorgridcolor,width:M.minorgridwidth}));M.startline&&T.push(i(o(w[0]),{color:M.startlinecolor,width:M.startlinewidth})),M.endline&&T.push(i(o(w[w.length-1]),{color:M.endlinecolor,width:M.endlinewidth}))}}},{\"../../lib/extend\":717,\"../../plots/cartesian/axes\":772}],892:[function(t,e,r){\"use strict\";var n=t(\"../../plots/cartesian/axes\"),i=t(\"../../lib/extend\").extendFlat;e.exports=function(t,e){var r,a,o,s=e._labels=[],l=e._gridlines;for(r=0;r<l.length;r++)o=l[r],-1!==[\"start\",\"both\"].indexOf(e.showticklabels)&&(a=n.tickText(e,o.value),i(a,{prefix:void 0,suffix:void 0,endAnchor:!0,xy:o.xy(0),dxy:o.dxy(0,0),axis:o.axis,length:o.crossAxis.length,font:o.axis.tickfont,isFirst:0===r,isLast:r===l.length-1}),s.push(a)),-1!==[\"end\",\"both\"].indexOf(e.showticklabels)&&(a=n.tickText(e,o.value),i(a,{endAnchor:!1,xy:o.xy(o.crossLength-1),dxy:o.dxy(o.crossLength-2,1),axis:o.axis,length:o.crossAxis.length,font:o.axis.tickfont,isFirst:0===r,isLast:r===l.length-1}),s.push(a))}},{\"../../lib/extend\":717,\"../../plots/cartesian/axes\":772}],893:[function(t,e,r){\"use strict\";e.exports=function(t,e,r,n){var i=t[0]-e[0],a=t[1]-e[1],o=r[0]-e[0],s=r[1]-e[1],l=Math.pow(i*i+a*a,.25),u=Math.pow(o*o+s*s,.25),c=(u*u*i-l*l*o)*n,h=(u*u*a-l*l*s)*n,f=u*(l+u)*3,d=l*(l+u)*3;return[[e[0]+(f&&c/f),e[1]+(f&&h/f)],[e[0]-(d&&c/d),e[1]-(d&&h/d)]]}},{}],894:[function(t,e,r){\"use strict\";var n=t(\"../../lib\").isArray;e.exports=function(t,e,r){var i,a,o,s,l,u,c=[],h=n(t)?t.length:t,f=n(e)?e.length:e,d=n(t)?t:null,p=n(e)?e:null;d&&(o=(d.length-1)/(d[d.length-1]-d[0])/(h-1)),p&&(s=(p.length-1)/(p[p.length-1]-p[0])/(f-1));var m,v=1/0,g=-1/0;for(a=0;a<f;a++)for(c[a]=[],u=p?(p[a]-p[0])*s:a/(f-1),i=0;i<h;i++)l=d?(d[i]-d[0])*o:i/(h-1),m=l-u*r,v=Math.min(m,v),g=Math.max(m,g),c[a][i]=m;var y=1/(g-v),b=-v*y;for(a=0;a<f;a++)for(i=0;i<h;i++)c[a][i]=y*c[a][i]+b;return c}},{\"../../lib\":728}],895:[function(t,e,r){\"use strict\";function n(t,e,r){var n=-.5*r[0]+1.5*e[0],i=-.5*r[1]+1.5*e[1];return[(2*n+t[0])/3,(2*i+t[1])/3]}var i=t(\"./catmull_rom\"),a=t(\"../../lib\").ensureArray;e.exports=function(t,e,r,o,s,l){var u,c,h,f,d,p,m,v,g,y,b=r[0].length,x=r.length,_=s?3*b-2:b,w=l?3*x-2:x;for(t=a(t,w),e=a(e,w),h=0;h<w;h++)t[h]=a(t[h],_),e[h]=a(e[h],_);for(c=0,f=0;c<x;c++,f+=l?3:1)for(d=t[f],p=e[f],m=r[c],v=o[c],u=0,h=0;u<b;u++,h+=s?3:1)d[h]=m[u],p[h]=v[u];if(s)for(c=0,f=0;c<x;c++,f+=l?3:1){for(u=1,h=3;u<b-1;u++,h+=3)g=i([r[c][u-1],o[c][u-1]],[r[c][u],o[c][u]],[r[c][u+1],o[c][u+1]],s),t[f][h-1]=g[0][0],e[f][h-1]=g[0][1],t[f][h+1]=g[1][0],e[f][h+1]=g[1][1];y=n([t[f][0],e[f][0]],[t[f][2],e[f][2]],[t[f][3],e[f][3]]),t[f][1]=y[0],e[f][1]=y[1],y=n([t[f][_-1],e[f][_-1]],[t[f][_-3],e[f][_-3]],[t[f][_-4],e[f][_-4]]),t[f][_-2]=y[0],e[f][_-2]=y[1]}if(l)for(h=0;h<_;h++){for(f=3;f<w-3;f+=3)g=i([t[f-3][h],e[f-3][h]],[t[f][h],e[f][h]],[t[f+3][h],e[f+3][h]],l),t[f-1][h]=g[0][0],e[f-1][h]=g[0][1],t[f+1][h]=g[1][0],e[f+1][h]=g[1][1];y=n([t[0][h],e[0][h]],[t[2][h],e[2][h]],[t[3][h],e[3][h]]),t[1][h]=y[0],e[1][h]=y[1],y=n([t[w-1][h],e[w-1][h]],[t[w-3][h],e[w-3][h]],[t[w-4][h],e[w-4][h]]),t[w-2][h]=y[0],e[w-2][h]=y[1]}if(s&&l)for(f=1;f<w;f+=(f+1)%3==0?2:1){for(h=3;h<_-3;h+=3)g=i([t[f][h-3],e[f][h-3]],[t[f][h],e[f][h]],[t[f][h+3],e[f][h+3]],s),t[f][h-1]=.5*(t[f][h-1]+g[0][0]),e[f][h-1]=.5*(e[f][h-1]+g[0][1]),t[f][h+1]=.5*(t[f][h+1]+g[1][0]),e[f][h+1]=.5*(e[f][h+1]+g[1][1]);y=n([t[f][0],e[f][0]],[t[f][2],e[f][2]],[t[f][3],e[f][3]]),t[f][1]=.5*(t[f][1]+y[0]),e[f][1]=.5*(e[f][1]+y[1]),y=n([t[f][_-1],e[f][_-1]],[t[f][_-3],e[f][_-3]],[t[f][_-4],e[f][_-4]]),t[f][_-2]=.5*(t[f][_-2]+y[0]),e[f][_-2]=.5*(e[f][_-2]+y[1])}return[t,e]}},{\"../../lib\":728,\"./catmull_rom\":893}],896:[function(t,e,r){\"use strict\";e.exports={RELATIVE_CULL_TOLERANCE:1e-6}},{}],897:[function(t,e,r){\"use strict\";e.exports=function(t,e,r){return e&&r?function(e,r,n,i,a){e||(e=[]);var o,s,l,u,c,h;r*=3,n*=3;var f=i*i,d=1-i,p=d*d,m=d*i*2,v=-3*p,g=3*(p-m),y=3*(m-f),b=3*f,x=a*a,_=x*a,w=1-a,M=w*w,k=M*w;for(h=0;h<t.length;h++)c=t[h],o=v*c[n][r]+g*c[n][r+1]+y*c[n][r+2]+b*c[n][r+3],s=v*c[n+1][r]+g*c[n+1][r+1]+y*c[n+1][r+2]+b*c[n+1][r+3],l=v*c[n+2][r]+g*c[n+2][r+1]+y*c[n+2][r+2]+b*c[n+2][r+3],u=v*c[n+3][r]+g*c[n+3][r+1]+y*c[n+3][r+2]+b*c[n+3][r+3],e[h]=k*o+3*(M*a*s+w*x*l)+_*u;return e}:e?function(e,r,n,i,a){e||(e=[]);var o,s,l,u;r*=3;var c=i*i,h=1-i,f=h*h,d=h*i*2,p=-3*f,m=3*(f-d),v=3*(d-c),g=3*c,y=1-a;for(l=0;l<t.length;l++)u=t[l],o=p*u[n][r]+m*u[n][r+1]+v*u[n][r+2]+g*u[n][r+3],s=p*u[n+1][r]+m*u[n+1][r+1]+v*u[n+1][r+2]+g*u[n+1][r+3],e[l]=y*o+a*s;return e}:r?function(e,r,n,i,a){e||(e=[]);var o,s,l,u,c,h;n*=3;var f=a*a,d=f*a,p=1-a,m=p*p,v=m*p;for(c=0;c<t.length;c++)h=t[c],o=h[n][r+1]-h[n][r],s=h[n+1][r+1]-h[n+1][r],l=h[n+2][r+1]-h[n+2][r],u=h[n+3][r+1]-h[n+3][r],e[c]=v*o+3*(m*a*s+p*f*l)+d*u;return e}:function(e,r,n,i,a){e||(e=[]);var o,s,l,u,c=1-a;for(l=0;l<t.length;l++)u=t[l],o=u[n][r+1]-u[n][r],s=u[n+1][r+1]-u[n+1][r],e[l]=c*o+a*s;return e}}},{}],898:[function(t,e,r){\"use strict\";e.exports=function(t,e,r){return e&&r?function(e,r,n,i,a){e||(e=[]);var o,s,l,u,c,h;r*=3,n*=3;var f=i*i,d=f*i,p=1-i,m=p*p,v=m*p,g=a*a,y=1-a,b=y*y,x=y*a*2,_=-3*b,w=3*(b-x),M=3*(x-g),k=3*g;for(h=0;h<t.length;h++)c=t[h],o=_*c[n][r]+w*c[n+1][r]+M*c[n+2][r]+k*c[n+3][r],s=_*c[n][r+1]+w*c[n+1][r+1]+M*c[n+2][r+1]+k*c[n+3][r+1],l=_*c[n][r+2]+w*c[n+1][r+2]+M*c[n+2][r+2]+k*c[n+3][r+2],u=_*c[n][r+3]+w*c[n+1][r+3]+M*c[n+2][r+3]+k*c[n+3][r+3],e[h]=v*o+3*(m*i*s+p*f*l)+d*u;return e}:e?function(e,r,n,i,a){e||(e=[]);var o,s,l,u,c,h;r*=3;var f=a*a,d=f*a,p=1-a,m=p*p,v=m*p;for(c=0;c<t.length;c++)h=t[c],o=h[n+1][r]-h[n][r],s=h[n+1][r+1]-h[n][r+1],l=h[n+1][r+2]-h[n][r+2],u=h[n+1][r+3]-h[n][r+3],e[c]=v*o+3*(m*a*s+p*f*l)+d*u;return e}:r?function(e,r,n,i,a){e||(e=[]);var o,s,l,u;n*=3;var c=1-i,h=a*a,f=1-a,d=f*f,p=f*a*2,m=-3*d,v=3*(d-p),g=3*(p-h),y=3*h;for(l=0;l<t.length;l++)u=t[l],o=m*u[n][r]+v*u[n+1][r]+g*u[n+2][r]+y*u[n+3][r],s=m*u[n][r+1]+v*u[n+1][r+1]+g*u[n+2][r+1]+y*u[n+3][r+1],e[l]=c*o+i*s;return e}:function(e,r,n,i,a){e||(e=[]);var o,s,l,u,c=1-i;for(l=0;l<t.length;l++)u=t[l],o=u[n+1][r]-u[n][r],s=u[n+1][r+1]-u[n][r+1],e[l]=c*o+i*s;return e}}},{}],899:[function(t,e,r){\"use strict\";e.exports=function(t,e,r,n,i){var a=e-2,o=r-2;return n&&i?function(e,r,n){e||(e=[]);var i,s,l,u,c,h,f=Math.max(0,Math.min(Math.floor(r),a)),d=Math.max(0,Math.min(Math.floor(n),o)),p=Math.max(0,Math.min(1,r-f)),m=Math.max(0,Math.min(1,n-d));f*=3,d*=3;var v=p*p,g=v*p,y=1-p,b=y*y,x=b*y,_=m*m,w=_*m,M=1-m,k=M*M,A=k*M;for(h=0;h<t.length;h++)c=t[h],\n", "i=x*c[d][f]+3*(b*p*c[d][f+1]+y*v*c[d][f+2])+g*c[d][f+3],s=x*c[d+1][f]+3*(b*p*c[d+1][f+1]+y*v*c[d+1][f+2])+g*c[d+1][f+3],l=x*c[d+2][f]+3*(b*p*c[d+2][f+1]+y*v*c[d+2][f+2])+g*c[d+2][f+3],u=x*c[d+3][f]+3*(b*p*c[d+3][f+1]+y*v*c[d+3][f+2])+g*c[d+3][f+3],e[h]=A*i+3*(k*m*s+M*_*l)+w*u;return e}:n?function(e,r,n){e||(e=[]);var i,s,l,u,c,h,f=Math.max(0,Math.min(Math.floor(r),a)),d=Math.max(0,Math.min(Math.floor(n),o)),p=Math.max(0,Math.min(1,r-f)),m=Math.max(0,Math.min(1,n-d));f*=3;var v=p*p,g=v*p,y=1-p,b=y*y,x=b*y,_=1-m;for(c=0;c<t.length;c++)h=t[c],i=_*h[d][f]+m*h[d+1][f],s=_*h[d][f+1]+m*h[d+1][f+1],l=_*h[d][f+2]+m*h[d+1][f+1],u=_*h[d][f+3]+m*h[d+1][f+1],e[c]=x*i+3*(b*p*s+y*v*l)+g*u;return e}:i?function(e,r,n){e||(e=[]);var i,s,l,u,c,h,f=Math.max(0,Math.min(Math.floor(r),a)),d=Math.max(0,Math.min(Math.floor(n),o)),p=Math.max(0,Math.min(1,r-f)),m=Math.max(0,Math.min(1,n-d));d*=3;var v=m*m,g=v*m,y=1-m,b=y*y,x=b*y,_=1-p;for(c=0;c<t.length;c++)h=t[c],i=_*h[d][f]+p*h[d][f+1],s=_*h[d+1][f]+p*h[d+1][f+1],l=_*h[d+2][f]+p*h[d+2][f+1],u=_*h[d+3][f]+p*h[d+3][f+1],e[c]=x*i+3*(b*m*s+y*v*l)+g*u;return e}:function(e,r,n){e||(e=[]);var i,s,l,u,c=Math.max(0,Math.min(Math.floor(r),a)),h=Math.max(0,Math.min(Math.floor(n),o)),f=Math.max(0,Math.min(1,r-c)),d=Math.max(0,Math.min(1,n-h)),p=1-d,m=1-f;for(l=0;l<t.length;l++)u=t[l],i=m*u[h][c]+f*u[h][c+1],s=m*u[h+1][c]+f*u[h+1][c+1],e[l]=p*i+d*s;return e}}},{}],900:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"./xy_defaults\"),a=t(\"./ab_defaults\"),o=t(\"./set_convert\"),s=t(\"./attributes\"),l=t(\"../../components/color/attributes\");e.exports=function(t,e,r,u){function c(r,i){return n.coerce(t,e,s,r,i)}e._clipPathId=\"clip\"+e.uid+\"carpet\";var h=c(\"color\",l.defaultLine);if(n.coerceFont(c,\"font\"),c(\"carpet\"),a(t,e,u,c,h),!e.a||!e.b)return void(e.visible=!1);e.a.length<3&&(e.aaxis.smoothing=0),e.b.length<3&&(e.baxis.smoothing=0);var f=i(t,e,c);o(e),e._cheater&&c(\"cheaterslope\"),f||(e.visible=!1)}},{\"../../components/color/attributes\":603,\"../../lib\":728,\"./ab_defaults\":883,\"./attributes\":885,\"./set_convert\":909,\"./xy_defaults\":911}],901:[function(t,e,r){\"use strict\";e.exports=function(t){return Array.isArray(t[0])}},{}],902:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.supplyDefaults=t(\"./defaults\"),n.plot=t(\"./plot\"),n.calc=t(\"./calc\"),n.animatable=!0,n.moduleType=\"trace\",n.name=\"carpet\",n.basePlotModule=t(\"../../plots/cartesian\"),n.categories=[\"cartesian\",\"carpet\",\"carpetAxis\",\"notLegendIsolatable\"],n.meta={},e.exports=n},{\"../../plots/cartesian\":782,\"./attributes\":885,\"./calc\":889,\"./defaults\":900,\"./plot\":908}],903:[function(t,e,r){\"use strict\";e.exports=function(t,e){for(var r,n=t._fullData.length,i=0;i<n;i++){var a=t._fullData[i];if(a.index!==e.index&&(\"carpet\"===a.type&&(r||(r=a),a.carpet===e.carpet)))return a}return r}},{}],904:[function(t,e,r){\"use strict\";e.exports=function(t,e,r){if(0===t.length)return\"\";var n,i=[],a=r?3:1;for(n=0;n<t.length;n+=a)i.push(t[n]+\",\"+e[n]),r&&n<t.length-a&&(i.push(\"C\"),i.push([t[n+1]+\",\"+e[n+1],t[n+2]+\",\"+e[n+2]+\" \"].join(\" \")));return i.join(r?\"\":\"L\")}},{}],905:[function(t,e,r){\"use strict\";e.exports=function(t,e,r){var n;for(Array.isArray(t)?t.length>e.length&&(t=t.slice(0,e.length)):t=[],n=0;n<e.length;n++)t[n]=r(e[n]);return t}},{}],906:[function(t,e,r){\"use strict\";e.exports=function(t,e,r){var n,i;for(Array.isArray(t)?t.length>e.length&&(t=t.slice(0,e.length)):t=[],n=0;n<e.length;n++)for(Array.isArray(t[n])?t[n].length>e.length&&(t[n]=t[n].slice(0,e.length)):t[n]=[],i=0;i<e[0].length;i++)t[n][i]=r(e[n][i]);return t}},{}],907:[function(t,e,r){\"use strict\";e.exports=function(t,e,r,n,i,a){var o=i[0]*t.dpdx(e),s=i[1]*t.dpdy(r),l=1,u=1;if(a){var c=Math.sqrt(i[0]*i[0]+i[1]*i[1]),h=Math.sqrt(a[0]*a[0]+a[1]*a[1]),f=(i[0]*a[0]+i[1]*a[1])/c/h;u=Math.max(0,f)}var d=180*Math.atan2(s,o)/Math.PI;return d<-90?(d+=180,l=-l):d>90&&(d-=180,l=-l),{angle:d,flip:l,p:t.c2p(n,e,r),offsetMultplier:u}}},{}],908:[function(t,e,r){\"use strict\";function n(t,e,r){var n=t.selectAll(e+\".\"+r).data([0]);return n.enter().append(e).classed(r,!0),n}function i(t,e,r){var i=r[0],u=r[0].trace,c=e.xaxis,h=e.yaxis,f=u.aaxis,d=u.baxis,p=t._fullLayout,m=e.plot.selectAll(\".carpetlayer\"),v=p._clips,g=n(m,\"g\",\"carpet\"+u.uid).classed(\"trace\",!0),y=n(g,\"g\",\"minorlayer\"),b=n(g,\"g\",\"majorlayer\"),x=n(g,\"g\",\"boundarylayer\"),_=n(g,\"g\",\"labellayer\");g.style(\"opacity\",u.opacity),o(c,h,b,f,\"a\",f._gridlines),o(c,h,b,d,\"b\",d._gridlines),o(c,h,y,f,\"a\",f._minorgridlines),o(c,h,y,d,\"b\",d._minorgridlines),o(c,h,x,f,\"a-boundary\",f._boundarylines),o(c,h,x,d,\"b-boundary\",d._boundarylines),l(t,_,u,i,c,h,s(t,c,h,u,i,_,f._labels,\"a-label\"),s(t,c,h,u,i,_,d._labels,\"b-label\")),a(u,i,v,c,h)}function a(t,e,r,i,a){var o,s,l,u,c=r.select(\"#\"+t._clipPathId);c.size()||(c=r.append(\"clipPath\").classed(\"carpetclip\",!0));var h=n(c,\"path\",\"carpetboundary\"),p=e.clipsegments,m=[];for(u=0;u<p.length;u++)o=p[u],s=f([],o.x,i.c2p),l=f([],o.y,a.c2p),m.push(d(s,l,o.bicubic));var v=\"M\"+m.join(\"L\")+\"Z\";c.attr(\"id\",t._clipPathId),h.attr(\"d\",v)}function o(t,e,r,n,i,a){var o=\"const-\"+i+\"-lines\",s=r.selectAll(\".\"+o).data(a);s.enter().append(\"path\").classed(o,!0).style(\"vector-effect\",\"non-scaling-stroke\"),s.each(function(r){var n=r,i=n.x,a=n.y,o=f([],i,t.c2p),s=f([],a,e.c2p),l=\"M\"+d(o,s,n.smoothing);c.select(this).attr(\"d\",l).style(\"stroke-width\",n.width).style(\"stroke\",n.color).style(\"fill\",\"none\")}),s.exit().remove()}function s(t,e,r,n,i,a,o,s){var l=a.selectAll(\"text.\"+s).data(o);l.enter().append(\"text\").classed(s,!0);var u=0;return l.each(function(i){var a;if(\"auto\"===i.axis.tickangle)a=p(n,e,r,i.xy,i.dxy);else{var o=(i.axis.tickangle+180)*Math.PI/180;a=p(n,e,r,i.xy,[Math.cos(o),Math.sin(o)])}var s=(i.endAnchor?-1:1)*a.flip,l=c.select(this).attr({\"text-anchor\":s>0?\"start\":\"end\",\"data-notex\":1}).call(h.font,i.font).text(i.text).call(m.convertToTspans,t),f=h.bBox(this);l.attr(\"transform\",\"translate(\"+a.p[0]+\",\"+a.p[1]+\") rotate(\"+a.angle+\")translate(\"+i.axis.labelpadding*s+\",\"+.3*f.height+\")\"),u=Math.max(u,f.width+i.axis.labelpadding)}),l.exit().remove(),u}function l(t,e,r,n,i,a,o,s){var l,c,h,f;l=.5*(r.a[0]+r.a[r.a.length-1]),c=r.b[0],h=r.ab2xy(l,c,!0),f=r.dxyda_rough(l,c),u(t,e,r,n,h,f,r.aaxis,i,a,o,\"a-title\"),l=r.a[0],c=.5*(r.b[0]+r.b[r.b.length-1]),h=r.ab2xy(l,c,!0),f=r.dxydb_rough(l,c),u(t,e,r,n,h,f,r.baxis,i,a,s,\"b-title\")}function u(t,e,r,n,i,a,o,s,l,u,f){var d=[];o.title&&d.push(o.title);var v=e.selectAll(\"text.\"+f).data(d);v.enter().append(\"text\").classed(f,!0),v.each(function(){var e=p(r,s,l,i,a);-1===[\"start\",\"both\"].indexOf(o.showticklabels)&&(u=0),u+=o.titlefont.size+o.titleoffset,c.select(this).text(o.title||\"\").call(m.convertToTspans,t).attr(\"transform\",\"translate(\"+e.p[0]+\",\"+e.p[1]+\") rotate(\"+e.angle+\") translate(0,\"+u+\")\").classed(\"user-select-none\",!0).attr(\"text-anchor\",\"middle\").call(h.font,o.titlefont)}),v.exit().remove()}var c=t(\"d3\"),h=t(\"../../components/drawing\"),f=t(\"./map_1d_array\"),d=t(\"./makepath\"),p=t(\"./orient_text\"),m=t(\"../../lib/svg_text_utils\");e.exports=function(t,e,r){for(var n=0;n<r.length;n++)i(t,e,r[n])}},{\"../../components/drawing\":628,\"../../lib/svg_text_utils\":750,\"./makepath\":904,\"./map_1d_array\":905,\"./orient_text\":907,d3:122}],909:[function(t,e,r){\"use strict\";var n=t(\"./constants\"),i=t(\"../../lib/search\").findBin,a=t(\"./compute_control_points\"),o=t(\"./create_spline_evaluator\"),s=t(\"./create_i_derivative_evaluator\"),l=t(\"./create_j_derivative_evaluator\");e.exports=function(t){var e=t.a,r=t.b,u=t.a.length,c=t.b.length,h=t.aaxis,f=t.baxis,d=e[0],p=e[u-1],m=r[0],v=r[c-1],g=e[e.length-1]-e[0],y=r[r.length-1]-r[0],b=g*n.RELATIVE_CULL_TOLERANCE,x=y*n.RELATIVE_CULL_TOLERANCE;d-=b,p+=b,m-=x,v+=x,t.isVisible=function(t,e){return t>d&&t<p&&e>m&&e<v},t.isOccluded=function(t,e){return t<d||t>p||e<m||e>v},h.c2p=function(t){return t},f.c2p=function(t){return t},t.setScale=function(){var e=t.x,r=t.y,n=a(t.xctrl,t.yctrl,e,r,h.smoothing,f.smoothing);t.xctrl=n[0],t.yctrl=n[1],t.evalxy=o([t.xctrl,t.yctrl],u,c,h.smoothing,f.smoothing),t.dxydi=s([t.xctrl,t.yctrl],h.smoothing,f.smoothing),t.dxydj=l([t.xctrl,t.yctrl],h.smoothing,f.smoothing)},t.i2a=function(t){var r=Math.max(0,Math.floor(t[0]),u-2),n=t[0]-r;return(1-n)*e[r]+n*e[r+1]},t.j2b=function(t){var e=Math.max(0,Math.floor(t[1]),u-2),n=t[1]-e;return(1-n)*r[e]+n*r[e+1]},t.ij2ab=function(e){return[t.i2a(e[0]),t.j2b(e[1])]},t.a2i=function(t){var r=Math.max(0,Math.min(i(t,e),u-2)),n=e[r],a=e[r+1];return Math.max(0,Math.min(u-1,r+(t-n)/(a-n)))},t.b2j=function(t){var e=Math.max(0,Math.min(i(t,r),c-2)),n=r[e],a=r[e+1];return Math.max(0,Math.min(c-1,e+(t-n)/(a-n)))},t.ab2ij=function(e){return[t.a2i(e[0]),t.b2j(e[1])]},t.i2c=function(e,r){return t.evalxy([],e,r)},t.ab2xy=function(n,i,a){if(!a&&(n<e[0]||n>e[u-1]|i<r[0]||i>r[c-1]))return[!1,!1];var o=t.a2i(n),s=t.b2j(i),l=t.evalxy([],o,s);if(a){var h,f,d,p,m=0,v=0,g=[];n<e[0]?(h=0,f=0,m=(n-e[0])/(e[1]-e[0])):n>e[u-1]?(h=u-2,f=1,m=(n-e[u-1])/(e[u-1]-e[u-2])):(h=Math.max(0,Math.min(u-2,Math.floor(o))),f=o-h),i<r[0]?(d=0,p=0,v=(i-r[0])/(r[1]-r[0])):i>r[c-1]?(d=c-2,p=1,v=(i-r[c-1])/(r[c-1]-r[c-2])):(d=Math.max(0,Math.min(c-2,Math.floor(s))),p=s-d),m&&(t.dxydi(g,h,d,f,p),l[0]+=g[0]*m,l[1]+=g[1]*m),v&&(t.dxydj(g,h,d,f,p),l[0]+=g[0]*v,l[1]+=g[1]*v)}return l},t.c2p=function(t,e,r){return[e.c2p(t[0]),r.c2p(t[1])]},t.p2x=function(t,e,r){return[e.p2c(t[0]),r.p2c(t[1])]},t.dadi=function(t){var r=Math.max(0,Math.min(e.length-2,t));return e[r+1]-e[r]},t.dbdj=function(t){var e=Math.max(0,Math.min(r.length-2,t));return r[e+1]-r[e]},t.dxyda=function(e,r,n,i){var a=t.dxydi(null,e,r,n,i),o=t.dadi(e,n);return[a[0]/o,a[1]/o]},t.dxydb=function(e,r,n,i){var a=t.dxydj(null,e,r,n,i),o=t.dbdj(r,i);return[a[0]/o,a[1]/o]},t.dxyda_rough=function(e,r,n){var i=g*(n||.1),a=t.ab2xy(e+i,r,!0),o=t.ab2xy(e-i,r,!0);return[.5*(a[0]-o[0])/i,.5*(a[1]-o[1])/i]},t.dxydb_rough=function(e,r,n){var i=y*(n||.1),a=t.ab2xy(e,r+i,!0),o=t.ab2xy(e,r-i,!0);return[.5*(a[0]-o[0])/i,.5*(a[1]-o[1])/i]},t.dpdx=function(t){return t._m},t.dpdy=function(t){return t._m}}},{\"../../lib/search\":745,\"./compute_control_points\":895,\"./constants\":896,\"./create_i_derivative_evaluator\":897,\"./create_j_derivative_evaluator\":898,\"./create_spline_evaluator\":899}],910:[function(t,e,r){\"use strict\";var n=t(\"../../lib\");e.exports=function(t,e,r){var i,a,o,s=[],l=[],u=t[0].length,c=t.length,h=0;for(i=0;i<u;i++)for(a=0;a<c;a++)void 0===t[a][i]&&(s.push(i),l.push(a),t[a][i]=function(e,r){var n,i=0,a=0;return e>0&&void 0!==(n=t[r][e-1])&&(a++,i+=n),e<u-1&&void 0!==(n=t[r][e+1])&&(a++,i+=n),r>0&&void 0!==(n=t[r-1][e])&&(a++,i+=n),r<c-1&&void 0!==(n=t[r+1][e])&&(a++,i+=n),i/Math.max(1,a)}(i,a)),h=Math.max(h,Math.abs(t[a][i]));if(!s.length)return t;var f,d,p,m,v,g,y,b,x,_,w,M=0,k=0,A=s.length;do{for(M=0,o=0;o<A;o++){i=s[o],a=l[o];var T,S,E,L,C,I,z=0,D=0;0===i?(C=Math.min(u-1,2),E=e[C],L=e[1],T=t[a][C],S=t[a][1],D+=S+(S-T)*(e[0]-L)/(L-E),z++):i===u-1&&(C=Math.max(0,u-3),E=e[C],L=e[u-2],T=t[a][C],S=t[a][u-2],D+=S+(S-T)*(e[u-1]-L)/(L-E),z++),(0===i||i===u-1)&&a>0&&a<c-1&&(f=r[a+1]-r[a],d=r[a]-r[a-1],D+=(d*t[a+1][i]+f*t[a-1][i])/(d+f),z++),0===a?(I=Math.min(c-1,2),E=r[I],L=r[1],T=t[I][i],S=t[1][i],D+=S+(S-T)*(r[0]-L)/(L-E),z++):a===c-1&&(I=Math.max(0,c-3),E=r[I],L=r[c-2],T=t[I][i],S=t[c-2][i],D+=S+(S-T)*(r[c-1]-L)/(L-E),z++),(0===a||a===c-1)&&i>0&&i<u-1&&(f=e[i+1]-e[i],d=e[i]-e[i-1],D+=(d*t[a][i+1]+f*t[a][i-1])/(d+f),z++),z?D/=z:(p=e[i+1]-e[i],m=e[i]-e[i-1],v=r[a+1]-r[a],g=r[a]-r[a-1],y=p*m*(p+m),b=v*g*(v+g),D=(y*(g*t[a+1][i]+v*t[a-1][i])+b*(m*t[a][i+1]+p*t[a][i-1]))/(b*(m+p)+y*(g+v))),x=D-t[a][i],_=x/h,M+=_*_,w=z?0:.85,t[a][i]+=x*(1+w)}M=Math.sqrt(M)}while(k++<100&&M>1e-5);return n.log(\"Smoother converged to\",M,\"after\",k,\"iterations\"),t}},{\"../../lib\":728}],911:[function(t,e,r){\"use strict\";var n=t(\"./has_columns\"),i=t(\"../heatmap/convert_column_xyz\");e.exports=function(t,e,r){var a=[],o=r(\"x\");o&&!n(o)&&a.push(\"x\"),e._cheater=!o;var s=r(\"y\");if(s&&!n(s)&&a.push(\"y\"),o||s)return a.length&&i(e,e.aaxis,e.baxis,\"a\",\"b\",a),!0}},{\"../heatmap/convert_column_xyz\":952,\"./has_columns\":901}],912:[function(t,e,r){\"use strict\";var n=t(\"../scattergeo/attributes\"),i=t(\"../../components/colorscale/attributes\"),a=t(\"../../components/colorbar/attributes\"),o=t(\"../../plots/attributes\"),s=t(\"../../lib/extend\"),l=s.extendFlat,u=s.extendDeepAll,c=n.marker.line;e.exports=l({locations:{valType:\"data_array\",editType:\"calc\"},locationmode:n.locationmode,z:{valType:\"data_array\",editType:\"calc\"},text:l({},n.text,{}),marker:{line:{color:c.color,width:l({},c.width,{dflt:1}),editType:\"calc\"},editType:\"calc\"},hoverinfo:l({},o.hoverinfo,{editType:\"calc\",flags:[\"location\",\"z\",\"text\",\"name\"]})},u({},i,{zmax:{editType:\"calc\"},zmin:{editType:\"calc\"}}),{colorbar:a})},{\"../../components/colorbar/attributes\":605,\"../../components/colorscale/attributes\":609,\"../../lib/extend\":717,\"../../plots/attributes\":770,\"../scattergeo/attributes\":1069}],913:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../../constants/numerical\").BADNUM,a=t(\"../../components/colorscale/calc\"),o=t(\"../scatter/arrays_to_calcdata\");e.exports=function(t,e){for(var r=e.locations.length,s=new Array(r),l=0;l<r;l++){var u=s[l]={},c=e.locations[l],h=e.z[l];u.loc=\"string\"==typeof c?c:null,u.z=n(h)?h:i}return o(s,e),a(e,e.z,\"\",\"z\"),s}},{\"../../components/colorscale/calc\":610,\"../../constants/numerical\":707,\"../scatter/arrays_to_calcdata\":1030,\"fast-isnumeric\":131}],914:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../components/colorscale/defaults\"),a=t(\"./attributes\");e.exports=function(t,e,r,o){function s(r,i){return n.coerce(t,e,a,r,i)}var l,u=s(\"locations\");if(u&&(l=u.length),!u||!l)return void(e.visible=!1);var c=s(\"z\");if(!Array.isArray(c))return void(e.visible=!1);c.length>l&&(e.z=c.slice(0,l)),s(\"locationmode\"),s(\"text\"),s(\"marker.line.color\"),s(\"marker.line.width\"),i(t,e,o,s,{prefix:\"\",cLetter:\"z\"})}},{\"../../components/colorscale/defaults\":613,\"../../lib\":728,\"./attributes\":912}],915:[function(t,e,r){\"use strict\";e.exports=function(t,e){return t.location=e.location,t.z=e.z,t}},{}],916:[function(t,e,r){\"use strict\";function n(t,e,r,n){var s=r.hi||e.hoverinfo,l=\"all\"===s?a.hoverinfo.flags:s.split(\"+\"),u=-1!==l.indexOf(\"name\"),c=-1!==l.indexOf(\"location\"),h=-1!==l.indexOf(\"z\"),f=-1!==l.indexOf(\"text\"),d=!u&&c,p=[];d?t.nameOverride=r.loc:(u&&(t.nameOverride=e.name),c&&p.push(r.loc)),h&&p.push(function(t){return i.tickText(n,n.c2l(t),\"hover\").text}(r.z)),f&&o(r,e,p),t.extraText=p.join(\"<br>\")}var i=t(\"../../plots/cartesian/axes\"),a=t(\"./attributes\"),o=t(\"../scatter/fill_hover_text\");e.exports=function(t,e,r){var i,a,o,s,l=t.cd,u=l[0].trace,c=t.subplot;for(a=0;a<l.length;a++)if(i=l[a],s=!1,i._polygons){for(o=0;o<i._polygons.length;o++)i._polygons[o].contains([e,r])&&(s=!s),i._polygons[o].contains([e+360,r])&&(s=!s);if(s)break}if(s&&i)return t.x0=t.x1=t.xa.c2p(i.ct),t.y0=t.y1=t.ya.c2p(i.ct),t.index=i.index,t.location=i.loc,t.z=i.z,n(t,u,i,c.mockAxis),[t]}},{\"../../plots/cartesian/axes\":772,\"../scatter/fill_hover_text\":1038,\"./attributes\":912}],917:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.supplyDefaults=t(\"./defaults\"),n.colorbar=t(\"../heatmap/colorbar\"),n.calc=t(\"./calc\"),n.plot=t(\"./plot\"),n.hoverPoints=t(\"./hover\"),n.eventData=t(\"./event_data\"),n.selectPoints=t(\"./select\"),n.moduleType=\"trace\",n.name=\"choropleth\",n.basePlotModule=t(\"../../plots/geo\"),n.categories=[\"geo\",\"noOpacity\"],n.meta={},e.exports=n},{\"../../plots/geo\":800,\"../heatmap/colorbar\":951,\"./attributes\":912,\"./calc\":913,\"./defaults\":914,\"./event_data\":915,\"./hover\":916,\"./plot\":918,\"./select\":919}],918:[function(t,e,r){\"use strict\";function n(t,e){for(var r=t[0].trace,n=t.length,a=f(r,e),o=0;o<n;o++){var s=t[o],l=d(r.locationmode,s.loc,a);l?(s.geojson=l,s.ct=l.properties.ct,s.index=o,s._polygons=i(l)):s.geojson=null}}function i(t){function e(t){for(var e=0;e<t.length-1;e++)if(t[e][0]>0&&t[e+1][0]<0)return e;return null}var r,n,i,a,o=t.geometry,s=o.coordinates,l=t.id,u=[];switch(r=\"RUS\"===l||\"FJI\"===l?function(t){var r;if(null===e(t))r=t;else for(r=new Array(t.length),a=0;a<t.length;a++)r[a]=[t[a][0]<0?t[a][0]+360:t[a][0],t[a][1]];u.push(h.tester(r))}:\"ATA\"===l?function(t){var r=e(t);if(null===r)return u.push(h.tester(t));var n=new Array(t.length+1),i=0;for(a=0;a<t.length;a++)a>r?n[i++]=[t[a][0]+360,t[a][1]]:a===r?(n[i++]=t[a],n[i++]=[t[a][0],-90]):n[i++]=t[a];var o=h.tester(n);o.pts.pop(),u.push(o)}:function(t){u.push(h.tester(t))},o.type){case\"MultiPolygon\":for(n=0;n<s.length;n++)for(i=0;i<s[n].length;i++)r(s[n][i]);break;case\"Polygon\":for(n=0;n<s.length;n++)r(s[n])}return u}function a(t){t.layers.backplot.selectAll(\".trace.choropleth\").each(function(t){var e=t[0].trace,r=e.marker||{},n=r.line||{},i=c.makeColorScaleFunc(c.extractScale(e.colorscale,e.zmin,e.zmax));o.select(this).selectAll(\".choroplethlocation\").each(function(t){o.select(this).attr(\"fill\",i(t.z)).call(l.stroke,t.mlc||n.color).call(u.dashLine,\"\",t.mlw||n.width||0)})})}var o=t(\"d3\"),s=t(\"../../lib\"),l=t(\"../../components/color\"),u=t(\"../../components/drawing\"),c=t(\"../../components/colorscale\"),h=t(\"../../lib/polygon\"),f=t(\"../../lib/topojson_utils\").getTopojsonFeatures,d=t(\"../../lib/geo_location_utils\").locationToFeature;e.exports=function(t,e){function r(t){return t[0].trace.uid}for(var i=0;i<e.length;i++)n(e[i],t.topojson);var l=t.layers.backplot.select(\".choroplethlayer\").selectAll(\"g.trace.choropleth\").data(e,r);l.enter().append(\"g\").attr(\"class\",\"trace choropleth\"),l.exit().remove(),l.each(function(t){var e=t[0].node3=o.select(this),r=e.selectAll(\"path.choroplethlocation\").data(s.identity);r.enter().append(\"path\").classed(\"choroplethlocation\",!0),r.exit().remove()}),a(t)}},{\"../../components/color\":604,\"../../components/colorscale\":618,\"../../components/drawing\":628,\"../../lib\":728,\"../../lib/geo_location_utils\":720,\"../../lib/polygon\":739,\"../../lib/topojson_utils\":753,d3:122}],919:[function(t,e,r){\"use strict\";var n=t(\"../../constants/interactions\").DESELECTDIM;e.exports=function(t,e){var r,i,a,o,s,l=t.cd,u=t.xaxis,c=t.yaxis,h=[],f=l[0].node3;if(!1===e)for(r=0;r<l.length;r++)l[r].dim=0;else for(r=0;r<l.length;r++)i=l[r],(a=i.ct)&&(o=u.c2p(a),s=c.c2p(a),e.contains([o,s])?(h.push({pointNumber:r,lon:a[0],lat:a[1]}),i.dim=0):i.dim=1);return f.selectAll(\"path\").style(\"opacity\",function(t){return t.dim?n:1}),h}},{\"../../constants/interactions\":706}],920:[function(t,e,r){\"use strict\";var n=t(\"../heatmap/attributes\"),i=t(\"../scatter/attributes\"),a=t(\"../../components/colorscale/attributes\"),o=t(\"../../components/colorbar/attributes\"),s=t(\"../../components/drawing/attributes\").dash,l=t(\"../../plots/font_attributes\"),u=t(\"../../lib/extend\").extendFlat,c=i.line;e.exports=u({z:n.z,x:n.x,x0:n.x0,dx:n.dx,y:n.y,y0:n.y0,dy:n.dy,text:n.text,transpose:n.transpose,xtype:n.xtype,ytype:n.ytype,connectgaps:n.connectgaps,autocontour:{valType:\"boolean\",dflt:!0,editType:\"calc\",impliedEdits:{\"contours.start\":void 0,\"contours.end\":void 0,\"contours.size\":void 0}},ncontours:{valType:\"integer\",dflt:15,min:1,editType:\"calc\"},contours:{start:{valType:\"number\",dflt:null,editType:\"plot\",impliedEdits:{\"^autocontour\":!1}},end:{valType:\"number\",dflt:null,editType:\"plot\",impliedEdits:{\"^autocontour\":!1}},size:{valType:\"number\",dflt:null,min:0,editType:\"plot\",impliedEdits:{\"^autocontour\":!1}},coloring:{valType:\"enumerated\",values:[\"fill\",\"heatmap\",\"lines\",\"none\"],dflt:\"fill\",editType:\"calc\"},showlines:{valType:\"boolean\",dflt:!0,editType:\"plot\"},showlabels:{valType:\"boolean\",dflt:!1,editType:\"plot\"},labelfont:l({editType:\"plot\",colorEditType:\"style\"}),labelformat:{valType:\"string\",dflt:\"\",editType:\"plot\"},editType:\"calc\",impliedEdits:{autocontour:!1}},line:{color:u({},c.color,{editType:\"style+colorbars\"}),width:u({},c.width,{editType:\"style+colorbars\"}),dash:s,smoothing:u({},c.smoothing,{}),editType:\"plot\"}},a,{autocolorscale:u({},a.autocolorscale,{dflt:!1}),zmin:u({},a.zmin,{editType:\"calc\"}),zmax:u({},a.zmax,{editType:\"calc\"})},{colorbar:o})},{\"../../components/colorbar/attributes\":605,\"../../components/colorscale/attributes\":609,\"../../components/drawing/attributes\":627,\"../../lib/extend\":717,\"../../plots/font_attributes\":796,\"../heatmap/attributes\":948,\"../scatter/attributes\":1031}],921:[function(t,e,r){\"use strict\";function n(t,e,r){var n={type:\"linear\",range:[t,e]};return i.autoTicks(n,(e-t)/(r||15)),n}var i=t(\"../../plots/cartesian/axes\"),a=t(\"../../lib\").extendFlat,o=t(\"../heatmap/calc\");e.exports=function(t,e){var r=o(t,e),s=e.contours;if(!1!==e.autocontour){var l=n(e.zmin,e.zmax,e.ncontours);s.size=l.dtick,s.start=i.tickFirst(l),l.range.reverse(),s.end=i.tickFirst(l),s.start===e.zmin&&(s.start+=s.size),s.end===e.zmax&&(s.end-=s.size),s.start>s.end&&(s.start=s.end=(s.start+s.end)/2),e._input.contours||(e._input.contours={}),a(e._input.contours,{start:s.start,end:s.end,size:s.size}),e._input.autocontour=!0}else{var u=s.start,c=s.end,h=e._input.contours;if(u>c&&(s.start=h.start=c,c=s.end=h.end=u,u=s.start),!(s.size>0)){var f;f=u===c?1:n(u,c,e.ncontours).dtick,h.size=s.size=f}}return r}},{\"../../lib\":728,\"../../plots/cartesian/axes\":772,\"../heatmap/calc\":949}],922:[function(t,e,r){\"use strict\";var n=t(\"../../plots/plots\"),i=t(\"../../components/colorbar/draw\"),a=t(\"./make_color_map\"),o=t(\"./end_plus\");e.exports=function(t,e){var r=e[0].trace,s=\"cb\"+r.uid;if(t._fullLayout._infolayer.selectAll(\".\"+s).remove(),!r.showscale)return void n.autoMargin(t,s);var l=i(t,s);e[0].t.cb=l;var u=r.contours,c=r.line,h=u.size||1,f=u.coloring,d=a(r,{isColorbar:!0});\"heatmap\"===f&&l.filllevels({start:r.zmin,end:r.zmax,size:(r.zmax-r.zmin)/254}),l.fillcolor(\"fill\"===f||\"heatmap\"===f?d:\"\").line({color:\"lines\"===f?d:c.color,width:!1!==u.showlines?c.width:0,dash:c.dash}).levels({start:u.start,end:o(u),size:h}).options(r.colorbar)()}},{\"../../components/colorbar/draw\":607,\"../../plots/plots\":831,\"./end_plus\":926,\"./make_color_map\":930}],923:[function(t,e,r){\"use strict\";e.exports={BOTTOMSTART:[1,9,13,104,713],TOPSTART:[4,6,7,104,713],LEFTSTART:[8,12,14,208,1114],RIGHTSTART:[2,3,11,208,1114],NEWDELTA:[null,[-1,0],[0,-1],[-1,0],[1,0],null,[0,-1],[-1,0],[0,1],[0,1],null,[0,1],[1,0],[1,0],[0,-1]],CHOOSESADDLE:{104:[4,1],208:[2,8],713:[7,13],1114:[11,14]},SADDLEREMAINDER:{1:4,2:8,4:1,7:13,8:2,11:14,13:7,14:11},LABELDISTANCE:2,LABELINCREASE:10,LABELMIN:3,LABELMAX:10,LABELOPTIMIZER:{EDGECOST:1,ANGLECOST:1,NEIGHBORCOST:5,SAMELEVELFACTOR:10,SAMELEVELDISTANCE:5,MAXCOST:100,INITIALSEARCHPOINTS:10,ITERATIONS:5}}},{}],924:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"./attributes\");e.exports=function(t,e,r){var a,o=n.coerce2(t,e,i,\"contours.start\"),s=n.coerce2(t,e,i,\"contours.end\"),l=!1===o||!1===s,u=r(\"contours.size\");!(a=l?e.autocontour=!0:r(\"autocontour\",!1))&&u||r(\"ncontours\")}},{\"../../lib\":728,\"./attributes\":920}],925:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../heatmap/has_columns\"),a=t(\"../heatmap/xyz_defaults\"),o=t(\"./contours_defaults\"),s=t(\"./style_defaults\"),l=t(\"./attributes\");e.exports=function(t,e,r,u){function c(r,i){return n.coerce(t,e,l,r,i)}if(!a(t,e,c,u))return void(e.visible=!1);c(\"text\"),c(\"connectgaps\",i(e)),o(t,e,c),s(t,e,c,u)}},{\"../../lib\":728,\"../heatmap/has_columns\":955,\"../heatmap/xyz_defaults\":963,\"./attributes\":920,\"./contours_defaults\":924,\"./style_defaults\":934}],926:[function(t,e,r){\"use strict\";e.exports=function(t){return t.end+t.size/1e6}},{}],927:[function(t,e,r){\"use strict\";function n(t,e,r,n){return Math.abs(t[0]-e[0])<r&&Math.abs(t[1]-e[1])<n}function i(t,e){var r=t[2]-e[2],n=t[3]-e[3];return Math.sqrt(r*r+n*n)}function a(t,e,r,a,c){function h(t){return g[t%g.length]}var f,d=e.join(\",\"),p=d,m=t.crossings[p],v=o(m,r,e),g=[s(t,e,[-v[0],-v[1]])],y=v.join(\",\"),b=t.z.length,x=t.z[0].length;for(f=0;f<1e4;f++){if(m>20?(m=u.CHOOSESADDLE[m][(v[0]||v[1])<0?0:1],t.crossings[p]=u.SADDLEREMAINDER[m]):delete t.crossings[p],!(v=u.NEWDELTA[m])){l.log(\"Found bad marching index:\",m,e,t.level);break}g.push(s(t,e,v)),e[0]+=v[0],e[1]+=v[1],n(g[g.length-1],g[g.length-2],a,c)&&g.pop(),p=e.join(\",\");var _=v[0]&&(e[0]<0||e[0]>x-2)||v[1]&&(e[1]<0||e[1]>b-2);if(p===d&&v.join(\",\")===y||r&&_)break;m=t.crossings[p]}1e4===f&&l.log(\"Infinite loop in contour?\");var w,M,k,A,T,S,E,L=n(g[0],g[g.length-1],a,c),C=0,I=.2*t.smoothing,z=[],D=0;for(f=1;f<g.length;f++)E=i(g[f],g[f-1]),C+=E,z.push(E);var P=C/z.length*I;for(f=g.length-2;f>=D;f--)if((w=z[f])<P){for(k=0,M=f-1;M>=D&&w+z[M]<P;M--)w+=z[M];if(L&&f===g.length-2)for(k=0;k<M&&w+z[k]<P;k++)w+=z[k];T=f-M+k+1,S=Math.floor((f+M+k+2)/2),A=L||f!==g.length-2?L||-1!==M?T%2?h(S):[(h(S)[0]+h(S+1)[0])/2,(h(S)[1]+h(S+1)[1])/2]:g[0]:g[g.length-1],g.splice(M+1,f-M+1,A),f=M+1,k&&(D=k),L&&(f===g.length-2?g[k]=g[g.length-1]:0===f&&(g[g.length-1]=g[0]))}for(g.splice(0,D),f=0;f<g.length;f++)g[f].length=2;if(!(g.length<2))if(L)g.pop(),t.paths.push(g);else{r||l.log(\"Unclosed interior contour?\",t.level,d,g.join(\"L\"));var O=!1;t.edgepaths.forEach(function(e,r){if(!O&&n(e[0],g[g.length-1],a,c)){g.pop(),O=!0;var i=!1;t.edgepaths.forEach(function(e,o){!i&&n(e[e.length-1],g[0],a,c)&&(i=!0,g.splice(0,1),t.edgepaths.splice(r,1),o===r?t.paths.push(g.concat(e)):t.edgepaths[o]=t.edgepaths[o].concat(g,e))}),i||(t.edgepaths[r]=g.concat(e))}}),t.edgepaths.forEach(function(e,r){!O&&n(e[e.length-1],g[0],a,c)&&(g.splice(0,1),t.edgepaths[r]=e.concat(g),O=!0)}),O||t.edgepaths.push(g)}}function o(t,e,r){var n=0,i=0;return t>20&&e?208===t||1114===t?n=0===r[0]?1:-1:i=0===r[1]?1:-1:-1!==u.BOTTOMSTART.indexOf(t)?i=1:-1!==u.LEFTSTART.indexOf(t)?n=1:-1!==u.TOPSTART.indexOf(t)?i=-1:n=-1,[n,i]}function s(t,e,r){var n=e[0]+Math.max(r[0],0),i=e[1]+Math.max(r[1],0),a=t.z[i][n],o=t.xaxis,s=t.yaxis;if(r[1]){var l=(t.level-a)/(t.z[i][n+1]-a);return[o.c2p((1-l)*t.x[n]+l*t.x[n+1],!0),s.c2p(t.y[i],!0),n+l,i]}var u=(t.level-a)/(t.z[i+1][n]-a);return[o.c2p(t.x[n],!0),s.c2p((1-u)*t.y[i]+u*t.y[i+1],!0),n,i+u]}var l=t(\"../../lib\"),u=t(\"./constants\");e.exports=function(t,e,r){var n,i,o,s,u;for(e=e||.01,r=r||.01,o=0;o<t.length;o++){for(s=t[o],u=0;u<s.starts.length;u++)i=s.starts[u],a(s,i,\"edge\",e,r);for(n=0;Object.keys(s.crossings).length&&n<1e4;)n++,i=Object.keys(s.crossings)[0].split(\",\").map(Number),a(s,i,void 0,e,r);1e4===n&&l.log(\"Infinite loop in contour?\")}}},{\"../../lib\":728,\"./constants\":923}],928:[function(t,e,r){\"use strict\";var n=t(\"../heatmap/hover\");e.exports=function(t,e,r,i){return n(t,e,r,i,!0)}},{\"../heatmap/hover\":956}],929:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.supplyDefaults=t(\"./defaults\"),n.calc=t(\"./calc\"),n.plot=t(\"./plot\").plot,n.style=t(\"./style\"),n.colorbar=t(\"./colorbar\"),n.hoverPoints=t(\"./hover\"),n.moduleType=\"trace\",n.name=\"contour\",n.basePlotModule=t(\"../../plots/cartesian\"),n.categories=[\"cartesian\",\"2dMap\",\"contour\"],n.meta={},e.exports=n},{\"../../plots/cartesian\":782,\"./attributes\":920,\"./calc\":921,\"./colorbar\":922,\"./defaults\":925,\"./hover\":928,\"./plot\":932,\"./style\":933}],930:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../../components/colorscale\"),a=t(\"./end_plus\");e.exports=function(t){var e=t.contours,r=e.start,o=a(e),s=e.size||1,l=Math.floor((o-r)/s)+1,u=\"lines\"===e.coloring?0:1;isFinite(s)||(s=1,l=1);var c,h,f=t.colorscale,d=f.length,p=new Array(d),m=new Array(d);if(\"heatmap\"===e.coloring){for(t.zauto&&!1===t.autocontour&&(t.zmin=r-s/2,t.zmax=t.zmin+l*s),h=0;h<d;h++)c=f[h],p[h]=c[0]*(t.zmax-t.zmin)+t.zmin,m[h]=c[1];var v=n.extent([t.zmin,t.zmax,e.start,e.start+s*(l-1)]),g=v[t.zmin<t.zmax?0:1],y=v[t.zmin<t.zmax?1:0];g!==t.zmin&&(p.splice(0,0,g),m.splice(0,0,Range[0])),y!==t.zmax&&(p.push(y),m.push(m[m.length-1]))}else for(h=0;h<d;h++)c=f[h],p[h]=(c[0]*(l+u-1)-u/2)*s+r,m[h]=c[1];return i.makeColorScaleFunc({domain:p,range:m},{noNumericCheck:!0})}},{\"../../components/colorscale\":618,\"./end_plus\":926,d3:122}],931:[function(t,e,r){\"use strict\";function n(t,e){var r=(e[0][0]>t?0:1)+(e[0][1]>t?0:2)+(e[1][1]>t?0:4)+(e[1][0]>t?0:8);if(5===r||10===r){return t>(e[0][0]+e[0][1]+e[1][0]+e[1][1])/4?5===r?713:1114:5===r?104:208}return 15===r?0:r}var i=t(\"./constants\");e.exports=function(t){var e,r,a,o,s,l,u,c,h,f=t[0].z,d=f.length,p=f[0].length,m=2===d||2===p;for(r=0;r<d-1;r++)for(o=[],0===r&&(o=o.concat(i.BOTTOMSTART)),r===d-2&&(o=o.concat(i.TOPSTART)),e=0;e<p-1;e++)for(a=o.slice(),0===e&&(a=a.concat(i.LEFTSTART)),e===p-2&&(a=a.concat(i.RIGHTSTART)),s=e+\",\"+r,l=[[f[r][e],f[r][e+1]],[f[r+1][e],f[r+1][e+1]]],h=0;h<t.length;h++)c=t[h],(u=n(c.level,l))&&(c.crossings[s]=u,-1!==a.indexOf(u)&&(c.starts.push([e,r]),m&&-1!==a.indexOf(u,a.indexOf(u)+1)&&c.starts.push([e,r])))}},{\"./constants\":923}],932:[function(t,e,r){\"use strict\";function n(t,e,n){var s=n[0].trace,u=n[0].x,h=n[0].y,f=s.contours,d=s.uid,p=e.xaxis,m=e.yaxis,v=t._fullLayout,g=\"contour\"+d,_=i(f,e,n[0]);if(!0!==s.visible)return v._paper.selectAll(\".\"+g+\",.hm\"+d).remove(),void v._infolayer.selectAll(\".cb\"+d).remove();\"heatmap\"===f.coloring?(s.zauto&&!1===s.autocontour&&(s._input.zmin=s.zmin=f.start-f.size/2,s._input.zmax=s.zmax=s.zmin+_.length*f.size),y(t,e,[n])):(v._paper.selectAll(\".hm\"+d).remove(),v._infolayer.selectAll(\"g.rangeslider-container\").selectAll(\".hm\"+d).remove()),b(_),x(_);var w=p.c2p(u[0],!0),M=p.c2p(u[u.length-1],!0),k=m.c2p(h[0],!0),A=m.c2p(h[h.length-1],!0),T=[[w,A],[M,A],[M,k],[w,k]],S=r.makeContourGroup(e,n,g);a(S,T,f),o(S,_,T,f),l(S,_,t,n[0],f,T),c(S,e,v._clips,n[0],T)}function i(t,e,r){for(var n=t.size,i=[],a=_(t),o=t.start;o<a;o+=n)if(i.push({level:o,crossings:{},starts:[],edgepaths:[],paths:[],xaxis:e.xaxis,yaxis:e.yaxis,x:r.x,y:r.y,z:r.z,smoothing:r.trace.line.smoothing}),i.length>1e3){d.warn(\"Too many contours, clipping at 1000\",t);break}return i}function a(t,e,r){var n=t.selectAll(\"g.contourbg\").data([0]);n.enter().append(\"g\").classed(\"contourbg\",!0);var i=n.selectAll(\"path\").data(\"fill\"===r.coloring?[0]:[]);i.enter().append(\"path\"),i.exit().remove(),i.attr(\"d\",\"M\"+e.join(\"L\")+\"Z\").style(\"stroke\",\"none\")}function o(t,e,r,n){var i=t.selectAll(\"g.contourfill\").data([0]);i.enter().append(\"g\").classed(\"contourfill\",!0);var a=i.selectAll(\"path\").data(\"fill\"===n.coloring?e:[]);a.enter().append(\"path\"),a.exit().remove(),a.each(function(t){var e=s(t,r);e?f.select(this).attr(\"d\",e).style(\"stroke\",\"none\"):f.select(this).remove()})}function s(t,e){function r(t){return Math.abs(t[0]-e[2][0])<.01}for(var n,i,a,o,s,l,u=Math.min(t.z[0][0],t.z[0][1]),c=t.edgepaths.length||u<=t.level?\"\":\"M\"+e.join(\"L\")+\"Z\",h=0,f=t.edgepaths.map(function(t,e){return e}),m=!0;f.length;){for(l=p.smoothopen(t.edgepaths[h],t.smoothing),c+=m?l:l.replace(/^M/,\"L\"),f.splice(f.indexOf(h),1),n=t.edgepaths[h][t.edgepaths[h].length-1],o=-1,a=0;a<4;a++){if(!n){d.log(\"Missing end?\",h,t);break}for(!function(t){return Math.abs(t[1]-e[0][1])<.01}(n)||r(n)?!function(t){return Math.abs(t[0]-e[0][0])<.01}(n)?!function(t){return Math.abs(t[1]-e[2][1])<.01}(n)?r(n)&&(i=e[2]):i=e[3]:i=e[0]:i=e[1],s=0;s<t.edgepaths.length;s++){var v=t.edgepaths[s][0];Math.abs(n[0]-i[0])<.01?Math.abs(n[0]-v[0])<.01&&(v[1]-n[1])*(i[1]-v[1])>=0&&(i=v,o=s):Math.abs(n[1]-i[1])<.01?Math.abs(n[1]-v[1])<.01&&(v[0]-n[0])*(i[0]-v[0])>=0&&(i=v,o=s):d.log(\"endpt to newendpt is not vert. or horz.\",n,i,v)}if(n=i,o>=0)break;c+=\"L\"+i}if(o===t.edgepaths.length){d.log(\"unclosed perimeter path\");break}h=o,m=-1===f.indexOf(h),m&&(h=f[0],c+=\"Z\")}for(h=0;h<t.paths.length;h++)c+=p.smoothclosed(t.paths[h],t.smoothing);return c}function l(t,e,n,i,a,o){var s=t.selectAll(\"g.contourlines\").data([0]);s.enter().append(\"g\").classed(\"contourlines\",!0);var l=!1!==a.showlines,u=a.showlabels,c=l&&u,h=r.createLines(s,l||u,e),m=r.createLineClip(s,c,n._fullLayout._clips,i.trace.uid),v=t.selectAll(\"g.contourlabels\").data(u?[0]:[]);if(v.exit().remove(),v.enter().append(\"g\").classed(\"contourlabels\",!0),u){var g=[o],y=[];d.clearLocationCache();var b=r.labelFormatter(a,i.t.cb,n._fullLayout),x=p.tester.append(\"text\").attr(\"data-notex\",1).call(p.font,a.labelfont),_=e[0].xaxis._length,M=e[0].yaxis._length,k={left:Math.max(o[0][0],0),right:Math.min(o[2][0],_),top:Math.max(o[0][1],0),bottom:Math.min(o[2][1],M)};k.middle=(k.top+k.bottom)/2,\n", "k.center=(k.left+k.right)/2;var A=Math.sqrt(_*_+M*M),T=w.LABELDISTANCE*A/Math.max(1,e.length/w.LABELINCREASE);h.each(function(t){var e=r.calcTextOpts(t.level,b,x,n);f.select(this).selectAll(\"path\").each(function(){var t=this,n=d.getVisibleSegment(t,k,e.height/2);if(n&&!(n.len<(e.width+e.height)*w.LABELMIN))for(var i=Math.min(Math.ceil(n.len/T),w.LABELMAX),a=0;a<i;a++){var o=r.findBestTextLocation(t,n,e,y,k);if(!o)break;r.addLabelData(o,e,y,g)}})}),x.remove(),r.drawLabels(v,y,n,m,c?g:null)}u&&!l&&h.remove()}function u(t,e,r,n){var i=e.width/2,a=e.height/2,o=t.x,s=t.y,l=t.theta,u=Math.cos(l)*i,c=Math.sin(l)*i,h=(o>n.center?n.right-o:o-n.left)/(u+Math.abs(Math.sin(l)*a)),f=(s>n.middle?n.bottom-s:s-n.top)/(Math.abs(c)+Math.cos(l)*a);if(h<1||f<1)return 1/0;var p=M.EDGECOST*(1/(h-1)+1/(f-1));p+=M.ANGLECOST*l*l;for(var m=o-u,v=s-c,g=o+u,y=s+c,b=0;b<r.length;b++){var x=r[b],_=Math.cos(x.theta)*x.width/2,w=Math.sin(x.theta)*x.width/2,k=2*d.segmentDistance(m,v,g,y,x.x-_,x.y-w,x.x+_,x.y+w)/(e.height+x.height),A=x.level===e.level,T=A?M.SAMELEVELDISTANCE:1;if(k<=T)return 1/0;p+=M.NEIGHBORCOST*(A?M.SAMELEVELFACTOR:1)/(k-T)}return p}function c(t,e,r,n,i){var a=\"clip\"+n.trace.uid,o=r.selectAll(\"#\"+a).data(n.trace.connectgaps?[]:[0]);if(o.enter().append(\"clipPath\").classed(\"contourclip\",!0).attr(\"id\",a),o.exit().remove(),!1===n.trace.connectgaps){var l={level:.9,crossings:{},starts:[],edgepaths:[],paths:[],xaxis:e.xaxis,yaxis:e.yaxis,x:n.x,y:n.y,z:h(n),smoothing:0};b([l]),x([l]);var u=s(l,i),c=o.selectAll(\"path\").data([0]);c.enter().append(\"path\"),c.attr(\"d\",u)}else a=null;t.call(p.setClipUrl,a),e.plot.selectAll(\".hm\"+n.trace.uid).call(p.setClipUrl,a)}function h(t){var e,r,n=t.trace._emptypoints,i=[],a=t.z.length,o=t.z[0].length,s=[];for(e=0;e<o;e++)s.push(1);for(e=0;e<a;e++)i.push(s.slice());for(e=0;e<n.length;e++)r=n[e],i[r[0]][r[1]]=0;return t.zmask=i,i}var f=t(\"d3\"),d=t(\"../../lib\"),p=t(\"../../components/drawing\"),m=t(\"../../lib/svg_text_utils\"),v=t(\"../../plots/cartesian/axes\"),g=t(\"../../plots/cartesian/set_convert\"),y=t(\"../heatmap/plot\"),b=t(\"./make_crossings\"),x=t(\"./find_all_paths\"),_=t(\"./end_plus\"),w=t(\"./constants\"),M=w.LABELOPTIMIZER;r.plot=function(t,e,r){for(var i=0;i<r.length;i++)n(t,e,r[i])},r.makeContourGroup=function(t,e,r){var n=t.plot.select(\".maplayer\").selectAll(\"g.contour.\"+r).data(e);return n.enter().append(\"g\").classed(\"contour\",!0).classed(r,!0),n.exit().remove(),n},r.createLines=function(t,e,r){var n=r[0].smoothing,i=t.selectAll(\"g.contourlevel\").data(e?r:[]);if(i.exit().remove(),i.enter().append(\"g\").classed(\"contourlevel\",!0),e){var a=i.selectAll(\"path.openline\").data(function(t){return t.pedgepaths||t.edgepaths});a.exit().remove(),a.enter().append(\"path\").classed(\"openline\",!0),a.attr(\"d\",function(t){return p.smoothopen(t,n)}).style(\"stroke-miterlimit\",1).style(\"vector-effect\",\"non-scaling-stroke\");var o=i.selectAll(\"path.closedline\").data(function(t){return t.ppaths||t.paths});o.exit().remove(),o.enter().append(\"path\").classed(\"closedline\",!0),o.attr(\"d\",function(t){return p.smoothclosed(t,n)}).style(\"stroke-miterlimit\",1).style(\"vector-effect\",\"non-scaling-stroke\")}return i},r.createLineClip=function(t,e,r,n){var i=e?\"clipline\"+n:null,a=r.selectAll(\"#\"+i).data(e?[0]:[]);return a.exit().remove(),a.enter().append(\"clipPath\").classed(\"contourlineclip\",!0).attr(\"id\",i),p.setClipUrl(t,i),a},r.labelFormatter=function(t,e,r){if(t.labelformat)return f.format(t.labelformat);var n;return e?n=e.axis:(n={type:\"linear\",_separators:\".,\",_id:\"ycontour\",nticks:(t.end-t.start)/t.size,showexponent:\"all\",range:[t.start,t.end]},g(n,r),v.calcTicks(n),n._tmin=null,n._tmax=null),function(t){return v.tickText(n,t).text}},r.calcTextOpts=function(t,e,r,n){var i=e(t);r.text(i).call(m.convertToTspans,n);var a=p.bBox(r.node(),!0);return{text:i,width:a.width,height:a.height,level:t,dy:(a.top+a.bottom)/2}},r.findBestTextLocation=function(t,e,r,n,i){var a,o,s,l,c,h=r.width;e.isClosed?(o=e.len/M.INITIALSEARCHPOINTS,a=e.min+o/2,s=e.max):(o=(e.len-h)/(M.INITIALSEARCHPOINTS+1),a=e.min+o+h/2,s=e.max-(o+h)/2);for(var f=1/0,p=0;p<M.ITERATIONS;p++){for(var m=a;m<s;m+=o){var v=d.getTextLocation(t,e.total,m,h),g=u(v,r,n,i);g<f&&(f=g,c=v,l=m)}if(f>2*M.MAXCOST)break;p&&(o/=2),a=l-o/2,s=a+1.5*o}if(f<=M.MAXCOST)return c},r.addLabelData=function(t,e,r,n){var i=e.width/2,a=e.height/2,o=t.x,s=t.y,l=t.theta,u=Math.sin(l),c=Math.cos(l),h=i*c,f=a*u,d=i*u,p=-a*c,m=[[o-h-f,s-d-p],[o+h-f,s+d-p],[o+h+f,s+d+p],[o-h+f,s-d+p]];r.push({text:e.text,x:o,y:s,dy:e.dy,theta:l,level:e.level,width:e.width,height:e.height}),n.push(m)},r.drawLabels=function(t,e,r,n,i){var a=t.selectAll(\"text\").data(e,function(t){return t.text+\",\"+t.x+\",\"+t.y+\",\"+t.theta});if(a.exit().remove(),a.enter().append(\"text\").attr({\"data-notex\":1,\"text-anchor\":\"middle\"}).each(function(t){var e=t.x+Math.sin(t.theta)*t.dy,n=t.y-Math.cos(t.theta)*t.dy;f.select(this).text(t.text).attr({x:e,y:n,transform:\"rotate(\"+180*t.theta/Math.PI+\" \"+e+\" \"+n+\")\"}).call(m.convertToTspans,r)}),i){for(var o=\"\",s=0;s<i.length;s++)o+=\"M\"+i[s].join(\"L\")+\"Z\";var l=n.selectAll(\"path\").data([0]);l.enter().append(\"path\"),l.attr(\"d\",o)}}},{\"../../components/drawing\":628,\"../../lib\":728,\"../../lib/svg_text_utils\":750,\"../../plots/cartesian/axes\":772,\"../../plots/cartesian/set_convert\":789,\"../heatmap/plot\":961,\"./constants\":923,\"./end_plus\":926,\"./find_all_paths\":927,\"./make_crossings\":931,d3:122}],933:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../../components/drawing\"),a=t(\"../heatmap/style\"),o=t(\"./make_color_map\");e.exports=function(t){var e=n.select(t).selectAll(\"g.contour\");e.style(\"opacity\",function(t){return t.trace.opacity}),e.each(function(t){var e=n.select(this),r=t.trace,a=r.contours,s=r.line,l=a.size||1,u=a.start,c=\"constraint\"===a.type,h=!c&&\"lines\"===a.coloring,f=!c&&\"fill\"===a.coloring,d=h||f?o(r):null;e.selectAll(\"g.contourlevel\").each(function(t){n.select(this).selectAll(\"path\").call(i.lineGroupStyle,s.width,h?d(t.level):s.color,s.dash)});var p=a.labelfont;if(e.selectAll(\"g.contourlabels text\").each(function(t){i.font(n.select(this),{family:p.family,size:p.size,color:p.color||(h?d(t.level):s.color)})}),c)e.selectAll(\"g.contourfill path\").style(\"fill\",r.fillcolor);else if(f){var m;e.selectAll(\"g.contourfill path\").style(\"fill\",function(t){return void 0===m&&(m=t.level),d(t.level+.5*l)}),void 0===m&&(m=u),e.selectAll(\"g.contourbg path\").style(\"fill\",d(m-.5*l))}}),a(t)}},{\"../../components/drawing\":628,\"../heatmap/style\":962,\"./make_color_map\":930,d3:122}],934:[function(t,e,r){\"use strict\";var n=t(\"../../components/colorscale/defaults\"),i=t(\"../../lib\");e.exports=function(t,e,r,a,o,s){var l,u=r(\"contours.coloring\"),c=\"\";if(\"fill\"===u&&(l=r(\"contours.showlines\")),!1!==l&&(\"lines\"!==u&&(c=r(\"line.color\",o||\"#000\")),r(\"line.width\",void 0===s?.5:s),r(\"line.dash\")),r(\"line.smoothing\"),\"none\"!==u&&n(t,e,a,r,{prefix:\"\",cLetter:\"z\"}),r(\"contours.showlabels\")){var h=a.font;i.coerceFont(r,\"contours.labelfont\",{family:h.family,size:h.size,color:c}),r(\"contours.labelformat\")}}},{\"../../components/colorscale/defaults\":613,\"../../lib\":728}],935:[function(t,e,r){\"use strict\";var n=t(\"../heatmap/attributes\"),i=t(\"../contour/attributes\"),a=i.contours,o=t(\"../scatter/attributes\"),s=t(\"../../components/colorscale/attributes\"),l=t(\"../../components/colorbar/attributes\"),u=t(\"../../lib/extend\").extendFlat,c=o.line,h=t(\"./constants\");e.exports=u({},{carpet:{valType:\"string\",editType:\"calc\"},z:n.z,a:n.x,a0:n.x0,da:n.dx,b:n.y,b0:n.y0,db:n.dy,text:n.text,transpose:n.transpose,atype:n.xtype,btype:n.ytype,mode:{valType:\"flaglist\",flags:[\"lines\",\"fill\"],extras:[\"none\"],editType:\"calc\"},connectgaps:n.connectgaps,fillcolor:{valType:\"color\",editType:\"calc\"},autocontour:i.autocontour,ncontours:i.ncontours,contours:{type:{valType:\"enumerated\",values:[\"levels\",\"constraint\"],dflt:\"levels\",editType:\"calc\"},start:a.start,end:a.end,size:a.size,coloring:{valType:\"enumerated\",values:[\"fill\",\"lines\",\"none\"],dflt:\"fill\",editType:\"calc\"},showlines:a.showlines,showlabels:a.showlabels,labelfont:a.labelfont,labelformat:a.labelformat,operation:{valType:\"enumerated\",values:[].concat(h.INEQUALITY_OPS).concat(h.INTERVAL_OPS).concat(h.SET_OPS),dflt:\"=\",editType:\"calc\"},value:{valType:\"any\",dflt:0,editType:\"calc\"},editType:\"calc\"},line:{color:u({},c.color,{}),width:c.width,dash:c.dash,smoothing:u({},c.smoothing,{}),editType:\"plot\"}},s,{autocolorscale:u({},s.autocolorscale,{dflt:!1})},{colorbar:l})},{\"../../components/colorbar/attributes\":605,\"../../components/colorscale/attributes\":609,\"../../lib/extend\":717,\"../contour/attributes\":920,\"../heatmap/attributes\":948,\"../scatter/attributes\":1031,\"./constants\":938}],936:[function(t,e,r){\"use strict\";function n(t,e,r){var n={type:\"linear\",range:[t,e]};return o.autoTicks(n,(e-t)/(r||15)),n}function i(t,e){function r(t){A=e._input.zsmooth=e.zsmooth=!1,a.notifier(\"cannot fast-zsmooth: \"+t)}var n,i,o,s,g,y,b,x,_=e.carpetTrace,w=_.aaxis,M=_.baxis,k=l.traceIs(e,\"contour\"),A=k?\"best\":e.zsmooth;if(w._minDtick=0,M._minDtick=0,c(e)&&h(e,w,M,\"a\",\"b\",[\"z\"]),n=e.a?w.makeCalcdata(e,\"a\"):[],s=e.b?M.makeCalcdata(e,\"b\"):[],i=e.a0||0,o=e.da||1,g=e.b0||0,y=e.db||1,b=f(e.z,e.transpose),e._emptypoints=m(b),e._interpz=p(b,e._emptypoints,e._interpz),\"fast\"===A)if(\"log\"===w.type||\"log\"===M.type)r(\"log axis found\");else{if(n.length){var T=(n[n.length-1]-n[0])/(n.length-1),S=Math.abs(T/100);for(x=0;x<n.length-1;x++)if(Math.abs(n[x+1]-n[x]-T)>S){r(\"a scale is not linear\");break}}if(s.length&&\"fast\"===A){var E=(s[s.length-1]-s[0])/(s.length-1),L=Math.abs(E/100);for(x=0;x<s.length-1;x++)if(Math.abs(s[x+1]-s[x]-E)>L){r(\"b scale is not linear\");break}}}var C=d(b),I=\"scaled\"===e.xtype?\"\":n,z=v(e,I,i,o,C,w),D=\"scaled\"===e.ytype?\"\":s,P=v(e,D,g,y,b.length,M),O={a:z,b:P,z:b};return\"levels\"===e.contours.type&&u(e,b,\"\",\"z\"),[O]}var a=t(\"../../lib\"),o=t(\"../../plots/cartesian/axes\"),s=t(\"../../lib\").extendFlat,l=t(\"../../registry\"),u=t(\"../../components/colorscale/calc\"),c=t(\"../heatmap/has_columns\"),h=t(\"../heatmap/convert_column_xyz\"),f=t(\"../heatmap/clean_2d_array\"),d=t(\"../heatmap/max_row_length\"),p=t(\"../heatmap/interp2d\"),m=t(\"../heatmap/find_empties\"),v=t(\"../heatmap/make_bound_array\"),g=t(\"./defaults\"),y=t(\"../carpet/lookup_carpetid\");e.exports=function(t,e){var r=e.carpetTrace=y(t,e);if(r&&r.visible&&\"legendonly\"!==r.visible){if(!e.a||!e.b){var a=t.data[r.index],l=t.data[e.index];l.a||(l.a=a.a),l.b||(l.b=a.b),g(l,e,e._defaultColor,t._fullLayout)}var u=i(t,e),c=e.contours;if(!0===e.autocontour){var h=n(e.zmin,e.zmax,e.ncontours);c.size=h.dtick,c.start=o.tickFirst(h),h.range.reverse(),c.end=o.tickFirst(h),c.start===e.zmin&&(c.start+=c.size),c.end===e.zmax&&(c.end-=c.size),c.start>c.end&&(c.start=c.end=(c.start+c.end)/2),e._input.contours=s({},c)}else{var f=c.start,d=c.end,p=e._input.contours;if(f>d&&(c.start=p.start=d,d=c.end=p.end=f,f=c.start),!(c.size>0)){var m;m=f===d?1:n(f,d,e.ncontours).dtick,p.size=c.size=m}}return u}}},{\"../../components/colorscale/calc\":610,\"../../lib\":728,\"../../plots/cartesian/axes\":772,\"../../registry\":846,\"../carpet/lookup_carpetid\":903,\"../heatmap/clean_2d_array\":950,\"../heatmap/convert_column_xyz\":952,\"../heatmap/find_empties\":954,\"../heatmap/has_columns\":955,\"../heatmap/interp2d\":958,\"../heatmap/make_bound_array\":959,\"../heatmap/max_row_length\":960,\"./defaults\":942}],937:[function(t,e,r){\"use strict\";e.exports=function(t,e,r,n){var i,a,o,s=n.a.length,l=n.b.length,u=n.z,c=-1/0,h=1/0;for(i=0;i<l;i++)h=Math.min(h,u[i][0]),h=Math.min(h,u[i][s-1]),c=Math.max(c,u[i][0]),c=Math.max(c,u[i][s-1]);for(i=1;i<s-1;i++)h=Math.min(h,u[0][i]),h=Math.min(h,u[l-1][i]),c=Math.max(c,u[0][i]),c=Math.max(c,u[l-1][i]);switch(e){case\">\":case\">=\":n.contours.value>c&&(t[0].prefixBoundary=!0);break;case\"<\":case\"<=\":n.contours.value<h&&(t[0].prefixBoundary=!0);break;case\"[]\":case\"()\":a=Math.min.apply(null,n.contours.value),o=Math.max.apply(null,n.contours.value),o<h&&(t[0].prefixBoundary=!0),a>c&&(t[0].prefixBoundary=!0);break;case\"][\":case\")(\":a=Math.min.apply(null,n.contours.value),o=Math.max.apply(null,n.contours.value),a<h&&o>c&&(t[0].prefixBoundary=!0)}}},{}],938:[function(t,e,r){\"use strict\";e.exports={INEQUALITY_OPS:[\"=\",\"<\",\">=\",\">\",\"<=\"],INTERVAL_OPS:[\"[]\",\"()\",\"[)\",\"(]\",\"][\",\")(\",\"](\",\")[\"],SET_OPS:[\"{}\",\"}{\"]}},{}],939:[function(t,e,r){\"use strict\";function n(t,e){function r(t){return s(t)?+t:null}var n,i=Array.isArray(e);return-1!==o.INEQUALITY_OPS.indexOf(t)?n=r(i?e[0]:e):-1!==o.INTERVAL_OPS.indexOf(t)?n=i?[r(e[0]),r(e[1])]:[r(e),r(e)]:-1!==o.SET_OPS.indexOf(t)&&(n=i?e.map(r):[r(e)]),n}function i(t){return function(e){e=n(t,e);var r=Math.min(e[0],e[1]),i=Math.max(e[0],e[1]);return{start:r,end:i,size:i-r}}}function a(t){return function(e){return e=n(t,e),{start:e,end:1/0,size:1/0}}}var o=t(\"./constants\"),s=t(\"fast-isnumeric\");e.exports[\"[]\"]=i(\"[]\"),e.exports[\"()\"]=i(\"()\"),e.exports[\"[)\"]=i(\"[)\"),e.exports[\"(]\"]=i(\"(]\"),e.exports[\"][\"]=i(\"][\"),e.exports[\")(\"]=i(\")(\"),e.exports[\")[\"]=i(\")[\"),e.exports[\"](\"]=i(\"](\"),e.exports[\">\"]=a(\">\"),e.exports[\">=\"]=a(\">=\"),e.exports[\"<\"]=a(\"<\"),e.exports[\"<=\"]=a(\"<=\"),e.exports[\"=\"]=a(\"=\")},{\"./constants\":938,\"fast-isnumeric\":131}],940:[function(t,e,r){\"use strict\";var n=t(\"./constraint_mapping\"),i=t(\"fast-isnumeric\");e.exports=function(t,e){var r;-1===[\"=\",\"<\",\"<=\",\">\",\">=\"].indexOf(e.operation)?(t(\"contours.value\",[0,1]),Array.isArray(e.value)?e.value.length>2?e.value=e.value.slice(2):0===e.length?e.value=[0,1]:e.length<2?(r=parseFloat(e.value[0]),e.value=[r,r+1]):e.value=[parseFloat(e.value[0]),parseFloat(e.value[1])]:i(e.value)&&(r=parseFloat(e.value),e.value=[r,r+1])):(t(\"contours.value\",0),i(e.value)||(Array.isArray(e.value)?e.value=parseFloat(e.value[0]):e.value=0));var a=n[e.operation](e.value);e.start=a.start,e.end=a.end,e.size=a.size}},{\"./constraint_mapping\":939,\"fast-isnumeric\":131}],941:[function(t,e,r){\"use strict\";var n=t(\"../../lib\");e.exports=function(t,e){var r,i,a,o=function(t){return t.reverse()},s=function(t){return t};switch(e){case\"][\":case\")[\":case\"](\":case\")(\":var l=o;o=s,s=l;case\"[]\":case\"[)\":case\"(]\":case\"()\":if(2!==t.length)return void n.warn(\"Contour data invalid for the specified inequality range operation.\");for(i=t[0],a=t[1],r=0;r<i.edgepaths.length;r++)i.edgepaths[r]=o(i.edgepaths[r]);for(r=0;r<i.paths.length;r++)i.paths[r]=o(i.paths[r]);for(;a.edgepaths.length;)i.edgepaths.push(s(a.edgepaths.shift()));for(;a.paths.length;)i.paths.push(s(a.paths.shift()));t.pop();break;case\">=\":case\">\":if(1!==t.length)return void n.warn(\"Contour data invalid for the specified inequality operation.\");for(i=t[0],r=0;r<i.edgepaths.length;r++)i.edgepaths[r]=o(i.edgepaths[r]);for(r=0;r<i.paths.length;r++)i.paths[r]=o(i.paths[r])}}},{\"../../lib\":728}],942:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../heatmap/xyz_defaults\"),a=t(\"./attributes\"),o=t(\"../contour/style_defaults\"),s=t(\"../scatter/fillcolor_defaults\"),l=t(\"../../plots/attributes\"),u=t(\"./constraint_value_defaults\"),c=t(\"../../components/color\").addOpacity;e.exports=function(t,e,r,h){function f(r,i){return n.coerce(t,e,a,r,i)}if(f(\"carpet\"),t.a&&t.b){var d,p,m,v,g;if(!i(t,e,f,h,\"a\",\"b\"))return void(e.visible=!1);f(\"text\"),f(\"contours.type\");var y=e.contours;if(\"constraint\"===y.type){f(\"contours.operation\"),u(f,y),n.coerce(t,e,l,\"showlegend\",!0),f(\"contours.coloring\",\"=\"===y.operation?\"lines\":\"fill\"),f(\"contours.showlines\",!0),\"=\"===y.operation&&(y.coloring=\"lines\"),s(t,e,r,f);var b=e.fillcolor?c(e.fillcolor,1):r;o(t,e,f,h,b,2),\"=\"===y.operation&&(f(\"line.color\",r),\"fill\"===y.coloring&&(y.coloring=\"lines\"),\"lines\"===y.coloring&&delete e.fillcolor),delete e.showscale,delete e.autocontour,delete e.autocolorscale,delete e.colorscale,delete e.ncontours,delete e.colorbar,e.line&&(delete e.line.autocolorscale,delete e.line.colorscale,delete e.line.mincolor,delete e.line.maxcolor)}else n.coerce(t,e,l,\"showlegend\",!1),p=n.coerce2(t,e,a,\"contours.start\"),m=n.coerce2(t,e,a,\"contours.end\"),d=f(\"contours.size\"),f(\"contours.coloring\"),v=!1===p||!1===m,g=v?e.autocontour=!0:f(\"autocontour\",!1),!g&&d||f(\"ncontours\"),o(t,e,f,h),delete e.value,delete e.operation}else e._defaultColor=r}},{\"../../components/color\":604,\"../../lib\":728,\"../../plots/attributes\":770,\"../contour/style_defaults\":934,\"../heatmap/xyz_defaults\":963,\"../scatter/fillcolor_defaults\":1039,\"./attributes\":935,\"./constraint_value_defaults\":940}],943:[function(t,e,r){\"use strict\";var n=t(\"../../lib\");e.exports=function(t,e,r){for(var i=t.size,a=[],o=r.trace.carpetTrace,s=t.start;s<t.end+i/10;s+=i)if(a.push({level:s,crossings:{},starts:[],edgepaths:[],paths:[],xaxis:o.aaxis,yaxis:o.baxis,x:r.a,y:r.b,z:r.z,smoothing:r.trace.line.smoothing}),a.length>1e3){n.warn(\"Too many contours, clipping at 1000\",t);break}return a}},{\"../../lib\":728}],944:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.supplyDefaults=t(\"./defaults\"),n.colorbar=t(\"../contour/colorbar\"),n.calc=t(\"./calc\"),n.plot=t(\"./plot\"),n.style=t(\"../contour/style\"),n.moduleType=\"trace\",n.name=\"contourcarpet\",n.basePlotModule=t(\"../../plots/cartesian\"),n.categories=[\"cartesian\",\"carpet\",\"contour\",\"symbols\",\"showLegend\",\"hasLines\",\"carpetDependent\"],n.meta={},e.exports=n},{\"../../plots/cartesian\":782,\"../contour/colorbar\":922,\"../contour/style\":933,\"./attributes\":935,\"./calc\":936,\"./defaults\":942,\"./plot\":947}],945:[function(t,e,r){\"use strict\";var n=t(\"../../components/drawing\"),i=t(\"../carpet/axis_aligned_line\"),a=t(\"../../lib\");e.exports=function(t,e,r,o,s,l,u,c){function h(t){return Math.abs(t[1]-r[0][1])<S}function f(t){return Math.abs(t[1]-r[2][1])<S}function d(t){return Math.abs(t[0]-r[0][0])<T}function p(t){return Math.abs(t[0]-r[2][0])<T}function m(t,e){var r,n,a,o,m=\"\";for(h(t)&&!p(t)||f(t)&&!d(t)?(o=s.aaxis,a=i(s,l,[t[0],e[0]],.5*(t[1]+e[1]))):(o=s.baxis,a=i(s,l,.5*(t[0]+e[0]),[t[1],e[1]])),r=1;r<a.length;r++)for(m+=o.smoothing?\"C\":\"L\",n=0;n<a[r].length;n++){var v=a[r][n];m+=[u.c2p(v[0]),c.c2p(v[1])]+\" \"}return m}var v,g,y,b,x,_,w,M=\"\",k=e.edgepaths.map(function(t,e){return e}),A=!0,T=1e-4*Math.abs(r[0][0]-r[2][0]),S=1e-4*Math.abs(r[0][1]-r[2][1]);for(v=0,g=null;k.length;){var E=e.edgepaths[v][0];for(g&&(M+=m(g,E)),w=n.smoothopen(e.edgepaths[v].map(o),e.smoothing),M+=A?w:w.replace(/^M/,\"L\"),k.splice(k.indexOf(v),1),g=e.edgepaths[v][e.edgepaths[v].length-1],x=-1,b=0;b<4;b++){if(!g){a.log(\"Missing end?\",v,e);break}for(h(g)&&!p(g)?y=r[1]:d(g)?y=r[0]:f(g)?y=r[3]:p(g)&&(y=r[2]),_=0;_<e.edgepaths.length;_++){var L=e.edgepaths[_][0];Math.abs(g[0]-y[0])<T?Math.abs(g[0]-L[0])<T&&(L[1]-g[1])*(y[1]-L[1])>=0&&(y=L,x=_):Math.abs(g[1]-y[1])<S?Math.abs(g[1]-L[1])<S&&(L[0]-g[0])*(y[0]-L[0])>=0&&(y=L,x=_):a.log(\"endpt to newendpt is not vert. or horz.\",g,y,L)}if(x>=0)break;M+=m(g,y),g=y}if(x===e.edgepaths.length){a.log(\"unclosed perimeter path\");break}v=x,A=-1===k.indexOf(v),A&&(v=k[0],M+=m(g,y)+\"Z\",g=null)}for(v=0;v<e.paths.length;v++)M+=n.smoothclosed(e.paths[v].map(o),e.smoothing);return M}},{\"../../components/drawing\":628,\"../../lib\":728,\"../carpet/axis_aligned_line\":886}],946:[function(t,e,r){\"use strict\";e.exports=function(t,e){var r,n,i,a,o,s,l,u,c;for(r=0;r<t.length;r++){for(a=t[r],o=a.pedgepaths=[],s=a.ppaths=[],n=0;n<a.edgepaths.length;n++){for(c=a.edgepaths[n],l=[],i=0;i<c.length;i++)l[i]=e(c[i]);o.push(l)}for(n=0;n<a.paths.length;n++){for(c=a.paths[n],u=[],i=0;i<c.length;i++)u[i]=e(c[i]);s.push(u)}}}},{}],947:[function(t,e,r){\"use strict\";function n(t,e,r){function n(t){var e=o.ab2xy(t[0],t[1],!0);return[_.c2p(e[0]),T.c2p(e[1])]}var a=r[0].trace,o=a.carpetTrace=k(t,a),s=t.calcdata[o.index][0];if(o.visible&&\"legendonly\"!==o.visible){var l=r[0].a,h=r[0].b,m=a.contours,b=a.uid,_=e.xaxis,T=e.yaxis,S=t._fullLayout,E=\"contour\"+b,L=w(m,e,r[0]),C=\"constraint\"===a.contours.type;if(!0!==a.visible)return void S._infolayer.selectAll(\".cb\"+b).remove();var I=[[l[0],h[h.length-1]],[l[l.length-1],h[h.length-1]],[l[l.length-1],h[0]],[l[0],h[0]]];v(L);var z=1e-8*(l[l.length-1]-l[0]),D=1e-8*(h[h.length-1]-h[0]);g(L,z,D),\"constraint\"===a.contours.type&&(x(L,a.contours.operation),A(L,a.contours.operation,I,a)),M(L,n);var P,O,R,F,j=y.makeContourGroup(e,r,E),N=[];for(F=s.clipsegments.length-1;F>=0;F--)P=s.clipsegments[F],O=f([],P.x,_.c2p),R=f([],P.y,T.c2p),O.reverse(),R.reverse(),N.push(d(O,R,P.bicubic));var B=\"M\"+N.join(\"L\")+\"Z\";u(j,s.clipsegments,_,T,C,m.coloring),c(a,j,_,T,L,I,n,o,s,m.coloring,B),i(j,L,t,r[0],m,e,o),p.setClipUrl(j,o._clipPathId)}}function i(t,e,r,n,i,o,s){var l=t.selectAll(\"g.contourlines\").data([0]);l.enter().append(\"g\").classed(\"contourlines\",!0);var u=!1!==i.showlines,c=i.showlabels,f=u&&c,d=y.createLines(l,u||c,e),v=y.createLineClip(l,f,r._fullLayout._defs,n.trace.uid),g=t.selectAll(\"g.contourlabels\").data(c?[0]:[]);if(g.exit().remove(),g.enter().append(\"g\").classed(\"contourlabels\",!0),c){var x=o.xaxis,_=o.yaxis,w=x._length,M=_._length,k=[[[0,0],[w,0],[w,M],[0,M]]],A=[];m.clearLocationCache();var T=y.labelFormatter(i,n.t.cb,r._fullLayout),S=p.tester.append(\"text\").attr(\"data-notex\",1).call(p.font,i.labelfont),E={left:0,right:w,center:w/2,top:0,bottom:M,middle:M/2},L=Math.sqrt(w*w+M*M),C=b.LABELDISTANCE*L/Math.max(1,e.length/b.LABELINCREASE);d.each(function(t){var e=y.calcTextOpts(t.level,T,S,r);h.select(this).selectAll(\"path\").each(function(r){var n=this,i=m.getVisibleSegment(n,E,e.height/2);if(i&&(a(n,r,t,i,s,e.height),!(i.len<(e.width+e.height)*b.LABELMIN)))for(var o=Math.min(Math.ceil(i.len/C),b.LABELMAX),l=0;l<o;l++){var u=y.findBestTextLocation(n,i,e,A,E);if(!u)break;y.addLabelData(u,e,A,k)}})}),S.remove(),y.drawLabels(g,A,r,v,f?k:null)}c&&!u&&d.remove()}function a(t,e,r,n,i,a){function u(t,e){var r,n=0;return(Math.abs(t[0]-f)<.1||Math.abs(t[0]-d)<.1)&&(r=s(i.dxydb_rough(t[0],t[1],.1)),n=Math.max(n,a*l(e,r)/2)),(Math.abs(t[1]-p)<.1||Math.abs(t[1]-m)<.1)&&(r=s(i.dxyda_rough(t[0],t[1],.1)),n=Math.max(n,a*l(e,r)/2)),n}for(var c,h=0;h<r.pedgepaths.length;h++)e===r.pedgepaths[h]&&(c=r.edgepaths[h]);if(c){var f=i.a[0],d=i.a[i.a.length-1],p=i.b[0],m=i.b[i.b.length-1],v=o(t,0,1),g=o(t,n.total,n.total-1),y=u(c[0],v),b=n.total-u(c[c.length-1],g);n.min<y&&(n.min=y),n.max>b&&(n.max=b),n.len=n.max-n.min}}function o(t,e,r){var n=t.getPointAtLength(e),i=t.getPointAtLength(r),a=i.x-n.x,o=i.y-n.y,s=Math.sqrt(a*a+o*o);return[a/s,o/s]}function s(t){var e=Math.sqrt(t[0]*t[0]+t[1]*t[1]);return[t[0]/e,t[1]/e]}function l(t,e){var r=Math.abs(t[0]*e[0]+t[1]*e[1]);return Math.sqrt(1-r*r)/r}function u(t,e,r,n,i,a){var o,s,l,u,c=t.selectAll(\"g.contourbg\").data([0]);c.enter().append(\"g\").classed(\"contourbg\",!0);var h=c.selectAll(\"path\").data(\"fill\"!==a||i?[]:[0]);h.enter().append(\"path\"),h.exit().remove();var p=[];for(u=0;u<e.length;u++)o=e[u],s=f([],o.x,r.c2p),l=f([],o.y,n.c2p),p.push(d(s,l,o.bicubic));h.attr(\"d\",\"M\"+p.join(\"L\")+\"Z\").style(\"stroke\",\"none\")}function c(t,e,r,n,i,a,o,s,l,u,c){var f=e.selectAll(\"g.contourfill\").data([0]);f.enter().append(\"g\").classed(\"contourfill\",!0);var d=f.selectAll(\"path\").data(\"fill\"===u?i:[]);d.enter().append(\"path\"),d.exit().remove(),d.each(function(e){var i=_(t,e,a,o,s,l,r,n);e.prefixBoundary&&(i=c+i),i?h.select(this).attr(\"d\",i).style(\"stroke\",\"none\"):h.select(this).remove()})}var h=t(\"d3\"),f=t(\"../carpet/map_1d_array\"),d=t(\"../carpet/makepath\"),p=t(\"../../components/drawing\"),m=t(\"../../lib\"),v=t(\"../contour/make_crossings\"),g=t(\"../contour/find_all_paths\"),y=t(\"../contour/plot\"),b=t(\"../contour/constants\"),x=t(\"./convert_to_constraints\"),_=t(\"./join_all_paths\"),w=t(\"./empty_pathinfo\"),M=t(\"./map_pathinfo\"),k=t(\"../carpet/lookup_carpetid\"),A=t(\"./close_boundaries\");e.exports=function(t,e,r){for(var i=0;i<r.length;i++)n(t,e,r[i])}},{\"../../components/drawing\":628,\"../../lib\":728,\"../carpet/lookup_carpetid\":903,\"../carpet/makepath\":904,\"../carpet/map_1d_array\":905,\"../contour/constants\":923,\"../contour/find_all_paths\":927,\"../contour/make_crossings\":931,\"../contour/plot\":932,\"./close_boundaries\":937,\"./convert_to_constraints\":941,\"./empty_pathinfo\":943,\"./join_all_paths\":945,\"./map_pathinfo\":946,d3:122}],948:[function(t,e,r){\"use strict\";var n=t(\"../scatter/attributes\"),i=t(\"../../components/colorscale/attributes\"),a=t(\"../../components/colorbar/attributes\"),o=t(\"../../lib/extend\").extendFlat;e.exports=o({},{z:{valType:\"data_array\",editType:\"calc\"},x:o({},n.x,{impliedEdits:{xtype:\"array\"}}),x0:o({},n.x0,{impliedEdits:{xtype:\"scaled\"}}),dx:o({},n.dx,{impliedEdits:{xtype:\"scaled\"}}),y:o({},n.y,{impliedEdits:{ytype:\"array\"}}),y0:o({},n.y0,{impliedEdits:{ytype:\"scaled\"}}),dy:o({},n.dy,{impliedEdits:{ytype:\"scaled\"}}),text:{valType:\"data_array\",editType:\"calc\"},transpose:{valType:\"boolean\",dflt:!1,editType:\"calc\"},xtype:{valType:\"enumerated\",values:[\"array\",\"scaled\"],editType:\"calc+clearAxisTypes\"},ytype:{valType:\"enumerated\",values:[\"array\",\"scaled\"],editType:\"calc+clearAxisTypes\"},zsmooth:{valType:\"enumerated\",values:[\"fast\",\"best\",!1],dflt:!1,editType:\"calc\"},connectgaps:{valType:\"boolean\",dflt:!1,editType:\"calc\"},xgap:{valType:\"number\",dflt:0,min:0,editType:\"plot\"},ygap:{valType:\"number\",dflt:0,min:0,editType:\"plot\"}},i,{autocolorscale:o({},i.autocolorscale,{dflt:!1})},{colorbar:a})},{\"../../components/colorbar/attributes\":605,\"../../components/colorscale/attributes\":609,\"../../lib/extend\":717,\"../scatter/attributes\":1031}],949:[function(t,e,r){\"use strict\";var n=t(\"../../registry\"),i=t(\"../../lib\"),a=t(\"../../plots/cartesian/axes\"),o=t(\"../histogram2d/calc\"),s=t(\"../../components/colorscale/calc\"),l=t(\"./has_columns\"),u=t(\"./convert_column_xyz\"),c=t(\"./max_row_length\"),h=t(\"./clean_2d_array\"),f=t(\"./interp2d\"),d=t(\"./find_empties\"),p=t(\"./make_bound_array\");e.exports=function(t,e){function r(t){E=e._input.zsmooth=e.zsmooth=!1,i.notifier(\"cannot fast-zsmooth: \"+t)}var m,v,g,y,b,x,_,w,M=a.getFromId(t,e.xaxis||\"x\"),k=a.getFromId(t,e.yaxis||\"y\"),A=n.traceIs(e,\"contour\"),T=n.traceIs(e,\"histogram\"),S=n.traceIs(e,\"gl2d\"),E=A?\"best\":e.zsmooth;if(M._minDtick=0,k._minDtick=0,T){var L=o(t,e);m=L.x,v=L.x0,g=L.dx,y=L.y,b=L.y0,x=L.dy,_=L.z}else l(e)?(u(e,M,k,\"x\",\"y\",[\"z\"]),m=e.x,y=e.y):(m=e.x?M.makeCalcdata(e,\"x\"):[],y=e.y?k.makeCalcdata(e,\"y\"):[]),v=e.x0||0,g=e.dx||1,b=e.y0||0,x=e.dy||1,_=h(e.z,e.transpose),(A||e.connectgaps)&&(e._emptypoints=d(_),e._interpz=f(_,e._emptypoints,e._interpz));if(\"fast\"===E)if(\"log\"===M.type||\"log\"===k.type)r(\"log axis found\");else if(!T){if(m.length){var C=(m[m.length-1]-m[0])/(m.length-1),I=Math.abs(C/100);for(w=0;w<m.length-1;w++)if(Math.abs(m[w+1]-m[w]-C)>I){r(\"x scale is not linear\");break}}if(y.length&&\"fast\"===E){var z=(y[y.length-1]-y[0])/(y.length-1),D=Math.abs(z/100);for(w=0;w<y.length-1;w++)if(Math.abs(y[w+1]-y[w]-z)>D){r(\"y scale is not linear\");break}}}var P=c(_),O=\"scaled\"===e.xtype?\"\":m,R=p(e,O,v,g,P,M),F=\"scaled\"===e.ytype?\"\":y,j=p(e,F,b,x,_.length,k);S||(a.expand(M,R),a.expand(k,j));var N={x:R,y:j,z:_,text:e.text};if(s(e,_,\"\",\"z\"),A&&e.contours&&\"heatmap\"===e.contours.coloring){var B={type:\"contour\"===e.type?\"heatmap\":\"histogram2d\",xcalendar:e.xcalendar,ycalendar:e.ycalendar};N.xfill=p(B,O,v,g,P,M),N.yfill=p(B,F,b,x,_.length,k)}return[N]}},{\"../../components/colorscale/calc\":610,\"../../lib\":728,\"../../plots/cartesian/axes\":772,\"../../registry\":846,\"../histogram2d/calc\":977,\"./clean_2d_array\":950,\"./convert_column_xyz\":952,\"./find_empties\":954,\"./has_columns\":955,\"./interp2d\":958,\"./make_bound_array\":959,\"./max_row_length\":960}],950:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\");e.exports=function(t,e){var r,i,a,o,s,l;if(e){for(r=0,s=0;s<t.length;s++)r=Math.max(r,t[s].length);if(0===r)return!1;a=function(t){return t.length},o=function(t,e,r){return t[r][e]}}else r=t.length,a=function(t,e){return t[e].length},o=function(t,e,r){return t[e][r]};var u=new Array(r);for(s=0;s<r;s++)for(i=a(t,s),u[s]=new Array(i),l=0;l<i;l++)u[s][l]=function(t){if(n(t))return+t}(o(t,s,l));return u}},{\"fast-isnumeric\":131}],951:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../../lib\"),a=t(\"../../plots/plots\"),o=t(\"../../components/colorscale\"),s=t(\"../../components/colorbar/draw\");e.exports=function(t,e){var r=e[0].trace,l=\"cb\"+r.uid,u=r.zmin,c=r.zmax;if(n(u)||(u=i.aggNums(Math.min,null,r.z)),n(c)||(c=i.aggNums(Math.max,null,r.z)),t._fullLayout._infolayer.selectAll(\".\"+l).remove(),!r.showscale)return void a.autoMargin(t,l);var h=e[0].t.cb=s(t,l),f=o.makeColorScaleFunc(o.extractScale(r.colorscale,u,c),{noNumericCheck:!0});h.fillcolor(f).filllevels({start:u,end:c,size:(c-u)/254}).options(r.colorbar)()}},{\"../../components/colorbar/draw\":607,\"../../components/colorscale\":618,\"../../lib\":728,\"../../plots/plots\":831,\"fast-isnumeric\":131}],952:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../constants/numerical\").BADNUM;e.exports=function(t,e,r,a,o,s){a=a||\"x\",o=o||\"y\",s=s||[\"z\"];var l,u,c,h,f,d=t[a].slice(),p=t[o].slice(),m=t.text,v=Math.min(d.length,p.length),g=void 0!==m&&!Array.isArray(m[0]),y=t[a+\"calendar\"],b=t[o+\"calendar\"];for(l=0;l<s.length;l++)(c=t[s[l]])&&(v=Math.min(v,c.length));for(v<d.length&&(d=d.slice(0,v)),v<p.length&&(p=p.slice(0,v)),l=0;l<v;l++)d[l]=e.d2c(d[l],0,y),p[l]=r.d2c(p[l],0,b);var x=n.distinctVals(d),_=x.vals,w=n.distinctVals(p),M=w.vals,k=[];for(l=0;l<s.length;l++)k[l]=n.init2dArray(M.length,_.length);var A,T,S;for(g&&(S=n.init2dArray(M.length,_.length)),l=0;l<v;l++)if(d[l]!==i&&p[l]!==i){for(A=n.findBin(d[l]+x.minDiff/2,_),T=n.findBin(p[l]+w.minDiff/2,M),u=0;u<s.length;u++)f=s[u],c=t[f],h=k[u],h[T][A]=c[l];g&&(S[T][A]=m[l])}for(t[a]=_,t[o]=M,u=0;u<s.length;u++)t[s[u]]=k[u];g&&(t.text=S)}},{\"../../constants/numerical\":707,\"../../lib\":728}],953:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"./has_columns\"),a=t(\"./xyz_defaults\"),o=t(\"../../components/colorscale/defaults\"),s=t(\"./attributes\");e.exports=function(t,e,r,l){function u(r,i){return n.coerce(t,e,s,r,i)}if(!a(t,e,u,l))return void(e.visible=!1);u(\"text\"),!1===u(\"zsmooth\")&&(u(\"xgap\"),u(\"ygap\")),u(\"connectgaps\",i(e)&&!1!==e.zsmooth),o(t,e,l,u,{prefix:\"\",cLetter:\"z\"})}},{\"../../components/colorscale/defaults\":613,\"../../lib\":728,\"./attributes\":948,\"./has_columns\":955,\"./xyz_defaults\":963}],954:[function(t,e,r){\"use strict\";var n=t(\"./max_row_length\");e.exports=function(t){var e,r,i,a,o,s,l,u,c=[],h={},f=[],d=t[0],p=[],m=[0,0,0],v=n(t);for(r=0;r<t.length;r++)for(e=p,p=d,d=t[r+1]||[],i=0;i<v;i++)void 0===p[i]&&(s=(void 0!==p[i-1]?1:0)+(void 0!==p[i+1]?1:0)+(void 0!==e[i]?1:0)+(void 0!==d[i]?1:0),s?(0===r&&s++,0===i&&s++,r===t.length-1&&s++,i===p.length-1&&s++,s<4&&(h[[r,i]]=[r,i,s]),c.push([r,i,s])):f.push([r,i]));for(;f.length;){for(l={},u=!1,o=f.length-1;o>=0;o--)a=f[o],r=a[0],i=a[1],(s=((h[[r-1,i]]||m)[2]+(h[[r+1,i]]||m)[2]+(h[[r,i-1]]||m)[2]+(h[[r,i+1]]||m)[2])/20)&&(l[a]=[r,i,s],f.splice(o,1),u=!0);if(!u)throw\"findEmpties iterated with no new neighbors\";for(a in l)h[a]=l[a],c.push(l[a])}return c.sort(function(t,e){return e[2]-t[2]})}},{\"./max_row_length\":960}],955:[function(t,e,r){\"use strict\";e.exports=function(t){return!Array.isArray(t.z[0])}},{}],956:[function(t,e,r){\"use strict\";var n=t(\"../../components/fx\"),i=t(\"../../lib\"),a=n.constants.MAXDIST;e.exports=function(t,e,r,o,s){if(!(t.distance<a)){var l,u,c,h,f=t.cd[0],d=f.trace,p=t.xa,m=t.ya,v=f.x,g=f.y,y=f.z,b=f.zmask,x=v,_=g;if(!1!==t.index){try{c=Math.round(t.index[1]),h=Math.round(t.index[0])}catch(e){return void i.error(\"Error hovering on heatmap, pointNumber must be [row,col], found:\",t.index)}if(c<0||c>=y[0].length||h<0||h>y.length)return}else{if(n.inbox(e-v[0],e-v[v.length-1])>a||n.inbox(r-g[0],r-g[g.length-1])>a)return;if(s){var w;for(x=[2*v[0]-v[1]],w=1;w<v.length;w++)x.push((v[w]+v[w-1])/2);for(x.push([2*v[v.length-1]-v[v.length-2]]),_=[2*g[0]-g[1]],w=1;w<g.length;w++)_.push((g[w]+g[w-1])/2);_.push([2*g[g.length-1]-g[g.length-2]])}c=Math.max(0,Math.min(x.length-2,i.findBin(e,x))),h=Math.max(0,Math.min(_.length-2,i.findBin(r,_)))}var M=p.c2p(v[c]),k=p.c2p(v[c+1]),A=m.c2p(g[h]),T=m.c2p(g[h+1]);s?(k=M,l=v[c],T=A,u=g[h]):(l=(v[c]+v[c+1])/2,u=(g[h]+g[h+1])/2,d.zsmooth&&(M=k=(M+k)/2,A=T=(A+T)/2));var S=y[h][c];b&&!b[h][c]&&(S=void 0);var E;return Array.isArray(f.text)&&Array.isArray(f.text[h])&&(E=f.text[h][c]),[i.extendFlat(t,{\n", "index:[h,c],distance:a+10,x0:M,x1:k,y0:A,y1:T,xLabelVal:l,yLabelVal:u,zLabelVal:S,text:E})]}}},{\"../../components/fx\":645,\"../../lib\":728}],957:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.supplyDefaults=t(\"./defaults\"),n.calc=t(\"./calc\"),n.plot=t(\"./plot\"),n.colorbar=t(\"./colorbar\"),n.style=t(\"./style\"),n.hoverPoints=t(\"./hover\"),n.moduleType=\"trace\",n.name=\"heatmap\",n.basePlotModule=t(\"../../plots/cartesian\"),n.categories=[\"cartesian\",\"2dMap\"],n.meta={},e.exports=n},{\"../../plots/cartesian\":782,\"./attributes\":948,\"./calc\":949,\"./colorbar\":951,\"./defaults\":953,\"./hover\":956,\"./plot\":961,\"./style\":962}],958:[function(t,e,r){\"use strict\";function n(t){return.5-.25*Math.min(1,.5*t)}function i(t,e,r){var n,i,a,s,l,u,c,h,f,d,p,m,v,g=0;for(s=0;s<e.length;s++){for(n=e[s],i=n[0],a=n[1],p=t[i][a],d=0,f=0,l=0;l<4;l++)u=o[l],(c=t[i+u[0]])&&void 0!==(h=c[a+u[1]])&&(0===d?m=v=h:(m=Math.min(m,h),v=Math.max(v,h)),f++,d+=h);if(0===f)throw\"iterateInterp2d order is wrong: no defined neighbors\";t[i][a]=d/f,void 0===p?f<4&&(g=1):(t[i][a]=(1+r)*t[i][a]-r*p,v>m&&(g=Math.max(g,Math.abs(t[i][a]-p)/(v-m))))}return g}var a=t(\"../../lib\"),o=[[-1,0],[1,0],[0,-1],[0,1]];e.exports=function(t,e,r){var o,s,l=1;if(Array.isArray(r))for(o=0;o<e.length;o++)s=e[o],t[s[0]][s[1]]=r[s[0]][s[1]];else i(t,e);for(o=0;o<e.length&&!(e[o][2]<4);o++);for(e=e.slice(o),o=0;o<100&&l>.01;o++)l=i(t,e,n(l));return l>.01&&a.log(\"interp2d didn't converge quickly\",l),t}},{\"../../lib\":728}],959:[function(t,e,r){\"use strict\";var n=t(\"../../registry\");e.exports=function(t,e,r,i,a,o){var s,l,u,c=[],h=n.traceIs(t,\"contour\"),f=n.traceIs(t,\"histogram\"),d=n.traceIs(t,\"gl2d\");if(Array.isArray(e)&&e.length>1&&!f&&\"category\"!==o.type){var p=e.length;if(!(p<=a))return h?e.slice(0,a):e.slice(0,a+1);if(h||d)c=e.slice(0,a);else if(1===a)c=[e[0]-.5,e[0]+.5];else{for(c=[1.5*e[0]-.5*e[1]],u=1;u<p;u++)c.push(.5*(e[u-1]+e[u]));c.push(1.5*e[p-1]-.5*e[p-2])}if(p<a){var m=c[c.length-1],v=m-c[c.length-2];for(u=p;u<a;u++)m+=v,c.push(m)}}else{l=i||1;var g=t[o._id.charAt(0)+\"calendar\"];for(s=f||\"category\"===o.type?o.r2c(r,0,g)||0:Array.isArray(e)&&1===e.length?e[0]:void 0===r?0:o.d2c(r,0,g),u=h||d?0:-.5;u<a;u++)c.push(s+l*u)}return c}},{\"../../registry\":846}],960:[function(t,e,r){\"use strict\";e.exports=function(t){for(var e=0,r=0;r<t.length;r++)e=Math.max(e,t[r].length);return e}},{}],961:[function(t,e,r){\"use strict\";function n(t,e,r){function n(t,e){var r=e.length-2,n=o.constrain(o.findBin(t,e),0,r),i=e[n],a=e[n+1],s=o.constrain(n+(t-i)/(a-i)-.5,0,r),l=Math.round(s),u=Math.abs(s-l);return s&&s!==r&&u?{bin0:l,frac:u,bin1:Math.round(l+u/(s-l))}:{bin0:l,bin1:l,frac:0}}function c(t,e){if(void 0!==t){var r=q(t);return r[0]=Math.round(r[0]),r[1]=Math.round(r[1]),r[2]=Math.round(r[2]),rt+=e,nt+=r[0]*e,it+=r[1]*e,at+=r[2]*e,r}return[0,0,0,0]}function h(t,e,r){t[e]=r[0],t[e+1]=r[1],t[e+2]=r[2],t[e+3]=Math.round(255*r[3])}var f=r[0].trace,d=f.uid,p=e.xaxis,m=e.yaxis,v=t._fullLayout,g=\"hm\"+d;if(v._paper.selectAll(\".contour\"+d).remove(),v._infolayer.selectAll(\"g.rangeslider-container\").selectAll(\".contour\"+d).remove(),!0!==f.visible)return v._paper.selectAll(\".\"+g).remove(),void v._infolayer.selectAll(\".cb\"+d).remove();var y,b,x,_,w,M,k=r[0].z,A=r[0].x,T=r[0].y,S=a.traceIs(f,\"contour\"),E=S?\"best\":f.zsmooth,L=k.length,C=u(k),I=!1,z=!1;for(M=0;void 0===y&&M<A.length-1;)y=p.c2p(A[M]),M++;for(M=A.length-1;void 0===b&&M>0;)b=p.c2p(A[M]),M--;for(b<y&&(x=b,b=y,y=x,I=!0),M=0;void 0===_&&M<T.length-1;)_=m.c2p(T[M]),M++;for(M=T.length-1;void 0===w&&M>0;)w=m.c2p(T[M]),M--;if(w<_&&(x=_,_=w,w=x,z=!0),S&&(A=r[0].xfill,T=r[0].yfill),\"fast\"!==E){var D=\"best\"===E?0:.5;y=Math.max(-D*p._length,y),b=Math.min((1+D)*p._length,b),_=Math.max(-D*m._length,_),w=Math.min((1+D)*m._length,w)}var P=Math.round(b-y),O=Math.round(w-_),R=P<=0||O<=0,F=e.plot.select(\".imagelayer\").selectAll(\"g.hm.\"+g).data(R?[]:[0]);if(F.enter().append(\"g\").classed(\"hm\",!0).classed(g,!0),F.exit().remove(),!R){var j,N;\"fast\"===E?(j=C,N=L):(j=P,N=O);var B=document.createElement(\"canvas\");B.width=j,B.height=N;var U,V,H=B.getContext(\"2d\"),q=s.makeColorScaleFunc(s.extractScale(f.colorscale,f.zmin,f.zmax),{noNumericCheck:!0,returnArray:!0});\"fast\"===E?(U=I?function(t){return C-1-t}:o.identity,V=z?function(t){return L-1-t}:o.identity):(U=function(t){return o.constrain(Math.round(p.c2p(A[t])-y),0,P)},V=function(t){return o.constrain(Math.round(m.c2p(T[t])-_),0,O)});var G,Y,W,X,Z,J,K,Q=V(0),$=[Q,Q],tt=I?0:1,et=z?0:1,rt=0,nt=0,it=0,at=0;if(E){var ot,st=0;try{ot=new Uint8Array(P*O*4)}catch(t){ot=new Array(P*O*4)}if(\"best\"===E){var lt,ut,ct,ht=new Array(A.length),ft=new Array(T.length),dt=new Array(P);for(M=0;M<A.length;M++)ht[M]=Math.round(p.c2p(A[M])-y);for(M=0;M<T.length;M++)ft[M]=Math.round(m.c2p(T[M])-_);for(M=0;M<P;M++)dt[M]=n(M,ht);for(W=0;W<O;W++)for(lt=n(W,ft),ut=k[lt.bin0],ct=k[lt.bin1],M=0;M<P;M++,st+=4)K=function(t,e,r,n){var i=t[r.bin0];if(void 0===i)return c(void 0,1);var a,o=t[r.bin1],s=e[r.bin0],l=e[r.bin1],u=o-i||0,h=s-i||0;return a=void 0===o?void 0===l?0:void 0===s?2*(l-i):2*(2*l-s-i)/3:void 0===l?void 0===s?0:2*(2*i-o-s)/3:void 0===s?2*(2*l-o-i)/3:l+i-o-s,c(i+r.frac*u+n.frac*(h+r.frac*a))}(ut,ct,dt[M],lt),h(ot,st,K)}else for(W=0;W<L;W++)for(J=k[W],$=V(W),M=0;M<P;M++)K=c(J[M],1),st=4*($*P+U(M)),h(ot,st,K);var pt=H.createImageData(P,O);try{pt.data.set(ot)}catch(t){var mt=pt.data,vt=mt.length;for(W=0;W<vt;W++)mt[W]=ot[W]}H.putImageData(pt,0,0)}else for(W=0;W<L;W++)if(J=k[W],$.reverse(),$[et]=V(W+1),$[0]!==$[1]&&void 0!==$[0]&&void 0!==$[1])for(X=U(0),Y=[X,X],M=0;M<C;M++)Y.reverse(),Y[tt]=U(M+1),Y[0]!==Y[1]&&void 0!==Y[0]&&void 0!==Y[1]&&(Z=J[M],K=c(Z,(Y[1]-Y[0])*($[1]-$[0])),H.fillStyle=\"rgba(\"+K.join(\",\")+\")\",G=function(t,e,r,n,i,a,o,s,l){var u={x0:e,x1:r,y0:n,y1:i},c=2*t.xgap/3,h=2*t.ygap/3,f=t.xgap/3,d=t.ygap/3;return s===l-1&&(u.y1=i-h),a===o-1&&(u.x0=e+c),0===s&&(u.y0=n+h),0===a&&(u.x1=r-c),a>0&&a<o-1&&(u.x0=e+f,u.x1=r-f),s>0&&s<l-1&&(u.y0=n+d,u.y1=i-d),u}(f,Y[0],Y[1],$[0],$[1],M,C,W,L),H.fillRect(G.x0,G.y0,G.x1-G.x0,G.y1-G.y0));nt=Math.round(nt/rt),it=Math.round(it/rt),at=Math.round(at/rt);var gt=i(\"rgb(\"+nt+\",\"+it+\",\"+at+\")\");t._hmpixcount=(t._hmpixcount||0)+rt,t._hmlumcount=(t._hmlumcount||0)+rt*gt.getLuminance();var yt=F.selectAll(\"image\").data(r);yt.enter().append(\"svg:image\").attr({xmlns:l.svg,preserveAspectRatio:\"none\"}),yt.attr({height:O,width:P,x:y,y:_,\"xlink:href\":B.toDataURL(\"image/png\")}),yt.exit().remove()}}var i=t(\"tinycolor2\"),a=t(\"../../registry\"),o=t(\"../../lib\"),s=t(\"../../components/colorscale\"),l=t(\"../../constants/xmlns_namespaces\"),u=t(\"./max_row_length\");e.exports=function(t,e,r){for(var i=0;i<r.length;i++)n(t,e,r[i])}},{\"../../components/colorscale\":618,\"../../constants/xmlns_namespaces\":709,\"../../lib\":728,\"../../registry\":846,\"./max_row_length\":960,tinycolor2:534}],962:[function(t,e,r){\"use strict\";var n=t(\"d3\");e.exports=function(t){n.select(t).selectAll(\".hm image\").style(\"opacity\",function(t){return t.trace.opacity})}},{d3:122}],963:[function(t,e,r){\"use strict\";function n(t,e){var r=e(t);return\"scaled\"===(r?e(t+\"type\",\"array\"):\"scaled\")&&(e(t+\"0\"),e(\"d\"+t)),r}function i(t){for(var e,r=!0,n=!1,i=!1,o=0;o<t.length;o++){if(e=t[o],!Array.isArray(e)){r=!1;break}e.length>0&&(n=!0);for(var s=0;s<e.length;s++)if(a(e[s])){i=!0;break}}return r&&n&&i}var a=t(\"fast-isnumeric\"),o=t(\"../../registry\"),s=t(\"./has_columns\");e.exports=function(t,e,r,a,l,u){var c=r(\"z\");l=l||\"x\",u=u||\"y\";var h,f;if(void 0===c||!c.length)return 0;if(s(t)){if(h=r(l),f=r(u),!h||!f)return 0}else{if(h=n(l,r),f=n(u,r),!i(c))return 0;r(\"transpose\")}return o.getComponentMethod(\"calendars\",\"handleTraceDefaults\")(t,e,[l,u],a),e.z.length}},{\"../../registry\":846,\"./has_columns\":955,\"fast-isnumeric\":131}],964:[function(t,e,r){\"use strict\";for(var n=t(\"../heatmap/attributes\"),i=t(\"../../components/colorscale/attributes\"),a=t(\"../../components/colorbar/attributes\"),o=t(\"../../lib/extend\").extendFlat,s=t(\"../../plot_api/edit_types\").overrideAll,l=[\"z\",\"x\",\"x0\",\"dx\",\"y\",\"y0\",\"dy\",\"text\",\"transpose\",\"xtype\",\"ytype\"],u={},c=0;c<l.length;c++){var h=l[c];u[h]=n[h]}o(u,i,{autocolorscale:o({},i.autocolorscale,{dflt:!1})},{colorbar:a}),e.exports=s(u,\"calc\",\"nested\")},{\"../../components/colorbar/attributes\":605,\"../../components/colorscale/attributes\":609,\"../../lib/extend\":717,\"../../plot_api/edit_types\":756,\"../heatmap/attributes\":948}],965:[function(t,e,r){\"use strict\";function n(t,e){this.scene=t,this.uid=e,this.type=\"heatmapgl\",this.name=\"\",this.hoverinfo=\"all\",this.xData=[],this.yData=[],this.zData=[],this.textLabels=[],this.idToIndex=[],this.bounds=[0,0,0,0],this.options={z:[],x:[],y:[],shape:[0,0],colorLevels:[0],colorValues:[0,0,0,1]},this.heatmap=o(t.glplot,this.options),this.heatmap._trace=this}function i(t){for(var e=t.colorscale,r=t.zmin,n=t.zmax,i=e.length,a=new Array(i),o=new Array(4*i),s=0;s<i;s++){var u=e[s],c=l(u[1]);a[s]=r+u[0]*(n-r);for(var h=0;h<4;h++)o[4*s+h]=c[h]}return{colorLevels:a,colorValues:o}}function a(t,e,r){var i=new n(t,e.uid);return i.update(e,r),i}var o=t(\"gl-heatmap2d\"),s=t(\"../../plots/cartesian/axes\"),l=t(\"../../lib/str2rgbarray\"),u=n.prototype;u.handlePick=function(t){var e=this.options,r=e.shape,n=t.pointId,i=n%r[0],a=Math.floor(n/r[0]),o=n;return{trace:this,dataCoord:t.dataCoord,traceCoord:[e.x[i],e.y[a],e.z[o]],textLabel:this.textLabels[n],name:this.name,pointIndex:[a,i],hoverinfo:this.hoverinfo}},u.update=function(t,e){var r=e[0];this.index=t.index,this.name=t.name,this.hoverinfo=t.hoverinfo;var n=r.z;this.options.z=[].concat.apply([],n);var a=n[0].length,o=n.length;this.options.shape=[a,o],this.options.x=r.x,this.options.y=r.y;var l=i(t);this.options.colorLevels=l.colorLevels,this.options.colorValues=l.colorValues,this.textLabels=[].concat.apply([],t.text),this.heatmap.update(this.options),s.expand(this.scene.xaxis,r.x),s.expand(this.scene.yaxis,r.y)},u.dispose=function(){this.heatmap.dispose()},e.exports=a},{\"../../lib/str2rgbarray\":749,\"../../plots/cartesian/axes\":772,\"gl-heatmap2d\":166}],966:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.supplyDefaults=t(\"../heatmap/defaults\"),n.colorbar=t(\"../heatmap/colorbar\"),n.calc=t(\"../heatmap/calc\"),n.plot=t(\"./convert\"),n.moduleType=\"trace\",n.name=\"heatmapgl\",n.basePlotModule=t(\"../../plots/gl2d\"),n.categories=[\"gl2d\",\"2dMap\"],n.meta={},e.exports=n},{\"../../plots/gl2d\":808,\"../heatmap/calc\":949,\"../heatmap/colorbar\":951,\"../heatmap/defaults\":953,\"./attributes\":964,\"./convert\":965}],967:[function(t,e,r){\"use strict\";function n(t){var e={};e[\"autobin\"+t]=!1;var r={};return r[\"^autobin\"+t]=!1,{start:{valType:\"any\",dflt:null,editType:\"calc\",impliedEdits:r},end:{valType:\"any\",dflt:null,editType:\"calc\",impliedEdits:r},size:{valType:\"any\",dflt:null,editType:\"calc\",impliedEdits:r},editType:\"calc\",impliedEdits:e}}var i=t(\"../bar/attributes\");e.exports={x:{valType:\"data_array\",editType:\"calc+clearAxisTypes\"},y:{valType:\"data_array\",editType:\"calc+clearAxisTypes\"},text:i.text,orientation:i.orientation,histfunc:{valType:\"enumerated\",values:[\"count\",\"sum\",\"avg\",\"min\",\"max\"],dflt:\"count\",editType:\"calc\"},histnorm:{valType:\"enumerated\",values:[\"\",\"percent\",\"probability\",\"density\",\"probability density\"],dflt:\"\",editType:\"calc\"},cumulative:{enabled:{valType:\"boolean\",dflt:!1,editType:\"calc\"},direction:{valType:\"enumerated\",values:[\"increasing\",\"decreasing\"],dflt:\"increasing\",editType:\"calc\"},currentbin:{valType:\"enumerated\",values:[\"include\",\"exclude\",\"half\"],dflt:\"include\",editType:\"calc\"},editType:\"calc\"},autobinx:{valType:\"boolean\",dflt:null,editType:\"calc\",impliedEdits:{\"xbins.start\":void 0,\"xbins.end\":void 0,\"xbins.size\":void 0}},nbinsx:{valType:\"integer\",min:0,dflt:0,editType:\"calc\"},xbins:n(\"x\"),autobiny:{valType:\"boolean\",dflt:null,editType:\"calc\",impliedEdits:{\"ybins.start\":void 0,\"ybins.end\":void 0,\"ybins.size\":void 0}},nbinsy:{valType:\"integer\",min:0,dflt:0,editType:\"calc\"},ybins:n(\"y\"),marker:i.marker,error_y:i.error_y,error_x:i.error_x,_deprecated:{bardir:i._deprecated.bardir}}},{\"../bar/attributes\":856}],968:[function(t,e,r){\"use strict\";e.exports=function(t,e){for(var r=t.length,n=0,i=0;i<r;i++)e[i]?(t[i]/=e[i],n+=t[i]):t[i]=null;return n}},{}],969:[function(t,e,r){\"use strict\";e.exports=function(t,e,r,n){return r(\"histnorm\"),n.forEach(function(t){r(t+\"bins.start\"),r(t+\"bins.end\"),r(t+\"bins.size\"),r(\"autobin\"+t),r(\"nbins\"+t)}),e}},{}],970:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\");e.exports={count:function(t,e,r){return r[t]++,1},sum:function(t,e,r,i){var a=i[e];return n(a)?(a=Number(a),r[t]+=a,a):0},avg:function(t,e,r,i,a){var o=i[e];return n(o)&&(o=Number(o),r[t]+=o,a[t]++),0},min:function(t,e,r,i){var a=i[e];if(n(a)){if(a=Number(a),!n(r[t]))return r[t]=a,a;if(r[t]>a){var o=a-r[t];return r[t]=a,o}}return 0},max:function(t,e,r,i){var a=i[e];if(n(a)){if(a=Number(a),!n(r[t]))return r[t]=a,a;if(r[t]<a){var o=a-r[t];return r[t]=a,o}}return 0}}},{\"fast-isnumeric\":131}],971:[function(t,e,r){\"use strict\";function n(t,e,r,n,s){var l,c,f,d,p,m=n+\"bins\",v=\"overlay\"===t._fullLayout.barmode;if(e._autoBinFinished)delete e._autoBinFinished;else{var g=v?[e]:a(t,e),y=[],b=1/0,x=1/0,_=-1/0,w=\"autobin\"+n;for(l=0;l<g.length;l++){c=g[l],p=c._pos0=r.makeCalcdata(c,n);var M=c[m];if(c[w]||!M||null===M.start||null===M.end){f=c[n+\"calendar\"];var k=c.cumulative;if(M=h.autoBin(p,r,c[\"nbins\"+n],!1,f),v&&1===M._count&&\"category\"!==r.type){if(s)return[M,p,!0];M=i(t,e,r,n,m)}k.enabled&&\"include\"!==k.currentbin&&(\"decreasing\"===k.direction?x=Math.min(x,r.r2c(M.start,0,f)-M.size):_=Math.max(_,r.r2c(M.end,0,f)+M.size)),y.push(c)}else d||(d={size:M.size,start:r.r2c(M.start,0,f),end:r.r2c(M.end,0,f)});b=o(b,M.size),x=Math.min(x,r.r2c(M.start,0,f)),_=Math.max(_,r.r2c(M.end,0,f)),l&&(c._autoBinFinished=1)}if(d&&u(d.size)&&u(b)){b=b>d.size/1.9?d.size:d.size/Math.ceil(d.size/b);var A=d.start+(d.size-b)/2;x=A-b*Math.ceil((A-x)/b)}for(l=0;l<y.length;l++)c=y[l],f=c[n+\"calendar\"],c._input[m]=c[m]={start:r.c2r(x,0,f),end:r.c2r(_,0,f),size:b},c._input[w]=c[w]}return p=e._pos0,delete e._pos0,[e[m],p]}function i(t,e,r,i,o){var s,l,u=a(t,e),h=!1,f=1/0,d=[e];for(s=0;s<u.length;s++)if((l=u[s])===e)h=!0;else if(h){var p=n(t,l,r,i,!0),m=p[0],v=p[2];l._autoBinFinished=1,l._pos0=p[1],v?d.push(l):f=Math.min(f,m.size)}else f=Math.min(f,l[o].size);var g=new Array(d.length);for(s=0;s<d.length;s++)for(var y=d[s]._pos0,b=0;b<y.length;b++)if(void 0!==y[b]){g[s]=y[b];break}for(isFinite(f)||(f=c.distinctVals(g).minDiff),s=0;s<d.length;s++){l=d[s];var x=l[i+\"calendar\"];l._input[o]=l[o]={start:r.c2r(g[s]-f/2,0,x),end:r.c2r(g[s]+f/2,0,x),size:f}}return e[o]}function a(t,e){for(var r=e.xaxis,n=e.yaxis,i=e.orientation,a=[],o=t._fullData,s=0;s<o.length;s++){var l=o[s];\"histogram\"===l.type&&l.orientation===i&&l.xaxis===r&&l.yaxis===n&&a.push(l)}return a}function o(t,e){if(t===1/0)return e;var r=s(t);return s(e)<r?e:t}function s(t){return u(t)?t:\"string\"==typeof t&&\"M\"===t.charAt(0)?g*+t.substr(1):1/0}function l(t,e,r){function n(e){s=t[e],t[e]/=2}function i(e){o=t[e],t[e]=s+o/2,s+=o}var a,o,s;if(\"half\"===r)if(\"increasing\"===e)for(n(0),a=1;a<t.length;a++)i(a);else for(n(t.length-1),a=t.length-2;a>=0;a--)i(a);else if(\"increasing\"===e){for(a=1;a<t.length;a++)t[a]+=t[a-1];\"exclude\"===r&&(t.unshift(0),t.pop())}else{for(a=t.length-2;a>=0;a--)t[a]+=t[a+1];\"exclude\"===r&&(t.push(0),t.shift())}}var u=t(\"fast-isnumeric\"),c=t(\"../../lib\"),h=t(\"../../plots/cartesian/axes\"),f=t(\"../bar/arrays_to_calcdata\"),d=t(\"./bin_functions\"),p=t(\"./norm_functions\"),m=t(\"./average\"),v=t(\"./clean_bins\"),g=t(\"../../constants/numerical\").ONEAVGMONTH;e.exports=function(t,e){if(!0===e.visible){var r,i=[],a=[],o=h.getFromId(t,\"h\"===e.orientation?e.yaxis||\"y\":e.xaxis||\"x\"),s=\"h\"===e.orientation?\"y\":\"x\",g={x:\"y\",y:\"x\"}[s],y=e[s+\"calendar\"],b=e.cumulative;v(e,o,s);var x,_,w,M=n(t,e,o,s),k=M[0],A=M[1],T=\"string\"==typeof k.size,S=T?[]:k,E=[],L=[],C=0,I=e.histnorm,z=e.histfunc,D=-1!==I.indexOf(\"density\");b.enabled&&D&&(I=I.replace(/ ?density$/,\"\"),D=!1);var P,O=\"max\"===z||\"min\"===z,R=O?null:0,F=d.count,j=p[I],N=!1,B=function(t){return o.r2c(t,0,y)};for(Array.isArray(e[g])&&\"count\"!==z&&(P=e[g],N=\"avg\"===z,F=d[z]),r=B(k.start),_=B(k.end)+(r-h.tickIncrement(r,k.size,!1,y))/1e6;r<_&&i.length<1e6&&(x=h.tickIncrement(r,k.size,!1,y),i.push((r+x)/2),a.push(R),T&&S.push(r),D&&E.push(1/(x-r)),N&&L.push(0),!(x<=r));)r=x;T||\"date\"!==o.type||(S={start:B(S.start),end:B(S.end),size:S.size});var U=a.length;for(r=0;r<A.length;r++)(w=c.findBin(A[r],S))>=0&&w<U&&(C+=F(w,r,a,P,L));N&&(C=m(a,L)),j&&j(a,C,E),b.enabled&&l(a,b.direction,b.currentbin);var V=Math.min(i.length,a.length),H=[],q=0,G=V-1;for(r=0;r<V;r++)if(a[r]){q=r;break}for(r=V-1;r>=q;r--)if(a[r]){G=r;break}for(r=q;r<=G;r++)u(i[r])&&u(a[r])&&H.push({p:i[r],s:a[r],b:0});return 1===H.length&&(H[0].width1=h.tickIncrement(H[0].p,k.size,!1,y)-H[0].p),f(H,e),H}}},{\"../../constants/numerical\":707,\"../../lib\":728,\"../../plots/cartesian/axes\":772,\"../bar/arrays_to_calcdata\":855,\"./average\":968,\"./bin_functions\":970,\"./clean_bins\":972,\"./norm_functions\":975,\"fast-isnumeric\":131}],972:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../../lib\").cleanDate,a=t(\"../../constants/numerical\"),o=a.ONEDAY,s=a.BADNUM;e.exports=function(t,e,r){var a=e.type,l=r+\"bins\",u=t[l];u||(u=t[l]={});var c=\"date\"===a?function(t){return t||0===t?i(t,s,u.calendar):null}:function(t){return n(t)?Number(t):null};u.start=c(u.start),u.end=c(u.end);var h=\"date\"===a?o:1,f=u.size;if(n(f))u.size=f>0?Number(f):h;else if(\"string\"!=typeof f)u.size=h;else{var d=f.charAt(0),p=f.substr(1);p=n(p)?Number(p):0,(p<=0||\"date\"!==a||\"M\"!==d||p!==Math.round(p))&&(u.size=h)}var m=\"autobin\"+r;\"boolean\"!=typeof t[m]&&(t[m]=!((u.start||0===u.start)&&(u.end||0===u.end))),t[m]||delete t[\"nbins\"+r]}},{\"../../constants/numerical\":707,\"../../lib\":728,\"fast-isnumeric\":131}],973:[function(t,e,r){\"use strict\";var n=t(\"../../registry\"),i=t(\"../../lib\"),a=t(\"../../components/color\"),o=t(\"./bin_defaults\"),s=t(\"../bar/style_defaults\"),l=t(\"../../components/errorbars/defaults\"),u=t(\"./attributes\");e.exports=function(t,e,r,c){function h(r,n){return i.coerce(t,e,u,r,n)}var f=h(\"x\"),d=h(\"y\");h(\"cumulative.enabled\")&&(h(\"cumulative.direction\"),h(\"cumulative.currentbin\")),h(\"text\");var p=h(\"orientation\",d&&!f?\"h\":\"v\"),m=e[\"v\"===p?\"x\":\"y\"];if(!m||!m.length)return void(e.visible=!1);n.getComponentMethod(\"calendars\",\"handleTraceDefaults\")(t,e,[\"x\",\"y\"],c),e[\"h\"===p?\"x\":\"y\"]&&h(\"histfunc\"),o(t,e,h,\"h\"===p?[\"y\"]:[\"x\"]),s(t,e,h,r,c),l(t,e,a.defaultLine,{axis:\"y\"}),l(t,e,a.defaultLine,{axis:\"x\",inherit:\"y\"})}},{\"../../components/color\":604,\"../../components/errorbars/defaults\":633,\"../../lib\":728,\"../../registry\":846,\"../bar/style_defaults\":868,\"./attributes\":967,\"./bin_defaults\":969}],974:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.layoutAttributes=t(\"../bar/layout_attributes\"),n.supplyDefaults=t(\"./defaults\"),n.supplyLayoutDefaults=t(\"../bar/layout_defaults\"),n.calc=t(\"./calc\"),n.setPositions=t(\"../bar/set_positions\"),n.plot=t(\"../bar/plot\"),n.style=t(\"../bar/style\"),n.colorbar=t(\"../scatter/colorbar\"),n.hoverPoints=t(\"../bar/hover\"),n.selectPoints=t(\"../bar/select\"),n.moduleType=\"trace\",n.name=\"histogram\",n.basePlotModule=t(\"../../plots/cartesian\"),n.categories=[\"cartesian\",\"bar\",\"histogram\",\"oriented\",\"errorBarsOK\",\"showLegend\"],n.meta={},e.exports=n},{\"../../plots/cartesian\":782,\"../bar/hover\":859,\"../bar/layout_attributes\":861,\"../bar/layout_defaults\":862,\"../bar/plot\":863,\"../bar/select\":864,\"../bar/set_positions\":865,\"../bar/style\":867,\"../scatter/colorbar\":1034,\"./attributes\":967,\"./calc\":971,\"./defaults\":973}],975:[function(t,e,r){\"use strict\";e.exports={percent:function(t,e){for(var r=t.length,n=100/e,i=0;i<r;i++)t[i]*=n},probability:function(t,e){for(var r=t.length,n=0;n<r;n++)t[n]/=e},density:function(t,e,r,n){var i=t.length;n=n||1;for(var a=0;a<i;a++)t[a]*=r[a]*n},\"probability density\":function(t,e,r,n){var i=t.length;n&&(e/=n);for(var a=0;a<i;a++)t[a]*=r[a]/e}}},{}],976:[function(t,e,r){\"use strict\";var n=t(\"../histogram/attributes\"),i=t(\"../heatmap/attributes\"),a=t(\"../../components/colorscale/attributes\"),o=t(\"../../components/colorbar/attributes\"),s=t(\"../../lib/extend\").extendFlat;e.exports=s({},{x:n.x,y:n.y,z:{valType:\"data_array\",editType:\"calc\"},marker:{color:{valType:\"data_array\",editType:\"calc\"},editType:\"calc\"},histnorm:n.histnorm,histfunc:n.histfunc,autobinx:n.autobinx,nbinsx:n.nbinsx,xbins:n.xbins,autobiny:n.autobiny,nbinsy:n.nbinsy,ybins:n.ybins,xgap:i.xgap,ygap:i.ygap,zsmooth:i.zsmooth},a,{autocolorscale:s({},a.autocolorscale,{dflt:!1})},{colorbar:o})},{\"../../components/colorbar/attributes\":605,\"../../components/colorscale/attributes\":609,\"../../lib/extend\":717,\"../heatmap/attributes\":948,\"../histogram/attributes\":967}],977:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../plots/cartesian/axes\"),a=t(\"../histogram/bin_functions\"),o=t(\"../histogram/norm_functions\"),s=t(\"../histogram/average\"),l=t(\"../histogram/clean_bins\");e.exports=function(t,e){var r,u,c,h,f,d,p=i.getFromId(t,e.xaxis||\"x\"),m=e.x?p.makeCalcdata(e,\"x\"):[],v=i.getFromId(t,e.yaxis||\"y\"),g=e.y?v.makeCalcdata(e,\"y\"):[],y=e.xcalendar,b=e.ycalendar,x=function(t){return p.r2c(t,0,y)},_=function(t){return v.r2c(t,0,b)},w=function(t){return p.c2r(t,0,y)},M=function(t){return v.c2r(t,0,b)};l(e,p,\"x\"),l(e,v,\"y\");var k=Math.min(m.length,g.length);m.length>k&&m.splice(k,m.length-k),g.length>k&&g.splice(k,g.length-k),!e.autobinx&&e.xbins&&null!==e.xbins.start&&null!==e.xbins.end||(e.xbins=i.autoBin(m,p,e.nbinsx,\"2d\",y),\"histogram2dcontour\"===e.type&&(e.xbins.start=w(i.tickIncrement(x(e.xbins.start),e.xbins.size,!0,y)),e.xbins.end=w(i.tickIncrement(x(e.xbins.end),e.xbins.size,!1,y))),e._input.xbins=e.xbins,e._input.autobinx=e.autobinx),!e.autobiny&&e.ybins&&null!==e.ybins.start&&null!==e.ybins.end||(e.ybins=i.autoBin(g,v,e.nbinsy,\"2d\",b),\"histogram2dcontour\"===e.type&&(e.ybins.start=M(i.tickIncrement(_(e.ybins.start),e.ybins.size,!0,b)),e.ybins.end=M(i.tickIncrement(_(e.ybins.end),e.ybins.size,!1,b))),e._input.ybins=e.ybins,e._input.autobiny=e.autobiny),f=[];var A,T,S=[],E=[],L=\"string\"==typeof e.xbins.size,C=\"string\"==typeof e.ybins.size,I=L?[]:e.xbins,z=C?[]:e.ybins,D=0,P=[],O=e.histnorm,R=e.histfunc,F=-1!==O.indexOf(\"density\"),j=\"max\"===R||\"min\"===R,N=j?null:0,B=a.count,U=o[O],V=!1,H=[],q=[],G=\"z\"in e?e.z:\"marker\"in e&&Array.isArray(e.marker.color)?e.marker.color:\"\";G&&\"count\"!==R&&(V=\"avg\"===R,B=a[R]);var Y=e.xbins,W=x(Y.start),X=x(Y.end)+(W-i.tickIncrement(W,Y.size,!1,y))/1e6;for(d=W;d<X;d=i.tickIncrement(d,Y.size,!1,y))S.push(N),L&&I.push(d),V&&E.push(0);L&&I.push(d);var Z=S.length;r=e.xbins.start;var J=x(r);for(u=(d-J)/Z,r=w(J+u/2),Y=e.ybins,W=_(Y.start),X=_(Y.end)+(W-i.tickIncrement(W,Y.size,!1,b))/1e6,d=W;d<X;d=i.tickIncrement(d,Y.size,!1,b))f.push(S.concat()),C&&z.push(d),V&&P.push(E.concat());C&&z.push(d);var K=f.length;c=e.ybins.start;var Q=_(c);for(h=(d-Q)/K,c=M(Q+h/2),F&&(H=S.map(function(t,e){return L?1/(I[e+1]-I[e]):1/u}),q=f.map(function(t,e){return C?1/(z[e+1]-z[e]):1/h})),L||\"date\"!==p.type||(I={start:x(I.start),end:x(I.end),size:I.size}),C||\"date\"!==v.type||(z={start:_(z.start),end:_(z.end),size:z.size}),d=0;d<k;d++)A=n.findBin(m[d],I),T=n.findBin(g[d],z),A>=0&&A<Z&&T>=0&&T<K&&(D+=B(A,d,f[T],G,P[T]));if(V)for(T=0;T<K;T++)D+=s(f[T],P[T]);if(U)for(T=0;T<K;T++)U(f[T],D,H,q[T]);return{x:m,x0:r,dx:u,y:g,y0:c,dy:h,z:f}}},{\"../../lib\":728,\"../../plots/cartesian/axes\":772,\"../histogram/average\":968,\"../histogram/bin_functions\":970,\"../histogram/clean_bins\":972,\"../histogram/norm_functions\":975}],978:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"./sample_defaults\"),a=t(\"../../components/colorscale/defaults\"),o=t(\"./attributes\");e.exports=function(t,e,r,s){function l(r,i){return n.coerce(t,e,o,r,i)}i(t,e,l,s),!1===l(\"zsmooth\")&&(l(\"xgap\"),l(\"ygap\")),a(t,e,s,l,{prefix:\"\",cLetter:\"z\"})}},{\"../../components/colorscale/defaults\":613,\"../../lib\":728,\"./attributes\":976,\"./sample_defaults\":980}],979:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.supplyDefaults=t(\"./defaults\"),n.calc=t(\"../heatmap/calc\"),n.plot=t(\"../heatmap/plot\"),n.colorbar=t(\"../heatmap/colorbar\"),n.style=t(\"../heatmap/style\"),n.hoverPoints=t(\"../heatmap/hover\"),n.moduleType=\"trace\",n.name=\"histogram2d\",n.basePlotModule=t(\"../../plots/cartesian\"),n.categories=[\"cartesian\",\"2dMap\",\"histogram\"],n.meta={},e.exports=n},{\"../../plots/cartesian\":782,\"../heatmap/calc\":949,\"../heatmap/colorbar\":951,\"../heatmap/hover\":956,\"../heatmap/plot\":961,\"../heatmap/style\":962,\"./attributes\":976,\"./defaults\":978}],980:[function(t,e,r){\"use strict\";var n=t(\"../../registry\"),i=t(\"../histogram/bin_defaults\");e.exports=function(t,e,r,a){var o=r(\"x\"),s=r(\"y\");if(!(o&&o.length&&s&&s.length))return void(e.visible=!1);n.getComponentMethod(\"calendars\",\"handleTraceDefaults\")(t,e,[\"x\",\"y\"],a),(r(\"z\")||r(\"marker.color\"))&&r(\"histfunc\"),i(t,e,r,[\"x\",\"y\"])}},{\"../../registry\":846,\"../histogram/bin_defaults\":969}],981:[function(t,e,r){\"use strict\";var n=t(\"../histogram2d/attributes\"),i=t(\"../contour/attributes\"),a=t(\"../../components/colorscale/attributes\"),o=t(\"../../components/colorbar/attributes\"),s=t(\"../../lib/extend\").extendFlat;e.exports=s({x:n.x,y:n.y,z:n.z,marker:n.marker,histnorm:n.histnorm,histfunc:n.histfunc,autobinx:n.autobinx,nbinsx:n.nbinsx,xbins:n.xbins,autobiny:n.autobiny,nbinsy:n.nbinsy,ybins:n.ybins,autocontour:i.autocontour,ncontours:i.ncontours,contours:i.contours,line:i.line},a,{zmin:s({},a.zmin,{editType:\"calc\"}),zmax:s({},a.zmax,{editType:\"calc\"})},{colorbar:o})},{\"../../components/colorbar/attributes\":605,\"../../components/colorscale/attributes\":609,\"../../lib/extend\":717,\"../contour/attributes\":920,\"../histogram2d/attributes\":976}],982:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../histogram2d/sample_defaults\"),a=t(\"../contour/contours_defaults\"),o=t(\"../contour/style_defaults\"),s=t(\"./attributes\");e.exports=function(t,e,r,l){function u(r,i){return n.coerce(t,e,s,r,i)}i(t,e,u,l),a(t,e,u),o(t,e,u,l)}},{\"../../lib\":728,\"../contour/contours_defaults\":924,\"../contour/style_defaults\":934,\"../histogram2d/sample_defaults\":980,\"./attributes\":981}],983:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.supplyDefaults=t(\"./defaults\"),n.calc=t(\"../contour/calc\"),n.plot=t(\"../contour/plot\").plot,n.style=t(\"../contour/style\"),n.colorbar=t(\"../contour/colorbar\"),n.hoverPoints=t(\"../contour/hover\"),n.moduleType=\"trace\",n.name=\"histogram2dcontour\",n.basePlotModule=t(\"../../plots/cartesian\"),n.categories=[\"cartesian\",\"2dMap\",\"contour\",\"histogram\"],n.meta={},e.exports=n},{\"../../plots/cartesian\":782,\"../contour/calc\":921,\"../contour/colorbar\":922,\"../contour/hover\":928,\"../contour/plot\":932,\"../contour/style\":933,\"./attributes\":981,\"./defaults\":982}],984:[function(t,e,r){\"use strict\";var n=t(\"../../components/colorscale/color_attributes\"),i=t(\"../../components/colorscale/attributes\"),a=t(\"../../components/colorbar/attributes\"),o=t(\"../surface/attributes\"),s=t(\"../../lib/extend\").extendFlat;e.exports=s(n(\"\",\"calc\",!1),{x:{valType:\"data_array\",editType:\"calc+clearAxisTypes\"},y:{valType:\"data_array\",editType:\"calc+clearAxisTypes\"},z:{valType:\"data_array\",editType:\"calc+clearAxisTypes\"},i:{valType:\"data_array\",editType:\"calc\"},j:{valType:\"data_array\",editType:\"calc\"},k:{valType:\"data_array\",editType:\"calc\"},delaunayaxis:{valType:\"enumerated\",values:[\"x\",\"y\",\"z\"],dflt:\"z\",editType:\"calc\"},alphahull:{valType:\"number\",dflt:-1,editType:\"calc\"},intensity:{valType:\"data_array\",editType:\"calc\"},color:{valType:\"color\",editType:\"calc\"},vertexcolor:{valType:\"data_array\",editType:\"calc\"},facecolor:{valType:\"data_array\",editType:\"calc\"},opacity:o.opacity,flatshading:{valType:\"boolean\",dflt:!1,editType:\"calc\"},contour:{show:s({},o.contours.x.show,{}),color:o.contours.x.color,width:o.contours.x.width,editType:\"calc\"},showscale:i.showscale,colorbar:a,lightposition:{x:s({},o.lightposition.x,{dflt:1e5}),y:s({},o.lightposition.y,{dflt:1e5}),z:s({},o.lightposition.z,{dflt:0}),editType:\"calc\"},lighting:s({vertexnormalsepsilon:{valType:\"number\",min:0,max:1,dflt:1e-12,editType:\"calc\"},facenormalsepsilon:{valType:\"number\",min:0,max:1,dflt:1e-6,editType:\"calc\"},editType:\"calc\"},o.lighting)})},{\"../../components/colorbar/attributes\":605,\"../../components/colorscale/attributes\":609,\"../../components/colorscale/color_attributes\":611,\"../../lib/extend\":717,\"../surface/attributes\":1099}],985:[function(t,e,r){\"use strict\";var n=t(\"../../components/colorscale/calc\");e.exports=function(t,e){e.intensity&&n(e,e.intensity,\"\",\"c\")}},{\"../../components/colorscale/calc\":610}],986:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../../lib\"),a=t(\"../../plots/plots\"),o=t(\"../../components/colorscale\"),s=t(\"../../components/colorbar/draw\");e.exports=function(t,e){var r=e[0].trace,l=\"cb\"+r.uid,u=r.cmin,c=r.cmax,h=r.intensity||[];if(n(u)||(u=i.aggNums(Math.min,null,h)),n(c)||(c=i.aggNums(Math.max,null,h)),t._fullLayout._infolayer.selectAll(\".\"+l).remove(),!r.showscale)return void a.autoMargin(t,l);var f=e[0].t.cb=s(t,l),d=o.makeColorScaleFunc(o.extractScale(r.colorscale,u,c),{noNumericCheck:!0});f.fillcolor(d).filllevels({start:u,end:c,size:(c-u)/254}).options(r.colorbar)()}},{\"../../components/colorbar/draw\":607,\"../../components/colorscale\":618,\"../../lib\":728,\"../../plots/plots\":831,\"fast-isnumeric\":131}],987:[function(t,e,r){\"use strict\";function n(t,e,r){this.scene=t,this.uid=r,this.mesh=e,this.name=\"\",this.color=\"#fff\",this.data=null,this.showContour=!1}function i(t){return t.map(function(t){var e=t[0],r=u(t[1]),n=r.toRgb();return{index:e,rgb:[n.r,n.g,n.b,1]}})}function a(t){return t.map(d)}function o(t,e,r){for(var n=new Array(t.length),i=0;i<t.length;++i)n[i]=[t[i],e[i],r[i]];return n}function s(t,e){var r=t.glplot.gl,i=l({gl:r}),a=new n(t,i,e.uid);return i._trace=a,a.update(e),t.glplot.add(i),a}var l=t(\"gl-mesh3d\"),u=t(\"tinycolor2\"),c=t(\"delaunay-triangulate\"),h=t(\"alpha-shape\"),f=t(\"convex-hull\"),d=t(\"../../lib/str2rgbarray\"),p=n.prototype;p.handlePick=function(t){if(t.object===this.mesh){var e=t.index=t.data.index;return t.traceCoordinate=[this.data.x[e],this.data.y[e],this.data.z[e]],!0}},p.update=function(t){function e(t,e,r,n){return e.map(function(e){return t.d2l(e,0,n)*r})}var r=this.scene,n=r.fullSceneLayout;this.data=t;var s,l=o(e(n.xaxis,t.x,r.dataScale[0],t.xcalendar),e(n.yaxis,t.y,r.dataScale[1],t.ycalendar),e(n.zaxis,t.z,r.dataScale[2],t.zcalendar));if(t.i&&t.j&&t.k)s=o(t.i,t.j,t.k);else if(0===t.alphahull)s=f(l);else if(t.alphahull>0)s=h(t.alphahull,l);else{var u=[\"x\",\"y\",\"z\"].indexOf(t.delaunayaxis);s=c(l.map(function(t){return[t[(u+1)%3],t[(u+2)%3]]}))}var p={positions:l,cells:s,lightPosition:[t.lightposition.x,t.lightposition.y,t.lightposition.z],ambient:t.lighting.ambient,diffuse:t.lighting.diffuse,specular:t.lighting.specular,roughness:t.lighting.roughness,fresnel:t.lighting.fresnel,vertexNormalsEpsilon:t.lighting.vertexnormalsepsilon,faceNormalsEpsilon:t.lighting.facenormalsepsilon,opacity:t.opacity,contourEnable:t.contour.show,contourColor:d(t.contour.color).slice(0,3),contourWidth:t.contour.width,useFacetNormals:t.flatshading};t.intensity?(this.color=\"#fff\",p.vertexIntensity=t.intensity,p.vertexIntensityBounds=[t.cmin,t.cmax],p.colormap=i(t.colorscale)):t.vertexcolor?(this.color=t.vertexcolor[0],p.vertexColors=a(t.vertexcolor)):t.facecolor?(this.color=t.facecolor[0],p.cellColors=a(t.facecolor)):(this.color=t.color,p.meshColor=d(t.color)),this.mesh.update(p)},p.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()},e.exports=s},{\"../../lib/str2rgbarray\":749,\"alpha-shape\":43,\"convex-hull\":103,\"delaunay-triangulate\":123,\"gl-mesh3d\":205,tinycolor2:534}],988:[function(t,e,r){\"use strict\";var n=t(\"../../registry\"),i=t(\"../../lib\"),a=t(\"../../components/colorscale/defaults\"),o=t(\"./attributes\");e.exports=function(t,e,r,s){function l(r,n){return i.coerce(t,e,o,r,n)}function u(t){var e=t.map(function(t){var e=l(t);return e&&Array.isArray(e)?e:null});return e.every(function(t){\n", "return t&&t.length===e[0].length})&&e}var c=u([\"x\",\"y\",\"z\"]),h=u([\"i\",\"j\",\"k\"]);if(!c)return void(e.visible=!1);h&&h.forEach(function(t){for(var e=0;e<t.length;++e)t[e]|=0}),n.getComponentMethod(\"calendars\",\"handleTraceDefaults\")(t,e,[\"x\",\"y\",\"z\"],s),[\"lighting.ambient\",\"lighting.diffuse\",\"lighting.specular\",\"lighting.roughness\",\"lighting.fresnel\",\"lighting.vertexnormalsepsilon\",\"lighting.facenormalsepsilon\",\"lightposition.x\",\"lightposition.y\",\"lightposition.z\",\"contour.show\",\"contour.color\",\"contour.width\",\"colorscale\",\"reversescale\",\"flatshading\",\"alphahull\",\"delaunayaxis\",\"opacity\"].forEach(function(t){l(t)}),\"intensity\"in t?(l(\"intensity\"),a(t,e,s,l,{prefix:\"\",cLetter:\"c\"})):(e.showscale=!1,\"facecolor\"in t?l(\"facecolor\"):\"vertexcolor\"in t?l(\"vertexcolor\"):l(\"color\",r))}},{\"../../components/colorscale/defaults\":613,\"../../lib\":728,\"../../registry\":846,\"./attributes\":984}],989:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.supplyDefaults=t(\"./defaults\"),n.calc=t(\"./calc\"),n.colorbar=t(\"./colorbar\"),n.plot=t(\"./convert\"),n.moduleType=\"trace\",n.name=\"mesh3d\",n.basePlotModule=t(\"../../plots/gl3d\"),n.categories=[\"gl3d\"],n.meta={},e.exports=n},{\"../../plots/gl3d\":811,\"./attributes\":984,\"./calc\":985,\"./colorbar\":986,\"./convert\":987,\"./defaults\":988}],990:[function(t,e,r){\"use strict\";function n(t){return{name:{valType:\"string\",editType:\"style\"},showlegend:{valType:\"boolean\",dflt:!0,editType:\"style\"},line:{color:i({},s.color,{dflt:t}),width:s.width,dash:o,editType:\"style\"},editType:\"style\"}}var i=t(\"../../lib\").extendFlat,a=t(\"../scatter/attributes\"),o=t(\"../../components/drawing/attributes\").dash,s=a.line;e.exports={x:{valType:\"data_array\",editType:\"calc+clearAxisTypes\"},open:{valType:\"data_array\",dflt:[],editType:\"calc\"},high:{valType:\"data_array\",dflt:[],editType:\"calc\"},low:{valType:\"data_array\",dflt:[],editType:\"calc\"},close:{valType:\"data_array\",dflt:[],editType:\"calc\"},line:{width:i({},s.width,{}),dash:i({},o,{}),editType:\"style\"},increasing:n(\"#3D9970\"),decreasing:n(\"#FF4136\"),text:{valType:\"string\",dflt:\"\",arrayOk:!0,editType:\"calc\"},tickwidth:{valType:\"number\",min:0,max:.5,dflt:.3,editType:\"calcIfAutorange\"}}},{\"../../components/drawing/attributes\":627,\"../../lib\":728,\"../scatter/attributes\":1031}],991:[function(t,e,r){\"use strict\";function n(t,e,r,n){o(t,e,r,n),r(n+\".line.color\"),r(n+\".line.width\",e.line.width),r(n+\".line.dash\",e.line.dash)}var i=t(\"../../lib\"),a=t(\"./ohlc_defaults\"),o=t(\"./direction_defaults\"),s=t(\"./attributes\"),l=t(\"./helpers\");e.exports=function(t,e,r,o){function u(r,n){return i.coerce(t,e,s,r,n)}if(l.pushDummyTransformOpts(t,e),0===a(t,e,u,o))return void(e.visible=!1);u(\"line.width\"),u(\"line.dash\"),n(t,e,u,\"increasing\"),n(t,e,u,\"decreasing\"),u(\"text\"),u(\"tickwidth\")}},{\"../../lib\":728,\"./attributes\":990,\"./direction_defaults\":992,\"./helpers\":993,\"./ohlc_defaults\":995}],992:[function(t,e,r){\"use strict\";e.exports=function(t,e,r,n){r(n+\".showlegend\"),!1===t.showlegend&&(e[n].showlegend=!1),r(n+\".name\",e.name+\" - \"+n)}},{}],993:[function(t,e,r){\"use strict\";function n(t){function e(t,e){return t===e?e>o?a=!0:e<o&&(a=!1):a=t<e,o=e,a}function r(t,r){return i(t)&&i(r)&&e(+t,+r)}function n(t,r){return i(t)&&i(r)&&!e(+t,+r)}var a=!0,o=null;return\"increasing\"===t?r:n}var i=t(\"fast-isnumeric\"),a=t(\"../../lib\");r.pushDummyTransformOpts=function(t,e){var r={type:e.type,_ephemeral:!0};Array.isArray(t.transforms)?t.transforms.push(r):t.transforms=[r]},r.clearEphemeralTransformOpts=function(t){var e=t.transforms;if(Array.isArray(e)){for(var r=0;r<e.length;r++)e[r]._ephemeral&&e.splice(r,1);0===e.length&&delete t.transforms}},r.copyOHLC=function(t,e){t.open&&(e.open=t.open),t.high&&(e.high=t.high),t.low&&(e.low=t.low),t.close&&(e.close=t.close)},r.makeTransform=function(t,e,r){var n=a.extendFlat([],t.transforms);return n[e.transformIndex]={type:t.type,direction:r,open:t.open,high:t.high,low:t.low,close:t.close},n},r.getFilterFn=function(t){return new n(t)},r.addRangeSlider=function(t,e){for(var r=!1,n=0;n<t.length;n++)if(!0===t[n].visible){r=!0;break}r&&(e.xaxis||(e.xaxis={}),e.xaxis.rangeslider||(e.xaxis.rangeslider={}))}},{\"../../lib\":728,\"fast-isnumeric\":131}],994:[function(t,e,r){\"use strict\";var n=t(\"../../plot_api/register\");e.exports={moduleType:\"trace\",name:\"ohlc\",basePlotModule:t(\"../../plots/cartesian\"),categories:[\"cartesian\",\"showLegend\"],meta:{},attributes:t(\"./attributes\"),supplyDefaults:t(\"./defaults\")},n(t(\"../scatter\")),n(t(\"./transform\"))},{\"../../plot_api/register\":762,\"../../plots/cartesian\":782,\"../scatter\":1042,\"./attributes\":990,\"./defaults\":991,\"./transform\":996}],995:[function(t,e,r){\"use strict\";var n=t(\"../../registry\");e.exports=function(t,e,r,i){var a,o=r(\"x\"),s=r(\"open\"),l=r(\"high\"),u=r(\"low\"),c=r(\"close\");return n.getComponentMethod(\"calendars\",\"handleTraceDefaults\")(t,e,[\"x\"],i),a=Math.min(s.length,l.length,u.length,c.length),o&&(a=Math.min(a,o.length))<o.length&&(e.x=o.slice(0,a)),a<s.length&&(e.open=s.slice(0,a)),a<l.length&&(e.high=l.slice(0,a)),a<u.length&&(e.low=u.slice(0,a)),a<c.length&&(e.close=c.slice(0,a)),a}},{\"../../registry\":846}],996:[function(t,e,r){\"use strict\";function n(t,e,r){var n={type:\"scatter\",mode:\"lines\",connectgaps:!1,visible:t.visible,opacity:t.opacity,xaxis:t.xaxis,yaxis:t.yaxis,hoverinfo:i(t),transforms:l.makeTransform(t,e,r)},a=t[r];return a&&s.extendFlat(n,{x:t.x||[0],xcalendar:t.xcalendar,y:[].concat(t.low).concat(t.high),text:t.text,name:a.name,showlegend:a.showlegend,line:a.line}),n}function i(t){var e=t.hoverinfo;if(\"all\"===e)return\"x+text+name\";var r=e.split(\"+\"),n=r.indexOf(\"y\"),i=r.indexOf(\"text\");return-1!==n&&(r.splice(n,1),-1===i&&r.push(\"text\")),r.join(\"+\")}function a(t,e,r){var n=r._fullInput,i=n.tickwidth,a=n._minDiff;if(!a){var o=t._fullData,l=[];a=1/0;var u;for(u=0;u<o.length;u++){var c=o[u]._fullInput;if(\"ohlc\"===c.type&&!0===c.visible&&c.xaxis===e._id&&(l.push(c),c.x&&c.x.length>1)){var h=s.simpleMap(c.x,e.d2c,0,r.xcalendar),f=s.distinctVals(h).minDiff;a=Math.min(a,f)}}for(a===1/0&&(a=1),u=0;u<l.length;u++)l[u]._minDiff=a}return a*i}var o=t(\"fast-isnumeric\"),s=t(\"../../lib\"),l=t(\"./helpers\"),u=t(\"../../plots/cartesian/axes\"),c=t(\"../../plots/cartesian/axis_ids\");r.moduleType=\"transform\",r.name=\"ohlc\",r.attributes={},r.supplyDefaults=function(t,e,r,n){return l.clearEphemeralTransformOpts(n),l.copyOHLC(t,e),t},r.transform=function(t,e){for(var r=[],i=0;i<t.length;i++){var a=t[i];\"ohlc\"===a.type?r.push(n(a,e,\"increasing\"),n(a,e,\"decreasing\")):r.push(a)}return l.addRangeSlider(r,e.layout),r},r.calcTransform=function(t,e,r){var n,i=r.direction,s=l.getFilterFn(i),h=c.getFromTrace(t,e,\"x\"),f=c.getFromTrace(t,e,\"y\"),d=a(t,h,e),p=e.open,m=e.high,v=e.low,g=e.close,y=e.text,b=p.length,x=[],_=[],w=[];n=e._fullInput.x?function(t){var r=e.x[t],n=e.xcalendar,i=h.d2c(r,0,n);x.push(h.c2d(i-d,0,n),r,r,r,r,h.c2d(i+d,0,n),null)}:function(t){x.push(t-d,t,t,t,t,t+d,null)};for(var M=function(t,e){return u.tickText(t,t.c2l(e),\"hover\").text},k=e._fullInput.hoverinfo,A=k.split(\"+\"),T=\"all\"===k,S=T||-1!==A.indexOf(\"y\"),E=T||-1!==A.indexOf(\"text\"),L=Array.isArray(y)?function(t){return y[t]||\"\"}:function(){return y},C=0;C<b;C++)s(p[C],g[C])&&o(m[C])&&o(v[C])&&(n(C),function(t,e,r,n){_.push(t,t,e,r,n,n,null)}(p[C],m[C],v[C],g[C]),function(t,e,r,n,i){var a=[];S&&(a.push(\"Open: \"+M(f,e)),a.push(\"High: \"+M(f,r)),a.push(\"Low: \"+M(f,n)),a.push(\"Close: \"+M(f,i))),E&&a.push(L(t));var o=a.join(\"<br>\");w.push(o,o,o,o,o,o,null)}(C,p[C],m[C],v[C],g[C]));e.x=x,e.y=_,e.text=w}},{\"../../lib\":728,\"../../plots/cartesian/axes\":772,\"../../plots/cartesian/axis_ids\":775,\"./helpers\":993,\"fast-isnumeric\":131}],997:[function(t,e,r){\"use strict\";var n=t(\"../../components/colorscale/color_attributes\"),i=t(\"../../components/colorbar/attributes\"),a=t(\"../../components/colorscale/scales\"),o=t(\"../../plots/cartesian/layout_attributes\"),s=t(\"../../plots/font_attributes\"),l=t(\"../../lib/extend\"),u=l.extendDeepAll,c=l.extendFlat;e.exports={domain:{x:{valType:\"info_array\",items:[{valType:\"number\",min:0,max:1,editType:\"calc\"},{valType:\"number\",min:0,max:1,editType:\"calc\"}],dflt:[0,1],editType:\"calc\"},y:{valType:\"info_array\",items:[{valType:\"number\",min:0,max:1,editType:\"calc\"},{valType:\"number\",min:0,max:1,editType:\"calc\"}],dflt:[0,1],editType:\"calc\"},editType:\"calc\"},labelfont:s({editType:\"calc\"}),tickfont:s({editType:\"calc\"}),rangefont:s({editType:\"calc\"}),dimensions:{_isLinkedToArray:\"dimension\",label:{valType:\"string\",editType:\"calc\"},tickvals:c({},o.tickvals,{editType:\"calc\"}),ticktext:c({},o.ticktext,{editType:\"calc\"}),tickformat:{valType:\"string\",dflt:\"3s\",editType:\"calc\"},visible:{valType:\"boolean\",dflt:!0,editType:\"calc\"},range:{valType:\"info_array\",items:[{valType:\"number\",editType:\"calc\"},{valType:\"number\",editType:\"calc\"}],editType:\"calc\"},constraintrange:{valType:\"info_array\",items:[{valType:\"number\",editType:\"calc\"},{valType:\"number\",editType:\"calc\"}],editType:\"calc\"},values:{valType:\"data_array\",dflt:[],editType:\"calc\"},editType:\"calc\"},line:c(u(n(\"line\",\"calc\"),{colorscale:{dflt:a.Viridis},autocolorscale:{dflt:!1}}),{showscale:{valType:\"boolean\",dflt:!1,editType:\"calc\"},colorbar:i,editType:\"calc\"})}},{\"../../components/colorbar/attributes\":605,\"../../components/colorscale/color_attributes\":611,\"../../components/colorscale/scales\":622,\"../../lib/extend\":717,\"../../plots/cartesian/layout_attributes\":783,\"../../plots/font_attributes\":796}],998:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../../plots/plots\"),a=t(\"./plot\"),o=t(\"../../constants/xmlns_namespaces\"),s=t(\"./constants\");r.name=\"parcoords\",r.attr=\"type\",r.plot=function(t){var e=i.getSubplotCalcData(t.calcdata,\"parcoords\",\"parcoords\");e.length&&a(t,e)},r.clean=function(t,e,r,n){var i=n._has&&n._has(\"parcoords\"),a=e._has&&e._has(\"parcoords\");i&&!a&&(n._paperdiv.selectAll(\".parcoords-line-layers\").remove(),n._paperdiv.selectAll(\".parcoords-line-layers\").remove(),n._paperdiv.selectAll(\".parcoords\").remove(),n._paperdiv.selectAll(\".parcoords\").remove(),n._glimages.selectAll(\"*\").remove())},r.toSVG=function(t){function e(e){var n=this,i=n.toDataURL(\"image/png\"),a=r.append(\"svg:image\"),l=t._fullLayout._size,u=t._fullData[e.model.key].domain;a.attr({xmlns:o.svg,\"xlink:href\":i,x:l.l+l.w*u.x[0]-s.overdrag,y:l.t+l.h*(1-u.y[1]),width:(u.x[1]-u.x[0])*l.w+2*s.overdrag,height:(u.y[1]-u.y[0])*l.h,preserveAspectRatio:\"none\"})}var r=t._fullLayout._glimages,i=n.select(t).selectAll(\".svg-container\");i.filter(function(t,e){return e===i.size()-1}).selectAll(\".parcoords-lines.context, .parcoords-lines.focus\").each(e),window.setTimeout(function(){n.selectAll(\"#filterBarPattern\").attr(\"id\",\"filterBarPattern\")},60)}},{\"../../constants/xmlns_namespaces\":709,\"../../plots/plots\":831,\"./constants\":1001,\"./plot\":1006,d3:122}],999:[function(t,e,r){\"use strict\";var n=t(\"../../components/colorscale/has_colorscale\"),i=t(\"../../components/colorscale/calc\"),a=t(\"../../lib\");e.exports=function(t,e){var r=!!e.line.colorscale&&a.isArray(e.line.color),o=r?e.line.color:Array.apply(0,Array(e.dimensions.reduce(function(t,e){return Math.max(t,e.values.length)},0))).map(function(){return.5}),s=r?e.line.colorscale:[[0,e.line.color],[1,e.line.color]];return n(e,\"line\")&&i(e,e.line.color,\"line\",\"c\"),[{lineColor:o,cscale:s}]}},{\"../../components/colorscale/calc\":610,\"../../components/colorscale/has_colorscale\":617,\"../../lib\":728}],1e3:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../../lib\"),a=t(\"../../plots/plots\"),o=t(\"../../components/colorscale\"),s=t(\"../../components/colorbar/draw\");e.exports=function(t,e){var r=e[0].trace,l=r.line,u=\"cb\"+r.uid;if(t._fullLayout._infolayer.selectAll(\".\"+u).remove(),void 0===l||!l.showscale)return void a.autoMargin(t,u);var c=l.color,h=l.cmin,f=l.cmax;n(h)||(h=i.aggNums(Math.min,null,c)),n(f)||(f=i.aggNums(Math.max,null,c));var d=e[0].t.cb=s(t,u),p=o.makeColorScaleFunc(o.extractScale(l.colorscale,h,f),{noNumericCheck:!0});d.fillcolor(p).filllevels({start:h,end:f,size:(f-h)/254}).options(l.colorbar)()}},{\"../../components/colorbar/draw\":607,\"../../components/colorscale\":618,\"../../lib\":728,\"../../plots/plots\":831,\"fast-isnumeric\":131}],1001:[function(t,e,r){\"use strict\";e.exports={maxDimensionCount:60,overdrag:45,verticalPadding:2,tickDistance:50,canvasPixelRatio:1,blockLineCount:5e3,scatter:!1,layers:[\"contextLineLayer\",\"focusLineLayer\",\"pickLineLayer\"],axisTitleOffset:28,axisExtentOffset:10,bar:{width:4,capturewidth:10,fillcolor:\"magenta\",fillopacity:1,strokecolor:\"white\",strokeopacity:1,strokewidth:1,handleheight:16,handleopacity:1,handleoverlap:0}}},{}],1002:[function(t,e,r){\"use strict\";function n(t,e,r,n,i){i(\"line.color\",r),s(t,\"line\")&&a.isArray(t.line.color)?(i(\"line.colorscale\"),l(t,e,n,i,{prefix:\"line.\",cLetter:\"c\"})):i(\"line.color\",r)}function i(t,e){function r(t,e){return a.coerce(n,i,o.dimensions,t,e)}var n,i,s,l=t.dimensions||[],c=e.dimensions=[],h=1/0;for(l.length>u&&(a.log(\"parcoords traces support up to \"+u+\" dimensions at the moment\"),l.splice(u)),s=0;s<l.length;s++)if(n=l[s],i={},a.isPlainObject(n)){var f=r(\"values\"),d=r(\"visible\",f.length>0);d&&(r(\"label\"),r(\"tickvals\"),r(\"ticktext\"),r(\"tickformat\"),r(\"range\"),r(\"constraintrange\"),h=Math.min(h,i.values.length)),i._index=s,c.push(i)}if(isFinite(h))for(s=0;s<c.length;s++)i=c[s],i.visible&&i.values.length>h&&(i.values=i.values.slice(0,h));return c}var a=t(\"../../lib\"),o=t(\"./attributes\"),s=t(\"../../components/colorscale/has_colorscale\"),l=t(\"../../components/colorscale/defaults\"),u=t(\"./constants\").maxDimensionCount;e.exports=function(t,e,r,s){function l(r,n){return a.coerce(t,e,o,r,n)}var u=i(t,e);n(t,e,r,s,l),l(\"domain.x\"),l(\"domain.y\"),Array.isArray(u)&&u.length||(e.visible=!1);var c={family:s.font.family,size:Math.round(s.font.size*(10/12)),color:s.font.color};a.coerceFont(l,\"labelfont\",c),a.coerceFont(l,\"tickfont\",c),a.coerceFont(l,\"rangefont\",c)}},{\"../../components/colorscale/defaults\":613,\"../../components/colorscale/has_colorscale\":617,\"../../lib\":728,\"./attributes\":997,\"./constants\":1001}],1003:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.supplyDefaults=t(\"./defaults\"),n.calc=t(\"./calc\"),n.plot=t(\"./plot\"),n.colorbar=t(\"./colorbar\"),n.moduleType=\"trace\",n.name=\"parcoords\",n.basePlotModule=t(\"./base_plot\"),n.categories=[\"gl\",\"noOpacity\"],n.meta={},e.exports=n},{\"./attributes\":997,\"./base_plot\":998,\"./calc\":999,\"./colorbar\":1e3,\"./defaults\":1002,\"./plot\":1006}],1004:[function(t,e,r){\"use strict\";function n(t){t.read({x:0,y:0,width:1,height:1,data:x})}function i(t,e,r,n,i){var a=t._gl;a.enable(a.SCISSOR_TEST),a.scissor(e,r,n,i),t.clear({color:[0,0,0,0],depth:1})}function a(t,e,r,a,o,s){function l(n){var c;c=Math.min(a,o-n*a),s.offset=g*n*a,s.count=g*c,0===n&&(window.cancelAnimationFrame(r.currentRafs[u]),delete r.currentRafs[u],i(t,s.scissorX,s.scissorY,s.scissorWidth,s.viewBoxSize[1])),r.clearOnly||(e(s),n*a+c<o&&(r.currentRafs[u]=window.requestAnimationFrame(function(){l(n+1)})),r.drawCompleted=!1)}var u=s.key;r.drawCompleted||(n(t),r.drawCompleted=!0),l(0)}function o(t){return Math.max(m,Math.min(1-m,t))}function s(t,e,r){for(var n=[],i=0;i<256;i++){var a=t(i/255);n.push((e?b:a).concat(r))}return n}function l(t,e){return(t>>>8*e)%256/255}function u(t,e,r,n){for(var i=[],a=0;a<t;a++)for(var s=0;s<v;s++)i.push(s<e?r[s].paddedUnitValues[a]:s===v-1?o(n[a]):s>=v-4?l(a,v-2-s):.5);return i}function c(t,e,r){var n,i,a,o=[];for(i=0;i<t;i++)for(a=0;a<g;a++)for(n=0;n<y;n++)o.push(e[i*v+r*y+n]),r*y+n===v-1&&a%2==0&&(o[o.length-1]*=-1);return o}function h(t,e){var r=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15],n=r.map(function(r){return c(t,e,r)}),i={};return n.forEach(function(t,e){i[\"p\"+e.toString(16)]=t}),i}function f(t,e,r){return t+e<=r}var d=t(\"regl\"),p=t(\"./constants\").verticalPadding,m=1e-6,v=64,g=2,y=4,b=[119,119,119],x=new Uint8Array(4),_=new Uint8Array(4);e.exports=function(t,e,r,n,o,l,c,m,v,g){function y(t){j[0]=t[0],j[1]=t[1]}function b(t,e,i,a,o,s,l,u,c,h,d){var v,g,y,b,x=[t,e],_=p/s,w=[0,1].map(function(){return[0,1,2,3].map(function(){return new Float32Array(16)})}),M=[0,1].map(function(){return[0,1,2,3].map(function(){return new Float32Array(16)})});for(v=0;v<2;v++)for(b=x[v],g=0;g<4;g++)for(y=0;y<16;y++){var k=y+16*g;w[v][g][y]=y+16*g===b?1:0,M[v][g][y]=(!m&&f(y,16*g,z)?A[0===k?0:1+(k-1)%(A.length-1)].filter[v]:v)+(2*v-1)*_}return{key:l,resolution:[r,n],viewBoxPosition:[i+I,a],viewBoxSize:[o,s],i:t,ii:e,dim1A:w[0][0],dim1B:w[0][1],dim1C:w[0][2],dim1D:w[0][3],dim2A:w[1][0],dim2B:w[1][1],dim2C:w[1][2],dim2D:w[1][3],loA:M[0][0],loB:M[0][1],loC:M[0][2],loD:M[0][3],hiA:M[1][0],hiB:M[1][1],hiC:M[1][2],hiD:M[1][3],colorClamp:j,scatter:u||0,scissorX:c===h?0:i+I,scissorWidth:(c===d?r-i+I:o+.5)+(c===h?i+I:0),scissorY:a,scissorHeight:s}}function x(t,o,s){var l,u,c,h=1/0,f=-1/0;for(l=0;l<z;l++)t[l].dim2.canvasX>f&&(f=t[l].dim2.canvasX,c=l),t[l].dim1.canvasX<h&&(h=t[l].dim1.canvasX,u=l);for(0===z&&i(O,0,0,r,n),l=0;l<z;l++){var d=t[l],p=d.dim1,m=p.crossfilterDimensionIndex,v=d.canvasX,y=d.canvasY,x=d.dim2,_=x.crossfilterDimensionIndex,w=d.panelSizeX,M=d.panelSizeY,A=v+w;if(o||!N[m]||N[m][0]!==v||N[m][1]!==A){N[m]=[v,A];var T=b(m,_,v,y,w,M,p.crossfilterDimensionIndex,g||p.scatter?1:0,l,u,c);k.clearOnly=s,a(O,F,k,o?e.blockLineCount:S,S,T)}}}function w(t,e){return O.read({x:t,y:e,width:1,height:1,data:_}),_}function M(t,e,r,n){var i=new Uint8Array(4*r*n);return O.read({x:t,y:e,width:r,height:n,data:i}),i}var k={currentRafs:{},drawCompleted:!0,clearOnly:!1},A=o.slice(),T=A.length,S=A[0]?A[0].values.length:0,E=m,L=v?e.color.map(function(t,r){return r/e.color.length}):e.color,C=Math.max(1/255,Math.pow(1/L.length,1/3)),I=e.canvasOverdrag,z=l.length,D=u(S,T,A,L),P=h(S,D),O=d({canvas:t,attributes:{preserveDrawingBuffer:!0,antialias:!v}}),R=O.texture({shape:[256,1],format:\"rgba\",type:\"uint8\",mag:\"nearest\",min:\"nearest\",data:s(c,m,Math.round(255*(m?C:1)))}),F=O({profile:!1,blend:{enable:E,func:{srcRGB:\"src alpha\",dstRGB:\"one minus src alpha\",srcAlpha:1,dstAlpha:1},equation:{rgb:\"add\",alpha:\"add\"},color:[0,0,0,0]},depth:{enable:!E,mask:!0,func:\"less\",range:[0,1]},cull:{enable:!0,face:\"back\"},scissor:{enable:!0,box:{x:O.prop(\"scissorX\"),y:O.prop(\"scissorY\"),width:O.prop(\"scissorWidth\"),height:O.prop(\"scissorHeight\")}},dither:!1,vert:v?\"precision highp float;\\n#define GLSLIFY 1\\n\\nattribute vec4 p0, p1, p2, p3,\\n p4, p5, p6, p7,\\n p8, p9, pa, pb,\\n pc, pd, pe;\\n\\nattribute vec4 pf;\\n\\nuniform mat4 dim1A, dim2A, dim1B, dim2B, dim1C, dim2C, dim1D, dim2D,\\n loA, hiA, loB, hiB, loC, hiC, loD, hiD;\\n\\nuniform vec2 resolution,\\n viewBoxPosition,\\n viewBoxSize;\\n\\nuniform sampler2D palette;\\n\\nuniform vec2 colorClamp;\\n\\nuniform float scatter;\\n\\nvarying vec4 fragColor;\\n\\nvec4 zero = vec4(0, 0, 0, 0);\\nvec4 unit = vec4(1, 1, 1, 1);\\nvec2 xyProjection = vec2(1, 1);\\n\\nmat4 mclamp(mat4 m, mat4 lo, mat4 hi) {\\n return mat4(clamp(m[0], lo[0], hi[0]),\\n clamp(m[1], lo[1], hi[1]),\\n clamp(m[2], lo[2], hi[2]),\\n clamp(m[3], lo[3], hi[3]));\\n}\\n\\nbool mshow(mat4 p, mat4 lo, mat4 hi) {\\n return mclamp(p, lo, hi) == p;\\n}\\n\\nfloat val(mat4 p, mat4 v) {\\n return dot(matrixCompMult(p, v) * unit, unit);\\n}\\n\\nvoid main() {\\n\\n float x = 0.5 * sign(pf[3]) + 0.5;\\n float prominence = abs(pf[3]);\\n float depth = 1.0 - prominence;\\n\\n mat4 pA = mat4(p0, p1, p2, p3);\\n mat4 pB = mat4(p4, p5, p6, p7);\\n mat4 pC = mat4(p8, p9, pa, pb);\\n mat4 pD = mat4(pc, pd, pe, abs(pf));\\n\\n float show = float(mshow(pA, loA, hiA) &&\\n mshow(pB, loB, hiB) &&\\n mshow(pC, loC, hiC) &&\\n mshow(pD, loD, hiD));\\n\\n vec2 yy = show * vec2(val(pA, dim2A) + val(pB, dim2B) + val(pC, dim2C) + val(pD, dim2D),\\n val(pA, dim1A) + val(pB, dim1B) + val(pC, dim1C) + val(pD, dim1D));\\n\\n vec2 dimensionToggle = vec2(x, 1.0 - x);\\n\\n vec2 scatterToggle = vec2(scatter, 1.0 - scatter);\\n\\n float y = dot(yy, dimensionToggle);\\n mat2 xy = mat2(viewBoxSize * yy + dimensionToggle, viewBoxSize * vec2(x, y));\\n\\n vec2 viewBoxXY = viewBoxPosition + xy * scatterToggle;\\n\\n float depthOrHide = depth + 2.0 * (1.0 - show);\\n\\n gl_Position = vec4(\\n xyProjection * (2.0 * viewBoxXY / resolution - 1.0),\\n depthOrHide,\\n 1.0\\n );\\n\\n // pick coloring\\n fragColor = vec4(pf.rgb, 1.0);\\n}\\n\":\"precision highp float;\\n#define GLSLIFY 1\\n\\nattribute vec4 p0, p1, p2, p3,\\n p4, p5, p6, p7,\\n p8, p9, pa, pb,\\n pc, pd, pe;\\n\\nattribute vec4 pf;\\n\\nuniform mat4 dim1A, dim2A, dim1B, dim2B, dim1C, dim2C, dim1D, dim2D,\\n loA, hiA, loB, hiB, loC, hiC, loD, hiD;\\n\\nuniform vec2 resolution,\\n viewBoxPosition,\\n viewBoxSize;\\n\\nuniform sampler2D palette;\\n\\nuniform vec2 colorClamp;\\n\\nuniform float scatter;\\n\\nvarying vec4 fragColor;\\n\\nvec4 zero = vec4(0, 0, 0, 0);\\nvec4 unit = vec4(1, 1, 1, 1);\\nvec2 xyProjection = vec2(1, 1);\\n\\nmat4 mclamp(mat4 m, mat4 lo, mat4 hi) {\\n return mat4(clamp(m[0], lo[0], hi[0]),\\n clamp(m[1], lo[1], hi[1]),\\n clamp(m[2], lo[2], hi[2]),\\n clamp(m[3], lo[3], hi[3]));\\n}\\n\\nbool mshow(mat4 p, mat4 lo, mat4 hi) {\\n return mclamp(p, lo, hi) == p;\\n}\\n\\nfloat val(mat4 p, mat4 v) {\\n return dot(matrixCompMult(p, v) * unit, unit);\\n}\\n\\nvoid main() {\\n\\n float x = 0.5 * sign(pf[3]) + 0.5;\\n float prominence = abs(pf[3]);\\n float depth = 1.0 - prominence;\\n\\n mat4 pA = mat4(p0, p1, p2, p3);\\n mat4 pB = mat4(p4, p5, p6, p7);\\n mat4 pC = mat4(p8, p9, pa, pb);\\n mat4 pD = mat4(pc, pd, pe, abs(pf));\\n\\n float show = float(mshow(pA, loA, hiA) &&\\n mshow(pB, loB, hiB) &&\\n mshow(pC, loC, hiC) &&\\n mshow(pD, loD, hiD));\\n\\n vec2 yy = show * vec2(val(pA, dim2A) + val(pB, dim2B) + val(pC, dim2C) + val(pD, dim2D),\\n val(pA, dim1A) + val(pB, dim1B) + val(pC, dim1C) + val(pD, dim1D));\\n\\n vec2 dimensionToggle = vec2(x, 1.0 - x);\\n\\n vec2 scatterToggle = vec2(scatter, 1.0 - scatter);\\n\\n float y = dot(yy, dimensionToggle);\\n mat2 xy = mat2(viewBoxSize * yy + dimensionToggle, viewBoxSize * vec2(x, y));\\n\\n vec2 viewBoxXY = viewBoxPosition + xy * scatterToggle;\\n\\n float depthOrHide = depth + 2.0 * (1.0 - show);\\n\\n gl_Position = vec4(\\n xyProjection * (2.0 * viewBoxXY / resolution - 1.0),\\n depthOrHide,\\n 1.0\\n );\\n\\n // visible coloring\\n float clampedColorIndex = clamp((prominence - colorClamp[0]) / (colorClamp[1] - colorClamp[0]), 0.0, 1.0);\\n fragColor = texture2D(palette, vec2((clampedColorIndex * 255.0 + 0.5) / 256.0, 0.5));\\n}\\n\",frag:\"precision lowp float;\\n#define GLSLIFY 1\\n\\nvarying vec4 fragColor;\\n\\nvoid main() {\\n gl_FragColor = fragColor;\\n}\\n\",primitive:\"lines\",lineWidth:1,attributes:P,uniforms:{resolution:O.prop(\"resolution\"),viewBoxPosition:O.prop(\"viewBoxPosition\"),viewBoxSize:O.prop(\"viewBoxSize\"),dim1A:O.prop(\"dim1A\"),dim2A:O.prop(\"dim2A\"),dim1B:O.prop(\"dim1B\"),dim2B:O.prop(\"dim2B\"),dim1C:O.prop(\"dim1C\"),dim2C:O.prop(\"dim2C\"),dim1D:O.prop(\"dim1D\"),dim2D:O.prop(\"dim2D\"),loA:O.prop(\"loA\"),hiA:O.prop(\"hiA\"),loB:O.prop(\"loB\"),hiB:O.prop(\"hiB\"),loC:O.prop(\"loC\"),hiC:O.prop(\"hiC\"),loD:O.prop(\"loD\"),hiD:O.prop(\"hiD\"),palette:R,colorClamp:O.prop(\"colorClamp\"),scatter:O.prop(\"scatter\")},offset:O.prop(\"offset\"),count:O.prop(\"count\")}),j=[0,1],N=[];return{setColorDomain:y,render:x,readPixel:w,readPixels:M,destroy:O.destroy}}},{\"./constants\":1001,regl:499}],1005:[function(t,e,r){\"use strict\";function n(t){return t.key}function i(t){return[t]}function a(t){return!(\"visible\"in t)||t.visible}function o(t){var e=t.range?t.range[0]:w.min(t.values),r=t.range?t.range[1]:w.max(t.values);return!isNaN(e)&&isFinite(e)||(e=0),!isNaN(r)&&isFinite(r)||(r=0),e===r&&(void 0===e?(e=0,r=1):0===e?(e-=1,r+=1):(e*=.9,r*=1.1)),[e,r]}function s(t,e){var r,n,i,a,o;for(r=0,n=t.range(),i=1/0,a=n[0],o;r<n.length;r++){if((o=Math.abs(n[r]-e))>i)return a;i=o,a=n[r]}return n[n.length-1]}function l(t,e){return function(r,n){if(e){var i=e[n];return null===i||void 0===i?t(r):i}return t(r)}}function u(t,e,r){var n=o(r),i=r.ticktext;return r.tickvals?w.scale.ordinal().domain(r.tickvals.map(l(w.format(r.tickformat),i))).range(r.tickvals.map(function(t){return(t-n[0])/(n[1]-n[0])}).map(function(r){return t-e+r*(e-(t-e))})):w.scale.linear().domain(n).range([t-e,e])}function c(t,e){return w.scale.linear().range([t-e,e])}function h(t){return w.scale.linear().domain(o(t))}function f(t){var e=o(t);return t.tickvals&&w.scale.ordinal().domain(t.tickvals).range(t.tickvals.map(function(t){return(t-e[0])/(e[1]-e[0])}))}function d(t){var e=t.map(function(t){return t[0]}),r=t.map(function(t){return t[1]}),n=r.map(function(t){return w.rgb(t)}),i=function(t){return function(e){return e[t]}},a=\"rgb\".split(\"\").map(function(t){return w.scale.linear().clamp(!0).domain(e).range(n.map(i(t)))});return function(t){return a.map(function(e){return e(t)})}}function p(t){return t[0]}function m(t,e,r){var n=p(e),i=n.trace,o=n.lineColor,s=n.cscale,l=i.line,u=i.domain,c=i.dimensions,f=t.width,m=i.labelfont,v=i.tickfont,g=i.rangefont,y=_.extendDeep({},l,{color:o.map(h({values:o,range:[l.cmin,l.cmax]})),blockLineCount:x.blockLineCount,canvasOverdrag:x.overdrag*x.canvasPixelRatio}),b=Math.floor(f*(u.x[1]-u.x[0])),w=Math.floor(t.height*(u.y[1]-u.y[0])),M=t.margin||{l:80,r:80,t:100,b:80},k=b,A=w;return{key:r,colCount:c.filter(a).length,dimensions:c,tickDistance:x.tickDistance,unitToColor:d(s),lines:y,labelFont:m,tickFont:v,rangeFont:g,translateX:u.x[0]*f,translateY:t.height-u.y[1]*t.height,pad:M,canvasWidth:k*x.canvasPixelRatio+2*y.canvasOverdrag,canvasHeight:A*x.canvasPixelRatio,width:k,height:A,canvasPixelRatio:x.canvasPixelRatio}}function v(t){var e=t.width,r=t.height,n=t.dimensions,i=t.canvasPixelRatio,o=function(r){return e*r/Math.max(1,t.colCount-1)},s=x.verticalPadding/(r*i),l=1-2*s,d=function(t){return s+l*t},p={key:t.key,xScale:o,model:t},m={};return p.dimensions=n.filter(a).map(function(e,n){var a=h(e),s=m[e.label];return m[e.label]=(s||0)+1,{key:e.label+(s?\"__\"+s:\"\"),label:e.label,tickFormat:e.tickformat,tickvals:e.tickvals,ticktext:e.ticktext,ordinal:!!e.tickvals,scatter:x.scatter||e.scatter,xIndex:n,crossfilterDimensionIndex:n,visibleIndex:e._index,height:r,values:e.values,paddedUnitValues:e.values.map(a).map(d),xScale:o,x:o(n),canvasX:o(n)*i,unitScale:c(r,x.verticalPadding),domainScale:u(r,x.verticalPadding,e),ordinalScale:f(e),domainToUnitScale:a,filter:e.constraintrange?e.constraintrange.map(a):[0,1],parent:p,model:t}}),p}function g(t){return x.layers.map(function(e){return{key:e,context:\"contextLineLayer\"===e,pick:\"pickLineLayer\"===e,viewModel:t,model:t.model}})}function y(t){t.classed(\"axisExtentText\",!0).attr(\"text-anchor\",\"middle\").style(\"cursor\",\"default\").style(\"user-select\",\"none\")}var b=t(\"./lines\"),x=t(\"./constants\"),_=t(\"../../lib\"),w=t(\"d3\"),M=t(\"../../components/drawing\");e.exports=function(t,e,r,a,o){function l(t){var e=t.selectAll(\"defs\").data(i,n);e.enter().append(\"defs\");var r=e.selectAll(\"#filterBarPattern\").data(i,n);r.enter().append(\"pattern\").attr(\"id\",\"filterBarPattern\").attr(\"patternUnits\",\"userSpaceOnUse\"),r.attr(\"x\",-x.bar.width).attr(\"width\",x.bar.capturewidth).attr(\"height\",function(t){return t.model.height});var a=r.selectAll(\"rect\").data(i,n);a.enter().append(\"rect\").attr(\"shape-rendering\",\"crispEdges\"),a.attr(\"height\",function(t){return t.model.height}).attr(\"width\",x.bar.width).attr(\"x\",x.bar.width/2).attr(\"fill\",x.bar.fillcolor).attr(\"fill-opacity\",x.bar.fillopacity).attr(\"stroke\",x.bar.strokecolor).attr(\"stroke-opacity\",x.bar.strokeopacity).attr(\"stroke-width\",x.bar.strokewidth)}function u(t){return t.dimensions.some(function(t){return 0!==t.filter[0]||1!==t.filter[1]})}function c(t,e){for(var r=e.panels||(e.panels=[]),n=t.each(function(t){return t})[e.key].map(function(t){return t.__data__}),i=n.length-1,a=0;a<1;a++)for(var o=0;o<i;o++){var s=r[o+a*i]||(r[o+a*i]={}),l=n[o],u=n[o+1];s.dim1=l,s.dim2=u,s.canvasX=l.canvasX,s.panelSizeX=u.canvasX-l.canvasX,s.panelSizeY=e.model.canvasHeight/1,s.y=a*s.panelSizeY,s.canvasY=e.model.canvasHeight-s.y-s.panelSizeY}}function h(t,e){for(var r=e.panels||(e.panels=[]),n=t.each(function(t){return t})[e.key].map(function(t){return t.__data__}),i=n.length-1,a=i,o=0;o<i;o++)for(var s=0;s<i;s++){var l=r[s+o*i]||(r[s+o*i]={}),u=n[s],c=n[s+1];l.dim1=n[o+1],l.dim2=c,l.canvasX=u.canvasX,l.panelSizeX=c.canvasX-u.canvasX,l.panelSizeY=e.model.canvasHeight/a,l.y=o*l.panelSizeY,l.canvasY=e.model.canvasHeight-l.y-l.panelSizeY}}function f(t,e){return(x.scatter?h:c)(t,e)}function d(t){return t.ordinal?function(){return\"\"}:w.format(t.tickFormat)}function _(){W=!0,T=!0}function k(t){S=!1;var e=t.parent,r=t.brush.extent(),n=e.dimensions,i=n[t.xIndex].filter,a=W&&r[0]===r[1];a&&(t.brush.clear(),w.select(this).select(\"rect.extent\").attr(\"y\",-100));var o=a?[0,1]:r.slice();if(o[0]!==i[0]||o[1]!==i[1]){n[t.xIndex].filter=o,e.focusLineLayer&&e.focusLineLayer.render(e.panels,!0);var s=u(e);!X&&s?(e.contextLineLayer&&e.contextLineLayer.render(e.panels,!0),X=!0):X&&!s&&(e.contextLineLayer&&e.contextLineLayer.render(e.panels,!0,!0),X=!1)}W=!1}function A(t){var e=t.parent,r=t.brush.extent(),n=r[0]===r[1],i=e.dimensions,a=i[t.xIndex].filter;if(!n&&t.ordinal&&(a[0]=s(t.ordinalScale,a[0]),a[1]=s(t.ordinalScale,a[1]),a[0]===a[1]&&(a[0]=Math.max(0,a[0]-.05),a[1]=Math.min(1,a[1]+.05)),w.select(this).transition().duration(150).call(t.brush.extent(a)),e.focusLineLayer.render(e.panels,!0)),e.pickLineLayer&&e.pickLineLayer.render(e.panels,!0),S=!0,T=\"ending\",o&&o.filterChanged){var l=t.domainToUnitScale.invert,u=a.map(l);o.filterChanged(e.key,t.visibleIndex,u)}}var T=!1,S=!0,E=r.filter(function(t){return p(t).trace.visible}).map(m.bind(0,a)).map(v);t.selectAll(\".parcoords-line-layers\").remove();var L=t.selectAll(\".parcoords-line-layers\").data(E,n);L.enter().insert(\"div\",\".\"+e.attr(\"class\").split(\" \").join(\" .\")).classed(\"parcoords-line-layers\",!0).style(\"box-sizing\",\"content-box\"),L.style(\"transform\",function(t){return\"translate(\"+(t.model.translateX-x.overdrag)+\"px,\"+t.model.translateY+\"px)\"});var C=L.selectAll(\".parcoords-lines\").data(g,n),I={renderers:[],dimensions:[]},z=null;C.enter().append(\"canvas\").attr(\"class\",function(t){return\"parcoords-lines \"+(t.context?\"context\":t.pick?\"pick\":\"focus\")}).style(\"box-sizing\",\"content-box\").style(\"float\",\"left\").style(\"clear\",\"both\").style(\"left\",0).style(\"overflow\",\"visible\").style(\"position\",function(t,e){return\"absolute\"}).filter(function(t){return t.pick}).on(\"mousemove\",function(t){if(S&&t.lineLayer&&o&&o.hover){var e=w.event,r=this.width,n=this.height,i=w.mouse(this),a=i[0],s=i[1];if(a<0||s<0||a>=r||s>=n)return;var l=t.lineLayer.readPixel(a,n-1-s),u=0!==l[3],c=u?l[2]+256*(l[1]+256*l[0]):null,h={x:a,y:s,clientX:e.clientX,clientY:e.clientY,dataIndex:t.model.key,curveNumber:c};c!==z&&(u?o.hover(h):o.unhover&&o.unhover(h),z=c)}}),C.style(\"margin\",function(t){var e=t.model.pad;return e.t+\"px \"+e.r+\"px \"+e.b+\"px \"+e.l+\"px\"}).attr(\"width\",function(t){return t.model.canvasWidth}).attr(\"height\",function(t){return t.model.canvasHeight}).style(\"width\",function(t){return t.model.width+2*x.overdrag+\"px\"}).style(\"height\",function(t){return t.model.height+\"px\"}).style(\"opacity\",function(t){return t.pick?.01:1}),e.style(\"background\",\"rgba(255, 255, 255, 0)\");var D=e.selectAll(\".parcoords\").data(E,n);D.exit().remove(),D.enter().append(\"g\").classed(\"parcoords\",!0).attr(\"overflow\",\"visible\").style(\"box-sizing\",\"content-box\").style(\"position\",\"absolute\").style(\"left\",0).style(\"overflow\",\"visible\").style(\"shape-rendering\",\"crispEdges\").style(\"pointer-events\",\"none\").call(l),D.attr(\"width\",function(t){return t.model.width+t.model.pad.l+t.model.pad.r}).attr(\"height\",function(t){return t.model.height+t.model.pad.t+t.model.pad.b\n", "}).attr(\"transform\",function(t){return\"translate(\"+t.model.translateX+\",\"+t.model.translateY+\")\"});var P=D.selectAll(\".parcoordsControlView\").data(i,n);P.enter().append(\"g\").classed(\"parcoordsControlView\",!0).style(\"box-sizing\",\"content-box\"),P.attr(\"transform\",function(t){return\"translate(\"+t.model.pad.l+\",\"+t.model.pad.t+\")\"});var O=P.selectAll(\".yAxis\").data(function(t){return t.dimensions},n);O.enter().append(\"g\").classed(\"yAxis\",!0).each(function(t){I.dimensions.push(t)}),P.each(function(t){f(O,t)}),C.each(function(t){t.lineLayer=b(this,t.model.lines,t.model.canvasWidth,t.model.canvasHeight,t.viewModel.dimensions,t.viewModel.panels,t.model.unitToColor,t.context,t.pick,x.scatter),t.viewModel[t.key]=t.lineLayer,I.renderers.push(function(){t.lineLayer.render(t.viewModel.panels,!0)}),t.lineLayer.render(t.viewModel.panels,!t.context)}),O.attr(\"transform\",function(t){return\"translate(\"+t.xScale(t.xIndex)+\", 0)\"}),O.call(w.behavior.drag().origin(function(t){return t}).on(\"drag\",function(t){var e=t.parent;S=!1,T||(t.x=Math.max(-x.overdrag,Math.min(t.model.width+x.overdrag,w.event.x)),t.canvasX=t.x*t.model.canvasPixelRatio,O.sort(function(t,e){return t.x-e.x}).each(function(e,r){e.xIndex=r,e.x=t===e?e.x:e.xScale(e.xIndex),e.canvasX=e.x*e.model.canvasPixelRatio}),f(O,e),O.filter(function(e){return 0!==Math.abs(t.xIndex-e.xIndex)}).attr(\"transform\",function(t){return\"translate(\"+t.xScale(t.xIndex)+\", 0)\"}),w.select(this).attr(\"transform\",\"translate(\"+t.x+\", 0)\"),O.each(function(r,n,i){i===t.parent.key&&(e.dimensions[n]=r)}),e.contextLineLayer&&e.contextLineLayer.render(e.panels,!1,!u(e)),e.focusLineLayer.render&&e.focusLineLayer.render(e.panels))}).on(\"dragend\",function(t){var e=t.parent;if(T)return void(\"ending\"===T&&(T=!1));t.x=t.xScale(t.xIndex),t.canvasX=t.x*t.model.canvasPixelRatio,f(O,e),w.select(this).attr(\"transform\",function(t){return\"translate(\"+t.x+\", 0)\"}),e.contextLineLayer&&e.contextLineLayer.render(e.panels,!1,!u(e)),e.focusLineLayer&&e.focusLineLayer.render(e.panels),e.pickLineLayer&&e.pickLineLayer.render(e.panels,!0),S=!0,o&&o.axesMoved&&o.axesMoved(e.key,e.dimensions.map(function(t){return t.crossfilterDimensionIndex}))})),O.exit().remove();var R=O.selectAll(\".axisOverlays\").data(i,n);R.enter().append(\"g\").classed(\"axisOverlays\",!0),R.selectAll(\".axis\").remove();var F=R.selectAll(\".axis\").data(i,n);F.enter().append(\"g\").classed(\"axis\",!0),F.each(function(t){var e=t.model.height/t.model.tickDistance,r=t.domainScale,n=r.domain();w.select(this).call(w.svg.axis().orient(\"left\").tickSize(4).outerTickSize(2).ticks(e,t.tickFormat).tickValues(t.ordinal?n:null).tickFormat(t.ordinal?function(t){return t}:null).scale(r)),M.font(F.selectAll(\"text\"),t.model.tickFont)}),F.selectAll(\".domain, .tick>line\").attr(\"fill\",\"none\").attr(\"stroke\",\"black\").attr(\"stroke-opacity\",.25).attr(\"stroke-width\",\"1px\"),F.selectAll(\"text\").style(\"text-shadow\",\"1px 1px 1px #fff, -1px -1px 1px #fff, 1px -1px 1px #fff, -1px 1px 1px #fff\").style(\"cursor\",\"default\").style(\"user-select\",\"none\");var j=R.selectAll(\".axisHeading\").data(i,n);j.enter().append(\"g\").classed(\"axisHeading\",!0);var N=j.selectAll(\".axisTitle\").data(i,n);N.enter().append(\"text\").classed(\"axisTitle\",!0).attr(\"text-anchor\",\"middle\").style(\"cursor\",\"ew-resize\").style(\"user-select\",\"none\").style(\"pointer-events\",\"auto\"),N.attr(\"transform\",\"translate(0,\"+-x.axisTitleOffset+\")\").text(function(t){return t.label}).each(function(t){M.font(N,t.model.labelFont)});var B=R.selectAll(\".axisExtent\").data(i,n);B.enter().append(\"g\").classed(\"axisExtent\",!0);var U=B.selectAll(\".axisExtentTop\").data(i,n);U.enter().append(\"g\").classed(\"axisExtentTop\",!0),U.attr(\"transform\",\"translate(0,\"+-x.axisExtentOffset+\")\");var V=U.selectAll(\".axisExtentTopText\").data(i,n);V.enter().append(\"text\").classed(\"axisExtentTopText\",!0).attr(\"alignment-baseline\",\"after-edge\").call(y),V.text(function(t){return d(t)(t.domainScale.domain().slice(-1)[0])}).each(function(t){M.font(V,t.model.rangeFont)});var H=B.selectAll(\".axisExtentBottom\").data(i,n);H.enter().append(\"g\").classed(\"axisExtentBottom\",!0),H.attr(\"transform\",function(t){return\"translate(0,\"+(t.model.height+x.axisExtentOffset)+\")\"});var q=H.selectAll(\".axisExtentBottomText\").data(i,n);q.enter().append(\"text\").classed(\"axisExtentBottomText\",!0).attr(\"alignment-baseline\",\"before-edge\").call(y),q.text(function(t){return d(t)(t.domainScale.domain()[0])}).each(function(t){M.font(q,t.model.rangeFont)});var G=R.selectAll(\".axisBrush\").data(i,n),Y=G.enter().append(\"g\").classed(\"axisBrush\",!0);G.each(function(t){t.brush||(t.brush=w.svg.brush().y(t.unitScale).on(\"brushstart\",_).on(\"brush\",k).on(\"brushend\",A),0===t.filter[0]&&1===t.filter[1]||t.brush.extent(t.filter),w.select(this).call(t.brush))}),Y.selectAll(\"rect\").attr(\"x\",-x.bar.capturewidth/2).attr(\"width\",x.bar.capturewidth),Y.selectAll(\"rect.extent\").attr(\"fill\",\"url(#filterBarPattern)\").style(\"cursor\",\"ns-resize\").filter(function(t){return 0===t.filter[0]&&1===t.filter[1]}).attr(\"y\",-100),Y.selectAll(\".resize rect\").attr(\"height\",x.bar.handleheight).attr(\"opacity\",0).style(\"visibility\",\"visible\"),Y.selectAll(\".resize.n rect\").style(\"cursor\",\"n-resize\").attr(\"y\",x.bar.handleoverlap-x.bar.handleheight),Y.selectAll(\".resize.s rect\").style(\"cursor\",\"s-resize\").attr(\"y\",x.bar.handleoverlap);var W=!1,X=!1;return I}},{\"../../components/drawing\":628,\"../../lib\":728,\"./constants\":1001,\"./lines\":1004,d3:122}],1006:[function(t,e,r){\"use strict\";var n=t(\"./parcoords\");e.exports=function(t,e){var r=t._fullLayout,i=r._paper,a=r._paperdiv,o={},s={},l=r._size;e.forEach(function(e,r){o[r]=t.data[r].dimensions,s[r]=t.data[r].dimensions.slice()});var u=function(e,r,n){var i=s[e][r],a=i.constraintrange;a&&2===a.length||(a=i.constraintrange=[]),a[0]=n[0],a[1]=n[1],t.emit(\"plotly_restyle\")},c=function(e){t.emit(\"plotly_hover\",e)},h=function(e){t.emit(\"plotly_unhover\",e)},f=function(e,r){function n(t){return!(\"visible\"in t)||t.visible}function i(t,e,r){var n=e.indexOf(r),i=t.indexOf(n);return-1===i&&(i+=e.length),i}var a=function(t){return function(e,n){return i(r,t,e)-i(r,t,n)}}(s[e].filter(n));o[e].sort(a),s[e].filter(function(t){return!n(t)}).sort(function(t){return s[e].indexOf(t)}).forEach(function(t){o[e].splice(o[e].indexOf(t),1),o[e].splice(s[e].indexOf(t),0,t)}),t.emit(\"plotly_restyle\")};n(a,i,e,{width:l.w,height:l.h,margin:{t:l.t,r:l.r,b:l.b,l:l.l}},{filterChanged:u,hover:c,unhover:h,axesMoved:f})}},{\"./parcoords\":1005}],1007:[function(t,e,r){\"use strict\";var n=t(\"../../components/color/attributes\"),i=t(\"../../plots/font_attributes\"),a=t(\"../../plots/attributes\"),o=t(\"../../lib/extend\").extendFlat,s=i({editType:\"calc\",colorEditType:\"style\"});e.exports={labels:{valType:\"data_array\",editType:\"calc\"},label0:{valType:\"number\",dflt:0,editType:\"calc\"},dlabel:{valType:\"number\",dflt:1,editType:\"calc\"},values:{valType:\"data_array\",editType:\"calc\"},marker:{colors:{valType:\"data_array\",editType:\"calc\"},line:{color:{valType:\"color\",dflt:n.defaultLine,arrayOk:!0,editType:\"style\"},width:{valType:\"number\",min:0,dflt:0,arrayOk:!0,editType:\"style\"},editType:\"calc\"},editType:\"calc\"},text:{valType:\"data_array\",editType:\"calc\"},hovertext:{valType:\"string\",dflt:\"\",arrayOk:!0,editType:\"style\"},scalegroup:{valType:\"string\",dflt:\"\",editType:\"calc\"},textinfo:{valType:\"flaglist\",flags:[\"label\",\"text\",\"value\",\"percent\"],extras:[\"none\"],editType:\"calc\"},hoverinfo:o({},a.hoverinfo,{flags:[\"label\",\"text\",\"value\",\"percent\",\"name\"]}),textposition:{valType:\"enumerated\",values:[\"inside\",\"outside\",\"auto\",\"none\"],dflt:\"auto\",arrayOk:!0,editType:\"calc\"},textfont:o({},s,{}),insidetextfont:o({},s,{}),outsidetextfont:o({},s,{}),domain:{x:{valType:\"info_array\",items:[{valType:\"number\",min:0,max:1,editType:\"calc\"},{valType:\"number\",min:0,max:1,editType:\"calc\"}],dflt:[0,1],editType:\"calc\"},y:{valType:\"info_array\",items:[{valType:\"number\",min:0,max:1,editType:\"calc\"},{valType:\"number\",min:0,max:1,editType:\"calc\"}],dflt:[0,1],editType:\"calc\"},editType:\"calc\"},hole:{valType:\"number\",min:0,max:1,dflt:0,editType:\"calc\"},sort:{valType:\"boolean\",dflt:!0,editType:\"calc\"},direction:{valType:\"enumerated\",values:[\"clockwise\",\"counterclockwise\"],dflt:\"counterclockwise\",editType:\"calc\"},rotation:{valType:\"number\",min:-360,max:360,dflt:0,editType:\"calc\"},pull:{valType:\"number\",min:0,max:1,dflt:0,arrayOk:!0,editType:\"calc\"}}},{\"../../components/color/attributes\":603,\"../../lib/extend\":717,\"../../plots/attributes\":770,\"../../plots/font_attributes\":796}],1008:[function(t,e,r){\"use strict\";function n(t,e){for(var r=[],n=0;n<t.length;n++){var i=t[n],a=i[0].trace;a._module===e&&!0===a.visible&&r.push(i)}return r}var i=t(\"../../registry\");r.name=\"pie\",r.plot=function(t){var e=i.getModule(\"pie\"),r=n(t.calcdata,e);r.length&&e.plot(t,r)},r.clean=function(t,e,r,n){var i=n._has&&n._has(\"pie\"),a=e._has&&e._has(\"pie\");i&&!a&&n._pielayer.selectAll(\"g.trace\").remove()}},{\"../../registry\":846}],1009:[function(t,e,r){\"use strict\";function n(t){if(!l){var e=o.defaults;l=e.slice();var r;for(r=0;r<e.length;r++)l.push(a(e[r]).lighten(20).toHexString());for(r=0;r<o.defaults.length;r++)l.push(a(e[r]).darken(20).toHexString())}return l[t%l.length]}var i=t(\"fast-isnumeric\"),a=t(\"tinycolor2\"),o=t(\"../../components/color\"),s=t(\"./helpers\");e.exports=function(t,e){var r,l,u,c,h,f,d=e.values,p=e.labels,m=[],v=t._fullLayout,g=v._piecolormap,y={},b=!1,x=0,_=v.hiddenlabels||[];if(e.dlabel)for(p=new Array(d.length),r=0;r<d.length;r++)p[r]=String(e.label0+r*e.dlabel);for(r=0;r<d.length;r++)l=d[r],i(l)&&((l=+l)<0||(u=p[r],void 0!==u&&\"\"!==u||(u=r),u=String(u),void 0===y[u]&&(y[u]=!0,c=a(e.marker.colors[r]),c.isValid()?(c=o.addOpacity(c,c.getAlpha()),g[u]||(g[u]=c)):g[u]?c=g[u]:(c=!1,b=!0),h=-1!==_.indexOf(u),h||(x+=l),m.push({v:l,label:u,color:c,i:r,hidden:h}))));if(e.sort&&m.sort(function(t,e){return e.v-t.v}),b)for(r=0;r<m.length;r++)f=m[r],!1===f.color&&(g[f.label]=f.color=n(v._piedefaultcolorcount),v._piedefaultcolorcount++);if(m[0]&&(m[0].vTotal=x),e.textinfo&&\"none\"!==e.textinfo){var w,M=-1!==e.textinfo.indexOf(\"label\"),k=-1!==e.textinfo.indexOf(\"text\"),A=-1!==e.textinfo.indexOf(\"value\"),T=-1!==e.textinfo.indexOf(\"percent\"),S=v.separators;for(r=0;r<m.length;r++)f=m[r],w=M?[f.label]:[],k&&e.text[f.i]&&w.push(e.text[f.i]),A&&w.push(s.formatPieValue(f.v,S)),T&&w.push(s.formatPiePercent(f.v/x,S)),f.text=w.join(\"<br>\")}return m};var l},{\"../../components/color\":604,\"./helpers\":1011,\"fast-isnumeric\":131,tinycolor2:534}],1010:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"./attributes\");e.exports=function(t,e,r,a){function o(r,a){return n.coerce(t,e,i,r,a)}var s=n.coerceFont,l=o(\"values\");if(!Array.isArray(l)||!l.length)return void(e.visible=!1);var u=o(\"labels\");Array.isArray(u)||(o(\"label0\"),o(\"dlabel\")),o(\"marker.line.width\")&&o(\"marker.line.color\");var c=o(\"marker.colors\");Array.isArray(c)||(e.marker.colors=[]),o(\"scalegroup\");var h=o(\"text\"),f=o(\"textinfo\",Array.isArray(h)?\"text+percent\":\"percent\");if(o(\"hovertext\"),f&&\"none\"!==f){var d=o(\"textposition\"),p=Array.isArray(d)||\"auto\"===d,m=p||\"inside\"===d,v=p||\"outside\"===d;if(m||v){var g=s(o,\"textfont\",a.font);m&&s(o,\"insidetextfont\",g),v&&s(o,\"outsidetextfont\",g)}}o(\"domain.x\"),o(\"domain.y\"),o(\"hole\"),o(\"sort\"),o(\"direction\"),o(\"rotation\"),o(\"pull\")}},{\"../../lib\":728,\"./attributes\":1007}],1011:[function(t,e,r){\"use strict\";var n=t(\"../../lib\");r.formatPiePercent=function(t,e){var r=(100*t).toPrecision(3);return-1!==r.lastIndexOf(\".\")&&(r=r.replace(/[.]?0+$/,\"\")),n.numSeparate(r,e)+\"%\"},r.formatPieValue=function(t,e){var r=t.toPrecision(10);return-1!==r.lastIndexOf(\".\")&&(r=r.replace(/[.]?0+$/,\"\")),n.numSeparate(r,e)}},{\"../../lib\":728}],1012:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.supplyDefaults=t(\"./defaults\"),n.supplyLayoutDefaults=t(\"./layout_defaults\"),n.layoutAttributes=t(\"./layout_attributes\"),n.calc=t(\"./calc\"),n.plot=t(\"./plot\"),n.style=t(\"./style\"),n.styleOne=t(\"./style_one\"),n.moduleType=\"trace\",n.name=\"pie\",n.basePlotModule=t(\"./base_plot\"),n.categories=[\"pie\",\"showLegend\"],n.meta={},e.exports=n},{\"./attributes\":1007,\"./base_plot\":1008,\"./calc\":1009,\"./defaults\":1010,\"./layout_attributes\":1013,\"./layout_defaults\":1014,\"./plot\":1015,\"./style\":1016,\"./style_one\":1017}],1013:[function(t,e,r){\"use strict\";e.exports={hiddenlabels:{valType:\"data_array\",editType:\"calc\"}}},{}],1014:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"./layout_attributes\");e.exports=function(t,e){!function(r,a){n.coerce(t,e,i,r,a)}(\"hiddenlabels\")}},{\"../../lib\":728,\"./layout_attributes\":1013}],1015:[function(t,e,r){\"use strict\";function n(t,e,r){var n=Math.sqrt(t.width*t.width+t.height*t.height),a=t.width/t.height,o=Math.PI*Math.min(e.v/r.vTotal,.5),s=1-r.trace.hole,l=i(e,r),u={scale:l*r.r*2/n,rCenter:1-l,rotate:0};if(u.scale>=1)return u;var c=a+1/(2*Math.tan(o)),h=r.r*Math.min(1/(Math.sqrt(c*c+.5)+c),s/(Math.sqrt(a*a+s/2)+a)),f={scale:2*h/t.height,rCenter:Math.cos(h/r.r)-h*a/r.r,rotate:(180/Math.PI*e.midangle+720)%180-90},d=1/a,p=d+1/(2*Math.tan(o)),m=r.r*Math.min(1/(Math.sqrt(p*p+.5)+p),s/(Math.sqrt(d*d+s/2)+d)),v={scale:2*m/t.width,rCenter:Math.cos(m/r.r)-m/a/r.r,rotate:(180/Math.PI*e.midangle+810)%180-90},g=v.scale>f.scale?v:f;return u.scale<1&&g.scale>u.scale?g:u}function i(t,e){if(t.v===e.vTotal&&!e.trace.hole)return 1;var r=Math.PI*Math.min(t.v/e.vTotal,.5);return Math.min(1/(1+1/Math.sin(r)),(1-e.trace.hole)/2)}function a(t,e){var r=e.pxmid[0],n=e.pxmid[1],i=t.width/2,a=t.height/2;return r<0&&(i*=-1),n<0&&(a*=-1),{scale:1,rCenter:1,rotate:0,x:i+Math.abs(a)*(i>0?1:-1)/2,y:a/(1+r*r/(n*n)),outside:!0}}function o(t,e){function r(t,e){return t.pxmid[1]-e.pxmid[1]}function n(t,e){return e.pxmid[1]-t.pxmid[1]}var i,a,o,s,l,u,c,h,f,d,p,m,v;for(a=0;a<2;a++)for(o=a?r:n,l=a?Math.max:Math.min,c=a?1:-1,i=0;i<2;i++){for(s=i?Math.max:Math.min,u=i?1:-1,h=t[a][i],h.sort(o),f=t[1-a][i],d=f.concat(h),m=[],p=0;p<h.length;p++)void 0!==h[p].yLabelMid&&m.push(h[p]);for(v=!1,p=0;a&&p<f.length;p++)if(void 0!==f[p].yLabelMid){v=f[p];break}for(p=0;p<m.length;p++){var g=p&&m[p-1];v&&!p&&(g=v),function(t,r){r||(r={});var n,i,o,h,f,p,m=r.labelExtraY+(a?r.yLabelMax:r.yLabelMin),v=a?t.yLabelMin:t.yLabelMax,g=a?t.yLabelMax:t.yLabelMin,y=t.cyFinal+l(t.px0[1],t.px1[1]),b=m-v;if(b*c>0&&(t.labelExtraY=b),Array.isArray(e.pull))for(i=0;i<d.length;i++)(o=d[i])===t||(e.pull[t.i]||0)>=e.pull[o.i]||((t.pxmid[1]-o.pxmid[1])*c>0?(h=o.cyFinal+l(o.px0[1],o.px1[1]),(b=h-v-t.labelExtraY)*c>0&&(t.labelExtraY+=b)):(g+t.labelExtraY-y)*c>0&&(n=3*u*Math.abs(i-d.indexOf(t)),f=o.cxFinal+s(o.px0[0],o.px1[0]),(p=f+n-(t.cxFinal+t.pxmid[0])-t.labelExtraX)*u>0&&(t.labelExtraX+=p)))}(m[p],g)}}}function s(t,e){var r,n,i,a,o,s,l,c,h,f,d=[];for(i=0;i<t.length;i++){if(o=t[i][0],s=o.trace,r=e.w*(s.domain.x[1]-s.domain.x[0]),n=e.h*(s.domain.y[1]-s.domain.y[0]),l=s.tiltaxis*Math.PI/180,c=s.pull,Array.isArray(c))for(c=0,a=0;a<s.pull.length;a++)s.pull[a]>c&&(c=s.pull[a]);o.r=Math.min(r/u(s.tilt,Math.sin(l),s.depth),n/u(s.tilt,Math.cos(l),s.depth))/(2+2*c),o.cx=e.l+e.w*(s.domain.x[1]+s.domain.x[0])/2,o.cy=e.t+e.h*(2-s.domain.y[1]-s.domain.y[0])/2,s.scalegroup&&-1===d.indexOf(s.scalegroup)&&d.push(s.scalegroup)}for(a=0;a<d.length;a++){for(f=1/0,h=d[a],i=0;i<t.length;i++)o=t[i][0],o.trace.scalegroup===h&&(f=Math.min(f,o.r*o.r/o.vTotal));for(i=0;i<t.length;i++)o=t[i][0],o.trace.scalegroup===h&&(o.r=Math.sqrt(f*o.vTotal))}}function l(t){function e(t){var e=h.r*Math.sin(t),r=-h.r*Math.cos(t);return d?[e*(1-s*n*n)+r*o*s,e*o*s+r*(1-s*i*i),Math.sin(a)*(r*i-e*n)]:[e,r]}var r,n,i,a,o,s,l,u,c,h=t[0],f=h.trace,d=f.tilt,p=f.rotation*Math.PI/180,m=2*Math.PI/h.vTotal,v=\"px0\",g=\"px1\";if(\"counterclockwise\"===f.direction){for(l=0;l<t.length&&t[l].hidden;l++);if(l===t.length)return;p+=m*t[l].v,m*=-1,v=\"px1\",g=\"px0\"}for(d&&(a=d*Math.PI/180,r=f.tiltaxis*Math.PI/180,o=Math.sin(r)*Math.cos(r),s=1-Math.cos(a),n=Math.sin(r),i=Math.cos(r)),c=e(p),l=0;l<t.length;l++)u=t[l],u.hidden||(u[v]=c,p+=m*u.v/2,u.pxmid=e(p),u.midangle=p,p+=m*u.v/2,c=e(p),u[g]=c,u.largeArc=u.v>h.vTotal/2?1:0)}function u(t,e,r){if(!t)return 1;var n=Math.sin(t*Math.PI/180);return Math.max(.01,r*n*Math.abs(e)+2*Math.sqrt(1-n*n*e*e))}var c=t(\"d3\"),h=t(\"../../components/fx\"),f=t(\"../../components/color\"),d=t(\"../../components/drawing\"),p=t(\"../../lib/svg_text_utils\"),m=t(\"./helpers\");e.exports=function(t,e){var r=t._fullLayout;s(e,r._size);var u=r._pielayer.selectAll(\"g.trace\").data(e);u.enter().append(\"g\").attr({\"stroke-linejoin\":\"round\",class:\"trace\"}),u.exit().remove(),u.order(),u.each(function(e){var s=c.select(this),u=e[0],v=u.trace,g=(v.depth||0)*u.r*Math.sin(0)/2,y=v.tiltaxis||0,b=y*Math.PI/180,x=[g*Math.sin(b),g*Math.cos(b)],_=u.r*Math.cos(0),w=s.selectAll(\"g.part\").data(v.tilt?[\"top\",\"sides\"]:[\"top\"]);w.enter().append(\"g\").attr(\"class\",function(t){return t+\" part\"}),w.exit().remove(),w.order(),l(e),s.selectAll(\".top\").each(function(){var s=c.select(this).selectAll(\"g.slice\").data(e);s.enter().append(\"g\").classed(\"slice\",!0),s.exit().remove();var l=[[[],[]],[[],[]]],g=!1;s.each(function(e){function o(n){n.originalEvent=c.event;var a=t._fullLayout,o=t._fullData[v.index],s=h.castHoverinfo(o,a,e.i);if(\"all\"===s&&(s=\"label+text+value+percent+name\"),t._dragging||!1===a.hovermode||\"none\"===s||\"skip\"===s||!s)return void h.hover(t,n,\"pie\");var l=i(e,u),f=w+e.pxmid[0]*(1-l),d=M+e.pxmid[1]*(1-l),p=r.separators,g=[];-1!==s.indexOf(\"label\")&&g.push(e.label),-1!==s.indexOf(\"text\")&&(o.hovertext?g.push(Array.isArray(o.hovertext)?o.hovertext[e.i]:o.hovertext):o.text&&o.text[e.i]&&g.push(o.text[e.i])),-1!==s.indexOf(\"value\")&&g.push(m.formatPieValue(e.v,p)),-1!==s.indexOf(\"percent\")&&g.push(m.formatPiePercent(e.v/u.vTotal,p)),h.loneHover({x0:f-l*u.r,x1:f+l*u.r,y:d,text:g.join(\"<br>\"),name:-1!==s.indexOf(\"name\")?o.name:void 0,idealAlign:e.pxmid[0]<0?\"left\":\"right\",color:h.castHoverOption(v,e.i,\"bgcolor\")||e.color,borderColor:h.castHoverOption(v,e.i,\"bordercolor\"),fontFamily:h.castHoverOption(v,e.i,\"font.family\"),fontSize:h.castHoverOption(v,e.i,\"font.size\"),fontColor:h.castHoverOption(v,e.i,\"font.color\")},{container:a._hoverlayer.node(),outerContainer:a._paper.node(),gd:t}),h.hover(t,n,\"pie\"),T=!0}function s(e){e.originalEvent=c.event,t.emit(\"plotly_unhover\",{event:c.event,points:[e]}),T&&(h.loneUnhover(r._hoverlayer.node()),T=!1)}function f(){t._hoverdata=[e],t._hoverdata.trace=u.trace,h.click(t,c.event)}function b(t,r,n,i){return\"a\"+i*u.r+\",\"+i*_+\" \"+y+\" \"+e.largeArc+(n?\" 1 \":\" 0 \")+i*(r[0]-t[0])+\",\"+i*(r[1]-t[1])}if(e.hidden)return void c.select(this).selectAll(\"path,g\").remove();e.pointNumber=e.i,e.curveNumber=v.index,l[e.pxmid[1]<0?0:1][e.pxmid[0]<0?0:1].push(e);var w=u.cx+x[0],M=u.cy+x[1],k=c.select(this),A=k.selectAll(\"path.surface\").data([e]),T=!1;if(A.enter().append(\"path\").classed(\"surface\",!0).style({\"pointer-events\":\"all\"}),k.select(\"path.textline\").remove(),k.on(\"mouseover\",o).on(\"mouseout\",s).on(\"click\",f),v.pull){var S=+(Array.isArray(v.pull)?v.pull[e.i]:v.pull)||0;S>0&&(w+=S*e.pxmid[0],M+=S*e.pxmid[1])}e.cxFinal=w,e.cyFinal=M;var E=v.hole;if(e.v===u.vTotal){var L=\"M\"+(w+e.px0[0])+\",\"+(M+e.px0[1])+b(e.px0,e.pxmid,!0,1)+b(e.pxmid,e.px0,!0,1)+\"Z\";E?A.attr(\"d\",\"M\"+(w+E*e.px0[0])+\",\"+(M+E*e.px0[1])+b(e.px0,e.pxmid,!1,E)+b(e.pxmid,e.px0,!1,E)+\"Z\"+L):A.attr(\"d\",L)}else{var C=b(e.px0,e.px1,!0,1);if(E){var I=1-E;A.attr(\"d\",\"M\"+(w+E*e.px1[0])+\",\"+(M+E*e.px1[1])+b(e.px1,e.px0,!1,E)+\"l\"+I*e.px0[0]+\",\"+I*e.px0[1]+C+\"Z\")}else A.attr(\"d\",\"M\"+w+\",\"+M+\"l\"+e.px0[0]+\",\"+e.px0[1]+C+\"Z\")}var z=Array.isArray(v.textposition)?v.textposition[e.i]:v.textposition,D=k.selectAll(\"g.slicetext\").data(e.text&&\"none\"!==z?[0]:[]);D.enter().append(\"g\").classed(\"slicetext\",!0),D.exit().remove(),D.each(function(){var r=c.select(this).selectAll(\"text\").data([0]);r.enter().append(\"text\").attr(\"data-notex\",1),r.exit().remove(),r.text(e.text).attr({class:\"slicetext\",transform:\"\",\"text-anchor\":\"middle\"}).call(d.font,\"outside\"===z?v.outsidetextfont:v.insidetextfont).call(p.convertToTspans,t);var i,o=d.bBox(r.node());\"outside\"===z?i=a(o,e):(i=n(o,e,u),\"auto\"===z&&i.scale<1&&(r.call(d.font,v.outsidetextfont),v.outsidetextfont.family===v.insidetextfont.family&&v.outsidetextfont.size===v.insidetextfont.size||(o=d.bBox(r.node())),i=a(o,e)));var s=w+e.pxmid[0]*i.rCenter+(i.x||0),l=M+e.pxmid[1]*i.rCenter+(i.y||0);i.outside&&(e.yLabelMin=l-o.height/2,e.yLabelMid=l,e.yLabelMax=l+o.height/2,e.labelExtraX=0,e.labelExtraY=0,g=!0),r.attr(\"transform\",\"translate(\"+s+\",\"+l+\")\"+(i.scale<1?\"scale(\"+i.scale+\")\":\"\")+(i.rotate?\"rotate(\"+i.rotate+\")\":\"\")+\"translate(\"+-(o.left+o.right)/2+\",\"+-(o.top+o.bottom)/2+\")\")})}),g&&o(l,v),s.each(function(t){if(t.labelExtraX||t.labelExtraY){var e=c.select(this),r=e.select(\"g.slicetext text\");r.attr(\"transform\",\"translate(\"+t.labelExtraX+\",\"+t.labelExtraY+\")\"+r.attr(\"transform\"));var n=t.cxFinal+t.pxmid[0],i=t.cyFinal+t.pxmid[1],a=\"M\"+n+\",\"+i,o=(t.yLabelMax-t.yLabelMin)*(t.pxmid[0]<0?-1:1)/4;if(t.labelExtraX){var s=t.labelExtraX*t.pxmid[1]/t.pxmid[0],l=t.yLabelMid+t.labelExtraY-(t.cyFinal+t.pxmid[1]);Math.abs(s)>Math.abs(l)?a+=\"l\"+l*t.pxmid[0]/t.pxmid[1]+\",\"+l+\"H\"+(n+t.labelExtraX+o):a+=\"l\"+t.labelExtraX+\",\"+s+\"v\"+(l-s)+\"h\"+o}else a+=\"V\"+(t.yLabelMid+t.labelExtraY)+\"h\"+o;e.append(\"path\").classed(\"textline\",!0).call(f.stroke,v.outsidetextfont.color).attr({\"stroke-width\":Math.min(2,v.outsidetextfont.size/8),d:a,fill:\"none\"})}})})}),setTimeout(function(){u.selectAll(\"tspan\").each(function(){var t=c.select(this);t.attr(\"dy\")&&t.attr(\"dy\",t.attr(\"dy\"))})},0)}},{\"../../components/color\":604,\"../../components/drawing\":628,\"../../components/fx\":645,\"../../lib/svg_text_utils\":750,\"./helpers\":1011,d3:122}],1016:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"./style_one\");e.exports=function(t){t._fullLayout._pielayer.selectAll(\".trace\").each(function(t){var e=t[0],r=e.trace,a=n.select(this);a.style({opacity:r.opacity}),a.selectAll(\".top path.surface\").each(function(t){n.select(this).call(i,t,r)})})}},{\"./style_one\":1017,d3:122}],1017:[function(t,e,r){\"use strict\";var n=t(\"../../components/color\");e.exports=function(t,e,r){var i=r.marker.line.color;Array.isArray(i)&&(i=i[e.i]||n.defaultLine);var a=r.marker.line.width||0;Array.isArray(a)&&(a=a[e.i]||0),t.style({\"stroke-width\":a}).call(n.fill,e.color).call(n.stroke,i)}},{\"../../components/color\":604}],1018:[function(t,e,r){\"use strict\";var n=t(\"../scattergl/attributes\");e.exports={x:n.x,y:n.y,xy:{valType:\"data_array\",editType:\"calc\"},indices:{valType:\"data_array\",editType:\"calc\"},xbounds:{valType:\"data_array\",editType:\"calc\"},ybounds:{valType:\"data_array\",editType:\"calc\"},text:n.text,marker:{color:{valType:\"color\",arrayOk:!1,editType:\"calc\"},opacity:{valType:\"number\",min:0,max:1,dflt:1,arrayOk:!1,editType:\"calc\"},blend:{valType:\"boolean\",dflt:null,editType:\"calc\"},sizemin:{valType:\"number\",min:.1,max:2,dflt:.5,editType:\"calc\"},sizemax:{valType:\"number\",min:.1,dflt:20,editType:\"calc\"},border:{color:{valType:\"color\",arrayOk:!1,editType:\"calc\"},arearatio:{valType:\"number\",min:0,max:1,dflt:0,editType:\"calc\"},editType:\"calc\"},editType:\"calc\"}}},{\"../scattergl/attributes\":1077}],1019:[function(t,e,r){\"use strict\";function n(t,e){this.scene=t,this.uid=e,this.type=\"pointcloud\",this.pickXData=[],this.pickYData=[],this.xData=[],this.yData=[],this.textLabels=[],this.color=\"rgb(0, 0, 0)\",this.name=\"\",this.hoverinfo=\"all\",this.idToIndex=new Int32Array(0),this.bounds=[0,0,0,0],this.pointcloudOptions={positions:new Float32Array(0),idToIndex:this.idToIndex,sizemin:.5,sizemax:12,color:[0,0,0,1],areaRatio:1,borderColor:[0,0,0,1]},this.pointcloud=a(t.glplot,this.pointcloudOptions),this.pointcloud._trace=this}function i(t,e){var r=new n(t,e.uid);return r.update(e),r}var a=t(\"gl-pointcloud2d\"),o=t(\"../../lib/str2rgbarray\"),s=t(\"../scatter/get_trace_color\"),l=[\"xaxis\",\"yaxis\"],u=n.prototype;u.handlePick=function(t){var e=this.idToIndex[t.pointId];return{trace:this,dataCoord:t.dataCoord,traceCoord:this.pickXYData?[this.pickXYData[2*e],this.pickXYData[2*e+1]]:[this.pickXData[e],this.pickYData[e]],textLabel:Array.isArray(this.textLabels)?this.textLabels[e]:this.textLabels,color:this.color,name:this.name,pointIndex:e,hoverinfo:this.hoverinfo}},u.update=function(t){this.index=t.index,this.textLabels=t.text,this.name=t.name,this.hoverinfo=t.hoverinfo,this.bounds=[1/0,1/0,-1/0,-1/0],this.updateFast(t),this.color=s(t,{})},u.updateFast=function(t){var e,r,n,i,a,s,l=this.xData=this.pickXData=t.x,u=this.yData=this.pickYData=t.y,c=this.pickXYData=t.xy,h=t.xbounds&&t.ybounds,f=t.indices,d=this.bounds;if(c){if(n=c,e=c.length>>>1,h)d[0]=t.xbounds[0],d[2]=t.xbounds[1],d[1]=t.ybounds[0],d[3]=t.ybounds[1];else for(s=0;s<e;s++)i=n[2*s],a=n[2*s+1],i<d[0]&&(d[0]=i),i>d[2]&&(d[2]=i),a<d[1]&&(d[1]=a),a>d[3]&&(d[3]=a);if(f)r=f;else for(r=new Int32Array(e),s=0;s<e;s++)r[s]=s}else for(e=l.length,n=new Float32Array(2*e),r=new Int32Array(e),s=0;s<e;s++)i=l[s],a=u[s],r[s]=s,n[2*s]=i,n[2*s+1]=a,i<d[0]&&(d[0]=i),i>d[2]&&(d[2]=i),a<d[1]&&(d[1]=a),a>d[3]&&(d[3]=a);this.idToIndex=r,this.pointcloudOptions.idToIndex=r,this.pointcloudOptions.positions=n;var p=o(t.marker.color),m=o(t.marker.border.color),v=t.opacity*t.marker.opacity;p[3]*=v,this.pointcloudOptions.color=p;var g=t.marker.blend;if(null===g){g=l.length<100||u.length<100}this.pointcloudOptions.blend=g,m[3]*=v,this.pointcloudOptions.borderColor=m;var y=t.marker.sizemin,b=Math.max(t.marker.sizemax,t.marker.sizemin);this.pointcloudOptions.sizeMin=y,this.pointcloudOptions.sizeMax=b,this.pointcloudOptions.areaRatio=t.marker.border.arearatio,this.pointcloud.update(this.pointcloudOptions),this.expandAxesFast(d,b/2)},u.expandAxesFast=function(t,e){for(var r,n,i,a=e||.5,o=0;o<2;o++)r=this.scene[l[o]],n=r._min,n||(n=[]),n.push({val:t[o],pad:a}),i=r._max,i||(i=[]),i.push({val:t[o+2],pad:a})},u.dispose=function(){this.pointcloud.dispose()},e.exports=i},{\"../../lib/str2rgbarray\":749,\"../scatter/get_trace_color\":1040,\"gl-pointcloud2d\":230}],1020:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"./attributes\");e.exports=function(t,e,r){function a(r,a){return n.coerce(t,e,i,r,a)}a(\"x\"),a(\"y\"),a(\"xbounds\"),a(\"ybounds\"),t.xy&&t.xy instanceof Float32Array&&(e.xy=t.xy),t.indices&&t.indices instanceof Int32Array&&(e.indices=t.indices),a(\"text\"),a(\"marker.color\",r),a(\"marker.opacity\"),a(\"marker.blend\"),a(\"marker.sizemin\"),a(\"marker.sizemax\"),a(\"marker.border.color\",r),a(\"marker.border.arearatio\")}},{\"../../lib\":728,\"./attributes\":1018}],1021:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.supplyDefaults=t(\"./defaults\"),n.calc=t(\"../scatter3d/calc\"),n.plot=t(\"./convert\"),n.moduleType=\"trace\",n.name=\"pointcloud\",n.basePlotModule=t(\"../../plots/gl2d\"),n.categories=[\"gl2d\",\"showLegend\"],n.meta={},e.exports=n},{\"../../plots/gl2d\":808,\"../scatter3d/calc\":1056,\"./attributes\":1018,\"./convert\":1019,\"./defaults\":1020}],1022:[function(t,e,r){\"use strict\";var n=t(\"../../plots/font_attributes\"),i=t(\"../../plots/attributes\"),a=t(\"../../components/color/attributes\"),o=t(\"../../components/fx/attributes\"),s=t(\"../../lib/extend\").extendFlat,l=t(\"../../plot_api/edit_types\").overrideAll;e.exports=l({hoverinfo:s({},i.hoverinfo,{flags:[\"label\",\"text\",\"value\",\"percent\",\"name\"]}),hoverlabel:o.hoverlabel,domain:{x:{valType:\"info_array\",items:[{valType:\"number\",min:0,max:1},{valType:\"number\",min:0,max:1}],dflt:[0,1]},y:{valType:\"info_array\",items:[{valType:\"number\",min:0,max:1},{valType:\"number\",min:0,max:1}],dflt:[0,1]}},orientation:{valType:\"enumerated\",values:[\"v\",\"h\"],dflt:\"h\"},valueformat:{valType:\"string\",dflt:\".3s\"},valuesuffix:{valType:\"string\",dflt:\"\"},arrangement:{valType:\"enumerated\",values:[\"snap\",\"perpendicular\",\"freeform\",\"fixed\"],dflt:\"snap\"},textfont:n({}),node:{label:{valType:\"data_array\",dflt:[]},color:{valType:\"color\",arrayOk:!0},line:{color:{valType:\"color\",dflt:a.defaultLine,arrayOk:!0},width:{valType:\"number\",min:0,dflt:.5,arrayOk:!0}},pad:{valType:\"number\",arrayOk:!1,min:0,dflt:20},thickness:{valType:\"number\",arrayOk:!1,min:1,dflt:20}},link:{label:{valType:\"data_array\",dflt:[]},color:{valType:\"color\",arrayOk:!0},line:{color:{valType:\"color\",dflt:a.defaultLine,arrayOk:!0},width:{valType:\"number\",min:0,dflt:0,arrayOk:!0}},source:{valType:\"data_array\",dflt:[]},target:{valType:\"data_array\",dflt:[]},value:{valType:\"data_array\",dflt:[]}}},\"calc\",\"nested\")},{\"../../components/color/attributes\":603,\"../../components/fx/attributes\":637,\"../../lib/extend\":717,\"../../plot_api/edit_types\":756,\"../../plots/attributes\":770,\"../../plots/font_attributes\":796}],1023:[function(t,e,r){\"use strict\";var n=t(\"../../plot_api/edit_types\").overrideAll,i=t(\"../../plots/plots\"),a=t(\"./plot\"),o=t(\"../../components/fx/layout_attributes\");r.name=\"sankey\",r.attr=\"type\",r.baseLayoutAttrOverrides=n({hoverlabel:o.hoverlabel},\"plot\",\"nested\"),r.plot=function(t){var e=i.getSubplotCalcData(t.calcdata,\"sankey\",\"sankey\");e.length&&a(t,e)},r.clean=function(t,e,r,n){var i=n._has&&n._has(\"sankey\"),a=e._has&&e._has(\"sankey\");i&&!a&&n._paperdiv.selectAll(\".sankey\").remove()}},{\"../../components/fx/layout_attributes\":646,\"../../plot_api/edit_types\":756,\"../../plots/plots\":831,\"./plot\":1028}],1024:[function(t,e,r){\"use strict\";function n(t,e,r){for(var n=t.map(function(){return[]}),a=0;a<Math.min(e.length,r.length);a++){if(e[a]===r[a])return!0;n[e[a]].push(r[a])}return i(n).components.some(function(t){return t.length>1})}var i=t(\"strongly-connected-components\"),a=t(\"../../lib\");e.exports=function(t,e){return n(e.node.label,e.link.source,e.link.target)&&(a.error(\"Circularity is present in the Sankey data. Removing all nodes and links.\"),e.link.label=[],e.link.source=[],e.link.target=[],e.link.value=[],e.link.color=[],e.node.label=[],e.node.color=[]),[{link:e.link,node:e.node}]}},{\"../../lib\":728,\"strongly-connected-components\":528}],1025:[function(t,e,r){\"use strict\";e.exports={nodeTextOffsetHorizontal:4,nodeTextOffsetVertical:3,nodePadAcross:10,sankeyIterations:50,forceIterations:5,forceTicksPerFrame:10,duration:500,ease:\"cubic-in-out\"}},{}],1026:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"./attributes\"),a=t(\"../../components/color/attributes\").defaults,o=t(\"../../components/color\"),s=t(\"tinycolor2\");e.exports=function(t,e,r,l){function u(r,a){return n.coerce(t,e,i,r,a)}u(\"node.label\"),u(\"node.pad\"),u(\"node.thickness\"),u(\"node.line.color\"),u(\"node.line.width\");var c=function(t){return a[t%a.length]};u(\"node.color\",e.node.label.map(function(t,e){return o.addOpacity(c(e),.8)})),u(\"link.label\"),u(\"link.source\"),u(\"link.target\"),u(\"link.value\"),u(\"link.line.color\"),u(\"link.line.width\"),u(\"link.color\",e.link.value.map(function(){return s(l.paper_bgcolor).getLuminance()<.333?\"rgba(255, 255, 255, 0.6)\":\"rgba(0, 0, 0, 0.2)\"})),u(\"domain.x\"),u(\"domain.y\"),u(\"orientation\"),u(\"valueformat\"),u(\"valuesuffix\"),u(\"arrangement\"),n.coerceFont(u,\"textfont\",n.extendFlat({},l.font));var h=function(t,r){return-1===e.link.source.indexOf(r)&&-1===e.link.target.indexOf(r)};e.node.label.some(h)&&n.warn(\"Some of the nodes are neither sources nor targets, they will not be displayed.\")}},{\"../../components/color\":604,\"../../components/color/attributes\":603,\"../../lib\":728,\"./attributes\":1022,tinycolor2:534}],1027:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.supplyDefaults=t(\"./defaults\"),n.calc=t(\"./calc\"),n.plot=t(\"./plot\"),n.moduleType=\"trace\",n.name=\"sankey\",n.basePlotModule=t(\"./base_plot\"),n.categories=[\"noOpacity\"],n.meta={},e.exports=n},{\"./attributes\":1022,\"./base_plot\":1023,\"./calc\":1024,\"./defaults\":1026,\"./plot\":1028}],1028:[function(t,e,r){\"use strict\";function n(t){return\"\"!==t}function i(t,e){return t.filter(function(t){return t.key===e.traceId})}function a(t,e){p.select(t).select(\"path\").style(\"fill-opacity\",e),p.select(t).select(\"rect\").style(\"fill-opacity\",e)}function o(t){p.select(t).select(\"text.name\").style(\"fill\",\"black\")}function s(t){return function(e){return-1!==t.node.sourceLinks.indexOf(e.link)||-1!==t.node.targetLinks.indexOf(e.link)}}function l(t){return function(e){return-1!==e.node.sourceLinks.indexOf(t.link)||-1!==e.node.targetLinks.indexOf(t.link)}}function u(t,e,r){\n", "e&&r&&i(r,e).selectAll(\".sankeyLink\").filter(s(e)).call(h.bind(0,e,r,!1))}function c(t,e,r){e&&r&&i(r,e).selectAll(\".sankeyLink\").filter(s(e)).call(f.bind(0,e,r,!1))}function h(t,e,r,n){var a=n.datum().link.label;n.style(\"fill-opacity\",.4),a&&i(e,t).selectAll(\".sankeyLink\").filter(function(t){return t.link.label===a}).style(\"fill-opacity\",.4),r&&i(e,t).selectAll(\".sankeyNode\").filter(l(t)).call(u)}function f(t,e,r,n){var a=n.datum().link.label;n.style(\"fill-opacity\",function(t){return t.tinyColorAlpha}),a&&i(e,t).selectAll(\".sankeyLink\").filter(function(t){return t.link.label===a}).style(\"fill-opacity\",function(t){return t.tinyColorAlpha}),r&&i(e,t).selectAll(\".sankeyNode\").filter(l(t)).call(c)}function d(t,e){var r=t.hoverlabel||{},n=y.nestedProperty(r,e).get();return!Array.isArray(n)&&n}var p=t(\"d3\"),m=t(\"./render\"),v=t(\"../../components/fx\"),g=t(\"../../components/color\"),y=t(\"../../lib\");e.exports=function(t,e){var r=t._fullLayout,i=r._paper,s=r._size,l=function(e,r){var n=r.link;n.originalEvent=p.event,t._hoverdata=[n],v.click(t,{target:!0})},y=function(e,r,n){var i=r.link;i.originalEvent=p.event,p.select(e).call(h.bind(0,r,n,!0)),v.hover(t,i,\"sankey\")},b=function(e,i){var s=i.link.trace,l=t._fullLayout._paperdiv.node().getBoundingClientRect(),u=e.getBoundingClientRect(),c=u.left+u.width/2,h=u.top+u.height/2,f=v.loneHover({x:c-l.left,y:h-l.top,name:p.format(i.valueFormat)(i.link.value)+i.valueSuffix,text:[i.link.label||\"\",[\"Source:\",i.link.source.label].join(\" \"),[\"Target:\",i.link.target.label].join(\" \")].filter(n).join(\"<br>\"),color:d(s,\"bgcolor\")||g.addOpacity(i.tinyColorHue,1),borderColor:d(s,\"bordercolor\"),fontFamily:d(s,\"font.family\"),fontSize:d(s,\"font.size\"),fontColor:d(s,\"font.color\"),idealAlign:p.event.x<c?\"right\":\"left\"},{container:r._hoverlayer.node(),outerContainer:r._paper.node(),gd:t});a(f,.65),o(f)},x=function(e,n,i){p.select(e).call(f.bind(0,n,i,!0)),t.emit(\"plotly_unhover\",{event:p.event,points:[n.link]}),v.loneUnhover(r._hoverlayer.node())},_=function(e,r,n){var i=r.node;i.originalEvent=p.event,t._hoverdata=[i],p.select(e).call(c,r,n),v.click(t,{target:!0})},w=function(e,r,n){var i=r.node;i.originalEvent=p.event,p.select(e).call(u,r,n),v.hover(t,i,\"sankey\")},M=function(e,i){var s=i.node.trace,l=p.select(e).select(\".nodeRect\"),u=t._fullLayout._paperdiv.node().getBoundingClientRect(),c=l.node().getBoundingClientRect(),h=c.left-2-u.left,f=c.right+2-u.left,m=c.top+c.height/4-u.top,g=v.loneHover({x0:h,x1:f,y:m,name:p.format(i.valueFormat)(i.node.value)+i.valueSuffix,text:[i.node.label,[\"Incoming flow count:\",i.node.targetLinks.length].join(\" \"),[\"Outgoing flow count:\",i.node.sourceLinks.length].join(\" \")].filter(n).join(\"<br>\"),color:d(s,\"bgcolor\")||i.tinyColorHue,borderColor:d(s,\"bordercolor\"),fontFamily:d(s,\"font.family\"),fontSize:d(s,\"font.size\"),fontColor:d(s,\"font.color\"),idealAlign:\"left\"},{container:r._hoverlayer.node(),outerContainer:r._paper.node(),gd:t});a(g,.85),o(g)},k=function(e,n,i){p.select(e).call(c,n,i),t.emit(\"plotly_unhover\",{event:p.event,points:[n.node]}),v.loneUnhover(r._hoverlayer.node())};m(i,e,{width:s.w,height:s.h,margin:{t:s.t,r:s.r,b:s.b,l:s.l}},{linkEvents:{hover:y,follow:b,unhover:x,select:l},nodeEvents:{hover:w,follow:M,unhover:k,select:_}})}},{\"../../components/color\":604,\"../../components/fx\":645,\"../../lib\":728,\"./render\":1029,d3:122}],1029:[function(t,e,r){\"use strict\";function n(t){return t.key}function i(t){return[t]}function a(t){return t[0]}function o(t){var e,r=[];for(e=0;e<t.length;e++)t[e].originalX=t[e].x,t[e].originalY=t[e].y,-1===r.indexOf(t[e].x)&&r.push(t[e].x);for(r.sort(function(t,e){return t-e}),e=0;e<t.length;e++)t[e].originalLayerIndex=r.indexOf(t[e].originalX),t[e].originalLayer=t[e].originalLayerIndex/(r.length-1)}function s(t){t.lastDraggedX=t.x,t.lastDraggedY=t.y}function l(t){return function(e){return e.node.originalX===t.node.originalX}}function u(t){for(var e=0;e<t.length;e++)t[e].y=t[e].y+t[e].dy/2}function c(t){for(var e=0;e<t.length;e++)t[e].y=t[e].y-t[e].dy/2}function h(t,e,r){for(var n,i=a(e).trace,o=i.domain,s=i.node,l=i.link,c=i.arrangement,h=\"h\"===i.orientation,f=i.node.pad,d=i.node.thickness,p=i.node.line.color,m=i.node.line.width,v=i.link.line.color,g=i.link.line.width,y=i.valueformat,b=i.valuesuffix,x=i.textfont,_=t.width*(o.x[1]-o.x[0]),w=t.height*(o.y[1]-o.y[0]),M=s.label.map(function(t,e){return{pointNumber:e,label:t,color:N.isArray(s.color)?s.color[e]:s.color}}),k=l.value.map(function(t,e){return{pointNumber:e,label:l.label[e],color:N.isArray(l.color)?l.color[e]:l.color,source:l.source[e],target:l.target[e],value:t}}),A=F().size(h?[_,w]:[w,_]).nodeWidth(d).nodePadding(f).nodes(M).links(k).layout(z.sankeyIterations),T=A.nodes(),S=0;S<T.length;S++)n=T[S],n.width=_,n.height=w;return u(M),{key:r,trace:i,guid:Math.floor(1e12*(1+Math.random())),horizontal:h,width:_,height:w,nodePad:f,nodeLineColor:p,nodeLineWidth:m,linkLineColor:v,linkLineWidth:g,valueFormat:y,valueSuffix:b,textFont:x,translateX:o.x[0]*_+t.margin.l,translateY:t.height-o.y[1]*t.height+t.margin.t,dragParallel:h?w:_,dragPerpendicular:h?_:w,nodes:M,links:k,arrangement:c,sankey:A,forceLayouts:{},interactionState:{dragInProgress:!1,hovered:!1}}}function f(t,e,r){var n=P(r.color),i=r.source.label+\"|\"+r.target.label,a=t[i];t[i]=(a||0)+1;var o=i+\"__\"+t[i];return r.trace=e.trace,r.curveNumber=e.trace.index,{key:o,traceId:e.key,link:r,tinyColorHue:O.tinyRGB(n),tinyColorAlpha:n.getAlpha(),linkLineColor:e.linkLineColor,linkLineWidth:e.linkLineWidth,valueFormat:e.valueFormat,valueSuffix:e.valueSuffix,sankey:e.sankey,interactionState:e.interactionState}}function d(t,e,r){var n=P(r.color),i=z.nodePadAcross,a=e.nodePad/2,o=r.dx,s=Math.max(.5,r.dy),l=r.label,u=t[l];t[l]=(u||0)+1;var c=l+\"__\"+t[l];return r.trace=e.trace,r.curveNumber=e.trace.index,{key:c,traceId:e.key,node:r,nodePad:e.nodePad,nodeLineColor:e.nodeLineColor,nodeLineWidth:e.nodeLineWidth,textFont:e.textFont,size:e.horizontal?e.height:e.width,visibleWidth:Math.ceil(o),visibleHeight:s,zoneX:-i,zoneY:-a,zoneWidth:o+2*i,zoneHeight:s+2*a,labelY:e.horizontal?r.dy/2+1:r.dx/2+1,left:1===r.originalLayer,sizeAcross:e.width,forceLayouts:e.forceLayouts,horizontal:e.horizontal,darkBackground:n.getBrightness()<=128,tinyColorHue:O.tinyRGB(n),tinyColorAlpha:n.getAlpha(),valueFormat:e.valueFormat,valueSuffix:e.valueSuffix,sankey:e.sankey,arrangement:e.arrangement,uniqueNodeLabelPathId:[e.guid,e.key,c].join(\" \"),interactionState:e.interactionState}}function p(t){t.attr(\"transform\",function(t){return\"translate(\"+t.node.x.toFixed(3)+\", \"+(t.node.y-t.node.dy/2).toFixed(3)+\")\"})}function m(t){var e=t.sankey.nodes();c(e);var r=t.sankey.link()(t.link);return u(e),r}function v(t){t.call(p)}function g(t,e){t.call(v),e.attr(\"d\",m)}function y(t){t.attr(\"width\",function(t){return t.visibleWidth}).attr(\"height\",function(t){return t.visibleHeight})}function b(t){return t.link.dy>1||t.linkLineWidth>0}function x(t){return\"translate(\"+t.translateX+\",\"+t.translateY+\")\"+(t.horizontal?\"matrix(1 0 0 1 0 0)\":\"matrix(0 1 1 0 0 0)\")}function _(t){return\"translate(\"+(t.horizontal?0:t.labelY)+\" \"+(t.horizontal?t.labelY:0)+\")\"}function w(t){return D.svg.line()([[t.horizontal?t.left?-t.sizeAcross:t.visibleWidth+z.nodeTextOffsetHorizontal:z.nodeTextOffsetHorizontal,0],[t.horizontal?t.left?-z.nodeTextOffsetHorizontal:t.sizeAcross:t.visibleHeight-z.nodeTextOffsetHorizontal,0]])}function M(t){return t.horizontal?\"matrix(1 0 0 1 0 0)\":\"matrix(0 1 1 0 0 0)\"}function k(t){return t.horizontal?\"scale(1 1)\":\"scale(-1 1)\"}function A(t){return t.darkBackground&&!t.horizontal?\"rgb(255,255,255)\":\"rgb(0,0,0)\"}function T(t){return t.horizontal&&t.left?\"100%\":\"0%\"}function S(t,e,r){t.on(\".basic\",null).on(\"mouseover.basic\",function(t){t.interactionState.dragInProgress||(r.hover(this,t,e),t.interactionState.hovered=[this,t])}).on(\"mousemove.basic\",function(t){t.interactionState.dragInProgress||(r.follow(this,t),t.interactionState.hovered=[this,t])}).on(\"mouseout.basic\",function(t){t.interactionState.dragInProgress||(r.unhover(this,t,e),t.interactionState.hovered=!1)}).on(\"click.basic\",function(t){t.interactionState.hovered&&(r.unhover(this,t,e),t.interactionState.hovered=!1),t.interactionState.dragInProgress||r.select(this,t,e)})}function E(t,e,r){var n=D.behavior.drag().origin(function(t){return t.node}).on(\"dragstart\",function(n){if(\"fixed\"!==n.arrangement&&(N.raiseToTop(this),n.interactionState.dragInProgress=n.node,s(n.node),n.interactionState.hovered&&(r.nodeEvents.unhover.apply(0,n.interactionState.hovered),n.interactionState.hovered=!1),\"snap\"===n.arrangement)){var i=n.traceId+\"|\"+Math.floor(n.node.originalX);n.forceLayouts[i]?n.forceLayouts[i].alpha(1):L(t,i,n),C(t,e,n,i)}}).on(\"drag\",function(r){if(\"fixed\"!==r.arrangement){var n=D.event.x,i=D.event.y;\"snap\"===r.arrangement?(r.node.x=n,r.node.y=i):(\"freeform\"===r.arrangement&&(r.node.x=n),r.node.y=Math.max(r.node.dy/2,Math.min(r.size-r.node.dy/2,i))),s(r.node),\"snap\"!==r.arrangement&&(r.sankey.relayout(),g(t.filter(l(r)),e))}}).on(\"dragend\",function(t){t.interactionState.dragInProgress=!1});t.on(\".drag\",null).call(n)}function L(t,e,r){var n=r.sankey.nodes().filter(function(t){return t.originalX===r.node.originalX});r.forceLayouts[e]=j.forceSimulation(n).alphaDecay(0).force(\"collide\",j.forceCollide().radius(function(t){return t.dy/2+r.nodePad/2}).strength(1).iterations(z.forceIterations)).force(\"constrain\",I(t,e,n,r)).stop()}function C(t,e,r,n){window.requestAnimationFrame(function i(){for(var a=0;a<z.forceTicksPerFrame;a++)r.forceLayouts[n].tick();r.sankey.relayout(),g(t.filter(l(r)),e),r.forceLayouts[n].alpha()>0&&window.requestAnimationFrame(i)})}function I(t,e,r,n){return function(){for(var t=0,i=0;i<r.length;i++){var a=r[i];a===n.interactionState.dragInProgress?(a.x=a.lastDraggedX,a.y=a.lastDraggedY):(a.vx=(a.originalX-a.x)/z.forceTicksPerFrame,a.y=Math.min(n.size-a.dy/2,Math.max(a.dy/2,a.y))),t=Math.max(t,Math.abs(a.vx),Math.abs(a.vy))}!n.interactionState.dragInProgress&&t<.1&&n.forceLayouts[e].alpha()>0&&n.forceLayouts[e].alpha(0)}}var z=t(\"./constants\"),D=t(\"d3\"),P=t(\"tinycolor2\"),O=t(\"../../components/color\"),R=t(\"../../components/drawing\"),F=t(\"@plotly/d3-sankey\").sankey,j=t(\"d3-force\"),N=t(\"../../lib\");e.exports=function(t,e,r,s){var l=t.selectAll(\".sankey\").data(e.filter(function(t){return a(t).trace.visible}).map(h.bind(null,r)),n);l.exit().remove(),l.enter().append(\"g\").classed(\"sankey\",!0).style(\"box-sizing\",\"content-box\").style(\"position\",\"absolute\").style(\"left\",0).style(\"shape-rendering\",\"geometricPrecision\").style(\"pointer-events\",\"auto\").style(\"box-sizing\",\"content-box\").attr(\"transform\",x),l.transition().ease(z.ease).duration(z.duration).attr(\"transform\",x);var u=l.selectAll(\".sankeyLinks\").data(i,n);u.enter().append(\"g\").classed(\"sankeyLinks\",!0).style(\"fill\",\"none\");var c=u.selectAll(\".sankeyLink\").data(function(t){var e={};return t.sankey.links().filter(function(t){return t.value}).map(f.bind(null,e,t))},n);c.enter().append(\"path\").classed(\"sankeyLink\",!0).attr(\"d\",m).call(S,l,s.linkEvents),c.style(\"stroke\",function(t){return b(t)?O.tinyRGB(P(t.linkLineColor)):t.tinyColorHue}).style(\"stroke-opacity\",function(t){return b(t)?O.opacity(t.linkLineColor):t.tinyColorAlpha}).style(\"stroke-width\",function(t){return b(t)?t.linkLineWidth:1}).style(\"fill\",function(t){return t.tinyColorHue}).style(\"fill-opacity\",function(t){return t.tinyColorAlpha}),c.transition().ease(z.ease).duration(z.duration).attr(\"d\",m),c.exit().transition().ease(z.ease).duration(z.duration).style(\"opacity\",0).remove();var v=l.selectAll(\".sankeyNodeSet\").data(i,n);v.enter().append(\"g\").classed(\"sankeyNodeSet\",!0),v.style(\"cursor\",function(t){switch(t.arrangement){case\"fixed\":return\"default\";case\"perpendicular\":return\"ns-resize\";default:return\"move\"}});var g=v.selectAll(\".sankeyNode\").data(function(t){var e=t.sankey.nodes(),r={};return o(e),e.filter(function(t){return t.value}).map(d.bind(null,r,t))},n);g.enter().append(\"g\").classed(\"sankeyNode\",!0).call(p).call(S,l,s.nodeEvents),g.call(E,c,s),g.transition().ease(z.ease).duration(z.duration).call(p),g.exit().transition().ease(z.ease).duration(z.duration).style(\"opacity\",0).remove();var L=g.selectAll(\".nodeRect\").data(i);L.enter().append(\"rect\").classed(\"nodeRect\",!0).call(y),L.style(\"stroke-width\",function(t){return t.nodeLineWidth}).style(\"stroke\",function(t){return O.tinyRGB(P(t.nodeLineColor))}).style(\"stroke-opacity\",function(t){return O.opacity(t.nodeLineColor)}).style(\"fill\",function(t){return t.tinyColorHue}).style(\"fill-opacity\",function(t){return t.tinyColorAlpha}),L.transition().ease(z.ease).duration(z.duration).call(y);var C=g.selectAll(\".nodeCapture\").data(i);C.enter().append(\"rect\").classed(\"nodeCapture\",!0).style(\"fill-opacity\",0),C.attr(\"x\",function(t){return t.zoneX}).attr(\"y\",function(t){return t.zoneY}).attr(\"width\",function(t){return t.zoneWidth}).attr(\"height\",function(t){return t.zoneHeight});var I=g.selectAll(\".nodeCentered\").data(i);I.enter().append(\"g\").classed(\"nodeCentered\",!0).attr(\"transform\",_),I.transition().ease(z.ease).duration(z.duration).attr(\"transform\",_);var D=I.selectAll(\".nodeLabelGuide\").data(i);D.enter().append(\"path\").classed(\"nodeLabelGuide\",!0).attr(\"id\",function(t){return t.uniqueNodeLabelPathId}).attr(\"d\",w).attr(\"transform\",M),D.transition().ease(z.ease).duration(z.duration).attr(\"d\",w).attr(\"transform\",M);var F=I.selectAll(\".nodeLabel\").data(i);F.enter().append(\"text\").classed(\"nodeLabel\",!0).attr(\"transform\",k).style(\"user-select\",\"none\").style(\"cursor\",\"default\").style(\"fill\",\"black\"),F.style(\"text-shadow\",function(t){return t.horizontal?\"-1px 1px 1px #fff, 1px 1px 1px #fff, 1px -1px 1px #fff, -1px -1px 1px #fff\":\"none\"}).each(function(t){R.font(F,t.textFont)}),F.transition().ease(z.ease).duration(z.duration).attr(\"transform\",k);var j=F.selectAll(\".nodeLabelTextPath\").data(i);j.enter().append(\"textPath\").classed(\"nodeLabelTextPath\",!0).attr(\"alignment-baseline\",\"middle\").attr(\"xlink:href\",function(t){return\"#\"+t.uniqueNodeLabelPathId}).attr(\"startOffset\",T).style(\"fill\",A),j.text(function(t){return t.horizontal||t.node.dy>5?t.node.label:\"\"}).attr(\"text-anchor\",function(t){return t.horizontal&&t.left?\"end\":\"start\"}),j.transition().ease(z.ease).duration(z.duration).attr(\"startOffset\",T).style(\"fill\",A)}},{\"../../components/color\":604,\"../../components/drawing\":628,\"../../lib\":728,\"./constants\":1025,\"@plotly/d3-sankey\":38,d3:122,\"d3-force\":118,tinycolor2:534}],1030:[function(t,e,r){\"use strict\";var n=t(\"../../lib\");e.exports=function(t,e){for(var r=0;r<t.length;r++)t[r].i=r;n.mergeArray(e.text,t,\"tx\"),n.mergeArray(e.hovertext,t,\"htx\"),n.mergeArray(e.customdata,t,\"data\"),n.mergeArray(e.textposition,t,\"tp\"),e.textfont&&(n.mergeArray(e.textfont.size,t,\"ts\"),n.mergeArray(e.textfont.color,t,\"tc\"),n.mergeArray(e.textfont.family,t,\"tf\"));var i=e.marker;if(i){n.mergeArray(i.size,t,\"ms\"),n.mergeArray(i.opacity,t,\"mo\"),n.mergeArray(i.symbol,t,\"mx\"),n.mergeArray(i.color,t,\"mc\");var a=i.line;i.line&&(n.mergeArray(a.color,t,\"mlc\"),n.mergeArray(a.width,t,\"mlw\"));var o=i.gradient;o&&\"none\"!==o.type&&(n.mergeArray(o.type,t,\"mgt\"),n.mergeArray(o.color,t,\"mgc\"))}}},{\"../../lib\":728}],1031:[function(t,e,r){\"use strict\";var n=t(\"../../components/colorscale/color_attributes\"),i=t(\"../../components/errorbars/attributes\"),a=t(\"../../components/colorbar/attributes\"),o=t(\"../../plots/font_attributes\"),s=t(\"../../components/drawing/attributes\").dash,l=t(\"../../components/drawing\"),u=(t(\"./constants\"),t(\"../../lib/extend\").extendFlat);e.exports={x:{valType:\"data_array\",editType:\"calc+clearAxisTypes\"},x0:{valType:\"any\",dflt:0,editType:\"calc+clearAxisTypes\"},dx:{valType:\"number\",dflt:1,editType:\"calc\"},y:{valType:\"data_array\",editType:\"calc+clearAxisTypes\"},y0:{valType:\"any\",dflt:0,editType:\"calc+clearAxisTypes\"},dy:{valType:\"number\",dflt:1,editType:\"calc\"},text:{valType:\"string\",dflt:\"\",arrayOk:!0,editType:\"calc\"},hovertext:{valType:\"string\",dflt:\"\",arrayOk:!0,editType:\"style\"},mode:{valType:\"flaglist\",flags:[\"lines\",\"markers\",\"text\"],extras:[\"none\"],editType:\"calc\"},hoveron:{valType:\"flaglist\",flags:[\"points\",\"fills\"],editType:\"style\"},line:{color:{valType:\"color\",editType:\"style\"},width:{valType:\"number\",min:0,dflt:2,editType:\"style\"},shape:{valType:\"enumerated\",values:[\"linear\",\"spline\",\"hv\",\"vh\",\"hvh\",\"vhv\"],dflt:\"linear\",editType:\"plot\"},smoothing:{valType:\"number\",min:0,max:1.3,dflt:1,editType:\"plot\"},dash:u({},s,{editType:\"style\"}),simplify:{valType:\"boolean\",dflt:!0,editType:\"plot\"},editType:\"plot\"},connectgaps:{valType:\"boolean\",dflt:!1,editType:\"calc\"},cliponaxis:{valType:\"boolean\",dflt:!0,editType:\"plot\"},fill:{valType:\"enumerated\",values:[\"none\",\"tozeroy\",\"tozerox\",\"tonexty\",\"tonextx\",\"toself\",\"tonext\"],dflt:\"none\",editType:\"calc\"},fillcolor:{valType:\"color\",editType:\"style\"},marker:u({symbol:{valType:\"enumerated\",values:l.symbolList,dflt:\"circle\",arrayOk:!0,editType:\"style\"},opacity:{valType:\"number\",min:0,max:1,arrayOk:!0,editType:\"style\"},size:{valType:\"number\",min:0,dflt:6,arrayOk:!0,editType:\"calcIfAutorange\"},maxdisplayed:{valType:\"number\",min:0,dflt:0,editType:\"plot\"},sizeref:{valType:\"number\",dflt:1,editType:\"calc\"},sizemin:{valType:\"number\",min:0,dflt:0,editType:\"calc\"},sizemode:{valType:\"enumerated\",values:[\"diameter\",\"area\"],dflt:\"diameter\",editType:\"calc\"},showscale:{valType:\"boolean\",dflt:!1,editType:\"calc\"},colorbar:a,line:u({width:{valType:\"number\",min:0,arrayOk:!0,editType:\"style\"},editType:\"calc\"},n(\"marker.line\")),gradient:{type:{valType:\"enumerated\",values:[\"radial\",\"horizontal\",\"vertical\",\"none\"],arrayOk:!0,dflt:\"none\",editType:\"calc\"},color:{valType:\"color\",arrayOk:!0,editType:\"calc\"},editType:\"calc\"},editType:\"calc\"},n(\"marker\")),textposition:{valType:\"enumerated\",values:[\"top left\",\"top center\",\"top right\",\"middle left\",\"middle center\",\"middle right\",\"bottom left\",\"bottom center\",\"bottom right\"],dflt:\"middle center\",arrayOk:!0,editType:\"calc\"},textfont:o({editType:\"calc\",colorEditType:\"style\",arrayOk:!0}),r:{valType:\"data_array\",editType:\"calc\"},t:{valType:\"data_array\",editType:\"calc\"},error_y:i,error_x:i}},{\"../../components/colorbar/attributes\":605,\"../../components/colorscale/color_attributes\":611,\"../../components/drawing\":628,\"../../components/drawing/attributes\":627,\"../../components/errorbars/attributes\":630,\"../../lib/extend\":717,\"../../plots/font_attributes\":796,\"./constants\":1036}],1032:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../../plots/cartesian/axes\"),a=t(\"../../constants/numerical\").BADNUM,o=t(\"./subtypes\"),s=t(\"./colorscale_calc\"),l=t(\"./arrays_to_calcdata\");e.exports=function(t,e){var r,u,c,h=i.getFromId(t,e.xaxis||\"x\"),f=i.getFromId(t,e.yaxis||\"y\"),d=h.makeCalcdata(e,\"x\"),p=f.makeCalcdata(e,\"y\"),m=Math.min(d.length,p.length);h._minDtick=0,f._minDtick=0,d.length>m&&d.splice(m,d.length-m),p.length>m&&p.splice(m,p.length-m);var v={padded:!0},g={padded:!0};if(o.hasMarkers(e)){if(r=e.marker,u=r.size,Array.isArray(u)){var y={type:\"linear\"};i.setConvert(y),u=y.makeCalcdata(e.marker,\"size\"),u.length>m&&u.splice(m,u.length-m)}var b,x=1.6*(e.marker.sizeref||1);b=\"area\"===e.marker.sizemode?function(t){return Math.max(Math.sqrt((t||0)/x),3)}:function(t){return Math.max((t||0)/x,3)},v.ppad=g.ppad=Array.isArray(u)?u.map(b):b(u)}s(e),!(\"tozerox\"===e.fill||\"tonextx\"===e.fill&&t.firstscatter)||d[0]===d[m-1]&&p[0]===p[m-1]?e.error_y.visible||-1===[\"tonexty\",\"tozeroy\"].indexOf(e.fill)&&(o.hasMarkers(e)||o.hasText(e))||(v.padded=!1,v.ppad=0):v.tozero=!0,!(\"tozeroy\"===e.fill||\"tonexty\"===e.fill&&t.firstscatter)||d[0]===d[m-1]&&p[0]===p[m-1]?-1!==[\"tonextx\",\"tozerox\"].indexOf(e.fill)&&(g.padded=!1):g.tozero=!0,i.expand(h,d,v),i.expand(f,p,g);var _=new Array(m);for(c=0;c<m;c++)_[c]=n(d[c])&&n(p[c])?{x:d[c],y:p[c]}:{x:a,y:a},e.ids&&(_[c].id=String(e.ids[c]));return l(_,e),t.firstscatter=!1,_}},{\"../../constants/numerical\":707,\"../../plots/cartesian/axes\":772,\"./arrays_to_calcdata\":1030,\"./colorscale_calc\":1035,\"./subtypes\":1052,\"fast-isnumeric\":131}],1033:[function(t,e,r){\"use strict\";e.exports=function(t){for(var e=0;e<t.length;e++){var r=t[e];if(\"scatter\"===r.type){var n=r.fill;if(\"none\"!==n&&\"toself\"!==n&&(r.opacity=void 0,\"tonexty\"===n||\"tonextx\"===n))for(var i=e-1;i>=0;i--){var a=t[i];if(\"scatter\"===a.type&&a.xaxis===r.xaxis&&a.yaxis===r.yaxis){a.opacity=void 0;break}}}}}},{}],1034:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../../lib\"),a=t(\"../../plots/plots\"),o=t(\"../../components/colorscale\"),s=t(\"../../components/colorbar/draw\");e.exports=function(t,e){var r=e[0].trace,l=r.marker,u=\"cb\"+r.uid;if(t._fullLayout._infolayer.selectAll(\".\"+u).remove(),void 0===l||!l.showscale)return void a.autoMargin(t,u);var c=l.color,h=l.cmin,f=l.cmax;n(h)||(h=i.aggNums(Math.min,null,c)),n(f)||(f=i.aggNums(Math.max,null,c));var d=e[0].t.cb=s(t,u),p=o.makeColorScaleFunc(o.extractScale(l.colorscale,h,f),{noNumericCheck:!0});d.fillcolor(p).filllevels({start:h,end:f,size:(f-h)/254}).options(l.colorbar)()}},{\"../../components/colorbar/draw\":607,\"../../components/colorscale\":618,\"../../lib\":728,\"../../plots/plots\":831,\"fast-isnumeric\":131}],1035:[function(t,e,r){\"use strict\";var n=t(\"../../components/colorscale/has_colorscale\"),i=t(\"../../components/colorscale/calc\"),a=t(\"./subtypes\");e.exports=function(t){a.hasLines(t)&&n(t,\"line\")&&i(t,t.line.color,\"line\",\"c\"),a.hasMarkers(t)&&(n(t,\"marker\")&&i(t,t.marker.color,\"marker\",\"c\"),n(t,\"marker.line\")&&i(t,t.marker.line.color,\"marker.line\",\"c\"))}},{\"../../components/colorscale/calc\":610,\"../../components/colorscale/has_colorscale\":617,\"./subtypes\":1052}],1036:[function(t,e,r){\"use strict\";e.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20}},{}],1037:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"./attributes\"),a=t(\"./constants\"),o=t(\"./subtypes\"),s=t(\"./xy_defaults\"),l=t(\"./marker_defaults\"),u=t(\"./line_defaults\"),c=t(\"./line_shape_defaults\"),h=t(\"./text_defaults\"),f=t(\"./fillcolor_defaults\"),d=t(\"../../components/errorbars/defaults\");e.exports=function(t,e,r,p){function m(r,a){return n.coerce(t,e,i,r,a)}var v=s(t,e,p,m),g=v<a.PTS_LINESONLY?\"lines+markers\":\"lines\";if(!v)return void(e.visible=!1);m(\"text\"),m(\"hovertext\"),m(\"mode\",g),o.hasLines(e)&&(u(t,e,r,p,m),c(t,e,m),m(\"connectgaps\"),m(\"line.simplify\")),o.hasMarkers(e)&&l(t,e,r,p,m,{gradient:!0}),o.hasText(e)&&h(t,e,p,m);var y=[];(o.hasMarkers(e)||o.hasText(e))&&(m(\"marker.maxdisplayed\"),y.push(\"points\")),m(\"fill\"),\"none\"!==e.fill&&(f(t,e,r,m),o.hasLines(e)||c(t,e,m)),\"tonext\"!==e.fill&&\"toself\"!==e.fill||y.push(\"fills\"),m(\"hoveron\",y.join(\"+\")||\"points\"),d(t,e,r,{axis:\"y\"}),d(t,e,r,{axis:\"x\",inherit:\"y\"}),m(\"cliponaxis\")}},{\"../../components/errorbars/defaults\":633,\"../../lib\":728,\"./attributes\":1031,\"./constants\":1036,\"./fillcolor_defaults\":1039,\"./line_defaults\":1043,\"./line_shape_defaults\":1045,\"./marker_defaults\":1048,\"./subtypes\":1052,\"./text_defaults\":1053,\"./xy_defaults\":1054}],1038:[function(t,e,r){\"use strict\";function n(t){return t||0===t}var i=t(\"../../lib\");e.exports=function(t,e,r){var a=Array.isArray(r)?function(t){r.push(t)}:function(t){r.text=t},o=i.extractOption(t,e,\"htx\",\"hovertext\");if(n(o))return a(o);var s=i.extractOption(t,e,\"tx\",\"text\");return n(s)?a(s):void 0}},{\"../../lib\":728}],1039:[function(t,e,r){\"use strict\";var n=t(\"../../components/color\");e.exports=function(t,e,r,i){var a=!1;if(e.marker){var o=e.marker.color,s=(e.marker.line||{}).color;o&&!Array.isArray(o)?a=o:s&&!Array.isArray(s)&&(a=s)}i(\"fillcolor\",n.addOpacity((e.line||{}).color||a||r,.5))}},{\"../../components/color\":604}],1040:[function(t,e,r){\"use strict\";var n=t(\"../../components/color\"),i=t(\"./subtypes\");e.exports=function(t,e){var r,a;if(\"lines\"===t.mode)return r=t.line.color,r&&n.opacity(r)?r:t.fillcolor;if(\"none\"===t.mode)return t.fill?t.fillcolor:\"\";var o=e.mcc||(t.marker||{}).color,s=e.mlcc||((t.marker||{}).line||{}).color;return a=o&&n.opacity(o)?o:s&&n.opacity(s)&&(e.mlw||((t.marker||{}).line||{}).width)?s:\"\",a?n.opacity(a)<.3?n.addOpacity(a,.3):a:(r=(t.line||{}).color,r&&n.opacity(r)&&i.hasLines(t)&&t.line.width?r:t.fillcolor)}},{\"../../components/color\":604,\"./subtypes\":1052}],1041:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../components/fx\"),a=t(\"../../components/errorbars\"),o=t(\"./get_trace_color\"),s=t(\"../../components/color\"),l=t(\"./fill_hover_text\"),u=i.constants.MAXDIST;e.exports=function(t,e,r,c){var h=t.cd,f=h[0].trace,d=t.xa,p=t.ya,m=d.c2p(e),v=p.c2p(r),g=[m,v],y=f.hoveron||\"\";if(-1!==y.indexOf(\"points\")){var b=function(t){var e=Math.max(3,t.mrc||0);return Math.max(Math.abs(d.c2p(t.x)-m)-e,1-3/e)},x=function(t){var e=Math.max(3,t.mrc||0);return Math.max(Math.abs(p.c2p(t.y)-v)-e,1-3/e)},_=function(t){var e=Math.max(3,t.mrc||0),r=d.c2p(t.x)-m,n=p.c2p(t.y)-v;return Math.max(Math.sqrt(r*r+n*n)-e,1-3/e)},w=i.getDistanceFunction(c,b,x,_);if(i.getClosest(h,w,t),!1!==t.index){var M=h[t.index],k=d.c2p(M.x,!0),A=p.c2p(M.y,!0),T=M.mrc||1;return n.extendFlat(t,{color:o(f,M),x0:k-T,x1:k+T,xLabelVal:M.x,y0:A-T,y1:A+T,yLabelVal:M.y}),l(M,f,t),a.hoverInfo(M,f,t),[t]}}if(-1!==y.indexOf(\"fills\")&&f._polygons){var S,E,L,C,I,z,D,P,O,R=f._polygons,F=[],j=!1,N=1/0,B=-1/0,U=1/0,V=-1/0;for(S=0;S<R.length;S++)L=R[S],L.contains(g)&&(j=!j,F.push(L),U=Math.min(U,L.ymin),V=Math.max(V,L.ymax));if(j){U=Math.max(U,0),V=Math.min(V,p._length);var H=(U+V)/2;for(S=0;S<F.length;S++)for(C=F[S].pts,E=1;E<C.length;E++)P=C[E-1][1],O=C[E][1],P>H!=O>=H&&(z=C[E-1][0],D=C[E][0],I=z+(D-z)*(H-P)/(O-P),N=Math.min(N,I),B=Math.max(B,I));N=Math.max(N,0),B=Math.min(B,d._length);var q=s.defaultLine;return s.opacity(f.fillcolor)?q=f.fillcolor:s.opacity((f.line||{}).color)&&(q=f.line.color),n.extendFlat(t,{distance:u+10,x0:N,x1:B,y0:H,y1:H,color:q}),delete t.index,f.text&&!Array.isArray(f.text)?t.text=String(f.text):t.text=f.name,[t]}}}},{\"../../components/color\":604,\"../../components/errorbars\":634,\"../../components/fx\":645,\"../../lib\":728,\"./fill_hover_text\":1038,\"./get_trace_color\":1040}],1042:[function(t,e,r){\"use strict\";var n={},i=t(\"./subtypes\");n.hasLines=i.hasLines,n.hasMarkers=i.hasMarkers,n.hasText=i.hasText,n.isBubble=i.isBubble,n.attributes=t(\"./attributes\"),n.supplyDefaults=t(\"./defaults\"),n.cleanData=t(\"./clean_data\"),n.calc=t(\"./calc\"),n.arraysToCalcdata=t(\"./arrays_to_calcdata\"),n.plot=t(\"./plot\"),n.colorbar=t(\"./colorbar\"),n.style=t(\"./style\"),n.hoverPoints=t(\"./hover\"),n.selectPoints=t(\"./select\"),n.animatable=!0,n.moduleType=\"trace\",n.name=\"scatter\",n.basePlotModule=t(\"../../plots/cartesian\"),n.categories=[\"cartesian\",\"symbols\",\"markerColorscale\",\"errorBarsOK\",\"showLegend\",\"scatter-like\"],n.meta={},e.exports=n},{\"../../plots/cartesian\":782,\"./arrays_to_calcdata\":1030,\"./attributes\":1031,\"./calc\":1032,\"./clean_data\":1033,\"./colorbar\":1034,\"./defaults\":1037,\"./hover\":1041,\"./plot\":1049,\"./select\":1050,\"./style\":1051,\"./subtypes\":1052}],1043:[function(t,e,r){\"use strict\";var n=t(\"../../components/colorscale/has_colorscale\"),i=t(\"../../components/colorscale/defaults\");e.exports=function(t,e,r,a,o,s){var l=(t.marker||{}).color;if(o(\"line.color\",r),n(t,\"line\"))i(t,e,a,o,{prefix:\"line.\",cLetter:\"c\"});else{o(\"line.color\",!Array.isArray(l)&&l||r)}o(\"line.width\"),(s||{}).noDash||o(\"line.dash\")}},{\"../../components/colorscale/defaults\":613,\"../../components/colorscale/has_colorscale\":617}],1044:[function(t,e,r){\"use strict\";var n=t(\"../../constants/numerical\").BADNUM,i=t(\"../../lib\"),a=i.segmentsIntersect,o=i.constrain,s=t(\"./constants\");e.exports=function(t,e){function r(e){var r=O.c2p(t[e].x),i=R.c2p(t[e].y);return r!==n&&i!==n&&[r,i]}function l(t){var e=t[0]/O._length,r=t[1]/R._length;return(1+s.toleranceGrowth*Math.max(0,-e,e-1,-r,r-1))*N}function u(t,e){var r=t[0]-e[0],n=t[1]-e[1];return Math.sqrt(r*r+n*n)}function c(t,e){for(var r=[],n=0,i=0;i<4;i++){var o=it[i],s=a(t[0],t[1],e[0],e[1],o[0],o[1],o[2],o[3]);s&&(!n||Math.abs(s.x-r[0][0])>1||Math.abs(s.y-r[0][1])>1)&&(s=[s.x,s.y],n&&u(s,t)<u(r[0],t)?r.unshift(s):r.push(s),n++)}return r}function h(t){if(t[0]<tt||t[0]>et||t[1]<rt||t[1]>nt)return[o(t[0],tt,et),o(t[1],rt,nt)]}function f(t,e){return t[0]===e[0]&&(t[0]===tt||t[0]===et)||(t[1]===e[1]&&(t[1]===rt||t[1]===nt)||void 0)}function d(t,e){var r=[],n=h(t),i=h(e);return n&&i&&f(n,i)?r:(n&&r.push(n),i&&r.push(i),r)}function p(t,e,r){return function(n,a){var o=h(n),s=h(a),l=[];if(o&&s&&f(o,s))return l;o&&l.push(o),s&&l.push(s);var u=2*i.constrain((n[t]+a[t])/2,e,r)-((o||n)[t]+(s||a)[t]);if(u){var c;c=o&&s?u>0==o[t]>s[t]?o:s:o||s,c[t]+=u}return l}}function m(t,e){var r=e[0]-t[0],n=(e[1]-t[1])/r;return(t[1]*e[0]-e[1]*t[0])/r>0?[n>0?tt:et,nt]:[n>0?et:tt,rt]}function v(t){var e=t[0],r=t[1],n=e===q[G-1][0],i=r===q[G-1][1];if(!n||!i)if(G>1){var a=e===q[G-2][0],o=r===q[G-2][1];n&&(e===tt||e===et)&&a?o?G--:q[G-1]=t:i&&(r===rt||r===nt)&&o?a?G--:q[G-1]=t:q[G++]=t}else q[G++]=t}function g(t){q[G-1][0]!==t[0]&&q[G-1][1]!==t[1]&&v([X,Z]),v(t),J=null,X=Z=0}function y(t){if(Y=t[0]<tt?tt:t[0]>et?et:0,W=t[1]<rt?rt:t[1]>nt?nt:0,Y||W){if(G)if(J){var e=Q(J,t);e.length>1&&(g(e[0]),q[G++]=e[1])}else K=Q(q[G-1],t)[0],q[G++]=K;else q[G++]=[Y||t[0],W||t[1]];var r=q[G-1];Y&&W&&(r[0]!==Y||r[1]!==W)?(J&&(X!==Y&&Z!==W?v(X&&Z?m(J,t):[X||Y,Z||W]):X&&Z&&v([X,Z])),v([Y,W])):X-Y&&Z-W&&v([Y||X,W||Z]),J=t,X=Y,Z=W}else J&&g(Q(J,t)[0]),q[G++]=t}var b,x,_,w,M,k,A,T,S,E,L,C,I,z,D,P,O=e.xaxis,R=e.yaxis,F=e.simplify,j=e.connectGaps,N=e.baseTolerance,B=e.shape,U=\"linear\"===B,V=[],H=s.minTolerance,q=new Array(t.length),G=0;F||(N=H=-1);var Y,W,X,Z,J,K,Q,$=s.maxScreensAway,tt=-O._length*$,et=O._length*(1+$),rt=-R._length*$,nt=R._length*(1+$),it=[[tt,rt,et,rt],[et,rt,et,nt],[et,nt,tt,nt],[tt,nt,tt,rt]];for(\"linear\"===B||\"spline\"===B?Q=c:\"hv\"===B||\"vh\"===B?Q=d:\"hvh\"===B?Q=p(0,tt,et):\"vhv\"===B&&(Q=p(1,rt,nt)),b=0;b<t.length;b++)if(x=r(b)){for(G=0,J=null,y(x),b++;b<t.length;b++){if(!(w=r(b))){if(j)continue;break}if(U){if(!((E=u(w,x))<l(w)*H)){for(T=[(w[0]-x[0])/E,(w[1]-x[1])/E],M=x,L=E,C=z=D=0,A=!1,_=w,b++;b<t.length;b++){if(!(k=r(b))){if(j)continue;break}if(S=[k[0]-x[0],k[1]-x[1]],P=S[0]*T[1]-S[1]*T[0],z=Math.min(z,P),(D=Math.max(D,P))-z>l(k))break;_=k,I=S[0]*T[0]+S[1]*T[1],I>L?(L=I,w=k,A=!1):I<C&&(C=I,M=k,A=!0)}if(A?(y(w),_!==M&&y(M)):(M!==x&&y(M),_!==w&&y(w)),y(_),b>=t.length||!k)break;y(k),x=k}}else y(w)}J&&v([X||J[0],Z||J[1]]),V.push(q.slice(0,G))}return V}},{\"../../constants/numerical\":707,\"../../lib\":728,\"./constants\":1036}],1045:[function(t,e,r){\"use strict\";e.exports=function(t,e,r){\"spline\"===r(\"line.shape\")&&r(\"line.smoothing\")}},{}],1046:[function(t,e,r){\"use strict\";e.exports=function(t,e,r){for(var n,i,a=null,o=0;o<r.length;++o)n=r[o],i=n[0].trace,!0===i.visible?(i._nexttrace=null,-1!==[\"tonextx\",\"tonexty\",\"tonext\"].indexOf(i.fill)&&(i._prevtrace=a,a&&(a._nexttrace=i)),a=i):i._prevtrace=i._nexttrace=null}},{}],1047:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\");e.exports=function(t){var e=t.marker,r=e.sizeref||1,i=e.sizemin||0,a=\"area\"===e.sizemode?function(t){return Math.sqrt(t/r)}:function(t){return t/r};return function(t){var e=a(t/2);return n(e)&&e>0?Math.max(e,i):0}}},{\"fast-isnumeric\":131}],1048:[function(t,e,r){\"use strict\";var n=t(\"../../components/color\"),i=t(\"../../components/colorscale/has_colorscale\"),a=t(\"../../components/colorscale/defaults\"),o=t(\"./subtypes\");e.exports=function(t,e,r,s,l,u){var c,h=o.isBubble(t),f=(t.line||{}).color;if(u=u||{},f&&(r=f),l(\"marker.symbol\"),l(\"marker.opacity\",h?.7:1),l(\"marker.size\"),l(\"marker.color\",r),i(t,\"marker\")&&a(t,e,s,l,{prefix:\"marker.\",cLetter:\"c\"}),u.noLine||(c=f&&!Array.isArray(f)&&e.marker.color!==f?f:h?n.background:n.defaultLine,l(\"marker.line.color\",c),i(t,\"marker.line\")&&a(t,e,s,l,{prefix:\"marker.line.\",cLetter:\"c\"}),l(\"marker.line.width\",h?1:0)),h&&(l(\"marker.sizeref\"),l(\"marker.sizemin\"),l(\"marker.sizemode\")),u.gradient){\"none\"!==l(\"marker.gradient.type\")&&l(\"marker.gradient.color\")}}},{\"../../components/color\":604,\"../../components/colorscale/defaults\":613,\"../../components/colorscale/has_colorscale\":617,\"./subtypes\":1052}],1049:[function(t,e,r){\"use strict\";function n(t,e,r){var n;e.selectAll(\"g.trace\").each(function(t){\n", "var e=o.select(this);if(n=t[0].trace,n._nexttrace){if(n._nextFill=e.select(\".js-fill.js-tonext\"),!n._nextFill.size()){var i=\":first-child\";e.select(\".js-fill.js-tozero\").size()&&(i+=\" + *\"),n._nextFill=e.insert(\"path\",i).attr(\"class\",\"js-fill js-tonext\")}}else e.selectAll(\".js-fill.js-tonext\").remove(),n._nextFill=null;n.fill&&(\"tozero\"===n.fill.substr(0,6)||\"toself\"===n.fill||\"to\"===n.fill.substr(0,2)&&!n._prevtrace)?(n._ownFill=e.select(\".js-fill.js-tozero\"),n._ownFill.size()||(n._ownFill=e.insert(\"path\",\":first-child\").attr(\"class\",\"js-fill js-tozero\"))):(e.selectAll(\".js-fill.js-tozero\").remove(),n._ownFill=null),e.selectAll(\".js-fill\").call(l.setClipUrl,r.layerClipId)})}function i(t,e,r,n,i,f,p){function m(t){return M?t.transition():t}function v(t){return t.filter(function(t){return t.vis})}function g(t){return t.id}function y(t){if(t.ids)return g}function b(){return!1}function x(e){var n,i,a,u=e[0].trace,h=o.select(this),f=c.hasMarkers(u),d=c.hasText(u),p=y(u),g=b,x=b;f&&(g=u.marker.maxdisplayed||u._needsCull?v:s.identity),d&&(x=u.marker.maxdisplayed||u._needsCull?v:s.identity),i=h.selectAll(\"path.point\"),n=i.data(g,p);var _=n.enter().append(\"path\").classed(\"point\",!0);M&&_.call(l.pointStyle,u,t).call(l.translatePoints,k,A).style(\"opacity\",0).transition().style(\"opacity\",1);var w=f&&l.tryColorscale(u.marker,\"\"),T=f&&l.tryColorscale(u.marker,\"line\");n.order(),n.each(function(e){var n=o.select(this),i=m(n);a=l.translatePoint(e,i,k,A),a?(l.singlePointStyle(e,i,u,w,T,t),r.layerClipId&&l.hideOutsideRangePoint(e,i,k,A),u.customdata&&n.classed(\"plotly-customdata\",null!==e.data&&void 0!==e.data)):i.remove()}),M?n.exit().transition().style(\"opacity\",0).remove():n.exit().remove(),i=h.selectAll(\"g\"),n=i.data(x,p),n.enter().append(\"g\").classed(\"textpoint\",!0).append(\"text\"),n.order(),n.each(function(t){var e=o.select(this),n=m(e.select(\"text\"));a=l.translatePoint(t,n,k,A),a?r.layerClipId&&l.hideOutsideRangePoint(t,e,k,A):e.remove()}),n.selectAll(\"text\").call(l.textPointStyle,u,t).each(function(t){var e=k.c2p(t.x),r=A.c2p(t.y);o.select(this).selectAll(\"tspan.line\").each(function(){m(o.select(this)).attr({x:e,y:r})})}),n.exit().remove()}var _,w;a(t,e,r,n,i);var M=!!p&&p.duration>0,k=r.xaxis,A=r.yaxis,T=n[0].trace,S=T.line,E=o.select(f);if(E.call(u.plot,r,p),!0===T.visible){m(E).style(\"opacity\",T.opacity);var L,C,I=T.fill.charAt(T.fill.length-1);\"x\"!==I&&\"y\"!==I&&(I=\"\"),n[0].node3=E;var z=\"\",D=[],P=T._prevtrace;P&&(z=P._prevRevpath||\"\",C=P._nextFill,D=P._polygons);var O,R,F,j,N,B,U,V,H,q=\"\",G=\"\",Y=[],W=s.noop;if(L=T._ownFill,c.hasLines(T)||\"none\"!==T.fill){for(C&&C.datum(n),-1!==[\"hv\",\"vh\",\"hvh\",\"vhv\"].indexOf(S.shape)?(F=l.steps(S.shape),j=l.steps(S.shape.split(\"\").reverse().join(\"\"))):F=j=\"spline\"===S.shape?function(t){var e=t[t.length-1];return t.length>1&&t[0][0]===e[0]&&t[0][1]===e[1]?l.smoothclosed(t.slice(1),S.smoothing):l.smoothopen(t,S.smoothing)}:function(t){return\"M\"+t.join(\"L\")},N=function(t){return j(t.reverse())},Y=h(n,{xaxis:k,yaxis:A,connectGaps:T.connectgaps,baseTolerance:Math.max(S.width||1,3)/4,shape:S.shape,simplify:S.simplify}),H=T._polygons=new Array(Y.length),w=0;w<Y.length;w++)T._polygons[w]=d(Y[w]);Y.length&&(B=Y[0][0],U=Y[Y.length-1],V=U[U.length-1]),W=function(t){return function(e){if(O=F(e),R=N(e),q?I?(q+=\"L\"+O.substr(1),G=R+\"L\"+G.substr(1)):(q+=\"Z\"+O,G=R+\"Z\"+G):(q=O,G=R),c.hasLines(T)&&e.length>1){var r=o.select(this);if(r.datum(n),t)m(r.style(\"opacity\",0).attr(\"d\",O).call(l.lineGroupStyle)).style(\"opacity\",1);else{var i=m(r);i.attr(\"d\",O),l.singleLineStyle(n,i)}}}}}var X=E.selectAll(\".js-line\").data(Y);m(X.exit()).style(\"opacity\",0).remove(),X.each(W(!1)),X.enter().append(\"path\").classed(\"js-line\",!0).style(\"vector-effect\",\"non-scaling-stroke\").call(l.lineGroupStyle).each(W(!0)),l.setClipUrl(X,r.layerClipId),Y.length&&(L?B&&V&&(I?(\"y\"===I?B[1]=V[1]=A.c2p(0,!0):\"x\"===I&&(B[0]=V[0]=k.c2p(0,!0)),m(L).attr(\"d\",\"M\"+V+\"L\"+B+\"L\"+q.substr(1)).call(l.singleFillStyle)):m(L).attr(\"d\",q+\"Z\").call(l.singleFillStyle)):\"tonext\"===T.fill.substr(0,6)&&q&&z&&(\"tonext\"===T.fill?m(C).attr(\"d\",q+\"Z\"+z+\"Z\").call(l.singleFillStyle):m(C).attr(\"d\",q+\"L\"+z.substr(1)+\"Z\").call(l.singleFillStyle),T._polygons=T._polygons.concat(D)),T._prevRevpath=G,T._prevPolygons=H);var Z=E.selectAll(\".points\");_=Z.data([n]),Z.each(x),_.enter().append(\"g\").classed(\"points\",!0).each(x),_.exit().remove(),_.each(function(t){var e=!1===t[0].trace.cliponaxis;l.setClipUrl(o.select(this),e?null:r.layerClipId)})}}function a(t,e,r,n,i){var a=r.xaxis,l=r.yaxis,u=o.extent(s.simpleMap(a.range,a.r2c)),h=o.extent(s.simpleMap(l.range,l.r2c)),f=n[0].trace;if(c.hasMarkers(f)){var d=f.marker.maxdisplayed;if(0!==d){var p=n.filter(function(t){return t.x>=u[0]&&t.x<=u[1]&&t.y>=h[0]&&t.y<=h[1]}),m=Math.ceil(p.length/d),v=0;i.forEach(function(t,r){var n=t[0].trace;c.hasMarkers(n)&&n.marker.maxdisplayed>0&&r<e&&v++});var g=Math.round(v*m/3+Math.floor(v/3)*m/7.1);n.forEach(function(t){delete t.vis}),p.forEach(function(t,e){0===Math.round((e+g)%m)&&(t.vis=!0)})}}}var o=t(\"d3\"),s=t(\"../../lib\"),l=t(\"../../components/drawing\"),u=t(\"../../components/errorbars\"),c=t(\"./subtypes\"),h=t(\"./line_points\"),f=t(\"./link_traces\"),d=t(\"../../lib/polygon\").tester;e.exports=function(t,e,r,a,s){var l,u,c,h,d,p=e.plot.select(\"g.scatterlayer\"),m=!a,v=!!a&&a.duration>0;for(c=p.selectAll(\"g.trace\"),h=c.data(r,function(t){return t[0].trace.uid}),h.enter().append(\"g\").attr(\"class\",function(t){return\"trace scatter trace\"+t[0].trace.uid}).style(\"stroke-miterlimit\",2),f(t,e,r),n(t,p,e),l=0,u={};l<r.length;l++)u[r[l][0].trace.uid]=l;if(p.selectAll(\"g.trace\").sort(function(t,e){return u[t[0].trace.uid]>u[e[0].trace.uid]?1:-1}),v){s&&(d=s());o.transition().duration(a.duration).ease(a.easing).each(\"end\",function(){d&&d()}).each(\"interrupt\",function(){d&&d()}).each(function(){p.selectAll(\"g.trace\").each(function(n,o){i(t,o,e,n,r,this,a)})})}else p.selectAll(\"g.trace\").each(function(n,o){i(t,o,e,n,r,this,a)});m&&h.exit().remove(),p.selectAll(\"path:not([d])\").remove()}},{\"../../components/drawing\":628,\"../../components/errorbars\":634,\"../../lib\":728,\"../../lib/polygon\":739,\"./line_points\":1044,\"./link_traces\":1046,\"./subtypes\":1052,d3:122}],1050:[function(t,e,r){\"use strict\";var n=t(\"./subtypes\"),i=t(\"../../constants/interactions\").DESELECTDIM;e.exports=function(t,e){var r,a,o,s,l=t.cd,u=t.xaxis,c=t.yaxis,h=[],f=l[0].trace,d=f.marker,p=!n.hasMarkers(f)&&!n.hasText(f);if(!0===f.visible&&!p){var m=Array.isArray(d.opacity)?1:d.opacity;if(!1===e)for(r=0;r<l.length;r++)l[r].dim=0;else for(r=0;r<l.length;r++)a=l[r],o=u.c2p(a.x),s=c.c2p(a.y),e.contains([o,s])?(h.push({pointNumber:r,x:a.x,y:a.y}),a.dim=0):a.dim=1;return l[0].node3.selectAll(\"path.point\").style(\"opacity\",function(t){return((t.mo+1||m+1)-1)*(t.dim?i:1)}),l[0].node3.selectAll(\"text\").style(\"opacity\",function(t){return t.dim?i:1}),h}}},{\"../../constants/interactions\":706,\"./subtypes\":1052}],1051:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../../components/drawing\"),a=t(\"../../components/errorbars\");e.exports=function(t){var e=n.select(t).selectAll(\"g.trace.scatter\");e.style(\"opacity\",function(t){return t[0].trace.opacity}),e.selectAll(\"g.points\").each(function(e){var r=n.select(this),a=r.selectAll(\"path.point\"),o=e.trace||e[0].trace;a.call(i.pointStyle,o,t),r.selectAll(\"text\").call(i.textPointStyle,o,t)}),e.selectAll(\"g.trace path.js-line\").call(i.lineGroupStyle),e.selectAll(\"g.trace path.js-fill\").call(i.fillGroupStyle),e.call(a.style)}},{\"../../components/drawing\":628,\"../../components/errorbars\":634,d3:122}],1052:[function(t,e,r){\"use strict\";var n=t(\"../../lib\");e.exports={hasLines:function(t){return t.visible&&t.mode&&-1!==t.mode.indexOf(\"lines\")},hasMarkers:function(t){return t.visible&&t.mode&&-1!==t.mode.indexOf(\"markers\")},hasText:function(t){return t.visible&&t.mode&&-1!==t.mode.indexOf(\"text\")},isBubble:function(t){return n.isPlainObject(t.marker)&&Array.isArray(t.marker.size)}}},{\"../../lib\":728}],1053:[function(t,e,r){\"use strict\";var n=t(\"../../lib\");e.exports=function(t,e,r,i){i(\"textposition\"),n.coerceFont(i,\"textfont\",r.font)}},{\"../../lib\":728}],1054:[function(t,e,r){\"use strict\";var n=t(\"../../registry\");e.exports=function(t,e,r,i){var a,o=i(\"x\"),s=i(\"y\");if(n.getComponentMethod(\"calendars\",\"handleTraceDefaults\")(t,e,[\"x\",\"y\"],r),o)s?(a=Math.min(o.length,s.length),a<o.length&&(e.x=o.slice(0,a)),a<s.length&&(e.y=s.slice(0,a))):(a=o.length,i(\"y0\"),i(\"dy\"));else{if(!s)return 0;a=e.y.length,i(\"x0\"),i(\"dx\")}return a}},{\"../../registry\":846}],1055:[function(t,e,r){\"use strict\";function n(t){return{show:{valType:\"boolean\",dflt:!1},opacity:{valType:\"number\",min:0,max:1,dflt:1},scale:{valType:\"number\",min:0,max:10,dflt:2/3}}}var i=t(\"../scatter/attributes\"),a=t(\"../../components/colorscale/color_attributes\"),o=t(\"../../components/errorbars/attributes\"),s=t(\"../../constants/gl3d_dashes\"),l=t(\"../../constants/gl3d_markers\"),u=t(\"../../lib/extend\").extendFlat,c=t(\"../../plot_api/edit_types\").overrideAll,h=i.line,f=i.marker,d=f.line,p=e.exports=c({x:i.x,y:i.y,z:{valType:\"data_array\"},text:u({},i.text,{}),hovertext:u({},i.hovertext,{}),mode:u({},i.mode,{dflt:\"lines+markers\"}),surfaceaxis:{valType:\"enumerated\",values:[-1,0,1,2],dflt:-1},surfacecolor:{valType:\"color\"},projection:{x:n(\"x\"),y:n(\"y\"),z:n(\"z\")},connectgaps:i.connectgaps,line:u({width:h.width,dash:{valType:\"enumerated\",values:Object.keys(s),dflt:\"solid\"},showscale:{valType:\"boolean\",dflt:!1}},a(\"line\")),marker:u({symbol:{valType:\"enumerated\",values:Object.keys(l),dflt:\"circle\",arrayOk:!0},size:u({},f.size,{dflt:8}),sizeref:f.sizeref,sizemin:f.sizemin,sizemode:f.sizemode,opacity:u({},f.opacity,{arrayOk:!1}),showscale:f.showscale,colorbar:f.colorbar,line:u({width:u({},d.width,{arrayOk:!1})},a(\"marker.line\"))},a(\"marker\")),textposition:u({},i.textposition,{dflt:\"top center\"}),textfont:i.textfont,error_x:o,error_y:o,error_z:o},\"calc\",\"nested\");p.x.editType=p.y.editType=p.z.editType=\"calc+clearAxisTypes\"},{\"../../components/colorscale/color_attributes\":611,\"../../components/errorbars/attributes\":630,\"../../constants/gl3d_dashes\":704,\"../../constants/gl3d_markers\":705,\"../../lib/extend\":717,\"../../plot_api/edit_types\":756,\"../scatter/attributes\":1031}],1056:[function(t,e,r){\"use strict\";var n=t(\"../scatter/arrays_to_calcdata\"),i=t(\"../scatter/colorscale_calc\");e.exports=function(t,e){var r=[{x:!1,y:!1,trace:e,t:{}}];return n(r,e),i(e),r}},{\"../scatter/arrays_to_calcdata\":1030,\"../scatter/colorscale_calc\":1035}],1057:[function(t,e,r){\"use strict\";function n(t,e,r){if(!e||!e.visible)return null;for(var n=o(e),i=new Array(t.length),a=0;a<t.length;a++){var s=n(+t[a],a);i[a]=[-s[0]*r,s[1]*r]}return i}function i(t){for(var e=0;e<t.length;e++)if(t[e])return t[e].length;return 0}function a(t,e){var r=[n(t.x,t.error_x,e[0]),n(t.y,t.error_y,e[1]),n(t.z,t.error_z,e[2])],a=i(r);if(0===a)return null;for(var o=new Array(a),s=0;s<a;s++){for(var l=[[0,0,0],[0,0,0]],u=0;u<3;u++)if(r[u])for(var c=0;c<2;c++)l[c][u]=r[u][s][c];o[s]=l}return o}var o=t(\"../../components/errorbars/compute_error\");e.exports=a},{\"../../components/errorbars/compute_error\":632}],1058:[function(t,e,r){\"use strict\";function n(t,e){this.scene=t,this.uid=e,this.linePlot=null,this.scatterPlot=null,this.errorBars=null,this.textMarkers=null,this.delaunayMesh=null,this.color=null,this.mode=\"\",this.dataPoints=[],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.textLabels=null,this.data=null}function i(t,e,r){var n,i=(r+1)%3,a=(r+2)%3,o=[],s=[];for(n=0;n<t.length;++n){var l=t[n];!isNaN(l[i])&&isFinite(l[i])&&!isNaN(l[a])&&isFinite(l[a])&&(o.push([l[i],l[a]]),s.push(n))}var u=g(o);for(n=0;n<u.length;++n)for(var c=u[n],h=0;h<c.length;++h)c[h]=s[c[h]];return{positions:t,cells:u,meshColor:e}}function a(t){for(var e=[0,0,0],r=[[0,0,0],[0,0,0],[0,0,0]],n=[0,0,0],i=0;i<3;i++){var a=t[i];a&&!1!==a.copy_zstyle&&(a=t[2]),a&&(e[i]=a.width/2,r[i]=b(a.color),n=a.thickness)}return{capSize:e,color:r,lineWidth:n}}function o(t){var e=[0,0];return Array.isArray(t)?[0,-1]:(t.indexOf(\"bottom\")>=0&&(e[1]+=1),t.indexOf(\"top\")>=0&&(e[1]-=1),t.indexOf(\"left\")>=0&&(e[0]-=1),t.indexOf(\"right\")>=0&&(e[0]+=1),e)}function s(t,e){return e(4*t)}function l(t){return M[t]}function u(t,e,r,n,i){var a=null;if(Array.isArray(t)){a=[];for(var o=0;o<e;o++)void 0===t[o]?a[o]=n:a[o]=r(t[o],i)}else a=r(t,y.identity);return a}function c(t,e){var r,n,i,c,h,f,d=[],p=t.fullSceneLayout,m=t.dataScale,v=p.xaxis,g=p.yaxis,w=p.zaxis,M=e.marker,A=e.line,T=e.x||[],S=e.y||[],E=e.z||[],L=T.length,C=e.xcalendar,I=e.ycalendar,z=e.zcalendar;for(n=0;n<L;n++)i=v.d2l(T[n],0,C)*m[0],c=g.d2l(S[n],0,I)*m[1],h=w.d2l(E[n],0,z)*m[2],d[n]=[i,c,h];if(Array.isArray(e.text))f=e.text;else if(void 0!==e.text)for(f=new Array(L),n=0;n<L;n++)f[n]=e.text;if(r={position:d,mode:e.mode,text:f},\"line\"in e&&(r.lineColor=x(A,1,L),r.lineWidth=A.width,r.lineDashes=A.dash),\"marker\"in e){var D=_(e);r.scatterColor=x(M,1,L),r.scatterSize=u(M.size,L,s,20,D),r.scatterMarker=u(M.symbol,L,l,\"\\u25cf\"),r.scatterLineWidth=M.line.width,r.scatterLineColor=x(M.line,1,L),r.scatterAngle=0}\"textposition\"in e&&(r.textOffset=o(e.textposition),r.textColor=x(e.textfont,1,L),r.textSize=u(e.textfont.size,L,y.identity,12),r.textFont=e.textfont.family,r.textAngle=0);var P=[\"x\",\"y\",\"z\"];for(r.project=[!1,!1,!1],r.projectScale=[1,1,1],r.projectOpacity=[1,1,1],n=0;n<3;++n){var O=e.projection[P[n]];(r.project[n]=O.show)&&(r.projectOpacity[n]=O.opacity,r.projectScale[n]=O.scale)}r.errorBounds=k(e,m);var R=a([e.error_x,e.error_y,e.error_z]);return r.errorColor=R.color,r.errorLineWidth=R.lineWidth,r.errorCapSize=R.capSize,r.delaunayAxis=e.surfaceaxis,r.delaunayColor=b(e.surfacecolor),r}function h(t){if(Array.isArray(t)){var e=t[0];return Array.isArray(e)&&(t=e),\"rgb(\"+t.slice(0,3).map(function(t){return Math.round(255*t)})+\")\"}return null}function f(t,e){var r=new n(t,e.uid);return r.update(e),r}var d=t(\"gl-line3d\"),p=t(\"gl-scatter3d\"),m=t(\"gl-error3d\"),v=t(\"gl-mesh3d\"),g=t(\"delaunay-triangulate\"),y=t(\"../../lib\"),b=t(\"../../lib/str2rgbarray\"),x=t(\"../../lib/gl_format_color\"),_=t(\"../scatter/make_bubble_size_func\"),w=t(\"../../constants/gl3d_dashes\"),M=t(\"../../constants/gl3d_markers\"),k=t(\"./calc_errors\"),A=n.prototype;A.handlePick=function(t){if(t.object&&(t.object===this.linePlot||t.object===this.delaunayMesh||t.object===this.textMarkers||t.object===this.scatterPlot)){t.object.highlight&&t.object.highlight(null),this.scatterPlot&&(t.object=this.scatterPlot,this.scatterPlot.highlight(t.data)),this.textLabels?void 0!==this.textLabels[t.data.index]?t.textLabel=this.textLabels[t.data.index]:t.textLabel=this.textLabels:t.textLabel=\"\";var e=t.index=t.data.index;return t.traceCoordinate=[this.data.x[e],this.data.y[e],this.data.z[e]],!0}},A.update=function(t){var e,r,n,a,o=this.scene.glplot.gl,s=w.solid;this.data=t;var l=c(this.scene,t);\"mode\"in l&&(this.mode=l.mode),\"lineDashes\"in l&&l.lineDashes in w&&(s=w[l.lineDashes]),this.color=h(l.scatterColor)||h(l.lineColor),this.dataPoints=l.position,e={gl:o,position:l.position,color:l.lineColor,lineWidth:l.lineWidth||1,dashes:s[0],dashScale:s[1],opacity:t.opacity,connectGaps:t.connectgaps},-1!==this.mode.indexOf(\"lines\")?this.linePlot?this.linePlot.update(e):(this.linePlot=d(e),this.linePlot._trace=this,this.scene.glplot.add(this.linePlot)):this.linePlot&&(this.scene.glplot.remove(this.linePlot),this.linePlot.dispose(),this.linePlot=null);var u=t.opacity;if(t.marker&&t.marker.opacity&&(u*=t.marker.opacity),r={gl:o,position:l.position,color:l.scatterColor,size:l.scatterSize,glyph:l.scatterMarker,opacity:u,orthographic:!0,lineWidth:l.scatterLineWidth,lineColor:l.scatterLineColor,project:l.project,projectScale:l.projectScale,projectOpacity:l.projectOpacity},-1!==this.mode.indexOf(\"markers\")?this.scatterPlot?this.scatterPlot.update(r):(this.scatterPlot=p(r),this.scatterPlot._trace=this,this.scatterPlot.highlightScale=1,this.scene.glplot.add(this.scatterPlot)):this.scatterPlot&&(this.scene.glplot.remove(this.scatterPlot),this.scatterPlot.dispose(),this.scatterPlot=null),a={gl:o,position:l.position,glyph:l.text,color:l.textColor,size:l.textSize,angle:l.textAngle,alignment:l.textOffset,font:l.textFont,orthographic:!0,lineWidth:0,project:!1,opacity:t.opacity},this.textLabels=t.hovertext||t.text,-1!==this.mode.indexOf(\"text\")?this.textMarkers?this.textMarkers.update(a):(this.textMarkers=p(a),this.textMarkers._trace=this,this.textMarkers.highlightScale=1,this.scene.glplot.add(this.textMarkers)):this.textMarkers&&(this.scene.glplot.remove(this.textMarkers),this.textMarkers.dispose(),this.textMarkers=null),n={gl:o,position:l.position,color:l.errorColor,error:l.errorBounds,lineWidth:l.errorLineWidth,capSize:l.errorCapSize,opacity:t.opacity},this.errorBars?l.errorBounds?this.errorBars.update(n):(this.scene.glplot.remove(this.errorBars),this.errorBars.dispose(),this.errorBars=null):l.errorBounds&&(this.errorBars=m(n),this.errorBars._trace=this,this.scene.glplot.add(this.errorBars)),l.delaunayAxis>=0){var f=i(l.position,l.delaunayColor,l.delaunayAxis);f.opacity=t.opacity,this.delaunayMesh?this.delaunayMesh.update(f):(f.gl=o,this.delaunayMesh=v(f),this.delaunayMesh._trace=this,this.scene.glplot.add(this.delaunayMesh))}else this.delaunayMesh&&(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose(),this.delaunayMesh=null)},A.dispose=function(){this.linePlot&&(this.scene.glplot.remove(this.linePlot),this.linePlot.dispose()),this.scatterPlot&&(this.scene.glplot.remove(this.scatterPlot),this.scatterPlot.dispose()),this.errorBars&&(this.scene.glplot.remove(this.errorBars),this.errorBars.dispose()),this.textMarkers&&(this.scene.glplot.remove(this.textMarkers),this.textMarkers.dispose()),this.delaunayMesh&&(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose())},e.exports=f},{\"../../constants/gl3d_dashes\":704,\"../../constants/gl3d_markers\":705,\"../../lib\":728,\"../../lib/gl_format_color\":724,\"../../lib/str2rgbarray\":749,\"../scatter/make_bubble_size_func\":1047,\"./calc_errors\":1057,\"delaunay-triangulate\":123,\"gl-error3d\":161,\"gl-line3d\":172,\"gl-mesh3d\":205,\"gl-scatter3d\":251}],1059:[function(t,e,r){\"use strict\";function n(t,e,r,n){var a=0,o=r(\"x\"),s=r(\"y\"),l=r(\"z\");return i.getComponentMethod(\"calendars\",\"handleTraceDefaults\")(t,e,[\"x\",\"y\",\"z\"],n),o&&s&&l&&(a=Math.min(o.length,s.length,l.length),a<o.length&&(e.x=o.slice(0,a)),a<s.length&&(e.y=s.slice(0,a)),a<l.length&&(e.z=l.slice(0,a))),a}var i=t(\"../../registry\"),a=t(\"../../lib\"),o=t(\"../scatter/subtypes\"),s=t(\"../scatter/marker_defaults\"),l=t(\"../scatter/line_defaults\"),u=t(\"../scatter/text_defaults\"),c=t(\"../../components/errorbars/defaults\"),h=t(\"./attributes\");e.exports=function(t,e,r,i){function f(r,n){return a.coerce(t,e,h,r,n)}if(!n(t,e,f,i))return void(e.visible=!1);f(\"text\"),f(\"hovertext\"),f(\"mode\"),o.hasLines(e)&&(f(\"connectgaps\"),l(t,e,r,i,f)),o.hasMarkers(e)&&s(t,e,r,i,f),o.hasText(e)&&u(t,e,i,f);var d=(e.line||{}).color,p=(e.marker||{}).color;f(\"surfaceaxis\")>=0&&f(\"surfacecolor\",d||p);for(var m=[\"x\",\"y\",\"z\"],v=0;v<3;++v){var g=\"projection.\"+m[v];f(g+\".show\")&&(f(g+\".opacity\"),f(g+\".scale\"))}c(t,e,r,{axis:\"z\"}),c(t,e,r,{axis:\"y\",inherit:\"z\"}),c(t,e,r,{axis:\"x\",inherit:\"z\"})}},{\"../../components/errorbars/defaults\":633,\"../../lib\":728,\"../../registry\":846,\"../scatter/line_defaults\":1043,\"../scatter/marker_defaults\":1048,\"../scatter/subtypes\":1052,\"../scatter/text_defaults\":1053,\"./attributes\":1055}],1060:[function(t,e,r){\"use strict\";var n={};n.plot=t(\"./convert\"),n.attributes=t(\"./attributes\"),n.markerSymbols=t(\"../../constants/gl3d_markers\"),n.supplyDefaults=t(\"./defaults\"),n.colorbar=t(\"../scatter/colorbar\"),n.calc=t(\"./calc\"),n.moduleType=\"trace\",n.name=\"scatter3d\",n.basePlotModule=t(\"../../plots/gl3d\"),n.categories=[\"gl3d\",\"symbols\",\"markerColorscale\",\"showLegend\"],n.meta={},e.exports=n},{\"../../constants/gl3d_markers\":705,\"../../plots/gl3d\":811,\"../scatter/colorbar\":1034,\"./attributes\":1055,\"./calc\":1056,\"./convert\":1058,\"./defaults\":1059}],1061:[function(t,e,r){\"use strict\";var n=t(\"../scatter/attributes\"),i=t(\"../../plots/attributes\"),a=t(\"../../components/colorscale/color_attributes\"),o=t(\"../../components/colorbar/attributes\"),s=t(\"../../lib/extend\").extendFlat,l=n.marker,u=n.line,c=l.line;e.exports={carpet:{valType:\"string\",editType:\"calc\"},a:{valType:\"data_array\",editType:\"calc\"},b:{valType:\"data_array\",editType:\"calc\"},mode:s({},n.mode,{dflt:\"markers\"}),text:s({},n.text,{}),line:{color:u.color,width:u.width,dash:u.dash,shape:s({},u.shape,{values:[\"linear\",\"spline\"]}),smoothing:u.smoothing,editType:\"calc\"},connectgaps:n.connectgaps,fill:s({},n.fill,{values:[\"none\",\"toself\",\"tonext\"]}),fillcolor:n.fillcolor,marker:s({symbol:l.symbol,opacity:l.opacity,maxdisplayed:l.maxdisplayed,size:l.size,sizeref:l.sizeref,sizemin:l.sizemin,sizemode:l.sizemode,line:s({width:c.width,editType:\"calc\"},a(\"marker\".line)),gradient:l.gradient,editType:\"calc\"},a(\"marker\"),{showscale:l.showscale,colorbar:o}),textfont:n.textfont,textposition:n.textposition,hoverinfo:s({},i.hoverinfo,{flags:[\"a\",\"b\",\"text\",\"name\"]}),hoveron:n.hoveron}},{\"../../components/colorbar/attributes\":605,\"../../components/colorscale/color_attributes\":611,\"../../lib/extend\":717,\"../../plots/attributes\":770,\"../scatter/attributes\":1031}],1062:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../../plots/cartesian/axes\"),a=t(\"../scatter/subtypes\"),o=t(\"../scatter/colorscale_calc\"),s=t(\"../scatter/arrays_to_calcdata\"),l=t(\"../carpet/lookup_carpetid\");e.exports=function(t,e){var r=e.carpetTrace=l(t,e);if(r&&r.visible&&\"legendonly\"!==r.visible){var u;e.xaxis=r.xaxis,e.yaxis=r.yaxis;var c,h,f=e.a.length,d=new Array(f),p=!1;for(u=0;u<f;u++)if(c=e.a[u],h=e.b[u],n(c)&&n(h)){var m=r.ab2xy(+c,+h,!0),v=r.isVisible(+c,+h);v||(p=!0),d[u]={x:m[0],y:m[1],a:c,b:h,vis:v}}else d[u]={x:!1,y:!1};e._needsCull=p,d[0].carpet=r,d[0].trace=e;var g,y;if(a.hasMarkers(e)&&(g=e.marker,y=g.size,Array.isArray(y))){var b={type:\"linear\"};i.setConvert(b),y=b.makeCalcdata(e.marker,\"size\"),y.length>f&&y.splice(f,y.length-f)}return o(e),s(d,e),d}}},{\"../../plots/cartesian/axes\":772,\"../carpet/lookup_carpetid\":903,\"../scatter/arrays_to_calcdata\":1030,\"../scatter/colorscale_calc\":1035,\"../scatter/subtypes\":1052,\"fast-isnumeric\":131}],1063:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../scatter/constants\"),a=t(\"../scatter/subtypes\"),o=t(\"../scatter/marker_defaults\"),s=t(\"../scatter/line_defaults\"),l=t(\"../scatter/line_shape_defaults\"),u=t(\"../scatter/text_defaults\"),c=t(\"../scatter/fillcolor_defaults\"),h=t(\"./attributes\");e.exports=function(t,e,r,f){function d(r,i){return n.coerce(t,e,h,r,i)}d(\"carpet\"),e.xaxis=\"x\",e.yaxis=\"y\";var p,m=d(\"a\"),v=d(\"b\");if(!(p=Math.min(m.length,v.length)))return void(e.visible=!1);m&&p<m.length&&(e.a=m.slice(0,p)),v&&p<v.length&&(e.b=v.slice(0,p)),d(\"text\"),d(\"mode\",p<i.PTS_LINESONLY?\"lines+markers\":\"lines\"),a.hasLines(e)&&(s(t,e,r,f,d),l(t,e,d),d(\"connectgaps\")),a.hasMarkers(e)&&o(t,e,r,f,d,{gradient:!0}),a.hasText(e)&&u(t,e,f,d);var g=[];(a.hasMarkers(e)||a.hasText(e))&&(d(\"marker.maxdisplayed\"),g.push(\"points\")),d(\"fill\"),\"none\"!==e.fill&&(c(t,e,r,d),a.hasLines(e)||l(t,e,d)),\"tonext\"!==e.fill&&\"toself\"!==e.fill||g.push(\"fills\"),d(\"hoveron\",g.join(\"+\")||\"points\")}},{\"../../lib\":728,\"../scatter/constants\":1036,\"../scatter/fillcolor_defaults\":1039,\"../scatter/line_defaults\":1043,\"../scatter/line_shape_defaults\":1045,\"../scatter/marker_defaults\":1048,\"../scatter/subtypes\":1052,\"../scatter/text_defaults\":1053,\"./attributes\":1061}],1064:[function(t,e,r){\"use strict\";var n=t(\"../scatter/hover\");e.exports=function(t,e,r,i){function a(t,e){var r;r=t.labelprefix&&t.labelprefix.length>0?t.labelprefix.replace(/ = $/,\"\"):t._hovertitle,g.push(r+\": \"+e.toFixed(3)+t.labelsuffix)}var o=n(t,e,r,i);if(o&&!1!==o[0].index){var s=o[0];if(void 0===s.index){var l=1-s.y0/t.ya._length,u=t.xa._length,c=u*l/2,h=u-c;return s.x0=Math.max(Math.min(s.x0,h),c),s.x1=Math.max(Math.min(s.x1,h),c),o}var f=s.cd[s.index];s.a=f.a,s.b=f.b,s.xLabelVal=void 0,s.yLabelVal=void 0;var d=s.trace,p=d._carpet,m=f.hi||d.hoverinfo,v=m.split(\"+\"),g=[];-1!==v.indexOf(\"all\")&&(v=[\"a\",\"b\"]),-1!==v.indexOf(\"a\")&&a(p.aaxis,f.a),-1!==v.indexOf(\"b\")&&a(p.baxis,f.b);var y=p.ab2ij([f.a,f.b]),b=Math.floor(y[0]),x=y[0]-b,_=Math.floor(y[1]),w=y[1]-_,M=p.evalxy([],b,_,x,w);return g.push(\"y: \"+M[1].toFixed(3)),s.extraText=g.join(\"<br>\"),o}}},{\"../scatter/hover\":1041}],1065:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.supplyDefaults=t(\"./defaults\"),n.colorbar=t(\"../scatter/colorbar\"),n.calc=t(\"./calc\"),n.plot=t(\"./plot\"),n.style=t(\"./style\"),n.hoverPoints=t(\"./hover\"),n.selectPoints=t(\"./select\"),n.moduleType=\"trace\",n.name=\"scattercarpet\",n.basePlotModule=t(\"../../plots/cartesian\"),n.categories=[\"carpet\",\"symbols\",\"markerColorscale\",\"showLegend\",\"carpetDependent\"],n.meta={},e.exports=n},{\"../../plots/cartesian\":782,\"../scatter/colorbar\":1034,\"./attributes\":1061,\"./calc\":1062,\"./defaults\":1063,\"./hover\":1064,\"./plot\":1066,\"./select\":1067,\"./style\":1068}],1066:[function(t,e,r){\"use strict\";var n=t(\"../scatter/plot\"),i=t(\"../../plots/cartesian/axes\"),a=t(\"../../components/drawing\");e.exports=function(t,e,r){var o,s,l,u=r[0][0].carpet,c={xaxis:i.getFromId(t,u.xaxis||\"x\"),yaxis:i.getFromId(t,u.yaxis||\"y\"),plot:e.plot};for(n(t,c,r),o=0;o<r.length;o++)s=r[o][0].trace,l=c.plot.selectAll(\"g.trace\"+s.uid+\" .js-line\"),a.setClipUrl(l,u._clipPathId)}},{\"../../components/drawing\":628,\"../../plots/cartesian/axes\":772,\"../scatter/plot\":1049}],1067:[function(t,e,r){\"use strict\";var n=t(\"../scatter/select\");e.exports=function(t,e){var r=n(t,e);if(r){var i,a,o,s=t.cd;for(o=0;o<r.length;o++)i=r[o],a=s[i.pointNumber],i.a=a.a,i.b=a.b,i.c=a.c,delete i.x,delete i.y;return r}}},{\"../scatter/select\":1050}],1068:[function(t,e,r){\"use strict\";var n=t(\"../scatter/style\");e.exports=function(t){for(var e=t._fullLayout._modules,r=0;r<e.length;r++)if(\"scatter\"===e[r].name)return;n(t)}},{\"../scatter/style\":1051}],1069:[function(t,e,r){\"use strict\";var n=t(\"../scatter/attributes\"),i=t(\"../../plots/attributes\"),a=t(\"../../components/colorscale/color_attributes\"),o=t(\"../../components/drawing/attributes\").dash,s=t(\"../../lib/extend\").extendFlat,l=t(\"../../plot_api/edit_types\").overrideAll,u=n.marker,c=n.line,h=u.line;e.exports=l({lon:{valType:\"data_array\"},lat:{valType:\"data_array\"},locations:{valType:\"data_array\"},locationmode:{valType:\"enumerated\",values:[\"ISO-3\",\"USA-states\",\"country names\"],dflt:\"ISO-3\"},mode:s({},n.mode,{dflt:\"markers\"}),text:s({},n.text,{}),hovertext:s({},n.hovertext,{}),textfont:n.textfont,textposition:n.textposition,line:{color:c.color,width:c.width,dash:o},connectgaps:n.connectgaps,marker:s({symbol:u.symbol,opacity:u.opacity,size:u.size,sizeref:u.sizeref,sizemin:u.sizemin,sizemode:u.sizemode,showscale:u.showscale,colorbar:u.colorbar,line:s({width:h.width},a(\"marker.line\")),gradient:u.gradient},a(\"marker\")),fill:{valType:\"enumerated\",values:[\"none\",\"toself\"],dflt:\"none\"},fillcolor:n.fillcolor,hoverinfo:s({},i.hoverinfo,{flags:[\"lon\",\"lat\",\"location\",\"text\",\"name\"]})},\"calc\",\"nested\")},{\"../../components/colorscale/color_attributes\":611,\"../../components/drawing/attributes\":627,\"../../lib/extend\":717,\"../../plot_api/edit_types\":756,\"../../plots/attributes\":770,\"../scatter/attributes\":1031}],1070:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../../constants/numerical\").BADNUM,a=t(\"../scatter/colorscale_calc\"),o=t(\"../scatter/arrays_to_calcdata\");e.exports=function(t,e){for(var r=Array.isArray(e.locations),s=r?e.locations.length:e.lon.length,l=new Array(s),u=0;u<s;u++){var c=l[u]={};if(r){var h=e.locations[u];c.loc=\"string\"==typeof h?h:null}else{var f=e.lon[u],d=e.lat[u];n(f)&&n(d)?c.lonlat=[+f,+d]:c.lonlat=[i,i]}}return o(l,e),a(e),l}},{\"../../constants/numerical\":707,\"../scatter/arrays_to_calcdata\":1030,\"../scatter/colorscale_calc\":1035,\"fast-isnumeric\":131}],1071:[function(t,e,r){\"use strict\";function n(t,e,r){var n,i,a=0,o=r(\"locations\");return o?(r(\"locationmode\"),a=o.length):(n=r(\"lon\")||[],i=r(\"lat\")||[],a=Math.min(n.length,i.length),a<n.length&&(e.lon=n.slice(0,a)),a<i.length&&(e.lat=i.slice(0,a)),a)}var i=t(\"../../lib\"),a=t(\"../scatter/subtypes\"),o=t(\"../scatter/marker_defaults\"),s=t(\"../scatter/line_defaults\"),l=t(\"../scatter/text_defaults\"),u=t(\"../scatter/fillcolor_defaults\"),c=t(\"./attributes\");e.exports=function(t,e,r,h){function f(r,n){return i.coerce(t,e,c,r,n)}if(!n(t,e,f))return void(e.visible=!1);f(\"text\"),f(\"hovertext\"),f(\"mode\"),a.hasLines(e)&&(s(t,e,r,h,f),f(\"connectgaps\")),a.hasMarkers(e)&&o(t,e,r,h,f,{gradient:!0}),a.hasText(e)&&l(t,e,h,f),f(\"fill\"),\"none\"!==e.fill&&u(t,e,r,f)}},{\"../../lib\":728,\"../scatter/fillcolor_defaults\":1039,\"../scatter/line_defaults\":1043,\"../scatter/marker_defaults\":1048,\"../scatter/subtypes\":1052,\"../scatter/text_defaults\":1053,\"./attributes\":1069}],1072:[function(t,e,r){\"use strict\";e.exports=function(t,e){return t.lon=e.lon,t.lat=e.lat,t.location=e.loc?e.loc:null,t}},{}],1073:[function(t,e,r){\"use strict\";function n(t,e,r){function n(t){return a.tickText(r,r.c2l(t),\"hover\").text+\"\\xb0\"}var i=e.hi||t.hoverinfo,o=\"all\"===i?u.hoverinfo.flags:i.split(\"+\"),s=-1!==o.indexOf(\"location\")&&Array.isArray(t.locations),c=-1!==o.indexOf(\"lon\"),h=-1!==o.indexOf(\"lat\"),f=-1!==o.indexOf(\"text\"),d=[];return s?d.push(e.loc):c&&h?d.push(\"(\"+n(e.lonlat[0])+\", \"+n(e.lonlat[1])+\")\"):c?d.push(\"lon: \"+n(e.lonlat[0])):h&&d.push(\"lat: \"+n(e.lonlat[1])),f&&l(e,t,d),d.join(\"<br>\")}var i=t(\"../../components/fx\"),a=t(\"../../plots/cartesian/axes\"),o=t(\"../../constants/numerical\").BADNUM,s=t(\"../scatter/get_trace_color\"),l=t(\"../scatter/fill_hover_text\"),u=t(\"./attributes\");e.exports=function(t,e,r){function a(t){var n=t.lonlat;if(n[0]===o)return 1/0;if(d(n))return 1/0;var i=p(n),a=p([e,r]),s=Math.abs(i[0]-a[0]),l=Math.abs(i[1]-a[1]),u=Math.max(3,t.mrc||0);return Math.max(Math.sqrt(s*s+l*l)-u,1-3/u)}var l=t.cd,u=l[0].trace,c=t.xa,h=t.ya,f=t.subplot,d=f.projection.isLonLatOverEdges,p=f.project;if(i.getClosest(l,a,t),!1!==t.index){var m=l[t.index],v=m.lonlat,g=[c.c2p(v),h.c2p(v)],y=m.mrc||1;return t.x0=g[0]-y,t.x1=g[0]+y,t.y0=g[1]-y,t.y1=g[1]+y,t.loc=m.loc,t.lon=v[0],t.lat=v[1],t.color=s(u,m),t.extraText=n(u,m,f.mockAxis),[t]}}},{\"../../components/fx\":645,\"../../constants/numerical\":707,\"../../plots/cartesian/axes\":772,\"../scatter/fill_hover_text\":1038,\"../scatter/get_trace_color\":1040,\"./attributes\":1069}],1074:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.supplyDefaults=t(\"./defaults\"),n.colorbar=t(\"../scatter/colorbar\"),n.calc=t(\"./calc\"),n.plot=t(\"./plot\"),n.hoverPoints=t(\"./hover\"),n.eventData=t(\"./event_data\"),n.selectPoints=t(\"./select\"),n.moduleType=\"trace\",n.name=\"scattergeo\",n.basePlotModule=t(\"../../plots/geo\"),n.categories=[\"geo\",\"symbols\",\"markerColorscale\",\"showLegend\",\"scatter-like\"],n.meta={},e.exports=n},{\"../../plots/geo\":800,\"../scatter/colorbar\":1034,\"./attributes\":1069,\"./calc\":1070,\"./defaults\":1071,\"./event_data\":1072,\"./hover\":1073,\"./plot\":1075,\"./select\":1076}],1075:[function(t,e,r){\"use strict\";function n(t,e){var r=t[0].trace;if(Array.isArray(r.locations))for(var n=c(r,e),i=r.locationmode,a=0;a<t.length;a++){var o=t[a],s=h(i,o.loc,n);o.lonlat=s?s.properties.ct:[u,u]}}function i(t){var e=t.layers.frontplot.selectAll(\".trace.scattergeo\");e.style(\"opacity\",function(t){return t[0].trace.opacity}),e.each(function(e){var r=e[0].trace,n=a.select(this);n.selectAll(\"path.point\").call(o.pointStyle,r,t.graphDiv),n.selectAll(\"text\").call(o.textPointStyle,r,t.graphDiv)}),e.selectAll(\"path.js-line\").style(\"fill\",\"none\").each(function(t){var e=a.select(this),r=t.trace,n=r.line||{};e.call(s.stroke,n.color).call(o.dashLine,n.dash||\"\",n.width||0),\"none\"!==r.fill&&e.call(s.fill,r.fillcolor)})}var a=t(\"d3\"),o=t(\"../../components/drawing\"),s=t(\"../../components/color\"),l=t(\"../../lib\"),u=t(\"../../constants/numerical\").BADNUM,c=t(\"../../lib/topojson_utils\").getTopojsonFeatures,h=t(\"../../lib/geo_location_utils\").locationToFeature,f=t(\"../../lib/geojson_utils\"),d=t(\"../scatter/subtypes\")\n", ";e.exports=function(t,e){function r(t){return t[0].trace.uid}function o(t,e){t.lonlat[0]===u&&a.select(e).remove()}for(var s=0;s<e.length;s++)n(e[s],t.topojson);var c=t.layers.frontplot.select(\".scatterlayer\").selectAll(\"g.trace.scattergeo\").data(e,r);c.enter().append(\"g\").attr(\"class\",\"trace scattergeo\"),c.exit().remove(),c.selectAll(\"*\").remove(),c.each(function(t){var e=t[0].node3=a.select(this),r=t[0].trace;if(d.hasLines(r)||\"none\"!==r.fill){var n=f.calcTraceToLineCoords(t),i=\"none\"!==r.fill?f.makePolygon(n):f.makeLine(n);e.selectAll(\"path.js-line\").data([{geojson:i,trace:r}]).enter().append(\"path\").classed(\"js-line\",!0).style(\"stroke-miterlimit\",2)}d.hasMarkers(r)&&e.selectAll(\"path.point\").data(l.identity).enter().append(\"path\").classed(\"point\",!0).each(function(t){o(t,this)}),d.hasText(r)&&e.selectAll(\"g\").data(l.identity).enter().append(\"g\").append(\"text\").each(function(t){o(t,this)})}),i(t)}},{\"../../components/color\":604,\"../../components/drawing\":628,\"../../constants/numerical\":707,\"../../lib\":728,\"../../lib/geo_location_utils\":720,\"../../lib/geojson_utils\":721,\"../../lib/topojson_utils\":753,\"../scatter/subtypes\":1052,d3:122}],1076:[function(t,e,r){\"use strict\";var n=t(\"../scatter/subtypes\"),i=t(\"../../constants/interactions\").DESELECTDIM;e.exports=function(t,e){var r,a,o,s,l,u=t.cd,c=t.xaxis,h=t.yaxis,f=[],d=u[0].trace,p=u[0].node3,m=!n.hasMarkers(d)&&!n.hasText(d);if(!0===d.visible&&!m){var v=d.marker,g=Array.isArray(v.opacity)?1:v.opacity;if(!1===e)for(l=0;l<u.length;l++)u[l].dim=0;else for(l=0;l<u.length;l++)r=u[l],a=r.lonlat,o=c.c2p(a),s=h.c2p(a),e.contains([o,s])?(f.push({pointNumber:l,lon:a[0],lat:a[1]}),r.dim=0):r.dim=1;return p.selectAll(\"path.point\").style(\"opacity\",function(t){return((t.mo+1||g+1)-1)*(t.dim?i:1)}),p.selectAll(\"text\").style(\"opacity\",function(t){return t.dim?i:1}),f}}},{\"../../constants/interactions\":706,\"../scatter/subtypes\":1052}],1077:[function(t,e,r){\"use strict\";var n=t(\"../scatter/attributes\"),i=t(\"../../components/colorscale/color_attributes\"),a=t(\"../../constants/gl2d_dashes\"),o=t(\"../../constants/gl2d_markers\"),s=t(\"../../lib/extend\").extendFlat,l=t(\"../../plot_api/edit_types\").overrideAll,u=n.line,c=n.marker,h=c.line,f=e.exports=l({x:n.x,x0:n.x0,dx:n.dx,y:n.y,y0:n.y0,dy:n.dy,text:s({},n.text,{}),mode:{valType:\"flaglist\",flags:[\"lines\",\"markers\"],extras:[\"none\"]},line:{color:u.color,width:u.width,dash:{valType:\"enumerated\",values:Object.keys(a),dflt:\"solid\"}},marker:s({},i(\"marker\"),{symbol:{valType:\"enumerated\",values:Object.keys(o),dflt:\"circle\",arrayOk:!0},size:c.size,sizeref:c.sizeref,sizemin:c.sizemin,sizemode:c.sizemode,opacity:c.opacity,showscale:c.showscale,colorbar:c.colorbar,line:s({},i(\"marker.line\"),{width:h.width})}),connectgaps:n.connectgaps,fill:s({},n.fill,{values:[\"none\",\"tozeroy\",\"tozerox\"]}),fillcolor:n.fillcolor,error_y:n.error_y,error_x:n.error_x},\"calc\",\"nested\");f.x.editType=f.y.editType=f.x0.editType=f.y0.editType=\"calc+clearAxisTypes\"},{\"../../components/colorscale/color_attributes\":611,\"../../constants/gl2d_dashes\":702,\"../../constants/gl2d_markers\":703,\"../../lib/extend\":717,\"../../plot_api/edit_types\":756,\"../scatter/attributes\":1031}],1078:[function(t,e,r){\"use strict\";var n=t(\"../../plots/cartesian/axes\"),i=t(\"../scatter/arrays_to_calcdata\"),a=t(\"../scatter/colorscale_calc\");e.exports=function(t,e){var r,o=t._fullLayout.dragmode;if(\"lasso\"===o||\"select\"===o){var s,l=n.getFromId(t,e.xaxis||\"x\"),u=n.getFromId(t,e.yaxis||\"y\"),c=l.makeCalcdata(e,\"x\"),h=u.makeCalcdata(e,\"y\"),f=Math.min(c.length,h.length);for(r=new Array(f),s=0;s<f;s++)r[s]={x:c[s],y:h[s]}}else r=[{x:!1,y:!1,trace:e,t:{}}],i(r,e);return a(e),r}},{\"../../plots/cartesian/axes\":772,\"../scatter/arrays_to_calcdata\":1030,\"../scatter/colorscale_calc\":1035}],1079:[function(t,e,r){\"use strict\";function n(t,e){this.scene=t,this.uid=e,this.type=\"scattergl\",this.pickXData=[],this.pickYData=[],this.xData=[],this.yData=[],this.textLabels=[],this.color=\"rgb(0, 0, 0)\",this.name=\"\",this.hoverinfo=\"all\",this.connectgaps=!0,this.index=null,this.idToIndex=[],this.bounds=[0,0,0,0],this.isVisible=!1,this.hasLines=!1,this.hasErrorX=!1,this.hasErrorY=!1,this.hasMarkers=!1,this.line=this.initObject(m,{positions:new Float64Array(0),color:[0,0,0,1],width:1,fill:[!1,!1,!1,!1],fillColor:[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],dashes:[1]},0),this.errorX=this.initObject(v,{positions:new Float64Array(0),errors:new Float64Array(0),lineWidth:1,capSize:0,color:[0,0,0,1]},1),this.errorY=this.initObject(v,{positions:new Float64Array(0),errors:new Float64Array(0),lineWidth:1,capSize:0,color:[0,0,0,1]},2);var r={positions:new Float64Array(0),sizes:[],colors:[],glyphs:[],borderWidths:[],borderColors:[],size:12,color:[0,0,0,1],borderSize:1,borderColor:[0,0,0,1],snapPoints:!0},n=y.extendFlat({},r,{snapPoints:!1});this.scatter=this.initObject(d,r,3),this.fancyScatter=this.initObject(p,r,4),this.selectScatter=this.initObject(d,n,5)}function i(t,e,r){return Array.isArray(e)||(e=[e]),a(t,e,r)}function a(t,e,r){for(var n=new Array(r),i=e[0],a=0;a<r;++a)n[a]=t(a>=e.length?i:e[a]);return n}function o(t,e,r){return l(O(t,r),P(e,r),r)}function s(t,e,r,n){var i=k(t,e,n);return i=Array.isArray(i[0])?i:a(y.identity,[i],n),l(i,P(r,n),n)}function l(t,e,r){for(var n=new Array(4*r),i=0;i<r;++i){for(var a=0;a<3;++a)n[4*i+a]=t[i][a];n[4*i+3]=t[i][3]*e[i]}return n}function u(t){return\"\"===t.split(\"-open\")[1]}function c(t,e,r,n,i){var a,o=i?C:1;for(a=0;a<3;a++)t[4*r+a]=e[4*n+a];t[4*r+a]=o*e[4*n+a]}function h(t){for(var e,r=t.length,n=Math.max(1,(r-1)/Math.min(Math.max(r,1),1e3)),i=0;i<r;i+=n)if(e=t[Math.floor(i)],!(g(e)||e instanceof Date))return!1;return!0}function f(t,e,r){var i=new n(t,e.uid);return i.update(e,r),i}var d=t(\"gl-scatter2d\"),p=t(\"gl-scatter2d-sdf\"),m=t(\"gl-line2d\"),v=t(\"gl-error2d\"),g=t(\"fast-isnumeric\"),y=t(\"../../lib\"),b=t(\"../../plots/cartesian/axes\"),x=t(\"../../plots/cartesian/axis_autotype\"),_=t(\"../../components/errorbars\"),w=t(\"../../lib/str2rgbarray\"),M=t(\"../../lib/typed_array_truncate\"),k=t(\"../../lib/gl_format_color\"),A=t(\"../scatter/subtypes\"),T=t(\"../scatter/make_bubble_size_func\"),S=t(\"../scatter/get_trace_color\"),E=t(\"../../constants/gl2d_markers\"),L=t(\"../../constants/gl2d_dashes\"),C=t(\"../../constants/interactions\").DESELECTDIM,I=[\"xaxis\",\"yaxis\"],z=[0,0,0,0],D=n.prototype;D.initObject=function(t,e,r){function n(){u||(u=t(s,e),u._trace=o,u._index=r),u.update(e)}function i(){u&&u.update(l)}function a(){u&&u.dispose()}var o=this,s=o.scene.glplot,l=y.extendFlat({},e),u=null;return{options:e,update:n,clear:i,dispose:a}},D.handlePick=function(t){var e=t.pointId;(t.object!==this.line||this.connectgaps)&&(e=this.idToIndex[t.pointId]);var r=this.pickXData[e];return{trace:this,dataCoord:t.dataCoord,traceCoord:[g(r)||!y.isDateTime(r)?r:y.dateTime2ms(r),this.pickYData[e]],textLabel:Array.isArray(this.textLabels)?this.textLabels[e]:this.textLabels,color:Array.isArray(this.color)?this.color[e]:this.color,name:this.name,pointIndex:e,hoverinfo:this.hoverinfo}},D.isFancy=function(t){if(\"linear\"!==this.scene.xaxis.type&&\"date\"!==this.scene.xaxis.type)return!0;if(\"linear\"!==this.scene.yaxis.type)return!0;if(!t.x||!t.y)return!0;if(this.hasMarkers){var e=t.marker||{};if(Array.isArray(e.symbol)||\"circle\"!==e.symbol||Array.isArray(e.size)||Array.isArray(e.color)||Array.isArray(e.line.width)||Array.isArray(e.line.color)||Array.isArray(e.opacity))return!0}return!(!this.hasLines||this.connectgaps)||(!!this.hasErrorX||!!this.hasErrorY)};var P=i.bind(null,function(t){return+t}),O=i.bind(null,w),R=i.bind(null,function(t){return E[t]?t:\"circle\"});D.update=function(t,e){!0!==t.visible?(this.isVisible=!1,this.hasLines=!1,this.hasErrorX=!1,this.hasErrorY=!1,this.hasMarkers=!1):(this.isVisible=!0,this.hasLines=A.hasLines(t),this.hasErrorX=!0===t.error_x.visible,this.hasErrorY=!0===t.error_y.visible,this.hasMarkers=A.hasMarkers(t)),this.textLabels=t.text,this.name=t.name,this.hoverinfo=t.hoverinfo,this.bounds=[1/0,1/0,-1/0,-1/0],this.connectgaps=!!t.connectgaps,this.isVisible?this.isFancy(t)?this.updateFancy(t):this.updateFast(t):(this.line.clear(),this.errorX.clear(),this.errorY.clear(),this.scatter.clear(),this.fancyScatter.clear()),this.scene.glplot.objects.sort(function(t,e){return t._index-e._index}),this.index=t.index,this.color=S(t,{}),e&&e[0]&&!e[0]._glTrace&&(e[0]._glTrace=this)},D.updateFast=function(t){var e,r,n,i,a,o=this.xData=this.pickXData=t.x,s=this.yData=this.pickYData=t.y,l=o.length,u=new Array(l),c=new Float64Array(2*l),f=this.bounds,d=0,p=0,m=t.selection,v=t.xcalendar,b=h(o),_=!b&&\"date\"===x(o,v);if(b||_)for(e=0;e<l;++e)i=o[e],a=s[e],g(a)&&(b||(i=y.dateTime2ms(i,v)),c[p++]=i,c[p++]=a,u[d++]=e,f[0]=Math.min(f[0],i),f[1]=Math.min(f[1],a),f[2]=Math.max(f[2],i),f[3]=Math.max(f[3],a));if(c=M(c,p),this.idToIndex=u,m&&m.length)for(r=new Float64Array(2*m.length),e=0,n=m.length;e<n;e++)r[2*e+0]=m[e].x,r[2*e+1]=m[e].y;this.updateLines(t,c),this.updateError(\"X\",t),this.updateError(\"Y\",t);var k;if(this.hasMarkers){var A,T,S;r?(this.scatter.options.positions=null,A=w(t.marker.color),T=w(t.marker.line.color),S=t.opacity*t.marker.opacity*C,A[3]*=S,this.scatter.options.color=A,T[3]*=S,this.scatter.options.borderColor=T,k=t.marker.size,this.scatter.options.size=k,this.scatter.options.borderSize=t.marker.line.width,this.scatter.update(),this.scatter.options.positions=c,this.selectScatter.options.positions=r,A=w(t.marker.color),T=w(t.marker.line.color),S=t.opacity*t.marker.opacity,A[3]*=S,this.selectScatter.options.color=A,T[3]*=S,this.selectScatter.options.borderColor=T,k=t.marker.size,this.selectScatter.options.size=k,this.selectScatter.options.borderSize=t.marker.line.width,this.selectScatter.update()):(this.scatter.options.positions=c,A=w(t.marker.color),T=w(t.marker.line.color),S=t.opacity*t.marker.opacity,A[3]*=S,this.scatter.options.color=A,T[3]*=S,this.scatter.options.borderColor=T,k=t.marker.size,this.scatter.options.size=k,this.scatter.options.borderSize=t.marker.line.width,this.scatter.update())}else this.scatter.clear();this.fancyScatter.clear(),this.expandAxesFast(f,k)},D.updateFancy=function(t){var e=this.scene,r=e.xaxis,n=e.yaxis,a=this.bounds,o=t.selection,l=this.pickXData=r.makeCalcdata(t,\"x\").slice(),h=this.pickYData=n.makeCalcdata(t,\"y\").slice();this.xData=l.slice(),this.yData=h.slice();var f,d,p,m,v,g,y,b=_.calcFromTrace(t,e.fullLayout),x=l.length,w=new Array(x),k=new Float64Array(2*x),A=new Float64Array(4*x),S=new Float64Array(4*x),L=0,C=0,I=0,D=0,O=\"log\"===r.type?r.d2l:function(t){return t},F=\"log\"===n.type?n.d2l:function(t){return t};for(f=0;f<x;++f)this.xData[f]=d=O(l[f]),this.yData[f]=p=F(h[f]),isNaN(d)||isNaN(p)||(w[L++]=f,k[C++]=d,k[C++]=p,m=A[I++]=d-b[f].xs||0,v=A[I++]=b[f].xh-d||0,A[I++]=0,A[I++]=0,S[D++]=0,S[D++]=0,g=S[D++]=p-b[f].ys||0,y=S[D++]=b[f].yh-p||0,a[0]=Math.min(a[0],d-m),a[1]=Math.min(a[1],p-g),a[2]=Math.max(a[2],d+v),a[3]=Math.max(a[3],p+y));k=M(k,C),this.idToIndex=w,this.updateLines(t,k),this.updateError(\"X\",t,k,A),this.updateError(\"Y\",t,k,S);var j,N;if(o&&o.length)for(N={},f=0;f<o.length;f++)N[o[f].pointNumber]=!0;if(this.hasMarkers){this.scatter.options.positions=k,this.scatter.options.sizes=new Array(L),this.scatter.options.glyphs=new Array(L),this.scatter.options.borderWidths=new Array(L),this.scatter.options.colors=new Array(4*L),this.scatter.options.borderColors=new Array(4*L);var B,U,V,H,q,G,Y,W,X,Z,J=T(t),K=t.marker,Q=K.opacity,$=t.opacity,tt=R(K.symbol,x),et=s(K,Q,$,x),rt=P(K.line.width,x),nt=s(K.line,Q,$,x);for(j=i(J,K.size,x),f=0;f<L;++f)B=w[f],V=tt[B],H=E[V],q=u(V),G=N&&!N[B],Y=H.noBorder&&!q?nt:et,W=q?et:nt,U=j[B],X=rt[B],Z=H.noBorder||H.noFill?.1*U:0,this.scatter.options.sizes[f]=4*U,this.scatter.options.glyphs[f]=H.unicode,this.scatter.options.borderWidths[f]=.5*(X>Z?X-Z:0),!q||H.noBorder||H.noFill?c(this.scatter.options.colors,Y,f,B,G):c(this.scatter.options.colors,z,f,0),c(this.scatter.options.borderColors,W,f,B,G);N?(this.scatter.options.positions=null,this.fancyScatter.update(),this.scatter.options.positions=k):this.fancyScatter.update()}else this.fancyScatter.clear();this.scatter.clear(),this.expandAxesFancy(l,h,j)},D.updateLines=function(t,e){var r;if(this.hasLines){var n=e;if(!t.connectgaps){var i=0,a=this.xData,s=this.yData;for(n=new Float64Array(2*a.length),r=0;r<a.length;++r)n[i++]=a[r],n[i++]=s[r]}this.line.options.positions=n;var l=o(t.line.color,t.opacity,1),u=Math.round(.5*this.line.options.width),c=(L[t.line.dash]||[1]).slice();for(r=0;r<c.length;++r)c[r]*=u;switch(t.fill){case\"tozeroy\":this.line.options.fill=[!1,!0,!1,!1];break;case\"tozerox\":this.line.options.fill=[!0,!1,!1,!1];break;default:this.line.options.fill=[!1,!1,!1,!1]}var h=w(t.fillcolor);this.line.options.color=l,this.line.options.width=2*t.line.width,this.line.options.dashes=c,this.line.options.fillColor=[h,h,h,h],this.line.update()}else this.line.clear()},D.updateError=function(t,e,r,n){var i=this[\"error\"+t],a=e[\"error_\"+t.toLowerCase()];\"x\"===t.toLowerCase()&&a.copy_ystyle&&(a=e.error_y),this[\"hasError\"+t]?(i.options.positions=r,i.options.errors=n,i.options.capSize=a.width,i.options.lineWidth=a.thickness/2,i.options.color=o(a.color,1,1),i.update()):i.clear()},D.expandAxesFast=function(t,e){for(var r,n,i,a=e||10,o=0;o<2;o++)r=this.scene[I[o]],n=r._min,n||(n=[]),n.push({val:t[o],pad:a}),i=r._max,i||(i=[]),i.push({val:t[o+2],pad:a})},D.expandAxesFancy=function(t,e,r){var n=this.scene,i={padded:!0,ppad:r};b.expand(n.xaxis,t,i),b.expand(n.yaxis,e,i)},D.dispose=function(){this.line.dispose(),this.errorX.dispose(),this.errorY.dispose(),this.scatter.dispose(),this.fancyScatter.dispose()},e.exports=f},{\"../../components/errorbars\":634,\"../../constants/gl2d_dashes\":702,\"../../constants/gl2d_markers\":703,\"../../constants/interactions\":706,\"../../lib\":728,\"../../lib/gl_format_color\":724,\"../../lib/str2rgbarray\":749,\"../../lib/typed_array_truncate\":754,\"../../plots/cartesian/axes\":772,\"../../plots/cartesian/axis_autotype\":773,\"../scatter/get_trace_color\":1040,\"../scatter/make_bubble_size_func\":1047,\"../scatter/subtypes\":1052,\"fast-isnumeric\":131,\"gl-error2d\":159,\"gl-line2d\":170,\"gl-scatter2d\":248,\"gl-scatter2d-sdf\":243}],1080:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../scatter/constants\"),a=t(\"../scatter/subtypes\"),o=t(\"../scatter/xy_defaults\"),s=t(\"../scatter/marker_defaults\"),l=t(\"../scatter/line_defaults\"),u=t(\"../scatter/fillcolor_defaults\"),c=t(\"../../components/errorbars/defaults\"),h=t(\"./attributes\");e.exports=function(t,e,r,f){function d(r,i){return n.coerce(t,e,h,r,i)}var p=o(t,e,f,d);if(!p)return void(e.visible=!1);d(\"text\"),d(\"mode\",p<i.PTS_LINESONLY?\"lines+markers\":\"lines\"),a.hasLines(e)&&(d(\"connectgaps\"),l(t,e,r,f,d)),a.hasMarkers(e)&&s(t,e,r,f,d),d(\"fill\"),\"none\"!==e.fill&&u(t,e,r,d),c(t,e,r,{axis:\"y\"}),c(t,e,r,{axis:\"x\",inherit:\"y\"})}},{\"../../components/errorbars/defaults\":633,\"../../lib\":728,\"../scatter/constants\":1036,\"../scatter/fillcolor_defaults\":1039,\"../scatter/line_defaults\":1043,\"../scatter/marker_defaults\":1048,\"../scatter/subtypes\":1052,\"../scatter/xy_defaults\":1054,\"./attributes\":1077}],1081:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.supplyDefaults=t(\"./defaults\"),n.colorbar=t(\"../scatter/colorbar\"),n.hoverPoints=t(\"../scatter/hover\"),n.calc=t(\"./calc\"),n.plot=t(\"./convert\"),n.selectPoints=t(\"./select\"),n.moduleType=\"trace\",n.name=\"scattergl\",n.basePlotModule=t(\"../../plots/gl2d\"),n.categories=[\"gl2d\",\"symbols\",\"errorBarsOK\",\"markerColorscale\",\"showLegend\",\"scatter-like\"],n.meta={},e.exports=n},{\"../../plots/gl2d\":808,\"../scatter/colorbar\":1034,\"../scatter/hover\":1041,\"./attributes\":1077,\"./calc\":1078,\"./convert\":1079,\"./defaults\":1080,\"./select\":1082}],1082:[function(t,e,r){\"use strict\";var n=t(\"../scatter/subtypes\");e.exports=function(t,e){var r,i,a,o,s=t.cd,l=t.xaxis,u=t.yaxis,c=[],h=s[0].trace,f=s[0]._glTrace,d=f.scene,p=!n.hasMarkers(h)&&!n.hasText(h);if(!0===h.visible&&!p){if(!1===e)for(r=0;r<s.length;r++)s[r].dim=0;else for(r=0;r<s.length;r++)i=s[r],a=l.c2p(i.x),o=u.c2p(i.y),e.contains([a,o])?(c.push({pointNumber:r,x:i.x,y:i.y}),i.dim=0):i.dim=1;return h.selection=c,f.update(h,s),d.glplot.setDirty(),c}}},{\"../scatter/subtypes\":1052}],1083:[function(t,e,r){\"use strict\";var n=t(\"../scattergeo/attributes\"),i=t(\"../scatter/attributes\"),a=t(\"../../plots/mapbox/layout_attributes\"),o=t(\"../../plots/attributes\"),s=t(\"../../components/colorbar/attributes\"),l=t(\"../../lib/extend\").extendFlat,u=t(\"../../plot_api/edit_types\").overrideAll,c=n.line,h=n.marker;e.exports=u({lon:n.lon,lat:n.lat,mode:l({},i.mode,{dflt:\"markers\"}),text:l({},i.text,{}),hovertext:l({},i.hovertext,{}),line:{color:c.color,width:c.width},connectgaps:i.connectgaps,marker:{symbol:{valType:\"string\",dflt:\"circle\",arrayOk:!0},opacity:h.opacity,size:h.size,sizeref:h.sizeref,sizemin:h.sizemin,sizemode:h.sizemode,color:h.color,colorscale:h.colorscale,cauto:h.cauto,cmax:h.cmax,cmin:h.cmin,autocolorscale:h.autocolorscale,reversescale:h.reversescale,showscale:h.showscale,colorbar:s},fill:n.fill,fillcolor:i.fillcolor,textfont:a.layers.symbol.textfont,textposition:a.layers.symbol.textposition,hoverinfo:l({},o.hoverinfo,{flags:[\"lon\",\"lat\",\"text\",\"name\"]})},\"calc\",\"nested\")},{\"../../components/colorbar/attributes\":605,\"../../lib/extend\":717,\"../../plot_api/edit_types\":756,\"../../plots/attributes\":770,\"../../plots/mapbox/layout_attributes\":827,\"../scatter/attributes\":1031,\"../scattergeo/attributes\":1069}],1084:[function(t,e,r){\"use strict\";function n(){return{geojson:v.makeBlank(),layout:{visibility:\"none\"},paint:{}}}function i(t,e){function r(t,e){return a.opacity*e*(t.dim?_:1)}function n(t,r,n,i){void 0===e[r][n]&&(e[r][n]=i),t[r]=e[r][n]}var i,a=t[0].trace,o=a.marker;g.hasColorscale(a,\"marker\")?i=g.makeColorScaleFunc(g.extractScale(o.colorscale,o.cmin,o.cmax)):Array.isArray(o.color)&&(i=p.identity);var s;b.isBubble(a)&&(s=y(a));var l;Array.isArray(o.opacity)?l=function(t){return r(t,d(t.mo)?+p.constrain(t.mo,0,1):0)}:a._hasDimmedPts&&(l=function(t){return r(t,o.opacity)});for(var u=[],c=0;c<t.length;c++){var h=t[c],m=h.lonlat;if(!f(m)){var v={};if(i){var x=h.mcc=i(h.mc);n(v,w,x,c)}s&&n(v,M,s(h.ms),c),l&&n(v,k,l(h),c),u.push({type:\"Feature\",geometry:{type:\"Point\",coordinates:m},properties:v})}}return{type:\"FeatureCollection\",features:u}}function a(t){for(var e=t[0].trace,r=e.marker||{},n=r.symbol,i=e.text,a=\"circle\"!==n?u(n):c,o=b.hasText(e)?u(i):c,s=[],l=0;l<t.length;l++){var h=t[l];f(h.lonlat)||s.push({type:\"Feature\",geometry:{type:\"Point\",coordinates:h.lonlat},properties:{symbol:a(h.mx),text:o(h.tx)}})}return{type:\"FeatureCollection\",features:s}}function o(t,e){var r,n=t.marker;if(Array.isArray(n.color)){for(var i=Object.keys(e[w]),a=[],o=0;o<i.length;o++){var s=i[o];a.push([e[w][s],s])}r={property:w,stops:a}}else r=n.color;return r}function s(t,e){var r,n=t.marker;if(Array.isArray(n.size)){for(var i=Object.keys(e[M]),a=[],o=0;o<i.length;o++){var s=i[o];a.push([e[M][s],+s])}r={property:M,stops:a.sort(h)}}else r=n.size/2;return r}function l(t,e){var r,n=t.marker;if(Array.isArray(n.opacity)||t._hasDimmedPts){for(var i=Object.keys(e[k]),a=[],o=0;o<i.length;o++){var s=i[o];a.push([e[k][s],+s])}r={property:k,stops:a.sort(h)}}else r=t.opacity*n.opacity;return r}function u(t){return Array.isArray(t)?function(t){return t}:t?function(){return t}:c}function c(){return\"\"}function h(t,e){return t[0]-e[0]}function f(t){return t[0]===m}var d=t(\"fast-isnumeric\"),p=t(\"../../lib\"),m=t(\"../../constants/numerical\").BADNUM,v=t(\"../../lib/geojson_utils\"),g=t(\"../../components/colorscale\"),y=t(\"../scatter/make_bubble_size_func\"),b=t(\"../scatter/subtypes\"),x=t(\"../../plots/mapbox/convert_text_opts\"),_=t(\"../../constants/interactions\").DESELECTDIM,w=\"circle-color\",M=\"circle-radius\",k=\"circle-opacity\";e.exports=function(t){var e=t[0].trace,r=!0===e.visible,u=\"none\"!==e.fill,c=b.hasLines(e),h=b.hasMarkers(e),f=b.hasText(e),d=h&&\"circle\"===e.marker.symbol,m=h&&\"circle\"!==e.marker.symbol,g=n(),y=n(),_=n(),A=n(),T={fill:g,line:y,circle:_,symbol:A};if(!r)return T;var S;if((u||c)&&(S=v.calcTraceToLineCoords(t)),u&&(g.geojson=v.makePolygon(S),g.layout.visibility=\"visible\",p.extendFlat(g.paint,{\"fill-color\":e.fillcolor})),c&&(y.geojson=v.makeLine(S),y.layout.visibility=\"visible\",p.extendFlat(y.paint,{\"line-width\":e.line.width,\"line-color\":e.line.color,\"line-opacity\":e.opacity})),d){var E={};E[w]={},E[M]={},E[k]={},_.geojson=i(t,E),_.layout.visibility=\"visible\",p.extendFlat(_.paint,{\"circle-opacity\":l(e,E),\"circle-color\":o(e,E),\"circle-radius\":s(e,E)})}if((m||f)&&(A.geojson=a(t),p.extendFlat(A.layout,{visibility:\"visible\",\"icon-image\":\"{symbol}-15\",\"text-field\":\"{text}\"}),m&&(p.extendFlat(A.layout,{\"icon-size\":e.marker.size/10}),p.extendFlat(A.paint,{\"icon-opacity\":e.opacity*e.marker.opacity,\"icon-color\":e.marker.color})),f)){var L=(e.marker||{}).size,C=x(e.textposition,L);p.extendFlat(A.layout,{\"text-size\":e.textfont.size,\"text-anchor\":C.anchor,\"text-offset\":C.offset}),p.extendFlat(A.paint,{\"text-color\":e.textfont.color,\"text-opacity\":e.opacity})}return T}},{\"../../components/colorscale\":618,\"../../constants/interactions\":706,\"../../constants/numerical\":707,\"../../lib\":728,\"../../lib/geojson_utils\":721,\"../../plots/mapbox/convert_text_opts\":824,\"../scatter/make_bubble_size_func\":1047,\"../scatter/subtypes\":1052,\"fast-isnumeric\":131}],1085:[function(t,e,r){\"use strict\";function n(t,e,r){var n=r(\"lon\")||[],i=r(\"lat\")||[],a=Math.min(n.length,i.length);return a<n.length&&(e.lon=n.slice(0,a)),a<i.length&&(e.lat=i.slice(0,a)),a}var i=t(\"../../lib\"),a=t(\"../scatter/subtypes\"),o=t(\"../scatter/marker_defaults\"),s=t(\"../scatter/line_defaults\"),l=t(\"../scatter/text_defaults\"),u=t(\"../scatter/fillcolor_defaults\"),c=t(\"./attributes\");e.exports=function(t,e,r,h){function f(r,n){return i.coerce(t,e,c,r,n)}if(!n(t,e,f))return void(e.visible=!1);if(f(\"text\"),f(\"hovertext\"),f(\"mode\"),a.hasLines(e)&&(s(t,e,r,h,f,{noDash:!0}),f(\"connectgaps\")),a.hasMarkers(e)){o(t,e,r,h,f,{noLine:!0});var d=e.marker;d.line={width:0},\"circle\"!==d.symbol&&(Array.isArray(d.size)&&(d.size=d.size[0]),Array.isArray(d.color)&&(d.color=d.color[0]))}a.hasText(e)&&l(t,e,h,f),f(\"fill\"),\"none\"!==e.fill&&u(t,e,r,f)}},{\"../../lib\":728,\"../scatter/fillcolor_defaults\":1039,\"../scatter/line_defaults\":1043,\"../scatter/marker_defaults\":1048,\"../scatter/subtypes\":1052,\"../scatter/text_defaults\":1053,\"./attributes\":1083}],1086:[function(t,e,r){\"use strict\";e.exports=function(t,e){return t.lon=e.lon,t.lat=e.lat,t}},{}],1087:[function(t,e,r){\"use strict\";function n(t,e){function r(t){return t+\"\\xb0\"}var n=e.hi||t.hoverinfo,i=n.split(\"+\"),a=-1!==i.indexOf(\"all\"),s=-1!==i.indexOf(\"lon\"),l=-1!==i.indexOf(\"lat\"),u=e.lonlat,c=[];return a||s&&l?c.push(\"(\"+r(u[0])+\", \"+r(u[1])+\")\"):s?c.push(\"lon: \"+r(u[0])):l&&c.push(\"lat: \"+r(u[1])),(a||-1!==i.indexOf(\"text\"))&&o(e,t,c),c.join(\"<br>\")}var i=t(\"../../components/fx\"),a=t(\"../scatter/get_trace_color\"),o=t(\"../scatter/fill_hover_text\"),s=t(\"../../constants/numerical\").BADNUM;e.exports=function(t,e,r){function o(t){var e=t.lonlat;if(e[0]===s)return 1/0;var n=Math.abs(c.c2p(e)-c.c2p([p,e[1]])),i=Math.abs(h.c2p(e)-h.c2p([e[0],r])),a=Math.max(3,t.mrc||0);return Math.max(Math.sqrt(n*n+i*i)-a,1-3/a)}var l=t.cd,u=l[0].trace,c=t.xa,h=t.ya,f=e>=0?Math.floor((e+180)/360):Math.ceil((e-180)/360),d=360*f,p=e-d;if(i.getClosest(l,o,t),!1!==t.index){var m=l[t.index],v=m.lonlat,g=[v[0]+d,v[1]],y=c.c2p(g),b=h.c2p(g),x=m.mrc||1;return t.x0=y-x,t.x1=y+x,t.y0=b-x,t.y1=b+x,t.color=a(u,m),t.extraText=n(u,m),[t]}}},{\"../../components/fx\":645,\"../../constants/numerical\":707,\"../scatter/fill_hover_text\":1038,\"../scatter/get_trace_color\":1040}],1088:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.supplyDefaults=t(\"./defaults\"),n.colorbar=t(\"../scatter/colorbar\"),n.calc=t(\"../scattergeo/calc\"),n.plot=t(\"./plot\"),n.hoverPoints=t(\"./hover\"),n.eventData=t(\"./event_data\"),n.selectPoints=t(\"./select\"),n.moduleType=\"trace\",n.name=\"scattermapbox\",n.basePlotModule=t(\"../../plots/mapbox\"),n.categories=[\"mapbox\",\"gl\",\"symbols\",\"markerColorscale\",\"showLegend\",\"scatterlike\"],n.meta={},e.exports=n},{\"../../plots/mapbox\":825,\"../scatter/colorbar\":1034,\"../scattergeo/calc\":1070,\"./attributes\":1083,\"./defaults\":1085,\"./event_data\":1086,\"./hover\":1087,\"./plot\":1089,\"./select\":1090}],1089:[function(t,e,r){\"use strict\";function n(t,e){this.mapbox=t,this.map=t.map,this.uid=e,this.idSourceFill=e+\"-source-fill\",this.idSourceLine=e+\"-source-line\",this.idSourceCircle=e+\"-source-circle\",this.idSourceSymbol=e+\"-source-symbol\",this.idLayerFill=e+\"-layer-fill\",this.idLayerLine=e+\"-layer-line\",this.idLayerCircle=e+\"-layer-circle\",this.idLayerSymbol=e+\"-layer-symbol\",this.mapbox.initSource(this.idSourceFill),this.mapbox.initSource(this.idSourceLine),this.mapbox.initSource(this.idSourceCircle),this.mapbox.initSource(this.idSourceSymbol),this.map.addLayer({id:this.idLayerFill,source:this.idSourceFill,type:\"fill\"}),this.map.addLayer({id:this.idLayerLine,source:this.idSourceLine,type:\"line\"}),this.map.addLayer({id:this.idLayerCircle,source:this.idSourceCircle,type:\"circle\"}),this.map.addLayer({id:this.idLayerSymbol,source:this.idSourceSymbol,type:\"symbol\"})}function i(t){return\"visible\"===t.layout.visibility}var a=t(\"./convert\"),o=n.prototype;o.update=function(t){var e=this.mapbox,r=a(t);e.setOptions(this.idLayerFill,\"setLayoutProperty\",r.fill.layout),e.setOptions(this.idLayerLine,\"setLayoutProperty\",r.line.layout),e.setOptions(this.idLayerCircle,\"setLayoutProperty\",r.circle.layout),e.setOptions(this.idLayerSymbol,\"setLayoutProperty\",r.symbol.layout),i(r.fill)&&(e.setSourceData(this.idSourceFill,r.fill.geojson),e.setOptions(this.idLayerFill,\"setPaintProperty\",r.fill.paint)),i(r.line)&&(e.setSourceData(this.idSourceLine,r.line.geojson),e.setOptions(this.idLayerLine,\"setPaintProperty\",r.line.paint)),i(r.circle)&&(e.setSourceData(this.idSourceCircle,r.circle.geojson),e.setOptions(this.idLayerCircle,\"setPaintProperty\",r.circle.paint)),i(r.symbol)&&(e.setSourceData(this.idSourceSymbol,r.symbol.geojson),e.setOptions(this.idLayerSymbol,\"setPaintProperty\",r.symbol.paint)),t[0].trace._glTrace=this},o.dispose=function(){var t=this.map;t.removeLayer(this.idLayerFill),t.removeLayer(this.idLayerLine),t.removeLayer(this.idLayerCircle),t.removeLayer(this.idLayerSymbol),t.removeSource(this.idSourceFill),t.removeSource(this.idSourceLine),t.removeSource(this.idSourceCircle),t.removeSource(this.idSourceSymbol)},e.exports=function(t,e){var r=e[0].trace,i=new n(t,r.uid);return i.update(e),i}},{\"./convert\":1084}],1090:[function(t,e,r){\"use strict\";var n=t(\"../scatter/subtypes\");e.exports=function(t,e){var r,i,a,o,s,l=t.cd,u=t.xaxis,c=t.yaxis,h=[],f=l[0].trace;if(f._hasDimmedPts=!1,!0===f.visible&&n.hasMarkers(f)){if(!1===e)for(s=0;s<l.length;s++)l[s].dim=0;else for(s=0;s<l.length;s++)r=l[s],i=r.lonlat,a=u.c2p(i),o=c.c2p(i),e.contains([a,o])?(f._hasDimmedPts=!0,h.push({pointNumber:s,lon:i[0],lat:i[1]}),r.dim=0):r.dim=1;return f._glTrace.update(l),h}}},{\"../scatter/subtypes\":1052}],1091:[function(t,e,r){\"use strict\";var n=t(\"../scatter/attributes\"),i=t(\"../../plots/attributes\"),a=t(\"../../components/colorscale/color_attributes\"),o=t(\"../../components/colorbar/attributes\"),s=t(\"../../components/drawing/attributes\").dash,l=t(\"../../lib/extend\").extendFlat,u=n.marker,c=n.line,h=u.line;e.exports={a:{valType:\"data_array\",editType:\"calc\"},b:{valType:\"data_array\",editType:\"calc\"},c:{valType:\"data_array\",editType:\"calc\"},sum:{valType:\"number\",dflt:0,min:0,editType:\"calc\"},mode:l({},n.mode,{dflt:\"markers\"}),text:l({},n.text,{}),hovertext:l({},n.hovertext,{}),line:{color:c.color,width:c.width,dash:s,shape:l({},c.shape,{values:[\"linear\",\"spline\"]}),smoothing:c.smoothing,editType:\"calc\"},connectgaps:n.connectgaps,cliponaxis:n.cliponaxis,fill:l({},n.fill,{values:[\"none\",\"toself\",\"tonext\"]}),fillcolor:n.fillcolor,marker:l({symbol:u.symbol,opacity:u.opacity,maxdisplayed:u.maxdisplayed,size:u.size,sizeref:u.sizeref,sizemin:u.sizemin,sizemode:u.sizemode,line:l({width:h.width,editType:\"calc\"},a(\"marker.line\")),gradient:u.gradient,editType:\"calc\"},a(\"marker\"),{showscale:u.showscale,colorbar:o}),textfont:n.textfont,textposition:n.textposition,hoverinfo:l({},i.hoverinfo,{flags:[\"a\",\"b\",\"c\",\"text\",\"name\"]}),hoveron:n.hoveron}},{\"../../components/colorbar/attributes\":605,\"../../components/colorscale/color_attributes\":611,\"../../components/drawing/attributes\":627,\"../../lib/extend\":717,\"../../plots/attributes\":770,\"../scatter/attributes\":1031}],1092:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../../plots/cartesian/axes\"),a=t(\"../scatter/subtypes\"),o=t(\"../scatter/colorscale_calc\"),s=t(\"../scatter/arrays_to_calcdata\"),l=[\"a\",\"b\",\"c\"],u={a:[\"b\",\"c\"],b:[\"a\",\"c\"],c:[\"a\",\"b\"]};e.exports=function(t,e){var r,c,h,f,d,p,m=t._fullLayout[e.subplot],v=m.sum,g=e.sum||v;for(r=0;r<l.length;r++)if(h=l[r],!e[h]){for(d=e[u[h][0]],p=e[u[h][1]],f=new Array(d.length),c=0;c<d.length;c++)f[c]=g-d[c]-p[c];e[h]=f}var y,b,x,_,w,M,k=e.a.length,A=new Array(k);for(r=0;r<k;r++)y=e.a[r],b=e.b[r],x=e.c[r],n(y)&&n(b)&&n(x)?(y=+y,b=+b,x=+x,_=v/(y+b+x),1!==_&&(y*=_,b*=_,x*=_),M=y,w=x-b,A[r]={x:w,y:M,a:y,b:b,c:x}):A[r]={x:!1,y:!1};var T,S;if(a.hasMarkers(e)&&(T=e.marker,S=T.size,Array.isArray(S))){var E={type:\"linear\"};i.setConvert(E),S=E.makeCalcdata(e.marker,\"size\"),S.length>k&&S.splice(k,S.length-k)}return o(e),s(A,e),A}},{\"../../plots/cartesian/axes\":772,\"../scatter/arrays_to_calcdata\":1030,\"../scatter/colorscale_calc\":1035,\"../scatter/subtypes\":1052,\"fast-isnumeric\":131}],1093:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../scatter/constants\"),a=t(\"../scatter/subtypes\"),o=t(\"../scatter/marker_defaults\"),s=t(\"../scatter/line_defaults\"),l=t(\"../scatter/line_shape_defaults\"),u=t(\"../scatter/text_defaults\"),c=t(\"../scatter/fillcolor_defaults\"),h=t(\"./attributes\");e.exports=function(t,e,r,f){function d(r,i){return n.coerce(t,e,h,r,i)}var p,m=d(\"a\"),v=d(\"b\"),g=d(\"c\");if(m?(p=m.length,v?(p=Math.min(p,v.length),g&&(p=Math.min(p,g.length))):p=g?Math.min(p,g.length):0):v&&g&&(p=Math.min(v.length,g.length)),!p)return void(e.visible=!1);m&&p<m.length&&(e.a=m.slice(0,p)),v&&p<v.length&&(e.b=v.slice(0,p)),g&&p<g.length&&(e.c=g.slice(0,p)),d(\"sum\"),d(\"text\"),d(\"hovertext\"),d(\"mode\",p<i.PTS_LINESONLY?\"lines+markers\":\"lines\"),a.hasLines(e)&&(s(t,e,r,f,d),l(t,e,d),d(\"connectgaps\")),a.hasMarkers(e)&&o(t,e,r,f,d,{gradient:!0}),a.hasText(e)&&u(t,e,f,d);var y=[];(a.hasMarkers(e)||a.hasText(e))&&(d(\"marker.maxdisplayed\"),y.push(\"points\")),d(\"fill\"),\"none\"!==e.fill&&(c(t,e,r,d),a.hasLines(e)||l(t,e,d)),\"tonext\"!==e.fill&&\"toself\"!==e.fill||y.push(\"fills\"),d(\"hoveron\",y.join(\"+\")||\"points\"),d(\"cliponaxis\")}},{\"../../lib\":728,\"../scatter/constants\":1036,\"../scatter/fillcolor_defaults\":1039,\"../scatter/line_defaults\":1043,\"../scatter/line_shape_defaults\":1045,\"../scatter/marker_defaults\":1048,\"../scatter/subtypes\":1052,\"../scatter/text_defaults\":1053,\"./attributes\":1091}],1094:[function(t,e,r){\"use strict\";var n=t(\"../scatter/hover\"),i=t(\"../../plots/cartesian/axes\");e.exports=function(t,e,r,a){function o(t,e){y.push(t._hovertitle+\": \"+i.tickText(t,e,\"hover\").text)}var s=n(t,e,r,a);if(s&&!1!==s[0].index){var l=s[0];if(void 0===l.index){var u=1-l.y0/t.ya._length,c=t.xa._length,h=c*u/2,f=c-h;return l.x0=Math.max(Math.min(l.x0,f),h),l.x1=Math.max(Math.min(l.x1,f),h),s}var d=l.cd[l.index];l.a=d.a,l.b=d.b,l.c=d.c,l.xLabelVal=void 0,l.yLabelVal=void 0;var p=l.trace,m=p._ternary,v=d.hi||p.hoverinfo,g=v.split(\"+\"),y=[];return-1!==g.indexOf(\"all\")&&(g=[\"a\",\"b\",\"c\"]),-1!==g.indexOf(\"a\")&&o(m.aaxis,d.a),-1!==g.indexOf(\"b\")&&o(m.baxis,d.b),-1!==g.indexOf(\"c\")&&o(m.caxis,d.c),l.extraText=y.join(\"<br>\"),s}}},{\"../../plots/cartesian/axes\":772,\"../scatter/hover\":1041}],1095:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.supplyDefaults=t(\"./defaults\"),n.colorbar=t(\"../scatter/colorbar\"),n.calc=t(\"./calc\"),n.plot=t(\"./plot\"),n.style=t(\"./style\"),n.hoverPoints=t(\"./hover\"),n.selectPoints=t(\"./select\"),n.moduleType=\"trace\",n.name=\"scatterternary\",n.basePlotModule=t(\"../../plots/ternary\"),\n", "n.categories=[\"ternary\",\"symbols\",\"markerColorscale\",\"showLegend\",\"scatter-like\"],n.meta={},e.exports=n},{\"../../plots/ternary\":839,\"../scatter/colorbar\":1034,\"./attributes\":1091,\"./calc\":1092,\"./defaults\":1093,\"./hover\":1094,\"./plot\":1096,\"./select\":1097,\"./style\":1098}],1096:[function(t,e,r){\"use strict\";var n=t(\"../scatter/plot\");e.exports=function(t,e){var r=t.plotContainer;r.select(\".scatterlayer\").selectAll(\"*\").remove();for(var i={xaxis:t.xaxis,yaxis:t.yaxis,plot:r,layerClipId:t._hasClipOnAxisFalse?t.clipIdRelative:null},a=0;a<e.length;a++)e[a][0].trace._ternary=t;n(t.graphDiv,i,e)}},{\"../scatter/plot\":1049}],1097:[function(t,e,r){arguments[4][1067][0].apply(r,arguments)},{\"../scatter/select\":1050,dup:1067}],1098:[function(t,e,r){arguments[4][1068][0].apply(r,arguments)},{\"../scatter/style\":1051,dup:1068}],1099:[function(t,e,r){\"use strict\";function n(t){return{valType:\"boolean\",dflt:!1}}function i(t){return{show:{valType:\"boolean\",dflt:!1},project:{x:n(\"x\"),y:n(\"y\"),z:n(\"z\")},color:{valType:\"color\",dflt:a.defaultLine},usecolormap:{valType:\"boolean\",dflt:!1},width:{valType:\"number\",min:1,max:16,dflt:2},highlight:{valType:\"boolean\",dflt:!0},highlightcolor:{valType:\"color\",dflt:a.defaultLine},highlightwidth:{valType:\"number\",min:1,max:16,dflt:2}}}var a=t(\"../../components/color\"),o=t(\"../../components/colorscale/attributes\"),s=t(\"../../components/colorbar/attributes\"),l=t(\"../../lib/extend\").extendFlat,u=t(\"../../plot_api/edit_types\").overrideAll,c=e.exports=u({z:{valType:\"data_array\"},x:{valType:\"data_array\"},y:{valType:\"data_array\"},text:{valType:\"data_array\"},surfacecolor:{valType:\"data_array\"},cauto:o.zauto,cmin:o.zmin,cmax:o.zmax,colorscale:o.colorscale,autocolorscale:l({},o.autocolorscale,{dflt:!1}),reversescale:o.reversescale,showscale:o.showscale,colorbar:s,contours:{x:i(\"x\"),y:i(\"y\"),z:i(\"z\")},hidesurface:{valType:\"boolean\",dflt:!1},lightposition:{x:{valType:\"number\",min:-1e5,max:1e5,dflt:10},y:{valType:\"number\",min:-1e5,max:1e5,dflt:1e4},z:{valType:\"number\",min:-1e5,max:1e5,dflt:0}},lighting:{ambient:{valType:\"number\",min:0,max:1,dflt:.8},diffuse:{valType:\"number\",min:0,max:1,dflt:.8},specular:{valType:\"number\",min:0,max:2,dflt:.05},roughness:{valType:\"number\",min:0,max:1,dflt:.5},fresnel:{valType:\"number\",min:0,max:5,dflt:.2}},opacity:{valType:\"number\",min:0,max:1,dflt:1},_deprecated:{zauto:l({},o.zauto,{}),zmin:l({},o.zmin,{}),zmax:l({},o.zmax,{})}},\"calc\",\"nested\");c.x.editType=c.y.editType=c.z.editType=\"calc+clearAxisTypes\"},{\"../../components/color\":604,\"../../components/colorbar/attributes\":605,\"../../components/colorscale/attributes\":609,\"../../lib/extend\":717,\"../../plot_api/edit_types\":756}],1100:[function(t,e,r){\"use strict\";var n=t(\"../../components/colorscale/calc\");e.exports=function(t,e){e.surfacecolor?n(e,e.surfacecolor,\"\",\"c\"):n(e,e.z,\"\",\"c\")}},{\"../../components/colorscale/calc\":610}],1101:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../../lib\"),a=t(\"../../plots/plots\"),o=t(\"../../components/colorscale\"),s=t(\"../../components/colorbar/draw\");e.exports=function(t,e){var r=e[0].trace,l=\"cb\"+r.uid,u=r.cmin,c=r.cmax,h=r.surfacecolor||r.z;if(n(u)||(u=i.aggNums(Math.min,null,h)),n(c)||(c=i.aggNums(Math.max,null,h)),t._fullLayout._infolayer.selectAll(\".\"+l).remove(),!r.showscale)return void a.autoMargin(t,l);var f=e[0].t.cb=s(t,l),d=o.makeColorScaleFunc(o.extractScale(r.colorscale,u,c),{noNumericCheck:!0});f.fillcolor(d).filllevels({start:u,end:c,size:(c-u)/254}).options(r.colorbar)()}},{\"../../components/colorbar/draw\":607,\"../../components/colorscale\":618,\"../../lib\":728,\"../../plots/plots\":831,\"fast-isnumeric\":131}],1102:[function(t,e,r){\"use strict\";function n(t,e,r){this.scene=t,this.uid=r,this.surface=e,this.data=null,this.showContour=[!1,!1,!1],this.dataScale=1}function i(t,e){return void 0===e&&(e=1),t.map(function(t){var r=t[0],n=p(t[1]),i=n.toRgb();return{index:r,rgb:[i.r,i.g,i.b,e]}})}function a(t){var e=t[0].rgb,r=t[t.length-1].rgb;return e[0]===r[0]&&e[1]===r[1]&&e[2]===r[2]&&e[3]===r[3]}function o(t){var e=t.shape,r=[e[0]+2,e[1]+2],n=c(new Float32Array(r[0]*r[1]),r);return d.assign(n.lo(1,1).hi(e[0],e[1]),t),d.assign(n.lo(1).hi(e[0],1),t.hi(e[0],1)),d.assign(n.lo(1,r[1]-1).hi(e[0],1),t.lo(0,e[1]-1).hi(e[0],1)),d.assign(n.lo(0,1).hi(1,e[1]),t.hi(1)),d.assign(n.lo(r[0]-1,1).hi(1,e[1]),t.lo(e[0]-1)),n.set(0,0,t.get(0,0)),n.set(0,r[1]-1,t.get(0,e[1]-1)),n.set(r[0]-1,0,t.get(e[0]-1,0)),n.set(r[0]-1,r[1]-1,t.get(e[0]-1,e[1]-1)),n}function s(t){var e=Math.max(t[0].shape[0],t[0].shape[1]);if(e<v){for(var r=v/e,n=[0|Math.floor(t[0].shape[0]*r+1),0|Math.floor(t[0].shape[1]*r+1)],i=n[0]*n[1],a=0;a<t.length;++a){var s=o(t[a]),l=c(new Float32Array(i),n);h(l,s,[r,0,0,0,r,0,0,0,1]),t[a]=l}return r}return 1}function l(t,e){var r=t.glplot.gl,i=u({gl:r}),a=new n(t,i,e.uid);return i._trace=a,a.update(e),t.glplot.add(i),a}var u=t(\"gl-surface3d\"),c=t(\"ndarray\"),h=t(\"ndarray-homography\"),f=t(\"ndarray-fill\"),d=t(\"ndarray-ops\"),p=t(\"tinycolor2\"),m=t(\"../../lib/str2rgbarray\"),v=128,g=n.prototype;g.handlePick=function(t){if(t.object===this.surface){var e=t.index=[Math.min(0|Math.round(t.data.index[0]/this.dataScale-1),this.data.z[0].length-1),Math.min(0|Math.round(t.data.index[1]/this.dataScale-1),this.data.z.length-1)],r=[0,0,0];Array.isArray(this.data.x[0])?r[0]=this.data.x[e[1]][e[0]]:r[0]=this.data.x[e[0]],Array.isArray(this.data.y[0])?r[1]=this.data.y[e[1]][e[0]]:r[1]=this.data.y[e[1]],r[2]=this.data.z[e[1]][e[0]],t.traceCoordinate=r;var n=this.scene.fullSceneLayout;t.dataCoordinate=[n.xaxis.d2l(r[0],0,this.data.xcalendar)*this.scene.dataScale[0],n.yaxis.d2l(r[1],0,this.data.ycalendar)*this.scene.dataScale[1],n.zaxis.d2l(r[2],0,this.data.zcalendar)*this.scene.dataScale[2]];var i=this.data.text;return i&&i[e[1]]&&void 0!==i[e[1]][e[0]]?t.textLabel=i[e[1]][e[0]]:t.textLabel=\"\",t.data.dataCoordinate=t.dataCoordinate.slice(),this.surface.highlight(t.data),this.scene.glplot.spikes.position=t.dataCoordinate,!0}},g.setContourLevels=function(){for(var t=[[],[],[]],e=!1,r=0;r<3;++r)this.showContour[r]&&(e=!0,t[r]=this.scene.contourLevels[r]);e&&this.surface.update({levels:t})},g.update=function(t){var e,r=this.scene,n=r.fullSceneLayout,o=this.surface,l=t.opacity,u=i(t.colorscale,l),h=t.z,d=t.x,p=t.y,v=n.xaxis,g=n.yaxis,y=n.zaxis,b=r.dataScale,x=h[0].length,_=h.length,w=[c(new Float32Array(x*_),[x,_]),c(new Float32Array(x*_),[x,_]),c(new Float32Array(x*_),[x,_])],M=w[0],k=w[1],A=r.contourLevels;this.data=t;var T=t.xcalendar,S=t.ycalendar,E=t.zcalendar;f(w[2],function(t,e){return y.d2l(h[e][t],0,E)*b[2]}),Array.isArray(d[0])?f(M,function(t,e){return v.d2l(d[e][t],0,T)*b[0]}):f(M,function(t){return v.d2l(d[t],0,T)*b[0]}),Array.isArray(p[0])?f(k,function(t,e){return g.d2l(p[e][t],0,S)*b[1]}):f(k,function(t,e){return g.d2l(p[e],0,S)*b[1]});var L={colormap:u,levels:[[],[],[]],showContour:[!0,!0,!0],showSurface:!t.hidesurface,contourProject:[[!1,!1,!1],[!1,!1,!1],[!1,!1,!1]],contourWidth:[1,1,1],contourColor:[[1,1,1,1],[1,1,1,1],[1,1,1,1]],contourTint:[1,1,1],dynamicColor:[[1,1,1,1],[1,1,1,1],[1,1,1,1]],dynamicWidth:[1,1,1],dynamicTint:[1,1,1],opacity:t.opacity};if(L.intensityBounds=[t.cmin,t.cmax],t.surfacecolor){var C=c(new Float32Array(x*_),[x,_]);f(C,function(e,r){return t.surfacecolor[r][e]}),w.push(C)}else L.intensityBounds[0]*=b[2],L.intensityBounds[1]*=b[2];this.dataScale=s(w),t.surfacecolor&&(L.intensity=w.pop());var I=[!0,!0,!0],z=[\"x\",\"y\",\"z\"];for(e=0;e<3;++e){var D=t.contours[z[e]];I[e]=D.highlight,L.showContour[e]=D.show||D.highlight,L.showContour[e]&&(L.contourProject[e]=[D.project.x,D.project.y,D.project.z],D.show?(this.showContour[e]=!0,L.levels[e]=A[e],o.highlightColor[e]=L.contourColor[e]=m(D.color),D.usecolormap?o.highlightTint[e]=L.contourTint[e]=0:o.highlightTint[e]=L.contourTint[e]=1,L.contourWidth[e]=D.width):this.showContour[e]=!1,D.highlight&&(L.dynamicColor[e]=m(D.highlightcolor),L.dynamicWidth[e]=D.highlightwidth))}a(u)&&(L.vertexColor=!0),L.coords=w,o.update(L),o.visible=t.visible,o.enableDynamic=I,o.snapToData=!0,\"lighting\"in t&&(o.ambientLight=t.lighting.ambient,o.diffuseLight=t.lighting.diffuse,o.specularLight=t.lighting.specular,o.roughness=t.lighting.roughness,o.fresnel=t.lighting.fresnel),\"lightposition\"in t&&(o.lightPosition=[t.lightposition.x,t.lightposition.y,t.lightposition.z]),l&&l<1&&(o.supportsTransparency=!0)},g.dispose=function(){this.scene.glplot.remove(this.surface),this.surface.dispose()},e.exports=l},{\"../../lib/str2rgbarray\":749,\"gl-surface3d\":266,ndarray:467,\"ndarray-fill\":457,\"ndarray-homography\":459,\"ndarray-ops\":461,tinycolor2:534}],1103:[function(t,e,r){\"use strict\";function n(t,e,r){e in t&&!(r in t)&&(t[r]=t[e])}var i=t(\"../../registry\"),a=t(\"../../lib\"),o=t(\"../../components/colorscale/defaults\"),s=t(\"./attributes\");e.exports=function(t,e,r,l){function u(r,n){return a.coerce(t,e,s,r,n)}var c,h,f=u(\"z\");if(!f)return void(e.visible=!1);var d=f[0].length,p=f.length;if(u(\"x\"),u(\"y\"),i.getComponentMethod(\"calendars\",\"handleTraceDefaults\")(t,e,[\"x\",\"y\",\"z\"],l),!Array.isArray(e.x))for(e.x=[],c=0;c<d;++c)e.x[c]=c;if(u(\"text\"),!Array.isArray(e.y))for(e.y=[],c=0;c<p;++c)e.y[c]=c;[\"lighting.ambient\",\"lighting.diffuse\",\"lighting.specular\",\"lighting.roughness\",\"lighting.fresnel\",\"lightposition.x\",\"lightposition.y\",\"lightposition.z\",\"hidesurface\",\"opacity\"].forEach(function(t){u(t)});var m=u(\"surfacecolor\");u(\"colorscale\");var v=[\"x\",\"y\",\"z\"];for(c=0;c<3;++c){var g=\"contours.\"+v[c],y=u(g+\".show\"),b=u(g+\".highlight\");if(y||b)for(h=0;h<3;++h)u(g+\".project.\"+v[h]);y&&(u(g+\".color\"),u(g+\".width\"),u(g+\".usecolormap\")),b&&(u(g+\".highlightcolor\"),u(g+\".highlightwidth\"))}m||(n(t,\"zmin\",\"cmin\"),n(t,\"zmax\",\"cmax\"),n(t,\"zauto\",\"cauto\")),o(t,e,l,u,{prefix:\"\",cLetter:\"c\"})}},{\"../../components/colorscale/defaults\":613,\"../../lib\":728,\"../../registry\":846,\"./attributes\":1099}],1104:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.supplyDefaults=t(\"./defaults\"),n.colorbar=t(\"./colorbar\"),n.calc=t(\"./calc\"),n.plot=t(\"./convert\"),n.moduleType=\"trace\",n.name=\"surface\",n.basePlotModule=t(\"../../plots/gl3d\"),n.categories=[\"gl3d\",\"2dMap\",\"noOpacity\"],n.meta={},e.exports=n},{\"../../plots/gl3d\":811,\"./attributes\":1099,\"./calc\":1100,\"./colorbar\":1101,\"./convert\":1102,\"./defaults\":1103}],1105:[function(t,e,r){\"use strict\";var n=t(\"../../components/annotations/attributes\"),i=t(\"../../lib/extend\").extendFlat,a=t(\"../../plot_api/edit_types\").overrideAll;e.exports=a({domain:{x:{valType:\"info_array\",items:[{valType:\"number\",min:0,max:1},{valType:\"number\",min:0,max:1}],dflt:[0,1]},y:{valType:\"info_array\",items:[{valType:\"number\",min:0,max:1},{valType:\"number\",min:0,max:1}],dflt:[0,1]}},columnwidth:{valType:\"number\",arrayOk:!0,dflt:null},columnorder:{valType:\"data_array\"},header:{values:{valType:\"data_array\",dflt:[]},format:{valType:\"data_array\",dflt:[]},prefix:{valType:\"string\",arrayOk:!0,dflt:null},suffix:{valType:\"string\",arrayOk:!0,dflt:null},height:{valType:\"number\",dflt:28},align:i({},n.align,{arrayOk:!0}),line:{width:{valType:\"number\",arrayOk:!0},color:{valType:\"color\",arrayOk:!0}},fill:{color:{valType:\"color\",arrayOk:!0,dflt:\"white\"}},font:{family:{valType:\"string\",arrayOk:!0,noBlank:!0,strict:!0},size:{valType:\"number\",arrayOk:!0},color:{valType:\"color\",arrayOk:!0}}},cells:{values:{valType:\"data_array\",dflt:[]},format:{valType:\"data_array\",dflt:[]},prefix:{valType:\"string\",arrayOk:!0,dflt:null},suffix:{valType:\"string\",arrayOk:!0,dflt:null},height:{valType:\"number\",dflt:20},align:i({},n.align,{arrayOk:!0}),line:{width:{valType:\"number\",arrayOk:!0},color:{valType:\"color\",arrayOk:!0}},fill:{color:{valType:\"color\",arrayOk:!0,dflt:\"white\"}},font:{family:{valType:\"string\",arrayOk:!0,noBlank:!0,strict:!0},size:{valType:\"number\",arrayOk:!0},color:{valType:\"color\",arrayOk:!0}}}},\"calc\",\"from-root\")},{\"../../components/annotations/attributes\":587,\"../../lib/extend\":717,\"../../plot_api/edit_types\":756}],1106:[function(t,e,r){\"use strict\";var n=t(\"../../plots/plots\"),i=t(\"./plot\");r.name=\"table\",r.attr=\"type\",r.plot=function(t){var e=n.getSubplotCalcData(t.calcdata,\"table\",\"table\");e.length&&i(t,e)},r.clean=function(t,e,r,n){var i=n._has&&n._has(\"table\"),a=e._has&&e._has(\"table\");i&&!a&&n._paperdiv.selectAll(\".table\").remove()}},{\"../../plots/plots\":831,\"./plot\":1113}],1107:[function(t,e,r){\"use strict\";var n=t(\"../../lib/gup\").wrap;e.exports=function(t,e){return n(e)}},{\"../../lib/gup\":725}],1108:[function(t,e,r){\"use strict\";e.exports={maxDimensionCount:60,overdrag:45,cellPad:8,latexCheck:/^\\$.*\\$$/,wrapSplitCharacter:\" \",wrapSpacer:\" \",lineBreaker:\"<br>\",uplift:5,goldenRatio:1.618,columnTitleOffset:28,columnExtentOffset:10,transitionEase:\"cubic-out\",transitionDuration:100,releaseTransitionEase:\"cubic-out\",releaseTransitionDuration:120,scrollbarWidth:8,scrollbarCaptureWidth:18,scrollbarOffset:5,scrollbarHideDelay:1e3,scrollbarHideDuration:1e3}},{}],1109:[function(t,e,r){\"use strict\";function n(t){return t.calcdata.columns.reduce(function(e,r){return r.xIndex<t.xIndex?e+r.columnWidth:e},0)}function i(t,e){return Object.keys(t).map(function(r){return l({},t[r],{auxiliaryBlocks:e})})}function a(t,e){for(var r,n={},i=0,a=0,s=o(),l=0,u=0,c=0;c<t.length;c++)r=t[c],s.rows.push({rowIndex:c,rowHeight:r}),((a+=r)>=e||c===t.length-1)&&(n[i]=s,s.key=u++,s.firstRowIndex=l,s.lastRowIndex=c,s=o(),i+=a,l=c+1,a=0);return n}function o(){return{firstRowIndex:null,lastRowIndex:null,rows:[]}}var s=t(\"./constants\"),l=t(\"../../lib/extend\").extendFlat;e.exports=function(t,e){var r=e.domain,o=Math.floor(t._fullLayout._size.w*(r.x[1]-r.x[0])),l=Math.floor(t._fullLayout._size.h*(r.y[1]-r.y[0])),u=e.header.values[0].map(function(){return e.header.height}),c=e.cells.values[0].map(function(){return e.cells.height}),h=u.reduce(function(t,e){return t+e},0),f=l-h,d=f+s.uplift,p=a(c,d),m=a(u,h),v=i(m,[]),g=i(p,v),y={},b=e._fullInput.columnorder,x=e.header.values.map(function(t,r){return Array.isArray(e.columnwidth)?e.columnwidth[Math.min(r,e.columnwidth.length-1)]:isFinite(e.columnwidth)&&null!==e.columnwidth?e.columnwidth:1}),_=x.reduce(function(t,e){return t+e},0);x=x.map(function(t){return t/_*o});var w={key:e.index,translateX:r.x[0]*t._fullLayout._size.w,translateY:t._fullLayout._size.h*(1-r.y[1]),size:t._fullLayout._size,width:o,height:l,columnOrder:b,groupHeight:l,rowBlocks:g,headerRowBlocks:v,scrollY:0,cells:e.cells,headerCells:e.header,gdColumns:e.header.values.map(function(t){return t[0]}),gdColumnsOriginalOrder:e.header.values.map(function(t){return t[0]}),prevPages:[0,0],scrollbarState:{scrollbarScrollInProgress:!1},columns:e.header.values.map(function(t,e){var r=y[t];return y[t]=(r||0)+1,{key:t+\"__\"+y[t],label:t,specIndex:e,xIndex:b[e],xScale:n,x:void 0,calcdata:void 0,columnWidth:x[e]}})};return w.columns.forEach(function(t){t.calcdata=w,t.x=n(t)}),w}},{\"../../lib/extend\":717,\"./constants\":1108}],1110:[function(t,e,r){\"use strict\";function n(t){var e=t.rowBlocks[t.page],r=e?e.rows[0].rowIndex:0;return[r,e?r+e.rows.length:0]}var i=t(\"../../lib/extend\").extendFlat;r.splitToPanels=function(t){var e=[0,0],r=i({},t,{key:\"header\",type:\"header\",page:0,prevPages:e,currentRepaint:[null,null],dragHandle:!0,values:t.calcdata.headerCells.values[t.specIndex],rowBlocks:t.calcdata.headerRowBlocks,calcdata:i({},t.calcdata,{cells:t.calcdata.headerCells})});return[i({},t,{key:\"cells1\",type:\"cells\",page:0,prevPages:e,currentRepaint:[null,null],dragHandle:!1,values:t.calcdata.cells.values[t.specIndex],rowBlocks:t.calcdata.rowBlocks}),i({},t,{key:\"cells2\",type:\"cells\",page:1,prevPages:e,currentRepaint:[null,null],dragHandle:!1,values:t.calcdata.cells.values[t.specIndex],rowBlocks:t.calcdata.rowBlocks}),r]},r.splitToCells=function(t){var e=n(t);return t.values.slice(e[0],e[1]).map(function(r,n){return{keyWithinBlock:n+(\"string\"==typeof r&&r.match(/[<$&> ]/)?\"_keybuster_\"+Math.random():\"\"),key:e[0]+n,column:t,calcdata:t.calcdata,page:t.page,rowBlocks:t.rowBlocks,value:r}})}},{\"../../lib/extend\":717}],1111:[function(t,e,r){\"use strict\";function n(t,e){for(var r=t.columnorder||[],n=t.header.values.length,i=r.slice(0,n),a=i.slice().sort(function(t,e){return t-e}),o=i.map(function(t){return a.indexOf(t)}),s=o.length;s<n;s++)o.push(s);e(\"columnorder\",o)}var i=t(\"../../lib\"),a=t(\"./attributes\");e.exports=function(t,e,r,o){function s(r,n){return i.coerce(t,e,a,r,n)}var l={family:o.font.family,size:o.font.size,color:o.font.color};s(\"domain.x\"),s(\"domain.y\"),s(\"columnwidth\"),n(t,s),s(\"cells.values\"),s(\"cells.format\"),s(\"cells.align\"),s(\"cells.prefix\"),s(\"cells.suffix\"),s(\"cells.height\"),s(\"cells.line.width\"),s(\"cells.line.color\"),s(\"cells.fill.color\"),i.coerceFont(s,\"cells.font\",l),s(\"header.values\"),s(\"header.format\"),s(\"header.align\"),s(\"header.prefix\"),s(\"header.suffix\"),s(\"header.height\"),s(\"header.line.width\"),s(\"header.line.color\"),s(\"header.fill.color\"),i.coerceFont(s,\"header.font\",l)}},{\"../../lib\":728,\"./attributes\":1105}],1112:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.supplyDefaults=t(\"./defaults\"),n.calc=t(\"./calc\"),n.plot=t(\"./plot\"),n.moduleType=\"trace\",n.name=\"table\",n.basePlotModule=t(\"./base_plot\"),n.categories=[],n.meta={},e.exports=n},{\"./attributes\":1105,\"./base_plot\":1106,\"./calc\":1107,\"./defaults\":1111,\"./plot\":1113}],1113:[function(t,e,r){\"use strict\";function n(t,e){return\"clip\"+t._fullLayout._uid+\"_scrollAreaBottomClip_\"+e.key}function i(t,e){return\"clip\"+t._fullLayout._uid+\"_columnBoundaryClippath_\"+e.calcdata.key+\"_\"+e.specIndex}function a(t){return[].concat.apply([],t.map(function(t){return t})).map(function(t){return t.__data__})}function o(t,e,r){function n(t){var e=t.rowBlocks;return D(e,e.length-1)+P(e[e.length-1],1/0)}var i=t.selectAll(\".scrollbarKit\").data(B.repeat,B.keyFun);i.enter().append(\"g\").classed(\"scrollbarKit\",!0).style(\"shape-rendering\",\"geometricPrecision\"),i.each(function(t){var e=t.scrollbarState;e.totalHeight=n(t),e.scrollableAreaHeight=t.groupHeight-k(t),e.currentlyVisibleHeight=Math.min(e.totalHeight,e.scrollableAreaHeight),e.ratio=e.currentlyVisibleHeight/e.totalHeight,e.barLength=Math.max(e.ratio*e.currentlyVisibleHeight,j.goldenRatio*j.scrollbarWidth),e.barWiggleRoom=e.currentlyVisibleHeight-e.barLength,e.wiggleRoom=Math.max(0,e.totalHeight-e.scrollableAreaHeight),e.topY=0===e.barWiggleRoom?0:t.scrollY/e.wiggleRoom*e.barWiggleRoom,e.bottomY=e.topY+e.barLength,e.dragMultiplier=e.wiggleRoom/e.barWiggleRoom}).attr(\"transform\",function(t){return\"translate(\"+(t.width+j.scrollbarWidth/2+j.scrollbarOffset)+\" \"+k(t)+\")\"});var a=i.selectAll(\".scrollbar\").data(B.repeat,B.keyFun);a.enter().append(\"g\").classed(\"scrollbar\",!0);var o=a.selectAll(\".scrollbarSlider\").data(B.repeat,B.keyFun);o.enter().append(\"g\").classed(\"scrollbarSlider\",!0),o.attr(\"transform\",function(t){return\"translate(0 \"+t.scrollbarState.topY+\")\"});var s=o.selectAll(\".scrollbarGlyph\").data(B.repeat,B.keyFun);s.enter().append(\"line\").classed(\"scrollbarGlyph\",!0).attr(\"stroke\",\"black\").attr(\"stroke-width\",j.scrollbarWidth).attr(\"stroke-linecap\",\"round\").attr(\"y1\",j.scrollbarWidth/2),s.attr(\"y2\",function(t){return t.scrollbarState.barLength-j.scrollbarWidth/2}).attr(\"stroke-opacity\",function(t){return t.columnDragInProgress||!t.scrollbarState.barWiggleRoom||r?0:.4}),s.transition().delay(0).duration(0),s.transition().delay(j.scrollbarHideDelay).duration(j.scrollbarHideDuration).attr(\"stroke-opacity\",0);var l=a.selectAll(\".scrollbarCaptureZone\").data(B.repeat,B.keyFun);l.enter().append(\"line\").classed(\"scrollbarCaptureZone\",!0).attr(\"stroke\",\"white\").attr(\"stroke-opacity\",.01).attr(\"stroke-width\",j.scrollbarCaptureWidth).attr(\"stroke-linecap\",\"butt\").attr(\"y1\",0).on(\"mousedown\",function(r){var n=N.event.y,i=this.getBoundingClientRect(),a=r.scrollbarState,o=n-i.top,s=N.scale.linear().domain([0,a.scrollableAreaHeight]).range([0,a.totalHeight]).clamp(!0);a.topY<=o&&o<=a.bottomY||S(e,t,null,s(o-a.barLength/2))(r)}).call(N.behavior.drag().origin(function(t){return N.event.stopPropagation(),t.scrollbarState.scrollbarScrollInProgress=!0,t}).on(\"drag\",S(e,t)).on(\"dragend\",function(){})),l.attr(\"y2\",function(t){return t.scrollbarState.scrollableAreaHeight})}function s(t,e,r,n){var i=l(r),a=u(i);d(a),m(c(a));var o=f(a),s=h(o);p(s),v(s,e,n,t),z(a)}function l(t){var e=t.selectAll(\".columnCells\").data(B.repeat,B.keyFun);return e.enter().append(\"g\").classed(\"columnCells\",!0),e.exit().remove(),e}function u(t){var e=t.selectAll(\".columnCell\").data(Y.splitToCells,function(t){return t.keyWithinBlock});return e.enter().append(\"g\").classed(\"columnCell\",!0),e.exit().remove(),e}function c(t){var e=t.selectAll(\".cellRect\").data(B.repeat,function(t){return t.keyWithinBlock});return e.enter().append(\"rect\").classed(\"cellRect\",!0),e}function h(t){var e=t.selectAll(\".cellText\").data(B.repeat,function(t){return t.keyWithinBlock});return e.enter().append(\"text\").classed(\"cellText\",!0).style(\"cursor\",function(){return\"auto\"}).on(\"mousedown\",function(){N.event.stopPropagation()}),e}function f(t){var e=t.selectAll(\".cellTextHolder\").data(B.repeat,function(t){return t.keyWithinBlock});return e.enter().append(\"g\").classed(\"cellTextHolder\",!0).style(\"shape-rendering\",\"geometricPrecision\"),e}function d(t){t.each(function(t,e){var r=t.calcdata.cells.font,n=t.column.specIndex,i={size:x(r.size,n,e),color:x(r.color,n,e),family:x(r.family,n,e)};t.rowNumber=t.key,t.align=x(t.calcdata.cells.align,n,e),t.cellBorderWidth=x(t.calcdata.cells.line.width,n,e),t.font=i})}function p(t){t.each(function(t){U.font(N.select(this),t.font)})}function m(t){t.attr(\"width\",function(t){return t.column.columnWidth}).attr(\"stroke-width\",function(t){return t.cellBorderWidth}).each(function(t){var e=N.select(this);W.stroke(e,x(t.calcdata.cells.line.color,t.column.specIndex,t.rowNumber)),W.fill(e,x(t.calcdata.cells.fill.color,t.column.specIndex,t.rowNumber))})}function v(t,e,r,n){t.text(function(t){var e=t.column.specIndex,r=t.rowNumber,n=t.value,i=\"string\"==typeof n,a=i&&n.match(/<br>/i),o=!i||a;t.mayHaveMarkup=i&&n.match(/[<&>]/);var s=g(n);t.latex=s;var l,u=s?\"\":x(t.calcdata.cells.prefix,e,r)||\"\",c=s?\"\":x(t.calcdata.cells.suffix,e,r)||\"\",h=s?null:x(t.calcdata.cells.format,e,r)||null,f=u+(h?N.format(h)(t.value):t.value)+c;t.wrappingNeeded=!t.wrapped&&!o&&!s&&(l=y(f)),t.cellHeightMayIncrease=a||s||t.mayHaveMarkup||(void 0===l?y(f):l),t.needsConvertToTspans=t.mayHaveMarkup||t.wrappingNeeded||t.latex;var d;if(t.wrappingNeeded){var p=\" \"===j.wrapSplitCharacter?f.replace(/<a href=/gi,\"<a_href=\"):f,m=p.split(j.wrapSplitCharacter),v=\" \"===j.wrapSplitCharacter?m.map(function(t){return t.replace(/<a_href=/gi,\"<a href=\")}):m;t.fragments=v.map(function(t){return{text:t,width:null}}),t.fragments.push({fragment:j.wrapSpacer,width:null}),d=v.join(j.lineBreaker)+j.lineBreaker+j.wrapSpacer}else delete t.fragments,d=f;return d}).attr(\"alignment-baseline\",function(t){return t.needsConvertToTspans?null:\"hanging\"}).each(function(t){var i=this,a=N.select(i),o=t.wrappingNeeded?L:C;t.needsConvertToTspans?V.convertToTspans(a,n,o(r,i,e,n,t)):N.select(i.parentNode).attr(\"transform\",function(t){return\"translate(\"+I(t)+\" \"+j.cellPad+\")\"}).attr(\"text-anchor\",function(t){return{left:\"start\",center:\"middle\",right:\"end\"}[t.align]})})}function g(t){return\"string\"==typeof t&&t.match(j.latexCheck)}function y(t){return-1!==t.indexOf(j.wrapSplitCharacter)}function b(t,e,r){var n=e.gdColumnsOriginalOrder;e.gdColumns.sort(function(t,e){return r[n.indexOf(t)]-r[n.indexOf(e)]}),e.columnorder=r,t.emit(\"plotly_restyle\")}function x(t,e,r){if(Array.isArray(t)){var n=t[Math.min(e,t.length-1)];return Array.isArray(n)?n[Math.min(r,n.length-1)]:n}return t}function _(t,e,r){t.transition().ease(j.releaseTransitionEase).duration(j.releaseTransitionDuration).attr(\"transform\",\"translate(\"+e.x+\" \"+r+\")\")}function w(t){return\"cells\"===t.type}function M(t){return\"header\"===t.type}function k(t){return t.rowBlocks[0].auxiliaryBlocks.reduce(function(t,e){return t+P(e,1/0)},0)}function A(t,e,r){for(var n=[],i=0,a=0;a<t.length;a++){for(var o=t[a],s=o.rows,l=0,u=0;u<s.length;u++)l+=s[u].rowHeight;o.allRowsHeight=l;var c=i+l,h=e,f=h+r;h<c&&f>i&&n.push(a),i+=l}return n}function T(t,e,r){var n=a(e)[0],i=n.rowBlocks,s=n.calcdata,l=D(i,i.length),u=n.calcdata.groupHeight-k(n),c=s.scrollY=Math.max(0,Math.min(l-u,s.scrollY)),h=A(i,c,u);1===h.length&&(h[0]===i.length-1?h.unshift(h[0]-1):h.push(h[0]+1)),h[0]%2&&h.reverse(),e.each(function(t,e){t.page=h[e],t.scrollY=c}),e.attr(\"transform\",function(t){return\"translate(0 \"+(D(t.rowBlocks,t.page)-t.scrollY)+\")\"}),t&&(E(t,r,e,h,n.prevPages,n,0),E(t,r,e,h,n.prevPages,n,1),o(r,t))}function S(t,e,r,n){return function(i){var a=i.calcdata?i.calcdata:i,o=e.filter(function(t){return a.key===t.key}),s=r||a.scrollbarState.dragMultiplier;a.scrollY=void 0===n?a.scrollY+s*N.event.dy:n;var l=o.selectAll(\".yColumn\").selectAll(\".columnBlock\").filter(w);T(t,l,o)}}function E(t,e,r,n,i,a,o){n[o]!==i[o]&&(clearTimeout(a.currentRepaint[o]),a.currentRepaint[o]=setTimeout(function(){var a=r.filter(function(t,e){return e===o&&n[e]!==i[e]});s(t,e,a,a),i[o]=n[o]}))}function L(t,e,r){return function(){var n=N.select(e.parentNode);n.each(function(t){var e=t.fragments;n.selectAll(\"tspan.line\").each(function(t,r){e[r].width=this.getComputedTextLength()});var r,i,a=e[e.length-1].width,o=e.slice(0,-1),s=[],l=0,u=t.column.columnWidth-2*j.cellPad;for(t.value=\"\";o.length;)r=o.shift(),i=r.width+a,l+i>u&&(t.value+=s.join(j.wrapSpacer)+j.lineBreaker,s=[],l=0),s.push(r.text),l+=i;l&&(t.value+=s.join(j.wrapSpacer)),t.wrapped=!0}),n.selectAll(\"tspan.line\").remove(),v(n.select(\".cellText\"),r,t),N.select(e.parentNode.parentNode).call(z)}}function C(t,e,r,n,i){return function(){if(!i.settledY){var a=N.select(e.parentNode),s=R(i),l=i.key-s.firstRowIndex,u=s.rows[l].rowHeight,c=i.cellHeightMayIncrease?e.parentNode.getBoundingClientRect().height+2*j.cellPad:u,h=Math.max(c,u);h-s.rows[l].rowHeight&&(s.rows[l].rowHeight=h,t.selectAll(\".columnCell\").call(z),T(null,t.filter(w),0),o(r,n,!0)),a.attr(\"transform\",function(){var t=this,e=t.parentNode,r=e.getBoundingClientRect(),n=N.select(t.parentNode).select(\".cellRect\").node().getBoundingClientRect(),a=t.transform.baseVal.consolidate(),o=n.top-r.top+(a?a.matrix.f:j.cellPad);return\"translate(\"+I(i,N.select(t.parentNode).select(\".cellTextHolder\").node().getBoundingClientRect().width)+\" \"+o+\")\"}),i.settledY=!0}}}function I(t,e){switch(t.align){case\"left\":return j.cellPad;case\"right\":return t.column.columnWidth-(e||0)-j.cellPad;case\"center\":return(t.column.columnWidth-(e||0))/2;default:return j.cellPad}}function z(t){t.attr(\"transform\",function(t){var e=t.rowBlocks[0].auxiliaryBlocks.reduce(function(t,e){return t+P(e,1/0)},0);return\"translate(0 \"+(P(R(t),t.key)+e)+\")\"}).selectAll(\".cellRect\").attr(\"height\",function(t){return F(R(t),t.key).rowHeight})}function D(t,e){for(var r=0,n=e-1;n>=0;n--)r+=O(t[n]);return r}function P(t,e){for(var r=0,n=0;n<t.rows.length&&t.rows[n].rowIndex<e;n++)r+=t.rows[n].rowHeight;return r}function O(t){var e=t.allRowsHeight;if(void 0!==e)return e;for(var r=0,n=0;n<t.rows.length;n++)r+=t.rows[n].rowHeight;return t.allRowsHeight=r,r}function R(t){return t.rowBlocks[t.page]}function F(t,e){return t.rows[e-t.firstRowIndex]}var j=t(\"./constants\"),N=t(\"d3\"),B=t(\"../../lib/gup\"),U=t(\"../../components/drawing\"),V=t(\"../../lib/svg_text_utils\"),H=t(\"../../lib\").raiseToTop,q=t(\"../../lib\").cancelTransition,G=t(\"./data_preparation_helper\"),Y=t(\"./data_split_helpers\"),W=t(\"../../components/color\");e.exports=function(t,e){var r=t._fullLayout._paper.selectAll(\".table\").data(e.map(function(e){var r=B.unwrap(e),n=r.trace;return G(t,n)}),B.keyFun);r.exit().remove(),r.enter().append(\"g\").classed(\"table\",!0).attr(\"overflow\",\"visible\").style(\"box-sizing\",\"content-box\").style(\"position\",\"absolute\").style(\"left\",0).style(\"overflow\",\"visible\").style(\"shape-rendering\",\"crispEdges\").style(\"pointer-events\",\"all\"),r.attr(\"width\",function(t){return t.width+t.size.l+t.size.r}).attr(\"height\",function(t){return t.height+t.size.t+t.size.b}).attr(\"transform\",function(t){return\"translate(\"+t.translateX+\",\"+t.translateY+\")\"});var l=r.selectAll(\".tableControlView\").data(B.repeat,B.keyFun);l.enter().append(\"g\").classed(\"tableControlView\",!0).style(\"box-sizing\",\"content-box\").on(\"mousemove\",function(e){l.filter(function(t){return e===t}).call(o,t)}).on(\"mousewheel\",function(e){e.scrollbarState.wheeling||(e.scrollbarState.wheeling=!0,N.event.stopPropagation(),N.event.preventDefault(),S(t,l,null,e.scrollY+N.event.deltaY)(e),e.scrollbarState.wheeling=!1)}).call(o,t,!0),l.attr(\"transform\",function(t){return\"translate(\"+t.size.l+\" \"+t.size.t+\")\"});var u=l.selectAll(\".scrollBackground\").data(B.repeat,B.keyFun);u.enter().append(\"rect\").classed(\"scrollBackground\",!0).attr(\"fill\",\"none\"),u.attr(\"width\",function(t){return t.width}).attr(\"height\",function(t){return t.height}),l.each(function(e){U.setClipUrl(N.select(this),n(t,e))});var c=l.selectAll(\".yColumn\").data(function(t){return t.columns},B.keyFun);c.enter().append(\"g\").classed(\"yColumn\",!0),c.attr(\"transform\",function(t){return\"translate(\"+t.x+\" 0)\"}).call(N.behavior.drag().origin(function(e){return _(N.select(this),e,-j.uplift),H(this),e.calcdata.columnDragInProgress=!0,o(l.filter(function(t){return e.calcdata.key===t.key}),t),e}).on(\"drag\",function(t){var e=N.select(this),r=function(e){return(t===e?N.event.x:e.x)+e.columnWidth/2};t.x=Math.max(-j.overdrag,Math.min(t.calcdata.width+j.overdrag-t.columnWidth,N.event.x)),a(c).filter(function(e){return e.calcdata.key===t.calcdata.key}).sort(function(t,e){return r(t)-r(e)}).forEach(function(e,r){e.xIndex=r,e.x=t===e?e.x:e.xScale(e)}),c.filter(function(e){return t!==e}).transition().ease(j.transitionEase).duration(j.transitionDuration).attr(\"transform\",function(t){return\"translate(\"+t.x+\" 0)\"}),e.call(q).attr(\"transform\",\"translate(\"+t.x+\" -\"+j.uplift+\" )\")}).on(\"dragend\",function(e){var r=N.select(this),n=e.calcdata;e.x=e.xScale(e),e.calcdata.columnDragInProgress=!1,_(r,e,0),b(t,n,n.columns.map(function(t){return t.xIndex}))})),c.each(function(e){U.setClipUrl(N.select(this),i(t,e))});var h=c.selectAll(\".columnBlock\").data(Y.splitToPanels,B.keyFun);h.enter().append(\"g\").classed(\"columnBlock\",!0).attr(\"id\",function(t){return t.key}),h.style(\"cursor\",function(t){return t.dragHandle?\"ew-resize\":t.calcdata.scrollbarState.barWiggleRoom?\"ns-resize\":\"default\"});var f=h.filter(M),d=h.filter(w);d.call(N.behavior.drag().origin(function(t){return N.event.stopPropagation(),t}).on(\"drag\",S(t,l,-1)).on(\"dragend\",function(){})),s(t,l,f,h),s(t,l,d,h);var p=l.selectAll(\".scrollAreaClip\").data(B.repeat,B.keyFun);p.enter().append(\"clipPath\").classed(\"scrollAreaClip\",!0).attr(\"id\",function(e){return n(t,e)});var m=p.selectAll(\".scrollAreaClipRect\").data(B.repeat,B.keyFun);m.enter().append(\"rect\").classed(\"scrollAreaClipRect\",!0).attr(\"x\",-j.overdrag).attr(\"y\",-j.uplift).attr(\"fill\",\"none\"),m.attr(\"width\",function(t){return t.width+2*j.overdrag}).attr(\"height\",function(t){return t.height+j.uplift}),c.selectAll(\".columnBoundary\").data(B.repeat,B.keyFun).enter().append(\"g\").classed(\"columnBoundary\",!0);var v=c.selectAll(\".columnBoundaryClippath\").data(B.repeat,B.keyFun);v.enter().append(\"clipPath\").classed(\"columnBoundaryClippath\",!0),v.attr(\"id\",function(e){return i(t,e)});var g=v.selectAll(\".columnBoundaryRect\").data(B.repeat,B.keyFun);g.enter().append(\"rect\").classed(\"columnBoundaryRect\",!0).attr(\"fill\",\"none\"),g.attr(\"width\",function(t){return t.columnWidth}).attr(\"height\",function(t){return t.calcdata.height+j.uplift}),T(null,d,l)}},{\"../../components/color\":604,\"../../components/drawing\":628,\"../../lib\":728,\"../../lib/gup\":725,\"../../lib/svg_text_utils\":750,\"./constants\":1108,\"./data_preparation_helper\":1109,\"./data_split_helpers\":1110,d3:122}],1114:[function(t,e,r){\"use strict\";function n(t,e,r,n){if(n.enabled){for(var a=n.target,o=u.nestedProperty(e,a),s=o.get(),c=l.getDataConversions(t,e,a,s),h=i(n,c),f=new Array(r.length),d=0;d<r.length;d++)f[d]=h(s,r[d]);o.set(f)}}function i(t,e){var r=t.func,n=e.d2c,i=e.c2d;switch(r){case\"count\":return a;case\"first\":return o;case\"last\":\n", "return s;case\"sum\":return function(t,e){for(var r=0,a=0;a<e.length;a++){var o=n(t[e[a]]);o!==h&&(r+=o)}return i(r)};case\"avg\":return function(t,e){for(var r=0,a=0,o=0;o<e.length;o++){var s=n(t[e[o]]);s!==h&&(r+=s,a++)}return a?i(r/a):h};case\"min\":return function(t,e){for(var r=1/0,a=0;a<e.length;a++){var o=n(t[e[a]]);o!==h&&(r=Math.min(r,o))}return r===1/0?h:i(r)};case\"max\":return function(t,e){for(var r=-1/0,a=0;a<e.length;a++){var o=n(t[e[a]]);o!==h&&(r=Math.max(r,o))}return r===-1/0?h:i(r)};case\"median\":return function(t,e){for(var r=[],a=0;a<e.length;a++){var o=n(t[e[a]]);o!==h&&r.push(o)}if(!r.length)return h;r.sort();var s=(r.length-1)/2;return i((r[Math.floor(s)]+r[Math.ceil(s)])/2)};case\"mode\":return function(t,e){for(var r={},a=0,o=h,s=0;s<e.length;s++){var l=n(t[e[s]]);if(l!==h){var u=r[l]=(r[l]||0)+1;u>a&&(a=u,o=l)}}return a?i(o):h};case\"rms\":return function(t,e){for(var r=0,a=0,o=0;o<e.length;o++){var s=n(t[e[o]]);s!==h&&(r+=s*s,a++)}return a?i(Math.sqrt(r/a)):h};case\"stddev\":return function(e,r){var i,a=0,o=0,s=1,l=h;for(i=0;i<r.length&&l===h;i++)l=n(e[r[i]]);if(l===h)return h;for(;i<r.length;i++){var u=n(e[r[i]]);if(u!==h){var c=u-l;a+=c,o+=c*c,s++}}var f=\"sample\"===t.funcmode?s-1:s;return f?Math.sqrt((o-a*a/s)/f):0}}}function a(t,e){return e.length}function o(t,e){return t[e[0]]}function s(t,e){return t[e[e.length-1]]}var l=t(\"../plots/cartesian/axes\"),u=t(\"../lib\"),c=t(\"../plot_api/plot_schema\"),h=t(\"../constants/numerical\").BADNUM;r.moduleType=\"transform\",r.name=\"aggregate\";var f=r.attributes={enabled:{valType:\"boolean\",dflt:!0,editType:\"calc\"},groups:{valType:\"string\",strict:!0,noBlank:!0,arrayOk:!0,dflt:\"x\",editType:\"calc\"},aggregations:{_isLinkedToArray:\"aggregation\",target:{valType:\"string\",editType:\"calc\"},func:{valType:\"enumerated\",values:[\"count\",\"sum\",\"avg\",\"median\",\"mode\",\"rms\",\"stddev\",\"min\",\"max\",\"first\",\"last\"],dflt:\"first\",editType:\"calc\"},funcmode:{valType:\"enumerated\",values:[\"sample\",\"population\"],dflt:\"sample\",editType:\"calc\"},enabled:{valType:\"boolean\",dflt:!0,editType:\"calc\"},editType:\"calc\"},editType:\"calc\"},d=f.aggregations;r.supplyDefaults=function(t,e){function r(e,r){return u.coerce(t,a,f,e,r)}function n(t,e){return u.coerce(p[i],h,d,t,e)}var i,a={};if(!r(\"enabled\"))return a;var o=c.findArrayAttributes(e),s={};for(i=0;i<o.length;i++)s[o[i]]=1;var l=r(\"groups\");if(!Array.isArray(l)){if(!s[l])return void(a.enabled=!1);s[l]=0}var h,p=t.aggregations||[],m=a.aggregations=new Array(p.length);for(i=0;i<p.length;i++){h={_index:i};var v=n(\"target\"),g=n(\"func\");n(\"enabled\")&&v&&(s[v]||\"count\"===g&&void 0===s[v])?(\"stddev\"===g&&n(\"funcmode\"),s[v]=0,m[i]=h):m[i]={enabled:!1,_index:i}}for(i=0;i<o.length;i++)s[o[i]]&&m.push({target:o[i],func:d.func.dflt,enabled:!0,_index:-1});return a},r.calcTransform=function(t,e,r){if(r.enabled){var i=r.groups,a=u.getTargetArray(e,{target:i});if(a){var o,s,l,c={},h=[];for(o=0;o<a.length;o++)s=a[o],l=c[s],void 0===l?(c[s]=h.length,h.push([o])):h[l].push(o);var f=r.aggregations;for(o=0;o<f.length;o++)n(t,e,h,f[o]);\"string\"==typeof i&&n(t,e,h,{target:i,func:\"first\",enabled:!0})}}}},{\"../constants/numerical\":707,\"../lib\":728,\"../plot_api/plot_schema\":761,\"../plots/cartesian/axes\":772}],1115:[function(t,e,r){\"use strict\";function n(t,e,r){function n(t){return-1!==t.indexOf(a)}var i,a=t.operation,o=t.value,c=Array.isArray(o),h=function(r){return e(r,0,t.valuecalendar)},f=function(t){return e(t,0,r)};switch(n(s)?i=h(c?o[0]:o):n(l)?i=c?[h(o[0]),h(o[1])]:[h(o),h(o)]:n(u)&&(i=c?o.map(h):[h(o)]),a){case\"=\":return function(t){return f(t)===i};case\"!=\":return function(t){return f(t)!==i};case\"<\":return function(t){return f(t)<i};case\"<=\":return function(t){return f(t)<=i};case\">\":return function(t){return f(t)>i};case\">=\":return function(t){return f(t)>=i};case\"[]\":return function(t){var e=f(t);return e>=i[0]&&e<=i[1]};case\"()\":return function(t){var e=f(t);return e>i[0]&&e<i[1]};case\"[)\":return function(t){var e=f(t);return e>=i[0]&&e<i[1]};case\"(]\":return function(t){var e=f(t);return e>i[0]&&e<=i[1]};case\"][\":return function(t){var e=f(t);return e<=i[0]||e>=i[1]};case\")(\":return function(t){var e=f(t);return e<i[0]||e>i[1]};case\"](\":return function(t){var e=f(t);return e<=i[0]||e>i[1]};case\")[\":return function(t){var e=f(t);return e<i[0]||e>=i[1]};case\"{}\":return function(t){return-1!==i.indexOf(f(t))};case\"}{\":return function(t){return-1===i.indexOf(f(t))}}}var i=t(\"../lib\"),a=t(\"../registry\"),o=t(\"../plots/cartesian/axes\"),s=[\"=\",\"!=\",\"<\",\">=\",\">\",\"<=\"],l=[\"[]\",\"()\",\"[)\",\"(]\",\"][\",\")(\",\"](\",\")[\"],u=[\"{}\",\"}{\"];r.moduleType=\"transform\",r.name=\"filter\",r.attributes={enabled:{valType:\"boolean\",dflt:!0,editType:\"calc\"},target:{valType:\"string\",strict:!0,noBlank:!0,arrayOk:!0,dflt:\"x\",editType:\"calc\"},operation:{valType:\"enumerated\",values:[].concat(s).concat(l).concat(u),dflt:\"=\",editType:\"calc\"},value:{valType:\"any\",dflt:0,editType:\"calc\"},preservegaps:{valType:\"boolean\",dflt:!1,editType:\"calc\"},editType:\"calc\"},r.supplyDefaults=function(t){function e(e,a){return i.coerce(t,n,r.attributes,e,a)}var n={};if(e(\"enabled\")){e(\"preservegaps\"),e(\"operation\"),e(\"value\"),e(\"target\");var o=a.getComponentMethod(\"calendars\",\"handleDefaults\");o(t,n,\"valuecalendar\",null),o(t,n,\"targetcalendar\",null)}return n},r.calcTransform=function(t,e,r){function a(t,r){for(var n=0;n<h.length;n++){t(i.nestedProperty(e,h[n]),r)}}if(r.enabled){var s=i.getTargetArray(e,r);if(s){var l=r.target,u=s.length,c=r.targetcalendar,h=e._arrayAttrs;if(\"string\"==typeof l){var f=i.nestedProperty(e,l+\"calendar\").get();f&&(c=f)}var d,p,m=o.getDataToCoordFunc(t,e,l,s),v=n(r,m,c),g={};r.preservegaps?(d=function(t){g[t.astr]=i.extendDeep([],t.get()),t.set(new Array(u))},p=function(t,e){var r=g[t.astr][e];t.get()[e]=r}):(d=function(t){g[t.astr]=i.extendDeep([],t.get()),t.set([])},p=function(t,e){var r=g[t.astr][e];t.get().push(r)}),a(d);for(var y=0;y<u;y++){v(s[y])&&a(p,y)}}}}},{\"../lib\":728,\"../plots/cartesian/axes\":772,\"../registry\":846}],1116:[function(t,e,r){\"use strict\";function n(t,e){var r,n,s,l,u,c,h,f,d,p,m=e.transform,v=t.transforms[e.transformIndex].groups;if(!Array.isArray(v)||0===v.length)return[t];var g=i.filterUnique(v),y=new Array(g.length),b=v.length,x=a.findArrayAttributes(t),_=m.styles||[],w={};for(r=0;r<_.length;r++)w[_[r].target]=_[r].value;m.styles&&(p=i.keyedContainer(m,\"styles\",\"target\",\"value.name\"));var M={};for(r=0;r<g.length;r++){c=g[r],M[c]=r,h=y[r]=i.extendDeepNoArrays({},t),h._group=c;var k=null;for(p&&(k=p.get(c)),h.name=k||i.templateString(m.nameformat,{trace:t.name,group:c}),f=h.transforms,h.transforms=[],n=0;n<f.length;n++)h.transforms[n]=i.extendDeepNoArrays({},f[n]);for(n=0;n<x.length;n++)i.nestedProperty(h,x[n]).set([])}for(s=0;s<x.length;s++){for(l=x[s],n=0,d=[];n<g.length;n++)d[n]=i.nestedProperty(y[n],l).get();for(u=i.nestedProperty(t,l).get(),n=0;n<b;n++)d[M[v[n]]].push(u[n])}for(r=0;r<g.length;r++)c=g[r],h=y[r],o.clearExpandedTraceDefaultColors(h),h=i.extendDeepNoArrays(h,w[c]||{});return y}var i=t(\"../lib\"),a=t(\"../plot_api/plot_schema\"),o=t(\"../plots/plots\");r.moduleType=\"transform\",r.name=\"groupby\",r.attributes={enabled:{valType:\"boolean\",dflt:!0,editType:\"calc\"},groups:{valType:\"data_array\",dflt:[],editType:\"calc\"},nameformat:{valType:\"string\",editType:\"calc\"},styles:{_isLinkedToArray:\"style\",target:{valType:\"string\",editType:\"calc\"},value:{valType:\"any\",dflt:{},editType:\"calc\"},editType:\"calc\"},editType:\"calc\"},r.supplyDefaults=function(t,e,n){function a(e,n){return i.coerce(t,s,r.attributes,e,n)}var o,s={};if(!a(\"enabled\"))return s;a(\"groups\"),a(\"nameformat\",n._dataLength>1?\"%{group} (%{trace})\":\"%{group}\");var l=t.styles,u=s.styles=[];if(l)for(o=0;o<l.length;o++)u[o]={},i.coerce(l[o],u[o],r.attributes.styles,\"target\"),i.coerce(l[o],u[o],r.attributes.styles,\"value\");return s},r.transform=function(t,e){var r,i,a,o=[];for(i=0;i<t.length;i++)for(r=n(t[i],e),a=0;a<r.length;a++)o.push(r[a]);return o}},{\"../lib\":728,\"../plot_api/plot_schema\":761,\"../plots/plots\":831}],1117:[function(t,e,r){\"use strict\";function n(t,e,r){for(var n=e.length,a=new Array(n),o=e.slice().sort(i(t,r)),s=0;s<n;s++)for(var l=e[s],u=0;u<n;u++){var c=o[u];if(l===c){a[u]=s,o[u]=null;break}}return a}function i(t,e){switch(t.order){case\"ascending\":return function(t,r){return e(t)-e(r)};case\"descending\":return function(t,r){return e(r)-e(t)}}}var a=t(\"../lib\"),o=t(\"../plots/cartesian/axes\");r.moduleType=\"transform\",r.name=\"sort\",r.attributes={enabled:{valType:\"boolean\",dflt:!0,editType:\"calc\"},target:{valType:\"string\",strict:!0,noBlank:!0,arrayOk:!0,dflt:\"x\",editType:\"calc\"},order:{valType:\"enumerated\",values:[\"ascending\",\"descending\"],dflt:\"ascending\",editType:\"calc\"},editType:\"calc\"},r.supplyDefaults=function(t){function e(e,i){return a.coerce(t,n,r.attributes,e,i)}var n={};return e(\"enabled\")&&(e(\"target\"),e(\"order\")),n},r.calcTransform=function(t,e,r){if(r.enabled){var i=a.getTargetArray(e,r);if(i)for(var s=r.target,l=i.length,u=e._arrayAttrs,c=o.getDataToCoordFunc(t,e,s,i),h=n(r,i,c),f=0;f<u.length;f++){for(var d=a.nestedProperty(e,u[f]),p=d.get(),m=new Array(l),v=0;v<l;v++)m[v]=p[h[v]];d.set(m)}}}},{\"../lib\":728,\"../plots/cartesian/axes\":772}]},{},[20])(20)});\n", "});require(['plotly'], function(Plotly) {window.Plotly = Plotly;});}</script>" ], "text/vnd.plotly.v1+html": [ "<script type='text/javascript'>if(!window.Plotly){define('plotly', function(require, exports, module) {/**\n", "* plotly.js v1.31.0\n", "* Copyright 2012-2017, Plotly, Inc.\n", "* All rights reserved.\n", "* Licensed under the MIT license\n", "*/\n", "!function(t){if(\"object\"==typeof exports&&\"undefined\"!=typeof module)module.exports=t();else if(\"function\"==typeof define&&define.amd)define([],t);else{var e;e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:this,e.Plotly=t()}}(function(){var t;return function t(e,r,n){function i(o,s){if(!r[o]){if(!e[o]){var l=\"function\"==typeof require&&require;if(!s&&l)return l(o,!0);if(a)return a(o,!0);var u=new Error(\"Cannot find module '\"+o+\"'\");throw u.code=\"MODULE_NOT_FOUND\",u}var c=r[o]={exports:{}};e[o][0].call(c.exports,function(t){var r=e[o][1][t];return i(r||t)},c,c.exports,t,e,r,n)}return r[o].exports}for(var a=\"function\"==typeof require&&require,o=0;o<n.length;o++)i(n[o]);return i}({1:[function(t,e,r){\"use strict\";var n=t(\"../src/lib\"),i={\"X,X div\":\"font-family:'Open Sans', verdana, arial, sans-serif;margin:0;padding:0;\",\"X input,X button\":\"font-family:'Open Sans', verdana, arial, sans-serif;\",\"X input:focus,X button:focus\":\"outline:none;\",\"X a\":\"text-decoration:none;\",\"X a:hover\":\"text-decoration:none;\",\"X .crisp\":\"shape-rendering:crispEdges;\",\"X .user-select-none\":\"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;\",\"X svg\":\"overflow:hidden;\",\"X svg a\":\"fill:#447adb;\",\"X svg a:hover\":\"fill:#3c6dc5;\",\"X .main-svg\":\"position:absolute;top:0;left:0;pointer-events:none;\",\"X .main-svg .draglayer\":\"pointer-events:all;\",\"X .cursor-default\":\"cursor:default;\",\"X .cursor-pointer\":\"cursor:pointer;\",\"X .cursor-crosshair\":\"cursor:crosshair;\",\"X .cursor-move\":\"cursor:move;\",\"X .cursor-col-resize\":\"cursor:col-resize;\",\"X .cursor-row-resize\":\"cursor:row-resize;\",\"X .cursor-ns-resize\":\"cursor:ns-resize;\",\"X .cursor-ew-resize\":\"cursor:ew-resize;\",\"X .cursor-sw-resize\":\"cursor:sw-resize;\",\"X .cursor-s-resize\":\"cursor:s-resize;\",\"X .cursor-se-resize\":\"cursor:se-resize;\",\"X .cursor-w-resize\":\"cursor:w-resize;\",\"X .cursor-e-resize\":\"cursor:e-resize;\",\"X .cursor-nw-resize\":\"cursor:nw-resize;\",\"X .cursor-n-resize\":\"cursor:n-resize;\",\"X .cursor-ne-resize\":\"cursor:ne-resize;\",\"X .modebar\":\"position:absolute;top:2px;right:2px;z-index:1001;background:rgba(255,255,255,0.7);\",\"X .modebar--hover\":\"opacity:0;-webkit-transition:opacity 0.3s ease 0s;-moz-transition:opacity 0.3s ease 0s;-ms-transition:opacity 0.3s ease 0s;-o-transition:opacity 0.3s ease 0s;transition:opacity 0.3s ease 0s;\",\"X:hover .modebar--hover\":\"opacity:1;\",\"X .modebar-group\":\"float:left;display:inline-block;box-sizing:border-box;margin-left:8px;position:relative;vertical-align:middle;white-space:nowrap;\",\"X .modebar-group:first-child\":\"margin-left:0px;\",\"X .modebar-btn\":\"position:relative;font-size:16px;padding:3px 4px;cursor:pointer;line-height:normal;box-sizing:border-box;\",\"X .modebar-btn svg\":\"position:relative;top:2px;\",\"X .modebar-btn path\":\"fill:rgba(0,31,95,0.3);\",\"X .modebar-btn.active path,X .modebar-btn:hover path\":\"fill:rgba(0,22,72,0.5);\",\"X .modebar-btn.modebar-btn--logo\":\"padding:3px 1px;\",\"X .modebar-btn.modebar-btn--logo path\":\"fill:#447adb !important;\",\"X [data-title]:before,X [data-title]:after\":\"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;\",\"X [data-title]:hover:before,X [data-title]:hover:after\":\"display:block;opacity:1;\",\"X [data-title]:before\":\"content:'';position:absolute;background:transparent;border:6px solid transparent;z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;\",\"X [data-title]:after\":\"content:attr(data-title);background:#69738a;color:white;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;\",\"X .select-outline\":\"fill:none;stroke-width:1;shape-rendering:crispEdges;\",\"X .select-outline-1\":\"stroke:white;\",\"X .select-outline-2\":\"stroke:black;stroke-dasharray:2px 2px;\",Y:\"font-family:'Open Sans';position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;\",\"Y p\":\"margin:0;\",\"Y .notifier-note\":\"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,0.9);color:#fff;padding:10px;\",\"Y .notifier-close\":\"color:#fff;opacity:0.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;\",\"Y .notifier-close:hover\":\"color:#444;text-decoration:none;cursor:pointer;\"};for(var a in i){var o=a.replace(/^,/,\" ,\").replace(/X/g,\".js-plotly-plot .plotly\").replace(/Y/g,\".plotly-notifier\");n.addStyleRule(o,i[a])}},{\"../src/lib\":728}],2:[function(t,e,r){\"use strict\";e.exports={undo:{width:857.1,path:\"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z\",ascent:850,descent:-150},home:{width:928.6,path:\"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z\",ascent:850,descent:-150},\"camera-retro\":{width:1e3,path:\"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z\",ascent:850,descent:-150},zoombox:{width:1e3,path:\"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z\",ascent:850,descent:-150},pan:{width:1e3,path:\"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z\",ascent:850,descent:-150},zoom_plus:{width:1e3,path:\"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z\",ascent:850,descent:-150},zoom_minus:{width:1e3,path:\"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z\",ascent:850,descent:-150},autoscale:{width:1e3,path:\"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z\",ascent:850,descent:-150},tooltip_basic:{width:1500,path:\"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z\",ascent:850,descent:-150},tooltip_compare:{width:1125,path:\"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z\",ascent:850,descent:-150},plotlylogo:{width:1542,path:\"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z\",ascent:850,descent:-150},\"z-axis\":{width:1e3,path:\"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z\",ascent:850,descent:-150},\"3d_rotate\":{width:1e3,path:\"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z\",ascent:850,descent:-150},camera:{width:1e3,path:\"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z\",ascent:850,descent:-150},movie:{width:1e3,path:\"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z\",ascent:850,descent:-150},question:{width:857.1,path:\"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z\",ascent:850,descent:-150},disk:{width:857.1,path:\"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z\",ascent:850,descent:-150},lasso:{width:1031,path:\"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z\",ascent:850,descent:-150},selectbox:{width:1e3,path:\"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z\",ascent:850,descent:-150},spikeline:{width:1e3,path:\"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z\",ascent:850,descent:-150}}},{}],3:[function(t,e,r){\"use strict\";e.exports=t(\"../src/transforms/aggregate\")},{\"../src/transforms/aggregate\":1114}],4:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/bar\")},{\"../src/traces/bar\":860}],5:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/box\")},{\"../src/traces/box\":873}],6:[function(t,e,r){\"use strict\";e.exports=t(\"../src/components/calendars\")},{\"../src/components/calendars\":602}],7:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/candlestick\")},{\"../src/traces/candlestick\":881}],8:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/carpet\")},{\"../src/traces/carpet\":902}],9:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/choropleth\")},{\"../src/traces/choropleth\":917}],10:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/contour\")},{\"../src/traces/contour\":929}],11:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/contourcarpet\")},{\"../src/traces/contourcarpet\":944}],12:[function(t,e,r){\"use strict\";e.exports=t(\"../src/core\")},{\"../src/core\":710}],13:[function(t,e,r){\"use strict\";e.exports=t(\"../src/transforms/filter\")},{\"../src/transforms/filter\":1115}],14:[function(t,e,r){\"use strict\";e.exports=t(\"../src/transforms/groupby\")},{\"../src/transforms/groupby\":1116}],15:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/heatmap\")},{\"../src/traces/heatmap\":957}],16:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/heatmapgl\")},{\"../src/traces/heatmapgl\":966}],17:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/histogram\")},{\"../src/traces/histogram\":974}],18:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/histogram2d\")},{\"../src/traces/histogram2d\":979}],19:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/histogram2dcontour\")},{\"../src/traces/histogram2dcontour\":983}],20:[function(t,e,r){\"use strict\";var n=t(\"./core\");n.register([t(\"./bar\"),t(\"./box\"),t(\"./heatmap\"),t(\"./histogram\"),t(\"./histogram2d\"),t(\"./histogram2dcontour\"),t(\"./pie\"),t(\"./contour\"),t(\"./scatterternary\"),t(\"./sankey\"),t(\"./scatter3d\"),t(\"./surface\"),t(\"./mesh3d\"),t(\"./scattergeo\"),t(\"./choropleth\"),t(\"./scattergl\"),t(\"./pointcloud\"),t(\"./heatmapgl\"),t(\"./parcoords\"),t(\"./table\"),t(\"./scattermapbox\"),t(\"./carpet\"),t(\"./scattercarpet\"),t(\"./contourcarpet\"),t(\"./ohlc\"),t(\"./candlestick\")]),n.register([t(\"./aggregate\"),t(\"./filter\"),t(\"./groupby\"),t(\"./sort\")]),n.register([t(\"./calendars\")]),e.exports=n},{\"./aggregate\":3,\"./bar\":4,\"./box\":5,\"./calendars\":6,\"./candlestick\":7,\"./carpet\":8,\"./choropleth\":9,\"./contour\":10,\"./contourcarpet\":11,\"./core\":12,\"./filter\":13,\"./groupby\":14,\"./heatmap\":15,\"./heatmapgl\":16,\"./histogram\":17,\"./histogram2d\":18,\"./histogram2dcontour\":19,\"./mesh3d\":21,\"./ohlc\":22,\"./parcoords\":23,\"./pie\":24,\"./pointcloud\":25,\"./sankey\":26,\"./scatter3d\":27,\"./scattercarpet\":28,\"./scattergeo\":29,\"./scattergl\":30,\"./scattermapbox\":31,\"./scatterternary\":32,\"./sort\":33,\"./surface\":34,\"./table\":35}],21:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/mesh3d\")},{\"../src/traces/mesh3d\":989}],22:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/ohlc\")},{\"../src/traces/ohlc\":994}],23:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/parcoords\")},{\"../src/traces/parcoords\":1003}],24:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/pie\")},{\"../src/traces/pie\":1012}],25:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/pointcloud\")},{\"../src/traces/pointcloud\":1021}],26:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/sankey\")},{\"../src/traces/sankey\":1027}],27:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/scatter3d\")},{\"../src/traces/scatter3d\":1060}],28:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/scattercarpet\")},{\"../src/traces/scattercarpet\":1065}],29:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/scattergeo\")},{\"../src/traces/scattergeo\":1074}],30:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/scattergl\")},{\"../src/traces/scattergl\":1081}],31:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/scattermapbox\")},{\"../src/traces/scattermapbox\":1088}],32:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/scatterternary\")},{\"../src/traces/scatterternary\":1095}],33:[function(t,e,r){\"use strict\";e.exports=t(\"../src/transforms/sort\")},{\"../src/transforms/sort\":1117}],34:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/surface\")},{\"../src/traces/surface\":1104}],35:[function(t,e,r){\"use strict\";e.exports=t(\"../src/traces/table\")},{\"../src/traces/table\":1112}],36:[function(t,e,r){\"use strict\";function n(t,e){function r(e,r,n,a){var o=1/t.clientHeight,s=o*(r-m),l=o*(n-v),c=p.flipX?1:-1,f=p.flipY?1:-1,d=Math.PI*p.rotateSpeed,y=i();if(1&e)a.shift?u.rotate(y,0,0,-s*d):u.rotate(y,c*d*s,-f*d*l,0);else if(2&e)u.pan(y,-p.translateSpeed*s*h,p.translateSpeed*l*h,0);else if(4&e){var b=p.zoomSpeed*l/window.innerHeight*(y-u.lastT())*50;u.pan(y,0,0,h*(Math.exp(b)-1))}m=r,v=n,g=a}t=t||document.body,e=e||{};var n=[.01,1/0];\"distanceLimits\"in e&&(n[0]=e.distanceLimits[0],n[1]=e.distanceLimits[1]),\"zoomMin\"in e&&(n[0]=e.zoomMin),\"zoomMax\"in e&&(n[1]=e.zoomMax);var u=a({center:e.center||[0,0,0],up:e.up||[0,1,0],eye:e.eye||[0,0,10],mode:e.mode||\"orbit\",distanceLimits:n}),c=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],h=0,f=t.clientWidth,d=t.clientHeight,p={view:u,element:t,delay:e.delay||16,rotateSpeed:e.rotateSpeed||1,zoomSpeed:e.zoomSpeed||1,translateSpeed:e.translateSpeed||1,flipX:!!e.flipX,flipY:!!e.flipY,modes:u.modes,tick:function(){var e=i(),r=this.delay;u.idle(e-r),u.flush(e-(100+2*r));var n=e-2*r;u.recalcMatrix(n);for(var a=!0,o=u.computedMatrix,s=0;s<16;++s)a=a&&c[s]===o[s],c[s]=o[s];var l=t.clientWidth===f&&t.clientHeight===d;return f=t.clientWidth,d=t.clientHeight,a?!l:(h=Math.exp(u.computedRadius[0]),!0)},lookAt:function(t,e,r){u.lookAt(u.lastT(),t,e,r)},rotate:function(t,e,r){u.rotate(u.lastT(),t,e,r)},pan:function(t,e,r){u.pan(u.lastT(),t,e,r)},translate:function(t,e,r){u.translate(u.lastT(),t,e,r)}};Object.defineProperties(p,{matrix:{get:function(){return u.computedMatrix},set:function(t){return u.setMatrix(u.lastT(),t),u.computedMatrix},enumerable:!0},mode:{get:function(){return u.getMode()},set:function(t){return u.setMode(t),u.getMode()},enumerable:!0},center:{get:function(){return u.computedCenter},set:function(t){return u.lookAt(u.lastT(),t),u.computedCenter},enumerable:!0},eye:{get:function(){return u.computedEye},set:function(t){return u.lookAt(u.lastT(),null,t),u.computedEye},enumerable:!0},up:{get:function(){return u.computedUp},set:function(t){return u.lookAt(u.lastT(),null,null,t),u.computedUp},enumerable:!0},distance:{get:function(){return h},set:function(t){return u.setDistance(u.lastT(),t),t},enumerable:!0},distanceLimits:{get:function(){return u.getDistanceLimits(n)},set:function(t){return u.setDistanceLimits(t),t},enumerable:!0}}),t.addEventListener(\"contextmenu\",function(t){return t.preventDefault(),!1});var m=0,v=0,g={shift:!1,control:!1,alt:!1,meta:!1};return o(t,r),t.addEventListener(\"touchstart\",function(e){var n=l(e.changedTouches[0],t);r(0,n[0],n[1],g),r(1,n[0],n[1],g)}),t.addEventListener(\"touchmove\",function(e){var n=l(e.changedTouches[0],t);r(1,n[0],n[1],g)}),t.addEventListener(\"touchend\",function(e){l(e.changedTouches[0],t);r(0,m,v,g)}),s(t,function(t,e,r){var n=p.flipX?1:-1,a=p.flipY?1:-1,o=i();if(Math.abs(t)>Math.abs(e))u.rotate(o,0,0,-t*n*Math.PI*p.rotateSpeed/window.innerWidth);else{var s=p.zoomSpeed*a*e/window.innerHeight*(o-u.lastT())/100;u.pan(o,0,0,h*(Math.exp(s)-1))}},!0),p}e.exports=n;var i=t(\"right-now\"),a=t(\"3d-view\"),o=t(\"mouse-change\"),s=t(\"mouse-wheel\"),l=t(\"mouse-event-offset\")},{\"3d-view\":37,\"mouse-change\":452,\"mouse-event-offset\":453,\"mouse-wheel\":455,\"right-now\":502}],37:[function(t,e,r){\"use strict\";function n(t,e){this._controllerNames=Object.keys(t),this._controllerList=this._controllerNames.map(function(e){return t[e]}),this._mode=e,this._active=t[e],this._active||(this._mode=\"turntable\",this._active=t.turntable),this.modes=this._controllerNames,this.computedMatrix=this._active.computedMatrix,this.computedEye=this._active.computedEye,this.computedUp=this._active.computedUp,this.computedCenter=this._active.computedCenter,this.computedRadius=this._active.computedRadius}function i(t){t=t||{};var e=t.eye||[0,0,1],r=t.center||[0,0,0],i=t.up||[0,1,0],l=t.distanceLimits||[0,1/0],u=t.mode||\"turntable\",c=a(),h=o(),f=s();return c.setDistanceLimits(l[0],l[1]),c.lookAt(0,e,r,i),h.setDistanceLimits(l[0],l[1]),h.lookAt(0,e,r,i),f.setDistanceLimits(l[0],l[1]),f.lookAt(0,e,r,i),new n({turntable:c,orbit:h,matrix:f},u)}e.exports=i;var a=t(\"turntable-camera-controller\"),o=t(\"orbit-camera-controller\"),s=t(\"matrix-camera-controller\"),l=n.prototype;[[\"flush\",1],[\"idle\",1],[\"lookAt\",4],[\"rotate\",4],[\"pan\",4],[\"translate\",4],[\"setMatrix\",2],[\"setDistanceLimits\",2],[\"setDistance\",2]].forEach(function(t){for(var e=t[0],r=[],n=0;n<t[1];++n)r.push(\"a\"+n);var i=\"var cc=this._controllerList;for(var i=0;i<cc.length;++i){cc[i].\"+t[0]+\"(\"+r.join()+\")}\";l[e]=Function.apply(null,r.concat(i))}),l.recalcMatrix=function(t){this._active.recalcMatrix(t)},l.getDistance=function(t){return this._active.getDistance(t)},l.getDistanceLimits=function(t){return this._active.getDistanceLimits(t)},l.lastT=function(){return this._active.lastT()},l.setMode=function(t){if(t!==this._mode){var e=this._controllerNames.indexOf(t);if(!(e<0)){var r=this._active,n=this._controllerList[e],i=Math.max(r.lastT(),n.lastT());r.recalcMatrix(i),n.setMatrix(i,r.computedMatrix),this._active=n,this._mode=t,this.computedMatrix=this._active.computedMatrix,this.computedEye=this._active.computedEye,this.computedUp=this._active.computedUp,this.computedCenter=this._active.computedCenter,this.computedRadius=this._active.computedRadius}}},l.getMode=function(){return this._mode}},{\"matrix-camera-controller\":450,\"orbit-camera-controller\":473,\"turntable-camera-controller\":538}],38:[function(e,r,n){!function(i,a){\"object\"==typeof n&&void 0!==r?a(n,e(\"d3-array\"),e(\"d3-collection\"),e(\"d3-interpolate\")):\"function\"==typeof t&&t.amd?t([\"exports\",\"d3-array\",\"d3-collection\",\"d3-interpolate\"],a):a(i.d3=i.d3||{},i.d3,i.d3,i.d3)}(this,function(t,e,r,n){\"use strict\";var i=function(){function t(){v.forEach(function(t){t.sourceLinks=[],t.targetLinks=[]}),g.forEach(function(t,e){var r=t.source,n=t.target;\"number\"==typeof r&&(r=t.source=v[t.source]),\"number\"==typeof n&&(n=t.target=v[t.target]),t.originalIndex=e,r.sourceLinks.push(t),n.targetLinks.push(t)})}function i(){v.forEach(function(t){t.value=Math.max(e.sum(t.sourceLinks,h),e.sum(t.targetLinks,h))})}function a(){for(var t,e=v,r=0;e.length;)t=[],e.forEach(function(e){e.x=r,e.dx=d,e.sourceLinks.forEach(function(e){t.indexOf(e.target)<0&&t.push(e.target)})}),e=t,++r;o(r),s((m[0]-d)/(r-1))}function o(t){v.forEach(function(e){e.sourceLinks.length||(e.x=t-1)})}function s(t){v.forEach(function(e){e.x*=t})}function l(t){function n(){a.forEach(function(t){var e,r,n,a=0,o=t.length;for(t.sort(i),n=0;n<o;++n)e=t[n],r=a-e.y,r>0&&(e.y+=r),a=e.y+e.dy+p;if((r=a-p-m[1])>0)for(a=e.y-=r,n=o-2;n>=0;--n)e=t[n],r=e.y+e.dy+p-a,r>0&&(e.y-=r),a=e.y})}function i(t,e){return t.y-e.y}var a=r.nest().key(function(t){return t.x}).sortKeys(e.ascending).entries(v).map(function(t){return t.values});!function(){var t=e.min(a,function(t){return(m[1]-(t.length-1)*p)/e.sum(t,h)});a.forEach(function(e){e.forEach(function(e,r){e.y=r,e.dy=e.value*t})}),g.forEach(function(e){e.dy=e.value*t})}(),n();for(var o=1;t>0;--t)!function(t){function r(t){return c(t.target)*t.value}a.slice().reverse().forEach(function(n){n.forEach(function(n){if(n.sourceLinks.length){var i=e.sum(n.sourceLinks,r)/e.sum(n.sourceLinks,h);n.y+=(i-c(n))*t}})})}(o*=.99),n(),function(t){function r(t){return c(t.source)*t.value}a.forEach(function(n){n.forEach(function(n){if(n.targetLinks.length){var i=e.sum(n.targetLinks,r)/e.sum(n.targetLinks,h);n.y+=(i-c(n))*t}})})}(o),n()}function u(){function t(t,e){return t.source.y-e.source.y||t.originalIndex-e.originalIndex}function e(t,e){return t.target.y-e.target.y||t.originalIndex-e.originalIndex}v.forEach(function(r){r.sourceLinks.sort(e),r.targetLinks.sort(t)}),v.forEach(function(t){var e=0,r=0;t.sourceLinks.forEach(function(t){t.sy=e,e+=t.dy}),t.targetLinks.forEach(function(t){t.ty=r,r+=t.dy})})}function c(t){return t.y+t.dy/2}function h(t){return t.value}var f={},d=24,p=8,m=[1,1],v=[],g=[];return f.nodeWidth=function(t){return arguments.length?(d=+t,f):d},f.nodePadding=function(t){return arguments.length?(p=+t,f):p},f.nodes=function(t){return arguments.length?(v=t,f):v},f.links=function(t){return arguments.length?(g=t,f):g},f.size=function(t){return arguments.length?(m=t,f):m},f.layout=function(e){return t(),i(),a(),l(e),u(),f},f.relayout=function(){return u(),f},f.link=function(){function t(t){var r=t.source.x+t.source.dx,i=t.target.x,a=n.interpolateNumber(r,i),o=a(e),s=a(1-e),l=t.source.y+t.sy,u=l+t.dy,c=t.target.y+t.ty,h=c+t.dy;return\"M\"+r+\",\"+l+\"C\"+o+\",\"+l+\" \"+s+\",\"+c+\" \"+i+\",\"+c+\"L\"+i+\",\"+h+\"C\"+s+\",\"+h+\" \"+o+\",\"+u+\" \"+r+\",\"+u+\"Z\"}var e=.5;return t.curvature=function(r){return arguments.length?(e=+r,t):e},t},f};t.sankey=i,Object.defineProperty(t,\"__esModule\",{value:!0})})},{\"d3-array\":114,\"d3-collection\":115,\"d3-interpolate\":119}],39:[function(t,e,r){\"use strict\";function n(t){var e=s.get(t),r=e&&(e._triangleBuffer.handle||e._triangleBuffer.buffer);if(!r||!t.isBuffer(r)){var n=a(t,new Float32Array([-1,-1,-1,4,4,-1]));e=o(t,[{buffer:n,type:t.FLOAT,size:2}]),e._triangleBuffer=n,s.set(t,e)}e.bind(),t.drawArrays(t.TRIANGLES,0,3),e.unbind()}var i=\"undefined\"==typeof WeakMap?t(\"weak-map\"):WeakMap,a=t(\"gl-buffer\"),o=t(\"gl-vao\"),s=new i;e.exports=n},{\"gl-buffer\":156,\"gl-vao\":271,\"weak-map\":559}],40:[function(t,e,r){function n(t,e,r){e=\"number\"==typeof e?e:1,r=r||\": \";var n=t.split(/\\r?\\n/),a=String(n.length+e-1).length;return n.map(function(t,n){var o=n+e,s=String(o).length;return i(o,a-s)+r+t}).join(\"\\n\")}var i=t(\"pad-left\");e.exports=n},{\"pad-left\":474}],41:[function(t,e,r){\"use strict\";function n(t,e){for(var r=new Array(e+1),n=0;n<t.length;++n)r[n]=t[n];for(var n=0;n<=t.length;++n){for(var i=t.length;i<=e;++i){for(var o=new Array(e),s=0;s<e;++s)o[s]=Math.pow(i+1-n,s);r[i]=o}if(a.apply(void 0,r))return!0}return!1}function i(t){var e=t.length;if(0===e)return[];if(1===e)return[0];for(var r=t[0].length,i=[t[0]],a=[0],o=1;o<e;++o)if(i.push(t[o]),n(i,r)){if(a.push(o),a.length===r+1)return a}else i.pop();return a}e.exports=i;var a=t(\"robust-orientation\")},{\"robust-orientation\":508}],42:[function(t,e,r){\"use strict\";function n(t,e){return i(e).filter(function(r){for(var n=new Array(r.length),i=0;i<r.length;++i)n[i]=e[r[i]];return a(n)*t<1})}e.exports=n;var i=t(\"delaunay-triangulate\"),a=t(\"circumradius\")},{circumradius:87,\"delaunay-triangulate\":123}],43:[function(t,e,r){function n(t,e){return a(i(t,e))}e.exports=n;var i=t(\"alpha-complex\"),a=t(\"simplicial-complex-boundary\")},{\"alpha-complex\":42,\"simplicial-complex-boundary\":516}],44:[function(t,e,r){\"use strict\";function n(t,e){if(!t||null==t.length)throw Error(\"Argument should be an array\");e=null==e?1:Math.floor(e);for(var r=Array(2*e),n=0;n<e;n++){for(var i=-1/0,a=1/0,o=n,s=t.length;o<s;o+=e)t[o]>i&&(i=t[o]),t[o]<a&&(a=t[o]);r[n]=a,r[e+n]=i}return r}e.exports=n},{}],45:[function(t,e,r){\"use strict\";function n(t,e,r){if(!t||null==t.length)throw Error(\"Argument should be an array\");null==e&&(e=1),null==r&&(r=i(t,e));for(var n=0;n<e;n++){var a=r[e+n],o=r[n],s=n,l=t.length;if(a===1/0&&o===-1/0)for(s=n;s<l;s+=e)t[s]=t[s]===a?1:t[s]===o?0:.5;else if(a===1/0)for(s=n;s<l;s+=e)t[s]=t[s]===a?1:0;else if(o===-1/0)for(s=n;s<l;s+=e)t[s]=t[s]===o?0:1;else{var u=a-o;for(s=n;s<l;s+=e)t[s]=(t[s]-o)/u}}return t}var i=t(\"array-bounds\");e.exports=n},{\"array-bounds\":44}],46:[function(t,e,r){\"use strict\";e.exports=function(){function t(t){return!Array.isArray(t)&&null!==t&&\"object\"==typeof t}function e(t,e,r){for(var n=(e-t)/Math.max(r-1,1),i=[],a=0;a<r;a++)i.push(t+a*n);return i}function r(){for(var t=[].slice.call(arguments),e=t.map(function(t){return t.length}),r=Math.min.apply(null,e),n=[],i=0;i<r;i++){n[i]=[];for(var a=0;a<t.length;++a)n[i][a]=t[a][i]}return n}function n(t,e,r){for(var n=Math.min.apply(null,[t.length,e.length,r.length]),i=[],a=0;a<n;a++)i.push([t[a],e[a],r[a]]);return i}function i(t){function e(t){for(var n=0;n<t.length;n++)Array.isArray(t[n])?e(t[n],r):r+=t[n]}var r=0;return e(t,r),r}function a(t){for(var e=[],r=0;r<t.length;++r){e[r]=[];for(var n=0;n<t[r].length;++n)e[r][n]=t[r][n]}return e}function o(t){for(var e=[],r=0;r<t.length;++r)e[r]=t[r];return e}function s(t,e){if(t.length!==e.length)return!1;for(var r=t.length;r--;)if(t[r]!==e[r])return!1;return!0}function l(t,e){var r,n;if(\"string\"!=typeof t)return t;if(r=[],\"#\"===t[0]?(t=t.substr(1),3===t.length&&(t+=t),n=parseInt(t,16),r[0]=n>>16&255,r[1]=n>>8&255,r[2]=255&n):h.test(t)&&(n=t.match(f),r[0]=parseInt(n[1]),r[1]=parseInt(n[2]),r[2]=parseInt(n[3])),!e)for(var i=0;i<3;++i)r[i]=r[i]/255;return r}function u(t,e){var r,n;if(\"string\"!=typeof t)return t;if(r=[],\"#\"===t[0]?(t=t.substr(1),3===t.length&&(t+=t),n=parseInt(t,16),r[0]=n>>16&255,r[1]=n>>8&255,r[2]=255&n):h.test(t)&&(n=t.match(f),r[0]=parseInt(n[1]),r[1]=parseInt(n[2]),r[2]=parseInt(n[3]),n[4]?r[3]=parseFloat(n[4]):r[3]=1),!e)for(var i=0;i<3;++i)r[i]=r[i]/255;return r}var c={},h=/^rgba?\\(\\s*\\d{1,3}\\s*,\\s*\\d{1,3}\\s*,\\s*\\d{1,3}\\s*(,.*)?\\)$/,f=/^rgba?\\(\\s*(\\d{1,3})\\s*,\\s*(\\d{1,3})\\s*,\\s*(\\d{1,3})\\s*,?\\s*(.*)?\\)$/;return c.isPlainObject=t,c.linspace=e,c.zip3=n,c.sum=i,c.zip=r,c.isEqual=s,c.copy2D=a,c.copy1D=o,c.str2RgbArray=l,c.str2RgbaArray=u,c}()},{}],47:[function(t,e,r){(function(r){\"use strict\";function n(t,e){if(t===e)return 0;for(var r=t.length,n=e.length,i=0,a=Math.min(r,n);i<a;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0}function i(t){return r.Buffer&&\"function\"==typeof r.Buffer.isBuffer?r.Buffer.isBuffer(t):!(null==t||!t._isBuffer)}function a(t){return Object.prototype.toString.call(t)}function o(t){return!i(t)&&(\"function\"==typeof r.ArrayBuffer&&(\"function\"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):!!t&&(t instanceof DataView||!!(t.buffer&&t.buffer instanceof ArrayBuffer))))}function s(t){if(x.isFunction(t)){if(M)return t.name;var e=t.toString(),r=e.match(A);return r&&r[1]}}function l(t,e){return\"string\"==typeof t?t.length<e?t:t.slice(0,e):t}function u(t){if(M||!x.isFunction(t))return x.inspect(t);var e=s(t);return\"[Function\"+(e?\": \"+e:\"\")+\"]\"}function c(t){return l(u(t.actual),128)+\" \"+t.operator+\" \"+l(u(t.expected),128)}function h(t,e,r,n,i){throw new k.AssertionError({message:r,actual:t,expected:e,operator:n,stackStartFunction:i})}function f(t,e){t||h(t,!0,e,\"==\",k.ok)}function d(t,e,r,s){if(t===e)return!0;if(i(t)&&i(e))return 0===n(t,e);if(x.isDate(t)&&x.isDate(e))return t.getTime()===e.getTime();if(x.isRegExp(t)&&x.isRegExp(e))return t.source===e.source&&t.global===e.global&&t.multiline===e.multiline&&t.lastIndex===e.lastIndex&&t.ignoreCase===e.ignoreCase;if(null!==t&&\"object\"==typeof t||null!==e&&\"object\"==typeof e){if(o(t)&&o(e)&&a(t)===a(e)&&!(t instanceof Float32Array||t instanceof Float64Array))return 0===n(new Uint8Array(t.buffer),new Uint8Array(e.buffer));if(i(t)!==i(e))return!1;s=s||{actual:[],expected:[]};var l=s.actual.indexOf(t);return-1!==l&&l===s.expected.indexOf(e)||(s.actual.push(t),s.expected.push(e),m(t,e,r,s))}return r?t===e:t==e}function p(t){return\"[object Arguments]\"==Object.prototype.toString.call(t)}function m(t,e,r,n){if(null===t||void 0===t||null===e||void 0===e)return!1;if(x.isPrimitive(t)||x.isPrimitive(e))return t===e;if(r&&Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return!1;var i=p(t),a=p(e);if(i&&!a||!i&&a)return!1;if(i)return t=w.call(t),e=w.call(e),d(t,e,r);var o,s,l=T(t),u=T(e);if(l.length!==u.length)return!1;for(l.sort(),u.sort(),s=l.length-1;s>=0;s--)if(l[s]!==u[s])return!1;for(s=l.length-1;s>=0;s--)if(o=l[s],!d(t[o],e[o],r,n))return!1\n", ";return!0}function v(t,e,r){d(t,e,!0)&&h(t,e,r,\"notDeepStrictEqual\",v)}function g(t,e){if(!t||!e)return!1;if(\"[object RegExp]\"==Object.prototype.toString.call(e))return e.test(t);try{if(t instanceof e)return!0}catch(t){}return!Error.isPrototypeOf(e)&&!0===e.call({},t)}function y(t){var e;try{t()}catch(t){e=t}return e}function b(t,e,r,n){var i;if(\"function\"!=typeof e)throw new TypeError('\"block\" argument must be a function');\"string\"==typeof r&&(n=r,r=null),i=y(e),n=(r&&r.name?\" (\"+r.name+\").\":\".\")+(n?\" \"+n:\".\"),t&&!i&&h(i,r,\"Missing expected exception\"+n);var a=\"string\"==typeof n,o=!t&&x.isError(i),s=!t&&i&&!r;if((o&&a&&g(i,r)||s)&&h(i,r,\"Got unwanted exception\"+n),t&&i&&r&&!g(i,r)||!t&&i)throw i}var x=t(\"util/\"),_=Object.prototype.hasOwnProperty,w=Array.prototype.slice,M=function(){return\"foo\"===function(){}.name}(),k=e.exports=f,A=/\\s*function\\s+([^\\(\\s]*)\\s*/;k.AssertionError=function(t){this.name=\"AssertionError\",this.actual=t.actual,this.expected=t.expected,this.operator=t.operator,t.message?(this.message=t.message,this.generatedMessage=!1):(this.message=c(this),this.generatedMessage=!0);var e=t.stackStartFunction||h;if(Error.captureStackTrace)Error.captureStackTrace(this,e);else{var r=new Error;if(r.stack){var n=r.stack,i=s(e),a=n.indexOf(\"\\n\"+i);if(a>=0){var o=n.indexOf(\"\\n\",a+1);n=n.substring(o+1)}this.stack=n}}},x.inherits(k.AssertionError,Error),k.fail=h,k.ok=f,k.equal=function(t,e,r){t!=e&&h(t,e,r,\"==\",k.equal)},k.notEqual=function(t,e,r){t==e&&h(t,e,r,\"!=\",k.notEqual)},k.deepEqual=function(t,e,r){d(t,e,!1)||h(t,e,r,\"deepEqual\",k.deepEqual)},k.deepStrictEqual=function(t,e,r){d(t,e,!0)||h(t,e,r,\"deepStrictEqual\",k.deepStrictEqual)},k.notDeepEqual=function(t,e,r){d(t,e,!1)&&h(t,e,r,\"notDeepEqual\",k.notDeepEqual)},k.notDeepStrictEqual=v,k.strictEqual=function(t,e,r){t!==e&&h(t,e,r,\"===\",k.strictEqual)},k.notStrictEqual=function(t,e,r){t===e&&h(t,e,r,\"!==\",k.notStrictEqual)},k.throws=function(t,e,r){b(!0,t,e,r)},k.doesNotThrow=function(t,e,r){b(!1,t,e,r)},k.ifError=function(t){if(t)throw t};var T=Object.keys||function(t){var e=[];for(var r in t)_.call(t,r)&&e.push(r);return e}}).call(this,\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{\"util/\":549}],48:[function(t,e,r){e.exports=function(t){return atob(t)}},{}],49:[function(t,e,r){\"use strict\";function n(t){for(var e=0,r=0;r<t.length;++r)e+=t[r];return e}function i(t,e){for(var r=e.length,i=new Array(r+1),o=0;o<r;++o){for(var s=new Array(r+1),l=0;l<=r;++l)s[l]=t[l][o];i[o]=s}i[r]=new Array(r+1);for(var o=0;o<=r;++o)i[r][o]=1;for(var u=new Array(r+1),o=0;o<r;++o)u[o]=e[o];u[r]=1;var c=a(i,u),h=n(c[r+1]);0===h&&(h=1);for(var f=new Array(r+1),o=0;o<=r;++o)f[o]=n(c[o])/h;return f}e.exports=i;var a=t(\"robust-linear-solve\")},{\"robust-linear-solve\":507}],50:[function(t,e,r){\"use strict\";function n(t,e){return i(t[0].mul(e[1]).add(e[0].mul(t[1])),t[1].mul(e[1]))}var i=t(\"./lib/rationalize\");e.exports=n},{\"./lib/rationalize\":60}],51:[function(t,e,r){\"use strict\";function n(t,e){return t[0].mul(e[1]).cmp(e[0].mul(t[1]))}e.exports=n},{}],52:[function(t,e,r){\"use strict\";function n(t,e){return i(t[0].mul(e[1]),t[1].mul(e[0]))}var i=t(\"./lib/rationalize\");e.exports=n},{\"./lib/rationalize\":60}],53:[function(t,e,r){\"use strict\";function n(t,e){if(i(t))return e?u(t,n(e)):[t[0].clone(),t[1].clone()];var r,c,h=0;if(a(t))r=t.clone();else if(\"string\"==typeof t)r=s(t);else{if(0===t)return[o(0),o(1)];if(t===Math.floor(t))r=o(t);else{for(;t!==Math.floor(t);)t*=Math.pow(2,256),h-=256;r=o(t)}}if(i(e))r.mul(e[1]),c=e[0].clone();else if(a(e))c=e.clone();else if(\"string\"==typeof e)c=s(e);else if(e)if(e===Math.floor(e))c=o(e);else{for(;e!==Math.floor(e);)e*=Math.pow(2,256),h+=256;c=o(e)}else c=o(1);return h>0?r=r.ushln(h):h<0&&(c=c.ushln(-h)),l(r,c)}var i=t(\"./is-rat\"),a=t(\"./lib/is-bn\"),o=t(\"./lib/num-to-bn\"),s=t(\"./lib/str-to-bn\"),l=t(\"./lib/rationalize\"),u=t(\"./div\");e.exports=n},{\"./div\":52,\"./is-rat\":54,\"./lib/is-bn\":58,\"./lib/num-to-bn\":59,\"./lib/rationalize\":60,\"./lib/str-to-bn\":61}],54:[function(t,e,r){\"use strict\";function n(t){return Array.isArray(t)&&2===t.length&&i(t[0])&&i(t[1])}var i=t(\"./lib/is-bn\");e.exports=n},{\"./lib/is-bn\":58}],55:[function(t,e,r){\"use strict\";function n(t){return t.cmp(new i(0))}var i=t(\"bn.js\");e.exports=n},{\"bn.js\":68}],56:[function(t,e,r){\"use strict\";function n(t){var e=t.length,r=t.words,n=0;if(1===e)n=r[0];else if(2===e)n=r[0]+67108864*r[1];else for(var a=0;a<e;a++){var o=r[a];n+=o*Math.pow(67108864,a)}return i(t)*n}var i=t(\"./bn-sign\");e.exports=n},{\"./bn-sign\":55}],57:[function(t,e,r){\"use strict\";function n(t){var e=a(i.lo(t));if(e<32)return e;var r=a(i.hi(t));return r>20?52:r+32}var i=t(\"double-bits\"),a=t(\"bit-twiddle\").countTrailingZeros;e.exports=n},{\"bit-twiddle\":67,\"double-bits\":124}],58:[function(t,e,r){\"use strict\";function n(t){return t&&\"object\"==typeof t&&Boolean(t.words)}t(\"bn.js\");e.exports=n},{\"bn.js\":68}],59:[function(t,e,r){\"use strict\";function n(t){var e=a.exponent(t);return e<52?new i(t):new i(t*Math.pow(2,52-e)).ushln(e-52)}var i=t(\"bn.js\"),a=t(\"double-bits\");e.exports=n},{\"bn.js\":68,\"double-bits\":124}],60:[function(t,e,r){\"use strict\";function n(t,e){var r=a(t),n=a(e);if(0===r)return[i(0),i(1)];if(0===n)return[i(0),i(0)];n<0&&(t=t.neg(),e=e.neg());var o=t.gcd(e);return o.cmpn(1)?[t.div(o),e.div(o)]:[t,e]}var i=t(\"./num-to-bn\"),a=t(\"./bn-sign\");e.exports=n},{\"./bn-sign\":55,\"./num-to-bn\":59}],61:[function(t,e,r){\"use strict\";function n(t){return new i(t)}var i=t(\"bn.js\");e.exports=n},{\"bn.js\":68}],62:[function(t,e,r){\"use strict\";function n(t,e){return i(t[0].mul(e[0]),t[1].mul(e[1]))}var i=t(\"./lib/rationalize\");e.exports=n},{\"./lib/rationalize\":60}],63:[function(t,e,r){\"use strict\";function n(t){return i(t[0])*i(t[1])}var i=t(\"./lib/bn-sign\");e.exports=n},{\"./lib/bn-sign\":55}],64:[function(t,e,r){\"use strict\";function n(t,e){return i(t[0].mul(e[1]).sub(t[1].mul(e[0])),t[1].mul(e[1]))}var i=t(\"./lib/rationalize\");e.exports=n},{\"./lib/rationalize\":60}],65:[function(t,e,r){\"use strict\";function n(t){var e=t[0],r=t[1];if(0===e.cmpn(0))return 0;var n=e.abs().divmod(r.abs()),o=n.div,s=i(o),l=n.mod,u=e.negative!==r.negative?-1:1;if(0===l.cmpn(0))return u*s;if(s){var c=a(s)+4,h=i(l.ushln(c).divRound(r));return u*(s+h*Math.pow(2,-c))}var f=r.bitLength()-l.bitLength()+53,h=i(l.ushln(f).divRound(r));return f<1023?u*h*Math.pow(2,-f):(h*=Math.pow(2,-1023),u*h*Math.pow(2,1023-f))}var i=t(\"./lib/bn-to-num\"),a=t(\"./lib/ctz\");e.exports=n},{\"./lib/bn-to-num\":56,\"./lib/ctz\":57}],66:[function(t,e,r){\"use strict\";function n(t,e,r,n,i,a){var o=[\"function \",t,\"(a,l,h,\",n.join(\",\"),\"){\",a?\"\":\"var i=\",r?\"l-1\":\"h+1\",\";while(l<=h){var m=(l+h)>>>1,x=a\",i?\".get(m)\":\"[m]\"];return a?e.indexOf(\"c\")<0?o.push(\";if(x===y){return m}else if(x<=y){\"):o.push(\";var p=c(x,y);if(p===0){return m}else if(p<=0){\"):o.push(\";if(\",e,\"){i=m;\"),r?o.push(\"l=m+1}else{h=m-1}\"):o.push(\"h=m-1}else{l=m+1}\"),o.push(\"}\"),a?o.push(\"return -1};\"):o.push(\"return i};\"),o.join(\"\")}function i(t,e,r,i){return new Function([n(\"A\",\"x\"+t+\"y\",e,[\"y\"],!1,i),n(\"B\",\"x\"+t+\"y\",e,[\"y\"],!0,i),n(\"P\",\"c(x,y)\"+t+\"0\",e,[\"y\",\"c\"],!1,i),n(\"Q\",\"c(x,y)\"+t+\"0\",e,[\"y\",\"c\"],!0,i),\"function dispatchBsearch\",r,\"(a,y,c,l,h){if(a.shape){if(typeof(c)==='function'){return Q(a,(l===undefined)?0:l|0,(h===undefined)?a.shape[0]-1:h|0,y,c)}else{return B(a,(c===undefined)?0:c|0,(l===undefined)?a.shape[0]-1:l|0,y)}}else{if(typeof(c)==='function'){return P(a,(l===undefined)?0:l|0,(h===undefined)?a.length-1:h|0,y,c)}else{return A(a,(c===undefined)?0:c|0,(l===undefined)?a.length-1:l|0,y)}}}return dispatchBsearch\",r].join(\"\"))()}e.exports={ge:i(\">=\",!1,\"GE\"),gt:i(\">\",!1,\"GT\"),lt:i(\"<\",!0,\"LT\"),le:i(\"<=\",!0,\"LE\"),eq:i(\"-\",!0,\"EQ\",!0)}},{}],67:[function(t,e,r){\"use strict\";\"use restrict\";function n(t){var e=32;return t&=-t,t&&e--,65535&t&&(e-=16),16711935&t&&(e-=8),252645135&t&&(e-=4),858993459&t&&(e-=2),1431655765&t&&(e-=1),e}r.INT_BITS=32,r.INT_MAX=2147483647,r.INT_MIN=-1<<31,r.sign=function(t){return(t>0)-(t<0)},r.abs=function(t){var e=t>>31;return(t^e)-e},r.min=function(t,e){return e^(t^e)&-(t<e)},r.max=function(t,e){return t^(t^e)&-(t<e)},r.isPow2=function(t){return!(t&t-1||!t)},r.log2=function(t){var e,r;return e=(t>65535)<<4,t>>>=e,r=(t>255)<<3,t>>>=r,e|=r,r=(t>15)<<2,t>>>=r,e|=r,r=(t>3)<<1,t>>>=r,(e|=r)|t>>1},r.log10=function(t){return t>=1e9?9:t>=1e8?8:t>=1e7?7:t>=1e6?6:t>=1e5?5:t>=1e4?4:t>=1e3?3:t>=100?2:t>=10?1:0},r.popCount=function(t){return t-=t>>>1&1431655765,16843009*((t=(858993459&t)+(t>>>2&858993459))+(t>>>4)&252645135)>>>24},r.countTrailingZeros=n,r.nextPow2=function(t){return t+=0===t,--t,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,(t|=t>>>16)+1},r.prevPow2=function(t){return t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,(t|=t>>>16)-(t>>>1)},r.parity=function(t){return t^=t>>>16,t^=t>>>8,t^=t>>>4,27030>>>(t&=15)&1};var i=new Array(256);!function(t){for(var e=0;e<256;++e){var r=e,n=e,i=7;for(r>>>=1;r;r>>>=1)n<<=1,n|=1&r,--i;t[e]=n<<i&255}}(i),r.reverse=function(t){return i[255&t]<<24|i[t>>>8&255]<<16|i[t>>>16&255]<<8|i[t>>>24&255]},r.interleave2=function(t,e){return t&=65535,t=16711935&(t|t<<8),t=252645135&(t|t<<4),t=858993459&(t|t<<2),t=1431655765&(t|t<<1),e&=65535,e=16711935&(e|e<<8),e=252645135&(e|e<<4),e=858993459&(e|e<<2),e=1431655765&(e|e<<1),t|e<<1},r.deinterleave2=function(t,e){return t=t>>>e&1431655765,t=858993459&(t|t>>>1),t=252645135&(t|t>>>2),t=16711935&(t|t>>>4),(t=65535&(t|t>>>16))<<16>>16},r.interleave3=function(t,e,r){return t&=1023,t=4278190335&(t|t<<16),t=251719695&(t|t<<8),t=3272356035&(t|t<<4),t=1227133513&(t|t<<2),e&=1023,e=4278190335&(e|e<<16),e=251719695&(e|e<<8),e=3272356035&(e|e<<4),e=1227133513&(e|e<<2),t|=e<<1,r&=1023,r=4278190335&(r|r<<16),r=251719695&(r|r<<8),r=3272356035&(r|r<<4),r=1227133513&(r|r<<2),t|r<<2},r.deinterleave3=function(t,e){return t=t>>>e&1227133513,t=3272356035&(t|t>>>2),t=251719695&(t|t>>>4),t=4278190335&(t|t>>>8),(t=1023&(t|t>>>16))<<22>>22},r.nextCombination=function(t){var e=t|t-1;return e+1|(~e&-~e)-1>>>n(t)+1}},{}],68:[function(t,e,r){!function(e,r){\"use strict\";function n(t,e){if(!t)throw new Error(e||\"Assertion failed\")}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function a(t,e,r){if(a.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&(\"le\"!==e&&\"be\"!==e||(r=e,e=10),this._init(t||0,e||10,r||\"be\"))}function o(t,e,r){for(var n=0,i=Math.min(t.length,r),a=e;a<i;a++){var o=t.charCodeAt(a)-48;n<<=4,n|=o>=49&&o<=54?o-49+10:o>=17&&o<=22?o-17+10:15&o}return n}function s(t,e,r,n){for(var i=0,a=Math.min(t.length,r),o=e;o<a;o++){var s=t.charCodeAt(o)-48;i*=n,i+=s>=49?s-49+10:s>=17?s-17+10:s}return i}function l(t){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,i=r%26;e[r]=(t.words[n]&1<<i)>>>i}return e}function u(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],a=0|e.words[0],o=i*a,s=67108863&o,l=o/67108864|0;r.words[0]=s;for(var u=1;u<n;u++){for(var c=l>>>26,h=67108863&l,f=Math.min(u,e.length-1),d=Math.max(0,u-t.length+1);d<=f;d++){var p=u-d|0;i=0|t.words[p],a=0|e.words[d],o=i*a+h,c+=o/67108864|0,h=67108863&o}r.words[u]=0|h,l=0|c}return 0!==l?r.words[u]=0|l:r.length--,r.strip()}function c(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,a=0;a<r.length-1;a++){var o=i;i=0;for(var s=67108863&n,l=Math.min(a,e.length-1),u=Math.max(0,a-t.length+1);u<=l;u++){var c=a-u,h=0|t.words[c],f=0|e.words[u],d=h*f,p=67108863&d;o=o+(d/67108864|0)|0,p=p+s|0,s=67108863&p,o=o+(p>>>26)|0,i+=o>>>26,o&=67108863}r.words[a]=s,n=o,o=i}return 0!==n?r.words[a]=n:r.length--,r.strip()}function h(t,e,r){return(new f).mulp(t,e,r)}function f(t,e){this.x=t,this.y=e}function d(t,e){this.name=t,this.p=new a(e,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function p(){d.call(this,\"k256\",\"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f\")}function m(){d.call(this,\"p224\",\"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001\")}function v(){d.call(this,\"p192\",\"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff\")}function g(){d.call(this,\"25519\",\"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed\")}function y(t){if(\"string\"==typeof t){var e=a._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),\"modulus must be greater than 1\"),this.m=t,this.prime=null}function b(t){y.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}\"object\"==typeof e?e.exports=a:r.BN=a,a.BN=a,a.wordSize=26;var x;try{x=t(\"buffer\").Buffer}catch(t){}a.isBN=function(t){return t instanceof a||null!==t&&\"object\"==typeof t&&t.constructor.wordSize===a.wordSize&&Array.isArray(t.words)},a.max=function(t,e){return t.cmp(e)>0?t:e},a.min=function(t,e){return t.cmp(e)<0?t:e},a.prototype._init=function(t,e,r){if(\"number\"==typeof t)return this._initNumber(t,e,r);if(\"object\"==typeof t)return this._initArray(t,e,r);\"hex\"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36),t=t.toString().replace(/\\s+/g,\"\");var i=0;\"-\"===t[0]&&i++,16===e?this._parseHex(t,i):this._parseBase(t,e,i),\"-\"===t[0]&&(this.negative=1),this.strip(),\"le\"===r&&this._initArray(this.toArray(),e,r)},a.prototype._initNumber=function(t,e,r){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),\"le\"===r&&this._initArray(this.toArray(),e,r)},a.prototype._initArray=function(t,e,r){if(n(\"number\"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var a,o,s=0;if(\"be\"===r)for(i=t.length-1,a=0;i>=0;i-=3)o=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[a]|=o<<s&67108863,this.words[a+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);else if(\"le\"===r)for(i=0,a=0;i<t.length;i+=3)o=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[a]|=o<<s&67108863,this.words[a+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);return this.strip()},a.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var n,i,a=0;for(r=t.length-6,n=0;r>=e;r-=6)i=o(t,r,r+6),this.words[n]|=i<<a&67108863,this.words[n+1]|=i>>>26-a&4194303,(a+=24)>=26&&(a-=26,n++);r+6!==e&&(i=o(t,e,r+6),this.words[n]|=i<<a&67108863,this.words[n+1]|=i>>>26-a&4194303),this.strip()},a.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var a=t.length-r,o=a%n,l=Math.min(a,a-o)+r,u=0,c=r;c<l;c+=n)u=s(t,c,c+n,e),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==o){var h=1;for(u=s(t,c,t.length,e),c=0;c<o;c++)h*=e;this.imuln(h),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}},a.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},a.prototype.clone=function(){var t=new a(null);return this.copy(t),t},a.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},a.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?\"<BN-R: \":\"<BN: \")+this.toString(16)+\">\"};var _=[\"\",\"0\",\"00\",\"000\",\"0000\",\"00000\",\"000000\",\"0000000\",\"00000000\",\"000000000\",\"0000000000\",\"00000000000\",\"000000000000\",\"0000000000000\",\"00000000000000\",\"000000000000000\",\"0000000000000000\",\"00000000000000000\",\"000000000000000000\",\"0000000000000000000\",\"00000000000000000000\",\"000000000000000000000\",\"0000000000000000000000\",\"00000000000000000000000\",\"000000000000000000000000\",\"0000000000000000000000000\"],w=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],M=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];a.prototype.toString=function(t,e){t=t||10,e=0|e||1;var r;if(16===t||\"hex\"===t){r=\"\";for(var i=0,a=0,o=0;o<this.length;o++){var s=this.words[o],l=(16777215&(s<<i|a)).toString(16);a=s>>>24-i&16777215,r=0!==a||o!==this.length-1?_[6-l.length]+l+r:l+r,i+=2,i>=26&&(i-=26,o--)}for(0!==a&&(r=a.toString(16)+r);r.length%e!=0;)r=\"0\"+r;return 0!==this.negative&&(r=\"-\"+r),r}if(t===(0|t)&&t>=2&&t<=36){var u=w[t],c=M[t];r=\"\";var h=this.clone();for(h.negative=0;!h.isZero();){var f=h.modn(c).toString(t);h=h.idivn(c),r=h.isZero()?f+r:_[u-f.length]+f+r}for(this.isZero()&&(r=\"0\"+r);r.length%e!=0;)r=\"0\"+r;return 0!==this.negative&&(r=\"-\"+r),r}n(!1,\"Base should be between 2 and 36\")},a.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,\"Number can only safely store up to 53 bits\"),0!==this.negative?-t:t},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(t,e){return n(void 0!==x),this.toArrayLike(x,t,e)},a.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},a.prototype.toArrayLike=function(t,e,r){var i=this.byteLength(),a=r||Math.max(1,i);n(i<=a,\"byte array longer than desired length\"),n(a>0,\"Requested array length <= 0\"),this.strip();var o,s,l=\"le\"===e,u=new t(a),c=this.clone();if(l){for(s=0;!c.isZero();s++)o=c.andln(255),c.iushrn(8),u[s]=o;for(;s<a;s++)u[s]=0}else{for(s=0;s<a-i;s++)u[s]=0;for(s=0;!c.isZero();s++)o=c.andln(255),c.iushrn(8),u[a-s-1]=o}return u},Math.clz32?a.prototype._countBits=function(t){return 32-Math.clz32(t)}:a.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},a.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0==(8191&e)&&(r+=13,e>>>=13),0==(127&e)&&(r+=7,e>>>=7),0==(15&e)&&(r+=4,e>>>=4),0==(3&e)&&(r+=2,e>>>=2),0==(1&e)&&r++,r},a.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},a.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return 0!==this.negative},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},a.prototype.ior=function(t){return n(0==(this.negative|t.negative)),this.iuor(t)},a.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},a.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},a.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this.strip()},a.prototype.iand=function(t){return n(0==(this.negative|t.negative)),this.iuand(t)},a.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},a.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},a.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this.strip()},a.prototype.ixor=function(t){return n(0==(this.negative|t.negative)),this.iuxor(t)},a.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},a.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},a.prototype.inotn=function(t){n(\"number\"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},a.prototype.notn=function(t){return this.clone().inotn(t)},a.prototype.setn=function(t,e){n(\"number\"==typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<i:this.words[r]&~(1<<i),this.strip()},a.prototype.iadd=function(t){var e;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();var r,n;this.length>t.length?(r=this,n=t):(r=t,n=this);for(var i=0,a=0;a<n.length;a++)e=(0|r.words[a])+(0|n.words[a])+i,this.words[a]=67108863&e,i=e>>>26;for(;0!==i&&a<r.length;a++)e=(0|r.words[a])+i,this.words[a]=67108863&e,i=e>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this},a.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},a.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;var n,i;r>0?(n=this,i=t):(n=t,i=this);for(var a=0,o=0;o<i.length;o++)e=(0|n.words[o])-(0|i.words[o])+a,a=e>>26,this.words[o]=67108863&e;for(;0!==a&&o<n.length;o++)e=(0|n.words[o])+a,a=e>>26,this.words[o]=67108863&e;if(0===a&&o<n.length&&n!==this)for(;o<n.length;o++)this.words[o]=n.words[o];return this.length=Math.max(this.length,o),n!==this&&(this.negative=1),this.strip()},a.prototype.sub=function(t){return this.clone().isub(t)};var k=function(t,e,r){var n,i,a,o=t.words,s=e.words,l=r.words,u=0,c=0|o[0],h=8191&c,f=c>>>13,d=0|o[1],p=8191&d,m=d>>>13,v=0|o[2],g=8191&v,y=v>>>13,b=0|o[3],x=8191&b,_=b>>>13,w=0|o[4],M=8191&w,k=w>>>13,A=0|o[5],T=8191&A,S=A>>>13,E=0|o[6],L=8191&E,C=E>>>13,I=0|o[7],z=8191&I,D=I>>>13,P=0|o[8],O=8191&P,R=P>>>13,F=0|o[9],j=8191&F,N=F>>>13,B=0|s[0],U=8191&B,V=B>>>13,H=0|s[1],q=8191&H,G=H>>>13,Y=0|s[2],W=8191&Y,X=Y>>>13,Z=0|s[3],J=8191&Z,K=Z>>>13,Q=0|s[4],$=8191&Q,tt=Q>>>13,et=0|s[5],rt=8191&et,nt=et>>>13,it=0|s[6],at=8191&it,ot=it>>>13,st=0|s[7],lt=8191&st,ut=st>>>13,ct=0|s[8],ht=8191&ct,ft=ct>>>13,dt=0|s[9],pt=8191&dt,mt=dt>>>13;r.negative=t.negative^e.negative,r.length=19,n=Math.imul(h,U),i=Math.imul(h,V),i=i+Math.imul(f,U)|0,a=Math.imul(f,V);var vt=(u+n|0)+((8191&i)<<13)|0;u=(a+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(p,U),i=Math.imul(p,V),i=i+Math.imul(m,U)|0,a=Math.imul(m,V),n=n+Math.imul(h,q)|0,i=i+Math.imul(h,G)|0,i=i+Math.imul(f,q)|0,a=a+Math.imul(f,G)|0;var gt=(u+n|0)+((8191&i)<<13)|0;u=(a+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(g,U),i=Math.imul(g,V),i=i+Math.imul(y,U)|0,a=Math.imul(y,V),n=n+Math.imul(p,q)|0,i=i+Math.imul(p,G)|0,i=i+Math.imul(m,q)|0,a=a+Math.imul(m,G)|0,n=n+Math.imul(h,W)|0,i=i+Math.imul(h,X)|0,i=i+Math.imul(f,W)|0,a=a+Math.imul(f,X)|0;var yt=(u+n|0)+((8191&i)<<13)|0;u=(a+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(x,U),i=Math.imul(x,V),i=i+Math.imul(_,U)|0,a=Math.imul(_,V),n=n+Math.imul(g,q)|0,i=i+Math.imul(g,G)|0,i=i+Math.imul(y,q)|0,a=a+Math.imul(y,G)|0,n=n+Math.imul(p,W)|0,i=i+Math.imul(p,X)|0,i=i+Math.imul(m,W)|0,a=a+Math.imul(m,X)|0,n=n+Math.imul(h,J)|0,i=i+Math.imul(h,K)|0,i=i+Math.imul(f,J)|0,a=a+Math.imul(f,K)|0;var bt=(u+n|0)+((8191&i)<<13)|0;u=(a+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(M,U),i=Math.imul(M,V),i=i+Math.imul(k,U)|0,a=Math.imul(k,V),n=n+Math.imul(x,q)|0,i=i+Math.imul(x,G)|0,i=i+Math.imul(_,q)|0,a=a+Math.imul(_,G)|0,n=n+Math.imul(g,W)|0,i=i+Math.imul(g,X)|0,i=i+Math.imul(y,W)|0,a=a+Math.imul(y,X)|0,n=n+Math.imul(p,J)|0,i=i+Math.imul(p,K)|0,i=i+Math.imul(m,J)|0,a=a+Math.imul(m,K)|0,n=n+Math.imul(h,$)|0,i=i+Math.imul(h,tt)|0,i=i+Math.imul(f,$)|0,a=a+Math.imul(f,tt)|0;var xt=(u+n|0)+((8191&i)<<13)|0;u=(a+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(T,U),i=Math.imul(T,V),i=i+Math.imul(S,U)|0,a=Math.imul(S,V),n=n+Math.imul(M,q)|0,i=i+Math.imul(M,G)|0,i=i+Math.imul(k,q)|0,a=a+Math.imul(k,G)|0,n=n+Math.imul(x,W)|0,i=i+Math.imul(x,X)|0,i=i+Math.imul(_,W)|0,a=a+Math.imul(_,X)|0,n=n+Math.imul(g,J)|0,i=i+Math.imul(g,K)|0,i=i+Math.imul(y,J)|0,a=a+Math.imul(y,K)|0,n=n+Math.imul(p,$)|0,i=i+Math.imul(p,tt)|0,i=i+Math.imul(m,$)|0,a=a+Math.imul(m,tt)|0,n=n+Math.imul(h,rt)|0,i=i+Math.imul(h,nt)|0,i=i+Math.imul(f,rt)|0,a=a+Math.imul(f,nt)|0;var _t=(u+n|0)+((8191&i)<<13)|0;u=(a+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(L,U),i=Math.imul(L,V),i=i+Math.imul(C,U)|0,a=Math.imul(C,V),n=n+Math.imul(T,q)|0,i=i+Math.imul(T,G)|0,i=i+Math.imul(S,q)|0,a=a+Math.imul(S,G)|0,n=n+Math.imul(M,W)|0,i=i+Math.imul(M,X)|0,i=i+Math.imul(k,W)|0,a=a+Math.imul(k,X)|0,n=n+Math.imul(x,J)|0,i=i+Math.imul(x,K)|0,i=i+Math.imul(_,J)|0,a=a+Math.imul(_,K)|0,n=n+Math.imul(g,$)|0,i=i+Math.imul(g,tt)|0,i=i+Math.imul(y,$)|0,a=a+Math.imul(y,tt)|0,n=n+Math.imul(p,rt)|0,i=i+Math.imul(p,nt)|0,i=i+Math.imul(m,rt)|0,a=a+Math.imul(m,nt)|0,n=n+Math.imul(h,at)|0,i=i+Math.imul(h,ot)|0,i=i+Math.imul(f,at)|0,a=a+Math.imul(f,ot)|0;var wt=(u+n|0)+((8191&i)<<13)|0;u=(a+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(z,U),i=Math.imul(z,V),i=i+Math.imul(D,U)|0,a=Math.imul(D,V),n=n+Math.imul(L,q)|0,i=i+Math.imul(L,G)|0,i=i+Math.imul(C,q)|0,a=a+Math.imul(C,G)|0,n=n+Math.imul(T,W)|0,i=i+Math.imul(T,X)|0,i=i+Math.imul(S,W)|0,a=a+Math.imul(S,X)|0,n=n+Math.imul(M,J)|0,i=i+Math.imul(M,K)|0,i=i+Math.imul(k,J)|0,a=a+Math.imul(k,K)|0,n=n+Math.imul(x,$)|0,i=i+Math.imul(x,tt)|0,i=i+Math.imul(_,$)|0,a=a+Math.imul(_,tt)|0,n=n+Math.imul(g,rt)|0,i=i+Math.imul(g,nt)|0,i=i+Math.imul(y,rt)|0,a=a+Math.imul(y,nt)|0,n=n+Math.imul(p,at)|0,i=i+Math.imul(p,ot)|0,i=i+Math.imul(m,at)|0,a=a+Math.imul(m,ot)|0,n=n+Math.imul(h,lt)|0,i=i+Math.imul(h,ut)|0,i=i+Math.imul(f,lt)|0,a=a+Math.imul(f,ut)|0;var Mt=(u+n|0)+((8191&i)<<13)|0;u=(a+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(O,U),i=Math.imul(O,V),i=i+Math.imul(R,U)|0,a=Math.imul(R,V),n=n+Math.imul(z,q)|0,i=i+Math.imul(z,G)|0,i=i+Math.imul(D,q)|0,a=a+Math.imul(D,G)|0,n=n+Math.imul(L,W)|0,i=i+Math.imul(L,X)|0,i=i+Math.imul(C,W)|0,a=a+Math.imul(C,X)|0,n=n+Math.imul(T,J)|0,i=i+Math.imul(T,K)|0,i=i+Math.imul(S,J)|0,a=a+Math.imul(S,K)|0,n=n+Math.imul(M,$)|0,i=i+Math.imul(M,tt)|0,i=i+Math.imul(k,$)|0,a=a+Math.imul(k,tt)|0,n=n+Math.imul(x,rt)|0,i=i+Math.imul(x,nt)|0,i=i+Math.imul(_,rt)|0,a=a+Math.imul(_,nt)|0,n=n+Math.imul(g,at)|0,i=i+Math.imul(g,ot)|0,i=i+Math.imul(y,at)|0,a=a+Math.imul(y,ot)|0,n=n+Math.imul(p,lt)|0,i=i+Math.imul(p,ut)|0,i=i+Math.imul(m,lt)|0,a=a+Math.imul(m,ut)|0,n=n+Math.imul(h,ht)|0,i=i+Math.imul(h,ft)|0,i=i+Math.imul(f,ht)|0,a=a+Math.imul(f,ft)|0;var kt=(u+n|0)+((8191&i)<<13)|0;u=(a+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(j,U),i=Math.imul(j,V),i=i+Math.imul(N,U)|0,a=Math.imul(N,V),n=n+Math.imul(O,q)|0,i=i+Math.imul(O,G)|0,i=i+Math.imul(R,q)|0,a=a+Math.imul(R,G)|0,n=n+Math.imul(z,W)|0,i=i+Math.imul(z,X)|0,i=i+Math.imul(D,W)|0,a=a+Math.imul(D,X)|0,n=n+Math.imul(L,J)|0,i=i+Math.imul(L,K)|0,i=i+Math.imul(C,J)|0,a=a+Math.imul(C,K)|0,n=n+Math.imul(T,$)|0,i=i+Math.imul(T,tt)|0,i=i+Math.imul(S,$)|0,a=a+Math.imul(S,tt)|0,n=n+Math.imul(M,rt)|0,i=i+Math.imul(M,nt)|0,i=i+Math.imul(k,rt)|0,a=a+Math.imul(k,nt)|0,n=n+Math.imul(x,at)|0,i=i+Math.imul(x,ot)|0,i=i+Math.imul(_,at)|0,a=a+Math.imul(_,ot)|0,n=n+Math.imul(g,lt)|0,i=i+Math.imul(g,ut)|0,i=i+Math.imul(y,lt)|0,a=a+Math.imul(y,ut)|0,n=n+Math.imul(p,ht)|0,i=i+Math.imul(p,ft)|0,i=i+Math.imul(m,ht)|0,a=a+Math.imul(m,ft)|0,n=n+Math.imul(h,pt)|0,i=i+Math.imul(h,mt)|0,i=i+Math.imul(f,pt)|0,a=a+Math.imul(f,mt)|0;var At=(u+n|0)+((8191&i)<<13)|0;u=(a+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(j,q),i=Math.imul(j,G),i=i+Math.imul(N,q)|0,a=Math.imul(N,G),n=n+Math.imul(O,W)|0,i=i+Math.imul(O,X)|0,i=i+Math.imul(R,W)|0,a=a+Math.imul(R,X)|0,n=n+Math.imul(z,J)|0,i=i+Math.imul(z,K)|0,i=i+Math.imul(D,J)|0,a=a+Math.imul(D,K)|0,n=n+Math.imul(L,$)|0,i=i+Math.imul(L,tt)|0,i=i+Math.imul(C,$)|0,a=a+Math.imul(C,tt)|0,n=n+Math.imul(T,rt)|0,i=i+Math.imul(T,nt)|0,i=i+Math.imul(S,rt)|0,a=a+Math.imul(S,nt)|0,n=n+Math.imul(M,at)|0,i=i+Math.imul(M,ot)|0,i=i+Math.imul(k,at)|0,a=a+Math.imul(k,ot)|0,n=n+Math.imul(x,lt)|0,i=i+Math.imul(x,ut)|0,i=i+Math.imul(_,lt)|0,a=a+Math.imul(_,ut)|0,n=n+Math.imul(g,ht)|0,i=i+Math.imul(g,ft)|0,i=i+Math.imul(y,ht)|0,a=a+Math.imul(y,ft)|0,n=n+Math.imul(p,pt)|0,i=i+Math.imul(p,mt)|0,i=i+Math.imul(m,pt)|0,a=a+Math.imul(m,mt)|0;var Tt=(u+n|0)+((8191&i)<<13)|0;u=(a+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(j,W),i=Math.imul(j,X),i=i+Math.imul(N,W)|0,a=Math.imul(N,X),n=n+Math.imul(O,J)|0,i=i+Math.imul(O,K)|0,i=i+Math.imul(R,J)|0,a=a+Math.imul(R,K)|0,n=n+Math.imul(z,$)|0,i=i+Math.imul(z,tt)|0,i=i+Math.imul(D,$)|0,a=a+Math.imul(D,tt)|0,n=n+Math.imul(L,rt)|0,i=i+Math.imul(L,nt)|0,i=i+Math.imul(C,rt)|0,a=a+Math.imul(C,nt)|0,n=n+Math.imul(T,at)|0,i=i+Math.imul(T,ot)|0,i=i+Math.imul(S,at)|0,a=a+Math.imul(S,ot)|0,n=n+Math.imul(M,lt)|0,i=i+Math.imul(M,ut)|0,i=i+Math.imul(k,lt)|0,a=a+Math.imul(k,ut)|0,n=n+Math.imul(x,ht)|0,i=i+Math.imul(x,ft)|0,i=i+Math.imul(_,ht)|0,a=a+Math.imul(_,ft)|0,n=n+Math.imul(g,pt)|0,i=i+Math.imul(g,mt)|0,i=i+Math.imul(y,pt)|0,a=a+Math.imul(y,mt)|0;var St=(u+n|0)+((8191&i)<<13)|0;u=(a+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(j,J),i=Math.imul(j,K),i=i+Math.imul(N,J)|0,a=Math.imul(N,K),n=n+Math.imul(O,$)|0,i=i+Math.imul(O,tt)|0,i=i+Math.imul(R,$)|0,a=a+Math.imul(R,tt)|0,n=n+Math.imul(z,rt)|0,i=i+Math.imul(z,nt)|0,i=i+Math.imul(D,rt)|0,a=a+Math.imul(D,nt)|0,n=n+Math.imul(L,at)|0,i=i+Math.imul(L,ot)|0,i=i+Math.imul(C,at)|0,a=a+Math.imul(C,ot)|0,n=n+Math.imul(T,lt)|0,i=i+Math.imul(T,ut)|0,i=i+Math.imul(S,lt)|0,a=a+Math.imul(S,ut)|0,n=n+Math.imul(M,ht)|0,i=i+Math.imul(M,ft)|0,i=i+Math.imul(k,ht)|0,a=a+Math.imul(k,ft)|0,n=n+Math.imul(x,pt)|0,i=i+Math.imul(x,mt)|0,i=i+Math.imul(_,pt)|0,a=a+Math.imul(_,mt)|0;var Et=(u+n|0)+((8191&i)<<13)|0;u=(a+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(j,$),i=Math.imul(j,tt),i=i+Math.imul(N,$)|0,a=Math.imul(N,tt),n=n+Math.imul(O,rt)|0,i=i+Math.imul(O,nt)|0,i=i+Math.imul(R,rt)|0,a=a+Math.imul(R,nt)|0,n=n+Math.imul(z,at)|0,i=i+Math.imul(z,ot)|0,i=i+Math.imul(D,at)|0,a=a+Math.imul(D,ot)|0,n=n+Math.imul(L,lt)|0,i=i+Math.imul(L,ut)|0,i=i+Math.imul(C,lt)|0,a=a+Math.imul(C,ut)|0,n=n+Math.imul(T,ht)|0,i=i+Math.imul(T,ft)|0,i=i+Math.imul(S,ht)|0,a=a+Math.imul(S,ft)|0,n=n+Math.imul(M,pt)|0,i=i+Math.imul(M,mt)|0,i=i+Math.imul(k,pt)|0,a=a+Math.imul(k,mt)|0;var Lt=(u+n|0)+((8191&i)<<13)|0;u=(a+(i>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,n=Math.imul(j,rt),i=Math.imul(j,nt),i=i+Math.imul(N,rt)|0,a=Math.imul(N,nt),n=n+Math.imul(O,at)|0,i=i+Math.imul(O,ot)|0,i=i+Math.imul(R,at)|0,a=a+Math.imul(R,ot)|0,n=n+Math.imul(z,lt)|0,i=i+Math.imul(z,ut)|0,i=i+Math.imul(D,lt)|0,a=a+Math.imul(D,ut)|0,n=n+Math.imul(L,ht)|0,\n", "i=i+Math.imul(L,ft)|0,i=i+Math.imul(C,ht)|0,a=a+Math.imul(C,ft)|0,n=n+Math.imul(T,pt)|0,i=i+Math.imul(T,mt)|0,i=i+Math.imul(S,pt)|0,a=a+Math.imul(S,mt)|0;var Ct=(u+n|0)+((8191&i)<<13)|0;u=(a+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(j,at),i=Math.imul(j,ot),i=i+Math.imul(N,at)|0,a=Math.imul(N,ot),n=n+Math.imul(O,lt)|0,i=i+Math.imul(O,ut)|0,i=i+Math.imul(R,lt)|0,a=a+Math.imul(R,ut)|0,n=n+Math.imul(z,ht)|0,i=i+Math.imul(z,ft)|0,i=i+Math.imul(D,ht)|0,a=a+Math.imul(D,ft)|0,n=n+Math.imul(L,pt)|0,i=i+Math.imul(L,mt)|0,i=i+Math.imul(C,pt)|0,a=a+Math.imul(C,mt)|0;var It=(u+n|0)+((8191&i)<<13)|0;u=(a+(i>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(j,lt),i=Math.imul(j,ut),i=i+Math.imul(N,lt)|0,a=Math.imul(N,ut),n=n+Math.imul(O,ht)|0,i=i+Math.imul(O,ft)|0,i=i+Math.imul(R,ht)|0,a=a+Math.imul(R,ft)|0,n=n+Math.imul(z,pt)|0,i=i+Math.imul(z,mt)|0,i=i+Math.imul(D,pt)|0,a=a+Math.imul(D,mt)|0;var zt=(u+n|0)+((8191&i)<<13)|0;u=(a+(i>>>13)|0)+(zt>>>26)|0,zt&=67108863,n=Math.imul(j,ht),i=Math.imul(j,ft),i=i+Math.imul(N,ht)|0,a=Math.imul(N,ft),n=n+Math.imul(O,pt)|0,i=i+Math.imul(O,mt)|0,i=i+Math.imul(R,pt)|0,a=a+Math.imul(R,mt)|0;var Dt=(u+n|0)+((8191&i)<<13)|0;u=(a+(i>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,n=Math.imul(j,pt),i=Math.imul(j,mt),i=i+Math.imul(N,pt)|0,a=Math.imul(N,mt);var Pt=(u+n|0)+((8191&i)<<13)|0;return u=(a+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,l[0]=vt,l[1]=gt,l[2]=yt,l[3]=bt,l[4]=xt,l[5]=_t,l[6]=wt,l[7]=Mt,l[8]=kt,l[9]=At,l[10]=Tt,l[11]=St,l[12]=Et,l[13]=Lt,l[14]=Ct,l[15]=It,l[16]=zt,l[17]=Dt,l[18]=Pt,0!==u&&(l[19]=u,r.length++),r};Math.imul||(k=u),a.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?k(this,t,e):r<63?u(this,t,e):r<1024?c(this,t,e):h(this,t,e)},f.prototype.makeRBT=function(t){for(var e=new Array(t),r=a.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,r,t);return e},f.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},f.prototype.permute=function(t,e,r,n,i,a){for(var o=0;o<a;o++)n[o]=e[t[o]],i[o]=r[t[o]]},f.prototype.transform=function(t,e,r,n,i,a){this.permute(a,t,e,r,n,i);for(var o=1;o<i;o<<=1)for(var s=o<<1,l=Math.cos(2*Math.PI/s),u=Math.sin(2*Math.PI/s),c=0;c<i;c+=s)for(var h=l,f=u,d=0;d<o;d++){var p=r[c+d],m=n[c+d],v=r[c+d+o],g=n[c+d+o],y=h*v-f*g;g=h*g+f*v,v=y,r[c+d]=p+v,n[c+d]=m+g,r[c+d+o]=p-v,n[c+d+o]=m-g,d!==s&&(y=l*h-u*f,f=l*f+u*h,h=y)}},f.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},f.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},f.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&i,r=i<67108864?0:i/67108864|0}return t},f.prototype.convert13b=function(t,e,r,i){for(var a=0,o=0;o<e;o++)a+=0|t[o],r[2*o]=8191&a,a>>>=13,r[2*o+1]=8191&a,a>>>=13;for(o=2*e;o<i;++o)r[o]=0;n(0===a),n(0==(-8192&a))},f.prototype.stub=function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=0;return e},f.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),a=this.stub(n),o=new Array(n),s=new Array(n),l=new Array(n),u=new Array(n),c=new Array(n),h=new Array(n),f=r.words;f.length=n,this.convert13b(t.words,t.length,o,n),this.convert13b(e.words,e.length,u,n),this.transform(o,a,s,l,n,i),this.transform(u,a,c,h,n,i);for(var d=0;d<n;d++){var p=s[d]*c[d]-l[d]*h[d];l[d]=s[d]*h[d]+l[d]*c[d],s[d]=p}return this.conjugate(s,l,n),this.transform(s,l,f,a,n,i),this.conjugate(f,a,n),this.normalize13b(f,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r.strip()},a.prototype.mul=function(t){var e=new a(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},a.prototype.mulf=function(t){var e=new a(null);return e.words=new Array(this.length+t.length),h(this,t,e)},a.prototype.imul=function(t){return this.clone().mulTo(t,this)},a.prototype.imuln=function(t){n(\"number\"==typeof t),n(t<67108864);for(var e=0,r=0;r<this.length;r++){var i=(0|this.words[r])*t,a=(67108863&i)+(67108863&e);e>>=26,e+=i/67108864|0,e+=a>>>26,this.words[r]=67108863&a}return 0!==e&&(this.words[r]=e,this.length++),this},a.prototype.muln=function(t){return this.clone().imuln(t)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(t){var e=l(t);if(0===e.length)return new a(1);for(var r=this,n=0;n<e.length&&0===e[n];n++,r=r.sqr());if(++n<e.length)for(var i=r.sqr();n<e.length;n++,i=i.sqr())0!==e[n]&&(r=r.mul(i));return r},a.prototype.iushln=function(t){n(\"number\"==typeof t&&t>=0);var e,r=t%26,i=(t-r)/26,a=67108863>>>26-r<<26-r;if(0!==r){var o=0;for(e=0;e<this.length;e++){var s=this.words[e]&a,l=(0|this.words[e])-s<<r;this.words[e]=l|o,o=s>>>26-r}o&&(this.words[e]=o,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this.strip()},a.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},a.prototype.iushrn=function(t,e,r){n(\"number\"==typeof t&&t>=0);var i;i=e?(e-e%26)/26:0;var a=t%26,o=Math.min((t-a)/26,this.length),s=67108863^67108863>>>a<<a,l=r;if(i-=o,i=Math.max(0,i),l){for(var u=0;u<o;u++)l.words[u]=this.words[u];l.length=o}if(0===o);else if(this.length>o)for(this.length-=o,u=0;u<this.length;u++)this.words[u]=this.words[u+o];else this.words[0]=0,this.length=1;var c=0;for(u=this.length-1;u>=0&&(0!==c||u>=i);u--){var h=0|this.words[u];this.words[u]=c<<26-a|h>>>a,c=h&s}return l&&0!==c&&(l.words[l.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},a.prototype.shln=function(t){return this.clone().ishln(t)},a.prototype.ushln=function(t){return this.clone().iushln(t)},a.prototype.shrn=function(t){return this.clone().ishrn(t)},a.prototype.ushrn=function(t){return this.clone().iushrn(t)},a.prototype.testn=function(t){n(\"number\"==typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<<e;return!(this.length<=r)&&!!(this.words[r]&i)},a.prototype.imaskn=function(t){n(\"number\"==typeof t&&t>=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,\"imaskn works only with positive numbers\"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this.strip()},a.prototype.maskn=function(t){return this.clone().imaskn(t)},a.prototype.iaddn=function(t){return n(\"number\"==typeof t),n(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},a.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},a.prototype.isubn=function(t){if(n(\"number\"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},a.prototype.addn=function(t){return this.clone().iaddn(t)},a.prototype.subn=function(t){return this.clone().isubn(t)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(t,e,r){var i,a=t.length+r;this._expand(a);var o,s=0;for(i=0;i<t.length;i++){o=(0|this.words[i+r])+s;var l=(0|t.words[i])*e;o-=67108863&l,s=(o>>26)-(l/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)o=(0|this.words[i+r])+s,s=o>>26,this.words[i+r]=67108863&o;if(0===s)return this.strip();for(n(-1===s),s=0,i=0;i<this.length;i++)o=-(0|this.words[i])+s,s=o>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},a.prototype._wordDiv=function(t,e){var r=this.length-t.length,n=this.clone(),i=t,o=0|i.words[i.length-1];0!==(r=26-this._countBits(o))&&(i=i.ushln(r),n.iushln(r),o=0|i.words[i.length-1]);var s,l=n.length-i.length;if(\"mod\"!==e){s=new a(null),s.length=l+1,s.words=new Array(s.length);for(var u=0;u<s.length;u++)s.words[u]=0}var c=n.clone()._ishlnsubmul(i,1,l);0===c.negative&&(n=c,s&&(s.words[l]=1));for(var h=l-1;h>=0;h--){var f=67108864*(0|n.words[i.length+h])+(0|n.words[i.length+h-1]);for(f=Math.min(f/o|0,67108863),n._ishlnsubmul(i,f,h);0!==n.negative;)f--,n.negative=0,n._ishlnsubmul(i,1,h),n.isZero()||(n.negative^=1);s&&(s.words[h]=f)}return s&&s.strip(),n.strip(),\"div\"!==e&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},a.prototype.divmod=function(t,e,r){if(n(!t.isZero()),this.isZero())return{div:new a(0),mod:new a(0)};var i,o,s;return 0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),\"mod\"!==e&&(i=s.div.neg()),\"div\"!==e&&(o=s.mod.neg(),r&&0!==o.negative&&o.iadd(t)),{div:i,mod:o}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),\"mod\"!==e&&(i=s.div.neg()),{div:i,mod:s.mod}):0!=(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),\"div\"!==e&&(o=s.mod.neg(),r&&0!==o.negative&&o.isub(t)),{div:s.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new a(0),mod:this}:1===t.length?\"div\"===e?{div:this.divn(t.words[0]),mod:null}:\"mod\"===e?{div:null,mod:new a(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new a(this.modn(t.words[0]))}:this._wordDiv(t,e)},a.prototype.div=function(t){return this.divmod(t,\"div\",!1).div},a.prototype.mod=function(t){return this.divmod(t,\"mod\",!1).mod},a.prototype.umod=function(t){return this.divmod(t,\"mod\",!0).mod},a.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),a=r.cmp(n);return a<0||1===i&&0===a?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},a.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,r=0,i=this.length-1;i>=0;i--)r=(e*r+(0|this.words[i]))%t;return r},a.prototype.idivn=function(t){n(t<=67108863);for(var e=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*e;this.words[r]=i/t|0,e=i%t}return this.strip()},a.prototype.divn=function(t){return this.clone().idivn(t)},a.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new a(1),o=new a(0),s=new a(0),l=new a(1),u=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++u;for(var c=r.clone(),h=e.clone();!e.isZero();){for(var f=0,d=1;0==(e.words[0]&d)&&f<26;++f,d<<=1);if(f>0)for(e.iushrn(f);f-- >0;)(i.isOdd()||o.isOdd())&&(i.iadd(c),o.isub(h)),i.iushrn(1),o.iushrn(1);for(var p=0,m=1;0==(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||l.isOdd())&&(s.iadd(c),l.isub(h)),s.iushrn(1),l.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(s),o.isub(l)):(r.isub(e),s.isub(i),l.isub(o))}return{a:s,b:l,gcd:r.iushln(u)}},a.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new a(1),o=new a(0),s=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var l=0,u=1;0==(e.words[0]&u)&&l<26;++l,u<<=1);if(l>0)for(e.iushrn(l);l-- >0;)i.isOdd()&&i.iadd(s),i.iushrn(1);for(var c=0,h=1;0==(r.words[0]&h)&&c<26;++c,h<<=1);if(c>0)for(r.iushrn(c);c-- >0;)o.isOdd()&&o.iadd(s),o.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(o)):(r.isub(e),o.isub(i))}var f;return f=0===e.cmpn(1)?i:o,f.cmpn(0)<0&&f.iadd(t),f},a.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var a=e;e=r,r=a}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},a.prototype.invm=function(t){return this.egcd(t).a.umod(t)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(t){return this.words[0]&t},a.prototype.bincn=function(t){n(\"number\"==typeof t);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var a=i,o=r;0!==a&&o<this.length;o++){var s=0|this.words[o];s+=a,a=s>>>26,s&=67108863,this.words[o]=s}return 0!==a&&(this.words[o]=a,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(t){var e=t<0;if(0!==this.negative&&!e)return-1;if(0===this.negative&&e)return 1;this.strip();var r;if(this.length>1)r=1;else{e&&(t=-t),n(t<=67108863,\"Number is too big\");var i=0|this.words[0];r=i===t?0:i<t?-1:1}return 0!==this.negative?0|-r:r},a.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},a.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:n>i&&(e=1);break}}return e},a.prototype.gtn=function(t){return 1===this.cmpn(t)},a.prototype.gt=function(t){return 1===this.cmp(t)},a.prototype.gten=function(t){return this.cmpn(t)>=0},a.prototype.gte=function(t){return this.cmp(t)>=0},a.prototype.ltn=function(t){return-1===this.cmpn(t)},a.prototype.lt=function(t){return-1===this.cmp(t)},a.prototype.lten=function(t){return this.cmpn(t)<=0},a.prototype.lte=function(t){return this.cmp(t)<=0},a.prototype.eqn=function(t){return 0===this.cmpn(t)},a.prototype.eq=function(t){return 0===this.cmp(t)},a.red=function(t){return new y(t)},a.prototype.toRed=function(t){return n(!this.red,\"Already a number in reduction context\"),n(0===this.negative,\"red works only with positives\"),t.convertTo(this)._forceRed(t)},a.prototype.fromRed=function(){return n(this.red,\"fromRed works only with numbers in reduction context\"),this.red.convertFrom(this)},a.prototype._forceRed=function(t){return this.red=t,this},a.prototype.forceRed=function(t){return n(!this.red,\"Already a number in reduction context\"),this._forceRed(t)},a.prototype.redAdd=function(t){return n(this.red,\"redAdd works only with red numbers\"),this.red.add(this,t)},a.prototype.redIAdd=function(t){return n(this.red,\"redIAdd works only with red numbers\"),this.red.iadd(this,t)},a.prototype.redSub=function(t){return n(this.red,\"redSub works only with red numbers\"),this.red.sub(this,t)},a.prototype.redISub=function(t){return n(this.red,\"redISub works only with red numbers\"),this.red.isub(this,t)},a.prototype.redShl=function(t){return n(this.red,\"redShl works only with red numbers\"),this.red.shl(this,t)},a.prototype.redMul=function(t){return n(this.red,\"redMul works only with red numbers\"),this.red._verify2(this,t),this.red.mul(this,t)},a.prototype.redIMul=function(t){return n(this.red,\"redMul works only with red numbers\"),this.red._verify2(this,t),this.red.imul(this,t)},a.prototype.redSqr=function(){return n(this.red,\"redSqr works only with red numbers\"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return n(this.red,\"redISqr works only with red numbers\"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return n(this.red,\"redSqrt works only with red numbers\"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return n(this.red,\"redInvm works only with red numbers\"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return n(this.red,\"redNeg works only with red numbers\"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(t){return n(this.red&&!t.red,\"redPow(normalNum)\"),this.red._verify1(this),this.red.pow(this,t)};var A={k256:null,p224:null,p192:null,p25519:null};d.prototype._tmp=function(){var t=new a(null);return t.words=new Array(Math.ceil(this.n/13)),t},d.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),r=this.imulK(r),r=r.iadd(this.tmp),e=r.bitLength()}while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):r.strip(),r},d.prototype.split=function(t,e){t.iushrn(this.n,0,e)},d.prototype.imulK=function(t){return t.imul(this.k)},i(p,d),p.prototype.split=function(t,e){for(var r=Math.min(t.length,9),n=0;n<r;n++)e.words[n]=t.words[n];if(e.length=r,t.length<=9)return t.words[0]=0,void(t.length=1);var i=t.words[9];for(e.words[e.length++]=4194303&i,n=10;n<t.length;n++){var a=0|t.words[n];t.words[n-10]=(4194303&a)<<4|i>>>22,i=a}i>>>=22,t.words[n-10]=i,0===i&&t.length>10?t.length-=10:t.length-=9},p.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(m,d),i(v,d),i(g,d),g.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=19*(0|t.words[r])+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},a._prime=function(t){if(A[t])return A[t];var e;if(\"k256\"===t)e=new p;else if(\"p224\"===t)e=new m;else if(\"p192\"===t)e=new v;else{if(\"p25519\"!==t)throw new Error(\"Unknown prime \"+t);e=new g}return A[t]=e,e},y.prototype._verify1=function(t){n(0===t.negative,\"red works only with positives\"),n(t.red,\"red works only with red numbers\")},y.prototype._verify2=function(t,e){n(0==(t.negative|e.negative),\"red works only with positives\"),n(t.red&&t.red===e.red,\"red works only with red numbers\")},y.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},y.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},y.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},y.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},y.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},y.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},y.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},y.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},y.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},y.prototype.isqr=function(t){return this.imul(t,t.clone())},y.prototype.sqr=function(t){return this.mul(t,t)},y.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var r=this.m.add(new a(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),o=0;!i.isZero()&&0===i.andln(1);)o++,i.iushrn(1);n(!i.isZero());var s=new a(1).toRed(this),l=s.redNeg(),u=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new a(2*c*c).toRed(this);0!==this.pow(c,u).cmp(l);)c.redIAdd(l);for(var h=this.pow(c,i),f=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=o;0!==d.cmp(s);){for(var m=d,v=0;0!==m.cmp(s);v++)m=m.redSqr();n(v<p);var g=this.pow(h,new a(1).iushln(p-v-1));f=f.redMul(g),h=g.redSqr(),d=d.redMul(h),p=v}return f},y.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},y.prototype.pow=function(t,e){if(e.isZero())return new a(1);if(0===e.cmpn(1))return t.clone();var r=new Array(16);r[0]=new a(1).toRed(this),r[1]=t;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],t);var i=r[0],o=0,s=0,l=e.bitLength()%26;for(0===l&&(l=26),n=e.length-1;n>=0;n--){for(var u=e.words[n],c=l-1;c>=0;c--){var h=u>>c&1;i!==r[0]&&(i=this.sqr(i)),0!==h||0!==o?(o<<=1,o|=h,(4===++s||0===n&&0===c)&&(i=this.mul(i,r[o]),s=0,o=0)):s=0}l=26}return i},y.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},y.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},a.mont=function(t){return new b(t)},i(b,y),b.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},b.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},b.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},b.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new a(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},b.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(void 0===e||e,this)},{}],69:[function(t,e,r){\"use strict\";function n(t){var e,r,n,i=t.length,a=0;for(e=0;e<i;++e)a+=t[e].length;var o=new Array(a),s=0;for(e=0;e<i;++e){var l=t[e],u=l.length;for(r=0;r<u;++r){var c=o[s++]=new Array(u-1),h=0;for(n=0;n<u;++n)n!==r&&(c[h++]=l[n]);if(1&r){var f=c[1];c[1]=c[0],c[0]=f}}}return o}e.exports=n},{}],70:[function(t,e,r){\"use strict\";function n(t,e){for(var r=0;r<t;++r)if(!(e[r]<=e[r+t]))return!0;return!1}function i(t,e,r,i){for(var a=0,o=0,s=0,l=t.length;s<l;++s){var u=t[s];if(!n(e,u)){for(var c=0;c<2*e;++c)r[a++]=u[c];i[o++]=s}}return o}function a(t,e,r,n){var a=t.length,o=e.length;if(!(a<=0||o<=0)){var s=t[0].length>>>1;if(!(s<=0)){var l,u=h.mallocDouble(2*s*a),c=h.mallocInt32(a);if((a=i(t,s,u,c))>0){if(1===s&&n)f.init(a),l=f.sweepComplete(s,r,0,a,u,c,0,a,u,c);else{var p=h.mallocDouble(2*s*o),m=h.mallocInt32(o);o=i(e,s,p,m),o>0&&(f.init(a+o),l=1===s?f.sweepBipartite(s,r,0,a,u,c,0,o,p,m):d(s,r,n,a,u,c,o,p,m),h.free(p),h.free(m))}h.free(u),h.free(c)}return l}}}function o(t,e){c.push([t,e])}function s(t){return c=[],a(t,t,o,!0),c}function l(t,e){return c=[],a(t,e,o,!1),c}function u(t,e,r){switch(arguments.length){case 1:return s(t);case 2:return\"function\"==typeof e?a(t,t,e,!0):l(t,e);case 3:return a(t,e,r,!1);default:throw new Error(\"box-intersect: Invalid arguments\")}}e.exports=u;var c,h=t(\"typedarray-pool\"),f=t(\"./lib/sweep\"),d=t(\"./lib/intersect\")},{\"./lib/intersect\":72,\"./lib/sweep\":76,\"typedarray-pool\":541}],71:[function(t,e,r){\"use strict\";function n(t,e,r){var n=\"bruteForce\"+(t?\"Red\":\"Blue\")+(e?\"Flip\":\"\")+(r?\"Full\":\"\"),i=[\"function \",n,\"(\",w.join(),\"){\",\"var \",u,\"=2*\",a,\";\"],l=\"for(var i=\"+c+\",\"+p+\"=\"+u+\"*\"+c+\";i<\"+h+\";++i,\"+p+\"+=\"+u+\"){var x0=\"+f+\"[\"+o+\"+\"+p+\"],x1=\"+f+\"[\"+o+\"+\"+p+\"+\"+a+\"],xi=\"+d+\"[i];\",M=\"for(var j=\"+m+\",\"+b+\"=\"+u+\"*\"+m+\";j<\"+v+\";++j,\"+b+\"+=\"+u+\"){var y0=\"+g+\"[\"+o+\"+\"+b+\"],\"+(r?\"y1=\"+g+\"[\"+o+\"+\"+b+\"+\"+a+\"],\":\"\")+\"yi=\"+y+\"[j];\";return t?i.push(l,_,\":\",M):i.push(M,_,\":\",l),r?i.push(\"if(y1<x0||x1<y0)continue;\"):e?i.push(\"if(y0<=x0||x1<y0)continue;\"):i.push(\"if(y0<x0||x1<y0)continue;\"),i.push(\"for(var k=\"+o+\"+1;k<\"+a+\";++k){var r0=\"+f+\"[k+\"+p+\"],r1=\"+f+\"[k+\"+a+\"+\"+p+\"],b0=\"+g+\"[k+\"+b+\"],b1=\"+g+\"[k+\"+a+\"+\"+b+\"];if(r1<b0||b1<r0)continue \"+_+\";}var \"+x+\"=\"+s+\"(\"),e?i.push(\"yi,xi\"):i.push(\"xi,yi\"),i.push(\");if(\"+x+\"!==void 0)return \"+x+\";}}}\"),{name:n,code:i.join(\"\")}}function i(t){function e(e,r){var a=n(e,r,t);i.push(a.code),o.push(\"return \"+a.name+\"(\"+w.join()+\");\")}var r=\"bruteForce\"+(t?\"Full\":\"Partial\"),i=[],a=w.slice();t||a.splice(3,0,l);var o=[\"function \"+r+\"(\"+a.join()+\"){\"];o.push(\"if(\"+h+\"-\"+c+\">\"+v+\"-\"+m+\"){\"),t?(e(!0,!1),o.push(\"}else{\"),e(!1,!1)):(o.push(\"if(\"+l+\"){\"),e(!0,!0),o.push(\"}else{\"),e(!0,!1),o.push(\"}}else{if(\"+l+\"){\"),e(!1,!0),o.push(\"}else{\"),e(!1,!1),o.push(\"}\")),o.push(\"}}return \"+r);var s=i.join(\"\")+o.join(\"\");return new Function(s)()}var a=\"d\",o=\"ax\",s=\"vv\",l=\"fp\",u=\"es\",c=\"rs\",h=\"re\",f=\"rb\",d=\"ri\",p=\"rp\",m=\"bs\",v=\"be\",g=\"bb\",y=\"bi\",b=\"bp\",x=\"rv\",_=\"Q\",w=[a,o,s,c,h,f,d,m,v,g,y];r.partial=i(!1),r.full=i(!0)},{}],72:[function(t,e,r){\"use strict\";function n(t,e){var r=8*u.log2(e+1)*(t+1)|0,n=u.nextPow2(A*r);S.length<n&&(l.free(S),S=l.mallocInt32(n));var i=u.nextPow2(T*r);E<i&&(l.free(E),E=l.mallocDouble(i))}function i(t,e,r,n,i,a,o,s,l){var u=A*t;S[u]=e,S[u+1]=r,S[u+2]=n,S[u+3]=i,S[u+4]=a,S[u+5]=o;var c=T*t;E[c]=s,E[c+1]=l}function a(t,e,r,n,i,a,o,s,l,u,c){var h=2*t,f=l*h,d=u[f+e];t:for(var p=i,m=i*h;p<a;++p,m+=h){var v=o[m+e],g=o[m+e+t];if(!(d<v||g<d)&&(!n||d!==v)){for(var y=s[p],b=e+1;b<t;++b){var v=o[m+b],g=o[m+b+t],x=u[f+b],_=u[f+b+t];if(g<x||_<v)continue t}var w;if(void 0!==(w=n?r(c,y):r(y,c)))return w}}}function o(t,e,r,n,i,a,o,s,l,u){var c=2*t,h=s*c,f=l[h+e];t:for(var d=n,p=n*c;d<i;++d,p+=c){var m=o[d];if(m!==u){var v=a[p+e],g=a[p+e+t];if(!(f<v||g<f)){for(var y=e+1;y<t;++y){var v=a[p+y],g=a[p+y+t],b=l[h+y],x=l[h+y+t];if(g<b||x<v)continue t}var _=r(m,u);if(void 0!==_)return _}}}}function s(t,e,r,s,l,u,c,m,L){n(t,s+c);var C,I=0,z=2*t;for(i(I++,0,0,s,0,c,r?16:0,-1/0,1/0),r||i(I++,0,0,c,0,s,1,-1/0,1/0);I>0;){I-=1;var D=I*A,P=S[D],O=S[D+1],R=S[D+2],F=S[D+3],j=S[D+4],N=S[D+5],B=I*T,U=E[B],V=E[B+1],H=1&N,q=!!(16&N),G=l,Y=u,W=m,X=L;if(H&&(G=m,Y=L,W=l,X=u),!(2&N&&(R=_(t,P,O,R,G,Y,V),O>=R)||4&N&&(O=w(t,P,O,R,G,Y,U))>=R)){var Z=R-O,J=j-F;if(q){if(t*Z*(Z+J)<y){if(void 0!==(C=d.scanComplete(t,P,e,O,R,G,Y,F,j,W,X)))return C;continue}}else{if(t*Math.min(Z,J)<v){if(void 0!==(C=h(t,P,e,H,O,R,G,Y,F,j,W,X)))return C;continue}if(t*Z*J<g){if(void 0!==(C=d.scanBipartite(t,P,e,H,O,R,G,Y,F,j,W,X)))return C;continue}}var K=b(t,P,O,R,G,Y,U,V);if(O<K)if(t*(K-O)<v){if(void 0!==(C=f(t,P+1,e,O,K,G,Y,F,j,W,X)))return C}else if(P===t-2){if(void 0!==(C=H?d.sweepBipartite(t,e,F,j,W,X,O,K,G,Y):d.sweepBipartite(t,e,O,K,G,Y,F,j,W,X)))return C}else i(I++,P+1,O,K,F,j,H,-1/0,1/0),i(I++,P+1,F,j,O,K,1^H,-1/0,1/0);if(K<R){var Q=p(t,P,F,j,W,X),$=W[z*Q+P],tt=x(t,P,Q,j,W,X,$);if(tt<j&&i(I++,P,K,R,tt,j,(4|H)+(q?16:0),$,V),F<Q&&i(I++,P,K,R,F,Q,(2|H)+(q?16:0),U,$),Q+1===tt){if(void 0!==(C=q?o(t,P,e,K,R,G,Y,Q,W,X[Q]):a(t,P,e,H,K,R,G,Y,Q,W,X[Q])))return C}else if(Q<tt){var et;if(q){if(et=M(t,P,K,R,G,Y,$),K<et){var rt=x(t,P,K,et,G,Y,$);if(P===t-2){if(K<rt&&void 0!==(C=d.sweepComplete(t,e,K,rt,G,Y,Q,tt,W,X)))return C;if(rt<et&&void 0!==(C=d.sweepBipartite(t,e,rt,et,G,Y,Q,tt,W,X)))return C}else K<rt&&i(I++,P+1,K,rt,Q,tt,16,-1/0,1/0),rt<et&&(i(I++,P+1,rt,et,Q,tt,0,-1/0,1/0),i(I++,P+1,Q,tt,rt,et,1,-1/0,1/0))}}else et=H?k(t,P,K,R,G,Y,$):M(t,P,K,R,G,Y,$),K<et&&(P===t-2?C=H?d.sweepBipartite(t,e,Q,tt,W,X,K,et,G,Y):d.sweepBipartite(t,e,K,et,G,Y,Q,tt,W,X):(i(I++,P+1,K,et,Q,tt,H,-1/0,1/0),i(I++,P+1,Q,tt,K,et,1^H,-1/0,1/0)))}}}}}e.exports=s;var l=t(\"typedarray-pool\"),u=t(\"bit-twiddle\"),c=t(\"./brute\"),h=c.partial,f=c.full,d=t(\"./sweep\"),p=t(\"./median\"),m=t(\"./partition\"),v=128,g=1<<22,y=1<<22,b=m(\"!(lo>=p0)&&!(p1>=hi)\",[\"p0\",\"p1\"]),x=m(\"lo===p0\",[\"p0\"]),_=m(\"lo<p0\",[\"p0\"]),w=m(\"hi<=p0\",[\"p0\"]),M=m(\"lo<=p0&&p0<=hi\",[\"p0\"]),k=m(\"lo<p0&&p0<=hi\",[\"p0\"]),A=6,T=2,S=l.mallocInt32(1024),E=l.mallocDouble(1024)},{\"./brute\":71,\"./median\":73,\"./partition\":74,\"./sweep\":76,\"bit-twiddle\":67,\"typedarray-pool\":541}],73:[function(t,e,r){\"use strict\";function n(t,e,r,n,i,a){for(var o=2*t,s=o*(r+1)+e,l=r+1;l<n;++l,s+=o)for(var u=i[s],c=l,h=o*(l-1);c>r&&i[h+e]>u;--c,h-=o){for(var f=h,d=h+o,p=0;p<o;++p,++f,++d){var m=i[f];i[f]=i[d],i[d]=m}var v=a[c];a[c]=a[c-1],a[c-1]=v}}function i(t,e,r,i,a,l){if(i<=r+1)return r;for(var u=r,c=i,h=i+r>>>1,f=2*t,d=h,p=a[f*h+e];u<c;){if(c-u<s){n(t,e,u,c,a,l),p=a[f*h+e];break}var m=c-u,v=Math.random()*m+u|0,g=a[f*v+e],y=Math.random()*m+u|0,b=a[f*y+e],x=Math.random()*m+u|0,_=a[f*x+e];g<=b?_>=b?(d=y,p=b):g>=_?(d=v,p=g):(d=x,p=_):b>=_?(d=y,p=b):_>=g?(d=v,p=g):(d=x,p=_);for(var w=f*(c-1),M=f*d,k=0;k<f;++k,++w,++M){var A=a[w];a[w]=a[M],a[M]=A}var T=l[c-1];l[c-1]=l[d],l[d]=T,d=o(t,e,u,c-1,a,l,p);for(var w=f*(c-1),M=f*d,k=0;k<f;++k,++w,++M){var A=a[w];a[w]=a[M],a[M]=A}var T=l[c-1];if(l[c-1]=l[d],l[d]=T,h<d){for(c=d-1;u<c&&a[f*(c-1)+e]===p;)c-=1;c+=1}else{if(!(d<h))break;for(u=d+1;u<c&&a[f*u+e]===p;)u+=1}}return o(t,e,r,h,a,l,a[f*h+e])}e.exports=i;var a=t(\"./partition\"),o=a(\"lo<p0\",[\"p0\"]),s=8},{\"./partition\":74}],74:[function(t,e,r){\"use strict\";function n(t,e){var r=\"abcdef\".split(\"\").concat(e),n=[];return t.indexOf(\"lo\")>=0&&n.push(\"lo=e[k+n]\"),t.indexOf(\"hi\")>=0&&n.push(\"hi=e[k+o]\"),r.push(i.replace(\"_\",n.join()).replace(\"$\",t)),Function.apply(void 0,r)}e.exports=n;var i=\"for(var j=2*a,k=j*c,l=k,m=c,n=b,o=a+b,p=c;d>p;++p,k+=j){var _;if($)if(m===p)m+=1,l+=j;else{for(var s=0;j>s;++s){var t=e[k+s];e[k+s]=e[l],e[l++]=t}var u=f[p];f[p]=f[m],f[m++]=u}}return m\"},{}],75:[function(t,e,r){\"use strict\";function n(t,e){e<=4*f?i(0,e-1,t):h(0,e-1,t)}function i(t,e,r){for(var n=2*(t+1),i=t+1;i<=e;++i){for(var a=r[n++],o=r[n++],s=i,l=n-2;s-- >t;){var u=r[l-2],c=r[l-1];if(u<a)break;if(u===a&&c<o)break;r[l]=u,r[l+1]=c,l-=2}r[l]=a,r[l+1]=o}}function a(t,e,r){t*=2,e*=2;var n=r[t],i=r[t+1];r[t]=r[e],r[t+1]=r[e+1],r[e]=n,r[e+1]=i}function o(t,e,r){t*=2,e*=2,r[t]=r[e],r[t+1]=r[e+1]}function s(t,e,r,n){t*=2,e*=2,r*=2;var i=n[t],a=n[t+1];n[t]=n[e],n[t+1]=n[e+1],n[e]=n[r],n[e+1]=n[r+1],n[r]=i,n[r+1]=a}function l(t,e,r,n,i){t*=2,e*=2,i[t]=i[e],i[e]=r,i[t+1]=i[e+1],i[e+1]=n}function u(t,e,r){t*=2,e*=2;var n=r[t],i=r[e];return!(n<i)&&(n!==i||r[t+1]>r[e+1])}function c(t,e,r,n){t*=2;var i=n[t];return i<e||i===e&&n[t+1]<r}function h(t,e,r){var n=(e-t+1)/6|0,d=t+n,p=e-n,m=t+e>>1,v=m-n,g=m+n,y=d,b=v,x=m,_=g,w=p,M=t+1,k=e-1,A=0;u(y,b,r)&&(A=y,y=b,b=A),u(_,w,r)&&(A=_,_=w,w=A),u(y,x,r)&&(A=y,y=x,x=A),u(b,x,r)&&(A=b,b=x,x=A),u(y,_,r)&&(A=y,y=_,_=A),u(x,_,r)&&(A=x,x=_,_=A),u(b,w,r)&&(A=b,b=w,w=A),u(b,x,r)&&(A=b,b=x,x=A),u(_,w,r)&&(A=_,_=w,w=A);for(var T=r[2*b],S=r[2*b+1],E=r[2*_],L=r[2*_+1],C=2*y,I=2*x,z=2*w,D=2*d,P=2*m,O=2*p,R=0;R<2;++R){var F=r[C+R],j=r[I+R],N=r[z+R];r[D+R]=F,r[P+R]=j,r[O+R]=N}o(v,t,r),o(g,e,r);for(var B=M;B<=k;++B)if(c(B,T,S,r))B!==M&&a(B,M,r),++M;else if(!c(B,E,L,r))for(;;){if(c(k,E,L,r)){c(k,T,S,r)?(s(B,M,k,r),++M,--k):(a(B,k,r),--k);break}if(--k<B)break}l(t,M-1,T,S,r),l(e,k+1,E,L,r),M-2-t<=f?i(t,M-2,r):h(t,M-2,r),e-(k+2)<=f?i(k+2,e,r):h(k+2,e,r),k-M<=f?i(M,k,r):h(M,k,r)}e.exports=n;var f=32},{}],76:[function(t,e,r){\"use strict\";function n(t){var e=h.nextPow2(t);p.length<e&&(c.free(p),p=c.mallocInt32(e)),m.length<e&&(c.free(m),m=c.mallocInt32(e)),v.length<e&&(c.free(v),v=c.mallocInt32(e)),g.length<e&&(c.free(g),g=c.mallocInt32(e)),y.length<e&&(c.free(y),y=c.mallocInt32(e)),b.length<e&&(c.free(b),b=c.mallocInt32(e));var r=8*e;x.length<r&&(c.free(x),x=c.mallocDouble(r))}function i(t,e,r,n){var i=e[n],a=t[r-1];t[i]=a,e[a]=i}function a(t,e,r,n){t[r]=n,e[n]=r}function o(t,e,r,n,o,s,l,u,c,h){for(var y=0,b=2*t,_=t-1,w=b-1,M=r;M<n;++M){var k=s[M],A=b*M;x[y++]=o[A+_],x[y++]=-(k+1),x[y++]=o[A+w],x[y++]=k}for(var M=l;M<u;++M){var k=h[M]+d,T=b*M;x[y++]=c[T+_],x[y++]=-k,x[y++]=c[T+w],x[y++]=k}var S=y>>>1;f(x,S);for(var E=0,L=0,M=0;M<S;++M){var C=0|x[2*M+1];if(C>=d)C=C-d|0,i(v,g,L--,C);else if(C>=0)i(p,m,E--,C);else if(C<=-d){C=-C-d|0;for(var I=0;I<E;++I){var z=e(p[I],C);if(void 0!==z)return z}a(v,g,L++,C)}else{C=-C-1|0;for(var I=0;I<L;++I){var z=e(C,v[I]);if(void 0!==z)return z}a(p,m,E++,C)}}}function s(t,e,r,n,o,s,l,u,c,h){for(var d=0,_=2*t,w=t-1,M=_-1,k=r;k<n;++k){var A=s[k]+1<<1,T=_*k;x[d++]=o[T+w],x[d++]=-A,x[d++]=o[T+M],x[d++]=A}for(var k=l;k<u;++k){var A=h[k]+1<<1,S=_*k;x[d++]=c[S+w],x[d++]=1|-A,x[d++]=c[S+M],x[d++]=1|A}var E=d>>>1;f(x,E);for(var L=0,C=0,I=0,k=0;k<E;++k){var z=0|x[2*k+1],D=1&z;if(k<E-1&&z>>1==x[2*k+3]>>1&&(D=2,k+=1),z<0){for(var P=-(z>>1)-1,O=0;O<I;++O){var R=e(y[O],P);if(void 0!==R)return R}if(0!==D)for(var O=0;O<L;++O){var R=e(p[O],P);if(void 0!==R)return R}if(1!==D)for(var O=0;O<C;++O){var R=e(v[O],P);if(void 0!==R)return R}0===D?a(p,m,L++,P):1===D?a(v,g,C++,P):2===D&&a(y,b,I++,P)}else{var P=(z>>1)-1;0===D?i(p,m,L--,P):1===D?i(v,g,C--,P):2===D&&i(y,b,I--,P)}}}function l(t,e,r,n,o,s,l,u,c,h,v,g){var y=0,b=2*t,_=e,w=e+t,M=1,k=1;n?k=d:M=d\n", ";for(var A=o;A<s;++A){var T=A+M,S=b*A;x[y++]=l[S+_],x[y++]=-T,x[y++]=l[S+w],x[y++]=T}for(var A=c;A<h;++A){var T=A+k,E=b*A;x[y++]=v[E+_],x[y++]=-T}var L=y>>>1;f(x,L);for(var C=0,A=0;A<L;++A){var I=0|x[2*A+1];if(I<0){var T=-I,z=!1;if(T>=d?(z=!n,T-=d):(z=!!n,T-=1),z)a(p,m,C++,T);else{var D=g[T],P=b*T,O=v[P+e+1],R=v[P+e+1+t];t:for(var F=0;F<C;++F){var j=p[F],N=b*j;if(!(R<l[N+e+1]||l[N+e+1+t]<O)){for(var B=e+2;B<t;++B)if(v[P+B+t]<l[N+B]||l[N+B+t]<v[P+B])continue t;var U,V=u[j];if(void 0!==(U=n?r(D,V):r(V,D)))return U}}}}else i(p,m,C--,I-M)}}function u(t,e,r,n,i,a,o,s,l,u,c){for(var h=0,m=2*t,v=e,g=e+t,y=n;y<i;++y){var b=y+d,_=m*y;x[h++]=a[_+v],x[h++]=-b,x[h++]=a[_+g],x[h++]=b}for(var y=s;y<l;++y){var b=y+1,w=m*y;x[h++]=u[w+v],x[h++]=-b}var M=h>>>1;f(x,M);for(var k=0,y=0;y<M;++y){var A=0|x[2*y+1];if(A<0){var b=-A;if(b>=d)p[k++]=b-d;else{b-=1;var T=c[b],S=m*b,E=u[S+e+1],L=u[S+e+1+t];t:for(var C=0;C<k;++C){var I=p[C],z=o[I];if(z===T)break;var D=m*I;if(!(L<a[D+e+1]||a[D+e+1+t]<E)){for(var P=e+2;P<t;++P)if(u[S+P+t]<a[D+P]||a[D+P+t]<u[S+P])continue t;var O=r(z,T);if(void 0!==O)return O}}}}else{for(var b=A-d,C=k-1;C>=0;--C)if(p[C]===b){for(var P=C+1;P<k;++P)p[P-1]=p[P];break}--k}}}e.exports={init:n,sweepBipartite:o,sweepComplete:s,scanBipartite:l,scanComplete:u};var c=t(\"typedarray-pool\"),h=t(\"bit-twiddle\"),f=t(\"./sort\"),d=1<<28,p=c.mallocInt32(1024),m=c.mallocInt32(1024),v=c.mallocInt32(1024),g=c.mallocInt32(1024),y=c.mallocInt32(1024),b=c.mallocInt32(1024),x=c.mallocDouble(8192)},{\"./sort\":75,\"bit-twiddle\":67,\"typedarray-pool\":541}],77:[function(t,e,r){\"use strict\";function n(t){if(t>Z)throw new RangeError(\"Invalid typed array length\");var e=new Uint8Array(t);return e.__proto__=i.prototype,e}function i(t,e,r){if(\"number\"==typeof t){if(\"string\"==typeof e)throw new Error(\"If encoding is specified then the first argument must be a string\");return l(t)}return a(t,e,r)}function a(t,e,r){if(\"number\"==typeof t)throw new TypeError('\"value\" argument must not be a number');return t instanceof ArrayBuffer?h(t,e,r):\"string\"==typeof t?u(t,e):f(t)}function o(t){if(\"number\"!=typeof t)throw new TypeError('\"size\" argument must be a number');if(t<0)throw new RangeError('\"size\" argument must not be negative')}function s(t,e,r){return o(t),t<=0?n(t):void 0!==e?\"string\"==typeof r?n(t).fill(e,r):n(t).fill(e):n(t)}function l(t){return o(t),n(t<0?0:0|d(t))}function u(t,e){if(\"string\"==typeof e&&\"\"!==e||(e=\"utf8\"),!i.isEncoding(e))throw new TypeError('\"encoding\" must be a valid string encoding');var r=0|m(t,e),a=n(r),o=a.write(t,e);return o!==r&&(a=a.slice(0,o)),a}function c(t){for(var e=t.length<0?0:0|d(t.length),r=n(e),i=0;i<e;i+=1)r[i]=255&t[i];return r}function h(t,e,r){if(e<0||t.byteLength<e)throw new RangeError(\"'offset' is out of bounds\");if(t.byteLength<e+(r||0))throw new RangeError(\"'length' is out of bounds\");var n;return n=void 0===e&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,e):new Uint8Array(t,e,r),n.__proto__=i.prototype,n}function f(t){if(i.isBuffer(t)){var e=0|d(t.length),r=n(e);return 0===r.length?r:(t.copy(r,0,0,e),r)}if(t){if(G(t)||\"length\"in t)return\"number\"!=typeof t.length||Y(t.length)?n(0):c(t);if(\"Buffer\"===t.type&&Array.isArray(t.data))return c(t.data)}throw new TypeError(\"First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.\")}function d(t){if(t>=Z)throw new RangeError(\"Attempt to allocate Buffer larger than maximum size: 0x\"+Z.toString(16)+\" bytes\");return 0|t}function p(t){return+t!=t&&(t=0),i.alloc(+t)}function m(t,e){if(i.isBuffer(t))return t.length;if(G(t)||t instanceof ArrayBuffer)return t.byteLength;\"string\"!=typeof t&&(t=\"\"+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case\"ascii\":case\"latin1\":case\"binary\":return r;case\"utf8\":case\"utf-8\":case void 0:return B(t).length;case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return 2*r;case\"hex\":return r>>>1;case\"base64\":return H(t).length;default:if(n)return B(t).length;e=(\"\"+e).toLowerCase(),n=!0}}function v(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return\"\";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return\"\";if(r>>>=0,e>>>=0,r<=e)return\"\";for(t||(t=\"utf8\");;)switch(t){case\"hex\":return I(this,e,r);case\"utf8\":case\"utf-8\":return S(this,e,r);case\"ascii\":return L(this,e,r);case\"latin1\":case\"binary\":return C(this,e,r);case\"base64\":return T(this,e,r);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return z(this,e,r);default:if(n)throw new TypeError(\"Unknown encoding: \"+t);t=(t+\"\").toLowerCase(),n=!0}}function g(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function y(t,e,r,n,a){if(0===t.length)return-1;if(\"string\"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,Y(r)&&(r=a?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(a)return-1;r=t.length-1}else if(r<0){if(!a)return-1;r=0}if(\"string\"==typeof e&&(e=i.from(e,n)),i.isBuffer(e))return 0===e.length?-1:b(t,e,r,n,a);if(\"number\"==typeof e)return e&=255,\"function\"==typeof Uint8Array.prototype.indexOf?a?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):b(t,[e],r,n,a);throw new TypeError(\"val must be string, number or Buffer\")}function b(t,e,r,n,i){function a(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}var o=1,s=t.length,l=e.length;if(void 0!==n&&(\"ucs2\"===(n=String(n).toLowerCase())||\"ucs-2\"===n||\"utf16le\"===n||\"utf-16le\"===n)){if(t.length<2||e.length<2)return-1;o=2,s/=2,l/=2,r/=2}var u;if(i){var c=-1;for(u=r;u<s;u++)if(a(t,u)===a(e,-1===c?0:u-c)){if(-1===c&&(c=u),u-c+1===l)return c*o}else-1!==c&&(u-=u-c),c=-1}else for(r+l>s&&(r=s-l),u=r;u>=0;u--){for(var h=!0,f=0;f<l;f++)if(a(t,u+f)!==a(e,f)){h=!1;break}if(h)return u}return-1}function x(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n))>i&&(n=i):n=i;var a=e.length;if(a%2!=0)throw new TypeError(\"Invalid hex string\");n>a/2&&(n=a/2);for(var o=0;o<n;++o){var s=parseInt(e.substr(2*o,2),16);if(Y(s))return o;t[r+o]=s}return o}function _(t,e,r,n){return q(B(e,t.length-r),t,r,n)}function w(t,e,r,n){return q(U(e),t,r,n)}function M(t,e,r,n){return w(t,e,r,n)}function k(t,e,r,n){return q(H(e),t,r,n)}function A(t,e,r,n){return q(V(e,t.length-r),t,r,n)}function T(t,e,r){return 0===e&&r===t.length?W.fromByteArray(t):W.fromByteArray(t.slice(e,r))}function S(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var a=t[i],o=null,s=a>239?4:a>223?3:a>191?2:1;if(i+s<=r){var l,u,c,h;switch(s){case 1:a<128&&(o=a);break;case 2:l=t[i+1],128==(192&l)&&(h=(31&a)<<6|63&l)>127&&(o=h);break;case 3:l=t[i+1],u=t[i+2],128==(192&l)&&128==(192&u)&&(h=(15&a)<<12|(63&l)<<6|63&u)>2047&&(h<55296||h>57343)&&(o=h);break;case 4:l=t[i+1],u=t[i+2],c=t[i+3],128==(192&l)&&128==(192&u)&&128==(192&c)&&(h=(15&a)<<18|(63&l)<<12|(63&u)<<6|63&c)>65535&&h<1114112&&(o=h)}}null===o?(o=65533,s=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|1023&o),n.push(o),i+=s}return E(n)}function E(t){var e=t.length;if(e<=J)return String.fromCharCode.apply(String,t);for(var r=\"\",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=J));return r}function L(t,e,r){var n=\"\";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}function C(t,e,r){var n=\"\";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function I(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i=\"\",a=e;a<r;++a)i+=N(t[a]);return i}function z(t,e,r){for(var n=t.slice(e,r),i=\"\",a=0;a<n.length;a+=2)i+=String.fromCharCode(n[a]+256*n[a+1]);return i}function D(t,e,r){if(t%1!=0||t<0)throw new RangeError(\"offset is not uint\");if(t+e>r)throw new RangeError(\"Trying to access beyond buffer length\")}function P(t,e,r,n,a,o){if(!i.isBuffer(t))throw new TypeError('\"buffer\" argument must be a Buffer instance');if(e>a||e<o)throw new RangeError('\"value\" argument is out of bounds');if(r+n>t.length)throw new RangeError(\"Index out of range\")}function O(t,e,r,n,i,a){if(r+n>t.length)throw new RangeError(\"Index out of range\");if(r<0)throw new RangeError(\"Index out of range\")}function R(t,e,r,n,i){return e=+e,r>>>=0,i||O(t,e,r,4,3.4028234663852886e38,-3.4028234663852886e38),X.write(t,e,r,n,23,4),r+4}function F(t,e,r,n,i){return e=+e,r>>>=0,i||O(t,e,r,8,1.7976931348623157e308,-1.7976931348623157e308),X.write(t,e,r,n,52,8),r+8}function j(t){if(t=t.trim().replace(K,\"\"),t.length<2)return\"\";for(;t.length%4!=0;)t+=\"=\";return t}function N(t){return t<16?\"0\"+t.toString(16):t.toString(16)}function B(t,e){e=e||1/0;for(var r,n=t.length,i=null,a=[],o=0;o<n;++o){if((r=t.charCodeAt(o))>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&a.push(239,191,189);continue}if(o+1===n){(e-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&a.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;a.push(r)}else if(r<2048){if((e-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error(\"Invalid code point\");if((e-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return a}function U(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}function V(t,e){for(var r,n,i,a=[],o=0;o<t.length&&!((e-=2)<0);++o)r=t.charCodeAt(o),n=r>>8,i=r%256,a.push(i),a.push(n);return a}function H(t){return W.toByteArray(j(t))}function q(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function G(t){return\"function\"==typeof ArrayBuffer.isView&&ArrayBuffer.isView(t)}function Y(t){return t!==t}var W=t(\"base64-js\"),X=t(\"ieee754\");r.Buffer=i,r.SlowBuffer=p,r.INSPECT_MAX_BYTES=50;var Z=2147483647;r.kMaxLength=Z,i.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()}catch(t){return!1}}(),i.TYPED_ARRAY_SUPPORT||\"undefined\"==typeof console||\"function\"!=typeof console.error||console.error(\"This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.\"),\"undefined\"!=typeof Symbol&&Symbol.species&&i[Symbol.species]===i&&Object.defineProperty(i,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),i.poolSize=8192,i.from=function(t,e,r){return a(t,e,r)},i.prototype.__proto__=Uint8Array.prototype,i.__proto__=Uint8Array,i.alloc=function(t,e,r){return s(t,e,r)},i.allocUnsafe=function(t){return l(t)},i.allocUnsafeSlow=function(t){return l(t)},i.isBuffer=function(t){return null!=t&&!0===t._isBuffer},i.compare=function(t,e){if(!i.isBuffer(t)||!i.isBuffer(e))throw new TypeError(\"Arguments must be Buffers\");if(t===e)return 0;for(var r=t.length,n=e.length,a=0,o=Math.min(r,n);a<o;++a)if(t[a]!==e[a]){r=t[a],n=e[a];break}return r<n?-1:n<r?1:0},i.isEncoding=function(t){switch(String(t).toLowerCase()){case\"hex\":case\"utf8\":case\"utf-8\":case\"ascii\":case\"latin1\":case\"binary\":case\"base64\":case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return!0;default:return!1}},i.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('\"list\" argument must be an Array of Buffers');if(0===t.length)return i.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var n=i.allocUnsafe(e),a=0;for(r=0;r<t.length;++r){var o=t[r];if(!i.isBuffer(o))throw new TypeError('\"list\" argument must be an Array of Buffers');o.copy(n,a),a+=o.length}return n},i.byteLength=m,i.prototype._isBuffer=!0,i.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError(\"Buffer size must be a multiple of 16-bits\");for(var e=0;e<t;e+=2)g(this,e,e+1);return this},i.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError(\"Buffer size must be a multiple of 32-bits\");for(var e=0;e<t;e+=4)g(this,e,e+3),g(this,e+1,e+2);return this},i.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError(\"Buffer size must be a multiple of 64-bits\");for(var e=0;e<t;e+=8)g(this,e,e+7),g(this,e+1,e+6),g(this,e+2,e+5),g(this,e+3,e+4);return this},i.prototype.toString=function(){var t=this.length;return 0===t?\"\":0===arguments.length?S(this,0,t):v.apply(this,arguments)},i.prototype.equals=function(t){if(!i.isBuffer(t))throw new TypeError(\"Argument must be a Buffer\");return this===t||0===i.compare(this,t)},i.prototype.inspect=function(){var t=\"\",e=r.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString(\"hex\",0,e).match(/.{2}/g).join(\" \"),this.length>e&&(t+=\" ... \")),\"<Buffer \"+t+\">\"},i.prototype.compare=function(t,e,r,n,a){if(!i.isBuffer(t))throw new TypeError(\"Argument must be a Buffer\");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===a&&(a=this.length),e<0||r>t.length||n<0||a>this.length)throw new RangeError(\"out of range index\");if(n>=a&&e>=r)return 0;if(n>=a)return-1;if(e>=r)return 1;if(e>>>=0,r>>>=0,n>>>=0,a>>>=0,this===t)return 0;for(var o=a-n,s=r-e,l=Math.min(o,s),u=this.slice(n,a),c=t.slice(e,r),h=0;h<l;++h)if(u[h]!==c[h]){o=u[h],s=c[h];break}return o<s?-1:s<o?1:0},i.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},i.prototype.indexOf=function(t,e,r){return y(this,t,e,r,!0)},i.prototype.lastIndexOf=function(t,e,r){return y(this,t,e,r,!1)},i.prototype.write=function(t,e,r,n){if(void 0===e)n=\"utf8\",r=this.length,e=0;else if(void 0===r&&\"string\"==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error(\"Buffer.write(string, encoding, offset[, length]) is no longer supported\");e>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n=\"utf8\")):(n=r,r=void 0)}var i=this.length-e;if((void 0===r||r>i)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError(\"Attempt to write outside buffer bounds\");n||(n=\"utf8\");for(var a=!1;;)switch(n){case\"hex\":return x(this,t,e,r);case\"utf8\":case\"utf-8\":return _(this,t,e,r);case\"ascii\":return w(this,t,e,r);case\"latin1\":case\"binary\":return M(this,t,e,r);case\"base64\":return k(this,t,e,r);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return A(this,t,e,r);default:if(a)throw new TypeError(\"Unknown encoding: \"+n);n=(\"\"+n).toLowerCase(),a=!0}},i.prototype.toJSON=function(){return{type:\"Buffer\",data:Array.prototype.slice.call(this._arr||this,0)}};var J=4096;i.prototype.slice=function(t,e){var r=this.length;t=~~t,e=void 0===e?r:~~e,t<0?(t+=r)<0&&(t=0):t>r&&(t=r),e<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t);var n=this.subarray(t,e);return n.__proto__=i.prototype,n},i.prototype.readUIntLE=function(t,e,r){t>>>=0,e>>>=0,r||D(t,e,this.length);for(var n=this[t],i=1,a=0;++a<e&&(i*=256);)n+=this[t+a]*i;return n},i.prototype.readUIntBE=function(t,e,r){t>>>=0,e>>>=0,r||D(t,e,this.length);for(var n=this[t+--e],i=1;e>0&&(i*=256);)n+=this[t+--e]*i;return n},i.prototype.readUInt8=function(t,e){return t>>>=0,e||D(t,1,this.length),this[t]},i.prototype.readUInt16LE=function(t,e){return t>>>=0,e||D(t,2,this.length),this[t]|this[t+1]<<8},i.prototype.readUInt16BE=function(t,e){return t>>>=0,e||D(t,2,this.length),this[t]<<8|this[t+1]},i.prototype.readUInt32LE=function(t,e){return t>>>=0,e||D(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},i.prototype.readUInt32BE=function(t,e){return t>>>=0,e||D(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},i.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||D(t,e,this.length);for(var n=this[t],i=1,a=0;++a<e&&(i*=256);)n+=this[t+a]*i;return i*=128,n>=i&&(n-=Math.pow(2,8*e)),n},i.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||D(t,e,this.length);for(var n=e,i=1,a=this[t+--n];n>0&&(i*=256);)a+=this[t+--n]*i;return i*=128,a>=i&&(a-=Math.pow(2,8*e)),a},i.prototype.readInt8=function(t,e){return t>>>=0,e||D(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},i.prototype.readInt16LE=function(t,e){t>>>=0,e||D(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},i.prototype.readInt16BE=function(t,e){t>>>=0,e||D(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},i.prototype.readInt32LE=function(t,e){return t>>>=0,e||D(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},i.prototype.readInt32BE=function(t,e){return t>>>=0,e||D(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},i.prototype.readFloatLE=function(t,e){return t>>>=0,e||D(t,4,this.length),X.read(this,t,!0,23,4)},i.prototype.readFloatBE=function(t,e){return t>>>=0,e||D(t,4,this.length),X.read(this,t,!1,23,4)},i.prototype.readDoubleLE=function(t,e){return t>>>=0,e||D(t,8,this.length),X.read(this,t,!0,52,8)},i.prototype.readDoubleBE=function(t,e){return t>>>=0,e||D(t,8,this.length),X.read(this,t,!1,52,8)},i.prototype.writeUIntLE=function(t,e,r,n){if(t=+t,e>>>=0,r>>>=0,!n){P(this,t,e,r,Math.pow(2,8*r)-1,0)}var i=1,a=0;for(this[e]=255&t;++a<r&&(i*=256);)this[e+a]=t/i&255;return e+r},i.prototype.writeUIntBE=function(t,e,r,n){if(t=+t,e>>>=0,r>>>=0,!n){P(this,t,e,r,Math.pow(2,8*r)-1,0)}var i=r-1,a=1;for(this[e+i]=255&t;--i>=0&&(a*=256);)this[e+i]=t/a&255;return e+r},i.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,1,255,0),this[e]=255&t,e+1},i.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},i.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},i.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},i.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},i.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);P(this,t,e,r,i-1,-i)}var a=0,o=1,s=0;for(this[e]=255&t;++a<r&&(o*=256);)t<0&&0===s&&0!==this[e+a-1]&&(s=1),this[e+a]=(t/o>>0)-s&255;return e+r},i.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);P(this,t,e,r,i-1,-i)}var a=r-1,o=1,s=0;for(this[e+a]=255&t;--a>=0&&(o*=256);)t<0&&0===s&&0!==this[e+a+1]&&(s=1),this[e+a]=(t/o>>0)-s&255;return e+r},i.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},i.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},i.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},i.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},i.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},i.prototype.writeFloatLE=function(t,e,r){return R(this,t,e,!0,r)},i.prototype.writeFloatBE=function(t,e,r){return R(this,t,e,!1,r)},i.prototype.writeDoubleLE=function(t,e,r){return F(this,t,e,!0,r)},i.prototype.writeDoubleBE=function(t,e,r){return F(this,t,e,!1,r)},i.prototype.copy=function(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError(\"targetStart out of bounds\");if(r<0||r>=this.length)throw new RangeError(\"sourceStart out of bounds\");if(n<0)throw new RangeError(\"sourceEnd out of bounds\");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var i,a=n-r;if(this===t&&r<e&&e<n)for(i=a-1;i>=0;--i)t[i+e]=this[i+r];else if(a<1e3)for(i=0;i<a;++i)t[i+e]=this[i+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+a),e);return a},i.prototype.fill=function(t,e,r,n){if(\"string\"==typeof t){if(\"string\"==typeof e?(n=e,e=0,r=this.length):\"string\"==typeof r&&(n=r,r=this.length),1===t.length){var a=t.charCodeAt(0);a<256&&(t=a)}if(void 0!==n&&\"string\"!=typeof n)throw new TypeError(\"encoding must be a string\");if(\"string\"==typeof n&&!i.isEncoding(n))throw new TypeError(\"Unknown encoding: \"+n)}else\"number\"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<r)throw new RangeError(\"Out of range index\");if(r<=e)return this;e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0);var o;if(\"number\"==typeof t)for(o=e;o<r;++o)this[o]=t;else{var s=i.isBuffer(t)?t:new i(t,n),l=s.length;for(o=0;o<r-e;++o)this[o+e]=s[o%l]}return this};var K=/[^+\\/0-9A-Za-z-_]/g},{\"base64-js\":78,ieee754:289}],78:[function(t,e,r){\"use strict\";function n(t){var e=t.length;if(e%4>0)throw new Error(\"Invalid string. Length must be a multiple of 4\");return\"=\"===t[e-2]?2:\"=\"===t[e-1]?1:0}function i(t){return 3*t.length/4-n(t)}function a(t){var e,r,i,a,o,s,l=t.length;o=n(t),s=new h(3*l/4-o),i=o>0?l-4:l;var u=0;for(e=0,r=0;e<i;e+=4,r+=3)a=c[t.charCodeAt(e)]<<18|c[t.charCodeAt(e+1)]<<12|c[t.charCodeAt(e+2)]<<6|c[t.charCodeAt(e+3)],s[u++]=a>>16&255,s[u++]=a>>8&255,s[u++]=255&a;return 2===o?(a=c[t.charCodeAt(e)]<<2|c[t.charCodeAt(e+1)]>>4,s[u++]=255&a):1===o&&(a=c[t.charCodeAt(e)]<<10|c[t.charCodeAt(e+1)]<<4|c[t.charCodeAt(e+2)]>>2,s[u++]=a>>8&255,s[u++]=255&a),s}function o(t){return u[t>>18&63]+u[t>>12&63]+u[t>>6&63]+u[63&t]}function s(t,e,r){for(var n,i=[],a=e;a<r;a+=3)n=(t[a]<<16)+(t[a+1]<<8)+t[a+2],i.push(o(n));return i.join(\"\")}function l(t){for(var e,r=t.length,n=r%3,i=\"\",a=[],o=0,l=r-n;o<l;o+=16383)a.push(s(t,o,o+16383>l?l:o+16383));return 1===n?(e=t[r-1],i+=u[e>>2],i+=u[e<<4&63],i+=\"==\"):2===n&&(e=(t[r-2]<<8)+t[r-1],i+=u[e>>10],i+=u[e>>4&63],i+=u[e<<2&63],i+=\"=\"),a.push(i),a.join(\"\")}r.byteLength=i,r.toByteArray=a,r.fromByteArray=l;for(var u=[],c=[],h=\"undefined\"!=typeof Uint8Array?Uint8Array:Array,f=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",d=0,p=f.length;d<p;++d)u[d]=f[d],c[f.charCodeAt(d)]=d;c[\"-\".charCodeAt(0)]=62,c[\"_\".charCodeAt(0)]=63},{}],79:[function(t,e,r){\"use strict\";function n(t){return[Math.min(t[0],t[1]),Math.max(t[0],t[1])]}function i(t,e){return t[0]-e[0]||t[1]-e[1]}function a(t){return t.map(n).sort(i)}function o(t,e,r){return e in t?t[e]:r}function s(t,e,r){Array.isArray(e)?(r=r||{},e=e||[]):(r=e||{},e=[]);var n=!!o(r,\"delaunay\",!0),i=!!o(r,\"interior\",!0),s=!!o(r,\"exterior\",!0),f=!!o(r,\"infinity\",!1);if(!i&&!s||0===t.length)return[];var d=l(t,e);if(n||i!==s||f){for(var p=u(t.length,a(e)),m=0;m<d.length;++m){var v=d[m];p.addTriangle(v[0],v[1],v[2])}return n&&c(t,p),s?i?f?h(p,0,f):p.cells():h(p,1,f):h(p,-1)}return d}var l=t(\"./lib/monotone\"),u=t(\"./lib/triangulation\"),c=t(\"./lib/delaunay\"),h=t(\"./lib/filter\");e.exports=s},{\"./lib/delaunay\":80,\"./lib/filter\":81,\"./lib/monotone\":82,\"./lib/triangulation\":83}],80:[function(t,e,r){\"use strict\";function n(t,e,r,n,i,o){var s=e.opposite(n,i);if(!(s<0)){if(i<n){var l=n;n=i,i=l,l=o,o=s,s=l}e.isConstraint(n,i)||a(t[n],t[i],t[o],t[s])<0&&r.push(n,i)}}function i(t,e){for(var r=[],i=t.length,o=e.stars,s=0;s<i;++s)for(var l=o[s],u=1;u<l.length;u+=2){var c=l[u];if(!(c<s)&&!e.isConstraint(s,c)){for(var h=l[u-1],f=-1,d=1;d<l.length;d+=2)if(l[d-1]===c){f=l[d];break}f<0||a(t[s],t[c],t[h],t[f])<0&&r.push(s,c)}}for(;r.length>0;){for(var c=r.pop(),s=r.pop(),h=-1,f=-1,l=o[s],p=1;p<l.length;p+=2){var m=l[p-1],v=l[p];m===c?f=v:v===c&&(h=m)}h<0||f<0||(a(t[s],t[c],t[h],t[f])>=0||(e.flip(s,c),n(t,e,r,h,s,f),n(t,e,r,s,f,h),n(t,e,r,f,c,h),n(t,e,r,c,h,f)))}}var a=t(\"robust-in-sphere\")[4];t(\"binary-search-bounds\");e.exports=i},{\"binary-search-bounds\":84,\"robust-in-sphere\":506}],81:[function(t,e,r){\"use strict\";function n(t,e,r,n,i,a,o){this.cells=t,this.neighbor=e,this.flags=n,this.constraint=r,this.active=i,this.next=a,this.boundary=o}function i(t,e){return t[0]-e[0]||t[1]-e[1]||t[2]-e[2]}function a(t,e){for(var r=t.cells(),a=r.length,o=0;o<a;++o){var s=r[o],l=s[0],u=s[1],c=s[2];u<c?u<l&&(s[0]=u,s[1]=c,s[2]=l):c<l&&(s[0]=c,s[1]=l,s[2]=u)}r.sort(i);for(var h=new Array(a),o=0;o<h.length;++o)h[o]=0;var f=[],d=[],p=new Array(3*a),m=new Array(3*a),v=null;e&&(v=[]);for(var g=new n(r,p,m,h,f,d,v),o=0;o<a;++o)for(var s=r[o],y=0;y<3;++y){var l=s[y],u=s[(y+1)%3],b=p[3*o+y]=g.locate(u,l,t.opposite(u,l)),x=m[3*o+y]=t.isConstraint(l,u);b<0&&(x?d.push(o):(f.push(o),h[o]=1),e&&v.push([u,l,-1]))}return g}function o(t,e,r){for(var n=0,i=0;i<t.length;++i)e[i]===r&&(t[n++]=t[i]);return t.length=n,t}function s(t,e,r){var n=a(t,r);if(0===e)return r?n.cells.concat(n.boundary):n.cells;for(var i=1,s=n.active,l=n.next,u=n.flags,c=n.cells,h=n.constraint,f=n.neighbor;s.length>0||l.length>0;){for(;s.length>0;){var d=s.pop();if(u[d]!==-i){u[d]=i;for(var p=(c[d],0);p<3;++p){var m=f[3*d+p];m>=0&&0===u[m]&&(h[3*d+p]?l.push(m):(s.push(m),u[m]=i))}}}var v=l;l=s,s=v,l.length=0,i=-i}var g=o(c,u,e);return r?g.concat(n.boundary):g}var l=t(\"binary-search-bounds\");e.exports=s,n.prototype.locate=function(){var t=[0,0,0];return function(e,r,n){var a=e,o=r,s=n;return r<n?r<e&&(a=r,o=n,s=e):n<e&&(a=n,o=e,s=r),a<0?-1:(t[0]=a,t[1]=o,t[2]=s,l.eq(this.cells,t,i))}}()},{\"binary-search-bounds\":84}],82:[function(t,e,r){\"use strict\";function n(t,e,r,n,i){this.a=t,this.b=e,this.idx=r,this.lowerIds=n,this.upperIds=i}function i(t,e,r,n){this.a=t,this.b=e,this.type=r,this.idx=n}function a(t,e){var r=t.a[0]-e.a[0]||t.a[1]-e.a[1]||t.type-e.type;return r||(t.type!==p&&(r=d(t.a,t.b,e.b))?r:t.idx-e.idx)}function o(t,e){return d(t.a,t.b,e)}function s(t,e,r,n,i){for(var a=f.lt(e,n,o),s=f.gt(e,n,o),l=a;l<s;++l){for(var u=e[l],c=u.lowerIds,h=c.length;h>1&&d(r[c[h-2]],r[c[h-1]],n)>0;)t.push([c[h-1],c[h-2],i]),h-=1;c.length=h,c.push(i);for(var p=u.upperIds,h=p.length;h>1&&d(r[p[h-2]],r[p[h-1]],n)<0;)t.push([p[h-2],p[h-1],i]),h-=1;p.length=h,p.push(i)}}function l(t,e){var r;return(r=t.a[0]<e.a[0]?d(t.a,t.b,e.a):d(e.b,e.a,t.a))?r:(r=e.b[0]<t.b[0]?d(t.a,t.b,e.b):d(e.b,e.a,t.b))||t.idx-e.idx}function u(t,e,r){var i=f.le(t,r,l),a=t[i],o=a.upperIds,s=o[o.length-1];a.upperIds=[s],t.splice(i+1,0,new n(r.a,r.b,r.idx,[s],o))}function c(t,e,r){var n=r.a;r.a=r.b,r.b=n;var i=f.eq(t,r,l),a=t[i];t[i-1].upperIds=a.upperIds,t.splice(i,1)}function h(t,e){for(var r=t.length,o=e.length,l=[],h=0;h<r;++h)l.push(new i(t[h],null,p,h));for(var h=0;h<o;++h){var f=e[h],d=t[f[0]],g=t[f[1]];d[0]<g[0]?l.push(new i(d,g,v,h),new i(g,d,m,h)):d[0]>g[0]&&l.push(new i(g,d,v,h),new i(d,g,m,h))}l.sort(a);for(var y=l[0].a[0]-(1+Math.abs(l[0].a[0]))*Math.pow(2,-52),b=[new n([y,1],[y,0],-1,[],[],[],[])],x=[],h=0,_=l.length;h<_;++h){var w=l[h],M=w.type;M===p?s(x,b,t,w.a,w.idx):M===v?u(b,t,w):c(b,t,w)}return x}var f=t(\"binary-search-bounds\"),d=t(\"robust-orientation\")[3],p=0,m=1,v=2;e.exports=h},{\"binary-search-bounds\":84,\"robust-orientation\":508}],83:[function(t,e,r){\"use strict\";function n(t,e){this.stars=t,this.edges=e}function i(t,e,r){for(var n=1,i=t.length;n<i;n+=2)if(t[n-1]===e&&t[n]===r)return t[n-1]=t[i-2],t[n]=t[i-1],void(t.length=i-2)}function a(t,e){for(var r=new Array(t),i=0;i<t;++i)r[i]=[];return new n(r,e)}var o=t(\"binary-search-bounds\");e.exports=a;var s=n.prototype;s.isConstraint=function(){function t(t,e){return t[0]-e[0]||t[1]-e[1]}var e=[0,0];return function(r,n){return e[0]=Math.min(r,n),e[1]=Math.max(r,n),o.eq(this.edges,e,t)>=0}}(),s.removeTriangle=function(t,e,r){var n=this.stars;i(n[t],e,r),i(n[e],r,t),i(n[r],t,e)},s.addTriangle=function(t,e,r){var n=this.stars;n[t].push(e,r),n[e].push(r,t),n[r].push(t,e)},s.opposite=function(t,e){for(var r=this.stars[e],n=1,i=r.length;n<i;n+=2)if(r[n]===t)return r[n-1];return-1},s.flip=function(t,e){var r=this.opposite(t,e),n=this.opposite(e,t);this.removeTriangle(t,e,r),this.removeTriangle(e,t,n),this.addTriangle(t,n,r),this.addTriangle(e,r,n)},s.edges=function(){for(var t=this.stars,e=[],r=0,n=t.length;r<n;++r)for(var i=t[r],a=0,o=i.length;a<o;a+=2)e.push([i[a],i[a+1]]);return e},s.cells=function(){for(var t=this.stars,e=[],r=0,n=t.length;r<n;++r)for(var i=t[r],a=0,o=i.length;a<o;a+=2){var s=i[a],l=i[a+1];r<Math.min(s,l)&&e.push([r,s,l])}return e}},{\"binary-search-bounds\":84}],84:[function(t,e,r){\"use strict\";function n(t,e,r,n,i){var a=[\"function \",t,\"(a,l,h,\",n.join(\",\"),\"){\",i?\"\":\"var i=\",r?\"l-1\":\"h+1\",\";while(l<=h){var m=(l+h)>>>1,x=a[m]\"];return i?e.indexOf(\"c\")<0?a.push(\";if(x===y){return m}else if(x<=y){\"):a.push(\";var p=c(x,y);if(p===0){return m}else if(p<=0){\"):a.push(\";if(\",e,\"){i=m;\"),r?a.push(\"l=m+1}else{h=m-1}\"):a.push(\"h=m-1}else{l=m+1}\"),a.push(\"}\"),i?a.push(\"return -1};\"):a.push(\"return i};\"),a.join(\"\")}function i(t,e,r,i){return new Function([n(\"A\",\"x\"+t+\"y\",e,[\"y\"],i),n(\"P\",\"c(x,y)\"+t+\"0\",e,[\"y\",\"c\"],i),\"function dispatchBsearch\",r,\"(a,y,c,l,h){if(typeof(c)==='function'){return P(a,(l===void 0)?0:l|0,(h===void 0)?a.length-1:h|0,y,c)}else{return A(a,(c===void 0)?0:c|0,(l===void 0)?a.length-1:l|0,y)}}return dispatchBsearch\",r].join(\"\"))()}e.exports={ge:i(\">=\",!1,\"GE\"),gt:i(\">\",!1,\"GT\"),lt:i(\"<\",!0,\"LT\"),le:i(\"<=\",!0,\"LE\"),eq:i(\"-\",!0,\"EQ\",!0)}},{}],85:[function(t,e,r){\"use strict\";function n(t){for(var e=1,r=1;r<t.length;++r)for(var n=0;n<r;++n)if(t[r]<t[n])e=-e;else if(t[n]===t[r])return 0;return e}e.exports=n},{}],86:[function(t,e,r){\"use strict\";function n(t,e){for(var r=0,n=t.length,i=0;i<n;++i)r+=t[i]*e[i];return r}function i(t){var e=t.length;if(0===e)return[];var r=(t[0].length,o([t.length+1,t.length+1],1)),i=o([t.length+1],1);r[e][e]=0;for(var a=0;a<e;++a){for(var l=0;l<=a;++l)r[l][a]=r[a][l]=2*n(t[a],t[l]);i[a]=n(t[a],t[a])}for(var u=s(r,i),c=0,h=u[e+1],a=0;a<h.length;++a)c+=h[a];for(var f=new Array(e),a=0;a<e;++a){for(var h=u[a],d=0,l=0;l<h.length;++l)d+=h[l];f[a]=d/c}return f}function a(t){if(0===t.length)return[];for(var e=t[0].length,r=o([e]),n=i(t),a=0;a<t.length;++a)for(var s=0;s<e;++s)r[s]+=t[a][s]*n[a];return r}var o=t(\"dup\"),s=t(\"robust-linear-solve\");a.barycenetric=i,e.exports=a},{dup:125,\"robust-linear-solve\":507}],87:[function(t,e,r){function n(t){for(var e=i(t),r=0,n=0;n<t.length;++n)for(var a=t[n],o=0;o<e.length;++o)r+=Math.pow(a[o]-e[o],2);return Math.sqrt(r/t.length)}e.exports=n;var i=t(\"circumcenter\")},{circumcenter:86}],88:[function(t,e,r){function n(t,e,r){return e<r?t<e?e:t>r?r:t:t<r?r:t>e?e:t}e.exports=n},{}],89:[function(t,e,r){\"use strict\";function n(t){var e=_(t);return[M(e,-1/0),M(e,1/0)]}function i(t,e){for(var r=new Array(e.length),n=0;n<e.length;++n){var i=e[n],a=t[i[0]],o=t[i[1]];r[n]=[M(Math.min(a[0],o[0]),-1/0),M(Math.min(a[1],o[1]),-1/0),M(Math.max(a[0],o[0]),1/0),M(Math.max(a[1],o[1]),1/0)]}return r}function a(t){for(var e=new Array(t.length),r=0;r<t.length;++r){var n=t[r];e[r]=[M(n[0],-1/0),M(n[1],-1/0),M(n[0],1/0),M(n[1],1/0)]}return e}function o(t,e,r){var n=[];return g(r,function(r,i){var a=e[r],o=e[i];if(a[0]!==o[0]&&a[0]!==o[1]&&a[1]!==o[0]&&a[1]!==o[1]){var s=t[a[0]],l=t[a[1]],u=t[o[0]],c=t[o[1]];y(s,l,u,c)&&n.push([r,i])}}),n}function s(t,e,r,n){var i=[];return g(r,n,function(r,n){var a=e[r];if(a[0]!==n&&a[1]!==n){var o=t[n],s=t[a[0]],l=t[a[1]];y(s,l,o,o)&&i.push([r,n])}}),i}function l(t,e,r,n,i){var a,o,s=t.map(function(t){return[b(t[0]),b(t[1])]});for(a=0;a<r.length;++a){var l=r[a];o=l[0];var u=l[1],c=e[o],h=e[u],f=k(w(t[c[0]]),w(t[c[1]]),w(t[h[0]]),w(t[h[1]]));if(f){var d=t.length;t.push([_(f[0]),_(f[1])]),s.push(f),n.push([o,d],[u,d])}}for(n.sort(function(t,e){if(t[0]!==e[0])return t[0]-e[0];var r=s[t[1]],n=s[e[1]];return x(r[0],n[0])||x(r[1],n[1])}),a=n.length-1;a>=0;--a){var p=n[a];o=p[0];var m=e[o],v=m[0],g=m[1],y=t[v],M=t[g];if((y[0]-M[0]||y[1]-M[1])<0){var A=v;v=g,g=A}m[0]=v;var T,S=m[1]=p[1];for(i&&(T=m[2]);a>0&&n[a-1][0]===o;){var p=n[--a],E=p[1];i?e.push([S,E,T]):e.push([S,E]),S=E}i?e.push([S,g,T]):e.push([S,g])}return s}function u(t,e,r){for(var i=e.length,a=new v(i),o=[],s=0;s<e.length;++s){var l=e[s],u=n(l[0]),c=n(l[1]);o.push([M(u[0],-1/0),M(c[0],-1/0),M(u[1],1/0),M(c[1],1/0)])}g(o,function(t,e){a.link(t,e)});for(var h=!0,f=new Array(i),s=0;s<i;++s){var d=a.find(s);d!==s&&(h=!1,t[d]=[Math.min(t[s][0],t[d][0]),Math.min(t[s][1],t[d][1])])}if(h)return null;for(var p=0,s=0;s<i;++s){var d=a.find(s);d===s?(f[s]=p,t[p++]=t[s]):f[s]=-1}t.length=p;for(var s=0;s<i;++s)f[s]<0&&(f[s]=f[a.find(s)]);return f}function c(t,e){return t[0]-e[0]||t[1]-e[1]}function h(t,e){var r=t[0]-e[0]||t[1]-e[1];return r||(t[2]<e[2]?-1:t[2]>e[2]?1:0)}\n", "function f(t,e,r){if(0!==t.length){if(e)for(var n=0;n<t.length;++n){var i=t[n],a=e[i[0]],o=e[i[1]];i[0]=Math.min(a,o),i[1]=Math.max(a,o)}else for(var n=0;n<t.length;++n){var i=t[n],a=i[0],o=i[1];i[0]=Math.min(a,o),i[1]=Math.max(a,o)}r?t.sort(h):t.sort(c);for(var s=1,n=1;n<t.length;++n){var l=t[n-1],u=t[n];(u[0]!==l[0]||u[1]!==l[1]||r&&u[2]!==l[2])&&(t[s++]=u)}t.length=s}}function d(t,e,r){var n=u(t,[],a(t));return f(e,n,r),!!n}function p(t,e,r){var n=i(t,e),c=o(t,e,n),h=a(t),d=s(t,e,n,h),p=l(t,e,c,d,r),m=u(t,p,h);return f(e,m,r),!!m||(c.length>0||d.length>0)}function m(t,e,r){var n;if(r){n=e;for(var i=new Array(e.length),a=0;a<e.length;++a){var o=e[a];i[a]=[o[0],o[1],r[a]]}e=i}for(var s=d(t,e,!!r);p(t,e,!!r);)s=!0;if(r&&s){n.length=0,r.length=0;for(var a=0;a<e.length;++a){var o=e[a];n.push([o[0],o[1]]),r.push(o[2])}}return s}e.exports=m;var v=t(\"union-find\"),g=t(\"box-intersect\"),y=t(\"robust-segment-intersect\"),b=t(\"big-rat\"),x=t(\"big-rat/cmp\"),_=t(\"big-rat/to-float\"),w=t(\"rat-vec\"),M=t(\"nextafter\"),k=t(\"./lib/rat-seg-intersect\")},{\"./lib/rat-seg-intersect\":90,\"big-rat\":53,\"big-rat/cmp\":51,\"big-rat/to-float\":65,\"box-intersect\":70,nextafter:468,\"rat-vec\":495,\"robust-segment-intersect\":511,\"union-find\":542}],90:[function(t,e,r){\"use strict\";function n(t,e){return s(a(t[0],e[1]),a(t[1],e[0]))}function i(t,e,r,i){var a=u(e,t),s=u(i,r),f=n(a,s);if(0===l(f))return null;var d=u(t,r),p=n(s,d),m=o(p,f),v=h(a,m);return c(t,v)}e.exports=i;var a=t(\"big-rat/mul\"),o=t(\"big-rat/div\"),s=t(\"big-rat/sub\"),l=t(\"big-rat/sign\"),u=t(\"rat-vec/sub\"),c=t(\"rat-vec/add\"),h=t(\"rat-vec/muls\")},{\"big-rat/div\":52,\"big-rat/mul\":62,\"big-rat/sign\":63,\"big-rat/sub\":64,\"rat-vec/add\":494,\"rat-vec/muls\":496,\"rat-vec/sub\":497}],91:[function(t,e,r){(function(t){var r=function(){\"use strict\";function e(r,n,i,a){function s(r,i){if(null===r)return null;if(0==i)return r;var h,f;if(\"object\"!=typeof r)return r;if(e.__isArray(r))h=[];else if(e.__isRegExp(r))h=new RegExp(r.source,o(r)),r.lastIndex&&(h.lastIndex=r.lastIndex);else if(e.__isDate(r))h=new Date(r.getTime());else{if(c&&t.isBuffer(r))return h=new t(r.length),r.copy(h),h;void 0===a?(f=Object.getPrototypeOf(r),h=Object.create(f)):(h=Object.create(a),f=a)}if(n){var d=l.indexOf(r);if(-1!=d)return u[d];l.push(r),u.push(h)}for(var p in r){var m;f&&(m=Object.getOwnPropertyDescriptor(f,p)),m&&null==m.set||(h[p]=s(r[p],i-1))}return h}\"object\"==typeof n&&(i=n.depth,a=n.prototype,n.filter,n=n.circular);var l=[],u=[],c=void 0!==t;return void 0===n&&(n=!0),void 0===i&&(i=1/0),s(r,i)}function r(t){return Object.prototype.toString.call(t)}function n(t){return\"object\"==typeof t&&\"[object Date]\"===r(t)}function i(t){return\"object\"==typeof t&&\"[object Array]\"===r(t)}function a(t){return\"object\"==typeof t&&\"[object RegExp]\"===r(t)}function o(t){var e=\"\";return t.global&&(e+=\"g\"),t.ignoreCase&&(e+=\"i\"),t.multiline&&(e+=\"m\"),e}return e.clonePrototype=function(t){if(null===t)return null;var e=function(){};return e.prototype=t,new e},e.__objToStr=r,e.__isDate=n,e.__isArray=i,e.__isRegExp=a,e.__getRegExpFlags=o,e}();\"object\"==typeof e&&e.exports&&(e.exports=r)}).call(this,t(\"buffer\").Buffer)},{buffer:77}],92:[function(t,e,r){\"use strict\";function n(t,e){null==e&&(e=!0);var r=t[0],n=t[1],i=t[2],o=t[3];return null==o&&(o=e?1:255),e&&(r*=255,n*=255,i*=255,o*=255),r=255&a(r,0,255),n=255&a(n,0,255),i=255&a(i,0,255),o=255&a(o,0,255),16777216*r+(n<<16)+(i<<8)+o}function i(t,e){t=+t;var r=t>>>24,n=(16711680&t)>>>16,i=(65280&t)>>>8,a=255&t;return!1===e?[r,n,i,a]:[r/255,n/255,i/255,a/255]}var a=t(\"clamp\");e.exports=n,e.exports.to=n,e.exports.from=i},{clamp:88}],93:[function(t,e,r){\"use strict\";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},{}],94:[function(t,e,r){(function(r){\"use strict\";function n(t){var e,n,s=[],l=1;if(\"string\"==typeof t)if(i[t])s=i[t].slice(),n=\"rgb\";else if(\"transparent\"===t)l=0,n=\"rgb\",s=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(t)){var u=t.slice(1),c=u.length,h=c<=4;l=1,h?(s=[parseInt(u[0]+u[0],16),parseInt(u[1]+u[1],16),parseInt(u[2]+u[2],16)],4===c&&(l=parseInt(u[3]+u[3],16)/255)):(s=[parseInt(u[0]+u[1],16),parseInt(u[2]+u[3],16),parseInt(u[4]+u[5],16)],8===c&&(l=parseInt(u[6]+u[7],16)/255)),s[0]||(s[0]=0),s[1]||(s[1]=0),s[2]||(s[2]=0),n=\"rgb\"}else if(e=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\\s*\\(([^\\)]*)\\)/.exec(t)){var f=e[1],u=f.replace(/a$/,\"\");n=u;var c=\"cmyk\"===u?4:\"gray\"===u?1:3;s=e[2].trim().split(/\\s*,\\s*/).map(function(t,e){if(/%$/.test(t))return e===c?parseFloat(t)/100:\"rgb\"===u?255*parseFloat(t)/100:parseFloat(t);if(\"h\"===u[e]){if(/deg$/.test(t))return parseFloat(t);if(void 0!==o[t])return o[t]}return parseFloat(t)}),f===u&&s.push(1),l=void 0===s[c]?1:s[c],s=s.slice(0,c)}else t.length>10&&/[0-9](?:\\s|\\/)/.test(t)&&(s=t.match(/([0-9]+)/g).map(function(t){return parseFloat(t)}),n=t.match(/([a-z])/gi).join(\"\").toLowerCase());else\"number\"==typeof t?(n=\"rgb\",s=[t>>>16,(65280&t)>>>8,255&t]):a(t)?(null!=t.r?(s=[t.r,t.g,t.b],n=\"rgb\"):null!=t.red?(s=[t.red,t.green,t.blue],n=\"rgb\"):null!=t.h?(s=[t.h,t.s,t.l],n=\"hsl\"):null!=t.hue&&(s=[t.hue,t.saturation,t.lightness],n=\"hsl\"),null!=t.a?l=t.a:null!=t.alpha?l=t.alpha:null!=t.opacity&&(l=t.opacity/100)):(Array.isArray(t)||r.ArrayBuffer&&ArrayBuffer.isView&&ArrayBuffer.isView(t))&&(s=[t[0],t[1],t[2]],n=\"rgb\",l=4===t.length?t[3]:1);return{space:n,values:s,alpha:l}}e.exports=n;var i=t(\"color-name\"),a=t(\"is-plain-obj\"),o={red:0,orange:60,yellow:120,green:180,blue:240,purple:300}}).call(this,\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{\"color-name\":93,\"is-plain-obj\":297}],95:[function(t,e,r){\"use strict\";var n=t(\"color-parse\"),i=t(\"color-space/hsl\"),a=t(\"clamp\");e.exports=function(t,e){if(Array.isArray(t))return t;null==e&&(e=!0);var r=n(t);if(!r.space)return[];var o,s=r.values,l=s.length;for(o=0;o<l;o++)s[o]=a(s[o],0,255);if(\"h\"===r.space[0]&&(s=i.rgb(s)),e)for(o=0;o<l;o++)s[o]/=255;return s.push(a(r.alpha,0,1)),s}},{clamp:88,\"color-parse\":94,\"color-space/hsl\":96}],96:[function(t,e,r){\"use strict\";var n=t(\"./rgb\");e.exports={name:\"hsl\",min:[0,0,0],max:[360,100,100],channel:[\"hue\",\"saturation\",\"lightness\"],alias:[\"HSL\"],rgb:function(t){var e,r,n,i,a,o=t[0]/360,s=t[1]/100,l=t[2]/100;if(0===s)return a=255*l,[a,a,a];r=l<.5?l*(1+s):l+s-l*s,e=2*l-r,i=[0,0,0];for(var u=0;u<3;u++)n=o+1/3*-(u-1),n<0?n++:n>1&&n--,a=6*n<1?e+6*(r-e)*n:2*n<1?r:3*n<2?e+(r-e)*(2/3-n)*6:e,i[u]=255*a;return i}},n.hsl=function(t){var e,r,n,i=t[0]/255,a=t[1]/255,o=t[2]/255,s=Math.min(i,a,o),l=Math.max(i,a,o),u=l-s;return l===s?e=0:i===l?e=(a-o)/u:a===l?e=2+(o-i)/u:o===l&&(e=4+(i-a)/u),e=Math.min(60*e,360),e<0&&(e+=360),n=(s+l)/2,r=l===s?0:n<=.5?u/(l+s):u/(2-l-s),[e,100*r,100*n]}},{\"./rgb\":97}],97:[function(t,e,r){\"use strict\";e.exports={name:\"rgb\",min:[0,0,0],max:[255,255,255],channel:[\"red\",\"green\",\"blue\"],alias:[\"RGB\"]}},{}],98:[function(t,e,r){e.exports={jet:[{index:0,rgb:[0,0,131]},{index:.125,rgb:[0,60,170]},{index:.375,rgb:[5,255,255]},{index:.625,rgb:[255,255,0]},{index:.875,rgb:[250,0,0]},{index:1,rgb:[128,0,0]}],hsv:[{index:0,rgb:[255,0,0]},{index:.169,rgb:[253,255,2]},{index:.173,rgb:[247,255,2]},{index:.337,rgb:[0,252,4]},{index:.341,rgb:[0,252,10]},{index:.506,rgb:[1,249,255]},{index:.671,rgb:[2,0,253]},{index:.675,rgb:[8,0,253]},{index:.839,rgb:[255,0,251]},{index:.843,rgb:[255,0,245]},{index:1,rgb:[255,0,6]}],hot:[{index:0,rgb:[0,0,0]},{index:.3,rgb:[230,0,0]},{index:.6,rgb:[255,210,0]},{index:1,rgb:[255,255,255]}],cool:[{index:0,rgb:[0,255,255]},{index:1,rgb:[255,0,255]}],spring:[{index:0,rgb:[255,0,255]},{index:1,rgb:[255,255,0]}],summer:[{index:0,rgb:[0,128,102]},{index:1,rgb:[255,255,102]}],autumn:[{index:0,rgb:[255,0,0]},{index:1,rgb:[255,255,0]}],winter:[{index:0,rgb:[0,0,255]},{index:1,rgb:[0,255,128]}],bone:[{index:0,rgb:[0,0,0]},{index:.376,rgb:[84,84,116]},{index:.753,rgb:[169,200,200]},{index:1,rgb:[255,255,255]}],copper:[{index:0,rgb:[0,0,0]},{index:.804,rgb:[255,160,102]},{index:1,rgb:[255,199,127]}],greys:[{index:0,rgb:[0,0,0]},{index:1,rgb:[255,255,255]}],yignbu:[{index:0,rgb:[8,29,88]},{index:.125,rgb:[37,52,148]},{index:.25,rgb:[34,94,168]},{index:.375,rgb:[29,145,192]},{index:.5,rgb:[65,182,196]},{index:.625,rgb:[127,205,187]},{index:.75,rgb:[199,233,180]},{index:.875,rgb:[237,248,217]},{index:1,rgb:[255,255,217]}],greens:[{index:0,rgb:[0,68,27]},{index:.125,rgb:[0,109,44]},{index:.25,rgb:[35,139,69]},{index:.375,rgb:[65,171,93]},{index:.5,rgb:[116,196,118]},{index:.625,rgb:[161,217,155]},{index:.75,rgb:[199,233,192]},{index:.875,rgb:[229,245,224]},{index:1,rgb:[247,252,245]}],yiorrd:[{index:0,rgb:[128,0,38]},{index:.125,rgb:[189,0,38]},{index:.25,rgb:[227,26,28]},{index:.375,rgb:[252,78,42]},{index:.5,rgb:[253,141,60]},{index:.625,rgb:[254,178,76]},{index:.75,rgb:[254,217,118]},{index:.875,rgb:[255,237,160]},{index:1,rgb:[255,255,204]}],bluered:[{index:0,rgb:[0,0,255]},{index:1,rgb:[255,0,0]}],rdbu:[{index:0,rgb:[5,10,172]},{index:.35,rgb:[106,137,247]},{index:.5,rgb:[190,190,190]},{index:.6,rgb:[220,170,132]},{index:.7,rgb:[230,145,90]},{index:1,rgb:[178,10,28]}],picnic:[{index:0,rgb:[0,0,255]},{index:.1,rgb:[51,153,255]},{index:.2,rgb:[102,204,255]},{index:.3,rgb:[153,204,255]},{index:.4,rgb:[204,204,255]},{index:.5,rgb:[255,255,255]},{index:.6,rgb:[255,204,255]},{index:.7,rgb:[255,153,255]},{index:.8,rgb:[255,102,204]},{index:.9,rgb:[255,102,102]},{index:1,rgb:[255,0,0]}],rainbow:[{index:0,rgb:[150,0,90]},{index:.125,rgb:[0,0,200]},{index:.25,rgb:[0,25,255]},{index:.375,rgb:[0,152,255]},{index:.5,rgb:[44,255,150]},{index:.625,rgb:[151,255,0]},{index:.75,rgb:[255,234,0]},{index:.875,rgb:[255,111,0]},{index:1,rgb:[255,0,0]}],portland:[{index:0,rgb:[12,51,131]},{index:.25,rgb:[10,136,186]},{index:.5,rgb:[242,211,56]},{index:.75,rgb:[242,143,56]},{index:1,rgb:[217,30,30]}],blackbody:[{index:0,rgb:[0,0,0]},{index:.2,rgb:[230,0,0]},{index:.4,rgb:[230,210,0]},{index:.7,rgb:[255,255,255]},{index:1,rgb:[160,200,255]}],earth:[{index:0,rgb:[0,0,130]},{index:.1,rgb:[0,180,180]},{index:.2,rgb:[40,210,40]},{index:.4,rgb:[230,230,50]},{index:.6,rgb:[120,70,20]},{index:1,rgb:[255,255,255]}],electric:[{index:0,rgb:[0,0,0]},{index:.15,rgb:[30,0,100]},{index:.4,rgb:[120,0,100]},{index:.6,rgb:[160,90,0]},{index:.8,rgb:[230,200,0]},{index:1,rgb:[255,250,220]}],alpha:[{index:0,rgb:[255,255,255,0]},{index:0,rgb:[255,255,255,1]}],viridis:[{index:0,rgb:[68,1,84]},{index:.13,rgb:[71,44,122]},{index:.25,rgb:[59,81,139]},{index:.38,rgb:[44,113,142]},{index:.5,rgb:[33,144,141]},{index:.63,rgb:[39,173,129]},{index:.75,rgb:[92,200,99]},{index:.88,rgb:[170,220,50]},{index:1,rgb:[253,231,37]}],inferno:[{index:0,rgb:[0,0,4]},{index:.13,rgb:[31,12,72]},{index:.25,rgb:[85,15,109]},{index:.38,rgb:[136,34,106]},{index:.5,rgb:[186,54,85]},{index:.63,rgb:[227,89,51]},{index:.75,rgb:[249,140,10]},{index:.88,rgb:[249,201,50]},{index:1,rgb:[252,255,164]}],magma:[{index:0,rgb:[0,0,4]},{index:.13,rgb:[28,16,68]},{index:.25,rgb:[79,18,123]},{index:.38,rgb:[129,37,129]},{index:.5,rgb:[181,54,122]},{index:.63,rgb:[229,80,100]},{index:.75,rgb:[251,135,97]},{index:.88,rgb:[254,194,135]},{index:1,rgb:[252,253,191]}],plasma:[{index:0,rgb:[13,8,135]},{index:.13,rgb:[75,3,161]},{index:.25,rgb:[125,3,168]},{index:.38,rgb:[168,34,150]},{index:.5,rgb:[203,70,121]},{index:.63,rgb:[229,107,93]},{index:.75,rgb:[248,148,65]},{index:.88,rgb:[253,195,40]},{index:1,rgb:[240,249,33]}],warm:[{index:0,rgb:[125,0,179]},{index:.13,rgb:[172,0,187]},{index:.25,rgb:[219,0,170]},{index:.38,rgb:[255,0,130]},{index:.5,rgb:[255,63,74]},{index:.63,rgb:[255,123,0]},{index:.75,rgb:[234,176,0]},{index:.88,rgb:[190,228,0]},{index:1,rgb:[147,255,0]}],cool:[{index:0,rgb:[125,0,179]},{index:.13,rgb:[116,0,218]},{index:.25,rgb:[98,74,237]},{index:.38,rgb:[68,146,231]},{index:.5,rgb:[0,204,197]},{index:.63,rgb:[0,247,146]},{index:.75,rgb:[0,255,88]},{index:.88,rgb:[40,255,8]},{index:1,rgb:[147,255,0]}],\"rainbow-soft\":[{index:0,rgb:[125,0,179]},{index:.1,rgb:[199,0,180]},{index:.2,rgb:[255,0,121]},{index:.3,rgb:[255,108,0]},{index:.4,rgb:[222,194,0]},{index:.5,rgb:[150,255,0]},{index:.6,rgb:[0,255,55]},{index:.7,rgb:[0,246,150]},{index:.8,rgb:[50,167,222]},{index:.9,rgb:[103,51,235]},{index:1,rgb:[124,0,186]}],bathymetry:[{index:0,rgb:[40,26,44]},{index:.13,rgb:[59,49,90]},{index:.25,rgb:[64,76,139]},{index:.38,rgb:[63,110,151]},{index:.5,rgb:[72,142,158]},{index:.63,rgb:[85,174,163]},{index:.75,rgb:[120,206,163]},{index:.88,rgb:[187,230,172]},{index:1,rgb:[253,254,204]}],cdom:[{index:0,rgb:[47,15,62]},{index:.13,rgb:[87,23,86]},{index:.25,rgb:[130,28,99]},{index:.38,rgb:[171,41,96]},{index:.5,rgb:[206,67,86]},{index:.63,rgb:[230,106,84]},{index:.75,rgb:[242,149,103]},{index:.88,rgb:[249,193,135]},{index:1,rgb:[254,237,176]}],chlorophyll:[{index:0,rgb:[18,36,20]},{index:.13,rgb:[25,63,41]},{index:.25,rgb:[24,91,59]},{index:.38,rgb:[13,119,72]},{index:.5,rgb:[18,148,80]},{index:.63,rgb:[80,173,89]},{index:.75,rgb:[132,196,122]},{index:.88,rgb:[175,221,162]},{index:1,rgb:[215,249,208]}],density:[{index:0,rgb:[54,14,36]},{index:.13,rgb:[89,23,80]},{index:.25,rgb:[110,45,132]},{index:.38,rgb:[120,77,178]},{index:.5,rgb:[120,113,213]},{index:.63,rgb:[115,151,228]},{index:.75,rgb:[134,185,227]},{index:.88,rgb:[177,214,227]},{index:1,rgb:[230,241,241]}],\"freesurface-blue\":[{index:0,rgb:[30,4,110]},{index:.13,rgb:[47,14,176]},{index:.25,rgb:[41,45,236]},{index:.38,rgb:[25,99,212]},{index:.5,rgb:[68,131,200]},{index:.63,rgb:[114,156,197]},{index:.75,rgb:[157,181,203]},{index:.88,rgb:[200,208,216]},{index:1,rgb:[241,237,236]}],\"freesurface-red\":[{index:0,rgb:[60,9,18]},{index:.13,rgb:[100,17,27]},{index:.25,rgb:[142,20,29]},{index:.38,rgb:[177,43,27]},{index:.5,rgb:[192,87,63]},{index:.63,rgb:[205,125,105]},{index:.75,rgb:[216,162,148]},{index:.88,rgb:[227,199,193]},{index:1,rgb:[241,237,236]}],oxygen:[{index:0,rgb:[64,5,5]},{index:.13,rgb:[106,6,15]},{index:.25,rgb:[144,26,7]},{index:.38,rgb:[168,64,3]},{index:.5,rgb:[188,100,4]},{index:.63,rgb:[206,136,11]},{index:.75,rgb:[220,174,25]},{index:.88,rgb:[231,215,44]},{index:1,rgb:[248,254,105]}],par:[{index:0,rgb:[51,20,24]},{index:.13,rgb:[90,32,35]},{index:.25,rgb:[129,44,34]},{index:.38,rgb:[159,68,25]},{index:.5,rgb:[182,99,19]},{index:.63,rgb:[199,134,22]},{index:.75,rgb:[212,171,35]},{index:.88,rgb:[221,210,54]},{index:1,rgb:[225,253,75]}],phase:[{index:0,rgb:[145,105,18]},{index:.13,rgb:[184,71,38]},{index:.25,rgb:[186,58,115]},{index:.38,rgb:[160,71,185]},{index:.5,rgb:[110,97,218]},{index:.63,rgb:[50,123,164]},{index:.75,rgb:[31,131,110]},{index:.88,rgb:[77,129,34]},{index:1,rgb:[145,105,18]}],salinity:[{index:0,rgb:[42,24,108]},{index:.13,rgb:[33,50,162]},{index:.25,rgb:[15,90,145]},{index:.38,rgb:[40,118,137]},{index:.5,rgb:[59,146,135]},{index:.63,rgb:[79,175,126]},{index:.75,rgb:[120,203,104]},{index:.88,rgb:[193,221,100]},{index:1,rgb:[253,239,154]}],temperature:[{index:0,rgb:[4,35,51]},{index:.13,rgb:[23,51,122]},{index:.25,rgb:[85,59,157]},{index:.38,rgb:[129,79,143]},{index:.5,rgb:[175,95,130]},{index:.63,rgb:[222,112,101]},{index:.75,rgb:[249,146,66]},{index:.88,rgb:[249,196,65]},{index:1,rgb:[232,250,91]}],turbidity:[{index:0,rgb:[34,31,27]},{index:.13,rgb:[65,50,41]},{index:.25,rgb:[98,69,52]},{index:.38,rgb:[131,89,57]},{index:.5,rgb:[161,112,59]},{index:.63,rgb:[185,140,66]},{index:.75,rgb:[202,174,88]},{index:.88,rgb:[216,209,126]},{index:1,rgb:[233,246,171]}],\"velocity-blue\":[{index:0,rgb:[17,32,64]},{index:.13,rgb:[35,52,116]},{index:.25,rgb:[29,81,156]},{index:.38,rgb:[31,113,162]},{index:.5,rgb:[50,144,169]},{index:.63,rgb:[87,173,176]},{index:.75,rgb:[149,196,189]},{index:.88,rgb:[203,221,211]},{index:1,rgb:[254,251,230]}],\"velocity-green\":[{index:0,rgb:[23,35,19]},{index:.13,rgb:[24,64,38]},{index:.25,rgb:[11,95,45]},{index:.38,rgb:[39,123,35]},{index:.5,rgb:[95,146,12]},{index:.63,rgb:[152,165,18]},{index:.75,rgb:[201,186,69]},{index:.88,rgb:[233,216,137]},{index:1,rgb:[255,253,205]}],cubehelix:[{index:0,rgb:[0,0,0]},{index:.07,rgb:[22,5,59]},{index:.13,rgb:[60,4,105]},{index:.2,rgb:[109,1,135]},{index:.27,rgb:[161,0,147]},{index:.33,rgb:[210,2,142]},{index:.4,rgb:[251,11,123]},{index:.47,rgb:[255,29,97]},{index:.53,rgb:[255,54,69]},{index:.6,rgb:[255,85,46]},{index:.67,rgb:[255,120,34]},{index:.73,rgb:[255,157,37]},{index:.8,rgb:[241,191,57]},{index:.87,rgb:[224,220,93]},{index:.93,rgb:[218,241,142]},{index:1,rgb:[227,253,198]}]}},{}],99:[function(t,e,r){\"use strict\";function n(t){var e,r,n,u,c,h,f,d,p,m,v,g,y,b=[],x=[],_=[],w=[];if(o.isPlainObject(t)||(t={}),p=t.nshades||72,d=t.format||\"hex\",f=t.colormap,f||(f=\"jet\"),\"string\"==typeof f){if(f=f.toLowerCase(),!l[f])throw Error(f+\" not a supported colorscale\");h=s(l[f])}else{if(!Array.isArray(f))throw Error(\"unsupported colormap option\",f);h=s(f)}if(h.length>p)throw new Error(f+\" map requires nshades to be at least size \"+h.length);for(v=Array.isArray(t.alpha)?2!==t.alpha.length?[1,1]:s(t.alpha):\"number\"==typeof t.alpha?[t.alpha,t.alpha]:[1,1],e=h.map(function(t){return Math.round(t.index*p)}),v[0]<0&&(v[0]=0),v[1]<0&&(v[0]=0),v[0]>1&&(v[0]=1),v[1]>1&&(v[0]=1),y=0;y<e.length;++y)g=h[y].index,r=h[y].rgb,4===r.length&&r[3]>=0&&r[3]<=1||(r[3]=v[0]+(v[1]-v[0])*g);for(y=0;y<e.length-1;++y)c=e[y+1]-e[y],n=h[y].rgb,u=h[y+1].rgb,b=b.concat(o.linspace(n[0],u[0],c)),x=x.concat(o.linspace(n[1],u[1],c)),_=_.concat(o.linspace(n[2],u[2],c)),w=w.concat(o.linspace(n[3],u[3],c));return b=b.map(Math.round),x=x.map(Math.round),_=_.map(Math.round),m=o.zip(b,x,_,w),\"hex\"===d&&(m=m.map(i)),\"rgbaString\"===d&&(m=m.map(a)),m}function i(t){for(var e,r=\"#\",n=0;n<3;++n)e=t[n],e=e.toString(16),r+=(\"00\"+e).substr(e.length);return r}function a(t){return\"rgba(\"+t.join(\",\")+\")\"}var o=t(\"arraytools\"),s=t(\"clone\"),l=t(\"./colorScales\");e.exports=n},{\"./colorScales\":98,arraytools:46,clone:91}],100:[function(t,e,r){\"use strict\";function n(t,e,r){var n=s(t[0],-e[0]),i=s(t[1],-e[1]),a=s(r[0],-e[0]),o=s(r[1],-e[1]),c=u(l(n,a),l(i,o));return c[c.length-1]>=0}function i(t,e,r,i){var s=a(e,r,i);if(0===s){var l=o(a(t,e,r)),u=o(a(t,e,i));if(l===u){if(0===l){var c=n(t,e,r);return c===n(t,e,i)?0:c?1:-1}return 0}return 0===u?l>0?-1:n(t,e,i)?-1:1:0===l?u>0?1:n(t,e,r)?1:-1:o(u-l)}var h=a(t,e,r);return h>0?s>0&&a(t,e,i)>0?1:-1:h<0?s>0||a(t,e,i)>0?1:-1:a(t,e,i)>0?1:n(t,e,r)?1:-1}e.exports=i;var a=t(\"robust-orientation\"),o=t(\"signum\"),s=t(\"two-sum\"),l=t(\"robust-product\"),u=t(\"robust-sum\")},{\"robust-orientation\":508,\"robust-product\":509,\"robust-sum\":513,signum:515,\"two-sum\":540}],101:[function(t,e,r){function n(t,e){return t-e}function i(t,e){var r=t.length,i=t.length-e.length;if(i)return i;switch(r){case 0:return 0;case 1:return t[0]-e[0];case 2:return t[0]+t[1]-e[0]-e[1]||a(t[0],t[1])-a(e[0],e[1]);case 3:var o=t[0]+t[1],s=e[0]+e[1];if(i=o+t[2]-(s+e[2]))return i;var l=a(t[0],t[1]),u=a(e[0],e[1]);return a(l,t[2])-a(u,e[2])||a(l+t[2],o)-a(u+e[2],s);case 4:var c=t[0],h=t[1],f=t[2],d=t[3],p=e[0],m=e[1],v=e[2],g=e[3];return c+h+f+d-(p+m+v+g)||a(c,h,f,d)-a(p,m,v,g,p)||a(c+h,c+f,c+d,h+f,h+d,f+d)-a(p+m,p+v,p+g,m+v,m+g,v+g)||a(c+h+f,c+h+d,c+f+d,h+f+d)-a(p+m+v,p+m+g,p+v+g,m+v+g);default:for(var y=t.slice().sort(n),b=e.slice().sort(n),x=0;x<r;++x)if(i=y[x]-b[x])return i;return 0}}e.exports=i;var a=Math.min},{}],102:[function(t,e,r){\"use strict\";function n(t,e){return i(t,e)||a(t)-a(e)}var i=t(\"compare-cell\"),a=t(\"cell-orientation\");e.exports=n},{\"cell-orientation\":85,\"compare-cell\":101}],103:[function(t,e,r){\"use strict\";function n(t){var e=t.length;if(0===e)return[];if(1===e)return[[0]];var r=t[0].length;return 0===r?[]:1===r?i(t):2===r?a(t):o(t,r)}var i=t(\"./lib/ch1d\"),a=t(\"./lib/ch2d\"),o=t(\"./lib/chnd\");e.exports=n},{\"./lib/ch1d\":104,\"./lib/ch2d\":105,\"./lib/chnd\":106}],104:[function(t,e,r){\"use strict\";function n(t){for(var e=0,r=0,n=1;n<t.length;++n)t[n][0]<t[e][0]&&(e=n),t[n][0]>t[r][0]&&(r=n);return e<r?[[e],[r]]:e>r?[[r],[e]]:[[e]]}e.exports=n},{}],105:[function(t,e,r){\"use strict\";function n(t){var e=i(t),r=e.length;if(r<=2)return[];for(var n=new Array(r),a=e[r-1],o=0;o<r;++o){var s=e[o];n[o]=[a,s],a=s}return n}e.exports=n;var i=t(\"monotone-convex-hull-2d\")},{\"monotone-convex-hull-2d\":451}],106:[function(t,e,r){\"use strict\";function n(t,e){for(var r=t.length,n=new Array(r),i=0;i<e.length;++i)n[i]=t[e[i]];for(var a=e.length,i=0;i<r;++i)e.indexOf(i)<0&&(n[a++]=t[i]);return n}function i(t,e){for(var r=t.length,n=e.length,i=0;i<r;++i)for(var a=t[i],o=0;o<a.length;++o){var s=a[o];if(s<n)a[o]=e[s];else{s-=n;for(var l=0;l<n;++l)s>=e[l]&&(s+=1);a[o]=s}}return t}function a(t,e){try{return o(t,!0)}catch(u){var r=s(t);if(r.length<=e)return[];var a=n(t,r),l=o(a,!0);return i(l,r)}}e.exports=a;var o=t(\"incremental-convex-hull\"),s=t(\"affine-hull\")},{\"affine-hull\":41,\"incremental-convex-hull\":290}],107:[function(t,e,r){e.exports={AFG:\"afghan\",ALA:\"\\\\b\\\\wland\",ALB:\"albania\",DZA:\"algeria\",ASM:\"^(?=.*americ).*samoa\",AND:\"andorra\",AGO:\"angola\",AIA:\"anguill?a\",ATA:\"antarctica\",ATG:\"antigua\",ARG:\"argentin\",ARM:\"armenia\",ABW:\"^(?!.*bonaire).*\\\\baruba\",AUS:\"australia\",AUT:\"^(?!.*hungary).*austria|\\\\baustri.*\\\\bemp\",AZE:\"azerbaijan\",BHS:\"bahamas\",BHR:\"bahrain\",BGD:\"bangladesh|^(?=.*east).*paki?stan\",BRB:\"barbados\",BLR:\"belarus|byelo\",BEL:\"^(?!.*luxem).*belgium\",BLZ:\"belize|^(?=.*british).*honduras\",BEN:\"benin|dahome\",BMU:\"bermuda\",BTN:\"bhutan\",BOL:\"bolivia\",BES:\"^(?=.*bonaire).*eustatius|^(?=.*carib).*netherlands|\\\\bbes.?islands\",BIH:\"herzegovina|bosnia\",BWA:\"botswana|bechuana\",BVT:\"bouvet\",BRA:\"brazil\",IOT:\"british.?indian.?ocean\",BRN:\"brunei\",BGR:\"bulgaria\",BFA:\"burkina|\\\\bfaso|upper.?volta\",BDI:\"burundi\",CPV:\"verde\",KHM:\"cambodia|kampuchea|khmer\",CMR:\"cameroon\",CAN:\"canada\",CYM:\"cayman\",CAF:\"\\\\bcentral.african.republic\",TCD:\"\\\\bchad\",CHL:\"\\\\bchile\",CHN:\"^(?!.*\\\\bmac)(?!.*\\\\bhong)(?!.*\\\\btai)(?!.*\\\\brep).*china|^(?=.*peo)(?=.*rep).*china\",CXR:\"christmas\",CCK:\"\\\\bcocos|keeling\",COL:\"colombia\",COM:\"comoro\",COG:\"^(?!.*\\\\bdem)(?!.*\\\\bd[\\\\.]?r)(?!.*kinshasa)(?!.*zaire)(?!.*belg)(?!.*l.opoldville)(?!.*free).*\\\\bcongo\",COK:\"\\\\bcook\",CRI:\"costa.?rica\",CIV:\"ivoire|ivory\",HRV:\"croatia\",CUB:\"\\\\bcuba\",CUW:\"^(?!.*bonaire).*\\\\bcura(c|\\xe7)ao\",CYP:\"cyprus\",CSK:\"czechoslovakia\",CZE:\"^(?=.*rep).*czech|czechia|bohemia\",COD:\"\\\\bdem.*congo|congo.*\\\\bdem|congo.*\\\\bd[\\\\.]?r|\\\\bd[\\\\.]?r.*congo|belgian.?congo|congo.?free.?state|kinshasa|zaire|l.opoldville|drc|droc|rdc\",DNK:\"denmark\",DJI:\"djibouti\",DMA:\"dominica(?!n)\",DOM:\"dominican.rep\",ECU:\"ecuador\",EGY:\"egypt\",SLV:\"el.?salvador\",GNQ:\"guine.*eq|eq.*guine|^(?=.*span).*guinea\",ERI:\"eritrea\",EST:\"estonia\",ETH:\"ethiopia|abyssinia\",FLK:\"falkland|malvinas\",FRO:\"faroe|faeroe\",FJI:\"fiji\",FIN:\"finland\",FRA:\"^(?!.*\\\\bdep)(?!.*martinique).*france|french.?republic|\\\\bgaul\",GUF:\"^(?=.*french).*guiana\",PYF:\"french.?polynesia|tahiti\",ATF:\"french.?southern\",GAB:\"gabon\",GMB:\"gambia\",GEO:\"^(?!.*south).*georgia\",DDR:\"german.?democratic.?republic|democratic.?republic.*germany|east.germany\",DEU:\"^(?!.*east).*germany|^(?=.*\\\\bfed.*\\\\brep).*german\",GHA:\"ghana|gold.?coast\",GIB:\"gibraltar\",GRC:\"greece|hellenic|hellas\",GRL:\"greenland\",GRD:\"grenada\",GLP:\"guadeloupe\",GUM:\"\\\\bguam\",GTM:\"guatemala\",GGY:\"guernsey\",GIN:\"^(?!.*eq)(?!.*span)(?!.*bissau)(?!.*portu)(?!.*new).*guinea\",GNB:\"bissau|^(?=.*portu).*guinea\",GUY:\"guyana|british.?guiana\",HTI:\"haiti\",HMD:\"heard.*mcdonald\",VAT:\"holy.?see|vatican|papal.?st\",HND:\"^(?!.*brit).*honduras\",HKG:\"hong.?kong\",HUN:\"^(?!.*austr).*hungary\",ISL:\"iceland\",IND:\"india(?!.*ocea)\",IDN:\"indonesia\",IRN:\"\\\\biran|persia\",IRQ:\"\\\\biraq|mesopotamia\",IRL:\"(^ireland)|(^republic.*ireland)\",IMN:\"^(?=.*isle).*\\\\bman\",ISR:\"israel\",ITA:\"italy\",JAM:\"jamaica\",JPN:\"japan\",JEY:\"jersey\",JOR:\"jordan\",KAZ:\"kazak\",KEN:\"kenya|british.?east.?africa|east.?africa.?prot\",KIR:\"kiribati\",PRK:\"^(?=.*democrat|people|north|d.*p.*.r).*\\\\bkorea|dprk|korea.*(d.*p.*r)\",KWT:\"kuwait\",KGZ:\"kyrgyz|kirghiz\",LAO:\"\\\\blaos?\\\\b\",LVA:\"latvia\",LBN:\"lebanon\",LSO:\"lesotho|basuto\",LBR:\"liberia\",LBY:\"libya\",LIE:\"liechtenstein\",LTU:\"lithuania\",LUX:\"^(?!.*belg).*luxem\",MAC:\"maca(o|u)\",MDG:\"madagascar|malagasy\",MWI:\"malawi|nyasa\",MYS:\"malaysia\",MDV:\"maldive\",MLI:\"\\\\bmali\\\\b\",MLT:\"\\\\bmalta\",MHL:\"marshall\",MTQ:\"martinique\",MRT:\"mauritania\",MUS:\"mauritius\",MYT:\"\\\\bmayotte\",MEX:\"\\\\bmexic\",FSM:\"fed.*micronesia|micronesia.*fed\",MCO:\"monaco\",MNG:\"mongolia\",MNE:\"^(?!.*serbia).*montenegro\",MSR:\"montserrat\",MAR:\"morocco|\\\\bmaroc\",MOZ:\"mozambique\",MMR:\"myanmar|burma\",NAM:\"namibia\",NRU:\"nauru\",NPL:\"nepal\",NLD:\"^(?!.*\\\\bant)(?!.*\\\\bcarib).*netherlands\",ANT:\"^(?=.*\\\\bant).*(nether|dutch)\",NCL:\"new.?caledonia\",NZL:\"new.?zealand\",NIC:\"nicaragua\",NER:\"\\\\bniger(?!ia)\",NGA:\"nigeria\",NIU:\"niue\",NFK:\"norfolk\",MNP:\"mariana\",NOR:\"norway\",OMN:\"\\\\boman|trucial\",PAK:\"^(?!.*east).*paki?stan\",PLW:\"palau\",PSE:\"palestin|\\\\bgaza|west.?bank\",PAN:\"panama\",PNG:\"papua|new.?guinea\",PRY:\"paraguay\",PER:\"peru\",PHL:\"philippines\",PCN:\"pitcairn\",POL:\"poland\",PRT:\"portugal\",PRI:\"puerto.?rico\",QAT:\"qatar\",KOR:\"^(?!.*d.*p.*r)(?!.*democrat)(?!.*people)(?!.*north).*\\\\bkorea(?!.*d.*p.*r)\",MDA:\"moldov|b(a|e)ssarabia\",REU:\"r(e|\\xe9)union\",ROU:\"r(o|u|ou)mania\",RUS:\"\\\\brussia|soviet.?union|u\\\\.?s\\\\.?s\\\\.?r|socialist.?republics\",RWA:\"rwanda\",BLM:\"barth(e|\\xe9)lemy\",SHN:\"helena\",KNA:\"kitts|\\\\bnevis\",LCA:\"\\\\blucia\",MAF:\"^(?=.*collectivity).*martin|^(?=.*france).*martin(?!ique)|^(?=.*french).*martin(?!ique)\",SPM:\"miquelon\",VCT:\"vincent\",WSM:\"^(?!.*amer).*samoa\",SMR:\"san.?marino\",STP:\"\\\\bs(a|\\xe3)o.?tom(e|\\xe9)\",SAU:\"\\\\bsa\\\\w*.?arabia\",SEN:\"senegal\",SRB:\"^(?!.*monte).*serbia\",SYC:\"seychell\",SLE:\"sierra\",SGP:\"singapore\",SXM:\"^(?!.*martin)(?!.*saba).*maarten\",SVK:\"^(?!.*cze).*slovak\",SVN:\"slovenia\",SLB:\"solomon\",SOM:\"somali\",ZAF:\"south.africa|s\\\\\\\\..?africa\",SGS:\"south.?georgia|sandwich\",SSD:\"\\\\bs\\\\w*.?sudan\",ESP:\"spain\",LKA:\"sri.?lanka|ceylon\",SDN:\"^(?!.*\\\\bs(?!u)).*sudan\",SUR:\"surinam|dutch.?guiana\",SJM:\"svalbard\",SWZ:\"swaziland\",SWE:\"sweden\",CHE:\"switz|swiss\",SYR:\"syria\",TWN:\"taiwan|taipei|formosa|^(?!.*peo)(?=.*rep).*china\",TJK:\"tajik\",THA:\"thailand|\\\\bsiam\",MKD:\"macedonia|fyrom\",TLS:\"^(?=.*leste).*timor|^(?=.*east).*timor\",TGO:\"togo\",TKL:\"tokelau\",TON:\"tonga\",TTO:\"trinidad|tobago\",TUN:\"tunisia\",TUR:\"turkey\",TKM:\"turkmen\",TCA:\"turks\",TUV:\"tuvalu\",UGA:\"uganda\",UKR:\"ukrain\",ARE:\"emirates|^u\\\\.?a\\\\.?e\\\\.?$|united.?arab.?em\",GBR:\"united.?kingdom|britain|^u\\\\.?k\\\\.?$\",TZA:\"tanzania\",USA:\"united.?states\\\\b(?!.*islands)|\\\\bu\\\\.?s\\\\.?a\\\\.?\\\\b|^\\\\s*u\\\\.?s\\\\.?\\\\b(?!.*islands)\",UMI:\"minor.?outlying.?is\",URY:\"uruguay\",UZB:\"uzbek\",VUT:\"vanuatu|new.?hebrides\",VEN:\"venezuela\",VNM:\"^(?!.*republic).*viet.?nam|^(?=.*socialist).*viet.?nam\",VGB:\"^(?=.*\\\\bu\\\\.?\\\\s?k).*virgin|^(?=.*brit).*virgin|^(?=.*kingdom).*virgin\",VIR:\"^(?=.*\\\\bu\\\\.?\\\\s?s).*virgin|^(?=.*states).*virgin\",WLF:\"futuna|wallis\",ESH:\"western.sahara\",YEM:\"^(?!.*arab)(?!.*north)(?!.*sana)(?!.*peo)(?!.*dem)(?!.*south)(?!.*aden)(?!.*\\\\bp\\\\.?d\\\\.?r).*yemen\",YMD:\"^(?=.*peo).*yemen|^(?!.*rep)(?=.*dem).*yemen|^(?=.*south).*yemen|^(?=.*aden).*yemen|^(?=.*\\\\bp\\\\.?d\\\\.?r).*yemen\",YUG:\"yugoslavia\",ZMB:\"zambia|northern.?rhodesia\",EAZ:\"zanzibar\",ZWE:\"zimbabwe|^(?!.*northern).*rhodesia\"}},{}],108:[function(t,e,r){function n(t){return t=Math.round(t),t<0?0:t>255?255:t}function i(t){return t<0?0:t>1?1:t}function a(t){return n(\"%\"===t[t.length-1]?parseFloat(t)/100*255:parseInt(t))}function o(t){return i(\"%\"===t[t.length-1]?parseFloat(t)/100:parseFloat(t))}function s(t,e,r){return r<0?r+=1:r>1&&(r-=1),6*r<1?t+(e-t)*r*6:2*r<1?e:3*r<2?t+(e-t)*(2/3-r)*6:t}function l(t){var e=t.replace(/ /g,\"\").toLowerCase();if(e in u)return u[e].slice();if(\"#\"===e[0]){if(4===e.length){var r=parseInt(e.substr(1),16);return r>=0&&r<=4095?[(3840&r)>>4|(3840&r)>>8,240&r|(240&r)>>4,15&r|(15&r)<<4,1]:null}if(7===e.length){var r=parseInt(e.substr(1),16);return r>=0&&r<=16777215?[(16711680&r)>>16,(65280&r)>>8,255&r,1]:null}return null}var i=e.indexOf(\"(\"),l=e.indexOf(\")\");if(-1!==i&&l+1===e.length){var c=e.substr(0,i),h=e.substr(i+1,l-(i+1)).split(\",\"),f=1;switch(c){case\"rgba\":if(4!==h.length)return null;f=o(h.pop());case\"rgb\":return 3!==h.length?null:[a(h[0]),a(h[1]),a(h[2]),f];case\"hsla\":if(4!==h.length)return null;f=o(h.pop());case\"hsl\":if(3!==h.length)return null;var d=(parseFloat(h[0])%360+360)%360/360,p=o(h[1]),m=o(h[2]),v=m<=.5?m*(p+1):m+p-m*p,g=2*m-v;return[n(255*s(g,v,d+1/3)),n(255*s(g,v,d)),n(255*s(g,v,d-1/3)),f];default:return null}}return null}var u={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],\n", "cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],rebeccapurple:[102,51,153,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};try{r.parseCSSColor=l}catch(t){}},{}],109:[function(t,e,r){\"use strict\";function n(t,e,r,n,i,a){var o=6*i*i-6*i,s=3*i*i-4*i+1,l=-6*i*i+6*i,u=3*i*i-2*i;if(t.length){a||(a=new Array(t.length));for(var c=t.length-1;c>=0;--c)a[c]=o*t[c]+s*e[c]+l*r[c]+u*n[c];return a}return o*t+s*e+l*r[c]+u*n}function i(t,e,r,n,i,a){var o=i-1,s=i*i,l=o*o,u=(1+2*i)*l,c=i*l,h=s*(3-2*i),f=s*o;if(t.length){a||(a=new Array(t.length));for(var d=t.length-1;d>=0;--d)a[d]=u*t[d]+c*e[d]+h*r[d]+f*n[d];return a}return u*t+c*e+h*r+f*n}e.exports=i,e.exports.derivative=n},{}],110:[function(t,e,r){\"use strict\";function n(){this.argTypes=[],this.shimArgs=[],this.arrayArgs=[],this.arrayBlockIndices=[],this.scalarArgs=[],this.offsetArgs=[],this.offsetArgIndex=[],this.indexArgs=[],this.shapeArgs=[],this.funcName=\"\",this.pre=null,this.body=null,this.post=null,this.debug=!1}function i(t){var e=new n;e.pre=t.pre,e.body=t.body,e.post=t.post;var r=t.args.slice(0);e.argTypes=r;for(var i=0;i<r.length;++i){var o=r[i];if(\"array\"===o||\"object\"==typeof o&&o.blockIndices){if(e.argTypes[i]=\"array\",e.arrayArgs.push(i),e.arrayBlockIndices.push(o.blockIndices?o.blockIndices:0),e.shimArgs.push(\"array\"+i),i<e.pre.args.length&&e.pre.args[i].count>0)throw new Error(\"cwise: pre() block may not reference array args\");if(i<e.post.args.length&&e.post.args[i].count>0)throw new Error(\"cwise: post() block may not reference array args\")}else if(\"scalar\"===o)e.scalarArgs.push(i),e.shimArgs.push(\"scalar\"+i);else if(\"index\"===o){if(e.indexArgs.push(i),i<e.pre.args.length&&e.pre.args[i].count>0)throw new Error(\"cwise: pre() block may not reference array index\");if(i<e.body.args.length&&e.body.args[i].lvalue)throw new Error(\"cwise: body() block may not write to array index\");if(i<e.post.args.length&&e.post.args[i].count>0)throw new Error(\"cwise: post() block may not reference array index\")}else if(\"shape\"===o){if(e.shapeArgs.push(i),i<e.pre.args.length&&e.pre.args[i].lvalue)throw new Error(\"cwise: pre() block may not write to array shape\");if(i<e.body.args.length&&e.body.args[i].lvalue)throw new Error(\"cwise: body() block may not write to array shape\");if(i<e.post.args.length&&e.post.args[i].lvalue)throw new Error(\"cwise: post() block may not write to array shape\")}else{if(\"object\"!=typeof o||!o.offset)throw new Error(\"cwise: Unknown argument type \"+r[i]);e.argTypes[i]=\"offset\",e.offsetArgs.push({array:o.array,offset:o.offset}),e.offsetArgIndex.push(i)}}if(e.arrayArgs.length<=0)throw new Error(\"cwise: No array arguments specified\");if(e.pre.args.length>r.length)throw new Error(\"cwise: Too many arguments in pre() block\");if(e.body.args.length>r.length)throw new Error(\"cwise: Too many arguments in body() block\");if(e.post.args.length>r.length)throw new Error(\"cwise: Too many arguments in post() block\");return e.debug=!!t.printCode||!!t.debug,e.funcName=t.funcName||\"cwise\",e.blockSize=t.blockSize||64,a(e)}var a=t(\"./lib/thunk.js\");e.exports=i},{\"./lib/thunk.js\":112}],111:[function(t,e,r){\"use strict\";function n(t,e,r){var n,i,a=t.length,o=e.arrayArgs.length,s=e.indexArgs.length>0,l=[],u=[],c=0,h=0;for(n=0;n<a;++n)u.push([\"i\",n,\"=0\"].join(\"\"));for(i=0;i<o;++i)for(n=0;n<a;++n)h=c,c=t[n],0===n?u.push([\"d\",i,\"s\",n,\"=t\",i,\"p\",c].join(\"\")):u.push([\"d\",i,\"s\",n,\"=(t\",i,\"p\",c,\"-s\",h,\"*t\",i,\"p\",h,\")\"].join(\"\"));for(u.length>0&&l.push(\"var \"+u.join(\",\")),n=a-1;n>=0;--n)c=t[n],l.push([\"for(i\",n,\"=0;i\",n,\"<s\",c,\";++i\",n,\"){\"].join(\"\"));for(l.push(r),n=0;n<a;++n){for(h=c,c=t[n],i=0;i<o;++i)l.push([\"p\",i,\"+=d\",i,\"s\",n].join(\"\"));s&&(n>0&&l.push([\"index[\",h,\"]-=s\",h].join(\"\")),l.push([\"++index[\",c,\"]\"].join(\"\"))),l.push(\"}\")}return l.join(\"\\n\")}function i(t,e,r,i){for(var a=e.length,o=r.arrayArgs.length,s=r.blockSize,l=r.indexArgs.length>0,u=[],c=0;c<o;++c)u.push([\"var offset\",c,\"=p\",c].join(\"\"));for(var c=t;c<a;++c)u.push([\"for(var j\"+c+\"=SS[\",e[c],\"]|0;j\",c,\">0;){\"].join(\"\")),u.push([\"if(j\",c,\"<\",s,\"){\"].join(\"\")),u.push([\"s\",e[c],\"=j\",c].join(\"\")),u.push([\"j\",c,\"=0\"].join(\"\")),u.push([\"}else{s\",e[c],\"=\",s].join(\"\")),u.push([\"j\",c,\"-=\",s,\"}\"].join(\"\")),l&&u.push([\"index[\",e[c],\"]=j\",c].join(\"\"));for(var c=0;c<o;++c){for(var h=[\"offset\"+c],f=t;f<a;++f)h.push([\"j\",f,\"*t\",c,\"p\",e[f]].join(\"\"));u.push([\"p\",c,\"=(\",h.join(\"+\"),\")\"].join(\"\"))}u.push(n(e,r,i));for(var c=t;c<a;++c)u.push(\"}\");return u.join(\"\\n\")}function a(t){for(var e=0,r=t[0].length;e<r;){for(var n=1;n<t.length;++n)if(t[n][e]!==t[0][e])return e;++e}return e}function o(t,e,r){for(var n=t.body,i=[],a=[],o=0;o<t.args.length;++o){var s=t.args[o];if(!(s.count<=0)){var l=new RegExp(s.name,\"g\"),u=\"\",c=e.arrayArgs.indexOf(o);switch(e.argTypes[o]){case\"offset\":var h=e.offsetArgIndex.indexOf(o);c=e.offsetArgs[h].array,u=\"+q\"+h;case\"array\":u=\"p\"+c+u;var f=\"l\"+o,d=\"a\"+c;if(0===e.arrayBlockIndices[c])1===s.count?\"generic\"===r[c]?s.lvalue?(i.push([\"var \",f,\"=\",d,\".get(\",u,\")\"].join(\"\")),n=n.replace(l,f),a.push([d,\".set(\",u,\",\",f,\")\"].join(\"\"))):n=n.replace(l,[d,\".get(\",u,\")\"].join(\"\")):n=n.replace(l,[d,\"[\",u,\"]\"].join(\"\")):\"generic\"===r[c]?(i.push([\"var \",f,\"=\",d,\".get(\",u,\")\"].join(\"\")),n=n.replace(l,f),s.lvalue&&a.push([d,\".set(\",u,\",\",f,\")\"].join(\"\"))):(i.push([\"var \",f,\"=\",d,\"[\",u,\"]\"].join(\"\")),n=n.replace(l,f),s.lvalue&&a.push([d,\"[\",u,\"]=\",f].join(\"\")));else{for(var p=[s.name],m=[u],v=0;v<Math.abs(e.arrayBlockIndices[c]);v++)p.push(\"\\\\s*\\\\[([^\\\\]]+)\\\\]\"),m.push(\"$\"+(v+1)+\"*t\"+c+\"b\"+v);if(l=new RegExp(p.join(\"\"),\"g\"),u=m.join(\"+\"),\"generic\"===r[c])throw new Error(\"cwise: Generic arrays not supported in combination with blocks!\");n=n.replace(l,[d,\"[\",u,\"]\"].join(\"\"))}break;case\"scalar\":n=n.replace(l,\"Y\"+e.scalarArgs.indexOf(o));break;case\"index\":n=n.replace(l,\"index\");break;case\"shape\":n=n.replace(l,\"shape\")}}}return[i.join(\"\\n\"),n,a.join(\"\\n\")].join(\"\\n\").trim()}function s(t){for(var e=new Array(t.length),r=!0,n=0;n<t.length;++n){var i=t[n],a=i.match(/\\d+/);a=a?a[0]:\"\",0===i.charAt(0)?e[n]=\"u\"+i.charAt(1)+a:e[n]=i.charAt(0)+a,n>0&&(r=r&&e[n]===e[n-1])}return r?e[0]:e.join(\"\")}function l(t,e){for(var r=e[1].length-Math.abs(t.arrayBlockIndices[0])|0,l=new Array(t.arrayArgs.length),c=new Array(t.arrayArgs.length),h=0;h<t.arrayArgs.length;++h)c[h]=e[2*h],l[h]=e[2*h+1];for(var f=[],d=[],p=[],m=[],v=[],h=0;h<t.arrayArgs.length;++h){t.arrayBlockIndices[h]<0?(p.push(0),m.push(r),f.push(r),d.push(r+t.arrayBlockIndices[h])):(p.push(t.arrayBlockIndices[h]),m.push(t.arrayBlockIndices[h]+r),f.push(0),d.push(t.arrayBlockIndices[h]));for(var g=[],y=0;y<l[h].length;y++)p[h]<=l[h][y]&&l[h][y]<m[h]&&g.push(l[h][y]-p[h]);v.push(g)}for(var b=[\"SS\"],x=[\"'use strict'\"],_=[],y=0;y<r;++y)_.push([\"s\",y,\"=SS[\",y,\"]\"].join(\"\"));for(var h=0;h<t.arrayArgs.length;++h){b.push(\"a\"+h),b.push(\"t\"+h),b.push(\"p\"+h);for(var y=0;y<r;++y)_.push([\"t\",h,\"p\",y,\"=t\",h,\"[\",p[h]+y,\"]\"].join(\"\"));for(var y=0;y<Math.abs(t.arrayBlockIndices[h]);++y)_.push([\"t\",h,\"b\",y,\"=t\",h,\"[\",f[h]+y,\"]\"].join(\"\"))}for(var h=0;h<t.scalarArgs.length;++h)b.push(\"Y\"+h);if(t.shapeArgs.length>0&&_.push(\"shape=SS.slice(0)\"),t.indexArgs.length>0){for(var w=new Array(r),h=0;h<r;++h)w[h]=\"0\";_.push([\"index=[\",w.join(\",\"),\"]\"].join(\"\"))}for(var h=0;h<t.offsetArgs.length;++h){for(var M=t.offsetArgs[h],k=[],y=0;y<M.offset.length;++y)0!==M.offset[y]&&(1===M.offset[y]?k.push([\"t\",M.array,\"p\",y].join(\"\")):k.push([M.offset[y],\"*t\",M.array,\"p\",y].join(\"\")));0===k.length?_.push(\"q\"+h+\"=0\"):_.push([\"q\",h,\"=\",k.join(\"+\")].join(\"\"))}var A=u([].concat(t.pre.thisVars).concat(t.body.thisVars).concat(t.post.thisVars));_=_.concat(A),_.length>0&&x.push(\"var \"+_.join(\",\"));for(var h=0;h<t.arrayArgs.length;++h)x.push(\"p\"+h+\"|=0\");t.pre.body.length>3&&x.push(o(t.pre,t,c));var T=o(t.body,t,c),S=a(v);S<r?x.push(i(S,v[0],t,T)):x.push(n(v[0],t,T)),t.post.body.length>3&&x.push(o(t.post,t,c)),t.debug&&console.log(\"-----Generated cwise routine for \",e,\":\\n\"+x.join(\"\\n\")+\"\\n----------\");var E=[t.funcName||\"unnamed\",\"_cwise_loop_\",l[0].join(\"s\"),\"m\",S,s(c)].join(\"\");return new Function([\"function \",E,\"(\",b.join(\",\"),\"){\",x.join(\"\\n\"),\"} return \",E].join(\"\"))()}var u=t(\"uniq\");e.exports=l},{uniq:543}],112:[function(t,e,r){\"use strict\";function n(t){var e=[\"'use strict'\",\"var CACHED={}\"],r=[],n=t.funcName+\"_cwise_thunk\";e.push([\"return function \",n,\"(\",t.shimArgs.join(\",\"),\"){\"].join(\"\"));for(var a=[],o=[],s=[[\"array\",t.arrayArgs[0],\".shape.slice(\",Math.max(0,t.arrayBlockIndices[0]),t.arrayBlockIndices[0]<0?\",\"+t.arrayBlockIndices[0]+\")\":\")\"].join(\"\")],l=[],u=[],c=0;c<t.arrayArgs.length;++c){var h=t.arrayArgs[c];r.push([\"t\",h,\"=array\",h,\".dtype,\",\"r\",h,\"=array\",h,\".order\"].join(\"\")),a.push(\"t\"+h),a.push(\"r\"+h),o.push(\"t\"+h),o.push(\"r\"+h+\".join()\"),s.push(\"array\"+h+\".data\"),s.push(\"array\"+h+\".stride\"),s.push(\"array\"+h+\".offset|0\"),c>0&&(l.push(\"array\"+t.arrayArgs[0]+\".shape.length===array\"+h+\".shape.length+\"+(Math.abs(t.arrayBlockIndices[0])-Math.abs(t.arrayBlockIndices[c]))),u.push(\"array\"+t.arrayArgs[0]+\".shape[shapeIndex+\"+Math.max(0,t.arrayBlockIndices[0])+\"]===array\"+h+\".shape[shapeIndex+\"+Math.max(0,t.arrayBlockIndices[c])+\"]\"))}t.arrayArgs.length>1&&(e.push(\"if (!(\"+l.join(\" && \")+\")) throw new Error('cwise: Arrays do not all have the same dimensionality!')\"),e.push(\"for(var shapeIndex=array\"+t.arrayArgs[0]+\".shape.length-\"+Math.abs(t.arrayBlockIndices[0])+\"; shapeIndex--\\x3e0;) {\"),e.push(\"if (!(\"+u.join(\" && \")+\")) throw new Error('cwise: Arrays do not all have the same shape!')\"),e.push(\"}\"));for(var c=0;c<t.scalarArgs.length;++c)s.push(\"scalar\"+t.scalarArgs[c]);return r.push([\"type=[\",o.join(\",\"),\"].join()\"].join(\"\")),r.push(\"proc=CACHED[type]\"),e.push(\"var \"+r.join(\",\")),e.push([\"if(!proc){\",\"CACHED[type]=proc=compile([\",a.join(\",\"),\"])}\",\"return proc(\",s.join(\",\"),\")}\"].join(\"\")),t.debug&&console.log(\"-----Generated thunk:\\n\"+e.join(\"\\n\")+\"\\n----------\"),new Function(\"compile\",e.join(\"\\n\"))(i.bind(void 0,t))}var i=t(\"./compile.js\");e.exports=n},{\"./compile.js\":111}],113:[function(t,e,r){e.exports=t(\"cwise-compiler\")},{\"cwise-compiler\":110}],114:[function(e,r,n){!function(e,i){\"object\"==typeof n&&void 0!==r?i(n):\"function\"==typeof t&&t.amd?t([\"exports\"],i):i(e.d3=e.d3||{})}(this,function(t){\"use strict\";function e(t){return function(e,r){return o(t(e),r)}}function r(t,e){return[t,e]}function n(t,e,r){var n=(e-t)/Math.max(0,r),i=Math.floor(Math.log(n)/Math.LN10),a=n/Math.pow(10,i);return i>=0?(a>=k?10:a>=A?5:a>=T?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(a>=k?10:a>=A?5:a>=T?2:1)}function i(t,e,r){var n=Math.abs(e-t)/Math.max(0,r),i=Math.pow(10,Math.floor(Math.log(n)/Math.LN10)),a=n/i;return a>=k?i*=10:a>=A?i*=5:a>=T&&(i*=2),e<t?-i:i}function a(t){return t.length}var o=function(t,e){return t<e?-1:t>e?1:t>=e?0:NaN},s=function(t){return 1===t.length&&(t=e(t)),{left:function(e,r,n,i){for(null==n&&(n=0),null==i&&(i=e.length);n<i;){var a=n+i>>>1;t(e[a],r)<0?n=a+1:i=a}return n},right:function(e,r,n,i){for(null==n&&(n=0),null==i&&(i=e.length);n<i;){var a=n+i>>>1;t(e[a],r)>0?i=a:n=a+1}return n}}},l=s(o),u=l.right,c=l.left,h=function(t,e){null==e&&(e=r);for(var n=0,i=t.length-1,a=t[0],o=new Array(i<0?0:i);n<i;)o[n]=e(a,a=t[++n]);return o},f=function(t,e,n){var i,a,o,s,l=t.length,u=e.length,c=new Array(l*u);for(null==n&&(n=r),i=o=0;i<l;++i)for(s=t[i],a=0;a<u;++a,++o)c[o]=n(s,e[a]);return c},d=function(t,e){return e<t?-1:e>t?1:e>=t?0:NaN},p=function(t){return null===t?NaN:+t},m=function(t,e){var r,n,i=t.length,a=0,o=-1,s=0,l=0;if(null==e)for(;++o<i;)isNaN(r=p(t[o]))||(n=r-s,s+=n/++a,l+=n*(r-s));else for(;++o<i;)isNaN(r=p(e(t[o],o,t)))||(n=r-s,s+=n/++a,l+=n*(r-s));if(a>1)return l/(a-1)},v=function(t,e){var r=m(t,e);return r?Math.sqrt(r):r},g=function(t,e){var r,n,i,a=t.length,o=-1;if(null==e){for(;++o<a;)if(null!=(r=t[o])&&r>=r)for(n=i=r;++o<a;)null!=(r=t[o])&&(n>r&&(n=r),i<r&&(i=r))}else for(;++o<a;)if(null!=(r=e(t[o],o,t))&&r>=r)for(n=i=r;++o<a;)null!=(r=e(t[o],o,t))&&(n>r&&(n=r),i<r&&(i=r));return[n,i]},y=Array.prototype,b=y.slice,x=y.map,_=function(t){return function(){return t}},w=function(t){return t},M=function(t,e,r){t=+t,e=+e,r=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+r;for(var n=-1,i=0|Math.max(0,Math.ceil((e-t)/r)),a=new Array(i);++n<i;)a[n]=t+n*r;return a},k=Math.sqrt(50),A=Math.sqrt(10),T=Math.sqrt(2),S=function(t,e,r){var i,a,o,s=e<t,l=-1;if(s&&(i=t,t=e,e=i),0===(o=n(t,e,r))||!isFinite(o))return[];if(o>0)for(t=Math.ceil(t/o),e=Math.floor(e/o),a=new Array(i=Math.ceil(e-t+1));++l<i;)a[l]=(t+l)*o;else for(t=Math.floor(t*o),e=Math.ceil(e*o),a=new Array(i=Math.ceil(t-e+1));++l<i;)a[l]=(t-l)/o;return s&&a.reverse(),a},E=function(t){return Math.ceil(Math.log(t.length)/Math.LN2)+1},L=function(){function t(t){var a,o,s=t.length,l=new Array(s);for(a=0;a<s;++a)l[a]=e(t[a],a,t);var c=r(l),h=c[0],f=c[1],d=n(l,h,f);Array.isArray(d)||(d=i(h,f,d),d=M(Math.ceil(h/d)*d,Math.floor(f/d)*d,d));for(var p=d.length;d[0]<=h;)d.shift(),--p;for(;d[p-1]>f;)d.pop(),--p;var m,v=new Array(p+1);for(a=0;a<=p;++a)m=v[a]=[],m.x0=a>0?d[a-1]:h,m.x1=a<p?d[a]:f;for(a=0;a<s;++a)o=l[a],h<=o&&o<=f&&v[u(d,o,0,p)].push(t[a]);return v}var e=w,r=g,n=E;return t.value=function(r){return arguments.length?(e=\"function\"==typeof r?r:_(r),t):e},t.domain=function(e){return arguments.length?(r=\"function\"==typeof e?e:_([e[0],e[1]]),t):r},t.thresholds=function(e){return arguments.length?(n=\"function\"==typeof e?e:_(Array.isArray(e)?b.call(e):e),t):n},t},C=function(t,e,r){if(null==r&&(r=p),n=t.length){if((e=+e)<=0||n<2)return+r(t[0],0,t);if(e>=1)return+r(t[n-1],n-1,t);var n,i=(n-1)*e,a=Math.floor(i),o=+r(t[a],a,t);return o+(+r(t[a+1],a+1,t)-o)*(i-a)}},I=function(t,e,r){return t=x.call(t,p).sort(o),Math.ceil((r-e)/(2*(C(t,.75)-C(t,.25))*Math.pow(t.length,-1/3)))},z=function(t,e,r){return Math.ceil((r-e)/(3.5*v(t)*Math.pow(t.length,-1/3)))},D=function(t,e){var r,n,i=t.length,a=-1;if(null==e){for(;++a<i;)if(null!=(r=t[a])&&r>=r)for(n=r;++a<i;)null!=(r=t[a])&&r>n&&(n=r)}else for(;++a<i;)if(null!=(r=e(t[a],a,t))&&r>=r)for(n=r;++a<i;)null!=(r=e(t[a],a,t))&&r>n&&(n=r);return n},P=function(t,e){var r,n=t.length,i=n,a=-1,o=0;if(null==e)for(;++a<n;)isNaN(r=p(t[a]))?--i:o+=r;else for(;++a<n;)isNaN(r=p(e(t[a],a,t)))?--i:o+=r;if(i)return o/i},O=function(t,e){var r,n=t.length,i=-1,a=[];if(null==e)for(;++i<n;)isNaN(r=p(t[i]))||a.push(r);else for(;++i<n;)isNaN(r=p(e(t[i],i,t)))||a.push(r);return C(a.sort(o),.5)},R=function(t){for(var e,r,n,i=t.length,a=-1,o=0;++a<i;)o+=t[a].length;for(r=new Array(o);--i>=0;)for(n=t[i],e=n.length;--e>=0;)r[--o]=n[e];return r},F=function(t,e){var r,n,i=t.length,a=-1;if(null==e){for(;++a<i;)if(null!=(r=t[a])&&r>=r)for(n=r;++a<i;)null!=(r=t[a])&&n>r&&(n=r)}else for(;++a<i;)if(null!=(r=e(t[a],a,t))&&r>=r)for(n=r;++a<i;)null!=(r=e(t[a],a,t))&&n>r&&(n=r);return n},j=function(t,e){for(var r=e.length,n=new Array(r);r--;)n[r]=t[e[r]];return n},N=function(t,e){if(r=t.length){var r,n,i=0,a=0,s=t[a];for(null==e&&(e=o);++i<r;)(e(n=t[i],s)<0||0!==e(s,s))&&(s=n,a=i);return 0===e(s,s)?a:void 0}},B=function(t,e,r){for(var n,i,a=(null==r?t.length:r)-(e=null==e?0:+e);a;)i=Math.random()*a--|0,n=t[a+e],t[a+e]=t[i+e],t[i+e]=n;return t},U=function(t,e){var r,n=t.length,i=-1,a=0;if(null==e)for(;++i<n;)(r=+t[i])&&(a+=r);else for(;++i<n;)(r=+e(t[i],i,t))&&(a+=r);return a},V=function(t){if(!(i=t.length))return[];for(var e=-1,r=F(t,a),n=new Array(r);++e<r;)for(var i,o=-1,s=n[e]=new Array(i);++o<i;)s[o]=t[o][e];return n},H=function(){return V(arguments)};t.bisect=u,t.bisectRight=u,t.bisectLeft=c,t.ascending=o,t.bisector=s,t.cross=f,t.descending=d,t.deviation=v,t.extent=g,t.histogram=L,t.thresholdFreedmanDiaconis=I,t.thresholdScott=z,t.thresholdSturges=E,t.max=D,t.mean=P,t.median=O,t.merge=R,t.min=F,t.pairs=h,t.permute=j,t.quantile=C,t.range=M,t.scan=N,t.shuffle=B,t.sum=U,t.ticks=S,t.tickIncrement=n,t.tickStep=i,t.transpose=V,t.variance=m,t.zip=H,Object.defineProperty(t,\"__esModule\",{value:!0})})},{}],115:[function(e,r,n){!function(e,i){\"object\"==typeof n&&void 0!==r?i(n):\"function\"==typeof t&&t.amd?t([\"exports\"],i):i(e.d3=e.d3||{})}(this,function(t){\"use strict\";function e(){}function r(t,r){var n=new e;if(t instanceof e)t.each(function(t,e){n.set(e,t)});else if(Array.isArray(t)){var i,a=-1,o=t.length;if(null==r)for(;++a<o;)n.set(a,t[a]);else for(;++a<o;)n.set(r(i=t[a],a,t),i)}else if(t)for(var s in t)n.set(s,t[s]);return n}function n(){return{}}function i(t,e,r){t[e]=r}function a(){return r()}function o(t,e,r){t.set(e,r)}function s(){}function l(t,e){var r=new s;if(t instanceof s)t.each(function(t){r.add(t)});else if(t){var n=-1,i=t.length;if(null==e)for(;++n<i;)r.add(t[n]);else for(;++n<i;)r.add(e(t[n],n,t))}return r}e.prototype=r.prototype={constructor:e,has:function(t){return\"$\"+t in this},get:function(t){return this[\"$\"+t]},set:function(t,e){return this[\"$\"+t]=e,this},remove:function(t){var e=\"$\"+t;return e in this&&delete this[e]},clear:function(){for(var t in this)\"$\"===t[0]&&delete this[t]},keys:function(){var t=[];for(var e in this)\"$\"===e[0]&&t.push(e.slice(1));return t},values:function(){var t=[];for(var e in this)\"$\"===e[0]&&t.push(this[e]);return t},entries:function(){var t=[];for(var e in this)\"$\"===e[0]&&t.push({key:e.slice(1),value:this[e]});return t},size:function(){var t=0;for(var e in this)\"$\"===e[0]&&++t;return t},empty:function(){for(var t in this)if(\"$\"===t[0])return!1;return!0},each:function(t){for(var e in this)\"$\"===e[0]&&t(this[e],e.slice(1),this)}};var u=function(){function t(e,n,i,a){if(n>=c.length)return null!=l?l(e):null!=s?e.sort(s):e;for(var o,u,h,f=-1,d=e.length,p=c[n++],m=r(),v=i();++f<d;)(h=m.get(o=p(u=e[f])+\"\"))?h.push(u):m.set(o,[u]);return m.each(function(e,r){a(v,r,t(e,n,i,a))}),v}function e(t,r){if(++r>c.length)return t;var n,i=h[r-1];return null!=l&&r>=c.length?n=t.entries():(n=[],t.each(function(t,i){n.push({key:i,values:e(t,r)})})),null!=i?n.sort(function(t,e){return i(t.key,e.key)}):n}var s,l,u,c=[],h=[];return u={object:function(e){return t(e,0,n,i)},map:function(e){return t(e,0,a,o)},entries:function(r){return e(t(r,0,a,o),0)},key:function(t){return c.push(t),u},sortKeys:function(t){return h[c.length-1]=t,u},sortValues:function(t){return s=t,u},rollup:function(t){return l=t,u}}},c=r.prototype;s.prototype=l.prototype={constructor:s,has:c.has,add:function(t){return t+=\"\",this[\"$\"+t]=t,this},remove:c.remove,clear:c.clear,values:c.keys,size:c.size,empty:c.empty,each:c.each};var h=function(t){var e=[];for(var r in t)e.push(r);return e},f=function(t){var e=[];for(var r in t)e.push(t[r]);return e},d=function(t){var e=[];for(var r in t)e.push({key:r,value:t[r]});return e};t.nest=u,t.set=l,t.map=r,t.keys=h,t.values=f,t.entries=d,Object.defineProperty(t,\"__esModule\",{value:!0})})},{}],116:[function(e,r,n){!function(e,i){\"object\"==typeof n&&void 0!==r?i(n):\"function\"==typeof t&&t.amd?t([\"exports\"],i):i(e.d3=e.d3||{})}(this,function(t){\"use strict\";function e(t,e){var r=Object.create(t.prototype);for(var n in e)r[n]=e[n];return r}function r(){}function n(t){var e;return t=(t+\"\").trim().toLowerCase(),(e=I.exec(t))?(e=parseInt(e[1],16),new l(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1)):(e=z.exec(t))?i(parseInt(e[1],16)):(e=D.exec(t))?new l(e[1],e[2],e[3],1):(e=P.exec(t))?new l(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=O.exec(t))?a(e[1],e[2],e[3],e[4]):(e=R.exec(t))?a(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=F.exec(t))?u(e[1],e[2]/100,e[3]/100,1):(e=j.exec(t))?u(e[1],e[2]/100,e[3]/100,e[4]):N.hasOwnProperty(t)?i(N[t]):\"transparent\"===t?new l(NaN,NaN,NaN,0):null}function i(t){return new l(t>>16&255,t>>8&255,255&t,1)}function a(t,e,r,n){return n<=0&&(t=e=r=NaN),new l(t,e,r,n)}function o(t){return t instanceof r||(t=n(t)),t?(t=t.rgb(),new l(t.r,t.g,t.b,t.opacity)):new l}function s(t,e,r,n){return 1===arguments.length?o(t):new l(t,e,r,null==n?1:n)}function l(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}function u(t,e,r,n){return n<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new f(t,e,r,n)}function c(t){if(t instanceof f)return new f(t.h,t.s,t.l,t.opacity);if(t instanceof r||(t=n(t)),!t)return new f;if(t instanceof f)return t;t=t.rgb();var e=t.r/255,i=t.g/255,a=t.b/255,o=Math.min(e,i,a),s=Math.max(e,i,a),l=NaN,u=s-o,c=(s+o)/2;return u?(l=e===s?(i-a)/u+6*(i<a):i===s?(a-e)/u+2:(e-i)/u+4,u/=c<.5?s+o:2-s-o,l*=60):u=c>0&&c<1?0:l,new f(l,u,c,t.opacity)}function h(t,e,r,n){return 1===arguments.length?c(t):new f(t,e,r,null==n?1:n)}function f(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}function d(t,e,r){return 255*(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)}function p(t){if(t instanceof v)return new v(t.l,t.a,t.b,t.opacity);if(t instanceof M){var e=t.h*B;return new v(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}t instanceof l||(t=o(t));var r=x(t.r),n=x(t.g),i=x(t.b),a=g((.4124564*r+.3575761*n+.1804375*i)/V),s=g((.2126729*r+.7151522*n+.072175*i)/H);return new v(116*s-16,500*(a-s),200*(s-g((.0193339*r+.119192*n+.9503041*i)/q)),t.opacity)}function m(t,e,r,n){return 1===arguments.length?p(t):new v(t,e,r,null==n?1:n)}function v(t,e,r,n){this.l=+t,this.a=+e,this.b=+r,this.opacity=+n}function g(t){return t>X?Math.pow(t,1/3):t/W+G}function y(t){return t>Y?t*t*t:W*(t-G)}function b(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function x(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function _(t){if(t instanceof M)return new M(t.h,t.c,t.l,t.opacity);t instanceof v||(t=p(t));var e=Math.atan2(t.b,t.a)*U;return new M(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function w(t,e,r,n){return 1===arguments.length?_(t):new M(t,e,r,null==n?1:n)}function M(t,e,r,n){this.h=+t,this.c=+e,this.l=+r,this.opacity=+n}function k(t){if(t instanceof T)return new T(t.h,t.s,t.l,t.opacity);t instanceof l||(t=o(t));var e=t.r/255,r=t.g/255,n=t.b/255,i=(rt*n+tt*e-et*r)/(rt+tt-et),a=n-i,s=($*(r-i)-K*a)/Q,u=Math.sqrt(s*s+a*a)/($*i*(1-i)),c=u?Math.atan2(s,a)*U-120:NaN;return new T(c<0?c+360:c,u,i,t.opacity)}function A(t,e,r,n){return 1===arguments.length?k(t):new T(t,e,r,null==n?1:n)}function T(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}var S=function(t,e,r){t.prototype=e.prototype=r,r.constructor=t},E=\"\\\\s*([+-]?\\\\d+)\\\\s*\",L=\"\\\\s*([+-]?\\\\d*\\\\.?\\\\d+(?:[eE][+-]?\\\\d+)?)\\\\s*\",C=\"\\\\s*([+-]?\\\\d*\\\\.?\\\\d+(?:[eE][+-]?\\\\d+)?)%\\\\s*\",I=/^#([0-9a-f]{3})$/,z=/^#([0-9a-f]{6})$/,D=new RegExp(\"^rgb\\\\(\"+[E,E,E]+\"\\\\)$\"),P=new RegExp(\"^rgb\\\\(\"+[C,C,C]+\"\\\\)$\"),O=new RegExp(\"^rgba\\\\(\"+[E,E,E,L]+\"\\\\)$\"),R=new RegExp(\"^rgba\\\\(\"+[C,C,C,L]+\"\\\\)$\"),F=new RegExp(\"^hsl\\\\(\"+[L,C,C]+\"\\\\)$\"),j=new RegExp(\"^hsla\\\\(\"+[L,C,C,L]+\"\\\\)$\"),N={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};S(r,n,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+\"\"}}),S(l,s,e(r,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new l(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new l(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},toString:function(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(1===t?\"rgb(\":\"rgba(\")+Math.max(0,Math.min(255,Math.round(this.r)||0))+\", \"+Math.max(0,Math.min(255,Math.round(this.g)||0))+\", \"+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?\")\":\", \"+t+\")\")}})),S(f,h,e(r,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new f(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new f(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*e,i=2*r-n;return new l(d(t>=240?t-240:t+120,i,n),d(t,i,n),d(t<120?t+240:t-120,i,n),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var B=Math.PI/180,U=180/Math.PI,V=.95047,H=1,q=1.08883,G=4/29,Y=6/29,W=3*Y*Y,X=Y*Y*Y;S(v,m,e(r,{brighter:function(t){return new v(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new v(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,r=isNaN(this.b)?t:t-this.b/200;return t=H*y(t),e=V*y(e),r=q*y(r),new l(b(3.2404542*e-1.5371385*t-.4985314*r),b(-.969266*e+1.8760108*t+.041556*r),b(.0556434*e-.2040259*t+1.0572252*r),this.opacity)}})),S(M,w,e(r,{brighter:function(t){return new M(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new M(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return p(this).rgb()}}));var Z=-.14861,J=1.78277,K=-.29227,Q=-.90649,$=1.97294,tt=$*Q,et=$*J,rt=J*K-Q*Z;S(T,A,e(r,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new T(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new T(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*B,e=+this.l,r=isNaN(this.s)?0:this.s*e*(1-e),n=Math.cos(t),i=Math.sin(t);return new l(255*(e+r*(Z*n+J*i)),255*(e+r*(K*n+Q*i)),255*(e+r*($*n)),this.opacity)}})),t.color=n,t.rgb=s,t.hsl=h,t.lab=m,t.hcl=w,t.cubehelix=A,Object.defineProperty(t,\"__esModule\",{value:!0})})},{}],117:[function(e,r,n){!function(e,i){\"object\"==typeof n&&void 0!==r?i(n):\"function\"==typeof t&&t.amd?t([\"exports\"],i):i(e.d3=e.d3||{})}(this,function(t){\"use strict\";function e(){for(var t,e=0,n=arguments.length,i={};e<n;++e){if(!(t=arguments[e]+\"\")||t in i)throw new Error(\"illegal type: \"+t);i[t]=[]}return new r(i)}function r(t){this._=t}function n(t,e){return t.trim().split(/^|\\s+/).map(function(t){var r=\"\",n=t.indexOf(\".\");if(n>=0&&(r=t.slice(n+1),t=t.slice(0,n)),t&&!e.hasOwnProperty(t))throw new Error(\"unknown type: \"+t);return{type:t,name:r}})}function i(t,e){for(var r,n=0,i=t.length;n<i;++n)if((r=t[n]).name===e)return r.value}function a(t,e,r){for(var n=0,i=t.length;n<i;++n)if(t[n].name===e){t[n]=o,t=t.slice(0,n).concat(t.slice(n+1));break}return null!=r&&t.push({name:e,value:r}),t}var o={value:function(){}};r.prototype=e.prototype={constructor:r,on:function(t,e){var r,o=this._,s=n(t+\"\",o),l=-1,u=s.length;{if(!(arguments.length<2)){\n", "if(null!=e&&\"function\"!=typeof e)throw new Error(\"invalid callback: \"+e);for(;++l<u;)if(r=(t=s[l]).type)o[r]=a(o[r],t.name,e);else if(null==e)for(r in o)o[r]=a(o[r],t.name,null);return this}for(;++l<u;)if((r=(t=s[l]).type)&&(r=i(o[r],t.name)))return r}},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new r(t)},call:function(t,e){if((r=arguments.length-2)>0)for(var r,n,i=new Array(r),a=0;a<r;++a)i[a]=arguments[a+2];if(!this._.hasOwnProperty(t))throw new Error(\"unknown type: \"+t);for(n=this._[t],a=0,r=n.length;a<r;++a)n[a].value.apply(e,i)},apply:function(t,e,r){if(!this._.hasOwnProperty(t))throw new Error(\"unknown type: \"+t);for(var n=this._[t],i=0,a=n.length;i<a;++i)n[i].value.apply(e,r)}},t.dispatch=e,Object.defineProperty(t,\"__esModule\",{value:!0})})},{}],118:[function(e,r,n){!function(i,a){\"object\"==typeof n&&void 0!==r?a(n,e(\"d3-quadtree\"),e(\"d3-collection\"),e(\"d3-dispatch\"),e(\"d3-timer\")):\"function\"==typeof t&&t.amd?t([\"exports\",\"d3-quadtree\",\"d3-collection\",\"d3-dispatch\",\"d3-timer\"],a):a(i.d3=i.d3||{},i.d3,i.d3,i.d3,i.d3)}(this,function(t,e,r,n,i){\"use strict\";function a(t){return t.x+t.vx}function o(t){return t.y+t.vy}function s(t){return t.index}function l(t,e){var r=t.get(e);if(!r)throw new Error(\"missing: \"+e);return r}function u(t){return t.x}function c(t){return t.y}var h=function(t,e){function r(){var r,i,a=n.length,o=0,s=0;for(r=0;r<a;++r)i=n[r],o+=i.x,s+=i.y;for(o=o/a-t,s=s/a-e,r=0;r<a;++r)i=n[r],i.x-=o,i.y-=s}var n;return null==t&&(t=0),null==e&&(e=0),r.initialize=function(t){n=t},r.x=function(e){return arguments.length?(t=+e,r):t},r.y=function(t){return arguments.length?(e=+t,r):e},r},f=function(t){return function(){return t}},d=function(){return 1e-6*(Math.random()-.5)},p=function(t){function r(){function t(t,e,r,n,i){var a=t.data,o=t.r,s=m+o;{if(!a)return e>f+s||n<f-s||r>p+s||i<p-s;if(a.index>h.index){var l=f-a.x-a.vx,c=p-a.y-a.vy,g=l*l+c*c;g<s*s&&(0===l&&(l=d(),g+=l*l),0===c&&(c=d(),g+=c*c),g=(s-(g=Math.sqrt(g)))/g*u,h.vx+=(l*=g)*(s=(o*=o)/(v+o)),h.vy+=(c*=g)*s,a.vx-=l*(s=1-s),a.vy-=c*s)}}}for(var r,i,h,f,p,m,v,g=s.length,y=0;y<c;++y)for(i=e.quadtree(s,a,o).visitAfter(n),r=0;r<g;++r)h=s[r],m=l[h.index],v=m*m,f=h.x+h.vx,p=h.y+h.vy,i.visit(t)}function n(t){if(t.data)return t.r=l[t.data.index];for(var e=t.r=0;e<4;++e)t[e]&&t[e].r>t.r&&(t.r=t[e].r)}function i(){if(s){var e,r,n=s.length;for(l=new Array(n),e=0;e<n;++e)r=s[e],l[r.index]=+t(r,e,s)}}var s,l,u=1,c=1;return\"function\"!=typeof t&&(t=f(null==t?1:+t)),r.initialize=function(t){s=t,i()},r.iterations=function(t){return arguments.length?(c=+t,r):c},r.strength=function(t){return arguments.length?(u=+t,r):u},r.radius=function(e){return arguments.length?(t=\"function\"==typeof e?e:f(+e),i(),r):t},r},m=function(t){function e(t){return 1/Math.min(p[t.source.index],p[t.target.index])}function n(e){for(var r=0,n=t.length;r<b;++r)for(var i,a,o,s,l,h,f,p=0;p<n;++p)i=t[p],a=i.source,o=i.target,s=o.x+o.vx-a.x-a.vx||d(),l=o.y+o.vy-a.y-a.vy||d(),h=Math.sqrt(s*s+l*l),h=(h-c[p])/h*e*u[p],s*=h,l*=h,o.vx-=s*(f=m[p]),o.vy-=l*f,a.vx+=s*(f=1-f),a.vy+=l*f}function i(){if(h){var e,n,i=h.length,s=t.length,f=r.map(h,v);for(e=0,p=new Array(i);e<s;++e)n=t[e],n.index=e,\"object\"!=typeof n.source&&(n.source=l(f,n.source)),\"object\"!=typeof n.target&&(n.target=l(f,n.target)),p[n.source.index]=(p[n.source.index]||0)+1,p[n.target.index]=(p[n.target.index]||0)+1;for(e=0,m=new Array(s);e<s;++e)n=t[e],m[e]=p[n.source.index]/(p[n.source.index]+p[n.target.index]);u=new Array(s),a(),c=new Array(s),o()}}function a(){if(h)for(var e=0,r=t.length;e<r;++e)u[e]=+g(t[e],e,t)}function o(){if(h)for(var e=0,r=t.length;e<r;++e)c[e]=+y(t[e],e,t)}var u,c,h,p,m,v=s,g=e,y=f(30),b=1;return null==t&&(t=[]),n.initialize=function(t){h=t,i()},n.links=function(e){return arguments.length?(t=e,i(),n):t},n.id=function(t){return arguments.length?(v=t,n):v},n.iterations=function(t){return arguments.length?(b=+t,n):b},n.strength=function(t){return arguments.length?(g=\"function\"==typeof t?t:f(+t),a(),n):g},n.distance=function(t){return arguments.length?(y=\"function\"==typeof t?t:f(+t),o(),n):y},n},v=10,g=Math.PI*(3-Math.sqrt(5)),y=function(t){function e(){a(),y.call(\"tick\",l),u<c&&(m.stop(),y.call(\"end\",l))}function a(){var e,r,n=t.length;for(u+=(f-u)*h,p.each(function(t){t(u)}),e=0;e<n;++e)r=t[e],null==r.fx?r.x+=r.vx*=d:(r.x=r.fx,r.vx=0),null==r.fy?r.y+=r.vy*=d:(r.y=r.fy,r.vy=0)}function o(){for(var e,r=0,n=t.length;r<n;++r){if(e=t[r],e.index=r,isNaN(e.x)||isNaN(e.y)){var i=v*Math.sqrt(r),a=r*g;e.x=i*Math.cos(a),e.y=i*Math.sin(a)}(isNaN(e.vx)||isNaN(e.vy))&&(e.vx=e.vy=0)}}function s(e){return e.initialize&&e.initialize(t),e}var l,u=1,c=.001,h=1-Math.pow(c,1/300),f=0,d=.6,p=r.map(),m=i.timer(e),y=n.dispatch(\"tick\",\"end\");return null==t&&(t=[]),o(),l={tick:a,restart:function(){return m.restart(e),l},stop:function(){return m.stop(),l},nodes:function(e){return arguments.length?(t=e,o(),p.each(s),l):t},alpha:function(t){return arguments.length?(u=+t,l):u},alphaMin:function(t){return arguments.length?(c=+t,l):c},alphaDecay:function(t){return arguments.length?(h=+t,l):+h},alphaTarget:function(t){return arguments.length?(f=+t,l):f},velocityDecay:function(t){return arguments.length?(d=1-t,l):1-d},force:function(t,e){return arguments.length>1?(null==e?p.remove(t):p.set(t,s(e)),l):p.get(t)},find:function(e,r,n){var i,a,o,s,l,u=0,c=t.length;for(null==n?n=1/0:n*=n,u=0;u<c;++u)s=t[u],i=e-s.x,a=r-s.y,(o=i*i+a*a)<n&&(l=s,n=o);return l},on:function(t,e){return arguments.length>1?(y.on(t,e),l):y.on(t)}}},b=function(){function t(t){var r,l=a.length,h=e.quadtree(a,u,c).visitAfter(n);for(s=t,r=0;r<l;++r)o=a[r],h.visit(i)}function r(){if(a){var t,e,r=a.length;for(l=new Array(r),t=0;t<r;++t)e=a[t],l[e.index]=+h(e,t,a)}}function n(t){var e,r,n,i,a,o=0;if(t.length){for(n=i=a=0;a<4;++a)(e=t[a])&&(r=e.value)&&(o+=r,n+=r*e.x,i+=r*e.y);t.x=n/o,t.y=i/o}else{e=t,e.x=e.data.x,e.y=e.data.y;do{o+=l[e.data.index]}while(e=e.next)}t.value=o}function i(t,e,r,n){if(!t.value)return!0;var i=t.x-o.x,a=t.y-o.y,u=n-e,c=i*i+a*a;if(u*u/v<c)return c<m&&(0===i&&(i=d(),c+=i*i),0===a&&(a=d(),c+=a*a),c<p&&(c=Math.sqrt(p*c)),o.vx+=i*t.value*s/c,o.vy+=a*t.value*s/c),!0;if(!(t.length||c>=m)){(t.data!==o||t.next)&&(0===i&&(i=d(),c+=i*i),0===a&&(a=d(),c+=a*a),c<p&&(c=Math.sqrt(p*c)));do{t.data!==o&&(u=l[t.data.index]*s/c,o.vx+=i*u,o.vy+=a*u)}while(t=t.next)}}var a,o,s,l,h=f(-30),p=1,m=1/0,v=.81;return t.initialize=function(t){a=t,r()},t.strength=function(e){return arguments.length?(h=\"function\"==typeof e?e:f(+e),r(),t):h},t.distanceMin=function(e){return arguments.length?(p=e*e,t):Math.sqrt(p)},t.distanceMax=function(e){return arguments.length?(m=e*e,t):Math.sqrt(m)},t.theta=function(e){return arguments.length?(v=e*e,t):Math.sqrt(v)},t},x=function(t){function e(t){for(var e,r=0,o=n.length;r<o;++r)e=n[r],e.vx+=(a[r]-e.x)*i[r]*t}function r(){if(n){var e,r=n.length;for(i=new Array(r),a=new Array(r),e=0;e<r;++e)i[e]=isNaN(a[e]=+t(n[e],e,n))?0:+o(n[e],e,n)}}var n,i,a,o=f(.1);return\"function\"!=typeof t&&(t=f(null==t?0:+t)),e.initialize=function(t){n=t,r()},e.strength=function(t){return arguments.length?(o=\"function\"==typeof t?t:f(+t),r(),e):o},e.x=function(n){return arguments.length?(t=\"function\"==typeof n?n:f(+n),r(),e):t},e},_=function(t){function e(t){for(var e,r=0,o=n.length;r<o;++r)e=n[r],e.vy+=(a[r]-e.y)*i[r]*t}function r(){if(n){var e,r=n.length;for(i=new Array(r),a=new Array(r),e=0;e<r;++e)i[e]=isNaN(a[e]=+t(n[e],e,n))?0:+o(n[e],e,n)}}var n,i,a,o=f(.1);return\"function\"!=typeof t&&(t=f(null==t?0:+t)),e.initialize=function(t){n=t,r()},e.strength=function(t){return arguments.length?(o=\"function\"==typeof t?t:f(+t),r(),e):o},e.y=function(n){return arguments.length?(t=\"function\"==typeof n?n:f(+n),r(),e):t},e};t.forceCenter=h,t.forceCollide=p,t.forceLink=m,t.forceManyBody=b,t.forceSimulation=y,t.forceX=x,t.forceY=_,Object.defineProperty(t,\"__esModule\",{value:!0})})},{\"d3-collection\":115,\"d3-dispatch\":117,\"d3-quadtree\":120,\"d3-timer\":121}],119:[function(e,r,n){!function(i,a){\"object\"==typeof n&&void 0!==r?a(n,e(\"d3-color\")):\"function\"==typeof t&&t.amd?t([\"exports\",\"d3-color\"],a):a(i.d3=i.d3||{},i.d3)}(this,function(t,e){\"use strict\";function r(t,e,r,n,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*r+(1+3*t+3*a-3*o)*n+o*i)/6}function n(t,e){return function(r){return t+r*e}}function i(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(n){return Math.pow(t+n*e,r)}}function a(t,e){var r=e-t;return r?n(t,r>180||r<-180?r-360*Math.round(r/360):r):S(isNaN(t)?e:t)}function o(t){return 1==(t=+t)?s:function(e,r){return r-e?i(e,r,t):S(isNaN(e)?r:e)}}function s(t,e){var r=e-t;return r?n(t,r):S(isNaN(t)?e:t)}function l(t){return function(r){var n,i,a=r.length,o=new Array(a),s=new Array(a),l=new Array(a);for(n=0;n<a;++n)i=e.rgb(r[n]),o[n]=i.r||0,s[n]=i.g||0,l[n]=i.b||0;return o=t(o),s=t(s),l=t(l),i.opacity=1,function(t){return i.r=o(t),i.g=s(t),i.b=l(t),i+\"\"}}}function u(t){return function(){return t}}function c(t){return function(e){return t(e)+\"\"}}function h(t){return\"none\"===t?U:(_||(_=document.createElement(\"DIV\"),w=document.documentElement,M=document.defaultView),_.style.transform=t,t=M.getComputedStyle(w.appendChild(_),null).getPropertyValue(\"transform\"),w.removeChild(_),t=t.slice(7,-1).split(\",\"),V(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}function f(t){return null==t?U:(k||(k=document.createElementNS(\"http://www.w3.org/2000/svg\",\"g\")),k.setAttribute(\"transform\",t),(t=k.transform.baseVal.consolidate())?(t=t.matrix,V(t.a,t.b,t.c,t.d,t.e,t.f)):U)}function d(t,e,r,n){function i(t){return t.length?t.pop()+\" \":\"\"}function a(t,n,i,a,o,s){if(t!==i||n!==a){var l=o.push(\"translate(\",null,e,null,r);s.push({i:l-4,x:D(t,i)},{i:l-2,x:D(n,a)})}else(i||a)&&o.push(\"translate(\"+i+e+a+r)}function o(t,e,r,a){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),a.push({i:r.push(i(r)+\"rotate(\",null,n)-2,x:D(t,e)})):e&&r.push(i(r)+\"rotate(\"+e+n)}function s(t,e,r,a){t!==e?a.push({i:r.push(i(r)+\"skewX(\",null,n)-2,x:D(t,e)}):e&&r.push(i(r)+\"skewX(\"+e+n)}function l(t,e,r,n,a,o){if(t!==r||e!==n){var s=a.push(i(a)+\"scale(\",null,\",\",null,\")\");o.push({i:s-4,x:D(t,r)},{i:s-2,x:D(e,n)})}else 1===r&&1===n||a.push(i(a)+\"scale(\"+r+\",\"+n+\")\")}return function(e,r){var n=[],i=[];return e=t(e),r=t(r),a(e.translateX,e.translateY,r.translateX,r.translateY,n,i),o(e.rotate,r.rotate,n,i),s(e.skewX,r.skewX,n,i),l(e.scaleX,e.scaleY,r.scaleX,r.scaleY,n,i),e=r=null,function(t){for(var e,r=-1,a=i.length;++r<a;)n[(e=i[r]).i]=e.x(t);return n.join(\"\")}}}function p(t){return((t=Math.exp(t))+1/t)/2}function m(t){return((t=Math.exp(t))-1/t)/2}function v(t){return((t=Math.exp(2*t))-1)/(t+1)}function g(t){return function(r,n){var i=t((r=e.hsl(r)).h,(n=e.hsl(n)).h),a=s(r.s,n.s),o=s(r.l,n.l),l=s(r.opacity,n.opacity);return function(t){return r.h=i(t),r.s=a(t),r.l=o(t),r.opacity=l(t),r+\"\"}}}function y(t,r){var n=s((t=e.lab(t)).l,(r=e.lab(r)).l),i=s(t.a,r.a),a=s(t.b,r.b),o=s(t.opacity,r.opacity);return function(e){return t.l=n(e),t.a=i(e),t.b=a(e),t.opacity=o(e),t+\"\"}}function b(t){return function(r,n){var i=t((r=e.hcl(r)).h,(n=e.hcl(n)).h),a=s(r.c,n.c),o=s(r.l,n.l),l=s(r.opacity,n.opacity);return function(t){return r.h=i(t),r.c=a(t),r.l=o(t),r.opacity=l(t),r+\"\"}}}function x(t){return function r(n){function i(r,i){var a=t((r=e.cubehelix(r)).h,(i=e.cubehelix(i)).h),o=s(r.s,i.s),l=s(r.l,i.l),u=s(r.opacity,i.opacity);return function(t){return r.h=a(t),r.s=o(t),r.l=l(Math.pow(t,n)),r.opacity=u(t),r+\"\"}}return n=+n,i.gamma=r,i}(1)}var _,w,M,k,A=function(t){var e=t.length-1;return function(n){var i=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),a=t[i],o=t[i+1],s=i>0?t[i-1]:2*a-o,l=i<e-1?t[i+2]:2*o-a;return r((n-i/e)*e,s,a,o,l)}},T=function(t){var e=t.length;return function(n){var i=Math.floor(((n%=1)<0?++n:n)*e),a=t[(i+e-1)%e],o=t[i%e],s=t[(i+1)%e],l=t[(i+2)%e];return r((n-i/e)*e,a,o,s,l)}},S=function(t){return function(){return t}},E=function t(r){function n(t,r){var n=i((t=e.rgb(t)).r,(r=e.rgb(r)).r),a=i(t.g,r.g),o=i(t.b,r.b),l=s(t.opacity,r.opacity);return function(e){return t.r=n(e),t.g=a(e),t.b=o(e),t.opacity=l(e),t+\"\"}}var i=o(r);return n.gamma=t,n}(1),L=l(A),C=l(T),I=function(t,e){var r,n=e?e.length:0,i=t?Math.min(n,t.length):0,a=new Array(n),o=new Array(n);for(r=0;r<i;++r)a[r]=j(t[r],e[r]);for(;r<n;++r)o[r]=e[r];return function(t){for(r=0;r<i;++r)o[r]=a[r](t);return o}},z=function(t,e){var r=new Date;return t=+t,e-=t,function(n){return r.setTime(t+e*n),r}},D=function(t,e){return t=+t,e-=t,function(r){return t+e*r}},P=function(t,e){var r,n={},i={};null!==t&&\"object\"==typeof t||(t={}),null!==e&&\"object\"==typeof e||(e={});for(r in e)r in t?n[r]=j(t[r],e[r]):i[r]=e[r];return function(t){for(r in n)i[r]=n[r](t);return i}},O=/[-+]?(?:\\d+\\.?\\d*|\\.?\\d+)(?:[eE][-+]?\\d+)?/g,R=new RegExp(O.source,\"g\"),F=function(t,e){var r,n,i,a=O.lastIndex=R.lastIndex=0,o=-1,s=[],l=[];for(t+=\"\",e+=\"\";(r=O.exec(t))&&(n=R.exec(e));)(i=n.index)>a&&(i=e.slice(a,i),s[o]?s[o]+=i:s[++o]=i),(r=r[0])===(n=n[0])?s[o]?s[o]+=n:s[++o]=n:(s[++o]=null,l.push({i:o,x:D(r,n)})),a=R.lastIndex;return a<e.length&&(i=e.slice(a),s[o]?s[o]+=i:s[++o]=i),s.length<2?l[0]?c(l[0].x):u(e):(e=l.length,function(t){for(var r,n=0;n<e;++n)s[(r=l[n]).i]=r.x(t);return s.join(\"\")})},j=function(t,r){var n,i=typeof r;return null==r||\"boolean\"===i?S(r):(\"number\"===i?D:\"string\"===i?(n=e.color(r))?(r=n,E):F:r instanceof e.color?E:r instanceof Date?z:Array.isArray(r)?I:\"function\"!=typeof r.valueOf&&\"function\"!=typeof r.toString||isNaN(r)?P:D)(t,r)},N=function(t,e){return t=+t,e-=t,function(r){return Math.round(t+e*r)}},B=180/Math.PI,U={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},V=function(t,e,r,n,i,a){var o,s,l;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(l=t*r+e*n)&&(r-=t*l,n-=e*l),(s=Math.sqrt(r*r+n*n))&&(r/=s,n/=s,l/=s),t*n<e*r&&(t=-t,e=-e,l=-l,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(e,t)*B,skewX:Math.atan(l)*B,scaleX:o,scaleY:s}},H=d(h,\"px, \",\"px)\",\"deg)\"),q=d(f,\", \",\")\",\")\"),G=Math.SQRT2,Y=function(t,e){var r,n,i=t[0],a=t[1],o=t[2],s=e[0],l=e[1],u=e[2],c=s-i,h=l-a,f=c*c+h*h;if(f<1e-12)n=Math.log(u/o)/G,r=function(t){return[i+t*c,a+t*h,o*Math.exp(G*t*n)]};else{var d=Math.sqrt(f),g=(u*u-o*o+4*f)/(2*o*2*d),y=(u*u-o*o-4*f)/(2*u*2*d),b=Math.log(Math.sqrt(g*g+1)-g),x=Math.log(Math.sqrt(y*y+1)-y);n=(x-b)/G,r=function(t){var e=t*n,r=p(b),s=o/(2*d)*(r*v(G*e+b)-m(b));return[i+s*c,a+s*h,o*r/p(G*e+b)]}}return r.duration=1e3*n,r},W=g(a),X=g(s),Z=b(a),J=b(s),K=x(a),Q=x(s),$=function(t,e){for(var r=new Array(e),n=0;n<e;++n)r[n]=t(n/(e-1));return r};t.interpolate=j,t.interpolateArray=I,t.interpolateBasis=A,t.interpolateBasisClosed=T,t.interpolateDate=z,t.interpolateNumber=D,t.interpolateObject=P,t.interpolateRound=N,t.interpolateString=F,t.interpolateTransformCss=H,t.interpolateTransformSvg=q,t.interpolateZoom=Y,t.interpolateRgb=E,t.interpolateRgbBasis=L,t.interpolateRgbBasisClosed=C,t.interpolateHsl=W,t.interpolateHslLong=X,t.interpolateLab=y,t.interpolateHcl=Z,t.interpolateHclLong=J,t.interpolateCubehelix=K,t.interpolateCubehelixLong=Q,t.quantize=$,Object.defineProperty(t,\"__esModule\",{value:!0})})},{\"d3-color\":116}],120:[function(e,r,n){!function(e,i){\"object\"==typeof n&&void 0!==r?i(n):\"function\"==typeof t&&t.amd?t([\"exports\"],i):i(e.d3=e.d3||{})}(this,function(t){\"use strict\";function e(t,e,r,n){if(isNaN(e)||isNaN(r))return t;var i,a,o,s,l,u,c,h,f,d=t._root,p={data:n},m=t._x0,v=t._y0,g=t._x1,y=t._y1;if(!d)return t._root=p,t;for(;d.length;)if((u=e>=(a=(m+g)/2))?m=a:g=a,(c=r>=(o=(v+y)/2))?v=o:y=o,i=d,!(d=d[h=c<<1|u]))return i[h]=p,t;if(s=+t._x.call(null,d.data),l=+t._y.call(null,d.data),e===s&&r===l)return p.next=d,i?i[h]=p:t._root=p,t;do{i=i?i[h]=new Array(4):t._root=new Array(4),(u=e>=(a=(m+g)/2))?m=a:g=a,(c=r>=(o=(v+y)/2))?v=o:y=o}while((h=c<<1|u)==(f=(l>=o)<<1|s>=a));return i[f]=d,i[h]=p,t}function r(t){var r,n,i,a,o=t.length,s=new Array(o),l=new Array(o),u=1/0,c=1/0,h=-1/0,f=-1/0;for(n=0;n<o;++n)isNaN(i=+this._x.call(null,r=t[n]))||isNaN(a=+this._y.call(null,r))||(s[n]=i,l[n]=a,i<u&&(u=i),i>h&&(h=i),a<c&&(c=a),a>f&&(f=a));for(h<u&&(u=this._x0,h=this._x1),f<c&&(c=this._y0,f=this._y1),this.cover(u,c).cover(h,f),n=0;n<o;++n)e(this,s[n],l[n],t[n]);return this}function n(t){for(var e=0,r=t.length;e<r;++e)this.remove(t[e]);return this}function i(t){return t[0]}function a(t){return t[1]}function o(t,e,r){var n=new s(null==e?i:e,null==r?a:r,NaN,NaN,NaN,NaN);return null==t?n:n.addAll(t)}function s(t,e,r,n,i,a){this._x=t,this._y=e,this._x0=r,this._y0=n,this._x1=i,this._y1=a,this._root=void 0}function l(t){for(var e={data:t.data},r=e;t=t.next;)r=r.next={data:t.data};return e}var u=function(t){var r=+this._x.call(null,t),n=+this._y.call(null,t);return e(this.cover(r,n),r,n,t)},c=function(t,e){if(isNaN(t=+t)||isNaN(e=+e))return this;var r=this._x0,n=this._y0,i=this._x1,a=this._y1;if(isNaN(r))i=(r=Math.floor(t))+1,a=(n=Math.floor(e))+1;else{if(!(r>t||t>i||n>e||e>a))return this;var o,s,l=i-r,u=this._root;switch(s=(e<(n+a)/2)<<1|t<(r+i)/2){case 0:do{o=new Array(4),o[s]=u,u=o}while(l*=2,i=r+l,a=n+l,t>i||e>a);break;case 1:do{o=new Array(4),o[s]=u,u=o}while(l*=2,r=i-l,a=n+l,r>t||e>a);break;case 2:do{o=new Array(4),o[s]=u,u=o}while(l*=2,i=r+l,n=a-l,t>i||n>e);break;case 3:do{o=new Array(4),o[s]=u,u=o}while(l*=2,r=i-l,n=a-l,r>t||n>e)}this._root&&this._root.length&&(this._root=u)}return this._x0=r,this._y0=n,this._x1=i,this._y1=a,this},h=function(){var t=[];return this.visit(function(e){if(!e.length)do{t.push(e.data)}while(e=e.next)}),t},f=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},d=function(t,e,r,n,i){this.node=t,this.x0=e,this.y0=r,this.x1=n,this.y1=i},p=function(t,e,r){var n,i,a,o,s,l,u,c=this._x0,h=this._y0,f=this._x1,p=this._y1,m=[],v=this._root;for(v&&m.push(new d(v,c,h,f,p)),null==r?r=1/0:(c=t-r,h=e-r,f=t+r,p=e+r,r*=r);l=m.pop();)if(!(!(v=l.node)||(i=l.x0)>f||(a=l.y0)>p||(o=l.x1)<c||(s=l.y1)<h))if(v.length){var g=(i+o)/2,y=(a+s)/2;m.push(new d(v[3],g,y,o,s),new d(v[2],i,y,g,s),new d(v[1],g,a,o,y),new d(v[0],i,a,g,y)),(u=(e>=y)<<1|t>=g)&&(l=m[m.length-1],m[m.length-1]=m[m.length-1-u],m[m.length-1-u]=l)}else{var b=t-+this._x.call(null,v.data),x=e-+this._y.call(null,v.data),_=b*b+x*x;if(_<r){var w=Math.sqrt(r=_);c=t-w,h=e-w,f=t+w,p=e+w,n=v.data}}return n},m=function(t){if(isNaN(a=+this._x.call(null,t))||isNaN(o=+this._y.call(null,t)))return this;var e,r,n,i,a,o,s,l,u,c,h,f,d=this._root,p=this._x0,m=this._y0,v=this._x1,g=this._y1;if(!d)return this;if(d.length)for(;;){if((u=a>=(s=(p+v)/2))?p=s:v=s,(c=o>=(l=(m+g)/2))?m=l:g=l,e=d,!(d=d[h=c<<1|u]))return this;if(!d.length)break;(e[h+1&3]||e[h+2&3]||e[h+3&3])&&(r=e,f=h)}for(;d.data!==t;)if(n=d,!(d=d.next))return this;return(i=d.next)&&delete d.next,n?(i?n.next=i:delete n.next,this):e?(i?e[h]=i:delete e[h],(d=e[0]||e[1]||e[2]||e[3])&&d===(e[3]||e[2]||e[1]||e[0])&&!d.length&&(r?r[f]=d:this._root=d),this):(this._root=i,this)},v=function(){return this._root},g=function(){var t=0;return this.visit(function(e){if(!e.length)do{++t}while(e=e.next)}),t},y=function(t){var e,r,n,i,a,o,s=[],l=this._root;for(l&&s.push(new d(l,this._x0,this._y0,this._x1,this._y1));e=s.pop();)if(!t(l=e.node,n=e.x0,i=e.y0,a=e.x1,o=e.y1)&&l.length){var u=(n+a)/2,c=(i+o)/2;(r=l[3])&&s.push(new d(r,u,c,a,o)),(r=l[2])&&s.push(new d(r,n,c,u,o)),(r=l[1])&&s.push(new d(r,u,i,a,c)),(r=l[0])&&s.push(new d(r,n,i,u,c))}return this},b=function(t){var e,r=[],n=[];for(this._root&&r.push(new d(this._root,this._x0,this._y0,this._x1,this._y1));e=r.pop();){var i=e.node;if(i.length){var a,o=e.x0,s=e.y0,l=e.x1,u=e.y1,c=(o+l)/2,h=(s+u)/2;(a=i[0])&&r.push(new d(a,o,s,c,h)),(a=i[1])&&r.push(new d(a,c,s,l,h)),(a=i[2])&&r.push(new d(a,o,h,c,u)),(a=i[3])&&r.push(new d(a,c,h,l,u))}n.push(e)}for(;e=n.pop();)t(e.node,e.x0,e.y0,e.x1,e.y1);return this},x=function(t){return arguments.length?(this._x=t,this):this._x},_=function(t){return arguments.length?(this._y=t,this):this._y},w=o.prototype=s.prototype;w.copy=function(){var t,e,r=new s(this._x,this._y,this._x0,this._y0,this._x1,this._y1),n=this._root;if(!n)return r;if(!n.length)return r._root=l(n),r;for(t=[{source:n,target:r._root=new Array(4)}];n=t.pop();)for(var i=0;i<4;++i)(e=n.source[i])&&(e.length?t.push({source:e,target:n.target[i]=new Array(4)}):n.target[i]=l(e));return r},w.add=u,w.addAll=r,w.cover=c,w.data=h,w.extent=f,w.find=p,w.remove=m,w.removeAll=n,w.root=v,w.size=g,w.visit=y,w.visitAfter=b,w.x=x,w.y=_,t.quadtree=o,Object.defineProperty(t,\"__esModule\",{value:!0})})},{}],121:[function(e,r,n){!function(e,i){\"object\"==typeof n&&void 0!==r?i(n):\"function\"==typeof t&&t.amd?t([\"exports\"],i):i(e.d3=e.d3||{})}(this,function(t){\"use strict\";function e(){return g||(x(r),g=b.now()+y)}function r(){g=0}function n(){this._call=this._time=this._next=null}function i(t,e,r){var i=new n;return i.restart(t,e,r),i}function a(){e(),++f;for(var t,r=c;r;)(t=g-r._time)>=0&&r._call.call(null,t),r=r._next;--f}function o(){g=(v=b.now())+y,f=d=0;try{a()}finally{f=0,l(),g=0}}function s(){var t=b.now(),e=t-v;e>m&&(y-=e,v=t)}function l(){for(var t,e,r=c,n=1/0;r;)r._call?(n>r._time&&(n=r._time),t=r,r=r._next):(e=r._next,r._next=null,r=t?t._next=e:c=e);h=t,u(n)}function u(t){if(!f){d&&(d=clearTimeout(d));var e=t-g;e>24?(t<1/0&&(d=setTimeout(o,e)),p&&(p=clearInterval(p))):(p||(v=g,p=setInterval(s,m)),f=1,x(o))}}var c,h,f=0,d=0,p=0,m=1e3,v=0,g=0,y=0,b=\"object\"==typeof performance&&performance.now?performance:Date,x=\"function\"==typeof requestAnimationFrame?requestAnimationFrame:function(t){setTimeout(t,17)};n.prototype=i.prototype={constructor:n,restart:function(t,r,n){if(\"function\"!=typeof t)throw new TypeError(\"callback is not a function\");n=(null==n?e():+n)+(null==r?0:+r),this._next||h===this||(h?h._next=this:c=this,h=this),this._call=t,this._time=n,u()},stop:function(){this._call&&(this._call=null,this._time=1/0,u())}};var _=function(t,e,r){var i=new n;return e=null==e?0:+e,i.restart(function(r){i.stop(),t(r+e)},e,r),i},w=function(t,r,i){var a=new n,o=r;return null==r?(a.restart(t,r,i),a):(r=+r,i=null==i?e():+i,a.restart(function e(n){n+=o,a.restart(e,o+=r,i),t(n)},r,i),a)};t.now=e,t.timer=i,t.timerFlush=a,t.timeout=_,t.interval=w,Object.defineProperty(t,\"__esModule\",{value:!0})})},{}],122:[function(e,r,n){!function(){function e(t){return t&&(t.ownerDocument||t.document||t).documentElement}function n(t){return t&&(t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView)}function i(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function a(t){return null===t?NaN:+t}function o(t){return!isNaN(t)}function s(t){return{left:function(e,r,n,i){for(arguments.length<3&&(n=0),arguments.length<4&&(i=e.length);n<i;){var a=n+i>>>1;t(e[a],r)<0?n=a+1:i=a}return n},right:function(e,r,n,i){for(arguments.length<3&&(n=0),arguments.length<4&&(i=e.length);n<i;){var a=n+i>>>1;t(e[a],r)>0?i=a:n=a+1}return n}}}function l(t){return t.length}function u(t){for(var e=1;t*e%1;)e*=10;return e}function c(t,e){for(var r in e)Object.defineProperty(t.prototype,r,{value:e[r],enumerable:!1})}function h(){this._=Object.create(null)}function f(t){return(t+=\"\")===_o||t[0]===wo?wo+t:t}function d(t){return(t+=\"\")[0]===wo?t.slice(1):t}function p(t){return f(t)in this._}function m(t){return(t=f(t))in this._&&delete this._[t]}function v(){var t=[];for(var e in this._)t.push(d(e));return t}function g(){var t=0;for(var e in this._)++t;return t}function y(){for(var t in this._)return!1;return!0}function b(){this._=Object.create(null)}function x(t){return t}function _(t,e,r){return function(){var n=r.apply(e,arguments);return n===e?t:n}}function w(t,e){if(e in t)return e;e=e.charAt(0).toUpperCase()+e.slice(1);for(var r=0,n=Mo.length;r<n;++r){var i=Mo[r]+e;if(i in t)return i}}function M(){}function k(){}function A(t){function e(){for(var e,n=r,i=-1,a=n.length;++i<a;)(e=n[i].on)&&e.apply(this,arguments);return t}var r=[],n=new h;return e.on=function(e,i){var a,o=n.get(e);return arguments.length<2?o&&o.on:(o&&(o.on=null,r=r.slice(0,a=r.indexOf(o)).concat(r.slice(a+1)),n.remove(e)),i&&r.push(n.set(e,{on:i})),t)},e}function T(){uo.event.preventDefault()}function S(){for(var t,e=uo.event;t=e.sourceEvent;)e=t;return e}function E(t){for(var e=new k,r=0,n=arguments.length;++r<n;)e[arguments[r]]=A(e);return e.of=function(r,n){return function(i){try{var a=i.sourceEvent=uo.event;i.target=t,uo.event=i,e[i.type].apply(r,n)}finally{uo.event=a}}},e}function L(t){return Ao(t,Lo),t}function C(t){return\"function\"==typeof t?t:function(){return To(t,this)}}function I(t){return\"function\"==typeof t?t:function(){return So(t,this)}}function z(t,e){function r(){this.removeAttribute(t)}function n(){this.removeAttributeNS(t.space,t.local)}function i(){this.setAttribute(t,e)}function a(){this.setAttributeNS(t.space,t.local,e)}function o(){var r=e.apply(this,arguments);null==r?this.removeAttribute(t):this.setAttribute(t,r)}function s(){var r=e.apply(this,arguments);null==r?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,r)}return t=uo.ns.qualify(t),null==e?t.local?n:r:\"function\"==typeof e?t.local?s:o:t.local?a:i}function D(t){return t.trim().replace(/\\s+/g,\" \")}function P(t){return new RegExp(\"(?:^|\\\\s+)\"+uo.requote(t)+\"(?:\\\\s+|$)\",\"g\")}function O(t){return(t+\"\").trim().split(/^|\\s+/)}function R(t,e){function r(){for(var r=-1;++r<i;)t[r](this,e)}function n(){for(var r=-1,n=e.apply(this,arguments);++r<i;)t[r](this,n)}t=O(t).map(F);var i=t.length;return\"function\"==typeof e?n:r}function F(t){var e=P(t);return function(r,n){if(i=r.classList)return n?i.add(t):i.remove(t);var i=r.getAttribute(\"class\")||\"\";n?(e.lastIndex=0,e.test(i)||r.setAttribute(\"class\",D(i+\" \"+t))):r.setAttribute(\"class\",D(i.replace(e,\" \")))}}function j(t,e,r){function n(){this.style.removeProperty(t)}function i(){this.style.setProperty(t,e,r)}function a(){var n=e.apply(this,arguments);null==n?this.style.removeProperty(t):this.style.setProperty(t,n,r)}return null==e?n:\"function\"==typeof e?a:i}function N(t,e){function r(){delete this[t]}function n(){this[t]=e}function i(){var r=e.apply(this,arguments);null==r?delete this[t]:this[t]=r}return null==e?r:\"function\"==typeof e?i:n}function B(t){function e(){var e=this.ownerDocument,r=this.namespaceURI;return r===Co&&e.documentElement.namespaceURI===Co?e.createElement(t):e.createElementNS(r,t)}function r(){return this.ownerDocument.createElementNS(t.space,t.local)}return\"function\"==typeof t?t:(t=uo.ns.qualify(t)).local?r:e}function U(){var t=this.parentNode;t&&t.removeChild(this)}function V(t){return{__data__:t}}function H(t){return function(){return Eo(this,t)}}function q(t){return arguments.length||(t=i),function(e,r){return e&&r?t(e.__data__,r.__data__):!e-!r}}function G(t,e){for(var r=0,n=t.length;r<n;r++)for(var i,a=t[r],o=0,s=a.length;o<s;o++)(i=a[o])&&e(i,o,r);return t}function Y(t){return Ao(t,zo),t}function W(t){var e,r;return function(n,i,a){var o,s=t[a].update,l=s.length;for(a!=r&&(r=a,e=0),i>=e&&(e=i+1);!(o=s[e])&&++e<l;);return o}}function X(t,e,r){function n(){var e=this[o];e&&(this.removeEventListener(t,e,e.$),delete this[o])}function i(){var i=l(e,ho(arguments));n.call(this),this.addEventListener(t,this[o]=i,i.$=r),i._=e}function a(){var e,r=new RegExp(\"^__on([^.]+)\"+uo.requote(t)+\"$\");for(var n in this)if(e=n.match(r)){var i=this[n];this.removeEventListener(e[1],i,i.$),delete this[n]}}var o=\"__on\"+t,s=t.indexOf(\".\"),l=Z;s>0&&(t=t.slice(0,s));var u=Do.get(t);return u&&(t=u,l=J),s?e?i:n:e?M:a}function Z(t,e){return function(r){var n=uo.event;uo.event=r,e[0]=this.__data__;try{t.apply(this,e)}finally{uo.event=n}}}function J(t,e){var r=Z(t,e);return function(t){var e=this,n=t.relatedTarget;n&&(n===e||8&n.compareDocumentPosition(e))||r.call(e,t)}}function K(t){var r=\".dragsuppress-\"+ ++Oo,i=\"click\"+r,a=uo.select(n(t)).on(\"touchmove\"+r,T).on(\"dragstart\"+r,T).on(\"selectstart\"+r,T);if(null==Po&&(Po=!(\"onselectstart\"in t)&&w(t.style,\"userSelect\")),Po){var o=e(t).style,s=o[Po];o[Po]=\"none\"}return function(t){if(a.on(r,null),Po&&(o[Po]=s),t){var e=function(){a.on(i,null)};a.on(i,function(){T(),e()},!0),setTimeout(e,0)}}}function Q(t,e){e.changedTouches&&(e=e.changedTouches[0]);var r=t.ownerSVGElement||t;if(r.createSVGPoint){var i=r.createSVGPoint();if(Ro<0){var a=n(t);if(a.scrollX||a.scrollY){r=uo.select(\"body\").append(\"svg\").style({position:\"absolute\",top:0,left:0,margin:0,padding:0,border:\"none\"},\"important\");var o=r[0][0].getScreenCTM();Ro=!(o.f||o.e),r.remove()}}return Ro?(i.x=e.pageX,i.y=e.pageY):(i.x=e.clientX,i.y=e.clientY),i=i.matrixTransform(t.getScreenCTM().inverse()),[i.x,i.y]}var s=t.getBoundingClientRect();return[e.clientX-s.left-t.clientLeft,e.clientY-s.top-t.clientTop]}function $(){return uo.event.changedTouches[0].identifier}function tt(t){return t>0?1:t<0?-1:0}function et(t,e,r){return(e[0]-t[0])*(r[1]-t[1])-(e[1]-t[1])*(r[0]-t[0])}function rt(t){return t>1?0:t<-1?No:Math.acos(t)}function nt(t){return t>1?Vo:t<-1?-Vo:Math.asin(t)}function it(t){return((t=Math.exp(t))-1/t)/2}function at(t){return((t=Math.exp(t))+1/t)/2}function ot(t){return((t=Math.exp(2*t))-1)/(t+1)}function st(t){return(t=Math.sin(t/2))*t}function lt(){}function ut(t,e,r){return this instanceof ut?(this.h=+t,this.s=+e,void(this.l=+r)):arguments.length<2?t instanceof ut?new ut(t.h,t.s,t.l):Mt(\"\"+t,kt,ut):new ut(t,e,r)}function ct(t,e,r){function n(t){return t>360?t-=360:t<0&&(t+=360),t<60?a+(o-a)*t/60:t<180?o:t<240?a+(o-a)*(240-t)/60:a}function i(t){return Math.round(255*n(t))}var a,o;return t=isNaN(t)?0:(t%=360)<0?t+360:t,e=isNaN(e)?0:e<0?0:e>1?1:e,r=r<0?0:r>1?1:r,o=r<=.5?r*(1+e):r+e-r*e,a=2*r-o,new bt(i(t+120),i(t),i(t-120))}function ht(t,e,r){return this instanceof ht?(this.h=+t,this.c=+e,void(this.l=+r)):arguments.length<2?t instanceof ht?new ht(t.h,t.c,t.l):t instanceof dt?mt(t.l,t.a,t.b):mt((t=At((t=uo.rgb(t)).r,t.g,t.b)).l,t.a,t.b):new ht(t,e,r)}function ft(t,e,r){return isNaN(t)&&(t=0),isNaN(e)&&(e=0),new dt(r,Math.cos(t*=Ho)*e,Math.sin(t)*e)}function dt(t,e,r){return this instanceof dt?(this.l=+t,this.a=+e,void(this.b=+r)):arguments.length<2?t instanceof dt?new dt(t.l,t.a,t.b):t instanceof ht?ft(t.h,t.c,t.l):At((t=bt(t)).r,t.g,t.b):new dt(t,e,r)}function pt(t,e,r){var n=(t+16)/116,i=n+e/500,a=n-r/200;return i=vt(i)*Qo,n=vt(n)*$o,a=vt(a)*ts,new bt(yt(3.2404542*i-1.5371385*n-.4985314*a),yt(-.969266*i+1.8760108*n+.041556*a),yt(.0556434*i-.2040259*n+1.0572252*a))}function mt(t,e,r){return t>0?new ht(Math.atan2(r,e)*qo,Math.sqrt(e*e+r*r),t):new ht(NaN,NaN,t)}function vt(t){return t>.206893034?t*t*t:(t-4/29)/7.787037}function gt(t){return t>.008856?Math.pow(t,1/3):7.787037*t+4/29}function yt(t){return Math.round(255*(t<=.00304?12.92*t:1.055*Math.pow(t,1/2.4)-.055))}function bt(t,e,r){return this instanceof bt?(this.r=~~t,this.g=~~e,void(this.b=~~r)):arguments.length<2?t instanceof bt?new bt(t.r,t.g,t.b):Mt(\"\"+t,bt,ct):new bt(t,e,r)}function xt(t){return new bt(t>>16,t>>8&255,255&t)}function _t(t){return xt(t)+\"\"}function wt(t){return t<16?\"0\"+Math.max(0,t).toString(16):Math.min(255,t).toString(16)}function Mt(t,e,r){var n,i,a,o=0,s=0,l=0;if(n=/([a-z]+)\\((.*)\\)/.exec(t=t.toLowerCase()))switch(i=n[2].split(\",\"),n[1]){case\"hsl\":return r(parseFloat(i[0]),parseFloat(i[1])/100,parseFloat(i[2])/100);case\"rgb\":return e(St(i[0]),St(i[1]),St(i[2]))}return(a=ns.get(t))?e(a.r,a.g,a.b):(null==t||\"#\"!==t.charAt(0)||isNaN(a=parseInt(t.slice(1),16))||(4===t.length?(o=(3840&a)>>4,o|=o>>4,s=240&a,s|=s>>4,l=15&a,l|=l<<4):7===t.length&&(o=(16711680&a)>>16,s=(65280&a)>>8,l=255&a)),e(o,s,l))}function kt(t,e,r){var n,i,a=Math.min(t/=255,e/=255,r/=255),o=Math.max(t,e,r),s=o-a,l=(o+a)/2;return s?(i=l<.5?s/(o+a):s/(2-o-a),n=t==o?(e-r)/s+(e<r?6:0):e==o?(r-t)/s+2:(t-e)/s+4,n*=60):(n=NaN,i=l>0&&l<1?0:n),new ut(n,i,l)}function At(t,e,r){t=Tt(t),e=Tt(e),r=Tt(r);var n=gt((.4124564*t+.3575761*e+.1804375*r)/Qo),i=gt((.2126729*t+.7151522*e+.072175*r)/$o);return dt(116*i-16,500*(n-i),200*(i-gt((.0193339*t+.119192*e+.9503041*r)/ts)))}function Tt(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function St(t){var e=parseFloat(t);return\"%\"===t.charAt(t.length-1)?Math.round(2.55*e):e}\n", "function Et(t){return\"function\"==typeof t?t:function(){return t}}function Lt(t){return function(e,r,n){return 2===arguments.length&&\"function\"==typeof r&&(n=r,r=null),Ct(e,r,t,n)}}function Ct(t,e,r,n){function i(){var t,e=l.status;if(!e&&zt(l)||e>=200&&e<300||304===e){try{t=r.call(a,l)}catch(t){return void o.error.call(a,t)}o.load.call(a,t)}else o.error.call(a,l)}var a={},o=uo.dispatch(\"beforesend\",\"progress\",\"load\",\"error\"),s={},l=new XMLHttpRequest,u=null;return!this.XDomainRequest||\"withCredentials\"in l||!/^(http(s)?:)?\\/\\//.test(t)||(l=new XDomainRequest),\"onload\"in l?l.onload=l.onerror=i:l.onreadystatechange=function(){l.readyState>3&&i()},l.onprogress=function(t){var e=uo.event;uo.event=t;try{o.progress.call(a,l)}finally{uo.event=e}},a.header=function(t,e){return t=(t+\"\").toLowerCase(),arguments.length<2?s[t]:(null==e?delete s[t]:s[t]=e+\"\",a)},a.mimeType=function(t){return arguments.length?(e=null==t?null:t+\"\",a):e},a.responseType=function(t){return arguments.length?(u=t,a):u},a.response=function(t){return r=t,a},[\"get\",\"post\"].forEach(function(t){a[t]=function(){return a.send.apply(a,[t].concat(ho(arguments)))}}),a.send=function(r,n,i){if(2===arguments.length&&\"function\"==typeof n&&(i=n,n=null),l.open(r,t,!0),null==e||\"accept\"in s||(s.accept=e+\",*/*\"),l.setRequestHeader)for(var c in s)l.setRequestHeader(c,s[c]);return null!=e&&l.overrideMimeType&&l.overrideMimeType(e),null!=u&&(l.responseType=u),null!=i&&a.on(\"error\",i).on(\"load\",function(t){i(null,t)}),o.beforesend.call(a,l),l.send(null==n?null:n),a},a.abort=function(){return l.abort(),a},uo.rebind(a,o,\"on\"),null==n?a:a.get(It(n))}function It(t){return 1===t.length?function(e,r){t(null==e?r:null)}:t}function zt(t){var e=t.responseType;return e&&\"text\"!==e?t.response:t.responseText}function Dt(t,e,r){var n=arguments.length;n<2&&(e=0),n<3&&(r=Date.now());var i=r+e,a={c:t,t:i,n:null};return as?as.n=a:is=a,as=a,os||(ss=clearTimeout(ss),os=1,ls(Pt)),a}function Pt(){var t=Ot(),e=Rt()-t;e>24?(isFinite(e)&&(clearTimeout(ss),ss=setTimeout(Pt,e)),os=0):(os=1,ls(Pt))}function Ot(){for(var t=Date.now(),e=is;e;)t>=e.t&&e.c(t-e.t)&&(e.c=null),e=e.n;return t}function Rt(){for(var t,e=is,r=1/0;e;)e.c?(e.t<r&&(r=e.t),e=(t=e).n):e=t?t.n=e.n:is=e.n;return as=t,r}function Ft(t,e){return e-(t?Math.ceil(Math.log(t)/Math.LN10):1)}function jt(t,e){var r=Math.pow(10,3*xo(8-e));return{scale:e>8?function(t){return t/r}:function(t){return t*r},symbol:t}}function Nt(t){var e=t.decimal,r=t.thousands,n=t.grouping,i=t.currency,a=n&&r?function(t,e){for(var i=t.length,a=[],o=0,s=n[0],l=0;i>0&&s>0&&(l+s+1>e&&(s=Math.max(1,e-l)),a.push(t.substring(i-=s,i+s)),!((l+=s+1)>e));)s=n[o=(o+1)%n.length];return a.reverse().join(r)}:x;return function(t){var r=cs.exec(t),n=r[1]||\" \",o=r[2]||\">\",s=r[3]||\"-\",l=r[4]||\"\",u=r[5],c=+r[6],h=r[7],f=r[8],d=r[9],p=1,m=\"\",v=\"\",g=!1,y=!0;switch(f&&(f=+f.substring(1)),(u||\"0\"===n&&\"=\"===o)&&(u=n=\"0\",o=\"=\"),d){case\"n\":h=!0,d=\"g\";break;case\"%\":p=100,v=\"%\",d=\"f\";break;case\"p\":p=100,v=\"%\",d=\"r\";break;case\"b\":case\"o\":case\"x\":case\"X\":\"#\"===l&&(m=\"0\"+d.toLowerCase());case\"c\":y=!1;case\"d\":g=!0,f=0;break;case\"s\":p=-1,d=\"r\"}\"$\"===l&&(m=i[0],v=i[1]),\"r\"!=d||f||(d=\"g\"),null!=f&&(\"g\"==d?f=Math.max(1,Math.min(21,f)):\"e\"!=d&&\"f\"!=d||(f=Math.max(0,Math.min(20,f)))),d=hs.get(d)||Bt;var b=u&&h;return function(t){var r=v;if(g&&t%1)return\"\";var i=t<0||0===t&&1/t<0?(t=-t,\"-\"):\"-\"===s?\"\":s;if(p<0){var l=uo.formatPrefix(t,f);t=l.scale(t),r=l.symbol+v}else t*=p;t=d(t,f);var x,_,w=t.lastIndexOf(\".\");if(w<0){var M=y?t.lastIndexOf(\"e\"):-1;M<0?(x=t,_=\"\"):(x=t.substring(0,M),_=t.substring(M))}else x=t.substring(0,w),_=e+t.substring(w+1);!u&&h&&(x=a(x,1/0));var k=m.length+x.length+_.length+(b?0:i.length),A=k<c?new Array(k=c-k+1).join(n):\"\";return b&&(x=a(A+x,A.length?c-_.length:1/0)),i+=m,t=x+_,(\"<\"===o?i+t+A:\">\"===o?A+i+t:\"^\"===o?A.substring(0,k>>=1)+i+t+A.substring(k):i+(b?t:A+t))+r}}}function Bt(t){return t+\"\"}function Ut(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}function Vt(t,e,r){function n(e){var r=t(e),n=a(r,1);return e-r<n-e?r:n}function i(r){return e(r=t(new ds(r-1)),1),r}function a(t,r){return e(t=new ds(+t),r),t}function o(t,n,a){var o=i(t),s=[];if(a>1)for(;o<n;)r(o)%a||s.push(new Date(+o)),e(o,1);else for(;o<n;)s.push(new Date(+o)),e(o,1);return s}function s(t,e,r){try{ds=Ut;var n=new Ut;return n._=t,o(n,e,r)}finally{ds=Date}}t.floor=t,t.round=n,t.ceil=i,t.offset=a,t.range=o;var l=t.utc=Ht(t);return l.floor=l,l.round=Ht(n),l.ceil=Ht(i),l.offset=Ht(a),l.range=s,t}function Ht(t){return function(e,r){try{ds=Ut;var n=new Ut;return n._=e,t(n,r)._}finally{ds=Date}}}function qt(t){function e(t){function e(e){for(var r,i,a,o=[],s=-1,l=0;++s<n;)37===t.charCodeAt(s)&&(o.push(t.slice(l,s)),null!=(i=ms[r=t.charAt(++s)])&&(r=t.charAt(++s)),(a=E[r])&&(r=a(e,null==i?\"e\"===r?\" \":\"0\":i)),o.push(r),l=s+1);return o.push(t.slice(l,s)),o.join(\"\")}var n=t.length;return e.parse=function(e){var n={y:1900,m:0,d:1,H:0,M:0,S:0,L:0,Z:null};if(r(n,t,e,0)!=e.length)return null;\"p\"in n&&(n.H=n.H%12+12*n.p);var i=null!=n.Z&&ds!==Ut,a=new(i?Ut:ds);return\"j\"in n?a.setFullYear(n.y,0,n.j):\"W\"in n||\"U\"in n?(\"w\"in n||(n.w=\"W\"in n?1:0),a.setFullYear(n.y,0,1),a.setFullYear(n.y,0,\"W\"in n?(n.w+6)%7+7*n.W-(a.getDay()+5)%7:n.w+7*n.U-(a.getDay()+6)%7)):a.setFullYear(n.y,n.m,n.d),a.setHours(n.H+(n.Z/100|0),n.M+n.Z%100,n.S,n.L),i?a._:a},e.toString=function(){return t},e}function r(t,e,r,n){for(var i,a,o,s=0,l=e.length,u=r.length;s<l;){if(n>=u)return-1;if(37===(i=e.charCodeAt(s++))){if(o=e.charAt(s++),!(a=L[o in ms?e.charAt(s++):o])||(n=a(t,r,n))<0)return-1}else if(i!=r.charCodeAt(n++))return-1}return n}function n(t,e,r){w.lastIndex=0;var n=w.exec(e.slice(r));return n?(t.w=M.get(n[0].toLowerCase()),r+n[0].length):-1}function i(t,e,r){x.lastIndex=0;var n=x.exec(e.slice(r));return n?(t.w=_.get(n[0].toLowerCase()),r+n[0].length):-1}function a(t,e,r){T.lastIndex=0;var n=T.exec(e.slice(r));return n?(t.m=S.get(n[0].toLowerCase()),r+n[0].length):-1}function o(t,e,r){k.lastIndex=0;var n=k.exec(e.slice(r));return n?(t.m=A.get(n[0].toLowerCase()),r+n[0].length):-1}function s(t,e,n){return r(t,E.c.toString(),e,n)}function l(t,e,n){return r(t,E.x.toString(),e,n)}function u(t,e,n){return r(t,E.X.toString(),e,n)}function c(t,e,r){var n=b.get(e.slice(r,r+=2).toLowerCase());return null==n?-1:(t.p=n,r)}var h=t.dateTime,f=t.date,d=t.time,p=t.periods,m=t.days,v=t.shortDays,g=t.months,y=t.shortMonths;e.utc=function(t){function r(t){try{ds=Ut;var e=new ds;return e._=t,n(e)}finally{ds=Date}}var n=e(t);return r.parse=function(t){try{ds=Ut;var e=n.parse(t);return e&&e._}finally{ds=Date}},r.toString=n.toString,r},e.multi=e.utc.multi=ce;var b=uo.map(),x=Yt(m),_=Wt(m),w=Yt(v),M=Wt(v),k=Yt(g),A=Wt(g),T=Yt(y),S=Wt(y);p.forEach(function(t,e){b.set(t.toLowerCase(),e)});var E={a:function(t){return v[t.getDay()]},A:function(t){return m[t.getDay()]},b:function(t){return y[t.getMonth()]},B:function(t){return g[t.getMonth()]},c:e(h),d:function(t,e){return Gt(t.getDate(),e,2)},e:function(t,e){return Gt(t.getDate(),e,2)},H:function(t,e){return Gt(t.getHours(),e,2)},I:function(t,e){return Gt(t.getHours()%12||12,e,2)},j:function(t,e){return Gt(1+fs.dayOfYear(t),e,3)},L:function(t,e){return Gt(t.getMilliseconds(),e,3)},m:function(t,e){return Gt(t.getMonth()+1,e,2)},M:function(t,e){return Gt(t.getMinutes(),e,2)},p:function(t){return p[+(t.getHours()>=12)]},S:function(t,e){return Gt(t.getSeconds(),e,2)},U:function(t,e){return Gt(fs.sundayOfYear(t),e,2)},w:function(t){return t.getDay()},W:function(t,e){return Gt(fs.mondayOfYear(t),e,2)},x:e(f),X:e(d),y:function(t,e){return Gt(t.getFullYear()%100,e,2)},Y:function(t,e){return Gt(t.getFullYear()%1e4,e,4)},Z:le,\"%\":function(){return\"%\"}},L={a:n,A:i,b:a,B:o,c:s,d:re,e:re,H:ie,I:ie,j:ne,L:se,m:ee,M:ae,p:c,S:oe,U:Zt,w:Xt,W:Jt,x:l,X:u,y:Qt,Y:Kt,Z:$t,\"%\":ue};return e}function Gt(t,e,r){var n=t<0?\"-\":\"\",i=(n?-t:t)+\"\",a=i.length;return n+(a<r?new Array(r-a+1).join(e)+i:i)}function Yt(t){return new RegExp(\"^(?:\"+t.map(uo.requote).join(\"|\")+\")\",\"i\")}function Wt(t){for(var e=new h,r=-1,n=t.length;++r<n;)e.set(t[r].toLowerCase(),r);return e}function Xt(t,e,r){vs.lastIndex=0;var n=vs.exec(e.slice(r,r+1));return n?(t.w=+n[0],r+n[0].length):-1}function Zt(t,e,r){vs.lastIndex=0;var n=vs.exec(e.slice(r));return n?(t.U=+n[0],r+n[0].length):-1}function Jt(t,e,r){vs.lastIndex=0;var n=vs.exec(e.slice(r));return n?(t.W=+n[0],r+n[0].length):-1}function Kt(t,e,r){vs.lastIndex=0;var n=vs.exec(e.slice(r,r+4));return n?(t.y=+n[0],r+n[0].length):-1}function Qt(t,e,r){vs.lastIndex=0;var n=vs.exec(e.slice(r,r+2));return n?(t.y=te(+n[0]),r+n[0].length):-1}function $t(t,e,r){return/^[+-]\\d{4}$/.test(e=e.slice(r,r+5))?(t.Z=-e,r+5):-1}function te(t){return t+(t>68?1900:2e3)}function ee(t,e,r){vs.lastIndex=0;var n=vs.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function re(t,e,r){vs.lastIndex=0;var n=vs.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function ne(t,e,r){vs.lastIndex=0;var n=vs.exec(e.slice(r,r+3));return n?(t.j=+n[0],r+n[0].length):-1}function ie(t,e,r){vs.lastIndex=0;var n=vs.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function ae(t,e,r){vs.lastIndex=0;var n=vs.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function oe(t,e,r){vs.lastIndex=0;var n=vs.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function se(t,e,r){vs.lastIndex=0;var n=vs.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function le(t){var e=t.getTimezoneOffset(),r=e>0?\"-\":\"+\",n=xo(e)/60|0,i=xo(e)%60;return r+Gt(n,\"0\",2)+Gt(i,\"0\",2)}function ue(t,e,r){gs.lastIndex=0;var n=gs.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function ce(t){for(var e=t.length,r=-1;++r<e;)t[r][0]=this(t[r][0]);return function(e){for(var r=0,n=t[r];!n[1](e);)n=t[++r];return n[0](e)}}function he(){}function fe(t,e,r){var n=r.s=t+e,i=n-t,a=n-i;r.t=t-a+(e-i)}function de(t,e){t&&_s.hasOwnProperty(t.type)&&_s[t.type](t,e)}function pe(t,e,r){var n,i=-1,a=t.length-r;for(e.lineStart();++i<a;)n=t[i],e.point(n[0],n[1],n[2]);e.lineEnd()}function me(t,e){var r=-1,n=t.length;for(e.polygonStart();++r<n;)pe(t[r],e,1);e.polygonEnd()}function ve(){function t(t,e){t*=Ho,e=e*Ho/2+No/4;var r=t-n,o=r>=0?1:-1,s=o*r,l=Math.cos(e),u=Math.sin(e),c=a*u,h=i*l+c*Math.cos(s),f=c*o*Math.sin(s);Ms.add(Math.atan2(f,h)),n=t,i=l,a=u}var e,r,n,i,a;ks.point=function(o,s){ks.point=t,n=(e=o)*Ho,i=Math.cos(s=(r=s)*Ho/2+No/4),a=Math.sin(s)},ks.lineEnd=function(){t(e,r)}}function ge(t){var e=t[0],r=t[1],n=Math.cos(r);return[n*Math.cos(e),n*Math.sin(e),Math.sin(r)]}function ye(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function be(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function xe(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function _e(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function we(t){var e=Math.sqrt(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}function Me(t){return[Math.atan2(t[1],t[0]),nt(t[2])]}function ke(t,e){return xo(t[0]-e[0])<Fo&&xo(t[1]-e[1])<Fo}function Ae(t,e){t*=Ho;var r=Math.cos(e*=Ho);Te(r*Math.cos(t),r*Math.sin(t),Math.sin(e))}function Te(t,e,r){++As,Ss+=(t-Ss)/As,Es+=(e-Es)/As,Ls+=(r-Ls)/As}function Se(){function t(t,i){t*=Ho;var a=Math.cos(i*=Ho),o=a*Math.cos(t),s=a*Math.sin(t),l=Math.sin(i),u=Math.atan2(Math.sqrt((u=r*l-n*s)*u+(u=n*o-e*l)*u+(u=e*s-r*o)*u),e*o+r*s+n*l);Ts+=u,Cs+=u*(e+(e=o)),Is+=u*(r+(r=s)),zs+=u*(n+(n=l)),Te(e,r,n)}var e,r,n;Rs.point=function(i,a){i*=Ho;var o=Math.cos(a*=Ho);e=o*Math.cos(i),r=o*Math.sin(i),n=Math.sin(a),Rs.point=t,Te(e,r,n)}}function Ee(){Rs.point=Ae}function Le(){function t(t,e){t*=Ho;var r=Math.cos(e*=Ho),o=r*Math.cos(t),s=r*Math.sin(t),l=Math.sin(e),u=i*l-a*s,c=a*o-n*l,h=n*s-i*o,f=Math.sqrt(u*u+c*c+h*h),d=n*o+i*s+a*l,p=f&&-rt(d)/f,m=Math.atan2(f,d);Ds+=p*u,Ps+=p*c,Os+=p*h,Ts+=m,Cs+=m*(n+(n=o)),Is+=m*(i+(i=s)),zs+=m*(a+(a=l)),Te(n,i,a)}var e,r,n,i,a;Rs.point=function(o,s){e=o,r=s,Rs.point=t,o*=Ho;var l=Math.cos(s*=Ho);n=l*Math.cos(o),i=l*Math.sin(o),a=Math.sin(s),Te(n,i,a)},Rs.lineEnd=function(){t(e,r),Rs.lineEnd=Ee,Rs.point=Ae}}function Ce(t,e){function r(r,n){return r=t(r,n),e(r[0],r[1])}return t.invert&&e.invert&&(r.invert=function(r,n){return(r=e.invert(r,n))&&t.invert(r[0],r[1])}),r}function Ie(){return!0}function ze(t,e,r,n,i){var a=[],o=[];if(t.forEach(function(t){if(!((e=t.length-1)<=0)){var e,r=t[0],n=t[e];if(ke(r,n)){i.lineStart();for(var s=0;s<e;++s)i.point((r=t[s])[0],r[1]);return void i.lineEnd()}var l=new Pe(r,t,null,!0),u=new Pe(r,null,l,!1);l.o=u,a.push(l),o.push(u),l=new Pe(n,t,null,!1),u=new Pe(n,null,l,!0),l.o=u,a.push(l),o.push(u)}}),o.sort(e),De(a),De(o),a.length){for(var s=0,l=r,u=o.length;s<u;++s)o[s].e=l=!l;for(var c,h,f=a[0];;){for(var d=f,p=!0;d.v;)if((d=d.n)===f)return;c=d.z,i.lineStart();do{if(d.v=d.o.v=!0,d.e){if(p)for(var s=0,u=c.length;s<u;++s)i.point((h=c[s])[0],h[1]);else n(d.x,d.n.x,1,i);d=d.n}else{if(p){c=d.p.z;for(var s=c.length-1;s>=0;--s)i.point((h=c[s])[0],h[1])}else n(d.x,d.p.x,-1,i);d=d.p}d=d.o,c=d.z,p=!p}while(!d.v);i.lineEnd()}}}function De(t){if(e=t.length){for(var e,r,n=0,i=t[0];++n<e;)i.n=r=t[n],r.p=i,i=r;i.n=r=t[0],r.p=i}}function Pe(t,e,r,n){this.x=t,this.z=e,this.o=r,this.e=n,this.v=!1,this.n=this.p=null}function Oe(t,e,r,n){return function(i,a){function o(e,r){var n=i(e,r);t(e=n[0],r=n[1])&&a.point(e,r)}function s(t,e){var r=i(t,e);v.point(r[0],r[1])}function l(){y.point=s,v.lineStart()}function u(){y.point=o,v.lineEnd()}function c(t,e){m.push([t,e]);var r=i(t,e);x.point(r[0],r[1])}function h(){x.lineStart(),m=[]}function f(){c(m[0][0],m[0][1]),x.lineEnd();var t,e=x.clean(),r=b.buffer(),n=r.length;if(m.pop(),p.push(m),m=null,n)if(1&e){t=r[0];var i,n=t.length-1,o=-1;if(n>0){for(_||(a.polygonStart(),_=!0),a.lineStart();++o<n;)a.point((i=t[o])[0],i[1]);a.lineEnd()}}else n>1&&2&e&&r.push(r.pop().concat(r.shift())),d.push(r.filter(Re))}var d,p,m,v=e(a),g=i.invert(n[0],n[1]),y={point:o,lineStart:l,lineEnd:u,polygonStart:function(){y.point=c,y.lineStart=h,y.lineEnd=f,d=[],p=[]},polygonEnd:function(){y.point=o,y.lineStart=l,y.lineEnd=u,d=uo.merge(d);var t=Ve(g,p);d.length?(_||(a.polygonStart(),_=!0),ze(d,je,t,r,a)):t&&(_||(a.polygonStart(),_=!0),a.lineStart(),r(null,null,1,a),a.lineEnd()),_&&(a.polygonEnd(),_=!1),d=p=null},sphere:function(){a.polygonStart(),a.lineStart(),r(null,null,1,a),a.lineEnd(),a.polygonEnd()}},b=Fe(),x=e(b),_=!1;return y}}function Re(t){return t.length>1}function Fe(){var t,e=[];return{lineStart:function(){e.push(t=[])},point:function(e,r){t.push([e,r])},lineEnd:M,buffer:function(){var r=e;return e=[],t=null,r},rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))}}}function je(t,e){return((t=t.x)[0]<0?t[1]-Vo-Fo:Vo-t[1])-((e=e.x)[0]<0?e[1]-Vo-Fo:Vo-e[1])}function Ne(t){var e,r=NaN,n=NaN,i=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(a,o){var s=a>0?No:-No,l=xo(a-r);xo(l-No)<Fo?(t.point(r,n=(n+o)/2>0?Vo:-Vo),t.point(i,n),t.lineEnd(),t.lineStart(),t.point(s,n),t.point(a,n),e=0):i!==s&&l>=No&&(xo(r-i)<Fo&&(r-=i*Fo),xo(a-s)<Fo&&(a-=s*Fo),n=Be(r,n,a,o),t.point(i,n),t.lineEnd(),t.lineStart(),t.point(s,n),e=0),t.point(r=a,n=o),i=s},lineEnd:function(){t.lineEnd(),r=n=NaN},clean:function(){return 2-e}}}function Be(t,e,r,n){var i,a,o=Math.sin(t-r);return xo(o)>Fo?Math.atan((Math.sin(e)*(a=Math.cos(n))*Math.sin(r)-Math.sin(n)*(i=Math.cos(e))*Math.sin(t))/(i*a*o)):(e+n)/2}function Ue(t,e,r,n){var i;if(null==t)i=r*Vo,n.point(-No,i),n.point(0,i),n.point(No,i),n.point(No,0),n.point(No,-i),n.point(0,-i),n.point(-No,-i),n.point(-No,0),n.point(-No,i);else if(xo(t[0]-e[0])>Fo){var a=t[0]<e[0]?No:-No;i=r*a/2,n.point(-a,i),n.point(0,i),n.point(a,i)}else n.point(e[0],e[1])}function Ve(t,e){var r=t[0],n=t[1],i=[Math.sin(r),-Math.cos(r),0],a=0,o=0;Ms.reset();for(var s=0,l=e.length;s<l;++s){var u=e[s],c=u.length;if(c)for(var h=u[0],f=h[0],d=h[1]/2+No/4,p=Math.sin(d),m=Math.cos(d),v=1;;){v===c&&(v=0),t=u[v];var g=t[0],y=t[1]/2+No/4,b=Math.sin(y),x=Math.cos(y),_=g-f,w=_>=0?1:-1,M=w*_,k=M>No,A=p*b;if(Ms.add(Math.atan2(A*w*Math.sin(M),m*x+A*Math.cos(M))),a+=k?_+w*Bo:_,k^f>=r^g>=r){var T=be(ge(h),ge(t));we(T);var S=be(i,T);we(S);var E=(k^_>=0?-1:1)*nt(S[2]);(n>E||n===E&&(T[0]||T[1]))&&(o+=k^_>=0?1:-1)}if(!v++)break;f=g,p=b,m=x,h=t}}return(a<-Fo||a<Fo&&Ms<-Fo)^1&o}function He(t){function e(t,e){return Math.cos(t)*Math.cos(e)>a}function r(t){var r,a,l,u,c;return{lineStart:function(){u=l=!1,c=1},point:function(h,f){var d,p=[h,f],m=e(h,f),v=o?m?0:i(h,f):m?i(h+(h<0?No:-No),f):0;if(!r&&(u=l=m)&&t.lineStart(),m!==l&&(d=n(r,p),(ke(r,d)||ke(p,d))&&(p[0]+=Fo,p[1]+=Fo,m=e(p[0],p[1]))),m!==l)c=0,m?(t.lineStart(),d=n(p,r),t.point(d[0],d[1])):(d=n(r,p),t.point(d[0],d[1]),t.lineEnd()),r=d;else if(s&&r&&o^m){var g;v&a||!(g=n(p,r,!0))||(c=0,o?(t.lineStart(),t.point(g[0][0],g[0][1]),t.point(g[1][0],g[1][1]),t.lineEnd()):(t.point(g[1][0],g[1][1]),t.lineEnd(),t.lineStart(),t.point(g[0][0],g[0][1])))}!m||r&&ke(r,p)||t.point(p[0],p[1]),r=p,l=m,a=v},lineEnd:function(){l&&t.lineEnd(),r=null},clean:function(){return c|(u&&l)<<1}}}function n(t,e,r){var n=ge(t),i=ge(e),o=[1,0,0],s=be(n,i),l=ye(s,s),u=s[0],c=l-u*u;if(!c)return!r&&t;var h=a*l/c,f=-a*u/c,d=be(o,s),p=_e(o,h);xe(p,_e(s,f));var m=d,v=ye(p,m),g=ye(m,m),y=v*v-g*(ye(p,p)-1);if(!(y<0)){var b=Math.sqrt(y),x=_e(m,(-v-b)/g);if(xe(x,p),x=Me(x),!r)return x;var _,w=t[0],M=e[0],k=t[1],A=e[1];M<w&&(_=w,w=M,M=_);var T=M-w,S=xo(T-No)<Fo,E=S||T<Fo;if(!S&&A<k&&(_=k,k=A,A=_),E?S?k+A>0^x[1]<(xo(x[0]-w)<Fo?k:A):k<=x[1]&&x[1]<=A:T>No^(w<=x[0]&&x[0]<=M)){var L=_e(m,(-v+b)/g);return xe(L,p),[x,Me(L)]}}}function i(e,r){var n=o?t:No-t,i=0;return e<-n?i|=1:e>n&&(i|=2),r<-n?i|=4:r>n&&(i|=8),i}var a=Math.cos(t),o=a>0,s=xo(a)>Fo;return Oe(e,r,vr(t,6*Ho),o?[0,-t]:[-No,t-No])}function qe(t,e,r,n){return function(i){var a,o=i.a,s=i.b,l=o.x,u=o.y,c=s.x,h=s.y,f=0,d=1,p=c-l,m=h-u;if(a=t-l,p||!(a>0)){if(a/=p,p<0){if(a<f)return;a<d&&(d=a)}else if(p>0){if(a>d)return;a>f&&(f=a)}if(a=r-l,p||!(a<0)){if(a/=p,p<0){if(a>d)return;a>f&&(f=a)}else if(p>0){if(a<f)return;a<d&&(d=a)}if(a=e-u,m||!(a>0)){if(a/=m,m<0){if(a<f)return;a<d&&(d=a)}else if(m>0){if(a>d)return;a>f&&(f=a)}if(a=n-u,m||!(a<0)){if(a/=m,m<0){if(a>d)return;a>f&&(f=a)}else if(m>0){if(a<f)return;a<d&&(d=a)}return f>0&&(i.a={x:l+f*p,y:u+f*m}),d<1&&(i.b={x:l+d*p,y:u+d*m}),i}}}}}}function Ge(t,e,r,n){function i(n,i){return xo(n[0]-t)<Fo?i>0?0:3:xo(n[0]-r)<Fo?i>0?2:1:xo(n[1]-e)<Fo?i>0?1:0:i>0?3:2}function a(t,e){return o(t.x,e.x)}function o(t,e){var r=i(t,1),n=i(e,1);return r!==n?r-n:0===r?e[1]-t[1]:1===r?t[0]-e[0]:2===r?t[1]-e[1]:e[0]-t[0]}return function(s){function l(t){for(var e=0,r=v.length,n=t[1],i=0;i<r;++i)for(var a,o=1,s=v[i],l=s.length,u=s[0];o<l;++o)a=s[o],u[1]<=n?a[1]>n&&et(u,a,t)>0&&++e:a[1]<=n&&et(u,a,t)<0&&--e,u=a;return 0!==e}function u(a,s,l,u){var c=0,h=0;if(null==a||(c=i(a,l))!==(h=i(s,l))||o(a,s)<0^l>0)do{u.point(0===c||3===c?t:r,c>1?n:e)}while((c=(c+l+4)%4)!==h);else u.point(s[0],s[1])}function c(i,a){return t<=i&&i<=r&&e<=a&&a<=n}function h(t,e){c(t,e)&&s.point(t,e)}function f(){L.point=p,v&&v.push(g=[]),k=!0,M=!1,_=w=NaN}function d(){m&&(p(y,b),x&&M&&S.rejoin(),m.push(S.buffer())),L.point=h,M&&s.lineEnd()}function p(t,e){t=Math.max(-js,Math.min(js,t)),e=Math.max(-js,Math.min(js,e));var r=c(t,e);if(v&&g.push([t,e]),k)y=t,b=e,x=r,k=!1,r&&(s.lineStart(),s.point(t,e));else if(r&&M)s.point(t,e);else{var n={a:{x:_,y:w},b:{x:t,y:e}};E(n)?(M||(s.lineStart(),s.point(n.a.x,n.a.y)),s.point(n.b.x,n.b.y),r||s.lineEnd(),A=!1):r&&(s.lineStart(),s.point(t,e),A=!1)}_=t,w=e,M=r}var m,v,g,y,b,x,_,w,M,k,A,T=s,S=Fe(),E=qe(t,e,r,n),L={point:h,lineStart:f,lineEnd:d,polygonStart:function(){s=S,m=[],v=[],A=!0},polygonEnd:function(){s=T,m=uo.merge(m);var e=l([t,n]),r=A&&e,i=m.length;(r||i)&&(s.polygonStart(),r&&(s.lineStart(),u(null,null,1,s),s.lineEnd()),i&&ze(m,a,e,u,s),s.polygonEnd()),m=v=g=null}};return L}}function Ye(t){var e=0,r=No/3,n=lr(t),i=n(e,r);return i.parallels=function(t){return arguments.length?n(e=t[0]*No/180,r=t[1]*No/180):[e/No*180,r/No*180]},i}function We(t,e){function r(t,e){var r=Math.sqrt(a-2*i*Math.sin(e))/i;return[r*Math.sin(t*=i),o-r*Math.cos(t)]}var n=Math.sin(t),i=(n+Math.sin(e))/2,a=1+n*(2*i-n),o=Math.sqrt(a)/i;return r.invert=function(t,e){var r=o-e;return[Math.atan2(t,r)/i,nt((a-(t*t+r*r)*i*i)/(2*i))]},r}function Xe(){function t(t,e){Bs+=i*t-n*e,n=t,i=e}var e,r,n,i;Gs.point=function(a,o){Gs.point=t,e=n=a,r=i=o},Gs.lineEnd=function(){t(e,r)}}function Ze(t,e){t<Us&&(Us=t),t>Hs&&(Hs=t),e<Vs&&(Vs=e),e>qs&&(qs=e)}function Je(){function t(t,e){o.push(\"M\",t,\",\",e,a)}function e(t,e){o.push(\"M\",t,\",\",e),s.point=r}function r(t,e){o.push(\"L\",t,\",\",e)}function n(){s.point=t}function i(){o.push(\"Z\")}var a=Ke(4.5),o=[],s={point:t,lineStart:function(){s.point=e},lineEnd:n,polygonStart:function(){s.lineEnd=i},polygonEnd:function(){s.lineEnd=n,s.point=t},pointRadius:function(t){return a=Ke(t),s},result:function(){if(o.length){var t=o.join(\"\");return o=[],t}}};return s}function Ke(t){return\"m0,\"+t+\"a\"+t+\",\"+t+\" 0 1,1 0,\"+-2*t+\"a\"+t+\",\"+t+\" 0 1,1 0,\"+2*t+\"z\"}function Qe(t,e){Ss+=t,Es+=e,++Ls}function $e(){function t(t,n){var i=t-e,a=n-r,o=Math.sqrt(i*i+a*a);Cs+=o*(e+t)/2,Is+=o*(r+n)/2,zs+=o,Qe(e=t,r=n)}var e,r;Ws.point=function(n,i){Ws.point=t,Qe(e=n,r=i)}}function tr(){Ws.point=Qe}function er(){function t(t,e){var r=t-n,a=e-i,o=Math.sqrt(r*r+a*a);Cs+=o*(n+t)/2,Is+=o*(i+e)/2,zs+=o,o=i*t-n*e,Ds+=o*(n+t),Ps+=o*(i+e),Os+=3*o,Qe(n=t,i=e)}var e,r,n,i;Ws.point=function(a,o){Ws.point=t,Qe(e=n=a,r=i=o)},Ws.lineEnd=function(){t(e,r)}}function rr(t){function e(e,r){t.moveTo(e+o,r),t.arc(e,r,o,0,Bo)}function r(e,r){t.moveTo(e,r),s.point=n}function n(e,r){t.lineTo(e,r)}function i(){s.point=e}function a(){t.closePath()}var o=4.5,s={point:e,lineStart:function(){s.point=r},lineEnd:i,polygonStart:function(){s.lineEnd=a},polygonEnd:function(){s.lineEnd=i,s.point=e},pointRadius:function(t){return o=t,s},result:M};return s}function nr(t){function e(t){return(s?n:r)(t)}function r(e){return or(e,function(r,n){r=t(r,n),e.point(r[0],r[1])})}function n(e){function r(r,n){r=t(r,n),e.point(r[0],r[1])}function n(){b=NaN,k.point=a,e.lineStart()}function a(r,n){var a=ge([r,n]),o=t(r,n);i(b,x,y,_,w,M,b=o[0],x=o[1],y=r,_=a[0],w=a[1],M=a[2],s,e),e.point(b,x)}function o(){k.point=r,e.lineEnd()}function l(){n(),k.point=u,k.lineEnd=c}function u(t,e){a(h=t,f=e),d=b,p=x,m=_,v=w,g=M,k.point=a}function c(){i(b,x,y,_,w,M,d,p,h,m,v,g,s,e),k.lineEnd=o,o()}var h,f,d,p,m,v,g,y,b,x,_,w,M,k={point:r,lineStart:n,lineEnd:o,polygonStart:function(){e.polygonStart(),k.lineStart=l},polygonEnd:function(){e.polygonEnd(),k.lineStart=n}};return k}function i(e,r,n,s,l,u,c,h,f,d,p,m,v,g){var y=c-e,b=h-r,x=y*y+b*b;if(x>4*a&&v--){var _=s+d,w=l+p,M=u+m,k=Math.sqrt(_*_+w*w+M*M),A=Math.asin(M/=k),T=xo(xo(M)-1)<Fo||xo(n-f)<Fo?(n+f)/2:Math.atan2(w,_),S=t(T,A),E=S[0],L=S[1],C=E-e,I=L-r,z=b*C-y*I;(z*z/x>a||xo((y*C+b*I)/x-.5)>.3||s*d+l*p+u*m<o)&&(i(e,r,n,s,l,u,E,L,T,_/=k,w/=k,M,v,g),g.point(E,L),i(E,L,T,_,w,M,c,h,f,d,p,m,v,g))}}var a=.5,o=Math.cos(30*Ho),s=16;return e.precision=function(t){return arguments.length?(s=(a=t*t)>0&&16,e):Math.sqrt(a)},e}function ir(t){var e=nr(function(e,r){return t([e*qo,r*qo])});return function(t){return ur(e(t))}}function ar(t){this.stream=t}function or(t,e){return{point:e,sphere:function(){t.sphere()},lineStart:function(){t.lineStart()},lineEnd:function(){t.lineEnd()},polygonStart:function(){t.polygonStart()},polygonEnd:function(){t.polygonEnd()}}}function sr(t){return lr(function(){return t})()}function lr(t){function e(t){return t=s(t[0]*Ho,t[1]*Ho),[t[0]*f+l,u-t[1]*f]}function r(t){return(t=s.invert((t[0]-l)/f,(u-t[1])/f))&&[t[0]*qo,t[1]*qo]}function n(){s=Ce(o=fr(g,y,b),a);var t=a(m,v);return l=d-t[0]*f,u=p+t[1]*f,i()}function i(){return c&&(c.valid=!1,c=null),e}var a,o,s,l,u,c,h=nr(function(t,e){return t=a(t,e),[t[0]*f+l,u-t[1]*f]}),f=150,d=480,p=250,m=0,v=0,g=0,y=0,b=0,_=Fs,w=x,M=null,k=null;return e.stream=function(t){return c&&(c.valid=!1),c=ur(_(o,h(w(t)))),c.valid=!0,c},e.clipAngle=function(t){return arguments.length?(_=null==t?(M=t,Fs):He((M=+t)*Ho),i()):M},e.clipExtent=function(t){return arguments.length?(k=t,w=t?Ge(t[0][0],t[0][1],t[1][0],t[1][1]):x,i()):k},e.scale=function(t){return arguments.length?(f=+t,n()):f},e.translate=function(t){return arguments.length?(d=+t[0],p=+t[1],n()):[d,p]},e.center=function(t){return arguments.length?(m=t[0]%360*Ho,v=t[1]%360*Ho,n()):[m*qo,v*qo]},e.rotate=function(t){return arguments.length?(g=t[0]%360*Ho,y=t[1]%360*Ho,b=t.length>2?t[2]%360*Ho:0,n()):[g*qo,y*qo,b*qo]},uo.rebind(e,h,\"precision\"),function(){return a=t.apply(this,arguments),e.invert=a.invert&&r,n()}}function ur(t){return or(t,function(e,r){t.point(e*Ho,r*Ho)})}function cr(t,e){return[t,e]}function hr(t,e){return[t>No?t-Bo:t<-No?t+Bo:t,e]}function fr(t,e,r){return t?e||r?Ce(pr(t),mr(e,r)):pr(t):e||r?mr(e,r):hr}function dr(t){return function(e,r){return e+=t,[e>No?e-Bo:e<-No?e+Bo:e,r]}}function pr(t){var e=dr(t);return e.invert=dr(-t),e}function mr(t,e){function r(t,e){var r=Math.cos(e),s=Math.cos(t)*r,l=Math.sin(t)*r,u=Math.sin(e),c=u*n+s*i;return[Math.atan2(l*a-c*o,s*n-u*i),nt(c*a+l*o)]}var n=Math.cos(t),i=Math.sin(t),a=Math.cos(e),o=Math.sin(e);return r.invert=function(t,e){var r=Math.cos(e),s=Math.cos(t)*r,l=Math.sin(t)*r,u=Math.sin(e),c=u*a-l*o;return[Math.atan2(l*a+u*o,s*n+c*i),nt(c*n-s*i)]},r}function vr(t,e){var r=Math.cos(t),n=Math.sin(t);return function(i,a,o,s){var l=o*e;null!=i?(i=gr(r,i),a=gr(r,a),(o>0?i<a:i>a)&&(i+=o*Bo)):(i=t+o*Bo,a=t-.5*l);for(var u,c=i;o>0?c>a:c<a;c-=l)s.point((u=Me([r,-n*Math.cos(c),-n*Math.sin(c)]))[0],u[1])}}function gr(t,e){var r=ge(e);r[0]-=t,we(r);var n=rt(-r[1]);return((-r[2]<0?-n:n)+2*Math.PI-Fo)%(2*Math.PI)}function yr(t,e,r){var n=uo.range(t,e-Fo,r).concat(e);return function(t){return n.map(function(e){return[t,e]})}}function br(t,e,r){var n=uo.range(t,e-Fo,r).concat(e);return function(t){return n.map(function(e){return[e,t]})}}function xr(t){return t.source}function _r(t){return t.target}function wr(t,e,r,n){var i=Math.cos(e),a=Math.sin(e),o=Math.cos(n),s=Math.sin(n),l=i*Math.cos(t),u=i*Math.sin(t),c=o*Math.cos(r),h=o*Math.sin(r),f=2*Math.asin(Math.sqrt(st(n-e)+i*o*st(r-t))),d=1/Math.sin(f),p=f?function(t){var e=Math.sin(t*=f)*d,r=Math.sin(f-t)*d,n=r*l+e*c,i=r*u+e*h,o=r*a+e*s;return[Math.atan2(i,n)*qo,Math.atan2(o,Math.sqrt(n*n+i*i))*qo]}:function(){return[t*qo,e*qo]};return p.distance=f,p}function Mr(){function t(t,i){var a=Math.sin(i*=Ho),o=Math.cos(i),s=xo((t*=Ho)-e),l=Math.cos(s);Xs+=Math.atan2(Math.sqrt((s=o*Math.sin(s))*s+(s=n*a-r*o*l)*s),r*a+n*o*l),e=t,r=a,n=o}var e,r,n;Zs.point=function(i,a){e=i*Ho,r=Math.sin(a*=Ho),n=Math.cos(a),Zs.point=t},Zs.lineEnd=function(){Zs.point=Zs.lineEnd=M}}function kr(t,e){function r(e,r){var n=Math.cos(e),i=Math.cos(r),a=t(n*i);return[a*i*Math.sin(e),a*Math.sin(r)]}return r.invert=function(t,r){var n=Math.sqrt(t*t+r*r),i=e(n),a=Math.sin(i),o=Math.cos(i);return[Math.atan2(t*a,n*o),Math.asin(n&&r*a/n)]},r}function Ar(t,e){function r(t,e){o>0?e<-Vo+Fo&&(e=-Vo+Fo):e>Vo-Fo&&(e=Vo-Fo);var r=o/Math.pow(i(e),a);return[r*Math.sin(a*t),o-r*Math.cos(a*t)]}var n=Math.cos(t),i=function(t){return Math.tan(No/4+t/2)},a=t===e?Math.sin(t):Math.log(n/Math.cos(e))/Math.log(i(e)/i(t)),o=n*Math.pow(i(t),a)/a;return a?(r.invert=function(t,e){var r=o-e,n=tt(a)*Math.sqrt(t*t+r*r);return[Math.atan2(t,r)/a,2*Math.atan(Math.pow(o/n,1/a))-Vo]},r):Sr}function Tr(t,e){function r(t,e){var r=a-e;return[r*Math.sin(i*t),a-r*Math.cos(i*t)]}var n=Math.cos(t),i=t===e?Math.sin(t):(n-Math.cos(e))/(e-t),a=n/i+t;return xo(i)<Fo?cr:(r.invert=function(t,e){var r=a-e;return[Math.atan2(t,r)/i,a-tt(i)*Math.sqrt(t*t+r*r)]},r)}function Sr(t,e){return[t,Math.log(Math.tan(No/4+e/2))]}function Er(t){var e,r=sr(t),n=r.scale,i=r.translate,a=r.clipExtent;return r.scale=function(){var t=n.apply(r,arguments);return t===r?e?r.clipExtent(null):r:t},r.translate=function(){var t=i.apply(r,arguments);return t===r?e?r.clipExtent(null):r:t},r.clipExtent=function(t){var o=a.apply(r,arguments);if(o===r){if(e=null==t){var s=No*n(),l=i();a([[l[0]-s,l[1]-s],[l[0]+s,l[1]+s]])}}else e&&(o=null);return o},r.clipExtent(null)}function Lr(t,e){return[Math.log(Math.tan(No/4+e/2)),-t]}function Cr(t){return t[0]}function Ir(t){return t[1]}function zr(t){for(var e=t.length,r=[0,1],n=2,i=2;i<e;i++){for(;n>1&&et(t[r[n-2]],t[r[n-1]],t[i])<=0;)--n;r[n++]=i}return r.slice(0,n)}function Dr(t,e){return t[0]-e[0]||t[1]-e[1]}function Pr(t,e,r){return(r[0]-e[0])*(t[1]-e[1])<(r[1]-e[1])*(t[0]-e[0])}function Or(t,e,r,n){var i=t[0],a=r[0],o=e[0]-i,s=n[0]-a,l=t[1],u=r[1],c=e[1]-l,h=n[1]-u,f=(s*(l-u)-h*(i-a))/(h*o-s*c);return[i+f*o,l+f*c]}function Rr(t){var e=t[0],r=t[t.length-1];return!(e[0]-r[0]||e[1]-r[1])}function Fr(){an(this),this.edge=this.site=this.circle=null}function jr(t){var e=sl.pop()||new Fr;return e.site=t,e}function Nr(t){Zr(t),il.remove(t),sl.push(t),an(t)}function Br(t){var e=t.circle,r=e.x,n=e.cy,i={x:r,y:n},a=t.P,o=t.N,s=[t];Nr(t);for(var l=a;l.circle&&xo(r-l.circle.x)<Fo&&xo(n-l.circle.cy)<Fo;)a=l.P,s.unshift(l),Nr(l),l=a;s.unshift(l),Zr(l);for(var u=o;u.circle&&xo(r-u.circle.x)<Fo&&xo(n-u.circle.cy)<Fo;)o=u.N,s.push(u),Nr(u),u=o;s.push(u),Zr(u);var c,h=s.length;for(c=1;c<h;++c)u=s[c],l=s[c-1],en(u.edge,l.site,u.site,i);l=s[0],u=s[h-1],u.edge=$r(l.site,u.site,null,i),Xr(l),Xr(u)}function Ur(t){for(var e,r,n,i,a=t.x,o=t.y,s=il._;s;)if((n=Vr(s,o)-a)>Fo)s=s.L;else{if(!((i=a-Hr(s,o))>Fo)){n>-Fo?(e=s.P,r=s):i>-Fo?(e=s,r=s.N):e=r=s;break}if(!s.R){e=s;break}s=s.R}var l=jr(t);if(il.insert(e,l),e||r){if(e===r)return Zr(e),r=jr(e.site),il.insert(l,r),l.edge=r.edge=$r(e.site,l.site),Xr(e),void Xr(r);if(!r)return void(l.edge=$r(e.site,l.site));Zr(e),Zr(r);var u=e.site,c=u.x,h=u.y,f=t.x-c,d=t.y-h,p=r.site,m=p.x-c,v=p.y-h,g=2*(f*v-d*m),y=f*f+d*d,b=m*m+v*v,x={x:(v*y-d*b)/g+c,y:(f*b-m*y)/g+h};en(r.edge,u,p,x),l.edge=$r(u,t,null,x),r.edge=$r(t,p,null,x),Xr(e),Xr(r)}}function Vr(t,e){var r=t.site,n=r.x,i=r.y,a=i-e;if(!a)return n;var o=t.P;if(!o)return-1/0;r=o.site;var s=r.x,l=r.y,u=l-e;if(!u)return s;var c=s-n,h=1/a-1/u,f=c/u;return h?(-f+Math.sqrt(f*f-2*h*(c*c/(-2*u)-l+u/2+i-a/2)))/h+n:(n+s)/2}function Hr(t,e){var r=t.N;if(r)return Vr(r,e);var n=t.site;return n.y===e?n.x:1/0}function qr(t){this.site=t,this.edges=[]}function Gr(t){for(var e,r,n,i,a,o,s,l,u,c,h=t[0][0],f=t[1][0],d=t[0][1],p=t[1][1],m=nl,v=m.length;v--;)if((a=m[v])&&a.prepare())for(s=a.edges,l=s.length,o=0;o<l;)c=s[o].end(),n=c.x,i=c.y,u=s[++o%l].start(),e=u.x,r=u.y,(xo(n-e)>Fo||xo(i-r)>Fo)&&(s.splice(o,0,new rn(tn(a.site,c,xo(n-h)<Fo&&p-i>Fo?{x:h,y:xo(e-h)<Fo?r:p}:xo(i-p)<Fo&&f-n>Fo?{x:xo(r-p)<Fo?e:f,y:p}:xo(n-f)<Fo&&i-d>Fo?{x:f,y:xo(e-f)<Fo?r:d}:xo(i-d)<Fo&&n-h>Fo?{x:xo(r-d)<Fo?e:h,y:d}:null),a.site,null)),++l)}function Yr(t,e){return e.angle-t.angle}function Wr(){an(this),this.x=this.y=this.arc=this.site=this.cy=null}function Xr(t){var e=t.P,r=t.N;if(e&&r){var n=e.site,i=t.site,a=r.site;if(n!==a){var o=i.x,s=i.y,l=n.x-o,u=n.y-s,c=a.x-o,h=a.y-s,f=2*(l*h-u*c);if(!(f>=-jo)){var d=l*l+u*u,p=c*c+h*h,m=(h*d-u*p)/f,v=(l*p-c*d)/f,h=v+s,g=ll.pop()||new Wr;g.arc=t,g.site=i,g.x=m+o,g.y=h+Math.sqrt(m*m+v*v),g.cy=h,t.circle=g;for(var y=null,b=ol._;b;)if(g.y<b.y||g.y===b.y&&g.x<=b.x){if(!b.L){y=b.P;break}b=b.L}else{if(!b.R){y=b;break}b=b.R}ol.insert(y,g),y||(al=g)}}}}function Zr(t){var e=t.circle;e&&(e.P||(al=e.N),ol.remove(e),ll.push(e),an(e),t.circle=null)}function Jr(t){for(var e,r=rl,n=qe(t[0][0],t[0][1],t[1][0],t[1][1]),i=r.length;i--;)e=r[i],(!Kr(e,t)||!n(e)||xo(e.a.x-e.b.x)<Fo&&xo(e.a.y-e.b.y)<Fo)&&(e.a=e.b=null,r.splice(i,1))}function Kr(t,e){var r=t.b;if(r)return!0;var n,i,a=t.a,o=e[0][0],s=e[1][0],l=e[0][1],u=e[1][1],c=t.l,h=t.r,f=c.x,d=c.y,p=h.x,m=h.y,v=(f+p)/2,g=(d+m)/2;if(m===d){if(v<o||v>=s)return;if(f>p){if(a){if(a.y>=u)return}else a={x:v,y:l};r={x:v,y:u}}else{if(a){if(a.y<l)return}else a={x:v,y:u};r={x:v,y:l}}}else if(n=(f-p)/(m-d),i=g-n*v,n<-1||n>1)if(f>p){if(a){if(a.y>=u)return}else a={x:(l-i)/n,y:l};r={x:(u-i)/n,y:u}}else{if(a){if(a.y<l)return}else a={x:(u-i)/n,y:u};r={x:(l-i)/n,y:l}}else if(d<m){if(a){if(a.x>=s)return}else a={x:o,y:n*o+i};r={\n", "x:s,y:n*s+i}}else{if(a){if(a.x<o)return}else a={x:s,y:n*s+i};r={x:o,y:n*o+i}}return t.a=a,t.b=r,!0}function Qr(t,e){this.l=t,this.r=e,this.a=this.b=null}function $r(t,e,r,n){var i=new Qr(t,e);return rl.push(i),r&&en(i,t,e,r),n&&en(i,e,t,n),nl[t.i].edges.push(new rn(i,t,e)),nl[e.i].edges.push(new rn(i,e,t)),i}function tn(t,e,r){var n=new Qr(t,null);return n.a=e,n.b=r,rl.push(n),n}function en(t,e,r,n){t.a||t.b?t.l===r?t.b=n:t.a=n:(t.a=n,t.l=e,t.r=r)}function rn(t,e,r){var n=t.a,i=t.b;this.edge=t,this.site=e,this.angle=r?Math.atan2(r.y-e.y,r.x-e.x):t.l===e?Math.atan2(i.x-n.x,n.y-i.y):Math.atan2(n.x-i.x,i.y-n.y)}function nn(){this._=null}function an(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function on(t,e){var r=e,n=e.R,i=r.U;i?i.L===r?i.L=n:i.R=n:t._=n,n.U=i,r.U=n,r.R=n.L,r.R&&(r.R.U=r),n.L=r}function sn(t,e){var r=e,n=e.L,i=r.U;i?i.L===r?i.L=n:i.R=n:t._=n,n.U=i,r.U=n,r.L=n.R,r.L&&(r.L.U=r),n.R=r}function ln(t){for(;t.L;)t=t.L;return t}function un(t,e){var r,n,i,a=t.sort(cn).pop();for(rl=[],nl=new Array(t.length),il=new nn,ol=new nn;;)if(i=al,a&&(!i||a.y<i.y||a.y===i.y&&a.x<i.x))a.x===r&&a.y===n||(nl[a.i]=new qr(a),Ur(a),r=a.x,n=a.y),a=t.pop();else{if(!i)break;Br(i.arc)}e&&(Jr(e),Gr(e));var o={cells:nl,edges:rl};return il=ol=rl=nl=null,o}function cn(t,e){return e.y-t.y||e.x-t.x}function hn(t,e,r){return(t.x-r.x)*(e.y-t.y)-(t.x-e.x)*(r.y-t.y)}function fn(t){return t.x}function dn(t){return t.y}function pn(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function mn(t,e,r,n,i,a){if(!t(e,r,n,i,a)){var o=.5*(r+i),s=.5*(n+a),l=e.nodes;l[0]&&mn(t,l[0],r,n,o,s),l[1]&&mn(t,l[1],o,n,i,s),l[2]&&mn(t,l[2],r,s,o,a),l[3]&&mn(t,l[3],o,s,i,a)}}function vn(t,e,r,n,i,a,o){var s,l=1/0;return function t(u,c,h,f,d){if(!(c>a||h>o||f<n||d<i)){if(p=u.point){var p,m=e-u.x,v=r-u.y,g=m*m+v*v;if(g<l){var y=Math.sqrt(l=g);n=e-y,i=r-y,a=e+y,o=r+y,s=p}}for(var b=u.nodes,x=.5*(c+f),_=.5*(h+d),w=e>=x,M=r>=_,k=M<<1|w,A=k+4;k<A;++k)if(u=b[3&k])switch(3&k){case 0:t(u,c,h,x,_);break;case 1:t(u,x,h,f,_);break;case 2:t(u,c,_,x,d);break;case 3:t(u,x,_,f,d)}}}(t,n,i,a,o),s}function gn(t,e){t=uo.rgb(t),e=uo.rgb(e);var r=t.r,n=t.g,i=t.b,a=e.r-r,o=e.g-n,s=e.b-i;return function(t){return\"#\"+wt(Math.round(r+a*t))+wt(Math.round(n+o*t))+wt(Math.round(i+s*t))}}function yn(t,e){var r,n={},i={};for(r in t)r in e?n[r]=_n(t[r],e[r]):i[r]=t[r];for(r in e)r in t||(i[r]=e[r]);return function(t){for(r in n)i[r]=n[r](t);return i}}function bn(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}function xn(t,e){var r,n,i,a=cl.lastIndex=hl.lastIndex=0,o=-1,s=[],l=[];for(t+=\"\",e+=\"\";(r=cl.exec(t))&&(n=hl.exec(e));)(i=n.index)>a&&(i=e.slice(a,i),s[o]?s[o]+=i:s[++o]=i),(r=r[0])===(n=n[0])?s[o]?s[o]+=n:s[++o]=n:(s[++o]=null,l.push({i:o,x:bn(r,n)})),a=hl.lastIndex;return a<e.length&&(i=e.slice(a),s[o]?s[o]+=i:s[++o]=i),s.length<2?l[0]?(e=l[0].x,function(t){return e(t)+\"\"}):function(){return e}:(e=l.length,function(t){for(var r,n=0;n<e;++n)s[(r=l[n]).i]=r.x(t);return s.join(\"\")})}function _n(t,e){for(var r,n=uo.interpolators.length;--n>=0&&!(r=uo.interpolators[n](t,e)););return r}function wn(t,e){var r,n=[],i=[],a=t.length,o=e.length,s=Math.min(t.length,e.length);for(r=0;r<s;++r)n.push(_n(t[r],e[r]));for(;r<a;++r)i[r]=t[r];for(;r<o;++r)i[r]=e[r];return function(t){for(r=0;r<s;++r)i[r]=n[r](t);return i}}function Mn(t){return function(e){return e<=0?0:e>=1?1:t(e)}}function kn(t){return function(e){return 1-t(1-e)}}function An(t){return function(e){return.5*(e<.5?t(2*e):2-t(2-2*e))}}function Tn(t){return t*t}function Sn(t){return t*t*t}function En(t){if(t<=0)return 0;if(t>=1)return 1;var e=t*t,r=e*t;return 4*(t<.5?r:3*(t-e)+r-.75)}function Ln(t){return function(e){return Math.pow(e,t)}}function Cn(t){return 1-Math.cos(t*Vo)}function In(t){return Math.pow(2,10*(t-1))}function zn(t){return 1-Math.sqrt(1-t*t)}function Dn(t,e){var r;return arguments.length<2&&(e=.45),arguments.length?r=e/Bo*Math.asin(1/t):(t=1,r=e/4),function(n){return 1+t*Math.pow(2,-10*n)*Math.sin((n-r)*Bo/e)}}function Pn(t){return t||(t=1.70158),function(e){return e*e*((t+1)*e-t)}}function On(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}function Rn(t,e){t=uo.hcl(t),e=uo.hcl(e);var r=t.h,n=t.c,i=t.l,a=e.h-r,o=e.c-n,s=e.l-i;return isNaN(o)&&(o=0,n=isNaN(n)?e.c:n),isNaN(a)?(a=0,r=isNaN(r)?e.h:r):a>180?a-=360:a<-180&&(a+=360),function(t){return ft(r+a*t,n+o*t,i+s*t)+\"\"}}function Fn(t,e){t=uo.hsl(t),e=uo.hsl(e);var r=t.h,n=t.s,i=t.l,a=e.h-r,o=e.s-n,s=e.l-i;return isNaN(o)&&(o=0,n=isNaN(n)?e.s:n),isNaN(a)?(a=0,r=isNaN(r)?e.h:r):a>180?a-=360:a<-180&&(a+=360),function(t){return ct(r+a*t,n+o*t,i+s*t)+\"\"}}function jn(t,e){t=uo.lab(t),e=uo.lab(e);var r=t.l,n=t.a,i=t.b,a=e.l-r,o=e.a-n,s=e.b-i;return function(t){return pt(r+a*t,n+o*t,i+s*t)+\"\"}}function Nn(t,e){return e-=t,function(r){return Math.round(t+e*r)}}function Bn(t){var e=[t.a,t.b],r=[t.c,t.d],n=Vn(e),i=Un(e,r),a=Vn(Hn(r,e,-i))||0;e[0]*r[1]<r[0]*e[1]&&(e[0]*=-1,e[1]*=-1,n*=-1,i*=-1),this.rotate=(n?Math.atan2(e[1],e[0]):Math.atan2(-r[0],r[1]))*qo,this.translate=[t.e,t.f],this.scale=[n,a],this.skew=a?Math.atan2(i,a)*qo:0}function Un(t,e){return t[0]*e[0]+t[1]*e[1]}function Vn(t){var e=Math.sqrt(Un(t,t));return e&&(t[0]/=e,t[1]/=e),e}function Hn(t,e,r){return t[0]+=r*e[0],t[1]+=r*e[1],t}function qn(t){return t.length?t.pop()+\",\":\"\"}function Gn(t,e,r,n){if(t[0]!==e[0]||t[1]!==e[1]){var i=r.push(\"translate(\",null,\",\",null,\")\");n.push({i:i-4,x:bn(t[0],e[0])},{i:i-2,x:bn(t[1],e[1])})}else(e[0]||e[1])&&r.push(\"translate(\"+e+\")\")}function Yn(t,e,r,n){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),n.push({i:r.push(qn(r)+\"rotate(\",null,\")\")-2,x:bn(t,e)})):e&&r.push(qn(r)+\"rotate(\"+e+\")\")}function Wn(t,e,r,n){t!==e?n.push({i:r.push(qn(r)+\"skewX(\",null,\")\")-2,x:bn(t,e)}):e&&r.push(qn(r)+\"skewX(\"+e+\")\")}function Xn(t,e,r,n){if(t[0]!==e[0]||t[1]!==e[1]){var i=r.push(qn(r)+\"scale(\",null,\",\",null,\")\");n.push({i:i-4,x:bn(t[0],e[0])},{i:i-2,x:bn(t[1],e[1])})}else 1===e[0]&&1===e[1]||r.push(qn(r)+\"scale(\"+e+\")\")}function Zn(t,e){var r=[],n=[];return t=uo.transform(t),e=uo.transform(e),Gn(t.translate,e.translate,r,n),Yn(t.rotate,e.rotate,r,n),Wn(t.skew,e.skew,r,n),Xn(t.scale,e.scale,r,n),t=e=null,function(t){for(var e,i=-1,a=n.length;++i<a;)r[(e=n[i]).i]=e.x(t);return r.join(\"\")}}function Jn(t,e){return e=(e-=t=+t)||1/e,function(r){return(r-t)/e}}function Kn(t,e){return e=(e-=t=+t)||1/e,function(r){return Math.max(0,Math.min(1,(r-t)/e))}}function Qn(t){for(var e=t.source,r=t.target,n=ti(e,r),i=[e];e!==n;)e=e.parent,i.push(e);for(var a=i.length;r!==n;)i.splice(a,0,r),r=r.parent;return i}function $n(t){for(var e=[],r=t.parent;null!=r;)e.push(t),t=r,r=r.parent;return e.push(t),e}function ti(t,e){if(t===e)return t;for(var r=$n(t),n=$n(e),i=r.pop(),a=n.pop(),o=null;i===a;)o=i,i=r.pop(),a=n.pop();return o}function ei(t){t.fixed|=2}function ri(t){t.fixed&=-7}function ni(t){t.fixed|=4,t.px=t.x,t.py=t.y}function ii(t){t.fixed&=-5}function ai(t,e,r){var n=0,i=0;if(t.charge=0,!t.leaf)for(var a,o=t.nodes,s=o.length,l=-1;++l<s;)null!=(a=o[l])&&(ai(a,e,r),t.charge+=a.charge,n+=a.charge*a.cx,i+=a.charge*a.cy);if(t.point){t.leaf||(t.point.x+=Math.random()-.5,t.point.y+=Math.random()-.5);var u=e*r[t.point.index];t.charge+=t.pointCharge=u,n+=u*t.point.x,i+=u*t.point.y}t.cx=n/t.charge,t.cy=i/t.charge}function oi(t,e){return uo.rebind(t,e,\"sort\",\"children\",\"value\"),t.nodes=t,t.links=fi,t}function si(t,e){for(var r=[t];null!=(t=r.pop());)if(e(t),(i=t.children)&&(n=i.length))for(var n,i;--n>=0;)r.push(i[n])}function li(t,e){for(var r=[t],n=[];null!=(t=r.pop());)if(n.push(t),(a=t.children)&&(i=a.length))for(var i,a,o=-1;++o<i;)r.push(a[o]);for(;null!=(t=n.pop());)e(t)}function ui(t){return t.children}function ci(t){return t.value}function hi(t,e){return e.value-t.value}function fi(t){return uo.merge(t.map(function(t){return(t.children||[]).map(function(e){return{source:t,target:e}})}))}function di(t){return t.x}function pi(t){return t.y}function mi(t,e,r){t.y0=e,t.y=r}function vi(t){return uo.range(t.length)}function gi(t){for(var e=-1,r=t[0].length,n=[];++e<r;)n[e]=0;return n}function yi(t){for(var e,r=1,n=0,i=t[0][1],a=t.length;r<a;++r)(e=t[r][1])>i&&(n=r,i=e);return n}function bi(t){return t.reduce(xi,0)}function xi(t,e){return t+e[1]}function _i(t,e){return wi(t,Math.ceil(Math.log(e.length)/Math.LN2+1))}function wi(t,e){for(var r=-1,n=+t[0],i=(t[1]-n)/e,a=[];++r<=e;)a[r]=i*r+n;return a}function Mi(t){return[uo.min(t),uo.max(t)]}function ki(t,e){return t.value-e.value}function Ai(t,e){var r=t._pack_next;t._pack_next=e,e._pack_prev=t,e._pack_next=r,r._pack_prev=e}function Ti(t,e){t._pack_next=e,e._pack_prev=t}function Si(t,e){var r=e.x-t.x,n=e.y-t.y,i=t.r+e.r;return.999*i*i>r*r+n*n}function Ei(t){function e(t){c=Math.min(t.x-t.r,c),h=Math.max(t.x+t.r,h),f=Math.min(t.y-t.r,f),d=Math.max(t.y+t.r,d)}if((r=t.children)&&(u=r.length)){var r,n,i,a,o,s,l,u,c=1/0,h=-1/0,f=1/0,d=-1/0;if(r.forEach(Li),n=r[0],n.x=-n.r,n.y=0,e(n),u>1&&(i=r[1],i.x=i.r,i.y=0,e(i),u>2))for(a=r[2],zi(n,i,a),e(a),Ai(n,a),n._pack_prev=a,Ai(a,i),i=n._pack_next,o=3;o<u;o++){zi(n,i,a=r[o]);var p=0,m=1,v=1;for(s=i._pack_next;s!==i;s=s._pack_next,m++)if(Si(s,a)){p=1;break}if(1==p)for(l=n._pack_prev;l!==s._pack_prev&&!Si(l,a);l=l._pack_prev,v++);p?(m<v||m==v&&i.r<n.r?Ti(n,i=s):Ti(n=l,i),o--):(Ai(n,a),i=a,e(a))}var g=(c+h)/2,y=(f+d)/2,b=0;for(o=0;o<u;o++)a=r[o],a.x-=g,a.y-=y,b=Math.max(b,a.r+Math.sqrt(a.x*a.x+a.y*a.y));t.r=b,r.forEach(Ci)}}function Li(t){t._pack_next=t._pack_prev=t}function Ci(t){delete t._pack_next,delete t._pack_prev}function Ii(t,e,r,n){var i=t.children;if(t.x=e+=n*t.x,t.y=r+=n*t.y,t.r*=n,i)for(var a=-1,o=i.length;++a<o;)Ii(i[a],e,r,n)}function zi(t,e,r){var n=t.r+r.r,i=e.x-t.x,a=e.y-t.y;if(n&&(i||a)){var o=e.r+r.r,s=i*i+a*a;o*=o,n*=n;var l=.5+(n-o)/(2*s),u=Math.sqrt(Math.max(0,2*o*(n+s)-(n-=s)*n-o*o))/(2*s);r.x=t.x+l*i+u*a,r.y=t.y+l*a-u*i}else r.x=t.x+n,r.y=t.y}function Di(t,e){return t.parent==e.parent?1:2}function Pi(t){var e=t.children;return e.length?e[0]:t.t}function Oi(t){var e,r=t.children;return(e=r.length)?r[e-1]:t.t}function Ri(t,e,r){var n=r/(e.i-t.i);e.c-=n,e.s+=r,t.c+=n,e.z+=r,e.m+=r}function Fi(t){for(var e,r=0,n=0,i=t.children,a=i.length;--a>=0;)e=i[a],e.z+=r,e.m+=r,r+=e.s+(n+=e.c)}function ji(t,e,r){return t.a.parent===e.parent?t.a:r}function Ni(t){return 1+uo.max(t,function(t){return t.y})}function Bi(t){return t.reduce(function(t,e){return t+e.x},0)/t.length}function Ui(t){var e=t.children;return e&&e.length?Ui(e[0]):t}function Vi(t){var e,r=t.children;return r&&(e=r.length)?Vi(r[e-1]):t}function Hi(t){return{x:t.x,y:t.y,dx:t.dx,dy:t.dy}}function qi(t,e){var r=t.x+e[3],n=t.y+e[0],i=t.dx-e[1]-e[3],a=t.dy-e[0]-e[2];return i<0&&(r+=i/2,i=0),a<0&&(n+=a/2,a=0),{x:r,y:n,dx:i,dy:a}}function Gi(t){var e=t[0],r=t[t.length-1];return e<r?[e,r]:[r,e]}function Yi(t){return t.rangeExtent?t.rangeExtent():Gi(t.range())}function Wi(t,e,r,n){var i=r(t[0],t[1]),a=n(e[0],e[1]);return function(t){return a(i(t))}}function Xi(t,e){var r,n=0,i=t.length-1,a=t[n],o=t[i];return o<a&&(r=n,n=i,i=r,r=a,a=o,o=r),t[n]=e.floor(a),t[i]=e.ceil(o),t}function Zi(t){return t?{floor:function(e){return Math.floor(e/t)*t},ceil:function(e){return Math.ceil(e/t)*t}}:wl}function Ji(t,e,r,n){var i=[],a=[],o=0,s=Math.min(t.length,e.length)-1;for(t[s]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++o<=s;)i.push(r(t[o-1],t[o])),a.push(n(e[o-1],e[o]));return function(e){var r=uo.bisect(t,e,1,s)-1;return a[r](i[r](e))}}function Ki(t,e,r,n){function i(){var i=Math.min(t.length,e.length)>2?Ji:Wi,l=n?Kn:Jn;return o=i(t,e,l,r),s=i(e,t,l,_n),a}function a(t){return o(t)}var o,s;return a.invert=function(t){return s(t)},a.domain=function(e){return arguments.length?(t=e.map(Number),i()):t},a.range=function(t){return arguments.length?(e=t,i()):e},a.rangeRound=function(t){return a.range(t).interpolate(Nn)},a.clamp=function(t){return arguments.length?(n=t,i()):n},a.interpolate=function(t){return arguments.length?(r=t,i()):r},a.ticks=function(e){return ea(t,e)},a.tickFormat=function(e,r){return ra(t,e,r)},a.nice=function(e){return $i(t,e),i()},a.copy=function(){return Ki(t,e,r,n)},i()}function Qi(t,e){return uo.rebind(t,e,\"range\",\"rangeRound\",\"interpolate\",\"clamp\")}function $i(t,e){return Xi(t,Zi(ta(t,e)[2])),Xi(t,Zi(ta(t,e)[2])),t}function ta(t,e){null==e&&(e=10);var r=Gi(t),n=r[1]-r[0],i=Math.pow(10,Math.floor(Math.log(n/e)/Math.LN10)),a=e/n*i;return a<=.15?i*=10:a<=.35?i*=5:a<=.75&&(i*=2),r[0]=Math.ceil(r[0]/i)*i,r[1]=Math.floor(r[1]/i)*i+.5*i,r[2]=i,r}function ea(t,e){return uo.range.apply(uo,ta(t,e))}function ra(t,e,r){var n=ta(t,e);if(r){var i=cs.exec(r);if(i.shift(),\"s\"===i[8]){var a=uo.formatPrefix(Math.max(xo(n[0]),xo(n[1])));return i[7]||(i[7]=\".\"+na(a.scale(n[2]))),i[8]=\"f\",r=uo.format(i.join(\"\")),function(t){return r(a.scale(t))+a.symbol}}i[7]||(i[7]=\".\"+ia(i[8],n)),r=i.join(\"\")}else r=\",.\"+na(n[2])+\"f\";return uo.format(r)}function na(t){return-Math.floor(Math.log(t)/Math.LN10+.01)}function ia(t,e){var r=na(e[2]);return t in Ml?Math.abs(r-na(Math.max(xo(e[0]),xo(e[1]))))+ +(\"e\"!==t):r-2*(\"%\"===t)}function aa(t,e,r,n){function i(t){return(r?Math.log(t<0?0:t):-Math.log(t>0?0:-t))/Math.log(e)}function a(t){return r?Math.pow(e,t):-Math.pow(e,-t)}function o(e){return t(i(e))}return o.invert=function(e){return a(t.invert(e))},o.domain=function(e){return arguments.length?(r=e[0]>=0,t.domain((n=e.map(Number)).map(i)),o):n},o.base=function(r){return arguments.length?(e=+r,t.domain(n.map(i)),o):e},o.nice=function(){var e=Xi(n.map(i),r?Math:Al);return t.domain(e),n=e.map(a),o},o.ticks=function(){var t=Gi(n),o=[],s=t[0],l=t[1],u=Math.floor(i(s)),c=Math.ceil(i(l)),h=e%1?2:e;if(isFinite(c-u)){if(r){for(;u<c;u++)for(var f=1;f<h;f++)o.push(a(u)*f);o.push(a(u))}else for(o.push(a(u));u++<c;)for(var f=h-1;f>0;f--)o.push(a(u)*f);for(u=0;o[u]<s;u++);for(c=o.length;o[c-1]>l;c--);o=o.slice(u,c)}return o},o.tickFormat=function(t,r){if(!arguments.length)return kl;arguments.length<2?r=kl:\"function\"!=typeof r&&(r=uo.format(r));var n=Math.max(1,e*t/o.ticks().length);return function(t){var o=t/a(Math.round(i(t)));return o*e<e-.5&&(o*=e),o<=n?r(t):\"\"}},o.copy=function(){return aa(t.copy(),e,r,n)},Qi(o,t)}function oa(t,e,r){function n(e){return t(i(e))}var i=sa(e),a=sa(1/e);return n.invert=function(e){return a(t.invert(e))},n.domain=function(e){return arguments.length?(t.domain((r=e.map(Number)).map(i)),n):r},n.ticks=function(t){return ea(r,t)},n.tickFormat=function(t,e){return ra(r,t,e)},n.nice=function(t){return n.domain($i(r,t))},n.exponent=function(o){return arguments.length?(i=sa(e=o),a=sa(1/e),t.domain(r.map(i)),n):e},n.copy=function(){return oa(t.copy(),e,r)},Qi(n,t)}function sa(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function la(t,e){function r(r){return a[((i.get(r)||(\"range\"===e.t?i.set(r,t.push(r)):NaN))-1)%a.length]}function n(e,r){return uo.range(t.length).map(function(t){return e+r*t})}var i,a,o;return r.domain=function(n){if(!arguments.length)return t;t=[],i=new h;for(var a,o=-1,s=n.length;++o<s;)i.has(a=n[o])||i.set(a,t.push(a));return r[e.t].apply(r,e.a)},r.range=function(t){return arguments.length?(a=t,o=0,e={t:\"range\",a:arguments},r):a},r.rangePoints=function(i,s){arguments.length<2&&(s=0);var l=i[0],u=i[1],c=t.length<2?(l=(l+u)/2,0):(u-l)/(t.length-1+s);return a=n(l+c*s/2,c),o=0,e={t:\"rangePoints\",a:arguments},r},r.rangeRoundPoints=function(i,s){arguments.length<2&&(s=0);var l=i[0],u=i[1],c=t.length<2?(l=u=Math.round((l+u)/2),0):(u-l)/(t.length-1+s)|0;return a=n(l+Math.round(c*s/2+(u-l-(t.length-1+s)*c)/2),c),o=0,e={t:\"rangeRoundPoints\",a:arguments},r},r.rangeBands=function(i,s,l){arguments.length<2&&(s=0),arguments.length<3&&(l=s);var u=i[1]<i[0],c=i[u-0],h=i[1-u],f=(h-c)/(t.length-s+2*l);return a=n(c+f*l,f),u&&a.reverse(),o=f*(1-s),e={t:\"rangeBands\",a:arguments},r},r.rangeRoundBands=function(i,s,l){arguments.length<2&&(s=0),arguments.length<3&&(l=s);var u=i[1]<i[0],c=i[u-0],h=i[1-u],f=Math.floor((h-c)/(t.length-s+2*l));return a=n(c+Math.round((h-c-(t.length-s)*f)/2),f),u&&a.reverse(),o=Math.round(f*(1-s)),e={t:\"rangeRoundBands\",a:arguments},r},r.rangeBand=function(){return o},r.rangeExtent=function(){return Gi(e.a[0])},r.copy=function(){return la(t,e)},r.domain(t)}function ua(t,e){function r(){var r=0,i=e.length;for(s=[];++r<i;)s[r-1]=uo.quantile(t,r/i);return n}function n(t){if(!isNaN(t=+t))return e[uo.bisect(s,t)]}var s;return n.domain=function(e){return arguments.length?(t=e.map(a).filter(o).sort(i),r()):t},n.range=function(t){return arguments.length?(e=t,r()):e},n.quantiles=function(){return s},n.invertExtent=function(r){return r=e.indexOf(r),r<0?[NaN,NaN]:[r>0?s[r-1]:t[0],r<s.length?s[r]:t[t.length-1]]},n.copy=function(){return ua(t,e)},r()}function ca(t,e,r){function n(e){return r[Math.max(0,Math.min(o,Math.floor(a*(e-t))))]}function i(){return a=r.length/(e-t),o=r.length-1,n}var a,o;return n.domain=function(r){return arguments.length?(t=+r[0],e=+r[r.length-1],i()):[t,e]},n.range=function(t){return arguments.length?(r=t,i()):r},n.invertExtent=function(e){return e=r.indexOf(e),e=e<0?NaN:e/a+t,[e,e+1/a]},n.copy=function(){return ca(t,e,r)},i()}function ha(t,e){function r(r){if(r<=r)return e[uo.bisect(t,r)]}return r.domain=function(e){return arguments.length?(t=e,r):t},r.range=function(t){return arguments.length?(e=t,r):e},r.invertExtent=function(r){return r=e.indexOf(r),[t[r-1],t[r]]},r.copy=function(){return ha(t,e)},r}function fa(t){function e(t){return+t}return e.invert=e,e.domain=e.range=function(r){return arguments.length?(t=r.map(e),e):t},e.ticks=function(e){return ea(t,e)},e.tickFormat=function(e,r){return ra(t,e,r)},e.copy=function(){return fa(t)},e}function da(){return 0}function pa(t){return t.innerRadius}function ma(t){return t.outerRadius}function va(t){return t.startAngle}function ga(t){return t.endAngle}function ya(t){return t&&t.padAngle}function ba(t,e,r,n){return(t-r)*e-(e-n)*t>0?0:1}function xa(t,e,r,n,i){var a=t[0]-e[0],o=t[1]-e[1],s=(i?n:-n)/Math.sqrt(a*a+o*o),l=s*o,u=-s*a,c=t[0]+l,h=t[1]+u,f=e[0]+l,d=e[1]+u,p=(c+f)/2,m=(h+d)/2,v=f-c,g=d-h,y=v*v+g*g,b=r-n,x=c*d-f*h,_=(g<0?-1:1)*Math.sqrt(Math.max(0,b*b*y-x*x)),w=(x*g-v*_)/y,M=(-x*v-g*_)/y,k=(x*g+v*_)/y,A=(-x*v+g*_)/y,T=w-p,S=M-m,E=k-p,L=A-m;return T*T+S*S>E*E+L*L&&(w=k,M=A),[[w-l,M-u],[w*r/b,M*r/b]]}function _a(t){function e(e){function o(){u.push(\"M\",a(t(c),s))}for(var l,u=[],c=[],h=-1,f=e.length,d=Et(r),p=Et(n);++h<f;)i.call(this,l=e[h],h)?c.push([+d.call(this,l,h),+p.call(this,l,h)]):c.length&&(o(),c=[]);return c.length&&o(),u.length?u.join(\"\"):null}var r=Cr,n=Ir,i=Ie,a=wa,o=a.key,s=.7;return e.x=function(t){return arguments.length?(r=t,e):r},e.y=function(t){return arguments.length?(n=t,e):n},e.defined=function(t){return arguments.length?(i=t,e):i},e.interpolate=function(t){return arguments.length?(o=\"function\"==typeof t?a=t:(a=Il.get(t)||wa).key,e):o},e.tension=function(t){return arguments.length?(s=t,e):s},e}function wa(t){return t.length>1?t.join(\"L\"):t+\"Z\"}function Ma(t){return t.join(\"L\")+\"Z\"}function ka(t){for(var e=0,r=t.length,n=t[0],i=[n[0],\",\",n[1]];++e<r;)i.push(\"H\",(n[0]+(n=t[e])[0])/2,\"V\",n[1]);return r>1&&i.push(\"H\",n[0]),i.join(\"\")}function Aa(t){for(var e=0,r=t.length,n=t[0],i=[n[0],\",\",n[1]];++e<r;)i.push(\"V\",(n=t[e])[1],\"H\",n[0]);return i.join(\"\")}function Ta(t){for(var e=0,r=t.length,n=t[0],i=[n[0],\",\",n[1]];++e<r;)i.push(\"H\",(n=t[e])[0],\"V\",n[1]);return i.join(\"\")}function Sa(t,e){return t.length<4?wa(t):t[1]+Ca(t.slice(1,-1),Ia(t,e))}function Ea(t,e){return t.length<3?Ma(t):t[0]+Ca((t.push(t[0]),t),Ia([t[t.length-2]].concat(t,[t[1]]),e))}function La(t,e){return t.length<3?wa(t):t[0]+Ca(t,Ia(t,e))}function Ca(t,e){if(e.length<1||t.length!=e.length&&t.length!=e.length+2)return wa(t);var r=t.length!=e.length,n=\"\",i=t[0],a=t[1],o=e[0],s=o,l=1;if(r&&(n+=\"Q\"+(a[0]-2*o[0]/3)+\",\"+(a[1]-2*o[1]/3)+\",\"+a[0]+\",\"+a[1],i=t[1],l=2),e.length>1){s=e[1],a=t[l],l++,n+=\"C\"+(i[0]+o[0])+\",\"+(i[1]+o[1])+\",\"+(a[0]-s[0])+\",\"+(a[1]-s[1])+\",\"+a[0]+\",\"+a[1];for(var u=2;u<e.length;u++,l++)a=t[l],s=e[u],n+=\"S\"+(a[0]-s[0])+\",\"+(a[1]-s[1])+\",\"+a[0]+\",\"+a[1]}if(r){var c=t[l];n+=\"Q\"+(a[0]+2*s[0]/3)+\",\"+(a[1]+2*s[1]/3)+\",\"+c[0]+\",\"+c[1]}return n}function Ia(t,e){for(var r,n=[],i=(1-e)/2,a=t[0],o=t[1],s=1,l=t.length;++s<l;)r=a,a=o,o=t[s],n.push([i*(o[0]-r[0]),i*(o[1]-r[1])]);return n}function za(t){if(t.length<3)return wa(t);var e=1,r=t.length,n=t[0],i=n[0],a=n[1],o=[i,i,i,(n=t[1])[0]],s=[a,a,a,n[1]],l=[i,\",\",a,\"L\",Ra(Pl,o),\",\",Ra(Pl,s)];for(t.push(t[r-1]);++e<=r;)n=t[e],o.shift(),o.push(n[0]),s.shift(),s.push(n[1]),Fa(l,o,s);return t.pop(),l.push(\"L\",n),l.join(\"\")}function Da(t){if(t.length<4)return wa(t);for(var e,r=[],n=-1,i=t.length,a=[0],o=[0];++n<3;)e=t[n],a.push(e[0]),o.push(e[1]);for(r.push(Ra(Pl,a)+\",\"+Ra(Pl,o)),--n;++n<i;)e=t[n],a.shift(),a.push(e[0]),o.shift(),o.push(e[1]),Fa(r,a,o);return r.join(\"\")}function Pa(t){for(var e,r,n=-1,i=t.length,a=i+4,o=[],s=[];++n<4;)r=t[n%i],o.push(r[0]),s.push(r[1]);for(e=[Ra(Pl,o),\",\",Ra(Pl,s)],--n;++n<a;)r=t[n%i],o.shift(),o.push(r[0]),s.shift(),s.push(r[1]),Fa(e,o,s);return e.join(\"\")}function Oa(t,e){var r=t.length-1;if(r)for(var n,i,a=t[0][0],o=t[0][1],s=t[r][0]-a,l=t[r][1]-o,u=-1;++u<=r;)n=t[u],i=u/r,n[0]=e*n[0]+(1-e)*(a+i*s),n[1]=e*n[1]+(1-e)*(o+i*l);return za(t)}function Ra(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}function Fa(t,e,r){t.push(\"C\",Ra(zl,e),\",\",Ra(zl,r),\",\",Ra(Dl,e),\",\",Ra(Dl,r),\",\",Ra(Pl,e),\",\",Ra(Pl,r))}function ja(t,e){return(e[1]-t[1])/(e[0]-t[0])}function Na(t){for(var e=0,r=t.length-1,n=[],i=t[0],a=t[1],o=n[0]=ja(i,a);++e<r;)n[e]=(o+(o=ja(i=a,a=t[e+1])))/2;return n[e]=o,n}function Ba(t){for(var e,r,n,i,a=[],o=Na(t),s=-1,l=t.length-1;++s<l;)e=ja(t[s],t[s+1]),xo(e)<Fo?o[s]=o[s+1]=0:(r=o[s]/e,n=o[s+1]/e,(i=r*r+n*n)>9&&(i=3*e/Math.sqrt(i),o[s]=i*r,o[s+1]=i*n));for(s=-1;++s<=l;)i=(t[Math.min(l,s+1)][0]-t[Math.max(0,s-1)][0])/(6*(1+o[s]*o[s])),a.push([i||0,o[s]*i||0]);return a}function Ua(t){return t.length<3?wa(t):t[0]+Ca(t,Ba(t))}function Va(t){for(var e,r,n,i=-1,a=t.length;++i<a;)e=t[i],r=e[0],n=e[1]-Vo,e[0]=r*Math.cos(n),e[1]=r*Math.sin(n);return t}function Ha(t){function e(e){function l(){m.push(\"M\",s(t(g),h),c,u(t(v.reverse()),h),\"Z\")}for(var f,d,p,m=[],v=[],g=[],y=-1,b=e.length,x=Et(r),_=Et(i),w=r===n?function(){return d}:Et(n),M=i===a?function(){return p}:Et(a);++y<b;)o.call(this,f=e[y],y)?(v.push([d=+x.call(this,f,y),p=+_.call(this,f,y)]),g.push([+w.call(this,f,y),+M.call(this,f,y)])):v.length&&(l(),v=[],g=[]);return v.length&&l(),m.length?m.join(\"\"):null}var r=Cr,n=Cr,i=0,a=Ir,o=Ie,s=wa,l=s.key,u=s,c=\"L\",h=.7;return e.x=function(t){return arguments.length?(r=n=t,e):n},e.x0=function(t){return arguments.length?(r=t,e):r},e.x1=function(t){return arguments.length?(n=t,e):n},e.y=function(t){return arguments.length?(i=a=t,e):a},e.y0=function(t){return arguments.length?(i=t,e):i},e.y1=function(t){return arguments.length?(a=t,e):a},e.defined=function(t){return arguments.length?(o=t,e):o},e.interpolate=function(t){return arguments.length?(l=\"function\"==typeof t?s=t:(s=Il.get(t)||wa).key,u=s.reverse||s,c=s.closed?\"M\":\"L\",e):l},e.tension=function(t){return arguments.length?(h=t,e):h},e}function qa(t){return t.radius}function Ga(t){return[t.x,t.y]}function Ya(t){return function(){var e=t.apply(this,arguments),r=e[0],n=e[1]-Vo;return[r*Math.cos(n),r*Math.sin(n)]}}function Wa(){return 64}function Xa(){return\"circle\"}function Za(t){var e=Math.sqrt(t/No);return\"M0,\"+e+\"A\"+e+\",\"+e+\" 0 1,1 0,\"+-e+\"A\"+e+\",\"+e+\" 0 1,1 0,\"+e+\"Z\"}function Ja(t){return function(){var e,r,n;(e=this[t])&&(n=e[r=e.active])&&(n.timer.c=null,n.timer.t=NaN,--e.count?delete e[r]:delete this[t],e.active+=.5,n.event&&n.event.interrupt.call(this,this.__data__,n.index))}}function Ka(t,e,r){return Ao(t,Ul),t.namespace=e,t.id=r,t}function Qa(t,e,r,n){var i=t.id,a=t.namespace;return G(t,\"function\"==typeof r?function(t,o,s){t[a][i].tween.set(e,n(r.call(t,t.__data__,o,s)))}:(r=n(r),function(t){t[a][i].tween.set(e,r)}))}function $a(t){return null==t&&(t=\"\"),function(){this.textContent=t}}function to(t){return null==t?\"__transition__\":\"__transition_\"+t+\"__\"}function eo(t,e,r,n,i){function a(t){var e=m.delay;if(u.t=e+l,e<=t)return o(t-e);u.c=o}function o(r){var i=p.active,a=p[i];a&&(a.timer.c=null,a.timer.t=NaN,--p.count,delete p[i],a.event&&a.event.interrupt.call(t,t.__data__,a.index));for(var o in p)if(+o<n){var h=p[o];h.timer.c=null,h.timer.t=NaN,--p.count,delete p[o]}u.c=s,Dt(function(){return u.c&&s(r||1)&&(u.c=null,u.t=NaN),1},0,l),p.active=n,m.event&&m.event.start.call(t,t.__data__,e),d=[],m.tween.forEach(function(r,n){(n=n.call(t,t.__data__,e))&&d.push(n)}),f=m.ease,c=m.duration}function s(i){for(var a=i/c,o=f(a),s=d.length;s>0;)d[--s].call(t,o);if(a>=1)return m.event&&m.event.end.call(t,t.__data__,e),--p.count?delete p[n]:delete t[r],1}var l,u,c,f,d,p=t[r]||(t[r]={active:0,count:0}),m=p[n];m||(l=i.time,u=Dt(a,0,l),m=p[n]={tween:new h,time:l,timer:u,delay:i.delay,duration:i.duration,ease:i.ease,index:e},i=null,++p.count)}function ro(t,e,r){t.attr(\"transform\",function(t){var n=e(t);return\"translate(\"+(isFinite(n)?n:r(t))+\",0)\"})}function no(t,e,r){t.attr(\"transform\",function(t){var n=e(t);return\"translate(0,\"+(isFinite(n)?n:r(t))+\")\"})}function io(t){return t.toISOString()}function ao(t,e,r){function n(e){return t(e)}function i(t,r){var n=t[1]-t[0],i=n/r,a=uo.bisect(Jl,i);return a==Jl.length?[e.year,ta(t.map(function(t){return t/31536e6}),r)[2]]:a?e[i/Jl[a-1]<Jl[a]/i?a-1:a]:[$l,ta(t,r)[2]]}return n.invert=function(e){return oo(t.invert(e))},n.domain=function(e){return arguments.length?(t.domain(e),n):t.domain().map(oo)},n.nice=function(t,e){function r(r){return!isNaN(r)&&!t.range(r,oo(+r+1),e).length}var a=n.domain(),o=Gi(a),s=null==t?i(o,10):\"number\"==typeof t&&i(o,t);return s&&(t=s[0],e=s[1]),n.domain(Xi(a,e>1?{floor:function(e){for(;r(e=t.floor(e));)e=oo(e-1);return e},ceil:function(e){for(;r(e=t.ceil(e));)e=oo(+e+1);return e}}:t))},n.ticks=function(t,e){var r=Gi(n.domain()),a=null==t?i(r,10):\"number\"==typeof t?i(r,t):!t.range&&[{range:t},e];return a&&(t=a[0],e=a[1]),t.range(r[0],oo(+r[1]+1),e<1?1:e)},n.tickFormat=function(){return r},n.copy=function(){return ao(t.copy(),e,r)},Qi(n,t)}function oo(t){return new Date(t)}function so(t){return JSON.parse(t.responseText)}function lo(t){var e=fo.createRange();return e.selectNode(fo.body),e.createContextualFragment(t.responseText)}var uo={version:\"3.5.17\"},co=[].slice,ho=function(t){return co.call(t)},fo=this.document;if(fo)try{ho(fo.documentElement.childNodes)[0].nodeType}catch(t){ho=function(t){for(var e=t.length,r=new Array(e);e--;)r[e]=t[e];return r}}if(Date.now||(Date.now=function(){return+new Date}),fo)try{fo.createElement(\"DIV\").style.setProperty(\"opacity\",0,\"\")}catch(t){var po=this.Element.prototype,mo=po.setAttribute,vo=po.setAttributeNS,go=this.CSSStyleDeclaration.prototype,yo=go.setProperty;po.setAttribute=function(t,e){mo.call(this,t,e+\"\")},po.setAttributeNS=function(t,e,r){vo.call(this,t,e,r+\"\")},go.setProperty=function(t,e,r){yo.call(this,t,e+\"\",r)}}uo.ascending=i,uo.descending=function(t,e){return e<t?-1:e>t?1:e>=t?0:NaN},uo.min=function(t,e){var r,n,i=-1,a=t.length;if(1===arguments.length){for(;++i<a;)if(null!=(n=t[i])&&n>=n){r=n;break}for(;++i<a;)null!=(n=t[i])&&r>n&&(r=n)}else{for(;++i<a;)if(null!=(n=e.call(t,t[i],i))&&n>=n){r=n;break}for(;++i<a;)null!=(n=e.call(t,t[i],i))&&r>n&&(r=n)}return r},uo.max=function(t,e){var r,n,i=-1,a=t.length;if(1===arguments.length){for(;++i<a;)if(null!=(n=t[i])&&n>=n){r=n;break}for(;++i<a;)null!=(n=t[i])&&n>r&&(r=n)}else{for(;++i<a;)if(null!=(n=e.call(t,t[i],i))&&n>=n){r=n;break}for(;++i<a;)null!=(n=e.call(t,t[i],i))&&n>r&&(r=n)}return r},uo.extent=function(t,e){var r,n,i,a=-1,o=t.length;if(1===arguments.length){for(;++a<o;)if(null!=(n=t[a])&&n>=n){r=i=n;break}for(;++a<o;)null!=(n=t[a])&&(r>n&&(r=n),i<n&&(i=n))}else{for(;++a<o;)if(null!=(n=e.call(t,t[a],a))&&n>=n){r=i=n;break}for(;++a<o;)null!=(n=e.call(t,t[a],a))&&(r>n&&(r=n),i<n&&(i=n))}return[r,i]},uo.sum=function(t,e){var r,n=0,i=t.length,a=-1;if(1===arguments.length)for(;++a<i;)o(r=+t[a])&&(n+=r);else for(;++a<i;)o(r=+e.call(t,t[a],a))&&(n+=r);return n},uo.mean=function(t,e){var r,n=0,i=t.length,s=-1,l=i;if(1===arguments.length)for(;++s<i;)o(r=a(t[s]))?n+=r:--l;else for(;++s<i;)o(r=a(e.call(t,t[s],s)))?n+=r:--l;if(l)return n/l},uo.quantile=function(t,e){var r=(t.length-1)*e+1,n=Math.floor(r),i=+t[n-1],a=r-n;return a?i+a*(t[n]-i):i},uo.median=function(t,e){var r,n=[],s=t.length,l=-1;if(1===arguments.length)for(;++l<s;)o(r=a(t[l]))&&n.push(r);else for(;++l<s;)o(r=a(e.call(t,t[l],l)))&&n.push(r);if(n.length)return uo.quantile(n.sort(i),.5)},uo.variance=function(t,e){var r,n,i=t.length,s=0,l=0,u=-1,c=0;if(1===arguments.length)for(;++u<i;)o(r=a(t[u]))&&(n=r-s,s+=n/++c,l+=n*(r-s));else for(;++u<i;)o(r=a(e.call(t,t[u],u)))&&(n=r-s,s+=n/++c,l+=n*(r-s));if(c>1)return l/(c-1)},uo.deviation=function(){var t=uo.variance.apply(this,arguments);return t?Math.sqrt(t):t};var bo=s(i);uo.bisectLeft=bo.left,uo.bisect=uo.bisectRight=bo.right,uo.bisector=function(t){return s(1===t.length?function(e,r){return i(t(e),r)}:t)},uo.shuffle=function(t,e,r){(a=arguments.length)<3&&(r=t.length,a<2&&(e=0));for(var n,i,a=r-e;a;)i=Math.random()*a--|0,n=t[a+e],t[a+e]=t[i+e],t[i+e]=n;return t},uo.permute=function(t,e){for(var r=e.length,n=new Array(r);r--;)n[r]=t[e[r]];return n},uo.pairs=function(t){for(var e=0,r=t.length-1,n=t[0],i=new Array(r<0?0:r);e<r;)i[e]=[n,n=t[++e]];return i},uo.transpose=function(t){if(!(i=t.length))return[];for(var e=-1,r=uo.min(t,l),n=new Array(r);++e<r;)for(var i,a=-1,o=n[e]=new Array(i);++a<i;)o[a]=t[a][e];return n},uo.zip=function(){return uo.transpose(arguments)},uo.keys=function(t){var e=[];for(var r in t)e.push(r);return e},uo.values=function(t){var e=[];for(var r in t)e.push(t[r]);return e},uo.entries=function(t){var e=[];for(var r in t)e.push({key:r,value:t[r]});return e},uo.merge=function(t){for(var e,r,n,i=t.length,a=-1,o=0;++a<i;)o+=t[a].length;for(r=new Array(o);--i>=0;)for(n=t[i],e=n.length;--e>=0;)r[--o]=n[e];return r};var xo=Math.abs;uo.range=function(t,e,r){if(arguments.length<3&&(r=1,arguments.length<2&&(e=t,t=0)),(e-t)/r==1/0)throw new Error(\"infinite range\");var n,i=[],a=u(xo(r)),o=-1;if(t*=a,e*=a,r*=a,r<0)for(;(n=t+r*++o)>e;)i.push(n/a);else for(;(n=t+r*++o)<e;)i.push(n/a);return i},uo.map=function(t,e){var r=new h;if(t instanceof h)t.forEach(function(t,e){r.set(t,e)});else if(Array.isArray(t)){var n,i=-1,a=t.length;if(1===arguments.length)for(;++i<a;)r.set(i,t[i]);else for(;++i<a;)r.set(e.call(t,n=t[i],i),n)}else for(var o in t)r.set(o,t[o]);return r};var _o=\"__proto__\",wo=\"\\0\";c(h,{has:p,get:function(t){return this._[f(t)]},set:function(t,e){return this._[f(t)]=e},remove:m,keys:v,values:function(){var t=[];for(var e in this._)t.push(this._[e]);return t},entries:function(){var t=[];for(var e in this._)t.push({key:d(e),value:this._[e]});return t},size:g,empty:y,forEach:function(t){for(var e in this._)t.call(this,d(e),this._[e])}}),uo.nest=function(){function t(e,o,s){if(s>=a.length)return n?n.call(i,o):r?o.sort(r):o;for(var l,u,c,f,d=-1,p=o.length,m=a[s++],v=new h;++d<p;)(f=v.get(l=m(u=o[d])))?f.push(u):v.set(l,[u]);return e?(u=e(),c=function(r,n){u.set(r,t(e,n,s))}):(u={},c=function(r,n){u[r]=t(e,n,s)}),v.forEach(c),u}function e(t,r){if(r>=a.length)return t;var n=[],i=o[r++];return t.forEach(function(t,i){n.push({key:t,values:e(i,r)})}),i?n.sort(function(t,e){return i(t.key,e.key)}):n}var r,n,i={},a=[],o=[];return i.map=function(e,r){return t(r,e,0)},i.entries=function(r){return e(t(uo.map,r,0),0)},i.key=function(t){return a.push(t),i},i.sortKeys=function(t){return o[a.length-1]=t,i},i.sortValues=function(t){return r=t,i},i.rollup=function(t){return n=t,i},i},uo.set=function(t){var e=new b;if(t)for(var r=0,n=t.length;r<n;++r)e.add(t[r]);return e},c(b,{has:p,add:function(t){return this._[f(t+=\"\")]=!0,t},remove:m,values:v,size:g,empty:y,forEach:function(t){for(var e in this._)t.call(this,d(e))}}),uo.behavior={},uo.rebind=function(t,e){\n", "for(var r,n=1,i=arguments.length;++n<i;)t[r=arguments[n]]=_(t,e,e[r]);return t};var Mo=[\"webkit\",\"ms\",\"moz\",\"Moz\",\"o\",\"O\"];uo.dispatch=function(){for(var t=new k,e=-1,r=arguments.length;++e<r;)t[arguments[e]]=A(t);return t},k.prototype.on=function(t,e){var r=t.indexOf(\".\"),n=\"\";if(r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),t)return arguments.length<2?this[t].on(n):this[t].on(n,e);if(2===arguments.length){if(null==e)for(t in this)this.hasOwnProperty(t)&&this[t].on(n,null);return this}},uo.event=null,uo.requote=function(t){return t.replace(ko,\"\\\\$&\")};var ko=/[\\\\\\^\\$\\*\\+\\?\\|\\[\\]\\(\\)\\.\\{\\}]/g,Ao={}.__proto__?function(t,e){t.__proto__=e}:function(t,e){for(var r in e)t[r]=e[r]},To=function(t,e){return e.querySelector(t)},So=function(t,e){return e.querySelectorAll(t)},Eo=function(t,e){var r=t.matches||t[w(t,\"matchesSelector\")];return(Eo=function(t,e){return r.call(t,e)})(t,e)};\"function\"==typeof Sizzle&&(To=function(t,e){return Sizzle(t,e)[0]||null},So=Sizzle,Eo=Sizzle.matchesSelector),uo.selection=function(){return uo.select(fo.documentElement)};var Lo=uo.selection.prototype=[];Lo.select=function(t){var e,r,n,i,a=[];t=C(t);for(var o=-1,s=this.length;++o<s;){a.push(e=[]),e.parentNode=(n=this[o]).parentNode;for(var l=-1,u=n.length;++l<u;)(i=n[l])?(e.push(r=t.call(i,i.__data__,l,o)),r&&\"__data__\"in i&&(r.__data__=i.__data__)):e.push(null)}return L(a)},Lo.selectAll=function(t){var e,r,n=[];t=I(t);for(var i=-1,a=this.length;++i<a;)for(var o=this[i],s=-1,l=o.length;++s<l;)(r=o[s])&&(n.push(e=ho(t.call(r,r.__data__,s,i))),e.parentNode=r);return L(n)};var Co=\"http://www.w3.org/1999/xhtml\",Io={svg:\"http://www.w3.org/2000/svg\",xhtml:Co,xlink:\"http://www.w3.org/1999/xlink\",xml:\"http://www.w3.org/XML/1998/namespace\",xmlns:\"http://www.w3.org/2000/xmlns/\"};uo.ns={prefix:Io,qualify:function(t){var e=t.indexOf(\":\"),r=t;return e>=0&&\"xmlns\"!==(r=t.slice(0,e))&&(t=t.slice(e+1)),Io.hasOwnProperty(r)?{space:Io[r],local:t}:t}},Lo.attr=function(t,e){if(arguments.length<2){if(\"string\"==typeof t){var r=this.node();return t=uo.ns.qualify(t),t.local?r.getAttributeNS(t.space,t.local):r.getAttribute(t)}for(e in t)this.each(z(e,t[e]));return this}return this.each(z(t,e))},Lo.classed=function(t,e){if(arguments.length<2){if(\"string\"==typeof t){var r=this.node(),n=(t=O(t)).length,i=-1;if(e=r.classList){for(;++i<n;)if(!e.contains(t[i]))return!1}else for(e=r.getAttribute(\"class\");++i<n;)if(!P(t[i]).test(e))return!1;return!0}for(e in t)this.each(R(e,t[e]));return this}return this.each(R(t,e))},Lo.style=function(t,e,r){var i=arguments.length;if(i<3){if(\"string\"!=typeof t){i<2&&(e=\"\");for(r in t)this.each(j(r,t[r],e));return this}if(i<2){var a=this.node();return n(a).getComputedStyle(a,null).getPropertyValue(t)}r=\"\"}return this.each(j(t,e,r))},Lo.property=function(t,e){if(arguments.length<2){if(\"string\"==typeof t)return this.node()[t];for(e in t)this.each(N(e,t[e]));return this}return this.each(N(t,e))},Lo.text=function(t){return arguments.length?this.each(\"function\"==typeof t?function(){var e=t.apply(this,arguments);this.textContent=null==e?\"\":e}:null==t?function(){this.textContent=\"\"}:function(){this.textContent=t}):this.node().textContent},Lo.html=function(t){return arguments.length?this.each(\"function\"==typeof t?function(){var e=t.apply(this,arguments);this.innerHTML=null==e?\"\":e}:null==t?function(){this.innerHTML=\"\"}:function(){this.innerHTML=t}):this.node().innerHTML},Lo.append=function(t){return t=B(t),this.select(function(){return this.appendChild(t.apply(this,arguments))})},Lo.insert=function(t,e){return t=B(t),e=C(e),this.select(function(){return this.insertBefore(t.apply(this,arguments),e.apply(this,arguments)||null)})},Lo.remove=function(){return this.each(U)},Lo.data=function(t,e){function r(t,r){var n,i,a,o=t.length,c=r.length,f=Math.min(o,c),d=new Array(c),p=new Array(c),m=new Array(o);if(e){var v,g=new h,y=new Array(o);for(n=-1;++n<o;)(i=t[n])&&(g.has(v=e.call(i,i.__data__,n))?m[n]=i:g.set(v,i),y[n]=v);for(n=-1;++n<c;)(i=g.get(v=e.call(r,a=r[n],n)))?!0!==i&&(d[n]=i,i.__data__=a):p[n]=V(a),g.set(v,!0);for(n=-1;++n<o;)n in y&&!0!==g.get(y[n])&&(m[n]=t[n])}else{for(n=-1;++n<f;)i=t[n],a=r[n],i?(i.__data__=a,d[n]=i):p[n]=V(a);for(;n<c;++n)p[n]=V(r[n]);for(;n<o;++n)m[n]=t[n]}p.update=d,p.parentNode=d.parentNode=m.parentNode=t.parentNode,s.push(p),l.push(d),u.push(m)}var n,i,a=-1,o=this.length;if(!arguments.length){for(t=new Array(o=(n=this[0]).length);++a<o;)(i=n[a])&&(t[a]=i.__data__);return t}var s=Y([]),l=L([]),u=L([]);if(\"function\"==typeof t)for(;++a<o;)r(n=this[a],t.call(n,n.parentNode.__data__,a));else for(;++a<o;)r(n=this[a],t);return l.enter=function(){return s},l.exit=function(){return u},l},Lo.datum=function(t){return arguments.length?this.property(\"__data__\",t):this.property(\"__data__\")},Lo.filter=function(t){var e,r,n,i=[];\"function\"!=typeof t&&(t=H(t));for(var a=0,o=this.length;a<o;a++){i.push(e=[]),e.parentNode=(r=this[a]).parentNode;for(var s=0,l=r.length;s<l;s++)(n=r[s])&&t.call(n,n.__data__,s,a)&&e.push(n)}return L(i)},Lo.order=function(){for(var t=-1,e=this.length;++t<e;)for(var r,n=this[t],i=n.length-1,a=n[i];--i>=0;)(r=n[i])&&(a&&a!==r.nextSibling&&a.parentNode.insertBefore(r,a),a=r);return this},Lo.sort=function(t){t=q.apply(this,arguments);for(var e=-1,r=this.length;++e<r;)this[e].sort(t);return this.order()},Lo.each=function(t){return G(this,function(e,r,n){t.call(e,e.__data__,r,n)})},Lo.call=function(t){var e=ho(arguments);return t.apply(e[0]=this,e),this},Lo.empty=function(){return!this.node()},Lo.node=function(){for(var t=0,e=this.length;t<e;t++)for(var r=this[t],n=0,i=r.length;n<i;n++){var a=r[n];if(a)return a}return null},Lo.size=function(){var t=0;return G(this,function(){++t}),t};var zo=[];uo.selection.enter=Y,uo.selection.enter.prototype=zo,zo.append=Lo.append,zo.empty=Lo.empty,zo.node=Lo.node,zo.call=Lo.call,zo.size=Lo.size,zo.select=function(t){for(var e,r,n,i,a,o=[],s=-1,l=this.length;++s<l;){n=(i=this[s]).update,o.push(e=[]),e.parentNode=i.parentNode;for(var u=-1,c=i.length;++u<c;)(a=i[u])?(e.push(n[u]=r=t.call(i.parentNode,a.__data__,u,s)),r.__data__=a.__data__):e.push(null)}return L(o)},zo.insert=function(t,e){return arguments.length<2&&(e=W(this)),Lo.insert.call(this,t,e)},uo.select=function(t){var r;return\"string\"==typeof t?(r=[To(t,fo)],r.parentNode=fo.documentElement):(r=[t],r.parentNode=e(t)),L([r])},uo.selectAll=function(t){var e;return\"string\"==typeof t?(e=ho(So(t,fo)),e.parentNode=fo.documentElement):(e=ho(t),e.parentNode=null),L([e])},Lo.on=function(t,e,r){var n=arguments.length;if(n<3){if(\"string\"!=typeof t){n<2&&(e=!1);for(r in t)this.each(X(r,t[r],e));return this}if(n<2)return(n=this.node()[\"__on\"+t])&&n._;r=!1}return this.each(X(t,e,r))};var Do=uo.map({mouseenter:\"mouseover\",mouseleave:\"mouseout\"});fo&&Do.forEach(function(t){\"on\"+t in fo&&Do.remove(t)});var Po,Oo=0;uo.mouse=function(t){return Q(t,S())};var Ro=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;uo.touch=function(t,e,r){if(arguments.length<3&&(r=e,e=S().changedTouches),e)for(var n,i=0,a=e.length;i<a;++i)if((n=e[i]).identifier===r)return Q(t,n)},uo.behavior.drag=function(){function t(){this.on(\"mousedown.drag\",a).on(\"touchstart.drag\",o)}function e(t,e,n,a,o){return function(){function s(){var t,r,n=e(f,m);n&&(t=n[0]-b[0],r=n[1]-b[1],p|=t|r,b=n,d({type:\"drag\",x:n[0]+u[0],y:n[1]+u[1],dx:t,dy:r}))}function l(){e(f,m)&&(g.on(a+v,null).on(o+v,null),y(p),d({type:\"dragend\"}))}var u,c=this,h=uo.event.target.correspondingElement||uo.event.target,f=c.parentNode,d=r.of(c,arguments),p=0,m=t(),v=\".drag\"+(null==m?\"\":\"-\"+m),g=uo.select(n(h)).on(a+v,s).on(o+v,l),y=K(h),b=e(f,m);i?(u=i.apply(c,arguments),u=[u.x-b[0],u.y-b[1]]):u=[0,0],d({type:\"dragstart\"})}}var r=E(t,\"drag\",\"dragstart\",\"dragend\"),i=null,a=e(M,uo.mouse,n,\"mousemove\",\"mouseup\"),o=e($,uo.touch,x,\"touchmove\",\"touchend\");return t.origin=function(e){return arguments.length?(i=e,t):i},uo.rebind(t,r,\"on\")},uo.touches=function(t,e){return arguments.length<2&&(e=S().touches),e?ho(e).map(function(e){var r=Q(t,e);return r.identifier=e.identifier,r}):[]};var Fo=1e-6,jo=Fo*Fo,No=Math.PI,Bo=2*No,Uo=Bo-Fo,Vo=No/2,Ho=No/180,qo=180/No,Go=Math.SQRT2;uo.interpolateZoom=function(t,e){var r,n,i=t[0],a=t[1],o=t[2],s=e[0],l=e[1],u=e[2],c=s-i,h=l-a,f=c*c+h*h;if(f<jo)n=Math.log(u/o)/Go,r=function(t){return[i+t*c,a+t*h,o*Math.exp(Go*t*n)]};else{var d=Math.sqrt(f),p=(u*u-o*o+4*f)/(2*o*2*d),m=(u*u-o*o-4*f)/(2*u*2*d),v=Math.log(Math.sqrt(p*p+1)-p),g=Math.log(Math.sqrt(m*m+1)-m);n=(g-v)/Go,r=function(t){var e=t*n,r=at(v),s=o/(2*d)*(r*ot(Go*e+v)-it(v));return[i+s*c,a+s*h,o*r/at(Go*e+v)]}}return r.duration=1e3*n,r},uo.behavior.zoom=function(){function t(t){t.on(I,h).on(Wo+\".zoom\",d).on(\"dblclick.zoom\",p).on(P,f)}function e(t){return[(t[0]-k.x)/k.k,(t[1]-k.y)/k.k]}function r(t){return[t[0]*k.k+k.x,t[1]*k.k+k.y]}function i(t){k.k=Math.max(S[0],Math.min(S[1],t))}function a(t,e){e=r(e),k.x+=t[0]-e[0],k.y+=t[1]-e[1]}function o(e,r,n,o){e.__chart__={x:k.x,y:k.y,k:k.k},i(Math.pow(2,o)),a(v=r,n),e=uo.select(e),L>0&&(e=e.transition().duration(L)),e.call(t.event)}function s(){_&&_.domain(x.range().map(function(t){return(t-k.x)/k.k}).map(x.invert)),M&&M.domain(w.range().map(function(t){return(t-k.y)/k.k}).map(w.invert))}function l(t){C++||t({type:\"zoomstart\"})}function u(t){s(),t({type:\"zoom\",scale:k.k,translate:[k.x,k.y]})}function c(t){--C||(t({type:\"zoomend\"}),v=null)}function h(){function t(){s=1,a(uo.mouse(i),f),u(o)}function r(){h.on(z,null).on(D,null),d(s),c(o)}var i=this,o=O.of(i,arguments),s=0,h=uo.select(n(i)).on(z,t).on(D,r),f=e(uo.mouse(i)),d=K(i);Bl.call(i),l(o)}function f(){function t(){var t=uo.touches(p);return d=k.k,t.forEach(function(t){t.identifier in v&&(v[t.identifier]=e(t))}),t}function r(){var e=uo.event.target;uo.select(e).on(x,n).on(_,s),w.push(e);for(var r=uo.event.changedTouches,i=0,a=r.length;i<a;++i)v[r[i].identifier]=null;var l=t(),u=Date.now();if(1===l.length){if(u-b<500){var c=l[0];o(p,c,v[c.identifier],Math.floor(Math.log(k.k)/Math.LN2)+1),T()}b=u}else if(l.length>1){var c=l[0],h=l[1],f=c[0]-h[0],d=c[1]-h[1];g=f*f+d*d}}function n(){var t,e,r,n,o=uo.touches(p);Bl.call(p);for(var s=0,l=o.length;s<l;++s,n=null)if(r=o[s],n=v[r.identifier]){if(e)break;t=r,e=n}if(n){var c=(c=r[0]-t[0])*c+(c=r[1]-t[1])*c,h=g&&Math.sqrt(c/g);t=[(t[0]+r[0])/2,(t[1]+r[1])/2],e=[(e[0]+n[0])/2,(e[1]+n[1])/2],i(h*d)}b=null,a(t,e),u(m)}function s(){if(uo.event.touches.length){for(var e=uo.event.changedTouches,r=0,n=e.length;r<n;++r)delete v[e[r].identifier];for(var i in v)return void t()}uo.selectAll(w).on(y,null),M.on(I,h).on(P,f),A(),c(m)}var d,p=this,m=O.of(p,arguments),v={},g=0,y=\".zoom-\"+uo.event.changedTouches[0].identifier,x=\"touchmove\"+y,_=\"touchend\"+y,w=[],M=uo.select(p),A=K(p);r(),l(m),M.on(I,null).on(P,r)}function d(){var t=O.of(this,arguments);y?clearTimeout(y):(Bl.call(this),m=e(v=g||uo.mouse(this)),l(t)),y=setTimeout(function(){y=null,c(t)},50),T(),i(Math.pow(2,.002*Yo())*k.k),a(v,m),u(t)}function p(){var t=uo.mouse(this),r=Math.log(k.k)/Math.LN2;o(this,t,e(t),uo.event.shiftKey?Math.ceil(r)-1:Math.floor(r)+1)}var m,v,g,y,b,x,_,w,M,k={x:0,y:0,k:1},A=[960,500],S=Xo,L=250,C=0,I=\"mousedown.zoom\",z=\"mousemove.zoom\",D=\"mouseup.zoom\",P=\"touchstart.zoom\",O=E(t,\"zoomstart\",\"zoom\",\"zoomend\");return Wo||(Wo=\"onwheel\"in fo?(Yo=function(){return-uo.event.deltaY*(uo.event.deltaMode?120:1)},\"wheel\"):\"onmousewheel\"in fo?(Yo=function(){return uo.event.wheelDelta},\"mousewheel\"):(Yo=function(){return-uo.event.detail},\"MozMousePixelScroll\")),t.event=function(t){t.each(function(){var t=O.of(this,arguments),e=k;jl?uo.select(this).transition().each(\"start.zoom\",function(){k=this.__chart__||{x:0,y:0,k:1},l(t)}).tween(\"zoom:zoom\",function(){var r=A[0],n=A[1],i=v?v[0]:r/2,a=v?v[1]:n/2,o=uo.interpolateZoom([(i-k.x)/k.k,(a-k.y)/k.k,r/k.k],[(i-e.x)/e.k,(a-e.y)/e.k,r/e.k]);return function(e){var n=o(e),s=r/n[2];this.__chart__=k={x:i-n[0]*s,y:a-n[1]*s,k:s},u(t)}}).each(\"interrupt.zoom\",function(){c(t)}).each(\"end.zoom\",function(){c(t)}):(this.__chart__=k,l(t),u(t),c(t))})},t.translate=function(e){return arguments.length?(k={x:+e[0],y:+e[1],k:k.k},s(),t):[k.x,k.y]},t.scale=function(e){return arguments.length?(k={x:k.x,y:k.y,k:null},i(+e),s(),t):k.k},t.scaleExtent=function(e){return arguments.length?(S=null==e?Xo:[+e[0],+e[1]],t):S},t.center=function(e){return arguments.length?(g=e&&[+e[0],+e[1]],t):g},t.size=function(e){return arguments.length?(A=e&&[+e[0],+e[1]],t):A},t.duration=function(e){return arguments.length?(L=+e,t):L},t.x=function(e){return arguments.length?(_=e,x=e.copy(),k={x:0,y:0,k:1},t):_},t.y=function(e){return arguments.length?(M=e,w=e.copy(),k={x:0,y:0,k:1},t):M},uo.rebind(t,O,\"on\")};var Yo,Wo,Xo=[0,1/0];uo.color=lt,lt.prototype.toString=function(){return this.rgb()+\"\"},uo.hsl=ut;var Zo=ut.prototype=new lt;Zo.brighter=function(t){return t=Math.pow(.7,arguments.length?t:1),new ut(this.h,this.s,this.l/t)},Zo.darker=function(t){return t=Math.pow(.7,arguments.length?t:1),new ut(this.h,this.s,t*this.l)},Zo.rgb=function(){return ct(this.h,this.s,this.l)},uo.hcl=ht;var Jo=ht.prototype=new lt;Jo.brighter=function(t){return new ht(this.h,this.c,Math.min(100,this.l+Ko*(arguments.length?t:1)))},Jo.darker=function(t){return new ht(this.h,this.c,Math.max(0,this.l-Ko*(arguments.length?t:1)))},Jo.rgb=function(){return ft(this.h,this.c,this.l).rgb()},uo.lab=dt;var Ko=18,Qo=.95047,$o=1,ts=1.08883,es=dt.prototype=new lt;es.brighter=function(t){return new dt(Math.min(100,this.l+Ko*(arguments.length?t:1)),this.a,this.b)},es.darker=function(t){return new dt(Math.max(0,this.l-Ko*(arguments.length?t:1)),this.a,this.b)},es.rgb=function(){return pt(this.l,this.a,this.b)},uo.rgb=bt;var rs=bt.prototype=new lt;rs.brighter=function(t){t=Math.pow(.7,arguments.length?t:1);var e=this.r,r=this.g,n=this.b,i=30;return e||r||n?(e&&e<i&&(e=i),r&&r<i&&(r=i),n&&n<i&&(n=i),new bt(Math.min(255,e/t),Math.min(255,r/t),Math.min(255,n/t))):new bt(i,i,i)},rs.darker=function(t){return t=Math.pow(.7,arguments.length?t:1),new bt(t*this.r,t*this.g,t*this.b)},rs.hsl=function(){return kt(this.r,this.g,this.b)},rs.toString=function(){return\"#\"+wt(this.r)+wt(this.g)+wt(this.b)};var ns=uo.map({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});ns.forEach(function(t,e){ns.set(t,xt(e))}),uo.functor=Et,uo.xhr=Lt(x),uo.dsv=function(t,e){function r(t,r,a){arguments.length<3&&(a=r,r=null);var o=Ct(t,e,null==r?n:i(r),a);return o.row=function(t){return arguments.length?o.response(null==(r=t)?n:i(t)):r},o}function n(t){return r.parse(t.responseText)}function i(t){return function(e){return r.parse(e.responseText,t)}}function a(e){return e.map(o).join(t)}function o(t){return s.test(t)?'\"'+t.replace(/\\\"/g,'\"\"')+'\"':t}var s=new RegExp('[\"'+t+\"\\n]\"),l=t.charCodeAt(0);return r.parse=function(t,e){var n;return r.parseRows(t,function(t,r){if(n)return n(t,r-1);var i=new Function(\"d\",\"return {\"+t.map(function(t,e){return JSON.stringify(t)+\": d[\"+e+\"]\"}).join(\",\")+\"}\");n=e?function(t,r){return e(i(t),r)}:i})},r.parseRows=function(t,e){function r(){if(c>=u)return o;if(i)return i=!1,a;var e=c;if(34===t.charCodeAt(e)){for(var r=e;r++<u;)if(34===t.charCodeAt(r)){if(34!==t.charCodeAt(r+1))break;++r}c=r+2;var n=t.charCodeAt(r+1);return 13===n?(i=!0,10===t.charCodeAt(r+2)&&++c):10===n&&(i=!0),t.slice(e+1,r).replace(/\"\"/g,'\"')}for(;c<u;){var n=t.charCodeAt(c++),s=1;if(10===n)i=!0;else if(13===n)i=!0,10===t.charCodeAt(c)&&(++c,++s);else if(n!==l)continue;return t.slice(e,c-s)}return t.slice(e)}for(var n,i,a={},o={},s=[],u=t.length,c=0,h=0;(n=r())!==o;){for(var f=[];n!==a&&n!==o;)f.push(n),n=r();e&&null==(f=e(f,h++))||s.push(f)}return s},r.format=function(e){if(Array.isArray(e[0]))return r.formatRows(e);var n=new b,i=[];return e.forEach(function(t){for(var e in t)n.has(e)||i.push(n.add(e))}),[i.map(o).join(t)].concat(e.map(function(e){return i.map(function(t){return o(e[t])}).join(t)})).join(\"\\n\")},r.formatRows=function(t){return t.map(a).join(\"\\n\")},r},uo.csv=uo.dsv(\",\",\"text/csv\"),uo.tsv=uo.dsv(\"\\t\",\"text/tab-separated-values\");var is,as,os,ss,ls=this[w(this,\"requestAnimationFrame\")]||function(t){setTimeout(t,17)};uo.timer=function(){Dt.apply(this,arguments)},uo.timer.flush=function(){Ot(),Rt()},uo.round=function(t,e){return e?Math.round(t*(e=Math.pow(10,e)))/e:Math.round(t)};var us=[\"y\",\"z\",\"a\",\"f\",\"p\",\"n\",\"\\xb5\",\"m\",\"\",\"k\",\"M\",\"G\",\"T\",\"P\",\"E\",\"Z\",\"Y\"].map(jt);uo.formatPrefix=function(t,e){var r=0;return(t=+t)&&(t<0&&(t*=-1),e&&(t=uo.round(t,Ft(t,e))),r=1+Math.floor(1e-12+Math.log(t)/Math.LN10),r=Math.max(-24,Math.min(24,3*Math.floor((r-1)/3)))),us[8+r/3]};var cs=/(?:([^{])?([<>=^]))?([+\\- ])?([$#])?(0)?(\\d+)?(,)?(\\.-?\\d+)?([a-z%])?/i,hs=uo.map({b:function(t){return t.toString(2)},c:function(t){return String.fromCharCode(t)},o:function(t){return t.toString(8)},x:function(t){return t.toString(16)},X:function(t){return t.toString(16).toUpperCase()},g:function(t,e){return t.toPrecision(e)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},r:function(t,e){return(t=uo.round(t,Ft(t,e))).toFixed(Math.max(0,Math.min(20,Ft(t*(1+1e-15),e))))}}),fs=uo.time={},ds=Date;Ut.prototype={getDate:function(){return this._.getUTCDate()},getDay:function(){return this._.getUTCDay()},getFullYear:function(){return this._.getUTCFullYear()},getHours:function(){return this._.getUTCHours()},getMilliseconds:function(){return this._.getUTCMilliseconds()},getMinutes:function(){return this._.getUTCMinutes()},getMonth:function(){return this._.getUTCMonth()},getSeconds:function(){return this._.getUTCSeconds()},getTime:function(){return this._.getTime()},getTimezoneOffset:function(){return 0},valueOf:function(){return this._.valueOf()},setDate:function(){ps.setUTCDate.apply(this._,arguments)},setDay:function(){ps.setUTCDay.apply(this._,arguments)},setFullYear:function(){ps.setUTCFullYear.apply(this._,arguments)},setHours:function(){ps.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){ps.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){ps.setUTCMinutes.apply(this._,arguments)},setMonth:function(){ps.setUTCMonth.apply(this._,arguments)},setSeconds:function(){ps.setUTCSeconds.apply(this._,arguments)},setTime:function(){ps.setTime.apply(this._,arguments)}};var ps=Date.prototype;fs.year=Vt(function(t){return t=fs.day(t),t.setMonth(0,1),t},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t){return t.getFullYear()}),fs.years=fs.year.range,fs.years.utc=fs.year.utc.range,fs.day=Vt(function(t){var e=new ds(2e3,0);return e.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),e},function(t,e){t.setDate(t.getDate()+e)},function(t){return t.getDate()-1}),fs.days=fs.day.range,fs.days.utc=fs.day.utc.range,fs.dayOfYear=function(t){var e=fs.year(t);return Math.floor((t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/864e5)},[\"sunday\",\"monday\",\"tuesday\",\"wednesday\",\"thursday\",\"friday\",\"saturday\"].forEach(function(t,e){e=7-e;var r=fs[t]=Vt(function(t){return(t=fs.day(t)).setDate(t.getDate()-(t.getDay()+e)%7),t},function(t,e){t.setDate(t.getDate()+7*Math.floor(e))},function(t){var r=fs.year(t).getDay();return Math.floor((fs.dayOfYear(t)+(r+e)%7)/7)-(r!==e)});fs[t+\"s\"]=r.range,fs[t+\"s\"].utc=r.utc.range,fs[t+\"OfYear\"]=function(t){var r=fs.year(t).getDay();return Math.floor((fs.dayOfYear(t)+(r+e)%7)/7)}}),fs.week=fs.sunday,fs.weeks=fs.sunday.range,fs.weeks.utc=fs.sunday.utc.range,fs.weekOfYear=fs.sundayOfYear;var ms={\"-\":\"\",_:\" \",0:\"0\"},vs=/^\\s*\\d+/,gs=/^%/;uo.locale=function(t){return{numberFormat:Nt(t),timeFormat:qt(t)}};var ys=uo.locale({decimal:\".\",thousands:\",\",grouping:[3],currency:[\"$\",\"\"],dateTime:\"%a %b %e %X %Y\",date:\"%m/%d/%Y\",time:\"%H:%M:%S\",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\"]});uo.format=ys.numberFormat,uo.geo={},he.prototype={s:0,t:0,add:function(t){fe(t,this.t,bs),fe(bs.s,this.s,this),this.s?this.t+=bs.t:this.s=bs.t},reset:function(){this.s=this.t=0},valueOf:function(){return this.s}};var bs=new he;uo.geo.stream=function(t,e){t&&xs.hasOwnProperty(t.type)?xs[t.type](t,e):de(t,e)};var xs={Feature:function(t,e){de(t.geometry,e)},FeatureCollection:function(t,e){for(var r=t.features,n=-1,i=r.length;++n<i;)de(r[n].geometry,e)}},_s={Sphere:function(t,e){e.sphere()},Point:function(t,e){t=t.coordinates,e.point(t[0],t[1],t[2])},MultiPoint:function(t,e){for(var r=t.coordinates,n=-1,i=r.length;++n<i;)t=r[n],e.point(t[0],t[1],t[2])},LineString:function(t,e){pe(t.coordinates,e,0)},MultiLineString:function(t,e){for(var r=t.coordinates,n=-1,i=r.length;++n<i;)pe(r[n],e,0)},Polygon:function(t,e){me(t.coordinates,e)},MultiPolygon:function(t,e){for(var r=t.coordinates,n=-1,i=r.length;++n<i;)me(r[n],e)},GeometryCollection:function(t,e){for(var r=t.geometries,n=-1,i=r.length;++n<i;)de(r[n],e)}};uo.geo.area=function(t){return ws=0,uo.geo.stream(t,ks),ws};var ws,Ms=new he,ks={sphere:function(){ws+=4*No},point:M,lineStart:M,lineEnd:M,polygonStart:function(){Ms.reset(),ks.lineStart=ve},polygonEnd:function(){var t=2*Ms;ws+=t<0?4*No+t:t,ks.lineStart=ks.lineEnd=ks.point=M}};uo.geo.bounds=function(){function t(t,e){b.push(x=[c=t,f=t]),e<h&&(h=e),e>d&&(d=e)}function e(e,r){var n=ge([e*Ho,r*Ho]);if(g){var i=be(g,n),a=[i[1],-i[0],0],o=be(a,i);we(o),o=Me(o);var l=e-p,u=l>0?1:-1,m=o[0]*qo*u,v=xo(l)>180;if(v^(u*p<m&&m<u*e)){var y=o[1]*qo;y>d&&(d=y)}else if(m=(m+360)%360-180,v^(u*p<m&&m<u*e)){var y=-o[1]*qo;y<h&&(h=y)}else r<h&&(h=r),r>d&&(d=r);v?e<p?s(c,e)>s(c,f)&&(f=e):s(e,f)>s(c,f)&&(c=e):f>=c?(e<c&&(c=e),e>f&&(f=e)):e>p?s(c,e)>s(c,f)&&(f=e):s(e,f)>s(c,f)&&(c=e)}else t(e,r);g=n,p=e}function r(){_.point=e}function n(){x[0]=c,x[1]=f,_.point=t,g=null}function i(t,r){if(g){var n=t-p;y+=xo(n)>180?n+(n>0?360:-360):n}else m=t,v=r;ks.point(t,r),e(t,r)}function a(){ks.lineStart()}function o(){i(m,v),ks.lineEnd(),xo(y)>Fo&&(c=-(f=180)),x[0]=c,x[1]=f,g=null}function s(t,e){return(e-=t)<0?e+360:e}function l(t,e){return t[0]-e[0]}function u(t,e){return e[0]<=e[1]?e[0]<=t&&t<=e[1]:t<e[0]||e[1]<t}var c,h,f,d,p,m,v,g,y,b,x,_={point:t,lineStart:r,lineEnd:n,polygonStart:function(){_.point=i,_.lineStart=a,_.lineEnd=o,y=0,ks.polygonStart()},polygonEnd:function(){ks.polygonEnd(),_.point=t,_.lineStart=r,_.lineEnd=n,Ms<0?(c=-(f=180),h=-(d=90)):y>Fo?d=90:y<-Fo&&(h=-90),x[0]=c,x[1]=f}};return function(t){d=f=-(c=h=1/0),b=[],uo.geo.stream(t,_);var e=b.length;if(e){b.sort(l);for(var r,n=1,i=b[0],a=[i];n<e;++n)r=b[n],u(r[0],i)||u(r[1],i)?(s(i[0],r[1])>s(i[0],i[1])&&(i[1]=r[1]),s(r[0],i[1])>s(i[0],i[1])&&(i[0]=r[0])):a.push(i=r);for(var o,r,p=-1/0,e=a.length-1,n=0,i=a[e];n<=e;i=r,++n)r=a[n],(o=s(i[1],r[0]))>p&&(p=o,c=r[0],f=i[1])}return b=x=null,c===1/0||h===1/0?[[NaN,NaN],[NaN,NaN]]:[[c,h],[f,d]]}}(),uo.geo.centroid=function(t){As=Ts=Ss=Es=Ls=Cs=Is=zs=Ds=Ps=Os=0,uo.geo.stream(t,Rs);var e=Ds,r=Ps,n=Os,i=e*e+r*r+n*n;return i<jo&&(e=Cs,r=Is,n=zs,Ts<Fo&&(e=Ss,r=Es,n=Ls),(i=e*e+r*r+n*n)<jo)?[NaN,NaN]:[Math.atan2(r,e)*qo,nt(n/Math.sqrt(i))*qo]};var As,Ts,Ss,Es,Ls,Cs,Is,zs,Ds,Ps,Os,Rs={sphere:M,point:Ae,lineStart:Se,lineEnd:Ee,polygonStart:function(){Rs.lineStart=Le},polygonEnd:function(){Rs.lineStart=Se}},Fs=Oe(Ie,Ne,Ue,[-No,-No/2]),js=1e9;uo.geo.clipExtent=function(){var t,e,r,n,i,a,o={stream:function(t){return i&&(i.valid=!1),i=a(t),i.valid=!0,i},extent:function(s){return arguments.length?(a=Ge(t=+s[0][0],e=+s[0][1],r=+s[1][0],n=+s[1][1]),i&&(i.valid=!1,i=null),o):[[t,e],[r,n]]}};return o.extent([[0,0],[960,500]])},(uo.geo.conicEqualArea=function(){return Ye(We)}).raw=We,uo.geo.albers=function(){return uo.geo.conicEqualArea().rotate([96,0]).center([-.6,38.7]).parallels([29.5,45.5]).scale(1070)},uo.geo.albersUsa=function(){function t(t){var a=t[0],o=t[1];return e=null,r(a,o),e||(n(a,o),e)||i(a,o),e}var e,r,n,i,a=uo.geo.albers(),o=uo.geo.conicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),s=uo.geo.conicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),l={point:function(t,r){e=[t,r]}};return t.invert=function(t){var e=a.scale(),r=a.translate(),n=(t[0]-r[0])/e,i=(t[1]-r[1])/e;return(i>=.12&&i<.234&&n>=-.425&&n<-.214?o:i>=.166&&i<.234&&n>=-.214&&n<-.115?s:a).invert(t)},t.stream=function(t){var e=a.stream(t),r=o.stream(t),n=s.stream(t);return{point:function(t,i){e.point(t,i),r.point(t,i),n.point(t,i)},sphere:function(){e.sphere(),r.sphere(),n.sphere()},lineStart:function(){e.lineStart(),r.lineStart(),n.lineStart()},lineEnd:function(){e.lineEnd(),r.lineEnd(),n.lineEnd()},polygonStart:function(){e.polygonStart(),r.polygonStart(),n.polygonStart()},polygonEnd:function(){e.polygonEnd(),r.polygonEnd(),n.polygonEnd()}}},t.precision=function(e){return arguments.length?(a.precision(e),o.precision(e),s.precision(e),t):a.precision()},t.scale=function(e){return arguments.length?(a.scale(e),o.scale(.35*e),s.scale(e),t.translate(a.translate())):a.scale()},t.translate=function(e){if(!arguments.length)return a.translate();var u=a.scale(),c=+e[0],h=+e[1];return r=a.translate(e).clipExtent([[c-.455*u,h-.238*u],[c+.455*u,h+.238*u]]).stream(l).point,n=o.translate([c-.307*u,h+.201*u]).clipExtent([[c-.425*u+Fo,h+.12*u+Fo],[c-.214*u-Fo,h+.234*u-Fo]]).stream(l).point,i=s.translate([c-.205*u,h+.212*u]).clipExtent([[c-.214*u+Fo,h+.166*u+Fo],[c-.115*u-Fo,h+.234*u-Fo]]).stream(l).point,t},t.scale(1070)};var Ns,Bs,Us,Vs,Hs,qs,Gs={point:M,lineStart:M,lineEnd:M,polygonStart:function(){Bs=0,Gs.lineStart=Xe},polygonEnd:function(){Gs.lineStart=Gs.lineEnd=Gs.point=M,Ns+=xo(Bs/2)}},Ys={point:Ze,lineStart:M,lineEnd:M,polygonStart:M,polygonEnd:M},Ws={point:Qe,lineStart:$e,lineEnd:tr,polygonStart:function(){Ws.lineStart=er},polygonEnd:function(){Ws.point=Qe,Ws.lineStart=$e,Ws.lineEnd=tr}};uo.geo.path=function(){function t(t){return t&&(\"function\"==typeof s&&a.pointRadius(+s.apply(this,arguments)),o&&o.valid||(o=i(a)),uo.geo.stream(t,o)),a.result()}function e(){return o=null,t}var r,n,i,a,o,s=4.5;return t.area=function(t){return Ns=0,uo.geo.stream(t,i(Gs)),Ns},t.centroid=function(t){return Ss=Es=Ls=Cs=Is=zs=Ds=Ps=Os=0,uo.geo.stream(t,i(Ws)),Os?[Ds/Os,Ps/Os]:zs?[Cs/zs,Is/zs]:Ls?[Ss/Ls,Es/Ls]:[NaN,NaN]},t.bounds=function(t){return Hs=qs=-(Us=Vs=1/0),uo.geo.stream(t,i(Ys)),[[Us,Vs],[Hs,qs]]},t.projection=function(t){return arguments.length?(i=(r=t)?t.stream||ir(t):x,e()):r},t.context=function(t){return arguments.length?(a=null==(n=t)?new Je:new rr(t),\"function\"!=typeof s&&a.pointRadius(s),e()):n},t.pointRadius=function(e){return arguments.length?(s=\"function\"==typeof e?e:(a.pointRadius(+e),+e),t):s},t.projection(uo.geo.albersUsa()).context(null)},uo.geo.transform=function(t){return{stream:function(e){var r=new ar(e);for(var n in t)r[n]=t[n];return r}}},ar.prototype={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()}},uo.geo.projection=sr,uo.geo.projectionMutator=lr,(uo.geo.equirectangular=function(){return sr(cr)}).raw=cr.invert=cr,uo.geo.rotation=function(t){function e(e){return e=t(e[0]*Ho,e[1]*Ho),e[0]*=qo,e[1]*=qo,e}return t=fr(t[0]%360*Ho,t[1]*Ho,t.length>2?t[2]*Ho:0),e.invert=function(e){return e=t.invert(e[0]*Ho,e[1]*Ho),e[0]*=qo,e[1]*=qo,e},e},hr.invert=cr,uo.geo.circle=function(){function t(){var t=\"function\"==typeof n?n.apply(this,arguments):n,e=fr(-t[0]*Ho,-t[1]*Ho,0).invert,i=[];return r(null,null,1,{point:function(t,r){i.push(t=e(t,r)),t[0]*=qo,t[1]*=qo}}),{type:\"Polygon\",coordinates:[i]}}var e,r,n=[0,0],i=6;return t.origin=function(e){return arguments.length?(n=e,t):n},t.angle=function(n){return arguments.length?(r=vr((e=+n)*Ho,i*Ho),t):e},t.precision=function(n){return arguments.length?(r=vr(e*Ho,(i=+n)*Ho),t):i},t.angle(90)},uo.geo.distance=function(t,e){var r,n=(e[0]-t[0])*Ho,i=t[1]*Ho,a=e[1]*Ho,o=Math.sin(n),s=Math.cos(n),l=Math.sin(i),u=Math.cos(i),c=Math.sin(a),h=Math.cos(a);return Math.atan2(Math.sqrt((r=h*o)*r+(r=u*c-l*h*s)*r),l*c+u*h*s)},uo.geo.graticule=function(){function t(){return{type:\"MultiLineString\",coordinates:e()}}function e(){return uo.range(Math.ceil(a/v)*v,i,v).map(f).concat(uo.range(Math.ceil(u/g)*g,l,g).map(d)).concat(uo.range(Math.ceil(n/p)*p,r,p).filter(function(t){return xo(t%v)>Fo}).map(c)).concat(uo.range(Math.ceil(s/m)*m,o,m).filter(function(t){return xo(t%g)>Fo}).map(h))}var r,n,i,a,o,s,l,u,c,h,f,d,p=10,m=p,v=90,g=360,y=2.5;return t.lines=function(){return e().map(function(t){return{type:\"LineString\",coordinates:t}})},t.outline=function(){return{type:\"Polygon\",coordinates:[f(a).concat(d(l).slice(1),f(i).reverse().slice(1),d(u).reverse().slice(1))]}},t.extent=function(e){return arguments.length?t.majorExtent(e).minorExtent(e):t.minorExtent()},t.majorExtent=function(e){return arguments.length?(a=+e[0][0],i=+e[1][0],u=+e[0][1],l=+e[1][1],a>i&&(e=a,a=i,i=e),u>l&&(e=u,u=l,l=e),t.precision(y)):[[a,u],[i,l]]},t.minorExtent=function(e){return arguments.length?(n=+e[0][0],r=+e[1][0],s=+e[0][1],o=+e[1][1],n>r&&(e=n,n=r,r=e),s>o&&(e=s,s=o,o=e),t.precision(y)):[[n,s],[r,o]]},t.step=function(e){return arguments.length?t.majorStep(e).minorStep(e):t.minorStep()},t.majorStep=function(e){return arguments.length?(v=+e[0],g=+e[1],t):[v,g]},t.minorStep=function(e){\n", "return arguments.length?(p=+e[0],m=+e[1],t):[p,m]},t.precision=function(e){return arguments.length?(y=+e,c=yr(s,o,90),h=br(n,r,y),f=yr(u,l,90),d=br(a,i,y),t):y},t.majorExtent([[-180,-90+Fo],[180,90-Fo]]).minorExtent([[-180,-80-Fo],[180,80+Fo]])},uo.geo.greatArc=function(){function t(){return{type:\"LineString\",coordinates:[e||n.apply(this,arguments),r||i.apply(this,arguments)]}}var e,r,n=xr,i=_r;return t.distance=function(){return uo.geo.distance(e||n.apply(this,arguments),r||i.apply(this,arguments))},t.source=function(r){return arguments.length?(n=r,e=\"function\"==typeof r?null:r,t):n},t.target=function(e){return arguments.length?(i=e,r=\"function\"==typeof e?null:e,t):i},t.precision=function(){return arguments.length?t:0},t},uo.geo.interpolate=function(t,e){return wr(t[0]*Ho,t[1]*Ho,e[0]*Ho,e[1]*Ho)},uo.geo.length=function(t){return Xs=0,uo.geo.stream(t,Zs),Xs};var Xs,Zs={sphere:M,point:M,lineStart:Mr,lineEnd:M,polygonStart:M,polygonEnd:M},Js=kr(function(t){return Math.sqrt(2/(1+t))},function(t){return 2*Math.asin(t/2)});(uo.geo.azimuthalEqualArea=function(){return sr(Js)}).raw=Js;var Ks=kr(function(t){var e=Math.acos(t);return e&&e/Math.sin(e)},x);(uo.geo.azimuthalEquidistant=function(){return sr(Ks)}).raw=Ks,(uo.geo.conicConformal=function(){return Ye(Ar)}).raw=Ar,(uo.geo.conicEquidistant=function(){return Ye(Tr)}).raw=Tr;var Qs=kr(function(t){return 1/t},Math.atan);(uo.geo.gnomonic=function(){return sr(Qs)}).raw=Qs,Sr.invert=function(t,e){return[t,2*Math.atan(Math.exp(e))-Vo]},(uo.geo.mercator=function(){return Er(Sr)}).raw=Sr;var $s=kr(function(){return 1},Math.asin);(uo.geo.orthographic=function(){return sr($s)}).raw=$s;var tl=kr(function(t){return 1/(1+t)},function(t){return 2*Math.atan(t)});(uo.geo.stereographic=function(){return sr(tl)}).raw=tl,Lr.invert=function(t,e){return[-e,2*Math.atan(Math.exp(t))-Vo]},(uo.geo.transverseMercator=function(){var t=Er(Lr),e=t.center,r=t.rotate;return t.center=function(t){return t?e([-t[1],t[0]]):(t=e(),[t[1],-t[0]])},t.rotate=function(t){return t?r([t[0],t[1],t.length>2?t[2]+90:90]):(t=r(),[t[0],t[1],t[2]-90])},r([0,0,90])}).raw=Lr,uo.geom={},uo.geom.hull=function(t){function e(t){if(t.length<3)return[];var e,i=Et(r),a=Et(n),o=t.length,s=[],l=[];for(e=0;e<o;e++)s.push([+i.call(this,t[e],e),+a.call(this,t[e],e),e]);for(s.sort(Dr),e=0;e<o;e++)l.push([s[e][0],-s[e][1]]);var u=zr(s),c=zr(l),h=c[0]===u[0],f=c[c.length-1]===u[u.length-1],d=[];for(e=u.length-1;e>=0;--e)d.push(t[s[u[e]][2]]);for(e=+h;e<c.length-f;++e)d.push(t[s[c[e]][2]]);return d}var r=Cr,n=Ir;return arguments.length?e(t):(e.x=function(t){return arguments.length?(r=t,e):r},e.y=function(t){return arguments.length?(n=t,e):n},e)},uo.geom.polygon=function(t){return Ao(t,el),t};var el=uo.geom.polygon.prototype=[];el.area=function(){for(var t,e=-1,r=this.length,n=this[r-1],i=0;++e<r;)t=n,n=this[e],i+=t[1]*n[0]-t[0]*n[1];return.5*i},el.centroid=function(t){var e,r,n=-1,i=this.length,a=0,o=0,s=this[i-1];for(arguments.length||(t=-1/(6*this.area()));++n<i;)e=s,s=this[n],r=e[0]*s[1]-s[0]*e[1],a+=(e[0]+s[0])*r,o+=(e[1]+s[1])*r;return[a*t,o*t]},el.clip=function(t){for(var e,r,n,i,a,o,s=Rr(t),l=-1,u=this.length-Rr(this),c=this[u-1];++l<u;){for(e=t.slice(),t.length=0,i=this[l],a=e[(n=e.length-s)-1],r=-1;++r<n;)o=e[r],Pr(o,c,i)?(Pr(a,c,i)||t.push(Or(a,o,c,i)),t.push(o)):Pr(a,c,i)&&t.push(Or(a,o,c,i)),a=o;s&&t.push(t[0]),c=i}return t};var rl,nl,il,al,ol,sl=[],ll=[];qr.prototype.prepare=function(){for(var t,e=this.edges,r=e.length;r--;)t=e[r].edge,t.b&&t.a||e.splice(r,1);return e.sort(Yr),e.length},rn.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}},nn.prototype={insert:function(t,e){var r,n,i;if(t){if(e.P=t,e.N=t.N,t.N&&(t.N.P=e),t.N=e,t.R){for(t=t.R;t.L;)t=t.L;t.L=e}else t.R=e;r=t}else this._?(t=ln(this._),e.P=null,e.N=t,t.P=t.L=e,r=t):(e.P=e.N=null,this._=e,r=null);for(e.L=e.R=null,e.U=r,e.C=!0,t=e;r&&r.C;)n=r.U,r===n.L?(i=n.R,i&&i.C?(r.C=i.C=!1,n.C=!0,t=n):(t===r.R&&(on(this,r),t=r,r=t.U),r.C=!1,n.C=!0,sn(this,n))):(i=n.L,i&&i.C?(r.C=i.C=!1,n.C=!0,t=n):(t===r.L&&(sn(this,r),t=r,r=t.U),r.C=!1,n.C=!0,on(this,n))),r=t.U;this._.C=!1},remove:function(t){t.N&&(t.N.P=t.P),t.P&&(t.P.N=t.N),t.N=t.P=null;var e,r,n,i=t.U,a=t.L,o=t.R;if(r=a?o?ln(o):a:o,i?i.L===t?i.L=r:i.R=r:this._=r,a&&o?(n=r.C,r.C=t.C,r.L=a,a.U=r,r!==o?(i=r.U,r.U=t.U,t=r.R,i.L=t,r.R=o,o.U=r):(r.U=i,i=r,t=r.R)):(n=t.C,t=r),t&&(t.U=i),!n){if(t&&t.C)return void(t.C=!1);do{if(t===this._)break;if(t===i.L){if(e=i.R,e.C&&(e.C=!1,i.C=!0,on(this,i),e=i.R),e.L&&e.L.C||e.R&&e.R.C){e.R&&e.R.C||(e.L.C=!1,e.C=!0,sn(this,e),e=i.R),e.C=i.C,i.C=e.R.C=!1,on(this,i),t=this._;break}}else if(e=i.L,e.C&&(e.C=!1,i.C=!0,sn(this,i),e=i.L),e.L&&e.L.C||e.R&&e.R.C){e.L&&e.L.C||(e.R.C=!1,e.C=!0,on(this,e),e=i.L),e.C=i.C,i.C=e.L.C=!1,sn(this,i),t=this._;break}e.C=!0,t=i,i=i.U}while(!t.C);t&&(t.C=!1)}}},uo.geom.voronoi=function(t){function e(t){var e=new Array(t.length),n=s[0][0],i=s[0][1],a=s[1][0],o=s[1][1];return un(r(t),s).cells.forEach(function(r,s){var l=r.edges,u=r.site;(e[s]=l.length?l.map(function(t){var e=t.start();return[e.x,e.y]}):u.x>=n&&u.x<=a&&u.y>=i&&u.y<=o?[[n,o],[a,o],[a,i],[n,i]]:[]).point=t[s]}),e}function r(t){return t.map(function(t,e){return{x:Math.round(a(t,e)/Fo)*Fo,y:Math.round(o(t,e)/Fo)*Fo,i:e}})}var n=Cr,i=Ir,a=n,o=i,s=ul;return t?e(t):(e.links=function(t){return un(r(t)).edges.filter(function(t){return t.l&&t.r}).map(function(e){return{source:t[e.l.i],target:t[e.r.i]}})},e.triangles=function(t){var e=[];return un(r(t)).cells.forEach(function(r,n){for(var i,a=r.site,o=r.edges.sort(Yr),s=-1,l=o.length,u=o[l-1].edge,c=u.l===a?u.r:u.l;++s<l;)u,i=c,u=o[s].edge,c=u.l===a?u.r:u.l,n<i.i&&n<c.i&&hn(a,i,c)<0&&e.push([t[n],t[i.i],t[c.i]])}),e},e.x=function(t){return arguments.length?(a=Et(n=t),e):n},e.y=function(t){return arguments.length?(o=Et(i=t),e):i},e.clipExtent=function(t){return arguments.length?(s=null==t?ul:t,e):s===ul?null:s},e.size=function(t){return arguments.length?e.clipExtent(t&&[[0,0],t]):s===ul?null:s&&s[1]},e)};var ul=[[-1e6,-1e6],[1e6,1e6]];uo.geom.delaunay=function(t){return uo.geom.voronoi().triangles(t)},uo.geom.quadtree=function(t,e,r,n,i){function a(t){function a(t,e,r,n,i,a,o,s){if(!isNaN(r)&&!isNaN(n))if(t.leaf){var l=t.x,c=t.y;if(null!=l)if(xo(l-r)+xo(c-n)<.01)u(t,e,r,n,i,a,o,s);else{var h=t.point;t.x=t.y=t.point=null,u(t,h,l,c,i,a,o,s),u(t,e,r,n,i,a,o,s)}else t.x=r,t.y=n,t.point=e}else u(t,e,r,n,i,a,o,s)}function u(t,e,r,n,i,o,s,l){var u=.5*(i+s),c=.5*(o+l),h=r>=u,f=n>=c,d=f<<1|h;t.leaf=!1,t=t.nodes[d]||(t.nodes[d]=pn()),h?i=u:s=u,f?o=c:l=c,a(t,e,r,n,i,o,s,l)}var c,h,f,d,p,m,v,g,y,b=Et(s),x=Et(l);if(null!=e)m=e,v=r,g=n,y=i;else if(g=y=-(m=v=1/0),h=[],f=[],p=t.length,o)for(d=0;d<p;++d)c=t[d],c.x<m&&(m=c.x),c.y<v&&(v=c.y),c.x>g&&(g=c.x),c.y>y&&(y=c.y),h.push(c.x),f.push(c.y);else for(d=0;d<p;++d){var _=+b(c=t[d],d),w=+x(c,d);_<m&&(m=_),w<v&&(v=w),_>g&&(g=_),w>y&&(y=w),h.push(_),f.push(w)}var M=g-m,k=y-v;M>k?y=v+M:g=m+k;var A=pn();if(A.add=function(t){a(A,t,+b(t,++d),+x(t,d),m,v,g,y)},A.visit=function(t){mn(t,A,m,v,g,y)},A.find=function(t){return vn(A,t[0],t[1],m,v,g,y)},d=-1,null==e){for(;++d<p;)a(A,t[d],h[d],f[d],m,v,g,y);--d}else t.forEach(A.add);return h=f=t=c=null,A}var o,s=Cr,l=Ir;return(o=arguments.length)?(s=fn,l=dn,3===o&&(i=r,n=e,r=e=0),a(t)):(a.x=function(t){return arguments.length?(s=t,a):s},a.y=function(t){return arguments.length?(l=t,a):l},a.extent=function(t){return arguments.length?(null==t?e=r=n=i=null:(e=+t[0][0],r=+t[0][1],n=+t[1][0],i=+t[1][1]),a):null==e?null:[[e,r],[n,i]]},a.size=function(t){return arguments.length?(null==t?e=r=n=i=null:(e=r=0,n=+t[0],i=+t[1]),a):null==e?null:[n-e,i-r]},a)},uo.interpolateRgb=gn,uo.interpolateObject=yn,uo.interpolateNumber=bn,uo.interpolateString=xn;var cl=/[-+]?(?:\\d+\\.?\\d*|\\.?\\d+)(?:[eE][-+]?\\d+)?/g,hl=new RegExp(cl.source,\"g\");uo.interpolate=_n,uo.interpolators=[function(t,e){var r=typeof e;return(\"string\"===r?ns.has(e.toLowerCase())||/^(#|rgb\\(|hsl\\()/i.test(e)?gn:xn:e instanceof lt?gn:Array.isArray(e)?wn:\"object\"===r&&isNaN(e)?yn:bn)(t,e)}],uo.interpolateArray=wn;var fl=function(){return x},dl=uo.map({linear:fl,poly:Ln,quad:function(){return Tn},cubic:function(){return Sn},sin:function(){return Cn},exp:function(){return In},circle:function(){return zn},elastic:Dn,back:Pn,bounce:function(){return On}}),pl=uo.map({in:x,out:kn,\"in-out\":An,\"out-in\":function(t){return An(kn(t))}});uo.ease=function(t){var e=t.indexOf(\"-\"),r=e>=0?t.slice(0,e):t,n=e>=0?t.slice(e+1):\"in\";return r=dl.get(r)||fl,n=pl.get(n)||x,Mn(n(r.apply(null,co.call(arguments,1))))},uo.interpolateHcl=Rn,uo.interpolateHsl=Fn,uo.interpolateLab=jn,uo.interpolateRound=Nn,uo.transform=function(t){var e=fo.createElementNS(uo.ns.prefix.svg,\"g\");return(uo.transform=function(t){if(null!=t){e.setAttribute(\"transform\",t);var r=e.transform.baseVal.consolidate()}return new Bn(r?r.matrix:ml)})(t)},Bn.prototype.toString=function(){return\"translate(\"+this.translate+\")rotate(\"+this.rotate+\")skewX(\"+this.skew+\")scale(\"+this.scale+\")\"};var ml={a:1,b:0,c:0,d:1,e:0,f:0};uo.interpolateTransform=Zn,uo.layout={},uo.layout.bundle=function(){return function(t){for(var e=[],r=-1,n=t.length;++r<n;)e.push(Qn(t[r]));return e}},uo.layout.chord=function(){function t(){var t,u,h,f,d,p={},m=[],v=uo.range(a),g=[];for(r=[],n=[],t=0,f=-1;++f<a;){for(u=0,d=-1;++d<a;)u+=i[f][d];m.push(u),g.push(uo.range(a)),t+=u}for(o&&v.sort(function(t,e){return o(m[t],m[e])}),s&&g.forEach(function(t,e){t.sort(function(t,r){return s(i[e][t],i[e][r])})}),t=(Bo-c*a)/t,u=0,f=-1;++f<a;){for(h=u,d=-1;++d<a;){var y=v[f],b=g[y][d],x=i[y][b],_=u,w=u+=x*t;p[y+\"-\"+b]={index:y,subindex:b,startAngle:_,endAngle:w,value:x}}n[y]={index:y,startAngle:h,endAngle:u,value:m[y]},u+=c}for(f=-1;++f<a;)for(d=f-1;++d<a;){var M=p[f+\"-\"+d],k=p[d+\"-\"+f];(M.value||k.value)&&r.push(M.value<k.value?{source:k,target:M}:{source:M,target:k})}l&&e()}function e(){r.sort(function(t,e){return l((t.source.value+t.target.value)/2,(e.source.value+e.target.value)/2)})}var r,n,i,a,o,s,l,u={},c=0;return u.matrix=function(t){return arguments.length?(a=(i=t)&&i.length,r=n=null,u):i},u.padding=function(t){return arguments.length?(c=t,r=n=null,u):c},u.sortGroups=function(t){return arguments.length?(o=t,r=n=null,u):o},u.sortSubgroups=function(t){return arguments.length?(s=t,r=null,u):s},u.sortChords=function(t){return arguments.length?(l=t,r&&e(),u):l},u.chords=function(){return r||t(),r},u.groups=function(){return n||t(),n},u},uo.layout.force=function(){function t(t){return function(e,r,n,i){if(e.point!==t){var a=e.cx-t.x,o=e.cy-t.y,s=i-r,l=a*a+o*o;if(s*s/g<l){if(l<m){var u=e.charge/l;t.px-=a*u,t.py-=o*u}return!0}if(e.point&&l&&l<m){var u=e.pointCharge/l;t.px-=a*u,t.py-=o*u}}return!e.charge}}function e(t){t.px=uo.event.x,t.py=uo.event.y,l.resume()}var r,n,i,a,o,s,l={},u=uo.dispatch(\"start\",\"tick\",\"end\"),c=[1,1],h=.9,f=vl,d=gl,p=-30,m=yl,v=.1,g=.64,y=[],b=[];return l.tick=function(){if((i*=.99)<.005)return r=null,u.end({type:\"end\",alpha:i=0}),!0;var e,n,l,f,d,m,g,x,_,w=y.length,M=b.length;for(n=0;n<M;++n)l=b[n],f=l.source,d=l.target,x=d.x-f.x,_=d.y-f.y,(m=x*x+_*_)&&(m=i*o[n]*((m=Math.sqrt(m))-a[n])/m,x*=m,_*=m,d.x-=x*(g=f.weight+d.weight?f.weight/(f.weight+d.weight):.5),d.y-=_*g,f.x+=x*(g=1-g),f.y+=_*g);if((g=i*v)&&(x=c[0]/2,_=c[1]/2,n=-1,g))for(;++n<w;)l=y[n],l.x+=(x-l.x)*g,l.y+=(_-l.y)*g;if(p)for(ai(e=uo.geom.quadtree(y),i,s),n=-1;++n<w;)(l=y[n]).fixed||e.visit(t(l));for(n=-1;++n<w;)l=y[n],l.fixed?(l.x=l.px,l.y=l.py):(l.x-=(l.px-(l.px=l.x))*h,l.y-=(l.py-(l.py=l.y))*h);u.tick({type:\"tick\",alpha:i})},l.nodes=function(t){return arguments.length?(y=t,l):y},l.links=function(t){return arguments.length?(b=t,l):b},l.size=function(t){return arguments.length?(c=t,l):c},l.linkDistance=function(t){return arguments.length?(f=\"function\"==typeof t?t:+t,l):f},l.distance=l.linkDistance,l.linkStrength=function(t){return arguments.length?(d=\"function\"==typeof t?t:+t,l):d},l.friction=function(t){return arguments.length?(h=+t,l):h},l.charge=function(t){return arguments.length?(p=\"function\"==typeof t?t:+t,l):p},l.chargeDistance=function(t){return arguments.length?(m=t*t,l):Math.sqrt(m)},l.gravity=function(t){return arguments.length?(v=+t,l):v},l.theta=function(t){return arguments.length?(g=t*t,l):Math.sqrt(g)},l.alpha=function(t){return arguments.length?(t=+t,i?t>0?i=t:(r.c=null,r.t=NaN,r=null,u.end({type:\"end\",alpha:i=0})):t>0&&(u.start({type:\"start\",alpha:i=t}),r=Dt(l.tick)),l):i},l.start=function(){function t(t,n){if(!r){for(r=new Array(i),l=0;l<i;++l)r[l]=[];for(l=0;l<u;++l){var a=b[l];r[a.source.index].push(a.target),r[a.target.index].push(a.source)}}for(var o,s=r[e],l=-1,c=s.length;++l<c;)if(!isNaN(o=s[l][t]))return o;return Math.random()*n}var e,r,n,i=y.length,u=b.length,h=c[0],m=c[1];for(e=0;e<i;++e)(n=y[e]).index=e,n.weight=0;for(e=0;e<u;++e)n=b[e],\"number\"==typeof n.source&&(n.source=y[n.source]),\"number\"==typeof n.target&&(n.target=y[n.target]),++n.source.weight,++n.target.weight;for(e=0;e<i;++e)n=y[e],isNaN(n.x)&&(n.x=t(\"x\",h)),isNaN(n.y)&&(n.y=t(\"y\",m)),isNaN(n.px)&&(n.px=n.x),isNaN(n.py)&&(n.py=n.y);if(a=[],\"function\"==typeof f)for(e=0;e<u;++e)a[e]=+f.call(this,b[e],e);else for(e=0;e<u;++e)a[e]=f;if(o=[],\"function\"==typeof d)for(e=0;e<u;++e)o[e]=+d.call(this,b[e],e);else for(e=0;e<u;++e)o[e]=d;if(s=[],\"function\"==typeof p)for(e=0;e<i;++e)s[e]=+p.call(this,y[e],e);else for(e=0;e<i;++e)s[e]=p;return l.resume()},l.resume=function(){return l.alpha(.1)},l.stop=function(){return l.alpha(0)},l.drag=function(){if(n||(n=uo.behavior.drag().origin(x).on(\"dragstart.force\",ei).on(\"drag.force\",e).on(\"dragend.force\",ri)),!arguments.length)return n;this.on(\"mouseover.force\",ni).on(\"mouseout.force\",ii).call(n)},uo.rebind(l,u,\"on\")};var vl=20,gl=1,yl=1/0;uo.layout.hierarchy=function(){function t(i){var a,o=[i],s=[];for(i.depth=0;null!=(a=o.pop());)if(s.push(a),(u=r.call(t,a,a.depth))&&(l=u.length)){for(var l,u,c;--l>=0;)o.push(c=u[l]),c.parent=a,c.depth=a.depth+1;n&&(a.value=0),a.children=u}else n&&(a.value=+n.call(t,a,a.depth)||0),delete a.children;return li(i,function(t){var r,i;e&&(r=t.children)&&r.sort(e),n&&(i=t.parent)&&(i.value+=t.value)}),s}var e=hi,r=ui,n=ci;return t.sort=function(r){return arguments.length?(e=r,t):e},t.children=function(e){return arguments.length?(r=e,t):r},t.value=function(e){return arguments.length?(n=e,t):n},t.revalue=function(e){return n&&(si(e,function(t){t.children&&(t.value=0)}),li(e,function(e){var r;e.children||(e.value=+n.call(t,e,e.depth)||0),(r=e.parent)&&(r.value+=e.value)})),e},t},uo.layout.partition=function(){function t(e,r,n,i){var a=e.children;if(e.x=r,e.y=e.depth*i,e.dx=n,e.dy=i,a&&(o=a.length)){var o,s,l,u=-1;for(n=e.value?n/e.value:0;++u<o;)t(s=a[u],r,l=s.value*n,i),r+=l}}function e(t){var r=t.children,n=0;if(r&&(i=r.length))for(var i,a=-1;++a<i;)n=Math.max(n,e(r[a]));return 1+n}function r(r,a){var o=n.call(this,r,a);return t(o[0],0,i[0],i[1]/e(o[0])),o}var n=uo.layout.hierarchy(),i=[1,1];return r.size=function(t){return arguments.length?(i=t,r):i},oi(r,n)},uo.layout.pie=function(){function t(o){var s,l=o.length,u=o.map(function(r,n){return+e.call(t,r,n)}),c=+(\"function\"==typeof n?n.apply(this,arguments):n),h=(\"function\"==typeof i?i.apply(this,arguments):i)-c,f=Math.min(Math.abs(h)/l,+(\"function\"==typeof a?a.apply(this,arguments):a)),d=f*(h<0?-1:1),p=uo.sum(u),m=p?(h-l*d)/p:0,v=uo.range(l),g=[];return null!=r&&v.sort(r===bl?function(t,e){return u[e]-u[t]}:function(t,e){return r(o[t],o[e])}),v.forEach(function(t){g[t]={data:o[t],value:s=u[t],startAngle:c,endAngle:c+=s*m+d,padAngle:f}}),g}var e=Number,r=bl,n=0,i=Bo,a=0;return t.value=function(r){return arguments.length?(e=r,t):e},t.sort=function(e){return arguments.length?(r=e,t):r},t.startAngle=function(e){return arguments.length?(n=e,t):n},t.endAngle=function(e){return arguments.length?(i=e,t):i},t.padAngle=function(e){return arguments.length?(a=e,t):a},t};var bl={};uo.layout.stack=function(){function t(s,l){if(!(f=s.length))return s;var u=s.map(function(r,n){return e.call(t,r,n)}),c=u.map(function(e){return e.map(function(e,r){return[a.call(t,e,r),o.call(t,e,r)]})}),h=r.call(t,c,l);u=uo.permute(u,h),c=uo.permute(c,h);var f,d,p,m,v=n.call(t,c,l),g=u[0].length;for(p=0;p<g;++p)for(i.call(t,u[0][p],m=v[p],c[0][p][1]),d=1;d<f;++d)i.call(t,u[d][p],m+=c[d-1][p][1],c[d][p][1]);return s}var e=x,r=vi,n=gi,i=mi,a=di,o=pi;return t.values=function(r){return arguments.length?(e=r,t):e},t.order=function(e){return arguments.length?(r=\"function\"==typeof e?e:xl.get(e)||vi,t):r},t.offset=function(e){return arguments.length?(n=\"function\"==typeof e?e:_l.get(e)||gi,t):n},t.x=function(e){return arguments.length?(a=e,t):a},t.y=function(e){return arguments.length?(o=e,t):o},t.out=function(e){return arguments.length?(i=e,t):i},t};var xl=uo.map({\"inside-out\":function(t){var e,r,n=t.length,i=t.map(yi),a=t.map(bi),o=uo.range(n).sort(function(t,e){return i[t]-i[e]}),s=0,l=0,u=[],c=[];for(e=0;e<n;++e)r=o[e],s<l?(s+=a[r],u.push(r)):(l+=a[r],c.push(r));return c.reverse().concat(u)},reverse:function(t){return uo.range(t.length).reverse()},default:vi}),_l=uo.map({silhouette:function(t){var e,r,n,i=t.length,a=t[0].length,o=[],s=0,l=[];for(r=0;r<a;++r){for(e=0,n=0;e<i;e++)n+=t[e][r][1];n>s&&(s=n),o.push(n)}for(r=0;r<a;++r)l[r]=(s-o[r])/2;return l},wiggle:function(t){var e,r,n,i,a,o,s,l,u,c=t.length,h=t[0],f=h.length,d=[];for(d[0]=l=u=0,r=1;r<f;++r){for(e=0,i=0;e<c;++e)i+=t[e][r][1];for(e=0,a=0,s=h[r][0]-h[r-1][0];e<c;++e){for(n=0,o=(t[e][r][1]-t[e][r-1][1])/(2*s);n<e;++n)o+=(t[n][r][1]-t[n][r-1][1])/s;a+=o*t[e][r][1]}d[r]=l-=i?a/i*s:0,l<u&&(u=l)}for(r=0;r<f;++r)d[r]-=u;return d},expand:function(t){var e,r,n,i=t.length,a=t[0].length,o=1/i,s=[];for(r=0;r<a;++r){for(e=0,n=0;e<i;e++)n+=t[e][r][1];if(n)for(e=0;e<i;e++)t[e][r][1]/=n;else for(e=0;e<i;e++)t[e][r][1]=o}for(r=0;r<a;++r)s[r]=0;return s},zero:gi});uo.layout.histogram=function(){function t(t,a){for(var o,s,l=[],u=t.map(r,this),c=n.call(this,u,a),h=i.call(this,c,u,a),a=-1,f=u.length,d=h.length-1,p=e?1:1/f;++a<d;)o=l[a]=[],o.dx=h[a+1]-(o.x=h[a]),o.y=0;if(d>0)for(a=-1;++a<f;)(s=u[a])>=c[0]&&s<=c[1]&&(o=l[uo.bisect(h,s,1,d)-1],o.y+=p,o.push(t[a]));return l}var e=!0,r=Number,n=Mi,i=_i;return t.value=function(e){return arguments.length?(r=e,t):r},t.range=function(e){return arguments.length?(n=Et(e),t):n},t.bins=function(e){return arguments.length?(i=\"number\"==typeof e?function(t){return wi(t,e)}:Et(e),t):i},t.frequency=function(r){return arguments.length?(e=!!r,t):e},t},uo.layout.pack=function(){function t(t,a){var o=r.call(this,t,a),s=o[0],l=i[0],u=i[1],c=null==e?Math.sqrt:\"function\"==typeof e?e:function(){return e};if(s.x=s.y=0,li(s,function(t){t.r=+c(t.value)}),li(s,Ei),n){var h=n*(e?1:Math.max(2*s.r/l,2*s.r/u))/2;li(s,function(t){t.r+=h}),li(s,Ei),li(s,function(t){t.r-=h})}return Ii(s,l/2,u/2,e?1:1/Math.max(2*s.r/l,2*s.r/u)),o}var e,r=uo.layout.hierarchy().sort(ki),n=0,i=[1,1];return t.size=function(e){return arguments.length?(i=e,t):i},t.radius=function(r){return arguments.length?(e=null==r||\"function\"==typeof r?r:+r,t):e},t.padding=function(e){return arguments.length?(n=+e,t):n},oi(t,r)},uo.layout.tree=function(){function t(t,i){var c=o.call(this,t,i),h=c[0],f=e(h);if(li(f,r),f.parent.m=-f.z,si(f,n),u)si(h,a);else{var d=h,p=h,m=h;si(h,function(t){t.x<d.x&&(d=t),t.x>p.x&&(p=t),t.depth>m.depth&&(m=t)});var v=s(d,p)/2-d.x,g=l[0]/(p.x+s(p,d)/2+v),y=l[1]/(m.depth||1);si(h,function(t){t.x=(t.x+v)*g,t.y=t.depth*y})}return c}function e(t){for(var e,r={A:null,children:[t]},n=[r];null!=(e=n.pop());)for(var i,a=e.children,o=0,s=a.length;o<s;++o)n.push((a[o]=i={_:a[o],parent:e,children:(i=a[o].children)&&i.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:o}).a=i);return r.children[0]}function r(t){var e=t.children,r=t.parent.children,n=t.i?r[t.i-1]:null;if(e.length){Fi(t);var a=(e[0].z+e[e.length-1].z)/2;n?(t.z=n.z+s(t._,n._),t.m=t.z-a):t.z=a}else n&&(t.z=n.z+s(t._,n._));t.parent.A=i(t,n,t.parent.A||r[0])}function n(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function i(t,e,r){if(e){for(var n,i=t,a=t,o=e,l=i.parent.children[0],u=i.m,c=a.m,h=o.m,f=l.m;o=Oi(o),i=Pi(i),o&&i;)l=Pi(l),a=Oi(a),a.a=t,n=o.z+h-i.z-u+s(o._,i._),n>0&&(Ri(ji(o,t,r),t,n),u+=n,c+=n),h+=o.m,u+=i.m,f+=l.m,c+=a.m;o&&!Oi(a)&&(a.t=o,a.m+=h-c),i&&!Pi(l)&&(l.t=i,l.m+=u-f,r=t)}return r}function a(t){t.x*=l[0],t.y=t.depth*l[1]}var o=uo.layout.hierarchy().sort(null).value(null),s=Di,l=[1,1],u=null;return t.separation=function(e){return arguments.length?(s=e,t):s},t.size=function(e){return arguments.length?(u=null==(l=e)?a:null,t):u?null:l},t.nodeSize=function(e){return arguments.length?(u=null==(l=e)?null:a,t):u?l:null},oi(t,o)},uo.layout.cluster=function(){function t(t,a){var o,s=e.call(this,t,a),l=s[0],u=0;li(l,function(t){var e=t.children;e&&e.length?(t.x=Bi(e),t.y=Ni(e)):(t.x=o?u+=r(t,o):0,t.y=0,o=t)});var c=Ui(l),h=Vi(l),f=c.x-r(c,h)/2,d=h.x+r(h,c)/2;return li(l,i?function(t){t.x=(t.x-l.x)*n[0],t.y=(l.y-t.y)*n[1]}:function(t){t.x=(t.x-f)/(d-f)*n[0],t.y=(1-(l.y?t.y/l.y:1))*n[1]}),s}var e=uo.layout.hierarchy().sort(null).value(null),r=Di,n=[1,1],i=!1;return t.separation=function(e){return arguments.length?(r=e,t):r},t.size=function(e){return arguments.length?(i=null==(n=e),t):i?null:n},t.nodeSize=function(e){return arguments.length?(i=null!=(n=e),t):i?n:null},oi(t,e)},uo.layout.treemap=function(){function t(t,e){for(var r,n,i=-1,a=t.length;++i<a;)n=(r=t[i]).value*(e<0?0:e),r.area=isNaN(n)||n<=0?0:n}function e(r){var a=r.children;if(a&&a.length){var o,s,l,u=h(r),c=[],f=a.slice(),p=1/0,m=\"slice\"===d?u.dx:\"dice\"===d?u.dy:\"slice-dice\"===d?1&r.depth?u.dy:u.dx:Math.min(u.dx,u.dy);for(t(f,u.dx*u.dy/r.value),c.area=0;(l=f.length)>0;)c.push(o=f[l-1]),c.area+=o.area,\"squarify\"!==d||(s=n(c,m))<=p?(f.pop(),p=s):(c.area-=c.pop().area,i(c,m,u,!1),m=Math.min(u.dx,u.dy),c.length=c.area=0,p=1/0);c.length&&(i(c,m,u,!0),c.length=c.area=0),a.forEach(e)}}function r(e){var n=e.children;if(n&&n.length){var a,o=h(e),s=n.slice(),l=[];for(t(s,o.dx*o.dy/e.value),l.area=0;a=s.pop();)l.push(a),l.area+=a.area,null!=a.z&&(i(l,a.z?o.dx:o.dy,o,!s.length),l.length=l.area=0);n.forEach(r)}}function n(t,e){for(var r,n=t.area,i=0,a=1/0,o=-1,s=t.length;++o<s;)(r=t[o].area)&&(r<a&&(a=r),r>i&&(i=r));return n*=n,e*=e,n?Math.max(e*i*p/n,n/(e*a*p)):1/0}function i(t,e,r,n){var i,a=-1,o=t.length,s=r.x,u=r.y,c=e?l(t.area/e):0;if(e==r.dx){for((n||c>r.dy)&&(c=r.dy);++a<o;)i=t[a],i.x=s,i.y=u,i.dy=c,s+=i.dx=Math.min(r.x+r.dx-s,c?l(i.area/c):0);i.z=!0,i.dx+=r.x+r.dx-s,r.y+=c,r.dy-=c}else{for((n||c>r.dx)&&(c=r.dx);++a<o;)i=t[a],i.x=s,i.y=u,i.dx=c,u+=i.dy=Math.min(r.y+r.dy-u,c?l(i.area/c):0);i.z=!1,i.dy+=r.y+r.dy-u,r.x+=c,r.dx-=c}}function a(n){var i=o||s(n),a=i[0];return a.x=a.y=0,a.value?(a.dx=u[0],a.dy=u[1]):a.dx=a.dy=0,o&&s.revalue(a),t([a],a.dx*a.dy/a.value),(o?r:e)(a),f&&(o=i),i}var o,s=uo.layout.hierarchy(),l=Math.round,u=[1,1],c=null,h=Hi,f=!1,d=\"squarify\",p=.5*(1+Math.sqrt(5));return a.size=function(t){return arguments.length?(u=t,a):u},a.padding=function(t){function e(e){var r=t.call(a,e,e.depth);return null==r?Hi(e):qi(e,\"number\"==typeof r?[r,r,r,r]:r)}function r(e){return qi(e,t)}if(!arguments.length)return c;var n;return h=null==(c=t)?Hi:\"function\"==(n=typeof t)?e:\"number\"===n?(t=[t,t,t,t],r):r,a},a.round=function(t){return arguments.length?(l=t?Math.round:Number,a):l!=Number},a.sticky=function(t){return arguments.length?(f=t,o=null,a):f},a.ratio=function(t){return arguments.length?(p=t,a):p},a.mode=function(t){return arguments.length?(d=t+\"\",a):d},oi(a,s)},uo.random={normal:function(t,e){var r=arguments.length;return r<2&&(e=1),r<1&&(t=0),function(){var r,n,i;do{r=2*Math.random()-1,n=2*Math.random()-1,i=r*r+n*n}while(!i||i>1);return t+e*r*Math.sqrt(-2*Math.log(i)/i)}},logNormal:function(){var t=uo.random.normal.apply(uo,arguments);return function(){return Math.exp(t())}},bates:function(t){var e=uo.random.irwinHall(t);return function(){return e()/t}},irwinHall:function(t){return function(){for(var e=0,r=0;r<t;r++)e+=Math.random();return e}}},uo.scale={};var wl={floor:x,ceil:x};uo.scale.linear=function(){return Ki([0,1],[0,1],_n,!1)};var Ml={s:1,g:1,p:1,r:1,e:1};uo.scale.log=function(){return aa(uo.scale.linear().domain([0,1]),10,!0,[1,10])};var kl=uo.format(\".0e\"),Al={floor:function(t){return-Math.ceil(-t)},ceil:function(t){return-Math.floor(-t)}};uo.scale.pow=function(){return oa(uo.scale.linear(),1,[0,1])},uo.scale.sqrt=function(){return uo.scale.pow().exponent(.5)},uo.scale.ordinal=function(){return la([],{t:\"range\",a:[[]]})},uo.scale.category10=function(){return uo.scale.ordinal().range(Tl)},uo.scale.category20=function(){return uo.scale.ordinal().range(Sl)},uo.scale.category20b=function(){return uo.scale.ordinal().range(El)},uo.scale.category20c=function(){return uo.scale.ordinal().range(Ll)};var Tl=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(_t),Sl=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(_t),El=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(_t),Ll=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(_t);uo.scale.quantile=function(){return ua([],[])},uo.scale.quantize=function(){return ca(0,1,[0,1])},uo.scale.threshold=function(){return ha([.5],[0,1])},uo.scale.identity=function(){return fa([0,1])},uo.svg={},uo.svg.arc=function(){function t(){var t=Math.max(0,+r.apply(this,arguments)),u=Math.max(0,+n.apply(this,arguments)),c=o.apply(this,arguments)-Vo,h=s.apply(this,arguments)-Vo,f=Math.abs(h-c),d=c>h?0:1;if(u<t&&(p=u,u=t,t=p),f>=Uo)return e(u,d)+(t?e(t,1-d):\"\")+\"Z\";var p,m,v,g,y,b,x,_,w,M,k,A,T=0,S=0,E=[];if((g=(+l.apply(this,arguments)||0)/2)&&(v=a===Cl?Math.sqrt(t*t+u*u):+a.apply(this,arguments),d||(S*=-1),u&&(S=nt(v/u*Math.sin(g))),t&&(T=nt(v/t*Math.sin(g)))),u){y=u*Math.cos(c+S),b=u*Math.sin(c+S),x=u*Math.cos(h-S),_=u*Math.sin(h-S);var L=Math.abs(h-c-2*S)<=No?0:1;if(S&&ba(y,b,x,_)===d^L){var C=(c+h)/2;y=u*Math.cos(C),b=u*Math.sin(C),x=_=null}}else y=b=0;if(t){w=t*Math.cos(h-T),M=t*Math.sin(h-T),k=t*Math.cos(c+T),A=t*Math.sin(c+T);var I=Math.abs(c-h+2*T)<=No?0:1;if(T&&ba(w,M,k,A)===1-d^I){var z=(c+h)/2;w=t*Math.cos(z),M=t*Math.sin(z),k=A=null}}else w=M=0;if(f>Fo&&(p=Math.min(Math.abs(u-t)/2,+i.apply(this,arguments)))>.001){m=t<u^d?0:1;var D=p,P=p;if(f<No){var O=null==k?[w,M]:null==x?[y,b]:Or([y,b],[k,A],[x,_],[w,M]),R=y-O[0],F=b-O[1],j=x-O[0],N=_-O[1],B=1/Math.sin(Math.acos((R*j+F*N)/(Math.sqrt(R*R+F*F)*Math.sqrt(j*j+N*N)))/2),U=Math.sqrt(O[0]*O[0]+O[1]*O[1]);P=Math.min(p,(t-U)/(B-1)),D=Math.min(p,(u-U)/(B+1))}if(null!=x){var V=xa(null==k?[w,M]:[k,A],[y,b],u,D,d),H=xa([x,_],[w,M],u,D,d);p===D?E.push(\"M\",V[0],\"A\",D,\",\",D,\" 0 0,\",m,\" \",V[1],\"A\",u,\",\",u,\" 0 \",1-d^ba(V[1][0],V[1][1],H[1][0],H[1][1]),\",\",d,\" \",H[1],\"A\",D,\",\",D,\" 0 0,\",m,\" \",H[0]):E.push(\"M\",V[0],\"A\",D,\",\",D,\" 0 1,\",m,\" \",H[0])}else E.push(\"M\",y,\",\",b);if(null!=k){var q=xa([y,b],[k,A],t,-P,d),G=xa([w,M],null==x?[y,b]:[x,_],t,-P,d);p===P?E.push(\"L\",G[0],\"A\",P,\",\",P,\" 0 0,\",m,\" \",G[1],\"A\",t,\",\",t,\" 0 \",d^ba(G[1][0],G[1][1],q[1][0],q[1][1]),\",\",1-d,\" \",q[1],\"A\",P,\",\",P,\" 0 0,\",m,\" \",q[0]):E.push(\"L\",G[0],\"A\",P,\",\",P,\" 0 0,\",m,\" \",q[0])}else E.push(\"L\",w,\",\",M)}else E.push(\"M\",y,\",\",b),null!=x&&E.push(\"A\",u,\",\",u,\" 0 \",L,\",\",d,\" \",x,\",\",_),E.push(\"L\",w,\",\",M),null!=k&&E.push(\"A\",t,\",\",t,\" 0 \",I,\",\",1-d,\" \",k,\",\",A);return E.push(\"Z\"),E.join(\"\")}function e(t,e){return\"M0,\"+t+\"A\"+t+\",\"+t+\" 0 1,\"+e+\" 0,\"+-t+\"A\"+t+\",\"+t+\" 0 1,\"+e+\" 0,\"+t}var r=pa,n=ma,i=da,a=Cl,o=va,s=ga,l=ya;return t.innerRadius=function(e){return arguments.length?(r=Et(e),t):r},t.outerRadius=function(e){return arguments.length?(n=Et(e),t):n},t.cornerRadius=function(e){return arguments.length?(i=Et(e),t):i},t.padRadius=function(e){return arguments.length?(a=e==Cl?Cl:Et(e),t):a},t.startAngle=function(e){return arguments.length?(o=Et(e),t):o},t.endAngle=function(e){return arguments.length?(s=Et(e),t):s},t.padAngle=function(e){return arguments.length?(l=Et(e),t):l},t.centroid=function(){var t=(+r.apply(this,arguments)+ +n.apply(this,arguments))/2,e=(+o.apply(this,arguments)+ +s.apply(this,arguments))/2-Vo;return[Math.cos(e)*t,Math.sin(e)*t]},t};var Cl=\"auto\";uo.svg.line=function(){return _a(x)};var Il=uo.map({linear:wa,\"linear-closed\":Ma,step:ka,\"step-before\":Aa,\"step-after\":Ta,basis:za,\"basis-open\":Da,\"basis-closed\":Pa,bundle:Oa,cardinal:La,\"cardinal-open\":Sa,\"cardinal-closed\":Ea,monotone:Ua});Il.forEach(function(t,e){e.key=t,e.closed=/-closed$/.test(t)});var zl=[0,2/3,1/3,0],Dl=[0,1/3,2/3,0],Pl=[0,1/6,2/3,1/6];uo.svg.line.radial=function(){var t=_a(Va);return t.radius=t.x,delete t.x,t.angle=t.y,delete t.y,t},Aa.reverse=Ta,Ta.reverse=Aa,uo.svg.area=function(){return Ha(x)},uo.svg.area.radial=function(){var t=Ha(Va);return t.radius=t.x,delete t.x,t.innerRadius=t.x0,delete t.x0,t.outerRadius=t.x1,delete t.x1,t.angle=t.y,delete t.y,t.startAngle=t.y0,delete t.y0,t.endAngle=t.y1,delete t.y1,t},uo.svg.chord=function(){function t(t,s){var l=e(this,a,t,s),u=e(this,o,t,s);return\"M\"+l.p0+n(l.r,l.p1,l.a1-l.a0)+(r(l,u)?i(l.r,l.p1,l.r,l.p0):i(l.r,l.p1,u.r,u.p0)+n(u.r,u.p1,u.a1-u.a0)+i(u.r,u.p1,l.r,l.p0))+\"Z\"}function e(t,e,r,n){var i=e.call(t,r,n),a=s.call(t,i,n),o=l.call(t,i,n)-Vo,c=u.call(t,i,n)-Vo;return{r:a,a0:o,a1:c,p0:[a*Math.cos(o),a*Math.sin(o)],p1:[a*Math.cos(c),a*Math.sin(c)]}}function r(t,e){return t.a0==e.a0&&t.a1==e.a1}function n(t,e,r){return\"A\"+t+\",\"+t+\" 0 \"+ +(r>No)+\",1 \"+e}function i(t,e,r,n){return\"Q 0,0 \"+n}var a=xr,o=_r,s=qa,l=va,u=ga;return t.radius=function(e){return arguments.length?(s=Et(e),t):s},t.source=function(e){return arguments.length?(a=Et(e),t):a},t.target=function(e){return arguments.length?(o=Et(e),t):o},t.startAngle=function(e){return arguments.length?(l=Et(e),t):l},t.endAngle=function(e){return arguments.length?(u=Et(e),t):u},t},uo.svg.diagonal=function(){function t(t,i){var a=e.call(this,t,i),o=r.call(this,t,i),s=(a.y+o.y)/2,l=[a,{x:a.x,y:s},{x:o.x,y:s},o];return l=l.map(n),\"M\"+l[0]+\"C\"+l[1]+\" \"+l[2]+\" \"+l[3]}var e=xr,r=_r,n=Ga;return t.source=function(r){return arguments.length?(e=Et(r),t):e},t.target=function(e){return arguments.length?(r=Et(e),t):r},t.projection=function(e){return arguments.length?(n=e,t):n},t},uo.svg.diagonal.radial=function(){var t=uo.svg.diagonal(),e=Ga,r=t.projection;return t.projection=function(t){return arguments.length?r(Ya(e=t)):e},t},uo.svg.symbol=function(){function t(t,n){return(Ol.get(e.call(this,t,n))||Za)(r.call(this,t,n))}var e=Xa,r=Wa;return t.type=function(r){return arguments.length?(e=Et(r),t):e},t.size=function(e){return arguments.length?(r=Et(e),t):r},t};var Ol=uo.map({circle:Za,cross:function(t){var e=Math.sqrt(t/5)/2;return\"M\"+-3*e+\",\"+-e+\"H\"+-e+\"V\"+-3*e+\"H\"+e+\"V\"+-e+\"H\"+3*e+\"V\"+e+\"H\"+e+\"V\"+3*e+\"H\"+-e+\"V\"+e+\"H\"+-3*e+\"Z\"},diamond:function(t){var e=Math.sqrt(t/(2*Fl)),r=e*Fl;return\"M0,\"+-e+\"L\"+r+\",0 0,\"+e+\" \"+-r+\",0Z\"},square:function(t){var e=Math.sqrt(t)/2;return\"M\"+-e+\",\"+-e+\"L\"+e+\",\"+-e+\" \"+e+\",\"+e+\" \"+-e+\",\"+e+\"Z\"},\"triangle-down\":function(t){var e=Math.sqrt(t/Rl),r=e*Rl/2;return\"M0,\"+r+\"L\"+e+\",\"+-r+\" \"+-e+\",\"+-r+\"Z\"},\"triangle-up\":function(t){var e=Math.sqrt(t/Rl),r=e*Rl/2;return\"M0,\"+-r+\"L\"+e+\",\"+r+\" \"+-e+\",\"+r+\"Z\"}});uo.svg.symbolTypes=Ol.keys();var Rl=Math.sqrt(3),Fl=Math.tan(30*Ho);Lo.transition=function(t){for(var e,r,n=jl||++Vl,i=to(t),a=[],o=Nl||{time:Date.now(),ease:En,delay:0,duration:250},s=-1,l=this.length;++s<l;){a.push(e=[]);for(var u=this[s],c=-1,h=u.length;++c<h;)(r=u[c])&&eo(r,c,i,n,o),e.push(r)}return Ka(a,i,n)},Lo.interrupt=function(t){return this.each(null==t?Bl:Ja(to(t)))};var jl,Nl,Bl=Ja(to()),Ul=[],Vl=0;Ul.call=Lo.call,Ul.empty=Lo.empty,Ul.node=Lo.node,Ul.size=Lo.size,uo.transition=function(t,e){\n", "return t&&t.transition?jl?t.transition(e):t:uo.selection().transition(t)},uo.transition.prototype=Ul,Ul.select=function(t){var e,r,n,i=this.id,a=this.namespace,o=[];t=C(t);for(var s=-1,l=this.length;++s<l;){o.push(e=[]);for(var u=this[s],c=-1,h=u.length;++c<h;)(n=u[c])&&(r=t.call(n,n.__data__,c,s))?(\"__data__\"in n&&(r.__data__=n.__data__),eo(r,c,a,i,n[a][i]),e.push(r)):e.push(null)}return Ka(o,a,i)},Ul.selectAll=function(t){var e,r,n,i,a,o=this.id,s=this.namespace,l=[];t=I(t);for(var u=-1,c=this.length;++u<c;)for(var h=this[u],f=-1,d=h.length;++f<d;)if(n=h[f]){a=n[s][o],r=t.call(n,n.__data__,f,u),l.push(e=[]);for(var p=-1,m=r.length;++p<m;)(i=r[p])&&eo(i,p,s,o,a),e.push(i)}return Ka(l,s,o)},Ul.filter=function(t){var e,r,n,i=[];\"function\"!=typeof t&&(t=H(t));for(var a=0,o=this.length;a<o;a++){i.push(e=[]);for(var r=this[a],s=0,l=r.length;s<l;s++)(n=r[s])&&t.call(n,n.__data__,s,a)&&e.push(n)}return Ka(i,this.namespace,this.id)},Ul.tween=function(t,e){var r=this.id,n=this.namespace;return arguments.length<2?this.node()[n][r].tween.get(t):G(this,null==e?function(e){e[n][r].tween.remove(t)}:function(i){i[n][r].tween.set(t,e)})},Ul.attr=function(t,e){function r(){this.removeAttribute(s)}function n(){this.removeAttributeNS(s.space,s.local)}function i(t){return null==t?r:(t+=\"\",function(){var e,r=this.getAttribute(s);return r!==t&&(e=o(r,t),function(t){this.setAttribute(s,e(t))})})}function a(t){return null==t?n:(t+=\"\",function(){var e,r=this.getAttributeNS(s.space,s.local);return r!==t&&(e=o(r,t),function(t){this.setAttributeNS(s.space,s.local,e(t))})})}if(arguments.length<2){for(e in t)this.attr(e,t[e]);return this}var o=\"transform\"==t?Zn:_n,s=uo.ns.qualify(t);return Qa(this,\"attr.\"+t,e,s.local?a:i)},Ul.attrTween=function(t,e){function r(t,r){var n=e.call(this,t,r,this.getAttribute(i));return n&&function(t){this.setAttribute(i,n(t))}}function n(t,r){var n=e.call(this,t,r,this.getAttributeNS(i.space,i.local));return n&&function(t){this.setAttributeNS(i.space,i.local,n(t))}}var i=uo.ns.qualify(t);return this.tween(\"attr.\"+t,i.local?n:r)},Ul.style=function(t,e,r){function i(){this.style.removeProperty(t)}function a(e){return null==e?i:(e+=\"\",function(){var i,a=n(this).getComputedStyle(this,null).getPropertyValue(t);return a!==e&&(i=_n(a,e),function(e){this.style.setProperty(t,i(e),r)})})}var o=arguments.length;if(o<3){if(\"string\"!=typeof t){o<2&&(e=\"\");for(r in t)this.style(r,t[r],e);return this}r=\"\"}return Qa(this,\"style.\"+t,e,a)},Ul.styleTween=function(t,e,r){function i(i,a){var o=e.call(this,i,a,n(this).getComputedStyle(this,null).getPropertyValue(t));return o&&function(e){this.style.setProperty(t,o(e),r)}}return arguments.length<3&&(r=\"\"),this.tween(\"style.\"+t,i)},Ul.text=function(t){return Qa(this,\"text\",t,$a)},Ul.remove=function(){var t=this.namespace;return this.each(\"end.transition\",function(){var e;this[t].count<2&&(e=this.parentNode)&&e.removeChild(this)})},Ul.ease=function(t){var e=this.id,r=this.namespace;return arguments.length<1?this.node()[r][e].ease:(\"function\"!=typeof t&&(t=uo.ease.apply(uo,arguments)),G(this,function(n){n[r][e].ease=t}))},Ul.delay=function(t){var e=this.id,r=this.namespace;return arguments.length<1?this.node()[r][e].delay:G(this,\"function\"==typeof t?function(n,i,a){n[r][e].delay=+t.call(n,n.__data__,i,a)}:(t=+t,function(n){n[r][e].delay=t}))},Ul.duration=function(t){var e=this.id,r=this.namespace;return arguments.length<1?this.node()[r][e].duration:G(this,\"function\"==typeof t?function(n,i,a){n[r][e].duration=Math.max(1,t.call(n,n.__data__,i,a))}:(t=Math.max(1,t),function(n){n[r][e].duration=t}))},Ul.each=function(t,e){var r=this.id,n=this.namespace;if(arguments.length<2){var i=Nl,a=jl;try{jl=r,G(this,function(e,i,a){Nl=e[n][r],t.call(e,e.__data__,i,a)})}finally{Nl=i,jl=a}}else G(this,function(i){var a=i[n][r];(a.event||(a.event=uo.dispatch(\"start\",\"end\",\"interrupt\"))).on(t,e)});return this},Ul.transition=function(){for(var t,e,r,n,i=this.id,a=++Vl,o=this.namespace,s=[],l=0,u=this.length;l<u;l++){s.push(t=[]);for(var e=this[l],c=0,h=e.length;c<h;c++)(r=e[c])&&(n=r[o][i],eo(r,c,o,a,{time:n.time,ease:n.ease,delay:n.delay+n.duration,duration:n.duration})),t.push(r)}return Ka(s,o,a)},uo.svg.axis=function(){function t(t){t.each(function(){var t,u=uo.select(this),c=this.__chart__||r,h=this.__chart__=r.copy(),f=null==l?h.ticks?h.ticks.apply(h,s):h.domain():l,d=null==e?h.tickFormat?h.tickFormat.apply(h,s):x:e,p=u.selectAll(\".tick\").data(f,h),m=p.enter().insert(\"g\",\".domain\").attr(\"class\",\"tick\").style(\"opacity\",Fo),v=uo.transition(p.exit()).style(\"opacity\",Fo).remove(),g=uo.transition(p.order()).style(\"opacity\",1),y=Math.max(i,0)+o,b=Yi(h),_=u.selectAll(\".domain\").data([0]),w=(_.enter().append(\"path\").attr(\"class\",\"domain\"),uo.transition(_));m.append(\"line\"),m.append(\"text\");var M,k,A,T,S=m.select(\"line\"),E=g.select(\"line\"),L=p.select(\"text\").text(d),C=m.select(\"text\"),I=g.select(\"text\"),z=\"top\"===n||\"left\"===n?-1:1;if(\"bottom\"===n||\"top\"===n?(t=ro,M=\"x\",A=\"y\",k=\"x2\",T=\"y2\",L.attr(\"dy\",z<0?\"0em\":\".71em\").style(\"text-anchor\",\"middle\"),w.attr(\"d\",\"M\"+b[0]+\",\"+z*a+\"V0H\"+b[1]+\"V\"+z*a)):(t=no,M=\"y\",A=\"x\",k=\"y2\",T=\"x2\",L.attr(\"dy\",\".32em\").style(\"text-anchor\",z<0?\"end\":\"start\"),w.attr(\"d\",\"M\"+z*a+\",\"+b[0]+\"H0V\"+b[1]+\"H\"+z*a)),S.attr(T,z*i),C.attr(A,z*y),E.attr(k,0).attr(T,z*i),I.attr(M,0).attr(A,z*y),h.rangeBand){var D=h,P=D.rangeBand()/2;c=h=function(t){return D(t)+P}}else c.rangeBand?c=h:v.call(t,h,c);m.call(t,c,h),g.call(t,h,h)})}var e,r=uo.scale.linear(),n=Hl,i=6,a=6,o=3,s=[10],l=null;return t.scale=function(e){return arguments.length?(r=e,t):r},t.orient=function(e){return arguments.length?(n=e in ql?e+\"\":Hl,t):n},t.ticks=function(){return arguments.length?(s=ho(arguments),t):s},t.tickValues=function(e){return arguments.length?(l=e,t):l},t.tickFormat=function(r){return arguments.length?(e=r,t):e},t.tickSize=function(e){var r=arguments.length;return r?(i=+e,a=+arguments[r-1],t):i},t.innerTickSize=function(e){return arguments.length?(i=+e,t):i},t.outerTickSize=function(e){return arguments.length?(a=+e,t):a},t.tickPadding=function(e){return arguments.length?(o=+e,t):o},t.tickSubdivide=function(){return arguments.length&&t},t};var Hl=\"bottom\",ql={top:1,right:1,bottom:1,left:1};uo.svg.brush=function(){function t(n){n.each(function(){var n=uo.select(this).style(\"pointer-events\",\"all\").style(\"-webkit-tap-highlight-color\",\"rgba(0,0,0,0)\").on(\"mousedown.brush\",a).on(\"touchstart.brush\",a),o=n.selectAll(\".background\").data([0]);o.enter().append(\"rect\").attr(\"class\",\"background\").style(\"visibility\",\"hidden\").style(\"cursor\",\"crosshair\"),n.selectAll(\".extent\").data([0]).enter().append(\"rect\").attr(\"class\",\"extent\").style(\"cursor\",\"move\");var s=n.selectAll(\".resize\").data(m,x);s.exit().remove(),s.enter().append(\"g\").attr(\"class\",function(t){return\"resize \"+t}).style(\"cursor\",function(t){return Gl[t]}).append(\"rect\").attr(\"x\",function(t){return/[ew]$/.test(t)?-3:null}).attr(\"y\",function(t){return/^[ns]/.test(t)?-3:null}).attr(\"width\",6).attr(\"height\",6).style(\"visibility\",\"hidden\"),s.style(\"display\",t.empty()?\"none\":null);var l,h=uo.transition(n),f=uo.transition(o);u&&(l=Yi(u),f.attr(\"x\",l[0]).attr(\"width\",l[1]-l[0]),r(h)),c&&(l=Yi(c),f.attr(\"y\",l[0]).attr(\"height\",l[1]-l[0]),i(h)),e(h)})}function e(t){t.selectAll(\".resize\").attr(\"transform\",function(t){return\"translate(\"+h[+/e$/.test(t)]+\",\"+f[+/^s/.test(t)]+\")\"})}function r(t){t.select(\".extent\").attr(\"x\",h[0]),t.selectAll(\".extent,.n>rect,.s>rect\").attr(\"width\",h[1]-h[0])}function i(t){t.select(\".extent\").attr(\"y\",f[0]),t.selectAll(\".extent,.e>rect,.w>rect\").attr(\"height\",f[1]-f[0])}function a(){function a(){32==uo.event.keyCode&&(L||(b=null,I[0]-=h[1],I[1]-=f[1],L=2),T())}function m(){32==uo.event.keyCode&&2==L&&(I[0]+=h[1],I[1]+=f[1],L=0,T())}function v(){var t=uo.mouse(_),n=!1;x&&(t[0]+=x[0],t[1]+=x[1]),L||(uo.event.altKey?(b||(b=[(h[0]+h[1])/2,(f[0]+f[1])/2]),I[0]=h[+(t[0]<b[0])],I[1]=f[+(t[1]<b[1])]):b=null),S&&g(t,u,0)&&(r(k),n=!0),E&&g(t,c,1)&&(i(k),n=!0),n&&(e(k),M({type:\"brush\",mode:L?\"move\":\"resize\"}))}function g(t,e,r){var n,i,a=Yi(e),l=a[0],u=a[1],c=I[r],m=r?f:h,v=m[1]-m[0];if(L&&(l-=c,u-=v+c),n=(r?p:d)?Math.max(l,Math.min(u,t[r])):t[r],L?i=(n+=c)+v:(b&&(c=Math.max(l,Math.min(u,2*b[r]-n))),c<n?(i=n,n=c):i=c),m[0]!=n||m[1]!=i)return r?s=null:o=null,m[0]=n,m[1]=i,!0}function y(){v(),k.style(\"pointer-events\",\"all\").selectAll(\".resize\").style(\"display\",t.empty()?\"none\":null),uo.select(\"body\").style(\"cursor\",null),z.on(\"mousemove.brush\",null).on(\"mouseup.brush\",null).on(\"touchmove.brush\",null).on(\"touchend.brush\",null).on(\"keydown.brush\",null).on(\"keyup.brush\",null),C(),M({type:\"brushend\"})}var b,x,_=this,w=uo.select(uo.event.target),M=l.of(_,arguments),k=uo.select(_),A=w.datum(),S=!/^(n|s)$/.test(A)&&u,E=!/^(e|w)$/.test(A)&&c,L=w.classed(\"extent\"),C=K(_),I=uo.mouse(_),z=uo.select(n(_)).on(\"keydown.brush\",a).on(\"keyup.brush\",m);if(uo.event.changedTouches?z.on(\"touchmove.brush\",v).on(\"touchend.brush\",y):z.on(\"mousemove.brush\",v).on(\"mouseup.brush\",y),k.interrupt().selectAll(\"*\").interrupt(),L)I[0]=h[0]-I[0],I[1]=f[0]-I[1];else if(A){var D=+/w$/.test(A),P=+/^n/.test(A);x=[h[1-D]-I[0],f[1-P]-I[1]],I[0]=h[D],I[1]=f[P]}else uo.event.altKey&&(b=I.slice());k.style(\"pointer-events\",\"none\").selectAll(\".resize\").style(\"display\",null),uo.select(\"body\").style(\"cursor\",w.style(\"cursor\")),M({type:\"brushstart\"}),v()}var o,s,l=E(t,\"brushstart\",\"brush\",\"brushend\"),u=null,c=null,h=[0,0],f=[0,0],d=!0,p=!0,m=Yl[0];return t.event=function(t){t.each(function(){var t=l.of(this,arguments),e={x:h,y:f,i:o,j:s},r=this.__chart__||e;this.__chart__=e,jl?uo.select(this).transition().each(\"start.brush\",function(){o=r.i,s=r.j,h=r.x,f=r.y,t({type:\"brushstart\"})}).tween(\"brush:brush\",function(){var r=wn(h,e.x),n=wn(f,e.y);return o=s=null,function(i){h=e.x=r(i),f=e.y=n(i),t({type:\"brush\",mode:\"resize\"})}}).each(\"end.brush\",function(){o=e.i,s=e.j,t({type:\"brush\",mode:\"resize\"}),t({type:\"brushend\"})}):(t({type:\"brushstart\"}),t({type:\"brush\",mode:\"resize\"}),t({type:\"brushend\"}))})},t.x=function(e){return arguments.length?(u=e,m=Yl[!u<<1|!c],t):u},t.y=function(e){return arguments.length?(c=e,m=Yl[!u<<1|!c],t):c},t.clamp=function(e){return arguments.length?(u&&c?(d=!!e[0],p=!!e[1]):u?d=!!e:c&&(p=!!e),t):u&&c?[d,p]:u?d:c?p:null},t.extent=function(e){var r,n,i,a,l;return arguments.length?(u&&(r=e[0],n=e[1],c&&(r=r[0],n=n[0]),o=[r,n],u.invert&&(r=u(r),n=u(n)),n<r&&(l=r,r=n,n=l),r==h[0]&&n==h[1]||(h=[r,n])),c&&(i=e[0],a=e[1],u&&(i=i[1],a=a[1]),s=[i,a],c.invert&&(i=c(i),a=c(a)),a<i&&(l=i,i=a,a=l),i==f[0]&&a==f[1]||(f=[i,a])),t):(u&&(o?(r=o[0],n=o[1]):(r=h[0],n=h[1],u.invert&&(r=u.invert(r),n=u.invert(n)),n<r&&(l=r,r=n,n=l))),c&&(s?(i=s[0],a=s[1]):(i=f[0],a=f[1],c.invert&&(i=c.invert(i),a=c.invert(a)),a<i&&(l=i,i=a,a=l))),u&&c?[[r,i],[n,a]]:u?[r,n]:c&&[i,a])},t.clear=function(){return t.empty()||(h=[0,0],f=[0,0],o=s=null),t},t.empty=function(){return!!u&&h[0]==h[1]||!!c&&f[0]==f[1]},uo.rebind(t,l,\"on\")};var Gl={n:\"ns-resize\",e:\"ew-resize\",s:\"ns-resize\",w:\"ew-resize\",nw:\"nwse-resize\",ne:\"nesw-resize\",se:\"nwse-resize\",sw:\"nesw-resize\"},Yl=[[\"n\",\"e\",\"s\",\"w\",\"nw\",\"ne\",\"se\",\"sw\"],[\"e\",\"w\"],[\"n\",\"s\"],[]],Wl=fs.format=ys.timeFormat,Xl=Wl.utc,Zl=Xl(\"%Y-%m-%dT%H:%M:%S.%LZ\");Wl.iso=Date.prototype.toISOString&&+new Date(\"2000-01-01T00:00:00.000Z\")?io:Zl,io.parse=function(t){var e=new Date(t);return isNaN(e)?null:e},io.toString=Zl.toString,fs.second=Vt(function(t){return new ds(1e3*Math.floor(t/1e3))},function(t,e){t.setTime(t.getTime()+1e3*Math.floor(e))},function(t){return t.getSeconds()}),fs.seconds=fs.second.range,fs.seconds.utc=fs.second.utc.range,fs.minute=Vt(function(t){return new ds(6e4*Math.floor(t/6e4))},function(t,e){t.setTime(t.getTime()+6e4*Math.floor(e))},function(t){return t.getMinutes()}),fs.minutes=fs.minute.range,fs.minutes.utc=fs.minute.utc.range,fs.hour=Vt(function(t){var e=t.getTimezoneOffset()/60;return new ds(36e5*(Math.floor(t/36e5-e)+e))},function(t,e){t.setTime(t.getTime()+36e5*Math.floor(e))},function(t){return t.getHours()}),fs.hours=fs.hour.range,fs.hours.utc=fs.hour.utc.range,fs.month=Vt(function(t){return t=fs.day(t),t.setDate(1),t},function(t,e){t.setMonth(t.getMonth()+e)},function(t){return t.getMonth()}),fs.months=fs.month.range,fs.months.utc=fs.month.utc.range;var Jl=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],Kl=[[fs.second,1],[fs.second,5],[fs.second,15],[fs.second,30],[fs.minute,1],[fs.minute,5],[fs.minute,15],[fs.minute,30],[fs.hour,1],[fs.hour,3],[fs.hour,6],[fs.hour,12],[fs.day,1],[fs.day,2],[fs.week,1],[fs.month,1],[fs.month,3],[fs.year,1]],Ql=Wl.multi([[\".%L\",function(t){return t.getMilliseconds()}],[\":%S\",function(t){return t.getSeconds()}],[\"%I:%M\",function(t){return t.getMinutes()}],[\"%I %p\",function(t){return t.getHours()}],[\"%a %d\",function(t){return t.getDay()&&1!=t.getDate()}],[\"%b %d\",function(t){return 1!=t.getDate()}],[\"%B\",function(t){return t.getMonth()}],[\"%Y\",Ie]]),$l={range:function(t,e,r){return uo.range(Math.ceil(t/r)*r,+e,r).map(oo)},floor:x,ceil:x};Kl.year=fs.year,fs.scale=function(){return ao(uo.scale.linear(),Kl,Ql)};var tu=Kl.map(function(t){return[t[0].utc,t[1]]}),eu=Xl.multi([[\".%L\",function(t){return t.getUTCMilliseconds()}],[\":%S\",function(t){return t.getUTCSeconds()}],[\"%I:%M\",function(t){return t.getUTCMinutes()}],[\"%I %p\",function(t){return t.getUTCHours()}],[\"%a %d\",function(t){return t.getUTCDay()&&1!=t.getUTCDate()}],[\"%b %d\",function(t){return 1!=t.getUTCDate()}],[\"%B\",function(t){return t.getUTCMonth()}],[\"%Y\",Ie]]);tu.year=fs.year.utc,fs.scale.utc=function(){return ao(uo.scale.linear(),tu,eu)},uo.text=Lt(function(t){return t.responseText}),uo.json=function(t,e){return Ct(t,\"application/json\",so,e)},uo.html=function(t,e){return Ct(t,\"text/html\",lo,e)},uo.xml=Lt(function(t){return t.responseXML}),\"function\"==typeof t&&t.amd?(this.d3=uo,t(uo)):\"object\"==typeof r&&r.exports?r.exports=uo:this.d3=uo}()},{}],123:[function(t,e,r){\"use strict\";function n(t,e){this.point=t,this.index=e}function i(t,e){for(var r=t.point,n=e.point,i=r.length,a=0;a<i;++a){var o=n[a]-r[a];if(o)return o}return 0}function a(t,e,r){if(1===t)return r?[[-1,0]]:[];var n=e.map(function(t,e){return[t[0],e]});n.sort(function(t,e){return t[0]-e[0]});for(var i=new Array(t-1),a=1;a<t;++a){var o=n[a-1],s=n[a];i[a-1]=[o[1],s[1]]}return r&&i.push([-1,i[0][1]],[i[t-1][1],-1]),i}function o(t,e){var r=t.length;if(0===r)return[];var o=t[0].length;if(o<1)return[];if(1===o)return a(r,t,e);for(var u=new Array(r),c=1,h=0;h<r;++h){for(var f=t[h],d=new Array(o+1),p=0,m=0;m<o;++m){var v=f[m];d[m]=v,p+=v*v}d[o]=p,u[h]=new n(d,h),c=Math.max(p,c)}l(u,i),r=u.length;for(var g=new Array(r+o+1),y=new Array(r+o+1),b=(o+1)*(o+1)*c,x=new Array(o+1),h=0;h<=o;++h)x[h]=0;x[o]=b,g[0]=x.slice(),y[0]=-1;for(var h=0;h<=o;++h){var d=x.slice();d[h]=1,g[h+1]=d,y[h+1]=-1}for(var h=0;h<r;++h){var _=u[h];g[h+o+1]=_.point,y[h+o+1]=_.index}var w=s(g,!1);if(w=e?w.filter(function(t){for(var e=0,r=0;r<=o;++r){var n=y[t[r]];if(n<0&&++e>=2)return!1;t[r]=n}return!0}):w.filter(function(t){for(var e=0;e<=o;++e){var r=y[t[e]];if(r<0)return!1;t[e]=r}return!0}),1&o)for(var h=0;h<w.length;++h){var _=w[h],d=_[0];_[0]=_[1],_[1]=d}return w}var s=t(\"incremental-convex-hull\"),l=t(\"uniq\");e.exports=o},{\"incremental-convex-hull\":290,uniq:543}],124:[function(t,e,r){(function(t){function r(t,e){return d[0]=t,d[1]=e,f[0]}function n(t){return f[0]=t,d[0]}function i(t){return f[0]=t,d[1]}function a(t,e){return d[1]=t,d[0]=e,f[0]}function o(t){return f[0]=t,d[1]}function s(t){return f[0]=t,d[0]}function l(t,e){return p.writeUInt32LE(t,0,!0),p.writeUInt32LE(e,4,!0),p.readDoubleLE(0,!0)}function u(t){return p.writeDoubleLE(t,0,!0),p.readUInt32LE(0,!0)}function c(t){return p.writeDoubleLE(t,0,!0),p.readUInt32LE(4,!0)}var h=!1;if(\"undefined\"!=typeof Float64Array){var f=new Float64Array(1),d=new Uint32Array(f.buffer);f[0]=1,h=!0,1072693248===d[1]?(e.exports=function(t){return f[0]=t,[d[0],d[1]]},e.exports.pack=r,e.exports.lo=n,e.exports.hi=i):1072693248===d[0]?(e.exports=function(t){return f[0]=t,[d[1],d[0]]},e.exports.pack=a,e.exports.lo=o,e.exports.hi=s):h=!1}if(!h){var p=new t(8);e.exports=function(t){return p.writeDoubleLE(t,0,!0),[p.readUInt32LE(0,!0),p.readUInt32LE(4,!0)]},e.exports.pack=l,e.exports.lo=u,e.exports.hi=c}e.exports.sign=function(t){return e.exports.hi(t)>>>31},e.exports.exponent=function(t){return(e.exports.hi(t)<<1>>>21)-1023},e.exports.fraction=function(t){var r=e.exports.lo(t),n=e.exports.hi(t),i=1048575&n;return 2146435072&n&&(i+=1<<20),[r,i]},e.exports.denormalized=function(t){return!(2146435072&e.exports.hi(t))}}).call(this,t(\"buffer\").Buffer)},{buffer:77}],125:[function(t,e,r){\"use strict\";function n(t,e,r){var i=0|t[r];if(i<=0)return[];var a,o=new Array(i);if(r===t.length-1)for(a=0;a<i;++a)o[a]=e;else for(a=0;a<i;++a)o[a]=n(t,e,r+1);return o}function i(t,e){var r,n;for(r=new Array(t),n=0;n<t;++n)r[n]=e;return r}function a(t,e){switch(void 0===e&&(e=0),typeof t){case\"number\":if(t>0)return i(0|t,e);break;case\"object\":if(\"number\"==typeof t.length)return n(t,e,0)}return[]}e.exports=a},{}],126:[function(t,e,r){\"use strict\";function n(t,e,r){r=r||2;var n=e&&e.length,a=n?e[0]*r:t.length,s=i(t,0,a,r,!0),l=[];if(!s)return l;var u,c,f,d,p,m,v;if(n&&(s=h(t,e,s,r)),t.length>80*r){u=f=t[0],c=d=t[1];for(var g=r;g<a;g+=r)p=t[g],m=t[g+1],p<u&&(u=p),m<c&&(c=m),p>f&&(f=p),m>d&&(d=m);v=Math.max(f-u,d-c)}return o(s,l,r,u,c,v),l}function i(t,e,r,n,i){var a,o;if(i===I(t,e,r,n)>0)for(a=e;a<r;a+=n)o=E(a,t[a],t[a+1],o);else for(a=r-n;a>=e;a-=n)o=E(a,t[a],t[a+1],o);return o&&w(o,o.next)&&(L(o),o=o.next),o}function a(t,e){if(!t)return t;e||(e=t);var r,n=t;do{if(r=!1,n.steiner||!w(n,n.next)&&0!==_(n.prev,n,n.next))n=n.next;else{if(L(n),(n=e=n.prev)===n.next)return null;r=!0}}while(r||n!==e);return e}function o(t,e,r,n,i,h,f){if(t){!f&&h&&m(t,n,i,h);for(var d,p,v=t;t.prev!==t.next;)if(d=t.prev,p=t.next,h?l(t,n,i,h):s(t))e.push(d.i/r),e.push(t.i/r),e.push(p.i/r),L(t),t=p.next,v=p.next;else if((t=p)===v){f?1===f?(t=u(t,e,r),o(t,e,r,n,i,h,2)):2===f&&c(t,e,r,n,i,h):o(a(t),e,r,n,i,h,1);break}}}function s(t){var e=t.prev,r=t,n=t.next;if(_(e,r,n)>=0)return!1;for(var i=t.next.next;i!==t.prev;){if(b(e.x,e.y,r.x,r.y,n.x,n.y,i.x,i.y)&&_(i.prev,i,i.next)>=0)return!1;i=i.next}return!0}function l(t,e,r,n){var i=t.prev,a=t,o=t.next;if(_(i,a,o)>=0)return!1;for(var s=i.x<a.x?i.x<o.x?i.x:o.x:a.x<o.x?a.x:o.x,l=i.y<a.y?i.y<o.y?i.y:o.y:a.y<o.y?a.y:o.y,u=i.x>a.x?i.x>o.x?i.x:o.x:a.x>o.x?a.x:o.x,c=i.y>a.y?i.y>o.y?i.y:o.y:a.y>o.y?a.y:o.y,h=g(s,l,e,r,n),f=g(u,c,e,r,n),d=t.nextZ;d&&d.z<=f;){if(d!==t.prev&&d!==t.next&&b(i.x,i.y,a.x,a.y,o.x,o.y,d.x,d.y)&&_(d.prev,d,d.next)>=0)return!1;d=d.nextZ}for(d=t.prevZ;d&&d.z>=h;){if(d!==t.prev&&d!==t.next&&b(i.x,i.y,a.x,a.y,o.x,o.y,d.x,d.y)&&_(d.prev,d,d.next)>=0)return!1;d=d.prevZ}return!0}function u(t,e,r){var n=t;do{var i=n.prev,a=n.next.next;!w(i,a)&&M(i,n,n.next,a)&&A(i,a)&&A(a,i)&&(e.push(i.i/r),e.push(n.i/r),e.push(a.i/r),L(n),L(n.next),n=t=a),n=n.next}while(n!==t);return n}function c(t,e,r,n,i,s){var l=t;do{for(var u=l.next.next;u!==l.prev;){if(l.i!==u.i&&x(l,u)){var c=S(l,u);return l=a(l,l.next),c=a(c,c.next),o(l,e,r,n,i,s),void o(c,e,r,n,i,s)}u=u.next}l=l.next}while(l!==t)}function h(t,e,r,n){var o,s,l,u,c,h=[];for(o=0,s=e.length;o<s;o++)l=e[o]*n,u=o<s-1?e[o+1]*n:t.length,c=i(t,l,u,n,!1),c===c.next&&(c.steiner=!0),h.push(y(c));for(h.sort(f),o=0;o<h.length;o++)d(h[o],r),r=a(r,r.next);return r}function f(t,e){return t.x-e.x}function d(t,e){if(e=p(t,e)){var r=S(e,t);a(r,r.next)}}function p(t,e){var r,n=e,i=t.x,a=t.y,o=-1/0;do{if(a<=n.y&&a>=n.next.y){var s=n.x+(a-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(s<=i&&s>o){if(o=s,s===i){if(a===n.y)return n;if(a===n.next.y)return n.next}r=n.x<n.next.x?n:n.next}}n=n.next}while(n!==e);if(!r)return null;if(i===o)return r.prev;var l,u=r,c=r.x,h=r.y,f=1/0;for(n=r.next;n!==u;)i>=n.x&&n.x>=c&&b(a<h?i:o,a,c,h,a<h?o:i,a,n.x,n.y)&&((l=Math.abs(a-n.y)/(i-n.x))<f||l===f&&n.x>r.x)&&A(n,t)&&(r=n,f=l),n=n.next;return r}function m(t,e,r,n){var i=t;do{null===i.z&&(i.z=g(i.x,i.y,e,r,n)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==t);i.prevZ.nextZ=null,i.prevZ=null,v(i)}function v(t){var e,r,n,i,a,o,s,l,u=1;do{for(r=t,t=null,a=null,o=0;r;){for(o++,n=r,s=0,e=0;e<u&&(s++,n=n.nextZ);e++);for(l=u;s>0||l>0&&n;)0===s?(i=n,n=n.nextZ,l--):0!==l&&n?r.z<=n.z?(i=r,r=r.nextZ,s--):(i=n,n=n.nextZ,l--):(i=r,r=r.nextZ,s--),a?a.nextZ=i:t=i,i.prevZ=a,a=i;r=n}a.nextZ=null,u*=2}while(o>1);return t}function g(t,e,r,n,i){return t=32767*(t-r)/i,e=32767*(e-n)/i,t=16711935&(t|t<<8),t=252645135&(t|t<<4),t=858993459&(t|t<<2),t=1431655765&(t|t<<1),e=16711935&(e|e<<8),e=252645135&(e|e<<4),e=858993459&(e|e<<2),e=1431655765&(e|e<<1),t|e<<1}function y(t){var e=t,r=t;do{e.x<r.x&&(r=e),e=e.next}while(e!==t);return r}function b(t,e,r,n,i,a,o,s){return(i-o)*(e-s)-(t-o)*(a-s)>=0&&(t-o)*(n-s)-(r-o)*(e-s)>=0&&(r-o)*(a-s)-(i-o)*(n-s)>=0}function x(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!k(t,e)&&A(t,e)&&A(e,t)&&T(t,e)}function _(t,e,r){return(e.y-t.y)*(r.x-e.x)-(e.x-t.x)*(r.y-e.y)}function w(t,e){return t.x===e.x&&t.y===e.y}function M(t,e,r,n){return!!(w(t,e)&&w(r,n)||w(t,n)&&w(r,e))||_(t,e,r)>0!=_(t,e,n)>0&&_(r,n,t)>0!=_(r,n,e)>0}function k(t,e){var r=t;do{if(r.i!==t.i&&r.next.i!==t.i&&r.i!==e.i&&r.next.i!==e.i&&M(r,r.next,t,e))return!0;r=r.next}while(r!==t);return!1}function A(t,e){return _(t.prev,t,t.next)<0?_(t,e,t.next)>=0&&_(t,t.prev,e)>=0:_(t,e,t.prev)<0||_(t,t.next,e)<0}function T(t,e){var r=t,n=!1,i=(t.x+e.x)/2,a=(t.y+e.y)/2;do{r.y>a!=r.next.y>a&&i<(r.next.x-r.x)*(a-r.y)/(r.next.y-r.y)+r.x&&(n=!n),r=r.next}while(r!==t);return n}function S(t,e){var r=new C(t.i,t.x,t.y),n=new C(e.i,e.x,e.y),i=t.next,a=e.prev;return t.next=e,e.prev=t,r.next=i,i.prev=r,n.next=r,r.prev=n,a.next=n,n.prev=a,n}function E(t,e,r,n){var i=new C(t,e,r);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function L(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function C(t,e,r){this.i=t,this.x=e,this.y=r,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function I(t,e,r,n){for(var i=0,a=e,o=r-n;a<r;a+=n)i+=(t[o]-t[a])*(t[a+1]+t[o+1]),o=a;return i}e.exports=n,n.deviation=function(t,e,r,n){var i=e&&e.length,a=i?e[0]*r:t.length,o=Math.abs(I(t,0,a,r));if(i)for(var s=0,l=e.length;s<l;s++){var u=e[s]*r,c=s<l-1?e[s+1]*r:t.length;o-=Math.abs(I(t,u,c,r))}var h=0;for(s=0;s<n.length;s+=3){var f=n[s]*r,d=n[s+1]*r,p=n[s+2]*r;h+=Math.abs((t[f]-t[p])*(t[d+1]-t[f+1])-(t[f]-t[d])*(t[p+1]-t[f+1]))}return 0===o&&0===h?0:Math.abs((h-o)/o)},n.flatten=function(t){for(var e=t[0][0].length,r={vertices:[],holes:[],dimensions:e},n=0,i=0;i<t.length;i++){for(var a=0;a<t[i].length;a++)for(var o=0;o<e;o++)r.vertices.push(t[i][a][o]);i>0&&(n+=t[i-1].length,r.holes.push(n))}return r}},{}],127:[function(t,e,r){\"use strict\";function n(t,e){var r=t.length;if(\"number\"!=typeof e){e=0;for(var n=0;n<r;++n){var a=t[n];e=Math.max(e,a[0],a[1])}e=1+(0|e)}e|=0;for(var o=new Array(e),n=0;n<e;++n)o[n]=[];for(var n=0;n<r;++n){var a=t[n];o[a[0]].push(a[1]),o[a[1]].push(a[0])}for(var s=0;s<e;++s)i(o[s],function(t,e){return t-e});return o}e.exports=n;var i=t(\"uniq\")},{uniq:543}],128:[function(e,r,n){(function(i,a){!function(e,i){\"object\"==typeof n&&void 0!==r?r.exports=i():\"function\"==typeof t&&t.amd?t(i):e.ES6Promise=i()}(this,function(){\"use strict\";function t(t){return\"function\"==typeof t||\"object\"==typeof t&&null!==t}function r(t){return\"function\"==typeof t}function n(t){G=t}function o(t){Y=t}function s(){return function(){q(u)}}function l(){var t=setTimeout;return function(){return t(u,1)}}function u(){for(var t=0;t<H;t+=2){(0,Q[t])(Q[t+1]),Q[t]=void 0,Q[t+1]=void 0}H=0}function c(t,e){var r=arguments,n=this,i=new this.constructor(f);void 0===i[tt]&&I(i);var a=n._state;return a?function(){var t=r[a-1];Y(function(){return E(a,i,t,n._result)})}():k(n,i,t,e),i}function h(t){var e=this;if(t&&\"object\"==typeof t&&t.constructor===e)return t;var r=new e(f);return x(r,t),r}function f(){}function d(){return new TypeError(\"You cannot resolve a promise with itself\")}function p(){return new TypeError(\"A promises callback cannot return that same promise.\")}function m(t){try{return t.then}catch(t){return it.error=t,it}}function v(t,e,r,n){try{t.call(e,r,n)}catch(t){return t}}function g(t,e,r){Y(function(t){var n=!1,i=v(r,e,function(r){n||(n=!0,e!==r?x(t,r):w(t,r))},function(e){n||(n=!0,M(t,e))},\"Settle: \"+(t._label||\" unknown promise\"));!n&&i&&(n=!0,M(t,i))},t)}function y(t,e){e._state===rt?w(t,e._result):e._state===nt?M(t,e._result):k(e,void 0,function(e){return x(t,e)},function(e){return M(t,e)})}function b(t,e,n){e.constructor===t.constructor&&n===c&&e.constructor.resolve===h?y(t,e):n===it?M(t,it.error):void 0===n?w(t,e):r(n)?g(t,e,n):w(t,e)}function x(e,r){e===r?M(e,d()):t(r)?b(e,r,m(r)):w(e,r)}function _(t){t._onerror&&t._onerror(t._result),A(t)}function w(t,e){t._state===et&&(t._result=e,t._state=rt,0!==t._subscribers.length&&Y(A,t))}function M(t,e){t._state===et&&(t._state=nt,t._result=e,Y(_,t))}function k(t,e,r,n){var i=t._subscribers,a=i.length;t._onerror=null,i[a]=e,i[a+rt]=r,i[a+nt]=n,0===a&&t._state&&Y(A,t)}function A(t){var e=t._subscribers,r=t._state;if(0!==e.length){for(var n=void 0,i=void 0,a=t._result,o=0;o<e.length;o+=3)n=e[o],i=e[o+r],n?E(r,n,i,a):i(a);t._subscribers.length=0}}function T(){this.error=null}function S(t,e){try{return t(e)}catch(t){return at.error=t,at}}function E(t,e,n,i){var a=r(n),o=void 0,s=void 0,l=void 0,u=void 0;if(a){if(o=S(n,i),o===at?(u=!0,s=o.error,o=null):l=!0,e===o)return void M(e,p())}else o=i,l=!0;e._state!==et||(a&&l?x(e,o):u?M(e,s):t===rt?w(e,o):t===nt&&M(e,o))}function L(t,e){try{e(function(e){x(t,e)},function(e){M(t,e)})}catch(e){M(t,e)}}function C(){return ot++}function I(t){t[tt]=ot++,t._state=void 0,t._result=void 0,t._subscribers=[]}function z(t,e){this._instanceConstructor=t,this.promise=new t(f),this.promise[tt]||I(this.promise),V(e)?(this._input=e,this.length=e.length,this._remaining=e.length,this._result=new Array(this.length),0===this.length?w(this.promise,this._result):(this.length=this.length||0,this._enumerate(),0===this._remaining&&w(this.promise,this._result))):M(this.promise,D())}function D(){return new Error(\"Array Methods must be provided an Array\")}function P(t){return new z(this,t).promise}function O(t){var e=this;return new e(V(t)?function(r,n){for(var i=t.length,a=0;a<i;a++)e.resolve(t[a]).then(r,n)}:function(t,e){return e(new TypeError(\"You must pass an array to race.\"))})}function R(t){var e=this,r=new e(f);return M(r,t),r}function F(){throw new TypeError(\"You must pass a resolver function as the first argument to the promise constructor\")}function j(){throw new TypeError(\"Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.\")}function N(t){this[tt]=C(),this._result=this._state=void 0,this._subscribers=[],f!==t&&(\"function\"!=typeof t&&F(),this instanceof N?L(this,t):j())}function B(){var t=void 0;if(void 0!==a)t=a;else if(\"undefined\"!=typeof self)t=self;else try{t=Function(\"return this\")()}catch(t){throw new Error(\"polyfill failed because global object is unavailable in this environment\")}var e=t.Promise;if(e){var r=null;try{r=Object.prototype.toString.call(e.resolve())}catch(t){}if(\"[object Promise]\"===r&&!e.cast)return}t.Promise=N}var U=void 0;U=Array.isArray?Array.isArray:function(t){return\"[object Array]\"===Object.prototype.toString.call(t)};var V=U,H=0,q=void 0,G=void 0,Y=function(t,e){Q[H]=t,Q[H+1]=e,2===(H+=2)&&(G?G(u):$())},W=\"undefined\"!=typeof window?window:void 0,X=W||{},Z=X.MutationObserver||X.WebKitMutationObserver,J=\"undefined\"==typeof self&&void 0!==i&&\"[object process]\"==={}.toString.call(i),K=\"undefined\"!=typeof Uint8ClampedArray&&\"undefined\"!=typeof importScripts&&\"undefined\"!=typeof MessageChannel,Q=new Array(1e3),$=void 0;$=J?function(){return function(){return i.nextTick(u)}}():Z?function(){var t=0,e=new Z(u),r=document.createTextNode(\"\");return e.observe(r,{characterData:!0}),function(){r.data=t=++t%2}}():K?function(){var t=new MessageChannel;return t.port1.onmessage=u,function(){return t.port2.postMessage(0)}}():void 0===W&&\"function\"==typeof e?function(){try{var t=e,r=t(\"vertx\");return q=r.runOnLoop||r.runOnContext,s()}catch(t){return l()}}():l();var tt=Math.random().toString(36).substring(16),et=void 0,rt=1,nt=2,it=new T,at=new T,ot=0;return z.prototype._enumerate=function(){for(var t=this.length,e=this._input,r=0;this._state===et&&r<t;r++)this._eachEntry(e[r],r)},z.prototype._eachEntry=function(t,e){var r=this._instanceConstructor,n=r.resolve;if(n===h){var i=m(t);if(i===c&&t._state!==et)this._settledAt(t._state,e,t._result);else if(\"function\"!=typeof i)this._remaining--,this._result[e]=t;else if(r===N){var a=new r(f);b(a,t,i),this._willSettleAt(a,e)}else this._willSettleAt(new r(function(e){return e(t)}),e)}else this._willSettleAt(n(t),e)},z.prototype._settledAt=function(t,e,r){var n=this.promise;n._state===et&&(this._remaining--,t===nt?M(n,r):this._result[e]=r),0===this._remaining&&w(n,this._result)},z.prototype._willSettleAt=function(t,e){var r=this;k(t,void 0,function(t){return r._settledAt(rt,e,t)},function(t){return r._settledAt(nt,e,t)})},N.all=P,N.race=O,N.resolve=h,N.reject=R,N._setScheduler=n,N._setAsap=o,N._asap=Y,N.prototype={constructor:N,then:c,catch:function(t){return this.then(null,t)}},B(),N.polyfill=B,N.Promise=N,N})}).call(this,e(\"_process\"),\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{_process:487}],129:[function(t,e,r){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function i(t){return\"function\"==typeof t}function a(t){return\"number\"==typeof t}function o(t){return\"object\"==typeof t&&null!==t}function s(t){return void 0===t}e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(t){if(!a(t)||t<0||isNaN(t))throw TypeError(\"n must be a positive number\");return this._maxListeners=t,this},n.prototype.emit=function(t){var e,r,n,a,l,u;if(this._events||(this._events={}),\"error\"===t&&(!this._events.error||o(this._events.error)&&!this._events.error.length)){if((e=arguments[1])instanceof Error)throw e;var c=new Error('Uncaught, unspecified \"error\" event. ('+e+\")\");throw c.context=e,c}if(r=this._events[t],s(r))return!1;if(i(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:a=Array.prototype.slice.call(arguments,1),r.apply(this,a)}else if(o(r))for(a=Array.prototype.slice.call(arguments,1),u=r.slice(),n=u.length,l=0;l<n;l++)u[l].apply(this,a);return!0},n.prototype.addListener=function(t,e){var r;if(!i(e))throw TypeError(\"listener must be a function\");return this._events||(this._events={}),this._events.newListener&&this.emit(\"newListener\",t,i(e.listener)?e.listener:e),this._events[t]?o(this._events[t])?this._events[t].push(e):this._events[t]=[this._events[t],e]:this._events[t]=e,o(this._events[t])&&!this._events[t].warned&&(r=s(this._maxListeners)?n.defaultMaxListeners:this._maxListeners)&&r>0&&this._events[t].length>r&&(this._events[t].warned=!0,console.error(\"(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.\",this._events[t].length),\"function\"==typeof console.trace&&console.trace()),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(t,e){function r(){this.removeListener(t,r),n||(n=!0,e.apply(this,arguments))}if(!i(e))throw TypeError(\"listener must be a function\");var n=!1;return r.listener=e,this.on(t,r),this},n.prototype.removeListener=function(t,e){var r,n,a,s;if(!i(e))throw TypeError(\"listener must be a function\");if(!this._events||!this._events[t])return this;if(r=this._events[t],a=r.length,n=-1,\n", "r===e||i(r.listener)&&r.listener===e)delete this._events[t],this._events.removeListener&&this.emit(\"removeListener\",t,e);else if(o(r)){for(s=a;s-- >0;)if(r[s]===e||r[s].listener&&r[s].listener===e){n=s;break}if(n<0)return this;1===r.length?(r.length=0,delete this._events[t]):r.splice(n,1),this._events.removeListener&&this.emit(\"removeListener\",t,e)}return this},n.prototype.removeAllListeners=function(t){var e,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(e in this._events)\"removeListener\"!==e&&this.removeAllListeners(e);return this.removeAllListeners(\"removeListener\"),this._events={},this}if(r=this._events[t],i(r))this.removeListener(t,r);else if(r)for(;r.length;)this.removeListener(t,r[r.length-1]);return delete this._events[t],this},n.prototype.listeners=function(t){return this._events&&this._events[t]?i(this._events[t])?[this._events[t]]:this._events[t].slice():[]},n.prototype.listenerCount=function(t){if(this._events){var e=this._events[t];if(i(e))return 1;if(e)return e.length}return 0},n.listenerCount=function(t,e){return t.listenerCount(e)}},{}],130:[function(t,e,r){\"use strict\";function n(t,e,r){var n=e||0,i=r||1;return[[t[12]+t[0],t[13]+t[1],t[14]+t[2],t[15]+t[3]],[t[12]-t[0],t[13]-t[1],t[14]-t[2],t[15]-t[3]],[t[12]+t[4],t[13]+t[5],t[14]+t[6],t[15]+t[7]],[t[12]-t[4],t[13]-t[5],t[14]-t[6],t[15]-t[7]],[n*t[12]+t[8],n*t[13]+t[9],n*t[14]+t[10],n*t[15]+t[11]],[i*t[12]-t[8],i*t[13]-t[9],i*t[14]-t[10],i*t[15]-t[11]]]}e.exports=n},{}],131:[function(t,e,r){\"use strict\";function n(t){for(var e,r=t.length,n=0;n<r;n++)if(((e=t.charCodeAt(n))<9||e>13)&&32!==e&&133!==e&&160!==e&&5760!==e&&6158!==e&&(e<8192||e>8205)&&8232!==e&&8233!==e&&8239!==e&&8287!==e&&8288!==e&&12288!==e&&65279!==e)return!1;return!0}e.exports=function(t){var e=typeof t;if(\"string\"===e){var r=t;if(0===(t=+t)&&n(r))return!1}else if(\"number\"!==e)return!1;return t-t<1}},{}],132:[function(t,e,r){\"use strict\";function n(t){return new Function(\"f\",\"var p = (f && f.properties || {}); return \"+i(t))}function i(t){if(!t)return\"true\";var e=t[0];return t.length<=1?\"any\"===e?\"false\":\"true\":\"(\"+(\"==\"===e?o(t[1],t[2],\"===\",!1):\"!=\"===e?o(t[1],t[2],\"!==\",!1):\"<\"===e||\">\"===e||\"<=\"===e||\">=\"===e?o(t[1],t[2],e,!0):\"any\"===e?s(t.slice(1),\"||\"):\"all\"===e?s(t.slice(1),\"&&\"):\"none\"===e?c(s(t.slice(1),\"||\")):\"in\"===e?l(t[1],t.slice(2)):\"!in\"===e?c(l(t[1],t.slice(2))):\"has\"===e?u(t[1]):\"!has\"===e?c(u([t[1]])):\"true\")+\")\"}function a(t){return\"$type\"===t?\"f.type\":\"$id\"===t?\"f.id\":\"p[\"+JSON.stringify(t)+\"]\"}function o(t,e,r,n){var i=a(t),o=\"$type\"===t?f.indexOf(e):JSON.stringify(e);return(n?\"typeof \"+i+\"=== typeof \"+o+\"&&\":\"\")+i+r+o}function s(t,e){return t.map(i).join(e)}function l(t,e){\"$type\"===t&&(e=e.map(function(t){return f.indexOf(t)}));var r=JSON.stringify(e.sort(h)),n=a(t);return e.length<=200?r+\".indexOf(\"+n+\") !== -1\":\"function(v, a, i, j) {while (i <= j) { var m = (i + j) >> 1; if (a[m] === v) return true; if (a[m] > v) j = m - 1; else i = m + 1;}return false; }(\"+n+\", \"+r+\",0,\"+(e.length-1)+\")\"}function u(t){return JSON.stringify(t)+\" in p\"}function c(t){return\"!(\"+t+\")\"}function h(t,e){return t<e?-1:t>e?1:0}e.exports=n;var f=[\"Unknown\",\"Point\",\"LineString\",\"Polygon\"]},{}],133:[function(t,e,r){\"use strict\";function n(t,e,r){return Math.min(e,Math.max(t,r))}function i(t,e,r){this.dimension=t.length,this.bounds=[new Array(this.dimension),new Array(this.dimension)];for(var n=0;n<this.dimension;++n)this.bounds[0][n]=-1/0,this.bounds[1][n]=1/0;this._state=t.slice().reverse(),this._velocity=e.slice().reverse(),this._time=[r],this._scratch=[t.slice(),t.slice(),t.slice(),t.slice(),t.slice()]}function a(t){for(var e=new Array(t),r=0;r<t;++r)e[r]=0;return e}function o(t,e,r){switch(arguments.length){case 0:return new i([0],[0],0);case 1:if(\"number\"==typeof t){var n=a(t);return new i(n,n,0)}return new i(t,a(t.length),0);case 2:if(\"number\"==typeof e){var n=a(t.length);return new i(t,n,+e)}r=0;case 3:if(t.length!==e.length)throw new Error(\"state and velocity lengths must match\");return new i(t,e,r)}}e.exports=o;var s=t(\"cubic-hermite\"),l=t(\"binary-search-bounds\"),u=i.prototype;u.flush=function(t){var e=l.gt(this._time,t)-1;e<=0||(this._time.splice(0,e),this._state.splice(0,e*this.dimension),this._velocity.splice(0,e*this.dimension))},u.curve=function(t){var e=this._time,r=e.length,i=l.le(e,t),a=this._scratch[0],o=this._state,u=this._velocity,c=this.dimension,h=this.bounds;if(i<0)for(var f=c-1,d=0;d<c;++d,--f)a[d]=o[f];else if(i>=r-1)for(var f=o.length-1,p=t-e[r-1],d=0;d<c;++d,--f)a[d]=o[f]+p*u[f];else{for(var f=c*(i+1)-1,m=e[i],v=e[i+1],g=v-m||1,y=this._scratch[1],b=this._scratch[2],x=this._scratch[3],_=this._scratch[4],w=!0,d=0;d<c;++d,--f)y[d]=o[f],x[d]=u[f]*g,b[d]=o[f+c],_[d]=u[f+c]*g,w=w&&y[d]===b[d]&&x[d]===_[d]&&0===x[d];if(w)for(var d=0;d<c;++d)a[d]=y[d];else s(y,x,b,_,(t-m)/g,a)}for(var M=h[0],k=h[1],d=0;d<c;++d)a[d]=n(M[d],k[d],a[d]);return a},u.dcurve=function(t){var e=this._time,r=e.length,n=l.le(e,t),i=this._scratch[0],a=this._state,o=this._velocity,u=this.dimension;if(n>=r-1)for(var c=a.length-1,h=(e[r-1],0);h<u;++h,--c)i[h]=o[c];else{for(var c=u*(n+1)-1,f=e[n],d=e[n+1],p=d-f||1,m=this._scratch[1],v=this._scratch[2],g=this._scratch[3],y=this._scratch[4],b=!0,h=0;h<u;++h,--c)m[h]=a[c],g[h]=o[c]*p,v[h]=a[c+u],y[h]=o[c+u]*p,b=b&&m[h]===v[h]&&g[h]===y[h]&&0===g[h];if(b)for(var h=0;h<u;++h)i[h]=0;else{s.derivative(m,g,v,y,(t-f)/p,i);for(var h=0;h<u;++h)i[h]/=p}}return i},u.lastT=function(){var t=this._time;return t[t.length-1]},u.stable=function(){for(var t=this._velocity,e=t.length,r=this.dimension-1;r>=0;--r)if(t[--e])return!1;return!0},u.jump=function(t){var e=this.lastT(),r=this.dimension;if(!(t<e||arguments.length!==r+1)){var i=this._state,a=this._velocity,o=i.length-this.dimension,s=this.bounds,l=s[0],u=s[1];this._time.push(e,t);for(var c=0;c<2;++c)for(var h=0;h<r;++h)i.push(i[o++]),a.push(0);this._time.push(t);for(var h=r;h>0;--h)i.push(n(l[h-1],u[h-1],arguments[h])),a.push(0)}},u.push=function(t){var e=this.lastT(),r=this.dimension;if(!(t<e||arguments.length!==r+1)){var i=this._state,a=this._velocity,o=i.length-this.dimension,s=t-e,l=this.bounds,u=l[0],c=l[1],h=s>1e-6?1/s:0;this._time.push(t);for(var f=r;f>0;--f){var d=n(u[f-1],c[f-1],arguments[f]);i.push(d),a.push((d-i[o++])*h)}}},u.set=function(t){var e=this.dimension;if(!(t<this.lastT()||arguments.length!==e+1)){var r=this._state,i=this._velocity,a=this.bounds,o=a[0],s=a[1];this._time.push(t);for(var l=e;l>0;--l)r.push(n(o[l-1],s[l-1],arguments[l])),i.push(0)}},u.move=function(t){var e=this.lastT(),r=this.dimension;if(!(t<=e||arguments.length!==r+1)){var i=this._state,a=this._velocity,o=i.length-this.dimension,s=this.bounds,l=s[0],u=s[1],c=t-e,h=c>1e-6?1/c:0;this._time.push(t);for(var f=r;f>0;--f){var d=arguments[f];i.push(n(l[f-1],u[f-1],i[o++]+d)),a.push(d*h)}}},u.idle=function(t){var e=this.lastT();if(!(t<e)){var r=this.dimension,i=this._state,a=this._velocity,o=i.length-r,s=this.bounds,l=s[0],u=s[1],c=t-e;this._time.push(t);for(var h=r-1;h>=0;--h)i.push(n(l[h],u[h],i[o]+c*a[o])),a.push(0),o+=1}}},{\"binary-search-bounds\":66,\"cubic-hermite\":109}],134:[function(t,e,r){\"use strict\";function n(t){t=t||{};var e,r,n=t.canvas||document.createElement(\"canvas\"),o=t.family||\"sans-serif\",s=t.shape||[512,512],l=t.step||[32,32],u=parseFloat(t.size)||16,c=t.chars||[32,126],h=Math.floor((l[0]-u)/2),f=t.radius||1.5*h,d=new a(u,h,f,0,o),p=null==t.align?\"optical\":t.align,m=null==t.fit||1==t.fit?.5:t.fit;if(Array.isArray(c)){if(2===c.length&&\"number\"==typeof c[0]&&\"number\"==typeof c[1]){var v=[];for(e=c[0],r=0;e<=c[1];e++)v[r++]=String.fromCharCode(e);c=v}}else c=String(c).split(\"\");s=s.slice(),n.width=s[0],n.height=s[1];var g=n.getContext(\"2d\");g.fillStyle=\"#000\",g.fillRect(0,0,n.width,n.height),g.textBaseline=\"middle\";var y=l[0],b=l[1],x=0,_=0,w=u/b,M=Math.min(c.length,Math.floor(s[0]/y)*Math.ceil(s[1]/b)),k=d.ctx.textAlign,A=d.buffer,T=d.middle;for(d.ctx.textAlign=\"center\",d.buffer=d.size/2,e=0;e<M;e++)if(c[e]){var S=i(c[e],o,w),E=1,L=[0,0];if(m){var C=m;Array.isArray(m)&&(C=m[e]);var I=.5*(S.bounds[3]-S.bounds[1]),z=.5*(S.bounds[2]-S.bounds[0]),D=Math.max(I,z),P=Math.sqrt(I*I+z*z),O=.333*S.radius+.333*D+.333*P;E=b*C/(O*b*2),d.ctx.font=u*E+\"px \"+o}else d.ctx.font=u+\"px \"+o;p&&(L=\"optical\"===p||!0===p?[.5*y-y*S.center[0],.5*b-b*S.center[1]]:[.5*y-y*(S.bounds[2]+S.bounds[0])*.5,.5*b-b*(S.bounds[3]+S.bounds[1])*.5],d.middle=T+L[1]*E);var R=d.draw(c[e]);g.putImageData(R,x+L[0]*E,_),x+=l[0],x>s[0]-l[0]&&(x=0,_+=l[1])}return d.ctx.textAlign=k,d.buffer=A,d.middle=T,n}function i(t,e,r){if(s[e]&&s[e][t])return s[e][t];var n=200*r,i=o(t,{size:200,fontSize:n,fontFamily:e});s[e]||(s[e]={});var a={center:[i.center[0]/200,i.center[1]/200],bounds:i.bounds.map(function(t){return t/200}),radius:i.radius/200};return s[e][t]=a,a}var a=t(\"tiny-sdf\"),o=t(\"optical-properties\");e.exports=n;var s={}},{\"optical-properties\":471,\"tiny-sdf\":533}],135:[function(t,e,r){\"use strict\";function n(t,e,r,n,i,a){this._color=t,this.key=e,this.value=r,this.left=n,this.right=i,this._count=a}function i(t){return new n(t._color,t.key,t.value,t.left,t.right,t._count)}function a(t,e){return new n(t,e.key,e.value,e.left,e.right,e._count)}function o(t){t._count=1+(t.left?t.left._count:0)+(t.right?t.right._count:0)}function s(t,e){this._compare=t,this.root=e}function l(t,e){if(e.left){var r=l(t,e.left);if(r)return r}var r=t(e.key,e.value);return r||(e.right?l(t,e.right):void 0)}function u(t,e,r,n){if(e(t,n.key)<=0){if(n.left){var i=u(t,e,r,n.left);if(i)return i}var i=r(n.key,n.value);if(i)return i}if(n.right)return u(t,e,r,n.right)}function c(t,e,r,n,i){var a,o=r(t,i.key),s=r(e,i.key);if(o<=0){if(i.left&&(a=c(t,e,r,n,i.left)))return a;if(s>0&&(a=n(i.key,i.value)))return a}if(s>0&&i.right)return c(t,e,r,n,i.right)}function h(t,e){this.tree=t,this._stack=e}function f(t,e){t.key=e.key,t.value=e.value,t.left=e.left,t.right=e.right,t._color=e._color,t._count=e._count}function d(t){for(var e,r,n,s,l=t.length-1;l>=0;--l){if(e=t[l],0===l)return void(e._color=g);if(r=t[l-1],r.left===e){if(n=r.right,n.right&&n.right._color===v){if(n=r.right=i(n),s=n.right=i(n.right),r.right=n.left,n.left=r,n.right=s,n._color=r._color,e._color=g,r._color=g,s._color=g,o(r),o(n),l>1){var u=t[l-2];u.left===r?u.left=n:u.right=n}return void(t[l-1]=n)}if(n.left&&n.left._color===v){if(n=r.right=i(n),s=n.left=i(n.left),r.right=s.left,n.left=s.right,s.left=r,s.right=n,s._color=r._color,r._color=g,n._color=g,e._color=g,o(r),o(n),o(s),l>1){var u=t[l-2];u.left===r?u.left=s:u.right=s}return void(t[l-1]=s)}if(n._color===g){if(r._color===v)return r._color=g,void(r.right=a(v,n));r.right=a(v,n);continue}if(n=i(n),r.right=n.left,n.left=r,n._color=r._color,r._color=v,o(r),o(n),l>1){var u=t[l-2];u.left===r?u.left=n:u.right=n}t[l-1]=n,t[l]=r,l+1<t.length?t[l+1]=e:t.push(e),l+=2}else{if(n=r.left,n.left&&n.left._color===v){if(n=r.left=i(n),s=n.left=i(n.left),r.left=n.right,n.right=r,n.left=s,n._color=r._color,e._color=g,r._color=g,s._color=g,o(r),o(n),l>1){var u=t[l-2];u.right===r?u.right=n:u.left=n}return void(t[l-1]=n)}if(n.right&&n.right._color===v){if(n=r.left=i(n),s=n.right=i(n.right),r.left=s.right,n.right=s.left,s.right=r,s.left=n,s._color=r._color,r._color=g,n._color=g,e._color=g,o(r),o(n),o(s),l>1){var u=t[l-2];u.right===r?u.right=s:u.left=s}return void(t[l-1]=s)}if(n._color===g){if(r._color===v)return r._color=g,void(r.left=a(v,n));r.left=a(v,n);continue}if(n=i(n),r.left=n.right,n.right=r,n._color=r._color,r._color=v,o(r),o(n),l>1){var u=t[l-2];u.right===r?u.right=n:u.left=n}t[l-1]=n,t[l]=r,l+1<t.length?t[l+1]=e:t.push(e),l+=2}}}function p(t,e){return t<e?-1:t>e?1:0}function m(t){return new s(t||p,null)}e.exports=m;var v=0,g=1,y=s.prototype;Object.defineProperty(y,\"keys\",{get:function(){var t=[];return this.forEach(function(e,r){t.push(e)}),t}}),Object.defineProperty(y,\"values\",{get:function(){var t=[];return this.forEach(function(e,r){t.push(r)}),t}}),Object.defineProperty(y,\"length\",{get:function(){return this.root?this.root._count:0}}),y.insert=function(t,e){for(var r=this._compare,i=this.root,l=[],u=[];i;){var c=r(t,i.key);l.push(i),u.push(c),i=c<=0?i.left:i.right}l.push(new n(v,t,e,null,null,1));for(var h=l.length-2;h>=0;--h){var i=l[h];u[h]<=0?l[h]=new n(i._color,i.key,i.value,l[h+1],i.right,i._count+1):l[h]=new n(i._color,i.key,i.value,i.left,l[h+1],i._count+1)}for(var h=l.length-1;h>1;--h){var f=l[h-1],i=l[h];if(f._color===g||i._color===g)break;var d=l[h-2];if(d.left===f)if(f.left===i){var p=d.right;if(!p||p._color!==v){if(d._color=v,d.left=f.right,f._color=g,f.right=d,l[h-2]=f,l[h-1]=i,o(d),o(f),h>=3){var m=l[h-3];m.left===d?m.left=f:m.right=f}break}f._color=g,d.right=a(g,p),d._color=v,h-=1}else{var p=d.right;if(!p||p._color!==v){if(f.right=i.left,d._color=v,d.left=i.right,i._color=g,i.left=f,i.right=d,l[h-2]=i,l[h-1]=f,o(d),o(f),o(i),h>=3){var m=l[h-3];m.left===d?m.left=i:m.right=i}break}f._color=g,d.right=a(g,p),d._color=v,h-=1}else if(f.right===i){var p=d.left;if(!p||p._color!==v){if(d._color=v,d.right=f.left,f._color=g,f.left=d,l[h-2]=f,l[h-1]=i,o(d),o(f),h>=3){var m=l[h-3];m.right===d?m.right=f:m.left=f}break}f._color=g,d.left=a(g,p),d._color=v,h-=1}else{var p=d.left;if(!p||p._color!==v){if(f.left=i.right,d._color=v,d.right=i.left,i._color=g,i.right=f,i.left=d,l[h-2]=i,l[h-1]=f,o(d),o(f),o(i),h>=3){var m=l[h-3];m.right===d?m.right=i:m.left=i}break}f._color=g,d.left=a(g,p),d._color=v,h-=1}}return l[0]._color=g,new s(r,l[0])},y.forEach=function(t,e,r){if(this.root)switch(arguments.length){case 1:return l(t,this.root);case 2:return u(e,this._compare,t,this.root);case 3:if(this._compare(e,r)>=0)return;return c(e,r,this._compare,t,this.root)}},Object.defineProperty(y,\"begin\",{get:function(){for(var t=[],e=this.root;e;)t.push(e),e=e.left;return new h(this,t)}}),Object.defineProperty(y,\"end\",{get:function(){for(var t=[],e=this.root;e;)t.push(e),e=e.right;return new h(this,t)}}),y.at=function(t){if(t<0)return new h(this,[]);for(var e=this.root,r=[];;){if(r.push(e),e.left){if(t<e.left._count){e=e.left;continue}t-=e.left._count}if(!t)return new h(this,r);if(t-=1,!e.right)break;if(t>=e.right._count)break;e=e.right}return new h(this,[])},y.ge=function(t){for(var e=this._compare,r=this.root,n=[],i=0;r;){var a=e(t,r.key);n.push(r),a<=0&&(i=n.length),r=a<=0?r.left:r.right}return n.length=i,new h(this,n)},y.gt=function(t){for(var e=this._compare,r=this.root,n=[],i=0;r;){var a=e(t,r.key);n.push(r),a<0&&(i=n.length),r=a<0?r.left:r.right}return n.length=i,new h(this,n)},y.lt=function(t){for(var e=this._compare,r=this.root,n=[],i=0;r;){var a=e(t,r.key);n.push(r),a>0&&(i=n.length),r=a<=0?r.left:r.right}return n.length=i,new h(this,n)},y.le=function(t){for(var e=this._compare,r=this.root,n=[],i=0;r;){var a=e(t,r.key);n.push(r),a>=0&&(i=n.length),r=a<0?r.left:r.right}return n.length=i,new h(this,n)},y.find=function(t){for(var e=this._compare,r=this.root,n=[];r;){var i=e(t,r.key);if(n.push(r),0===i)return new h(this,n);r=i<=0?r.left:r.right}return new h(this,[])},y.remove=function(t){var e=this.find(t);return e?e.remove():this},y.get=function(t){for(var e=this._compare,r=this.root;r;){var n=e(t,r.key);if(0===n)return r.value;r=n<=0?r.left:r.right}};var b=h.prototype;Object.defineProperty(b,\"valid\",{get:function(){return this._stack.length>0}}),Object.defineProperty(b,\"node\",{get:function(){return this._stack.length>0?this._stack[this._stack.length-1]:null},enumerable:!0}),b.clone=function(){return new h(this.tree,this._stack.slice())},b.remove=function(){var t=this._stack;if(0===t.length)return this.tree;var e=new Array(t.length),r=t[t.length-1];e[e.length-1]=new n(r._color,r.key,r.value,r.left,r.right,r._count);for(var i=t.length-2;i>=0;--i){var r=t[i];r.left===t[i+1]?e[i]=new n(r._color,r.key,r.value,e[i+1],r.right,r._count):e[i]=new n(r._color,r.key,r.value,r.left,e[i+1],r._count)}if(r=e[e.length-1],r.left&&r.right){var a=e.length;for(r=r.left;r.right;)e.push(r),r=r.right;var o=e[a-1];e.push(new n(r._color,o.key,o.value,r.left,r.right,r._count)),e[a-1].key=r.key,e[a-1].value=r.value;for(var i=e.length-2;i>=a;--i)r=e[i],e[i]=new n(r._color,r.key,r.value,r.left,e[i+1],r._count);e[a-1].left=e[a]}if(r=e[e.length-1],r._color===v){var l=e[e.length-2];l.left===r?l.left=null:l.right===r&&(l.right=null),e.pop();for(var i=0;i<e.length;++i)e[i]._count--;return new s(this.tree._compare,e[0])}if(r.left||r.right){r.left?f(r,r.left):r.right&&f(r,r.right),r._color=g;for(var i=0;i<e.length-1;++i)e[i]._count--;return new s(this.tree._compare,e[0])}if(1===e.length)return new s(this.tree._compare,null);for(var i=0;i<e.length;++i)e[i]._count--;var u=e[e.length-2];return d(e),u.left===r?u.left=null:u.right=null,new s(this.tree._compare,e[0])},Object.defineProperty(b,\"key\",{get:function(){if(this._stack.length>0)return this._stack[this._stack.length-1].key},enumerable:!0}),Object.defineProperty(b,\"value\",{get:function(){if(this._stack.length>0)return this._stack[this._stack.length-1].value},enumerable:!0}),Object.defineProperty(b,\"index\",{get:function(){var t=0,e=this._stack;if(0===e.length){var r=this.tree.root;return r?r._count:0}e[e.length-1].left&&(t=e[e.length-1].left._count);for(var n=e.length-2;n>=0;--n)e[n+1]===e[n].right&&(++t,e[n].left&&(t+=e[n].left._count));return t},enumerable:!0}),b.next=function(){var t=this._stack;if(0!==t.length){var e=t[t.length-1];if(e.right)for(e=e.right;e;)t.push(e),e=e.left;else for(t.pop();t.length>0&&t[t.length-1].right===e;)e=t[t.length-1],t.pop()}},Object.defineProperty(b,\"hasNext\",{get:function(){var t=this._stack;if(0===t.length)return!1;if(t[t.length-1].right)return!0;for(var e=t.length-1;e>0;--e)if(t[e-1].left===t[e])return!0;return!1}}),b.update=function(t){var e=this._stack;if(0===e.length)throw new Error(\"Can't update empty node!\");var r=new Array(e.length),i=e[e.length-1];r[r.length-1]=new n(i._color,i.key,t,i.left,i.right,i._count);for(var a=e.length-2;a>=0;--a)i=e[a],i.left===e[a+1]?r[a]=new n(i._color,i.key,i.value,r[a+1],i.right,i._count):r[a]=new n(i._color,i.key,i.value,i.left,r[a+1],i._count);return new s(this.tree._compare,r[0])},b.prev=function(){var t=this._stack;if(0!==t.length){var e=t[t.length-1];if(e.left)for(e=e.left;e;)t.push(e),e=e.right;else for(t.pop();t.length>0&&t[t.length-1].left===e;)e=t[t.length-1],t.pop()}},Object.defineProperty(b,\"hasPrev\",{get:function(){var t=this._stack;if(0===t.length)return!1;if(t[t.length-1].left)return!0;for(var e=t.length-1;e>0;--e)if(t[e-1].right===t[e])return!0;return!1}})},{}],136:[function(t,e,r){function n(t){if(t<0)return Number(\"0/0\");for(var e=o[0],r=o.length-1;r>0;--r)e+=o[r]/(t+r);var n=t+a+.5;return.5*Math.log(2*Math.PI)+(t+.5)*Math.log(n)-n+Math.log(e)-Math.log(t)}var i=[.9999999999998099,676.5203681218851,-1259.1392167224028,771.3234287776531,-176.6150291621406,12.507343278686905,-.13857109526572012,9984369578019572e-21,1.5056327351493116e-7],a=607/128,o=[.9999999999999971,57.15623566586292,-59.59796035547549,14.136097974741746,-.4919138160976202,3399464998481189e-20,4652362892704858e-20,-9837447530487956e-20,.0001580887032249125,-.00021026444172410488,.00021743961811521265,-.0001643181065367639,8441822398385275e-20,-26190838401581408e-21,36899182659531625e-22];e.exports=function t(e){if(e<.5)return Math.PI/(Math.sin(Math.PI*e)*t(1-e));if(e>100)return Math.exp(n(e));e-=1;for(var r=i[0],a=1;a<9;a++)r+=i[a]/(e+a);var o=e+7+.5;return Math.sqrt(2*Math.PI)*Math.pow(o,e+.5)*Math.exp(-o)*r},e.exports.log=n},{}],137:[function(t,e,r){function n(t){if(\"Polygon\"===t.type)return i(t.coordinates);if(\"MultiPolygon\"===t.type){for(var e=0,r=0;r<t.coordinates.length;r++)e+=i(t.coordinates[r]);return e}return null}function i(t){var e=0;if(t&&t.length>0){e+=Math.abs(a(t[0]));for(var r=1;r<t.length;r++)e-=Math.abs(a(t[r]))}return e}function a(t){var e=0;if(t.length>2){for(var r,n,i=0;i<t.length-1;i++)r=t[i],n=t[i+1],e+=o(n[0]-r[0])*(2+Math.sin(o(r[1]))+Math.sin(o(n[1])));e=e*s.RADIUS*s.RADIUS/2}return e}function o(t){return t*Math.PI/180}var s=t(\"wgs84\");e.exports.geometry=n,e.exports.ring=a},{wgs84:565}],138:[function(t,e,r){function n(t,e){switch(t&&t.type||null){case\"FeatureCollection\":return t.features=t.features.map(i(n,e)),t;case\"Feature\":return t.geometry=n(t.geometry,e),t;case\"Polygon\":case\"MultiPolygon\":return a(t,e);default:return t}}function i(t,e){return function(r){return t(r,e)}}function a(t,e){return\"Polygon\"===t.type?t.coordinates=o(t.coordinates,e):\"MultiPolygon\"===t.type&&(t.coordinates=t.coordinates.map(i(o,e))),t}function o(t,e){e=!!e,t[0]=s(t[0],!e);for(var r=1;r<t.length;r++)t[r]=s(t[r],e);return t}function s(t,e){return l(t)===e?t:t.reverse()}function l(t){return u.ring(t)>=0}var u=t(\"geojson-area\");e.exports=n},{\"geojson-area\":137}],139:[function(t,e,r){\"use strict\";function n(t,e,r,n,o,l,u,c){if(r/=e,n/=e,u>=r&&c<=n)return t;if(u>n||c<r)return null;for(var h=[],f=0;f<t.length;f++){var d,p,m=t[f],v=m.geometry,g=m.type;if(d=m.min[o],p=m.max[o],d>=r&&p<=n)h.push(m);else if(!(d>n||p<r)){var y=1===g?i(v,r,n,o):a(v,r,n,o,l,3===g);y.length&&h.push(s(m.tags,g,y,m.id))}}return h.length?h:null}function i(t,e,r,n){for(var i=[],a=0;a<t.length;a++){var o=t[a],s=o[n];s>=e&&s<=r&&i.push(o)}return i}function a(t,e,r,n,i,a){for(var s=[],l=0;l<t.length;l++){var u,c,h,f=0,d=0,p=null,m=t[l],v=m.area,g=m.dist,y=m.outer,b=m.length,x=[];for(c=0;c<b-1;c++)u=p||m[c],p=m[c+1],f=d||u[n],d=p[n],f<e?d>r?(x.push(i(u,p,e),i(u,p,r)),a||(x=o(s,x,v,g,y))):d>=e&&x.push(i(u,p,e)):f>r?d<e?(x.push(i(u,p,r),i(u,p,e)),a||(x=o(s,x,v,g,y))):d<=r&&x.push(i(u,p,r)):(x.push(u),d<e?(x.push(i(u,p,e)),a||(x=o(s,x,v,g,y))):d>r&&(x.push(i(u,p,r)),a||(x=o(s,x,v,g,y))));u=m[b-1],f=u[n],f>=e&&f<=r&&x.push(u),h=x[x.length-1],a&&h&&(x[0][0]!==h[0]||x[0][1]!==h[1])&&x.push(x[0]),o(s,x,v,g,y)}return s}function o(t,e,r,n,i){return e.length&&(e.area=r,e.dist=n,void 0!==i&&(e.outer=i),t.push(e)),[]}e.exports=n;var s=t(\"./feature\")},{\"./feature\":141}],140:[function(t,e,r){\"use strict\";function n(t,e){var r=[];if(\"FeatureCollection\"===t.type)for(var n=0;n<t.features.length;n++)i(r,t.features[n],e);else\"Feature\"===t.type?i(r,t,e):i(r,{geometry:t},e);return r}function i(t,e,r){if(null!==e.geometry){var n,s,l,c,h=e.geometry,f=h.type,d=h.coordinates,p=e.properties,m=e.id;if(\"Point\"===f)t.push(u(p,1,[o(d)],m));else if(\"MultiPoint\"===f)t.push(u(p,1,a(d),m));else if(\"LineString\"===f)t.push(u(p,2,[a(d,r)],m));else if(\"MultiLineString\"===f||\"Polygon\"===f){for(l=[],n=0;n<d.length;n++)c=a(d[n],r),\"Polygon\"===f&&(c.outer=0===n),l.push(c);t.push(u(p,\"Polygon\"===f?3:2,l,m))}else if(\"MultiPolygon\"===f){for(l=[],n=0;n<d.length;n++)for(s=0;s<d[n].length;s++)c=a(d[n][s],r),c.outer=0===s,l.push(c);t.push(u(p,3,l,m))}else{if(\"GeometryCollection\"!==f)throw new Error(\"Input data is not a valid GeoJSON object.\");for(n=0;n<h.geometries.length;n++)i(t,{geometry:h.geometries[n],properties:p},r)}}}function a(t,e){for(var r=[],n=0;n<t.length;n++)r.push(o(t[n]));return e&&(l(r,e),s(r)),r}function o(t){var e=Math.sin(t[1]*Math.PI/180),r=t[0]/360+.5,n=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return n=n<0?0:n>1?1:n,[r,n,0]}function s(t){for(var e,r,n=0,i=0,a=0;a<t.length-1;a++)e=r||t[a],r=t[a+1],n+=e[0]*r[1]-r[0]*e[1],i+=Math.abs(r[0]-e[0])+Math.abs(r[1]-e[1]);t.area=Math.abs(n/2),t.dist=i}e.exports=n;var l=t(\"./simplify\"),u=t(\"./feature\")},{\"./feature\":141,\"./simplify\":143}],141:[function(t,e,r){\"use strict\";function n(t,e,r,n){var a={id:n||null,type:e,geometry:r,tags:t||null,min:[1/0,1/0],max:[-1/0,-1/0]};return i(a),a}function i(t){var e=t.geometry,r=t.min,n=t.max;if(1===t.type)a(r,n,e);else for(var i=0;i<e.length;i++)a(r,n,e[i]);return t}function a(t,e,r){for(var n,i=0;i<r.length;i++)n=r[i],t[0]=Math.min(n[0],t[0]),e[0]=Math.max(n[0],e[0]),t[1]=Math.min(n[1],t[1]),e[1]=Math.max(n[1],e[1])}e.exports=n},{}],142:[function(t,e,r){\"use strict\";function n(t,e){return new i(t,e)}function i(t,e){e=this.options=l(Object.create(this.options),e);var r=e.debug;r&&console.time(\"preprocess data\");var n=1<<e.maxZoom,i=c(t,e.tolerance/(n*e.extent));this.tiles={},this.tileCoords=[],r&&(console.timeEnd(\"preprocess data\"),console.log(\"index: maxZoom: %d, maxPoints: %d\",e.indexMaxZoom,e.indexMaxPoints),console.time(\"generate tiles\"),this.stats={},this.total=0),i=d(i,e.buffer/e.extent,o),i.length&&this.splitTile(i,0,0,0),r&&(i.length&&console.log(\"features: %d, points: %d\",this.tiles[0].numFeatures,this.tiles[0].numPoints),console.timeEnd(\"generate tiles\"),console.log(\"tiles generated:\",this.total,JSON.stringify(this.stats)))}function a(t,e,r){return 32*((1<<t)*r+e)+t}function o(t,e,r){return[r,(r-t[0])*(e[1]-t[1])/(e[0]-t[0])+t[1],1]}function s(t,e,r){return[(r-t[1])*(e[0]-t[0])/(e[1]-t[1])+t[0],r,1]}function l(t,e){for(var r in e)t[r]=e[r];return t}function u(t,e,r){var n=t.source;if(1!==n.length)return!1;var i=n[0];if(3!==i.type||i.geometry.length>1)return!1;var a=i.geometry[0].length;if(5!==a)return!1;for(var o=0;o<a;o++){var s=h.point(i.geometry[0][o],e,t.z2,t.x,t.y);if(s[0]!==-r&&s[0]!==e+r||s[1]!==-r&&s[1]!==e+r)return!1}return!0}e.exports=n;var c=t(\"./convert\"),h=t(\"./transform\"),f=t(\"./clip\"),d=t(\"./wrap\"),p=t(\"./tile\");i.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,solidChildren:!1,tolerance:3,extent:4096,buffer:64,debug:0},i.prototype.splitTile=function(t,e,r,n,i,l,c){for(var h=[t,e,r,n],d=this.options,m=d.debug,v=null;h.length;){n=h.pop(),r=h.pop(),e=h.pop(),t=h.pop();var g=1<<e,y=a(e,r,n),b=this.tiles[y],x=e===d.maxZoom?0:d.tolerance/(g*d.extent);if(!b&&(m>1&&console.time(\"creation\"),b=this.tiles[y]=p(t,g,r,n,x,e===d.maxZoom),this.tileCoords.push({z:e,x:r,y:n}),m)){m>1&&(console.log(\"tile z%d-%d-%d (features: %d, points: %d, simplified: %d)\",e,r,n,b.numFeatures,b.numPoints,b.numSimplified),console.timeEnd(\"creation\"));var _=\"z\"+e;this.stats[_]=(this.stats[_]||0)+1,this.total++}if(b.source=t,i){if(e===d.maxZoom||e===i)continue;var w=1<<i-e;if(r!==Math.floor(l/w)||n!==Math.floor(c/w))continue}else if(e===d.indexMaxZoom||b.numPoints<=d.indexMaxPoints)continue;if(d.solidChildren||!u(b,d.extent,d.buffer)){b.source=null,m>1&&console.time(\"clipping\");var M,k,A,T,S,E,L=.5*d.buffer/d.extent,C=.5-L,I=.5+L,z=1+L;M=k=A=T=null,S=f(t,g,r-L,r+I,0,o,b.min[0],b.max[0]),E=f(t,g,r+C,r+z,0,o,b.min[0],b.max[0]),S&&(M=f(S,g,n-L,n+I,1,s,b.min[1],b.max[1]),k=f(S,g,n+C,n+z,1,s,b.min[1],b.max[1])),E&&(A=f(E,g,n-L,n+I,1,s,b.min[1],b.max[1]),T=f(E,g,n+C,n+z,1,s,b.min[1],b.max[1])),m>1&&console.timeEnd(\"clipping\"),t.length&&(h.push(M||[],e+1,2*r,2*n),h.push(k||[],e+1,2*r,2*n+1),h.push(A||[],e+1,2*r+1,2*n),h.push(T||[],e+1,2*r+1,2*n+1))}else i&&(v=e)}return v},i.prototype.getTile=function(t,e,r){var n=this.options,i=n.extent,o=n.debug,s=1<<t;e=(e%s+s)%s;var l=a(t,e,r);if(this.tiles[l])return h.tile(this.tiles[l],i);o>1&&console.log(\"drilling down to z%d-%d-%d\",t,e,r);for(var c,f=t,d=e,p=r;!c&&f>0;)f--,d=Math.floor(d/2),p=Math.floor(p/2),c=this.tiles[a(f,d,p)];if(!c||!c.source)return null;if(o>1&&console.log(\"found parent tile z%d-%d-%d\",f,d,p),u(c,i,n.buffer))return h.tile(c,i);o>1&&console.time(\"drilling down\");var m=this.splitTile(c.source,f,d,p,t,e,r);if(o>1&&console.timeEnd(\"drilling down\"),null!==m){var v=1<<t-m;l=a(m,Math.floor(e/v),Math.floor(r/v))}return this.tiles[l]?h.tile(this.tiles[l],i):null}},{\"./clip\":139,\"./convert\":140,\"./tile\":144,\"./transform\":145,\"./wrap\":146}],143:[function(t,e,r){\"use strict\";function n(t,e){var r,n,a,o,s=e*e,l=t.length,u=0,c=l-1,h=[];for(t[u][2]=1,t[c][2]=1;c;){for(n=0,r=u+1;r<c;r++)(a=i(t[r],t[u],t[c]))>n&&(o=r,n=a);n>s?(t[o][2]=n,h.push(u),h.push(o),u=o):(c=h.pop(),u=h.pop())}}function i(t,e,r){var n=e[0],i=e[1],a=r[0],o=r[1],s=t[0],l=t[1],u=a-n,c=o-i;if(0!==u||0!==c){var h=((s-n)*u+(l-i)*c)/(u*u+c*c);h>1?(n=a,i=o):h>0&&(n+=u*h,i+=c*h)}return u=s-n,c=l-i,u*u+c*c}e.exports=n},{}],144:[function(t,e,r){\"use strict\";function n(t,e,r,n,a,o){for(var s={features:[],numPoints:0,numSimplified:0,numFeatures:0,source:null,x:r,y:n,z2:e,transformed:!1,min:[2,1],max:[-1,0]},l=0;l<t.length;l++){s.numFeatures++,i(s,t[l],a,o);var u=t[l].min,c=t[l].max;u[0]<s.min[0]&&(s.min[0]=u[0]),u[1]<s.min[1]&&(s.min[1]=u[1]),c[0]>s.max[0]&&(s.max[0]=c[0]),c[1]>s.max[1]&&(s.max[1]=c[1])}return s}function i(t,e,r,n){var i,o,s,l,u=e.geometry,c=e.type,h=[],f=r*r;if(1===c)for(i=0;i<u.length;i++)h.push(u[i]),t.numPoints++,t.numSimplified++;else for(i=0;i<u.length;i++)if(s=u[i],n||!(2===c&&s.dist<r||3===c&&s.area<f)){var d=[];for(o=0;o<s.length;o++)l=s[o],(n||l[2]>f)&&(d.push(l),t.numSimplified++),t.numPoints++;3===c&&a(d,s.outer),h.push(d)}else t.numPoints+=s.length;if(h.length){var p={geometry:h,type:c,tags:e.tags||null};null!==e.id&&(p.id=e.id),t.features.push(p)}}function a(t,e){o(t)<0===e&&t.reverse()}function o(t){for(var e,r,n=0,i=0,a=t.length,o=a-1;i<a;o=i++)e=t[i],r=t[o],n+=(r[0]-e[0])*(e[1]+r[1]);return n}e.exports=n},{}],145:[function(t,e,r){\"use strict\";function n(t,e){if(t.transformed)return t;var r,n,a,o=t.z2,s=t.x,l=t.y;for(r=0;r<t.features.length;r++){var u=t.features[r],c=u.geometry;if(1===u.type)for(n=0;n<c.length;n++)c[n]=i(c[n],e,o,s,l);else for(n=0;n<c.length;n++){var h=c[n];for(a=0;a<h.length;a++)h[a]=i(h[a],e,o,s,l)}}return t.transformed=!0,t}function i(t,e,r,n,i){return[Math.round(e*(t[0]*r-n)),Math.round(e*(t[1]*r-i))]}r.tile=n,r.point=i},{}],146:[function(t,e,r){\"use strict\";function n(t,e,r){var n=t,a=o(t,1,-1-e,e,0,r,-1,2),s=o(t,1,1-e,2+e,0,r,-1,2);return(a||s)&&(n=o(t,1,-e,1+e,0,r,-1,2)||[],a&&(n=i(a,1).concat(n)),s&&(n=n.concat(i(s,-1)))),n}function i(t,e){for(var r=[],n=0;n<t.length;n++){var i,o=t[n],l=o.type;if(1===l)i=a(o.geometry,e);else{i=[];for(var u=0;u<o.geometry.length;u++)i.push(a(o.geometry[u],e))}r.push(s(o.tags,l,i,o.id))}return r}function a(t,e){var r=[];r.area=t.area,r.dist=t.dist;for(var n=0;n<t.length;n++)r.push([t[n][0]+e,t[n][1],t[n][2]]);return r}var o=t(\"./clip\"),s=t(\"./feature\");e.exports=n},{\"./clip\":139,\"./feature\":141}],147:[function(t,e,r){function n(t,e){if(\"string\"!=typeof t)throw new TypeError(\"must specify type string\");if(e=e||{},\"undefined\"==typeof document&&!e.canvas)return null;var r=e.canvas||document.createElement(\"canvas\");\"number\"==typeof e.width&&(r.width=e.width),\"number\"==typeof e.height&&(r.height=e.height);var n,i=e;try{var a=[t];0===t.indexOf(\"webgl\")&&a.push(\"experimental-\"+t);for(var o=0;o<a.length;o++)if(n=r.getContext(a[o],i))return n}catch(t){n=null}return n||null}e.exports=n},{}],148:[function(t,e,r){\"use strict\";function n(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function i(t){this.gl=t,this.pixelRatio=1,this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.autoTicks=!0,this.tickSpacing=[1,1,1],this.tickEnable=[!0,!0,!0],this.tickFont=[\"sans-serif\",\"sans-serif\",\"sans-serif\"],this.tickSize=[12,12,12],this.tickAngle=[0,0,0],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[10,10,10],this.lastCubeProps={cubeEdges:[0,0,0],axis:[0,0,0]},this.labels=[\"x\",\"y\",\"z\"],this.labelEnable=[!0,!0,!0],this.labelFont=\"sans-serif\",this.labelSize=[20,20,20],this.labelAngle=[0,0,0],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[10,10,10],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[0,0,0],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!1,!1,!1],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._firstInit=!0,this._text=null,this._lines=null,this._background=c(t)}function a(){this.primalOffset=[0,0,0],this.primalMinor=[0,0,0],this.mirrorOffset=[0,0,0],this.mirrorMinor=[0,0,0]}function o(t,e,r,n,i){for(var a=t.primalOffset,o=t.primalMinor,s=t.mirrorOffset,l=t.mirrorMinor,u=n[e],c=0;c<3;++c)if(e!==c){var h=a,f=s,d=o,p=l\n", ";u&1<<c&&(h=s,f=a,d=l,p=o),h[c]=r[0][c],f[c]=r[1][c],i[c]>0?(d[c]=-1,p[c]=0):(d[c]=0,p[c]=1)}}function s(t,e){var r=new i(t);return r.update(e),r}e.exports=s;var l=t(\"./lib/text.js\"),u=t(\"./lib/lines.js\"),c=t(\"./lib/background.js\"),h=t(\"./lib/cube.js\"),f=t(\"./lib/ticks.js\"),d=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),p=i.prototype;p.update=function(t){function e(e,r,n){if(n in t){var i,a=t[n],o=this[n];(e?Array.isArray(a)&&Array.isArray(a[0]):Array.isArray(a))?this[n]=i=[r(a[0]),r(a[1]),r(a[2])]:this[n]=i=[r(a),r(a),r(a)];for(var s=0;s<3;++s)if(i[s]!==o[s])return!0}return!1}t=t||{};var r,n=e.bind(this,!1,Number),i=e.bind(this,!1,Boolean),a=e.bind(this,!1,String),o=e.bind(this,!0,function(t){if(Array.isArray(t)){if(3===t.length)return[+t[0],+t[1],+t[2],1];if(4===t.length)return[+t[0],+t[1],+t[2],+t[3]]}return[0,0,0,1]}),s=!1,c=!1;if(\"bounds\"in t)for(var h=t.bounds,d=0;d<2;++d)for(var p=0;p<3;++p)h[d][p]!==this.bounds[d][p]&&(c=!0),this.bounds[d][p]=h[d][p];if(\"ticks\"in t){r=t.ticks,s=!0,this.autoTicks=!1;for(var d=0;d<3;++d)this.tickSpacing[d]=0}else n(\"tickSpacing\")&&(this.autoTicks=!0,c=!0);if(this._firstInit&&(\"ticks\"in t||\"tickSpacing\"in t||(this.autoTicks=!0),c=!0,s=!0,this._firstInit=!1),c&&this.autoTicks&&(r=f.create(this.bounds,this.tickSpacing),s=!0),s){for(var d=0;d<3;++d)r[d].sort(function(t,e){return t.x-e.x});f.equal(r,this.ticks)?s=!1:this.ticks=r}i(\"tickEnable\"),a(\"tickFont\")&&(s=!0),n(\"tickSize\"),n(\"tickAngle\"),n(\"tickPad\"),o(\"tickColor\");var m=a(\"labels\");a(\"labelFont\")&&(m=!0),i(\"labelEnable\"),n(\"labelSize\"),n(\"labelPad\"),o(\"labelColor\"),i(\"lineEnable\"),i(\"lineMirror\"),n(\"lineWidth\"),o(\"lineColor\"),i(\"lineTickEnable\"),i(\"lineTickMirror\"),n(\"lineTickLength\"),n(\"lineTickWidth\"),o(\"lineTickColor\"),i(\"gridEnable\"),n(\"gridWidth\"),o(\"gridColor\"),i(\"zeroEnable\"),o(\"zeroLineColor\"),n(\"zeroLineWidth\"),i(\"backgroundEnable\"),o(\"backgroundColor\"),this._text?this._text&&(m||s)&&this._text.update(this.bounds,this.labels,this.labelFont,this.ticks,this.tickFont):this._text=l(this.gl,this.bounds,this.labels,this.labelFont,this.ticks,this.tickFont),this._lines&&s&&(this._lines.dispose(),this._lines=null),this._lines||(this._lines=u(this.gl,this.bounds,this.ticks))};var m=[new a,new a,new a],v=[0,0,0],g={model:d,view:d,projection:d};p.isOpaque=function(){return!0},p.isTransparent=function(){return!1},p.drawTransparent=function(t){};var y=[0,0,0],b=[0,0,0],x=[0,0,0];p.draw=function(t){t=t||g;for(var e=this.gl,r=t.model||d,i=t.view||d,a=t.projection||d,s=this.bounds,l=h(r,i,a,s),u=l.cubeEdges,c=l.axis,f=i[12],p=i[13],_=i[14],w=i[15],M=this.pixelRatio*(a[3]*f+a[7]*p+a[11]*_+a[15]*w)/e.drawingBufferHeight,k=0;k<3;++k)this.lastCubeProps.cubeEdges[k]=u[k],this.lastCubeProps.axis[k]=c[k];for(var A=m,k=0;k<3;++k)o(m[k],k,this.bounds,u,c);for(var e=this.gl,T=v,k=0;k<3;++k)this.backgroundEnable[k]?T[k]=c[k]:T[k]=0;this._background.draw(r,i,a,s,T,this.backgroundColor),this._lines.bind(r,i,a,this);for(var k=0;k<3;++k){var S=[0,0,0];c[k]>0?S[k]=s[1][k]:S[k]=s[0][k];for(var E=0;E<2;++E){var L=(k+1+E)%3,C=(k+1+(1^E))%3;this.gridEnable[L]&&this._lines.drawGrid(L,C,this.bounds,S,this.gridColor[L],this.gridWidth[L]*this.pixelRatio)}for(var E=0;E<2;++E){var L=(k+1+E)%3,C=(k+1+(1^E))%3;this.zeroEnable[C]&&s[0][C]<=0&&s[1][C]>=0&&this._lines.drawZero(L,C,this.bounds,S,this.zeroLineColor[C],this.zeroLineWidth[C]*this.pixelRatio)}}for(var k=0;k<3;++k){this.lineEnable[k]&&this._lines.drawAxisLine(k,this.bounds,A[k].primalOffset,this.lineColor[k],this.lineWidth[k]*this.pixelRatio),this.lineMirror[k]&&this._lines.drawAxisLine(k,this.bounds,A[k].mirrorOffset,this.lineColor[k],this.lineWidth[k]*this.pixelRatio);for(var I=n(y,A[k].primalMinor),z=n(b,A[k].mirrorMinor),D=this.lineTickLength,E=0;E<3;++E){var P=M/r[5*E];I[E]*=D[E]*P,z[E]*=D[E]*P}this.lineTickEnable[k]&&this._lines.drawAxisTicks(k,A[k].primalOffset,I,this.lineTickColor[k],this.lineTickWidth[k]*this.pixelRatio),this.lineTickMirror[k]&&this._lines.drawAxisTicks(k,A[k].mirrorOffset,z,this.lineTickColor[k],this.lineTickWidth[k]*this.pixelRatio)}this._text.bind(r,i,a,this.pixelRatio);for(var k=0;k<3;++k){for(var O=A[k].primalMinor,R=n(x,A[k].primalOffset),E=0;E<3;++E)this.lineTickEnable[k]&&(R[E]+=M*O[E]*Math.max(this.lineTickLength[E],0)/r[5*E]);if(this.tickEnable[k]){for(var E=0;E<3;++E)R[E]+=M*O[E]*this.tickPad[E]/r[5*E];this._text.drawTicks(k,this.tickSize[k],this.tickAngle[k],R,this.tickColor[k])}if(this.labelEnable[k]){for(var E=0;E<3;++E)R[E]+=M*O[E]*this.labelPad[E]/r[5*E];R[k]+=.5*(s[0][k]+s[1][k]),this._text.drawLabel(k,this.labelSize[k],this.labelAngle[k],R,this.labelColor[k])}}},p.dispose=function(){this._text.dispose(),this._lines.dispose(),this._background.dispose(),this._lines=null,this._text=null,this._background=null,this.gl=null}},{\"./lib/background.js\":149,\"./lib/cube.js\":150,\"./lib/lines.js\":151,\"./lib/text.js\":153,\"./lib/ticks.js\":154}],149:[function(t,e,r){\"use strict\";function n(t,e,r,n){this.gl=t,this.buffer=e,this.vao=r,this.shader=n}function i(t){for(var e=[],r=[],i=0,l=0;l<3;++l)for(var u=(l+1)%3,c=(l+2)%3,h=[0,0,0],f=[0,0,0],d=-1;d<=1;d+=2){r.push(i,i+2,i+1,i+1,i+2,i+3),h[l]=d,f[l]=d;for(var p=-1;p<=1;p+=2){h[u]=p;for(var m=-1;m<=1;m+=2)h[c]=m,e.push(h[0],h[1],h[2],f[0],f[1],f[2]),i+=1}var v=u;u=c,c=v}var g=a(t,new Float32Array(e)),y=a(t,new Uint16Array(r),t.ELEMENT_ARRAY_BUFFER),b=o(t,[{buffer:g,type:t.FLOAT,size:3,offset:0,stride:24},{buffer:g,type:t.FLOAT,size:3,offset:12,stride:24}],y),x=s(t);return x.attributes.position.location=0,x.attributes.normal.location=1,new n(t,g,b,x)}e.exports=i;var a=t(\"gl-buffer\"),o=t(\"gl-vao\"),s=t(\"./shaders\").bg,l=n.prototype;l.draw=function(t,e,r,n,i,a){for(var o=!1,s=0;s<3;++s)o=o||i[s];if(o){var l=this.gl;l.enable(l.POLYGON_OFFSET_FILL),l.polygonOffset(1,2),this.shader.bind(),this.shader.uniforms={model:t,view:e,projection:r,bounds:n,enable:i,colors:a},this.vao.bind(),this.vao.draw(this.gl.TRIANGLES,36),l.disable(l.POLYGON_OFFSET_FILL)}},l.dispose=function(){this.vao.dispose(),this.buffer.dispose(),this.shader.dispose()}},{\"./shaders\":152,\"gl-buffer\":156,\"gl-vao\":271}],150:[function(t,e,r){\"use strict\";function n(t,e,r){for(var n=0;n<4;++n){t[n]=r[12+n];for(var i=0;i<3;++i)t[n]+=e[i]*r[4*i+n]}}function i(t){for(var e=0;e<m.length;++e)if(t=l.positive(t,m[e]),t.length<3)return 0;for(var r=t[0],n=r[0]/r[3],i=r[1]/r[3],a=0,e=1;e+1<t.length;++e){var o=t[e],s=t[e+1],u=o[0]/o[3],c=o[1]/o[3],h=s[0]/s[3],f=s[1]/s[3],d=u-n,p=c-i,v=h-n,g=f-i;a+=Math.abs(d*g-p*v)}return a}function a(t,e,r,a){s(c,e,t),s(c,r,c);for(var l=0,m=0;m<2;++m){d[2]=a[m][2];for(var b=0;b<2;++b){d[1]=a[b][1];for(var x=0;x<2;++x)d[0]=a[x][0],n(h[l],d,c),l+=1}}for(var _=-1,m=0;m<8;++m){for(var w=h[m][3],M=0;M<3;++M)f[m][M]=h[m][M]/w;w<0&&(_<0?_=m:f[m][2]<f[_][2]&&(_=m))}if(_<0){_=0;for(var k=0;k<3;++k){for(var A=(k+2)%3,T=(k+1)%3,S=-1,E=-1,L=0;L<2;++L){var C=L<<k,I=C+(L<<A)+(1-L<<T),z=C+(1-L<<A)+(L<<T);u(f[C],f[I],f[z],p)<0||(L?S=1:E=1)}if(S<0||E<0)E>S&&(_|=1<<k);else{for(var L=0;L<2;++L){var C=L<<k,I=C+(L<<A)+(1-L<<T),z=C+(1-L<<A)+(L<<T),D=i([h[C],h[I],h[z],h[C+(1<<A)+(1<<T)]]);L?S=D:E=D}E>S&&(_|=1<<k)}}}for(var P=7^_,O=-1,m=0;m<8;++m)m!==_&&m!==P&&(O<0?O=m:f[O][1]>f[m][1]&&(O=m));for(var R=-1,m=0;m<3;++m){var F=O^1<<m;if(F!==_&&F!==P){R<0&&(R=F);var T=f[F];T[0]<f[R][0]&&(R=F)}}for(var j=-1,m=0;m<3;++m){var F=O^1<<m;if(F!==_&&F!==P&&F!==R){j<0&&(j=F);var T=f[F];T[0]>f[j][0]&&(j=F)}}var N=v;N[0]=N[1]=N[2]=0,N[o.log2(R^O)]=O&R,N[o.log2(O^j)]=O&j;var B=7^j;B===_||B===P?(B=7^R,N[o.log2(j^B)]=B&j):N[o.log2(R^B)]=B&R;for(var U=g,V=_,k=0;k<3;++k)U[k]=V&1<<k?-1:1;return y}e.exports=a;var o=t(\"bit-twiddle\"),s=t(\"gl-mat4/multiply\"),l=(t(\"gl-mat4/invert\"),t(\"split-polygon\")),u=t(\"robust-orientation\"),c=new Array(16),h=(new Array(16),new Array(8)),f=new Array(8),d=new Array(3),p=[0,0,0];!function(){for(var t=0;t<8;++t)h[t]=[1,1,1,1],f[t]=[1,1,1]}();var m=[[0,0,1,0,0],[0,0,-1,1,0],[0,-1,0,1,0],[0,1,0,1,0],[-1,0,0,1,0],[1,0,0,1,0]],v=[1,1,1],g=[0,0,0],y={cubeEdges:v,axis:g}},{\"bit-twiddle\":67,\"gl-mat4/invert\":181,\"gl-mat4/multiply\":183,\"robust-orientation\":508,\"split-polygon\":526}],151:[function(t,e,r){\"use strict\";function n(t){return t[0]=t[1]=t[2]=0,t}function i(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function a(t,e,r,n,i,a,o,s){this.gl=t,this.vertBuffer=e,this.vao=r,this.shader=n,this.tickCount=i,this.tickOffset=a,this.gridCount=o,this.gridOffset=s}function o(t,e,r){var n=[],i=[0,0,0],o=[0,0,0],c=[0,0,0],h=[0,0,0];n.push(0,0,1,0,1,1,0,0,-1,0,0,-1,0,1,1,0,1,-1);for(var f=0;f<3;++f){for(var d=n.length/3|0,p=0;p<r[f].length;++p){var m=+r[f][p].x;n.push(m,0,1,m,1,1,m,0,-1,m,0,-1,m,1,1,m,1,-1)}var v=n.length/3|0;i[f]=d,o[f]=v-d;for(var d=n.length/3|0,g=0;g<r[f].length;++g){var m=+r[f][g].x;n.push(m,0,1,m,1,1,m,0,-1,m,0,-1,m,1,1,m,1,-1)}var v=n.length/3|0;c[f]=d,h[f]=v-d}var y=s(t,new Float32Array(n)),b=l(t,[{buffer:y,type:t.FLOAT,size:3,stride:0,offset:0}]),x=u(t);return x.attributes.position.location=0,new a(t,y,b,x,o,i,h,c)}e.exports=o;var s=t(\"gl-buffer\"),l=t(\"gl-vao\"),u=t(\"./shaders\").line,c=[0,0,0],h=[0,0,0],f=[0,0,0],d=[0,0,0],p=[1,1],m=a.prototype;m.bind=function(t,e,r){this.shader.bind(),this.shader.uniforms.model=t,this.shader.uniforms.view=e,this.shader.uniforms.projection=r,p[0]=this.gl.drawingBufferWidth,p[1]=this.gl.drawingBufferHeight,this.shader.uniforms.screenShape=p,this.vao.bind()},m.drawAxisLine=function(t,e,r,a,o){var s=n(h);this.shader.uniforms.majorAxis=h,s[t]=e[1][t]-e[0][t],this.shader.uniforms.minorAxis=s;var l=i(d,r);l[t]+=e[0][t],this.shader.uniforms.offset=l,this.shader.uniforms.lineWidth=o,this.shader.uniforms.color=a;var u=n(f);u[(t+2)%3]=1,this.shader.uniforms.screenAxis=u,this.vao.draw(this.gl.TRIANGLES,6);var u=n(f);u[(t+1)%3]=1,this.shader.uniforms.screenAxis=u,this.vao.draw(this.gl.TRIANGLES,6)},m.drawAxisTicks=function(t,e,r,i,a){if(this.tickCount[t]){var o=n(c);o[t]=1,this.shader.uniforms.majorAxis=o,this.shader.uniforms.offset=e,this.shader.uniforms.minorAxis=r,this.shader.uniforms.color=i,this.shader.uniforms.lineWidth=a;var s=n(f);s[t]=1,this.shader.uniforms.screenAxis=s,this.vao.draw(this.gl.TRIANGLES,this.tickCount[t],this.tickOffset[t])}},m.drawGrid=function(t,e,r,a,o,s){if(this.gridCount[t]){var l=n(h);l[e]=r[1][e]-r[0][e],this.shader.uniforms.minorAxis=l;var u=i(d,a);u[e]+=r[0][e],this.shader.uniforms.offset=u;var p=n(c);p[t]=1,this.shader.uniforms.majorAxis=p;var m=n(f);m[t]=1,this.shader.uniforms.screenAxis=m,this.shader.uniforms.lineWidth=s,this.shader.uniforms.color=o,this.vao.draw(this.gl.TRIANGLES,this.gridCount[t],this.gridOffset[t])}},m.drawZero=function(t,e,r,a,o,s){var l=n(h);this.shader.uniforms.majorAxis=l,l[t]=r[1][t]-r[0][t],this.shader.uniforms.minorAxis=l;var u=i(d,a);u[t]+=r[0][t],this.shader.uniforms.offset=u;var c=n(f);c[e]=1,this.shader.uniforms.screenAxis=c,this.shader.uniforms.lineWidth=s,this.shader.uniforms.color=o,this.vao.draw(this.gl.TRIANGLES,6)},m.dispose=function(){this.vao.dispose(),this.vertBuffer.dispose(),this.shader.dispose()}},{\"./shaders\":152,\"gl-buffer\":156,\"gl-vao\":271}],152:[function(t,e,r){\"use strict\";var n=t(\"gl-shader\");r.line=function(t){return n(t,\"#define GLSLIFY 1\\nattribute vec3 position;\\n\\nuniform mat4 model, view, projection;\\nuniform vec3 offset, majorAxis, minorAxis, screenAxis;\\nuniform float lineWidth;\\nuniform vec2 screenShape;\\n\\nvec3 project(vec3 p) {\\n vec4 pp = projection * view * model * vec4(p, 1.0);\\n return pp.xyz / max(pp.w, 0.0001);\\n}\\n\\nvoid main() {\\n vec3 major = position.x * majorAxis;\\n vec3 minor = position.y * minorAxis;\\n\\n vec3 vPosition = major + minor + offset;\\n vec3 pPosition = project(vPosition);\\n vec3 offset = project(vPosition + screenAxis * position.z);\\n\\n vec2 screen = normalize((offset - pPosition).xy * screenShape) / screenShape;\\n\\n gl_Position = vec4(pPosition + vec3(0.5 * screen * lineWidth, 0), 1.0);\\n}\\n\",\"precision mediump float;\\n#define GLSLIFY 1\\nuniform vec4 color;\\nvoid main() {\\n gl_FragColor = color;\\n}\",null,[{name:\"position\",type:\"vec3\"}])};r.text=function(t){return n(t,\"#define GLSLIFY 1\\nattribute vec3 position;\\n\\nuniform mat4 model, view, projection;\\nuniform vec3 offset, axis;\\nuniform float scale, angle, pixelScale;\\nuniform vec2 resolution;\\n\\nvoid main() { \\n //Compute plane offset\\n vec2 planeCoord = position.xy * pixelScale;\\n mat2 planeXform = scale * mat2(cos(angle), sin(angle),\\n -sin(angle), cos(angle));\\n vec2 viewOffset = 2.0 * planeXform * planeCoord / resolution;\\n\\n //Compute world offset\\n float axisDistance = position.z;\\n vec3 dataPosition = axisDistance * axis + offset;\\n vec4 worldPosition = model * vec4(dataPosition, 1);\\n \\n //Compute clip position\\n vec4 viewPosition = view * worldPosition;\\n vec4 clipPosition = projection * viewPosition;\\n clipPosition /= clipPosition.w;\\n\\n //Apply text offset in clip coordinates\\n clipPosition += vec4(viewOffset, 0, 0);\\n\\n //Done\\n gl_Position = clipPosition;\\n}\",\"precision mediump float;\\n#define GLSLIFY 1\\nuniform vec4 color;\\nvoid main() {\\n gl_FragColor = color;\\n}\",null,[{name:\"position\",type:\"vec3\"}])};r.bg=function(t){return n(t,\"#define GLSLIFY 1\\nattribute vec3 position;\\nattribute vec3 normal;\\n\\nuniform mat4 model, view, projection;\\nuniform vec3 enable;\\nuniform vec3 bounds[2];\\n\\nvarying vec3 colorChannel;\\n\\nvoid main() {\\n if(dot(normal, enable) > 0.0) {\\n vec3 nPosition = mix(bounds[0], bounds[1], 0.5 * (position + 1.0));\\n gl_Position = projection * view * model * vec4(nPosition, 1.0);\\n } else {\\n gl_Position = vec4(0,0,0,0);\\n }\\n colorChannel = abs(normal);\\n}\",\"precision mediump float;\\n#define GLSLIFY 1\\n\\nuniform vec4 colors[3];\\n\\nvarying vec3 colorChannel;\\n\\nvoid main() {\\n gl_FragColor = colorChannel.x * colors[0] + \\n colorChannel.y * colors[1] +\\n colorChannel.z * colors[2];\\n}\",null,[{name:\"position\",type:\"vec3\"},{name:\"normal\",type:\"vec3\"}])}},{\"gl-shader\":255}],153:[function(t,e,r){(function(r){\"use strict\";function n(t,e,r,n){this.gl=t,this.shader=e,this.buffer=r,this.vao=n,this.tickOffset=this.tickCount=this.labelOffset=this.labelCount=null}function i(t,e){try{return l(t,e)}catch(t){return console.warn(\"error vectorizing text:\",t),{cells:[],positions:[]}}}function a(t,e,r,i,a,l){var c=o(t),h=s(t,[{buffer:c,size:3}]),f=u(t);f.attributes.position.location=0;var d=new n(t,f,c,h);return d.update(e,r,i,a,l),d}e.exports=a;var o=t(\"gl-buffer\"),s=t(\"gl-vao\"),l=t(\"vectorize-text\"),u=t(\"./shaders\").text,c=window||r.global||{},h=c.__TEXT_CACHE||{};c.__TEXT_CACHE={};var f=n.prototype,d=[0,0];f.bind=function(t,e,r,n){this.vao.bind(),this.shader.bind();var i=this.shader.uniforms;i.model=t,i.view=e,i.projection=r,i.pixelScale=n,d[0]=this.gl.drawingBufferWidth,d[1]=this.gl.drawingBufferHeight,this.shader.uniforms.resolution=d},f.update=function(t,e,r,n,a){function o(t,e,r,n){var a=h[r];a||(a=h[r]={});var o=a[e];o||(o=a[e]=i(e,{triangles:!0,font:r,textAlign:\"center\",textBaseline:\"middle\"}));for(var l=(n||12)/12,u=o.positions,c=o.cells,f=0,d=c.length;f<d;++f)for(var p=c[f],m=2;m>=0;--m){var v=u[p[m]];s.push(l*v[0],-l*v[1],t)}}for(var s=(this.gl,[]),l=[0,0,0],u=[0,0,0],c=[0,0,0],f=[0,0,0],d=0;d<3;++d){c[d]=s.length/3|0,o(.5*(t[0][d]+t[1][d]),e[d],r),f[d]=(s.length/3|0)-c[d],l[d]=s.length/3|0;for(var p=0;p<n[d].length;++p)n[d][p].text&&o(n[d][p].x,n[d][p].text,n[d][p].font||a,n[d][p].fontSize||12);u[d]=(s.length/3|0)-l[d]}this.buffer.update(s),this.tickOffset=l,this.tickCount=u,this.labelOffset=c,this.labelCount=f};var p=[0,0,0];f.drawTicks=function(t,e,r,n,i){if(this.tickCount[t]){var a=p;a[0]=a[1]=a[2]=0,a[t]=1,this.shader.uniforms.axis=a,this.shader.uniforms.color=i,this.shader.uniforms.angle=r,this.shader.uniforms.scale=e,this.shader.uniforms.offset=n,this.vao.draw(this.gl.TRIANGLES,this.tickCount[t],this.tickOffset[t])}};var m=[0,0,0];f.drawLabel=function(t,e,r,n,i){this.labelCount[t]&&(this.shader.uniforms.axis=m,this.shader.uniforms.color=i,this.shader.uniforms.angle=r,this.shader.uniforms.scale=e,this.shader.uniforms.offset=n,this.vao.draw(this.gl.TRIANGLES,this.labelCount[t],this.labelOffset[t]))},f.dispose=function(){this.shader.dispose(),this.vao.dispose(),this.buffer.dispose()}}).call(this,t(\"_process\"))},{\"./shaders\":152,_process:487,\"gl-buffer\":156,\"gl-vao\":271,\"vectorize-text\":554}],154:[function(t,e,r){\"use strict\";function n(t,e){var r=t+\"\",n=r.indexOf(\".\"),i=0;n>=0&&(i=r.length-n-1);var a=Math.pow(10,i),o=Math.round(t*e*a),s=o+\"\";if(s.indexOf(\"e\")>=0)return s;var l=o/a,u=o%a;o<0?(l=0|-Math.ceil(l),u=0|-u):(l=0|Math.floor(l),u|=0);var c=\"\"+l;if(o<0&&(c=\"-\"+c),i){for(var h=\"\"+u;h.length<i;)h=\"0\"+h;return c+\".\"+h}return c}function i(t,e){for(var r=[],i=0;i<3;++i){for(var a=[],o=(t[0][i],t[1][i],0);o*e[i]<=t[1][i];++o)a.push({x:o*e[i],text:n(e[i],o)});for(var o=-1;o*e[i]>=t[0][i];--o)a.push({x:o*e[i],text:n(e[i],o)});r.push(a)}return r}function a(t,e){for(var r=0;r<3;++r){if(t[r].length!==e[r].length)return!1;for(var n=0;n<t[r].length;++n){var i=t[r][n],a=e[r][n];if(i.x!==a.x||i.text!==a.text||i.font!==a.font||i.fontColor!==a.fontColor||i.fontSize!==a.fontSize||i.dx!==a.dx||i.dy!==a.dy)return!1}}return!0}r.create=i,r.equal=a},{}],155:[function(t,e,r){\"use strict\";function n(t,e,r){this.lo=t,this.hi=e,this.pixelsPerDataUnit=r}function i(t,e,r,n,i){for(var a=0;a<3;++a){for(var o=p,s=m,l=0;l<3;++l)s[l]=o[l]=r[l];s[3]=o[3]=1,s[a]+=1,h(s,s,e),s[3]<0&&(t[a]=1/0),o[a]-=1,h(o,o,e),o[3]<0&&(t[a]=1/0);var u=(o[0]/o[3]-s[0]/s[3])*n,c=(o[1]/o[3]-s[1]/s[3])*i;t[a]=.25*Math.sqrt(u*u+c*c)}return t}function a(t,e,r,n,a){var h=e.model||f,p=e.view||f,m=e.projection||f,y=t.bounds,a=a||l(h,p,m,y),b=a.axis;a.edges;u(d,p,h),u(d,m,d);for(var x=v,_=0;_<3;++_)x[_].lo=1/0,x[_].hi=-1/0,x[_].pixelsPerDataUnit=1/0;var w=o(c(d,d));c(d,d);for(var M=0;M<3;++M){var k=(M+1)%3,A=(M+2)%3,T=g;t:for(var _=0;_<2;++_){var S=[];if(b[M]<0!=!!_){T[M]=y[_][M];for(var E=0;E<2;++E){T[k]=y[E^_][k];for(var L=0;L<2;++L)T[A]=y[L^E^_][A],S.push(T.slice())}for(var E=0;E<w.length;++E){if(0===S.length)continue t;S=s.positive(S,w[E])}for(var E=0;E<S.length;++E)for(var A=S[E],C=i(g,d,A,r,n),L=0;L<3;++L)x[L].lo=Math.min(x[L].lo,A[L]),x[L].hi=Math.max(x[L].hi,A[L]),L!==M&&(x[L].pixelsPerDataUnit=Math.min(x[L].pixelsPerDataUnit,Math.abs(C[L])))}}}return x}e.exports=a;var o=t(\"extract-frustum-planes\"),s=t(\"split-polygon\"),l=t(\"./lib/cube.js\"),u=t(\"gl-mat4/multiply\"),c=t(\"gl-mat4/transpose\"),h=t(\"gl-vec4/transformMat4\"),f=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),d=new Float32Array(16),p=[0,0,0,1],m=[0,0,0,1],v=[new n(1/0,-1/0,1/0),new n(1/0,-1/0,1/0),new n(1/0,-1/0,1/0)],g=[0,0,0]},{\"./lib/cube.js\":150,\"extract-frustum-planes\":130,\"gl-mat4/multiply\":183,\"gl-mat4/transpose\":191,\"gl-vec4/transformMat4\":277,\"split-polygon\":526}],156:[function(t,e,r){\"use strict\";function n(t,e,r,n,i){this.gl=t,this.type=e,this.handle=r,this.length=n,this.usage=i}function i(t,e,r,n,i,a){var o=i.length*i.BYTES_PER_ELEMENT;if(a<0)return t.bufferData(e,i,n),o;if(o+a>r)throw new Error(\"gl-buffer: If resizing buffer, must not specify offset\");return t.bufferSubData(e,a,i),r}function a(t,e){for(var r=l.malloc(t.length,e),n=t.length,i=0;i<n;++i)r[i]=t[i];return r}function o(t,e){for(var r=1,n=e.length-1;n>=0;--n){if(e[n]!==r)return!1;r*=t[n]}return!0}function s(t,e,r,i){if(r=r||t.ARRAY_BUFFER,i=i||t.DYNAMIC_DRAW,r!==t.ARRAY_BUFFER&&r!==t.ELEMENT_ARRAY_BUFFER)throw new Error(\"gl-buffer: Invalid type for webgl buffer, must be either gl.ARRAY_BUFFER or gl.ELEMENT_ARRAY_BUFFER\");if(i!==t.DYNAMIC_DRAW&&i!==t.STATIC_DRAW&&i!==t.STREAM_DRAW)throw new Error(\"gl-buffer: Invalid usage for buffer, must be either gl.DYNAMIC_DRAW, gl.STATIC_DRAW or gl.STREAM_DRAW\");var a=t.createBuffer(),o=new n(t,r,a,0,i);return o.update(e),o}var l=t(\"typedarray-pool\"),u=t(\"ndarray-ops\"),c=t(\"ndarray\"),h=[\"uint8\",\"uint8_clamped\",\"uint16\",\"uint32\",\"int8\",\"int16\",\"int32\",\"float32\"],f=n.prototype;f.bind=function(){this.gl.bindBuffer(this.type,this.handle)},f.unbind=function(){this.gl.bindBuffer(this.type,null)},f.dispose=function(){this.gl.deleteBuffer(this.handle)},f.update=function(t,e){if(\"number\"!=typeof e&&(e=-1),this.bind(),\"object\"==typeof t&&void 0!==t.shape){var r=t.dtype;if(h.indexOf(r)<0&&(r=\"float32\"),this.type===this.gl.ELEMENT_ARRAY_BUFFER){r=gl.getExtension(\"OES_element_index_uint\")&&\"uint16\"!==r?\"uint32\":\"uint16\"}if(r===t.dtype&&o(t.shape,t.stride))0===t.offset&&t.data.length===t.shape[0]?this.length=i(this.gl,this.type,this.length,this.usage,t.data,e):this.length=i(this.gl,this.type,this.length,this.usage,t.data.subarray(t.offset,t.shape[0]),e);else{var n=l.malloc(t.size,r),s=c(n,t.shape);u.assign(s,t),this.length=e<0?i(this.gl,this.type,this.length,this.usage,n,e):i(this.gl,this.type,this.length,this.usage,n.subarray(0,t.size),e),l.free(n)}}else if(Array.isArray(t)){var f;f=this.type===this.gl.ELEMENT_ARRAY_BUFFER?a(t,\"uint16\"):a(t,\"float32\"),this.length=e<0?i(this.gl,this.type,this.length,this.usage,f,e):i(this.gl,this.type,this.length,this.usage,f.subarray(0,t.length),e),l.free(f)}else if(\"object\"==typeof t&&\"number\"==typeof t.length)this.length=i(this.gl,this.type,this.length,this.usage,t,e);else{if(\"number\"!=typeof t&&void 0!==t)throw new Error(\"gl-buffer: Invalid data type\");if(e>=0)throw new Error(\"gl-buffer: Cannot specify offset when resizing buffer\");t|=0,t<=0&&(t=1),this.gl.bufferData(this.type,0|t,this.usage),this.length=t}},e.exports=s},{ndarray:467,\"ndarray-ops\":461,\"typedarray-pool\":541}],157:[function(t,e,r){e.exports={0:\"NONE\",1:\"ONE\",2:\"LINE_LOOP\",3:\"LINE_STRIP\",4:\"TRIANGLES\",5:\"TRIANGLE_STRIP\",6:\"TRIANGLE_FAN\",256:\"DEPTH_BUFFER_BIT\",512:\"NEVER\",513:\"LESS\",514:\"EQUAL\",515:\"LEQUAL\",516:\"GREATER\",517:\"NOTEQUAL\",518:\"GEQUAL\",519:\"ALWAYS\",768:\"SRC_COLOR\",769:\"ONE_MINUS_SRC_COLOR\",770:\"SRC_ALPHA\",771:\"ONE_MINUS_SRC_ALPHA\",772:\"DST_ALPHA\",773:\"ONE_MINUS_DST_ALPHA\",774:\"DST_COLOR\",775:\"ONE_MINUS_DST_COLOR\",776:\"SRC_ALPHA_SATURATE\",1024:\"STENCIL_BUFFER_BIT\",1028:\"FRONT\",1029:\"BACK\",1032:\"FRONT_AND_BACK\",1280:\"INVALID_ENUM\",1281:\"INVALID_VALUE\",1282:\"INVALID_OPERATION\",1285:\"OUT_OF_MEMORY\",1286:\"INVALID_FRAMEBUFFER_OPERATION\",2304:\"CW\",2305:\"CCW\",2849:\"LINE_WIDTH\",2884:\"CULL_FACE\",2885:\"CULL_FACE_MODE\",2886:\"FRONT_FACE\",2928:\"DEPTH_RANGE\",2929:\"DEPTH_TEST\",2930:\"DEPTH_WRITEMASK\",2931:\"DEPTH_CLEAR_VALUE\",2932:\"DEPTH_FUNC\",2960:\"STENCIL_TEST\",2961:\"STENCIL_CLEAR_VALUE\",2962:\"STENCIL_FUNC\",2963:\"STENCIL_VALUE_MASK\",2964:\"STENCIL_FAIL\",2965:\"STENCIL_PASS_DEPTH_FAIL\",2966:\"STENCIL_PASS_DEPTH_PASS\",2967:\"STENCIL_REF\",2968:\"STENCIL_WRITEMASK\",2978:\"VIEWPORT\",3024:\"DITHER\",3042:\"BLEND\",3088:\"SCISSOR_BOX\",3089:\"SCISSOR_TEST\",3106:\"COLOR_CLEAR_VALUE\",3107:\"COLOR_WRITEMASK\",3317:\"UNPACK_ALIGNMENT\",3333:\"PACK_ALIGNMENT\",3379:\"MAX_TEXTURE_SIZE\",3386:\"MAX_VIEWPORT_DIMS\",3408:\"SUBPIXEL_BITS\",3410:\"RED_BITS\",3411:\"GREEN_BITS\",3412:\"BLUE_BITS\",3413:\"ALPHA_BITS\",3414:\"DEPTH_BITS\",3415:\"STENCIL_BITS\",3553:\"TEXTURE_2D\",4352:\"DONT_CARE\",4353:\"FASTEST\",4354:\"NICEST\",5120:\"BYTE\",5121:\"UNSIGNED_BYTE\",5122:\"SHORT\",5123:\"UNSIGNED_SHORT\",5124:\"INT\",5125:\"UNSIGNED_INT\",5126:\"FLOAT\",5386:\"INVERT\",5890:\"TEXTURE\",6401:\"STENCIL_INDEX\",6402:\"DEPTH_COMPONENT\",6406:\"ALPHA\",6407:\"RGB\",6408:\"RGBA\",6409:\"LUMINANCE\",6410:\"LUMINANCE_ALPHA\",7680:\"KEEP\",7681:\"REPLACE\",7682:\"INCR\",7683:\"DECR\",7936:\"VENDOR\",7937:\"RENDERER\",7938:\"VERSION\",9728:\"NEAREST\",9729:\"LINEAR\",9984:\"NEAREST_MIPMAP_NEAREST\",9985:\"LINEAR_MIPMAP_NEAREST\",9986:\"NEAREST_MIPMAP_LINEAR\",9987:\"LINEAR_MIPMAP_LINEAR\",10240:\"TEXTURE_MAG_FILTER\",10241:\"TEXTURE_MIN_FILTER\",10242:\"TEXTURE_WRAP_S\",10243:\"TEXTURE_WRAP_T\",10497:\"REPEAT\",10752:\"POLYGON_OFFSET_UNITS\",16384:\"COLOR_BUFFER_BIT\",32769:\"CONSTANT_COLOR\",32770:\"ONE_MINUS_CONSTANT_COLOR\",32771:\"CONSTANT_ALPHA\",32772:\"ONE_MINUS_CONSTANT_ALPHA\",32773:\"BLEND_COLOR\",32774:\"FUNC_ADD\",32777:\"BLEND_EQUATION_RGB\",32778:\"FUNC_SUBTRACT\",32779:\"FUNC_REVERSE_SUBTRACT\",32819:\"UNSIGNED_SHORT_4_4_4_4\",32820:\"UNSIGNED_SHORT_5_5_5_1\",32823:\"POLYGON_OFFSET_FILL\",32824:\"POLYGON_OFFSET_FACTOR\",32854:\"RGBA4\",32855:\"RGB5_A1\",32873:\"TEXTURE_BINDING_2D\",32926:\"SAMPLE_ALPHA_TO_COVERAGE\",32928:\"SAMPLE_COVERAGE\",32936:\"SAMPLE_BUFFERS\",32937:\"SAMPLES\",32938:\"SAMPLE_COVERAGE_VALUE\",32939:\"SAMPLE_COVERAGE_INVERT\",32968:\"BLEND_DST_RGB\",32969:\"BLEND_SRC_RGB\",32970:\"BLEND_DST_ALPHA\",32971:\"BLEND_SRC_ALPHA\",33071:\"CLAMP_TO_EDGE\",33170:\"GENERATE_MIPMAP_HINT\",33189:\"DEPTH_COMPONENT16\",33306:\"DEPTH_STENCIL_ATTACHMENT\",33635:\"UNSIGNED_SHORT_5_6_5\",33648:\"MIRRORED_REPEAT\",33901:\"ALIASED_POINT_SIZE_RANGE\",33902:\"ALIASED_LINE_WIDTH_RANGE\",33984:\"TEXTURE0\",33985:\"TEXTURE1\",33986:\"TEXTURE2\",33987:\"TEXTURE3\",33988:\"TEXTURE4\",33989:\"TEXTURE5\",33990:\"TEXTURE6\",33991:\"TEXTURE7\",33992:\"TEXTURE8\",33993:\"TEXTURE9\",33994:\"TEXTURE10\",33995:\"TEXTURE11\",33996:\"TEXTURE12\",33997:\"TEXTURE13\",33998:\"TEXTURE14\",33999:\"TEXTURE15\",34e3:\"TEXTURE16\",34001:\"TEXTURE17\",34002:\"TEXTURE18\",34003:\"TEXTURE19\",34004:\"TEXTURE20\",34005:\"TEXTURE21\",34006:\"TEXTURE22\",34007:\"TEXTURE23\",34008:\"TEXTURE24\",34009:\"TEXTURE25\",34010:\"TEXTURE26\",34011:\"TEXTURE27\",34012:\"TEXTURE28\",34013:\"TEXTURE29\",34014:\"TEXTURE30\",34015:\"TEXTURE31\",34016:\"ACTIVE_TEXTURE\",34024:\"MAX_RENDERBUFFER_SIZE\",34041:\"DEPTH_STENCIL\",34055:\"INCR_WRAP\",34056:\"DECR_WRAP\",34067:\"TEXTURE_CUBE_MAP\",34068:\"TEXTURE_BINDING_CUBE_MAP\",34069:\"TEXTURE_CUBE_MAP_POSITIVE_X\",34070:\"TEXTURE_CUBE_MAP_NEGATIVE_X\",34071:\"TEXTURE_CUBE_MAP_POSITIVE_Y\",34072:\"TEXTURE_CUBE_MAP_NEGATIVE_Y\",34073:\"TEXTURE_CUBE_MAP_POSITIVE_Z\",34074:\"TEXTURE_CUBE_MAP_NEGATIVE_Z\",34076:\"MAX_CUBE_MAP_TEXTURE_SIZE\",34338:\"VERTEX_ATTRIB_ARRAY_ENABLED\",34339:\"VERTEX_ATTRIB_ARRAY_SIZE\",34340:\"VERTEX_ATTRIB_ARRAY_STRIDE\",34341:\"VERTEX_ATTRIB_ARRAY_TYPE\",34342:\"CURRENT_VERTEX_ATTRIB\",34373:\"VERTEX_ATTRIB_ARRAY_POINTER\",34466:\"NUM_COMPRESSED_TEXTURE_FORMATS\",34467:\"COMPRESSED_TEXTURE_FORMATS\",34660:\"BUFFER_SIZE\",34661:\"BUFFER_USAGE\",34816:\"STENCIL_BACK_FUNC\",34817:\"STENCIL_BACK_FAIL\",34818:\"STENCIL_BACK_PASS_DEPTH_FAIL\",34819:\"STENCIL_BACK_PASS_DEPTH_PASS\",34877:\"BLEND_EQUATION_ALPHA\",34921:\"MAX_VERTEX_ATTRIBS\",34922:\"VERTEX_ATTRIB_ARRAY_NORMALIZED\",34930:\"MAX_TEXTURE_IMAGE_UNITS\",34962:\"ARRAY_BUFFER\",34963:\"ELEMENT_ARRAY_BUFFER\",34964:\"ARRAY_BUFFER_BINDING\",34965:\"ELEMENT_ARRAY_BUFFER_BINDING\",34975:\"VERTEX_ATTRIB_ARRAY_BUFFER_BINDING\",35040:\"STREAM_DRAW\",35044:\"STATIC_DRAW\",35048:\"DYNAMIC_DRAW\",35632:\"FRAGMENT_SHADER\",35633:\"VERTEX_SHADER\",35660:\"MAX_VERTEX_TEXTURE_IMAGE_UNITS\",35661:\"MAX_COMBINED_TEXTURE_IMAGE_UNITS\",35663:\"SHADER_TYPE\",35664:\"FLOAT_VEC2\",35665:\"FLOAT_VEC3\",35666:\"FLOAT_VEC4\",35667:\"INT_VEC2\",35668:\"INT_VEC3\",35669:\"INT_VEC4\",35670:\"BOOL\",35671:\"BOOL_VEC2\",35672:\"BOOL_VEC3\",35673:\"BOOL_VEC4\",35674:\"FLOAT_MAT2\",35675:\"FLOAT_MAT3\",35676:\"FLOAT_MAT4\",35678:\"SAMPLER_2D\",35680:\"SAMPLER_CUBE\",35712:\"DELETE_STATUS\",35713:\"COMPILE_STATUS\",35714:\"LINK_STATUS\",35715:\"VALIDATE_STATUS\",35716:\"INFO_LOG_LENGTH\",35717:\"ATTACHED_SHADERS\",35718:\"ACTIVE_UNIFORMS\",35719:\"ACTIVE_UNIFORM_MAX_LENGTH\",35720:\"SHADER_SOURCE_LENGTH\",35721:\"ACTIVE_ATTRIBUTES\",35722:\"ACTIVE_ATTRIBUTE_MAX_LENGTH\",35724:\"SHADING_LANGUAGE_VERSION\",35725:\"CURRENT_PROGRAM\",36003:\"STENCIL_BACK_REF\",36004:\"STENCIL_BACK_VALUE_MASK\",36005:\"STENCIL_BACK_WRITEMASK\",36006:\"FRAMEBUFFER_BINDING\",36007:\"RENDERBUFFER_BINDING\",36048:\"FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE\",36049:\"FRAMEBUFFER_ATTACHMENT_OBJECT_NAME\",36050:\"FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL\",36051:\"FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE\",36053:\"FRAMEBUFFER_COMPLETE\",36054:\"FRAMEBUFFER_INCOMPLETE_ATTACHMENT\",36055:\"FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT\",36057:\"FRAMEBUFFER_INCOMPLETE_DIMENSIONS\",36061:\"FRAMEBUFFER_UNSUPPORTED\",36064:\"COLOR_ATTACHMENT0\",36096:\"DEPTH_ATTACHMENT\",36128:\"STENCIL_ATTACHMENT\",36160:\"FRAMEBUFFER\",36161:\"RENDERBUFFER\",36162:\"RENDERBUFFER_WIDTH\",36163:\"RENDERBUFFER_HEIGHT\",36164:\"RENDERBUFFER_INTERNAL_FORMAT\",36168:\"STENCIL_INDEX8\",36176:\"RENDERBUFFER_RED_SIZE\",36177:\"RENDERBUFFER_GREEN_SIZE\",36178:\"RENDERBUFFER_BLUE_SIZE\",36179:\"RENDERBUFFER_ALPHA_SIZE\",36180:\"RENDERBUFFER_DEPTH_SIZE\",36181:\"RENDERBUFFER_STENCIL_SIZE\",36194:\"RGB565\",36336:\"LOW_FLOAT\",36337:\"MEDIUM_FLOAT\",36338:\"HIGH_FLOAT\",36339:\"LOW_INT\",36340:\"MEDIUM_INT\",36341:\"HIGH_INT\",36346:\"SHADER_COMPILER\",36347:\"MAX_VERTEX_UNIFORM_VECTORS\",36348:\"MAX_VARYING_VECTORS\",36349:\"MAX_FRAGMENT_UNIFORM_VECTORS\",37440:\"UNPACK_FLIP_Y_WEBGL\",37441:\"UNPACK_PREMULTIPLY_ALPHA_WEBGL\",37442:\"CONTEXT_LOST_WEBGL\",37443:\"UNPACK_COLORSPACE_CONVERSION_WEBGL\",37444:\"BROWSER_DEFAULT_WEBGL\"}},{}],158:[function(t,e,r){var n=t(\"./1.0/numbers\");e.exports=function(t){return n[t]}},{\"./1.0/numbers\":157}],159:[function(t,e,r){\"use strict\";function n(t,e,r,n){this.plot=t,this.shader=e,this.bufferHi=r,this.bufferLo=n,this.bounds=[1/0,1/0,-1/0,-1/0],this.numPoints=0,this.color=[0,0,0,1]}function i(t,e){var r=a(t.gl,l.vertex,l.fragment),i=o(t.gl),s=o(t.gl),u=new n(t,r,i,s);return u.update(e),t.addObject(u),u}var a=t(\"gl-shader\"),o=t(\"gl-buffer\"),s=t(\"typedarray-pool\"),l=t(\"./lib/shaders\");e.exports=i;var u=[[1,0,0,1,0,0],[1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,1,0,0],[1,0,0,1,0,0],[1,0,-1,0,0,1],[1,0,-1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,1],[1,0,-1,0,0,1],[-1,0,-1,0,0,1],[-1,0,-1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,1],[-1,0,-1,0,0,1],[0,1,1,0,0,0],[0,1,-1,0,0,0],[0,-1,-1,0,0,0],[0,-1,-1,0,0,0],[0,1,1,0,0,0],[0,-1,1,0,0,0],[0,1,0,-1,1,0],[0,1,0,-1,-1,0],[0,1,0,1,-1,0],[0,1,0,1,1,0],[0,1,0,-1,1,0],[0,1,0,1,-1,0],[0,-1,0,-1,1,0],[0,-1,0,-1,-1,0],[0,-1,0,1,-1,0],[0,-1,0,1,1,0],[0,-1,0,-1,1,0],[0,-1,0,1,-1,0]],c=n.prototype;c.draw=function(){var t=new Float32Array([0,0]),e=new Float32Array([0,0]),r=new Float32Array([0,0]),n=new Float32Array([0,0]),i=[1,1];return function(){var a=this.plot,o=this.shader,s=this.bounds,l=this.numPoints;if(l){var c=a.gl,h=a.dataBox,f=a.viewBox,d=a.pixelRatio,p=s[2]-s[0],m=s[3]-s[1],v=h[2]-h[0],g=h[3]-h[1],y=2*p/v,b=2*m/g,x=(s[0]-h[0]-.5*v)/p,_=(s[1]-h[1]-.5*g)/m;t[0]=y,t[1]=b,e[0]=y-t[0],e[1]=b-t[1],r[0]=x,r[1]=_,n[0]=x-r[0],n[1]=_-r[1];var w=f[2]-f[0],M=f[3]-f[1];i[0]=2*d/w,i[1]=2*d/M,o.bind(),o.uniforms.scaleHi=t,o.uniforms.scaleLo=e,o.uniforms.translateHi=r,o.uniforms.translateLo=n,o.uniforms.pixelScale=i,o.uniforms.color=this.color,this.bufferLo.bind(),o.attributes.positionLo.pointer(c.FLOAT,!1,16,0),this.bufferHi.bind(),o.attributes.positionHi.pointer(c.FLOAT,!1,16,0),o.attributes.pixelOffset.pointer(c.FLOAT,!1,16,8),c.drawArrays(c.TRIANGLES,0,l*u.length)}}}(),c.drawPick=function(t){return t},c.pick=function(){return null},c.update=function(t){t=t||{};var e,r,n,i=t.positions||[],a=t.errors||[],o=1;\"lineWidth\"in t&&(o=+t.lineWidth);var l=5;\"capSize\"in t&&(l=+t.capSize),this.color=(t.color||[0,0,0,1]).slice();var c=this.bounds=[1/0,1/0,-1/0,-1/0],h=this.numPoints=i.length>>1;for(e=0;e<h;++e)r=i[2*e],n=i[2*e+1],c[0]=Math.min(r,c[0]),c[1]=Math.min(n,c[1]),c[2]=Math.max(r,c[2]),c[3]=Math.max(n,c[3]);c[2]===c[0]&&(c[2]+=1),c[3]===c[1]&&(c[3]+=1);var f=1/(c[2]-c[0]),d=1/(c[3]-c[1]),p=c[0],m=c[1],v=s.mallocFloat64(h*u.length*4),g=s.mallocFloat32(h*u.length*4),y=s.mallocFloat32(h*u.length*4),b=0;for(e=0;e<h;++e){r=i[2*e],n=i[2*e+1];for(var x=a[4*e],_=a[4*e+1],w=a[4*e+2],M=a[4*e+3],k=0;k<u.length;++k){var A=u[k],T=A[0],S=A[1];T<0?T*=x:T>0&&(T*=_),S<0?S*=w:S>0&&(S*=M),v[b++]=f*(r-p+T),v[b++]=d*(n-m+S),v[b++]=o*A[2]+(l+o)*A[4],v[b++]=o*A[3]+(l+o)*A[5]}}for(e=0;e<v.length;e++)g[e]=v[e],y[e]=v[e]-g[e];this.bufferHi.update(g),this.bufferLo.update(y),s.free(v)},c.dispose=function(){this.plot.removeObject(this),this.shader.dispose(),this.bufferHi.dispose(),this.bufferLo.dispose()}},{\"./lib/shaders\":160,\"gl-buffer\":156,\"gl-shader\":255,\"typedarray-pool\":541}],160:[function(t,e,r){e.exports={\n", "vertex:\"precision highp float;\\n#define GLSLIFY 1\\n\\nattribute vec2 positionHi;\\nattribute vec2 positionLo;\\nattribute vec2 pixelOffset;\\n\\nuniform vec2 scaleHi, scaleLo, translateHi, translateLo, pixelScale;\\n\\nvec2 project(vec2 scHi, vec2 trHi, vec2 scLo, vec2 trLo, vec2 posHi, vec2 posLo) {\\n return (posHi + trHi) * scHi\\n + (posLo + trLo) * scHi\\n + (posHi + trHi) * scLo\\n + (posLo + trLo) * scLo;\\n}\\n\\nvoid main() {\\n vec3 scrPosition = vec3(\\n project(scaleHi, translateHi, scaleLo, translateLo, positionHi, positionLo),\\n 1);\\n gl_Position = vec4(\\n scrPosition.xy + scrPosition.z * pixelScale * pixelOffset,\\n 0,\\n scrPosition.z);\\n}\\n\",fragment:\"precision mediump float;\\n#define GLSLIFY 1\\n\\nuniform vec4 color;\\n\\nvoid main() {\\n gl_FragColor = vec4(color.rgb * color.a, color.a);\\n}\\n\"}},{}],161:[function(t,e,r){\"use strict\";function n(t,e,r,n){this.gl=t,this.shader=n,this.buffer=e,this.vao=r,this.pixelRatio=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lineWidth=[1,1,1],this.capSize=[10,10,10],this.lineCount=[0,0,0],this.lineOffset=[0,0,0],this.opacity=1}function i(t,e){for(var r=0;r<3;++r)t[0][r]=Math.min(t[0][r],e[r]),t[1][r]=Math.max(t[1][r],e[r])}function a(t,e,r,n){for(var i=f[n],a=0;a<i.length;++a){var o=i[a];t.push(e[0],e[1],e[2],r[0],r[1],r[2],r[3],o[0],o[1],o[2])}return i.length}function o(t){var e=t.gl,r=s(e),i=l(e,[{buffer:r,type:e.FLOAT,size:3,offset:0,stride:40},{buffer:r,type:e.FLOAT,size:4,offset:12,stride:40},{buffer:r,type:e.FLOAT,size:3,offset:28,stride:40}]),a=u(e);a.attributes.position.location=0,a.attributes.color.location=1,a.attributes.offset.location=2;var o=new n(e,r,i,a);return o.update(t),o}e.exports=o;var s=t(\"gl-buffer\"),l=t(\"gl-vao\"),u=t(\"./shaders/index\"),c=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],h=n.prototype;h.isOpaque=function(){return this.opacity>=1},h.isTransparent=function(){return this.opacity<1},h.drawTransparent=h.draw=function(t){var e=this.gl,r=this.shader.uniforms;this.shader.bind();var n=r.view=t.view||c,i=r.projection=t.projection||c;r.model=t.model||c,r.clipBounds=this.clipBounds,r.opacity=this.opacity;var a=n[12],o=n[13],s=n[14],l=n[15],u=this.pixelRatio*(i[3]*a+i[7]*o+i[11]*s+i[15]*l)/e.drawingBufferHeight;this.vao.bind();for(var h=0;h<3;++h)e.lineWidth(this.lineWidth[h]),r.capSize=this.capSize[h]*u,this.lineCount[h]&&e.drawArrays(e.LINES,this.lineOffset[h],this.lineCount[h]);this.vao.unbind()};var f=function(){for(var t=new Array(3),e=0;e<3;++e){for(var r=[],n=1;n<=2;++n)for(var i=-1;i<=1;i+=2){var a=(n+e)%3,o=[0,0,0];o[a]=i,r.push(o)}t[e]=r}return t}();h.update=function(t){t=t||{},\"lineWidth\"in t&&(this.lineWidth=t.lineWidth,Array.isArray(this.lineWidth)||(this.lineWidth=[this.lineWidth,this.lineWidth,this.lineWidth])),\"capSize\"in t&&(this.capSize=t.capSize,Array.isArray(this.capSize)||(this.capSize=[this.capSize,this.capSize,this.capSize])),\"opacity\"in t&&(this.opacity=t.opacity);var e=t.color||[[0,0,0],[0,0,0],[0,0,0]],r=t.position,n=t.error;if(Array.isArray(e[0])||(e=[e,e,e]),r&&n){var o=[],s=r.length,l=0;this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.lineCount=[0,0,0];for(var u=0;u<3;++u){this.lineOffset[u]=l;t:for(var c=0;c<s;++c){for(var h=r[c],f=0;f<3;++f)if(isNaN(h[f])||!isFinite(h[f]))continue t;var d=n[c],p=e[u];if(Array.isArray(p[0])&&(p=e[c]),3===p.length&&(p=[p[0],p[1],p[2],1]),!isNaN(d[0][u])&&!isNaN(d[1][u])){if(d[0][u]<0){var m=h.slice();m[u]+=d[0][u],o.push(h[0],h[1],h[2],p[0],p[1],p[2],p[3],0,0,0,m[0],m[1],m[2],p[0],p[1],p[2],p[3],0,0,0),i(this.bounds,m),l+=2+a(o,m,p,u)}if(d[1][u]>0){var m=h.slice();m[u]+=d[1][u],o.push(h[0],h[1],h[2],p[0],p[1],p[2],p[3],0,0,0,m[0],m[1],m[2],p[0],p[1],p[2],p[3],0,0,0),i(this.bounds,m),l+=2+a(o,m,p,u)}}}this.lineCount[u]=l-this.lineOffset[u]}this.buffer.update(o)}},h.dispose=function(){this.shader.dispose(),this.buffer.dispose(),this.vao.dispose()}},{\"./shaders/index\":163,\"gl-buffer\":156,\"gl-vao\":271}],162:[function(t,e,r){e.exports=function(t){\"string\"==typeof t&&(t=[t]);for(var e=[].slice.call(arguments,1),r=[],n=0;n<t.length-1;n++)r.push(t[n],e[n]||\"\");return r.push(t[n]),r.join(\"\")}},{}],163:[function(t,e,r){\"use strict\";var n=t(\"glslify\"),i=t(\"gl-shader\"),a=n([\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute vec3 position, offset;\\nattribute vec4 color;\\nuniform mat4 model, view, projection;\\nuniform float capSize;\\nvarying vec4 fragColor;\\nvarying vec3 fragPosition;\\n\\nvoid main() {\\n vec4 worldPosition = model * vec4(position, 1.0);\\n worldPosition = (worldPosition / worldPosition.w) + vec4(capSize * offset, 0.0);\\n gl_Position = projection * view * worldPosition;\\n fragColor = color;\\n fragPosition = position;\\n}\"]),o=n([\"precision mediump float;\\n#define GLSLIFY 1\\nuniform vec3 clipBounds[2];\\nuniform float opacity;\\nvarying vec3 fragPosition;\\nvarying vec4 fragColor;\\n\\nvoid main() {\\n if(any(lessThan(fragPosition, clipBounds[0])) || any(greaterThan(fragPosition, clipBounds[1]))) {\\n discard;\\n }\\n gl_FragColor = opacity * fragColor;\\n}\"]);e.exports=function(t){return i(t,a,o,null,[{name:\"position\",type:\"vec3\"},{name:\"color\",type:\"vec4\"},{name:\"offset\",type:\"vec3\"}])}},{\"gl-shader\":255,glslify:162}],164:[function(t,e,r){\"use strict\";function n(t){return[t.getParameter(t.FRAMEBUFFER_BINDING),t.getParameter(t.RENDERBUFFER_BINDING),t.getParameter(t.TEXTURE_BINDING_2D)]}function i(t,e){t.bindFramebuffer(t.FRAMEBUFFER,e[0]),t.bindRenderbuffer(t.RENDERBUFFER,e[1]),t.bindTexture(t.TEXTURE_2D,e[2])}function a(t,e){var r=t.getParameter(e.MAX_COLOR_ATTACHMENTS_WEBGL);y=new Array(r+1);for(var n=0;n<=r;++n){for(var i=new Array(r),a=0;a<n;++a)i[a]=t.COLOR_ATTACHMENT0+a;for(var a=n;a<r;++a)i[a]=t.NONE;y[n]=i}}function o(t){switch(t){case p:throw new Error(\"gl-fbo: Framebuffer unsupported\");case m:throw new Error(\"gl-fbo: Framebuffer incomplete attachment\");case v:throw new Error(\"gl-fbo: Framebuffer incomplete dimensions\");case g:throw new Error(\"gl-fbo: Framebuffer incomplete missing attachment\");default:throw new Error(\"gl-fbo: Framebuffer failed for unspecified reason\")}}function s(t,e,r,n,i,a){if(!n)return null;var o=d(t,e,r,i,n);return o.magFilter=t.NEAREST,o.minFilter=t.NEAREST,o.mipSamples=1,o.bind(),t.framebufferTexture2D(t.FRAMEBUFFER,a,t.TEXTURE_2D,o.handle,0),o}function l(t,e,r,n,i){var a=t.createRenderbuffer();return t.bindRenderbuffer(t.RENDERBUFFER,a),t.renderbufferStorage(t.RENDERBUFFER,n,e,r),t.framebufferRenderbuffer(t.FRAMEBUFFER,i,t.RENDERBUFFER,a),a}function u(t){var e=n(t.gl),r=t.gl,a=t.handle=r.createFramebuffer(),u=t._shape[0],c=t._shape[1],h=t.color.length,f=t._ext,d=t._useStencil,p=t._useDepth,m=t._colorType;r.bindFramebuffer(r.FRAMEBUFFER,a);for(var v=0;v<h;++v)t.color[v]=s(r,u,c,m,r.RGBA,r.COLOR_ATTACHMENT0+v);0===h?(t._color_rb=l(r,u,c,r.RGBA4,r.COLOR_ATTACHMENT0),f&&f.drawBuffersWEBGL(y[0])):h>1&&f.drawBuffersWEBGL(y[h]);var g=r.getExtension(\"WEBGL_depth_texture\");g?d?t.depth=s(r,u,c,g.UNSIGNED_INT_24_8_WEBGL,r.DEPTH_STENCIL,r.DEPTH_STENCIL_ATTACHMENT):p&&(t.depth=s(r,u,c,r.UNSIGNED_SHORT,r.DEPTH_COMPONENT,r.DEPTH_ATTACHMENT)):p&&d?t._depth_rb=l(r,u,c,r.DEPTH_STENCIL,r.DEPTH_STENCIL_ATTACHMENT):p?t._depth_rb=l(r,u,c,r.DEPTH_COMPONENT16,r.DEPTH_ATTACHMENT):d&&(t._depth_rb=l(r,u,c,r.STENCIL_INDEX,r.STENCIL_ATTACHMENT));var b=r.checkFramebufferStatus(r.FRAMEBUFFER);if(b!==r.FRAMEBUFFER_COMPLETE){t._destroyed=!0,r.bindFramebuffer(r.FRAMEBUFFER,null),r.deleteFramebuffer(t.handle),t.handle=null,t.depth&&(t.depth.dispose(),t.depth=null),t._depth_rb&&(r.deleteRenderbuffer(t._depth_rb),t._depth_rb=null);for(var v=0;v<t.color.length;++v)t.color[v].dispose(),t.color[v]=null;t._color_rb&&(r.deleteRenderbuffer(t._color_rb),t._color_rb=null),i(r,e),o(b)}i(r,e)}function c(t,e,r,n,i,a,o,s){this.gl=t,this._shape=[0|e,0|r],this._destroyed=!1,this._ext=s,this.color=new Array(i);for(var l=0;l<i;++l)this.color[l]=null;this._color_rb=null,this.depth=null,this._depth_rb=null,this._colorType=n,this._useDepth=a,this._useStencil=o;var c=this,h=[0|e,0|r];Object.defineProperties(h,{0:{get:function(){return c._shape[0]},set:function(t){return c.width=t}},1:{get:function(){return c._shape[1]},set:function(t){return c.height=t}}}),this._shapeVector=h,u(this)}function h(t,e,r){if(t._destroyed)throw new Error(\"gl-fbo: Can't resize destroyed FBO\");if(t._shape[0]!==e||t._shape[1]!==r){var a=t.gl,s=a.getParameter(a.MAX_RENDERBUFFER_SIZE);if(e<0||e>s||r<0||r>s)throw new Error(\"gl-fbo: Can't resize FBO, invalid dimensions\");t._shape[0]=e,t._shape[1]=r;for(var l=n(a),u=0;u<t.color.length;++u)t.color[u].shape=t._shape;t._color_rb&&(a.bindRenderbuffer(a.RENDERBUFFER,t._color_rb),a.renderbufferStorage(a.RENDERBUFFER,a.RGBA4,t._shape[0],t._shape[1])),t.depth&&(t.depth.shape=t._shape),t._depth_rb&&(a.bindRenderbuffer(a.RENDERBUFFER,t._depth_rb),t._useDepth&&t._useStencil?a.renderbufferStorage(a.RENDERBUFFER,a.DEPTH_STENCIL,t._shape[0],t._shape[1]):t._useDepth?a.renderbufferStorage(a.RENDERBUFFER,a.DEPTH_COMPONENT16,t._shape[0],t._shape[1]):t._useStencil&&a.renderbufferStorage(a.RENDERBUFFER,a.STENCIL_INDEX,t._shape[0],t._shape[1])),a.bindFramebuffer(a.FRAMEBUFFER,t.handle);var c=a.checkFramebufferStatus(a.FRAMEBUFFER);c!==a.FRAMEBUFFER_COMPLETE&&(t.dispose(),i(a,l),o(c)),i(a,l)}}function f(t,e,r,n){p||(p=t.FRAMEBUFFER_UNSUPPORTED,m=t.FRAMEBUFFER_INCOMPLETE_ATTACHMENT,v=t.FRAMEBUFFER_INCOMPLETE_DIMENSIONS,g=t.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT);var i=t.getExtension(\"WEBGL_draw_buffers\");if(!y&&i&&a(t,i),Array.isArray(e)&&(n=r,r=0|e[1],e=0|e[0]),\"number\"!=typeof e)throw new Error(\"gl-fbo: Missing shape parameter\");var o=t.getParameter(t.MAX_RENDERBUFFER_SIZE);if(e<0||e>o||r<0||r>o)throw new Error(\"gl-fbo: Parameters are too large for FBO\");n=n||{};var s=1;if(\"color\"in n){if((s=Math.max(0|n.color,0))<0)throw new Error(\"gl-fbo: Must specify a nonnegative number of colors\");if(s>1){if(!i)throw new Error(\"gl-fbo: Multiple draw buffer extension not supported\");if(s>t.getParameter(i.MAX_COLOR_ATTACHMENTS_WEBGL))throw new Error(\"gl-fbo: Context does not support \"+s+\" draw buffers\")}}var l=t.UNSIGNED_BYTE,u=t.getExtension(\"OES_texture_float\");if(n.float&&s>0){if(!u)throw new Error(\"gl-fbo: Context does not support floating point textures\");l=t.FLOAT}else n.preferFloat&&s>0&&u&&(l=t.FLOAT);var h=!0;\"depth\"in n&&(h=!!n.depth);var f=!1;return\"stencil\"in n&&(f=!!n.stencil),new c(t,e,r,l,s,h,f,i)}var d=t(\"gl-texture2d\");e.exports=f;var p,m,v,g,y=null,b=c.prototype;Object.defineProperties(b,{shape:{get:function(){return this._destroyed?[0,0]:this._shapeVector},set:function(t){if(Array.isArray(t)||(t=[0|t,0|t]),2!==t.length)throw new Error(\"gl-fbo: Shape vector must be length 2\");var e=0|t[0],r=0|t[1];return h(this,e,r),[e,r]},enumerable:!1},width:{get:function(){return this._destroyed?0:this._shape[0]},set:function(t){return t|=0,h(this,t,this._shape[1]),t},enumerable:!1},height:{get:function(){return this._destroyed?0:this._shape[1]},set:function(t){return t|=0,h(this,this._shape[0],t),t},enumerable:!1}}),b.bind=function(){if(!this._destroyed){var t=this.gl;t.bindFramebuffer(t.FRAMEBUFFER,this.handle),t.viewport(0,0,this._shape[0],this._shape[1])}},b.dispose=function(){if(!this._destroyed){this._destroyed=!0;var t=this.gl;t.deleteFramebuffer(this.handle),this.handle=null,this.depth&&(this.depth.dispose(),this.depth=null),this._depth_rb&&(t.deleteRenderbuffer(this._depth_rb),this._depth_rb=null);for(var e=0;e<this.color.length;++e)this.color[e].dispose(),this.color[e]=null;this._color_rb&&(t.deleteRenderbuffer(this._color_rb),this._color_rb=null)}}},{\"gl-texture2d\":267}],165:[function(t,e,r){function n(t,e,r){\"use strict\";var n=o(e)||\"of unknown name (see npm glsl-shader-name)\",l=\"unknown type\";void 0!==r&&(l=r===a.FRAGMENT_SHADER?\"fragment\":\"vertex\");for(var u=i(\"Error compiling %s shader %s:\\n\",l,n),c=i(\"%s%s\",u,t),h=t.split(\"\\n\"),f={},d=0;d<h.length;d++){var p=h[d];if(\"\"!==p){var m=parseInt(p.split(\":\")[2]);if(isNaN(m))throw new Error(i(\"Could not parse error: %s\",p));f[m]=p}}for(var v=s(e).split(\"\\n\"),d=0;d<v.length;d++)if(f[d+3]||f[d+2]||f[d+1]){var g=v[d];if(u+=g+\"\\n\",f[d+1]){var y=f[d+1];y=y.substr(y.split(\":\",3).join(\":\").length+1).trim(),u+=i(\"^^^ %s\\n\\n\",y)}}return{long:u.trim(),short:c.trim()}}var i=t(\"sprintf-js\").sprintf,a=t(\"gl-constants/lookup\"),o=t(\"glsl-shader-name\"),s=t(\"add-line-numbers\");e.exports=n},{\"add-line-numbers\":40,\"gl-constants/lookup\":158,\"glsl-shader-name\":279,\"sprintf-js\":527}],166:[function(t,e,r){\"use strict\";function n(t,e,r,n,i,a,o){this.plot=t,this.shader=e,this.pickShader=r,this.positionBuffer=n,this.weightBuffer=i,this.colorBuffer=a,this.idBuffer=o,this.xData=[],this.yData=[],this.shape=[0,0],this.bounds=[1/0,1/0,-1/0,-1/0],this.pickOffset=0}function i(t,e){var r=t.gl,i=l(r,c.vertex,c.fragment),a=l(r,c.pickVertex,c.pickFragment),o=u(r),s=u(r),h=u(r),f=u(r),d=new n(t,i,a,o,s,h,f);return d.update(e),t.addObject(d),d}e.exports=i;var a=t(\"binary-search-bounds\"),o=t(\"iota-array\"),s=t(\"typedarray-pool\"),l=t(\"gl-shader\"),u=t(\"gl-buffer\"),c=t(\"./lib/shaders\"),h=n.prototype,f=[0,0,1,0,0,1,1,0,1,1,0,1];h.draw=function(){var t=[1,0,0,0,1,0,0,0,1];return function(){var e=this.plot,r=this.shader,n=this.bounds,i=this.numVertices;if(!(i<=0)){var a=e.gl,o=e.dataBox,s=n[2]-n[0],l=n[3]-n[1],u=o[2]-o[0],c=o[3]-o[1];t[0]=2*s/u,t[4]=2*l/c,t[6]=2*(n[0]-o[0])/u-1,t[7]=2*(n[1]-o[1])/c-1,r.bind();var h=r.uniforms;h.viewTransform=t,h.shape=this.shape;var f=r.attributes;this.positionBuffer.bind(),f.position.pointer(),this.weightBuffer.bind(),f.weight.pointer(a.UNSIGNED_BYTE,!1),this.colorBuffer.bind(),f.color.pointer(a.UNSIGNED_BYTE,!0),a.drawArrays(a.TRIANGLES,0,i)}}}(),h.drawPick=function(){var t=[1,0,0,0,1,0,0,0,1],e=[0,0,0,0];return function(r){var n=this.plot,i=this.pickShader,a=this.bounds,o=this.numVertices;if(!(o<=0)){var s=n.gl,l=n.dataBox,u=a[2]-a[0],c=a[3]-a[1],h=l[2]-l[0],f=l[3]-l[1];t[0]=2*u/h,t[4]=2*c/f,t[6]=2*(a[0]-l[0])/h-1,t[7]=2*(a[1]-l[1])/f-1;for(var d=0;d<4;++d)e[d]=r>>8*d&255;this.pickOffset=r,i.bind();var p=i.uniforms;p.viewTransform=t,p.pickOffset=e,p.shape=this.shape;var m=i.attributes;return this.positionBuffer.bind(),m.position.pointer(),this.weightBuffer.bind(),m.weight.pointer(s.UNSIGNED_BYTE,!1),this.idBuffer.bind(),m.pickId.pointer(s.UNSIGNED_BYTE,!1),s.drawArrays(s.TRIANGLES,0,o),r+this.shape[0]*this.shape[1]}}}(),h.pick=function(t,e,r){var n=this.pickOffset,i=this.shape[0]*this.shape[1];if(r<n||r>=n+i)return null;var a=r-n,o=this.xData,s=this.yData;return{object:this,pointId:a,dataCoord:[o[a%this.shape[0]],s[a/this.shape[0]|0]]}},h.update=function(t){t=t||{};var e=t.shape||[0,0],r=t.x||o(e[0]),n=t.y||o(e[1]),i=t.z||new Float32Array(e[0]*e[1]);this.xData=r,this.yData=n;var l=t.colorLevels||[0],u=t.colorValues||[0,0,0,1],c=l.length,h=this.bounds,d=h[0]=r[0],p=h[1]=n[0],m=h[2]=r[r.length-1],v=h[3]=n[n.length-1],g=1/(m-d),y=1/(v-p),b=e[0],x=e[1];this.shape=[b,x];var _=(b-1)*(x-1)*(f.length>>>1);this.numVertices=_;for(var w=s.mallocUint8(4*_),M=s.mallocFloat32(2*_),k=s.mallocUint8(2*_),A=s.mallocUint32(_),T=0,S=0;S<x-1;++S)for(var E=y*(n[S]-p),L=y*(n[S+1]-p),C=0;C<b-1;++C)for(var I=g*(r[C]-d),z=g*(r[C+1]-d),D=0;D<f.length;D+=2){var P,O,R,F,j=f[D],N=f[D+1],B=(S+N)*b+(C+j),U=i[B],V=a.le(l,U);if(V<0)P=u[0],O=u[1],R=u[2],F=u[3];else if(V===c-1)P=u[4*c-4],O=u[4*c-3],R=u[4*c-2],F=u[4*c-1];else{var H=(U-l[V])/(l[V+1]-l[V]),q=1-H,G=4*V,Y=4*(V+1);P=q*u[G]+H*u[Y],O=q*u[G+1]+H*u[Y+1],R=q*u[G+2]+H*u[Y+2],F=q*u[G+3]+H*u[Y+3]}w[4*T]=255*P,w[4*T+1]=255*O,w[4*T+2]=255*R,w[4*T+3]=255*F,M[2*T]=.5*I+.5*z,M[2*T+1]=.5*E+.5*L,k[2*T]=j,k[2*T+1]=N,A[T]=S*b+C,T+=1}this.positionBuffer.update(M),this.weightBuffer.update(k),this.colorBuffer.update(w),this.idBuffer.update(A),s.free(M),s.free(w),s.free(k),s.free(A)},h.dispose=function(){this.shader.dispose(),this.pickShader.dispose(),this.positionBuffer.dispose(),this.weightBuffer.dispose(),this.colorBuffer.dispose(),this.idBuffer.dispose(),this.plot.removeObject(this)}},{\"./lib/shaders\":167,\"binary-search-bounds\":168,\"gl-buffer\":156,\"gl-shader\":255,\"iota-array\":293,\"typedarray-pool\":541}],167:[function(t,e,r){\"use strict\";e.exports={fragment:\"precision lowp float;\\n#define GLSLIFY 1\\nvarying vec4 fragColor;\\nvoid main() {\\n gl_FragColor = vec4(fragColor.rgb * fragColor.a, fragColor.a);\\n}\\n\",vertex:\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute vec2 position;\\nattribute vec4 color;\\nattribute vec2 weight;\\n\\nuniform vec2 shape;\\nuniform mat3 viewTransform;\\n\\nvarying vec4 fragColor;\\n\\nvoid main() {\\n vec3 vPosition = viewTransform * vec3( position + (weight-.5)/(shape-1.) , 1.0);\\n fragColor = color;\\n gl_Position = vec4(vPosition.xy, 0, vPosition.z);\\n}\\n\",pickFragment:\"precision mediump float;\\n#define GLSLIFY 1\\n\\nvarying vec4 fragId;\\nvarying vec2 vWeight;\\n\\nuniform vec2 shape;\\nuniform vec4 pickOffset;\\n\\nvoid main() {\\n vec2 d = step(.5, vWeight);\\n vec4 id = fragId + pickOffset;\\n id.x += d.x + d.y*shape.x;\\n\\n id.y += floor(id.x / 256.0);\\n id.x -= floor(id.x / 256.0) * 256.0;\\n\\n id.z += floor(id.y / 256.0);\\n id.y -= floor(id.y / 256.0) * 256.0;\\n\\n id.w += floor(id.z / 256.0);\\n id.z -= floor(id.z / 256.0) * 256.0;\\n\\n gl_FragColor = id/255.;\\n}\\n\",pickVertex:\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute vec2 position;\\nattribute vec4 pickId;\\nattribute vec2 weight;\\n\\nuniform vec2 shape;\\nuniform mat3 viewTransform;\\n\\nvarying vec4 fragId;\\nvarying vec2 vWeight;\\n\\nvoid main() {\\n vWeight = weight;\\n\\n fragId = pickId;\\n\\n vec3 vPosition = viewTransform * vec3( position + (weight-.5)/(shape-1.) , 1.0);\\n gl_Position = vec4(vPosition.xy, 0, vPosition.z);\\n}\\n\"}},{}],168:[function(t,e,r){arguments[4][84][0].apply(r,arguments)},{dup:84}],169:[function(t,e,r){r.lineVertex=\"precision highp float;\\n#define GLSLIFY 1\\n\\nattribute vec2 aHi, aLo, dHi, dLo;\\n\\nuniform vec2 scaleHi, translateHi, scaleLo, translateLo, screenShape;\\nuniform float width;\\n\\nvarying vec2 direction;\\n\\n\\nvec2 project_1_0(vec2 scHi, vec2 trHi, vec2 scLo, vec2 trLo, vec2 posHi, vec2 posLo) {\\n return (posHi + trHi) * scHi\\n + (posLo + trLo) * scHi\\n + (posHi + trHi) * scLo\\n + (posLo + trLo) * scLo;\\n}\\n\\n\\nvec2 project_2_1(vec2 scHi, vec2 scLo, vec2 posHi, vec2 posLo) {\\n return scHi * posHi\\n + scLo * posHi\\n + scHi * posLo\\n + scLo * posLo;\\n}\\n\\nvoid main() {\\n vec2 p = project_1_0(scaleHi, translateHi, scaleLo, translateLo, aHi, aLo);\\n vec2 dir = project_2_1(scaleHi, scaleLo, dHi, dLo);\\n vec2 n = 0.5 * width * normalize(screenShape.yx * vec2(dir.y, -dir.x)) / screenShape.xy;\\n vec2 tangent = normalize(screenShape.xy * dir);\\n if(dir.x < 0.0 || (dir.x == 0.0 && dir.y < 0.0)) {\\n direction = -tangent;\\n } else {\\n direction = tangent;\\n }\\n gl_Position = vec4(p + n, 0.0, 1.0);\\n}\",r.lineFragment=\"precision highp float;\\n#define GLSLIFY 1\\n\\nuniform vec4 color;\\nuniform vec2 screenShape;\\nuniform sampler2D dashPattern;\\nuniform float dashLength;\\n\\nvarying vec2 direction;\\n\\nvoid main() {\\n float t = fract(dot(direction, gl_FragCoord.xy) / dashLength);\\n vec4 pcolor = color * texture2D(dashPattern, vec2(t, 0.0)).r;\\n gl_FragColor = vec4(pcolor.rgb * pcolor.a, pcolor.a);\\n}\",r.mitreVertex=\"precision highp float;\\n#define GLSLIFY 1\\n\\nattribute vec2 aHi, aLo;\\n\\nuniform vec2 scaleHi, translateHi, scaleLo, translateLo;\\nuniform float radius;\\n\\n\\nvec2 project_1_0(vec2 scHi, vec2 trHi, vec2 scLo, vec2 trLo, vec2 posHi, vec2 posLo) {\\n return (posHi + trHi) * scHi\\n + (posLo + trLo) * scHi\\n + (posHi + trHi) * scLo\\n + (posLo + trLo) * scLo;\\n}\\n\\n\\nvoid main() {\\n vec2 p = project_1_0(scaleHi, translateHi, scaleLo, translateLo, aHi, aLo);\\n gl_Position = vec4(p, 0.0, 1.0);\\n gl_PointSize = radius;\\n}\",r.mitreFragment=\"precision mediump float;\\n#define GLSLIFY 1\\n\\nuniform vec4 color;\\n\\nvoid main() {\\n if(length(gl_PointCoord.xy - 0.5) > 0.25) {\\n discard;\\n }\\n gl_FragColor = vec4(color.rgb, color.a);\\n}\",r.pickVertex=\"precision highp float;\\n#define GLSLIFY 1\\n\\nattribute vec2 aHi, aLo, dHi;\\nattribute vec4 pick0, pick1;\\n\\nuniform vec2 scaleHi, translateHi, scaleLo, translateLo, screenShape;\\nuniform float width;\\n\\nvarying vec4 pickA, pickB;\\n\\n\\nvec2 project_1_0(vec2 scHi, vec2 trHi, vec2 scLo, vec2 trLo, vec2 posHi, vec2 posLo) {\\n return (posHi + trHi) * scHi\\n + (posLo + trLo) * scHi\\n + (posHi + trHi) * scLo\\n + (posLo + trLo) * scLo;\\n}\\n\\n\\nvoid main() {\\n vec2 p = project_1_0(scaleHi, translateHi, scaleLo, translateLo, aHi, aLo);\\n vec2 n = width * normalize(screenShape.yx * vec2(dHi.y, -dHi.x)) / screenShape.xy;\\n gl_Position = vec4(p + n, 0, 1);\\n pickA = pick0;\\n pickB = pick1;\\n}\",r.pickFragment=\"precision mediump float;\\n#define GLSLIFY 1\\n\\nuniform vec4 pickOffset;\\n\\nvarying vec4 pickA, pickB;\\n\\nvoid main() {\\n vec4 fragId = vec4(pickA.xyz, 0.0);\\n if(pickB.w > pickA.w) {\\n fragId.xyz = pickB.xyz;\\n }\\n\\n fragId += pickOffset;\\n\\n fragId.y += floor(fragId.x / 256.0);\\n fragId.x -= floor(fragId.x / 256.0) * 256.0;\\n\\n fragId.z += floor(fragId.y / 256.0);\\n fragId.y -= floor(fragId.y / 256.0) * 256.0;\\n\\n fragId.w += floor(fragId.z / 256.0);\\n fragId.z -= floor(fragId.z / 256.0) * 256.0;\\n\\n gl_FragColor = fragId / 255.0;\\n}\",r.fillVertex=\"precision highp float;\\n#define GLSLIFY 1\\n\\nattribute vec2 aHi, aLo, dHi;\\n\\nuniform vec2 scaleHi, translateHi, scaleLo, translateLo, projectAxis;\\nuniform float projectValue, depth;\\n\\n\\nvec2 project_1_0(vec2 scHi, vec2 trHi, vec2 scLo, vec2 trLo, vec2 posHi, vec2 posLo) {\\n return (posHi + trHi) * scHi\\n + (posLo + trLo) * scHi\\n + (posHi + trHi) * scLo\\n + (posLo + trLo) * scLo;\\n}\\n\\n\\nvoid main() {\\n vec2 p = project_1_0(scaleHi, translateHi, scaleLo, translateLo, aHi, aLo);\\n if(dHi.y < 0.0 || (dHi.y == 0.0 && dHi.x < 0.0)) {\\n if(dot(p, projectAxis) < projectValue) {\\n p = p * (1.0 - abs(projectAxis)) + projectAxis * projectValue;\\n }\\n }\\n gl_Position = vec4(p, depth, 1);\\n}\",r.fillFragment=\"precision mediump float;\\n#define GLSLIFY 1\\n\\nuniform vec4 color;\\n\\nvoid main() {\\n gl_FragColor = vec4(color.rgb * color.a, color.a);\\n}\"},{}],170:[function(t,e,r){\"use strict\";function n(t,e,r,n,i,a,o,s,l){this.plot=t,this.dashPattern=e,this.lineBufferHi=r,this.lineBufferLo=n,this.pickBuffer=i,this.lineShader=a,this.mitreShader=o,this.fillShader=s,this.pickShader=l,this.usingDashes=!1,this.bounds=[1/0,1/0,-1/0,-1/0],this.width=1,this.color=[0,0,1,1],this.fill=[!1,!1,!1,!1],this.fillColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.data=null,this.numPoints=0,this.vertCount=0,this.pickOffset=0}function i(t){return t.map(function(t){return t.slice()})}function a(t,e){var r=t.gl,i=s(r),a=s(r),u=s(r),c=l(r,[1,1]),f=o(r,h.lineVertex,h.lineFragment),d=o(r,h.mitreVertex,h.mitreFragment),p=o(r,h.fillVertex,h.fillFragment),m=o(r,h.pickVertex,h.pickFragment),v=new n(t,c,i,a,u,f,d,p,m);return t.addObject(v),v.update(e),v}e.exports=a;var o=t(\"gl-shader\"),s=t(\"gl-buffer\"),l=t(\"gl-texture2d\"),u=t(\"ndarray\"),c=t(\"typedarray-pool\"),h=t(\"./lib/shaders\"),f=n.prototype;f.setProjectionModel=function(){var t={scaleHi:new Float32Array([0,0]),scaleLo:new Float32Array([0,0]),translateHi:new Float32Array([0,0]),translateLo:new Float32Array([0,0]),screenShape:[0,0]};return function(){var e=this.bounds,r=this.plot.viewBox,n=this.plot.dataBox,i=e[2]-e[0],a=e[3]-e[1],o=n[2]-n[0],s=n[3]-n[1],l=r[2]-r[0],u=r[3]-r[1],c=2*i/o,h=2*a/s,f=(e[0]-n[0]-.5*o)/i,d=(e[1]-n[1]-.5*s)/a;return t.scaleHi[0]=c,t.scaleHi[1]=h,t.scaleLo[0]=c-t.scaleHi[0],t.scaleLo[1]=h-t.scaleHi[1],t.translateHi[0]=f,t.translateHi[1]=d,t.translateLo[0]=f-t.translateHi[0],t.translateLo[1]=d-t.translateHi[1],t.screenShape[0]=l,t.screenShape[1]=u,t}}(),f.setProjectionUniforms=function(t,e){t.scaleHi=e.scaleHi,t.scaleLo=e.scaleLo,t.translateHi=e.translateHi,t.translateLo=e.translateLo,t.screenShape=e.screenShape},f.draw=function(){var t=[1,0],e=[-1,0],r=[0,1],n=[0,-1];return function(){var i=this.vertCount;if(i){var a=this.setProjectionModel(),o=this.plot,s=this.width,l=o.gl,u=o.pixelRatio,c=this.color,h=this.fillShader.attributes;this.lineBufferLo.bind(),h.aLo.pointer(l.FLOAT,!1,16,0),this.lineBufferHi.bind();var f=this.fill;if(f[0]||f[1]||f[2]||f[3]){var d=this.fillShader;d.bind();var p=d.uniforms;this.setProjectionUniforms(p,a),p.depth=o.nextDepthValue(),h.aHi.pointer(l.FLOAT,!1,16,0),h.dHi.pointer(l.FLOAT,!1,16,8),l.depthMask(!0),l.enable(l.DEPTH_TEST);var m=this.fillColor;f[0]&&(p.color=m[0],p.projectAxis=e,p.projectValue=1,l.drawArrays(l.TRIANGLES,0,i)),f[1]&&(p.color=m[1],p.projectAxis=n,p.projectValue=1,l.drawArrays(l.TRIANGLES,0,i)),f[2]&&(p.color=m[2],p.projectAxis=t,p.projectValue=1,l.drawArrays(l.TRIANGLES,0,i)),f[3]&&(p.color=m[3],p.projectAxis=r,p.projectValue=1,l.drawArrays(l.TRIANGLES,0,i)),l.depthMask(!1),l.disable(l.DEPTH_TEST)}var v=this.lineShader;v.bind(),this.lineBufferLo.bind(),v.attributes.aLo.pointer(l.FLOAT,!1,16,0),v.attributes.dLo.pointer(l.FLOAT,!1,16,8),this.lineBufferHi.bind();var g=v.uniforms;this.setProjectionUniforms(g,a),g.color=c,g.width=s*u,g.dashPattern=this.dashPattern.bind(),g.dashLength=this.dashLength*u;var y=v.attributes;if(y.aHi.pointer(l.FLOAT,!1,16,0),y.dHi.pointer(l.FLOAT,!1,16,8),l.drawArrays(l.TRIANGLES,0,i),s>2&&!this.usingDashes){var b=this.mitreShader;this.lineBufferLo.bind(),b.attributes.aLo.pointer(l.FLOAT,!1,48,0),this.lineBufferHi.bind(),b.bind();var x=b.uniforms;this.setProjectionUniforms(x,a),x.color=c,x.radius=s*u,b.attributes.aHi.pointer(l.FLOAT,!1,48,0),l.drawArrays(l.POINTS,0,i/3|0)}}}}(),f.drawPick=function(){var t=[0,0,0,0];return function(e){var r=this.vertCount,n=this.numPoints;if(this.pickOffset=e,!r)return e+n;var i=this.setProjectionModel(),a=this.plot,o=this.width,s=a.gl,l=a.pickPixelRatio,u=this.pickShader,c=this.pickBuffer;t[0]=255&e,t[1]=e>>>8&255,t[2]=e>>>16&255,t[3]=e>>>24,u.bind();var h=u.uniforms;this.setProjectionUniforms(h,i),h.width=o*l,h.pickOffset=t;var f=u.attributes;return this.lineBufferHi.bind(),f.aHi.pointer(s.FLOAT,!1,16,0),f.dHi.pointer(s.FLOAT,!1,16,8),this.lineBufferLo.bind(),f.aLo.pointer(s.FLOAT,!1,16,0),c.bind(),f.pick0.pointer(s.UNSIGNED_BYTE,!1,8,0),f.pick1.pointer(s.UNSIGNED_BYTE,!1,8,4),s.drawArrays(s.TRIANGLES,0,r),e+n}}(),f.pick=function(t,e,r){var n=this.pickOffset,i=this.numPoints;if(r<n||r>=n+i)return null;var a=r-n,o=this.data;return{object:this,pointId:a,dataCoord:[o[2*a],o[2*a+1]]}},f.update=function(t){t=t||{};var e,r,n,a,o,s=this.plot.gl;this.color=(t.color||[0,0,1,1]).slice(),this.width=+(t.width||1),this.fill=(t.fill||[!1,!1,!1,!1]).slice(),this.fillColor=i(t.fillColor||[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]]);var h=t.dashes||[1],f=0;for(e=0;e<h.length;++e)f+=h[e];var d=c.mallocUint8(f);n=0;var p=255;for(e=0;e<h.length;++e){for(r=0;r<h[e];++r)d[n++]=p;p^=255}this.dashPattern.dispose(),this.usingDashes=h.length>1,this.dashPattern=l(s,u(d,[f,1,4],[1,0,0])),this.dashPattern.minFilter=s.NEAREST,this.dashPattern.magFilter=s.NEAREST,this.dashLength=f,c.free(d);var m=t.positions;this.data=m;var v=this.bounds;v[0]=v[1]=1/0,v[2]=v[3]=-1/0;var g=this.numPoints=m.length>>>1;if(0!==g){for(e=0;e<g;++e)a=m[2*e],o=m[2*e+1],isNaN(a)||isNaN(o)||(v[0]=Math.min(v[0],a),v[1]=Math.min(v[1],o),v[2]=Math.max(v[2],a),v[3]=Math.max(v[3],o));v[0]===v[2]&&(v[2]+=1),v[3]===v[1]&&(v[3]+=1);var y=c.mallocFloat64(24*(g-1)),b=c.mallocFloat32(24*(g-1)),x=c.mallocFloat32(24*(g-1)),_=c.mallocUint32(12*(g-1)),w=b.length,M=_.length;n=g;for(var k=0;n>1;){var A=--n;a=m[2*n],o=m[2*n+1];var T=A-1,S=m[2*T],E=m[2*T+1];if(!(isNaN(a)||isNaN(o)||isNaN(S)||isNaN(E))){k+=1,a=(a-v[0])/(v[2]-v[0]),o=(o-v[1])/(v[3]-v[1]),S=(S-v[0])/(v[2]-v[0]),E=(E-v[1])/(v[3]-v[1]);var L=S-a,C=E-o,I=A|1<<24,z=A-1,D=A,P=A-1|1<<24;y[--w]=-C,y[--w]=-L,y[--w]=o,y[--w]=a,_[--M]=I,_[--M]=z,y[--w]=C,y[--w]=L,y[--w]=E,y[--w]=S,_[--M]=D,_[--M]=P,y[--w]=-C,y[--w]=-L,y[--w]=E,y[--w]=S,_[--M]=D,_[--M]=P,y[--w]=C,y[--w]=L,y[--w]=E,y[--w]=S,_[--M]=D,_[--M]=P,y[--w]=-C,y[--w]=-L,y[--w]=o,y[--w]=a,_[--M]=I,_[--M]=z,y[--w]=C,y[--w]=L,y[--w]=o,y[--w]=a,_[--M]=I,_[--M]=z}}for(e=0;e<y.length;e++)b[e]=y[e],x[e]=y[e]-b[e];this.vertCount=6*k,this.lineBufferHi.update(b.subarray(w)),this.lineBufferLo.update(x.subarray(w)),this.pickBuffer.update(_.subarray(M)),c.free(y),c.free(b),c.free(x),c.free(_)}},f.dispose=function(){this.plot.removeObject(this),this.lineBufferLo.dispose(),this.lineBufferHi.dispose(),this.pickBuffer.dispose(),this.lineShader.dispose(),this.mitreShader.dispose(),this.fillShader.dispose(),this.pickShader.dispose(),this.dashPattern.dispose()}},{\"./lib/shaders\":169,\"gl-buffer\":156,\"gl-shader\":255,\"gl-texture2d\":267,ndarray:467,\"typedarray-pool\":541}],171:[function(t,e,r){var n=t(\"gl-shader\"),i=\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute vec3 position, nextPosition;\\nattribute float arcLength, lineWidth;\\nattribute vec4 color;\\n\\nuniform vec2 screenShape;\\nuniform float pixelRatio;\\nuniform mat4 model, view, projection;\\n\\nvarying vec4 fragColor;\\nvarying vec3 worldPosition;\\nvarying float pixelArcLength;\\n\\nvoid main() {\\n vec4 projected = projection * view * model * vec4(position, 1.0);\\n vec4 tangentClip = projection * view * model * vec4(nextPosition - position, 0.0);\\n vec2 tangent = normalize(screenShape * tangentClip.xy);\\n vec2 offset = 0.5 * pixelRatio * lineWidth * vec2(tangent.y, -tangent.x) / screenShape;\\n\\n gl_Position = vec4(projected.xy + projected.w * offset, projected.zw);\\n\\n worldPosition = position;\\n pixelArcLength = arcLength;\\n fragColor = color;\\n}\\n\",a=[{name:\"position\",type:\"vec3\"},{name:\"nextPosition\",type:\"vec3\"},{name:\"arcLength\",type:\"float\"},{name:\"lineWidth\",type:\"float\"},{name:\"color\",type:\"vec4\"}];r.createShader=function(t){return n(t,i,\"precision mediump float;\\n#define GLSLIFY 1\\n\\nuniform vec3 clipBounds[2];\\nuniform sampler2D dashTexture;\\nuniform float dashScale;\\nuniform float opacity;\\n\\nvarying vec3 worldPosition;\\nvarying float pixelArcLength;\\nvarying vec4 fragColor;\\n\\nvoid main() {\\n if(any(lessThan(worldPosition, clipBounds[0])) || any(greaterThan(worldPosition, clipBounds[1]))) {\\n discard;\\n }\\n float dashWeight = texture2D(dashTexture, vec2(dashScale * pixelArcLength, 0)).r;\\n if(dashWeight < 0.5) {\\n discard;\\n }\\n gl_FragColor = fragColor * opacity;\\n}\\n\",null,a)},r.createPickShader=function(t){return n(t,i,\"precision mediump float;\\n#define GLSLIFY 1\\n\\n#define FLOAT_MAX 1.70141184e38\\n#define FLOAT_MIN 1.17549435e-38\\n\\nlowp vec4 encode_float_1_0(highp float v) {\\n highp float av = abs(v);\\n\\n //Handle special cases\\n if(av < FLOAT_MIN) {\\n return vec4(0.0, 0.0, 0.0, 0.0);\\n } else if(v > FLOAT_MAX) {\\n return vec4(127.0, 128.0, 0.0, 0.0) / 255.0;\\n } else if(v < -FLOAT_MAX) {\\n return vec4(255.0, 128.0, 0.0, 0.0) / 255.0;\\n }\\n\\n highp vec4 c = vec4(0,0,0,0);\\n\\n //Compute exponent and mantissa\\n highp float e = floor(log2(av));\\n highp float m = av * pow(2.0, -e) - 1.0;\\n \\n //Unpack mantissa\\n c[1] = floor(128.0 * m);\\n m -= c[1] / 128.0;\\n c[2] = floor(32768.0 * m);\\n m -= c[2] / 32768.0;\\n c[3] = floor(8388608.0 * m);\\n \\n //Unpack exponent\\n highp float ebias = e + 127.0;\\n c[0] = floor(ebias / 2.0);\\n ebias -= c[0] * 2.0;\\n c[1] += floor(ebias) * 128.0; \\n\\n //Unpack sign bit\\n c[0] += 128.0 * step(0.0, -v);\\n\\n //Scale back to range\\n return c / 255.0;\\n}\\n\\n\\n\\nuniform float pickId;\\nuniform vec3 clipBounds[2];\\n\\nvarying vec3 worldPosition;\\nvarying float pixelArcLength;\\nvarying vec4 fragColor;\\n\\nvoid main() {\\n if(any(lessThan(worldPosition, clipBounds[0])) || any(greaterThan(worldPosition, clipBounds[1]))) {\\n discard;\\n }\\n gl_FragColor = vec4(pickId/255.0, encode_float_1_0(pixelArcLength).xyz);\\n}\",null,a)}},{\"gl-shader\":255}],172:[function(t,e,r){\"use strict\";function n(t,e){for(var r=0,n=0;n<3;++n){var i=t[n]-e[n];r+=i*i}return Math.sqrt(r)}function i(t){\n", "for(var e=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],r=0;r<3;++r)e[0][r]=Math.max(t[0][r],e[0][r]),e[1][r]=Math.min(t[1][r],e[1][r]);return e}function a(t,e,r,n){this.arcLength=t,this.position=e,this.index=r,this.dataCoordinate=n}function o(t,e,r,n,i,a){this.gl=t,this.shader=e,this.pickShader=r,this.buffer=n,this.vao=i,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.points=[],this.arcLength=[],this.vertexCount=0,this.bounds=[[0,0,0],[0,0,0]],this.pickId=0,this.lineWidth=1,this.texture=a,this.dashScale=1,this.opacity=1,this.dirty=!0,this.pixelRatio=1}function s(t){var e=t.gl||t.scene&&t.scene.gl,r=m(e);r.attributes.position.location=0,r.attributes.nextPosition.location=1,r.attributes.arcLength.location=2,r.attributes.lineWidth.location=3,r.attributes.color.location=4;var n=v(e);n.attributes.position.location=0,n.attributes.nextPosition.location=1,n.attributes.arcLength.location=2,n.attributes.lineWidth.location=3,n.attributes.color.location=4;for(var i=l(e),a=u(e,[{buffer:i,size:3,offset:0,stride:48},{buffer:i,size:3,offset:12,stride:48},{buffer:i,size:1,offset:24,stride:48},{buffer:i,size:1,offset:28,stride:48},{buffer:i,size:4,offset:32,stride:48}]),s=d(new Array(1024),[256,1,4]),h=0;h<1024;++h)s.data[h]=255;var f=c(e,s);f.wrap=e.REPEAT;var p=new o(e,r,n,i,a,f);return p.update(t),p}e.exports=s;var l=t(\"gl-buffer\"),u=t(\"gl-vao\"),c=t(\"gl-texture2d\"),h=t(\"glsl-read-float\"),f=t(\"binary-search-bounds\"),d=t(\"ndarray\"),p=t(\"./lib/shaders\"),m=p.createShader,v=p.createPickShader,g=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],y=o.prototype;y.isTransparent=function(){return this.opacity<1},y.isOpaque=function(){return this.opacity>=1},y.pickSlots=1,y.setPickBase=function(t){this.pickId=t},y.drawTransparent=y.draw=function(t){var e=this.gl,r=this.shader,n=this.vao;r.bind(),r.uniforms={model:t.model||g,view:t.view||g,projection:t.projection||g,clipBounds:i(this.clipBounds),dashTexture:this.texture.bind(),dashScale:this.dashScale/this.arcLength[this.arcLength.length-1],opacity:this.opacity,screenShape:[e.drawingBufferWidth,e.drawingBufferHeight],pixelRatio:this.pixelRatio},n.bind(),n.draw(e.TRIANGLE_STRIP,this.vertexCount)},y.drawPick=function(t){var e=this.gl,r=this.pickShader,n=this.vao;r.bind(),r.uniforms={model:t.model||g,view:t.view||g,projection:t.projection||g,pickId:this.pickId,clipBounds:i(this.clipBounds),screenShape:[e.drawingBufferWidth,e.drawingBufferHeight],pixelRatio:this.pixelRatio},n.bind(),n.draw(e.TRIANGLE_STRIP,this.vertexCount)},y.update=function(t){var e,r;this.dirty=!0;var i=!!t.connectGaps;\"dashScale\"in t&&(this.dashScale=t.dashScale),\"opacity\"in t&&(this.opacity=+t.opacity);var a=t.position||t.positions;if(a){var o=t.color||t.colors||[0,0,0,1],s=t.lineWidth||1,l=[],u=[],c=[],h=0,p=0,m=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],v=!1;t:for(e=1;e<a.length;++e){var g=a[e-1],y=a[e];for(u.push(h),c.push(g.slice()),r=0;r<3;++r){if(isNaN(g[r])||isNaN(y[r])||!isFinite(g[r])||!isFinite(y[r])){if(!i&&l.length>0){for(var b=0;b<24;++b)l.push(l[l.length-12]);p+=2,v=!0}continue t}m[0][r]=Math.min(m[0][r],g[r],y[r]),m[1][r]=Math.max(m[1][r],g[r],y[r])}var x,_;Array.isArray(o[0])?(x=o[e-1],_=o[e]):x=_=o,3===x.length&&(x=[x[0],x[1],x[2],1]),3===_.length&&(_=[_[0],_[1],_[2],1]);var w;w=Array.isArray(s)?s[e-1]:s;var M=h;if(h+=n(g,y),v){for(r=0;r<2;++r)l.push(g[0],g[1],g[2],y[0],y[1],y[2],M,w,x[0],x[1],x[2],x[3]);p+=2,v=!1}l.push(g[0],g[1],g[2],y[0],y[1],y[2],M,w,x[0],x[1],x[2],x[3],g[0],g[1],g[2],y[0],y[1],y[2],M,-w,x[0],x[1],x[2],x[3],y[0],y[1],y[2],g[0],g[1],g[2],h,-w,_[0],_[1],_[2],_[3],y[0],y[1],y[2],g[0],g[1],g[2],h,w,_[0],_[1],_[2],_[3]),p+=4}if(this.buffer.update(l),u.push(h),c.push(a[a.length-1].slice()),this.bounds=m,this.vertexCount=p,this.points=c,this.arcLength=u,\"dashes\"in t){var k=t.dashes,A=k.slice();for(A.unshift(0),e=1;e<A.length;++e)A[e]=A[e-1]+A[e];var T=d(new Array(1024),[256,1,4]);for(e=0;e<256;++e){for(r=0;r<4;++r)T.set(e,0,r,0);1&f.le(A,A[A.length-1]*e/255)?T.set(e,0,0,0):T.set(e,0,0,255)}this.texture.setPixels(T)}}},y.dispose=function(){this.shader.dispose(),this.vao.dispose(),this.buffer.dispose()},y.pick=function(t){if(!t)return null;if(t.id!==this.pickId)return null;var e=h(t.value[0],t.value[1],t.value[2],0),r=f.le(this.arcLength,e);if(r<0)return null;if(r===this.arcLength.length-1)return new a(this.arcLength[this.arcLength.length-1],this.points[this.points.length-1].slice(),r);for(var n=this.points[r],i=this.points[Math.min(r+1,this.points.length-1)],o=(e-this.arcLength[r])/(this.arcLength[r+1]-this.arcLength[r]),s=1-o,l=[0,0,0],u=0;u<3;++u)l[u]=s*n[u]+o*i[u];var c=Math.min(o<.5?r:r+1,this.points.length-1);return new a(e,l,c,this.points[c])}},{\"./lib/shaders\":171,\"binary-search-bounds\":66,\"gl-buffer\":156,\"gl-texture2d\":267,\"gl-vao\":271,\"glsl-read-float\":278,ndarray:467}],173:[function(t,e,r){function n(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=r*a-i*n;return o?(o=1/o,t[0]=a*o,t[1]=-n*o,t[2]=-i*o,t[3]=r*o,t):null}e.exports=n},{}],174:[function(t,e,r){function n(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=e[4],s=e[5],l=e[6],u=e[7],c=e[8],h=c*o-s*u,f=-c*a+s*l,d=u*a-o*l,p=r*h+n*f+i*d;return p?(p=1/p,t[0]=h*p,t[1]=(-c*n+i*u)*p,t[2]=(s*n-i*o)*p,t[3]=f*p,t[4]=(c*r-i*l)*p,t[5]=(-s*r+i*a)*p,t[6]=d*p,t[7]=(-u*r+n*l)*p,t[8]=(o*r-n*a)*p,t):null}e.exports=n},{}],175:[function(t,e,r){function n(t){var e=new Float32Array(16);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}e.exports=n},{}],176:[function(t,e,r){function n(){var t=new Float32Array(16);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}e.exports=n},{}],177:[function(t,e,r){function n(t){var e=t[0],r=t[1],n=t[2],i=t[3],a=t[4],o=t[5],s=t[6],l=t[7],u=t[8],c=t[9],h=t[10],f=t[11],d=t[12],p=t[13],m=t[14],v=t[15];return(e*o-r*a)*(h*v-f*m)-(e*s-n*a)*(c*v-f*p)+(e*l-i*a)*(c*m-h*p)+(r*s-n*o)*(u*v-f*d)-(r*l-i*o)*(u*m-h*d)+(n*l-i*s)*(u*p-c*d)}e.exports=n},{}],178:[function(t,e,r){function n(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=r+r,s=n+n,l=i+i,u=r*o,c=n*o,h=n*s,f=i*o,d=i*s,p=i*l,m=a*o,v=a*s,g=a*l;return t[0]=1-h-p,t[1]=c+g,t[2]=f-v,t[3]=0,t[4]=c-g,t[5]=1-u-p,t[6]=d+m,t[7]=0,t[8]=f+v,t[9]=d-m,t[10]=1-u-h,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}e.exports=n},{}],179:[function(t,e,r){function n(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=n+n,l=i+i,u=a+a,c=n*s,h=n*l,f=n*u,d=i*l,p=i*u,m=a*u,v=o*s,g=o*l,y=o*u;return t[0]=1-(d+m),t[1]=h+y,t[2]=f-g,t[3]=0,t[4]=h-y,t[5]=1-(c+m),t[6]=p+v,t[7]=0,t[8]=f+g,t[9]=p-v,t[10]=1-(c+d),t[11]=0,t[12]=r[0],t[13]=r[1],t[14]=r[2],t[15]=1,t}e.exports=n},{}],180:[function(t,e,r){function n(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}e.exports=n},{}],181:[function(t,e,r){function n(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=e[4],s=e[5],l=e[6],u=e[7],c=e[8],h=e[9],f=e[10],d=e[11],p=e[12],m=e[13],v=e[14],g=e[15],y=r*s-n*o,b=r*l-i*o,x=r*u-a*o,_=n*l-i*s,w=n*u-a*s,M=i*u-a*l,k=c*m-h*p,A=c*v-f*p,T=c*g-d*p,S=h*v-f*m,E=h*g-d*m,L=f*g-d*v,C=y*L-b*E+x*S+_*T-w*A+M*k;return C?(C=1/C,t[0]=(s*L-l*E+u*S)*C,t[1]=(i*E-n*L-a*S)*C,t[2]=(m*M-v*w+g*_)*C,t[3]=(f*w-h*M-d*_)*C,t[4]=(l*T-o*L-u*A)*C,t[5]=(r*L-i*T+a*A)*C,t[6]=(v*x-p*M-g*b)*C,t[7]=(c*M-f*x+d*b)*C,t[8]=(o*E-s*T+u*k)*C,t[9]=(n*T-r*E-a*k)*C,t[10]=(p*w-m*x+g*y)*C,t[11]=(h*x-c*w-d*y)*C,t[12]=(s*A-o*S-l*k)*C,t[13]=(r*S-n*A+i*k)*C,t[14]=(m*b-p*_-v*y)*C,t[15]=(c*_-h*b+f*y)*C,t):null}e.exports=n},{}],182:[function(t,e,r){function n(t,e,r,n){var a,o,s,l,u,c,h,f,d,p,m=e[0],v=e[1],g=e[2],y=n[0],b=n[1],x=n[2],_=r[0],w=r[1],M=r[2];return Math.abs(m-_)<1e-6&&Math.abs(v-w)<1e-6&&Math.abs(g-M)<1e-6?i(t):(h=m-_,f=v-w,d=g-M,p=1/Math.sqrt(h*h+f*f+d*d),h*=p,f*=p,d*=p,a=b*d-x*f,o=x*h-y*d,s=y*f-b*h,p=Math.sqrt(a*a+o*o+s*s),p?(p=1/p,a*=p,o*=p,s*=p):(a=0,o=0,s=0),l=f*s-d*o,u=d*a-h*s,c=h*o-f*a,p=Math.sqrt(l*l+u*u+c*c),p?(p=1/p,l*=p,u*=p,c*=p):(l=0,u=0,c=0),t[0]=a,t[1]=l,t[2]=h,t[3]=0,t[4]=o,t[5]=u,t[6]=f,t[7]=0,t[8]=s,t[9]=c,t[10]=d,t[11]=0,t[12]=-(a*m+o*v+s*g),t[13]=-(l*m+u*v+c*g),t[14]=-(h*m+f*v+d*g),t[15]=1,t)}var i=t(\"./identity\");e.exports=n},{\"./identity\":180}],183:[function(t,e,r){function n(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],u=e[6],c=e[7],h=e[8],f=e[9],d=e[10],p=e[11],m=e[12],v=e[13],g=e[14],y=e[15],b=r[0],x=r[1],_=r[2],w=r[3];return t[0]=b*n+x*s+_*h+w*m,t[1]=b*i+x*l+_*f+w*v,t[2]=b*a+x*u+_*d+w*g,t[3]=b*o+x*c+_*p+w*y,b=r[4],x=r[5],_=r[6],w=r[7],t[4]=b*n+x*s+_*h+w*m,t[5]=b*i+x*l+_*f+w*v,t[6]=b*a+x*u+_*d+w*g,t[7]=b*o+x*c+_*p+w*y,b=r[8],x=r[9],_=r[10],w=r[11],t[8]=b*n+x*s+_*h+w*m,t[9]=b*i+x*l+_*f+w*v,t[10]=b*a+x*u+_*d+w*g,t[11]=b*o+x*c+_*p+w*y,b=r[12],x=r[13],_=r[14],w=r[15],t[12]=b*n+x*s+_*h+w*m,t[13]=b*i+x*l+_*f+w*v,t[14]=b*a+x*u+_*d+w*g,t[15]=b*o+x*c+_*p+w*y,t}e.exports=n},{}],184:[function(t,e,r){function n(t,e,r,n,i){var a=1/Math.tan(e/2),o=1/(n-i);return t[0]=a/r,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=(i+n)*o,t[11]=-1,t[12]=0,t[13]=0,t[14]=2*i*n*o,t[15]=0,t}e.exports=n},{}],185:[function(t,e,r){function n(t,e,r,n){var i,a,o,s,l,u,c,h,f,d,p,m,v,g,y,b,x,_,w,M,k,A,T,S,E=n[0],L=n[1],C=n[2],I=Math.sqrt(E*E+L*L+C*C);return Math.abs(I)<1e-6?null:(I=1/I,E*=I,L*=I,C*=I,i=Math.sin(r),a=Math.cos(r),o=1-a,s=e[0],l=e[1],u=e[2],c=e[3],h=e[4],f=e[5],d=e[6],p=e[7],m=e[8],v=e[9],g=e[10],y=e[11],b=E*E*o+a,x=L*E*o+C*i,_=C*E*o-L*i,w=E*L*o-C*i,M=L*L*o+a,k=C*L*o+E*i,A=E*C*o+L*i,T=L*C*o-E*i,S=C*C*o+a,t[0]=s*b+h*x+m*_,t[1]=l*b+f*x+v*_,t[2]=u*b+d*x+g*_,t[3]=c*b+p*x+y*_,t[4]=s*w+h*M+m*k,t[5]=l*w+f*M+v*k,t[6]=u*w+d*M+g*k,t[7]=c*w+p*M+y*k,t[8]=s*A+h*T+m*S,t[9]=l*A+f*T+v*S,t[10]=u*A+d*T+g*S,t[11]=c*A+p*T+y*S,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t)}e.exports=n},{}],186:[function(t,e,r){function n(t,e,r){var n=Math.sin(r),i=Math.cos(r),a=e[4],o=e[5],s=e[6],l=e[7],u=e[8],c=e[9],h=e[10],f=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=a*i+u*n,t[5]=o*i+c*n,t[6]=s*i+h*n,t[7]=l*i+f*n,t[8]=u*i-a*n,t[9]=c*i-o*n,t[10]=h*i-s*n,t[11]=f*i-l*n,t}e.exports=n},{}],187:[function(t,e,r){function n(t,e,r){var n=Math.sin(r),i=Math.cos(r),a=e[0],o=e[1],s=e[2],l=e[3],u=e[8],c=e[9],h=e[10],f=e[11];return e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=a*i-u*n,t[1]=o*i-c*n,t[2]=s*i-h*n,t[3]=l*i-f*n,t[8]=a*n+u*i,t[9]=o*n+c*i,t[10]=s*n+h*i,t[11]=l*n+f*i,t}e.exports=n},{}],188:[function(t,e,r){function n(t,e,r){var n=Math.sin(r),i=Math.cos(r),a=e[0],o=e[1],s=e[2],l=e[3],u=e[4],c=e[5],h=e[6],f=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=a*i+u*n,t[1]=o*i+c*n,t[2]=s*i+h*n,t[3]=l*i+f*n,t[4]=u*i-a*n,t[5]=c*i-o*n,t[6]=h*i-s*n,t[7]=f*i-l*n,t}e.exports=n},{}],189:[function(t,e,r){function n(t,e,r){var n=r[0],i=r[1],a=r[2];return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*i,t[5]=e[5]*i,t[6]=e[6]*i,t[7]=e[7]*i,t[8]=e[8]*a,t[9]=e[9]*a,t[10]=e[10]*a,t[11]=e[11]*a,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}e.exports=n},{}],190:[function(t,e,r){function n(t,e,r){var n,i,a,o,s,l,u,c,h,f,d,p,m=r[0],v=r[1],g=r[2];return e===t?(t[12]=e[0]*m+e[4]*v+e[8]*g+e[12],t[13]=e[1]*m+e[5]*v+e[9]*g+e[13],t[14]=e[2]*m+e[6]*v+e[10]*g+e[14],t[15]=e[3]*m+e[7]*v+e[11]*g+e[15]):(n=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],u=e[6],c=e[7],h=e[8],f=e[9],d=e[10],p=e[11],t[0]=n,t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t[6]=u,t[7]=c,t[8]=h,t[9]=f,t[10]=d,t[11]=p,t[12]=n*m+s*v+h*g+e[12],t[13]=i*m+l*v+f*g+e[13],t[14]=a*m+u*v+d*g+e[14],t[15]=o*m+c*v+p*g+e[15]),t}e.exports=n},{}],191:[function(t,e,r){function n(t,e){if(t===e){var r=e[1],n=e[2],i=e[3],a=e[6],o=e[7],s=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=r,t[6]=e[9],t[7]=e[13],t[8]=n,t[9]=a,t[11]=e[14],t[12]=i,t[13]=o,t[14]=s}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}e.exports=n},{}],192:[function(t,e,r){\"use strict\";function n(t,e){switch(e.length){case 0:break;case 1:t[0]=1/e[0];break;case 4:i(t,e);break;case 9:a(t,e);break;case 16:o(t,e);break;default:throw new Error(\"currently supports matrices up to 4x4\")}return t}e.exports=n;var i=t(\"gl-mat2/invert\"),a=t(\"gl-mat3/invert\"),o=t(\"gl-mat4/invert\")},{\"gl-mat2/invert\":173,\"gl-mat3/invert\":174,\"gl-mat4/invert\":181}],193:[function(t,e,r){r.glMatrix=t(\"./gl-matrix/common.js\"),r.mat2=t(\"./gl-matrix/mat2.js\"),r.mat2d=t(\"./gl-matrix/mat2d.js\"),r.mat3=t(\"./gl-matrix/mat3.js\"),r.mat4=t(\"./gl-matrix/mat4.js\"),r.quat=t(\"./gl-matrix/quat.js\"),r.vec2=t(\"./gl-matrix/vec2.js\"),r.vec3=t(\"./gl-matrix/vec3.js\"),r.vec4=t(\"./gl-matrix/vec4.js\")},{\"./gl-matrix/common.js\":194,\"./gl-matrix/mat2.js\":195,\"./gl-matrix/mat2d.js\":196,\"./gl-matrix/mat3.js\":197,\"./gl-matrix/mat4.js\":198,\"./gl-matrix/quat.js\":199,\"./gl-matrix/vec2.js\":200,\"./gl-matrix/vec3.js\":201,\"./gl-matrix/vec4.js\":202}],194:[function(t,e,r){var n={};n.EPSILON=1e-6,n.ARRAY_TYPE=\"undefined\"!=typeof Float32Array?Float32Array:Array,n.RANDOM=Math.random,n.ENABLE_SIMD=!1,n.SIMD_AVAILABLE=n.ARRAY_TYPE===Float32Array&&\"SIMD\"in this,n.USE_SIMD=n.ENABLE_SIMD&&n.SIMD_AVAILABLE,n.setMatrixArrayType=function(t){n.ARRAY_TYPE=t};var i=Math.PI/180;n.toRadian=function(t){return t*i},n.equals=function(t,e){return Math.abs(t-e)<=n.EPSILON*Math.max(1,Math.abs(t),Math.abs(e))},e.exports=n},{}],195:[function(t,e,r){var n=t(\"./common.js\"),i={};i.create=function(){var t=new n.ARRAY_TYPE(4);return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t},i.clone=function(t){var e=new n.ARRAY_TYPE(4);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e},i.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t},i.identity=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t},i.fromValues=function(t,e,r,i){var a=new n.ARRAY_TYPE(4);return a[0]=t,a[1]=e,a[2]=r,a[3]=i,a},i.set=function(t,e,r,n,i){return t[0]=e,t[1]=r,t[2]=n,t[3]=i,t},i.transpose=function(t,e){if(t===e){var r=e[1];t[1]=e[2],t[2]=r}else t[0]=e[0],t[1]=e[2],t[2]=e[1],t[3]=e[3];return t},i.invert=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=r*a-i*n;return o?(o=1/o,t[0]=a*o,t[1]=-n*o,t[2]=-i*o,t[3]=r*o,t):null},i.adjoint=function(t,e){var r=e[0];return t[0]=e[3],t[1]=-e[1],t[2]=-e[2],t[3]=r,t},i.determinant=function(t){return t[0]*t[3]-t[2]*t[1]},i.multiply=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=r[0],l=r[1],u=r[2],c=r[3];return t[0]=n*s+a*l,t[1]=i*s+o*l,t[2]=n*u+a*c,t[3]=i*u+o*c,t},i.mul=i.multiply,i.rotate=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=Math.sin(r),l=Math.cos(r);return t[0]=n*l+a*s,t[1]=i*l+o*s,t[2]=n*-s+a*l,t[3]=i*-s+o*l,t},i.scale=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=r[0],l=r[1];return t[0]=n*s,t[1]=i*s,t[2]=a*l,t[3]=o*l,t},i.fromRotation=function(t,e){var r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=r,t[2]=-r,t[3]=n,t},i.fromScaling=function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=e[1],t},i.str=function(t){return\"mat2(\"+t[0]+\", \"+t[1]+\", \"+t[2]+\", \"+t[3]+\")\"},i.frob=function(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2)+Math.pow(t[2],2)+Math.pow(t[3],2))},i.LDU=function(t,e,r,n){return t[2]=n[2]/n[0],r[0]=n[0],r[1]=n[1],r[3]=n[3]-t[2]*r[1],[t,e,r]},i.add=function(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t[3]=e[3]+r[3],t},i.subtract=function(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t[3]=e[3]-r[3],t},i.sub=i.subtract,i.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]},i.equals=function(t,e){var r=t[0],i=t[1],a=t[2],o=t[3],s=e[0],l=e[1],u=e[2],c=e[3];return Math.abs(r-s)<=n.EPSILON*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(i-l)<=n.EPSILON*Math.max(1,Math.abs(i),Math.abs(l))&&Math.abs(a-u)<=n.EPSILON*Math.max(1,Math.abs(a),Math.abs(u))&&Math.abs(o-c)<=n.EPSILON*Math.max(1,Math.abs(o),Math.abs(c))},i.multiplyScalar=function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t},i.multiplyScalarAndAdd=function(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t[3]=e[3]+r[3]*n,t},e.exports=i},{\"./common.js\":194}],196:[function(t,e,r){var n=t(\"./common.js\"),i={};i.create=function(){var t=new n.ARRAY_TYPE(6);return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t},i.clone=function(t){var e=new n.ARRAY_TYPE(6);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e},i.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t},i.identity=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t},i.fromValues=function(t,e,r,i,a,o){var s=new n.ARRAY_TYPE(6);return s[0]=t,s[1]=e,s[2]=r,s[3]=i,s[4]=a,s[5]=o,s},i.set=function(t,e,r,n,i,a,o){return t[0]=e,t[1]=r,t[2]=n,t[3]=i,t[4]=a,t[5]=o,t},i.invert=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=e[4],s=e[5],l=r*a-n*i;return l?(l=1/l,t[0]=a*l,t[1]=-n*l,t[2]=-i*l,t[3]=r*l,t[4]=(i*s-a*o)*l,t[5]=(n*o-r*s)*l,t):null},i.determinant=function(t){return t[0]*t[3]-t[1]*t[2]},i.multiply=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],u=r[0],c=r[1],h=r[2],f=r[3],d=r[4],p=r[5];return t[0]=n*u+a*c,t[1]=i*u+o*c,t[2]=n*h+a*f,t[3]=i*h+o*f,t[4]=n*d+a*p+s,t[5]=i*d+o*p+l,t},i.mul=i.multiply,i.rotate=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],u=Math.sin(r),c=Math.cos(r);return t[0]=n*c+a*u,t[1]=i*c+o*u,t[2]=n*-u+a*c,t[3]=i*-u+o*c,t[4]=s,t[5]=l,t},i.scale=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],u=r[0],c=r[1];return t[0]=n*u,t[1]=i*u,t[2]=a*c,t[3]=o*c,t[4]=s,t[5]=l,t},i.translate=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],u=r[0],c=r[1];return t[0]=n,t[1]=i,t[2]=a,t[3]=o,t[4]=n*u+a*c+s,t[5]=i*u+o*c+l,t},i.fromRotation=function(t,e){var r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=r,t[2]=-r,t[3]=n,t[4]=0,t[5]=0,t},i.fromScaling=function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=e[1],t[4]=0,t[5]=0,t},i.fromTranslation=function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=e[0],t[5]=e[1],t},i.str=function(t){return\"mat2d(\"+t[0]+\", \"+t[1]+\", \"+t[2]+\", \"+t[3]+\", \"+t[4]+\", \"+t[5]+\")\"},i.frob=function(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2)+Math.pow(t[2],2)+Math.pow(t[3],2)+Math.pow(t[4],2)+Math.pow(t[5],2)+1)},i.add=function(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t[3]=e[3]+r[3],t[4]=e[4]+r[4],t[5]=e[5]+r[5],t},i.subtract=function(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t[3]=e[3]-r[3],t[4]=e[4]-r[4],t[5]=e[5]-r[5],t},i.sub=i.subtract,i.multiplyScalar=function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*r,t[5]=e[5]*r,t},i.multiplyScalarAndAdd=function(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t[3]=e[3]+r[3]*n,t[4]=e[4]+r[4]*n,t[5]=e[5]+r[5]*n,t},i.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]},i.equals=function(t,e){var r=t[0],i=t[1],a=t[2],o=t[3],s=t[4],l=t[5],u=e[0],c=e[1],h=e[2],f=e[3],d=e[4],p=e[5];return Math.abs(r-u)<=n.EPSILON*Math.max(1,Math.abs(r),Math.abs(u))&&Math.abs(i-c)<=n.EPSILON*Math.max(1,Math.abs(i),Math.abs(c))&&Math.abs(a-h)<=n.EPSILON*Math.max(1,Math.abs(a),Math.abs(h))&&Math.abs(o-f)<=n.EPSILON*Math.max(1,Math.abs(o),Math.abs(f))&&Math.abs(s-d)<=n.EPSILON*Math.max(1,Math.abs(s),Math.abs(d))&&Math.abs(l-p)<=n.EPSILON*Math.max(1,Math.abs(l),Math.abs(p))},e.exports=i},{\"./common.js\":194}],197:[function(t,e,r){var n=t(\"./common.js\"),i={};i.create=function(){var t=new n.ARRAY_TYPE(9);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},i.fromMat4=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t},i.clone=function(t){var e=new n.ARRAY_TYPE(9);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e},i.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t},i.fromValues=function(t,e,r,i,a,o,s,l,u){var c=new n.ARRAY_TYPE(9);return c[0]=t,c[1]=e,c[2]=r,c[3]=i,c[4]=a,c[5]=o,c[6]=s,c[7]=l,c[8]=u,c},i.set=function(t,e,r,n,i,a,o,s,l,u){return t[0]=e,t[1]=r,t[2]=n,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=l,t[8]=u,t},i.identity=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},i.transpose=function(t,e){if(t===e){var r=e[1],n=e[2],i=e[5];t[1]=e[3],t[2]=e[6],t[3]=r,t[5]=e[7],t[6]=n,t[7]=i}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t},i.invert=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=e[4],s=e[5],l=e[6],u=e[7],c=e[8],h=c*o-s*u,f=-c*a+s*l,d=u*a-o*l,p=r*h+n*f+i*d;return p?(p=1/p,t[0]=h*p,t[1]=(-c*n+i*u)*p,t[2]=(s*n-i*o)*p,t[3]=f*p,t[4]=(c*r-i*l)*p,t[5]=(-s*r+i*a)*p,t[6]=d*p,t[7]=(-u*r+n*l)*p,t[8]=(o*r-n*a)*p,t):null},i.adjoint=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=e[4],s=e[5],l=e[6],u=e[7],c=e[8];return t[0]=o*c-s*u,t[1]=i*u-n*c,t[2]=n*s-i*o,t[3]=s*l-a*c,t[4]=r*c-i*l,t[5]=i*a-r*s,t[6]=a*u-o*l,t[7]=n*l-r*u,t[8]=r*o-n*a,t},i.determinant=function(t){var e=t[0],r=t[1],n=t[2],i=t[3],a=t[4],o=t[5],s=t[6],l=t[7],u=t[8];return e*(u*a-o*l)+r*(-u*i+o*s)+n*(l*i-a*s)},i.multiply=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],u=e[6],c=e[7],h=e[8],f=r[0],d=r[1],p=r[2],m=r[3],v=r[4],g=r[5],y=r[6],b=r[7],x=r[8];return t[0]=f*n+d*o+p*u,t[1]=f*i+d*s+p*c,t[2]=f*a+d*l+p*h,t[3]=m*n+v*o+g*u,t[4]=m*i+v*s+g*c,t[5]=m*a+v*l+g*h,t[6]=y*n+b*o+x*u,t[7]=y*i+b*s+x*c,t[8]=y*a+b*l+x*h,t},i.mul=i.multiply,i.translate=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],u=e[6],c=e[7],h=e[8],f=r[0],d=r[1];return t[0]=n,t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t[6]=f*n+d*o+u,t[7]=f*i+d*s+c,t[8]=f*a+d*l+h,t},i.rotate=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],u=e[6],c=e[7],h=e[8],f=Math.sin(r),d=Math.cos(r);return t[0]=d*n+f*o,t[1]=d*i+f*s,t[2]=d*a+f*l,t[3]=d*o-f*n,t[4]=d*s-f*i,t[5]=d*l-f*a,t[6]=u,t[7]=c,t[8]=h,t},i.scale=function(t,e,r){var n=r[0],i=r[1];return t[0]=n*e[0],t[1]=n*e[1],t[2]=n*e[2],t[3]=i*e[3],t[4]=i*e[4],t[5]=i*e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t},i.fromTranslation=function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[1],t[8]=1,t},i.fromRotation=function(t,e){var r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=r,t[2]=0,t[3]=-r,t[4]=n,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},i.fromScaling=function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},i.fromMat2d=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=0,t[3]=e[2],t[4]=e[3],t[5]=0,t[6]=e[4],t[7]=e[5],t[8]=1,t},i.fromQuat=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=r+r,s=n+n,l=i+i,u=r*o,c=n*o,h=n*s,f=i*o,d=i*s,p=i*l,m=a*o,v=a*s,g=a*l;return t[0]=1-h-p,t[3]=c-g,t[6]=f+v,t[1]=c+g,t[4]=1-u-p,t[7]=d-m,t[2]=f-v,t[5]=d+m,t[8]=1-u-h,t},i.normalFromMat4=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=e[4],s=e[5],l=e[6],u=e[7],c=e[8],h=e[9],f=e[10],d=e[11],p=e[12],m=e[13],v=e[14],g=e[15],y=r*s-n*o,b=r*l-i*o,x=r*u-a*o,_=n*l-i*s,w=n*u-a*s,M=i*u-a*l,k=c*m-h*p,A=c*v-f*p,T=c*g-d*p,S=h*v-f*m,E=h*g-d*m,L=f*g-d*v,C=y*L-b*E+x*S+_*T-w*A+M*k;return C?(C=1/C,t[0]=(s*L-l*E+u*S)*C,t[1]=(l*T-o*L-u*A)*C,t[2]=(o*E-s*T+u*k)*C,t[3]=(i*E-n*L-a*S)*C,t[4]=(r*L-i*T+a*A)*C,t[5]=(n*T-r*E-a*k)*C,t[6]=(m*M-v*w+g*_)*C,t[7]=(v*x-p*M-g*b)*C,t[8]=(p*w-m*x+g*y)*C,t):null},i.str=function(t){return\"mat3(\"+t[0]+\", \"+t[1]+\", \"+t[2]+\", \"+t[3]+\", \"+t[4]+\", \"+t[5]+\", \"+t[6]+\", \"+t[7]+\", \"+t[8]+\")\"},i.frob=function(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2)+Math.pow(t[2],2)+Math.pow(t[3],2)+Math.pow(t[4],2)+Math.pow(t[5],2)+Math.pow(t[6],2)+Math.pow(t[7],2)+Math.pow(t[8],2))},i.add=function(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t[3]=e[3]+r[3],t[4]=e[4]+r[4],t[5]=e[5]+r[5],t[6]=e[6]+r[6],t[7]=e[7]+r[7],t[8]=e[8]+r[8],t},i.subtract=function(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t[3]=e[3]-r[3],t[4]=e[4]-r[4],t[5]=e[5]-r[5],t[6]=e[6]-r[6],t[7]=e[7]-r[7],t[8]=e[8]-r[8],t},i.sub=i.subtract,i.multiplyScalar=function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*r,t[5]=e[5]*r,t[6]=e[6]*r,t[7]=e[7]*r,t[8]=e[8]*r,t},i.multiplyScalarAndAdd=function(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t[3]=e[3]+r[3]*n,t[4]=e[4]+r[4]*n,t[5]=e[5]+r[5]*n,t[6]=e[6]+r[6]*n,t[7]=e[7]+r[7]*n,t[8]=e[8]+r[8]*n,t},i.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]},i.equals=function(t,e){var r=t[0],i=t[1],a=t[2],o=t[3],s=t[4],l=t[5],u=t[6],c=t[7],h=t[8],f=e[0],d=e[1],p=e[2],m=e[3],v=e[4],g=e[5],y=t[6],b=e[7],x=e[8];return Math.abs(r-f)<=n.EPSILON*Math.max(1,Math.abs(r),Math.abs(f))&&Math.abs(i-d)<=n.EPSILON*Math.max(1,Math.abs(i),Math.abs(d))&&Math.abs(a-p)<=n.EPSILON*Math.max(1,Math.abs(a),Math.abs(p))&&Math.abs(o-m)<=n.EPSILON*Math.max(1,Math.abs(o),Math.abs(m))&&Math.abs(s-v)<=n.EPSILON*Math.max(1,Math.abs(s),Math.abs(v))&&Math.abs(l-g)<=n.EPSILON*Math.max(1,Math.abs(l),Math.abs(g))&&Math.abs(u-y)<=n.EPSILON*Math.max(1,Math.abs(u),Math.abs(y))&&Math.abs(c-b)<=n.EPSILON*Math.max(1,Math.abs(c),Math.abs(b))&&Math.abs(h-x)<=n.EPSILON*Math.max(1,Math.abs(h),Math.abs(x))},e.exports=i},{\"./common.js\":194}],198:[function(t,e,r){var n=t(\"./common.js\"),i={scalar:{},SIMD:{}};i.create=function(){var t=new n.ARRAY_TYPE(16);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},i.clone=function(t){var e=new n.ARRAY_TYPE(16);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e},i.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},i.fromValues=function(t,e,r,i,a,o,s,l,u,c,h,f,d,p,m,v){var g=new n.ARRAY_TYPE(16);return g[0]=t,g[1]=e,g[2]=r,g[3]=i,g[4]=a,g[5]=o,g[6]=s,g[7]=l,g[8]=u,g[9]=c,g[10]=h,g[11]=f,g[12]=d,g[13]=p,g[14]=m,g[15]=v,g},i.set=function(t,e,r,n,i,a,o,s,l,u,c,h,f,d,p,m,v){return t[0]=e,t[1]=r,t[2]=n,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=l,t[8]=u,t[9]=c,t[10]=h,t[11]=f,t[12]=d,t[13]=p,t[14]=m,t[15]=v,t},i.identity=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},i.scalar.transpose=function(t,e){if(t===e){var r=e[1],n=e[2],i=e[3],a=e[6],o=e[7],s=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=r,t[6]=e[9],t[7]=e[13],t[8]=n,t[9]=a,t[11]=e[14],t[12]=i,t[13]=o,t[14]=s}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t},i.SIMD.transpose=function(t,e){var r,n,i,a,o,s,l,u,c,h;return r=SIMD.Float32x4.load(e,0),n=SIMD.Float32x4.load(e,4),i=SIMD.Float32x4.load(e,8),a=SIMD.Float32x4.load(e,12),o=SIMD.Float32x4.shuffle(r,n,0,1,4,5),s=SIMD.Float32x4.shuffle(i,a,0,1,4,5),l=SIMD.Float32x4.shuffle(o,s,0,2,4,6),u=SIMD.Float32x4.shuffle(o,s,1,3,5,7),SIMD.Float32x4.store(t,0,l),SIMD.Float32x4.store(t,4,u),o=SIMD.Float32x4.shuffle(r,n,2,3,6,7),s=SIMD.Float32x4.shuffle(i,a,2,3,6,7),c=SIMD.Float32x4.shuffle(o,s,0,2,4,6),h=SIMD.Float32x4.shuffle(o,s,1,3,5,7),SIMD.Float32x4.store(t,8,c),SIMD.Float32x4.store(t,12,h),t},i.transpose=n.USE_SIMD?i.SIMD.transpose:i.scalar.transpose,i.scalar.invert=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=e[4],s=e[5],l=e[6],u=e[7],c=e[8],h=e[9],f=e[10],d=e[11],p=e[12],m=e[13],v=e[14],g=e[15],y=r*s-n*o,b=r*l-i*o,x=r*u-a*o,_=n*l-i*s,w=n*u-a*s,M=i*u-a*l,k=c*m-h*p,A=c*v-f*p,T=c*g-d*p,S=h*v-f*m,E=h*g-d*m,L=f*g-d*v,C=y*L-b*E+x*S+_*T-w*A+M*k;return C?(C=1/C,t[0]=(s*L-l*E+u*S)*C,t[1]=(i*E-n*L-a*S)*C,t[2]=(m*M-v*w+g*_)*C,t[3]=(f*w-h*M-d*_)*C,t[4]=(l*T-o*L-u*A)*C,t[5]=(r*L-i*T+a*A)*C,t[6]=(v*x-p*M-g*b)*C,t[7]=(c*M-f*x+d*b)*C,t[8]=(o*E-s*T+u*k)*C,t[9]=(n*T-r*E-a*k)*C,t[10]=(p*w-m*x+g*y)*C,t[11]=(h*x-c*w-d*y)*C,t[12]=(s*A-o*S-l*k)*C,t[13]=(r*S-n*A+i*k)*C,t[14]=(m*b-p*_-v*y)*C,t[15]=(c*_-h*b+f*y)*C,t):null},i.SIMD.invert=function(t,e){var r,n,i,a,o,s,l,u,c,h,f=SIMD.Float32x4.load(e,0),d=SIMD.Float32x4.load(e,4),p=SIMD.Float32x4.load(e,8),m=SIMD.Float32x4.load(e,12);return o=SIMD.Float32x4.shuffle(f,d,0,1,4,5),n=SIMD.Float32x4.shuffle(p,m,0,1,4,5),r=SIMD.Float32x4.shuffle(o,n,0,2,4,6),n=SIMD.Float32x4.shuffle(n,o,1,3,5,7),o=SIMD.Float32x4.shuffle(f,d,2,3,6,7),a=SIMD.Float32x4.shuffle(p,m,2,3,6,7),i=SIMD.Float32x4.shuffle(o,a,0,2,4,6),a=SIMD.Float32x4.shuffle(a,o,1,3,5,7),o=SIMD.Float32x4.mul(i,a),o=SIMD.Float32x4.swizzle(o,1,0,3,2),s=SIMD.Float32x4.mul(n,o),l=SIMD.Float32x4.mul(r,o),o=SIMD.Float32x4.swizzle(o,2,3,0,1),s=SIMD.Float32x4.sub(SIMD.Float32x4.mul(n,o),s),l=SIMD.Float32x4.sub(SIMD.Float32x4.mul(r,o),l),l=SIMD.Float32x4.swizzle(l,2,3,0,1),o=SIMD.Float32x4.mul(n,i),o=SIMD.Float32x4.swizzle(o,1,0,3,2),s=SIMD.Float32x4.add(SIMD.Float32x4.mul(a,o),s),c=SIMD.Float32x4.mul(r,o),o=SIMD.Float32x4.swizzle(o,2,3,0,1),s=SIMD.Float32x4.sub(s,SIMD.Float32x4.mul(a,o)),c=SIMD.Float32x4.sub(SIMD.Float32x4.mul(r,o),c),c=SIMD.Float32x4.swizzle(c,2,3,0,1),o=SIMD.Float32x4.mul(SIMD.Float32x4.swizzle(n,2,3,0,1),a),o=SIMD.Float32x4.swizzle(o,1,0,3,2),i=SIMD.Float32x4.swizzle(i,2,3,0,1),s=SIMD.Float32x4.add(SIMD.Float32x4.mul(i,o),s),u=SIMD.Float32x4.mul(r,o),o=SIMD.Float32x4.swizzle(o,2,3,0,1),s=SIMD.Float32x4.sub(s,SIMD.Float32x4.mul(i,o)),u=SIMD.Float32x4.sub(SIMD.Float32x4.mul(r,o),u),u=SIMD.Float32x4.swizzle(u,2,3,0,1),o=SIMD.Float32x4.mul(r,n),o=SIMD.Float32x4.swizzle(o,1,0,3,2),u=SIMD.Float32x4.add(SIMD.Float32x4.mul(a,o),u),c=SIMD.Float32x4.sub(SIMD.Float32x4.mul(i,o),c),o=SIMD.Float32x4.swizzle(o,2,3,0,1),u=SIMD.Float32x4.sub(SIMD.Float32x4.mul(a,o),u),c=SIMD.Float32x4.sub(c,SIMD.Float32x4.mul(i,o)),o=SIMD.Float32x4.mul(r,a),o=SIMD.Float32x4.swizzle(o,1,0,3,2),l=SIMD.Float32x4.sub(l,SIMD.Float32x4.mul(i,o)),u=SIMD.Float32x4.add(SIMD.Float32x4.mul(n,o),u),o=SIMD.Float32x4.swizzle(o,2,3,0,1),l=SIMD.Float32x4.add(SIMD.Float32x4.mul(i,o),l),u=SIMD.Float32x4.sub(u,SIMD.Float32x4.mul(n,o)),o=SIMD.Float32x4.mul(r,i),o=SIMD.Float32x4.swizzle(o,1,0,3,2),l=SIMD.Float32x4.add(SIMD.Float32x4.mul(a,o),l),c=SIMD.Float32x4.sub(c,SIMD.Float32x4.mul(n,o)),o=SIMD.Float32x4.swizzle(o,2,3,0,1),l=SIMD.Float32x4.sub(l,SIMD.Float32x4.mul(a,o)),c=SIMD.Float32x4.add(SIMD.Float32x4.mul(n,o),c),h=SIMD.Float32x4.mul(r,s),h=SIMD.Float32x4.add(SIMD.Float32x4.swizzle(h,2,3,0,1),h),h=SIMD.Float32x4.add(SIMD.Float32x4.swizzle(h,1,0,3,2),h),o=SIMD.Float32x4.reciprocalApproximation(h),h=SIMD.Float32x4.sub(SIMD.Float32x4.add(o,o),SIMD.Float32x4.mul(h,SIMD.Float32x4.mul(o,o))),(h=SIMD.Float32x4.swizzle(h,0,0,0,0))?(SIMD.Float32x4.store(t,0,SIMD.Float32x4.mul(h,s)),SIMD.Float32x4.store(t,4,SIMD.Float32x4.mul(h,l)),SIMD.Float32x4.store(t,8,SIMD.Float32x4.mul(h,u)),SIMD.Float32x4.store(t,12,SIMD.Float32x4.mul(h,c)),t):null},i.invert=n.USE_SIMD?i.SIMD.invert:i.scalar.invert,i.scalar.adjoint=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=e[4],s=e[5],l=e[6],u=e[7],c=e[8],h=e[9],f=e[10],d=e[11],p=e[12],m=e[13],v=e[14],g=e[15];return t[0]=s*(f*g-d*v)-h*(l*g-u*v)+m*(l*d-u*f),t[1]=-(n*(f*g-d*v)-h*(i*g-a*v)+m*(i*d-a*f)),t[2]=n*(l*g-u*v)-s*(i*g-a*v)+m*(i*u-a*l),t[3]=-(n*(l*d-u*f)-s*(i*d-a*f)+h*(i*u-a*l)),t[4]=-(o*(f*g-d*v)-c*(l*g-u*v)+p*(l*d-u*f)),t[5]=r*(f*g-d*v)-c*(i*g-a*v)+p*(i*d-a*f),t[6]=-(r*(l*g-u*v)-o*(i*g-a*v)+p*(i*u-a*l)),t[7]=r*(l*d-u*f)-o*(i*d-a*f)+c*(i*u-a*l),t[8]=o*(h*g-d*m)-c*(s*g-u*m)+p*(s*d-u*h),t[9]=-(r*(h*g-d*m)-c*(n*g-a*m)+p*(n*d-a*h)),t[10]=r*(s*g-u*m)-o*(n*g-a*m)+p*(n*u-a*s),t[11]=-(r*(s*d-u*h)-o*(n*d-a*h)+c*(n*u-a*s)),t[12]=-(o*(h*v-f*m)-c*(s*v-l*m)+p*(s*f-l*h)),t[13]=r*(h*v-f*m)-c*(n*v-i*m)+p*(n*f-i*h),t[14]=-(r*(s*v-l*m)-o*(n*v-i*m)+p*(n*l-i*s)),t[15]=r*(s*f-l*h)-o*(n*f-i*h)+c*(n*l-i*s),t},i.SIMD.adjoint=function(t,e){var r,n,i,a,o,s,l,u,c,h,f,d,p,r=SIMD.Float32x4.load(e,0),n=SIMD.Float32x4.load(e,4),i=SIMD.Float32x4.load(e,8),a=SIMD.Float32x4.load(e,12)\n", ";return c=SIMD.Float32x4.shuffle(r,n,0,1,4,5),s=SIMD.Float32x4.shuffle(i,a,0,1,4,5),o=SIMD.Float32x4.shuffle(c,s,0,2,4,6),s=SIMD.Float32x4.shuffle(s,c,1,3,5,7),c=SIMD.Float32x4.shuffle(r,n,2,3,6,7),u=SIMD.Float32x4.shuffle(i,a,2,3,6,7),l=SIMD.Float32x4.shuffle(c,u,0,2,4,6),u=SIMD.Float32x4.shuffle(u,c,1,3,5,7),c=SIMD.Float32x4.mul(l,u),c=SIMD.Float32x4.swizzle(c,1,0,3,2),h=SIMD.Float32x4.mul(s,c),f=SIMD.Float32x4.mul(o,c),c=SIMD.Float32x4.swizzle(c,2,3,0,1),h=SIMD.Float32x4.sub(SIMD.Float32x4.mul(s,c),h),f=SIMD.Float32x4.sub(SIMD.Float32x4.mul(o,c),f),f=SIMD.Float32x4.swizzle(f,2,3,0,1),c=SIMD.Float32x4.mul(s,l),c=SIMD.Float32x4.swizzle(c,1,0,3,2),h=SIMD.Float32x4.add(SIMD.Float32x4.mul(u,c),h),p=SIMD.Float32x4.mul(o,c),c=SIMD.Float32x4.swizzle(c,2,3,0,1),h=SIMD.Float32x4.sub(h,SIMD.Float32x4.mul(u,c)),p=SIMD.Float32x4.sub(SIMD.Float32x4.mul(o,c),p),p=SIMD.Float32x4.swizzle(p,2,3,0,1),c=SIMD.Float32x4.mul(SIMD.Float32x4.swizzle(s,2,3,0,1),u),c=SIMD.Float32x4.swizzle(c,1,0,3,2),l=SIMD.Float32x4.swizzle(l,2,3,0,1),h=SIMD.Float32x4.add(SIMD.Float32x4.mul(l,c),h),d=SIMD.Float32x4.mul(o,c),c=SIMD.Float32x4.swizzle(c,2,3,0,1),h=SIMD.Float32x4.sub(h,SIMD.Float32x4.mul(l,c)),d=SIMD.Float32x4.sub(SIMD.Float32x4.mul(o,c),d),d=SIMD.Float32x4.swizzle(d,2,3,0,1),c=SIMD.Float32x4.mul(o,s),c=SIMD.Float32x4.swizzle(c,1,0,3,2),d=SIMD.Float32x4.add(SIMD.Float32x4.mul(u,c),d),p=SIMD.Float32x4.sub(SIMD.Float32x4.mul(l,c),p),c=SIMD.Float32x4.swizzle(c,2,3,0,1),d=SIMD.Float32x4.sub(SIMD.Float32x4.mul(u,c),d),p=SIMD.Float32x4.sub(p,SIMD.Float32x4.mul(l,c)),c=SIMD.Float32x4.mul(o,u),c=SIMD.Float32x4.swizzle(c,1,0,3,2),f=SIMD.Float32x4.sub(f,SIMD.Float32x4.mul(l,c)),d=SIMD.Float32x4.add(SIMD.Float32x4.mul(s,c),d),c=SIMD.Float32x4.swizzle(c,2,3,0,1),f=SIMD.Float32x4.add(SIMD.Float32x4.mul(l,c),f),d=SIMD.Float32x4.sub(d,SIMD.Float32x4.mul(s,c)),c=SIMD.Float32x4.mul(o,l),c=SIMD.Float32x4.swizzle(c,1,0,3,2),f=SIMD.Float32x4.add(SIMD.Float32x4.mul(u,c),f),p=SIMD.Float32x4.sub(p,SIMD.Float32x4.mul(s,c)),c=SIMD.Float32x4.swizzle(c,2,3,0,1),f=SIMD.Float32x4.sub(f,SIMD.Float32x4.mul(u,c)),p=SIMD.Float32x4.add(SIMD.Float32x4.mul(s,c),p),SIMD.Float32x4.store(t,0,h),SIMD.Float32x4.store(t,4,f),SIMD.Float32x4.store(t,8,d),SIMD.Float32x4.store(t,12,p),t},i.adjoint=n.USE_SIMD?i.SIMD.adjoint:i.scalar.adjoint,i.determinant=function(t){var e=t[0],r=t[1],n=t[2],i=t[3],a=t[4],o=t[5],s=t[6],l=t[7],u=t[8],c=t[9],h=t[10],f=t[11],d=t[12],p=t[13],m=t[14],v=t[15];return(e*o-r*a)*(h*v-f*m)-(e*s-n*a)*(c*v-f*p)+(e*l-i*a)*(c*m-h*p)+(r*s-n*o)*(u*v-f*d)-(r*l-i*o)*(u*m-h*d)+(n*l-i*s)*(u*p-c*d)},i.SIMD.multiply=function(t,e,r){var n=SIMD.Float32x4.load(e,0),i=SIMD.Float32x4.load(e,4),a=SIMD.Float32x4.load(e,8),o=SIMD.Float32x4.load(e,12),s=SIMD.Float32x4.load(r,0),l=SIMD.Float32x4.add(SIMD.Float32x4.mul(SIMD.Float32x4.swizzle(s,0,0,0,0),n),SIMD.Float32x4.add(SIMD.Float32x4.mul(SIMD.Float32x4.swizzle(s,1,1,1,1),i),SIMD.Float32x4.add(SIMD.Float32x4.mul(SIMD.Float32x4.swizzle(s,2,2,2,2),a),SIMD.Float32x4.mul(SIMD.Float32x4.swizzle(s,3,3,3,3),o))));SIMD.Float32x4.store(t,0,l);var u=SIMD.Float32x4.load(r,4),c=SIMD.Float32x4.add(SIMD.Float32x4.mul(SIMD.Float32x4.swizzle(u,0,0,0,0),n),SIMD.Float32x4.add(SIMD.Float32x4.mul(SIMD.Float32x4.swizzle(u,1,1,1,1),i),SIMD.Float32x4.add(SIMD.Float32x4.mul(SIMD.Float32x4.swizzle(u,2,2,2,2),a),SIMD.Float32x4.mul(SIMD.Float32x4.swizzle(u,3,3,3,3),o))));SIMD.Float32x4.store(t,4,c);var h=SIMD.Float32x4.load(r,8),f=SIMD.Float32x4.add(SIMD.Float32x4.mul(SIMD.Float32x4.swizzle(h,0,0,0,0),n),SIMD.Float32x4.add(SIMD.Float32x4.mul(SIMD.Float32x4.swizzle(h,1,1,1,1),i),SIMD.Float32x4.add(SIMD.Float32x4.mul(SIMD.Float32x4.swizzle(h,2,2,2,2),a),SIMD.Float32x4.mul(SIMD.Float32x4.swizzle(h,3,3,3,3),o))));SIMD.Float32x4.store(t,8,f);var d=SIMD.Float32x4.load(r,12),p=SIMD.Float32x4.add(SIMD.Float32x4.mul(SIMD.Float32x4.swizzle(d,0,0,0,0),n),SIMD.Float32x4.add(SIMD.Float32x4.mul(SIMD.Float32x4.swizzle(d,1,1,1,1),i),SIMD.Float32x4.add(SIMD.Float32x4.mul(SIMD.Float32x4.swizzle(d,2,2,2,2),a),SIMD.Float32x4.mul(SIMD.Float32x4.swizzle(d,3,3,3,3),o))));return SIMD.Float32x4.store(t,12,p),t},i.scalar.multiply=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],u=e[6],c=e[7],h=e[8],f=e[9],d=e[10],p=e[11],m=e[12],v=e[13],g=e[14],y=e[15],b=r[0],x=r[1],_=r[2],w=r[3];return t[0]=b*n+x*s+_*h+w*m,t[1]=b*i+x*l+_*f+w*v,t[2]=b*a+x*u+_*d+w*g,t[3]=b*o+x*c+_*p+w*y,b=r[4],x=r[5],_=r[6],w=r[7],t[4]=b*n+x*s+_*h+w*m,t[5]=b*i+x*l+_*f+w*v,t[6]=b*a+x*u+_*d+w*g,t[7]=b*o+x*c+_*p+w*y,b=r[8],x=r[9],_=r[10],w=r[11],t[8]=b*n+x*s+_*h+w*m,t[9]=b*i+x*l+_*f+w*v,t[10]=b*a+x*u+_*d+w*g,t[11]=b*o+x*c+_*p+w*y,b=r[12],x=r[13],_=r[14],w=r[15],t[12]=b*n+x*s+_*h+w*m,t[13]=b*i+x*l+_*f+w*v,t[14]=b*a+x*u+_*d+w*g,t[15]=b*o+x*c+_*p+w*y,t},i.multiply=n.USE_SIMD?i.SIMD.multiply:i.scalar.multiply,i.mul=i.multiply,i.scalar.translate=function(t,e,r){var n,i,a,o,s,l,u,c,h,f,d,p,m=r[0],v=r[1],g=r[2];return e===t?(t[12]=e[0]*m+e[4]*v+e[8]*g+e[12],t[13]=e[1]*m+e[5]*v+e[9]*g+e[13],t[14]=e[2]*m+e[6]*v+e[10]*g+e[14],t[15]=e[3]*m+e[7]*v+e[11]*g+e[15]):(n=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],u=e[6],c=e[7],h=e[8],f=e[9],d=e[10],p=e[11],t[0]=n,t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t[6]=u,t[7]=c,t[8]=h,t[9]=f,t[10]=d,t[11]=p,t[12]=n*m+s*v+h*g+e[12],t[13]=i*m+l*v+f*g+e[13],t[14]=a*m+u*v+d*g+e[14],t[15]=o*m+c*v+p*g+e[15]),t},i.SIMD.translate=function(t,e,r){var n=SIMD.Float32x4.load(e,0),i=SIMD.Float32x4.load(e,4),a=SIMD.Float32x4.load(e,8),o=SIMD.Float32x4.load(e,12),s=SIMD.Float32x4(r[0],r[1],r[2],0);e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11]),n=SIMD.Float32x4.mul(n,SIMD.Float32x4.swizzle(s,0,0,0,0)),i=SIMD.Float32x4.mul(i,SIMD.Float32x4.swizzle(s,1,1,1,1)),a=SIMD.Float32x4.mul(a,SIMD.Float32x4.swizzle(s,2,2,2,2));var l=SIMD.Float32x4.add(n,SIMD.Float32x4.add(i,SIMD.Float32x4.add(a,o)));return SIMD.Float32x4.store(t,12,l),t},i.translate=n.USE_SIMD?i.SIMD.translate:i.scalar.translate,i.scalar.scale=function(t,e,r){var n=r[0],i=r[1],a=r[2];return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*i,t[5]=e[5]*i,t[6]=e[6]*i,t[7]=e[7]*i,t[8]=e[8]*a,t[9]=e[9]*a,t[10]=e[10]*a,t[11]=e[11]*a,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},i.SIMD.scale=function(t,e,r){var n,i,a,o=SIMD.Float32x4(r[0],r[1],r[2],0);return n=SIMD.Float32x4.load(e,0),SIMD.Float32x4.store(t,0,SIMD.Float32x4.mul(n,SIMD.Float32x4.swizzle(o,0,0,0,0))),i=SIMD.Float32x4.load(e,4),SIMD.Float32x4.store(t,4,SIMD.Float32x4.mul(i,SIMD.Float32x4.swizzle(o,1,1,1,1))),a=SIMD.Float32x4.load(e,8),SIMD.Float32x4.store(t,8,SIMD.Float32x4.mul(a,SIMD.Float32x4.swizzle(o,2,2,2,2))),t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},i.scale=n.USE_SIMD?i.SIMD.scale:i.scalar.scale,i.rotate=function(t,e,r,i){var a,o,s,l,u,c,h,f,d,p,m,v,g,y,b,x,_,w,M,k,A,T,S,E,L=i[0],C=i[1],I=i[2],z=Math.sqrt(L*L+C*C+I*I);return Math.abs(z)<n.EPSILON?null:(z=1/z,L*=z,C*=z,I*=z,a=Math.sin(r),o=Math.cos(r),s=1-o,l=e[0],u=e[1],c=e[2],h=e[3],f=e[4],d=e[5],p=e[6],m=e[7],v=e[8],g=e[9],y=e[10],b=e[11],x=L*L*s+o,_=C*L*s+I*a,w=I*L*s-C*a,M=L*C*s-I*a,k=C*C*s+o,A=I*C*s+L*a,T=L*I*s+C*a,S=C*I*s-L*a,E=I*I*s+o,t[0]=l*x+f*_+v*w,t[1]=u*x+d*_+g*w,t[2]=c*x+p*_+y*w,t[3]=h*x+m*_+b*w,t[4]=l*M+f*k+v*A,t[5]=u*M+d*k+g*A,t[6]=c*M+p*k+y*A,t[7]=h*M+m*k+b*A,t[8]=l*T+f*S+v*E,t[9]=u*T+d*S+g*E,t[10]=c*T+p*S+y*E,t[11]=h*T+m*S+b*E,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t)},i.scalar.rotateX=function(t,e,r){var n=Math.sin(r),i=Math.cos(r),a=e[4],o=e[5],s=e[6],l=e[7],u=e[8],c=e[9],h=e[10],f=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=a*i+u*n,t[5]=o*i+c*n,t[6]=s*i+h*n,t[7]=l*i+f*n,t[8]=u*i-a*n,t[9]=c*i-o*n,t[10]=h*i-s*n,t[11]=f*i-l*n,t},i.SIMD.rotateX=function(t,e,r){var n=SIMD.Float32x4.splat(Math.sin(r)),i=SIMD.Float32x4.splat(Math.cos(r));e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]);var a=SIMD.Float32x4.load(e,4),o=SIMD.Float32x4.load(e,8);return SIMD.Float32x4.store(t,4,SIMD.Float32x4.add(SIMD.Float32x4.mul(a,i),SIMD.Float32x4.mul(o,n))),SIMD.Float32x4.store(t,8,SIMD.Float32x4.sub(SIMD.Float32x4.mul(o,i),SIMD.Float32x4.mul(a,n))),t},i.rotateX=n.USE_SIMD?i.SIMD.rotateX:i.scalar.rotateX,i.scalar.rotateY=function(t,e,r){var n=Math.sin(r),i=Math.cos(r),a=e[0],o=e[1],s=e[2],l=e[3],u=e[8],c=e[9],h=e[10],f=e[11];return e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=a*i-u*n,t[1]=o*i-c*n,t[2]=s*i-h*n,t[3]=l*i-f*n,t[8]=a*n+u*i,t[9]=o*n+c*i,t[10]=s*n+h*i,t[11]=l*n+f*i,t},i.SIMD.rotateY=function(t,e,r){var n=SIMD.Float32x4.splat(Math.sin(r)),i=SIMD.Float32x4.splat(Math.cos(r));e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]);var a=SIMD.Float32x4.load(e,0),o=SIMD.Float32x4.load(e,8);return SIMD.Float32x4.store(t,0,SIMD.Float32x4.sub(SIMD.Float32x4.mul(a,i),SIMD.Float32x4.mul(o,n))),SIMD.Float32x4.store(t,8,SIMD.Float32x4.add(SIMD.Float32x4.mul(a,n),SIMD.Float32x4.mul(o,i))),t},i.rotateY=n.USE_SIMD?i.SIMD.rotateY:i.scalar.rotateY,i.scalar.rotateZ=function(t,e,r){var n=Math.sin(r),i=Math.cos(r),a=e[0],o=e[1],s=e[2],l=e[3],u=e[4],c=e[5],h=e[6],f=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=a*i+u*n,t[1]=o*i+c*n,t[2]=s*i+h*n,t[3]=l*i+f*n,t[4]=u*i-a*n,t[5]=c*i-o*n,t[6]=h*i-s*n,t[7]=f*i-l*n,t},i.SIMD.rotateZ=function(t,e,r){var n=SIMD.Float32x4.splat(Math.sin(r)),i=SIMD.Float32x4.splat(Math.cos(r));e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]);var a=SIMD.Float32x4.load(e,0),o=SIMD.Float32x4.load(e,4);return SIMD.Float32x4.store(t,0,SIMD.Float32x4.add(SIMD.Float32x4.mul(a,i),SIMD.Float32x4.mul(o,n))),SIMD.Float32x4.store(t,4,SIMD.Float32x4.sub(SIMD.Float32x4.mul(o,i),SIMD.Float32x4.mul(a,n))),t},i.rotateZ=n.USE_SIMD?i.SIMD.rotateZ:i.scalar.rotateZ,i.fromTranslation=function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t},i.fromScaling=function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},i.fromRotation=function(t,e,r){var i,a,o,s=r[0],l=r[1],u=r[2],c=Math.sqrt(s*s+l*l+u*u);return Math.abs(c)<n.EPSILON?null:(c=1/c,s*=c,l*=c,u*=c,i=Math.sin(e),a=Math.cos(e),o=1-a,t[0]=s*s*o+a,t[1]=l*s*o+u*i,t[2]=u*s*o-l*i,t[3]=0,t[4]=s*l*o-u*i,t[5]=l*l*o+a,t[6]=u*l*o+s*i,t[7]=0,t[8]=s*u*o+l*i,t[9]=l*u*o-s*i,t[10]=u*u*o+a,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t)},i.fromXRotation=function(t,e){var r=Math.sin(e),n=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=n,t[6]=r,t[7]=0,t[8]=0,t[9]=-r,t[10]=n,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},i.fromYRotation=function(t,e){var r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=0,t[2]=-r,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=r,t[9]=0,t[10]=n,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},i.fromZRotation=function(t,e){var r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=r,t[2]=0,t[3]=0,t[4]=-r,t[5]=n,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},i.fromRotationTranslation=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=n+n,l=i+i,u=a+a,c=n*s,h=n*l,f=n*u,d=i*l,p=i*u,m=a*u,v=o*s,g=o*l,y=o*u;return t[0]=1-(d+m),t[1]=h+y,t[2]=f-g,t[3]=0,t[4]=h-y,t[5]=1-(c+m),t[6]=p+v,t[7]=0,t[8]=f+g,t[9]=p-v,t[10]=1-(c+d),t[11]=0,t[12]=r[0],t[13]=r[1],t[14]=r[2],t[15]=1,t},i.getTranslation=function(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t},i.getRotation=function(t,e){var r=e[0]+e[5]+e[10],n=0;return r>0?(n=2*Math.sqrt(r+1),t[3]=.25*n,t[0]=(e[6]-e[9])/n,t[1]=(e[8]-e[2])/n,t[2]=(e[1]-e[4])/n):e[0]>e[5]&e[0]>e[10]?(n=2*Math.sqrt(1+e[0]-e[5]-e[10]),t[3]=(e[6]-e[9])/n,t[0]=.25*n,t[1]=(e[1]+e[4])/n,t[2]=(e[8]+e[2])/n):e[5]>e[10]?(n=2*Math.sqrt(1+e[5]-e[0]-e[10]),t[3]=(e[8]-e[2])/n,t[0]=(e[1]+e[4])/n,t[1]=.25*n,t[2]=(e[6]+e[9])/n):(n=2*Math.sqrt(1+e[10]-e[0]-e[5]),t[3]=(e[1]-e[4])/n,t[0]=(e[8]+e[2])/n,t[1]=(e[6]+e[9])/n,t[2]=.25*n),t},i.fromRotationTranslationScale=function(t,e,r,n){var i=e[0],a=e[1],o=e[2],s=e[3],l=i+i,u=a+a,c=o+o,h=i*l,f=i*u,d=i*c,p=a*u,m=a*c,v=o*c,g=s*l,y=s*u,b=s*c,x=n[0],_=n[1],w=n[2];return t[0]=(1-(p+v))*x,t[1]=(f+b)*x,t[2]=(d-y)*x,t[3]=0,t[4]=(f-b)*_,t[5]=(1-(h+v))*_,t[6]=(m+g)*_,t[7]=0,t[8]=(d+y)*w,t[9]=(m-g)*w,t[10]=(1-(h+p))*w,t[11]=0,t[12]=r[0],t[13]=r[1],t[14]=r[2],t[15]=1,t},i.fromRotationTranslationScaleOrigin=function(t,e,r,n,i){var a=e[0],o=e[1],s=e[2],l=e[3],u=a+a,c=o+o,h=s+s,f=a*u,d=a*c,p=a*h,m=o*c,v=o*h,g=s*h,y=l*u,b=l*c,x=l*h,_=n[0],w=n[1],M=n[2],k=i[0],A=i[1],T=i[2];return t[0]=(1-(m+g))*_,t[1]=(d+x)*_,t[2]=(p-b)*_,t[3]=0,t[4]=(d-x)*w,t[5]=(1-(f+g))*w,t[6]=(v+y)*w,t[7]=0,t[8]=(p+b)*M,t[9]=(v-y)*M,t[10]=(1-(f+m))*M,t[11]=0,t[12]=r[0]+k-(t[0]*k+t[4]*A+t[8]*T),t[13]=r[1]+A-(t[1]*k+t[5]*A+t[9]*T),t[14]=r[2]+T-(t[2]*k+t[6]*A+t[10]*T),t[15]=1,t},i.fromQuat=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=r+r,s=n+n,l=i+i,u=r*o,c=n*o,h=n*s,f=i*o,d=i*s,p=i*l,m=a*o,v=a*s,g=a*l;return t[0]=1-h-p,t[1]=c+g,t[2]=f-v,t[3]=0,t[4]=c-g,t[5]=1-u-p,t[6]=d+m,t[7]=0,t[8]=f+v,t[9]=d-m,t[10]=1-u-h,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},i.frustum=function(t,e,r,n,i,a,o){var s=1/(r-e),l=1/(i-n),u=1/(a-o);return t[0]=2*a*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*a*l,t[6]=0,t[7]=0,t[8]=(r+e)*s,t[9]=(i+n)*l,t[10]=(o+a)*u,t[11]=-1,t[12]=0,t[13]=0,t[14]=o*a*2*u,t[15]=0,t},i.perspective=function(t,e,r,n,i){var a=1/Math.tan(e/2),o=1/(n-i);return t[0]=a/r,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=(i+n)*o,t[11]=-1,t[12]=0,t[13]=0,t[14]=2*i*n*o,t[15]=0,t},i.perspectiveFromFieldOfView=function(t,e,r,n){var i=Math.tan(e.upDegrees*Math.PI/180),a=Math.tan(e.downDegrees*Math.PI/180),o=Math.tan(e.leftDegrees*Math.PI/180),s=Math.tan(e.rightDegrees*Math.PI/180),l=2/(o+s),u=2/(i+a);return t[0]=l,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=u,t[6]=0,t[7]=0,t[8]=-(o-s)*l*.5,t[9]=(i-a)*u*.5,t[10]=n/(r-n),t[11]=-1,t[12]=0,t[13]=0,t[14]=n*r/(r-n),t[15]=0,t},i.ortho=function(t,e,r,n,i,a,o){var s=1/(e-r),l=1/(n-i),u=1/(a-o);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*u,t[11]=0,t[12]=(e+r)*s,t[13]=(i+n)*l,t[14]=(o+a)*u,t[15]=1,t},i.lookAt=function(t,e,r,a){var o,s,l,u,c,h,f,d,p,m,v=e[0],g=e[1],y=e[2],b=a[0],x=a[1],_=a[2],w=r[0],M=r[1],k=r[2];return Math.abs(v-w)<n.EPSILON&&Math.abs(g-M)<n.EPSILON&&Math.abs(y-k)<n.EPSILON?i.identity(t):(f=v-w,d=g-M,p=y-k,m=1/Math.sqrt(f*f+d*d+p*p),f*=m,d*=m,p*=m,o=x*p-_*d,s=_*f-b*p,l=b*d-x*f,m=Math.sqrt(o*o+s*s+l*l),m?(m=1/m,o*=m,s*=m,l*=m):(o=0,s=0,l=0),u=d*l-p*s,c=p*o-f*l,h=f*s-d*o,m=Math.sqrt(u*u+c*c+h*h),m?(m=1/m,u*=m,c*=m,h*=m):(u=0,c=0,h=0),t[0]=o,t[1]=u,t[2]=f,t[3]=0,t[4]=s,t[5]=c,t[6]=d,t[7]=0,t[8]=l,t[9]=h,t[10]=p,t[11]=0,t[12]=-(o*v+s*g+l*y),t[13]=-(u*v+c*g+h*y),t[14]=-(f*v+d*g+p*y),t[15]=1,t)},i.str=function(t){return\"mat4(\"+t[0]+\", \"+t[1]+\", \"+t[2]+\", \"+t[3]+\", \"+t[4]+\", \"+t[5]+\", \"+t[6]+\", \"+t[7]+\", \"+t[8]+\", \"+t[9]+\", \"+t[10]+\", \"+t[11]+\", \"+t[12]+\", \"+t[13]+\", \"+t[14]+\", \"+t[15]+\")\"},i.frob=function(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2)+Math.pow(t[2],2)+Math.pow(t[3],2)+Math.pow(t[4],2)+Math.pow(t[5],2)+Math.pow(t[6],2)+Math.pow(t[7],2)+Math.pow(t[8],2)+Math.pow(t[9],2)+Math.pow(t[10],2)+Math.pow(t[11],2)+Math.pow(t[12],2)+Math.pow(t[13],2)+Math.pow(t[14],2)+Math.pow(t[15],2))},i.add=function(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t[3]=e[3]+r[3],t[4]=e[4]+r[4],t[5]=e[5]+r[5],t[6]=e[6]+r[6],t[7]=e[7]+r[7],t[8]=e[8]+r[8],t[9]=e[9]+r[9],t[10]=e[10]+r[10],t[11]=e[11]+r[11],t[12]=e[12]+r[12],t[13]=e[13]+r[13],t[14]=e[14]+r[14],t[15]=e[15]+r[15],t},i.subtract=function(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t[3]=e[3]-r[3],t[4]=e[4]-r[4],t[5]=e[5]-r[5],t[6]=e[6]-r[6],t[7]=e[7]-r[7],t[8]=e[8]-r[8],t[9]=e[9]-r[9],t[10]=e[10]-r[10],t[11]=e[11]-r[11],t[12]=e[12]-r[12],t[13]=e[13]-r[13],t[14]=e[14]-r[14],t[15]=e[15]-r[15],t},i.sub=i.subtract,i.multiplyScalar=function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*r,t[5]=e[5]*r,t[6]=e[6]*r,t[7]=e[7]*r,t[8]=e[8]*r,t[9]=e[9]*r,t[10]=e[10]*r,t[11]=e[11]*r,t[12]=e[12]*r,t[13]=e[13]*r,t[14]=e[14]*r,t[15]=e[15]*r,t},i.multiplyScalarAndAdd=function(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t[3]=e[3]+r[3]*n,t[4]=e[4]+r[4]*n,t[5]=e[5]+r[5]*n,t[6]=e[6]+r[6]*n,t[7]=e[7]+r[7]*n,t[8]=e[8]+r[8]*n,t[9]=e[9]+r[9]*n,t[10]=e[10]+r[10]*n,t[11]=e[11]+r[11]*n,t[12]=e[12]+r[12]*n,t[13]=e[13]+r[13]*n,t[14]=e[14]+r[14]*n,t[15]=e[15]+r[15]*n,t},i.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]&&t[9]===e[9]&&t[10]===e[10]&&t[11]===e[11]&&t[12]===e[12]&&t[13]===e[13]&&t[14]===e[14]&&t[15]===e[15]},i.equals=function(t,e){var r=t[0],i=t[1],a=t[2],o=t[3],s=t[4],l=t[5],u=t[6],c=t[7],h=t[8],f=t[9],d=t[10],p=t[11],m=t[12],v=t[13],g=t[14],y=t[15],b=e[0],x=e[1],_=e[2],w=e[3],M=e[4],k=e[5],A=e[6],T=e[7],S=e[8],E=e[9],L=e[10],C=e[11],I=e[12],z=e[13],D=e[14],P=e[15];return Math.abs(r-b)<=n.EPSILON*Math.max(1,Math.abs(r),Math.abs(b))&&Math.abs(i-x)<=n.EPSILON*Math.max(1,Math.abs(i),Math.abs(x))&&Math.abs(a-_)<=n.EPSILON*Math.max(1,Math.abs(a),Math.abs(_))&&Math.abs(o-w)<=n.EPSILON*Math.max(1,Math.abs(o),Math.abs(w))&&Math.abs(s-M)<=n.EPSILON*Math.max(1,Math.abs(s),Math.abs(M))&&Math.abs(l-k)<=n.EPSILON*Math.max(1,Math.abs(l),Math.abs(k))&&Math.abs(u-A)<=n.EPSILON*Math.max(1,Math.abs(u),Math.abs(A))&&Math.abs(c-T)<=n.EPSILON*Math.max(1,Math.abs(c),Math.abs(T))&&Math.abs(h-S)<=n.EPSILON*Math.max(1,Math.abs(h),Math.abs(S))&&Math.abs(f-E)<=n.EPSILON*Math.max(1,Math.abs(f),Math.abs(E))&&Math.abs(d-L)<=n.EPSILON*Math.max(1,Math.abs(d),Math.abs(L))&&Math.abs(p-C)<=n.EPSILON*Math.max(1,Math.abs(p),Math.abs(C))&&Math.abs(m-I)<=n.EPSILON*Math.max(1,Math.abs(m),Math.abs(I))&&Math.abs(v-z)<=n.EPSILON*Math.max(1,Math.abs(v),Math.abs(z))&&Math.abs(g-D)<=n.EPSILON*Math.max(1,Math.abs(g),Math.abs(D))&&Math.abs(y-P)<=n.EPSILON*Math.max(1,Math.abs(y),Math.abs(P))},e.exports=i},{\"./common.js\":194}],199:[function(t,e,r){var n=t(\"./common.js\"),i=t(\"./mat3.js\"),a=t(\"./vec3.js\"),o=t(\"./vec4.js\"),s={};s.create=function(){var t=new n.ARRAY_TYPE(4);return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t},s.rotationTo=function(){var t=a.create(),e=a.fromValues(1,0,0),r=a.fromValues(0,1,0);return function(n,i,o){var l=a.dot(i,o);return l<-.999999?(a.cross(t,e,i),a.length(t)<1e-6&&a.cross(t,r,i),a.normalize(t,t),s.setAxisAngle(n,t,Math.PI),n):l>.999999?(n[0]=0,n[1]=0,n[2]=0,n[3]=1,n):(a.cross(t,i,o),n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=1+l,s.normalize(n,n))}}(),s.setAxes=function(){var t=i.create();return function(e,r,n,i){return t[0]=n[0],t[3]=n[1],t[6]=n[2],t[1]=i[0],t[4]=i[1],t[7]=i[2],t[2]=-r[0],t[5]=-r[1],t[8]=-r[2],s.normalize(e,s.fromMat3(e,t))}}(),s.clone=o.clone,s.fromValues=o.fromValues,s.copy=o.copy,s.set=o.set,s.identity=function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t},s.setAxisAngle=function(t,e,r){r*=.5;var n=Math.sin(r);return t[0]=n*e[0],t[1]=n*e[1],t[2]=n*e[2],t[3]=Math.cos(r),t},s.getAxisAngle=function(t,e){var r=2*Math.acos(e[3]),n=Math.sin(r/2);return 0!=n?(t[0]=e[0]/n,t[1]=e[1]/n,t[2]=e[2]/n):(t[0]=1,t[1]=0,t[2]=0),r},s.add=o.add,s.multiply=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=r[0],l=r[1],u=r[2],c=r[3];return t[0]=n*c+o*s+i*u-a*l,t[1]=i*c+o*l+a*s-n*u,t[2]=a*c+o*u+n*l-i*s,t[3]=o*c-n*s-i*l-a*u,t},s.mul=s.multiply,s.scale=o.scale,s.rotateX=function(t,e,r){r*=.5;var n=e[0],i=e[1],a=e[2],o=e[3],s=Math.sin(r),l=Math.cos(r);return t[0]=n*l+o*s,t[1]=i*l+a*s,t[2]=a*l-i*s,t[3]=o*l-n*s,t},s.rotateY=function(t,e,r){r*=.5;var n=e[0],i=e[1],a=e[2],o=e[3],s=Math.sin(r),l=Math.cos(r);return t[0]=n*l-a*s,t[1]=i*l+o*s,t[2]=a*l+n*s,t[3]=o*l-i*s,t},s.rotateZ=function(t,e,r){r*=.5;var n=e[0],i=e[1],a=e[2],o=e[3],s=Math.sin(r),l=Math.cos(r);return t[0]=n*l+i*s,t[1]=i*l-n*s,t[2]=a*l+o*s,t[3]=o*l-a*s,t},s.calculateW=function(t,e){var r=e[0],n=e[1],i=e[2];return t[0]=r,t[1]=n,t[2]=i,t[3]=Math.sqrt(Math.abs(1-r*r-n*n-i*i)),t},s.dot=o.dot,s.lerp=o.lerp,s.slerp=function(t,e,r,n){var i,a,o,s,l,u=e[0],c=e[1],h=e[2],f=e[3],d=r[0],p=r[1],m=r[2],v=r[3];return a=u*d+c*p+h*m+f*v,a<0&&(a=-a,d=-d,p=-p,m=-m,v=-v),1-a>1e-6?(i=Math.acos(a),o=Math.sin(i),s=Math.sin((1-n)*i)/o,l=Math.sin(n*i)/o):(s=1-n,l=n),t[0]=s*u+l*d,t[1]=s*c+l*p,t[2]=s*h+l*m,t[3]=s*f+l*v,t},s.sqlerp=function(){var t=s.create(),e=s.create();return function(r,n,i,a,o,l){return s.slerp(t,n,o,l),s.slerp(e,i,a,l),s.slerp(r,t,e,2*l*(1-l)),r}}(),s.invert=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=r*r+n*n+i*i+a*a,s=o?1/o:0;return t[0]=-r*s,t[1]=-n*s,t[2]=-i*s,t[3]=a*s,t},s.conjugate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=e[3],t},s.length=o.length,s.len=s.length,s.squaredLength=o.squaredLength,s.sqrLen=s.squaredLength,s.normalize=o.normalize,s.fromMat3=function(t,e){var r,n=e[0]+e[4]+e[8];if(n>0)r=Math.sqrt(n+1),t[3]=.5*r,r=.5/r,t[0]=(e[5]-e[7])*r,t[1]=(e[6]-e[2])*r,t[2]=(e[1]-e[3])*r;else{var i=0;e[4]>e[0]&&(i=1),e[8]>e[3*i+i]&&(i=2);var a=(i+1)%3,o=(i+2)%3;r=Math.sqrt(e[3*i+i]-e[3*a+a]-e[3*o+o]+1),t[i]=.5*r,r=.5/r,t[3]=(e[3*a+o]-e[3*o+a])*r,t[a]=(e[3*a+i]+e[3*i+a])*r,t[o]=(e[3*o+i]+e[3*i+o])*r}return t},s.str=function(t){return\"quat(\"+t[0]+\", \"+t[1]+\", \"+t[2]+\", \"+t[3]+\")\"},s.exactEquals=o.exactEquals,s.equals=o.equals,e.exports=s},{\"./common.js\":194,\"./mat3.js\":197,\"./vec3.js\":201,\"./vec4.js\":202}],200:[function(t,e,r){var n=t(\"./common.js\"),i={};i.create=function(){var t=new n.ARRAY_TYPE(2);return t[0]=0,t[1]=0,t},i.clone=function(t){var e=new n.ARRAY_TYPE(2);return e[0]=t[0],e[1]=t[1],e},i.fromValues=function(t,e){var r=new n.ARRAY_TYPE(2);return r[0]=t,r[1]=e,r},i.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t},i.set=function(t,e,r){return t[0]=e,t[1]=r,t},i.add=function(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t},i.subtract=function(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t},i.sub=i.subtract,i.multiply=function(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t},i.mul=i.multiply,i.divide=function(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t},i.div=i.divide,i.ceil=function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t},i.floor=function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t},i.min=function(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t},i.max=function(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t},i.round=function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t},i.scale=function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t},i.scaleAndAdd=function(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t},i.distance=function(t,e){var r=e[0]-t[0],n=e[1]-t[1];return Math.sqrt(r*r+n*n)},i.dist=i.distance,i.squaredDistance=function(t,e){var r=e[0]-t[0],n=e[1]-t[1];return r*r+n*n},i.sqrDist=i.squaredDistance,i.length=function(t){var e=t[0],r=t[1];return Math.sqrt(e*e+r*r)},i.len=i.length,i.squaredLength=function(t){var e=t[0],r=t[1];return e*e+r*r},i.sqrLen=i.squaredLength,i.negate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t},i.inverse=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t},i.normalize=function(t,e){var r=e[0],n=e[1],i=r*r+n*n;return i>0&&(i=1/Math.sqrt(i),t[0]=e[0]*i,t[1]=e[1]*i),t},i.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]},i.cross=function(t,e,r){var n=e[0]*r[1]-e[1]*r[0];return t[0]=t[1]=0,t[2]=n,t},i.lerp=function(t,e,r,n){var i=e[0],a=e[1];return t[0]=i+n*(r[0]-i),t[1]=a+n*(r[1]-a),t},i.random=function(t,e){e=e||1;var r=2*n.RANDOM()*Math.PI;return t[0]=Math.cos(r)*e,t[1]=Math.sin(r)*e,t},i.transformMat2=function(t,e,r){var n=e[0],i=e[1];return t[0]=r[0]*n+r[2]*i,t[1]=r[1]*n+r[3]*i,t},i.transformMat2d=function(t,e,r){var n=e[0],i=e[1];return t[0]=r[0]*n+r[2]*i+r[4],t[1]=r[1]*n+r[3]*i+r[5],t},i.transformMat3=function(t,e,r){var n=e[0],i=e[1];return t[0]=r[0]*n+r[3]*i+r[6],t[1]=r[1]*n+r[4]*i+r[7],t},i.transformMat4=function(t,e,r){var n=e[0],i=e[1];return t[0]=r[0]*n+r[4]*i+r[12],t[1]=r[1]*n+r[5]*i+r[13],t},i.forEach=function(){var t=i.create();return function(e,r,n,i,a,o){var s,l;for(r||(r=2),n||(n=0),l=i?Math.min(i*r+n,e.length):e.length,s=n;s<l;s+=r)t[0]=e[s],t[1]=e[s+1],a(t,t,o),e[s]=t[0],e[s+1]=t[1];return e}}(),i.str=function(t){return\"vec2(\"+t[0]+\", \"+t[1]+\")\"},i.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]},i.equals=function(t,e){var r=t[0],i=t[1],a=e[0],o=e[1];return Math.abs(r-a)<=n.EPSILON*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(i-o)<=n.EPSILON*Math.max(1,Math.abs(i),Math.abs(o))},e.exports=i},{\"./common.js\":194}],201:[function(t,e,r){var n=t(\"./common.js\"),i={};i.create=function(){var t=new n.ARRAY_TYPE(3);return t[0]=0,t[1]=0,t[2]=0,t},i.clone=function(t){var e=new n.ARRAY_TYPE(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},i.fromValues=function(t,e,r){var i=new n.ARRAY_TYPE(3);return i[0]=t,i[1]=e,i[2]=r,i},i.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t},i.set=function(t,e,r,n){return t[0]=e,t[1]=r,t[2]=n,t},i.add=function(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t},i.subtract=function(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t},i.sub=i.subtract,i.multiply=function(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t[2]=e[2]*r[2],t},i.mul=i.multiply,i.divide=function(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t[2]=e[2]/r[2],t},i.div=i.divide,i.ceil=function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},i.floor=function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},i.min=function(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t[2]=Math.min(e[2],r[2]),t},i.max=function(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t[2]=Math.max(e[2],r[2]),t},i.round=function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},i.scale=function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t},i.scaleAndAdd=function(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t},i.distance=function(t,e){var r=e[0]-t[0],n=e[1]-t[1],i=e[2]-t[2];return Math.sqrt(r*r+n*n+i*i)},i.dist=i.distance,i.squaredDistance=function(t,e){var r=e[0]-t[0],n=e[1]-t[1],i=e[2]-t[2];return r*r+n*n+i*i},i.sqrDist=i.squaredDistance,i.length=function(t){var e=t[0],r=t[1],n=t[2];return Math.sqrt(e*e+r*r+n*n)},i.len=i.length,i.squaredLength=function(t){var e=t[0],r=t[1],n=t[2];return e*e+r*r+n*n},i.sqrLen=i.squaredLength,i.negate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t},i.inverse=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t},i.normalize=function(t,e){var r=e[0],n=e[1],i=e[2],a=r*r+n*n+i*i;return a>0&&(a=1/Math.sqrt(a),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a),t},i.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]},i.cross=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=r[0],s=r[1],l=r[2];return t[0]=i*l-a*s,t[1]=a*o-n*l,t[2]=n*s-i*o,t},i.lerp=function(t,e,r,n){var i=e[0],a=e[1],o=e[2];return t[0]=i+n*(r[0]-i),t[1]=a+n*(r[1]-a),t[2]=o+n*(r[2]-o),t},i.hermite=function(t,e,r,n,i,a){var o=a*a,s=o*(2*a-3)+1,l=o*(a-2)+a,u=o*(a-1),c=o*(3-2*a);return t[0]=e[0]*s+r[0]*l+n[0]*u+i[0]*c,t[1]=e[1]*s+r[1]*l+n[1]*u+i[1]*c,t[2]=e[2]*s+r[2]*l+n[2]*u+i[2]*c,t},i.bezier=function(t,e,r,n,i,a){var o=1-a,s=o*o,l=a*a,u=s*o,c=3*a*s,h=3*l*o,f=l*a;return t[0]=e[0]*u+r[0]*c+n[0]*h+i[0]*f,t[1]=e[1]*u+r[1]*c+n[1]*h+i[1]*f,t[2]=e[2]*u+r[2]*c+n[2]*h+i[2]*f,t},i.random=function(t,e){e=e||1;var r=2*n.RANDOM()*Math.PI,i=2*n.RANDOM()-1,a=Math.sqrt(1-i*i)*e;return t[0]=Math.cos(r)*a,t[1]=Math.sin(r)*a,t[2]=i*e,t},i.transformMat4=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=r[3]*n+r[7]*i+r[11]*a+r[15];return o=o||1,t[0]=(r[0]*n+r[4]*i+r[8]*a+r[12])/o,t[1]=(r[1]*n+r[5]*i+r[9]*a+r[13])/o,t[2]=(r[2]*n+r[6]*i+r[10]*a+r[14])/o,t},i.transformMat3=function(t,e,r){var n=e[0],i=e[1],a=e[2];return t[0]=n*r[0]+i*r[3]+a*r[6],t[1]=n*r[1]+i*r[4]+a*r[7],t[2]=n*r[2]+i*r[5]+a*r[8],t},i.transformQuat=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=r[0],s=r[1],l=r[2],u=r[3],c=u*n+s*a-l*i,h=u*i+l*n-o*a,f=u*a+o*i-s*n,d=-o*n-s*i-l*a;return t[0]=c*u+d*-o+h*-l-f*-s,t[1]=h*u+d*-s+f*-o-c*-l,t[2]=f*u+d*-l+c*-s-h*-o,t},i.rotateX=function(t,e,r,n){var i=[],a=[];return i[0]=e[0]-r[0],i[1]=e[1]-r[1],i[2]=e[2]-r[2],a[0]=i[0],a[1]=i[1]*Math.cos(n)-i[2]*Math.sin(n),a[2]=i[1]*Math.sin(n)+i[2]*Math.cos(n),t[0]=a[0]+r[0],t[1]=a[1]+r[1],t[2]=a[2]+r[2],t},i.rotateY=function(t,e,r,n){var i=[],a=[];return i[0]=e[0]-r[0],i[1]=e[1]-r[1],i[2]=e[2]-r[2],a[0]=i[2]*Math.sin(n)+i[0]*Math.cos(n),a[1]=i[1],a[2]=i[2]*Math.cos(n)-i[0]*Math.sin(n),t[0]=a[0]+r[0],t[1]=a[1]+r[1],t[2]=a[2]+r[2],t},i.rotateZ=function(t,e,r,n){var i=[],a=[];return i[0]=e[0]-r[0],i[1]=e[1]-r[1],i[2]=e[2]-r[2],a[0]=i[0]*Math.cos(n)-i[1]*Math.sin(n),a[1]=i[0]*Math.sin(n)+i[1]*Math.cos(n),a[2]=i[2],t[0]=a[0]+r[0],t[1]=a[1]+r[1],t[2]=a[2]+r[2],t},i.forEach=function(){var t=i.create();return function(e,r,n,i,a,o){var s,l;for(r||(r=3),n||(n=0),l=i?Math.min(i*r+n,e.length):e.length,s=n;s<l;s+=r)t[0]=e[s],t[1]=e[s+1],t[2]=e[s+2],a(t,t,o),e[s]=t[0],e[s+1]=t[1],e[s+2]=t[2];return e}}(),i.angle=function(t,e){var r=i.fromValues(t[0],t[1],t[2]),n=i.fromValues(e[0],e[1],e[2]);i.normalize(r,r),i.normalize(n,n);var a=i.dot(r,n);return a>1?0:Math.acos(a)},i.str=function(t){return\"vec3(\"+t[0]+\", \"+t[1]+\", \"+t[2]+\")\"},i.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]},i.equals=function(t,e){var r=t[0],i=t[1],a=t[2],o=e[0],s=e[1],l=e[2];return Math.abs(r-o)<=n.EPSILON*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(i-s)<=n.EPSILON*Math.max(1,Math.abs(i),Math.abs(s))&&Math.abs(a-l)<=n.EPSILON*Math.max(1,Math.abs(a),Math.abs(l))},e.exports=i},{\"./common.js\":194}],202:[function(t,e,r){var n=t(\"./common.js\"),i={};i.create=function(){var t=new n.ARRAY_TYPE(4);return t[0]=0,t[1]=0,t[2]=0,t[3]=0,t},i.clone=function(t){var e=new n.ARRAY_TYPE(4);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e},i.fromValues=function(t,e,r,i){var a=new n.ARRAY_TYPE(4);return a[0]=t,a[1]=e,a[2]=r,a[3]=i,a},i.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t},i.set=function(t,e,r,n,i){return t[0]=e,t[1]=r,t[2]=n,t[3]=i,t},i.add=function(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t[3]=e[3]+r[3],t},i.subtract=function(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t[3]=e[3]-r[3],t},i.sub=i.subtract,i.multiply=function(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t[2]=e[2]*r[2],t[3]=e[3]*r[3],t},i.mul=i.multiply,i.divide=function(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t[2]=e[2]/r[2],t[3]=e[3]/r[3],t},i.div=i.divide,i.ceil=function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t[3]=Math.ceil(e[3]),t},i.floor=function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t[3]=Math.floor(e[3]),t},i.min=function(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t[2]=Math.min(e[2],r[2]),t[3]=Math.min(e[3],r[3]),t},i.max=function(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t[2]=Math.max(e[2],r[2]),t[3]=Math.max(e[3],r[3]),t},i.round=function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t[3]=Math.round(e[3]),t},i.scale=function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t},i.scaleAndAdd=function(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t[3]=e[3]+r[3]*n,t},i.distance=function(t,e){var r=e[0]-t[0],n=e[1]-t[1],i=e[2]-t[2],a=e[3]-t[3];return Math.sqrt(r*r+n*n+i*i+a*a)},i.dist=i.distance,i.squaredDistance=function(t,e){var r=e[0]-t[0],n=e[1]-t[1],i=e[2]-t[2],a=e[3]-t[3];return r*r+n*n+i*i+a*a},i.sqrDist=i.squaredDistance,i.length=function(t){var e=t[0],r=t[1],n=t[2],i=t[3];return Math.sqrt(e*e+r*r+n*n+i*i)},i.len=i.length,i.squaredLength=function(t){var e=t[0],r=t[1],n=t[2],i=t[3];return e*e+r*r+n*n+i*i},i.sqrLen=i.squaredLength,i.negate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t},i.inverse=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],\n", "t[3]=1/e[3],t},i.normalize=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=r*r+n*n+i*i+a*a;return o>0&&(o=1/Math.sqrt(o),t[0]=r*o,t[1]=n*o,t[2]=i*o,t[3]=a*o),t},i.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]},i.lerp=function(t,e,r,n){var i=e[0],a=e[1],o=e[2],s=e[3];return t[0]=i+n*(r[0]-i),t[1]=a+n*(r[1]-a),t[2]=o+n*(r[2]-o),t[3]=s+n*(r[3]-s),t},i.random=function(t,e){return e=e||1,t[0]=n.RANDOM(),t[1]=n.RANDOM(),t[2]=n.RANDOM(),t[3]=n.RANDOM(),i.normalize(t,t),i.scale(t,t,e),t},i.transformMat4=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3];return t[0]=r[0]*n+r[4]*i+r[8]*a+r[12]*o,t[1]=r[1]*n+r[5]*i+r[9]*a+r[13]*o,t[2]=r[2]*n+r[6]*i+r[10]*a+r[14]*o,t[3]=r[3]*n+r[7]*i+r[11]*a+r[15]*o,t},i.transformQuat=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=r[0],s=r[1],l=r[2],u=r[3],c=u*n+s*a-l*i,h=u*i+l*n-o*a,f=u*a+o*i-s*n,d=-o*n-s*i-l*a;return t[0]=c*u+d*-o+h*-l-f*-s,t[1]=h*u+d*-s+f*-o-c*-l,t[2]=f*u+d*-l+c*-s-h*-o,t[3]=e[3],t},i.forEach=function(){var t=i.create();return function(e,r,n,i,a,o){var s,l;for(r||(r=4),n||(n=0),l=i?Math.min(i*r+n,e.length):e.length,s=n;s<l;s+=r)t[0]=e[s],t[1]=e[s+1],t[2]=e[s+2],t[3]=e[s+3],a(t,t,o),e[s]=t[0],e[s+1]=t[1],e[s+2]=t[2],e[s+3]=t[3];return e}}(),i.str=function(t){return\"vec4(\"+t[0]+\", \"+t[1]+\", \"+t[2]+\", \"+t[3]+\")\"},i.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]},i.equals=function(t,e){var r=t[0],i=t[1],a=t[2],o=t[3],s=e[0],l=e[1],u=e[2],c=e[3];return Math.abs(r-s)<=n.EPSILON*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(i-l)<=n.EPSILON*Math.max(1,Math.abs(i),Math.abs(l))&&Math.abs(a-u)<=n.EPSILON*Math.max(1,Math.abs(a),Math.abs(u))&&Math.abs(o-c)<=n.EPSILON*Math.max(1,Math.abs(o),Math.abs(c))},e.exports=i},{\"./common.js\":194}],203:[function(t,e,r){\"use strict\";function n(t,e){for(var r=[0,0,0,0],n=0;n<4;++n)for(var i=0;i<4;++i)r[i]+=t[4*n+i]*e[n];return r}function i(t,e,r,i,a){for(var o=n(i,n(r,n(e,[t[0],t[1],t[2],1]))),s=0;s<3;++s)o[s]/=o[3];return[.5*a[0]*(1+o[0]),.5*a[1]*(1-o[1])]}function a(t,e){if(2===t.length){for(var r=0,n=0,i=0;i<2;++i)r+=Math.pow(e[i]-t[0][i],2),n+=Math.pow(e[i]-t[1][i],2);return r=Math.sqrt(r),n=Math.sqrt(n),r+n<1e-6?[1,0]:[n/(r+n),r/(n+r)]}if(3===t.length){var a=[0,0];return u(t[0],t[1],t[2],e,a),l(t,a)}return[]}function o(t,e){for(var r=[0,0,0],n=0;n<t.length;++n)for(var i=t[n],a=e[n],o=0;o<3;++o)r[o]+=a*i[o];return r}function s(t,e,r,n,s,l){if(1===t.length)return[0,t[0].slice()];for(var u=new Array(t.length),c=0;c<t.length;++c)u[c]=i(t[c],r,n,s,l);for(var h=0,f=1/0,c=0;c<u.length;++c){for(var d=0,p=0;p<2;++p)d+=Math.pow(u[c][p]-e[p],2);d<f&&(f=d,h=c)}for(var m=a(u,e),v=0,c=0;c<3;++c){if(m[c]<-.001||m[c]>1.0001)return null;v+=m[c]}return Math.abs(v-1)>.001?null:[h,o(t,m),m]}var l=t(\"barycentric\"),u=t(\"polytope-closest-point/lib/closest_point_2d.js\");e.exports=s},{barycentric:49,\"polytope-closest-point/lib/closest_point_2d.js\":486}],204:[function(t,e,r){var n=\"precision mediump float;\\n#define GLSLIFY 1\\n\\nuniform vec3 clipBounds[2];\\nuniform float pickId;\\n\\nvarying vec3 f_position;\\nvarying vec4 f_id;\\n\\nvoid main() {\\n if(any(lessThan(f_position, clipBounds[0])) || \\n any(greaterThan(f_position, clipBounds[1]))) {\\n discard;\\n }\\n gl_FragColor = vec4(pickId, f_id.xyz);\\n}\";r.meshShader={vertex:\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute vec3 position, normal;\\nattribute vec4 color;\\nattribute vec2 uv;\\n\\nuniform mat4 model\\n , view\\n , projection;\\nuniform vec3 eyePosition\\n , lightPosition;\\n\\nvarying vec3 f_normal\\n , f_lightDirection\\n , f_eyeDirection\\n , f_data;\\nvarying vec4 f_color;\\nvarying vec2 f_uv;\\n\\nvoid main() {\\n vec4 m_position = model * vec4(position, 1.0);\\n vec4 t_position = view * m_position;\\n gl_Position = projection * t_position;\\n f_color = color;\\n f_normal = normal;\\n f_data = position;\\n f_eyeDirection = eyePosition - position;\\n f_lightDirection = lightPosition - position;\\n f_uv = uv;\\n}\",fragment:\"precision mediump float;\\n#define GLSLIFY 1\\n\\nfloat beckmannDistribution_2_0(float x, float roughness) {\\n float NdotH = max(x, 0.0001);\\n float cos2Alpha = NdotH * NdotH;\\n float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\\n float roughness2 = roughness * roughness;\\n float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\\n return exp(tan2Alpha / roughness2) / denom;\\n}\\n\\n\\n\\nfloat cookTorranceSpecular_1_1(\\n vec3 lightDirection,\\n vec3 viewDirection,\\n vec3 surfaceNormal,\\n float roughness,\\n float fresnel) {\\n\\n float VdotN = max(dot(viewDirection, surfaceNormal), 0.0);\\n float LdotN = max(dot(lightDirection, surfaceNormal), 0.0);\\n\\n //Half angle vector\\n vec3 H = normalize(lightDirection + viewDirection);\\n\\n //Geometric term\\n float NdotH = max(dot(surfaceNormal, H), 0.0);\\n float VdotH = max(dot(viewDirection, H), 0.000001);\\n float LdotH = max(dot(lightDirection, H), 0.000001);\\n float G1 = (2.0 * NdotH * VdotN) / VdotH;\\n float G2 = (2.0 * NdotH * LdotN) / LdotH;\\n float G = min(1.0, min(G1, G2));\\n \\n //Distribution term\\n float D = beckmannDistribution_2_0(NdotH, roughness);\\n\\n //Fresnel term\\n float F = pow(1.0 - VdotN, fresnel);\\n\\n //Multiply terms and done\\n return G * F * D / max(3.14159265 * VdotN, 0.000001);\\n}\\n\\n\\n\\nuniform vec3 clipBounds[2];\\nuniform float roughness\\n , fresnel\\n , kambient\\n , kdiffuse\\n , kspecular\\n , opacity;\\nuniform sampler2D texture;\\n\\nvarying vec3 f_normal\\n , f_lightDirection\\n , f_eyeDirection\\n , f_data;\\nvarying vec4 f_color;\\nvarying vec2 f_uv;\\n\\nvoid main() {\\n if(any(lessThan(f_data, clipBounds[0])) || \\n any(greaterThan(f_data, clipBounds[1]))) {\\n discard;\\n }\\n\\n vec3 N = normalize(f_normal);\\n vec3 L = normalize(f_lightDirection);\\n vec3 V = normalize(f_eyeDirection);\\n \\n if(!gl_FrontFacing) {\\n N = -N;\\n }\\n\\n float specular = cookTorranceSpecular_1_1(L, V, N, roughness, fresnel);\\n float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\\n\\n vec4 surfaceColor = f_color * texture2D(texture, f_uv);\\n vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0);\\n\\n gl_FragColor = litColor * opacity;\\n}\",attributes:[{name:\"position\",type:\"vec3\"},{name:\"normal\",type:\"vec3\"},{name:\"color\",type:\"vec4\"},{name:\"uv\",type:\"vec2\"}]},r.wireShader={vertex:\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute vec3 position;\\nattribute vec4 color;\\nattribute vec2 uv;\\n\\nuniform mat4 model, view, projection;\\n\\nvarying vec4 f_color;\\nvarying vec3 f_data;\\nvarying vec2 f_uv;\\n\\nvoid main() {\\n gl_Position = projection * view * model * vec4(position, 1.0);\\n f_color = color;\\n f_data = position;\\n f_uv = uv;\\n}\",fragment:\"precision mediump float;\\n#define GLSLIFY 1\\n\\nuniform vec3 clipBounds[2];\\nuniform sampler2D texture;\\nuniform float opacity;\\n\\nvarying vec4 f_color;\\nvarying vec3 f_data;\\nvarying vec2 f_uv;\\n\\nvoid main() {\\n if(any(lessThan(f_data, clipBounds[0])) || \\n any(greaterThan(f_data, clipBounds[1]))) {\\n discard;\\n }\\n\\n gl_FragColor = f_color * texture2D(texture, f_uv) * opacity;\\n}\",attributes:[{name:\"position\",type:\"vec3\"},{name:\"color\",type:\"vec4\"},{name:\"uv\",type:\"vec2\"}]},r.pointShader={vertex:\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute vec3 position;\\nattribute vec4 color;\\nattribute vec2 uv;\\nattribute float pointSize;\\n\\nuniform mat4 model, view, projection;\\nuniform vec3 clipBounds[2];\\n\\nvarying vec4 f_color;\\nvarying vec2 f_uv;\\n\\nvoid main() {\\n if(any(lessThan(position, clipBounds[0])) || \\n any(greaterThan(position, clipBounds[1]))) {\\n gl_Position = vec4(0,0,0,0);\\n } else {\\n gl_Position = projection * view * model * vec4(position, 1.0);\\n }\\n gl_PointSize = pointSize;\\n f_color = color;\\n f_uv = uv;\\n}\",fragment:\"precision mediump float;\\n#define GLSLIFY 1\\n\\nuniform sampler2D texture;\\nuniform float opacity;\\n\\nvarying vec4 f_color;\\nvarying vec2 f_uv;\\n\\nvoid main() {\\n vec2 pointR = gl_PointCoord.xy - vec2(0.5,0.5);\\n if(dot(pointR, pointR) > 0.25) {\\n discard;\\n }\\n gl_FragColor = f_color * texture2D(texture, f_uv) * opacity;\\n}\",attributes:[{name:\"position\",type:\"vec3\"},{name:\"color\",type:\"vec4\"},{name:\"uv\",type:\"vec2\"},{name:\"pointSize\",type:\"float\"}]},r.pickShader={vertex:\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute vec3 position;\\nattribute vec4 id;\\n\\nuniform mat4 model, view, projection;\\n\\nvarying vec3 f_position;\\nvarying vec4 f_id;\\n\\nvoid main() {\\n gl_Position = projection * view * model * vec4(position, 1.0);\\n f_id = id;\\n f_position = position;\\n}\",fragment:n,attributes:[{name:\"position\",type:\"vec3\"},{name:\"id\",type:\"vec4\"}]},r.pointPickShader={vertex:\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute vec3 position;\\nattribute float pointSize;\\nattribute vec4 id;\\n\\nuniform mat4 model, view, projection;\\nuniform vec3 clipBounds[2];\\n\\nvarying vec3 f_position;\\nvarying vec4 f_id;\\n\\nvoid main() {\\n if(any(lessThan(position, clipBounds[0])) || \\n any(greaterThan(position, clipBounds[1]))) {\\n gl_Position = vec4(0,0,0,0);\\n } else {\\n gl_Position = projection * view * model * vec4(position, 1.0);\\n gl_PointSize = pointSize;\\n }\\n f_id = id;\\n f_position = position;\\n}\",fragment:n,attributes:[{name:\"position\",type:\"vec3\"},{name:\"pointSize\",type:\"float\"},{name:\"id\",type:\"vec4\"}]},r.contourShader={vertex:\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute vec3 position;\\n\\nuniform mat4 model, view, projection;\\n\\nvoid main() {\\n gl_Position = projection * view * model * vec4(position, 1.0);\\n}\",fragment:\"precision mediump float;\\n#define GLSLIFY 1\\n\\nuniform vec3 contourColor;\\n\\nvoid main() {\\n gl_FragColor = vec4(contourColor,1);\\n}\\n\",attributes:[{name:\"position\",type:\"vec3\"}]}},{}],205:[function(t,e,r){\"use strict\";function n(t,e,r,n,i,a,o,s,l,u,c,h,f,d,p,m,v,g,y,b,x,_,w,M,k,A,T){this.gl=t,this.cells=[],this.positions=[],this.intensity=[],this.texture=e,this.dirty=!0,this.triShader=r,this.lineShader=n,this.pointShader=i,this.pickShader=a,this.pointPickShader=o,this.contourShader=s,this.trianglePositions=l,this.triangleColors=c,this.triangleNormals=f,this.triangleUVs=h,this.triangleIds=u,this.triangleVAO=d,this.triangleCount=0,this.lineWidth=1,this.edgePositions=p,this.edgeColors=v,this.edgeUVs=g,this.edgeIds=m,this.edgeVAO=y,this.edgeCount=0,this.pointPositions=b,this.pointColors=_,this.pointUVs=w,this.pointSizes=M,this.pointIds=x,this.pointVAO=k,this.pointCount=0,this.contourLineWidth=1,this.contourPositions=A,this.contourVAO=T,this.contourCount=0,this.contourColor=[0,0,0],this.contourEnable=!0,this.pickId=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lightPosition=[1e5,1e5,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.opacity=1,this._model=D,this._view=D,this._projection=D,this._resolution=[1,1]}function i(t){for(var e=w({colormap:t,nshades:256,format:\"rgba\"}),r=new Uint8Array(1024),n=0;n<256;++n){for(var i=e[n],a=0;a<3;++a)r[4*n+a]=i[a];r[4*n+3]=255*i[3]}return _(r,[256,256,4],[4,0,1])}function a(t,e,r){for(var n=new Array(e),i=0;i<e;++i)n[i]=0;for(var a=t.length,i=0;i<a;++i)for(var o=t[i],s=0;s<o.length;++s)n[o[s]]=r[i];return n}function o(t){for(var e=t.length,r=new Array(e),n=0;n<e;++n)r[n]=t[n][2];return r}function s(t){var e=p(t,S.vertex,S.fragment);return e.attributes.position.location=0,e.attributes.color.location=2,e.attributes.uv.location=3,e.attributes.normal.location=4,e}function l(t){var e=p(t,E.vertex,E.fragment);return e.attributes.position.location=0,e.attributes.color.location=2,e.attributes.uv.location=3,e}function u(t){var e=p(t,L.vertex,L.fragment);return e.attributes.position.location=0,e.attributes.color.location=2,e.attributes.uv.location=3,e.attributes.pointSize.location=4,e}function c(t){var e=p(t,C.vertex,C.fragment);return e.attributes.position.location=0,e.attributes.id.location=1,e}function h(t){var e=p(t,I.vertex,I.fragment);return e.attributes.position.location=0,e.attributes.id.location=1,e.attributes.pointSize.location=4,e}function f(t){var e=p(t,z.vertex,z.fragment);return e.attributes.position.location=0,e}function d(t,e){1===arguments.length&&(e=t,t=e.gl);var r=s(t),i=l(t),a=u(t),o=c(t),d=h(t),p=f(t),y=g(t,_(new Uint8Array([255,255,255,255]),[1,1,4]));y.generateMipmap(),y.minFilter=t.LINEAR_MIPMAP_LINEAR,y.magFilter=t.LINEAR;var b=m(t),x=m(t),w=m(t),M=m(t),k=m(t),A=v(t,[{buffer:b,type:t.FLOAT,size:3},{buffer:k,type:t.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:x,type:t.FLOAT,size:4},{buffer:w,type:t.FLOAT,size:2},{buffer:M,type:t.FLOAT,size:3}]),T=m(t),S=m(t),E=m(t),L=m(t),C=v(t,[{buffer:T,type:t.FLOAT,size:3},{buffer:L,type:t.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:S,type:t.FLOAT,size:4},{buffer:E,type:t.FLOAT,size:2}]),I=m(t),z=m(t),D=m(t),P=m(t),O=m(t),R=v(t,[{buffer:I,type:t.FLOAT,size:3},{buffer:O,type:t.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:z,type:t.FLOAT,size:4},{buffer:D,type:t.FLOAT,size:2},{buffer:P,type:t.FLOAT,size:1}]),F=m(t),j=v(t,[{buffer:F,type:t.FLOAT,size:3}]),N=new n(t,y,r,i,a,o,d,p,b,k,x,w,M,A,T,L,S,E,C,I,O,z,D,P,R,F,j);return N.update(e),N}var p=t(\"gl-shader\"),m=t(\"gl-buffer\"),v=t(\"gl-vao\"),g=t(\"gl-texture2d\"),y=t(\"normals\"),b=t(\"gl-mat4/multiply\"),x=t(\"gl-mat4/invert\"),_=t(\"ndarray\"),w=t(\"colormap\"),M=t(\"simplicial-complex-contour\"),k=t(\"typedarray-pool\"),A=t(\"./lib/shaders\"),T=t(\"./lib/closest-point\"),S=A.meshShader,E=A.wireShader,L=A.pointShader,C=A.pickShader,I=A.pointPickShader,z=A.contourShader,D=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],P=n.prototype;P.isOpaque=function(){return this.opacity>=1},P.isTransparent=function(){return this.opacity<1},P.pickSlots=1,P.setPickBase=function(t){this.pickId=t},P.highlight=function(t){if(!t||!this.contourEnable)return void(this.contourCount=0);for(var e=M(this.cells,this.intensity,t.intensity),r=e.cells,n=e.vertexIds,i=e.vertexWeights,a=r.length,o=k.mallocFloat32(6*a),s=0,l=0;l<a;++l)for(var u=r[l],c=0;c<2;++c){var h=u[0];2===u.length&&(h=u[c]);for(var f=n[h][0],d=n[h][1],p=i[h],m=1-p,v=this.positions[f],g=this.positions[d],y=0;y<3;++y)o[s++]=p*v[y]+m*g[y]}this.contourCount=s/3|0,this.contourPositions.update(o.subarray(0,s)),k.free(o)},P.update=function(t){t=t||{};var e=this.gl;this.dirty=!0,\"contourEnable\"in t&&(this.contourEnable=t.contourEnable),\"contourColor\"in t&&(this.contourColor=t.contourColor),\"lineWidth\"in t&&(this.lineWidth=t.lineWidth),\"lightPosition\"in t&&(this.lightPosition=t.lightPosition),\"opacity\"in t&&(this.opacity=t.opacity),\"ambient\"in t&&(this.ambientLight=t.ambient),\"diffuse\"in t&&(this.diffuseLight=t.diffuse),\"specular\"in t&&(this.specularLight=t.specular),\"roughness\"in t&&(this.roughness=t.roughness),\"fresnel\"in t&&(this.fresnel=t.fresnel),t.texture?(this.texture.dispose(),this.texture=g(e,t.texture)):t.colormap&&(this.texture.shape=[256,256],this.texture.minFilter=e.LINEAR_MIPMAP_LINEAR,this.texture.magFilter=e.LINEAR,this.texture.setPixels(i(t.colormap)),this.texture.generateMipmap());var r=t.cells,n=t.positions;if(n&&r){var s=[],l=[],u=[],c=[],h=[],f=[],d=[],p=[],m=[],v=[],b=[],x=[],_=[],w=[];this.cells=r,this.positions=n;var M=t.vertexNormals,k=t.cellNormals,A=void 0===t.vertexNormalsEpsilon?1e-6:t.vertexNormalsEpsilon,T=void 0===t.faceNormalsEpsilon?1e-6:t.faceNormalsEpsilon;t.useFacetNormals&&!k&&(k=y.faceNormals(r,n,T)),k||M||(M=y.vertexNormals(r,n,A));var S=t.vertexColors,E=t.cellColors,L=t.meshColor||[1,1,1,1],C=t.vertexUVs,I=t.vertexIntensity,z=t.cellUVs,D=t.cellIntensity,P=1/0,O=-1/0;if(!C&&!z)if(I)if(t.vertexIntensityBounds)P=+t.vertexIntensityBounds[0],O=+t.vertexIntensityBounds[1];else for(var R=0;R<I.length;++R){var F=I[R];P=Math.min(P,F),O=Math.max(O,F)}else if(D)for(var R=0;R<D.length;++R){var F=D[R];P=Math.min(P,F),O=Math.max(O,F)}else for(var R=0;R<n.length;++R){var F=n[R][2];P=Math.min(P,F),O=Math.max(O,F)}this.intensity=I||(D?a(r,n.length,D):o(n));var j=t.pointSizes,N=t.pointSize||1;this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]];for(var R=0;R<n.length;++R)for(var B=n[R],U=0;U<3;++U)!isNaN(B[U])&&isFinite(B[U])&&(this.bounds[0][U]=Math.min(this.bounds[0][U],B[U]),this.bounds[1][U]=Math.max(this.bounds[1][U],B[U]));var V=0,H=0,q=0;t:for(var R=0;R<r.length;++R){var G=r[R];switch(G.length){case 1:for(var Y=G[0],B=n[Y],U=0;U<3;++U)if(isNaN(B[U])||!isFinite(B[U]))continue t;v.push(B[0],B[1],B[2]);var W;W=S?S[Y]:E?E[R]:L,3===W.length?b.push(W[0],W[1],W[2],1):b.push(W[0],W[1],W[2],W[3]);var X;X=C?C[Y]:I?[(I[Y]-P)/(O-P),0]:z?z[R]:D?[(D[R]-P)/(O-P),0]:[(B[2]-P)/(O-P),0],x.push(X[0],X[1]),j?_.push(j[Y]):_.push(N),w.push(R),q+=1;break;case 2:for(var U=0;U<2;++U)for(var Y=G[U],B=n[Y],Z=0;Z<3;++Z)if(isNaN(B[Z])||!isFinite(B[Z]))continue t;for(var U=0;U<2;++U){var Y=G[U],B=n[Y];f.push(B[0],B[1],B[2]);var W;W=S?S[Y]:E?E[R]:L,3===W.length?d.push(W[0],W[1],W[2],1):d.push(W[0],W[1],W[2],W[3]);var X;X=C?C[Y]:I?[(I[Y]-P)/(O-P),0]:z?z[R]:D?[(D[R]-P)/(O-P),0]:[(B[2]-P)/(O-P),0],p.push(X[0],X[1]),m.push(R)}H+=1;break;case 3:for(var U=0;U<3;++U)for(var Y=G[U],B=n[Y],Z=0;Z<3;++Z)if(isNaN(B[Z])||!isFinite(B[Z]))continue t;for(var U=0;U<3;++U){var Y=G[U],B=n[Y];s.push(B[0],B[1],B[2]);var W;W=S?S[Y]:E?E[R]:L,3===W.length?l.push(W[0],W[1],W[2],1):l.push(W[0],W[1],W[2],W[3]);var X;X=C?C[Y]:I?[(I[Y]-P)/(O-P),0]:z?z[R]:D?[(D[R]-P)/(O-P),0]:[(B[2]-P)/(O-P),0],c.push(X[0],X[1]);var J;J=M?M[Y]:k[R],u.push(J[0],J[1],J[2]),h.push(R)}V+=1}}this.pointCount=q,this.edgeCount=H,this.triangleCount=V,this.pointPositions.update(v),this.pointColors.update(b),this.pointUVs.update(x),this.pointSizes.update(_),this.pointIds.update(new Uint32Array(w)),this.edgePositions.update(f),this.edgeColors.update(d),this.edgeUVs.update(p),this.edgeIds.update(new Uint32Array(m)),this.trianglePositions.update(s),this.triangleColors.update(l),this.triangleUVs.update(c),this.triangleNormals.update(u),this.triangleIds.update(new Uint32Array(h))}},P.drawTransparent=P.draw=function(t){t=t||{};for(var e=this.gl,r=t.model||D,n=t.view||D,i=t.projection||D,a=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],o=0;o<3;++o)a[0][o]=Math.max(a[0][o],this.clipBounds[0][o]),a[1][o]=Math.min(a[1][o],this.clipBounds[1][o]);var s={model:r,view:n,projection:i,clipBounds:a,kambient:this.ambientLight,kdiffuse:this.diffuseLight,kspecular:this.specularLight,roughness:this.roughness,fresnel:this.fresnel,eyePosition:[0,0,0],lightPosition:[0,0,0],opacity:this.opacity,contourColor:this.contourColor,texture:0};this.texture.bind(0);var l=new Array(16);b(l,s.view,s.model),b(l,s.projection,l),x(l,l);for(var o=0;o<3;++o)s.eyePosition[o]=l[12+o]/l[15];for(var u=l[15],o=0;o<3;++o)u+=this.lightPosition[o]*l[4*o+3];for(var o=0;o<3;++o){for(var c=l[12+o],h=0;h<3;++h)c+=l[4*h+o]*this.lightPosition[h];s.lightPosition[o]=c/u}if(this.triangleCount>0){var f=this.triShader;f.bind(),f.uniforms=s,this.triangleVAO.bind(),e.drawArrays(e.TRIANGLES,0,3*this.triangleCount),this.triangleVAO.unbind()}if(this.edgeCount>0&&this.lineWidth>0){var f=this.lineShader;f.bind(),f.uniforms=s,this.edgeVAO.bind(),e.lineWidth(this.lineWidth),e.drawArrays(e.LINES,0,2*this.edgeCount),this.edgeVAO.unbind()}if(this.pointCount>0){var f=this.pointShader;f.bind(),f.uniforms=s,this.pointVAO.bind(),e.drawArrays(e.POINTS,0,this.pointCount),this.pointVAO.unbind()}if(this.contourEnable&&this.contourCount>0&&this.contourLineWidth>0){var f=this.contourShader;f.bind(),f.uniforms=s,this.contourVAO.bind(),e.drawArrays(e.LINES,0,this.contourCount),this.contourVAO.unbind()}},P.drawPick=function(t){t=t||{};for(var e=this.gl,r=t.model||D,n=t.view||D,i=t.projection||D,a=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],o=0;o<3;++o)a[0][o]=Math.max(a[0][o],this.clipBounds[0][o]),a[1][o]=Math.min(a[1][o],this.clipBounds[1][o]);this._model=[].slice.call(r),this._view=[].slice.call(n),this._projection=[].slice.call(i),this._resolution=[e.drawingBufferWidth,e.drawingBufferHeight];var s={model:r,view:n,projection:i,clipBounds:a,pickId:this.pickId/255},l=this.pickShader;if(l.bind(),l.uniforms=s,this.triangleCount>0&&(this.triangleVAO.bind(),e.drawArrays(e.TRIANGLES,0,3*this.triangleCount),this.triangleVAO.unbind()),this.edgeCount>0&&(this.edgeVAO.bind(),e.lineWidth(this.lineWidth),e.drawArrays(e.LINES,0,2*this.edgeCount),this.edgeVAO.unbind()),this.pointCount>0){var l=this.pointPickShader;l.bind(),l.uniforms=s,this.pointVAO.bind(),e.drawArrays(e.POINTS,0,this.pointCount),this.pointVAO.unbind()}},P.pick=function(t){if(!t)return null;if(t.id!==this.pickId)return null;for(var e=t.value[0]+256*t.value[1]+65536*t.value[2],r=this.cells[e],n=this.positions,i=new Array(r.length),a=0;a<r.length;++a)i[a]=n[r[a]];var o=T(i,[t.coord[0],this._resolution[1]-t.coord[1]],this._model,this._view,this._projection,this._resolution);if(!o)return null;for(var s=o[2],l=0,a=0;a<r.length;++a)l+=s[a]*this.intensity[r[a]];return{position:o[1],index:r[o[0]],cell:r,cellId:e,intensity:l,dataCoordinate:this.positions[r[o[0]]]}},P.dispose=function(){this.texture.dispose(),this.triShader.dispose(),this.lineShader.dispose(),this.pointShader.dispose(),this.pickShader.dispose(),this.pointPickShader.dispose(),this.triangleVAO.dispose(),this.trianglePositions.dispose(),this.triangleColors.dispose(),this.triangleUVs.dispose(),this.triangleNormals.dispose(),this.triangleIds.dispose(),this.edgeVAO.dispose(),this.edgePositions.dispose(),this.edgeColors.dispose(),this.edgeUVs.dispose(),this.edgeIds.dispose(),this.pointVAO.dispose(),this.pointPositions.dispose(),this.pointColors.dispose(),this.pointUVs.dispose(),this.pointSizes.dispose(),this.pointIds.dispose(),this.contourVAO.dispose(),this.contourPositions.dispose(),this.contourShader.dispose()},e.exports=d},{\"./lib/closest-point\":203,\"./lib/shaders\":204,colormap:99,\"gl-buffer\":156,\"gl-mat4/invert\":181,\"gl-mat4/multiply\":183,\"gl-shader\":255,\"gl-texture2d\":267,\"gl-vao\":271,ndarray:467,normals:469,\"simplicial-complex-contour\":517,\"typedarray-pool\":541}],206:[function(t,e,r){\"use strict\";function n(t,e,r){this.plot=t,this.vbo=e,this.shader=r}function i(t){var e=t.gl;return new n(t,a(e,[0,0,0,1,1,0,1,1]),o(e,s.boxVert,s.lineFrag))}e.exports=i;var a=t(\"gl-buffer\"),o=t(\"gl-shader\"),s=t(\"./shaders\"),l=n.prototype;l.bind=function(){var t=this.shader;this.vbo.bind(),this.shader.bind(),t.attributes.coord.pointer(),t.uniforms.screenBox=this.plot.screenBox},l.drawBox=function(){var t=[0,0],e=[0,0];return function(r,n,i,a,o){var s=this.plot,l=this.shader,u=s.gl;t[0]=r,t[1]=n,e[0]=i,e[1]=a,l.uniforms.lo=t,l.uniforms.hi=e,l.uniforms.color=o,u.drawArrays(u.TRIANGLE_STRIP,0,4)}}(),l.dispose=function(){this.vbo.dispose(),this.shader.dispose()}},{\"./shaders\":209,\"gl-buffer\":156,\"gl-shader\":212}],207:[function(t,e,r){\"use strict\";function n(t,e,r,n){this.plot=t,this.vbo=e,this.shader=r,this.tickShader=n,this.ticks=[[],[]]}function i(t,e){return t-e}function a(t){var e=t.gl;return new n(t,o(e),s(e,u.gridVert,u.gridFrag),s(e,u.tickVert,u.gridFrag))}e.exports=a;var o=t(\"gl-buffer\"),s=t(\"gl-shader\"),l=t(\"binary-search-bounds\"),u=t(\"./shaders\"),c=n.prototype;c.draw=function(){var t=[0,0],e=[0,0],r=[0,0];return function(){for(var n=this.plot,i=this.vbo,a=this.shader,o=this.ticks,s=n.gl,l=n._tickBounds,u=n.dataBox,c=n.viewBox,h=n.gridLineWidth,f=n.gridLineColor,d=n.gridLineEnable,p=n.pixelRatio,m=0;m<2;++m){var v=l[m],g=l[m+2],y=g-v,b=.5*(u[m+2]+u[m]),x=u[m+2]-u[m];e[m]=2*y/x,t[m]=2*(v-b)/x}a.bind(),i.bind(),a.attributes.dataCoord.pointer(),a.uniforms.dataShift=t,a.uniforms.dataScale=e;for(var _=0,m=0;m<2;++m){r[0]=r[1]=0,r[m]=1,a.uniforms.dataAxis=r,a.uniforms.lineWidth=h[m]/(c[m+2]-c[m])*p,a.uniforms.color=f[m];var w=6*o[m].length;d[m]&&w&&s.drawArrays(s.TRIANGLES,_,w),_+=w}}}(),c.drawTickMarks=function(){var t=[0,0],e=[0,0],r=[1,0],n=[0,1],a=[0,0],o=[0,0];return function(){for(var s=this.plot,u=this.vbo,c=this.tickShader,h=this.ticks,f=s.gl,d=s._tickBounds,p=s.dataBox,m=s.viewBox,v=s.pixelRatio,g=s.screenBox,y=g[2]-g[0],b=g[3]-g[1],x=m[2]-m[0],_=m[3]-m[1],w=0;w<2;++w){var M=d[w],k=d[w+2],A=k-M,T=.5*(p[w+2]+p[w]),S=p[w+2]-p[w];e[w]=2*A/S,t[w]=2*(M-T)/S}e[0]*=x/y,t[0]*=x/y,e[1]*=_/b,t[1]*=_/b,c.bind(),u.bind(),c.attributes.dataCoord.pointer();var E=c.uniforms;E.dataShift=t,E.dataScale=e;var L=s.tickMarkLength,C=s.tickMarkWidth,I=s.tickMarkColor,z=6*h[0].length,D=Math.min(l.ge(h[0],(p[0]-d[0])/(d[2]-d[0]),i),h[0].length),P=Math.min(l.gt(h[0],(p[2]-d[0])/(d[2]-d[0]),i),h[0].length),O=0+6*D,R=6*Math.max(0,P-D),F=Math.min(l.ge(h[1],(p[1]-d[1])/(d[3]-d[1]),i),h[1].length),j=Math.min(l.gt(h[1],(p[3]-d[1])/(d[3]-d[1]),i),h[1].length),N=z+6*F,B=6*Math.max(0,j-F);a[0]=2*(m[0]-L[1])/y-1,a[1]=(m[3]+m[1])/b-1,o[0]=L[1]*v/y,o[1]=C[1]*v/b,B&&(E.color=I[1],E.tickScale=o,E.dataAxis=n,E.screenOffset=a,f.drawArrays(f.TRIANGLES,N,B)),a[0]=(m[2]+m[0])/y-1,a[1]=2*(m[1]-L[0])/b-1,o[0]=C[0]*v/y,o[1]=L[0]*v/b,R&&(E.color=I[0],E.tickScale=o,E.dataAxis=r,E.screenOffset=a,f.drawArrays(f.TRIANGLES,O,R)),a[0]=2*(m[2]+L[3])/y-1,a[1]=(m[3]+m[1])/b-1,o[0]=L[3]*v/y,o[1]=C[3]*v/b,B&&(E.color=I[3],E.tickScale=o,E.dataAxis=n,E.screenOffset=a,f.drawArrays(f.TRIANGLES,N,B)),a[0]=(m[2]+m[0])/y-1,a[1]=2*(m[3]+L[2])/b-1,o[0]=C[2]*v/y,o[1]=L[2]*v/b,R&&(E.color=I[2],E.tickScale=o,E.dataAxis=r,E.screenOffset=a,f.drawArrays(f.TRIANGLES,O,R))}}(),c.update=function(){var t=[1,1,-1,-1,1,-1],e=[1,-1,1,1,-1,-1];return function(r){for(var n=r.ticks,i=r.bounds,a=new Float32Array(18*(n[0].length+n[1].length)),o=(this.plot.zeroLineEnable,0),s=[[],[]],l=0;l<2;++l)for(var u=s[l],c=n[l],h=i[l],f=i[l+2],d=0;d<c.length;++d){var p=(c[d].x-h)/(f-h);u.push(p);for(var m=0;m<6;++m)a[o++]=p,a[o++]=t[m],a[o++]=e[m]}this.ticks=s,this.vbo.update(a)}}(),c.dispose=function(){this.vbo.dispose(),this.shader.dispose(),this.tickShader.dispose()}},{\"./shaders\":209,\"binary-search-bounds\":211,\"gl-buffer\":156,\"gl-shader\":212}],208:[function(t,e,r){\"use strict\";function n(t,e,r){this.plot=t,this.vbo=e,this.shader=r}function i(t){var e=t.gl;return new n(t,a(e,[-1,-1,-1,1,1,-1,1,1]),o(e,s.lineVert,s.lineFrag))}e.exports=i;var a=t(\"gl-buffer\"),o=t(\"gl-shader\"),s=t(\"./shaders\"),l=n.prototype;l.bind=function(){var t=this.shader;this.vbo.bind(),this.shader.bind(),t.attributes.coord.pointer(),t.uniforms.screenBox=this.plot.screenBox},l.drawLine=function(){var t=[0,0],e=[0,0];return function(r,n,i,a,o,s){var l=this.plot,u=this.shader,c=l.gl;t[0]=r,t[1]=n,e[0]=i,e[1]=a,u.uniforms.start=t,u.uniforms.end=e,u.uniforms.width=o*l.pixelRatio,u.uniforms.color=s,c.drawArrays(c.TRIANGLE_STRIP,0,4)}}(),l.dispose=function(){this.vbo.dispose(),this.shader.dispose()}},{\"./shaders\":209,\"gl-buffer\":156,\"gl-shader\":212}],209:[function(t,e,r){\"use strict\";var n=\"precision lowp float;\\n#define GLSLIFY 1\\nuniform vec4 color;\\nvoid main() {\\n gl_FragColor = vec4(color.xyz * color.w, color.w);\\n}\\n\";e.exports={lineVert:\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute vec2 coord;\\n\\nuniform vec4 screenBox;\\nuniform vec2 start, end;\\nuniform float width;\\n\\nvec2 perp(vec2 v) {\\n return vec2(v.y, -v.x);\\n}\\n\\nvec2 screen(vec2 v) {\\n return 2.0 * (v - screenBox.xy) / (screenBox.zw - screenBox.xy) - 1.0;\\n}\\n\\nvoid main() {\\n vec2 delta = normalize(perp(start - end));\\n vec2 offset = mix(start, end, 0.5 * (coord.y+1.0));\\n gl_Position = vec4(screen(offset + 0.5 * width * delta * coord.x), 0, 1);\\n}\\n\",lineFrag:n,textVert:\"#define GLSLIFY 1\\nattribute vec3 textCoordinate;\\n\\nuniform vec2 dataScale, dataShift, dataAxis, screenOffset, textScale;\\nuniform float angle;\\n\\nvoid main() {\\n float dataOffset = textCoordinate.z;\\n vec2 glyphOffset = textCoordinate.xy;\\n mat2 glyphMatrix = mat2(cos(angle), sin(angle), -sin(angle), cos(angle));\\n vec2 screenCoordinate = dataAxis * (dataScale * dataOffset + dataShift) +\\n glyphMatrix * glyphOffset * textScale + screenOffset;\\n gl_Position = vec4(screenCoordinate, 0, 1);\\n}\\n\",textFrag:n,gridVert:\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute vec3 dataCoord;\\n\\nuniform vec2 dataAxis, dataShift, dataScale;\\nuniform float lineWidth;\\n\\nvoid main() {\\n vec2 pos = dataAxis * (dataScale * dataCoord.x + dataShift);\\n pos += 10.0 * dataCoord.y * vec2(dataAxis.y, -dataAxis.x) + dataCoord.z * lineWidth;\\n gl_Position = vec4(pos, 0, 1);\\n}\\n\",gridFrag:n,boxVert:\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute vec2 coord;\\n\\nuniform vec4 screenBox;\\nuniform vec2 lo, hi;\\n\\nvec2 screen(vec2 v) {\\n return 2.0 * (v - screenBox.xy) / (screenBox.zw - screenBox.xy) - 1.0;\\n}\\n\\nvoid main() {\\n gl_Position = vec4(screen(mix(lo, hi, coord)), 0, 1);\\n}\\n\",tickVert:\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute vec3 dataCoord;\\n\\nuniform vec2 dataAxis, dataShift, dataScale, screenOffset, tickScale;\\n\\nvoid main() {\\n vec2 pos = dataAxis * (dataScale * dataCoord.x + dataShift);\\n gl_Position = vec4(pos + tickScale*dataCoord.yz + screenOffset, 0, 1);\\n}\\n\"}},{}],210:[function(t,e,r){\"use strict\";function n(t,e,r){this.plot=t,this.vbo=e,this.shader=r,this.tickOffset=[[],[]],this.tickX=[[],[]],this.labelOffset=[0,0],this.labelCount=[0,0]}function i(t){var e=t.gl;return new n(t,a(e),o(e,u.textVert,u.textFrag))}e.exports=i;var a=t(\"gl-buffer\"),o=t(\"gl-shader\"),s=t(\"text-cache\"),l=t(\"binary-search-bounds\"),u=t(\"./shaders\"),c=n.prototype;c.drawTicks=function(){var t=[0,0],e=[0,0],r=[0,0];return function(n){var i=this.plot,a=this.shader,o=this.tickX[n],s=this.tickOffset[n],u=i.gl,c=i.viewBox,h=i.dataBox,f=i.screenBox,d=i.pixelRatio,p=i.tickEnable,m=i.tickPad,v=i.tickColor,g=i.tickAngle,y=i.labelEnable,b=i.labelPad,x=i.labelColor,_=i.labelAngle,w=this.labelOffset[n],M=this.labelCount[n],k=l.lt(o,h[n]),A=l.le(o,h[n+2]);t[0]=t[1]=0,t[n]=1,e[n]=(c[2+n]+c[n])/(f[2+n]-f[n])-1;var T=2/f[2+(1^n)]-f[1^n];e[1^n]=T*c[1^n]-1,p[n]&&(e[1^n]-=T*d*m[n],k<A&&s[A]>s[k]&&(a.uniforms.dataAxis=t,a.uniforms.screenOffset=e,a.uniforms.color=v[n],a.uniforms.angle=g[n],u.drawArrays(u.TRIANGLES,s[k],s[A]-s[k]))),y[n]&&M&&(e[1^n]-=T*d*b[n],a.uniforms.dataAxis=r,a.uniforms.screenOffset=e,a.uniforms.color=x[n],a.uniforms.angle=_[n],u.drawArrays(u.TRIANGLES,w,M)),e[1^n]=T*c[2+(1^n)]-1,p[n+2]&&(e[1^n]+=T*d*m[n+2],k<A&&s[A]>s[k]&&(a.uniforms.dataAxis=t,a.uniforms.screenOffset=e,a.uniforms.color=v[n+2],a.uniforms.angle=g[n+2],u.drawArrays(u.TRIANGLES,s[k],s[A]-s[k]))),y[n+2]&&M&&(e[1^n]+=T*d*b[n+2],a.uniforms.dataAxis=r,a.uniforms.screenOffset=e,a.uniforms.color=x[n+2],a.uniforms.angle=_[n+2],u.drawArrays(u.TRIANGLES,w,M))}}(),c.drawTitle=function(){var t=[0,0],e=[0,0];return function(){var r=this.plot,n=this.shader,i=r.gl,a=r.screenBox,o=r.titleCenter,s=r.titleAngle,l=r.titleColor,u=r.pixelRatio;if(this.titleCount){for(var c=0;c<2;++c)e[c]=2*(o[c]*u-a[c])/(a[2+c]-a[c])-1;n.bind(),n.uniforms.dataAxis=t,n.uniforms.screenOffset=e,n.uniforms.angle=s,n.uniforms.color=l,i.drawArrays(i.TRIANGLES,this.titleOffset,this.titleCount)}}}(),c.bind=function(){var t=[0,0],e=[0,0],r=[0,0];return function(){var n=this.plot,i=this.shader,a=n._tickBounds,o=n.dataBox,s=n.screenBox,l=n.viewBox;i.bind();for(var u=0;u<2;++u){var c=a[u],h=a[u+2],f=h-c,d=.5*(o[u+2]+o[u]),p=o[u+2]-o[u],m=l[u],v=l[u+2],g=v-m,y=s[u],b=s[u+2],x=b-y;e[u]=2*f/p*g/x,t[u]=2*(c-d)/p*g/x}r[1]=2*n.pixelRatio/(s[3]-s[1]),r[0]=r[1]*(s[3]-s[1])/(s[2]-s[0]),i.uniforms.dataScale=e,i.uniforms.dataShift=t,i.uniforms.textScale=r,this.vbo.bind(),i.attributes.textCoordinate.pointer()}}(),c.update=function(t){var e,r,n,i,a,o=[],l=t.ticks,u=t.bounds;for(a=0;a<2;++a){var c=[Math.floor(o.length/3)],h=[-1/0],f=l[a];for(e=0;e<f.length;++e){var d=f[e],p=d.x,m=d.text,v=d.font||\"sans-serif\";i=d.fontSize||12;for(var g=1/(u[a+2]-u[a]),y=u[a],b=m.split(\"\\n\"),x=0;x<b.length;x++)for(n=s(v,b[x]).data,r=0;r<n.length;r+=2)o.push(n[r]*i,-n[r+1]*i-x*i*1.2,(p-y)*g);c.push(Math.floor(o.length/3)),h.push(p)}this.tickOffset[a]=c,this.tickX[a]=h}for(a=0;a<2;++a){for(this.labelOffset[a]=Math.floor(o.length/3),n=s(t.labelFont[a],t.labels[a],{textAlign:\"center\"}).data,\n", "i=t.labelSize[a],e=0;e<n.length;e+=2)o.push(n[e]*i,-n[e+1]*i,0);this.labelCount[a]=Math.floor(o.length/3)-this.labelOffset[a]}for(this.titleOffset=Math.floor(o.length/3),n=s(t.titleFont,t.title).data,i=t.titleSize,e=0;e<n.length;e+=2)o.push(n[e]*i,-n[e+1]*i,0);this.titleCount=Math.floor(o.length/3)-this.titleOffset,this.vbo.update(o)},c.dispose=function(){this.vbo.dispose(),this.shader.dispose()}},{\"./shaders\":209,\"binary-search-bounds\":211,\"gl-buffer\":156,\"gl-shader\":212,\"text-cache\":532}],211:[function(t,e,r){arguments[4][84][0].apply(r,arguments)},{dup:84}],212:[function(t,e,r){\"use strict\";function n(t){this.gl=t,this.gl.lastAttribCount=0,this._vref=this._fref=this._relink=this.vertShader=this.fragShader=this.program=this.attributes=this.uniforms=this.types=null}function i(t,e){return t.name<e.name?-1:1}function a(t,e,r,i,a){var o=new n(t);return o.update(e,r,i,a),o}var o=t(\"./lib/create-uniforms\"),s=t(\"./lib/create-attributes\"),l=t(\"./lib/reflect\"),u=t(\"./lib/shader-cache\"),c=t(\"./lib/runtime-reflect\"),h=t(\"./lib/GLError\"),f=n.prototype;f.bind=function(){this.program||this._relink();var t,e=this.gl.getProgramParameter(this.program,this.gl.ACTIVE_ATTRIBUTES),r=this.gl.lastAttribCount;if(e>r)for(t=r;t<e;t++)this.gl.enableVertexAttribArray(t);else if(r>e)for(t=e;t<r;t++)this.gl.disableVertexAttribArray(t);this.gl.lastAttribCount=e,this.gl.useProgram(this.program)},f.dispose=function(){for(var t=this.gl.lastAttribCount,e=0;e<t;e++)this.gl.disableVertexAttribArray(e);this.gl.lastAttribCount=0,this._fref&&this._fref.dispose(),this._vref&&this._vref.dispose(),this.attributes=this.types=this.vertShader=this.fragShader=this.program=this._relink=this._fref=this._vref=null},f.update=function(t,e,r,n){function a(){d.program=u.program(p,d._vref,d._fref,_,w);for(var t=0;t<r.length;++t)E[t]=p.getUniformLocation(d.program,r[t].name)}if(!e||1===arguments.length){var f=t;t=f.vertex,e=f.fragment,r=f.uniforms,n=f.attributes}var d=this,p=d.gl,m=d._vref;d._vref=u.shader(p,p.VERTEX_SHADER,t),m&&m.dispose(),d.vertShader=d._vref.shader;var v=this._fref;if(d._fref=u.shader(p,p.FRAGMENT_SHADER,e),v&&v.dispose(),d.fragShader=d._fref.shader,!r||!n){var g=p.createProgram();if(p.attachShader(g,d.fragShader),p.attachShader(g,d.vertShader),p.linkProgram(g),!p.getProgramParameter(g,p.LINK_STATUS)){var y=p.getProgramInfoLog(g);throw new h(y,\"Error linking program:\"+y)}r=r||c.uniforms(p,g),n=n||c.attributes(p,g),p.deleteProgram(g)}n=n.slice(),n.sort(i);var b,x=[],_=[],w=[];for(b=0;b<n.length;++b){var M=n[b];if(M.type.indexOf(\"mat\")>=0){for(var k=0|M.type.charAt(M.type.length-1),A=new Array(k),T=0;T<k;++T)A[T]=w.length,_.push(M.name+\"[\"+T+\"]\"),\"number\"==typeof M.location?w.push(M.location+T):Array.isArray(M.location)&&M.location.length===k&&\"number\"==typeof M.location[T]?w.push(0|M.location[T]):w.push(-1);x.push({name:M.name,type:M.type,locations:A})}else x.push({name:M.name,type:M.type,locations:[w.length]}),_.push(M.name),\"number\"==typeof M.location?w.push(0|M.location):w.push(-1)}var S=0;for(b=0;b<w.length;++b)if(w[b]<0){for(;w.indexOf(S)>=0;)S+=1;w[b]=S}var E=new Array(r.length);a(),d._relink=a,d.types={uniforms:l(r),attributes:l(n)},d.attributes=s(p,d,x,w),Object.defineProperty(d,\"uniforms\",o(p,d,r,E))},e.exports=a},{\"./lib/GLError\":213,\"./lib/create-attributes\":214,\"./lib/create-uniforms\":215,\"./lib/reflect\":216,\"./lib/runtime-reflect\":217,\"./lib/shader-cache\":218}],213:[function(t,e,r){function n(t,e,r){this.shortMessage=e||\"\",this.longMessage=r||\"\",this.rawError=t||\"\",this.message=\"gl-shader: \"+(e||t||\"\")+(r?\"\\n\"+r:\"\"),this.stack=(new Error).stack}n.prototype=new Error,n.prototype.name=\"GLError\",n.prototype.constructor=n,e.exports=n},{}],214:[function(t,e,r){\"use strict\";function n(t,e,r,n,i,a){this._gl=t,this._wrapper=e,this._index=r,this._locations=n,this._dimension=i,this._constFunc=a}function i(t,e,r,i,a,o,s){for(var l=[\"gl\",\"v\"],u=[],c=0;c<a;++c)l.push(\"x\"+c),u.push(\"x\"+c);l.push(\"if(x0.length===void 0){return gl.vertexAttrib\"+a+\"f(v,\"+u.join()+\")}else{return gl.vertexAttrib\"+a+\"fv(v,x0)}\");var h=Function.apply(null,l),f=new n(t,e,r,i,a,h);Object.defineProperty(o,s,{set:function(e){return t.disableVertexAttribArray(i[r]),h(t,i[r],e),e},get:function(){return f},enumerable:!0})}function a(t,e,r,n,a,o,s){for(var l=new Array(a),u=new Array(a),c=0;c<a;++c)i(t,e,r[c],n,a,l,c),u[c]=l[c];Object.defineProperty(l,\"location\",{set:function(t){if(Array.isArray(t))for(var e=0;e<a;++e)u[e].location=t[e];else for(var e=0;e<a;++e)u[e].location=t+e;return t},get:function(){for(var t=new Array(a),e=0;e<a;++e)t[e]=n[r[e]];return t},enumerable:!0}),l.pointer=function(e,i,o,s){e=e||t.FLOAT,i=!!i,o=o||a*a,s=s||0;for(var l=0;l<a;++l){var u=n[r[l]];t.vertexAttribPointer(u,a,e,i,o,s+l*a),t.enableVertexAttribArray(u)}};var h=new Array(a),f=t[\"vertexAttrib\"+a+\"fv\"];Object.defineProperty(o,s,{set:function(e){for(var i=0;i<a;++i){var o=n[r[i]];if(t.disableVertexAttribArray(o),Array.isArray(e[0]))f.call(t,o,e[i]);else{for(var s=0;s<a;++s)h[s]=e[a*i+s];f.call(t,o,h)}}return e},get:function(){return l},enumerable:!0})}function o(t,e,r,n){for(var o={},l=0,u=r.length;l<u;++l){var c=r[l],h=c.name,f=c.type,d=c.locations;switch(f){case\"bool\":case\"int\":case\"float\":i(t,e,d[0],n,1,o,h);break;default:if(f.indexOf(\"vec\")>=0){var p=f.charCodeAt(f.length-1)-48;if(p<2||p>4)throw new s(\"\",\"Invalid data type for attribute \"+h+\": \"+f);i(t,e,d[0],n,p,o,h)}else{if(!(f.indexOf(\"mat\")>=0))throw new s(\"\",\"Unknown data type for attribute \"+h+\": \"+f);var p=f.charCodeAt(f.length-1)-48;if(p<2||p>4)throw new s(\"\",\"Invalid data type for attribute \"+h+\": \"+f);a(t,e,d,n,p,o,h)}}}return o}e.exports=o;var s=t(\"./GLError\"),l=n.prototype;l.pointer=function(t,e,r,n){var i=this,a=i._gl,o=i._locations[i._index];a.vertexAttribPointer(o,i._dimension,t||a.FLOAT,!!e,r||0,n||0),a.enableVertexAttribArray(o)},l.set=function(t,e,r,n){return this._constFunc(this._locations[this._index],t,e,r,n)},Object.defineProperty(l,\"location\",{get:function(){return this._locations[this._index]},set:function(t){return t!==this._locations[this._index]&&(this._locations[this._index]=0|t,this._wrapper.program=null),0|t}})},{\"./GLError\":213}],215:[function(t,e,r){\"use strict\";function n(t){return new Function(\"y\",\"return function(){return y}\")(t)}function i(t,e){for(var r=new Array(t),n=0;n<t;++n)r[n]=e;return r}function a(t,e,r,a){function l(r){return new Function(\"gl\",\"wrapper\",\"locations\",\"return function(){return gl.getUniform(wrapper.program,locations[\"+r+\"])}\")(t,e,a)}function u(t,e,r){switch(r){case\"bool\":case\"int\":case\"sampler2D\":case\"samplerCube\":return\"gl.uniform1i(locations[\"+e+\"],obj\"+t+\")\";case\"float\":return\"gl.uniform1f(locations[\"+e+\"],obj\"+t+\")\";default:var n=r.indexOf(\"vec\");if(!(0<=n&&n<=1&&r.length===4+n)){if(0===r.indexOf(\"mat\")&&4===r.length){var i=r.charCodeAt(r.length-1)-48;if(i<2||i>4)throw new s(\"\",\"Invalid uniform dimension type for matrix \"+name+\": \"+r);return\"gl.uniformMatrix\"+i+\"fv(locations[\"+e+\"],false,obj\"+t+\")\"}throw new s(\"\",\"Unknown uniform data type for \"+name+\": \"+r)}var i=r.charCodeAt(r.length-1)-48;if(i<2||i>4)throw new s(\"\",\"Invalid data type\");switch(r.charAt(0)){case\"b\":case\"i\":return\"gl.uniform\"+i+\"iv(locations[\"+e+\"],obj\"+t+\")\";case\"v\":return\"gl.uniform\"+i+\"fv(locations[\"+e+\"],obj\"+t+\")\";default:throw new s(\"\",\"Unrecognized data type for vector \"+name+\": \"+r)}}}function c(t,e){if(\"object\"!=typeof e)return[[t,e]];var r=[];for(var n in e){var i=e[n],a=t;parseInt(n)+\"\"===n?a+=\"[\"+n+\"]\":a+=\".\"+n,\"object\"==typeof i?r.push.apply(r,c(a,i)):r.push([a,i])}return r}function h(e){for(var n=[\"return function updateProperty(obj){\"],i=c(\"\",e),o=0;o<i.length;++o){var s=i[o],l=s[0],h=s[1];a[h]&&n.push(u(l,h,r[h].type))}return n.push(\"return obj}\"),new Function(\"gl\",\"locations\",n.join(\"\\n\"))(t,a)}function f(t){switch(t){case\"bool\":return!1;case\"int\":case\"sampler2D\":case\"samplerCube\":case\"float\":return 0;default:var e=t.indexOf(\"vec\");if(0<=e&&e<=1&&t.length===4+e){var r=t.charCodeAt(t.length-1)-48;if(r<2||r>4)throw new s(\"\",\"Invalid data type\");return\"b\"===t.charAt(0)?i(r,!1):i(r,0)}if(0===t.indexOf(\"mat\")&&4===t.length){var r=t.charCodeAt(t.length-1)-48;if(r<2||r>4)throw new s(\"\",\"Invalid uniform dimension type for matrix \"+name+\": \"+t);return i(r*r,0)}throw new s(\"\",\"Unknown uniform data type for \"+name+\": \"+t)}}function d(t,e,i){if(\"object\"==typeof i){var o=p(i);Object.defineProperty(t,e,{get:n(o),set:h(i),enumerable:!0,configurable:!1})}else a[i]?Object.defineProperty(t,e,{get:l(i),set:h(i),enumerable:!0,configurable:!1}):t[e]=f(r[i].type)}function p(t){var e;if(Array.isArray(t)){e=new Array(t.length);for(var r=0;r<t.length;++r)d(e,r,t[r])}else{e={};for(var n in t)d(e,n,t[n])}return e}var m=o(r,!0);return{get:n(p(m)),set:h(m),enumerable:!0,configurable:!0}}var o=t(\"./reflect\"),s=t(\"./GLError\");e.exports=a},{\"./GLError\":213,\"./reflect\":216}],216:[function(t,e,r){\"use strict\";function n(t,e){for(var r={},n=0;n<t.length;++n)for(var i=t[n].name,a=i.split(\".\"),o=r,s=0;s<a.length;++s){var l=a[s].split(\"[\");if(l.length>1){l[0]in o||(o[l[0]]=[]),o=o[l[0]];for(var u=1;u<l.length;++u){var c=parseInt(l[u]);u<l.length-1||s<a.length-1?(c in o||(u<l.length-1?o[c]=[]:o[c]={}),o=o[c]):o[c]=e?n:t[n].type}}else s<a.length-1?(l[0]in o||(o[l[0]]={}),o=o[l[0]]):o[l[0]]=e?n:t[n].type}return r}e.exports=n},{}],217:[function(t,e,r){\"use strict\";function n(t,e){if(!s){var r=Object.keys(o);s={};for(var n=0;n<r.length;++n){var i=r[n];s[t[i]]=o[i]}}return s[e]}function i(t,e){for(var r=t.getProgramParameter(e,t.ACTIVE_UNIFORMS),i=[],a=0;a<r;++a){var o=t.getActiveUniform(e,a);if(o){var s=n(t,o.type);if(o.size>1)for(var l=0;l<o.size;++l)i.push({name:o.name.replace(\"[0]\",\"[\"+l+\"]\"),type:s});else i.push({name:o.name,type:s})}}return i}function a(t,e){for(var r=t.getProgramParameter(e,t.ACTIVE_ATTRIBUTES),i=[],a=0;a<r;++a){var o=t.getActiveAttrib(e,a);o&&i.push({name:o.name,type:n(t,o.type)})}return i}r.uniforms=i,r.attributes=a;var o={FLOAT:\"float\",FLOAT_VEC2:\"vec2\",FLOAT_VEC3:\"vec3\",FLOAT_VEC4:\"vec4\",INT:\"int\",INT_VEC2:\"ivec2\",INT_VEC3:\"ivec3\",INT_VEC4:\"ivec4\",BOOL:\"bool\",BOOL_VEC2:\"bvec2\",BOOL_VEC3:\"bvec3\",BOOL_VEC4:\"bvec4\",FLOAT_MAT2:\"mat2\",FLOAT_MAT3:\"mat3\",FLOAT_MAT4:\"mat4\",SAMPLER_2D:\"sampler2D\",SAMPLER_CUBE:\"samplerCube\"},s=null},{}],218:[function(t,e,r){\"use strict\";function n(t,e,r,n,i,a,o){this.id=t,this.src=e,this.type=r,this.shader=n,this.count=a,this.programs=[],this.cache=o}function i(t){this.gl=t,this.shaders=[{},{}],this.programs={}}function a(t,e,r){var n=t.createShader(e);if(t.shaderSource(n,r),t.compileShader(n),!t.getShaderParameter(n,t.COMPILE_STATUS)){var i=t.getShaderInfoLog(n);try{var a=h(i,r,e)}catch(t){throw console.warn(\"Failed to format compiler error: \"+t),new c(i,\"Error compiling shader:\\n\"+i)}throw new c(i,a.short,a.long)}return n}function o(t,e,r,n,i){var a=t.createProgram();t.attachShader(a,e),t.attachShader(a,r);for(var o=0;o<n.length;++o)t.bindAttribLocation(a,i[o],n[o]);if(t.linkProgram(a),!t.getProgramParameter(a,t.LINK_STATUS)){var s=t.getProgramInfoLog(a);throw new c(s,\"Error linking program: \"+s)}return a}function s(t){var e=d.get(t);return e||(e=new i(t),d.set(t,e)),e}function l(t,e,r){return s(t).getShaderReference(e,r)}function u(t,e,r,n,i){return s(t).getProgram(e,r,n,i)}r.shader=l,r.program=u;var c=t(\"./GLError\"),h=t(\"gl-format-compiler-error\"),f=\"undefined\"==typeof WeakMap?t(\"weakmap-shim\"):WeakMap,d=new f,p=0;n.prototype.dispose=function(){if(0==--this.count){for(var t=this.cache,e=t.gl,r=this.programs,n=0,i=r.length;n<i;++n){var a=t.programs[r[n]];a&&(delete t.programs[n],e.deleteProgram(a))}e.deleteShader(this.shader),delete t.shaders[this.type===e.FRAGMENT_SHADER|0][this.src]}};var m=i.prototype;m.getShaderReference=function(t,e){var r=this.gl,i=this.shaders[t===r.FRAGMENT_SHADER|0],o=i[e];if(o&&r.isShader(o.shader))o.count+=1;else{var s=a(r,t,e);o=i[e]=new n(p++,e,t,s,[],1,this)}return o},m.getProgram=function(t,e,r,n){var i=[t.id,e.id,r.join(\":\"),n.join(\":\")].join(\"@\"),a=this.programs[i];return a&&this.gl.isProgram(a)||(this.programs[i]=a=o(this.gl,t.shader,e.shader,r,n),t.programs.push(i),e.programs.push(i)),a}},{\"./GLError\":213,\"gl-format-compiler-error\":165,\"weakmap-shim\":562}],219:[function(t,e,r){\"use strict\";function n(t,e){this.gl=t,this.pickBuffer=e,this.screenBox=[0,0,t.drawingBufferWidth,t.drawingBufferHeight],this.viewBox=[0,0,0,0],this.dataBox=[-10,-10,10,10],this.gridLineEnable=[!0,!0],this.gridLineWidth=[1,1],this.gridLineColor=[[0,0,0,1],[0,0,0,1]],this.pixelRatio=1,this.tickMarkLength=[0,0,0,0],this.tickMarkWidth=[0,0,0,0],this.tickMarkColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[15,15,15,15],this.tickAngle=[0,0,0,0],this.tickEnable=[!0,!0,!0,!0],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[15,15,15,15],this.labelAngle=[0,Math.PI/2,0,3*Math.PI/2],this.labelEnable=[!0,!0,!0,!0],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.titleCenter=[0,0],this.titleEnable=!0,this.titleAngle=0,this.titleColor=[0,0,0,1],this.borderColor=[0,0,0,0],this.backgroundColor=[0,0,0,0],this.zeroLineEnable=[!0,!0],this.zeroLineWidth=[4,4],this.zeroLineColor=[[0,0,0,1],[0,0,0,1]],this.borderLineEnable=[!0,!0,!0,!0],this.borderLineWidth=[2,2,2,2],this.borderLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.grid=null,this.text=null,this.line=null,this.box=null,this.objects=[],this.overlays=[],this._tickBounds=[1/0,1/0,-1/0,-1/0],this.static=!1,this.dirty=!1,this.pickDirty=!1,this.pickDelay=120,this.pickRadius=10,this._pickTimeout=null,this._drawPick=this.drawPick.bind(this),this._depthCounter=0}function i(t){for(var e=t.slice(),r=0;r<e.length;++r)e[r]=e[r].slice();return e}function a(t,e){return t.x-e.x}function o(t){var e=t.gl,r=s(e,[e.drawingBufferWidth,e.drawingBufferHeight]),i=new n(e,r);return i.grid=l(i),i.text=u(i),i.line=c(i),i.box=h(i),i.update(t),i}e.exports=o;var s=t(\"gl-select-static\"),l=t(\"./lib/grid\"),u=t(\"./lib/text\"),c=t(\"./lib/line\"),h=t(\"./lib/box\"),f=n.prototype;f.setDirty=function(){this.dirty=this.pickDirty=!0},f.setOverlayDirty=function(){this.dirty=!0},f.nextDepthValue=function(){return this._depthCounter++/65536},f.draw=function(){return function(){var t=this.gl,e=this.screenBox,r=this.viewBox,n=this.dataBox,i=this.pixelRatio,a=this.grid,o=this.line,s=this.text,l=this.objects;if(this._depthCounter=0,this.pickDirty&&(this._pickTimeout&&clearTimeout(this._pickTimeout),this.pickDirty=!1,this._pickTimeout=setTimeout(this._drawPick,this.pickDelay)),this.dirty){this.dirty=!1,t.bindFramebuffer(t.FRAMEBUFFER,null),t.enable(t.SCISSOR_TEST),t.disable(t.DEPTH_TEST),t.depthFunc(t.LESS),t.depthMask(!1),t.enable(t.BLEND),t.blendEquation(t.FUNC_ADD,t.FUNC_ADD),t.blendFunc(t.ONE,t.ONE_MINUS_SRC_ALPHA),t.scissor(e[0],e[1],e[2]-e[0],e[3]-e[1]);var u=this.borderColor;t.clearColor(u[0]*u[3],u[1]*u[3],u[2]*u[3],u[3]),t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT),t.scissor(r[0],r[1],r[2]-r[0],r[3]-r[1]),t.viewport(r[0],r[1],r[2]-r[0],r[3]-r[1]);var c=this.backgroundColor;t.clearColor(c[0]*c[3],c[1]*c[3],c[2]*c[3],c[3]),t.clear(t.COLOR_BUFFER_BIT),a.draw();var h=this.zeroLineEnable,f=this.zeroLineColor,d=this.zeroLineWidth;if(h[0]||h[1]){o.bind();for(var p=0;p<2;++p)if(h[p]&&n[p]<=0&&n[p+2]>=0){var m=e[p]-n[p]*(e[p+2]-e[p])/(n[p+2]-n[p]);0===p?o.drawLine(m,e[1],m,e[3],d[p],f[p]):o.drawLine(e[0],m,e[2],m,d[p],f[p])}}for(var p=0;p<l.length;++p)l[p].draw();t.viewport(e[0],e[1],e[2]-e[0],e[3]-e[1]),t.scissor(e[0],e[1],e[2]-e[0],e[3]-e[1]),this.grid.drawTickMarks(),o.bind();var v=this.borderLineEnable,g=this.borderLineWidth,y=this.borderLineColor;v[1]&&o.drawLine(r[0],r[1]-.5*g[1]*i,r[0],r[3]+.5*g[3]*i,g[1],y[1]),v[0]&&o.drawLine(r[0]-.5*g[0]*i,r[1],r[2]+.5*g[2]*i,r[1],g[0],y[0]),v[3]&&o.drawLine(r[2],r[1]-.5*g[1]*i,r[2],r[3]+.5*g[3]*i,g[3],y[3]),v[2]&&o.drawLine(r[0]-.5*g[0]*i,r[3],r[2]+.5*g[2]*i,r[3],g[2],y[2]),s.bind();for(var p=0;p<2;++p)s.drawTicks(p);this.titleEnable&&s.drawTitle();for(var b=this.overlays,p=0;p<b.length;++p)b[p].draw();t.disable(t.SCISSOR_TEST),t.disable(t.BLEND),t.depthMask(!0)}}}(),f.drawPick=function(){return function(){if(!this.static){var t=this.pickBuffer;this.gl;this._pickTimeout=null,t.begin();for(var e=1,r=this.objects,n=0;n<r.length;++n)e=r[n].drawPick(e);t.end()}}}(),f.pick=function(){return function(t,e){if(!this.static){var r=this.pixelRatio,n=this.pickPixelRatio,i=this.viewBox,a=0|Math.round((t-i[0]/r)*n),o=0|Math.round((e-i[1]/r)*n),s=this.pickBuffer.query(a,o,this.pickRadius);if(!s)return null;for(var l=s.id+(s.value[0]<<8)+(s.value[1]<<16)+(s.value[2]<<24),u=this.objects,c=0;c<u.length;++c){var h=u[c].pick(a,o,l);if(h)return h}return null}}}(),f.setScreenBox=function(t){var e=this.screenBox,r=this.pixelRatio;e[0]=0|Math.round(t[0]*r),e[1]=0|Math.round(t[1]*r),e[2]=0|Math.round(t[2]*r),e[3]=0|Math.round(t[3]*r),this.setDirty()},f.setDataBox=function(t){var e=this.dataBox;(e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3])&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],this.setDirty())},f.setViewBox=function(t){var e=this.pixelRatio,r=this.viewBox;r[0]=0|Math.round(t[0]*e),r[1]=0|Math.round(t[1]*e),r[2]=0|Math.round(t[2]*e),r[3]=0|Math.round(t[3]*e);var n=this.pickPixelRatio;this.pickBuffer.shape=[0|Math.round((t[2]-t[0])*n),0|Math.round((t[3]-t[1])*n)],this.setDirty()},f.update=function(t){t=t||{};var e=this.gl;this.pixelRatio=t.pixelRatio||1;var r=this.pixelRatio;this.pickPixelRatio=Math.max(r,1),this.setScreenBox(t.screenBox||[0,0,e.drawingBufferWidth/r,e.drawingBufferHeight/r]);this.screenBox;this.setViewBox(t.viewBox||[.125*(this.screenBox[2]-this.screenBox[0])/r,.125*(this.screenBox[3]-this.screenBox[1])/r,.875*(this.screenBox[2]-this.screenBox[0])/r,.875*(this.screenBox[3]-this.screenBox[1])/r]);var n=this.viewBox,o=(n[2]-n[0])/(n[3]-n[1]);this.setDataBox(t.dataBox||[-10,-10/o,10,10/o]),this.borderColor=(t.borderColor||[0,0,0,0]).slice(),this.backgroundColor=(t.backgroundColor||[0,0,0,0]).slice(),this.gridLineEnable=(t.gridLineEnable||[!0,!0]).slice(),this.gridLineWidth=(t.gridLineWidth||[1,1]).slice(),this.gridLineColor=i(t.gridLineColor||[[.5,.5,.5,1],[.5,.5,.5,1]]),this.zeroLineEnable=(t.zeroLineEnable||[!0,!0]).slice(),this.zeroLineWidth=(t.zeroLineWidth||[4,4]).slice(),this.zeroLineColor=i(t.zeroLineColor||[[0,0,0,1],[0,0,0,1]]),this.tickMarkLength=(t.tickMarkLength||[0,0,0,0]).slice(),this.tickMarkWidth=(t.tickMarkWidth||[0,0,0,0]).slice(),this.tickMarkColor=i(t.tickMarkColor||[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]]),this.titleCenter=(t.titleCenter||[.5*(n[0]+n[2])/r,(n[3]+120)/r]).slice(),this.titleEnable=!(\"titleEnable\"in t&&!t.titleEnable),this.titleAngle=t.titleAngle||0,this.titleColor=(t.titleColor||[0,0,0,1]).slice(),this.labelPad=(t.labelPad||[15,15,15,15]).slice(),this.labelAngle=(t.labelAngle||[0,Math.PI/2,0,3*Math.PI/2]).slice(),this.labelEnable=(t.labelEnable||[!0,!0,!0,!0]).slice(),this.labelColor=i(t.labelColor||[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]]),this.tickPad=(t.tickPad||[15,15,15,15]).slice(),this.tickAngle=(t.tickAngle||[0,0,0,0]).slice(),this.tickEnable=(t.tickEnable||[!0,!0,!0,!0]).slice(),this.tickColor=i(t.tickColor||[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]]),this.borderLineEnable=(t.borderLineEnable||[!0,!0,!0,!0]).slice(),this.borderLineWidth=(t.borderLineWidth||[2,2,2,2]).slice(),this.borderLineColor=i(t.borderLineColor||[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]]);var s=t.ticks||[[],[]],l=this._tickBounds;l[0]=l[1]=1/0,l[2]=l[3]=-1/0;for(var u=0;u<2;++u){var c=s[u].slice(0);0!==c.length&&(c.sort(a),l[u]=Math.min(l[u],c[0].x),l[u+2]=Math.max(l[u+2],c[c.length-1].x))}this.grid.update({bounds:l,ticks:s}),this.text.update({bounds:l,ticks:s,labels:t.labels||[\"x\",\"y\"],labelSize:t.labelSize||[12,12],labelFont:t.labelFont||[\"sans-serif\",\"sans-serif\"],title:t.title||\"\",titleSize:t.titleSize||18,titleFont:t.titleFont||\"sans-serif\"}),this.static=!!t.static,this.setDirty()},f.dispose=function(){this.box.dispose(),this.grid.dispose(),this.text.dispose(),this.line.dispose();for(var t=this.objects.length-1;t>=0;--t)this.objects[t].dispose();this.objects.length=0;for(var t=this.overlays.length-1;t>=0;--t)this.overlays[t].dispose();this.overlays.length=0,this.gl=null},f.addObject=function(t){this.objects.indexOf(t)<0&&(this.objects.push(t),this.setDirty())},f.removeObject=function(t){for(var e=this.objects,r=0;r<e.length;++r)if(e[r]===t){e.splice(r,1),this.setDirty();break}},f.addOverlay=function(t){this.overlays.indexOf(t)<0&&(this.overlays.push(t),this.setOverlayDirty())},f.removeOverlay=function(t){for(var e=this.overlays,r=0;r<e.length;++r)if(e[r]===t){e.splice(r,1),this.setOverlayDirty();break}}},{\"./lib/box\":206,\"./lib/grid\":207,\"./lib/line\":208,\"./lib/text\":210,\"gl-select-static\":254}],220:[function(t,e,r){var n=t(\"gl-shader\");e.exports=function(t){return n(t,\"precision mediump float;\\n#define GLSLIFY 1\\nattribute vec2 position;\\nvarying vec2 uv;\\nvoid main() {\\n uv = position;\\n gl_Position = vec4(position, 0, 1);\\n}\",\"precision mediump float;\\n#define GLSLIFY 1\\n\\nuniform sampler2D accumBuffer;\\nvarying vec2 uv;\\n\\nvoid main() {\\n vec4 accum = texture2D(accumBuffer, 0.5 * (uv + 1.0));\\n gl_FragColor = min(vec4(1,1,1,1), accum);\\n}\",null,[{name:\"position\",type:\"vec2\"}])}},{\"gl-shader\":255}],221:[function(t,e,r){\"use strict\";function n(){this.mouse=[-1,-1],this.screen=null,this.distance=1/0,this.index=null,this.dataCoordinate=null,this.dataPosition=null,this.object=null,this.data=null}function i(t,e){var r=null;try{r=t.getContext(\"webgl\",e),r||(r=t.getContext(\"experimental-webgl\",e))}catch(t){return null}return r}function a(t){var e=Math.round(Math.log(Math.abs(t))/Math.log(10));if(e<0){var r=Math.round(Math.pow(10,-e));return Math.ceil(t*r)/r}if(e>0){var r=Math.round(Math.pow(10,e));return Math.ceil(t/r)*r}return Math.ceil(t)}function o(t){return\"boolean\"!=typeof t||t}function s(t){function e(){if(!w&&G.autoResize){var t=M.parentNode,e=1,r=1;t&&t!==document.body?(e=t.clientWidth,r=t.clientHeight):(e=window.innerWidth,r=window.innerHeight);var n=0|Math.ceil(e*G.pixelRatio),i=0|Math.ceil(r*G.pixelRatio);if(n!==M.width||i!==M.height){M.width=n,M.height=i;var a=M.style;a.position=a.position||\"absolute\",a.left=\"0px\",a.top=\"0px\",a.width=e+\"px\",a.height=r+\"px\",N=!0}}}function r(){for(var t=O.length,e=j.length,r=0;r<e;++r)F[r]=0;t:for(var r=0;r<t;++r){var n=O[r],i=n.pickSlots;if(i){for(var a=0;a<e;++a)if(F[a]+i<255){R[r]=a,n.setPickBase(F[a]+1),F[a]+=i;continue t}var o=f(A,q);R[r]=e,j.push(o),F.push(i),n.setPickBase(1),e+=1}else R[r]=-1}for(;e>0&&0===F[e-1];)F.pop(),j.pop().dispose()}function s(){if(G.contextLost)return!0;A.isContextLost()&&(G.contextLost=!0,G.mouseListener.enabled=!1,G.selection.object=null,G.oncontextloss&&G.oncontextloss())}function b(){if(!s()){A.colorMask(!0,!0,!0,!0),A.depthMask(!0),A.disable(A.BLEND),A.enable(A.DEPTH_TEST);for(var t=O.length,e=j.length,r=0;r<e;++r){var n=j[r];n.shape=Y,n.begin();for(var i=0;i<t;++i)if(R[i]===r){var a=O[i];a.drawPick&&(a.pixelRatio=1,a.drawPick(H))}n.end()}}}function x(){if(!s()){e();var t=G.camera.tick();H.view=G.camera.matrix,N=N||t,B=B||t,z.pixelRatio=G.pixelRatio,P.pixelRatio=G.pixelRatio;var r=O.length,n=Z[0],i=Z[1];n[0]=n[1]=n[2]=1/0,i[0]=i[1]=i[2]=-1/0;for(var o=0;o<r;++o){var l=O[o];l.pixelRatio=G.pixelRatio,l.axes=G.axes,N=N||!!l.dirty,B=B||!!l.dirty;var u=l.bounds;if(u)for(var h=u[0],f=u[1],d=0;d<3;++d)n[d]=Math.min(n[d],h[d]),i[d]=Math.max(i[d],f[d])}var m=G.bounds;if(G.autoBounds)for(var d=0;d<3;++d){if(i[d]<n[d])n[d]=-1,i[d]=1;else{n[d]===i[d]&&(n[d]-=1,i[d]+=1);var g=.05*(i[d]-n[d]);n[d]=n[d]-g,i[d]=i[d]+g}m[0][d]=n[d],m[1][d]=i[d]}for(var y=!1,d=0;d<3;++d)y=y||J[0][d]!==m[0][d]||J[1][d]!==m[1][d],J[0][d]=m[0][d],J[1][d]=m[1][d];if(B=B||y,N=N||y){if(y){for(var x=[0,0,0],o=0;o<3;++o)x[o]=a((m[1][o]-m[0][o])/10);z.autoTicks?z.update({bounds:m,tickSpacing:x}):z.update({bounds:m})}var _=A.drawingBufferWidth,w=A.drawingBufferHeight;q[0]=_,q[1]=w,Y[0]=0|Math.max(_/G.pixelRatio,1),Y[1]=0|Math.max(w/G.pixelRatio,1),v(U,G.fovy,_/w,G.zNear,G.zFar);for(var o=0;o<16;++o)V[o]=0;V[15]=1;for(var M=0,o=0;o<3;++o)M=Math.max(M,m[1][o]-m[0][o]);for(var o=0;o<3;++o)G.autoScale?V[5*o]=G.aspect[o]/(m[1][o]-m[0][o]):V[5*o]=1/M,G.autoCenter&&(V[12+o]=.5*-V[5*o]*(m[0][o]+m[1][o]));for(var o=0;o<r;++o){var l=O[o];l.axesBounds=m,G.clipToBounds&&(l.clipBounds=m)}S.object&&(G.snapToData?P.position=S.dataCoordinate:P.position=S.dataPosition,P.bounds=m),B&&(B=!1,b()),G.axesPixels=c(G.axes,H,_,w),G.onrender&&G.onrender(),A.bindFramebuffer(A.FRAMEBUFFER,null),A.viewport(0,0,_,w);var k=G.clearColor;A.clearColor(k[0],k[1],k[2],k[3]),A.clear(A.COLOR_BUFFER_BIT|A.DEPTH_BUFFER_BIT),A.depthMask(!0),A.colorMask(!0,!0,!0,!0),A.enable(A.DEPTH_TEST),A.depthFunc(A.LEQUAL),A.disable(A.BLEND),A.disable(A.CULL_FACE);var T=!1;z.enable&&(T=T||z.isTransparent(),z.draw(H)),P.axes=z,S.object&&P.draw(H),A.disable(A.CULL_FACE);for(var o=0;o<r;++o){var l=O[o];l.axes=z,l.pixelRatio=G.pixelRatio,l.isOpaque&&l.isOpaque()&&l.draw(H),l.isTransparent&&l.isTransparent()&&(T=!0)}if(T){E.shape=q,E.bind(),A.clear(A.DEPTH_BUFFER_BIT),A.colorMask(!1,!1,!1,!1),A.depthMask(!0),A.depthFunc(A.LESS),z.enable&&z.isTransparent()&&z.drawTransparent(H);for(var o=0;o<r;++o){var l=O[o];l.isOpaque&&l.isOpaque()&&l.draw(H)}A.enable(A.BLEND),A.blendEquation(A.FUNC_ADD),A.blendFunc(A.ONE,A.ONE_MINUS_SRC_ALPHA),A.colorMask(!0,!0,!0,!0),A.depthMask(!1),A.clearColor(0,0,0,0),A.clear(A.COLOR_BUFFER_BIT),z.isTransparent()&&z.drawTransparent(H);for(var o=0;o<r;++o){var l=O[o];l.isTransparent&&l.isTransparent()&&l.drawTransparent(H)}A.bindFramebuffer(A.FRAMEBUFFER,null),A.blendFunc(A.ONE,A.ONE_MINUS_SRC_ALPHA),A.disable(A.DEPTH_TEST),L.bind(),E.color[0].bind(0),L.uniforms.accumBuffer=0,p(A),A.disable(A.BLEND)}N=!1;for(var o=0;o<r;++o)O[o].dirty=!1}}}function _(){w||G.contextLost||(requestAnimationFrame(_),x())}t=t||{};var w=!1,M=(t.pixelRatio||parseFloat(window.devicePixelRatio),t.canvas);if(!M)if(M=document.createElement(\"canvas\"),t.container){var k=t.container;k.appendChild(M)}else document.body.appendChild(M);var A=t.gl;if(A||(A=i(M,t.glOptions||{premultipliedAlpha:!0,antialias:!0})),!A)throw new Error(\"webgl not supported\");var T=t.bounds||[[-10,-10,-10],[10,10,10]],S=new n,E=d(A,[A.drawingBufferWidth,A.drawingBufferHeight],{preferFloat:!y}),L=g(A),C=t.camera||{eye:[2,0,0],center:[0,0,0],up:[0,1,0],zoomMin:.1,zoomMax:100,mode:\"turntable\"},I=t.axes||{},z=u(A,I);z.enable=!I.disable;var D=t.spikes||{},P=h(A,D),O=[],R=[],F=[],j=[],N=!0,B=!0,U=new Array(16),V=new Array(16),H={view:null,projection:U,model:V},B=!0,q=[A.drawingBufferWidth,A.drawingBufferHeight],G={gl:A,contextLost:!1,pixelRatio:t.pixelRatio||parseFloat(window.devicePixelRatio),canvas:M,selection:S,camera:l(M,C),axes:z,axesPixels:null,spikes:P,bounds:T,objects:O,shape:q,aspect:t.aspectRatio||[1,1,1],pickRadius:t.pickRadius||10,zNear:t.zNear||.01,zFar:t.zFar||1e3,fovy:t.fovy||Math.PI/4,clearColor:t.clearColor||[0,0,0,0],autoResize:o(t.autoResize),autoBounds:o(t.autoBounds),autoScale:!!t.autoScale,autoCenter:o(t.autoCenter),clipToBounds:o(t.clipToBounds),snapToData:!!t.snapToData,onselect:t.onselect||null,onrender:t.onrender||null,onclick:t.onclick||null,cameraParams:H,oncontextloss:null,mouseListener:null},Y=[A.drawingBufferWidth/G.pixelRatio|0,A.drawingBufferHeight/G.pixelRatio|0];G.autoResize&&e(),window.addEventListener(\"resize\",e),G.update=function(t){w||(t=t||{},N=!0,B=!0)},G.add=function(t){w||(t.axes=z,O.push(t),R.push(-1),N=!0,B=!0,r())},G.remove=function(t){if(!w){var e=O.indexOf(t);e<0||(O.splice(e,1),R.pop(),N=!0,B=!0,r())}},G.dispose=function(){if(!w&&(w=!0,window.removeEventListener(\"resize\",e),M.removeEventListener(\"webglcontextlost\",s),G.mouseListener.enabled=!1,!G.contextLost)){z.dispose(),P.dispose();for(var t=0;t<O.length;++t)O[t].dispose();E.dispose();for(var t=0;t<j.length;++t)j[t].dispose();L.dispose(),A=null,z=null,P=null,O=[]}};var W=!1,X=0;G.mouseListener=m(M,function(t,e,r){if(!w){var n=j.length,i=O.length,a=S.object;S.distance=1/0,S.mouse[0]=e,S.mouse[1]=r,S.object=null,S.screen=null,S.dataCoordinate=S.dataPosition=null;var o=!1;if(t&&X)W=!0;else{W&&(B=!0),W=!1;for(var s=0;s<n;++s){var l=j[s].query(e,Y[1]-r-1,G.pickRadius);if(l){if(l.distance>S.distance)continue;for(var u=0;u<i;++u){var c=O[u];if(R[u]===s){var h=c.pick(l);h&&(S.buttons=t,S.screen=l.coord,S.distance=l.distance,S.object=c,S.index=h.distance,S.dataPosition=h.position,S.dataCoordinate=h.dataCoordinate,S.data=h,o=!0)}}}}}a&&a!==S.object&&(a.highlight&&a.highlight(null),N=!0),S.object&&(S.object.highlight&&S.object.highlight(S.data),N=!0),o=o||S.object!==a,o&&G.onselect&&G.onselect(S),1&t&&!(1&X)&&G.onclick&&G.onclick(S),X=t}}),M.addEventListener(\"webglcontextlost\",s);var Z=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],J=[Z[0].slice(),Z[1].slice()];return _(),G.redraw=function(){w||(N=!0,x())},G}e.exports=s;var l=t(\"3d-view-controls\"),u=t(\"gl-axes3d\"),c=t(\"gl-axes3d/properties\"),h=t(\"gl-spikes3d\"),f=t(\"gl-select-static\"),d=t(\"gl-fbo\"),p=t(\"a-big-triangle\"),m=t(\"mouse-change\"),v=t(\"gl-mat4/perspective\"),g=t(\"./lib/shader\"),y=t(\"is-mobile\")()},{\"./lib/shader\":220,\"3d-view-controls\":36,\"a-big-triangle\":39,\"gl-axes3d\":148,\"gl-axes3d/properties\":155,\"gl-fbo\":164,\"gl-mat4/perspective\":184,\"gl-select-static\":254,\"gl-spikes3d\":264,\"is-mobile\":296,\"mouse-change\":452}],222:[function(t,e,r){r.pointVertex=\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute vec2 position;\\n\\nuniform mat3 matrix;\\nuniform float pointSize;\\nuniform float pointCloud;\\n\\nhighp float rand(vec2 co) {\\n highp float a = 12.9898;\\n highp float b = 78.233;\\n highp float c = 43758.5453;\\n highp float d = dot(co.xy, vec2(a, b));\\n highp float e = mod(d, 3.14);\\n return fract(sin(e) * c);\\n}\\n\\nvoid main() {\\n vec3 hgPosition = matrix * vec3(position, 1);\\n gl_Position = vec4(hgPosition.xy, 0, hgPosition.z);\\n // if we don't jitter the point size a bit, overall point cloud\\n // saturation 'jumps' on zooming, which is disturbing and confusing\\n gl_PointSize = pointSize * ((19.5 + rand(position)) / 20.0);\\n if(pointCloud != 0.0) { // pointCloud is truthy\\n // get the same square surface as circle would be\\n gl_PointSize *= 0.886;\\n }\\n}\",r.pointFragment=\"precision mediump float;\\n#define GLSLIFY 1\\n\\nuniform vec4 color, borderColor;\\nuniform float centerFraction;\\nuniform float pointCloud;\\n\\nvoid main() {\\n float radius;\\n vec4 baseColor;\\n if(pointCloud != 0.0) { // pointCloud is truthy\\n if(centerFraction == 1.0) {\\n gl_FragColor = color;\\n } else {\\n gl_FragColor = mix(borderColor, color, centerFraction);\\n }\\n } else {\\n radius = length(2.0 * gl_PointCoord.xy - 1.0);\\n if(radius > 1.0) {\\n discard;\\n }\\n baseColor = mix(borderColor, color, step(radius, centerFraction));\\n gl_FragColor = vec4(baseColor.rgb * baseColor.a, baseColor.a);\\n }\\n}\\n\",r.pickVertex=\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute vec2 position;\\nattribute vec4 pickId;\\n\\nuniform mat3 matrix;\\nuniform float pointSize;\\nuniform vec4 pickOffset;\\n\\nvarying vec4 fragId;\\n\\nvoid main() {\\n vec3 hgPosition = matrix * vec3(position, 1);\\n gl_Position = vec4(hgPosition.xy, 0, hgPosition.z);\\n gl_PointSize = pointSize;\\n\\n vec4 id = pickId + pickOffset;\\n id.y += floor(id.x / 256.0);\\n id.x -= floor(id.x / 256.0) * 256.0;\\n\\n id.z += floor(id.y / 256.0);\\n id.y -= floor(id.y / 256.0) * 256.0;\\n\\n id.w += floor(id.z / 256.0);\\n id.z -= floor(id.z / 256.0) * 256.0;\\n\\n fragId = id;\\n}\\n\",r.pickFragment=\"precision mediump float;\\n#define GLSLIFY 1\\n\\nvarying vec4 fragId;\\n\\nvoid main() {\\n float radius = length(2.0 * gl_PointCoord.xy - 1.0);\\n if(radius > 1.0) {\\n discard;\\n }\\n gl_FragColor = fragId / 255.0;\\n}\\n\"},{}],223:[function(t,e,r){arguments[4][212][0].apply(r,arguments)},{\"./lib/GLError\":224,\"./lib/create-attributes\":225,\"./lib/create-uniforms\":226,\"./lib/reflect\":227,\"./lib/runtime-reflect\":228,\"./lib/shader-cache\":229,dup:212}],224:[function(t,e,r){arguments[4][213][0].apply(r,arguments)},{dup:213}],225:[function(t,e,r){arguments[4][214][0].apply(r,arguments)},{\n", "\"./GLError\":224,dup:214}],226:[function(t,e,r){arguments[4][215][0].apply(r,arguments)},{\"./GLError\":224,\"./reflect\":227,dup:215}],227:[function(t,e,r){arguments[4][216][0].apply(r,arguments)},{dup:216}],228:[function(t,e,r){arguments[4][217][0].apply(r,arguments)},{dup:217}],229:[function(t,e,r){arguments[4][218][0].apply(r,arguments)},{\"./GLError\":224,dup:218,\"gl-format-compiler-error\":165,\"weakmap-shim\":562}],230:[function(t,e,r){\"use strict\";function n(t,e,r,n,i){this.plot=t,this.offsetBuffer=e,this.pickBuffer=r,this.shader=n,this.pickShader=i,this.sizeMin=.5,this.sizeMinCap=2,this.sizeMax=20,this.areaRatio=1,this.pointCount=0,this.color=[1,0,0,1],this.borderColor=[0,0,0,1],this.blend=!1,this.pickOffset=0,this.points=null}function i(t,e){var r,n=0,i=t.length>>>1;for(r=0;r<i;r++){var a=t[2*r],o=t[2*r+1];a>=e[0]&&a<=e[2]&&o>=e[1]&&o<=e[3]&&n++}return n}function a(t,e){var r=t.gl,i=s(r),a=s(r),l=o(r,u.pointVertex,u.pointFragment),c=o(r,u.pickVertex,u.pickFragment),h=new n(t,i,a,l,c);return h.update(e),t.addObject(h),h}var o=t(\"gl-shader\"),s=t(\"gl-buffer\"),l=t(\"typedarray-pool\"),u=t(\"./lib/shader\");e.exports=a;var c=n.prototype;c.dispose=function(){this.shader.dispose(),this.pickShader.dispose(),this.offsetBuffer.dispose(),this.pickBuffer.dispose(),this.plot.removeObject(this)},c.update=function(t){function e(e,r){return e in t?t[e]:r}var r;t=t||{},this.sizeMin=e(\"sizeMin\",.5),this.sizeMax=e(\"sizeMax\",20),this.color=e(\"color\",[1,0,0,1]).slice(),this.areaRatio=e(\"areaRatio\",1),this.borderColor=e(\"borderColor\",[0,0,0,1]).slice(),this.blend=e(\"blend\",!1);var n=t.positions.length>>>1,i=t.positions instanceof Float32Array,a=t.idToIndex instanceof Int32Array&&t.idToIndex.length>=n,o=t.positions,s=i?o:l.mallocFloat32(o.length),u=a?t.idToIndex:l.mallocInt32(n);if(i||s.set(o),!a)for(s.set(o),r=0;r<n;r++)u[r]=r;this.points=o,this.offsetBuffer.update(s),this.pickBuffer.update(u),i||l.free(s),a||l.free(u),this.pointCount=n,this.pickOffset=0},c.unifiedDraw=function(){var t=[1,0,0,0,1,0,0,0,1],e=[0,0,0,0];return function(r){var n=void 0!==r,a=n?this.pickShader:this.shader,o=this.plot.gl,s=this.plot.dataBox;if(0===this.pointCount)return r;var l=s[2]-s[0],u=s[3]-s[1],c=i(this.points,s),h=this.plot.pickPixelRatio*Math.max(Math.min(this.sizeMinCap,this.sizeMin),Math.min(this.sizeMax,this.sizeMax/Math.pow(c,.33333)));t[0]=2/l,t[4]=2/u,t[6]=-2*s[0]/l-1,t[7]=-2*s[1]/u-1,this.offsetBuffer.bind(),a.bind(),a.attributes.position.pointer(),a.uniforms.matrix=t,a.uniforms.color=this.color,a.uniforms.borderColor=this.borderColor,a.uniforms.pointCloud=h<5,a.uniforms.pointSize=h,a.uniforms.centerFraction=Math.min(1,Math.max(0,Math.sqrt(1-this.areaRatio))),n&&(e[0]=255&r,e[1]=r>>8&255,e[2]=r>>16&255,e[3]=r>>24&255,this.pickBuffer.bind(),a.attributes.pickId.pointer(o.UNSIGNED_BYTE),a.uniforms.pickOffset=e,this.pickOffset=r);var f=o.getParameter(o.BLEND),d=o.getParameter(o.DITHER);return f&&!this.blend&&o.disable(o.BLEND),d&&o.disable(o.DITHER),o.drawArrays(o.POINTS,0,this.pointCount),f&&!this.blend&&o.enable(o.BLEND),d&&o.enable(o.DITHER),r+this.pointCount}}(),c.draw=c.unifiedDraw,c.drawPick=c.unifiedDraw,c.pick=function(t,e,r){var n=this.pickOffset,i=this.pointCount;if(r<n||r>=n+i)return null;var a=r-n,o=this.points;return{object:this,pointId:a,dataCoord:[o[2*a],o[2*a+1]]}}},{\"./lib/shader\":222,\"gl-buffer\":156,\"gl-shader\":223,\"typedarray-pool\":541}],231:[function(t,e,r){function n(t,e,r,n){var i,a,o,s,l,u=e[0],c=e[1],h=e[2],f=e[3],d=r[0],p=r[1],m=r[2],v=r[3];return a=u*d+c*p+h*m+f*v,a<0&&(a=-a,d=-d,p=-p,m=-m,v=-v),1-a>1e-6?(i=Math.acos(a),o=Math.sin(i),s=Math.sin((1-n)*i)/o,l=Math.sin(n*i)/o):(s=1-n,l=n),t[0]=s*u+l*d,t[1]=s*c+l*p,t[2]=s*h+l*m,t[3]=s*f+l*v,t}e.exports=n},{}],232:[function(t,e,r){\"use strict\";e.exports={vertex:\"precision highp float;\\n#define GLSLIFY 1\\n\\n\\nvec4 computePosition_1_0(vec2 posHi, vec2 posLo, vec2 scHi, vec2 scLo, vec2 trHi, vec2 trLo) {\\n return vec4((posHi + trHi) * scHi\\n \\t\\t\\t//FIXME: this thingy does not give noticeable precision gain, need test\\n + (posLo + trLo) * scHi\\n + (posHi + trHi) * scLo\\n + (posLo + trLo) * scLo\\n , 0, 1);\\n}\\n\\n\\nattribute vec2 positionHi, positionLo;\\nattribute float size, border;\\nattribute vec2 char, color;\\n\\n//this is 64-bit form of scale and translate\\nuniform vec2 scaleHi, scaleLo, translateHi, translateLo;\\nuniform float pixelRatio;\\nuniform vec4 viewBox;\\nuniform sampler2D palette;\\n\\nvarying vec4 charColor, borderColor;\\nvarying vec2 charId;\\nvarying vec2 pointCoord;\\nvarying float pointSize;\\nvarying float borderWidth;\\n\\n\\nvoid main() {\\n charColor = texture2D(palette, vec2(color.x / 255., 0));\\n borderColor = texture2D(palette, vec2(color.y / 255., 0));\\n\\n gl_PointSize = size * pixelRatio;\\n pointSize = size * pixelRatio;\\n\\n charId = char;\\n borderWidth = border;\\n\\n gl_Position = computePosition_1_0(\\n positionHi, positionLo,\\n scaleHi, scaleLo,\\n translateHi, translateLo);\\n\\n pointCoord = viewBox.xy + (viewBox.zw - viewBox.xy) * (gl_Position.xy * .5 + .5);\\n}\\n\",fragment:\"precision highp float;\\n#define GLSLIFY 1\\n\\nuniform sampler2D chars;\\nuniform vec2 charsShape;\\nuniform float charsStep, pixelRatio, charOffset;\\n\\nvarying vec4 borderColor;\\nvarying vec4 charColor;\\nvarying vec2 charId;\\nvarying vec2 pointCoord;\\nvarying float pointSize;\\nvarying float borderWidth;\\n\\nvoid main() {\\n\\tvec2 pointUV = (pointCoord - gl_FragCoord.xy + pointSize * .5) / pointSize;\\n\\tpointUV.x = 1. - pointUV.x;\\n\\tvec2 texCoord = ((charId + pointUV) * charsStep) / charsShape;\\n\\tfloat dist = texture2D(chars, texCoord).r;\\n\\n\\t//max-distance alpha\\n\\tif (dist < 1e-2)\\n\\t\\tdiscard;\\n\\n\\tfloat gamma = .0045 * charsStep / pointSize;\\n\\n //null-border case\\n \\tif (borderWidth * borderColor.a == 0.) {\\n\\t\\tfloat charAmt = smoothstep(.748 - gamma, .748 + gamma, dist);\\n\\t\\tgl_FragColor = vec4(charColor.rgb, charAmt*charColor.a);\\n\\t\\treturn;\\n\\t}\\n\\n\\tfloat dif = 5. * pixelRatio * borderWidth / pointSize;\\n\\tfloat borderLevel = .748 - dif * .5;\\n\\tfloat charLevel = .748 + dif * .5;\\n\\n\\tfloat borderAmt = smoothstep(borderLevel - gamma, borderLevel + gamma, dist);\\n\\tfloat charAmt = smoothstep(charLevel - gamma, charLevel + gamma, dist);\\n\\n\\tvec4 color = borderColor;\\n\\tcolor.a *= borderAmt;\\n\\n\\tgl_FragColor = mix(color, charColor, charAmt);\\n}\\n\",pickVertex:\"precision highp float;\\n#define GLSLIFY 1\\n\\nattribute vec2 positionHi, positionLo;\\nattribute vec4 id;\\nattribute float size;\\n\\nuniform vec2 scaleHi, scaleLo, translateHi, translateLo;\\nuniform vec4 pickOffset;\\nuniform float pixelRatio;\\n\\nvarying vec4 fragColor;\\n\\n\\nvec4 computePosition_1_0(vec2 posHi, vec2 posLo, vec2 scHi, vec2 scLo, vec2 trHi, vec2 trLo) {\\n return vec4((posHi + trHi) * scHi\\n \\t\\t\\t//FIXME: this thingy does not give noticeable precision gain, need test\\n + (posLo + trLo) * scHi\\n + (posHi + trHi) * scLo\\n + (posLo + trLo) * scLo\\n , 0, 1);\\n}\\n\\n\\nvoid main() {\\n vec4 fragId = id + pickOffset;\\n\\n fragId.y += floor(fragId.x / 256.0);\\n fragId.x -= floor(fragId.x / 256.0) * 256.0;\\n\\n fragId.z += floor(fragId.y / 256.0);\\n fragId.y -= floor(fragId.y / 256.0) * 256.0;\\n\\n fragId.w += floor(fragId.z / 256.0);\\n fragId.z -= floor(fragId.z / 256.0) * 256.0;\\n\\n fragColor = fragId / 255.0;\\n\\n gl_PointSize = size * .25 * pixelRatio;\\n\\n gl_Position = computePosition_1_0(\\n positionHi, positionLo,\\n scaleHi, scaleLo,\\n translateHi, translateLo);\\n}\\n\",pickFragment:\"precision lowp float;\\n#define GLSLIFY 1\\nvarying vec4 fragColor;\\nvoid main() {\\n gl_FragColor = fragColor;\\n}\\n\"}},{}],233:[function(t,e,r){arguments[4][84][0].apply(r,arguments)},{dup:84}],234:[function(t,e,r){arguments[4][212][0].apply(r,arguments)},{\"./lib/GLError\":235,\"./lib/create-attributes\":236,\"./lib/create-uniforms\":237,\"./lib/reflect\":238,\"./lib/runtime-reflect\":239,\"./lib/shader-cache\":240,dup:212}],235:[function(t,e,r){arguments[4][213][0].apply(r,arguments)},{dup:213}],236:[function(t,e,r){arguments[4][214][0].apply(r,arguments)},{\"./GLError\":235,dup:214}],237:[function(t,e,r){arguments[4][215][0].apply(r,arguments)},{\"./GLError\":235,\"./reflect\":238,dup:215}],238:[function(t,e,r){arguments[4][216][0].apply(r,arguments)},{dup:216}],239:[function(t,e,r){arguments[4][217][0].apply(r,arguments)},{dup:217}],240:[function(t,e,r){arguments[4][218][0].apply(r,arguments)},{\"./GLError\":235,dup:218,\"gl-format-compiler-error\":165,\"weakmap-shim\":562}],241:[function(t,e,r){\"use strict\";function n(t,e,r,n,a){a<=4*f?i(0,a-1,t,e,r,n):h(0,a-1,t,e,r,n)}function i(t,e,r,n,i,a){for(var o=t+1;o<=e;++o){for(var s=r[o],l=n[2*o],u=n[2*o+1],c=i[o],h=a[o],f=o;f>t;){var d=r[f-1],p=n[2*(f-1)];if((d-s||l-p)>=0)break;r[f]=d,n[2*f]=p,n[2*f+1]=n[2*f-1],i[f]=i[f-1],a[f]=a[f-1],f-=1}r[f]=s,n[2*f]=l,n[2*f+1]=u,i[f]=c,a[f]=h}}function a(t,e,r,n,i,a){var o=r[t],s=n[2*t],l=n[2*t+1],u=i[t],c=a[t];r[t]=r[e],n[2*t]=n[2*e],n[2*t+1]=n[2*e+1],i[t]=i[e],a[t]=a[e],r[e]=o,n[2*e]=s,n[2*e+1]=l,i[e]=u,a[e]=c}function o(t,e,r,n,i,a){r[t]=r[e],n[2*t]=n[2*e],n[2*t+1]=n[2*e+1],i[t]=i[e],a[t]=a[e]}function s(t,e,r,n,i,a,o){var s=n[t],l=i[2*t],u=i[2*t+1],c=a[t],h=o[t];n[t]=n[e],i[2*t]=i[2*e],i[2*t+1]=i[2*e+1],a[t]=a[e],o[t]=o[e],n[e]=n[r],i[2*e]=i[2*r],i[2*e+1]=i[2*r+1],a[e]=a[r],o[e]=o[r],n[r]=s,i[2*r]=l,i[2*r+1]=u,a[r]=c,o[r]=h}function l(t,e,r,n,i,a,o,s,l,u,c){s[t]=s[e],l[2*t]=l[2*e],l[2*t+1]=l[2*e+1],u[t]=u[e],c[t]=c[e],s[e]=r,l[2*e]=n,l[2*e+1]=i,u[e]=a,c[e]=o}function u(t,e,r,n,i){return(r[t]-r[e]||n[2*e]-n[2*t]||i[t]-i[e])<0}function c(t,e,r,n,i,a,o,s){return(e-a[t]||o[2*t]-r||i-s[t])<0}function h(t,e,r,n,d,p){var m=(e-t+1)/6|0,v=t+m,g=e-m,y=t+e>>1,b=y-m,x=y+m,_=v,w=b,M=y,k=x,A=g,T=t+1,S=e-1,E=0;u(_,w,r,n,d,p)&&(E=_,_=w,w=E),u(k,A,r,n,d,p)&&(E=k,k=A,A=E),u(_,M,r,n,d,p)&&(E=_,_=M,M=E),u(w,M,r,n,d,p)&&(E=w,w=M,M=E),u(_,k,r,n,d,p)&&(E=_,_=k,k=E),u(M,k,r,n,d,p)&&(E=M,M=k,k=E),u(w,A,r,n,d,p)&&(E=w,w=A,A=E),u(w,M,r,n,d,p)&&(E=w,w=M,M=E),u(k,A,r,n,d,p)&&(E=k,k=A,A=E);var L=r[w],C=n[2*w],I=n[2*w+1],z=d[w],D=p[w],P=r[k],O=n[2*k],R=n[2*k+1],F=d[k],j=p[k],N=_,B=M,U=A,V=v,H=y,q=g,G=r[N],Y=r[B],W=r[U];r[V]=G,r[H]=Y,r[q]=W;for(var X=0;X<2;++X){var Z=n[2*N+X],J=n[2*B+X],K=n[2*U+X];n[2*V+X]=Z,n[2*H+X]=J,n[2*q+X]=K}var Q=d[N],$=d[B],tt=d[U];d[V]=Q,d[H]=$,d[q]=tt;var et=p[N],rt=p[B],nt=p[U];p[V]=et,p[H]=rt,p[q]=nt,o(b,t,r,n,d,p),o(x,e,r,n,d,p);for(var it=T;it<=S;++it)if(c(it,L,C,I,z,r,n,d))it!==T&&a(it,T,r,n,d,p),++T;else if(!c(it,P,O,R,F,r,n,d))for(;;){if(c(S,P,O,R,F,r,n,d)){c(S,L,C,I,z,r,n,d)?(s(it,T,S,r,n,d,p),++T,--S):(a(it,S,r,n,d,p),--S);break}if(--S<it)break}l(t,T-1,L,C,I,z,D,r,n,d,p),l(e,S+1,P,O,R,F,j,r,n,d,p),T-2-t<=f?i(t,T-2,r,n,d,p):h(t,T-2,r,n,d,p),e-(S+2)<=f?i(S+2,e,r,n,d,p):h(S+2,e,r,n,d,p),S-T<=f?i(T,S,r,n,d,p):h(T,S,r,n,d,p)}e.exports=n;var f=32},{}],242:[function(t,e,r){\"use strict\";function n(t,e,r,n,i,a,o,s){for(var l=r,u=r;u<n;++u){var c=t[2*u],h=t[2*u+1],f=e[u];i<=c&&c<=o&&a<=h&&h<=s&&(u===l?l+=1:(t[2*u]=t[2*l],t[2*u+1]=t[2*l+1],e[u]=e[l],t[2*l]=c,t[2*l+1]=h,e[l]=f,l+=1))}return l}function i(t,e,r){this.pixelSize=t,this.offset=e,this.count=r}function a(t,e,r,a){function l(i,a,o,s,u,c){var h=.5*o,f=s+1,d=u-s;r[_]=d,x[_++]=c;for(var p=0;p<2;++p)for(var m=0;m<2;++m){var v=i+p*h,g=a+m*h,y=n(t,e,f,u,v,g,v+h,g+h);if(y!==f){if(y-f>=Math.max(.9*d,32)){var b=u+s>>>1;l(v,g,h,f,b,c+1),f=b}l(v,g,h,f,y,c+1),f=y}}}var u=t.length>>>1;if(u<1)return[];for(var c=1/0,h=1/0,f=-1/0,d=-1/0,p=0;p<u;++p){var m=t[2*p],v=t[2*p+1];c=Math.min(c,m),f=Math.max(f,m),h=Math.min(h,v),d=Math.max(d,v),e[p]=p}c===f&&(f+=1+Math.abs(f)),h===d&&(d+=1+Math.abs(f));var g=1/(f-c),y=1/(d-h),b=Math.max(f-c,d-h);a=a||[0,0,0,0],a[0]=c,a[1]=h,a[2]=f,a[3]=d;var x=o.mallocInt32(u),_=0;l(c,h,b,0,u,0),s(x,t,e,r,u);for(var w=[],M=0,k=u,_=u-1;_>=0;--_){t[2*_]=(t[2*_]-c)*g,t[2*_+1]=(t[2*_+1]-h)*y;var A=x[_];A!==M&&(w.push(new i(b*Math.pow(.5,A),_+1,k-(_+1))),k=_+1,M=A)}return w.push(new i(b*Math.pow(.5,A+1),0,k)),o.free(x),w}var o=t(\"typedarray-pool\"),s=t(\"./lib/sort\");e.exports=a},{\"./lib/sort\":241,\"typedarray-pool\":541}],243:[function(t,e,r){\"use strict\";function n(t,e,r,n,i,a,o,s){this.plot=t,this.shader=e,this.pickShader=r,this.positionBuffer=n,this.sizeBuffer=i,this.colorBuffer=a,this.idBuffer=o,this.charBuffer=s,this.pointCount=0,this.pickOffset=0,this.points=null,this.scales=[],this.xCoords=[],this.charCanvas=document.createElement(\"canvas\"),this.charTexture=m(this.plot.gl,this.charCanvas),this.charStep=400,this.charFit=.255,this.snapThreshold=1e4,this.paletteTexture=m(this.plot.gl,[256,1])}function i(){var t=this.plot,e=t.viewBox,r=t.dataBox,n=t.pixelRatio,i=r[2]-r[0],a=r[3]-r[1],u=2/i,c=2/a,h=-r[0]-.5*i,f=-r[1]-.5*a;_[0]=u,w[0]=u-_[0],_[1]=c,w[1]=c-_[1],M[0]=h,k[0]=h-M[0],M[1]=f,k[1]=f-M[1];var d=e[2]-e[0],p=e[3]-e[1];o=Math.min(i/d,a/p),A[0]=2*n/d,A[1]=2*n/p,s=r[0],l=r[2]}function a(t,e){var r=t.gl,i=u(r,f.vertex,f.fragment),a=u(r,f.pickVertex,f.pickFragment),o=c(r),s=c(r),l=c(r),h=c(r),d=c(r),p=new n(t,i,a,o,s,l,h,d);return p.update(e),t.addObject(p),p}e.exports=a;var o,s,l,u=t(\"gl-shader\"),c=t(\"gl-buffer\"),h=t(\"typedarray-pool\"),f=t(\"./lib/shaders\"),d=t(\"snap-points-2d\"),p=t(\"font-atlas-sdf\"),m=t(\"gl-texture2d\"),v=t(\"color-id\"),g=t(\"ndarray\"),y=t(\"clamp\"),b=t(\"binary-search-bounds\"),x=n.prototype,_=new Float32Array([0,0]),w=new Float32Array([0,0]),M=new Float32Array([0,0]),k=new Float32Array([0,0]),A=[0,0],T=[0,0,0,0];x.drawPick=function(t){var e=void 0!==t,r=this.plot,n=this.pointCount,a=n>this.snapThreshold;if(!n)return t;i.call(this);var u=r.gl,c=e?this.pickShader:this.shader,h=u.isEnabled(u.BLEND);if(c.bind(),e){this.pickOffset=t;for(var f=0;f<4;++f)T[f]=t>>8*f&255;c.uniforms.pickOffset=T,this.idBuffer.bind(),c.attributes.id.pointer(u.UNSIGNED_BYTE,!1)}else u.blendFuncSeparate(u.SRC_ALPHA,u.ONE_MINUS_SRC_ALPHA,u.ONE,u.ONE_MINUS_SRC_ALPHA),u.blendColor(0,0,0,1),h||u.enable(u.BLEND),this.colorBuffer.bind(),c.attributes.color.pointer(u.UNSIGNED_BYTE,!1),this.charBuffer.bind(),c.attributes.char.pointer(u.UNSIGNED_BYTE,!1),c.uniforms.chars=this.charTexture.bind(0),c.uniforms.charsShape=[this.charCanvas.width,this.charCanvas.height],c.uniforms.charsStep=this.charStep,c.uniforms.palette=this.paletteTexture.bind(1);this.sizeBuffer.bind(),c.attributes.size.pointer(u.FLOAT,!1,8,0),e||c.attributes.border.pointer(u.FLOAT,!1,8,4),this.positionBuffer.bind(),c.attributes.positionHi.pointer(u.FLOAT,!1,16,0),c.attributes.positionLo.pointer(u.FLOAT,!1,16,8),c.uniforms.pixelRatio=r.pixelRatio,c.uniforms.scaleHi=_,c.uniforms.scaleLo=w,c.uniforms.translateHi=M,c.uniforms.translateLo=k,c.uniforms.viewBox=r.viewBox;var d=this.scales;if(a)for(var p=d.length-1;p>=0;p--){var m=d[p];if(!(m.pixelSize&&m.pixelSize<1.25*o&&p>1)){var v=m.offset,g=m.count+v,y=b.ge(this.xCoords,s,v,g-1),x=b.lt(this.xCoords,l,y,g-1)+1;x>y&&u.drawArrays(u.POINTS,y,x-y)}}else u.drawArrays(u.POINTS,0,n);if(e)return t+n;h?u.blendFunc(u.ONE,u.ONE_MINUS_SRC_ALPHA):u.disable(u.BLEND)},x.draw=x.drawPick,x.pick=function(t,e,r){var n=this.pickOffset,i=this.pointCount;if(r<n||r>=n+i)return null;var a=r-n,o=this.points;return{object:this,pointId:a,dataCoord:[o[2*a],o[2*a+1]]}},x.update=function(t){t=t||{};var e=t.positions||[],r=t.colors||[],n=t.glyphs||[],i=t.sizes||[],a=t.borderWidths||[],o=t.borderColors||[],s=this.plot.gl,l=this.pointCount,u=l>this.snapThreshold;if(null!=t.positions){this.points=e,l=this.points.length/2,u=l>this.snapThreshold;var c=h.mallocFloat32(2*l),f=h.mallocFloat64(2*l),m=h.mallocUint32(l),b=h.mallocFloat32(4*l);f.set(this.points),u&&(this.i2idx&&h.free(this.i2idx),this.i2idx=h.mallocInt32(l),this.scales=d(f,this.i2idx,c)),this.pointCount=l;for(var x=0;x<l;++x){var _=u?this.i2idx[x]:x;m[x]=_;var w=e[2*_],M=e[2*_+1];b[4*x]=w,b[4*x+1]=M,b[4*x+2]=w-b[4*x],b[4*x+3]=M-b[4*x+1],this.xCoords[x]=w}this.idBuffer.update(m),this.positionBuffer.update(b),h.free(b),h.free(m),h.free(f),h.free(c)}for(var k=h.mallocFloat32(2*l),A=h.mallocUint8(2*l),T=h.mallocUint8(2*l),S={},E=[],L=[],C=[],x=0,I=l,z=0;x<I;++x){var D=[255*r[4*x],255*r[4*x+1],255*r[4*x+2],255*r[4*x+3]],P=v(D,!1);null==S[P]&&(S[P]=z++,L.push(D[0]),L.push(D[1]),L.push(D[2]),L.push(D[3])),E.push(P),o&&o.length&&(D=[255*o[4*x],255*o[4*x+1],255*o[4*x+2],255*o[4*x+3]],P=v(D,!1),null==S[P]&&(S[P]=z++,L.push(D[0]),L.push(D[1]),L.push(D[2]),L.push(D[3])),C.push(P))}for(var O={},x=0,I=l,z=0;x<I;x++){var R=n[x];null==O[R]&&(O[R]=z++)}for(var F=0,x=0,I=i.length;x<I;++x)i[x]>F&&(F=i[x]);var j=this.charStep;this.charStep=y(Math.ceil(4*F),128,768);var N=Object.keys(O),B=this.charStep,U=Math.floor(B/2),V=s.getParameter(s.MAX_TEXTURE_SIZE),H=V/B*(V/B),q=Math.min(V,B*N.length),G=Math.min(V,B*Math.ceil(B*N.length/V)),Y=Math.floor(q/B);N.length>H&&console.warn(\"gl-scatter2d-fancy: number of characters is more than maximum texture size. Try reducing it.\"),this.chars&&this.chars+\"\"==N+\"\"&&this.charStep==j||(this.charCanvas=p({canvas:this.charCanvas,family:\"sans-serif\",size:U,shape:[q,G],step:[B,B],chars:N,align:!0,fit:this.charFit}),this.chars=N);for(var x=0;x<l;++x){var _=u?this.i2idx[x]:x,W=i[_],X=a[_];k[2*x]=2*W,k[2*x+1]=X;var P=E[_],Z=S[P];A[2*x]=Z;var J=C[_],K=S[J];A[2*x+1]=K;var R=n[_],Q=O[R];T[2*x+1]=Math.floor(Q/Y),T[2*x]=Q%Y}this.sizeBuffer.update(k),this.colorBuffer.update(A),this.charBuffer.update(T),this.charTexture.shape=[this.charCanvas.width,this.charCanvas.height],this.charCanvas&&this.charCanvas.width&&this.charTexture.setPixels(this.charCanvas),this.paletteTexture.setPixels(g(L.slice(0,1024),[256,1,4])),h.free(k),h.free(A),h.free(T)},x.dispose=function(){this.shader.dispose(),this.pickShader.dispose(),this.positionBuffer.dispose(),this.sizeBuffer.dispose(),this.colorBuffer.dispose(),this.idBuffer.dispose(),this.charBuffer.dispose(),this.plot.removeObject(this)}},{\"./lib/shaders\":232,\"binary-search-bounds\":233,clamp:88,\"color-id\":92,\"font-atlas-sdf\":134,\"gl-buffer\":156,\"gl-shader\":234,\"gl-texture2d\":267,ndarray:467,\"snap-points-2d\":242,\"typedarray-pool\":541}],244:[function(t,e,r){r.pointVertex=\"precision highp float;\\n#define GLSLIFY 1\\n\\nattribute vec2 positionHi, positionLo;\\nattribute float weight;\\n\\nuniform vec2 scaleHi, scaleLo, translateHi, translateLo;\\nuniform float pointSize, useWeight;\\n\\nvarying float fragWeight;\\n\\n\\nvec4 pfx_1_0(vec2 scaleHi, vec2 scaleLo, vec2 translateHi, vec2 translateLo, vec2 positionHi, vec2 positionLo) {\\n return vec4((positionHi + translateHi) * scaleHi\\n + (positionLo + translateLo) * scaleHi\\n + (positionHi + translateHi) * scaleLo\\n + (positionLo + translateLo) * scaleLo, 0.0, 1.0);\\n}\\n\\nvoid main() {\\n gl_Position = pfx_1_0(scaleHi, scaleLo, translateHi, translateLo, positionHi, positionLo);\\n gl_PointSize = pointSize;\\n fragWeight = mix(1.0, weight, useWeight);\\n}\",r.pointFragment=\"precision mediump float;\\n#define GLSLIFY 1\\n\\nuniform vec4 color, borderColor;\\nuniform float centerFraction;\\n\\nvarying float fragWeight;\\n\\nfloat smoothStep(float x, float y) {\\n return 1.0 / (1.0 + exp(50.0*(x - y)));\\n}\\n\\nvoid main() {\\n float radius = length(2.0*gl_PointCoord.xy-1.0);\\n if(radius > 1.0) {\\n discard;\\n }\\n vec4 baseColor = mix(borderColor, color, smoothStep(radius, centerFraction));\\n float alpha = 1.0 - pow(1.0 - baseColor.a, fragWeight);\\n gl_FragColor = vec4(baseColor.rgb * alpha, alpha);\\n}\\n\",r.pickVertex=\"precision highp float;\\n#define GLSLIFY 1\\n\\nvec4 pfx_1_0(vec2 scaleHi, vec2 scaleLo, vec2 translateHi, vec2 translateLo, vec2 positionHi, vec2 positionLo) {\\n return vec4((positionHi + translateHi) * scaleHi\\n + (positionLo + translateLo) * scaleHi\\n + (positionHi + translateHi) * scaleLo\\n + (positionLo + translateLo) * scaleLo, 0.0, 1.0);\\n}\\n\\nattribute vec2 positionHi, positionLo;\\nattribute vec4 pickId;\\n\\nuniform vec2 scaleHi, scaleLo, translateHi, translateLo;\\nuniform float pointSize;\\nuniform vec4 pickOffset;\\n\\nvarying vec4 fragId;\\n\\nvoid main() {\\n\\n vec4 id = pickId + pickOffset;\\n id.y += floor(id.x / 256.0);\\n id.x -= floor(id.x / 256.0) * 256.0;\\n\\n id.z += floor(id.y / 256.0);\\n id.y -= floor(id.y / 256.0) * 256.0;\\n\\n id.w += floor(id.z / 256.0);\\n id.z -= floor(id.z / 256.0) * 256.0;\\n\\n gl_Position = pfx_1_0(scaleHi, scaleLo, translateHi, translateLo, positionHi, positionLo);\\n gl_PointSize = pointSize;\\n fragId = id;\\n}\",r.pickFragment=\"precision mediump float;\\n#define GLSLIFY 1\\n\\nvarying vec4 fragId;\\n\\nvoid main() {\\n float radius = length(2.0 * gl_PointCoord.xy - 1.0);\\n if(radius > 1.0) {\\n discard;\\n }\\n gl_FragColor = fragId / 255.0;\\n}\"},{}],245:[function(t,e,r){arguments[4][84][0].apply(r,arguments)},{dup:84}],246:[function(t,e,r){arguments[4][241][0].apply(r,arguments)},{dup:241}],247:[function(t,e,r){arguments[4][242][0].apply(r,arguments)},{\"./lib/sort\":246,dup:242,\"typedarray-pool\":541}],248:[function(t,e,r){\"use strict\";function n(t,e,r,n,i,a,o){this.plot=t,this.positionBufferHi=e,this.positionBufferLo=r,this.pickBuffer=n,this.weightBuffer=i,this.shader=a,this.pickShader=o,this.scales=[],this.size=12,this.borderSize=1,this.pointCount=0,this.color=[1,0,0,1],this.borderColor=[0,0,0,1],this.bounds=[1/0,1/0,-1/0,-1/0],this.pickOffset=0,this.points=null,this.xCoords=null,this.snapPoints=!0}function i(t,e){var r=t.gl,i=o(r),s=o(r),l=o(r),u=o(r),h=a(r,c.pointVertex,c.pointFragment),f=a(r,c.pickVertex,c.pickFragment),d=new n(t,i,s,l,u,h,f);return d.update(e),t.addObject(d),d}var a=t(\"gl-shader\"),o=t(\"gl-buffer\"),s=t(\"binary-search-bounds\"),l=t(\"snap-points-2d\"),u=t(\"typedarray-pool\"),c=t(\"./lib/shader\"),h=t(\"array-normalize\"),f=t(\"array-bounds\");e.exports=i;var d=n.prototype,p=new Float32Array(2),m=new Float32Array(2),v=new Float32Array(2),g=new Float32Array(2),y=[0,0,0,0];d.dispose=function(){this.shader.dispose(),this.pickShader.dispose(),this.positionBufferHi.dispose(),this.positionBufferLo.dispose(),this.pickBuffer.dispose(),this.xCoords&&u.free(this.xCoords),this.plot.removeObject(this)},d.update=function(t){function e(e,r){return e in t?t[e]:r}if(t=t||{},this.size=e(\"size\",12),this.color=e(\"color\",[1,0,0,1]).slice(),this.borderSize=e(\"borderSize\",1),this.borderColor=e(\"borderColor\",[0,0,0,1]).slice(),this.snapPoints=e(\"snapPoints\",!0),null!=t.positions){this.xCoords&&u.free(this.xCoords),this.points=t.positions;var r=this.points.length>>>1,n=u.mallocInt32(r),i=u.mallocFloat32(r),a=u.mallocFloat64(2*r);if(a.set(this.points),this.snapPoints)this.scales=l(a,n,i,this.bounds);else{this.bounds=f(a,2),h(a,2,this.bounds);for(var o=0;o<r;o++)n[o]=o,i[o]=1}var s=u.mallocFloat64(r),c=u.mallocFloat32(2*r),d=u.mallocFloat32(2*r);c.set(a);for(var o=0,p=0;o<r;o++,p+=2)d[p]=a[p]-c[p],d[p+1]=a[p+1]-c[p+1],s[o]=a[p];this.positionBufferHi.update(c),this.positionBufferLo.update(d),this.pickBuffer.update(n),this.weightBuffer.update(i),u.free(c),u.free(d),u.free(i),u.free(a),u.free(n),this.xCoords=s,this.pointCount=r,this.pickOffset=0}},d.draw=function(t){var e=void 0!==t,r=this.plot,n=e?this.pickShader:this.shader,i=this.scales,a=this.positionBufferHi,o=this.positionBufferLo,s=this.pickBuffer,l=this.bounds,u=this.size,c=this.borderSize,h=r.gl,f=e?r.pickPixelRatio:r.pixelRatio,d=r.viewBox,b=r.dataBox;if(0===this.pointCount)return t;var x=l[2]-l[0],_=l[3]-l[1],w=b[2]-b[0],M=b[3]-b[1],k=(d[2]-d[0])*f/r.pixelRatio,A=(d[3]-d[1])*f/r.pixelRatio,T=this.pixelSize=Math.min(w/k,M/A),S=2*x/w,E=2*_/M;p[0]=S,p[1]=E,m[0]=S-p[0],m[1]=E-p[1];var L=(l[0]-b[0]-.5*w)/x,C=(l[1]-b[1]-.5*M)/_;v[0]=L,v[1]=C,g[0]=L-v[0],g[1]=C-v[1],n.bind(),n.uniforms.scaleHi=p,n.uniforms.scaleLo=m,n.uniforms.translateHi=v,n.uniforms.translateLo=g,n.uniforms.color=this.color,n.uniforms.borderColor=this.borderColor,n.uniforms.pointSize=f*(u+c),n.uniforms.centerFraction=0===this.borderSize?2:u/(u+c+1.25),a.bind(),n.attributes.positionHi.pointer(),o.bind(),n.attributes.positionLo.pointer(),e?(this.pickOffset=t,y[0]=255&t,y[1]=t>>8&255,y[2]=t>>16&255,y[3]=t>>24&255,n.uniforms.pickOffset=y,s.bind(),n.attributes.pickId.pointer(h.UNSIGNED_BYTE)):(n.uniforms.useWeight=1,this.weightBuffer.bind(),n.attributes.weight.pointer());var I=!0;if(this.snapPoints)for(var z=i.length-1;z>=0;z--){var D=i[z];if(!(D.pixelSize<T&&z>1)){var P=this.getVisibleRange(D),O=P[0],R=P[1];R>O&&h.drawArrays(h.POINTS,O,R-O),!e&&I&&(I=!1,n.uniforms.useWeight=0)}}else h.drawArrays(h.POINTS,0,this.pointCount);return t+this.pointCount},d.getVisibleRange=function(t){var e=this.plot.dataBox,r=this.bounds,n=this.pixelSize,i=this.size,a=this.plot.pixelRatio,o=r[2]-r[0];r[3],r[1];if(!t)for(var t,l=this.scales.length-1;l>=0&&(t=this.scales[l],t.pixelSize<n&&l>1);l--);var u=this.xCoords,c=(e[0]-r[0]-n*i*a)/o,h=(e[2]-r[0]+n*i*a)/o,f=t.offset,d=t.count+f,p=s.ge(u,c,f,d-1);return[p,s.lt(u,h,p,d-1)+1]},d.drawPick=d.draw,d.pick=function(t,e,r){var n=r-this.pickOffset;return n<0||n>=this.pointCount?null:{object:this,pointId:n,dataCoord:[this.points[2*n],this.points[2*n+1]]}}},{\"./lib/shader\":244,\"array-bounds\":44,\"array-normalize\":45,\"binary-search-bounds\":245,\"gl-buffer\":156,\"gl-shader\":255,\"snap-points-2d\":247,\"typedarray-pool\":541}],249:[function(t,e,r){\"use strict\";function n(t,e){var r=a[e];if(r||(r=a[e]={}),t in r)return r[t];for(var n=i(t,{textAlign:\"center\",textBaseline:\"middle\",lineHeight:1,font:e}),o=i(t,{triangles:!0,textAlign:\"center\",textBaseline:\"middle\",lineHeight:1,font:e}),s=[[1/0,1/0],[-1/0,-1/0]],l=0;l<n.positions.length;++l)for(var u=n.positions[l],c=0;c<2;++c)s[0][c]=Math.min(s[0][c],u[c]),s[1][c]=Math.max(s[1][c],u[c]);return r[t]=[o,n,s]}var i=t(\"vectorize-text\");e.exports=n;var a={}},{\"vectorize-text\":554}],250:[function(t,e,r){function n(t,e){var r=i(t,e),n=r.attributes;return n.position.location=0,n.color.location=1,n.glyph.location=2,n.id.location=3,r}var i=t(\"gl-shader\"),a=\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute vec3 position;\\nattribute vec4 color;\\nattribute vec2 glyph;\\nattribute vec4 id;\\n\\n\\nuniform vec4 highlightId;\\nuniform float highlightScale;\\nuniform mat4 model, view, projection;\\nuniform vec3 clipBounds[2];\\n\\nvarying vec4 interpColor;\\nvarying vec4 pickId;\\nvarying vec3 dataCoordinate;\\n\\nvoid main() {\\n if(any(lessThan(position, clipBounds[0])) || \\n any(greaterThan(position, clipBounds[1])) ) {\\n gl_Position = vec4(0,0,0,0);\\n } else {\\n float scale = 1.0;\\n if(distance(highlightId, id) < 0.0001) {\\n scale = highlightScale;\\n }\\n\\n vec4 worldPosition = model * vec4(position, 1);\\n vec4 viewPosition = view * worldPosition;\\n viewPosition = viewPosition / viewPosition.w;\\n vec4 clipPosition = projection * (viewPosition + scale * vec4(glyph.x, -glyph.y, 0, 0));\\n \\n gl_Position = clipPosition;\\n interpColor = color;\\n pickId = id;\\n dataCoordinate = position;\\n }\\n}\",o=\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute vec3 position;\\nattribute vec4 color;\\nattribute vec2 glyph;\\nattribute vec4 id;\\n\\nuniform mat4 model, view, projection;\\nuniform vec2 screenSize;\\nuniform vec3 clipBounds[2];\\nuniform float highlightScale, pixelRatio;\\nuniform vec4 highlightId;\\n\\nvarying vec4 interpColor;\\nvarying vec4 pickId;\\nvarying vec3 dataCoordinate;\\n\\nvoid main() {\\n if(any(lessThan(position, clipBounds[0])) || any(greaterThan(position, clipBounds[1]))) {\\n gl_Position = vec4(0,0,0,0);\\n } else {\\n float scale = pixelRatio;\\n if(distance(highlightId.bgr, id.bgr) < 0.001) {\\n scale *= highlightScale;\\n }\\n\\n vec4 worldPosition = model * vec4(position, 1.0);\\n vec4 viewPosition = view * worldPosition;\\n vec4 clipPosition = projection * viewPosition;\\n clipPosition /= clipPosition.w;\\n \\n gl_Position = clipPosition + vec4(screenSize * scale * vec2(glyph.x, -glyph.y), 0.0, 0.0);\\n interpColor = color;\\n pickId = id;\\n dataCoordinate = position;\\n }\\n}\",s=\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute vec3 position;\\nattribute vec4 color;\\nattribute vec2 glyph;\\nattribute vec4 id;\\n\\nuniform float highlightScale;\\nuniform vec4 highlightId;\\nuniform vec3 axes[2];\\nuniform mat4 model, view, projection;\\nuniform vec2 screenSize;\\nuniform vec3 clipBounds[2];\\nuniform float scale, pixelRatio;\\n\\nvarying vec4 interpColor;\\nvarying vec4 pickId;\\nvarying vec3 dataCoordinate;\\n\\nvoid main() {\\n if(any(lessThan(position, clipBounds[0])) ||\\n any(greaterThan(position, clipBounds[1])) ) {\\n gl_Position = vec4(0,0,0,0);\\n } else {\\n float lscale = pixelRatio * scale;\\n if(distance(highlightId, id) < 0.0001) {\\n lscale *= highlightScale;\\n }\\n\\n vec4 clipCenter = projection * view * model * vec4(position, 1);\\n vec3 dataPosition = position + 0.5*lscale*(axes[0] * glyph.x + axes[1] * glyph.y) * clipCenter.w * screenSize.y;\\n vec4 clipPosition = projection * view * model * vec4(dataPosition, 1);\\n\\n gl_Position = clipPosition;\\n interpColor = color;\\n pickId = id;\\n dataCoordinate = dataPosition;\\n }\\n}\\n\",l=\"precision mediump float;\\n#define GLSLIFY 1\\n\\nuniform vec3 fragClipBounds[2];\\nuniform float opacity;\\n\\nvarying vec4 interpColor;\\nvarying vec4 pickId;\\nvarying vec3 dataCoordinate;\\n\\nvoid main() {\\n if(any(lessThan(dataCoordinate, fragClipBounds[0])) ||\\n any(greaterThan(dataCoordinate, fragClipBounds[1])) ) {\\n discard;\\n } else {\\n gl_FragColor = interpColor * opacity;\\n }\\n}\\n\",u=\"precision mediump float;\\n#define GLSLIFY 1\\n\\nuniform vec3 fragClipBounds[2];\\nuniform float pickGroup;\\n\\nvarying vec4 pickId;\\nvarying vec3 dataCoordinate;\\n\\nvoid main() {\\n if(any(lessThan(dataCoordinate, fragClipBounds[0])) || \\n any(greaterThan(dataCoordinate, fragClipBounds[1])) ) {\\n discard;\\n } else {\\n gl_FragColor = vec4(pickGroup, pickId.bgr);\\n }\\n}\",c=[{name:\"position\",type:\"vec3\"},{name:\"color\",type:\"vec4\"},{name:\"glyph\",type:\"vec2\"},{name:\"id\",type:\"vec4\"}],h={vertex:a,fragment:l,attributes:c},f={vertex:o,fragment:l,attributes:c},d={vertex:s,fragment:l,attributes:c},p={vertex:a,fragment:u,attributes:c},m={vertex:o,fragment:u,attributes:c},v={vertex:s,fragment:u,attributes:c};r.createPerspective=function(t){return n(t,h)},r.createOrtho=function(t){return n(t,f)},r.createProject=function(t){return n(t,d)},r.createPickPerspective=function(t){return n(t,p)},r.createPickOrtho=function(t){return n(t,m)},r.createPickProject=function(t){return n(t,v)}},{\"gl-shader\":255}],251:[function(t,e,r){\"use strict\";function n(t,e){var r=t[0],n=t[1],i=t[2],a=t[3];return t[0]=e[0]*r+e[4]*n+e[8]*i+e[12]*a,t[1]=e[1]*r+e[5]*n+e[9]*i+e[13]*a,t[2]=e[2]*r+e[6]*n+e[10]*i+e[14]*a,t[3]=e[3]*r+e[7]*n+e[11]*i+e[15]*a,t}function i(t,e,r,i){return n(i,i,r),n(i,i,e),n(i,i,t)}function a(t,e){this.index=t,this.dataCoordinate=this.position=e}function o(t,e,r,n,i,o,s,l,u,c,h,f){this.gl=t,this.pixelRatio=1,this.shader=e,this.orthoShader=r,this.projectShader=n,this.pointBuffer=i,this.colorBuffer=o,this.glyphBuffer=s,this.idBuffer=l,this.vao=u,this.vertexCount=0,this.lineVertexCount=0,this.opacity=1,this.lineWidth=0,this.projectScale=[2/3,2/3,2/3],this.projectOpacity=[1,1,1],this.pickId=0,this.pickPerspectiveShader=c,this.pickOrthoShader=h,this.pickProjectShader=f,this.points=[],this._selectResult=new a(0,[0,0,0]),this.useOrtho=!0,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.axesProject=[!0,!0,!0],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.highlightId=[1,1,1,1],this.highlightScale=2,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.dirty=!0}function s(t){return t[0]=t[1]=t[2]=0,t}function l(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=1,t}function u(t,e,r,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[r]=n,t}function c(t){for(var e=L,r=0;r<2;++r)for(var n=0;n<3;++n)e[r][n]=Math.max(Math.min(t[r][n],1e8),-1e8);return e}function h(t,e,r,n,a){var o,h=e.axesProject,f=e.gl,d=t.uniforms,p=r.model||x,m=r.view||x,v=r.projection||x,y=e.axesBounds,b=c(e.clipBounds);o=e.axes?e.axes.lastCubeProps.axis:[1,1,1],w[0]=2/f.drawingBufferWidth,w[1]=2/f.drawingBufferHeight,t.bind(),d.view=m,d.projection=v,d.screenSize=w,d.highlightId=e.highlightId,d.highlightScale=e.highlightScale,d.clipBounds=b,\n", "d.pickGroup=e.pickId/255,d.pixelRatio=e.pixelRatio;for(var _=0;_<3;++_)if(h[_]&&e.projectOpacity[_]<1===n){d.scale=e.projectScale[_],d.opacity=e.projectOpacity[_];for(var L=S,C=0;C<16;++C)L[C]=0;for(var C=0;C<4;++C)L[5*C]=1;L[5*_]=0,o[_]<0?L[12+_]=y[0][_]:L[12+_]=y[1][_],g(L,p,L),d.model=L;var I=(_+1)%3,z=(_+2)%3,D=s(M),P=s(k);D[I]=1,P[z]=1;var O=i(v,m,p,l(A,D)),R=i(v,m,p,l(T,P));if(Math.abs(O[1])>Math.abs(R[1])){var F=O;O=R,R=F,F=D,D=P,P=F;var j=I;I=z,z=j}O[0]<0&&(D[I]=-1),R[1]>0&&(P[z]=-1);for(var N=0,B=0,C=0;C<4;++C)N+=Math.pow(p[4*I+C],2),B+=Math.pow(p[4*z+C],2);D[I]/=Math.sqrt(N),P[z]/=Math.sqrt(B),d.axes[0]=D,d.axes[1]=P,d.fragClipBounds[0]=u(E,b[0],_,-1e8),d.fragClipBounds[1]=u(E,b[1],_,1e8),e.vao.draw(f.TRIANGLES,e.vertexCount),e.lineWidth>0&&(f.lineWidth(e.lineWidth),e.vao.draw(f.LINES,e.lineVertexCount,e.vertexCount))}}function f(t,e,r,n,i,a){var o=r.gl;if(r.vao.bind(),i===r.opacity<1||a){t.bind();var s=t.uniforms;s.model=n.model||x,s.view=n.view||x,s.projection=n.projection||x,w[0]=2/o.drawingBufferWidth,w[1]=2/o.drawingBufferHeight,s.screenSize=w,s.highlightId=r.highlightId,s.highlightScale=r.highlightScale,s.fragClipBounds=z,s.clipBounds=r.axes.bounds,s.opacity=r.opacity,s.pickGroup=r.pickId/255,s.pixelRatio=r.pixelRatio,r.vao.draw(o.TRIANGLES,r.vertexCount),r.lineWidth>0&&(o.lineWidth(r.lineWidth),r.vao.draw(o.LINES,r.lineVertexCount,r.vertexCount))}h(e,r,n,i,a),r.vao.unbind()}function d(t){var e=t.gl,r=y.createPerspective(e),n=y.createOrtho(e),i=y.createProject(e),a=y.createPickPerspective(e),s=y.createPickOrtho(e),l=y.createPickProject(e),u=p(e),c=p(e),h=p(e),f=p(e),d=m(e,[{buffer:u,size:3,type:e.FLOAT},{buffer:c,size:4,type:e.FLOAT},{buffer:h,size:2,type:e.FLOAT},{buffer:f,size:4,type:e.UNSIGNED_BYTE,normalized:!0}]),v=new o(e,r,n,i,u,c,h,f,d,a,s,l);return v.update(t),v}var p=t(\"gl-buffer\"),m=t(\"gl-vao\"),v=t(\"typedarray-pool\"),g=t(\"gl-mat4/multiply\"),y=t(\"./lib/shaders\"),b=t(\"./lib/glyphs\"),x=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];e.exports=d;var _=o.prototype;_.pickSlots=1,_.setPickBase=function(t){this.pickId=t},_.isTransparent=function(){if(this.opacity<1)return!0;for(var t=0;t<3;++t)if(this.axesProject[t]&&this.projectOpacity[t]<1)return!0;return!1},_.isOpaque=function(){if(this.opacity>=1)return!0;for(var t=0;t<3;++t)if(this.axesProject[t]&&this.projectOpacity[t]>=1)return!0;return!1};var w=[0,0],M=[0,0,0],k=[0,0,0],A=[0,0,0,1],T=[0,0,0,1],S=x.slice(),E=[0,0,0],L=[[0,0,0],[0,0,0]],C=[-1e8,-1e8,-1e8],I=[1e8,1e8,1e8],z=[C,I];_.draw=function(t){f(this.useOrtho?this.orthoShader:this.shader,this.projectShader,this,t,!1,!1)},_.drawTransparent=function(t){f(this.useOrtho?this.orthoShader:this.shader,this.projectShader,this,t,!0,!1)},_.drawPick=function(t){f(this.useOrtho?this.pickOrthoShader:this.pickPerspectiveShader,this.pickProjectShader,this,t,!1,!0)},_.pick=function(t){if(!t)return null;if(t.id!==this.pickId)return null;var e=t.value[2]+(t.value[1]<<8)+(t.value[0]<<16);if(e>=this.pointCount||e<0)return null;var r=this.points[e],n=this._selectResult;n.index=e;for(var i=0;i<3;++i)n.position[i]=n.dataCoordinate[i]=r[i];return n},_.highlight=function(t){if(t){var e=t.index,r=255&e,n=e>>8&255,i=e>>16&255;this.highlightId=[r/255,n/255,i/255,0]}else this.highlightId=[1,1,1,1]},_.update=function(t){if(t=t||{},\"perspective\"in t&&(this.useOrtho=!t.perspective),\"orthographic\"in t&&(this.useOrtho=!!t.orthographic),\"lineWidth\"in t&&(this.lineWidth=t.lineWidth),\"project\"in t)if(Array.isArray(t.project))this.axesProject=t.project;else{var e=!!t.project;this.axesProject=[e,e,e]}if(\"projectScale\"in t)if(Array.isArray(t.projectScale))this.projectScale=t.projectScale.slice();else{var r=+t.projectScale;this.projectScale=[r,r,r]}if(\"projectOpacity\"in t)if(Array.isArray(t.projectOpacity))this.projectOpacity=t.projectOpacity.slice();else{var r=+t.projectOpacity;this.projectOpacity=[r,r,r]}\"opacity\"in t&&(this.opacity=t.opacity),this.dirty=!0;var n=t.position;if(n){var i=t.font||\"normal\",a=t.alignment||[0,0],o=[1/0,1/0,1/0],s=[-1/0,-1/0,-1/0],l=t.glyph,u=t.color,c=t.size,h=t.angle,f=t.lineColor,d=0,p=0,m=0,g=n.length;t:for(var y=0;y<g;++y){for(var x=n[y],_=0;_<3;++_)if(isNaN(x[_])||!isFinite(x[_]))continue t;var w;w=Array.isArray(l)?b(l[y],i):l?b(l,i):b(\"\\u25cf\",i);var M=w[0],k=w[1],A=w[2];p+=3*M.cells.length,m+=2*k.edges.length}var T=p+m,S=v.mallocFloat(3*T),E=v.mallocFloat(4*T),L=v.mallocFloat(2*T),C=v.mallocUint32(T),I=[0,a[1]],z=0,D=p,P=[0,0,0,1],O=[0,0,0,1],R=Array.isArray(u)&&Array.isArray(u[0]),F=Array.isArray(f)&&Array.isArray(f[0]);t:for(var y=0;y<g;++y){for(var x=n[y],_=0;_<3;++_){if(isNaN(x[_])||!isFinite(x[_])){d+=1;continue t}s[_]=Math.max(s[_],x[_]),o[_]=Math.min(o[_],x[_])}var w;w=Array.isArray(l)?b(l[y],i):l?b(l,i):b(\"\\u25cf\",i);var M=w[0],k=w[1],A=w[2];if(Array.isArray(u)){var j;if(j=R?u[y]:u,3===j.length){for(var _=0;_<3;++_)P[_]=j[_];P[3]=1}else if(4===j.length)for(var _=0;_<4;++_)P[_]=j[_]}else P[0]=P[1]=P[2]=0,P[3]=1;if(Array.isArray(f)){var j;if(j=F?f[y]:f,3===j.length){for(var _=0;_<3;++_)O[_]=j[_];O[_]=1}else if(4===j.length)for(var _=0;_<4;++_)O[_]=j[_]}else O[0]=O[1]=O[2]=0,O[3]=1;var N=.5;Array.isArray(c)?N=+c[y]:c?N=+c:this.useOrtho&&(N=12);var B=0;Array.isArray(h)?B=+h[y]:h&&(B=+h);for(var U=Math.cos(B),V=Math.sin(B),x=n[y],_=0;_<3;++_)s[_]=Math.max(s[_],x[_]),o[_]=Math.min(o[_],x[_]);a[0]<0?I[0]=a[0]*(1+A[1][0]):a[0]>0&&(I[0]=-a[0]*(1+A[0][0]));for(var H=M.cells,q=M.positions,_=0;_<H.length;++_)for(var G=H[_],Y=0;Y<3;++Y){for(var W=0;W<3;++W)S[3*z+W]=x[W];for(var W=0;W<4;++W)E[4*z+W]=P[W];C[z]=d;var X=q[G[Y]];L[2*z]=N*(U*X[0]-V*X[1]+I[0]),L[2*z+1]=N*(V*X[0]+U*X[1]+I[1]),z+=1}for(var H=k.edges,q=k.positions,_=0;_<H.length;++_)for(var G=H[_],Y=0;Y<2;++Y){for(var W=0;W<3;++W)S[3*D+W]=x[W];for(var W=0;W<4;++W)E[4*D+W]=O[W];C[D]=d;var X=q[G[Y]];L[2*D]=N*(U*X[0]-V*X[1]+I[0]),L[2*D+1]=N*(V*X[0]+U*X[1]+I[1]),D+=1}d+=1}this.vertexCount=p,this.lineVertexCount=m,this.pointBuffer.update(S),this.colorBuffer.update(E),this.glyphBuffer.update(L),this.idBuffer.update(new Uint32Array(C)),v.free(S),v.free(E),v.free(L),v.free(C),this.bounds=[o,s],this.points=n,this.pointCount=n.length}},_.dispose=function(){this.shader.dispose(),this.orthoShader.dispose(),this.pickPerspectiveShader.dispose(),this.pickOrthoShader.dispose(),this.vao.dispose(),this.pointBuffer.dispose(),this.colorBuffer.dispose(),this.glyphBuffer.dispose(),this.idBuffer.dispose()}},{\"./lib/glyphs\":249,\"./lib/shaders\":250,\"gl-buffer\":156,\"gl-mat4/multiply\":183,\"gl-vao\":271,\"typedarray-pool\":541}],252:[function(t,e,r){\"use strict\";r.boxVertex=\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute vec2 vertex;\\n\\nuniform vec2 cornerA, cornerB;\\n\\nvoid main() {\\n gl_Position = vec4(mix(cornerA, cornerB, vertex), 0, 1);\\n}\\n\",r.boxFragment=\"precision mediump float;\\n#define GLSLIFY 1\\n\\nuniform vec4 color;\\n\\nvoid main() {\\n gl_FragColor = color;\\n}\\n\"},{}],253:[function(t,e,r){\"use strict\";function n(t,e,r){this.plot=t,this.boxBuffer=e,this.boxShader=r,this.enabled=!0,this.selectBox=[1/0,1/0,-1/0,-1/0],this.borderColor=[0,0,0,1],this.innerFill=!1,this.innerColor=[0,0,0,.25],this.outerFill=!0,this.outerColor=[0,0,0,.5],this.borderWidth=10}function i(t,e){var r=t.gl,i=o(r,[0,0,0,1,1,0,1,1]),l=a(r,s.boxVertex,s.boxFragment),u=new n(t,i,l);return u.update(e),t.addOverlay(u),u}var a=t(\"gl-shader\"),o=t(\"gl-buffer\"),s=t(\"./lib/shaders\");e.exports=i;var l=n.prototype;l.draw=function(){if(this.enabled){var t=this.plot,e=this.selectBox,r=this.borderWidth,n=(this.innerFill,this.innerColor),i=(this.outerFill,this.outerColor),a=this.borderColor,o=t.box,s=t.screenBox,l=t.dataBox,u=t.viewBox,c=t.pixelRatio,h=(e[0]-l[0])*(u[2]-u[0])/(l[2]-l[0])+u[0],f=(e[1]-l[1])*(u[3]-u[1])/(l[3]-l[1])+u[1],d=(e[2]-l[0])*(u[2]-u[0])/(l[2]-l[0])+u[0],p=(e[3]-l[1])*(u[3]-u[1])/(l[3]-l[1])+u[1];if(h=Math.max(h,u[0]),f=Math.max(f,u[1]),d=Math.min(d,u[2]),p=Math.min(p,u[3]),!(d<h||p<f)){o.bind();var m=s[2]-s[0],v=s[3]-s[1];if(this.outerFill&&(o.drawBox(0,0,m,f,i),o.drawBox(0,f,h,p,i),o.drawBox(0,p,m,v,i),o.drawBox(d,f,m,p,i)),this.innerFill&&o.drawBox(h,f,d,p,n),r>0){var g=r*c;o.drawBox(h-g,f-g,d+g,f+g,a),o.drawBox(h-g,p-g,d+g,p+g,a),o.drawBox(h-g,f-g,h+g,p+g,a),o.drawBox(d-g,f-g,d+g,p+g,a)}}}},l.update=function(t){t=t||{},this.innerFill=!!t.innerFill,this.outerFill=!!t.outerFill,this.innerColor=(t.innerColor||[0,0,0,.5]).slice(),this.outerColor=(t.outerColor||[0,0,0,.5]).slice(),this.borderColor=(t.borderColor||[0,0,0,1]).slice(),this.borderWidth=t.borderWidth||0,this.selectBox=(t.selectBox||this.selectBox).slice()},l.dispose=function(){this.boxBuffer.dispose(),this.boxShader.dispose(),this.plot.removeOverlay(this)}},{\"./lib/shaders\":252,\"gl-buffer\":156,\"gl-shader\":255}],254:[function(t,e,r){\"use strict\";function n(t,e,r,n,i){this.coord=[t,e],this.id=r,this.value=n,this.distance=i}function i(t,e,r){this.gl=t,this.fbo=e,this.buffer=r,this._readTimeout=null;var n=this;this._readCallback=function(){n.gl&&(e.bind(),t.readPixels(0,0,e.shape[0],e.shape[1],t.RGBA,t.UNSIGNED_BYTE,n.buffer),n._readTimeout=null)}}function a(t,e){return new i(t,o(t,e),s.mallocUint8(e[0]*e[1]*4))}e.exports=a;var o=t(\"gl-fbo\"),s=t(\"typedarray-pool\"),l=t(\"ndarray\"),u=t(\"bit-twiddle\").nextPow2,c=t(\"cwise/lib/wrapper\")({args:[\"array\",{offset:[0,0,1],array:0},{offset:[0,0,2],array:0},{offset:[0,0,3],array:0},\"scalar\",\"scalar\",\"index\"],pre:{body:\"{this_closestD2=1e8,this_closestX=-1,this_closestY=-1}\",args:[],thisVars:[\"this_closestD2\",\"this_closestX\",\"this_closestY\"],localVars:[]},body:{body:\"{if(_inline_46_arg0_<255||_inline_46_arg1_<255||_inline_46_arg2_<255||_inline_46_arg3_<255){var _inline_46_l=_inline_46_arg4_-_inline_46_arg6_[0],_inline_46_a=_inline_46_arg5_-_inline_46_arg6_[1],_inline_46_f=_inline_46_l*_inline_46_l+_inline_46_a*_inline_46_a;_inline_46_f<this_closestD2&&(this_closestD2=_inline_46_f,this_closestX=_inline_46_arg6_[0],this_closestY=_inline_46_arg6_[1])}}\",args:[{name:\"_inline_46_arg0_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_46_arg1_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_46_arg2_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_46_arg3_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_46_arg4_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_46_arg5_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_46_arg6_\",lvalue:!1,rvalue:!0,count:4}],thisVars:[\"this_closestD2\",\"this_closestX\",\"this_closestY\"],localVars:[\"_inline_46_a\",\"_inline_46_f\",\"_inline_46_l\"]},post:{body:\"{return[this_closestX,this_closestY,this_closestD2]}\",args:[],thisVars:[\"this_closestD2\",\"this_closestX\",\"this_closestY\"],localVars:[]},debug:!1,funcName:\"cwise\",blockSize:64}),h=i.prototype;Object.defineProperty(h,\"shape\",{get:function(){return this.gl?this.fbo.shape.slice():[0,0]},set:function(t){if(this.gl){this.fbo.shape=t;var e=this.fbo.shape[0],r=this.fbo.shape[1];if(r*e*4>this.buffer.length){s.free(this.buffer);for(var n=this.buffer=s.mallocUint8(u(r*e*4)),i=0;i<r*e*4;++i)n[i]=255}return t}}}),h.begin=function(){var t=this.gl;this.shape;t&&(this.fbo.bind(),t.clearColor(1,1,1,1),t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT))},h.end=function(){var t=this.gl;t&&(t.bindFramebuffer(t.FRAMEBUFFER,null),this._readTimeout||clearTimeout(this._readTimeout),this._readTimeout=setTimeout(this._readCallback,1))},h.query=function(t,e,r){if(!this.gl)return null;var i=this.fbo.shape.slice();t|=0,e|=0,\"number\"!=typeof r&&(r=1);var a=0|Math.min(Math.max(t-r,0),i[0]),o=0|Math.min(Math.max(t+r,0),i[0]),s=0|Math.min(Math.max(e-r,0),i[1]),u=0|Math.min(Math.max(e+r,0),i[1]);if(o<=a||u<=s)return null;var h=[o-a,u-s],f=l(this.buffer,[h[0],h[1],4],[4,4*i[0],1],4*(a+i[0]*s)),d=c(f.hi(h[0],h[1],1),r,r),p=d[0],m=d[1];return p<0||Math.pow(this.radius,2)<d[2]?null:new n(p+a|0,m+s|0,f.get(p,m,0),[f.get(p,m,1),f.get(p,m,2),f.get(p,m,3)],Math.sqrt(d[2]))},h.dispose=function(){this.gl&&(this.fbo.dispose(),s.free(this.buffer),this.gl=null,this._readTimeout&&clearTimeout(this._readTimeout))}},{\"bit-twiddle\":67,\"cwise/lib/wrapper\":113,\"gl-fbo\":164,ndarray:467,\"typedarray-pool\":541}],255:[function(t,e,r){\"use strict\";function n(t){this.gl=t,this._vref=this._fref=this._relink=this.vertShader=this.fragShader=this.program=this.attributes=this.uniforms=this.types=null}function i(t,e){return t.name<e.name?-1:1}function a(t,e,r,i,a){var o=new n(t);return o.update(e,r,i,a),o}var o=t(\"./lib/create-uniforms\"),s=t(\"./lib/create-attributes\"),l=t(\"./lib/reflect\"),u=t(\"./lib/shader-cache\"),c=t(\"./lib/runtime-reflect\"),h=t(\"./lib/GLError\"),f=n.prototype;f.bind=function(){this.program||this._relink(),this.gl.useProgram(this.program)},f.dispose=function(){this._fref&&this._fref.dispose(),this._vref&&this._vref.dispose(),this.attributes=this.types=this.vertShader=this.fragShader=this.program=this._relink=this._fref=this._vref=null},f.update=function(t,e,r,n){function a(){d.program=u.program(p,d._vref,d._fref,x,_);for(var t=0;t<r.length;++t)E[t]=p.getUniformLocation(d.program,r[t].name)}if(!e||1===arguments.length){var f=t;t=f.vertex,e=f.fragment,r=f.uniforms,n=f.attributes}var d=this,p=d.gl,m=d._vref;d._vref=u.shader(p,p.VERTEX_SHADER,t),m&&m.dispose(),d.vertShader=d._vref.shader;var v=this._fref;if(d._fref=u.shader(p,p.FRAGMENT_SHADER,e),v&&v.dispose(),d.fragShader=d._fref.shader,!r||!n){var g=p.createProgram();if(p.attachShader(g,d.fragShader),p.attachShader(g,d.vertShader),p.linkProgram(g),!p.getProgramParameter(g,p.LINK_STATUS)){var y=p.getProgramInfoLog(g);throw new h(y,\"Error linking program:\"+y)}r=r||c.uniforms(p,g),n=n||c.attributes(p,g),p.deleteProgram(g)}n=n.slice(),n.sort(i);for(var b=[],x=[],_=[],w=0;w<n.length;++w){var M=n[w];if(M.type.indexOf(\"mat\")>=0){for(var k=0|M.type.charAt(M.type.length-1),A=new Array(k),T=0;T<k;++T)A[T]=_.length,x.push(M.name+\"[\"+T+\"]\"),\"number\"==typeof M.location?_.push(M.location+T):Array.isArray(M.location)&&M.location.length===k&&\"number\"==typeof M.location[T]?_.push(0|M.location[T]):_.push(-1);b.push({name:M.name,type:M.type,locations:A})}else b.push({name:M.name,type:M.type,locations:[_.length]}),x.push(M.name),\"number\"==typeof M.location?_.push(0|M.location):_.push(-1)}for(var S=0,w=0;w<_.length;++w)if(_[w]<0){for(;_.indexOf(S)>=0;)S+=1;_[w]=S}var E=new Array(r.length);a(),d._relink=a,d.types={uniforms:l(r),attributes:l(n)},d.attributes=s(p,d,b,_),Object.defineProperty(d,\"uniforms\",o(p,d,r,E))},e.exports=a},{\"./lib/GLError\":256,\"./lib/create-attributes\":257,\"./lib/create-uniforms\":258,\"./lib/reflect\":259,\"./lib/runtime-reflect\":260,\"./lib/shader-cache\":261}],256:[function(t,e,r){arguments[4][213][0].apply(r,arguments)},{dup:213}],257:[function(t,e,r){arguments[4][214][0].apply(r,arguments)},{\"./GLError\":256,dup:214}],258:[function(t,e,r){arguments[4][215][0].apply(r,arguments)},{\"./GLError\":256,\"./reflect\":259,dup:215}],259:[function(t,e,r){arguments[4][216][0].apply(r,arguments)},{dup:216}],260:[function(t,e,r){arguments[4][217][0].apply(r,arguments)},{dup:217}],261:[function(t,e,r){arguments[4][218][0].apply(r,arguments)},{\"./GLError\":256,dup:218,\"gl-format-compiler-error\":165,\"weakmap-shim\":562}],262:[function(t,e,r){\"use strict\";function n(t){this.plot=t,this.enable=[!0,!0,!1,!1],this.width=[1,1,1,1],this.color=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.center=[1/0,1/0]}function i(t,e){var r=new n(t);return r.update(e),t.addOverlay(r),r}e.exports=i;var a=n.prototype;a.update=function(t){t=t||{},this.enable=(t.enable||[!0,!0,!1,!1]).slice(),this.width=(t.width||[1,1,1,1]).slice(),this.color=(t.color||[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]]).map(function(t){return t.slice()}),this.center=(t.center||[1/0,1/0]).slice(),this.plot.setOverlayDirty()},a.draw=function(){var t=this.enable,e=this.width,r=this.color,n=this.center,i=this.plot,a=i.line,o=i.dataBox,s=i.viewBox;if(a.bind(),o[0]<=n[0]&&n[0]<=o[2]&&o[1]<=n[1]&&n[1]<=o[3]){var l=s[0]+(n[0]-o[0])/(o[2]-o[0])*(s[2]-s[0]),u=s[1]+(n[1]-o[1])/(o[3]-o[1])*(s[3]-s[1]);t[0]&&a.drawLine(l,u,s[0],u,e[0],r[0]),t[1]&&a.drawLine(l,u,l,s[1],e[1],r[1]),t[2]&&a.drawLine(l,u,s[2],u,e[2],r[2]),t[3]&&a.drawLine(l,u,l,s[3],e[3],r[3])}},a.dispose=function(){this.plot.removeOverlay(this)}},{}],263:[function(t,e,r){\"use strict\";var n=t(\"gl-shader\");e.exports=function(t){return n(t,\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute vec3 position, color;\\nattribute float weight;\\n\\nuniform mat4 model, view, projection;\\nuniform vec3 coordinates[3];\\nuniform vec4 colors[3];\\nuniform vec2 screenShape;\\nuniform float lineWidth;\\n\\nvarying vec4 fragColor;\\n\\nvoid main() {\\n vec3 vertexPosition = mix(coordinates[0],\\n mix(coordinates[2], coordinates[1], 0.5 * (position + 1.0)), abs(position));\\n\\n vec4 clipPos = projection * view * model * vec4(vertexPosition, 1.0);\\n vec2 clipOffset = (projection * view * model * vec4(color, 0.0)).xy;\\n vec2 delta = weight * clipOffset * screenShape;\\n vec2 lineOffset = normalize(vec2(delta.y, -delta.x)) / screenShape;\\n\\n gl_Position = vec4(clipPos.xy + clipPos.w * 0.5 * lineWidth * lineOffset, clipPos.z, clipPos.w);\\n fragColor = color.x * colors[0] + color.y * colors[1] + color.z * colors[2];\\n}\\n\",\"precision mediump float;\\n#define GLSLIFY 1\\n\\nvarying vec4 fragColor;\\n\\nvoid main() {\\n gl_FragColor = fragColor;\\n}\",null,[{name:\"position\",type:\"vec3\"},{name:\"color\",type:\"vec3\"},{name:\"weight\",type:\"float\"}])}},{\"gl-shader\":255}],264:[function(t,e,r){\"use strict\";function n(t,e,r,n){this.gl=t,this.buffer=e,this.vao=r,this.shader=n,this.pixelRatio=1,this.bounds=[[-1e3,-1e3,-1e3],[1e3,1e3,1e3]],this.position=[0,0,0],this.lineWidth=[2,2,2],this.colors=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.enabled=[!0,!0,!0],this.drawSides=[!0,!0,!0],this.axes=null}function i(t,e){function r(t,e,r,n,a,o){var s=[t,e,r,0,0,0,1];s[n+3]=1,s[n]=a,i.push.apply(i,s),s[6]=-1,i.push.apply(i,s),s[n]=o,i.push.apply(i,s),i.push.apply(i,s),s[6]=1,i.push.apply(i,s),s[n]=a,i.push.apply(i,s)}var i=[];r(0,0,0,0,0,1),r(0,0,0,1,0,1),r(0,0,0,2,0,1),r(1,0,0,1,-1,1),r(1,0,0,2,-1,1),r(0,1,0,0,-1,1),r(0,1,0,2,-1,1),r(0,0,1,0,-1,1),r(0,0,1,1,-1,1);var l=a(t,i),u=o(t,[{type:t.FLOAT,buffer:l,size:3,offset:0,stride:28},{type:t.FLOAT,buffer:l,size:3,offset:12,stride:28},{type:t.FLOAT,buffer:l,size:1,offset:24,stride:28}]),c=s(t);c.attributes.position.location=0,c.attributes.color.location=1,c.attributes.weight.location=2;var h=new n(t,l,u,c);return h.update(e),h}var a=t(\"gl-buffer\"),o=t(\"gl-vao\"),s=t(\"./shaders/index\");e.exports=i;var l=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],u=n.prototype,c=[0,0,0],h=[0,0,0],f=[0,0];u.isTransparent=function(){return!1},u.drawTransparent=function(t){},u.draw=function(t){var e=this.gl,r=this.vao,n=this.shader;r.bind(),n.bind();var i,a=t.model||l,o=t.view||l,s=t.projection||l;this.axes&&(i=this.axes.lastCubeProps.axis);for(var u=c,d=h,p=0;p<3;++p)i&&i[p]<0?(u[p]=this.bounds[0][p],d[p]=this.bounds[1][p]):(u[p]=this.bounds[1][p],d[p]=this.bounds[0][p]);f[0]=e.drawingBufferWidth,f[1]=e.drawingBufferHeight,n.uniforms.model=a,n.uniforms.view=o,n.uniforms.projection=s,n.uniforms.coordinates=[this.position,u,d],n.uniforms.colors=this.colors,n.uniforms.screenShape=f;for(var p=0;p<3;++p)n.uniforms.lineWidth=this.lineWidth[p]*this.pixelRatio,this.enabled[p]&&(r.draw(e.TRIANGLES,6,6*p),this.drawSides[p]&&r.draw(e.TRIANGLES,12,18+12*p));r.unbind()},u.update=function(t){t&&(\"bounds\"in t&&(this.bounds=t.bounds),\"position\"in t&&(this.position=t.position),\"lineWidth\"in t&&(this.lineWidth=t.lineWidth),\"colors\"in t&&(this.colors=t.colors),\"enabled\"in t&&(this.enabled=t.enabled),\"drawSides\"in t&&(this.drawSides=t.drawSides))},u.dispose=function(){this.vao.dispose(),this.buffer.dispose(),this.shader.dispose()}},{\"./shaders/index\":263,\"gl-buffer\":156,\"gl-vao\":271}],265:[function(t,e,r){var n=t(\"gl-shader\"),i=\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute vec4 uv;\\nattribute vec3 f;\\nattribute vec3 normal;\\n\\nuniform mat4 model, view, projection, inverseModel;\\nuniform vec3 lightPosition, eyePosition;\\nuniform sampler2D colormap;\\n\\nvarying float value, kill;\\nvarying vec3 worldCoordinate;\\nvarying vec2 planeCoordinate;\\nvarying vec3 lightDirection, eyeDirection, surfaceNormal;\\nvarying vec4 vColor;\\n\\nvoid main() {\\n worldCoordinate = vec3(uv.zw, f.x);\\n vec4 worldPosition = model * vec4(worldCoordinate, 1.0);\\n vec4 clipPosition = projection * view * worldPosition;\\n gl_Position = clipPosition;\\n kill = f.y;\\n value = f.z;\\n planeCoordinate = uv.xy;\\n\\n vColor = texture2D(colormap, vec2(value, value));\\n\\n //Lighting geometry parameters\\n vec4 cameraCoordinate = view * worldPosition;\\n cameraCoordinate.xyz /= cameraCoordinate.w;\\n lightDirection = lightPosition - cameraCoordinate.xyz;\\n eyeDirection = eyePosition - cameraCoordinate.xyz;\\n surfaceNormal = normalize((vec4(normal,0) * inverseModel).xyz);\\n}\\n\",a=\"precision mediump float;\\n#define GLSLIFY 1\\n\\nfloat beckmannDistribution_2_0(float x, float roughness) {\\n float NdotH = max(x, 0.0001);\\n float cos2Alpha = NdotH * NdotH;\\n float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\\n float roughness2 = roughness * roughness;\\n float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\\n return exp(tan2Alpha / roughness2) / denom;\\n}\\n\\n\\n\\nfloat beckmannSpecular_1_1(\\n vec3 lightDirection,\\n vec3 viewDirection,\\n vec3 surfaceNormal,\\n float roughness) {\\n return beckmannDistribution_2_0(dot(surfaceNormal, normalize(lightDirection + viewDirection)), roughness);\\n}\\n\\n\\n\\nuniform vec3 lowerBound, upperBound;\\nuniform float contourTint;\\nuniform vec4 contourColor;\\nuniform sampler2D colormap;\\nuniform vec3 clipBounds[2];\\nuniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity;\\nuniform float vertexColor;\\n\\nvarying float value, kill;\\nvarying vec3 worldCoordinate;\\nvarying vec3 lightDirection, eyeDirection, surfaceNormal;\\nvarying vec4 vColor;\\n\\nvoid main() {\\n if (kill > 0.0 ||\\n any(lessThan(worldCoordinate, clipBounds[0])) || any(greaterThan(worldCoordinate, clipBounds[1]))) {\\n discard;\\n }\\n\\n vec3 N = normalize(surfaceNormal);\\n vec3 V = normalize(eyeDirection);\\n vec3 L = normalize(lightDirection);\\n\\n if(gl_FrontFacing) {\\n N = -N;\\n }\\n\\n float specular = max(beckmannSpecular_1_1(L, V, N, roughness), 0.);\\n float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\\n\\n //decide how to interpolate color \\u2014 in vertex or in fragment\\n vec4 surfaceColor = step(vertexColor, .5) * texture2D(colormap, vec2(value, value)) + step(.5, vertexColor) * vColor;\\n\\n vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0);\\n\\n gl_FragColor = mix(litColor, contourColor, contourTint) * opacity;\\n}\\n\",o=\"precision mediump float;\\n#define GLSLIFY 1\\n\\nattribute vec4 uv;\\nattribute float f;\\n\\nuniform mat3 permutation;\\nuniform mat4 model, view, projection;\\nuniform float height, zOffset;\\nuniform sampler2D colormap;\\n\\nvarying float value, kill;\\nvarying vec3 worldCoordinate;\\nvarying vec2 planeCoordinate;\\nvarying vec3 lightDirection, eyeDirection, surfaceNormal;\\nvarying vec4 vColor;\\n\\nvoid main() {\\n vec3 dataCoordinate = permutation * vec3(uv.xy, height);\\n vec4 worldPosition = model * vec4(dataCoordinate, 1.0);\\n\\n vec4 clipPosition = projection * view * worldPosition;\\n clipPosition.z = clipPosition.z + zOffset;\\n\\n gl_Position = clipPosition;\\n value = f;\\n kill = -1.0;\\n worldCoordinate = dataCoordinate;\\n planeCoordinate = uv.zw;\\n\\n vColor = texture2D(colormap, vec2(value, value));\\n\\n //Don't do lighting for contours\\n surfaceNormal = vec3(1,0,0);\\n eyeDirection = vec3(0,1,0);\\n lightDirection = vec3(0,0,1);\\n}\\n\",s=\"precision mediump float;\\n#define GLSLIFY 1\\n\\nuniform vec2 shape;\\nuniform vec3 clipBounds[2];\\nuniform float pickId;\\n\\nvarying float value, kill;\\nvarying vec3 worldCoordinate;\\nvarying vec2 planeCoordinate;\\nvarying vec3 surfaceNormal;\\n\\nvec2 splitFloat(float v) {\\n float vh = 255.0 * v;\\n float upper = floor(vh);\\n float lower = fract(vh);\\n return vec2(upper / 255.0, floor(lower * 16.0) / 16.0);\\n}\\n\\nvoid main() {\\n if(kill > 0.0 ||\\n any(lessThan(worldCoordinate, clipBounds[0])) || any(greaterThan(worldCoordinate, clipBounds[1]))) {\\n discard;\\n }\\n vec2 ux = splitFloat(planeCoordinate.x / shape.x);\\n vec2 uy = splitFloat(planeCoordinate.y / shape.y);\\n gl_FragColor = vec4(pickId, ux.x, uy.x, ux.y + (uy.y/16.0));\\n}\\n\";r.createShader=function(t){var e=n(t,i,a,null,[{name:\"uv\",type:\"vec4\"},{name:\"f\",type:\"vec3\"},{name:\"normal\",type:\"vec3\"}]);return e.attributes.uv.location=0,e.attributes.f.location=1,e.attributes.normal.location=2,e},r.createPickShader=function(t){var e=n(t,i,s,null,[{name:\"uv\",type:\"vec4\"},{name:\"f\",type:\"vec3\"},{name:\"normal\",type:\"vec3\"}]);return e.attributes.uv.location=0,e.attributes.f.location=1,e.attributes.normal.location=2,e},r.createContourShader=function(t){var e=n(t,o,a,null,[{name:\"uv\",type:\"vec4\"},{name:\"f\",type:\"float\"}]);return e.attributes.uv.location=0,e.attributes.f.location=1,e},r.createPickContourShader=function(t){var e=n(t,o,s,null,[{name:\"uv\",type:\"vec4\"},{name:\"f\",type:\"float\"}]);return e.attributes.uv.location=0,e.attributes.f.location=1,e}},{\"gl-shader\":255}],266:[function(t,e,r){\"use strict\";function n(t,e,r,n,i){this.position=t,this.index=e,this.uv=r,this.level=n,this.dataCoordinate=i}function i(t){var e=x([y({colormap:t,nshades:R,format:\"rgba\"}).map(function(t){return[t[0],t[1],t[2],255*t[3]]})]);return b.divseq(e,255),e}function a(t,e,r,i,a,o,s,l,u,c,h,f,d,p){this.gl=t,this.shape=e,this.bounds=r,this.intensityBounds=[],this._shader=i,this._pickShader=a,this._coordinateBuffer=o,this._vao=s,this._colorMap=l,this._contourShader=u,this._contourPickShader=c,this._contourBuffer=h,this._contourVAO=f,this._contourOffsets=[[],[],[]],this._contourCounts=[[],[],[]],this._vertexCount=0,this._pickResult=new n([0,0,0],[0,0],[0,0],[0,0,0],[0,0,0]),this._dynamicBuffer=d,this._dynamicVAO=p,this._dynamicOffsets=[0,0,0],this._dynamicCounts=[0,0,0],this.contourWidth=[1,1,1],this.contourLevels=[[1],[1],[1]],this.contourTint=[0,0,0],this.contourColor=[[.5,.5,.5,1],[.5,.5,.5,1],[.5,.5,.5,1]],this.showContour=!0,this.showSurface=!0,this.enableHighlight=[!0,!0,!0],this.highlightColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.highlightTint=[1,1,1],this.highlightLevel=[-1,-1,-1],this.enableDynamic=[!0,!0,!0],this.dynamicLevel=[NaN,NaN,NaN],this.dynamicColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.dynamicTint=[1,1,1],this.dynamicWidth=[1,1,1],this.axesBounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.surfaceProject=[!1,!1,!1],this.contourProject=[[!1,!1,!1],[!1,!1,!1],[!1,!1,!1]],this.colorBounds=[!1,!1],this._field=[_(g.mallocFloat(1024),[0,0]),_(g.mallocFloat(1024),[0,0]),_(g.mallocFloat(1024),[0,0])],this.pickId=1,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.snapToData=!1,this.opacity=1,this.lightPosition=[10,1e4,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.vertexColor=0,this.dirty=!0}function o(t,e){var r,n,i,a=e.axes&&e.axes.lastCubeProps.axis||j,o=e.showSurface,s=e.showContour;for(r=0;r<3;++r)for(o=o||e.surfaceProject[r],n=0;n<3;++n)s=s||e.contourProject[r][n];for(r=0;r<3;++r){var l=N.projections[r];for(n=0;n<16;++n)l[n]=0;for(n=0;n<4;++n)l[5*n]=1;l[5*r]=0,l[12+r]=e.axesBounds[+(a[r]>0)][r],M(l,t.model,l);var u=N.clipBounds[r];for(i=0;i<2;++i)for(n=0;n<3;++n)u[i][n]=t.clipBounds[i][n];u[0][r]=-1e8,u[1][r]=1e8}return N.showSurface=o,N.showContour=s,N}function s(t,e){t=t||{};var r=this.gl;r.disable(r.CULL_FACE),this._colorMap.bind(0);var n=B;n.model=t.model||D,n.view=t.view||D,n.projection=t.projection||D,n.lowerBound=[this.bounds[0][0],this.bounds[0][1],this.colorBounds[0]||this.bounds[0][2]],n.upperBound=[this.bounds[1][0],this.bounds[1][1],this.colorBounds[1]||this.bounds[1][2]],n.contourColor=this.contourColor[0],n.inverseModel=k(n.inverseModel,n.model);for(var i=0;i<2;++i)for(var a=n.clipBounds[i],s=0;s<3;++s)a[s]=Math.min(Math.max(this.clipBounds[i][s],-1e8),1e8);n.kambient=this.ambientLight,n.kdiffuse=this.diffuseLight,n.kspecular=this.specularLight,n.roughness=this.roughness,n.fresnel=this.fresnel,n.opacity=this.opacity,n.height=0,n.permutation=V,n.vertexColor=this.vertexColor;var l=U;for(M(l,n.view,n.model),M(l,n.projection,l),k(l,l),i=0;i<3;++i)n.eyePosition[i]=l[12+i]/l[15];var u=l[15];for(i=0;i<3;++i)u+=this.lightPosition[i]*l[4*i+3];for(i=0;i<3;++i){var c=l[12+i];for(s=0;s<3;++s)c+=l[4*s+i]*this.lightPosition[s];n.lightPosition[i]=c/u}var h=o(n,this);if(h.showSurface&&e===this.opacity<1){for(this._shader.bind(),this._shader.uniforms=n,this._vao.bind(),this.showSurface&&this._vertexCount&&this._vao.draw(r.TRIANGLES,this._vertexCount),i=0;i<3;++i)this.surfaceProject[i]&&this.vertexCount&&(this._shader.uniforms.model=h.projections[i],this._shader.uniforms.clipBounds=h.clipBounds[i],this._vao.draw(r.TRIANGLES,this._vertexCount));this._vao.unbind()}if(h.showContour&&!e){var f=this._contourShader;n.kambient=1,n.kdiffuse=0,n.kspecular=0,n.opacity=1,f.bind(),f.uniforms=n;var d=this._contourVAO;for(d.bind(),i=0;i<3;++i)for(f.uniforms.permutation=O[i],r.lineWidth(this.contourWidth[i]),s=0;s<this.contourLevels[i].length;++s)this._contourCounts[i][s]&&(s===this.highlightLevel[i]?(f.uniforms.contourColor=this.highlightColor[i],f.uniforms.contourTint=this.highlightTint[i]):0!==s&&s-1!==this.highlightLevel[i]||(f.uniforms.contourColor=this.contourColor[i],f.uniforms.contourTint=this.contourTint[i]),f.uniforms.height=this.contourLevels[i][s],d.draw(r.LINES,this._contourCounts[i][s],this._contourOffsets[i][s]));for(i=0;i<3;++i)for(f.uniforms.model=h.projections[i],f.uniforms.clipBounds=h.clipBounds[i],s=0;s<3;++s)if(this.contourProject[i][s]){f.uniforms.permutation=O[s],r.lineWidth(this.contourWidth[s]);for(var p=0;p<this.contourLevels[s].length;++p)p===this.highlightLevel[s]?(f.uniforms.contourColor=this.highlightColor[s],f.uniforms.contourTint=this.highlightTint[s]):0!==p&&p-1!==this.highlightLevel[s]||(f.uniforms.contourColor=this.contourColor[s],f.uniforms.contourTint=this.contourTint[s]),f.uniforms.height=this.contourLevels[s][p],d.draw(r.LINES,this._contourCounts[s][p],this._contourOffsets[s][p])}for(d=this._dynamicVAO,d.bind(),i=0;i<3;++i)if(0!==this._dynamicCounts[i])for(f.uniforms.model=n.model,f.uniforms.clipBounds=n.clipBounds,f.uniforms.permutation=O[i],r.lineWidth(this.dynamicWidth[i]),f.uniforms.contourColor=this.dynamicColor[i],f.uniforms.contourTint=this.dynamicTint[i],f.uniforms.height=this.dynamicLevel[i],d.draw(r.LINES,this._dynamicCounts[i],this._dynamicOffsets[i]),s=0;s<3;++s)this.contourProject[s][i]&&(f.uniforms.model=h.projections[s],f.uniforms.clipBounds=h.clipBounds[s],d.draw(r.LINES,this._dynamicCounts[i],this._dynamicOffsets[i]));d.unbind()}}function l(t,e){var r=e.shape.slice(),n=t.shape.slice();b.assign(t.lo(1,1).hi(r[0],r[1]),e),b.assign(t.lo(1).hi(r[0],1),e.hi(r[0],1)),b.assign(t.lo(1,n[1]-1).hi(r[0],1),e.lo(0,r[1]-1).hi(r[0],1)),b.assign(t.lo(0,1).hi(1,r[1]),e.hi(1)),b.assign(t.lo(n[0]-1,1).hi(1,r[1]),e.lo(r[0]-1)),t.set(0,0,e.get(0,0)),t.set(0,n[1]-1,e.get(0,r[1]-1)),t.set(n[0]-1,0,e.get(r[0]-1,0)),t.set(n[0]-1,n[1]-1,e.get(r[0]-1,r[1]-1))}function u(t,e){return Array.isArray(t)?[e(t[0]),e(t[1]),e(t[2])]:[e(t),e(t),e(t)]}function c(t){return Array.isArray(t)?3===t.length?[t[0],t[1],t[2],1]:[t[0],t[1],t[2],t[3]]:[0,0,0,1]}function h(t){if(Array.isArray(t)){if(Array.isArray(t))return[c(t[0]),c(t[1]),c(t[2])];var e=c(t);return[e.slice(),e.slice(),e.slice()]}}function f(t){var e=t.gl,r=E(e),n=C(e),i=L(e),o=I(e),s=p(e),l=m(e,[{buffer:s,size:4,stride:z,offset:0},{buffer:s,size:3,stride:z,offset:16},{buffer:s,size:3,stride:z,offset:28}]),u=p(e),c=m(e,[{buffer:u,size:4,stride:20,offset:0},{buffer:u,size:1,stride:20,offset:16}]),h=p(e),f=m(e,[{buffer:h,size:2,type:e.FLOAT}]),d=v(e,1,R,e.RGBA,e.UNSIGNED_BYTE);d.minFilter=e.LINEAR,d.magFilter=e.LINEAR;var g=new a(e,[0,0],[[0,0,0],[0,0,0]],r,n,s,l,d,i,o,u,c,h,f),y={levels:[[],[],[]]};for(var b in t)y[b]=t[b];return y.colormap=y.colormap||\"jet\",g.update(y),g}e.exports=f\n", ";var d=t(\"bit-twiddle\"),p=t(\"gl-buffer\"),m=t(\"gl-vao\"),v=t(\"gl-texture2d\"),g=t(\"typedarray-pool\"),y=t(\"colormap\"),b=t(\"ndarray-ops\"),x=t(\"ndarray-pack\"),_=t(\"ndarray\"),w=t(\"surface-nets\"),M=t(\"gl-mat4/multiply\"),k=t(\"gl-mat4/invert\"),A=t(\"binary-search-bounds\"),T=t(\"ndarray-gradient\"),S=t(\"./lib/shaders\"),E=S.createShader,L=S.createContourShader,C=S.createPickShader,I=S.createPickContourShader,z=40,D=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],P=[[0,0],[0,1],[1,0],[1,1],[1,0],[0,1]],O=[[0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0]];!function(){for(var t=0;t<3;++t){var e=O[t],r=(t+1)%3,n=(t+2)%3;e[r+0]=1,e[n+3]=1,e[t+6]=1}}();var R=256,F=a.prototype;F.isTransparent=function(){return this.opacity<1},F.isOpaque=function(){if(this.opacity>=1)return!0;for(var t=0;t<3;++t)if(this._contourCounts[t].length>0||this._dynamicCounts[t]>0)return!0;return!1},F.pickSlots=1,F.setPickBase=function(t){this.pickId=t};var j=[0,0,0],N={showSurface:!1,showContour:!1,projections:[D.slice(),D.slice(),D.slice()],clipBounds:[[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]]]},B={model:D,view:D,projection:D,inverseModel:D.slice(),lowerBound:[0,0,0],upperBound:[0,0,0],colorMap:0,clipBounds:[[0,0,0],[0,0,0]],height:0,contourTint:0,contourColor:[0,0,0,1],permutation:[1,0,0,0,1,0,0,0,1],zOffset:-1e-4,kambient:1,kdiffuse:1,kspecular:1,lightPosition:[1e3,1e3,1e3],eyePosition:[0,0,0],roughness:1,fresnel:1,opacity:1,vertexColor:0},U=D.slice(),V=[1,0,0,0,1,0,0,0,1];F.draw=function(t){return s.call(this,t,!1)},F.drawTransparent=function(t){return s.call(this,t,!0)};var H={model:D,view:D,projection:D,inverseModel:D,clipBounds:[[0,0,0],[0,0,0]],height:0,shape:[0,0],pickId:0,lowerBound:[0,0,0],upperBound:[0,0,0],zOffset:0,permutation:[1,0,0,0,1,0,0,0,1],lightPosition:[0,0,0],eyePosition:[0,0,0]};F.drawPick=function(t){t=t||{};var e=this.gl;e.disable(e.CULL_FACE);var r=H;r.model=t.model||D,r.view=t.view||D,r.projection=t.projection||D,r.shape=this._field[2].shape,r.pickId=this.pickId/255,r.lowerBound=this.bounds[0],r.upperBound=this.bounds[1],r.permutation=V;for(var n=0;n<2;++n)for(var i=r.clipBounds[n],a=0;a<3;++a)i[a]=Math.min(Math.max(this.clipBounds[n][a],-1e8),1e8);var s=o(r,this);if(s.showSurface){for(this._pickShader.bind(),this._pickShader.uniforms=r,this._vao.bind(),this._vao.draw(e.TRIANGLES,this._vertexCount),n=0;n<3;++n)this.surfaceProject[n]&&(this._pickShader.uniforms.model=s.projections[n],this._pickShader.uniforms.clipBounds=s.clipBounds[n],this._vao.draw(e.TRIANGLES,this._vertexCount));this._vao.unbind()}if(s.showContour){var l=this._contourPickShader;l.bind(),l.uniforms=r;var u=this._contourVAO;for(u.bind(),a=0;a<3;++a)for(e.lineWidth(this.contourWidth[a]),l.uniforms.permutation=O[a],n=0;n<this.contourLevels[a].length;++n)this._contourCounts[a][n]&&(l.uniforms.height=this.contourLevels[a][n],u.draw(e.LINES,this._contourCounts[a][n],this._contourOffsets[a][n]));for(n=0;n<3;++n)for(l.uniforms.model=s.projections[n],l.uniforms.clipBounds=s.clipBounds[n],a=0;a<3;++a)if(this.contourProject[n][a]){l.uniforms.permutation=O[a],e.lineWidth(this.contourWidth[a]);for(var c=0;c<this.contourLevels[a].length;++c)this._contourCounts[a][c]&&(l.uniforms.height=this.contourLevels[a][c],u.draw(e.LINES,this._contourCounts[a][c],this._contourOffsets[a][c]))}u.unbind()}},F.pick=function(t){if(!t)return null;if(t.id!==this.pickId)return null;var e=this._field[2].shape,r=this._pickResult,n=e[0]*(t.value[0]+(t.value[2]>>4)/16)/255,i=Math.floor(n),a=n-i,o=e[1]*(t.value[1]+(15&t.value[2])/16)/255,s=Math.floor(o),l=o-s;i+=1,s+=1;var u=r.position;u[0]=u[1]=u[2]=0;for(var c=0;c<2;++c)for(var h=c?a:1-a,f=0;f<2;++f)for(var d=f?l:1-l,p=i+c,m=s+f,v=h*d,g=0;g<3;++g)u[g]+=this._field[g].get(p,m)*v;for(var y=this._pickResult.level,b=0;b<3;++b)if(y[b]=A.le(this.contourLevels[b],u[b]),y[b]<0)this.contourLevels[b].length>0&&(y[b]=0);else if(y[b]<this.contourLevels[b].length-1){var x=this.contourLevels[b][y[b]],_=this.contourLevels[b][y[b]+1];Math.abs(x-u[b])>Math.abs(_-u[b])&&(y[b]+=1)}for(r.index[0]=a<.5?i:i+1,r.index[1]=l<.5?s:s+1,r.uv[0]=n/e[0],r.uv[1]=o/e[1],g=0;g<3;++g)r.dataCoordinate[g]=this._field[g].get(r.index[0],r.index[1]);return r},F.update=function(t){t=t||{},this.dirty=!0,\"contourWidth\"in t&&(this.contourWidth=u(t.contourWidth,Number)),\"showContour\"in t&&(this.showContour=u(t.showContour,Boolean)),\"showSurface\"in t&&(this.showSurface=!!t.showSurface),\"contourTint\"in t&&(this.contourTint=u(t.contourTint,Boolean)),\"contourColor\"in t&&(this.contourColor=h(t.contourColor)),\"contourProject\"in t&&(this.contourProject=u(t.contourProject,function(t){return u(t,Boolean)})),\"surfaceProject\"in t&&(this.surfaceProject=t.surfaceProject),\"dynamicColor\"in t&&(this.dynamicColor=h(t.dynamicColor)),\"dynamicTint\"in t&&(this.dynamicTint=u(t.dynamicTint,Number)),\"dynamicWidth\"in t&&(this.dynamicWidth=u(t.dynamicWidth,Number)),\"opacity\"in t&&(this.opacity=t.opacity),\"colorBounds\"in t&&(this.colorBounds=t.colorBounds),\"vertexColor\"in t&&(this.vertexColor=t.vertexColor?1:0);var e=t.field||t.coords&&t.coords[2]||null,r=!1;if(e||(e=this._field[2].shape[0]||this._field[2].shape[2]?this._field[2].lo(1,1).hi(this._field[2].shape[0]-2,this._field[2].shape[1]-2):this._field[2].hi(0,0)),\"field\"in t||\"coords\"in t){var n=(e.shape[0]+2)*(e.shape[1]+2);n>this._field[2].data.length&&(g.freeFloat(this._field[2].data),this._field[2].data=g.mallocFloat(d.nextPow2(n))),this._field[2]=_(this._field[2].data,[e.shape[0]+2,e.shape[1]+2]),l(this._field[2],e),this.shape=e.shape.slice();for(var a=this.shape,o=0;o<2;++o)this._field[2].size>this._field[o].data.length&&(g.freeFloat(this._field[o].data),this._field[o].data=g.mallocFloat(this._field[2].size)),this._field[o]=_(this._field[o].data,[a[0]+2,a[1]+2]);if(t.coords){var s=t.coords;if(!Array.isArray(s)||3!==s.length)throw new Error(\"gl-surface: invalid coordinates for x/y\");for(o=0;o<2;++o){var c=s[o];for(y=0;y<2;++y)if(c.shape[y]!==a[y])throw new Error(\"gl-surface: coords have incorrect shape\");l(this._field[o],c)}}else if(t.ticks){var f=t.ticks;if(!Array.isArray(f)||2!==f.length)throw new Error(\"gl-surface: invalid ticks\");for(o=0;o<2;++o){var p=f[o];if((Array.isArray(p)||p.length)&&(p=_(p)),p.shape[0]!==a[o])throw new Error(\"gl-surface: invalid tick length\");var m=_(p.data,a);m.stride[o]=p.stride[0],m.stride[1^o]=0,l(this._field[o],m)}}else{for(o=0;o<2;++o){var v=[0,0];v[o]=1,this._field[o]=_(this._field[o].data,[a[0]+2,a[1]+2],v,0)}this._field[0].set(0,0,0);for(var y=0;y<a[0];++y)this._field[0].set(y+1,0,y);for(this._field[0].set(a[0]+1,0,a[0]-1),this._field[1].set(0,0,0),y=0;y<a[1];++y)this._field[1].set(0,y+1,y);this._field[1].set(0,a[1]+1,a[1]-1)}var b=this._field,x=_(g.mallocFloat(3*b[2].size*2),[3,a[0]+2,a[1]+2,2]);for(o=0;o<3;++o)T(x.pick(o),b[o],\"mirror\");var M=_(g.mallocFloat(3*b[2].size),[a[0]+2,a[1]+2,3]);for(o=0;o<a[0]+2;++o)for(y=0;y<a[1]+2;++y){var k=x.get(0,o,y,0),A=x.get(0,o,y,1),S=x.get(1,o,y,0),E=x.get(1,o,y,1),L=x.get(2,o,y,0),C=x.get(2,o,y,1),I=S*C-E*L,z=L*A-C*k,D=k*E-A*S,O=Math.sqrt(I*I+z*z+D*D);O<1e-8?(O=Math.max(Math.abs(I),Math.abs(z),Math.abs(D)),O<1e-8?(D=1,z=I=0,O=1):O=1/O):O=1/Math.sqrt(O),M.set(o,y,0,I*O),M.set(o,y,1,z*O),M.set(o,y,2,D*O)}g.free(x.data);var R=[1/0,1/0,1/0],F=[-1/0,-1/0,-1/0],j=1/0,N=-1/0,B=(a[0]-1)*(a[1]-1)*6,U=g.mallocFloat(d.nextPow2(10*B)),V=0,H=0;for(o=0;o<a[0]-1;++o)t:for(y=0;y<a[1]-1;++y){for(var q=0;q<2;++q)for(var G=0;G<2;++G)for(var Y=0;Y<3;++Y){var W=this._field[Y].get(1+o+q,1+y+G);if(isNaN(W)||!isFinite(W))continue t}for(Y=0;Y<6;++Y){var X=o+P[Y][0],Z=y+P[Y][1],J=this._field[0].get(X+1,Z+1),K=this._field[1].get(X+1,Z+1);W=this._field[2].get(X+1,Z+1);var Q=W;I=M.get(X+1,Z+1,0),z=M.get(X+1,Z+1,1),D=M.get(X+1,Z+1,2),t.intensity&&(Q=t.intensity.get(X,Z)),U[V++]=X,U[V++]=Z,U[V++]=J,U[V++]=K,U[V++]=W,U[V++]=0,U[V++]=Q,U[V++]=I,U[V++]=z,U[V++]=D,R[0]=Math.min(R[0],J),R[1]=Math.min(R[1],K),R[2]=Math.min(R[2],W),j=Math.min(j,Q),F[0]=Math.max(F[0],J),F[1]=Math.max(F[1],K),F[2]=Math.max(F[2],W),N=Math.max(N,Q),H+=1}}for(t.intensityBounds&&(j=+t.intensityBounds[0],N=+t.intensityBounds[1]),o=6;o<V;o+=10)U[o]=(U[o]-j)/(N-j);this._vertexCount=H,this._coordinateBuffer.update(U.subarray(0,V)),g.freeFloat(U),g.free(M.data),this.bounds=[R,F],this.intensity=t.intensity||this._field[2],this.intensityBounds[0]===j&&this.intensityBounds[1]===N||(r=!0),this.intensityBounds=[j,N]}if(\"levels\"in t){var $=t.levels;for($=Array.isArray($[0])?$.slice():[[],[],$],o=0;o<3;++o)$[o]=$[o].slice(),$.sort(function(t,e){return t-e});t:for(o=0;o<3;++o){if($[o].length!==this.contourLevels[o].length){r=!0;break}for(y=0;y<$[o].length;++y)if($[o][y]!==this.contourLevels[o][y]){r=!0;break t}}this.contourLevels=$}if(r){b=this._field,a=this.shape;for(var tt=[],et=0;et<3;++et){$=this.contourLevels[et];var rt=[],nt=[],it=[0,0,0];for(o=0;o<$.length;++o){var at=w(this._field[et],$[o]);rt.push(tt.length/5|0),H=0;t:for(y=0;y<at.cells.length;++y){var ot=at.cells[y];for(Y=0;Y<2;++Y){var st=at.positions[ot[Y]],lt=st[0],ut=0|Math.floor(lt),ct=lt-ut,ht=st[1],ft=0|Math.floor(ht),dt=ht-ft,pt=!1;e:for(var mt=0;mt<3;++mt){it[mt]=0;var vt=(et+mt+1)%3;for(q=0;q<2;++q){var gt=q?ct:1-ct;for(X=0|Math.min(Math.max(ut+q,0),a[0]),G=0;G<2;++G){var yt=G?dt:1-dt;if(Z=0|Math.min(Math.max(ft+G,0),a[1]),W=mt<2?this._field[vt].get(X,Z):(this.intensity.get(X,Z)-this.intensityBounds[0])/(this.intensityBounds[1]-this.intensityBounds[0]),!isFinite(W)||isNaN(W)){pt=!0;break e}var bt=gt*yt;it[mt]+=bt*W}}}if(pt){if(Y>0){for(var xt=0;xt<5;++xt)tt.pop();H-=1}continue t}tt.push(it[0],it[1],st[0],st[1],it[2]),H+=1}}nt.push(H)}this._contourOffsets[et]=rt,this._contourCounts[et]=nt}var _t=g.mallocFloat(tt.length);for(o=0;o<tt.length;++o)_t[o]=tt[o];this._contourBuffer.update(_t),g.freeFloat(_t)}t.colormap&&this._colorMap.setPixels(i(t.colormap))},F.dispose=function(){this._shader.dispose(),this._vao.dispose(),this._coordinateBuffer.dispose(),this._colorMap.dispose(),this._contourBuffer.dispose(),this._contourVAO.dispose(),this._contourShader.dispose(),this._contourPickShader.dispose(),this._dynamicBuffer.dispose(),this._dynamicVAO.dispose();for(var t=0;t<3;++t)g.freeFloat(this._field[t].data)},F.highlight=function(t){if(!t)return this._dynamicCounts=[0,0,0],this.dyanamicLevel=[NaN,NaN,NaN],void(this.highlightLevel=[-1,-1,-1]);for(var e=0;e<3;++e)this.enableHighlight[e]?this.highlightLevel[e]=t.level[e]:this.highlightLevel[e]=-1;var r;if(r=this.snapToData?t.dataCoordinate:t.position,this.enableDynamic[0]&&r[0]!==this.dynamicLevel[0]||this.enableDynamic[1]&&r[1]!==this.dynamicLevel[1]||this.enableDynamic[2]&&r[2]!==this.dynamicLevel[2]){for(var n=0,i=this.shape,a=g.mallocFloat(12*i[0]*i[1]),o=0;o<3;++o)if(this.enableDynamic[o]){this.dynamicLevel[o]=r[o];var s=(o+1)%3,l=(o+2)%3,u=this._field[o],c=this._field[s],h=this._field[l],f=(this.intensity,w(u,r[o])),d=f.cells,p=f.positions;for(this._dynamicOffsets[o]=n,e=0;e<d.length;++e)for(var m=d[e],v=0;v<2;++v){var y=p[m[v]],b=+y[0],x=0|b,_=0|Math.min(x+1,i[0]),M=b-x,k=1-M,A=+y[1],T=0|A,S=0|Math.min(T+1,i[1]),E=A-T,L=1-E,C=k*L,I=k*E,z=M*L,D=M*E,P=C*c.get(x,T)+I*c.get(x,S)+z*c.get(_,T)+D*c.get(_,S),O=C*h.get(x,T)+I*h.get(x,S)+z*h.get(_,T)+D*h.get(_,S);if(isNaN(P)||isNaN(O)){v&&(n-=1);break}a[2*n+0]=P,a[2*n+1]=O,n+=1}this._dynamicCounts[o]=n-this._dynamicOffsets[o]}else this.dynamicLevel[o]=NaN,this._dynamicCounts[o]=0;this._dynamicBuffer.update(a.subarray(0,2*n)),g.freeFloat(a)}}},{\"./lib/shaders\":265,\"binary-search-bounds\":66,\"bit-twiddle\":67,colormap:99,\"gl-buffer\":156,\"gl-mat4/invert\":181,\"gl-mat4/multiply\":183,\"gl-texture2d\":267,\"gl-vao\":271,ndarray:467,\"ndarray-gradient\":458,\"ndarray-ops\":461,\"ndarray-pack\":462,\"surface-nets\":531,\"typedarray-pool\":541}],267:[function(t,e,r){\"use strict\";function n(t){g=[t.LINEAR,t.NEAREST_MIPMAP_LINEAR,t.LINEAR_MIPMAP_NEAREST,t.LINEAR_MIPMAP_NEAREST],y=[t.NEAREST,t.LINEAR,t.NEAREST_MIPMAP_NEAREST,t.NEAREST_MIPMAP_LINEAR,t.LINEAR_MIPMAP_NEAREST,t.LINEAR_MIPMAP_LINEAR],b=[t.REPEAT,t.CLAMP_TO_EDGE,t.MIRRORED_REPEAT]}function i(t){return\"undefined\"!=typeof HTMLCanvasElement&&t instanceof HTMLCanvasElement||\"undefined\"!=typeof HTMLImageElement&&t instanceof HTMLImageElement||\"undefined\"!=typeof HTMLVideoElement&&t instanceof HTMLVideoElement||\"undefined\"!=typeof ImageData&&t instanceof ImageData}function a(t,e,r){var n=t.gl,i=n.getParameter(n.MAX_TEXTURE_SIZE);if(e<0||e>i||r<0||r>i)throw new Error(\"gl-texture2d: Invalid texture size\");return t._shape=[e,r],t.bind(),n.texImage2D(n.TEXTURE_2D,0,t.format,e,r,0,t.format,t.type,null),t._mipLevels=[0],t}function o(t,e,r,n,i,a){this.gl=t,this.handle=e,this.format=i,this.type=a,this._shape=[r,n],this._mipLevels=[0],this._magFilter=t.NEAREST,this._minFilter=t.NEAREST,this._wrapS=t.CLAMP_TO_EDGE,this._wrapT=t.CLAMP_TO_EDGE,this._anisoSamples=1;var o=this,s=[this._wrapS,this._wrapT];Object.defineProperties(s,[{get:function(){return o._wrapS},set:function(t){return o.wrapS=t}},{get:function(){return o._wrapT},set:function(t){return o.wrapT=t}}]),this._wrapVector=s;var l=[this._shape[0],this._shape[1]];Object.defineProperties(l,[{get:function(){return o._shape[0]},set:function(t){return o.width=t}},{get:function(){return o._shape[1]},set:function(t){return o.height=t}}]),this._shapeVector=l}function s(t,e){return 3===t.length?1===e[2]&&e[1]===t[0]*t[2]&&e[0]===t[2]:1===e[0]&&e[1]===t[0]}function l(t,e,r,n,i,a,o,l){var u=l.dtype,c=l.shape.slice();if(c.length<2||c.length>3)throw new Error(\"gl-texture2d: Invalid ndarray, must be 2d or 3d\");var h=0,f=0,d=s(c,l.stride.slice());\"float32\"===u?h=t.FLOAT:\"float64\"===u?(h=t.FLOAT,d=!1,u=\"float32\"):\"uint8\"===u?h=t.UNSIGNED_BYTE:(h=t.UNSIGNED_BYTE,d=!1,u=\"uint8\");if(2===c.length)f=t.LUMINANCE,c=[c[0],c[1],1],l=p(l.data,c,[l.stride[0],l.stride[1],1],l.offset);else{if(3!==c.length)throw new Error(\"gl-texture2d: Invalid shape for texture\");if(1===c[2])f=t.ALPHA;else if(2===c[2])f=t.LUMINANCE_ALPHA;else if(3===c[2])f=t.RGB;else{if(4!==c[2])throw new Error(\"gl-texture2d: Invalid shape for pixel coords\");f=t.RGBA}c[2]}if(f!==t.LUMINANCE&&f!==t.ALPHA||i!==t.LUMINANCE&&i!==t.ALPHA||(f=i),f!==i)throw new Error(\"gl-texture2d: Incompatible texture format for setPixels\");var g=l.size,y=o.indexOf(n)<0;if(y&&o.push(n),h===a&&d)0===l.offset&&l.data.length===g?y?t.texImage2D(t.TEXTURE_2D,n,i,c[0],c[1],0,i,a,l.data):t.texSubImage2D(t.TEXTURE_2D,n,e,r,c[0],c[1],i,a,l.data):y?t.texImage2D(t.TEXTURE_2D,n,i,c[0],c[1],0,i,a,l.data.subarray(l.offset,l.offset+g)):t.texSubImage2D(t.TEXTURE_2D,n,e,r,c[0],c[1],i,a,l.data.subarray(l.offset,l.offset+g));else{var b;b=a===t.FLOAT?v.mallocFloat32(g):v.mallocUint8(g);var _=p(b,c,[c[2],c[2]*c[0],1]);h===t.FLOAT&&a===t.UNSIGNED_BYTE?x(_,l):m.assign(_,l),y?t.texImage2D(t.TEXTURE_2D,n,i,c[0],c[1],0,i,a,b.subarray(0,g)):t.texSubImage2D(t.TEXTURE_2D,n,e,r,c[0],c[1],i,a,b.subarray(0,g)),a===t.FLOAT?v.freeFloat32(b):v.freeUint8(b)}}function u(t){var e=t.createTexture();return t.bindTexture(t.TEXTURE_2D,e),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),e}function c(t,e,r,n,i){var a=t.getParameter(t.MAX_TEXTURE_SIZE);if(e<0||e>a||r<0||r>a)throw new Error(\"gl-texture2d: Invalid texture shape\");if(i===t.FLOAT&&!t.getExtension(\"OES_texture_float\"))throw new Error(\"gl-texture2d: Floating point textures not supported on this platform\");var s=u(t);return t.texImage2D(t.TEXTURE_2D,0,n,e,r,0,n,i,null),new o(t,s,e,r,n,i)}function h(t,e,r,n,i,a){var s=u(t);return t.texImage2D(t.TEXTURE_2D,0,i,i,a,e),new o(t,s,r,n,i,a)}function f(t,e){var r=e.dtype,n=e.shape.slice(),i=t.getParameter(t.MAX_TEXTURE_SIZE);if(n[0]<0||n[0]>i||n[1]<0||n[1]>i)throw new Error(\"gl-texture2d: Invalid texture size\");var a=s(n,e.stride.slice()),l=0;\"float32\"===r?l=t.FLOAT:\"float64\"===r?(l=t.FLOAT,a=!1,r=\"float32\"):\"uint8\"===r?l=t.UNSIGNED_BYTE:(l=t.UNSIGNED_BYTE,a=!1,r=\"uint8\");var c=0;if(2===n.length)c=t.LUMINANCE,n=[n[0],n[1],1],e=p(e.data,n,[e.stride[0],e.stride[1],1],e.offset);else{if(3!==n.length)throw new Error(\"gl-texture2d: Invalid shape for texture\");if(1===n[2])c=t.ALPHA;else if(2===n[2])c=t.LUMINANCE_ALPHA;else if(3===n[2])c=t.RGB;else{if(4!==n[2])throw new Error(\"gl-texture2d: Invalid shape for pixel coords\");c=t.RGBA}}l!==t.FLOAT||t.getExtension(\"OES_texture_float\")||(l=t.UNSIGNED_BYTE,a=!1);var h,f,d=e.size;if(a)h=0===e.offset&&e.data.length===d?e.data:e.data.subarray(e.offset,e.offset+d);else{var g=[n[2],n[2]*n[0],1];f=v.malloc(d,r);var y=p(f,n,g,0);\"float32\"!==r&&\"float64\"!==r||l!==t.UNSIGNED_BYTE?m.assign(y,e):x(y,e),h=f.subarray(0,d)}var b=u(t);return t.texImage2D(t.TEXTURE_2D,0,c,n[0],n[1],0,c,l,h),a||v.free(f),new o(t,b,n[0],n[1],c,l)}function d(t){if(arguments.length<=1)throw new Error(\"gl-texture2d: Missing arguments for texture2d constructor\");if(g||n(t),\"number\"==typeof arguments[1])return c(t,arguments[1],arguments[2],arguments[3]||t.RGBA,arguments[4]||t.UNSIGNED_BYTE);if(Array.isArray(arguments[1]))return c(t,0|arguments[1][0],0|arguments[1][1],arguments[2]||t.RGBA,arguments[3]||t.UNSIGNED_BYTE);if(\"object\"==typeof arguments[1]){var e=arguments[1],r=i(e)?e:e.raw;if(r)return h(t,r,0|e.width,0|e.height,arguments[2]||t.RGBA,arguments[3]||t.UNSIGNED_BYTE);if(e.shape&&e.data&&e.stride)return f(t,e)}throw new Error(\"gl-texture2d: Invalid arguments for texture2d constructor\")}var p=t(\"ndarray\"),m=t(\"ndarray-ops\"),v=t(\"typedarray-pool\");e.exports=d;var g=null,y=null,b=null,x=function(t,e){m.muls(t,e,255)},_=o.prototype;Object.defineProperties(_,{minFilter:{get:function(){return this._minFilter},set:function(t){this.bind();var e=this.gl;if(this.type===e.FLOAT&&g.indexOf(t)>=0&&(e.getExtension(\"OES_texture_float_linear\")||(t=e.NEAREST)),y.indexOf(t)<0)throw new Error(\"gl-texture2d: Unknown filter mode \"+t);return e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,t),this._minFilter=t}},magFilter:{get:function(){return this._magFilter},set:function(t){this.bind();var e=this.gl;if(this.type===e.FLOAT&&g.indexOf(t)>=0&&(e.getExtension(\"OES_texture_float_linear\")||(t=e.NEAREST)),y.indexOf(t)<0)throw new Error(\"gl-texture2d: Unknown filter mode \"+t);return e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,t),this._magFilter=t}},mipSamples:{get:function(){return this._anisoSamples},set:function(t){var e=this._anisoSamples;if(this._anisoSamples=0|Math.max(t,1),e!==this._anisoSamples){var r=this.gl.getExtension(\"EXT_texture_filter_anisotropic\");r&&this.gl.texParameterf(this.gl.TEXTURE_2D,r.TEXTURE_MAX_ANISOTROPY_EXT,this._anisoSamples)}return this._anisoSamples}},wrapS:{get:function(){return this._wrapS},set:function(t){if(this.bind(),b.indexOf(t)<0)throw new Error(\"gl-texture2d: Unknown wrap mode \"+t);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,t),this._wrapS=t}},wrapT:{get:function(){return this._wrapT},set:function(t){if(this.bind(),b.indexOf(t)<0)throw new Error(\"gl-texture2d: Unknown wrap mode \"+t);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,t),this._wrapT=t}},wrap:{get:function(){return this._wrapVector},set:function(t){if(Array.isArray(t)||(t=[t,t]),2!==t.length)throw new Error(\"gl-texture2d: Must specify wrap mode for rows and columns\");for(var e=0;e<2;++e)if(b.indexOf(t[e])<0)throw new Error(\"gl-texture2d: Unknown wrap mode \"+t);this._wrapS=t[0],this._wrapT=t[1];var r=this.gl;return this.bind(),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,this._wrapS),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,this._wrapT),t}},shape:{get:function(){return this._shapeVector},set:function(t){if(Array.isArray(t)){if(2!==t.length)throw new Error(\"gl-texture2d: Invalid texture shape\")}else t=[0|t,0|t];return a(this,0|t[0],0|t[1]),[0|t[0],0|t[1]]}},width:{get:function(){return this._shape[0]},set:function(t){return t|=0,a(this,t,this._shape[1]),t}},height:{get:function(){return this._shape[1]},set:function(t){return t|=0,a(this,this._shape[0],t),t}}}),_.bind=function(t){var e=this.gl;return void 0!==t&&e.activeTexture(e.TEXTURE0+(0|t)),e.bindTexture(e.TEXTURE_2D,this.handle),void 0!==t?0|t:e.getParameter(e.ACTIVE_TEXTURE)-e.TEXTURE0},_.dispose=function(){this.gl.deleteTexture(this.handle)},_.generateMipmap=function(){this.bind(),this.gl.generateMipmap(this.gl.TEXTURE_2D);for(var t=Math.min(this._shape[0],this._shape[1]),e=0;t>0;++e,t>>>=1)this._mipLevels.indexOf(e)<0&&this._mipLevels.push(e)},_.setPixels=function(t,e,r,n){var a=this.gl;this.bind(),Array.isArray(e)?(n=r,r=0|e[1],e=0|e[0]):(e=e||0,r=r||0),n=n||0;var o=i(t)?t:t.raw;if(o){this._mipLevels.indexOf(n)<0?(a.texImage2D(a.TEXTURE_2D,0,this.format,this.format,this.type,o),this._mipLevels.push(n)):a.texSubImage2D(a.TEXTURE_2D,n,e,r,this.format,this.type,o)}else{if(!(t.shape&&t.stride&&t.data))throw new Error(\"gl-texture2d: Unsupported data type\");if(t.shape.length<2||e+t.shape[1]>this._shape[1]>>>n||r+t.shape[0]>this._shape[0]>>>n||e<0||r<0)throw new Error(\"gl-texture2d: Texture dimensions are out of bounds\");l(a,e,r,n,this.format,this.type,this._mipLevels,t)}}},{ndarray:467,\"ndarray-ops\":461,\"typedarray-pool\":541}],268:[function(t,e,r){\"use strict\";function n(t,e,r){e?e.bind():t.bindBuffer(t.ELEMENT_ARRAY_BUFFER,null);var n=0|t.getParameter(t.MAX_VERTEX_ATTRIBS);if(r){if(r.length>n)throw new Error(\"gl-vao: Too many vertex attributes\");for(var i=0;i<r.length;++i){var a=r[i];if(a.buffer){var o=a.buffer,s=a.size||4,l=a.type||t.FLOAT,u=!!a.normalized,c=a.stride||0,h=a.offset||0;o.bind(),t.enableVertexAttribArray(i),t.vertexAttribPointer(i,s,l,u,c,h)}else{if(\"number\"==typeof a)t.vertexAttrib1f(i,a);else if(1===a.length)t.vertexAttrib1f(i,a[0]);else if(2===a.length)t.vertexAttrib2f(i,a[0],a[1]);else if(3===a.length)t.vertexAttrib3f(i,a[0],a[1],a[2]);else{if(4!==a.length)throw new Error(\"gl-vao: Invalid vertex attribute\");t.vertexAttrib4f(i,a[0],a[1],a[2],a[3])}t.disableVertexAttribArray(i)}}for(;i<n;++i)t.disableVertexAttribArray(i)}else{t.bindBuffer(t.ARRAY_BUFFER,null);for(var i=0;i<n;++i)t.disableVertexAttribArray(i)}}e.exports=n},{}],269:[function(t,e,r){\"use strict\";function n(t){this.gl=t,this._elements=null,this._attributes=null,this._elementsType=t.UNSIGNED_SHORT}function i(t){return new n(t)}var a=t(\"./do-bind.js\");n.prototype.bind=function(){a(this.gl,this._elements,this._attributes)},n.prototype.update=function(t,e,r){this._elements=e,this._attributes=t,this._elementsType=r||this.gl.UNSIGNED_SHORT},n.prototype.dispose=function(){},n.prototype.unbind=function(){},n.prototype.draw=function(t,e,r){r=r||0;var n=this.gl;this._elements?n.drawElements(t,e,this._elementsType,r):n.drawArrays(t,r,e)},e.exports=i},{\"./do-bind.js\":268}],270:[function(t,e,r){\"use strict\";function n(t,e,r,n,i,a){this.location=t,this.dimension=e,this.a=r,this.b=n,this.c=i,this.d=a}function i(t,e,r){this.gl=t,this._ext=e,this.handle=r,this._attribs=[],this._useElements=!1,this._elementsType=t.UNSIGNED_SHORT}function a(t,e){return new i(t,e,e.createVertexArrayOES())}var o=t(\"./do-bind.js\");n.prototype.bind=function(t){switch(this.dimension){case 1:t.vertexAttrib1f(this.location,this.a);break;case 2:t.vertexAttrib2f(this.location,this.a,this.b);break;case 3:t.vertexAttrib3f(this.location,this.a,this.b,this.c);break;case 4:t.vertexAttrib4f(this.location,this.a,this.b,this.c,this.d)}},i.prototype.bind=function(){this._ext.bindVertexArrayOES(this.handle);for(var t=0;t<this._attribs.length;++t)this._attribs[t].bind(this.gl)},i.prototype.unbind=function(){this._ext.bindVertexArrayOES(null)},i.prototype.dispose=function(){this._ext.deleteVertexArrayOES(this.handle)},i.prototype.update=function(t,e,r){if(this.bind(),o(this.gl,e,t),this.unbind(),this._attribs.length=0,t)for(var i=0;i<t.length;++i){var a=t[i];\"number\"==typeof a?this._attribs.push(new n(i,1,a)):Array.isArray(a)&&this._attribs.push(new n(i,a.length,a[0],a[1],a[2],a[3]))}this._useElements=!!e,this._elementsType=r||this.gl.UNSIGNED_SHORT},i.prototype.draw=function(t,e,r){r=r||0;var n=this.gl;this._useElements?n.drawElements(t,e,this._elementsType,r):n.drawArrays(t,r,e)},e.exports=a},{\"./do-bind.js\":268}],271:[function(t,e,r){\"use strict\";function n(t){this.bindVertexArrayOES=t.bindVertexArray.bind(t),this.createVertexArrayOES=t.createVertexArray.bind(t),this.deleteVertexArrayOES=t.deleteVertexArray.bind(t)}function i(t,e,r,i){var s,l=t.createVertexArray?new n(t):t.getExtension(\"OES_vertex_array_object\");return s=l?a(t,l):o(t),s.update(e,r,i),s}var a=t(\"./lib/vao-native.js\"),o=t(\"./lib/vao-emulated.js\");e.exports=i},{\"./lib/vao-emulated.js\":269,\"./lib/vao-native.js\":270}],272:[function(t,e,r){function n(t,e,r){var n=e[0],i=e[1],a=e[2],o=r[0],s=r[1],l=r[2];return t[0]=i*l-a*s,t[1]=a*o-n*l,t[2]=n*s-i*o,t}e.exports=n},{}],273:[function(t,e,r){function n(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}e.exports=n},{}],274:[function(t,e,r){function n(t){var e=t[0],r=t[1],n=t[2];return Math.sqrt(e*e+r*r+n*n)}e.exports=n},{}],275:[function(t,e,r){function n(t,e,r,n){var i=e[0],a=e[1],o=e[2];return t[0]=i+n*(r[0]-i),t[1]=a+n*(r[1]-a),t[2]=o+n*(r[2]-o),t}e.exports=n},{}],276:[function(t,e,r){function n(t,e){var r=e[0],n=e[1],i=e[2],a=r*r+n*n+i*i;return a>0&&(a=1/Math.sqrt(a),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a),t}e.exports=n},{}],277:[function(t,e,r){function n(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3];return t[0]=r[0]*n+r[4]*i+r[8]*a+r[12]*o,t[1]=r[1]*n+r[5]*i+r[9]*a+r[13]*o,t[2]=r[2]*n+r[6]*i+r[10]*a+r[14]*o,t[3]=r[3]*n+r[7]*i+r[11]*a+r[15]*o,t}e.exports=n},{}],278:[function(t,e,r){function n(t,e,r,n){return i[0]=n,i[1]=r,i[2]=e,i[3]=t,a[0]}e.exports=n;var i=new Uint8Array(4),a=new Float32Array(i.buffer)},{}],279:[function(t,e,r){function n(t){for(var e=Array.isArray(t)?t:i(t),r=0;r<e.length;r++){var n=e[r];if(\"preprocessor\"===n.type){var o=n.data.match(/\\#define\\s+SHADER_NAME(_B64)?\\s+(.+)$/);if(o&&o[2]){var s=o[1],l=o[2];return(s?a(l):l).trim()}}}}var i=t(\"glsl-tokenizer\"),a=t(\"atob-lite\");e.exports=n},{\"atob-lite\":48,\"glsl-tokenizer\":286}],280:[function(t,e,r){function n(t){function e(t){t.length&&V.push({type:M[B],data:t,position:G,line:H,column:q})}function r(t){j=0,X+=t,F=X.length;for(var e;O=X[j],j<F;){switch(e=j,B){case h:j=E();break;case f:j=S();break;case d:j=T();break;case p:j=L();break;case m:j=z();break;case w:j=I();break;case v:j=D();break;case c:j=P();break;case x:j=A();break;case u:j=k()}if(e!==j)switch(X[e]){case\"\\n\":q=0,++H;break;default:++q}}return N+=j,X=X.slice(j),V}function n(t){return U.length&&e(U.join(\"\")),B=_,e(\"(eof)\"),V}function k(){return U=U.length?[]:U,\"/\"===R&&\"*\"===O?(G=N+j-1,B=h,R=O,j+1):\"/\"===R&&\"/\"===O?(G=N+j-1,B=f,R=O,j+1):\"#\"===O?(B=d,G=N+j,j):/\\s/.test(O)?(B=x,G=N+j,j):(Y=/\\d/.test(O),W=/[^\\w_]/.test(O),G=N+j,B=Y?m:W?p:c,j)}function A(){return/[^\\s]/g.test(O)?(e(U.join(\"\")),B=u,j):(U.push(O),R=O,j+1)}function T(){return\"\\r\"!==O&&\"\\n\"!==O||\"\\\\\"===R?(U.push(O),R=O,j+1):(e(U.join(\"\")),B=u,j)}function S(){return T()}function E(){return\"/\"===O&&\"*\"===R?(U.push(O),e(U.join(\"\")),B=u,j+1):(U.push(O),R=O,j+1)}function L(){if(\".\"===R&&/\\d/.test(O))return B=v,j;if(\"/\"===R&&\"*\"===O)return B=h,j;if(\"/\"===R&&\"/\"===O)return B=f,j;if(\".\"===O&&U.length){for(;C(U););return B=v,j}if(\";\"===O||\")\"===O||\"(\"===O){if(U.length)for(;C(U););return e(O),B=u,j+1}var t=2===U.length&&\"=\"!==O;if(/[\\w_\\d\\s]/.test(O)||t){for(;C(U););return B=u,j}return U.push(O),R=O,j+1}function C(t){for(var r,n,i=0;;){if(r=a.indexOf(t.slice(0,t.length+i).join(\"\")),n=a[r],-1===r){if(i--+t.length>0)continue;n=t.slice(0,1).join(\"\")}return e(n),G+=n.length,U=U.slice(n.length),U.length}}function I(){return/[^a-fA-F0-9]/.test(O)?(e(U.join(\"\")),B=u,j):(U.push(O),R=O,j+1)}function z(){return\".\"===O?(U.push(O),B=v,R=O,j+1):/[eE]/.test(O)?(U.push(O),B=v,R=O,j+1):\"x\"===O&&1===U.length&&\"0\"===U[0]?(B=w,U.push(O),R=O,j+1):/[^\\d]/.test(O)?(e(U.join(\"\")),B=u,j):(U.push(O),R=O,j+1)}function D(){return\"f\"===O&&(U.push(O),R=O,j+=1),/[eE]/.test(O)?(U.push(O),R=O,j+1):\"-\"===O&&/[eE]/.test(R)?(U.push(O),R=O,j+1):/[^\\d]/.test(O)?(e(U.join(\"\")),B=u,j):(U.push(O),R=O,j+1)}function P(){if(/[^\\d\\w_]/.test(O)){var t=U.join(\"\");return B=J.indexOf(t)>-1?b:Z.indexOf(t)>-1?y:g,e(U.join(\"\")),B=u,j}return U.push(O),R=O,j+1}var O,R,F,j=0,N=0,B=u,U=[],V=[],H=1,q=0,G=0,Y=!1,W=!1,X=\"\";t=t||{};var Z=o,J=i;return\"300 es\"===t.version&&(Z=l,J=s),function(t){return V=[],null!==t?r(t.replace?t.replace(/\\r\\n/g,\"\\n\"):t):n()}}e.exports=n;var i=t(\"./lib/literals\"),a=t(\"./lib/operators\"),o=t(\"./lib/builtins\"),s=t(\"./lib/literals-300es\"),l=t(\"./lib/builtins-300es\"),u=999,c=9999,h=0,f=1,d=2,p=3,m=4,v=5,g=6,y=7,b=8,x=9,_=10,w=11,M=[\"block-comment\",\"line-comment\",\"preprocessor\",\"operator\",\"integer\",\"float\",\"ident\",\"builtin\",\"keyword\",\"whitespace\",\"eof\",\"integer\"]},{\"./lib/builtins\":282,\"./lib/builtins-300es\":281,\"./lib/literals\":284,\"./lib/literals-300es\":283,\"./lib/operators\":285}],281:[function(t,e,r){var n=t(\"./builtins\");n=n.slice().filter(function(t){return!/^(gl\\_|texture)/.test(t)}),e.exports=n.concat([\"gl_VertexID\",\"gl_InstanceID\",\"gl_Position\",\"gl_PointSize\",\"gl_FragCoord\",\"gl_FrontFacing\",\"gl_FragDepth\",\"gl_PointCoord\",\"gl_MaxVertexAttribs\",\"gl_MaxVertexUniformVectors\",\"gl_MaxVertexOutputVectors\",\"gl_MaxFragmentInputVectors\",\"gl_MaxVertexTextureImageUnits\",\"gl_MaxCombinedTextureImageUnits\",\"gl_MaxTextureImageUnits\",\"gl_MaxFragmentUniformVectors\",\"gl_MaxDrawBuffers\",\"gl_MinProgramTexelOffset\",\"gl_MaxProgramTexelOffset\",\"gl_DepthRangeParameters\",\"gl_DepthRange\",\"trunc\",\"round\",\"roundEven\",\"isnan\",\"isinf\",\"floatBitsToInt\",\"floatBitsToUint\",\"intBitsToFloat\",\"uintBitsToFloat\",\"packSnorm2x16\",\"unpackSnorm2x16\",\"packUnorm2x16\",\"unpackUnorm2x16\",\"packHalf2x16\",\"unpackHalf2x16\",\"outerProduct\",\"transpose\",\"determinant\",\"inverse\",\"texture\",\"textureSize\",\"textureProj\",\"textureLod\",\"textureOffset\",\"texelFetch\",\"texelFetchOffset\",\"textureProjOffset\",\"textureLodOffset\",\"textureProjLod\",\"textureProjLodOffset\",\"textureGrad\",\"textureGradOffset\",\"textureProjGrad\",\"textureProjGradOffset\"])},{\"./builtins\":282}],282:[function(t,e,r){\n", "e.exports=[\"abs\",\"acos\",\"all\",\"any\",\"asin\",\"atan\",\"ceil\",\"clamp\",\"cos\",\"cross\",\"dFdx\",\"dFdy\",\"degrees\",\"distance\",\"dot\",\"equal\",\"exp\",\"exp2\",\"faceforward\",\"floor\",\"fract\",\"gl_BackColor\",\"gl_BackLightModelProduct\",\"gl_BackLightProduct\",\"gl_BackMaterial\",\"gl_BackSecondaryColor\",\"gl_ClipPlane\",\"gl_ClipVertex\",\"gl_Color\",\"gl_DepthRange\",\"gl_DepthRangeParameters\",\"gl_EyePlaneQ\",\"gl_EyePlaneR\",\"gl_EyePlaneS\",\"gl_EyePlaneT\",\"gl_Fog\",\"gl_FogCoord\",\"gl_FogFragCoord\",\"gl_FogParameters\",\"gl_FragColor\",\"gl_FragCoord\",\"gl_FragData\",\"gl_FragDepth\",\"gl_FragDepthEXT\",\"gl_FrontColor\",\"gl_FrontFacing\",\"gl_FrontLightModelProduct\",\"gl_FrontLightProduct\",\"gl_FrontMaterial\",\"gl_FrontSecondaryColor\",\"gl_LightModel\",\"gl_LightModelParameters\",\"gl_LightModelProducts\",\"gl_LightProducts\",\"gl_LightSource\",\"gl_LightSourceParameters\",\"gl_MaterialParameters\",\"gl_MaxClipPlanes\",\"gl_MaxCombinedTextureImageUnits\",\"gl_MaxDrawBuffers\",\"gl_MaxFragmentUniformComponents\",\"gl_MaxLights\",\"gl_MaxTextureCoords\",\"gl_MaxTextureImageUnits\",\"gl_MaxTextureUnits\",\"gl_MaxVaryingFloats\",\"gl_MaxVertexAttribs\",\"gl_MaxVertexTextureImageUnits\",\"gl_MaxVertexUniformComponents\",\"gl_ModelViewMatrix\",\"gl_ModelViewMatrixInverse\",\"gl_ModelViewMatrixInverseTranspose\",\"gl_ModelViewMatrixTranspose\",\"gl_ModelViewProjectionMatrix\",\"gl_ModelViewProjectionMatrixInverse\",\"gl_ModelViewProjectionMatrixInverseTranspose\",\"gl_ModelViewProjectionMatrixTranspose\",\"gl_MultiTexCoord0\",\"gl_MultiTexCoord1\",\"gl_MultiTexCoord2\",\"gl_MultiTexCoord3\",\"gl_MultiTexCoord4\",\"gl_MultiTexCoord5\",\"gl_MultiTexCoord6\",\"gl_MultiTexCoord7\",\"gl_Normal\",\"gl_NormalMatrix\",\"gl_NormalScale\",\"gl_ObjectPlaneQ\",\"gl_ObjectPlaneR\",\"gl_ObjectPlaneS\",\"gl_ObjectPlaneT\",\"gl_Point\",\"gl_PointCoord\",\"gl_PointParameters\",\"gl_PointSize\",\"gl_Position\",\"gl_ProjectionMatrix\",\"gl_ProjectionMatrixInverse\",\"gl_ProjectionMatrixInverseTranspose\",\"gl_ProjectionMatrixTranspose\",\"gl_SecondaryColor\",\"gl_TexCoord\",\"gl_TextureEnvColor\",\"gl_TextureMatrix\",\"gl_TextureMatrixInverse\",\"gl_TextureMatrixInverseTranspose\",\"gl_TextureMatrixTranspose\",\"gl_Vertex\",\"greaterThan\",\"greaterThanEqual\",\"inversesqrt\",\"length\",\"lessThan\",\"lessThanEqual\",\"log\",\"log2\",\"matrixCompMult\",\"max\",\"min\",\"mix\",\"mod\",\"normalize\",\"not\",\"notEqual\",\"pow\",\"radians\",\"reflect\",\"refract\",\"sign\",\"sin\",\"smoothstep\",\"sqrt\",\"step\",\"tan\",\"texture2D\",\"texture2DLod\",\"texture2DProj\",\"texture2DProjLod\",\"textureCube\",\"textureCubeLod\",\"texture2DLodEXT\",\"texture2DProjLodEXT\",\"textureCubeLodEXT\",\"texture2DGradEXT\",\"texture2DProjGradEXT\",\"textureCubeGradEXT\"]},{}],283:[function(t,e,r){var n=t(\"./literals\");e.exports=n.slice().concat([\"layout\",\"centroid\",\"smooth\",\"case\",\"mat2x2\",\"mat2x3\",\"mat2x4\",\"mat3x2\",\"mat3x3\",\"mat3x4\",\"mat4x2\",\"mat4x3\",\"mat4x4\",\"uint\",\"uvec2\",\"uvec3\",\"uvec4\",\"samplerCubeShadow\",\"sampler2DArray\",\"sampler2DArrayShadow\",\"isampler2D\",\"isampler3D\",\"isamplerCube\",\"isampler2DArray\",\"usampler2D\",\"usampler3D\",\"usamplerCube\",\"usampler2DArray\",\"coherent\",\"restrict\",\"readonly\",\"writeonly\",\"resource\",\"atomic_uint\",\"noperspective\",\"patch\",\"sample\",\"subroutine\",\"common\",\"partition\",\"active\",\"filter\",\"image1D\",\"image2D\",\"image3D\",\"imageCube\",\"iimage1D\",\"iimage2D\",\"iimage3D\",\"iimageCube\",\"uimage1D\",\"uimage2D\",\"uimage3D\",\"uimageCube\",\"image1DArray\",\"image2DArray\",\"iimage1DArray\",\"iimage2DArray\",\"uimage1DArray\",\"uimage2DArray\",\"image1DShadow\",\"image2DShadow\",\"image1DArrayShadow\",\"image2DArrayShadow\",\"imageBuffer\",\"iimageBuffer\",\"uimageBuffer\",\"sampler1DArray\",\"sampler1DArrayShadow\",\"isampler1D\",\"isampler1DArray\",\"usampler1D\",\"usampler1DArray\",\"isampler2DRect\",\"usampler2DRect\",\"samplerBuffer\",\"isamplerBuffer\",\"usamplerBuffer\",\"sampler2DMS\",\"isampler2DMS\",\"usampler2DMS\",\"sampler2DMSArray\",\"isampler2DMSArray\",\"usampler2DMSArray\"])},{\"./literals\":284}],284:[function(t,e,r){e.exports=[\"precision\",\"highp\",\"mediump\",\"lowp\",\"attribute\",\"const\",\"uniform\",\"varying\",\"break\",\"continue\",\"do\",\"for\",\"while\",\"if\",\"else\",\"in\",\"out\",\"inout\",\"float\",\"int\",\"void\",\"bool\",\"true\",\"false\",\"discard\",\"return\",\"mat2\",\"mat3\",\"mat4\",\"vec2\",\"vec3\",\"vec4\",\"ivec2\",\"ivec3\",\"ivec4\",\"bvec2\",\"bvec3\",\"bvec4\",\"sampler1D\",\"sampler2D\",\"sampler3D\",\"samplerCube\",\"sampler1DShadow\",\"sampler2DShadow\",\"struct\",\"asm\",\"class\",\"union\",\"enum\",\"typedef\",\"template\",\"this\",\"packed\",\"goto\",\"switch\",\"default\",\"inline\",\"noinline\",\"volatile\",\"public\",\"static\",\"extern\",\"external\",\"interface\",\"long\",\"short\",\"double\",\"half\",\"fixed\",\"unsigned\",\"input\",\"output\",\"hvec2\",\"hvec3\",\"hvec4\",\"dvec2\",\"dvec3\",\"dvec4\",\"fvec2\",\"fvec3\",\"fvec4\",\"sampler2DRect\",\"sampler3DRect\",\"sampler2DRectShadow\",\"sizeof\",\"cast\",\"namespace\",\"using\"]},{}],285:[function(t,e,r){e.exports=[\"<<=\",\">>=\",\"++\",\"--\",\"<<\",\">>\",\"<=\",\">=\",\"==\",\"!=\",\"&&\",\"||\",\"+=\",\"-=\",\"*=\",\"/=\",\"%=\",\"&=\",\"^^\",\"^=\",\"|=\",\"(\",\")\",\"[\",\"]\",\".\",\"!\",\"~\",\"*\",\"/\",\"%\",\"+\",\"-\",\"<\",\">\",\"&\",\"^\",\"|\",\"?\",\":\",\"=\",\",\",\";\",\"{\",\"}\"]},{}],286:[function(t,e,r){function n(t,e){var r=i(e),n=[];return n=n.concat(r(t)),n=n.concat(r(null))}var i=t(\"./index\");e.exports=n},{\"./index\":280}],287:[function(t,e,r){\"use strict\";function n(t,e,r){var n=this.cells=[];if(t instanceof ArrayBuffer){this.arrayBuffer=t;var a=new Int32Array(this.arrayBuffer);t=a[0],e=a[1],r=a[2],this.d=e+2*r;for(var o=0;o<this.d*this.d;o++){var s=a[i+o],l=a[i+o+1];n.push(s===l?null:a.subarray(s,l))}var u=a[i+n.length],c=a[i+n.length+1];this.keys=a.subarray(u,c),this.bboxes=a.subarray(c),this.insert=this._insertReadonly}else{this.d=e+2*r;for(var h=0;h<this.d*this.d;h++)n.push([]);this.keys=[],this.bboxes=[]}this.n=e,this.extent=t,this.padding=r,this.scale=e/t,this.uid=0;var f=r/e*t;this.min=-f,this.max=t+f}e.exports=n;var i=3;n.prototype.insert=function(t,e,r,n,i){this._forEachCell(e,r,n,i,this._insertCell,this.uid++),this.keys.push(t),this.bboxes.push(e),this.bboxes.push(r),this.bboxes.push(n),this.bboxes.push(i)},n.prototype._insertReadonly=function(){throw\"Cannot insert into a GridIndex created from an ArrayBuffer.\"},n.prototype._insertCell=function(t,e,r,n,i,a){this.cells[i].push(a)},n.prototype.query=function(t,e,r,n){var i=this.min,a=this.max;if(t<=i&&e<=i&&a<=r&&a<=n)return Array.prototype.slice.call(this.keys);var o=[],s={};return this._forEachCell(t,e,r,n,this._queryCell,o,s),o},n.prototype._queryCell=function(t,e,r,n,i,a,o){var s=this.cells[i];if(null!==s)for(var l=this.keys,u=this.bboxes,c=0;c<s.length;c++){var h=s[c];if(void 0===o[h]){var f=4*h;t<=u[f+2]&&e<=u[f+3]&&r>=u[f+0]&&n>=u[f+1]?(o[h]=!0,a.push(l[h])):o[h]=!1}}},n.prototype._forEachCell=function(t,e,r,n,i,a,o){for(var s=this._convertToCellCoord(t),l=this._convertToCellCoord(e),u=this._convertToCellCoord(r),c=this._convertToCellCoord(n),h=s;h<=u;h++)for(var f=l;f<=c;f++){var d=this.d*f+h;if(i.call(this,t,e,r,n,d,a,o))return}},n.prototype._convertToCellCoord=function(t){return Math.max(0,Math.min(this.d-1,Math.floor(t*this.scale)+this.padding))},n.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var t=this.cells,e=i+this.cells.length+1+1,r=0,n=0;n<this.cells.length;n++)r+=this.cells[n].length;var a=new Int32Array(e+r+this.keys.length+this.bboxes.length);a[0]=this.extent,a[1]=this.n,a[2]=this.padding;for(var o=e,s=0;s<t.length;s++){var l=t[s];a[i+s]=o,a.set(l,o),o+=l.length}return a[i+t.length]=o,a.set(this.keys,o),o+=this.keys.length,a[i+t.length+1]=o,a.set(this.bboxes,o),o+=this.bboxes.length,a.buffer}},{}],288:[function(t,e,r){(function(r){\"use strict\";var n,i=t(\"is-browser\");n=\"function\"==typeof r.matchMedia?!r.matchMedia(\"(hover: none)\").matches:i,e.exports=n}).call(this,\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{\"is-browser\":294}],289:[function(t,e,r){r.read=function(t,e,r,n,i){var a,o,s=8*i-n-1,l=(1<<s)-1,u=l>>1,c=-7,h=r?i-1:0,f=r?-1:1,d=t[e+h];for(h+=f,a=d&(1<<-c)-1,d>>=-c,c+=s;c>0;a=256*a+t[e+h],h+=f,c-=8);for(o=a&(1<<-c)-1,a>>=-c,c+=n;c>0;o=256*o+t[e+h],h+=f,c-=8);if(0===a)a=1-u;else{if(a===l)return o?NaN:1/0*(d?-1:1);o+=Math.pow(2,n),a-=u}return(d?-1:1)*o*Math.pow(2,a-n)},r.write=function(t,e,r,n,i,a){var o,s,l,u=8*a-i-1,c=(1<<u)-1,h=c>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:a-1,p=n?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,o=c):(o=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-o))<1&&(o--,l*=2),e+=o+h>=1?f/l:f*Math.pow(2,1-h),e*l>=2&&(o++,l/=2),o+h>=c?(s=0,o=c):o+h>=1?(s=(e*l-1)*Math.pow(2,i),o+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,i),o=0));i>=8;t[r+d]=255&s,d+=p,s/=256,i-=8);for(o=o<<i|s,u+=i;u>0;t[r+d]=255&o,d+=p,o/=256,u-=8);t[r+d-p]|=128*m}},{}],290:[function(t,e,r){\"use strict\";function n(t,e,r){this.vertices=t,this.adjacent=e,this.boundary=r,this.lastVisited=-1}function i(t,e,r){this.vertices=t,this.cell=e,this.index=r}function a(t,e){return c(t.vertices,e.vertices)}function o(t){for(var e=[\"function orient(){var tuple=this.tuple;return test(\"],r=0;r<=t;++r)r>0&&e.push(\",\"),e.push(\"tuple[\",r,\"]\");e.push(\")}return orient\");var n=new Function(\"test\",e.join(\"\")),i=u[t+1];return i||(i=u),n(i)}function s(t,e,r){this.dimension=t,this.vertices=e,this.simplices=r,this.interior=r.filter(function(t){return!t.boundary}),this.tuple=new Array(t+1);for(var n=0;n<=t;++n)this.tuple[n]=this.vertices[n];var i=h[t];i||(i=h[t]=o(t)),this.orient=i}function l(t,e){var r=t.length;if(0===r)throw new Error(\"Must have at least d+1 points\");var i=t[0].length;if(r<=i)throw new Error(\"Must input at least d+1 points\");var a=t.slice(0,i+1),o=u.apply(void 0,a);if(0===o)throw new Error(\"Input not in general position\");for(var l=new Array(i+1),c=0;c<=i;++c)l[c]=c;o<0&&(l[0]=1,l[1]=0);for(var h=new n(l,new Array(i+1),!1),f=h.adjacent,d=new Array(i+2),c=0;c<=i;++c){for(var p=l.slice(),m=0;m<=i;++m)m===c&&(p[m]=-1);var v=p[0];p[0]=p[1],p[1]=v;var g=new n(p,new Array(i+1),!0);f[c]=g,d[c]=g}d[i+1]=h;for(var c=0;c<=i;++c)for(var p=f[c].vertices,y=f[c].adjacent,m=0;m<=i;++m){var b=p[m];if(b<0)y[m]=h;else for(var x=0;x<=i;++x)f[x].vertices.indexOf(b)<0&&(y[m]=f[x])}for(var _=new s(i,a,d),w=!!e,c=i+1;c<r;++c)_.insert(t[c],w);return _.boundary()}e.exports=l;var u=t(\"robust-orientation\"),c=t(\"simplicial-complex\").compareCells;n.prototype.flip=function(){var t=this.vertices[0];this.vertices[0]=this.vertices[1],this.vertices[1]=t;var e=this.adjacent[0];this.adjacent[0]=this.adjacent[1],this.adjacent[1]=e};var h=[],f=s.prototype;f.handleBoundaryDegeneracy=function(t,e){var r=this.dimension,n=this.vertices.length-1,i=this.tuple,a=this.vertices,o=[t];for(t.lastVisited=-n;o.length>0;){t=o.pop();for(var s=(t.vertices,t.adjacent),l=0;l<=r;++l){var u=s[l];if(u.boundary&&!(u.lastVisited<=-n)){for(var c=u.vertices,h=0;h<=r;++h){var f=c[h];i[h]=f<0?e:a[f]}var d=this.orient();if(d>0)return u;u.lastVisited=-n,0===d&&o.push(u)}}}return null},f.walk=function(t,e){var r=this.vertices.length-1,n=this.dimension,i=this.vertices,a=this.tuple,o=e?this.interior.length*Math.random()|0:this.interior.length-1,s=this.interior[o];t:for(;!s.boundary;){for(var l=s.vertices,u=s.adjacent,c=0;c<=n;++c)a[c]=i[l[c]];s.lastVisited=r;for(var c=0;c<=n;++c){var h=u[c];if(!(h.lastVisited>=r)){var f=a[c];a[c]=t;var d=this.orient();if(a[c]=f,d<0){s=h;continue t}h.boundary?h.lastVisited=-r:h.lastVisited=r}}return}return s},f.addPeaks=function(t,e){var r=this.vertices.length-1,o=this.dimension,s=this.vertices,l=this.tuple,u=this.interior,c=this.simplices,h=[e];e.lastVisited=r,e.vertices[e.vertices.indexOf(-1)]=r,e.boundary=!1,u.push(e);for(var f=[];h.length>0;){var e=h.pop(),d=e.vertices,p=e.adjacent,m=d.indexOf(r);if(!(m<0))for(var v=0;v<=o;++v)if(v!==m){var g=p[v];if(g.boundary&&!(g.lastVisited>=r)){var y=g.vertices;if(g.lastVisited!==-r){for(var b=0,x=0;x<=o;++x)y[x]<0?(b=x,l[x]=t):l[x]=s[y[x]];var _=this.orient();if(_>0){y[b]=r,g.boundary=!1,u.push(g),h.push(g),g.lastVisited=r;continue}g.lastVisited=-r}var w=g.adjacent,M=d.slice(),k=p.slice(),A=new n(M,k,!0);c.push(A);var T=w.indexOf(e);if(!(T<0)){w[T]=A,k[m]=g,M[v]=-1,k[v]=e,p[v]=A,A.flip();for(var x=0;x<=o;++x){var S=M[x];if(!(S<0||S===r)){for(var E=new Array(o-1),L=0,C=0;C<=o;++C){var I=M[C];I<0||C===x||(E[L++]=I)}f.push(new i(E,A,x))}}}}}}f.sort(a);for(var v=0;v+1<f.length;v+=2){var z=f[v],D=f[v+1],P=z.index,O=D.index;P<0||O<0||(z.cell.adjacent[z.index]=D.cell,D.cell.adjacent[D.index]=z.cell)}},f.insert=function(t,e){var r=this.vertices;r.push(t);var n=this.walk(t,e);if(n){for(var i=this.dimension,a=this.tuple,o=0;o<=i;++o){var s=n.vertices[o];a[o]=s<0?t:r[s]}var l=this.orient(a);l<0||(0!==l||(n=this.handleBoundaryDegeneracy(n,t)))&&this.addPeaks(t,n)}},f.boundary=function(){for(var t=this.dimension,e=[],r=this.simplices,n=r.length,i=0;i<n;++i){var a=r[i];if(a.boundary){for(var o=new Array(t),s=a.vertices,l=0,u=0,c=0;c<=t;++c)s[c]>=0?o[l++]=s[c]:u=1&c;if(u===(1&t)){var h=o[0];o[0]=o[1],o[1]=h}e.push(o)}}return e}},{\"robust-orientation\":508,\"simplicial-complex\":519}],291:[function(t,e,r){\"use strict\";function n(t,e,r,n,i){this.mid=t,this.left=e,this.right=r,this.leftPoints=n,this.rightPoints=i,this.count=(e?e.count:0)+(r?r.count:0)+n.length}function i(t,e){t.mid=e.mid,t.left=e.left,t.right=e.right,t.leftPoints=e.leftPoints,t.rightPoints=e.rightPoints,t.count=e.count}function a(t,e){var r=p(e);t.mid=r.mid,t.left=r.left,t.right=r.right,t.leftPoints=r.leftPoints,t.rightPoints=r.rightPoints,t.count=r.count}function o(t,e){var r=t.intervals([]);r.push(e),a(t,r)}function s(t,e){var r=t.intervals([]),n=r.indexOf(e);return n<0?y:(r.splice(n,1),a(t,r),b)}function l(t,e,r){for(var n=0;n<t.length&&t[n][0]<=e;++n){var i=r(t[n]);if(i)return i}}function u(t,e,r){for(var n=t.length-1;n>=0&&t[n][1]>=e;--n){var i=r(t[n]);if(i)return i}}function c(t,e){for(var r=0;r<t.length;++r){var n=e(t[r]);if(n)return n}}function h(t,e){return t-e}function f(t,e){var r=t[0]-e[0];return r||t[1]-e[1]}function d(t,e){var r=t[1]-e[1];return r||t[0]-e[0]}function p(t){if(0===t.length)return null;for(var e=[],r=0;r<t.length;++r)e.push(t[r][0],t[r][1]);e.sort(h);for(var i=e[e.length>>1],a=[],o=[],s=[],r=0;r<t.length;++r){var l=t[r];l[1]<i?a.push(l):i<l[0]?o.push(l):s.push(l)}var u=s,c=s.slice();return u.sort(f),c.sort(d),new n(i,p(a),p(o),u,c)}function m(t){this.root=t}function v(t){return new m(t&&0!==t.length?p(t):null)}var g=t(\"binary-search-bounds\"),y=0,b=1;e.exports=v;var x=n.prototype;x.intervals=function(t){return t.push.apply(t,this.leftPoints),this.left&&this.left.intervals(t),this.right&&this.right.intervals(t),t},x.insert=function(t){var e=this.count-this.leftPoints.length;if(this.count+=1,t[1]<this.mid)this.left?4*(this.left.count+1)>3*(e+1)?o(this,t):this.left.insert(t):this.left=p([t]);else if(t[0]>this.mid)this.right?4*(this.right.count+1)>3*(e+1)?o(this,t):this.right.insert(t):this.right=p([t]);else{var r=g.ge(this.leftPoints,t,f),n=g.ge(this.rightPoints,t,d);this.leftPoints.splice(r,0,t),this.rightPoints.splice(n,0,t)}},x.remove=function(t){var e=this.count-this.leftPoints;if(t[1]<this.mid){if(!this.left)return y;if(4*(this.right?this.right.count:0)>3*(e-1))return s(this,t);var r=this.left.remove(t);return 2===r?(this.left=null,this.count-=1,b):(r===b&&(this.count-=1),r)}if(t[0]>this.mid){if(!this.right)return y;if(4*(this.left?this.left.count:0)>3*(e-1))return s(this,t);var r=this.right.remove(t);return 2===r?(this.right=null,this.count-=1,b):(r===b&&(this.count-=1),r)}if(1===this.count)return this.leftPoints[0]===t?2:y;if(1===this.leftPoints.length&&this.leftPoints[0]===t){if(this.left&&this.right){for(var n=this,a=this.left;a.right;)n=a,a=a.right;if(n===this)a.right=this.right;else{var o=this.left,r=this.right;n.count-=a.count,n.right=a.left,a.left=o,a.right=r}i(this,a),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?i(this,this.left):i(this,this.right);return b}for(var o=g.ge(this.leftPoints,t,f);o<this.leftPoints.length&&this.leftPoints[o][0]===t[0];++o)if(this.leftPoints[o]===t){this.count-=1,this.leftPoints.splice(o,1);for(var r=g.ge(this.rightPoints,t,d);r<this.rightPoints.length&&this.rightPoints[r][1]===t[1];++r)if(this.rightPoints[r]===t)return this.rightPoints.splice(r,1),b}return y},x.queryPoint=function(t,e){if(t<this.mid){if(this.left){var r=this.left.queryPoint(t,e);if(r)return r}return l(this.leftPoints,t,e)}if(t>this.mid){if(this.right){var r=this.right.queryPoint(t,e);if(r)return r}return u(this.rightPoints,t,e)}return c(this.leftPoints,e)},x.queryInterval=function(t,e,r){if(t<this.mid&&this.left){var n=this.left.queryInterval(t,e,r);if(n)return n}if(e>this.mid&&this.right){var n=this.right.queryInterval(t,e,r);if(n)return n}return e<this.mid?l(this.leftPoints,e,r):t>this.mid?u(this.rightPoints,t,r):c(this.leftPoints,r)};var _=m.prototype;_.insert=function(t){this.root?this.root.insert(t):this.root=new n(t[0],null,null,[t],[t])},_.remove=function(t){if(this.root){var e=this.root.remove(t);return 2===e&&(this.root=null),e!==y}return!1},_.queryPoint=function(t,e){if(this.root)return this.root.queryPoint(t,e)},_.queryInterval=function(t,e,r){if(t<=e&&this.root)return this.root.queryInterval(t,e,r)},Object.defineProperty(_,\"count\",{get:function(){return this.root?this.root.count:0}}),Object.defineProperty(_,\"intervals\",{get:function(){return this.root?this.root.intervals([]):[]}})},{\"binary-search-bounds\":66}],292:[function(t,e,r){\"use strict\";function n(t,e){e=e||new Array(t.length);for(var r=0;r<t.length;++r)e[t[r]]=r;return e}e.exports=n},{}],293:[function(t,e,r){\"use strict\";function n(t){for(var e=new Array(t),r=0;r<t;++r)e[r]=r;return e}e.exports=n},{}],294:[function(t,e,r){e.exports=!0},{}],295:[function(t,e,r){function n(t){return!!t.constructor&&\"function\"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}function i(t){return\"function\"==typeof t.readFloatLE&&\"function\"==typeof t.slice&&n(t.slice(0,0))}e.exports=function(t){return null!=t&&(n(t)||i(t)||!!t._isBuffer)}},{}],296:[function(t,e,r){function n(t){return t||\"undefined\"==typeof navigator||(t=navigator.userAgent),t&&t.headers&&\"string\"==typeof t.headers[\"user-agent\"]&&(t=t.headers[\"user-agent\"]),\"string\"==typeof t&&(/(android|bb\\d+|meego).+mobile|avantgo|bada\\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\\-(n|u)|c55\\/|capi|ccwa|cdm\\-|cell|chtm|cldc|cmd\\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\\-s|devi|dica|dmob|do(c|p)o|ds(12|\\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\\-|_)|g1 u|g560|gene|gf\\-5|g\\-mo|go(\\.w|od)|gr(ad|un)|haie|hcit|hd\\-(m|p|t)|hei\\-|hi(pt|ta)|hp( i|ip)|hs\\-c|ht(c(\\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\\-(20|go|ma)|i230|iac( |\\-|\\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\\/)|klon|kpt |kwc\\-|kyo(c|k)|le(no|xi)|lg( g|\\/(k|l|u)|50|54|\\-[a-w])|libw|lynx|m1\\-w|m3ga|m50\\/|ma(te|ui|xo)|mc(01|21|ca)|m\\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\\-2|po(ck|rt|se)|prox|psio|pt\\-g|qa\\-a|qc(07|12|21|32|60|\\-[2-7]|i\\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\\-|oo|p\\-)|sdk\\/|se(c(\\-|0|1)|47|mc|nd|ri)|sgh\\-|shar|sie(\\-|m)|sk\\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\\-|v\\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\\-|tdg\\-|tel(i|m)|tim\\-|t\\-mo|to(pl|sh)|ts(70|m\\-|m3|m5)|tx\\-9|up(\\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\\-|your|zeto|zte\\-/i.test(t.substr(0,4)))}e.exports=n},{}],297:[function(t,e,r){\"use strict\";var n=Object.prototype.toString;e.exports=function(t){var e;return\"[object Object]\"===n.call(t)&&(null===(e=Object.getPrototypeOf(t))||e===Object.getPrototypeOf({}))}},{}],298:[function(t,e,r){\"use strict\";function n(t,e,r,n,a){return new i(t,e,r,n,a)}function i(t,e,r,n,i){e=e||a,r=r||o,i=i||Array,this.nodeSize=n||64,this.points=t,this.ids=new i(t.length),this.coords=new i(2*t.length);for(var l=0;l<t.length;l++)this.ids[l]=l,this.coords[2*l]=e(t[l]),this.coords[2*l+1]=r(t[l]);s(this.ids,this.coords,this.nodeSize,0,this.ids.length-1,0)}function a(t){return t[0]}function o(t){return t[1]}var s=t(\"./sort\"),l=t(\"./range\"),u=t(\"./within\");e.exports=n,i.prototype={range:function(t,e,r,n){return l(this.ids,this.coords,t,e,r,n,this.nodeSize)},within:function(t,e,r){return u(this.ids,this.coords,t,e,r,this.nodeSize)}}},{\"./range\":299,\"./sort\":300,\"./within\":301}],299:[function(t,e,r){\"use strict\";function n(t,e,r,n,i,a,o){for(var s,l,u=[0,t.length-1,0],c=[];u.length;){var h=u.pop(),f=u.pop(),d=u.pop();if(f-d<=o)for(var p=d;p<=f;p++)s=e[2*p],l=e[2*p+1],s>=r&&s<=i&&l>=n&&l<=a&&c.push(t[p]);else{var m=Math.floor((d+f)/2);s=e[2*m],l=e[2*m+1],s>=r&&s<=i&&l>=n&&l<=a&&c.push(t[m]);var v=(h+1)%2;(0===h?r<=s:n<=l)&&(u.push(d),u.push(m-1),u.push(v)),(0===h?i>=s:a>=l)&&(u.push(m+1),u.push(f),u.push(v))}}return c}e.exports=n},{}],300:[function(t,e,r){\"use strict\";function n(t,e,r,a,o,s){if(!(o-a<=r)){var l=Math.floor((a+o)/2);i(t,e,l,a,o,s%2),n(t,e,r,a,l-1,s+1),n(t,e,r,l+1,o,s+1)}}function i(t,e,r,n,o,s){for(;o>n;){if(o-n>600){var l=o-n+1,u=r-n+1,c=Math.log(l),h=.5*Math.exp(2*c/3),f=.5*Math.sqrt(c*h*(l-h)/l)*(u-l/2<0?-1:1);i(t,e,r,Math.max(n,Math.floor(r-u*h/l+f)),Math.min(o,Math.floor(r+(l-u)*h/l+f)),s)}var d=e[2*r+s],p=n,m=o;for(a(t,e,n,r),e[2*o+s]>d&&a(t,e,n,o);p<m;){for(a(t,e,p,m),p++,m--;e[2*p+s]<d;)p++;for(;e[2*m+s]>d;)m--}e[2*n+s]===d?a(t,e,n,m):(m++,a(t,e,m,o)),m<=r&&(n=m+1),r<=m&&(o=m-1)}}function a(t,e,r,n){o(t,r,n),o(e,2*r,2*n),o(e,2*r+1,2*n+1)}function o(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}e.exports=n},{}],301:[function(t,e,r){\"use strict\";function n(t,e,r,n,a,o){for(var s=[0,t.length-1,0],l=[],u=a*a;s.length;){var c=s.pop(),h=s.pop(),f=s.pop();if(h-f<=o)for(var d=f;d<=h;d++)i(e[2*d],e[2*d+1],r,n)<=u&&l.push(t[d]);else{var p=Math.floor((f+h)/2),m=e[2*p],v=e[2*p+1];i(m,v,r,n)<=u&&l.push(t[p]);var g=(c+1)%2;(0===c?r-a<=m:n-a<=v)&&(s.push(f),s.push(p-1),s.push(g)),(0===c?r+a>=m:n+a>=v)&&(s.push(p+1),s.push(h),s.push(g))}}return l}function i(t,e,r,n){var i=t-r,a=e-n;return i*i+a*a}e.exports=n},{}],302:[function(t,e,r){\"use strict\";function n(t,e){var r;if(h(t)){var l,u=t.stops&&\"object\"==typeof t.stops[0][0],c=u||void 0!==t.property,f=u||!c,d=t.type||e||\"exponential\";if(\"exponential\"===d)l=o;else if(\"interval\"===d)l=a;else if(\"categorical\"===d)l=i;else{if(\"identity\"!==d)throw new Error('Unknown function type \"'+d+'\"');l=s}if(u){for(var p={},m=[],v=0;v<t.stops.length;v++){var g=t.stops[v];void 0===p[g[0].zoom]&&(p[g[0].zoom]={zoom:g[0].zoom,type:t.type,property:t.property,stops:[]}),p[g[0].zoom].stops.push([g[0].value,g[1]])}for(var y in p)m.push([p[y].zoom,n(p[y])]);r=function(e,r){return o({stops:m,base:t.base},e)(e,r)},r.isFeatureConstant=!1,r.isZoomConstant=!1}else f?(r=function(e){return l(t,e)},r.isFeatureConstant=!0,r.isZoomConstant=!1):(r=function(e,r){return l(t,r[t.property])},r.isFeatureConstant=!1,r.isZoomConstant=!0)}else r=function(){return t},r.isFeatureConstant=!0,r.isZoomConstant=!0;return r}function i(t,e){for(var r=0;r<t.stops.length;r++)if(e===t.stops[r][0])return t.stops[r][1];return t.stops[0][1]}function a(t,e){for(var r=0;r<t.stops.length&&!(e<t.stops[r][0]);r++);return t.stops[Math.max(r-1,0)][1]}function o(t,e){for(var r=void 0!==t.base?t.base:1,n=0;;){if(n>=t.stops.length)break;if(e<=t.stops[n][0])break;n++}return 0===n?t.stops[n][1]:n===t.stops.length?t.stops[n-1][1]:l(e,r,t.stops[n-1][0],t.stops[n][0],t.stops[n-1][1],t.stops[n][1])}function s(t,e){return e}function l(t,e,r,n,i,a){return\"function\"==typeof i?function(){var o=i.apply(void 0,arguments),s=a.apply(void 0,arguments);return l(t,e,r,n,o,s)}:i.length?c(t,e,r,n,i,a):u(t,e,r,n,i,a)}function u(t,e,r,n,i,a){var o,s=n-r,l=t-r;return o=1===e?l/s:(Math.pow(e,l)-1)/(Math.pow(e,s)-1),i*(1-o)+a*o}function c(t,e,r,n,i,a){for(var o=[],s=0;s<i.length;s++)o[s]=u(t,e,r,n,i[s],a[s]);return o}function h(t){return\"object\"==typeof t&&(t.stops||\"identity\"===t.type)}e.exports.isFunctionDefinition=h,e.exports.interpolated=function(t){return n(t,\"exponential\")},e.exports[\"piecewise-constant\"]=function(t){return n(t,\"interval\")}},{}],303:[function(t,e,r){t(\"path\");e.exports={debug:{fragmentSource:\"#ifdef GL_ES\\nprecision mediump float;\\n#else\\n#define lowp\\n#define mediump\\n#define highp\\n#endif\\n\\nuniform lowp vec4 u_color;\\n\\nvoid main() {\\n gl_FragColor = u_color;\\n}\\n\",vertexSource:\"#ifdef GL_ES\\nprecision highp float;\\n#else\\n#define lowp\\n#define mediump\\n#define highp\\n#endif\\n\\nattribute vec2 a_pos;\\n\\nuniform mat4 u_matrix;\\n\\nvoid main() {\\n gl_Position = u_matrix * vec4(a_pos, step(32767.0, a_pos.x), 1);\\n}\\n\"},fill:{fragmentSource:\"#ifdef GL_ES\\nprecision mediump float;\\n#else\\n#define lowp\\n#define mediump\\n#define highp\\n#endif\\n\\n#pragma mapbox: define lowp vec4 color\\n#pragma mapbox: define lowp float opacity\\n\\nvoid main() {\\n #pragma mapbox: initialize lowp vec4 color\\n #pragma mapbox: initialize lowp float opacity\\n\\n gl_FragColor = color * opacity;\\n\\n#ifdef OVERDRAW_INSPECTOR\\n gl_FragColor = vec4(1.0);\\n#endif\\n}\\n\",vertexSource:\"#ifdef GL_ES\\nprecision highp float;\\n#else\\n#define lowp\\n#define mediump\\n#define highp\\n#endif\\n\\nattribute vec2 a_pos;\\n\\nuniform mat4 u_matrix;\\n\\n#pragma mapbox: define lowp vec4 color\\n#pragma mapbox: define lowp float opacity\\n\\nvoid main() {\\n #pragma mapbox: initialize lowp vec4 color\\n #pragma mapbox: initialize lowp float opacity\\n\\n gl_Position = u_matrix * vec4(a_pos, 0, 1);\\n}\\n\"},circle:{fragmentSource:\"#ifdef GL_ES\\nprecision mediump float;\\n#else\\n#define lowp\\n#define mediump\\n#define highp\\n#endif\\n\\n#pragma mapbox: define lowp vec4 color\\n#pragma mapbox: define lowp float blur\\n#pragma mapbox: define lowp float opacity\\n\\nvarying vec2 v_extrude;\\nvarying lowp float v_antialiasblur;\\n\\nvoid main() {\\n #pragma mapbox: initialize lowp vec4 color\\n #pragma mapbox: initialize lowp float blur\\n #pragma mapbox: initialize lowp float opacity\\n\\n float t = smoothstep(1.0 - max(blur, v_antialiasblur), 1.0, length(v_extrude));\\n gl_FragColor = color * (1.0 - t) * opacity;\\n\\n#ifdef OVERDRAW_INSPECTOR\\n gl_FragColor = vec4(1.0);\\n#endif\\n}\\n\",vertexSource:\"#ifdef GL_ES\\nprecision highp float;\\n#else\\n#define lowp\\n#define mediump\\n#define highp\\n#endif\\n\\nuniform mat4 u_matrix;\\nuniform bool u_scale_with_map;\\nuniform vec2 u_extrude_scale;\\nuniform float u_devicepixelratio;\\n\\nattribute vec2 a_pos;\\n\\n#pragma mapbox: define lowp vec4 color\\n#pragma mapbox: define mediump float radius\\n#pragma mapbox: define lowp float blur\\n#pragma mapbox: define lowp float opacity\\n\\nvarying vec2 v_extrude;\\nvarying lowp float v_antialiasblur;\\n\\nvoid main(void) {\\n #pragma mapbox: initialize lowp vec4 color\\n #pragma mapbox: initialize mediump float radius\\n #pragma mapbox: initialize lowp float blur\\n #pragma mapbox: initialize lowp float opacity\\n\\n // unencode the extrusion vector that we snuck into the a_pos vector\\n v_extrude = vec2(mod(a_pos, 2.0) * 2.0 - 1.0);\\n\\n vec2 extrude = v_extrude * radius * u_extrude_scale;\\n // multiply a_pos by 0.5, since we had it * 2 in order to sneak\\n // in extrusion data\\n gl_Position = u_matrix * vec4(floor(a_pos * 0.5), 0, 1);\\n\\n if (u_scale_with_map) {\\n gl_Position.xy += extrude;\\n } else {\\n gl_Position.xy += extrude * gl_Position.w;\\n }\\n\\n // This is a minimum blur distance that serves as a faux-antialiasing for\\n // the circle. since blur is a ratio of the circle's size and the intent is\\n // to keep the blur at roughly 1px, the two are inversely related.\\n v_antialiasblur = 1.0 / u_devicepixelratio / radius;\\n}\\n\"},line:{fragmentSource:\"#ifdef GL_ES\\nprecision mediump float;\\n#else\\n#define lowp\\n#define mediump\\n#define highp\\n#endif\\n\\nuniform lowp vec4 u_color;\\nuniform lowp float u_opacity;\\nuniform float u_blur;\\n\\nvarying vec2 v_linewidth;\\nvarying vec2 v_normal;\\nvarying float v_gamma_scale;\\n\\nvoid main() {\\n // Calculate the distance of the pixel from the line in pixels.\\n float dist = length(v_normal) * v_linewidth.s;\\n\\n // Calculate the antialiasing fade factor. This is either when fading in\\n // the line in case of an offset line (v_linewidth.t) or when fading out\\n // (v_linewidth.s)\\n float blur = u_blur * v_gamma_scale;\\n float alpha = clamp(min(dist - (v_linewidth.t - blur), v_linewidth.s - dist) / blur, 0.0, 1.0);\\n\\n gl_FragColor = u_color * (alpha * u_opacity);\\n\\n#ifdef OVERDRAW_INSPECTOR\\n gl_FragColor = vec4(1.0);\\n#endif\\n}\\n\",vertexSource:\"#ifdef GL_ES\\nprecision highp float;\\n#else\\n#define lowp\\n#define mediump\\n#define highp\\n#endif\\n\\n// floor(127 / 2) == 63.0\\n// the maximum allowed miter limit is 2.0 at the moment. the extrude normal is\\n// stored in a byte (-128..127). we scale regular normals up to length 63, but\\n// there are also \\\"special\\\" normals that have a bigger length (of up to 126 in\\n// this case).\\n// #define scale 63.0\\n#define scale 0.015873016\\n\\nattribute vec2 a_pos;\\nattribute vec4 a_data;\\n\\nuniform mat4 u_matrix;\\nuniform mediump float u_ratio;\\nuniform mediump float u_linewidth;\\nuniform mediump float u_gapwidth;\\nuniform mediump float u_antialiasing;\\nuniform mediump float u_extra;\\nuniform mat2 u_antialiasingmatrix;\\nuniform mediump float u_offset;\\nuniform mediump float u_blur;\\n\\nvarying vec2 v_normal;\\nvarying vec2 v_linewidth;\\nvarying float v_gamma_scale;\\n\\nvoid main() {\\n vec2 a_extrude = a_data.xy - 128.0;\\n float a_direction = mod(a_data.z, 4.0) - 1.0;\\n\\n // We store the texture normals in the most insignificant bit\\n // transform y so that 0 => -1 and 1 => 1\\n // In the texture normal, x is 0 if the normal points straight up/down and 1 if it's a round cap\\n // y is 1 if the normal points up, and -1 if it points down\\n mediump vec2 normal = mod(a_pos, 2.0);\\n normal.y = sign(normal.y - 0.5);\\n v_normal = normal;\\n\\n float inset = u_gapwidth + (u_gapwidth > 0.0 ? u_antialiasing : 0.0);\\n float outset = u_gapwidth + u_linewidth * (u_gapwidth > 0.0 ? 2.0 : 1.0) + u_antialiasing;\\n\\n // Scale the extrusion vector down to a normal and then up by the line width\\n // of this vertex.\\n mediump vec2 dist = outset * a_extrude * scale;\\n\\n // Calculate the offset when drawing a line that is to the side of the actual line.\\n // We do this by creating a vector that points towards the extrude, but rotate\\n // it when we're drawing round end points (a_direction = -1 or 1) since their\\n // extrude vector points in another direction.\\n mediump float u = 0.5 * a_direction;\\n mediump float t = 1.0 - abs(u);\\n mediump vec2 offset = u_offset * a_extrude * scale * normal.y * mat2(t, -u, u, t);\\n\\n // Remove the texture normal bit of the position before scaling it with the\\n // model/view matrix.\\n gl_Position = u_matrix * vec4(floor(a_pos * 0.5) + (offset + dist) / u_ratio, 0.0, 1.0);\\n\\n // position of y on the screen\\n float y = gl_Position.y / gl_Position.w;\\n\\n // how much features are squished in the y direction by the tilt\\n float squish_scale = length(a_extrude) / length(u_antialiasingmatrix * a_extrude);\\n\\n // how much features are squished in all directions by the perspectiveness\\n float perspective_scale = 1.0 / (1.0 - min(y * u_extra, 0.9));\\n\\n v_linewidth = vec2(outset, inset);\\n v_gamma_scale = perspective_scale * squish_scale;\\n}\\n\"},linepattern:{\n", "fragmentSource:\"#ifdef GL_ES\\nprecision mediump float;\\n#else\\n#define lowp\\n#define mediump\\n#define highp\\n#endif\\n\\nuniform float u_blur;\\n\\nuniform vec2 u_pattern_size_a;\\nuniform vec2 u_pattern_size_b;\\nuniform vec2 u_pattern_tl_a;\\nuniform vec2 u_pattern_br_a;\\nuniform vec2 u_pattern_tl_b;\\nuniform vec2 u_pattern_br_b;\\nuniform float u_fade;\\nuniform float u_opacity;\\n\\nuniform sampler2D u_image;\\n\\nvarying vec2 v_normal;\\nvarying vec2 v_linewidth;\\nvarying float v_linesofar;\\nvarying float v_gamma_scale;\\n\\nvoid main() {\\n // Calculate the distance of the pixel from the line in pixels.\\n float dist = length(v_normal) * v_linewidth.s;\\n\\n // Calculate the antialiasing fade factor. This is either when fading in\\n // the line in case of an offset line (v_linewidth.t) or when fading out\\n // (v_linewidth.s)\\n float blur = u_blur * v_gamma_scale;\\n float alpha = clamp(min(dist - (v_linewidth.t - blur), v_linewidth.s - dist) / blur, 0.0, 1.0);\\n\\n float x_a = mod(v_linesofar / u_pattern_size_a.x, 1.0);\\n float x_b = mod(v_linesofar / u_pattern_size_b.x, 1.0);\\n float y_a = 0.5 + (v_normal.y * v_linewidth.s / u_pattern_size_a.y);\\n float y_b = 0.5 + (v_normal.y * v_linewidth.s / u_pattern_size_b.y);\\n vec2 pos_a = mix(u_pattern_tl_a, u_pattern_br_a, vec2(x_a, y_a));\\n vec2 pos_b = mix(u_pattern_tl_b, u_pattern_br_b, vec2(x_b, y_b));\\n\\n vec4 color = mix(texture2D(u_image, pos_a), texture2D(u_image, pos_b), u_fade);\\n\\n alpha *= u_opacity;\\n\\n gl_FragColor = color * alpha;\\n\\n#ifdef OVERDRAW_INSPECTOR\\n gl_FragColor = vec4(1.0);\\n#endif\\n}\\n\",vertexSource:\"#ifdef GL_ES\\nprecision highp float;\\n#else\\n#define lowp\\n#define mediump\\n#define highp\\n#endif\\n\\n// floor(127 / 2) == 63.0\\n// the maximum allowed miter limit is 2.0 at the moment. the extrude normal is\\n// stored in a byte (-128..127). we scale regular normals up to length 63, but\\n// there are also \\\"special\\\" normals that have a bigger length (of up to 126 in\\n// this case).\\n// #define scale 63.0\\n#define scale 0.015873016\\n\\n// We scale the distance before adding it to the buffers so that we can store\\n// long distances for long segments. Use this value to unscale the distance.\\n#define LINE_DISTANCE_SCALE 2.0\\n\\nattribute vec2 a_pos;\\nattribute vec4 a_data;\\n\\nuniform mat4 u_matrix;\\nuniform mediump float u_ratio;\\nuniform mediump float u_linewidth;\\nuniform mediump float u_gapwidth;\\nuniform mediump float u_antialiasing;\\nuniform mediump float u_extra;\\nuniform mat2 u_antialiasingmatrix;\\nuniform mediump float u_offset;\\n\\nvarying vec2 v_normal;\\nvarying vec2 v_linewidth;\\nvarying float v_linesofar;\\nvarying float v_gamma_scale;\\n\\nvoid main() {\\n vec2 a_extrude = a_data.xy - 128.0;\\n float a_direction = mod(a_data.z, 4.0) - 1.0;\\n float a_linesofar = (floor(a_data.z / 4.0) + a_data.w * 64.0) * LINE_DISTANCE_SCALE;\\n\\n // We store the texture normals in the most insignificant bit\\n // transform y so that 0 => -1 and 1 => 1\\n // In the texture normal, x is 0 if the normal points straight up/down and 1 if it's a round cap\\n // y is 1 if the normal points up, and -1 if it points down\\n mediump vec2 normal = mod(a_pos, 2.0);\\n normal.y = sign(normal.y - 0.5);\\n v_normal = normal;\\n\\n float inset = u_gapwidth + (u_gapwidth > 0.0 ? u_antialiasing : 0.0);\\n float outset = u_gapwidth + u_linewidth * (u_gapwidth > 0.0 ? 2.0 : 1.0) + u_antialiasing;\\n\\n // Scale the extrusion vector down to a normal and then up by the line width\\n // of this vertex.\\n mediump vec2 dist = outset * a_extrude * scale;\\n\\n // Calculate the offset when drawing a line that is to the side of the actual line.\\n // We do this by creating a vector that points towards the extrude, but rotate\\n // it when we're drawing round end points (a_direction = -1 or 1) since their\\n // extrude vector points in another direction.\\n mediump float u = 0.5 * a_direction;\\n mediump float t = 1.0 - abs(u);\\n mediump vec2 offset = u_offset * a_extrude * scale * normal.y * mat2(t, -u, u, t);\\n\\n // Remove the texture normal bit of the position before scaling it with the\\n // model/view matrix.\\n gl_Position = u_matrix * vec4(floor(a_pos * 0.5) + (offset + dist) / u_ratio, 0.0, 1.0);\\n v_linesofar = a_linesofar;\\n\\n // position of y on the screen\\n float y = gl_Position.y / gl_Position.w;\\n\\n // how much features are squished in the y direction by the tilt\\n float squish_scale = length(a_extrude) / length(u_antialiasingmatrix * a_extrude);\\n\\n // how much features are squished in all directions by the perspectiveness\\n float perspective_scale = 1.0 / (1.0 - min(y * u_extra, 0.9));\\n\\n v_linewidth = vec2(outset, inset);\\n v_gamma_scale = perspective_scale * squish_scale;\\n}\\n\"},linesdfpattern:{fragmentSource:\"#ifdef GL_ES\\nprecision mediump float;\\n#else\\n#define lowp\\n#define mediump\\n#define highp\\n#endif\\n\\nuniform lowp vec4 u_color;\\nuniform lowp float u_opacity;\\n\\nuniform float u_blur;\\nuniform sampler2D u_image;\\nuniform float u_sdfgamma;\\nuniform float u_mix;\\n\\nvarying vec2 v_normal;\\nvarying vec2 v_linewidth;\\nvarying vec2 v_tex_a;\\nvarying vec2 v_tex_b;\\nvarying float v_gamma_scale;\\n\\nvoid main() {\\n // Calculate the distance of the pixel from the line in pixels.\\n float dist = length(v_normal) * v_linewidth.s;\\n\\n // Calculate the antialiasing fade factor. This is either when fading in\\n // the line in case of an offset line (v_linewidth.t) or when fading out\\n // (v_linewidth.s)\\n float blur = u_blur * v_gamma_scale;\\n float alpha = clamp(min(dist - (v_linewidth.t - blur), v_linewidth.s - dist) / blur, 0.0, 1.0);\\n\\n float sdfdist_a = texture2D(u_image, v_tex_a).a;\\n float sdfdist_b = texture2D(u_image, v_tex_b).a;\\n float sdfdist = mix(sdfdist_a, sdfdist_b, u_mix);\\n alpha *= smoothstep(0.5 - u_sdfgamma, 0.5 + u_sdfgamma, sdfdist);\\n\\n gl_FragColor = u_color * (alpha * u_opacity);\\n\\n#ifdef OVERDRAW_INSPECTOR\\n gl_FragColor = vec4(1.0);\\n#endif\\n}\\n\",vertexSource:\"#ifdef GL_ES\\nprecision highp float;\\n#else\\n#define lowp\\n#define mediump\\n#define highp\\n#endif\\n\\n// floor(127 / 2) == 63.0\\n// the maximum allowed miter limit is 2.0 at the moment. the extrude normal is\\n// stored in a byte (-128..127). we scale regular normals up to length 63, but\\n// there are also \\\"special\\\" normals that have a bigger length (of up to 126 in\\n// this case).\\n// #define scale 63.0\\n#define scale 0.015873016\\n\\n// We scale the distance before adding it to the buffers so that we can store\\n// long distances for long segments. Use this value to unscale the distance.\\n#define LINE_DISTANCE_SCALE 2.0\\n\\nattribute vec2 a_pos;\\nattribute vec4 a_data;\\n\\nuniform mat4 u_matrix;\\nuniform mediump float u_ratio;\\nuniform mediump float u_linewidth;\\nuniform mediump float u_gapwidth;\\nuniform mediump float u_antialiasing;\\nuniform vec2 u_patternscale_a;\\nuniform float u_tex_y_a;\\nuniform vec2 u_patternscale_b;\\nuniform float u_tex_y_b;\\nuniform float u_extra;\\nuniform mat2 u_antialiasingmatrix;\\nuniform mediump float u_offset;\\n\\nvarying vec2 v_normal;\\nvarying vec2 v_linewidth;\\nvarying vec2 v_tex_a;\\nvarying vec2 v_tex_b;\\nvarying float v_gamma_scale;\\n\\nvoid main() {\\n vec2 a_extrude = a_data.xy - 128.0;\\n float a_direction = mod(a_data.z, 4.0) - 1.0;\\n float a_linesofar = (floor(a_data.z / 4.0) + a_data.w * 64.0) * LINE_DISTANCE_SCALE;\\n\\n // We store the texture normals in the most insignificant bit\\n // transform y so that 0 => -1 and 1 => 1\\n // In the texture normal, x is 0 if the normal points straight up/down and 1 if it's a round cap\\n // y is 1 if the normal points up, and -1 if it points down\\n mediump vec2 normal = mod(a_pos, 2.0);\\n normal.y = sign(normal.y - 0.5);\\n v_normal = normal;\\n\\n float inset = u_gapwidth + (u_gapwidth > 0.0 ? u_antialiasing : 0.0);\\n float outset = u_gapwidth + u_linewidth * (u_gapwidth > 0.0 ? 2.0 : 1.0) + u_antialiasing;\\n\\n // Scale the extrusion vector down to a normal and then up by the line width\\n // of this vertex.\\n mediump vec2 dist = outset * a_extrude * scale;\\n\\n // Calculate the offset when drawing a line that is to the side of the actual line.\\n // We do this by creating a vector that points towards the extrude, but rotate\\n // it when we're drawing round end points (a_direction = -1 or 1) since their\\n // extrude vector points in another direction.\\n mediump float u = 0.5 * a_direction;\\n mediump float t = 1.0 - abs(u);\\n mediump vec2 offset = u_offset * a_extrude * scale * normal.y * mat2(t, -u, u, t);\\n\\n // Remove the texture normal bit of the position before scaling it with the\\n // model/view matrix.\\n gl_Position = u_matrix * vec4(floor(a_pos * 0.5) + (offset + dist) / u_ratio, 0.0, 1.0);\\n\\n v_tex_a = vec2(a_linesofar * u_patternscale_a.x, normal.y * u_patternscale_a.y + u_tex_y_a);\\n v_tex_b = vec2(a_linesofar * u_patternscale_b.x, normal.y * u_patternscale_b.y + u_tex_y_b);\\n\\n // position of y on the screen\\n float y = gl_Position.y / gl_Position.w;\\n\\n // how much features are squished in the y direction by the tilt\\n float squish_scale = length(a_extrude) / length(u_antialiasingmatrix * a_extrude);\\n\\n // how much features are squished in all directions by the perspectiveness\\n float perspective_scale = 1.0 / (1.0 - min(y * u_extra, 0.9));\\n\\n v_linewidth = vec2(outset, inset);\\n v_gamma_scale = perspective_scale * squish_scale;\\n}\\n\"},outline:{fragmentSource:\"#ifdef GL_ES\\nprecision mediump float;\\n#else\\n#define lowp\\n#define mediump\\n#define highp\\n#endif\\n\\n#pragma mapbox: define lowp vec4 outline_color\\n#pragma mapbox: define lowp float opacity\\n\\nvarying vec2 v_pos;\\n\\nvoid main() {\\n #pragma mapbox: initialize lowp vec4 outline_color\\n #pragma mapbox: initialize lowp float opacity\\n\\n float dist = length(v_pos - gl_FragCoord.xy);\\n float alpha = smoothstep(1.0, 0.0, dist);\\n gl_FragColor = outline_color * (alpha * opacity);\\n\\n#ifdef OVERDRAW_INSPECTOR\\n gl_FragColor = vec4(1.0);\\n#endif\\n}\\n\",vertexSource:\"#ifdef GL_ES\\nprecision highp float;\\n#else\\n#define lowp\\n#define mediump\\n#define highp\\n#endif\\n\\nattribute vec2 a_pos;\\n\\nuniform mat4 u_matrix;\\nuniform vec2 u_world;\\n\\nvarying vec2 v_pos;\\n\\n#pragma mapbox: define lowp vec4 outline_color\\n#pragma mapbox: define lowp float opacity\\n\\nvoid main() {\\n #pragma mapbox: initialize lowp vec4 outline_color\\n #pragma mapbox: initialize lowp float opacity\\n\\n gl_Position = u_matrix * vec4(a_pos, 0, 1);\\n v_pos = (gl_Position.xy / gl_Position.w + 1.0) / 2.0 * u_world;\\n}\\n\"},outlinepattern:{fragmentSource:\"#ifdef GL_ES\\nprecision mediump float;\\n#else\\n#define lowp\\n#define mediump\\n#define highp\\n#endif\\n\\nuniform float u_opacity;\\nuniform vec2 u_pattern_tl_a;\\nuniform vec2 u_pattern_br_a;\\nuniform vec2 u_pattern_tl_b;\\nuniform vec2 u_pattern_br_b;\\nuniform float u_mix;\\n\\nuniform sampler2D u_image;\\n\\nvarying vec2 v_pos_a;\\nvarying vec2 v_pos_b;\\nvarying vec2 v_pos;\\n\\nvoid main() {\\n vec2 imagecoord = mod(v_pos_a, 1.0);\\n vec2 pos = mix(u_pattern_tl_a, u_pattern_br_a, imagecoord);\\n vec4 color1 = texture2D(u_image, pos);\\n\\n vec2 imagecoord_b = mod(v_pos_b, 1.0);\\n vec2 pos2 = mix(u_pattern_tl_b, u_pattern_br_b, imagecoord_b);\\n vec4 color2 = texture2D(u_image, pos2);\\n\\n // find distance to outline for alpha interpolation\\n\\n float dist = length(v_pos - gl_FragCoord.xy);\\n float alpha = smoothstep(1.0, 0.0, dist);\\n \\n\\n gl_FragColor = mix(color1, color2, u_mix) * alpha * u_opacity;\\n\\n#ifdef OVERDRAW_INSPECTOR\\n gl_FragColor = vec4(1.0);\\n#endif\\n}\\n\",vertexSource:\"#ifdef GL_ES\\nprecision highp float;\\n#else\\n#define lowp\\n#define mediump\\n#define highp\\n#endif\\n\\nuniform vec2 u_pattern_size_a;\\nuniform vec2 u_pattern_size_b;\\nuniform vec2 u_pixel_coord_upper;\\nuniform vec2 u_pixel_coord_lower;\\nuniform float u_scale_a;\\nuniform float u_scale_b;\\nuniform float u_tile_units_to_pixels;\\n\\nattribute vec2 a_pos;\\n\\nuniform mat4 u_matrix;\\nuniform vec2 u_world;\\n\\nvarying vec2 v_pos_a;\\nvarying vec2 v_pos_b;\\nvarying vec2 v_pos;\\n\\nvoid main() {\\n gl_Position = u_matrix * vec4(a_pos, 0, 1);\\n vec2 scaled_size_a = u_scale_a * u_pattern_size_a;\\n vec2 scaled_size_b = u_scale_b * u_pattern_size_b;\\n\\n // the correct offset needs to be calculated.\\n //\\n // The offset depends on how many pixels are between the world origin and\\n // the edge of the tile:\\n // vec2 offset = mod(pixel_coord, size)\\n //\\n // At high zoom levels there are a ton of pixels between the world origin\\n // and the edge of the tile. The glsl spec only guarantees 16 bits of\\n // precision for highp floats. We need more than that.\\n //\\n // The pixel_coord is passed in as two 16 bit values:\\n // pixel_coord_upper = floor(pixel_coord / 2^16)\\n // pixel_coord_lower = mod(pixel_coord, 2^16)\\n //\\n // The offset is calculated in a series of steps that should preserve this precision:\\n vec2 offset_a = mod(mod(mod(u_pixel_coord_upper, scaled_size_a) * 256.0, scaled_size_a) * 256.0 + u_pixel_coord_lower, scaled_size_a);\\n vec2 offset_b = mod(mod(mod(u_pixel_coord_upper, scaled_size_b) * 256.0, scaled_size_b) * 256.0 + u_pixel_coord_lower, scaled_size_b);\\n\\n v_pos_a = (u_tile_units_to_pixels * a_pos + offset_a) / scaled_size_a;\\n v_pos_b = (u_tile_units_to_pixels * a_pos + offset_b) / scaled_size_b;\\n\\n v_pos = (gl_Position.xy / gl_Position.w + 1.0) / 2.0 * u_world;\\n}\\n\"},pattern:{fragmentSource:\"#ifdef GL_ES\\nprecision mediump float;\\n#else\\n#define lowp\\n#define mediump\\n#define highp\\n#endif\\n\\nuniform float u_opacity;\\nuniform vec2 u_pattern_tl_a;\\nuniform vec2 u_pattern_br_a;\\nuniform vec2 u_pattern_tl_b;\\nuniform vec2 u_pattern_br_b;\\nuniform float u_mix;\\n\\nuniform sampler2D u_image;\\n\\nvarying vec2 v_pos_a;\\nvarying vec2 v_pos_b;\\n\\nvoid main() {\\n\\n vec2 imagecoord = mod(v_pos_a, 1.0);\\n vec2 pos = mix(u_pattern_tl_a, u_pattern_br_a, imagecoord);\\n vec4 color1 = texture2D(u_image, pos);\\n\\n vec2 imagecoord_b = mod(v_pos_b, 1.0);\\n vec2 pos2 = mix(u_pattern_tl_b, u_pattern_br_b, imagecoord_b);\\n vec4 color2 = texture2D(u_image, pos2);\\n\\n gl_FragColor = mix(color1, color2, u_mix) * u_opacity;\\n\\n#ifdef OVERDRAW_INSPECTOR\\n gl_FragColor = vec4(1.0);\\n#endif\\n}\\n\",vertexSource:\"#ifdef GL_ES\\nprecision highp float;\\n#else\\n#define lowp\\n#define mediump\\n#define highp\\n#endif\\n\\nuniform mat4 u_matrix;\\nuniform vec2 u_pattern_size_a;\\nuniform vec2 u_pattern_size_b;\\nuniform vec2 u_pixel_coord_upper;\\nuniform vec2 u_pixel_coord_lower;\\nuniform float u_scale_a;\\nuniform float u_scale_b;\\nuniform float u_tile_units_to_pixels;\\n\\nattribute vec2 a_pos;\\n\\nvarying vec2 v_pos_a;\\nvarying vec2 v_pos_b;\\n\\nvoid main() {\\n gl_Position = u_matrix * vec4(a_pos, 0, 1);\\n vec2 scaled_size_a = u_scale_a * u_pattern_size_a;\\n vec2 scaled_size_b = u_scale_b * u_pattern_size_b;\\n\\n // the correct offset needs to be calculated.\\n //\\n // The offset depends on how many pixels are between the world origin and\\n // the edge of the tile:\\n // vec2 offset = mod(pixel_coord, size)\\n //\\n // At high zoom levels there are a ton of pixels between the world origin\\n // and the edge of the tile. The glsl spec only guarantees 16 bits of\\n // precision for highp floats. We need more than that.\\n //\\n // The pixel_coord is passed in as two 16 bit values:\\n // pixel_coord_upper = floor(pixel_coord / 2^16)\\n // pixel_coord_lower = mod(pixel_coord, 2^16)\\n //\\n // The offset is calculated in a series of steps that should preserve this precision:\\n vec2 offset_a = mod(mod(mod(u_pixel_coord_upper, scaled_size_a) * 256.0, scaled_size_a) * 256.0 + u_pixel_coord_lower, scaled_size_a);\\n vec2 offset_b = mod(mod(mod(u_pixel_coord_upper, scaled_size_b) * 256.0, scaled_size_b) * 256.0 + u_pixel_coord_lower, scaled_size_b);\\n\\n v_pos_a = (u_tile_units_to_pixels * a_pos + offset_a) / scaled_size_a;\\n v_pos_b = (u_tile_units_to_pixels * a_pos + offset_b) / scaled_size_b;\\n}\\n\"},raster:{fragmentSource:\"#ifdef GL_ES\\nprecision mediump float;\\n#else\\n#define lowp\\n#define mediump\\n#define highp\\n#endif\\n\\nuniform float u_opacity0;\\nuniform float u_opacity1;\\nuniform sampler2D u_image0;\\nuniform sampler2D u_image1;\\nvarying vec2 v_pos0;\\nvarying vec2 v_pos1;\\n\\nuniform float u_brightness_low;\\nuniform float u_brightness_high;\\n\\nuniform float u_saturation_factor;\\nuniform float u_contrast_factor;\\nuniform vec3 u_spin_weights;\\n\\nvoid main() {\\n\\n // read and cross-fade colors from the main and parent tiles\\n vec4 color0 = texture2D(u_image0, v_pos0);\\n vec4 color1 = texture2D(u_image1, v_pos1);\\n vec4 color = color0 * u_opacity0 + color1 * u_opacity1;\\n vec3 rgb = color.rgb;\\n\\n // spin\\n rgb = vec3(\\n dot(rgb, u_spin_weights.xyz),\\n dot(rgb, u_spin_weights.zxy),\\n dot(rgb, u_spin_weights.yzx));\\n\\n // saturation\\n float average = (color.r + color.g + color.b) / 3.0;\\n rgb += (average - rgb) * u_saturation_factor;\\n\\n // contrast\\n rgb = (rgb - 0.5) * u_contrast_factor + 0.5;\\n\\n // brightness\\n vec3 u_high_vec = vec3(u_brightness_low, u_brightness_low, u_brightness_low);\\n vec3 u_low_vec = vec3(u_brightness_high, u_brightness_high, u_brightness_high);\\n\\n gl_FragColor = vec4(mix(u_high_vec, u_low_vec, rgb), color.a);\\n\\n#ifdef OVERDRAW_INSPECTOR\\n gl_FragColor = vec4(1.0);\\n#endif\\n}\\n\",vertexSource:\"#ifdef GL_ES\\nprecision highp float;\\n#else\\n#define lowp\\n#define mediump\\n#define highp\\n#endif\\n\\nuniform mat4 u_matrix;\\nuniform vec2 u_tl_parent;\\nuniform float u_scale_parent;\\nuniform float u_buffer_scale;\\n\\nattribute vec2 a_pos;\\nattribute vec2 a_texture_pos;\\n\\nvarying vec2 v_pos0;\\nvarying vec2 v_pos1;\\n\\nvoid main() {\\n gl_Position = u_matrix * vec4(a_pos, 0, 1);\\n v_pos0 = (((a_texture_pos / 32767.0) - 0.5) / u_buffer_scale ) + 0.5;\\n v_pos1 = (v_pos0 * u_scale_parent) + u_tl_parent;\\n}\\n\"},icon:{fragmentSource:\"#ifdef GL_ES\\nprecision mediump float;\\n#else\\n#define lowp\\n#define mediump\\n#define highp\\n#endif\\n\\nuniform sampler2D u_texture;\\nuniform sampler2D u_fadetexture;\\nuniform lowp float u_opacity;\\n\\nvarying vec2 v_tex;\\nvarying vec2 v_fade_tex;\\n\\nvoid main() {\\n lowp float alpha = texture2D(u_fadetexture, v_fade_tex).a * u_opacity;\\n gl_FragColor = texture2D(u_texture, v_tex) * alpha;\\n\\n#ifdef OVERDRAW_INSPECTOR\\n gl_FragColor = vec4(1.0);\\n#endif\\n}\\n\",vertexSource:\"#ifdef GL_ES\\nprecision highp float;\\n#else\\n#define lowp\\n#define mediump\\n#define highp\\n#endif\\n\\nattribute vec2 a_pos;\\nattribute vec2 a_offset;\\nattribute vec2 a_texture_pos;\\nattribute vec4 a_data;\\n\\n\\n// matrix is for the vertex position.\\nuniform mat4 u_matrix;\\n\\nuniform mediump float u_zoom;\\nuniform bool u_rotate_with_map;\\nuniform vec2 u_extrude_scale;\\n\\nuniform vec2 u_texsize;\\n\\nvarying vec2 v_tex;\\nvarying vec2 v_fade_tex;\\n\\nvoid main() {\\n vec2 a_tex = a_texture_pos.xy;\\n mediump float a_labelminzoom = a_data[0];\\n mediump vec2 a_zoom = a_data.pq;\\n mediump float a_minzoom = a_zoom[0];\\n mediump float a_maxzoom = a_zoom[1];\\n\\n // u_zoom is the current zoom level adjusted for the change in font size\\n mediump float z = 2.0 - step(a_minzoom, u_zoom) - (1.0 - step(a_maxzoom, u_zoom));\\n\\n vec2 extrude = u_extrude_scale * (a_offset / 64.0);\\n if (u_rotate_with_map) {\\n gl_Position = u_matrix * vec4(a_pos + extrude, 0, 1);\\n gl_Position.z += z * gl_Position.w;\\n } else {\\n gl_Position = u_matrix * vec4(a_pos, 0, 1) + vec4(extrude, 0, 0);\\n }\\n\\n v_tex = a_tex / u_texsize;\\n v_fade_tex = vec2(a_labelminzoom / 255.0, 0.0);\\n}\\n\"},sdf:{fragmentSource:\"#ifdef GL_ES\\nprecision mediump float;\\n#else\\n#define lowp\\n#define mediump\\n#define highp\\n#endif\\n\\nuniform sampler2D u_texture;\\nuniform sampler2D u_fadetexture;\\nuniform lowp vec4 u_color;\\nuniform lowp float u_opacity;\\nuniform lowp float u_buffer;\\nuniform lowp float u_gamma;\\n\\nvarying vec2 v_tex;\\nvarying vec2 v_fade_tex;\\nvarying float v_gamma_scale;\\n\\nvoid main() {\\n lowp float dist = texture2D(u_texture, v_tex).a;\\n lowp float fade_alpha = texture2D(u_fadetexture, v_fade_tex).a;\\n lowp float gamma = u_gamma * v_gamma_scale;\\n lowp float alpha = smoothstep(u_buffer - gamma, u_buffer + gamma, dist) * fade_alpha;\\n\\n gl_FragColor = u_color * (alpha * u_opacity);\\n\\n#ifdef OVERDRAW_INSPECTOR\\n gl_FragColor = vec4(1.0);\\n#endif\\n}\\n\",vertexSource:\"#ifdef GL_ES\\nprecision highp float;\\n#else\\n#define lowp\\n#define mediump\\n#define highp\\n#endif\\n\\nconst float PI = 3.141592653589793;\\n\\nattribute vec2 a_pos;\\nattribute vec2 a_offset;\\nattribute vec2 a_texture_pos;\\nattribute vec4 a_data;\\n\\n\\n// matrix is for the vertex position.\\nuniform mat4 u_matrix;\\n\\nuniform mediump float u_zoom;\\nuniform bool u_rotate_with_map;\\nuniform bool u_pitch_with_map;\\nuniform mediump float u_pitch;\\nuniform mediump float u_bearing;\\nuniform mediump float u_aspect_ratio;\\nuniform vec2 u_extrude_scale;\\n\\nuniform vec2 u_texsize;\\n\\nvarying vec2 v_tex;\\nvarying vec2 v_fade_tex;\\nvarying float v_gamma_scale;\\n\\nvoid main() {\\n vec2 a_tex = a_texture_pos.xy;\\n mediump float a_labelminzoom = a_data[0];\\n mediump vec2 a_zoom = a_data.pq;\\n mediump float a_minzoom = a_zoom[0];\\n mediump float a_maxzoom = a_zoom[1];\\n\\n // u_zoom is the current zoom level adjusted for the change in font size\\n mediump float z = 2.0 - step(a_minzoom, u_zoom) - (1.0 - step(a_maxzoom, u_zoom));\\n\\n // pitch-alignment: map\\n // rotation-alignment: map | viewport\\n if (u_pitch_with_map) {\\n lowp float angle = u_rotate_with_map ? (a_data[1] / 256.0 * 2.0 * PI) : u_bearing;\\n lowp float asin = sin(angle);\\n lowp float acos = cos(angle);\\n mat2 RotationMatrix = mat2(acos, asin, -1.0 * asin, acos);\\n vec2 offset = RotationMatrix * a_offset;\\n vec2 extrude = u_extrude_scale * (offset / 64.0);\\n gl_Position = u_matrix * vec4(a_pos + extrude, 0, 1);\\n gl_Position.z += z * gl_Position.w;\\n // pitch-alignment: viewport\\n // rotation-alignment: map\\n } else if (u_rotate_with_map) {\\n // foreshortening factor to apply on pitched maps\\n // as a label goes from horizontal <=> vertical in angle\\n // it goes from 0% foreshortening to up to around 70% foreshortening\\n lowp float pitchfactor = 1.0 - cos(u_pitch * sin(u_pitch * 0.75));\\n\\n lowp float lineangle = a_data[1] / 256.0 * 2.0 * PI;\\n\\n // use the lineangle to position points a,b along the line\\n // project the points and calculate the label angle in projected space\\n // this calculation allows labels to be rendered unskewed on pitched maps\\n vec4 a = u_matrix * vec4(a_pos, 0, 1);\\n vec4 b = u_matrix * vec4(a_pos + vec2(cos(lineangle),sin(lineangle)), 0, 1);\\n lowp float angle = atan((b[1]/b[3] - a[1]/a[3])/u_aspect_ratio, b[0]/b[3] - a[0]/a[3]);\\n lowp float asin = sin(angle);\\n lowp float acos = cos(angle);\\n mat2 RotationMatrix = mat2(acos, -1.0 * asin, asin, acos);\\n\\n vec2 offset = RotationMatrix * (vec2((1.0-pitchfactor)+(pitchfactor*cos(angle*2.0)), 1.0) * a_offset);\\n vec2 extrude = u_extrude_scale * (offset / 64.0);\\n gl_Position = u_matrix * vec4(a_pos, 0, 1) + vec4(extrude, 0, 0);\\n gl_Position.z += z * gl_Position.w;\\n // pitch-alignment: viewport\\n // rotation-alignment: viewport\\n } else {\\n vec2 extrude = u_extrude_scale * (a_offset / 64.0);\\n gl_Position = u_matrix * vec4(a_pos, 0, 1) + vec4(extrude, 0, 0);\\n }\\n\\n v_gamma_scale = (gl_Position.w - 0.5);\\n\\n v_tex = a_tex / u_texsize;\\n v_fade_tex = vec2(a_labelminzoom / 255.0, 0.0);\\n}\\n\"},collisionbox:{fragmentSource:\"#ifdef GL_ES\\nprecision mediump float;\\n#else\\n#define lowp\\n#define mediump\\n#define highp\\n#endif\\n\\nuniform float u_zoom;\\nuniform float u_maxzoom;\\n\\nvarying float v_max_zoom;\\nvarying float v_placement_zoom;\\n\\nvoid main() {\\n\\n float alpha = 0.5;\\n\\n gl_FragColor = vec4(0.0, 1.0, 0.0, 1.0) * alpha;\\n\\n if (v_placement_zoom > u_zoom) {\\n gl_FragColor = vec4(1.0, 0.0, 0.0, 1.0) * alpha;\\n }\\n\\n if (u_zoom >= v_max_zoom) {\\n gl_FragColor = vec4(0.0, 0.0, 0.0, 1.0) * alpha * 0.25;\\n }\\n\\n if (v_placement_zoom >= u_maxzoom) {\\n gl_FragColor = vec4(0.0, 0.0, 1.0, 1.0) * alpha * 0.2;\\n }\\n}\\n\",vertexSource:\"#ifdef GL_ES\\nprecision highp float;\\n#else\\n#define lowp\\n#define mediump\\n#define highp\\n#endif\\n\\nattribute vec2 a_pos;\\nattribute vec2 a_extrude;\\nattribute vec2 a_data;\\n\\nuniform mat4 u_matrix;\\nuniform float u_scale;\\n\\nvarying float v_max_zoom;\\nvarying float v_placement_zoom;\\n\\nvoid main() {\\n gl_Position = u_matrix * vec4(a_pos + a_extrude / u_scale, 0.0, 1.0);\\n\\n v_max_zoom = a_data.x;\\n v_placement_zoom = a_data.y;\\n}\\n\"}},e.exports.util=\"float evaluate_zoom_function_1(const vec4 values, const float t) {\\n if (t < 1.0) {\\n return mix(values[0], values[1], t);\\n } else if (t < 2.0) {\\n return mix(values[1], values[2], t - 1.0);\\n } else {\\n return mix(values[2], values[3], t - 2.0);\\n }\\n}\\nvec4 evaluate_zoom_function_4(const vec4 value0, const vec4 value1, const vec4 value2, const vec4 value3, const float t) {\\n if (t < 1.0) {\\n return mix(value0, value1, t);\\n } else if (t < 2.0) {\\n return mix(value1, value2, t - 1.0);\\n } else {\\n return mix(value2, value3, t - 2.0);\\n }\\n}\\n\"},{path:476}],304:[function(t,e,r){\"use strict\";function n(t,e){this.message=(t?t+\": \":\"\")+i.apply(i,Array.prototype.slice.call(arguments,2)),null!==e&&void 0!==e&&e.__line__&&(this.line=e.__line__)}var i=t(\"util\").format;e.exports=n},{util:549}],305:[function(t,e,r){\"use strict\";e.exports=function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)t[n]=r[n]}return t}},{}],306:[function(t,e,r){\"use strict\";e.exports=function(t){return t instanceof Number?\"number\":t instanceof String?\"string\":t instanceof Boolean?\"boolean\":Array.isArray(t)?\"array\":null===t?\"null\":typeof t}},{}],307:[function(t,e,r){\"use strict\";e.exports=function(t){return t instanceof Number||t instanceof String||t instanceof Boolean?t.valueOf():t}},{}],308:[function(t,e,r){\"use strict\";var n=t(\"../error/validation_error\"),i=t(\"../util/get_type\"),a=t(\"../util/extend\");e.exports=function(e){var r=t(\"./validate_function\"),o=t(\"./validate_object\"),s={\"*\":function(){return[]},array:t(\"./validate_array\"),boolean:t(\"./validate_boolean\"),number:t(\"./validate_number\"),color:t(\"./validate_color\"),constants:t(\"./validate_constants\"),enum:t(\"./validate_enum\"),filter:t(\"./validate_filter\"),function:t(\"./validate_function\"),layer:t(\"./validate_layer\"),object:t(\"./validate_object\"),source:t(\"./validate_source\"),string:t(\"./validate_string\")},l=e.value,u=e.valueSpec,c=e.key,h=e.styleSpec,f=e.style;if(\"string\"===i(l)&&\"@\"===l[0]){if(h.$version>7)return[new n(c,l,\"constants have been deprecated as of v8\")];if(!(l in f.constants))return[new n(c,l,'constant \"%s\" not found',l)];e=a({},e,{value:f.constants[l]})}return u.function&&\"object\"===i(l)?r(e):u.type&&s[u.type]?s[u.type](e):o(a({},e,{valueSpec:u.type?h[u.type]:u}))}},{\"../error/validation_error\":304,\"../util/extend\":305,\"../util/get_type\":306,\"./validate_array\":309,\"./validate_boolean\":310,\"./validate_color\":311,\"./validate_constants\":312,\"./validate_enum\":313,\"./validate_filter\":314,\"./validate_function\":315,\"./validate_layer\":317,\"./validate_number\":319,\"./validate_object\":320,\"./validate_source\":322,\"./validate_string\":323}],309:[function(t,e,r){\"use strict\";var n=t(\"../util/get_type\"),i=t(\"./validate\"),a=t(\"../error/validation_error\");e.exports=function(t){var e=t.value,r=t.valueSpec,o=t.style,s=t.styleSpec,l=t.key,u=t.arrayElementValidator||i;if(\"array\"!==n(e))return[new a(l,e,\"array expected, %s found\",n(e))];if(r.length&&e.length!==r.length)return[new a(l,e,\"array length %d expected, length %d found\",r.length,e.length)];if(r[\"min-length\"]&&e.length<r[\"min-length\"])return[new a(l,e,\"array length at least %d expected, length %d found\",r[\"min-length\"],e.length)];var c={type:r.value};s.$version<7&&(c.function=r.function),\"object\"===n(r.value)&&(c=r.value);for(var h=[],f=0;f<e.length;f++)h=h.concat(u({array:e,arrayIndex:f,value:e[f],valueSpec:c,style:o,styleSpec:s,key:l+\"[\"+f+\"]\"}));return h}},{\"../error/validation_error\":304,\"../util/get_type\":306,\"./validate\":308}],310:[function(t,e,r){\"use strict\";var n=t(\"../util/get_type\"),i=t(\"../error/validation_error\");e.exports=function(t){var e=t.value,r=t.key,a=n(e);return\"boolean\"!==a?[new i(r,e,\"boolean expected, %s found\",a)]:[]}},{\"../error/validation_error\":304,\"../util/get_type\":306}],311:[function(t,e,r){\"use strict\";var n=t(\"../error/validation_error\"),i=t(\"../util/get_type\"),a=t(\"csscolorparser\").parseCSSColor;e.exports=function(t){var e=t.key,r=t.value,o=i(r);return\"string\"!==o?[new n(e,r,\"color expected, %s found\",o)]:null===a(r)?[new n(e,r,'color expected, \"%s\" found',r)]:[]}},{\"../error/validation_error\":304,\"../util/get_type\":306,csscolorparser:108}],312:[function(t,e,r){\"use strict\";var n=t(\"../error/validation_error\"),i=t(\"../util/get_type\");e.exports=function(t){var e=t.key,r=t.value;if(t.styleSpec.$version>7)return r?[new n(e,r,\"constants have been deprecated as of v8\")]:[];var a=i(r);if(\"object\"!==a)return[new n(e,r,\"object expected, %s found\",a)];var o=[];for(var s in r)\"@\"!==s[0]&&o.push(new n(e+\".\"+s,r[s],'constants must start with \"@\"'));return o}},{\"../error/validation_error\":304,\"../util/get_type\":306}],313:[function(t,e,r){\"use strict\";var n=t(\"../error/validation_error\"),i=t(\"../util/unbundle_jsonlint\");e.exports=function(t){var e=t.key,r=t.value,a=t.valueSpec,o=[];return-1===a.values.indexOf(i(r))&&o.push(new n(e,r,\"expected one of [%s], %s found\",a.values.join(\", \"),r)),o}},{\"../error/validation_error\":304,\"../util/unbundle_jsonlint\":307}],314:[function(t,e,r){\"use strict\";var n=t(\"../error/validation_error\"),i=t(\"./validate_enum\"),a=t(\"../util/get_type\"),o=t(\"../util/unbundle_jsonlint\");e.exports=function t(e){var r,s=e.value,l=e.key,u=e.styleSpec,c=[];if(\"array\"!==a(s))return[new n(l,s,\"array expected, %s found\",a(s))];if(s.length<1)return[new n(l,s,\"filter array must have at least 1 element\")];switch(c=c.concat(i({key:l+\"[0]\",value:s[0],valueSpec:u.filter_operator,style:e.style,styleSpec:e.styleSpec})),o(s[0])){case\"<\":case\"<=\":case\">\":case\">=\":s.length>=2&&\"$type\"==s[1]&&c.push(new n(l,s,'\"$type\" cannot be use with operator \"%s\"',s[0]));case\"==\":case\"!=\":3!=s.length&&c.push(new n(l,s,'filter array for operator \"%s\" must have 3 elements',s[0]));case\"in\":case\"!in\":s.length>=2&&(r=a(s[1]),\"string\"!==r?c.push(new n(l+\"[1]\",s[1],\"string expected, %s found\",r)):\"@\"===s[1][0]&&c.push(new n(l+\"[1]\",s[1],\"filter key cannot be a constant\")));for(var h=2;h<s.length;h++)r=a(s[h]),\"$type\"==s[1]?c=c.concat(i({key:l+\"[\"+h+\"]\",value:s[h],valueSpec:u.geometry_type,style:e.style,styleSpec:e.styleSpec})):\"string\"===r&&\"@\"===s[h][0]?c.push(new n(l+\"[\"+h+\"]\",s[h],\"filter value cannot be a constant\")):\"string\"!==r&&\"number\"!==r&&\"boolean\"!==r&&c.push(new n(l+\"[\"+h+\"]\",s[h],\"string, number, or boolean expected, %s found\",r));break;case\"any\":case\"all\":case\"none\":for(h=1;h<s.length;h++)c=c.concat(t({key:l+\"[\"+h+\"]\",value:s[h],style:e.style,styleSpec:e.styleSpec}));break;case\"has\":case\"!has\":r=a(s[1]),2!==s.length?c.push(new n(l,s,'filter array for \"%s\" operator must have 2 elements',s[0])):\"string\"!==r?c.push(new n(l+\"[1]\",s[1],\"string expected, %s found\",r)):\"@\"===s[1][0]&&c.push(new n(l+\"[1]\",s[1],\"filter key cannot be a constant\"))}return c}},{\"../error/validation_error\":304,\"../util/get_type\":306,\n", "\"../util/unbundle_jsonlint\":307,\"./validate_enum\":313}],315:[function(t,e,r){\"use strict\";var n=t(\"../error/validation_error\"),i=t(\"../util/get_type\"),a=t(\"./validate\"),o=t(\"./validate_object\"),s=t(\"./validate_array\"),l=t(\"./validate_number\");e.exports=function(t){function e(t){var e=[],a=t.value;return e=e.concat(s({key:t.key,value:a,valueSpec:t.valueSpec,style:t.style,styleSpec:t.styleSpec,arrayElementValidator:r})),\"array\"===i(a)&&0===a.length&&e.push(new n(t.key,a,\"array must have at least one stop\")),e}function r(t){var e=[],r=t.value,s=t.key;if(\"array\"!==i(r))return[new n(s,r,\"array expected, %s found\",i(r))];if(2!==r.length)return[new n(s,r,\"array length %d expected, length %d found\",2,r.length)];var f=i(r[0]);if(c||(c=f),f!==c)return[new n(s,r,\"%s stop key type must match previous stop key type %s\",f,c)];if(\"object\"===f){if(void 0===r[0].zoom)return[new n(s,r,\"object stop key must have zoom\")];if(void 0===r[0].value)return[new n(s,r,\"object stop key must have value\")];e=e.concat(o({key:s+\"[0]\",value:r[0],valueSpec:{zoom:{}},style:t.style,styleSpec:t.styleSpec,objectElementValidators:{zoom:l,value:u}}))}else e=e.concat((d?l:u)({key:s+\"[0]\",value:r[0],valueSpec:{},style:t.style,styleSpec:t.styleSpec}));return e=e.concat(a({key:s+\"[1]\",value:r[1],valueSpec:h,style:t.style,styleSpec:t.styleSpec})),\"number\"===i(r[0])&&(\"piecewise-constant\"===h.function&&r[0]%1!=0&&e.push(new n(s+\"[0]\",r[0],\"zoom level for piecewise-constant functions must be an integer\")),0!==t.arrayIndex&&r[0]<t.array[t.arrayIndex-1][0]&&e.push(new n(s+\"[0]\",r[0],\"array stops must appear in ascending order\"))),e}function u(t){var e=[],r=i(t.value);return\"number\"!==r&&\"string\"!==r&&\"array\"!==r&&e.push(new n(t.key,t.value,\"property value must be a number, string or array\")),e}var c,h=t.valueSpec,f=void 0!==t.value.property||\"object\"===c,d=void 0===t.value.property||\"object\"===c,p=o({key:t.key,value:t.value,valueSpec:t.styleSpec.function,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{stops:e}});return t.styleSpec.$version>=8&&(f&&!t.valueSpec[\"property-function\"]?p.push(new n(t.key,t.value,\"property functions not supported\")):d&&!t.valueSpec[\"zoom-function\"]&&p.push(new n(t.key,t.value,\"zoom functions not supported\"))),p}},{\"../error/validation_error\":304,\"../util/get_type\":306,\"./validate\":308,\"./validate_array\":309,\"./validate_number\":319,\"./validate_object\":320}],316:[function(t,e,r){\"use strict\";var n=t(\"../error/validation_error\"),i=t(\"./validate_string\");e.exports=function(t){var e=t.value,r=t.key,a=i(t);return a.length?a:(-1===e.indexOf(\"{fontstack}\")&&a.push(new n(r,e,'\"glyphs\" url must include a \"{fontstack}\" token')),-1===e.indexOf(\"{range}\")&&a.push(new n(r,e,'\"glyphs\" url must include a \"{range}\" token')),a)}},{\"../error/validation_error\":304,\"./validate_string\":323}],317:[function(t,e,r){\"use strict\";var n=t(\"../error/validation_error\"),i=t(\"../util/unbundle_jsonlint\"),a=t(\"./validate_object\"),o=t(\"./validate_filter\"),s=t(\"./validate_paint_property\"),l=t(\"./validate_layout_property\"),u=t(\"../util/extend\");e.exports=function(t){var e=[],r=t.value,c=t.key,h=t.style,f=t.styleSpec;r.type||r.ref||e.push(new n(c,r,'either \"type\" or \"ref\" is required'));var d=i(r.type),p=i(r.ref);if(r.id)for(var m=0;m<t.arrayIndex;m++){var v=h.layers[m];i(v.id)===i(r.id)&&e.push(new n(c,r.id,'duplicate layer id \"%s\", previously used at line %d',r.id,v.id.__line__))}if(\"ref\"in r){[\"type\",\"source\",\"source-layer\",\"filter\",\"layout\"].forEach(function(t){t in r&&e.push(new n(c,r[t],'\"%s\" is prohibited for ref layers',t))});var g;h.layers.forEach(function(t){t.id==p&&(g=t)}),g?g.ref?e.push(new n(c,r.ref,\"ref cannot reference another ref layer\")):d=i(g.type):e.push(new n(c,r.ref,'ref layer \"%s\" not found',p))}else if(\"background\"!==d)if(r.source){var y=h.sources&&h.sources[r.source];y?\"vector\"==y.type&&\"raster\"==d?e.push(new n(c,r.source,'layer \"%s\" requires a raster source',r.id)):\"raster\"==y.type&&\"raster\"!=d?e.push(new n(c,r.source,'layer \"%s\" requires a vector source',r.id)):\"vector\"!=y.type||r[\"source-layer\"]||e.push(new n(c,r,'layer \"%s\" must specify a \"source-layer\"',r.id)):e.push(new n(c,r.source,'source \"%s\" not found',r.source))}else e.push(new n(c,r,'missing required property \"source\"'));return e=e.concat(a({key:c,value:r,valueSpec:f.layer,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{filter:o,layout:function(t){return a({layer:r,key:t.key,value:t.value,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{\"*\":function(t){return l(u({layerType:d},t))}}})},paint:function(t){return a({layer:r,key:t.key,value:t.value,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{\"*\":function(t){return s(u({layerType:d},t))}}})}}}))}},{\"../error/validation_error\":304,\"../util/extend\":305,\"../util/unbundle_jsonlint\":307,\"./validate_filter\":314,\"./validate_layout_property\":318,\"./validate_object\":320,\"./validate_paint_property\":321}],318:[function(t,e,r){\"use strict\";var n=t(\"./validate\"),i=t(\"../error/validation_error\");e.exports=function(t){var e=t.key,r=t.style,a=t.styleSpec,o=t.value,s=t.objectKey,l=a[\"layout_\"+t.layerType];if(t.valueSpec||l[s]){var u=[];return\"symbol\"===t.layerType&&(\"icon-image\"===s&&r&&!r.sprite?u.push(new i(e,o,'use of \"icon-image\" requires a style \"sprite\" property')):\"text-field\"===s&&r&&!r.glyphs&&u.push(new i(e,o,'use of \"text-field\" requires a style \"glyphs\" property'))),u.concat(n({key:t.key,value:o,valueSpec:t.valueSpec||l[s],style:r,styleSpec:a}))}return[new i(e,o,'unknown property \"%s\"',s)]}},{\"../error/validation_error\":304,\"./validate\":308}],319:[function(t,e,r){\"use strict\";var n=t(\"../util/get_type\"),i=t(\"../error/validation_error\");e.exports=function(t){var e=t.key,r=t.value,a=t.valueSpec,o=n(r);return\"number\"!==o?[new i(e,r,\"number expected, %s found\",o)]:\"minimum\"in a&&r<a.minimum?[new i(e,r,\"%s is less than the minimum value %s\",r,a.minimum)]:\"maximum\"in a&&r>a.maximum?[new i(e,r,\"%s is greater than the maximum value %s\",r,a.maximum)]:[]}},{\"../error/validation_error\":304,\"../util/get_type\":306}],320:[function(t,e,r){\"use strict\";var n=t(\"../error/validation_error\"),i=t(\"../util/get_type\"),a=t(\"./validate\");e.exports=function(t){var e=t.key,r=t.value,o=t.valueSpec,s=t.objectElementValidators||{},l=t.style,u=t.styleSpec,c=[],h=i(r);if(\"object\"!==h)return[new n(e,r,\"object expected, %s found\",h)];for(var f in r){var d=f.split(\".\")[0],p=o&&(o[d]||o[\"*\"]),m=s[d]||s[\"*\"];p||m?c=c.concat((m||a)({key:(e?e+\".\":e)+f,value:r[f],valueSpec:p,style:l,styleSpec:u,object:r,objectKey:f})):\"\"!==e&&1!==e.split(\".\").length&&c.push(new n(e,r[f],'unknown property \"%s\"',f))}for(d in o)o[d].required&&void 0===o[d].default&&void 0===r[d]&&c.push(new n(e,r,'missing required property \"%s\"',d));return c}},{\"../error/validation_error\":304,\"../util/get_type\":306,\"./validate\":308}],321:[function(t,e,r){\"use strict\";var n=t(\"./validate\"),i=t(\"../error/validation_error\");e.exports=function(t){var e=t.key,r=t.style,a=t.styleSpec,o=t.value,s=t.objectKey,l=a[\"paint_\"+t.layerType],u=s.match(/^(.*)-transition$/);return u&&l[u[1]]&&l[u[1]].transition?n({key:e,value:o,valueSpec:a.transition,style:r,styleSpec:a}):t.valueSpec||l[s]?n({key:t.key,value:o,valueSpec:t.valueSpec||l[s],style:r,styleSpec:a}):[new i(e,o,'unknown property \"%s\"',s)]}},{\"../error/validation_error\":304,\"./validate\":308}],322:[function(t,e,r){\"use strict\";var n=t(\"../error/validation_error\"),i=t(\"../util/unbundle_jsonlint\"),a=t(\"./validate_object\"),o=t(\"./validate_enum\");e.exports=function(t){var e=t.value,r=t.key,s=t.styleSpec,l=t.style;if(!e.type)return[new n(r,e,'\"type\" is required')];switch(i(e.type)){case\"vector\":case\"raster\":var u=[];if(u=u.concat(a({key:r,value:e,valueSpec:s.source_tile,style:t.style,styleSpec:s})),\"url\"in e)for(var c in e)[\"type\",\"url\",\"tileSize\"].indexOf(c)<0&&u.push(new n(r+\".\"+c,e[c],'a source with a \"url\" property may not include a \"%s\" property',c));return u;case\"geojson\":return a({key:r,value:e,valueSpec:s.source_geojson,style:l,styleSpec:s});case\"video\":return a({key:r,value:e,valueSpec:s.source_video,style:l,styleSpec:s});case\"image\":return a({key:r,value:e,valueSpec:s.source_image,style:l,styleSpec:s});default:return o({key:r+\".type\",value:e.type,valueSpec:{values:[\"vector\",\"raster\",\"geojson\",\"video\",\"image\"]},style:l,styleSpec:s})}}},{\"../error/validation_error\":304,\"../util/unbundle_jsonlint\":307,\"./validate_enum\":313,\"./validate_object\":320}],323:[function(t,e,r){\"use strict\";var n=t(\"../util/get_type\"),i=t(\"../error/validation_error\");e.exports=function(t){var e=t.value,r=t.key,a=n(e);return\"string\"!==a?[new i(r,e,\"string expected, %s found\",a)]:[]}},{\"../error/validation_error\":304,\"../util/get_type\":306}],324:[function(t,e,r){\"use strict\";function n(t,e){e=e||l;var r=[];return r=r.concat(s({key:\"\",value:t,valueSpec:e.$root,styleSpec:e,style:t,objectElementValidators:{glyphs:u}})),e.$version>7&&t.constants&&(r=r.concat(o({key:\"constants\",value:t.constants,style:t,styleSpec:e}))),i(r)}function i(t){return[].concat(t).sort(function(t,e){return t.line-e.line})}function a(t){return function(){return i(t.apply(this,arguments))}}var o=t(\"./validate/validate_constants\"),s=t(\"./validate/validate\"),l=t(\"../reference/latest.min\"),u=t(\"./validate/validate_glyphs_url\");n.source=a(t(\"./validate/validate_source\")),n.layer=a(t(\"./validate/validate_layer\")),n.filter=a(t(\"./validate/validate_filter\")),n.paintProperty=a(t(\"./validate/validate_paint_property\")),n.layoutProperty=a(t(\"./validate/validate_layout_property\")),e.exports=n},{\"../reference/latest.min\":325,\"./validate/validate\":308,\"./validate/validate_constants\":312,\"./validate/validate_filter\":314,\"./validate/validate_glyphs_url\":316,\"./validate/validate_layer\":317,\"./validate/validate_layout_property\":318,\"./validate/validate_paint_property\":321,\"./validate/validate_source\":322}],325:[function(t,e,r){e.exports=t(\"./v8.min.json\")},{\"./v8.min.json\":326}],326:[function(t,e,r){e.exports={$version:8,$root:{version:{required:!0,type:\"enum\",values:[8]},name:{type:\"string\"},metadata:{type:\"*\"},center:{type:\"array\",value:\"number\"},zoom:{type:\"number\"},bearing:{type:\"number\",default:0,period:360,units:\"degrees\"},pitch:{type:\"number\",default:0,units:\"degrees\"},sources:{required:!0,type:\"sources\"},sprite:{type:\"string\"},glyphs:{type:\"string\"},transition:{type:\"transition\"},layers:{required:!0,type:\"array\",value:\"layer\"}},sources:{\"*\":{type:\"source\"}},source:[\"source_tile\",\"source_geojson\",\"source_video\",\"source_image\"],source_tile:{type:{required:!0,type:\"enum\",values:[\"vector\",\"raster\"]},url:{type:\"string\"},tiles:{type:\"array\",value:\"string\"},minzoom:{type:\"number\",default:0},maxzoom:{type:\"number\",default:22},tileSize:{type:\"number\",default:512,units:\"pixels\"},\"*\":{type:\"*\"}},source_geojson:{type:{required:!0,type:\"enum\",values:[\"geojson\"]},data:{type:\"*\"},maxzoom:{type:\"number\",default:14},buffer:{type:\"number\",default:64},tolerance:{type:\"number\",default:3},cluster:{type:\"boolean\",default:!1},clusterRadius:{type:\"number\",default:400},clusterMaxZoom:{type:\"number\"}},source_video:{type:{required:!0,type:\"enum\",values:[\"video\"]},urls:{required:!0,type:\"array\",value:\"string\"},coordinates:{required:!0,type:\"array\",length:4,value:{type:\"array\",length:2,value:\"number\"}}},source_image:{type:{required:!0,type:\"enum\",values:[\"image\"]},url:{required:!0,type:\"string\"},coordinates:{required:!0,type:\"array\",length:4,value:{type:\"array\",length:2,value:\"number\"}}},layer:{id:{type:\"string\",required:!0},type:{type:\"enum\",values:[\"fill\",\"line\",\"symbol\",\"circle\",\"raster\",\"background\"]},metadata:{type:\"*\"},ref:{type:\"string\"},source:{type:\"string\"},\"source-layer\":{type:\"string\"},minzoom:{type:\"number\",minimum:0,maximum:22},maxzoom:{type:\"number\",minimum:0,maximum:22},interactive:{type:\"boolean\",default:!1},filter:{type:\"filter\"},layout:{type:\"layout\"},paint:{type:\"paint\"},\"paint.*\":{type:\"paint\"}},layout:[\"layout_fill\",\"layout_line\",\"layout_circle\",\"layout_symbol\",\"layout_raster\",\"layout_background\"],layout_background:{visibility:{type:\"enum\",function:\"piecewise-constant\",\"zoom-function\":!0,values:[\"visible\",\"none\"],default:\"visible\"}},layout_fill:{visibility:{type:\"enum\",function:\"piecewise-constant\",\"zoom-function\":!0,values:[\"visible\",\"none\"],default:\"visible\"}},layout_circle:{visibility:{type:\"enum\",function:\"piecewise-constant\",\"zoom-function\":!0,values:[\"visible\",\"none\"],default:\"visible\"}},layout_line:{\"line-cap\":{type:\"enum\",function:\"piecewise-constant\",\"zoom-function\":!0,\"property-function\":!0,values:[\"butt\",\"round\",\"square\"],default:\"butt\"},\"line-join\":{type:\"enum\",function:\"piecewise-constant\",\"zoom-function\":!0,\"property-function\":!0,values:[\"bevel\",\"round\",\"miter\"],default:\"miter\"},\"line-miter-limit\":{type:\"number\",default:2,function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,requires:[{\"line-join\":\"miter\"}]},\"line-round-limit\":{type:\"number\",default:1.05,function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,requires:[{\"line-join\":\"round\"}]},visibility:{type:\"enum\",function:\"piecewise-constant\",\"zoom-function\":!0,values:[\"visible\",\"none\"],default:\"visible\"}},layout_symbol:{\"symbol-placement\":{type:\"enum\",function:\"piecewise-constant\",\"zoom-function\":!0,\"property-function\":!0,values:[\"point\",\"line\"],default:\"point\"},\"symbol-spacing\":{type:\"number\",default:250,minimum:1,function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,units:\"pixels\",requires:[{\"symbol-placement\":\"line\"}]},\"symbol-avoid-edges\":{type:\"boolean\",function:\"piecewise-constant\",\"zoom-function\":!0,\"property-function\":!0,default:!1},\"icon-allow-overlap\":{type:\"boolean\",function:\"piecewise-constant\",\"zoom-function\":!0,\"property-function\":!0,default:!1,requires:[\"icon-image\"]},\"icon-ignore-placement\":{type:\"boolean\",function:\"piecewise-constant\",\"zoom-function\":!0,\"property-function\":!0,default:!1,requires:[\"icon-image\"]},\"icon-optional\":{type:\"boolean\",function:\"piecewise-constant\",\"zoom-function\":!0,\"property-function\":!0,default:!1,requires:[\"icon-image\",\"text-field\"]},\"icon-rotation-alignment\":{type:\"enum\",function:\"piecewise-constant\",\"zoom-function\":!0,\"property-function\":!0,values:[\"map\",\"viewport\"],default:\"viewport\",requires:[\"icon-image\"]},\"icon-size\":{type:\"number\",default:1,minimum:0,function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,requires:[\"icon-image\"]},\"icon-text-fit\":{type:\"enum\",function:\"piecewise-constant\",\"zoom-function\":!0,\"property-function\":!1,values:[\"none\",\"both\",\"width\",\"height\"],default:\"none\",requires:[\"icon-image\",\"text-field\"]},\"icon-text-fit-padding\":{type:\"array\",value:\"number\",length:4,default:[0,0,0,0],units:\"pixels\",function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,requires:[\"icon-image\",\"icon-text-fit\",\"text-field\"]},\"icon-image\":{type:\"string\",function:\"piecewise-constant\",\"zoom-function\":!0,\"property-function\":!0,tokens:!0},\"icon-rotate\":{type:\"number\",default:0,period:360,function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,units:\"degrees\",requires:[\"icon-image\"]},\"icon-padding\":{type:\"number\",default:2,minimum:0,function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,units:\"pixels\",requires:[\"icon-image\"]},\"icon-keep-upright\":{type:\"boolean\",function:\"piecewise-constant\",\"zoom-function\":!0,\"property-function\":!0,default:!1,requires:[\"icon-image\",{\"icon-rotation-alignment\":\"map\"},{\"symbol-placement\":\"line\"}]},\"icon-offset\":{type:\"array\",value:\"number\",length:2,default:[0,0],function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,requires:[\"icon-image\"]},\"text-pitch-alignment\":{type:\"enum\",function:\"piecewise-constant\",\"zoom-function\":!0,\"property-function\":!0,values:[\"map\",\"viewport\"],requires:[\"text-field\"]},\"text-rotation-alignment\":{type:\"enum\",function:\"piecewise-constant\",\"zoom-function\":!0,\"property-function\":!0,values:[\"map\",\"viewport\"],default:\"viewport\",requires:[\"text-field\"]},\"text-field\":{type:\"string\",function:\"piecewise-constant\",\"zoom-function\":!0,\"property-function\":!0,default:\"\",tokens:!0},\"text-font\":{type:\"array\",value:\"string\",function:\"piecewise-constant\",\"zoom-function\":!0,\"property-function\":!0,default:[\"Open Sans Regular\",\"Arial Unicode MS Regular\"],requires:[\"text-field\"]},\"text-size\":{type:\"number\",default:16,minimum:0,units:\"pixels\",function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,requires:[\"text-field\"]},\"text-max-width\":{type:\"number\",default:10,minimum:0,units:\"em\",function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,requires:[\"text-field\"]},\"text-line-height\":{type:\"number\",default:1.2,units:\"em\",function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,requires:[\"text-field\"]},\"text-letter-spacing\":{type:\"number\",default:0,units:\"em\",function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,requires:[\"text-field\"]},\"text-justify\":{type:\"enum\",function:\"piecewise-constant\",\"zoom-function\":!0,\"property-function\":!0,values:[\"left\",\"center\",\"right\"],default:\"center\",requires:[\"text-field\"]},\"text-anchor\":{type:\"enum\",function:\"piecewise-constant\",\"zoom-function\":!0,\"property-function\":!0,values:[\"center\",\"left\",\"right\",\"top\",\"bottom\",\"top-left\",\"top-right\",\"bottom-left\",\"bottom-right\"],default:\"center\",requires:[\"text-field\"]},\"text-max-angle\":{type:\"number\",default:45,units:\"degrees\",function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,requires:[\"text-field\",{\"symbol-placement\":\"line\"}]},\"text-rotate\":{type:\"number\",default:0,period:360,units:\"degrees\",function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,requires:[\"text-field\"]},\"text-padding\":{type:\"number\",default:2,minimum:0,units:\"pixels\",function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,requires:[\"text-field\"]},\"text-keep-upright\":{type:\"boolean\",function:\"piecewise-constant\",\"zoom-function\":!0,\"property-function\":!0,default:!0,requires:[\"text-field\",{\"text-rotation-alignment\":\"map\"},{\"symbol-placement\":\"line\"}]},\"text-transform\":{type:\"enum\",function:\"piecewise-constant\",\"zoom-function\":!0,\"property-function\":!0,values:[\"none\",\"uppercase\",\"lowercase\"],default:\"none\",requires:[\"text-field\"]},\"text-offset\":{type:\"array\",value:\"number\",units:\"ems\",function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,length:2,default:[0,0],requires:[\"text-field\"]},\"text-allow-overlap\":{type:\"boolean\",function:\"piecewise-constant\",\"zoom-function\":!0,\"property-function\":!0,default:!1,requires:[\"text-field\"]},\"text-ignore-placement\":{type:\"boolean\",function:\"piecewise-constant\",\"zoom-function\":!0,\"property-function\":!0,default:!1,requires:[\"text-field\"]},\"text-optional\":{type:\"boolean\",function:\"piecewise-constant\",\"zoom-function\":!0,\"property-function\":!0,default:!1,requires:[\"text-field\",\"icon-image\"]},visibility:{type:\"enum\",function:\"piecewise-constant\",\"zoom-function\":!0,values:[\"visible\",\"none\"],default:\"visible\"}},layout_raster:{visibility:{type:\"enum\",function:\"piecewise-constant\",\"zoom-function\":!0,values:[\"visible\",\"none\"],default:\"visible\"}},filter:{type:\"array\",value:\"*\"},filter_operator:{type:\"enum\",values:[\"==\",\"!=\",\">\",\">=\",\"<\",\"<=\",\"in\",\"!in\",\"all\",\"any\",\"none\",\"has\",\"!has\"]},geometry_type:{type:\"enum\",values:[\"Point\",\"LineString\",\"Polygon\"]},color_operation:{type:\"enum\",values:[\"lighten\",\"saturate\",\"spin\",\"fade\",\"mix\"]},function:{stops:{type:\"array\",required:!0,value:\"function_stop\"},base:{type:\"number\",default:1,minimum:0},property:{type:\"string\",default:\"$zoom\"},type:{type:\"enum\",values:[\"exponential\",\"interval\",\"categorical\"],default:\"exponential\"}},function_stop:{type:\"array\",minimum:0,maximum:22,value:[\"number\",\"color\"],length:2},paint:[\"paint_fill\",\"paint_line\",\"paint_circle\",\"paint_symbol\",\"paint_raster\",\"paint_background\"],paint_fill:{\"fill-antialias\":{type:\"boolean\",function:\"piecewise-constant\",\"zoom-function\":!0,\"property-function\":!0,default:!0},\"fill-opacity\":{type:\"number\",function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,default:1,minimum:0,maximum:1,transition:!0},\"fill-color\":{type:\"color\",default:\"#000000\",function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,requires:[{\"!\":\"fill-pattern\"}]},\"fill-outline-color\":{type:\"color\",function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,requires:[{\"!\":\"fill-pattern\"},{\"fill-antialias\":!0}]},\"fill-translate\":{type:\"array\",value:\"number\",length:2,default:[0,0],function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,units:\"pixels\"},\"fill-translate-anchor\":{type:\"enum\",function:\"piecewise-constant\",\"zoom-function\":!0,\"property-function\":!0,values:[\"map\",\"viewport\"],default:\"map\",requires:[\"fill-translate\"]},\"fill-pattern\":{type:\"string\",function:\"piecewise-constant\",\"zoom-function\":!0,\"property-function\":!0,transition:!0}},paint_line:{\"line-opacity\":{type:\"number\",function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,default:1,minimum:0,maximum:1,transition:!0},\"line-color\":{type:\"color\",default:\"#000000\",function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,requires:[{\"!\":\"line-pattern\"}]},\"line-translate\":{type:\"array\",value:\"number\",length:2,default:[0,0],function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,units:\"pixels\"},\"line-translate-anchor\":{type:\"enum\",function:\"piecewise-constant\",\"zoom-function\":!0,\"property-function\":!0,values:[\"map\",\"viewport\"],default:\"map\",requires:[\"line-translate\"]},\"line-width\":{type:\"number\",default:1,minimum:0,function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,units:\"pixels\"},\"line-gap-width\":{type:\"number\",default:0,minimum:0,function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,units:\"pixels\"},\"line-offset\":{type:\"number\",default:0,function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,units:\"pixels\"},\"line-blur\":{type:\"number\",default:0,minimum:0,function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,units:\"pixels\"},\"line-dasharray\":{type:\"array\",value:\"number\",function:\"piecewise-constant\",\"zoom-function\":!0,\"property-function\":!0,minimum:0,transition:!0,units:\"line widths\",requires:[{\"!\":\"line-pattern\"}]},\"line-pattern\":{type:\"string\",function:\"piecewise-constant\",\"zoom-function\":!0,\"property-function\":!0,transition:!0}},paint_circle:{\"circle-radius\":{type:\"number\",default:5,minimum:0,function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,units:\"pixels\"},\"circle-color\":{type:\"color\",default:\"#000000\",function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0},\"circle-blur\":{type:\"number\",default:0,function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0},\"circle-opacity\":{type:\"number\",default:1,minimum:0,maximum:1,function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0},\"circle-translate\":{type:\"array\",value:\"number\",length:2,default:[0,0],function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,units:\"pixels\"},\"circle-translate-anchor\":{type:\"enum\",function:\"piecewise-constant\",\"zoom-function\":!0,\"property-function\":!0,values:[\"map\",\"viewport\"],default:\"map\",requires:[\"circle-translate\"]},\"circle-pitch-scale\":{type:\"enum\",function:\"piecewise-constant\",\"zoom-function\":!0,\"property-function\":!0,values:[\"map\",\"viewport\"],default:\"map\"}},paint_symbol:{\"icon-opacity\":{type:\"number\",default:1,minimum:0,maximum:1,function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,requires:[\"icon-image\"]},\"icon-color\":{type:\"color\",default:\"#000000\",function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,requires:[\"icon-image\"]},\"icon-halo-color\":{type:\"color\",default:\"rgba(0, 0, 0, 0)\",function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,requires:[\"icon-image\"]},\"icon-halo-width\":{type:\"number\",default:0,minimum:0,function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,units:\"pixels\",requires:[\"icon-image\"]},\"icon-halo-blur\":{type:\"number\",default:0,minimum:0,function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,units:\"pixels\",requires:[\"icon-image\"]},\"icon-translate\":{type:\"array\",value:\"number\",length:2,default:[0,0],function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,units:\"pixels\",requires:[\"icon-image\"]},\"icon-translate-anchor\":{type:\"enum\",function:\"piecewise-constant\",\"zoom-function\":!0,\"property-function\":!0,values:[\"map\",\"viewport\"],default:\"map\",requires:[\"icon-image\",\"icon-translate\"]},\"text-opacity\":{type:\"number\",default:1,minimum:0,maximum:1,function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,requires:[\"text-field\"]},\"text-color\":{type:\"color\",default:\"#000000\",function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,requires:[\"text-field\"]},\"text-halo-color\":{type:\"color\",default:\"rgba(0, 0, 0, 0)\",function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,requires:[\"text-field\"]},\"text-halo-width\":{type:\"number\",default:0,minimum:0,function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,units:\"pixels\",requires:[\"text-field\"]},\"text-halo-blur\":{type:\"number\",default:0,minimum:0,function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,units:\"pixels\",requires:[\"text-field\"]},\"text-translate\":{type:\"array\",value:\"number\",length:2,default:[0,0],function:\"interpolated\",\"zoom-function\":!0,\"property-function\":!0,transition:!0,units:\"pixels\",requires:[\"text-field\"]},\"text-translate-anchor\":{type:\"enum\",function:\"piecewise-constant\",\"zoom-function\":!0,\"property-function\":!0,values:[\"map\",\"viewport\"],default:\"map\",requires:[\"text-field\",\"text-translate\"]}},paint_raster:{\"raster-opacity\":{type:\"number\",default:1,minimum:0,maximum:1,function:\"interpolated\",\"zoom-function\":!0,transition:!0},\"raster-hue-rotate\":{type:\"number\",default:0,period:360,function:\"interpolated\",\"zoom-function\":!0,transition:!0,units:\"degrees\"},\"raster-brightness-min\":{type:\"number\",function:\"interpolated\",\"zoom-function\":!0,default:0,minimum:0,maximum:1,transition:!0},\"raster-brightness-max\":{type:\"number\",function:\"interpolated\",\"zoom-function\":!0,default:1,minimum:0,maximum:1,transition:!0},\"raster-saturation\":{type:\"number\",default:0,minimum:-1,maximum:1,function:\"interpolated\",\"zoom-function\":!0,transition:!0},\"raster-contrast\":{type:\"number\",default:0,minimum:-1,maximum:1,function:\"interpolated\",\"zoom-function\":!0,transition:!0},\"raster-fade-duration\":{type:\"number\",default:300,minimum:0,function:\"interpolated\",\"zoom-function\":!0,transition:!0,units:\"milliseconds\"}},paint_background:{\"background-color\":{type:\"color\",default:\"#000000\",function:\"interpolated\",\"zoom-function\":!0,transition:!0,requires:[{\"!\":\"background-pattern\"}]},\"background-pattern\":{type:\"string\",function:\"piecewise-constant\",\"zoom-function\":!0,transition:!0},\"background-opacity\":{type:\"number\",default:1,minimum:0,maximum:1,function:\"interpolated\",\"zoom-function\":!0,transition:!0}},transition:{duration:{type:\"number\",default:300,minimum:0,units:\"milliseconds\"},delay:{type:\"number\",default:0,minimum:0,units:\"milliseconds\"}}}},{}],327:[function(t,e,r){\"use strict\";function n(t){return!!(i()&&a()&&o()&&s()&&l()&&u()&&c()&&h(t&&t.failIfMajorPerformanceCaveat))}function i(){return\"undefined\"!=typeof window&&\"undefined\"!=typeof document}function a(){return Array.prototype&&Array.prototype.every&&Array.prototype.filter&&Array.prototype.forEach&&Array.prototype.indexOf&&Array.prototype.lastIndexOf&&Array.prototype.map&&Array.prototype.some&&Array.prototype.reduce&&Array.prototype.reduceRight&&Array.isArray}function o(){return Function.prototype&&Function.prototype.bind}function s(){return Object.keys&&Object.create&&Object.getPrototypeOf&&Object.getOwnPropertyNames&&Object.isSealed&&Object.isFrozen&&Object.isExtensible&&Object.getOwnPropertyDescriptor&&Object.defineProperty&&Object.defineProperties&&Object.seal&&Object.freeze&&Object.preventExtensions}function l(){return\"JSON\"in window&&\"parse\"in JSON&&\"stringify\"in JSON}function u(){return\"Worker\"in window}function c(){return\"Uint8ClampedArray\"in window}function h(t){return void 0===d[t]&&(d[t]=f(t)),d[t]}function f(t){var e=document.createElement(\"canvas\"),r=Object.create(n.webGLContextAttributes);return r.failIfMajorPerformanceCaveat=t,e.probablySupportsContext?e.probablySupportsContext(\"webgl\",r)||e.probablySupportsContext(\"experimental-webgl\",r):e.supportsContext?e.supportsContext(\"webgl\",r)||e.supportsContext(\"experimental-webgl\",r):e.getContext(\"webgl\",r)||e.getContext(\"experimental-webgl\",r)}void 0!==e&&e.exports?e.exports=n:window&&(window.mapboxgl=window.mapboxgl||{},window.mapboxgl.supported=n);var d={};n.webGLContextAttributes={antialias:!1,alpha:!0,stencil:!0,depth:!0}},{}],328:[function(t,e,r){\"use strict\";function n(t){var e=t.layoutVertexArrayType;this.layoutVertexArray=new e;var r=t.elementArrayType;r&&(this.elementArray=new r);var n=t.elementArrayType2;n&&(this.elementArray2=new n),this.paintVertexArrays=i.mapObject(t.paintVertexArrayTypes,function(t){return new t})}var i=t(\"../util/util\");e.exports=n,n.MAX_VERTEX_ARRAY_LENGTH=Math.pow(2,16)-1,n.prototype.hasCapacityFor=function(t){return this.layoutVertexArray.length+t<=n.MAX_VERTEX_ARRAY_LENGTH},n.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},n.prototype.trim=function(){this.layoutVertexArray.trim(),this.elementArray&&this.elementArray.trim(),this.elementArray2&&this.elementArray2.trim();for(var t in this.paintVertexArrays)this.paintVertexArrays[t].trim()},n.prototype.serialize=function(){return{layoutVertexArray:this.layoutVertexArray.serialize(),elementArray:this.elementArray&&this.elementArray.serialize(),elementArray2:this.elementArray2&&this.elementArray2.serialize(),paintVertexArrays:i.mapObject(this.paintVertexArrays,function(t){return t.serialize()})}},n.prototype.getTransferables=function(t){t.push(this.layoutVertexArray.arrayBuffer),this.elementArray&&t.push(this.elementArray.arrayBuffer),this.elementArray2&&t.push(this.elementArray2.arrayBuffer);for(var e in this.paintVertexArrays)t.push(this.paintVertexArrays[e].arrayBuffer)}},{\"../util/util\":442}],329:[function(t,e,r){\"use strict\";function n(t){if(this.zoom=t.zoom,this.overscaling=t.overscaling,this.layer=t.layer,this.childLayers=t.childLayers,this.type=this.layer.type,this.features=[],this.id=this.layer.id,this.index=t.index,this.sourceLayer=this.layer.sourceLayer,this.sourceLayerIndex=t.sourceLayerIndex,this.minZoom=this.layer.minzoom,this.maxZoom=this.layer.maxzoom,this.paintAttributes=i(this),t.arrays){var e=this.programInterfaces;this.bufferGroups=c.mapObject(t.arrays,function(r,n){var i=e[n],a=t.paintVertexArrayTypes[n];return r.map(function(t){return new u(t,{layoutVertexArrayType:i.layoutVertexArrayType.serialize(),elementArrayType:i.elementArrayType&&i.elementArrayType.serialize(),elementArrayType2:i.elementArrayType2&&i.elementArrayType2.serialize(),paintVertexArrayTypes:a})})})}}function i(t){var e={};for(var r in t.programInterfaces){for(var n=e[r]={},i=0;i<t.childLayers.length;i++){n[t.childLayers[i].id]={attributes:[],uniforms:[],defines:[],vertexPragmas:{define:{},initialize:{}},fragmentPragmas:{define:{},initialize:{}}}}var s=t.programInterfaces[r];if(s.paintAttributes)for(var l=0;l<s.paintAttributes.length;l++){var u=s.paintAttributes[l];u.multiplier=u.multiplier||1;for(var h=0;h<t.childLayers.length;h++){var d=t.childLayers[h],p=n[d.id],m=u.name;f(\"a_\"===u.name.slice(0,2));var v,g=u.name.slice(2);if(p.fragmentPragmas.initialize[g]=\"\",d.isPaintValueFeatureConstant(u.paintProperty))p.uniforms.push(u),p.fragmentPragmas.define[g]=p.vertexPragmas.define[g]=[\"uniform\",\"{precision}\",\"{type}\",m].join(\" \")+\";\",p.fragmentPragmas.initialize[g]=p.vertexPragmas.initialize[g]=[\"{precision}\",\"{type}\",g,\"=\",m].join(\" \")+\";\\n\";else if(d.isPaintValueZoomConstant(u.paintProperty)){p.attributes.push(c.extend({},u,{name:m})),v=[\"varying\",\"{precision}\",\"{type}\",g].join(\" \")+\";\\n\"\n", ";var y=[p.fragmentPragmas.define[g],\"attribute\",\"{precision}\",\"{type}\",m].join(\" \")+\";\\n\";p.fragmentPragmas.define[g]=v,p.vertexPragmas.define[g]=v+y,p.vertexPragmas.initialize[g]=[g,\"=\",m,\"/\",u.multiplier.toFixed(1)].join(\" \")+\";\\n\"}else{for(var b=\"u_\"+m.slice(2)+\"_t\",x=d.getPaintValueStopZoomLevels(u.paintProperty),_=0;_<x.length&&x[_]<t.zoom;)_++;for(var w=Math.max(0,Math.min(x.length-4,_-2)),M=[],k=0;k<4;k++)M.push(x[Math.min(w+k,x.length-1)]);v=[\"varying\",\"{precision}\",\"{type}\",g].join(\" \")+\";\\n\",p.vertexPragmas.define[g]=v+[\"uniform\",\"lowp\",\"float\",b].join(\" \")+\";\\n\",p.fragmentPragmas.define[g]=v,p.uniforms.push(c.extend({},u,{name:b,getValue:o(u,w),components:1}));var A=u.components;if(1===A)p.attributes.push(c.extend({},u,{getValue:a(u,M),isFunction:!0,components:4*A})),p.vertexPragmas.define[g]+=[\"attribute\",\"{precision}\",\"vec4\",m].join(\" \")+\";\\n\",p.vertexPragmas.initialize[g]=[g,\"=\",\"evaluate_zoom_function_1(\"+m+\", \"+b+\")\",\"/\",u.multiplier.toFixed(1)].join(\" \")+\";\\n\";else{for(var T=[],S=0;S<4;S++)T.push(m+S),p.attributes.push(c.extend({},u,{getValue:a(u,[M[S]]),isFunction:!0,name:m+S})),p.vertexPragmas.define[g]+=[\"attribute\",\"{precision}\",\"{type}\",m+S].join(\" \")+\";\\n\";p.vertexPragmas.initialize[g]=[g,\" = \",\"evaluate_zoom_function_4(\"+T.join(\", \")+\", \"+b+\")\",\"/\",u.multiplier.toFixed(1)].join(\" \")+\";\\n\"}}}}}return e}function a(t,e){return function(r,n,i){if(1===e.length)return t.getValue(r,c.extend({},n,{zoom:e[0]}),i);for(var a=[],o=0;o<e.length;o++){var s=e[o];a.push(t.getValue(r,c.extend({},n,{zoom:s}),i)[0])}return a}}function o(t,e){return function(r,n){var i=r.getPaintInterpolationT(t.paintProperty,n.zoom);return[Math.max(0,Math.min(4,i-e))]}}var s=t(\"feature-filter\"),l=t(\"./array_group\"),u=t(\"./buffer_group\"),c=t(\"../util/util\"),h=t(\"../util/struct_array\"),f=t(\"assert\");e.exports=n,n.create=function(e){return new({fill:t(\"./bucket/fill_bucket\"),line:t(\"./bucket/line_bucket\"),circle:t(\"./bucket/circle_bucket\"),symbol:t(\"./bucket/symbol_bucket\")}[e.layer.type])(e)},n.EXTENT=8192,n.prototype.populateArrays=function(){this.createArrays(),this.recalculateStyleLayers();for(var t=0;t<this.features.length;t++)this.addFeature(this.features[t]);this.trimArrays()},n.prototype.prepareArrayGroup=function(t,e){var r=this.arrayGroups[t],n=r.length&&r[r.length-1];return n&&n.hasCapacityFor(e)||(n=new l({layoutVertexArrayType:this.programInterfaces[t].layoutVertexArrayType,elementArrayType:this.programInterfaces[t].elementArrayType,elementArrayType2:this.programInterfaces[t].elementArrayType2,paintVertexArrayTypes:this.paintVertexArrayTypes[t]}),n.index=r.length,r.push(n)),n},n.prototype.createArrays=function(){this.arrayGroups={},this.paintVertexArrayTypes={};for(var t in this.programInterfaces){this.arrayGroups[t]=[];var e=this.paintVertexArrayTypes[t]={},r=this.paintAttributes[t];for(var i in r)e[i]=new n.VertexArrayType(r[i].attributes)}},n.prototype.destroy=function(t){for(var e in this.bufferGroups)for(var r=this.bufferGroups[e],n=0;n<r.length;n++)r[n].destroy(t)},n.prototype.trimArrays=function(){for(var t in this.arrayGroups)for(var e=this.arrayGroups[t],r=0;r<e.length;r++)e[r].trim()},n.prototype.isEmpty=function(){for(var t in this.arrayGroups)for(var e=this.arrayGroups[t],r=0;r<e.length;r++)if(!e[r].isEmpty())return!1;return!0},n.prototype.getTransferables=function(t){for(var e in this.arrayGroups)for(var r=this.arrayGroups[e],n=0;n<r.length;n++)r[n].getTransferables(t)},n.prototype.setUniforms=function(t,e,r,n,i){for(var a=this.paintAttributes[e][n.id].uniforms,o=0;o<a.length;o++){var s=a[o],l=r[s.name];t[\"uniform\"+s.components+\"fv\"](l,s.getValue(n,i))}},n.prototype.serialize=function(){return{layerId:this.layer.id,zoom:this.zoom,arrays:c.mapObject(this.arrayGroups,function(t){return t.map(function(t){return t.serialize()})}),paintVertexArrayTypes:c.mapObject(this.paintVertexArrayTypes,function(t){return c.mapObject(t,function(t){return t.serialize()})}),childLayerIds:this.childLayers.map(function(t){return t.id})}},n.prototype.createFilter=function(){this.filter||(this.filter=s(this.layer.filter))};var d={lastIntegerZoom:1/0,lastIntegerZoomTime:0,lastZoom:0};n.prototype.recalculateStyleLayers=function(){for(var t=0;t<this.childLayers.length;t++)this.childLayers[t].recalculate(this.zoom,d)},n.prototype.populatePaintArrays=function(t,e,r,n,i){for(var a=0;a<this.childLayers.length;a++)for(var o=this.childLayers[a],s=this.arrayGroups[t],l=n.index;l<s.length;l++){var u=s[l],c=u.layoutVertexArray.length,h=u.paintVertexArrays[o.id];h.resize(c);for(var f=this.paintAttributes[t][o.id].attributes,d=0;d<f.length;d++)for(var p=f[d],m=p.getValue(o,e,r),v=p.multiplier||1,g=p.components||1,y=l===n.index?i:0,b=y;b<c;b++)for(var x=h.get(b),_=0;_<g;_++){var w=g>1?p.name+_:p.name;x[w]=m[_]*v}}},n.VertexArrayType=function(t){return new h({members:t,alignment:4})},n.ElementArrayType=function(t){return new h({members:[{type:\"Uint16\",name:\"vertices\",components:t||3}]})}},{\"../util/struct_array\":440,\"../util/util\":442,\"./array_group\":328,\"./bucket/circle_bucket\":330,\"./bucket/fill_bucket\":331,\"./bucket/line_bucket\":332,\"./bucket/symbol_bucket\":333,\"./buffer_group\":335,assert:47,\"feature-filter\":132}],330:[function(t,e,r){\"use strict\";function n(){i.apply(this,arguments)}var i=t(\"../bucket\"),a=t(\"../../util/util\"),o=t(\"../load_geometry\"),s=i.EXTENT;e.exports=n,n.prototype=a.inherit(i,{}),n.prototype.addCircleVertex=function(t,e,r,n,i){return t.emplaceBack(2*e+(n+1)/2,2*r+(i+1)/2)},n.prototype.programInterfaces={circle:{layoutVertexArrayType:new i.VertexArrayType([{name:\"a_pos\",components:2,type:\"Int16\"}]),elementArrayType:new i.ElementArrayType,paintAttributes:[{name:\"a_color\",components:4,type:\"Uint8\",getValue:function(t,e,r){return t.getPaintValue(\"circle-color\",e,r)},multiplier:255,paintProperty:\"circle-color\"},{name:\"a_radius\",components:1,type:\"Uint16\",isLayerConstant:!1,getValue:function(t,e,r){return[t.getPaintValue(\"circle-radius\",e,r)]},multiplier:10,paintProperty:\"circle-radius\"},{name:\"a_blur\",components:1,type:\"Uint16\",isLayerConstant:!1,getValue:function(t,e,r){return[t.getPaintValue(\"circle-blur\",e,r)]},multiplier:10,paintProperty:\"circle-blur\"},{name:\"a_opacity\",components:1,type:\"Uint16\",isLayerConstant:!1,getValue:function(t,e,r){return[t.getPaintValue(\"circle-opacity\",e,r)]},multiplier:255,paintProperty:\"circle-opacity\"}]}},n.prototype.addFeature=function(t){for(var e={zoom:this.zoom},r=o(t),n=this.prepareArrayGroup(\"circle\",0),i=n.layoutVertexArray.length,a=0;a<r.length;a++)for(var l=0;l<r[a].length;l++){var u=r[a][l].x,c=r[a][l].y;if(!(u<0||u>=s||c<0||c>=s)){var h=this.prepareArrayGroup(\"circle\",4),f=h.layoutVertexArray,d=this.addCircleVertex(f,u,c,-1,-1);this.addCircleVertex(f,u,c,1,-1),this.addCircleVertex(f,u,c,1,1),this.addCircleVertex(f,u,c,-1,1),h.elementArray.emplaceBack(d,d+1,d+2),h.elementArray.emplaceBack(d,d+3,d+2)}}this.populatePaintArrays(\"circle\",e,t.properties,n,i)}},{\"../../util/util\":442,\"../bucket\":329,\"../load_geometry\":337}],331:[function(t,e,r){\"use strict\";function n(){i.apply(this,arguments)}var i=t(\"../bucket\"),a=t(\"../../util/util\"),o=t(\"../load_geometry\"),s=t(\"earcut\"),l=t(\"../../util/classify_rings\");e.exports=n,n.prototype=a.inherit(i,{}),n.prototype.programInterfaces={fill:{layoutVertexArrayType:new i.VertexArrayType([{name:\"a_pos\",components:2,type:\"Int16\"}]),elementArrayType:new i.ElementArrayType(1),elementArrayType2:new i.ElementArrayType(2),paintAttributes:[{name:\"a_color\",components:4,type:\"Uint8\",getValue:function(t,e,r){return t.getPaintValue(\"fill-color\",e,r)},multiplier:255,paintProperty:\"fill-color\"},{name:\"a_outline_color\",components:4,type:\"Uint8\",getValue:function(t,e,r){return t.getPaintValue(\"fill-outline-color\",e,r)},multiplier:255,paintProperty:\"fill-outline-color\"},{name:\"a_opacity\",components:1,type:\"Uint8\",getValue:function(t,e,r){return[t.getPaintValue(\"fill-opacity\",e,r)]},multiplier:255,paintProperty:\"fill-opacity\"}]}},n.prototype.addFeature=function(t){for(var e=o(t),r=l(e,500),n=this.prepareArrayGroup(\"fill\",0),i=n.layoutVertexArray.length,a=0;a<r.length;a++)this.addPolygon(r[a]);this.populatePaintArrays(\"fill\",{zoom:this.zoom},t.properties,n,i)},n.prototype.addPolygon=function(t){for(var e=0,r=0;r<t.length;r++)e+=t[r].length;for(var n=this.prepareArrayGroup(\"fill\",e),i=[],a=[],o=n.layoutVertexArray.length,l=0;l<t.length;l++){var u=t[l];l>0&&a.push(i.length/2);for(var c=0;c<u.length;c++){var h=u[c],f=n.layoutVertexArray.emplaceBack(h.x,h.y);c>=1&&n.elementArray2.emplaceBack(f-1,f),i.push(h.x),i.push(h.y)}}for(var d=s(i,a),p=0;p<d.length;p++)n.elementArray.emplaceBack(d[p]+o)}},{\"../../util/classify_rings\":430,\"../../util/util\":442,\"../bucket\":329,\"../load_geometry\":337,earcut:126}],332:[function(t,e,r){\"use strict\";function n(){i.apply(this,arguments)}var i=t(\"../bucket\"),a=t(\"../../util/util\"),o=t(\"../load_geometry\"),s=i.EXTENT,l=Math.cos(Math.PI/180*37.5),u=Math.pow(2,14)/.5;e.exports=n,n.prototype=a.inherit(i,{}),n.prototype.addLineVertex=function(t,e,r,n,i,a,o){return t.emplaceBack(e.x<<1|n,e.y<<1|i,Math.round(63*r.x)+128,Math.round(63*r.y)+128,1+(0===a?0:a<0?-1:1)|(.5*o&63)<<2,.5*o>>6)},n.prototype.programInterfaces={line:{layoutVertexArrayType:new i.VertexArrayType([{name:\"a_pos\",components:2,type:\"Int16\"},{name:\"a_data\",components:4,type:\"Uint8\"}]),elementArrayType:new i.ElementArrayType}},n.prototype.addFeature=function(t){for(var e=o(t,15),r=0;r<e.length;r++)this.addLine(e[r],this.layer.layout[\"line-join\"],this.layer.layout[\"line-cap\"],this.layer.layout[\"line-miter-limit\"],this.layer.layout[\"line-round-limit\"])},n.prototype.addLine=function(t,e,r,n,i){for(var a=t.length;a>2&&t[a-1].equals(t[a-2]);)a--;if(!(t.length<2)){\"bevel\"===e&&(n=1.05);var o=s/(512*this.overscaling)*15,u=t[0],c=t[a-1],h=u.equals(c);if(this.prepareArrayGroup(\"line\",10*a),2!==a||!h){this.distance=0;var f,d,p,m,v,g,y,b=r,x=h?\"butt\":r,_=!0;this.e1=this.e2=this.e3=-1,h&&(f=t[a-2],v=u.sub(f)._unit()._perp());for(var w=0;w<a;w++)if(!(p=h&&w===a-1?t[1]:t[w+1])||!t[w].equals(p)){v&&(m=v),f&&(d=f),f=t[w],v=p?p.sub(f)._unit()._perp():m,m=m||v;var M=m.add(v)._unit(),k=M.x*v.x+M.y*v.y,A=1/k,T=k<l&&d&&p;if(T&&w>0){var S=f.dist(d);if(S>2*o){var E=f.sub(f.sub(d)._mult(o/S)._round());this.distance+=E.dist(d),this.addCurrentVertex(E,this.distance,m.mult(1),0,0,!1),d=E}}var L=d&&p,C=L?e:p?b:x;if(L&&\"round\"===C&&(A<i?C=\"miter\":A<=2&&(C=\"fakeround\")),\"miter\"===C&&A>n&&(C=\"bevel\"),\"bevel\"===C&&(A>2&&(C=\"flipbevel\"),A<n&&(C=\"miter\")),d&&(this.distance+=f.dist(d)),\"miter\"===C)M._mult(A),this.addCurrentVertex(f,this.distance,M,0,0,!1);else if(\"flipbevel\"===C){if(A>100)M=v.clone();else{var I=m.x*v.y-m.y*v.x>0?-1:1,z=A*m.add(v).mag()/m.sub(v).mag();M._perp()._mult(z*I)}this.addCurrentVertex(f,this.distance,M,0,0,!1),this.addCurrentVertex(f,this.distance,M.mult(-1),0,0,!1)}else if(\"bevel\"===C||\"fakeround\"===C){var D=m.x*v.y-m.y*v.x>0,P=-Math.sqrt(A*A-1);if(D?(y=0,g=P):(g=0,y=P),_||this.addCurrentVertex(f,this.distance,m,g,y,!1),\"fakeround\"===C){for(var O,R=Math.floor(8*(.5-(k-.5))),F=0;F<R;F++)O=v.mult((F+1)/(R+1))._add(m)._unit(),this.addPieSliceVertex(f,this.distance,O,D);this.addPieSliceVertex(f,this.distance,M,D);for(var j=R-1;j>=0;j--)O=m.mult((j+1)/(R+1))._add(v)._unit(),this.addPieSliceVertex(f,this.distance,O,D)}p&&this.addCurrentVertex(f,this.distance,v,-g,-y,!1)}else\"butt\"===C?(_||this.addCurrentVertex(f,this.distance,m,0,0,!1),p&&this.addCurrentVertex(f,this.distance,v,0,0,!1)):\"square\"===C?(_||(this.addCurrentVertex(f,this.distance,m,1,1,!1),this.e1=this.e2=-1),p&&this.addCurrentVertex(f,this.distance,v,-1,-1,!1)):\"round\"===C&&(_||(this.addCurrentVertex(f,this.distance,m,0,0,!1),this.addCurrentVertex(f,this.distance,m,1,1,!0),this.e1=this.e2=-1),p&&(this.addCurrentVertex(f,this.distance,v,-1,-1,!0),this.addCurrentVertex(f,this.distance,v,0,0,!1)));if(T&&w<a-1){var N=f.dist(p);if(N>2*o){var B=f.add(p.sub(f)._mult(o/N)._round());this.distance+=B.dist(f),this.addCurrentVertex(B,this.distance,v.mult(1),0,0,!1),f=B}}_=!1}}}},n.prototype.addCurrentVertex=function(t,e,r,n,i,a){var o,s=a?1:0,l=this.arrayGroups.line[this.arrayGroups.line.length-1],c=l.layoutVertexArray,h=l.elementArray;o=r.clone(),n&&o._sub(r.perp()._mult(n)),this.e3=this.addLineVertex(c,t,o,s,0,n,e),this.e1>=0&&this.e2>=0&&h.emplaceBack(this.e1,this.e2,this.e3),this.e1=this.e2,this.e2=this.e3,o=r.mult(-1),i&&o._sub(r.perp()._mult(i)),this.e3=this.addLineVertex(c,t,o,s,1,-i,e),this.e1>=0&&this.e2>=0&&h.emplaceBack(this.e1,this.e2,this.e3),this.e1=this.e2,this.e2=this.e3,e>u/2&&(this.distance=0,this.addCurrentVertex(t,this.distance,r,n,i,a))},n.prototype.addPieSliceVertex=function(t,e,r,n){var i=n?1:0;r=r.mult(n?-1:1);var a=this.arrayGroups.line[this.arrayGroups.line.length-1],o=a.layoutVertexArray,s=a.elementArray;this.e3=this.addLineVertex(o,t,r,0,i,0,e),this.e1>=0&&this.e2>=0&&s.emplaceBack(this.e1,this.e2,this.e3),n?this.e2=this.e3:this.e1=this.e3}},{\"../../util/util\":442,\"../bucket\":329,\"../load_geometry\":337}],333:[function(t,e,r){\"use strict\";function n(t){o.apply(this,arguments),this.showCollisionBoxes=t.showCollisionBoxes,this.overscaling=t.overscaling,this.collisionBoxArray=t.collisionBoxArray,this.symbolQuadsArray=t.symbolQuadsArray,this.symbolInstancesArray=t.symbolInstancesArray,this.sdfIcons=t.sdfIcons,this.iconsNeedLinear=t.iconsNeedLinear,this.adjustedTextSize=t.adjustedTextSize,this.adjustedIconSize=t.adjustedIconSize,this.fontstack=t.fontstack}function i(t,e,r,n,i,a,o,s,l,u,c){return t.emplaceBack(e,r,Math.round(64*n),Math.round(64*i),a/4,o/4,10*(u||0),c,10*(s||0),10*Math.min(l||25,25))}var a=t(\"point-geometry\"),o=t(\"../bucket\"),s=t(\"../../symbol/anchor\"),l=t(\"../../symbol/get_anchors\"),u=t(\"../../util/token\"),c=t(\"../../symbol/quads\"),h=t(\"../../symbol/shaping\"),f=t(\"../../symbol/resolve_text\"),d=t(\"../../symbol/mergelines\"),p=t(\"../../symbol/clip_line\"),m=t(\"../../util/util\"),v=t(\"../load_geometry\"),g=t(\"../../symbol/collision_feature\"),y=h.shapeText,b=h.shapeIcon,x=c.getGlyphQuads,_=c.getIconQuads,w=o.EXTENT;e.exports=n,n.MAX_QUADS=65535,n.prototype=m.inherit(o,{}),n.prototype.serialize=function(){var t=o.prototype.serialize.apply(this);return t.sdfIcons=this.sdfIcons,t.iconsNeedLinear=this.iconsNeedLinear,t.adjustedTextSize=this.adjustedTextSize,t.adjustedIconSize=this.adjustedIconSize,t.fontstack=this.fontstack,t};var M=new o.VertexArrayType([{name:\"a_pos\",components:2,type:\"Int16\"},{name:\"a_offset\",components:2,type:\"Int16\"},{name:\"a_texture_pos\",components:2,type:\"Uint16\"},{name:\"a_data\",components:4,type:\"Uint8\"}]),k=new o.ElementArrayType;n.prototype.addCollisionBoxVertex=function(t,e,r,n,i){return t.emplaceBack(e.x,e.y,Math.round(r.x),Math.round(r.y),10*n,10*i)},n.prototype.programInterfaces={glyph:{layoutVertexArrayType:M,elementArrayType:k},icon:{layoutVertexArrayType:M,elementArrayType:k},collisionBox:{layoutVertexArrayType:new o.VertexArrayType([{name:\"a_pos\",components:2,type:\"Int16\"},{name:\"a_extrude\",components:2,type:\"Int16\"},{name:\"a_data\",components:2,type:\"Uint8\"}])}},n.prototype.populateArrays=function(t,e,r){var n={lastIntegerZoom:1/0,lastIntegerZoomTime:0,lastZoom:0};this.adjustedTextMaxSize=this.layer.getLayoutValue(\"text-size\",{zoom:18,zoomHistory:n}),this.adjustedTextSize=this.layer.getLayoutValue(\"text-size\",{zoom:this.zoom+1,zoomHistory:n}),this.adjustedIconMaxSize=this.layer.getLayoutValue(\"icon-size\",{zoom:18,zoomHistory:n}),this.adjustedIconSize=this.layer.getLayoutValue(\"icon-size\",{zoom:this.zoom+1,zoomHistory:n});var i=512*this.overscaling;this.tilePixelRatio=w/i,this.compareText={},this.iconsNeedLinear=!1,this.symbolInstancesStartIndex=this.symbolInstancesArray.length;var a=this.layer.layout,o=this.features,s=this.textFeatures,l=.5,c=.5;switch(a[\"text-anchor\"]){case\"right\":case\"top-right\":case\"bottom-right\":l=1;break;case\"left\":case\"top-left\":case\"bottom-left\":l=0}switch(a[\"text-anchor\"]){case\"bottom\":case\"bottom-right\":case\"bottom-left\":c=1;break;case\"top\":case\"top-right\":case\"top-left\":c=0}for(var h=\"right\"===a[\"text-justify\"]?1:\"left\"===a[\"text-justify\"]?0:.5,f=24*a[\"text-line-height\"],p=\"line\"!==a[\"symbol-placement\"]?24*a[\"text-max-width\"]:0,g=24*a[\"text-letter-spacing\"],x=[24*a[\"text-offset\"][0],24*a[\"text-offset\"][1]],_=this.fontstack=a[\"text-font\"].join(\",\"),M=[],k=0;k<o.length;k++)M.push(v(o[k]));if(\"line\"===a[\"symbol-placement\"]){var A=d(o,s,M);M=A.geometries,o=A.features,s=A.textFeatures}for(var T,S,E=0;E<o.length;E++)if(M[E]){if(T=s[E]?y(s[E],e[_],p,f,l,c,h,g,x):null,a[\"icon-image\"]){var L=u(o[E].properties,a[\"icon-image\"]),C=r[L];S=b(C,a),C&&(void 0===this.sdfIcons?this.sdfIcons=C.sdf:this.sdfIcons!==C.sdf&&m.warnOnce(\"Style sheet warning: Cannot mix SDF and non-SDF icons in one buffer\"),1!==C.pixelRatio?this.iconsNeedLinear=!0:0===a[\"icon-rotate\"]&&this.layer.isLayoutValueFeatureConstant(\"icon-rotate\")||(this.iconsNeedLinear=!0))}else S=null;(T||S)&&this.addFeature(M[E],T,S,o[E])}this.symbolInstancesEndIndex=this.symbolInstancesArray.length,this.placeFeatures(t,this.showCollisionBoxes),this.trimArrays()},n.prototype.addFeature=function(t,e,r,n){var i=this.layer.layout,a=this.adjustedTextSize/24,o=void 0!==this.adjustedTextMaxSize?this.adjustedTextMaxSize:this.adjustedTextSize,u=this.tilePixelRatio*a,c=this.tilePixelRatio*o/24,h=this.tilePixelRatio*this.adjustedIconSize,f=this.tilePixelRatio*i[\"symbol-spacing\"],d=i[\"symbol-avoid-edges\"],m=i[\"text-padding\"]*this.tilePixelRatio,v=i[\"icon-padding\"]*this.tilePixelRatio,g=i[\"text-max-angle\"]/180*Math.PI,y=\"map\"===i[\"text-rotation-alignment\"]&&\"line\"===i[\"symbol-placement\"],b=\"map\"===i[\"icon-rotation-alignment\"]&&\"line\"===i[\"symbol-placement\"],x=i[\"text-allow-overlap\"]||i[\"icon-allow-overlap\"]||i[\"text-ignore-placement\"]||i[\"icon-ignore-placement\"],_=\"line\"===i[\"symbol-placement\"],M=f/2;_&&(t=p(t,0,0,w,w));for(var k=0;k<t.length;k++){var A,T=t[k];A=_?l(T,f,g,e,r,24,c,this.overscaling,w):[new s(T[0].x,T[0].y,0)];for(var S=0,E=A.length;S<E;S++){var L=A[S];if(!(e&&_&&this.anchorIsTooClose(e.text,M,L))){var C=!(L.x<0||L.x>w||L.y<0||L.y>w);if(!d||C){var I=C||x;this.addSymbolInstance(L,T,e,r,this.layer,I,this.symbolInstancesArray.length,this.collisionBoxArray,n.index,this.sourceLayerIndex,this.index,u,m,y,h,v,b,{zoom:this.zoom},n.properties)}}}}},n.prototype.anchorIsTooClose=function(t,e,r){var n=this.compareText;if(t in n){for(var i=n[t],a=i.length-1;a>=0;a--)if(r.dist(i[a])<e)return!0}else n[t]=[];return n[t].push(r),!1},n.prototype.placeFeatures=function(t,e){this.recalculateStyleLayers(),this.createArrays();var r=this.layer.layout,n=t.maxScale,i=\"map\"===r[\"text-rotation-alignment\"]&&\"line\"===r[\"symbol-placement\"],a=\"map\"===r[\"icon-rotation-alignment\"]&&\"line\"===r[\"symbol-placement\"];if(r[\"text-allow-overlap\"]||r[\"icon-allow-overlap\"]||r[\"text-ignore-placement\"]||r[\"icon-ignore-placement\"]){var o=this.symbolInstancesArray.toArray(this.symbolInstancesStartIndex,this.symbolInstancesEndIndex),s=t.angle,l=Math.sin(s),u=Math.cos(s);this.sortedSymbolInstances=o.sort(function(t,e){return(l*t.anchorPointX+u*t.anchorPointY|0)-(l*e.anchorPointX+u*e.anchorPointY|0)||e.index-t.index})}for(var c=this.symbolInstancesStartIndex;c<this.symbolInstancesEndIndex;c++){var h=this.sortedSymbolInstances?this.sortedSymbolInstances[c-this.symbolInstancesStartIndex]:this.symbolInstancesArray.get(c),f={boxStartIndex:h.textBoxStartIndex,boxEndIndex:h.textBoxEndIndex},d={boxStartIndex:h.iconBoxStartIndex,boxEndIndex:h.iconBoxEndIndex},p=!(h.textBoxStartIndex===h.textBoxEndIndex),m=!(h.iconBoxStartIndex===h.iconBoxEndIndex),v=r[\"text-optional\"]||!p,g=r[\"icon-optional\"]||!m,y=p?t.placeCollisionFeature(f,r[\"text-allow-overlap\"],r[\"symbol-avoid-edges\"]):t.minScale,b=m?t.placeCollisionFeature(d,r[\"icon-allow-overlap\"],r[\"symbol-avoid-edges\"]):t.minScale;v||g?!g&&y?y=Math.max(b,y):!v&&b&&(b=Math.max(b,y)):b=y=Math.max(b,y),p&&(t.insertCollisionFeature(f,y,r[\"text-ignore-placement\"]),y<=n&&this.addSymbols(\"glyph\",h.glyphQuadStartIndex,h.glyphQuadEndIndex,y,r[\"text-keep-upright\"],i,t.angle)),m&&(t.insertCollisionFeature(d,b,r[\"icon-ignore-placement\"]),b<=n&&this.addSymbols(\"icon\",h.iconQuadStartIndex,h.iconQuadEndIndex,b,r[\"icon-keep-upright\"],a,t.angle))}e&&this.addToDebugBuffers(t)},n.prototype.addSymbols=function(t,e,r,n,a,o,s){for(var l=this.prepareArrayGroup(t,4*(r-e)),u=l.elementArray,c=l.layoutVertexArray,h=this.zoom,f=Math.max(Math.log(n)/Math.LN2+h,0),d=e;d<r;d++){var p=this.symbolQuadsArray.get(d).SymbolQuad,m=(p.anchorAngle+s+Math.PI)%(2*Math.PI);if(!(a&&o&&(m<=Math.PI/2||m>3*Math.PI/2))){var v=p.tl,g=p.tr,y=p.bl,b=p.br,x=p.tex,_=p.anchorPoint,w=Math.max(h+Math.log(p.minScale)/Math.LN2,f),M=Math.min(h+Math.log(p.maxScale)/Math.LN2,25);if(!(M<=w)){w===f&&(w=0);var k=Math.round(p.glyphAngle/(2*Math.PI)*256),A=i(c,_.x,_.y,v.x,v.y,x.x,x.y,w,M,f,k);i(c,_.x,_.y,g.x,g.y,x.x+x.w,x.y,w,M,f,k),i(c,_.x,_.y,y.x,y.y,x.x,x.y+x.h,w,M,f,k),i(c,_.x,_.y,b.x,b.y,x.x+x.w,x.y+x.h,w,M,f,k),u.emplaceBack(A,A+1,A+2),u.emplaceBack(A+1,A+2,A+3)}}}},n.prototype.updateIcons=function(t){this.recalculateStyleLayers();var e=this.layer.layout[\"icon-image\"];if(e)for(var r=0;r<this.features.length;r++){var n=u(this.features[r].properties,e);n&&(t[n]=!0)}},n.prototype.updateFont=function(t){this.recalculateStyleLayers();var e=this.layer.layout[\"text-font\"],r=t[e]=t[e]||{};this.textFeatures=f(this.features,this.layer.layout,r)},n.prototype.addToDebugBuffers=function(t){for(var e=this.prepareArrayGroup(\"collisionBox\",0),r=e.layoutVertexArray,n=-t.angle,i=t.yStretch,o=this.symbolInstancesStartIndex;o<this.symbolInstancesEndIndex;o++){var s=this.symbolInstancesArray.get(o);s.textCollisionFeature={boxStartIndex:s.textBoxStartIndex,boxEndIndex:s.textBoxEndIndex},s.iconCollisionFeature={boxStartIndex:s.iconBoxStartIndex,boxEndIndex:s.iconBoxEndIndex};for(var l=0;l<2;l++){var u=s[0===l?\"textCollisionFeature\":\"iconCollisionFeature\"];if(u)for(var c=u.boxStartIndex;c<u.boxEndIndex;c++){var h=this.collisionBoxArray.get(c),f=h.anchorPoint,d=new a(h.x1,h.y1*i)._rotate(n),p=new a(h.x2,h.y1*i)._rotate(n),m=new a(h.x1,h.y2*i)._rotate(n),v=new a(h.x2,h.y2*i)._rotate(n),g=Math.max(0,Math.min(25,this.zoom+Math.log(h.maxScale)/Math.LN2)),y=Math.max(0,Math.min(25,this.zoom+Math.log(h.placementScale)/Math.LN2));this.addCollisionBoxVertex(r,f,d,g,y),this.addCollisionBoxVertex(r,f,p,g,y),this.addCollisionBoxVertex(r,f,p,g,y),this.addCollisionBoxVertex(r,f,v,g,y),this.addCollisionBoxVertex(r,f,v,g,y),this.addCollisionBoxVertex(r,f,m,g,y),this.addCollisionBoxVertex(r,f,m,g,y),this.addCollisionBoxVertex(r,f,d,g,y)}}}},n.prototype.addSymbolInstance=function(t,e,r,i,a,o,s,l,u,c,h,f,d,p,v,y,b,w,M){var k,A,T,S,E,L,C,I;if(r&&(C=o?x(t,r,f,e,a,p):[],E=new g(l,e,t,u,c,h,r,f,d,p,!1)),k=this.symbolQuadsArray.length,C&&C.length)for(var z=0;z<C.length;z++)this.addSymbolQuad(C[z]);A=this.symbolQuadsArray.length;var D=E?E.boxStartIndex:this.collisionBoxArray.length,P=E?E.boxEndIndex:this.collisionBoxArray.length;i&&(I=o?_(t,i,v,e,a,b,r,w,M):[],L=new g(l,e,t,u,c,h,i,v,y,b,!0)),T=this.symbolQuadsArray.length,I&&1===I.length&&this.addSymbolQuad(I[0]),S=this.symbolQuadsArray.length;var O=L?L.boxStartIndex:this.collisionBoxArray.length,R=L?L.boxEndIndex:this.collisionBoxArray.length;return S>n.MAX_QUADS&&m.warnOnce(\"Too many symbols being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907\"),A>n.MAX_QUADS&&m.warnOnce(\"Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907\"),this.symbolInstancesArray.emplaceBack(D,P,O,R,k,A,T,S,t.x,t.y,s)},n.prototype.addSymbolQuad=function(t){return this.symbolQuadsArray.emplaceBack(t.anchorPoint.x,t.anchorPoint.y,t.tl.x,t.tl.y,t.tr.x,t.tr.y,t.bl.x,t.bl.y,t.br.x,t.br.y,t.tex.h,t.tex.w,t.tex.x,t.tex.y,t.anchorAngle,t.glyphAngle,t.maxScale,t.minScale)}},{\"../../symbol/anchor\":391,\"../../symbol/clip_line\":393,\"../../symbol/collision_feature\":395,\"../../symbol/get_anchors\":397,\"../../symbol/mergelines\":400,\"../../symbol/quads\":401,\"../../symbol/resolve_text\":402,\"../../symbol/shaping\":403,\"../../util/token\":441,\"../../util/util\":442,\"../bucket\":329,\"../load_geometry\":337,\"point-geometry\":484}],334:[function(t,e,r){\"use strict\";function n(t,e,r){this.arrayBuffer=t.arrayBuffer,this.length=t.length,this.attributes=e.members,this.itemSize=e.bytesPerElement,this.type=r,this.arrayType=e}e.exports=n,n.prototype.bind=function(t){var e=t[this.type];this.buffer?t.bindBuffer(e,this.buffer):(this.buffer=t.createBuffer(),t.bindBuffer(e,this.buffer),t.bufferData(e,this.arrayBuffer,t.STATIC_DRAW),this.arrayBuffer=null)};var i={Int8:\"BYTE\",Uint8:\"UNSIGNED_BYTE\",Int16:\"SHORT\",Uint16:\"UNSIGNED_SHORT\"};n.prototype.setVertexAttribPointers=function(t,e){for(var r=0;r<this.attributes.length;r++){var n=this.attributes[r],a=e[n.name];void 0!==a&&t.vertexAttribPointer(a,n.components,t[i[n.type]],!1,this.arrayType.bytesPerElement,n.offset)}},n.prototype.destroy=function(t){this.buffer&&t.deleteBuffer(this.buffer)},n.BufferType={VERTEX:\"ARRAY_BUFFER\",ELEMENT:\"ELEMENT_ARRAY_BUFFER\"}},{}],335:[function(t,e,r){\"use strict\";function n(t,e){this.layoutVertexBuffer=new a(t.layoutVertexArray,e.layoutVertexArrayType,a.BufferType.VERTEX),t.elementArray&&(this.elementBuffer=new a(t.elementArray,e.elementArrayType,a.BufferType.ELEMENT));var r,n=this.vaos={};t.elementArray2&&(this.elementBuffer2=new a(t.elementArray2,e.elementArrayType2,a.BufferType.ELEMENT),r=this.secondVaos={}),this.paintVertexBuffers=i.mapObject(t.paintVertexArrays,function(i,s){return n[s]=new o,t.elementArray2&&(r[s]=new o),new a(i,e.paintVertexArrayTypes[s],a.BufferType.VERTEX)})}var i=t(\"../util/util\"),a=t(\"./buffer\"),o=t(\"../render/vertex_array_object\");e.exports=n,n.prototype.destroy=function(t){this.layoutVertexBuffer.destroy(t),this.elementBuffer&&this.elementBuffer.destroy(t),this.elementBuffer2&&this.elementBuffer2.destroy(t);for(var e in this.paintVertexBuffers)this.paintVertexBuffers[e].destroy(t);for(var r in this.vaos)this.vaos[r].destroy(t);for(var n in this.secondVaos)this.secondVaos[n].destroy(t)}},{\"../render/vertex_array_object\":357,\"../util/util\":442,\"./buffer\":334}],336:[function(t,e,r){\"use strict\";function n(t,e,r){if(t.grid){var n=t,i=e;t=n.coord,e=n.overscaling,this.grid=new p(n.grid),this.featureIndexArray=new k(n.featureIndexArray),this.rawTileData=i,this.bucketLayerIDs=n.bucketLayerIDs}else this.grid=new p(h,16,0),this.featureIndexArray=new k;this.coord=t,this.overscaling=e,this.x=t.x,this.y=t.y,this.z=t.z-Math.log(e)/Math.LN2,this.setCollisionTile(r)}function i(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function a(t,e){return e-t}function o(t){return t[\"line-gap-width\"]>0?t[\"line-gap-width\"]+2*t[\"line-width\"]:t[\"line-width\"]}function s(t,e,r,n,i){if(!e[0]&&!e[1])return t;e=u.convert(e),\"viewport\"===r&&e._rotate(-n);for(var a=[],o=0;o<t.length;o++){for(var s=t[o],l=[],c=0;c<s.length;c++)l.push(s[c].sub(e._mult(i)));a.push(l)}return a}function l(t,e){for(var r=[],n=new u(0,0),i=0;i<t.length;i++){for(var a=t[i],o=[],s=0;s<a.length;s++){var l=a[s-1],c=a[s],h=a[s+1],f=0===s?n:c.sub(l)._unit()._perp(),d=s===a.length-1?n:h.sub(c)._unit()._perp(),p=f._add(d)._unit(),m=p.x*d.x+p.y*d.y;p._mult(1/m),o.push(p._mult(e)._add(c))}r.push(o)}return r}var u=t(\"point-geometry\"),c=t(\"./load_geometry\"),h=t(\"./bucket\").EXTENT,f=t(\"feature-filter\"),d=t(\"../util/struct_array\"),p=t(\"grid-index\"),m=t(\"../util/dictionary_coder\"),v=t(\"vector-tile\"),g=t(\"pbf\"),y=t(\"../util/vectortile_to_geojson\"),b=t(\"../util/util\").arraysIntersect,x=t(\"../util/intersection_tests\"),_=x.multiPolygonIntersectsBufferedMultiPoint,w=x.multiPolygonIntersectsMultiPolygon,M=x.multiPolygonIntersectsBufferedMultiLine,k=new d({members:[{type:\"Uint32\",name:\"featureIndex\"},{type:\"Uint16\",name:\"sourceLayerIndex\"},{type:\"Uint16\",name:\"bucketIndex\"}]});e.exports=n,n.prototype.insert=function(t,e,r,n){var i=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(e,r,n);for(var a=c(t),o=0;o<a.length;o++){for(var s=a[o],l=[1/0,1/0,-1/0,-1/0],u=0;u<s.length;u++){var h=s[u];l[0]=Math.min(l[0],h.x),l[1]=Math.min(l[1],h.y),l[2]=Math.max(l[2],h.x),l[3]=Math.max(l[3],h.y)}this.grid.insert(i,l[0],l[1],l[2],l[3])}},n.prototype.setCollisionTile=function(t){this.collisionTile=t},n.prototype.serialize=function(){var t={coord:this.coord,overscaling:this.overscaling,grid:this.grid.toArrayBuffer(),featureIndexArray:this.featureIndexArray.serialize(),bucketLayerIDs:this.bucketLayerIDs};return{data:t,transferables:[t.grid,t.featureIndexArray.arrayBuffer]}},n.prototype.query=function(t,e){this.vtLayers||(this.vtLayers=new v.VectorTile(new g(new Uint8Array(this.rawTileData))).layers,this.sourceLayerCoder=new m(this.vtLayers?Object.keys(this.vtLayers).sort():[\"_geojsonTileLayer\"]));var r={},n=t.params||{},s=h/t.tileSize/t.scale,l=f(n.filter),c=0;for(var d in e){var p=e[d],y=p.paint,b=0;\"line\"===p.type?b=o(y)/2+Math.abs(y[\"line-offset\"])+i(y[\"line-translate\"]):\"fill\"===p.type?b=i(y[\"fill-translate\"]):\"circle\"===p.type&&(b=y[\"circle-radius\"]+i(y[\"circle-translate\"])),c=Math.max(c,b*s)}for(var x=t.queryGeometry.map(function(t){return t.map(function(t){return new u(t.x,t.y)})}),_=1/0,w=1/0,M=-1/0,k=-1/0,A=0;A<x.length;A++)for(var T=x[A],S=0;S<T.length;S++){var E=T[S];_=Math.min(_,E.x),w=Math.min(w,E.y),M=Math.max(M,E.x),k=Math.max(k,E.y)}var L=this.grid.query(_-c,w-c,M+c,k+c);L.sort(a),this.filterMatching(r,L,this.featureIndexArray,x,l,n.layers,e,t.bearing,s);var C=this.collisionTile.queryRenderedSymbols(_,w,M,k,t.scale);return C.sort(),this.filterMatching(r,C,this.collisionTile.collisionBoxArray,x,l,n.layers,e,t.bearing,s),r},n.prototype.filterMatching=function(t,e,r,n,i,a,u,h,f){for(var d,p=0;p<e.length;p++){var m=e[p];if(m!==d){d=m;var v=r.get(m),g=this.bucketLayerIDs[v.bucketIndex];if(!a||b(a,g)){var x=this.sourceLayerCoder.decode(v.sourceLayerIndex),k=this.vtLayers[x],A=k.feature(v.featureIndex);if(i(A))for(var T=null,S=0;S<g.length;S++){var E=g[S];if(!(a&&a.indexOf(E)<0)){var L=u[E];if(L){var C;if(\"symbol\"!==L.type){T||(T=c(A));var I=L.paint;if(\"line\"===L.type){C=s(n,I[\"line-translate\"],I[\"line-translate-anchor\"],h,f);var z=o(I)/2*f;if(I[\"line-offset\"]&&(T=l(T,I[\"line-offset\"]*f)),!M(C,T,z))continue}else if(\"fill\"===L.type){if(C=s(n,I[\"fill-translate\"],I[\"fill-translate-anchor\"],h,f),!w(C,T))continue}else if(\"circle\"===L.type){C=s(n,I[\"circle-translate\"],I[\"circle-translate-anchor\"],h,f);var D=I[\"circle-radius\"]*f;if(!_(C,T,D))continue}}var P=new y(A,this.z,this.x,this.y);P.layer=L.serialize({includeRefProperties:!0});var O=t[E];void 0===O&&(O=t[E]=[]),O.push(P)}}}}}}}},{\"../util/dictionary_coder\":432,\"../util/intersection_tests\":437,\"../util/struct_array\":440,\"../util/util\":442,\"../util/vectortile_to_geojson\":443,\"./bucket\":329,\"./load_geometry\":337,\"feature-filter\":132,\"grid-index\":287,pbf:478,\"point-geometry\":484,\"vector-tile\":550}],337:[function(t,e,r){\"use strict\";function n(t){return{min:-1*Math.pow(2,t-1),max:Math.pow(2,t-1)-1}}var i=t(\"../util/util\"),a=t(\"./bucket\").EXTENT,o=t(\"assert\"),s={15:n(15),16:n(16)};e.exports=function(t,e){var r=s[e||16];o(r);for(var n=a/t.extent,l=t.loadGeometry(),u=0;u<l.length;u++)for(var c=l[u],h=0;h<c.length;h++){var f=c[h];f.x=Math.round(f.x*n),f.y=Math.round(f.y*n),(f.x<r.min||f.x>r.max||f.y<r.min||f.y>r.max)&&i.warnOnce(\"Geometry exceeds allowed extent, reduce your vector tile buffer size\")}return l}},{\"../util/util\":442,\"./bucket\":329,assert:47}],338:[function(t,e,r){\"use strict\";function n(t,e,r){this.column=t,this.row=e,this.zoom=r}e.exports=n,n.prototype={clone:function(){return new n(this.column,this.row,this.zoom)},zoomTo:function(t){return this.clone()._zoomTo(t)},sub:function(t){return this.clone()._sub(t)},_zoomTo:function(t){var e=Math.pow(2,t-this.zoom);return this.column*=e,this.row*=e,this.zoom=t,this},_sub:function(t){return t=t.zoomTo(this.zoom),this.column-=t.column,this.row-=t.row,this}}},{}],339:[function(t,e,r){\"use strict\";function n(t,e){if(isNaN(t)||isNaN(e))throw new Error(\"Invalid LngLat object: (\"+t+\", \"+e+\")\");if(this.lng=+t,this.lat=+e,this.lat>90||this.lat<-90)throw new Error(\"Invalid LngLat latitude value: must be between -90 and 90\")}e.exports=n\n", ";var i=t(\"../util/util\").wrap;n.prototype.wrap=function(){return new n(i(this.lng,-180,180),this.lat)},n.prototype.toArray=function(){return[this.lng,this.lat]},n.prototype.toString=function(){return\"LngLat(\"+this.lng+\", \"+this.lat+\")\"},n.convert=function(t){return t instanceof n?t:Array.isArray(t)?new n(t[0],t[1]):t}},{\"../util/util\":442}],340:[function(t,e,r){\"use strict\";function n(t,e){t&&(e?this.extend(t).extend(e):4===t.length?this.extend([t[0],t[1]]).extend([t[2],t[3]]):this.extend(t[0]).extend(t[1]))}e.exports=n;var i=t(\"./lng_lat\");n.prototype={extend:function(t){var e,r,a=this._sw,o=this._ne;if(t instanceof i)e=t,r=t;else{if(!(t instanceof n))return t?this.extend(i.convert(t)||n.convert(t)):this;if(e=t._sw,r=t._ne,!e||!r)return this}return a||o?(a.lng=Math.min(e.lng,a.lng),a.lat=Math.min(e.lat,a.lat),o.lng=Math.max(r.lng,o.lng),o.lat=Math.max(r.lat,o.lat)):(this._sw=new i(e.lng,e.lat),this._ne=new i(r.lng,r.lat)),this},getCenter:function(){return new i((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},getSouthWest:function(){return this._sw},getNorthEast:function(){return this._ne},getNorthWest:function(){return new i(this.getWest(),this.getNorth())},getSouthEast:function(){return new i(this.getEast(),this.getSouth())},getWest:function(){return this._sw.lng},getSouth:function(){return this._sw.lat},getEast:function(){return this._ne.lng},getNorth:function(){return this._ne.lat},toArray:function(){return[this._sw.toArray(),this._ne.toArray()]},toString:function(){return\"LngLatBounds(\"+this._sw.toString()+\", \"+this._ne.toString()+\")\"}},n.convert=function(t){return!t||t instanceof n?t:new n(t)}},{\"./lng_lat\":339}],341:[function(t,e,r){\"use strict\";function n(t,e){this.tileSize=512,this._minZoom=t||0,this._maxZoom=e||22,this.latRange=[-85.05113,85.05113],this.width=0,this.height=0,this._center=new i(0,0),this.zoom=0,this.angle=0,this._altitude=1.5,this._pitch=0,this._unmodified=!0}var i=t(\"./lng_lat\"),a=t(\"point-geometry\"),o=t(\"./coordinate\"),s=t(\"../util/util\").wrap,l=t(\"../util/interpolate\"),u=t(\"../source/tile_coord\"),c=t(\"../data/bucket\").EXTENT,h=t(\"gl-matrix\"),f=h.vec4,d=h.mat4,p=h.mat2;e.exports=n,n.prototype={get minZoom(){return this._minZoom},set minZoom(t){this._minZoom!==t&&(this._minZoom=t,this.zoom=Math.max(this.zoom,t))},get maxZoom(){return this._maxZoom},set maxZoom(t){this._maxZoom!==t&&(this._maxZoom=t,this.zoom=Math.min(this.zoom,t))},get worldSize(){return this.tileSize*this.scale},get centerPoint(){return this.size._div(2)},get size(){return new a(this.width,this.height)},get bearing(){return-this.angle/Math.PI*180},set bearing(t){var e=-s(t,-180,180)*Math.PI/180;this.angle!==e&&(this._unmodified=!1,this.angle=e,this._calcMatrices(),this.rotationMatrix=p.create(),p.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},get pitch(){return this._pitch/Math.PI*180},set pitch(t){var e=Math.min(60,t)/180*Math.PI;this._pitch!==e&&(this._unmodified=!1,this._pitch=e,this._calcMatrices())},get altitude(){return this._altitude},set altitude(t){var e=Math.max(.75,t);this._altitude!==e&&(this._unmodified=!1,this._altitude=e,this._calcMatrices())},get zoom(){return this._zoom},set zoom(t){var e=Math.min(Math.max(t,this.minZoom),this.maxZoom);this._zoom!==e&&(this._unmodified=!1,this._zoom=e,this.scale=this.zoomScale(e),this.tileZoom=Math.floor(e),this.zoomFraction=e-this.tileZoom,this._calcMatrices(),this._constrain())},get center(){return this._center},set center(t){t.lat===this._center.lat&&t.lng===this._center.lng||(this._unmodified=!1,this._center=t,this._calcMatrices(),this._constrain())},coveringZoomLevel:function(t){return(t.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/t.tileSize))},coveringTiles:function(t){var e=this.coveringZoomLevel(t),r=e;if(e<t.minzoom)return[];e>t.maxzoom&&(e=t.maxzoom);var n=this,i=n.locationCoordinate(n.center)._zoomTo(e),o=new a(i.column-.5,i.row-.5);return u.cover(e,[n.pointCoordinate(new a(0,0))._zoomTo(e),n.pointCoordinate(new a(n.width,0))._zoomTo(e),n.pointCoordinate(new a(n.width,n.height))._zoomTo(e),n.pointCoordinate(new a(0,n.height))._zoomTo(e)],t.reparseOverscaled?r:e).sort(function(t,e){return o.dist(t)-o.dist(e)})},resize:function(t,e){this.width=t,this.height=e,this.pixelsToGLUnits=[2/t,-2/e],this._calcMatrices(),this._constrain()},get unmodified(){return this._unmodified},zoomScale:function(t){return Math.pow(2,t)},scaleZoom:function(t){return Math.log(t)/Math.LN2},project:function(t,e){return new a(this.lngX(t.lng,e),this.latY(t.lat,e))},unproject:function(t,e){return new i(this.xLng(t.x,e),this.yLat(t.y,e))},get x(){return this.lngX(this.center.lng)},get y(){return this.latY(this.center.lat)},get point(){return new a(this.x,this.y)},lngX:function(t,e){return(180+t)*(e||this.worldSize)/360},latY:function(t,e){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t*Math.PI/360)))*(e||this.worldSize)/360},xLng:function(t,e){return 360*t/(e||this.worldSize)-180},yLat:function(t,e){var r=180-360*t/(e||this.worldSize);return 360/Math.PI*Math.atan(Math.exp(r*Math.PI/180))-90},panBy:function(t){var e=this.centerPoint._add(t);this.center=this.pointLocation(e)},setLocationAtPoint:function(t,e){var r=this.locationCoordinate(t),n=this.pointCoordinate(e),i=this.pointCoordinate(this.centerPoint),a=n._sub(r);this._unmodified=!1,this.center=this.coordinateLocation(i._sub(a))},locationPoint:function(t){return this.coordinatePoint(this.locationCoordinate(t))},pointLocation:function(t){return this.coordinateLocation(this.pointCoordinate(t))},locationCoordinate:function(t){var e=this.zoomScale(this.tileZoom)/this.worldSize,r=i.convert(t);return new o(this.lngX(r.lng)*e,this.latY(r.lat)*e,this.tileZoom)},coordinateLocation:function(t){var e=this.zoomScale(t.zoom);return new i(this.xLng(t.column,e),this.yLat(t.row,e))},pointCoordinate:function(t){var e=[t.x,t.y,0,1],r=[t.x,t.y,1,1];f.transformMat4(e,e,this.pixelMatrixInverse),f.transformMat4(r,r,this.pixelMatrixInverse);var n=e[3],i=r[3],a=e[0]/n,s=r[0]/i,u=e[1]/n,c=r[1]/i,h=e[2]/n,d=r[2]/i,p=h===d?0:(0-h)/(d-h),m=this.worldSize/this.zoomScale(this.tileZoom);return new o(l(a,s,p)/m,l(u,c,p)/m,this.tileZoom)},coordinatePoint:function(t){var e=this.worldSize/this.zoomScale(t.zoom),r=[t.column*e,t.row*e,0,1];return f.transformMat4(r,r,this.pixelMatrix),new a(r[0]/r[3],r[1]/r[3])},calculatePosMatrix:function(t,e){void 0===e&&(e=1/0),t instanceof u&&(t=t.toCoordinate(e));var r=Math.min(t.zoom,e),n=this.worldSize/Math.pow(2,r),i=new Float64Array(16);return d.identity(i),d.translate(i,i,[t.column*n,t.row*n,0]),d.scale(i,i,[n/c,n/c,1]),d.multiply(i,this.projMatrix,i),new Float32Array(i)},_constrain:function(){if(this.center&&this.width&&this.height&&!this._constraining){this._constraining=!0;var t,e,r,n,i,o,s,l,u=this.size,c=this._unmodified;this.latRange&&(t=this.latY(this.latRange[1]),e=this.latY(this.latRange[0]),i=e-t<u.y?u.y/(e-t):0),this.lngRange&&(r=this.lngX(this.lngRange[0]),n=this.lngX(this.lngRange[1]),o=n-r<u.x?u.x/(n-r):0);var h=Math.max(o||0,i||0);if(h)return this.center=this.unproject(new a(o?(n+r)/2:this.x,i?(e+t)/2:this.y)),this.zoom+=this.scaleZoom(h),this._unmodified=c,void(this._constraining=!1);if(this.latRange){var f=this.y,d=u.y/2;f-d<t&&(l=t+d),f+d>e&&(l=e-d)}if(this.lngRange){var p=this.x,m=u.x/2;p-m<r&&(s=r+m),p+m>n&&(s=n-m)}void 0===s&&void 0===l||(this.center=this.unproject(new a(void 0!==s?s:this.x,void 0!==l?l:this.y))),this._unmodified=c,this._constraining=!1}},_calcMatrices:function(){if(this.height){var t=Math.atan(.5/this.altitude),e=Math.sin(t)*this.altitude/Math.sin(Math.PI/2-this._pitch-t),r=Math.cos(Math.PI/2-this._pitch)*e+this.altitude,n=new Float64Array(16);if(d.perspective(n,2*Math.atan(this.height/2/this.altitude),this.width/this.height,.1,r),d.translate(n,n,[0,0,-this.altitude]),d.scale(n,n,[1,-1,1/this.height]),d.rotateX(n,n,this._pitch),d.rotateZ(n,n,this.angle),d.translate(n,n,[-this.x,-this.y,0]),this.projMatrix=n,n=d.create(),d.scale(n,n,[this.width/2,-this.height/2,1]),d.translate(n,n,[1,-1,0]),this.pixelMatrix=d.multiply(new Float64Array(16),n,this.projMatrix),!(n=d.invert(new Float64Array(16),this.pixelMatrix)))throw new Error(\"failed to invert matrix\");this.pixelMatrixInverse=n}}}},{\"../data/bucket\":329,\"../source/tile_coord\":369,\"../util/interpolate\":436,\"../util/util\":442,\"./coordinate\":338,\"./lng_lat\":339,\"gl-matrix\":193,\"point-geometry\":484}],342:[function(t,e,r){\"use strict\";var n={\" \":[16,[]],\"!\":[10,[5,21,5,7,-1,-1,5,2,4,1,5,0,6,1,5,2]],'\"':[16,[4,21,4,14,-1,-1,12,21,12,14]],\"#\":[21,[11,25,4,-7,-1,-1,17,25,10,-7,-1,-1,4,12,18,12,-1,-1,3,6,17,6]],$:[20,[8,25,8,-4,-1,-1,12,25,12,-4,-1,-1,17,18,15,20,12,21,8,21,5,20,3,18,3,16,4,14,5,13,7,12,13,10,15,9,16,8,17,6,17,3,15,1,12,0,8,0,5,1,3,3]],\"%\":[24,[21,21,3,0,-1,-1,8,21,10,19,10,17,9,15,7,14,5,14,3,16,3,18,4,20,6,21,8,21,10,20,13,19,16,19,19,20,21,21,-1,-1,17,7,15,6,14,4,14,2,16,0,18,0,20,1,21,3,21,5,19,7,17,7]],\"&\":[26,[23,12,23,13,22,14,21,14,20,13,19,11,17,6,15,3,13,1,11,0,7,0,5,1,4,2,3,4,3,6,4,8,5,9,12,13,13,14,14,16,14,18,13,20,11,21,9,20,8,18,8,16,9,13,11,10,16,3,18,1,20,0,22,0,23,1,23,2]],\"'\":[10,[5,19,4,20,5,21,6,20,6,18,5,16,4,15]],\"(\":[14,[11,25,9,23,7,20,5,16,4,11,4,7,5,2,7,-2,9,-5,11,-7]],\")\":[14,[3,25,5,23,7,20,9,16,10,11,10,7,9,2,7,-2,5,-5,3,-7]],\"*\":[16,[8,21,8,9,-1,-1,3,18,13,12,-1,-1,13,18,3,12]],\"+\":[26,[13,18,13,0,-1,-1,4,9,22,9]],\",\":[10,[6,1,5,0,4,1,5,2,6,1,6,-1,5,-3,4,-4]],\"-\":[26,[4,9,22,9]],\".\":[10,[5,2,4,1,5,0,6,1,5,2]],\"/\":[22,[20,25,2,-7]],0:[20,[9,21,6,20,4,17,3,12,3,9,4,4,6,1,9,0,11,0,14,1,16,4,17,9,17,12,16,17,14,20,11,21,9,21]],1:[20,[6,17,8,18,11,21,11,0]],2:[20,[4,16,4,17,5,19,6,20,8,21,12,21,14,20,15,19,16,17,16,15,15,13,13,10,3,0,17,0]],3:[20,[5,21,16,21,10,13,13,13,15,12,16,11,17,8,17,6,16,3,14,1,11,0,8,0,5,1,4,2,3,4]],4:[20,[13,21,3,7,18,7,-1,-1,13,21,13,0]],5:[20,[15,21,5,21,4,12,5,13,8,14,11,14,14,13,16,11,17,8,17,6,16,3,14,1,11,0,8,0,5,1,4,2,3,4]],6:[20,[16,18,15,20,12,21,10,21,7,20,5,17,4,12,4,7,5,3,7,1,10,0,11,0,14,1,16,3,17,6,17,7,16,10,14,12,11,13,10,13,7,12,5,10,4,7]],7:[20,[17,21,7,0,-1,-1,3,21,17,21]],8:[20,[8,21,5,20,4,18,4,16,5,14,7,13,11,12,14,11,16,9,17,7,17,4,16,2,15,1,12,0,8,0,5,1,4,2,3,4,3,7,4,9,6,11,9,12,13,13,15,14,16,16,16,18,15,20,12,21,8,21]],9:[20,[16,14,15,11,13,9,10,8,9,8,6,9,4,11,3,14,3,15,4,18,6,20,9,21,10,21,13,20,15,18,16,14,16,9,15,4,13,1,10,0,8,0,5,1,4,3]],\":\":[10,[5,14,4,13,5,12,6,13,5,14,-1,-1,5,2,4,1,5,0,6,1,5,2]],\";\":[10,[5,14,4,13,5,12,6,13,5,14,-1,-1,6,1,5,0,4,1,5,2,6,1,6,-1,5,-3,4,-4]],\"<\":[24,[20,18,4,9,20,0]],\"=\":[26,[4,12,22,12,-1,-1,4,6,22,6]],\">\":[24,[4,18,20,9,4,0]],\"?\":[18,[3,16,3,17,4,19,5,20,7,21,11,21,13,20,14,19,15,17,15,15,14,13,13,12,9,10,9,7,-1,-1,9,2,8,1,9,0,10,1,9,2]],\"@\":[27,[18,13,17,15,15,16,12,16,10,15,9,14,8,11,8,8,9,6,11,5,14,5,16,6,17,8,-1,-1,12,16,10,14,9,11,9,8,10,6,11,5,-1,-1,18,16,17,8,17,6,19,5,21,5,23,7,24,10,24,12,23,15,22,17,20,19,18,20,15,21,12,21,9,20,7,19,5,17,4,15,3,12,3,9,4,6,5,4,7,2,9,1,12,0,15,0,18,1,20,2,21,3,-1,-1,19,16,18,8,18,6,19,5]],A:[18,[9,21,1,0,-1,-1,9,21,17,0,-1,-1,4,7,14,7]],B:[21,[4,21,4,0,-1,-1,4,21,13,21,16,20,17,19,18,17,18,15,17,13,16,12,13,11,-1,-1,4,11,13,11,16,10,17,9,18,7,18,4,17,2,16,1,13,0,4,0]],C:[21,[18,16,17,18,15,20,13,21,9,21,7,20,5,18,4,16,3,13,3,8,4,5,5,3,7,1,9,0,13,0,15,1,17,3,18,5]],D:[21,[4,21,4,0,-1,-1,4,21,11,21,14,20,16,18,17,16,18,13,18,8,17,5,16,3,14,1,11,0,4,0]],E:[19,[4,21,4,0,-1,-1,4,21,17,21,-1,-1,4,11,12,11,-1,-1,4,0,17,0]],F:[18,[4,21,4,0,-1,-1,4,21,17,21,-1,-1,4,11,12,11]],G:[21,[18,16,17,18,15,20,13,21,9,21,7,20,5,18,4,16,3,13,3,8,4,5,5,3,7,1,9,0,13,0,15,1,17,3,18,5,18,8,-1,-1,13,8,18,8]],H:[22,[4,21,4,0,-1,-1,18,21,18,0,-1,-1,4,11,18,11]],I:[8,[4,21,4,0]],J:[16,[12,21,12,5,11,2,10,1,8,0,6,0,4,1,3,2,2,5,2,7]],K:[21,[4,21,4,0,-1,-1,18,21,4,7,-1,-1,9,12,18,0]],L:[17,[4,21,4,0,-1,-1,4,0,16,0]],M:[24,[4,21,4,0,-1,-1,4,21,12,0,-1,-1,20,21,12,0,-1,-1,20,21,20,0]],N:[22,[4,21,4,0,-1,-1,4,21,18,0,-1,-1,18,21,18,0]],O:[22,[9,21,7,20,5,18,4,16,3,13,3,8,4,5,5,3,7,1,9,0,13,0,15,1,17,3,18,5,19,8,19,13,18,16,17,18,15,20,13,21,9,21]],P:[21,[4,21,4,0,-1,-1,4,21,13,21,16,20,17,19,18,17,18,14,17,12,16,11,13,10,4,10]],Q:[22,[9,21,7,20,5,18,4,16,3,13,3,8,4,5,5,3,7,1,9,0,13,0,15,1,17,3,18,5,19,8,19,13,18,16,17,18,15,20,13,21,9,21,-1,-1,12,4,18,-2]],R:[21,[4,21,4,0,-1,-1,4,21,13,21,16,20,17,19,18,17,18,15,17,13,16,12,13,11,4,11,-1,-1,11,11,18,0]],S:[20,[17,18,15,20,12,21,8,21,5,20,3,18,3,16,4,14,5,13,7,12,13,10,15,9,16,8,17,6,17,3,15,1,12,0,8,0,5,1,3,3]],T:[16,[8,21,8,0,-1,-1,1,21,15,21]],U:[22,[4,21,4,6,5,3,7,1,10,0,12,0,15,1,17,3,18,6,18,21]],V:[18,[1,21,9,0,-1,-1,17,21,9,0]],W:[24,[2,21,7,0,-1,-1,12,21,7,0,-1,-1,12,21,17,0,-1,-1,22,21,17,0]],X:[20,[3,21,17,0,-1,-1,17,21,3,0]],Y:[18,[1,21,9,11,9,0,-1,-1,17,21,9,11]],Z:[20,[17,21,3,0,-1,-1,3,21,17,21,-1,-1,3,0,17,0]],\"[\":[14,[4,25,4,-7,-1,-1,5,25,5,-7,-1,-1,4,25,11,25,-1,-1,4,-7,11,-7]],\"\\\\\":[14,[0,21,14,-3]],\"]\":[14,[9,25,9,-7,-1,-1,10,25,10,-7,-1,-1,3,25,10,25,-1,-1,3,-7,10,-7]],\"^\":[16,[6,15,8,18,10,15,-1,-1,3,12,8,17,13,12,-1,-1,8,17,8,0]],_:[16,[0,-2,16,-2]],\"`\":[10,[6,21,5,20,4,18,4,16,5,15,6,16,5,17]],a:[19,[15,14,15,0,-1,-1,15,11,13,13,11,14,8,14,6,13,4,11,3,8,3,6,4,3,6,1,8,0,11,0,13,1,15,3]],b:[19,[4,21,4,0,-1,-1,4,11,6,13,8,14,11,14,13,13,15,11,16,8,16,6,15,3,13,1,11,0,8,0,6,1,4,3]],c:[18,[15,11,13,13,11,14,8,14,6,13,4,11,3,8,3,6,4,3,6,1,8,0,11,0,13,1,15,3]],d:[19,[15,21,15,0,-1,-1,15,11,13,13,11,14,8,14,6,13,4,11,3,8,3,6,4,3,6,1,8,0,11,0,13,1,15,3]],e:[18,[3,8,15,8,15,10,14,12,13,13,11,14,8,14,6,13,4,11,3,8,3,6,4,3,6,1,8,0,11,0,13,1,15,3]],f:[12,[10,21,8,21,6,20,5,17,5,0,-1,-1,2,14,9,14]],g:[19,[15,14,15,-2,14,-5,13,-6,11,-7,8,-7,6,-6,-1,-1,15,11,13,13,11,14,8,14,6,13,4,11,3,8,3,6,4,3,6,1,8,0,11,0,13,1,15,3]],h:[19,[4,21,4,0,-1,-1,4,10,7,13,9,14,12,14,14,13,15,10,15,0]],i:[8,[3,21,4,20,5,21,4,22,3,21,-1,-1,4,14,4,0]],j:[10,[5,21,6,20,7,21,6,22,5,21,-1,-1,6,14,6,-3,5,-6,3,-7,1,-7]],k:[17,[4,21,4,0,-1,-1,14,14,4,4,-1,-1,8,8,15,0]],l:[8,[4,21,4,0]],m:[30,[4,14,4,0,-1,-1,4,10,7,13,9,14,12,14,14,13,15,10,15,0,-1,-1,15,10,18,13,20,14,23,14,25,13,26,10,26,0]],n:[19,[4,14,4,0,-1,-1,4,10,7,13,9,14,12,14,14,13,15,10,15,0]],o:[19,[8,14,6,13,4,11,3,8,3,6,4,3,6,1,8,0,11,0,13,1,15,3,16,6,16,8,15,11,13,13,11,14,8,14]],p:[19,[4,14,4,-7,-1,-1,4,11,6,13,8,14,11,14,13,13,15,11,16,8,16,6,15,3,13,1,11,0,8,0,6,1,4,3]],q:[19,[15,14,15,-7,-1,-1,15,11,13,13,11,14,8,14,6,13,4,11,3,8,3,6,4,3,6,1,8,0,11,0,13,1,15,3]],r:[13,[4,14,4,0,-1,-1,4,8,5,11,7,13,9,14,12,14]],s:[17,[14,11,13,13,10,14,7,14,4,13,3,11,4,9,6,8,11,7,13,6,14,4,14,3,13,1,10,0,7,0,4,1,3,3]],t:[12,[5,21,5,4,6,1,8,0,10,0,-1,-1,2,14,9,14]],u:[19,[4,14,4,4,5,1,7,0,10,0,12,1,15,4,-1,-1,15,14,15,0]],v:[16,[2,14,8,0,-1,-1,14,14,8,0]],w:[22,[3,14,7,0,-1,-1,11,14,7,0,-1,-1,11,14,15,0,-1,-1,19,14,15,0]],x:[17,[3,14,14,0,-1,-1,14,14,3,0]],y:[16,[2,14,8,0,-1,-1,14,14,8,0,6,-4,4,-6,2,-7,1,-7]],z:[17,[14,14,3,0,-1,-1,3,14,14,14,-1,-1,3,0,14,0]],\"{\":[14,[9,25,7,24,6,23,5,21,5,19,6,17,7,16,8,14,8,12,6,10,-1,-1,7,24,6,22,6,20,7,18,8,17,9,15,9,13,8,11,4,9,8,7,9,5,9,3,8,1,7,0,6,-2,6,-4,7,-6,-1,-1,6,8,8,6,8,4,7,2,6,1,5,-1,5,-3,6,-5,7,-6,9,-7]],\"|\":[8,[4,25,4,-7]],\"}\":[14,[5,25,7,24,8,23,9,21,9,19,8,17,7,16,6,14,6,12,8,10,-1,-1,7,24,8,22,8,20,7,18,6,17,5,15,5,13,6,11,10,9,6,7,5,5,5,3,6,1,7,0,8,-2,8,-4,7,-6,-1,-1,8,8,6,6,6,4,7,2,8,1,9,-1,9,-3,8,-5,7,-6,5,-7]],\"~\":[24,[3,6,3,8,4,11,6,12,8,12,10,11,14,8,16,7,18,7,20,8,21,10,-1,-1,3,8,4,10,6,11,8,11,10,10,14,7,16,6,18,6,20,7,21,10,21,12]]};e.exports=function(t,e,r,i){i=i||1;var a,o,s,l,u,c,h,f,d=[];for(a=0,o=t.length;a<o;a++)if(u=n[t[a]]){for(f=null,s=0,l=u[1].length;s<l;s+=2)-1===u[1][s]&&-1===u[1][s+1]?f=null:(c=e+u[1][s]*i,h=r-u[1][s+1]*i,f&&d.push(f.x,f.y,c,h),f={x:c,y:h});e+=u[0]*i}return d}},{}],343:[function(t,e,r){\"use strict\";var n=e.exports={};n.version=t(\"../package.json\").version,n.Map=t(\"./ui/map\"),n.Control=t(\"./ui/control/control\"),n.Navigation=t(\"./ui/control/navigation\"),n.Geolocate=t(\"./ui/control/geolocate\"),n.Attribution=t(\"./ui/control/attribution\"),n.Popup=t(\"./ui/popup\"),n.Marker=t(\"./ui/marker\"),n.Style=t(\"./style/style\"),n.LngLat=t(\"./geo/lng_lat\"),n.LngLatBounds=t(\"./geo/lng_lat_bounds\"),n.Point=t(\"point-geometry\"),n.Evented=t(\"./util/evented\"),n.util=t(\"./util/util\"),n.supported=t(\"./util/browser\").supported;var i=t(\"./util/ajax\");n.util.getJSON=i.getJSON,n.util.getArrayBuffer=i.getArrayBuffer;var a=t(\"./util/config\");n.config=a,Object.defineProperty(n,\"accessToken\",{get:function(){return a.ACCESS_TOKEN},set:function(t){a.ACCESS_TOKEN=t}})},{\"../package.json\":444,\"./geo/lng_lat\":339,\"./geo/lng_lat_bounds\":340,\"./style/style\":378,\"./ui/control/attribution\":409,\"./ui/control/control\":410,\"./ui/control/geolocate\":411,\"./ui/control/navigation\":412,\"./ui/map\":421,\"./ui/marker\":422,\"./ui/popup\":423,\"./util/ajax\":425,\"./util/browser\":426,\"./util/config\":431,\"./util/evented\":434,\"./util/util\":442,\"point-geometry\":484}],344:[function(t,e,r){\"use strict\";var n=t(\"assert\");e.exports=function(t){for(var e={define:{},initialize:{}},r=0;r<t.length;r++){var i=t[r];n(\"u_\"===i.name.slice(0,2));var a=\"{precision} \"+(1===i.components?\"float\":\"vec\"+i.components);e.define[i.name.slice(2)]=\"uniform \"+a+\" \"+i.name+\";\\n\",e.initialize[i.name.slice(2)]=a+\" \"+i.name.slice(2)+\" = \"+i.name+\";\\n\"}return e}},{assert:47}],345:[function(t,e,r){\"use strict\";function n(t,e,r){var n,s=t.gl,l=t.transform,u=r.paint[\"background-color\"],c=r.paint[\"background-pattern\"],h=r.paint[\"background-opacity\"],f=c?t.spriteAtlas.getPosition(c.from,!0):null,d=c?t.spriteAtlas.getPosition(c.to,!0):null;if(t.setDepthSublayer(0),f&&d){if(t.isOpaquePass)return;n=t.useProgram(\"pattern\"),s.uniform1i(n.u_image,0),s.uniform2fv(n.u_pattern_tl_a,f.tl),s.uniform2fv(n.u_pattern_br_a,f.br),s.uniform2fv(n.u_pattern_tl_b,d.tl),s.uniform2fv(n.u_pattern_br_b,d.br),s.uniform1f(n.u_opacity,h),s.uniform1f(n.u_mix,c.t),s.uniform2fv(n.u_pattern_size_a,f.size),s.uniform2fv(n.u_pattern_size_b,d.size),s.uniform1f(n.u_scale_a,c.fromScale),s.uniform1f(n.u_scale_b,c.toScale),s.activeTexture(s.TEXTURE0),t.spriteAtlas.bind(s,!0),t.tileExtentPatternVAO.bind(s,n,t.tileExtentBuffer)}else{if(t.isOpaquePass!==(1===u[3]))return;var p=a([{name:\"u_color\",components:4},{name:\"u_opacity\",components:1}]);n=t.useProgram(\"fill\",[],p,p),s.uniform4fv(n.u_color,u),s.uniform1f(n.u_opacity,h),t.tileExtentVAO.bind(s,n,t.tileExtentBuffer)}s.disable(s.STENCIL_TEST);for(var m=l.coveringTiles({tileSize:o}),v=0;v<m.length;v++){var g=m[v];if(f&&d){var y={coord:g,tileSize:o};s.uniform1f(n.u_tile_units_to_pixels,1/i(y,1,t.transform.tileZoom));var b=y.tileSize*Math.pow(2,t.transform.tileZoom-y.coord.z),x=b*(y.coord.x+g.w*Math.pow(2,y.coord.z)),_=b*y.coord.y;s.uniform2f(n.u_pixel_coord_upper,x>>16,_>>16),s.uniform2f(n.u_pixel_coord_lower,65535&x,65535&_)}s.uniformMatrix4fv(n.u_matrix,!1,t.transform.calculatePosMatrix(g)),s.drawArrays(s.TRIANGLE_STRIP,0,t.tileExtentBuffer.length)}s.stencilMask(0),s.stencilFunc(s.EQUAL,128,128)}var i=t(\"../source/pixels_to_tile_units\"),a=t(\"./create_uniform_pragmas\"),o=512;e.exports=n},{\"../source/pixels_to_tile_units\":363,\"./create_uniform_pragmas\":344}],346:[function(t,e,r){\"use strict\";function n(t,e,r,n){if(!t.isOpaquePass){var a=t.gl;t.setDepthSublayer(0),t.depthMask(!1),a.disable(a.STENCIL_TEST);for(var o=0;o<n.length;o++){var s=n[o],l=e.getTile(s),u=l.getBucket(r);if(u){var c=u.bufferGroups.circle;if(c){var h=u.paintAttributes.circle[r.id],f=t.useProgram(\"circle\",h.defines,h.vertexPragmas,h.fragmentPragmas);\"map\"===r.paint[\"circle-pitch-scale\"]?(a.uniform1i(f.u_scale_with_map,!0),a.uniform2f(f.u_extrude_scale,t.transform.pixelsToGLUnits[0]*t.transform.altitude,t.transform.pixelsToGLUnits[1]*t.transform.altitude)):(a.uniform1i(f.u_scale_with_map,!1),a.uniform2fv(f.u_extrude_scale,t.transform.pixelsToGLUnits)),a.uniform1f(f.u_devicepixelratio,i.devicePixelRatio),a.uniformMatrix4fv(f.u_matrix,!1,t.translatePosMatrix(s.posMatrix,l,r.paint[\"circle-translate\"],r.paint[\"circle-translate-anchor\"])),u.setUniforms(a,\"circle\",f,r,{zoom:t.transform.zoom});for(var d=0;d<c.length;d++){var p=c[d];p.vaos[r.id].bind(a,f,p.layoutVertexBuffer,p.elementBuffer,p.paintVertexBuffers[r.id]),a.drawElements(a.TRIANGLES,3*p.elementBuffer.length,a.UNSIGNED_SHORT,0)}}}}}}var i=t(\"../util/browser\");e.exports=n},{\"../util/browser\":426}],347:[function(t,e,r){\"use strict\";function n(t,e,r,n){var i=t.gl;i.enable(i.STENCIL_TEST);for(var a=t.useProgram(\"collisionbox\"),o=0;o<n.length;o++){var s=n[o],l=e.getTile(s),u=l.getBucket(r);if(u){var c=u.bufferGroups.collisionBox;if(c&&c.length){var h=c[0];0!==h.layoutVertexBuffer.length&&(i.uniformMatrix4fv(a.u_matrix,!1,s.posMatrix),t.enableTileClippingMask(s),t.lineWidth(1),i.uniform1f(a.u_scale,Math.pow(2,t.transform.zoom-l.coord.z)),i.uniform1f(a.u_zoom,10*t.transform.zoom),i.uniform1f(a.u_maxzoom,10*(l.coord.z+1)),h.vaos[r.id].bind(i,a,h.layoutVertexBuffer),i.drawArrays(i.LINES,0,h.layoutVertexBuffer.length))}}}}e.exports=n},{}],348:[function(t,e,r){\"use strict\";function n(t,e,r){if(!t.isOpaquePass&&t.options.debug)for(var n=0;n<r.length;n++)i(t,e,r[n])}function i(t,e,r){var n=t.gl;n.disable(n.STENCIL_TEST),t.lineWidth(1*o.devicePixelRatio);var i=r.posMatrix,h=t.useProgram(\"debug\");n.uniformMatrix4fv(h.u_matrix,!1,i),n.uniform4f(h.u_color,1,0,0,1),t.debugVAO.bind(n,h,t.debugBuffer),n.drawArrays(n.LINE_STRIP,0,t.debugBuffer.length);for(var f=a(r.toString(),50,200,5),d=new t.PosArray,p=0;p<f.length;p+=2)d.emplaceBack(f[p],f[p+1]);var m=new u(d.serialize(),t.PosArray.serialize(),u.BufferType.VERTEX);(new c).bind(n,h,m),n.uniform4f(h.u_color,1,1,1,1);for(var v=e.getTile(r).tileSize,g=l/(Math.pow(2,t.transform.zoom-r.z)*v),y=[[-1,-1],[-1,1],[1,-1],[1,1]],b=0;b<y.length;b++){var x=y[b];n.uniformMatrix4fv(h.u_matrix,!1,s.translate([],i,[g*x[0],g*x[1],0])),n.drawArrays(n.LINES,0,m.length)}n.uniform4f(h.u_color,0,0,0,1),n.uniformMatrix4fv(h.u_matrix,!1,i),n.drawArrays(n.LINES,0,m.length)}var a=t(\"../lib/debugtext\"),o=t(\"../util/browser\"),s=t(\"gl-matrix\").mat4,l=t(\"../data/bucket\").EXTENT,u=t(\"../data/buffer\"),c=t(\"./vertex_array_object\");e.exports=n},{\"../data/bucket\":329,\"../data/buffer\":334,\"../lib/debugtext\":342,\"../util/browser\":426,\"./vertex_array_object\":357,\"gl-matrix\":193}],349:[function(t,e,r){\"use strict\";function n(t,e,r,n){var o=t.gl;o.enable(o.STENCIL_TEST);var s;if(s=!r.paint[\"fill-pattern\"]&&(r.isPaintValueFeatureConstant(\"fill-color\")&&r.isPaintValueFeatureConstant(\"fill-opacity\")&&1===r.paint[\"fill-color\"][3]&&1===r.paint[\"fill-opacity\"]),t.isOpaquePass===s){t.setDepthSublayer(1);for(var l=0;l<n.length;l++)i(t,e,r,n[l])}if(!t.isOpaquePass&&r.paint[\"fill-antialias\"]){t.lineWidth(2),t.depthMask(!1);var u=r.getPaintProperty(\"fill-outline-color\");(u||!r.paint[\"fill-pattern\"])&&u?t.setDepthSublayer(2):t.setDepthSublayer(0);for(var c=0;c<n.length;c++)a(t,e,r,n[c])}}function i(t,e,r,n){var i=e.getTile(n),a=i.getBucket(r);if(a){var s=a.bufferGroups.fill;if(s){var l,u=t.gl,c=r.paint[\"fill-pattern\"];if(c)l=t.useProgram(\"pattern\"),o(c,r.paint[\"fill-opacity\"],i,n,t,l),u.activeTexture(u.TEXTURE0),t.spriteAtlas.bind(u,!0);else{var h=a.paintAttributes.fill[r.id];l=t.useProgram(\"fill\",h.defines,h.vertexPragmas,h.fragmentPragmas),a.setUniforms(u,\"fill\",l,r,{zoom:t.transform.zoom})}u.uniformMatrix4fv(l.u_matrix,!1,t.translatePosMatrix(n.posMatrix,i,r.paint[\"fill-translate\"],r.paint[\"fill-translate-anchor\"])),t.enableTileClippingMask(n);for(var f=0;f<s.length;f++){var d=s[f];d.vaos[r.id].bind(u,l,d.layoutVertexBuffer,d.elementBuffer,d.paintVertexBuffers[r.id]),u.drawElements(u.TRIANGLES,d.elementBuffer.length,u.UNSIGNED_SHORT,0)}}}}function a(t,e,r,n){var i=e.getTile(n),a=i.getBucket(r);if(a){var s,l=t.gl,u=a.bufferGroups.fill,c=r.paint[\"fill-pattern\"],h=r.paint[\"fill-opacity\"],f=r.getPaintProperty(\"fill-outline-color\");if(c&&!f)s=t.useProgram(\"outlinepattern\"),l.uniform2f(s.u_world,l.drawingBufferWidth,l.drawingBufferHeight);else{var d=a.paintAttributes.fill[r.id];s=t.useProgram(\"outline\",d.defines,d.vertexPragmas,d.fragmentPragmas),l.uniform2f(s.u_world,l.drawingBufferWidth,l.drawingBufferHeight),l.uniform1f(s.u_opacity,h),a.setUniforms(l,\"fill\",s,r,{zoom:t.transform.zoom})}l.uniformMatrix4fv(s.u_matrix,!1,t.translatePosMatrix(n.posMatrix,i,r.paint[\"fill-translate\"],r.paint[\"fill-translate-anchor\"])),c&&o(c,h,i,n,t,s),t.enableTileClippingMask(n);for(var p=0;p<u.length;p++){var m=u[p];m.secondVaos[r.id].bind(l,s,m.layoutVertexBuffer,m.elementBuffer2,m.paintVertexBuffers[r.id]),l.drawElements(l.LINES,2*m.elementBuffer2.length,l.UNSIGNED_SHORT,0)}}}function o(t,e,r,n,i,a){var o=i.gl,l=i.spriteAtlas.getPosition(t.from,!0),u=i.spriteAtlas.getPosition(t.to,!0);if(l&&u){o.uniform1i(a.u_image,0),o.uniform2fv(a.u_pattern_tl_a,l.tl),o.uniform2fv(a.u_pattern_br_a,l.br),o.uniform2fv(a.u_pattern_tl_b,u.tl),o.uniform2fv(a.u_pattern_br_b,u.br),o.uniform1f(a.u_opacity,e),o.uniform1f(a.u_mix,t.t),o.uniform1f(a.u_tile_units_to_pixels,1/s(r,1,i.transform.tileZoom)),o.uniform2fv(a.u_pattern_size_a,l.size),o.uniform2fv(a.u_pattern_size_b,u.size),o.uniform1f(a.u_scale_a,t.fromScale),o.uniform1f(a.u_scale_b,t.toScale);var c=r.tileSize*Math.pow(2,i.transform.tileZoom-r.coord.z),h=c*(r.coord.x+n.w*Math.pow(2,r.coord.z)),f=c*r.coord.y;o.uniform2f(a.u_pixel_coord_upper,h>>16,f>>16),o.uniform2f(a.u_pixel_coord_lower,65535&h,65535&f),o.activeTexture(o.TEXTURE0),i.spriteAtlas.bind(o,!0)}}var s=t(\"../source/pixels_to_tile_units\");e.exports=n},{\"../source/pixels_to_tile_units\":363}],350:[function(t,e,r){\"use strict\";var n=t(\"../util/browser\"),i=t(\"gl-matrix\").mat2,a=t(\"../source/pixels_to_tile_units\");e.exports=function(t,e,r,o){if(!t.isOpaquePass){t.setDepthSublayer(0),t.depthMask(!1);var s=t.gl;if(s.enable(s.STENCIL_TEST),!(r.paint[\"line-width\"]<=0)){var l=1/n.devicePixelRatio,u=r.paint[\"line-blur\"]+l,c=r.paint[\"line-color\"],h=t.transform,f=i.create();i.scale(f,f,[1,Math.cos(h._pitch)]),i.rotate(f,f,t.transform.angle);var d,p,m,v,g,y=Math.sqrt(h.height*h.height/4*(1+h.altitude*h.altitude)),b=h.height/2*Math.tan(h._pitch),x=(y+b)/y-1,_=r.paint[\"line-dasharray\"],w=r.paint[\"line-pattern\"];if(_)d=t.useProgram(\"linesdfpattern\"),s.uniform1f(d.u_linewidth,r.paint[\"line-width\"]/2),s.uniform1f(d.u_gapwidth,r.paint[\"line-gap-width\"]/2),s.uniform1f(d.u_antialiasing,l/2),s.uniform1f(d.u_blur,u),s.uniform4fv(d.u_color,c),s.uniform1f(d.u_opacity,r.paint[\"line-opacity\"]),p=t.lineAtlas.getDash(_.from,\"round\"===r.layout[\"line-cap\"]),m=t.lineAtlas.getDash(_.to,\"round\"===r.layout[\"line-cap\"]),s.uniform1i(d.u_image,0),s.activeTexture(s.TEXTURE0),t.lineAtlas.bind(s),s.uniform1f(d.u_tex_y_a,p.y),s.uniform1f(d.u_tex_y_b,m.y),s.uniform1f(d.u_mix,_.t),s.uniform1f(d.u_extra,x),s.uniform1f(d.u_offset,-r.paint[\"line-offset\"]),s.uniformMatrix2fv(d.u_antialiasingmatrix,!1,f);else if(w){if(v=t.spriteAtlas.getPosition(w.from,!0),g=t.spriteAtlas.getPosition(w.to,!0),!v||!g)return;d=t.useProgram(\"linepattern\"),s.uniform1i(d.u_image,0),s.activeTexture(s.TEXTURE0),t.spriteAtlas.bind(s,!0),s.uniform1f(d.u_linewidth,r.paint[\"line-width\"]/2),s.uniform1f(d.u_gapwidth,r.paint[\"line-gap-width\"]/2),s.uniform1f(d.u_antialiasing,l/2),s.uniform1f(d.u_blur,u),s.uniform2fv(d.u_pattern_tl_a,v.tl),s.uniform2fv(d.u_pattern_br_a,v.br),s.uniform2fv(d.u_pattern_tl_b,g.tl),s.uniform2fv(d.u_pattern_br_b,g.br),s.uniform1f(d.u_fade,w.t),s.uniform1f(d.u_opacity,r.paint[\"line-opacity\"]),s.uniform1f(d.u_extra,x),s.uniform1f(d.u_offset,-r.paint[\"line-offset\"]),s.uniformMatrix2fv(d.u_antialiasingmatrix,!1,f)}else d=t.useProgram(\"line\"),s.uniform1f(d.u_linewidth,r.paint[\"line-width\"]/2),s.uniform1f(d.u_gapwidth,r.paint[\"line-gap-width\"]/2),s.uniform1f(d.u_antialiasing,l/2),s.uniform1f(d.u_blur,u),s.uniform1f(d.u_extra,x),s.uniform1f(d.u_offset,-r.paint[\"line-offset\"]),s.uniformMatrix2fv(d.u_antialiasingmatrix,!1,f),s.uniform4fv(d.u_color,c),s.uniform1f(d.u_opacity,r.paint[\"line-opacity\"]);for(var M=0;M<o.length;M++){var k=o[M],A=e.getTile(k),T=A.getBucket(r);if(T){var S=T.bufferGroups.line;if(S){t.enableTileClippingMask(k);var E=t.translatePosMatrix(k.posMatrix,A,r.paint[\"line-translate\"],r.paint[\"line-translate-anchor\"]);s.uniformMatrix4fv(d.u_matrix,!1,E);var L=1/a(A,1,t.transform.zoom);if(_){var C=p.width*_.fromScale,I=m.width*_.toScale,z=[1/a(A,C,t.transform.tileZoom),-p.height/2],D=[1/a(A,I,t.transform.tileZoom),-m.height/2],P=t.lineAtlas.width/(256*Math.min(C,I)*n.devicePixelRatio)/2;s.uniform1f(d.u_ratio,L),s.uniform2fv(d.u_patternscale_a,z),s.uniform2fv(d.u_patternscale_b,D),s.uniform1f(d.u_sdfgamma,P)}else w?(s.uniform1f(d.u_ratio,L),s.uniform2fv(d.u_pattern_size_a,[a(A,v.size[0]*w.fromScale,t.transform.tileZoom),g.size[1]]),s.uniform2fv(d.u_pattern_size_b,[a(A,g.size[0]*w.toScale,t.transform.tileZoom),g.size[1]])):s.uniform1f(d.u_ratio,L);for(var O=0;O<S.length;O++){var R=S[O];R.vaos[r.id].bind(s,d,R.layoutVertexBuffer,R.elementBuffer),s.drawElements(s.TRIANGLES,3*R.elementBuffer.length,s.UNSIGNED_SHORT,0)}}}}}}}},{\"../source/pixels_to_tile_units\":363,\"../util/browser\":426,\"gl-matrix\":193}],351:[function(t,e,r){\"use strict\";function n(t,e,r,n){if(!t.isOpaquePass){var a=t.gl;a.enable(a.DEPTH_TEST),t.depthMask(!0),a.depthFunc(a.LESS);for(var o=n.length&&n[0].z,s=0;s<n.length;s++){var l=n[s];t.setDepthSublayer(l.z-o),i(t,e,r,l)}a.depthFunc(a.LEQUAL)}}function i(t,e,r,n){var i=t.gl;i.disable(i.STENCIL_TEST);var u=e.getTile(n),c=t.transform.calculatePosMatrix(n,e.maxzoom),h=t.useProgram(\"raster\");i.uniformMatrix4fv(h.u_matrix,!1,c),i.uniform1f(h.u_brightness_low,r.paint[\"raster-brightness-min\"]),i.uniform1f(h.u_brightness_high,r.paint[\"raster-brightness-max\"]),i.uniform1f(h.u_saturation_factor,s(r.paint[\"raster-saturation\"])),i.uniform1f(h.u_contrast_factor,o(r.paint[\"raster-contrast\"])),i.uniform3fv(h.u_spin_weights,a(r.paint[\"raster-hue-rotate\"]));var f,d,p=u.source&&u.source.findLoadedParent(n,0,{}),m=l(u,p,r,t.transform);i.activeTexture(i.TEXTURE0),i.bindTexture(i.TEXTURE_2D,u.texture),i.activeTexture(i.TEXTURE1),p?(i.bindTexture(i.TEXTURE_2D,p.texture),f=Math.pow(2,p.coord.z-u.coord.z),d=[u.coord.x*f%1,u.coord.y*f%1]):(i.bindTexture(i.TEXTURE_2D,u.texture),m[1]=0),i.uniform2fv(h.u_tl_parent,d||[0,0]),i.uniform1f(h.u_scale_parent,f||1),i.uniform1f(h.u_buffer_scale,1),i.uniform1f(h.u_opacity0,m[0]),i.uniform1f(h.u_opacity1,m[1]),i.uniform1i(h.u_image0,0),i.uniform1i(h.u_image1,1);var v=u.boundsBuffer||t.rasterBoundsBuffer;(u.boundsVAO||t.rasterBoundsVAO).bind(i,h,v),i.drawArrays(i.TRIANGLE_STRIP,0,v.length)}function a(t){t*=Math.PI/180;var e=Math.sin(t),r=Math.cos(t);return[(2*r+1)/3,(-Math.sqrt(3)*e-r+1)/3,(Math.sqrt(3)*e-r+1)/3]}function o(t){return t>0?1/(1-t):1+t}function s(t){return t>0?1-1/(1.001-t):-t}function l(t,e,r,n){var i=[1,0],a=r.paint[\"raster-fade-duration\"];if(t.source&&a>0){var o=(new Date).getTime(),s=(o-t.timeAdded)/a,l=e?(o-e.timeAdded)/a:-1,c=n.coveringZoomLevel(t.source),h=!!e&&Math.abs(e.coord.z-c)>Math.abs(t.coord.z-c);!e||h?(i[0]=u.clamp(s,0,1),i[1]=1-i[0]):(i[0]=u.clamp(1-l,0,1),i[1]=1-i[0])}var f=r.paint[\"raster-opacity\"];return i[0]*=f,i[1]*=f,i}var u=t(\"../util/util\"),c=t(\"../util/struct_array\");e.exports=n,n.RasterBoundsArray=new c({members:[{name:\"a_pos\",type:\"Int16\",components:2},{name:\"a_texture_pos\",type:\"Int16\",components:2}]})},{\"../util/struct_array\":440,\"../util/util\":442}],352:[function(t,e,r){\"use strict\";function n(t,e,r,n){if(!t.isOpaquePass){var a=!(r.layout[\"text-allow-overlap\"]||r.layout[\"icon-allow-overlap\"]||r.layout[\"text-ignore-placement\"]||r.layout[\"icon-ignore-placement\"]),o=t.gl;a?o.disable(o.STENCIL_TEST):o.enable(o.STENCIL_TEST),t.setDepthSublayer(0),t.depthMask(!1),o.disable(o.DEPTH_TEST),i(t,e,r,n,!1,r.paint[\"icon-translate\"],r.paint[\"icon-translate-anchor\"],r.layout[\"icon-rotation-alignment\"],r.layout[\"icon-rotation-alignment\"],r.layout[\"icon-size\"],r.paint[\"icon-halo-width\"],r.paint[\"icon-halo-color\"],r.paint[\"icon-halo-blur\"],r.paint[\"icon-opacity\"],r.paint[\"icon-color\"]),\n", "i(t,e,r,n,!0,r.paint[\"text-translate\"],r.paint[\"text-translate-anchor\"],r.layout[\"text-rotation-alignment\"],r.layout[\"text-pitch-alignment\"],r.layout[\"text-size\"],r.paint[\"text-halo-width\"],r.paint[\"text-halo-color\"],r.paint[\"text-halo-blur\"],r.paint[\"text-opacity\"],r.paint[\"text-color\"]),o.enable(o.DEPTH_TEST),e.map.showCollisionBoxes&&s(t,e,r,n)}}function i(t,e,r,n,i,o,s,l,u,c,h,f,d,p,m){for(var v=0;v<n.length;v++){var g=e.getTile(n[v]),y=g.getBucket(r);if(y){var b=y.bufferGroups,x=i?b.glyph:b.icon;x.length&&(t.enableTileClippingMask(n[v]),a(t,r,n[v].posMatrix,g,y,x,i,i||y.sdfIcons,!i&&y.iconsNeedLinear,i?y.adjustedTextSize:y.adjustedIconSize,y.fontstack,o,s,l,u,c,h,f,d,p,m))}}}function a(t,e,r,n,i,a,s,u,c,h,f,d,p,m,v,g,y,b,x,_,w){var M,k,A,T=t.gl,S=t.transform,E=\"map\"===m,L=\"map\"===v,C=s?24:1,I=g/C;if(L?(k=l(n,1,t.transform.zoom)*I,A=1/Math.cos(S._pitch),M=[k,k]):(k=t.transform.altitude*I,A=1,M=[S.pixelsToGLUnits[0]*k,S.pixelsToGLUnits[1]*k]),s||t.style.sprite.loaded()){var z=t.useProgram(u?\"sdf\":\"icon\");if(T.uniformMatrix4fv(z.u_matrix,!1,t.translatePosMatrix(r,n,d,p)),T.uniform1i(z.u_rotate_with_map,E),T.uniform1i(z.u_pitch_with_map,L),T.uniform2fv(z.u_extrude_scale,M),T.activeTexture(T.TEXTURE0),T.uniform1i(z.u_texture,0),s){var D=f&&t.glyphSource.getGlyphAtlas(f);if(!D)return;D.updateTexture(T),T.uniform2f(z.u_texsize,D.width/4,D.height/4)}else{var P=t.options.rotating||t.options.zooming,O=1!==I||o.devicePixelRatio!==t.spriteAtlas.pixelRatio||c,R=L||t.transform.pitch;t.spriteAtlas.bind(T,u||P||O||R),T.uniform2f(z.u_texsize,t.spriteAtlas.width/4,t.spriteAtlas.height/4)}var F=Math.log(g/h)/Math.LN2||0;T.uniform1f(z.u_zoom,10*(t.transform.zoom-F)),T.activeTexture(T.TEXTURE1),t.frameHistory.bind(T),T.uniform1i(z.u_fadetexture,1);var j;if(u){var N=.105*C/g/o.devicePixelRatio;if(y){T.uniform1f(z.u_gamma,(1.19*x/I/8+N)*A),T.uniform4fv(z.u_color,b),T.uniform1f(z.u_opacity,_),T.uniform1f(z.u_buffer,(6-y/I)/8);for(var B=0;B<a.length;B++)j=a[B],j.vaos[e.id].bind(T,z,j.layoutVertexBuffer,j.elementBuffer),T.drawElements(T.TRIANGLES,3*j.elementBuffer.length,T.UNSIGNED_SHORT,0)}T.uniform1f(z.u_gamma,N*A),T.uniform4fv(z.u_color,w),T.uniform1f(z.u_opacity,_),T.uniform1f(z.u_buffer,.75),T.uniform1f(z.u_pitch,S.pitch/360*2*Math.PI),T.uniform1f(z.u_bearing,S.bearing/360*2*Math.PI),T.uniform1f(z.u_aspect_ratio,S.width/S.height);for(var U=0;U<a.length;U++)j=a[U],j.vaos[e.id].bind(T,z,j.layoutVertexBuffer,j.elementBuffer),T.drawElements(T.TRIANGLES,3*j.elementBuffer.length,T.UNSIGNED_SHORT,0)}else{T.uniform1f(z.u_opacity,_);for(var V=0;V<a.length;V++)j=a[V],j.vaos[e.id].bind(T,z,j.layoutVertexBuffer,j.elementBuffer),T.drawElements(T.TRIANGLES,3*j.elementBuffer.length,T.UNSIGNED_SHORT,0)}}}var o=t(\"../util/browser\"),s=t(\"./draw_collision_debug\"),l=t(\"../source/pixels_to_tile_units\");e.exports=n},{\"../source/pixels_to_tile_units\":363,\"../util/browser\":426,\"./draw_collision_debug\":347}],353:[function(t,e,r){\"use strict\";function n(){this.changeTimes=new Float64Array(256),this.changeOpacities=new Uint8Array(256),this.opacities=new Uint8ClampedArray(256),this.array=new Uint8Array(this.opacities.buffer),this.fadeDuration=300,this.previousZoom=0,this.firstFrame=!0}e.exports=n,n.prototype.record=function(t){var e=Date.now();this.firstFrame&&(e=0,this.firstFrame=!1),t=Math.floor(10*t);var r;if(t<this.previousZoom)for(r=t+1;r<=this.previousZoom;r++)this.changeTimes[r]=e,this.changeOpacities[r]=this.opacities[r];else for(r=t;r>this.previousZoom;r--)this.changeTimes[r]=e,this.changeOpacities[r]=this.opacities[r];for(r=0;r<256;r++){var n=e-this.changeTimes[r],i=n/this.fadeDuration*255;this.opacities[r]=r<=t?this.changeOpacities[r]+i:this.changeOpacities[r]-i}this.changed=!0,this.previousZoom=t},n.prototype.bind=function(t){this.texture?(t.bindTexture(t.TEXTURE_2D,this.texture),this.changed&&(t.texSubImage2D(t.TEXTURE_2D,0,0,0,256,1,t.ALPHA,t.UNSIGNED_BYTE,this.array),this.changed=!1)):(this.texture=t.createTexture(),t.bindTexture(t.TEXTURE_2D,this.texture),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.NEAREST),t.texImage2D(t.TEXTURE_2D,0,t.ALPHA,256,1,0,t.ALPHA,t.UNSIGNED_BYTE,this.array))}},{}],354:[function(t,e,r){\"use strict\";function n(t,e){this.width=t,this.height=e,this.nextRow=0,this.bytes=4,this.data=new Uint8Array(this.width*this.height*this.bytes),this.positions={}}var i=t(\"../util/util\");e.exports=n,n.prototype.setSprite=function(t){this.sprite=t},n.prototype.getDash=function(t,e){var r=t.join(\",\")+e;return this.positions[r]||(this.positions[r]=this.addDash(t,e)),this.positions[r]},n.prototype.addDash=function(t,e){var r=e?7:0,n=2*r+1;if(this.nextRow+n>this.height)return i.warnOnce(\"LineAtlas out of space\"),null;for(var a=0,o=0;o<t.length;o++)a+=t[o];for(var s=this.width/a,l=s/2,u=t.length%2==1,c=-r;c<=r;c++)for(var h=this.nextRow+r+c,f=this.width*h,d=u?-t[t.length-1]:0,p=t[0],m=1,v=0;v<this.width;v++){for(;p<v/s;)d=p,p+=t[m],u&&m===t.length-1&&(p+=t[0]),m++;var g,y=Math.abs(v-d*s),b=Math.abs(v-p*s),x=Math.min(y,b),_=m%2==1;if(e){var w=r?c/r*(l+1):0;if(_){var M=l-Math.abs(w);g=Math.sqrt(x*x+M*M)}else g=l-Math.sqrt(x*x+w*w)}else g=(_?1:-1)*x;this.data[3+4*(f+v)]=Math.max(0,Math.min(255,g+128))}var k={y:(this.nextRow+r+.5)/this.height,height:2*r/this.height,width:a};return this.nextRow+=n,this.dirty=!0,k},n.prototype.bind=function(t){this.texture?(t.bindTexture(t.TEXTURE_2D,this.texture),this.dirty&&(this.dirty=!1,t.texSubImage2D(t.TEXTURE_2D,0,0,0,this.width,this.height,t.RGBA,t.UNSIGNED_BYTE,this.data))):(this.texture=t.createTexture(),t.bindTexture(t.TEXTURE_2D,this.texture),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.REPEAT),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.REPEAT),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.LINEAR),t.texImage2D(t.TEXTURE_2D,0,t.RGBA,this.width,this.height,0,t.RGBA,t.UNSIGNED_BYTE,this.data))}},{\"../util/util\":442}],355:[function(t,e,r){\"use strict\";function n(t,e){this.gl=t,this.transform=e,this.reusableTextures={},this.preFbos={},this.frameHistory=new o,this.setup(),this.numSublayers=s.maxUnderzooming+s.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.lineWidthRange=t.getParameter(t.ALIASED_LINE_WIDTH_RANGE)}var i=t(\"../util/browser\"),a=t(\"gl-matrix\").mat4,o=t(\"./frame_history\"),s=t(\"../source/source_cache\"),l=t(\"../data/bucket\").EXTENT,u=t(\"../source/pixels_to_tile_units\"),c=t(\"../util/util\"),h=t(\"../util/struct_array\"),f=t(\"../data/buffer\"),d=t(\"./vertex_array_object\"),p=t(\"./draw_raster\").RasterBoundsArray,m=t(\"./create_uniform_pragmas\");e.exports=n,c.extend(n.prototype,t(\"./painter/use_program\")),n.prototype.resize=function(t,e){var r=this.gl;this.width=t*i.devicePixelRatio,this.height=e*i.devicePixelRatio,r.viewport(0,0,this.width,this.height)},n.prototype.setup=function(){var t=this.gl;t.verbose=!0,t.enable(t.BLEND),t.blendFunc(t.ONE,t.ONE_MINUS_SRC_ALPHA),t.enable(t.STENCIL_TEST),t.enable(t.DEPTH_TEST),t.depthFunc(t.LEQUAL),this._depthMask=!1,t.depthMask(!1);var e=this.PosArray=new h({members:[{name:\"a_pos\",type:\"Int16\",components:2}]}),r=new e;r.emplaceBack(0,0),r.emplaceBack(l,0),r.emplaceBack(0,l),r.emplaceBack(l,l),this.tileExtentBuffer=new f(r.serialize(),e.serialize(),f.BufferType.VERTEX),this.tileExtentVAO=new d,this.tileExtentPatternVAO=new d;var n=new e;n.emplaceBack(0,0),n.emplaceBack(l,0),n.emplaceBack(l,l),n.emplaceBack(0,l),n.emplaceBack(0,0),this.debugBuffer=new f(n.serialize(),e.serialize(),f.BufferType.VERTEX),this.debugVAO=new d;var i=new p;i.emplaceBack(0,0,0,0),i.emplaceBack(l,0,32767,0),i.emplaceBack(0,l,0,32767),i.emplaceBack(l,l,32767,32767),this.rasterBoundsBuffer=new f(i.serialize(),p.serialize(),f.BufferType.VERTEX),this.rasterBoundsVAO=new d},n.prototype.clearColor=function(){var t=this.gl;t.clearColor(0,0,0,0),t.clear(t.COLOR_BUFFER_BIT)},n.prototype.clearStencil=function(){var t=this.gl;t.clearStencil(0),t.stencilMask(255),t.clear(t.STENCIL_BUFFER_BIT)},n.prototype.clearDepth=function(){var t=this.gl;t.clearDepth(1),this.depthMask(!0),t.clear(t.DEPTH_BUFFER_BIT)},n.prototype._renderTileClippingMasks=function(t){var e=this.gl;e.colorMask(!1,!1,!1,!1),this.depthMask(!1),e.disable(e.DEPTH_TEST),e.enable(e.STENCIL_TEST),e.stencilMask(248),e.stencilOp(e.KEEP,e.KEEP,e.REPLACE);var r=1;this._tileClippingMaskIDs={};for(var n=0;n<t.length;n++){var i=t[n],a=this._tileClippingMaskIDs[i.id]=r++<<3;e.stencilFunc(e.ALWAYS,a,248);var o=m([{name:\"u_color\",components:4},{name:\"u_opacity\",components:1}]),s=this.useProgram(\"fill\",[],o,o);e.uniformMatrix4fv(s.u_matrix,!1,i.posMatrix),this.tileExtentVAO.bind(e,s,this.tileExtentBuffer),e.drawArrays(e.TRIANGLE_STRIP,0,this.tileExtentBuffer.length)}e.stencilMask(0),e.colorMask(!0,!0,!0,!0),this.depthMask(!0),e.enable(e.DEPTH_TEST)},n.prototype.enableTileClippingMask=function(t){var e=this.gl;e.stencilFunc(e.EQUAL,this._tileClippingMaskIDs[t.id],248)},n.prototype.prepareBuffers=function(){},n.prototype.bindDefaultFramebuffer=function(){var t=this.gl;t.bindFramebuffer(t.FRAMEBUFFER,null)};var v={symbol:t(\"./draw_symbol\"),circle:t(\"./draw_circle\"),line:t(\"./draw_line\"),fill:t(\"./draw_fill\"),raster:t(\"./draw_raster\"),background:t(\"./draw_background\"),debug:t(\"./draw_debug\")};n.prototype.render=function(t,e){this.style=t,this.options=e,this.lineAtlas=t.lineAtlas,this.spriteAtlas=t.spriteAtlas,this.spriteAtlas.setSprite(t.sprite),this.glyphSource=t.glyphSource,this.frameHistory.record(this.transform.zoom),this.prepareBuffers(),this.clearColor(),this.clearDepth(),this.showOverdrawInspector(e.showOverdrawInspector),this.depthRange=(t._order.length+2)*this.numSublayers*this.depthEpsilon,this.renderPass({isOpaquePass:!0}),this.renderPass({isOpaquePass:!1})},n.prototype.renderPass=function(t){var e=this.style._groups,r=t.isOpaquePass;this.currentLayer=r?this.style._order.length:-1;for(var n=0;n<e.length;n++){var i,a=e[r?e.length-1-n:n],o=this.style.sources[a.source],s=[];if(o){for(s=o.getVisibleCoordinates(),i=0;i<s.length;i++)s[i].posMatrix=this.transform.calculatePosMatrix(s[i],o.maxzoom);this.clearStencil(),o.prepare&&o.prepare(),o.isTileClipped&&this._renderTileClippingMasks(s)}for(r?(this._showOverdrawInspector||this.gl.disable(this.gl.BLEND),this.isOpaquePass=!0):(this.gl.enable(this.gl.BLEND),this.isOpaquePass=!1,s.reverse()),i=0;i<a.length;i++){var l=a[r?a.length-1-i:i];this.currentLayer+=r?-1:1,this.renderLayer(this,o,l,s)}o&&v.debug(this,o,s)}},n.prototype.depthMask=function(t){t!==this._depthMask&&(this._depthMask=t,this.gl.depthMask(t))},n.prototype.renderLayer=function(t,e,r,n){r.isHidden(this.transform.zoom)||(\"background\"===r.type||n.length)&&(this.id=r.id,v[r.type](t,e,r,n))},n.prototype.setDepthSublayer=function(t){var e=1-((1+this.currentLayer)*this.numSublayers+t)*this.depthEpsilon,r=e-1+this.depthRange;this.gl.depthRange(r,e)},n.prototype.translatePosMatrix=function(t,e,r,n){if(!r[0]&&!r[1])return t;if(\"viewport\"===n){var i=Math.sin(-this.transform.angle),o=Math.cos(-this.transform.angle);r=[r[0]*o-r[1]*i,r[0]*i+r[1]*o]}var s=[u(e,r[0],this.transform.zoom),u(e,r[1],this.transform.zoom),0],l=new Float32Array(16);return a.translate(l,t,s),l},n.prototype.saveTexture=function(t){var e=this.reusableTextures[t.size];e?e.push(t):this.reusableTextures[t.size]=[t]},n.prototype.getTexture=function(t){var e=this.reusableTextures[t];return e&&e.length>0?e.pop():null},n.prototype.lineWidth=function(t){this.gl.lineWidth(c.clamp(t,this.lineWidthRange[0],this.lineWidthRange[1]))},n.prototype.showOverdrawInspector=function(t){if(t||this._showOverdrawInspector){this._showOverdrawInspector=t;var e=this.gl;if(t){e.blendFunc(e.CONSTANT_COLOR,e.ONE);e.blendColor(1/8,1/8,1/8,0),e.clearColor(0,0,0,1),e.clear(e.COLOR_BUFFER_BIT)}else e.blendFunc(e.ONE,e.ONE_MINUS_SRC_ALPHA)}}},{\"../data/bucket\":329,\"../data/buffer\":334,\"../source/pixels_to_tile_units\":363,\"../source/source_cache\":367,\"../util/browser\":426,\"../util/struct_array\":440,\"../util/util\":442,\"./create_uniform_pragmas\":344,\"./draw_background\":345,\"./draw_circle\":346,\"./draw_debug\":348,\"./draw_fill\":349,\"./draw_line\":350,\"./draw_raster\":351,\"./draw_symbol\":352,\"./frame_history\":353,\"./painter/use_program\":356,\"./vertex_array_object\":357,\"gl-matrix\":193}],356:[function(t,e,r){\"use strict\";function n(t,e){return t.replace(/#pragma mapbox: ([\\w]+) ([\\w]+) ([\\w]+) ([\\w]+)/g,function(t,r,n,i,a){return e[r][a].replace(/{type}/g,i).replace(/{precision}/g,n)})}var i=t(\"assert\"),a=t(\"../../util/util\"),o=t(\"mapbox-gl-shaders\"),s=o.util;e.exports._createProgram=function(t,e,r,l){for(var u=this.gl,c=u.createProgram(),h=o[t],f=\"#define MAPBOX_GL_JS;\\n\",d=0;d<e.length;d++)f+=\"#define \"+e[d]+\";\\n\";var p=u.createShader(u.FRAGMENT_SHADER);u.shaderSource(p,n(f+h.fragmentSource,l)),u.compileShader(p),i(u.getShaderParameter(p,u.COMPILE_STATUS),u.getShaderInfoLog(p)),u.attachShader(c,p);var m=u.createShader(u.VERTEX_SHADER);u.shaderSource(m,n(f+s+h.vertexSource,r)),u.compileShader(m),i(u.getShaderParameter(m,u.COMPILE_STATUS),u.getShaderInfoLog(m)),u.attachShader(c,m),u.linkProgram(c),i(u.getProgramParameter(c,u.LINK_STATUS),u.getProgramInfoLog(c));for(var v={},g=u.getProgramParameter(c,u.ACTIVE_ATTRIBUTES),y=0;y<g;y++){var b=u.getActiveAttrib(c,y);v[b.name]=u.getAttribLocation(c,b.name)}for(var x={},_=u.getProgramParameter(c,u.ACTIVE_UNIFORMS),w=0;w<_;w++){var M=u.getActiveUniform(c,w);x[M.name]=u.getUniformLocation(c,M.name)}return a.extend({program:c,definition:h,attributes:v,numAttributes:g},v,x)},e.exports._createProgramCached=function(t,e,r,n){this.cache=this.cache||{};var i=JSON.stringify({name:t,defines:e,vertexPragmas:r,fragmentPragmas:n});return this.cache[i]||(this.cache[i]=this._createProgram(t,e,r,n)),this.cache[i]},e.exports.useProgram=function(t,e,r,n){var i=this.gl;e=e||[],this._showOverdrawInspector&&(e=e.concat(\"OVERDRAW_INSPECTOR\"));var a=this._createProgramCached(t,e,r,n);return this.currentProgram!==a&&(i.useProgram(a.program),this.currentProgram=a),a}},{\"../../util/util\":442,assert:47,\"mapbox-gl-shaders\":303}],357:[function(t,e,r){\"use strict\";function n(){this.boundProgram=null,this.boundVertexBuffer=null,this.boundVertexBuffer2=null,this.boundElementBuffer=null,this.vao=null}var i=t(\"assert\");e.exports=n,n.prototype.bind=function(t,e,r,n,i){void 0===t.extVertexArrayObject&&(t.extVertexArrayObject=t.getExtension(\"OES_vertex_array_object\"));var a=!this.vao||this.boundProgram!==e||this.boundVertexBuffer!==r||this.boundVertexBuffer2!==i||this.boundElementBuffer!==n;!t.extVertexArrayObject||a?this.freshBind(t,e,r,n,i):t.extVertexArrayObject.bindVertexArrayOES(this.vao)},n.prototype.freshBind=function(t,e,r,n,a){var o,s=e.numAttributes;if(t.extVertexArrayObject)this.vao&&this.destroy(t),this.vao=t.extVertexArrayObject.createVertexArrayOES(),t.extVertexArrayObject.bindVertexArrayOES(this.vao),o=0,this.boundProgram=e,this.boundVertexBuffer=r,this.boundVertexBuffer2=a,this.boundElementBuffer=n;else{o=t.currentNumAttributes||0;for(var l=s;l<o;l++)i(0!==l),t.disableVertexAttribArray(l)}for(var u=o;u<s;u++)t.enableVertexAttribArray(u);r.bind(t),r.setVertexAttribPointers(t,e),a&&(a.bind(t),a.setVertexAttribPointers(t,e)),n&&n.bind(t),t.currentNumAttributes=s},n.prototype.unbind=function(t){var e=t.extVertexArrayObject;e&&e.bindVertexArrayOES(null)},n.prototype.destroy=function(t){var e=t.extVertexArrayObject;e&&this.vao&&(e.deleteVertexArrayOES(this.vao),this.vao=null)}},{assert:47}],358:[function(t,e,r){\"use strict\";function n(t,e,r){e=e||{},this.id=t,this.dispatcher=r,this._data=e.data,void 0!==e.maxzoom&&(this.maxzoom=e.maxzoom),e.type&&(this.type=e.type);var n=s/this.tileSize;this.workerOptions=a.extend({source:this.id,cluster:e.cluster||!1,geojsonVtOptions:{buffer:(void 0!==e.buffer?e.buffer:128)*n,tolerance:(void 0!==e.tolerance?e.tolerance:.375)*n,extent:s,maxZoom:this.maxzoom},superclusterOptions:{maxZoom:Math.min(e.clusterMaxZoom,this.maxzoom-1)||this.maxzoom-1,extent:s,radius:(e.clusterRadius||50)*n,log:!1}},e.workerOptions),this._updateWorkerData(function(t){if(t)return void this.fire(\"error\",{error:t});this.fire(\"load\")}.bind(this))}var i=t(\"../util/evented\"),a=t(\"../util/util\"),o=t(\"resolve-url\"),s=t(\"../data/bucket\").EXTENT;e.exports=n,n.prototype=a.inherit(i,{type:\"geojson\",minzoom:0,maxzoom:18,tileSize:512,isTileClipped:!0,reparseOverscaled:!0,onAdd:function(t){this.map=t},setData:function(t){return this._data=t,this._updateWorkerData(function(t){if(t)return this.fire(\"error\",{error:t});this.fire(\"change\")}.bind(this)),this},_updateWorkerData:function(t){var e=a.extend({},this.workerOptions),r=this._data;\"string\"==typeof r?e.url=\"undefined\"!=typeof window?o(window.location.href,r):r:e.data=JSON.stringify(r),this.workerID=this.dispatcher.send(this.type+\".loadData\",e,function(e){this._loaded=!0,t(e)}.bind(this))},loadTile:function(t,e){var r=t.coord.z>this.maxzoom?Math.pow(2,t.coord.z-this.maxzoom):1,n={type:this.type,uid:t.uid,coord:t.coord,zoom:t.coord.z,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,overscaling:r,angle:this.map.transform.angle,pitch:this.map.transform.pitch,showCollisionBoxes:this.map.showCollisionBoxes};t.workerID=this.dispatcher.send(\"load tile\",n,function(r,n){if(t.unloadVectorData(this.map.painter),!t.aborted)return r?e(r):(t.loadVectorData(n,this.map.style),t.redoWhenDone&&(t.redoWhenDone=!1,t.redoPlacement(this)),e(null))}.bind(this),this.workerID)},abortTile:function(t){t.aborted=!0},unloadTile:function(t){t.unloadVectorData(this.map.painter),this.dispatcher.send(\"remove tile\",{uid:t.uid,source:this.id},function(){},t.workerID)},serialize:function(){return{type:this.type,data:this._data}}})},{\"../data/bucket\":329,\"../util/evented\":434,\"../util/util\":442,\"resolve-url\":501}],359:[function(t,e,r){\"use strict\";function n(t,e,r){r&&(this.loadGeoJSON=r),h.call(this,t,e)}var i=t(\"../util/util\"),a=t(\"../util/ajax\"),o=t(\"geojson-rewind\"),s=t(\"./geojson_wrapper\"),l=t(\"vt-pbf\"),u=t(\"supercluster\"),c=t(\"geojson-vt\"),h=t(\"./vector_tile_worker_source\");e.exports=n,n.prototype=i.inherit(h,{_geoJSONIndexes:{},loadVectorData:function(t,e){var r=t.source,n=t.coord;if(!this._geoJSONIndexes[r])return e(null,null);var i=this._geoJSONIndexes[r].getTile(Math.min(n.z,t.maxZoom),n.x,n.y);if(!i)return e(null,null);var a=new s(i.features);a.name=\"_geojsonTileLayer\";var o=l({layers:{_geojsonTileLayer:a}});0===o.byteOffset&&o.byteLength===o.buffer.byteLength||(o=new Uint8Array(o)),e(null,{tile:a,rawTileData:o.buffer})},loadData:function(t,e){var r=function(r,n){return r?e(r):\"object\"!=typeof n?e(new Error(\"Input data is not a valid GeoJSON object.\")):(o(n,!0),void this._indexData(n,t,function(r,n){if(r)return e(r);this._geoJSONIndexes[t.source]=n,e(null)}.bind(this)))}.bind(this);this.loadGeoJSON(t,r)},loadGeoJSON:function(t,e){if(t.url)a.getJSON(t.url,e);else{if(\"string\"!=typeof t.data)return e(new Error(\"Input data is not a valid GeoJSON object.\"));try{return e(null,JSON.parse(t.data))}catch(t){return e(new Error(\"Input data is not a valid GeoJSON object.\"))}}},_indexData:function(t,e,r){try{e.cluster?r(null,u(e.superclusterOptions).load(t.features)):r(null,c(t,e.geojsonVtOptions))}catch(t){return r(t)}}})},{\"../util/ajax\":425,\"../util/util\":442,\"./geojson_wrapper\":360,\"./vector_tile_worker_source\":371,\"geojson-rewind\":138,\"geojson-vt\":142,supercluster:529,\"vt-pbf\":556}],360:[function(t,e,r){\"use strict\";function n(t){this.features=t,this.length=t.length,this.extent=s}function i(t){if(this.type=t.type,1===t.type){this.rawGeometry=[];for(var e=0;e<t.geometry.length;e++)this.rawGeometry.push([t.geometry[e]])}else this.rawGeometry=t.geometry;this.properties=t.tags,this.extent=s}var a=t(\"point-geometry\"),o=t(\"vector-tile\").VectorTileFeature,s=t(\"../data/bucket\").EXTENT;e.exports=n,n.prototype.feature=function(t){return new i(this.features[t])},i.prototype.loadGeometry=function(){var t=this.rawGeometry;this.geometry=[];for(var e=0;e<t.length;e++){for(var r=t[e],n=[],i=0;i<r.length;i++)n.push(new a(r[i][0],r[i][1]));this.geometry.push(n)}return this.geometry},i.prototype.bbox=function(){this.geometry||this.loadGeometry();for(var t=this.geometry,e=1/0,r=-1/0,n=1/0,i=-1/0,a=0;a<t.length;a++)for(var o=t[a],s=0;s<o.length;s++){var l=o[s];e=Math.min(e,l.x),r=Math.max(r,l.x),n=Math.min(n,l.y),i=Math.max(i,l.y)}return[e,n,r,i]},i.prototype.toGeoJSON=o.prototype.toGeoJSON},{\"../data/bucket\":329,\"point-geometry\":484,\"vector-tile\":550}],361:[function(t,e,r){\"use strict\";function n(t,e,r){this.id=t,this.dispatcher=r,this.url=e.url,this.coordinates=e.coordinates,u.getImage(e.url,function(t,r){if(t)return this.fire(\"error\",{error:t});this.image=r,this.image.addEventListener(\"load\",function(){this.map._rerender()}.bind(this)),this._loaded=!0,this.fire(\"load\"),this.map&&this.setCoordinates(e.coordinates)}.bind(this))}var i=t(\"../util/util\"),a=t(\"./tile_coord\"),o=t(\"../geo/lng_lat\"),s=t(\"point-geometry\"),l=t(\"../util/evented\"),u=t(\"../util/ajax\"),c=t(\"../data/bucket\").EXTENT,h=t(\"../render/draw_raster\").RasterBoundsArray,f=t(\"../data/buffer\"),d=t(\"../render/vertex_array_object\");e.exports=n,n.prototype=i.inherit(l,{minzoom:0,maxzoom:22,tileSize:512,onAdd:function(t){this.map=t,this.image&&this.setCoordinates(this.coordinates)},setCoordinates:function(t){this.coordinates=t;var e=this.map,r=t.map(function(t){return e.transform.locationCoordinate(o.convert(t)).zoomTo(0)}),n=this.centerCoord=i.getCoordinatesCenter(r);return n.column=Math.round(n.column),n.row=Math.round(n.row),this.minzoom=this.maxzoom=n.zoom,this._coord=new a(n.zoom,n.column,n.row),this._tileCoords=r.map(function(t){var e=t.zoomTo(n.zoom);return new s(Math.round((e.column-n.column)*c),Math.round((e.row-n.row)*c))}),this.fire(\"change\"),this},_setTile:function(t){this._prepared=!1,this.tile=t;var e=new h;e.emplaceBack(this._tileCoords[0].x,this._tileCoords[0].y,0,0),e.emplaceBack(this._tileCoords[1].x,this._tileCoords[1].y,32767,0),e.emplaceBack(this._tileCoords[3].x,this._tileCoords[3].y,0,32767),e.emplaceBack(this._tileCoords[2].x,this._tileCoords[2].y,32767,32767),this.tile.buckets={},this.tile.boundsBuffer=new f(e.serialize(),h.serialize(),f.BufferType.VERTEX),this.tile.boundsVAO=new d,this.tile.state=\"loaded\"},prepare:function(){if(this._loaded&&this.image&&this.image.complete&&this.tile){var t=this.map.painter,e=t.gl;this._prepared?(e.bindTexture(e.TEXTURE_2D,this.tile.texture),e.texSubImage2D(e.TEXTURE_2D,0,0,0,e.RGBA,e.UNSIGNED_BYTE,this.image)):(this.tile.texture=e.createTexture(),e.bindTexture(e.TEXTURE_2D,this.tile.texture),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_MIN_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,this.image))}},loadTile:function(t,e){this._coord&&this._coord.toString()===t.coord.toString()?(this._setTile(t),e(null)):(t.state=\"errored\",e(null))},serialize:function(){return{type:\"image\",urls:this.url,coordinates:this.coordinates}}})},{\"../data/bucket\":329,\"../data/buffer\":334,\"../geo/lng_lat\":339,\"../render/draw_raster\":351,\"../render/vertex_array_object\":357,\"../util/ajax\":425,\"../util/evented\":434,\"../util/util\":442,\"./tile_coord\":369,\"point-geometry\":484}],362:[function(t,e,r){\"use strict\";var n=t(\"../util/util\"),i=t(\"../util/ajax\"),a=t(\"../util/browser\"),o=t(\"../util/mapbox\").normalizeSourceURL;e.exports=function(t,e){var r=function(t,r){if(t)return e(t);var i=n.pick(r,[\"tiles\",\"minzoom\",\"maxzoom\",\"attribution\"]);r.vector_layers&&(i.vectorLayers=r.vector_layers,i.vectorLayerIds=i.vectorLayers.map(function(t){return t.id})),e(null,i)};t.url?i.getJSON(o(t.url),r):a.frame(r.bind(null,null,t))}},{\"../util/ajax\":425,\"../util/browser\":426,\"../util/mapbox\":439,\"../util/util\":442}],363:[function(t,e,r){\"use strict\";var n=t(\"../data/bucket\");e.exports=function(t,e,r){return e*(n.EXTENT/(t.tileSize*Math.pow(2,r-t.coord.z)))}},{\"../data/bucket\":329}],364:[function(t,e,r){\"use strict\";function n(t,e){var r=t.coord,n=e.coord;return r.z-n.z||r.y-n.y||r.w-n.w||r.x-n.x}function i(t){for(var e=t[0]||{},r=1;r<t.length;r++){var n=t[r];for(var i in n){var a=n[i],o=e[i];if(void 0===o)o=e[i]=a;else for(var s=0;s<a.length;s++)o.push(a[s])}}return e}var a=t(\"./tile_coord\");r.rendered=function(t,e,r,a,o,s){var l=t.tilesIn(r);l.sort(n);for(var u=[],c=0;c<l.length;c++){var h=l[c];h.tile.featureIndex&&u.push(h.tile.featureIndex.query({queryGeometry:h.queryGeometry,scale:h.scale,tileSize:h.tile.tileSize,bearing:s,params:a},e))}return i(u)},r.source=function(t,e){for(var r=t.getRenderableIds().map(function(e){return t.getTileByID(e)}),n=[],i={},o=0;o<r.length;o++){var s=r[o],l=new a(Math.min(s.sourceMaxZoom,s.coord.z),s.coord.x,s.coord.y,0).id;i[l]||(i[l]=!0,s.querySourceFeatures(n,e))}return n}},{\"./tile_coord\":369}],365:[function(t,e,r){\"use strict\";function n(t,e,r){this.id=t,this.dispatcher=r,i.extend(this,i.pick(e,[\"url\",\"scheme\",\"tileSize\"])),s(e,function(t,e){if(t)return this.fire(\"error\",t);i.extend(this,e),this.fire(\"load\")}.bind(this))}var i=t(\"../util/util\"),a=t(\"../util/ajax\"),o=t(\"../util/evented\"),s=t(\"./load_tilejson\"),l=t(\"../util/mapbox\").normalizeTileURL;e.exports=n,n.prototype=i.inherit(o,{minzoom:0,maxzoom:22,roundZoom:!0,scheme:\"xyz\",tileSize:512,_loaded:!1,onAdd:function(t){this.map=t},serialize:function(){return{type:\"raster\",url:this.url,tileSize:this.tileSize}},loadTile:function(t,e){function r(r,n){if(delete t.request,!t.aborted){if(r)return e(r);var i=this.map.painter.gl;t.texture=this.map.painter.getTexture(n.width),t.texture?(i.bindTexture(i.TEXTURE_2D,t.texture),i.texSubImage2D(i.TEXTURE_2D,0,0,0,i.RGBA,i.UNSIGNED_BYTE,n)):(t.texture=i.createTexture(),i.bindTexture(i.TEXTURE_2D,t.texture),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MIN_FILTER,i.LINEAR_MIPMAP_NEAREST),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MAG_FILTER,i.LINEAR),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_S,i.CLAMP_TO_EDGE),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_T,i.CLAMP_TO_EDGE),i.pixelStorei(i.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0),i.texImage2D(i.TEXTURE_2D,0,i.RGBA,i.RGBA,i.UNSIGNED_BYTE,n),t.texture.size=n.width),i.generateMipmap(i.TEXTURE_2D),this.map.animationLoop.set(this.map.style.rasterFadeDuration),t.state=\"loaded\",e(null)}}var n=l(t.coord.url(this.tiles,null,this.scheme),this.url,this.tileSize);t.request=a.getImage(n,r.bind(this))},abortTile:function(t){t.request&&(t.request.abort(),delete t.request)},unloadTile:function(t){t.texture&&this.map.painter.saveTexture(t.texture)}})},{\"../util/ajax\":425,\"../util/evented\":434,\"../util/mapbox\":439,\"../util/util\":442,\"./load_tilejson\":362}],366:[function(t,e,r){\"use strict\";var n=t(\"../util/util\"),i={vector:t(\"../source/vector_tile_source\"),raster:t(\"../source/raster_tile_source\"),geojson:t(\"../source/geojson_source\"),video:t(\"../source/video_source\"),image:t(\"../source/image_source\")};r.create=function(t,e,r){if(e=new i[e.type](t,e,r),e.id!==t)throw new Error(\"Expected Source id to be \"+t+\" instead of \"+e.id);return n.bindAll([\"load\",\"abort\",\"unload\",\"serialize\",\"prepare\"],e),e},r.getType=function(t){return i[t]},r.setType=function(t,e){i[t]=e}},{\"../source/geojson_source\":358,\"../source/image_source\":361,\"../source/raster_tile_source\":365,\"../source/vector_tile_source\":370,\"../source/video_source\":372,\"../util/util\":442}],367:[function(t,e,r){\"use strict\";function n(t,e,r){this.id=t,this.dispatcher=r;var n=this._source=o.create(t,e,r).on(\"load\",function(){this.map&&this._source.onAdd&&this._source.onAdd(this.map),this._sourceLoaded=!0,this.tileSize=n.tileSize,this.minzoom=n.minzoom,this.maxzoom=n.maxzoom,this.roundZoom=n.roundZoom,this.reparseOverscaled=n.reparseOverscaled,this.isTileClipped=n.isTileClipped,this.attribution=n.attribution,this.vectorLayerIds=n.vectorLayerIds,this.fire(\"load\")}.bind(this)).on(\"error\",function(t){this._sourceErrored=!0,this.fire(\"error\",t)}.bind(this)).on(\"change\",function(){this.reload(),this.transform&&this.update(this.transform,this.map&&this.map.style.rasterFadeDuration),this.fire(\"change\")}.bind(this));this._tiles={},this._cache=new c(0,this.unloadTile.bind(this)),this._isIdRenderable=this._isIdRenderable.bind(this)}function i(t,e,r){var n=r.zoomTo(Math.min(t.z,e));return{x:(n.column-(t.x+t.w*Math.pow(2,t.z)))*d,y:(n.row-t.y)*d}}function a(t,e){return t%32-e%32}var o=t(\"./source\"),s=t(\"./tile\"),l=t(\"../util/evented\"),u=t(\"./tile_coord\"),c=t(\"../util/lru_cache\"),h=t(\"../geo/coordinate\"),f=t(\"../util/util\"),d=t(\"../data/bucket\").EXTENT;e.exports=n,n.maxOverzooming=10,n.maxUnderzooming=3,n.prototype=f.inherit(l,{onAdd:function(t){this.map=t,this._source&&this._source.onAdd&&this._source.onAdd(t)},loaded:function(){if(this._sourceErrored)return!0;if(!this._sourceLoaded)return!1;for(var t in this._tiles){var e=this._tiles[t];if(\"loaded\"!==e.state&&\"errored\"!==e.state)return!1}return!0},getSource:function(){return this._source},loadTile:function(t,e){return this._source.loadTile(t,e)},unloadTile:function(t){if(this._source.unloadTile)return this._source.unloadTile(t)},abortTile:function(t){if(this._source.abortTile)return this._source.abortTile(t)},serialize:function(){return this._source.serialize()},prepare:function(){if(this._sourceLoaded&&this._source.prepare)return this._source.prepare()},getIds:function(){return Object.keys(this._tiles).map(Number).sort(a)},getRenderableIds:function(){return this.getIds().filter(this._isIdRenderable)},_isIdRenderable:function(t){return this._tiles[t].isRenderable()&&!this._coveredTiles[t]},reload:function(){this._cache.reset();for(var t in this._tiles){var e=this._tiles[t];\"loading\"!==e.state&&(e.state=\"reloading\"),this.loadTile(this._tiles[t],this._tileLoaded.bind(this,this._tiles[t]))}},_tileLoaded:function(t,e){if(e)return t.state=\"errored\",this.fire(\"tile.error\",{tile:t,error:e}),void this._source.fire(\"tile.error\",{tile:t,error:e});t.source=this,t.timeAdded=(new Date).getTime(),this.fire(\"tile.load\",{tile:t}),this._source.fire(\"tile.load\",{tile:t})},getTile:function(t){return this.getTileByID(t.id)},getTileByID:function(t){return this._tiles[t]},getZoom:function(t){return t.zoom+t.scaleZoom(t.tileSize/this.tileSize)},findLoadedChildren:function(t,e,r){var n=!1;for(var i in this._tiles){var a=this._tiles[i];if(!(r[i]||!a.isRenderable()||a.coord.z<=t.z||a.coord.z>e)){var o=Math.pow(2,Math.min(a.coord.z,this.maxzoom)-Math.min(t.z,this.maxzoom));if(Math.floor(a.coord.x/o)===t.x&&Math.floor(a.coord.y/o)===t.y)for(r[i]=!0,n=!0;a&&a.coord.z-1>t.z;){var s=a.coord.parent(this.maxzoom).id;a=this._tiles[s],a&&a.isRenderable()&&(delete r[i],r[s]=!0)}}}return n},findLoadedParent:function(t,e,r){for(var n=t.z-1;n>=e;n--){t=t.parent(this.maxzoom);var i=this._tiles[t.id];if(i&&i.isRenderable())return r[t.id]=!0,i;if(this._cache.has(t.id))return this.addTile(t),r[t.id]=!0,this._tiles[t.id]}},updateCacheSize:function(t){var e=Math.ceil(t.width/t.tileSize)+1,r=Math.ceil(t.height/t.tileSize)+1,n=e*r;this._cache.setMaxSize(Math.floor(5*n))},update:function(t,e){if(this._sourceLoaded){var r,i,a;this.updateCacheSize(t);var o=(this.roundZoom?Math.round:Math.floor)(this.getZoom(t)),s=Math.max(o-n.maxOverzooming,this.minzoom),l=Math.max(o+n.maxUnderzooming,this.minzoom),c={},h=(new Date).getTime();this._coveredTiles={};var d=this.used?t.coveringTiles(this._source):[];for(r=0;r<d.length;r++)i=d[r],a=this.addTile(i),c[i.id]=!0,a.isRenderable()||this.findLoadedChildren(i,l,c)||this.findLoadedParent(i,s,c);for(var p={},m=Object.keys(c),v=0;v<m.length;v++){var g=m[v];i=u.fromID(g),a=this._tiles[g],a&&a.timeAdded>h-(e||0)&&(this.findLoadedChildren(i,l,c)&&(c[g]=!0),this.findLoadedParent(i,s,p))}var y;for(y in p)c[y]||(this._coveredTiles[y]=!0);for(y in p)c[y]=!0;var b=f.keysDifference(this._tiles,c);for(r=0;r<b.length;r++)this.removeTile(+b[r]);this.transform=t}},addTile:function(t){var e=this._tiles[t.id];if(e)return e;var r=t.wrapped()\n", ";if(e=this._tiles[r.id],e||(e=this._cache.get(r.id))&&this._redoPlacement&&this._redoPlacement(e),!e){var n=t.z,i=n>this.maxzoom?Math.pow(2,n-this.maxzoom):1;e=new s(r,this.tileSize*i,this.maxzoom),this.loadTile(e,this._tileLoaded.bind(this,e))}return e.uses++,this._tiles[t.id]=e,this.fire(\"tile.add\",{tile:e}),this._source.fire(\"tile.add\",{tile:e}),e},removeTile:function(t){var e=this._tiles[t];e&&(e.uses--,delete this._tiles[t],this.fire(\"tile.remove\",{tile:e}),this._source.fire(\"tile.remove\",{tile:e}),e.uses>0||(e.isRenderable()?this._cache.add(e.coord.wrapped().id,e):(e.aborted=!0,this.abortTile(e),this.unloadTile(e))))},clearTiles:function(){for(var t in this._tiles)this.removeTile(t);this._cache.reset()},tilesIn:function(t){for(var e={},r=this.getIds(),n=1/0,a=1/0,o=-1/0,s=-1/0,l=t[0].zoom,c=0;c<t.length;c++){var f=t[c];n=Math.min(n,f.column),a=Math.min(a,f.row),o=Math.max(o,f.column),s=Math.max(s,f.row)}for(var p=0;p<r.length;p++){var m=this._tiles[r[p]],v=u.fromID(r[p]),g=[i(v,m.sourceMaxZoom,new h(n,a,l)),i(v,m.sourceMaxZoom,new h(o,s,l))];if(g[0].x<d&&g[0].y<d&&g[1].x>=0&&g[1].y>=0){for(var y=[],b=0;b<t.length;b++)y.push(i(v,m.sourceMaxZoom,t[b]));var x=e[m.coord.id];void 0===x&&(x=e[m.coord.id]={tile:m,coord:v,queryGeometry:[],scale:Math.pow(2,this.transform.zoom-m.coord.z)}),x.queryGeometry.push(y)}}var _=[];for(var w in e)_.push(e[w]);return _},redoPlacement:function(){for(var t=this.getIds(),e=0;e<t.length;e++){this.getTileByID(t[e]).redoPlacement(this)}},getVisibleCoordinates:function(){return this.getRenderableIds().map(u.fromID)}})},{\"../data/bucket\":329,\"../geo/coordinate\":338,\"../util/evented\":434,\"../util/lru_cache\":438,\"../util/util\":442,\"./source\":366,\"./tile\":368,\"./tile_coord\":369}],368:[function(t,e,r){\"use strict\";function n(t,e,r){this.coord=t,this.uid=a.uniqueId(),this.uses=0,this.tileSize=e,this.sourceMaxZoom=r,this.buckets={},this.state=\"loading\"}function i(t,e){if(e){for(var r={},n=0;n<t.length;n++){var i=e.getLayer(t[n].layerId);if(i){var s=o.create(a.extend({layer:i,childLayers:t[n].childLayerIds.map(e.getLayer.bind(e)).filter(function(t){return t})},t[n]));r[s.id]=s}}return r}}var a=t(\"../util/util\"),o=t(\"../data/bucket\"),s=t(\"../data/feature_index\"),l=t(\"vector-tile\"),u=t(\"pbf\"),c=t(\"../util/vectortile_to_geojson\"),h=t(\"feature-filter\"),f=t(\"../symbol/collision_tile\"),d=t(\"../symbol/collision_box\"),p=t(\"../symbol/symbol_instances\"),m=t(\"../symbol/symbol_quads\");e.exports=n,n.prototype={loadVectorData:function(t,e){this.state=\"loaded\",t&&(this.collisionBoxArray=new d(t.collisionBoxArray),this.collisionTile=new f(t.collisionTile,this.collisionBoxArray),this.symbolInstancesArray=new p(t.symbolInstancesArray),this.symbolQuadsArray=new m(t.symbolQuadsArray),this.featureIndex=new s(t.featureIndex,t.rawTileData,this.collisionTile),this.rawTileData=t.rawTileData,this.buckets=i(t.buckets,e))},reloadSymbolData:function(t,e,r){if(\"unloaded\"!==this.state){this.collisionTile=new f(t.collisionTile,this.collisionBoxArray),this.featureIndex.setCollisionTile(this.collisionTile);for(var n in this.buckets){var o=this.buckets[n];\"symbol\"===o.type&&(o.destroy(e.gl),delete this.buckets[n])}a.extend(this.buckets,i(t.buckets,r))}},unloadVectorData:function(t){for(var e in this.buckets){this.buckets[e].destroy(t.gl)}this.collisionBoxArray=null,this.symbolQuadsArray=null,this.symbolInstancesArray=null,this.collisionTile=null,this.featureIndex=null,this.rawTileData=null,this.buckets=null,this.state=\"unloaded\"},redoPlacement:function(t){function e(e,r){this.reloadSymbolData(r,t.map.painter,t.map.style),t.fire(\"tile.load\",{tile:this}),this.state=\"loaded\",this.redoWhenDone&&(this.redoPlacement(t),this.redoWhenDone=!1)}if(\"loaded\"!==this.state||\"reloading\"===this.state)return void(this.redoWhenDone=!0);this.state=\"reloading\",t.dispatcher.send(\"redo placement\",{uid:this.uid,source:t.id,angle:t.map.transform.angle,pitch:t.map.transform.pitch,showCollisionBoxes:t.map.showCollisionBoxes},e.bind(this),this.workerID)},getBucket:function(t){return this.buckets&&this.buckets[t.ref||t.id]},querySourceFeatures:function(t,e){if(this.rawTileData){this.vtLayers||(this.vtLayers=new l.VectorTile(new u(new Uint8Array(this.rawTileData))).layers);var r=this.vtLayers._geojsonTileLayer||this.vtLayers[e.sourceLayer];if(r)for(var n=h(e.filter),i={z:this.coord.z,x:this.coord.x,y:this.coord.y},a=0;a<r.length;a++){var o=r.feature(a);if(n(o)){var s=new c(o,this.coord.z,this.coord.x,this.coord.y);s.tile=i,t.push(s)}}}},isRenderable:function(){return\"loaded\"===this.state||\"reloading\"===this.state}}},{\"../data/bucket\":329,\"../data/feature_index\":336,\"../symbol/collision_box\":394,\"../symbol/collision_tile\":396,\"../symbol/symbol_instances\":405,\"../symbol/symbol_quads\":406,\"../util/util\":442,\"../util/vectortile_to_geojson\":443,\"feature-filter\":132,pbf:478,\"vector-tile\":550}],369:[function(t,e,r){\"use strict\";function n(t,e,r,n){l(!isNaN(t)&&t>=0&&t%1==0),l(!isNaN(e)&&e>=0&&e%1==0),l(!isNaN(r)&&r>=0&&r%1==0),isNaN(n)&&(n=0),this.z=+t,this.x=+e,this.y=+r,this.w=+n,(n*=2)<0&&(n=-1*n-1);var i=1<<this.z;this.id=32*(i*i*n+i*this.y+this.x)+this.z,this.posMatrix=null}function i(t,e,r){for(var n,i=\"\",a=t;a>0;a--)n=1<<a-1,i+=(e&n?1:0)+(r&n?2:0);return i}function a(t,e){if(t.row>e.row){var r=t;t=e,e=r}return{x0:t.column,y0:t.row,x1:e.column,y1:e.row,dx:e.column-t.column,dy:e.row-t.row}}function o(t,e,r,n,i){var a=Math.max(r,Math.floor(e.y0)),o=Math.min(n,Math.ceil(e.y1));if(t.x0===e.x0&&t.y0===e.y0?t.x0+e.dy/t.dy*t.dx<e.x1:t.x1-e.dy/t.dy*t.dx<e.x0){var s=t;t=e,e=s}for(var l=t.dx/t.dy,u=e.dx/e.dy,c=t.dx>0,h=e.dx<0,f=a;f<o;f++){var d=l*Math.max(0,Math.min(t.dy,f+c-t.y0))+t.x0,p=u*Math.max(0,Math.min(e.dy,f+h-e.y0))+e.x0;i(Math.floor(p),Math.ceil(d),f)}}function s(t,e,r,n,i,s){var l,u=a(t,e),c=a(e,r),h=a(r,t);u.dy>c.dy&&(l=u,u=c,c=l),u.dy>h.dy&&(l=u,u=h,h=l),c.dy>h.dy&&(l=c,c=h,h=l),u.dy&&o(h,u,n,i,s),c.dy&&o(h,c,n,i,s)}var l=t(\"assert\"),u=t(\"whoots-js\"),c=t(\"../geo/coordinate\");e.exports=n,n.prototype.toString=function(){return this.z+\"/\"+this.x+\"/\"+this.y},n.prototype.toCoordinate=function(t){var e=Math.min(this.z,t),r=Math.pow(2,e),n=this.y,i=this.x+r*this.w;return new c(i,n,e)},n.fromID=function(t){var e=t%32,r=1<<e,i=(t-e)/32,a=i%r,o=(i-a)/r%r,s=Math.floor(i/(r*r));return s%2!=0&&(s=-1*s-1),s/=2,new n(e,a,o,s)},n.prototype.url=function(t,e,r){var n=u.getTileBBox(this.x,this.y,this.z),a=i(this.z,this.x,this.y);return t[(this.x+this.y)%t.length].replace(\"{prefix}\",(this.x%16).toString(16)+(this.y%16).toString(16)).replace(\"{z}\",Math.min(this.z,e||this.z)).replace(\"{x}\",this.x).replace(\"{y}\",\"tms\"===r?Math.pow(2,this.z)-this.y-1:this.y).replace(\"{quadkey}\",a).replace(\"{bbox-epsg-3857}\",n)},n.prototype.parent=function(t){return 0===this.z?null:this.z>t?new n(this.z-1,this.x,this.y,this.w):new n(this.z-1,Math.floor(this.x/2),Math.floor(this.y/2),this.w)},n.prototype.wrapped=function(){return new n(this.z,this.x,this.y,0)},n.prototype.children=function(t){if(this.z>=t)return[new n(this.z+1,this.x,this.y,this.w)];var e=this.z+1,r=2*this.x,i=2*this.y;return[new n(e,r,i,this.w),new n(e,r+1,i,this.w),new n(e,r,i+1,this.w),new n(e,r+1,i+1,this.w)]},n.cover=function(t,e,r){function i(t,e,i){var s,l,u;if(i>=0&&i<=a)for(s=t;s<e;s++)l=(s%a+a)%a,u=new n(r,l,i,Math.floor(s/a)),o[u.id]=u}var a=1<<t,o={};return s(e[0],e[1],e[2],0,a,i),s(e[2],e[3],e[0],0,a,i),Object.keys(o).map(function(t){return o[t]})}},{\"../geo/coordinate\":338,assert:47,\"whoots-js\":566}],370:[function(t,e,r){\"use strict\";function n(t,e,r){if(this.id=t,this.dispatcher=r,a.extend(this,a.pick(e,[\"url\",\"scheme\",\"tileSize\"])),this._options=a.extend({type:\"vector\"},e),512!==this.tileSize)throw new Error(\"vector tile sources must have a tileSize of 512\");o(e,function(t,e){if(t)return void this.fire(\"error\",t);a.extend(this,e),this.fire(\"load\")}.bind(this))}var i=t(\"../util/evented\"),a=t(\"../util/util\"),o=t(\"./load_tilejson\"),s=t(\"../util/mapbox\").normalizeTileURL;e.exports=n,n.prototype=a.inherit(i,{minzoom:0,maxzoom:22,scheme:\"xyz\",tileSize:512,reparseOverscaled:!0,isTileClipped:!0,onAdd:function(t){this.map=t},serialize:function(){return a.extend({},this._options)},loadTile:function(t,e){function r(r,n){if(!t.aborted){if(r)return e(r);t.loadVectorData(n,this.map.style),t.redoWhenDone&&(t.redoWhenDone=!1,t.redoPlacement(this)),e(null),t.reloadCallback&&(this.loadTile(t,t.reloadCallback),t.reloadCallback=null)}}var n=t.coord.z>this.maxzoom?Math.pow(2,t.coord.z-this.maxzoom):1,i={url:s(t.coord.url(this.tiles,this.maxzoom,this.scheme),this.url),uid:t.uid,coord:t.coord,zoom:t.coord.z,tileSize:this.tileSize*n,source:this.id,overscaling:n,angle:this.map.transform.angle,pitch:this.map.transform.pitch,showCollisionBoxes:this.map.showCollisionBoxes};t.workerID?\"loading\"===t.state?t.reloadCallback=e:(i.rawTileData=t.rawTileData,this.dispatcher.send(\"reload tile\",i,r.bind(this),t.workerID)):t.workerID=this.dispatcher.send(\"load tile\",i,r.bind(this))},abortTile:function(t){this.dispatcher.send(\"abort tile\",{uid:t.uid,source:this.id},null,t.workerID)},unloadTile:function(t){t.unloadVectorData(this.map.painter),this.dispatcher.send(\"remove tile\",{uid:t.uid,source:this.id},null,t.workerID)}})},{\"../util/evented\":434,\"../util/mapbox\":439,\"../util/util\":442,\"./load_tilejson\":362}],371:[function(t,e,r){\"use strict\";function n(t,e,r){this.actor=t,this.styleLayers=e,r&&(this.loadVectorData=r),this.loading={},this.loaded={}}var i=t(\"../util/ajax\"),a=t(\"vector-tile\"),o=t(\"pbf\"),s=t(\"./worker_tile\");e.exports=n,n.prototype={loadTile:function(t,e){function r(t,r){return delete this.loading[n][i],t?e(t):r?(a.data=r.tile,a.parse(a.data,this.styleLayers.getLayerFamilies(),this.actor,r.rawTileData,e),this.loaded[n]=this.loaded[n]||{},void(this.loaded[n][i]=a)):e(null,null)}var n=t.source,i=t.uid;this.loading[n]||(this.loading[n]={});var a=this.loading[n][i]=new s(t);a.abort=this.loadVectorData(t,r.bind(this))},reloadTile:function(t,e){var r=this.loaded[t.source],n=t.uid;if(r&&r[n]){var i=r[n];i.parse(i.data,this.styleLayers.getLayerFamilies(),this.actor,t.rawTileData,e)}},abortTile:function(t){var e=this.loading[t.source],r=t.uid;e&&e[r]&&e[r].abort&&(e[r].abort(),delete e[r])},removeTile:function(t){var e=this.loaded[t.source],r=t.uid;e&&e[r]&&delete e[r]},loadVectorData:function(t,e){function r(t,r){if(t)return e(t);var n=new a.VectorTile(new o(new Uint8Array(r)));e(t,{tile:n,rawTileData:r})}var n=i.getArrayBuffer(t.url,r.bind(this));return function(){n.abort()}},redoPlacement:function(t,e){var r=this.loaded[t.source],n=this.loading[t.source],i=t.uid;if(r&&r[i]){var a=r[i],o=a.redoPlacement(t.angle,t.pitch,t.showCollisionBoxes);o.result&&e(null,o.result,o.transferables)}else n&&n[i]&&(n[i].angle=t.angle)}}},{\"../util/ajax\":425,\"./worker_tile\":374,pbf:478,\"vector-tile\":550}],372:[function(t,e,r){\"use strict\";function n(t,e){this.id=t,this.urls=e.urls,this.coordinates=e.coordinates,u.getVideo(e.urls,function(t,r){if(t)return this.fire(\"error\",{error:t});this.video=r,this.video.loop=!0;var n;this.video.addEventListener(\"playing\",function(){n=this.map.style.animationLoop.set(1/0),this.map._rerender()}.bind(this)),this.video.addEventListener(\"pause\",function(){this.map.style.animationLoop.cancel(n)}.bind(this)),this.map&&(this.video.play(),this.setCoordinates(e.coordinates)),this.fire(\"load\")}.bind(this))}var i=t(\"../util/util\"),a=t(\"./tile_coord\"),o=t(\"../geo/lng_lat\"),s=t(\"point-geometry\"),l=t(\"../util/evented\"),u=t(\"../util/ajax\"),c=t(\"../data/bucket\").EXTENT,h=t(\"../render/draw_raster\").RasterBoundsArray,f=t(\"../data/buffer\"),d=t(\"../render/vertex_array_object\");e.exports=n,n.prototype=i.inherit(l,{minzoom:0,maxzoom:22,tileSize:512,roundZoom:!0,getVideo:function(){return this.video},onAdd:function(t){this.map||(this.map=t,this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))},setCoordinates:function(t){this.coordinates=t;var e=this.map,r=t.map(function(t){return e.transform.locationCoordinate(o.convert(t)).zoomTo(0)}),n=this.centerCoord=i.getCoordinatesCenter(r);return n.column=Math.round(n.column),n.row=Math.round(n.row),this.minzoom=this.maxzoom=n.zoom,this._coord=new a(n.zoom,n.column,n.row),this._tileCoords=r.map(function(t){var e=t.zoomTo(n.zoom);return new s(Math.round((e.column-n.column)*c),Math.round((e.row-n.row)*c))}),this.fire(\"change\"),this},_setTile:function(t){this._prepared=!1,this.tile=t;var e=new h;e.emplaceBack(this._tileCoords[0].x,this._tileCoords[0].y,0,0),e.emplaceBack(this._tileCoords[1].x,this._tileCoords[1].y,32767,0),e.emplaceBack(this._tileCoords[3].x,this._tileCoords[3].y,0,32767),e.emplaceBack(this._tileCoords[2].x,this._tileCoords[2].y,32767,32767),this.tile.buckets={},this.tile.boundsBuffer=new f(e.serialize(),h.serialize(),f.BufferType.VERTEX),this.tile.boundsVAO=new d,this.tile.state=\"loaded\"},prepare:function(){if(!(this.video.readyState<2)&&this.tile){var t=this.map.painter.gl;this._prepared?(t.bindTexture(t.TEXTURE_2D,this.tile.texture),t.texSubImage2D(t.TEXTURE_2D,0,0,0,t.RGBA,t.UNSIGNED_BYTE,this.video)):(this._prepared=!0,this.tile.texture=t.createTexture(),t.bindTexture(t.TEXTURE_2D,this.tile.texture),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.LINEAR),t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,this.video)),this._currentTime=this.video.currentTime}},loadTile:function(t,e){this._coord&&this._coord.toString()===t.coord.toString()?(this._setTile(t),e(null)):(t.state=\"errored\",e(null))},serialize:function(){return{type:\"video\",urls:this.urls,coordinates:this.coordinates}}})},{\"../data/bucket\":329,\"../data/buffer\":334,\"../geo/lng_lat\":339,\"../render/draw_raster\":351,\"../render/vertex_array_object\":357,\"../util/ajax\":425,\"../util/evented\":434,\"../util/util\":442,\"./tile_coord\":369,\"point-geometry\":484}],373:[function(t,e,r){\"use strict\";function n(t){this.self=t,this.actor=new a(t,this);var e={getLayers:function(){return this.layers}.bind(this),getLayerFamilies:function(){return this.layerFamilies}.bind(this)};this.workerSources={vector:new l(this.actor,e),geojson:new u(this.actor,e)},this.self.registerWorkerSource=function(t,r){if(this.workerSources[t])throw new Error('Worker source with name \"'+t+'\" already registered.');this.workerSources[t]=new r(this.actor,e)}.bind(this)}function i(t){var e={};for(var r in t){var n=t[r],i=n.ref||n.id,a=t[i];a.layout&&\"none\"===a.layout.visibility||(e[i]=e[i]||[],r===i?e[i].unshift(n):e[i].push(n))}return e}var a=t(\"../util/actor\"),o=t(\"../style/style_layer\"),s=t(\"../util/util\"),l=t(\"./vector_tile_worker_source\"),u=t(\"./geojson_worker_source\");e.exports=function(t){return new n(t)},s.extend(n.prototype,{\"set layers\":function(t){function e(t){var e=o.create(t,t.ref&&r.layers[t.ref]);e.updatePaintTransitions({},{transition:!1}),r.layers[e.id]=e}this.layers={};for(var r=this,n=[],a=0;a<t.length;a++){var s=t[a];\"fill\"!==s.type&&\"line\"!==s.type&&\"circle\"!==s.type&&\"symbol\"!==s.type||(s.ref?n.push(a):e(s))}for(var l=0;l<n.length;l++)e(t[n[l]]);this.layerFamilies=i(this.layers)},\"update layers\":function(t){function e(t){var e=a.layers[t.ref];a.layers[t.id]?a.layers[t.id].set(t,e):a.layers[t.id]=o.create(t,e),a.layers[t.id].updatePaintTransitions({},{transition:!1})}var r,n,a=this;for(r in t)n=t[r],n.ref&&e(n);for(r in t)n=t[r],n.ref||e(n);this.layerFamilies=i(this.layers)},\"load tile\":function(t,e){var r=t.type||\"vector\";this.workerSources[r].loadTile(t,e)},\"reload tile\":function(t,e){var r=t.type||\"vector\";this.workerSources[r].reloadTile(t,e)},\"abort tile\":function(t){var e=t.type||\"vector\";this.workerSources[e].abortTile(t)},\"remove tile\":function(t){var e=t.type||\"vector\";this.workerSources[e].removeTile(t)},\"redo placement\":function(t,e){var r=t.type||\"vector\";this.workerSources[r].redoPlacement(t,e)},\"load worker source\":function(t,e){try{this.self.importScripts(t.url),e()}catch(t){e(t)}}})},{\"../style/style_layer\":381,\"../util/actor\":424,\"../util/util\":442,\"./geojson_worker_source\":359,\"./vector_tile_worker_source\":371}],374:[function(t,e,r){\"use strict\";function n(t){this.coord=t.coord,this.uid=t.uid,this.zoom=t.zoom,this.tileSize=t.tileSize,this.source=t.source,this.overscaling=t.overscaling,this.angle=t.angle,this.pitch=t.pitch,this.showCollisionBoxes=t.showCollisionBoxes}function i(t){return!t.isEmpty()}function a(t){return t.serialize()}function o(t){var e=[];for(var r in t)t[r].getTransferables(e);return e}function s(t){return t.id}var l=t(\"../data/feature_index\"),u=t(\"../symbol/collision_tile\"),c=t(\"../data/bucket\"),h=t(\"../symbol/collision_box\"),f=t(\"../util/dictionary_coder\"),d=t(\"../util/util\"),p=t(\"../symbol/symbol_instances\"),m=t(\"../symbol/symbol_quads\");e.exports=n,n.prototype.parse=function(t,e,r,n,v){function g(t,e){for(var r=0;r<t.length;r++){var n=t.feature(r);n.index=r;for(var i in e)e[i].filter(n)&&e[i].features.push(n)}}function y(t){if(t)return v(t);if(2===++N){for(var e=P.length-1;e>=0;e--)b(E,P[e]);x()}}function b(t,e){if(e.populateArrays(A,j,F),\"symbol\"!==e.type)for(var r=0;r<e.features.length;r++){var n=e.features[r];T.insert(n,n.index,e.sourceLayerIndex,e.index)}e.features=null}function x(){E.status=\"done\",E.redoPlacementAfterDone&&(E.redoPlacement(E.angle,E.pitch,null),E.redoPlacementAfterDone=!1);var t=T.serialize(),e=A.serialize(),r=E.collisionBoxArray.serialize(),s=E.symbolInstancesArray.serialize(),l=E.symbolQuadsArray.serialize(),u=[n].concat(t.transferables).concat(e.transferables),c=D.filter(i);v(null,{buckets:c.map(a),featureIndex:t.data,collisionTile:e.data,collisionBoxArray:r,symbolInstancesArray:s,symbolQuadsArray:l,rawTileData:n},o(c).concat(u))}this.status=\"parsing\",this.data=t,this.collisionBoxArray=new h,this.symbolInstancesArray=new p,this.symbolQuadsArray=new m;var _,w,M,k,A=new u(this.angle,this.pitch,this.collisionBoxArray),T=new l(this.coord,this.overscaling,A,t.layers),S=new f(t.layers?Object.keys(t.layers).sort():[\"_geojsonTileLayer\"]),E=this,L={},C={},I=0;for(var z in e)w=e[z][0],w.source===this.source&&(w.ref||w.minzoom&&this.zoom<w.minzoom||w.maxzoom&&this.zoom>=w.maxzoom||w.layout&&\"none\"===w.layout.visibility||t.layers&&!t.layers[w.sourceLayer]||(k=c.create({layer:w,index:I++,childLayers:e[z],zoom:this.zoom,overscaling:this.overscaling,showCollisionBoxes:this.showCollisionBoxes,collisionBoxArray:this.collisionBoxArray,symbolQuadsArray:this.symbolQuadsArray,symbolInstancesArray:this.symbolInstancesArray,sourceLayerIndex:S.encode(w.sourceLayer||\"_geojsonTileLayer\")}),k.createFilter(),L[w.id]=k,t.layers&&(M=w.sourceLayer,C[M]=C[M]||{},C[M][w.id]=k)));if(t.layers)for(M in C)1===w.version&&d.warnOnce('Vector tile source \"'+this.source+'\" layer \"'+M+'\" does not use vector tile spec v2 and therefore may have some rendering errors.'),(w=t.layers[M])&&g(w,C[M]);else g(t,L);var D=[],P=this.symbolBuckets=[],O=[];T.bucketLayerIDs={};for(var R in L)k=L[R],0!==k.features.length&&(T.bucketLayerIDs[k.index]=k.childLayers.map(s),D.push(k),\"symbol\"===k.type?P.push(k):O.push(k));var F={},j={},N=0;if(P.length>0){for(_=P.length-1;_>=0;_--)P[_].updateIcons(F),P[_].updateFont(j);for(var B in j)j[B]=Object.keys(j[B]).map(Number);F=Object.keys(F),r.send(\"get glyphs\",{uid:this.uid,stacks:j},function(t,e){j=e,y(t)}),F.length?r.send(\"get icons\",{icons:F},function(t,e){F=e,y(t)}):y()}for(_=O.length-1;_>=0;_--)b(this,O[_]);if(0===P.length)return x()},n.prototype.redoPlacement=function(t,e,r){if(\"done\"!==this.status)return this.redoPlacementAfterDone=!0,this.angle=t,{};for(var n=new u(t,e,this.collisionBoxArray),s=this.symbolBuckets,l=s.length-1;l>=0;l--)s[l].placeFeatures(n,r);var c=n.serialize(),h=s.filter(i);return{result:{buckets:h.map(a),collisionTile:c.data},transferables:o(h).concat(c.transferables)}}},{\"../data/bucket\":329,\"../data/feature_index\":336,\"../symbol/collision_box\":394,\"../symbol/collision_tile\":396,\"../symbol/symbol_instances\":405,\"../symbol/symbol_quads\":406,\"../util/dictionary_coder\":432,\"../util/util\":442}],375:[function(t,e,r){\"use strict\";function n(){this.n=0,this.times=[]}e.exports=n,n.prototype.stopped=function(){return this.times=this.times.filter(function(t){return t.time>=(new Date).getTime()}),!this.times.length},n.prototype.set=function(t){return this.times.push({id:this.n,time:t+(new Date).getTime()}),this.n++},n.prototype.cancel=function(t){this.times=this.times.filter(function(e){return e.id!==t})}},{}],376:[function(t,e,r){\"use strict\";function n(t){this.base=t,this.retina=s.devicePixelRatio>1;var e=this.retina?\"@2x\":\"\";o.getJSON(l(t,e,\".json\"),function(t,e){if(t)return void this.fire(\"error\",{error:t});this.data=e,this.img&&this.fire(\"load\")}.bind(this)),o.getImage(l(t,e,\".png\"),function(t,e){if(t)return void this.fire(\"error\",{error:t});for(var r=e.getData(),n=e.data=new Uint8Array(r.length),i=0;i<r.length;i+=4){var a=r[i+3]/255;n[i+0]=r[i+0]*a,n[i+1]=r[i+1]*a,n[i+2]=r[i+2]*a,n[i+3]=r[i+3]}this.img=e,this.data&&this.fire(\"load\")}.bind(this))}function i(){}var a=t(\"../util/evented\"),o=t(\"../util/ajax\"),s=t(\"../util/browser\"),l=t(\"../util/mapbox\").normalizeSpriteURL;e.exports=n,n.prototype=Object.create(a),n.prototype.toJSON=function(){return this.base},n.prototype.loaded=function(){return!(!this.data||!this.img)},n.prototype.resize=function(){if(s.devicePixelRatio>1!==this.retina){var t=new n(this.base);t.on(\"load\",function(){this.img=t.img,this.data=t.data,this.retina=t.retina}.bind(this))}},i.prototype={x:0,y:0,width:0,height:0,pixelRatio:1,sdf:!1},n.prototype.getSpritePosition=function(t){if(!this.loaded())return new i;var e=this.data&&this.data[t];return e&&this.img?e:new i}},{\"../util/ajax\":425,\"../util/browser\":426,\"../util/evented\":434,\"../util/mapbox\":439}],377:[function(t,e,r){\"use strict\";var n=t(\"csscolorparser\").parseCSSColor,i=t(\"../util/util\"),a=t(\"./style_function\"),o={};e.exports=function t(e){if(a.isFunctionDefinition(e))return i.extend({},e,{stops:e.stops.map(function(e){return[e[0],t(e[1])]})});if(\"string\"==typeof e){if(!o[e]){var r=n(e);if(!r)throw new Error(\"Invalid color \"+e);o[e]=[r[0]/255*r[3],r[1]/255*r[3],r[2]/255*r[3],r[3]]}return o[e]}throw new Error(\"Invalid color \"+e)}},{\"../util/util\":442,\"./style_function\":380,csscolorparser:108}],378:[function(t,e,r){\"use strict\";function n(t,e,r){this.animationLoop=e||new m,this.dispatcher=new p(r||1,this),this.spriteAtlas=new l(1024,1024),this.lineAtlas=new u(256,512),this._layers={},this._order=[],this._groups=[],this.sources={},this.zoomHistory={},c.bindAll([\"_forwardSourceEvent\",\"_forwardTileEvent\",\"_forwardLayerEvent\",\"_redoPlacement\"],this),this._resetUpdates();var n=function(t,e){if(t)return void this.fire(\"error\",{error:t});if(!v.emitErrors(this,v(e))){this._loaded=!0,this.stylesheet=e,this.updateClasses();var r=e.sources;for(var n in r)this.addSource(n,r[n]);e.sprite&&(this.sprite=new o(e.sprite),this.sprite.on(\"load\",this.fire.bind(this,\"change\"))),this.glyphSource=new s(e.glyphs),this._resolve(),this.fire(\"load\")}}.bind(this);\"string\"==typeof t?h.getJSON(f(t),n):d.frame(n.bind(this,null,t)),this.on(\"source.load\",function(t){var e=t.source;if(e&&e.vectorLayerIds)for(var r in this._layers){var n=this._layers[r];n.source===e.id&&this._validateLayer(n)}})}var i=t(\"../util/evented\"),a=t(\"./style_layer\"),o=t(\"./image_sprite\"),s=t(\"../symbol/glyph_source\"),l=t(\"../symbol/sprite_atlas\"),u=t(\"../render/line_atlas\"),c=t(\"../util/util\"),h=t(\"../util/ajax\"),f=t(\"../util/mapbox\").normalizeStyleURL,d=t(\"../util/browser\"),p=t(\"../util/dispatcher\"),m=t(\"./animation_loop\"),v=t(\"./validate_style\"),g=t(\"../source/source\"),y=t(\"../source/query_features\"),b=t(\"../source/source_cache\"),x=t(\"./style_spec\"),_=t(\"./style_function\");e.exports=n,n.prototype=c.inherit(i,{_loaded:!1,_validateLayer:function(t){var e=this.sources[t.source];t.sourceLayer&&e&&e.vectorLayerIds&&-1===e.vectorLayerIds.indexOf(t.sourceLayer)&&this.fire(\"error\",{error:new Error('Source layer \"'+t.sourceLayer+'\" does not exist on source \"'+e.id+'\" as specified by style layer \"'+t.id+'\"')})},loaded:function(){if(!this._loaded)return!1;if(Object.keys(this._updates.sources).length)return!1;for(var t in this.sources)if(!this.sources[t].loaded())return!1;return!(this.sprite&&!this.sprite.loaded())},_resolve:function(){var t,e;this._layers={},this._order=this.stylesheet.layers.map(function(t){return t.id});for(var r=0;r<this.stylesheet.layers.length;r++)e=this.stylesheet.layers[r],e.ref||(t=a.create(e),this._layers[t.id]=t,t.on(\"error\",this._forwardLayerEvent));for(var n=0;n<this.stylesheet.layers.length;n++)if(e=this.stylesheet.layers[n],e.ref){var i=this.getLayer(e.ref);t=a.create(e,i),this._layers[t.id]=t,t.on(\"error\",this._forwardLayerEvent)}this._groupLayers(),this._updateWorkerLayers()},_groupLayers:function(){var t;this._groups=[];for(var e=0;e<this._order.length;++e){var r=this._layers[this._order[e]];t&&r.source===t.source||(t=[],t.source=r.source,this._groups.push(t)),t.push(r)}},_updateWorkerLayers:function(t){this.dispatcher.broadcast(t?\"update layers\":\"set layers\",this._serializeLayers(t))},_serializeLayers:function(t){t=t||this._order;for(var e=[],r={includeRefProperties:!0},n=0;n<t.length;n++)e.push(this._layers[t[n]].serialize(r));return e},_applyClasses:function(t,e){if(this._loaded){t=t||[],e=e||{transition:!0};var r=this.stylesheet.transition||{},n=this._updates.allPaintProps?this._layers:this._updates.paintProps;for(var i in n){var a=this._layers[i],o=this._updates.paintProps[i];if(this._updates.allPaintProps||o.all)a.updatePaintTransitions(t,e,r,this.animationLoop);else for(var s in o)this._layers[i].updatePaintTransition(s,t,e,r,this.animationLoop)}}},_recalculate:function(t){for(var e in this.sources)this.sources[e].used=!1;this._updateZoomHistory(t),this.rasterFadeDuration=300;for(var r in this._layers){var n=this._layers[r];n.recalculate(t,this.zoomHistory),!n.isHidden(t)&&n.source&&(this.sources[n.source].used=!0)}Math.floor(this.z)!==Math.floor(t)&&this.animationLoop.set(300),this.z=t,this.fire(\"zoom\")},_updateZoomHistory:function(t){var e=this.zoomHistory;void 0===e.lastIntegerZoom&&(e.lastIntegerZoom=Math.floor(t),e.lastIntegerZoomTime=0,e.lastZoom=t),Math.floor(e.lastZoom)<Math.floor(t)?(e.lastIntegerZoom=Math.floor(t),e.lastIntegerZoomTime=Date.now()):Math.floor(e.lastZoom)>Math.floor(t)&&(e.lastIntegerZoom=Math.floor(t+1),e.lastIntegerZoomTime=Date.now()),e.lastZoom=t},_checkLoaded:function(){if(!this._loaded)throw new Error(\"Style is not done loading\")},update:function(t,e){if(!this._updates.changed)return this;if(this._updates.allLayers)this._groupLayers(),this._updateWorkerLayers();else{var r=Object.keys(this._updates.layers);r.length&&this._updateWorkerLayers(r)}var n,i=Object.keys(this._updates.sources);for(n=0;n<i.length;n++)this._reloadSource(i[n]);for(n=0;n<this._updates.events.length;n++){var a=this._updates.events[n];this.fire(a[0],a[1])}return this._applyClasses(t,e),this._updates.changed&&this.fire(\"change\"),this._resetUpdates(),this},_resetUpdates:function(){this._updates={events:[],layers:{},sources:{},paintProps:{}}},addSource:function(t,e){if(this._checkLoaded(),void 0!==this.sources[t])throw new Error(\"There is already a source with this ID\");if(!e.type)throw new Error(\"The type property must be defined, but the only the following properties were given: \"+Object.keys(e)+\".\");return[\"vector\",\"raster\",\"geojson\",\"video\",\"image\"].indexOf(e.type)>=0&&this._handleErrors(v.source,\"sources.\"+t,e)?this:(e=new b(t,e,this.dispatcher),this.sources[t]=e,e.style=this,e.on(\"load\",this._forwardSourceEvent).on(\"error\",this._forwardSourceEvent).on(\"change\",this._forwardSourceEvent).on(\"tile.add\",this._forwardTileEvent).on(\"tile.load\",this._forwardTileEvent).on(\"tile.error\",this._forwardTileEvent).on(\"tile.remove\",this._forwardTileEvent).on(\"tile.stats\",this._forwardTileEvent),this._updates.events.push([\"source.add\",{source:e}]),this._updates.changed=!0,this)},removeSource:function(t){if(this._checkLoaded(),void 0===this.sources[t])throw new Error(\"There is no source with this ID\");var e=this.sources[t];return delete this.sources[t],delete this._updates.sources[t],e.off(\"load\",this._forwardSourceEvent).off(\"error\",this._forwardSourceEvent).off(\"change\",this._forwardSourceEvent).off(\"tile.add\",this._forwardTileEvent).off(\"tile.load\",this._forwardTileEvent).off(\"tile.error\",this._forwardTileEvent).off(\"tile.remove\",this._forwardTileEvent).off(\"tile.stats\",this._forwardTileEvent),this._updates.events.push([\"source.remove\",{source:e}]),this._updates.changed=!0,this},getSource:function(t){return this.sources[t]&&this.sources[t].getSource()},addLayer:function(t,e){if(this._checkLoaded(),!(t instanceof a)){if(this._handleErrors(v.layer,\"layers.\"+t.id,t,!1,{arrayIndex:-1}))return this;var r=t.ref&&this.getLayer(t.ref);t=a.create(t,r)}return this._validateLayer(t),t.on(\"error\",this._forwardLayerEvent),this._layers[t.id]=t,this._order.splice(e?this._order.indexOf(e):1/0,0,t.id),this._updates.allLayers=!0,t.source&&(this._updates.sources[t.source]=!0),this._updates.events.push([\"layer.add\",{layer:t}]),this.updateClasses(t.id)},removeLayer:function(t){this._checkLoaded();var e=this._layers[t];if(void 0===e)throw new Error(\"There is no layer with this ID\");for(var r in this._layers)this._layers[r].ref===t&&this.removeLayer(r);return e.off(\"error\",this._forwardLayerEvent),delete this._layers[t],delete this._updates.layers[t],delete this._updates.paintProps[t],this._order.splice(this._order.indexOf(t),1),this._updates.allLayers=!0,this._updates.events.push([\"layer.remove\",{layer:e}]),this._updates.changed=!0,this},getLayer:function(t){return this._layers[t]},getReferentLayer:function(t){var e=this.getLayer(t);return e.ref&&(e=this.getLayer(e.ref)),e},setLayerZoomRange:function(t,e,r){this._checkLoaded();var n=this.getReferentLayer(t);return n.minzoom===e&&n.maxzoom===r?this:(null!=e&&(n.minzoom=e),null!=r&&(n.maxzoom=r),this._updateLayer(n))},setFilter:function(t,e){this._checkLoaded();var r=this.getReferentLayer(t);return null!==e&&this._handleErrors(v.filter,\"layers.\"+r.id+\".filter\",e)?this:c.deepEqual(r.filter,e)?this:(r.filter=c.clone(e),this._updateLayer(r))},getFilter:function(t){return this.getReferentLayer(t).filter},setLayoutProperty:function(t,e,r){this._checkLoaded();var n=this.getReferentLayer(t);return c.deepEqual(n.getLayoutProperty(e),r)?this:(n.setLayoutProperty(e,r),this._updateLayer(n))},getLayoutProperty:function(t,e){return this.getReferentLayer(t).getLayoutProperty(e)},setPaintProperty:function(t,e,r,n){this._checkLoaded();var i=this.getLayer(t);if(c.deepEqual(i.getPaintProperty(e,n),r))return this;var a=i.isPaintValueFeatureConstant(e);return i.setPaintProperty(e,r,n),!(r&&_.isFunctionDefinition(r)&&\"$zoom\"!==r.property&&void 0!==r.property)&&a||(this._updates.layers[t]=!0,i.source&&(this._updates.sources[i.source]=!0)),this.updateClasses(t,e)},getPaintProperty:function(t,e,r){return this.getLayer(t).getPaintProperty(e,r)},updateClasses:function(t,e){if(this._updates.changed=!0,t){var r=this._updates.paintProps;r[t]||(r[t]={}),r[t][e||\"all\"]=!0}else this._updates.allPaintProps=!0;return this},serialize:function(){return c.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,sources:c.mapObject(this.sources,function(t){return t.serialize()}),layers:this._order.map(function(t){return this._layers[t].serialize()},this)},function(t){return void 0!==t})},_updateLayer:function(t){return this._updates.layers[t.id]=!0,t.source&&(this._updates.sources[t.source]=!0),this._updates.changed=!0,this},_flattenRenderedFeatures:function(t){for(var e=[],r=this._order.length-1;r>=0;r--)for(var n=this._order[r],i=0;i<t.length;i++){var a=t[i][n];if(a)for(var o=0;o<a.length;o++)e.push(a[o])}return e},queryRenderedFeatures:function(t,e,r,n){\n", "e&&e.filter&&this._handleErrors(v.filter,\"queryRenderedFeatures.filter\",e.filter,!0);var i={};if(e&&e.layers)for(var a=0;a<e.layers.length;a++){var o=e.layers[a];i[this._layers[o].source]=!0}var s=[];for(var l in this.sources)if(!e.layers||i[l]){var u=this.sources[l],c=y.rendered(u,this._layers,t,e,r,n);s.push(c)}return this._flattenRenderedFeatures(s)},querySourceFeatures:function(t,e){e&&e.filter&&this._handleErrors(v.filter,\"querySourceFeatures.filter\",e.filter,!0);var r=this.sources[t];return r?y.source(r,e):[]},addSourceType:function(t,e,r){return g.getType(t)?r(new Error('A source type called \"'+t+'\" already exists.')):(g.setType(t,e),e.workerSourceURL?void this.dispatcher.broadcast(\"load worker source\",{name:t,url:e.workerSourceURL},r):r(null,null))},_handleErrors:function(t,e,r,n,i){var a=n?v.throwErrors:v.emitErrors,o=t.call(v,c.extend({key:e,style:this.serialize(),value:r,styleSpec:x},i));return a.call(v,this,o)},_remove:function(){this.dispatcher.remove()},_reloadSource:function(t){this.sources[t].reload()},_updateSources:function(t){for(var e in this.sources)this.sources[e].update(t)},_redoPlacement:function(){for(var t in this.sources)this.sources[t].redoPlacement&&this.sources[t].redoPlacement()},_forwardSourceEvent:function(t){this.fire(\"source.\"+t.type,c.extend({source:t.target.getSource()},t))},_forwardTileEvent:function(t){this.fire(t.type,c.extend({source:t.target},t))},_forwardLayerEvent:function(t){this.fire(\"layer.\"+t.type,c.extend({layer:{id:t.target.id}},t))},\"get sprite json\":function(t,e){var r=this.sprite;r.loaded()?e(null,{sprite:r.data,retina:r.retina}):r.on(\"load\",function(){e(null,{sprite:r.data,retina:r.retina})})},\"get icons\":function(t,e){var r=this.sprite,n=this.spriteAtlas;r.loaded()?(n.setSprite(r),n.addIcons(t.icons,e)):r.on(\"load\",function(){n.setSprite(r),n.addIcons(t.icons,e)})},\"get glyphs\":function(t,e){function r(t,r,n){t&&console.error(t),a[n]=r,0===--i&&e(null,a)}var n=t.stacks,i=Object.keys(n).length,a={};for(var o in n)this.glyphSource.getSimpleGlyphs(o,n[o],t.uid,r)}})},{\"../render/line_atlas\":354,\"../source/query_features\":364,\"../source/source\":366,\"../source/source_cache\":367,\"../symbol/glyph_source\":399,\"../symbol/sprite_atlas\":404,\"../util/ajax\":425,\"../util/browser\":426,\"../util/dispatcher\":433,\"../util/evented\":434,\"../util/mapbox\":439,\"../util/util\":442,\"./animation_loop\":375,\"./image_sprite\":376,\"./style_function\":380,\"./style_layer\":381,\"./style_spec\":388,\"./validate_style\":390}],379:[function(t,e,r){\"use strict\";function n(t,e){this.value=s.clone(e),this.isFunction=a.isFunctionDefinition(e),this.json=JSON.stringify(this.value);var r=\"color\"===t.type&&this.value?o(this.value):e;if(this.calculate=a[t.function||\"piecewise-constant\"](r),this.isFeatureConstant=this.calculate.isFeatureConstant,this.isZoomConstant=this.calculate.isZoomConstant,\"piecewise-constant\"===t.function&&t.transition&&(this.calculate=i(this.calculate)),!this.isFeatureConstant&&!this.isZoomConstant){this.stopZoomLevels=[];for(var n=[],l=this.value.stops,u=0;u<this.value.stops.length;u++){var c=l[u][0].zoom;this.stopZoomLevels.indexOf(c)<0&&(this.stopZoomLevels.push(c),n.push([c,n.length]))}this.calculateInterpolationT=a.interpolated({stops:n,base:e.base})}}function i(t){return function(e,r){var n,i,a,o=e.zoom,s=e.zoomHistory,l=e.duration,u=o%1,c=Math.min((Date.now()-s.lastIntegerZoomTime)/l,1),h=1;return o>s.lastIntegerZoom?(n=u+(1-u)*c,h*=2,i=t({zoom:o-1},r),a=t({zoom:o},r)):(n=1-(1-c)*u,a=t({zoom:o},r),i=t({zoom:o+1},r),h/=2),void 0===i||void 0===a?void 0:{from:i,fromScale:h,to:a,toScale:1,t:n}}}var a=t(\"./style_function\"),o=t(\"./parse_color\"),s=t(\"../util/util\");e.exports=n},{\"../util/util\":442,\"./parse_color\":377,\"./style_function\":380}],380:[function(t,e,r){\"use strict\";var n=t(\"mapbox-gl-function\");r.interpolated=function(t){var e=n.interpolated(t),r=function(t,r){return e(t&&t.zoom,r||{})};return r.isFeatureConstant=e.isFeatureConstant,r.isZoomConstant=e.isZoomConstant,r},r[\"piecewise-constant\"]=function(t){var e=n[\"piecewise-constant\"](t),r=function(t,r){return e(t&&t.zoom,r||{})};return r.isFeatureConstant=e.isFeatureConstant,r.isZoomConstant=e.isZoomConstant,r},r.isFunctionDefinition=n.isFunctionDefinition},{\"mapbox-gl-function\":302}],381:[function(t,e,r){\"use strict\";function n(t,e){this.set(t,e)}function i(t){return t.value}var a=t(\"../util/util\"),o=t(\"./style_transition\"),s=t(\"./style_declaration\"),l=t(\"./style_spec\"),u=t(\"./validate_style\"),c=t(\"./parse_color\"),h=t(\"../util/evented\");e.exports=n;n.create=function(e,r){return new({background:t(\"./style_layer/background_style_layer\"),circle:t(\"./style_layer/circle_style_layer\"),fill:t(\"./style_layer/fill_style_layer\"),line:t(\"./style_layer/line_style_layer\"),raster:t(\"./style_layer/raster_style_layer\"),symbol:t(\"./style_layer/symbol_style_layer\")}[(r||e).type])(e,r)},n.prototype=a.inherit(h,{set:function(t,e){this.id=t.id,this.ref=t.ref,this.metadata=t.metadata,this.type=(e||t).type,this.source=(e||t).source,this.sourceLayer=(e||t)[\"source-layer\"],this.minzoom=(e||t).minzoom,this.maxzoom=(e||t).maxzoom,this.filter=(e||t).filter,this.paint={},this.layout={},this._paintSpecifications=l[\"paint_\"+this.type],this._layoutSpecifications=l[\"layout_\"+this.type],this._paintTransitions={},this._paintTransitionOptions={},this._paintDeclarations={},this._layoutDeclarations={},this._layoutFunctions={};var r,n;for(var i in t){var a=i.match(/^paint(?:\\.(.*))?$/);if(a){var o=a[1]||\"\";for(r in t[i])this.setPaintProperty(r,t[i][r],o)}}if(this.ref)this._layoutDeclarations=e._layoutDeclarations;else for(n in t.layout)this.setLayoutProperty(n,t.layout[n]);for(r in this._paintSpecifications)this.paint[r]=this.getPaintValue(r);for(n in this._layoutSpecifications)this._updateLayoutValue(n)},setLayoutProperty:function(t,e){if(null==e)delete this._layoutDeclarations[t];else{var r=\"layers.\"+this.id+\".layout.\"+t;if(this._handleErrors(u.layoutProperty,r,t,e))return;this._layoutDeclarations[t]=new s(this._layoutSpecifications[t],e)}this._updateLayoutValue(t)},getLayoutProperty:function(t){return this._layoutDeclarations[t]&&this._layoutDeclarations[t].value},getLayoutValue:function(t,e,r){var n=this._layoutSpecifications[t],i=this._layoutDeclarations[t];return i?i.calculate(e,r):n.default},setPaintProperty:function(t,e,r){var n=\"layers.\"+this.id+(r?'[\"paint.'+r+'\"].':\".paint.\")+t;if(a.endsWith(t,\"-transition\"))if(this._paintTransitionOptions[r||\"\"]||(this._paintTransitionOptions[r||\"\"]={}),null===e||void 0===e)delete this._paintTransitionOptions[r||\"\"][t];else{if(this._handleErrors(u.paintProperty,n,t,e))return;this._paintTransitionOptions[r||\"\"][t]=e}else if(this._paintDeclarations[r||\"\"]||(this._paintDeclarations[r||\"\"]={}),null===e||void 0===e)delete this._paintDeclarations[r||\"\"][t];else{if(this._handleErrors(u.paintProperty,n,t,e))return;this._paintDeclarations[r||\"\"][t]=new s(this._paintSpecifications[t],e)}},getPaintProperty:function(t,e){return e=e||\"\",a.endsWith(t,\"-transition\")?this._paintTransitionOptions[e]&&this._paintTransitionOptions[e][t]:this._paintDeclarations[e]&&this._paintDeclarations[e][t]&&this._paintDeclarations[e][t].value},getPaintValue:function(t,e,r){var n=this._paintSpecifications[t],i=this._paintTransitions[t];return i?i.calculate(e,r):\"color\"===n.type&&n.default?c(n.default):n.default},getPaintValueStopZoomLevels:function(t){var e=this._paintTransitions[t];return e?e.declaration.stopZoomLevels:[]},getPaintInterpolationT:function(t,e){return this._paintTransitions[t].declaration.calculateInterpolationT({zoom:e})},isPaintValueFeatureConstant:function(t){var e=this._paintTransitions[t];return!e||e.declaration.isFeatureConstant},isLayoutValueFeatureConstant:function(t){var e=this._layoutDeclarations[t];return!e||e.isFeatureConstant},isPaintValueZoomConstant:function(t){var e=this._paintTransitions[t];return!e||e.declaration.isZoomConstant},isHidden:function(t){return!!(this.minzoom&&t<this.minzoom)||(!!(this.maxzoom&&t>=this.maxzoom)||(\"none\"===this.layout.visibility||0===this.paint[this.type+\"-opacity\"]))},updatePaintTransitions:function(t,e,r,n){for(var i=a.extend({},this._paintDeclarations[\"\"]),o=0;o<t.length;o++)a.extend(i,this._paintDeclarations[t[o]]);var s;for(s in i)this._applyPaintDeclaration(s,i[s],e,r,n);for(s in this._paintTransitions)s in i||this._applyPaintDeclaration(s,null,e,r,n)},updatePaintTransition:function(t,e,r,n,i){for(var a=this._paintDeclarations[\"\"][t],o=0;o<e.length;o++){var s=this._paintDeclarations[e[o]];s&&s[t]&&(a=s[t])}this._applyPaintDeclaration(t,a,r,n,i)},recalculate:function(t,e){for(var r in this._paintTransitions)this.paint[r]=this.getPaintValue(r,{zoom:t,zoomHistory:e});for(var n in this._layoutFunctions)this.layout[n]=this.getLayoutValue(n,{zoom:t,zoomHistory:e})},serialize:function(t){var e={id:this.id,ref:this.ref,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom};for(var r in this._paintDeclarations){e[\"\"===r?\"paint\":\"paint.\"+r]=a.mapObject(this._paintDeclarations[r],i)}return(!this.ref||t&&t.includeRefProperties)&&a.extend(e,{type:this.type,source:this.source,\"source-layer\":this.sourceLayer,filter:this.filter,layout:a.mapObject(this._layoutDeclarations,i)}),a.filterObject(e,function(t,e){return void 0!==t&&!(\"layout\"===e&&!Object.keys(t).length)})},_applyPaintDeclaration:function(t,e,r,n,i){var l=r.transition?this._paintTransitions[t]:void 0,u=this._paintSpecifications[t];if(null!==e&&void 0!==e||(e=new s(u,u.default)),!l||l.declaration.json!==e.json){var c=a.extend({duration:300,delay:0},n,this.getPaintProperty(t+\"-transition\")),h=this._paintTransitions[t]=new o(u,e,l,c);h.instant()||(h.loopID=i.set(h.endTime-Date.now())),l&&i.cancel(l.loopID)}},_updateLayoutValue:function(t){var e=this._layoutDeclarations[t];e&&e.isFunction?this._layoutFunctions[t]=!0:(delete this._layoutFunctions[t],this.layout[t]=this.getLayoutValue(t))},_handleErrors:function(t,e,r,n){return u.emitErrors(this,t.call(u,{key:e,layerType:this.type,objectKey:r,value:n,styleSpec:l,style:{glyphs:!0,sprite:!0}}))}})},{\"../util/evented\":434,\"../util/util\":442,\"./parse_color\":377,\"./style_declaration\":379,\"./style_layer/background_style_layer\":382,\"./style_layer/circle_style_layer\":383,\"./style_layer/fill_style_layer\":384,\"./style_layer/line_style_layer\":385,\"./style_layer/raster_style_layer\":386,\"./style_layer/symbol_style_layer\":387,\"./style_spec\":388,\"./style_transition\":389,\"./validate_style\":390}],382:[function(t,e,r){\"use strict\";function n(){a.apply(this,arguments)}var i=t(\"../../util/util\"),a=t(\"../style_layer\");e.exports=n,n.prototype=i.inherit(a,{})},{\"../../util/util\":442,\"../style_layer\":381}],383:[function(t,e,r){\"use strict\";function n(){a.apply(this,arguments)}var i=t(\"../../util/util\"),a=t(\"../style_layer\");e.exports=n,n.prototype=i.inherit(a,{})},{\"../../util/util\":442,\"../style_layer\":381}],384:[function(t,e,r){\"use strict\";function n(){a.apply(this,arguments)}var i=t(\"../../util/util\"),a=t(\"../style_layer\");n.prototype=i.inherit(a,{getPaintValue:function(t,e,r){return\"fill-outline-color\"===t&&void 0===this.getPaintProperty(\"fill-outline-color\")?a.prototype.getPaintValue.call(this,\"fill-color\",e,r):a.prototype.getPaintValue.call(this,t,e,r)},getPaintValueStopZoomLevels:function(t){return\"fill-outline-color\"===t&&void 0===this.getPaintProperty(\"fill-outline-color\")?a.prototype.getPaintValueStopZoomLevels.call(this,\"fill-color\"):a.prototype.getPaintValueStopZoomLevels.call(this,arguments)},getPaintInterpolationT:function(t,e){return\"fill-outline-color\"===t&&void 0===this.getPaintProperty(\"fill-outline-color\")?a.prototype.getPaintInterpolationT.call(this,\"fill-color\",e):a.prototype.getPaintInterpolationT.call(this,t,e)},isPaintValueFeatureConstant:function(t){return\"fill-outline-color\"===t&&void 0===this.getPaintProperty(\"fill-outline-color\")?a.prototype.isPaintValueFeatureConstant.call(this,\"fill-color\"):a.prototype.isPaintValueFeatureConstant.call(this,t)},isPaintValueZoomConstant:function(t){return\"fill-outline-color\"===t&&void 0===this.getPaintProperty(\"fill-outline-color\")?a.prototype.isPaintValueZoomConstant.call(this,\"fill-color\"):a.prototype.isPaintValueZoomConstant.call(this,t)}}),e.exports=n},{\"../../util/util\":442,\"../style_layer\":381}],385:[function(t,e,r){\"use strict\";function n(){a.apply(this,arguments)}var i=t(\"../../util/util\"),a=t(\"../style_layer\");e.exports=n,n.prototype=i.inherit(a,{getPaintValue:function(t,e,r){var n=a.prototype.getPaintValue.apply(this,arguments);if(n&&\"line-dasharray\"===t){var i=Math.floor(e.zoom);this._flooredZoom!==i&&(this._flooredZoom=i,this._flooredLineWidth=this.getPaintValue(\"line-width\",e,r)),n.fromScale*=this._flooredLineWidth,n.toScale*=this._flooredLineWidth}return n}})},{\"../../util/util\":442,\"../style_layer\":381}],386:[function(t,e,r){\"use strict\";function n(){a.apply(this,arguments)}var i=t(\"../../util/util\"),a=t(\"../style_layer\");e.exports=n,n.prototype=i.inherit(a,{})},{\"../../util/util\":442,\"../style_layer\":381}],387:[function(t,e,r){\"use strict\";function n(){a.apply(this,arguments)}var i=t(\"../../util/util\"),a=t(\"../style_layer\");e.exports=n,n.prototype=i.inherit(a,{isHidden:function(){if(a.prototype.isHidden.apply(this,arguments))return!0;var t=0===this.paint[\"text-opacity\"]||!this.layout[\"text-field\"],e=0===this.paint[\"icon-opacity\"]||!this.layout[\"icon-image\"];return!(!t||!e)},getLayoutValue:function(t,e,r){return(\"text-rotation-alignment\"!==t||\"line\"!==this.getLayoutValue(\"symbol-placement\",e,r)||this.getLayoutProperty(\"text-rotation-alignment\"))&&(\"icon-rotation-alignment\"!==t||\"line\"!==this.getLayoutValue(\"symbol-placement\",e,r)||this.getLayoutProperty(\"icon-rotation-alignment\"))?\"text-pitch-alignment\"!==t||this.getLayoutProperty(\"text-pitch-alignment\")?a.prototype.getLayoutValue.apply(this,arguments):this.getLayoutValue(\"text-rotation-alignment\"):\"map\"}})},{\"../../util/util\":442,\"../style_layer\":381}],388:[function(t,e,r){\"use strict\";e.exports=t(\"mapbox-gl-style-spec/reference/latest.min\")},{\"mapbox-gl-style-spec/reference/latest.min\":325}],389:[function(t,e,r){\"use strict\";function n(t,e,r,n){this.declaration=e,this.startTime=this.endTime=(new Date).getTime(),\"piecewise-constant\"===t.function&&t.transition?this.interp=i:this.interp=o[t.type],this.oldTransition=r,this.duration=n.duration||0,this.delay=n.delay||0,this.instant()||(this.endTime=this.startTime+this.duration+this.delay,this.ease=a.easeCubicInOut),r&&r.endTime<=this.startTime&&delete r.oldTransition}function i(t,e,r){return void 0===(t&&t.to)||void 0===(e&&e.to)?void 0:{from:t.to,fromScale:t.toScale,to:e.to,toScale:e.toScale,t:r}}var a=t(\"../util/util\"),o=t(\"../util/interpolate\");e.exports=n,n.prototype.instant=function(){return!this.oldTransition||!this.interp||0===this.duration&&0===this.delay},n.prototype.calculate=function(t,e){var r=this.declaration.calculate(a.extend({},t,{duration:this.duration}),e);if(this.instant())return r;var n=t.time||Date.now();if(n<this.endTime){var i=this.oldTransition.calculate(a.extend({},t,{time:this.startTime}),e),o=this.ease((n-this.startTime-this.delay)/this.duration);r=this.interp(i,r,o)}return r}},{\"../util/interpolate\":436,\"../util/util\":442}],390:[function(t,e,r){\"use strict\";e.exports=t(\"mapbox-gl-style-spec/lib/validate_style.min\"),e.exports.emitErrors=function(t,e){if(e&&e.length){for(var r=0;r<e.length;r++)t.fire(\"error\",{error:new Error(e[r].message)});return!0}return!1},e.exports.throwErrors=function(t,e){if(e)for(var r=0;r<e.length;r++)throw new Error(e[r].message)}},{\"mapbox-gl-style-spec/lib/validate_style.min\":324}],391:[function(t,e,r){\"use strict\";function n(t,e,r,n){this.x=t,this.y=e,this.angle=r,void 0!==n&&(this.segment=n)}var i=t(\"point-geometry\");e.exports=n,n.prototype=Object.create(i.prototype),n.prototype.clone=function(){return new n(this.x,this.y,this.angle,this.segment)}},{\"point-geometry\":484}],392:[function(t,e,r){\"use strict\";function n(t,e,r,n,i){if(void 0===e.segment)return!0;for(var a=e,o=e.segment+1,s=0;s>-r/2;){if(--o<0)return!1;s-=t[o].dist(a),a=t[o]}s+=t[o].dist(t[o+1]),o++;for(var l=[],u=0;s<r/2;){var c=t[o-1],h=t[o],f=t[o+1];if(!f)return!1;var d=c.angleTo(h)-h.angleTo(f);for(d=Math.abs((d+3*Math.PI)%(2*Math.PI)-Math.PI),l.push({distance:s,angleDelta:d}),u+=d;s-l[0].distance>n;)u-=l.shift().angleDelta;if(u>i)return!1;o++,s+=h.dist(f)}return!0}e.exports=n},{}],393:[function(t,e,r){\"use strict\";function n(t,e,r,n,a){for(var o=[],s=0;s<t.length;s++)for(var l,u=t[s],c=0;c<u.length-1;c++){var h=u[c],f=u[c+1];h.x<e&&f.x<e||(h.x<e?h=new i(e,h.y+(f.y-h.y)*((e-h.x)/(f.x-h.x)))._round():f.x<e&&(f=new i(e,h.y+(f.y-h.y)*((e-h.x)/(f.x-h.x)))._round()),h.y<r&&f.y<r||(h.y<r?h=new i(h.x+(f.x-h.x)*((r-h.y)/(f.y-h.y)),r)._round():f.y<r&&(f=new i(h.x+(f.x-h.x)*((r-h.y)/(f.y-h.y)),r)._round()),h.x>=n&&f.x>=n||(h.x>=n?h=new i(n,h.y+(f.y-h.y)*((n-h.x)/(f.x-h.x)))._round():f.x>=n&&(f=new i(n,h.y+(f.y-h.y)*((n-h.x)/(f.x-h.x)))._round()),h.y>=a&&f.y>=a||(h.y>=a?h=new i(h.x+(f.x-h.x)*((a-h.y)/(f.y-h.y)),a)._round():f.y>=a&&(f=new i(h.x+(f.x-h.x)*((a-h.y)/(f.y-h.y)),a)._round()),l&&h.equals(l[l.length-1])||(l=[h],o.push(l)),l.push(f)))))}return o}var i=t(\"point-geometry\");e.exports=n},{\"point-geometry\":484}],394:[function(t,e,r){\"use strict\";var n=t(\"../util/struct_array\"),i=t(\"../util/util\"),a=t(\"point-geometry\"),o=e.exports=new n({members:[{type:\"Int16\",name:\"anchorPointX\"},{type:\"Int16\",name:\"anchorPointY\"},{type:\"Int16\",name:\"x1\"},{type:\"Int16\",name:\"y1\"},{type:\"Int16\",name:\"x2\"},{type:\"Int16\",name:\"y2\"},{type:\"Float32\",name:\"maxScale\"},{type:\"Uint32\",name:\"featureIndex\"},{type:\"Uint16\",name:\"sourceLayerIndex\"},{type:\"Uint16\",name:\"bucketIndex\"},{type:\"Int16\",name:\"bbox0\"},{type:\"Int16\",name:\"bbox1\"},{type:\"Int16\",name:\"bbox2\"},{type:\"Int16\",name:\"bbox3\"},{type:\"Float32\",name:\"placementScale\"}]});i.extendAll(o.prototype.StructType.prototype,{get anchorPoint(){return new a(this.anchorPointX,this.anchorPointY)}})},{\"../util/struct_array\":440,\"../util/util\":442,\"point-geometry\":484}],395:[function(t,e,r){\"use strict\";function n(t,e,r,n,i,a,o,s,l,u,c){var h=o.top*s-l,f=o.bottom*s+l,d=o.left*s-l,p=o.right*s+l;if(this.boxStartIndex=t.length,u){var m=f-h,v=p-d;if(m>0)if(m=Math.max(10*s,m),c){var g=e[r.segment+1].sub(e[r.segment])._unit()._mult(v),y=[r.sub(g),r.add(g)];this._addLineCollisionBoxes(t,y,r,0,v,m,n,i,a)}else this._addLineCollisionBoxes(t,e,r,r.segment,v,m,n,i,a)}else t.emplaceBack(r.x,r.y,d,h,p,f,1/0,n,i,a,0,0,0,0,0);this.boxEndIndex=t.length}e.exports=n,n.prototype._addLineCollisionBoxes=function(t,e,r,n,i,a,o,s,l){var u=a/2,c=Math.floor(i/u),h=-a/2,f=this.boxes,d=r,p=n+1,m=h;do{if(--p<0)return f;m-=e[p].dist(d),d=e[p]}while(m>-i/2);for(var v=e[p].dist(e[p+1]),g=0;g<c;g++){for(var y=-i/2+g*u;m+v<y;){if(m+=v,++p+1>=e.length)return f;v=e[p].dist(e[p+1])}var b=y-m,x=e[p],_=e[p+1],w=_.sub(x)._unit()._mult(b)._add(x)._round(),M=Math.max(Math.abs(y-h)-u/2,0),k=i/2/M;t.emplaceBack(w.x,w.y,-a/2,-a/2,a/2,a/2,k,o,s,l,0,0,0,0,0)}return f}},{}],396:[function(t,e,r){\"use strict\";function n(t,e,r){if(\"object\"==typeof t){var n=t;r=e,t=n.angle,e=n.pitch,this.grid=new o(n.grid),this.ignoredGrid=new o(n.ignoredGrid)}else this.grid=new o(a,12,6),this.ignoredGrid=new o(a,12,0);this.angle=t,this.pitch=e;var i=Math.sin(t),s=Math.cos(t);if(this.rotationMatrix=[s,-i,i,s],this.reverseRotationMatrix=[s,i,-i,s],this.yStretch=1/Math.cos(e/180*Math.PI),this.yStretch=Math.pow(this.yStretch,1.3),this.collisionBoxArray=r,0===r.length){r.emplaceBack();r.emplaceBack(0,0,0,-32767,0,32767,32767,0,0,0,0,0,0,0,0,0),r.emplaceBack(a,0,0,-32767,0,32767,32767,0,0,0,0,0,0,0,0,0),r.emplaceBack(0,0,-32767,0,32767,0,32767,0,0,0,0,0,0,0,0,0),r.emplaceBack(0,a,-32767,0,32767,0,32767,0,0,0,0,0,0,0,0,0)}this.tempCollisionBox=r.get(0),this.edges=[r.get(1),r.get(2),r.get(3),r.get(4)]}var i=t(\"point-geometry\"),a=t(\"../data/bucket\").EXTENT,o=t(\"grid-index\");e.exports=n,n.prototype.serialize=function(){var t={angle:this.angle,pitch:this.pitch,grid:this.grid.toArrayBuffer(),ignoredGrid:this.ignoredGrid.toArrayBuffer()};return{data:t,transferables:[t.grid,t.ignoredGrid]}},n.prototype.minScale=.25,n.prototype.maxScale=2,n.prototype.placeCollisionFeature=function(t,e,r){for(var n=this.collisionBoxArray,a=this.minScale,o=this.rotationMatrix,s=this.yStretch,l=t.boxStartIndex;l<t.boxEndIndex;l++){var u=n.get(l),c=u.anchorPoint._matMult(o),h=c.x,f=c.y,d=h+u.x1,p=f+u.y1*s,m=h+u.x2,v=f+u.y2*s;if(u.bbox0=d,u.bbox1=p,u.bbox2=m,u.bbox3=v,!e)for(var g=this.grid.query(d,p,m,v),y=0;y<g.length;y++){var b=n.get(g[y]),x=b.anchorPoint._matMult(o);if((a=this.getPlacementScale(a,c,u,x,b))>=this.maxScale)return a}if(r){var _;if(this.angle){var w=this.reverseRotationMatrix,M=new i(u.x1,u.y1).matMult(w),k=new i(u.x2,u.y1).matMult(w),A=new i(u.x1,u.y2).matMult(w),T=new i(u.x2,u.y2).matMult(w);_=this.tempCollisionBox,_.anchorPointX=u.anchorPoint.x,_.anchorPointY=u.anchorPoint.y,_.x1=Math.min(M.x,k.x,A.x,T.x),_.y1=Math.min(M.y,k.x,A.x,T.x),_.x2=Math.max(M.x,k.x,A.x,T.x),_.y2=Math.max(M.y,k.x,A.x,T.x),_.maxScale=u.maxScale}else _=u;for(var S=0;S<this.edges.length;S++){var E=this.edges[S];if((a=this.getPlacementScale(a,u.anchorPoint,_,E.anchorPoint,E))>=this.maxScale)return a}}}return a},n.prototype.queryRenderedSymbols=function(t,e,r,n,a){var o={},s=[],l=this.collisionBoxArray,u=this.rotationMatrix,c=new i(t,e)._matMult(u),h=this.tempCollisionBox;h.anchorX=c.x,h.anchorY=c.y,h.x1=0,h.y1=0,h.x2=r-t,h.y2=n-e,h.maxScale=a,a=h.maxScale;for(var f=[c.x+h.x1/a,c.y+h.y1/a*this.yStretch,c.x+h.x2/a,c.y+h.y2/a*this.yStretch],d=this.grid.query(f[0],f[1],f[2],f[3]),p=this.ignoredGrid.query(f[0],f[1],f[2],f[3]),m=0;m<p.length;m++)d.push(p[m]);for(var v=0;v<d.length;v++){var g=l.get(d[v]),y=g.sourceLayerIndex,b=g.featureIndex;if(void 0===o[y]&&(o[y]={}),!o[y][b]){var x=g.anchorPoint.matMult(u);this.getPlacementScale(this.minScale,c,h,x,g)>=a&&(o[y][b]=!0,s.push(d[v]))}}return s},n.prototype.getPlacementScale=function(t,e,r,n,i){var a=e.x-n.x,o=e.y-n.y,s=(i.x1-r.x2)/a,l=(i.x2-r.x1)/a,u=(i.y1-r.y2)*this.yStretch/o,c=(i.y2-r.y1)*this.yStretch/o;(isNaN(s)||isNaN(l))&&(s=l=1),(isNaN(u)||isNaN(c))&&(u=c=1);var h=Math.min(Math.max(s,l),Math.max(u,c)),f=i.maxScale,d=r.maxScale;return h>f&&(h=f),h>d&&(h=d),h>t&&h>=i.placementScale&&(t=h),t},n.prototype.insertCollisionFeature=function(t,e,r){for(var n=r?this.ignoredGrid:this.grid,i=this.collisionBoxArray,a=t.boxStartIndex;a<t.boxEndIndex;a++){var o=i.get(a);o.placementScale=e,e<this.maxScale&&n.insert(a,o.bbox0,o.bbox1,o.bbox2,o.bbox3)}}},{\"../data/bucket\":329,\"grid-index\":287,\"point-geometry\":484}],397:[function(t,e,r){\"use strict\";function n(t,e,r,n,a,o,s,l,u){var c=n?.6*o*s:0,h=Math.max(n?n.right-n.left:0,a?a.right-a.left:0),f=0===t[0].x||t[0].x===u||0===t[0].y||t[0].y===u;e-h*s<e/4&&(e=h*s+e/4);var d=2*o;return i(t,f?e/2*l%e:(h/2+d)*s*l%e,e,c,r,h*s,f,!1,u)}function i(t,e,r,n,l,u,c,h,f){for(var d=u/2,p=0,m=0;m<t.length-1;m++)p+=t[m].dist(t[m+1]);for(var v=0,g=e-r,y=[],b=0;b<t.length-1;b++){for(var x=t[b],_=t[b+1],w=x.dist(_),M=_.angleTo(x);g+r<v+w;){g+=r;var k=(g-v)/w,A=a(x.x,_.x,k),T=a(x.y,_.y,k);if(A>=0&&A<f&&T>=0&&T<f&&g-d>=0&&g+d<=p){var S=new o(A,T,M,b)._round();n&&!s(t,S,u,n,l)||y.push(S)}}v+=w}return h||y.length||c||(y=i(t,v/2,r,n,l,u,c,!0,f)),y}var a=t(\"../util/interpolate\"),o=t(\"../symbol/anchor\"),s=t(\"./check_max_angle\");e.exports=n},{\"../symbol/anchor\":391,\"../util/interpolate\":436,\"./check_max_angle\":392}],398:[function(t,e,r){\"use strict\";function n(){this.width=o,this.height=o,this.bin=new i(this.width,this.height),this.index={},this.ids={},this.data=new Uint8Array(this.width*this.height)}var i=t(\"shelf-pack\"),a=t(\"../util/util\"),o=128;e.exports=n,n.prototype.getGlyphs=function(){var t,e,r,n={};for(var i in this.ids)t=i.split(\"#\"),e=t[0],r=t[1],n[e]||(n[e]=[]),n[e].push(r);return n},n.prototype.getRects=function(){var t,e,r,n={};for(var i in this.ids)t=i.split(\"#\"),e=t[0],r=t[1],n[e]||(n[e]={}),n[e][r]=this.index[i];return n},n.prototype.addGlyph=function(t,e,r,n){if(!r)return null;var i=e+\"#\"+r.id;if(this.index[i])return this.ids[i].indexOf(t)<0&&this.ids[i].push(t),this.index[i];if(!r.bitmap)return null;var o=r.width+2*n,s=r.height+2*n,l=o+2,u=s+2;l+=4-l%4,u+=4-u%4;var c=this.bin.packOne(l,u);if(c||(this.resize(),c=this.bin.packOne(l,u)),!c)return a.warnOnce(\"glyph bitmap overflow\"),null;this.index[i]=c,this.ids[i]=[t];for(var h=this.data,f=r.bitmap,d=0;d<s;d++)for(var p=this.width*(c.y+d+1)+c.x+1,m=o*d,v=0;v<o;v++)h[p+v]=f[m+v];return this.dirty=!0,c},n.prototype.resize=function(){var t=this.width,e=this.height;if(!(t>=2048||e>=2048)){this.texture&&(this.gl&&this.gl.deleteTexture(this.texture),this.texture=null),this.width*=4,this.height*=4,this.bin.resize(this.width,this.height);for(var r=new ArrayBuffer(this.width*this.height),n=0;n<e;n++){var i=new Uint8Array(this.data.buffer,e*n,t);new Uint8Array(r,e*n*4,t).set(i)}this.data=new Uint8Array(r)}},n.prototype.bind=function(t){this.gl=t,this.texture?t.bindTexture(t.TEXTURE_2D,this.texture):(this.texture=t.createTexture(),t.bindTexture(t.TEXTURE_2D,this.texture),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),t.texImage2D(t.TEXTURE_2D,0,t.ALPHA,this.width,this.height,0,t.ALPHA,t.UNSIGNED_BYTE,null))},n.prototype.updateTexture=function(t){this.bind(t),this.dirty&&(t.texSubImage2D(t.TEXTURE_2D,0,0,0,this.width,this.height,t.ALPHA,t.UNSIGNED_BYTE,this.data),this.dirty=!1)}},{\"../util/util\":442,\"shelf-pack\":514}],399:[function(t,e,r){\"use strict\";function n(t){this.url=t&&o(t),this.atlases={},this.stacks={},this.loading={}}function i(t,e,r){this.advance=t.advance,this.left=t.left-r-1,this.top=t.top+r+1,this.rect=e}function a(t,e,r,n){return n=n||\"abc\",r.replace(\"{s}\",n[t.length%n.length]).replace(\"{fontstack}\",t).replace(\"{range}\",e)}var o=t(\"../util/mapbox\").normalizeGlyphsURL,s=t(\"../util/ajax\").getArrayBuffer,l=t(\"../util/glyphs\"),u=t(\"../symbol/glyph_atlas\"),c=t(\"pbf\");e.exports=n,n.prototype.getSimpleGlyphs=function(t,e,r,n){void 0===this.stacks[t]&&(this.stacks[t]={}),void 0===this.atlases[t]&&(this.atlases[t]=new u);for(var a,o={},s=this.stacks[t],l=this.atlases[t],c={},h=0,f=0;f<e.length;f++){var d=e[f];if(a=Math.floor(d/256),s[a]){var p=s[a].glyphs[d],m=l.addGlyph(r,t,p,3);p&&(o[d]=new i(p,m,3))}else void 0===c[a]&&(c[a]=[],h++),c[a].push(d)}h||n(void 0,o,t);var v=function(e,a,s){if(!e)for(var u=this.stacks[t][a]=s.stacks[0],f=0;f<c[a].length;f++){var d=c[a][f],p=u.glyphs[d],m=l.addGlyph(r,t,p,3);p&&(o[d]=new i(p,m,3))}--h||n(void 0,o,t)}.bind(this);for(var g in c)this.loadRange(t,g,v)},n.prototype.loadRange=function(t,e,r){if(256*e>65535)return r(\"glyphs > 65535 not supported\");void 0===this.loading[t]&&(this.loading[t]={});var n=this.loading[t];if(n[e])n[e].push(r);else{n[e]=[r];var i=256*e+\"-\"+(256*e+255),o=a(t,i,this.url);s(o,function(t,r){for(var i=!t&&new l(new c(new Uint8Array(r))),a=0;a<n[e].length;a++)n[e][a](t,e,i);delete n[e]})}},n.prototype.getGlyphAtlas=function(t){return this.atlases[t]}},{\"../symbol/glyph_atlas\":398,\"../util/ajax\":425,\"../util/glyphs\":435,\"../util/mapbox\":439,pbf:478}],400:[function(t,e,r){\"use strict\";e.exports=function(t,e,r){function n(n){c.push(t[n]),h.push(r[n]),f.push(e[n]),d++}function i(t,e,r){var n=u[t];return delete u[t],u[e]=n,h[n][0].pop(),h[n][0]=h[n][0].concat(r[0]),n}function a(t,e,r){var n=l[e];return delete l[e],l[t]=n,h[n][0].shift(),h[n][0]=r[0].concat(h[n][0]),n}function o(t,e,r){var n=r?e[0][e[0].length-1]:e[0][0];return t+\":\"+n.x+\":\"+n.y}var s,l={},u={},c=[],h=[],f=[],d=0;for(s=0;s<t.length;s++){var p=r[s],m=e[s];if(m){var v=o(m,p),g=o(m,p,!0);if(v in u&&g in l&&u[v]!==l[g]){var y=a(v,g,p),b=i(v,g,h[y]);delete l[v],delete u[g],u[o(m,h[b],!0)]=b,h[y]=null}else v in u?i(v,g,p):g in l?a(v,g,p):(n(s),l[v]=d-1,u[g]=d-1)}else n(s)}return{features:c,textFeatures:f,geometries:h}}},{}],401:[function(t,e,r){\"use strict\";function n(t,e,r,n,i,a,o,s,l,u){this.anchorPoint=t,this.tl=e,this.tr=r,this.bl=n,this.br=i,this.tex=a,this.anchorAngle=o,this.glyphAngle=s,this.minScale=l,this.maxScale=u}function i(t,e,r,i,a,o,u,c,h){var f,d,p,m,v=e.image.rect,g=a.layout,y=e.left-1,b=y+v.w/e.image.pixelRatio,x=e.top-1,_=x+v.h/e.image.pixelRatio;if(\"none\"!==g[\"icon-text-fit\"]&&u){var w=b-y,M=_-x,k=g[\"text-size\"]/24,A=u.left*k,T=u.right*k,S=u.top*k,E=u.bottom*k,L=T-A,C=E-S,I=g[\"icon-text-fit-padding\"][0],z=g[\"icon-text-fit-padding\"][1],D=g[\"icon-text-fit-padding\"][2],P=g[\"icon-text-fit-padding\"][3],O=\"width\"===g[\"icon-text-fit\"]?.5*(C-M):0,R=\"height\"===g[\"icon-text-fit\"]?.5*(L-w):0,F=\"width\"===g[\"icon-text-fit\"]||\"both\"===g[\"icon-text-fit\"]?L:w,j=\"height\"===g[\"icon-text-fit\"]||\"both\"===g[\"icon-text-fit\"]?C:M;f=new s(A+R-P,S+O-I),d=new s(A+R+z+F,S+O-I),p=new s(A+R+z+F,S+O+D+j),m=new s(A+R-P,S+O+D+j)}else f=new s(y,x),d=new s(b,x),p=new s(b,_),m=new s(y,_);var N=a.getLayoutValue(\"icon-rotate\",c,h)*Math.PI/180;if(o){var B=i[t.segment];if(t.y===B.y&&t.x===B.x&&t.segment+1<i.length){var U=i[t.segment+1];N+=Math.atan2(t.y-U.y,t.x-U.x)+Math.PI}else N+=Math.atan2(t.y-B.y,t.x-B.x)}if(N){var V=Math.sin(N),H=Math.cos(N),q=[H,-V,V,H];f=f.matMult(q),d=d.matMult(q),m=m.matMult(q),p=p.matMult(q)}return[new n(new s(t.x,t.y),f,d,m,p,e.image.rect,0,0,l,1/0)]}function a(t,e,r,i,a,u){for(var c=a.layout[\"text-rotate\"]*Math.PI/180,h=a.layout[\"text-keep-upright\"],f=e.positionedGlyphs,d=[],p=0;p<f.length;p++){var m=f[p],v=m.glyph,g=v.rect;if(g){var y,b=(m.x+v.advance/2)*r,x=l;u?(y=[],x=o(y,t,b,i,t.segment,!0),h&&(x=Math.min(x,o(y,t,b,i,t.segment,!1)))):y=[{anchorPoint:new s(t.x,t.y),offset:0,angle:0,maxScale:1/0,minScale:l}];for(var _=m.x+v.left,w=m.y-v.top,M=_+g.w,k=w+g.h,A=new s(_,w),T=new s(M,w),S=new s(_,k),E=new s(M,k),L=0;L<y.length;L++){var C=y[L],I=A,z=T,D=S,P=E;if(c){var O=Math.sin(c),R=Math.cos(c),F=[R,-O,O,R];I=I.matMult(F),z=z.matMult(F),D=D.matMult(F),P=P.matMult(F)}var j=Math.max(C.minScale,x),N=(t.angle+C.offset+2*Math.PI)%(2*Math.PI),B=(C.angle+C.offset+2*Math.PI)%(2*Math.PI);d.push(new n(C.anchorPoint,I,z,D,P,g,N,B,j,C.maxScale))}}}return d}function o(t,e,r,n,i,a){var o=!a;r<0&&(a=!a),a&&i++;var u=new s(e.x,e.y),c=n[i],h=1/0;r=Math.abs(r);for(var f=l;;){var d=u.dist(c),p=r/d,m=Math.atan2(c.y-u.y,c.x-u.x);if(a||(m+=Math.PI),t.push({anchorPoint:u,offset:o?Math.PI:0,minScale:p,maxScale:h,angle:(m+2*Math.PI)%(2*Math.PI)}),p<=f)break;for(u=c;u.equals(c);)if(i+=a?1:-1,!(c=n[i]))return p;var v=c.sub(u)._unit();u=u.sub(v._mult(d)),h=p}return f}var s=t(\"point-geometry\");e.exports={getIconQuads:i,getGlyphQuads:a,SymbolQuad:n};var l=.5},{\"point-geometry\":484}],402:[function(t,e,r){\"use strict\";function n(t,e,r){for(var n=[],a=0,o=t.length;a<o;a++){var s=i(t[a].properties,e[\"text-field\"]);if(s){s=s.toString();var l=e[\"text-transform\"];\"uppercase\"===l?s=s.toLocaleUpperCase():\"lowercase\"===l&&(s=s.toLocaleLowerCase());for(var u=0;u<s.length;u++)r[s.charCodeAt(u)]=!0;n[a]=s}else n[a]=null}return n}var i=t(\"../util/token\");e.exports=n},{\"../util/token\":441}],403:[function(t,e,r){\"use strict\";function n(t,e,r,n){this.codePoint=t,this.x=e,this.y=r,this.glyph=n}function i(t,e,r,n,i,a){this.positionedGlyphs=t,this.text=e,this.top=r,this.bottom=n,this.left=i,this.right=a}function a(t,e,r,a,s,l,u,c,h){for(var f=[],d=new i(f,t,h[1],h[1],h[0],h[0]),p=0,m=0;m<t.length;m++){var v=t.charCodeAt(m),g=e[v];g&&(f.push(new n(v,p,-17,g)),p+=g.advance+c)}return!!f.length&&(o(d,e,a,r,s,l,u,h),d)}function o(t,e,r,n,i,a,o,u){var c=null,d=0,p=0,m=0,v=0,g=t.positionedGlyphs;if(n)for(var y=0;y<g.length;y++){var b=g[y];if(b.x-=d,b.y+=r*m,b.x>n&&null!==c){var x=g[c+1].x;v=Math.max(x,v);for(var _=c+1;_<=y;_++)g[_].y+=r,g[_].x-=x;if(o){var w=c;h[g[c].codePoint]&&w--,s(g,e,p,w,o)}p=c+1,c=null,d+=x,m++}f[b.codePoint]&&(c=y)}var M=g[g.length-1],k=M.x+e[M.codePoint].advance;v=Math.max(v,k);var A=(m+1)*r;s(g,e,p,g.length-1,o),l(g,o,i,a,v,r,m,u),t.top+=-a*A,t.bottom=t.top+A,t.left+=-i*v,t.right=t.left+v}function s(t,e,r,n,i){for(var a=e[t[n].codePoint].advance,o=(t[n].x+a)*i,s=r;s<=n;s++)t[s].x-=o}\n", "function l(t,e,r,n,i,a,o,s){for(var l=(e-r)*i+s[0],u=(-n*(o+1)+.5)*a+s[1],c=0;c<t.length;c++)t[c].x+=l,t[c].y+=u}function u(t,e){if(!t||!t.rect)return null;var r=e[\"icon-offset\"][0],n=e[\"icon-offset\"][1],i=r-t.width/2,a=i+t.width,o=n-t.height/2;return new c(t,o,o+t.height,i,a)}function c(t,e,r,n,i){this.image=t,this.top=e,this.bottom=r,this.left=n,this.right=i}e.exports={shapeText:a,shapeIcon:u};var h={32:!0,8203:!0},f={32:!0,38:!0,43:!0,45:!0,47:!0,173:!0,183:!0,8203:!0,8208:!0,8211:!0}},{}],404:[function(t,e,r){\"use strict\";function n(t,e){this.width=t,this.height=e,this.bin=new o(t,e),this.images={},this.data=!1,this.texture=0,this.filter=0,this.pixelRatio=1,this.dirty=!0}function i(t,e,r,n,i,a,o,s,l,u,c){var h,f,d=n*e+r,p=s*a+o;if(c)for(p-=a,f=-1;f<=u;f++,d=((f+u)%u+n)*e+r,p+=a)for(h=-1;h<=l;h++)i[p+h]=t[d+(h+l)%l];else for(f=0;f<u;f++,d+=e,p+=a)for(h=0;h<l;h++)i[p+h]=t[d+h]}function a(t,e,r,n,i){this.rect=t,this.width=e,this.height=r,this.sdf=n,this.pixelRatio=i}var o=t(\"shelf-pack\"),s=t(\"../util/browser\"),l=t(\"../util/util\");e.exports=n,n.prototype.allocateImage=function(t,e){t/=this.pixelRatio,e/=this.pixelRatio;var r=t+2+(4-(t+2)%4),n=e+2+(4-(e+2)%4),i=this.bin.packOne(r,n);return i||(l.warnOnce(\"SpriteAtlas out of space.\"),null)},n.prototype.getImage=function(t,e){if(this.images[t])return this.images[t];if(!this.sprite)return null;var r=this.sprite.getSpritePosition(t);if(!r.width||!r.height)return null;var n=this.allocateImage(r.width,r.height);if(!n)return null;var i=new a(n,r.width/r.pixelRatio,r.height/r.pixelRatio,r.sdf,r.pixelRatio/this.pixelRatio);return this.images[t]=i,this.copy(n,r,e),i},n.prototype.getPosition=function(t,e){var r=this.getImage(t,e),n=r&&r.rect;if(!n)return null;var i=r.width*r.pixelRatio,a=r.height*r.pixelRatio;return{size:[r.width,r.height],tl:[(n.x+1)/this.width,(n.y+1)/this.height],br:[(n.x+1+i)/this.width,(n.y+1+a)/this.height]}},n.prototype.allocate=function(){if(!this.data){var t=Math.floor(this.width*this.pixelRatio),e=Math.floor(this.height*this.pixelRatio);this.data=new Uint32Array(t*e);for(var r=0;r<this.data.length;r++)this.data[r]=0}},n.prototype.copy=function(t,e,r){if(this.sprite.img.data){var n=new Uint32Array(this.sprite.img.data.buffer);this.allocate();var a=this.data;i(n,this.sprite.img.width,e.x,e.y,a,this.width*this.pixelRatio,(t.x+1)*this.pixelRatio,(t.y+1)*this.pixelRatio,e.width,e.height,r),this.dirty=!0}},n.prototype.setSprite=function(t){t&&(this.pixelRatio=s.devicePixelRatio>1?2:1,this.canvas&&(this.canvas.width=this.width*this.pixelRatio,this.canvas.height=this.height*this.pixelRatio)),this.sprite=t},n.prototype.addIcons=function(t,e){for(var r=0;r<t.length;r++)this.getImage(t[r]);e(null,this.images)},n.prototype.bind=function(t,e){var r=!1;this.texture?t.bindTexture(t.TEXTURE_2D,this.texture):(this.texture=t.createTexture(),t.bindTexture(t.TEXTURE_2D,this.texture),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),r=!0);var n=e?t.LINEAR:t.NEAREST;n!==this.filter&&(t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,n),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,n),this.filter=n),this.dirty&&(this.allocate(),r?t.texImage2D(t.TEXTURE_2D,0,t.RGBA,this.width*this.pixelRatio,this.height*this.pixelRatio,0,t.RGBA,t.UNSIGNED_BYTE,new Uint8Array(this.data.buffer)):t.texSubImage2D(t.TEXTURE_2D,0,0,0,this.width*this.pixelRatio,this.height*this.pixelRatio,t.RGBA,t.UNSIGNED_BYTE,new Uint8Array(this.data.buffer)),this.dirty=!1)}},{\"../util/browser\":426,\"../util/util\":442,\"shelf-pack\":514}],405:[function(t,e,r){\"use strict\";var n=t(\"../util/struct_array\"),i=t(\"../util/util\"),a=t(\"point-geometry\"),o=e.exports=new n({members:[{type:\"Uint16\",name:\"textBoxStartIndex\"},{type:\"Uint16\",name:\"textBoxEndIndex\"},{type:\"Uint16\",name:\"iconBoxStartIndex\"},{type:\"Uint16\",name:\"iconBoxEndIndex\"},{type:\"Uint16\",name:\"glyphQuadStartIndex\"},{type:\"Uint16\",name:\"glyphQuadEndIndex\"},{type:\"Uint16\",name:\"iconQuadStartIndex\"},{type:\"Uint16\",name:\"iconQuadEndIndex\"},{type:\"Int16\",name:\"anchorPointX\"},{type:\"Int16\",name:\"anchorPointY\"},{type:\"Int8\",name:\"index\"}]});i.extendAll(o.prototype.StructType.prototype,{get anchorPoint(){return new a(this.anchorPointX,this.anchorPointY)}})},{\"../util/struct_array\":440,\"../util/util\":442,\"point-geometry\":484}],406:[function(t,e,r){\"use strict\";var n=t(\"../util/struct_array\"),i=t(\"../util/util\"),a=t(\"point-geometry\"),o=t(\"./quads\").SymbolQuad,s=e.exports=new n({members:[{type:\"Int16\",name:\"anchorPointX\"},{type:\"Int16\",name:\"anchorPointY\"},{type:\"Float32\",name:\"tlX\"},{type:\"Float32\",name:\"tlY\"},{type:\"Float32\",name:\"trX\"},{type:\"Float32\",name:\"trY\"},{type:\"Float32\",name:\"blX\"},{type:\"Float32\",name:\"blY\"},{type:\"Float32\",name:\"brX\"},{type:\"Float32\",name:\"brY\"},{type:\"Int16\",name:\"texH\"},{type:\"Int16\",name:\"texW\"},{type:\"Int16\",name:\"texX\"},{type:\"Int16\",name:\"texY\"},{type:\"Float32\",name:\"anchorAngle\"},{type:\"Float32\",name:\"glyphAngle\"},{type:\"Float32\",name:\"maxScale\"},{type:\"Float32\",name:\"minScale\"}]});i.extendAll(s.prototype.StructType.prototype,{get anchorPoint(){return new a(this.anchorPointX,this.anchorPointY)},get SymbolQuad(){return new o(this.anchorPoint,new a(this.tlX,this.tlY),new a(this.trX,this.trY),new a(this.blX,this.blY),new a(this.brX,this.brY),{x:this.texX,y:this.texY,h:this.texH,w:this.texW,height:this.texH,width:this.texW},this.anchorAngle,this.glyphAngle,this.minScale,this.maxScale)}})},{\"../util/struct_array\":440,\"../util/util\":442,\"./quads\":401,\"point-geometry\":484}],407:[function(t,e,r){\"use strict\";var n=t(\"../util/dom\"),i=t(\"point-geometry\"),a={scrollZoom:t(\"./handler/scroll_zoom\"),boxZoom:t(\"./handler/box_zoom\"),dragRotate:t(\"./handler/drag_rotate\"),dragPan:t(\"./handler/drag_pan\"),keyboard:t(\"./handler/keyboard\"),doubleClickZoom:t(\"./handler/dblclick_zoom\"),touchZoomRotate:t(\"./handler/touch_zoom_rotate\")};e.exports=function(t,e){function r(t){g(\"mouseout\",t)}function o(e){t.stop(),_=n.mousePos(b,e),g(\"mousedown\",e)}function s(e){var r=t.dragRotate&&t.dragRotate.isActive();x&&!r&&g(\"contextmenu\",x),x=null,g(\"mouseup\",e)}function l(e){if(!(t.dragPan&&t.dragPan.isActive()||t.dragRotate&&t.dragRotate.isActive())){for(var r=e.toElement||e.target;r&&r!==b;)r=r.parentNode;r===b&&g(\"mousemove\",e)}}function u(e){t.stop(),y(\"touchstart\",e),!e.touches||e.touches.length>1||(w?(clearTimeout(w),w=null,g(\"dblclick\",e)):w=setTimeout(d,300))}function c(t){y(\"touchmove\",t)}function h(t){y(\"touchend\",t)}function f(t){y(\"touchcancel\",t)}function d(){w=null}function p(t){n.mousePos(b,t).equals(_)&&g(\"click\",t)}function m(t){g(\"dblclick\",t),t.preventDefault()}function v(t){x=t,t.preventDefault()}function g(e,r){var i=n.mousePos(b,r);return t.fire(e,{lngLat:t.unproject(i),point:i,originalEvent:r})}function y(e,r){var a=n.touchPos(b,r),o=a.reduce(function(t,e,r,n){return t.add(e.div(n.length))},new i(0,0));return t.fire(e,{lngLat:t.unproject(o),point:o,lngLats:a.map(function(e){return t.unproject(e)},this),points:a,originalEvent:r})}var b=t.getCanvasContainer(),x=null,_=null,w=null;for(var M in a)t[M]=new a[M](t,e),e.interactive&&e[M]&&t[M].enable();b.addEventListener(\"mouseout\",r,!1),b.addEventListener(\"mousedown\",o,!1),b.addEventListener(\"mouseup\",s,!1),b.addEventListener(\"mousemove\",l,!1),b.addEventListener(\"touchstart\",u,!1),b.addEventListener(\"touchend\",h,!1),b.addEventListener(\"touchmove\",c,!1),b.addEventListener(\"touchcancel\",f,!1),b.addEventListener(\"click\",p,!1),b.addEventListener(\"dblclick\",m,!1),b.addEventListener(\"contextmenu\",v,!1)}},{\"../util/dom\":428,\"./handler/box_zoom\":413,\"./handler/dblclick_zoom\":414,\"./handler/drag_pan\":415,\"./handler/drag_rotate\":416,\"./handler/keyboard\":417,\"./handler/scroll_zoom\":418,\"./handler/touch_zoom_rotate\":419,\"point-geometry\":484}],408:[function(t,e,r){\"use strict\";var n=t(\"../util/util\"),i=t(\"../util/interpolate\"),a=t(\"../util/browser\"),o=t(\"../geo/lng_lat\"),s=t(\"../geo/lng_lat_bounds\"),l=t(\"point-geometry\"),u=e.exports=function(){};n.extend(u.prototype,{getCenter:function(){return this.transform.center},setCenter:function(t,e){return this.jumpTo({center:t},e),this},panBy:function(t,e,r){return this.panTo(this.transform.center,n.extend({offset:l.convert(t).mult(-1)},e),r),this},panTo:function(t,e,r){return this.easeTo(n.extend({center:t},e),r)},getZoom:function(){return this.transform.zoom},setZoom:function(t,e){return this.jumpTo({zoom:t},e),this},zoomTo:function(t,e,r){return this.easeTo(n.extend({zoom:t},e),r)},zoomIn:function(t,e){return this.zoomTo(this.getZoom()+1,t,e),this},zoomOut:function(t,e){return this.zoomTo(this.getZoom()-1,t,e),this},getBearing:function(){return this.transform.bearing},setBearing:function(t,e){return this.jumpTo({bearing:t},e),this},rotateTo:function(t,e,r){return this.easeTo(n.extend({bearing:t},e),r)},resetNorth:function(t,e){return this.rotateTo(0,n.extend({duration:1e3},t),e),this},snapToNorth:function(t,e){return Math.abs(this.getBearing())<this._bearingSnap?this.resetNorth(t,e):this},getPitch:function(){return this.transform.pitch},setPitch:function(t,e){return this.jumpTo({pitch:t},e),this},fitBounds:function(t,e,r){e=n.extend({padding:0,offset:[0,0],maxZoom:1/0},e),t=s.convert(t);var i=l.convert(e.offset),a=this.transform,o=a.project(t.getNorthWest()),u=a.project(t.getSouthEast()),c=u.sub(o),h=(a.width-2*e.padding-2*Math.abs(i.x))/c.x,f=(a.height-2*e.padding-2*Math.abs(i.y))/c.y;return e.center=a.unproject(o.add(u).div(2)),e.zoom=Math.min(a.scaleZoom(a.scale*Math.min(h,f)),e.maxZoom),e.bearing=0,e.linear?this.easeTo(e,r):this.flyTo(e,r)},jumpTo:function(t,e){this.stop();var r=this.transform,n=!1,i=!1,a=!1;return\"zoom\"in t&&r.zoom!==+t.zoom&&(n=!0,r.zoom=+t.zoom),\"center\"in t&&(r.center=o.convert(t.center)),\"bearing\"in t&&r.bearing!==+t.bearing&&(i=!0,r.bearing=+t.bearing),\"pitch\"in t&&r.pitch!==+t.pitch&&(a=!0,r.pitch=+t.pitch),this.fire(\"movestart\",e).fire(\"move\",e),n&&this.fire(\"zoomstart\",e).fire(\"zoom\",e).fire(\"zoomend\",e),i&&this.fire(\"rotate\",e),a&&this.fire(\"pitch\",e),this.fire(\"moveend\",e)},easeTo:function(t,e){this.stop(),t=n.extend({offset:[0,0],duration:500,easing:n.ease},t);var r,a,s=this.transform,u=l.convert(t.offset),c=this.getZoom(),h=this.getBearing(),f=this.getPitch(),d=\"zoom\"in t?+t.zoom:c,p=\"bearing\"in t?this._normalizeBearing(t.bearing,h):h,m=\"pitch\"in t?+t.pitch:f;\"center\"in t?(r=o.convert(t.center),a=s.centerPoint.add(u)):\"around\"in t?(r=o.convert(t.around),a=s.locationPoint(r)):(a=s.centerPoint.add(u),r=s.pointLocation(a));var v=s.locationPoint(r);return!1===t.animate&&(t.duration=0),this.zooming=d!==c,this.rotating=h!==p,this.pitching=m!==f,t.noMoveStart||this.fire(\"movestart\",e),this.zooming&&this.fire(\"zoomstart\",e),clearTimeout(this._onEaseEnd),this._ease(function(t){this.zooming&&(s.zoom=i(c,d,t)),this.rotating&&(s.bearing=i(h,p,t)),this.pitching&&(s.pitch=i(f,m,t)),s.setLocationAtPoint(r,v.add(a.sub(v)._mult(t))),this.fire(\"move\",e),this.zooming&&this.fire(\"zoom\",e),this.rotating&&this.fire(\"rotate\",e),this.pitching&&this.fire(\"pitch\",e)},function(){t.delayEndEvents?this._onEaseEnd=setTimeout(this._easeToEnd.bind(this,e),t.delayEndEvents):this._easeToEnd(e)}.bind(this),t),this},_easeToEnd:function(t){var e=this.zooming;this.zooming=!1,this.rotating=!1,this.pitching=!1,e&&this.fire(\"zoomend\",t),this.fire(\"moveend\",t)},flyTo:function(t,e){function r(t){var e=(A*A-k*k+(t?-1:1)*L*L*T*T)/(2*(t?A:k)*L*T);return Math.log(Math.sqrt(e*e+1)-e)}function a(t){return(Math.exp(t)-Math.exp(-t))/2}function s(t){return(Math.exp(t)+Math.exp(-t))/2}function u(t){return a(t)/s(t)}this.stop(),t=n.extend({offset:[0,0],speed:1.2,curve:1.42,easing:n.ease},t);var c=this.transform,h=l.convert(t.offset),f=this.getZoom(),d=this.getBearing(),p=this.getPitch(),m=\"center\"in t?o.convert(t.center):this.getCenter(),v=\"zoom\"in t?+t.zoom:f,g=\"bearing\"in t?this._normalizeBearing(t.bearing,d):d,y=\"pitch\"in t?+t.pitch:p;Math.abs(c.center.lng)+Math.abs(m.lng)>180&&(c.center.lng>0&&m.lng<0?m.lng+=360:c.center.lng<0&&m.lng>0&&(m.lng-=360));var b=c.zoomScale(v-f),x=c.point,_=\"center\"in t?c.project(m).sub(h.div(b)):x,w=c.worldSize,M=t.curve,k=Math.max(c.width,c.height),A=k/b,T=_.sub(x).mag();if(\"minZoom\"in t){var S=n.clamp(Math.min(t.minZoom,f,v),c.minZoom,c.maxZoom),E=k/c.zoomScale(S-f);M=Math.sqrt(E/T*2)}var L=M*M,C=r(0),I=function(t){return s(C)/s(C+M*t)},z=function(t){return k*((s(C)*u(C+M*t)-a(C))/L)/T},D=(r(1)-C)/M;if(Math.abs(T)<1e-6){if(Math.abs(k-A)<1e-6)return this.easeTo(t);var P=A<k?-1:1;D=Math.abs(Math.log(A/k))/M,z=function(){return 0},I=function(t){return Math.exp(P*M*t)}}if(\"duration\"in t)t.duration=+t.duration;else{var O=\"screenSpeed\"in t?+t.screenSpeed/M:+t.speed;t.duration=1e3*D/O}return this.zooming=!0,d!==g&&(this.rotating=!0),p!==y&&(this.pitching=!0),this.fire(\"movestart\",e),this.fire(\"zoomstart\",e),this._ease(function(t){var r=t*D,n=z(r);c.zoom=f+c.scaleZoom(1/I(r)),c.center=c.unproject(x.add(_.sub(x).mult(n)),w),this.rotating&&(c.bearing=i(d,g,t)),this.pitching&&(c.pitch=i(p,y,t)),this.fire(\"move\",e),this.fire(\"zoom\",e),this.rotating&&this.fire(\"rotate\",e),this.pitching&&this.fire(\"pitch\",e)},function(){this.zooming=!1,this.rotating=!1,this.pitching=!1,this.fire(\"zoomend\",e),this.fire(\"moveend\",e)},t),this},isEasing:function(){return!!this._abortFn},stop:function(){return this._abortFn&&(this._abortFn(),this._finishEase()),this},_ease:function(t,e,r){this._finishFn=e,this._abortFn=a.timed(function(e){t.call(this,r.easing(e)),1===e&&this._finishEase()},!1===r.animate?0:r.duration,this)},_finishEase:function(){delete this._abortFn;var t=this._finishFn;delete this._finishFn,t.call(this)},_normalizeBearing:function(t,e){t=n.wrap(t,-180,180);var r=Math.abs(t-e);return Math.abs(t-360-e)<r&&(t-=360),Math.abs(t+360-e)<r&&(t+=360),t},_updateEasing:function(t,e,r){var i;if(this.ease){var a=this.ease,o=(Date.now()-a.start)/a.duration,s=a.easing(o+.01)-a.easing(o),l=.27/Math.sqrt(s*s+1e-4)*.01,u=Math.sqrt(.0729-l*l);i=n.bezier(l,u,.25,1)}else i=r?n.bezier.apply(n,r):n.ease;return this.ease={start:(new Date).getTime(),to:Math.pow(2,e),duration:t,easing:i},i}})},{\"../geo/lng_lat\":339,\"../geo/lng_lat_bounds\":340,\"../util/browser\":426,\"../util/interpolate\":436,\"../util/util\":442,\"point-geometry\":484}],409:[function(t,e,r){\"use strict\";function n(t){o.setOptions(this,t)}var i=t(\"./control\"),a=t(\"../../util/dom\"),o=t(\"../../util/util\");e.exports=n,n.createAttributionString=function(t){var e=[];for(var r in t){var n=t[r];n.attribution&&e.indexOf(n.attribution)<0&&e.push(n.attribution)}return e.sort(function(t,e){return t.length-e.length}),e=e.filter(function(t,r){for(var n=r+1;n<e.length;n++)if(e[n].indexOf(t)>=0)return!1;return!0}),e.join(\" | \")},n.prototype=o.inherit(i,{options:{position:\"bottom-right\"},onAdd:function(t){var e=this._container=a.create(\"div\",\"mapboxgl-ctrl-attrib\",t.getContainer());return this._update(),t.on(\"source.load\",this._update.bind(this)),t.on(\"source.change\",this._update.bind(this)),t.on(\"source.remove\",this._update.bind(this)),t.on(\"moveend\",this._updateEditLink.bind(this)),e},_update:function(){this._map.style&&(this._container.innerHTML=n.createAttributionString(this._map.style.sources)),this._editLink=this._container.getElementsByClassName(\"mapbox-improve-map\")[0],this._updateEditLink()},_updateEditLink:function(){if(this._editLink){var t=this._map.getCenter();this._editLink.href=\"https://www.mapbox.com/map-feedback/#/\"+t.lng+\"/\"+t.lat+\"/\"+Math.round(this._map.getZoom()+1)}}})},{\"../../util/dom\":428,\"../../util/util\":442,\"./control\":410}],410:[function(t,e,r){\"use strict\";function n(){}var i=t(\"../../util/util\"),a=t(\"../../util/evented\");e.exports=n,n.prototype={addTo:function(t){this._map=t;var e=this._container=this.onAdd(t);if(this.options&&this.options.position){var r=this.options.position,n=t._controlCorners[r];e.className+=\" mapboxgl-ctrl\",-1!==r.indexOf(\"bottom\")?n.insertBefore(e,n.firstChild):n.appendChild(e)}return this},remove:function(){return this._container.parentNode.removeChild(this._container),this.onRemove&&this.onRemove(this._map),this._map=null,this}},i.extend(n.prototype,a)},{\"../../util/evented\":434,\"../../util/util\":442}],411:[function(t,e,r){\"use strict\";function n(t){s.setOptions(this,t)}var i=t(\"./control\"),a=t(\"../../util/browser\"),o=t(\"../../util/dom\"),s=t(\"../../util/util\");e.exports=n;var l={enableHighAccuracy:!1,timeout:6e3};n.prototype=s.inherit(i,{options:{position:\"top-right\"},onAdd:function(t){var e=this._container=o.create(\"div\",\"mapboxgl-ctrl-group\",t.getContainer());return a.supportsGeolocation?(this._container.addEventListener(\"contextmenu\",this._onContextMenu.bind(this)),this._geolocateButton=o.create(\"button\",\"mapboxgl-ctrl-icon mapboxgl-ctrl-geolocate\",this._container),this._geolocateButton.type=\"button\",this._geolocateButton.addEventListener(\"click\",this._onClickGeolocate.bind(this)),e):e},_onContextMenu:function(t){t.preventDefault()},_onClickGeolocate:function(){navigator.geolocation.getCurrentPosition(this._success.bind(this),this._error.bind(this),l),this._timeoutId=setTimeout(this._finish.bind(this),1e4)},_success:function(t){this._map.jumpTo({center:[t.coords.longitude,t.coords.latitude],zoom:17,bearing:0,pitch:0}),this.fire(\"geolocate\",t),this._finish()},_error:function(t){this.fire(\"error\",t),this._finish()},_finish:function(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0}})},{\"../../util/browser\":426,\"../../util/dom\":428,\"../../util/util\":442,\"./control\":410}],412:[function(t,e,r){\"use strict\";function n(t){s.setOptions(this,t)}function i(t){return new MouseEvent(t.type,{button:2,buttons:2,bubbles:!0,cancelable:!0,detail:t.detail,view:t.view,screenX:t.screenX,screenY:t.screenY,clientX:t.clientX,clientY:t.clientY,movementX:t.movementX,movementY:t.movementY,ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,altKey:t.altKey,metaKey:t.metaKey})}var a=t(\"./control\"),o=t(\"../../util/dom\"),s=t(\"../../util/util\");e.exports=n,n.prototype=s.inherit(a,{options:{position:\"top-right\"},onAdd:function(t){var e=\"mapboxgl-ctrl\",r=this._container=o.create(\"div\",e+\"-group\",t.getContainer());return this._container.addEventListener(\"contextmenu\",this._onContextMenu.bind(this)),this._zoomInButton=this._createButton(e+\"-icon \"+e+\"-zoom-in\",t.zoomIn.bind(t)),this._zoomOutButton=this._createButton(e+\"-icon \"+e+\"-zoom-out\",t.zoomOut.bind(t)),this._compass=this._createButton(e+\"-icon \"+e+\"-compass\",t.resetNorth.bind(t)),this._compassArrow=o.create(\"div\",\"arrow\",this._compass),this._compass.addEventListener(\"mousedown\",this._onCompassDown.bind(this)),this._onCompassMove=this._onCompassMove.bind(this),this._onCompassUp=this._onCompassUp.bind(this),t.on(\"rotate\",this._rotateCompassArrow.bind(this)),this._rotateCompassArrow(),this._el=t.getCanvasContainer(),r},_onContextMenu:function(t){t.preventDefault()},_onCompassDown:function(t){0===t.button&&(o.disableDrag(),document.addEventListener(\"mousemove\",this._onCompassMove),document.addEventListener(\"mouseup\",this._onCompassUp),this._el.dispatchEvent(i(t)),t.stopPropagation())},_onCompassMove:function(t){0===t.button&&(this._el.dispatchEvent(i(t)),t.stopPropagation())},_onCompassUp:function(t){0===t.button&&(document.removeEventListener(\"mousemove\",this._onCompassMove),document.removeEventListener(\"mouseup\",this._onCompassUp),o.enableDrag(),this._el.dispatchEvent(i(t)),t.stopPropagation())},_createButton:function(t,e){var r=o.create(\"button\",t,this._container);return r.type=\"button\",r.addEventListener(\"click\",function(){e()}),r},_rotateCompassArrow:function(){var t=\"rotate(\"+this._map.transform.angle*(180/Math.PI)+\"deg)\";this._compassArrow.style.transform=t}})},{\"../../util/dom\":428,\"../../util/util\":442,\"./control\":410}],413:[function(t,e,r){\"use strict\";function n(t){this._map=t,this._el=t.getCanvasContainer(),this._container=t.getContainer(),o.bindHandlers(this)}var i=t(\"../../util/dom\"),a=t(\"../../geo/lng_lat_bounds\"),o=t(\"../../util/util\");e.exports=n,n.prototype={_enabled:!1,_active:!1,isEnabled:function(){return this._enabled},isActive:function(){return this._active},enable:function(){this.isEnabled()||(this._el.addEventListener(\"mousedown\",this._onMouseDown,!1),this._enabled=!0)},disable:function(){this.isEnabled()&&(this._el.removeEventListener(\"mousedown\",this._onMouseDown),this._enabled=!1)},_onMouseDown:function(t){t.shiftKey&&0===t.button&&(document.addEventListener(\"mousemove\",this._onMouseMove,!1),document.addEventListener(\"keydown\",this._onKeyDown,!1),document.addEventListener(\"mouseup\",this._onMouseUp,!1),i.disableDrag(),this._startPos=i.mousePos(this._el,t),this._active=!0)},_onMouseMove:function(t){var e=this._startPos,r=i.mousePos(this._el,t);this._box||(this._box=i.create(\"div\",\"mapboxgl-boxzoom\",this._container),this._container.classList.add(\"mapboxgl-crosshair\"),this._fireEvent(\"boxzoomstart\",t));var n=Math.min(e.x,r.x),a=Math.max(e.x,r.x),o=Math.min(e.y,r.y),s=Math.max(e.y,r.y);i.setTransform(this._box,\"translate(\"+n+\"px,\"+o+\"px)\"),this._box.style.width=a-n+\"px\",this._box.style.height=s-o+\"px\"},_onMouseUp:function(t){if(0===t.button){var e=this._startPos,r=i.mousePos(this._el,t),n=new a(this._map.unproject(e),this._map.unproject(r));this._finish(),e.x===r.x&&e.y===r.y?this._fireEvent(\"boxzoomcancel\",t):this._map.fitBounds(n,{linear:!0}).fire(\"boxzoomend\",{originalEvent:t,boxZoomBounds:n})}},_onKeyDown:function(t){27===t.keyCode&&(this._finish(),this._fireEvent(\"boxzoomcancel\",t))},_finish:function(){this._active=!1,document.removeEventListener(\"mousemove\",this._onMouseMove,!1),document.removeEventListener(\"keydown\",this._onKeyDown,!1),document.removeEventListener(\"mouseup\",this._onMouseUp,!1),this._container.classList.remove(\"mapboxgl-crosshair\"),this._box&&(this._box.parentNode.removeChild(this._box),this._box=null),i.enableDrag()},_fireEvent:function(t,e){return this._map.fire(t,{originalEvent:e})}}},{\"../../geo/lng_lat_bounds\":340,\"../../util/dom\":428,\"../../util/util\":442}],414:[function(t,e,r){\"use strict\";function n(t){this._map=t,this._onDblClick=this._onDblClick.bind(this)}e.exports=n,n.prototype={_enabled:!1,isEnabled:function(){return this._enabled},enable:function(){this.isEnabled()||(this._map.on(\"dblclick\",this._onDblClick),this._enabled=!0)},disable:function(){this.isEnabled()&&(this._map.off(\"dblclick\",this._onDblClick),this._enabled=!1)},_onDblClick:function(t){this._map.zoomTo(this._map.getZoom()+(t.originalEvent.shiftKey?-1:1),{around:t.lngLat},t)}}},{}],415:[function(t,e,r){\"use strict\";function n(t){this._map=t,this._el=t.getCanvasContainer(),a.bindHandlers(this)}var i=t(\"../../util/dom\"),a=t(\"../../util/util\");e.exports=n;var o=a.bezier(0,0,.3,1);n.prototype={_enabled:!1,_active:!1,isEnabled:function(){return this._enabled},isActive:function(){return this._active},enable:function(){this.isEnabled()||(this._el.addEventListener(\"mousedown\",this._onDown),this._el.addEventListener(\"touchstart\",this._onDown),this._enabled=!0)},disable:function(){this.isEnabled()&&(this._el.removeEventListener(\"mousedown\",this._onDown),this._el.removeEventListener(\"touchstart\",this._onDown),this._enabled=!1)},_onDown:function(t){this._ignoreEvent(t)||this.isActive()||(t.touches?(document.addEventListener(\"touchmove\",this._onMove),document.addEventListener(\"touchend\",this._onTouchEnd)):(document.addEventListener(\"mousemove\",this._onMove),document.addEventListener(\"mouseup\",this._onMouseUp)),this._active=!1,this._startPos=this._pos=i.mousePos(this._el,t),this._inertia=[[Date.now(),this._pos]])},_onMove:function(t){if(!this._ignoreEvent(t)){this.isActive()||(this._active=!0,this._fireEvent(\"dragstart\",t),this._fireEvent(\"movestart\",t));var e=i.mousePos(this._el,t),r=this._map;r.stop(),this._drainInertiaBuffer(),this._inertia.push([Date.now(),e]),r.transform.setLocationAtPoint(r.transform.pointLocation(this._pos),e),this._fireEvent(\"drag\",t),this._fireEvent(\"move\",t),this._pos=e,t.preventDefault()}},_onUp:function(t){if(this.isActive()){this._active=!1,this._fireEvent(\"dragend\",t),this._drainInertiaBuffer();var e=function(){this._fireEvent(\"moveend\",t)}.bind(this),r=this._inertia;if(r.length<2)return void e();var n=r[r.length-1],i=r[0],a=n[1].sub(i[1]),s=(n[0]-i[0])/1e3;if(0===s||n[1].equals(i[1]))return void e();var l=a.mult(.3/s),u=l.mag();u>1400&&(u=1400,l._unit()._mult(u));var c=u/750,h=l.mult(-c/2);this._map.panBy(h,{duration:1e3*c,easing:o,noMoveStart:!0},{originalEvent:t})}},_onMouseUp:function(t){this._ignoreEvent(t)||(this._onUp(t),document.removeEventListener(\"mousemove\",this._onMove),document.removeEventListener(\"mouseup\",this._onMouseUp))},_onTouchEnd:function(t){this._ignoreEvent(t)||(this._onUp(t),document.removeEventListener(\"touchmove\",this._onMove),document.removeEventListener(\"touchend\",this._onTouchEnd))},_fireEvent:function(t,e){return this._map.fire(t,{originalEvent:e})},_ignoreEvent:function(t){var e=this._map;if(e.boxZoom&&e.boxZoom.isActive())return!0;if(e.dragRotate&&e.dragRotate.isActive())return!0;if(t.touches)return t.touches.length>1;if(t.ctrlKey)return!0;return\"mousemove\"===t.type?!1&t.buttons:0!==t.button},_drainInertiaBuffer:function(){for(var t=this._inertia,e=Date.now();t.length>0&&e-t[0][0]>160;)t.shift()}}},{\"../../util/dom\":428,\"../../util/util\":442}],416:[function(t,e,r){\"use strict\";function n(t,e){this._map=t,this._el=t.getCanvasContainer(),this._bearingSnap=e.bearingSnap,o.bindHandlers(this)}var i=t(\"../../util/dom\"),a=t(\"point-geometry\"),o=t(\"../../util/util\");e.exports=n;var s=o.bezier(0,0,.25,1);n.prototype={_enabled:!1,_active:!1,isEnabled:function(){return this._enabled},isActive:function(){return this._active},enable:function(){this.isEnabled()||(this._el.addEventListener(\"mousedown\",this._onDown),this._enabled=!0)},disable:function(){this.isEnabled()&&(this._el.removeEventListener(\"mousedown\",this._onDown),this._enabled=!1)},_onDown:function(t){if(!this._ignoreEvent(t)&&!this.isActive()){document.addEventListener(\"mousemove\",this._onMove),document.addEventListener(\"mouseup\",this._onUp),this._active=!1,this._inertia=[[Date.now(),this._map.getBearing()]],this._startPos=this._pos=i.mousePos(this._el,t),this._center=this._map.transform.centerPoint;var e=this._startPos.sub(this._center);e.mag()<200&&(this._center=this._startPos.add(new a(-200,0)._rotate(e.angle()))),t.preventDefault()}},_onMove:function(t){if(!this._ignoreEvent(t)){this.isActive()||(this._active=!0,this._fireEvent(\"rotatestart\",t),this._fireEvent(\"movestart\",t));var e=this._map;e.stop();var r=this._pos,n=i.mousePos(this._el,t),a=this._center,o=r.sub(a).angleWith(n.sub(a))/Math.PI*180,s=e.getBearing()-o,l=this._inertia,u=l[l.length-1];this._drainInertiaBuffer(),l.push([Date.now(),e._normalizeBearing(s,u[1])]),e.transform.bearing=s,this._fireEvent(\"rotate\",t),this._fireEvent(\"move\",t),this._pos=n}},_onUp:function(t){if(!this._ignoreEvent(t)&&(document.removeEventListener(\"mousemove\",this._onMove),document.removeEventListener(\"mouseup\",this._onUp),this.isActive())){this._active=!1,this._fireEvent(\"rotateend\",t),this._drainInertiaBuffer();var e=this._map,r=e.getBearing(),n=this._inertia,i=function(){Math.abs(r)<this._bearingSnap?e.resetNorth({noMoveStart:!0},{originalEvent:t}):this._fireEvent(\"moveend\",t)}.bind(this);if(n.length<2)return void i();var a=n[0],o=n[n.length-1],l=n[n.length-2],u=e._normalizeBearing(r,l[1]),c=o[1]-a[1],h=c<0?-1:1,f=(o[0]-a[0])/1e3;if(0===c||0===f)return void i();var d=Math.abs(c*(.25/f));d>180&&(d=180);var p=d/180;u+=h*d*(p/2),Math.abs(e._normalizeBearing(u,0))<this._bearingSnap&&(u=e._normalizeBearing(0,u)),e.rotateTo(u,{duration:1e3*p,easing:s,noMoveStart:!0},{originalEvent:t})}},_fireEvent:function(t,e){return this._map.fire(t,{originalEvent:e})},_ignoreEvent:function(t){var e=this._map;if(e.boxZoom&&e.boxZoom.isActive())return!0;if(e.dragPan&&e.dragPan.isActive())return!0;if(t.touches)return t.touches.length>1;var r=t.ctrlKey?1:2,n=t.ctrlKey?0:2;return\"mousemove\"===t.type?t.buttons&0===r:t.button!==n},_drainInertiaBuffer:function(){for(var t=this._inertia,e=Date.now();t.length>0&&e-t[0][0]>160;)t.shift()}}},{\"../../util/dom\":428,\"../../util/util\":442,\"point-geometry\":484}],417:[function(t,e,r){\"use strict\";function n(t){this._map=t,this._el=t.getCanvasContainer(),this._onKeyDown=this._onKeyDown.bind(this)}e.exports=n;n.prototype={_enabled:!1,isEnabled:function(){return this._enabled},enable:function(){this.isEnabled()||(this._el.addEventListener(\"keydown\",this._onKeyDown,!1),this._enabled=!0)},disable:function(){this.isEnabled()&&(this._el.removeEventListener(\"keydown\",this._onKeyDown),this._enabled=!1)},_onKeyDown:function(t){if(!(t.altKey||t.ctrlKey||t.metaKey)){var e=this._map,r={originalEvent:t};if(!e.isEasing())switch(t.keyCode){case 61:case 107:case 171:case 187:e.zoomTo(Math.round(e.getZoom())+(t.shiftKey?2:1),r);break;case 189:case 109:case 173:e.zoomTo(Math.round(e.getZoom())-(t.shiftKey?2:1),r);break;case 37:t.shiftKey?e.easeTo({bearing:e.getBearing()-2},r):(t.preventDefault(),e.panBy([-80,0],r));break;case 39:t.shiftKey?e.easeTo({bearing:e.getBearing()+2},r):(t.preventDefault(),e.panBy([80,0],r));break;case 38:t.shiftKey?e.easeTo({pitch:e.getPitch()+5},r):(t.preventDefault(),e.panBy([0,-80],r));break;case 40:t.shiftKey?e.easeTo({pitch:Math.max(e.getPitch()-5,0)},r):(t.preventDefault(),e.panBy([0,80],r))}}}}},{}],418:[function(t,e,r){\"use strict\";function n(t){this._map=t,this._el=t.getCanvasContainer(),o.bindHandlers(this)}var i=t(\"../../util/dom\"),a=t(\"../../util/browser\"),o=t(\"../../util/util\");e.exports=n;var s=\"undefined\"!=typeof navigator?navigator.userAgent.toLowerCase():\"\",l=-1!==s.indexOf(\"firefox\"),u=-1!==s.indexOf(\"safari\")&&-1===s.indexOf(\"chrom\");n.prototype={_enabled:!1,isEnabled:function(){return this._enabled},enable:function(){this.isEnabled()||(this._el.addEventListener(\"wheel\",this._onWheel,!1),this._el.addEventListener(\"mousewheel\",this._onWheel,!1),this._enabled=!0)},disable:function(){this.isEnabled()&&(this._el.removeEventListener(\"wheel\",this._onWheel),this._el.removeEventListener(\"mousewheel\",this._onWheel),this._enabled=!1)},_onWheel:function(t){var e;\"wheel\"===t.type?(e=t.deltaY,l&&t.deltaMode===window.WheelEvent.DOM_DELTA_PIXEL&&(e/=a.devicePixelRatio),t.deltaMode===window.WheelEvent.DOM_DELTA_LINE&&(e*=40)):\"mousewheel\"===t.type&&(e=-t.wheelDeltaY,u&&(e/=3));var r=a.now(),n=r-(this._time||0);this._pos=i.mousePos(this._el,t),this._time=r,0!==e&&e%4.000244140625==0?(this._type=\"wheel\",e=Math.floor(e/4)):0!==e&&Math.abs(e)<4?this._type=\"trackpad\":n>400?(this._type=null,this._lastValue=e,this._timeout=setTimeout(this._onTimeout,40)):this._type||(this._type=Math.abs(n*e)<200?\"trackpad\":\"wheel\",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,e+=this._lastValue)),t.shiftKey&&e&&(e/=4),this._type&&this._zoom(-e,t),t.preventDefault()},_onTimeout:function(){this._type=\"wheel\",this._zoom(-this._lastValue)},_zoom:function(t,e){if(0!==t){var r=this._map,n=2/(1+Math.exp(-Math.abs(t/100)));t<0&&0!==n&&(n=1/n);var i=r.ease?r.ease.to:r.transform.scale,a=r.transform.scaleZoom(i*n);r.zoomTo(a,{duration:0,around:r.unproject(this._pos),delayEndEvents:200},{originalEvent:e})}}}},{\"../../util/browser\":426,\"../../util/dom\":428,\"../../util/util\":442}],419:[function(t,e,r){\"use strict\";function n(t){this._map=t,this._el=t.getCanvasContainer(),a.bindHandlers(this)}var i=t(\"../../util/dom\"),a=t(\"../../util/util\");e.exports=n;var o=a.bezier(0,0,.15,1);n.prototype={_enabled:!1,isEnabled:function(){return this._enabled},enable:function(){this.isEnabled()||(this._el.addEventListener(\"touchstart\",this._onStart,!1),this._enabled=!0)},disable:function(){this.isEnabled()&&(this._el.removeEventListener(\"touchstart\",this._onStart),this._enabled=!1)},disableRotation:function(){this._rotationDisabled=!0},enableRotation:function(){this._rotationDisabled=!1},_onStart:function(t){if(2===t.touches.length){var e=i.mousePos(this._el,t.touches[0]),r=i.mousePos(this._el,t.touches[1]);this._startVec=e.sub(r),this._startScale=this._map.transform.scale,this._startBearing=this._map.transform.bearing,this._gestureIntent=void 0,this._inertia=[],\n", "document.addEventListener(\"touchmove\",this._onMove,!1),document.addEventListener(\"touchend\",this._onEnd,!1)}},_onMove:function(t){if(2===t.touches.length){var e=i.mousePos(this._el,t.touches[0]),r=i.mousePos(this._el,t.touches[1]),n=e.add(r).div(2),a=e.sub(r),o=a.mag()/this._startVec.mag(),s=this._rotationDisabled?0:180*a.angleWith(this._startVec)/Math.PI,l=this._map;if(this._gestureIntent){var u={duration:0,around:l.unproject(n)};\"rotate\"===this._gestureIntent&&(u.bearing=this._startBearing+s),\"zoom\"!==this._gestureIntent&&\"rotate\"!==this._gestureIntent||(u.zoom=l.transform.scaleZoom(this._startScale*o)),l.stop(),this._drainInertiaBuffer(),this._inertia.push([Date.now(),o,n]),l.easeTo(u,{originalEvent:t})}else{var c=Math.abs(1-o)>.15;Math.abs(s)>4?this._gestureIntent=\"rotate\":c&&(this._gestureIntent=\"zoom\"),this._gestureIntent&&(this._startVec=a,this._startScale=l.transform.scale,this._startBearing=l.transform.bearing)}t.preventDefault()}},_onEnd:function(t){document.removeEventListener(\"touchmove\",this._onMove),document.removeEventListener(\"touchend\",this._onEnd),this._drainInertiaBuffer();var e=this._inertia,r=this._map;if(e.length<2)return void r.snapToNorth({},{originalEvent:t});var n=e[e.length-1],i=e[0],a=r.transform.scaleZoom(this._startScale*n[1]),s=r.transform.scaleZoom(this._startScale*i[1]),l=a-s,u=(n[0]-i[0])/1e3,c=n[2];if(0===u||a===s)return void r.snapToNorth({},{originalEvent:t});var h=.15*l/u;Math.abs(h)>2.5&&(h=h>0?2.5:-2.5);var f=1e3*Math.abs(h/(12*.15)),d=a+h*f/2e3;d<0&&(d=0),r.easeTo({zoom:d,duration:f,easing:o,around:r.unproject(c)},{originalEvent:t})},_drainInertiaBuffer:function(){for(var t=this._inertia,e=Date.now();t.length>2&&e-t[0][0]>160;)t.shift()}}},{\"../../util/dom\":428,\"../../util/util\":442}],420:[function(t,e,r){\"use strict\";function n(){i.bindAll([\"_onHashChange\",\"_updateHash\"],this)}e.exports=n;var i=t(\"../util/util\");n.prototype={addTo:function(t){return this._map=t,window.addEventListener(\"hashchange\",this._onHashChange,!1),this._map.on(\"moveend\",this._updateHash),this},remove:function(){return window.removeEventListener(\"hashchange\",this._onHashChange,!1),this._map.off(\"moveend\",this._updateHash),delete this._map,this},_onHashChange:function(){var t=location.hash.replace(\"#\",\"\").split(\"/\");return t.length>=3&&(this._map.jumpTo({center:[+t[2],+t[1]],zoom:+t[0],bearing:+(t[3]||0)}),!0)},_updateHash:function(){var t=this._map.getCenter(),e=this._map.getZoom(),r=this._map.getBearing(),n=Math.max(0,Math.ceil(Math.log(e)/Math.LN2)),i=\"#\"+Math.round(100*e)/100+\"/\"+t.lat.toFixed(n)+\"/\"+t.lng.toFixed(n)+(r?\"/\"+Math.round(10*r)/10:\"\");window.history.replaceState(\"\",\"\",i)}}},{\"../util/util\":442}],421:[function(t,e,r){\"use strict\";function n(t){t.parentNode&&t.parentNode.removeChild(t)}var i=t(\"../util/canvas\"),a=t(\"../util/util\"),o=t(\"../util/browser\"),s=t(\"../util/browser\").window,l=t(\"../util/evented\"),u=t(\"../util/dom\"),c=t(\"../style/style\"),h=t(\"../style/animation_loop\"),f=t(\"../render/painter\"),d=t(\"../geo/transform\"),p=t(\"./hash\"),m=t(\"./bind_handlers\"),v=t(\"./camera\"),g=t(\"../geo/lng_lat\"),y=t(\"../geo/lng_lat_bounds\"),b=t(\"point-geometry\"),x=t(\"./control/attribution\"),_={center:[0,0],zoom:0,bearing:0,pitch:0,minZoom:0,maxZoom:20,interactive:!0,scrollZoom:!0,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,bearingSnap:7,hash:!1,attributionControl:!0,failIfMajorPerformanceCaveat:!1,preserveDrawingBuffer:!1,trackResize:!0,workerCount:Math.max(o.hardwareConcurrency-1,1)},w=e.exports=function(t){if(t=a.extend({},_,t),t.workerCount<1)throw new Error(\"workerCount must an integer greater than or equal to 1.\");this._interactive=t.interactive,this._failIfMajorPerformanceCaveat=t.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=t.preserveDrawingBuffer,this._trackResize=t.trackResize,this._workerCount=t.workerCount,this._bearingSnap=t.bearingSnap,\"string\"==typeof t.container?this._container=document.getElementById(t.container):this._container=t.container,this.animationLoop=new h,this.transform=new d(t.minZoom,t.maxZoom),t.maxBounds&&this.setMaxBounds(t.maxBounds),a.bindAll([\"_forwardStyleEvent\",\"_forwardSourceEvent\",\"_forwardLayerEvent\",\"_forwardTileEvent\",\"_onStyleLoad\",\"_onStyleChange\",\"_onSourceAdd\",\"_onSourceRemove\",\"_onSourceUpdate\",\"_onWindowOnline\",\"_onWindowResize\",\"_update\",\"_render\"],this),this._setupContainer(),this._setupPainter(),this.on(\"move\",this._update.bind(this,!1)),this.on(\"zoom\",this._update.bind(this,!0)),this.on(\"moveend\",function(){this.animationLoop.set(300),this._rerender()}.bind(this)),void 0!==s&&(s.addEventListener(\"online\",this._onWindowOnline,!1),s.addEventListener(\"resize\",this._onWindowResize,!1)),m(this,t),this._hash=t.hash&&(new p).addTo(this),this._hash&&this._hash._onHashChange()||this.jumpTo({center:t.center,zoom:t.zoom,bearing:t.bearing,pitch:t.pitch}),this.stacks={},this._classes=[],this.resize(),t.classes&&this.setClasses(t.classes),t.style&&this.setStyle(t.style),t.attributionControl&&this.addControl(new x(t.attributionControl));var e=this.fire.bind(this,\"error\");this.on(\"style.error\",e),this.on(\"source.error\",e),this.on(\"tile.error\",e),this.on(\"layer.error\",e)};a.extend(w.prototype,l),a.extend(w.prototype,v.prototype),a.extend(w.prototype,{addControl:function(t){return t.addTo(this),this},addClass:function(t,e){return this._classes.indexOf(t)>=0||\"\"===t?this:(this._classes.push(t),this._classOptions=e,this.style&&this.style.updateClasses(),this._update(!0))},removeClass:function(t,e){var r=this._classes.indexOf(t);return r<0||\"\"===t?this:(this._classes.splice(r,1),this._classOptions=e,this.style&&this.style.updateClasses(),this._update(!0))},setClasses:function(t,e){for(var r={},n=0;n<t.length;n++)\"\"!==t[n]&&(r[t[n]]=!0);return this._classes=Object.keys(r),this._classOptions=e,this.style&&this.style.updateClasses(),this._update(!0)},hasClass:function(t){return this._classes.indexOf(t)>=0},getClasses:function(){return this._classes},resize:function(){var t=0,e=0;return this._container&&(t=this._container.offsetWidth||400,e=this._container.offsetHeight||300),this._canvas.resize(t,e),this.transform.resize(t,e),this.painter.resize(t,e),this.fire(\"movestart\").fire(\"move\").fire(\"resize\").fire(\"moveend\")},getBounds:function(){var t=new y(this.transform.pointLocation(new b(0,0)),this.transform.pointLocation(this.transform.size));return(this.transform.angle||this.transform.pitch)&&(t.extend(this.transform.pointLocation(new b(this.transform.size.x,0))),t.extend(this.transform.pointLocation(new b(0,this.transform.size.y)))),t},setMaxBounds:function(t){if(t){var e=y.convert(t);this.transform.lngRange=[e.getWest(),e.getEast()],this.transform.latRange=[e.getSouth(),e.getNorth()],this.transform._constrain(),this._update()}else null!==t&&void 0!==t||(this.transform.lngRange=[],this.transform.latRange=[],this._update());return this},setMinZoom:function(t){if((t=null===t||void 0===t?0:t)>=0&&t<=this.transform.maxZoom)return this.transform.minZoom=t,this._update(),this.getZoom()<t&&this.setZoom(t),this;throw new Error(\"minZoom must be between 0 and the current maxZoom, inclusive\")},setMaxZoom:function(t){if((t=null===t||void 0===t?20:t)>=this.transform.minZoom&&t<=20)return this.transform.maxZoom=t,this._update(),this.getZoom()>t&&this.setZoom(t),this;throw new Error(\"maxZoom must be between the current minZoom and 20, inclusive\")},project:function(t){return this.transform.locationPoint(g.convert(t))},unproject:function(t){return this.transform.pointLocation(b.convert(t))},queryRenderedFeatures:function(){var t,e={};return 2===arguments.length?(t=arguments[0],e=arguments[1]):1===arguments.length&&function(t){return t instanceof b||Array.isArray(t)}(arguments[0])?t=arguments[0]:1===arguments.length&&(e=arguments[0]),this.style.queryRenderedFeatures(this._makeQueryGeometry(t),e,this.transform.zoom,this.transform.angle)},_makeQueryGeometry:function(t){void 0===t&&(t=[b.convert([0,0]),b.convert([this.transform.width,this.transform.height])]);var e;if(t instanceof b||\"number\"==typeof t[0])e=[b.convert(t)];else{var r=[b.convert(t[0]),b.convert(t[1])];e=[r[0],new b(r[1].x,r[0].y),r[1],new b(r[0].x,r[1].y),r[0]]}return e=e.map(function(t){return this.transform.pointCoordinate(t)}.bind(this))},querySourceFeatures:function(t,e){return this.style.querySourceFeatures(t,e)},setStyle:function(t){return this.style&&(this.style.off(\"load\",this._onStyleLoad).off(\"error\",this._forwardStyleEvent).off(\"change\",this._onStyleChange).off(\"source.add\",this._onSourceAdd).off(\"source.remove\",this._onSourceRemove).off(\"source.load\",this._onSourceUpdate).off(\"source.error\",this._forwardSourceEvent).off(\"source.change\",this._onSourceUpdate).off(\"layer.add\",this._forwardLayerEvent).off(\"layer.remove\",this._forwardLayerEvent).off(\"layer.error\",this._forwardLayerEvent).off(\"tile.add\",this._forwardTileEvent).off(\"tile.remove\",this._forwardTileEvent).off(\"tile.load\",this._update).off(\"tile.error\",this._forwardTileEvent).off(\"tile.stats\",this._forwardTileEvent)._remove(),this.off(\"rotate\",this.style._redoPlacement),this.off(\"pitch\",this.style._redoPlacement)),t?(this.style=t instanceof c?t:new c(t,this.animationLoop,this._workerCount),this.style.on(\"load\",this._onStyleLoad).on(\"error\",this._forwardStyleEvent).on(\"change\",this._onStyleChange).on(\"source.add\",this._onSourceAdd).on(\"source.remove\",this._onSourceRemove).on(\"source.load\",this._onSourceUpdate).on(\"source.error\",this._forwardSourceEvent).on(\"source.change\",this._onSourceUpdate).on(\"layer.add\",this._forwardLayerEvent).on(\"layer.remove\",this._forwardLayerEvent).on(\"layer.error\",this._forwardLayerEvent).on(\"tile.add\",this._forwardTileEvent).on(\"tile.remove\",this._forwardTileEvent).on(\"tile.load\",this._update).on(\"tile.error\",this._forwardTileEvent).on(\"tile.stats\",this._forwardTileEvent),this.on(\"rotate\",this.style._redoPlacement),this.on(\"pitch\",this.style._redoPlacement),this):(this.style=null,this)},getStyle:function(){if(this.style)return this.style.serialize()},addSource:function(t,e){return this.style.addSource(t,e),this._update(!0),this},addSourceType:function(t,e,r){return this.style.addSourceType(t,e,r)},removeSource:function(t){return this.style.removeSource(t),this._update(!0),this},getSource:function(t){return this.style.getSource(t)},addLayer:function(t,e){return this.style.addLayer(t,e),this._update(!0),this},removeLayer:function(t){return this.style.removeLayer(t),this._update(!0),this},getLayer:function(t){return this.style.getLayer(t)},setFilter:function(t,e){return this.style.setFilter(t,e),this._update(!0),this},setLayerZoomRange:function(t,e,r){return this.style.setLayerZoomRange(t,e,r),this._update(!0),this},getFilter:function(t){return this.style.getFilter(t)},setPaintProperty:function(t,e,r,n){return this.style.setPaintProperty(t,e,r,n),this._update(!0),this},getPaintProperty:function(t,e,r){return this.style.getPaintProperty(t,e,r)},setLayoutProperty:function(t,e,r){return this.style.setLayoutProperty(t,e,r),this._update(!0),this},getLayoutProperty:function(t,e){return this.style.getLayoutProperty(t,e)},getContainer:function(){return this._container},getCanvasContainer:function(){return this._canvasContainer},getCanvas:function(){return this._canvas.getElement()},_setupContainer:function(){var t=this._container;t.classList.add(\"mapboxgl-map\");var e=this._canvasContainer=u.create(\"div\",\"mapboxgl-canvas-container\",t);this._interactive&&e.classList.add(\"mapboxgl-interactive\"),this._canvas=new i(this,e);var r=this._controlContainer=u.create(\"div\",\"mapboxgl-control-container\",t),n=this._controlCorners={};[\"top-left\",\"top-right\",\"bottom-left\",\"bottom-right\"].forEach(function(t){n[t]=u.create(\"div\",\"mapboxgl-ctrl-\"+t,r)})},_setupPainter:function(){var t=this._canvas.getWebGLContext({failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer});if(!t)return void this.fire(\"error\",{error:new Error(\"Failed to initialize WebGL\")});this.painter=new f(t,this.transform)},_contextLost:function(t){t.preventDefault(),this._frameId&&o.cancelFrame(this._frameId),this.fire(\"webglcontextlost\",{originalEvent:t})},_contextRestored:function(t){this._setupPainter(),this.resize(),this._update(),this.fire(\"webglcontextrestored\",{originalEvent:t})},loaded:function(){return!this._styleDirty&&!this._sourcesDirty&&!(!this.style||!this.style.loaded())},_update:function(t){return this.style?(this._styleDirty=this._styleDirty||t,this._sourcesDirty=!0,this._rerender(),this):this},_render:function(){try{this.style&&this._styleDirty&&(this._styleDirty=!1,this.style.update(this._classes,this._classOptions),this._classOptions=null,this.style._recalculate(this.transform.zoom)),this.style&&this._sourcesDirty&&(this._sourcesDirty=!1,this.style._updateSources(this.transform)),this.painter.render(this.style,{debug:this.showTileBoundaries,showOverdrawInspector:this._showOverdrawInspector,vertices:this.vertices,rotating:this.rotating,zooming:this.zooming}),this.fire(\"render\"),this.loaded()&&!this._loaded&&(this._loaded=!0,this.fire(\"load\")),this._frameId=null,this.animationLoop.stopped()||(this._styleDirty=!0),(this._sourcesDirty||this._repaint||this._styleDirty)&&this._rerender()}catch(t){this.fire(\"error\",{error:t})}return this},remove:function(){this._hash&&this._hash.remove(),o.cancelFrame(this._frameId),this.setStyle(null),void 0!==s&&s.removeEventListener(\"resize\",this._onWindowResize,!1);var t=this.painter.gl.getExtension(\"WEBGL_lose_context\");t&&t.loseContext(),n(this._canvasContainer),n(this._controlContainer),this._container.classList.remove(\"mapboxgl-map\")},_rerender:function(){this.style&&!this._frameId&&(this._frameId=o.frame(this._render))},_forwardStyleEvent:function(t){this.fire(\"style.\"+t.type,a.extend({style:t.target},t))},_forwardSourceEvent:function(t){this.fire(t.type,a.extend({style:t.target},t))},_forwardLayerEvent:function(t){this.fire(t.type,a.extend({style:t.target},t))},_forwardTileEvent:function(t){this.fire(t.type,a.extend({style:t.target},t))},_onStyleLoad:function(t){this.transform.unmodified&&this.jumpTo(this.style.stylesheet),this.style.update(this._classes,{transition:!1}),this._forwardStyleEvent(t)},_onStyleChange:function(t){this._update(!0),this._forwardStyleEvent(t)},_onSourceAdd:function(t){var e=t.source;e.onAdd&&e.onAdd(this),this._forwardSourceEvent(t)},_onSourceRemove:function(t){var e=t.source;e.onRemove&&e.onRemove(this),this._forwardSourceEvent(t)},_onSourceUpdate:function(t){this._update(),this._forwardSourceEvent(t)},_onWindowOnline:function(){this._update()},_onWindowResize:function(){this._trackResize&&this.stop().resize()._update()}}),a.extendAll(w.prototype,{_showTileBoundaries:!1,get showTileBoundaries(){return this._showTileBoundaries},set showTileBoundaries(t){this._showTileBoundaries!==t&&(this._showTileBoundaries=t,this._update())},_showCollisionBoxes:!1,get showCollisionBoxes(){return this._showCollisionBoxes},set showCollisionBoxes(t){this._showCollisionBoxes!==t&&(this._showCollisionBoxes=t,this.style._redoPlacement())},_showOverdrawInspector:!1,get showOverdrawInspector(){return this._showOverdrawInspector},set showOverdrawInspector(t){this._showOverdrawInspector!==t&&(this._showOverdrawInspector=t,this._update())},_repaint:!1,get repaint(){return this._repaint},set repaint(t){this._repaint=t,this._update()},_vertices:!1,get vertices(){return this._vertices},set vertices(t){this._vertices=t,this._update()}})},{\"../geo/lng_lat\":339,\"../geo/lng_lat_bounds\":340,\"../geo/transform\":341,\"../render/painter\":355,\"../style/animation_loop\":375,\"../style/style\":378,\"../util/browser\":426,\"../util/canvas\":427,\"../util/dom\":428,\"../util/evented\":434,\"../util/util\":442,\"./bind_handlers\":407,\"./camera\":408,\"./control/attribution\":409,\"./hash\":420,\"point-geometry\":484}],422:[function(t,e,r){\"use strict\";function n(t,e){t||(t=i.create(\"div\")),t.classList.add(\"mapboxgl-marker\"),this._el=t,this._offset=o.convert(e&&e.offset||[0,0]),this._update=this._update.bind(this)}e.exports=n;var i=t(\"../util/dom\"),a=t(\"../geo/lng_lat\"),o=t(\"point-geometry\");n.prototype={addTo:function(t){return this.remove(),this._map=t,t.getCanvasContainer().appendChild(this._el),t.on(\"move\",this._update),this._update(),this},remove:function(){this._map&&(this._map.off(\"move\",this._update),this._map=null);var t=this._el.parentNode;return t&&t.removeChild(this._el),this},getLngLat:function(){return this._lngLat},setLngLat:function(t){return this._lngLat=a.convert(t),this._update(),this},getElement:function(){return this._el},_update:function(){if(this._map){var t=this._map.project(this._lngLat)._add(this._offset);i.setTransform(this._el,\"translate(\"+t.x+\"px,\"+t.y+\"px)\")}}}},{\"../geo/lng_lat\":339,\"../util/dom\":428,\"point-geometry\":484}],423:[function(t,e,r){\"use strict\";function n(t){i.setOptions(this,t),i.bindAll([\"_update\",\"_onClickClose\"],this)}e.exports=n;var i=t(\"../util/util\"),a=t(\"../util/evented\"),o=t(\"../util/dom\"),s=t(\"../geo/lng_lat\");n.prototype=i.inherit(a,{options:{closeButton:!0,closeOnClick:!0},addTo:function(t){return this._map=t,this._map.on(\"move\",this._update),this.options.closeOnClick&&this._map.on(\"click\",this._onClickClose),this._update(),this},remove:function(){return this._content&&this._content.parentNode&&this._content.parentNode.removeChild(this._content),this._container&&(this._container.parentNode.removeChild(this._container),delete this._container),this._map&&(this._map.off(\"move\",this._update),this._map.off(\"click\",this._onClickClose),delete this._map),this.fire(\"close\"),this},getLngLat:function(){return this._lngLat},setLngLat:function(t){return this._lngLat=s.convert(t),this._update(),this},setText:function(t){return this.setDOMContent(document.createTextNode(t))},setHTML:function(t){var e,r=document.createDocumentFragment(),n=document.createElement(\"body\");for(n.innerHTML=t;;){if(!(e=n.firstChild))break;r.appendChild(e)}return this.setDOMContent(r)},setDOMContent:function(t){return this._createContent(),this._content.appendChild(t),this._update(),this},_createContent:function(){this._content&&this._content.parentNode&&this._content.parentNode.removeChild(this._content),this._content=o.create(\"div\",\"mapboxgl-popup-content\",this._container),this.options.closeButton&&(this._closeButton=o.create(\"button\",\"mapboxgl-popup-close-button\",this._content),this._closeButton.type=\"button\",this._closeButton.innerHTML=\"&#215;\",this._closeButton.addEventListener(\"click\",this._onClickClose))},_update:function(){if(this._map&&this._lngLat&&this._content){this._container||(this._container=o.create(\"div\",\"mapboxgl-popup\",this._map.getContainer()),this._tip=o.create(\"div\",\"mapboxgl-popup-tip\",this._container),this._container.appendChild(this._content));var t=this._map.project(this._lngLat).round(),e=this.options.anchor;if(!e){var r=this._container.offsetWidth,n=this._container.offsetHeight;e=t.y<n?[\"top\"]:t.y>this._map.transform.height-n?[\"bottom\"]:[],t.x<r/2?e.push(\"left\"):t.x>this._map.transform.width-r/2&&e.push(\"right\"),e=0===e.length?\"bottom\":e.join(\"-\")}var i={top:\"translate(-50%,0)\",\"top-left\":\"translate(0,0)\",\"top-right\":\"translate(-100%,0)\",bottom:\"translate(-50%,-100%)\",\"bottom-left\":\"translate(0,-100%)\",\"bottom-right\":\"translate(-100%,-100%)\",left:\"translate(0,-50%)\",right:\"translate(-100%,-50%)\"},a=this._container.classList;for(var s in i)a.remove(\"mapboxgl-popup-anchor-\"+s);a.add(\"mapboxgl-popup-anchor-\"+e),o.setTransform(this._container,i[e]+\" translate(\"+t.x+\"px,\"+t.y+\"px)\")}},_onClickClose:function(){this.remove()}})},{\"../geo/lng_lat\":339,\"../util/dom\":428,\"../util/evented\":434,\"../util/util\":442}],424:[function(t,e,r){\"use strict\";function n(t,e){this.target=t,this.parent=e,this.callbacks={},this.callbackID=0,this.receive=this.receive.bind(this),this.target.addEventListener(\"message\",this.receive,!1)}e.exports=n,n.prototype.receive=function(t){function e(t,e,r){this.postMessage({type:\"<response>\",id:String(i),error:t?String(t):null,data:e},r)}var r,n=t.data,i=n.id;if(\"<response>\"===n.type)r=this.callbacks[n.id],delete this.callbacks[n.id],r&&r(n.error||null,n.data);else if(void 0!==n.id&&this.parent[n.type])this.parent[n.type](n.data,e.bind(this));else if(void 0!==n.id&&this.parent.workerSources){var a=n.type.split(\".\");this.parent.workerSources[a[0]][a[1]](n.data,e.bind(this))}else this.parent[n.type](n.data)},n.prototype.send=function(t,e,r,n){var i=null;r&&(this.callbacks[i=this.callbackID++]=r),this.postMessage({type:t,id:String(i),data:e},n)},n.prototype.postMessage=function(t,e){this.target.postMessage(t,e)}},{}],425:[function(t,e,r){\"use strict\";function n(t){var e=document.createElement(\"a\");return e.href=t,e.protocol===document.location.protocol&&e.host===document.location.host}r.getJSON=function(t,e){var r=new XMLHttpRequest;return r.open(\"GET\",t,!0),r.setRequestHeader(\"Accept\",\"application/json\"),r.onerror=function(t){e(t)},r.onload=function(){if(r.status>=200&&r.status<300&&r.response){var t;try{t=JSON.parse(r.response)}catch(t){return e(t)}e(null,t)}else e(new Error(r.statusText))},r.send(),r},r.getArrayBuffer=function(t,e){var r=new XMLHttpRequest;return r.open(\"GET\",t,!0),r.responseType=\"arraybuffer\",r.onerror=function(t){e(t)},r.onload=function(){r.status>=200&&r.status<300&&r.response?e(null,r.response):e(new Error(r.statusText))},r.send(),r},r.getImage=function(t,e){return r.getArrayBuffer(t,function(t,r){if(t)return e(t);var n=new Image;n.onload=function(){e(null,n),(window.URL||window.webkitURL).revokeObjectURL(n.src)};var i=new Blob([new Uint8Array(r)],{type:\"image/png\"});return n.src=(window.URL||window.webkitURL).createObjectURL(i),n.getData=function(){var t=document.createElement(\"canvas\"),e=t.getContext(\"2d\");return t.width=n.width,t.height=n.height,e.drawImage(n,0,0),e.getImageData(0,0,n.width,n.height).data},n})},r.getVideo=function(t,e){var r=document.createElement(\"video\");r.onloadstart=function(){e(null,r)};for(var i=0;i<t.length;i++){var a=document.createElement(\"source\");n(t[i])||(r.crossOrigin=\"Anonymous\"),a.src=t[i],r.appendChild(a)}return r.getData=function(){return r},r}},{}],426:[function(t,e,r){\"use strict\";r.window=window,e.exports.now=function(){return window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now.bind(Date)}();var n=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame;r.frame=function(t){return n(t)};var i=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame;r.cancelFrame=function(t){i(t)},r.timed=function(t,n,i){function a(l){o||(l=e.exports.now(),l>=s+n?t.call(i,1):(t.call(i,(l-s)/n),r.frame(a)))}if(!n)return t.call(i,1),null;var o=!1,s=e.exports.now();return r.frame(a),function(){o=!0}},r.supported=t(\"mapbox-gl-supported\"),r.hardwareConcurrency=navigator.hardwareConcurrency||4,Object.defineProperty(r,\"devicePixelRatio\",{get:function(){return window.devicePixelRatio}}),r.supportsWebp=!1;var a=document.createElement(\"img\");a.onload=function(){r.supportsWebp=!0},a.src=\"data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=\",r.supportsGeolocation=!!navigator.geolocation},{\"mapbox-gl-supported\":327}],427:[function(t,e,r){\"use strict\";function n(t,e){this.canvas=document.createElement(\"canvas\"),t&&e&&(this.canvas.style.position=\"absolute\",this.canvas.classList.add(\"mapboxgl-canvas\"),this.canvas.addEventListener(\"webglcontextlost\",t._contextLost.bind(t),!1),this.canvas.addEventListener(\"webglcontextrestored\",t._contextRestored.bind(t),!1),this.canvas.setAttribute(\"tabindex\",0),e.appendChild(this.canvas))}var i=t(\"../util\"),a=t(\"mapbox-gl-supported\");e.exports=n,n.prototype.resize=function(t,e){var r=window.devicePixelRatio||1;this.canvas.width=r*t,this.canvas.height=r*e,this.canvas.style.width=t+\"px\",this.canvas.style.height=e+\"px\"},n.prototype.getWebGLContext=function(t){return t=i.extend({},t,a.webGLContextAttributes),this.canvas.getContext(\"webgl\",t)||this.canvas.getContext(\"experimental-webgl\",t)},n.prototype.getElement=function(){return this.canvas}},{\"../util\":442,\"mapbox-gl-supported\":327}],428:[function(t,e,r){\"use strict\";function n(t){for(var e=0;e<t.length;e++)if(t[e]in s)return t[e]}function i(t){t.preventDefault(),t.stopPropagation(),window.removeEventListener(\"click\",i,!0)}var a=t(\"point-geometry\");r.create=function(t,e,r){var n=document.createElement(t);return e&&(n.className=e),r&&r.appendChild(n),n};var o,s=document.documentElement.style,l=n([\"userSelect\",\"MozUserSelect\",\"WebkitUserSelect\",\"msUserSelect\"]);r.disableDrag=function(){l&&(o=s[l],s[l]=\"none\")},r.enableDrag=function(){l&&(s[l]=o)};var u=n([\"transform\",\"WebkitTransform\"]);r.setTransform=function(t,e){t.style[u]=e},r.suppressClick=function(){window.addEventListener(\"click\",i,!0),window.setTimeout(function(){window.removeEventListener(\"click\",i,!0)},0)},r.mousePos=function(t,e){var r=t.getBoundingClientRect();return e=e.touches?e.touches[0]:e,new a(e.clientX-r.left-t.clientLeft,e.clientY-r.top-t.clientTop)},r.touchPos=function(t,e){for(var r=t.getBoundingClientRect(),n=[],i=0;i<e.touches.length;i++)n.push(new a(e.touches[i].clientX-r.left-t.clientLeft,e.touches[i].clientY-r.top-t.clientTop));return n}},{\"point-geometry\":484}],429:[function(t,e,r){\"use strict\";var n=t(\"webworkify\");e.exports=function(){return new n(t(\"../../source/worker\"))}},{\"../../source/worker\":373,webworkify:564}],430:[function(t,e,r){\"use strict\";function n(t,e){return e.area-t.area}function i(t){for(var e,r,n=0,i=0,a=t.length,o=a-1;i<a;o=i++)e=t[i],r=t[o],n+=(r.x-e.x)*(e.y+r.y);return n}var a=t(\"quickselect\");e.exports=function(t,e){var r=t.length;if(r<=1)return[t];for(var o,s,l=[],u=0;u<r;u++){var c=i(t[u]);0!==c&&(t[u].area=Math.abs(c),void 0===s&&(s=c<0),s===c<0?(o&&l.push(o),o=[t[u]]):o.push(t[u]))}if(o&&l.push(o),e>1)for(var h=0;h<l.length;h++)l[h].length<=e||(a(l[h],e,1,l[h].length-1,n),l[h]=l[h].slice(0,e));return l}},{quickselect:493}],431:[function(t,e,r){\"use strict\";e.exports={API_URL:\"https://api.mapbox.com\",REQUIRE_ACCESS_TOKEN:!0}},{}],432:[function(t,e,r){\"use strict\";function n(t){this._stringToNumber={},this._numberToString=[];for(var e=0;e<t.length;e++){var r=t[e];this._stringToNumber[r]=e,this._numberToString[e]=r}}var i=t(\"assert\");e.exports=n,n.prototype.encode=function(t){return i(t in this._stringToNumber),this._stringToNumber[t]},n.prototype.decode=function(t){return i(t<this._numberToString.length),this._numberToString[t]}},{assert:47}],433:[function(t,e,r){\"use strict\";function n(t,e){this.actors=[],this.currentActor=0;for(var r=0;r<t;r++){var n=new o,i=new a(n,e);i.name=\"Worker \"+r,this.actors.push(i)}}var i=t(\"./util\"),a=t(\"./actor\"),o=t(\"./web_worker\");e.exports=n,n.prototype={broadcast:function(t,e,r){r=r||function(){},i.asyncAll(this.actors,function(r,n){r.send(t,e,n)},r)},send:function(t,e,r,n,i){return(\"number\"!=typeof n||isNaN(n))&&(n=this.currentActor=(this.currentActor+1)%this.actors.length),this.actors[n].send(t,e,r,i),n},remove:function(){for(var t=0;t<this.actors.length;t++)this.actors[t].target.terminate();this.actors=[]}}},{\"./actor\":424,\"./util\":442,\"./web_worker\":429}],434:[function(t,e,r){\"use strict\";var n=t(\"./util\"),i={on:function(t,e){return this._events=this._events||{},this._events[t]=this._events[t]||[],this._events[t].push(e),this},off:function(t,e){if(!t)return delete this._events,this;if(!this.listens(t))return this;if(e){var r=this._events[t].indexOf(e);r>=0&&this._events[t].splice(r,1),this._events[t].length||delete this._events[t]}else delete this._events[t];return this},once:function(t,e){var r=function(n){this.off(t,r),e.call(this,n)}.bind(this);return this.on(t,r),this},fire:function(t,e){if(!this.listens(t))return n.endsWith(t,\"error\")&&console.error(e&&e.error||e||\"Empty error event\"),this;e=n.extend({},e),n.extend(e,{type:t,target:this});for(var r=this._events[t].slice(),i=0;i<r.length;i++)r[i].call(this,e);return this},listens:function(t){return!(!this._events||!this._events[t])}};e.exports=i},{\"./util\":442}],435:[function(t,e,r){\"use strict\";function n(t,e){this.stacks=t.readFields(i,[],e)}function i(t,e,r){if(1===t){var n=r.readMessage(a,{glyphs:{}});e.push(n)}}function a(t,e,r){if(1===t)e.name=r.readString();else if(2===t)e.range=r.readString();else if(3===t){var n=r.readMessage(o,{});e.glyphs[n.id]=n}}function o(t,e,r){1===t?e.id=r.readVarint():2===t?e.bitmap=r.readBytes():3===t?e.width=r.readVarint():4===t?e.height=r.readVarint():5===t?e.left=r.readSVarint():6===t?e.top=r.readSVarint():7===t&&(e.advance=r.readVarint())}e.exports=n},{}],436:[function(t,e,r){\"use strict\";function n(t,e,r){return t*(1-r)+e*r}e.exports=n,n.number=n,n.vec2=function(t,e,r){return[n(t[0],e[0],r),n(t[1],e[1],r)]},n.color=function(t,e,r){return[n(t[0],e[0],r),n(t[1],e[1],r),n(t[2],e[2],r),n(t[3],e[3],r)]},n.array=function(t,e,r){return t.map(function(t,i){return n(t,e[i],r)})}},{}],437:[function(t,e,r){\"use strict\";function n(t,e,r){for(var n=0;n<t.length;n++)for(var i=t[n],a=0;a<e.length;a++)for(var o=e[a],s=0;s<o.length;s++){var l=o[s];if(d(i,l))return!0;if(c(l,i,r))return!0}return!1}function i(t,e){if(1===t.length&&1===t[0].length)return f(e,t[0][0]);for(var r=0;r<e.length;r++)for(var n=e[r],i=0;i<n.length;i++)if(f(t,n[i]))return!0;for(var a=0;a<t.length;a++){for(var o=t[a],l=0;l<o.length;l++)if(f(e,o[l]))return!0;for(var u=0;u<e.length;u++)if(s(o,e[u]))return!0}return!1}function a(t,e,r){for(var n=0;n<e.length;n++)for(var i=e[n],a=0;a<t.length;a++){var s=t[a];if(s.length>=3)for(var l=0;l<i.length;l++)if(d(s,i[l]))return!0;if(o(s,i,r))return!0}return!1}function o(t,e,r){if(t.length>1){if(s(t,e))return!0;for(var n=0;n<e.length;n++)if(c(e[n],t,r))return!0}for(var i=0;i<t.length;i++)if(c(t[i],e,r))return!0;return!1}function s(t,e){for(var r=0;r<t.length-1;r++)for(var n=t[r],i=t[r+1],a=0;a<e.length-1;a++){var o=e[a],s=e[a+1];if(u(n,i,o,s))return!0}return!1}function l(t,e,r){return(r.y-t.y)*(e.x-t.x)>(e.y-t.y)*(r.x-t.x)}function u(t,e,r,n){return l(t,r,n)!==l(e,r,n)&&l(t,e,r)!==l(t,e,n)}function c(t,e,r){var n=r*r;if(1===e.length)return t.distSqr(e[0])<n;for(var i=1;i<e.length;i++){if(h(t,e[i-1],e[i])<n)return!0}return!1}function h(t,e,r){var n=e.distSqr(r);if(0===n)return t.distSqr(e);var i=((t.x-e.x)*(r.x-e.x)+(t.y-e.y)*(r.y-e.y))/n;return i<0?t.distSqr(e):i>1?t.distSqr(r):t.distSqr(r.sub(e)._mult(i)._add(e))}function f(t,e){for(var r,n,i,a=!1,o=0;o<t.length;o++){r=t[o];for(var s=0,l=r.length-1;s<r.length;l=s++)n=r[s],i=r[l],n.y>e.y!=i.y>e.y&&e.x<(i.x-n.x)*(e.y-n.y)/(i.y-n.y)+n.x&&(a=!a)}return a}function d(t,e){for(var r=!1,n=0,i=t.length-1;n<t.length;i=n++){var a=t[n],o=t[i];a.y>e.y!=o.y>e.y&&e.x<(o.x-a.x)*(e.y-a.y)/(o.y-a.y)+a.x&&(r=!r)}return r}e.exports={multiPolygonIntersectsBufferedMultiPoint:n,multiPolygonIntersectsMultiPolygon:i,multiPolygonIntersectsBufferedMultiLine:a}},{}],438:[function(t,e,r){\"use strict\";function n(t,e){this.max=t,this.onRemove=e,this.reset()}e.exports=n,n.prototype.reset=function(){for(var t in this.data)this.onRemove(this.data[t]);return this.data={},this.order=[],this},n.prototype.add=function(t,e){if(this.has(t))this.order.splice(this.order.indexOf(t),1),this.data[t]=e,this.order.push(t);else if(this.data[t]=e,this.order.push(t),this.order.length>this.max){var r=this.get(this.order[0]);r&&this.onRemove(r)}return this},n.prototype.has=function(t){return t in this.data},n.prototype.keys=function(){return this.order},n.prototype.get=function(t){if(!this.has(t))return null;var e=this.data[t];return delete this.data[t],this.order.splice(this.order.indexOf(t),1),e},n.prototype.setMaxSize=function(t){for(this.max=t;this.order.length>this.max;){var e=this.get(this.order[0]);e&&this.onRemove(e)}return this}},{}],439:[function(t,e,r){\"use strict\";function n(t,e,r){if(!(r=r||o.ACCESS_TOKEN)&&o.REQUIRE_ACCESS_TOKEN)throw new Error(\"An API access token is required to use Mapbox GL. See https://www.mapbox.com/developers/api/#access-tokens\");if(t=t.replace(/^mapbox:\\/\\//,o.API_URL+e),\n", "t+=-1!==t.indexOf(\"?\")?\"&access_token=\":\"?access_token=\",o.REQUIRE_ACCESS_TOKEN){if(\"s\"===r[0])throw new Error(\"Use a public access token (pk.*) with Mapbox GL JS, not a secret access token (sk.*). See https://www.mapbox.com/developers/api/#access-tokens\");t+=r}return t}function i(t){return t?\"?\"+t:\"\"}function a(t){return t.access_token&&\"tk.\"===t.access_token.slice(0,3)?u.extend({},t,{access_token:o.ACCESS_TOKEN}):t}var o=t(\"./config\"),s=t(\"./browser\"),l=t(\"url\"),u=t(\"./util\");e.exports.normalizeStyleURL=function(t,e){var r=l.parse(t);return\"mapbox:\"!==r.protocol?t:n(\"mapbox:/\"+r.pathname+i(r.query),\"/styles/v1/\",e)},e.exports.normalizeSourceURL=function(t,e){return\"mapbox:\"!==l.parse(t).protocol?t:n(t+\".json\",\"/v4/\",e)+\"&secure\"},e.exports.normalizeGlyphsURL=function(t,e){var r=l.parse(t);return\"mapbox:\"!==r.protocol?t:n(\"mapbox://\"+r.pathname.split(\"/\")[1]+\"/{fontstack}/{range}.pbf\"+i(r.query),\"/fonts/v1/\",e)},e.exports.normalizeSpriteURL=function(t,e,r,a){var o=l.parse(t);return\"mapbox:\"!==o.protocol?(o.pathname+=e+r,l.format(o)):n(\"mapbox:/\"+o.pathname+\"/sprite\"+e+r+i(o.query),\"/styles/v1/\",a)},e.exports.normalizeTileURL=function(t,e,r){var n=l.parse(t,!0);if(!e)return t;if(\"mapbox:\"!==l.parse(e).protocol)return t;var i=s.supportsWebp?\".webp\":\"$1\",o=s.devicePixelRatio>=2||512===r?\"@2x\":\"\";return l.format({protocol:n.protocol,hostname:n.hostname,pathname:n.pathname.replace(/(\\.(?:png|jpg)\\d*)/,o+i),query:a(n.query)})}},{\"./browser\":426,\"./config\":431,\"./util\":442,url:545}],440:[function(t,e,r){\"use strict\";function n(t){function e(){f.apply(this,arguments)}function r(){d.apply(this,arguments),this.members=e.prototype.members}var n=JSON.stringify(t);if(v[n])return v[n];void 0===t.alignment&&(t.alignment=1),e.prototype=Object.create(f.prototype);var s=0,u=0,g=[\"Uint8\"];return e.prototype.members=t.members.map(function(r){r={name:r.name,type:r.type,components:r.components||1},p(r.name.length),p(r.type in m),g.indexOf(r.type)<0&&g.push(r.type);var n=o(r.type);u=Math.max(u,n),r.offset=s=a(s,Math.max(t.alignment,n));for(var i=0;i<r.components;i++)Object.defineProperty(e.prototype,r.name+(1===r.components?\"\":i),{get:c(r,i),set:h(r,i)});return s+=n*r.components,r}),e.prototype.alignment=t.alignment,e.prototype.size=a(s,Math.max(u,t.alignment)),r.serialize=i,r.prototype=Object.create(d.prototype),r.prototype.StructType=e,r.prototype.bytesPerElement=e.prototype.size,r.prototype.emplaceBack=l(e.prototype.members,e.prototype.size),r.prototype._usedTypes=g,v[n]=r,r}function i(){return{members:this.prototype.StructType.prototype.members,alignment:this.prototype.StructType.prototype.alignment,bytesPerElement:this.prototype.bytesPerElement}}function a(t,e){return Math.ceil(t/e)*e}function o(t){return m[t].BYTES_PER_ELEMENT}function s(t){return t.toLowerCase()}function l(t,e){for(var r=[],n=[],i=\"var i = this.length;\\nthis.resize(this.length + 1);\\n\",a=0;a<t.length;a++){var l=t[a],u=o(l.type);r.indexOf(u)<0&&(r.push(u),i+=\"var o\"+u.toFixed(0)+\" = i * \"+(e/u).toFixed(0)+\";\\n\");for(var c=0;c<l.components;c++){var h=\"v\"+n.length,f=\"o\"+u.toFixed(0)+\" + \"+(l.offset/u+c).toFixed(0);i+=\"this.\"+s(l.type)+\"[\"+f+\"] = \"+h+\";\\n\",n.push(h)}}return i+=\"return i;\",new Function(n,i)}function u(t,e){var r=\"this._pos\"+o(t.type).toFixed(0),n=(t.offset/o(t.type)+e).toFixed(0),i=r+\" + \"+n;return\"this._structArray.\"+s(t.type)+\"[\"+i+\"]\"}function c(t,e){return new Function([],\"return \"+u(t,e)+\";\")}function h(t,e){return new Function([\"x\"],u(t,e)+\" = x;\")}function f(t,e){this._structArray=t,this._pos1=e*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8}function d(t){void 0!==t?(this.arrayBuffer=t.arrayBuffer,this.length=t.length,this.capacity=this.arrayBuffer.byteLength/this.bytesPerElement,this._refreshViews()):(this.capacity=-1,this.resize(0))}var p=t(\"assert\");e.exports=n;var m={Int8:Int8Array,Uint8:Uint8Array,Uint8Clamped:Uint8ClampedArray,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array,Float64:Float64Array},v={};d.prototype.DEFAULT_CAPACITY=128,d.prototype.RESIZE_MULTIPLIER=5,d.prototype.serialize=function(){return this.trim(),{length:this.length,arrayBuffer:this.arrayBuffer}},d.prototype.get=function(t){return new this.StructType(this,t)},d.prototype.trim=function(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},d.prototype.resize=function(t){if(this.length=t,t>this.capacity){this.capacity=Math.max(t,Math.floor(this.capacity*this.RESIZE_MULTIPLIER),this.DEFAULT_CAPACITY),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var e=this.uint8;this._refreshViews(),e&&this.uint8.set(e)}},d.prototype._refreshViews=function(){for(var t=0;t<this._usedTypes.length;t++){var e=this._usedTypes[t];this[s(e)]=new m[e](this.arrayBuffer)}},d.prototype.toArray=function(t,e){for(var r=[],n=t;n<e;n++){var i=this.get(n);r.push(i)}return r}},{assert:47}],441:[function(t,e,r){\"use strict\";function n(t,e){return e.replace(/{([^{}]+)}/g,function(e,r){return r in t?t[r]:\"\"})}e.exports=n},{}],442:[function(t,e,r){\"use strict\";var n=t(\"unitbezier\"),i=t(\"../geo/coordinate\");r.easeCubicInOut=function(t){if(t<=0)return 0;if(t>=1)return 1;var e=t*t,r=e*t;return 4*(t<.5?r:3*(t-e)+r-.75)},r.bezier=function(t,e,r,i){var a=new n(t,e,r,i);return function(t){return a.solve(t)}},r.ease=r.bezier(.25,.1,.25,1),r.clamp=function(t,e,r){return Math.min(r,Math.max(e,t))},r.wrap=function(t,e,r){var n=r-e,i=((t-e)%n+n)%n+e;return i===e?r:i},r.coalesce=function(){for(var t=0;t<arguments.length;t++){var e=arguments[t];if(null!==e&&void 0!==e)return e}},r.asyncAll=function(t,e,r){if(!t.length)return r(null,[]);var n=t.length,i=new Array(t.length),a=null;t.forEach(function(t,o){e(t,function(t,e){t&&(a=t),i[o]=e,0==--n&&r(a,i)})})},r.keysDifference=function(t,e){var r=[];for(var n in t)n in e||r.push(n);return r},r.extend=function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)t[n]=r[n]}return t},r.extendAll=function(t,e){for(var r in e)Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t},r.inherit=function(t,e){var n=\"function\"==typeof t?t.prototype:t,i=Object.create(n);return r.extendAll(i,e),i},r.pick=function(t,e){for(var r={},n=0;n<e.length;n++){var i=e[n];i in t&&(r[i]=t[i])}return r};var a=1;r.uniqueId=function(){return a++},r.debounce=function(t,e){var r,n;return function(){n=arguments,clearTimeout(r),r=setTimeout(function(){t.apply(null,n)},e)}},r.bindAll=function(t,e){t.forEach(function(t){e[t]&&(e[t]=e[t].bind(e))})},r.bindHandlers=function(t){for(var e in t)\"function\"==typeof t[e]&&0===e.indexOf(\"_on\")&&(t[e]=t[e].bind(t))},r.setOptions=function(t,e){t.hasOwnProperty(\"options\")||(t.options=t.options?Object.create(t.options):{});for(var r in e)t.options[r]=e[r];return t.options},r.getCoordinatesCenter=function(t){for(var e=1/0,r=1/0,n=-1/0,a=-1/0,o=0;o<t.length;o++)e=Math.min(e,t[o].column),r=Math.min(r,t[o].row),n=Math.max(n,t[o].column),a=Math.max(a,t[o].row);var s=n-e,l=a-r,u=Math.max(s,l);return new i((e+n)/2,(r+a)/2,0).zoomTo(Math.floor(-Math.log(u)/Math.LN2))},r.endsWith=function(t,e){return-1!==t.indexOf(e,t.length-e.length)},r.startsWith=function(t,e){return 0===t.indexOf(e)},r.mapObject=function(t,e,r){var n={};for(var i in t)n[i]=e.call(r||this,t[i],i,t);return n},r.filterObject=function(t,e,r){var n={};for(var i in t)e.call(r||this,t[i],i,t)&&(n[i]=t[i]);return n},r.deepEqual=function t(e,r){if(Array.isArray(e)){if(!Array.isArray(r)||e.length!==r.length)return!1;for(var n=0;n<e.length;n++)if(!t(e[n],r[n]))return!1;return!0}if(\"object\"==typeof e&&null!==e&&null!==r){if(\"object\"!=typeof r)return!1;if(Object.keys(e).length!==Object.keys(r).length)return!1;for(var i in e)if(!t(e[i],r[i]))return!1;return!0}return e===r},r.clone=function(t){return Array.isArray(t)?t.map(r.clone):\"object\"==typeof t?r.mapObject(t,r.clone):t},r.arraysIntersect=function(t,e){for(var r=0;r<t.length;r++)if(e.indexOf(t[r])>=0)return!0;return!1};var o={};r.warnOnce=function(t){o[t]||(\"undefined\"!=typeof console&&console.warn(t),o[t]=!0)}},{\"../geo/coordinate\":338,unitbezier:544}],443:[function(t,e,r){\"use strict\";function n(t,e,r,n){this._vectorTileFeature=t,t._z=e,t._x=r,t._y=n,this.properties=t.properties,null!=t.id&&(this.id=t.id)}e.exports=n,n.prototype={type:\"Feature\",get geometry(){return void 0===this._geometry&&(this._geometry=this._vectorTileFeature.toGeoJSON(this._vectorTileFeature._x,this._vectorTileFeature._y,this._vectorTileFeature._z).geometry),this._geometry},set geometry(t){this._geometry=t},toJSON:function(){var t={};for(var e in this)\"_geometry\"!==e&&\"_vectorTileFeature\"!==e&&\"toJSON\"!==e&&(t[e]=this[e]);return t}}},{}],444:[function(t,e,r){e.exports={_args:[[{raw:\"mapbox-gl@^0.22.0\",scope:null,escapedName:\"mapbox-gl\",name:\"mapbox-gl\",rawSpec:\"^0.22.0\",spec:\">=0.22.0 <0.23.0\",type:\"range\"},\"/home/etienne/Documents/plotly/plotly.js\"]],_from:\"mapbox-gl@>=0.22.0 <0.23.0\",_id:\"mapbox-gl@0.22.1\",_inCache:!0,_location:\"/mapbox-gl\",_nodeVersion:\"4.4.5\",_npmOperationalInternal:{host:\"packages-12-west.internal.npmjs.com\",tmp:\"tmp/mapbox-gl-0.22.1.tgz_1471549891670_0.8762630566488951\"},_npmUser:{name:\"lucaswoj\",email:\"lucas@lucaswoj.com\"},_npmVersion:\"2.15.5\",_phantomChildren:{},_requested:{raw:\"mapbox-gl@^0.22.0\",scope:null,escapedName:\"mapbox-gl\",name:\"mapbox-gl\",rawSpec:\"^0.22.0\",spec:\">=0.22.0 <0.23.0\",type:\"range\"},_requiredBy:[\"/\"],_resolved:\"https://registry.npmjs.org/mapbox-gl/-/mapbox-gl-0.22.1.tgz\",_shasum:\"92a965547d4c2f24c22cbc487eeda48694cb627a\",_shrinkwrap:null,_spec:\"mapbox-gl@^0.22.0\",_where:\"/home/etienne/Documents/plotly/plotly.js\",browser:{\"./js/util/ajax.js\":\"./js/util/browser/ajax.js\",\"./js/util/browser.js\":\"./js/util/browser/browser.js\",\"./js/util/canvas.js\":\"./js/util/browser/canvas.js\",\"./js/util/dom.js\":\"./js/util/browser/dom.js\",\"./js/util/web_worker.js\":\"./js/util/browser/web_worker.js\"},bugs:{url:\"https://github.com/mapbox/mapbox-gl-js/issues\"},dependencies:{csscolorparser:\"^1.0.2\",earcut:\"^2.0.3\",\"feature-filter\":\"^2.2.0\",\"geojson-rewind\":\"^0.1.0\",\"geojson-vt\":\"^2.4.0\",\"gl-matrix\":\"^2.3.1\",\"grid-index\":\"^1.0.0\",\"mapbox-gl-function\":\"^1.2.1\",\"mapbox-gl-shaders\":\"github:mapbox/mapbox-gl-shaders#de2ab007455aa2587c552694c68583f94c9f2747\",\"mapbox-gl-style-spec\":\"github:mapbox/mapbox-gl-style-spec#83b1a3e5837d785af582efd5ed1a212f2df6a4ae\",\"mapbox-gl-supported\":\"^1.2.0\",pbf:\"^1.3.2\",pngjs:\"^2.2.0\",\"point-geometry\":\"^0.0.0\",quickselect:\"^1.0.0\",request:\"^2.39.0\",\"resolve-url\":\"^0.2.1\",\"shelf-pack\":\"^1.0.0\",supercluster:\"^2.0.1\",unassertify:\"^2.0.0\",unitbezier:\"^0.0.0\",\"vector-tile\":\"^1.3.0\",\"vt-pbf\":\"^2.0.2\",webworkify:\"^1.3.0\",\"whoots-js\":\"^2.0.0\"},description:\"A WebGL interactive maps library\",devDependencies:{\"babel-preset-react\":\"^6.11.1\",babelify:\"^7.3.0\",benchmark:\"~2.1.0\",browserify:\"^13.0.0\",clipboard:\"^1.5.12\",\"concat-stream\":\"1.5.1\",coveralls:\"^2.11.8\",doctrine:\"^1.2.1\",documentation:\"https://github.com/documentationjs/documentation/archive/bb41619c734e59ef3fbc3648610032efcfdaaace.tar.gz\",\"documentation-theme-utils\":\"3.0.0\",envify:\"^3.4.0\",eslint:\"^2.5.3\",\"eslint-config-mourner\":\"^2.0.0\",\"eslint-plugin-html\":\"^1.5.1\",gl:\"^4.0.1\",handlebars:\"4.0.5\",\"highlight.js\":\"9.3.0\",istanbul:\"^0.4.2\",\"json-loader\":\"^0.5.4\",lodash:\"^4.13.1\",\"mapbox-gl-test-suite\":\"github:mapbox/mapbox-gl-test-suite#7babab52fb02788ebbc38384139bf350e8e38552\",\"memory-fs\":\"^0.3.0\",minifyify:\"^7.0.1\",\"npm-run-all\":\"^3.0.0\",nyc:\"6.4.0\",proxyquire:\"^1.7.9\",remark:\"4.2.2\",\"remark-html\":\"3.0.0\",sinon:\"^1.15.4\",st:\"^1.2.0\",tap:\"^5.7.0\",\"transform-loader\":\"^0.2.3\",\"unist-util-visit\":\"1.1.0\",vinyl:\"1.1.1\",\"vinyl-fs\":\"2.4.3\",watchify:\"^3.7.0\",webpack:\"^1.13.1\",\"webworkify-webpack\":\"^1.1.3\"},directories:{},dist:{shasum:\"92a965547d4c2f24c22cbc487eeda48694cb627a\",tarball:\"https://registry.npmjs.org/mapbox-gl/-/mapbox-gl-0.22.1.tgz\"},engines:{node:\">=4.0.0\"},gitHead:\"13a9015341f0602ccb55c98c53079838ad4b70b5\",homepage:\"https://github.com/mapbox/mapbox-gl-js#readme\",license:\"BSD-3-Clause\",main:\"js/mapbox-gl.js\",maintainers:[{name:\"aaronlidman\",email:\"aaronlidman@gmail.com\"},{name:\"ajashton\",email:\"aj.ashton@gmail.com\"},{name:\"ansis\",email:\"ansis.brammanis@gmail.com\"},{name:\"bergwerkgis\",email:\"wb@bergwerk-gis.at\"},{name:\"bhousel\",email:\"bryan@mapbox.com\"},{name:\"bsudekum\",email:\"bobby@mapbox.com\"},{name:\"camilleanne\",email:\"camille@mapbox.com\"},{name:\"dnomadb\",email:\"damon@mapbox.com\"},{name:\"dthompson\",email:\"dthompson@gmail.com\"},{name:\"emilymcafee\",email:\"emily@mapbox.com\"},{name:\"flippmoke\",email:\"flippmoke@gmail.com\"},{name:\"freenerd\",email:\"spam@freenerd.de\"},{name:\"gretacb\",email:\"carol@mapbox.com\"},{name:\"ian29\",email:\"ian.villeda@gmail.com\"},{name:\"ianshward\",email:\"ian@mapbox.com\"},{name:\"ingalls\",email:\"nicholas.ingalls@gmail.com\"},{name:\"jfirebaugh\",email:\"john.firebaugh@gmail.com\"},{name:\"jrpruit1\",email:\"jake@jakepruitt.com\"},{name:\"karenzshea\",email:\"karen@mapbox.com\"},{name:\"kkaefer\",email:\"kkaefer@gmail.com\"},{name:\"lbud\",email:\"lauren@mapbox.com\"},{name:\"lucaswoj\",email:\"lucas@lucaswoj.com\"},{name:\"lxbarth\",email:\"alex@mapbox.com\"},{name:\"lyzidiamond\",email:\"lyzi@mapbox.com\"},{name:\"mapbox-admin\",email:\"accounts@mapbox.com\"},{name:\"mateov\",email:\"matt@mapbox.com\"},{name:\"mcwhittemore\",email:\"mcwhittemore@gmail.com\"},{name:\"miccolis\",email:\"jeff@miccolis.net\"},{name:\"mikemorris\",email:\"michael.patrick.morris@gmail.com\"},{name:\"morganherlocker\",email:\"morgan.herlocker@gmail.com\"},{name:\"mourner\",email:\"agafonkin@gmail.com\"},{name:\"nickidlugash\",email:\"nicki@mapbox.com\"},{name:\"rclark\",email:\"ryan.clark.j@gmail.com\"},{name:\"samanbb\",email:\"saman@mapbox.com\"},{name:\"sbma44\",email:\"tlee@mapbox.com\"},{name:\"scothis\",email:\"scothis@gmail.com\"},{name:\"sgillies\",email:\"sean@mapbox.com\"},{name:\"springmeyer\",email:\"dane@mapbox.com\"},{name:\"themarex\",email:\"patrick@mapbox.com\"},{name:\"tmcw\",email:\"tom@macwright.org\"},{name:\"tristen\",email:\"tristen.brown@gmail.com\"},{name:\"willwhite\",email:\"will@mapbox.com\"},{name:\"yhahn\",email:\"young@mapbox.com\"}],name:\"mapbox-gl\",optionalDependencies:{},readme:\"ERROR: No README data found!\",repository:{type:\"git\",url:\"git://github.com/mapbox/mapbox-gl-js.git\"},scripts:{build:\"npm run build-docs # invoked by publisher when publishing docs on the mb-pages branch\",\"build-dev\":\"browserify js/mapbox-gl.js --debug --standalone mapboxgl > dist/mapbox-gl-dev.js && tap --no-coverage test/build/dev.test.js\",\"build-docs\":\"documentation build --github --format html -c documentation.yml --theme ./docs/_theme --output docs/api/\",\"build-min\":\"browserify js/mapbox-gl.js --debug -t unassertify --plugin [minifyify --map mapbox-gl.js.map --output dist/mapbox-gl.js.map] --standalone mapboxgl > dist/mapbox-gl.js && tap --no-coverage test/build/min.test.js\",\"build-token\":\"browserify debug/access-token-src.js --debug -t envify > debug/access-token.js\",lint:\"eslint --ignore-path .gitignore js test bench docs/_posts/examples/*.html\",\"open-changed-examples\":\"git diff --name-only mb-pages HEAD -- docs/_posts/examples/*.html | awk '{print \\\"http://127.0.0.1:4000/mapbox-gl-js/example/\\\" substr($0,33,length($0)-37)}' | xargs open\",start:\"run-p build-token watch-dev watch-bench start-server\",\"start-bench\":\"run-p build-token watch-bench start-server\",\"start-debug\":\"run-p build-token watch-dev start-server\",\"start-docs\":\"npm run build-min && npm run build-docs && jekyll serve -w\",\"start-server\":\"st --no-cache --localhost --port 9966 --index index.html .\",test:\"npm run lint && tap --reporter dot test/js/*/*.js test/build/webpack.test.js\",\"test-suite\":\"node test/render.test.js && node test/query.test.js\",\"watch-bench\":\"node bench/download-data.js && watchify bench/index.js --plugin [minifyify --no-map] -t [babelify --presets react] -t unassertify -t envify -o bench/bench.js -v\",\"watch-dev\":\"watchify js/mapbox-gl.js --debug --standalone mapboxgl -o dist/mapbox-gl-dev.js -v\"},version:\"0.22.1\"}},{}],445:[function(t,e,r){\"use strict\";function n(t,e,r){for(var n=new Array(t),i=0;i<t;++i)n[i]=0,i===e&&(n[i]+=.5),i===r&&(n[i]+=.5);return n}function i(t,e){if(0===e||e===(1<<t+1)-1)return[];for(var r=[],i=[],a=0;a<=t;++a)if(e&1<<a){r.push(n(t,a-1,a-1)),i.push(null);for(var s=0;s<=t;++s)~e&1<<s&&(r.push(n(t,a-1,s-1)),i.push([a,s]))}var l=o(r),u=[];t:for(var a=0;a<l.length;++a){for(var c=l[a],h=[],s=0;s<c.length;++s){if(!i[c[s]])continue t;h.push(i[c[s]].slice())}u.push(h)}return u}function a(t){for(var e=1<<t+1,r=new Array(e),n=0;n<e;++n)r[n]=i(t,n);return r}e.exports=a;var o=t(\"convex-hull\")},{\"convex-hull\":103}],446:[function(t,e,r){function n(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3];return t[0]=r[0]*n+r[4]*i+r[8]*a+r[12]*o,t[1]=r[1]*n+r[5]*i+r[9]*a+r[13]*o,t[2]=r[2]*n+r[6]*i+r[10]*a+r[14]*o,t[3]=r[3]*n+r[7]*i+r[11]*a+r[15]*o,t}function i(t,e){t[0][0]=e[0],t[0][1]=e[1],t[0][2]=e[2],t[1][0]=e[4],t[1][1]=e[5],t[1][2]=e[6],t[2][0]=e[8],t[2][1]=e[9],t[2][2]=e[10]}function a(t,e,r,n,i){t[0]=e[0]*n+r[0]*i,t[1]=e[1]*n+r[1]*i,t[2]=e[2]*n+r[2]*i}var o=t(\"./normalize\"),s=t(\"gl-mat4/create\"),l=t(\"gl-mat4/clone\"),u=t(\"gl-mat4/determinant\"),c=t(\"gl-mat4/invert\"),h=t(\"gl-mat4/transpose\"),f={length:t(\"gl-vec3/length\"),normalize:t(\"gl-vec3/normalize\"),dot:t(\"gl-vec3/dot\"),cross:t(\"gl-vec3/cross\")},d=s(),p=s(),m=[0,0,0,0],v=[[0,0,0],[0,0,0],[0,0,0]],g=[0,0,0];e.exports=function(t,e,r,s,y,b){if(e||(e=[0,0,0]),r||(r=[0,0,0]),s||(s=[0,0,0]),y||(y=[0,0,0,1]),b||(b=[0,0,0,1]),!o(d,t))return!1;if(l(p,d),p[3]=0,p[7]=0,p[11]=0,p[15]=1,Math.abs(u(p)<1e-8))return!1;var x=d[3],_=d[7],w=d[11],M=d[12],k=d[13],A=d[14],T=d[15];if(0!==x||0!==_||0!==w){m[0]=x,m[1]=_,m[2]=w,m[3]=T;if(!c(p,p))return!1;h(p,p),n(y,m,p)}else y[0]=y[1]=y[2]=0,y[3]=1;if(e[0]=M,e[1]=k,e[2]=A,i(v,d),r[0]=f.length(v[0]),f.normalize(v[0],v[0]),s[0]=f.dot(v[0],v[1]),a(v[1],v[1],v[0],1,-s[0]),r[1]=f.length(v[1]),f.normalize(v[1],v[1]),s[0]/=r[1],s[1]=f.dot(v[0],v[2]),a(v[2],v[2],v[0],1,-s[1]),s[2]=f.dot(v[1],v[2]),a(v[2],v[2],v[1],1,-s[2]),r[2]=f.length(v[2]),f.normalize(v[2],v[2]),s[1]/=r[2],s[2]/=r[2],f.cross(g,v[1],v[2]),f.dot(v[0],g)<0)for(var S=0;S<3;S++)r[S]*=-1,v[S][0]*=-1,v[S][1]*=-1,v[S][2]*=-1;return b[0]=.5*Math.sqrt(Math.max(1+v[0][0]-v[1][1]-v[2][2],0)),b[1]=.5*Math.sqrt(Math.max(1-v[0][0]+v[1][1]-v[2][2],0)),b[2]=.5*Math.sqrt(Math.max(1-v[0][0]-v[1][1]+v[2][2],0)),b[3]=.5*Math.sqrt(Math.max(1+v[0][0]+v[1][1]+v[2][2],0)),v[2][1]>v[1][2]&&(b[0]=-b[0]),v[0][2]>v[2][0]&&(b[1]=-b[1]),v[1][0]>v[0][1]&&(b[2]=-b[2]),!0}},{\"./normalize\":447,\"gl-mat4/clone\":175,\"gl-mat4/create\":176,\"gl-mat4/determinant\":177,\"gl-mat4/invert\":181,\"gl-mat4/transpose\":191,\"gl-vec3/cross\":272,\"gl-vec3/dot\":273,\"gl-vec3/length\":274,\"gl-vec3/normalize\":276}],447:[function(t,e,r){e.exports=function(t,e){var r=e[15];if(0===r)return!1;for(var n=1/r,i=0;i<16;i++)t[i]=e[i]*n;return!0}},{}],448:[function(t,e,r){function n(t,e,r,n){if(0===c(e)||0===c(r))return!1;var i=u(e,f.translate,f.scale,f.skew,f.perspective,f.quaternion),a=u(r,d.translate,d.scale,d.skew,d.perspective,d.quaternion);return!(!i||!a)&&(s(p.translate,f.translate,d.translate,n),s(p.skew,f.skew,d.skew,n),s(p.scale,f.scale,d.scale,n),s(p.perspective,f.perspective,d.perspective,n),h(p.quaternion,f.quaternion,d.quaternion,n),l(t,p.translate,p.scale,p.skew,p.perspective,p.quaternion),!0)}function i(){return{translate:a(),scale:a(1),skew:a(),perspective:o(),quaternion:o()}}function a(t){return[t||0,t||0,t||0]}function o(){return[0,0,0,1]}var s=t(\"gl-vec3/lerp\"),l=t(\"mat4-recompose\"),u=t(\"mat4-decompose\"),c=t(\"gl-mat4/determinant\"),h=t(\"quat-slerp\"),f=i(),d=i(),p=i();e.exports=n},{\"gl-mat4/determinant\":177,\"gl-vec3/lerp\":275,\"mat4-decompose\":446,\"mat4-recompose\":449,\"quat-slerp\":489}],449:[function(t,e,r){var n={identity:t(\"gl-mat4/identity\"),translate:t(\"gl-mat4/translate\"),multiply:t(\"gl-mat4/multiply\"),create:t(\"gl-mat4/create\"),scale:t(\"gl-mat4/scale\"),fromRotationTranslation:t(\"gl-mat4/fromRotationTranslation\")},i=(n.create(),n.create());e.exports=function(t,e,r,a,o,s){return n.identity(t),n.fromRotationTranslation(t,s,e),t[3]=o[0],t[7]=o[1],t[11]=o[2],t[15]=o[3],n.identity(i),0!==a[2]&&(i[9]=a[2],n.multiply(t,t,i)),0!==a[1]&&(i[9]=0,i[8]=a[1],n.multiply(t,t,i)),0!==a[0]&&(i[8]=0,i[4]=a[0],n.multiply(t,t,i)),n.scale(t,t,r),t}},{\"gl-mat4/create\":176,\"gl-mat4/fromRotationTranslation\":179,\"gl-mat4/identity\":180,\"gl-mat4/multiply\":183,\"gl-mat4/scale\":189,\"gl-mat4/translate\":190}],450:[function(t,e,r){\"use strict\";function n(t){this._components=t.slice(),this._time=[0],this.prevMatrix=t.slice(),this.nextMatrix=t.slice(),this.computedMatrix=t.slice(),this.computedInverse=t.slice(),this.computedEye=[0,0,0],this.computedUp=[0,0,0],this.computedCenter=[0,0,0],this.computedRadius=[0],this._limits=[-1/0,1/0]}function i(t){return t=t||{},new n(t.matrix||[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])}var a=t(\"binary-search-bounds\"),o=t(\"mat4-interpolate\"),s=t(\"gl-mat4/invert\"),l=t(\"gl-mat4/rotateX\"),u=t(\"gl-mat4/rotateY\"),c=t(\"gl-mat4/rotateZ\"),h=t(\"gl-mat4/lookAt\"),f=t(\"gl-mat4/translate\"),d=(t(\"gl-mat4/scale\"),t(\"gl-vec3/normalize\")),p=[0,0,0];e.exports=i;var m=n.prototype;m.recalcMatrix=function(t){var e=this._time,r=a.le(e,t),n=this.computedMatrix;if(!(r<0)){var i=this._components;if(r===e.length-1)for(var l=16*r,u=0;u<16;++u)n[u]=i[l++];else{for(var c=e[r+1]-e[r],l=16*r,h=this.prevMatrix,f=!0,u=0;u<16;++u)h[u]=i[l++];for(var p=this.nextMatrix,u=0;u<16;++u)p[u]=i[l++],f=f&&h[u]===p[u];if(c<1e-6||f)for(var u=0;u<16;++u)n[u]=h[u];else o(n,h,p,(t-e[r])/c)}var m=this.computedUp;m[0]=n[1],m[1]=n[5],m[2]=n[9],d(m,m);var v=this.computedInverse;s(v,n);var g=this.computedEye,y=v[15];g[0]=v[12]/y,g[1]=v[13]/y,g[2]=v[14]/y;for(var b=this.computedCenter,x=Math.exp(this.computedRadius[0]),u=0;u<3;++u)b[u]=g[u]-n[2+4*u]*x}},m.idle=function(t){if(!(t<this.lastT())){for(var e=this._components,r=e.length-16,n=0;n<16;++n)e.push(e[r++]);this._time.push(t)}},m.flush=function(t){var e=a.gt(this._time,t)-2;e<0||(this._time.splice(0,e),this._components.splice(0,16*e))},m.lastT=function(){return this._time[this._time.length-1]},m.lookAt=function(t,e,r,n){this.recalcMatrix(t),e=e||this.computedEye,r=r||p,n=n||this.computedUp,this.setMatrix(t,h(this.computedMatrix,e,r,n));for(var i=0,a=0;a<3;++a)i+=Math.pow(r[a]-e[a],2);i=Math.log(Math.sqrt(i)),this.computedRadius[0]=i},m.rotate=function(t,e,r,n){this.recalcMatrix(t);var i=this.computedInverse;e&&u(i,i,e),r&&l(i,i,r),n&&c(i,i,n),this.setMatrix(t,s(this.computedMatrix,i))};var v=[0,0,0];m.pan=function(t,e,r,n){v[0]=-(e||0),v[1]=-(r||0),v[2]=-(n||0),this.recalcMatrix(t);var i=this.computedInverse;f(i,i,v),this.setMatrix(t,s(i,i))},m.translate=function(t,e,r,n){v[0]=e||0,v[1]=r||0,v[2]=n||0,this.recalcMatrix(t);var i=this.computedMatrix;f(i,i,v),this.setMatrix(t,i)},m.setMatrix=function(t,e){if(!(t<this.lastT())){this._time.push(t);for(var r=0;r<16;++r)this._components.push(e[r])}},m.setDistance=function(t,e){this.computedRadius[0]=e},m.setDistanceLimits=function(t,e){var r=this._limits;r[0]=t,r[1]=e},m.getDistanceLimits=function(t){var e=this._limits;return t?(t[0]=e[0],t[1]=e[1],t):e}},{\"binary-search-bounds\":66,\"gl-mat4/invert\":181,\"gl-mat4/lookAt\":182,\"gl-mat4/rotateX\":186,\"gl-mat4/rotateY\":187,\"gl-mat4/rotateZ\":188,\"gl-mat4/scale\":189,\"gl-mat4/translate\":190,\"gl-vec3/normalize\":276,\"mat4-interpolate\":448}],451:[function(t,e,r){\"use strict\";function n(t){var e=t.length;if(e<3){for(var r=new Array(e),n=0;n<e;++n)r[n]=n;return 2===e&&t[0][0]===t[1][0]&&t[0][1]===t[1][1]?[0]:r}for(var a=new Array(e),n=0;n<e;++n)a[n]=n;a.sort(function(e,r){var n=t[e][0]-t[r][0];return n||t[e][1]-t[r][1]});for(var o=[a[0],a[1]],s=[a[0],a[1]],n=2;n<e;++n){for(var l=a[n],u=t[l],c=o.length;c>1&&i(t[o[c-2]],t[o[c-1]],u)<=0;)c-=1,o.pop();for(o.push(l),c=s.length;c>1&&i(t[s[c-2]],t[s[c-1]],u)>=0;)c-=1,s.pop();s.push(l)}for(var r=new Array(s.length+o.length-2),h=0,n=0,f=o.length;n<f;++n)r[h++]=o[n];for(var d=s.length-2;d>0;--d)r[h++]=s[d];return r}e.exports=n;var i=t(\"robust-orientation\")[3]},{\"robust-orientation\":508}],452:[function(t,e,r){\"use strict\";function n(t,e){function r(t){var e=!1;return\"altKey\"in t&&(e=e||t.altKey!==v.alt,v.alt=!!t.altKey),\"shiftKey\"in t&&(e=e||t.shiftKey!==v.shift,v.shift=!!t.shiftKey),\"ctrlKey\"in t&&(e=e||t.ctrlKey!==v.control,v.control=!!t.ctrlKey),\"metaKey\"in t&&(e=e||t.metaKey!==v.meta,v.meta=!!t.metaKey),e}function n(t,n){var a=i.x(n),o=i.y(n);\"buttons\"in n&&(t=0|n.buttons),(t!==d||a!==p||o!==m||r(n))&&(d=0|t,p=a||0,m=o||0,e&&e(d,p,m,v))}function a(t){n(0,t)}function o(){(d||p||m||v.shift||v.alt||v.meta||v.control)&&(p=m=0,d=0,v.shift=v.alt=v.control=v.meta=!1,e&&e(0,0,0,v))}function s(t){r(t)&&e&&e(d,p,m,v)}function l(t){0===i.buttons(t)?n(0,t):n(d,t)}function u(t){n(d|i.buttons(t),t)}function c(t){n(d&~i.buttons(t),t)}function h(){g||(g=!0,t.addEventListener(\"mousemove\",l),t.addEventListener(\"mousedown\",u),t.addEventListener(\"mouseup\",c),t.addEventListener(\"mouseleave\",a),t.addEventListener(\"mouseenter\",a),t.addEventListener(\"mouseout\",a),t.addEventListener(\"mouseover\",a),t.addEventListener(\"blur\",o),t.addEventListener(\"keyup\",s),t.addEventListener(\"keydown\",s),t.addEventListener(\"keypress\",s),t!==window&&(window.addEventListener(\"blur\",o),window.addEventListener(\"keyup\",s),window.addEventListener(\"keydown\",s),window.addEventListener(\"keypress\",s)))}function f(){g&&(g=!1,t.removeEventListener(\"mousemove\",l),t.removeEventListener(\"mousedown\",u),t.removeEventListener(\"mouseup\",c),t.removeEventListener(\"mouseleave\",a),t.removeEventListener(\"mouseenter\",a),t.removeEventListener(\"mouseout\",a),t.removeEventListener(\"mouseover\",a),t.removeEventListener(\"blur\",o),t.removeEventListener(\"keyup\",s),t.removeEventListener(\"keydown\",s),t.removeEventListener(\"keypress\",s),t!==window&&(window.removeEventListener(\"blur\",o),window.removeEventListener(\"keyup\",s),window.removeEventListener(\"keydown\",s),window.removeEventListener(\"keypress\",s)))}e||(e=t,t=window);var d=0,p=0,m=0,v={shift:!1,alt:!1,control:!1,meta:!1},g=!1;h();var y={element:t};return Object.defineProperties(y,{enabled:{get:function(){return g},set:function(t){t?h():f()},enumerable:!0},buttons:{get:function(){return d},enumerable:!0},x:{get:function(){return p},enumerable:!0},y:{get:function(){return m},enumerable:!0},mods:{get:function(){return v},enumerable:!0}}),y}e.exports=n;var i=t(\"mouse-event\")},{\"mouse-event\":454}],453:[function(t,e,r){function n(t,e,r){e=e||t.currentTarget||t.srcElement,Array.isArray(r)||(r=[0,0]);var n=t.clientX||0,a=t.clientY||0,o=i(e);return r[0]=n-o.left,r[1]=a-o.top,r}function i(t){return t===window||t===document||t===document.body?a:t.getBoundingClientRect()}var a={left:0,top:0};e.exports=n},{}],454:[function(t,e,r){\"use strict\";function n(t){if(\"object\"==typeof t){if(\"buttons\"in t)return t.buttons;if(\"which\"in t){var e=t.which;if(2===e)return 4;if(3===e)return 2;if(e>0)return 1<<e-1}else if(\"button\"in t){var e=t.button;if(1===e)return 4;if(2===e)return 2;if(e>=0)return 1<<e}}return 0}function i(t){return t.target||t.srcElement||window}function a(t){if(\"object\"==typeof t){if(\"offsetX\"in t)return t.offsetX;var e=i(t),r=e.getBoundingClientRect();return t.clientX-r.left}return 0}function o(t){if(\"object\"==typeof t){if(\"offsetY\"in t)return t.offsetY;var e=i(t),r=e.getBoundingClientRect();return t.clientY-r.top}return 0}r.buttons=n,r.element=i,r.x=a,r.y=o},{}],455:[function(t,e,r){\"use strict\";function n(t,e,r){\"function\"==typeof t&&(r=!!e,e=t,t=window);var n=i(\"ex\",t),a=function(t){r&&t.preventDefault();var i=t.deltaX||0,a=t.deltaY||0,o=t.deltaZ||0,s=t.deltaMode,l=1;switch(s){case 1:l=n;break;case 2:l=window.innerHeight}if(i*=l,a*=l,o*=l,i||a||o)return e(i,a,o,t)};return t.addEventListener(\"wheel\",a),a}var i=t(\"to-px\");e.exports=n},{\"to-px\":535}],456:[function(t,e,r){\"use strict\";function n(t){return\"a\"+t}function i(t){return\"d\"+t}function a(t,e){return\"c\"+t+\"_\"+e}function o(t){return\"s\"+t}function s(t,e){return\"t\"+t+\"_\"+e}function l(t){return\"o\"+t}function u(t){return\"x\"+t}function c(t){return\"p\"+t}function h(t,e){return\"d\"+t+\"_\"+e}function f(t){return\"i\"+t}function d(t,e){return\"u\"+t+\"_\"+e}function p(t){return\"b\"+t}function m(t){return\"y\"+t}function v(t){return\"e\"+t}function g(t){return\"v\"+t}function y(t,e,r){for(var n=0,i=0;i<t;++i)e&1<<i&&(n|=1<<r[i]);return n}function b(t,e,r,b,x,E){function L(t,e){j.push(\"for(\",f(x[t]),\"=\",e,\";\",f(x[t]),\"<\",o(x[t]),\";\",\"++\",f(x[t]),\"){\")}function C(t){for(var e=0;e<O;++e)j.push(c(e),\"+=\",d(e,x[t]),\";\");j.push(\"}\")}function I(t){for(var e=t-1;e>=0;--e)L(e,0);for(var r=[],e=0;e<O;++e)E[e]?r.push(i(e)+\".get(\"+c(e)+\")\"):r.push(i(e)+\"[\"+c(e)+\"]\");for(var e=0;e<b;++e)r.push(u(e));j.push(M,\"[\",T,\"++]=phase(\",r.join(),\");\");for(var e=0;e<t;++e)C(e);for(var n=0;n<O;++n)j.push(c(n),\"+=\",d(n,x[t]),\";\")}function z(t){for(var e=0;e<O;++e)E[e]?j.push(a(e,0),\"=\",i(e),\".get(\",c(e),\");\"):j.push(a(e,0),\"=\",i(e),\"[\",c(e),\"];\");for(var r=[],e=0;e<O;++e)r.push(a(e,0));for(var e=0;e<b;++e)r.push(u(e));j.push(p(0),\"=\",M,\"[\",T,\"]=phase(\",r.join(),\");\");for(var n=1;n<1<<R;++n)j.push(p(n),\"=\",M,\"[\",T,\"+\",v(n),\"];\");for(var o=[],n=1;n<1<<R;++n)o.push(\"(\"+p(0)+\"!==\"+p(n)+\")\");j.push(\"if(\",o.join(\"||\"),\"){\");for(var s=[],e=0;e<R;++e)s.push(f(e));for(var e=0;e<O;++e){s.push(a(e,0));for(var n=1;n<1<<R;++n)E[e]?j.push(a(e,n),\"=\",i(e),\".get(\",c(e),\"+\",h(e,n),\");\"):j.push(a(e,n),\"=\",i(e),\"[\",c(e),\"+\",h(e,n),\"];\"),s.push(a(e,n))}for(var e=0;e<1<<R;++e)s.push(p(e));for(var e=0;e<b;++e)s.push(u(e));j.push(\"vertex(\",s.join(),\");\",g(0),\"=\",w,\"[\",T,\"]=\",k,\"++;\");for(var l=(1<<R)-1,d=p(l),n=0;n<R;++n)if(0==(t&~(1<<n))){for(var m=l^1<<n,y=p(m),x=[],_=m;_>0;_=_-1&m)x.push(w+\"[\"+T+\"+\"+v(_)+\"]\");x.push(g(0));for(var _=0;_<O;++_)1&n?x.push(a(_,l),a(_,m)):x.push(a(_,m),a(_,l));1&n?x.push(d,y):x.push(y,d);for(var _=0;_<b;++_)x.push(u(_));j.push(\"if(\",d,\"!==\",y,\"){\",\"face(\",x.join(),\")}\")}j.push(\"}\",T,\"+=1;\")}function D(){for(var t=1;t<1<<R;++t)j.push(S,\"=\",v(t),\";\",v(t),\"=\",m(t),\";\",m(t),\"=\",S,\";\")}function P(t,e){if(t<0)return void z(e);I(t),j.push(\"if(\",o(x[t]),\">0){\",f(x[t]),\"=1;\"),P(t-1,e|1<<x[t]);for(var r=0;r<O;++r)j.push(c(r),\"+=\",d(r,x[t]),\";\");t===R-1&&(j.push(T,\"=0;\"),D()),L(t,2),P(t-1,e),t===R-1&&(j.push(\"if(\",f(x[R-1]),\"&1){\",T,\"=0;}\"),D()),C(t),j.push(\"}\")}var O=E.length,R=x.length;if(R<2)throw new Error(\"ndarray-extract-contour: Dimension must be at least 2\");for(var F=\"extractContour\"+x.join(\"_\"),j=[],N=[],B=[],U=0;U<O;++U)B.push(n(U));for(var U=0;U<b;++U)B.push(u(U));for(var U=0;U<R;++U)N.push(o(U)+\"=\"+n(0)+\".shape[\"+U+\"]|0\");for(var U=0;U<O;++U){N.push(i(U)+\"=\"+n(U)+\".data\",l(U)+\"=\"+n(U)+\".offset|0\");for(var V=0;V<R;++V)N.push(s(U,V)+\"=\"+n(U)+\".stride[\"+V+\"]|0\")}for(var U=0;U<O;++U){N.push(c(U)+\"=\"+l(U)),N.push(a(U,0));for(var V=1;V<1<<R;++V){for(var H=[],q=0;q<R;++q)V&1<<q&&H.push(\"-\"+s(U,q));N.push(h(U,V)+\"=(\"+H.join(\"\")+\")|0\"),N.push(a(U,V)+\"=0\")}}for(var U=0;U<O;++U)for(var V=0;V<R;++V){var G=[s(U,x[V])];V>0&&G.push(s(U,x[V-1])+\"*\"+o(x[V-1])),N.push(d(U,x[V])+\"=(\"+G.join(\"-\")+\")|0\")}for(var U=0;U<R;++U)N.push(f(U)+\"=0\");N.push(k+\"=0\");for(var Y=[\"2\"],U=R-2;U>=0;--U)Y.push(o(x[U]));N.push(A+\"=(\"+Y.join(\"*\")+\")|0\",M+\"=mallocUint32(\"+A+\")\",w+\"=mallocUint32(\"+A+\")\",T+\"=0\"),N.push(p(0)+\"=0\");for(var V=1;V<1<<R;++V){for(var W=[],X=[],q=0;q<R;++q)V&1<<q&&(0===X.length?W.push(\"1\"):W.unshift(X.join(\"*\"))),X.push(o(x[q]));var Z=\"\";W[0].indexOf(o(x[R-2]))<0&&(Z=\"-\");var J=y(R,V,x);N.push(v(J)+\"=(-\"+W.join(\"-\")+\")|0\",m(J)+\"=(\"+Z+W.join(\"-\")+\")|0\",p(J)+\"=0\")}N.push(g(0)+\"=0\",S+\"=0\"),P(R-1,0),j.push(\"freeUint32(\",w,\");freeUint32(\",M,\");\");var K=[\"'use strict';\",\"function \",F,\"(\",B.join(),\"){\",\"var \",N.join(),\";\",j.join(\"\"),\"}\",\"return \",F].join(\"\");return new Function(\"vertex\",\"face\",\"phase\",\"mallocUint32\",\"freeUint32\",K)(t,e,r,_.mallocUint32,_.freeUint32)}function x(t){function e(t){throw new Error(\"ndarray-extract-contour: \"+t)}\"object\"!=typeof t&&e(\"Must specify arguments\");var r=t.order;Array.isArray(r)||e(\"Must specify order\");var n=t.arrayArguments||1;n<1&&e(\"Must have at least one array argument\");var i=t.scalarArguments||0;i<0&&e(\"Scalar arg count must be > 0\"),\n", "\"function\"!=typeof t.vertex&&e(\"Must specify vertex creation function\"),\"function\"!=typeof t.cell&&e(\"Must specify cell creation function\"),\"function\"!=typeof t.phase&&e(\"Must specify phase function\");for(var a=t.getters||[],o=new Array(n),s=0;s<n;++s)a.indexOf(s)>=0?o[s]=!0:o[s]=!1;return b(t.vertex,t.cell,t.phase,i,r,o)}var _=t(\"typedarray-pool\");e.exports=x;var w=\"V\",M=\"P\",k=\"N\",A=\"Q\",T=\"X\",S=\"T\"},{\"typedarray-pool\":541}],457:[function(t,e,r){\"use strict\";var n=t(\"cwise/lib/wrapper\")({args:[\"index\",\"array\",\"scalar\"],pre:{body:\"{}\",args:[],thisVars:[],localVars:[]},body:{body:\"{_inline_1_arg1_=_inline_1_arg2_.apply(void 0,_inline_1_arg0_)}\",args:[{name:\"_inline_1_arg0_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_1_arg1_\",lvalue:!0,rvalue:!1,count:1},{name:\"_inline_1_arg2_\",lvalue:!1,rvalue:!0,count:1}],thisVars:[],localVars:[]},post:{body:\"{}\",args:[],thisVars:[],localVars:[]},debug:!1,funcName:\"cwise\",blockSize:64});e.exports=function(t,e){return n(t,e),t}},{\"cwise/lib/wrapper\":113}],458:[function(t,e,r){\"use strict\";function n(t){if(t in l)return l[t];for(var e=[],r=0;r<t;++r)e.push(\"out\",r,\"s=0.5*(inp\",r,\"l-inp\",r,\"r);\");for(var n=[\"array\"],i=[\"junk\"],r=0;r<t;++r){n.push(\"array\"),i.push(\"out\"+r+\"s\");var a=o(t);a[r]=-1,n.push({array:0,offset:a.slice()}),a[r]=1,n.push({array:0,offset:a.slice()}),i.push(\"inp\"+r+\"l\",\"inp\"+r+\"r\")}return l[t]=s({args:n,pre:c,post:c,body:{body:e.join(\"\"),args:i.map(function(t){return{name:t,lvalue:0===t.indexOf(\"out\"),rvalue:0===t.indexOf(\"inp\"),count:\"junk\"!==t|0}}),thisVars:[],localVars:[]},funcName:\"fdTemplate\"+t})}function i(t){var e=t.join(),r=u[e];if(r)return r;for(var i=t.length,a=[\"function gradient(dst,src){var s=src.shape.slice();\"],o=0;o<1<<i;++o){for(var s=[],c=0;c<i;++c)o&1<<c&&s.push(c+1);for(var d=0;d<1<<s.length;++d){for(var p=s.slice(),c=0;c<s.length;++c)d&1<<c&&(p[c]=-p[c]);!function(e){for(var r=i-e.length,n=[],o=[],s=[],l=0;l<i;++l)e.indexOf(l+1)>=0?s.push(\"0\"):e.indexOf(-(l+1))>=0?s.push(\"s[\"+l+\"]-1\"):(s.push(\"-1\"),n.push(\"1\"),o.push(\"s[\"+l+\"]-2\"));var u=\".lo(\"+n.join()+\").hi(\"+o.join()+\")\";if(0===n.length&&(u=\"\"),r>0){a.push(\"if(1\");for(var l=0;l<i;++l)e.indexOf(l+1)>=0||e.indexOf(-(l+1))>=0||a.push(\"&&s[\",l,\"]>2\");a.push(\"){grad\",r,\"(src.pick(\",s.join(),\")\",u);for(var l=0;l<i;++l)e.indexOf(l+1)>=0||e.indexOf(-(l+1))>=0||a.push(\",dst.pick(\",s.join(),\",\",l,\")\",u);a.push(\");\")}for(var l=0;l<e.length;++l){var c=Math.abs(e[l])-1,h=\"dst.pick(\"+s.join()+\",\"+c+\")\"+u;switch(t[c]){case\"clamp\":var f=s.slice(),d=s.slice();e[l]<0?f[c]=\"s[\"+c+\"]-2\":d[c]=\"1\",0===r?a.push(\"if(s[\",c,\"]>1){dst.set(\",s.join(),\",\",c,\",0.5*(src.get(\",f.join(),\")-src.get(\",d.join(),\")))}else{dst.set(\",s.join(),\",\",c,\",0)};\"):a.push(\"if(s[\",c,\"]>1){diff(\",h,\",src.pick(\",f.join(),\")\",u,\",src.pick(\",d.join(),\")\",u,\");}else{zero(\",h,\");};\");break;case\"mirror\":0===r?a.push(\"dst.set(\",s.join(),\",\",c,\",0);\"):a.push(\"zero(\",h,\");\");break;case\"wrap\":var p=s.slice(),m=s.slice();e[l]<0?(p[c]=\"s[\"+c+\"]-2\",m[c]=\"0\"):(p[c]=\"s[\"+c+\"]-1\",m[c]=\"1\"),0===r?a.push(\"if(s[\",c,\"]>2){dst.set(\",s.join(),\",\",c,\",0.5*(src.get(\",p.join(),\")-src.get(\",m.join(),\")))}else{dst.set(\",s.join(),\",\",c,\",0)};\"):a.push(\"if(s[\",c,\"]>2){diff(\",h,\",src.pick(\",p.join(),\")\",u,\",src.pick(\",m.join(),\")\",u,\");}else{zero(\",h,\");};\");break;default:throw new Error(\"ndarray-gradient: Invalid boundary condition\")}}r>0&&a.push(\"};\")}(p)}}a.push(\"return dst;};return gradient\");for(var m=[\"diff\",\"zero\"],v=[h,f],o=1;o<=i;++o)m.push(\"grad\"+o),v.push(n(o));m.push(a.join(\"\"));var g=Function.apply(void 0,m),r=g.apply(void 0,v);return l[e]=r,r}function a(t,e,r){if(Array.isArray(r)){if(r.length!==e.dimension)throw new Error(\"ndarray-gradient: invalid boundary conditions\")}else r=\"string\"==typeof r?o(e.dimension,r):o(e.dimension,\"clamp\");if(t.dimension!==e.dimension+1)throw new Error(\"ndarray-gradient: output dimension must be +1 input dimension\");if(t.shape[e.dimension]!==e.dimension)throw new Error(\"ndarray-gradient: output shape must match input shape\");for(var n=0;n<e.dimension;++n)if(t.shape[n]!==e.shape[n])throw new Error(\"ndarray-gradient: shape mismatch\");return 0===e.size?t:e.dimension<=0?(t.set(0),t):i(r)(t,e)}e.exports=a;var o=t(\"dup\"),s=t(\"cwise-compiler\"),l={},u={},c={body:\"\",args:[],thisVars:[],localVars:[]},h=s({args:[\"array\",\"array\",\"array\"],pre:c,post:c,body:{args:[{name:\"out\",lvalue:!0,rvalue:!1,count:1},{name:\"left\",lvalue:!1,rvalue:!0,count:1},{name:\"right\",lvalue:!1,rvalue:!0,count:1}],body:\"out=0.5*(left-right)\",thisVars:[],localVars:[]},funcName:\"cdiff\"}),f=s({args:[\"array\"],pre:c,post:c,body:{args:[{name:\"out\",lvalue:!0,rvalue:!1,count:1}],body:\"out=0\",thisVars:[],localVars:[]},funcName:\"zero\"})},{\"cwise-compiler\":110,dup:125}],459:[function(t,e,r){\"use strict\";function n(t,e,r){var n=e.dimension,o=a([],r);return i(t,e,function(t,e){for(var r=0;r<n;++r){t[r]=o[(n+1)*n+r];for(var i=0;i<n;++i)t[r]+=o[(n+1)*i+r]*e[i]}for(var a=o[(n+1)*(n+1)-1],i=0;i<n;++i)a+=o[(n+1)*i+n]*e[i];for(var s=1/a,r=0;r<n;++r)t[r]*=s;return t}),t}var i=t(\"ndarray-warp\"),a=t(\"gl-matrix-invert\");e.exports=n},{\"gl-matrix-invert\":192,\"ndarray-warp\":466}],460:[function(t,e,r){\"use strict\";function n(t,e){var r=Math.floor(e),n=e-r,i=0<=r&&r<t.shape[0],a=0<=r+1&&r+1<t.shape[0];return(1-n)*(i?+t.get(r):0)+n*(a?+t.get(r+1):0)}function i(t,e,r){var n=Math.floor(e),i=e-n,a=0<=n&&n<t.shape[0],o=0<=n+1&&n+1<t.shape[0],s=Math.floor(r),l=r-s,u=0<=s&&s<t.shape[1],c=0<=s+1&&s+1<t.shape[1],h=a&&u?t.get(n,s):0,f=a&&c?t.get(n,s+1):0;return(1-l)*((1-i)*h+i*(o&&u?t.get(n+1,s):0))+l*((1-i)*f+i*(o&&c?t.get(n+1,s+1):0))}function a(t,e,r,n){var i=Math.floor(e),a=e-i,o=0<=i&&i<t.shape[0],s=0<=i+1&&i+1<t.shape[0],l=Math.floor(r),u=r-l,c=0<=l&&l<t.shape[1],h=0<=l+1&&l+1<t.shape[1],f=Math.floor(n),d=n-f,p=0<=f&&f<t.shape[2],m=0<=f+1&&f+1<t.shape[2],v=o&&c&&p?t.get(i,l,f):0,g=o&&h&&p?t.get(i,l+1,f):0,y=s&&c&&p?t.get(i+1,l,f):0,b=s&&h&&p?t.get(i+1,l+1,f):0,x=o&&c&&m?t.get(i,l,f+1):0,_=o&&h&&m?t.get(i,l+1,f+1):0;return(1-d)*((1-u)*((1-a)*v+a*y)+u*((1-a)*g+a*b))+d*((1-u)*((1-a)*x+a*(s&&c&&m?t.get(i+1,l,f+1):0))+u*((1-a)*_+a*(s&&h&&m?t.get(i+1,l+1,f+1):0)))}function o(t){var e,r,n=0|t.shape.length,i=new Array(n),a=new Array(n),o=new Array(n),s=new Array(n);for(e=0;e<n;++e)r=+arguments[e+1],i[e]=Math.floor(r),a[e]=r-i[e],o[e]=0<=i[e]&&i[e]<t.shape[e],s[e]=0<=i[e]+1&&i[e]+1<t.shape[e];var l,u,c,h=0;t:for(e=0;e<1<<n;++e){for(u=1,c=t.offset,l=0;l<n;++l)if(e&1<<l){if(!s[l])continue t;u*=a[l],c+=t.stride[l]*(i[l]+1)}else{if(!o[l])continue t;u*=1-a[l],c+=t.stride[l]*i[l]}h+=u*t.data[c]}return h}function s(t,e,r,s){switch(t.shape.length){case 0:return 0;case 1:return n(t,e);case 2:return i(t,e,r);case 3:return a(t,e,r,s);default:return o.apply(void 0,arguments)}}e.exports=s,e.exports.d1=n,e.exports.d2=i,e.exports.d3=a},{}],461:[function(t,e,r){\"use strict\";function n(t){if(!t)return s;for(var e=0;e<t.args.length;++e){var r=t.args[e];t.args[e]=0===e?{name:r,lvalue:!0,rvalue:!!t.rvalue,count:t.count||1}:{name:r,lvalue:!1,rvalue:!0,count:1}}return t.thisVars||(t.thisVars=[]),t.localVars||(t.localVars=[]),t}function i(t){return o({args:t.args,pre:n(t.pre),body:n(t.body),post:n(t.proc),funcName:t.funcName})}function a(t){for(var e=[],r=0;r<t.args.length;++r)e.push(\"a\"+r);return new Function(\"P\",[\"return function \",t.funcName,\"_ndarrayops(\",e.join(\",\"),\") {P(\",e.join(\",\"),\");return a0}\"].join(\"\"))(i(t))}var o=t(\"cwise-compiler\"),s={body:\"\",args:[],thisVars:[],localVars:[]},l={add:\"+\",sub:\"-\",mul:\"*\",div:\"/\",mod:\"%\",band:\"&\",bor:\"|\",bxor:\"^\",lshift:\"<<\",rshift:\">>\",rrshift:\">>>\"};!function(){for(var t in l){var e=l[t];r[t]=a({args:[\"array\",\"array\",\"array\"],body:{args:[\"a\",\"b\",\"c\"],body:\"a=b\"+e+\"c\"},funcName:t}),r[t+\"eq\"]=a({args:[\"array\",\"array\"],body:{args:[\"a\",\"b\"],body:\"a\"+e+\"=b\"},rvalue:!0,funcName:t+\"eq\"}),r[t+\"s\"]=a({args:[\"array\",\"array\",\"scalar\"],body:{args:[\"a\",\"b\",\"s\"],body:\"a=b\"+e+\"s\"},funcName:t+\"s\"}),r[t+\"seq\"]=a({args:[\"array\",\"scalar\"],body:{args:[\"a\",\"s\"],body:\"a\"+e+\"=s\"},rvalue:!0,funcName:t+\"seq\"})}}();var u={not:\"!\",bnot:\"~\",neg:\"-\",recip:\"1.0/\"};!function(){for(var t in u){var e=u[t];r[t]=a({args:[\"array\",\"array\"],body:{args:[\"a\",\"b\"],body:\"a=\"+e+\"b\"},funcName:t}),r[t+\"eq\"]=a({args:[\"array\"],body:{args:[\"a\"],body:\"a=\"+e+\"a\"},rvalue:!0,count:2,funcName:t+\"eq\"})}}();var c={and:\"&&\",or:\"||\",eq:\"===\",neq:\"!==\",lt:\"<\",gt:\">\",leq:\"<=\",geq:\">=\"};!function(){for(var t in c){var e=c[t];r[t]=a({args:[\"array\",\"array\",\"array\"],body:{args:[\"a\",\"b\",\"c\"],body:\"a=b\"+e+\"c\"},funcName:t}),r[t+\"s\"]=a({args:[\"array\",\"array\",\"scalar\"],body:{args:[\"a\",\"b\",\"s\"],body:\"a=b\"+e+\"s\"},funcName:t+\"s\"}),r[t+\"eq\"]=a({args:[\"array\",\"array\"],body:{args:[\"a\",\"b\"],body:\"a=a\"+e+\"b\"},rvalue:!0,count:2,funcName:t+\"eq\"}),r[t+\"seq\"]=a({args:[\"array\",\"scalar\"],body:{args:[\"a\",\"s\"],body:\"a=a\"+e+\"s\"},rvalue:!0,count:2,funcName:t+\"seq\"})}}();var h=[\"abs\",\"acos\",\"asin\",\"atan\",\"ceil\",\"cos\",\"exp\",\"floor\",\"log\",\"round\",\"sin\",\"sqrt\",\"tan\"];!function(){for(var t=0;t<h.length;++t){var e=h[t];r[e]=a({args:[\"array\",\"array\"],pre:{args:[],body:\"this_f=Math.\"+e,thisVars:[\"this_f\"]},body:{args:[\"a\",\"b\"],body:\"a=this_f(b)\",thisVars:[\"this_f\"]},funcName:e}),r[e+\"eq\"]=a({args:[\"array\"],pre:{args:[],body:\"this_f=Math.\"+e,thisVars:[\"this_f\"]},body:{args:[\"a\"],body:\"a=this_f(a)\",thisVars:[\"this_f\"]},rvalue:!0,count:2,funcName:e+\"eq\"})}}();var f=[\"max\",\"min\",\"atan2\",\"pow\"];!function(){for(var t=0;t<f.length;++t){var e=f[t];r[e]=a({args:[\"array\",\"array\",\"array\"],pre:{args:[],body:\"this_f=Math.\"+e,thisVars:[\"this_f\"]},body:{args:[\"a\",\"b\",\"c\"],body:\"a=this_f(b,c)\",thisVars:[\"this_f\"]},funcName:e}),r[e+\"s\"]=a({args:[\"array\",\"array\",\"scalar\"],pre:{args:[],body:\"this_f=Math.\"+e,thisVars:[\"this_f\"]},body:{args:[\"a\",\"b\",\"c\"],body:\"a=this_f(b,c)\",thisVars:[\"this_f\"]},funcName:e+\"s\"}),r[e+\"eq\"]=a({args:[\"array\",\"array\"],pre:{args:[],body:\"this_f=Math.\"+e,thisVars:[\"this_f\"]},body:{args:[\"a\",\"b\"],body:\"a=this_f(a,b)\",thisVars:[\"this_f\"]},rvalue:!0,count:2,funcName:e+\"eq\"}),r[e+\"seq\"]=a({args:[\"array\",\"scalar\"],pre:{args:[],body:\"this_f=Math.\"+e,thisVars:[\"this_f\"]},body:{args:[\"a\",\"b\"],body:\"a=this_f(a,b)\",thisVars:[\"this_f\"]},rvalue:!0,count:2,funcName:e+\"seq\"})}}();var d=[\"atan2\",\"pow\"];!function(){for(var t=0;t<d.length;++t){var e=d[t];r[e+\"op\"]=a({args:[\"array\",\"array\",\"array\"],pre:{args:[],body:\"this_f=Math.\"+e,thisVars:[\"this_f\"]},body:{args:[\"a\",\"b\",\"c\"],body:\"a=this_f(c,b)\",thisVars:[\"this_f\"]},funcName:e+\"op\"}),r[e+\"ops\"]=a({args:[\"array\",\"array\",\"scalar\"],pre:{args:[],body:\"this_f=Math.\"+e,thisVars:[\"this_f\"]},body:{args:[\"a\",\"b\",\"c\"],body:\"a=this_f(c,b)\",thisVars:[\"this_f\"]},funcName:e+\"ops\"}),r[e+\"opeq\"]=a({args:[\"array\",\"array\"],pre:{args:[],body:\"this_f=Math.\"+e,thisVars:[\"this_f\"]},body:{args:[\"a\",\"b\"],body:\"a=this_f(b,a)\",thisVars:[\"this_f\"]},rvalue:!0,count:2,funcName:e+\"opeq\"}),r[e+\"opseq\"]=a({args:[\"array\",\"scalar\"],pre:{args:[],body:\"this_f=Math.\"+e,thisVars:[\"this_f\"]},body:{args:[\"a\",\"b\"],body:\"a=this_f(b,a)\",thisVars:[\"this_f\"]},rvalue:!0,count:2,funcName:e+\"opseq\"})}}(),r.any=o({args:[\"array\"],pre:s,body:{args:[{name:\"a\",lvalue:!1,rvalue:!0,count:1}],body:\"if(a){return true}\",localVars:[],thisVars:[]},post:{args:[],localVars:[],thisVars:[],body:\"return false\"},funcName:\"any\"}),r.all=o({args:[\"array\"],pre:s,body:{args:[{name:\"x\",lvalue:!1,rvalue:!0,count:1}],body:\"if(!x){return false}\",localVars:[],thisVars:[]},post:{args:[],localVars:[],thisVars:[],body:\"return true\"},funcName:\"all\"}),r.sum=o({args:[\"array\"],pre:{args:[],localVars:[],thisVars:[\"this_s\"],body:\"this_s=0\"},body:{args:[{name:\"a\",lvalue:!1,rvalue:!0,count:1}],body:\"this_s+=a\",localVars:[],thisVars:[\"this_s\"]},post:{args:[],localVars:[],thisVars:[\"this_s\"],body:\"return this_s\"},funcName:\"sum\"}),r.prod=o({args:[\"array\"],pre:{args:[],localVars:[],thisVars:[\"this_s\"],body:\"this_s=1\"},body:{args:[{name:\"a\",lvalue:!1,rvalue:!0,count:1}],body:\"this_s*=a\",localVars:[],thisVars:[\"this_s\"]},post:{args:[],localVars:[],thisVars:[\"this_s\"],body:\"return this_s\"},funcName:\"prod\"}),r.norm2squared=o({args:[\"array\"],pre:{args:[],localVars:[],thisVars:[\"this_s\"],body:\"this_s=0\"},body:{args:[{name:\"a\",lvalue:!1,rvalue:!0,count:2}],body:\"this_s+=a*a\",localVars:[],thisVars:[\"this_s\"]},post:{args:[],localVars:[],thisVars:[\"this_s\"],body:\"return this_s\"},funcName:\"norm2squared\"}),r.norm2=o({args:[\"array\"],pre:{args:[],localVars:[],thisVars:[\"this_s\"],body:\"this_s=0\"},body:{args:[{name:\"a\",lvalue:!1,rvalue:!0,count:2}],body:\"this_s+=a*a\",localVars:[],thisVars:[\"this_s\"]},post:{args:[],localVars:[],thisVars:[\"this_s\"],body:\"return Math.sqrt(this_s)\"},funcName:\"norm2\"}),r.norminf=o({args:[\"array\"],pre:{args:[],localVars:[],thisVars:[\"this_s\"],body:\"this_s=0\"},body:{args:[{name:\"a\",lvalue:!1,rvalue:!0,count:4}],body:\"if(-a>this_s){this_s=-a}else if(a>this_s){this_s=a}\",localVars:[],thisVars:[\"this_s\"]},post:{args:[],localVars:[],thisVars:[\"this_s\"],body:\"return this_s\"},funcName:\"norminf\"}),r.norm1=o({args:[\"array\"],pre:{args:[],localVars:[],thisVars:[\"this_s\"],body:\"this_s=0\"},body:{args:[{name:\"a\",lvalue:!1,rvalue:!0,count:3}],body:\"this_s+=a<0?-a:a\",localVars:[],thisVars:[\"this_s\"]},post:{args:[],localVars:[],thisVars:[\"this_s\"],body:\"return this_s\"},funcName:\"norm1\"}),r.sup=o({args:[\"array\"],pre:{body:\"this_h=-Infinity\",args:[],thisVars:[\"this_h\"],localVars:[]},body:{body:\"if(_inline_1_arg0_>this_h)this_h=_inline_1_arg0_\",args:[{name:\"_inline_1_arg0_\",lvalue:!1,rvalue:!0,count:2}],thisVars:[\"this_h\"],localVars:[]},post:{body:\"return this_h\",args:[],thisVars:[\"this_h\"],localVars:[]}}),r.inf=o({args:[\"array\"],pre:{body:\"this_h=Infinity\",args:[],thisVars:[\"this_h\"],localVars:[]},body:{body:\"if(_inline_1_arg0_<this_h)this_h=_inline_1_arg0_\",args:[{name:\"_inline_1_arg0_\",lvalue:!1,rvalue:!0,count:2}],thisVars:[\"this_h\"],localVars:[]},post:{body:\"return this_h\",args:[],thisVars:[\"this_h\"],localVars:[]}}),r.argmin=o({args:[\"index\",\"array\",\"shape\"],pre:{body:\"{this_v=Infinity;this_i=_inline_0_arg2_.slice(0)}\",args:[{name:\"_inline_0_arg0_\",lvalue:!1,rvalue:!1,count:0},{name:\"_inline_0_arg1_\",lvalue:!1,rvalue:!1,count:0},{name:\"_inline_0_arg2_\",lvalue:!1,rvalue:!0,count:1}],thisVars:[\"this_i\",\"this_v\"],localVars:[]},body:{body:\"{if(_inline_1_arg1_<this_v){this_v=_inline_1_arg1_;for(var _inline_1_k=0;_inline_1_k<_inline_1_arg0_.length;++_inline_1_k){this_i[_inline_1_k]=_inline_1_arg0_[_inline_1_k]}}}\",args:[{name:\"_inline_1_arg0_\",lvalue:!1,rvalue:!0,count:2},{name:\"_inline_1_arg1_\",lvalue:!1,rvalue:!0,count:2}],thisVars:[\"this_i\",\"this_v\"],localVars:[\"_inline_1_k\"]},post:{body:\"{return this_i}\",args:[],thisVars:[\"this_i\"],localVars:[]}}),r.argmax=o({args:[\"index\",\"array\",\"shape\"],pre:{body:\"{this_v=-Infinity;this_i=_inline_0_arg2_.slice(0)}\",args:[{name:\"_inline_0_arg0_\",lvalue:!1,rvalue:!1,count:0},{name:\"_inline_0_arg1_\",lvalue:!1,rvalue:!1,count:0},{name:\"_inline_0_arg2_\",lvalue:!1,rvalue:!0,count:1}],thisVars:[\"this_i\",\"this_v\"],localVars:[]},body:{body:\"{if(_inline_1_arg1_>this_v){this_v=_inline_1_arg1_;for(var _inline_1_k=0;_inline_1_k<_inline_1_arg0_.length;++_inline_1_k){this_i[_inline_1_k]=_inline_1_arg0_[_inline_1_k]}}}\",args:[{name:\"_inline_1_arg0_\",lvalue:!1,rvalue:!0,count:2},{name:\"_inline_1_arg1_\",lvalue:!1,rvalue:!0,count:2}],thisVars:[\"this_i\",\"this_v\"],localVars:[\"_inline_1_k\"]},post:{body:\"{return this_i}\",args:[],thisVars:[\"this_i\"],localVars:[]}}),r.random=a({args:[\"array\"],pre:{args:[],body:\"this_f=Math.random\",thisVars:[\"this_f\"]},body:{args:[\"a\"],body:\"a=this_f()\",thisVars:[\"this_f\"]},funcName:\"random\"}),r.assign=a({args:[\"array\",\"array\"],body:{args:[\"a\",\"b\"],body:\"a=b\"},funcName:\"assign\"}),r.assigns=a({args:[\"array\",\"scalar\"],body:{args:[\"a\",\"b\"],body:\"a=b\"},funcName:\"assigns\"}),r.equals=o({args:[\"array\",\"array\"],pre:s,body:{args:[{name:\"x\",lvalue:!1,rvalue:!0,count:1},{name:\"y\",lvalue:!1,rvalue:!0,count:1}],body:\"if(x!==y){return false}\",localVars:[],thisVars:[]},post:{args:[],localVars:[],thisVars:[],body:\"return true\"},funcName:\"equals\"})},{\"cwise-compiler\":110}],462:[function(t,e,r){\"use strict\";var n=t(\"ndarray\"),i=t(\"./doConvert.js\");e.exports=function(t,e){for(var r=[],a=t,o=1;Array.isArray(a);)r.push(a.length),o*=a.length,a=a[0];return 0===r.length?n():(e||(e=n(new Float64Array(o),r)),i(e,t),e)}},{\"./doConvert.js\":463,ndarray:467}],463:[function(t,e,r){e.exports=t(\"cwise-compiler\")({args:[\"array\",\"scalar\",\"index\"],pre:{body:\"{}\",args:[],thisVars:[],localVars:[]},body:{body:\"{\\nvar _inline_1_v=_inline_1_arg1_,_inline_1_i\\nfor(_inline_1_i=0;_inline_1_i<_inline_1_arg2_.length-1;++_inline_1_i) {\\n_inline_1_v=_inline_1_v[_inline_1_arg2_[_inline_1_i]]\\n}\\n_inline_1_arg0_=_inline_1_v[_inline_1_arg2_[_inline_1_arg2_.length-1]]\\n}\",args:[{name:\"_inline_1_arg0_\",lvalue:!0,rvalue:!1,count:1},{name:\"_inline_1_arg1_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_1_arg2_\",lvalue:!1,rvalue:!0,count:4}],thisVars:[],localVars:[\"_inline_1_i\",\"_inline_1_v\"]},post:{body:\"{}\",args:[],thisVars:[],localVars:[]},funcName:\"convert\",blockSize:64})},{\"cwise-compiler\":110}],464:[function(t,e,r){\"use strict\";function n(t){switch(t){case\"uint8\":return[l.mallocUint8,l.freeUint8];case\"uint16\":return[l.mallocUint16,l.freeUint16];case\"uint32\":return[l.mallocUint32,l.freeUint32];case\"int8\":return[l.mallocInt8,l.freeInt8];case\"int16\":return[l.mallocInt16,l.freeInt16];case\"int32\":return[l.mallocInt32,l.freeInt32];case\"float32\":return[l.mallocFloat,l.freeFloat];case\"float64\":return[l.mallocDouble,l.freeDouble];default:return null}}function i(t){for(var e=[],r=0;r<t;++r)e.push(\"s\"+r);for(var r=0;r<t;++r)e.push(\"n\"+r);for(var r=1;r<t;++r)e.push(\"d\"+r);for(var r=1;r<t;++r)e.push(\"e\"+r);for(var r=1;r<t;++r)e.push(\"f\"+r);return e}function a(t,e){function r(t){return\"generic\"===e?[\"data.get(\",t,\")\"].join(\"\"):[\"data[\",t,\"]\"].join(\"\")}function a(t,r){return\"generic\"===e?[\"data.set(\",t,\",\",r,\")\"].join(\"\"):[\"data[\",t,\"]=\",r].join(\"\")}var o=[\"'use strict'\"],s=[\"ndarrayInsertionSort\",t.join(\"d\"),e].join(\"\"),l=[\"left\",\"right\",\"data\",\"offset\"].concat(i(t.length)),u=n(e),c=[\"i,j,cptr,ptr=left*s0+offset\"];if(t.length>1){for(var h=[],f=1;f<t.length;++f)c.push(\"i\"+f),h.push(\"n\"+f);u?c.push(\"scratch=malloc(\"+h.join(\"*\")+\")\"):c.push(\"scratch=new Array(\"+h.join(\"*\")+\")\"),c.push(\"dptr\",\"sptr\",\"a\",\"b\")}else c.push(\"scratch\");if(o.push([\"function \",s,\"(\",l.join(\",\"),\"){var \",c.join(\",\")].join(\"\"),\"for(i=left+1;i<=right;++i){\",\"j=i;ptr+=s0\",\"cptr=ptr\"),t.length>1){o.push(\"dptr=0;sptr=ptr\");for(var f=t.length-1;f>=0;--f){var d=t[f];0!==d&&o.push([\"for(i\",d,\"=0;i\",d,\"<n\",d,\";++i\",d,\"){\"].join(\"\"))}o.push(\"scratch[dptr++]=\",r(\"sptr\"));for(var f=0;f<t.length;++f){var d=t[f];0!==d&&o.push(\"sptr+=d\"+d,\"}\")}o.push(\"__g:while(j--\\x3eleft){\",\"dptr=0\",\"sptr=cptr-s0\");for(var f=1;f<t.length;++f)1===f&&o.push(\"__l:\"),o.push([\"for(i\",f,\"=0;i\",f,\"<n\",f,\";++i\",f,\"){\"].join(\"\"));o.push([\"a=\",r(\"sptr\"),\"\\nb=scratch[dptr]\\nif(a<b){break __g}\\nif(a>b){break __l}\"].join(\"\"));for(var f=t.length-1;f>=1;--f)o.push(\"sptr+=e\"+f,\"dptr+=f\"+f,\"}\");o.push(\"dptr=cptr;sptr=cptr-s0\");for(var f=t.length-1;f>=0;--f){var d=t[f];0!==d&&o.push([\"for(i\",d,\"=0;i\",d,\"<n\",d,\";++i\",d,\"){\"].join(\"\"))}o.push(a(\"dptr\",r(\"sptr\")));for(var f=0;f<t.length;++f){var d=t[f];0!==d&&o.push([\"dptr+=d\",d,\";sptr+=d\",d].join(\"\"),\"}\")}o.push(\"cptr-=s0\\n}\"),o.push(\"dptr=cptr;sptr=0\");for(var f=t.length-1;f>=0;--f){var d=t[f];0!==d&&o.push([\"for(i\",d,\"=0;i\",d,\"<n\",d,\";++i\",d,\"){\"].join(\"\"))}o.push(a(\"dptr\",\"scratch[sptr++]\"));for(var f=0;f<t.length;++f){var d=t[f];0!==d&&o.push(\"dptr+=d\"+d,\"}\")}}else o.push(\"scratch=\"+r(\"ptr\"),\"while((j--\\x3eleft)&&(\"+r(\"cptr-s0\")+\">scratch)){\",a(\"cptr\",r(\"cptr-s0\")),\"cptr-=s0\",\"}\",a(\"cptr\",\"scratch\"));if(o.push(\"}\"),t.length>1&&u&&o.push(\"free(scratch)\"),o.push(\"} return \"+s),u){var p=new Function(\"malloc\",\"free\",o.join(\"\\n\"));return p(u[0],u[1])}var p=new Function(o.join(\"\\n\"));return p()}function o(t,e,r){function a(t){return[\"(offset+\",t,\"*s0)\"].join(\"\")}function o(t){return\"generic\"===e?[\"data.get(\",t,\")\"].join(\"\"):[\"data[\",t,\"]\"].join(\"\")}function s(t,r){return\"generic\"===e?[\"data.set(\",t,\",\",r,\")\"].join(\"\"):[\"data[\",t,\"]=\",r].join(\"\")}function l(e,r,n){if(1===e.length)_.push(\"ptr0=\"+a(e[0]));else for(var i=0;i<e.length;++i)_.push([\"b_ptr\",i,\"=s0*\",e[i]].join(\"\"));r&&_.push(\"pivot_ptr=0\"),_.push(\"ptr_shift=offset\");for(var i=t.length-1;i>=0;--i){var o=t[i];0!==o&&_.push([\"for(i\",o,\"=0;i\",o,\"<n\",o,\";++i\",o,\"){\"].join(\"\"))}if(e.length>1)for(var i=0;i<e.length;++i)_.push([\"ptr\",i,\"=b_ptr\",i,\"+ptr_shift\"].join(\"\"));_.push(n),r&&_.push(\"++pivot_ptr\");for(var i=0;i<t.length;++i){var o=t[i];0!==o&&(e.length>1?_.push(\"ptr_shift+=d\"+o):_.push(\"ptr0+=d\"+o),_.push(\"}\"))}}function c(e,r,n,i){if(1===r.length)_.push(\"ptr0=\"+a(r[0]));else{for(var o=0;o<r.length;++o)_.push([\"b_ptr\",o,\"=s0*\",r[o]].join(\"\"));_.push(\"ptr_shift=offset\")}n&&_.push(\"pivot_ptr=0\"),e&&_.push(e+\":\");for(var o=1;o<t.length;++o)_.push([\"for(i\",o,\"=0;i\",o,\"<n\",o,\";++i\",o,\"){\"].join(\"\"));if(r.length>1)for(var o=0;o<r.length;++o)_.push([\"ptr\",o,\"=b_ptr\",o,\"+ptr_shift\"].join(\"\"));_.push(i);for(var o=t.length-1;o>=1;--o)n&&_.push(\"pivot_ptr+=f\"+o),r.length>1?_.push(\"ptr_shift+=e\"+o):_.push(\"ptr0+=e\"+o),_.push(\"}\")}function h(){t.length>1&&k&&_.push(\"free(pivot1)\",\"free(pivot2)\")}function f(e,r){var n=\"el\"+e,i=\"el\"+r;if(t.length>1){var s=\"__l\"+ ++A;c(s,[n,i],!1,[\"comp=\",o(\"ptr0\"),\"-\",o(\"ptr1\"),\"\\n\",\"if(comp>0){tmp0=\",n,\";\",n,\"=\",i,\";\",i,\"=tmp0;break \",s,\"}\\n\",\"if(comp<0){break \",s,\"}\"].join(\"\"))}else _.push([\"if(\",o(a(n)),\">\",o(a(i)),\"){tmp0=\",n,\";\",n,\"=\",i,\";\",i,\"=tmp0}\"].join(\"\"))}function d(e,r){t.length>1?l([e,r],!1,s(\"ptr0\",o(\"ptr1\"))):_.push(s(a(e),o(a(r))))}function p(e,r,n){if(t.length>1){var i=\"__l\"+ ++A;c(i,[r],!0,[e,\"=\",o(\"ptr0\"),\"-pivot\",n,\"[pivot_ptr]\\n\",\"if(\",e,\"!==0){break \",i,\"}\"].join(\"\"))}else _.push([e,\"=\",o(a(r)),\"-pivot\",n].join(\"\"))}function m(e,r){t.length>1?l([e,r],!1,[\"tmp=\",o(\"ptr0\"),\"\\n\",s(\"ptr0\",o(\"ptr1\")),\"\\n\",s(\"ptr1\",\"tmp\")].join(\"\")):_.push([\"ptr0=\",a(e),\"\\n\",\"ptr1=\",a(r),\"\\n\",\"tmp=\",o(\"ptr0\"),\"\\n\",s(\"ptr0\",o(\"ptr1\")),\"\\n\",s(\"ptr1\",\"tmp\")].join(\"\"))}function v(e,r,n){t.length>1?(l([e,r,n],!1,[\"tmp=\",o(\"ptr0\"),\"\\n\",s(\"ptr0\",o(\"ptr1\")),\"\\n\",s(\"ptr1\",o(\"ptr2\")),\"\\n\",s(\"ptr2\",\"tmp\")].join(\"\")),_.push(\"++\"+r,\"--\"+n)):_.push([\"ptr0=\",a(e),\"\\n\",\"ptr1=\",a(r),\"\\n\",\"ptr2=\",a(n),\"\\n\",\"++\",r,\"\\n\",\"--\",n,\"\\n\",\"tmp=\",o(\"ptr0\"),\"\\n\",s(\"ptr0\",o(\"ptr1\")),\"\\n\",s(\"ptr1\",o(\"ptr2\")),\"\\n\",s(\"ptr2\",\"tmp\")].join(\"\"))}function g(t,e){m(t,e),_.push(\"--\"+e)}function y(e,r,n){t.length>1?l([e,r],!0,[s(\"ptr0\",o(\"ptr1\")),\"\\n\",s(\"ptr1\",[\"pivot\",n,\"[pivot_ptr]\"].join(\"\"))].join(\"\")):_.push(s(a(e),o(a(r))),s(a(r),\"pivot\"+n))}function b(e,r){_.push([\"if((\",r,\"-\",e,\")<=\",u,\"){\\n\",\"insertionSort(\",e,\",\",r,\",data,offset,\",i(t.length).join(\",\"),\")\\n\",\"}else{\\n\",w,\"(\",e,\",\",r,\",data,offset,\",i(t.length).join(\",\"),\")\\n\",\"}\"].join(\"\"))}function x(e,r,n){t.length>1?(_.push([\"__l\",++A,\":while(true){\"].join(\"\")),l([e],!0,[\"if(\",o(\"ptr0\"),\"!==pivot\",r,\"[pivot_ptr]){break __l\",A,\"}\"].join(\"\")),_.push(n,\"}\")):_.push([\"while(\",o(a(e)),\"===pivot\",r,\"){\",n,\"}\"].join(\"\"))}var _=[\"'use strict'\"],w=[\"ndarrayQuickSort\",t.join(\"d\"),e].join(\"\"),M=[\"left\",\"right\",\"data\",\"offset\"].concat(i(t.length)),k=n(e),A=0;_.push([\"function \",w,\"(\",M.join(\",\"),\"){\"].join(\"\"));var T=[\"sixth=((right-left+1)/6)|0\",\"index1=left+sixth\",\"index5=right-sixth\",\"index3=(left+right)>>1\",\"index2=index3-sixth\",\"index4=index3+sixth\",\"el1=index1\",\"el2=index2\",\"el3=index3\",\"el4=index4\",\"el5=index5\",\"less=left+1\",\"great=right-1\",\"pivots_are_equal=true\",\"tmp\",\"tmp0\",\"x\",\"y\",\"z\",\"k\",\"ptr0\",\"ptr1\",\"ptr2\",\"comp_pivot1=0\",\"comp_pivot2=0\",\"comp=0\"];if(t.length>1){for(var S=[],E=1;E<t.length;++E)S.push(\"n\"+E),T.push(\"i\"+E);for(var E=0;E<8;++E)T.push(\"b_ptr\"+E);T.push(\"ptr3\",\"ptr4\",\"ptr5\",\"ptr6\",\"ptr7\",\"pivot_ptr\",\"ptr_shift\",\"elementSize=\"+S.join(\"*\")),k?T.push(\"pivot1=malloc(elementSize)\",\"pivot2=malloc(elementSize)\"):T.push(\"pivot1=new Array(elementSize),pivot2=new Array(elementSize)\")}else T.push(\"pivot1\",\"pivot2\");if(_.push(\"var \"+T.join(\",\")),f(1,2),f(4,5),f(1,3),f(2,3),f(1,4),f(3,4),f(2,5),f(2,3),f(4,5),t.length>1?l([\"el1\",\"el2\",\"el3\",\"el4\",\"el5\",\"index1\",\"index3\",\"index5\"],!0,[\"pivot1[pivot_ptr]=\",o(\"ptr1\"),\"\\n\",\"pivot2[pivot_ptr]=\",o(\"ptr3\"),\"\\n\",\"pivots_are_equal=pivots_are_equal&&(pivot1[pivot_ptr]===pivot2[pivot_ptr])\\n\",\"x=\",o(\"ptr0\"),\"\\n\",\"y=\",o(\"ptr2\"),\"\\n\",\"z=\",o(\"ptr4\"),\"\\n\",s(\"ptr5\",\"x\"),\"\\n\",s(\"ptr6\",\"y\"),\"\\n\",s(\"ptr7\",\"z\")].join(\"\")):_.push([\"pivot1=\",o(a(\"el2\")),\"\\n\",\"pivot2=\",o(a(\"el4\")),\"\\n\",\"pivots_are_equal=pivot1===pivot2\\n\",\"x=\",o(a(\"el1\")),\"\\n\",\"y=\",o(a(\"el3\")),\"\\n\",\"z=\",o(a(\"el5\")),\"\\n\",s(a(\"index1\"),\"x\"),\"\\n\",s(a(\"index3\"),\"y\"),\"\\n\",s(a(\"index5\"),\"z\")].join(\"\")),d(\"index2\",\"left\"),d(\"index4\",\"right\"),_.push(\"if(pivots_are_equal){\"),_.push(\"for(k=less;k<=great;++k){\"),p(\"comp\",\"k\",1),_.push(\"if(comp===0){continue}\"),_.push(\"if(comp<0){\"),_.push(\"if(k!==less){\"),m(\"k\",\"less\"),_.push(\"}\"),_.push(\"++less\"),_.push(\"}else{\"),_.push(\"while(true){\"),p(\"comp\",\"great\",1),_.push(\"if(comp>0){\"),_.push(\"great--\"),_.push(\"}else if(comp<0){\"),v(\"k\",\"less\",\"great\"),_.push(\"break\"),_.push(\"}else{\"),g(\"k\",\"great\"),_.push(\"break\"),_.push(\"}\"),_.push(\"}\"),_.push(\"}\"),_.push(\"}\"),_.push(\"}else{\"),_.push(\"for(k=less;k<=great;++k){\"),p(\"comp_pivot1\",\"k\",1),_.push(\"if(comp_pivot1<0){\"),_.push(\"if(k!==less){\"),m(\"k\",\"less\"),_.push(\"}\"),_.push(\"++less\"),_.push(\"}else{\"),p(\"comp_pivot2\",\"k\",2),_.push(\"if(comp_pivot2>0){\"),_.push(\"while(true){\"),p(\"comp\",\"great\",2),_.push(\"if(comp>0){\"),_.push(\"if(--great<k){break}\"),_.push(\"continue\"),_.push(\"}else{\"),p(\"comp\",\"great\",1),_.push(\"if(comp<0){\"),v(\"k\",\"less\",\"great\"),_.push(\"}else{\"),g(\"k\",\"great\"),_.push(\"}\"),_.push(\"break\"),_.push(\"}\"),_.push(\"}\"),_.push(\"}\"),_.push(\"}\"),_.push(\"}\"),_.push(\"}\"),y(\"left\",\"(less-1)\",1),y(\"right\",\"(great+1)\",2),b(\"left\",\"(less-2)\"),b(\"(great+2)\",\"right\"),_.push(\"if(pivots_are_equal){\"),h(),_.push(\"return\"),_.push(\"}\"),_.push(\"if(less<index1&&great>index5){\"),x(\"less\",1,\"++less\"),x(\"great\",2,\"--great\"),_.push(\"for(k=less;k<=great;++k){\"),p(\"comp_pivot1\",\"k\",1),_.push(\"if(comp_pivot1===0){\"),_.push(\"if(k!==less){\"),m(\"k\",\"less\"),_.push(\"}\"),_.push(\"++less\"),_.push(\"}else{\"),p(\"comp_pivot2\",\"k\",2),_.push(\"if(comp_pivot2===0){\"),_.push(\"while(true){\"),p(\"comp\",\"great\",2),_.push(\"if(comp===0){\"),_.push(\"if(--great<k){break}\"),_.push(\"continue\"),_.push(\"}else{\"),p(\"comp\",\"great\",1),_.push(\"if(comp<0){\"),v(\"k\",\"less\",\"great\"),_.push(\"}else{\"),g(\"k\",\"great\"),_.push(\"}\"),_.push(\"break\"),_.push(\"}\"),_.push(\"}\"),_.push(\"}\"),_.push(\"}\"),_.push(\"}\"),_.push(\"}\"),h(),b(\"less\",\"great\"),_.push(\"}return \"+w),t.length>1&&k){var L=new Function(\"insertionSort\",\"malloc\",\"free\",_.join(\"\\n\"));return L(r,k[0],k[1])}var L=new Function(\"insertionSort\",_.join(\"\\n\"));return L(r)}function s(t,e){var r=[\"'use strict'\"],n=[\"ndarraySortWrapper\",t.join(\"d\"),e].join(\"\"),s=[\"array\"];r.push([\"function \",n,\"(\",s.join(\",\"),\"){\"].join(\"\"));for(var l=[\"data=array.data,offset=array.offset|0,shape=array.shape,stride=array.stride\"],c=0;c<t.length;++c)l.push([\"s\",c,\"=stride[\",c,\"]|0,n\",c,\"=shape[\",c,\"]|0\"].join(\"\"));for(var h=new Array(t.length),f=[],c=0;c<t.length;++c){var d=t[c];0!==d&&(0===f.length?h[d]=\"1\":h[d]=f.join(\"*\"),f.push(\"n\"+d))}for(var p=-1,m=-1,c=0;c<t.length;++c){var v=t[c];0!==v&&(p>0?l.push([\"d\",v,\"=s\",v,\"-d\",p,\"*n\",p].join(\"\")):l.push([\"d\",v,\"=s\",v].join(\"\")),p=v);var d=t.length-1-c;0!==d&&(m>0?l.push([\"e\",d,\"=s\",d,\"-e\",m,\"*n\",m,\",f\",d,\"=\",h[d],\"-f\",m,\"*n\",m].join(\"\")):l.push([\"e\",d,\"=s\",d,\",f\",d,\"=\",h[d]].join(\"\")),m=d)}r.push(\"var \"+l.join(\",\"));var g=[\"0\",\"n0-1\",\"data\",\"offset\"].concat(i(t.length));r.push([\"if(n0<=\",u,\"){\",\"insertionSort(\",g.join(\",\"),\")}else{\",\"quickSort(\",g.join(\",\"),\")}\"].join(\"\")),r.push(\"}return \"+n);var y=new Function(\"insertionSort\",\"quickSort\",r.join(\"\\n\")),b=a(t,e);return y(b,o(t,e,b))}var l=t(\"typedarray-pool\"),u=32;e.exports=s},{\"typedarray-pool\":541}],465:[function(t,e,r){\"use strict\";function n(t){var e=t.order,r=t.dtype,n=[e,r],o=n.join(\":\"),s=a[o];return s||(a[o]=s=i(e,r)),s(t),t}var i=t(\"./lib/compile_sort.js\"),a={};e.exports=n},{\"./lib/compile_sort.js\":464}],466:[function(t,e,r){\"use strict\";var n=t(\"ndarray-linear-interpolate\"),i=t(\"cwise/lib/wrapper\")({args:[\"index\",\"array\",\"scalar\",\"scalar\",\"scalar\"],pre:{body:\"{this_warped=new Array(_inline_9_arg4_)}\",args:[{name:\"_inline_9_arg0_\",lvalue:!1,rvalue:!1,count:0},{name:\"_inline_9_arg1_\",lvalue:!1,rvalue:!1,count:0},{name:\"_inline_9_arg2_\",lvalue:!1,rvalue:!1,count:0},{name:\"_inline_9_arg3_\",lvalue:!1,rvalue:!1,count:0},{name:\"_inline_9_arg4_\",lvalue:!1,rvalue:!0,count:1}],thisVars:[\"this_warped\"],localVars:[]},body:{body:\"{_inline_10_arg2_(this_warped,_inline_10_arg0_),_inline_10_arg1_=_inline_10_arg3_.apply(void 0,this_warped)}\",args:[{name:\"_inline_10_arg0_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_10_arg1_\",lvalue:!0,rvalue:!1,count:1},{name:\"_inline_10_arg2_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_10_arg3_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_10_arg4_\",lvalue:!1,rvalue:!1,count:0}],thisVars:[\"this_warped\"],localVars:[]},post:{body:\"{}\",args:[],thisVars:[],localVars:[]},debug:!1,funcName:\"warpND\",blockSize:64}),a=t(\"cwise/lib/wrapper\")({args:[\"index\",\"array\",\"scalar\",\"scalar\",\"scalar\"],pre:{body:\"{this_warped=[0]}\",args:[],thisVars:[\"this_warped\"],localVars:[]},body:{body:\"{_inline_13_arg2_(this_warped,_inline_13_arg0_),_inline_13_arg1_=_inline_13_arg3_(_inline_13_arg4_,this_warped[0])}\",args:[{name:\"_inline_13_arg0_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_13_arg1_\",lvalue:!0,rvalue:!1,count:1},{name:\"_inline_13_arg2_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_13_arg3_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_13_arg4_\",lvalue:!1,rvalue:!0,count:1}],thisVars:[\"this_warped\"],localVars:[]},post:{body:\"{}\",args:[],thisVars:[],localVars:[]},debug:!1,funcName:\"warp1D\",blockSize:64}),o=t(\"cwise/lib/wrapper\")({args:[\"index\",\"array\",\"scalar\",\"scalar\",\"scalar\"],pre:{body:\"{this_warped=[0,0]}\",args:[],thisVars:[\"this_warped\"],localVars:[]},body:{body:\"{_inline_16_arg2_(this_warped,_inline_16_arg0_),_inline_16_arg1_=_inline_16_arg3_(_inline_16_arg4_,this_warped[0],this_warped[1])}\",args:[{name:\"_inline_16_arg0_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_16_arg1_\",lvalue:!0,rvalue:!1,count:1},{name:\"_inline_16_arg2_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_16_arg3_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_16_arg4_\",lvalue:!1,rvalue:!0,count:1}],thisVars:[\"this_warped\"],localVars:[]},post:{body:\"{}\",args:[],thisVars:[],localVars:[]},debug:!1,funcName:\"warp2D\",blockSize:64}),s=t(\"cwise/lib/wrapper\")({args:[\"index\",\"array\",\"scalar\",\"scalar\",\"scalar\"],pre:{body:\"{this_warped=[0,0,0]}\",args:[],thisVars:[\"this_warped\"],localVars:[]},body:{body:\"{_inline_19_arg2_(this_warped,_inline_19_arg0_),_inline_19_arg1_=_inline_19_arg3_(_inline_19_arg4_,this_warped[0],this_warped[1],this_warped[2])}\",args:[{name:\"_inline_19_arg0_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_19_arg1_\",lvalue:!0,rvalue:!1,count:1},{name:\"_inline_19_arg2_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_19_arg3_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_19_arg4_\",lvalue:!1,rvalue:!0,count:1}],thisVars:[\"this_warped\"],localVars:[]},post:{body:\"{}\",args:[],thisVars:[],localVars:[]},debug:!1,funcName:\"warp3D\",blockSize:64});e.exports=function(t,e,r){switch(e.shape.length){case 1:a(t,r,n.d1,e);break;case 2:o(t,r,n.d2,e);break;case 3:s(t,r,n.d3,e);break;default:i(t,r,n.bind(void 0,e),e.shape.length)}return t}},{\"cwise/lib/wrapper\":113,\"ndarray-linear-interpolate\":460}],467:[function(t,e,r){function n(t,e){return t[0]-e[0]}function i(){var t,e=this.stride,r=new Array(e.length);for(t=0;t<r.length;++t)r[t]=[Math.abs(e[t]),t];r.sort(n);var i=new Array(r.length);for(t=0;t<i.length;++t)i[t]=r[t][1];return i}function a(t,e){var r=[\"View\",e,\"d\",t].join(\"\");e<0&&(r=\"View_Nil\"+t);var n=\"generic\"===t;if(-1===e){\n", "var a=\"function \"+r+\"(a){this.data=a;};var proto=\"+r+\".prototype;proto.dtype='\"+t+\"';proto.index=function(){return -1};proto.size=0;proto.dimension=-1;proto.shape=proto.stride=proto.order=[];proto.lo=proto.hi=proto.transpose=proto.step=function(){return new \"+r+\"(this.data);};proto.get=proto.set=function(){};proto.pick=function(){return null};return function construct_\"+r+\"(a){return new \"+r+\"(a);}\",o=new Function(a);return o()}if(0===e){var a=\"function \"+r+\"(a,d) {this.data = a;this.offset = d};var proto=\"+r+\".prototype;proto.dtype='\"+t+\"';proto.index=function(){return this.offset};proto.dimension=0;proto.size=1;proto.shape=proto.stride=proto.order=[];proto.lo=proto.hi=proto.transpose=proto.step=function \"+r+\"_copy() {return new \"+r+\"(this.data,this.offset)};proto.pick=function \"+r+\"_pick(){return TrivialArray(this.data);};proto.valueOf=proto.get=function \"+r+\"_get(){return \"+(n?\"this.data.get(this.offset)\":\"this.data[this.offset]\")+\"};proto.set=function \"+r+\"_set(v){return \"+(n?\"this.data.set(this.offset,v)\":\"this.data[this.offset]=v\")+\"};return function construct_\"+r+\"(a,b,c,d){return new \"+r+\"(a,d)}\",o=new Function(\"TrivialArray\",a);return o(h[t][0])}var a=[\"'use strict'\"],s=l(e),u=s.map(function(t){return\"i\"+t}),c=\"this.offset+\"+s.map(function(t){return\"this.stride[\"+t+\"]*i\"+t}).join(\"+\"),f=s.map(function(t){return\"b\"+t}).join(\",\"),d=s.map(function(t){return\"c\"+t}).join(\",\");a.push(\"function \"+r+\"(a,\"+f+\",\"+d+\",d){this.data=a\",\"this.shape=[\"+f+\"]\",\"this.stride=[\"+d+\"]\",\"this.offset=d|0}\",\"var proto=\"+r+\".prototype\",\"proto.dtype='\"+t+\"'\",\"proto.dimension=\"+e),a.push(\"Object.defineProperty(proto,'size',{get:function \"+r+\"_size(){return \"+s.map(function(t){return\"this.shape[\"+t+\"]\"}).join(\"*\"),\"}})\"),1===e?a.push(\"proto.order=[0]\"):(a.push(\"Object.defineProperty(proto,'order',{get:\"),e<4?(a.push(\"function \"+r+\"_order(){\"),2===e?a.push(\"return (Math.abs(this.stride[0])>Math.abs(this.stride[1]))?[1,0]:[0,1]}})\"):3===e&&a.push(\"var s0=Math.abs(this.stride[0]),s1=Math.abs(this.stride[1]),s2=Math.abs(this.stride[2]);if(s0>s1){if(s1>s2){return [2,1,0];}else if(s0>s2){return [1,2,0];}else{return [1,0,2];}}else if(s0>s2){return [2,0,1];}else if(s2>s1){return [0,1,2];}else{return [0,2,1];}}})\")):a.push(\"ORDER})\")),a.push(\"proto.set=function \"+r+\"_set(\"+u.join(\",\")+\",v){\"),n?a.push(\"return this.data.set(\"+c+\",v)}\"):a.push(\"return this.data[\"+c+\"]=v}\"),a.push(\"proto.get=function \"+r+\"_get(\"+u.join(\",\")+\"){\"),n?a.push(\"return this.data.get(\"+c+\")}\"):a.push(\"return this.data[\"+c+\"]}\"),a.push(\"proto.index=function \"+r+\"_index(\",u.join(),\"){return \"+c+\"}\"),a.push(\"proto.hi=function \"+r+\"_hi(\"+u.join(\",\")+\"){return new \"+r+\"(this.data,\"+s.map(function(t){return[\"(typeof i\",t,\"!=='number'||i\",t,\"<0)?this.shape[\",t,\"]:i\",t,\"|0\"].join(\"\")}).join(\",\")+\",\"+s.map(function(t){return\"this.stride[\"+t+\"]\"}).join(\",\")+\",this.offset)}\");var p=s.map(function(t){return\"a\"+t+\"=this.shape[\"+t+\"]\"}),m=s.map(function(t){return\"c\"+t+\"=this.stride[\"+t+\"]\"});a.push(\"proto.lo=function \"+r+\"_lo(\"+u.join(\",\")+\"){var b=this.offset,d=0,\"+p.join(\",\")+\",\"+m.join(\",\"));for(var v=0;v<e;++v)a.push(\"if(typeof i\"+v+\"==='number'&&i\"+v+\">=0){d=i\"+v+\"|0;b+=c\"+v+\"*d;a\"+v+\"-=d}\");a.push(\"return new \"+r+\"(this.data,\"+s.map(function(t){return\"a\"+t}).join(\",\")+\",\"+s.map(function(t){return\"c\"+t}).join(\",\")+\",b)}\"),a.push(\"proto.step=function \"+r+\"_step(\"+u.join(\",\")+\"){var \"+s.map(function(t){return\"a\"+t+\"=this.shape[\"+t+\"]\"}).join(\",\")+\",\"+s.map(function(t){return\"b\"+t+\"=this.stride[\"+t+\"]\"}).join(\",\")+\",c=this.offset,d=0,ceil=Math.ceil\");for(var v=0;v<e;++v)a.push(\"if(typeof i\"+v+\"==='number'){d=i\"+v+\"|0;if(d<0){c+=b\"+v+\"*(a\"+v+\"-1);a\"+v+\"=ceil(-a\"+v+\"/d)}else{a\"+v+\"=ceil(a\"+v+\"/d)}b\"+v+\"*=d}\");a.push(\"return new \"+r+\"(this.data,\"+s.map(function(t){return\"a\"+t}).join(\",\")+\",\"+s.map(function(t){return\"b\"+t}).join(\",\")+\",c)}\");for(var g=new Array(e),y=new Array(e),v=0;v<e;++v)g[v]=\"a[i\"+v+\"]\",y[v]=\"b[i\"+v+\"]\";a.push(\"proto.transpose=function \"+r+\"_transpose(\"+u+\"){\"+u.map(function(t,e){return t+\"=(\"+t+\"===undefined?\"+e+\":\"+t+\"|0)\"}).join(\";\"),\"var a=this.shape,b=this.stride;return new \"+r+\"(this.data,\"+g.join(\",\")+\",\"+y.join(\",\")+\",this.offset)}\"),a.push(\"proto.pick=function \"+r+\"_pick(\"+u+\"){var a=[],b=[],c=this.offset\");for(var v=0;v<e;++v)a.push(\"if(typeof i\"+v+\"==='number'&&i\"+v+\">=0){c=(c+this.stride[\"+v+\"]*i\"+v+\")|0}else{a.push(this.shape[\"+v+\"]);b.push(this.stride[\"+v+\"])}\");a.push(\"var ctor=CTOR_LIST[a.length+1];return ctor(this.data,a,b,c)}\"),a.push(\"return function construct_\"+r+\"(data,shape,stride,offset){return new \"+r+\"(data,\"+s.map(function(t){return\"shape[\"+t+\"]\"}).join(\",\")+\",\"+s.map(function(t){return\"stride[\"+t+\"]\"}).join(\",\")+\",offset)}\");var o=new Function(\"CTOR_LIST\",\"ORDER\",a.join(\"\\n\"));return o(h[t],i)}function o(t){if(u(t))return\"buffer\";if(c)switch(Object.prototype.toString.call(t)){case\"[object Float64Array]\":return\"float64\";case\"[object Float32Array]\":return\"float32\";case\"[object Int8Array]\":return\"int8\";case\"[object Int16Array]\":return\"int16\";case\"[object Int32Array]\":return\"int32\";case\"[object Uint8Array]\":return\"uint8\";case\"[object Uint16Array]\":return\"uint16\";case\"[object Uint32Array]\":return\"uint32\";case\"[object Uint8ClampedArray]\":return\"uint8_clamped\"}return Array.isArray(t)?\"array\":\"generic\"}function s(t,e,r,n){if(void 0===t){var i=h.array[0];return i([])}\"number\"==typeof t&&(t=[t]),void 0===e&&(e=[t.length]);var s=e.length;if(void 0===r){r=new Array(s);for(var l=s-1,u=1;l>=0;--l)r[l]=u,u*=e[l]}if(void 0===n){n=0;for(var l=0;l<s;++l)r[l]<0&&(n-=(e[l]-1)*r[l])}for(var c=o(t),f=h[c];f.length<=s+1;)f.push(a(c,f.length-1));var i=f[s+1];return i(t,e,r,n)}var l=t(\"iota-array\"),u=t(\"is-buffer\"),c=\"undefined\"!=typeof Float64Array,h={float32:[],float64:[],int8:[],int16:[],int32:[],uint8:[],uint16:[],uint32:[],array:[],uint8_clamped:[],buffer:[],generic:[]};e.exports=s},{\"iota-array\":293,\"is-buffer\":295}],468:[function(t,e,r){\"use strict\";function n(t,e){if(isNaN(t)||isNaN(e))return NaN;if(t===e)return t;if(0===t)return e<0?-a:a;var r=i.hi(t),n=i.lo(t);return e>t==t>0?n===o?(r+=1,n=0):n+=1:0===n?(n=o,r-=1):n-=1,i.pack(n,r)}var i=t(\"double-bits\"),a=Math.pow(2,-1074),o=-1>>>0;e.exports=n},{\"double-bits\":124}],469:[function(t,e,r){r.vertexNormals=function(t,e,r){for(var n=e.length,i=new Array(n),a=void 0===r?1e-6:r,o=0;o<n;++o)i[o]=[0,0,0];for(var o=0;o<t.length;++o)for(var s=t[o],l=0,u=s[s.length-1],c=s[0],h=0;h<s.length;++h){l=u,u=c,c=s[(h+1)%s.length];for(var f=e[l],d=e[u],p=e[c],m=new Array(3),v=0,g=new Array(3),y=0,b=0;b<3;++b)m[b]=f[b]-d[b],v+=m[b]*m[b],g[b]=p[b]-d[b],y+=g[b]*g[b];if(v*y>a)for(var x=i[u],_=1/Math.sqrt(v*y),b=0;b<3;++b){var w=(b+1)%3,M=(b+2)%3;x[b]+=_*(g[w]*m[M]-g[M]*m[w])}}for(var o=0;o<n;++o){for(var x=i[o],k=0,b=0;b<3;++b)k+=x[b]*x[b];if(k>a)for(var _=1/Math.sqrt(k),b=0;b<3;++b)x[b]*=_;else for(var b=0;b<3;++b)x[b]=0}return i},r.faceNormals=function(t,e,r){for(var n=t.length,i=new Array(n),a=void 0===r?1e-6:r,o=0;o<n;++o){for(var s=t[o],l=new Array(3),u=0;u<3;++u)l[u]=e[s[u]];for(var c=new Array(3),h=new Array(3),u=0;u<3;++u)c[u]=l[1][u]-l[0][u],h[u]=l[2][u]-l[0][u];for(var f=new Array(3),d=0,u=0;u<3;++u){var p=(u+1)%3,m=(u+2)%3;f[u]=c[p]*h[m]-c[m]*h[p],d+=f[u]*f[u]}d=d>a?1/Math.sqrt(d):0;for(var u=0;u<3;++u)f[u]*=d;i[o]=f}return i}},{}],470:[function(t,e,r){\"use strict\";function n(t){if(null===t||void 0===t)throw new TypeError(\"Object.assign cannot be called with null or undefined\");return Object(t)}var i=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var t=new String(\"abc\");if(t[5]=\"de\",\"5\"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},r=0;r<10;r++)e[\"_\"+String.fromCharCode(r)]=r;if(\"0123456789\"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(\"\"))return!1;var n={};return\"abcdefghijklmnopqrst\".split(\"\").forEach(function(t){n[t]=t}),\"abcdefghijklmnopqrst\"===Object.keys(Object.assign({},n)).join(\"\")}catch(t){return!1}}()?Object.assign:function(t,e){for(var r,s,l=n(t),u=1;u<arguments.length;u++){r=Object(arguments[u]);for(var c in r)a.call(r,c)&&(l[c]=r[c]);if(i){s=i(r);for(var h=0;h<s.length;h++)o.call(r,s[h])&&(l[s[h]]=r[s[h]])}}return l}},{}],471:[function(t,e,r){\"use strict\";function n(t,e){var r,n,o;return\"string\"==typeof t?(r=i(t,e),n=r.width,o=r.height):t instanceof HTMLCanvasElement?(n=t.width,o=t.height,t=t.getContext(\"2d\"),r=t.getImageData(0,0,n,o)):t instanceof ImageData&&(n=t.width,o=t.height,r=t),a(r)}function i(t,e){e||(e={});var r=e.family||\"sans-serif\",n=l.width,i=l.height,a=e.width||e.height||e.size;a&&a!=n&&(n=i=l.width=l.height=a);var o=e.fontSize||n/2;return u.fillStyle=\"#000\",u.fillRect(0,0,n,i),u.font=o+\"px \"+r,u.textBaseline=\"middle\",u.textAlign=\"center\",u.fillStyle=\"white\",u.fillText(t,n/2,i/2),u.getImageData(0,0,n,i)}function a(t){var e,r,n,i,a,l,u,c,h,f,d,p,m,v=t.data,g=t.width,y=t.height,b=Array(y),x=Array(y),_=0,w=0,M=g,k=0,A=0,T=Array(y);for(r=0;r<y;r++)if(l=0,u=0,a=4*r*g,d=o(v.subarray(a,a+4*g),4),d[0]!==d[1]){for(_||(_=r),w=r,e=d[0];e<d[1];e++)i=4*e,n=v[a+i],l+=n,u+=e*n;b[r]=0===l?0:l/g,x[r]=0===l?0:u/l,d[0]<M&&(M=d[0]),d[1]>k&&(k=d[1]),T[r]=d}for(l=0,c=0,u=0,r=0;r<y;r++)(p=b[r])&&(c+=p*r,l+=p,u+=x[r]*p);for(f=c/l,h=u/l,A=0,m=0,r=0;r<y;r++)(d=T[r])&&(m=Math.max(s(h-d[0],f-r),s(h-d[1],f-r)))>A&&(A=m);return{center:[h,f],bounds:[M,_,k,w+1],radius:Math.sqrt(A)}}function o(t,e){var r=0,n=t.length,i=0;for(e||(e=4);!t[i]&&i<n;)i+=e;for(r=i,i=t.length;!t[i]&&i>r;)i-=e;return n=i,[r/e,n/e]}function s(t,e){return t*t+e*e}e.exports=n;var l=document.createElement(\"canvas\"),u=l.getContext(\"2d\");l.width=200,l.height=200,n.canvas=l},{}],472:[function(t,e,r){\"use strict\";function n(t,e,r,n,i,a,o,s,l,u){var c=e+a+u;if(h>0){var h=Math.sqrt(c+1);t[0]=.5*(o-l)/h,t[1]=.5*(s-n)/h,t[2]=.5*(r-a)/h,t[3]=.5*h}else{var f=Math.max(e,a,u),h=Math.sqrt(2*f-c+1);e>=f?(t[0]=.5*h,t[1]=.5*(i+r)/h,t[2]=.5*(s+n)/h,t[3]=.5*(o-l)/h):a>=f?(t[0]=.5*(r+i)/h,t[1]=.5*h,t[2]=.5*(l+o)/h,t[3]=.5*(s-n)/h):(t[0]=.5*(n+s)/h,t[1]=.5*(o+l)/h,t[2]=.5*h,t[3]=.5*(r-i)/h)}return t}e.exports=n},{}],473:[function(t,e,r){\"use strict\";function n(t,e,r){return Math.sqrt(Math.pow(t,2)+Math.pow(e,2)+Math.pow(r,2))}function i(t,e,r,n){return Math.sqrt(Math.pow(t,2)+Math.pow(e,2)+Math.pow(r,2)+Math.pow(n,2))}function a(t,e){var r=e[0],n=e[1],a=e[2],o=e[3],s=i(r,n,a,o);s>1e-6?(t[0]=r/s,t[1]=n/s,t[2]=a/s,t[3]=o/s):(t[0]=t[1]=t[2]=0,t[3]=1)}function o(t,e,r){this.radius=l([r]),this.center=l(e),this.rotation=l(t),this.computedRadius=this.radius.curve(0),this.computedCenter=this.center.curve(0),this.computedRotation=this.rotation.curve(0),this.computedUp=[.1,0,0],this.computedEye=[.1,0,0],this.computedMatrix=[.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.recalcMatrix(0)}function s(t){t=t||{};var e=t.center||[0,0,0],r=t.rotation||[0,0,0,1],n=t.radius||1;e=[].slice.call(e,0,3),r=[].slice.call(r,0,4),a(r,r);var i=new o(r,e,Math.log(n));return i.setDistanceLimits(t.zoomMin,t.zoomMax),(\"eye\"in t||\"up\"in t)&&i.lookAt(0,t.eye,t.center,t.up),i}e.exports=s;var l=t(\"filtered-vector\"),u=t(\"gl-mat4/lookAt\"),c=t(\"gl-mat4/fromQuat\"),h=t(\"gl-mat4/invert\"),f=t(\"./lib/quatFromFrame\"),d=o.prototype;d.lastT=function(){return Math.max(this.radius.lastT(),this.center.lastT(),this.rotation.lastT())},d.recalcMatrix=function(t){this.radius.curve(t),this.center.curve(t),this.rotation.curve(t);var e=this.computedRotation;a(e,e);var r=this.computedMatrix;c(r,e);var n=this.computedCenter,i=this.computedEye,o=this.computedUp,s=Math.exp(this.computedRadius[0]);i[0]=n[0]+s*r[2],i[1]=n[1]+s*r[6],i[2]=n[2]+s*r[10],o[0]=r[1],o[1]=r[5],o[2]=r[9];for(var l=0;l<3;++l){for(var u=0,h=0;h<3;++h)u+=r[l+4*h]*i[h];r[12+l]=-u}},d.getMatrix=function(t,e){this.recalcMatrix(t);var r=this.computedMatrix;if(e){for(var n=0;n<16;++n)e[n]=r[n];return e}return r},d.idle=function(t){this.center.idle(t),this.radius.idle(t),this.rotation.idle(t)},d.flush=function(t){this.center.flush(t),this.radius.flush(t),this.rotation.flush(t)},d.pan=function(t,e,r,i){e=e||0,r=r||0,i=i||0,this.recalcMatrix(t);var a=this.computedMatrix,o=a[1],s=a[5],l=a[9],u=n(o,s,l);o/=u,s/=u,l/=u;var c=a[0],h=a[4],f=a[8],d=c*o+h*s+f*l;c-=o*d,h-=s*d,f-=l*d;var p=n(c,h,f);c/=p,h/=p,f/=p;var m=a[2],v=a[6],g=a[10],y=m*o+v*s+g*l,b=m*c+v*h+g*f;m-=y*o+b*c,v-=y*s+b*h,g-=y*l+b*f;var x=n(m,v,g);m/=x,v/=x,g/=x;var _=c*e+o*r,w=h*e+s*r,M=f*e+l*r;this.center.move(t,_,w,M);var k=Math.exp(this.computedRadius[0]);k=Math.max(1e-4,k+i),this.radius.set(t,Math.log(k))},d.rotate=function(t,e,r,a){this.recalcMatrix(t),e=e||0,r=r||0;var o=this.computedMatrix,s=o[0],l=o[4],u=o[8],c=o[1],h=o[5],f=o[9],d=o[2],p=o[6],m=o[10],v=e*s+r*c,g=e*l+r*h,y=e*u+r*f,b=-(p*y-m*g),x=-(m*v-d*y),_=-(d*g-p*v),w=Math.sqrt(Math.max(0,1-Math.pow(b,2)-Math.pow(x,2)-Math.pow(_,2))),M=i(b,x,_,w);M>1e-6?(b/=M,x/=M,_/=M,w/=M):(b=x=_=0,w=1);var k=this.computedRotation,A=k[0],T=k[1],S=k[2],E=k[3],L=A*w+E*b+T*_-S*x,C=T*w+E*x+S*b-A*_,I=S*w+E*_+A*x-T*b,z=E*w-A*b-T*x-S*_;if(a){b=d,x=p,_=m;var D=Math.sin(a)/n(b,x,_);b*=D,x*=D,_*=D,w=Math.cos(e),L=L*w+z*b+C*_-I*x,C=C*w+z*x+I*b-L*_,I=I*w+z*_+L*x-C*b,z=z*w-L*b-C*x-I*_}var P=i(L,C,I,z);P>1e-6?(L/=P,C/=P,I/=P,z/=P):(L=C=I=0,z=1),this.rotation.set(t,L,C,I,z)},d.lookAt=function(t,e,r,n){this.recalcMatrix(t),r=r||this.computedCenter,e=e||this.computedEye,n=n||this.computedUp;var i=this.computedMatrix;u(i,e,r,n);var o=this.computedRotation;f(o,i[0],i[1],i[2],i[4],i[5],i[6],i[8],i[9],i[10]),a(o,o),this.rotation.set(t,o[0],o[1],o[2],o[3]);for(var s=0,l=0;l<3;++l)s+=Math.pow(r[l]-e[l],2);this.radius.set(t,.5*Math.log(Math.max(s,1e-6))),this.center.set(t,r[0],r[1],r[2])},d.translate=function(t,e,r,n){this.center.move(t,e||0,r||0,n||0)},d.setMatrix=function(t,e){var r=this.computedRotation;f(r,e[0],e[1],e[2],e[4],e[5],e[6],e[8],e[9],e[10]),a(r,r),this.rotation.set(t,r[0],r[1],r[2],r[3]);var n=this.computedMatrix;h(n,e);var i=n[15];if(Math.abs(i)>1e-6){var o=n[12]/i,s=n[13]/i,l=n[14]/i;this.recalcMatrix(t);var u=Math.exp(this.computedRadius[0]);this.center.set(t,o-n[2]*u,s-n[6]*u,l-n[10]*u),this.radius.idle(t)}else this.center.idle(t),this.radius.idle(t)},d.setDistance=function(t,e){e>0&&this.radius.set(t,Math.log(e))},d.setDistanceLimits=function(t,e){t=t>0?Math.log(t):-1/0,e=e>0?Math.log(e):1/0,e=Math.max(e,t),this.radius.bounds[0][0]=t,this.radius.bounds[1][0]=e},d.getDistanceLimits=function(t){var e=this.radius.bounds;return t?(t[0]=Math.exp(e[0][0]),t[1]=Math.exp(e[1][0]),t):[Math.exp(e[0][0]),Math.exp(e[1][0])]},d.toJSON=function(){return this.recalcMatrix(this.lastT()),{center:this.computedCenter.slice(),rotation:this.computedRotation.slice(),distance:Math.log(this.computedRadius[0]),zoomMin:this.radius.bounds[0][0],zoomMax:this.radius.bounds[1][0]}},d.fromJSON=function(t){var e=this.lastT(),r=t.center;r&&this.center.set(e,r[0],r[1],r[2]);var n=t.rotation;n&&this.rotation.set(e,n[0],n[1],n[2],n[3]);var i=t.distance;i&&i>0&&this.radius.set(e,Math.log(i)),this.setDistanceLimits(t.zoomMin,t.zoomMax)}},{\"./lib/quatFromFrame\":472,\"filtered-vector\":133,\"gl-mat4/fromQuat\":178,\"gl-mat4/invert\":181,\"gl-mat4/lookAt\":182}],474:[function(t,e,r){\"use strict\";var n=t(\"repeat-string\");e.exports=function(t,e,r){return r=void 0!==r?r+\"\":\" \",n(r,e)+t}},{\"repeat-string\":500}],475:[function(t,e,r){e.exports=function(t,e){e||(e=[0,\"\"]),t=String(t);var r=parseFloat(t,10);return e[0]=r,e[1]=t.match(/[\\d.\\-\\+]*\\s*(.*)/)[1]||\"\",e}},{}],476:[function(t,e,r){(function(t){function e(t,e){for(var r=0,n=t.length-1;n>=0;n--){var i=t[n];\".\"===i?t.splice(n,1):\"..\"===i?(t.splice(n,1),r++):r&&(t.splice(n,1),r--)}if(e)for(;r--;r)t.unshift(\"..\");return t}function n(t,e){if(t.filter)return t.filter(e);for(var r=[],n=0;n<t.length;n++)e(t[n],n,t)&&r.push(t[n]);return r}var i=/^(\\/?|)([\\s\\S]*?)((?:\\.{1,2}|[^\\/]+?|)(\\.[^.\\/]*|))(?:[\\/]*)$/,a=function(t){return i.exec(t).slice(1)};r.resolve=function(){for(var r=\"\",i=!1,a=arguments.length-1;a>=-1&&!i;a--){var o=a>=0?arguments[a]:t.cwd();if(\"string\"!=typeof o)throw new TypeError(\"Arguments to path.resolve must be strings\");o&&(r=o+\"/\"+r,i=\"/\"===o.charAt(0))}return r=e(n(r.split(\"/\"),function(t){return!!t}),!i).join(\"/\"),(i?\"/\":\"\")+r||\".\"},r.normalize=function(t){var i=r.isAbsolute(t),a=\"/\"===o(t,-1);return t=e(n(t.split(\"/\"),function(t){return!!t}),!i).join(\"/\"),t||i||(t=\".\"),t&&a&&(t+=\"/\"),(i?\"/\":\"\")+t},r.isAbsolute=function(t){return\"/\"===t.charAt(0)},r.join=function(){var t=Array.prototype.slice.call(arguments,0);return r.normalize(n(t,function(t,e){if(\"string\"!=typeof t)throw new TypeError(\"Arguments to path.join must be strings\");return t}).join(\"/\"))},r.relative=function(t,e){function n(t){for(var e=0;e<t.length&&\"\"===t[e];e++);for(var r=t.length-1;r>=0&&\"\"===t[r];r--);return e>r?[]:t.slice(e,r-e+1)}t=r.resolve(t).substr(1),e=r.resolve(e).substr(1);for(var i=n(t.split(\"/\")),a=n(e.split(\"/\")),o=Math.min(i.length,a.length),s=o,l=0;l<o;l++)if(i[l]!==a[l]){s=l;break}for(var u=[],l=s;l<i.length;l++)u.push(\"..\");return u=u.concat(a.slice(s)),u.join(\"/\")},r.sep=\"/\",r.delimiter=\":\",r.dirname=function(t){var e=a(t),r=e[0],n=e[1];return r||n?(n&&(n=n.substr(0,n.length-1)),r+n):\".\"},r.basename=function(t,e){var r=a(t)[2];return e&&r.substr(-1*e.length)===e&&(r=r.substr(0,r.length-e.length)),r},r.extname=function(t){return a(t)[3]};var o=\"b\"===\"ab\".substr(-1)?function(t,e,r){return t.substr(e,r)}:function(t,e,r){return e<0&&(e=t.length+e),t.substr(e,r)}}).call(this,t(\"_process\"))},{_process:487}],477:[function(t,e,r){\"use strict\";function n(t){var e;t&&t.length&&(e=t,t=e.length);var r=new Uint8Array(t||0);return e&&r.set(e),r.readUInt32LE=a.readUInt32LE,r.writeUInt32LE=a.writeUInt32LE,r.readInt32LE=a.readInt32LE,r.writeInt32LE=a.writeInt32LE,r.readFloatLE=a.readFloatLE,r.writeFloatLE=a.writeFloatLE,r.readDoubleLE=a.readDoubleLE,r.writeDoubleLE=a.writeDoubleLE,r.toString=a.toString,r.write=a.write,r.slice=a.slice,r.copy=a.copy,r._isBuffer=!0,r}function i(t){for(var e,r,n=t.length,i=[],a=0;a<n;a++){if((e=t.charCodeAt(a))>55295&&e<57344){if(!r){e>56319||a+1===n?i.push(239,191,189):r=e;continue}if(e<56320){i.push(239,191,189),r=e;continue}e=r-55296<<10|e-56320|65536,r=null}else r&&(i.push(239,191,189),r=null);e<128?i.push(e):e<2048?i.push(e>>6|192,63&e|128):e<65536?i.push(e>>12|224,e>>6&63|128,63&e|128):i.push(e>>18|240,e>>12&63|128,e>>6&63|128,63&e|128)}return i}e.exports=n;var a,o,s,l=t(\"ieee754\");a={readUInt32LE:function(t){return(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},writeUInt32LE:function(t,e){this[e]=t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24},readInt32LE:function(t){return(this[t]|this[t+1]<<8|this[t+2]<<16)+(this[t+3]<<24)},readFloatLE:function(t){return l.read(this,t,!0,23,4)},readDoubleLE:function(t){return l.read(this,t,!0,52,8)},writeFloatLE:function(t,e){return l.write(this,t,e,!0,23,4)},writeDoubleLE:function(t,e){return l.write(this,t,e,!0,52,8)},toString:function(t,e,r){var n=\"\",i=\"\";e=e||0,r=Math.min(this.length,r||this.length);for(var a=e;a<r;a++){var o=this[a];o<=127?(n+=decodeURIComponent(i)+String.fromCharCode(o),i=\"\"):i+=\"%\"+o.toString(16)}return n+=decodeURIComponent(i)},write:function(t,e){for(var r=t===o?s:i(t),n=0;n<r.length;n++)this[e+n]=r[n]},slice:function(t,e){return this.subarray(t,e)},copy:function(t,e){e=e||0;for(var r=0;r<this.length;r++)t[e+r]=this[r]}},a.writeInt32LE=a.writeUInt32LE,n.byteLength=function(t){return o=t,s=i(t),s.length},n.isBuffer=function(t){return!(!t||!t._isBuffer)}},{ieee754:289}],478:[function(t,e,r){(function(r){\"use strict\";function n(t){this.buf=v.isBuffer(t)?t:new v(t||0),this.pos=0,this.length=this.buf.length}function i(t,e){var r,n=e.buf;if(r=n[e.pos++],t+=268435456*(127&r),r<128)return t;if(r=n[e.pos++],t+=34359738368*(127&r),r<128)return t;if(r=n[e.pos++],t+=4398046511104*(127&r),r<128)return t;if(r=n[e.pos++],t+=562949953421312*(127&r),r<128)return t;if(r=n[e.pos++],t+=72057594037927940*(127&r),r<128)return t;if(r=n[e.pos++],t+=0x8000000000000000*(127&r),r<128)return t;throw new Error(\"Expected varint not more than 10 bytes\")}function a(t,e){e.realloc(10);for(var r=e.pos+10;t>=1;){if(e.pos>=r)throw new Error(\"Given varint doesn't fit into 10 bytes\");var n=255&t;e.buf[e.pos++]=n|(t>=128?128:0),t/=128}}function o(t,e,r){var n=e<=16383?1:e<=2097151?2:e<=268435455?3:Math.ceil(Math.log(e)/(7*Math.LN2));r.realloc(n);for(var i=r.pos-1;i>=t;i--)r.buf[i+n]=r.buf[i]}function s(t,e){for(var r=0;r<t.length;r++)e.writeVarint(t[r])}function l(t,e){for(var r=0;r<t.length;r++)e.writeSVarint(t[r])}function u(t,e){for(var r=0;r<t.length;r++)e.writeFloat(t[r])}function c(t,e){for(var r=0;r<t.length;r++)e.writeDouble(t[r])}function h(t,e){for(var r=0;r<t.length;r++)e.writeBoolean(t[r])}function f(t,e){for(var r=0;r<t.length;r++)e.writeFixed32(t[r])}function d(t,e){for(var r=0;r<t.length;r++)e.writeSFixed32(t[r])}function p(t,e){for(var r=0;r<t.length;r++)e.writeFixed64(t[r])}function m(t,e){for(var r=0;r<t.length;r++)e.writeSFixed64(t[r])}e.exports=n;var v=r.Buffer||t(\"./buffer\");n.Varint=0,n.Fixed64=1,n.Bytes=2,n.Fixed32=5;var g=Math.pow(2,63);n.prototype={destroy:function(){this.buf=null},readFields:function(t,e,r){for(r=r||this.length;this.pos<r;){var n=this.readVarint(),i=n>>3,a=this.pos;t(i,e,this),this.pos===a&&this.skip(n)}return e},readMessage:function(t,e){return this.readFields(t,e,this.readVarint()+this.pos)},readFixed32:function(){var t=this.buf.readUInt32LE(this.pos);return this.pos+=4,t},readSFixed32:function(){var t=this.buf.readInt32LE(this.pos);return this.pos+=4,t},readFixed64:function(){var t=this.buf.readUInt32LE(this.pos)+4294967296*this.buf.readUInt32LE(this.pos+4);return this.pos+=8,t},readSFixed64:function(){var t=this.buf.readUInt32LE(this.pos)+4294967296*this.buf.readInt32LE(this.pos+4);return this.pos+=8,t},readFloat:function(){var t=this.buf.readFloatLE(this.pos);return this.pos+=4,t},readDouble:function(){var t=this.buf.readDoubleLE(this.pos);return this.pos+=8,t},readVarint:function(){var t,e,r=this.buf;return e=r[this.pos++],t=127&e,e<128?t:(e=r[this.pos++],t|=(127&e)<<7,e<128?t:(e=r[this.pos++],t|=(127&e)<<14,e<128?t:(e=r[this.pos++],t|=(127&e)<<21,e<128?t:i(t,this))))},readVarint64:function(){var t=this.pos,e=this.readVarint();if(e<g)return e;for(var r=this.pos-2;255===this.buf[r];)r--;r<t&&(r=t),e=0;for(var n=0;n<r-t+1;n++){var i=127&~this.buf[t+n];e+=n<4?i<<7*n:i*Math.pow(2,7*n)}return-e-1},readSVarint:function(){var t=this.readVarint();return t%2==1?(t+1)/-2:t/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var t=this.readVarint()+this.pos,e=this.buf.toString(\"utf8\",this.pos,t);return this.pos=t,e},readBytes:function(){var t=this.readVarint()+this.pos,e=this.buf.slice(this.pos,t);return this.pos=t,e},readPackedVarint:function(){for(var t=this.readVarint()+this.pos,e=[];this.pos<t;)e.push(this.readVarint());return e},readPackedSVarint:function(){for(var t=this.readVarint()+this.pos,e=[];this.pos<t;)e.push(this.readSVarint());return e},readPackedBoolean:function(){for(var t=this.readVarint()+this.pos,e=[];this.pos<t;)e.push(this.readBoolean());return e},readPackedFloat:function(){for(var t=this.readVarint()+this.pos,e=[];this.pos<t;)e.push(this.readFloat());return e},readPackedDouble:function(){for(var t=this.readVarint()+this.pos,e=[];this.pos<t;)e.push(this.readDouble());return e},readPackedFixed32:function(){for(var t=this.readVarint()+this.pos,e=[];this.pos<t;)e.push(this.readFixed32());return e},readPackedSFixed32:function(){for(var t=this.readVarint()+this.pos,e=[];this.pos<t;)e.push(this.readSFixed32());return e},readPackedFixed64:function(){for(var t=this.readVarint()+this.pos,e=[];this.pos<t;)e.push(this.readFixed64());return e},readPackedSFixed64:function(){for(var t=this.readVarint()+this.pos,e=[];this.pos<t;)e.push(this.readSFixed64());return e},skip:function(t){var e=7&t;if(e===n.Varint)for(;this.buf[this.pos++]>127;);else if(e===n.Bytes)this.pos=this.readVarint()+this.pos;else if(e===n.Fixed32)this.pos+=4;else{if(e!==n.Fixed64)throw new Error(\"Unimplemented type: \"+e);this.pos+=8}},writeTag:function(t,e){this.writeVarint(t<<3|e)},realloc:function(t){for(var e=this.length||16;e<this.pos+t;)e*=2;if(e!==this.length){var r=new v(e);this.buf.copy(r),this.buf=r,this.length=e}},finish:function(){return this.length=this.pos,this.pos=0,this.buf.slice(0,this.length)},writeFixed32:function(t){this.realloc(4),this.buf.writeUInt32LE(t,this.pos),this.pos+=4},writeSFixed32:function(t){this.realloc(4),this.buf.writeInt32LE(t,this.pos),this.pos+=4},writeFixed64:function(t){this.realloc(8),this.buf.writeInt32LE(-1&t,this.pos),this.buf.writeUInt32LE(Math.floor(t*(1/4294967296)),this.pos+4),this.pos+=8},writeSFixed64:function(t){this.realloc(8),this.buf.writeInt32LE(-1&t,this.pos),this.buf.writeInt32LE(Math.floor(t*(1/4294967296)),this.pos+4),this.pos+=8},writeVarint:function(t){if((t=+t)>268435455)return void a(t,this);this.realloc(4),this.buf[this.pos++]=127&t|(t>127?128:0),t<=127||(this.buf[this.pos++]=127&(t>>>=7)|(t>127?128:0),t<=127||(this.buf[this.pos++]=127&(t>>>=7)|(t>127?128:0),t<=127||(this.buf[this.pos++]=t>>>7&127)))},writeSVarint:function(t){this.writeVarint(t<0?2*-t-1:2*t)},writeBoolean:function(t){this.writeVarint(Boolean(t))},writeString:function(t){t=String(t);var e=v.byteLength(t);this.writeVarint(e),this.realloc(e),this.buf.write(t,this.pos),this.pos+=e},writeFloat:function(t){this.realloc(4),this.buf.writeFloatLE(t,this.pos),this.pos+=4},writeDouble:function(t){this.realloc(8),this.buf.writeDoubleLE(t,this.pos),this.pos+=8},writeBytes:function(t){var e=t.length;this.writeVarint(e),this.realloc(e);for(var r=0;r<e;r++)this.buf[this.pos++]=t[r]},writeRawMessage:function(t,e){this.pos++;var r=this.pos;t(e,this);var n=this.pos-r;n>=128&&o(r,n,this),this.pos=r-1,this.writeVarint(n),this.pos+=n},writeMessage:function(t,e,r){this.writeTag(t,n.Bytes),this.writeRawMessage(e,r)},writePackedVarint:function(t,e){this.writeMessage(t,s,e)},writePackedSVarint:function(t,e){this.writeMessage(t,l,e)},writePackedBoolean:function(t,e){this.writeMessage(t,h,e)},writePackedFloat:function(t,e){this.writeMessage(t,u,e)},writePackedDouble:function(t,e){this.writeMessage(t,c,e)},writePackedFixed32:function(t,e){this.writeMessage(t,f,e)},writePackedSFixed32:function(t,e){this.writeMessage(t,d,e)},writePackedFixed64:function(t,e){this.writeMessage(t,p,e)},writePackedSFixed64:function(t,e){this.writeMessage(t,m,e)},writeBytesField:function(t,e){this.writeTag(t,n.Bytes),this.writeBytes(e)},writeFixed32Field:function(t,e){this.writeTag(t,n.Fixed32),this.writeFixed32(e)},writeSFixed32Field:function(t,e){this.writeTag(t,n.Fixed32),this.writeSFixed32(e)},writeFixed64Field:function(t,e){this.writeTag(t,n.Fixed64),this.writeFixed64(e)},writeSFixed64Field:function(t,e){this.writeTag(t,n.Fixed64),this.writeSFixed64(e)},writeVarintField:function(t,e){this.writeTag(t,n.Varint),this.writeVarint(e)},writeSVarintField:function(t,e){this.writeTag(t,n.Varint),this.writeSVarint(e)},writeStringField:function(t,e){this.writeTag(t,n.Bytes),this.writeString(e)},writeFloatField:function(t,e){this.writeTag(t,n.Fixed32),this.writeFloat(e)},writeDoubleField:function(t,e){this.writeTag(t,n.Fixed64),this.writeDouble(e)},writeBooleanField:function(t,e){this.writeVarintField(t,Boolean(e))}}}).call(this,\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{\"./buffer\":477}],479:[function(t,e,r){\"use strict\";function n(t){var e=t.length;if(e<i){for(var r=1,n=0;n<e;++n)for(var o=0;o<n;++o)if(t[n]<t[o])r=-r;else if(t[n]===t[o])return 0;return r}for(var s=a.mallocUint8(e),n=0;n<e;++n)s[n]=0;for(var r=1,n=0;n<e;++n)if(!s[n]){var l=1;s[n]=1;for(var o=t[n];o!==n;o=t[o]){if(s[o])return a.freeUint8(s),0;l+=1,s[o]=1}1&l||(r=-r)}return a.freeUint8(s),r}e.exports=n;var i=32,a=t(\"typedarray-pool\")},{\"typedarray-pool\":541}],480:[function(t,e,r){\"use strict\";function n(t){var e=t.length;switch(e){case 0:case 1:return 0;case 2:return t[1]}var r,n,i,s=a.mallocUint32(e),l=a.mallocUint32(e),u=0;for(o(t,l),i=0;i<e;++i)s[i]=t[i];for(i=e-1;i>0;--i)n=l[i],r=s[i],s[i]=s[n],s[n]=r,l[i]=l[r],l[r]=n,u=(u+r)*i;return a.freeUint32(l),a.freeUint32(s),u}function i(t,e,r){switch(t){case 0:return r||[];case 1:return r?(r[0]=0,r):[0];case 2:return r?(e?(r[0]=0,r[1]=1):(r[0]=1,r[1]=0),r):e?[0,1]:[1,0]}r=r||new Array(t);var n,i,a,o=1;for(r[0]=0,a=1;a<t;++a)r[a]=a,o=o*a|0;for(a=t-1;a>0;--a)n=e/o|0,e=e-n*o|0,o=o/a|0,i=0|r[a],r[a]=0|r[n],r[n]=0|i;return r}var a=t(\"typedarray-pool\"),o=t(\"invert-permutation\");r.rank=n,r.unrank=i},{\"invert-permutation\":292,\"typedarray-pool\":541}],481:[function(t,e,r){\"use strict\";function n(t,e){function r(t,e){var r=s[e][t[e]];r.splice(r.indexOf(t),1)}function n(t,n,a){for(var o,l,u,c=0;c<2;++c)if(s[c][n].length>0){o=s[c][n][0],u=c;break}l=o[1^u];for(var h=0;h<2;++h)for(var f=s[h][n],d=0;d<f.length;++d){var p=f[d],m=p[1^h],v=i(e[t],e[n],e[l],e[m]);v>0&&(o=p,l=m,u=h)}return a?l:(o&&r(o,u),l)}for(var a=0|e.length,o=t.length,s=[new Array(a),new Array(a)],l=0;l<a;++l)s[0][l]=[],s[1][l]=[];for(var l=0;l<o;++l){var u=t[l];s[0][u[0]].push(u),s[1][u[1]].push(u)}for(var c=[],l=0;l<a;++l)s[0][l].length+s[1][l].length===0&&c.push([l]);for(var l=0;l<a;++l)for(var h=0;h<2;++h){for(var f=[];s[h][l].length>0;){var d=(s[0][l].length,function(t,a){var o=s[a][t][0],l=[t];r(o,a);for(var u=o[1^a];;){for(;u!==t;)l.push(u),u=n(l[l.length-2],u,!1);if(s[0][t].length+s[1][t].length===0)break;var c=l[l.length-1],h=t,f=l[1],d=n(c,h,!0);if(i(e[c],e[h],e[f],e[d])<0)break;l.push(t),u=n(c,h)}return l}(l,h));!function(t,e){return e[1]===e[e.length-1]}(f,d)?(f.length>0&&c.push(f),f=d):f.push.apply(f,d)}f.length>0&&c.push(f)}return c}e.exports=n;var i=t(\"compare-angle\")},{\"compare-angle\":100}],482:[function(t,e,r){\"use strict\";function n(t,e){for(var r=i(t,e.length),n=new Array(e.length),a=new Array(e.length),o=[],s=0;s<e.length;++s){var l=r[s].length;a[s]=l,n[s]=!0,l<=1&&o.push(s)}for(;o.length>0;){var u=o.pop();n[u]=!1;for(var c=r[u],s=0;s<c.length;++s){var h=c[s];0==--a[h]&&o.push(h)}}for(var f=new Array(e.length),d=[],s=0;s<e.length;++s)if(n[s]){var u=d.length;f[s]=u,d.push(e[s])}else f[s]=-1;for(var p=[],s=0;s<t.length;++s){var m=t[s];n[m[0]]&&n[m[1]]&&p.push([f[m[0]],f[m[1]]])}return[p,d]}e.exports=n;var i=t(\"edges-to-adjacency-list\")},{\"edges-to-adjacency-list\":127}],483:[function(t,e,r){\"use strict\";function n(t,e){for(var r=new Array(t),n=0;n<t;++n)r[n]=e;return r}function i(t){for(var e=new Array(t),r=0;r<t;++r)e[r]=[];return e}function a(t,e){function r(t){for(var r=t.length,n=[0],i=0;i<r;++i){var a=e[t[i]],o=e[t[(i+1)%r]],s=u(-a[0],a[1]),l=u(-a[0],o[1]),h=u(o[0],a[1]),f=u(o[0],o[1]);n=c(n,c(c(s,l),c(h,f)))}return n[n.length-1]>0}function a(t){for(var e=t.length,r=0;r<e;++r)if(!P[t[r]])return!1;return!0}var d=f(t,e);t=d[0],e=d[1];for(var p=e.length,m=(t.length,o(t,e.length)),v=0;v<p;++v)if(m[v].length%2==1)throw new Error(\"planar-graph-to-polyline: graph must be manifold\");var g=s(t,e);g=g.filter(r);for(var y=g.length,b=new Array(y),x=new Array(y),v=0;v<y;++v){b[v]=v;var _=new Array(y),w=g[v].map(function(t){return e[t]}),M=l([w]),k=0;t:for(var A=0;A<y;++A)if(_[A]=0,v!==A){for(var T=g[A],S=T.length,E=0;E<S;++E){var L=M(e[T[E]]);if(0!==L){L<0&&(_[A]=1,k+=1);continue t}}_[A]=1,k+=1}x[v]=[k,v,_]}x.sort(function(t,e){return e[0]-t[0]});for(var v=0;v<y;++v)for(var _=x[v],C=_[1],I=_[2],A=0;A<y;++A)I[A]&&(b[A]=C);for(var z=i(y),v=0;v<y;++v)z[v].push(b[v]),z[b[v]].push(v);for(var D={},P=n(p,!1),v=0;v<y;++v)for(var T=g[v],S=T.length,A=0;A<S;++A){var O=T[A],R=T[(A+1)%S],F=Math.min(O,R)+\":\"+Math.max(O,R);if(F in D){var j=D[F];z[j].push(v),z[v].push(j),P[O]=P[R]=!0}else D[F]=v}for(var N=[],B=n(y,-1),v=0;v<y;++v)b[v]!==v||a(g[v])?B[v]=-1:(N.push(v),B[v]=0);for(var d=[];N.length>0;){var U=N.pop(),V=z[U];h(V,function(t,e){return t-e});var H,q=V.length,G=B[U];if(0===G){var T=g[U];H=[T]}for(var v=0;v<q;++v){var Y=V[v];if(!(B[Y]>=0)&&(B[Y]=1^G,N.push(Y),0===G)){var T=g[Y];a(T)||(T.reverse(),H.push(T))}}0===G&&d.push(H)}return d}e.exports=a\n", ";var o=t(\"edges-to-adjacency-list\"),s=t(\"planar-dual\"),l=t(\"point-in-big-polygon\"),u=t(\"two-product\"),c=t(\"robust-sum\"),h=t(\"uniq\"),f=t(\"./lib/trim-leaves\")},{\"./lib/trim-leaves\":482,\"edges-to-adjacency-list\":127,\"planar-dual\":481,\"point-in-big-polygon\":485,\"robust-sum\":513,\"two-product\":539,uniq:543}],484:[function(t,e,r){\"use strict\";function n(t,e){this.x=t,this.y=e}e.exports=n,n.prototype={clone:function(){return new n(this.x,this.y)},add:function(t){return this.clone()._add(t)},sub:function(t){return this.clone()._sub(t)},mult:function(t){return this.clone()._mult(t)},div:function(t){return this.clone()._div(t)},rotate:function(t){return this.clone()._rotate(t)},matMult:function(t){return this.clone()._matMult(t)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(t){return this.x===t.x&&this.y===t.y},dist:function(t){return Math.sqrt(this.distSqr(t))},distSqr:function(t){var e=t.x-this.x,r=t.y-this.y;return e*e+r*r},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(t){return Math.atan2(this.y-t.y,this.x-t.x)},angleWith:function(t){return this.angleWithSep(t.x,t.y)},angleWithSep:function(t,e){return Math.atan2(this.x*e-this.y*t,this.x*t+this.y*e)},_matMult:function(t){var e=t[0]*this.x+t[1]*this.y,r=t[2]*this.x+t[3]*this.y;return this.x=e,this.y=r,this},_add:function(t){return this.x+=t.x,this.y+=t.y,this},_sub:function(t){return this.x-=t.x,this.y-=t.y,this},_mult:function(t){return this.x*=t,this.y*=t,this},_div:function(t){return this.x/=t,this.y/=t,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var t=this.y;return this.y=this.x,this.x=-t,this},_rotate:function(t){var e=Math.cos(t),r=Math.sin(t),n=e*this.x-r*this.y,i=r*this.x+e*this.y;return this.x=n,this.y=i,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},n.convert=function(t){return t instanceof n?t:Array.isArray(t)?new n(t[0],t[1]):t}},{}],485:[function(t,e,r){function n(){return!0}function i(t){return function(e,r){var i=t[e];return!!i&&!!i.queryPoint(r,n)}}function a(t){for(var e={},r=0;r<t.length;++r){var n=t[r],a=n[0][0],o=n[0][1],s=n[1][1],l=[Math.min(o,s),Math.max(o,s)];a in e?e[a].push(l):e[a]=[l]}for(var u={},c=Object.keys(e),r=0;r<c.length;++r){var h=e[c[r]];u[c[r]]=d(h)}return i(u)}function o(t,e){return function(r){var n=p.le(e,r[0]);if(n<0)return 1;var i=t[n];if(!i){if(!(n>0&&e[n]===r[0]))return 1;i=t[n-1]}for(var a=1;i;){var o=i.key,s=h(r,o[0],o[1]);if(o[0][0]<o[1][0])if(s<0)i=i.left;else{if(!(s>0))return 0;a=-1,i=i.right}else if(s>0)i=i.left;else{if(!(s<0))return 0;a=1,i=i.right}}return a}}function s(t){return 1}function l(t){return function(e){return t(e[0],e[1])?0:1}}function u(t,e){return function(r){return t(r[0],r[1])?0:e(r)}}function c(t){for(var e=t.length,r=[],n=[],i=0;i<e;++i)for(var c=t[i],h=c.length,d=h-1,p=0;p<h;d=p++){var m=c[d],v=c[p];m[0]===v[0]?n.push([m,v]):r.push([m,v])}if(0===r.length)return 0===n.length?s:l(a(n));var g=f(r),y=o(g.slabs,g.coordinates);return 0===n.length?y:u(a(n),y)}e.exports=c;var h=t(\"robust-orientation\")[3],f=t(\"slab-decomposition\"),d=t(\"interval-tree-1d\"),p=t(\"binary-search-bounds\")},{\"binary-search-bounds\":66,\"interval-tree-1d\":291,\"robust-orientation\":508,\"slab-decomposition\":525}],486:[function(t,e,r){\"use strict\";function n(t,e,r,n,s){i.length<n.length&&(i=new Float64Array(n.length),a=new Float64Array(n.length),o=new Float64Array(n.length));for(var l=0;l<n.length;++l)i[l]=t[l]-n[l],a[l]=e[l]-t[l],o[l]=r[l]-t[l];for(var u=0,c=0,h=0,f=0,d=0,p=0,l=0;l<n.length;++l){var m=a[l],v=o[l],g=i[l];u+=m*m,c+=m*v,h+=v*v,f+=g*m,d+=g*v,p+=g*g}var y,b=Math.abs(u*h-c*c),x=c*d-h*f,_=c*f-u*d;if(x+_<=b)if(x<0)_<0&&f<0?(_=0,-f>=u?(x=1,y=u+2*f+p):(x=-f/u,y=f*x+p)):(x=0,d>=0?(_=0,y=p):-d>=h?(_=1,y=h+2*d+p):(_=-d/h,y=d*_+p));else if(_<0)_=0,f>=0?(x=0,y=p):-f>=u?(x=1,y=u+2*f+p):(x=-f/u,y=f*x+p);else{var w=1/b;x*=w,_*=w,y=x*(u*x+c*_+2*f)+_*(c*x+h*_+2*d)+p}else{var M,k,A,T;x<0?(M=c+f,k=h+d,k>M?(A=k-M,T=u-2*c+h,A>=T?(x=1,_=0,y=u+2*f+p):(x=A/T,_=1-x,y=x*(u*x+c*_+2*f)+_*(c*x+h*_+2*d)+p)):(x=0,k<=0?(_=1,y=h+2*d+p):d>=0?(_=0,y=p):(_=-d/h,y=d*_+p))):_<0?(M=c+d,k=u+f,k>M?(A=k-M,T=u-2*c+h,A>=T?(_=1,x=0,y=h+2*d+p):(_=A/T,x=1-_,y=x*(u*x+c*_+2*f)+_*(c*x+h*_+2*d)+p)):(_=0,k<=0?(x=1,y=u+2*f+p):f>=0?(x=0,y=p):(x=-f/u,y=f*x+p))):(A=h+d-c-f,A<=0?(x=0,_=1,y=h+2*d+p):(T=u-2*c+h,A>=T?(x=1,_=0,y=u+2*f+p):(x=A/T,_=1-x,y=x*(u*x+c*_+2*f)+_*(c*x+h*_+2*d)+p)))}for(var S=1-x-_,l=0;l<n.length;++l)s[l]=S*t[l]+x*e[l]+_*r[l];return y<0?0:y}var i=new Float64Array(4),a=new Float64Array(4),o=new Float64Array(4);e.exports=n},{}],487:[function(t,e,r){function n(){throw new Error(\"setTimeout has not been defined\")}function i(){throw new Error(\"clearTimeout has not been defined\")}function a(t){if(h===setTimeout)return setTimeout(t,0);if((h===n||!h)&&setTimeout)return h=setTimeout,setTimeout(t,0);try{return h(t,0)}catch(e){try{return h.call(null,t,0)}catch(e){return h.call(this,t,0)}}}function o(t){if(f===clearTimeout)return clearTimeout(t);if((f===i||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(t);try{return f(t)}catch(e){try{return f.call(null,t)}catch(e){return f.call(this,t)}}}function s(){v&&p&&(v=!1,p.length?m=p.concat(m):g=-1,m.length&&l())}function l(){if(!v){var t=a(s);v=!0;for(var e=m.length;e;){for(p=m,m=[];++g<e;)p&&p[g].run();g=-1,e=m.length}p=null,v=!1,o(t)}}function u(t,e){this.fun=t,this.array=e}function c(){}var h,f,d=e.exports={};!function(){try{h=\"function\"==typeof setTimeout?setTimeout:n}catch(t){h=n}try{f=\"function\"==typeof clearTimeout?clearTimeout:i}catch(t){f=i}}();var p,m=[],v=!1,g=-1;d.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];m.push(new u(t,e)),1!==m.length||v||a(l)},u.prototype.run=function(){this.fun.apply(null,this.array)},d.title=\"browser\",d.browser=!0,d.env={},d.argv=[],d.version=\"\",d.versions={},d.on=c,d.addListener=c,d.once=c,d.off=c,d.removeListener=c,d.removeAllListeners=c,d.emit=c,d.prependListener=c,d.prependOnceListener=c,d.listeners=function(t){return[]},d.binding=function(t){throw new Error(\"process.binding is not supported\")},d.cwd=function(){return\"/\"},d.chdir=function(t){throw new Error(\"process.chdir is not supported\")},d.umask=function(){return 0}},{}],488:[function(e,r,n){(function(e){!function(i){function a(t){throw new RangeError(P[t])}function o(t,e){for(var r=t.length,n=[];r--;)n[r]=e(t[r]);return n}function s(t,e){var r=t.split(\"@\"),n=\"\";return r.length>1&&(n=r[0]+\"@\",t=r[1]),t=t.replace(D,\".\"),n+o(t.split(\".\"),e).join(\".\")}function l(t){for(var e,r,n=[],i=0,a=t.length;i<a;)e=t.charCodeAt(i++),e>=55296&&e<=56319&&i<a?(r=t.charCodeAt(i++),56320==(64512&r)?n.push(((1023&e)<<10)+(1023&r)+65536):(n.push(e),i--)):n.push(e);return n}function u(t){return o(t,function(t){var e=\"\";return t>65535&&(t-=65536,e+=F(t>>>10&1023|55296),t=56320|1023&t),e+=F(t)}).join(\"\")}function c(t){return t-48<10?t-22:t-65<26?t-65:t-97<26?t-97:M}function h(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function f(t,e,r){var n=0;for(t=r?R(t/S):t>>1,t+=R(t/e);t>O*A>>1;n+=M)t=R(t/O);return R(n+(O+1)*t/(t+T))}function d(t){var e,r,n,i,o,s,l,h,d,p,m=[],v=t.length,g=0,y=L,b=E;for(r=t.lastIndexOf(C),r<0&&(r=0),n=0;n<r;++n)t.charCodeAt(n)>=128&&a(\"not-basic\"),m.push(t.charCodeAt(n));for(i=r>0?r+1:0;i<v;){for(o=g,s=1,l=M;i>=v&&a(\"invalid-input\"),h=c(t.charCodeAt(i++)),(h>=M||h>R((w-g)/s))&&a(\"overflow\"),g+=h*s,d=l<=b?k:l>=b+A?A:l-b,!(h<d);l+=M)p=M-d,s>R(w/p)&&a(\"overflow\"),s*=p;e=m.length+1,b=f(g-o,e,0==o),R(g/e)>w-y&&a(\"overflow\"),y+=R(g/e),g%=e,m.splice(g++,0,y)}return u(m)}function p(t){var e,r,n,i,o,s,u,c,d,p,m,v,g,y,b,x=[];for(t=l(t),v=t.length,e=L,r=0,o=E,s=0;s<v;++s)(m=t[s])<128&&x.push(F(m));for(n=i=x.length,i&&x.push(C);n<v;){for(u=w,s=0;s<v;++s)(m=t[s])>=e&&m<u&&(u=m);for(g=n+1,u-e>R((w-r)/g)&&a(\"overflow\"),r+=(u-e)*g,e=u,s=0;s<v;++s)if(m=t[s],m<e&&++r>w&&a(\"overflow\"),m==e){for(c=r,d=M;p=d<=o?k:d>=o+A?A:d-o,!(c<p);d+=M)b=c-p,y=M-p,x.push(F(h(p+b%y,0))),c=R(b/y);x.push(F(h(c,0))),o=f(r,g,n==i),r=0,++n}++r,++e}return x.join(\"\")}function m(t){return s(t,function(t){return I.test(t)?d(t.slice(4).toLowerCase()):t})}function v(t){return s(t,function(t){return z.test(t)?\"xn--\"+p(t):t})}var g=\"object\"==typeof n&&n&&!n.nodeType&&n,y=\"object\"==typeof r&&r&&!r.nodeType&&r,b=\"object\"==typeof e&&e;b.global!==b&&b.window!==b&&b.self!==b||(i=b);var x,_,w=2147483647,M=36,k=1,A=26,T=38,S=700,E=72,L=128,C=\"-\",I=/^xn--/,z=/[^\\x20-\\x7E]/,D=/[\\x2E\\u3002\\uFF0E\\uFF61]/g,P={overflow:\"Overflow: input needs wider integers to process\",\"not-basic\":\"Illegal input >= 0x80 (not a basic code point)\",\"invalid-input\":\"Invalid input\"},O=M-k,R=Math.floor,F=String.fromCharCode;if(x={version:\"1.4.1\",ucs2:{decode:l,encode:u},decode:d,encode:p,toASCII:v,toUnicode:m},\"function\"==typeof t&&\"object\"==typeof t.amd&&t.amd)t(\"punycode\",function(){return x});else if(g&&y)if(r.exports==g)y.exports=x;else for(_ in x)x.hasOwnProperty(_)&&(g[_]=x[_]);else i.punycode=x}(this)}).call(this,\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{}],489:[function(t,e,r){e.exports=t(\"gl-quat/slerp\")},{\"gl-quat/slerp\":231}],490:[function(t,e,r){\"use strict\";function n(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.exports=function(t,e,r,a){e=e||\"&\",r=r||\"=\";var o={};if(\"string\"!=typeof t||0===t.length)return o;var s=/\\+/g;t=t.split(e);var l=1e3;a&&\"number\"==typeof a.maxKeys&&(l=a.maxKeys);var u=t.length;l>0&&u>l&&(u=l);for(var c=0;c<u;++c){var h,f,d,p,m=t[c].replace(s,\"%20\"),v=m.indexOf(r);v>=0?(h=m.substr(0,v),f=m.substr(v+1)):(h=m,f=\"\"),d=decodeURIComponent(h),p=decodeURIComponent(f),n(o,d)?i(o[d])?o[d].push(p):o[d]=[o[d],p]:o[d]=p}return o};var i=Array.isArray||function(t){return\"[object Array]\"===Object.prototype.toString.call(t)}},{}],491:[function(t,e,r){\"use strict\";function n(t,e){if(t.map)return t.map(e);for(var r=[],n=0;n<t.length;n++)r.push(e(t[n],n));return r}var i=function(t){switch(typeof t){case\"string\":return t;case\"boolean\":return t?\"true\":\"false\";case\"number\":return isFinite(t)?t:\"\";default:return\"\"}};e.exports=function(t,e,r,s){return e=e||\"&\",r=r||\"=\",null===t&&(t=void 0),\"object\"==typeof t?n(o(t),function(o){var s=encodeURIComponent(i(o))+r;return a(t[o])?n(t[o],function(t){return s+encodeURIComponent(i(t))}).join(e):s+encodeURIComponent(i(t[o]))}).join(e):s?encodeURIComponent(i(s))+r+encodeURIComponent(i(t)):\"\"};var a=Array.isArray||function(t){return\"[object Array]\"===Object.prototype.toString.call(t)},o=Object.keys||function(t){var e=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.push(r);return e}},{}],492:[function(t,e,r){\"use strict\";r.decode=r.parse=t(\"./decode\"),r.encode=r.stringify=t(\"./encode\")},{\"./decode\":490,\"./encode\":491}],493:[function(t,e,r){\"use strict\";function n(t,e,r,o,s){for(r=r||0,o=o||t.length-1,s=s||a;o>r;){if(o-r>600){var l=o-r+1,u=e-r+1,c=Math.log(l),h=.5*Math.exp(2*c/3),f=.5*Math.sqrt(c*h*(l-h)/l)*(u-l/2<0?-1:1);n(t,e,Math.max(r,Math.floor(e-u*h/l+f)),Math.min(o,Math.floor(e+(l-u)*h/l+f)),s)}var d=t[e],p=r,m=o;for(i(t,r,e),s(t[o],d)>0&&i(t,r,o);p<m;){for(i(t,p,m),p++,m--;s(t[p],d)<0;)p++;for(;s(t[m],d)>0;)m--}0===s(t[r],d)?i(t,r,m):(m++,i(t,m,o)),m<=e&&(r=m+1),e<=m&&(o=m-1)}}function i(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function a(t,e){return t<e?-1:t>e?1:0}e.exports=n},{}],494:[function(t,e,r){\"use strict\";function n(t,e){for(var r=t.length,n=new Array(r),a=0;a<r;++a)n[a]=i(t[a],e[a]);return n}var i=t(\"big-rat/add\");e.exports=n},{\"big-rat/add\":50}],495:[function(t,e,r){\"use strict\";function n(t){for(var e=new Array(t.length),r=0;r<t.length;++r)e[r]=i(t[r]);return e}e.exports=n;var i=t(\"big-rat\")},{\"big-rat\":53}],496:[function(t,e,r){\"use strict\";function n(t,e){for(var r=i(e),n=t.length,o=new Array(n),s=0;s<n;++s)o[s]=a(t[s],r);return o}var i=t(\"big-rat\"),a=t(\"big-rat/mul\");e.exports=n},{\"big-rat\":53,\"big-rat/mul\":62}],497:[function(t,e,r){\"use strict\";function n(t,e){for(var r=t.length,n=new Array(r),a=0;a<r;++a)n[a]=i(t[a],e[a]);return n}var i=t(\"big-rat/sub\");e.exports=n},{\"big-rat/sub\":64}],498:[function(t,e,r){\"use strict\";function n(t){t.sort(a);for(var e=t.length,r=0,n=0;n<e;++n){var s=t[n],l=o(s);if(0!==l){if(r>0){var u=t[r-1];if(0===i(s,u)&&o(u)!==l){r-=1;continue}}t[r++]=s}}return t.length=r,t}var i=t(\"compare-cell\"),a=t(\"compare-oriented-cell\"),o=t(\"cell-orientation\");e.exports=n},{\"cell-orientation\":85,\"compare-cell\":101,\"compare-oriented-cell\":102}],499:[function(e,r,n){!function(e,i){\"object\"==typeof n&&void 0!==r?r.exports=i():\"function\"==typeof t&&t.amd?t(i):e.createREGL=i()}(this,function(){\"use strict\";function t(t){return\"undefined\"!=typeof btoa?btoa(t):\"base64:\"+t}function e(t){var e=new Error(\"(regl) \"+t);throw console.error(e),e}function r(t,r){t||e(r)}function n(t){return t?\": \"+t:\"\"}function i(t,r,i){t in r||e(\"unknown parameter (\"+t+\")\"+n(i)+\". possible values: \"+Object.keys(r).join())}function a(t,r){Qt(t)||e(\"invalid parameter type\"+n(r)+\". must be a typed array\")}function o(t,r,i){typeof t!==r&&e(\"invalid parameter type\"+n(i)+\". expected \"+r+\", got \"+typeof t)}function s(t,r){t>=0&&(0|t)===t||e(\"invalid parameter type, (\"+t+\")\"+n(r)+\". must be a nonnegative integer\")}function l(t,r,i){r.indexOf(t)<0&&e(\"invalid value\"+n(i)+\". must be one of: \"+r)}function u(t){Object.keys(t).forEach(function(t){te.indexOf(t)<0&&e('invalid regl constructor argument \"'+t+'\". must be one of '+te)})}function c(t,e){for(t+=\"\";t.length<e;)t=\" \"+t;return t}function h(){this.name=\"unknown\",this.lines=[],this.index={},this.hasErrors=!1}function f(t,e){this.number=t,this.line=e,this.errors=[]}function d(t,e,r){this.file=t,this.line=e,this.message=r}function p(){var t=new Error,e=(t.stack||t).toString(),r=/compileProcedure.*\\n\\s*at.*\\((.*)\\)/.exec(e);if(r)return r[1];var n=/compileProcedure.*\\n\\s*at\\s+(.*)(\\n|$)/.exec(e);return n?n[1]:\"unknown\"}function m(){var t=new Error,e=(t.stack||t).toString(),r=/at REGLCommand.*\\n\\s+at.*\\((.*)\\)/.exec(e);if(r)return r[1];var n=/at REGLCommand.*\\n\\s+at\\s+(.*)\\n/.exec(e);return n?n[1]:\"unknown\"}function v(e,r){var n=e.split(\"\\n\"),i=1,a=0,o={unknown:new h,0:new h};o.unknown.name=o[0].name=r||p(),o.unknown.lines.push(new f(0,\"\"));for(var s=0;s<n.length;++s){var l=n[s],u=/^\\s*\\#\\s*(\\w+)\\s+(.+)\\s*$/.exec(l);if(u)switch(u[1]){case\"line\":var c=/(\\d+)(\\s+\\d+)?/.exec(u[2]);c&&(i=0|c[1],c[2]&&((a=0|c[2])in o||(o[a]=new h)));break;case\"define\":var d=/SHADER_NAME(_B64)?\\s+(.*)$/.exec(u[2]);d&&(o[a].name=d[1]?t(d[2]):d[2])}o[a].lines.push(new f(i++,l))}return Object.keys(o).forEach(function(t){var e=o[t];e.lines.forEach(function(t){e.index[t.number]=t})}),o}function g(t){var e=[];return t.split(\"\\n\").forEach(function(t){if(!(t.length<5)){var r=/^ERROR\\:\\s+(\\d+)\\:(\\d+)\\:\\s*(.*)$/.exec(t);r?e.push(new d(0|r[1],0|r[2],r[3].trim())):t.length>0&&e.push(new d(\"unknown\",0,t))}}),e}function y(t,e){e.forEach(function(e){var r=t[e.file];if(r){var n=r.index[e.line];if(n)return n.errors.push(e),void(r.hasErrors=!0)}t.unknown.hasErrors=!0,t.unknown.lines[0].errors.push(e)})}function b(t,e,n,i,a){if(!t.getShaderParameter(e,t.COMPILE_STATUS)){var o=t.getShaderInfoLog(e),s=i===t.FRAGMENT_SHADER?\"fragment\":\"vertex\";T(n,\"string\",s+\" shader source must be a string\",a);var l=v(n,a),u=g(o);y(l,u),Object.keys(l).forEach(function(t){function e(t,e){n.push(t),i.push(e||\"\")}var r=l[t];if(r.hasErrors){var n=[\"\"],i=[\"\"];e(\"file number \"+t+\": \"+r.name+\"\\n\",\"color:red;text-decoration:underline;font-weight:bold\"),r.lines.forEach(function(t){if(t.errors.length>0){e(c(t.number,4)+\"| \",\"background-color:yellow; font-weight:bold\"),e(t.line+\"\\n\",\"color:red; background-color:yellow; font-weight:bold\");var r=0;t.errors.forEach(function(n){var i=n.message,a=/^\\s*\\'(.*)\\'\\s*\\:\\s*(.*)$/.exec(i);if(a){var o=a[1];switch(i=a[2],o){case\"assign\":o=\"=\"}r=Math.max(t.line.indexOf(o,r),0)}else r=0;e(c(\"| \",6)),e(c(\"^^^\",r+3)+\"\\n\",\"font-weight:bold\"),e(c(\"| \",6)),e(i+\"\\n\",\"font-weight:bold\")}),e(c(\"| \",6)+\"\\n\")}else e(c(t.number,4)+\"| \"),e(t.line+\"\\n\",\"color:red\")}),\"undefined\"!=typeof document?(i[0]=n.join(\"%c\"),console.log.apply(console,i)):console.log(n.join(\"\"))}}),r.raise(\"Error compiling \"+s+\" shader, \"+l[0].name)}}function x(t,e,n,i,a){if(!t.getProgramParameter(e,t.LINK_STATUS)){var o=t.getProgramInfoLog(e),s=v(n,a),l=v(i,a),u='Error linking program with vertex shader, \"'+l[0].name+'\", and fragment shader \"'+s[0].name+'\"';\"undefined\"!=typeof document?console.log(\"%c\"+u+\"\\n%c\"+o,\"color:red;text-decoration:underline;font-weight:bold\",\"color:red\"):console.log(u+\"\\n\"+o),r.raise(u)}}function _(t){t._commandRef=p()}function w(t,e,r,n){function i(t){return t?n.id(t):0}function a(t,e){Object.keys(e).forEach(function(e){t[n.id(e)]=!0})}_(t),t._fragId=i(t.static.frag),t._vertId=i(t.static.vert);var o=t._uniformSet={};a(o,e.static),a(o,e.dynamic);var s=t._attributeSet={};a(s,r.static),a(s,r.dynamic),t._hasCount=\"count\"in t.static||\"count\"in t.dynamic||\"elements\"in t.static||\"elements\"in t.dynamic}function M(t,r){var n=m();e(t+\" in command \"+(r||p())+(\"unknown\"===n?\"\":\" called from \"+n))}function k(t,e,r){t||M(e,r||p())}function A(t,e,r,i){t in e||M(\"unknown parameter (\"+t+\")\"+n(r)+\". possible values: \"+Object.keys(e).join(),i||p())}function T(t,e,r,i){typeof t!==e&&M(\"invalid parameter type\"+n(r)+\". expected \"+e+\", got \"+typeof t,i||p())}function S(t){t()}function E(t,e,r){t.texture?l(t.texture._texture.internalformat,e,\"unsupported texture format for attachment\"):l(t.renderbuffer._renderbuffer.format,r,\"unsupported renderbuffer format for attachment\")}function L(t,e){return t===ue||t===le||t===ce?2:t===he?4:fe[t]*e}function C(t){return!(t&t-1||!t)}function I(t,e,n){var i,a=e.width,o=e.height,s=e.channels;r(a>0&&a<=n.maxTextureSize&&o>0&&o<=n.maxTextureSize,\"invalid texture shape\"),t.wrapS===ee&&t.wrapT===ee||r(C(a)&&C(o),\"incompatible wrap mode for texture, both width and height must be power of 2\"),1===e.mipmask?1!==a&&1!==o&&r(t.minFilter!==ne&&t.minFilter!==ae&&t.minFilter!==ie&&t.minFilter!==oe,\"min filter requires mipmap\"):(r(C(a)&&C(o),\"texture must be a square power of 2 to support mipmapping\"),r(e.mipmask===(a<<1)-1,\"missing or incomplete mipmap data\")),e.type===se&&(n.extensions.indexOf(\"oes_texture_float_linear\")<0&&r(t.minFilter===re&&t.magFilter===re,\"filter not supported, must enable oes_texture_float_linear\"),r(!t.genMipmaps,\"mipmap generation not supported with float textures\"));var l=e.images;for(i=0;i<16;++i)if(l[i]){var u=a>>i,c=o>>i;r(e.mipmask&1<<i,\"missing mipmap data\");var h=l[i];if(r(h.width===u&&h.height===c,\"invalid shape for mip images\"),r(h.format===e.format&&h.internalformat===e.internalformat&&h.type===e.type,\"incompatible type for mip image\"),h.compressed);else if(h.data){var f=Math.ceil(L(h.type,s)*u/h.unpackAlignment)*h.unpackAlignment;r(h.data.byteLength===f*c,\"invalid data for image, buffer size is inconsistent with image format\")}else h.element||h.copy}else t.genMipmaps||r(0==(e.mipmask&1<<i),\"extra mipmap data\");e.compressed&&r(!t.genMipmaps,\"mipmap generation for compressed images not supported\")}function z(t,e,n,i){var a=t.width,o=t.height,s=t.channels;r(a>0&&a<=i.maxTextureSize&&o>0&&o<=i.maxTextureSize,\"invalid texture shape\"),r(a===o,\"cube map must be square\"),r(e.wrapS===ee&&e.wrapT===ee,\"wrap mode not supported by cube map\");for(var l=0;l<n.length;++l){var u=n[l];r(u.width===a&&u.height===o,\"inconsistent cube map face shape\"),e.genMipmaps&&(r(!u.compressed,\"can not generate mipmap for compressed textures\"),r(1===u.mipmask,\"can not specify mipmaps and generate mipmaps\"));for(var c=u.images,h=0;h<16;++h){var f=c[h];if(f){var d=a>>h,p=o>>h;r(u.mipmask&1<<h,\"missing mipmap data\"),r(f.width===d&&f.height===p,\"invalid shape for mip images\"),r(f.format===t.format&&f.internalformat===t.internalformat&&f.type===t.type,\"incompatible type for mip image\"),f.compressed||(f.data?r(f.data.byteLength===d*p*Math.max(L(f.type,s),f.unpackAlignment),\"invalid data for image, buffer size is inconsistent with image format\"):f.element||f.copy)}}}}function D(t,e){this.id=pe++,this.type=t,this.data=e}function P(t){return t.replace(/\\\\/g,\"\\\\\\\\\").replace(/\"/g,'\\\\\"')}function O(t){if(0===t.length)return[];var e=t.charAt(0),r=t.charAt(t.length-1);if(t.length>1&&e===r&&('\"'===e||\"'\"===e))return['\"'+P(t.substr(1,t.length-2))+'\"'];var n=/\\[(false|true|null|\\d+|'[^']*'|\"[^\"]*\")\\]/.exec(t);if(n)return O(t.substr(0,n.index)).concat(O(n[1])).concat(O(t.substr(n.index+n[0].length)));var i=t.split(\".\");if(1===i.length)return['\"'+P(t)+'\"'];for(var a=[],o=0;o<i.length;++o)a=a.concat(O(i[o]));return a}function R(t){return\"[\"+O(t).join(\"][\")+\"]\"}function F(t,e){return new D(t,R(e+\"\"))}function j(t){return\"function\"==typeof t&&!t._reglType||t instanceof D}function N(t,e){return\"function\"==typeof t?new D(me,t):t}function B(){var t={\"\":0},e=[\"\"];return{id:function(r){var n=t[r];return n||(n=t[r]=e.length,e.push(r),n)},str:function(t){return e[t]}}}function U(t,e,r){function n(){var e=window.innerWidth,n=window.innerHeight;if(t!==document.body){var i=t.getBoundingClientRect();e=i.right-i.left,n=i.bottom-i.top}a.width=r*e,a.height=r*n,$t(a.style,{width:e+\"px\",height:n+\"px\"})}function i(){window.removeEventListener(\"resize\",n),t.removeChild(a)}var a=document.createElement(\"canvas\");return $t(a.style,{border:0,margin:0,padding:0,top:0,left:0}),t.appendChild(a),t===document.body&&(a.style.position=\"absolute\",$t(t.style,{margin:0,padding:0})),window.addEventListener(\"resize\",n,!1),n(),{canvas:a,onDestroy:i}}function V(t,e){function r(r){try{return t.getContext(r,e)}catch(t){return null}}return r(\"webgl\")||r(\"experimental-webgl\")||r(\"webgl-experimental\")}function H(t){return\"string\"==typeof t.nodeName&&\"function\"==typeof t.appendChild&&\"function\"==typeof t.getBoundingClientRect}function q(t){return\"function\"==typeof t.drawArrays||\"function\"==typeof t.drawElements}function G(t){return\"string\"==typeof t?t.split():(de(Array.isArray(t),\"invalid extension array\"),t)}function Y(t){return\"string\"==typeof t?(de(\"undefined\"!=typeof document,\"not supported outside of DOM\"),document.querySelector(t)):t}function W(t){var e,r,n,i,a=t||{},o={},s=[],l=[],u=\"undefined\"==typeof window?1:window.devicePixelRatio,c=!1,h=function(t){t&&de.raise(t)},f=function(){};if(\"string\"==typeof a?(de(\"undefined\"!=typeof document,\"selector queries only supported in DOM enviroments\"),e=document.querySelector(a),de(e,\"invalid query string for element\")):\"object\"==typeof a?H(a)?e=a:q(a)?(i=a,n=i.canvas):(de.constructor(a),\"gl\"in a?i=a.gl:\"canvas\"in a?n=Y(a.canvas):\"container\"in a&&(r=Y(a.container)),\"attributes\"in a&&(o=a.attributes,de.type(o,\"object\",\"invalid context attributes\")),\"extensions\"in a&&(s=G(a.extensions)),\"optionalExtensions\"in a&&(l=G(a.optionalExtensions)),\"onDone\"in a&&(de.type(a.onDone,\"function\",\"invalid or missing onDone callback\"),h=a.onDone),\"profile\"in a&&(c=!!a.profile),\"pixelRatio\"in a&&(u=+a.pixelRatio,de(u>0,\"invalid pixel ratio\"))):de.raise(\"invalid arguments to regl\"),e&&(\"canvas\"===e.nodeName.toLowerCase()?n=e:r=e),!i){if(!n){de(\"undefined\"!=typeof document,\"must manually specify webgl context outside of DOM environments\");var d=U(r||document.body,h,u);if(!d)return null;n=d.canvas,f=d.onDestroy}i=V(n,o)}return i?{gl:i,canvas:n,container:r,extensions:s,optionalExtensions:l,pixelRatio:u,profile:c,onDone:h,onDestroy:f}:(f(),h(\"webgl not supported, try upgrading your browser or graphics drivers http://get.webgl.org\"),null)}function X(t,e){function r(e){de.type(e,\"string\",\"extension name must be string\");var r,i=e.toLowerCase();try{r=n[i]=t.getExtension(i)}catch(t){}return!!r}for(var n={},i=0;i<e.extensions.length;++i){var a=e.extensions[i];if(!r(a))return e.onDestroy(),e.onDone('\"'+a+'\" extension is not supported by the current WebGL context, try upgrading your system or a different browser'),null}return e.optionalExtensions.forEach(r),{extensions:n,restore:function(){Object.keys(n).forEach(function(t){if(!r(t))throw new Error(\"(regl): error restoring extension \"+t)})}}}function Z(t){return!!t&&\"object\"==typeof t&&Array.isArray(t.shape)&&Array.isArray(t.stride)&&\"number\"==typeof t.offset&&t.shape.length===t.stride.length&&(Array.isArray(t.data)||Qt(t.data))}function J(t,e){for(var r=Array(t),n=0;n<t;++n)r[n]=e(n);return r}function K(t){for(var e=16;e<=1<<28;e*=16)if(t<=e)return e;return 0}function Q(t){var e,r;return e=(t>65535)<<4,t>>>=e,r=(t>255)<<3,t>>>=r,e|=r,r=(t>15)<<2,t>>>=r,e|=r,r=(t>3)<<1,t>>>=r,(e|=r)|t>>1}function $(t){var e=K(t),r=Ee[Q(e)>>2];return r.length>0?r.pop():new ArrayBuffer(e)}function tt(t){Ee[Q(t.byteLength)>>2].push(t)}function et(t,e){var r=null;switch(t){case _e:r=new Int8Array($(e),0,e);break;case we:r=new Uint8Array($(e),0,e);break;case Me:r=new Int16Array($(2*e),0,e);break;case ke:r=new Uint16Array($(2*e),0,e);break;case Ae:r=new Int32Array($(4*e),0,e);break;case Te:r=new Uint32Array($(4*e),0,e);break;case Se:r=new Float32Array($(4*e),0,e);break;default:return null}return r.length!==e?r.subarray(0,e):r}function rt(t){tt(t.buffer)}function nt(t,e,r){for(var n=0;n<e;++n)r[n]=t[n]}function it(t,e,r,n){for(var i=0,a=0;a<e;++a)for(var o=t[a],s=0;s<r;++s)n[i++]=o[s]}function at(t,e,r,n,i,a){for(var o=a,s=0;s<e;++s)for(var l=t[s],u=0;u<r;++u)for(var c=l[u],h=0;h<n;++h)i[o++]=c[h]}function ot(t,e,r,n,i){for(var a=1,o=r+1;o<e.length;++o)a*=e[o];var s=e[r];if(e.length-r==4){var l=e[r+1],u=e[r+2],c=e[r+3];for(o=0;o<s;++o)at(t[o],l,u,c,n,i),i+=a}else for(o=0;o<s;++o)ot(t[o],e,r+1,n,i),i+=a}function st(t,e,r,n){var i=1;if(e.length)for(var a=0;a<e.length;++a)i*=e[a];else i=0;var o=n||Le.allocType(r,i);switch(e.length){case 0:break;case 1:nt(t,e[0],o);break;case 2:it(t,e[0],e[1],o);break;case 3:at(t,e[0],e[1],e[2],o,0);break;default:ot(t,e,0,o,0)}return o}function lt(t){for(var e=[],r=t;r.length;r=r[0])e.push(r.length);return e}function ut(t){return 0|Kt[Object.prototype.toString.call(t)]}function ct(t,e){for(var r=0;r<e.length;++r)t[r]=e[r]}function ht(t,e,r,n,i,a,o){for(var s=0,l=0;l<r;++l)for(var u=0;u<n;++u)t[s++]=e[i*l+a*u+o]}function ft(t,e,r){function n(e){this.id=h++,this.buffer=t.createBuffer(),this.type=e,this.usage=Oe,this.byteLength=0,this.dimension=1,this.dtype=Fe,this.persistentData=null,r.profile&&(this.stats={size:0})}function i(t,e){var r=d.pop();return r||(r=new n(t)),r.bind(),s(r,e,Re,0,1,!1),r}function a(t){d.push(t)}function o(e,r,n){e.byteLength=r.byteLength,t.bufferData(e.type,r,n)}function s(t,e,r,n,i,a){var s;if(t.usage=r,Array.isArray(e)){if(t.dtype=n||je,e.length>0){var l;if(Array.isArray(e[0])){s=Pe(e);for(var u=1,c=1;c<s.length;++c)u*=s[c];t.dimension=u,l=De(e,s,t.dtype),o(t,l,r),a?t.persistentData=l:Le.freeType(l)}else if(\"number\"==typeof e[0]){t.dimension=i;var h=Le.allocType(t.dtype,e.length);ct(h,e),o(t,h,r),a?t.persistentData=h:Le.freeType(h)}else Qt(e[0])?(t.dimension=e[0].length,t.dtype=n||ut(e[0])||je,l=De(e,[e.length,e[0].length],t.dtype),o(t,l,r),a?t.persistentData=l:Le.freeType(l)):de.raise(\"invalid buffer data\")}}else if(Qt(e))t.dtype=n||ut(e),t.dimension=i,o(t,e,r),a&&(t.persistentData=new Uint8Array(new Uint8Array(e.buffer)));else if(Z(e)){s=e.shape;var f=e.stride,d=e.offset,p=0,m=0,v=0,g=0;1===s.length?(p=s[0],m=1,v=f[0],g=0):2===s.length?(p=s[0],m=s[1],v=f[0],g=f[1]):de.raise(\"invalid shape\"),t.dtype=n||ut(e.data)||je,t.dimension=m;var y=Le.allocType(t.dtype,p*m);ht(y,e.data,p,m,v,g,d),o(t,y,r),a?t.persistentData=y:Le.freeType(y)}else de.raise(\"invalid buffer data\")}function l(r){e.bufferCount--;var n=r.buffer;de(n,\"buffer must not be deleted already\"),t.deleteBuffer(n),r.buffer=null,delete f[r.id]}function u(i,a,o,u){function c(e){var n=Oe,i=null,a=0,o=0,l=1;return Array.isArray(e)||Qt(e)||Z(e)?i=e:\"number\"==typeof e?a=0|e:e&&(de.type(e,\"object\",\"buffer arguments must be an object, a number or an array\"),\"data\"in e&&(de(null===i||Array.isArray(i)||Qt(i)||Z(i),\"invalid data for buffer\"),i=e.data),\"usage\"in e&&(de.parameter(e.usage,ze,\"invalid buffer usage\"),n=ze[e.usage]),\"type\"in e&&(de.parameter(e.type,Ie,\"invalid buffer type\"),o=Ie[e.type]),\"dimension\"in e&&(de.type(e.dimension,\"number\",\"invalid dimension\"),l=0|e.dimension),\"length\"in e&&(de.nni(a,\"buffer length must be a nonnegative integer\"),a=0|e.length)),p.bind(),i?s(p,i,n,o,l,u):(t.bufferData(p.type,a,n),p.dtype=o||Fe,p.usage=n,p.dimension=l,p.byteLength=a),r.profile&&(p.stats.size=p.byteLength*Ne[p.dtype]),c}function h(e,r){de(r+e.byteLength<=p.byteLength,\"invalid buffer subdata call, buffer is too small. Can't write data of size \"+e.byteLength+\" starting from offset \"+r+\" to a buffer of size \"+p.byteLength),t.bufferSubData(p.type,r,e)}function d(t,e){var r,n=0|(e||0);if(p.bind(),Array.isArray(t)){if(t.length>0)if(\"number\"==typeof t[0]){var i=Le.allocType(p.dtype,t.length);ct(i,t),h(i,n),Le.freeType(i)}else if(Array.isArray(t[0])||Qt(t[0])){r=Pe(t);var a=De(t,r,p.dtype);h(a,n),Le.freeType(a)}else de.raise(\"invalid buffer data\")}else if(Qt(t))h(t,n);else if(Z(t)){r=t.shape;var o=t.stride,s=0,l=0,u=0,f=0;1===r.length?(s=r[0],l=1,u=o[0],f=0):2===r.length?(s=r[0],l=r[1],u=o[0],f=o[1]):de.raise(\"invalid shape\");var d=Array.isArray(t.data)?p.dtype:ut(t.data),m=Le.allocType(d,s*l);ht(m,t.data,s,l,u,f,t.offset),h(m,n),Le.freeType(m)}else de.raise(\"invalid data for buffer subdata\");return c}e.bufferCount++;var p=new n(a);return f[p.id]=p,o||c(i),c._reglType=\"buffer\",c._buffer=p,c.subdata=d,r.profile&&(c.stats=p.stats),c.destroy=function(){l(p)},c}function c(){xe(f).forEach(function(e){e.buffer=t.createBuffer(),t.bindBuffer(e.type,e.buffer),t.bufferData(e.type,e.persistentData||e.byteLength,e.usage)})}var h=0,f={};n.prototype.bind=function(){t.bindBuffer(this.type,this.buffer)},n.prototype.destroy=function(){l(this)};var d=[];return r.profile&&(e.getTotalBufferSize=function(){var t=0;return Object.keys(f).forEach(function(e){t+=f[e].stats.size}),t}),{create:u,createStream:i,destroyStream:a,clear:function(){xe(f).forEach(l),d.forEach(l)},getBuffer:function(t){return t&&t._buffer instanceof n?t._buffer:null},restore:c,_initBuffer:s}}function dt(t,e,r,n){function i(t){this.id=h++,c[this.id]=this,this.buffer=t,this.primType=He,this.vertCount=0,this.type=0}function a(t){var e=d.pop();return e||(e=new i(r.create(null,Je,!0,!1)._buffer)),s(e,t,Ke,-1,-1,0,0),e}function o(t){d.push(t)}function s(n,i,a,o,s,l,u){if(n.buffer.bind(),i){var c=u;u||Qt(i)&&(!Z(i)||Qt(i.data))||(c=e.oes_element_index_uint?Ze:We),r._initBuffer(n.buffer,i,a,c,3)}else t.bufferData(Je,l,a),n.buffer.dtype=h||Ge,n.buffer.usage=a,n.buffer.dimension=3,n.buffer.byteLength=l;var h=u;if(!u){switch(n.buffer.dtype){case Ge:case qe:h=Ge;break;case We:case Ye:h=We;break;case Ze:case Xe:h=Ze;break;default:de.raise(\"unsupported type for element array\")}n.buffer.dtype=h}n.type=h,de(h!==Ze||!!e.oes_element_index_uint,\"32 bit element buffers not supported, enable oes_element_index_uint first\");var f=s;f<0&&(f=n.buffer.byteLength,h===We?f>>=1:h===Ze&&(f>>=2)),n.vertCount=f;var d=o;if(o<0){d=He;var p=n.buffer.dimension;1===p&&(d=Ue),2===p&&(d=Ve),3===p&&(d=He)}n.primType=d}function l(t){n.elementsCount--,de(null!==t.buffer,\"must not double destroy elements\"),delete c[t.id],t.buffer.destroy(),t.buffer=null}function u(t,e){function a(t){if(t)if(\"number\"==typeof t)o(t),u.primType=He,u.vertCount=0|t,u.type=Ge;else{var e=null,r=Qe,n=-1,i=-1,l=0,c=0;Array.isArray(t)||Qt(t)||Z(t)?e=t:(de.type(t,\"object\",\"invalid arguments for elements\"),\"data\"in t&&(e=t.data,de(Array.isArray(e)||Qt(e)||Z(e),\"invalid data for element buffer\")),\"usage\"in t&&(de.parameter(t.usage,ze,\"invalid element buffer usage\"),r=ze[t.usage]),\"primitive\"in t&&(de.parameter(t.primitive,Be,\"invalid element buffer primitive\"),n=Be[t.primitive]),\"count\"in t&&(de(\"number\"==typeof t.count&&t.count>=0,\"invalid vertex count for elements\"),i=0|t.count),\"type\"in t&&(de.parameter(t.type,f,\"invalid buffer type\"),c=f[t.type]),\"length\"in t?l=0|t.length:(l=i,c===We||c===Ye?l*=2:c!==Ze&&c!==Xe||(l*=4))),s(u,e,r,n,i,l,c)}else o(),u.primType=He,\n", "u.vertCount=0,u.type=Ge;return a}var o=r.create(null,Je,!0),u=new i(o._buffer);return n.elementsCount++,a(t),a._reglType=\"elements\",a._elements=u,a.subdata=function(t,e){return o.subdata(t,e),a},a.destroy=function(){l(u)},a}var c={},h=0,f={uint8:Ge,uint16:We};e.oes_element_index_uint&&(f.uint32=Ze),i.prototype.bind=function(){this.buffer.bind()};var d=[];return{create:u,createStream:a,destroyStream:o,getElements:function(t){return\"function\"==typeof t&&t._elements instanceof i?t._elements:null},clear:function(){xe(c).forEach(l)}}}function pt(t){for(var e=Le.allocType(er,t.length),r=0;r<t.length;++r)if(isNaN(t[r]))e[r]=65535;else if(t[r]===1/0)e[r]=31744;else if(t[r]===-1/0)e[r]=64512;else{$e[0]=t[r];var n=tr[0],i=n>>>31<<15,a=(n<<1>>>24)-127,o=n>>13&1023;if(a<-24)e[r]=i;else if(a<-14){var s=-14-a;e[r]=i+(o+1024>>s)}else e[r]=a>15?i+31744:i+(a+15<<10)+o}return e}function mt(t){return Array.isArray(t)||Qt(t)}function vt(t){return\"[object \"+t+\"]\"}function gt(t){return Array.isArray(t)&&(0===t.length||\"number\"==typeof t[0])}function yt(t){return!!Array.isArray(t)&&!(0===t.length||!mt(t[0]))}function bt(t){return Object.prototype.toString.call(t)}function xt(t){return bt(t)===dn}function _t(t){return bt(t)===pn}function wt(t){return bt(t)===mn}function Mt(t){return bt(t)===vn}function kt(t){if(!t)return!1;var e=bt(t);return gn.indexOf(e)>=0||(gt(t)||yt(t)||Z(t))}function At(t){return 0|Kt[Object.prototype.toString.call(t)]}function Tt(t,e){var r=e.length;switch(t.type){case Or:case Rr:case Fr:case jr:var n=Le.allocType(t.type,r);n.set(e),t.data=n;break;case wr:t.data=pt(e);break;default:de.raise(\"unsupported texture type, must specify a typed array\")}}function St(t,e){return Le.allocType(t.type===wr?jr:t.type,e)}function Et(t,e){t.type===wr?(t.data=pt(e),Le.freeType(e)):t.data=e}function Lt(t,e,r,n,i,a){for(var o=t.width,s=t.height,l=t.channels,u=o*s*l,c=St(t,u),h=0,f=0;f<s;++f)for(var d=0;d<o;++d)for(var p=0;p<l;++p)c[h++]=e[r*d+n*f+i*p+a];Et(t,c)}function Ct(t,e,r,n,i,a){var o;if(o=void 0!==bn[t]?bn[t]:fn[t]*yn[e],a&&(o*=6),i){for(var s=0,l=r;l>=1;)s+=o*l*l,l/=2;return s}return o*r*n}function It(t,e,r,n,i,a,o){function s(){this.internalformat=or,this.format=or,this.type=Or,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=0,this.width=0,this.height=0,this.channels=0}function l(t,e){t.internalformat=e.internalformat,t.format=e.format,t.type=e.type,t.compressed=e.compressed,t.premultiplyAlpha=e.premultiplyAlpha,t.flipY=e.flipY,t.unpackAlignment=e.unpackAlignment,t.colorSpace=e.colorSpace,t.width=e.width,t.height=e.height,t.channels=e.channels}function u(t,n){if(\"object\"==typeof n&&n){if(\"premultiplyAlpha\"in n&&(de.type(n.premultiplyAlpha,\"boolean\",\"invalid premultiplyAlpha\"),t.premultiplyAlpha=n.premultiplyAlpha),\"flipY\"in n&&(de.type(n.flipY,\"boolean\",\"invalid texture flip\"),t.flipY=n.flipY),\"alignment\"in n&&(de.oneOf(n.alignment,[1,2,4,8],\"invalid texture unpack alignment\"),t.unpackAlignment=n.alignment),\"colorSpace\"in n&&(de.parameter(n.colorSpace,j,\"invalid colorSpace\"),t.colorSpace=j[n.colorSpace]),\"type\"in n){var i=n.type;de(e.oes_texture_float||!(\"float\"===i||\"float32\"===i),\"you must enable the OES_texture_float extension in order to use floating point textures.\"),de(e.oes_texture_half_float||!(\"half float\"===i||\"float16\"===i),\"you must enable the OES_texture_half_float extension in order to use 16-bit floating point textures.\"),de(e.webgl_depth_texture||!(\"uint16\"===i||\"uint32\"===i||\"depth stencil\"===i),\"you must enable the WEBGL_depth_texture extension in order to use depth/stencil textures.\"),de.parameter(i,N,\"invalid texture type\"),t.type=N[i]}var a=t.width,o=t.height,s=t.channels,l=!1;\"shape\"in n?(de(Array.isArray(n.shape)&&n.shape.length>=2,\"shape must be an array\"),a=n.shape[0],o=n.shape[1],3===n.shape.length&&(s=n.shape[2],de(s>0&&s<=4,\"invalid number of channels\"),l=!0),de(a>=0&&a<=r.maxTextureSize,\"invalid width\"),de(o>=0&&o<=r.maxTextureSize,\"invalid height\")):(\"radius\"in n&&(a=o=n.radius,de(a>=0&&a<=r.maxTextureSize,\"invalid radius\")),\"width\"in n&&(a=n.width,de(a>=0&&a<=r.maxTextureSize,\"invalid width\")),\"height\"in n&&(o=n.height,de(o>=0&&o<=r.maxTextureSize,\"invalid height\")),\"channels\"in n&&(s=n.channels,de(s>0&&s<=4,\"invalid number of channels\"),l=!0)),t.width=0|a,t.height=0|o,t.channels=0|s;var u=!1;if(\"format\"in n){var c=n.format;de(e.webgl_depth_texture||!(\"depth\"===c||\"depth stencil\"===c),\"you must enable the WEBGL_depth_texture extension in order to use depth/stencil textures.\"),de.parameter(c,B,\"invalid texture format\");var h=t.internalformat=B[c];t.format=J[h],c in N&&(\"type\"in n||(t.type=N[c])),c in U&&(t.compressed=!0),u=!0}!l&&u?t.channels=fn[t.format]:l&&!u?t.channels!==hn[t.format]&&(t.format=t.internalformat=hn[t.channels]):u&&l&&de(t.channels===fn[t.format],\"number of channels inconsistent with specified format\")}}function c(e){t.pixelStorei(an,e.flipY),t.pixelStorei(on,e.premultiplyAlpha),t.pixelStorei(sn,e.colorSpace),t.pixelStorei(nn,e.unpackAlignment)}function h(){s.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function f(t,e){var n=null;if(kt(e)?n=e:e&&(de.type(e,\"object\",\"invalid pixel data type\"),u(t,e),\"x\"in e&&(t.xOffset=0|e.x),\"y\"in e&&(t.yOffset=0|e.y),kt(e.data)&&(n=e.data)),de(!t.compressed||n instanceof Uint8Array,\"compressed texture data must be stored in a uint8array\"),e.copy){de(!n,\"can not specify copy and data field for the same texture\");var a=i.viewportWidth,o=i.viewportHeight;t.width=t.width||a-t.xOffset,t.height=t.height||o-t.yOffset,t.needsCopy=!0,de(t.xOffset>=0&&t.xOffset<a&&t.yOffset>=0&&t.yOffset<o&&t.width>0&&t.width<=a&&t.height>0&&t.height<=o,\"copy texture read out of bounds\")}else if(n){if(Qt(n))t.channels=t.channels||4,t.data=n,\"type\"in e||t.type!==Or||(t.type=At(n));else if(gt(n))t.channels=t.channels||4,Tt(t,n),t.alignment=1,t.needsFree=!0;else if(Z(n)){var s=n.data;Array.isArray(s)||t.type!==Or||(t.type=At(s));var l,c,h,f,d,p,m=n.shape,v=n.stride;3===m.length?(h=m[2],p=v[2]):(de(2===m.length,\"invalid ndarray pixel data, must be 2 or 3D\"),h=1,p=1),l=m[0],c=m[1],f=v[0],d=v[1],t.alignment=1,t.width=l,t.height=c,t.channels=h,t.format=t.internalformat=hn[h],t.needsFree=!0,Lt(t,s,f,d,p,n.offset)}else if(xt(n)||_t(n))xt(n)?t.element=n:t.element=n.canvas,t.width=t.element.width,t.height=t.element.height,t.channels=4;else if(wt(n))t.element=n,t.width=n.naturalWidth,t.height=n.naturalHeight,t.channels=4;else if(Mt(n))t.element=n,t.width=n.videoWidth,t.height=n.videoHeight,t.channels=4;else if(yt(n)){var g=t.width||n[0].length,y=t.height||n.length,b=t.channels;b=mt(n[0][0])?b||n[0][0].length:b||1;for(var x=Ce.shape(n),_=1,w=0;w<x.length;++w)_*=x[w];var M=St(t,_);Ce.flatten(n,x,\"\",M),Et(t,M),t.alignment=1,t.width=g,t.height=y,t.channels=b,t.format=t.internalformat=hn[b],t.needsFree=!0}}else t.width=t.width||1,t.height=t.height||1,t.channels=t.channels||4;t.type===jr?de(r.extensions.indexOf(\"oes_texture_float\")>=0,\"oes_texture_float extension not enabled\"):t.type===wr&&de(r.extensions.indexOf(\"oes_texture_half_float\")>=0,\"oes_texture_half_float extension not enabled\")}function d(e,r,i){var a=e.element,o=e.data,s=e.internalformat,l=e.format,u=e.type,h=e.width,f=e.height;c(e),a?t.texImage2D(r,i,l,l,u,a):e.compressed?t.compressedTexImage2D(r,i,s,h,f,0,o):e.needsCopy?(n(),t.copyTexImage2D(r,i,l,e.xOffset,e.yOffset,h,f,0)):t.texImage2D(r,i,l,h,f,0,l,u,o)}function p(e,r,i,a,o){var s=e.element,l=e.data,u=e.internalformat,h=e.format,f=e.type,d=e.width,p=e.height;c(e),s?t.texSubImage2D(r,o,i,a,h,f,s):e.compressed?t.compressedTexSubImage2D(r,o,i,a,u,d,p,l):e.needsCopy?(n(),t.copyTexSubImage2D(r,o,i,a,e.xOffset,e.yOffset,d,p)):t.texSubImage2D(r,o,i,a,d,p,h,f,l)}function m(){return K.pop()||new h}function v(t){t.needsFree&&Le.freeType(t.data),h.call(t),K.push(t)}function g(){s.call(this),this.genMipmaps=!1,this.mipmapHint=$r,this.mipmask=0,this.images=Array(16)}function y(t,e,r){var n=t.images[0]=m();t.mipmask=1,n.width=t.width=e,n.height=t.height=r,n.channels=t.channels=4}function b(t,e){var r=null;if(kt(e))r=t.images[0]=m(),l(r,t),f(r,e),t.mipmask=1;else if(u(t,e),Array.isArray(e.mipmap))for(var n=e.mipmap,i=0;i<n.length;++i)r=t.images[i]=m(),l(r,t),r.width>>=i,r.height>>=i,f(r,n[i]),t.mipmask|=1<<i;else r=t.images[0]=m(),l(r,t),f(r,e),t.mipmask=1;l(t,t.images[0]),(t.compressed&&t.internalformat===Mr||t.internalformat===kr||t.internalformat===Ar||t.internalformat===Tr)&&de(t.width%4==0&&t.height%4==0,\"for compressed texture formats, mipmap level 0 must have width and height that are a multiple of 4\")}function x(t,e){for(var r=t.images,n=0;n<r.length;++n){if(!r[n])return;d(r[n],e,n)}}function _(){var t=Q.pop()||new g;s.call(t),t.mipmask=0;for(var e=0;e<16;++e)t.images[e]=null;return t}function w(t){for(var e=t.images,r=0;r<e.length;++r)e[r]&&v(e[r]),e[r]=null;Q.push(t)}function M(){this.minFilter=Yr,this.magFilter=Yr,this.wrapS=Vr,this.wrapT=Vr,this.anisotropic=1,this.genMipmaps=!1,this.mipmapHint=$r}function k(t,e){if(\"min\"in e){var n=e.min;de.parameter(n,F),t.minFilter=F[n],cn.indexOf(t.minFilter)>=0&&(t.genMipmaps=!0)}if(\"mag\"in e){var i=e.mag;de.parameter(i,R),t.magFilter=R[i]}var a=t.wrapS,o=t.wrapT;if(\"wrap\"in e){var s=e.wrap;\"string\"==typeof s?(de.parameter(s,O),a=o=O[s]):Array.isArray(s)&&(de.parameter(s[0],O),de.parameter(s[1],O),a=O[s[0]],o=O[s[1]])}else{if(\"wrapS\"in e){var l=e.wrapS;de.parameter(l,O),a=O[l]}if(\"wrapT\"in e){var u=e.wrapT;de.parameter(u,O),o=O[u]}}if(t.wrapS=a,t.wrapT=o,\"anisotropic\"in e){var c=e.anisotropic;de(\"number\"==typeof c&&c>=1&&c<=r.maxAnisotropic,\"aniso samples must be between 1 and \"),t.anisotropic=e.anisotropic}if(\"mipmap\"in e){var h=!1;switch(typeof e.mipmap){case\"string\":de.parameter(e.mipmap,P,\"invalid mipmap hint\"),t.mipmapHint=P[e.mipmap],t.genMipmaps=!0,h=!0;break;case\"boolean\":h=t.genMipmaps=e.mipmap;break;case\"object\":de(Array.isArray(e.mipmap),\"invalid mipmap type\"),t.genMipmaps=!1,h=!0;break;default:de.raise(\"invalid mipmap type\")}!h||\"min\"in e||(t.minFilter=Xr)}}function A(r,n){t.texParameteri(n,Gr,r.minFilter),t.texParameteri(n,qr,r.magFilter),t.texParameteri(n,Nr,r.wrapS),t.texParameteri(n,Br,r.wrapT),e.ext_texture_filter_anisotropic&&t.texParameteri(n,rn,r.anisotropic),r.genMipmaps&&(t.hint(Qr,r.mipmapHint),t.generateMipmap(n))}function T(e){s.call(this),this.mipmask=0,this.internalformat=or,this.id=$++,this.refCount=1,this.target=e,this.texture=t.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new M,o.profile&&(this.stats={size:0})}function S(e){t.activeTexture(un),t.bindTexture(e.target,e.texture)}function E(){var e=rt[0];e?t.bindTexture(e.target,e.texture):t.bindTexture(nr,null)}function L(e){var r=e.texture;de(r,\"must not double destroy texture\");var n=e.unit,i=e.target;n>=0&&(t.activeTexture(un+n),t.bindTexture(i,null),rt[n]=null),t.deleteTexture(r),e.texture=null,e.params=null,e.pixels=null,e.refCount=0,delete tt[e.id],a.textureCount--}function C(e,n){function i(t,e){var n=c.texInfo;M.call(n);var a=_();return\"number\"==typeof t?\"number\"==typeof e?y(a,0|t,0|e):y(a,0|t,0|t):t?(de.type(t,\"object\",\"invalid arguments to regl.texture\"),k(n,t),b(a,t)):y(a,1,1),n.genMipmaps&&(a.mipmask=(a.width<<1)-1),c.mipmask=a.mipmask,l(c,a),de.texture2D(n,a,r),c.internalformat=a.internalformat,i.width=a.width,i.height=a.height,S(c),x(a,nr),A(n,nr),E(),w(a),o.profile&&(c.stats.size=Ct(c.internalformat,c.type,a.width,a.height,n.genMipmaps,!1)),i.format=q[c.internalformat],i.type=G[c.type],i.mag=Y[n.magFilter],i.min=W[n.minFilter],i.wrapS=X[n.wrapS],i.wrapT=X[n.wrapT],i}function s(t,e,r,n){de(!!t,\"must specify image data\");var a=0|e,o=0|r,s=0|n,u=m();return l(u,c),u.width=0,u.height=0,f(u,t),u.width=u.width||(c.width>>s)-a,u.height=u.height||(c.height>>s)-o,de(c.type===u.type&&c.format===u.format&&c.internalformat===u.internalformat,\"incompatible format for texture.subimage\"),de(a>=0&&o>=0&&a+u.width<=c.width&&o+u.height<=c.height,\"texture.subimage write out of bounds\"),de(c.mipmask&1<<s,\"missing mipmap data\"),de(u.data||u.element||u.needsCopy,\"missing image data\"),S(c),p(u,nr,a,o,s),E(),v(u),i}function u(e,r){var n=0|e,a=0|r||n;if(n===c.width&&a===c.height)return i;i.width=c.width=n,i.height=c.height=a,S(c);for(var s=0;c.mipmask>>s;++s)t.texImage2D(nr,s,c.format,n>>s,a>>s,0,c.format,c.type,null);return E(),o.profile&&(c.stats.size=Ct(c.internalformat,c.type,n,a,!1,!1)),i}var c=new T(nr);return tt[c.id]=c,a.textureCount++,i(e,n),i.subimage=s,i.resize=u,i._reglType=\"texture2d\",i._texture=c,o.profile&&(i.stats=c.stats),i.destroy=function(){c.decRef()},i}function I(e,n,i,s,c,h){function d(t,e,n,i,a,s){var c,h=C.texInfo;for(M.call(h),c=0;c<6;++c)I[c]=_();if(\"number\"!=typeof t&&t)if(\"object\"==typeof t)if(e)b(I[0],t),b(I[1],e),b(I[2],n),b(I[3],i),b(I[4],a),b(I[5],s);else if(k(h,t),u(C,t),\"faces\"in t){var f=t.faces;for(de(Array.isArray(f)&&6===f.length,\"cube faces must be a length 6 array\"),c=0;c<6;++c)de(\"object\"==typeof f[c]&&!!f[c],\"invalid input for cube map face\"),l(I[c],C),b(I[c],f[c])}else for(c=0;c<6;++c)b(I[c],t);else de.raise(\"invalid arguments to cube map\");else{var p=0|t||1;for(c=0;c<6;++c)y(I[c],p,p)}for(l(C,I[0]),h.genMipmaps?C.mipmask=(I[0].width<<1)-1:C.mipmask=I[0].mipmask,de.textureCube(C,h,I,r),C.internalformat=I[0].internalformat,d.width=I[0].width,d.height=I[0].height,S(C),c=0;c<6;++c)x(I[c],ar+c);for(A(h,ir),E(),o.profile&&(C.stats.size=Ct(C.internalformat,C.type,d.width,d.height,h.genMipmaps,!0)),d.format=q[C.internalformat],d.type=G[C.type],d.mag=Y[h.magFilter],d.min=W[h.minFilter],d.wrapS=X[h.wrapS],d.wrapT=X[h.wrapT],c=0;c<6;++c)w(I[c]);return d}function g(t,e,r,n,i){de(!!e,\"must specify image data\"),de(\"number\"==typeof t&&t===(0|t)&&t>=0&&t<6,\"invalid face\");var a=0|r,o=0|n,s=0|i,u=m();return l(u,C),u.width=0,u.height=0,f(u,e),u.width=u.width||(C.width>>s)-a,u.height=u.height||(C.height>>s)-o,de(C.type===u.type&&C.format===u.format&&C.internalformat===u.internalformat,\"incompatible format for texture.subimage\"),de(a>=0&&o>=0&&a+u.width<=C.width&&o+u.height<=C.height,\"texture.subimage write out of bounds\"),de(C.mipmask&1<<s,\"missing mipmap data\"),de(u.data||u.element||u.needsCopy,\"missing image data\"),S(C),p(u,ar+t,a,o,s),E(),v(u),d}function L(e){var r=0|e;if(r!==C.width){d.width=C.width=r,d.height=C.height=r,S(C);for(var n=0;n<6;++n)for(var i=0;C.mipmask>>i;++i)t.texImage2D(ar+n,i,C.format,r>>i,r>>i,0,C.format,C.type,null);return E(),o.profile&&(C.stats.size=Ct(C.internalformat,C.type,d.width,d.height,!1,!0)),d}}var C=new T(ir);tt[C.id]=C,a.cubeCount++;var I=new Array(6);return d(e,n,i,s,c,h),d.subimage=g,d.resize=L,d._reglType=\"textureCube\",d._texture=C,o.profile&&(d.stats=C.stats),d.destroy=function(){C.decRef()},d}function z(){for(var e=0;e<et;++e)t.activeTexture(un+e),t.bindTexture(nr,null),rt[e]=null;xe(tt).forEach(L),a.cubeCount=0,a.textureCount=0}function D(){xe(tt).forEach(function(e){e.texture=t.createTexture(),t.bindTexture(e.target,e.texture);for(var r=0;r<32;++r)if(0!=(e.mipmask&1<<r))if(e.target===nr)t.texImage2D(nr,r,e.internalformat,e.width>>r,e.height>>r,0,e.internalformat,e.type,null);else for(var n=0;n<6;++n)t.texImage2D(ar+n,r,e.internalformat,e.width>>r,e.height>>r,0,e.internalformat,e.type,null);A(e.texInfo,e.target)})}var P={\"don't care\":$r,\"dont care\":$r,nice:en,fast:tn},O={repeat:Ur,clamp:Vr,mirror:Hr},R={nearest:Yr,linear:Wr},F=$t({mipmap:Kr,\"nearest mipmap nearest\":Xr,\"linear mipmap nearest\":Zr,\"nearest mipmap linear\":Jr,\"linear mipmap linear\":Kr},R),j={none:0,browser:ln},N={uint8:Or,rgba4:pr,rgb565:vr,\"rgb5 a1\":mr},B={alpha:sr,luminance:ur,\"luminance alpha\":cr,rgb:lr,rgba:or,rgba4:hr,\"rgb5 a1\":fr,rgb565:dr},U={};e.ext_srgb&&(B.srgb=xr,B.srgba=_r),e.oes_texture_float&&(N.float32=N.float=jr),e.oes_texture_half_float&&(N.float16=N[\"half float\"]=wr),e.webgl_depth_texture&&($t(B,{depth:yr,\"depth stencil\":br}),$t(N,{uint16:Rr,uint32:Fr,\"depth stencil\":gr})),e.webgl_compressed_texture_s3tc&&$t(U,{\"rgb s3tc dxt1\":Mr,\"rgba s3tc dxt1\":kr,\"rgba s3tc dxt3\":Ar,\"rgba s3tc dxt5\":Tr}),e.webgl_compressed_texture_atc&&$t(U,{\"rgb atc\":Sr,\"rgba atc explicit alpha\":Er,\"rgba atc interpolated alpha\":Lr}),e.webgl_compressed_texture_pvrtc&&$t(U,{\"rgb pvrtc 4bppv1\":Cr,\"rgb pvrtc 2bppv1\":Ir,\"rgba pvrtc 4bppv1\":zr,\"rgba pvrtc 2bppv1\":Dr}),e.webgl_compressed_texture_etc1&&(U[\"rgb etc1\"]=Pr);var V=Array.prototype.slice.call(t.getParameter(rr));Object.keys(U).forEach(function(t){var e=U[t];V.indexOf(e)>=0&&(B[t]=e)});var H=Object.keys(B);r.textureFormats=H;var q=[];Object.keys(B).forEach(function(t){var e=B[t];q[e]=t});var G=[];Object.keys(N).forEach(function(t){var e=N[t];G[e]=t});var Y=[];Object.keys(R).forEach(function(t){var e=R[t];Y[e]=t});var W=[];Object.keys(F).forEach(function(t){var e=F[t];W[e]=t});var X=[];Object.keys(O).forEach(function(t){var e=O[t];X[e]=t});var J=H.reduce(function(t,e){var r=B[e];return r===ur||r===sr||r===ur||r===cr||r===yr||r===br?t[r]=r:r===fr||e.indexOf(\"rgba\")>=0?t[r]=or:t[r]=lr,t},{}),K=[],Q=[],$=0,tt={},et=r.maxTextureUnits,rt=Array(et).map(function(){return null});return $t(T.prototype,{bind:function(){var e=this;e.bindCount+=1;var r=e.unit;if(r<0){for(var n=0;n<et;++n){var i=rt[n];if(i){if(i.bindCount>0)continue;i.unit=-1}rt[n]=e,r=n;break}r>=et&&de.raise(\"insufficient number of texture units\"),o.profile&&a.maxTextureUnits<r+1&&(a.maxTextureUnits=r+1),e.unit=r,t.activeTexture(un+r),t.bindTexture(e.target,e.texture)}return r},unbind:function(){this.bindCount-=1},decRef:function(){--this.refCount<=0&&L(this)}}),o.profile&&(a.getTotalTextureSize=function(){var t=0;return Object.keys(tt).forEach(function(e){t+=tt[e].stats.size}),t}),{create2D:C,createCube:I,clear:z,getTexture:function(t){return null},restore:D}}function zt(t,e,r){return wn[t]*e*r}function Dt(t,e,r,n,i,a){function o(t,e,r){this.target=t,this.texture=e,this.renderbuffer=r;var n=0,i=0;e?(n=e.width,i=e.height):r&&(n=r.width,i=r.height),this.width=n,this.height=i}function s(t){t&&(t.texture&&t.texture._texture.decRef(),t.renderbuffer&&t.renderbuffer._renderbuffer.decRef())}function l(t,e,r){if(t)if(t.texture){var n=t.texture._texture,i=Math.max(1,n.width),a=Math.max(1,n.height);de(i===e&&a===r,\"inconsistent width/height for supplied texture\"),n.refCount+=1}else{var o=t.renderbuffer._renderbuffer;de(o.width===e&&o.height===r,\"inconsistent width/height for renderbuffer\"),o.refCount+=1}}function u(e,r){r&&(r.texture?t.framebufferTexture2D(kn,e,r.target,r.texture._texture.texture,0):t.framebufferRenderbuffer(kn,e,An,r.renderbuffer._renderbuffer.renderbuffer))}function c(t){var e=Tn,r=null,n=null,i=t;\"object\"==typeof t&&(i=t.data,\"target\"in t&&(e=0|t.target)),de.type(i,\"function\",\"invalid attachment data\");var a=i._reglType;return\"texture2d\"===a?(r=i,de(e===Tn)):\"textureCube\"===a?(r=i,de(e>=Sn&&e<Sn+6,\"invalid cube map target\")):\"renderbuffer\"===a?(n=i,e=An):de.raise(\"invalid regl object for attachment\"),new o(e,r,n)}function h(t,e,r,a,s){if(r){var l=n.create2D({width:t,height:e,format:a,type:s});return l._texture.refCount=0,new o(Tn,l,null)}var u=i.create({width:t,height:e,format:a});return u._renderbuffer.refCount=0,new o(An,null,u)}function f(t){return t&&(t.texture||t.renderbuffer)}function d(t,e,r){t&&(t.texture?t.texture.resize(e,r):t.renderbuffer&&t.renderbuffer.resize(e,r))}function p(){this.id=A++,T[this.id]=this,this.framebuffer=t.createFramebuffer(),this.width=0,this.height=0,this.colorAttachments=[],this.depthAttachment=null,this.stencilAttachment=null,this.depthStencilAttachment=null}function m(t){t.colorAttachments.forEach(s),s(t.depthAttachment),s(t.stencilAttachment),s(t.depthStencilAttachment)}function v(e){var r=e.framebuffer;de(r,\"must not double destroy framebuffer\"),t.deleteFramebuffer(r),e.framebuffer=null,a.framebufferCount--,delete T[e.id]}function g(e){var n;t.bindFramebuffer(kn,e.framebuffer);var i=e.colorAttachments;for(n=0;n<i.length;++n)u(En+n,i[n]);for(n=i.length;n<r.maxColorAttachments;++n)t.framebufferTexture2D(kn,En+n,Tn,null,0);t.framebufferTexture2D(kn,In,Tn,null,0),t.framebufferTexture2D(kn,Ln,Tn,null,0),t.framebufferTexture2D(kn,Cn,Tn,null,0),u(Ln,e.depthAttachment),u(Cn,e.stencilAttachment),u(In,e.depthStencilAttachment);var a=t.checkFramebufferStatus(kn);a!==zn&&de.raise(\"framebuffer configuration not supported, status = \"+Un[a]),t.bindFramebuffer(kn,_.next),_.cur=_.next,t.getError()}function y(t,n){function i(t,n){var a;de(_.next!==s,\"can not update framebuffer which is currently in use\");var o=e.webgl_draw_buffers,u=0,d=0,p=!0,v=!0,y=null,b=!0,x=\"rgba\",A=\"uint8\",T=1,S=null,E=null,L=null,C=!1;if(\"number\"==typeof t)u=0|t,d=0|n||u;else if(t){de.type(t,\"object\",\"invalid arguments for framebuffer\");var I=t;if(\"shape\"in I){var z=I.shape;de(Array.isArray(z)&&z.length>=2,\"invalid shape for framebuffer\"),u=z[0],d=z[1]}else\"radius\"in I&&(u=d=I.radius),\"width\"in I&&(u=I.width),\"height\"in I&&(d=I.height);(\"color\"in I||\"colors\"in I)&&(y=I.color||I.colors,Array.isArray(y)&&de(1===y.length||o,\"multiple render targets not supported\")),y||(\"colorCount\"in I&&(T=0|I.colorCount,de(T>0,\"invalid color buffer count\")),\"colorTexture\"in I&&(b=!!I.colorTexture,x=\"rgba4\"),\"colorType\"in I&&(A=I.colorType,b?(de(e.oes_texture_float||!(\"float\"===A||\"float32\"===A),\"you must enable OES_texture_float in order to use floating point framebuffer objects\"),de(e.oes_texture_half_float||!(\"half float\"===A||\"float16\"===A),\"you must enable OES_texture_half_float in order to use 16-bit floating point framebuffer objects\")):\"half float\"===A||\"float16\"===A?(de(e.ext_color_buffer_half_float,\"you must enable EXT_color_buffer_half_float to use 16-bit render buffers\"),x=\"rgba16f\"):\"float\"!==A&&\"float32\"!==A||(de(e.webgl_color_buffer_float,\"you must enable WEBGL_color_buffer_float in order to use 32-bit floating point renderbuffers\"),x=\"rgba32f\"),de.oneOf(A,k,\"invalid color type\")),\"colorFormat\"in I&&(x=I.colorFormat,w.indexOf(x)>=0?b=!0:M.indexOf(x)>=0?b=!1:b?de.oneOf(I.colorFormat,w,\"invalid color format for texture\"):de.oneOf(I.colorFormat,M,\"invalid color format for renderbuffer\"))),(\"depthTexture\"in I||\"depthStencilTexture\"in I)&&(C=!(!I.depthTexture&&!I.depthStencilTexture),de(!C||e.webgl_depth_texture,\"webgl_depth_texture extension not supported\")),\"depth\"in I&&(\"boolean\"==typeof I.depth?p=I.depth:(S=I.depth,v=!1)),\"stencil\"in I&&(\"boolean\"==typeof I.stencil?v=I.stencil:(E=I.stencil,p=!1)),\"depthStencil\"in I&&(\"boolean\"==typeof I.depthStencil?p=v=I.depthStencil:(L=I.depthStencil,p=!1,v=!1))}else u=d=1;var D=null,P=null,O=null,R=null;if(Array.isArray(y))D=y.map(c);else if(y)D=[c(y)];else for(D=new Array(T),a=0;a<T;++a)D[a]=h(u,d,b,x,A);de(e.webgl_draw_buffers||D.length<=1,\"you must enable the WEBGL_draw_buffers extension in order to use multiple color buffers.\"),de(D.length<=r.maxColorAttachments,\"too many color attachments, not supported\"),u=u||D[0].width,d=d||D[0].height,S?P=c(S):p&&!v&&(P=h(u,d,C,\"depth\",\"uint32\")),E?O=c(E):v&&!p&&(O=h(u,d,!1,\"stencil\",\"uint8\")),L?R=c(L):!S&&!E&&v&&p&&(R=h(u,d,C,\"depth stencil\",\"depth stencil\")),de(!!S+!!E+!!L<=1,\"invalid framebuffer configuration, can specify exactly one depth/stencil attachment\");var F=null;for(a=0;a<D.length;++a)if(l(D[a],u,d),de(!D[a]||D[a].texture&&Pn.indexOf(D[a].texture._texture.format)>=0||D[a].renderbuffer&&Bn.indexOf(D[a].renderbuffer._renderbuffer.format)>=0,\"framebuffer color attachment \"+a+\" is invalid\"),D[a]&&D[a].texture){var j=On[D[a].texture._texture.format]*Rn[D[a].texture._texture.type];null===F?F=j:de(F===j,\"all color attachments much have the same number of bits per pixel.\")}return l(P,u,d),de(!P||P.texture&&P.texture._texture.format===Dn||P.renderbuffer&&P.renderbuffer._renderbuffer.format===Fn,\"invalid depth attachment for framebuffer object\"),l(O,u,d),de(!O||O.renderbuffer&&O.renderbuffer._renderbuffer.format===jn,\"invalid stencil attachment for framebuffer object\"),l(R,u,d),de(!R||R.texture&&R.texture._texture.format===Nn||R.renderbuffer&&R.renderbuffer._renderbuffer.format===Nn,\"invalid depth-stencil attachment for framebuffer object\"),m(s),s.width=u,s.height=d,s.colorAttachments=D,s.depthAttachment=P,s.stencilAttachment=O,s.depthStencilAttachment=R,i.color=D.map(f),i.depth=f(P),i.stencil=f(O),i.depthStencil=f(R),i.width=s.width,i.height=s.height,g(s),i}function o(t,e){de(_.next!==s,\"can not resize a framebuffer which is currently in use\");var r=0|t,n=0|e||r;if(r===s.width&&n===s.height)return i;for(var a=s.colorAttachments,o=0;o<a.length;++o)d(a[o],r,n);return d(s.depthAttachment,r,n),d(s.stencilAttachment,r,n),d(s.depthStencilAttachment,r,n),s.width=i.width=r,s.height=i.height=n,g(s),i}var s=new p;return a.framebufferCount++,i(t,n),$t(i,{resize:o,_reglType:\"framebuffer\",_framebuffer:s,destroy:function(){v(s),m(s)},use:function(t){_.setFBO({framebuffer:i},t)}})}function b(t){function i(t){var r;de(o.indexOf(_.next)<0,\"can not update framebuffer which is currently in use\");var a=e.webgl_draw_buffers,s={color:null},l=0,u=null,c=\"rgba\",h=\"uint8\",f=1;if(\"number\"==typeof t)l=0|t;else if(t){de.type(t,\"object\",\"invalid arguments for framebuffer\");var d=t;if(\"shape\"in d){var p=d.shape;de(Array.isArray(p)&&p.length>=2,\"invalid shape for framebuffer\"),de(p[0]===p[1],\"cube framebuffer must be square\"),l=p[0]}else\"radius\"in d&&(l=0|d.radius),\"width\"in d?(l=0|d.width,\"height\"in d&&de(d.height===l,\"must be square\")):\"height\"in d&&(l=0|d.height);(\"color\"in d||\"colors\"in d)&&(u=d.color||d.colors,Array.isArray(u)&&de(1===u.length||a,\"multiple render targets not supported\")),u||(\"colorCount\"in d&&(f=0|d.colorCount,de(f>0,\"invalid color buffer count\")),\"colorType\"in d&&(de.oneOf(d.colorType,k,\"invalid color type\"),h=d.colorType),\"colorFormat\"in d&&(c=d.colorFormat,de.oneOf(d.colorFormat,w,\"invalid color format for texture\"))),\"depth\"in d&&(s.depth=d.depth),\"stencil\"in d&&(s.stencil=d.stencil),\"depthStencil\"in d&&(s.depthStencil=d.depthStencil)}else l=1;var m;if(u)if(Array.isArray(u))for(m=[],r=0;r<u.length;++r)m[r]=u[r];else m=[u];else{m=Array(f);var v={radius:l,format:c,type:h};for(r=0;r<f;++r)m[r]=n.createCube(v)}for(s.color=Array(m.length),r=0;r<m.length;++r){var g=m[r];de(\"function\"==typeof g&&\"textureCube\"===g._reglType,\"invalid cube map\"),l=l||g.width,de(g.width===l&&g.height===l,\"invalid cube map shape\"),s.color[r]={target:Sn,data:m[r]}}for(r=0;r<6;++r){for(var b=0;b<m.length;++b)s.color[b].target=Sn+r;r>0&&(s.depth=o[0].depth,s.stencil=o[0].stencil,s.depthStencil=o[0].depthStencil),o[r]?o[r](s):o[r]=y(s)}return $t(i,{width:l,height:l,color:m})}function a(t){var e,n=0|t;if(de(n>0&&n<=r.maxCubeMapSize,\"invalid radius for cube fbo\"),n===i.width)return i;var a=i.color;for(e=0;e<a.length;++e)a[e].resize(n);for(e=0;e<6;++e)o[e].resize(n);return i.width=i.height=n,i}var o=Array(6);return i(t),$t(i,{faces:o,resize:a,_reglType:\"framebufferCube\",destroy:function(){o.forEach(function(t){t.destroy()})}})}function x(){xe(T).forEach(function(e){e.framebuffer=t.createFramebuffer(),g(e)})}var _={cur:null,next:null,dirty:!1,setFBO:null},w=[\"rgba\"],M=[\"rgba4\",\"rgb565\",\"rgb5 a1\"];e.ext_srgb&&M.push(\"srgba\"),e.ext_color_buffer_half_float&&M.push(\"rgba16f\",\"rgb16f\"),e.webgl_color_buffer_float&&M.push(\"rgba32f\");var k=[\"uint8\"];e.oes_texture_half_float&&k.push(\"half float\",\"float16\"),e.oes_texture_float&&k.push(\"float\",\"float32\");var A=0,T={};return $t(_,{getFramebuffer:function(t){if(\"function\"==typeof t&&\"framebuffer\"===t._reglType){var e=t._framebuffer;if(e instanceof p)return e}return null},create:y,createCube:b,clear:function(){xe(T).forEach(v)},restore:x})}function Pt(){this.state=0,this.x=0,this.y=0,this.z=0,this.w=0,this.buffer=null,this.size=0,this.normalized=!1,this.type=Vn,this.offset=0,this.stride=0,this.divisor=0}function Ot(t,e,r,n,i){for(var a=r.maxAttributes,o=new Array(a),s=0;s<a;++s)o[s]=new Pt;return{Record:Pt,scope:{},state:o}}function Rt(t,e,r,n){function i(t,e,r,n){this.name=t,this.id=e,this.location=r,this.info=n}function a(t,e){for(var r=0;r<t.length;++r)if(t[r].id===e.id)return void(t[r].location=e.location);t.push(e)}function o(r,n,i){var a=r===Hn?c:h,o=a[n];if(!o){var s=e.str(n);o=t.createShader(r),t.shaderSource(o,s),t.compileShader(o),de.shaderError(t,o,s,r,i),a[n]=o}return o}function s(t,e){this.id=p++,this.fragId=t,this.vertId=e,this.program=null,this.uniforms=[],this.attributes=[],n.profile&&(this.stats={uniformsCount:0,attributesCount:0})}function l(r,s){var l,u,c=o(Hn,r.fragId),h=o(qn,r.vertId),f=r.program=t.createProgram();t.attachShader(f,c),t.attachShader(f,h),t.linkProgram(f),de.linkError(t,f,e.str(r.fragId),e.str(r.vertId),s);var d=t.getProgramParameter(f,Gn);n.profile&&(r.stats.uniformsCount=d);var p=r.uniforms;for(l=0;l<d;++l)if(u=t.getActiveUniform(f,l))if(u.size>1)for(var m=0;m<u.size;++m){var v=u.name.replace(\"[0]\",\"[\"+m+\"]\");a(p,new i(v,e.id(v),t.getUniformLocation(f,v),u))}else a(p,new i(u.name,e.id(u.name),t.getUniformLocation(f,u.name),u));var g=t.getProgramParameter(f,Yn);n.profile&&(r.stats.attributesCount=g);var y=r.attributes;for(l=0;l<g;++l)(u=t.getActiveAttrib(f,l))&&a(y,new i(u.name,e.id(u.name),t.getAttribLocation(f,u.name),u))}function u(){c={},h={};for(var t=0;t<d.length;++t)l(d[t])}var c={},h={},f={},d=[],p=0;return n.profile&&(r.getMaxUniformsCount=function(){var t=0;return d.forEach(function(e){e.stats.uniformsCount>t&&(t=e.stats.uniformsCount)}),t},r.getMaxAttributesCount=function(){var t=0;return d.forEach(function(e){e.stats.attributesCount>t&&(t=e.stats.attributesCount)}),t}),{clear:function(){var e=t.deleteShader.bind(t);xe(c).forEach(e),c={},xe(h).forEach(e),h={},d.forEach(function(e){t.deleteProgram(e.program)}),d.length=0,f={},r.shaderCount=0},program:function(t,e,n){de.command(t>=0,\"missing vertex shader\",n),de.command(e>=0,\"missing fragment shader\",n);var i=f[e];i||(i=f[e]={});var a=i[t];return a||(a=new s(e,t),r.shaderCount++,l(a,n),i[t]=a,d.push(a)),a},restore:u,shader:o,frag:-1,vert:-1}}function Ft(t,e,r,n,i,a){function o(o){var s;null===e.next?(de(i.preserveDrawingBuffer,'you must create a webgl context with \"preserveDrawingBuffer\":true in order to read pixels from the drawing buffer'),s=Xn):(de(null!==e.next.colorAttachments[0].texture,\"You cannot read from a renderbuffer\"),s=e.next.colorAttachments[0].texture._texture.type,a.oes_texture_float?de(s===Xn||s===Jn,\"Reading from a framebuffer is only allowed for the types 'uint8' and 'float'\"):de(s===Xn,\"Reading from a framebuffer is only allowed for the type 'uint8'\"));var l=0,u=0,c=n.framebufferWidth,h=n.framebufferHeight,f=null;Qt(o)?f=o:o&&(de.type(o,\"object\",\"invalid arguments to regl.read()\"),l=0|o.x,u=0|o.y,de(l>=0&&l<n.framebufferWidth,\"invalid x offset for regl.read\"),de(u>=0&&u<n.framebufferHeight,\"invalid y offset for regl.read\"),c=0|(o.width||n.framebufferWidth-l),h=0|(o.height||n.framebufferHeight-u),f=o.data||null),f&&(s===Xn?de(f instanceof Uint8Array,\"buffer must be 'Uint8Array' when reading from a framebuffer of type 'uint8'\"):s===Jn&&de(f instanceof Float32Array,\"buffer must be 'Float32Array' when reading from a framebuffer of type 'float'\")),de(c>0&&c+l<=n.framebufferWidth,\"invalid width for read pixels\"),de(h>0&&h+u<=n.framebufferHeight,\"invalid height for read pixels\"),r();var d=c*h*4;return f||(s===Xn?f=new Uint8Array(d):s===Jn&&(f=f||new Float32Array(d))),de.isTypedArray(f,\"data buffer for regl.read() must be a typedarray\"),de(f.byteLength>=d,\"data buffer for regl.read() too small\"),t.pixelStorei(Zn,4),t.readPixels(l,u,c,h,Wn,s,f),f}function s(t){var r;return e.setFBO({framebuffer:t.framebuffer},function(){r=o(t)}),r}function l(t){return t&&\"framebuffer\"in t?s(t):o(t)}return l}function jt(t){return Array.prototype.slice.call(t)}function Nt(t){return jt(t).join(\"\")}function Bt(){function t(t){for(var e=0;e<l.length;++e)if(l[e]===t)return s[e];var r=\"g\"+o++;return s.push(r),l.push(t),r}function e(){function t(){r.push.apply(r,jt(arguments))}function e(){var t=\"v\"+o++;return n.push(t),arguments.length>0&&(r.push(t,\"=\"),r.push.apply(r,jt(arguments)),r.push(\";\")),t}var r=[],n=[];return $t(t,{def:e,toString:function(){return Nt([n.length>0?\"var \"+n+\";\":\"\",Nt(r)])}})}function r(){function t(t,e){\n", "n(t,e,\"=\",r.def(t,e),\";\")}var r=e(),n=e(),i=r.toString,a=n.toString;return $t(function(){r.apply(r,jt(arguments))},{def:r.def,entry:r,exit:n,save:t,set:function(e,n,i){t(e,n),r(e,n,\"=\",i,\";\")},toString:function(){return i()+a()}})}function n(){var t=Nt(arguments),e=r(),n=r(),i=e.toString,a=n.toString;return $t(e,{then:function(){return e.apply(e,jt(arguments)),this},else:function(){return n.apply(n,jt(arguments)),this},toString:function(){var e=a();return e&&(e=\"else{\"+e+\"}\"),Nt([\"if(\",t,\"){\",i(),\"}\",e])}})}function i(t,e){function n(){var t=\"a\"+i.length;return i.push(t),t}var i=[];e=e||0;for(var a=0;a<e;++a)n();var o=r(),s=o.toString;return c[t]=$t(o,{arg:n,toString:function(){return Nt([\"function(\",i.join(),\"){\",s(),\"}\"])}})}function a(){var t=['\"use strict\";',u,\"return {\"];Object.keys(c).forEach(function(e){t.push('\"',e,'\":',c[e].toString(),\",\")}),t.push(\"}\");var e=Nt(t).replace(/;/g,\";\\n\").replace(/}/g,\"}\\n\").replace(/{/g,\"{\\n\");return Function.apply(null,s.concat(e)).apply(null,l)}var o=0,s=[],l=[],u=e(),c={};return{global:u,link:t,block:e,proc:i,scope:r,cond:n,compile:a}}function Ut(t){return Array.isArray(t)||Qt(t)||Z(t)}function Vt(t){return t.sort(function(t,e){return t===zi?-1:e===zi?1:t<e?-1:1})}function Ht(t,e,r,n){this.thisDep=t,this.contextDep=e,this.propDep=r,this.append=n}function qt(t){return t&&!(t.thisDep||t.contextDep||t.propDep)}function Gt(t){return new Ht(!1,!1,!1,t)}function Yt(t,e){var r=t.type;if(r===ei){var n=t.data.length;return new Ht(!0,n>=1,n>=2,e)}if(r===ai){var i=t.data;return new Ht(i.thisDep,i.contextDep,i.propDep,e)}return new Ht(r===ii,r===ni,r===ri,e)}function Wt(t,e,r,n,i,a,o,s,l,u,c,h,f,d,p){function m(t){return t.replace(\".\",\"_\")}function v(t,e,r){var n=m(t);et.push(t),tt[n]=$[n]=!!r,rt[n]=e}function g(t,e,r){var n=m(t);et.push(t),Array.isArray(r)?($[n]=r.slice(),tt[n]=r.slice()):$[n]=tt[n]=r,nt[n]=e}function y(){var t=Bt(),r=t.link,n=t.global;t.id=ot++,t.batchId=\"0\";var i=r(it),a=t.shared={props:\"a0\"};Object.keys(it).forEach(function(t){a[t]=n.def(i,\".\",t)}),de.optional(function(){t.CHECK=r(de),t.commandStr=de.guessCommand(),t.command=r(t.commandStr),t.assert=function(t,e,n){t(\"if(!(\",e,\"))\",this.CHECK,\".commandRaise(\",r(n),\",\",this.command,\");\")},at.invalidBlendCombinations=Ua});var o=t.next={},s=t.current={};Object.keys(nt).forEach(function(t){Array.isArray($[t])&&(o[t]=n.def(a.next,\".\",t),s[t]=n.def(a.current,\".\",t))});var l=t.constants={};Object.keys(at).forEach(function(t){l[t]=n.def(JSON.stringify(at[t]))}),t.invoke=function(e,n){switch(n.type){case ei:var i=[\"this\",a.context,a.props,t.batchId];return e.def(r(n.data),\".call(\",i.slice(0,Math.max(n.data.length+1,4)),\")\");case ri:return e.def(a.props,n.data);case ni:return e.def(a.context,n.data);case ii:return e.def(\"this\",n.data);case ai:return n.data.append(t,e),n.data.ref}},t.attribCache={};var c={};return t.scopeAttrib=function(t){var n=e.id(t);if(n in c)return c[n];var i=u.scope[n];return i||(i=u.scope[n]=new X),c[n]=r(i)},t}function b(t){var e,r=t.static,n=t.dynamic;if(Di in r){var i=!!r[Di];e=Gt(function(t,e){return i}),e.enable=i}else if(Di in n){var a=n[Di];e=Yt(a,function(t,e){return t.invoke(e,a)})}return e}function x(t,e){var r=t.static,n=t.dynamic;if(Pi in r){var i=r[Pi];return i?(i=s.getFramebuffer(i),de.command(i,\"invalid framebuffer object\"),Gt(function(t,e){var r=t.link(i),n=t.shared;e.set(n.framebuffer,\".next\",r);var a=n.context;return e.set(a,\".\"+Vi,r+\".width\"),e.set(a,\".\"+Hi,r+\".height\"),r})):Gt(function(t,e){var r=t.shared;e.set(r.framebuffer,\".next\",\"null\");var n=r.context;return e.set(n,\".\"+Vi,n+\".\"+Yi),e.set(n,\".\"+Hi,n+\".\"+Wi),\"null\"})}if(Pi in n){var a=n[Pi];return Yt(a,function(t,e){var r=t.invoke(e,a),n=t.shared,i=n.framebuffer,o=e.def(i,\".getFramebuffer(\",r,\")\");de.optional(function(){t.assert(e,\"!\"+r+\"||\"+o,\"invalid framebuffer object\")}),e.set(i,\".next\",o);var s=n.context;return e.set(s,\".\"+Vi,o+\"?\"+o+\".width:\"+s+\".\"+Yi),e.set(s,\".\"+Hi,o+\"?\"+o+\".height:\"+s+\".\"+Wi),o})}return null}function _(t,e,r){function n(t){if(t in i){var n=i[t];de.commandType(n,\"object\",\"invalid \"+t,r.commandStr);var o,s,l=!0,u=0|n.x,c=0|n.y;return\"width\"in n?(o=0|n.width,de.command(o>=0,\"invalid \"+t,r.commandStr)):l=!1,\"height\"in n?(s=0|n.height,de.command(s>=0,\"invalid \"+t,r.commandStr)):l=!1,new Ht(!l&&e&&e.thisDep,!l&&e&&e.contextDep,!l&&e&&e.propDep,function(t,e){var r=t.shared.context,i=o;\"width\"in n||(i=e.def(r,\".\",Vi,\"-\",u));var a=s;return\"height\"in n||(a=e.def(r,\".\",Hi,\"-\",c)),[u,c,i,a]})}if(t in a){var h=a[t],f=Yt(h,function(e,r){var n=e.invoke(r,h);de.optional(function(){e.assert(r,n+\"&&typeof \"+n+'===\"object\"',\"invalid \"+t)});var i=e.shared.context,a=r.def(n,\".x|0\"),o=r.def(n,\".y|0\"),s=r.def('\"width\" in ',n,\"?\",n,\".width|0:\",\"(\",i,\".\",Vi,\"-\",a,\")\"),l=r.def('\"height\" in ',n,\"?\",n,\".height|0:\",\"(\",i,\".\",Hi,\"-\",o,\")\");return de.optional(function(){e.assert(r,s+\">=0&&\"+l+\">=0\",\"invalid \"+t)}),[a,o,s,l]});return e&&(f.thisDep=f.thisDep||e.thisDep,f.contextDep=f.contextDep||e.contextDep,f.propDep=f.propDep||e.propDep),f}return e?new Ht(e.thisDep,e.contextDep,e.propDep,function(t,e){var r=t.shared.context;return[0,0,e.def(r,\".\",Vi),e.def(r,\".\",Hi)]}):null}var i=t.static,a=t.dynamic,o=n(zi);if(o){var s=o;o=new Ht(o.thisDep,o.contextDep,o.propDep,function(t,e){var r=s.append(t,e),n=t.shared.context;return e.set(n,\".\"+qi,r[2]),e.set(n,\".\"+Gi,r[3]),r})}return{viewport:o,scissor_box:n(Ii)}}function w(t){function r(t){if(t in i){var r=e.id(i[t]);de.optional(function(){c.shader(qa[t],r,de.guessCommand())});var n=Gt(function(){return r});return n.id=r,n}if(t in a){var o=a[t];return Yt(o,function(e,r){var n=e.invoke(r,o),i=r.def(e.shared.strings,\".id(\",n,\")\");return de.optional(function(){r(e.shared.shader,\".shader(\",qa[t],\",\",i,\",\",e.command,\");\")}),i})}return null}var n,i=t.static,a=t.dynamic,o=r(Ri),s=r(Oi),l=null;return qt(o)&&qt(s)?(l=c.program(s.id,o.id),n=Gt(function(t,e){return t.link(l)})):n=new Ht(o&&o.thisDep||s&&s.thisDep,o&&o.contextDep||s&&s.contextDep,o&&o.propDep||s&&s.propDep,function(t,e){var r,n=t.shared.shader;r=o?o.append(t,e):e.def(n,\".\",Ri);var i;i=s?s.append(t,e):e.def(n,\".\",Oi);var a=n+\".program(\"+i+\",\"+r;return de.optional(function(){a+=\",\"+t.command}),e.def(a+\")\")}),{frag:o,vert:s,progVar:n,program:l}}function M(t,e){function r(t,r){if(t in n){var a=0|n[t];return de.command(!r||a>=0,\"invalid \"+t,e.commandStr),Gt(function(t,e){return r&&(t.OFFSET=a),a})}if(t in i){var s=i[t];return Yt(s,function(e,n){var i=e.invoke(n,s);return r&&(e.OFFSET=i,de.optional(function(){e.assert(n,i+\">=0\",\"invalid \"+t)})),i})}return r&&o?Gt(function(t,e){return t.OFFSET=\"0\",0}):null}var n=t.static,i=t.dynamic,o=function(){if(Fi in n){var t=n[Fi];Ut(t)?t=a.getElements(a.create(t,!0)):t&&(t=a.getElements(t),de.command(t,\"invalid elements\",e.commandStr));var r=Gt(function(e,r){if(t){var n=e.link(t);return e.ELEMENTS=n,n}return e.ELEMENTS=null,null});return r.value=t,r}if(Fi in i){var o=i[Fi];return Yt(o,function(t,e){var r=t.shared,n=r.isBufferArgs,i=r.elements,a=t.invoke(e,o),s=e.def(\"null\"),l=e.def(n,\"(\",a,\")\"),u=t.cond(l).then(s,\"=\",i,\".createStream(\",a,\");\").else(s,\"=\",i,\".getElements(\",a,\");\");return de.optional(function(){t.assert(u.else,\"!\"+a+\"||\"+s,\"invalid elements\")}),e.entry(u),e.exit(t.cond(l).then(i,\".destroyStream(\",s,\");\")),t.ELEMENTS=s,s})}return null}(),s=r(Bi,!0);return{elements:o,primitive:function(){if(ji in n){var t=n[ji];return de.commandParameter(t,Be,\"invalid primitve\",e.commandStr),Gt(function(e,r){return Be[t]})}if(ji in i){var r=i[ji];return Yt(r,function(t,e){var n=t.constants.primTypes,i=t.invoke(e,r);return de.optional(function(){t.assert(e,i+\" in \"+n,\"invalid primitive, must be one of \"+Object.keys(Be))}),e.def(n,\"[\",i,\"]\")})}return o?qt(o)?Gt(o.value?function(t,e){return e.def(t.ELEMENTS,\".primType\")}:function(){return Aa}):new Ht(o.thisDep,o.contextDep,o.propDep,function(t,e){var r=t.ELEMENTS;return e.def(r,\"?\",r,\".primType:\",Aa)}):null}(),count:function(){if(Ni in n){var t=0|n[Ni];return de.command(\"number\"==typeof t&&t>=0,\"invalid vertex count\",e.commandStr),Gt(function(){return t})}if(Ni in i){var r=i[Ni];return Yt(r,function(t,e){var n=t.invoke(e,r);return de.optional(function(){t.assert(e,\"typeof \"+n+'===\"number\"&&'+n+\">=0&&\"+n+\"===(\"+n+\"|0)\",\"invalid vertex count\")}),n})}if(o){if(qt(o)){if(o)return s?new Ht(s.thisDep,s.contextDep,s.propDep,function(t,e){var r=e.def(t.ELEMENTS,\".vertCount-\",t.OFFSET);return de.optional(function(){t.assert(e,r+\">=0\",\"invalid vertex offset/element buffer too small\")}),r}):Gt(function(t,e){return e.def(t.ELEMENTS,\".vertCount\")});var a=Gt(function(){return-1});return de.optional(function(){a.MISSING=!0}),a}var l=new Ht(o.thisDep||s.thisDep,o.contextDep||s.contextDep,o.propDep||s.propDep,function(t,e){var r=t.ELEMENTS;return t.OFFSET?e.def(r,\"?\",r,\".vertCount-\",t.OFFSET,\":-1\"):e.def(r,\"?\",r,\".vertCount:-1\")});return de.optional(function(){l.DYNAMIC=!0}),l}return null}(),instances:r(Ui,!1),offset:s}}function k(t,e){var r=t.static,i=t.dynamic,a={};return et.forEach(function(t){function o(e,n){if(t in r){var o=e(r[t]);a[s]=Gt(function(){return o})}else if(t in i){var l=i[t];a[s]=Yt(l,function(t,e){return n(t,e,t.invoke(e,l))})}}var s=m(t);switch(t){case vi:case si:case oi:case Ai:case hi:case Ci:case xi:case wi:case Mi:case pi:return o(function(r){return de.commandType(r,\"boolean\",t,e.commandStr),r},function(e,r,n){return de.optional(function(){e.assert(r,\"typeof \"+n+'===\"boolean\"',\"invalid flag \"+t,e.commandStr)}),n});case fi:return o(function(r){return de.commandParameter(r,Va,\"invalid \"+t,e.commandStr),Va[r]},function(e,r,n){var i=e.constants.compareFuncs;return de.optional(function(){e.assert(r,n+\" in \"+i,\"invalid \"+t+\", must be one of \"+Object.keys(Va))}),r.def(i,\"[\",n,\"]\")});case di:return o(function(t){return de.command(mt(t)&&2===t.length&&\"number\"==typeof t[0]&&\"number\"==typeof t[1]&&t[0]<=t[1],\"depth range is 2d array\",e.commandStr),t},function(t,e,r){return de.optional(function(){t.assert(e,t.shared.isArrayLike+\"(\"+r+\")&&\"+r+\".length===2&&typeof \"+r+'[0]===\"number\"&&typeof '+r+'[1]===\"number\"&&'+r+\"[0]<=\"+r+\"[1]\",\"depth range must be a 2d array\")}),[e.def(\"+\",r,\"[0]\"),e.def(\"+\",r,\"[1]\")]});case ci:return o(function(t){de.commandType(t,\"object\",\"blend.func\",e.commandStr);var r=\"srcRGB\"in t?t.srcRGB:t.src,n=\"srcAlpha\"in t?t.srcAlpha:t.src,i=\"dstRGB\"in t?t.dstRGB:t.dst,a=\"dstAlpha\"in t?t.dstAlpha:t.dst;return de.commandParameter(r,Ba,s+\".srcRGB\",e.commandStr),de.commandParameter(n,Ba,s+\".srcAlpha\",e.commandStr),de.commandParameter(i,Ba,s+\".dstRGB\",e.commandStr),de.commandParameter(a,Ba,s+\".dstAlpha\",e.commandStr),de.command(-1===Ua.indexOf(r+\", \"+i),\"unallowed blending combination (srcRGB, dstRGB) = (\"+r+\", \"+i+\")\",e.commandStr),[Ba[r],Ba[i],Ba[n],Ba[a]]},function(e,r,n){function i(i,o){var s=r.def('\"',i,o,'\" in ',n,\"?\",n,\".\",i,o,\":\",n,\".\",i);return de.optional(function(){e.assert(r,s+\" in \"+a,\"invalid \"+t+\".\"+i+o+\", must be one of \"+Object.keys(Ba))}),s}var a=e.constants.blendFuncs;de.optional(function(){e.assert(r,n+\"&&typeof \"+n+'===\"object\"',\"invalid blend func, must be an object\")});var o=i(\"src\",\"RGB\"),s=i(\"dst\",\"RGB\");de.optional(function(){var t=e.constants.invalidBlendCombinations;e.assert(r,t+\".indexOf(\"+o+'+\", \"+'+s+\") === -1 \",\"unallowed blending combination for (srcRGB, dstRGB)\")});var l=r.def(a,\"[\",o,\"]\"),u=r.def(a,\"[\",i(\"src\",\"Alpha\"),\"]\");return[l,r.def(a,\"[\",s,\"]\"),u,r.def(a,\"[\",i(\"dst\",\"Alpha\"),\"]\")]});case ui:return o(function(r){return\"string\"==typeof r?(de.commandParameter(r,Z,\"invalid \"+t,e.commandStr),[Z[r],Z[r]]):\"object\"==typeof r?(de.commandParameter(r.rgb,Z,t+\".rgb\",e.commandStr),de.commandParameter(r.alpha,Z,t+\".alpha\",e.commandStr),[Z[r.rgb],Z[r.alpha]]):void de.commandRaise(\"invalid blend.equation\",e.commandStr)},function(e,r,n){var i=e.constants.blendEquations,a=r.def(),o=r.def(),s=e.cond(\"typeof \",n,'===\"string\"');return de.optional(function(){function r(t,r,n){e.assert(t,n+\" in \"+i,\"invalid \"+r+\", must be one of \"+Object.keys(Z))}r(s.then,t,n),e.assert(s.else,n+\"&&typeof \"+n+'===\"object\"',\"invalid \"+t),r(s.else,t+\".rgb\",n+\".rgb\"),r(s.else,t+\".alpha\",n+\".alpha\")}),s.then(a,\"=\",o,\"=\",i,\"[\",n,\"];\"),s.else(a,\"=\",i,\"[\",n,\".rgb];\",o,\"=\",i,\"[\",n,\".alpha];\"),r(s),[a,o]});case li:return o(function(t){return de.command(mt(t)&&4===t.length,\"blend.color must be a 4d array\",e.commandStr),J(4,function(e){return+t[e]})},function(t,e,r){return de.optional(function(){t.assert(e,t.shared.isArrayLike+\"(\"+r+\")&&\"+r+\".length===4\",\"blend.color must be a 4d array\")}),J(4,function(t){return e.def(\"+\",r,\"[\",t,\"]\")})});case Ti:return o(function(t){return de.commandType(t,\"number\",s,e.commandStr),0|t},function(t,e,r){return de.optional(function(){t.assert(e,\"typeof \"+r+'===\"number\"',\"invalid stencil.mask\")}),e.def(r,\"|0\")});case Si:return o(function(r){de.commandType(r,\"object\",s,e.commandStr);var n=r.cmp||\"keep\",i=r.ref||0,a=\"mask\"in r?r.mask:-1;return de.commandParameter(n,Va,t+\".cmp\",e.commandStr),de.commandType(i,\"number\",t+\".ref\",e.commandStr),de.commandType(a,\"number\",t+\".mask\",e.commandStr),[Va[n],i,a]},function(t,e,r){var n=t.constants.compareFuncs;return de.optional(function(){function i(){t.assert(e,Array.prototype.join.call(arguments,\"\"),\"invalid stencil.func\")}i(r+\"&&typeof \",r,'===\"object\"'),i('!(\"cmp\" in ',r,\")||(\",r,\".cmp in \",n,\")\")}),[e.def('\"cmp\" in ',r,\"?\",n,\"[\",r,\".cmp]\",\":\",Da),e.def(r,\".ref|0\"),e.def('\"mask\" in ',r,\"?\",r,\".mask|0:-1\")]});case Ei:case Li:return o(function(r){de.commandType(r,\"object\",s,e.commandStr);var n=r.fail||\"keep\",i=r.zfail||\"keep\",a=r.zpass||\"keep\";return de.commandParameter(n,Ha,t+\".fail\",e.commandStr),de.commandParameter(i,Ha,t+\".zfail\",e.commandStr),de.commandParameter(a,Ha,t+\".zpass\",e.commandStr),[t===Li?Sa:Ta,Ha[n],Ha[i],Ha[a]]},function(e,r,n){function i(i){return de.optional(function(){e.assert(r,'!(\"'+i+'\" in '+n+\")||(\"+n+\".\"+i+\" in \"+a+\")\",\"invalid \"+t+\".\"+i+\", must be one of \"+Object.keys(Ha))}),r.def('\"',i,'\" in ',n,\"?\",a,\"[\",n,\".\",i,\"]:\",Da)}var a=e.constants.stencilOps;return de.optional(function(){e.assert(r,n+\"&&typeof \"+n+'===\"object\"',\"invalid \"+t)}),[t===Li?Sa:Ta,i(\"fail\"),i(\"zfail\"),i(\"zpass\")]});case _i:return o(function(t){de.commandType(t,\"object\",s,e.commandStr);var r=0|t.factor,n=0|t.units;return de.commandType(r,\"number\",s+\".factor\",e.commandStr),de.commandType(n,\"number\",s+\".units\",e.commandStr),[r,n]},function(e,r,n){return de.optional(function(){e.assert(r,n+\"&&typeof \"+n+'===\"object\"',\"invalid \"+t)}),[r.def(n,\".factor|0\"),r.def(n,\".units|0\")]});case gi:return o(function(t){var r=0;return\"front\"===t?r=Ta:\"back\"===t&&(r=Sa),de.command(!!r,s,e.commandStr),r},function(t,e,r){return de.optional(function(){t.assert(e,r+'===\"front\"||'+r+'===\"back\"',\"invalid cull.face\")}),e.def(r,'===\"front\"?',Ta,\":\",Sa)});case bi:return o(function(t){return de.command(\"number\"==typeof t&&t>=n.lineWidthDims[0]&&t<=n.lineWidthDims[1],\"invalid line width, must positive number between \"+n.lineWidthDims[0]+\" and \"+n.lineWidthDims[1],e.commandStr),t},function(t,e,r){return de.optional(function(){t.assert(e,\"typeof \"+r+'===\"number\"&&'+r+\">=\"+n.lineWidthDims[0]+\"&&\"+r+\"<=\"+n.lineWidthDims[1],\"invalid line width\")}),r});case yi:return o(function(t){return de.commandParameter(t,Ga,s,e.commandStr),Ga[t]},function(t,e,r){return de.optional(function(){t.assert(e,r+'===\"cw\"||'+r+'===\"ccw\"',\"invalid frontFace, must be one of cw,ccw\")}),e.def(r+'===\"cw\"?'+Ea+\":\"+La)});case mi:return o(function(t){return de.command(mt(t)&&4===t.length,\"color.mask must be length 4 array\",e.commandStr),t.map(function(t){return!!t})},function(t,e,r){return de.optional(function(){t.assert(e,t.shared.isArrayLike+\"(\"+r+\")&&\"+r+\".length===4\",\"invalid color.mask\")}),J(4,function(t){return\"!!\"+r+\"[\"+t+\"]\"})});case ki:return o(function(t){de.command(\"object\"==typeof t&&t,s,e.commandStr);var r=\"value\"in t?t.value:1,n=!!t.invert;return de.command(\"number\"==typeof r&&r>=0&&r<=1,\"sample.coverage.value must be a number between 0 and 1\",e.commandStr),[r,n]},function(t,e,r){return de.optional(function(){t.assert(e,r+\"&&typeof \"+r+'===\"object\"',\"invalid sample.coverage\")}),[e.def('\"value\" in ',r,\"?+\",r,\".value:1\"),e.def(\"!!\",r,\".invert\")]})}}),a}function A(t,e){var r=t.static,n=t.dynamic,i={};return Object.keys(r).forEach(function(t){var n,a=r[t];if(\"number\"==typeof a||\"boolean\"==typeof a)n=Gt(function(){return a});else if(\"function\"==typeof a){var o=a._reglType;\"texture2d\"===o||\"textureCube\"===o?n=Gt(function(t){return t.link(a)}):\"framebuffer\"===o||\"framebufferCube\"===o?(de.command(a.color.length>0,'missing color attachment for framebuffer sent to uniform \"'+t+'\"',e.commandStr),n=Gt(function(t){return t.link(a.color[0])})):de.commandRaise('invalid data for uniform \"'+t+'\"',e.commandStr)}else mt(a)?n=Gt(function(e){return e.global.def(\"[\",J(a.length,function(r){return de.command(\"number\"==typeof a[r]||\"boolean\"==typeof a[r],\"invalid uniform \"+t,e.commandStr),a[r]}),\"]\")}):de.commandRaise('invalid or missing data for uniform \"'+t+'\"',e.commandStr);n.value=a,i[t]=n}),Object.keys(n).forEach(function(t){var e=n[t];i[t]=Yt(e,function(t,r){return t.invoke(r,e)})}),i}function T(t,r){var n=t.static,a=t.dynamic,o={};return Object.keys(n).forEach(function(t){var a=n[t],s=e.id(t),l=new X;if(Ut(a))l.state=$n,l.buffer=i.getBuffer(i.create(a,Zi,!1,!0)),l.type=0;else{var u=i.getBuffer(a);if(u)l.state=$n,l.buffer=u,l.type=0;else if(de.command(\"object\"==typeof a&&a,\"invalid data for attribute \"+t,r.commandStr),a.constant){var c=a.constant;l.buffer=\"null\",l.state=ti,\"number\"==typeof c?l.x=c:(de.command(mt(c)&&c.length>0&&c.length<=4,\"invalid constant for attribute \"+t,r.commandStr),Kn.forEach(function(t,e){e<c.length&&(l[t]=c[e])}))}else{u=Ut(a.buffer)?i.getBuffer(i.create(a.buffer,Zi,!1,!0)):i.getBuffer(a.buffer),de.command(!!u,'missing buffer for attribute \"'+t+'\"',r.commandStr);var h=0|a.offset;de.command(h>=0,'invalid offset for attribute \"'+t+'\"',r.commandStr);var f=0|a.stride;de.command(f>=0&&f<256,'invalid stride for attribute \"'+t+'\", must be integer betweeen [0, 255]',r.commandStr);var d=0|a.size;de.command(!(\"size\"in a)||d>0&&d<=4,'invalid size for attribute \"'+t+'\", must be 1,2,3,4',r.commandStr);var p=!!a.normalized,m=0;\"type\"in a&&(de.commandParameter(a.type,Ie,\"invalid type for attribute \"+t,r.commandStr),m=Ie[a.type]);var v=0|a.divisor;\"divisor\"in a&&(de.command(0===v||K,'cannot specify divisor for attribute \"'+t+'\", instancing not supported',r.commandStr),de.command(v>=0,'invalid divisor for attribute \"'+t+'\"',r.commandStr)),de.optional(function(){var e=r.commandStr,n=[\"buffer\",\"offset\",\"divisor\",\"normalized\",\"type\",\"size\",\"stride\"];Object.keys(a).forEach(function(r){de.command(n.indexOf(r)>=0,'unknown parameter \"'+r+'\" for attribute pointer \"'+t+'\" (valid parameters are '+n+\")\",e)})}),l.buffer=u,l.state=$n,l.size=d,l.normalized=p,l.type=m||u.dtype,l.offset=h,l.stride=f,l.divisor=v}}o[t]=Gt(function(t,e){var r=t.attribCache;if(s in r)return r[s];var n={isStream:!1};return Object.keys(l).forEach(function(t){n[t]=l[t]}),l.buffer&&(n.buffer=t.link(l.buffer),n.type=n.type||n.buffer+\".dtype\"),r[s]=n,n})}),Object.keys(a).forEach(function(t){function e(e,n){function i(t){n(u[t],\"=\",a,\".\",t,\"|0;\")}var a=e.invoke(n,r),o=e.shared,s=o.isBufferArgs,l=o.buffer;de.optional(function(){e.assert(n,a+\"&&(typeof \"+a+'===\"object\"||typeof '+a+'===\"function\")&&('+s+\"(\"+a+\")||\"+l+\".getBuffer(\"+a+\")||\"+l+\".getBuffer(\"+a+\".buffer)||\"+s+\"(\"+a+'.buffer)||(\"constant\" in '+a+\"&&(typeof \"+a+'.constant===\"number\"||'+o.isArrayLike+\"(\"+a+\".constant))))\",'invalid dynamic attribute \"'+t+'\"')});var u={isStream:n.def(!1)},c=new X;c.state=$n,Object.keys(c).forEach(function(t){u[t]=n.def(\"\"+c[t])});var h=u.buffer,f=u.type;return n(\"if(\",s,\"(\",a,\")){\",u.isStream,\"=true;\",h,\"=\",l,\".createStream(\",Zi,\",\",a,\");\",f,\"=\",h,\".dtype;\",\"}else{\",h,\"=\",l,\".getBuffer(\",a,\");\",\"if(\",h,\"){\",f,\"=\",h,\".dtype;\",'}else if(\"constant\" in ',a,\"){\",u.state,\"=\",ti,\";\",\"if(typeof \"+a+'.constant === \"number\"){',u[Kn[0]],\"=\",a,\".constant;\",Kn.slice(1).map(function(t){return u[t]}).join(\"=\"),\"=0;\",\"}else{\",Kn.map(function(t,e){return u[t]+\"=\"+a+\".constant.length>=\"+e+\"?\"+a+\".constant[\"+e+\"]:0;\"}).join(\"\"),\"}}else{\",\"if(\",s,\"(\",a,\".buffer)){\",h,\"=\",l,\".createStream(\",Zi,\",\",a,\".buffer);\",\"}else{\",h,\"=\",l,\".getBuffer(\",a,\".buffer);\",\"}\",f,'=\"type\" in ',a,\"?\",o.glTypes,\"[\",a,\".type]:\",h,\".dtype;\",u.normalized,\"=!!\",a,\".normalized;\"),i(\"size\"),i(\"offset\"),i(\"stride\"),i(\"divisor\"),n(\"}}\"),n.exit(\"if(\",u.isStream,\"){\",l,\".destroyStream(\",h,\");\",\"}\"),u}var r=a[t];o[t]=Yt(r,e)}),o}function S(t){var e=t.static,r=t.dynamic,n={};return Object.keys(e).forEach(function(t){var r=e[t];n[t]=Gt(function(t,e){return\"number\"==typeof r||\"boolean\"==typeof r?\"\"+r:t.link(r)})}),Object.keys(r).forEach(function(t){var e=r[t];n[t]=Yt(e,function(t,r){return t.invoke(r,e)})}),n}function E(t,e,r,n,i){function a(t){var e=u[t];e&&(h[t]=e)}var o=t.static,s=t.dynamic;de.optional(function(){function t(t){Object.keys(t).forEach(function(t){de.command(e.indexOf(t)>=0,'unknown parameter \"'+t+'\"',i.commandStr)})}var e=[Pi,Oi,Ri,Fi,ji,Bi,Ni,Ui,Di].concat(et);t(o),t(s)});var l=x(t,i),u=_(t,l,i),c=M(t,i),h=k(t,i),f=w(t,i);a(zi),a(m(Ii));var d=Object.keys(h).length>0,p={framebuffer:l,draw:c,shader:f,state:h,dirty:d};return p.profile=b(t,i),p.uniforms=A(r,i),p.attributes=T(e,i),p.context=S(n,i),p}function L(t,e,r){var n=t.shared,i=n.context,a=t.scope();Object.keys(r).forEach(function(n){e.save(i,\".\"+n);var o=r[n];a(i,\".\",n,\"=\",o.append(t,e),\";\")}),e(a)}function C(t,e,r,n){var i,a=t.shared,o=a.gl,s=a.framebuffer;Q&&(i=e.def(a.extensions,\".webgl_draw_buffers\"));var l,u=t.constants,c=u.drawBuffer,h=u.backBuffer;l=r?r.append(t,e):e.def(s,\".next\"),n||e(\"if(\",l,\"!==\",s,\".cur){\"),e(\"if(\",l,\"){\",o,\".bindFramebuffer(\",ja,\",\",l,\".framebuffer);\"),Q&&e(i,\".drawBuffersWEBGL(\",c,\"[\",l,\".colorAttachments.length]);\"),e(\"}else{\",o,\".bindFramebuffer(\",ja,\",null);\"),Q&&e(i,\".drawBuffersWEBGL(\",h,\");\"),e(\"}\",s,\".cur=\",l,\";\"),n||e(\"}\")}function I(t,e,r){var n=t.shared,i=n.gl,a=t.current,o=t.next,s=n.current,l=n.next,u=t.cond(s,\".dirty\");et.forEach(function(e){var n=m(e);if(!(n in r.state)){var c,h;if(n in o){c=o[n],h=a[n];var f=J($[n].length,function(t){return u.def(c,\"[\",t,\"]\")});u(t.cond(f.map(function(t,e){return t+\"!==\"+h+\"[\"+e+\"]\"}).join(\"||\")).then(i,\".\",nt[n],\"(\",f,\");\",f.map(function(t,e){return h+\"[\"+e+\"]=\"+t}).join(\";\"),\";\"))}else{c=u.def(l,\".\",n);var d=t.cond(c,\"!==\",s,\".\",n);u(d),n in rt?d(t.cond(c).then(i,\".enable(\",rt[n],\");\").else(i,\".disable(\",rt[n],\");\"),s,\".\",n,\"=\",c,\";\"):d(i,\".\",nt[n],\"(\",c,\");\",s,\".\",n,\"=\",c,\";\")}}}),0===Object.keys(r.state).length&&u(s,\".dirty=false;\"),e(u)}function z(t,e,r,n){var i=t.shared,a=t.current,o=i.current,s=i.gl;Vt(Object.keys(r)).forEach(function(i){var l=r[i];if(!n||n(l)){var u=l.append(t,e);if(rt[i]){var c=rt[i];qt(l)?u?e(s,\".enable(\",c,\");\"):e(s,\".disable(\",c,\");\"):e(t.cond(u).then(s,\".enable(\",c,\");\").else(s,\".disable(\",c,\");\")),e(o,\".\",i,\"=\",u,\";\")}else if(mt(u)){var h=a[i];e(s,\".\",nt[i],\"(\",u,\");\",u.map(function(t,e){return h+\"[\"+e+\"]=\"+t}).join(\";\"),\";\")}else e(s,\".\",nt[i],\"(\",u,\");\",o,\".\",i,\"=\",u,\";\")}})}function D(t,e){K&&(t.instancing=e.def(t.shared.extensions,\".angle_instanced_arrays\"))}function P(t,e,r,n,i){function a(){return\"undefined\"==typeof performance?\"Date.now()\":\"performance.now()\"}function o(t){u=e.def(),t(u,\"=\",a(),\";\"),\"string\"==typeof i?t(p,\".count+=\",i,\";\"):t(p,\".count++;\"),d&&(n?(c=e.def(),t(c,\"=\",v,\".getNumPendingQueries();\")):t(v,\".beginQuery(\",p,\");\"))}function s(t){t(p,\".cpuTime+=\",a(),\"-\",u,\";\"),d&&(n?t(v,\".pushScopeStats(\",c,\",\",v,\".getNumPendingQueries(),\",p,\");\"):t(v,\".endQuery();\"))}function l(t){var r=e.def(m,\".profile\");e(m,\".profile=\",t,\";\"),e.exit(m,\".profile=\",r,\";\")}var u,c,h,f=t.shared,p=t.stats,m=f.current,v=f.timer,g=r.profile;if(g){if(qt(g))return void(g.enable?(o(e),s(e.exit),l(\"true\")):l(\"false\"));h=g.append(t,e),l(h)}else h=e.def(m,\".profile\");var y=t.block();o(y),e(\"if(\",h,\"){\",y,\"}\");var b=t.block();s(b),e.exit(\"if(\",h,\"){\",b,\"}\")}function O(t,e,r,n,i){function a(t){switch(t){case ua:case da:case ga:return 2;case ca:case pa:case ya:return 3;case ha:case ma:case ba:return 4;default:return 1}}function o(r,n,i){function a(){e(\"if(!\",c,\".buffer){\",l,\".enableVertexAttribArray(\",u,\");}\");var r,a=i.type;if(r=i.size?e.def(i.size,\"||\",n):n,e(\"if(\",c,\".type!==\",a,\"||\",c,\".size!==\",r,\"||\",p.map(function(t){return c+\".\"+t+\"!==\"+i[t]}).join(\"||\"),\"){\",l,\".bindBuffer(\",Zi,\",\",f,\".buffer);\",l,\".vertexAttribPointer(\",[u,r,a,i.normalized,i.stride,i.offset],\");\",c,\".type=\",a,\";\",c,\".size=\",r,\";\",p.map(function(t){return c+\".\"+t+\"=\"+i[t]+\";\"}).join(\"\"),\"}\"),K){var o=i.divisor;e(\"if(\",c,\".divisor!==\",o,\"){\",t.instancing,\".vertexAttribDivisorANGLE(\",[u,o],\");\",c,\".divisor=\",o,\";}\")}}function o(){e(\"if(\",c,\".buffer){\",l,\".disableVertexAttribArray(\",u,\");\",\"}if(\",Kn.map(function(t,e){return c+\".\"+t+\"!==\"+d[e]}).join(\"||\"),\"){\",l,\".vertexAttrib4f(\",u,\",\",d,\");\",Kn.map(function(t,e){return c+\".\"+t+\"=\"+d[e]+\";\"}).join(\"\"),\"}\")}var l=s.gl,u=e.def(r,\".location\"),c=e.def(s.attributes,\"[\",u,\"]\"),h=i.state,f=i.buffer,d=[i.x,i.y,i.z,i.w],p=[\"buffer\",\"normalized\",\"offset\",\"stride\"];h===$n?a():h===ti?o():(e(\"if(\",h,\"===\",$n,\"){\"),a(),e(\"}else{\"),o(),e(\"}\"))}var s=t.shared;n.forEach(function(n){var s,l=n.name,u=r.attributes[l];if(u){if(!i(u))return;s=u.append(t,e)}else{if(!i(Ya))return;var c=t.scopeAttrib(l);de.optional(function(){t.assert(e,c+\".state\",\"missing attribute \"+l)}),s={},Object.keys(new X).forEach(function(t){s[t]=e.def(c,\".\",t)})}o(t.link(n),a(n.info.type),s)})}function R(t,r,n,i,a){for(var o,s=t.shared,l=s.gl,u=0;u<i.length;++u){var c,h=i[u],f=h.name,d=h.info.type,p=n.uniforms[f],m=t.link(h),v=m+\".location\";if(p){if(!a(p))continue;if(qt(p)){var g=p.value;if(de.command(null!==g&&void 0!==g,'missing uniform \"'+f+'\"',t.commandStr),d===Ma||d===ka){de.command(\"function\"==typeof g&&(d===Ma&&(\"texture2d\"===g._reglType||\"framebuffer\"===g._reglType)||d===ka&&(\"textureCube\"===g._reglType||\"framebufferCube\"===g._reglType)),\"invalid texture for uniform \"+f,t.commandStr);var y=t.link(g._texture||g.color[0]._texture);r(l,\".uniform1i(\",v,\",\",y+\".bind());\"),r.exit(y,\".unbind();\")}else if(d===xa||d===_a||d===wa){de.optional(function(){de.command(mt(g),\"invalid matrix for uniform \"+f,t.commandStr),de.command(d===xa&&4===g.length||d===_a&&9===g.length||d===wa&&16===g.length,\"invalid length for matrix uniform \"+f,t.commandStr)});var b=t.global.def(\"new Float32Array([\"+Array.prototype.slice.call(g)+\"])\"),x=2;d===_a?x=3:d===wa&&(x=4),r(l,\".uniformMatrix\",x,\"fv(\",v,\",false,\",b,\");\")}else{switch(d){case la:de.commandType(g,\"number\",\"uniform \"+f,t.commandStr),o=\"1f\";break;case ua:de.command(mt(g)&&2===g.length,\"uniform \"+f,t.commandStr),o=\"2f\";break;case ca:de.command(mt(g)&&3===g.length,\"uniform \"+f,t.commandStr),o=\"3f\";break;case ha:de.command(mt(g)&&4===g.length,\"uniform \"+f,t.commandStr),o=\"4f\";break;case va:de.commandType(g,\"boolean\",\"uniform \"+f,t.commandStr),o=\"1i\";break;case fa:de.commandType(g,\"number\",\"uniform \"+f,t.commandStr),o=\"1i\";break;case ga:case da:de.command(mt(g)&&2===g.length,\"uniform \"+f,t.commandStr),o=\"2i\";break;case ya:case pa:de.command(mt(g)&&3===g.length,\"uniform \"+f,t.commandStr),o=\"3i\";break;case ba:case ma:de.command(mt(g)&&4===g.length,\"uniform \"+f,t.commandStr),o=\"4i\"}r(l,\".uniform\",o,\"(\",v,\",\",mt(g)?Array.prototype.slice.call(g):g,\");\")}continue}c=p.append(t,r)}else{if(!a(Ya))continue;c=r.def(s.uniforms,\"[\",e.id(f),\"]\")}d===Ma?r(\"if(\",c,\"&&\",c,'._reglType===\"framebuffer\"){',c,\"=\",c,\".color[0];\",\"}\"):d===ka&&r(\"if(\",c,\"&&\",c,'._reglType===\"framebufferCube\"){',c,\"=\",c,\".color[0];\",\"}\"),de.optional(function(){function e(e,n){t.assert(r,e,'bad data or missing for uniform \"'+f+'\". '+n)}function n(t){e(\"typeof \"+c+'===\"'+t+'\"',\"invalid type, expected \"+t)}function i(r,n){e(s.isArrayLike+\"(\"+c+\")&&\"+c+\".length===\"+r,\"invalid vector, should have length \"+r,t.commandStr)}function a(r){e(\"typeof \"+c+'===\"function\"&&'+c+'._reglType===\"texture'+(r===Ki?\"2d\":\"Cube\")+'\"',\"invalid texture type\",t.commandStr)}switch(d){case fa:n(\"number\");break;case da:i(2,\"number\");break;case pa:i(3,\"number\");break;case ma:i(4,\"number\");break;case la:n(\"number\");break;case ua:i(2,\"number\");break;case ca:i(3,\"number\");break;case ha:i(4,\"number\");break;case va:n(\"boolean\");break;case ga:i(2,\"boolean\");break;case ya:i(3,\"boolean\");break;case ba:i(4,\"boolean\");break;case xa:i(4,\"number\");break;case _a:i(9,\"number\");break;case wa:i(16,\"number\");break;case Ma:a(Ki);break;case ka:a(Qi)}});var _=1;switch(d){case Ma:case ka:var w=r.def(c,\"._texture\");r(l,\".uniform1i(\",v,\",\",w,\".bind());\"),r.exit(w,\".unbind();\");continue;case fa:case va:o=\"1i\";break;case da:case ga:o=\"2i\",_=2;break;case pa:case ya:o=\"3i\",_=3;break;case ma:case ba:o=\"4i\",_=4;break;case la:o=\"1f\";break;case ua:o=\"2f\",_=2;break;case ca:o=\"3f\",_=3;break;case ha:o=\"4f\",_=4;break;case xa:o=\"Matrix2fv\";break;case _a:o=\"Matrix3fv\";break;case wa:o=\"Matrix4fv\"}if(r(l,\".uniform\",o,\"(\",v,\",\"),\"M\"===o.charAt(0)){var M=Math.pow(d-xa+2,2),k=t.global.def(\"new Float32Array(\",M,\")\");r(\"false,(Array.isArray(\",c,\")||\",c,\" instanceof Float32Array)?\",c,\":(\",J(M,function(t){return k+\"[\"+t+\"]=\"+c+\"[\"+t+\"]\"}),\",\",k,\")\")}else r(_>1?J(_,function(t){return c+\"[\"+t+\"]\"}):c);r(\");\")}}function F(t,e,r,n){function i(i){var a=c[i];return a?a.contextDep&&n.contextDynamic||a.propDep?a.append(t,r):a.append(t,e):e.def(u,\".\",i)}function a(){function t(){r(v,\".drawElementsInstancedANGLE(\",[f,p,g,d+\"<<((\"+g+\"-\"+Qn+\")>>1)\",m],\");\")}function e(){r(v,\".drawArraysInstancedANGLE(\",[f,d,p,m],\");\")}h?y?t():(r(\"if(\",h,\"){\"),t(),r(\"}else{\"),e(),r(\"}\")):e()}function o(){function t(){r(l+\".drawElements(\"+[f,p,g,d+\"<<((\"+g+\"-\"+Qn+\")>>1)\"]+\");\")}function e(){r(l+\".drawArrays(\"+[f,d,p]+\");\")}h?y?t():(r(\"if(\",h,\"){\"),t(),r(\"}else{\"),e(),r(\"}\")):e()}var s=t.shared,l=s.gl,u=s.draw,c=n.draw,h=function(){var i,a=c.elements,o=e;return a?((a.contextDep&&n.contextDynamic||a.propDep)&&(o=r),i=a.append(t,o)):i=o.def(u,\".\",Fi),i&&o(\"if(\"+i+\")\"+l+\".bindBuffer(\"+Ji+\",\"+i+\".buffer.buffer);\"),i}(),f=i(ji),d=i(Bi),p=function(){var i,a=c.count,o=e;return a?((a.contextDep&&n.contextDynamic||a.propDep)&&(o=r),i=a.append(t,o),de.optional(function(){a.MISSING&&t.assert(e,\"false\",\"missing vertex count\"),a.DYNAMIC&&t.assert(o,i+\">=0\",\"missing vertex count\")})):(i=o.def(u,\".\",Ni),de.optional(function(){t.assert(o,i+\">=0\",\"missing vertex count\")})),i}();if(\"number\"==typeof p){if(0===p)return}else r(\"if(\",p,\"){\"),r.exit(\"}\");var m,v;K&&(m=i(Ui),v=t.instancing);var g=h+\".type\",y=c.elements&&qt(c.elements);K&&(\"number\"!=typeof m||m>=0)?\"string\"==typeof m?(r(\"if(\",m,\">0){\"),a(),r(\"}else if(\",m,\"<0){\"),o(),r(\"}\")):a():o()}function j(t,e,r,n,i){var a=y(),o=a.proc(\"body\",i);return de.optional(function(){a.commandStr=e.commandStr,a.command=a.link(e.commandStr)}),K&&(a.instancing=o.def(a.shared.extensions,\".angle_instanced_arrays\")),t(a,o,r,n),a.compile().body}function N(t,e,r,n){D(t,e),O(t,e,r,n.attributes,function(){return!0}),R(t,e,r,n.uniforms,function(){return!0}),F(t,e,e,r)}function B(t,e){var r=t.proc(\"draw\",1);D(t,r),L(t,r,e.context),C(t,r,e.framebuffer),I(t,r,e),z(t,r,e.state),P(t,r,e,!1,!0);var n=e.shader.progVar.append(t,r);if(r(t.shared.gl,\".useProgram(\",n,\".program);\"),e.shader.program)N(t,r,e,e.shader.program);else{var i=t.global.def(\"{}\"),a=r.def(n,\".id\"),o=r.def(i,\"[\",a,\"]\");r(t.cond(o).then(o,\".call(this,a0);\").else(o,\"=\",i,\"[\",a,\"]=\",t.link(function(r){return j(N,t,e,r,1)}),\"(\",n,\");\",o,\".call(this,a0);\"))}Object.keys(e.state).length>0&&r(t.shared.current,\".dirty=true;\")}function U(t,e,r,n){function i(){return!0}t.batchId=\"a1\",D(t,e),O(t,e,r,n.attributes,i),R(t,e,r,n.uniforms,i),F(t,e,e,r)}function V(t,e,r,n){function i(t){return t.contextDep&&o||t.propDep}function a(t){return!i(t)}D(t,e);var o=r.contextDep,s=e.def(),l=e.def();t.shared.props=l,t.batchId=s;var u=t.scope(),c=t.scope();if(e(u.entry,\"for(\",s,\"=0;\",s,\"<\",\"a1\",\";++\",s,\"){\",l,\"=\",\"a0\",\"[\",s,\"];\",c,\"}\",u.exit),r.needsContext&&L(t,c,r.context),r.needsFramebuffer&&C(t,c,r.framebuffer),z(t,c,r.state,i),\n", "r.profile&&i(r.profile)&&P(t,c,r,!1,!0),n)O(t,u,r,n.attributes,a),O(t,c,r,n.attributes,i),R(t,u,r,n.uniforms,a),R(t,c,r,n.uniforms,i),F(t,u,c,r);else{var h=t.global.def(\"{}\"),f=r.shader.progVar.append(t,c),d=c.def(f,\".id\"),p=c.def(h,\"[\",d,\"]\");c(t.shared.gl,\".useProgram(\",f,\".program);\",\"if(!\",p,\"){\",p,\"=\",h,\"[\",d,\"]=\",t.link(function(e){return j(U,t,r,e,2)}),\"(\",f,\");}\",p,\".call(this,a0[\",s,\"],\",s,\");\")}}function H(t,e){function r(t){return t.contextDep&&i||t.propDep}var n=t.proc(\"batch\",2);t.batchId=\"0\",D(t,n);var i=!1,a=!0;Object.keys(e.context).forEach(function(t){i=i||e.context[t].propDep}),i||(L(t,n,e.context),a=!1);var o=e.framebuffer,s=!1;o?(o.propDep?i=s=!0:o.contextDep&&i&&(s=!0),s||C(t,n,o)):C(t,n,null),e.state.viewport&&e.state.viewport.propDep&&(i=!0),I(t,n,e),z(t,n,e.state,function(t){return!r(t)}),e.profile&&r(e.profile)||P(t,n,e,!1,\"a1\"),e.contextDep=i,e.needsContext=a,e.needsFramebuffer=s;var l=e.shader.progVar;if(l.contextDep&&i||l.propDep)V(t,n,e,null);else{var u=l.append(t,n);if(n(t.shared.gl,\".useProgram(\",u,\".program);\"),e.shader.program)V(t,n,e,e.shader.program);else{var c=t.global.def(\"{}\"),h=n.def(u,\".id\"),f=n.def(c,\"[\",h,\"]\");n(t.cond(f).then(f,\".call(this,a0,a1);\").else(f,\"=\",c,\"[\",h,\"]=\",t.link(function(r){return j(V,t,e,r,2)}),\"(\",u,\");\",f,\".call(this,a0,a1);\"))}}Object.keys(e.state).length>0&&n(t.shared.current,\".dirty=true;\")}function q(t,r){function n(e){var n=r.shader[e];n&&i.set(a.shader,\".\"+e,n.append(t,i))}var i=t.proc(\"scope\",3);t.batchId=\"a2\";var a=t.shared,o=a.current;L(t,i,r.context),r.framebuffer&&r.framebuffer.append(t,i),Vt(Object.keys(r.state)).forEach(function(e){var n=r.state[e],o=n.append(t,i);mt(o)?o.forEach(function(r,n){i.set(t.next[e],\"[\"+n+\"]\",r)}):i.set(a.next,\".\"+e,o)}),P(t,i,r,!0,!0),[Fi,Bi,Ni,Ui,ji].forEach(function(e){var n=r.draw[e];n&&i.set(a.draw,\".\"+e,\"\"+n.append(t,i))}),Object.keys(r.uniforms).forEach(function(n){i.set(a.uniforms,\"[\"+e.id(n)+\"]\",r.uniforms[n].append(t,i))}),Object.keys(r.attributes).forEach(function(e){var n=r.attributes[e].append(t,i),a=t.scopeAttrib(e);Object.keys(new X).forEach(function(t){i.set(a,\".\"+t,n[t])})}),n(Oi),n(Ri),Object.keys(r.state).length>0&&(i(o,\".dirty=true;\"),i.exit(o,\".dirty=true;\")),i(\"a1(\",t.shared.context,\",a0,\",t.batchId,\");\")}function G(t){if(\"object\"==typeof t&&!mt(t)){for(var e=Object.keys(t),r=0;r<e.length;++r)if(ve.isDynamic(t[e[r]]))return!0;return!1}}function Y(t,e,r){function n(t,e){o.forEach(function(r){var n=i[r];if(ve.isDynamic(n)){var a=t.invoke(e,n);e(c,\".\",r,\"=\",a,\";\")}})}var i=e.static[r];if(i&&G(i)){var a=t.global,o=Object.keys(i),s=!1,l=!1,u=!1,c=t.global.def(\"{}\");o.forEach(function(e){var r=i[e];if(ve.isDynamic(r)){\"function\"==typeof r&&(r=i[e]=ve.unbox(r));var n=Yt(r,null);s=s||n.thisDep,u=u||n.propDep,l=l||n.contextDep}else{switch(a(c,\".\",e,\"=\"),typeof r){case\"number\":a(r);break;case\"string\":a('\"',r,'\"');break;case\"object\":Array.isArray(r)&&a(\"[\",r.join(),\"]\");break;default:a(t.link(r))}a(\";\")}}),e.dynamic[r]=new ve.DynamicVariable(ai,{thisDep:s,contextDep:l,propDep:u,ref:c,append:n}),delete e.static[r]}}function W(t,e,r,n,i){var a=y();a.stats=a.link(i),Object.keys(e.static).forEach(function(t){Y(a,e,t)}),Xi.forEach(function(e){Y(a,t,e)});var o=E(t,e,r,n,a);return B(a,o),q(a,o),H(a,o),a.compile()}var X=u.Record,Z={add:32774,subtract:32778,\"reverse subtract\":32779};r.ext_blend_minmax&&(Z.min=Ca,Z.max=Ia);var K=r.angle_instanced_arrays,Q=r.webgl_draw_buffers,$={dirty:!0,profile:p.profile},tt={},et=[],rt={},nt={};v(oi,ea),v(si,ta),g(li,\"blendColor\",[0,0,0,0]),g(ui,\"blendEquationSeparate\",[Ra,Ra]),g(ci,\"blendFuncSeparate\",[Oa,Pa,Oa,Pa]),v(hi,na,!0),g(fi,\"depthFunc\",Fa),g(di,\"depthRange\",[0,1]),g(pi,\"depthMask\",!0),g(mi,mi,[!0,!0,!0,!0]),v(vi,$i),g(gi,\"cullFace\",Sa),g(yi,yi,La),g(bi,bi,1),v(xi,aa),g(_i,\"polygonOffset\",[0,0]),v(wi,oa),v(Mi,sa),g(ki,\"sampleCoverage\",[1,!1]),v(Ai,ra),g(Ti,\"stencilMask\",-1),g(Si,\"stencilFunc\",[za,0,-1]),g(Ei,\"stencilOpSeparate\",[Ta,Da,Da,Da]),g(Li,\"stencilOpSeparate\",[Sa,Da,Da,Da]),v(Ci,ia),g(Ii,\"scissor\",[0,0,t.drawingBufferWidth,t.drawingBufferHeight]),g(zi,zi,[0,0,t.drawingBufferWidth,t.drawingBufferHeight]);var it={gl:t,context:f,strings:e,next:tt,current:$,draw:h,elements:a,buffer:i,shader:c,attributes:u.state,uniforms:l,framebuffer:s,extensions:r,timer:d,isBufferArgs:Ut},at={primTypes:Be,compareFuncs:Va,blendFuncs:Ba,blendEquations:Z,stencilOps:Ha,glTypes:Ie,orientationType:Ga};de.optional(function(){it.isArrayLike=mt}),Q&&(at.backBuffer=[Sa],at.drawBuffer=J(n.maxDrawbuffers,function(t){return 0===t?[0]:J(t,function(t){return Na+t})}));var ot=0;return{next:tt,current:$,procs:function(){var e=y(),r=e.proc(\"poll\"),i=e.proc(\"refresh\"),a=e.block();r(a),i(a);var o=e.shared,s=o.gl,l=o.next,u=o.current;a(u,\".dirty=false;\"),C(e,r),C(e,i,null,!0);var c,h=t.getExtension(\"angle_instanced_arrays\");h&&(c=e.link(h));for(var f=0;f<n.maxAttributes;++f){var d=i.def(o.attributes,\"[\",f,\"]\"),p=e.cond(d,\".buffer\");p.then(s,\".enableVertexAttribArray(\",f,\");\",s,\".bindBuffer(\",Zi,\",\",d,\".buffer.buffer);\",s,\".vertexAttribPointer(\",f,\",\",d,\".size,\",d,\".type,\",d,\".normalized,\",d,\".stride,\",d,\".offset);\").else(s,\".disableVertexAttribArray(\",f,\");\",s,\".vertexAttrib4f(\",f,\",\",d,\".x,\",d,\".y,\",d,\".z,\",d,\".w);\",d,\".buffer=null;\"),i(p),h&&i(c,\".vertexAttribDivisorANGLE(\",f,\",\",d,\".divisor);\")}return Object.keys(rt).forEach(function(t){var n=rt[t],o=a.def(l,\".\",t),c=e.block();c(\"if(\",o,\"){\",s,\".enable(\",n,\")}else{\",s,\".disable(\",n,\")}\",u,\".\",t,\"=\",o,\";\"),i(c),r(\"if(\",o,\"!==\",u,\".\",t,\"){\",c,\"}\")}),Object.keys(nt).forEach(function(t){var n,o,c=nt[t],h=$[t],f=e.block();if(f(s,\".\",c,\"(\"),mt(h)){var d=h.length;n=e.global.def(l,\".\",t),o=e.global.def(u,\".\",t),f(J(d,function(t){return n+\"[\"+t+\"]\"}),\");\",J(d,function(t){return o+\"[\"+t+\"]=\"+n+\"[\"+t+\"];\"}).join(\"\")),r(\"if(\",J(d,function(t){return n+\"[\"+t+\"]!==\"+o+\"[\"+t+\"]\"}).join(\"||\"),\"){\",f,\"}\")}else n=a.def(l,\".\",t),o=a.def(u,\".\",t),f(n,\");\",u,\".\",t,\"=\",n,\";\"),r(\"if(\",n,\"!==\",o,\"){\",f,\"}\");i(f)}),e.compile()}(),compile:W}}function Xt(){return{bufferCount:0,elementsCount:0,framebufferCount:0,shaderCount:0,textureCount:0,cubeCount:0,renderbufferCount:0,maxTextureUnits:0}}function Zt(t,e){for(var r=0;r<t.length;++r)if(t[r]===e)return r;return-1}function Jt(t){function e(){if(0===q.length)return k&&k.update(),void(J=null);J=ge.next(e),f();for(var t=q.length-1;t>=0;--t){var r=q[t];r&&r(E,null,0)}g.flush(),k&&k.update()}function r(){!J&&q.length>0&&(J=ge.next(e))}function n(){J&&(ge.cancel(e),J=null)}function i(t){t.preventDefault(),b=!0,n(),G.forEach(function(t){t()})}function a(t){g.getError(),b=!1,x.restore(),O.restore(),z.restore(),R.restore(),F.restore(),j.restore(),k&&k.restore(),N.procs.refresh(),r(),Y.forEach(function(t){t()})}function o(){q.length=0,n(),H&&(H.removeEventListener(eo,i),H.removeEventListener(ro,a)),O.clear(),j.clear(),F.clear(),R.clear(),D.clear(),z.clear(),k&&k.clear(),Z.forEach(function(t){t()})}function s(t){function e(t){var e={},r={};return Object.keys(t).forEach(function(n){var i=t[n];ve.isDynamic(i)?r[n]=ve.unbox(i,n):e[n]=i}),{dynamic:r,static:e}}function r(t){for(;d.length<t;)d.push(null);return d}function n(t,e){var n;if(b&&de.raise(\"context lost\"),\"function\"==typeof t)return f.call(this,null,t,0);if(\"function\"==typeof e){if(\"number\"==typeof t){for(n=0;n<t;++n)f.call(this,null,e,n);return}if(Array.isArray(t)){for(n=0;n<t.length;++n)f.call(this,t[n],e,n);return}return f.call(this,t,e,0)}if(\"number\"==typeof t){if(t>0)return h.call(this,r(0|t),0|t)}else{if(!Array.isArray(t))return c.call(this,t);if(t.length)return h.call(this,t,t.length)}}de(!!t,\"invalid args to regl({...})\"),de.type(t,\"object\",\"invalid args to regl({...})\");var i=e(t.context||{}),a=e(t.uniforms||{}),o=e(t.attributes||{}),s=e(function(t){function e(t){if(t in r){var e=r[t];delete r[t],Object.keys(e).forEach(function(n){r[t+\".\"+n]=e[n]})}}var r=$t({},t);return delete r.uniforms,delete r.attributes,delete r.context,\"stencil\"in r&&r.stencil.op&&(r.stencil.opBack=r.stencil.opFront=r.stencil.op,delete r.stencil.op),e(\"blend\"),e(\"depth\"),e(\"cull\"),e(\"stencil\"),e(\"polygonOffset\"),e(\"scissor\"),e(\"sample\"),r}(t)),l={gpuTime:0,cpuTime:0,count:0},u=N.compile(s,o,a,i,l),c=u.draw,h=u.batch,f=u.scope,d=[];return $t(n,{stats:l})}function l(t,e){var r=0;N.procs.poll();var n=e.color;n&&(g.clearColor(+n[0]||0,+n[1]||0,+n[2]||0,+n[3]||0),r|=Ka),\"depth\"in e&&(g.clearDepth(+e.depth),r|=Qa),\"stencil\"in e&&(g.clearStencil(0|e.stencil),r|=$a),de(!!r,\"called regl.clear with no buffer specified\"),g.clear(r)}function u(t){if(de(\"object\"==typeof t&&t,\"regl.clear() takes an object as input\"),\"framebuffer\"in t)if(t.framebuffer&&\"framebufferCube\"===t.framebuffer_reglType)for(var e=0;e<6;++e)K($t({framebuffer:t.framebuffer.faces[e]},t),l);else K(t,l);else l(null,t)}function c(t){function e(){function e(){var t=Zt(q,e);q[t]=q[q.length-1],q.length-=1,q.length<=0&&n()}var r=Zt(q,t);de(r>=0,\"cannot cancel a frame twice\"),q[r]=e}return de.type(t,\"function\",\"regl.frame() callback must be a function\"),q.push(t),r(),{cancel:e}}function h(){var t=V.viewport,e=V.scissor_box;t[0]=t[1]=e[0]=e[1]=0,E.viewportWidth=E.framebufferWidth=E.drawingBufferWidth=t[2]=e[2]=g.drawingBufferWidth,E.viewportHeight=E.framebufferHeight=E.drawingBufferHeight=t[3]=e[3]=g.drawingBufferHeight}function f(){E.tick+=1,E.time=p(),h(),N.procs.poll()}function d(){h(),N.procs.refresh(),k&&k.update()}function p(){return(ye()-A)/1e3}function m(t,e){de.type(e,\"function\",\"listener callback must be a function\");var r;switch(t){case\"frame\":return c(e);case\"lost\":r=G;break;case\"restore\":r=Y;break;case\"destroy\":r=Z;break;default:de.raise(\"invalid event, must be one of frame,lost,restore,destroy\")}return r.push(e),{cancel:function(){for(var t=0;t<r.length;++t)if(r[t]===e)return r[t]=r[r.length-1],void r.pop()}}}var v=W(t);if(!v)return null;var g=v.gl,y=g.getContextAttributes(),b=g.isContextLost(),x=X(g,v);if(!x)return null;var _=B(),w=Xt(),M=x.extensions,k=Ja(g,M),A=ye(),T=g.drawingBufferWidth,S=g.drawingBufferHeight,E={tick:0,time:0,viewportWidth:T,viewportHeight:S,framebufferWidth:T,framebufferHeight:S,drawingBufferWidth:T,drawingBufferHeight:S,pixelRatio:v.pixelRatio},L={},C={elements:null,primitive:4,count:-1,offset:0,instances:-1},I=be(g,M),z=ft(g,w,v),D=dt(g,M,z,w),P=Ot(g,M,I,z,_),O=Rt(g,_,w,v),R=It(g,M,I,function(){N.procs.poll()},E,w,v),F=Mn(g,M,I,w,v),j=Dt(g,M,I,R,F,w),N=Wt(g,_,M,I,z,D,R,j,L,P,O,C,E,k,v),U=Ft(g,j,N.procs.poll,E,y,M),V=N.next,H=g.canvas,q=[],G=[],Y=[],Z=[v.onDestroy],J=null;H&&(H.addEventListener(eo,i,!1),H.addEventListener(ro,a,!1));var K=j.setFBO=s({framebuffer:ve.define.call(null,no,\"framebuffer\")});d();var Q=$t(s,{clear:u,prop:ve.define.bind(null,no),context:ve.define.bind(null,io),this:ve.define.bind(null,ao),draw:s({}),buffer:function(t){return z.create(t,to,!1,!1)},elements:function(t){return D.create(t,!1)},texture:R.create2D,cube:R.createCube,renderbuffer:F.create,framebuffer:j.create,framebufferCube:j.createCube,attributes:y,frame:c,on:m,limits:I,hasExtension:function(t){return I.extensions.indexOf(t.toLowerCase())>=0},read:U,destroy:o,_gl:g,_refresh:d,poll:function(){f(),k&&k.update()},now:p,stats:w});return v.onDone(null,Q),Q}var Kt={\"[object Int8Array]\":5120,\"[object Int16Array]\":5122,\"[object Int32Array]\":5124,\"[object Uint8Array]\":5121,\"[object Uint8ClampedArray]\":5121,\"[object Uint16Array]\":5123,\"[object Uint32Array]\":5125,\"[object Float32Array]\":5126,\"[object Float64Array]\":5121,\"[object ArrayBuffer]\":5121},Qt=function(t){return Object.prototype.toString.call(t)in Kt},$t=function(t,e){for(var r=Object.keys(e),n=0;n<r.length;++n)t[r[n]]=e[r[n]];return t},te=[\"gl\",\"canvas\",\"container\",\"attributes\",\"pixelRatio\",\"extensions\",\"optionalExtensions\",\"profile\",\"onDone\"],ee=33071,re=9728,ne=9984,ie=9985,ae=9986,oe=9987,se=5126,le=32819,ue=32820,ce=33635,he=34042,fe={};fe[5120]=fe[5121]=1,fe[5122]=fe[5123]=fe[36193]=fe[ce]=fe[le]=fe[ue]=2,fe[5124]=fe[5125]=fe[se]=fe[he]=4;var de=$t(r,{optional:S,raise:e,commandRaise:M,command:k,parameter:i,commandParameter:A,constructor:u,type:o,commandType:T,isTypedArray:a,nni:s,oneOf:l,shaderError:b,linkError:x,callSite:m,saveCommandRef:_,saveDrawInfo:w,framebufferFormat:E,guessCommand:p,texture2D:I,textureCube:z}),pe=0,me=0,ve={DynamicVariable:D,define:F,isDynamic:j,unbox:N,accessor:R},ge={next:\"function\"==typeof requestAnimationFrame?function(t){return requestAnimationFrame(t)}:function(t){return setTimeout(t,16)},cancel:\"function\"==typeof cancelAnimationFrame?function(t){return cancelAnimationFrame(t)}:clearTimeout},ye=\"undefined\"!=typeof performance&&performance.now?function(){return performance.now()}:function(){return+new Date},be=function(t,e){var r=1;e.ext_texture_filter_anisotropic&&(r=t.getParameter(34047));var n=1,i=1;return e.webgl_draw_buffers&&(n=t.getParameter(34852),i=t.getParameter(36063)),{colorBits:[t.getParameter(3410),t.getParameter(3411),t.getParameter(3412),t.getParameter(3413)],depthBits:t.getParameter(3414),stencilBits:t.getParameter(3415),subpixelBits:t.getParameter(3408),extensions:Object.keys(e).filter(function(t){return!!e[t]}),maxAnisotropic:r,maxDrawbuffers:n,maxColorAttachments:i,pointSizeDims:t.getParameter(33901),lineWidthDims:t.getParameter(33902),maxViewportDims:t.getParameter(3386),maxCombinedTextureUnits:t.getParameter(35661),maxCubeMapSize:t.getParameter(34076),maxRenderbufferSize:t.getParameter(34024),maxTextureUnits:t.getParameter(34930),maxTextureSize:t.getParameter(3379),maxAttributes:t.getParameter(34921),maxVertexUniforms:t.getParameter(36347),maxVertexTextureUnits:t.getParameter(35660),maxVaryingVectors:t.getParameter(36348),maxFragmentUniforms:t.getParameter(36349),glsl:t.getParameter(35724),renderer:t.getParameter(7937),vendor:t.getParameter(7936),version:t.getParameter(7938)}},xe=function(t){return Object.keys(t).map(function(e){return t[e]})},_e=5120,we=5121,Me=5122,ke=5123,Ae=5124,Te=5125,Se=5126,Ee=J(8,function(){return[]}),Le={alloc:$,free:tt,allocType:et,freeType:rt},Ce={shape:lt,flatten:st},Ie={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},ze={dynamic:35048,stream:35040,static:35044},De=Ce.flatten,Pe=Ce.shape,Oe=35044,Re=35040,Fe=5121,je=5126,Ne=[];Ne[5120]=1,Ne[5122]=2,Ne[5124]=4,Ne[5121]=1,Ne[5123]=2,Ne[5125]=4,Ne[5126]=4;var Be={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,\"line loop\":2,\"line strip\":3,\"triangle strip\":5,\"triangle fan\":6},Ue=0,Ve=1,He=4,qe=5120,Ge=5121,Ye=5122,We=5123,Xe=5124,Ze=5125,Je=34963,Ke=35040,Qe=35044,$e=new Float32Array(1),tr=new Uint32Array($e.buffer),er=5123,rr=34467,nr=3553,ir=34067,ar=34069,or=6408,sr=6406,lr=6407,ur=6409,cr=6410,hr=32854,fr=32855,dr=36194,pr=32819,mr=32820,vr=33635,gr=34042,yr=6402,br=34041,xr=35904,_r=35906,wr=36193,Mr=33776,kr=33777,Ar=33778,Tr=33779,Sr=35986,Er=35987,Lr=34798,Cr=35840,Ir=35841,zr=35842,Dr=35843,Pr=36196,Or=5121,Rr=5123,Fr=5125,jr=5126,Nr=10242,Br=10243,Ur=10497,Vr=33071,Hr=33648,qr=10240,Gr=10241,Yr=9728,Wr=9729,Xr=9984,Zr=9985,Jr=9986,Kr=9987,Qr=33170,$r=4352,tn=4353,en=4354,rn=34046,nn=3317,an=37440,on=37441,sn=37443,ln=37444,un=33984,cn=[Xr,Jr,Zr,Kr],hn=[0,ur,cr,lr,or],fn={};fn[ur]=fn[sr]=fn[yr]=1,fn[br]=fn[cr]=2,fn[lr]=fn[xr]=3,fn[or]=fn[_r]=4;var dn=vt(\"HTMLCanvasElement\"),pn=vt(\"CanvasRenderingContext2D\"),mn=vt(\"HTMLImageElement\"),vn=vt(\"HTMLVideoElement\"),gn=Object.keys(Kt).concat([dn,pn,mn,vn]),yn=[];yn[Or]=1,yn[jr]=4,yn[wr]=2,yn[Rr]=2,yn[Fr]=4;var bn=[];bn[hr]=2,bn[fr]=2,bn[dr]=2,bn[br]=4,bn[Mr]=.5,bn[kr]=.5,bn[Ar]=1,bn[Tr]=1,bn[Sr]=.5,bn[Er]=1,bn[Lr]=1,bn[Cr]=.5,bn[Ir]=.25,bn[zr]=.5,bn[Dr]=.25,bn[Pr]=.5;var xn=36161,_n=32854,wn=[];wn[_n]=2,wn[32855]=2,wn[36194]=2,wn[33189]=2,wn[36168]=1,wn[34041]=4,wn[35907]=4,wn[34836]=16,wn[34842]=8,wn[34843]=6;var Mn=function(t,e,r,n,i){function a(t){this.id=h++,this.refCount=1,this.renderbuffer=t,this.format=_n,this.width=0,this.height=0,i.profile&&(this.stats={size:0})}function o(e){var r=e.renderbuffer;de(r,\"must not double destroy renderbuffer\"),t.bindRenderbuffer(xn,null),t.deleteRenderbuffer(r),e.renderbuffer=null,e.refCount=0,delete f[e.id],n.renderbufferCount--}function s(e,o){function s(e,n){var a=0,o=0,l=_n;if(\"object\"==typeof e&&e){var f=e;if(\"shape\"in f){var d=f.shape;de(Array.isArray(d)&&d.length>=2,\"invalid renderbuffer shape\"),a=0|d[0],o=0|d[1]}else\"radius\"in f&&(a=o=0|f.radius),\"width\"in f&&(a=0|f.width),\"height\"in f&&(o=0|f.height);\"format\"in f&&(de.parameter(f.format,u,\"invalid renderbuffer format\"),l=u[f.format])}else\"number\"==typeof e?(a=0|e,o=\"number\"==typeof n?0|n:a):e?de.raise(\"invalid arguments to renderbuffer constructor\"):a=o=1;if(de(a>0&&o>0&&a<=r.maxRenderbufferSize&&o<=r.maxRenderbufferSize,\"invalid renderbuffer size\"),a!==h.width||o!==h.height||l!==h.format)return s.width=h.width=a,s.height=h.height=o,h.format=l,t.bindRenderbuffer(xn,h.renderbuffer),t.renderbufferStorage(xn,l,a,o),i.profile&&(h.stats.size=zt(h.format,h.width,h.height)),s.format=c[h.format],s}function l(e,n){var a=0|e,o=0|n||a;return a===h.width&&o===h.height?s:(de(a>0&&o>0&&a<=r.maxRenderbufferSize&&o<=r.maxRenderbufferSize,\"invalid renderbuffer size\"),s.width=h.width=a,s.height=h.height=o,t.bindRenderbuffer(xn,h.renderbuffer),t.renderbufferStorage(xn,h.format,a,o),i.profile&&(h.stats.size=zt(h.format,h.width,h.height)),s)}var h=new a(t.createRenderbuffer());return f[h.id]=h,n.renderbufferCount++,s(e,o),s.resize=l,s._reglType=\"renderbuffer\",s._renderbuffer=h,i.profile&&(s.stats=h.stats),s.destroy=function(){h.decRef()},s}function l(){xe(f).forEach(function(e){e.renderbuffer=t.createRenderbuffer(),t.bindRenderbuffer(xn,e.renderbuffer),t.renderbufferStorage(xn,e.format,e.width,e.height)}),t.bindRenderbuffer(xn,null)}var u={rgba4:_n,rgb565:36194,\"rgb5 a1\":32855,depth:33189,stencil:36168,\"depth stencil\":34041};e.ext_srgb&&(u.srgba=35907),e.ext_color_buffer_half_float&&(u.rgba16f=34842,u.rgb16f=34843),e.webgl_color_buffer_float&&(u.rgba32f=34836);var c=[];Object.keys(u).forEach(function(t){var e=u[t];c[e]=t});var h=0,f={};return a.prototype.decRef=function(){--this.refCount<=0&&o(this)},i.profile&&(n.getTotalRenderbufferSize=function(){var t=0;return Object.keys(f).forEach(function(e){t+=f[e].stats.size}),t}),{create:s,clear:function(){xe(f).forEach(o)},restore:l}},kn=36160,An=36161,Tn=3553,Sn=34069,En=36064,Ln=36096,Cn=36128,In=33306,zn=36053,Dn=6402,Pn=[6408],On=[];On[6408]=4;var Rn=[];Rn[5121]=1,Rn[5126]=4,Rn[36193]=2;var Fn=33189,jn=36168,Nn=34041,Bn=[32854,32855,36194,35907,34842,34843,34836],Un={};Un[zn]=\"complete\",Un[36054]=\"incomplete attachment\",Un[36057]=\"incomplete dimensions\",Un[36055]=\"incomplete, missing attachment\",Un[36061]=\"unsupported\";var Vn=5126,Hn=35632,qn=35633,Gn=35718,Yn=35721,Wn=6408,Xn=5121,Zn=3333,Jn=5126,Kn=\"xyzw\".split(\"\"),Qn=5121,$n=1,ti=2,ei=0,ri=1,ni=2,ii=3,ai=4,oi=\"dither\",si=\"blend.enable\",li=\"blend.color\",ui=\"blend.equation\",ci=\"blend.func\",hi=\"depth.enable\",fi=\"depth.func\",di=\"depth.range\",pi=\"depth.mask\",mi=\"colorMask\",vi=\"cull.enable\",gi=\"cull.face\",yi=\"frontFace\",bi=\"lineWidth\",xi=\"polygonOffset.enable\",_i=\"polygonOffset.offset\",wi=\"sample.alpha\",Mi=\"sample.enable\",ki=\"sample.coverage\",Ai=\"stencil.enable\",Ti=\"stencil.mask\",Si=\"stencil.func\",Ei=\"stencil.opFront\",Li=\"stencil.opBack\",Ci=\"scissor.enable\",Ii=\"scissor.box\",zi=\"viewport\",Di=\"profile\",Pi=\"framebuffer\",Oi=\"vert\",Ri=\"frag\",Fi=\"elements\",ji=\"primitive\",Ni=\"count\",Bi=\"offset\",Ui=\"instances\",Vi=Pi+\"Width\",Hi=Pi+\"Height\",qi=zi+\"Width\",Gi=zi+\"Height\",Yi=\"drawingBufferWidth\",Wi=\"drawingBufferHeight\",Xi=[ci,ui,Si,Ei,Li,ki,zi,Ii,_i],Zi=34962,Ji=34963,Ki=3553,Qi=34067,$i=2884,ta=3042,ea=3024,ra=2960,na=2929,ia=3089,aa=32823,oa=32926,sa=32928,la=5126,ua=35664,ca=35665,ha=35666,fa=5124,da=35667,pa=35668,ma=35669,va=35670,ga=35671,ya=35672,ba=35673,xa=35674,_a=35675,wa=35676,Ma=35678,ka=35680,Aa=4,Ta=1028,Sa=1029,Ea=2304,La=2305,Ca=32775,Ia=32776,za=519,Da=7680,Pa=0,Oa=1,Ra=32774,Fa=513,ja=36160,Na=36064,Ba={0:0,1:1,zero:0,one:1,\"src color\":768,\"one minus src color\":769,\"src alpha\":770,\"one minus src alpha\":771,\"dst color\":774,\"one minus dst color\":775,\"dst alpha\":772,\"one minus dst alpha\":773,\"constant color\":32769,\"one minus constant color\":32770,\"constant alpha\":32771,\"one minus constant alpha\":32772,\"src alpha saturate\":776},Ua=[\"constant color, constant alpha\",\"one minus constant color, constant alpha\",\"constant color, one minus constant alpha\",\"one minus constant color, one minus constant alpha\",\"constant alpha, constant color\",\"constant alpha, one minus constant color\",\"one minus constant alpha, constant color\",\"one minus constant alpha, one minus constant color\"],Va={never:512,less:513,\"<\":513,equal:514,\"=\":514,\"==\":514,\"===\":514,lequal:515,\"<=\":515,greater:516,\">\":516,notequal:517,\"!=\":517,\"!==\":517,gequal:518,\">=\":518,always:519},Ha={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,\"increment wrap\":34055,\"decrement wrap\":34056,invert:5386},qa={frag:35632,vert:35633},Ga={cw:Ea,ccw:La},Ya=new Ht(!1,!1,!1,function(){}),Wa=34918,Xa=34919,Za=35007,Ja=function(t,e){function r(){return f.pop()||h.createQueryEXT()}function n(t){f.push(t)}function i(t){var e=r();h.beginQueryEXT(Za,e),d.push(e),u(d.length-1,d.length,t)}function a(){h.endQueryEXT(Za)}function o(){this.startQueryIndex=-1,this.endQueryIndex=-1,this.sum=0,this.stats=null}function s(){return p.pop()||new o}function l(t){p.push(t)}function u(t,e,r){var n=s();n.startQueryIndex=t,n.endQueryIndex=e,n.sum=0,n.stats=r,m.push(n)}function c(){var t,e,r=d.length;if(0!==r){g.length=Math.max(g.length,r+1),v.length=Math.max(v.length,r+1),v[0]=0,g[0]=0;var i=0;for(t=0,e=0;e<d.length;++e){var a=d[e];h.getQueryObjectEXT(a,Xa)?(i+=h.getQueryObjectEXT(a,Wa),n(a)):d[t++]=a,v[e+1]=i,g[e+1]=t}for(d.length=t,t=0,e=0;e<m.length;++e){var o=m[e],s=o.startQueryIndex,u=o.endQueryIndex;o.sum+=v[u]-v[s];var c=g[s],f=g[u];f===c?(o.stats.gpuTime+=o.sum/1e6,l(o)):(o.startQueryIndex=c,o.endQueryIndex=f,m[t++]=o)}m.length=t}}var h=e.ext_disjoint_timer_query;if(!h)return null;var f=[],d=[],p=[],m=[],v=[],g=[];return{beginQuery:i,endQuery:a,pushScopeStats:u,update:c,getNumPendingQueries:function(){return d.length},clear:function(){f.push.apply(f,d);for(var t=0;t<f.length;t++)h.deleteQueryEXT(f[t]);d.length=0,f.length=0},restore:function(){d.length=0,f.length=0}}},Ka=16384,Qa=256,$a=1024,to=34962,eo=\"webglcontextlost\",ro=\"webglcontextrestored\",no=1,io=2,ao=3;return Jt})},{}],500:[function(t,e,r){\"use strict\";function n(t,e){if(\"string\"!=typeof t)throw new TypeError(\"expected a string\");if(1===e)return t;if(2===e)return t+t;var r=t.length*e;if(i!==t||void 0===i)i=t,a=\"\";else if(a.length>=r)return a.substr(0,r);for(;r>a.length&&e>1;)1&e&&(a+=t),e>>=1,t+=t;return a+=t,a=a.substr(0,r)}var i,a=\"\";e.exports=n},{}],501:[function(e,r,n){!function(e,i){\"function\"==typeof t&&t.amd?t(i):\"object\"==typeof n?r.exports=i():e.resolveUrl=i()}(this,function(){function t(){var t=arguments.length;if(0===t)throw new Error(\"resolveUrl requires at least one argument; got none.\");var e=document.createElement(\"base\");if(e.href=arguments[0],1===t)return e.href;var r=document.getElementsByTagName(\"head\")[0];r.insertBefore(e,r.firstChild);for(var n,i=document.createElement(\"a\"),a=1;a<t;a++)i.href=arguments[a],n=i.href,e.href=n;return r.removeChild(e),n}return t})},{}],502:[function(t,e,r){(function(t){e.exports=t.performance&&t.performance.now?function(){return performance.now()}:Date.now||function(){return+new Date}}).call(this,\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{}],503:[function(t,e,r){\"use strict\";function n(t){for(var e=t.length,r=t[t.length-1],n=e,i=e-2;i>=0;--i){var a=r,o=t[i];r=a+o;var s=r-a,l=o-s;l&&(t[--n]=r,r=l)}for(var u=0,i=n;i<e;++i){var a=t[i],o=r;r=a+o;var s=r-a,l=o-s;l&&(t[u++]=l)}return t[u++]=r,t.length=u,t}e.exports=n},{}],504:[function(t,e,r){\"use strict\";function n(t,e){for(var r=new Array(t.length-1),n=1;n<t.length;++n)for(var i=r[n-1]=new Array(t.length-1),a=0,o=0;a<t.length;++a)a!==e&&(i[o++]=t[n][a]);return r}function i(t){for(var e=new Array(t),r=0;r<t;++r){e[r]=new Array(t);for(var n=0;n<t;++n)e[r][n]=[\"m[\",r,\"][\",n,\"]\"].join(\"\")}return e}function a(t){return 1&t?\"-\":\"\"}function o(t){if(1===t.length)return t[0];if(2===t.length)return[\"sum(\",t[0],\",\",t[1],\")\"].join(\"\");var e=t.length>>1;return[\"sum(\",o(t.slice(0,e)),\",\",o(t.slice(e)),\")\"].join(\"\")}function s(t){if(2===t.length)return[\"sum(prod(\",t[0][0],\",\",t[1][1],\"),prod(-\",t[0][1],\",\",t[1][0],\"))\"].join(\"\");for(var e=[],r=0;r<t.length;++r)e.push([\"scale(\",s(n(t,r)),\",\",a(r),t[0][r],\")\"].join(\"\"));return o(e)}function l(t){return new Function(\"sum\",\"scale\",\"prod\",\"compress\",[\"function robustDeterminant\",t,\"(m){return compress(\",s(i(t)),\")};return robustDeterminant\",t].join(\"\"))(c,h,u,f)}var u=t(\"two-product\"),c=t(\"robust-sum\"),h=t(\"robust-scale\"),f=t(\"robust-compress\"),d=6,p=[function(){return[0]},function(t){return[t[0][0]]}];!function(){for(;p.length<d;)p.push(l(p.length));for(var t=[],r=[\"function robustDeterminant(m){switch(m.length){\"],n=0;n<d;++n)t.push(\"det\"+n),r.push(\"case \",n,\":return det\",n,\"(m);\");r.push(\"}var det=CACHE[m.length];if(!det)det=CACHE[m.length]=gen(m.length);return det(m);}return robustDeterminant\"),t.push(\"CACHE\",\"gen\",r.join(\"\"));var i=Function.apply(void 0,t);e.exports=i.apply(void 0,p.concat([p,l]));for(var n=0;n<p.length;++n)e.exports[n]=p[n]}()},{\"robust-compress\":503,\"robust-scale\":510,\"robust-sum\":513,\"two-product\":539}],505:[function(t,e,r){\"use strict\";function n(t,e){for(var r=i(t[0],e[0]),n=1;n<t.length;++n)r=a(r,i(t[n],e[n]));return r}var i=t(\"two-product\"),a=t(\"robust-sum\");e.exports=n},{\"robust-sum\":513,\"two-product\":539}],506:[function(t,e,r){\"use strict\";function n(t,e){for(var r=new Array(t.length-1),n=1;n<t.length;++n)for(var i=r[n-1]=new Array(t.length-1),a=0,o=0;a<t.length;++a)a!==e&&(i[o++]=t[n][a]);return r}function i(t){for(var e=new Array(t),r=0;r<t;++r){e[r]=new Array(t);for(var n=0;n<t;++n)e[r][n]=[\"m\",n,\"[\",t-r-2,\"]\"].join(\"\")}return e}function a(t){if(1===t.length)return t[0];if(2===t.length)return[\"sum(\",t[0],\",\",t[1],\")\"].join(\"\");var e=t.length>>1;return[\"sum(\",a(t.slice(0,e)),\",\",a(t.slice(e)),\")\"].join(\"\")}function o(t,e){if(\"m\"===t.charAt(0)){if(\"w\"===e.charAt(0)){var r=t.split(\"[\");return[\"w\",e.substr(1),\"m\",r[0].substr(1)].join(\"\")}return[\"prod(\",t,\",\",e,\")\"].join(\"\")}return o(e,t)}function s(t){return!0&t?\"-\":\"\"}function l(t){if(2===t.length)return[[\"diff(\",o(t[0][0],t[1][1]),\",\",o(t[1][0],t[0][1]),\")\"].join(\"\")];for(var e=[],r=0;r<t.length;++r)e.push([\"scale(\",a(l(n(t,r))),\",\",s(r),t[0][r],\")\"].join(\"\"));return e}function u(t,e){for(var r=[],n=0;n<e-2;++n)r.push([\"prod(m\",t,\"[\",n,\"],m\",t,\"[\",n,\"])\"].join(\"\"));return a(r)}function c(t){for(var e=[],r=[],o=i(t),s=0;s<t;++s)o[0][s]=\"1\",o[t-1][s]=\"w\"+s;for(var s=0;s<t;++s)0==(1&s)?e.push.apply(e,l(n(o,s))):r.push.apply(r,l(n(o,s)));for(var c=a(e),h=a(r),f=\"exactInSphere\"+t,d=[],s=0;s<t;++s)d.push(\"m\"+s);for(var p=[\"function \",f,\"(\",d.join(),\"){\"],s=0;s<t;++s){p.push(\"var w\",s,\"=\",u(s,t),\";\");for(var b=0;b<t;++b)b!==s&&p.push(\"var w\",s,\"m\",b,\"=scale(w\",s,\",m\",b,\"[0]);\")}return p.push(\"var p=\",c,\",n=\",h,\",d=diff(p,n);return d[d.length-1];}return \",f),new Function(\"sum\",\"diff\",\"prod\",\"scale\",p.join(\"\"))(v,g,m,y)}function h(){return 0}function f(){return 0}function d(){return 0}function p(t){var e=x[t.length];return e||(e=x[t.length]=c(t.length)),e.apply(void 0,t)}var m=t(\"two-product\"),v=t(\"robust-sum\"),g=t(\"robust-subtract\"),y=t(\"robust-scale\"),b=6,x=[h,f,d];!function(){for(;x.length<=b;)x.push(c(x.length));for(var t=[],r=[\"slow\"],n=0;n<=b;++n)t.push(\"a\"+n),r.push(\"o\"+n);for(var i=[\"function testInSphere(\",t.join(),\"){switch(arguments.length){case 0:case 1:return 0;\"],n=2;n<=b;++n)i.push(\"case \",n,\":return o\",n,\"(\",t.slice(0,n).join(),\");\");i.push(\"}var s=new Array(arguments.length);for(var i=0;i<arguments.length;++i){s[i]=arguments[i]};return slow(s);}return testInSphere\"),r.push(i.join(\"\"));var a=Function.apply(void 0,r);e.exports=a.apply(void 0,[p].concat(x));for(var n=0;n<=b;++n)e.exports[n]=x[n]}()},{\"robust-scale\":510,\"robust-subtract\":512,\"robust-sum\":513,\"two-product\":539}],507:[function(t,e,r){\"use strict\";function n(t){for(var e=\"robustLinearSolve\"+t+\"d\",r=[\"function \",e,\"(A,b){return [\"],n=0;n<t;++n){r.push(\"det([\");for(var i=0;i<t;++i){i>0&&r.push(\",\"),r.push(\"[\");for(var a=0;a<t;++a)a>0&&r.push(\",\"),a===n?r.push(\"+b[\",i,\"]\"):r.push(\"+A[\",i,\"][\",a,\"]\");r.push(\"]\")}r.push(\"]),\")}r.push(\"det(A)]}return \",e);var s=new Function(\"det\",r.join(\"\"));return s(t<6?o[t]:o)}function i(){return[0]}function a(t,e){return[[e[0]],[t[0][0]]]}var o=t(\"robust-determinant\"),s=6,l=[i,a];!function(){for(;l.length<s;)l.push(n(l.length));for(var t=[],r=[\"function dispatchLinearSolve(A,b){switch(A.length){\"],i=0;i<s;++i)t.push(\"s\"+i),r.push(\"case \",i,\":return s\",i,\"(A,b);\");r.push(\"}var s=CACHE[A.length];if(!s)s=CACHE[A.length]=g(A.length);return s(A,b)}return dispatchLinearSolve\"),t.push(\"CACHE\",\"g\",r.join(\"\"));var a=Function.apply(void 0,t);e.exports=a.apply(void 0,l.concat([l,n]));for(var i=0;i<s;++i)e.exports[i]=l[i]}()},{\"robust-determinant\":504}],508:[function(t,e,r){\"use strict\";function n(t,e){for(var r=new Array(t.length-1),n=1;n<t.length;++n)for(var i=r[n-1]=new Array(t.length-1),a=0,o=0;a<t.length;++a)a!==e&&(i[o++]=t[n][a]);return r}function i(t){for(var e=new Array(t),r=0;r<t;++r){e[r]=new Array(t);for(var n=0;n<t;++n)e[r][n]=[\"m\",n,\"[\",t-r-1,\"]\"].join(\"\")}return e}function a(t){return 1&t?\"-\":\"\"}function o(t){if(1===t.length)return t[0];if(2===t.length)return[\"sum(\",t[0],\",\",t[1],\")\"].join(\"\");var e=t.length>>1;return[\"sum(\",o(t.slice(0,e)),\",\",o(t.slice(e)),\")\"].join(\"\")}function s(t){if(2===t.length)return[[\"sum(prod(\",t[0][0],\",\",t[1][1],\"),prod(-\",t[0][1],\",\",t[1][0],\"))\"].join(\"\")];for(var e=[],r=0;r<t.length;++r)e.push([\"scale(\",o(s(n(t,r))),\",\",a(r),t[0][r],\")\"].join(\"\"));return e}function l(t){for(var e=[],r=[],a=i(t),l=[],u=0;u<t;++u)0==(1&u)?e.push.apply(e,s(n(a,u))):r.push.apply(r,s(n(a,u))),l.push(\"m\"+u);var p=o(e),m=o(r),v=\"orientation\"+t+\"Exact\",g=[\"function \",v,\"(\",l.join(),\"){var p=\",p,\",n=\",m,\",d=sub(p,n);return d[d.length-1];};return \",v].join(\"\");return new Function(\"sum\",\"prod\",\"scale\",\"sub\",g)(h,c,f,d)}function u(t){var e=g[t.length];return e||(e=g[t.length]=l(t.length)),e.apply(void 0,t)}var c=t(\"two-product\"),h=t(\"robust-sum\"),f=t(\"robust-scale\"),d=t(\"robust-subtract\"),p=5,m=l(3),v=l(4),g=[function(){return 0},function(){return 0},function(t,e){return e[0]-t[0]},function(t,e,r){var n,i=(t[1]-r[1])*(e[0]-r[0]),a=(t[0]-r[0])*(e[1]-r[1]),o=i-a;if(i>0){if(a<=0)return o;n=i+a}else{if(!(i<0))return o;if(a>=0)return o;n=-(i+a)}var s=3.3306690738754716e-16*n;return o>=s||o<=-s?o:m(t,e,r)},function(t,e,r,n){var i=t[0]-n[0],a=e[0]-n[0],o=r[0]-n[0],s=t[1]-n[1],l=e[1]-n[1],u=r[1]-n[1],c=t[2]-n[2],h=e[2]-n[2],f=r[2]-n[2],d=a*u,p=o*l,m=o*s,g=i*u,y=i*l,b=a*s,x=c*(d-p)+h*(m-g)+f*(y-b),_=(Math.abs(d)+Math.abs(p))*Math.abs(c)+(Math.abs(m)+Math.abs(g))*Math.abs(h)+(Math.abs(y)+Math.abs(b))*Math.abs(f),w=7.771561172376103e-16*_;return x>w||-x>w?x:v(t,e,r,n)}];!function(){for(;g.length<=p;)g.push(l(g.length));for(var t=[],r=[\"slow\"],n=0;n<=p;++n)t.push(\"a\"+n),r.push(\"o\"+n);for(var i=[\"function getOrientation(\",t.join(),\"){switch(arguments.length){case 0:case 1:return 0;\"],n=2;n<=p;++n)i.push(\"case \",n,\":return o\",n,\"(\",t.slice(0,n).join(),\");\");i.push(\"}var s=new Array(arguments.length);for(var i=0;i<arguments.length;++i){s[i]=arguments[i]};return slow(s);}return getOrientation\"),r.push(i.join(\"\"));var a=Function.apply(void 0,r);e.exports=a.apply(void 0,[u].concat(g));for(var n=0;n<=p;++n)e.exports[n]=g[n]}()},{\"robust-scale\":510,\"robust-subtract\":512,\"robust-sum\":513,\"two-product\":539}],509:[function(t,e,r){\"use strict\";function n(t,e){if(1===t.length)return a(e,t[0]);if(1===e.length)return a(t,e[0]);if(0===t.length||0===e.length)return[0];var r=[0];if(t.length<e.length)for(var n=0;n<t.length;++n)r=i(r,a(e,t[n]));else for(var n=0;n<e.length;++n)r=i(r,a(t,e[n]));return r}var i=t(\"robust-sum\"),a=t(\"robust-scale\");e.exports=n},{\"robust-scale\":510,\"robust-sum\":513}],\n", "510:[function(t,e,r){\"use strict\";function n(t,e){var r=t.length;if(1===r){var n=i(t[0],e);return n[0]?n:[n[1]]}var o=new Array(2*r),s=[.1,.1],l=[.1,.1],u=0;i(t[0],e,s),s[0]&&(o[u++]=s[0]);for(var c=1;c<r;++c){i(t[c],e,l);var h=s[1];a(h,l[0],s),s[0]&&(o[u++]=s[0]);var f=l[1],d=s[1],p=f+d,m=p-f,v=d-m;s[1]=p,v&&(o[u++]=v)}return s[1]&&(o[u++]=s[1]),0===u&&(o[u++]=0),o.length=u,o}var i=t(\"two-product\"),a=t(\"two-sum\");e.exports=n},{\"two-product\":539,\"two-sum\":540}],511:[function(t,e,r){\"use strict\";function n(t,e,r,n){for(var i=0;i<2;++i){var a=t[i],o=e[i],s=Math.min(a,o),l=Math.max(a,o),u=r[i],c=n[i],h=Math.min(u,c);if(Math.max(u,c)<s||l<h)return!1}return!0}function i(t,e,r,i){var o=a(t,r,i),s=a(e,r,i);if(o>0&&s>0||o<0&&s<0)return!1;var l=a(r,t,e),u=a(i,t,e);return!(l>0&&u>0||l<0&&u<0)&&(0!==o||0!==s||0!==l||0!==u||n(t,e,r,i))}e.exports=i;var a=t(\"robust-orientation\")[3]},{\"robust-orientation\":508}],512:[function(t,e,r){\"use strict\";function n(t,e){var r=t+e,n=r-t,i=r-n,a=e-n,o=t-i,s=o+a;return s?[s,r]:[r]}function i(t,e){var r=0|t.length,i=0|e.length;if(1===r&&1===i)return n(t[0],-e[0]);var a,o,s=r+i,l=new Array(s),u=0,c=0,h=0,f=Math.abs,d=t[c],p=f(d),m=-e[h],v=f(m);p<v?(o=d,(c+=1)<r&&(d=t[c],p=f(d))):(o=m,(h+=1)<i&&(m=-e[h],v=f(m))),c<r&&p<v||h>=i?(a=d,(c+=1)<r&&(d=t[c],p=f(d))):(a=m,(h+=1)<i&&(m=-e[h],v=f(m)));for(var g,y,b,x,_,w=a+o,M=w-a,k=o-M,A=k,T=w;c<r&&h<i;)p<v?(a=d,(c+=1)<r&&(d=t[c],p=f(d))):(a=m,(h+=1)<i&&(m=-e[h],v=f(m))),o=A,w=a+o,M=w-a,k=o-M,k&&(l[u++]=k),g=T+w,y=g-T,b=g-y,x=w-y,_=T-b,A=_+x,T=g;for(;c<r;)a=d,o=A,w=a+o,M=w-a,k=o-M,k&&(l[u++]=k),g=T+w,y=g-T,b=g-y,x=w-y,_=T-b,A=_+x,T=g,(c+=1)<r&&(d=t[c]);for(;h<i;)a=m,o=A,w=a+o,M=w-a,k=o-M,k&&(l[u++]=k),g=T+w,y=g-T,b=g-y,x=w-y,_=T-b,A=_+x,T=g,(h+=1)<i&&(m=-e[h]);return A&&(l[u++]=A),T&&(l[u++]=T),u||(l[u++]=0),l.length=u,l}e.exports=i},{}],513:[function(t,e,r){\"use strict\";function n(t,e){var r=t+e,n=r-t,i=r-n,a=e-n,o=t-i,s=o+a;return s?[s,r]:[r]}function i(t,e){var r=0|t.length,i=0|e.length;if(1===r&&1===i)return n(t[0],e[0]);var a,o,s=r+i,l=new Array(s),u=0,c=0,h=0,f=Math.abs,d=t[c],p=f(d),m=e[h],v=f(m);p<v?(o=d,(c+=1)<r&&(d=t[c],p=f(d))):(o=m,(h+=1)<i&&(m=e[h],v=f(m))),c<r&&p<v||h>=i?(a=d,(c+=1)<r&&(d=t[c],p=f(d))):(a=m,(h+=1)<i&&(m=e[h],v=f(m)));for(var g,y,b,x,_,w=a+o,M=w-a,k=o-M,A=k,T=w;c<r&&h<i;)p<v?(a=d,(c+=1)<r&&(d=t[c],p=f(d))):(a=m,(h+=1)<i&&(m=e[h],v=f(m))),o=A,w=a+o,M=w-a,k=o-M,k&&(l[u++]=k),g=T+w,y=g-T,b=g-y,x=w-y,_=T-b,A=_+x,T=g;for(;c<r;)a=d,o=A,w=a+o,M=w-a,k=o-M,k&&(l[u++]=k),g=T+w,y=g-T,b=g-y,x=w-y,_=T-b,A=_+x,T=g,(c+=1)<r&&(d=t[c]);for(;h<i;)a=m,o=A,w=a+o,M=w-a,k=o-M,k&&(l[u++]=k),g=T+w,y=g-T,b=g-y,x=w-y,_=T-b,A=_+x,T=g,(h+=1)<i&&(m=e[h]);return A&&(l[u++]=A),T&&(l[u++]=T),u||(l[u++]=0),l.length=u,l}e.exports=i},{}],514:[function(e,r,n){!function(e,i){\"object\"==typeof n&&void 0!==r?r.exports=i():\"function\"==typeof t&&t.amd?t(i):e.ShelfPack=i()}(this,function(){function t(t,e,r){r=r||{},this.w=t||64,this.h=e||64,this.autoResize=!!r.autoResize,this.shelves=[],this.stats={},this.count=function(t){this.stats[t]=1+(0|this.stats[t])}}function e(t,e,r){this.x=0,this.y=t,this.w=this.free=e,this.h=r}return t.prototype.pack=function(t,e){t=[].concat(t),e=e||{};for(var r,n,i,a=[],o=0;o<t.length;o++)if(r=t[o].w||t[o].width,n=t[o].h||t[o].height,r&&n){if(!(i=this.packOne(r,n)))continue;e.inPlace&&(t[o].x=i.x,t[o].y=i.y),a.push(i)}if(this.shelves.length>0){for(var s=0,l=0,u=0;u<this.shelves.length;u++){var c=this.shelves[u];l+=c.h,s=Math.max(c.w-c.free,s)}this.resize(s,l)}return a},t.prototype.packOne=function(t,r){for(var n,i,a=0,o={shelf:-1,waste:1/0},s=0;s<this.shelves.length;s++){if(n=this.shelves[s],a+=n.h,r===n.h&&t<=n.free)return this.count(r),n.alloc(t,r);r>n.h||t>n.free||r<n.h&&t<=n.free&&(i=n.h-r)<o.waste&&(o.waste=i,o.shelf=s)}if(-1!==o.shelf)return n=this.shelves[o.shelf],this.count(r),n.alloc(t,r);if(r<=this.h-a&&t<=this.w)return n=new e(a,this.w,r),this.shelves.push(n),this.count(r),n.alloc(t,r);if(this.autoResize){var l,u,c,h;return l=u=this.h,c=h=this.w,(c<=l||t>c)&&(h=2*Math.max(t,c)),(l<c||r>l)&&(u=2*Math.max(r,l)),this.resize(h,u),this.packOne(t,r)}return null},t.prototype.clear=function(){this.shelves=[],this.stats={}},t.prototype.resize=function(t,e){this.w=t,this.h=e;for(var r=0;r<this.shelves.length;r++)this.shelves[r].resize(t);return!0},e.prototype.alloc=function(t,e){if(t>this.free||e>this.h)return null;var r=this.x;return this.x+=t,this.free-=t,{x:r,y:this.y,w:t,h:e,width:t,height:e}},e.prototype.resize=function(t){return this.free+=t-this.w,this.w=t,!0},t})},{}],515:[function(t,e,r){\"use strict\";e.exports=function(t){return t<0?-1:t>0?1:0}},{}],516:[function(t,e,r){\"use strict\";function n(t){return a(i(t))}e.exports=n;var i=t(\"boundary-cells\"),a=t(\"reduce-simplicial-complex\")},{\"boundary-cells\":69,\"reduce-simplicial-complex\":498}],517:[function(t,e,r){\"use strict\";function n(t){for(var e=t.length,r=0,n=0;n<e;++n)r=0|Math.max(r,t[n].length);return r-1}function i(t,e){for(var r=t.length,n=h.mallocUint8(r),i=0;i<r;++i)n[i]=t[i]<e|0;return n}function a(t,e){for(var r=t.length,n=e*(e+1)/2*r|0,i=h.mallocUint32(2*n),a=0,o=0;o<r;++o)for(var s=t[o],e=s.length,l=0;l<e;++l)for(var u=0;u<l;++u){var d=s[u],p=s[l];i[a++]=0|Math.min(d,p),i[a++]=0|Math.max(d,p)}f(c(i,[a/2|0,2]));for(var m=2,o=2;o<a;o+=2)i[o-2]===i[o]&&i[o-1]===i[o+1]||(i[m++]=i[o],i[m++]=i[o+1]);return c(i,[m/2|0,2])}function o(t,e,r,n){for(var i=t.data,a=t.shape[0],o=h.mallocDouble(a),s=0,l=0;l<a;++l){var u=i[2*l],f=i[2*l+1];if(r[u]!==r[f]){var d=e[u],p=e[f];i[2*s]=u,i[2*s+1]=f,o[s++]=(p-n)/(p-d)}}return t.shape[0]=s,c(o,[s])}function s(t,e){var r=h.mallocInt32(2*e),n=t.shape[0],i=t.data;r[0]=0;for(var a=0,o=0;o<n;++o){var s=i[2*o];if(s!==a){for(r[2*a+1]=o;++a<s;)r[2*a]=o,r[2*a+1]=o;r[2*a]=o}}for(r[2*a+1]=n;++a<e;)r[2*a]=r[2*a+1]=n;return r}function l(t){for(var e=0|t.shape[0],r=t.data,n=new Array(e),i=0;i<e;++i)n[i]=[r[2*i],r[2*i+1]];return n}function u(t,e,r,u){if(r=r||0,void 0===u&&(u=n(t)),0===t.length||u<1)return{cells:[],vertexIds:[],vertexWeights:[]};var c=i(e,+r),f=a(t,u),p=o(f,e,c,+r),m=s(f,0|e.length),v=d(u)(t,f.data,m,c),g=l(f),y=[].slice.call(p.data,0,p.shape[0]);return h.free(c),h.free(f.data),h.free(p.data),h.free(m),{cells:v,vertexIds:g,vertexWeights:y}}e.exports=u;var c=t(\"ndarray\"),h=t(\"typedarray-pool\"),f=t(\"ndarray-sort\"),d=t(\"./lib/codegen\")},{\"./lib/codegen\":518,ndarray:467,\"ndarray-sort\":465,\"typedarray-pool\":541}],518:[function(t,e,r){\"use strict\";function n(t){var e=0,r=new Array(t+1);r[0]=[[]];for(var n=1;n<=t;++n)for(var i=r[n]=o(n),s=0;s<i.length;++s)e=Math.max(e,i[n].length);for(var l=[\"function B(C,E,i,j){\",\"var a=Math.min(i,j)|0,b=Math.max(i,j)|0,l=C[2*a],h=C[2*a+1];\",\"while(l<h){\",\"var m=(l+h)>>1,v=E[2*m+1];\",\"if(v===b){return m}\",\"if(b<v){h=m}else{l=m+1}\",\"}\",\"return l;\",\"};\",\"function getContour\",t,\"d(F,E,C,S){\",\"var n=F.length,R=[];\",\"for(var i=0;i<n;++i){var c=F[i],l=c.length;\"],n=t+1;n>1;--n){n<t+1&&l.push(\"else \"),l.push(\"if(l===\",n,\"){\");for(var u=[],s=0;s<n;++s)u.push(\"(S[c[\"+s+\"]]<<\"+s+\")\");l.push(\"var M=\",u.join(\"+\"),\";if(M===0||M===\",(1<<n)-1,\"){continue}switch(M){\");for(var i=r[n-1],s=0;s<i.length;++s)l.push(\"case \",s,\":\"),function(t){if(!(t.length<=0)){l.push(\"R.push(\");for(var e=0;e<t.length;++e){var r=t[e];e>0&&l.push(\",\"),l.push(\"[\");for(var n=0;n<r.length;++n){var i=r[n];n>0&&l.push(\",\"),l.push(\"B(C,E,c[\",i[0],\"],c[\",i[1],\"])\")}l.push(\"]\")}l.push(\");\")}}(i[s]),l.push(\"break;\");l.push(\"}}\")}return l.push(\"}return R;};return getContour\",t,\"d\"),new Function(\"pool\",l.join(\"\"))(a)}function i(t){var e=s[t];return e||(e=s[t]=n(t)),e}e.exports=i;var a=t(\"typedarray-pool\"),o=t(\"marching-simplex-table\"),s={}},{\"marching-simplex-table\":445,\"typedarray-pool\":541}],519:[function(t,e,r){\"use strict\";\"use restrict\";function n(t){for(var e=0,r=Math.max,n=0,i=t.length;n<i;++n)e=r(e,t[n].length);return e-1}function i(t){for(var e=-1,r=Math.max,n=0,i=t.length;n<i;++n)for(var a=t[n],o=0,s=a.length;o<s;++o)e=r(e,a[o]);return e+1}function a(t){for(var e=new Array(t.length),r=0,n=t.length;r<n;++r)e[r]=t[r].slice(0);return e}function o(t,e){var r=t.length,n=t.length-e.length,i=Math.min;if(n)return n;switch(r){case 0:return 0;case 1:return t[0]-e[0];case 2:var a=t[0]+t[1]-e[0]-e[1];return a||i(t[0],t[1])-i(e[0],e[1]);case 3:var o=t[0]+t[1],s=e[0]+e[1];if(a=o+t[2]-(s+e[2]))return a;var l=i(t[0],t[1]),u=i(e[0],e[1]),a=i(l,t[2])-i(u,e[2]);return a||i(l+t[2],o)-i(u+e[2],s);default:var c=t.slice(0);c.sort();var h=e.slice(0);h.sort();for(var f=0;f<r;++f)if(n=c[f]-h[f])return n;return 0}}function s(t,e){return o(t[0],e[0])}function l(t,e){if(e){for(var r=t.length,n=new Array(r),i=0;i<r;++i)n[i]=[t[i],e[i]];n.sort(s);for(var i=0;i<r;++i)t[i]=n[i][0],e[i]=n[i][1];return t}return t.sort(o),t}function u(t){if(0===t.length)return[];for(var e=1,r=t.length,n=1;n<r;++n){var i=t[n];if(o(i,t[n-1])){if(n===e){e++;continue}t[e++]=i}}return t.length=e,t}function c(t,e){for(var r=0,n=t.length-1,i=-1;r<=n;){var a=r+n>>1,s=o(t[a],e);s<=0?(0===s&&(i=a),r=a+1):s>0&&(n=a-1)}return i}function h(t,e){for(var r=new Array(t.length),n=0,i=r.length;n<i;++n)r[n]=[];for(var a=[],n=0,s=e.length;n<s;++n)for(var l=e[n],u=l.length,h=1,f=1<<u;h<f;++h){a.length=b.popCount(h);for(var d=0,p=0;p<u;++p)h&1<<p&&(a[d++]=l[p]);var m=c(t,a);if(!(m<0))for(;;)if(r[m++].push(n),m>=t.length||0!==o(t[m],a))break}return r}function f(t,e){if(!e)return h(u(p(t,0)),t,0);for(var r=new Array(e),n=0;n<e;++n)r[n]=[];for(var n=0,i=t.length;n<i;++n)for(var a=t[n],o=0,s=a.length;o<s;++o)r[a[o]].push(n);return r}function d(t){for(var e=[],r=0,n=t.length;r<n;++r)for(var i=t[r],a=0|i.length,o=1,s=1<<a;o<s;++o){for(var u=[],c=0;c<a;++c)o>>>c&1&&u.push(i[c]);e.push(u)}return l(e)}function p(t,e){if(e<0)return[];for(var r=[],n=(1<<e+1)-1,i=0;i<t.length;++i)for(var a=t[i],o=n;o<1<<a.length;o=b.nextCombination(o)){for(var s=new Array(e+1),u=0,c=0;c<a.length;++c)o&1<<c&&(s[u++]=a[c]);r.push(s)}return l(r)}function m(t){for(var e=[],r=0,n=t.length;r<n;++r)for(var i=t[r],a=0,o=i.length;a<o;++a){for(var s=new Array(i.length-1),u=0,c=0;u<o;++u)u!==a&&(s[c++]=i[u]);e.push(s)}return l(e)}function v(t,e){for(var r=new x(e),n=0;n<t.length;++n)for(var i=t[n],a=0;a<i.length;++a)for(var o=a+1;o<i.length;++o)r.link(i[a],i[o]);for(var s=[],l=r.ranks,n=0;n<l.length;++n)l[n]=-1;for(var n=0;n<t.length;++n){var u=r.find(t[n][0]);l[u]<0?(l[u]=s.length,s.push([t[n].slice(0)])):s[l[u]].push(t[n].slice(0))}return s}function g(t){for(var e=u(l(p(t,0))),r=new x(e.length),n=0;n<t.length;++n)for(var i=t[n],a=0;a<i.length;++a)for(var o=c(e,[i[a]]),s=a+1;s<i.length;++s)r.link(o,c(e,[i[s]]));for(var h=[],f=r.ranks,n=0;n<f.length;++n)f[n]=-1;for(var n=0;n<t.length;++n){var d=r.find(c(e,[t[n][0]]));f[d]<0?(f[d]=h.length,h.push([t[n].slice(0)])):h[f[d]].push(t[n].slice(0))}return h}function y(t,e){return e?v(t,e):g(t)}var b=t(\"bit-twiddle\"),x=t(\"union-find\");r.dimension=n,r.countVertices=i,r.cloneCells=a,r.compareCells=o,r.normalize=l,r.unique=u,r.findCell=c,r.incidence=h,r.dual=f,r.explode=d,r.skeleton=p,r.boundary=m,r.connectedComponents=y},{\"bit-twiddle\":67,\"union-find\":542}],520:[function(t,e,r){arguments[4][67][0].apply(r,arguments)},{dup:67}],521:[function(t,e,r){arguments[4][519][0].apply(r,arguments)},{\"bit-twiddle\":520,dup:519,\"union-find\":522}],522:[function(t,e,r){\"use strict\";\"use restrict\";function n(t){this.roots=new Array(t),this.ranks=new Array(t);for(var e=0;e<t;++e)this.roots[e]=e,this.ranks[e]=0}e.exports=n,n.prototype.length=function(){return this.roots.length},n.prototype.makeSet=function(){var t=this.roots.length;return this.roots.push(t),this.ranks.push(0),t},n.prototype.find=function(t){for(var e=this.roots;e[t]!==t;){var r=e[t];e[t]=e[r],t=r}return t},n.prototype.link=function(t,e){var r=this.find(t),n=this.find(e);if(r!==n){var i=this.ranks,a=this.roots,o=i[r],s=i[n];o<s?a[r]=n:s<o?a[n]=r:(a[n]=r,++i[r])}}},{}],523:[function(t,e,r){\"use strict\";function n(t,e,r){return Math.abs(a(t,e,r))/Math.sqrt(Math.pow(e[0]-r[0],2)+Math.pow(e[1]-r[1],2))}function i(t,e,r){function i(t){if(b[t])return 1/0;var r=v[t],i=g[t];return r<0||i<0?1/0:n(e[t],e[r],e[i])}function a(t,e){var r=k[t],n=k[e];k[t]=n,k[e]=r,A[r]=e,A[n]=t}function s(t){return y[k[t]]}function l(t){return 1&t?t-1>>1:(t>>1)-1}function u(t){for(var e=s(t);;){var r=e,n=2*t+1,i=2*(t+1),o=t;if(n<T){var l=s(n);l<r&&(o=n,r=l)}if(i<T){s(i)<r&&(o=i)}if(o===t)return t;a(t,o),t=o}}function c(t){for(var e=s(t);t>0;){var r=l(t);if(r>=0){if(e<s(r)){a(t,r),t=r;continue}}return t}}function h(){if(T>0){var t=k[0];return a(0,T-1),T-=1,u(0),t}return-1}function f(t,e){var r=k[t];return y[r]===e?t:(y[r]=-1/0,c(t),h(),y[r]=e,T+=1,c(T-1))}function d(t,e){if(t[e]<0)return e;var r=e,n=e;do{var i=t[n];if(!b[n]||i<0||i===n)break;if(n=i,i=t[n],!b[n]||i<0||i===n)break;n=i,r=t[r]}while(r!==n);for(var a=e;a!==n;a=t[a])t[a]=n;return n}for(var p=e.length,m=t.length,v=new Array(p),g=new Array(p),y=new Array(p),b=new Array(p),x=0;x<p;++x)v[x]=g[x]=-1,y[x]=1/0,b[x]=!1;for(var x=0;x<m;++x){var _=t[x];if(2!==_.length)throw new Error(\"Input must be a graph\");var w=_[1],M=_[0];-1!==g[M]?g[M]=-2:g[M]=w,-1!==v[w]?v[w]=-2:v[w]=M}for(var k=[],A=new Array(p),x=0;x<p;++x){(y[x]=i(x))<1/0?(A[x]=k.length,k.push(x)):A[x]=-1}for(var T=k.length,x=T>>1;x>=0;--x)u(x);for(;;){var S=h();if(S<0||y[S]>r)break;!function(t){if(!b[t]){b[t]=!0;var e=v[t],r=g[t];v[r]>=0&&(v[r]=e),g[e]>=0&&(g[e]=r),A[e]>=0&&f(A[e],i(e)),A[r]>=0&&f(A[r],i(r))}}(S)}for(var E=[],x=0;x<p;++x)b[x]||(A[x]=E.length,E.push(e[x].slice()));var L=(E.length,[]);return t.forEach(function(t){var e=d(v,t[0]),r=d(g,t[1]);if(e>=0&&r>=0&&e!==r){var n=A[e],i=A[r];n!==i&&L.push([n,i])}}),o.unique(o.normalize(L)),{positions:E,edges:L}}e.exports=i;var a=t(\"robust-orientation\"),o=t(\"simplicial-complex\")},{\"robust-orientation\":508,\"simplicial-complex\":521}],524:[function(t,e,r){\"use strict\";function n(t,e){var r,n;if(e[0][0]<e[1][0])r=e[0],n=e[1];else{if(!(e[0][0]>e[1][0])){var i=Math.min(t[0][1],t[1][1]),o=Math.max(t[0][1],t[1][1]),s=Math.min(e[0][1],e[1][1]),l=Math.max(e[0][1],e[1][1]);return o<s?o-s:i>l?i-l:o-l}r=e[1],n=e[0]}var u,c;t[0][1]<t[1][1]?(u=t[0],c=t[1]):(u=t[1],c=t[0]);var h=a(n,r,u);return h||((h=a(n,r,c))||c-n)}function i(t,e){var r,i;if(e[0][0]<e[1][0])r=e[0],i=e[1];else{if(!(e[0][0]>e[1][0]))return n(e,t);r=e[1],i=e[0]}var o,s;if(t[0][0]<t[1][0])o=t[0],s=t[1];else{if(!(t[0][0]>t[1][0]))return-n(t,e);o=t[1],s=t[0]}var l=a(r,i,s),u=a(r,i,o);if(l<0){if(u<=0)return l}else if(l>0){if(u>=0)return l}else if(u)return u;if(l=a(s,o,i),u=a(s,o,r),l<0){if(u<=0)return l}else if(l>0){if(u>=0)return l}else if(u)return u;return i[0]-s[0]}e.exports=i;var a=t(\"robust-orientation\")},{\"robust-orientation\":508}],525:[function(t,e,r){\"use strict\";function n(t,e,r){this.slabs=t,this.coordinates=e,this.horizontal=r}function i(t,e){return t.y-e}function a(t,e){for(var r=null;t;){var n,i,o=t.key;o[0][0]<o[1][0]?(n=o[0],i=o[1]):(n=o[1],i=o[0]);var s=h(n,i,e);if(s<0)t=t.left;else if(s>0)if(e[0]!==o[1][0])r=t,t=t.right;else{var l=a(t.right,e);if(l)return l;t=t.left}else{if(e[0]!==o[1][0])return t;var l=a(t.right,e);if(l)return l;t=t.left}}return r}function o(t,e,r,n){this.y=t,this.index=e,this.start=r,this.closed=n}function s(t,e,r,n){this.x=t,this.segment=e,this.create=r,this.index=n}function l(t){for(var e=t.length,r=2*e,i=new Array(r),a=0;a<e;++a){var l=t[a],u=l[0][0]<l[1][0];i[2*a]=new s(l[0][0],l,u,a),i[2*a+1]=new s(l[1][0],l,!u,a)}i.sort(function(t,e){var r=t.x-e.x;return r||((r=t.create-e.create)||Math.min(t.segment[0][1],t.segment[1][1])-Math.min(e.segment[0][1],e.segment[1][1]))});for(var h=c(f),d=[],p=[],m=[],a=0;a<r;){for(var v=i[a].x,g=[];a<r;){var y=i[a];if(y.x!==v)break;a+=1,y.segment[0][0]===y.x&&y.segment[1][0]===y.x?y.create&&(y.segment[0][1]<y.segment[1][1]?(g.push(new o(y.segment[0][1],y.index,!0,!0)),g.push(new o(y.segment[1][1],y.index,!1,!1))):(g.push(new o(y.segment[1][1],y.index,!0,!1)),g.push(new o(y.segment[0][1],y.index,!1,!0)))):h=y.create?h.insert(y.segment,y.index):h.remove(y.segment)}d.push(h.root),p.push(v),m.push(g)}return new n(d,p,m)}e.exports=l;var u=t(\"binary-search-bounds\"),c=t(\"functional-red-black-tree\"),h=t(\"robust-orientation\"),f=t(\"./lib/order-segments\");n.prototype.castUp=function(t){var e=u.le(this.coordinates,t[0]);if(e<0)return-1;var r=(this.slabs[e],a(this.slabs[e],t)),n=-1;if(r&&(n=r.value),this.coordinates[e]===t[0]){var o=null;if(r&&(o=r.key),e>0){var s=a(this.slabs[e-1],t);s&&(o?f(s.key,o)>0&&(o=s.key,n=s.value):(n=s.value,o=s.key))}var l=this.horizontal[e];if(l.length>0){var c=u.ge(l,t[1],i);if(c<l.length){var d=l[c];if(t[1]===d.y){if(d.closed)return d.index;for(;c<l.length-1&&l[c+1].y===t[1];)if(c+=1,d=l[c],d.closed)return d.index;if(d.y===t[1]&&!d.start){if((c+=1)>=l.length)return n;d=l[c]}}if(d.start)if(o){var p=h(o[0],o[1],[t[0],d.y]);o[0][0]>o[1][0]&&(p=-p),p>0&&(n=d.index)}else n=d.index;else d.y!==t[1]&&(n=d.index)}}}return n}},{\"./lib/order-segments\":524,\"binary-search-bounds\":66,\"functional-red-black-tree\":135,\"robust-orientation\":508}],526:[function(t,e,r){\"use strict\";function n(t,e){var r=u(l(t,e),[e[e.length-1]]);return r[r.length-1]}function i(t,e,r,n){var i=n-e,a=-e/i;a<0?a=0:a>1&&(a=1);for(var o=1-a,s=t.length,l=new Array(s),u=0;u<s;++u)l[u]=a*t[u]+o*r[u];return l}function a(t,e){for(var r=[],a=[],o=n(t[t.length-1],e),s=t[t.length-1],l=t[0],u=0;u<t.length;++u,s=l){l=t[u];var c=n(l,e);if(o<0&&c>0||o>0&&c<0){var h=i(s,c,l,o);r.push(h),a.push(h.slice())}c<0?a.push(l.slice()):c>0?r.push(l.slice()):(r.push(l.slice()),a.push(l.slice())),o=c}return{positive:r,negative:a}}function o(t,e){for(var r=[],a=n(t[t.length-1],e),o=t[t.length-1],s=t[0],l=0;l<t.length;++l,o=s){s=t[l];var u=n(s,e);(a<0&&u>0||a>0&&u<0)&&r.push(i(o,u,s,a)),u>=0&&r.push(s.slice()),a=u}return r}function s(t,e){for(var r=[],a=n(t[t.length-1],e),o=t[t.length-1],s=t[0],l=0;l<t.length;++l,o=s){s=t[l];var u=n(s,e);(a<0&&u>0||a>0&&u<0)&&r.push(i(o,u,s,a)),u<=0&&r.push(s.slice()),a=u}return r}var l=t(\"robust-dot-product\"),u=t(\"robust-sum\");e.exports=a,e.exports.positive=o,e.exports.negative=s},{\"robust-dot-product\":505,\"robust-sum\":513}],527:[function(e,r,n){!function(){\"use strict\";function e(t){return i(a(t),arguments)}function r(t,r){return e.apply(null,[t].concat(r||[]))}function i(t,r){var n,i,a,s,l,u,c,h,f,d=1,p=t.length,m=\"\";for(i=0;i<p;i++)if(\"string\"==typeof t[i])m+=t[i];else if(Array.isArray(t[i])){if(s=t[i],s[2])for(n=r[d],a=0;a<s[2].length;a++){if(!n.hasOwnProperty(s[2][a]))throw new Error(e('[sprintf] property \"%s\" does not exist',s[2][a]));n=n[s[2][a]]}else n=s[1]?r[s[1]]:r[d++];if(o.not_type.test(s[8])&&o.not_primitive.test(s[8])&&n instanceof Function&&(n=n()),o.numeric_arg.test(s[8])&&\"number\"!=typeof n&&isNaN(n))throw new TypeError(e(\"[sprintf] expecting number but found %T\",n));switch(o.number.test(s[8])&&(h=n>=0),s[8]){case\"b\":n=parseInt(n,10).toString(2);break;case\"c\":n=String.fromCharCode(parseInt(n,10));break;case\"d\":case\"i\":n=parseInt(n,10);break;case\"j\":n=JSON.stringify(n,null,s[6]?parseInt(s[6]):0);break;case\"e\":n=s[7]?parseFloat(n).toExponential(s[7]):parseFloat(n).toExponential();break;case\"f\":n=s[7]?parseFloat(n).toFixed(s[7]):parseFloat(n);break;case\"g\":n=s[7]?String(Number(n.toPrecision(s[7]))):parseFloat(n);break;case\"o\":n=(parseInt(n,10)>>>0).toString(8);break;case\"s\":n=String(n),n=s[7]?n.substring(0,s[7]):n;break;case\"t\":n=String(!!n),n=s[7]?n.substring(0,s[7]):n;break;case\"T\":n=Object.prototype.toString.call(n).slice(8,-1).toLowerCase(),n=s[7]?n.substring(0,s[7]):n;break;case\"u\":n=parseInt(n,10)>>>0;break;case\"v\":n=n.valueOf(),n=s[7]?n.substring(0,s[7]):n;break;case\"x\":n=(parseInt(n,10)>>>0).toString(16);break;case\"X\":n=(parseInt(n,10)>>>0).toString(16).toUpperCase()}o.json.test(s[8])?m+=n:(!o.number.test(s[8])||h&&!s[3]?f=\"\":(f=h?\"+\":\"-\",n=n.toString().replace(o.sign,\"\")),u=s[4]?\"0\"===s[4]?\"0\":s[4].charAt(1):\" \",c=s[6]-(f+n).length,l=s[6]&&c>0?u.repeat(c):\"\",m+=s[5]?f+n+l:\"0\"===u?f+l+n:l+f+n)}return m}function a(t){if(s[t])return s[t];for(var e,r=t,n=[],i=0;r;){if(null!==(e=o.text.exec(r)))n.push(e[0]);else if(null!==(e=o.modulo.exec(r)))n.push(\"%\");else{if(null===(e=o.placeholder.exec(r)))throw new SyntaxError(\"[sprintf] unexpected placeholder\");if(e[2]){i|=1;var a=[],l=e[2],u=[];if(null===(u=o.key.exec(l)))throw new SyntaxError(\"[sprintf] failed to parse named argument key\");for(a.push(u[1]);\"\"!==(l=l.substring(u[0].length));)if(null!==(u=o.key_access.exec(l)))a.push(u[1]);else{if(null===(u=o.index_access.exec(l)))throw new SyntaxError(\"[sprintf] failed to parse named argument key\");a.push(u[1])}e[2]=a}else i|=2;if(3===i)throw new Error(\"[sprintf] mixing positional and named placeholders is not (yet) supported\");n.push(e)}r=r.substring(e[0].length)}return s[t]=n}var o={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\\x25]+/,modulo:/^\\x25{2}/,placeholder:/^\\x25(?:([1-9]\\d*)\\$|\\(([^\\)]+)\\))?(\\+)?(0|'[^$])?(-)?(\\d+)?(?:\\.(\\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\\d]*)/i,key_access:/^\\.([a-z_][a-z_\\d]*)/i,index_access:/^\\[(\\d+)\\]/,sign:/^[\\+\\-]/},s=Object.create(null);void 0!==n&&(n.sprintf=e,n.vsprintf=r),\"undefined\"!=typeof window&&(window.sprintf=e,window.vsprintf=r,\"function\"==typeof t&&t.amd&&t(function(){return{sprintf:e,vsprintf:r}}))}()},{}],528:[function(t,e,r){\"use strict\";function n(t){for(var e=t.length,r=new Array(e),n=new Array(e),i=new Array(e),a=new Array(e),o=new Array(e),s=new Array(e),l=0;l<e;++l)r[l]=-1,n[l]=0,i[l]=!1,a[l]=0,o[l]=-1,s[l]=[];for(var u=0,c=[],h=[],l=0;l<e;++l)r[l]<0&&function(e){var l=[e],f=[e];for(r[e]=n[e]=u,i[e]=!0,u+=1;f.length>0;){e=f[f.length-1];var d=t[e];if(a[e]<d.length){for(var p=a[e];p<d.length;++p){var m=d[p];if(r[m]<0){r[m]=n[m]=u,i[m]=!0,u+=1,l.push(m),f.push(m);break}i[m]&&(n[e]=0|Math.min(n[e],n[m])),o[m]>=0&&s[e].push(o[m])}a[e]=p}else{if(n[e]===r[e]){for(var v=[],g=[],y=0,p=l.length-1;p>=0;--p){var b=l[p];if(i[b]=!1,v.push(b),g.push(s[b]),y+=s[b].length,o[b]=c.length,b===e){l.length=p;break}}c.push(v);for(var x=new Array(y),p=0;p<g.length;p++)for(var _=0;_<g[p].length;_++)x[--y]=g[p][_];h.push(x)}f.pop()}}}(l);for(var f,l=0;l<h.length;l++){var d=h[l];if(0!==d.length){d.sort(function(t,e){return t-e}),f=[d[0]];for(var p=1;p<d.length;p++)d[p]!==d[p-1]&&f.push(d[p]);h[l]=f}}return{components:c,adjacencyList:h}}e.exports=n},{}],529:[function(t,e,r){\"use strict\";function n(t){return new i(t)}function i(t){this.options=d(Object.create(this.options),t),this.trees=new Array(this.options.maxZoom+1)}function a(t,e,r,n,i){return{x:t,y:e,zoom:1/0,id:n,properties:i,parentId:-1,numPoints:r}}function o(t,e){var r=t.geometry.coordinates;return{x:u(r[0]),y:c(r[1]),zoom:1/0,id:e,parentId:-1}}function s(t){return{type:\"Feature\",properties:l(t),geometry:{type:\"Point\",coordinates:[h(t.x),f(t.y)]}}}function l(t){var e=t.numPoints,r=e>=1e4?Math.round(e/1e3)+\"k\":e>=1e3?Math.round(e/100)/10+\"k\":e;return d(d({},t.properties),{cluster:!0,cluster_id:t.id,point_count:e,point_count_abbreviated:r})}function u(t){return t/360+.5}function c(t){var e=Math.sin(t*Math.PI/180),r=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return r<0?0:r>1?1:r}function h(t){return 360*(t-.5)}function f(t){var e=(180-360*t)*Math.PI/180;return 360*Math.atan(Math.exp(e))/Math.PI-90}function d(t,e){for(var r in e)t[r]=e[r];return t}function p(t){return t.x}function m(t){return t.y}var v=t(\"kdbush\");e.exports=n,i.prototype={options:{minZoom:0,maxZoom:16,radius:40,extent:512,nodeSize:64,log:!1,reduce:null,initial:function(){return{}},map:function(t){return t}},load:function(t){var e=this.options.log;e&&console.time(\"total time\");var r=\"prepare \"+t.length+\" points\";e&&console.time(r),this.points=t;var n=t.map(o);e&&console.timeEnd(r);for(var i=this.options.maxZoom;i>=this.options.minZoom;i--){var a=+Date.now();this.trees[i+1]=v(n,p,m,this.options.nodeSize,Float32Array),n=this._cluster(n,i),e&&console.log(\"z%d: %d clusters in %dms\",i,n.length,+Date.now()-a)}return this.trees[this.options.minZoom]=v(n,p,m,this.options.nodeSize,Float32Array),e&&console.timeEnd(\"total time\"),this},getClusters:function(t,e){for(var r=this.trees[this._limitZoom(e)],n=r.range(u(t[0]),c(t[3]),u(t[2]),c(t[1])),i=[],a=0;a<n.length;a++){var o=r.points[n[a]];i.push(o.numPoints?s(o):this.points[o.id])}return i},getChildren:function(t,e){for(var r=this.trees[e+1].points[t],n=this.options.radius/(this.options.extent*Math.pow(2,e)),i=this.trees[e+1].within(r.x,r.y,n),a=[],o=0;o<i.length;o++){var l=this.trees[e+1].points[i[o]];l.parentId===t&&a.push(l.numPoints?s(l):this.points[l.id])}return a},getLeaves:function(t,e,r,n){r=r||10,n=n||0;var i=[];return this._appendLeaves(i,t,e,r,n,0),i},getTile:function(t,e,r){var n=this.trees[this._limitZoom(t)],i=Math.pow(2,t),a=this.options.extent,o=this.options.radius,s=o/a,l=(r-s)/i,u=(r+1+s)/i,c={features:[]};return this._addTileFeatures(n.range((e-s)/i,l,(e+1+s)/i,u),n.points,e,r,i,c),0===e&&this._addTileFeatures(n.range(1-s/i,l,1,u),n.points,i,r,i,c),e===i-1&&this._addTileFeatures(n.range(0,l,s/i,u),n.points,-1,r,i,c),c.features.length?c:null},getClusterExpansionZoom:function(t,e){for(;e<this.options.maxZoom;){var r=this.getChildren(t,e);if(e++,1!==r.length)break;t=r[0].properties.cluster_id}return e},_appendLeaves:function(t,e,r,n,i,a){for(var o=this.getChildren(e,r),s=0;s<o.length;s++){var l=o[s].properties;if(l.cluster?a+l.point_count<=i?a+=l.point_count:a=this._appendLeaves(t,l.cluster_id,r+1,n,i,a):a<i?a++:t.push(o[s]),t.length===n)break}return a},_addTileFeatures:function(t,e,r,n,i,a){for(var o=0;o<t.length;o++){var s=e[t[o]];a.features.push({type:1,geometry:[[Math.round(this.options.extent*(s.x*i-r)),Math.round(this.options.extent*(s.y*i-n))]],tags:s.numPoints?l(s):this.points[s.id].properties})}},_limitZoom:function(t){return Math.max(this.options.minZoom,Math.min(t,this.options.maxZoom+1))},_cluster:function(t,e){for(var r=[],n=this.options.radius/(this.options.extent*Math.pow(2,e)),i=0;i<t.length;i++){var o=t[i];if(!(o.zoom<=e)){o.zoom=e;var s=this.trees[e+1],l=s.within(o.x,o.y,n),u=o.numPoints||1,c=o.x*u,h=o.y*u,f=null;this.options.reduce&&(f=this.options.initial(),this._accumulate(f,o));for(var d=0;d<l.length;d++){var p=s.points[l[d]];if(e<p.zoom){var m=p.numPoints||1;p.zoom=e,c+=p.x*m,h+=p.y*m,u+=m,p.parentId=i,this.options.reduce&&this._accumulate(f,p)}}1===u?r.push(o):(o.parentId=i,r.push(a(c/u,h/u,u,i,f)))}}return r},_accumulate:function(t,e){var r=e.numPoints?e.properties:this.options.map(this.points[e.id].properties);this.options.reduce(t,r)}}},{kdbush:298}],530:[function(t,e,r){\"use strict\";function n(t){return t.split(\"\").map(function(t){return t in i?i[t]:\"\"}).join(\"\")}e.exports=n;var i={\" \":\" \",0:\"\\u2070\",1:\"\\xb9\",2:\"\\xb2\",3:\"\\xb3\",4:\"\\u2074\",5:\"\\u2075\",6:\"\\u2076\",7:\"\\u2077\",8:\"\\u2078\",9:\"\\u2079\",\"+\":\"\\u207a\",\"-\":\"\\u207b\",a:\"\\u1d43\",b:\"\\u1d47\",c:\"\\u1d9c\",d:\"\\u1d48\",e:\"\\u1d49\",f:\"\\u1da0\",g:\"\\u1d4d\",h:\"\\u02b0\",i:\"\\u2071\",j:\"\\u02b2\",k:\"\\u1d4f\",l:\"\\u02e1\",m:\"\\u1d50\",n:\"\\u207f\",o:\"\\u1d52\",p:\"\\u1d56\",r:\"\\u02b3\",s:\"\\u02e2\",t:\"\\u1d57\",u:\"\\u1d58\",v:\"\\u1d5b\",w:\"\\u02b7\",x:\"\\u02e3\",y:\"\\u02b8\",z:\"\\u1dbb\"}},{}],531:[function(t,e,r){\"use strict\";function n(t,e){var r=t.length,n=[\"'use strict';\"],i=\"surfaceNets\"+t.join(\"_\")+\"d\"+e;n.push(\"var contour=genContour({\",\"order:[\",t.join(),\"],\",\"scalarArguments: 3,\",\"phase:function phaseFunc(p,a,b,c) { return (p > c)|0 },\"),\"generic\"===e&&n.push(\"getters:[0],\");for(var a=[],l=[],u=0;u<r;++u)a.push(\"d\"+u),l.push(\"d\"+u);for(var u=0;u<1<<r;++u)a.push(\"v\"+u),l.push(\"v\"+u);for(var u=0;u<1<<r;++u)a.push(\"p\"+u),l.push(\"p\"+u);a.push(\"a\",\"b\",\"c\"),l.push(\"a\",\"c\"),n.push(\"vertex:function vertexFunc(\",a.join(),\"){\");for(var c=[],u=0;u<1<<r;++u)c.push(\"(p\"+u+\"<<\"+u+\")\");n.push(\"var m=(\",c.join(\"+\"),\")|0;if(m===0||m===\",(1<<(1<<r))-1,\"){return}\");var h=[],f=[];1<<(1<<r)<=128?(n.push(\"switch(m){\"),f=n):n.push(\"switch(m>>>7){\");for(var u=0;u<1<<(1<<r);++u){if(1<<(1<<r)>128&&u%128==0){h.length>0&&f.push(\"}}\");var d=\"vExtra\"+h.length;n.push(\"case \",u>>>7,\":\",d,\"(m&0x7f,\",l.join(),\");break;\"),f=[\"function \",d,\"(m,\",l.join(),\"){switch(m){\"],h.push(f)}f.push(\"case \",127&u,\":\");for(var p=new Array(r),m=new Array(r),v=new Array(r),g=new Array(r),y=0,b=0;b<r;++b)p[b]=[],m[b]=[],v[b]=0,g[b]=0;for(var b=0;b<1<<r;++b)for(var x=0;x<r;++x){var _=b^1<<x;if(!(_>b)&&!(u&1<<_)!=!(u&1<<b)){var w=1;u&1<<_?m[x].push(\"v\"+_+\"-v\"+b):(m[x].push(\"v\"+b+\"-v\"+_),w=-w),w<0?(p[x].push(\"-v\"+b+\"-v\"+_),v[x]+=2):(p[x].push(\"v\"+b+\"+v\"+_),v[x]-=2),y+=1;for(var M=0;M<r;++M)M!==x&&(_&1<<M?g[M]+=1:g[M]-=1)}}for(var k=[],x=0;x<r;++x)if(0===p[x].length)k.push(\"d\"+x+\"-0.5\");else{var A=\"\";v[x]<0?A=v[x]+\"*c\":v[x]>0&&(A=\"+\"+v[x]+\"*c\");var T=p[x].length/y*.5,S=.5+g[x]/y*.5;k.push(\"d\"+x+\"-\"+S+\"-\"+T+\"*(\"+p[x].join(\"+\")+A+\")/(\"+m[x].join(\"+\")+\")\")}f.push(\"a.push([\",k.join(),\"]);\",\"break;\")}n.push(\"}},\"),h.length>0&&f.push(\"}}\");for(var E=[],u=0;u<1<<r-1;++u)E.push(\"v\"+u);E.push(\"c0\",\"c1\",\"p0\",\"p1\",\"a\",\"b\",\"c\"),n.push(\"cell:function cellFunc(\",E.join(),\"){\");var L=s(r-1);n.push(\"if(p0){b.push(\",L.map(function(t){return\"[\"+t.map(function(t){return\"v\"+t})+\"]\"}).join(),\")}else{b.push(\",L.map(function(t){var e=t.slice();return e.reverse(),\"[\"+e.map(function(t){return\"v\"+t})+\"]\"}).join(),\")}}});function \",i,\"(array,level){var verts=[],cells=[];contour(array,verts,cells,level);return {positions:verts,cells:cells};} return \",i,\";\");for(var u=0;u<h.length;++u)n.push(h[u].join(\"\"));return new Function(\"genContour\",n.join(\"\"))(o)}function i(t,e){for(var r=l(t,e),n=r.length,i=new Array(n),a=new Array(n),o=0;o<n;++o)i[o]=[r[o]],a[o]=[o];return{positions:i,cells:a}}function a(t,e){if(t.dimension<=0)return{positions:[],cells:[]};if(1===t.dimension)return i(t,e);var r=t.order.join()+\"-\"+t.dtype,a=u[r],e=+e||0;return a||(a=u[r]=n(t.order,t.dtype)),a(t,e)}e.exports=a;var o=t(\"ndarray-extract-contour\"),s=t(\"triangulate-hypercube\"),l=t(\"zero-crossings\"),u={}},{\"ndarray-extract-contour\":456,\"triangulate-hypercube\":537,\"zero-crossings\":584}],532:[function(t,e,r){(function(r){\"use strict\";function n(t){for(var e=t.cells,r=t.positions,n=new Float32Array(6*e.length),i=0,a=0,o=0;o<e.length;++o)for(var s=e[o],l=0;l<3;++l){var u=r[s[l]];n[i++]=u[0],n[i++]=u[1]+1.4,a=Math.max(u[0],a)}return{data:n,shape:a}}function i(t,e,r){var r=r||{},o=s[t];o||(o=s[t]={\" \":{data:new Float32Array(0),shape:.2}});var l=o[e];if(!l)if(e.length<=1||!/\\d/.test(e))l=o[e]=n(a(e,{triangles:!0,font:t,textAlign:r.textAlign||\"left\",textBaseline:\"alphabetic\"}));else{for(var u=e.split(/(\\d|\\s)/),c=new Array(u.length),h=0,f=0,d=0;d<u.length;++d)c[d]=i(t,u[d]),h+=c[d].data.length,f+=c[d].shape,d>0&&(f+=.02);for(var p=new Float32Array(h),m=0,v=-.5*f,d=0;d<c.length;++d){for(var g=c[d].data,y=0;y<g.length;y+=2)p[m++]=g[y]+v,p[m++]=g[y+1];v+=c[d].shape+.02}l=o[e]={data:p,shape:f}}return l}e.exports=i;var a=t(\"vectorize-text\"),o=window||r.global||{},s=o.__TEXT_CACHE||{};o.__TEXT_CACHE={}}).call(this,t(\"_process\"))},{_process:487,\"vectorize-text\":554}],533:[function(t,e,r){\"use strict\";function n(t,e,r,n,i){this.fontSize=t||24,this.buffer=void 0===e?3:e,this.cutoff=n||.25,this.fontFamily=i||\"sans-serif\",this.radius=r||8;var a=this.size=this.fontSize+2*this.buffer;this.canvas=document.createElement(\"canvas\"),this.canvas.width=this.canvas.height=a,this.ctx=this.canvas.getContext(\"2d\"),this.ctx.font=t+\"px \"+this.fontFamily,this.ctx.textBaseline=\"middle\",this.ctx.fillStyle=\"black\",this.gridOuter=new Float64Array(a*a),this.gridInner=new Float64Array(a*a),this.f=new Float64Array(a),this.d=new Float64Array(a),this.z=new Float64Array(a+1),this.v=new Int16Array(a),this.middle=Math.round(a/2*(navigator.userAgent.indexOf(\"Gecko/\")>=0?1.2:1))}function i(t,e,r,n,i,o,s){for(var l=0;l<e;l++){for(var u=0;u<r;u++)n[u]=t[u*e+l];for(a(n,i,o,s,r),u=0;u<r;u++)t[u*e+l]=i[u]}for(u=0;u<r;u++){for(l=0;l<e;l++)n[l]=t[u*e+l];for(a(n,i,o,s,e),l=0;l<e;l++)t[u*e+l]=Math.sqrt(i[l])}}function a(t,e,r,n,i){r[0]=0,n[0]=-o,n[1]=+o;for(var a=1,s=0;a<i;a++){for(var l=(t[a]+a*a-(t[r[s]]+r[s]*r[s]))/(2*a-2*r[s]);l<=n[s];)s--,l=(t[a]+a*a-(t[r[s]]+r[s]*r[s]))/(2*a-2*r[s]);s++,r[s]=a,n[s]=l,n[s+1]=+o}for(a=0,s=0;a<i;a++){\n", "for(;n[s+1]<a;)s++;e[a]=(a-r[s])*(a-r[s])+t[r[s]]}}e.exports=n;var o=1e20;n.prototype.draw=function(t){this.ctx.clearRect(0,0,this.size,this.size),this.ctx.fillText(t,this.buffer,this.middle);for(var e=this.ctx.getImageData(0,0,this.size,this.size),r=e.data,n=0;n<this.size*this.size;n++){var a=r[4*n+3]/255;this.gridOuter[n]=1===a?0:0===a?o:Math.pow(Math.max(0,.5-a),2),this.gridInner[n]=1===a?o:0===a?0:Math.pow(Math.max(0,a-.5),2)}for(i(this.gridOuter,this.size,this.size,this.f,this.d,this.v,this.z),i(this.gridInner,this.size,this.size,this.f,this.d,this.v,this.z),n=0;n<this.size*this.size;n++){var s=this.gridOuter[n]-this.gridInner[n],l=Math.max(0,Math.min(255,Math.round(255-255*(s/this.radius+this.cutoff))));r[4*n+0]=l,r[4*n+1]=l,r[4*n+2]=l,r[4*n+3]=255}return e}},{}],534:[function(e,r,n){!function(e){function n(t,e){if(t=t||\"\",e=e||{},t instanceof n)return t;if(!(this instanceof n))return new n(t,e);var r=i(t);this._originalInput=t,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=V(100*this._a)/100,this._format=e.format||r.format,this._gradientType=e.gradientType,this._r<1&&(this._r=V(this._r)),this._g<1&&(this._g=V(this._g)),this._b<1&&(this._b=V(this._b)),this._ok=r.ok,this._tc_id=U++}function i(t){var e={r:0,g:0,b:0},r=1,n=null,i=null,o=null,l=!1,c=!1;return\"string\"==typeof t&&(t=F(t)),\"object\"==typeof t&&(R(t.r)&&R(t.g)&&R(t.b)?(e=a(t.r,t.g,t.b),l=!0,c=\"%\"===String(t.r).substr(-1)?\"prgb\":\"rgb\"):R(t.h)&&R(t.s)&&R(t.v)?(n=D(t.s),i=D(t.v),e=u(t.h,n,i),l=!0,c=\"hsv\"):R(t.h)&&R(t.s)&&R(t.l)&&(n=D(t.s),o=D(t.l),e=s(t.h,n,o),l=!0,c=\"hsl\"),t.hasOwnProperty(\"a\")&&(r=t.a)),r=T(r),{ok:l,format:t.format||c,r:H(255,q(e.r,0)),g:H(255,q(e.g,0)),b:H(255,q(e.b,0)),a:r}}function a(t,e,r){return{r:255*S(t,255),g:255*S(e,255),b:255*S(r,255)}}function o(t,e,r){t=S(t,255),e=S(e,255),r=S(r,255);var n,i,a=q(t,e,r),o=H(t,e,r),s=(a+o)/2;if(a==o)n=i=0;else{var l=a-o;switch(i=s>.5?l/(2-a-o):l/(a+o),a){case t:n=(e-r)/l+(e<r?6:0);break;case e:n=(r-t)/l+2;break;case r:n=(t-e)/l+4}n/=6}return{h:n,s:i,l:s}}function s(t,e,r){function n(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+6*(e-t)*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}var i,a,o;if(t=S(t,360),e=S(e,100),r=S(r,100),0===e)i=a=o=r;else{var s=r<.5?r*(1+e):r+e-r*e,l=2*r-s;i=n(l,s,t+1/3),a=n(l,s,t),o=n(l,s,t-1/3)}return{r:255*i,g:255*a,b:255*o}}function l(t,e,r){t=S(t,255),e=S(e,255),r=S(r,255);var n,i,a=q(t,e,r),o=H(t,e,r),s=a,l=a-o;if(i=0===a?0:l/a,a==o)n=0;else{switch(a){case t:n=(e-r)/l+(e<r?6:0);break;case e:n=(r-t)/l+2;break;case r:n=(t-e)/l+4}n/=6}return{h:n,s:i,v:s}}function u(t,r,n){t=6*S(t,360),r=S(r,100),n=S(n,100);var i=e.floor(t),a=t-i,o=n*(1-r),s=n*(1-a*r),l=n*(1-(1-a)*r),u=i%6;return{r:255*[n,s,o,o,l,n][u],g:255*[l,n,n,s,o,o][u],b:255*[o,o,l,n,n,s][u]}}function c(t,e,r,n){var i=[z(V(t).toString(16)),z(V(e).toString(16)),z(V(r).toString(16))];return n&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join(\"\")}function h(t,e,r,n,i){var a=[z(V(t).toString(16)),z(V(e).toString(16)),z(V(r).toString(16)),z(P(n))];return i&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join(\"\")}function f(t,e,r,n){return[z(P(n)),z(V(t).toString(16)),z(V(e).toString(16)),z(V(r).toString(16))].join(\"\")}function d(t,e){e=0===e?0:e||10;var r=n(t).toHsl();return r.s-=e/100,r.s=E(r.s),n(r)}function p(t,e){e=0===e?0:e||10;var r=n(t).toHsl();return r.s+=e/100,r.s=E(r.s),n(r)}function m(t){return n(t).desaturate(100)}function v(t,e){e=0===e?0:e||10;var r=n(t).toHsl();return r.l+=e/100,r.l=E(r.l),n(r)}function g(t,e){e=0===e?0:e||10;var r=n(t).toRgb();return r.r=q(0,H(255,r.r-V(-e/100*255))),r.g=q(0,H(255,r.g-V(-e/100*255))),r.b=q(0,H(255,r.b-V(-e/100*255))),n(r)}function y(t,e){e=0===e?0:e||10;var r=n(t).toHsl();return r.l-=e/100,r.l=E(r.l),n(r)}function b(t,e){var r=n(t).toHsl(),i=(r.h+e)%360;return r.h=i<0?360+i:i,n(r)}function x(t){var e=n(t).toHsl();return e.h=(e.h+180)%360,n(e)}function _(t){var e=n(t).toHsl(),r=e.h;return[n(t),n({h:(r+120)%360,s:e.s,l:e.l}),n({h:(r+240)%360,s:e.s,l:e.l})]}function w(t){var e=n(t).toHsl(),r=e.h;return[n(t),n({h:(r+90)%360,s:e.s,l:e.l}),n({h:(r+180)%360,s:e.s,l:e.l}),n({h:(r+270)%360,s:e.s,l:e.l})]}function M(t){var e=n(t).toHsl(),r=e.h;return[n(t),n({h:(r+72)%360,s:e.s,l:e.l}),n({h:(r+216)%360,s:e.s,l:e.l})]}function k(t,e,r){e=e||6,r=r||30;var i=n(t).toHsl(),a=360/r,o=[n(t)];for(i.h=(i.h-(a*e>>1)+720)%360;--e;)i.h=(i.h+a)%360,o.push(n(i));return o}function A(t,e){e=e||6;for(var r=n(t).toHsv(),i=r.h,a=r.s,o=r.v,s=[],l=1/e;e--;)s.push(n({h:i,s:a,v:o})),o=(o+l)%1;return s}function T(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function S(t,r){C(t)&&(t=\"100%\");var n=I(t);return t=H(r,q(0,parseFloat(t))),n&&(t=parseInt(t*r,10)/100),e.abs(t-r)<1e-6?1:t%r/parseFloat(r)}function E(t){return H(1,q(0,t))}function L(t){return parseInt(t,16)}function C(t){return\"string\"==typeof t&&-1!=t.indexOf(\".\")&&1===parseFloat(t)}function I(t){return\"string\"==typeof t&&-1!=t.indexOf(\"%\")}function z(t){return 1==t.length?\"0\"+t:\"\"+t}function D(t){return t<=1&&(t=100*t+\"%\"),t}function P(t){return e.round(255*parseFloat(t)).toString(16)}function O(t){return L(t)/255}function R(t){return!!X.CSS_UNIT.exec(t)}function F(t){t=t.replace(N,\"\").replace(B,\"\").toLowerCase();var e=!1;if(Y[t])t=Y[t],e=!0;else if(\"transparent\"==t)return{r:0,g:0,b:0,a:0,format:\"name\"};var r;return(r=X.rgb.exec(t))?{r:r[1],g:r[2],b:r[3]}:(r=X.rgba.exec(t))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=X.hsl.exec(t))?{h:r[1],s:r[2],l:r[3]}:(r=X.hsla.exec(t))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=X.hsv.exec(t))?{h:r[1],s:r[2],v:r[3]}:(r=X.hsva.exec(t))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=X.hex8.exec(t))?{r:L(r[1]),g:L(r[2]),b:L(r[3]),a:O(r[4]),format:e?\"name\":\"hex8\"}:(r=X.hex6.exec(t))?{r:L(r[1]),g:L(r[2]),b:L(r[3]),format:e?\"name\":\"hex\"}:(r=X.hex4.exec(t))?{r:L(r[1]+\"\"+r[1]),g:L(r[2]+\"\"+r[2]),b:L(r[3]+\"\"+r[3]),a:O(r[4]+\"\"+r[4]),format:e?\"name\":\"hex8\"}:!!(r=X.hex3.exec(t))&&{r:L(r[1]+\"\"+r[1]),g:L(r[2]+\"\"+r[2]),b:L(r[3]+\"\"+r[3]),format:e?\"name\":\"hex\"}}function j(t){var e,r;return t=t||{level:\"AA\",size:\"small\"},e=(t.level||\"AA\").toUpperCase(),r=(t.size||\"small\").toLowerCase(),\"AA\"!==e&&\"AAA\"!==e&&(e=\"AA\"),\"small\"!==r&&\"large\"!==r&&(r=\"small\"),{level:e,size:r}}var N=/^\\s+/,B=/\\s+$/,U=0,V=e.round,H=e.min,q=e.max,G=e.random;n.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var t,r,n,i,a,o,s=this.toRgb();return t=s.r/255,r=s.g/255,n=s.b/255,i=t<=.03928?t/12.92:e.pow((t+.055)/1.055,2.4),a=r<=.03928?r/12.92:e.pow((r+.055)/1.055,2.4),o=n<=.03928?n/12.92:e.pow((n+.055)/1.055,2.4),.2126*i+.7152*a+.0722*o},setAlpha:function(t){return this._a=T(t),this._roundA=V(100*this._a)/100,this},toHsv:function(){var t=l(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=l(this._r,this._g,this._b),e=V(360*t.h),r=V(100*t.s),n=V(100*t.v);return 1==this._a?\"hsv(\"+e+\", \"+r+\"%, \"+n+\"%)\":\"hsva(\"+e+\", \"+r+\"%, \"+n+\"%, \"+this._roundA+\")\"},toHsl:function(){var t=o(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=o(this._r,this._g,this._b),e=V(360*t.h),r=V(100*t.s),n=V(100*t.l);return 1==this._a?\"hsl(\"+e+\", \"+r+\"%, \"+n+\"%)\":\"hsla(\"+e+\", \"+r+\"%, \"+n+\"%, \"+this._roundA+\")\"},toHex:function(t){return c(this._r,this._g,this._b,t)},toHexString:function(t){return\"#\"+this.toHex(t)},toHex8:function(t){return h(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return\"#\"+this.toHex8(t)},toRgb:function(){return{r:V(this._r),g:V(this._g),b:V(this._b),a:this._a}},toRgbString:function(){return 1==this._a?\"rgb(\"+V(this._r)+\", \"+V(this._g)+\", \"+V(this._b)+\")\":\"rgba(\"+V(this._r)+\", \"+V(this._g)+\", \"+V(this._b)+\", \"+this._roundA+\")\"},toPercentageRgb:function(){return{r:V(100*S(this._r,255))+\"%\",g:V(100*S(this._g,255))+\"%\",b:V(100*S(this._b,255))+\"%\",a:this._a}},toPercentageRgbString:function(){return 1==this._a?\"rgb(\"+V(100*S(this._r,255))+\"%, \"+V(100*S(this._g,255))+\"%, \"+V(100*S(this._b,255))+\"%)\":\"rgba(\"+V(100*S(this._r,255))+\"%, \"+V(100*S(this._g,255))+\"%, \"+V(100*S(this._b,255))+\"%, \"+this._roundA+\")\"},toName:function(){return 0===this._a?\"transparent\":!(this._a<1)&&(W[c(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e=\"#\"+f(this._r,this._g,this._b,this._a),r=e,i=this._gradientType?\"GradientType = 1, \":\"\";if(t){var a=n(t);r=\"#\"+f(a._r,a._g,a._b,a._a)}return\"progid:DXImageTransform.Microsoft.gradient(\"+i+\"startColorstr=\"+e+\",endColorstr=\"+r+\")\"},toString:function(t){var e=!!t;t=t||this._format;var r=!1,n=this._a<1&&this._a>=0;return e||!n||\"hex\"!==t&&\"hex6\"!==t&&\"hex3\"!==t&&\"hex4\"!==t&&\"hex8\"!==t&&\"name\"!==t?(\"rgb\"===t&&(r=this.toRgbString()),\"prgb\"===t&&(r=this.toPercentageRgbString()),\"hex\"!==t&&\"hex6\"!==t||(r=this.toHexString()),\"hex3\"===t&&(r=this.toHexString(!0)),\"hex4\"===t&&(r=this.toHex8String(!0)),\"hex8\"===t&&(r=this.toHex8String()),\"name\"===t&&(r=this.toName()),\"hsl\"===t&&(r=this.toHslString()),\"hsv\"===t&&(r=this.toHsvString()),r||this.toHexString()):\"name\"===t&&0===this._a?this.toName():this.toRgbString()},clone:function(){return n(this.toString())},_applyModification:function(t,e){var r=t.apply(null,[this].concat([].slice.call(e)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(v,arguments)},brighten:function(){return this._applyModification(g,arguments)},darken:function(){return this._applyModification(y,arguments)},desaturate:function(){return this._applyModification(d,arguments)},saturate:function(){return this._applyModification(p,arguments)},greyscale:function(){return this._applyModification(m,arguments)},spin:function(){return this._applyModification(b,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(k,arguments)},complement:function(){return this._applyCombination(x,arguments)},monochromatic:function(){return this._applyCombination(A,arguments)},splitcomplement:function(){return this._applyCombination(M,arguments)},triad:function(){return this._applyCombination(_,arguments)},tetrad:function(){return this._applyCombination(w,arguments)}},n.fromRatio=function(t,e){if(\"object\"==typeof t){var r={};for(var i in t)t.hasOwnProperty(i)&&(r[i]=\"a\"===i?t[i]:D(t[i]));t=r}return n(t,e)},n.equals=function(t,e){return!(!t||!e)&&n(t).toRgbString()==n(e).toRgbString()},n.random=function(){return n.fromRatio({r:G(),g:G(),b:G()})},n.mix=function(t,e,r){r=0===r?0:r||50;var i=n(t).toRgb(),a=n(e).toRgb(),o=r/100;return n({r:(a.r-i.r)*o+i.r,g:(a.g-i.g)*o+i.g,b:(a.b-i.b)*o+i.b,a:(a.a-i.a)*o+i.a})},n.readability=function(t,r){var i=n(t),a=n(r);return(e.max(i.getLuminance(),a.getLuminance())+.05)/(e.min(i.getLuminance(),a.getLuminance())+.05)},n.isReadable=function(t,e,r){var i,a,o=n.readability(t,e);switch(a=!1,i=j(r),i.level+i.size){case\"AAsmall\":case\"AAAlarge\":a=o>=4.5;break;case\"AAlarge\":a=o>=3;break;case\"AAAsmall\":a=o>=7}return a},n.mostReadable=function(t,e,r){var i,a,o,s,l=null,u=0;r=r||{},a=r.includeFallbackColors,o=r.level,s=r.size;for(var c=0;c<e.length;c++)(i=n.readability(t,e[c]))>u&&(u=i,l=n(e[c]));return n.isReadable(t,l,{level:o,size:s})||!a?l:(r.includeFallbackColors=!1,n.mostReadable(t,[\"#fff\",\"#000\"],r))};var Y=n.names={aliceblue:\"f0f8ff\",antiquewhite:\"faebd7\",aqua:\"0ff\",aquamarine:\"7fffd4\",azure:\"f0ffff\",beige:\"f5f5dc\",bisque:\"ffe4c4\",black:\"000\",blanchedalmond:\"ffebcd\",blue:\"00f\",blueviolet:\"8a2be2\",brown:\"a52a2a\",burlywood:\"deb887\",burntsienna:\"ea7e5d\",cadetblue:\"5f9ea0\",chartreuse:\"7fff00\",chocolate:\"d2691e\",coral:\"ff7f50\",cornflowerblue:\"6495ed\",cornsilk:\"fff8dc\",crimson:\"dc143c\",cyan:\"0ff\",darkblue:\"00008b\",darkcyan:\"008b8b\",darkgoldenrod:\"b8860b\",darkgray:\"a9a9a9\",darkgreen:\"006400\",darkgrey:\"a9a9a9\",darkkhaki:\"bdb76b\",darkmagenta:\"8b008b\",darkolivegreen:\"556b2f\",darkorange:\"ff8c00\",darkorchid:\"9932cc\",darkred:\"8b0000\",darksalmon:\"e9967a\",darkseagreen:\"8fbc8f\",darkslateblue:\"483d8b\",darkslategray:\"2f4f4f\",darkslategrey:\"2f4f4f\",darkturquoise:\"00ced1\",darkviolet:\"9400d3\",deeppink:\"ff1493\",deepskyblue:\"00bfff\",dimgray:\"696969\",dimgrey:\"696969\",dodgerblue:\"1e90ff\",firebrick:\"b22222\",floralwhite:\"fffaf0\",forestgreen:\"228b22\",fuchsia:\"f0f\",gainsboro:\"dcdcdc\",ghostwhite:\"f8f8ff\",gold:\"ffd700\",goldenrod:\"daa520\",gray:\"808080\",green:\"008000\",greenyellow:\"adff2f\",grey:\"808080\",honeydew:\"f0fff0\",hotpink:\"ff69b4\",indianred:\"cd5c5c\",indigo:\"4b0082\",ivory:\"fffff0\",khaki:\"f0e68c\",lavender:\"e6e6fa\",lavenderblush:\"fff0f5\",lawngreen:\"7cfc00\",lemonchiffon:\"fffacd\",lightblue:\"add8e6\",lightcoral:\"f08080\",lightcyan:\"e0ffff\",lightgoldenrodyellow:\"fafad2\",lightgray:\"d3d3d3\",lightgreen:\"90ee90\",lightgrey:\"d3d3d3\",lightpink:\"ffb6c1\",lightsalmon:\"ffa07a\",lightseagreen:\"20b2aa\",lightskyblue:\"87cefa\",lightslategray:\"789\",lightslategrey:\"789\",lightsteelblue:\"b0c4de\",lightyellow:\"ffffe0\",lime:\"0f0\",limegreen:\"32cd32\",linen:\"faf0e6\",magenta:\"f0f\",maroon:\"800000\",mediumaquamarine:\"66cdaa\",mediumblue:\"0000cd\",mediumorchid:\"ba55d3\",mediumpurple:\"9370db\",mediumseagreen:\"3cb371\",mediumslateblue:\"7b68ee\",mediumspringgreen:\"00fa9a\",mediumturquoise:\"48d1cc\",mediumvioletred:\"c71585\",midnightblue:\"191970\",mintcream:\"f5fffa\",mistyrose:\"ffe4e1\",moccasin:\"ffe4b5\",navajowhite:\"ffdead\",navy:\"000080\",oldlace:\"fdf5e6\",olive:\"808000\",olivedrab:\"6b8e23\",orange:\"ffa500\",orangered:\"ff4500\",orchid:\"da70d6\",palegoldenrod:\"eee8aa\",palegreen:\"98fb98\",paleturquoise:\"afeeee\",palevioletred:\"db7093\",papayawhip:\"ffefd5\",peachpuff:\"ffdab9\",peru:\"cd853f\",pink:\"ffc0cb\",plum:\"dda0dd\",powderblue:\"b0e0e6\",purple:\"800080\",rebeccapurple:\"663399\",red:\"f00\",rosybrown:\"bc8f8f\",royalblue:\"4169e1\",saddlebrown:\"8b4513\",salmon:\"fa8072\",sandybrown:\"f4a460\",seagreen:\"2e8b57\",seashell:\"fff5ee\",sienna:\"a0522d\",silver:\"c0c0c0\",skyblue:\"87ceeb\",slateblue:\"6a5acd\",slategray:\"708090\",slategrey:\"708090\",snow:\"fffafa\",springgreen:\"00ff7f\",steelblue:\"4682b4\",tan:\"d2b48c\",teal:\"008080\",thistle:\"d8bfd8\",tomato:\"ff6347\",turquoise:\"40e0d0\",violet:\"ee82ee\",wheat:\"f5deb3\",white:\"fff\",whitesmoke:\"f5f5f5\",yellow:\"ff0\",yellowgreen:\"9acd32\"},W=n.hexNames=function(t){var e={};for(var r in t)t.hasOwnProperty(r)&&(e[t[r]]=r);return e}(Y),X=function(){var t=\"(?:[-\\\\+]?\\\\d*\\\\.\\\\d+%?)|(?:[-\\\\+]?\\\\d+%?)\",e=\"[\\\\s|\\\\(]+(\"+t+\")[,|\\\\s]+(\"+t+\")[,|\\\\s]+(\"+t+\")\\\\s*\\\\)?\",r=\"[\\\\s|\\\\(]+(\"+t+\")[,|\\\\s]+(\"+t+\")[,|\\\\s]+(\"+t+\")[,|\\\\s]+(\"+t+\")\\\\s*\\\\)?\";return{CSS_UNIT:new RegExp(t),rgb:new RegExp(\"rgb\"+e),rgba:new RegExp(\"rgba\"+r),hsl:new RegExp(\"hsl\"+e),hsla:new RegExp(\"hsla\"+r),hsv:new RegExp(\"hsv\"+e),hsva:new RegExp(\"hsva\"+r),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();void 0!==r&&r.exports?r.exports=n:\"function\"==typeof t&&t.amd?t(function(){return n}):window.tinycolor=n}(Math)},{}],535:[function(t,e,r){\"use strict\";function n(t,e){var r=o(getComputedStyle(t).getPropertyValue(e));return r[0]*a(r[1],t)}function i(t,e){var r=document.createElement(\"div\");r.style[\"font-size\"]=\"128\"+t,e.appendChild(r);var i=n(r,\"font-size\")/128;return e.removeChild(r),i}function a(t,e){switch(e=e||document.body,t=(t||\"px\").trim().toLowerCase(),e!==window&&e!==document||(e=document.body),t){case\"%\":return e.clientHeight/100;case\"ch\":case\"ex\":return i(t,e);case\"em\":return n(e,\"font-size\");case\"rem\":return n(document.body,\"font-size\");case\"vw\":return window.innerWidth/100;case\"vh\":return window.innerHeight/100;case\"vmin\":return Math.min(window.innerWidth,window.innerHeight)/100;case\"vmax\":return Math.max(window.innerWidth,window.innerHeight)/100;case\"in\":return s;case\"cm\":return s/2.54;case\"mm\":return s/25.4;case\"pt\":return s/72;case\"pc\":return s/6}return 1}var o=t(\"parse-unit\");e.exports=a;var s=96},{\"parse-unit\":475}],536:[function(e,r,n){!function(e,i){\"object\"==typeof n&&void 0!==r?i(n):\"function\"==typeof t&&t.amd?t([\"exports\"],i):i(e.topojson=e.topojson||{})}(this,function(t){\"use strict\";function e(t,e){var n=e.id,i=e.bbox,a=null==e.properties?{}:e.properties,o=r(t,e);return null==n&&null==i?{type:\"Feature\",properties:a,geometry:o}:null==i?{type:\"Feature\",id:n,properties:a,geometry:o}:{type:\"Feature\",id:n,bbox:i,properties:a,geometry:o}}function r(t,e){function r(t,e){e.length&&e.pop();for(var r=h[t<0?~t:t],n=0,i=r.length;n<i;++n)e.push(u(r[n].slice(),n));t<0&&c(e,i)}function n(t){return u(t.slice())}function i(t){for(var e=[],n=0,i=t.length;n<i;++n)r(t[n],e);return e.length<2&&e.push(e[0].slice()),e}function a(t){for(var e=i(t);e.length<4;)e.push(e[0].slice());return e}function o(t){return t.map(a)}function s(t){var e,r=t.type;switch(r){case\"GeometryCollection\":return{type:r,geometries:t.geometries.map(s)};case\"Point\":e=n(t.coordinates);break;case\"MultiPoint\":e=t.coordinates.map(n);break;case\"LineString\":e=i(t.arcs);break;case\"MultiLineString\":e=t.arcs.map(i);break;case\"Polygon\":e=o(t.arcs);break;case\"MultiPolygon\":e=t.arcs.map(o);break;default:return null}return{type:r,coordinates:e}}var u=l(t),h=t.arcs;return s(e)}function n(t,e,r){var n,a,o;if(arguments.length>1)n=i(t,e,r);else for(a=0,n=new Array(o=t.arcs.length);a<o;++a)n[a]=a;return{type:\"MultiLineString\",arcs:f(t,n)}}function i(t,e,r){function n(t){var e=t<0?~t:t;(c[e]||(c[e]=[])).push({i:t,g:l})}function i(t){t.forEach(n)}function a(t){t.forEach(i)}function o(t){t.forEach(a)}function s(t){switch(l=t,t.type){case\"GeometryCollection\":t.geometries.forEach(s);break;case\"LineString\":i(t.arcs);break;case\"MultiLineString\":case\"Polygon\":a(t.arcs);break;case\"MultiPolygon\":o(t.arcs)}}var l,u=[],c=[];return s(e),c.forEach(null==r?function(t){u.push(t[0].i)}:function(t){r(t[0].g,t[t.length-1].g)&&u.push(t[0].i)}),u}function a(t){for(var e,r=-1,n=t.length,i=t[n-1],a=0;++r<n;)e=i,i=t[r],a+=e[0]*i[1]-e[1]*i[0];return Math.abs(a)}function o(t,e){function n(t){switch(t.type){case\"GeometryCollection\":t.geometries.forEach(n);break;case\"Polygon\":i(t.arcs);break;case\"MultiPolygon\":t.arcs.forEach(i)}}function i(t){t.forEach(function(e){e.forEach(function(e){(s[e=e<0?~e:e]||(s[e]=[])).push(t)})}),l.push(t)}function o(e){return a(r(t,{type:\"Polygon\",arcs:[e]}).coordinates[0])}var s={},l=[],u=[];return e.forEach(n),l.forEach(function(t){if(!t._){var e=[],r=[t];for(t._=1,u.push(e);t=r.pop();)e.push(t),t.forEach(function(t){t.forEach(function(t){s[t<0?~t:t].forEach(function(t){t._||(t._=1,r.push(t))})})})}}),l.forEach(function(t){delete t._}),{type:\"MultiPolygon\",arcs:u.map(function(e){var r,n=[];if(e.forEach(function(t){t.forEach(function(t){t.forEach(function(t){s[t<0?~t:t].length<2&&n.push(t)})})}),n=f(t,n),(r=n.length)>1)for(var i,a,l=1,u=o(n[0]);l<r;++l)(i=o(n[l]))>u&&(a=n[0],n[0]=n[l],n[l]=a,u=i);return n})}}var s=function(t){return t},l=function(t){if(null==(e=t.transform))return s;var e,r,n,i=e.scale[0],a=e.scale[1],o=e.translate[0],l=e.translate[1];return function(t,e){return e||(r=n=0),t[0]=(r+=t[0])*i+o,t[1]=(n+=t[1])*a+l,t}},u=function(t){function e(t){s[0]=t[0],s[1]=t[1],o(s),s[0]<u&&(u=s[0]),s[0]>h&&(h=s[0]),s[1]<c&&(c=s[1]),s[1]>f&&(f=s[1])}function r(t){switch(t.type){case\"GeometryCollection\":t.geometries.forEach(r);break;case\"Point\":e(t.coordinates);break;case\"MultiPoint\":t.coordinates.forEach(e)}}var n=t.bbox;if(!n){var i,a,o=l(t),s=new Array(2),u=1/0,c=u,h=-u,f=-u;t.arcs.forEach(function(t){for(var e=-1,r=t.length;++e<r;)i=t[e],s[0]=i[0],s[1]=i[1],o(s,e),s[0]<u&&(u=s[0]),s[0]>h&&(h=s[0]),s[1]<c&&(c=s[1]),s[1]>f&&(f=s[1])});for(a in t.objects)r(t.objects[a]);n=t.bbox=[u,c,h,f]}return n},c=function(t,e){for(var r,n=t.length,i=n-e;i<--n;)r=t[i],t[i++]=t[n],t[n]=r},h=function(t,r){return\"GeometryCollection\"===r.type?{type:\"FeatureCollection\",features:r.geometries.map(function(r){return e(t,r)})}:e(t,r)},f=function(t,e){function r(e){var r,n=t.arcs[e<0?~e:e],i=n[0];return t.transform?(r=[0,0],n.forEach(function(t){r[0]+=t[0],r[1]+=t[1]})):r=n[n.length-1],e<0?[r,i]:[i,r]}function n(t,e){for(var r in t){var n=t[r];delete e[n.start],delete n.start,delete n.end,n.forEach(function(t){i[t<0?~t:t]=1}),s.push(n)}}var i={},a={},o={},s=[],l=-1;return e.forEach(function(r,n){var i,a=t.arcs[r<0?~r:r];a.length<3&&!a[1][0]&&!a[1][1]&&(i=e[++l],e[l]=r,e[n]=i)}),e.forEach(function(t){var e,n,i=r(t),s=i[0],l=i[1];if(e=o[s])if(delete o[e.end],e.push(t),e.end=l,n=a[l]){delete a[n.start];var u=n===e?e:e.concat(n);a[u.start=e.start]=o[u.end=n.end]=u}else a[e.start]=o[e.end]=e;else if(e=a[l])if(delete a[e.start],e.unshift(t),e.start=s,n=o[s]){delete o[n.end];var c=n===e?e:n.concat(e);a[c.start=n.start]=o[c.end=e.end]=c}else a[e.start]=o[e.end]=e;else e=[t],a[e.start=s]=o[e.end=l]=e}),n(o,a),n(a,o),e.forEach(function(t){i[t<0?~t:t]||s.push([t])}),s},d=function(t){return r(t,n.apply(this,arguments))},p=function(t){return r(t,o.apply(this,arguments))},m=function(t,e){for(var r=0,n=t.length;r<n;){var i=r+n>>>1;t[i]<e?r=i+1:n=i}return r},v=function(t){function e(t,e){t.forEach(function(t){t<0&&(t=~t);var r=i[t];r?r.push(e):i[t]=[e]})}function r(t,r){t.forEach(function(t){e(t,r)})}function n(t,e){\"GeometryCollection\"===t.type?t.geometries.forEach(function(t){n(t,e)}):t.type in o&&o[t.type](t.arcs,e)}var i={},a=t.map(function(){return[]}),o={LineString:e,MultiLineString:r,Polygon:r,MultiPolygon:function(t,e){t.forEach(function(t){r(t,e)})}};t.forEach(n);for(var s in i)for(var l=i[s],u=l.length,c=0;c<u;++c)for(var h=c+1;h<u;++h){var f,d=l[c],p=l[h];(f=a[d])[s=m(f,p)]!==p&&f.splice(s,0,p),(f=a[p])[s=m(f,d)]!==d&&f.splice(s,0,d)}return a},g=function(t,e){function r(t){t[0]=Math.round((t[0]-o)/s),t[1]=Math.round((t[1]-l)/c)}function n(t){switch(t.type){case\"GeometryCollection\":t.geometries.forEach(n);break;case\"Point\":r(t.coordinates);break;case\"MultiPoint\":t.coordinates.forEach(r)}}if(!((e=Math.floor(e))>=2))throw new Error(\"n must be \\u22652\");if(t.transform)throw new Error(\"already quantized\");var i,a=u(t),o=a[0],s=(a[2]-o)/(e-1)||1,l=a[1],c=(a[3]-l)/(e-1)||1;t.arcs.forEach(function(t){for(var e,r,n,i=1,a=1,u=t.length,h=t[0],f=h[0]=Math.round((h[0]-o)/s),d=h[1]=Math.round((h[1]-l)/c);i<u;++i)h=t[i],r=Math.round((h[0]-o)/s),n=Math.round((h[1]-l)/c),r===f&&n===d||(e=t[a++],e[0]=r-f,f=r,e[1]=n-d,d=n);a<2&&(e=t[a++],e[0]=0,e[1]=0),t.length=a});for(i in t.objects)n(t.objects[i]);return t.transform={scale:[s,c],translate:[o,l]},t},y=function(t){if(null==(e=t.transform))return s;var e,r,n,i=e.scale[0],a=e.scale[1],o=e.translate[0],l=e.translate[1];return function(t,e){e||(r=n=0);var s=Math.round((t[0]-o)/i),u=Math.round((t[1]-l)/a);return t[0]=s-r,r=s,t[1]=u-n,n=u,t}};t.bbox=u,t.feature=h,t.mesh=d,t.meshArcs=n,t.merge=p,t.mergeArcs=o,t.neighbors=v,t.quantize=g,t.transform=l,t.untransform=y,Object.defineProperty(t,\"__esModule\",{value:!0})})},{}],537:[function(t,e,r){\"use strict\";function n(t){if(t<0)return[];if(0===t)return[[0]];for(var e=0|Math.round(o(t+1)),r=[],n=0;n<e;++n){for(var s=i.unrank(t,n),l=[0],u=0,c=0;c<s.length;++c)u+=1<<s[c],l.push(u);a(s)<1&&(l[0]=u,l[t]=0),r.push(l)}return r}e.exports=n;var i=t(\"permutation-rank\"),a=t(\"permutation-parity\"),o=t(\"gamma\")},{gamma:136,\"permutation-parity\":479,\"permutation-rank\":480}],538:[function(t,e,r){\"use strict\";function n(t,e,r){return Math.sqrt(Math.pow(t,2)+Math.pow(e,2)+Math.pow(r,2))}function i(t){return Math.min(1,Math.max(-1,t))}function a(t){var e=Math.abs(t[0]),r=Math.abs(t[1]),n=Math.abs(t[2]),i=[0,0,0];e>Math.max(r,n)?i[2]=1:r>Math.max(e,n)?i[0]=1:i[1]=1;for(var a=0,o=0,s=0;s<3;++s)a+=t[s]*t[s],o+=i[s]*t[s];for(var s=0;s<3;++s)i[s]-=o/a*t[s];return f(i,i),i}function o(t,e,r,n,i,a,o,s){this.center=l(r),this.up=l(n),this.right=l(i),this.radius=l([a]),this.angle=l([o,s]),this.angle.bounds=[[-1/0,-Math.PI/2],[1/0,Math.PI/2]],this.setDistanceLimits(t,e),this.computedCenter=this.center.curve(0),this.computedUp=this.up.curve(0),this.computedRight=this.right.curve(0),this.computedRadius=this.radius.curve(0),this.computedAngle=this.angle.curve(0),this.computedToward=[0,0,0],this.computedEye=[0,0,0],this.computedMatrix=new Array(16);for(var u=0;u<16;++u)this.computedMatrix[u]=.5;this.recalcMatrix(0)}function s(t){t=t||{};var e=t.center||[0,0,0],r=t.up||[0,1,0],i=t.right||a(r),s=t.radius||1,l=t.theta||0,u=t.phi||0;if(e=[].slice.call(e,0,3),r=[].slice.call(r,0,3),f(r,r),i=[].slice.call(i,0,3),f(i,i),\"eye\"in t){var c=t.eye,p=[c[0]-e[0],c[1]-e[1],c[2]-e[2]];h(i,p,r),n(i[0],i[1],i[2])<1e-6?i=a(r):f(i,i),s=n(p[0],p[1],p[2]);var m=d(r,p)/s,v=d(i,p)/s;u=Math.acos(m),l=Math.acos(v)}return s=Math.log(s),new o(t.zoomMin,t.zoomMax,e,r,i,s,l,u)}e.exports=s;var l=t(\"filtered-vector\"),u=t(\"gl-mat4/invert\"),c=t(\"gl-mat4/rotate\"),h=t(\"gl-vec3/cross\"),f=t(\"gl-vec3/normalize\"),d=t(\"gl-vec3/dot\"),p=o.prototype;p.setDistanceLimits=function(t,e){t=t>0?Math.log(t):-1/0,e=e>0?Math.log(e):1/0,e=Math.max(e,t),this.radius.bounds[0][0]=t,this.radius.bounds[1][0]=e},p.getDistanceLimits=function(t){var e=this.radius.bounds[0];return t?(t[0]=Math.exp(e[0][0]),t[1]=Math.exp(e[1][0]),t):[Math.exp(e[0][0]),Math.exp(e[1][0])]},p.recalcMatrix=function(t){this.center.curve(t),this.up.curve(t),this.right.curve(t),this.radius.curve(t),this.angle.curve(t);for(var e=this.computedUp,r=this.computedRight,i=0,a=0,o=0;o<3;++o)a+=e[o]*r[o],i+=e[o]*e[o];for(var s=Math.sqrt(i),l=0,o=0;o<3;++o)r[o]-=e[o]*a/i,l+=r[o]*r[o],e[o]/=s;for(var u=Math.sqrt(l),o=0;o<3;++o)r[o]/=u;var c=this.computedToward;h(c,e,r),f(c,c);for(var d=Math.exp(this.computedRadius[0]),p=this.computedAngle[0],m=this.computedAngle[1],v=Math.cos(p),g=Math.sin(p),y=Math.cos(m),b=Math.sin(m),x=this.computedCenter,_=v*y,w=g*y,M=b,k=-v*b,A=-g*b,T=y,S=this.computedEye,E=this.computedMatrix,o=0;o<3;++o){var L=_*r[o]+w*c[o]+M*e[o];E[4*o+1]=k*r[o]+A*c[o]+T*e[o],E[4*o+2]=L,E[4*o+3]=0}var C=E[1],I=E[5],z=E[9],D=E[2],P=E[6],O=E[10],R=I*O-z*P,F=z*D-C*O,j=C*P-I*D,N=n(R,F,j);R/=N,F/=N,j/=N,E[0]=R,E[4]=F,E[8]=j;for(var o=0;o<3;++o)S[o]=x[o]+E[2+4*o]*d;for(var o=0;o<3;++o){for(var l=0,B=0;B<3;++B)l+=E[o+4*B]*S[B];E[12+o]=-l}E[15]=1},p.getMatrix=function(t,e){this.recalcMatrix(t);var r=this.computedMatrix;if(e){for(var n=0;n<16;++n)e[n]=r[n];return e}return r};var m=[0,0,0];p.rotate=function(t,e,r,n){if(this.angle.move(t,e,r),n){this.recalcMatrix(t);var i=this.computedMatrix;m[0]=i[2],m[1]=i[6],m[2]=i[10];for(var a=this.computedUp,o=this.computedRight,s=this.computedToward,l=0;l<3;++l)i[4*l]=a[l],i[4*l+1]=o[l],i[4*l+2]=s[l];c(i,i,n,m);for(var l=0;l<3;++l)a[l]=i[4*l],o[l]=i[4*l+1];this.up.set(t,a[0],a[1],a[2]),this.right.set(t,o[0],o[1],o[2])}},p.pan=function(t,e,r,i){e=e||0,r=r||0,i=i||0,this.recalcMatrix(t);var a=this.computedMatrix,o=(Math.exp(this.computedRadius[0]),a[1]),s=a[5],l=a[9],u=n(o,s,l);o/=u,s/=u,l/=u;var c=a[0],h=a[4],f=a[8],d=c*o+h*s+f*l;c-=o*d,h-=s*d,f-=l*d;var p=n(c,h,f);c/=p,h/=p,f/=p;var m=c*e+o*r,v=h*e+s*r,g=f*e+l*r;this.center.move(t,m,v,g);var y=Math.exp(this.computedRadius[0]);y=Math.max(1e-4,y+i),this.radius.set(t,Math.log(y))},p.translate=function(t,e,r,n){this.center.move(t,e||0,r||0,n||0)},p.setMatrix=function(t,e,r,a){var o=1;\"number\"==typeof r&&(o=0|r),(o<0||o>3)&&(o=1);var s=(o+2)%3;e||(this.recalcMatrix(t),e=this.computedMatrix);var l=e[o],c=e[o+4],h=e[o+8];if(a){var f=Math.abs(l),d=Math.abs(c),p=Math.abs(h),m=Math.max(f,d,p);f===m?(l=l<0?-1:1,c=h=0):p===m?(h=h<0?-1:1,l=c=0):(c=c<0?-1:1,l=h=0)}else{var v=n(l,c,h);l/=v,c/=v,h/=v}var g=e[s],y=e[s+4],b=e[s+8],x=g*l+y*c+b*h;g-=l*x,y-=c*x,b-=h*x;var _=n(g,y,b);g/=_,y/=_,b/=_;var w=c*b-h*y,M=h*g-l*b,k=l*y-c*g,A=n(w,M,k);w/=A,M/=A,k/=A,this.center.jump(t,q,G,Y),this.radius.idle(t),this.up.jump(t,l,c,h),this.right.jump(t,g,y,b);var T,S;if(2===o){var E=e[1],L=e[5],C=e[9],I=E*g+L*y+C*b,z=E*w+L*M+C*k;T=R<0?-Math.PI/2:Math.PI/2,S=Math.atan2(z,I)}else{var D=e[2],P=e[6],O=e[10],R=D*l+P*c+O*h,F=D*g+P*y+O*b,j=D*w+P*M+O*k;T=Math.asin(i(R)),S=Math.atan2(j,F)}this.angle.jump(t,S,T),this.recalcMatrix(t);var N=e[2],B=e[6],U=e[10],V=this.computedMatrix;u(V,e);var H=V[15],q=V[12]/H,G=V[13]/H,Y=V[14]/H,W=Math.exp(this.computedRadius[0]);this.center.jump(t,q-N*W,G-B*W,Y-U*W)},p.lastT=function(){return Math.max(this.center.lastT(),this.up.lastT(),this.right.lastT(),this.radius.lastT(),this.angle.lastT())},p.idle=function(t){this.center.idle(t),this.up.idle(t),this.right.idle(t),this.radius.idle(t),this.angle.idle(t)},p.flush=function(t){this.center.flush(t),this.up.flush(t),this.right.flush(t),this.radius.flush(t),this.angle.flush(t)},p.setDistance=function(t,e){e>0&&this.radius.set(t,Math.log(e))},p.lookAt=function(t,e,r,a){this.recalcMatrix(t),e=e||this.computedEye,r=r||this.computedCenter,a=a||this.computedUp;var o=a[0],s=a[1],l=a[2],u=n(o,s,l);if(!(u<1e-6)){o/=u,s/=u,l/=u;var c=e[0]-r[0],h=e[1]-r[1],f=e[2]-r[2],d=n(c,h,f);if(!(d<1e-6)){c/=d,h/=d,f/=d;var p=this.computedRight,m=p[0],v=p[1],g=p[2],y=o*m+s*v+l*g;m-=y*o,v-=y*s,g-=y*l;var b=n(m,v,g);if(!(b<.01&&(m=s*f-l*h,v=l*c-o*f,g=o*h-s*c,(b=n(m,v,g))<1e-6))){m/=b,v/=b,g/=b,this.up.set(t,o,s,l),this.right.set(t,m,v,g),this.center.set(t,r[0],r[1],r[2]),this.radius.set(t,Math.log(d));var x=s*g-l*v,_=l*m-o*g,w=o*v-s*m,M=n(x,_,w);x/=M,_/=M,w/=M;var k=o*c+s*h+l*f,A=m*c+v*h+g*f,T=x*c+_*h+w*f,S=Math.asin(i(k)),E=Math.atan2(T,A),L=this.angle._state,C=L[L.length-1],I=L[L.length-2];C%=2*Math.PI;var z=Math.abs(C+2*Math.PI-E),D=Math.abs(C-E),P=Math.abs(C-2*Math.PI-E);z<D&&(C+=2*Math.PI),P<D&&(C-=2*Math.PI),this.angle.jump(this.angle.lastT(),C,I),this.angle.set(t,E,S)}}}}},{\"filtered-vector\":133,\"gl-mat4/invert\":181,\"gl-mat4/rotate\":185,\"gl-vec3/cross\":272,\"gl-vec3/dot\":273,\"gl-vec3/normalize\":276}],539:[function(t,e,r){\"use strict\";function n(t,e,r){var n=t*e,a=i*t,o=a-t,s=a-o,l=t-s,u=i*e,c=u-e,h=u-c,f=e-h,d=n-s*h,p=d-l*h,m=p-s*f,v=l*f-m;return r?(r[0]=v,r[1]=n,r):[v,n]}e.exports=n;var i=+(Math.pow(2,27)+1)},{}],540:[function(t,e,r){\"use strict\";function n(t,e,r){var n=t+e,i=n-t,a=n-i,o=e-i,s=t-a;return r?(r[0]=s+o,r[1]=n,r):[s+o,n]}e.exports=n},{}],541:[function(t,e,r){(function(e,n){\"use strict\";function i(t){if(t){var e=t.length||t.byteLength,r=y.log2(e);w[r].push(t)}}function a(t){i(t.buffer)}function o(t){var t=y.nextPow2(t),e=y.log2(t),r=w[e];return r.length>0?r.pop():new ArrayBuffer(t)}function s(t){return new Uint8Array(o(t),0,t)}function l(t){return new Uint16Array(o(2*t),0,t)}function u(t){return new Uint32Array(o(4*t),0,t)}function c(t){return new Int8Array(o(t),0,t)}function h(t){return new Int16Array(o(2*t),0,t)}function f(t){return new Int32Array(o(4*t),0,t)}function d(t){return new Float32Array(o(4*t),0,t)}function p(t){return new Float64Array(o(8*t),0,t)}function m(t){return x?new Uint8ClampedArray(o(t),0,t):s(t)}function v(t){return new DataView(o(t),0,t)}function g(t){t=y.nextPow2(t);var e=y.log2(t),r=M[e];return r.length>0?r.pop():new n(t)}var y=t(\"bit-twiddle\"),b=t(\"dup\");e.__TYPEDARRAY_POOL||(e.__TYPEDARRAY_POOL={UINT8:b([32,0]),UINT16:b([32,0]),UINT32:b([32,0]),INT8:b([32,0]),INT16:b([32,0]),INT32:b([32,0]),FLOAT:b([32,0]),DOUBLE:b([32,0]),DATA:b([32,0]),UINT8C:b([32,0]),BUFFER:b([32,0])});var x=\"undefined\"!=typeof Uint8ClampedArray,_=e.__TYPEDARRAY_POOL;_.UINT8C||(_.UINT8C=b([32,0])),_.BUFFER||(_.BUFFER=b([32,0]));var w=_.DATA,M=_.BUFFER;r.free=function(t){if(n.isBuffer(t))M[y.log2(t.length)].push(t);else{if(\"[object ArrayBuffer]\"!==Object.prototype.toString.call(t)&&(t=t.buffer),!t)return;var e=t.length||t.byteLength,r=0|y.log2(e);w[r].push(t)}},r.freeUint8=r.freeUint16=r.freeUint32=r.freeInt8=r.freeInt16=r.freeInt32=r.freeFloat32=r.freeFloat=r.freeFloat64=r.freeDouble=r.freeUint8Clamped=r.freeDataView=a,r.freeArrayBuffer=i,r.freeBuffer=function(t){M[y.log2(t.length)].push(t)},r.malloc=function(t,e){\n", "if(void 0===e||\"arraybuffer\"===e)return o(t);switch(e){case\"uint8\":return s(t);case\"uint16\":return l(t);case\"uint32\":return u(t);case\"int8\":return c(t);case\"int16\":return h(t);case\"int32\":return f(t);case\"float\":case\"float32\":return d(t);case\"double\":case\"float64\":return p(t);case\"uint8_clamped\":return m(t);case\"buffer\":return g(t);case\"data\":case\"dataview\":return v(t);default:return null}return null},r.mallocArrayBuffer=o,r.mallocUint8=s,r.mallocUint16=l,r.mallocUint32=u,r.mallocInt8=c,r.mallocInt16=h,r.mallocInt32=f,r.mallocFloat32=r.mallocFloat=d,r.mallocFloat64=r.mallocDouble=p,r.mallocUint8Clamped=m,r.mallocDataView=v,r.mallocBuffer=g,r.clearCache=function(){for(var t=0;t<32;++t)_.UINT8[t].length=0,_.UINT16[t].length=0,_.UINT32[t].length=0,_.INT8[t].length=0,_.INT16[t].length=0,_.INT32[t].length=0,_.FLOAT[t].length=0,_.DOUBLE[t].length=0,_.UINT8C[t].length=0,w[t].length=0,M[t].length=0}}).call(this,\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{},t(\"buffer\").Buffer)},{\"bit-twiddle\":67,buffer:77,dup:125}],542:[function(t,e,r){\"use strict\";\"use restrict\";function n(t){this.roots=new Array(t),this.ranks=new Array(t);for(var e=0;e<t;++e)this.roots[e]=e,this.ranks[e]=0}e.exports=n;var i=n.prototype;Object.defineProperty(i,\"length\",{get:function(){return this.roots.length}}),i.makeSet=function(){var t=this.roots.length;return this.roots.push(t),this.ranks.push(0),t},i.find=function(t){for(var e=t,r=this.roots;r[t]!==t;)t=r[t];for(;r[e]!==t;){var n=r[e];r[e]=t,e=n}return t},i.link=function(t,e){var r=this.find(t),n=this.find(e);if(r!==n){var i=this.ranks,a=this.roots,o=i[r],s=i[n];o<s?a[r]=n:s<o?a[n]=r:(a[n]=r,++i[r])}}},{}],543:[function(t,e,r){\"use strict\";function n(t,e){for(var r=1,n=t.length,i=t[0],a=t[0],o=1;o<n;++o)if(a=i,i=t[o],e(i,a)){if(o===r){r++;continue}t[r++]=i}return t.length=r,t}function i(t){for(var e=1,r=t.length,n=t[0],i=t[0],a=1;a<r;++a,i=n)if(i=n,(n=t[a])!==i){if(a===e){e++;continue}t[e++]=n}return t.length=e,t}function a(t,e,r){return 0===t.length?t:e?(r||t.sort(e),n(t,e)):(r||t.sort(),i(t))}e.exports=a},{}],544:[function(t,e,r){function n(t,e,r,n){this.cx=3*t,this.bx=3*(r-t)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*e,this.by=3*(n-e)-this.cy,this.ay=1-this.cy-this.by,this.p1x=t,this.p1y=n,this.p2x=r,this.p2y=n}e.exports=n,n.prototype.sampleCurveX=function(t){return((this.ax*t+this.bx)*t+this.cx)*t},n.prototype.sampleCurveY=function(t){return((this.ay*t+this.by)*t+this.cy)*t},n.prototype.sampleCurveDerivativeX=function(t){return(3*this.ax*t+2*this.bx)*t+this.cx},n.prototype.solveCurveX=function(t,e){void 0===e&&(e=1e-6);var r,n,i,a,o;for(i=t,o=0;o<8;o++){if(a=this.sampleCurveX(i)-t,Math.abs(a)<e)return i;var s=this.sampleCurveDerivativeX(i);if(Math.abs(s)<1e-6)break;i-=a/s}if(r=0,n=1,(i=t)<r)return r;if(i>n)return n;for(;r<n;){if(a=this.sampleCurveX(i),Math.abs(a-t)<e)return i;t>a?r=i:n=i,i=.5*(n-r)+r}return i},n.prototype.solve=function(t,e){return this.sampleCurveY(this.solveCurveX(t,e))}},{}],545:[function(t,e,r){\"use strict\";function n(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function i(t,e,r){if(t&&u.isObject(t)&&t instanceof n)return t;var i=new n;return i.parse(t,e,r),i}function a(t){return u.isString(t)&&(t=i(t)),t instanceof n?t.format():n.prototype.format.call(t)}function o(t,e){return i(t,!1,!0).resolve(e)}function s(t,e){return t?i(t,!1,!0).resolveObject(e):e}var l=t(\"punycode\"),u=t(\"./util\");r.parse=i,r.resolve=o,r.resolveObject=s,r.format=a,r.Url=n;var c=/^([a-z0-9.+-]+:)/i,h=/:[0-9]*$/,f=/^(\\/\\/?(?!\\/)[^\\?\\s]*)(\\?[^\\s]*)?$/,d=[\"<\",\">\",'\"',\"`\",\" \",\"\\r\",\"\\n\",\"\\t\"],p=[\"{\",\"}\",\"|\",\"\\\\\",\"^\",\"`\"].concat(d),m=[\"'\"].concat(p),v=[\"%\",\"/\",\"?\",\";\",\"#\"].concat(m),g=[\"/\",\"?\",\"#\"],y=/^[+a-z0-9A-Z_-]{0,63}$/,b=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,x={javascript:!0,\"javascript:\":!0},_={javascript:!0,\"javascript:\":!0},w={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,\"http:\":!0,\"https:\":!0,\"ftp:\":!0,\"gopher:\":!0,\"file:\":!0},M=t(\"querystring\");n.prototype.parse=function(t,e,r){if(!u.isString(t))throw new TypeError(\"Parameter 'url' must be a string, not \"+typeof t);var n=t.indexOf(\"?\"),i=-1!==n&&n<t.indexOf(\"#\")?\"?\":\"#\",a=t.split(i),o=/\\\\/g;a[0]=a[0].replace(o,\"/\"),t=a.join(i);var s=t;if(s=s.trim(),!r&&1===t.split(\"#\").length){var h=f.exec(s);if(h)return this.path=s,this.href=s,this.pathname=h[1],h[2]?(this.search=h[2],this.query=e?M.parse(this.search.substr(1)):this.search.substr(1)):e&&(this.search=\"\",this.query={}),this}var d=c.exec(s);if(d){d=d[0];var p=d.toLowerCase();this.protocol=p,s=s.substr(d.length)}if(r||d||s.match(/^\\/\\/[^@\\/]+@[^@\\/]+/)){var k=\"//\"===s.substr(0,2);!k||d&&_[d]||(s=s.substr(2),this.slashes=!0)}if(!_[d]&&(k||d&&!w[d])){for(var A=-1,T=0;T<g.length;T++){var S=s.indexOf(g[T]);-1!==S&&(-1===A||S<A)&&(A=S)}var E,L;L=-1===A?s.lastIndexOf(\"@\"):s.lastIndexOf(\"@\",A),-1!==L&&(E=s.slice(0,L),s=s.slice(L+1),this.auth=decodeURIComponent(E)),A=-1;for(var T=0;T<v.length;T++){var S=s.indexOf(v[T]);-1!==S&&(-1===A||S<A)&&(A=S)}-1===A&&(A=s.length),this.host=s.slice(0,A),s=s.slice(A),this.parseHost(),this.hostname=this.hostname||\"\";var C=\"[\"===this.hostname[0]&&\"]\"===this.hostname[this.hostname.length-1];if(!C)for(var I=this.hostname.split(/\\./),T=0,z=I.length;T<z;T++){var D=I[T];if(D&&!D.match(y)){for(var P=\"\",O=0,R=D.length;O<R;O++)D.charCodeAt(O)>127?P+=\"x\":P+=D[O];if(!P.match(y)){var F=I.slice(0,T),j=I.slice(T+1),N=D.match(b);N&&(F.push(N[1]),j.unshift(N[2])),j.length&&(s=\"/\"+j.join(\".\")+s),this.hostname=F.join(\".\");break}}}this.hostname.length>255?this.hostname=\"\":this.hostname=this.hostname.toLowerCase(),C||(this.hostname=l.toASCII(this.hostname));var B=this.port?\":\"+this.port:\"\",U=this.hostname||\"\";this.host=U+B,this.href+=this.host,C&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),\"/\"!==s[0]&&(s=\"/\"+s))}if(!x[p])for(var T=0,z=m.length;T<z;T++){var V=m[T];if(-1!==s.indexOf(V)){var H=encodeURIComponent(V);H===V&&(H=escape(V)),s=s.split(V).join(H)}}var q=s.indexOf(\"#\");-1!==q&&(this.hash=s.substr(q),s=s.slice(0,q));var G=s.indexOf(\"?\");if(-1!==G?(this.search=s.substr(G),this.query=s.substr(G+1),e&&(this.query=M.parse(this.query)),s=s.slice(0,G)):e&&(this.search=\"\",this.query={}),s&&(this.pathname=s),w[p]&&this.hostname&&!this.pathname&&(this.pathname=\"/\"),this.pathname||this.search){var B=this.pathname||\"\",Y=this.search||\"\";this.path=B+Y}return this.href=this.format(),this},n.prototype.format=function(){var t=this.auth||\"\";t&&(t=encodeURIComponent(t),t=t.replace(/%3A/i,\":\"),t+=\"@\");var e=this.protocol||\"\",r=this.pathname||\"\",n=this.hash||\"\",i=!1,a=\"\";this.host?i=t+this.host:this.hostname&&(i=t+(-1===this.hostname.indexOf(\":\")?this.hostname:\"[\"+this.hostname+\"]\"),this.port&&(i+=\":\"+this.port)),this.query&&u.isObject(this.query)&&Object.keys(this.query).length&&(a=M.stringify(this.query));var o=this.search||a&&\"?\"+a||\"\";return e&&\":\"!==e.substr(-1)&&(e+=\":\"),this.slashes||(!e||w[e])&&!1!==i?(i=\"//\"+(i||\"\"),r&&\"/\"!==r.charAt(0)&&(r=\"/\"+r)):i||(i=\"\"),n&&\"#\"!==n.charAt(0)&&(n=\"#\"+n),o&&\"?\"!==o.charAt(0)&&(o=\"?\"+o),r=r.replace(/[?#]/g,function(t){return encodeURIComponent(t)}),o=o.replace(\"#\",\"%23\"),e+i+r+o+n},n.prototype.resolve=function(t){return this.resolveObject(i(t,!1,!0)).format()},n.prototype.resolveObject=function(t){if(u.isString(t)){var e=new n;e.parse(t,!1,!0),t=e}for(var r=new n,i=Object.keys(this),a=0;a<i.length;a++){var o=i[a];r[o]=this[o]}if(r.hash=t.hash,\"\"===t.href)return r.href=r.format(),r;if(t.slashes&&!t.protocol){for(var s=Object.keys(t),l=0;l<s.length;l++){var c=s[l];\"protocol\"!==c&&(r[c]=t[c])}return w[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname=\"/\"),r.href=r.format(),r}if(t.protocol&&t.protocol!==r.protocol){if(!w[t.protocol]){for(var h=Object.keys(t),f=0;f<h.length;f++){var d=h[f];r[d]=t[d]}return r.href=r.format(),r}if(r.protocol=t.protocol,t.host||_[t.protocol])r.pathname=t.pathname;else{for(var p=(t.pathname||\"\").split(\"/\");p.length&&!(t.host=p.shift()););t.host||(t.host=\"\"),t.hostname||(t.hostname=\"\"),\"\"!==p[0]&&p.unshift(\"\"),p.length<2&&p.unshift(\"\"),r.pathname=p.join(\"/\")}if(r.search=t.search,r.query=t.query,r.host=t.host||\"\",r.auth=t.auth,r.hostname=t.hostname||t.host,r.port=t.port,r.pathname||r.search){var m=r.pathname||\"\",v=r.search||\"\";r.path=m+v}return r.slashes=r.slashes||t.slashes,r.href=r.format(),r}var g=r.pathname&&\"/\"===r.pathname.charAt(0),y=t.host||t.pathname&&\"/\"===t.pathname.charAt(0),b=y||g||r.host&&t.pathname,x=b,M=r.pathname&&r.pathname.split(\"/\")||[],p=t.pathname&&t.pathname.split(\"/\")||[],k=r.protocol&&!w[r.protocol];if(k&&(r.hostname=\"\",r.port=null,r.host&&(\"\"===M[0]?M[0]=r.host:M.unshift(r.host)),r.host=\"\",t.protocol&&(t.hostname=null,t.port=null,t.host&&(\"\"===p[0]?p[0]=t.host:p.unshift(t.host)),t.host=null),b=b&&(\"\"===p[0]||\"\"===M[0])),y)r.host=t.host||\"\"===t.host?t.host:r.host,r.hostname=t.hostname||\"\"===t.hostname?t.hostname:r.hostname,r.search=t.search,r.query=t.query,M=p;else if(p.length)M||(M=[]),M.pop(),M=M.concat(p),r.search=t.search,r.query=t.query;else if(!u.isNullOrUndefined(t.search)){if(k){r.hostname=r.host=M.shift();var A=!!(r.host&&r.host.indexOf(\"@\")>0)&&r.host.split(\"@\");A&&(r.auth=A.shift(),r.host=r.hostname=A.shift())}return r.search=t.search,r.query=t.query,u.isNull(r.pathname)&&u.isNull(r.search)||(r.path=(r.pathname?r.pathname:\"\")+(r.search?r.search:\"\")),r.href=r.format(),r}if(!M.length)return r.pathname=null,r.search?r.path=\"/\"+r.search:r.path=null,r.href=r.format(),r;for(var T=M.slice(-1)[0],S=(r.host||t.host||M.length>1)&&(\".\"===T||\"..\"===T)||\"\"===T,E=0,L=M.length;L>=0;L--)T=M[L],\".\"===T?M.splice(L,1):\"..\"===T?(M.splice(L,1),E++):E&&(M.splice(L,1),E--);if(!b&&!x)for(;E--;E)M.unshift(\"..\");!b||\"\"===M[0]||M[0]&&\"/\"===M[0].charAt(0)||M.unshift(\"\"),S&&\"/\"!==M.join(\"/\").substr(-1)&&M.push(\"\");var C=\"\"===M[0]||M[0]&&\"/\"===M[0].charAt(0);if(k){r.hostname=r.host=C?\"\":M.length?M.shift():\"\";var A=!!(r.host&&r.host.indexOf(\"@\")>0)&&r.host.split(\"@\");A&&(r.auth=A.shift(),r.host=r.hostname=A.shift())}return b=b||r.host&&M.length,b&&!C&&M.unshift(\"\"),M.length?r.pathname=M.join(\"/\"):(r.pathname=null,r.path=null),u.isNull(r.pathname)&&u.isNull(r.search)||(r.path=(r.pathname?r.pathname:\"\")+(r.search?r.search:\"\")),r.auth=t.auth||r.auth,r.slashes=r.slashes||t.slashes,r.href=r.format(),r},n.prototype.parseHost=function(){var t=this.host,e=h.exec(t);e&&(e=e[0],\":\"!==e&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)}},{\"./util\":546,punycode:488,querystring:492}],546:[function(t,e,r){\"use strict\";e.exports={isString:function(t){return\"string\"==typeof t},isObject:function(t){return\"object\"==typeof t&&null!==t},isNull:function(t){return null===t},isNullOrUndefined:function(t){return null==t}}},{}],547:[function(t,e,r){\"function\"==typeof Object.create?e.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}},{}],548:[function(t,e,r){e.exports=function(t){return t&&\"object\"==typeof t&&\"function\"==typeof t.copy&&\"function\"==typeof t.fill&&\"function\"==typeof t.readUInt8}},{}],549:[function(t,e,r){(function(e,n){function i(t,e){var n={seen:[],stylize:o};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),m(e)?n.showHidden=e:e&&r._extend(n,e),_(n.showHidden)&&(n.showHidden=!1),_(n.depth)&&(n.depth=2),_(n.colors)&&(n.colors=!1),_(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=a),l(n,t,n.depth)}function a(t,e){var r=i.styles[e];return r?\"\\x1b[\"+i.colors[r][0]+\"m\"+t+\"\\x1b[\"+i.colors[r][1]+\"m\":t}function o(t,e){return t}function s(t){var e={};return t.forEach(function(t,r){e[t]=!0}),e}function l(t,e,n){if(t.customInspect&&e&&T(e.inspect)&&e.inspect!==r.inspect&&(!e.constructor||e.constructor.prototype!==e)){var i=e.inspect(n,t);return b(i)||(i=l(t,i,n)),i}var a=u(t,e);if(a)return a;var o=Object.keys(e),m=s(o);if(t.showHidden&&(o=Object.getOwnPropertyNames(e)),A(e)&&(o.indexOf(\"message\")>=0||o.indexOf(\"description\")>=0))return c(e);if(0===o.length){if(T(e)){var v=e.name?\": \"+e.name:\"\";return t.stylize(\"[Function\"+v+\"]\",\"special\")}if(w(e))return t.stylize(RegExp.prototype.toString.call(e),\"regexp\");if(k(e))return t.stylize(Date.prototype.toString.call(e),\"date\");if(A(e))return c(e)}var g=\"\",y=!1,x=[\"{\",\"}\"];if(p(e)&&(y=!0,x=[\"[\",\"]\"]),T(e)){g=\" [Function\"+(e.name?\": \"+e.name:\"\")+\"]\"}if(w(e)&&(g=\" \"+RegExp.prototype.toString.call(e)),k(e)&&(g=\" \"+Date.prototype.toUTCString.call(e)),A(e)&&(g=\" \"+c(e)),0===o.length&&(!y||0==e.length))return x[0]+g+x[1];if(n<0)return w(e)?t.stylize(RegExp.prototype.toString.call(e),\"regexp\"):t.stylize(\"[Object]\",\"special\");t.seen.push(e);var _;return _=y?h(t,e,n,m,o):o.map(function(r){return f(t,e,n,m,r,y)}),t.seen.pop(),d(_,g,x)}function u(t,e){if(_(e))return t.stylize(\"undefined\",\"undefined\");if(b(e)){var r=\"'\"+JSON.stringify(e).replace(/^\"|\"$/g,\"\").replace(/'/g,\"\\\\'\").replace(/\\\\\"/g,'\"')+\"'\";return t.stylize(r,\"string\")}return y(e)?t.stylize(\"\"+e,\"number\"):m(e)?t.stylize(\"\"+e,\"boolean\"):v(e)?t.stylize(\"null\",\"null\"):void 0}function c(t){return\"[\"+Error.prototype.toString.call(t)+\"]\"}function h(t,e,r,n,i){for(var a=[],o=0,s=e.length;o<s;++o)I(e,String(o))?a.push(f(t,e,r,n,String(o),!0)):a.push(\"\");return i.forEach(function(i){i.match(/^\\d+$/)||a.push(f(t,e,r,n,i,!0))}),a}function f(t,e,r,n,i,a){var o,s,u;if(u=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]},u.get?s=u.set?t.stylize(\"[Getter/Setter]\",\"special\"):t.stylize(\"[Getter]\",\"special\"):u.set&&(s=t.stylize(\"[Setter]\",\"special\")),I(n,i)||(o=\"[\"+i+\"]\"),s||(t.seen.indexOf(u.value)<0?(s=v(r)?l(t,u.value,null):l(t,u.value,r-1),s.indexOf(\"\\n\")>-1&&(s=a?s.split(\"\\n\").map(function(t){return\" \"+t}).join(\"\\n\").substr(2):\"\\n\"+s.split(\"\\n\").map(function(t){return\" \"+t}).join(\"\\n\"))):s=t.stylize(\"[Circular]\",\"special\")),_(o)){if(a&&i.match(/^\\d+$/))return s;o=JSON.stringify(\"\"+i),o.match(/^\"([a-zA-Z_][a-zA-Z_0-9]*)\"$/)?(o=o.substr(1,o.length-2),o=t.stylize(o,\"name\")):(o=o.replace(/'/g,\"\\\\'\").replace(/\\\\\"/g,'\"').replace(/(^\"|\"$)/g,\"'\"),o=t.stylize(o,\"string\"))}return o+\": \"+s}function d(t,e,r){var n=0;return t.reduce(function(t,e){return n++,e.indexOf(\"\\n\")>=0&&n++,t+e.replace(/\\u001b\\[\\d\\d?m/g,\"\").length+1},0)>60?r[0]+(\"\"===e?\"\":e+\"\\n \")+\" \"+t.join(\",\\n \")+\" \"+r[1]:r[0]+e+\" \"+t.join(\", \")+\" \"+r[1]}function p(t){return Array.isArray(t)}function m(t){return\"boolean\"==typeof t}function v(t){return null===t}function g(t){return null==t}function y(t){return\"number\"==typeof t}function b(t){return\"string\"==typeof t}function x(t){return\"symbol\"==typeof t}function _(t){return void 0===t}function w(t){return M(t)&&\"[object RegExp]\"===E(t)}function M(t){return\"object\"==typeof t&&null!==t}function k(t){return M(t)&&\"[object Date]\"===E(t)}function A(t){return M(t)&&(\"[object Error]\"===E(t)||t instanceof Error)}function T(t){return\"function\"==typeof t}function S(t){return null===t||\"boolean\"==typeof t||\"number\"==typeof t||\"string\"==typeof t||\"symbol\"==typeof t||void 0===t}function E(t){return Object.prototype.toString.call(t)}function L(t){return t<10?\"0\"+t.toString(10):t.toString(10)}function C(){var t=new Date,e=[L(t.getHours()),L(t.getMinutes()),L(t.getSeconds())].join(\":\");return[t.getDate(),O[t.getMonth()],e].join(\" \")}function I(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var z=/%[sdj%]/g;r.format=function(t){if(!b(t)){for(var e=[],r=0;r<arguments.length;r++)e.push(i(arguments[r]));return e.join(\" \")}for(var r=1,n=arguments,a=n.length,o=String(t).replace(z,function(t){if(\"%%\"===t)return\"%\";if(r>=a)return t;switch(t){case\"%s\":return String(n[r++]);case\"%d\":return Number(n[r++]);case\"%j\":try{return JSON.stringify(n[r++])}catch(t){return\"[Circular]\"}default:return t}}),s=n[r];r<a;s=n[++r])v(s)||!M(s)?o+=\" \"+s:o+=\" \"+i(s);return o},r.deprecate=function(t,i){function a(){if(!o){if(e.throwDeprecation)throw new Error(i);e.traceDeprecation?console.trace(i):console.error(i),o=!0}return t.apply(this,arguments)}if(_(n.process))return function(){return r.deprecate(t,i).apply(this,arguments)};if(!0===e.noDeprecation)return t;var o=!1;return a};var D,P={};r.debuglog=function(t){if(_(D)&&(D=e.env.NODE_DEBUG||\"\"),t=t.toUpperCase(),!P[t])if(new RegExp(\"\\\\b\"+t+\"\\\\b\",\"i\").test(D)){var n=e.pid;P[t]=function(){var e=r.format.apply(r,arguments);console.error(\"%s %d: %s\",t,n,e)}}else P[t]=function(){};return P[t]},r.inspect=i,i.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},i.styles={special:\"cyan\",number:\"yellow\",boolean:\"yellow\",undefined:\"grey\",null:\"bold\",string:\"green\",date:\"magenta\",regexp:\"red\"},r.isArray=p,r.isBoolean=m,r.isNull=v,r.isNullOrUndefined=g,r.isNumber=y,r.isString=b,r.isSymbol=x,r.isUndefined=_,r.isRegExp=w,r.isObject=M,r.isDate=k,r.isError=A,r.isFunction=T,r.isPrimitive=S,r.isBuffer=t(\"./support/isBuffer\");var O=[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\"];r.log=function(){console.log(\"%s - %s\",C(),r.format.apply(r,arguments))},r.inherits=t(\"inherits\"),r._extend=function(t,e){if(!e||!M(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t}}).call(this,t(\"_process\"),\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{\"./support/isBuffer\":548,_process:487,inherits:547}],550:[function(t,e,r){e.exports.VectorTile=t(\"./lib/vectortile.js\"),e.exports.VectorTileFeature=t(\"./lib/vectortilefeature.js\"),e.exports.VectorTileLayer=t(\"./lib/vectortilelayer.js\")},{\"./lib/vectortile.js\":551,\"./lib/vectortilefeature.js\":552,\"./lib/vectortilelayer.js\":553}],551:[function(t,e,r){\"use strict\";function n(t,e){this.layers=t.readFields(i,{},e)}function i(t,e,r){if(3===t){var n=new a(r,r.readVarint()+r.pos);n.length&&(e[n.name]=n)}}var a=t(\"./vectortilelayer\");e.exports=n},{\"./vectortilelayer\":553}],552:[function(t,e,r){\"use strict\";function n(t,e,r,n,a){this.properties={},this.extent=r,this.type=0,this._pbf=t,this._geometry=-1,this._keys=n,this._values=a,t.readFields(i,this,e)}function i(t,e,r){1==t?e.id=r.readVarint():2==t?a(r,e):3==t?e.type=r.readVarint():4==t&&(e._geometry=r.pos)}function a(t,e){for(var r=t.readVarint()+t.pos;t.pos<r;){var n=e._keys[t.readVarint()],i=e._values[t.readVarint()];e.properties[n]=i}}function o(t){var e=t.length;if(e<=1)return[t];for(var r,n,i=[],a=0;a<e;a++){var o=s(t[a]);0!==o&&(void 0===n&&(n=o<0),n===o<0?(r&&i.push(r),r=[t[a]]):r.push(t[a]))}return r&&i.push(r),i}function s(t){for(var e,r,n=0,i=0,a=t.length,o=a-1;i<a;o=i++)e=t[i],r=t[o],n+=(r.x-e.x)*(e.y+r.y);return n}var l=t(\"point-geometry\");e.exports=n,n.types=[\"Unknown\",\"Point\",\"LineString\",\"Polygon\"],n.prototype.loadGeometry=function(){var t=this._pbf;t.pos=this._geometry;for(var e,r=t.readVarint()+t.pos,n=1,i=0,a=0,o=0,s=[];t.pos<r;){if(!i){var u=t.readVarint();n=7&u,i=u>>3}if(i--,1===n||2===n)a+=t.readSVarint(),o+=t.readSVarint(),1===n&&(e&&s.push(e),e=[]),e.push(new l(a,o));else{if(7!==n)throw new Error(\"unknown command \"+n);e&&e.push(e[0].clone())}}return e&&s.push(e),s},n.prototype.bbox=function(){var t=this._pbf;t.pos=this._geometry;for(var e=t.readVarint()+t.pos,r=1,n=0,i=0,a=0,o=1/0,s=-1/0,l=1/0,u=-1/0;t.pos<e;){if(!n){var c=t.readVarint();r=7&c,n=c>>3}if(n--,1===r||2===r)i+=t.readSVarint(),a+=t.readSVarint(),i<o&&(o=i),i>s&&(s=i),a<l&&(l=a),a>u&&(u=a);else if(7!==r)throw new Error(\"unknown command \"+r)}return[o,l,s,u]},n.prototype.toGeoJSON=function(t,e,r){function i(t){for(var e=0;e<t.length;e++){var r=t[e],n=180-360*(r.y+c)/l;t[e]=[360*(r.x+u)/l-180,360/Math.PI*Math.atan(Math.exp(n*Math.PI/180))-90]}}var a,s,l=this.extent*Math.pow(2,r),u=this.extent*t,c=this.extent*e,h=this.loadGeometry(),f=n.types[this.type];switch(this.type){case 1:var d=[];for(a=0;a<h.length;a++)d[a]=h[a][0];h=d,i(h);break;case 2:for(a=0;a<h.length;a++)i(h[a]);break;case 3:for(h=o(h),a=0;a<h.length;a++)for(s=0;s<h[a].length;s++)i(h[a][s])}1===h.length?h=h[0]:f=\"Multi\"+f;var p={type:\"Feature\",geometry:{type:f,coordinates:h},properties:this.properties};return\"id\"in this&&(p.id=this.id),p}},{\"point-geometry\":484}],553:[function(t,e,r){\"use strict\";function n(t,e){this.version=1,this.name=null,this.extent=4096,this.length=0,this._pbf=t,this._keys=[],this._values=[],this._features=[],t.readFields(i,this,e),this.length=this._features.length}function i(t,e,r){15===t?e.version=r.readVarint():1===t?e.name=r.readString():5===t?e.extent=r.readVarint():2===t?e._features.push(r.pos):3===t?e._keys.push(r.readString()):4===t&&e._values.push(a(r))}function a(t){for(var e=null,r=t.readVarint()+t.pos;t.pos<r;){var n=t.readVarint()>>3;e=1===n?t.readString():2===n?t.readFloat():3===n?t.readDouble():4===n?t.readVarint64():5===n?t.readVarint():6===n?t.readSVarint():7===n?t.readBoolean():null}return e}var o=t(\"./vectortilefeature.js\");e.exports=n,n.prototype.feature=function(t){if(t<0||t>=this._features.length)throw new Error(\"feature index out of bounds\");this._pbf.pos=this._features[t];var e=this._pbf.readVarint()+this._pbf.pos;return new o(this._pbf,e,this.extent,this._keys,this._values)}},{\"./vectortilefeature.js\":552}],554:[function(t,e,r){\"use strict\";function n(t,e){return\"object\"==typeof e&&null!==e||(e={}),i(t,e.canvas||a,e.context||o,e)}e.exports=n;var i=t(\"./lib/vtext\"),a=null,o=null;\"undefined\"!=typeof document&&(a=document.createElement(\"canvas\"),a.width=8192,a.height=1024,o=a.getContext(\"2d\"))},{\"./lib/vtext\":555}],555:[function(t,e,r){\"use strict\";function n(t,e,r){for(var n=e.textAlign||\"start\",i=e.textBaseline||\"alphabetic\",a=[1<<30,1<<30],o=[0,0],s=t.length,l=0;l<s;++l)for(var u=t[l],c=0;c<2;++c)a[c]=0|Math.min(a[c],u[c]),o[c]=0|Math.max(o[c],u[c]);var h=0;switch(n){case\"center\":h=-.5*(a[0]+o[0]);break;case\"right\":case\"end\":h=-o[0];break;case\"left\":case\"start\":h=-a[0];break;default:throw new Error(\"vectorize-text: Unrecognized textAlign: '\"+n+\"'\")}var f=0;switch(i){case\"hanging\":case\"top\":f=-a[1];break;case\"middle\":f=-.5*(a[1]+o[1]);break;case\"alphabetic\":case\"ideographic\":f=-3*r;break;case\"bottom\":f=-o[1];break;default:throw new Error(\"vectorize-text: Unrecoginized textBaseline: '\"+i+\"'\")}var d=1/r;return\"lineHeight\"in e?d*=+e.lineHeight:\"width\"in e?d=e.width/(o[0]-a[0]):\"height\"in e&&(d=e.height/(o[1]-a[1])),t.map(function(t){return[d*(t[0]+h),d*(t[1]+f)]})}function i(t,e,r,n){var i=0|Math.ceil(e.measureText(r).width+2*n);if(i>8192)throw new Error(\"vectorize-text: String too long (sorry, this will get fixed later)\");var a=3*n;t.height<a&&(t.height=a),e.fillStyle=\"#000\",e.fillRect(0,0,t.width,t.height),e.fillStyle=\"#fff\",e.fillText(r,n,2*n);var o=e.getImageData(0,0,i,a);return c(o.data,[a,i,4]).pick(-1,-1,0).transpose(1,0)}function a(t,e){var r=u(t,128);return e?h(r.cells,r.positions,.25):{edges:r.cells,positions:r.positions}}function o(t,e,r,i){var o=a(t,i),s=n(o.positions,e,r),l=o.edges,u=\"ccw\"===e.orientation;if(f(s,l),e.polygons||e.polygon||e.polyline){for(var c=p(l,s),h=new Array(c.length),m=0;m<c.length;++m){for(var v=c[m],g=new Array(v.length),y=0;y<v.length;++y){for(var b=v[y],x=new Array(b.length),_=0;_<b.length;++_)x[_]=s[b[_]].slice();u&&x.reverse(),g[y]=x}h[m]=g}return h}return e.triangles||e.triangulate||e.triangle?{cells:d(s,l,{delaunay:!1,exterior:!1,interior:!0}),positions:s}:{edges:l,positions:s}}function s(t,e,r){try{return o(t,e,r,!0)}catch(t){}try{return o(t,e,r,!1)}catch(t){}return e.polygons||e.polyline||e.polygon?[]:e.triangles||e.triangulate||e.triangle?{cells:[],positions:[]}:{edges:[],positions:[]}}function l(t,e,r,n){var a=n.size||64,o=n.font||\"normal\";return r.font=a+\"px \"+o,r.textAlign=\"start\",r.textBaseline=\"alphabetic\",r.direction=\"ltr\",s(i(e,r,t,a),n,a)}e.exports=l,e.exports.processPixels=s;var u=t(\"surface-nets\"),c=t(\"ndarray\"),h=t(\"simplify-planar-graph\"),f=t(\"clean-pslg\"),d=t(\"cdt2d\"),p=t(\"planar-graph-to-polyline\")},{cdt2d:79,\"clean-pslg\":89,ndarray:467,\"planar-graph-to-polyline\":483,\"simplify-planar-graph\":523,\"surface-nets\":531}],556:[function(t,e,r){function n(t){var e=[];for(var r in t.layers)e.push(a(t.layers[r]));var n=new c;return h.tile.write({layers:e},n),n.finish()}function i(t){var e={};for(var r in t)e[r]=new f(t[r].features),e[r].name=r;return n({layers:e})}function a(t){for(var e={name:t.name||\"\",version:t.version||1,extent:t.extent||4096,keys:[],values:[],features:[]},r={},n={},i=0;i<t.length;i++){var a=t.feature(i);a.geometry=l(a.loadGeometry());var o=[];for(var s in a.properties){var c=r[s];void 0===c&&(e.keys.push(s),c=e.keys.length-1,r[s]=c);var h=u(a.properties[s]),f=n[h.key];void 0===f&&(e.values.push(h),f=e.values.length-1,n[h.key]=f),o.push(c),o.push(f)}a.tags=o,e.features.push(a)}return e}function o(t,e){return(e<<3)+(7&t)}function s(t){return t<<1^t>>31}function l(t){for(var e=[],r=0,n=0,i=t.length,a=0;a<i;a++){var l=t[a];e.push(o(1,1));for(var u=0;u<l.length;u++){1===u&&e.push(o(2,l.length-1));var c=l[u].x-r,h=l[u].y-n;e.push(s(c),s(h)),r+=c,n+=h}}return e}function u(t){var e,r=typeof t;return\"string\"===r?e={string_value:t}:\"boolean\"===r?e={bool_value:t}:\"number\"===r?e=t%1!=0?{double_value:t}:t<0?{sint_value:t}:{uint_value:t}:(t=JSON.stringify(t),e={string_value:t}),e.key=r+\":\"+t,e}var c=t(\"pbf\"),h=t(\"./vector-tile-pb\"),f=t(\"./lib/geojson_wrapper\");e.exports=n,e.exports.fromVectorTileJs=n,e.exports.fromGeojsonVt=i,e.exports.GeoJSONWrapper=f},{\"./lib/geojson_wrapper\":557,\"./vector-tile-pb\":558,pbf:478}],557:[function(t,e,r){\"use strict\";function n(t){this.features=t,this.length=t.length}function i(t){this.id=\"number\"==typeof t.id?t.id:void 0,this.type=t.type,this.rawGeometry=1===t.type?[t.geometry]:t.geometry,this.properties=t.tags,this.extent=4096}var a=t(\"point-geometry\"),o=t(\"vector-tile\").VectorTileFeature;e.exports=n,n.prototype.feature=function(t){return new i(this.features[t])},i.prototype.loadGeometry=function(){var t=this.rawGeometry;this.geometry=[];for(var e=0;e<t.length;e++){for(var r=t[e],n=[],i=0;i<r.length;i++)n.push(new a(r[i][0],r[i][1]));this.geometry.push(n)}return this.geometry},i.prototype.bbox=function(){this.geometry||this.loadGeometry();for(var t=this.geometry,e=1/0,r=-1/0,n=1/0,i=-1/0,a=0;a<t.length;a++)for(var o=t[a],s=0;s<o.length;s++){var l=o[s];e=Math.min(e,l.x),r=Math.max(r,l.x),n=Math.min(n,l.y),i=Math.max(i,l.y)}return[e,n,r,i]},i.prototype.toGeoJSON=o.prototype.toGeoJSON},{\"point-geometry\":484,\"vector-tile\":550}],558:[function(t,e,r){\"use strict\";function n(t,e){return t.readFields(i,{layers:[]},e)}function i(t,e,r){3===t&&e.layers.push(f(r,r.readVarint()+r.pos))}function a(t,e){var r;if(void 0!==t.layers)for(r=0;r<t.layers.length;r++)e.writeMessage(3,p,t.layers[r])}function o(t,e){return t.readFields(s,{},e)}function s(t,e,r){1===t?e.string_value=r.readString():2===t?e.float_value=r.readFloat():3===t?e.double_value=r.readDouble():4===t?e.int_value=r.readVarint():5===t?e.uint_value=r.readVarint():6===t?e.sint_value=r.readSVarint():7===t&&(e.bool_value=r.readBoolean())}function l(t,e){void 0!==t.string_value&&e.writeStringField(1,t.string_value),void 0!==t.float_value&&e.writeFloatField(2,t.float_value),void 0!==t.double_value&&e.writeDoubleField(3,t.double_value),void 0!==t.int_value&&e.writeVarintField(4,t.int_value),void 0!==t.uint_value&&e.writeVarintField(5,t.uint_value),void 0!==t.sint_value&&e.writeSVarintField(6,t.sint_value),void 0!==t.bool_value&&e.writeBooleanField(7,t.bool_value)}function u(t,e){var r=t.readFields(c,{},e);return void 0===r.type&&(r.type=\"Unknown\"),r}function c(t,e,r){1===t?e.id=r.readVarint():2===t?e.tags=r.readPackedVarint():3===t?e.type=r.readVarint():4===t&&(e.geometry=r.readPackedVarint())}function h(t,e){void 0!==t.id&&e.writeVarintField(1,t.id),void 0!==t.tags&&e.writePackedVarint(2,t.tags),void 0!==t.type&&e.writeVarintField(3,t.type),void 0!==t.geometry&&e.writePackedVarint(4,t.geometry)}function f(t,e){return t.readFields(d,{features:[],keys:[],values:[]},e)}function d(t,e,r){15===t?e.version=r.readVarint():1===t?e.name=r.readString():2===t?e.features.push(u(r,r.readVarint()+r.pos)):3===t?e.keys.push(r.readString()):4===t?e.values.push(o(r,r.readVarint()+r.pos)):5===t&&(e.extent=r.readVarint())}function p(t,e){void 0!==t.version&&e.writeVarintField(15,t.version),void 0!==t.name&&e.writeStringField(1,t.name);var r;if(void 0!==t.features)for(r=0;r<t.features.length;r++)e.writeMessage(2,h,t.features[r]);if(void 0!==t.keys)for(r=0;r<t.keys.length;r++)e.writeStringField(3,t.keys[r]);if(void 0!==t.values)for(r=0;r<t.values.length;r++)e.writeMessage(4,l,t.values[r]);void 0!==t.extent&&e.writeVarintField(5,t.extent)}var m=r.tile={read:n,write:a};m.GeomType={Unknown:0,Point:1,LineString:2,Polygon:3},m.value={read:o,write:l},m.feature={read:u,write:h},m.layer={read:f,write:p}},{}],559:[function(t,e,r){!function(){\"use strict\";function t(e){e.permitHostObjects___&&e.permitHostObjects___(t)}function r(t){return!(t.substr(0,d.length)==d&&\"___\"===t.substr(t.length-3))}function n(t){if(t!==Object(t))throw new TypeError(\"Not an object: \"+t);var e=t[p];if(e&&e.key===t)return e;if(f(t)){e={key:t};try{return h(t,p,{value:e,writable:!1,enumerable:!1,configurable:!1}),e}catch(t){return}}}function i(t){return t.prototype=null,Object.freeze(t)}function a(){y||\"undefined\"==typeof console||(y=!0,console.warn(\"WeakMap should be invoked as new WeakMap(), not WeakMap(). This will be an error in the future.\"))}if(\"undefined\"==typeof ses||!ses.ok||ses.ok()){\"undefined\"!=typeof ses&&(ses.weakMapPermitHostObjects=t);var o=!1;if(\"function\"==typeof WeakMap){var s=WeakMap;if(\"undefined\"!=typeof navigator&&/Firefox/.test(navigator.userAgent));else{var l=new s,u=Object.freeze({});if(l.set(u,1),1===l.get(u))return void(e.exports=WeakMap);o=!0}}var c=(Object.prototype.hasOwnProperty,Object.getOwnPropertyNames),h=Object.defineProperty,f=Object.isExtensible,d=\"weakmap:\",p=d+\"ident:\"+Math.random()+\"___\";if(\"undefined\"!=typeof crypto&&\"function\"==typeof crypto.getRandomValues&&\"function\"==typeof ArrayBuffer&&\"function\"==typeof Uint8Array){var m=new ArrayBuffer(25),v=new Uint8Array(m);crypto.getRandomValues(v),p=d+\"rand:\"+Array.prototype.map.call(v,function(t){return(t%36).toString(36)}).join(\"\")+\"___\"}if(h(Object,\"getOwnPropertyNames\",{value:function(t){return c(t).filter(r)}}),\"getPropertyNames\"in Object){var g=Object.getPropertyNames;h(Object,\"getPropertyNames\",{value:function(t){return g(t).filter(r)}})}!function(){var t=Object.freeze;h(Object,\"freeze\",{value:function(e){return n(e),t(e)}});var e=Object.seal;h(Object,\"seal\",{value:function(t){return n(t),e(t)}});var r=Object.preventExtensions;h(Object,\"preventExtensions\",{value:function(t){return n(t),r(t)}})}();var y=!1,b=0,x=function(){function t(t,e){var r,i=n(t);return i?u in i?i[u]:e:(r=s.indexOf(t),r>=0?l[r]:e)}function e(t){var e=n(t);return e?u in e:s.indexOf(t)>=0}function r(t,e){var r,i=n(t);return i?i[u]=e:(r=s.indexOf(t),r>=0?l[r]=e:(r=s.length,l[r]=e,s[r]=t)),this}function o(t){var e,r,i=n(t);return i?u in i&&delete i[u]:!((e=s.indexOf(t))<0)&&(r=s.length-1,s[e]=void 0,l[e]=l[r],s[e]=s[r],s.length=r,l.length=r,!0)}this instanceof x||a();var s=[],l=[],u=b++;return Object.create(x.prototype,{get___:{value:i(t)},has___:{value:i(e)},set___:{value:i(r)},delete___:{value:i(o)}})};x.prototype=Object.create(Object.prototype,{get:{value:function(t,e){return this.get___(t,e)},writable:!0,configurable:!0},has:{value:function(t){return this.has___(t)},writable:!0,configurable:!0},set:{value:function(t,e){return this.set___(t,e)},writable:!0,configurable:!0},delete:{value:function(t){return this.delete___(t)},writable:!0,configurable:!0}}),\"function\"==typeof s?function(){function r(){function e(t,e){return c?u.has(t)?u.get(t):c.get___(t,e):u.get(t,e)}function r(t){return u.has(t)||!!c&&c.has___(t)}function n(t){var e=!!u.delete(t);return c?c.delete___(t)||e:e}this instanceof x||a()\n", ";var l,u=new s,c=void 0,h=!1;return l=o?function(t,e){return u.set(t,e),u.has(t)||(c||(c=new x),c.set(t,e)),this}:function(t,e){if(h)try{u.set(t,e)}catch(r){c||(c=new x),c.set___(t,e)}else u.set(t,e);return this},Object.create(x.prototype,{get___:{value:i(e)},has___:{value:i(r)},set___:{value:i(l)},delete___:{value:i(n)},permitHostObjects___:{value:i(function(e){if(e!==t)throw new Error(\"bogus call to permitHostObjects___\");h=!0})}})}o&&\"undefined\"!=typeof Proxy&&(Proxy=void 0),r.prototype=x.prototype,e.exports=r,Object.defineProperty(WeakMap.prototype,\"constructor\",{value:WeakMap,enumerable:!1,configurable:!0,writable:!0})}():(\"undefined\"!=typeof Proxy&&(Proxy=void 0),e.exports=x)}}()},{}],560:[function(t,e,r){function n(){var t={};return function(e){if((\"object\"!=typeof e||null===e)&&\"function\"!=typeof e)throw new Error(\"Weakmap-shim: Key must be object\");var r=e.valueOf(t);return r&&r.identity===t?r:i(e,t)}}var i=t(\"./hidden-store.js\");e.exports=n},{\"./hidden-store.js\":561}],561:[function(t,e,r){function n(t,e){var r={identity:e},n=t.valueOf;return Object.defineProperty(t,\"valueOf\",{value:function(t){return t!==e?n.apply(this,arguments):r},writable:!0}),r}e.exports=n},{}],562:[function(t,e,r){function n(){var t=i();return{get:function(e,r){var n=t(e);return n.hasOwnProperty(\"value\")?n.value:r},set:function(e,r){return t(e).value=r,this},has:function(e){return\"value\"in t(e)},delete:function(e){return delete t(e).value}}}var i=t(\"./create-store.js\");e.exports=n},{\"./create-store.js\":560}],563:[function(t,e,r){var n=t(\"get-canvas-context\");e.exports=function(t){return n(\"webgl\",t)}},{\"get-canvas-context\":147}],564:[function(t,e,r){var n=arguments[3],i=arguments[4],a=arguments[5],o=JSON.stringify;e.exports=function(t,e){function r(t){v[t]=!0;for(var e in i[t][1]){var n=i[t][1][e];v[n]||r(n)}}for(var s,l=Object.keys(a),u=0,c=l.length;u<c;u++){var h=l[u],f=a[h].exports;if(f===t||f&&f.default===t){s=h;break}}if(!s){s=Math.floor(Math.pow(16,8)*Math.random()).toString(16);for(var d={},u=0,c=l.length;u<c;u++){var h=l[u];d[h]=h}i[s]=[Function([\"require\",\"module\",\"exports\"],\"(\"+t+\")(self)\"),d]}var p=Math.floor(Math.pow(16,8)*Math.random()).toString(16),m={};m[s]=s,i[p]=[Function([\"require\"],\"var f = require(\"+ o(s) +\");(f.default ? f.default : f)(self);\"),m];var v={};r(p);var g=\"(\"+n+\")({\"+Object.keys(v).map(function(t){return o(t)+\":[\"+i[t][0]+\",\"+o(i[t][1])+\"]\"}).join(\",\")+\"},{},[\"+o(p)+\"])\",y=window.URL||window.webkitURL||window.mozURL||window.msURL,b=new Blob([g],{type:\"text/javascript\"});if(e&&e.bare)return b;var x=y.createObjectURL(b),_=new Worker(x);return _.objectURL=x,_}},{}],565:[function(t,e,r){e.exports.RADIUS=6378137,e.exports.FLATTENING=1/298.257223563,e.exports.POLAR_RADIUS=6356752.3142},{}],566:[function(e,r,n){!function(e,i){\"object\"==typeof n&&void 0!==r?i(n):\"function\"==typeof t&&t.amd?t([\"exports\"],i):i(e.WhooTS=e.WhooTS||{})}(this,function(t){function e(t,e,n,i,a,o){return o=o||{},t+\"?\"+[\"bbox=\"+r(n,i,a),\"format=\"+(o.format||\"image/png\"),\"service=\"+(o.service||\"WMS\"),\"version=\"+(o.version||\"1.1.1\"),\"request=\"+(o.request||\"GetMap\"),\"srs=\"+(o.srs||\"EPSG:3857\"),\"width=\"+(o.width||256),\"height=\"+(o.height||256),\"layers=\"+e].join(\"&\")}function r(t,e,r){e=Math.pow(2,r)-e-1;var i=n(256*t,256*e,r),a=n(256*(t+1),256*(e+1),r);return i[0]+\",\"+i[1]+\",\"+a[0]+\",\"+a[1]}function n(t,e,r){var n=2*Math.PI*6378137/256/Math.pow(2,r);return[t*n-2*Math.PI*6378137/2,e*n-2*Math.PI*6378137/2]}t.getURL=e,t.getTileBBox=r,t.getMercCoords=n,Object.defineProperty(t,\"__esModule\",{value:!0})})},{}],567:[function(t,e,r){function n(t){this.local=this.regionalOptions[t||\"\"]||this.regionalOptions[\"\"]}function i(t,e,r,n){var i,a;if(\"object\"==typeof t)i=t,a=e||{};else{if(!(\"number\"==typeof t&&t>=1888&&t<=2111))throw new Error(\"Solar year outside range 1888-2111\");if(!(\"number\"==typeof e&&e>=1&&e<=12))throw new Error(\"Solar month outside range 1 - 12\");if(!(\"number\"==typeof r&&r>=1&&r<=31))throw new Error(\"Solar day outside range 1 - 31\");i={year:t,month:e,day:r},a=n||{}}var o=p[i.year-p[0]],s=i.year<<9|i.month<<5|i.day;a.year=s>=o?i.year:i.year-1,o=p[a.year-p[0]];var l,u=o>>9&4095,c=o>>5&15,h=31&o,f=new Date(u,c-1,h),m=new Date(i.year,i.month-1,i.day);l=Math.round((m-f)/864e5);var v,g=d[a.year-d[0]];for(v=0;v<13;v++){var y=g&1<<12-v?30:29;if(l<y)break;l-=y}var b=g>>13;return!b||v<b?(a.isIntercalary=!1,a.month=1+v):v===b?(a.isIntercalary=!0,a.month=v):(a.isIntercalary=!1,a.month=v),a.day=1+l,a}function a(t,e,r,n,i){var a,o;if(\"object\"==typeof t)o=t,a=e||{};else{if(!(\"number\"==typeof t&&t>=1888&&t<=2111))throw new Error(\"Lunar year outside range 1888-2111\");if(!(\"number\"==typeof e&&e>=1&&e<=12))throw new Error(\"Lunar month outside range 1 - 12\");if(!(\"number\"==typeof r&&r>=1&&r<=30))throw new Error(\"Lunar day outside range 1 - 30\");var s;\"object\"==typeof n?(s=!1,a=n):(s=!!n,a=i||{}),o={year:t,month:e,day:r,isIntercalary:s}}var l;l=o.day-1;var u,c=d[o.year-d[0]],h=c>>13;u=h?o.month>h?o.month:o.isIntercalary?o.month:o.month-1:o.month-1;for(var f=0;f<u;f++){l+=c&1<<12-f?30:29}var m=p[o.year-p[0]],v=m>>9&4095,g=m>>5&15,y=31&m,b=new Date(v,g-1,y+l);return a.year=b.getFullYear(),a.month=1+b.getMonth(),a.day=b.getDate(),a}var o=t(\"../main\"),s=t(\"object-assign\"),l=o.instance();n.prototype=new o.baseCalendar,s(n.prototype,{name:\"Chinese\",jdEpoch:1721425.5,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{\"\":{name:\"Chinese\",epochs:[\"BEC\",\"EC\"],monthNumbers:function(t,e){if(\"string\"==typeof t){var r=t.match(c);return r?r[0]:\"\"}var n=this._validateYear(t),i=t.month(),a=\"\"+this.toChineseMonth(n,i);return e&&a.length<2&&(a=\"0\"+a),this.isIntercalaryMonth(n,i)&&(a+=\"i\"),a},monthNames:function(t){if(\"string\"==typeof t){var e=t.match(h);return e?e[0]:\"\"}var r=this._validateYear(t),n=t.month(),i=this.toChineseMonth(r,n),a=[\"\\u4e00\\u6708\",\"\\u4e8c\\u6708\",\"\\u4e09\\u6708\",\"\\u56db\\u6708\",\"\\u4e94\\u6708\",\"\\u516d\\u6708\",\"\\u4e03\\u6708\",\"\\u516b\\u6708\",\"\\u4e5d\\u6708\",\"\\u5341\\u6708\",\"\\u5341\\u4e00\\u6708\",\"\\u5341\\u4e8c\\u6708\"][i-1];return this.isIntercalaryMonth(r,n)&&(a=\"\\u95f0\"+a),a},monthNamesShort:function(t){if(\"string\"==typeof t){var e=t.match(f);return e?e[0]:\"\"}var r=this._validateYear(t),n=t.month(),i=this.toChineseMonth(r,n),a=[\"\\u4e00\",\"\\u4e8c\",\"\\u4e09\",\"\\u56db\",\"\\u4e94\",\"\\u516d\",\"\\u4e03\",\"\\u516b\",\"\\u4e5d\",\"\\u5341\",\"\\u5341\\u4e00\",\"\\u5341\\u4e8c\"][i-1];return this.isIntercalaryMonth(r,n)&&(a=\"\\u95f0\"+a),a},parseMonth:function(t,e){t=this._validateYear(t);var r,n=parseInt(e);if(isNaN(n))\"\\u95f0\"===e[0]&&(r=!0,e=e.substring(1)),\"\\u6708\"===e[e.length-1]&&(e=e.substring(0,e.length-1)),n=1+[\"\\u4e00\",\"\\u4e8c\",\"\\u4e09\",\"\\u56db\",\"\\u4e94\",\"\\u516d\",\"\\u4e03\",\"\\u516b\",\"\\u4e5d\",\"\\u5341\",\"\\u5341\\u4e00\",\"\\u5341\\u4e8c\"].indexOf(e);else{var i=e[e.length-1];r=\"i\"===i||\"I\"===i}return this.toMonthIndex(t,n,r)},dayNames:[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"],dayNamesShort:[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],dayNamesMin:[\"Su\",\"Mo\",\"Tu\",\"We\",\"Th\",\"Fr\",\"Sa\"],digits:null,dateFormat:\"yyyy/mm/dd\",firstDay:1,isRTL:!1}},_validateYear:function(t,e){if(t.year&&(t=t.year()),\"number\"!=typeof t||t<1888||t>2111)throw e.replace(/\\{0\\}/,this.local.name);return t},toMonthIndex:function(t,e,r){var n=this.intercalaryMonth(t);if(r&&e!==n||e<1||e>12)throw o.local.invalidMonth.replace(/\\{0\\}/,this.local.name);return n?!r&&e<=n?e-1:e:e-1},toChineseMonth:function(t,e){t.year&&(t=t.year(),e=t.month());var r=this.intercalaryMonth(t),n=r?12:11;if(e<0||e>n)throw o.local.invalidMonth.replace(/\\{0\\}/,this.local.name);return r?e<r?e+1:e:e+1},intercalaryMonth:function(t){return t=this._validateYear(t),d[t-d[0]]>>13},isIntercalaryMonth:function(t,e){t.year&&(t=t.year(),e=t.month());var r=this.intercalaryMonth(t);return!!r&&r===e},leapYear:function(t){return 0!==this.intercalaryMonth(t)},weekOfYear:function(t,e,r){var n,i=this._validateYear(t,o.local.invalidyear),a=p[i-p[0]],s=a>>9&4095,u=a>>5&15,c=31&a;n=l.newDate(s,u,c),n.add(4-(n.dayOfWeek()||7),\"d\");var h=this.toJD(t,e,r)-n.toJD();return 1+Math.floor(h/7)},monthsInYear:function(t){return this.leapYear(t)?13:12},daysInMonth:function(t,e){t.year&&(e=t.month(),t=t.year()),t=this._validateYear(t);var r=d[t-d[0]];if(e>(r>>13?12:11))throw o.local.invalidMonth.replace(/\\{0\\}/,this.local.name);return r&1<<12-e?30:29},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)<6},toJD:function(t,e,r){var n=this._validate(t,s,r,o.local.invalidDate);t=this._validateYear(n.year()),e=n.month(),r=n.day();var i=this.isIntercalaryMonth(t,e),s=this.toChineseMonth(t,e),u=a(t,s,r,i);return l.toJD(u.year,u.month,u.day)},fromJD:function(t){var e=l.fromJD(t),r=i(e.year(),e.month(),e.day()),n=this.toMonthIndex(r.year,r.month,r.isIntercalary);return this.newDate(r.year,n,r.day)},fromString:function(t){var e=t.match(u),r=this._validateYear(+e[1]),n=+e[2],i=!!e[3],a=this.toMonthIndex(r,n,i),o=+e[4];return this.newDate(r,a,o)},add:function(t,e,r){var i=t.year(),a=t.month(),o=this.isIntercalaryMonth(i,a),s=this.toChineseMonth(i,a),l=Object.getPrototypeOf(n.prototype).add.call(this,t,e,r);if(\"y\"===r){var u=l.year(),c=l.month(),h=this.isIntercalaryMonth(u,s),f=o&&h?this.toMonthIndex(u,s,!0):this.toMonthIndex(u,s,!1);f!==c&&l.month(f)}return l}});var u=/^\\s*(-?\\d\\d\\d\\d|\\d\\d)[-\\/](\\d?\\d)([iI]?)[-\\/](\\d?\\d)/m,c=/^\\d?\\d[iI]?/m,h=/^\\u95f0?\\u5341?[\\u4e00\\u4e8c\\u4e09\\u56db\\u4e94\\u516d\\u4e03\\u516b\\u4e5d]?\\u6708/m,f=/^\\u95f0?\\u5341?[\\u4e00\\u4e8c\\u4e09\\u56db\\u4e94\\u516d\\u4e03\\u516b\\u4e5d]?/m;o.calendars.chinese=n;var d=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],p=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904]},{\"../main\":581,\"object-assign\":470}],568:[function(t,e,r){function n(t){this.local=this.regionalOptions[t||\"\"]||this.regionalOptions[\"\"]}var i=t(\"../main\"),a=t(\"object-assign\");n.prototype=new i.baseCalendar,a(n.prototype,{name:\"Coptic\",jdEpoch:1825029.5,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{\"\":{name:\"Coptic\",epochs:[\"BAM\",\"AM\"],monthNames:[\"Thout\",\"Paopi\",\"Hathor\",\"Koiak\",\"Tobi\",\"Meshir\",\"Paremhat\",\"Paremoude\",\"Pashons\",\"Paoni\",\"Epip\",\"Mesori\",\"Pi Kogi Enavot\"],monthNamesShort:[\"Tho\",\"Pao\",\"Hath\",\"Koi\",\"Tob\",\"Mesh\",\"Pat\",\"Pad\",\"Pash\",\"Pao\",\"Epi\",\"Meso\",\"PiK\"],dayNames:[\"Tkyriaka\",\"Pesnau\",\"Pshoment\",\"Peftoou\",\"Ptiou\",\"Psoou\",\"Psabbaton\"],dayNamesShort:[\"Tky\",\"Pes\",\"Psh\",\"Pef\",\"Pti\",\"Pso\",\"Psa\"],dayNamesMin:[\"Tk\",\"Pes\",\"Psh\",\"Pef\",\"Pt\",\"Pso\",\"Psa\"],digits:null,dateFormat:\"dd/mm/yyyy\",firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,i.local.invalidYear),t=e.year()+(e.year()<0?1:0);return t%4==3||t%4==-1},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,i.local.invalidYear||i.regionalOptions[\"\"].invalidYear),13},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),\"d\"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,i.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(13===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)<6},toJD:function(t,e,r){var n=this._validate(t,e,r,i.local.invalidDate);return t=n.year(),t<0&&t++,n.day()+30*(n.month()-1)+365*(t-1)+Math.floor(t/4)+this.jdEpoch-1},fromJD:function(t){var e=Math.floor(t)+.5-this.jdEpoch,r=Math.floor((e-Math.floor((e+366)/1461))/365)+1;r<=0&&r--,e=Math.floor(t)+.5-this.newDate(r,1,1).toJD();var n=Math.floor(e/30)+1,i=e-30*(n-1)+1;return this.newDate(r,n,i)}}),i.calendars.coptic=n},{\"../main\":581,\"object-assign\":470}],569:[function(t,e,r){function n(t){this.local=this.regionalOptions[t||\"\"]||this.regionalOptions[\"\"]}var i=t(\"../main\"),a=t(\"object-assign\");n.prototype=new i.baseCalendar,a(n.prototype,{name:\"Discworld\",jdEpoch:1721425.5,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{\"\":{name:\"Discworld\",epochs:[\"BUC\",\"UC\"],monthNames:[\"Ick\",\"Offle\",\"February\",\"March\",\"April\",\"May\",\"June\",\"Grune\",\"August\",\"Spune\",\"Sektober\",\"Ember\",\"December\"],monthNamesShort:[\"Ick\",\"Off\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Gru\",\"Aug\",\"Spu\",\"Sek\",\"Emb\",\"Dec\"],dayNames:[\"Sunday\",\"Octeday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"],dayNamesShort:[\"Sun\",\"Oct\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],dayNamesMin:[\"Su\",\"Oc\",\"Mo\",\"Tu\",\"We\",\"Th\",\"Fr\",\"Sa\"],digits:null,dateFormat:\"yyyy/mm/dd\",firstDay:2,isRTL:!1}},leapYear:function(t){return this._validate(t,this.minMonth,this.minDay,i.local.invalidYear),!1},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,i.local.invalidYear),13},daysInYear:function(t){return this._validate(t,this.minMonth,this.minDay,i.local.invalidYear),400},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),\"d\"),Math.floor((n.dayOfYear()-1)/8)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,i.local.invalidMonth);return this.daysPerMonth[r.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(t,e,r){return(this._validate(t,e,r,i.local.invalidDate).day()+1)%8},weekDay:function(t,e,r){var n=this.dayOfWeek(t,e,r);return n>=2&&n<=6},extraInfo:function(t,e,r){var n=this._validate(t,e,r,i.local.invalidDate);return{century:o[Math.floor((n.year()-1)/100)+1]||\"\"}},toJD:function(t,e,r){var n=this._validate(t,e,r,i.local.invalidDate);return t=n.year()+(n.year()<0?1:0),e=n.month(),(r=n.day())+(e>1?16:0)+(e>2?32*(e-2):0)+400*(t-1)+this.jdEpoch-1},fromJD:function(t){t=Math.floor(t+.5)-Math.floor(this.jdEpoch)-1;var e=Math.floor(t/400)+1;t-=400*(e-1),t+=t>15?16:0;var r=Math.floor(t/32)+1,n=t-32*(r-1)+1;return this.newDate(e<=0?e-1:e,r,n)}});var o={20:\"Fruitbat\",21:\"Anchovy\"};i.calendars.discworld=n},{\"../main\":581,\"object-assign\":470}],570:[function(t,e,r){function n(t){this.local=this.regionalOptions[t||\"\"]||this.regionalOptions[\"\"]}var i=t(\"../main\"),a=t(\"object-assign\");n.prototype=new i.baseCalendar,a(n.prototype,{name:\"Ethiopian\",jdEpoch:1724220.5,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{\"\":{name:\"Ethiopian\",epochs:[\"BEE\",\"EE\"],monthNames:[\"Meskerem\",\"Tikemet\",\"Hidar\",\"Tahesas\",\"Tir\",\"Yekatit\",\"Megabit\",\"Miazia\",\"Genbot\",\"Sene\",\"Hamle\",\"Nehase\",\"Pagume\"],monthNamesShort:[\"Mes\",\"Tik\",\"Hid\",\"Tah\",\"Tir\",\"Yek\",\"Meg\",\"Mia\",\"Gen\",\"Sen\",\"Ham\",\"Neh\",\"Pag\"],dayNames:[\"Ehud\",\"Segno\",\"Maksegno\",\"Irob\",\"Hamus\",\"Arb\",\"Kidame\"],dayNamesShort:[\"Ehu\",\"Seg\",\"Mak\",\"Iro\",\"Ham\",\"Arb\",\"Kid\"],dayNamesMin:[\"Eh\",\"Se\",\"Ma\",\"Ir\",\"Ha\",\"Ar\",\"Ki\"],digits:null,dateFormat:\"dd/mm/yyyy\",firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,i.local.invalidYear),t=e.year()+(e.year()<0?1:0);return t%4==3||t%4==-1},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,i.local.invalidYear||i.regionalOptions[\"\"].invalidYear),13},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),\"d\"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,i.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(13===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)<6},toJD:function(t,e,r){var n=this._validate(t,e,r,i.local.invalidDate);return t=n.year(),t<0&&t++,n.day()+30*(n.month()-1)+365*(t-1)+Math.floor(t/4)+this.jdEpoch-1},fromJD:function(t){var e=Math.floor(t)+.5-this.jdEpoch,r=Math.floor((e-Math.floor((e+366)/1461))/365)+1;r<=0&&r--,e=Math.floor(t)+.5-this.newDate(r,1,1).toJD();var n=Math.floor(e/30)+1,i=e-30*(n-1)+1;return this.newDate(r,n,i)}}),i.calendars.ethiopian=n},{\"../main\":581,\"object-assign\":470}],571:[function(t,e,r){function n(t){this.local=this.regionalOptions[t||\"\"]||this.regionalOptions[\"\"]}function i(t,e){return t-e*Math.floor(t/e)}var a=t(\"../main\"),o=t(\"object-assign\");n.prototype=new a.baseCalendar,o(n.prototype,{name:\"Hebrew\",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{\"\":{name:\"Hebrew\",epochs:[\"BAM\",\"AM\"],monthNames:[\"Nisan\",\"Iyar\",\"Sivan\",\"Tammuz\",\"Av\",\"Elul\",\"Tishrei\",\"Cheshvan\",\"Kislev\",\"Tevet\",\"Shevat\",\"Adar\",\"Adar II\"],monthNamesShort:[\"Nis\",\"Iya\",\"Siv\",\"Tam\",\"Av\",\"Elu\",\"Tis\",\"Che\",\"Kis\",\"Tev\",\"She\",\"Ada\",\"Ad2\"],dayNames:[\"Yom Rishon\",\"Yom Sheni\",\"Yom Shlishi\",\"Yom Revi'i\",\"Yom Chamishi\",\"Yom Shishi\",\"Yom Shabbat\"],dayNamesShort:[\"Ris\",\"She\",\"Shl\",\"Rev\",\"Cha\",\"Shi\",\"Sha\"],dayNamesMin:[\"Ri\",\"She\",\"Shl\",\"Re\",\"Ch\",\"Shi\",\"Sha\"],digits:null,dateFormat:\"dd/mm/yyyy\",firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,a.local.invalidYear);return this._leapYear(e.year())},_leapYear:function(t){return t=t<0?t+1:t,i(7*t+1,19)<7},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,a.local.invalidYear),this._leapYear(t.year?t.year():t)?13:12},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),\"d\"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(t){return t=this._validate(t,this.minMonth,this.minDay,a.local.invalidYear).year(),this.toJD(-1===t?1:t+1,7,1)-this.toJD(t,7,1)},daysInMonth:function(t,e){return t.year&&(e=t.month(),t=t.year()),this._validate(t,e,this.minDay,a.local.invalidMonth),12===e&&this.leapYear(t)?30:8===e&&5===i(this.daysInYear(t),10)?30:9===e&&3===i(this.daysInYear(t),10)?29:this.daysPerMonth[e-1]},weekDay:function(t,e,r){return 6!==this.dayOfWeek(t,e,r)},extraInfo:function(t,e,r){var n=this._validate(t,e,r,a.local.invalidDate);return{yearType:(this.leapYear(n)?\"embolismic\":\"common\")+\" \"+[\"deficient\",\"regular\",\"complete\"][this.daysInYear(n)%10-3]}},toJD:function(t,e,r){var n=this._validate(t,e,r,a.local.invalidDate);t=n.year(),e=n.month(),r=n.day();var i=t<=0?t+1:t,o=this.jdEpoch+this._delay1(i)+this._delay2(i)+r+1;if(e<7){for(var s=7;s<=this.monthsInYear(t);s++)o+=this.daysInMonth(t,s);for(var s=1;s<e;s++)o+=this.daysInMonth(t,s)}else for(var s=7;s<e;s++)o+=this.daysInMonth(t,s);return o},_delay1:function(t){var e=Math.floor((235*t-234)/19),r=12084+13753*e,n=29*e+Math.floor(r/25920);return i(3*(n+1),7)<3&&n++,n},_delay2:function(t){var e=this._delay1(t-1),r=this._delay1(t);return this._delay1(t+1)-r==356?2:r-e==382?1:0},fromJD:function(t){t=Math.floor(t)+.5;for(var e=Math.floor(98496*(t-this.jdEpoch)/35975351)-1;t>=this.toJD(-1===e?1:e+1,7,1);)e++;for(var r=t<this.toJD(e,1,1)?7:1;t>this.toJD(e,r,this.daysInMonth(e,r));)r++;var n=t-this.toJD(e,r,1)+1;return this.newDate(e,r,n)}}),a.calendars.hebrew=n},{\"../main\":581,\"object-assign\":470}],572:[function(t,e,r){function n(t){this.local=this.regionalOptions[t||\"\"]||this.regionalOptions[\"\"]}var i=t(\"../main\"),a=t(\"object-assign\");n.prototype=new i.baseCalendar,a(n.prototype,{name:\"Islamic\",jdEpoch:1948439.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{\"\":{name:\"Islamic\",epochs:[\"BH\",\"AH\"],monthNames:[\"Muharram\",\"Safar\",\"Rabi' al-awwal\",\"Rabi' al-thani\",\"Jumada al-awwal\",\"Jumada al-thani\",\"Rajab\",\"Sha'aban\",\"Ramadan\",\"Shawwal\",\"Dhu al-Qi'dah\",\"Dhu al-Hijjah\"],monthNamesShort:[\"Muh\",\"Saf\",\"Rab1\",\"Rab2\",\"Jum1\",\"Jum2\",\"Raj\",\"Sha'\",\"Ram\",\"Shaw\",\"DhuQ\",\"DhuH\"],dayNames:[\"Yawm al-ahad\",\"Yawm al-ithnayn\",\"Yawm ath-thulaathaa'\",\"Yawm al-arbi'aa'\",\"Yawm al-kham\\u012bs\",\"Yawm al-jum'a\",\"Yawm as-sabt\"],dayNamesShort:[\"Aha\",\"Ith\",\"Thu\",\"Arb\",\"Kha\",\"Jum\",\"Sab\"],dayNamesMin:[\"Ah\",\"It\",\"Th\",\"Ar\",\"Kh\",\"Ju\",\"Sa\"],digits:null,dateFormat:\"yyyy/mm/dd\",firstDay:6,isRTL:!1}},leapYear:function(t){return(11*this._validate(t,this.minMonth,this.minDay,i.local.invalidYear).year()+14)%30<11},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),\"d\"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(t){return this.leapYear(t)?355:354},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,i.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(12===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return 5!==this.dayOfWeek(t,e,r)},toJD:function(t,e,r){var n=this._validate(t,e,r,i.local.invalidDate);return t=n.year(),e=n.month(),r=n.day(),t=t<=0?t+1:t,r+Math.ceil(29.5*(e-1))+354*(t-1)+Math.floor((3+11*t)/30)+this.jdEpoch-1},fromJD:function(t){t=Math.floor(t)+.5;var e=Math.floor((30*(t-this.jdEpoch)+10646)/10631);e=e<=0?e-1:e;var r=Math.min(12,Math.ceil((t-29-this.toJD(e,1,1))/29.5)+1),n=t-this.toJD(e,r,1)+1;return this.newDate(e,r,n)}}),i.calendars.islamic=n},{\"../main\":581,\"object-assign\":470}],573:[function(t,e,r){function n(t){this.local=this.regionalOptions[t||\"\"]||this.regionalOptions[\"\"]}var i=t(\"../main\"),a=t(\"object-assign\");n.prototype=new i.baseCalendar,a(n.prototype,{name:\"Julian\",jdEpoch:1721423.5,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{\"\":{name:\"Julian\",epochs:[\"BC\",\"AD\"],monthNames:[\"January\",\"February\",\"March\",\"April\",\"May\",\"June\",\"July\",\"August\",\"September\",\"October\",\"November\",\"December\"],monthNamesShort:[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\"],dayNames:[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"],dayNamesShort:[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],dayNamesMin:[\"Su\",\"Mo\",\"Tu\",\"We\",\"Th\",\"Fr\",\"Sa\"],digits:null,dateFormat:\"mm/dd/yyyy\",firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,i.local.invalidYear),t=e.year()<0?e.year()+1:e.year();return t%4==0},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(4-(n.dayOfWeek()||7),\"d\"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,i.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(2===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)<6},toJD:function(t,e,r){var n=this._validate(t,e,r,i.local.invalidDate);return t=n.year(),e=n.month(),r=n.day(),t<0&&t++,e<=2&&(t--,e+=12),Math.floor(365.25*(t+4716))+Math.floor(30.6001*(e+1))+r-1524.5},fromJD:function(t){var e=Math.floor(t+.5),r=e+1524,n=Math.floor((r-122.1)/365.25),i=Math.floor(365.25*n),a=Math.floor((r-i)/30.6001),o=a-Math.floor(a<14?1:13),s=n-Math.floor(o>2?4716:4715),l=r-i-Math.floor(30.6001*a);return s<=0&&s--,this.newDate(s,o,l)}}),i.calendars.julian=n},{\"../main\":581,\"object-assign\":470}],574:[function(t,e,r){function n(t){this.local=this.regionalOptions[t||\"\"]||this.regionalOptions[\"\"]}function i(t,e){return t-e*Math.floor(t/e)}function a(t,e){return i(t-1,e)+1}var o=t(\"../main\"),s=t(\"object-assign\");n.prototype=new o.baseCalendar,s(n.prototype,{name:\"Mayan\",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{\"\":{name:\"Mayan\",epochs:[\"\",\"\"],monthNames:[\"0\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\",\"13\",\"14\",\"15\",\"16\",\"17\"],monthNamesShort:[\"0\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\",\"13\",\"14\",\"15\",\"16\",\"17\"],dayNames:[\"0\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\",\"13\",\"14\",\"15\",\"16\",\"17\",\"18\",\"19\"],dayNamesShort:[\"0\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\",\"13\",\"14\",\"15\",\"16\",\"17\",\"18\",\"19\"],dayNamesMin:[\"0\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\",\"13\",\"14\",\"15\",\"16\",\"17\",\"18\",\"19\"],digits:null,dateFormat:\"YYYY.m.d\",firstDay:0,isRTL:!1,haabMonths:[\"Pop\",\"Uo\",\"Zip\",\"Zotz\",\"Tzec\",\"Xul\",\"Yaxkin\",\"Mol\",\"Chen\",\"Yax\",\"Zac\",\"Ceh\",\"Mac\",\"Kankin\",\"Muan\",\"Pax\",\"Kayab\",\"Cumku\",\"Uayeb\"],tzolkinMonths:[\"Imix\",\"Ik\",\"Akbal\",\"Kan\",\"Chicchan\",\"Cimi\",\"Manik\",\"Lamat\",\"Muluc\",\"Oc\",\"Chuen\",\"Eb\",\"Ben\",\"Ix\",\"Men\",\"Cib\",\"Caban\",\"Etznab\",\"Cauac\",\"Ahau\"]}},leapYear:function(t){return this._validate(t,this.minMonth,this.minDay,o.local.invalidYear),!1},formatYear:function(t){t=this._validate(t,this.minMonth,this.minDay,o.local.invalidYear).year();var e=Math.floor(t/400);return t%=400,t+=t<0?400:0,e+\".\"+Math.floor(t/20)+\".\"+t%20},forYear:function(t){if(t=t.split(\".\"),t.length<3)throw\"Invalid Mayan year\";for(var e=0,r=0;r<t.length;r++){var n=parseInt(t[r],10);if(Math.abs(n)>19||r>0&&n<0)throw\"Invalid Mayan year\";e=20*e+n}return e},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,o.local.invalidYear),18},weekOfYear:function(t,e,r){return this._validate(t,e,r,o.local.invalidDate),0},daysInYear:function(t){return this._validate(t,this.minMonth,this.minDay,o.local.invalidYear),360},daysInMonth:function(t,e){return this._validate(t,e,this.minDay,o.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(t,e,r){return this._validate(t,e,r,o.local.invalidDate).day()},weekDay:function(t,e,r){return this._validate(t,e,r,o.local.invalidDate),!0},extraInfo:function(t,e,r){var n=this._validate(t,e,r,o.local.invalidDate),i=n.toJD(),a=this._toHaab(i),s=this._toTzolkin(i);return{haabMonthName:this.local.haabMonths[a[0]-1],haabMonth:a[0],haabDay:a[1],tzolkinDayName:this.local.tzolkinMonths[s[0]-1],tzolkinDay:s[0],tzolkinTrecena:s[1]}},_toHaab:function(t){t-=this.jdEpoch;var e=i(t+8+340,365);return[Math.floor(e/20)+1,i(e,20)]},_toTzolkin:function(t){return t-=this.jdEpoch,[a(t+20,20),a(t+4,13)]},toJD:function(t,e,r){var n=this._validate(t,e,r,o.local.invalidDate);return n.day()+20*n.month()+360*n.year()+this.jdEpoch},fromJD:function(t){t=Math.floor(t)+.5-this.jdEpoch;var e=Math.floor(t/360);t%=360,t+=t<0?360:0;var r=Math.floor(t/20),n=t%20;return this.newDate(e,r,n)}}),o.calendars.mayan=n},{\"../main\":581,\"object-assign\":470}],575:[function(t,e,r){function n(t){this.local=this.regionalOptions[t||\"\"]||this.regionalOptions[\"\"]}var i=t(\"../main\"),a=t(\"object-assign\");n.prototype=new i.baseCalendar;var o=i.instance(\"gregorian\");a(n.prototype,{name:\"Nanakshahi\",jdEpoch:2257673.5,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{\"\":{name:\"Nanakshahi\",epochs:[\"BN\",\"AN\"],monthNames:[\"Chet\",\"Vaisakh\",\"Jeth\",\"Harh\",\"Sawan\",\"Bhadon\",\"Assu\",\"Katak\",\"Maghar\",\"Poh\",\"Magh\",\"Phagun\"],monthNamesShort:[\"Che\",\"Vai\",\"Jet\",\"Har\",\"Saw\",\"Bha\",\"Ass\",\"Kat\",\"Mgr\",\"Poh\",\"Mgh\",\"Pha\"],dayNames:[\"Somvaar\",\"Mangalvar\",\"Budhvaar\",\"Veervaar\",\"Shukarvaar\",\"Sanicharvaar\",\"Etvaar\"],dayNamesShort:[\"Som\",\"Mangal\",\"Budh\",\"Veer\",\"Shukar\",\"Sanichar\",\"Et\"],dayNamesMin:[\"So\",\"Ma\",\"Bu\",\"Ve\",\"Sh\",\"Sa\",\"Et\"],digits:null,dateFormat:\"dd-mm-yyyy\",firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,i.local.invalidYear||i.regionalOptions[\"\"].invalidYear);return o.leapYear(e.year()+(e.year()<1?1:0)+1469)},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(1-(n.dayOfWeek()||7),\"d\"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,i.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(12===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)<6},toJD:function(t,e,r){var n=this._validate(t,e,r,i.local.invalidMonth),t=n.year();t<0&&t++;for(var a=n.day(),s=1;s<n.month();s++)a+=this.daysPerMonth[s-1];return a+o.toJD(t+1468,3,13)},fromJD:function(t){t=Math.floor(t+.5);for(var e=Math.floor((t-(this.jdEpoch-1))/366);t>=this.toJD(e+1,1,1);)e++;for(var r=t-Math.floor(this.toJD(e,1,1)+.5)+1,n=1;r>this.daysInMonth(e,n);)r-=this.daysInMonth(e,n),n++;return this.newDate(e,n,r)}}),i.calendars.nanakshahi=n},{\"../main\":581,\"object-assign\":470}],576:[function(t,e,r){function n(t){this.local=this.regionalOptions[t||\"\"]||this.regionalOptions[\"\"]}var i=t(\"../main\"),a=t(\"object-assign\");n.prototype=new i.baseCalendar,a(n.prototype,{name:\"Nepali\",jdEpoch:1700709.5,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{\"\":{name:\"Nepali\",epochs:[\"BBS\",\"ABS\"],monthNames:[\"Baisakh\",\"Jestha\",\"Ashadh\",\"Shrawan\",\"Bhadra\",\"Ashwin\",\"Kartik\",\"Mangsir\",\"Paush\",\"Mangh\",\"Falgun\",\"Chaitra\"],monthNamesShort:[\"Bai\",\"Je\",\"As\",\"Shra\",\"Bha\",\"Ash\",\"Kar\",\"Mang\",\"Pau\",\"Ma\",\"Fal\",\"Chai\"],dayNames:[\"Aaitabaar\",\"Sombaar\",\"Manglbaar\",\"Budhabaar\",\"Bihibaar\",\"Shukrabaar\",\"Shanibaar\"],dayNamesShort:[\"Aaita\",\"Som\",\"Mangl\",\"Budha\",\"Bihi\",\"Shukra\",\"Shani\"],dayNamesMin:[\"Aai\",\"So\",\"Man\",\"Bu\",\"Bi\",\"Shu\",\"Sha\"],digits:null,dateFormat:\"dd/mm/yyyy\",firstDay:1,isRTL:!1}},leapYear:function(t){return this.daysInYear(t)!==this.daysPerYear},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),\"d\"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(t){if(t=this._validate(t,this.minMonth,this.minDay,i.local.invalidYear).year(),void 0===this.NEPALI_CALENDAR_DATA[t])return this.daysPerYear;for(var e=0,r=this.minMonth;r<=12;r++)e+=this.NEPALI_CALENDAR_DATA[t][r];return e},daysInMonth:function(t,e){return t.year&&(e=t.month(),t=t.year()),this._validate(t,e,this.minDay,i.local.invalidMonth),void 0===this.NEPALI_CALENDAR_DATA[t]?this.daysPerMonth[e-1]:this.NEPALI_CALENDAR_DATA[t][e]},weekDay:function(t,e,r){return 6!==this.dayOfWeek(t,e,r)},toJD:function(t,e,r){var n=this._validate(t,e,r,i.local.invalidDate);t=n.year(),e=n.month(),r=n.day();var a=i.instance(),o=0,s=e,l=t;this._createMissingCalendarData(t);var u=t-(s>9||9===s&&r>=this.NEPALI_CALENDAR_DATA[l][0]?56:57);for(9!==e&&(o=r,\n", "s--);9!==s;)s<=0&&(s=12,l--),o+=this.NEPALI_CALENDAR_DATA[l][s],s--;return 9===e?(o+=r-this.NEPALI_CALENDAR_DATA[l][0])<0&&(o+=a.daysInYear(u)):o+=this.NEPALI_CALENDAR_DATA[l][9]-this.NEPALI_CALENDAR_DATA[l][0],a.newDate(u,1,1).add(o,\"d\").toJD()},fromJD:function(t){var e=i.instance(),r=e.fromJD(t),n=r.year(),a=r.dayOfYear(),o=n+56;this._createMissingCalendarData(o);for(var s=9,l=this.NEPALI_CALENDAR_DATA[o][0],u=this.NEPALI_CALENDAR_DATA[o][s]-l+1;a>u;)s++,s>12&&(s=1,o++),u+=this.NEPALI_CALENDAR_DATA[o][s];var c=this.NEPALI_CALENDAR_DATA[o][s]-(u-a);return this.newDate(o,s,c)},_createMissingCalendarData:function(t){var e=this.daysPerMonth.slice(0);e.unshift(17);for(var r=t-1;r<t+2;r++)void 0===this.NEPALI_CALENDAR_DATA[r]&&(this.NEPALI_CALENDAR_DATA[r]=e)},NEPALI_CALENDAR_DATA:{1970:[18,31,31,32,31,31,31,30,29,30,29,30,30],1971:[18,31,31,32,31,32,30,30,29,30,29,30,30],1972:[17,31,32,31,32,31,30,30,30,29,29,30,30],1973:[19,30,32,31,32,31,30,30,30,29,30,29,31],1974:[19,31,31,32,30,31,31,30,29,30,29,30,30],1975:[18,31,31,32,32,30,31,30,29,30,29,30,30],1976:[17,31,32,31,32,31,30,30,30,29,29,30,31],1977:[18,31,32,31,32,31,31,29,30,29,30,29,31],1978:[18,31,31,32,31,31,31,30,29,30,29,30,30],1979:[18,31,31,32,32,31,30,30,29,30,29,30,30],1980:[17,31,32,31,32,31,30,30,30,29,29,30,31],1981:[18,31,31,31,32,31,31,29,30,30,29,30,30],1982:[18,31,31,32,31,31,31,30,29,30,29,30,30],1983:[18,31,31,32,32,31,30,30,29,30,29,30,30],1984:[17,31,32,31,32,31,30,30,30,29,29,30,31],1985:[18,31,31,31,32,31,31,29,30,30,29,30,30],1986:[18,31,31,32,31,31,31,30,29,30,29,30,30],1987:[18,31,32,31,32,31,30,30,29,30,29,30,30],1988:[17,31,32,31,32,31,30,30,30,29,29,30,31],1989:[18,31,31,31,32,31,31,30,29,30,29,30,30],1990:[18,31,31,32,31,31,31,30,29,30,29,30,30],1991:[18,31,32,31,32,31,30,30,29,30,29,30,30],1992:[17,31,32,31,32,31,30,30,30,29,30,29,31],1993:[18,31,31,31,32,31,31,30,29,30,29,30,30],1994:[18,31,31,32,31,31,31,30,29,30,29,30,30],1995:[17,31,32,31,32,31,30,30,30,29,29,30,30],1996:[17,31,32,31,32,31,30,30,30,29,30,29,31],1997:[18,31,31,32,31,31,31,30,29,30,29,30,30],1998:[18,31,31,32,31,31,31,30,29,30,29,30,30],1999:[17,31,32,31,32,31,30,30,30,29,29,30,31],2e3:[17,30,32,31,32,31,30,30,30,29,30,29,31],2001:[18,31,31,32,31,31,31,30,29,30,29,30,30],2002:[18,31,31,32,32,31,30,30,29,30,29,30,30],2003:[17,31,32,31,32,31,30,30,30,29,29,30,31],2004:[17,30,32,31,32,31,30,30,30,29,30,29,31],2005:[18,31,31,32,31,31,31,30,29,30,29,30,30],2006:[18,31,31,32,32,31,30,30,29,30,29,30,30],2007:[17,31,32,31,32,31,30,30,30,29,29,30,31],2008:[17,31,31,31,32,31,31,29,30,30,29,29,31],2009:[18,31,31,32,31,31,31,30,29,30,29,30,30],2010:[18,31,31,32,32,31,30,30,29,30,29,30,30],2011:[17,31,32,31,32,31,30,30,30,29,29,30,31],2012:[17,31,31,31,32,31,31,29,30,30,29,30,30],2013:[18,31,31,32,31,31,31,30,29,30,29,30,30],2014:[18,31,31,32,32,31,30,30,29,30,29,30,30],2015:[17,31,32,31,32,31,30,30,30,29,29,30,31],2016:[17,31,31,31,32,31,31,29,30,30,29,30,30],2017:[18,31,31,32,31,31,31,30,29,30,29,30,30],2018:[18,31,32,31,32,31,30,30,29,30,29,30,30],2019:[17,31,32,31,32,31,30,30,30,29,30,29,31],2020:[17,31,31,31,32,31,31,30,29,30,29,30,30],2021:[18,31,31,32,31,31,31,30,29,30,29,30,30],2022:[17,31,32,31,32,31,30,30,30,29,29,30,30],2023:[17,31,32,31,32,31,30,30,30,29,30,29,31],2024:[17,31,31,31,32,31,31,30,29,30,29,30,30],2025:[18,31,31,32,31,31,31,30,29,30,29,30,30],2026:[17,31,32,31,32,31,30,30,30,29,29,30,31],2027:[17,30,32,31,32,31,30,30,30,29,30,29,31],2028:[17,31,31,32,31,31,31,30,29,30,29,30,30],2029:[18,31,31,32,31,32,30,30,29,30,29,30,30],2030:[17,31,32,31,32,31,30,30,30,30,30,30,31],2031:[17,31,32,31,32,31,31,31,31,31,31,31,31],2032:[17,32,32,32,32,32,32,32,32,32,32,32,32],2033:[18,31,31,32,32,31,30,30,29,30,29,30,30],2034:[17,31,32,31,32,31,30,30,30,29,29,30,31],2035:[17,30,32,31,32,31,31,29,30,30,29,29,31],2036:[17,31,31,32,31,31,31,30,29,30,29,30,30],2037:[18,31,31,32,32,31,30,30,29,30,29,30,30],2038:[17,31,32,31,32,31,30,30,30,29,29,30,31],2039:[17,31,31,31,32,31,31,29,30,30,29,30,30],2040:[17,31,31,32,31,31,31,30,29,30,29,30,30],2041:[18,31,31,32,32,31,30,30,29,30,29,30,30],2042:[17,31,32,31,32,31,30,30,30,29,29,30,31],2043:[17,31,31,31,32,31,31,29,30,30,29,30,30],2044:[17,31,31,32,31,31,31,30,29,30,29,30,30],2045:[18,31,32,31,32,31,30,30,29,30,29,30,30],2046:[17,31,32,31,32,31,30,30,30,29,29,30,31],2047:[17,31,31,31,32,31,31,30,29,30,29,30,30],2048:[17,31,31,32,31,31,31,30,29,30,29,30,30],2049:[17,31,32,31,32,31,30,30,30,29,29,30,30],2050:[17,31,32,31,32,31,30,30,30,29,30,29,31],2051:[17,31,31,31,32,31,31,30,29,30,29,30,30],2052:[17,31,31,32,31,31,31,30,29,30,29,30,30],2053:[17,31,32,31,32,31,30,30,30,29,29,30,30],2054:[17,31,32,31,32,31,30,30,30,29,30,29,31],2055:[17,31,31,32,31,31,31,30,29,30,30,29,30],2056:[17,31,31,32,31,32,30,30,29,30,29,30,30],2057:[17,31,32,31,32,31,30,30,30,29,29,30,31],2058:[17,30,32,31,32,31,30,30,30,29,30,29,31],2059:[17,31,31,32,31,31,31,30,29,30,29,30,30],2060:[17,31,31,32,32,31,30,30,29,30,29,30,30],2061:[17,31,32,31,32,31,30,30,30,29,29,30,31],2062:[17,30,32,31,32,31,31,29,30,29,30,29,31],2063:[17,31,31,32,31,31,31,30,29,30,29,30,30],2064:[17,31,31,32,32,31,30,30,29,30,29,30,30],2065:[17,31,32,31,32,31,30,30,30,29,29,30,31],2066:[17,31,31,31,32,31,31,29,30,30,29,29,31],2067:[17,31,31,32,31,31,31,30,29,30,29,30,30],2068:[17,31,31,32,32,31,30,30,29,30,29,30,30],2069:[17,31,32,31,32,31,30,30,30,29,29,30,31],2070:[17,31,31,31,32,31,31,29,30,30,29,30,30],2071:[17,31,31,32,31,31,31,30,29,30,29,30,30],2072:[17,31,32,31,32,31,30,30,29,30,29,30,30],2073:[17,31,32,31,32,31,30,30,30,29,29,30,31],2074:[17,31,31,31,32,31,31,30,29,30,29,30,30],2075:[17,31,31,32,31,31,31,30,29,30,29,30,30],2076:[16,31,32,31,32,31,30,30,30,29,29,30,30],2077:[17,31,32,31,32,31,30,30,30,29,30,29,31],2078:[17,31,31,31,32,31,31,30,29,30,29,30,30],2079:[17,31,31,32,31,31,31,30,29,30,29,30,30],2080:[16,31,32,31,32,31,30,30,30,29,29,30,30],2081:[17,31,31,32,32,31,30,30,30,29,30,30,30],2082:[17,31,32,31,32,31,30,30,30,29,30,30,30],2083:[17,31,31,32,31,31,30,30,30,29,30,30,30],2084:[17,31,31,32,31,31,30,30,30,29,30,30,30],2085:[17,31,32,31,32,31,31,30,30,29,30,30,30],2086:[17,31,32,31,32,31,30,30,30,29,30,30,30],2087:[16,31,31,32,31,31,31,30,30,29,30,30,30],2088:[16,30,31,32,32,30,31,30,30,29,30,30,30],2089:[17,31,32,31,32,31,30,30,30,29,30,30,30],2090:[17,31,32,31,32,31,30,30,30,29,30,30,30],2091:[16,31,31,32,31,31,31,30,30,29,30,30,30],2092:[16,31,31,32,32,31,30,30,30,29,30,30,30],2093:[17,31,32,31,32,31,30,30,30,29,30,30,30],2094:[17,31,31,32,31,31,30,30,30,29,30,30,30],2095:[17,31,31,32,31,31,31,30,29,30,30,30,30],2096:[17,30,31,32,32,31,30,30,29,30,29,30,30],2097:[17,31,32,31,32,31,30,30,30,29,30,30,30],2098:[17,31,31,32,31,31,31,29,30,29,30,30,31],2099:[17,31,31,32,31,31,31,30,29,29,30,30,30],2100:[17,31,32,31,32,30,31,30,29,30,29,30,30]}}),i.calendars.nepali=n},{\"../main\":581,\"object-assign\":470}],577:[function(t,e,r){function n(t){this.local=this.regionalOptions[t||\"\"]||this.regionalOptions[\"\"]}function i(t,e){return t-e*Math.floor(t/e)}var a=t(\"../main\"),o=t(\"object-assign\");n.prototype=new a.baseCalendar,o(n.prototype,{name:\"Persian\",jdEpoch:1948320.5,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{\"\":{name:\"Persian\",epochs:[\"BP\",\"AP\"],monthNames:[\"Farvardin\",\"Ordibehesht\",\"Khordad\",\"Tir\",\"Mordad\",\"Shahrivar\",\"Mehr\",\"Aban\",\"Azar\",\"Day\",\"Bahman\",\"Esfand\"],monthNamesShort:[\"Far\",\"Ord\",\"Kho\",\"Tir\",\"Mor\",\"Sha\",\"Meh\",\"Aba\",\"Aza\",\"Day\",\"Bah\",\"Esf\"],dayNames:[\"Yekshambe\",\"Doshambe\",\"Seshambe\",\"Ch\\xe6harshambe\",\"Panjshambe\",\"Jom'e\",\"Shambe\"],dayNamesShort:[\"Yek\",\"Do\",\"Se\",\"Ch\\xe6\",\"Panj\",\"Jom\",\"Sha\"],dayNamesMin:[\"Ye\",\"Do\",\"Se\",\"Ch\",\"Pa\",\"Jo\",\"Sh\"],digits:null,dateFormat:\"yyyy/mm/dd\",firstDay:6,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,a.local.invalidYear);return 682*((e.year()-(e.year()>0?474:473))%2820+474+38)%2816<682},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-(n.dayOfWeek()+1)%7,\"d\"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,a.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(12===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return 5!==this.dayOfWeek(t,e,r)},toJD:function(t,e,r){var n=this._validate(t,e,r,a.local.invalidDate);t=n.year(),e=n.month(),r=n.day();var o=t-(t>=0?474:473),s=474+i(o,2820);return r+(e<=7?31*(e-1):30*(e-1)+6)+Math.floor((682*s-110)/2816)+365*(s-1)+1029983*Math.floor(o/2820)+this.jdEpoch-1},fromJD:function(t){t=Math.floor(t)+.5;var e=t-this.toJD(475,1,1),r=Math.floor(e/1029983),n=i(e,1029983),a=2820;if(1029982!==n){var o=Math.floor(n/366),s=i(n,366);a=Math.floor((2134*o+2816*s+2815)/1028522)+o+1}var l=a+2820*r+474;l=l<=0?l-1:l;var u=t-this.toJD(l,1,1)+1,c=u<=186?Math.ceil(u/31):Math.ceil((u-6)/30),h=t-this.toJD(l,c,1)+1;return this.newDate(l,c,h)}}),a.calendars.persian=n,a.calendars.jalali=n},{\"../main\":581,\"object-assign\":470}],578:[function(t,e,r){function n(t){this.local=this.regionalOptions[t||\"\"]||this.regionalOptions[\"\"]}var i=t(\"../main\"),a=t(\"object-assign\"),o=i.instance();n.prototype=new i.baseCalendar,a(n.prototype,{name:\"Taiwan\",jdEpoch:2419402.5,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{\"\":{name:\"Taiwan\",epochs:[\"BROC\",\"ROC\"],monthNames:[\"January\",\"February\",\"March\",\"April\",\"May\",\"June\",\"July\",\"August\",\"September\",\"October\",\"November\",\"December\"],monthNamesShort:[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\"],dayNames:[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"],dayNamesShort:[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],dayNamesMin:[\"Su\",\"Mo\",\"Tu\",\"We\",\"Th\",\"Fr\",\"Sa\"],digits:null,dateFormat:\"yyyy/mm/dd\",firstDay:1,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,i.local.invalidYear),t=this._t2gYear(e.year());return o.leapYear(t)},weekOfYear:function(t,e,r){var n=this._validate(t,this.minMonth,this.minDay,i.local.invalidYear),t=this._t2gYear(n.year());return o.weekOfYear(t,n.month(),n.day())},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,i.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(2===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)<6},toJD:function(t,e,r){var n=this._validate(t,e,r,i.local.invalidDate),t=this._t2gYear(n.year());return o.toJD(t,n.month(),n.day())},fromJD:function(t){var e=o.fromJD(t),r=this._g2tYear(e.year());return this.newDate(r,e.month(),e.day())},_t2gYear:function(t){return t+this.yearsOffset+(t>=-this.yearsOffset&&t<=-1?1:0)},_g2tYear:function(t){return t-this.yearsOffset-(t>=1&&t<=this.yearsOffset?1:0)}}),i.calendars.taiwan=n},{\"../main\":581,\"object-assign\":470}],579:[function(t,e,r){function n(t){this.local=this.regionalOptions[t||\"\"]||this.regionalOptions[\"\"]}var i=t(\"../main\"),a=t(\"object-assign\"),o=i.instance();n.prototype=new i.baseCalendar,a(n.prototype,{name:\"Thai\",jdEpoch:1523098.5,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{\"\":{name:\"Thai\",epochs:[\"BBE\",\"BE\"],monthNames:[\"January\",\"February\",\"March\",\"April\",\"May\",\"June\",\"July\",\"August\",\"September\",\"October\",\"November\",\"December\"],monthNamesShort:[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\"],dayNames:[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"],dayNamesShort:[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],dayNamesMin:[\"Su\",\"Mo\",\"Tu\",\"We\",\"Th\",\"Fr\",\"Sa\"],digits:null,dateFormat:\"dd/mm/yyyy\",firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,i.local.invalidYear),t=this._t2gYear(e.year());return o.leapYear(t)},weekOfYear:function(t,e,r){var n=this._validate(t,this.minMonth,this.minDay,i.local.invalidYear),t=this._t2gYear(n.year());return o.weekOfYear(t,n.month(),n.day())},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,i.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(2===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)<6},toJD:function(t,e,r){var n=this._validate(t,e,r,i.local.invalidDate),t=this._t2gYear(n.year());return o.toJD(t,n.month(),n.day())},fromJD:function(t){var e=o.fromJD(t),r=this._g2tYear(e.year());return this.newDate(r,e.month(),e.day())},_t2gYear:function(t){return t-this.yearsOffset-(t>=1&&t<=this.yearsOffset?1:0)},_g2tYear:function(t){return t+this.yearsOffset+(t>=-this.yearsOffset&&t<=-1?1:0)}}),i.calendars.thai=n},{\"../main\":581,\"object-assign\":470}],580:[function(t,e,r){function n(t){this.local=this.regionalOptions[t||\"\"]||this.regionalOptions[\"\"]}var i=t(\"../main\"),a=t(\"object-assign\");n.prototype=new i.baseCalendar,a(n.prototype,{name:\"UmmAlQura\",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{\"\":{name:\"Umm al-Qura\",epochs:[\"BH\",\"AH\"],monthNames:[\"Al-Muharram\",\"Safar\",\"Rabi' al-awwal\",\"Rabi' Al-Thani\",\"Jumada Al-Awwal\",\"Jumada Al-Thani\",\"Rajab\",\"Sha'aban\",\"Ramadan\",\"Shawwal\",\"Dhu al-Qi'dah\",\"Dhu al-Hijjah\"],monthNamesShort:[\"Muh\",\"Saf\",\"Rab1\",\"Rab2\",\"Jum1\",\"Jum2\",\"Raj\",\"Sha'\",\"Ram\",\"Shaw\",\"DhuQ\",\"DhuH\"],dayNames:[\"Yawm al-Ahad\",\"Yawm al-Ithnain\",\"Yawm al-Thal\\u0101th\\u0101\\u2019\",\"Yawm al-Arba\\u2018\\u0101\\u2019\",\"Yawm al-Kham\\u012bs\",\"Yawm al-Jum\\u2018a\",\"Yawm al-Sabt\"],dayNamesMin:[\"Ah\",\"Ith\",\"Th\",\"Ar\",\"Kh\",\"Ju\",\"Sa\"],digits:null,dateFormat:\"yyyy/mm/dd\",firstDay:6,isRTL:!0}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,i.local.invalidYear);return 355===this.daysInYear(e.year())},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),\"d\"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(t){for(var e=0,r=1;r<=12;r++)e+=this.daysInMonth(t,r);return e},daysInMonth:function(t,e){for(var r=this._validate(t,e,this.minDay,i.local.invalidMonth),n=r.toJD()-24e5+.5,a=0,s=0;s<o.length;s++){if(o[s]>n)return o[a]-o[a-1];a++}return 30},weekDay:function(t,e,r){return 5!==this.dayOfWeek(t,e,r)},toJD:function(t,e,r){var n=this._validate(t,e,r,i.local.invalidDate),a=12*(n.year()-1)+n.month()-15292;return n.day()+o[a-1]-1+24e5-.5},fromJD:function(t){for(var e=t-24e5+.5,r=0,n=0;n<o.length&&!(o[n]>e);n++)r++;var i=r+15292,a=Math.floor((i-1)/12),s=a+1,l=i-12*a,u=e-o[r-1]+1;return this.newDate(s,l,u)},isValid:function(t,e,r){var n=i.baseCalendar.prototype.isValid.apply(this,arguments);return n&&(t=null!=t.year?t.year:t,n=t>=1276&&t<=1500),n},_validate:function(t,e,r,n){var a=i.baseCalendar.prototype._validate.apply(this,arguments);if(a.year<1276||a.year>1500)throw n.replace(/\\{0\\}/,this.local.name);return a}}),i.calendars.ummalqura=n;var o=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]},{\"../main\":581,\"object-assign\":470}],581:[function(t,e,r){function n(){this.regionalOptions=[],this.regionalOptions[\"\"]={invalidCalendar:\"Calendar {0} not found\",invalidDate:\"Invalid {0} date\",invalidMonth:\"Invalid {0} month\",invalidYear:\"Invalid {0} year\",differentCalendars:\"Cannot mix {0} and {1} dates\"},this.local=this.regionalOptions[\"\"],this.calendars={},this._localCals={}}function i(t,e,r,n){if(this._calendar=t,this._year=e,this._month=r,this._day=n,0===this._calendar._validateLevel&&!this._calendar.isValid(this._year,this._month,this._day))throw(u.local.invalidDate||u.regionalOptions[\"\"].invalidDate).replace(/\\{0\\}/,this._calendar.local.name)}function a(t,e){return t=\"\"+t,\"000000\".substring(0,e-t.length)+t}function o(){this.shortYearCutoff=\"+10\"}function s(t){this.local=this.regionalOptions[t]||this.regionalOptions[\"\"]}var l=t(\"object-assign\");l(n.prototype,{instance:function(t,e){t=(t||\"gregorian\").toLowerCase(),e=e||\"\";var r=this._localCals[t+\"-\"+e];if(!r&&this.calendars[t]&&(r=new this.calendars[t](e),this._localCals[t+\"-\"+e]=r),!r)throw(this.local.invalidCalendar||this.regionalOptions[\"\"].invalidCalendar).replace(/\\{0\\}/,t);return r},newDate:function(t,e,r,n,i){return n=(null!=t&&t.year?t.calendar():\"string\"==typeof n?this.instance(n,i):n)||this.instance(),n.newDate(t,e,r)},substituteDigits:function(t){\n", "return function(e){return(e+\"\").replace(/[0-9]/g,function(e){return t[e]})}},substituteChineseDigits:function(t,e){return function(r){for(var n=\"\",i=0;r>0;){var a=r%10;n=(0===a?\"\":t[a]+e[i])+n,i++,r=Math.floor(r/10)}return 0===n.indexOf(t[1]+e[1])&&(n=n.substr(1)),n||t[0]}}}),l(i.prototype,{newDate:function(t,e,r){return this._calendar.newDate(null==t?this:t,e,r)},year:function(t){return 0===arguments.length?this._year:this.set(t,\"y\")},month:function(t){return 0===arguments.length?this._month:this.set(t,\"m\")},day:function(t){return 0===arguments.length?this._day:this.set(t,\"d\")},date:function(t,e,r){if(!this._calendar.isValid(t,e,r))throw(u.local.invalidDate||u.regionalOptions[\"\"].invalidDate).replace(/\\{0\\}/,this._calendar.local.name);return this._year=t,this._month=e,this._day=r,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(t,e){return this._calendar.add(this,t,e)},set:function(t,e){return this._calendar.set(this,t,e)},compareTo:function(t){if(this._calendar.name!==t._calendar.name)throw(u.local.differentCalendars||u.regionalOptions[\"\"].differentCalendars).replace(/\\{0\\}/,this._calendar.local.name).replace(/\\{1\\}/,t._calendar.local.name);var e=this._year!==t._year?this._year-t._year:this._month!==t._month?this.monthOfYear()-t.monthOfYear():this._day-t._day;return 0===e?0:e<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(t){return this._calendar.fromJD(t)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(t){return this._calendar.fromJSDate(t)},toString:function(){return(this.year()<0?\"-\":\"\")+a(Math.abs(this.year()),4)+\"-\"+a(this.month(),2)+\"-\"+a(this.day(),2)}}),l(o.prototype,{_validateLevel:0,newDate:function(t,e,r){return null==t?this.today():(t.year&&(this._validate(t,e,r,u.local.invalidDate||u.regionalOptions[\"\"].invalidDate),r=t.day(),e=t.month(),t=t.year()),new i(this,t,e,r))},today:function(){return this.fromJSDate(new Date)},epoch:function(t){return this._validate(t,this.minMonth,this.minDay,u.local.invalidYear||u.regionalOptions[\"\"].invalidYear).year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,u.local.invalidYear||u.regionalOptions[\"\"].invalidYear);return(e.year()<0?\"-\":\"\")+a(Math.abs(e.year()),4)},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,u.local.invalidYear||u.regionalOptions[\"\"].invalidYear),12},monthOfYear:function(t,e){var r=this._validate(t,e,this.minDay,u.local.invalidMonth||u.regionalOptions[\"\"].invalidMonth);return(r.month()+this.monthsInYear(r)-this.firstMonth)%this.monthsInYear(r)+this.minMonth},fromMonthOfYear:function(t,e){var r=(e+this.firstMonth-2*this.minMonth)%this.monthsInYear(t)+this.minMonth;return this._validate(t,r,this.minDay,u.local.invalidMonth||u.regionalOptions[\"\"].invalidMonth),r},daysInYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,u.local.invalidYear||u.regionalOptions[\"\"].invalidYear);return this.leapYear(e)?366:365},dayOfYear:function(t,e,r){var n=this._validate(t,e,r,u.local.invalidDate||u.regionalOptions[\"\"].invalidDate);return n.toJD()-this.newDate(n.year(),this.fromMonthOfYear(n.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(t,e,r){var n=this._validate(t,e,r,u.local.invalidDate||u.regionalOptions[\"\"].invalidDate);return(Math.floor(this.toJD(n))+2)%this.daysInWeek()},extraInfo:function(t,e,r){return this._validate(t,e,r,u.local.invalidDate||u.regionalOptions[\"\"].invalidDate),{}},add:function(t,e,r){return this._validate(t,this.minMonth,this.minDay,u.local.invalidDate||u.regionalOptions[\"\"].invalidDate),this._correctAdd(t,this._add(t,e,r),e,r)},_add:function(t,e,r){if(this._validateLevel++,\"d\"===r||\"w\"===r){var n=t.toJD()+e*(\"w\"===r?this.daysInWeek():1),i=t.calendar().fromJD(n);return this._validateLevel--,[i.year(),i.month(),i.day()]}try{var a=t.year()+(\"y\"===r?e:0),o=t.monthOfYear()+(\"m\"===r?e:0),i=t.day();\"y\"===r?(t.month()!==this.fromMonthOfYear(a,o)&&(o=this.newDate(a,t.month(),this.minDay).monthOfYear()),o=Math.min(o,this.monthsInYear(a)),i=Math.min(i,this.daysInMonth(a,this.fromMonthOfYear(a,o)))):\"m\"===r&&(!function(t){for(;o<t.minMonth;)a--,o+=t.monthsInYear(a);for(var e=t.monthsInYear(a);o>e-1+t.minMonth;)a++,o-=e,e=t.monthsInYear(a)}(this),i=Math.min(i,this.daysInMonth(a,this.fromMonthOfYear(a,o))));var s=[a,this.fromMonthOfYear(a,o),i];return this._validateLevel--,s}catch(t){throw this._validateLevel--,t}},_correctAdd:function(t,e,r,n){if(!(this.hasYearZero||\"y\"!==n&&\"m\"!==n||0!==e[0]&&t.year()>0==e[0]>0)){var i={y:[1,1,\"y\"],m:[1,this.monthsInYear(-1),\"m\"],w:[this.daysInWeek(),this.daysInYear(-1),\"d\"],d:[1,this.daysInYear(-1),\"d\"]}[n],a=r<0?-1:1;e=this._add(t,r*i[0]+a*i[1],i[2])}return t.date(e[0],e[1],e[2])},set:function(t,e,r){this._validate(t,this.minMonth,this.minDay,u.local.invalidDate||u.regionalOptions[\"\"].invalidDate);var n=\"y\"===r?e:t.year(),i=\"m\"===r?e:t.month(),a=\"d\"===r?e:t.day();return\"y\"!==r&&\"m\"!==r||(a=Math.min(a,this.daysInMonth(n,i))),t.date(n,i,a)},isValid:function(t,e,r){this._validateLevel++;var n=this.hasYearZero||0!==t;if(n){var i=this.newDate(t,e,this.minDay);n=e>=this.minMonth&&e-this.minMonth<this.monthsInYear(i)&&r>=this.minDay&&r-this.minDay<this.daysInMonth(i)}return this._validateLevel--,n},toJSDate:function(t,e,r){var n=this._validate(t,e,r,u.local.invalidDate||u.regionalOptions[\"\"].invalidDate);return u.instance().fromJD(this.toJD(n)).toJSDate()},fromJSDate:function(t){return this.fromJD(u.instance().fromJSDate(t).toJD())},_validate:function(t,e,r,n){if(t.year){if(0===this._validateLevel&&this.name!==t.calendar().name)throw(u.local.differentCalendars||u.regionalOptions[\"\"].differentCalendars).replace(/\\{0\\}/,this.local.name).replace(/\\{1\\}/,t.calendar().local.name);return t}try{if(1===++this._validateLevel&&!this.isValid(t,e,r))throw n.replace(/\\{0\\}/,this.local.name);var i=this.newDate(t,e,r);return this._validateLevel--,i}catch(t){throw this._validateLevel--,t}}}),s.prototype=new o,l(s.prototype,{name:\"Gregorian\",jdEpoch:1721425.5,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{\"\":{name:\"Gregorian\",epochs:[\"BCE\",\"CE\"],monthNames:[\"January\",\"February\",\"March\",\"April\",\"May\",\"June\",\"July\",\"August\",\"September\",\"October\",\"November\",\"December\"],monthNamesShort:[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\"],dayNames:[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"],dayNamesShort:[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],dayNamesMin:[\"Su\",\"Mo\",\"Tu\",\"We\",\"Th\",\"Fr\",\"Sa\"],digits:null,dateFormat:\"mm/dd/yyyy\",firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,u.local.invalidYear||u.regionalOptions[\"\"].invalidYear),t=e.year()+(e.year()<0?1:0);return t%4==0&&(t%100!=0||t%400==0)},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(4-(n.dayOfWeek()||7),\"d\"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,u.local.invalidMonth||u.regionalOptions[\"\"].invalidMonth);return this.daysPerMonth[r.month()-1]+(2===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)<6},toJD:function(t,e,r){var n=this._validate(t,e,r,u.local.invalidDate||u.regionalOptions[\"\"].invalidDate);t=n.year(),e=n.month(),r=n.day(),t<0&&t++,e<3&&(e+=12,t--);var i=Math.floor(t/100),a=2-i+Math.floor(i/4);return Math.floor(365.25*(t+4716))+Math.floor(30.6001*(e+1))+r+a-1524.5},fromJD:function(t){var e=Math.floor(t+.5),r=Math.floor((e-1867216.25)/36524.25);r=e+1+r-Math.floor(r/4);var n=r+1524,i=Math.floor((n-122.1)/365.25),a=Math.floor(365.25*i),o=Math.floor((n-a)/30.6001),s=n-a-Math.floor(30.6001*o),l=o-(o>13.5?13:1),u=i-(l>2.5?4716:4715);return u<=0&&u--,this.newDate(u,l,s)},toJSDate:function(t,e,r){var n=this._validate(t,e,r,u.local.invalidDate||u.regionalOptions[\"\"].invalidDate),i=new Date(n.year(),n.month()-1,n.day());return i.setHours(0),i.setMinutes(0),i.setSeconds(0),i.setMilliseconds(0),i.setHours(i.getHours()>12?i.getHours()+2:0),i},fromJSDate:function(t){return this.newDate(t.getFullYear(),t.getMonth()+1,t.getDate())}});var u=e.exports=new n;u.cdate=i,u.baseCalendar=o,u.calendars.gregorian=s},{\"object-assign\":470}],582:[function(t,e,r){var n=t(\"object-assign\"),i=t(\"./main\");n(i.regionalOptions[\"\"],{invalidArguments:\"Invalid arguments\",invalidFormat:\"Cannot format a date from another calendar\",missingNumberAt:\"Missing number at position {0}\",unknownNameAt:\"Unknown name at position {0}\",unexpectedLiteralAt:\"Unexpected literal at position {0}\",unexpectedText:\"Additional text found at end\"}),i.local=i.regionalOptions[\"\"],n(i.cdate.prototype,{formatDate:function(t,e){return\"string\"!=typeof t&&(e=t,t=\"\"),this._calendar.formatDate(t||\"\",this,e)}}),n(i.baseCalendar.prototype,{UNIX_EPOCH:i.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:86400,TICKS_EPOCH:i.instance().jdEpoch,TICKS_PER_DAY:864e9,ATOM:\"yyyy-mm-dd\",COOKIE:\"D, dd M yyyy\",FULL:\"DD, MM d, yyyy\",ISO_8601:\"yyyy-mm-dd\",JULIAN:\"J\",RFC_822:\"D, d M yy\",RFC_850:\"DD, dd-M-yy\",RFC_1036:\"D, d M yy\",RFC_1123:\"D, d M yyyy\",RFC_2822:\"D, d M yyyy\",RSS:\"D, d M yy\",TICKS:\"!\",TIMESTAMP:\"@\",W3C:\"yyyy-mm-dd\",formatDate:function(t,e,r){if(\"string\"!=typeof t&&(r=e,e=t,t=\"\"),!e)return\"\";if(e.calendar()!==this)throw i.local.invalidFormat||i.regionalOptions[\"\"].invalidFormat;t=t||this.local.dateFormat,r=r||{};for(var n=r.dayNamesShort||this.local.dayNamesShort,a=r.dayNames||this.local.dayNames,o=r.monthNumbers||this.local.monthNumbers,s=r.monthNamesShort||this.local.monthNamesShort,l=r.monthNames||this.local.monthNames,u=(r.calculateWeek||this.local.calculateWeek,function(e,r){for(var n=1;v+n<t.length&&t.charAt(v+n)===e;)n++;return v+=n-1,Math.floor(n/(r||1))>1}),c=function(t,e,r,n){var i=\"\"+e;if(u(t,n))for(;i.length<r;)i=\"0\"+i;return i},h=this,f=this.local.digits,d=function(t){return r.localNumbers&&f?f(t):t},p=\"\",m=!1,v=0;v<t.length;v++)if(m)\"'\"!==t.charAt(v)||u(\"'\")?p+=t.charAt(v):m=!1;else switch(t.charAt(v)){case\"d\":p+=d(c(\"d\",e.day(),2));break;case\"D\":p+=function(t,e,r,n){return u(t)?n[e]:r[e]}(\"D\",e.dayOfWeek(),n,a);break;case\"o\":p+=c(\"o\",e.dayOfYear(),3);break;case\"w\":p+=c(\"w\",e.weekOfYear(),2);break;case\"m\":p+=function(t){return\"function\"==typeof o?o.call(h,t,u(\"m\")):d(c(\"m\",t.month(),2))}(e);break;case\"M\":p+=function(t,e){return e?\"function\"==typeof l?l.call(h,t):l[t.month()-h.minMonth]:\"function\"==typeof s?s.call(h,t):s[t.month()-h.minMonth]}(e,u(\"M\"));break;case\"y\":p+=u(\"y\",2)?e.year():(e.year()%100<10?\"0\":\"\")+e.year()%100;break;case\"Y\":u(\"Y\",2),p+=e.formatYear();break;case\"J\":p+=e.toJD();break;case\"@\":p+=(e.toJD()-this.UNIX_EPOCH)*this.SECS_PER_DAY;break;case\"!\":p+=(e.toJD()-this.TICKS_EPOCH)*this.TICKS_PER_DAY;break;case\"'\":u(\"'\")?p+=\"'\":m=!0;break;default:p+=t.charAt(v)}return p},parseDate:function(t,e,r){if(null==e)throw i.local.invalidArguments||i.regionalOptions[\"\"].invalidArguments;if(\"\"===(e=\"object\"==typeof e?e.toString():e+\"\"))return null;t=t||this.local.dateFormat,r=r||{};var n=r.shortYearCutoff||this.shortYearCutoff;n=\"string\"!=typeof n?n:this.today().year()%100+parseInt(n,10);for(var a=r.dayNamesShort||this.local.dayNamesShort,o=r.dayNames||this.local.dayNames,s=r.parseMonth||this.local.parseMonth,l=r.monthNumbers||this.local.monthNumbers,u=r.monthNamesShort||this.local.monthNamesShort,c=r.monthNames||this.local.monthNames,h=-1,f=-1,d=-1,p=-1,m=-1,v=!1,g=!1,y=function(e,r){for(var n=1;k+n<t.length&&t.charAt(k+n)===e;)n++;return k+=n-1,Math.floor(n/(r||1))>1},b=function(t,r){var n=y(t,r),a=[2,3,n?4:2,n?4:2,10,11,20][\"oyYJ@!\".indexOf(t)+1],o=new RegExp(\"^-?\\\\d{1,\"+a+\"}\"),s=e.substring(M).match(o);if(!s)throw(i.local.missingNumberAt||i.regionalOptions[\"\"].missingNumberAt).replace(/\\{0\\}/,M);return M+=s[0].length,parseInt(s[0],10)},x=this,_=function(t,r,n,a){for(var o=y(t,a)?n:r,s=0;s<o.length;s++)if(e.substr(M,o[s].length).toLowerCase()===o[s].toLowerCase())return M+=o[s].length,s+x.minMonth;throw(i.local.unknownNameAt||i.regionalOptions[\"\"].unknownNameAt).replace(/\\{0\\}/,M)},w=function(){if(e.charAt(M)!==t.charAt(k))throw(i.local.unexpectedLiteralAt||i.regionalOptions[\"\"].unexpectedLiteralAt).replace(/\\{0\\}/,M);M++},M=0,k=0;k<t.length;k++)if(g)\"'\"!==t.charAt(k)||y(\"'\")?w():g=!1;else switch(t.charAt(k)){case\"d\":p=b(\"d\");break;case\"D\":_(\"D\",a,o);break;case\"o\":m=b(\"o\");break;case\"w\":b(\"w\");break;case\"m\":d=function(){if(\"function\"==typeof l){y(\"m\");var t=l.call(x,e.substring(M));return M+=t.length,t}return b(\"m\")}();break;case\"M\":d=function(){if(\"function\"==typeof c){var t=y(\"M\")?c.call(x,e.substring(M)):u.call(x,e.substring(M));return M+=t.length,t}return _(\"M\",u,c)}();break;case\"y\":var A=k;v=!y(\"y\",2),k=A,f=b(\"y\",2);break;case\"Y\":f=b(\"Y\",2);break;case\"J\":h=b(\"J\")+.5,\".\"===e.charAt(M)&&(M++,b(\"J\"));break;case\"@\":h=b(\"@\")/this.SECS_PER_DAY+this.UNIX_EPOCH;break;case\"!\":h=b(\"!\")/this.TICKS_PER_DAY+this.TICKS_EPOCH;break;case\"*\":M=e.length;break;case\"'\":y(\"'\")?w():g=!0;break;default:w()}if(M<e.length)throw i.local.unexpectedText||i.regionalOptions[\"\"].unexpectedText;if(-1===f?f=this.today().year():f<100&&v&&(f+=-1===n?1900:this.today().year()-this.today().year()%100-(f<=n?0:100)),\"string\"==typeof d&&(d=s.call(this,f,d)),m>-1){d=1,p=m;for(var T=this.daysInMonth(f,d);p>T;T=this.daysInMonth(f,d))d++,p-=T}return h>-1?this.fromJD(h):this.newDate(f,d,p)},determineDate:function(t,e,r,n,i){r&&\"object\"!=typeof r&&(i=n,n=r,r=null),\"string\"!=typeof n&&(i=n,n=\"\");var a=this;return e=e?e.newDate():null,t=null==t?e:\"string\"==typeof t?function(t){try{return a.parseDate(n,t,i)}catch(t){}t=t.toLowerCase();for(var e=(t.match(/^c/)&&r?r.newDate():null)||a.today(),o=/([+-]?[0-9]+)\\s*(d|w|m|y)?/g,s=o.exec(t);s;)e.add(parseInt(s[1],10),s[2]||\"d\"),s=o.exec(t);return e}(t):\"number\"==typeof t?isNaN(t)||t===1/0||t===-1/0?e:a.today().add(t,\"d\"):a.newDate(t)}})},{\"./main\":581,\"object-assign\":470}],583:[function(t,e,r){e.exports=t(\"cwise-compiler\")({args:[\"array\",{offset:[1],array:0},\"scalar\",\"scalar\",\"index\"],pre:{body:\"{}\",args:[],thisVars:[],localVars:[]},post:{body:\"{}\",args:[],thisVars:[],localVars:[]},body:{body:\"{\\n var _inline_1_da = _inline_1_arg0_ - _inline_1_arg3_\\n var _inline_1_db = _inline_1_arg1_ - _inline_1_arg3_\\n if((_inline_1_da >= 0) !== (_inline_1_db >= 0)) {\\n _inline_1_arg2_.push(_inline_1_arg4_[0] + 0.5 + 0.5 * (_inline_1_da + _inline_1_db) / (_inline_1_da - _inline_1_db))\\n }\\n }\",args:[{name:\"_inline_1_arg0_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_1_arg1_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_1_arg2_\",lvalue:!1,rvalue:!0,count:1},{name:\"_inline_1_arg3_\",lvalue:!1,rvalue:!0,count:2},{name:\"_inline_1_arg4_\",lvalue:!1,rvalue:!0,count:1}],thisVars:[],localVars:[\"_inline_1_da\",\"_inline_1_db\"]},funcName:\"zeroCrossings\"})},{\"cwise-compiler\":110}],584:[function(t,e,r){\"use strict\";function n(t,e){var r=[];return e=+e||0,i(t.hi(t.shape[0]-1),r,e),r}e.exports=n;var i=t(\"./lib/zc-core\")},{\"./lib/zc-core\":583}],585:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../plots/cartesian/axes\"),a=t(\"./common_defaults\"),o=t(\"./attributes\");e.exports=function(t,e,r,s,l){function u(r,i){return n.coerce(t,e,o,r,i)}s=s||{},l=l||{};var c=u(\"visible\",!l.itemIsNotPlainObject),h=u(\"clicktoshow\");if(!c&&!h)return e;a(t,e,r,u);for(var f=e.showarrow,d=[\"x\",\"y\"],p=[-10,-30],m={_fullLayout:r},v=0;v<2;v++){var g=d[v],y=i.coerceRef(t,e,m,g,\"\",\"paper\");if(i.coercePosition(e,m,u,y,g,.5),f){var b=\"a\"+g,x=i.coerceRef(t,e,m,b,\"pixel\");\"pixel\"!==x&&x!==y&&(x=e[b]=\"pixel\");var _=\"pixel\"===x?p[v]:.4;i.coercePosition(e,m,u,x,b,_)}u(g+\"anchor\"),u(g+\"shift\")}if(n.noneOrAll(t,e,[\"x\",\"y\"]),f&&n.noneOrAll(t,e,[\"ax\",\"ay\"]),h){var w=u(\"xclick\"),M=u(\"yclick\");e._xclick=void 0===w?e.x:i.cleanPosition(w,m,e.xref),e._yclick=void 0===M?e.y:i.cleanPosition(M,m,e.yref)}return e}},{\"../../lib\":728,\"../../plots/cartesian/axes\":772,\"./attributes\":587,\"./common_defaults\":590}],586:[function(t,e,r){\"use strict\";e.exports=[{path:\"\",backoff:0},{path:\"M-2.4,-3V3L0.6,0Z\",backoff:.6},{path:\"M-3.7,-2.5V2.5L1.3,0Z\",backoff:1.3},{path:\"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z\",backoff:1.55},{path:\"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z\",backoff:1.6},{path:\"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z\",backoff:2},{path:\"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z\",backoff:0,noRotate:!0},{path:\"M2,2V-2H-2V2Z\",backoff:0,noRotate:!0}]},{}],587:[function(t,e,r){\"use strict\";var n=t(\"./arrow_paths\"),i=t(\"../../plots/font_attributes\"),a=t(\"../../plots/cartesian/constants\");e.exports={_isLinkedToArray:\"annotation\",visible:{valType:\"boolean\",dflt:!0,editType:\"calcIfAutorange\"},text:{valType:\"string\",editType:\"calcIfAutorange\"},textangle:{valType:\"angle\",dflt:0,editType:\"calcIfAutorange\"},font:i({editType:\"calcIfAutorange\",colorEditType:\"arraydraw\"}),width:{valType:\"number\",min:1,dflt:null,editType:\"calcIfAutorange\"},height:{valType:\"number\",min:1,dflt:null,editType:\"calcIfAutorange\"},opacity:{valType:\"number\",min:0,max:1,dflt:1,editType:\"arraydraw\"},align:{valType:\"enumerated\",values:[\"left\",\"center\",\"right\"],dflt:\"center\",editType:\"arraydraw\"},valign:{valType:\"enumerated\",values:[\"top\",\"middle\",\"bottom\"],dflt:\"middle\",editType:\"arraydraw\"},bgcolor:{valType:\"color\",dflt:\"rgba(0,0,0,0)\",editType:\"arraydraw\"},bordercolor:{valType:\"color\",dflt:\"rgba(0,0,0,0)\",editType:\"arraydraw\"},borderpad:{valType:\"number\",min:0,dflt:1,editType:\"calcIfAutorange\"},borderwidth:{valType:\"number\",min:0,dflt:1,editType:\"calcIfAutorange\"},showarrow:{valType:\"boolean\",dflt:!0,editType:\"calcIfAutorange\"},arrowcolor:{valType:\"color\",editType:\"arraydraw\"},arrowhead:{valType:\"integer\",min:0,max:n.length,dflt:1,editType:\"arraydraw\"},arrowsize:{valType:\"number\",min:.3,dflt:1,editType:\"calcIfAutorange\"},arrowwidth:{valType:\"number\",min:.1,editType:\"calcIfAutorange\"},standoff:{valType:\"number\",min:0,dflt:0,editType:\"calcIfAutorange\"},ax:{valType:\"any\",editType:\"calcIfAutorange\"},ay:{valType:\"any\",editType:\"calcIfAutorange\"},axref:{valType:\"enumerated\",dflt:\"pixel\",values:[\"pixel\",a.idRegex.x.toString()],editType:\"calc\"},ayref:{valType:\"enumerated\",dflt:\"pixel\",values:[\"pixel\",a.idRegex.y.toString()],editType:\"calc\"},xref:{valType:\"enumerated\",values:[\"paper\",a.idRegex.x.toString()],editType:\"calc\"},x:{valType:\"any\",editType:\"calcIfAutorange\"},xanchor:{valType:\"enumerated\",values:[\"auto\",\"left\",\"center\",\"right\"],dflt:\"auto\",editType:\"calcIfAutorange\"},xshift:{valType:\"number\",dflt:0,editType:\"calcIfAutorange\"},yref:{valType:\"enumerated\",values:[\"paper\",a.idRegex.y.toString()],editType:\"calc\"},y:{valType:\"any\",editType:\"calcIfAutorange\"},yanchor:{valType:\"enumerated\",values:[\"auto\",\"top\",\"middle\",\"bottom\"],dflt:\"auto\",editType:\"calcIfAutorange\"},yshift:{valType:\"number\",dflt:0,editType:\"calcIfAutorange\"},clicktoshow:{valType:\"enumerated\",values:[!1,\"onoff\",\"onout\"],dflt:!1,editType:\"arraydraw\"},xclick:{valType:\"any\",editType:\"arraydraw\"},yclick:{valType:\"any\",editType:\"arraydraw\"},hovertext:{valType:\"string\",editType:\"arraydraw\"},hoverlabel:{bgcolor:{valType:\"color\",editType:\"arraydraw\"},bordercolor:{valType:\"color\",editType:\"arraydraw\"},font:i({editType:\"arraydraw\"}),editType:\"arraydraw\"},captureevents:{valType:\"boolean\",editType:\"arraydraw\"},editType:\"calc\",_deprecated:{ref:{valType:\"string\",editType:\"calc\"}}}},{\"../../plots/cartesian/constants\":777,\"../../plots/font_attributes\":796,\"./arrow_paths\":586}],588:[function(t,e,r){\"use strict\";function n(t){var e=t._fullLayout;i.filterVisible(e.annotations).forEach(function(e){var r,n,i=a.getFromId(t,e.xref),o=a.getFromId(t,e.yref),s=3*e.arrowsize*e.arrowwidth||0;i&&i.autorange&&(r=s+e.xshift,n=s-e.xshift,e.axref===e.xref?(a.expand(i,[i.r2c(e.x)],{ppadplus:r,ppadminus:n}),a.expand(i,[i.r2c(e.ax)],{ppadplus:e._xpadplus,ppadminus:e._xpadminus})):a.expand(i,[i.r2c(e.x)],{ppadplus:Math.max(e._xpadplus,r),ppadminus:Math.max(e._xpadminus,n)})),o&&o.autorange&&(r=s-e.yshift,n=s+e.yshift,e.ayref===e.yref?(a.expand(o,[o.r2c(e.y)],{ppadplus:r,ppadminus:n}),a.expand(o,[o.r2c(e.ay)],{ppadplus:e._ypadplus,ppadminus:e._ypadminus})):a.expand(o,[o.r2c(e.y)],{ppadplus:Math.max(e._ypadplus,r),ppadminus:Math.max(e._ypadminus,n)}))})}var i=t(\"../../lib\"),a=t(\"../../plots/cartesian/axes\"),o=t(\"./draw\").draw;e.exports=function(t){var e=t._fullLayout,r=i.filterVisible(e.annotations);if(r.length&&t._fullData.length){var s={};r.forEach(function(t){s[t.xref]=!0,s[t.yref]=!0});if(a.list(t).filter(function(t){return t.autorange&&s[t._id]}).length)return i.syncOrAsync([o,n],t)}}},{\"../../lib\":728,\"../../plots/cartesian/axes\":772,\"./draw\":593}],589:[function(t,e,r){\"use strict\";function n(t,e){var r=a(t,e);return r.on.length>0||r.explicitOff.length>0}function i(t,e){var r,n=a(t,e),i=n.on,o=n.off.concat(n.explicitOff),l={};if(i.length||o.length){for(r=0;r<i.length;r++)l[\"annotations[\"+i[r]+\"].visible\"]=!0;for(r=0;r<o.length;r++)l[\"annotations[\"+o[r]+\"].visible\"]=!1;return s.update(t,{},l)}}function a(t,e){var r,n,i,a,s,l,u,c,h=t._fullLayout.annotations,f=[],d=[],p=[],m=(e||[]).length;for(r=0;r<h.length;r++)if(i=h[r],a=i.clicktoshow){for(n=0;n<m;n++)if(s=e[n],l=s.xaxis,u=s.yaxis,l._id===i.xref&&u._id===i.yref&&l.d2r(s.x)===o(i._xclick,l)&&u.d2r(s.y)===o(i._yclick,u)){c=i.visible?\"onout\"===a?d:p:f,c.push(r);break}n===m&&i.visible&&\"onout\"===a&&d.push(r)}return{on:f,off:d,explicitOff:p}}function o(t,e){return\"log\"===e.type?e.l2r(t):e.d2r(t)}var s=t(\"../../plotly\");e.exports={hasClickToShow:n,onClick:i}},{\"../../plotly\":767}],590:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../color\");e.exports=function(t,e,r,a){a(\"opacity\");var o=a(\"bgcolor\"),s=a(\"bordercolor\"),l=i.opacity(s);a(\"borderpad\");var u=a(\"borderwidth\"),c=a(\"showarrow\");a(\"text\",c?\" \":\"new text\"),a(\"textangle\"),n.coerceFont(a,\"font\",r.font),a(\"width\"),a(\"align\"),a(\"height\")&&a(\"valign\"),c&&(a(\"arrowcolor\",l?e.bordercolor:i.defaultLine),a(\"arrowhead\"),a(\"arrowsize\"),a(\"arrowwidth\",2*(l&&u||1)),a(\"standoff\"));var h=a(\"hovertext\"),f=r.hoverlabel||{};if(h){var d=a(\"hoverlabel.bgcolor\",f.bgcolor||(i.opacity(o)?i.rgb(o):i.defaultLine)),p=a(\"hoverlabel.bordercolor\",f.bordercolor||i.contrast(d));n.coerceFont(a,\"hoverlabel.font\",{family:f.font.family,size:f.font.size,color:f.font.color||p})}a(\"captureevents\",!!h)}},{\"../../lib\":728,\"../color\":604}],591:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../../lib/to_log_range\");e.exports=function(t,e,r,a){function o(t){var r=u[t],o=null;o=s?i(r,e.range):Math.pow(10,r),n(o)||(o=null),a(c+t,o)}e=e||{};var s=\"log\"===r&&\"linear\"===e.type,l=\"linear\"===r&&\"log\"===e.type;if(s||l)for(var u,c,h=t._fullLayout.annotations,f=e._id.charAt(0),d=0;d<h.length;d++)u=h[d],c=\"annotations[\"+d+\"].\",u[f+\"ref\"]===e._id&&o(f),u[\"a\"+f+\"ref\"]===e._id&&o(\"a\"+f)}},{\"../../lib/to_log_range\":752,\"fast-isnumeric\":131}],592:[function(t,e,r){\"use strict\";var n=t(\"../../plots/array_container_defaults\"),i=t(\"./annotation_defaults\");e.exports=function(t,e){n(t,e,{name:\"annotations\",handleItemDefaults:i})}},{\"../../plots/array_container_defaults\":769,\"./annotation_defaults\":585}],593:[function(t,e,r){\"use strict\";function n(t){var e=t._fullLayout;e._infolayer.selectAll(\".annotation\").remove();for(var r=0;r<e.annotations.length;r++)e.annotations[r].visible&&i(t,r);return l.previousPromises(t)}function i(t,e){var r=t._fullLayout,n=r.annotations[e]||{};a(t,n,e,!1,c.getFromId(t,n.xref),c.getFromId(t,n.yref))}function a(t,e,r,n,i,a){function l(r){return r.call(f.font,F).attr({\"text-anchor\":{left:\"start\",right:\"end\"}[e.align]||\"middle\"}),p.convertToTspans(r,t,c),r}function c(){function r(t,e){return\"auto\"===e&&(e=t<1/3?\"left\":t>2/3?\"right\":\"center\"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[e]}var o=j.selectAll(\"a\");if(1===o.size()&&o.text()===j.text()){C.insert(\"a\",\":first-child\").attr({\"xlink:xlink:href\":o.attr(\"xlink:href\"),\"xlink:xlink:show\":o.attr(\"xlink:show\")}).style({cursor:\"pointer\"}).node().appendChild(P.node())}var l=C.select(\".annotation-text-math-group\"),c=!l.empty(),d=f.bBox((c?l:j).node()),y=d.width,L=d.height,z=e.width||y,F=e.height||L,N=Math.round(z+2*D),B=Math.round(F+2*D);e._w=z,e._h=F;for(var U=!1,V=[\"x\",\"y\"],H=0;H<V.length;H++){var q,G,Y,W,X,Z=V[H],J=e[Z+\"ref\"]||Z,K=e[\"a\"+Z+\"ref\"],Q={x:i,y:a}[Z],$=(A+(\"x\"===Z?0:-90))*Math.PI/180,tt=N*Math.cos($),et=B*Math.sin($),rt=Math.abs(tt)+Math.abs(et),nt=e[Z+\"anchor\"],it=e[Z+\"shift\"]*(\"x\"===Z?1:-1),at=k[Z];if(Q){var ot=Q.r2fraction(e[Z]);if((t._dragging||!Q.autorange)&&(ot<0||ot>1)&&(K===J?((ot=Q.r2fraction(e[\"a\"+Z]))<0||ot>1)&&(U=!0):U=!0,U))continue;q=Q._offset+Q.r2p(e[Z]),W=.5}else\"x\"===Z?(Y=e[Z],q=_.l+_.w*Y):(Y=1-e[Z],q=_.t+_.h*Y),W=e.showarrow?.5:Y;if(e.showarrow){at.head=q;var st=e[\"a\"+Z];X=tt*r(.5,e.xanchor)-et*r(.5,e.yanchor),K===J?(at.tail=Q._offset+Q.r2p(st),G=X):(at.tail=q+st,G=X+st),at.text=at.tail+X;var lt=x[\"x\"===Z?\"width\":\"height\"];if(\"paper\"===J&&(at.head=u.constrain(at.head,1,lt-1)),\"pixel\"===K){var ut=-Math.max(at.tail-3,at.text),ct=Math.min(at.tail+3,at.text)-lt;ut>0?(at.tail+=ut,at.text+=ut):ct>0&&(at.tail-=ct,at.text-=ct)}at.tail+=it,at.head+=it}else X=rt*r(W,nt),G=X,at.text=q+X;at.text+=it,X+=it,G+=it,e[\"_\"+Z+\"padplus\"]=rt/2+G,e[\"_\"+Z+\"padminus\"]=rt/2-G,e[\"_\"+Z+\"size\"]=rt,e[\"_\"+Z+\"shift\"]=X}if(U)return void C.remove();var ht=0,ft=0;if(\"left\"!==e.align&&(ht=(z-y)*(\"center\"===e.align?.5:1)),\"top\"!==e.valign&&(ft=(F-L)*(\"middle\"===e.valign?.5:1)),c)l.select(\"svg\").attr({x:D+ht-1,y:D+ft}).call(f.setClipUrl,O?M:null);else{var dt=D+ft-d.top,pt=D+ht-d.left;j.call(p.positionText,pt,dt).call(f.setClipUrl,O?M:null)}R.select(\"rect\").call(f.setRect,D,D,z,F),P.call(f.setRect,I/2,I/2,N-I,B-I),C.call(f.setTranslate,Math.round(k.x.text-N/2),Math.round(k.y.text-B/2)),S.attr({transform:\"rotate(\"+A+\",\"+k.x.text+\",\"+k.y.text+\")\"});var mt=function(r,o){T.selectAll(\".annotation-arrow-g\").remove();var l=k.x.head,c=k.y.head,d=k.x.tail+r,p=k.y.tail+o,m=k.x.text+r,y=k.y.text+o,x=u.rotationXYMatrix(A,m,y),M=u.apply2DTransform(x),E=u.apply2DTransform2(x),L=+P.attr(\"width\"),I=+P.attr(\"height\"),z=m-.5*L,D=z+L,O=y-.5*I,R=O+I,F=[[z,O,z,R],[z,R,D,R],[D,R,D,O],[D,O,z,O]].map(E);if(!F.reduce(function(t,e){return t^!!u.segmentsIntersect(l,c,l+1e6,c+1e6,e[0],e[1],e[2],e[3])},!1)){F.forEach(function(t){var e=u.segmentsIntersect(d,p,l,c,t[0],t[1],t[2],t[3]);e&&(d=e.x,p=e.y)});var j=e.arrowwidth,N=e.arrowcolor,B=T.append(\"g\").style({opacity:h.opacity(N)}).classed(\"annotation-arrow-g\",!0),U=B.append(\"path\").attr(\"d\",\"M\"+d+\",\"+p+\"L\"+l+\",\"+c).style(\"stroke-width\",j+\"px\").call(h.stroke,h.rgb(N));if(g(U,\"end\",e),w.annotationPosition&&U.node().parentNode&&!n){var V=l,H=c;if(e.standoff){var q=Math.sqrt(Math.pow(l-d,2)+Math.pow(c-p,2));V+=e.standoff*(d-l)/q,H+=e.standoff*(p-c)/q}var G,Y,W,X=B.append(\"path\").classed(\"annotation-arrow\",!0).classed(\"anndrag\",!0).attr({d:\"M3,3H-3V-3H3ZM0,0L\"+(d-V)+\",\"+(p-H),transform:\"translate(\"+V+\",\"+H+\")\"}).style(\"stroke-width\",j+6+\"px\").call(h.stroke,\"rgba(0,0,0,0)\").call(h.fill,\"rgba(0,0,0,0)\");v.init({element:X.node(),gd:t,prepFn:function(){var t=f.getTranslate(C);Y=t.x,W=t.y,G={},i&&i.autorange&&(G[i._name+\".autorange\"]=!0),a&&a.autorange&&(G[a._name+\".autorange\"]=!0)},moveFn:function(t,r){var n=M(Y,W),o=n[0]+t,s=n[1]+r;C.call(f.setTranslate,o,s),G[b+\".x\"]=i?i.p2r(i.r2p(e.x)+t):e.x+t/_.w,G[b+\".y\"]=a?a.p2r(a.r2p(e.y)+r):e.y-r/_.h,e.axref===e.xref&&(G[b+\".ax\"]=i.p2r(i.r2p(e.ax)+t)),e.ayref===e.yref&&(G[b+\".ay\"]=a.p2r(a.r2p(e.ay)+r)),B.attr(\"transform\",\"translate(\"+t+\",\"+r+\")\"),S.attr({transform:\"rotate(\"+A+\",\"+o+\",\"+s+\")\"})},doneFn:function(e){if(e){s.relayout(t,G);var r=document.querySelector(\".js-notes-box-panel\");r&&r.redraw(r.selectedObj)}}})}}};if(e.showarrow&&mt(0,0),E){var vt,gt;v.init({element:C.node(),gd:t,prepFn:function(){gt=S.attr(\"transform\"),vt={}},moveFn:function(t,r){var o=\"pointer\";if(e.showarrow)e.axref===e.xref?vt[b+\".ax\"]=i.p2r(i.r2p(e.ax)+t):vt[b+\".ax\"]=e.ax+t,e.ayref===e.yref?vt[b+\".ay\"]=a.p2r(a.r2p(e.ay)+r):vt[b+\".ay\"]=e.ay+r,mt(t,r);else{if(n)return;if(i)vt[b+\".x\"]=e.x+t/i._m;else{var s=e._xsize/_.w,l=e.x+(e._xshift-e.xshift)/_.w-s/2;vt[b+\".x\"]=v.align(l+t/_.w,s,0,1,e.xanchor)}if(a)vt[b+\".y\"]=e.y+r/a._m;else{var u=e._ysize/_.h,c=e.y-(e._yshift+e.yshift)/_.h-u/2;vt[b+\".y\"]=v.align(c-r/_.h,u,0,1,e.yanchor)}i&&a||(o=v.getCursor(i?.5:vt[b+\".x\"],a?.5:vt[b+\".y\"],e.xanchor,e.yanchor))}S.attr({transform:\"translate(\"+t+\",\"+r+\")\"+gt}),m(C,o)},doneFn:function(e){if(m(C),e){s.relayout(t,vt);var r=document.querySelector(\".js-notes-box-panel\");r&&r.redraw(r.selectedObj)}}})}}var y,b,x=t._fullLayout,_=t._fullLayout._size,w=t._context.edits;n?(y=\"annotation-\"+n,b=n+\".annotations[\"+r+\"]\"):(y=\"annotation\",b=\"annotations[\"+r+\"]\"),x._infolayer.selectAll(\".\"+y+'[data-index=\"'+r+'\"]').remove();var M=\"clip\"+x._uid+\"_ann\"+r;if(!e._input||!1===e.visible)return void o.selectAll(\"#\"+M).remove();var k={x:{},y:{}},A=+e.textangle||0,T=x._infolayer.append(\"g\").classed(y,!0).attr(\"data-index\",String(r)).style(\"opacity\",e.opacity),S=T.append(\"g\").classed(\"annotation-text-g\",!0),E=w[e.showarrow?\"annotationTail\":\"annotationPosition\"],L=e.captureevents||w.annotationText||E,C=S.append(\"g\").style(\"pointer-events\",L?\"all\":null).call(m,\"default\").on(\"click\",function(){t._dragging=!1;var i={index:r,annotation:e._input,fullAnnotation:e,event:o.event};n&&(i.subplotId=n),t.emit(\"plotly_clickannotation\",i)});e.hovertext&&C.on(\"mouseover\",function(){var r=e.hoverlabel,n=r.font,i=this.getBoundingClientRect(),a=t.getBoundingClientRect();d.loneHover({x0:i.left-a.left,x1:i.right-a.left,y:(i.top+i.bottom)/2-a.top,text:e.hovertext,color:r.bgcolor,borderColor:r.bordercolor,fontFamily:n.family,fontSize:n.size,fontColor:n.color},{container:x._hoverlayer.node(),outerContainer:x._paper.node(),gd:t})}).on(\"mouseout\",function(){d.loneUnhover(x._hoverlayer.node())});var I=e.borderwidth,z=e.borderpad,D=I+z,P=C.append(\"rect\").attr(\"class\",\"bg\").style(\"stroke-width\",I+\"px\").call(h.stroke,e.bordercolor).call(h.fill,e.bgcolor),O=e.width||e.height,R=x._topclips.selectAll(\"#\"+M).data(O?[0]:[]);R.enter().append(\"clipPath\").classed(\"annclip\",!0).attr(\"id\",M).append(\"rect\"),R.exit().remove();var F=e.font,j=C.append(\"text\").classed(\"annotation-text\",!0).text(e.text);w.annotationText?j.call(p.makeEditable,{delegate:C,gd:t}).call(l).on(\"edit\",function(r){e.text=r,this.call(l);var n={};n[b+\".text\"]=e.text,i&&i.autorange&&(n[i._name+\".autorange\"]=!0),a&&a.autorange&&(n[a._name+\".autorange\"]=!0),s.relayout(t,n)}):j.call(l)}var o=t(\"d3\"),s=t(\"../../plotly\"),l=t(\"../../plots/plots\"),u=t(\"../../lib\"),c=t(\"../../plots/cartesian/axes\"),h=t(\"../color\"),f=t(\"../drawing\"),d=t(\"../fx\"),p=t(\"../../lib/svg_text_utils\"),m=t(\"../../lib/setcursor\"),v=t(\"../dragelement\"),g=t(\"./draw_arrow_head\");e.exports={draw:n,drawOne:i,drawRaw:a}},{\"../../lib\":728,\"../../lib/setcursor\":746,\"../../lib/svg_text_utils\":750,\"../../plotly\":767,\"../../plots/cartesian/axes\":772,\"../../plots/plots\":831,\"../color\":604,\"../dragelement\":625,\"../drawing\":628,\"../fx\":645,\"./draw_arrow_head\":594,d3:122}],594:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../color\"),a=t(\"./arrow_paths\");e.exports=function(t,e,r){function o(){t.style(\"stroke-dasharray\",\"0px,100px\")}function s(e,a){d.path&&(d.noRotate&&(a=0),n.select(f.parentNode).append(\"path\").attr({class:t.attr(\"class\"),d:d.path,transform:\"translate(\"+e.x+\",\"+e.y+\")\"+(a?\"rotate(\"+180*a/Math.PI+\")\":\"\")+\"scale(\"+p+\")\"}).style({\n", "fill:i.rgb(r.arrowcolor),\"stroke-width\":0}))}var l,u,c,h,f=t.node(),d=a[r.arrowhead||0],p=(r.arrowwidth||1)*r.arrowsize,m=e.indexOf(\"start\")>=0,v=e.indexOf(\"end\")>=0,g=d.backoff*p+r.standoff;if(\"line\"===f.nodeName){l={x:+t.attr(\"x1\"),y:+t.attr(\"y1\")},u={x:+t.attr(\"x2\"),y:+t.attr(\"y2\")};var y=l.x-u.x,b=l.y-u.y;if(c=Math.atan2(b,y),h=c+Math.PI,g){if(g*g>y*y+b*b)return void o();var x=g*Math.cos(c),_=g*Math.sin(c);m&&(l.x-=x,l.y-=_,t.attr({x1:l.x,y1:l.y})),v&&(u.x+=x,u.y+=_,t.attr({x2:u.x,y2:u.y}))}}else if(\"path\"===f.nodeName){var w=f.getTotalLength(),M=\"\";if(w<g)return void o();if(m){var k=f.getPointAtLength(0),A=f.getPointAtLength(.1);c=Math.atan2(k.y-A.y,k.x-A.x),l=f.getPointAtLength(Math.min(g,w)),g&&(M=\"0px,\"+g+\"px,\")}if(v){var T=f.getPointAtLength(w),S=f.getPointAtLength(w-.1);if(h=Math.atan2(T.y-S.y,T.x-S.x),u=f.getPointAtLength(Math.max(0,w-g)),g){var E=M?2*g:g;M+=w-E+\"px,\"+w+\"px\"}}else M&&(M+=w+\"px\");M&&t.style(\"stroke-dasharray\",M)}m&&s(l,c),v&&s(u,h)}},{\"../color\":604,\"./arrow_paths\":586,d3:122}],595:[function(t,e,r){\"use strict\";var n=t(\"./draw\"),i=t(\"./click\");e.exports={moduleType:\"component\",name:\"annotations\",layoutAttributes:t(\"./attributes\"),supplyLayoutDefaults:t(\"./defaults\"),calcAutorange:t(\"./calc_autorange\"),draw:n.draw,drawOne:n.drawOne,drawRaw:n.drawRaw,hasClickToShow:i.hasClickToShow,onClick:i.onClick,convertCoords:t(\"./convert_coords\")}},{\"./attributes\":587,\"./calc_autorange\":588,\"./click\":589,\"./convert_coords\":591,\"./defaults\":592,\"./draw\":593}],596:[function(t,e,r){\"use strict\";var n=t(\"../annotations/attributes\"),i=t(\"../../plot_api/edit_types\").overrideAll;e.exports=i({_isLinkedToArray:\"annotation\",visible:n.visible,x:{valType:\"any\"},y:{valType:\"any\"},z:{valType:\"any\"},ax:{valType:\"number\"},ay:{valType:\"number\"},xanchor:n.xanchor,xshift:n.xshift,yanchor:n.yanchor,yshift:n.yshift,text:n.text,textangle:n.textangle,font:n.font,width:n.width,height:n.height,opacity:n.opacity,align:n.align,valign:n.valign,bgcolor:n.bgcolor,bordercolor:n.bordercolor,borderpad:n.borderpad,borderwidth:n.borderwidth,showarrow:n.showarrow,arrowcolor:n.arrowcolor,arrowhead:n.arrowhead,arrowsize:n.arrowsize,arrowwidth:n.arrowwidth,standoff:n.standoff,hovertext:n.hovertext,hoverlabel:n.hoverlabel,captureevents:n.captureevents},\"calc\",\"from-root\")},{\"../../plot_api/edit_types\":756,\"../annotations/attributes\":587}],597:[function(t,e,r){\"use strict\";function n(t,e){var r=e.fullSceneLayout,n=r.domain,o=e.fullLayout._size,s={pdata:null,type:\"linear\",autorange:!1,range:[-1/0,1/0]};t._xa={},i.extendFlat(t._xa,s),a.setConvert(t._xa),t._xa._offset=o.l+n.x[0]*o.w,t._xa.l2p=function(){return.5*(1+t.pdata[0]/t.pdata[3])*o.w*(n.x[1]-n.x[0])},t._ya={},i.extendFlat(t._ya,s),a.setConvert(t._ya),t._ya._offset=o.t+(1-n.y[1])*o.h,t._ya.l2p=function(){return.5*(1-t.pdata[1]/t.pdata[3])*o.h*(n.y[1]-n.y[0])}}var i=t(\"../../lib\"),a=t(\"../../plots/cartesian/axes\");e.exports=function(t){for(var e=t.fullSceneLayout,r=e.annotations,i=0;i<r.length;i++)n(r[i],t);t.fullLayout._infolayer.selectAll(\".annotation-\"+t.id).remove()}},{\"../../lib\":728,\"../../plots/cartesian/axes\":772}],598:[function(t,e,r){\"use strict\";function n(t,e,r,n,o){function u(r,n){return i.coerce(t,e,l,r,n)}function c(t){var n=t+\"axis\",i={_fullLayout:{}};return i._fullLayout[n]=r[n],a.coercePosition(e,i,u,t,t,.5)}return u(\"visible\",!o.itemIsNotPlainObject)?(s(t,e,n.fullLayout,u),c(\"x\"),c(\"y\"),c(\"z\"),i.noneOrAll(t,e,[\"x\",\"y\",\"z\"]),e.xref=\"x\",e.yref=\"y\",e.zref=\"z\",u(\"xanchor\"),u(\"yanchor\"),u(\"xshift\"),u(\"yshift\"),e.showarrow&&(e.axref=\"pixel\",e.ayref=\"pixel\",u(\"ax\",-10),u(\"ay\",-30),i.noneOrAll(t,e,[\"ax\",\"ay\"])),e):e}var i=t(\"../../lib\"),a=t(\"../../plots/cartesian/axes\"),o=t(\"../../plots/array_container_defaults\"),s=t(\"../annotations/common_defaults\"),l=t(\"./attributes\");e.exports=function(t,e,r){o(t,e,{name:\"annotations\",handleItemDefaults:n,fullLayout:r.fullLayout})}},{\"../../lib\":728,\"../../plots/array_container_defaults\":769,\"../../plots/cartesian/axes\":772,\"../annotations/common_defaults\":590,\"./attributes\":596}],599:[function(t,e,r){\"use strict\";var n=t(\"../annotations/draw\").drawRaw,i=t(\"../../plots/gl3d/project\"),a=[\"x\",\"y\",\"z\"];e.exports=function(t){for(var e=t.fullSceneLayout,r=t.dataScale,o=e.annotations,s=0;s<o.length;s++){for(var l=o[s],u=!1,c=0;c<3;c++){var h=a[c],f=l[h],d=e[h+\"axis\"],p=d.r2fraction(f);if(p<0||p>1){u=!0;break}}u?t.fullLayout._infolayer.select(\".annotation-\"+t.id+'[data-index=\"'+s+'\"]').remove():(l.pdata=i(t.glplot.cameraParams,[e.xaxis.r2l(l.x)*r[0],e.yaxis.r2l(l.y)*r[1],e.zaxis.r2l(l.z)*r[2]]),n(t.graphDiv,l,s,t.id,l._xa,l._ya))}}},{\"../../plots/gl3d/project\":820,\"../annotations/draw\":593}],600:[function(t,e,r){\"use strict\";e.exports={moduleType:\"component\",name:\"annotations3d\",schema:{subplots:{scene:{annotations:t(\"./attributes\")}}},layoutAttributes:t(\"./attributes\"),handleDefaults:t(\"./defaults\"),convert:t(\"./convert\"),draw:t(\"./draw\")}},{\"./attributes\":596,\"./convert\":597,\"./defaults\":598,\"./draw\":599}],601:[function(t,e,r){\"use strict\";e.exports=t(\"world-calendars/dist/main\"),t(\"world-calendars/dist/plus\"),t(\"world-calendars/dist/calendars/chinese\"),t(\"world-calendars/dist/calendars/coptic\"),t(\"world-calendars/dist/calendars/discworld\"),t(\"world-calendars/dist/calendars/ethiopian\"),t(\"world-calendars/dist/calendars/hebrew\"),t(\"world-calendars/dist/calendars/islamic\"),t(\"world-calendars/dist/calendars/julian\"),t(\"world-calendars/dist/calendars/mayan\"),t(\"world-calendars/dist/calendars/nanakshahi\"),t(\"world-calendars/dist/calendars/nepali\"),t(\"world-calendars/dist/calendars/persian\"),t(\"world-calendars/dist/calendars/taiwan\"),t(\"world-calendars/dist/calendars/thai\"),t(\"world-calendars/dist/calendars/ummalqura\")},{\"world-calendars/dist/calendars/chinese\":567,\"world-calendars/dist/calendars/coptic\":568,\"world-calendars/dist/calendars/discworld\":569,\"world-calendars/dist/calendars/ethiopian\":570,\"world-calendars/dist/calendars/hebrew\":571,\"world-calendars/dist/calendars/islamic\":572,\"world-calendars/dist/calendars/julian\":573,\"world-calendars/dist/calendars/mayan\":574,\"world-calendars/dist/calendars/nanakshahi\":575,\"world-calendars/dist/calendars/nepali\":576,\"world-calendars/dist/calendars/persian\":577,\"world-calendars/dist/calendars/taiwan\":578,\"world-calendars/dist/calendars/thai\":579,\"world-calendars/dist/calendars/ummalqura\":580,\"world-calendars/dist/main\":581,\"world-calendars/dist/plus\":582}],602:[function(t,e,r){\"use strict\";function n(t,e,r){for(var n,a,o,s,l,u=Math.floor((e+.05)/h)+c,f=i(r).fromJD(u),d=0;-1!==(d=t.indexOf(\"%\",d));)n=t.charAt(d+1),\"0\"===n||\"-\"===n||\"_\"===n?(o=3,a=t.charAt(d+2),\"_\"===n&&(n=\"-\")):(a=n,n=\"0\",o=2),s=b[a],s?(l=s===y?y:f.formatDate(s[n]),t=t.substr(0,d)+l+t.substr(d+o),d+=l.length):d+=o;return t}function i(t){var e=x[t];return e||(e=x[t]=s.instance(t))}function a(t){return l.extendFlat({},f,{description:t})}function o(t){return\"Sets the calendar system to use with `\"+t+\"` date data.\"}var s=t(\"./calendars\"),l=t(\"../../lib\"),u=t(\"../../constants/numerical\"),c=u.EPOCHJD,h=u.ONEDAY,f={valType:\"enumerated\",values:Object.keys(s.calendars),editType:\"calc\",dflt:\"gregorian\"},d=function(t,e,r,n){var i={};return i[r]=f,l.coerce(t,e,i,r,n)},p=function(t,e,r,n){for(var i=0;i<r.length;i++)d(t,e,r[i]+\"calendar\",n.calendar)},m={chinese:\"2000-01-01\",coptic:\"2000-01-01\",discworld:\"2000-01-01\",ethiopian:\"2000-01-01\",hebrew:\"5000-01-01\",islamic:\"1000-01-01\",julian:\"2000-01-01\",mayan:\"5000-01-01\",nanakshahi:\"1000-01-01\",nepali:\"2000-01-01\",persian:\"1000-01-01\",jalali:\"1000-01-01\",taiwan:\"1000-01-01\",thai:\"2000-01-01\",ummalqura:\"1400-01-01\"},v={chinese:\"2000-01-02\",coptic:\"2000-01-03\",discworld:\"2000-01-03\",ethiopian:\"2000-01-05\",hebrew:\"5000-01-01\",islamic:\"1000-01-02\",julian:\"2000-01-03\",mayan:\"5000-01-01\",nanakshahi:\"1000-01-05\",nepali:\"2000-01-05\",persian:\"1000-01-01\",jalali:\"1000-01-01\",taiwan:\"1000-01-04\",thai:\"2000-01-04\",ummalqura:\"1400-01-06\"},g={chinese:[\"2000-01-01\",\"2001-01-01\"],coptic:[\"1700-01-01\",\"1701-01-01\"],discworld:[\"1800-01-01\",\"1801-01-01\"],ethiopian:[\"2000-01-01\",\"2001-01-01\"],hebrew:[\"5700-01-01\",\"5701-01-01\"],islamic:[\"1400-01-01\",\"1401-01-01\"],julian:[\"2000-01-01\",\"2001-01-01\"],mayan:[\"5200-01-01\",\"5201-01-01\"],nanakshahi:[\"0500-01-01\",\"0501-01-01\"],nepali:[\"2000-01-01\",\"2001-01-01\"],persian:[\"1400-01-01\",\"1401-01-01\"],jalali:[\"1400-01-01\",\"1401-01-01\"],taiwan:[\"0100-01-01\",\"0101-01-01\"],thai:[\"2500-01-01\",\"2501-01-01\"],ummalqura:[\"1400-01-01\",\"1401-01-01\"]},y=\"##\",b={d:{0:\"dd\",\"-\":\"d\"},e:{0:\"d\",\"-\":\"d\"},a:{0:\"D\",\"-\":\"D\"},A:{0:\"DD\",\"-\":\"DD\"},j:{0:\"oo\",\"-\":\"o\"},W:{0:\"ww\",\"-\":\"w\"},m:{0:\"mm\",\"-\":\"m\"},b:{0:\"M\",\"-\":\"M\"},B:{0:\"MM\",\"-\":\"MM\"},y:{0:\"yy\",\"-\":\"yy\"},Y:{0:\"yyyy\",\"-\":\"yyyy\"},U:y,w:y,c:{0:\"D M d %X yyyy\",\"-\":\"D M d %X yyyy\"},x:{0:\"mm/dd/yyyy\",\"-\":\"mm/dd/yyyy\"}},x={},_={xcalendar:a(o(\"x\"))},w=l.extendFlat({},_,{ycalendar:a(o(\"y\"))}),M=l.extendFlat({},w,{zcalendar:a(o(\"z\"))}),k=a([\"Sets the calendar system to use for `range` and `tick0`\",\"if this is a date axis. This does not set the calendar for\",\"interpreting data on this axis, that's specified in the trace\",\"or via the global `layout.calendar`\"].join(\" \"));e.exports={moduleType:\"component\",name:\"calendars\",schema:{traces:{scatter:w,bar:w,box:w,heatmap:w,contour:w,histogram:w,histogram2d:w,histogram2dcontour:w,scatter3d:M,surface:M,mesh3d:M,scattergl:w,ohlc:_,candlestick:_},layout:{calendar:a([\"Sets the default calendar system to use for interpreting and\",\"displaying dates throughout the plot.\"].join(\" \"))},subplots:{xaxis:{calendar:k},yaxis:{calendar:k},scene:{xaxis:{calendar:k},yaxis:{calendar:k},zaxis:{calendar:k}}},transforms:{filter:{valuecalendar:a([\"Sets the calendar system to use for `value`, if it is a date.\"].join(\" \")),targetcalendar:a([\"Sets the calendar system to use for `target`, if it is an\",\"array of dates. If `target` is a string (eg *x*) we use the\",\"corresponding trace attribute (eg `xcalendar`) if it exists,\",\"even if `targetcalendar` is provided.\"].join(\" \"))}}},layoutAttributes:f,handleDefaults:d,handleTraceDefaults:p,CANONICAL_SUNDAY:v,CANONICAL_TICK:m,DFLTRANGE:g,getCal:i,worldCalFmt:n}},{\"../../constants/numerical\":707,\"../../lib\":728,\"./calendars\":601}],603:[function(t,e,r){\"use strict\";r.defaults=[\"#1f77b4\",\"#ff7f0e\",\"#2ca02c\",\"#d62728\",\"#9467bd\",\"#8c564b\",\"#e377c2\",\"#7f7f7f\",\"#bcbd22\",\"#17becf\"],r.defaultLine=\"#444\",r.lightLine=\"#eee\",r.background=\"#fff\",r.borderLine=\"#BEC8D9\",r.lightFraction=1e3/11},{}],604:[function(t,e,r){\"use strict\";function n(t){if(a(t)||\"string\"!=typeof t)return t;var e=t.trim();if(\"rgb\"!==e.substr(0,3))return t;var r=e.match(/^rgba?\\s*\\(([^()]*)\\)$/);if(!r)return t;var n=r[1].trim().split(/\\s*[\\s,]\\s*/),i=\"a\"===e.charAt(3)&&4===n.length;if(!i&&3!==n.length)return t;for(var o=0;o<n.length;o++){if(!n[o].length)return t;if(n[o]=Number(n[o]),!(n[o]>=0))return t;if(3===o)n[o]>1&&(n[o]=1);else if(n[o]>=1)return t}var s=Math.round(255*n[0])+\", \"+Math.round(255*n[1])+\", \"+Math.round(255*n[2]);return i?\"rgba(\"+s+\", \"+n[3]+\")\":\"rgb(\"+s+\")\"}var i=t(\"tinycolor2\"),a=t(\"fast-isnumeric\"),o=e.exports={},s=t(\"./attributes\");o.defaults=s.defaults;var l=o.defaultLine=s.defaultLine;o.lightLine=s.lightLine;var u=o.background=s.background;o.tinyRGB=function(t){var e=t.toRgb();return\"rgb(\"+Math.round(e.r)+\", \"+Math.round(e.g)+\", \"+Math.round(e.b)+\")\"},o.rgb=function(t){return o.tinyRGB(i(t))},o.opacity=function(t){return t?i(t).getAlpha():0},o.addOpacity=function(t,e){var r=i(t).toRgb();return\"rgba(\"+Math.round(r.r)+\", \"+Math.round(r.g)+\", \"+Math.round(r.b)+\", \"+e+\")\"},o.combine=function(t,e){var r=i(t).toRgb();if(1===r.a)return i(t).toRgbString();var n=i(e||u).toRgb(),a=1===n.a?n:{r:255*(1-n.a)+n.r*n.a,g:255*(1-n.a)+n.g*n.a,b:255*(1-n.a)+n.b*n.a},o={r:a.r*(1-r.a)+r.r*r.a,g:a.g*(1-r.a)+r.g*r.a,b:a.b*(1-r.a)+r.b*r.a};return i(o).toRgbString()},o.contrast=function(t,e,r){var n=i(t);return 1!==n.getAlpha()&&(n=i(o.combine(t,u))),(n.isDark()?e?n.lighten(e):u:r?n.darken(r):l).toString()},o.stroke=function(t,e){var r=i(e);t.style({stroke:o.tinyRGB(r),\"stroke-opacity\":r.getAlpha()})},o.fill=function(t,e){var r=i(e);t.style({fill:o.tinyRGB(r),\"fill-opacity\":r.getAlpha()})},o.clean=function(t){if(t&&\"object\"==typeof t){var e,r,i,a,s=Object.keys(t);for(e=0;e<s.length;e++)if(i=s[e],a=t[i],\"color\"===i.substr(i.length-5))if(Array.isArray(a))for(r=0;r<a.length;r++)a[r]=n(a[r]);else t[i]=n(a);else if(\"colorscale\"===i.substr(i.length-10)&&Array.isArray(a))for(r=0;r<a.length;r++)Array.isArray(a[r])&&(a[r][1]=n(a[r][1]));else if(Array.isArray(a)){var l=a[0];if(!Array.isArray(l)&&l&&\"object\"==typeof l)for(r=0;r<a.length;r++)o.clean(a[r])}else a&&\"object\"==typeof a&&o.clean(a)}}},{\"./attributes\":603,\"fast-isnumeric\":131,tinycolor2:534}],605:[function(t,e,r){\"use strict\";var n=t(\"../../plots/cartesian/layout_attributes\"),i=t(\"../../plots/font_attributes\"),a=t(\"../../lib/extend\").extendFlat,o=t(\"../../plot_api/edit_types\").overrideAll;e.exports=o({thicknessmode:{valType:\"enumerated\",values:[\"fraction\",\"pixels\"],dflt:\"pixels\"},thickness:{valType:\"number\",min:0,dflt:30},lenmode:{valType:\"enumerated\",values:[\"fraction\",\"pixels\"],dflt:\"fraction\"},len:{valType:\"number\",min:0,dflt:1},x:{valType:\"number\",dflt:1.02,min:-2,max:3},xanchor:{valType:\"enumerated\",values:[\"left\",\"center\",\"right\"],dflt:\"left\"},xpad:{valType:\"number\",min:0,dflt:10},y:{valType:\"number\",dflt:.5,min:-2,max:3},yanchor:{valType:\"enumerated\",values:[\"top\",\"middle\",\"bottom\"],dflt:\"middle\"},ypad:{valType:\"number\",min:0,dflt:10},outlinecolor:n.linecolor,outlinewidth:n.linewidth,bordercolor:n.linecolor,borderwidth:{valType:\"number\",min:0,dflt:0},bgcolor:{valType:\"color\",dflt:\"rgba(0,0,0,0)\"},tickmode:n.tickmode,nticks:n.nticks,tick0:n.tick0,dtick:n.dtick,tickvals:n.tickvals,ticktext:n.ticktext,ticks:a({},n.ticks,{dflt:\"\"}),ticklen:n.ticklen,tickwidth:n.tickwidth,tickcolor:n.tickcolor,showticklabels:n.showticklabels,tickfont:i({}),tickangle:n.tickangle,tickformat:n.tickformat,tickprefix:n.tickprefix,showtickprefix:n.showtickprefix,ticksuffix:n.ticksuffix,showticksuffix:n.showticksuffix,separatethousands:n.separatethousands,exponentformat:n.exponentformat,showexponent:n.showexponent,title:{valType:\"string\",dflt:\"Click to enter colorscale title\"},titlefont:i({}),titleside:{valType:\"enumerated\",values:[\"right\",\"top\",\"bottom\"],dflt:\"top\"}},\"colorbars\",\"from-root\")},{\"../../lib/extend\":717,\"../../plot_api/edit_types\":756,\"../../plots/cartesian/layout_attributes\":783,\"../../plots/font_attributes\":796}],606:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../plots/cartesian/tick_value_defaults\"),a=t(\"../../plots/cartesian/tick_mark_defaults\"),o=t(\"../../plots/cartesian/tick_label_defaults\"),s=t(\"./attributes\");e.exports=function(t,e,r){function l(t,e){return n.coerce(c,u,s,t,e)}var u=e.colorbar={},c=t.colorbar||{};l(\"thickness\",\"fraction\"===l(\"thicknessmode\")?30/(r.width-r.margin.l-r.margin.r):30),l(\"len\",\"fraction\"===l(\"lenmode\")?1:r.height-r.margin.t-r.margin.b),l(\"x\"),l(\"xanchor\"),l(\"xpad\"),l(\"y\"),l(\"yanchor\"),l(\"ypad\"),n.noneOrAll(c,u,[\"x\",\"y\"]),l(\"outlinecolor\"),l(\"outlinewidth\"),l(\"bordercolor\"),l(\"borderwidth\"),l(\"bgcolor\"),i(c,u,l,\"linear\"),o(c,u,l,\"linear\",{outerTicks:!1,font:r.font,noHover:!0}),a(c,u,l,\"linear\",{outerTicks:!1,font:r.font,noHover:!0}),l(\"title\"),n.coerceFont(l,\"titlefont\",r.font),l(\"titleside\")}},{\"../../lib\":728,\"../../plots/cartesian/tick_label_defaults\":790,\"../../plots/cartesian/tick_mark_defaults\":791,\"../../plots/cartesian/tick_value_defaults\":792,\"./attributes\":605}],607:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"tinycolor2\"),a=t(\"../../plotly\"),o=t(\"../../plots/plots\"),s=t(\"../../registry\"),l=t(\"../../plots/cartesian/axes\"),u=t(\"../dragelement\"),c=t(\"../../lib\"),h=t(\"../../lib/extend\").extendFlat,f=t(\"../../lib/setcursor\"),d=t(\"../drawing\"),p=t(\"../color\"),m=t(\"../titles\"),v=t(\"../../lib/svg_text_utils\"),g=t(\"../../constants/alignment\").LINE_SPACING,y=t(\"../../plots/cartesian/axis_defaults\"),b=t(\"../../plots/cartesian/position_defaults\"),x=t(\"../../plots/cartesian/layout_attributes\"),_=t(\"./attributes\");e.exports=function(t,e){function r(){function _(t,e){return c.coerce(et,rt,x,t,e)}function k(){if(-1!==[\"top\",\"bottom\"].indexOf(M.titleside)){var e=lt.select(\".cbtitle\"),r=e.select(\"text\"),a=[-M.outlinewidth/2,M.outlinewidth/2],o=e.select(\".h\"+rt._id+\"title-math-group\").node(),s=15.6;if(r.node()&&(s=parseInt(r.node().style.fontSize,10)*g),o?(ct=d.bBox(o).height)>s&&(a[1]-=(ct-s)/2):r.node()&&!r.classed(\"js-placeholder\")&&(ct=d.bBox(r.node()).height),ct){if(ct+=5,\"top\"===M.titleside)rt.domain[1]-=ct/E.h,a[1]*=-1;else{rt.domain[0]+=ct/E.h;var u=v.lineCount(r);a[1]+=(1-u)*s}e.attr(\"transform\",\"translate(\"+a+\")\"),rt.setScale()}}lt.selectAll(\".cbfills,.cblines,.cbaxis\").attr(\"transform\",\"translate(0,\"+Math.round(E.h*(1-rt.domain[1]))+\")\");var h=lt.select(\".cbfills\").selectAll(\"rect.cbfill\").data(D);h.enter().append(\"rect\").classed(\"cbfill\",!0).style(\"stroke\",\"none\"),h.exit().remove(),h.each(function(t,e){var r=[0===e?I[0]:(D[e]+D[e-1])/2,e===D.length-1?I[1]:(D[e]+D[e+1])/2].map(rt.c2p).map(Math.round);e!==D.length-1&&(r[1]+=r[1]>r[0]?1:-1);var a=O(t).replace(\"e-\",\"\"),o=i(a).toHexString();n.select(this).attr({x:J,width:Math.max(H,2),y:n.min(r),height:Math.max(n.max(r)-n.min(r),2),fill:o})});var f=lt.select(\".cblines\").selectAll(\"path.cbline\").data(M.line.color&&M.line.width?z:[]);return f.enter().append(\"path\").classed(\"cbline\",!0),f.exit().remove(),f.each(function(t){n.select(this).attr(\"d\",\"M\"+J+\",\"+(Math.round(rt.c2p(t))+M.line.width/2%1)+\"h\"+H).call(d.lineGroupStyle,M.line.width,P(t),M.line.dash)}),rt._axislayer.selectAll(\"g.\"+rt._id+\"tick,path\").remove(),rt._pos=J+H+(M.outlinewidth||0)/2-(\"outside\"===M.ticks?1:0),rt.side=\"right\",c.syncOrAsync([function(){return l.doTicks(t,rt,!0)},function(){if(-1===[\"top\",\"bottom\"].indexOf(M.titleside)){var e=rt.titlefont.size,r=rt._offset+rt._length/2,i=E.l+(rt.position||0)*E.w+(\"right\"===rt.side?10+e*(rt.showticklabels?1:.5):-10-e*(rt.showticklabels?.5:0));A(\"h\"+rt._id+\"title\",{avoid:{selection:n.select(t).selectAll(\"g.\"+rt._id+\"tick\"),side:M.titleside,offsetLeft:E.l,offsetTop:E.t,maxShift:S.width},attributes:{x:i,y:r,\"text-anchor\":\"middle\"},transform:{rotate:\"-90\",offset:0}})}}])}function A(e,r){var n,i=w();n=s.traceIs(i,\"markerColorscale\")?\"marker.colorbar.title\":\"colorbar.title\";var a={propContainer:rt,propName:n,traceIndex:i.index,dfltName:\"colorscale\",containerGroup:lt.select(\".cbtitle\")},o=\"h\"===e.charAt(0)?e.substr(1):\"h\"+e;lt.selectAll(\".\"+o+\",.\"+o+\"-math-group\").remove(),m.draw(t,e,h(a,r||{}))}function T(){var r=H+M.outlinewidth/2+d.bBox(rt._axislayer.node()).width;if(B=ut.select(\"text\"),B.node()&&!B.classed(\"js-placeholder\")){var n,i=ut.select(\".h\"+rt._id+\"title-math-group\").node();n=i&&-1!==[\"top\",\"bottom\"].indexOf(M.titleside)?d.bBox(i).width:d.bBox(ut.node()).right-J-E.l,r=Math.max(r,n)}var a=2*M.xpad+r+M.borderwidth+M.outlinewidth/2,s=$-tt;lt.select(\".cbbg\").attr({x:J-M.xpad-(M.borderwidth+M.outlinewidth)/2,y:tt-X,width:Math.max(a,2),height:Math.max(s+2*X,2)}).call(p.fill,M.bgcolor).call(p.stroke,M.bordercolor).style({\"stroke-width\":M.borderwidth}),lt.selectAll(\".cboutline\").attr({x:J,y:tt+M.ypad+(\"top\"===M.titleside?ct:0),width:Math.max(H,2),height:Math.max(s-2*M.ypad-ct,2)}).call(p.stroke,M.outlinecolor).style({fill:\"None\",\"stroke-width\":M.outlinewidth});var l=({center:.5,right:1}[M.xanchor]||0)*a;lt.attr(\"transform\",\"translate(\"+(E.l-l)+\",\"+E.t+\")\"),o.autoMargin(t,e,{x:M.x,y:M.y,l:a*({right:1,center:.5}[M.xanchor]||0),r:a*({left:1,center:.5}[M.xanchor]||0),t:s*({bottom:1,middle:.5}[M.yanchor]||0),b:s*({top:1,middle:.5}[M.yanchor]||0)})}var S=t._fullLayout,E=S._size;if(\"function\"!=typeof M.fillcolor&&\"function\"!=typeof M.line.color)return void S._infolayer.selectAll(\"g.\"+e).remove();var L,C,I=n.extent((\"function\"==typeof M.fillcolor?M.fillcolor:M.line.color).domain()),z=[],D=[],P=\"function\"==typeof M.line.color?M.line.color:function(){return M.line.color},O=\"function\"==typeof M.fillcolor?M.fillcolor:function(){return M.fillcolor},R=M.levels.end+M.levels.size/100,F=M.levels.size,j=1.001*I[0]-.001*I[1],N=1.001*I[1]-.001*I[0];for(C=0;C<1e5&&(L=M.levels.start+C*F,!(F>0?L>=R:L<=R));C++)L>j&&L<N&&z.push(L);if(\"function\"==typeof M.fillcolor)if(M.filllevels)for(R=M.filllevels.end+M.filllevels.size/100,F=M.filllevels.size,C=0;C<1e5&&(L=M.filllevels.start+C*F,!(F>0?L>=R:L<=R));C++)L>I[0]&&L<I[1]&&D.push(L);else D=z.map(function(t){return t-M.levels.size/2}),D.push(D[D.length-1]+M.levels.size);else M.fillcolor&&\"string\"==typeof M.fillcolor&&(D=[0]);M.levels.size<0&&(z.reverse(),D.reverse());var B,U=S.height-S.margin.t-S.margin.b,V=S.width-S.margin.l-S.margin.r,H=Math.round(M.thickness*(\"fraction\"===M.thicknessmode?V:1)),q=H/E.w,G=Math.round(M.len*(\"fraction\"===M.lenmode?U:1)),Y=G/E.h,W=M.xpad/E.w,X=(M.borderwidth+M.outlinewidth)/2,Z=M.ypad/E.h,J=Math.round(M.x*E.w+M.xpad),K=M.x-q*({middle:.5,right:1}[M.xanchor]||0),Q=M.y+Y*(({top:-.5,bottom:.5}[M.yanchor]||0)-.5),$=Math.round(E.h*(1-Q)),tt=$-G,et={type:\"linear\",range:I,tickmode:M.tickmode,nticks:M.nticks,tick0:M.tick0,dtick:M.dtick,tickvals:M.tickvals,ticktext:M.ticktext,ticks:M.ticks,ticklen:M.ticklen,tickwidth:M.tickwidth,tickcolor:M.tickcolor,showticklabels:M.showticklabels,tickfont:M.tickfont,tickangle:M.tickangle,tickformat:M.tickformat,exponentformat:M.exponentformat,separatethousands:M.separatethousands,showexponent:M.showexponent,showtickprefix:M.showtickprefix,tickprefix:M.tickprefix,showticksuffix:M.showticksuffix,ticksuffix:M.ticksuffix,title:M.title,titlefont:M.titlefont,showline:!0,anchor:\"free\",position:1},rt={type:\"linear\",_id:\"y\"+e},nt={letter:\"y\",font:S.font,noHover:!0,calendar:S.calendar};if(y(et,rt,_,nt,S),b(et,rt,_,nt),rt.position=M.x+W+q,r.axis=rt,-1!==[\"top\",\"bottom\"].indexOf(M.titleside)&&(rt.titleside=M.titleside,rt.titlex=M.x+W,rt.titley=Q+(\"top\"===M.titleside?Y-Z:Z)),M.line.color&&\"auto\"===M.tickmode){rt.tickmode=\"linear\",rt.tick0=M.levels.start;var it=M.levels.size,at=c.constrain(($-tt)/50,4,15)+1,ot=(I[1]-I[0])/((M.nticks||at)*it);if(ot>1){var st=Math.pow(10,Math.floor(Math.log(ot)/Math.LN10));it*=st*c.roundUp(ot/st,[2,5,10]),(Math.abs(M.levels.start)/M.levels.size+1e-6)%1<2e-6&&(rt.tick0=0)}rt.dtick=it}rt.domain=[Q+Z,Q+Y-Z],rt.setScale();var lt=S._infolayer.selectAll(\"g.\"+e).data([0]);lt.enter().append(\"g\").classed(e,!0).each(function(){var t=n.select(this);t.append(\"rect\").classed(\"cbbg\",!0),t.append(\"g\").classed(\"cbfills\",!0),t.append(\"g\").classed(\"cblines\",!0),t.append(\"g\").classed(\"cbaxis\",!0).classed(\"crisp\",!0),t.append(\"g\").classed(\"cbtitleunshift\",!0).append(\"g\").classed(\"cbtitle\",!0),t.append(\"rect\").classed(\"cboutline\",!0),t.select(\".cbtitle\").datum(0)}),lt.attr(\"transform\",\"translate(\"+Math.round(E.l)+\",\"+Math.round(E.t)+\")\");var ut=lt.select(\".cbtitleunshift\").attr(\"transform\",\"translate(-\"+Math.round(E.l)+\",-\"+Math.round(E.t)+\")\");rt._axislayer=lt.select(\".cbaxis\");var ct=0;if(-1!==[\"top\",\"bottom\"].indexOf(M.titleside)){var ht,ft=E.l+(M.x+W)*E.w,dt=rt.titlefont.size;ht=\"top\"===M.titleside?(1-(Q+Y-Z))*E.h+E.t+3+.75*dt:(1-(Q+Z))*E.h+E.t-3-.25*dt,A(rt._id+\"title\",{attributes:{x:ft,y:ht,\"text-anchor\":\"start\"}})}var pt=c.syncOrAsync([o.previousPromises,k,o.previousPromises,T],t);if(pt&&pt.then&&(t._promises||[]).push(pt),t._context.edits.colorbarPosition){var mt,vt,gt;u.init({element:lt.node(),gd:t,prepFn:function(){mt=lt.attr(\"transform\"),f(lt)},moveFn:function(t,e){lt.attr(\"transform\",mt+\" translate(\"+t+\",\"+e+\")\"),vt=u.align(K+t/E.w,q,0,1,M.xanchor),gt=u.align(Q-e/E.h,Y,0,1,M.yanchor);var r=u.getCursor(vt,gt,M.xanchor,M.yanchor);f(lt,r)},doneFn:function(e){f(lt),e&&void 0!==vt&&void 0!==gt&&a.restyle(t,{\"colorbar.x\":vt,\"colorbar.y\":gt},w().index)}})}return pt}function w(){var r,n,i=e.substr(2);for(r=0;r<t._fullData.length;r++)if(n=t._fullData[r],n.uid===i)return n}var M={};return Object.keys(_).forEach(function(t){M[t]=null}),M.fillcolor=null,M.line={color:null,width:null,dash:null},M.levels={start:null,end:null,size:null},M.filllevels=null,Object.keys(M).forEach(function(t){r[t]=function(e){return arguments.length?(M[t]=c.isPlainObject(M[t])?c.extendFlat(M[t],e):e,r):M[t]}}),r.options=function(t){return Object.keys(t).forEach(function(e){\"function\"==typeof r[e]&&r[e](t[e])}),r},r._opts=M,r}},{\"../../constants/alignment\":701,\"../../lib\":728,\"../../lib/extend\":717,\"../../lib/setcursor\":746,\"../../lib/svg_text_utils\":750,\"../../plotly\":767,\"../../plots/cartesian/axes\":772,\"../../plots/cartesian/axis_defaults\":774,\"../../plots/cartesian/layout_attributes\":783,\"../../plots/cartesian/position_defaults\":786,\"../../plots/plots\":831,\"../../registry\":846,\"../color\":604,\"../dragelement\":625,\"../drawing\":628,\"../titles\":694,\"./attributes\":605,d3:122,tinycolor2:534}],608:[function(t,e,r){\"use strict\";var n=t(\"../../lib\");e.exports=function(t){return n.isPlainObject(t.colorbar)}},{\"../../lib\":728}],609:[function(t,e,r){\"use strict\";e.exports={zauto:{valType:\"boolean\",dflt:!0,editType:\"calc\",impliedEdits:{zmin:void 0,zmax:void 0}},zmin:{valType:\"number\",dflt:null,editType:\"plot\",impliedEdits:{zauto:!1}},zmax:{valType:\"number\",dflt:null,editType:\"plot\",impliedEdits:{zauto:!1}},colorscale:{valType:\"colorscale\",editType:\"calc\",impliedEdits:{autocolorscale:!1}},autocolorscale:{valType:\"boolean\",dflt:!0,editType:\"calc\",impliedEdits:{colorscale:void 0}},reversescale:{valType:\"boolean\",dflt:!1,editType:\"calc\"},showscale:{valType:\"boolean\",dflt:!0,editType:\"calc\"}}},{}],610:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"./scales\"),a=t(\"./flip_scale\");e.exports=function(t,e,r,o){var s,l;r?(s=n.nestedProperty(t,r).get(),l=n.nestedProperty(t._input,r).get()):(s=t,l=t._input);var u=o+\"auto\",c=o+\"min\",h=o+\"max\",f=s[u],d=s[c],p=s[h],m=s.colorscale;!1===f&&void 0!==d||(d=n.aggNums(Math.min,null,e)),!1===f&&void 0!==p||(p=n.aggNums(Math.max,null,e)),d===p&&(d-=.5,p+=.5),s[c]=d,s[h]=p,l[c]=d,l[h]=p,l[u]=!1!==f||void 0===d&&void 0===p,s.autocolorscale&&(m=d*p<0?i.RdBu:d>=0?i.Reds:i.Blues,l.colorscale=m,s.reversescale&&(m=a(m)),s.colorscale=m)}},{\"../../lib\":728,\"./flip_scale\":615,\"./scales\":622}],611:[function(t,e,r){\"use strict\";var n=t(\"./attributes\"),i=t(\"../../lib/extend\").extendFlat;t(\"./scales.js\");e.exports=function(t,e,r){return{color:{valType:\"color\",arrayOk:!0,editType:e||\"style\"},colorscale:i({},n.colorscale,{}),cauto:i({},n.zauto,{impliedEdits:{cmin:void 0,cmax:void 0}}),cmax:i({},n.zmax,{editType:e||n.zmax.editType,impliedEdits:{cauto:!1}}),cmin:i({},n.zmin,{editType:e||n.zmin.editType,impliedEdits:{cauto:!1}}),autocolorscale:i({},n.autocolorscale,{dflt:!1===r?r:n.autocolorscale.dflt}),reversescale:i({},n.reversescale,{})}}},{\"../../lib/extend\":717,\"./attributes\":609,\"./scales.js\":622}],612:[function(t,e,r){\"use strict\";var n=t(\"./scales\");e.exports=n.RdBu},{\"./scales\":622}],613:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../../lib\"),a=t(\"../colorbar/has_colorbar\"),o=t(\"../colorbar/defaults\"),s=t(\"./is_valid_scale\"),l=t(\"./flip_scale\");e.exports=function(t,e,r,u,c){var h=c.prefix,f=c.cLetter,d=h.slice(0,h.length-1),p=h?i.nestedProperty(t,d).get()||{}:t,m=h?i.nestedProperty(e,d).get()||{}:e,v=p[f+\"min\"],g=p[f+\"max\"],y=p.colorscale;u(h+f+\"auto\",!(n(v)&&n(g)&&v<g)),u(h+f+\"min\"),u(h+f+\"max\");var b;void 0!==y&&(b=!s(y)),u(h+\"autocolorscale\",b);var x=u(h+\"colorscale\");if(u(h+\"reversescale\")&&(m.colorscale=l(x)),\"marker.line.\"!==h){var _;h&&(_=a(p)),u(h+\"showscale\",_)&&o(p,m,r)}}},{\"../../lib\":728,\"../colorbar/defaults\":606,\"../colorbar/has_colorbar\":608,\"./flip_scale\":615,\"./is_valid_scale\":619,\"fast-isnumeric\":131}],614:[function(t,e,r){\"use strict\";e.exports=function(t,e,r){for(var n=t.length,i=new Array(n),a=new Array(n),o=0;o<n;o++){var s=t[o];i[o]=e+s[0]*(r-e),a[o]=s[1]}return{domain:i,range:a}}},{}],615:[function(t,e,r){\"use strict\";e.exports=function(t){for(var e,r=t.length,n=new Array(r),i=r-1,a=0;i>=0;i--,a++)e=t[i],n[a]=[1-e[0],e[1]];return n}},{}],616:[function(t,e,r){\"use strict\";var n=t(\"./scales\"),i=t(\"./default_scale\"),a=t(\"./is_valid_scale_array\");e.exports=function(t,e){function r(){try{t=n[t]||JSON.parse(t)}catch(r){t=e}}return e||(e=i),t?(\"string\"==typeof t&&(r(),\"string\"==typeof t&&r()),a(t)?t:e):e}},{\"./default_scale\":612,\"./is_valid_scale_array\":620,\"./scales\":622}],617:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../../lib\"),a=t(\"./is_valid_scale\");e.exports=function(t,e){var r=e?i.nestedProperty(t,e).get()||{}:t,o=r.color,s=!1;if(Array.isArray(o))for(var l=0;l<o.length;l++)if(n(o[l])){s=!0;break}return i.isPlainObject(r)&&(s||!0===r.showscale||n(r.cmin)&&n(r.cmax)||a(r.colorscale)||i.isPlainObject(r.colorbar))}},{\"../../lib\":728,\"./is_valid_scale\":619,\"fast-isnumeric\":131}],618:[function(t,e,r){\"use strict\";r.scales=t(\"./scales\"),r.defaultScale=t(\"./default_scale\"),r.attributes=t(\"./attributes\"),r.handleDefaults=t(\"./defaults\"),r.calc=t(\"./calc\"),r.hasColorscale=t(\"./has_colorscale\"),r.isValidScale=t(\"./is_valid_scale\"),r.getScale=t(\"./get_scale\"),r.flipScale=t(\"./flip_scale\"),r.extractScale=t(\"./extract_scale\"),r.makeColorScaleFunc=t(\"./make_color_scale_func\")},{\"./attributes\":609,\"./calc\":610,\"./default_scale\":612,\"./defaults\":613,\"./extract_scale\":614,\"./flip_scale\":615,\"./get_scale\":616,\"./has_colorscale\":617,\"./is_valid_scale\":619,\"./make_color_scale_func\":621,\"./scales\":622}],619:[function(t,e,r){\"use strict\";var n=t(\"./scales\"),i=t(\"./is_valid_scale_array\");e.exports=function(t){return void 0!==n[t]||i(t)}},{\"./is_valid_scale_array\":620,\"./scales\":622}],620:[function(t,e,r){\"use strict\";var n=t(\"tinycolor2\");e.exports=function(t){var e=0;if(!Array.isArray(t)||t.length<2)return!1;if(!t[0]||!t[t.length-1])return!1;if(0!=+t[0][0]||1!=+t[t.length-1][0])return!1;for(var r=0;r<t.length;r++){var i=t[r];if(2!==i.length||+i[0]<e||!n(i[1]).isValid())return!1;e=+i[0]}return!0}},{tinycolor2:534}],621:[function(t,e,r){\"use strict\";function n(t){var e={r:t[0],g:t[1],b:t[2],a:t[3]};return a(e).toRgbString()}var i=t(\"d3\"),a=t(\"tinycolor2\"),o=t(\"fast-isnumeric\"),s=t(\"../color\");e.exports=function(t,e){e=e||{};for(var r=t.domain,l=t.range,u=l.length,c=new Array(u),h=0;h<u;h++){var f=a(l[h]).toRgb();c[h]=[f.r,f.g,f.b,f.a]}var d,p=i.scale.linear().domain(r).range(c).clamp(!0),m=e.noNumericCheck,v=e.returnArray;return d=m&&v?p:m?function(t){return n(p(t))}:v?function(t){return o(t)?p(t):a(t).isValid()?t:s.defaultLine}:function(t){return o(t)?n(p(t)):a(t).isValid()?t:s.defaultLine},d.domain=p.domain,d.range=function(){return l},d}},{\"../color\":604,d3:122,\"fast-isnumeric\":131,tinycolor2:534}],622:[function(t,e,r){\"use strict\";e.exports={Greys:[[0,\"rgb(0,0,0)\"],[1,\"rgb(255,255,255)\"]],YlGnBu:[[0,\"rgb(8,29,88)\"],[.125,\"rgb(37,52,148)\"],[.25,\"rgb(34,94,168)\"],[.375,\"rgb(29,145,192)\"],[.5,\"rgb(65,182,196)\"],[.625,\"rgb(127,205,187)\"],[.75,\"rgb(199,233,180)\"],[.875,\"rgb(237,248,217)\"],[1,\"rgb(255,255,217)\"]],Greens:[[0,\"rgb(0,68,27)\"],[.125,\"rgb(0,109,44)\"],[.25,\"rgb(35,139,69)\"],[.375,\"rgb(65,171,93)\"],[.5,\"rgb(116,196,118)\"],[.625,\"rgb(161,217,155)\"],[.75,\"rgb(199,233,192)\"],[.875,\"rgb(229,245,224)\"],[1,\"rgb(247,252,245)\"]],YlOrRd:[[0,\"rgb(128,0,38)\"],[.125,\"rgb(189,0,38)\"],[.25,\"rgb(227,26,28)\"],[.375,\"rgb(252,78,42)\"],[.5,\"rgb(253,141,60)\"],[.625,\"rgb(254,178,76)\"],[.75,\"rgb(254,217,118)\"],[.875,\"rgb(255,237,160)\"],[1,\"rgb(255,255,204)\"]],Bluered:[[0,\"rgb(0,0,255)\"],[1,\"rgb(255,0,0)\"]],RdBu:[[0,\"rgb(5,10,172)\"],[.35,\"rgb(106,137,247)\"],[.5,\"rgb(190,190,190)\"],[.6,\"rgb(220,170,132)\"],[.7,\"rgb(230,145,90)\"],[1,\"rgb(178,10,28)\"]],Reds:[[0,\"rgb(220,220,220)\"],[.2,\"rgb(245,195,157)\"],[.4,\"rgb(245,160,105)\"],[1,\"rgb(178,10,28)\"]],Blues:[[0,\"rgb(5,10,172)\"],[.35,\"rgb(40,60,190)\"],[.5,\"rgb(70,100,245)\"],[.6,\"rgb(90,120,245)\"],[.7,\"rgb(106,137,247)\"],[1,\"rgb(220,220,220)\"]],Picnic:[[0,\"rgb(0,0,255)\"],[.1,\"rgb(51,153,255)\"],[.2,\"rgb(102,204,255)\"],[.3,\"rgb(153,204,255)\"],[.4,\"rgb(204,204,255)\"],[.5,\"rgb(255,255,255)\"],[.6,\"rgb(255,204,255)\"],[.7,\"rgb(255,153,255)\"],[.8,\"rgb(255,102,204)\"],[.9,\"rgb(255,102,102)\"],[1,\"rgb(255,0,0)\"]],\n", "Rainbow:[[0,\"rgb(150,0,90)\"],[.125,\"rgb(0,0,200)\"],[.25,\"rgb(0,25,255)\"],[.375,\"rgb(0,152,255)\"],[.5,\"rgb(44,255,150)\"],[.625,\"rgb(151,255,0)\"],[.75,\"rgb(255,234,0)\"],[.875,\"rgb(255,111,0)\"],[1,\"rgb(255,0,0)\"]],Portland:[[0,\"rgb(12,51,131)\"],[.25,\"rgb(10,136,186)\"],[.5,\"rgb(242,211,56)\"],[.75,\"rgb(242,143,56)\"],[1,\"rgb(217,30,30)\"]],Jet:[[0,\"rgb(0,0,131)\"],[.125,\"rgb(0,60,170)\"],[.375,\"rgb(5,255,255)\"],[.625,\"rgb(255,255,0)\"],[.875,\"rgb(250,0,0)\"],[1,\"rgb(128,0,0)\"]],Hot:[[0,\"rgb(0,0,0)\"],[.3,\"rgb(230,0,0)\"],[.6,\"rgb(255,210,0)\"],[1,\"rgb(255,255,255)\"]],Blackbody:[[0,\"rgb(0,0,0)\"],[.2,\"rgb(230,0,0)\"],[.4,\"rgb(230,210,0)\"],[.7,\"rgb(255,255,255)\"],[1,\"rgb(160,200,255)\"]],Earth:[[0,\"rgb(0,0,130)\"],[.1,\"rgb(0,180,180)\"],[.2,\"rgb(40,210,40)\"],[.4,\"rgb(230,230,50)\"],[.6,\"rgb(120,70,20)\"],[1,\"rgb(255,255,255)\"]],Electric:[[0,\"rgb(0,0,0)\"],[.15,\"rgb(30,0,100)\"],[.4,\"rgb(120,0,100)\"],[.6,\"rgb(160,90,0)\"],[.8,\"rgb(230,200,0)\"],[1,\"rgb(255,250,220)\"]],Viridis:[[0,\"#440154\"],[.06274509803921569,\"#48186a\"],[.12549019607843137,\"#472d7b\"],[.18823529411764706,\"#424086\"],[.25098039215686274,\"#3b528b\"],[.3137254901960784,\"#33638d\"],[.3764705882352941,\"#2c728e\"],[.4392156862745098,\"#26828e\"],[.5019607843137255,\"#21918c\"],[.5647058823529412,\"#1fa088\"],[.6274509803921569,\"#28ae80\"],[.6901960784313725,\"#3fbc73\"],[.7529411764705882,\"#5ec962\"],[.8156862745098039,\"#84d44b\"],[.8784313725490196,\"#addc30\"],[.9411764705882353,\"#d8e219\"],[1,\"#fde725\"]]}},{}],623:[function(t,e,r){\"use strict\";e.exports=function(t,e,r,n,i){var a=(t-r)/(n-r),o=a+e/(n-r),s=(a+o)/2;return\"left\"===i||\"bottom\"===i?a:\"center\"===i||\"middle\"===i?s:\"right\"===i||\"top\"===i?o:a<2/3-s?a:o>4/3-s?o:s}},{}],624:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=[[\"sw-resize\",\"s-resize\",\"se-resize\"],[\"w-resize\",\"move\",\"e-resize\"],[\"nw-resize\",\"n-resize\",\"ne-resize\"]];e.exports=function(t,e,r,a){return t=\"left\"===r?0:\"center\"===r?1:\"right\"===r?2:n.constrain(Math.floor(3*t),0,2),e=\"bottom\"===a?0:\"middle\"===a?1:\"top\"===a?2:n.constrain(Math.floor(3*e),0,2),i[e][t]}},{\"../../lib\":728}],625:[function(t,e,r){\"use strict\";function n(){var t=document.createElement(\"div\");t.className=\"dragcover\";var e=t.style;return e.position=\"fixed\",e.left=0,e.right=0,e.top=0,e.bottom=0,e.zIndex=999999999,e.background=\"none\",document.body.appendChild(t),t}function i(t){t._dragging=!1,t._replotPending&&l.plot(t)}function a(t){return o(t.changedTouches?t.changedTouches[0]:t,document.body)}var o=t(\"mouse-event-offset\"),s=t(\"has-hover\"),l=t(\"../../plotly\"),u=t(\"../../lib\"),c=t(\"../../plots/cartesian/constants\"),h=t(\"../../constants/interactions\"),f=e.exports={};f.align=t(\"./align\"),f.getCursor=t(\"./cursor\");var d=t(\"./unhover\");f.unhover=d.wrapped,f.unhoverRaw=d.raw,f.init=function(t){function e(e){y._dragged=!1,y._dragging=!0;var i=a(e);return l=i[0],d=i[1],g=e.target,p=(new Date).getTime(),p-y._mouseDownTime<x?b+=1:(b=1,y._mouseDownTime=p),t.prepFn&&t.prepFn(e,l,d),s?(v=n(),v.style.cursor=window.getComputedStyle(t.element).cursor):(v=document,m=window.getComputedStyle(document.documentElement).cursor,document.documentElement.style.cursor=window.getComputedStyle(t.element).cursor),v.addEventListener(\"mousemove\",r),v.addEventListener(\"mouseup\",o),v.addEventListener(\"mouseout\",o),v.addEventListener(\"touchmove\",r),v.addEventListener(\"touchend\",o),u.pauseEvent(e)}function r(e){var r=a(e),n=r[0]-l,i=r[1]-d,o=t.minDrag||c.MINDRAG;return Math.abs(n)<o&&(n=0),Math.abs(i)<o&&(i=0),(n||i)&&(y._dragged=!0,f.unhover(y)),t.moveFn&&t.moveFn(n,i,y._dragged),u.pauseEvent(e)}function o(e){if(v.removeEventListener(\"mousemove\",r),v.removeEventListener(\"mouseup\",o),v.removeEventListener(\"mouseout\",o),v.removeEventListener(\"touchmove\",r),v.removeEventListener(\"touchend\",o),s?u.removeElement(v):m&&(v.documentElement.style.cursor=m,m=null),!y._dragging)return void(y._dragged=!1);if(y._dragging=!1,(new Date).getTime()-y._mouseDownTime>x&&(b=Math.max(b-1,1)),t.doneFn&&t.doneFn(y._dragged,b,e),!y._dragged){var n;try{n=new MouseEvent(\"click\",e)}catch(t){var l=a(e);n=document.createEvent(\"MouseEvents\"),n.initMouseEvent(\"click\",e.bubbles,e.cancelable,e.view,e.detail,e.screenX,e.screenY,l[0],l[1],e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,e.button,e.relatedTarget)}g.dispatchEvent(n)}return i(y),y._dragged=!1,u.pauseEvent(e)}var l,d,p,m,v,g,y=t.gd,b=1,x=h.DBLCLICKDELAY;y._mouseDownTime||(y._mouseDownTime=0),t.element.style.pointerEvents=\"all\",t.element.onmousedown=e,t.element.ontouchstart=e},f.coverSlip=n},{\"../../constants/interactions\":706,\"../../lib\":728,\"../../plotly\":767,\"../../plots/cartesian/constants\":777,\"./align\":623,\"./cursor\":624,\"./unhover\":626,\"has-hover\":288,\"mouse-event-offset\":453}],626:[function(t,e,r){\"use strict\";var n=t(\"../../lib/events\"),i=t(\"../../lib/throttle\"),a=t(\"../../lib/get_graph_div\"),o=t(\"../fx/constants\"),s=e.exports={};s.wrapped=function(t,e,r){t=a(t),i.clear(t._fullLayout._uid+o.HOVERID),s.raw(t,e,r)},s.raw=function(t,e){var r=t._fullLayout,i=t._hoverdata;e||(e={}),e.target&&!1===n.triggerHandler(t,\"plotly_beforehover\",e)||(r._hoverlayer.selectAll(\"g\").remove(),r._hoverlayer.selectAll(\"line\").remove(),r._hoverlayer.selectAll(\"circle\").remove(),t._hoverdata=void 0,e.target&&i&&t.emit(\"plotly_unhover\",{event:e,points:i}))}},{\"../../lib/events\":716,\"../../lib/get_graph_div\":723,\"../../lib/throttle\":751,\"../fx/constants\":640}],627:[function(t,e,r){\"use strict\";r.dash={valType:\"string\",values:[\"solid\",\"dot\",\"dash\",\"longdash\",\"dashdot\",\"longdashdot\"],dflt:\"solid\",editType:\"style\"}},{}],628:[function(t,e,r){\"use strict\";function n(t,e,r,n,i,a,o,s){if(u.traceIs(r,\"symbols\")){var l=y(r);e.attr(\"d\",function(t){var e;e=\"various\"===t.ms||\"various\"===a.size?3:g.isBubble(r)?l(t.ms):(a.size||6)/2,t.mrc=e;var n=b.symbolNumber(t.mx||a.symbol)||0,i=n%100;return t.om=n%200>=100,b.symbolFuncs[i](e)+(n>=200?w:\"\")}).style(\"opacity\",function(t){return(t.mo+1||a.opacity+1)-1})}var h,f,d,p=!1;if(t.so?(d=o.outlierwidth,f=o.outliercolor,h=a.outliercolor):(d=(t.mlw+1||o.width+1||(t.trace?t.trace.marker.line.width:0)+1)-1,f=\"mlc\"in t?t.mlcc=i(t.mlc):Array.isArray(o.color)?c.defaultLine:o.color,Array.isArray(a.color)&&(h=c.defaultLine,p=!0),h=\"mc\"in t?t.mcc=n(t.mc):a.color||\"rgba(0,0,0,0)\"),t.om)e.call(c.stroke,h).style({\"stroke-width\":(d||1)+\"px\",fill:\"none\"});else{e.style(\"stroke-width\",d+\"px\");var m=a.gradient,v=t.mgt;if(v?p=!0:v=m&&m.type,v&&\"none\"!==v){var x=t.mgc;x?p=!0:x=m.color;var _=\"g\"+s._fullLayout._uid+\"-\"+r.uid;p&&(_+=\"-\"+t.i),e.call(b.gradient,s,_,v,h,x)}else e.call(c.fill,h);d&&e.call(c.stroke,f)}}function i(t,e,r,n){var i=t[0]-e[0],a=t[1]-e[1],s=r[0]-e[0],l=r[1]-e[1],u=Math.pow(i*i+a*a,T/2),c=Math.pow(s*s+l*l,T/2),h=(c*c*i-u*u*s)*n,f=(c*c*a-u*u*l)*n,d=3*c*(u+c),p=3*u*(u+c);return[[o.round(e[0]+(d&&h/d),2),o.round(e[1]+(d&&f/d),2)],[o.round(e[0]-(p&&h/p),2),o.round(e[1]-(p&&f/p),2)]]}function a(t){var e=t.getAttribute(\"data-unformatted\");if(null!==e)return e+t.getAttribute(\"data-math\")+t.getAttribute(\"text-anchor\")+t.getAttribute(\"style\")}var o=t(\"d3\"),s=t(\"fast-isnumeric\"),l=t(\"tinycolor2\"),u=t(\"../../registry\"),c=t(\"../color\"),h=t(\"../colorscale\"),f=t(\"../../lib\"),d=t(\"../../lib/svg_text_utils\"),p=t(\"../../constants/xmlns_namespaces\"),m=t(\"../../constants/alignment\"),v=m.LINE_SPACING,g=t(\"../../traces/scatter/subtypes\"),y=t(\"../../traces/scatter/make_bubble_size_func\"),b=e.exports={};b.font=function(t,e,r,n){f.isPlainObject(e)&&(n=e.color,r=e.size,e=e.family),e&&t.style(\"font-family\",e),r+1&&t.style(\"font-size\",r+\"px\"),n&&t.call(c.fill,n)},b.setPosition=function(t,e,r){t.attr(\"x\",e).attr(\"y\",r)},b.setSize=function(t,e,r){t.attr(\"width\",e).attr(\"height\",r)},b.setRect=function(t,e,r,n,i){t.call(b.setPosition,e,r).call(b.setSize,n,i)},b.translatePoint=function(t,e,r,n){var i=r.c2p(t.x),a=n.c2p(t.y);return!!(s(i)&&s(a)&&e.node())&&(\"text\"===e.node().nodeName?e.attr(\"x\",i).attr(\"y\",a):e.attr(\"transform\",\"translate(\"+i+\",\"+a+\")\"),!0)},b.translatePoints=function(t,e,r){t.each(function(t){var n=o.select(this);b.translatePoint(t,n,e,r)})},b.hideOutsideRangePoint=function(t,e,r,n){e.attr(\"display\",r.isPtWithinRange(t)&&n.isPtWithinRange(t)?null:\"none\")},b.hideOutsideRangePoints=function(t,e){if(e._hasClipOnAxisFalse){var r=e.xaxis,n=e.yaxis;t.each(function(t){b.hideOutsideRangePoint(t,o.select(this),r,n)})}},b.crispRound=function(t,e,r){return e&&s(e)?t._context.staticPlot?e:e<1?1:Math.round(e):r||0},b.singleLineStyle=function(t,e,r,n,i){e.style(\"fill\",\"none\");var a=(((t||[])[0]||{}).trace||{}).line||{},o=r||a.width||0,s=i||a.dash||\"\";c.stroke(e,n||a.color),b.dashLine(e,s,o)},b.lineGroupStyle=function(t,e,r,n){t.style(\"fill\",\"none\").each(function(t){var i=(((t||[])[0]||{}).trace||{}).line||{},a=e||i.width||0,s=n||i.dash||\"\";o.select(this).call(c.stroke,r||i.color).call(b.dashLine,s,a)})},b.dashLine=function(t,e,r){r=+r||0,e=b.dashStyle(e,r),t.style({\"stroke-dasharray\":e,\"stroke-width\":r+\"px\"})},b.dashStyle=function(t,e){e=+e||1;var r=Math.max(e,3);return\"solid\"===t?t=\"\":\"dot\"===t?t=r+\"px,\"+r+\"px\":\"dash\"===t?t=3*r+\"px,\"+3*r+\"px\":\"longdash\"===t?t=5*r+\"px,\"+5*r+\"px\":\"dashdot\"===t?t=3*r+\"px,\"+r+\"px,\"+r+\"px,\"+r+\"px\":\"longdashdot\"===t&&(t=5*r+\"px,\"+2*r+\"px,\"+r+\"px,\"+2*r+\"px\"),t},b.singleFillStyle=function(t){var e=o.select(t.node()),r=e.data(),n=(((r[0]||[])[0]||{}).trace||{}).fillcolor;n&&t.call(c.fill,n)},b.fillGroupStyle=function(t){t.style(\"stroke-width\",0).each(function(e){var r=o.select(this);try{r.call(c.fill,e[0].trace.fillcolor)}catch(e){f.error(e,t),r.remove()}})};var x=t(\"./symbol_defs\");b.symbolNames=[],b.symbolFuncs=[],b.symbolNeedLines={},b.symbolNoDot={},b.symbolList=[],Object.keys(x).forEach(function(t){var e=x[t];b.symbolList=b.symbolList.concat([e.n,t,e.n+100,t+\"-open\"]),b.symbolNames[e.n]=t,b.symbolFuncs[e.n]=e.f,e.needLine&&(b.symbolNeedLines[e.n]=!0),e.noDot?b.symbolNoDot[e.n]=!0:b.symbolList=b.symbolList.concat([e.n+200,t+\"-dot\",e.n+300,t+\"-open-dot\"])});var _=b.symbolNames.length,w=\"M0,0.5L0.5,0L0,-0.5L-0.5,0Z\";b.symbolNumber=function(t){if(\"string\"==typeof t){var e=0;t.indexOf(\"-open\")>0&&(e=100,t=t.replace(\"-open\",\"\")),t.indexOf(\"-dot\")>0&&(e+=200,t=t.replace(\"-dot\",\"\")),t=b.symbolNames.indexOf(t),t>=0&&(t+=e)}return t%100>=_||t>=400?0:Math.floor(Math.max(t,0))};var M={x1:1,x2:0,y1:0,y2:0},k={x1:0,x2:0,y1:1,y2:0};b.gradient=function(t,e,r,n,i,a){var s=e._fullLayout._defs.select(\".gradients\").selectAll(\"#\"+r).data([n+i+a],f.identity);s.exit().remove(),s.enter().append(\"radial\"===n?\"radialGradient\":\"linearGradient\").each(function(){var t=o.select(this);\"horizontal\"===n?t.attr(M):\"vertical\"===n&&t.attr(k),t.attr(\"id\",r);var e=l(i),s=l(a);t.append(\"stop\").attr({offset:\"0%\",\"stop-color\":c.tinyRGB(s),\"stop-opacity\":s.getAlpha()}),t.append(\"stop\").attr({offset:\"100%\",\"stop-color\":c.tinyRGB(e),\"stop-opacity\":e.getAlpha()})}),t.style({fill:\"url(#\"+r+\")\",\"fill-opacity\":null})},b.initGradients=function(t){var e=t._fullLayout._defs.selectAll(\".gradients\").data([0]);e.enter().append(\"g\").classed(\"gradients\",!0),e.selectAll(\"linearGradient,radialGradient\").remove()},b.singlePointStyle=function(t,e,r,i,a,o){var s=r.marker;n(t,e,r,i,a,s,s.line,o)},b.pointStyle=function(t,e,r){if(t.size()){var n=e.marker,i=b.tryColorscale(n,\"\"),a=b.tryColorscale(n,\"line\");t.each(function(t){b.singlePointStyle(t,o.select(this),e,i,a,r)})}},b.tryColorscale=function(t,e){var r=e?f.nestedProperty(t,e).get():t,n=r.colorscale,i=r.color;return n&&Array.isArray(i)?h.makeColorScaleFunc(h.extractScale(n,r.cmin,r.cmax)):f.identity};var A={start:1,end:-1,middle:0,bottom:1,top:-1};b.textPointStyle=function(t,e,r){t.each(function(t){var n=o.select(this),i=f.extractOption(t,e,\"tx\",\"text\");if(!i)return void n.remove();var a=t.tp||e.textposition,l=-1!==a.indexOf(\"top\")?\"top\":-1!==a.indexOf(\"bottom\")?\"bottom\":\"middle\",u=-1!==a.indexOf(\"left\")?\"end\":-1!==a.indexOf(\"right\")?\"start\":\"middle\",c=t.ts||e.textfont.size,h=t.mrc?t.mrc/.8+1:0;c=s(c)&&c>0?c:0,n.call(b.font,t.tf||e.textfont.family,c,t.tc||e.textfont.color).attr(\"text-anchor\",u).text(i).call(d.convertToTspans,r);var p=o.select(this.parentNode),m=(d.lineCount(n)-1)*v+1,g=A[u]*h,y=.75*c+A[l]*h+(A[l]-1)*m*c/2;p.attr(\"transform\",\"translate(\"+g+\",\"+y+\")\")})};var T=.5;b.smoothopen=function(t,e){if(t.length<3)return\"M\"+t.join(\"L\");var r,n=\"M\"+t[0],a=[];for(r=1;r<t.length-1;r++)a.push(i(t[r-1],t[r],t[r+1],e));for(n+=\"Q\"+a[0][0]+\" \"+t[1],r=2;r<t.length-1;r++)n+=\"C\"+a[r-2][1]+\" \"+a[r-1][0]+\" \"+t[r];return n+=\"Q\"+a[t.length-3][1]+\" \"+t[t.length-1]},b.smoothclosed=function(t,e){if(t.length<3)return\"M\"+t.join(\"L\")+\"Z\";var r,n=\"M\"+t[0],a=t.length-1,o=[i(t[a],t[0],t[1],e)];for(r=1;r<a;r++)o.push(i(t[r-1],t[r],t[r+1],e));for(o.push(i(t[a-1],t[a],t[0],e)),r=1;r<=a;r++)n+=\"C\"+o[r-1][1]+\" \"+o[r][0]+\" \"+t[r];return n+=\"C\"+o[a][1]+\" \"+o[0][0]+\" \"+t[0]+\"Z\"};var S={hv:function(t,e){return\"H\"+o.round(e[0],2)+\"V\"+o.round(e[1],2)},vh:function(t,e){return\"V\"+o.round(e[1],2)+\"H\"+o.round(e[0],2)},hvh:function(t,e){return\"H\"+o.round((t[0]+e[0])/2,2)+\"V\"+o.round(e[1],2)+\"H\"+o.round(e[0],2)},vhv:function(t,e){return\"V\"+o.round((t[1]+e[1])/2,2)+\"H\"+o.round(e[0],2)+\"V\"+o.round(e[1],2)}},E=function(t,e){return\"L\"+o.round(e[0],2)+\",\"+o.round(e[1],2)};b.steps=function(t){var e=S[t]||E;return function(t){for(var r=\"M\"+o.round(t[0][0],2)+\",\"+o.round(t[0][1],2),n=1;n<t.length;n++)r+=e(t[n-1],t[n]);return r}},b.makeTester=function(){var t=o.select(\"body\").selectAll(\"#js-plotly-tester\").data([0]);t.enter().append(\"svg\").attr(\"id\",\"js-plotly-tester\").attr(p.svgAttrs).style({position:\"absolute\",left:\"-10000px\",top:\"-10000px\",width:\"9000px\",height:\"9000px\",\"z-index\":\"1\"});var e=t.selectAll(\".js-reference-point\").data([0]);e.enter().append(\"path\").classed(\"js-reference-point\",!0).attr(\"d\",\"M0,0H1V1H0Z\").style({\"stroke-width\":0,fill:\"black\"}),b.tester=t,b.testref=e},b.savedBBoxes={};var L=0;b.bBox=function(t,e,r){r||(r=a(t));var n;if(r){if(n=b.savedBBoxes[r])return f.extendFlat({},n)}else if(1===t.childNodes.length){var i=t.childNodes[0];if(r=a(i)){var s=+i.getAttribute(\"x\")||0,l=+i.getAttribute(\"y\")||0,u=i.getAttribute(\"transform\");if(!u){var c=b.bBox(i,!1,r);return s&&(c.left+=s,c.right+=s),l&&(c.top+=l,c.bottom+=l),c}if(r+=\"~\"+s+\"~\"+l+\"~\"+u,n=b.savedBBoxes[r])return f.extendFlat({},n)}}var h,p;e?h=t:(p=b.tester.node(),h=t.cloneNode(!0),p.appendChild(h)),o.select(h).attr(\"transform\",null).call(d.positionText,0,0);var m=h.getBoundingClientRect(),v=b.testref.node().getBoundingClientRect();e||p.removeChild(h);var g={height:m.height,width:m.width,left:m.left-v.left,top:m.top-v.top,right:m.right-v.left,bottom:m.bottom-v.top};return L>=1e4&&(b.savedBBoxes={},L=0),r&&(b.savedBBoxes[r]=g),L++,f.extendFlat({},g)},b.setClipUrl=function(t,e){if(!e)return void t.attr(\"clip-path\",null);var r=\"#\"+e,n=o.select(\"base\");n.size()&&n.attr(\"href\")&&(r=window.location.href.split(\"#\")[0]+r),t.attr(\"clip-path\",\"url(\"+r+\")\")},b.getTranslate=function(t){var e=/.*\\btranslate\\((-?\\d*\\.?\\d*)[^-\\d]*(-?\\d*\\.?\\d*)[^\\d].*/,r=t.attr?\"attr\":\"getAttribute\",n=t[r](\"transform\")||\"\",i=n.replace(e,function(t,e,r){return[e,r].join(\" \")}).split(\" \");return{x:+i[0]||0,y:+i[1]||0}},b.setTranslate=function(t,e,r){var n=/(\\btranslate\\(.*?\\);?)/,i=t.attr?\"attr\":\"getAttribute\",a=t.attr?\"attr\":\"setAttribute\",o=t[i](\"transform\")||\"\";return e=e||0,r=r||0,o=o.replace(n,\"\").trim(),o+=\" translate(\"+e+\", \"+r+\")\",o=o.trim(),t[a](\"transform\",o),o},b.getScale=function(t){var e=/.*\\bscale\\((\\d*\\.?\\d*)[^\\d]*(\\d*\\.?\\d*)[^\\d].*/,r=t.attr?\"attr\":\"getAttribute\",n=t[r](\"transform\")||\"\",i=n.replace(e,function(t,e,r){return[e,r].join(\" \")}).split(\" \");return{x:+i[0]||1,y:+i[1]||1}},b.setScale=function(t,e,r){var n=/(\\bscale\\(.*?\\);?)/,i=t.attr?\"attr\":\"getAttribute\",a=t.attr?\"attr\":\"setAttribute\",o=t[i](\"transform\")||\"\";return e=e||1,r=r||1,o=o.replace(n,\"\").trim(),o+=\" scale(\"+e+\", \"+r+\")\",o=o.trim(),t[a](\"transform\",o),o},b.setPointGroupScale=function(t,e,r){var n,i,a;return e=e||1,r=r||1,i=1===e&&1===r?\"\":\" scale(\"+e+\",\"+r+\")\",a=/\\s*sc.*/,t.each(function(){n=(this.getAttribute(\"transform\")||\"\").replace(a,\"\"),n+=i,n=n.trim(),this.setAttribute(\"transform\",n)}),i};var C=/translate\\([^)]*\\)\\s*$/;b.setTextPointsScale=function(t,e,r){t.each(function(){var t,n=o.select(this),i=n.select(\"text\");if(i.node()){var a=parseFloat(i.attr(\"x\")||0),s=parseFloat(i.attr(\"y\")||0),l=(n.attr(\"transform\")||\"\").match(C);t=1===e&&1===r?[]:[\"translate(\"+a+\",\"+s+\")\",\"scale(\"+e+\",\"+r+\")\",\"translate(\"+-a+\",\"+-s+\")\"],l&&t.push(l),n.attr(\"transform\",t.join(\" \"))}})}},{\"../../constants/alignment\":701,\"../../constants/xmlns_namespaces\":709,\"../../lib\":728,\"../../lib/svg_text_utils\":750,\"../../registry\":846,\"../../traces/scatter/make_bubble_size_func\":1047,\"../../traces/scatter/subtypes\":1052,\"../color\":604,\"../colorscale\":618,\"./symbol_defs\":629,d3:122,\"fast-isnumeric\":131,tinycolor2:534}],629:[function(t,e,r){\"use strict\";var n=t(\"d3\");e.exports={circle:{n:0,f:function(t){var e=n.round(t,2);return\"M\"+e+\",0A\"+e+\",\"+e+\" 0 1,1 0,-\"+e+\"A\"+e+\",\"+e+\" 0 0,1 \"+e+\",0Z\"}},square:{n:1,f:function(t){var e=n.round(t,2);return\"M\"+e+\",\"+e+\"H-\"+e+\"V-\"+e+\"H\"+e+\"Z\"}},diamond:{n:2,f:function(t){var e=n.round(1.3*t,2);return\"M\"+e+\",0L0,\"+e+\"L-\"+e+\",0L0,-\"+e+\"Z\"}},cross:{n:3,f:function(t){var e=n.round(.4*t,2),r=n.round(1.2*t,2);return\"M\"+r+\",\"+e+\"H\"+e+\"V\"+r+\"H-\"+e+\"V\"+e+\"H-\"+r+\"V-\"+e+\"H-\"+e+\"V-\"+r+\"H\"+e+\"V-\"+e+\"H\"+r+\"Z\"}},x:{n:4,f:function(t){var e=n.round(.8*t/Math.sqrt(2),2),r=\"l\"+e+\",\"+e,i=\"l\"+e+\",-\"+e,a=\"l-\"+e+\",-\"+e,o=\"l-\"+e+\",\"+e;return\"M0,\"+e+r+i+a+i+a+o+a+o+r+o+r+\"Z\"}},\"triangle-up\":{n:5,f:function(t){var e=n.round(2*t/Math.sqrt(3),2);return\"M-\"+e+\",\"+n.round(t/2,2)+\"H\"+e+\"L0,-\"+n.round(t,2)+\"Z\"}},\"triangle-down\":{n:6,f:function(t){var e=n.round(2*t/Math.sqrt(3),2);return\"M-\"+e+\",-\"+n.round(t/2,2)+\"H\"+e+\"L0,\"+n.round(t,2)+\"Z\"}},\"triangle-left\":{n:7,f:function(t){var e=n.round(2*t/Math.sqrt(3),2);return\"M\"+n.round(t/2,2)+\",-\"+e+\"V\"+e+\"L-\"+n.round(t,2)+\",0Z\"}},\"triangle-right\":{n:8,f:function(t){var e=n.round(2*t/Math.sqrt(3),2);return\"M-\"+n.round(t/2,2)+\",-\"+e+\"V\"+e+\"L\"+n.round(t,2)+\",0Z\"}},\"triangle-ne\":{n:9,f:function(t){var e=n.round(.6*t,2),r=n.round(1.2*t,2);return\"M-\"+r+\",-\"+e+\"H\"+e+\"V\"+r+\"Z\"}},\"triangle-se\":{n:10,f:function(t){var e=n.round(.6*t,2),r=n.round(1.2*t,2);return\"M\"+e+\",-\"+r+\"V\"+e+\"H-\"+r+\"Z\"}},\"triangle-sw\":{n:11,f:function(t){var e=n.round(.6*t,2),r=n.round(1.2*t,2);return\"M\"+r+\",\"+e+\"H-\"+e+\"V-\"+r+\"Z\"}},\"triangle-nw\":{n:12,f:function(t){var e=n.round(.6*t,2),r=n.round(1.2*t,2);return\"M-\"+e+\",\"+r+\"V-\"+e+\"H\"+r+\"Z\"}},pentagon:{n:13,f:function(t){var e=n.round(.951*t,2),r=n.round(.588*t,2),i=n.round(-t,2),a=n.round(-.309*t,2);return\"M\"+e+\",\"+a+\"L\"+r+\",\"+n.round(.809*t,2)+\"H-\"+r+\"L-\"+e+\",\"+a+\"L0,\"+i+\"Z\"}},hexagon:{n:14,f:function(t){var e=n.round(t,2),r=n.round(t/2,2),i=n.round(t*Math.sqrt(3)/2,2);return\"M\"+i+\",-\"+r+\"V\"+r+\"L0,\"+e+\"L-\"+i+\",\"+r+\"V-\"+r+\"L0,-\"+e+\"Z\"}},hexagon2:{n:15,f:function(t){var e=n.round(t,2),r=n.round(t/2,2),i=n.round(t*Math.sqrt(3)/2,2);return\"M-\"+r+\",\"+i+\"H\"+r+\"L\"+e+\",0L\"+r+\",-\"+i+\"H-\"+r+\"L-\"+e+\",0Z\"}},octagon:{n:16,f:function(t){var e=n.round(.924*t,2),r=n.round(.383*t,2);return\"M-\"+r+\",-\"+e+\"H\"+r+\"L\"+e+\",-\"+r+\"V\"+r+\"L\"+r+\",\"+e+\"H-\"+r+\"L-\"+e+\",\"+r+\"V-\"+r+\"Z\"}},star:{n:17,f:function(t){var e=1.4*t,r=n.round(.225*e,2),i=n.round(.951*e,2),a=n.round(.363*e,2),o=n.round(.588*e,2),s=n.round(-e,2),l=n.round(-.309*e,2),u=n.round(.118*e,2),c=n.round(.809*e,2);return\"M\"+r+\",\"+l+\"H\"+i+\"L\"+a+\",\"+u+\"L\"+o+\",\"+c+\"L0,\"+n.round(.382*e,2)+\"L-\"+o+\",\"+c+\"L-\"+a+\",\"+u+\"L-\"+i+\",\"+l+\"H-\"+r+\"L0,\"+s+\"Z\"}},hexagram:{n:18,f:function(t){var e=n.round(.66*t,2),r=n.round(.38*t,2),i=n.round(.76*t,2);return\"M-\"+i+\",0l-\"+r+\",-\"+e+\"h\"+i+\"l\"+r+\",-\"+e+\"l\"+r+\",\"+e+\"h\"+i+\"l-\"+r+\",\"+e+\"l\"+r+\",\"+e+\"h-\"+i+\"l-\"+r+\",\"+e+\"l-\"+r+\",-\"+e+\"h-\"+i+\"Z\"}},\"star-triangle-up\":{n:19,f:function(t){var e=n.round(t*Math.sqrt(3)*.8,2),r=n.round(.8*t,2),i=n.round(1.6*t,2),a=n.round(4*t,2),o=\"A \"+a+\",\"+a+\" 0 0 1 \";return\"M-\"+e+\",\"+r+o+e+\",\"+r+o+\"0,-\"+i+o+\"-\"+e+\",\"+r+\"Z\"}},\"star-triangle-down\":{n:20,f:function(t){var e=n.round(t*Math.sqrt(3)*.8,2),r=n.round(.8*t,2),i=n.round(1.6*t,2),a=n.round(4*t,2),o=\"A \"+a+\",\"+a+\" 0 0 1 \";return\"M\"+e+\",-\"+r+o+\"-\"+e+\",-\"+r+o+\"0,\"+i+o+e+\",-\"+r+\"Z\"}},\"star-square\":{n:21,f:function(t){var e=n.round(1.1*t,2),r=n.round(2*t,2),i=\"A \"+r+\",\"+r+\" 0 0 1 \";return\"M-\"+e+\",-\"+e+i+\"-\"+e+\",\"+e+i+e+\",\"+e+i+e+\",-\"+e+i+\"-\"+e+\",-\"+e+\"Z\"}},\"star-diamond\":{n:22,f:function(t){var e=n.round(1.4*t,2),r=n.round(1.9*t,2),i=\"A \"+r+\",\"+r+\" 0 0 1 \";return\"M-\"+e+\",0\"+i+\"0,\"+e+i+e+\",0\"+i+\"0,-\"+e+i+\"-\"+e+\",0Z\"}},\"diamond-tall\":{n:23,f:function(t){var e=n.round(.7*t,2),r=n.round(1.4*t,2);return\"M0,\"+r+\"L\"+e+\",0L0,-\"+r+\"L-\"+e+\",0Z\"}},\"diamond-wide\":{n:24,f:function(t){var e=n.round(1.4*t,2),r=n.round(.7*t,2);return\"M0,\"+r+\"L\"+e+\",0L0,-\"+r+\"L-\"+e+\",0Z\"}},hourglass:{n:25,f:function(t){var e=n.round(t,2);return\"M\"+e+\",\"+e+\"H-\"+e+\"L\"+e+\",-\"+e+\"H-\"+e+\"Z\"},noDot:!0},bowtie:{n:26,f:function(t){var e=n.round(t,2);return\"M\"+e+\",\"+e+\"V-\"+e+\"L-\"+e+\",\"+e+\"V-\"+e+\"Z\"},noDot:!0},\"circle-cross\":{n:27,f:function(t){var e=n.round(t,2);return\"M0,\"+e+\"V-\"+e+\"M\"+e+\",0H-\"+e+\"M\"+e+\",0A\"+e+\",\"+e+\" 0 1,1 0,-\"+e+\"A\"+e+\",\"+e+\" 0 0,1 \"+e+\",0Z\"},needLine:!0,noDot:!0},\"circle-x\":{n:28,f:function(t){var e=n.round(t,2),r=n.round(t/Math.sqrt(2),2);return\"M\"+r+\",\"+r+\"L-\"+r+\",-\"+r+\"M\"+r+\",-\"+r+\"L-\"+r+\",\"+r+\"M\"+e+\",0A\"+e+\",\"+e+\" 0 1,1 0,-\"+e+\"A\"+e+\",\"+e+\" 0 0,1 \"+e+\",0Z\"},needLine:!0,noDot:!0},\"square-cross\":{n:29,f:function(t){var e=n.round(t,2);return\"M0,\"+e+\"V-\"+e+\"M\"+e+\",0H-\"+e+\"M\"+e+\",\"+e+\"H-\"+e+\"V-\"+e+\"H\"+e+\"Z\"},needLine:!0,noDot:!0},\"square-x\":{n:30,f:function(t){var e=n.round(t,2);return\"M\"+e+\",\"+e+\"L-\"+e+\",-\"+e+\"M\"+e+\",-\"+e+\"L-\"+e+\",\"+e+\"M\"+e+\",\"+e+\"H-\"+e+\"V-\"+e+\"H\"+e+\"Z\"},needLine:!0,noDot:!0},\"diamond-cross\":{n:31,f:function(t){var e=n.round(1.3*t,2);return\"M\"+e+\",0L0,\"+e+\"L-\"+e+\",0L0,-\"+e+\"ZM0,-\"+e+\"V\"+e+\"M-\"+e+\",0H\"+e},needLine:!0,noDot:!0},\"diamond-x\":{n:32,f:function(t){var e=n.round(1.3*t,2),r=n.round(.65*t,2);return\"M\"+e+\",0L0,\"+e+\"L-\"+e+\",0L0,-\"+e+\"ZM-\"+r+\",-\"+r+\"L\"+r+\",\"+r+\"M-\"+r+\",\"+r+\"L\"+r+\",-\"+r},needLine:!0,noDot:!0},\"cross-thin\":{n:33,f:function(t){var e=n.round(1.4*t,2);return\"M0,\"+e+\"V-\"+e+\"M\"+e+\",0H-\"+e},needLine:!0,noDot:!0},\"x-thin\":{n:34,f:function(t){var e=n.round(t,2);return\"M\"+e+\",\"+e+\"L-\"+e+\",-\"+e+\"M\"+e+\",-\"+e+\"L-\"+e+\",\"+e},needLine:!0,noDot:!0},asterisk:{n:35,f:function(t){var e=n.round(1.2*t,2),r=n.round(.85*t,2);return\"M0,\"+e+\"V-\"+e+\"M\"+e+\",0H-\"+e+\"M\"+r+\",\"+r+\"L-\"+r+\",-\"+r+\"M\"+r+\",-\"+r+\"L-\"+r+\",\"+r},needLine:!0,noDot:!0},hash:{n:36,f:function(t){var e=n.round(t/2,2),r=n.round(t,2);return\"M\"+e+\",\"+r+\"V-\"+r+\"m-\"+r+\",0V\"+r+\"M\"+r+\",\"+e+\"H-\"+r+\"m0,-\"+r+\"H\"+r},needLine:!0},\"y-up\":{n:37,f:function(t){var e=n.round(1.2*t,2),r=n.round(1.6*t,2),i=n.round(.8*t,2);return\"M-\"+e+\",\"+i+\"L0,0M\"+e+\",\"+i+\"L0,0M0,-\"+r+\"L0,0\"},needLine:!0,noDot:!0},\"y-down\":{n:38,f:function(t){var e=n.round(1.2*t,2),r=n.round(1.6*t,2),i=n.round(.8*t,2);return\"M-\"+e+\",-\"+i+\"L0,0M\"+e+\",-\"+i+\"L0,0M0,\"+r+\"L0,0\"},needLine:!0,noDot:!0},\"y-left\":{n:39,f:function(t){var e=n.round(1.2*t,2),r=n.round(1.6*t,2),i=n.round(.8*t,2);return\"M\"+i+\",\"+e+\"L0,0M\"+i+\",-\"+e+\"L0,0M-\"+r+\",0L0,0\"},needLine:!0,noDot:!0},\"y-right\":{n:40,f:function(t){var e=n.round(1.2*t,2),r=n.round(1.6*t,2),i=n.round(.8*t,2);return\"M-\"+i+\",\"+e+\"L0,0M-\"+i+\",-\"+e+\"L0,0M\"+r+\",0L0,0\"},needLine:!0,noDot:!0},\"line-ew\":{n:41,f:function(t){var e=n.round(1.4*t,2);return\"M\"+e+\",0H-\"+e},needLine:!0,noDot:!0},\"line-ns\":{n:42,f:function(t){var e=n.round(1.4*t,2);return\"M0,\"+e+\"V-\"+e},needLine:!0,noDot:!0},\"line-ne\":{n:43,f:function(t){var e=n.round(t,2);return\"M\"+e+\",-\"+e+\"L-\"+e+\",\"+e},needLine:!0,noDot:!0},\"line-nw\":{n:44,f:function(t){var e=n.round(t,2);return\"M\"+e+\",\"+e+\"L-\"+e+\",-\"+e},needLine:!0,noDot:!0}}},{d3:122}],630:[function(t,e,r){\"use strict\";e.exports={visible:{valType:\"boolean\",editType:\"calc\"},type:{valType:\"enumerated\",values:[\"percent\",\"constant\",\"sqrt\",\"data\"],editType:\"calc\"},symmetric:{valType:\"boolean\",editType:\"calc\"},array:{valType:\"data_array\",editType:\"calc\"},arrayminus:{valType:\"data_array\",editType:\"calc\"},value:{valType:\"number\",min:0,dflt:10,editType:\"calc\"},valueminus:{valType:\"number\",min:0,dflt:10,editType:\"calc\"},traceref:{valType:\"integer\",min:0,dflt:0,editType:\"style\"},tracerefminus:{valType:\"integer\",min:0,dflt:0,editType:\"style\"},copy_ystyle:{valType:\"boolean\",editType:\"plot\"},copy_zstyle:{valType:\"boolean\",editType:\"style\"},color:{valType:\"color\",editType:\"style\"},thickness:{valType:\"number\",min:0,dflt:2,editType:\"style\"},width:{valType:\"number\",min:0,editType:\"plot\"},editType:\"calc\",_deprecated:{opacity:{valType:\"number\",editType:\"style\"}}}},{}],631:[function(t,e,r){\"use strict\";function n(t,e,r,n){var a=e[\"error_\"+n]||{},l=a.visible&&-1!==[\"linear\",\"log\"].indexOf(r.type),u=[];if(l){for(var c=s(a),h=0;h<t.length;h++){var f=t[h],d=f[n];if(i(r.c2l(d))){var p=c(d,h);if(i(p[0])&&i(p[1])){var m=f[n+\"s\"]=d-p[0],v=f[n+\"h\"]=d+p[1];u.push(m,v)}}}o.expand(r,u,{padded:!0})}}var i=t(\"fast-isnumeric\"),a=t(\"../../registry\"),o=t(\"../../plots/cartesian/axes\"),s=t(\"./compute_error\");e.exports=function(t){for(var e=t.calcdata,r=0;r<e.length;r++){var i=e[r],s=i[0].trace;if(a.traceIs(s,\"errorBarsOK\")){var l=o.getFromId(t,s.xaxis),u=o.getFromId(t,s.yaxis);n(i,s,l,\"x\"),n(i,s,u,\"y\")}}}},{\"../../plots/cartesian/axes\":772,\"../../registry\":846,\"./compute_error\":632,\"fast-isnumeric\":131}],632:[function(t,e,r){\"use strict\";function n(t,e){return\"percent\"===t?function(t){return Math.abs(t*e/100)}:\"constant\"===t?function(){return Math.abs(e)}:\"sqrt\"===t?function(t){return Math.sqrt(Math.abs(t))}:void 0}e.exports=function(t){var e=t.type,r=t.symmetric;if(\"data\"===e){var i=t.array,a=t.arrayminus;return r||void 0===a?function(t,e){var r=+i[e];return[r,r]}:function(t,e){return[+a[e],+i[e]]}}var o=n(e,t.value),s=n(e,t.valueminus);return r||void 0===t.valueminus?function(t){var e=o(t);return[e,e]}:function(t){return[s(t),o(t)]}}},{}],633:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../../registry\"),a=t(\"../../lib\"),o=t(\"./attributes\");e.exports=function(t,e,r,s){function l(t,e){return a.coerce(h,c,o,t,e)}var u=\"error_\"+s.axis,c=e[u]={},h=t[u]||{};if(!1!==l(\"visible\",void 0!==h.array||void 0!==h.value||\"sqrt\"===h.type)){var f=l(\"type\",\"array\"in h?\"data\":\"percent\"),d=!0;\"sqrt\"!==f&&(d=l(\"symmetric\",!((\"data\"===f?\"arrayminus\":\"valueminus\")in h))),\"data\"===f?(l(\"array\")||(c.array=[]),l(\"traceref\"),d||(l(\"arrayminus\")||(c.arrayminus=[]),l(\"tracerefminus\"))):\"percent\"!==f&&\"constant\"!==f||(l(\"value\"),d||l(\"valueminus\"));var p=\"copy_\"+s.inherit+\"style\";s.inherit&&(e[\"error_\"+s.inherit]||{}).visible&&l(p,!(h.color||n(h.thickness)||n(h.width))),s.inherit&&c[p]||(l(\"color\",r),l(\"thickness\"),l(\"width\",i.traceIs(e,\"gl3d\")?0:4))}}},{\"../../lib\":728,\"../../registry\":846,\"./attributes\":630,\"fast-isnumeric\":131}],634:[function(t,e,r){\"use strict\";var n=e.exports={};n.attributes=t(\"./attributes\"),n.supplyDefaults=t(\"./defaults\"),n.calc=t(\"./calc\"),n.calcFromTrace=function(t,e){for(var r=t.x||[],i=t.y||[],a=r.length||i.length,o=new Array(a),s=0;s<a;s++)o[s]={x:r[s],y:i[s]};return o[0].trace=t,n.calc({calcdata:[o],_fullLayout:e}),o},n.plot=t(\"./plot\"),n.style=t(\"./style\"),n.hoverInfo=function(t,e,r){(e.error_y||{}).visible&&(r.yerr=t.yh-t.y,e.error_y.symmetric||(r.yerrneg=t.y-t.ys)),(e.error_x||{}).visible&&(r.xerr=t.xh-t.x,e.error_x.symmetric||(r.xerrneg=t.x-t.xs))}},{\"./attributes\":630,\"./calc\":631,\"./defaults\":633,\"./plot\":635,\"./style\":636}],635:[function(t,e,r){\"use strict\";function n(t,e,r){var n={x:e.c2p(t.x),y:r.c2p(t.y)};return void 0!==t.yh&&(n.yh=r.c2p(t.yh),n.ys=r.c2p(t.ys),a(n.ys)||(n.noYS=!0,n.ys=r.c2p(t.ys,!0))),void 0!==t.xh&&(n.xh=e.c2p(t.xh),n.xs=e.c2p(t.xs),a(n.xs)||(n.noXS=!0,n.xs=e.c2p(t.xs,!0))),n}var i=t(\"d3\"),a=t(\"fast-isnumeric\"),o=t(\"../drawing\"),s=t(\"../../traces/scatter/subtypes\");e.exports=function(t,e,r){var l,u=e.xaxis,c=e.yaxis,h=r&&r.duration>0;t.each(function(t){var f,d=t[0].trace,p=d.error_x||{},m=d.error_y||{};d.ids&&(f=function(t){return t.id});var v=s.hasMarkers(d)&&d.marker.maxdisplayed>0;m.visible||p.visible||(t=[]);var g=i.select(this).selectAll(\"g.errorbar\").data(t,f);if(g.exit().remove(),t.length){p.visible||g.selectAll(\"path.xerror\").remove(),m.visible||g.selectAll(\"path.yerror\").remove(),g.style(\"opacity\",1);var y=g.enter().append(\"g\").classed(\"errorbar\",!0);h&&y.style(\"opacity\",0).transition().duration(r.duration).style(\"opacity\",1),o.setClipUrl(g,e.layerClipId),g.each(function(t){var e=i.select(this),o=n(t,u,c);if(!v||t.vis){var s;if(m.visible&&a(o.x)&&a(o.yh)&&a(o.ys)){var f=m.width;s=\"M\"+(o.x-f)+\",\"+o.yh+\"h\"+2*f+\"m-\"+f+\",0V\"+o.ys,o.noYS||(s+=\"m-\"+f+\",0h\"+2*f);var d=e.select(\"path.yerror\");l=!d.size(),l?d=e.append(\"path\").style(\"vector-effect\",\"non-scaling-stroke\").classed(\"yerror\",!0):h&&(d=d.transition().duration(r.duration).ease(r.easing)),d.attr(\"d\",s)}if(p.visible&&a(o.y)&&a(o.xh)&&a(o.xs)){var g=(p.copy_ystyle?m:p).width;s=\"M\"+o.xh+\",\"+(o.y-g)+\"v\"+2*g+\"m0,-\"+g+\"H\"+o.xs,o.noXS||(s+=\"m0,-\"+g+\"v\"+2*g);var y=e.select(\"path.xerror\");l=!y.size(),l?y=e.append(\"path\").style(\"vector-effect\",\"non-scaling-stroke\").classed(\"xerror\",!0):h&&(y=y.transition().duration(r.duration).ease(r.easing)),y.attr(\"d\",s)}}})}})}},{\"../../traces/scatter/subtypes\":1052,\"../drawing\":628,d3:122,\"fast-isnumeric\":131}],636:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../color\");e.exports=function(t){t.each(function(t){var e=t[0].trace,r=e.error_y||{},a=e.error_x||{},o=n.select(this);o.selectAll(\"path.yerror\").style(\"stroke-width\",r.thickness+\"px\").call(i.stroke,r.color),a.copy_ystyle&&(a=r),o.selectAll(\"path.xerror\").style(\"stroke-width\",a.thickness+\"px\").call(i.stroke,a.color)})}},{\"../color\":604,d3:122}],637:[function(t,e,r){\"use strict\";var n=t(\"../../plots/font_attributes\");e.exports={hoverlabel:{bgcolor:{valType:\"color\",arrayOk:!0,editType:\"none\"},bordercolor:{valType:\"color\",arrayOk:!0,editType:\"none\"},font:n({arrayOk:!0,editType:\"none\"}),namelength:{valType:\"integer\",min:-1,arrayOk:!0,editType:\"none\"},editType:\"calc\"}}},{\"../../plots/font_attributes\":796}],638:[function(t,e,r){\"use strict\";function n(t,e,r,n){n=n||i.identity,Array.isArray(t)&&(e[0][r]=n(t))}var i=t(\"../../lib\"),a=t(\"../../registry\");e.exports=function(t){for(var e=t.calcdata,r=t._fullLayout,o=0;o<e.length;o++){var s=e[o],l=s[0].trace;if(!a.traceIs(l,\"pie\")){var u=a.traceIs(l,\"2dMap\")?n:i.fillArray;u(l.hoverinfo,s,\"hi\",function(t){return function(e){return i.coerceHoverinfo({hoverinfo:e},{_module:t._module},r)}}(l)),l.hoverlabel&&(u(l.hoverlabel.bgcolor,s,\"hbg\"),u(l.hoverlabel.bordercolor,s,\"hbc\"),u(l.hoverlabel.font.size,s,\"hts\"),u(l.hoverlabel.font.color,s,\"htc\"),u(l.hoverlabel.font.family,s,\"htf\"),u(l.hoverlabel.namelength,s,\"hnl\"))}}}},{\"../../lib\":728,\"../../registry\":846}],639:[function(t,e,r){\"use strict\";var n=t(\"../../registry\"),i=t(\"./hover\").hover;e.exports=function(t,e,r){function a(){t.emit(\"plotly_click\",{points:t._hoverdata,event:e})}var o=n.getComponentMethod(\"annotations\",\"onClick\")(t,t._hoverdata);void 0!==r&&i(t,e,r,!0),t._hoverdata&&e&&e.target&&(o&&o.then?o.then(a):a(),e.stopImmediatePropagation&&e.stopImmediatePropagation())}},{\"../../registry\":846,\"./hover\":643}],640:[function(t,e,r){\"use strict\";e.exports={MAXDIST:20,YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:\"Arial, sans-serif\",HOVERMINTIME:50,HOVERID:\"-hover\"}},{}],641:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"./attributes\"),a=t(\"./hoverlabel_defaults\");e.exports=function(t,e,r,o){function s(r,a){return n.coerce(t,e,i,r,a)}a(t,e,s,o.hoverlabel)}},{\"../../lib\":728,\"./attributes\":637,\"./hoverlabel_defaults\":644}],642:[function(t,e,r){\"use strict\";function n(t,e){return function(r){var n=t(r),i=e(r);return Math.sqrt(n*n+i*i)}}var i=t(\"../../lib\"),a=t(\"./constants\");r.getSubplot=function(t){return t.subplot||t.xaxis+t.yaxis||t.geo},r.flat=function(t,e){for(var r=new Array(t.length),n=0;n<t.length;n++)r[n]=e;return r},r.p2c=function(t,e){for(var r=new Array(t.length),n=0;n<t.length;n++)r[n]=t[n].p2c(e);return r},r.getDistanceFunction=function(t,e,r,i){return\"closest\"===t?i||n(e,r):\"x\"===t?e:r},r.getClosest=function(t,e,r){if(!1!==r.index)r.index>=0&&r.index<t.length?r.distance=0:r.index=!1;else for(var n=0;n<t.length;n++){\n", "var i=e(t[n]);i<=r.distance&&(r.index=n,r.distance=i)}return r},r.inbox=function(t,e){return t*e<0||0===t?a.MAXDIST*(.6-.3/Math.max(3,Math.abs(t-e))):1/0},r.appendArrayPointValue=function(t,e,r){var n=e._arrayAttrs;if(n)for(var a=0;a<n.length;a++){var o,s=n[a];if(o=\"ids\"===s?\"id\":\"locations\"===s?\"location\":s,void 0===t[o]){var l=i.nestedProperty(e,s).get();Array.isArray(r)?Array.isArray(l)&&Array.isArray(l[r[0]])&&(t[o]=l[r[0]][r[1]]):t[o]=l[r]}}}},{\"../../lib\":728,\"./constants\":640}],643:[function(t,e,r){\"use strict\";function n(t,e,r,n){if((\"pie\"===r||\"sankey\"===r)&&!n)return void t.emit(\"plotly_hover\",{event:e.originalEvent,points:[e]});r||(r=\"xy\");var f=Array.isArray(r)?r:[r],m=t._fullLayout,g=m._plots||[],k=g[r];if(k){var A=k.overlays.map(function(t){return t.id});f=f.concat(A)}for(var T=f.length,S=new Array(T),E=new Array(T),L=0;L<T;L++){var C=f[L],I=g[C];if(I)S[L]=x.getFromId(t,I.xaxis._id),E[L]=x.getFromId(t,I.yaxis._id);else{var z=m[C]._subplot;S[L]=z.xaxis,E[L]=z.yaxis}}var D=e.hovermode||m.hovermode;if(-1===[\"x\",\"y\",\"closest\"].indexOf(D)||!t.calcdata||t.querySelector(\".zoombox\")||t._dragging)return b.unhoverRaw(t,e);var P,O,R,F,j,N,B,U,V,H,q,G,Y,W=[],X=[];if(Array.isArray(e))for(D=\"array\",R=0;R<e.length;R++)j=t.calcdata[e[R].curveNumber||0],\"skip\"!==j[0].trace.hoverinfo&&X.push(j);else{for(F=0;F<t.calcdata.length;F++)j=t.calcdata[F],N=j[0].trace,\"skip\"!==N.hoverinfo&&-1!==f.indexOf(w.getSubplot(N))&&X.push(j);var Z,J,K=!e.target;if(K)Z=\"xpx\"in e?e.xpx:S[0]._length/2,J=\"ypx\"in e?e.ypx:E[0]._length/2;else{if(!1===p.triggerHandler(t,\"plotly_beforehover\",e))return;var Q=e.target.getBoundingClientRect();if(Z=e.clientX-Q.left,J=e.clientY-Q.top,Z<0||Z>Q.width||J<0||J>Q.height)return b.unhoverRaw(t,e)}if(P=\"xval\"in e?w.flat(f,e.xval):w.p2c(S,Z),O=\"yval\"in e?w.flat(f,e.yval):w.p2c(E,J),!h(P[0])||!h(O[0]))return d.warn(\"Fx.hover failed\",e,t),b.unhoverRaw(t,e)}var $=1/0;for(F=0;F<X.length;F++)if((j=X[F])&&j[0]&&j[0].trace&&!0===j[0].trace.visible&&(N=j[0].trace,-1===[\"carpet\",\"contourcarpet\"].indexOf(N._module.name))){if(B=w.getSubplot(N),U=f.indexOf(B),V=D,G={cd:j,trace:N,xa:S[U],ya:E[U],index:!1,distance:Math.min($,M.MAXDIST),color:y.defaultLine,name:N.name,x0:void 0,x1:void 0,y0:void 0,y1:void 0,xLabelVal:void 0,yLabelVal:void 0,zLabelVal:void 0,text:void 0},m[B]&&(G.subplot=m[B]._subplot),Y=W.length,\"array\"===V){var tt=e[F];\"pointNumber\"in tt?(G.index=tt.pointNumber,V=\"closest\"):(V=\"\",\"xval\"in tt&&(H=tt.xval,V=\"x\"),\"yval\"in tt&&(q=tt.yval,V=V?\"closest\":\"y\"))}else H=P[U],q=O[U];if(N._module&&N._module.hoverPoints){var et=N._module.hoverPoints(G,H,q,V);if(et)for(var rt,nt=0;nt<et.length;nt++)rt=et[nt],h(rt.x0)&&h(rt.y0)&&W.push(s(rt,D))}else d.log(\"Unrecognized trace type in hover:\",N);\"closest\"===D&&W.length>Y&&(W.splice(0,Y),$=W[0].distance)}if(0===W.length)return b.unhoverRaw(t,e);W.sort(function(t,e){return t.distance-e.distance});var it=t._hoverdata,at=[];for(R=0;R<W.length;R++){var ot=W[R],st={data:ot.trace._input,fullData:ot.trace,curveNumber:ot.trace.index,pointNumber:ot.index};ot.trace._module.eventData?st=ot.trace._module.eventData(st,ot):(st.x=ot.xVal,st.y=ot.yVal,st.xaxis=ot.xa,st.yaxis=ot.ya,void 0!==ot.zLabelVal&&(st.z=ot.zLabelVal)),w.appendArrayPointValue(st,ot.trace,ot.index),at.push(st)}if(t._hoverdata=at,u(t,e,it)&&m._hasCartesian){l(W,{hovermode:D,fullLayout:m,container:m._hoverlayer,outerContainer:m._paperdiv})}var lt=\"y\"===D&&X.length>1,ut=y.combine(m.plot_bgcolor||y.background,m.paper_bgcolor),ct={hovermode:D,rotateLabels:lt,bgColor:ut,container:m._hoverlayer,outerContainer:m._paperdiv,commonLabelOpts:m.hoverlabel},ht=i(W,ct,t);if(a(W,lt?\"xa\":\"ya\"),o(ht,lt),e.target&&e.target.tagName){var ft=_.getComponentMethod(\"annotations\",\"hasClickToShow\")(t,at);v(c.select(e.target),ft?\"pointer\":\"\")}e.target&&!n&&u(t,e,it)&&(it&&t.emit(\"plotly_unhover\",{event:e,points:it}),t.emit(\"plotly_hover\",{event:e,points:t._hoverdata,xaxes:S,yaxes:E,xvals:P,yvals:O}))}function i(t,e,r){var n,i,a=e.hovermode,o=e.rotateLabels,s=e.bgColor,l=e.container,u=e.outerContainer,h=e.commonLabelOpts||{},f=e.fontFamily||M.HOVERFONT,d=e.fontSize||M.HOVERFONTSIZE,p=t[0],v=p.xa,b=p.ya,x=\"y\"===a?\"yLabel\":\"xLabel\",_=p[x],w=(String(_)||\"\").split(\" \")[0],A=u.node().getBoundingClientRect(),T=A.top,S=A.width,E=A.height,I=p.distance<=M.MAXDIST&&(\"x\"===a||\"y\"===a);for(n=0;n<t.length;n++){i=t[n].hoverinfo||t[n].trace.hoverinfo;var z=i.split(\"+\");if(-1===z.indexOf(\"all\")&&-1===z.indexOf(a)){I=!1;break}}var D=l.selectAll(\"g.axistext\").data(I?[0]:[]);D.enter().append(\"g\").classed(\"axistext\",!0),D.exit().remove(),D.each(function(){var e=c.select(this),n=e.selectAll(\"path\").data([0]),i=e.selectAll(\"text\").data([0]);n.enter().append(\"path\").style({\"stroke-width\":\"1px\"}),n.style({fill:h.bgcolor||y.defaultLine,stroke:h.bordercolor||y.background}),i.enter().append(\"text\").attr(\"data-notex\",1),i.text(_).call(g.font,h.font.family||f,h.font.size||d,h.font.color||y.background).call(m.positionText,0,0).call(m.convertToTspans,r),e.attr(\"transform\",\"\");var o=i.node().getBoundingClientRect();if(\"x\"===a){i.attr(\"text-anchor\",\"middle\").call(m.positionText,0,\"top\"===v.side?T-o.bottom-L-C:T-o.top+L+C);var s=\"top\"===v.side?\"-\":\"\";n.attr(\"d\",\"M0,0L\"+L+\",\"+s+L+\"H\"+(C+o.width/2)+\"v\"+s+(2*C+o.height)+\"H-\"+(C+o.width/2)+\"V\"+s+L+\"H-\"+L+\"Z\"),e.attr(\"transform\",\"translate(\"+(v._offset+(p.x0+p.x1)/2)+\",\"+(b._offset+(\"top\"===v.side?0:b._length))+\")\")}else{i.attr(\"text-anchor\",\"right\"===b.side?\"start\":\"end\").call(m.positionText,(\"right\"===b.side?1:-1)*(C+L),T-o.top-o.height/2);var l=\"right\"===b.side?\"\":\"-\";n.attr(\"d\",\"M0,0L\"+l+L+\",\"+L+\"V\"+(C+o.height/2)+\"h\"+l+(2*C+o.width)+\"V-\"+(C+o.height/2)+\"H\"+l+L+\"V-\"+L+\"Z\"),e.attr(\"transform\",\"translate(\"+(v._offset+(\"right\"===b.side?v._length:0))+\",\"+(b._offset+(p.y0+p.y1)/2)+\")\")}t=t.filter(function(t){return void 0!==t.zLabelVal||(t[x]||\"\").split(\" \")[0]===w})});var P=l.selectAll(\"g.hovertext\").data(t,function(t){return[t.trace.index,t.index,t.x0,t.y0,t.name,t.attr,t.xa,t.ya||\"\"].join(\",\")});return P.enter().append(\"g\").classed(\"hovertext\",!0).each(function(){var t=c.select(this);t.append(\"rect\").call(y.fill,y.addOpacity(s,.8)),t.append(\"text\").classed(\"name\",!0),t.append(\"path\").style(\"stroke-width\",\"1px\"),t.append(\"text\").classed(\"nums\",!0).call(g.font,f,d)}),P.exit().remove(),P.each(function(t){var e=c.select(this).attr(\"transform\",\"\"),n=\"\",i=\"\",l=y.opacity(t.color)?t.color:y.defaultLine,u=y.combine(l,s),h=t.borderColor||y.contrast(u);if(void 0!==t.nameOverride&&(t.name=t.nameOverride),t.name){n=m.plainText(t.name||\"\");var p=Math.round(t.nameLength);p>-1&&n.length>p&&(n=p>3?n.substr(0,p-3)+\"...\":n.substr(0,p))}void 0!==t.extraText&&(i+=t.extraText),void 0!==t.zLabel?(void 0!==t.xLabel&&(i+=\"x: \"+t.xLabel+\"<br>\"),void 0!==t.yLabel&&(i+=\"y: \"+t.yLabel+\"<br>\"),i+=(i?\"z: \":\"\")+t.zLabel):I&&t[a+\"Label\"]===_?i=t[(\"x\"===a?\"y\":\"x\")+\"Label\"]||\"\":void 0===t.xLabel?void 0!==t.yLabel&&(i=t.yLabel):i=void 0===t.yLabel?t.xLabel:\"(\"+t.xLabel+\", \"+t.yLabel+\")\",t.text&&!Array.isArray(t.text)&&(i+=(i?\"<br>\":\"\")+t.text),\"\"===i&&(\"\"===n&&e.remove(),i=n);var v=e.select(\"text.nums\").call(g.font,t.fontFamily||f,t.fontSize||d,t.fontColor||h).text(i).attr(\"data-notex\",1).call(m.positionText,0,0).call(m.convertToTspans,r),b=e.select(\"text.name\"),x=0;n&&n!==i?(b.call(g.font,t.fontFamily||f,t.fontSize||d,u).text(n).attr(\"data-notex\",1).call(m.positionText,0,0).call(m.convertToTspans,r),x=b.node().getBoundingClientRect().width+2*C):(b.remove(),e.select(\"rect\").remove()),e.select(\"path\").style({fill:u,stroke:h});var w,M,A=v.node().getBoundingClientRect(),z=t.xa._offset+(t.x0+t.x1)/2,D=t.ya._offset+(t.y0+t.y1)/2,P=Math.abs(t.x1-t.x0),O=Math.abs(t.y1-t.y0),R=A.width+L+C+x;t.ty0=T-A.top,t.bx=A.width+2*C,t.by=A.height+2*C,t.anchor=\"start\",t.txwidth=A.width,t.tx2width=x,t.offset=0,o?(t.pos=z,w=D+O/2+R<=E,M=D-O/2-R>=0,\"top\"!==t.idealAlign&&w||!M?w?(D+=O/2,t.anchor=\"start\"):t.anchor=\"middle\":(D-=O/2,t.anchor=\"end\")):(t.pos=D,w=z+P/2+R<=S,M=z-P/2-R>=0,\"left\"!==t.idealAlign&&w||!M?w?(z+=P/2,t.anchor=\"start\"):t.anchor=\"middle\":(z-=P/2,t.anchor=\"end\")),v.attr(\"text-anchor\",t.anchor),x&&b.attr(\"text-anchor\",t.anchor),e.attr(\"transform\",\"translate(\"+z+\",\"+D+\")\"+(o?\"rotate(\"+k+\")\":\"\"))}),P}function a(t,e){function r(t){var e=t[0],r=t[t.length-1];if(i=e.pmin-e.pos-e.dp+e.size,a=r.pos+r.dp+r.size-e.pmax,i>.01){for(s=t.length-1;s>=0;s--)t[s].dp+=i;n=!1}if(!(a<.01)){if(i<-.01){for(s=t.length-1;s>=0;s--)t[s].dp-=a;n=!1}if(n){var u=0;for(o=0;o<t.length;o++)l=t[o],l.pos+l.dp+l.size>e.pmax&&u++;for(o=t.length-1;o>=0&&!(u<=0);o--)l=t[o],l.pos>e.pmax-1&&(l.del=!0,u--);for(o=0;o<t.length&&!(u<=0);o++)if(l=t[o],l.pos<e.pmin+1)for(l.del=!0,u--,a=2*l.size,s=t.length-1;s>=0;s--)t[s].dp-=a;for(o=t.length-1;o>=0&&!(u<=0);o--)l=t[o],l.pos+l.dp+l.size>e.pmax&&(l.del=!0,u--)}}}for(var n,i,a,o,s,l,u,c=0,h=t.map(function(t,r){var n=t[e];return[{i:r,dp:0,pos:t.pos,posref:t.posref,size:t.by*(\"x\"===n._id.charAt(0)?T:1)/2,pmin:n._offset,pmax:n._offset+n._length}]}).sort(function(t,e){return t[0].posref-e[0].posref});!n&&c<=t.length;){for(c++,n=!0,o=0;o<h.length-1;){var f=h[o],d=h[o+1],p=f[f.length-1],m=d[0];if((i=p.pos+p.dp+p.size-m.pos-m.dp+m.size)>.01&&p.pmin===m.pmin&&p.pmax===m.pmax){for(s=d.length-1;s>=0;s--)d[s].dp+=i;for(f.push.apply(f,d),h.splice(o+1,1),u=0,s=f.length-1;s>=0;s--)u+=f[s].dp;for(a=u/f.length,s=f.length-1;s>=0;s--)f[s].dp-=a;n=!1}else o++}h.forEach(r)}for(o=h.length-1;o>=0;o--){var v=h[o];for(s=v.length-1;s>=0;s--){var g=v[s],y=t[g.i];y.offset=g.dp,y.del=g.del}}}function o(t,e){t.each(function(t){var r=c.select(this);if(t.del)return void r.remove();var n=\"end\"===t.anchor?-1:1,i=r.select(\"text.nums\"),a={start:1,end:-1,middle:0}[t.anchor],o=a*(L+C),s=o+a*(t.txwidth+C),l=0,u=t.offset;\"middle\"===t.anchor&&(o-=t.tx2width/2,s-=t.tx2width/2),e&&(u*=-E,l=t.offset*S),r.select(\"path\").attr(\"d\",\"middle\"===t.anchor?\"M-\"+t.bx/2+\",-\"+t.by/2+\"h\"+t.bx+\"v\"+t.by+\"h-\"+t.bx+\"Z\":\"M0,0L\"+(n*L+l)+\",\"+(L+u)+\"v\"+(t.by/2-L)+\"h\"+n*t.bx+\"v-\"+t.by+\"H\"+(n*L+l)+\"V\"+(u-L)+\"Z\"),i.call(m.positionText,o+l,u+t.ty0-t.by/2+C),t.tx2width&&(r.select(\"text.name\").call(m.positionText,s+a*C+l,u+t.ty0-t.by/2+C),r.select(\"rect\").call(g.setRect,s+(a-1)*t.tx2width/2+l,u-t.by/2-1,t.tx2width,t.by+2))})}function s(t,e){function r(e,r,n){var i=s(r,n);i&&(t[e]=i)}var n=t.index,i=t.trace||{},a=t.cd[0],o=t.cd[n]||{},s=Array.isArray(n)?function(t,e){return d.castOption(a,n,t)||d.extractOption({},i,\"\",e)}:function(t,e){return d.extractOption(o,i,t,e)};r(\"hoverinfo\",\"hi\",\"hoverinfo\"),r(\"color\",\"hbg\",\"hoverlabel.bgcolor\"),r(\"borderColor\",\"hbc\",\"hoverlabel.bordercolor\"),r(\"fontFamily\",\"htf\",\"hoverlabel.font.family\"),r(\"fontSize\",\"hts\",\"hoverlabel.font.size\"),r(\"fontColor\",\"htc\",\"hoverlabel.font.color\"),r(\"nameLength\",\"hnl\",\"hoverlabel.namelength\"),t.posref=\"y\"===e?(t.x0+t.x1)/2:(t.y0+t.y1)/2,t.x0=d.constrain(t.x0,0,t.xa._length),t.x1=d.constrain(t.x1,0,t.xa._length),t.y0=d.constrain(t.y0,0,t.ya._length),t.y1=d.constrain(t.y1,0,t.ya._length);var l;if(void 0!==t.xLabelVal){l=\"log\"===t.xa.type&&t.xLabelVal<=0;var u=x.tickText(t.xa,t.xa.c2l(l?-t.xLabelVal:t.xLabelVal),\"hover\");l?0===t.xLabelVal?t.xLabel=\"0\":t.xLabel=\"-\"+u.text:t.xLabel=u.text,t.xVal=t.xa.c2d(t.xLabelVal)}if(void 0!==t.yLabelVal){l=\"log\"===t.ya.type&&t.yLabelVal<=0;var c=x.tickText(t.ya,t.ya.c2l(l?-t.yLabelVal:t.yLabelVal),\"hover\");l?0===t.yLabelVal?t.yLabel=\"0\":t.yLabel=\"-\"+c.text:t.yLabel=c.text,t.yVal=t.ya.c2d(t.yLabelVal)}if(void 0!==t.zLabelVal&&(t.zLabel=String(t.zLabelVal)),!(isNaN(t.xerr)||\"log\"===t.xa.type&&t.xerr<=0)){var h=x.tickText(t.xa,t.xa.c2l(t.xerr),\"hover\").text;void 0!==t.xerrneg?t.xLabel+=\" +\"+h+\" / -\"+x.tickText(t.xa,t.xa.c2l(t.xerrneg),\"hover\").text:t.xLabel+=\" \\xb1 \"+h,\"x\"===e&&(t.distance+=1)}if(!(isNaN(t.yerr)||\"log\"===t.ya.type&&t.yerr<=0)){var f=x.tickText(t.ya,t.ya.c2l(t.yerr),\"hover\").text;void 0!==t.yerrneg?t.yLabel+=\" +\"+f+\" / -\"+x.tickText(t.ya,t.ya.c2l(t.yerrneg),\"hover\").text:t.yLabel+=\" \\xb1 \"+f,\"y\"===e&&(t.distance+=1)}var p=t.hoverinfo||t.trace.hoverinfo;return\"all\"!==p&&(p=p.split(\"+\"),-1===p.indexOf(\"x\")&&(t.xLabel=void 0),-1===p.indexOf(\"y\")&&(t.yLabel=void 0),-1===p.indexOf(\"z\")&&(t.zLabel=void 0),-1===p.indexOf(\"text\")&&(t.text=void 0),-1===p.indexOf(\"name\")&&(t.name=void 0)),t}function l(t,e){var r=e.hovermode,n=e.container,i=t[0],a=i.xa,o=i.ya,s=a.showspikes,l=o.showspikes;if(n.selectAll(\".spikeline\").remove(),\"closest\"===r&&(s||l)){var u=e.fullLayout,c=a._offset+(i.x0+i.x1)/2,h=o._offset+(i.y0+i.y1)/2,d=y.combine(u.plot_bgcolor,u.paper_bgcolor),p=f.readability(i.color,d)<1.5?y.contrast(d):i.color;if(l){var m=o.spikemode,v=o.spikethickness,b=o.spikecolor||p,x=o._boundingBox,_=(x.left+x.right)/2<c?x.right:x.left;if(-1!==m.indexOf(\"toaxis\")||-1!==m.indexOf(\"across\")){var w=_,M=c;-1!==m.indexOf(\"across\")&&(w=o._counterSpan[0],M=o._counterSpan[1]),n.append(\"line\").attr({x1:w,x2:M,y1:h,y2:h,\"stroke-width\":v+2,stroke:d}).classed(\"spikeline\",!0).classed(\"crisp\",!0),n.append(\"line\").attr({x1:w,x2:M,y1:h,y2:h,\"stroke-width\":v,stroke:b,\"stroke-dasharray\":g.dashStyle(o.spikedash,v)}).classed(\"spikeline\",!0).classed(\"crisp\",!0)}-1!==m.indexOf(\"marker\")&&n.append(\"circle\").attr({cx:_+(\"right\"!==o.side?v:-v),cy:h,r:v,fill:b}).classed(\"spikeline\",!0)}if(s){var k=a.spikemode,A=a.spikethickness,T=a.spikecolor||p,S=a._boundingBox,E=(S.top+S.bottom)/2<h?S.bottom:S.top;if(-1!==k.indexOf(\"toaxis\")||-1!==k.indexOf(\"across\")){var L=E,C=h;-1!==k.indexOf(\"across\")&&(L=a._counterSpan[0],C=a._counterSpan[1]),n.append(\"line\").attr({x1:c,x2:c,y1:L,y2:C,\"stroke-width\":A+2,stroke:d}).classed(\"spikeline\",!0).classed(\"crisp\",!0),n.append(\"line\").attr({x1:c,x2:c,y1:L,y2:C,\"stroke-width\":A,stroke:T,\"stroke-dasharray\":g.dashStyle(a.spikedash,A)}).classed(\"spikeline\",!0).classed(\"crisp\",!0)}-1!==k.indexOf(\"marker\")&&n.append(\"circle\").attr({cx:c,cy:E-(\"top\"!==a.side?A:-A),r:A,fill:T}).classed(\"spikeline\",!0)}}}function u(t,e,r){if(!r||r.length!==t._hoverdata.length)return!0;for(var n=r.length-1;n>=0;n--){var i=r[n],a=t._hoverdata[n];if(i.curveNumber!==a.curveNumber||String(i.pointNumber)!==String(a.pointNumber))return!0}return!1}var c=t(\"d3\"),h=t(\"fast-isnumeric\"),f=t(\"tinycolor2\"),d=t(\"../../lib\"),p=t(\"../../lib/events\"),m=t(\"../../lib/svg_text_utils\"),v=t(\"../../lib/override_cursor\"),g=t(\"../drawing\"),y=t(\"../color\"),b=t(\"../dragelement\"),x=t(\"../../plots/cartesian/axes\"),_=t(\"../../registry\"),w=t(\"./helpers\"),M=t(\"./constants\"),k=M.YANGLE,A=Math.PI*k/180,T=1/Math.sin(A),S=Math.cos(A),E=Math.sin(A),L=M.HOVERARROWSIZE,C=M.HOVERTEXTPAD;r.hover=function(t,e,r,i){t=d.getGraphDiv(t),d.throttle(t._fullLayout._uid+M.HOVERID,M.HOVERMINTIME,function(){n(t,e,r,i)})},r.loneHover=function(t,e){var r={color:t.color||y.defaultLine,x0:t.x0||t.x||0,x1:t.x1||t.x||0,y0:t.y0||t.y||0,y1:t.y1||t.y||0,xLabel:t.xLabel,yLabel:t.yLabel,zLabel:t.zLabel,text:t.text,name:t.name,idealAlign:t.idealAlign,borderColor:t.borderColor,fontFamily:t.fontFamily,fontSize:t.fontSize,fontColor:t.fontColor,trace:{index:0,hoverinfo:\"\"},xa:{_offset:0},ya:{_offset:0},index:0},n=c.select(e.container),a=e.outerContainer?c.select(e.outerContainer):n,s={hovermode:\"closest\",rotateLabels:!1,bgColor:e.bgColor||y.background,container:n,outerContainer:a},l=i([r],s,e.gd);return o(l,s.rotateLabels),l.node()}},{\"../../lib\":728,\"../../lib/events\":716,\"../../lib/override_cursor\":738,\"../../lib/svg_text_utils\":750,\"../../plots/cartesian/axes\":772,\"../../registry\":846,\"../color\":604,\"../dragelement\":625,\"../drawing\":628,\"./constants\":640,\"./helpers\":642,d3:122,\"fast-isnumeric\":131,tinycolor2:534}],644:[function(t,e,r){\"use strict\";var n=t(\"../../lib\");e.exports=function(t,e,r,i){i=i||{},r(\"hoverlabel.bgcolor\",i.bgcolor),r(\"hoverlabel.bordercolor\",i.bordercolor),r(\"hoverlabel.namelength\",i.namelength),n.coerceFont(r,\"hoverlabel.font\",i.font)}},{\"../../lib\":728}],645:[function(t,e,r){\"use strict\";function n(t){var e=s.isD3Selection(t)?t:o.select(t);e.selectAll(\"g.hovertext\").remove(),e.selectAll(\".spikeline\").remove()}function i(t,e,r){return s.castOption(t,e,\"hoverlabel.\"+r)}function a(t,e,r){function n(r){return s.coerceHoverinfo({hoverinfo:r},{_module:t._module},e)}return s.castOption(t,r,\"hoverinfo\",n)}var o=t(\"d3\"),s=t(\"../../lib\"),l=t(\"../dragelement\"),u=t(\"./helpers\"),c=t(\"./layout_attributes\");e.exports={moduleType:\"component\",name:\"fx\",constants:t(\"./constants\"),schema:{layout:c},attributes:t(\"./attributes\"),layoutAttributes:c,supplyLayoutGlobalDefaults:t(\"./layout_global_defaults\"),supplyDefaults:t(\"./defaults\"),supplyLayoutDefaults:t(\"./layout_defaults\"),calc:t(\"./calc\"),getDistanceFunction:u.getDistanceFunction,getClosest:u.getClosest,inbox:u.inbox,appendArrayPointValue:u.appendArrayPointValue,castHoverOption:i,castHoverinfo:a,hover:t(\"./hover\").hover,unhover:l.unhover,loneHover:t(\"./hover\").loneHover,loneUnhover:n,click:t(\"./click\")}},{\"../../lib\":728,\"../dragelement\":625,\"./attributes\":637,\"./calc\":638,\"./click\":639,\"./constants\":640,\"./defaults\":641,\"./helpers\":642,\"./hover\":643,\"./layout_attributes\":646,\"./layout_defaults\":647,\"./layout_global_defaults\":648,d3:122}],646:[function(t,e,r){\"use strict\";var n=t(\"./constants\"),i=t(\"../../plots/font_attributes\")({editType:\"none\"});i.family.dflt=n.HOVERFONT,i.size.dflt=n.HOVERFONTSIZE,e.exports={dragmode:{valType:\"enumerated\",values:[\"zoom\",\"pan\",\"select\",\"lasso\",\"orbit\",\"turntable\"],dflt:\"zoom\",editType:\"modebar\"},hovermode:{valType:\"enumerated\",values:[\"x\",\"y\",\"closest\",!1],editType:\"modebar\"},hoverlabel:{bgcolor:{valType:\"color\",editType:\"none\"},bordercolor:{valType:\"color\",editType:\"none\"},font:i,namelength:{valType:\"integer\",min:-1,dflt:15,editType:\"none\"},editType:\"none\"}}},{\"../../plots/font_attributes\":796,\"./constants\":640}],647:[function(t,e,r){\"use strict\";function n(t){for(var e=!0,r=0;r<t.length;r++){if(\"h\"!==t[r].orientation){e=!1;break}}return e}var i=t(\"../../lib\"),a=t(\"./layout_attributes\");e.exports=function(t,e,r){function o(r,n){return i.coerce(t,e,a,r,n)}o(\"dragmode\");var s;e._has(\"cartesian\")?(e._isHoriz=n(r),s=e._isHoriz?\"y\":\"x\"):s=\"closest\",o(\"hovermode\",s);var l=e._has(\"mapbox\"),u=e._has(\"geo\"),c=e._basePlotModules.length;\"zoom\"===e.dragmode&&((l||u)&&1===c||l&&u&&2===c)&&(e.dragmode=\"pan\")}},{\"../../lib\":728,\"./layout_attributes\":646}],648:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"./hoverlabel_defaults\"),a=t(\"./layout_attributes\");e.exports=function(t,e){function r(r,i){return n.coerce(t,e,a,r,i)}i(t,e,r)}},{\"../../lib\":728,\"./hoverlabel_defaults\":644,\"./layout_attributes\":646}],649:[function(t,e,r){\"use strict\";var n=t(\"../../plots/cartesian/constants\");e.exports={_isLinkedToArray:\"image\",visible:{valType:\"boolean\",dflt:!0,editType:\"arraydraw\"},source:{valType:\"string\",editType:\"arraydraw\"},layer:{valType:\"enumerated\",values:[\"below\",\"above\"],dflt:\"above\",editType:\"arraydraw\"},sizex:{valType:\"number\",dflt:0,editType:\"arraydraw\"},sizey:{valType:\"number\",dflt:0,editType:\"arraydraw\"},sizing:{valType:\"enumerated\",values:[\"fill\",\"contain\",\"stretch\"],dflt:\"contain\",editType:\"arraydraw\"},opacity:{valType:\"number\",min:0,max:1,dflt:1,editType:\"arraydraw\"},x:{valType:\"any\",dflt:0,editType:\"arraydraw\"},y:{valType:\"any\",dflt:0,editType:\"arraydraw\"},xanchor:{valType:\"enumerated\",values:[\"left\",\"center\",\"right\"],dflt:\"left\",editType:\"arraydraw\"},yanchor:{valType:\"enumerated\",values:[\"top\",\"middle\",\"bottom\"],dflt:\"top\",editType:\"arraydraw\"},xref:{valType:\"enumerated\",values:[\"paper\",n.idRegex.x.toString()],dflt:\"paper\",editType:\"arraydraw\"},yref:{valType:\"enumerated\",values:[\"paper\",n.idRegex.y.toString()],dflt:\"paper\",editType:\"arraydraw\"},editType:\"arraydraw\"}},{\"../../plots/cartesian/constants\":777}],650:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../../lib/to_log_range\");e.exports=function(t,e,r,a){e=e||{};var o=\"log\"===r&&\"linear\"===e.type,s=\"linear\"===r&&\"log\"===e.type;if(o||s)for(var l,u,c=t._fullLayout.images,h=e._id.charAt(0),f=0;f<c.length;f++)if(l=c[f],u=\"images[\"+f+\"].\",l[h+\"ref\"]===e._id){var d=l[h],p=l[\"size\"+h],m=null,v=null;if(o){m=i(d,e.range);var g=p/Math.pow(10,m)/2;v=2*Math.log(g+Math.sqrt(1+g*g))/Math.LN10}else m=Math.pow(10,d),v=m*(Math.pow(10,p/2)-Math.pow(10,-p/2));n(m)?n(v)||(v=null):(m=null,v=null),a(u+h,m),a(u+\"size\"+h,v)}}},{\"../../lib/to_log_range\":752,\"fast-isnumeric\":131}],651:[function(t,e,r){\"use strict\";function n(t,e,r){function n(r,n){return i.coerce(t,e,s,r,n)}if(!n(\"visible\",!!n(\"source\")))return e;n(\"layer\"),n(\"xanchor\"),n(\"yanchor\"),n(\"sizex\"),n(\"sizey\"),n(\"sizing\"),n(\"opacity\");for(var o={_fullLayout:r},l=[\"x\",\"y\"],u=0;u<2;u++){var c=l[u],h=a.coerceRef(t,e,o,c,\"paper\");a.coercePosition(e,o,n,h,c,0)}return e}var i=t(\"../../lib\"),a=t(\"../../plots/cartesian/axes\"),o=t(\"../../plots/array_container_defaults\"),s=t(\"./attributes\");e.exports=function(t,e){o(t,e,{name:\"images\",handleItemDefaults:n})}},{\"../../lib\":728,\"../../plots/array_container_defaults\":769,\"../../plots/cartesian/axes\":772,\"./attributes\":649}],652:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../drawing\"),a=t(\"../../plots/cartesian/axes\"),o=t(\"../../constants/xmlns_namespaces\");e.exports=function(t){function e(e){var r=n.select(this);if(!this.img||this.img.src!==e.source){r.attr(\"xmlns\",o.svg);var i=new Promise(function(t){function n(){r.remove(),t()}var i=new Image;this.img=i,i.setAttribute(\"crossOrigin\",\"anonymous\"),i.onerror=n,i.onload=function(){var e=document.createElement(\"canvas\");e.width=this.width,e.height=this.height,e.getContext(\"2d\").drawImage(this,0,0);var n=e.toDataURL(\"image/png\");r.attr(\"xlink:href\",n),t()},r.on(\"error\",n),i.src=e.source}.bind(this));t._promises.push(i)}}function r(e){var r=n.select(this),o=a.getFromId(t,e.xref),s=a.getFromId(t,e.yref),l=u._size,c=o?Math.abs(o.l2p(e.sizex)-o.l2p(0)):e.sizex*l.w,h=s?Math.abs(s.l2p(e.sizey)-s.l2p(0)):e.sizey*l.h,f=c*m.x[e.xanchor].offset,d=h*m.y[e.yanchor].offset,p=m.x[e.xanchor].sizing+m.y[e.yanchor].sizing,v=(o?o.r2p(e.x)+o._offset:e.x*l.w+l.l)+f,g=(s?s.r2p(e.y)+s._offset:l.h-e.y*l.h+l.t)+d;switch(e.sizing){case\"fill\":p+=\" slice\";break;case\"stretch\":p=\"none\"}r.attr({x:v,y:g,width:c,height:h,preserveAspectRatio:p,opacity:e.opacity});var y=o?o._id:\"\",b=s?s._id:\"\",x=y+b;r.call(i.setClipUrl,x?\"clip\"+u._uid+x:null)}var s,l,u=t._fullLayout,c=[],h={},f=[];for(l=0;l<u.images.length;l++){var d=u.images[l];if(d.visible)if(\"below\"===d.layer&&\"paper\"!==d.xref&&\"paper\"!==d.yref){s=d.xref+d.yref;var p=u._plots[s];if(!p){f.push(d);continue}p.mainplot&&(s=p.mainplot.id),h[s]||(h[s]=[]),h[s].push(d)}else\"above\"===d.layer?c.push(d):f.push(d)}var m={x:{left:{sizing:\"xMin\",offset:0},center:{sizing:\"xMid\",offset:-.5},right:{sizing:\"xMax\",offset:-1}},y:{top:{sizing:\"YMin\",offset:0},middle:{sizing:\"YMid\",offset:-.5},bottom:{sizing:\"YMax\",offset:-1}}},v=u._imageLowerLayer.selectAll(\"image\").data(f),g=u._imageUpperLayer.selectAll(\"image\").data(c);v.enter().append(\"image\"),g.enter().append(\"image\"),v.exit().remove(),g.exit().remove(),v.each(function(t){e.bind(this)(t),r.bind(this)(t)}),g.each(function(t){e.bind(this)(t),r.bind(this)(t)});var y=Object.keys(u._plots);for(l=0;l<y.length;l++){s=y[l];var b=u._plots[s];if(b.imagelayer){var x=b.imagelayer.selectAll(\"image\").data(h[s]||[]);x.enter().append(\"image\"),x.exit().remove(),x.each(function(t){e.bind(this)(t),r.bind(this)(t)})}}}},{\"../../constants/xmlns_namespaces\":709,\"../../plots/cartesian/axes\":772,\"../drawing\":628,d3:122}],653:[function(t,e,r){\"use strict\";e.exports={moduleType:\"component\",name:\"images\",layoutAttributes:t(\"./attributes\"),supplyLayoutDefaults:t(\"./defaults\"),draw:t(\"./draw\"),convertCoords:t(\"./convert_coords\")}},{\"./attributes\":649,\"./convert_coords\":650,\"./defaults\":651,\"./draw\":652}],654:[function(t,e,r){\"use strict\";r.isRightAnchor=function(t){return\"right\"===t.xanchor||\"auto\"===t.xanchor&&t.x>=2/3},r.isCenterAnchor=function(t){return\"center\"===t.xanchor||\"auto\"===t.xanchor&&t.x>1/3&&t.x<2/3},r.isBottomAnchor=function(t){return\"bottom\"===t.yanchor||\"auto\"===t.yanchor&&t.y<=1/3},r.isMiddleAnchor=function(t){return\"middle\"===t.yanchor||\"auto\"===t.yanchor&&t.y>1/3&&t.y<2/3}},{}],655:[function(t,e,r){\"use strict\";var n=t(\"../../plots/font_attributes\"),i=t(\"../color/attributes\");e.exports={bgcolor:{valType:\"color\",editType:\"legend\"},bordercolor:{valType:\"color\",dflt:i.defaultLine,editType:\"legend\"},borderwidth:{valType:\"number\",min:0,dflt:0,editType:\"legend\"},font:n({editType:\"legend\"}),orientation:{valType:\"enumerated\",values:[\"v\",\"h\"],dflt:\"v\",editType:\"legend\"},traceorder:{valType:\"flaglist\",flags:[\"reversed\",\"grouped\"],extras:[\"normal\"],editType:\"legend\"},tracegroupgap:{valType:\"number\",min:0,dflt:10,editType:\"legend\"},x:{valType:\"number\",min:-2,max:3,dflt:1.02,editType:\"legend\"},xanchor:{valType:\"enumerated\",values:[\"auto\",\"left\",\"center\",\"right\"],dflt:\"left\",editType:\"legend\"},y:{valType:\"number\",min:-2,max:3,dflt:1,editType:\"legend\"},yanchor:{valType:\"enumerated\",values:[\"auto\",\"top\",\"middle\",\"bottom\"],dflt:\"auto\",editType:\"legend\"},editType:\"legend\"}},{\"../../plots/font_attributes\":796,\"../color/attributes\":603}],656:[function(t,e,r){\"use strict\";e.exports={scrollBarWidth:4,scrollBarHeight:20,scrollBarColor:\"#808BA4\",scrollBarMargin:4}},{}],657:[function(t,e,r){\"use strict\";var n=t(\"../../registry\"),i=t(\"../../lib\"),a=t(\"./attributes\"),o=t(\"../../plots/layout_attributes\"),s=t(\"./helpers\");e.exports=function(t,e,r){function l(t,e){return i.coerce(d,p,a,t,e)}for(var u,c,h,f,d=t.legend||{},p=e.legend={},m=0,v=\"normal\",g=0;g<r.length;g++){var y=r[g];s.legendGetsTrace(y)&&(m++,n.traceIs(y,\"pie\")&&m++),(n.traceIs(y,\"bar\")&&\"stack\"===e.barmode||-1!==[\"tonextx\",\"tonexty\"].indexOf(y.fill))&&(v=s.isGrouped({traceorder:v})?\"grouped+reversed\":\"reversed\"),void 0!==y.legendgroup&&\"\"!==y.legendgroup&&(v=s.isReversed({traceorder:v})?\"reversed+grouped\":\"grouped\")}if(!1!==i.coerce(t,e,o,\"showlegend\",m>1)){if(l(\"bgcolor\",e.paper_bgcolor),l(\"bordercolor\"),l(\"borderwidth\"),i.coerceFont(l,\"font\",e.font),l(\"orientation\"),\"h\"===p.orientation){var b=t.xaxis;b&&b.rangeslider&&b.rangeslider.visible?(u=0,h=\"left\",c=1.1,f=\"bottom\"):(u=0,h=\"left\",c=-.1,f=\"top\")}l(\"traceorder\",v),s.isGrouped(e.legend)&&l(\"tracegroupgap\"),l(\"x\",u),l(\"xanchor\",h),l(\"y\",c),l(\"yanchor\",f),i.noneOrAll(d,p,[\"x\",\"y\"])}}},{\"../../lib\":728,\"../../plots/layout_attributes\":822,\"../../registry\":846,\"./attributes\":655,\"./helpers\":661}],658:[function(t,e,r){\"use strict\";function n(t,e){function r(r){g.convertToTspans(r,e,function(){a(t,e)})}var n=t.data()[0][0],i=e._fullLayout,o=n.trace,s=d.traceIs(o,\"pie\"),l=o.index,u=s?n.label:o.name,f=t.selectAll(\"text.legendtext\").data([0]);f.enter().append(\"text\").classed(\"legendtext\",!0),f.attr(\"text-anchor\",\"start\").classed(\"user-select-none\",!0).call(m.font,i.legend.font).text(u),e._context.edits.legendText&&!s?f.call(g.makeEditable,{gd:e}).call(r).on(\"edit\",function(t){this.text(t).call(r);var i=t;this.text()||(t=\" \");var a,o,s=n.trace._fullInput||{},u={};if(-1!==[\"ohlc\",\"candlestick\"].indexOf(s.type))a=n.trace.transforms,o=a[a.length-1].direction,u[o+\".name\"]=t;else if(d.hasTransform(s,\"groupby\")){var f=d.getTransformIndices(s,\"groupby\"),p=f[f.length-1],m=h.keyedContainer(s,\"transforms[\"+p+\"].styles\",\"target\",\"value.name\");\"\"===i?m.remove(n.trace._group):m.set(n.trace._group,t),u=m.constructUpdate()}else u.name=t;return c.restyle(e,u,l)}):f.call(r)}function i(t,e){var r,n=1,i=t.selectAll(\"rect\").data([0]);i.enter().append(\"rect\").classed(\"legendtoggle\",!0).style(\"cursor\",\"pointer\").attr(\"pointer-events\",\"all\").call(v.fill,\"rgba(0,0,0,0)\"),i.on(\"mousedown\",function(){r=(new Date).getTime(),r-e._legendMouseDownTime<T?n+=1:(n=1,e._legendMouseDownTime=r)}),i.on(\"mouseup\",function(){if(!e._dragged&&!e._editing){var r=e._fullLayout.legend;(new Date).getTime()-e._legendMouseDownTime>T&&(n=Math.max(n-1,1)),1===n?r._clickTimeout=setTimeout(function(){y(t,e,n)},T):2===n&&(r._clickTimeout&&clearTimeout(r._clickTimeout),e._legendMouseDownTime=0,y(t,e,n))}})}function a(t,e){var r=t.data()[0][0];if(!r.trace.showlegend)return void t.remove();var n,i,a=t.select(\"g[class*=math-group]\"),o=a.node(),s=e._fullLayout.legend,l=s.font.size*_;if(o){var u=m.bBox(o);n=u.height,i=u.width,m.setTranslate(a,0,n/4)}else{var c=t.select(\".legendtext\"),h=g.lineCount(c),f=c.node();n=l*h,i=f?m.bBox(f).width:0;var d=l*(.3+(1-h)/2);g.positionText(c,40,d)}n=Math.max(n,16)+3,r.height=n,r.width=i}function o(t,e,r){var n=t._fullLayout,i=n.legend,a=i.borderwidth,o=k.isGrouped(i),s=0;if(i.width=0,i.height=0,k.isVertical(i))o&&e.each(function(t,e){m.setTranslate(this,0,e*i.tracegroupgap)}),r.each(function(t){var e=t[0],r=e.height,n=e.width;m.setTranslate(this,a,5+a+i.height+r/2),i.height+=r,i.width=Math.max(i.width,n)}),i.width+=45+2*a,i.height+=10+2*a,o&&(i.height+=(i._lgroupsLength-1)*i.tracegroupgap),s=40;else if(o){for(var l=[i.width],c=e.data(),h=0,f=c.length;h<f;h++){var d=c[h].map(function(t){return t[0].width}),p=40+Math.max.apply(null,d);i.width+=i.tracegroupgap+p,l.push(i.width)}e.each(function(t,e){m.setTranslate(this,l[e],0)}),e.each(function(){var t=u.select(this),e=t.selectAll(\"g.traces\"),r=0;e.each(function(t){var e=t[0],n=e.height;m.setTranslate(this,0,5+a+r+n/2),r+=n}),i.height=Math.max(i.height,r)}),i.height+=10+2*a,i.width+=2*a}else{var v=0,g=0,y=0,b=0;r.each(function(t){y=Math.max(40+t[0].width,y)}),r.each(function(t){var e=t[0],r=y,o=i.tracegroupgap||5;a+b+o+r>n.width-(n.margin.r+n.margin.l)&&(b=0,v+=g,i.height=i.height+g,g=0),m.setTranslate(this,a+b,5+a+e.height/2+v),i.width+=o+r,i.height=Math.max(i.height,e.height),b+=o+r,g=Math.max(e.height,g)}),i.width+=2*a,i.height+=10+2*a}i.width=Math.ceil(i.width),i.height=Math.ceil(i.height),r.each(function(e){var r=e[0];u.select(this).select(\".legendtoggle\").call(m.setRect,0,-r.height/2,(t._context.edits.legendText?0:i.width)+s,r.height)})}function s(t){var e=t._fullLayout,r=e.legend,n=\"left\";A.isRightAnchor(r)?n=\"right\":A.isCenterAnchor(r)&&(n=\"center\");var i=\"top\";A.isBottomAnchor(r)?i=\"bottom\":A.isMiddleAnchor(r)&&(i=\"middle\"),f.autoMargin(t,\"legend\",{x:r.x,y:r.y,l:r.width*({right:1,center:.5}[n]||0),r:r.width*({left:1,center:.5}[n]||0),b:r.height*({top:1,middle:.5}[i]||0),t:r.height*({bottom:1,middle:.5}[i]||0)})}function l(t){var e=t._fullLayout,r=e.legend,n=\"left\";A.isRightAnchor(r)?n=\"right\":A.isCenterAnchor(r)&&(n=\"center\"),f.autoMargin(t,\"legend\",{x:r.x,y:.5,l:r.width*({right:1,center:.5}[n]||0),r:r.width*({left:1,center:.5}[n]||0),b:0,t:0})}var u=t(\"d3\"),c=t(\"../../plotly\"),h=t(\"../../lib\"),f=t(\"../../plots/plots\"),d=t(\"../../registry\"),p=t(\"../dragelement\"),m=t(\"../drawing\"),v=t(\"../color\"),g=t(\"../../lib/svg_text_utils\"),y=t(\"./handle_click\"),b=t(\"./constants\"),x=t(\"../../constants/interactions\"),_=t(\"../../constants/alignment\").LINE_SPACING,w=t(\"./get_legend_data\"),M=t(\"./style\"),k=t(\"./helpers\"),A=t(\"./anchor_utils\"),T=x.DBLCLICKDELAY;e.exports=function(t){function e(t,e){L.attr(\"data-scroll\",e).call(m.setTranslate,0,e),C.call(m.setRect,N,t,b.scrollBarWidth,b.scrollBarHeight),S.select(\"rect\").attr({y:g.borderwidth-e})}var r=t._fullLayout,a=\"legend\"+r._uid;if(r._infolayer&&t.calcdata){t._legendMouseDownTime||(t._legendMouseDownTime=0);var g=r.legend,x=r.showlegend&&w(t.calcdata,g),_=r.hiddenlabels||[];if(!r.showlegend||!x.length)return r._infolayer.selectAll(\".legend\").remove(),r._topdefs.select(\"#\"+a).remove(),void f.autoMargin(t,\"legend\");var k=r._infolayer.selectAll(\"g.legend\").data([0]);k.enter().append(\"g\").attr({class:\"legend\",\"pointer-events\":\"all\"});var S=r._topdefs.selectAll(\"#\"+a).data([0]);S.enter().append(\"clipPath\").attr(\"id\",a).append(\"rect\");var E=k.selectAll(\"rect.bg\").data([0]);E.enter().append(\"rect\").attr({class:\"bg\",\"shape-rendering\":\"crispEdges\"}),E.call(v.stroke,g.bordercolor),E.call(v.fill,g.bgcolor),E.style(\"stroke-width\",g.borderwidth+\"px\");var L=k.selectAll(\"g.scrollbox\").data([0]);L.enter().append(\"g\").attr(\"class\",\"scrollbox\");var C=k.selectAll(\"rect.scrollbar\").data([0]);C.enter().append(\"rect\").attr({class:\"scrollbar\",rx:20,ry:2,width:0,height:0}).call(v.fill,\"#808BA4\");var I=L.selectAll(\"g.groups\").data(x);I.enter().append(\"g\").attr(\"class\",\"groups\"),I.exit().remove();var z=I.selectAll(\"g.traces\").data(h.identity)\n", ";z.enter().append(\"g\").attr(\"class\",\"traces\"),z.exit().remove(),z.call(M,t).style(\"opacity\",function(t){var e=t[0].trace;return d.traceIs(e,\"pie\")?-1!==_.indexOf(t[0].label)?.5:1:\"legendonly\"===e.visible?.5:1}).each(function(){u.select(this).call(n,t).call(i,t)});var D=0!==k.enter().size();D&&(o(t,I,z),s(t));var P=r.width,O=r.height;o(t,I,z),g.height>O?l(t):s(t);var R=r._size,F=R.l+R.w*g.x,j=R.t+R.h*(1-g.y);A.isRightAnchor(g)?F-=g.width:A.isCenterAnchor(g)&&(F-=g.width/2),A.isBottomAnchor(g)?j-=g.height:A.isMiddleAnchor(g)&&(j-=g.height/2);var N=g.width,B=R.w;N>B?(F=R.l,N=B):(F+N>P&&(F=P-N),F<0&&(F=0),N=Math.min(P-F,g.width));var U=g.height,V=R.h;U>V?(j=R.t,U=V):(j+U>O&&(j=O-U),j<0&&(j=0),U=Math.min(O-j,g.height)),m.setTranslate(k,F,j);var H,q,G=U-b.scrollBarHeight-2*b.scrollBarMargin,Y=g.height-U;if(g.height<=U||t._context.staticPlot)E.attr({width:N-g.borderwidth,height:U-g.borderwidth,x:g.borderwidth/2,y:g.borderwidth/2}),m.setTranslate(L,0,0),S.select(\"rect\").attr({width:N-2*g.borderwidth,height:U-2*g.borderwidth,x:g.borderwidth,y:g.borderwidth}),L.call(m.setClipUrl,a);else{H=b.scrollBarMargin,q=L.attr(\"data-scroll\")||0,E.attr({width:N-2*g.borderwidth+b.scrollBarWidth+b.scrollBarMargin,height:U-g.borderwidth,x:g.borderwidth/2,y:g.borderwidth/2}),S.select(\"rect\").attr({width:N-2*g.borderwidth+b.scrollBarWidth+b.scrollBarMargin,height:U-2*g.borderwidth,x:g.borderwidth,y:g.borderwidth-q}),L.call(m.setClipUrl,a),D&&e(H,q),k.on(\"wheel\",null),k.on(\"wheel\",function(){q=h.constrain(L.attr(\"data-scroll\")-u.event.deltaY/G*Y,-Y,0),H=b.scrollBarMargin-q/Y*G,e(H,q),0!==q&&q!==-Y&&u.event.preventDefault()}),C.on(\".drag\",null),L.on(\".drag\",null);var W=u.behavior.drag().on(\"drag\",function(){H=h.constrain(u.event.y-b.scrollBarHeight/2,b.scrollBarMargin,b.scrollBarMargin+G),q=-(H-b.scrollBarMargin)/G*Y,e(H,q)});C.call(W),L.call(W)}if(t._context.edits.legendPosition){var X,Z,J,K;k.classed(\"cursor-move\",!0),p.init({element:k.node(),gd:t,prepFn:function(){var t=m.getTranslate(k);J=t.x,K=t.y},moveFn:function(t,e){var r=J+t,n=K+e;m.setTranslate(k,r,n),X=p.align(r,0,R.l,R.l+R.w,g.xanchor),Z=p.align(n,0,R.t+R.h,R.t,g.yanchor)},doneFn:function(e,n,i){if(e&&void 0!==X&&void 0!==Z)c.relayout(t,{\"legend.x\":X,\"legend.y\":Z});else{var a=r._infolayer.selectAll(\"g.traces\").filter(function(){var t=this.getBoundingClientRect();return i.clientX>=t.left&&i.clientX<=t.right&&i.clientY>=t.top&&i.clientY<=t.bottom});a.size()>0&&(1===n?k._clickTimeout=setTimeout(function(){y(a,t,n)},T):2===n&&(k._clickTimeout&&clearTimeout(k._clickTimeout),y(a,t,n)))}}})}}}},{\"../../constants/alignment\":701,\"../../constants/interactions\":706,\"../../lib\":728,\"../../lib/svg_text_utils\":750,\"../../plotly\":767,\"../../plots/plots\":831,\"../../registry\":846,\"../color\":604,\"../dragelement\":625,\"../drawing\":628,\"./anchor_utils\":654,\"./constants\":656,\"./get_legend_data\":659,\"./handle_click\":660,\"./helpers\":661,\"./style\":663,d3:122}],659:[function(t,e,r){\"use strict\";var n=t(\"../../registry\"),i=t(\"./helpers\");e.exports=function(t,e){function r(t,r){if(\"\"!==t&&i.isGrouped(e))-1===l.indexOf(t)?(l.push(t),u=!0,s[t]=[[r]]):s[t].push([r]);else{var n=\"~~i\"+h;l.push(n),s[n]=[[r]],h++}}var a,o,s={},l=[],u=!1,c={},h=0;for(a=0;a<t.length;a++){var f=t[a],d=f[0],p=d.trace,m=p.legendgroup;if(i.legendGetsTrace(p)&&p.showlegend)if(n.traceIs(p,\"pie\"))for(c[m]||(c[m]={}),o=0;o<f.length;o++){var v=f[o].label;c[m][v]||(r(m,{label:v,color:f[o].color,i:f[o].i,trace:p}),c[m][v]=!0)}else r(m,d)}if(!l.length)return[];var g,y,b=l.length;if(u&&i.isGrouped(e))for(y=new Array(b),a=0;a<b;a++)g=s[l[a]],y[a]=i.isReversed(e)?g.reverse():g;else{for(y=[new Array(b)],a=0;a<b;a++)g=s[l[a]][0],y[0][i.isReversed(e)?b-a-1:a]=g;b=1}return e._lgroupsLength=b,y}},{\"../../registry\":846,\"./helpers\":661}],660:[function(t,e,r){\"use strict\";var n=t(\"../../plotly\"),i=t(\"../../lib\"),a=t(\"../../registry\"),o=!0;e.exports=function(t,e,r){function s(t,e,r){var n=_.indexOf(t),i=x[e];return i||(i=x[e]=[]),-1===_.indexOf(t)&&(_.push(t),n=_.length-1),i[n]=r,n}function l(t,e){var r=t._fullInput;if(a.hasTransform(r,\"groupby\")){var n=w[r.index];if(!n){var o=a.getTransformIndices(r,\"groupby\"),l=o[o.length-1];n=i.keyedContainer(r,\"transforms[\"+l+\"].styles\",\"target\",\"value.visible\"),w[r.index]=n}var u=n.get(t._group);void 0===u&&(u=!0),!1!==u&&n.set(t._group,e),M[r.index]=s(r.index,\"visible\",!1!==r.visible)}else{var c=!1!==r.visible&&e;s(r.index,\"visible\",c)}}if(!e._dragged&&!e._editing){var u,c,h,f,d,p,m=e._fullLayout.hiddenlabels?e._fullLayout.hiddenlabels.slice():[],v=t.data()[0][0],g=e._fullData,y=v.trace,b=y.legendgroup,x={},_=[],w=[],M=[];if(1===r&&o&&e.data&&e._context.showTips?(i.notifier(\"Double click on legend to isolate individual trace\",\"long\"),o=!1):o=!1,a.traceIs(y,\"pie\")){var k=v.label,A=m.indexOf(k);1===r?-1===A?m.push(k):m.splice(A,1):2===r&&(m=[],e.calcdata[0].forEach(function(t){k!==t.label&&m.push(t.label)}),e._fullLayout.hiddenlabels&&e._fullLayout.hiddenlabels.length===m.length&&-1===A&&(m=[])),n.relayout(e,\"hiddenlabels\",m)}else{var T,S=b&&b.length,E=[];if(S)for(u=0;u<g.length;u++)T=g[u],T.visible&&T.legendgroup===b&&E.push(u);if(1===r){var L;switch(y.visible){case!0:L=\"legendonly\";break;case!1:L=!1;break;case\"legendonly\":L=!0}if(S)for(u=0;u<g.length;u++)!1!==g[u].visible&&g[u].legendgroup===b&&l(g[u],L);else l(y,L)}else if(2===r){var C,I,z,D=!0;for(u=0;u<g.length;u++)if(!(C=g[u]===y)&&!(I=S&&g[u].legendgroup===b)&&!0===g[u].visible&&!a.traceIs(g[u],\"notLegendIsolatable\")){D=!1;break}for(u=0;u<g.length;u++)if(!1!==g[u].visible&&!a.traceIs(g[u],\"notLegendIsolatable\"))switch(y.visible){case\"legendonly\":l(g[u],!0);break;case!0:z=!!D||\"legendonly\",C=g[u]===y,I=C||S&&g[u].legendgroup===b,l(g[u],!!I||z)}}for(u=0;u<w.length;u++)if(h=w[u]){var P=h.constructUpdate(),O=Object.keys(P);for(c=0;c<O.length;c++)f=O[c],p=x[f]=x[f]||[],p[M[u]]=P[f]}for(d=Object.keys(x),u=0;u<d.length;u++)for(f=d[u],c=0;c<_.length;c++)x[f].hasOwnProperty(c)||(x[f][c]=void 0);n.restyle(e,x,_)}}}},{\"../../lib\":728,\"../../plotly\":767,\"../../registry\":846}],661:[function(t,e,r){\"use strict\";var n=t(\"../../registry\");r.legendGetsTrace=function(t){return t.visible&&n.traceIs(t,\"showLegend\")},r.isGrouped=function(t){return-1!==(t.traceorder||\"\").indexOf(\"grouped\")},r.isVertical=function(t){return\"h\"!==t.orientation},r.isReversed=function(t){return-1!==(t.traceorder||\"\").indexOf(\"reversed\")}},{\"../../registry\":846}],662:[function(t,e,r){\"use strict\";e.exports={moduleType:\"component\",name:\"legend\",layoutAttributes:t(\"./attributes\"),supplyLayoutDefaults:t(\"./defaults\"),draw:t(\"./draw\"),style:t(\"./style\")}},{\"./attributes\":655,\"./defaults\":657,\"./draw\":658,\"./style\":663}],663:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../../registry\"),a=t(\"../../lib\"),o=t(\"../drawing\"),s=t(\"../color\"),l=t(\"../../traces/scatter/subtypes\"),u=t(\"../../traces/pie/style_one\");e.exports=function(t,e){function r(t){var e=t[0].trace,r=e.visible&&e.fill&&\"none\"!==e.fill,i=l.hasLines(e);e&&e._module&&\"contourcarpet\"===e._module.name&&(i=e.contours.showlines,r=\"fill\"===e.contours.coloring);var a=n.select(this).select(\".legendfill\").selectAll(\"path\").data(r?[t]:[]);a.enter().append(\"path\").classed(\"js-fill\",!0),a.exit().remove(),a.attr(\"d\",\"M5,0h30v6h-30z\").call(o.fillGroupStyle);var s=n.select(this).select(\".legendlines\").selectAll(\"path\").data(i?[t]:[]);s.enter().append(\"path\").classed(\"js-line\",!0).attr(\"d\",\"M5,0h30\"),s.exit().remove(),s.call(o.lineGroupStyle)}function c(t){function r(t,e,r){var n=a.nestedProperty(h,t).get(),i=Array.isArray(n)&&e?e(n):n;if(r){if(i<r[0])return r[0];if(i>r[1])return r[1]}return i}function i(t){return t[0]}var s,u,c=t[0],h=c.trace,f=l.hasMarkers(h),d=l.hasText(h),p=l.hasLines(h);if(f||d||p){var m={},v={};f&&(m.mc=r(\"marker.color\",i),m.mo=r(\"marker.opacity\",a.mean,[.2,1]),m.ms=r(\"marker.size\",a.mean,[2,16]),m.mlc=r(\"marker.line.color\",i),m.mlw=r(\"marker.line.width\",a.mean,[0,5]),v.marker={sizeref:1,sizemin:1,sizemode:\"diameter\"}),p&&(v.line={width:r(\"line.width\",i,[0,10])}),d&&(m.tx=\"Aa\",m.tp=r(\"textposition\",i),m.ts=10,m.tc=r(\"textfont.color\",i),m.tf=r(\"textfont.family\",i)),s=[a.minExtend(c,m)],u=a.minExtend(h,v)}var g=n.select(this).select(\"g.legendpoints\"),y=g.selectAll(\"path.scatterpts\").data(f?s:[]);y.enter().append(\"path\").classed(\"scatterpts\",!0).attr(\"transform\",\"translate(20,0)\"),y.exit().remove(),y.call(o.pointStyle,u,e),f&&(s[0].mrc=3);var b=g.selectAll(\"g.pointtext\").data(d?s:[]);b.enter().append(\"g\").classed(\"pointtext\",!0).append(\"text\").attr(\"transform\",\"translate(20,0)\"),b.exit().remove(),b.selectAll(\"text\").call(o.textPointStyle,u,e)}function h(t){var e=t[0].trace,r=e.marker||{},a=r.line||{},o=n.select(this).select(\"g.legendpoints\").selectAll(\"path.legendbar\").data(i.traceIs(e,\"bar\")?[t]:[]);o.enter().append(\"path\").classed(\"legendbar\",!0).attr(\"d\",\"M6,6H-6V-6H6Z\").attr(\"transform\",\"translate(20,0)\"),o.exit().remove(),o.each(function(t){var e=n.select(this),i=t[0],o=(i.mlw+1||a.width+1)-1;e.style(\"stroke-width\",o+\"px\").call(s.fill,i.mc||r.color),o&&e.call(s.stroke,i.mlc||a.color)})}function f(t){var e=t[0].trace,r=n.select(this).select(\"g.legendpoints\").selectAll(\"path.legendbox\").data(i.traceIs(e,\"box\")&&e.visible?[t]:[]);r.enter().append(\"path\").classed(\"legendbox\",!0).attr(\"d\",\"M6,6H-6V-6H6Z\").attr(\"transform\",\"translate(20,0)\"),r.exit().remove(),r.each(function(){var t=e.line.width,r=n.select(this);r.style(\"stroke-width\",t+\"px\").call(s.fill,e.fillcolor),t&&r.call(s.stroke,e.line.color)})}function d(t){var e=t[0].trace,r=n.select(this).select(\"g.legendpoints\").selectAll(\"path.legendpie\").data(i.traceIs(e,\"pie\")&&e.visible?[t]:[]);r.enter().append(\"path\").classed(\"legendpie\",!0).attr(\"d\",\"M6,6H-6V-6H6Z\").attr(\"transform\",\"translate(20,0)\"),r.exit().remove(),r.size()&&r.call(u,t[0],e)}t.each(function(t){var e=n.select(this),r=e.selectAll(\"g.layers\").data([0]);r.enter().append(\"g\").classed(\"layers\",!0),r.style(\"opacity\",t[0].trace.opacity),r.selectAll(\"g.legendfill\").data([t]).enter().append(\"g\").classed(\"legendfill\",!0),r.selectAll(\"g.legendlines\").data([t]).enter().append(\"g\").classed(\"legendlines\",!0);var i=r.selectAll(\"g.legendsymbols\").data([t]);i.enter().append(\"g\").classed(\"legendsymbols\",!0),i.selectAll(\"g.legendpoints\").data([t]).enter().append(\"g\").classed(\"legendpoints\",!0)}).each(h).each(f).each(d).each(r).each(c)}},{\"../../lib\":728,\"../../registry\":846,\"../../traces/pie/style_one\":1017,\"../../traces/scatter/subtypes\":1052,\"../color\":604,\"../drawing\":628,d3:122}],664:[function(t,e,r){\"use strict\";function n(t,e){var r,n,i=e.currentTarget,a=i.getAttribute(\"data-attr\"),o=i.getAttribute(\"data-val\")||!0,s=t._fullLayout,l={},u=d.list(t,null,!0),c=\"on\";if(\"zoom\"===a){var f,p=\"in\"===o?.5:2,m=(1+p)/2,v=(1-p)/2;for(n=0;n<u.length;n++)if(r=u[n],!r.fixedrange)if(f=r._name,\"auto\"===o)l[f+\".autorange\"]=!0;else if(\"reset\"===o){if(void 0===r._rangeInitial)l[f+\".autorange\"]=!0;else{var g=r._rangeInitial.slice();l[f+\".range[0]\"]=g[0],l[f+\".range[1]\"]=g[1]}void 0!==r._showSpikeInitial&&(l[f+\".showspikes\"]=r._showSpikeInitial,\"on\"!==c||r._showSpikeInitial||(c=\"off\"))}else{var y=[r.r2l(r.range[0]),r.r2l(r.range[1])],b=[m*y[0]+v*y[1],m*y[1]+v*y[0]];l[f+\".range[0]\"]=r.l2r(b[0]),l[f+\".range[1]\"]=r.l2r(b[1])}s._cartesianSpikesEnabled=c}else{if(\"hovermode\"!==a||\"x\"!==o&&\"y\"!==o){if(\"hovermode\"===a&&\"closest\"===o){for(n=0;n<u.length;n++)r=u[n],\"on\"!==c||r.showspikes||(c=\"off\");s._cartesianSpikesEnabled=c}}else o=s._isHoriz?\"y\":\"x\",i.setAttribute(\"data-val\",o),\"closest\"!==o&&(s._cartesianSpikesEnabled=\"off\");l[a]=o}h.relayout(t,l)}function i(t,e){for(var r=e.currentTarget,n=r.getAttribute(\"data-attr\"),i=r.getAttribute(\"data-val\")||!0,a=t._fullLayout,o=f.getSubplotIds(a,\"gl3d\"),s={},l=n.split(\".\"),u=0;u<o.length;u++)s[o[u]+\".\"+l[1]]=i;h.relayout(t,s)}function a(t,e){for(var r=e.currentTarget,n=r.getAttribute(\"data-attr\"),i=t._fullLayout,a=f.getSubplotIds(i,\"gl3d\"),o={},s=0;s<a.length;s++){var l=a[s],u=l+\".camera\",c=i[l]._scene;\"resetDefault\"===n?o[u]=null:\"resetLastSave\"===n&&(o[u]=p.extendDeep({},c.cameraInitial))}h.relayout(t,o)}function o(t,e){var r=e.currentTarget,n=r._previousVal||!1,i=t.layout,a=t._fullLayout,o=f.getSubplotIds(a,\"gl3d\"),s=[\"xaxis\",\"yaxis\",\"zaxis\"],l=[\"showspikes\",\"spikesides\",\"spikethickness\",\"spikecolor\"],u={},c={},d={};if(n)d=p.extendDeep(i,n),r._previousVal=null;else{d={\"allaxes.showspikes\":!1};for(var m=0;m<o.length;m++){var v=o[m],g=a[v],y=u[v]={};y.hovermode=g.hovermode,d[v+\".hovermode\"]=!1;for(var b=0;b<3;b++){var x=s[b];c=y[x]={};for(var _=0;_<l.length;_++){var w=l[_];c[w]=g[x][w]}}}r._previousVal=p.extendDeep({},u)}h.relayout(t,d)}function s(t,e){for(var r=e.currentTarget,n=r.getAttribute(\"data-attr\"),i=r.getAttribute(\"data-val\")||!0,a=t._fullLayout,o=f.getSubplotIds(a,\"geo\"),s=0;s<o.length;s++){var l=o[s],u=a[l];if(\"zoom\"===n){var d=u.projection.scale,p=\"in\"===i?2*d:.5*d;h.relayout(t,l+\".projection.scale\",p)}else\"reset\"===n&&c(t,\"geo\")}}function l(t){var e,r=t._fullLayout;e=r._has(\"cartesian\")?r._isHoriz?\"y\":\"x\":\"closest\";var n=!t._fullLayout.hovermode&&e;h.relayout(t,\"hovermode\",n)}function u(t){for(var e,r,n=t._fullLayout,i=d.list(t,null,!0),a={},o=0;o<i.length;o++)e=i[o],r=e._name,a[r+\".showspikes\"]=\"on\"===n._cartesianSpikesEnabled;return a}function c(t,e){for(var r=t._fullLayout,n=f.getSubplotIds(r,e),i={},a=0;a<n.length;a++)for(var o=n[a],s=r[o]._subplot,l=s.viewInitial,u=Object.keys(l),c=0;c<u.length;c++){var d=u[c];i[o+\".\"+d]=l[d]}h.relayout(t,i)}var h=t(\"../../plotly\"),f=t(\"../../plots/plots\"),d=t(\"../../plots/cartesian/axes\"),p=t(\"../../lib\"),m=t(\"../../snapshot/download\"),v=t(\"../../../build/ploticon\"),g=e.exports={};g.toImage={name:\"toImage\",title:\"Download plot as a png\",icon:v.camera,click:function(t){var e=\"png\";p.notifier(\"Taking snapshot - this may take a few seconds\",\"long\"),p.isIE()&&(p.notifier(\"IE only supports svg. Changing format to svg.\",\"long\"),e=\"svg\"),m(t,{format:e}).then(function(t){p.notifier(\"Snapshot succeeded - \"+t,\"long\")}).catch(function(){p.notifier(\"Sorry there was a problem downloading your snapshot!\",\"long\")})}},g.sendDataToCloud={name:\"sendDataToCloud\",title:\"Save and edit plot in cloud\",icon:v.disk,click:function(t){f.sendDataToCloud(t)}},g.zoom2d={name:\"zoom2d\",title:\"Zoom\",attr:\"dragmode\",val:\"zoom\",icon:v.zoombox,click:n},g.pan2d={name:\"pan2d\",title:\"Pan\",attr:\"dragmode\",val:\"pan\",icon:v.pan,click:n},g.select2d={name:\"select2d\",title:\"Box Select\",attr:\"dragmode\",val:\"select\",icon:v.selectbox,click:n},g.lasso2d={name:\"lasso2d\",title:\"Lasso Select\",attr:\"dragmode\",val:\"lasso\",icon:v.lasso,click:n},g.zoomIn2d={name:\"zoomIn2d\",title:\"Zoom in\",attr:\"zoom\",val:\"in\",icon:v.zoom_plus,click:n},g.zoomOut2d={name:\"zoomOut2d\",title:\"Zoom out\",attr:\"zoom\",val:\"out\",icon:v.zoom_minus,click:n},g.autoScale2d={name:\"autoScale2d\",title:\"Autoscale\",attr:\"zoom\",val:\"auto\",icon:v.autoscale,click:n},g.resetScale2d={name:\"resetScale2d\",title:\"Reset axes\",attr:\"zoom\",val:\"reset\",icon:v.home,click:n},g.hoverClosestCartesian={name:\"hoverClosestCartesian\",title:\"Show closest data on hover\",attr:\"hovermode\",val:\"closest\",icon:v.tooltip_basic,gravity:\"ne\",click:n},g.hoverCompareCartesian={name:\"hoverCompareCartesian\",title:\"Compare data on hover\",attr:\"hovermode\",val:function(t){return t._fullLayout._isHoriz?\"y\":\"x\"},icon:v.tooltip_compare,gravity:\"ne\",click:n},g.zoom3d={name:\"zoom3d\",title:\"Zoom\",attr:\"scene.dragmode\",val:\"zoom\",icon:v.zoombox,click:i},g.pan3d={name:\"pan3d\",title:\"Pan\",attr:\"scene.dragmode\",val:\"pan\",icon:v.pan,click:i},g.orbitRotation={name:\"orbitRotation\",title:\"orbital rotation\",attr:\"scene.dragmode\",val:\"orbit\",icon:v[\"3d_rotate\"],click:i},g.tableRotation={name:\"tableRotation\",title:\"turntable rotation\",attr:\"scene.dragmode\",val:\"turntable\",icon:v[\"z-axis\"],click:i},g.resetCameraDefault3d={name:\"resetCameraDefault3d\",title:\"Reset camera to default\",attr:\"resetDefault\",icon:v.home,click:a},g.resetCameraLastSave3d={name:\"resetCameraLastSave3d\",title:\"Reset camera to last save\",attr:\"resetLastSave\",icon:v.movie,click:a},g.hoverClosest3d={name:\"hoverClosest3d\",title:\"Toggle show closest data on hover\",attr:\"hovermode\",val:null,toggle:!0,icon:v.tooltip_basic,gravity:\"ne\",click:o},g.zoomInGeo={name:\"zoomInGeo\",title:\"Zoom in\",attr:\"zoom\",val:\"in\",icon:v.zoom_plus,click:s},g.zoomOutGeo={name:\"zoomOutGeo\",title:\"Zoom out\",attr:\"zoom\",val:\"out\",icon:v.zoom_minus,click:s},g.resetGeo={name:\"resetGeo\",title:\"Reset\",attr:\"reset\",val:null,icon:v.autoscale,click:s},g.hoverClosestGeo={name:\"hoverClosestGeo\",title:\"Toggle show closest data on hover\",attr:\"hovermode\",val:null,toggle:!0,icon:v.tooltip_basic,gravity:\"ne\",click:l},g.hoverClosestGl2d={name:\"hoverClosestGl2d\",title:\"Toggle show closest data on hover\",attr:\"hovermode\",val:null,toggle:!0,icon:v.tooltip_basic,gravity:\"ne\",click:l},g.hoverClosestPie={name:\"hoverClosestPie\",title:\"Toggle show closest data on hover\",attr:\"hovermode\",val:\"closest\",icon:v.tooltip_basic,gravity:\"ne\",click:l},g.toggleHover={name:\"toggleHover\",title:\"Toggle show closest data on hover\",attr:\"hovermode\",val:null,toggle:!0,icon:v.tooltip_basic,gravity:\"ne\",click:function(t,e){l(t),o(t,e)}},g.resetViews={name:\"resetViews\",title:\"Reset views\",icon:v.home,click:function(t,e){var r=e.currentTarget;r.setAttribute(\"data-attr\",\"zoom\"),r.setAttribute(\"data-val\",\"reset\"),n(t,e),r.setAttribute(\"data-attr\",\"resetLastSave\"),a(t,e),c(t,\"geo\"),c(t,\"mapbox\")}},g.toggleSpikelines={name:\"toggleSpikelines\",title:\"Toggle Spike Lines\",icon:v.spikeline,attr:\"_cartesianSpikesEnabled\",val:\"on\",click:function(t){var e=t._fullLayout;e._cartesianSpikesEnabled=\"closest\"===e.hovermode&&\"on\"===e._cartesianSpikesEnabled?\"off\":\"on\";var r=u(t);r.hovermode=\"closest\",h.relayout(t,r)}},g.resetViewMapbox={name:\"resetViewMapbox\",title:\"Reset view\",attr:\"reset\",icon:v.home,click:function(t){c(t,\"mapbox\")}}},{\"../../../build/ploticon\":2,\"../../lib\":728,\"../../plotly\":767,\"../../plots/cartesian/axes\":772,\"../../plots/plots\":831,\"../../snapshot/download\":848}],665:[function(t,e,r){\"use strict\";r.manage=t(\"./manage\")},{\"./manage\":666}],666:[function(t,e,r){\"use strict\";function n(t,e,r){function n(t){for(var r=[],n=0;n<t.length;n++){var i=t[n];-1===e.indexOf(i)&&r.push(f[i])}g.push(r)}var s=t._fullLayout,l=t._fullData,u=s._has(\"cartesian\"),c=s._has(\"gl3d\"),h=s._has(\"geo\"),d=s._has(\"pie\"),p=s._has(\"gl2d\"),m=s._has(\"ternary\"),v=s._has(\"mapbox\"),g=[];if(n([\"toImage\",\"sendDataToCloud\"]),(u||p||d||m)+h+c>1)return n([\"resetViews\",\"toggleHover\"]),o(g,r);c&&(n([\"zoom3d\",\"pan3d\",\"orbitRotation\",\"tableRotation\"]),n([\"resetCameraDefault3d\",\"resetCameraLastSave3d\"]),n([\"hoverClosest3d\"]));var y=i(s),b=[];return((u||p)&&!y||m)&&(b=[\"zoom2d\",\"pan2d\"]),(v||h)&&(b=[\"pan2d\"]),a(l)&&(b.push(\"select2d\"),b.push(\"lasso2d\")),b.length&&n(b),!u&&!p||y||m||n([\"zoomIn2d\",\"zoomOut2d\",\"autoScale2d\",\"resetScale2d\"]),u&&d?n([\"toggleHover\"]):p?n([\"hoverClosestGl2d\"]):u?n([\"toggleSpikelines\",\"hoverClosestCartesian\",\"hoverCompareCartesian\"]):d?n([\"hoverClosestPie\"]):v?n([\"resetViewMapbox\",\"toggleHover\"]):h&&(n([\"zoomInGeo\",\"zoomOutGeo\",\"resetGeo\"]),n([\"hoverClosestGeo\"])),o(g,r)}function i(t){for(var e=l.list({_fullLayout:t},null,!0),r=!0,n=0;n<e.length;n++)if(!e[n].fixedrange){r=!1;break}return r}function a(t){for(var e=!1,r=0;r<t.length&&!e;r++){var n=t[r];n._module&&n._module.selectPoints&&(c.traceIs(n,\"scatter-like\")?(u.hasMarkers(n)||u.hasText(n))&&(e=!0):e=!0)}return e}function o(t,e){if(e.length)if(Array.isArray(e[0]))for(var r=0;r<e.length;r++)t.push(e[r]);else t.push(e);return t}function s(t){for(var e=0;e<t.length;e++)for(var r=t[e],n=0;n<r.length;n++){var i=r[n];if(\"string\"==typeof i){if(void 0===f[i])throw new Error([\"*modeBarButtons* configuration options\",\"invalid button name\"].join(\" \"));t[e][n]=f[i]}}return t}var l=t(\"../../plots/cartesian/axes\"),u=t(\"../../traces/scatter/subtypes\"),c=t(\"../../registry\"),h=t(\"./modebar\"),f=t(\"./buttons\");e.exports=function(t){var e=t._fullLayout,r=t._context,i=e._modeBar;if(!r.displayModeBar)return void(i&&(i.destroy(),delete e._modeBar));if(!Array.isArray(r.modeBarButtonsToRemove))throw new Error([\"*modeBarButtonsToRemove* configuration options\",\"must be an array.\"].join(\" \"));if(!Array.isArray(r.modeBarButtonsToAdd))throw new Error([\"*modeBarButtonsToAdd* configuration options\",\"must be an array.\"].join(\" \"));var a,o=r.modeBarButtons;a=Array.isArray(o)&&o.length?s(o):n(t,r.modeBarButtonsToRemove,r.modeBarButtonsToAdd),i?i.update(t,a):e._modeBar=h(t,a)}},{\"../../plots/cartesian/axes\":772,\"../../registry\":846,\"../../traces/scatter/subtypes\":1052,\"./buttons\":664,\"./modebar\":667}],667:[function(t,e,r){\"use strict\";function n(t){this.container=t.container,this.element=document.createElement(\"div\"),this.update(t.graphInfo,t.buttons),this.container.appendChild(this.element)}function i(t,e){var r=t._fullLayout,i=new n({graphInfo:t,container:r._paperdiv.node(),buttons:e});return r._privateplot&&a.select(i.element).append(\"span\").classed(\"badge-private float--left\",!0).text(\"PRIVATE\"),i}var a=t(\"d3\"),o=t(\"../../lib\"),s=t(\"../../../build/ploticon\"),l=n.prototype;l.update=function(t,e){this.graphInfo=t;var r=this.graphInfo._context;\"hover\"===r.displayModeBar?this.element.className=\"modebar modebar--hover\":this.element.className=\"modebar\";var n=!this.hasButtons(e),i=this.hasLogo!==r.displaylogo;(n||i)&&(this.removeAllButtons(),this.updateButtons(e),r.displaylogo&&(this.element.appendChild(this.getLogo()),this.hasLogo=!0)),this.updateActiveButton()},l.updateButtons=function(t){var e=this;this.buttons=t,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(t){var r=e.createGroup();t.forEach(function(t){var n=t.name;if(!n)throw new Error(\"must provide button 'name' in button config\");if(-1!==e.buttonsNames.indexOf(n))throw new Error(\"button name '\"+n+\"' is taken\");e.buttonsNames.push(n);var i=e.createButton(t);e.buttonElements.push(i),r.appendChild(i)}),e.element.appendChild(r)})},l.createGroup=function(){var t=document.createElement(\"div\");return t.className=\"modebar-group\",t},l.createButton=function(t){var e=this,r=document.createElement(\"a\");r.setAttribute(\"rel\",\"tooltip\"),r.className=\"modebar-btn\";var n=t.title;void 0===n&&(n=t.name),(n||0===n)&&r.setAttribute(\"data-title\",n),void 0!==t.attr&&r.setAttribute(\"data-attr\",t.attr);var i=t.val;if(void 0!==i&&(\"function\"==typeof i&&(i=i(this.graphInfo)),r.setAttribute(\"data-val\",i)),\"function\"!=typeof t.click)throw new Error(\"must provide button 'click' function in button config\");return r.addEventListener(\"click\",function(r){t.click(e.graphInfo,r),e.updateActiveButton(r.currentTarget)}),r.setAttribute(\"data-toggle\",t.toggle||!1),t.toggle&&a.select(r).classed(\"active\",!0),r.appendChild(this.createIcon(t.icon||s.question,t.name)),r.setAttribute(\"data-gravity\",t.gravity||\"n\"),r},l.createIcon=function(t,e){var r=t.ascent-t.descent,n=\"http://www.w3.org/2000/svg\",i=document.createElementNS(n,\"svg\"),a=document.createElementNS(n,\"path\");i.setAttribute(\"height\",\"1em\"),i.setAttribute(\"width\",t.width/r+\"em\"),i.setAttribute(\"viewBox\",[0,0,t.width,r].join(\" \"));var o=\"toggleSpikelines\"===e?\"matrix(1.5 0 0 -1.5 0 \"+t.ascent+\")\":\"matrix(1 0 0 -1 0 \"+t.ascent+\")\";return a.setAttribute(\"d\",t.path),a.setAttribute(\"transform\",o),i.appendChild(a),i},l.updateActiveButton=function(t){var e=this.graphInfo._fullLayout,r=void 0!==t?t.getAttribute(\"data-attr\"):null;this.buttonElements.forEach(function(t){var n=t.getAttribute(\"data-val\")||!0,i=t.getAttribute(\"data-attr\"),s=\"true\"===t.getAttribute(\"data-toggle\"),l=a.select(t);if(s)i===r&&l.classed(\"active\",!l.classed(\"active\"));else{var u=null===i?i:o.nestedProperty(e,i).get();l.classed(\"active\",u===n)}})},l.hasButtons=function(t){var e=this.buttons;if(!e)return!1;if(t.length!==e.length)return!1;for(var r=0;r<t.length;++r){if(t[r].length!==e[r].length)return!1;for(var n=0;n<t[r].length;n++)if(t[r][n].name!==e[r][n].name)return!1}return!0},l.getLogo=function(){var t=this.createGroup(),e=document.createElement(\"a\");return e.href=\"https://plot.ly/\",e.target=\"_blank\",e.setAttribute(\"data-title\",\"Produced with Plotly\"),e.className=\"modebar-btn plotlyjsicon modebar-btn--logo\",e.appendChild(this.createIcon(s.plotlylogo)),t.appendChild(e),t},l.removeAllButtons=function(){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.hasLogo=!1},l.destroy=function(){o.removeElement(this.container.querySelector(\".modebar\"))},e.exports=i},{\"../../../build/ploticon\":2,\"../../lib\":728,d3:122}],668:[function(t,e,r){\"use strict\";var n=t(\"../../plots/font_attributes\"),i=t(\"../color/attributes\"),a=t(\"../../lib/extend\").extendFlat,o=t(\"./button_attributes\");o=a(o,{_isLinkedToArray:\"button\"}),e.exports={visible:{valType:\"boolean\",editType:\"plot\"},buttons:o,x:{valType:\"number\",min:-2,max:3,editType:\"plot\"},xanchor:{valType:\"enumerated\",values:[\"auto\",\"left\",\"center\",\"right\"],dflt:\"left\",editType:\"plot\"},y:{valType:\"number\",min:-2,max:3,editType:\"plot\"},yanchor:{valType:\"enumerated\",values:[\"auto\",\"top\",\"middle\",\"bottom\"],dflt:\"bottom\",editType:\"plot\"},font:n({editType:\"plot\"}),bgcolor:{valType:\"color\",dflt:i.lightLine,editType:\"plot\"},activecolor:{valType:\"color\",editType:\"plot\"},bordercolor:{valType:\"color\",dflt:i.defaultLine,editType:\"plot\"},borderwidth:{valType:\"number\",min:0,dflt:0,editType:\"plot\"},editType:\"plot\"}},{\"../../lib/extend\":717,\"../../plots/font_attributes\":796,\"../color/attributes\":603,\"./button_attributes\":669}],669:[function(t,e,r){\"use strict\";e.exports={step:{valType:\"enumerated\",values:[\"month\",\"year\",\"day\",\"hour\",\"minute\",\"second\",\"all\"],dflt:\"month\",editType:\"plot\"},stepmode:{valType:\"enumerated\",values:[\"backward\",\"todate\"],dflt:\"backward\",editType:\"plot\"},count:{valType:\"number\",min:0,dflt:1,editType:\"plot\"},label:{valType:\"string\",editType:\"plot\"},editType:\"plot\"}},{}],670:[function(t,e,r){\"use strict\";e.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}},{}],671:[function(t,e,r){\"use strict\";function n(t,e,r){function n(t,e){return a.coerce(i,o,l,t,e)}for(var i,o,s=t.buttons||[],u=e.buttons=[],c=0;c<s.length;c++)if(i=s[c],o={},a.isPlainObject(i)){var h=n(\"step\");\"all\"!==h&&(!r||\"gregorian\"===r||\"month\"!==h&&\"year\"!==h?n(\"stepmode\"):o.stepmode=\"backward\",n(\"count\")),n(\"label\"),o._index=c,u.push(o)}return u}function i(t,e,r){for(var n=r.filter(function(r){return e[r].anchor===t._id}),i=0,a=0;a<n.length;a++){var o=e[n[a]].domain;o&&(i=Math.max(o[1],i))}return[t.domain[0],i+u.yPad]}var a=t(\"../../lib\"),o=t(\"../color\"),s=t(\"./attributes\"),l=t(\"./button_attributes\"),u=t(\"./constants\");e.exports=function(t,e,r,l,c){function h(t,e){return a.coerce(f,d,s,t,e)}var f=t.rangeselector||{},d=e.rangeselector={};if(h(\"visible\",n(f,d,c).length>0)){var p=i(e,r,l);h(\"x\",p[0]),h(\"y\",p[1]),a.noneOrAll(t,e,[\"x\",\"y\"]),h(\"xanchor\"),h(\"yanchor\"),a.coerceFont(h,\"font\",r.font);var m=h(\"bgcolor\");h(\"activecolor\",o.contrast(m,u.lightAmount,u.darkAmount)),h(\"bordercolor\"),h(\"borderwidth\")}}},{\"../../lib\":728,\"../color\":604,\"./attributes\":668,\"./button_attributes\":669,\"./constants\":670}],672:[function(t,e,r){\"use strict\";function n(t){for(var e=g.list(t,\"x\",!0),r=[],n=0;n<e.length;n++){var i=e[n];i.rangeselector&&i.rangeselector.visible&&r.push(i)}return r}function i(t){return t._id}function a(t,e,r){if(\"all\"===e.step)return!0===t.autorange;var n=Object.keys(r);return t.range[0]===r[n[0]]&&t.range[1]===r[n[1]]}function o(t,e,r){var n=t.selectAll(\"rect\").data([0]);n.enter().append(\"rect\").classed(\"selector-rect\",!0),n.attr(\"shape-rendering\",\"crispEdges\"),n.attr({rx:x.rx,ry:x.ry}),n.call(p.stroke,e.bordercolor).call(p.fill,s(e,r)).style(\"stroke-width\",e.borderwidth+\"px\")}function s(t,e){return e.isActive||e.isHovered?t.activecolor:t.bgcolor}function l(t,e,r,n){function i(t){v.convertToTspans(t,n)}var a=t.selectAll(\"text\").data([0]);a.enter().append(\"text\").classed(\"selector-text\",!0).classed(\"user-select-none\",!0),a.attr(\"text-anchor\",\"middle\"),a.call(m.font,e.font).text(u(r)).call(i)}function u(t){return t.label?t.label:\"all\"===t.step?\"all\":t.count+t.step.charAt(0)}function c(t,e,r,n){r.width=0,r.height=0;var i=r.borderwidth;e.each(function(){var t=h.select(this),e=t.select(\".selector-text\"),n=r.font.size*b,i=Math.max(n*v.lineCount(e),16)+3;r.height=Math.max(r.height,i)}),e.each(function(){var t=h.select(this),e=t.select(\".selector-rect\"),n=t.select(\".selector-text\"),a=n.node()&&m.bBox(n.node()).width,o=r.font.size*b,s=v.lineCount(n),l=Math.max(a+10,x.minButtonWidth);t.attr(\"transform\",\"translate(\"+(i+r.width)+\",\"+i+\")\"),e.attr({x:0,y:0,width:l,height:r.height}),v.positionText(n,l/2,r.height/2-(s-1)*o/2+3),r.width+=l+5}),e.selectAll(\"rect\").attr(\"height\",r.height);var a=t._fullLayout._size;r.lx=a.l+a.w*r.x,r.ly=a.t+a.h*(1-r.y);var o=\"left\";y.isRightAnchor(r)&&(r.lx-=r.width,o=\"right\"),y.isCenterAnchor(r)&&(r.lx-=r.width/2,o=\"center\");var s=\"top\";y.isBottomAnchor(r)&&(r.ly-=r.height,s=\"bottom\"),y.isMiddleAnchor(r)&&(r.ly-=r.height/2,s=\"middle\"),r.width=Math.ceil(r.width),r.height=Math.ceil(r.height),r.lx=Math.round(r.lx),r.ly=Math.round(r.ly),d.autoMargin(t,n+\"-range-selector\",{x:r.x,y:r.y,l:r.width*({right:1,center:.5}[o]||0),r:r.width*({left:1,center:.5}[o]||0),b:r.height*({top:1,middle:.5}[s]||0),t:r.height*({bottom:1,middle:.5}[s]||0)})}var h=t(\"d3\"),f=t(\"../../plotly\"),d=t(\"../../plots/plots\"),p=t(\"../color\"),m=t(\"../drawing\"),v=t(\"../../lib/svg_text_utils\"),g=t(\"../../plots/cartesian/axis_ids\"),y=t(\"../legend/anchor_utils\"),b=t(\"../../constants/alignment\").LINE_SPACING,x=t(\"./constants\"),_=t(\"./get_update_object\");e.exports=function(t){var e=t._fullLayout,r=e._infolayer.selectAll(\".rangeselector\").data(n(t),i);r.enter().append(\"g\").classed(\"rangeselector\",!0),r.exit().remove(),r.style({cursor:\"pointer\",\"pointer-events\":\"all\"}),r.each(function(e){var r=h.select(this),n=e,i=n.rangeselector,s=r.selectAll(\"g.button\").data(i.buttons);s.enter().append(\"g\").classed(\"button\",!0),s.exit().remove(),s.each(function(e){var r=h.select(this),s=_(n,e);e.isActive=a(n,e,s),r.call(o,i,e),r.call(l,i,e,t),r.on(\"click\",function(){t._dragged||f.relayout(t,s)}),r.on(\"mouseover\",function(){e.isHovered=!0,r.call(o,i,e)}),r.on(\"mouseout\",function(){e.isHovered=!1,r.call(o,i,e)})}),c(t,s,i,n._name),r.attr(\"transform\",\"translate(\"+i.lx+\",\"+i.ly+\")\")})}},{\"../../constants/alignment\":701,\"../../lib/svg_text_utils\":750,\"../../plotly\":767,\"../../plots/cartesian/axis_ids\":775,\"../../plots/plots\":831,\"../color\":604,\"../drawing\":628,\"../legend/anchor_utils\":654,\"./constants\":670,\"./get_update_object\":673,d3:122}],673:[function(t,e,r){\"use strict\";function n(t,e){var r,n=t.range,a=new Date(t.r2l(n[1])),o=e.step,s=e.count;switch(e.stepmode){case\"backward\":r=t.l2r(+i.time[o].utc.offset(a,-s));break;case\"todate\":var l=i.time[o].utc.offset(a,-s);r=t.l2r(+i.time[o].utc.ceil(l))}return[r,n[1]]}var i=t(\"d3\");e.exports=function(t,e){var r=t._name,i={};if(\"all\"===e.step)i[r+\".autorange\"]=!0;else{var a=n(t,e);i[r+\".range[0]\"]=a[0],i[r+\".range[1]\"]=a[1]}return i}},{d3:122}],674:[function(t,e,r){\"use strict\";e.exports={moduleType:\"component\",name:\"rangeselector\",schema:{subplots:{xaxis:{rangeselector:t(\"./attributes\")}}},layoutAttributes:t(\"./attributes\"),handleDefaults:t(\"./defaults\"),draw:t(\"./draw\")}},{\"./attributes\":668,\"./defaults\":671,\"./draw\":672}],675:[function(t,e,r){\"use strict\";var n=t(\"../color/attributes\");e.exports={bgcolor:{valType:\"color\",dflt:n.background,editType:\"calc\"},bordercolor:{valType:\"color\",dflt:n.defaultLine,editType:\"calc\"},borderwidth:{valType:\"integer\",dflt:0,min:0,editType:\"calc\"},autorange:{valType:\"boolean\",dflt:!0,editType:\"calc\"},range:{valType:\"info_array\",items:[{valType:\"any\",editType:\"calc\"},{valType:\"any\",editType:\"calc\"}],editType:\"calc\"},thickness:{valType:\"number\",dflt:.15,min:0,max:1,editType:\"calc\"},visible:{valType:\"boolean\",dflt:!0,editType:\"calc\"},editType:\"calc\"}},{\"../color/attributes\":603}],676:[function(t,e,r){\"use strict\";var n=t(\"../../plots/cartesian/axes\"),i=t(\"./constants\");e.exports=function(t){for(var e=n.list(t,\"x\",!0),r=0;r<e.length;r++){var a=e[r],o=a[i.name];o&&o.visible&&o.autorange&&a._min.length&&a._max.length&&(o._input.autorange=!0,\n", "o._input.range=o.range=n.getAutoRange(a))}}},{\"../../plots/cartesian/axes\":772,\"./constants\":677}],677:[function(t,e,r){\"use strict\";e.exports={name:\"rangeslider\",containerClassName:\"rangeslider-container\",bgClassName:\"rangeslider-bg\",rangePlotClassName:\"rangeslider-rangeplot\",maskMinClassName:\"rangeslider-mask-min\",maskMaxClassName:\"rangeslider-mask-max\",slideBoxClassName:\"rangeslider-slidebox\",grabberMinClassName:\"rangeslider-grabber-min\",grabAreaMinClassName:\"rangeslider-grabarea-min\",handleMinClassName:\"rangeslider-handle-min\",grabberMaxClassName:\"rangeslider-grabber-max\",grabAreaMaxClassName:\"rangeslider-grabarea-max\",handleMaxClassName:\"rangeslider-handle-max\",maskColor:\"rgba(0,0,0,0.4)\",slideBoxFill:\"transparent\",slideBoxCursor:\"ew-resize\",grabAreaFill:\"transparent\",grabAreaCursor:\"col-resize\",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}},{}],678:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"./attributes\");e.exports=function(t,e,r){function a(t,e){return n.coerce(o,l,i,t,e)}if(t[r].rangeslider){n.isPlainObject(t[r].rangeslider)||(t[r].rangeslider={});var o=t[r].rangeslider,s=e[r],l=s.rangeslider={};if(a(\"visible\")){if(a(\"bgcolor\",e.plot_bgcolor),a(\"bordercolor\"),a(\"borderwidth\"),a(\"thickness\"),a(\"autorange\",!s.isValidRange(o.range)),a(\"range\"),l.range){var u=l.range,c=s.range;u[0]=s.l2r(Math.min(s.r2l(u[0]),s.r2l(c[0]))),u[1]=s.l2r(Math.max(s.r2l(u[1]),s.r2l(c[1])))}s.cleanRange(\"rangeslider.range\"),l._input=o}}}},{\"../../lib\":728,\"./attributes\":675}],679:[function(t,e,r){\"use strict\";function n(t){var e=w.list({_fullLayout:t},\"x\",!0),r=A.name,n=[];if(t._has(\"gl2d\"))return n;for(var i=0;i<e.length;i++){var a=e[i];a[r]&&a[r].visible&&n.push(a)}return n}function i(t,e,r,n){var i=t.select(\"rect.\"+A.slideBoxClassName).node(),o=t.select(\"rect.\"+A.grabAreaMinClassName).node(),s=t.select(\"rect.\"+A.grabAreaMaxClassName).node();t.on(\"mousedown\",function(){function l(l){var u,c,y,b=+l.clientX-f;switch(h){case i:y=\"ew-resize\",u=p+b,c=v+b;break;case o:y=\"col-resize\",u=p+b,c=v;break;case s:y=\"col-resize\",u=p,c=v+b;break;default:y=\"ew-resize\",u=d,c=d+b}if(c<u){var x=c;c=u,u=x}n._pixelMin=u,n._pixelMax=c,k(m.select(g),y),a(t,e,r,n)}function u(){g.removeEventListener(\"mousemove\",l),g.removeEventListener(\"mouseup\",u),y.removeElement(g)}var c=m.event,h=c.target,f=c.clientX,d=f-t.node().getBoundingClientRect().left,p=n.d2p(r._rl[0]),v=n.d2p(r._rl[1]),g=M.coverSlip();g.addEventListener(\"mousemove\",l),g.addEventListener(\"mouseup\",u)})}function a(t,e,r,n){function i(t){return r.l2r(y.constrain(t,n._rl[0],n._rl[1]))}var a=i(n.p2d(n._pixelMin)),o=i(n.p2d(n._pixelMax));window.requestAnimationFrame(function(){v.relayout(e,r._name+\".range\",[a,o])})}function o(t,e,r,n){function i(t){return y.constrain(t,0,n._width)}function a(t){return y.constrain(t,-o,n._width+o)}var o=A.handleWidth/2,s=i(n.d2p(r._rl[0])),l=i(n.d2p(r._rl[1]));t.select(\"rect.\"+A.slideBoxClassName).attr(\"x\",s).attr(\"width\",l-s),t.select(\"rect.\"+A.maskMinClassName).attr(\"width\",s),t.select(\"rect.\"+A.maskMaxClassName).attr(\"x\",l).attr(\"width\",n._width-l);var u=Math.round(a(s-o))-.5,c=Math.round(a(l-o))+.5;t.select(\"g.\"+A.grabberMinClassName).attr(\"transform\",\"translate(\"+u+\",0.5)\"),t.select(\"g.\"+A.grabberMaxClassName).attr(\"transform\",\"translate(\"+c+\",0.5)\")}function s(t,e,r,n){var i=t.selectAll(\"rect.\"+A.bgClassName).data([0]);i.enter().append(\"rect\").classed(A.bgClassName,!0).attr({x:0,y:0,\"shape-rendering\":\"crispEdges\"});var a=n.borderwidth%2==0?n.borderwidth:n.borderwidth-1,o=-n._offsetShift,s=b.crispRound(e,n.borderwidth);i.attr({width:n._width+a,height:n._height+a,transform:\"translate(\"+o+\",\"+o+\")\",fill:n.bgcolor,stroke:n.bordercolor,\"stroke-width\":s})}function l(t,e,r,n){var i=e._fullLayout,a=i._topdefs.selectAll(\"#\"+n._clipId).data([0]);a.enter().append(\"clipPath\").attr(\"id\",n._clipId).append(\"rect\").attr({x:0,y:0}),a.select(\"rect\").attr({width:n._width,height:n._height})}function u(t,e,r,n){var i=w.getSubplots(e,r),a=e.calcdata,o=t.selectAll(\"g.\"+A.rangePlotClassName).data(i,y.identity);o.enter().append(\"g\").attr(\"class\",function(t){return A.rangePlotClassName+\" \"+t}).call(b.setClipUrl,n._clipId),o.order(),o.exit().remove();var s;o.each(function(t,i){var o=m.select(this),l=0===i,u=w.getFromId(e,t,\"y\"),h=u._name,f={data:[],layout:{xaxis:{type:r.type,domain:[0,1],range:n.range.slice(),calendar:r.calendar},width:n._width,height:n._height,margin:{t:0,b:0,l:0,r:0}}};f.layout[h]={type:u.type,domain:[0,1],range:u.range.slice(),calendar:u.calendar},g.supplyDefaults(f);var d=f._fullLayout.xaxis,p=f._fullLayout[h],v={id:t,plotgroup:o,xaxis:d,yaxis:p};l?s=v:(v.mainplot=\"xy\",v.mainplotinfo=s),_.rangePlot(e,v,c(a,t))})}function c(t,e){for(var r=[],n=0;n<t.length;n++){var i=t[n],a=i[0].trace;a.xaxis+a.yaxis===e&&r.push(i)}return r}function h(t,e,r,n){var i=t.selectAll(\"rect.\"+A.maskMinClassName).data([0]);i.enter().append(\"rect\").classed(A.maskMinClassName,!0).attr({x:0,y:0}).attr(\"shape-rendering\",\"crispEdges\"),i.attr(\"height\",n._height).call(x.fill,A.maskColor);var a=t.selectAll(\"rect.\"+A.maskMaxClassName).data([0]);a.enter().append(\"rect\").classed(A.maskMaxClassName,!0).attr(\"y\",0).attr(\"shape-rendering\",\"crispEdges\"),a.attr(\"height\",n._height).call(x.fill,A.maskColor)}function f(t,e,r,n){if(!e._context.staticPlot){var i=t.selectAll(\"rect.\"+A.slideBoxClassName).data([0]);i.enter().append(\"rect\").classed(A.slideBoxClassName,!0).attr(\"y\",0).attr(\"cursor\",A.slideBoxCursor).attr(\"shape-rendering\",\"crispEdges\"),i.attr({height:n._height,fill:A.slideBoxFill})}}function d(t,e,r,n){var i=t.selectAll(\"g.\"+A.grabberMinClassName).data([0]);i.enter().append(\"g\").classed(A.grabberMinClassName,!0);var a=t.selectAll(\"g.\"+A.grabberMaxClassName).data([0]);a.enter().append(\"g\").classed(A.grabberMaxClassName,!0);var o={x:0,width:A.handleWidth,rx:A.handleRadius,fill:x.background,stroke:x.defaultLine,\"stroke-width\":A.handleStrokeWidth,\"shape-rendering\":\"crispEdges\"},s={y:Math.round(n._height/4),height:Math.round(n._height/2)},l=i.selectAll(\"rect.\"+A.handleMinClassName).data([0]);l.enter().append(\"rect\").classed(A.handleMinClassName,!0).attr(o),l.attr(s);var u=a.selectAll(\"rect.\"+A.handleMaxClassName).data([0]);if(u.enter().append(\"rect\").classed(A.handleMaxClassName,!0).attr(o),u.attr(s),!e._context.staticPlot){var c={width:A.grabAreaWidth,x:0,y:0,fill:A.grabAreaFill,cursor:A.grabAreaCursor},h=i.selectAll(\"rect.\"+A.grabAreaMinClassName).data([0]);h.enter().append(\"rect\").classed(A.grabAreaMinClassName,!0).attr(c),h.attr(\"height\",n._height);var f=a.selectAll(\"rect.\"+A.grabAreaMaxClassName).data([0]);f.enter().append(\"rect\").classed(A.grabAreaMaxClassName,!0).attr(c),f.attr(\"height\",n._height)}}function p(t){for(var e=t._fullLayout._pushmargin||{},r=Object.keys(e),n=0;n<r.length;n++){var i=r[n];-1!==i.indexOf(A.name)&&g.autoMargin(t,i)}}var m=t(\"d3\"),v=t(\"../../plotly\"),g=t(\"../../plots/plots\"),y=t(\"../../lib\"),b=t(\"../drawing\"),x=t(\"../color\"),_=t(\"../../plots/cartesian\"),w=t(\"../../plots/cartesian/axes\"),M=t(\"../dragelement\"),k=t(\"../../lib/setcursor\"),A=t(\"./constants\");e.exports=function(t){function e(t){return t._name}var r=t._fullLayout,a=n(r),c=r._infolayer.selectAll(\"g.\"+A.containerClassName).data(a,e);c.enter().append(\"g\").classed(A.containerClassName,!0).attr(\"pointer-events\",\"all\"),c.exit().each(function(t){var e=m.select(this),n=t[A.name];e.remove(),r._topdefs.select(\"#\"+n._clipId).remove()}),c.exit().size()&&p(t),0!==a.length&&c.each(function(e){var n=m.select(this),a=e[A.name],c=r[w.id2name(e.anchor)],p=r.margin,v=r._size,y=e.domain,b=c.domain,x=(e._boundingBox||{}).height||0;a._id=A.name+e._id,a._clipId=a._id+\"-\"+r._uid,a._width=v.w*(y[1]-y[0]),a._height=(r.height-p.b-p.t)*a.thickness,a._offsetShift=Math.floor(a.borderwidth/2);var _=Math.round(p.l+v.w*y[0]),M=Math.round(p.t+v.h*(1-b[0])+x+a._offsetShift+A.extraPad);n.attr(\"transform\",\"translate(\"+_+\",\"+M+\")\");var k=e.r2l(a.range[0]),T=e.r2l(a.range[1]),S=T-k;a.p2d=function(t){return t/a._width*S+k},a.d2p=function(t){return(t-k)/S*a._width},a._rl=[k,T],n.call(s,t,e,a).call(l,t,e,a).call(u,t,e,a).call(h,t,e,a).call(f,t,e,a).call(d,t,e,a),i(n,t,e,a),o(n,t,e,a),g.autoMargin(t,a._id,{x:y[0],y:b[0],l:0,r:0,t:0,b:a._height+p.b+x,pad:A.extraPad+2*a._offsetShift})})}},{\"../../lib\":728,\"../../lib/setcursor\":746,\"../../plotly\":767,\"../../plots/cartesian\":782,\"../../plots/cartesian/axes\":772,\"../../plots/plots\":831,\"../color\":604,\"../dragelement\":625,\"../drawing\":628,\"./constants\":677,d3:122}],680:[function(t,e,r){\"use strict\";e.exports={moduleType:\"component\",name:\"rangeslider\",schema:{subplots:{xaxis:{rangeslider:t(\"./attributes\")}}},layoutAttributes:t(\"./attributes\"),handleDefaults:t(\"./defaults\"),calcAutorange:t(\"./calc_autorange\"),draw:t(\"./draw\")}},{\"./attributes\":675,\"./calc_autorange\":676,\"./defaults\":678,\"./draw\":679}],681:[function(t,e,r){\"use strict\";var n=t(\"../annotations/attributes\"),i=t(\"../../traces/scatter/attributes\").line,a=t(\"../drawing/attributes\").dash,o=t(\"../../lib/extend\").extendFlat;e.exports={_isLinkedToArray:\"shape\",visible:{valType:\"boolean\",dflt:!0,editType:\"calcIfAutorange\"},type:{valType:\"enumerated\",values:[\"circle\",\"rect\",\"path\",\"line\"],editType:\"calcIfAutorange\"},layer:{valType:\"enumerated\",values:[\"below\",\"above\"],dflt:\"above\",editType:\"arraydraw\"},xref:o({},n.xref,{}),x0:{valType:\"any\",editType:\"calcIfAutorange\"},x1:{valType:\"any\",editType:\"calcIfAutorange\"},yref:o({},n.yref,{}),y0:{valType:\"any\",editType:\"calcIfAutorange\"},y1:{valType:\"any\",editType:\"calcIfAutorange\"},path:{valType:\"string\",editType:\"calcIfAutorange\"},opacity:{valType:\"number\",min:0,max:1,dflt:1,editType:\"arraydraw\"},line:{color:o({},i.color,{editType:\"arraydraw\"}),width:o({},i.width,{editType:\"calcIfAutorange\"}),dash:o({},a,{editType:\"arraydraw\"}),editType:\"calcIfAutorange\"},fillcolor:{valType:\"color\",dflt:\"rgba(0,0,0,0)\",editType:\"arraydraw\"},editType:\"arraydraw\"}},{\"../../lib/extend\":717,\"../../traces/scatter/attributes\":1031,\"../annotations/attributes\":587,\"../drawing/attributes\":627}],682:[function(t,e,r){\"use strict\";function n(t,e,r,n,i){var a=\"category\"===t.type?t.r2c:t.d2c;if(void 0!==e)return[a(e),a(r)];if(n){var l,u,c,h,f,d=1/0,p=-1/0,m=n.match(o.segmentRE);for(\"date\"===t.type&&(a=s.decodeDate(a)),l=0;l<m.length;l++)u=m[l],void 0!==(c=i[u.charAt(0)].drawn)&&(!(h=m[l].substr(1).match(o.paramRE))||h.length<c||(f=a(h[c]),f<d&&(d=f),f>p&&(p=f)));return p>=d?[d,p]:void 0}}var i=t(\"../../lib\"),a=t(\"../../plots/cartesian/axes\"),o=t(\"./constants\"),s=t(\"./helpers\");e.exports=function(t){var e=t._fullLayout,r=i.filterVisible(e.shapes);if(r.length&&t._fullData.length)for(var s=0;s<r.length;s++){var l,u,c=r[s],h=c.line.width/2;\"paper\"!==c.xref&&(l=a.getFromId(t,c.xref),(u=n(l,c.x0,c.x1,c.path,o.paramIsX))&&a.expand(l,u,{ppad:h})),\"paper\"!==c.yref&&(l=a.getFromId(t,c.yref),(u=n(l,c.y0,c.y1,c.path,o.paramIsY))&&a.expand(l,u,{ppad:h}))}}},{\"../../lib\":728,\"../../plots/cartesian/axes\":772,\"./constants\":683,\"./helpers\":686}],683:[function(t,e,r){\"use strict\";e.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}},{}],684:[function(t,e,r){\"use strict\";var n=t(\"../../plots/array_container_defaults\"),i=t(\"./shape_defaults\");e.exports=function(t,e){n(t,e,{name:\"shapes\",handleItemDefaults:i})}},{\"../../plots/array_container_defaults\":769,\"./shape_defaults\":688}],685:[function(t,e,r){\"use strict\";function n(t){var e=t._fullLayout;e._shapeUpperLayer.selectAll(\"path\").remove(),e._shapeLowerLayer.selectAll(\"path\").remove(),e._shapeSubplotLayers.selectAll(\"path\").remove();for(var r=0;r<e.shapes.length;r++)e.shapes[r].visible&&i(t,r)}function i(t,e){function r(r){var n={\"data-index\":e,\"fill-rule\":\"evenodd\",d:o(t,i)},s=i.line.width?i.line.color:\"rgba(0,0,0,0)\",l=r.append(\"path\").attr(n).style(\"opacity\",i.opacity).call(f.stroke,s).call(f.fill,i.fillcolor).call(d.dashLine,i.line.dash,i.line.width),u=(i.xref+i.yref).replace(/paper/g,\"\");l.call(d.setClipUrl,u?\"clip\"+t._fullLayout._uid+u:null),t._context.edits.shapePosition&&a(t,l,i,e)}t._fullLayout._paper.selectAll('.shapelayer [data-index=\"'+e+'\"]').remove();var n=(t.layout.shapes||[])[e],i=t._fullLayout.shapes[e];if(n&&!1!==i.visible)if(\"below\"!==i.layer)r(t._fullLayout._shapeUpperLayer);else if(\"paper\"===i.xref||\"paper\"===i.yref)r(t._fullLayout._shapeLowerLayer);else{var s=t._fullLayout._plots[i.xref+i.yref];if(s){var l=s.mainplotinfo||s;r(l.shapelayer)}else r(t._fullLayout._shapeLowerLayer)}}function a(t,e,r,n){function i(t){var r=Z.right-Z.left,n=Z.bottom-Z.top,i=t.clientX-Z.left,a=t.clientY-Z.top,o=r>Y&&n>W&&!t.shiftKey?p.getCursor(i/r,1-a/n):\"move\";m(e,o),G=o.split(\"-\")[0]}function a(e){N=h.getFromId(t,r.xref),B=h.getFromId(t,r.yref),U=g.getDataToPixel(t,N),V=g.getDataToPixel(t,B,!0),H=g.getPixelToData(t,N),q=g.getPixelToData(t,B,!0);var a=\"shapes[\"+n+\"]\";\"path\"===r.type?(F=r.path,j=a+\".path\"):(v=U(r.x0),y=V(r.y0),b=U(r.x1),x=V(r.y1),_=a+\".x0\",w=a+\".y0\",M=a+\".x1\",k=a+\".y1\"),v<b?(S=v,I=a+\".x0\",O=\"x0\",E=b,z=a+\".x1\",R=\"x1\"):(S=b,I=a+\".x1\",O=\"x1\",E=v,z=a+\".x0\",R=\"x0\"),y<x?(A=y,L=a+\".y0\",D=\"y0\",T=x,C=a+\".y1\",P=\"y1\"):(A=x,L=a+\".y1\",D=\"y1\",T=y,C=a+\".y0\",P=\"y0\"),d={},i(e),X.moveFn=\"move\"===G?c:f}function s(r){m(e),r&&u.relayout(t,d)}function c(n,i){if(\"path\"===r.type){var a=function(t){return H(U(t)+n)};N&&\"date\"===N.type&&(a=g.encodeDate(a));var s=function(t){return q(V(t)+i)};B&&\"date\"===B.type&&(s=g.encodeDate(s)),r.path=l(F,a,s),d[j]=r.path}else d[_]=r.x0=H(v+n),d[w]=r.y0=q(y+i),d[M]=r.x1=H(b+n),d[k]=r.y1=q(x+i);e.attr(\"d\",o(t,r))}function f(n,i){if(\"path\"===r.type){var a=function(t){return H(U(t)+n)};N&&\"date\"===N.type&&(a=g.encodeDate(a));var s=function(t){return q(V(t)+i)};B&&\"date\"===B.type&&(s=g.encodeDate(s)),r.path=l(F,a,s),d[j]=r.path}else{var u=~G.indexOf(\"n\")?A+i:A,c=~G.indexOf(\"s\")?T+i:T,h=~G.indexOf(\"w\")?S+n:S,f=~G.indexOf(\"e\")?E+n:E;c-u>W&&(d[L]=r[D]=q(u),d[C]=r[P]=q(c)),f-h>Y&&(d[I]=r[O]=H(h),d[z]=r[R]=H(f))}e.attr(\"d\",o(t,r))}var d,v,y,b,x,_,w,M,k,A,T,S,E,L,C,I,z,D,P,O,R,F,j,N,B,U,V,H,q,G,Y=10,W=10,X={element:e.node(),gd:t,prepFn:a,doneFn:s},Z=X.element.getBoundingClientRect();p.init(X),e.node().onmousemove=i}function o(t,e){var r,n,i,a,o=e.type,l=h.getFromId(t,e.xref),u=h.getFromId(t,e.yref),c=t._fullLayout._size;if(l?(r=g.shapePositionToRange(l),n=function(t){return l._offset+l.r2p(r(t,!0))}):n=function(t){return c.l+c.w*t},u?(i=g.shapePositionToRange(u),a=function(t){return u._offset+u.r2p(i(t,!0))}):a=function(t){return c.t+c.h*(1-t)},\"path\"===o)return l&&\"date\"===l.type&&(n=g.decodeDate(n)),u&&\"date\"===u.type&&(a=g.decodeDate(a)),s(e.path,n,a);var f=n(e.x0),d=n(e.x1),p=a(e.y0),m=a(e.y1);if(\"line\"===o)return\"M\"+f+\",\"+p+\"L\"+d+\",\"+m;if(\"rect\"===o)return\"M\"+f+\",\"+p+\"H\"+d+\"V\"+m+\"H\"+f+\"Z\";var v=(f+d)/2,y=(p+m)/2,b=Math.abs(v-f),x=Math.abs(y-p),_=\"A\"+b+\",\"+x,w=v+b+\",\"+y;return\"M\"+w+_+\" 0 1,1 \"+v+\",\"+(y-x)+_+\" 0 0,1 \"+w+\"Z\"}function s(t,e,r){return t.replace(v.segmentRE,function(t){var n=0,i=t.charAt(0),a=v.paramIsX[i],o=v.paramIsY[i],s=v.numParams[i],l=t.substr(1).replace(v.paramRE,function(t){return a[n]?t=e(t):o[n]&&(t=r(t)),n++,n>s&&(t=\"X\"),t});return n>s&&(l=l.replace(/[\\s,]*X.*/,\"\"),c.log(\"Ignoring extra params in segment \"+t)),i+l})}function l(t,e,r){return t.replace(v.segmentRE,function(t){var n=0,i=t.charAt(0),a=v.paramIsX[i],o=v.paramIsY[i],s=v.numParams[i];return i+t.substr(1).replace(v.paramRE,function(t){return n>=s?t:(a[n]?t=e(t):o[n]&&(t=r(t)),n++,t)})})}var u=t(\"../../plotly\"),c=t(\"../../lib\"),h=t(\"../../plots/cartesian/axes\"),f=t(\"../color\"),d=t(\"../drawing\"),p=t(\"../dragelement\"),m=t(\"../../lib/setcursor\"),v=t(\"./constants\"),g=t(\"./helpers\");e.exports={draw:n,drawOne:i}},{\"../../lib\":728,\"../../lib/setcursor\":746,\"../../plotly\":767,\"../../plots/cartesian/axes\":772,\"../color\":604,\"../dragelement\":625,\"../drawing\":628,\"./constants\":683,\"./helpers\":686}],686:[function(t,e,r){\"use strict\";r.rangeToShapePosition=function(t){return\"log\"===t.type?t.r2d:function(t){return t}},r.shapePositionToRange=function(t){return\"log\"===t.type?t.d2r:function(t){return t}},r.decodeDate=function(t){return function(e){return e.replace&&(e=e.replace(\"_\",\" \")),t(e)}},r.encodeDate=function(t){return function(e){return t(e).replace(\" \",\"_\")}},r.getDataToPixel=function(t,e,n){var i,a=t._fullLayout._size;if(e){var o=r.shapePositionToRange(e);i=function(t){return e._offset+e.r2p(o(t,!0))},\"date\"===e.type&&(i=r.decodeDate(i))}else i=n?function(t){return a.t+a.h*(1-t)}:function(t){return a.l+a.w*t};return i},r.getPixelToData=function(t,e,n){var i,a=t._fullLayout._size;if(e){var o=r.rangeToShapePosition(e);i=function(t){return o(e.p2r(t-e._offset))}}else i=n?function(t){return 1-(t-a.t)/a.h}:function(t){return(t-a.l)/a.w};return i}},{}],687:[function(t,e,r){\"use strict\";var n=t(\"./draw\");e.exports={moduleType:\"component\",name:\"shapes\",layoutAttributes:t(\"./attributes\"),supplyLayoutDefaults:t(\"./defaults\"),calcAutorange:t(\"./calc_autorange\"),draw:n.draw,drawOne:n.drawOne}},{\"./attributes\":681,\"./calc_autorange\":682,\"./defaults\":684,\"./draw\":685}],688:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../plots/cartesian/axes\"),a=t(\"./attributes\"),o=t(\"./helpers\");e.exports=function(t,e,r,s,l){function u(r,i){return n.coerce(t,e,a,r,i)}if(s=s||{},l=l||{},!u(\"visible\",!l.itemIsNotPlainObject))return e;u(\"layer\"),u(\"opacity\"),u(\"fillcolor\"),u(\"line.color\"),u(\"line.width\"),u(\"line.dash\");for(var c=t.path?\"path\":\"rect\",h=u(\"type\",c),f=[\"x\",\"y\"],d=0;d<2;d++){var p=f[d],m={_fullLayout:r},v=i.coerceRef(t,e,m,p,\"\",\"paper\");if(\"path\"!==h){var g,y,b;\"paper\"!==v?(g=i.getFromId(m,v),b=o.rangeToShapePosition(g),y=o.shapePositionToRange(g)):y=b=n.identity;var x=p+\"0\",_=p+\"1\",w=t[x],M=t[_];t[x]=y(t[x],!0),t[_]=y(t[_],!0),i.coercePosition(e,m,u,v,x,.25),i.coercePosition(e,m,u,v,_,.75),e[x]=b(e[x]),e[_]=b(e[_]),t[x]=w,t[_]=M}}return\"path\"===h?u(\"path\"):n.noneOrAll(t,e,[\"x0\",\"x1\",\"y0\",\"y1\"]),e}},{\"../../lib\":728,\"../../plots/cartesian/axes\":772,\"./attributes\":681,\"./helpers\":686}],689:[function(t,e,r){\"use strict\";var n=t(\"../../plots/font_attributes\"),i=t(\"../../plots/pad_attributes\"),a=t(\"../../lib/extend\").extendDeepAll,o=t(\"../../plot_api/edit_types\").overrideAll,s=t(\"../../plots/animation_attributes\"),l=t(\"./constants\"),u={_isLinkedToArray:\"step\",method:{valType:\"enumerated\",values:[\"restyle\",\"relayout\",\"animate\",\"update\",\"skip\"],dflt:\"restyle\"},args:{valType:\"info_array\",freeLength:!0,items:[{valType:\"any\"},{valType:\"any\"},{valType:\"any\"}]},label:{valType:\"string\"},value:{valType:\"string\"},execute:{valType:\"boolean\",dflt:!0}};e.exports=o({_isLinkedToArray:\"slider\",visible:{valType:\"boolean\",dflt:!0},active:{valType:\"number\",min:0,dflt:0},steps:u,lenmode:{valType:\"enumerated\",values:[\"fraction\",\"pixels\"],dflt:\"fraction\"},len:{valType:\"number\",min:0,dflt:1},x:{valType:\"number\",min:-2,max:3,dflt:0},pad:a({},i,{},{t:{dflt:20}}),xanchor:{valType:\"enumerated\",values:[\"auto\",\"left\",\"center\",\"right\"],dflt:\"left\"},y:{valType:\"number\",min:-2,max:3,dflt:0},yanchor:{valType:\"enumerated\",values:[\"auto\",\"top\",\"middle\",\"bottom\"],dflt:\"top\"},transition:{duration:{valType:\"number\",min:0,dflt:150},easing:{valType:\"enumerated\",values:s.transition.easing.values,dflt:\"cubic-in-out\"}},currentvalue:{visible:{valType:\"boolean\",dflt:!0},xanchor:{valType:\"enumerated\",values:[\"left\",\"center\",\"right\"],dflt:\"left\"},offset:{valType:\"number\",dflt:10},prefix:{valType:\"string\"},suffix:{valType:\"string\"},font:n({})},font:n({}),activebgcolor:{valType:\"color\",dflt:l.gripBgActiveColor},bgcolor:{valType:\"color\",dflt:l.railBgColor},bordercolor:{valType:\"color\",dflt:l.railBorderColor},borderwidth:{valType:\"number\",min:0,dflt:l.railBorderWidth},ticklen:{valType:\"number\",min:0,dflt:l.tickLength},tickcolor:{valType:\"color\",dflt:l.tickColor},tickwidth:{valType:\"number\",min:0,dflt:1},minorticklen:{valType:\"number\",min:0,dflt:l.minorTickLength}},\"arraydraw\",\"from-root\")},{\"../../lib/extend\":717,\"../../plot_api/edit_types\":756,\"../../plots/animation_attributes\":768,\"../../plots/font_attributes\":796,\"../../plots/pad_attributes\":830,\"./constants\":690}],690:[function(t,e,r){\"use strict\";e.exports={name:\"sliders\",containerClassName:\"slider-container\",groupClassName:\"slider-group\",inputAreaClass:\"slider-input-area\",railRectClass:\"slider-rail-rect\",railTouchRectClass:\"slider-rail-touch-rect\",gripRectClass:\"slider-grip-rect\",tickRectClass:\"slider-tick-rect\",inputProxyClass:\"slider-input-proxy\",labelsClass:\"slider-labels\",labelGroupClass:\"slider-label-group\",labelClass:\"slider-label\",currentValueClass:\"slider-current-value\",railHeight:5,menuIndexAttrName:\"slider-active-index\",autoMarginIdRoot:\"slider-\",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:\"#bec8d9\",railBgColor:\"#f8fafc\",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:\"#bec8d9\",gripBgColor:\"#f6f8fa\",gripBgActiveColor:\"#dbdde0\",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:\"#333\",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:\"#333\",minorTickLength:4,currentValuePadding:8,currentValueInset:0}},{}],691:[function(t,e,r){\"use strict\";function n(t,e,r){function n(r,n){return a.coerce(t,e,s,r,n)}n(\"visible\",i(t,e).length>0)&&(n(\"active\"),n(\"x\"),n(\"y\"),a.noneOrAll(t,e,[\"x\",\"y\"]),n(\"xanchor\"),n(\"yanchor\"),n(\"len\"),n(\"lenmode\"),n(\"pad.t\"),n(\"pad.r\"),n(\"pad.b\"),n(\"pad.l\"),a.coerceFont(n,\"font\",r.font),n(\"currentvalue.visible\")&&(n(\"currentvalue.xanchor\"),n(\"currentvalue.prefix\"),n(\"currentvalue.suffix\"),n(\"currentvalue.offset\"),a.coerceFont(n,\"currentvalue.font\",e.font)),n(\"transition.duration\"),n(\"transition.easing\"),n(\"bgcolor\"),n(\"activebgcolor\"),n(\"bordercolor\"),n(\"borderwidth\"),n(\"ticklen\"),n(\"tickwidth\"),n(\"tickcolor\"),n(\"minorticklen\"))}function i(t,e){function r(t,e){return a.coerce(n,i,c,t,e)}for(var n,i,o=t.steps||[],s=e.steps=[],l=0;l<o.length;l++)n=o[l],i={},r(\"method\"),a.isPlainObject(n)&&(\"skip\"===i.method||Array.isArray(n.args))&&(r(\"args\"),r(\"label\",\"step-\"+l),r(\"value\",i.label),r(\"execute\"),s.push(i));return s}var a=t(\"../../lib\"),o=t(\"../../plots/array_container_defaults\"),s=t(\"./attributes\"),l=t(\"./constants\"),u=l.name,c=s.steps;e.exports=function(t,e){o(t,e,{name:u,handleItemDefaults:n})}},{\"../../lib\":728,\"../../plots/array_container_defaults\":769,\"./attributes\":689,\"./constants\":690}],692:[function(t,e,r){\"use strict\";function n(t,e){for(var r=t[E.name],n=[],i=0;i<r.length;i++){var a=r[i];a.visible&&a.steps.length&&(a.gd=e,n.push(a))}return n}function i(t){return t._index}function a(t,e){var r=A.tester.selectAll(\"g.\"+E.labelGroupClass).data(e.steps);r.enter().append(\"g\").classed(E.labelGroupClass,!0);var n=0,i=0;r.each(function(t){var r=w.select(this),a=u(r,{step:t},e),o=a.node();if(o){var s=A.bBox(o);i=Math.max(i,s.height),n=Math.max(n,s.width)}}),r.remove(),e.inputAreaWidth=Math.max(E.railWidth,E.gripHeight);var a=t._fullLayout._size;e.lx=a.l+a.w*e.x,e.ly=a.t+a.h*(1-e.y),\"fraction\"===e.lenmode?e.outerLength=Math.round(a.w*e.len):e.outerLength=e.len,e.lenPad=Math.round(.5*E.gripWidth),e.inputAreaStart=0,e.inputAreaLength=Math.round(e.outerLength-e.pad.l-e.pad.r);var o=e.inputAreaLength-2*E.stepInset,l=o/(e.steps.length-1),c=n+E.labelPadding;if(e.labelStride=Math.max(1,Math.ceil(c/l)),e.labelHeight=i,e.currentValueMaxWidth=0,e.currentValueHeight=0,e.currentValueTotalHeight=0,e.currentValueMaxLines=1,e.currentvalue.visible){var h=A.tester.append(\"g\");r.each(function(t){var r=s(h,e,t.label),n=r.node()&&A.bBox(r.node())||{width:0,height:0},i=T.lineCount(r);e.currentValueMaxWidth=Math.max(e.currentValueMaxWidth,Math.ceil(n.width)),e.currentValueHeight=Math.max(e.currentValueHeight,Math.ceil(n.height)),e.currentValueMaxLines=Math.max(e.currentValueMaxLines,i)}),e.currentValueTotalHeight=e.currentValueHeight+e.currentvalue.offset,h.remove()}e.height=e.currentValueTotalHeight+E.tickOffset+e.ticklen+E.labelOffset+e.labelHeight+e.pad.t+e.pad.b;var f=\"left\";S.isRightAnchor(e)&&(e.lx-=e.outerLength,f=\"right\"),S.isCenterAnchor(e)&&(e.lx-=e.outerLength/2,f=\"center\");var d=\"top\";S.isBottomAnchor(e)&&(e.ly-=e.height,d=\"bottom\"),S.isMiddleAnchor(e)&&(e.ly-=e.height/2,d=\"middle\"),e.outerLength=Math.ceil(e.outerLength),e.height=Math.ceil(e.height),e.lx=Math.round(e.lx),e.ly=Math.round(e.ly),M.autoMargin(t,E.autoMarginIdRoot+e._index,{x:e.x,y:e.y,l:e.outerLength*({right:1,center:.5}[f]||0),r:e.outerLength*({left:1,center:.5}[f]||0),b:e.height*({top:1,middle:.5}[d]||0),t:e.height*({bottom:1,middle:.5}[d]||0)})}function o(t,e,r){r.active>=r.steps.length&&(r.active=0),e.call(s,r).call(x,r).call(c,r).call(p,r).call(b,t,r).call(l,t,r),A.setTranslate(e,r.lx+r.pad.l,r.ly+r.pad.t),e.call(v,r,r.active/(r.steps.length-1),!1),e.call(s,r)}function s(t,e,r){if(e.currentvalue.visible){var n,i,a=t.selectAll(\"text\").data([0]);switch(e.currentvalue.xanchor){case\"right\":n=e.inputAreaLength-E.currentValueInset-e.currentValueMaxWidth,i=\"left\";break;case\"center\":n=.5*e.inputAreaLength,i=\"middle\";break;default:n=E.currentValueInset,i=\"left\"}a.enter().append(\"text\").classed(E.labelClass,!0).classed(\"user-select-none\",!0).attr({\"text-anchor\":i,\"data-notex\":1});var o=e.currentvalue.prefix?e.currentvalue.prefix:\"\";if(\"string\"==typeof r)o+=r;else{o+=e.steps[e.active].label}e.currentvalue.suffix&&(o+=e.currentvalue.suffix),a.call(A.font,e.currentvalue.font).text(o).call(T.convertToTspans,e.gd);var s=T.lineCount(a),l=(e.currentValueMaxLines+1-s)*e.currentvalue.font.size*L;return T.positionText(a,n,l),a}}function l(t,e,r){var n=t.selectAll(\"rect.\"+E.gripRectClass).data([0]);n.enter().append(\"rect\").classed(E.gripRectClass,!0).call(d,e,t,r).style(\"pointer-events\",\"all\"),n.attr({width:E.gripWidth,height:E.gripHeight,rx:E.gripRadius,ry:E.gripRadius}).call(k.stroke,r.bordercolor).call(k.fill,r.bgcolor).style(\"stroke-width\",r.borderwidth+\"px\")}function u(t,e,r){var n=t.selectAll(\"text\").data([0]);return n.enter().append(\"text\").classed(E.labelClass,!0).classed(\"user-select-none\",!0).attr({\"text-anchor\":\"middle\",\"data-notex\":1}),n.call(A.font,r.font).text(e.step.label).call(T.convertToTspans,r.gd),n}function c(t,e){var r=t.selectAll(\"g.\"+E.labelsClass).data([0]);r.enter().append(\"g\").classed(E.labelsClass,!0);var n=r.selectAll(\"g.\"+E.labelGroupClass).data(e.labelSteps);n.enter().append(\"g\").classed(E.labelGroupClass,!0),n.exit().remove(),n.each(function(t){var r=w.select(this);r.call(u,t,e),A.setTranslate(r,g(e,t.fraction),E.tickOffset+e.ticklen+e.font.size*L+E.labelOffset+e.currentValueTotalHeight)})}function h(t,e,r,n,i){var a=Math.round(n*(r.steps.length-1));a!==r.active&&f(t,e,r,a,!0,i)}function f(t,e,r,n,i,a){var o=r.active;r._input.active=r.active=n;var l=r.steps[r.active];e.call(v,r,r.active/(r.steps.length-1),a),e.call(s,r),t.emit(\"plotly_sliderchange\",{slider:r,step:r.steps[r.active],interaction:i,previousActive:o}),l&&l.method&&i&&(e._nextMethod?(e._nextMethod.step=l,e._nextMethod.doCallback=i,e._nextMethod.doTransition=a):(e._nextMethod={step:l,doCallback:i,doTransition:a},e._nextMethodRaf=window.requestAnimationFrame(function(){var r=e._nextMethod.step;r.method&&(r.execute&&M.executeAPICommand(t,r.method,r.args),e._nextMethod=null,e._nextMethodRaf=null)})))}function d(t,e,r){function n(){return r.data()[0]}var i=r.node(),a=w.select(e);t.on(\"mousedown\",function(){var t=n();e.emit(\"plotly_sliderstart\",{slider:t});var o=r.select(\".\"+E.gripRectClass);w.event.stopPropagation(),w.event.preventDefault(),o.call(k.fill,t.activebgcolor);var s=y(t,w.mouse(i)[0]);h(e,r,t,s,!0),t._dragging=!0,a.on(\"mousemove\",function(){var t=n(),a=y(t,w.mouse(i)[0]);h(e,r,t,a,!1)}),a.on(\"mouseup\",function(){var t=n();t._dragging=!1,o.call(k.fill,t.bgcolor),a.on(\"mouseup\",null),a.on(\"mousemove\",null),e.emit(\"plotly_sliderend\",{slider:t,step:t.steps[t.active]})})})}function p(t,e){var r=t.selectAll(\"rect.\"+E.tickRectClass).data(e.steps);r.enter().append(\"rect\").classed(E.tickRectClass,!0),r.exit().remove(),r.attr({width:e.tickwidth+\"px\",\"shape-rendering\":\"crispEdges\"}),r.each(function(t,r){var n=r%e.labelStride==0,i=w.select(this);i.attr({height:n?e.ticklen:e.minorticklen}).call(k.fill,e.tickcolor),A.setTranslate(i,g(e,r/(e.steps.length-1))-.5*e.tickwidth,(n?E.tickOffset:E.minorTickOffset)+e.currentValueTotalHeight)})}function m(t){t.labelSteps=[];for(var e=t.steps.length,r=0;r<e;r+=t.labelStride)t.labelSteps.push({fraction:r/(e-1),step:t.steps[r]})}function v(t,e,r,n){var i=t.select(\"rect.\"+E.gripRectClass),a=g(e,r);if(!e._invokingCommand){var o=i;n&&e.transition.duration>0&&(o=o.transition().duration(e.transition.duration).ease(e.transition.easing)),o.attr(\"transform\",\"translate(\"+(a-.5*E.gripWidth)+\",\"+e.currentValueTotalHeight+\")\")}}function g(t,e){return t.inputAreaStart+E.stepInset+(t.inputAreaLength-2*E.stepInset)*Math.min(1,Math.max(0,e))}function y(t,e){return Math.min(1,Math.max(0,(e-E.stepInset-t.inputAreaStart)/(t.inputAreaLength-2*E.stepInset-2*t.inputAreaStart)))}function b(t,e,r){var n=t.selectAll(\"rect.\"+E.railTouchRectClass).data([0]);n.enter().append(\"rect\").classed(E.railTouchRectClass,!0).call(d,e,t,r).style(\"pointer-events\",\"all\"),n.attr({width:r.inputAreaLength,height:Math.max(r.inputAreaWidth,E.tickOffset+r.ticklen+r.labelHeight)}).call(k.fill,r.bgcolor).attr(\"opacity\",0),A.setTranslate(n,0,r.currentValueTotalHeight)}function x(t,e){var r=t.selectAll(\"rect.\"+E.railRectClass).data([0]);r.enter().append(\"rect\").classed(E.railRectClass,!0);var n=e.inputAreaLength-2*E.railInset;r.attr({width:n,height:E.railWidth,rx:E.railRadius,ry:E.railRadius,\"shape-rendering\":\"crispEdges\"}).call(k.stroke,e.bordercolor).call(k.fill,e.bgcolor).style(\"stroke-width\",e.borderwidth+\"px\"),A.setTranslate(r,E.railInset,.5*(e.inputAreaWidth-E.railWidth)+e.currentValueTotalHeight)}function _(t){for(var e=t._fullLayout._pushmargin||{},r=Object.keys(e),n=0;n<r.length;n++){var i=r[n];-1!==i.indexOf(E.autoMarginIdRoot)&&M.autoMargin(t,i)}}var w=t(\"d3\"),M=t(\"../../plots/plots\"),k=t(\"../color\"),A=t(\"../drawing\"),T=t(\"../../lib/svg_text_utils\"),S=t(\"../legend/anchor_utils\"),E=t(\"./constants\"),L=t(\"../../constants/alignment\").LINE_SPACING;e.exports=function(t){var e=t._fullLayout,r=n(e,t),s=e._infolayer.selectAll(\"g.\"+E.containerClassName).data(r.length>0?[0]:[]);if(s.enter().append(\"g\").classed(E.containerClassName,!0).style(\"cursor\",\"ew-resize\"),s.exit().remove(),s.exit().size()&&_(t),0!==r.length){var l=s.selectAll(\"g.\"+E.groupClassName).data(r,i);l.enter().append(\"g\").classed(E.groupClassName,!0),l.exit().each(function(e){w.select(this).remove(),e._commandObserver.remove(),delete e._commandObserver,M.autoMargin(t,E.autoMarginIdRoot+e._index)});for(var u=0;u<r.length;u++){var c=r[u];a(t,c)}l.each(function(e){if(!(e.steps.length<2)){var r=w.select(this);m(e),M.manageCommandObserver(t,e,e.steps,function(e){var n=r.data()[0];n.active!==e.index&&(n._dragging||f(t,r,n,e.index,!1,!0))}),o(t,w.select(this),e)}})}}},{\"../../constants/alignment\":701,\"../../lib/svg_text_utils\":750,\"../../plots/plots\":831,\"../color\":604,\"../drawing\":628,\"../legend/anchor_utils\":654,\"./constants\":690,d3:122}],693:[function(t,e,r){\"use strict\";var n=t(\"./constants\");e.exports={moduleType:\"component\",name:n.name,layoutAttributes:t(\"./attributes\"),supplyLayoutDefaults:t(\"./defaults\"),draw:t(\"./draw\")}},{\"./attributes\":689,\"./constants\":690,\"./defaults\":691,\"./draw\":692}],694:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"fast-isnumeric\"),a=t(\"../../plotly\"),o=t(\"../../plots/plots\"),s=t(\"../../lib\"),l=t(\"../drawing\"),u=t(\"../color\"),c=t(\"../../lib/svg_text_utils\"),h=t(\"../../constants/interactions\"),f=/Click to enter .+ title/;(e.exports={}).draw=function(t,e,r){function d(t){s.syncOrAsync([p,m],t)}function p(e){\n", "return e.attr(\"transform\",M?\"rotate(\"+[M.rotate,w.x,w.y]+\") translate(0, \"+M.offset+\")\":null),e.style({\"font-family\":T,\"font-size\":n.round(S,2)+\"px\",fill:u.rgb(E),opacity:L*u.opacity(E),\"font-weight\":o.fontWeight}).attr(w).call(c.convertToTspans,t),o.previousPromises(t)}function m(t){var e=n.select(t.node().parentNode);if(_&&_.selection&&_.side&&I){e.attr(\"transform\",null);var r=0,a={left:\"right\",right:\"left\",top:\"bottom\",bottom:\"top\"}[_.side],o=-1!==[\"left\",\"top\"].indexOf(_.side)?-1:1,u=i(_.pad)?_.pad:2,c=l.bBox(e.node()),h={left:0,top:0,right:A.width,bottom:A.height},f=_.maxShift||(h[_.side]-c[_.side])*(\"left\"===_.side||\"top\"===_.side?-1:1);if(f<0)r=f;else{var d=_.offsetLeft||0,p=_.offsetTop||0;c.left-=d,c.right-=d,c.top-=p,c.bottom-=p,_.selection.each(function(){var t=l.bBox(this);s.bBoxIntersect(c,t,u)&&(r=Math.max(r,o*(t[_.side]-c[a])+u))}),r=Math.min(f,r)}if(r>0||f<0){var m={left:[-r,0],right:[r,0],top:[0,-r],bottom:[0,r]}[_.side];e.attr(\"transform\",\"translate(\"+m+\")\")}}}var v,g=r.propContainer,y=r.propName,b=r.traceIndex,x=r.dfltName,_=r.avoid||{},w=r.attributes,M=r.transform,k=r.containerGroup,A=t._fullLayout,T=g.titlefont.family,S=g.titlefont.size,E=g.titlefont.color,L=1,C=!1,I=g.title.trim();\"title\"===y?v=\"titleText\":-1!==y.indexOf(\"axis\")?v=\"axisTitleText\":y.indexOf(!0)&&(v=\"colorbarTitleText\");var z=t._context.edits[v];\"\"===I&&(L=0),I.match(f)&&(L=.2,C=!0,z||(I=\"\"));var D=I||z;k||(k=A._infolayer.selectAll(\".g-\"+e).data([0]),k.enter().append(\"g\").classed(\"g-\"+e,!0));var P=k.selectAll(\"text\").data(D?[0]:[]);if(P.enter().append(\"text\"),P.text(I).attr(\"class\",e),P.exit().remove(),D){P.call(d);var O=\"Click to enter \"+x+\" title\";z&&(I?P.on(\".opacity\",null):function(){L=0,C=!0,I=O,P.text(I).on(\"mouseover.opacity\",function(){n.select(this).transition().duration(h.SHOW_PLACEHOLDER).style(\"opacity\",1)}).on(\"mouseout.opacity\",function(){n.select(this).transition().duration(h.HIDE_PLACEHOLDER).style(\"opacity\",0)})}(),P.call(c.makeEditable,{gd:t}).on(\"edit\",function(e){void 0!==b?a.restyle(t,y,e,b):a.relayout(t,y,e)}).on(\"cancel\",function(){this.text(this.attr(\"data-unformatted\")).call(d)}).on(\"input\",function(t){this.text(t||\" \").call(c.positionText,w.x,w.y)})),P.classed(\"js-placeholder\",C)}}},{\"../../constants/interactions\":706,\"../../lib\":728,\"../../lib/svg_text_utils\":750,\"../../plotly\":767,\"../../plots/plots\":831,\"../color\":604,\"../drawing\":628,d3:122,\"fast-isnumeric\":131}],695:[function(t,e,r){\"use strict\";var n=t(\"../../plots/font_attributes\"),i=t(\"../color/attributes\"),a=t(\"../../lib/extend\").extendFlat,o=t(\"../../plot_api/edit_types\").overrideAll,s=t(\"../../plots/pad_attributes\"),l={_isLinkedToArray:\"button\",method:{valType:\"enumerated\",values:[\"restyle\",\"relayout\",\"animate\",\"update\",\"skip\"],dflt:\"restyle\"},args:{valType:\"info_array\",freeLength:!0,items:[{valType:\"any\"},{valType:\"any\"},{valType:\"any\"}]},label:{valType:\"string\",dflt:\"\"},execute:{valType:\"boolean\",dflt:!0}};e.exports=o({_isLinkedToArray:\"updatemenu\",_arrayAttrRegexps:[/^updatemenus\\[(0|[1-9][0-9]+)\\]\\.buttons/],visible:{valType:\"boolean\"},type:{valType:\"enumerated\",values:[\"dropdown\",\"buttons\"],dflt:\"dropdown\"},direction:{valType:\"enumerated\",values:[\"left\",\"right\",\"up\",\"down\"],dflt:\"down\"},active:{valType:\"integer\",min:-1,dflt:0},showactive:{valType:\"boolean\",dflt:!0},buttons:l,x:{valType:\"number\",min:-2,max:3,dflt:-.05},xanchor:{valType:\"enumerated\",values:[\"auto\",\"left\",\"center\",\"right\"],dflt:\"right\"},y:{valType:\"number\",min:-2,max:3,dflt:1},yanchor:{valType:\"enumerated\",values:[\"auto\",\"top\",\"middle\",\"bottom\"],dflt:\"top\"},pad:a({},s,{}),font:n({}),bgcolor:{valType:\"color\"},bordercolor:{valType:\"color\",dflt:i.borderLine},borderwidth:{valType:\"number\",min:0,dflt:1,editType:\"arraydraw\"}},\"arraydraw\",\"from-root\")},{\"../../lib/extend\":717,\"../../plot_api/edit_types\":756,\"../../plots/font_attributes\":796,\"../../plots/pad_attributes\":830,\"../color/attributes\":603}],696:[function(t,e,r){\"use strict\";e.exports={name:\"updatemenus\",containerClassName:\"updatemenu-container\",headerGroupClassName:\"updatemenu-header-group\",headerClassName:\"updatemenu-header\",headerArrowClassName:\"updatemenu-header-arrow\",dropdownButtonGroupClassName:\"updatemenu-dropdown-button-group\",dropdownButtonClassName:\"updatemenu-dropdown-button\",buttonClassName:\"updatemenu-button\",itemRectClassName:\"updatemenu-item-rect\",itemTextClassName:\"updatemenu-item-text\",menuIndexAttrName:\"updatemenu-active-index\",autoMarginIdRoot:\"updatemenu-\",blankHeaderOpts:{label:\" \"},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:\"#F4FAFF\",hoverColor:\"#F4FAFF\",arrowSymbol:{left:\"\\u25c4\",right:\"\\u25ba\",up:\"\\u25b2\",down:\"\\u25bc\"}}},{}],697:[function(t,e,r){\"use strict\";function n(t,e,r){function n(r,n){return a.coerce(t,e,s,r,n)}n(\"visible\",i(t,e).length>0)&&(n(\"active\"),n(\"direction\"),n(\"type\"),n(\"showactive\"),n(\"x\"),n(\"y\"),a.noneOrAll(t,e,[\"x\",\"y\"]),n(\"xanchor\"),n(\"yanchor\"),n(\"pad.t\"),n(\"pad.r\"),n(\"pad.b\"),n(\"pad.l\"),a.coerceFont(n,\"font\",r.font),n(\"bgcolor\",r.paper_bgcolor),n(\"bordercolor\"),n(\"borderwidth\"))}function i(t,e){function r(t,e){return a.coerce(n,i,c,t,e)}for(var n,i,o=t.buttons||[],s=e.buttons=[],l=0;l<o.length;l++)n=o[l],i={},r(\"method\"),a.isPlainObject(n)&&(\"skip\"===i.method||Array.isArray(n.args))&&(r(\"args\"),r(\"label\"),r(\"execute\"),i._index=l,s.push(i));return s}var a=t(\"../../lib\"),o=t(\"../../plots/array_container_defaults\"),s=t(\"./attributes\"),l=t(\"./constants\"),u=l.name,c=s.buttons;e.exports=function(t,e){o(t,e,{name:u,handleItemDefaults:n})}},{\"../../lib\":728,\"../../plots/array_container_defaults\":769,\"./attributes\":695,\"./constants\":696}],698:[function(t,e,r){\"use strict\";function n(t){for(var e=t[L.name],r=[],n=0;n<e.length;n++){var i=e[n];i.visible&&r.push(i)}return r}function i(t){return t._index}function a(t){return-1==+t.attr(L.menuIndexAttrName)}function o(t,e){return+t.attr(L.menuIndexAttrName)===e._index}function s(t,e,r,n,i,a,o,s){e._input.active=e.active=o,\"buttons\"===e.type?u(t,n,null,null,e):\"dropdown\"===e.type&&(i.attr(L.menuIndexAttrName,\"-1\"),l(t,n,i,a,e),s||u(t,n,i,a,e))}function l(t,e,r,n,i){var a=e.selectAll(\"g.\"+L.headerClassName).data([0]);a.enter().append(\"g\").classed(L.headerClassName,!0).style(\"pointer-events\",\"all\");var s=i.active,l=i.buttons[s]||L.blankHeaderOpts,c={y:i.pad.t,yPad:0,x:i.pad.l,xPad:0,index:0},h={width:i.headerWidth,height:i.headerHeight};a.call(f,i,l,t).call(b,i,c,h);var d=e.selectAll(\"text.\"+L.headerArrowClassName).data([0]);d.enter().append(\"text\").classed(L.headerArrowClassName,!0).classed(\"user-select-none\",!0).attr(\"text-anchor\",\"end\").call(A.font,i.font).text(L.arrowSymbol[i.direction]),d.attr({x:i.headerWidth-L.arrowOffsetX+i.pad.l,y:i.headerHeight/2+L.textOffsetY+i.pad.t}),a.on(\"click\",function(){r.call(x),r.attr(L.menuIndexAttrName,o(r,i)?-1:String(i._index)),u(t,e,r,n,i)}),a.on(\"mouseover\",function(){a.call(v)}),a.on(\"mouseout\",function(){a.call(g,i)}),A.setTranslate(e,i.lx,i.ly)}function u(t,e,r,n,i){r||(r=e,r.attr(\"pointer-events\",\"all\"));var o=a(r)&&\"buttons\"!==i.type?[]:i.buttons,l=\"dropdown\"===i.type?L.dropdownButtonClassName:L.buttonClassName,u=r.selectAll(\"g.\"+l).data(o),d=u.enter().append(\"g\").classed(l,!0),p=u.exit();\"dropdown\"===i.type?(d.attr(\"opacity\",\"0\").transition().attr(\"opacity\",\"1\"),p.transition().attr(\"opacity\",\"0\").remove()):p.remove();var y=0,x=0,_=-1!==[\"up\",\"down\"].indexOf(i.direction);\"dropdown\"===i.type&&(_?x=i.headerHeight+L.gapButtonHeader:y=i.headerWidth+L.gapButtonHeader),\"dropdown\"===i.type&&\"up\"===i.direction&&(x=-L.gapButtonHeader+L.gapButton-i.openHeight),\"dropdown\"===i.type&&\"left\"===i.direction&&(y=-L.gapButtonHeader+L.gapButton-i.openWidth);var k={x:i.lx+y+i.pad.l,y:i.ly+x+i.pad.t,yPad:L.gapButton,xPad:L.gapButton,index:0},A={l:k.x+i.borderwidth,t:k.y+i.borderwidth};u.each(function(a,o){var l=w.select(this);l.call(f,i,a,t).call(b,i,k),l.on(\"click\",function(){w.event.defaultPrevented||(s(t,i,a,e,r,n,o),a.execute&&M.executeAPICommand(t,a.method,a.args),t.emit(\"plotly_buttonclicked\",{menu:i,button:a,active:i.active}))}),l.on(\"mouseover\",function(){l.call(v)}),l.on(\"mouseout\",function(){l.call(g,i),u.call(m,i)})}),u.call(m,i),_?(A.w=Math.max(i.openWidth,i.headerWidth),A.h=k.y-A.t):(A.w=k.x-A.l,A.h=Math.max(i.openHeight,i.headerHeight)),A.direction=i.direction,n&&(u.size()?c(t,e,r,n,i,A):h(n))}function c(t,e,r,n,i,a){var o,s,l,u=i.direction,c=\"up\"===u||\"down\"===u,h=i.active;if(c)for(s=0,l=0;l<h;l++)s+=i.heights[l]+L.gapButton;else for(o=0,l=0;l<h;l++)o+=i.widths[l]+L.gapButton;n.enable(a,o,s),n.hbar&&n.hbar.attr(\"opacity\",\"0\").transition().attr(\"opacity\",\"1\"),n.vbar&&n.vbar.attr(\"opacity\",\"0\").transition().attr(\"opacity\",\"1\")}function h(t){var e=!!t.hbar,r=!!t.vbar;e&&t.hbar.transition().attr(\"opacity\",\"0\").each(\"end\",function(){e=!1,r||t.disable()}),r&&t.vbar.transition().attr(\"opacity\",\"0\").each(\"end\",function(){r=!1,e||t.disable()})}function f(t,e,r,n){t.call(d,e).call(p,e,r,n)}function d(t,e){var r=t.selectAll(\"rect\").data([0]);r.enter().append(\"rect\").classed(L.itemRectClassName,!0).attr({rx:L.rx,ry:L.ry,\"shape-rendering\":\"crispEdges\"}),r.call(k.stroke,e.bordercolor).call(k.fill,e.bgcolor).style(\"stroke-width\",e.borderwidth+\"px\")}function p(t,e,r,n){var i=t.selectAll(\"text\").data([0]);i.enter().append(\"text\").classed(L.itemTextClassName,!0).classed(\"user-select-none\",!0).attr({\"text-anchor\":\"start\",\"data-notex\":1}),i.call(A.font,e.font).text(r.label).call(T.convertToTspans,n)}function m(t,e){var r=e.active;t.each(function(t,n){var i=w.select(this);n===r&&e.showactive&&i.select(\"rect.\"+L.itemRectClassName).call(k.fill,L.activeColor)})}function v(t){t.select(\"rect.\"+L.itemRectClassName).call(k.fill,L.hoverColor)}function g(t,e){t.select(\"rect.\"+L.itemRectClassName).call(k.fill,e.bgcolor)}function y(t,e){e.width1=0,e.height1=0,e.heights=[],e.widths=[],e.totalWidth=0,e.totalHeight=0,e.openWidth=0,e.openHeight=0,e.lx=0,e.ly=0;var r=A.tester.selectAll(\"g.\"+L.dropdownButtonClassName).data(e.buttons);r.enter().append(\"g\").classed(L.dropdownButtonClassName,!0);var n=-1!==[\"up\",\"down\"].indexOf(e.direction);r.each(function(r,i){var a=w.select(this);a.call(f,e,r,t);var o=a.select(\".\"+L.itemTextClassName),s=o.node()&&A.bBox(o.node()).width,l=Math.max(s+L.textPadX,L.minWidth),u=e.font.size*E,c=T.lineCount(o),h=Math.max(u*c,L.minHeight)+L.textOffsetY;h=Math.ceil(h),l=Math.ceil(l),e.widths[i]=l,e.heights[i]=h,e.height1=Math.max(e.height1,h),e.width1=Math.max(e.width1,l),n?(e.totalWidth=Math.max(e.totalWidth,l),e.openWidth=e.totalWidth,e.totalHeight+=h+L.gapButton,e.openHeight+=h+L.gapButton):(e.totalWidth+=l+L.gapButton,e.openWidth+=l+L.gapButton,e.totalHeight=Math.max(e.totalHeight,h),e.openHeight=e.totalHeight)}),n?e.totalHeight-=L.gapButton:e.totalWidth-=L.gapButton,e.headerWidth=e.width1+L.arrowPadX,e.headerHeight=e.height1,\"dropdown\"===e.type&&(n?(e.width1+=L.arrowPadX,e.totalHeight=e.height1):e.totalWidth=e.width1,e.totalWidth+=L.arrowPadX),r.remove();var i=e.totalWidth+e.pad.l+e.pad.r,a=e.totalHeight+e.pad.t+e.pad.b,o=t._fullLayout._size;e.lx=o.l+o.w*e.x,e.ly=o.t+o.h*(1-e.y);var s=\"left\";S.isRightAnchor(e)&&(e.lx-=i,s=\"right\"),S.isCenterAnchor(e)&&(e.lx-=i/2,s=\"center\");var l=\"top\";S.isBottomAnchor(e)&&(e.ly-=a,l=\"bottom\"),S.isMiddleAnchor(e)&&(e.ly-=a/2,l=\"middle\"),e.totalWidth=Math.ceil(e.totalWidth),e.totalHeight=Math.ceil(e.totalHeight),e.lx=Math.round(e.lx),e.ly=Math.round(e.ly),M.autoMargin(t,L.autoMarginIdRoot+e._index,{x:e.x,y:e.y,l:i*({right:1,center:.5}[s]||0),r:i*({left:1,center:.5}[s]||0),b:a*({top:1,middle:.5}[l]||0),t:a*({bottom:1,middle:.5}[l]||0)})}function b(t,e,r,n){n=n||{};var i=t.select(\".\"+L.itemRectClassName),a=t.select(\".\"+L.itemTextClassName),o=e.borderwidth,s=r.index;A.setTranslate(t,o+r.x,o+r.y);var l=-1!==[\"up\",\"down\"].indexOf(e.direction),u=n.height||(l?e.heights[s]:e.height1);i.attr({x:0,y:0,width:n.width||(l?e.width1:e.widths[s]),height:u});var c=e.font.size*E,h=T.lineCount(a),f=(h-1)*c/2;T.positionText(a,L.textOffsetX,u/2-f+L.textOffsetY),l?r.y+=e.heights[s]+r.yPad:r.x+=e.widths[s]+r.xPad,r.index++}function x(t){t.selectAll(\"g.\"+L.dropdownButtonClassName).remove()}function _(t){for(var e=t._fullLayout._pushmargin||{},r=Object.keys(e),n=0;n<r.length;n++){var i=r[n];-1!==i.indexOf(L.autoMarginIdRoot)&&M.autoMargin(t,i)}}var w=t(\"d3\"),M=t(\"../../plots/plots\"),k=t(\"../color\"),A=t(\"../drawing\"),T=t(\"../../lib/svg_text_utils\"),S=t(\"../legend/anchor_utils\"),E=t(\"../../constants/alignment\").LINE_SPACING,L=t(\"./constants\"),C=t(\"./scrollbox\");e.exports=function(t){var e=t._fullLayout,r=n(e),a=e._infolayer.selectAll(\"g.\"+L.containerClassName).data(r.length>0?[0]:[]);if(a.enter().append(\"g\").classed(L.containerClassName,!0).style(\"cursor\",\"pointer\"),a.exit().remove(),a.exit().size()&&_(t),0!==r.length){var c=a.selectAll(\"g.\"+L.headerGroupClassName).data(r,i);c.enter().append(\"g\").classed(L.headerGroupClassName,!0);var h=a.selectAll(\"g.\"+L.dropdownButtonGroupClassName).data([0]);h.enter().append(\"g\").classed(L.dropdownButtonGroupClassName,!0).style(\"pointer-events\",\"all\");for(var f=0;f<r.length;f++){var d=r[f];y(t,d)}var p=\"updatemenus\"+e._uid,m=new C(t,h,p);c.enter().size()&&h.call(x).attr(L.menuIndexAttrName,\"-1\"),c.exit().each(function(e){w.select(this).remove(),h.call(x).attr(L.menuIndexAttrName,\"-1\"),M.autoMargin(t,L.autoMarginIdRoot+e._index)}),c.each(function(e){var r=w.select(this),n=\"dropdown\"===e.type?h:null;M.manageCommandObserver(t,e,e.buttons,function(i){s(t,e,e.buttons[i.index],r,n,m,i.index,!0)}),\"dropdown\"===e.type?(l(t,r,h,m,e),o(h,e)&&u(t,r,h,m,e)):u(t,r,null,null,e)})}}},{\"../../constants/alignment\":701,\"../../lib/svg_text_utils\":750,\"../../plots/plots\":831,\"../color\":604,\"../drawing\":628,\"../legend/anchor_utils\":654,\"./constants\":696,\"./scrollbox\":700,d3:122}],699:[function(t,e,r){arguments[4][693][0].apply(r,arguments)},{\"./attributes\":695,\"./constants\":696,\"./defaults\":697,\"./draw\":698,dup:693}],700:[function(t,e,r){\"use strict\";function n(t,e,r){this.gd=t,this.container=e,this.id=r,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll(\"rect.scrollbox-bg\").data([0]),this.bg.exit().on(\".drag\",null).on(\"wheel\",null).remove(),this.bg.enter().append(\"rect\").classed(\"scrollbox-bg\",!0).style(\"pointer-events\",\"all\").attr({opacity:0,x:0,y:0,width:0,height:0})}e.exports=n;var i=t(\"d3\"),a=t(\"../color\"),o=t(\"../drawing\"),s=t(\"../../lib\");n.barWidth=2,n.barLength=20,n.barRadius=2,n.barPad=1,n.barColor=\"#808BA4\",n.prototype.enable=function(t,e,r){var s=this.gd._fullLayout,l=s.width,u=s.height;this.position=t;var c,h,f,d,p=this.position.l,m=this.position.w,v=this.position.t,g=this.position.h,y=this.position.direction,b=\"down\"===y,x=\"left\"===y,_=\"right\"===y,w=\"up\"===y,M=m,k=g;b||x||_||w||(this.position.direction=\"down\",b=!0),b||w?(c=p,h=c+M,b?(f=v,d=Math.min(f+k,u),k=d-f):(d=v+k,f=Math.max(d-k,0),k=d-f)):(f=v,d=f+k,x?(h=p+M,c=Math.max(h-M,0),M=h-c):(c=p,h=Math.min(c+M,l),M=h-c)),this._box={l:c,t:f,w:M,h:k};var A=m>M,T=n.barLength+2*n.barPad,S=n.barWidth+2*n.barPad,E=p,L=v+g;L+S>u&&(L=u-S);var C=this.container.selectAll(\"rect.scrollbar-horizontal\").data(A?[0]:[]);C.exit().on(\".drag\",null).remove(),C.enter().append(\"rect\").classed(\"scrollbar-horizontal\",!0).call(a.fill,n.barColor),A?(this.hbar=C.attr({rx:n.barRadius,ry:n.barRadius,x:E,y:L,width:T,height:S}),this._hbarXMin=E+T/2,this._hbarTranslateMax=M-T):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var I=g>k,z=n.barWidth+2*n.barPad,D=n.barLength+2*n.barPad,P=p+m,O=v;P+z>l&&(P=l-z);var R=this.container.selectAll(\"rect.scrollbar-vertical\").data(I?[0]:[]);R.exit().on(\".drag\",null).remove(),R.enter().append(\"rect\").classed(\"scrollbar-vertical\",!0).call(a.fill,n.barColor),I?(this.vbar=R.attr({rx:n.barRadius,ry:n.barRadius,x:P,y:O,width:z,height:D}),this._vbarYMin=O+D/2,this._vbarTranslateMax=k-D):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var F=this.id,j=c-.5,N=I?h+z+.5:h+.5,B=f-.5,U=A?d+S+.5:d+.5,V=s._topdefs.selectAll(\"#\"+F).data(A||I?[0]:[]);if(V.exit().remove(),V.enter().append(\"clipPath\").attr(\"id\",F).append(\"rect\"),A||I?(this._clipRect=V.select(\"rect\").attr({x:Math.floor(j),y:Math.floor(B),width:Math.ceil(N)-Math.floor(j),height:Math.ceil(U)-Math.floor(B)}),this.container.call(o.setClipUrl,F),this.bg.attr({x:p,y:v,width:m,height:g})):(this.bg.attr({width:0,height:0}),this.container.on(\"wheel\",null).on(\".drag\",null).call(o.setClipUrl,null),delete this._clipRect),A||I){var H=i.behavior.drag().on(\"dragstart\",function(){i.event.sourceEvent.preventDefault()}).on(\"drag\",this._onBoxDrag.bind(this));this.container.on(\"wheel\",null).on(\"wheel\",this._onBoxWheel.bind(this)).on(\".drag\",null).call(H);var q=i.behavior.drag().on(\"dragstart\",function(){i.event.sourceEvent.preventDefault(),i.event.sourceEvent.stopPropagation()}).on(\"drag\",this._onBarDrag.bind(this));A&&this.hbar.on(\".drag\",null).call(q),I&&this.vbar.on(\".drag\",null).call(q)}this.setTranslate(e,r)},n.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on(\"wheel\",null).on(\".drag\",null).call(o.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(\".drag\",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(\".drag\",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)},n.prototype._onBoxDrag=function(){var t=this.translateX,e=this.translateY;this.hbar&&(t-=i.event.dx),this.vbar&&(e-=i.event.dy),this.setTranslate(t,e)},n.prototype._onBoxWheel=function(){var t=this.translateX,e=this.translateY;this.hbar&&(t+=i.event.deltaY),this.vbar&&(e+=i.event.deltaY),this.setTranslate(t,e)},n.prototype._onBarDrag=function(){var t=this.translateX,e=this.translateY;if(this.hbar){var r=t+this._hbarXMin,n=r+this._hbarTranslateMax;t=(s.constrain(i.event.x,r,n)-r)/(n-r)*(this.position.w-this._box.w)}if(this.vbar){var a=e+this._vbarYMin,o=a+this._vbarTranslateMax;e=(s.constrain(i.event.y,a,o)-a)/(o-a)*(this.position.h-this._box.h)}this.setTranslate(t,e)},n.prototype.setTranslate=function(t,e){var r=this.position.w-this._box.w,n=this.position.h-this._box.h;if(t=s.constrain(t||0,0,r),e=s.constrain(e||0,0,n),this.translateX=t,this.translateY=e,this.container.call(o.setTranslate,this._box.l-this.position.l-t,this._box.t-this.position.t-e),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+t-.5),y:Math.floor(this.position.t+e-.5)}),this.hbar){var i=t/r;this.hbar.call(o.setTranslate,t+i*this._hbarTranslateMax,e)}if(this.vbar){var a=e/n;this.vbar.call(o.setTranslate,t,e+a*this._vbarTranslateMax)}}},{\"../../lib\":728,\"../color\":604,\"../drawing\":628,d3:122}],701:[function(t,e,r){\"use strict\";e.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},LINE_SPACING:1.3,MID_SHIFT:.35}},{}],702:[function(t,e,r){\"use strict\";e.exports={solid:[1],dot:[1,1],dash:[4,1],longdash:[8,1],dashdot:[4,1,1,1],longdashdot:[8,1,1,1]}},{}],703:[function(t,e,r){\"use strict\";for(var n=t(\"../lib/extend\").extendFlat,i={circle:{unicode:\"\\u25cf\"},square:{unicode:\"\\u25a0\"},diamond:{unicode:\"\\u25c6\"},cross:{unicode:\"\\u271a\"},x:{unicode:\"\\u274c\"},\"triangle-up\":{unicode:\"\\u25b2\"},\"triangle-down\":{unicode:\"\\u25bc\"},\"triangle-left\":{unicode:\"\\u25c4\"},\"triangle-right\":{unicode:\"\\u25ba\"},\"triangle-ne\":{unicode:\"\\u25e5\"},\"triangle-nw\":{unicode:\"\\u25e4\"},\"triangle-se\":{unicode:\"\\u25e2\"},\"triangle-sw\":{unicode:\"\\u25e3\"},pentagon:{unicode:\"\\u2b1f\"},hexagon:{unicode:\"\\u2b22\"},hexagon2:{unicode:\"\\u2b23\"},star:{unicode:\"\\u2605\"},\"diamond-tall\":{unicode:\"\\u2666\"},bowtie:{unicode:\"\\u29d3\"},\"diamond-x\":{unicode:\"\\u2756\"},\"cross-thin\":{unicode:\"+\",noBorder:!0},asterisk:{unicode:\"\\u2733\",noBorder:!0},\"y-up\":{unicode:\"\\u2144\",noBorder:!0},\"y-down\":{unicode:\"Y\",noBorder:!0},\"line-ew\":{unicode:\"\\u2500\",noBorder:!0},\"line-ns\":{unicode:\"\\u2502\",noBorder:!0}},a={},o=Object.keys(i),s=0;s<o.length;s++){var l=o[s];a[l+\"-open\"]=n({},i[l])}var u={\"circle-cross-open\":{unicode:\"\\u2a01\",noFill:!0},\"circle-x-open\":{unicode:\"\\u2a02\",noFill:!0},\"square-cross-open\":{unicode:\"\\u229e\",noFill:!0},\"square-x-open\":{unicode:\"\\u22a0\",noFill:!0}};e.exports=n({},i,a,u)},{\"../lib/extend\":717}],704:[function(t,e,r){\"use strict\";e.exports={solid:[[],0],dot:[[.5,1],200],dash:[[.5,1],50],longdash:[[.5,1],10],dashdot:[[.5,.625,.875,1],50],longdashdot:[[.5,.7,.8,1],10]}},{}],705:[function(t,e,r){\"use strict\";e.exports={circle:\"\\u25cf\",\"circle-open\":\"\\u25cb\",square:\"\\u25a0\",\"square-open\":\"\\u25a1\",diamond:\"\\u25c6\",\"diamond-open\":\"\\u25c7\",cross:\"+\",x:\"\\u274c\"}},{}],706:[function(t,e,r){\"use strict\";e.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DBLCLICKDELAY:300,DESELECTDIM:.2}},{}],707:[function(t,e,r){\"use strict\";e.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE/1e4,ONEAVGYEAR:315576e5,ONEAVGMONTH:26298e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,EPOCHJD:2440587.5,ALMOST_EQUAL:1-1e-6,MINUS_SIGN:\"\\u2212\"}},{}],708:[function(t,e,r){\"use strict\";e.exports={entityToUnicode:{mu:\"\\u03bc\",\"#956\":\"\\u03bc\",amp:\"&\",\"#28\":\"&\",lt:\"<\",\"#60\":\"<\",gt:\">\",\"#62\":\">\",nbsp:\"\\xa0\",\"#160\":\"\\xa0\",times:\"\\xd7\",\"#215\":\"\\xd7\",plusmn:\"\\xb1\",\"#177\":\"\\xb1\",deg:\"\\xb0\",\"#176\":\"\\xb0\"}}},{}],709:[function(t,e,r){\"use strict\";r.xmlns=\"http://www.w3.org/2000/xmlns/\",r.svg=\"http://www.w3.org/2000/svg\",r.xlink=\"http://www.w3.org/1999/xlink\",r.svgAttrs={xmlns:r.svg,\"xmlns:xlink\":r.xlink}},{}],710:[function(t,e,r){\"use strict\";var n=t(\"./plotly\");r.version=\"1.31.0\",t(\"es6-promise\").polyfill(),t(\"../build/plotcss\"),t(\"./fonts/mathjax_config\"),r.plot=n.plot,r.newPlot=n.newPlot,r.restyle=n.restyle,r.relayout=n.relayout,r.redraw=n.redraw,r.update=n.update,r.extendTraces=n.extendTraces,r.prependTraces=n.prependTraces,r.addTraces=n.addTraces,r.deleteTraces=n.deleteTraces,r.moveTraces=n.moveTraces,r.purge=n.purge,r.setPlotConfig=t(\"./plot_api/set_plot_config\"),r.register=t(\"./plot_api/register\"),r.toImage=t(\"./plot_api/to_image\"),r.downloadImage=t(\"./snapshot/download\"),r.validate=t(\"./plot_api/validate\"),r.addFrames=n.addFrames,r.deleteFrames=n.deleteFrames,r.animate=n.animate,r.register(t(\"./traces/scatter\")),r.register([t(\"./components/fx\"),t(\"./components/legend\"),t(\"./components/annotations\"),t(\"./components/annotations3d\"),t(\"./components/shapes\"),t(\"./components/images\"),t(\"./components/updatemenus\"),t(\"./components/sliders\"),t(\"./components/rangeslider\"),t(\"./components/rangeselector\")]),r.Icons=t(\"../build/ploticon\"),r.Plots=n.Plots,r.Fx=t(\"./components/fx\"),r.Snapshot=t(\"./snapshot\"),r.PlotSchema=t(\"./plot_api/plot_schema\"),r.Queue=t(\"./lib/queue\"),r.d3=t(\"d3\")},{\"../build/plotcss\":1,\"../build/ploticon\":2,\"./components/annotations\":595,\"./components/annotations3d\":600,\"./components/fx\":645,\"./components/images\":653,\"./components/legend\":662,\"./components/rangeselector\":674,\"./components/rangeslider\":680,\"./components/shapes\":687,\"./components/sliders\":693,\"./components/updatemenus\":699,\"./fonts/mathjax_config\":711,\"./lib/queue\":741,\"./plot_api/plot_schema\":761,\"./plot_api/register\":762,\"./plot_api/set_plot_config\":763,\"./plot_api/to_image\":765,\"./plot_api/validate\":766,\"./plotly\":767,\"./snapshot\":851,\"./snapshot/download\":848,\"./traces/scatter\":1042,d3:122,\"es6-promise\":128}],711:[function(t,e,r){\"use strict\";\"undefined\"!=typeof MathJax?(r.MathJax=!0,MathJax.Hub.Config({messageStyle:\"none\",skipStartupTypeset:!0,displayAlign:\"left\",tex2jax:{inlineMath:[[\"$\",\"$\"],[\"\\\\(\",\"\\\\)\"]]}}),MathJax.Hub.Configured()):r.MathJax=!1},{}],712:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../constants/numerical\").BADNUM,a=/^['\"%,$#\\s']+|[, ]|['\"%,$#\\s']+$/g;e.exports=function(t){return\"string\"==typeof t&&(t=t.replace(a,\"\")),n(t)?Number(t):i}},{\"../constants/numerical\":707,\"fast-isnumeric\":131}],713:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"tinycolor2\"),a=t(\"../plots/attributes\"),o=t(\"../components/colorscale/get_scale\"),s=(Object.keys(t(\"../components/colorscale/scales\")),t(\"./nested_property\")),l=t(\"./regex\").counter;r.valObjectMeta={data_array:{coerceFunction:function(t,e,r){Array.isArray(t)?e.set(t):void 0!==r&&e.set(r)}},enumerated:{coerceFunction:function(t,e,r,n){n.coerceNumber&&(t=+t),-1===n.values.indexOf(t)?e.set(r):e.set(t)},validateFunction:function(t,e){e.coerceNumber&&(t=+t);for(var r=e.values,n=0;n<r.length;n++){var i=String(r[n]);if(\"/\"===i.charAt(0)&&\"/\"===i.charAt(i.length-1)){if(new RegExp(i.substr(1,i.length-2)).test(t))return!0}else if(t===r[n])return!0}return!1}},boolean:{coerceFunction:function(t,e,r){!0===t||!1===t?e.set(t):e.set(r)}},number:{coerceFunction:function(t,e,r,i){!n(t)||void 0!==i.min&&t<i.min||void 0!==i.max&&t>i.max?e.set(r):e.set(+t)}},integer:{coerceFunction:function(t,e,r,i){t%1||!n(t)||void 0!==i.min&&t<i.min||void 0!==i.max&&t>i.max?e.set(r):e.set(+t)}},string:{coerceFunction:function(t,e,r,n){if(\"string\"!=typeof t){var i=\"number\"==typeof t;!0!==n.strict&&i?e.set(String(t)):e.set(r)}else n.noBlank&&!t?e.set(r):e.set(t)}},color:{coerceFunction:function(t,e,r){i(t).isValid()?e.set(t):e.set(r)}},colorscale:{coerceFunction:function(t,e,r){e.set(o(t,r))}},angle:{coerceFunction:function(t,e,r){\"auto\"===t?e.set(\"auto\"):n(t)?(Math.abs(t)>180&&(t-=360*Math.round(t/360)),e.set(+t)):e.set(r)}},subplotid:{coerceFunction:function(t,e,r){if(\"string\"==typeof t&&l(r).test(t))return void e.set(t);e.set(r)},validateFunction:function(t,e){var r=e.dflt;return t===r||\"string\"==typeof t&&!!l(r).test(t)}},flaglist:{coerceFunction:function(t,e,r,n){if(\"string\"!=typeof t)return void e.set(r);if(-1!==(n.extras||[]).indexOf(t))return void e.set(t);for(var i=t.split(\"+\"),a=0;a<i.length;){var o=i[a];-1===n.flags.indexOf(o)||i.indexOf(o)<a?i.splice(a,1):a++}i.length?e.set(i.join(\"+\")):e.set(r)}},any:{coerceFunction:function(t,e,r){void 0===t?e.set(r):e.set(t)}},info_array:{coerceFunction:function(t,e,n,i){if(!Array.isArray(t))return void e.set(n);var a=i.items,o=[];n=Array.isArray(n)?n:[];for(var s=0;s<a.length;s++)r.coerce(t,o,a,\"[\"+s+\"]\",n[s]);e.set(o)},validateFunction:function(t,e){if(!Array.isArray(t))return!1;var n=e.items;if(!e.freeLength&&t.length!==n.length)return!1;for(var i=0;i<t.length;i++){if(!r.validate(t[i],e.items[i]))return!1}return!0}}},r.coerce=function(t,e,n,i,a){var o=s(n,i).get(),l=s(t,i),u=s(e,i),c=l.get();return void 0===a&&(a=o.dflt),o.arrayOk&&Array.isArray(c)?(u.set(c),c):(r.valObjectMeta[o.valType].coerceFunction(c,u,a,o),u.get())},r.coerce2=function(t,e,n,i,a){var o=s(t,i),l=r.coerce(t,e,n,i,a),u=o.get();return void 0!==u&&null!==u&&l},r.coerceFont=function(t,e,r){var n={};return r=r||{},n.family=t(e+\".family\",r.family),n.size=t(e+\".size\",r.size),n.color=t(e+\".color\",r.color),n},r.coerceHoverinfo=function(t,e,n){var i,o=e._module.attributes,s=o.hoverinfo?{hoverinfo:o.hoverinfo}:a,l=s.hoverinfo;if(1===n._dataLength){var u=\"all\"===l.dflt?l.flags.slice():l.dflt.split(\"+\");u.splice(u.indexOf(\"name\"),1),i=u.join(\"+\")}return r.coerce(t,e,s,\"hoverinfo\",i)},r.validate=function(t,e){var n=r.valObjectMeta[e.valType];if(e.arrayOk&&Array.isArray(t))return!0;if(n.validateFunction)return n.validateFunction(t,e);var i={},a=i,o={set:function(t){a=t}};return n.coerceFunction(t,o,i,e),a!==i}},{\"../components/colorscale/get_scale\":616,\"../components/colorscale/scales\":622,\"../plots/attributes\":770,\"./nested_property\":735,\"./regex\":742,\"fast-isnumeric\":131,tinycolor2:534}],714:[function(t,e,r){\"use strict\";function n(t){return t&&M.componentsRegistry.calendars&&\"string\"==typeof t&&\"gregorian\"!==t}function i(t,e){return String(t+Math.pow(10,e)).substr(1)}function a(t,e,r,n,a){if((e||r||n||a)&&(t+=\" \"+i(e,2)+\":\"+i(r,2),(n||a)&&(t+=\":\"+i(n,2),a))){for(var o=4;a%10==0;)o-=1,a/=10;t+=\".\"+i(a,o)}return t}function o(t,e,r){t=t.replace(D,function(t){var r=Math.min(+t.charAt(1)||6,6);return(e/1e3%1+2).toFixed(r).substr(2).replace(/0+$/,\"\")||\"0\"});var i=new Date(Math.floor(e+.05));if(n(r))try{t=M.getComponentMethod(\"calendars\",\"worldCalFmt\")(t,e,r)}catch(t){return\"Invalid\"}return k(t)(i)}function s(t,e){var r=m(t+.05,y),n=i(Math.floor(r/b),2)+\":\"+i(m(Math.floor(r/x),60),2);if(\"M\"!==e){d(e)||(e=0);var a=Math.min(m(t/_,60),P[e]),o=(100+a).toFixed(e).substr(1);e>0&&(o=o.replace(/0+$/,\"\").replace(/[\\.]$/,\"\")),n+=\":\"+o}return n}function l(t){return t.formatDate(\"yyyy\")}function u(t){return t.formatDate(\"M yyyy\")}function c(t){return t.formatDate(\"M d\")}function h(t){return t.formatDate(\"M d, yyyy\")}var f=t(\"d3\"),d=t(\"fast-isnumeric\"),p=t(\"./loggers\").error,m=t(\"./mod\"),v=t(\"../constants/numerical\"),g=v.BADNUM,y=v.ONEDAY,b=v.ONEHOUR,x=v.ONEMIN,_=v.ONESEC,w=v.EPOCHJD,M=t(\"../registry\"),k=f.time.format.utc,A=/^\\s*(-?\\d\\d\\d\\d|\\d\\d)(-(\\d?\\d)(-(\\d?\\d)([ Tt]([01]?\\d|2[0-3])(:([0-5]\\d)(:([0-5]\\d(\\.\\d+)?))?(Z|z|[+\\-]\\d\\d:?\\d\\d)?)?)?)?)?\\s*$/m,T=/^\\s*(-?\\d\\d\\d\\d|\\d\\d)(-(\\d?\\di?)(-(\\d?\\d)([ Tt]([01]?\\d|2[0-3])(:([0-5]\\d)(:([0-5]\\d(\\.\\d+)?))?(Z|z|[+\\-]\\d\\d:?\\d\\d)?)?)?)?)?\\s*$/m,S=(new Date).getFullYear()-70;r.dateTick0=function(t,e){return n(t)?e?M.getComponentMethod(\"calendars\",\"CANONICAL_SUNDAY\")[t]:M.getComponentMethod(\"calendars\",\"CANONICAL_TICK\")[t]:e?\"2000-01-02\":\"2000-01-01\"},r.dfltRange=function(t){return n(t)?M.getComponentMethod(\"calendars\",\"DFLTRANGE\")[t]:[\"2000-01-01\",\"2001-01-01\"]},r.isJSDate=function(t){return\"object\"==typeof t&&null!==t&&\"function\"==typeof t.getTime};var E,L;r.dateTime2ms=function(t,e){if(r.isJSDate(t))return t=Number(t)-t.getTimezoneOffset()*x,t>=E&&t<=L?t:g;if(\"string\"!=typeof t&&\"number\"!=typeof t)return g;t=String(t);var i=n(e),a=t.charAt(0);!i||\"G\"!==a&&\"g\"!==a||(t=t.substr(1),e=\"\");var o=i&&\"chinese\"===e.substr(0,7),s=t.match(o?T:A);if(!s)return g;var l=s[1],u=s[3]||\"1\",c=Number(s[5]||1),h=Number(s[7]||0),f=Number(s[9]||0),d=Number(s[11]||0);if(i){if(2===l.length)return g;l=Number(l);var p;try{var m=M.getComponentMethod(\"calendars\",\"getCal\")(e);if(o){var v=\"i\"===u.charAt(u.length-1);u=parseInt(u,10),p=m.newDate(l,m.toMonthIndex(l,u,v),c)}else p=m.newDate(l,Number(u),c)}catch(t){return g}return p?(p.toJD()-w)*y+h*b+f*x+d*_:g}l=2===l.length?(Number(l)+2e3-S)%100+S:Number(l),u-=1;var k=new Date(Date.UTC(2e3,u,c,h,f));return k.setUTCFullYear(l),k.getUTCMonth()!==u?g:k.getUTCDate()!==c?g:k.getTime()+d*_},E=r.MIN_MS=r.dateTime2ms(\"-9999\"),L=r.MAX_MS=r.dateTime2ms(\"9999-12-31 23:59:59.9999\"),r.isDateTime=function(t,e){return r.dateTime2ms(t,e)!==g};var C=90*y,I=3*b,z=5*x;r.ms2DateTime=function(t,e,r){if(\"number\"!=typeof t||!(t>=E&&t<=L))return g;e||(e=0);var i,o,s,l,u,c,h=Math.floor(10*m(t+.05,1)),f=Math.round(t-h/10);if(n(r)){var d=Math.floor(f/y)+w,p=Math.floor(m(t,y));try{i=M.getComponentMethod(\"calendars\",\"getCal\")(r).fromJD(d).formatDate(\"yyyy-mm-dd\")}catch(t){i=k(\"G%Y-%m-%d\")(new Date(f))}if(\"-\"===i.charAt(0))for(;i.length<11;)i=\"-0\"+i.substr(1);else for(;i.length<10;)i=\"0\"+i;o=e<C?Math.floor(p/b):0,s=e<C?Math.floor(p%b/x):0,l=e<I?Math.floor(p%x/_):0,u=e<z?p%_*10+h:0}else c=new Date(f),i=k(\"%Y-%m-%d\")(c),o=e<C?c.getUTCHours():0,s=e<C?c.getUTCMinutes():0,l=e<I?c.getUTCSeconds():0,u=e<z?10*c.getUTCMilliseconds()+h:0;return a(i,o,s,l,u)},r.ms2DateTimeLocal=function(t){if(!(t>=E+y&&t<=L-y))return g;var e=Math.floor(10*m(t+.05,1)),r=new Date(Math.round(t-e/10));return a(f.time.format(\"%Y-%m-%d\")(r),r.getHours(),r.getMinutes(),r.getSeconds(),10*r.getUTCMilliseconds()+e)},r.cleanDate=function(t,e,i){if(r.isJSDate(t)||\"number\"==typeof t){if(n(i))return p(\"JS Dates and milliseconds are incompatible with world calendars\",t),e;if(!(t=r.ms2DateTimeLocal(+t))&&void 0!==e)return e}else if(!r.isDateTime(t,i))return p(\"unrecognized date\",t),e;return t};var D=/%\\d?f/g,P=[59,59.9,59.99,59.999,59.9999],O=k(\"%Y\"),R=k(\"%b %Y\"),F=k(\"%b %-d\"),j=k(\"%b %-d, %Y\");r.formatDate=function(t,e,r,i){var a,f;if(i=n(i)&&i,e)return o(e,t,i);if(i)try{var d=Math.floor((t+.05)/y)+w,p=M.getComponentMethod(\"calendars\",\"getCal\")(i).fromJD(d);\"y\"===r?f=l(p):\"m\"===r?f=u(p):\"d\"===r?(a=l(p),f=c(p)):(a=h(p),f=s(t,r))}catch(t){return\"Invalid\"}else{var m=new Date(Math.floor(t+.05))\n", ";\"y\"===r?f=O(m):\"m\"===r?f=R(m):\"d\"===r?(a=O(m),f=F(m)):(a=j(m),f=s(t,r))}return f+(a?\"\\n\"+a:\"\")};var N=3*y;r.incrementMonth=function(t,e,r){r=n(r)&&r;var i=m(t,y);if(t=Math.round(t-i),r)try{var a=Math.round(t/y)+w,o=M.getComponentMethod(\"calendars\",\"getCal\")(r),s=o.fromJD(a);return e%12?o.add(s,e,\"m\"):o.add(s,e/12,\"y\"),(s.toJD()-w)*y+i}catch(e){p(\"invalid ms \"+t+\" in calendar \"+r)}var l=new Date(t+N);return l.setUTCMonth(l.getUTCMonth()+e)+i-N},r.findExactDates=function(t,e){for(var r,i,a=0,o=0,s=0,l=0,u=n(e)&&M.getComponentMethod(\"calendars\",\"getCal\")(e),c=0;c<t.length;c++)if(i=t[c],d(i)){if(!(i%y))if(u)try{r=u.fromJD(i/y+w),1===r.day()?1===r.month()?a++:o++:s++}catch(t){}else r=new Date(i),1===r.getUTCDate()?0===r.getUTCMonth()?a++:o++:s++}else l++;o+=a,s+=o;var h=t.length-l;return{exactYears:a/h,exactMonths:o/h,exactDays:s/h}}},{\"../constants/numerical\":707,\"../registry\":846,\"./loggers\":732,\"./mod\":734,d3:122,\"fast-isnumeric\":131}],715:[function(t,e,r){\"use strict\";e.exports=function(t,e){return Array.isArray(t)||(t=[]),t.length=e,t}},{}],716:[function(t,e,r){\"use strict\";var n=t(\"events\").EventEmitter,i={init:function(t){if(t._ev instanceof n)return t;var e=new n,r=new n;return t._ev=e,t._internalEv=r,t.on=e.on.bind(e),t.once=e.once.bind(e),t.removeListener=e.removeListener.bind(e),t.removeAllListeners=e.removeAllListeners.bind(e),t._internalOn=r.on.bind(r),t._internalOnce=r.once.bind(r),t._removeInternalListener=r.removeListener.bind(r),t._removeAllInternalListeners=r.removeAllListeners.bind(r),t.emit=function(n,i){\"undefined\"!=typeof jQuery&&jQuery(t).trigger(n,i),e.emit(n,i),r.emit(n,i)},t},triggerHandler:function(t,e,r){var n,i;\"undefined\"!=typeof jQuery&&(n=jQuery(t).triggerHandler(e,r));var a=t._ev;if(!a)return n;var o=a._events[e];if(!o)return n;\"function\"==typeof o&&(o=[o]);for(var s=o.pop(),l=0;l<o.length;l++)o[l](r);return i=s(r),void 0!==n?n:i},purge:function(t){return delete t._ev,delete t.on,delete t.once,delete t.removeListener,delete t.removeAllListeners,delete t.emit,delete t._ev,delete t._internalEv,delete t._internalOn,delete t._internalOnce,delete t._removeInternalListener,delete t._removeAllInternalListeners,t}};e.exports=i},{events:129}],717:[function(t,e,r){\"use strict\";function n(t,e){var r,n;for(r=0;r<t.length;r++){if(null!==(n=t[r])&&\"object\"==typeof n)return!1;void 0!==n&&(e[r]=n)}return!0}function i(t,e,r,s){var l,u,c,h,f,d,p=t[0],m=t.length;if(2===m&&o(p)&&o(t[1])&&0===p.length){if(n(t[1],p))return p;p.splice(0,p.length)}for(var v=1;v<m;v++){l=t[v];for(u in l)c=p[u],h=l[u],s&&o(h)?p[u]=h:e&&h&&(a(h)||(f=o(h)))?(f?(f=!1,d=c&&o(c)?c:[]):d=c&&a(c)?c:{},p[u]=i([d,h],e,r,s)):(void 0!==h||r)&&(p[u]=h)}return p}var a=t(\"./is_plain_object.js\"),o=Array.isArray;r.extendFlat=function(){return i(arguments,!1,!1,!1)},r.extendDeep=function(){return i(arguments,!0,!1,!1)},r.extendDeepAll=function(){return i(arguments,!0,!0,!1)},r.extendDeepNoArrays=function(){return i(arguments,!0,!1,!0)}},{\"./is_plain_object.js\":730}],718:[function(t,e,r){\"use strict\";e.exports=function(t){for(var e={},r=[],n=0,i=0;i<t.length;i++){var a=t[i];1!==e[a]&&(e[a]=1,r[n++]=a)}return r}},{}],719:[function(t,e,r){\"use strict\";e.exports=function(t){for(var e=[],r=0;r<t.length;r++){var n=t[r];!0===n.visible&&e.push(n)}return e}},{}],720:[function(t,e,r){\"use strict\";function n(t,e){return(0,l[t])(e)}function i(t){for(var e=0;e<s.length;e++){var r=s[e];if(new RegExp(a[r]).test(t.trim().toLowerCase()))return r}return o.warn(\"Unrecognized country name: \"+t+\".\"),!1}var a=t(\"country-regex\"),o=t(\"../lib\"),s=Object.keys(a),l={\"ISO-3\":o.identity,\"USA-states\":o.identity,\"country names\":i};r.locationToFeature=function(t,e,r){var i=n(t,e);if(i){for(var a=0;a<r.length;a++){var s=r[a];if(s.id===i)return s}o.warn([\"Location with id\",i,\"does not have a matching topojson feature at this resolution.\"].join(\" \"))}return!1}},{\"../lib\":728,\"country-regex\":107}],721:[function(t,e,r){\"use strict\";var n=t(\"../constants/numerical\").BADNUM;r.calcTraceToLineCoords=function(t){for(var e=t[0].trace,r=e.connectgaps,i=[],a=[],o=0;o<t.length;o++){var s=t[o],l=s.lonlat;l[0]!==n?a.push(l):!r&&a.length>0&&(i.push(a),a=[])}return a.length>0&&i.push(a),i},r.makeLine=function(t){return 1===t.length?{type:\"LineString\",coordinates:t[0]}:{type:\"MultiLineString\",coordinates:t}},r.makePolygon=function(t){if(1===t.length)return{type:\"Polygon\",coordinates:t};for(var e=new Array(t.length),r=0;r<t.length;r++)e[r]=[t[r]];return{type:\"MultiPolygon\",coordinates:e}},r.makeBlank=function(){return{type:\"Point\",coordinates:[]}}},{\"../constants/numerical\":707}],722:[function(t,e,r){\"use strict\";function n(t,e,r,n,i,a,o,s){var l=r-t,u=i-t,c=o-i,h=n-e,f=a-e,d=s-a,p=l*d-c*h;if(0===p)return null;var m=(u*d-c*f)/p,v=(u*h-l*f)/p;return v<0||v>1||m<0||m>1?null:{x:t+l*m,y:e+h*m}}function i(t,e,r,n,i){var a=n*t+i*e;if(a<0)return n*n+i*i;if(a>r){var o=n-t,s=i-e;return o*o+s*s}var l=n*e-i*t;return l*l/r}var a=t(\"./mod\");r.segmentsIntersect=n,r.segmentDistance=function(t,e,r,a,o,s,l,u){if(n(t,e,r,a,o,s,l,u))return 0;var c=r-t,h=a-e,f=l-o,d=u-s,p=c*c+h*h,m=f*f+d*d,v=Math.min(i(c,h,p,o-t,s-e),i(c,h,p,l-t,u-e),i(f,d,m,t-o,e-s),i(f,d,m,r-o,a-s));return Math.sqrt(v)};var o,s,l;r.getTextLocation=function(t,e,r,n){if(t===s&&n===l||(o={},s=t,l=n),o[r])return o[r];var i=t.getPointAtLength(a(r-n/2,e)),u=t.getPointAtLength(a(r+n/2,e)),c=Math.atan((u.y-i.y)/(u.x-i.x)),h=t.getPointAtLength(a(r,e)),f=(4*h.x+i.x+u.x)/6,d=(4*h.y+i.y+u.y)/6,p={x:f,y:d,theta:c};return o[r]=p,p},r.clearLocationCache=function(){s=null},r.getVisibleSegment=function(t,e,r){function n(e){var r=t.getPointAtLength(e);0===e?i=r:e===h&&(a=r);var n=r.x<o?o-r.x:r.x>s?r.x-s:0,c=r.y<l?l-r.y:r.y>u?r.y-u:0;return Math.sqrt(n*n+c*c)}for(var i,a,o=e.left,s=e.right,l=e.top,u=e.bottom,c=0,h=t.getTotalLength(),f=h,d=n(c);d;){if((c+=d+r)>f)return;d=n(c)}for(d=n(f);d;){if(f-=d+r,c>f)return;d=n(f)}return{min:c,max:f,len:f-c,total:h,isClosed:0===c&&f===h&&Math.abs(i.x-a.x)<.1&&Math.abs(i.y-a.y)<.1}}},{\"./mod\":734}],723:[function(t,e,r){\"use strict\";e.exports=function(t){var e;if(\"string\"==typeof t){if(null===(e=document.getElementById(t)))throw new Error(\"No DOM element with id '\"+t+\"' exists on the page.\");return e}if(null===t||void 0===t)throw new Error(\"DOM element provided is null or undefined\");return t}},{}],724:[function(t,e,r){\"use strict\";function n(t,e){var r=t;return r[3]*=e,r}function i(t){if(s(t))return h;var e=l(t);return e.length?e:h}function a(t){return s(t)?t:f}function o(t,e,r){var o,s,c,d,p,m=t.color,v=Array.isArray(m),g=Array.isArray(e),y=[];if(o=void 0!==t.colorscale?u.makeColorScaleFunc(u.extractScale(t.colorscale,t.cmin,t.cmax)):i,s=v?function(t,e){return void 0===t[e]?h:l(o(t[e]))}:i,c=g?function(t,e){return void 0===t[e]?f:a(t[e])}:a,v||g)for(var b=0;b<r;b++)d=s(m,b),p=c(e,b),y[b]=n(d,p);else y=n(l(m),e);return y}var s=t(\"fast-isnumeric\"),l=t(\"color-rgba\"),u=t(\"../components/colorscale\"),c=t(\"../components/color/attributes\").defaultLine,h=l(c),f=1;e.exports=o},{\"../components/color/attributes\":603,\"../components/colorscale\":618,\"color-rgba\":95,\"fast-isnumeric\":131}],725:[function(t,e,r){\"use strict\";function n(t){return[t]}var i=t(\"./identity\");e.exports={keyFun:function(t){return t.key},repeat:n,descend:i,wrap:n,unwrap:function(t){return t[0]}}},{\"./identity\":727}],726:[function(t,e,r){\"use strict\";function n(t){for(var e=0;(e=t.indexOf(\"<sup>\",e))>=0;){var r=t.indexOf(\"</sup>\",e);if(r<e)break;t=t.slice(0,e)+l(t.slice(e+5,r))+t.slice(r+6)}return t}function i(t){return t.replace(/\\<br\\>/g,\"\\n\")}function a(t){return t.replace(/\\<.*\\>/g,\"\")}function o(t){for(var e=u.entityToUnicode,r=0;(r=t.indexOf(\"&\",r))>=0;){var n=t.indexOf(\";\",r);if(n<r)r+=1;else{var i=e[t.slice(r+1,n)];t=i?t.slice(0,r)+i+t.slice(n+1):t.slice(0,r)+t.slice(n+1)}}return t}function s(t){return\"\"+o(a(n(i(t))))}var l=t(\"superscript-text\"),u=t(\"../constants/string_mappings\");e.exports=s},{\"../constants/string_mappings\":708,\"superscript-text\":530}],727:[function(t,e,r){\"use strict\";e.exports=function(t){return t}},{}],728:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"fast-isnumeric\"),a=t(\"../constants/numerical\"),o=a.FP_SAFE,s=a.BADNUM,l=e.exports={};l.nestedProperty=t(\"./nested_property\"),l.keyedContainer=t(\"./keyed_container\"),l.relativeAttr=t(\"./relative_attr\"),l.isPlainObject=t(\"./is_plain_object\"),l.isArray=t(\"./is_array\"),l.mod=t(\"./mod\"),l.toLogRange=t(\"./to_log_range\"),l.relinkPrivateKeys=t(\"./relink_private\"),l.ensureArray=t(\"./ensure_array\");var u=t(\"./coerce\");l.valObjectMeta=u.valObjectMeta,l.coerce=u.coerce,l.coerce2=u.coerce2,l.coerceFont=u.coerceFont,l.coerceHoverinfo=u.coerceHoverinfo,l.validate=u.validate;var c=t(\"./dates\");l.dateTime2ms=c.dateTime2ms,l.isDateTime=c.isDateTime,l.ms2DateTime=c.ms2DateTime,l.ms2DateTimeLocal=c.ms2DateTimeLocal,l.cleanDate=c.cleanDate,l.isJSDate=c.isJSDate,l.formatDate=c.formatDate,l.incrementMonth=c.incrementMonth,l.dateTick0=c.dateTick0,l.dfltRange=c.dfltRange,l.findExactDates=c.findExactDates,l.MIN_MS=c.MIN_MS,l.MAX_MS=c.MAX_MS;var h=t(\"./search\");l.findBin=h.findBin,l.sorterAsc=h.sorterAsc,l.sorterDes=h.sorterDes,l.distinctVals=h.distinctVals,l.roundUp=h.roundUp;var f=t(\"./stats\");l.aggNums=f.aggNums,l.len=f.len,l.mean=f.mean,l.variance=f.variance,l.stdev=f.stdev,l.interp=f.interp;var d=t(\"./matrix\");l.init2dArray=d.init2dArray,l.transposeRagged=d.transposeRagged,l.dot=d.dot,l.translationMatrix=d.translationMatrix,l.rotationMatrix=d.rotationMatrix,l.rotationXYMatrix=d.rotationXYMatrix,l.apply2DTransform=d.apply2DTransform,l.apply2DTransform2=d.apply2DTransform2;var p=t(\"./geometry2d\");l.segmentsIntersect=p.segmentsIntersect,l.segmentDistance=p.segmentDistance,l.getTextLocation=p.getTextLocation,l.clearLocationCache=p.clearLocationCache,l.getVisibleSegment=p.getVisibleSegment;var m=t(\"./extend\");l.extendFlat=m.extendFlat,l.extendDeep=m.extendDeep,l.extendDeepAll=m.extendDeepAll,l.extendDeepNoArrays=m.extendDeepNoArrays;var v=t(\"./loggers\");l.log=v.log,l.warn=v.warn,l.error=v.error;var g=t(\"./regex\");l.counterRegex=g.counter;var y=t(\"./throttle\");l.throttle=y.throttle,l.throttleDone=y.done,l.clearThrottle=y.clear,l.getGraphDiv=t(\"./get_graph_div\"),l.notifier=t(\"./notifier\"),l.filterUnique=t(\"./filter_unique\"),l.filterVisible=t(\"./filter_visible\"),l.pushUnique=t(\"./push_unique\"),l.cleanNumber=t(\"./clean_number\"),l.ensureNumber=function(t){return i(t)?(t=Number(t),t<-o||t>o?s:i(t)?Number(t):s):s},l.noop=t(\"./noop\"),l.identity=t(\"./identity\"),l.swapAttrs=function(t,e,r,n){r||(r=\"x\"),n||(n=\"y\");for(var i=0;i<e.length;i++){var a=e[i],o=l.nestedProperty(t,a.replace(\"?\",r)),s=l.nestedProperty(t,a.replace(\"?\",n)),u=o.get();o.set(s.get()),s.set(u)}},l.pauseEvent=function(t){return t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault(),t.cancelBubble=!0,!1},l.raiseToTop=function(t){t.parentNode.appendChild(t)},l.cancelTransition=function(t){return t.transition().duration(0)},l.constrain=function(t,e,r){return e>r?Math.max(r,Math.min(e,t)):Math.max(e,Math.min(r,t))},l.bBoxIntersect=function(t,e,r){return r=r||0,t.left<=e.right+r&&e.left<=t.right+r&&t.top<=e.bottom+r&&e.top<=t.bottom+r},l.simpleMap=function(t,e,r,n){for(var i=t.length,a=new Array(i),o=0;o<i;o++)a[o]=e(t[o],r,n);return a},l.randstr=function t(e,r,n){if(n||(n=16),void 0===r&&(r=24),r<=0)return\"0\";var i,a,o,s=Math.log(Math.pow(2,r))/Math.log(n),l=\"\";for(i=2;s===1/0;i*=2)s=Math.log(Math.pow(2,r/i))/Math.log(n)*i;var u=s-Math.floor(s);for(i=0;i<Math.floor(s);i++)o=Math.floor(Math.random()*n).toString(n),l=o+l;u&&(a=Math.pow(n,u),o=Math.floor(Math.random()*a).toString(n),l=o+l);var c=parseInt(l,n);return e&&e.indexOf(l)>-1||c!==1/0&&c>=Math.pow(2,r)?t(e,r,n):l},l.OptionControl=function(t,e){t||(t={}),e||(e=\"opt\");var r={};return r.optionList=[],r._newoption=function(n){n[e]=t,r[n.name]=n,r.optionList.push(n)},r[\"_\"+e]=t,r},l.smooth=function(t,e){if((e=Math.round(e)||0)<2)return t;var r,n,i,a,o=t.length,s=2*o,l=2*e-1,u=new Array(l),c=new Array(o);for(r=0;r<l;r++)u[r]=(1-Math.cos(Math.PI*(r+1)/e))/(2*e);for(r=0;r<o;r++){for(a=0,n=0;n<l;n++)i=r+n+1-e,i<-o?i-=s*Math.round(i/s):i>=s&&(i-=s*Math.floor(i/s)),i<0?i=-1-i:i>=o&&(i=s-1-i),a+=t[i]*u[n];c[r]=a}return c},l.syncOrAsync=function(t,e,r){function n(){return l.syncOrAsync(t,e,r)}for(var i,a;t.length;)if(a=t.splice(0,1)[0],(i=a(e))&&i.then)return i.then(n).then(void 0,l.promiseError);return r&&r(e)},l.stripTrailingSlash=function(t){return\"/\"===t.substr(-1)?t.substr(0,t.length-1):t},l.noneOrAll=function(t,e,r){if(t){var n,i,a=!1,o=!0;for(n=0;n<r.length;n++)i=t[r[n]],void 0!==i&&null!==i?a=!0:o=!1;if(a&&!o)for(n=0;n<r.length;n++)t[r[n]]=e[r[n]]}},l.mergeArray=function(t,e,r){if(Array.isArray(t))for(var n=Math.min(t.length,e.length),i=0;i<n;i++)e[i][r]=t[i]},l.fillArray=function(t,e,r,n){if(n=n||l.identity,Array.isArray(t))for(var i=0;i<e.length;i++)e[i][r]=n(t[i])},l.castOption=function(t,e,r,n){n=n||l.identity;var i=l.nestedProperty(t,r).get();return Array.isArray(i)?n(Array.isArray(e)&&Array.isArray(i[e[0]])?i[e[0]][e[1]]:i[e]):i},l.extractOption=function(t,e,r,n){if(r in t)return t[r];var i=l.nestedProperty(e,n).get();return Array.isArray(i)?void 0:i},l.getTargetArray=function(t,e){var r=e.target;if(\"string\"==typeof r&&r){var n=l.nestedProperty(t,r).get();return!!Array.isArray(n)&&n}return!!Array.isArray(r)&&r},l.minExtend=function(t,e){var r={};\"object\"!=typeof e&&(e={});var n,i,a,o=Object.keys(t);for(n=0;n<o.length;n++)i=o[n],a=t[i],\"_\"!==i.charAt(0)&&\"function\"!=typeof a&&(\"module\"===i?r[i]=a:Array.isArray(a)?r[i]=a.slice(0,3):r[i]=a&&\"object\"==typeof a?l.minExtend(t[i],e[i]):a);for(o=Object.keys(e),n=0;n<o.length;n++)i=o[n],\"object\"==typeof(a=e[i])&&i in r&&\"object\"==typeof r[i]||(r[i]=a);return r},l.titleCase=function(t){return t.charAt(0).toUpperCase()+t.substr(1)},l.containsAny=function(t,e){for(var r=0;r<e.length;r++)if(-1!==t.indexOf(e[r]))return!0;return!1},l.isPlotDiv=function(t){var e=n.select(t);return e.node()instanceof HTMLElement&&e.size()&&e.classed(\"js-plotly-plot\")},l.removeElement=function(t){var e=t&&t.parentNode;e&&e.removeChild(t)},l.addStyleRule=function(t,e){if(!l.styleSheet){var r=document.createElement(\"style\");r.appendChild(document.createTextNode(\"\")),document.head.appendChild(r),l.styleSheet=r.sheet}var n=l.styleSheet;n.insertRule?n.insertRule(t+\"{\"+e+\"}\",0):n.addRule?n.addRule(t,e,0):l.warn(\"addStyleRule failed\")},l.isIE=function(){return void 0!==window.navigator.msSaveBlob},l.isD3Selection=function(t){return t&&\"function\"==typeof t.classed},l.objectFromPath=function(t,e){for(var r,n=t.split(\".\"),i=r={},a=0;a<n.length;a++){var o=n[a],s=null,l=n[a].match(/(.*)\\[([0-9]+)\\]/);l?(o=l[1],s=l[2],r=r[o]=[],a===n.length-1?r[s]=e:r[s]={},r=r[s]):(a===n.length-1?r[o]=e:r[o]={},r=r[o])}return i};var b=/^([^\\[\\.]+)\\.(.+)?/,x=/^([^\\.]+)\\[([0-9]+)\\](\\.)?(.+)?/;l.expandObjectPaths=function(t){var e,r,n,i,a,o,s;if(\"object\"==typeof t&&!Array.isArray(t))for(r in t)t.hasOwnProperty(r)&&((e=r.match(b))?(i=t[r],n=e[1],delete t[r],t[n]=l.extendDeepNoArrays(t[n]||{},l.objectFromPath(r,l.expandObjectPaths(i))[n])):(e=r.match(x))?(i=t[r],n=e[1],a=parseInt(e[2]),delete t[r],t[n]=t[n]||[],\".\"===e[3]?(s=e[4],o=t[n][a]=t[n][a]||{},l.extendDeepNoArrays(o,l.objectFromPath(s,l.expandObjectPaths(i)))):t[n][a]=l.expandObjectPaths(i)):t[r]=l.expandObjectPaths(t[r]));return t},l.numSeparate=function(t,e,r){if(r||(r=!1),\"string\"!=typeof e||0===e.length)throw new Error(\"Separator string required for formatting!\");\"number\"==typeof t&&(t=String(t));var n=/(\\d+)(\\d{3})/,i=e.charAt(0),a=e.charAt(1),o=t.split(\".\"),s=o[0],l=o.length>1?i+o[1]:\"\";if(a&&(o.length>1||s.length>4||r))for(;n.test(s);)s=s.replace(n,\"$1\"+a+\"$2\");return s+l};var _=/%{([^\\s%{}]*)}/g,w=/^\\w*$/;l.templateString=function(t,e){var r={};return t.replace(_,function(t,n){return w.test(n)?e[n]||\"\":(r[n]=r[n]||l.nestedProperty(e,n).get,r[n]()||\"\")})}},{\"../constants/numerical\":707,\"./clean_number\":712,\"./coerce\":713,\"./dates\":714,\"./ensure_array\":715,\"./extend\":717,\"./filter_unique\":718,\"./filter_visible\":719,\"./geometry2d\":722,\"./get_graph_div\":723,\"./identity\":727,\"./is_array\":729,\"./is_plain_object\":730,\"./keyed_container\":731,\"./loggers\":732,\"./matrix\":733,\"./mod\":734,\"./nested_property\":735,\"./noop\":736,\"./notifier\":737,\"./push_unique\":740,\"./regex\":742,\"./relative_attr\":743,\"./relink_private\":744,\"./search\":745,\"./stats\":748,\"./throttle\":751,\"./to_log_range\":752,d3:122,\"fast-isnumeric\":131}],729:[function(t,e,r){\"use strict\";var n=\"undefined\"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer:{isView:function(){return!1}};e.exports=function(t){return Array.isArray(t)||n.isView(t)}},{}],730:[function(t,e,r){\"use strict\";e.exports=function(t){return window&&window.process&&window.process.versions?\"[object Object]\"===Object.prototype.toString.call(t):\"[object Object]\"===Object.prototype.toString.call(t)&&Object.getPrototypeOf(t)===Object.prototype}},{}],731:[function(t,e,r){\"use strict\";var n=t(\"./nested_property\"),i=/^\\w*$/;e.exports=function(t,e,r,a){r=r||\"name\",a=a||\"value\";var o,s,l={};s=e&&e.length?n(t,e).get():t,e=e||\"\",s=s||[];var u={};for(o=0;o<s.length;o++)u[s[o][r]]=o;var c=i.test(a),h={set:function(t,e){var i=null===e?4:0,o=u[t];void 0===o?(i|=3,o=s.length,u[t]=o):e!==(c?s[o][a]:n(s[o],a).get())&&(i|=2);var f=s[o]=s[o]||{};return f[r]=t,c?f[a]=e:n(f,a).set(e),null!==e&&(i&=-5),l[o]=l[o]|i,h},get:function(t){var e=u[t];return void 0===e?void 0:c?s[e][a]:n(s[e],a).get()},rename:function(t,e){var n=u[t];return void 0===n?h:(l[n]=1|l[n],u[e]=n,delete u[t],s[n][r]=e,h)},remove:function(t){var e=u[t];if(void 0===e)return h;var i=s[e];if(Object.keys(i).length>2)return l[e]=2|l[e],h.set(t,null);if(c){for(o=e;o<s.length;o++)l[o]=3|l[o];for(o=e;o<s.length;o++)u[s[o][r]]--;s.splice(e,1),delete u[t]}else n(i,a).set(null),l[e]=6|l[e];return h},constructUpdate:function(){for(var t,i,o={},u=Object.keys(l),h=0;h<u.length;h++)i=u[h],t=e+\"[\"+i+\"]\",s[i]?(1&l[i]&&(o[t+\".\"+r]=s[i][r]),2&l[i]&&(o[t+\".\"+a]=c?4&l[i]?null:s[i][a]:4&l[i]?null:n(s[i],a).get())):o[t]=null;return o}};return h}},{\"./nested_property\":735}],732:[function(t,e,r){\"use strict\";function n(t,e){if(t.apply)t.apply(t,e);else for(var r=0;r<e.length;r++)t(e[r])}var i=t(\"../plot_api/plot_config\"),a=e.exports={};a.log=function(){if(i.logging>1){for(var t=[\"LOG:\"],e=0;e<arguments.length;e++)t.push(arguments[e]);n(console.trace||console.log,t)}},a.warn=function(){if(i.logging>0){for(var t=[\"WARN:\"],e=0;e<arguments.length;e++)t.push(arguments[e]);n(console.trace||console.log,t)}},a.error=function(){if(i.logging>0){for(var t=[\"ERROR:\"],e=0;e<arguments.length;e++)t.push(arguments[e]);n(console.error,t)}}},{\"../plot_api/plot_config\":760}],733:[function(t,e,r){\"use strict\";r.init2dArray=function(t,e){for(var r=new Array(t),n=0;n<t;n++)r[n]=new Array(e);return r},r.transposeRagged=function(t){var e,r,n=0,i=t.length;for(e=0;e<i;e++)n=Math.max(n,t[e].length);var a=new Array(n);for(e=0;e<n;e++)for(a[e]=new Array(i),r=0;r<i;r++)a[e][r]=t[r][e];return a},r.dot=function(t,e){if(!t.length||!e.length||t.length!==e.length)return null;var n,i,a=t.length;if(t[0].length)for(n=new Array(a),i=0;i<a;i++)n[i]=r.dot(t[i],e);else if(e[0].length){var o=r.transposeRagged(e);for(n=new Array(o.length),i=0;i<o.length;i++)n[i]=r.dot(t,o[i])}else for(n=0,i=0;i<a;i++)n+=t[i]*e[i];return n},r.translationMatrix=function(t,e){return[[1,0,t],[0,1,e],[0,0,1]]},r.rotationMatrix=function(t){var e=t*Math.PI/180;return[[Math.cos(e),-Math.sin(e),0],[Math.sin(e),Math.cos(e),0],[0,0,1]]},r.rotationXYMatrix=function(t,e,n){return r.dot(r.dot(r.translationMatrix(e,n),r.rotationMatrix(t)),r.translationMatrix(-e,-n))},r.apply2DTransform=function(t){return function(){var e=arguments;3===e.length&&(e=e[0]);var n=1===arguments.length?e[0]:[e[0],e[1]];return r.dot(t,[n[0],n[1],1]).slice(0,2)}},r.apply2DTransform2=function(t){var e=r.apply2DTransform(t);return function(t){return e(t.slice(0,2)).concat(e(t.slice(2,4)))}}},{}],734:[function(t,e,r){\"use strict\";e.exports=function(t,e){var r=t%e;return r<0?r+e:r}},{}],735:[function(t,e,r){\"use strict\";function n(t,e){return function(){var r,i,a,o,s,l=t;for(o=0;o<e.length-1;o++){if(-1===(r=e[o])){for(i=!0,a=[],s=0;s<l.length;s++)a[s]=n(l[s],e.slice(o+1))(),a[s]!==a[0]&&(i=!1);return i?a[0]:a}if(\"number\"==typeof r&&!d(l))return;if(\"object\"!=typeof(l=l[r])||null===l)return}if(\"object\"==typeof l&&null!==l&&null!==(a=l[e[o]]))return a}}function i(t,e){if(!c(t)||p(t)&&\"]\"===e.charAt(e.length-1)||e.match(g)&&void 0!==t)return!1;if(!d(t))return!0;if(e.match(v))return!0;var r=m(e);return r&&\"\"===r.index}function a(t,e,r){return function(n){var a,c,h=t,f=\"\",p=[[t,f]],m=i(n,r);for(c=0;c<e.length-1;c++){if(\"number\"==typeof(a=e[c])&&!d(h))throw\"array index but container is not an array\";if(-1===a){if(m=!s(h,e.slice(c+1),n,r))break;return}if(!l(h,a,e[c+1],m))break;if(\"object\"!=typeof(h=h[a])||null===h)throw\"container is not an object\";f=o(f,a),p.push([h,f])}m?(c===e.length-1&&delete h[e[c]],u(p)):h[e[c]]=n}}function o(t,e){var r=e;return f(e)?r=\"[\"+e+\"]\":t&&(r=\".\"+e),t+r}function s(t,e,r,n){var o,s=d(r),u=!0,c=r,h=n.replace(\"-1\",0),f=!s&&i(r,h),p=e[0];for(o=0;o<t.length;o++)h=n.replace(\"-1\",o),s&&(c=r[o%r.length],f=i(c,h)),f&&(u=!1),l(t,o,p,f)&&a(t[o],e,n.replace(\"-1\",o))(c);return u}function l(t,e,r,n){if(void 0===t[e]){if(n)return!1;t[e]=\"number\"==typeof r?[]:{}}return!0}function u(t){var e,r,n,a,s,l;for(e=t.length-1;e>=0;e--){if(n=t[e][0],a=t[e][1],l=!1,d(n))for(r=n.length-1;r>=0;r--)i(n[r],o(a,r))?l?n[r]=void 0:n.pop():l=!0;else if(\"object\"==typeof n&&null!==n)for(s=Object.keys(n),l=!1,r=s.length-1;r>=0;r--)i(n[s[r]],o(a,s[r]))?delete n[s[r]]:l=!0;if(l)return}}function c(t){return void 0===t||null===t||\"object\"==typeof t&&(d(t)?!t.length:!Object.keys(t).length)}function h(t,e,r){return{set:function(){throw\"bad container\"},get:function(){},astr:e,parts:r,obj:t}}var f=t(\"fast-isnumeric\"),d=t(\"./is_array\"),p=t(\"./is_plain_object\"),m=t(\"../plot_api/container_array_match\");e.exports=function(t,e){if(f(e))e=String(e);else if(\"string\"!=typeof e||\"[-1]\"===e.substr(e.length-4))throw\"bad property string\";for(var r,i,o,s=0,l=e.split(\".\");s<l.length;){if(r=String(l[s]).match(/^([^\\[\\]]*)((\\[\\-?[0-9]*\\])+)$/)){if(r[1])l[s]=r[1];else{if(0!==s)throw\"bad property string\";l.splice(0,1)}for(i=r[2].substr(1,r[2].length-2).split(\"][\"),o=0;o<i.length;o++)s++,l.splice(s,0,Number(i[o]))}s++}return\"object\"!=typeof t?h(t,e,l):{set:a(t,l,e),get:n(t,l),astr:e,parts:l,obj:t}};var v=/(^|\\.)((domain|range)(\\.[xy])?|args|parallels)$/,g=/(^|\\.)args\\[/},{\"../plot_api/container_array_match\":755,\"./is_array\":729,\"./is_plain_object\":730,\"fast-isnumeric\":131}],736:[function(t,e,r){\"use strict\";e.exports=function(){}},{}],737:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"fast-isnumeric\"),a=[];e.exports=function(t,e){function r(t){t.duration(700).style(\"opacity\",0).each(\"end\",function(t){var e=a.indexOf(t);-1!==e&&a.splice(e,1),n.select(this).remove()})}if(-1===a.indexOf(t)){a.push(t);var o=1e3;i(e)?o=e:\"long\"===e&&(o=3e3);var s=n.select(\"body\").selectAll(\".plotly-notifier\").data([0]);s.enter().append(\"div\").classed(\"plotly-notifier\",!0);s.selectAll(\".notifier-note\").data(a).enter().append(\"div\").classed(\"notifier-note\",!0).style(\"opacity\",0).each(function(t){var e=n.select(this);e.append(\"button\").classed(\"notifier-close\",!0).html(\"&times;\").on(\"click\",function(){e.transition().call(r)});for(var i=e.append(\"p\"),a=t.split(/<br\\s*\\/?>/g),s=0;s<a.length;s++)s&&i.append(\"br\"),i.append(\"span\").text(a[s]);e.transition().duration(700).style(\"opacity\",1).transition().delay(o).call(r)})}}},{d3:122,\"fast-isnumeric\":131}],738:[function(t,e,r){\"use strict\";var n=t(\"./setcursor\"),i=\"data-savedcursor\";e.exports=function(t,e){var r=t.attr(i);if(e){if(!r){for(var a=(t.attr(\"class\")||\"\").split(\" \"),o=0;o<a.length;o++){var s=a[o];0===s.indexOf(\"cursor-\")&&t.attr(i,s.substr(7)).classed(s,!1)}t.attr(i)||t.attr(i,\"!!\")}n(t,e)}else r&&(t.attr(i,null),\"!!\"===r?n(t):n(t,r))}},{\"./setcursor\":746}],739:[function(t,e,r){\"use strict\";var n=t(\"./matrix\").dot,i=t(\"../constants/numerical\").BADNUM,a=e.exports={};a.tester=function(t){function e(t,e){var r=t[0],n=t[1];return!(r===i||r<a||r>o||n===i||n<s||n>l)&&(!e||!c(t))}function r(t,e){var r=t[0],u=t[1];if(r===i||r<a||r>o||u===i||u<s||u>l)return!1;var c,h,f,d,p,m=n.length,v=n[0][0],g=n[0][1],y=0;for(c=1;c<m;c++)if(h=v,f=g,v=n[c][0],g=n[c][1],d=Math.min(h,v),!(r<d||r>Math.max(h,v)||u>Math.max(f,g)))if(u<Math.min(f,g))r!==d&&y++;else{if(p=v===h?u:f+(r-h)*(g-f)/(v-h),u===p)return 1!==c||!e;u<=p&&r!==d&&y++}return y%2==1}var n=t.slice(),a=n[0][0],o=a,s=n[0][1],l=s;n.push(n[0]);for(var u=1;u<n.length;u++)a=Math.min(a,n[u][0]),o=Math.max(o,n[u][0]),s=Math.min(s,n[u][1]),l=Math.max(l,n[u][1]);var c,h=!1;return 5===n.length&&(n[0][0]===n[1][0]?n[2][0]===n[3][0]&&n[0][1]===n[3][1]&&n[1][1]===n[2][1]&&(h=!0,c=function(t){return t[0]===n[0][0]}):n[0][1]===n[1][1]&&n[2][1]===n[3][1]&&n[0][0]===n[3][0]&&n[1][0]===n[2][0]&&(h=!0,c=function(t){return t[1]===n[0][1]})),{xmin:a,xmax:o,ymin:s,ymax:l,pts:n,contains:h?e:r,isRect:h}};var o=a.isSegmentBent=function(t,e,r,i){var a,o,s,l=t[e],u=[t[r][0]-l[0],t[r][1]-l[1]],c=n(u,u),h=Math.sqrt(c),f=[-u[1]/h,u[0]/h];for(a=e+1;a<r;a++)if(o=[t[a][0]-l[0],t[a][1]-l[1]],(s=n(o,u))<0||s>c||Math.abs(n(o,f))>i)return!0;return!1};a.filter=function(t,e){function r(r){t.push(r);var s=n.length,l=i;n.splice(a+1);for(var u=l+1;u<t.length;u++)(u===t.length-1||o(t,l,u+1,e))&&(n.push(t[u]),n.length<s-2&&(i=u,a=n.length-1),l=u)}var n=[t[0]],i=0,a=0;if(t.length>1){r(t.pop())}return{addPt:r,raw:t,filtered:n}}},{\"../constants/numerical\":707,\"./matrix\":733}],740:[function(t,e,r){\"use strict\";e.exports=function(t,e){if(e instanceof RegExp){var r,n=e.toString();for(r=0;r<t.length;r++)if(t[r]instanceof RegExp&&t[r].toString()===n)return t;t.push(e)}else e&&-1===t.indexOf(e)&&t.push(e);return t}},{}],741:[function(t,e,r){\"use strict\";function n(t,e){for(var r,n=[],a=0;a<e.length;a++)r=e[a],n[a]=r===t?r:\"object\"==typeof r?Array.isArray(r)?i.extendDeep([],r):i.extendDeepAll({},r):r;return n}var i=t(\"../lib\"),a=t(\"../plot_api/plot_config\"),o={};o.add=function(t,e,r,n,i){var o,s;if(t.undoQueue=t.undoQueue||{index:0,queue:[],sequence:!1},s=t.undoQueue.index,t.autoplay)return void(t.undoQueue.inSequence||(t.autoplay=!1));!t.undoQueue.sequence||t.undoQueue.beginSequence?(o={undo:{calls:[],args:[]},redo:{calls:[],args:[]}},t.undoQueue.queue.splice(s,t.undoQueue.queue.length-s,o),t.undoQueue.index+=1):o=t.undoQueue.queue[s-1],t.undoQueue.beginSequence=!1,o&&(o.undo.calls.unshift(e),o.undo.args.unshift(r),o.redo.calls.push(n),o.redo.args.push(i)),t.undoQueue.queue.length>a.queueLength&&(t.undoQueue.queue.shift(),t.undoQueue.index--)},o.startSequence=function(t){t.undoQueue=t.undoQueue||{index:0,queue:[],sequence:!1},t.undoQueue.sequence=!0,t.undoQueue.beginSequence=!0},o.stopSequence=function(t){t.undoQueue=t.undoQueue||{index:0,queue:[],sequence:!1},t.undoQueue.sequence=!1,t.undoQueue.beginSequence=!1},o.undo=function(t){var e,r;if(t.framework&&t.framework.isPolar)return void t.framework.undo();if(!(void 0===t.undoQueue||isNaN(t.undoQueue.index)||t.undoQueue.index<=0)){for(t.undoQueue.index--,e=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,r=0;r<e.undo.calls.length;r++)o.plotDo(t,e.undo.calls[r],e.undo.args[r]);t.undoQueue.inSequence=!1,t.autoplay=!1}},o.redo=function(t){var e,r;if(t.framework&&t.framework.isPolar)return void t.framework.redo();if(!(void 0===t.undoQueue||isNaN(t.undoQueue.index)||t.undoQueue.index>=t.undoQueue.queue.length)){for(e=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,r=0;r<e.redo.calls.length;r++)o.plotDo(t,e.redo.calls[r],e.redo.args[r]);t.undoQueue.inSequence=!1,t.autoplay=!1,t.undoQueue.index++}},o.plotDo=function(t,e,r){t.autoplay=!0,r=n(t,r),e.apply(null,r)},e.exports=o},{\"../lib\":728,\"../plot_api/plot_config\":760}],742:[function(t,e,r){\"use strict\";r.counter=function(t,e,r){return new RegExp(\"^\"+t+\"([2-9]|[1-9][0-9]+)?\"+(e||\"\")+(r?\"\":\"$\"))}},{}],743:[function(t,e,r){\"use strict\";var n=/^(.*)(\\.[^\\.\\[\\]]+|\\[\\d\\])$/,i=/^[^\\.\\[\\]]+$/;e.exports=function(t,e){for(;e;){var r=t.match(n);if(r)t=r[1];else{if(!t.match(i))throw new Error(\"bad relativeAttr call:\"+[t,e]);t=\"\"}if(\"^\"!==e.charAt(0))break;e=e.slice(1)}return t&&\"[\"!==e.charAt(0)?t+\".\"+e:t+e}},{}],744:[function(t,e,r){\"use strict\";var n=t(\"./is_array\"),i=t(\"./is_plain_object\");e.exports=function t(e,r){for(var a=Object.keys(r||{}),o=0;o<a.length;o++){var s=a[o],l=r[s],u=e[s];if(\"_\"===s.charAt(0)||\"function\"==typeof l){if(s in e)continue;e[s]=l}else if(n(l)&&n(u)&&i(l[0]))for(var c=0;c<l.length;c++)i(l[c])&&i(u[c])&&t(u[c],l[c]);else i(l)&&i(u)&&(t(u,l),Object.keys(u).length||delete e[s])}}},{\"./is_array\":729,\"./is_plain_object\":730}],745:[function(t,e,r){\"use strict\";function n(t,e){return t<e}function i(t,e){return t<=e}function a(t,e){return t>e}function o(t,e){return t>=e}var s=t(\"fast-isnumeric\"),l=t(\"./loggers\");r.findBin=function(t,e,r){if(s(e.start))return r?Math.ceil((t-e.start)/e.size)-1:Math.floor((t-e.start)/e.size);var u,c,h=0,f=e.length,d=0;for(c=e[e.length-1]>=e[0]?r?n:i:r?o:a;h<f&&d++<100;)u=Math.floor((h+f)/2),c(e[u],t)?h=u+1:f=u;return d>90&&l.log(\"Long binary search...\"),h-1},r.sorterAsc=function(t,e){return t-e},r.sorterDes=function(t,e){return e-t},r.distinctVals=function(t){var e=t.slice();e.sort(r.sorterAsc);for(var n=e.length-1,i=e[n]-e[0]||1,a=i/(n||1)/1e4,o=[e[0]],s=0;s<n;s++)e[s+1]>e[s]+a&&(i=Math.min(i,e[s+1]-e[s]),o.push(e[s+1]));return{vals:o,minDiff:i}},r.roundUp=function(t,e,r){for(var n,i=0,a=e.length-1,o=0,s=r?0:1,l=r?1:0,u=r?Math.ceil:Math.floor;i<a&&o++<100;)n=u((i+a)/2),e[n]<=t?i=n+s:a=n-l;return e[i]}},{\"./loggers\":732,\"fast-isnumeric\":131}],746:[function(t,e,r){\"use strict\";e.exports=function(t,e){(t.attr(\"class\")||\"\").split(\" \").forEach(function(e){0===e.indexOf(\"cursor-\")&&t.classed(e,!1)}),e&&t.classed(\"cursor-\"+e,!0)}},{}],747:[function(t,e,r){\"use strict\";var n=t(\"../components/color\"),i=function(){};e.exports=function(t){for(var e in t)\"function\"==typeof t[e]&&(t[e]=i);t.destroy=function(){t.container.parentNode.removeChild(t.container)};var r=document.createElement(\"div\");return r.textContent=\"Webgl is not supported by your browser - visit http://get.webgl.org for more info\",r.style.cursor=\"pointer\",r.style.fontSize=\"24px\",r.style.color=n.defaults[0],t.container.appendChild(r),t.container.style.background=\"#FFFFFF\",t.container.onclick=function(){window.open(\"http://get.webgl.org\")},!1}},{\"../components/color\":604}],748:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\");r.aggNums=function(t,e,i,a){var o,s;if(a||(a=i.length),n(e)||(e=!1),Array.isArray(i[0])){for(s=new Array(a),o=0;o<a;o++)s[o]=r.aggNums(t,e,i[o]);i=s}for(o=0;o<a;o++)n(e)?n(i[o])&&(e=t(+e,+i[o])):e=i[o];return e},r.len=function(t){return r.aggNums(function(t){return t+1},0,t)},r.mean=function(t,e){return e||(e=r.len(t)),r.aggNums(function(t,e){return t+e},0,t)/e},r.variance=function(t,e,i){return e||(e=r.len(t)),n(i)||(i=r.mean(t,e)),r.aggNums(function(t,e){return t+Math.pow(e-i,2)},0,t)/e},r.stdev=function(t,e,n){return Math.sqrt(r.variance(t,e,n))},r.interp=function(t,e){if(!n(e))throw\"n should be a finite number\";if((e=e*t.length-.5)<0)return t[0];if(e>t.length-1)return t[t.length-1];var r=e%1;return r*t[Math.ceil(e)]+(1-r)*t[Math.floor(e)]}},{\"fast-isnumeric\":131}],749:[function(t,e,r){\"use strict\";function n(t){var e=i(t);return e.length?e:[0,0,0,1]}var i=t(\"color-rgba\");e.exports=n},{\"color-rgba\":95}],750:[function(t,e,r){\"use strict\";function n(t,e){return t.node().getBoundingClientRect()[e]}function i(t){return t.replace(g,\"\\\\lt \").replace(y,\"\\\\gt \")}function a(t,e,r){var n=\"math-output-\"+f.randstr([],64),a=h.select(\"body\").append(\"div\").attr({id:n}).style({visibility:\"hidden\",position:\"absolute\"}).style({\"font-size\":e.fontSize+\"px\"}).text(i(t));MathJax.Hub.Queue([\"Typeset\",MathJax.Hub,a.node()],function(){var e=h.select(\"body\").select(\"#MathJax_SVG_glyphs\")\n", ";if(a.select(\".MathJax_SVG\").empty()||!a.select(\"svg\").node())f.log(\"There was an error in the tex syntax.\",t),r();else{var n=a.select(\"svg\").node().getBoundingClientRect();r(a.select(\".MathJax_SVG\"),e,n)}a.remove()})}function o(t,e){if(!t)return null;var r=t.match(e);return r&&(r[3]||r[4])}function s(t,e){if(!t)return\"\";for(var r=0;r<e.length;r++){var n=e[r];t=t.replace(n.regExp,n.sub)}return t}function l(t){return s(t,A)}function u(t,e){function r(){c++;var e=document.createElementNS(d.svg,\"tspan\");h.select(e).attr({class:\"line\",dy:c*m+\"em\"}),t.appendChild(e),a=e;var r=u;if(u=[{node:e}],r.length>1)for(var i=1;i<r.length;i++)n(r[i])}function n(t){var e,r=t.type,n={};if(\"a\"===r){e=\"a\";var o=t.target,s=t.href,l=t.popup;s&&(n={\"xlink:xlink:show\":\"_blank\"===o||\"_\"!==o.charAt(0)?\"new\":\"replace\",target:o,\"xlink:xlink:href\":s},l&&(n.onclick='window.open(this.href.baseVal,this.target.baseVal,\"'+l+'\");return false;'))}else e=\"tspan\";t.style&&(n.style=t.style);var c=document.createElementNS(d.svg,e);if(\"sup\"===r||\"sub\"===r){i(a,w),a.appendChild(c);var f=document.createElementNS(d.svg,\"tspan\");i(f,w),h.select(f).attr(\"dy\",_[r]),n.dy=x[r],a.appendChild(c),a.appendChild(f)}else a.appendChild(c);h.select(c).attr(n),a=t.node=c,u.push(t)}function i(t,e){t.appendChild(document.createTextNode(e))}e=l(e).replace(T,\" \");var a,s=!1,u=[],c=-1;L.test(e)?r():(a=t,u=[{node:t}]);for(var p=e.split(S),v=0;v<p.length;v++){var g=p[v],y=g.match(E),k=y&&y[2].toLowerCase(),A=b[k];if(\"br\"===k)r();else if(void 0===A)i(a,g);else if(y[1])!function(t){if(1===u.length)return void f.log(\"Ignoring unexpected end tag </\"+t+\">.\",e);var r=u.pop();t!==r.type&&f.log(\"Start tag <\"+r.type+\"> doesnt match end tag <\"+t+\">. Pretending it did match.\",e),a=u[u.length-1].node}(k);else{var O=y[4],R={type:k},F=o(O,C);if(F?(F=F.replace(P,\"$1 fill:\"),A&&(F+=\";\"+A)):A&&(F=A),F&&(R.style=F),\"a\"===k){s=!0;var j=o(O,I);if(j){var N=document.createElement(\"a\");N.href=j,-1!==M.indexOf(N.protocol)&&(R.href=encodeURI(j),R.target=o(O,z)||\"_blank\",R.popup=o(O,D))}}n(R)}}return s}function c(t,e,r){var n,i,a,o=r.horizontalAlign,s=r.verticalAlign||\"top\",l=t.node().getBoundingClientRect(),u=e.node().getBoundingClientRect();return i=\"bottom\"===s?function(){return l.bottom-n.height}:\"middle\"===s?function(){return l.top+(l.height-n.height)/2}:function(){return l.top},a=\"right\"===o?function(){return l.right-n.width}:\"center\"===o?function(){return l.left+(l.width-n.width)/2}:function(){return l.left},function(){return n=this.node().getBoundingClientRect(),this.style({top:i()-u.top+\"px\",left:a()-u.left+\"px\",\"z-index\":1e3}),this}}var h=t(\"d3\"),f=t(\"../lib\"),d=t(\"../constants/xmlns_namespaces\"),p=t(\"../constants/string_mappings\"),m=t(\"../constants/alignment\").LINE_SPACING,v=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;r.convertToTspans=function(t,e,i){function o(){c.empty()||(f=t.attr(\"class\")+\"-math\",c.select(\"svg.\"+f).remove()),t.text(\"\").style(\"white-space\",\"pre\"),u(t.node(),s)&&t.style(\"pointer-events\",\"all\"),r.positionText(t),i&&i.call(t)}var s=t.text(),l=!t.attr(\"data-notex\")&&\"undefined\"!=typeof MathJax&&s.match(v),c=h.select(t.node().parentNode);if(!c.empty()){var f=t.attr(\"class\")?t.attr(\"class\").split(\" \")[0]:\"text\";return f+=\"-math\",c.selectAll(\"svg.\"+f).remove(),c.selectAll(\"g.\"+f+\"-group\").remove(),t.style(\"display\",null).attr({\"data-unformatted\":s,\"data-math\":\"N\"}),l?(e&&e._promises||[]).push(new Promise(function(e){t.style(\"display\",\"none\");var r=parseInt(t.node().style.fontSize,10);a(l[2],{fontSize:r},function(a,l,u){c.selectAll(\"svg.\"+f).remove(),c.selectAll(\"g.\"+f+\"-group\").remove();var h=a&&a.select(\"svg\");if(!h||!h.node())return o(),void e();var d=c.append(\"g\").classed(f+\"-group\",!0).attr({\"pointer-events\":\"none\",\"data-unformatted\":s,\"data-math\":\"Y\"});d.node().appendChild(h.node()),l&&l.node()&&h.node().insertBefore(l.node().cloneNode(!0),h.node().firstChild),h.attr({class:f,height:u.height,preserveAspectRatio:\"xMinYMin meet\"}).style({overflow:\"visible\",\"pointer-events\":\"none\"});var p=t.node().style.fill||\"black\";h.select(\"g\").attr({fill:p,stroke:p});var m=n(h,\"width\"),v=n(h,\"height\"),g=+t.attr(\"x\")-m*{start:0,middle:.5,end:1}[t.attr(\"text-anchor\")||\"start\"],y=r||n(t,\"height\"),b=-y/4;\"y\"===f[0]?(d.attr({transform:\"rotate(\"+[-90,+t.attr(\"x\"),+t.attr(\"y\")]+\") translate(\"+[-m/2,b-v/2]+\")\"}),h.attr({x:+t.attr(\"x\"),y:+t.attr(\"y\")})):\"l\"===f[0]?h.attr({x:t.attr(\"x\"),y:b-v/2}):\"a\"===f[0]?h.attr({x:0,y:b}):h.attr({x:g,y:+t.attr(\"y\")+b-v/2}),i&&i.call(t,d),e(d)})})):o(),t}};var g=/(<|&lt;|&#60;)/g,y=/(>|&gt;|&#62;)/g,b={sup:\"font-size:70%\",sub:\"font-size:70%\",b:\"font-weight:bold\",i:\"font-style:italic\",a:\"cursor:pointer\",span:\"\",em:\"font-style:italic;font-weight:bold\"},x={sub:\"0.3em\",sup:\"-0.6em\"},_={sub:\"-0.21em\",sup:\"0.42em\"},w=\"\\u200b\",M=[\"http:\",\"https:\",\"mailto:\",\"\",void 0,\":\"],k=new RegExp(\"</?(\"+Object.keys(b).join(\"|\")+\")( [^>]*)?/?>\",\"g\"),A=Object.keys(p.entityToUnicode).map(function(t){return{regExp:new RegExp(\"&\"+t+\";\",\"g\"),sub:p.entityToUnicode[t]}}),T=/(\\r\\n?|\\n)/g,S=/(<[^<>]*>)/,E=/<(\\/?)([^ >]*)(\\s+(.*))?>/i,L=/<br(\\s+.*)?>/i,C=/(^|[\\s\"'])style\\s*=\\s*(\"([^\"]*);?\"|'([^']*);?')/i,I=/(^|[\\s\"'])href\\s*=\\s*(\"([^\"]*)\"|'([^']*)')/i,z=/(^|[\\s\"'])target\\s*=\\s*(\"([^\"\\s]*)\"|'([^'\\s]*)')/i,D=/(^|[\\s\"'])popup\\s*=\\s*(\"([\\w=,]*)\"|'([\\w=,]*)')/i,P=/(^|;)\\s*color:/;r.plainText=function(t){return(t||\"\").replace(k,\" \")},r.lineCount=function(t){return t.selectAll(\"tspan.line\").size()||1},r.positionText=function(t,e,r){return t.each(function(){function t(t,e){return void 0===e?null===(e=n.attr(t))&&(n.attr(t,0),e=0):n.attr(t,e),e}var n=h.select(this),i=t(\"x\",e),a=t(\"y\",r);\"text\"===this.nodeName&&n.selectAll(\"tspan.line\").attr({x:i,y:a})})},r.makeEditable=function(t,e){function r(){i(),t.style({opacity:0});var e,r=l.attr(\"class\");(e=r?\".\"+r.split(\" \")[0]+\"-math-group\":\"[class*=-math-group]\")&&h.select(t.node().parentNode).select(e).style({opacity:0})}function n(t){var e=t.node(),r=document.createRange();r.selectNodeContents(e);var n=window.getSelection();n.removeAllRanges(),n.addRange(r),e.focus()}function i(){var r=h.select(a),i=r.select(\".svg-container\"),o=i.append(\"div\"),l=t.node().style,u=parseFloat(l.fontSize||12);o.classed(\"plugin-editable editable\",!0).style({position:\"absolute\",\"font-family\":l.fontFamily||\"Arial\",\"font-size\":u,color:e.fill||l.fill||\"black\",opacity:1,\"background-color\":e.background||\"transparent\",outline:\"#ffffff33 1px solid\",margin:[-u/8+1,0,0,-1].join(\"px \")+\"px\",padding:\"0\",\"box-sizing\":\"border-box\"}).attr({contenteditable:!0}).text(e.text||t.attr(\"data-unformatted\")).call(c(t,i,e)).on(\"blur\",function(){a._editing=!1,t.text(this.textContent).style({opacity:1});var e,r=h.select(this).attr(\"class\");(e=r?\".\"+r.split(\" \")[0]+\"-math-group\":\"[class*=-math-group]\")&&h.select(t.node().parentNode).select(e).style({opacity:0});var n=this.textContent;h.select(this).transition().duration(0).remove(),h.select(document).on(\"mouseup\",null),s.edit.call(t,n)}).on(\"focus\",function(){var t=this;a._editing=!0,h.select(document).on(\"mouseup\",function(){if(h.event.target===t)return!1;document.activeElement===o.node()&&o.node().blur()})}).on(\"keyup\",function(){27===h.event.which?(a._editing=!1,t.style({opacity:1}),h.select(this).style({opacity:0}).on(\"blur\",function(){return!1}).transition().remove(),s.cancel.call(t,this.textContent)):(s.input.call(t,this.textContent),h.select(this).call(c(t,i,e)))}).on(\"keydown\",function(){13===h.event.which&&this.blur()}).call(n)}var a=e.gd,o=e.delegate,s=h.dispatch(\"edit\",\"input\",\"cancel\"),l=o||t;if(t.style({\"pointer-events\":o?\"none\":\"all\"}),1!==t.size())throw new Error(\"boo\");return e.immediate?r():l.on(\"click\",r),h.rebind(t,s,\"on\")}},{\"../constants/alignment\":701,\"../constants/string_mappings\":708,\"../constants/xmlns_namespaces\":709,\"../lib\":728,d3:122}],751:[function(t,e,r){\"use strict\";function n(t){t&&null!==t.timer&&(clearTimeout(t.timer),t.timer=null)}var i={};r.throttle=function(t,e,r){function a(){r(),o.ts=Date.now(),o.onDone&&(o.onDone(),o.onDone=null)}var o=i[t],s=Date.now();if(!o){for(var l in i)i[l].ts<s-6e4&&delete i[l];o=i[t]={ts:0,timer:null}}if(n(o),s>o.ts+e)return void a();o.timer=setTimeout(function(){a(),o.timer=null},e)},r.done=function(t){var e=i[t];return e&&e.timer?new Promise(function(t){var r=e.onDone;e.onDone=function(){r&&r(),t(),e.onDone=null}}):Promise.resolve()},r.clear=function(t){if(t)n(i[t]),delete i[t];else for(var e in i)r.clear(e)}},{}],752:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\");e.exports=function(t,e){if(t>0)return Math.log(t)/Math.LN10;var r=Math.log(Math.min(e[0],e[1]))/Math.LN10;return n(r)||(r=Math.log(Math.max(e[0],e[1]))/Math.LN10-6),r}},{\"fast-isnumeric\":131}],753:[function(t,e,r){\"use strict\";var n=e.exports={},i=t(\"../plots/geo/constants\").locationmodeToLayer,a=t(\"topojson-client\").feature;n.getTopojsonName=function(t){return[t.scope.replace(/ /g,\"-\"),\"_\",t.resolution.toString(),\"m\"].join(\"\")},n.getTopojsonPath=function(t,e){return t+e+\".json\"},n.getTopojsonFeatures=function(t,e){var r=i[t.locationmode],n=e.objects[r];return a(e,n).features}},{\"../plots/geo/constants\":798,\"topojson-client\":536}],754:[function(t,e,r){\"use strict\";function n(t,e){for(var r=new Float32Array(e),n=0;n<e;n++)r[n]=t[n];return r}function i(t,e){for(var r=new Float64Array(e),n=0;n<e;n++)r[n]=t[n];return r}e.exports=function(t,e){if(t instanceof Float32Array)return n(t,e);if(t instanceof Float64Array)return i(t,e);throw new Error(\"This array type is not yet supported by `truncate`.\")}},{}],755:[function(t,e,r){\"use strict\";var n=t(\"../registry\");e.exports=function(t){for(var e,r,i=n.layoutArrayContainers,a=n.layoutArrayRegexes,o=t.split(\"[\")[0],s=0;s<a.length;s++)if((r=t.match(a[s]))&&0===r.index){e=r[0];break}if(e||(e=i[i.indexOf(o)]),!e)return!1;var l=t.substr(e.length);return l?!!(r=l.match(/^\\[(0|[1-9][0-9]*)\\](\\.(.+))?$/))&&{array:e,index:Number(r[1]),property:r[3]||\"\"}:{array:e,index:\"\",property:\"\"}}},{\"../registry\":846}],756:[function(t,e,r){\"use strict\";function n(t){for(var e={},r=0;r<t.length;r++)e[t[r]]=!1;return e}function i(t,e,r){var n=s({},t);for(var i in n){var o=n[i];l(o)&&(n[i]=a(o,e,r,i))}return\"from-root\"===r&&(n.editType=e),n}function a(t,e,r,n){if(t.valType){var o=s({},t);if(o.editType=e,Array.isArray(t.items)){o.items=new Array(t.items.length);for(var l=0;l<t.items.length;l++)o.items[l]=a(t.items[l],e,\"from-root\")}return o}return i(t,e,\"_\"===n.charAt(0)?\"nested\":\"from-root\")}var o=t(\"../lib\"),s=o.extendFlat,l=o.isPlainObject,u={valType:\"flaglist\",extras:[\"none\"],flags:[\"calc\",\"calcIfAutorange\",\"clearAxisTypes\",\"plot\",\"style\",\"colorbars\"]},c={valType:\"flaglist\",extras:[\"none\"],flags:[\"calc\",\"calcIfAutorange\",\"plot\",\"legend\",\"ticks\",\"layoutstyle\",\"modebar\",\"camera\",\"arraydraw\"]},h=u.flags.slice().concat([\"clearCalc\",\"fullReplot\"]),f=c.flags.slice().concat(\"layoutReplot\");e.exports={traces:u,layout:c,traceFlags:function(){return n(h)},layoutFlags:function(){return n(f)},update:function(t,e){var r=e.editType;if(r&&\"none\"!==r)for(var n=r.split(\"+\"),i=0;i<n.length;i++)t[n[i]]=!0},overrideAll:i}},{\"../lib\":728}],757:[function(t,e,r){\"use strict\";function n(t,e){var r=t[e],n=e.charAt(0);r&&\"paper\"!==r&&(t[e]=f.cleanId(r,n))}function i(t){var e=\"middle\",r=\"center\";return-1!==t.indexOf(\"top\")?e=\"top\":-1!==t.indexOf(\"bottom\")&&(e=\"bottom\"),-1!==t.indexOf(\"left\")?r=\"left\":-1!==t.indexOf(\"right\")&&(r=\"right\"),e+\" \"+r}function a(t,e){return e in t&&\"object\"==typeof t[e]&&0===Object.keys(t[e]).length}function o(t){var e=t.search(p);if(e>0)return t.substr(0,e)}var s=t(\"fast-isnumeric\"),l=t(\"gl-mat4/fromQuat\"),u=t(\"../registry\"),c=t(\"../lib\"),h=t(\"../plots/plots\"),f=t(\"../plots/cartesian/axes\"),d=t(\"../components/color\");r.clearPromiseQueue=function(t){Array.isArray(t._promises)&&t._promises.length>0&&c.log(\"Clearing previous rejected promises from queue.\"),t._promises=[]},r.cleanLayout=function(t){var e,r;t||(t={}),t.xaxis1&&(t.xaxis||(t.xaxis=t.xaxis1),delete t.xaxis1),t.yaxis1&&(t.yaxis||(t.yaxis=t.yaxis1),delete t.yaxis1);var i=f.list({_fullLayout:t});for(e=0;e<i.length;e++){var o=i[e];o.anchor&&\"free\"!==o.anchor&&(o.anchor=f.cleanId(o.anchor)),o.overlaying&&(o.overlaying=f.cleanId(o.overlaying)),o.type||(o.isdate?o.type=\"date\":o.islog?o.type=\"log\":!1===o.isdate&&!1===o.islog&&(o.type=\"linear\")),\"withzero\"!==o.autorange&&\"tozero\"!==o.autorange||(o.autorange=!0,o.rangemode=\"tozero\"),delete o.islog,delete o.isdate,delete o.categories,a(o,\"domain\")&&delete o.domain,void 0!==o.autotick&&(void 0===o.tickmode&&(o.tickmode=o.autotick?\"auto\":\"linear\"),delete o.autotick)}var s=Array.isArray(t.annotations)?t.annotations.length:0;for(e=0;e<s;e++){var u=t.annotations[e];c.isPlainObject(u)&&(u.ref&&(\"paper\"===u.ref?(u.xref=\"paper\",u.yref=\"paper\"):\"data\"===u.ref&&(u.xref=\"x\",u.yref=\"y\"),delete u.ref),n(u,\"xref\"),n(u,\"yref\"))}var p=Array.isArray(t.shapes)?t.shapes.length:0;for(e=0;e<p;e++){var m=t.shapes[e];c.isPlainObject(m)&&(n(m,\"xref\"),n(m,\"yref\"))}var v=t.legend;v&&(v.x>3?(v.x=1.02,v.xanchor=\"left\"):v.x<-2&&(v.x=-.02,v.xanchor=\"right\"),v.y>3?(v.y=1.02,v.yanchor=\"bottom\"):v.y<-2&&(v.y=-.02,v.yanchor=\"top\")),\"rotate\"===t.dragmode&&(t.dragmode=\"orbit\"),t.scene1&&(t.scene||(t.scene=t.scene1),delete t.scene1);var g=h.getSubplotIds(t,\"gl3d\");for(e=0;e<g.length;e++){var y=t[g[e]],b=y.cameraposition;if(Array.isArray(b)&&4===b[0].length){var x=b[0],_=b[1],w=b[2],M=l([],x),k=[];for(r=0;r<3;++r)k[r]=_[e]+w*M[2+4*r];y.camera={eye:{x:k[0],y:k[1],z:k[2]},center:{x:_[0],y:_[1],z:_[2]},up:{x:M[1],y:M[5],z:M[9]}},delete y.cameraposition}}return d.clean(t),t},r.cleanData=function(t,e){for(var n=[],o=(t.concat(Array.isArray(e)?e:[]).filter(function(t){return\"uid\"in t}).map(function(t){return t.uid})),s=0;s<t.length;s++){var l,p=t[s];if(!(\"uid\"in p)||-1!==n.indexOf(p.uid)){var m;for(l=0;l<100&&(m=c.randstr(o),-1!==n.indexOf(m));l++);p.uid=c.randstr(o),o.push(p.uid)}if(n.push(p.uid),\"histogramy\"===p.type&&\"xbins\"in p&&!(\"ybins\"in p)&&(p.ybins=p.xbins,delete p.xbins),p.error_y&&\"opacity\"in p.error_y){var v=d.defaults,g=p.error_y.color||(u.traceIs(p,\"bar\")?d.defaultLine:v[s%v.length]);p.error_y.color=d.addOpacity(d.rgb(g),d.opacity(g)*p.error_y.opacity),delete p.error_y.opacity}if(\"bardir\"in p&&(\"h\"!==p.bardir||!u.traceIs(p,\"bar\")&&\"histogram\"!==p.type.substr(0,9)||(p.orientation=\"h\",r.swapXYData(p)),delete p.bardir),\"histogramy\"===p.type&&r.swapXYData(p),\"histogramx\"!==p.type&&\"histogramy\"!==p.type||(p.type=\"histogram\"),\"scl\"in p&&(p.colorscale=p.scl,delete p.scl),\"reversescl\"in p&&(p.reversescale=p.reversescl,delete p.reversescl),p.xaxis&&(p.xaxis=f.cleanId(p.xaxis,\"x\")),p.yaxis&&(p.yaxis=f.cleanId(p.yaxis,\"y\")),u.traceIs(p,\"gl3d\")&&p.scene&&(p.scene=h.subplotsRegistry.gl3d.cleanId(p.scene)),u.traceIs(p,\"pie\")||u.traceIs(p,\"bar\")||(Array.isArray(p.textposition)?p.textposition=p.textposition.map(i):p.textposition&&(p.textposition=i(p.textposition))),u.traceIs(p,\"2dMap\")&&(\"YIGnBu\"===p.colorscale&&(p.colorscale=\"YlGnBu\"),\"YIOrRd\"===p.colorscale&&(p.colorscale=\"YlOrRd\")),u.traceIs(p,\"markerColorscale\")&&p.marker){var y=p.marker;\"YIGnBu\"===y.colorscale&&(y.colorscale=\"YlGnBu\"),\"YIOrRd\"===y.colorscale&&(y.colorscale=\"YlOrRd\")}if(\"surface\"===p.type&&c.isPlainObject(p.contours)){var b=[\"x\",\"y\",\"z\"];for(l=0;l<b.length;l++){var x=p.contours[b[l]];c.isPlainObject(x)&&(x.highlightColor&&(x.highlightcolor=x.highlightColor,delete x.highlightColor),x.highlightWidth&&(x.highlightwidth=x.highlightWidth,delete x.highlightWidth))}}if(Array.isArray(p.transforms)){var _=p.transforms;for(l=0;l<_.length;l++){var w=_[l];if(c.isPlainObject(w))switch(w.type){case\"filter\":w.filtersrc&&(w.target=w.filtersrc,delete w.filtersrc),w.calendar&&(w.valuecalendar||(w.valuecalendar=w.calendar),delete w.calendar);break;case\"groupby\":if(w.styles=w.styles||w.style,w.styles&&!Array.isArray(w.styles)){var M=w.styles,k=Object.keys(M);w.styles=[];for(var A=0;A<k.length;A++)w.styles.push({target:k[A],value:M[k[A]]})}}}}a(p,\"line\")&&delete p.line,\"marker\"in p&&(a(p.marker,\"line\")&&delete p.marker.line,a(p,\"marker\")&&delete p.marker),d.clean(p)}},r.swapXYData=function(t){var e;if(c.swapAttrs(t,[\"?\",\"?0\",\"d?\",\"?bins\",\"nbins?\",\"autobin?\",\"?src\",\"error_?\"]),Array.isArray(t.z)&&Array.isArray(t.z[0])&&(t.transpose?delete t.transpose:t.transpose=!0),t.error_x&&t.error_y){var r=t.error_y,n=\"copy_ystyle\"in r?r.copy_ystyle:!(r.color||r.thickness||r.width);c.swapAttrs(t,[\"error_?.copy_ystyle\"]),n&&c.swapAttrs(t,[\"error_?.color\",\"error_?.thickness\",\"error_?.width\"])}if(\"string\"==typeof t.hoverinfo){var i=t.hoverinfo.split(\"+\");for(e=0;e<i.length;e++)\"x\"===i[e]?i[e]=\"y\":\"y\"===i[e]&&(i[e]=\"x\");t.hoverinfo=i.join(\"+\")}},r.coerceTraceIndices=function(t,e){return s(e)?[e]:Array.isArray(e)&&e.length?e:t.data.map(function(t,e){return e})},r.manageArrayContainers=function(t,e,r){var n=t.obj,i=t.parts,a=i.length,o=i[a-1],l=s(o);if(l&&null===e){var u=i.slice(0,a-1).join(\".\");c.nestedProperty(n,u).get().splice(o,1)}else l&&void 0===t.get()?(void 0===t.get()&&(r[t.astr]=null),t.set(e)):t.set(e)};var p=/(\\.[^\\[\\]\\.]+|\\[[^\\[\\]\\.]+\\])$/;r.hasParent=function(t,e){for(var r=o(e);r;){if(r in t)return!0;r=o(r)}return!1};var m=[\"x\",\"y\",\"z\"];r.clearAxisTypes=function(t,e,r){for(var n=0;n<e.length;n++)for(var i=t._fullData[n],a=0;a<3;a++){var o=f.getFromTrace(t,i,m[a]);if(o&&\"log\"!==o.type){var s=o._name,l=o._id.substr(1);if(\"scene\"===l.substr(0,5)){if(void 0!==r[l])continue;s=l+\".\"+s}var u=s+\".type\";void 0===r[s]&&void 0===r[u]&&c.nestedProperty(t.layout,u).set(null)}}}},{\"../components/color\":604,\"../lib\":728,\"../plots/cartesian/axes\":772,\"../plots/plots\":831,\"../registry\":846,\"fast-isnumeric\":131,\"gl-mat4/fromQuat\":178}],758:[function(t,e,r){\"use strict\";var n=t(\"../lib/nested_property\"),i=t(\"../lib/is_plain_object\"),a=t(\"../lib/noop\"),o=t(\"../lib/loggers\"),s=t(\"../lib/search\").sorterAsc,l=t(\"../registry\");r.containerArrayMatch=t(\"./container_array_match\");var u=r.isAddVal=function(t){return\"add\"===t||i(t)},c=r.isRemoveVal=function(t){return null===t||\"remove\"===t};r.applyContainerArrayChanges=function(t,e,r,i){var h=e.astr,f=l.getComponentMethod(h,\"supplyLayoutDefaults\"),d=l.getComponentMethod(h,\"draw\"),p=l.getComponentMethod(h,\"drawOne\"),m=i.replot||i.recalc||f===a||d===a,v=t.layout,g=t._fullLayout;if(r[\"\"]){Object.keys(r).length>1&&o.warn(\"Full array edits are incompatible with other edits\",h);var y=r[\"\"][\"\"];if(c(y))e.set(null);else{if(!Array.isArray(y))return o.warn(\"Unrecognized full array edit value\",h,y),!0;e.set(y)}return!m&&(f(v,g),d(t),!0)}var b,x,_,w,M,k,A,T=Object.keys(r).map(Number).sort(s),S=e.get(),E=S||[],L=n(g,h).get(),C=[],I=-1,z=E.length;for(b=0;b<T.length;b++)if(_=T[b],w=r[_],M=Object.keys(w),k=w[\"\"],A=u(k),_<0||_>E.length-(A?0:1))o.warn(\"index out of range\",h,_);else if(void 0!==k)M.length>1&&o.warn(\"Insertion & removal are incompatible with edits to the same index.\",h,_),c(k)?C.push(_):A?(\"add\"===k&&(k={}),E.splice(_,0,k),L&&L.splice(_,0,{})):o.warn(\"Unrecognized full object edit value\",h,_,k),-1===I&&(I=_);else for(x=0;x<M.length;x++)n(E[_],M[x]).set(w[M[x]]);for(b=C.length-1;b>=0;b--)E.splice(C[b],1),L&&L.splice(C[b],1);if(E.length?S||e.set(E):e.set(null),m)return!1;if(f(v,g),p!==a){var D;if(-1===I)D=T;else{for(z=Math.max(E.length,z),D=[],b=0;b<T.length&&!((_=T[b])>=I);b++)D.push(_);for(b=I;b<z;b++)D.push(b)}for(b=0;b<D.length;b++)p(t,D[b])}else d(t);return!0}},{\"../lib/is_plain_object\":730,\"../lib/loggers\":732,\"../lib/nested_property\":735,\"../lib/noop\":736,\"../lib/search\":745,\"../registry\":846,\"./container_array_match\":755}],759:[function(t,e,r){\"use strict\";function n(t,e){try{t._fullLayout._paper.style(\"background\",e)}catch(t){w.error(t)}}function i(t,e){n(t,I.combine(e,\"white\"))}function a(t,e){t._context||(t._context=w.extendDeep({},_.defaultConfig));var r,a,o,s=t._context;if(e){for(a=Object.keys(e),r=0;r<a.length;r++)\"editable\"!==(o=a[r])&&\"edits\"!==o&&o in s&&(\"setBackground\"===o&&\"opaque\"===e[o]?s[o]=i:s[o]=e[o]);e.plot3dPixelRatio&&!s.plotGlPixelRatio&&(s.plotGlPixelRatio=s.plot3dPixelRatio);var l=e.editable;if(void 0!==l)for(s.editable=l,a=Object.keys(s.edits),r=0;r<a.length;r++)s.edits[a[r]]=l;if(e.edits)for(a=Object.keys(e.edits),r=0;r<a.length;r++)(o=a[r])in s.edits&&(s.edits[o]=e.edits[o])}s.staticPlot&&(s.editable=!1,s.edits={},s.autosizable=!1,s.scrollZoom=!1,s.doubleClick=!1,s.showTips=!1,s.showLink=!1,s.displayModeBar=!1),\"hover\"!==s.displayModeBar||x||(s.displayModeBar=!0),\"transparent\"!==s.setBackground&&\"function\"==typeof s.setBackground||(s.setBackground=n)}function o(t,e,r){var n=y.select(t).selectAll(\".plot-container\").data([0]);n.enter().insert(\"div\",\":first-child\").classed(\"plot-container plotly\",!0);var i=n.selectAll(\".svg-container\").data([0]);i.enter().append(\"div\").classed(\"svg-container\",!0).style(\"position\",\"relative\"),i.html(\"\"),e&&(t.data=e),r&&(t.layout=r),E.manager.fillLayout(t),i.style({width:t._fullLayout.width+\"px\",height:t._fullLayout.height+\"px\"}),t.framework=E.manager.framework(t),t.framework({data:t.data,layout:t.layout},i.node()),t.framework.setUndoPoint();var a=t.framework.svg(),o=1,s=t._fullLayout.title;\"\"!==s&&s||(o=0);var l=function(){this.call(P.convertToTspans,t)},u=a.select(\".title-group text\").call(l);if(t._context.edits.titleText){s&&\"Click to enter title\"!==s||(o=.2,u.attr({\"data-unformatted\":\"Click to enter title\"}).text(\"Click to enter title\").style({opacity:o}).on(\"mouseover.opacity\",function(){y.select(this).transition().duration(100).style(\"opacity\",1)}).on(\"mouseout.opacity\",function(){y.select(this).transition().duration(1e3).style(\"opacity\",0)}));var c=function(){this.call(P.makeEditable,{gd:t}).on(\"edit\",function(e){t.framework({layout:{title:e}}),this.text(e).call(l),this.call(c)}).on(\"cancel\",function(){var t=this.attr(\"data-unformatted\");this.text(t).call(l)})};u.call(c)}return t._context.setBackground(t,t._fullLayout.paper_bgcolor),S.addLinks(t),Promise.resolve()}function s(t,e){var r,n,i=e+1,a=[];for(r=0;r<t.length;r++)n=t[r],n<0?a.push(i+n):a.push(n);return a}function l(t,e,r){var n,i;for(n=0;n<e.length;n++){if((i=e[n])!==parseInt(i,10))throw new Error(\"all values in \"+r+\" must be integers\");if(i>=t.data.length||i<-t.data.length)throw new Error(r+\" must be valid indices for gd.data.\");if(e.indexOf(i,n+1)>-1||i>=0&&e.indexOf(-t.data.length+i)>-1||i<0&&e.indexOf(t.data.length+i)>-1)throw new Error(\"each index in \"+r+\" must be unique.\")}}function u(t,e,r){if(!Array.isArray(t.data))throw new Error(\"gd.data must be an array.\");if(void 0===e)throw new Error(\"currentIndices is a required argument.\");if(Array.isArray(e)||(e=[e]),l(t,e,\"currentIndices\"),void 0===r||Array.isArray(r)||(r=[r]),void 0!==r&&l(t,r,\"newIndices\"),void 0!==r&&e.length!==r.length)throw new Error(\"current and new indices must be of equal length.\")}function c(t,e,r){var n,i;if(!Array.isArray(t.data))throw new Error(\"gd.data must be an array.\");if(void 0===e)throw new Error(\"traces must be defined.\");for(Array.isArray(e)||(e=[e]),n=0;n<e.length;n++)if(\"object\"!=typeof(i=e[n])||Array.isArray(i)||null===i)throw new Error(\"all values in traces array must be non-array objects\");if(void 0===r||Array.isArray(r)||(r=[r]),void 0!==r&&r.length!==e.length)throw new Error(\"if indices is specified, traces.length must equal indices.length\")}function h(t,e,r,n){var i=w.isPlainObject(n);if(!Array.isArray(t.data))throw new Error(\"gd.data must be an array\");if(!w.isPlainObject(e))throw new Error(\"update must be a key:value object\");if(void 0===r)throw new Error(\"indices must be an integer or array of integers\");l(t,r,\"indices\");for(var a in e){if(!Array.isArray(e[a])||e[a].length!==r.length)throw new Error(\"attribute \"+a+\" must be an array of length equal to indices array length\");if(i&&(!(a in n)||!Array.isArray(n[a])||n[a].length!==e[a].length))throw new Error(\"when maxPoints is set as a key:value object it must contain a 1:1 corrispondence with the keys and number of traces in the update object\")}}function f(t,e,r,n){var i,a,o,l,u,c=w.isPlainObject(n),h=[];Array.isArray(r)||(r=[r]),r=s(r,t.data.length-1);for(var f in e)for(var d=0;d<r.length;d++){if(i=t.data[r[d]],o=w.nestedProperty(i,f),a=o.get(),l=e[f][d],!Array.isArray(l))throw new Error(\"attribute: \"+f+\" index: \"+d+\" must be an array\");if(!Array.isArray(a))throw new Error(\"cannot extend missing or non-array attribute: \"+f);u=c?n[f][d]:n,b(u)||(u=-1),h.push({prop:o,target:a,insert:l,maxp:Math.floor(u)})}return h}function d(t,e,r,n,i,a){h(t,e,r,n);for(var o,s,l,u=f(t,e,r,n),c=[],d={},p={},m=0;m<u.length;m++)s=u[m].prop,l=u[m].maxp,o=i(u[m].target,u[m].insert),l>=0&&l<o.length&&(c=a(o,l)),l=u[m].target.length,s.set(o),Array.isArray(d[s.astr])||(d[s.astr]=[]),Array.isArray(p[s.astr])||(p[s.astr]=[]),d[s.astr].push(c),p[s.astr].push(l);return{update:d,maxPoints:p}}function p(t){return void 0===t?null:t}function m(t,e,r){function n(){return r.map(function(){})}function i(t){var e=_.Axes.id2name(t);-1===u.indexOf(e)&&u.push(e)}function a(t){return\"LAYOUT\"+t+\".autorange\"}function o(t){return\"LAYOUT\"+t+\".range\"}function s(i,a,o){if(Array.isArray(i))return void i.forEach(function(t){s(t,a,o)});if(!(i in e||R.hasParent(e,i))){var l;l=\"LAYOUT\"===i.substr(0,6)?w.nestedProperty(t.layout,i.replace(\"LAYOUT\",\"\")):w.nestedProperty(f[r[o]],i),i in v||(v[i]=n()),void 0===v[i][o]&&(v[i][o]=p(l.get())),void 0!==a&&l.set(a)}}var l,u,c=t._fullLayout,h=t._fullData,f=t.data,d=j.traceFlags(),m={},v={},g={};for(var y in e){if(R.hasParent(e,y))throw new Error(\"cannot set \"+y+\"and a parent attribute simultaneously\");var b,x,M,k,E,L,C=e[y];if(m[y]=C,\"LAYOUT\"!==y.substr(0,6)){for(v[y]=n(),l=0;l<r.length;l++)if(b=f[r[l]],x=h[r[l]],M=w.nestedProperty(b,y),k=M.get(),void 0!==(E=Array.isArray(C)?C[l%C.length]:C)){if((L=T.getTraceValObject(x,M.parts))&&L.impliedEdits&&null!==E)for(var I in L.impliedEdits)s(w.relativeAttr(y,I),L.impliedEdits[I],l);else if(\"colorbar.thicknessmode\"===y&&M.get()!==E&&-1!==[\"fraction\",\"pixels\"].indexOf(E)&&x.colorbar){var z=-1!==[\"top\",\"bottom\"].indexOf(x.colorbar.orient)?c.height-c.margin.t-c.margin.b:c.width-c.margin.l-c.margin.r;s(\"colorbar.thickness\",x.colorbar.thickness*(\"fraction\"===E?1/z:z),l)}else if(\"colorbar.lenmode\"===y&&M.get()!==E&&-1!==[\"fraction\",\"pixels\"].indexOf(E)&&x.colorbar){var D=-1!==[\"top\",\"bottom\"].indexOf(x.colorbar.orient)?c.width-c.margin.l-c.margin.r:c.height-c.margin.t-c.margin.b;s(\"colorbar.len\",x.colorbar.len*(\"fraction\"===E?1/D:D),l)}else\"colorbar.tick0\"!==y&&\"colorbar.dtick\"!==y||s(\"colorbar.tickmode\",\"linear\",l);if(\"type\"===y&&\"pie\"===E!=(\"pie\"===k)){var P=\"x\",O=\"y\";\"bar\"!==E&&\"bar\"!==k||\"h\"!==b.orientation||(P=\"y\",O=\"x\"),w.swapAttrs(b,[\"?\",\"?src\"],\"labels\",P),w.swapAttrs(b,[\"d?\",\"?0\"],\"label\",P),w.swapAttrs(b,[\"?\",\"?src\"],\"values\",O),\"pie\"===k?(w.nestedProperty(b,\"marker.color\").set(w.nestedProperty(b,\"marker.colors\").get()),c._pielayer.selectAll(\"g.trace\").remove()):A.traceIs(b,\"cartesian\")&&(w.nestedProperty(b,\"marker.colors\").set(w.nestedProperty(b,\"marker.color\").get()),g[b.xaxis||\"x\"]=!0,g[b.yaxis||\"y\"]=!0)}v[y][l]=p(k);var F=[\"swapxy\",\"swapxyaxes\",\"orientation\",\"orientationaxes\"];if(-1!==F.indexOf(y)){if(\"orientation\"===y){M.set(E);var N=b.x&&!b.y?\"h\":\"v\";if((M.get()||N)===x.orientation)continue}else\"orientationaxes\"===y&&(b.orientation={v:\"h\",h:\"v\"}[x.orientation]);R.swapXYData(b),d.calc=d.clearAxisTypes=!0}else-1!==S.dataArrayContainers.indexOf(M.parts[0])?(R.manageArrayContainers(M,E,v),d.calc=!0):(L?L.arrayOk&&(Array.isArray(E)||Array.isArray(k))?d.calc=!0:j.update(d,L):d.calc=!0,M.set(E))}if(-1!==[\"swapxyaxes\",\"orientationaxes\"].indexOf(y)&&_.Axes.swap(t,r),\"orientationaxes\"===y){var B=w.nestedProperty(t.layout,\"hovermode\");\"x\"===B.get()?B.set(\"y\"):\"y\"===B.get()&&B.set(\"x\")}if(-1!==[\"orientation\",\"type\"].indexOf(y)){for(u=[],l=0;l<r.length;l++){var U=f[r[l]];A.traceIs(U,\"cartesian\")&&(i(U.xaxis||\"x\"),i(U.yaxis||\"y\"),\"type\"===y&&s([\"autobinx\",\"autobiny\"],!0,l))}s(u.map(a),!0,0),s(u.map(o),[0,1],0)}}else M=w.nestedProperty(t.layout,y.replace(\"LAYOUT\",\"\")),v[y]=[p(M.get())],M.set(Array.isArray(C)?C[0]:C),d.calc=!0}var V=!1,H=_.Axes.list(t);for(l=0;l<H.length;l++)if(H[l].autorange){V=!0;break}var q=Object.keys(g);t:for(l=0;l<q.length;l++){for(var G=q[l],Y=G.charAt(0),W=Y+\"axis\",X=0;X<f.length;X++)if(A.traceIs(f[X],\"cartesian\")&&(f[X][W]||Y)===G)continue t;s(\"LAYOUT\"+_.Axes.id2name(G),null,0)}return(d.calc||d.calcIfAutorange&&V)&&(d.clearCalc=!0),(d.calc||d.plot||d.calcIfAutorange)&&(d.fullReplot=!0),{flags:d,undoit:v,redoit:m,traces:r,eventData:w.extendDeepNoArrays([],[m,r])}}function v(t,e){function r(t,n){if(Array.isArray(t))return void t.forEach(function(t){r(t,n)});if(!(t in e||R.hasParent(e,t))){var i=w.nestedProperty(l,t);t in x||(x[t]=p(i.get())),void 0!==n&&i.set(n)}}function n(e,r){if(!w.isPlainObject(e))return!1;var n=e[r+\"ref\"]||r,i=_.Axes.getFromId(t,n);return i||n.charAt(0)!==r||(i=_.Axes.getFromId(t,r)),(i||{}).autorange}function i(t){var e=H.name2id(t.split(\".\")[0]);return M[e]=1,e}var a,o,s,l=t.layout,u=t._fullLayout,c=Object.keys(e),h=_.Axes.list(t),f={};for(o=0;o<c.length;o++)if(0===c[o].indexOf(\"allaxes\")){for(s=0;s<h.length;s++){var d=h[s]._id.substr(1),m=-1!==d.indexOf(\"scene\")?d+\".\":\"\",v=c[o].replace(\"allaxes\",m+h[s]._name);e[v]||(e[v]=e[c[o]])}delete e[c[o]]}var g,y=j.layoutFlags(),b={},x={},M={};for(var k in e){if(R.hasParent(e,k))throw new Error(\"cannot set \"+k+\"and a parent attribute simultaneously\");var E=w.nestedProperty(l,k),L=e[k],C=E.parts.length,I=\"string\"==typeof E.parts[C-1]?C-1:C-2,z=E.parts[I],D=E.parts[I-1]+\".\"+z,P=E.parts.slice(0,I).join(\".\"),F=w.nestedProperty(t.layout,P).get(),B=w.nestedProperty(u,P).get(),U=E.get();if(void 0!==L){b[k]=L,x[k]=\"reverse\"===z?L:p(U);var V=T.getLayoutValObject(u,E.parts);if(V&&V.impliedEdits&&null!==L)for(var q in V.impliedEdits)r(w.relativeAttr(k,q),V.impliedEdits[q]);if(-1!==[\"width\",\"height\"].indexOf(k)&&null===L)u[k]=t._initialAutoSize[k];else if(D.match(/^[xyz]axis[0-9]*\\.range(\\[[0|1]\\])?$/))i(D),w.nestedProperty(u,P+\"._inputRange\").set(null);else if(D.match(/^[xyz]axis[0-9]*\\.autorange$/)){i(D),w.nestedProperty(u,P+\"._inputRange\").set(null);var G=w.nestedProperty(u,P).get();G._inputDomain&&(G._input.domain=G._inputDomain.slice())}else D.match(/^[xyz]axis[0-9]*\\.domain(\\[[0|1]\\])?$/)&&w.nestedProperty(u,P+\"._inputDomain\").set(null);if(\"type\"===z){var Y=F,W=\"linear\"===B.type&&\"log\"===L,X=\"log\"===B.type&&\"linear\"===L;if(W||X){if(Y&&Y.range)if(B.autorange)W&&(Y.range=Y.range[1]>Y.range[0]?[1,2]:[2,1]);else{var Z=Y.range[0],J=Y.range[1];W?(Z<=0&&J<=0&&r(P+\".autorange\",!0),Z<=0?Z=J/1e6:J<=0&&(J=Z/1e6),r(P+\".range[0]\",Math.log(Z)/Math.LN10),r(P+\".range[1]\",Math.log(J)/Math.LN10)):(r(P+\".range[0]\",Math.pow(10,Z)),r(P+\".range[1]\",Math.pow(10,J)))}else r(P+\".autorange\",!0);A.getComponentMethod(\"annotations\",\"convertCoords\")(t,B,L,r),A.getComponentMethod(\"images\",\"convertCoords\")(t,B,L,r)}else r(P+\".autorange\",!0),r(P+\".range\",null);w.nestedProperty(u,P+\"._inputRange\").set(null)}else if(z.match(N.AX_NAME_PATTERN)){var K=w.nestedProperty(u,k).get(),Q=(L||{}).type;Q&&\"-\"!==Q||(Q=\"linear\"),A.getComponentMethod(\"annotations\",\"convertCoords\")(t,K,Q,r),A.getComponentMethod(\"images\",\"convertCoords\")(t,K,Q,r)}var $=O.containerArrayMatch(k);if($){a=$.array,o=$.index;var tt=$.property,et=w.nestedProperty(l,a),rt=(et||[])[o]||{},nt=rt,it=V||{editType:\"calc\"},at=-1!==it.editType.indexOf(\"calcIfAutorange\");\"\"===o?(at?y.calc=!0:j.update(y,it),at=!1):\"\"===tt&&(nt=L,O.isAddVal(L)?x[k]=null:O.isRemoveVal(L)?(x[k]=rt,nt=rt):w.warn(\"unrecognized full object value\",e)),at&&(n(nt,\"x\")||n(nt,\"y\"))?y.calc=!0:j.update(y,it),f[a]||(f[a]={});var ot=f[a][o];ot||(ot=f[a][o]={}),ot[tt]=L,delete e[k]}else\"reverse\"===z?(F.range?F.range.reverse():(r(P+\".autorange\",!0),F.range=[1,0]),B.autorange?y.calc=!0:y.plot=!0):((!u._has(\"gl2d\")||\"dragmode\"!==k||\"lasso\"!==L&&\"select\"!==L||\"lasso\"===U||\"select\"===U)&&V?j.update(y,V):y.calc=!0,E.set(L))}}for(a in f){O.applyContainerArrayChanges(t,w.nestedProperty(l,a),f[a],y)||(y.plot=!0)}var st=u._axisConstraintGroups;for(g in M)for(o=0;o<st.length;o++){var lt=st[o];if(lt[g]){y.calc=!0;for(var ut in lt)M[ut]||(H.getFromId(t,ut)._constraintShrinkable=!0)}}var ct=u.width,ht=u.height\n", ";return t.layout.autosize&&S.plotAutoSize(t,t.layout,u),(e.height||e.width||u.width!==ct||u.height!==ht)&&(y.calc=!0),(y.plot||y.calc)&&(y.layoutReplot=!0),{flags:y,undoit:x,redoit:b,eventData:w.extendDeep({},b)}}function g(t){var e=y.select(t),r=t._fullLayout;if(r._container=e.selectAll(\".plot-container\").data([0]),r._container.enter().insert(\"div\",\":first-child\").classed(\"plot-container\",!0).classed(\"plotly\",!0),r._paperdiv=r._container.selectAll(\".svg-container\").data([0]),r._paperdiv.enter().append(\"div\").classed(\"svg-container\",!0).style(\"position\",\"relative\"),r._glcontainer=r._paperdiv.selectAll(\".gl-container\").data([0]),r._glcontainer.enter().append(\"div\").classed(\"gl-container\",!0),r._paperdiv.selectAll(\".main-svg\").remove(),r._paper=r._paperdiv.insert(\"svg\",\":first-child\").classed(\"main-svg\",!0),r._toppaper=r._paperdiv.append(\"svg\").classed(\"main-svg\",!0),!r._uid){var n=[];y.selectAll(\"defs\").each(function(){this.id&&n.push(this.id.split(\"-\")[1])}),r._uid=w.randstr(n)}r._paperdiv.selectAll(\".main-svg\").attr(D.svgAttrs),r._defs=r._paper.append(\"defs\").attr(\"id\",\"defs-\"+r._uid),r._clips=r._defs.append(\"g\").classed(\"clips\",!0),r._topdefs=r._toppaper.append(\"defs\").attr(\"id\",\"topdefs-\"+r._uid),r._topclips=r._topdefs.append(\"g\").classed(\"clips\",!0),r._bgLayer=r._paper.append(\"g\").classed(\"bglayer\",!0),r._draggers=r._paper.append(\"g\").classed(\"draglayer\",!0);var i=r._paper.append(\"g\").classed(\"layer-below\",!0);r._imageLowerLayer=i.append(\"g\").classed(\"imagelayer\",!0),r._shapeLowerLayer=i.append(\"g\").classed(\"shapelayer\",!0),r._cartesianlayer=r._paper.append(\"g\").classed(\"cartesianlayer\",!0),r._ternarylayer=r._paper.append(\"g\").classed(\"ternarylayer\",!0),r._geolayer=r._paper.append(\"g\").classed(\"geolayer\",!0);var a=r._paper.append(\"g\").classed(\"layer-above\",!0);r._imageUpperLayer=a.append(\"g\").classed(\"imagelayer\",!0),r._shapeUpperLayer=a.append(\"g\").classed(\"shapelayer\",!0),r._pielayer=r._paper.append(\"g\").classed(\"pielayer\",!0),r._glimages=r._paper.append(\"g\").classed(\"glimages\",!0),r._infolayer=r._toppaper.append(\"g\").classed(\"infolayer\",!0),r._zoomlayer=r._toppaper.append(\"g\").classed(\"zoomlayer\",!0),r._hoverlayer=r._toppaper.append(\"g\").classed(\"hoverlayer\",!0),t.emit(\"plotly_framework\")}var y=t(\"d3\"),b=t(\"fast-isnumeric\"),x=t(\"has-hover\"),_=t(\"../plotly\"),w=t(\"../lib\"),M=t(\"../lib/events\"),k=t(\"../lib/queue\"),A=t(\"../registry\"),T=t(\"./plot_schema\"),S=t(\"../plots/plots\"),E=t(\"../plots/polar\"),L=t(\"../plots/cartesian/graph_interact\"),C=t(\"../components/drawing\"),I=t(\"../components/color\"),z=t(\"../components/errorbars\"),D=t(\"../constants/xmlns_namespaces\"),P=t(\"../lib/svg_text_utils\"),O=t(\"./manage_arrays\"),R=t(\"./helpers\"),F=t(\"./subroutines\"),j=t(\"./edit_types\"),N=t(\"../plots/cartesian/constants\"),B=t(\"../plots/cartesian/constraints\"),U=B.enforce,V=B.clean,H=t(\"../plots/cartesian/axis_ids\");_.plot=function(t,e,r,n){function i(){if(m)return _.addFrames(t,m)}function s(){for(var e=x._basePlotModules,r=0;r<e.length;r++)e[r].drawFramework&&e[r].drawFramework(t);return w.syncOrAsync([F.layoutStyles],t)}function l(){var e,r,n,i=t.calcdata;for(A.getComponentMethod(\"legend\",\"draw\")(t),A.getComponentMethod(\"rangeselector\",\"draw\")(t),A.getComponentMethod(\"sliders\",\"draw\")(t),A.getComponentMethod(\"updatemenus\",\"draw\")(t),e=0;e<i.length;e++)r=i[e],n=r[0].trace,!0===n.visible&&n._module.colorbar?n._module.colorbar(t,r):S.autoMargin(t,\"cb\"+n.uid);return S.doAutoMargin(t),S.previousPromises(t)}function u(){if(JSON.stringify(x._size)!==E)return w.syncOrAsync([l,F.layoutStyles],t)}function c(){if(!k)return void U(t);var e,r,n,i=S.getSubplotIds(x,\"cartesian\"),a=x._modules,o=[];for(n=0;n<a.length;n++)w.pushUnique(o,a[n].setPositions);if(o.length)for(r=0;r<i.length;r++)for(e=x._plots[i[r]],n=0;n<o.length;n++)o[n](t,e);return z.calc(t),w.syncOrAsync([A.getComponentMethod(\"shapes\",\"calcAutorange\"),A.getComponentMethod(\"annotations\",\"calcAutorange\"),h,A.getComponentMethod(\"rangeslider\",\"calcAutorange\")],t)}function h(){if(!t._transitioning){for(var e=_.Axes.list(t,\"\",!0),r=0;r<e.length;r++){var n=e[r];V(t,n),_.Axes.doAutoRange(n)}U(t),b&&_.Axes.saveRangeInitial(t)}}function f(){return _.Axes.doTicks(t,\"redraw\")}function d(){var e,r=t.calcdata,n=x._infolayer.selectAll(\"g.rangeslider-container\");for(e=0;e<r.length;e++){var i=r[e][0].trace,a=!0===i.visible,o=i.uid;if(!a||!A.traceIs(i,\"2dMap\")){var s=\".hm\"+o+\",.contour\"+o+\",#clip\"+o;x._paper.selectAll(s).remove(),n.selectAll(s).remove()}a&&i._module.colorbar||x._infolayer.selectAll(\".cb\"+o).remove()}var l=x._basePlotModules;for(e=0;e<l.length;e++)l[e].plot(t);var u=x._paper.selectAll(\".layer-subplot\");return x._shapeSubplotLayers=u.selectAll(\".shapelayer\"),S.style(t),A.getComponentMethod(\"shapes\",\"draw\")(t),A.getComponentMethod(\"annotations\",\"draw\")(t),S.addLinks(t),x._replotting=!1,S.previousPromises(t)}function p(){A.getComponentMethod(\"shapes\",\"draw\")(t),A.getComponentMethod(\"images\",\"draw\")(t),A.getComponentMethod(\"annotations\",\"draw\")(t),A.getComponentMethod(\"legend\",\"draw\")(t),A.getComponentMethod(\"rangeslider\",\"draw\")(t),A.getComponentMethod(\"rangeselector\",\"draw\")(t),A.getComponentMethod(\"sliders\",\"draw\")(t),A.getComponentMethod(\"updatemenus\",\"draw\")(t)}var m;if(t=w.getGraphDiv(t),M.init(t),w.isPlainObject(e)){var v=e;e=v.data,r=v.layout,n=v.config,m=v.frames}if(!1===M.triggerHandler(t,\"plotly_beforeplot\",[e,r,n]))return Promise.reject();e||r||w.isPlotDiv(t)||w.warn(\"Calling Plotly.plot as if redrawing but this container doesn't yet have a plot.\",t),a(t,n),r||(r={}),y.select(t).classed(\"js-plotly-plot\",!0),C.makeTester(),Array.isArray(t._promises)||(t._promises=[]);var b=0===(t.data||[]).length&&Array.isArray(e);if(Array.isArray(e)&&(R.cleanData(e,t.data),b?t.data=e:t.data.push.apply(t.data,e),t.empty=!1),t.layout&&!b||(t.layout=R.cleanLayout(r)),t._dragging&&!t._transitioning)return t._replotPending=!0,Promise.reject();t._replotPending=!1,S.supplyDefaults(t);var x=t._fullLayout;if(e&&e[0]&&e[0].r)return o(t,e,r);x._replotting=!0,b&&g(t),t.framework!==g&&(t.framework=g,g(t)),C.initGradients(t),b&&_.Axes.saveShowSpikeInitial(t);var k=!t.calcdata||t.calcdata.length!==(t._fullData||[]).length;k&&S.doCalcdata(t);for(var T=0;T<t.calcdata.length;T++)t.calcdata[T][0].trace=t._fullData[T];var E=JSON.stringify(x._size),I=[S.previousPromises,i,s,l,u,c,F.layoutStyles,f,d,p,L,S.rehover,S.previousPromises],D=w.syncOrAsync(I,t);return D&&D.then||(D=Promise.resolve()),D.then(function(){return t.emit(\"plotly_afterplot\"),t})},_.redraw=function(t){if(t=w.getGraphDiv(t),!w.isPlotDiv(t))throw new Error(\"This element is not a Plotly plot: \"+t);return R.cleanData(t.data,t.data),R.cleanLayout(t.layout),t.calcdata=void 0,_.plot(t).then(function(){return t.emit(\"plotly_redraw\"),t})},_.newPlot=function(t,e,r,n){return t=w.getGraphDiv(t),S.cleanPlot([],{},t._fullData||{},t._fullLayout||{}),S.purge(t),_.plot(t,e,r,n)},_.extendTraces=function t(e,r,n,i){e=w.getGraphDiv(e);var a=d(e,r,n,i,function(t,e){return t.concat(e)},function(t,e){return t.splice(0,t.length-e)}),o=_.redraw(e),s=[e,a.update,n,a.maxPoints];return k.add(e,_.prependTraces,s,t,arguments),o},_.prependTraces=function t(e,r,n,i){e=w.getGraphDiv(e);var a=d(e,r,n,i,function(t,e){return e.concat(t)},function(t,e){return t.splice(e,t.length)}),o=_.redraw(e),s=[e,a.update,n,a.maxPoints];return k.add(e,_.extendTraces,s,t,arguments),o},_.addTraces=function t(e,r,n){e=w.getGraphDiv(e);var i,a,o=[],s=_.deleteTraces,l=t,h=[e,o],f=[e,r];for(c(e,r,n),Array.isArray(r)||(r=[r]),r=r.map(function(t){return w.extendFlat({},t)}),R.cleanData(r,e.data),i=0;i<r.length;i++)e.data.push(r[i]);for(i=0;i<r.length;i++)o.push(-r.length+i);if(void 0===n)return a=_.redraw(e),k.add(e,s,h,l,f),a;Array.isArray(n)||(n=[n]);try{u(e,o,n)}catch(t){throw e.data.splice(e.data.length-r.length,r.length),t}return k.startSequence(e),k.add(e,s,h,l,f),a=_.moveTraces(e,o,n),k.stopSequence(e),a},_.deleteTraces=function t(e,r){e=w.getGraphDiv(e);var n,i,a=[],o=_.addTraces,u=t,c=[e,a,r],h=[e,r];if(void 0===r)throw new Error(\"indices must be an integer or array of integers.\");for(Array.isArray(r)||(r=[r]),l(e,r,\"indices\"),r=s(r,e.data.length-1),r.sort(w.sorterDes),n=0;n<r.length;n+=1)i=e.data.splice(r[n],1)[0],a.push(i);var f=_.redraw(e);return k.add(e,o,c,u,h),f},_.moveTraces=function t(e,r,n){e=w.getGraphDiv(e);var i,a=[],o=[],l=t,c=t,h=[e,n,r],f=[e,r,n];if(u(e,r,n),r=Array.isArray(r)?r:[r],void 0===n)for(n=[],i=0;i<r.length;i++)n.push(-r.length+i);for(n=Array.isArray(n)?n:[n],r=s(r,e.data.length-1),n=s(n,e.data.length-1),i=0;i<e.data.length;i++)-1===r.indexOf(i)&&a.push(e.data[i]);for(i=0;i<r.length;i++)o.push({newIndex:n[i],trace:e.data[r[i]]});for(o.sort(function(t,e){return t.newIndex-e.newIndex}),i=0;i<o.length;i+=1)a.splice(o[i].newIndex,0,o[i].trace);e.data=a;var d=_.redraw(e);return k.add(e,l,h,c,f),d},_.restyle=function t(e,r,n,i){e=w.getGraphDiv(e),R.clearPromiseQueue(e);var a={};if(\"string\"==typeof r)a[r]=n;else{if(!w.isPlainObject(r))return w.warn(\"Restyle fail.\",r,n,i),Promise.reject();a=w.extendFlat({},r),void 0===i&&(i=n)}Object.keys(a).length&&(e.changed=!0);var o=R.coerceTraceIndices(e,i),s=m(e,a,o),l=s.flags;l.clearCalc&&(e.calcdata=void 0),l.clearAxisTypes&&R.clearAxisTypes(e,o,{});var u=[];l.fullReplot?u.push(_.plot):(u.push(S.previousPromises),S.supplyDefaults(e),l.style&&u.push(F.doTraceStyle),l.colorbars&&u.push(F.doColorBars)),u.push(S.rehover),k.add(e,t,[e,s.undoit,s.traces],t,[e,s.redoit,s.traces]);var c=w.syncOrAsync(u,e);return c&&c.then||(c=Promise.resolve()),c.then(function(){return e.emit(\"plotly_restyle\",s.eventData),e})},_.relayout=function t(e,r,n){if(e=w.getGraphDiv(e),R.clearPromiseQueue(e),e.framework&&e.framework.isPolar)return Promise.resolve(e);var i={};if(\"string\"==typeof r)i[r]=n;else{if(!w.isPlainObject(r))return w.warn(\"Relayout fail.\",r,n),Promise.reject();i=w.extendFlat({},r)}Object.keys(i).length&&(e.changed=!0);var a=v(e,i),o=a.flags;o.calc&&(e.calcdata=void 0);var s=[S.previousPromises];o.layoutReplot?s.push(F.layoutReplot):Object.keys(i).length&&(S.supplyDefaults(e),o.legend&&s.push(F.doLegend),o.layoutstyle&&s.push(F.layoutStyles),o.ticks&&s.push(F.doTicksRelayout),o.modebar&&s.push(F.doModeBar),o.camera&&s.push(F.doCamera)),s.push(S.rehover),k.add(e,t,[e,a.undoit],t,[e,a.redoit]);var l=w.syncOrAsync(s,e);return l&&l.then||(l=Promise.resolve(e)),l.then(function(){return e.emit(\"plotly_relayout\",a.eventData),e})},_.update=function t(e,r,n,i){if(e=w.getGraphDiv(e),R.clearPromiseQueue(e),e.framework&&e.framework.isPolar)return Promise.resolve(e);w.isPlainObject(r)||(r={}),w.isPlainObject(n)||(n={}),Object.keys(r).length&&(e.changed=!0),Object.keys(n).length&&(e.changed=!0);var a=R.coerceTraceIndices(e,i),o=m(e,w.extendFlat({},r),a),s=o.flags,l=v(e,w.extendFlat({},n)),u=l.flags;(s.clearCalc||u.calc)&&(e.calcdata=void 0),s.clearAxisTypes&&R.clearAxisTypes(e,a,n);var c=[];if(s.fullReplot&&u.layoutReplot){var h=e.data,f=e.layout;e.data=void 0,e.layout=void 0,c.push(function(){return _.plot(e,h,f)})}else s.fullReplot?c.push(_.plot):u.layoutReplot?c.push(F.layoutReplot):(c.push(S.previousPromises),S.supplyDefaults(e),s.style&&c.push(F.doTraceStyle),s.colorbars&&c.push(F.doColorBars),u.legend&&c.push(F.doLegend),u.layoutstyle&&c.push(F.layoutStyles),u.ticks&&c.push(F.doTicksRelayout),u.modebar&&c.push(F.doModeBar),u.camera&&c.push(F.doCamera));c.push(S.rehover),k.add(e,t,[e,o.undoit,l.undoit,o.traces],t,[e,o.redoit,l.redoit,o.traces]);var d=w.syncOrAsync(c,e);return d&&d.then||(d=Promise.resolve(e)),d.then(function(){return e.emit(\"plotly_update\",{data:o.eventData,layout:l.eventData}),e})},_.animate=function(t,e,r){function n(t){return Array.isArray(s)?t>=s.length?s[0]:s[t]:s}function i(t){return Array.isArray(l)?t>=l.length?l[0]:l[t]:l}function a(t,e){var r=0;return function(){if(t&&++r===e)return t()}}if(t=w.getGraphDiv(t),!w.isPlotDiv(t))throw new Error(\"This element is not a Plotly plot: \"+t+\". It's likely that you've failed to create a plot before animating it. For more details, see https://plot.ly/javascript/animations/\");var o=t._transitionData;o._frameQueue||(o._frameQueue=[]),r=S.supplyAnimationDefaults(r);var s=r.transition,l=r.frame;return void 0===o._frameWaitingCnt&&(o._frameWaitingCnt=0),new Promise(function(l,u){function c(){t.emit(\"plotly_animated\"),window.cancelAnimationFrame(o._animationRaf),o._animationRaf=null}function h(){o._currentFrame&&o._currentFrame.onComplete&&o._currentFrame.onComplete();var e=o._currentFrame=o._frameQueue.shift();if(e){var r=e.name?e.name.toString():null;t._fullLayout._currentFrame=r,o._lastFrameAt=Date.now(),o._timeToNext=e.frameOpts.duration,S.transition(t,e.frame.data,e.frame.layout,R.coerceTraceIndices(t,e.frame.traces),e.frameOpts,e.transitionOpts).then(function(){e.onComplete&&e.onComplete()}),t.emit(\"plotly_animatingframe\",{name:r,frame:e.frame,animation:{frame:e.frameOpts,transition:e.transitionOpts}})}else c()}function f(){t.emit(\"plotly_animating\"),o._lastFrameAt=-1/0,o._timeToNext=0,o._runningTransitions=0,o._currentFrame=null;var e=function(){o._animationRaf=window.requestAnimationFrame(e),Date.now()-o._lastFrameAt>o._timeToNext&&h()};e()}function d(t){return Array.isArray(s)?v>=s.length?t.transitionOpts=s[v]:t.transitionOpts=s[0]:t.transitionOpts=s,v++,t}var p,m,v=0,g=[],y=void 0===e||null===e,b=Array.isArray(e);if(y||b||!w.isPlainObject(e)){if(y||-1!==[\"string\",\"number\"].indexOf(typeof e))for(p=0;p<o._frames.length;p++)(m=o._frames[p])&&(y||String(m.group)===String(e))&&g.push({type:\"byname\",name:String(m.name),data:d({name:m.name})});else if(b)for(p=0;p<e.length;p++){var x=e[p];-1!==[\"number\",\"string\"].indexOf(typeof x)?(x=String(x),g.push({type:\"byname\",name:x,data:d({name:x})})):w.isPlainObject(x)&&g.push({type:\"object\",data:d(w.extendFlat({},x))})}}else g.push({type:\"object\",data:d(w.extendFlat({},e))});for(p=0;p<g.length;p++)if(m=g[p],\"byname\"===m.type&&!o._frameHash[m.data.name])return w.warn('animate failure: frame not found: \"'+m.data.name+'\"'),void u();-1!==[\"next\",\"immediate\"].indexOf(r.mode)&&function(){if(0!==o._frameQueue.length){for(;o._frameQueue.length;){var e=o._frameQueue.pop();e.onInterrupt&&e.onInterrupt()}t.emit(\"plotly_animationinterrupted\",[])}}(),\"reverse\"===r.direction&&g.reverse();var _=t._fullLayout._currentFrame;if(_&&r.fromcurrent){var M=-1;for(p=0;p<g.length;p++)if(m=g[p],\"byname\"===m.type&&m.name===_){M=p;break}if(M>0&&M<g.length-1){var k=[];for(p=0;p<g.length;p++)m=g[p],(\"byname\"!==g[p].type||p>M)&&k.push(m);g=k}}g.length>0?function(e){if(0!==e.length){for(var s=0;s<e.length;s++){var c;c=\"byname\"===e[s].type?S.computeFrame(t,e[s].name):e[s].data;var h=i(s),d=n(s);d.duration=Math.min(d.duration,h.duration);var p={frame:c,name:e[s].name,frameOpts:h,transitionOpts:d};s===e.length-1&&(p.onComplete=a(l,2),p.onInterrupt=u),o._frameQueue.push(p)}\"immediate\"===r.mode&&(o._lastFrameAt=-1/0),o._animationRaf||f()}}(g):(t.emit(\"plotly_animated\"),l())})},_.addFrames=function(t,e,r){t=w.getGraphDiv(t);var n=0;if(null===e||void 0===e)return Promise.resolve();if(!w.isPlotDiv(t))throw new Error(\"This element is not a Plotly plot: \"+t+\". It's likely that you've failed to create a plot before adding frames. For more details, see https://plot.ly/javascript/animations/\");var i,a,o,s,l=t._transitionData._frames,u=t._transitionData._frameHash;if(!Array.isArray(e))throw new Error(\"addFrames failure: frameList must be an Array of frame definitions\"+e);var c=l.length+2*e.length,h=[];for(i=e.length-1;i>=0;i--)if(w.isPlainObject(e[i])){var f=(u[e[i].name]||{}).name,d=e[i].name;f&&d&&\"number\"==typeof d&&u[f]&&(n++,w.warn('addFrames: overwriting frame \"'+u[f].name+'\" with a frame whose name of type \"number\" also equates to \"'+f+'\". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'),n>5&&w.warn(\"addFrames: This API call has yielded too many warnings. For the rest of this call, further warnings about numeric frame names will be suppressed.\")),h.push({frame:S.supplyFrameDefaults(e[i]),index:r&&void 0!==r[i]&&null!==r[i]?r[i]:c+i})}h.sort(function(t,e){return t.index>e.index?-1:t.index<e.index?1:0});var p=[],m=[],v=l.length;for(i=h.length-1;i>=0;i--){if(a=h[i].frame,\"number\"==typeof a.name&&w.warn(\"Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings\"),!a.name)for(;u[a.name=\"frame \"+t._transitionData._counter++];);if(u[a.name]){for(o=0;o<l.length&&(l[o]||{}).name!==a.name;o++);p.push({type:\"replace\",index:o,value:a}),m.unshift({type:\"replace\",index:o,value:l[o]})}else s=Math.max(0,Math.min(h[i].index,v)),p.push({type:\"insert\",index:s,value:a}),m.unshift({type:\"delete\",index:s}),v++}var g=S.modifyFrames,y=S.modifyFrames,b=[t,m],x=[t,p];return k&&k.add(t,g,b,y,x),S.modifyFrames(t,p)},_.deleteFrames=function(t,e){if(t=w.getGraphDiv(t),!w.isPlotDiv(t))throw new Error(\"This element is not a Plotly plot: \"+t);var r,n,i=t._transitionData._frames,a=[],o=[];if(!e)for(e=[],r=0;r<i.length;r++)e.push(r);for(e=e.slice(0),e.sort(),r=e.length-1;r>=0;r--)n=e[r],a.push({type:\"delete\",index:n}),o.unshift({type:\"insert\",index:n,value:i[n]});var s=S.modifyFrames,l=S.modifyFrames,u=[t,o],c=[t,a];return k&&k.add(t,s,u,l,c),S.modifyFrames(t,a)},_.purge=function(t){t=w.getGraphDiv(t);var e=t._fullLayout||{},r=t._fullData||[];return S.cleanPlot([],{},r,e),S.purge(t),M.purge(t),e._container&&e._container.remove(),delete t._context,t}},{\"../components/color\":604,\"../components/drawing\":628,\"../components/errorbars\":634,\"../constants/xmlns_namespaces\":709,\"../lib\":728,\"../lib/events\":716,\"../lib/queue\":741,\"../lib/svg_text_utils\":750,\"../plotly\":767,\"../plots/cartesian/axis_ids\":775,\"../plots/cartesian/constants\":777,\"../plots/cartesian/constraints\":779,\"../plots/cartesian/graph_interact\":781,\"../plots/plots\":831,\"../plots/polar\":834,\"../registry\":846,\"./edit_types\":756,\"./helpers\":757,\"./manage_arrays\":758,\"./plot_schema\":761,\"./subroutines\":764,d3:122,\"fast-isnumeric\":131,\"has-hover\":288}],760:[function(t,e,r){\"use strict\";e.exports={staticPlot:!1,editable:!1,edits:{annotationPosition:!1,annotationTail:!1,annotationText:!1,axisTitleText:!1,colorbarPosition:!1,colorbarTitleText:!1,legendPosition:!1,legendText:!1,shapePosition:!1,titleText:!1},autosizable:!1,queueLength:0,fillFrame:!1,frameMargins:0,scrollZoom:!1,doubleClick:\"reset+autosize\",showTips:!0,showAxisDragHandles:!0,showAxisRangeEntryBoxes:!0,showLink:!1,sendData:!0,linkText:\"Edit chart\",showSources:!1,displayModeBar:\"hover\",modeBarButtonsToRemove:[],modeBarButtonsToAdd:[],modeBarButtons:!1,displaylogo:!0,plotGlPixelRatio:2,setBackground:\"transparent\",topojsonURL:\"https://cdn.plot.ly/\",mapboxAccessToken:null,logging:!1,globalTransforms:[]}},{}],761:[function(t,e,r){\"use strict\";function n(t,e){var r,n,i,a,o=t._basePlotModules;if(o){var s;for(r=0;r<o.length;r++){if(i=o[r],i.attrRegex&&i.attrRegex.test(e)){if(i.layoutAttrOverrides)return i.layoutAttrOverrides;!s&&i.layoutAttributes&&(s=i.layoutAttributes)}var l=i.baseLayoutAttrOverrides;if(l&&e in l)return l[e]}if(s)return s}var u=t._modules;if(u)for(r=0;r<u.length;r++)if((a=u[r].layoutAttributes)&&e in a)return a[e];for(n in v.componentsRegistry)if(i=v.componentsRegistry[n],!i.schema&&e===i.name)return i.layoutAttributes;return e in b?b[e]:\"radialaxis\"===e||\"angularaxis\"===e?M[e]:M.layout[e]||!1}function i(t,e,r){if(!t)return!1;if(t._isLinkedToArray)if(a(e[r]))r++;else if(r<e.length)return!1;for(;r<e.length;r++){var n=t[e[r]];if(!g.isPlainObject(n))break;if(t=n,r===e.length-1)break;if(t._isLinkedToArray){if(r++,!a(e[r]))return!1}else if(\"info_array\"===t.valType){r++;var i=e[r];if(!a(i)||i>=t.items.length)return!1;t=t.items[i]}}return t}function a(t){return t===Math.round(t)&&t>=0}function o(t){var e,r;\"area\"===t?(e={attributes:w},r={}):(e=v.modules[t]._module,r=e.basePlotModule);var n={};n.type=null,T(n,y),T(n,e.attributes),r.attributes&&T(n,r.attributes),n.type=t;var i={meta:e.meta||{},attributes:c(n)};if(e.layoutAttributes){var a={};T(a,e.layoutAttributes),i.layoutAttributes=c(a)}return i}function s(){var t,e,r={};T(r,b);for(t in v.subplotsRegistry)if(e=v.subplotsRegistry[t],e.layoutAttributes)if(\"cartesian\"===e.name)p(r,e,\"xaxis\"),p(r,e,\"yaxis\");else{var n=\"subplot\"===e.attr?e.name:e.attr;p(r,e,n)}r=d(r);for(t in v.componentsRegistry){e=v.componentsRegistry[t];var i=e.schema;if(i&&(i.subplots||i.layout)){var a=i.subplots;if(a&&a.xaxis&&!a.yaxis)for(var o in a.xaxis)delete r.yaxis[o]}else e.layoutAttributes&&m(r,e.layoutAttributes,e.name)}return{layoutAttributes:c(r)}}function l(t){var e=v.transformsRegistry[t],r=T({},e.attributes);return Object.keys(v.componentsRegistry).forEach(function(e){var n=v.componentsRegistry[e];n.schema&&n.schema.transforms&&n.schema.transforms[t]&&Object.keys(n.schema.transforms[t]).forEach(function(e){m(r,n.schema.transforms[t][e],e)})}),{attributes:c(r)}}function u(){var t={frames:g.extendDeepAll({},x)};return c(t),t.frames}function c(t){return h(t),f(t),t}function h(t){function e(t){return{valType:\"string\",editType:\"none\"}}function n(t,n,i){r.isValObject(t)?\"data_array\"===t.valType?(t.role=\"data\",i[n+\"src\"]=e(n)):!0===t.arrayOk&&(i[n+\"src\"]=e(n)):g.isPlainObject(t)&&(t.role=\"object\")}r.crawl(t,n)}function f(t){function e(t,e,r){if(t){var n=t[E];n&&(delete t[E],r[e]={items:{}},r[e].items[n]=t,r[e].role=\"object\")}}r.crawl(t,e)}function d(t){return A(t,{radialaxis:M.radialaxis,angularaxis:M.angularaxis}),A(t,M.layout),t}function p(t,e,r){var n=g.nestedProperty(t,r),i=T({},e.layoutAttributes);i[S]=!0,n.set(i)}function m(t,e,r){var n=g.nestedProperty(t,r);n.set(T(n.get()||{},e))}var v=t(\"../registry\"),g=t(\"../lib\"),y=t(\"../plots/attributes\"),b=t(\"../plots/layout_attributes\"),x=t(\"../plots/frame_attributes\"),_=t(\"../plots/animation_attributes\"),w=t(\"../plots/polar/area_attributes\"),M=t(\"../plots/polar/axis_attributes\"),k=t(\"./edit_types\"),A=g.extendFlat,T=g.extendDeepAll,S=\"_isSubplotObj\",E=\"_isLinkedToArray\",L=[S,E,\"_arrayAttrRegexps\",\"_deprecated\"];r.IS_SUBPLOT_OBJ=S,r.IS_LINKED_TO_ARRAY=E,r.DEPRECATED=\"_deprecated\",r.UNDERSCORE_ATTRS=L,r.get=function(){var t={};v.allTypes.concat(\"area\").forEach(function(e){t[e]=o(e)});var e={};return Object.keys(v.transformsRegistry).forEach(function(t){e[t]=l(t)}),{defs:{valObjects:g.valObjectMeta,metaKeys:L.concat([\"description\",\"role\",\"editType\",\"impliedEdits\"]),editType:{traces:k.traces,layout:k.layout},impliedEdits:{}},traces:t,layout:s(),transforms:e,frames:u(),animation:c(_)}},r.crawl=function(t,e,n,i){var a=n||0;i=i||\"\",Object.keys(t).forEach(function(n){var o=t[n];if(-1===L.indexOf(n)){var s=(i?i+\".\":\"\")+n;e(o,n,t,a,s),r.isValObject(o)||g.isPlainObject(o)&&\"impliedEdits\"!==n&&r.crawl(o,e,a+1,s)}})},r.isValObject=function(t){return t&&void 0!==t.valType},r.findArrayAttributes=function(t){function e(e,r,o,s){if(a=a.slice(0,s).concat([r]),e&&(\"data_array\"===e.valType||!0===e.arrayOk)&&!(\"colorbar\"===a[s-1]&&(\"ticktext\"===r||\"tickvals\"===r))){var l=n(a),u=g.nestedProperty(t,l).get();Array.isArray(u)&&i.push(l)}}function n(t){return t.join(\".\")}var i=[],a=[];if(r.crawl(y,e),t._module&&t._module.attributes&&r.crawl(t._module.attributes,e),t.transforms)for(var o=t.transforms,s=0;s<o.length;s++){var l=o[s],u=l._module;u&&(a=[\"transforms[\"+s+\"]\"],r.crawl(u.attributes,e,1))}return t._fullInput&&t._fullInput._module&&t._fullInput._module.attributes&&(r.crawl(t._fullInput._module.attributes,e),i=g.filterUnique(i)),i},r.getTraceValObject=function(t,e){var r,n,o=e[0],s=1;if(\"transforms\"===o){if(!Array.isArray(t.transforms))return!1;var l=e[1];if(!a(l)||l>=t.transforms.length)return!1;r=(v.transformsRegistry[t.transforms[l].type]||{}).attributes,n=r&&r[e[2]],s=3}else if(\"area\"===t.type)n=w[o];else{var u=t._module;if(u||(u=(v.modules[t.type||y.type.dflt]||{})._module),!u)return!1;if(r=u.attributes,!(n=r&&r[o])){var c=u.basePlotModule;c&&c.attributes&&(n=c.attributes[o])}n||(n=y[o])}return i(n,e,s)},r.getLayoutValObject=function(t,e){return i(n(t,e[0]),e,1)}},{\"../lib\":728,\"../plots/animation_attributes\":768,\"../plots/attributes\":770,\"../plots/frame_attributes\":797,\"../plots/layout_attributes\":822,\"../plots/polar/area_attributes\":832,\"../plots/polar/axis_attributes\":833,\"../registry\":846,\"./edit_types\":756}],762:[function(t,e,r){\"use strict\";function n(t){o.register(t,t.name,t.categories,t.meta),o.subplotsRegistry[t.basePlotModule.name]||o.registerSubplot(t.basePlotModule)}function i(t){if(\"string\"!=typeof t.name)throw new Error(\"Transform module *name* must be a string.\");var e=\"Transform module \"+t.name,r=\"function\"==typeof t.transform,n=\"function\"==typeof t.calcTransform;if(!r&&!n)throw new Error(e+\" is missing a *transform* or *calcTransform* method.\");r&&n&&s.log([e+\" has both a *transform* and *calcTransform* methods.\",\"Please note that all *transform* methods are executed\",\"before all *calcTransform* methods.\"].join(\" \")),s.isPlainObject(t.attributes)||s.log(e+\" registered without an *attributes* object.\"),\"function\"!=typeof t.supplyDefaults&&s.log(e+\" registered without a *supplyDefaults* method.\"),o.registerTransform(t)}function a(t){if(\"string\"!=typeof t.name)throw new Error(\"Component module *name* must be a string.\");o.registerComponent(t)}var o=t(\"../registry\"),s=t(\"../lib\");e.exports=function(t){if(!t)throw new Error(\"No argument passed to Plotly.register.\");t&&!Array.isArray(t)&&(t=[t]);for(var e=0;e<t.length;e++){var r=t[e];if(!r)throw new Error(\"Invalid module was attempted to be registered!\");switch(r.moduleType){case\"trace\":n(r);break;case\"transform\":i(r);break;case\"component\":a(r);break;default:throw new Error(\"Invalid module was attempted to be registered!\")}}}},{\"../lib\":728,\"../registry\":846}],763:[function(t,e,r){\"use strict\";var n=t(\"../plotly\"),i=t(\"../lib\");e.exports=function(t){return i.extendFlat(n.defaultConfig,t)}},{\"../lib\":728,\"../plotly\":767}],764:[function(t,e,r){\"use strict\";function n(t,e,r){for(var n=0;n<r.length;n++){var i=r[n][0],a=r[n][1];if(!(i[0]>=t[1]||i[1]<=t[0])&&(a[0]<e[1]&&a[1]>e[0]))return!0}return!1}function i(t,e,r){return t._anchorAxis===e&&(t.mirror||t.side===r)||\"all\"===t.mirror||\"allticks\"===t.mirror||t.mirrors&&t.mirrors[e._id+r]}function a(t,e,r){var n=[],i=e._anchorAxis;if(i){var a=i._mainAxis;if(-1===n.indexOf(a)){n.push(a);for(var o=0;o<r.length;o++)r[o].overlaying===a._id&&-1===n.indexOf(r[o])&&n.push(r[o])}}return n}function o(t,e,r){for(var n=0;n<e.length;n++){var a=e[n],o=a._anchorAxis;if(o&&i(a,o,r))return p.crispRound(t,a.linewidth)}}function s(t,e,r,n,i,s){if(n)return r;var l,u=e._mainAxis,c=a(t,u,s),h=o(t,c,i);if(h)return h;for(l=0;l<s.length;l++)if(s[l].overlaying===u._id&&(c=a(t,s[l],s),h=o(t,c,i)))return h;return 0}var l=t(\"d3\"),u=t(\"../plotly\"),c=t(\"../registry\"),h=t(\"../plots/plots\"),f=t(\"../lib\"),d=t(\"../components/color\"),p=t(\"../components/drawing\"),m=t(\"../components/titles\"),v=t(\"../components/modebar\"),g=t(\"../plots/cartesian/graph_interact\"),y=t(\"../plots/cartesian/constants\");r.layoutStyles=function(t){return f.syncOrAsync([h.doAutoMargin,r.lsInner],t)},r.lsInner=function(t){var e,a=t._fullLayout,o=a._size,c=o.p,h=u.Axes.list(t),f=a._has(\"cartesian\");for(e=0;e<h.length;e++)h[e]._linepositions={};a._paperdiv.style({width:a.width+\"px\",height:a.height+\"px\"}).selectAll(\".main-svg\").call(p.setSize,a.width,a.height),t._context.setBackground(t,a.paper_bgcolor);var m=a._paper.selectAll(\"g.subplot\"),g=[],b=[];m.each(function(t){var e=a._plots[t];if(e.mainplot)return e.bg&&e.bg.remove(),void(e.bg=void 0);var r=e.xaxis.domain,i=e.yaxis.domain,o=[];n(r,i,b)?o=[0]:(g.push(t),b.push([r,i]));var s=e.plotgroup.selectAll(\".bg\").data(o);s.enter().append(\"rect\").classed(\"bg\",!0),s.exit().remove(),s.each(function(){e.bg=s;var t=e.plotgroup.node();t.insertBefore(this,t.childNodes[0])})});var x=a._bgLayer.selectAll(\".bg\").data(g);x.enter().append(\"rect\").classed(\"bg\",!0),x.exit().remove(),x.each(function(t){a._plots[t].bg=l.select(this)});var _={};return m.each(function(r){function n(t,e){return e?\"M\"+P+\",\"+t+\"H\"+R:\"\"}function l(t,e){return e?\"M\"+t+\",\"+H+\"V\"+U:\"\"}var u=a._plots[r],m=u.xaxis,v=u.yaxis;m.setScale(),v.setScale(),u.bg&&f&&u.bg.call(p.setRect,m._offset-c,v._offset-c,m._length+2*c,v._length+2*c).call(d.fill,a.plot_bgcolor).style(\"stroke-width\",0),u.clipId=\"clip\"+a._uid+r+\"plot\";var g=a._clips.selectAll(\"#\"+u.clipId).data([0]);g.enter().append(\"clipPath\").attr({class:\"plotclip\",id:u.clipId}).append(\"rect\"),g.selectAll(\"rect\").attr({width:m._length,height:v._length}),p.setTranslate(u.plot,m._offset,v._offset);var b,x;for(u._hasClipOnAxisFalse?(b=null,x=u.clipId):(b=u.clipId,x=null),p.setClipUrl(u.plot,b),e=0;e<y.traceLayerClasses.length;e++){var w=y.traceLayerClasses[e];\"scatterlayer\"!==w&&u.plot.selectAll(\"g.\"+w).call(p.setClipUrl,x)}u.layerClipId=x;var M=!m._anchorAxis,k=M&&!_[m._id],A=i(m,v,\"bottom\"),T=i(m,v,\"top\"),S=!v._anchorAxis,E=S&&!_[v._id],L=i(v,m,\"left\"),C=i(v,m,\"right\"),I=p.crispRound(t,m.linewidth,1),z=p.crispRound(t,v.linewidth,1),D=s(t,m,z,L,\"left\",h),P=!M&&D?-c-D:0,O=s(t,m,z,C,\"right\",h),R=m._length+(!M&&O?c+O:0),F=o.h*(1-(m.position||0))+I/2%1,j=v._length+c+I/2,N=-c-I/2,B=!S&&s(t,v,I,A,\"bottom\",h),U=v._length+(B?c:0),V=!S&&s(t,v,I,T,\"top\",h),H=V?-c:0,q=o.w*(v.position||0)+z/2%1,G=-c-z/2,Y=m._length+c+z/2;m._linepositions[r]=[A?j:void 0,T?N:void 0,k?F:void 0],m._anchorAxis===v?m._linepositions[r][3]=\"top\"===m.side?N:j:k&&(m._linepositions[r][3]=F),v._linepositions[r]=[L?G:void 0,C?Y:void 0,E?q:void 0],v._anchorAxis===m?v._linepositions[r][3]=\"right\"===v.side?Y:G:E&&(v._linepositions[r][3]=q);var W=\"translate(\"+m._offset+\",\"+v._offset+\")\",X=W,Z=W;k&&(X=\"translate(\"+m._offset+\",\"+o.t+\")\",N+=v._offset-o.t,j+=v._offset-o.t),E&&(Z=\"translate(\"+o.l+\",\"+v._offset+\")\",G+=m._offset-o.l,Y+=m._offset-o.l),f&&(u.xlines.attr(\"transform\",X).attr(\"d\",n(j,A)+n(N,T)+n(F,k)||\"M0,0\").style(\"stroke-width\",I+\"px\").call(d.stroke,m.showline?m.linecolor:\"rgba(0,0,0,0)\"),u.ylines.attr(\"transform\",Z).attr(\"d\",l(G,L)+l(Y,C)+l(q,E)||\"M0,0\").style(\"stroke-width\",z+\"px\").call(d.stroke,v.showline?v.linecolor:\"rgba(0,0,0,0)\")),u.xaxislayer.attr(\"transform\",X),u.yaxislayer.attr(\"transform\",Z),u.gridlayer.attr(\"transform\",W),u.zerolinelayer.attr(\"transform\",W),u.draglayer.attr(\"transform\",W),k&&(_[m._id]=1),E&&(_[v._id]=1)}),u.Axes.makeClipPaths(t),r.drawMainTitle(t),v.manage(t),t._promises.length&&Promise.all(t._promises)},r.drawMainTitle=function(t){var e=t._fullLayout;m.draw(t,\"gtitle\",{propContainer:e,propName:\"title\",dfltName:\"Plot\",attributes:{x:e.width/2,y:e._size.t/2,\"text-anchor\":\"middle\"}})},r.doTraceStyle=function(t){for(var e=0;e<t.calcdata.length;e++){var r=t.calcdata[e],n=((r[0]||{}).trace||{})._module||{},i=n.arraysToCalcdata;i&&i(r,r[0].trace)}return h.style(t),c.getComponentMethod(\"legend\",\"draw\")(t),h.previousPromises(t)},r.doColorBars=function(t){for(var e=0;e<t.calcdata.length;e++){var r=t.calcdata[e][0];if((r.t||{}).cb){var n=r.trace,i=r.t.cb;c.traceIs(n,\"contour\")&&i.line({width:!1!==n.contours.showlines?n.line.width:0,dash:n.line.dash,color:\"line\"===n.contours.coloring?i._opts.line.color:n.line.color}),c.traceIs(n,\"markerColorscale\")?i.options(n.marker.colorbar)():i.options(n.colorbar)()}}return h.previousPromises(t)},r.layoutReplot=function(t){var e=t.layout;return t.layout=void 0,u.plot(t,\"\",e)},r.doLegend=function(t){return c.getComponentMethod(\"legend\",\"draw\")(t),h.previousPromises(t)},r.doTicksRelayout=function(t){return u.Axes.doTicks(t,\"redraw\"),r.drawMainTitle(t),h.previousPromises(t)},r.doModeBar=function(t){var e=t._fullLayout;v.manage(t),g(t);for(var r=0;r<e._basePlotModules.length;r++){var n=e._basePlotModules[r].updateFx;n&&n(e)}return h.previousPromises(t)},r.doCamera=function(t){for(var e=t._fullLayout,r=h.getSubplotIds(e,\"gl3d\"),n=0;n<r.length;n++){var i=e[r[n]];i._scene.setCamera(i.camera)}}},{\"../components/color\":604,\"../components/drawing\":628,\"../components/modebar\":665,\"../components/titles\":694,\"../lib\":728,\"../plotly\":767,\"../plots/cartesian/constants\":777,\"../plots/cartesian/graph_interact\":781,\"../plots/plots\":831,\"../registry\":846,d3:122}],765:[function(t,e,r){\"use strict\";function n(t,e){\n", "function r(t){return!(t in e)||a.validate(e[t],u[t])}function n(t,r){return a.coerce(e,g,u,t,r)}function h(){return new Promise(function(t){setTimeout(t,o.getDelay(k._fullLayout))})}function f(){return new Promise(function(t,e){var r=s(k,y,_),n=k._fullLayout.width,o=k._fullLayout.height;if(i.purge(k),document.body.removeChild(k),\"svg\"===y)return t(M?r:\"data:image/svg+xml,\"+encodeURIComponent(r));var u=document.createElement(\"canvas\");u.id=a.randstr(),l({format:y,width:n,height:o,scale:_,canvas:u,svg:r,promise:!0}).then(t).catch(e)})}function d(t){return M?t.replace(c,\"\"):t}e=e||{};var p,m,v;if(a.isPlainObject(t)?(p=t.data||[],m=t.layout||{},v=t.config||{}):(t=a.getGraphDiv(t),p=a.extendDeep([],t.data),m=a.extendDeep({},t.layout),v=t._context),!r(\"width\")||!r(\"height\"))throw new Error(\"Height and width should be pixel values.\");if(!r(\"format\"))throw new Error(\"Image format is not jpeg, png, svg or webp.\");var g={},y=n(\"format\"),b=n(\"width\"),x=n(\"height\"),_=n(\"scale\"),w=n(\"setBackground\"),M=n(\"imageDataOnly\"),k=document.createElement(\"div\");k.style.position=\"absolute\",k.style.left=\"-5000px\",document.body.appendChild(k);var A=a.extendFlat({},m);b&&(A.width=b),x&&(A.height=x);var T=a.extendFlat({},v,{staticPlot:!0,setBackground:w}),S=o.getRedrawFunc(k);return new Promise(function(t,e){i.plot(k,p,A,T).then(S).then(h).then(f).then(function(e){t(d(e))}).catch(function(t){e(t)})})}var i=t(\"../plotly\"),a=t(\"../lib\"),o=t(\"../snapshot/helpers\"),s=t(\"../snapshot/tosvg\"),l=t(\"../snapshot/svgtoimg\"),u={format:{valType:\"enumerated\",values:[\"png\",\"jpeg\",\"webp\",\"svg\"],dflt:\"png\"},width:{valType:\"number\",min:1},height:{valType:\"number\",min:1},scale:{valType:\"number\",min:0,dflt:1},setBackground:{valType:\"any\",dflt:!1},imageDataOnly:{valType:\"boolean\",dflt:!1}},c=/^data:image\\/\\w+;base64,/;e.exports=n},{\"../lib\":728,\"../plotly\":767,\"../snapshot/helpers\":850,\"../snapshot/svgtoimg\":852,\"../snapshot/tosvg\":854}],766:[function(t,e,r){\"use strict\";function n(t,e,r,i,a,u){u=u||[];for(var c=Object.keys(t),f=0;f<c.length;f++){var d=c[f];if(\"transforms\"!==d){var v=u.slice();v.push(d);var g=t[d],y=e[d],b=l(r,d),x=\"info_array\"===(b||{}).valType,_=\"colorscale\"===(b||{}).valType;if(s(r,d))if(p(g)&&p(y))n(g,y,b,i,a,v);else if(b.items&&!x&&m(g)){var w,M,k=b.items,A=k[Object.keys(k)[0]],T=[];for(w=0;w<y.length;w++){var S=y[w]._index||w;M=v.slice(),M.push(S),p(g[S])&&p(y[w])&&(T.push(S),n(g[S],y[w],A,i,a,M))}for(w=0;w<g.length;w++)M=v.slice(),M.push(w),p(g[w])?-1===T.indexOf(w)&&i.push(o(\"unused\",a,M)):i.push(o(\"object\",a,M,g[w]))}else!p(g)&&p(y)?i.push(o(\"object\",a,v,g)):m(g)||!m(y)||x||_?d in e?h.validate(g,b)?\"enumerated\"===b.valType&&(b.coerceNumber&&g!==+y||g!==y)&&i.push(o(\"dynamic\",a,v,g,y)):i.push(o(\"value\",a,v,g)):i.push(o(\"unused\",a,v,g)):i.push(o(\"array\",a,v,g));else i.push(o(\"schema\",a,v))}}return i}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r].type,i=t.traces[n].layoutAttributes;i&&h.extendFlat(t.layout.layoutAttributes,i)}return t.layout.layoutAttributes}function a(t){return m(t)?\"In data trace \"+t[1]+\", \":\"In \"+t+\", \"}function o(t,e,r,n,i){r=r||\"\";var a,o;m(e)?(a=e[0],o=e[1]):(a=e,o=null);var s=c(r),l=v[t](e,s,n,i);return h.log(l),{code:t,container:a,trace:o,path:r,astr:s,msg:l}}function s(t,e){var r=u(e),n=r.keyMinusId,i=r.id;return!!(n in t&&t[n]._isSubplotObj&&i)||e in t}function l(t,e){return t[u(e).keyMinusId]}function u(t){var e=t.match(g);return{keyMinusId:e&&e[1],id:e&&e[2]}}function c(t){if(!m(t))return String(t);for(var e=\"\",r=0;r<t.length;r++){var n=t[r];\"number\"==typeof n?e=e.substr(0,e.length-1)+\"[\"+n+\"]\":e+=n,r<t.length-1&&(e+=\".\")}return e}var h=t(\"../lib\"),f=t(\"../plots/plots\"),d=t(\"./plot_schema\"),p=h.isPlainObject,m=Array.isArray;e.exports=function(t,e){var r,a,s=d.get(),l=[],u={};m(t)?(u.data=h.extendDeep([],t),r=t):(u.data=[],r=[],l.push(o(\"array\",\"data\"))),p(e)?(u.layout=h.extendDeep({},e),a=e):(u.layout={},a={},arguments.length>1&&l.push(o(\"object\",\"layout\"))),f.supplyDefaults(u);for(var c=u._fullData,v=r.length,g=0;g<v;g++){var y=r[g],b=[\"data\",g];if(p(y)){var x=c[g],_=x.type,w=s.traces[_].attributes;w.type={valType:\"enumerated\",values:[_]},!1===x.visible&&!1!==y.visible&&l.push(o(\"invisible\",b)),n(y,x,w,l,b);var M=y.transforms,k=x.transforms;if(M){m(M)||l.push(o(\"array\",b,[\"transforms\"])),b.push(\"transforms\");for(var A=0;A<M.length;A++){var T=[\"transforms\",A],S=M[A].type;if(p(M[A])){var E=s.transforms[S]?s.transforms[S].attributes:{};E.type={valType:\"enumerated\",values:Object.keys(s.transforms)},n(M[A],k[A],E,l,b,T)}else l.push(o(\"object\",b,T))}}}else l.push(o(\"object\",b))}return n(a,u._fullLayout,i(s,c),l,\"layout\"),0===l.length?void 0:l};var v={object:function(t,e){return(\"layout\"===t&&\"\"===e?\"The layout argument\":\"data\"===t[0]&&\"\"===e?\"Trace \"+t[1]+\" in the data argument\":a(t)+\"key \"+e)+\" must be linked to an object container\"},array:function(t,e){return(\"data\"===t?\"The data argument\":a(t)+\"key \"+e)+\" must be linked to an array container\"},schema:function(t,e){return a(t)+\"key \"+e+\" is not part of the schema\"},unused:function(t,e,r){var n=p(r)?\"container\":\"key\";return a(t)+n+\" \"+e+\" did not get coerced\"},dynamic:function(t,e,r,n){return[a(t)+\"key\",e,\"(set to '\"+r+\"')\",\"got reset to\",\"'\"+n+\"'\",\"during defaults.\"].join(\" \")},invisible:function(t){return\"Trace \"+t[1]+\" got defaulted to be not visible\"},value:function(t,e,r){return[a(t)+\"key \"+e,\"is set to an invalid value (\"+r+\")\"].join(\" \")}},g=h.counterRegex(\"([a-z]+)\")},{\"../lib\":728,\"../plots/plots\":831,\"./plot_schema\":761}],767:[function(t,e,r){\"use strict\";r.defaultConfig=t(\"./plot_api/plot_config\"),r.Plots=t(\"./plots/plots\"),r.Axes=t(\"./plots/cartesian/axes\"),r.ModeBar=t(\"./components/modebar\"),t(\"./plot_api/plot_api\")},{\"./components/modebar\":665,\"./plot_api/plot_api\":759,\"./plot_api/plot_config\":760,\"./plots/cartesian/axes\":772,\"./plots/plots\":831}],768:[function(t,e,r){\"use strict\";e.exports={mode:{valType:\"enumerated\",dflt:\"afterall\",values:[\"immediate\",\"next\",\"afterall\"]},direction:{valType:\"enumerated\",values:[\"forward\",\"reverse\"],dflt:\"forward\"},fromcurrent:{valType:\"boolean\",dflt:!1},frame:{duration:{valType:\"number\",min:0,dflt:500},redraw:{valType:\"boolean\",dflt:!0}},transition:{duration:{valType:\"number\",min:0,dflt:500},easing:{valType:\"enumerated\",dflt:\"cubic-in-out\",values:[\"linear\",\"quad\",\"cubic\",\"sin\",\"exp\",\"circle\",\"elastic\",\"back\",\"bounce\",\"linear-in\",\"quad-in\",\"cubic-in\",\"sin-in\",\"exp-in\",\"circle-in\",\"elastic-in\",\"back-in\",\"bounce-in\",\"linear-out\",\"quad-out\",\"cubic-out\",\"sin-out\",\"exp-out\",\"circle-out\",\"elastic-out\",\"back-out\",\"bounce-out\",\"linear-in-out\",\"quad-in-out\",\"cubic-in-out\",\"sin-in-out\",\"exp-in-out\",\"circle-in-out\",\"elastic-in-out\",\"back-in-out\",\"bounce-in-out\"]}}}},{}],769:[function(t,e,r){\"use strict\";var n=t(\"../lib\");e.exports=function(t,e,r){var i,a=r.name,o=e[a],s=n.isArray(t[a])?t[a]:[],l=e[a]=[];for(i=0;i<s.length;i++){var u=s[i],c={},h={};n.isPlainObject(u)||(h.itemIsNotPlainObject=!0,u={}),r.handleItemDefaults(u,c,e,r,h),c._input=u,c._index=i,l.push(c)}if(n.isArray(o)){var f=Math.min(o.length,l.length);for(i=0;i<f;i++)n.relinkPrivateKeys(l[i],o[i])}}},{\"../lib\":728}],770:[function(t,e,r){\"use strict\";var n=t(\"../components/fx/attributes\");e.exports={type:{valType:\"enumerated\",values:[],dflt:\"scatter\",editType:\"calc+clearAxisTypes\"},visible:{valType:\"enumerated\",values:[!0,!1,\"legendonly\"],dflt:!0,editType:\"calc\"},showlegend:{valType:\"boolean\",dflt:!0,editType:\"style\"},legendgroup:{valType:\"string\",dflt:\"\",editType:\"style\"},opacity:{valType:\"number\",min:0,max:1,dflt:1,editType:\"style\"},name:{valType:\"string\",editType:\"style\"},uid:{valType:\"string\",dflt:\"\",editType:\"calc\"},ids:{valType:\"data_array\",editType:\"calc\"},customdata:{valType:\"data_array\",editType:\"calc\"},hoverinfo:{valType:\"flaglist\",flags:[\"x\",\"y\",\"z\",\"text\",\"name\"],extras:[\"all\",\"none\",\"skip\"],arrayOk:!0,dflt:\"all\",editType:\"none\"},hoverlabel:n.hoverlabel,stream:{token:{valType:\"string\",noBlank:!0,strict:!0,editType:\"calc\"},maxpoints:{valType:\"number\",min:0,max:1e4,dflt:500,editType:\"calc\"},editType:\"calc\"}}},{\"../components/fx/attributes\":637}],771:[function(t,e,r){\"use strict\";e.exports={xaxis:{valType:\"subplotid\",dflt:\"x\",editType:\"calc+clearAxisTypes\"},yaxis:{valType:\"subplotid\",dflt:\"y\",editType:\"calc+clearAxisTypes\"}}},{}],772:[function(t,e,r){\"use strict\";function n(t){return+t}function i(t){return String(t)}function a(t,e,r,n,i){function a(e){return(1+100*(e-t)/r.dtick)%100<2}for(var o=0,s=0,l=0,u=0,c=0;c<e.length;c++)e[c]%1==0?l++:M(e[c])||u++,a(e[c])&&o++,a(e[c]+r.dtick/2)&&s++;var h=e.length-u;if(l===h&&\"date\"!==r.type)r.dtick<1?t=n-.5*r.dtick:(t-=.5)+r.dtick<n&&(t+=r.dtick);else if(s<.1*h&&(o>.3*h||a(n)||a(i))){var f=r.dtick/2;t+=t+f<n?f:-f}return t}function o(t,e,r,n,i){var a=A.findExactDates(e,i);if(a.exactDays>.8){var o=Number(r.substr(1));a.exactYears>.8&&o%12==0?t=B.tickIncrement(t,\"M6\",\"reverse\")+1.5*P:a.exactMonths>.8?t=B.tickIncrement(t,\"M1\",\"reverse\")+15.5*P:t-=P/2;var s=B.tickIncrement(t,r);if(s<=n)return s}return t}function s(t){var e,r,n=t.tickvals,i=t.ticktext,a=new Array(n.length),o=A.simpleMap(t.range,t.r2l),s=1.0001*o[0]-1e-4*o[1],l=1.0001*o[1]-1e-4*o[0],u=Math.min(s,l),h=Math.max(s,l),f=0;Array.isArray(i)||(i=[]);var d=\"category\"===t.type?t.d2l_noadd:t.d2l;for(\"log\"===t.type&&\"L\"!==String(t.dtick).charAt(0)&&(t.dtick=\"L\"+Math.pow(10,Math.floor(Math.min(t.range[0],t.range[1]))-1)),r=0;r<n.length;r++)(e=d(n[r]))>u&&e<h&&(void 0===i[r]?a[f]=B.tickText(t,e):a[f]=c(t,e,String(i[r])),f++);return f<n.length&&a.splice(f,n.length-f),a}function l(t,e,r){return e*A.roundUp(t/e,r)}function u(t){var e=t.dtick;if(t._tickexponent=0,M(e)||\"string\"==typeof e||(e=1),\"category\"===t.type&&(t._tickround=null),\"date\"===t.type){var r=t.r2l(t.tick0),n=t.l2r(r).replace(/(^-|i)/g,\"\"),i=n.length;if(\"M\"===String(e).charAt(0))i>10||\"01-01\"!==n.substr(5)?t._tickround=\"d\":t._tickround=+e.substr(1)%12==0?\"y\":\"m\";else if(e>=P&&i<=10||e>=15*P)t._tickround=\"d\";else if(e>=R&&i<=16||e>=O)t._tickround=\"M\";else if(e>=F&&i<=19||e>=R)t._tickround=\"S\";else{var a=t.l2r(r+e).replace(/^-/,\"\").length;t._tickround=Math.max(i,a)-20}}else if(M(e)||\"L\"===e.charAt(0)){var o=t.range.map(t.r2d||Number);M(e)||(e=Number(e.substr(1))),t._tickround=2-Math.floor(Math.log(e)/Math.LN10+.01);var s=Math.max(Math.abs(o[0]),Math.abs(o[1])),l=Math.floor(Math.log(s)/Math.LN10+.01);Math.abs(l)>3&&(m(t.exponentformat)&&!v(l)?t._tickexponent=3*Math.round((l-1)/3):t._tickexponent=l)}else t._tickround=null}function c(t,e,r){var n=t.tickfont||{};return{x:e,dx:0,dy:0,text:r||\"\",fontSize:n.size,font:n.family,fontColor:n.color}}function h(t,e,r,n){var i=t._tickround,a=r&&t.hoverformat||t.tickformat;n&&(i=M(i)?4:{y:\"m\",m:\"d\",d:\"M\",M:\"S\",S:4}[i]);var o,s=A.formatDate(e.x,a,i,t.calendar),l=s.indexOf(\"\\n\");-1!==l&&(o=s.substr(l+1),s=s.substr(0,l)),n&&(\"00:00:00\"===s||\"00:00\"===s?(s=o,o=\"\"):8===s.length&&(s=s.replace(/:00$/,\"\"))),o&&(r?\"d\"===i?s+=\", \"+o:s=o+(s?\", \"+s:\"\"):t._inCalcTicks&&o===t._prevDateHead||(s+=\"<br>\"+o,t._prevDateHead=o)),e.text=s}function f(t,e,r,n,i){var a=t.dtick,o=e.x;if(\"never\"===i&&(i=\"\"),!n||\"string\"==typeof a&&\"L\"===a.charAt(0)||(a=\"L3\"),t.tickformat||\"string\"==typeof a&&\"L\"===a.charAt(0))e.text=g(Math.pow(10,o),t,i,n);else if(M(a)||\"D\"===a.charAt(0)&&A.mod(o+.01,1)<.1){var s=Math.round(o);-1!==[\"e\",\"E\",\"power\"].indexOf(t.exponentformat)||m(t.exponentformat)&&v(s)?(e.text=0===s?1:1===s?\"10\":s>1?\"10<sup>\"+s+\"</sup>\":\"10<sup>\"+j+-s+\"</sup>\",e.fontSize*=1.25):(e.text=g(Math.pow(10,o),t,\"\",\"fakehover\"),\"D1\"===a&&\"y\"===t._id.charAt(0)&&(e.dy-=e.fontSize/6))}else{if(\"D\"!==a.charAt(0))throw\"unrecognized dtick \"+String(a);e.text=String(Math.round(Math.pow(10,A.mod(o,1)))),e.fontSize*=.75}if(\"D1\"===t.dtick){var l=String(e.text).charAt(0);\"0\"!==l&&\"1\"!==l||(\"y\"===t._id.charAt(0)?e.dx-=e.fontSize/4:(e.dy+=e.fontSize/2,e.dx+=(t.range[1]>t.range[0]?1:-1)*e.fontSize*(o<0?.5:.25)))}}function d(t,e){var r=t._categories[Math.round(e.x)];void 0===r&&(r=\"\"),e.text=String(r)}function p(t,e,r,n,i){\"never\"===i?i=\"\":\"all\"===t.showexponent&&Math.abs(e.x/t.dtick)<1e-6&&(i=\"hide\"),e.text=g(e.x,t,i,n)}function m(t){return\"SI\"===t||\"B\"===t}function v(t){return t>14||t<-15}function g(t,e,r,n){var i=t<0,a=e._tickround,o=r||e.exponentformat||\"B\",s=e._tickexponent,l=e.tickformat,c=e.separatethousands;if(n){var h={exponentformat:e.exponentformat,dtick:\"none\"===e.showexponent?e.dtick:M(t)?Math.abs(t)||1:1,range:\"none\"===e.showexponent?e.range.map(e.r2d):[0,t||1]};u(h),a=(Number(h._tickround)||0)+4,s=h._tickexponent,e.hoverformat&&(l=e.hoverformat)}if(l)return w.format(l)(t).replace(/-/g,j);var f=Math.pow(10,-a)/2;if(\"none\"===o&&(s=0),(t=Math.abs(t))<f)t=\"0\",i=!1;else{if(t+=f,s&&(t*=Math.pow(10,-s),a+=s),0===a)t=String(Math.floor(t));else if(a<0){t=String(Math.round(t)),t=t.substr(0,t.length+a);for(var d=a;d<0;d++)t+=\"0\"}else{t=String(t);var p=t.indexOf(\".\")+1;p&&(t=t.substr(0,p+a).replace(/\\.?0+$/,\"\"))}t=A.numSeparate(t,e._separators,c)}if(s&&\"hide\"!==o){m(o)&&v(s)&&(o=\"power\");var g;g=s<0?j+-s:\"power\"!==o?\"+\"+s:String(s),\"e\"===o?t+=\"e\"+g:\"E\"===o?t+=\"E\"+g:\"power\"===o?t+=\"\\xd710<sup>\"+g+\"</sup>\":\"B\"===o&&9===s?t+=\"B\":m(o)&&(t+=J[s/3+5])}return i?j+t:t}function y(t,e){var r,n,i=[];for(r=0;r<e.length;r++){var a=[],o=t._fullData[e[r]].xaxis,s=t._fullData[e[r]].yaxis;if(o&&s){for(n=0;n<i.length;n++)-1===i[n].x.indexOf(o)&&-1===i[n].y.indexOf(s)||a.push(n);if(a.length){var l,u=i[a[0]];if(a.length>1)for(n=1;n<a.length;n++)l=i[a[n]],b(u.x,l.x),b(u.y,l.y);b(u.x,[o]),b(u.y,[s])}else i.push({x:[o],y:[s]})}}return i}function b(t,e){for(var r=0;r<e.length;r++)-1===t.indexOf(e[r])&&t.push(e[r])}function x(t,e,r){var n,i,a=[],o=[],s=t.layout;for(n=0;n<e.length;n++)a.push(B.getFromId(t,e[n]));for(n=0;n<r.length;n++)o.push(B.getFromId(t,r[n]));var l=Object.keys(a[0]),u=[\"anchor\",\"domain\",\"overlaying\",\"position\",\"side\",\"tickangle\"],c=[\"linear\",\"log\"];for(n=0;n<l.length;n++){var h=l[n],f=a[0][h],d=o[0][h],p=!0,m=!1,v=!1;if(\"_\"!==h.charAt(0)&&\"function\"!=typeof f&&-1===u.indexOf(h)){for(i=1;i<a.length&&p;i++){var g=a[i][h];\"type\"===h&&-1!==c.indexOf(f)&&-1!==c.indexOf(g)&&f!==g?m=!0:g!==f&&(p=!1)}for(i=1;i<o.length&&p;i++){var y=o[i][h];\"type\"===h&&-1!==c.indexOf(d)&&-1!==c.indexOf(y)&&d!==y?v=!0:o[i][h]!==d&&(p=!1)}p&&(m&&(s[a[0]._name].type=\"linear\"),v&&(s[o[0]._name].type=\"linear\"),_(s,h,a,o))}}for(n=0;n<t._fullLayout.annotations.length;n++){var b=t._fullLayout.annotations[n];-1!==e.indexOf(b.xref)&&-1!==r.indexOf(b.yref)&&A.swapAttrs(s.annotations[n],[\"?\"])}}function _(t,e,r,n){var i,a=A.nestedProperty,o=a(t[r[0]._name],e).get(),s=a(t[n[0]._name],e).get();for(\"title\"===e&&(\"Click to enter X axis title\"===o&&(o=\"Click to enter Y axis title\"),\"Click to enter Y axis title\"===s&&(s=\"Click to enter X axis title\")),i=0;i<r.length;i++)a(t,r[i]._name+\".\"+e).set(s);for(i=0;i<n.length;i++)a(t,n[i]._name+\".\"+e).set(o)}var w=t(\"d3\"),M=t(\"fast-isnumeric\"),k=t(\"../../registry\"),A=t(\"../../lib\"),T=t(\"../../lib/svg_text_utils\"),S=t(\"../../components/titles\"),E=t(\"../../components/color\"),L=t(\"../../components/drawing\"),C=t(\"../../constants/numerical\"),I=C.FP_SAFE,z=C.ONEAVGYEAR,D=C.ONEAVGMONTH,P=C.ONEDAY,O=C.ONEHOUR,R=C.ONEMIN,F=C.ONESEC,j=C.MINUS_SIGN,N=t(\"../../constants/alignment\").MID_SHIFT,B=e.exports={};B.layoutAttributes=t(\"./layout_attributes\"),B.supplyLayoutDefaults=t(\"./layout_defaults\"),B.setConvert=t(\"./set_convert\");var U=t(\"./axis_autotype\"),V=t(\"./axis_ids\");B.id2name=V.id2name,B.cleanId=V.cleanId,B.list=V.list,B.listIds=V.listIds,B.getFromId=V.getFromId,B.getFromTrace=V.getFromTrace,B.coerceRef=function(t,e,r,n,i,a){var o=n.charAt(n.length-1),s=B.listIds(r,o),l=n+\"ref\",u={};return i||(i=s[0]||a),a||(a=i),u[l]={valType:\"enumerated\",values:s.concat(a?[a]:[]),dflt:i},A.coerce(t,e,u,l)},B.coercePosition=function(t,e,r,n,i,a){var o,s;if(\"paper\"===n||\"pixel\"===n)o=A.ensureNumber,s=r(i,a);else{var l=B.getFromId(e,n);a=l.fraction2r(a),s=r(i,a),o=l.cleanPos}t[i]=o(s)},B.cleanPosition=function(t,e,r){return(\"paper\"===r||\"pixel\"===r?A.ensureNumber:B.getFromId(e,r).cleanPos)(t)};var H=B.getDataConversions=function(t,e,r,a){var o,s=\"x\"===r||\"y\"===r||\"z\"===r?r:a;if(Array.isArray(s)){if(o={type:U(a),_categories:[]},B.setConvert(o),\"category\"===o.type)for(var l=0;l<a.length;l++)o.d2c(a[l])}else o=B.getFromTrace(t,e,s);return o?{d2c:o.d2c,c2d:o.c2d}:\"ids\"===s?{d2c:i,c2d:i}:{d2c:n,c2d:n}};B.getDataToCoordFunc=function(t,e,r,n){return H(t,e,r,n).d2c},B.counterLetter=function(t){var e=t.charAt(0);return\"x\"===e?\"y\":\"y\"===e?\"x\":void 0},B.minDtick=function(t,e,r,n){-1===[\"log\",\"category\"].indexOf(t.type)&&n?void 0===t._minDtick?(t._minDtick=e,t._forceTick0=r):t._minDtick&&((t._minDtick/e+1e-6)%1<2e-6&&((r-t._forceTick0)/e%1+1.000001)%1<2e-6?(t._minDtick=e,t._forceTick0=r):((e/t._minDtick+1e-6)%1>2e-6||((r-t._forceTick0)/t._minDtick%1+1.000001)%1>2e-6)&&(t._minDtick=0)):t._minDtick=0},B.getAutoRange=function(t){var e,r=[],n=t._min[0].val,i=t._max[0].val;for(e=1;e<t._min.length&&n===i;e++)n=Math.min(n,t._min[e].val);for(e=1;e<t._max.length&&n===i;e++)i=Math.max(i,t._max[e].val);var a,o,s,l,u,c,h,f=0,d=!1;if(t.range){var p=A.simpleMap(t.range,t.r2l);d=p[1]<p[0]}for(\"reversed\"===t.autorange&&(d=!0,t.autorange=!0),e=0;e<t._min.length;e++)for(o=t._min[e],a=0;a<t._max.length;a++)s=t._max[a],h=s.val-o.val,c=t._length-o.pad-s.pad,h>0&&c>0&&h/c>f&&(l=o,u=s,f=h/c);if(n===i){var m=n-1,v=n+1;r=\"tozero\"===t.rangemode?n<0?[m,0]:[0,v]:\"nonnegative\"===t.rangemode?[Math.max(0,m),Math.max(0,v)]:[m,v]}else f&&(\"linear\"!==t.type&&\"-\"!==t.type||(\"tozero\"===t.rangemode?(l.val>=0&&(l={val:0,pad:0}),u.val<=0&&(u={val:0,pad:0})):\"nonnegative\"===t.rangemode&&(l.val-f*l.pad<0&&(l={val:0,pad:0}),u.val<0&&(u={val:1,pad:0})),f=(u.val-l.val)/(t._length-l.pad-u.pad)),r=[l.val-f*l.pad,u.val+f*u.pad]);return r[0]===r[1]&&(\"tozero\"===t.rangemode?r=r[0]<0?[r[0],0]:r[0]>0?[0,r[0]]:[0,1]:(r=[r[0]-1,r[0]+1],\"nonnegative\"===t.rangemode&&(r[0]=Math.max(0,r[0])))),d&&r.reverse(),A.simpleMap(r,t.l2r||Number)},B.doAutoRange=function(t){t._length||t.setScale();var e=t._min&&t._max&&t._min.length&&t._max.length;if(t.autorange&&e){t.range=B.getAutoRange(t),t._r=t.range.slice(),t._rl=A.simpleMap(t._r,t.r2l);var r=t._input;r.range=t.range.slice(),r.autorange=t.autorange}},B.saveRangeInitial=function(t,e){for(var r=B.list(t,\"\",!0),n=!1,i=0;i<r.length;i++){var a=r[i],o=void 0===a._rangeInitial,s=o||!(a.range[0]===a._rangeInitial[0]&&a.range[1]===a._rangeInitial[1]);(o&&!1===a.autorange||e&&s)&&(a._rangeInitial=a.range.slice(),n=!0)}return n},B.saveShowSpikeInitial=function(t,e){for(var r=B.list(t,\"\",!0),n=!1,i=\"on\",a=0;a<r.length;a++){var o=r[a],s=void 0===o._showSpikeInitial,l=s||!(o.showspikes===o._showspikes);(s||e&&l)&&(o._showSpikeInitial=o.showspikes,n=!0),\"on\"!==i||o.showspikes||(i=\"off\")}return t._fullLayout._cartesianSpikesEnabled=i,n},B.expand=function(t,e,r){function n(t){if(Array.isArray(t))return function(e){return Math.max(Number(t[e]||0),0)};var e=Math.max(Number(t||0),0);return function(){return e}}function i(r){function n(t){return M(t)&&Math.abs(t)<I}if(l=e[r],M(l)){if(h=b(r)+g,f=x(r)+g,p=l-w(r),m=l+_(r),\"log\"===t.type&&p<m/10&&(p=m/10),u=t.c2l(p),c=t.c2l(m),y&&(u=Math.min(0,u),c=Math.max(0,c)),n(u)){for(d=!0,o=0;o<t._min.length&&d;o++)s=t._min[o],s.val<=u&&s.pad>=f?d=!1:s.val>=u&&s.pad<=f&&(t._min.splice(o,1),o--);d&&t._min.push({val:u,pad:y&&0===u?0:f})}if(n(c)){for(d=!0,o=0;o<t._max.length&&d;o++)s=t._max[o],s.val>=c&&s.pad>=h?d=!1:s.val<=c&&s.pad<=h&&(t._max.splice(o,1),o--);d&&t._max.push({val:c,pad:y&&0===c?0:h})}}}if((t.autorange||!!A.nestedProperty(t,\"rangeslider.autorange\").get())&&e){t._min||(t._min=[]),t._max||(t._max=[]),r||(r={}),t._m||t.setScale();var a,o,s,l,u,c,h,f,d,p,m,v=e.length,g=r.padded?.05*t._length:0,y=r.tozero&&(\"linear\"===t.type||\"-\"===t.type);g&&\"domain\"===t.constrain&&t._inputDomain&&(g*=(t._inputDomain[1]-t._inputDomain[0])/(t.domain[1]-t.domain[0]));var b=n((t._m>0?r.ppadplus:r.ppadminus)||r.ppad||0),x=n((t._m>0?r.ppadminus:r.ppadplus)||r.ppad||0),_=n(r.vpadplus||r.vpad),w=n(r.vpadminus||r.vpad);for(a=0;a<6;a++)i(a);for(a=v-1;a>5;a--)i(a)}},B.autoBin=function(t,e,r,n,i){var s=A.aggNums(Math.min,null,t),l=A.aggNums(Math.max,null,t);if(i||(i=e.calendar),\"category\"===e.type)return{start:s-.5,end:l+.5,size:1,_count:l-s+1};var u;if(r)u=(l-s)/r;else{var c=A.distinctVals(t),h=Math.pow(10,Math.floor(Math.log(c.minDiff)/Math.LN10)),f=h*A.roundUp(c.minDiff/h,[.9,1.9,4.9,9.9],!0);u=Math.max(f,2*A.stdev(t)/Math.pow(t.length,n?.25:.4)),M(u)||(u=1)}var d;d=\"log\"===e.type?{type:\"linear\",range:[s,l]}:{type:e.type,range:A.simpleMap([s,l],e.c2r,0,i),calendar:i},B.setConvert(d),B.autoTicks(d,u);var p,m,v=B.tickIncrement(B.tickFirst(d),d.dtick,\"reverse\",i);if(\"number\"==typeof d.dtick)v=a(v,t,d,s,l),m=1+Math.floor((l-v)/d.dtick),p=v+m*d.dtick;else for(\"M\"===d.dtick.charAt(0)&&(v=o(v,t,d.dtick,s,i)),p=v,m=0;p<=l;)p=B.tickIncrement(p,d.dtick,!1,i),m++;return{start:e.c2r(v,0,i),end:e.c2r(p,0,i),size:d.dtick,_count:m}},B.calcTicks=function(t){var e=A.simpleMap(t.range,t.r2l);if(\"auto\"===t.tickmode||!t.dtick){var r,n=t.nticks;n||(\"category\"===t.type?(r=t.tickfont?1.2*(t.tickfont.size||12):15,n=t._length/r):(r=\"y\"===t._id.charAt(0)?40:80,n=A.constrain(t._length/r,4,9)+1)),\"array\"===t.tickmode&&(n*=100),B.autoTicks(t,Math.abs(e[1]-e[0])/n),t._minDtick>0&&t.dtick<2*t._minDtick&&(t.dtick=t._minDtick,t.tick0=t.l2r(t._forceTick0))}if(t.tick0||(t.tick0=\"date\"===t.type?\"2000-01-01\":0),u(t),\"array\"===t.tickmode)return s(t);t._tmin=B.tickFirst(t);var i=e[1]<e[0],a=[],o=1.0001*e[1]-1e-4*e[0];\"category\"===t.type&&(o=i?Math.max(-.5,o):Math.min(t._categories.length-.5,o));for(var l=null,c=Math.max(1e3,t._length||0),h=t._tmin;(i?h>=o:h<=o)&&!(a.length>c||h===l);h=B.tickIncrement(h,t.dtick,i,t.calendar))l=h,a.push(h);t._tmax=a[a.length-1],t._prevDateHead=\"\",t._inCalcTicks=!0;for(var f=new Array(a.length),d=0;d<a.length;d++)f[d]=B.tickText(t,a[d]);return t._inCalcTicks=!1,f};var q=[2,5,10],G=[1,2,3,6,12],Y=[1,2,5,10,15,30],W=[1,2,3,7,14],X=[-.046,0,.301,.477,.602,.699,.778,.845,.903,.954,1],Z=[-.301,0,.301,.699,1];B.autoTicks=function(t,e){var r;if(\"date\"===t.type){t.tick0=A.dateTick0(t.calendar);var n=2*e;n>z?(e/=z,r=Math.pow(10,Math.floor(Math.log(e)/Math.LN10)),t.dtick=\"M\"+12*l(e,r,q)):n>D?(e/=D,t.dtick=\"M\"+l(e,1,G)):n>P?(t.dtick=l(e,P,W),t.tick0=A.dateTick0(t.calendar,!0)):n>O?t.dtick=l(e,O,G):n>R?t.dtick=l(e,R,Y):n>F?t.dtick=l(e,F,Y):(r=Math.pow(10,Math.floor(Math.log(e)/Math.LN10)),t.dtick=l(e,r,q))}else if(\"log\"===t.type){t.tick0=0;var i=A.simpleMap(t.range,t.r2l);if(e>.7)t.dtick=Math.ceil(e);else if(Math.abs(i[1]-i[0])<1){var a=1.5*Math.abs((i[1]-i[0])/e);e=Math.abs(Math.pow(10,i[1])-Math.pow(10,i[0]))/a,r=Math.pow(10,Math.floor(Math.log(e)/Math.LN10)),t.dtick=\"L\"+l(e,r,q)}else t.dtick=e>.3?\"D2\":\"D1\"}else\"category\"===t.type?(t.tick0=0,t.dtick=Math.ceil(Math.max(e,1))):(t.tick0=0,r=Math.pow(10,Math.floor(Math.log(e)/Math.LN10)),t.dtick=l(e,r,q));if(0===t.dtick&&(t.dtick=1),!M(t.dtick)&&\"string\"!=typeof t.dtick){var o=t.dtick;throw t.dtick=1,\"ax.dtick error: \"+String(o)}},B.tickIncrement=function(t,e,r,n){var i=r?-1:1;if(M(e))return t+i*e;var a=e.charAt(0),o=i*Number(e.substr(1));if(\"M\"===a)return A.incrementMonth(t,o,n);if(\"L\"===a)return Math.log(Math.pow(10,t)+o)/Math.LN10;if(\"D\"===a){var s=\"D2\"===e?Z:X,l=t+.01*i,u=A.roundUp(A.mod(l,1),s,r);return Math.floor(l)+Math.log(w.round(Math.pow(10,u),1))/Math.LN10}throw\"unrecognized dtick \"+String(e)},B.tickFirst=function(t){var e=t.r2l||Number,r=A.simpleMap(t.range,e),n=r[1]<r[0],i=n?Math.floor:Math.ceil,a=1.0001*r[0]-1e-4*r[1],o=t.dtick,s=e(t.tick0);if(M(o)){var l=i((a-s)/o)*o+s;return\"category\"===t.type&&(l=A.constrain(l,0,t._categories.length-1)),l}var u=o.charAt(0),c=Number(o.substr(1));if(\"M\"===u){for(var h,f,d,p=0,m=s;p<10;){if(((h=B.tickIncrement(m,o,n,t.calendar))-a)*(m-a)<=0)return n?Math.min(m,h):Math.max(m,h);f=(a-(m+h)/2)/(h-m),d=u+(Math.abs(Math.round(f))||1)*c,m=B.tickIncrement(m,d,f<0?!n:n,t.calendar),p++}return A.error(\"tickFirst did not converge\",t),m}if(\"L\"===u)return Math.log(i((Math.pow(10,a)-s)/c)*c+s)/Math.LN10;if(\"D\"===u){var v=\"D2\"===o?Z:X,g=A.roundUp(A.mod(a,1),v,n);return Math.floor(a)+Math.log(w.round(Math.pow(10,g),1))/Math.LN10}throw\"unrecognized dtick \"+String(o)},B.tickText=function(t,e,r){function n(n){var i;return void 0===n||(r?\"none\"===n:(i={first:t._tmin,last:t._tmax}[n],\"all\"!==n&&e!==i))}var i,a,o=c(t,e),s=\"array\"===t.tickmode,l=r||s,u=\"category\"===t.type?t.d2l_noadd:t.d2l;if(s&&Array.isArray(t.ticktext)){var m=A.simpleMap(t.range,t.r2l),v=Math.abs(m[1]-m[0])/1e4;for(a=0;a<t.ticktext.length&&!(Math.abs(e-u(t.tickvals[a]))<v);a++);if(a<t.ticktext.length)return o.text=String(t.ticktext[a]),o}return i=r?\"never\":\"none\"!==t.exponentformat&&n(t.showexponent)?\"hide\":\"\",\"date\"===t.type?h(t,o,r,l):\"log\"===t.type?f(t,o,r,l,i):\"category\"===t.type?d(t,o):p(t,o,r,l,i),t.tickprefix&&!n(t.showtickprefix)&&(o.text=t.tickprefix+o.text),t.ticksuffix&&!n(t.showticksuffix)&&(o.text+=t.ticksuffix),o};var J=[\"f\",\"p\",\"n\",\"\\u03bc\",\"m\",\"\",\"k\",\"M\",\"G\",\"T\"];B.subplotMatch=/^x([0-9]*)y([0-9]*)$/,B.getSubplots=function(t,e){var r,n,i,a=[],o=t._fullData||t.data||[];for(r=0;r<o.length;r++){var s=o[r];if(!1!==s.visible&&\"legendonly\"!==s.visible&&(k.traceIs(s,\"cartesian\")||k.traceIs(s,\"gl2d\"))){i=(s.xaxis||\"x\")+(s.yaxis||\"y\"),-1===a.indexOf(i)&&a.push(i)}}var l=B.list(t,\"\",!0);for(r=0;r<l.length;r++){var u=l[r],c=u._id.charAt(0),h=\"free\"===u.anchor?\"x\"===c?\"y\":\"x\":u.anchor,f=B.getFromId(t,h),d=!1;for(n=0;n<a.length;n++)if(function(t,e){return-1!==t.indexOf(e._id)}(a[n],u)){d=!0;break}\"free\"===u.anchor&&d||f&&(i=\"x\"===c?u._id+f._id:f._id+u._id,-1===a.indexOf(i)&&a.push(i))}var p=B.subplotMatch,m=[];for(r=0;r<a.length;r++)i=a[r],p.test(i)&&m.push(i);return m.sort(function(t,e){var r=t.match(p),n=e.match(p);return r[1]===n[1]?+(r[2]||1)-(n[2]||1):+(r[1]||0)-(n[1]||0)}),e?B.findSubplotsWithAxis(m,e):m},B.findSubplotsWithAxis=function(t,e){for(var r=new RegExp(\"x\"===e._id.charAt(0)?\"^\"+e._id+\"y\":e._id+\"$\"),n=[],i=0;i<t.length;i++){var a=t[i];r.test(a)&&n.push(a)}return n},B.makeClipPaths=function(t){var e,r,n=t._fullLayout,i={_offset:0,_length:n.width,_id:\"\"},a={_offset:0,_length:n.height,_id:\"\"},o=B.list(t,\"x\",!0),s=B.list(t,\"y\",!0),l=[];for(e=0;e<o.length;e++)for(l.push({x:o[e],y:a}),r=0;r<s.length;r++)0===e&&l.push({x:i,y:s[r]}),l.push({x:o[e],y:s[r]});var u=n._clips.selectAll(\".axesclip\").data(l,function(t){return t.x._id+t.y._id});u.enter().append(\"clipPath\").classed(\"axesclip\",!0).attr(\"id\",function(t){return\"clip\"+n._uid+t.x._id+t.y._id}).append(\"rect\"),u.exit().remove(),u.each(function(t){w.select(this).select(\"rect\").attr({x:t.x._offset||0,y:t.y._offset||0,width:t.x._length||1,height:t.y._length||1})})},B.doTicks=function(t,e,r){function n(t){var e=u.l2p(t.x);return e>1&&e<u._length-1}function i(t,e){var r=t.selectAll(\"path.\"+_).data(\"inside\"===u.ticks?q:b,x);e&&u.ticks?(r.enter().append(\"path\").classed(_,1).classed(\"ticks\",1).classed(\"crisp\",1).call(E.stroke,u.tickcolor).style(\"stroke-width\",F+\"px\").attr(\"d\",e),r.attr(\"transform\",d),r.exit().remove()):r.remove()}function a(r,n){function i(t,e){t.each(function(t){var r=y(e),n=w.select(this),i=n.select(\".text-math-group\"),a=d(t)+(M(e)&&0!=+e?\" rotate(\"+e+\",\"+f(t)+\",\"+(p(t)-t.fontSize/2)+\")\":\"\");if(i.empty())n.select(\"text\").attr({transform:a,\"text-anchor\":r});else{var o=L.bBox(i.node()).width*{end:-.5,start:.5}[r];i.attr(\"transform\",a+(o?\"translate(\"+o+\",0)\":\"\"))}})}function a(){return I.length&&Promise.all(I)}function s(){if(i(h,u.tickangle),\"x\"===g&&!M(u.tickangle)&&(\"log\"!==u.type||\"D\"!==String(u.dtick).charAt(0))){var t=[];for(h.each(function(e){var r=w.select(this),n=r.select(\".text-math-group\"),i=u.l2p(e.x);n.empty()&&(n=r.select(\"text\"));var a=L.bBox(n.node());t.push({top:0,bottom:10,height:10,left:i-a.width/2,right:i+a.width/2+2,width:a.width+2})}),v=0;v<t.length-1;v++)if(A.bBoxIntersect(t[v],t[v+1])){C=30;break}if(C){Math.abs((b[b.length-1].x-b[0].x)*u._m)/(b.length-1)<2.5*E&&(C=90),i(h,C)}u._lastangle=C}return o(),e+\" done\"}function l(){function e(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.max(t[1],e[1])}if(u.showticklabels){var n=t.getBoundingClientRect(),i=r.node().getBoundingClientRect();u._boundingBox={width:i.width,height:i.height,left:i.left-n.left,right:i.right-n.left,top:i.top-n.top,bottom:i.bottom-n.top}}else{var a,o=c._size;\"x\"===g?(a=\"free\"===u.anchor?o.t+o.h*(1-u.position):o.t+o.h*(1-u._anchorAxis.domain[{bottom:0,top:1}[u.side]]),u._boundingBox={top:a,bottom:a,left:u._offset,rigth:u._offset+u._length,width:u._length,height:0}):(a=\"free\"===u.anchor?o.l+o.w*u.position:o.l+o.w*u._anchorAxis.domain[{left:0,right:1}[u.side]],u._boundingBox={left:a,right:a,bottom:u._offset+u._length,top:u._offset,height:u._length,width:0})}if(m){var s=u._counterSpan=[1/0,-1/0];for(v=0;v<m.length;v++){var l=c._plots[m[v]],h=l[\"x\"===g?\"yaxis\":\"xaxis\"];e(s,[h._offset,h._offset+h._length])}\"free\"===u.anchor&&e(s,\"x\"===g?[u._boundingBox.bottom,u._boundingBox.top]:[u._boundingBox.right,u._boundingBox.left])}}var h=r.selectAll(\"g.\"+_).data(b,x);if(!M(n))return h.remove(),void o();if(!u.showticklabels)return h.remove(),o(),void l();var f,p,y,k,S;\"x\"===g?(S=\"bottom\"===U?1:-1,f=function(t){return t.dx+P*S},k=n+(D+z)*S,p=function(t){return t.dy+k+t.fontSize*(\"bottom\"===U?1:-.2)},y=function(t){return M(t)&&0!==t&&180!==t?t*S<0?\"end\":\"start\":\"middle\"}):(S=\"right\"===U?1:-1,p=function(t){return t.dy+t.fontSize*N-P*S},f=function(t){return t.dx+n+(D+z+(90===Math.abs(u.tickangle)?t.fontSize/2:0))*S},y=function(t){return M(t)&&90===Math.abs(t)?\"middle\":\"right\"===U?\"start\":\"end\"});var E=0,C=0,I=[];h.enter().append(\"g\").classed(_,1).append(\"text\").attr(\"text-anchor\",\"middle\").each(function(e){var r=w.select(this),n=t._promises.length;r.call(T.positionText,f(e),p(e)).call(L.font,e.font,e.fontSize,e.fontColor).text(e.text).call(T.convertToTspans,t),n=t._promises[n],n?I.push(t._promises.pop().then(function(){i(r,u.tickangle)})):i(r,u.tickangle)}),h.exit().remove(),h.each(function(t){E=Math.max(E,t.fontSize)}),i(h,u._lastangle||u.tickangle);var O=A.syncOrAsync([a,s,l]);return O&&O.then&&t._promises.push(O),O}function o(){if(!r){var n,i,a,o,s=V.getFromId(t,e),l=w.select(t).selectAll(\"g.\"+e+\"tick\"),u={selection:l,side:s.side},h=e.charAt(0),f=t._fullLayout._size,d=s.titlefont.size;if(l.size()){var p=L.getTranslate(l.node().parentNode);u.offsetLeft=p.x,u.offsetTop=p.y}var m=10+1.5*d+(s.linewidth?s.linewidth-1:0);\"x\"===h?(i=\"free\"===s.anchor?{_offset:f.t+(1-(s.position||0))*f.h,_length:0}:V.getFromId(t,s.anchor),a=s._offset+s._length/2,o=\"top\"===s.side?-m-d*(s.showticklabels?1:0):i._length+m+d*(s.showticklabels?1.5:.5),o+=i._offset,s.rangeslider&&s.rangeslider.visible&&s._boundingBox&&(o+=(c.height-c.margin.b-c.margin.t)*s.rangeslider.thickness+s._boundingBox.height),u.side||(u.side=\"bottom\")):(i=\"free\"===s.anchor?{_offset:f.l+(s.position||0)*f.w,_length:0}:V.getFromId(t,s.anchor),o=s._offset+s._length/2,a=\"right\"===s.side?i._length+m+d*(s.showticklabels?1:.5):-m-d*(s.showticklabels?.5:0),a+=i._offset,n={rotate:\"-90\",offset:0},u.side||(u.side=\"left\")),S.draw(t,e+\"title\",{propContainer:s,propName:s._name+\".title\",dfltName:h.toUpperCase()+\" axis\",avoid:u,transform:n,attributes:{x:a,y:o,\"text-anchor\":\"middle\"}})}}function s(t,e){return!0===t.visible&&t.xaxis+t.yaxis===e&&(!(!k.traceIs(t,\"bar\")||t.orientation!=={x:\"h\",y:\"v\"}[g])||t.fill&&t.fill.charAt(t.fill.length-1)===g)}function l(e,r,i){var a=e.gridlayer,o=e.zerolinelayer,l=e[\"hidegrid\"+g]?[]:q,c=u._gridpath||\"M0,0\"+(\"x\"===g?\"v\":\"h\")+r._length,h=a.selectAll(\"path.\"+C).data(!1===u.showgrid?[]:l,x);if(h.enter().append(\"path\").classed(C,1).classed(\"crisp\",1).attr(\"d\",c).each(function(t){u.zeroline&&(\"linear\"===u.type||\"-\"===u.type)&&Math.abs(t.x)<u.dtick/100&&w.select(this).remove()}),h.attr(\"transform\",d).call(E.stroke,u.gridcolor||\"#ddd\").style(\"stroke-width\",O+\"px\"),h.exit().remove(),o){for(var f=!1,p=0;p<t._fullData.length;p++)if(s(t._fullData[p],i)){f=!0;break}var m=A.simpleMap(u.range,u.r2l),v=m[0]*m[1]<=0&&u.zeroline&&(\"linear\"===u.type||\"-\"===u.type)&&l.length&&(f||n({x:0})||!u.showline),y=o.selectAll(\"path.\"+I).data(v?[{x:0\n", "}]:[]);y.enter().append(\"path\").classed(I,1).classed(\"zl\",1).classed(\"crisp\",1).attr(\"d\",c),y.attr(\"transform\",d).call(E.stroke,u.zerolinecolor||E.defaultLine).style(\"stroke-width\",R+\"px\"),y.exit().remove()}}var u,c=t._fullLayout,h=!1;if(\"object\"==typeof e)u=e,e=u._id,h=!0;else if(u=B.getFromId(t,e),\"redraw\"===e&&c._paper.selectAll(\"g.subplot\").each(function(t){var e=c._plots[t],r=e.xaxis,n=e.yaxis;e.xaxislayer.selectAll(\".\"+r._id+\"tick\").remove(),e.yaxislayer.selectAll(\".\"+n._id+\"tick\").remove(),e.gridlayer.selectAll(\"path\").remove(),e.zerolinelayer.selectAll(\"path\").remove(),c._infolayer.select(\".g-\"+r._id+\"title\").remove(),c._infolayer.select(\".g-\"+n._id+\"title\").remove()}),!e||\"redraw\"===e)return A.syncOrAsync(B.list(t,\"\",!0).map(function(r){return function(){if(r._id){var n=B.doTicks(t,r._id);return\"redraw\"===e&&(r._r=r.range.slice(),r._rl=A.simpleMap(r._r,r.r2l)),n}}}));u.tickformat||(-1===[\"none\",\"e\",\"E\",\"power\",\"SI\",\"B\"].indexOf(u.exponentformat)&&(u.exponentformat=\"e\"),-1===[\"all\",\"first\",\"last\",\"none\"].indexOf(u.showexponent)&&(u.showexponent=\"all\")),u.setScale();var f,d,p,m,v,g=e.charAt(0),y=B.counterLetter(e),b=B.calcTicks(u),x=function(t){return[t.text,t.x,u.mirror].join(\"_\")},_=e+\"tick\",C=e+\"grid\",I=e+\"zl\",z=(u.linewidth||1)/2,D=\"outside\"===u.ticks?u.ticklen:0,P=0,O=L.crispRound(t,u.gridwidth,1),R=L.crispRound(t,u.zerolinewidth,O),F=L.crispRound(t,u.tickwidth,1);if(u._counterangle&&\"outside\"===u.ticks){var j=u._counterangle*Math.PI/180;D=u.ticklen*Math.cos(j)+1,P=u.ticklen*Math.sin(j)}if(u.showticklabels&&(\"outside\"===u.ticks||u.showline)&&(D+=.2*u.tickfont.size),\"x\"===g)f=[\"bottom\",\"top\"],d=function(t){return\"translate(\"+u.l2p(t.x)+\",0)\"},p=function(t,e){if(u._counterangle){var r=u._counterangle*Math.PI/180;return\"M0,\"+t+\"l\"+Math.sin(r)*e+\",\"+Math.cos(r)*e}return\"M0,\"+t+\"v\"+e};else{if(\"y\"!==g)return void A.warn(\"Unrecognized doTicks axis:\",e);f=[\"left\",\"right\"],d=function(t){return\"translate(0,\"+u.l2p(t.x)+\")\"},p=function(t,e){if(u._counterangle){var r=u._counterangle*Math.PI/180;return\"M\"+t+\",0l\"+Math.cos(r)*e+\",\"+-Math.sin(r)*e}return\"M\"+t+\",0h\"+e}}var U=u.side||f[0],H=[-1,1,U===f[1]?1:-1];if(\"inside\"!==u.ticks==(\"x\"===g)&&(H=H.map(function(t){return-t})),u.visible){var q=b.filter(n);if(h){if(i(u._axislayer,p(u._pos+z*H[2],H[2]*u.ticklen)),u._counteraxis){l({gridlayer:u._gridlayer,zerolinelayer:u._zerolinelayer},u._counteraxis)}return a(u._axislayer,u._pos)}m=B.getSubplots(t,u);var G=m.map(function(t){var e=c._plots[t];if(c._has(\"cartesian\")){var r=e[g+\"axislayer\"],n=u._linepositions[t]||[],o=e[y+\"axis\"],s=o._id===u.anchor,h=[!1,!1,!1],d=\"\";if(\"allticks\"===u.mirror?h=[!0,!0,!1]:s&&(\"ticks\"===u.mirror?h=[!0,!0,!1]:h[f.indexOf(U)]=!0),u.mirrors)for(v=0;v<2;v++){var m=u.mirrors[o._id+f[v]];\"ticks\"!==m&&\"labels\"!==m||(h[v]=!0)}return void 0!==n[2]&&(h[2]=!0),h.forEach(function(t,e){var r=n[e],i=H[e];t&&M(r)&&(d+=p(r+z*i,i*u.ticklen))}),i(r,d),l(e,o,t),a(r,n[3])}}).filter(function(t){return t&&t.then});return G.length?Promise.all(G):0}},B.swap=function(t,e){for(var r=y(t,e),n=0;n<r.length;n++)x(t,r[n].x,r[n].y)}},{\"../../components/color\":604,\"../../components/drawing\":628,\"../../components/titles\":694,\"../../constants/alignment\":701,\"../../constants/numerical\":707,\"../../lib\":728,\"../../lib/svg_text_utils\":750,\"../../registry\":846,\"./axis_autotype\":773,\"./axis_ids\":775,\"./layout_attributes\":783,\"./layout_defaults\":784,\"./set_convert\":789,d3:122,\"fast-isnumeric\":131}],773:[function(t,e,r){\"use strict\";function n(t){if(!t)return!1;for(var e=0;e<t.length;e++)if(o(t[e]))return!0;return!1}function i(t,e){for(var r,n=0,i=0,a=Math.max(1,(t.length-1)/1e3),l=0;l<t.length;l+=a)r=t[Math.round(l)],s.isDateTime(r,e)&&(n+=1),o(r)&&(i+=1);return n>2*i}function a(t){for(var e,r=Math.max(1,(t.length-1)/1e3),n=0,i=0,a=0;a<t.length;a+=r)e=t[Math.round(a)],s.cleanNumber(e)!==l?n++:\"string\"==typeof e&&\"\"!==e&&\"None\"!==e&&i++;return i>2*n}var o=t(\"fast-isnumeric\"),s=t(\"../../lib\"),l=t(\"../../constants/numerical\").BADNUM;e.exports=function(t,e){return i(t,e)?\"date\":a(t)?\"category\":n(t)?\"linear\":\"-\"}},{\"../../constants/numerical\":707,\"../../lib\":728,\"fast-isnumeric\":131}],774:[function(t,e,r){\"use strict\";var n=t(\"tinycolor2\").mix,i=t(\"../../registry\"),a=t(\"../../lib\"),o=t(\"../../components/color/attributes\").lightFraction,s=t(\"./layout_attributes\"),l=t(\"./tick_value_defaults\"),u=t(\"./tick_mark_defaults\"),c=t(\"./tick_label_defaults\"),h=t(\"./category_order_defaults\"),f=t(\"./set_convert\"),d=t(\"./ordered_categories\");e.exports=function(t,e,r,p,m){function v(r,n){return a.coerce2(t,e,s,r,n)}var g=p.letter,y=p.font||{},b=\"Click to enter \"+(p.title||g.toUpperCase()+\" axis\")+\" title\",x=r(\"visible\",!p.cheateronly),_=e.type;if(\"date\"===_){i.getComponentMethod(\"calendars\",\"handleDefaults\")(t,e,\"calendar\",p.calendar)}if(f(e,m),r(\"autorange\",!e.isValidRange(t.range))&&r(\"rangemode\"),r(\"range\"),e.cleanRange(),h(t,e,r),e._initialCategories=\"category\"===_?d(g,e.categoryorder,e.categoryarray,p.data):[],!x)return e;var w=r(\"color\"),M=w===t.color?w:y.color;r(\"title\",b),a.coerceFont(r,\"titlefont\",{family:y.family,size:Math.round(1.2*y.size),color:M}),l(t,e,r,_),c(t,e,r,_,p),u(t,e,r,p);var k=v(\"linecolor\",w),A=v(\"linewidth\"),T=r(\"showline\",!!k||!!A);T||(delete e.linecolor,delete e.linewidth),(T||e.ticks)&&r(\"mirror\");var S=v(\"gridcolor\",n(w,p.bgColor,o).toRgbString()),E=v(\"gridwidth\");r(\"showgrid\",p.showGrid||!!S||!!E)||(delete e.gridcolor,delete e.gridwidth);var L=v(\"zerolinecolor\",w),C=v(\"zerolinewidth\");return r(\"zeroline\",p.showGrid||!!L||!!C)||(delete e.zerolinecolor,delete e.zerolinewidth),e}},{\"../../components/color/attributes\":603,\"../../lib\":728,\"../../registry\":846,\"./category_order_defaults\":776,\"./layout_attributes\":783,\"./ordered_categories\":785,\"./set_convert\":789,\"./tick_label_defaults\":790,\"./tick_mark_defaults\":791,\"./tick_value_defaults\":792,tinycolor2:534}],775:[function(t,e,r){\"use strict\";function n(t,e,r){function n(t,r){for(var n=Object.keys(t),i=/^[xyz]axis[0-9]*/,a=[],o=0;o<n.length;o++){var s=n[o];e&&s.charAt(0)!==e||i.test(s)&&a.push(r+s)}return a.sort()}var i=t._fullLayout;if(!i)return[];var o=n(i,\"\");if(r)return o;for(var s=a.getSubplotIds(i,\"gl3d\")||[],l=0;l<s.length;l++){var u=s[l];o=o.concat(n(i[u],u+\".\"))}return o}var i=t(\"../../registry\"),a=t(\"../plots\"),o=t(\"../../lib\"),s=t(\"./constants\");r.id2name=function(t){if(\"string\"==typeof t&&t.match(s.AX_ID_PATTERN)){var e=t.substr(1);return\"1\"===e&&(e=\"\"),t.charAt(0)+\"axis\"+e}},r.name2id=function(t){if(t.match(s.AX_NAME_PATTERN)){var e=t.substr(5);return\"1\"===e&&(e=\"\"),t.charAt(0)+e}},r.cleanId=function(t,e){if(t.match(s.AX_ID_PATTERN)&&(!e||t.charAt(0)===e)){var r=t.substr(1).replace(/^0+/,\"\");return\"1\"===r&&(r=\"\"),t.charAt(0)+r}},r.list=function(t,e,r){return n(t,e,r).map(function(e){return o.nestedProperty(t._fullLayout,e).get()})},r.listIds=function(t,e){return n(t,e,!0).map(r.name2id)},r.getFromId=function(t,e,n){var i=t._fullLayout;return\"x\"===n?e=e.replace(/y[0-9]*/,\"\"):\"y\"===n&&(e=e.replace(/x[0-9]*/,\"\")),i[r.id2name(e)]},r.getFromTrace=function(t,e,n){var a=t._fullLayout,o=null;if(i.traceIs(e,\"gl3d\")){var s=e.scene;\"scene\"===s.substr(0,5)&&(o=a[s][n+\"axis\"])}else o=r.getFromId(t,e[n+\"axis\"]||n);return o}},{\"../../lib\":728,\"../../registry\":846,\"../plots\":831,\"./constants\":777}],776:[function(t,e,r){\"use strict\";e.exports=function(t,e,r){if(\"category\"===e.type){var n,i=t.categoryarray,a=Array.isArray(i)&&i.length>0;a&&(n=\"array\");var o=r(\"categoryorder\",n);\"array\"===o&&r(\"categoryarray\"),a||\"array\"!==o||(e.categoryorder=\"trace\")}}},{}],777:[function(t,e,r){\"use strict\";var n=t(\"../../lib\").counterRegex;e.exports={idRegex:{x:n(\"x\"),y:n(\"y\")},attrRegex:n(\"[xy]axis\"),xAxisMatch:n(\"xaxis\"),yAxisMatch:n(\"yaxis\"),AX_ID_PATTERN:/^[xyz][0-9]*$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,MINDRAG:8,MINSELECT:12,MINZOOM:20,DRAGGERSIZE:20,BENDPX:1.5,REDRAWDELAY:50,SELECTDELAY:100,SELECTID:\"-select\",DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:[\"imagelayer\",\"maplayer\",\"barlayer\",\"carpetlayer\",\"boxlayer\",\"scatterlayer\"],layerValue2layerClass:{\"above traces\":\"above\",\"below traces\":\"below\"}}},{\"../../lib\":728}],778:[function(t,e,r){\"use strict\";function n(t,e,r,n){var i,a,s,l,u=n[o(e)].type,c=[];for(a=0;a<r.length;a++)(s=r[a])!==e&&(l=n[o(s)],l.type!==u||l.fixedrange||c.push(s));for(i=0;i<t.length;i++)if(t[i][e]){var h=t[i],f=[];for(a=0;a<c.length;a++)s=c[a],h[s]||f.push(s);return{linkableAxes:f,thisGroup:h}}return{linkableAxes:c,thisGroup:null}}function i(t,e,r,n,i){var a,o,s,l,u;null===e?(e={},e[r]=1,u=t.length,t.push(e)):u=t.indexOf(e);var c=Object.keys(e);for(a=0;a<t.length;a++)if(s=t[a],a!==u&&s[n]){var h=s[n];for(o=0;o<c.length;o++)l=c[o],s[l]=h*i*e[l];return void t.splice(u,1)}if(1!==i)for(o=0;o<c.length;o++)e[c[o]]*=i;e[n]=1}var a=t(\"../../lib\"),o=t(\"./axis_ids\").id2name;e.exports=function(t,e,r,o,s){var l=s._axisConstraintGroups,u=e._id,c=u.charAt(0);if(!e.fixedrange&&(r(\"constrain\"),a.coerce(t,e,{constraintoward:{valType:\"enumerated\",values:\"x\"===c?[\"left\",\"center\",\"right\"]:[\"bottom\",\"middle\",\"top\"],dflt:\"x\"===c?\"center\":\"middle\"}},\"constraintoward\"),t.scaleanchor)){var h=n(l,u,o,s),f=a.coerce(t,e,{scaleanchor:{valType:\"enumerated\",values:h.linkableAxes}},\"scaleanchor\");if(f){var d=r(\"scaleratio\");d||(d=e.scaleratio=1),i(l,h.thisGroup,u,f,d)}else-1!==o.indexOf(t.scaleanchor)&&a.warn(\"ignored \"+e._name+'.scaleanchor: \"'+t.scaleanchor+'\" to avoid either an infinite loop and possibly inconsistent scaleratios, or because the targetaxis has fixed range.')}}},{\"../../lib\":728,\"./axis_ids\":775}],779:[function(t,e,r){\"use strict\";function n(t,e){var r=t._inputDomain,n=s[t.constraintoward],i=r[0]+(r[1]-r[0])*n;t.domain=t._input.domain=[i+(r[0]-i)/e,i+(r[1]-i)/e]}var i=t(\"./axis_ids\").id2name,a=t(\"./scale_zoom\"),o=t(\"../../constants/numerical\").ALMOST_EQUAL,s=t(\"../../constants/alignment\").FROM_BL;r.enforce=function(t){var e,r,s,l,u,c,h,f=t._fullLayout,d=f._axisConstraintGroups;for(e=0;e<d.length;e++){var p=d[e],m=Object.keys(p),v=1/0,g=0,y=1/0,b={},x={},_=!1;for(r=0;r<m.length;r++)s=m[r],x[s]=l=f[i(s)],l._inputDomain?l.domain=l._inputDomain.slice():l._inputDomain=l.domain.slice(),l._inputRange||(l._inputRange=l.range.slice()),l.setScale(),b[s]=u=Math.abs(l._m)/p[s],v=Math.min(v,u),\"domain\"!==l.constrain&&l._constraintShrinkable||(y=Math.min(y,u)),delete l._constraintShrinkable,g=Math.max(g,u),\"domain\"===l.constrain&&(_=!0);if(!(v>o*g)||_)for(r=0;r<m.length;r++)if(s=m[r],u=b[s],l=x[s],c=l.constrain,u!==y||\"domain\"===c)if(h=u/y,\"range\"===c)a(l,h);else{var w=l._inputDomain,M=(l.domain[1]-l.domain[0])/(w[1]-w[0]),k=(l.r2l(l.range[1])-l.r2l(l.range[0]))/(l.r2l(l._inputRange[1])-l.r2l(l._inputRange[0]));if((h/=M)*k<1){l.domain=l._input.domain=w.slice(),a(l,h);continue}if(k<1&&(l.range=l._input.range=l._inputRange.slice(),h*=k),l.autorange&&l._min.length&&l._max.length){var A=l.r2l(l.range[0]),T=l.r2l(l.range[1]),S=(A+T)/2,E=S,L=S,C=Math.abs(T-S),I=S-C*h*1.0001,z=S+C*h*1.0001;n(l,h),l.setScale();var D,P,O=Math.abs(l._m);for(P=0;P<l._min.length;P++)(D=l._min[P].val-l._min[P].pad/O)>I&&D<E&&(E=D);for(P=0;P<l._max.length;P++)(D=l._max[P].val+l._max[P].pad/O)<z&&D>L&&(L=D);var R=(L-E)/(2*C);h/=R,E=l.l2r(E),L=l.l2r(L),l.range=l._input.range=A<T?[E,L]:[L,E]}n(l,h)}}},r.clean=function(t,e){if(e._inputDomain){for(var r=!1,n=e._id,i=t._fullLayout._axisConstraintGroups,a=0;a<i.length;a++)if(i[a][n]){r=!0;break}r&&\"domain\"===e.constrain||(e._input.domain=e.domain=e._inputDomain,delete e._inputDomain)}}},{\"../../constants/alignment\":701,\"../../constants/numerical\":707,\"./axis_ids\":775,\"./scale_zoom\":787}],780:[function(t,e,r){\"use strict\";function n(t,e,r,n,i,a,o){var s=t.draglayer.selectAll(\".\"+e).data([0]);return s.enter().append(\"rect\").classed(\"drag\",!0).classed(e,!0).style({fill:\"transparent\",\"stroke-width\":0}).attr(\"data-subplot\",t.id),s.call(S.setRect,n,i,a,o).call(E,r),s.node()}function i(t,e){for(var r=0;r<t.length;r++)if(!t[r].fixedrange)return e;return\"\"}function a(t,e){var r,n=t.range[e],i=Math.abs(n-t.range[1-e]);return\"date\"===t.type?n:\"log\"===t.type?(r=Math.ceil(Math.max(0,-Math.log(i)/Math.LN10))+3,x.format(\".\"+r+\"g\")(Math.pow(10,n))):(r=Math.floor(Math.log(Math.abs(n))/Math.LN10)-Math.floor(Math.log(i)/Math.LN10)+4,x.format(\".\"+String(r)+\"g\")(n))}function o(t,e,r,n,i){var a,s,l,u;for(a=0;a<t.length;a++)s=t[a],s.fixedrange||(l=s._rl[0],u=s._rl[1]-l,s.range=[s.l2r(l+u*e),s.l2r(l+u*r)],n[s._name+\".range[0]\"]=s.range[0],n[s._name+\".range[1]\"]=s.range[1]);if(i&&i.length){var c=(e+(1-r))/2;o(i,c,1-c,n)}}function s(t,e){for(var r=0;r<t.length;r++){var n=t[r];n.fixedrange||(n.range=[n.l2r(n._rl[0]-e/n._m),n.l2r(n._rl[1]-e/n._m)])}}function l(t){return 1-(t>=0?Math.min(t,.9):1/(1/Math.max(t,-.3)+3.222))}function u(t,e){return t?\"nsew\"===t?\"pan\"===e?\"move\":\"crosshair\":t.toLowerCase()+\"-resize\":\"pointer\"}function c(t,e,r,n,i){return t.append(\"path\").attr(\"class\",\"zoombox\").style({fill:e>.2?\"rgba(0,0,0,0)\":\"rgba(255,255,255,0)\",\"stroke-width\":0}).attr(\"transform\",\"translate(\"+r+\", \"+n+\")\").attr(\"d\",i+\"Z\")}function h(t,e,r){return t.append(\"path\").attr(\"class\",\"zoombox-corners\").style({fill:T.background,stroke:T.defaultLine,\"stroke-width\":1,opacity:0}).attr(\"transform\",\"translate(\"+e+\", \"+r+\")\").attr(\"d\",\"M0,0Z\")}function f(t){t.selectAll(\".select-outline\").remove()}function d(t,e,r,n,i,a){t.attr(\"d\",n+\"M\"+r.l+\",\"+r.t+\"v\"+r.h+\"h\"+r.w+\"v-\"+r.h+\"h-\"+r.w+\"Z\"),i||(t.transition().style(\"fill\",a>.2?\"rgba(0,0,0,0.4)\":\"rgba(255,255,255,0.3)\").duration(200),e.transition().style(\"opacity\",1).duration(200))}function p(t){x.select(t).selectAll(\".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners\").remove()}function m(t){return-1!==[\"lasso\",\"select\"].indexOf(t)}function v(t,e){return\"M\"+(t.l-.5)+\",\"+(e-j-.5)+\"h-3v\"+(2*j+1)+\"h3ZM\"+(t.r+.5)+\",\"+(e-j-.5)+\"h3v\"+(2*j+1)+\"h-3Z\"}function g(t,e){return\"M\"+(e-j-.5)+\",\"+(t.t-.5)+\"v-3h\"+(2*j+1)+\"v3ZM\"+(e-j-.5)+\",\"+(t.b+.5)+\"v3h\"+(2*j+1)+\"v-3Z\"}function y(t){var e=Math.floor(Math.min(t.b-t.t,t.r-t.l,j)/2);return\"M\"+(t.l-3.5)+\",\"+(t.t-.5+e)+\"h3v\"+-e+\"h\"+e+\"v-3h-\"+(e+3)+\"ZM\"+(t.r+3.5)+\",\"+(t.t-.5+e)+\"h-3v\"+-e+\"h\"+-e+\"v-3h\"+(e+3)+\"ZM\"+(t.r+3.5)+\",\"+(t.b+.5-e)+\"h-3v\"+e+\"h\"+-e+\"v3h\"+(e+3)+\"ZM\"+(t.l-3.5)+\",\"+(t.b+.5-e)+\"h3v\"+e+\"h\"+e+\"v3h-\"+(e+3)+\"Z\"}function b(t,e,r){var n,i,a,o,s,l,u=!1,c={},h={};for(n=0;n<t.length;n++){for(o=t[n],i=0;i<e.length;i++)if(o[e[i]]){for(s in o)-1===(\"x\"===s.charAt(0)?e:r).indexOf(s)&&(c[s]=1);for(a=0;a<r.length;a++)o[r[a]]&&(u=!0)}for(i=0;i<r.length;i++)if(o[r[i]])for(l in o)-1===(\"x\"===l.charAt(0)?e:r).indexOf(l)&&(h[l]=1)}return u&&(k.extendFlat(c,h),h={}),{x:c,y:h,xy:u}}var x=t(\"d3\"),_=t(\"tinycolor2\"),w=t(\"../../plotly\"),M=t(\"../../registry\"),k=t(\"../../lib\"),A=t(\"../../lib/svg_text_utils\"),T=t(\"../../components/color\"),S=t(\"../../components/drawing\"),E=t(\"../../lib/setcursor\"),L=t(\"../../components/dragelement\"),C=t(\"../../constants/alignment\").FROM_TL,I=t(\"../plots\"),z=t(\"./axes\").doTicks,D=t(\"./axis_ids\").getFromId,P=t(\"./select\"),O=t(\"./scale_zoom\"),R=t(\"./constants\"),F=R.MINDRAG,j=R.MINZOOM,N=!0;e.exports=function(t,e,r,T,E,B,U,V){function H(){et=[e.xaxis],rt=[e.yaxis];var r=et[0],n=rt[0];at=r._length,ot=n._length;var a=dt._axisConstraintGroups,o=[r._id],s=[n._id];tt=[e].concat(U&&V?e.overlays:[]);for(var l=1;l<tt.length;l++){var c=tt[l].xaxis,h=tt[l].yaxis;-1===et.indexOf(c)&&(et.push(c),o.push(c._id)),-1===rt.indexOf(h)&&(rt.push(h),s.push(h._id))}st=i(et,V),lt=i(rt,U),ut=u(lt+st,dt.dragmode),nt=r._offset,it=n._offset;var f=b(a,o,s);ct=f.xy,ht=[];for(var d in f.x)ht.push(D(t,d));ft=[];for(var p in f.y)ft.push(D(t,p))}function q(e,r,n){var i=vt.getBoundingClientRect();yt=r-i.left,bt=n-i.top,xt={l:yt,r:yt,w:0,t:bt,b:bt,h:0},_t=t._hmpixcount?t._hmlumcount/t._hmpixcount:_(t._fullLayout.plot_bgcolor).getLuminance(),wt=\"M0,0H\"+at+\"V\"+ot+\"H0V0\",Mt=!1,kt=\"xy\",At=c(pt,_t,nt,it,wt),Tt=h(pt,nt,it),f(pt)}function G(e,r){function n(){kt=\"\",xt.r=xt.l,xt.t=xt.b,Tt.attr(\"d\",\"M0,0Z\")}if(t._transitioningWithDuration)return!1;var i=Math.max(0,Math.min(at,e+yt)),a=Math.max(0,Math.min(ot,r+bt)),o=Math.abs(i-yt),s=Math.abs(a-bt);xt.l=Math.min(yt,i),xt.r=Math.max(yt,i),xt.t=Math.min(bt,a),xt.b=Math.max(bt,a),ct?o>j||s>j?(kt=\"xy\",o/at>s/ot?(s=o*ot/at,bt>a?xt.t=bt-s:xt.b=bt+s):(o=s*at/ot,yt>i?xt.l=yt-o:xt.r=yt+o),Tt.attr(\"d\",y(xt))):n():!lt||s<Math.min(Math.max(.6*o,F),j)?o<F?n():(xt.t=0,xt.b=ot,kt=\"x\",Tt.attr(\"d\",v(xt,bt))):!st||o<Math.min(.6*s,j)?(xt.l=0,xt.r=at,kt=\"y\",Tt.attr(\"d\",g(xt,yt))):(kt=\"xy\",Tt.attr(\"d\",y(xt))),xt.w=xt.r-xt.l,xt.h=xt.b-xt.t,d(At,Tt,xt,wt,Mt,_t),Mt=!0}function Y(e,r){if(Math.min(xt.h,xt.w)<2*F)return 2===r&&K(),p(t);\"xy\"!==kt&&\"x\"!==kt||o(et,xt.l/at,xt.r/at,St,ht),\"xy\"!==kt&&\"y\"!==kt||o(rt,(ot-xt.b)/ot,(ot-xt.t)/ot,St,ft),p(t),Q(kt),N&&t.data&&t._context.showTips&&(k.notifier(\"Double-click to<br>zoom back out\",\"long\"),N=!1)}function W(e,r){var n=1===(U+V).length;if(e)Q();else if(2!==r||n){if(1===r&&n){var i=U?rt[0]:et[0],o=\"s\"===U||\"w\"===V?0:1,s=i._name+\".range[\"+o+\"]\",l=a(i,o),u=\"left\",c=\"middle\";if(i.fixedrange)return;U?(c=\"n\"===U?\"top\":\"bottom\",\"right\"===i.side&&(u=\"right\")):\"e\"===V&&(u=\"right\"),t._context.showAxisRangeEntryBoxes&&x.select(vt).call(A.makeEditable,{gd:t,immediate:!0,background:dt.paper_bgcolor,text:String(l),fill:i.tickfont?i.tickfont.color:\"#444\",horizontalAlign:u,verticalAlign:c}).on(\"edit\",function(e){var r=i.d2r(e);void 0!==r&&w.relayout(t,s,r)})}}else K()}function X(e){function r(t,e,r){function n(e){return t.l2r(a+(e-a)*r)}if(!t.fixedrange){var i=k.simpleMap(t.range,t.r2l),a=i[0]+(i[1]-i[0])*e;t.range=i.map(n)}}if(t._context.scrollZoom||dt._enablescrollzoom){if(t._transitioningWithDuration)return k.pauseEvent(e);var n=t.querySelector(\".plotly\");if(H(),!(n.scrollHeight-n.clientHeight>10||n.scrollWidth-n.clientWidth>10)){clearTimeout(Lt);var i=-e.deltaY;if(isFinite(i)||(i=e.wheelDelta/10),!isFinite(i))return void k.log(\"Did not find wheel motion attributes: \",e);var a,o=Math.exp(-Math.min(Math.max(i,-20),20)/200),s=It.draglayer.select(\".nsewdrag\").node().getBoundingClientRect(),l=(e.clientX-s.left)/s.width,u=(s.bottom-e.clientY)/s.height;if(V||ct){for(V||(l=.5),a=0;a<et.length;a++)r(et[a],l,o);Et[2]*=o,Et[0]+=Et[2]*l*(1/o-1)}if(U||ct){for(U||(u=.5),a=0;a<rt.length;a++)r(rt[a],u,o);Et[3]*=o,Et[1]+=Et[3]*(1-u)*(1/o-1)}return $(Et),J(U,V),Lt=setTimeout(function(){Et=[0,0,at,ot];var t;t=ct?\"xy\":(V?\"x\":\"\")+(U?\"y\":\"\"),Q(t)},Ct),k.pauseEvent(e)}}}function Z(e,r){function n(t,e,r){for(var n,i,a=1-e,o=0;o<t.length;o++){var s=t[o];if(!s.fixedrange){n=s,i=s._rl[a]+(s._rl[e]-s._rl[a])/l(r/s._length);var u=s.l2r(i);!1!==u&&void 0!==u&&(s.range[e]=u)}}return n._length*(n._rl[e]-i)/(n._rl[e]-n._rl[a])}if(!t._transitioningWithDuration){if(H(),\"ew\"===st||\"ns\"===lt)return st&&s(et,e),lt&&s(rt,r),$([st?-e:0,lt?-r:0,at,ot]),void J(lt,st);if(ct&&st&&lt){var i=\"w\"===st==(\"n\"===lt)?1:-1,a=(e/at+i*r/ot)/2;e=a*at,r=i*a*ot}\"w\"===st?e=n(et,0,e):\"e\"===st?e=n(et,1,-e):st||(e=0),\"n\"===lt?r=n(rt,1,r):\"s\"===lt?r=n(rt,0,-r):lt||(r=0);var o=\"w\"===st?e:0,u=\"n\"===lt?r:0;if(ct){var c;if(!st&&1===lt.length){for(c=0;c<et.length;c++)et[c].range=et[c]._r.slice(),O(et[c],1-r/ot);e=r*at/ot,o=e/2}if(!lt&&1===st.length){for(c=0;c<rt.length;c++)rt[c].range=rt[c]._r.slice(),O(rt[c],1-e/at);r=e*ot/at,u=r/2}}$([o,u,at-e,ot-r]),J(lt,st)}}function J(e,r){function n(t){for(a=0;a<t.length;a++)t[a].fixedrange||o.push(t[a]._id)}function i(n,i,s){for(a=0;a<n.length;a++){var l=n[a];if((r&&-1!==o.indexOf(l.xref)||e&&-1!==o.indexOf(l.yref))&&(i(t,a),s))return}}var a,o=[];for((r||ct)&&(n(et),n(ht)),(e||ct)&&(n(rt),n(ft)),St={},a=0;a<o.length;a++){var s=o[a];z(t,s,!0);var l=D(t,s);St[l._name+\".range[0]\"]=l.range[0],St[l._name+\".range[1]\"]=l.range[1]}i(dt.annotations||[],M.getComponentMethod(\"annotations\",\"drawOne\")),i(dt.shapes||[],M.getComponentMethod(\"shapes\",\"drawOne\")),i(dt.images||[],M.getComponentMethod(\"images\",\"draw\"),!0)}function K(){if(!t._transitioningWithDuration){var e,r,n,i=t._context.doubleClick,a=(st?et:[]).concat(lt?rt:[]),o={};if(\"reset+autosize\"===i)for(i=\"autosize\",r=0;r<a.length;r++)if(e=a[r],e._rangeInitial&&(e.range[0]!==e._rangeInitial[0]||e.range[1]!==e._rangeInitial[1])||!e._rangeInitial&&!e.autorange){i=\"reset\";break}if(\"autosize\"===i)for(r=0;r<a.length;r++)e=a[r],e.fixedrange||(o[e._name+\".autorange\"]=!0);else if(\"reset\"===i)for((st||ct)&&(a=a.concat(ht)),lt&&!ct&&(a=a.concat(ft)),ct&&(st?lt||(a=a.concat(rt)):a=a.concat(et)),r=0;r<a.length;r++)e=a[r],e._rangeInitial?(n=e._rangeInitial,o[e._name+\".range[0]\"]=n[0],o[e._name+\".range[1]\"]=n[1]):o[e._name+\".autorange\"]=!0;t.emit(\"plotly_doubleclick\",null),w.relayout(t,o)}}function Q(e){void 0===e&&(e=(V?\"x\":\"\")+(U?\"y\":\"\")),$([0,0,at,ot]),k.syncOrAsync([I.previousPromises,function(){w.relayout(t,St)}],t)}function $(t){function e(t){return t.fixedrange?0:d&&-1!==ht.indexOf(t)?h:p&&-1!==(ct?ht:ft).indexOf(t)?f:0}function r(t,e){return e?(t.range=t._r.slice(),O(t,e),n(t,e)):0}function n(t,e){return t._length*(1-e)*C[t.constraintoward||\"middle\"]}var i,a,o,s,l,u=dt._plots,c=Object.keys(u),h=t[2]/et[0]._length,f=t[3]/rt[0]._length,d=V||ct,p=U||ct;for(i=0;i<c.length;i++){var m=u[c[i]],v=m.xaxis,g=m.yaxis,y=d&&!v.fixedrange&&-1!==et.indexOf(v),b=p&&!g.fixedrange&&-1!==rt.indexOf(g);if(y?(a=h,s=V?t[0]:n(v,a)):(a=e(v),s=r(v,a)),b?(o=f,l=U?t[1]:n(g,o)):(o=e(g),l=r(g,o)),a||o){a||(a=1),o||(o=1);var x=v._offset-s/a,_=g._offset-l/o;dt._defs.select(\"#\"+m.clipId+\"> rect\").call(S.setTranslate,s,l).call(S.setScale,a,o);var w=m.plot.selectAll(\".scatterlayer .points, .boxlayer .points\");m.plot.call(S.setTranslate,x,_).call(S.setScale,1/a,1/o),w.selectAll(\".point\").call(S.setPointGroupScale,a,o).call(S.hideOutsideRangePoints,m),w.selectAll(\".textpoint\").call(S.setTextPointsScale,a,o).call(S.hideOutsideRangePoints,m)}}}var tt,et,rt,nt,it,at,ot,st,lt,ut,ct,ht,ft,dt=t._fullLayout,pt=t._fullLayout._zoomlayer,mt=U+V===\"nsew\";H();var vt=n(e,U+V+\"drag\",ut,r,T,E,B);if(!lt&&!st&&!m(dt.dragmode))return vt.onmousedown=null,vt.style.pointerEvents=mt?\"all\":\"none\",vt;var gt={element:vt,gd:t,plotinfo:e,prepFn:function(e,r,n){var i=t._fullLayout.dragmode;mt?e.shiftKey&&(i=\"pan\"===i?\"zoom\":\"pan\"):i=\"pan\",gt.minDrag=\"lasso\"===i?1:void 0,\"zoom\"===i?(gt.moveFn=G,gt.doneFn=Y,gt.minDrag=1,q(e,r,n)):\"pan\"===i?(gt.moveFn=Z,gt.doneFn=W,f(pt)):m(i)&&(gt.xaxes=et,gt.yaxes=rt,P(e,r,n,gt,i))}};L.init(gt);var yt,bt,xt,_t,wt,Mt,kt,At,Tt,St={},Et=[0,0,at,ot],Lt=null,Ct=R.REDRAWDELAY,It=e.mainplot?dt._plots[e.mainplot]:e;return U.length*V.length!=1&&(void 0!==vt.onwheel?vt.onwheel=X:void 0!==vt.onmousewheel&&(vt.onmousewheel=X)),vt}},{\"../../components/color\":604,\"../../components/dragelement\":625,\"../../components/drawing\":628,\"../../constants/alignment\":701,\"../../lib\":728,\"../../lib/setcursor\":746,\"../../lib/svg_text_utils\":750,\"../../plotly\":767,\"../../registry\":846,\"../plots\":831,\"./axes\":772,\"./axis_ids\":775,\"./constants\":777,\"./scale_zoom\":787,\"./select\":788,d3:122,tinycolor2:534}],781:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../../components/fx\"),a=t(\"../../components/dragelement\"),o=t(\"./constants\"),s=t(\"./dragbox\");e.exports=function(t){var e=t._fullLayout;if((e._has(\"cartesian\")||e._has(\"gl2d\"))&&!t._context.staticPlot){Object.keys(e._plots||{}).sort(function(t,r){if((e._plots[t].mainplot&&!0)===(e._plots[r].mainplot&&!0)){var n=t.split(\"y\"),i=r.split(\"y\");return n[0]===i[0]?Number(n[1]||1)-Number(i[1]||1):Number(n[0]||1)-Number(i[0]||1)}return e._plots[t].mainplot?1:-1}).forEach(function(r){var l=e._plots[r],u=l.xaxis,c=l.yaxis,h=(u._linepositions[r]||[])[3],f=(c._linepositions[r]||[])[3],d=o.DRAGGERSIZE;if(n(h)&&\"top\"===u.side&&(h-=d),n(f)&&\"right\"!==c.side&&(f-=d),!l.mainplot){var p=s(t,l,0,0,u._length,c._length,\"ns\",\"ew\");p.onmousemove=function(e){t._fullLayout._rehover=function(){t._fullLayout._hoversubplot===r&&i.hover(t,e,r)},i.hover(t,e,r),t._fullLayout._lasthover=p,t._fullLayout._hoversubplot=r},p.onmouseout=function(e){t._dragging||(t._fullLayout._hoversubplot=null,a.unhover(t,e))},p.onclick=function(e){i.click(t,e,r)},t._context.showAxisDragHandles&&(s(t,l,-d,-d,d,d,\"n\",\"w\"),s(t,l,u._length,-d,d,d,\"n\",\"e\"),s(t,l,-d,c._length,d,d,\"s\",\"w\"),s(t,l,u._length,c._length,d,d,\"s\",\"e\"))}t._context.showAxisDragHandles&&(n(h)&&(\"free\"===u.anchor&&(h-=e._size.h*(1-c.domain[1])),s(t,l,.1*u._length,h,.8*u._length,d,\"\",\"ew\"),s(t,l,0,h,.1*u._length,d,\"\",\"w\"),s(t,l,.9*u._length,h,.1*u._length,d,\"\",\"e\")),n(f)&&(\"free\"===c.anchor&&(f-=e._size.w*u.domain[0]),s(t,l,f,.1*c._length,d,.8*c._length,\"ns\",\"\"),s(t,l,f,.9*c._length,d,.1*c._length,\"s\",\"\"),s(t,l,f,0,d,.1*c._length,\"n\",\"\")))});var r=e._hoverlayer.node();r.onmousemove=function(r){r.target=e._lasthover,i.hover(t,r,e._hoversubplot)},r.onclick=function(r){r.target=e._lasthover,i.click(t,r)},r.onmousedown=function(t){e._lasthover.onmousedown(t)}}}},{\"../../components/dragelement\":625,\"../../components/fx\":645,\"./constants\":777,\"./dragbox\":780,\"fast-isnumeric\":131}],782:[function(t,e,r){\"use strict\";function n(t,e,r,n,i){var a=t._fullLayout,o=a._modules;e.plot&&e.plot.selectAll(\"g:not(.scatterlayer)\").selectAll(\"g.trace\").remove();for(var s=0;s<o.length;s++){var l=o[s];if(\"cartesian\"===l.basePlotModule.name){for(var u=[],c=0;c<r.length;c++){var h=r[c],f=h[0].trace;f._module===l&&!0===f.visible&&u.push(h)}l.plot(t,e,u,n,i)}}}function i(t){for(var e=t._fullLayout,r=Object.keys(e._plots),n=[],i=[],a=0;a<r.length;a++){var o=r[a],s=e._plots[o],l=s.xaxis,u=s.yaxis,c=l._mainAxis,h=u._mainAxis,f=c._id+h._id;f!==o&&-1!==r.indexOf(f)?(s.mainplot=f,s.mainplotinfo=e._plots[f],i.push(o)):n.push(o)}return n=n.concat(i)}function a(t){var e=t.plotgroup,r=t.id,n=f.layerValue2layerClass[t.xaxis.layer],i=f.layerValue2layerClass[t.yaxis.layer];if(t.mainplot){var a=t.mainplotinfo,o=a.plotgroup,l=r+\"-x\",u=r+\"-y\";t.gridlayer=s(a.overgrid,\"g\",r),t.zerolinelayer=s(a.overzero,\"g\",r),s(a.overlinesBelow,\"path\",l),s(a.overlinesBelow,\"path\",u),s(a.overaxesBelow,\"g\",l),s(a.overaxesBelow,\"g\",u),t.plot=s(a.overplot,\"g\",r),s(a.overlinesAbove,\"path\",l),s(a.overlinesAbove,\"path\",u),s(a.overaxesAbove,\"g\",l),s(a.overaxesAbove,\"g\",u),t.xlines=o.select(\".overlines-\"+n).select(\".\"+l),t.ylines=o.select(\".overlines-\"+i).select(\".\"+u),t.xaxislayer=o.select(\".overaxes-\"+n).select(\".\"+l),t.yaxislayer=o.select(\".overaxes-\"+i).select(\".\"+u)}else{var c=s(e,\"g\",\"layer-subplot\");t.shapelayer=s(c,\"g\",\"shapelayer\"),t.imagelayer=s(c,\"g\",\"imagelayer\"),t.gridlayer=s(e,\"g\",\"gridlayer\"),t.overgrid=s(e,\"g\",\"overgrid\"),t.zerolinelayer=s(e,\"g\",\"zerolinelayer\"),t.overzero=s(e,\"g\",\"overzero\"),s(e,\"path\",\"xlines-below\"),s(e,\"path\",\"ylines-below\"),t.overlinesBelow=s(e,\"g\",\"overlines-below\"),s(e,\"g\",\"xaxislayer-below\"),s(e,\"g\",\"yaxislayer-below\"),t.overaxesBelow=s(e,\"g\",\"overaxes-below\"),t.plot=s(e,\"g\",\"plot\"),t.overplot=s(e,\"g\",\"overplot\"),s(e,\"path\",\"xlines-above\"),s(e,\"path\",\"ylines-above\"),t.overlinesAbove=s(e,\"g\",\"overlines-above\"),s(e,\"g\",\"xaxislayer-above\"),s(e,\"g\",\"yaxislayer-above\"),t.overaxesAbove=s(e,\"g\",\"overaxes-above\"),t.xlines=e.select(\".xlines-\"+n),t.ylines=e.select(\".ylines-\"+i),t.xaxislayer=e.select(\".xaxislayer-\"+n),t.yaxislayer=e.select(\".yaxislayer-\"+i)}for(var h=0;h<f.traceLayerClasses.length;h++)s(t.plot,\"g\",f.traceLayerClasses[h]);t.xlines.style(\"fill\",\"none\").classed(\"crisp\",!0),t.ylines.style(\"fill\",\"none\").classed(\"crisp\",!0)}function o(t,e){if(t){var r={};t.each(function(t){var n=l.select(this),i=\"clip\"+e._uid+t+\"plot\";n.remove(),e._draggers.selectAll(\"g.\"+t).remove(),e._defs.select(\"#\"+i).remove(),r[t]=!0});for(var n=e._plots,i=Object.keys(n),a=0;a<i.length;a++)for(var o=n[i[a]],s=o.overlays||[],u=0;u<s.length;u++){var c=s[u];r[c.id]&&c.plot.selectAll(\".trace\").remove()}}}function s(t,e,r){var n=t.selectAll(\".\"+r).data([0]);return n.enter().append(e).classed(r,!0),n}var l=t(\"d3\"),u=t(\"../../lib\"),c=t(\"../plots\"),h=t(\"./axis_ids\"),f=t(\"./constants\");r.name=\"cartesian\",r.attr=[\"xaxis\",\"yaxis\"],r.idRoot=[\"x\",\"y\"],r.idRegex=f.idRegex,r.attrRegex=f.attrRegex,r.attributes=t(\"./attributes\"),r.layoutAttributes=t(\"./layout_attributes\"),r.transitionAxes=t(\"./transition_axes\"),r.plot=function(t,e,r,i){var a,o=t._fullLayout,s=c.getSubplotIds(o,\"cartesian\"),l=t.calcdata;if(!Array.isArray(e))for(e=[],a=0;a<l.length;a++)e.push(a);for(a=0;a<s.length;a++){for(var u,h=s[a],f=o._plots[h],d=[],p=0;p<l.length;p++){var m=l[p],v=m[0].trace;v.xaxis+v.yaxis===h&&((-1!==e.indexOf(v.index)||v.carpet)&&(u&&u[0].trace.xaxis+u[0].trace.yaxis===h&&-1!==[\"tonextx\",\"tonexty\",\"tonext\"].indexOf(v.fill)&&-1===d.indexOf(u)&&d.push(u),d.push(m)),u=m)}n(t,f,d,r,i)}},r.clean=function(t,e,r,n){var i,a,s,l=n._modules||[],u=e._modules||[];for(s=0;s<l.length;s++)if(\"scatter\"===l[s].name){i=!0;break}for(s=0;s<u.length;s++)if(\"scatter\"===u[s].name){a=!0;break}if(i&&!a){var c=n._plots,f=Object.keys(c||{});for(s=0;s<f.length;s++){var d=c[f[s]];d.plot&&d.plot.select(\"g.scatterlayer\").selectAll(\"g.trace\").remove()}n._infolayer.selectAll(\"g.rangeslider-container\").select(\"g.scatterlayer\").selectAll(\"g.trace\").remove()}var p=n._has&&n._has(\"cartesian\"),m=e._has&&e._has(\"cartesian\");if(p&&!m){var v=n._cartesianlayer.selectAll(\".subplot\"),g=h.listIds({_fullLayout:n});for(v.call(o,n),n._defs.selectAll(\".axesclip\").remove(),s=0;s<g.length;s++)n._infolayer.select(\".\"+g[s]+\"title\").remove()}},r.drawFramework=function(t){var e=t._fullLayout,r=i(t),n=e._cartesianlayer.selectAll(\".subplot\").data(r,u.identity);n.enter().append(\"g\").attr(\"class\",function(t){return\"subplot \"+t}),n.order(),n.exit().call(o,e),n.each(function(t){var r=e._plots[t];if(r.plotgroup=l.select(this),r.overlays=[],a(r),r.mainplot){e._plots[r.mainplot].overlays.push(r)}r.draglayer=s(e._draggers,\"g\",t)})},r.rangePlot=function(t,e,r){a(e),n(t,e,r),c.style(t)}},{\"../../lib\":728,\"../plots\":831,\"./attributes\":771,\"./axis_ids\":775,\"./constants\":777,\"./layout_attributes\":783,\"./transition_axes\":793,d3:122}],783:[function(t,e,r){\"use strict\";var n=t(\"../font_attributes\"),i=t(\"../../components/color/attributes\"),a=t(\"../../components/drawing/attributes\").dash,o=t(\"../../lib/extend\").extendFlat,s=t(\"./constants\");e.exports={visible:{valType:\"boolean\",editType:\"plot\"},color:{valType:\"color\",dflt:i.defaultLine,editType:\"ticks\"},title:{valType:\"string\",editType:\"ticks\"},titlefont:n({editType:\"ticks\"}),type:{valType:\"enumerated\",values:[\"-\",\"linear\",\"log\",\"date\",\"category\"],dflt:\"-\",editType:\"calc\"},autorange:{valType:\"enumerated\",values:[!0,!1,\"reversed\"],dflt:!0,editType:\"calc\",impliedEdits:{\"range[0]\":void 0,\"range[1]\":void 0}},rangemode:{valType:\"enumerated\",values:[\"normal\",\"tozero\",\"nonnegative\"],dflt:\"normal\",editType:\"calc\"},range:{valType:\"info_array\",items:[{valType:\"any\",editType:\"plot\",impliedEdits:{\"^autorange\":!1}},{valType:\"any\",editType:\"plot\",impliedEdits:{\"^autorange\":!1}}],editType:\"plot\",impliedEdits:{autorange:!1}},fixedrange:{valType:\"boolean\",dflt:!1,editType:\"calc\"},scaleanchor:{valType:\"enumerated\",values:[s.idRegex.x.toString(),s.idRegex.y.toString()],editType:\"calc\"},scaleratio:{valType:\"number\",min:0,dflt:1,editType:\"calc\"},constrain:{valType:\"enumerated\",values:[\"range\",\"domain\"],dflt:\"range\",editType:\"calc\"},constraintoward:{valType:\"enumerated\",values:[\"left\",\"center\",\"right\",\"top\",\"middle\",\"bottom\"],editType:\"calc\"},tickmode:{valType:\"enumerated\",values:[\"auto\",\"linear\",\"array\"],editType:\"ticks\",impliedEdits:{tick0:void 0,dtick:void 0}},nticks:{valType:\"integer\",min:0,dflt:0,editType:\"ticks\"},tick0:{valType:\"any\",editType:\"ticks\",impliedEdits:{tickmode:\"linear\"}},dtick:{valType:\"any\",editType:\"ticks\",impliedEdits:{tickmode:\"linear\"}},tickvals:{valType:\"data_array\",editType:\"ticks\"},ticktext:{valType:\"data_array\",editType:\"ticks\"},ticks:{valType:\"enumerated\",values:[\"outside\",\"inside\",\"\"],editType:\"ticks\"},mirror:{valType:\"enumerated\",values:[!0,\"ticks\",!1,\"all\",\"allticks\"],dflt:!1,editType:\"ticks+layoutstyle\"},ticklen:{valType:\"number\",min:0,dflt:5,editType:\"ticks\"},tickwidth:{valType:\"number\",min:0,dflt:1,editType:\"ticks\"},tickcolor:{valType:\"color\",dflt:i.defaultLine,editType:\"ticks\"},showticklabels:{valType:\"boolean\",dflt:!0,editType:\"ticks\"},showspikes:{valType:\"boolean\",dflt:!1,editType:\"modebar\"},spikecolor:{valType:\"color\",\n", "dflt:null,editType:\"none\"},spikethickness:{valType:\"number\",dflt:3,editType:\"none\"},spikedash:o({},a,{dflt:\"dash\",editType:\"none\"}),spikemode:{valType:\"flaglist\",flags:[\"toaxis\",\"across\",\"marker\"],dflt:\"toaxis\",editType:\"none\"},tickfont:n({editType:\"ticks\"}),tickangle:{valType:\"angle\",dflt:\"auto\",editType:\"ticks\"},tickprefix:{valType:\"string\",dflt:\"\",editType:\"ticks\"},showtickprefix:{valType:\"enumerated\",values:[\"all\",\"first\",\"last\",\"none\"],dflt:\"all\",editType:\"ticks\"},ticksuffix:{valType:\"string\",dflt:\"\",editType:\"ticks\"},showticksuffix:{valType:\"enumerated\",values:[\"all\",\"first\",\"last\",\"none\"],dflt:\"all\",editType:\"ticks\"},showexponent:{valType:\"enumerated\",values:[\"all\",\"first\",\"last\",\"none\"],dflt:\"all\",editType:\"ticks\"},exponentformat:{valType:\"enumerated\",values:[\"none\",\"e\",\"E\",\"power\",\"SI\",\"B\"],dflt:\"B\",editType:\"ticks\"},separatethousands:{valType:\"boolean\",dflt:!1,editType:\"ticks\"},tickformat:{valType:\"string\",dflt:\"\",editType:\"ticks\"},hoverformat:{valType:\"string\",dflt:\"\",editType:\"none\"},showline:{valType:\"boolean\",dflt:!1,editType:\"layoutstyle\"},linecolor:{valType:\"color\",dflt:i.defaultLine,editType:\"layoutstyle\"},linewidth:{valType:\"number\",min:0,dflt:1,editType:\"ticks+layoutstyle\"},showgrid:{valType:\"boolean\",editType:\"ticks\"},gridcolor:{valType:\"color\",dflt:i.lightLine,editType:\"ticks\"},gridwidth:{valType:\"number\",min:0,dflt:1,editType:\"ticks\"},zeroline:{valType:\"boolean\",editType:\"ticks\"},zerolinecolor:{valType:\"color\",dflt:i.defaultLine,editType:\"ticks\"},zerolinewidth:{valType:\"number\",dflt:1,editType:\"ticks\"},anchor:{valType:\"enumerated\",values:[\"free\",s.idRegex.x.toString(),s.idRegex.y.toString()],editType:\"plot\"},side:{valType:\"enumerated\",values:[\"top\",\"bottom\",\"left\",\"right\"],editType:\"plot\"},overlaying:{valType:\"enumerated\",values:[\"free\",s.idRegex.x.toString(),s.idRegex.y.toString()],editType:\"calc\"},layer:{valType:\"enumerated\",values:[\"above traces\",\"below traces\"],dflt:\"above traces\",editType:\"plot\"},domain:{valType:\"info_array\",items:[{valType:\"number\",min:0,max:1,editType:\"calc\"},{valType:\"number\",min:0,max:1,editType:\"calc\"}],dflt:[0,1],editType:\"calc\"},position:{valType:\"number\",min:0,max:1,dflt:0,editType:\"plot\"},categoryorder:{valType:\"enumerated\",values:[\"trace\",\"category ascending\",\"category descending\",\"array\"],dflt:\"trace\",editType:\"calc\"},categoryarray:{valType:\"data_array\",editType:\"calc\"},editType:\"calc\",_deprecated:{autotick:{valType:\"boolean\",editType:\"ticks\"}}}},{\"../../components/color/attributes\":603,\"../../components/drawing/attributes\":627,\"../../lib/extend\":717,\"../font_attributes\":796,\"./constants\":777}],784:[function(t,e,r){\"use strict\";var n=t(\"../../registry\"),i=t(\"../../lib\"),a=t(\"../../components/color\"),o=t(\"../layout_attributes\"),s=t(\"./constants\"),l=t(\"./layout_attributes\"),u=t(\"./type_defaults\"),c=t(\"./axis_defaults\"),h=t(\"./constraint_defaults\"),f=t(\"./position_defaults\"),d=t(\"./axis_ids\");e.exports=function(t,e,r){function p(t,e){return Number(t.substr(5)||1)-Number(e.substr(5)||1)}function m(t,e){return i.coerce(N,B,l,t,e)}function v(t){var e={x:P,y:D}[t];return i.simpleMap(e,d.name2id)}var g,y=Object.keys(t),b=[],x=[],_=[],w=[],M=[],k=[],A={},T={};for(g=0;g<r.length;g++){var S,E,L=r[g];if(n.traceIs(L,\"cartesian\"))S=b,E=x;else{if(!n.traceIs(L,\"gl2d\"))continue;S=_,E=w}var C=d.id2name(L.xaxis),I=d.id2name(L.yaxis);if(n.traceIs(L,\"carpet\")&&(\"carpet\"!==L.type||L._cheater)||C&&i.pushUnique(k,C),\"carpet\"===L.type&&L._cheater&&C&&i.pushUnique(M,C),C&&-1===S.indexOf(C)&&S.push(C),I&&-1===E.indexOf(I)&&E.push(I),n.traceIs(L,\"2dMap\")&&(A[C]=!0,A[I]=!0),n.traceIs(L,\"oriented\")){T[\"h\"===L.orientation?I:C]=!0}}if(!e._has(\"gl3d\")&&!e._has(\"geo\"))for(g=0;g<y.length;g++){var z=y[g];-1===_.indexOf(z)&&-1===b.indexOf(z)&&s.xAxisMatch.test(z)?b.push(z):-1===w.indexOf(z)&&-1===x.indexOf(z)&&s.yAxisMatch.test(z)&&x.push(z)}b.length&&x.length&&i.pushUnique(e._basePlotModules,n.subplotsRegistry.cartesian);var D=b.concat(_).sort(p),P=x.concat(w).sort(p),O=D.concat(P),R=a.background;D.length&&P.length&&(R=i.coerce(t,e,o,\"plot_bgcolor\"));var F,j,N,B,U=a.combine(R,e.paper_bgcolor),V={x:v(\"x\"),y:v(\"y\")};for(g=0;g<O.length;g++){F=O[g],i.isPlainObject(t[F])||(t[F]={}),N=t[F],B=e[F]={},u(N,B,m,r,F),j=F.charAt(0);var H=function(e,r){for(var n={x:D,y:P}[e],i=[],a=0;a<n.length;a++){var o=n[a];o===r||(t[o]||{}).overlaying||i.push(d.name2id(o))}return i}(j,F),q={letter:j,font:e.font,outerTicks:A[F],showGrid:!T[F],data:r,bgColor:U,calendar:e.calendar,cheateronly:\"x\"===j&&-1!==M.indexOf(F)&&-1===k.indexOf(F)};c(N,B,m,q,e);m(\"showspikes\")&&(m(\"spikecolor\"),m(\"spikethickness\"),m(\"spikedash\"),m(\"spikemode\"));var G={letter:j,counterAxes:V[j],overlayableAxes:H};f(N,B,m,G),B._input=N}var Y=n.getComponentMethod(\"rangeslider\",\"handleDefaults\"),W=n.getComponentMethod(\"rangeselector\",\"handleDefaults\");for(g=0;g<D.length;g++)F=D[g],N=t[F],B=e[F],Y(t,e,F),\"date\"===B.type&&W(N,B,e,P,B.calendar),m(\"fixedrange\");for(g=0;g<P.length;g++){F=P[g],N=t[F],B=e[F];var X=e[d.id2name(B.anchor)];m(\"fixedrange\",X&&X.rangeslider&&X.rangeslider.visible)}e._axisConstraintGroups=[];var Z=V.x.concat(V.y);for(g=0;g<O.length;g++)F=O[g],j=F.charAt(0),N=t[F],B=e[F],h(N,B,m,Z,e)}},{\"../../components/color\":604,\"../../lib\":728,\"../../registry\":846,\"../layout_attributes\":822,\"./axis_defaults\":774,\"./axis_ids\":775,\"./constants\":777,\"./constraint_defaults\":778,\"./layout_attributes\":783,\"./position_defaults\":786,\"./type_defaults\":794}],785:[function(t,e,r){\"use strict\";function n(t,e,r){var n,a,o,s,l,u=[],c=r.map(function(e){return e[t]}),h=i.bisector(e).left;for(n=0;n<c.length;n++)for(o=c[n],a=0;a<o.length;a++)null!==(s=o[a])&&void 0!==s&&((l=h(u,s))<u.length&&u[l]===s||u.splice(l,0,s));return u}var i=t(\"d3\");e.exports=function(t,e,r,a){switch(e){case\"array\":return Array.isArray(r)?r.slice():[];case\"category ascending\":return n(t,i.ascending,a);case\"category descending\":return n(t,i.descending,a);case\"trace\":default:return[]}}},{d3:122}],786:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../../lib\");e.exports=function(t,e,r,a){var o=a.counterAxes||[],s=a.overlayableAxes||[],l=a.letter;\"free\"===i.coerce(t,e,{anchor:{valType:\"enumerated\",values:[\"free\"].concat(o),dflt:n(t.position)?\"free\":o[0]||\"free\"}},\"anchor\")&&r(\"position\"),i.coerce(t,e,{side:{valType:\"enumerated\",values:\"x\"===l?[\"bottom\",\"top\"]:[\"left\",\"right\"],dflt:\"x\"===l?\"bottom\":\"left\"}},\"side\");var u=!1;if(s.length&&(u=i.coerce(t,e,{overlaying:{valType:\"enumerated\",values:[!1].concat(s),dflt:!1}},\"overlaying\")),!u){var c=r(\"domain\");c[0]>c[1]-.01&&(e.domain=[0,1]),i.noneOrAll(t.domain,e.domain,[0,1])}return r(\"layer\"),e}},{\"../../lib\":728,\"fast-isnumeric\":131}],787:[function(t,e,r){\"use strict\";var n=t(\"../../constants/alignment\").FROM_BL;e.exports=function(t,e,r){void 0===r&&(r=n[t.constraintoward||\"center\"]);var i=[t.r2l(t.range[0]),t.r2l(t.range[1])],a=i[0]+(i[1]-i[0])*r;t.range=t._input.range=[t.l2r(a+(i[0]-a)*e),t.l2r(a+(i[1]-a)*e)]}},{\"../../constants/alignment\":701}],788:[function(t,e,r){\"use strict\";function n(t){return t._id}function i(t,e){if(Array.isArray(t))for(var r=e.cd[0].trace,n=0;n<t.length;n++){var i=t[n];i.curveNumber=r.index,i.data=r._input,i.fullData=r,l(i,r,i.pointNumber)}return t}var a=t(\"../../lib/polygon\"),o=t(\"../../lib/throttle\"),s=t(\"../../components/color\"),l=t(\"../../components/fx/helpers\").appendArrayPointValue,u=t(\"./axes\"),c=t(\"./constants\"),h=a.filter,f=a.tester,d=c.MINSELECT;e.exports=function(t,e,r,a,l){function p(t){var e=\"y\"===t._id.charAt(0)?1:0;return function(r){return t.p2d(r[e])}}function m(t,e){return t-e}var v,g=a.gd._fullLayout._zoomlayer,y=a.element.getBoundingClientRect(),b=a.plotinfo,x=b.xaxis._offset,_=b.yaxis._offset,w=e-y.left,M=r-y.top,k=w,A=M,T=\"M\"+w+\",\"+M,S=a.xaxes[0]._length,E=a.yaxes[0]._length,L=a.xaxes.map(n),C=a.yaxes.map(n),I=a.xaxes.concat(a.yaxes);\"lasso\"===l&&(v=h([[w,M]],c.BENDPX));var z=g.selectAll(\"path.select-outline\").data([1,2]);z.enter().append(\"path\").attr(\"class\",function(t){return\"select-outline select-outline-\"+t}).attr(\"transform\",\"translate(\"+x+\", \"+_+\")\").attr(\"d\",T+\"Z\");var D,P,O,R,F,j=g.append(\"path\").attr(\"class\",\"zoombox-corners\").style({fill:s.background,stroke:s.defaultLine,\"stroke-width\":1}).attr(\"transform\",\"translate(\"+x+\", \"+_+\")\").attr(\"d\",\"M0,0Z\"),N=[],B=a.gd,U=B._fullLayout._uid+c.SELECTID,V=[];for(D=0;D<B.calcdata.length;D++)if(P=B.calcdata[D],O=P[0].trace,O._module&&O._module.selectPoints)if(a.subplot)O.subplot!==a.subplot&&O.geo!==a.subplot||N.push({selectPoints:O._module.selectPoints,cd:P,xaxis:a.xaxes[0],yaxis:a.yaxes[0]});else{if(-1===L.indexOf(O.xaxis))continue;if(-1===C.indexOf(O.yaxis))continue;N.push({selectPoints:O._module.selectPoints,cd:P,xaxis:u.getFromId(B,O.xaxis),yaxis:u.getFromId(B,O.yaxis)})}var H;H=b.fillRangeItems?b.fillRangeItems:\"select\"===l?function(t,e){var r=t.range={};for(D=0;D<I.length;D++){var n=I[D],i=n._id.charAt(0);r[n._id]=[n.p2d(e[i+\"min\"]),n.p2d(e[i+\"max\"])].sort(m)}}:function(t,e,r){var n=t.lassoPoints={};for(D=0;D<I.length;D++){var i=I[D];n[i._id]=r.filtered.map(p(i))}},a.moveFn=function(t,e){var r;k=Math.max(0,Math.min(S,t+w)),A=Math.max(0,Math.min(E,e+M));var n=Math.abs(k-w),s=Math.abs(A-M);\"select\"===l?(s<Math.min(.6*n,d)?(r=f([[w,0],[w,E],[k,E],[k,0]]),j.attr(\"d\",\"M\"+r.xmin+\",\"+(M-d)+\"h-4v\"+2*d+\"h4ZM\"+(r.xmax-1)+\",\"+(M-d)+\"h4v\"+2*d+\"h-4Z\")):n<Math.min(.6*s,d)?(r=f([[0,M],[0,A],[S,A],[S,M]]),j.attr(\"d\",\"M\"+(w-d)+\",\"+r.ymin+\"v-4h\"+2*d+\"v4ZM\"+(w-d)+\",\"+(r.ymax-1)+\"v4h\"+2*d+\"v-4Z\")):(r=f([[w,M],[w,A],[k,A],[k,M]]),j.attr(\"d\",\"M0,0Z\")),z.attr(\"d\",\"M\"+r.xmin+\",\"+r.ymin+\"H\"+(r.xmax-1)+\"V\"+(r.ymax-1)+\"H\"+r.xmin+\"Z\")):\"lasso\"===l&&(v.addPt([k,A]),r=f(v.filtered),z.attr(\"d\",\"M\"+v.filtered.join(\"L\")+\"Z\")),o.throttle(U,c.SELECTDELAY,function(){for(V=[],D=0;D<N.length;D++){R=N[D];var t=i(R.selectPoints(R,r),R);if(V.length)for(var e=0;e<t.length;e++)V.push(t[e]);else V=t}F={points:V},H(F,r,v),a.gd.emit(\"plotly_selecting\",F)})},a.doneFn=function(t,e){j.remove(),o.done(U).then(function(){if(o.clear(U),t||2!==e)a.gd.emit(\"plotly_selected\",F);else{for(z.remove(),D=0;D<N.length;D++)R=N[D],R.selectPoints(R,!1);B.emit(\"plotly_deselect\",null)}})}}},{\"../../components/color\":604,\"../../components/fx/helpers\":642,\"../../lib/polygon\":739,\"../../lib/throttle\":751,\"./axes\":772,\"./constants\":777}],789:[function(t,e,r){\"use strict\";function n(t){return Math.pow(10,t)}var i=t(\"d3\"),a=t(\"fast-isnumeric\"),o=t(\"../../lib\"),s=o.cleanNumber,l=o.ms2DateTime,u=o.dateTime2ms,c=o.ensureNumber,h=t(\"../../constants/numerical\"),f=h.FP_SAFE,d=h.BADNUM,p=t(\"./constants\"),m=t(\"./axis_ids\");e.exports=function(t,e){function r(e,r){if(e>0)return Math.log(e)/Math.LN10;if(e<=0&&r&&t.range&&2===t.range.length){var n=t.range[0],i=t.range[1];return.5*(n+i-3*M*Math.abs(n-i))}return d}function h(e,r,n){var i=u(e,n||t.calendar);if(i===d){if(!a(e))return d;i=u(new Date(+e))}return i}function v(e,r,n){return l(e,r,n||t.calendar)}function g(e){return t._categories[Math.round(e)]}function y(e){if(null!==e&&void 0!==e){if(void 0===t._categoriesMap&&(t._categoriesMap={}),void 0!==t._categoriesMap[e])return t._categoriesMap[e];t._categories.push(e);var r=t._categories.length-1;return t._categoriesMap[e]=r,r}return d}function b(e){if(t._categoriesMap){var r=t._categoriesMap[e];if(void 0!==r)return r}if(a(e))return+e}function x(e){return a(e)?i.round(t._b+t._m*e,2):d}function _(e){return(e-t._b)/t._m}e=e||{};var w=(t._id||\"x\").charAt(0),M=10;t.c2l=\"log\"===t.type?r:c,t.l2c=\"log\"===t.type?n:c,t.l2p=x,t.p2l=_,t.c2p=\"log\"===t.type?function(t,e){return x(r(t,e))}:x,t.p2c=\"log\"===t.type?function(t){return n(_(t))}:_,-1!==[\"linear\",\"-\"].indexOf(t.type)?(t.d2r=t.r2d=t.d2c=t.r2c=t.d2l=t.r2l=s,t.c2d=t.c2r=t.l2d=t.l2r=c,t.d2p=t.r2p=function(e){return t.l2p(s(e))},t.p2d=t.p2r=_,t.cleanPos=c):\"log\"===t.type?(t.d2r=t.d2l=function(t,e){return r(s(t),e)},t.r2d=t.r2c=function(t){return n(s(t))},t.d2c=t.r2l=s,t.c2d=t.l2r=c,t.c2r=r,t.l2d=n,t.d2p=function(e,r){return t.l2p(t.d2r(e,r))},t.p2d=function(t){return n(_(t))},t.r2p=function(e){return t.l2p(s(e))},t.p2r=_,t.cleanPos=c):\"date\"===t.type?(t.d2r=t.r2d=o.identity,t.d2c=t.r2c=t.d2l=t.r2l=h,t.c2d=t.c2r=t.l2d=t.l2r=v,t.d2p=t.r2p=function(e,r,n){return t.l2p(h(e,0,n))},t.p2d=t.p2r=function(t,e,r){return v(_(t),e,r)},t.cleanPos=function(e){return o.cleanDate(e,d,t.calendar)}):\"category\"===t.type&&(t.d2c=t.d2l=y,t.r2d=t.c2d=t.l2d=g,t.d2r=t.d2l_noadd=b,t.r2c=function(e){var r=b(e);return void 0!==r?r:t.fraction2r(.5)},t.l2r=t.c2r=c,t.r2l=b,t.d2p=function(e){return t.l2p(t.r2c(e))},t.p2d=function(t){return g(_(t))},t.r2p=t.d2p,t.p2r=_,t.cleanPos=function(t){return\"string\"==typeof t&&\"\"!==t?t:c(t)}),t.fraction2r=function(e){var r=t.r2l(t.range[0]),n=t.r2l(t.range[1]);return t.l2r(r+e*(n-r))},t.r2fraction=function(e){var r=t.r2l(t.range[0]),n=t.r2l(t.range[1]);return(t.r2l(e)-r)/(n-r)},t.cleanRange=function(e){e||(e=\"range\");var r,n,i=o.nestedProperty(t,e).get();if(n=\"date\"===t.type?o.dfltRange(t.calendar):\"y\"===w?p.DFLTRANGEY:p.DFLTRANGEX,n=n.slice(),!i||2!==i.length)return void o.nestedProperty(t,e).set(n);for(\"date\"===t.type&&(i[0]=o.cleanDate(i[0],d,t.calendar),i[1]=o.cleanDate(i[1],d,t.calendar)),r=0;r<2;r++)if(\"date\"===t.type){if(!o.isDateTime(i[r],t.calendar)){t[e]=n;break}if(t.r2l(i[0])===t.r2l(i[1])){var s=o.constrain(t.r2l(i[0]),o.MIN_MS+1e3,o.MAX_MS-1e3);i[0]=t.l2r(s-1e3),i[1]=t.l2r(s+1e3);break}}else{if(!a(i[r])){if(!a(i[1-r])){t[e]=n;break}i[r]=i[1-r]*(r?10:.1)}if(i[r]<-f?i[r]=-f:i[r]>f&&(i[r]=f),i[0]===i[1]){var l=Math.max(1,Math.abs(1e-6*i[0]));i[0]-=l,i[1]+=l}}},t.setScale=function(r){var n=e._size;if(t._categories||(t._categories=[]),t._categoriesMap||(t._categoriesMap={}),t.overlaying){var i=m.getFromId({_fullLayout:e},t.overlaying);t.domain=i.domain}var a=r&&t._r?\"_r\":\"range\",s=t.calendar;t.cleanRange(a);var l=t.r2l(t[a][0],s),u=t.r2l(t[a][1],s);if(\"y\"===w?(t._offset=n.t+(1-t.domain[1])*n.h,t._length=n.h*(t.domain[1]-t.domain[0]),t._m=t._length/(l-u),t._b=-t._m*u):(t._offset=n.l+t.domain[0]*n.w,t._length=n.w*(t.domain[1]-t.domain[0]),t._m=t._length/(u-l),t._b=-t._m*l),!isFinite(t._m)||!isFinite(t._b))throw o.notifier(\"Something went wrong with axis scaling\",\"long\"),e._replotting=!1,new Error(\"axis scaling\")},t.makeCalcdata=function(e,r){var n,i,a,o=\"date\"===t.type&&e[r+\"calendar\"];if(r in e)for(n=e[r],i=new Array(n.length),a=0;a<n.length;a++)i[a]=t.d2c(n[a],0,o);else{var s=r+\"0\"in e?t.d2c(e[r+\"0\"],0,o):0,l=e[\"d\"+r]?Number(e[\"d\"+r]):1;for(n=e[{x:\"y\",y:\"x\"}[r]],i=new Array(n.length),a=0;a<n.length;a++)i[a]=s+a*l}return i},t.isValidRange=function(e){return Array.isArray(e)&&2===e.length&&a(t.r2l(e[0]))&&a(t.r2l(e[1]))},t.isPtWithinRange=\"x\"===w?function(e){var r=e.x;return r>=t.range[0]&&r<=t.range[1]}:function(e){var r=e.y;return r>=t.range[0]&&r<=t.range[1]},t._min=[],t._max=[],t._separators=e.separators,delete t._minDtick,delete t._forceTick0}},{\"../../constants/numerical\":707,\"../../lib\":728,\"./axis_ids\":775,\"./constants\":777,d3:122,\"fast-isnumeric\":131}],790:[function(t,e,r){\"use strict\";function n(t){var e=[\"showexponent\",\"showtickprefix\",\"showticksuffix\"],r=e.filter(function(e){return void 0!==t[e]}),n=function(e){return t[e]===t[r[0]]};if(r.every(n)||1===r.length)return t[r[0]]}var i=t(\"../../lib\");e.exports=function(t,e,r,a,o){var s=n(t);if(r(\"tickprefix\")&&r(\"showtickprefix\",s),r(\"ticksuffix\")&&r(\"showticksuffix\",s),r(\"showticklabels\")){var l=o.font||{},u=e.color===t.color?e.color:l.color;i.coerceFont(r,\"tickfont\",{family:l.family,size:l.size,color:u}),r(\"tickangle\"),\"category\"!==a&&(r(\"tickformat\")||\"date\"===a||(r(\"showexponent\",s),r(\"exponentformat\"),r(\"separatethousands\")))}\"category\"===a||o.noHover||r(\"hoverformat\")}},{\"../../lib\":728}],791:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"./layout_attributes\");e.exports=function(t,e,r,a){var o=n.coerce2(t,e,i,\"ticklen\"),s=n.coerce2(t,e,i,\"tickwidth\"),l=n.coerce2(t,e,i,\"tickcolor\",e.color);r(\"ticks\",a.outerTicks||o||s||l?\"outside\":\"\")||(delete e.ticklen,delete e.tickwidth,delete e.tickcolor)}},{\"../../lib\":728,\"./layout_attributes\":783}],792:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../../lib\"),a=t(\"../../constants/numerical\").ONEDAY;e.exports=function(t,e,r,o){var s=\"auto\";\"array\"!==t.tickmode||\"log\"!==o&&\"date\"!==o||(t.tickmode=\"auto\"),Array.isArray(t.tickvals)?s=\"array\":t.dtick&&(s=\"linear\");var l=r(\"tickmode\",s);if(\"auto\"===l)r(\"nticks\");else if(\"linear\"===l){var u=\"date\"===o?a:1,c=r(\"dtick\",u);if(n(c))e.dtick=c>0?Number(c):u;else if(\"string\"!=typeof c)e.dtick=u;else{var h=c.charAt(0),f=c.substr(1);f=n(f)?Number(f):0,(f<=0||!(\"date\"===o&&\"M\"===h&&f===Math.round(f)||\"log\"===o&&\"L\"===h||\"log\"===o&&\"D\"===h&&(1===f||2===f)))&&(e.dtick=u)}var d=\"date\"===o?i.dateTick0(e.calendar):0,p=r(\"tick0\",d);\"date\"===o?e.tick0=i.cleanDate(p,d):n(p)&&\"D1\"!==c&&\"D2\"!==c?e.tick0=Number(p):e.tick0=d}else{var m=r(\"tickvals\");void 0===m?e.tickmode=\"auto\":r(\"ticktext\")}}},{\"../../constants/numerical\":707,\"../../lib\":728,\"fast-isnumeric\":131}],793:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../../plotly\"),a=t(\"../../registry\"),o=t(\"../../components/drawing\"),s=t(\"./axes\"),l=t(\"./constants\").attrRegex;e.exports=function(t,e,r,u){function c(e,r){function n(e,r,n){for(i=0;i<e.length;i++){var a=e[i];if(-1===o.indexOf(a.xref)&&-1===o.indexOf(a.yref)||r(t,i),n)return}}var i,o=[];for(o=[e._id,r._id],i=0;i<o.length;i++)s.doTicks(t,o[i],!0);n(v.annotations||[],a.getComponentMethod(\"annotations\",\"drawOne\")),n(v.shapes||[],a.getComponentMethod(\"shapes\",\"drawOne\")),n(v.images||[],a.getComponentMethod(\"images\",\"draw\"),!0)}function h(t){var e=t.xaxis,r=t.yaxis;v._defs.select(\"#\"+t.clipId+\"> rect\").call(o.setTranslate,0,0).call(o.setScale,1,1),t.plot.call(o.setTranslate,e._offset,r._offset).call(o.setScale,1,1);var n=t.plot.select(\".scatterlayer\").selectAll(\".points\");n.selectAll(\".point\").call(o.setPointGroupScale,1,1).call(o.hideOutsideRangePoints,t),n.selectAll(\".textpoint\").call(o.setTextPointsScale,1,1).call(o.hideOutsideRangePoints,t)}function f(e,r){var n,i,a,s=y[e.xaxis._id],l=y[e.yaxis._id],u=[];if(s){n=t._fullLayout[s.axisName],i=n._r,a=s.to,u[0]=(i[0]*(1-r)+r*a[0]-i[0])/(i[1]-i[0])*e.xaxis._length;var h=i[1]-i[0],f=a[1]-a[0];n.range[0]=i[0]*(1-r)+r*a[0],n.range[1]=i[1]*(1-r)+r*a[1],u[2]=e.xaxis._length*(1-r+r*f/h)}else u[0]=0,u[2]=e.xaxis._length;if(l){n=t._fullLayout[l.axisName],i=n._r,a=l.to,u[1]=(i[1]*(1-r)+r*a[1]-i[1])/(i[0]-i[1])*e.yaxis._length;var d=i[1]-i[0],p=a[1]-a[0];n.range[0]=i[0]*(1-r)+r*a[0],n.range[1]=i[1]*(1-r)+r*a[1],u[3]=e.yaxis._length*(1-r+r*p/d)}else u[1]=0,u[3]=e.yaxis._length;c(e.xaxis,e.yaxis);var m=e.xaxis,g=e.yaxis,b=!!s,x=!!l,_=b?m._length/u[2]:1,w=x?g._length/u[3]:1,M=b?u[0]:0,k=x?u[1]:0,A=b?u[0]/u[2]*m._length:0,T=x?u[1]/u[3]*g._length:0,S=m._offset-A,E=g._offset-T;v._defs.select(\"#\"+e.clipId+\"> rect\").call(o.setTranslate,M,k).call(o.setScale,1/_,1/w),e.plot.call(o.setTranslate,S,E).call(o.setScale,_,w).selectAll(\".points\").selectAll(\".point\").call(o.setPointGroupScale,1/_,1/w),e.plot.selectAll(\".points\").selectAll(\".textpoint\").call(o.setTextPointsScale,1/_,1/w)}function d(){for(var e={},r=0;r<b.length;r++){var n=t._fullLayout[y[b[r]].axisName],a=y[b[r]].to;e[n._name+\".range[0]\"]=a[0],e[n._name+\".range[1]\"]=a[1],n.range=a.slice()}return _&&_(),i.relayout(t,e).then(function(){for(var t=0;t<x.length;t++)h(x[t])})}function p(){for(var e={},r=0;r<b.length;r++){var n=t._fullLayout[b[r]+\"axis\"];e[n._name+\".range[0]\"]=n.range[0],e[n._name+\".range[1]\"]=n.range[1],n.range=n._r.slice()}return i.relayout(t,e).then(function(){for(var t=0;t<x.length;t++)h(x[t])})}function m(){M=Date.now();for(var t=Math.min(1,(M-w)/r.duration),e=A(t),n=0;n<x.length;n++)f(x[n],e);M-w>r.duration?(d(),k=window.cancelAnimationFrame(m)):k=window.requestAnimationFrame(m)}var v=t._fullLayout,g=[],y=function(t){var e,r,n,i,a={};for(e in t)if(r=e.split(\".\"),r[0].match(l)){var o=e.charAt(0),s=r[0];if(n=v[s],i={},Array.isArray(t[e])?i.to=t[e].slice(0):Array.isArray(t[e].range)&&(i.to=t[e].range.slice(0)),!i.to)continue;i.axisName=s,i.length=n._length,g.push(o),a[o]=i}return a}(e),b=Object.keys(y),x=function(t,e,r){var n,i,a,o=t._plots,s=[];for(n in o){var l=o[n];if(-1===s.indexOf(l)){var u=l.xaxis._id,c=l.yaxis._id,h=l.xaxis.range,f=l.yaxis.range;l.xaxis._r=l.xaxis.range.slice(),l.yaxis._r=l.yaxis.range.slice(),i=r[u]?r[u].to:h,a=r[c]?r[c].to:f,h[0]===i[0]&&h[1]===i[1]&&f[0]===a[0]&&f[1]===a[1]||-1===e.indexOf(u)&&-1===e.indexOf(c)||s.push(l)}}return s}(v,b,y);if(!x.length)return function(){function e(e,r,n){for(var i=0;i<e.length;i++)if(r(t,i),n)return}e(v.annotations||[],a.getComponentMethod(\"annotations\",\"drawOne\")),e(v.shapes||[],a.getComponentMethod(\"shapes\",\"drawOne\")),e(v.images||[],a.getComponentMethod(\"images\",\"draw\"),!0)}(),!1;var _;u&&(_=u());var w,M,k,A=n.ease(r.easing);return t._transitionData._interruptCallbacks.push(function(){return window.cancelAnimationFrame(k),k=null,p()}),w=Date.now(),k=window.requestAnimationFrame(m),Promise.resolve()}},{\"../../components/drawing\":628,\"../../plotly\":767,\"../../registry\":846,\"./axes\":772,\"./constants\":777,d3:122}],794:[function(t,e,r){\"use strict\";function n(t,e){if(\"-\"===t.type){var r=t._id,n=r.charAt(0);-1!==r.indexOf(\"scene\")&&(r=n);var u=i(e,r,n);if(u){if(\"histogram\"===u.type&&n==={v:\"y\",h:\"x\"}[u.orientation||\"v\"])return void(t.type=\"linear\");var c=n+\"calendar\",h=u[c];if(o(u,n)){for(var f,d=a(u),p=[],m=0;m<e.length;m++)f=e[m],s.traceIs(f,\"box\")&&(f[n+\"axis\"]||n)===r&&(void 0!==f[d]?p.push(f[d][0]):void 0!==f.name?p.push(f.name):p.push(\"text\"),f[c]!==h&&(h=void 0));t.type=l(p,h)}else t.type=l(u[n]||[u[n+\"0\"]],h)}}}function i(t,e,r){for(var n=0;n<t.length;n++){var i=t[n];if((i[r+\"axis\"]||r)===e){if(o(i,r))return i;if((i[r]||[]).length||i[r+\"0\"])return i}}}function a(t){return{v:\"x\",h:\"y\"}[t.orientation||\"v\"]}function o(t,e){var r=a(t),n=s.traceIs(t,\"box\"),i=s.traceIs(t._fullInput||{},\"candlestick\");return n&&!i&&e===r&&void 0===t[r]&&void 0===t[r+\"0\"]}var s=t(\"../../registry\"),l=t(\"./axis_autotype\"),u=t(\"./axis_ids\").name2id;e.exports=function(t,e,r,i,a){a&&(e._name=a,e._id=u(a)),\"-\"===r(\"type\")&&(n(e,i),\"-\"===e.type?e.type=\"linear\":t.type=e.type)}},{\"../../registry\":846,\"./axis_autotype\":773,\"./axis_ids\":775}],795:[function(t,e,r){\"use strict\";function n(t,e,r){var n,i,a,o=!1;if(\"data\"===e.type)n=t._fullData[null!==e.traces?e.traces[0]:0];else{if(\"layout\"!==e.type)return!1;n=t._fullLayout}return i=u.nestedProperty(n,e.prop).get(),a=r[e.type]=r[e.type]||{},a.hasOwnProperty(e.prop)&&a[e.prop]!==i&&(o=!0),a[e.prop]=i,{changed:o,value:i}}function i(t,e){return Array.isArray(e[0])&&1===e[0].length&&-1!==[\"string\",\"number\"].indexOf(typeof e[0][0])?[{type:\"layout\",prop:\"_currentFrame\",value:e[0][0].toString()}]:[]}function a(t,e){var r=[],n=e[0],i={};if(\"string\"==typeof n)i[n]=e[1];else{if(!u.isPlainObject(n))return r;i=n}return s(i,function(t,e,n){r.push({type:\"layout\",prop:t,value:n})},\"\",0),r}function o(t,e){var r,n,i,a,o=[];if(n=e[0],i=e[1],r=e[2],a={},\"string\"==typeof n)a[n]=i;else{if(!u.isPlainObject(n))return o;a=n,void 0===r&&(r=i)}return void 0===r&&(r=null),s(a,function(e,n,i){var a;if(Array.isArray(i)){var s=Math.min(i.length,t.data.length);r&&(s=Math.min(s,r.length)),a=[];for(var l=0;l<s;l++)a[l]=r?r[l]:l}else a=r?r.slice(0):null;if(null===a)Array.isArray(i)&&(i=i[0]);else if(Array.isArray(a)){if(!Array.isArray(i)){var u=i;i=[];for(var c=0;c<a.length;c++)i[c]=u}i.length=Math.min(a.length,i.length)}o.push({type:\"data\",prop:e,traces:a,value:i})},\"\",0),o}function s(t,e,r,n){Object.keys(t).forEach(function(i){var a=t[i];if(\"_\"!==i[0]){var o=r+(n>0?\".\":\"\")+i;u.isPlainObject(a)?s(a,e,o,n+1):e(o,i,a)}})}var l=t(\"../plotly\"),u=t(\"../lib\");r.manageCommandObserver=function(t,e,i,a){var o={},s=!0;e&&e._commandObserver&&(o=e._commandObserver),o.cache||(o.cache={}),o.lookupTable={};var l=r.hasSimpleAPICommandBindings(t,i,o.lookupTable);if(e&&e._commandObserver){if(l)return o;if(e._commandObserver.remove)return e._commandObserver.remove(),e._commandObserver=null,o}if(l){n(t,l,o.cache),o.check=function(){if(s){var e=n(t,l,o.cache);return e.changed&&a&&void 0!==o.lookupTable[e.value]&&(o.disable(),Promise.resolve(a({value:e.value,type:l.type,prop:l.prop,traces:l.traces,index:o.lookupTable[e.value]})).then(o.enable,o.enable)),e.changed}};for(var c=[\"plotly_relayout\",\"plotly_redraw\",\"plotly_restyle\",\"plotly_update\",\"plotly_animatingframe\",\"plotly_afterplot\"],h=0;h<c.length;h++)t._internalOn(c[h],o.check);o.remove=function(){for(var e=0;e<c.length;e++)t._removeInternalListener(c[e],o.check)}}else u.warn(\"Unable to automatically bind plot updates to API command\"),o.lookupTable={},o.remove=function(){};return o.disable=function(){s=!1},o.enable=function(){s=!0},e&&(e._commandObserver=o),o},r.hasSimpleAPICommandBindings=function(t,e,n){var i,a,o=e.length;for(i=0;i<o;i++){var s,l=e[i],u=l.method,c=l.args;if(Array.isArray(c)||(c=[]),!u)return!1;var h=r.computeAPICommandBindings(t,u,c);if(1!==h.length)return!1;if(a){if(s=h[0],s.type!==a.type)return!1;if(s.prop!==a.prop)return!1;if(Array.isArray(a.traces)){if(!Array.isArray(s.traces))return!1;s.traces.sort();for(var f=0;f<a.traces.length;f++)if(a.traces[f]!==s.traces[f])return!1}else if(s.prop!==a.prop)return!1}else a=h[0],Array.isArray(a.traces)&&a.traces.sort();s=h[0];var d=s.value;if(Array.isArray(d)){if(1!==d.length)return!1;d=d[0]}n&&(n[d]=i)}return a},r.executeAPICommand=function(t,e,r){if(\"skip\"===e)return Promise.resolve();var n=l[e],i=[t];Array.isArray(r)||(r=[]);for(var a=0;a<r.length;a++)i.push(r[a]);return n.apply(null,i).catch(function(t){return u.warn(\"API call to Plotly.\"+e+\" rejected.\",t),Promise.reject(t)})},r.computeAPICommandBindings=function(t,e,r){var n;switch(Array.isArray(r)||(r=[]),e){case\"restyle\":n=o(t,r);break;case\"relayout\":n=a(t,r);break;case\"update\":n=o(t,[r[0],r[2]]).concat(a(t,[r[1]]));break;case\"animate\":n=i(t,r);break;default:n=[]}return n}},{\"../lib\":728,\"../plotly\":767}],796:[function(t,e,r){\"use strict\";e.exports=function(t){var e=t.editType,r=t.colorEditType;void 0===r&&(r=e);var n={family:{valType:\"string\",noBlank:!0,strict:!0,editType:e},size:{valType:\"number\",min:1,editType:e},color:{valType:\"color\",editType:r},editType:e};return t.arrayOk&&(n.family.arrayOk=!0,n.size.arrayOk=!0,n.color.arrayOk=!0),n}},{}],797:[function(t,e,r){\"use strict\";e.exports={_isLinkedToArray:\"frames_entry\",group:{valType:\"string\"},name:{valType:\"string\"},traces:{valType:\"any\"},baseframe:{valType:\"string\"},data:{valType:\"any\"},layout:{valType:\"any\"}}},{}],798:[function(t,e,r){\"use strict\";r.projNames={equirectangular:\"equirectangular\",mercator:\"mercator\",orthographic:\"orthographic\",\"natural earth\":\"naturalEarth\",kavrayskiy7:\"kavrayskiy7\",miller:\"miller\",robinson:\"robinson\",eckert4:\"eckert4\",\"azimuthal equal area\":\"azimuthalEqualArea\",\"azimuthal equidistant\":\"azimuthalEquidistant\",\"conic equal area\":\"conicEqualArea\",\"conic conformal\":\"conicConformal\",\"conic equidistant\":\"conicEquidistant\",gnomonic:\"gnomonic\",stereographic:\"stereographic\",mollweide:\"mollweide\",hammer:\"hammer\",\"transverse mercator\":\"transverseMercator\",\"albers usa\":\"albersUsa\",\"winkel tripel\":\"winkel3\",aitoff:\"aitoff\",sinusoidal:\"sinusoidal\"},r.axesNames=[\"lonaxis\",\"lataxis\"],r.lonaxisSpan={orthographic:180,\"azimuthal equal area\":360,\"azimuthal equidistant\":360,\"conic conformal\":180,gnomonic:160,stereographic:180,\"transverse mercator\":180,\"*\":360},r.lataxisSpan={\"conic conformal\":150,stereographic:179.5,\"*\":180},r.scopeDefaults={world:{lonaxisRange:[-180,180],lataxisRange:[-90,90],projType:\"equirectangular\",projRotate:[0,0,0]},usa:{lonaxisRange:[-180,-50],lataxisRange:[15,80],projType:\"albers usa\"},europe:{lonaxisRange:[-30,60],lataxisRange:[30,85],projType:\"conic conformal\",projRotate:[15,0,0],projParallels:[0,60]},asia:{lonaxisRange:[22,160],lataxisRange:[-15,55],projType:\"mercator\",projRotate:[0,0,0]},africa:{lonaxisRange:[-30,60],lataxisRange:[-40,40],projType:\"mercator\",projRotate:[0,0,0]},\"north america\":{lonaxisRange:[-180,-45],lataxisRange:[5,85],projType:\"conic conformal\",projRotate:[-100,0,0],projParallels:[29.5,45.5]},\"south america\":{lonaxisRange:[-100,-30],lataxisRange:[-60,15],projType:\"mercator\",projRotate:[0,0,0]}},r.clipPad=.001,r.precision=.1,r.landColor=\"#F0DC82\",r.waterColor=\"#3399FF\",r.locationmodeToLayer={\"ISO-3\":\"countries\",\"USA-states\":\"subunits\",\"country names\":\"countries\"},r.sphereSVG={type:\"Sphere\"},r.fillLayers={ocean:1,land:1,lakes:1},r.lineLayers={subunits:1,countries:1,coastlines:1,rivers:1,frame:1},r.layers=[\"bg\",\"ocean\",\"land\",\"lakes\",\"subunits\",\"countries\",\"coastlines\",\"rivers\",\"lataxis\",\"lonaxis\",\"frame\",\"backplot\",\"frontplot\"],r.layersForChoropleth=[\"bg\",\"ocean\",\"land\",\"subunits\",\"countries\",\"coastlines\",\"lataxis\",\"lonaxis\",\"frame\",\"backplot\",\"rivers\",\"lakes\",\"frontplot\"],r.layerNameToAdjective={ocean:\"ocean\",land:\"land\",lakes:\"lake\",subunits:\"subunit\",countries:\"country\",coastlines:\"coastline\",rivers:\"river\",frame:\"frame\"}},{}],799:[function(t,e,r){\"use strict\";function n(t){this.id=t.id,this.graphDiv=t.graphDiv,this.container=t.container,this.topojsonURL=t.topojsonURL,this.isStatic=t.staticPlot,this.topojsonName=null,this.topojson=null,this.projection=null,this.viewInitial=null,this.fitScale=null,this.bounds=null,this.midPt=null,this.hasChoropleth=!1,this.traceHash={},this.layers={},this.basePaths={},this.dataPaths={},this.dataPoints={},this.clipDef=null,this.clipRect=null,this.bgRect=null,this.makeFramework()}function i(t){for(var e=t.projection,r=e.type,n=s.geo[y.projNames[r]](),i=t._isClipped?y.lonaxisSpan[r]/2:null,a=[\"center\",\"rotate\",\"parallels\",\"clipExtent\"],o=function(t){return t?n:[]},l=0;l<a.length;l++){var u=a[l];\"function\"!=typeof n[u]&&(n[u]=o)}return n.isLonLatOverEdges=function(t){if(null===n(t))return!0;if(i){var e=n.rotate();return s.geo.distance(t,[-e[0],-e[1]])>i*Math.PI/180}return!1},n.getPath=function(){return s.geo.path().projection(n)},n.getBounds=function(t){return n.getPath().bounds(t)},n.fitExtent=function(t,e){var r=t[1][0]-t[0][0],i=t[1][1]-t[0][1],a=n.clipExtent&&n.clipExtent();n.scale(150).translate([0,0]),a&&n.clipExtent(null);var o=n.getBounds(e),s=Math.min(r/(o[1][0]-o[0][0]),i/(o[1][1]-o[0][1])),l=+t[0][0]+(r-s*(o[1][0]+o[0][0]))/2,u=+t[0][1]+(i-s*(o[1][1]+o[0][1]))/2;return a&&n.clipExtent(a),n.scale(150*s).translate([l,u])},n.precision(y.precision),i&&n.clipAngle(i-y.clipPad),n}function a(t,e){var r=e[t],n=r.dtick,i=y.scopeDefaults[e.scope],a=i.lonaxisRange,o=i.lataxisRange,l=\"lonaxis\"===t?[n]:[0,n];return s.geo.graticule().extent([[a[0],o[0]],[a[1],o[1]]]).step(l)}function o(t,e){var r=y.clipPad,n=t[0]+r,i=t[1]-r,a=e[0]+r,o=e[1]-r;n>0&&i<0&&(i+=360);var s=(i-n)/4;return{type:\"Polygon\",coordinates:[[[n,a],[n,o],[n+s,o],[n+2*s,o],[n+3*s,o],[i,o],[i,a],[i-s,a],[i-2*s,a],[i-3*s,a],[n,a]]]}}var s=t(\"d3\"),l=t(\"../../plotly\"),u=t(\"../../lib\"),c=t(\"../../components/color\"),h=t(\"../../components/drawing\"),f=t(\"../../components/fx\"),d=t(\"../plots\"),p=t(\"../cartesian/axes\"),m=t(\"../../components/dragelement\"),v=t(\"../cartesian/select\"),g=t(\"./zoom\"),y=t(\"./constants\"),b=t(\"../../lib/topojson_utils\"),x=t(\"topojson-client\").feature;t(\"./projections\")(s);var _=n.prototype;e.exports=function(t){return new n(t)},_.plot=function(t,e,r){var n=this,i=e[this.id],a=b.getTopojsonName(i);null===n.topojson||a!==n.topojsonName?(n.topojsonName=a,void 0===PlotlyGeoAssets.topojson[n.topojsonName]?r.push(n.fetchTopojson().then(function(r){PlotlyGeoAssets.topojson[n.topojsonName]=r,n.topojson=r,n.update(t,e)})):(n.topojson=PlotlyGeoAssets.topojson[n.topojsonName],n.update(t,e))):n.update(t,e)},_.fetchTopojson=function(){var t=b.getTopojsonPath(this.topojsonURL,this.topojsonName);return new Promise(function(e,r){s.json(t,function(n,i){if(n)return r(404===n.status?new Error([\"plotly.js could not find topojson file at\",t,\".\",\"Make sure the *topojsonURL* plot config option\",\"is set properly.\"].join(\" \")):new Error([\"unexpected error while fetching topojson file at\",t].join(\" \")));e(i)})})},_.update=function(t,e){var r=e[this.id];if(!this.updateProjection(e,r)){this.hasChoropleth=!1;for(var n=0;n<t.length;n++)if(\"choropleth\"===t[n][0].trace.type){\n", "this.hasChoropleth=!0;break}this.viewInitial||this.saveViewInitial(r),this.updateBaseLayers(e,r),this.updateDims(e,r),this.updateFx(e,r),d.generalUpdatePerTraceModule(this,t,r);var i=this.layers.frontplot.select(\".scatterlayer\");this.dataPoints.point=i.selectAll(\".point\"),this.dataPoints.text=i.selectAll(\"text\"),this.dataPaths.line=i.selectAll(\".js-line\");var a=this.layers.backplot.select(\".choroplethlayer\");this.dataPaths.choropleth=a.selectAll(\"path\"),this.render()}},_.updateProjection=function(t,e){var r=t._size,n=e.domain,a=e.projection,s=a.rotation||{},c=e.center||{},h=this.projection=i(e);h.center([c.lon-s.lon,c.lat-s.lat]).rotate([-s.lon,-s.lat,s.roll]).parallels(a.parallels);var f=[[r.l+r.w*n.x[0],r.t+r.h*(1-n.y[1])],[r.l+r.w*n.x[1],r.t+r.h*(1-n.y[0])]],d=e.lonaxis,p=e.lataxis,m=o(d.range,p.range);h.fitExtent(f,m);var v=this.bounds=h.getBounds(m),g=this.fitScale=h.scale(),y=h.translate();if(!isFinite(v[0][0])||!isFinite(v[0][1])||!isFinite(v[1][0])||!isFinite(v[1][1])||isNaN(y[0])||isNaN(y[0])){for(var b=this.graphDiv,x=[\"projection.rotation\",\"center\",\"lonaxis.range\",\"lataxis.range\"],_=\"Invalid geo settings, relayout'ing to default view.\",w={},M=0;M<x.length;M++)w[this.id+\".\"+x[M]]=null;return this.viewInitial=null,u.warn(_),b._promises.push(l.relayout(b,w)),_}var k=this.midPt=[(v[0][0]+v[1][0])/2,(v[0][1]+v[1][1])/2];if(h.scale(a.scale*g).translate([y[0]+(k[0]-y[0]),y[1]+(k[1]-y[1])]).clipExtent(v),e._isAlbersUsa){var A=h([c.lon,c.lat]),T=h.translate();h.translate([T[0]-(A[0]-T[0]),T[1]-(A[1]-T[1])])}},_.updateBaseLayers=function(t,e){function r(t){return\"lonaxis\"===t||\"lataxis\"===t}function n(t){return Boolean(y.lineLayers[t])}function i(t){return Boolean(y.fillLayers[t])}var o=this,l=o.topojson,u=o.layers,f=o.basePaths,d=this.hasChoropleth?y.layersForChoropleth:y.layers,p=d.filter(function(t){return n(t)||i(t)?e[\"show\"+t]:!r(t)||e[t].showgrid}),m=o.framework.selectAll(\".layer\").data(p,String);m.exit().each(function(t){delete u[t],delete f[t],s.select(this).remove()}),m.enter().append(\"g\").attr(\"class\",function(t){return\"layer \"+t}).each(function(t){var e=u[t]=s.select(this);\"bg\"===t?o.bgRect=e.append(\"rect\").style(\"pointer-events\",\"all\"):r(t)?f[t]=e.append(\"path\").style(\"fill\",\"none\"):\"backplot\"===t?e.append(\"g\").classed(\"choroplethlayer\",!0):\"frontplot\"===t?e.append(\"g\").classed(\"scatterlayer\",!0):n(t)?f[t]=e.append(\"path\").style(\"fill\",\"none\").style(\"stroke-miterlimit\",2):i(t)&&(f[t]=e.append(\"path\").style(\"stroke\",\"none\"))}),m.order(),m.each(function(t){var o=f[t],s=y.layerNameToAdjective[t];\"frame\"===t?o.datum(y.sphereSVG):n(t)||i(t)?o.datum(x(l,l.objects[t])):r(t)&&o.datum(a(t,e)).call(c.stroke,e[t].gridcolor).call(h.dashLine,\"\",e[t].gridwidth),n(t)?o.call(c.stroke,e[s+\"color\"]).call(h.dashLine,\"\",e[s+\"width\"]):i(t)&&o.call(c.fill,e[s+\"color\"])})},_.updateDims=function(t,e){var r=this.bounds,n=(e.framewidth||0)/2,i=r[0][0]-n,a=r[0][1]-n,o=r[1][0]-i+n,s=r[1][1]-a+n;h.setRect(this.clipRect,i,a,o,s),this.bgRect.call(h.setRect,i,a,o,s).call(c.fill,e.bgcolor),this.xaxis._offset=i,this.xaxis._length=o,this.yaxis._offset=a,this.yaxis._length=s},_.updateFx=function(t,e){function r(){var t=i.viewInitial,e={};for(var r in t)e[i.id+\".\"+r]=t[r];l.relayout(a,e),a.emit(\"plotly_doubleclick\",null)}function n(t){return i.projection.invert([t[0]+i.xaxis._offset,t[1]+i.yaxis._offset])}var i=this,a=i.graphDiv,o=i.bgRect,u=t.dragmode;if(!i.isStatic){if(\"pan\"===u)o.node().onmousedown=null,o.call(g(i,e)),o.on(\"dblclick.zoom\",r);else if(\"select\"===u||\"lasso\"===u){o.on(\".zoom\",null);var c;\"select\"===u?c=function(t,e){(t.range={})[i.id]=[n([e.xmin,e.ymin]),n([e.xmax,e.ymax])]}:\"lasso\"===u&&(c=function(t,e,r){(t.lassoPoints={})[i.id]=r.filtered.map(n)});var h={element:i.bgRect.node(),gd:a,plotinfo:{xaxis:i.xaxis,yaxis:i.yaxis,fillRangeItems:c},xaxes:[i.xaxis],yaxes:[i.yaxis],subplot:i.id};h.prepFn=function(t,e,r){v(t,e,r,h,u)},h.doneFn=function(e,r){2===r&&t._zoomlayer.selectAll(\".select-outline\").remove()},m.init(h)}o.on(\"mousemove\",function(){var t=i.projection.invert(s.mouse(this));if(!t||isNaN(t[0])||isNaN(t[1]))return m.unhover(a,s.event);i.xaxis.p2c=function(){return t[0]},i.yaxis.p2c=function(){return t[1]},f.hover(a,s.event,i.id)}),o.on(\"mouseout\",function(){m.unhover(a,s.event)}),o.on(\"click\",function(){f.click(a,s.event)})}},_.makeFramework=function(){var t=this,e=t.graphDiv._fullLayout,r=\"clip\"+e._uid+t.id;t.clipDef=e._clips.append(\"clipPath\").attr(\"id\",r),t.clipRect=t.clipDef.append(\"rect\"),t.framework=s.select(t.container).append(\"g\").attr(\"class\",\"geo \"+t.id).call(h.setClipUrl,r),t.project=function(e){var r=t.projection(e);return r?[r[0]-t.xaxis._offset,r[1]-t.yaxis._offset]:[null,null]},t.xaxis={_id:\"x\",c2p:function(e){return t.project(e)[0]}},t.yaxis={_id:\"y\",c2p:function(e){return t.project(e)[1]}},t.mockAxis={type:\"linear\",showexponent:\"all\",exponentformat:\"B\"},p.setConvert(t.mockAxis,e)},_.saveViewInitial=function(t){var e=t.center||{},r=t.projection,n=r.rotation||{};t._isScoped?this.viewInitial={\"center.lon\":e.lon,\"center.lat\":e.lat,\"projection.scale\":r.scale}:t._isClipped?this.viewInitial={\"projection.scale\":r.scale,\"projection.rotation.lon\":n.lon,\"projection.rotation.lat\":n.lat}:this.viewInitial={\"center.lon\":e.lon,\"center.lat\":e.lat,\"projection.scale\":r.scale,\"projection.rotation.lon\":n.lon}},_.render=function(){function t(t){var e=n(t.lonlat);return e?\"translate(\"+e[0]+\",\"+e[1]+\")\":null}function e(t){return n.isLonLatOverEdges(t.lonlat)?\"none\":null}var r,n=this.projection,i=n.getPath();for(r in this.basePaths)this.basePaths[r].attr(\"d\",i);for(r in this.dataPaths)this.dataPaths[r].attr(\"d\",function(t){return i(t.geojson)});for(r in this.dataPoints)this.dataPoints[r].attr(\"display\",e).attr(\"transform\",t)}},{\"../../components/color\":604,\"../../components/dragelement\":625,\"../../components/drawing\":628,\"../../components/fx\":645,\"../../lib\":728,\"../../lib/topojson_utils\":753,\"../../plotly\":767,\"../cartesian/axes\":772,\"../cartesian/select\":788,\"../plots\":831,\"./constants\":798,\"./projections\":804,\"./zoom\":805,d3:122,\"topojson-client\":536}],800:[function(t,e,r){\"use strict\";var n=t(\"./geo\"),i=t(\"../../plots/plots\"),a=t(\"../../lib\").counterRegex,o=\"geo\";r.name=o,r.attr=o,r.idRoot=o,r.idRegex=r.attrRegex=a(o),r.attributes=t(\"./layout/attributes\"),r.layoutAttributes=t(\"./layout/layout_attributes\"),r.supplyLayoutDefaults=t(\"./layout/defaults\"),r.plot=function(t){var e=t._fullLayout,r=t.calcdata,a=i.getSubplotIds(e,o);void 0===window.PlotlyGeoAssets&&(window.PlotlyGeoAssets={topojson:{}});for(var s=0;s<a.length;s++){var l=a[s],u=i.getSubplotCalcData(r,o,l),c=e[l],h=c._subplot;h||(h=n({id:l,graphDiv:t,container:e._geolayer.node(),topojsonURL:t._context.topojsonURL,staticPlot:t._context.staticPlot}),e[l]._subplot=h),h.plot(u,e,t._promises)}},r.clean=function(t,e,r,n){for(var a=i.getSubplotIds(n,o),s=0;s<a.length;s++){var l=a[s],u=n[l]._subplot;!e[l]&&u&&(u.framework.remove(),u.clipDef.remove())}},r.updateFx=function(t){for(var e=i.getSubplotIds(t,o),r=0;r<e.length;r++){var n=t[e[r]];n._subplot.updateFx(t,n)}}},{\"../../lib\":728,\"../../plots/plots\":831,\"./geo\":799,\"./layout/attributes\":801,\"./layout/defaults\":802,\"./layout/layout_attributes\":803}],801:[function(t,e,r){\"use strict\";e.exports={geo:{valType:\"subplotid\",dflt:\"geo\",editType:\"calc\"}}},{}],802:[function(t,e,r){\"use strict\";function n(t,e,r){var n,i=r(\"resolution\"),o=r(\"scope\"),l=a.scopeDefaults[o],u=r(\"projection.type\",l.projType),c=e._isAlbersUsa=\"albers usa\"===u;c&&(o=e.scope=\"usa\");var h=e._isScoped=\"world\"!==o,f=e._isConic=-1!==u.indexOf(\"conic\");e._isClipped=!!a.lonaxisSpan[u];for(var d=0;d<s.length;d++){var p,m=s[d],v=[30,10][d];if(h)p=l[m+\"Range\"];else{var g=a[m+\"Span\"],y=(g[u]||g[\"*\"])/2,b=r(\"projection.rotation.\"+m.substr(0,3),l.projRotate[d]);p=[b-y,b+y]}r(m+\".tick0\",r(m+\".range\",p)[0]),r(m+\".dtick\",v),n=r(m+\".showgrid\"),n&&(r(m+\".gridcolor\"),r(m+\".gridwidth\"))}var x=e.lonaxis.range,_=e.lataxis.range,w=x[0],M=x[1];w>0&&M<0&&(M+=360);var k,A=(w+M)/2;if(!c){var T=h?l.projRotate:[A,0,0];k=r(\"projection.rotation.lon\",T[0]),r(\"projection.rotation.lat\",T[1]),r(\"projection.rotation.roll\",T[2]),n=r(\"showcoastlines\",!h),n&&(r(\"coastlinecolor\"),r(\"coastlinewidth\")),n=r(\"showocean\"),n&&r(\"oceancolor\")}var S,E;if(c?(S=-96.6,E=38.7):(S=h?A:k,E=(_[0]+_[1])/2),r(\"center.lon\",S),r(\"center.lat\",E),f){r(\"projection.parallels\",l.projParallels||[0,60])}r(\"projection.scale\"),n=r(\"showland\"),n&&r(\"landcolor\"),n=r(\"showlakes\"),n&&r(\"lakecolor\"),n=r(\"showrivers\"),n&&(r(\"rivercolor\"),r(\"riverwidth\")),n=r(\"showcountries\",h&&\"usa\"!==o),n&&(r(\"countrycolor\"),r(\"countrywidth\")),(\"usa\"===o||\"north america\"===o&&50===i)&&(r(\"showsubunits\",!0),r(\"subunitcolor\"),r(\"subunitwidth\")),h||(n=r(\"showframe\",!0))&&(r(\"framecolor\"),r(\"framewidth\")),r(\"bgcolor\")}var i=t(\"../../subplot_defaults\"),a=t(\"../constants\"),o=t(\"./layout_attributes\"),s=a.axesNames;e.exports=function(t,e,r){i(t,e,r,{type:\"geo\",attributes:o,handleDefaults:n,partition:\"y\"})}},{\"../../subplot_defaults\":838,\"../constants\":798,\"./layout_attributes\":803}],803:[function(t,e,r){\"use strict\";var n=t(\"../../../components/color/attributes\"),i=t(\"../constants\"),a=t(\"../../../plot_api/edit_types\").overrideAll,o={range:{valType:\"info_array\",items:[{valType:\"number\"},{valType:\"number\"}]},showgrid:{valType:\"boolean\",dflt:!1},tick0:{valType:\"number\"},dtick:{valType:\"number\"},gridcolor:{valType:\"color\",dflt:n.lightLine},gridwidth:{valType:\"number\",min:0,dflt:1}};e.exports=a({domain:{x:{valType:\"info_array\",items:[{valType:\"number\",min:0,max:1},{valType:\"number\",min:0,max:1}],dflt:[0,1]},y:{valType:\"info_array\",items:[{valType:\"number\",min:0,max:1},{valType:\"number\",min:0,max:1}],dflt:[0,1]}},resolution:{valType:\"enumerated\",values:[110,50],dflt:110,coerceNumber:!0},scope:{valType:\"enumerated\",values:Object.keys(i.scopeDefaults),dflt:\"world\"},projection:{type:{valType:\"enumerated\",values:Object.keys(i.projNames)},rotation:{lon:{valType:\"number\"},lat:{valType:\"number\"},roll:{valType:\"number\"}},parallels:{valType:\"info_array\",items:[{valType:\"number\"},{valType:\"number\"}]},scale:{valType:\"number\",min:0,dflt:1}},center:{lon:{valType:\"number\"},lat:{valType:\"number\"}},showcoastlines:{valType:\"boolean\"},coastlinecolor:{valType:\"color\",dflt:n.defaultLine},coastlinewidth:{valType:\"number\",min:0,dflt:1},showland:{valType:\"boolean\",dflt:!1},landcolor:{valType:\"color\",dflt:i.landColor},showocean:{valType:\"boolean\",dflt:!1},oceancolor:{valType:\"color\",dflt:i.waterColor},showlakes:{valType:\"boolean\",dflt:!1},lakecolor:{valType:\"color\",dflt:i.waterColor},showrivers:{valType:\"boolean\",dflt:!1},rivercolor:{valType:\"color\",dflt:i.waterColor},riverwidth:{valType:\"number\",min:0,dflt:1},showcountries:{valType:\"boolean\"},countrycolor:{valType:\"color\",dflt:n.defaultLine},countrywidth:{valType:\"number\",min:0,dflt:1},showsubunits:{valType:\"boolean\"},subunitcolor:{valType:\"color\",dflt:n.defaultLine},subunitwidth:{valType:\"number\",min:0,dflt:1},showframe:{valType:\"boolean\"},framecolor:{valType:\"color\",dflt:n.defaultLine},framewidth:{valType:\"number\",min:0,dflt:1},bgcolor:{valType:\"color\",dflt:n.background},lonaxis:o,lataxis:o},\"plot\",\"from-root\")},{\"../../../components/color/attributes\":603,\"../../../plot_api/edit_types\":756,\"../constants\":798}],804:[function(t,e,r){\"use strict\";function n(t){function e(t,e){return{type:\"Feature\",id:t.id,properties:t.properties,geometry:r(t.geometry,e)}}function r(e,n){if(!e)return null;if(\"GeometryCollection\"===e.type)return{type:\"GeometryCollection\",geometries:object.geometries.map(function(t){return r(t,n)})};if(!S.hasOwnProperty(e.type))return null;var i=S[e.type];return t.geo.stream(e,n(i)),i.result()}function n(){}function i(t){if((e=t.length)<4)return!1;for(var e,r=0,n=t[e-1][1]*t[0][0]-t[e-1][0]*t[0][1];++r<e;)n+=t[r-1][1]*t[r][0]-t[r-1][0]*t[r][1];return n<=0}function a(t,e){for(var r=e[0],n=e[1],i=!1,a=0,o=t.length,s=o-1;a<o;s=a++){var l=t[a],u=l[0],c=l[1],h=t[s],f=h[0],d=h[1];c>n^d>n&&r<(f-u)*(n-c)/(d-c)+u&&(i=!i)}return i}function o(t){return t?t/Math.sin(t):1}function s(t){return t>1?I:t<-1?-I:Math.asin(t)}function l(t){return t>1?0:t<-1?C:Math.acos(t)}function u(t,e){var r=(2+I)*Math.sin(e);e/=2;for(var n=0,i=1/0;n<10&&Math.abs(i)>E;n++){var a=Math.cos(e);e-=i=(e+Math.sin(e)*(a+2)-r)/(2*a*(1+a))}return[2/Math.sqrt(C*(4+C))*t*(1+Math.cos(e)),2*Math.sqrt(C/(4+C))*Math.sin(e)]}function c(t,e){function r(r,n){var i=R(r/e,n);return i[0]*=t,i}return arguments.length<2&&(e=t),1===e?R:e===1/0?f:(r.invert=function(r,n){var i=R.invert(r/t,n);return i[0]*=e,i},r)}function h(){var t=2,e=O(c),r=e(t);return r.coefficient=function(r){return arguments.length?e(t=+r):t},r}function f(t,e){return[t*Math.cos(e)/Math.cos(e/=2),2*Math.sin(e)]}function d(t,e){return[3*t/(2*C)*Math.sqrt(C*C/3-e*e),e]}function p(t,e){return[t,1.25*Math.log(Math.tan(C/4+.4*e))]}function m(t){return function(e){var r,n=t*Math.sin(e),i=30;do{e-=r=(e+Math.sin(e)-n)/(1+Math.cos(e))}while(Math.abs(r)>E&&--i>0);return e/2}}function v(t,e){var r=e*e,n=r*r;return[t*(.8707-.131979*r+n*(n*(.003971*r-.001529*n)-.013791)),e*(1.007226+r*(.015085+n*(.028874*r-.044475-.005916*n)))]}function g(t,e){var r,n=Math.min(18,36*Math.abs(e)/C),i=Math.floor(n),a=n-i,o=(r=j[i])[0],s=r[1],l=(r=j[++i])[0],u=r[1],c=(r=j[Math.min(19,++i)])[0],h=r[1];return[t*(l+a*(c-o)/2+a*a*(c-2*l+o)/2),(e>0?I:-I)*(u+a*(h-s)/2+a*a*(h-2*u+s)/2)]}function y(t,e){return[t*Math.cos(e),e]}function b(t,e){var r=Math.cos(e),n=o(l(r*Math.cos(t/=2)));return[2*r*Math.sin(t)*n,Math.sin(e)*n]}function x(t,e){var r=b(t,e);return[(r[0]+t/I)/2,(r[1]+e)/2]}t.geo.project=function(t,e){var n=e.stream;if(!n)throw new Error(\"not yet supported\");return(t&&_.hasOwnProperty(t.type)?_[t.type]:r)(t,n)};var _={Feature:e,FeatureCollection:function(t,r){return{type:\"FeatureCollection\",features:t.features.map(function(t){return e(t,r)})}}},w=[],M=[],k={point:function(t,e){w.push([t,e])},result:function(){var t=w.length?w.length<2?{type:\"Point\",coordinates:w[0]}:{type:\"MultiPoint\",coordinates:w}:null;return w=[],t}},A={lineStart:n,point:function(t,e){w.push([t,e])},lineEnd:function(){w.length&&(M.push(w),w=[])},result:function(){var t=M.length?M.length<2?{type:\"LineString\",coordinates:M[0]}:{type:\"MultiLineString\",coordinates:M}:null;return M=[],t}},T={polygonStart:n,lineStart:n,point:function(t,e){w.push([t,e])},lineEnd:function(){var t=w.length;if(t){do{w.push(w[0].slice())}while(++t<4);M.push(w),w=[]}},polygonEnd:n,result:function(){if(!M.length)return null;var t=[],e=[];return M.forEach(function(r){i(r)?t.push([r]):e.push(r)}),e.forEach(function(e){var r=e[0];t.some(function(t){if(a(t[0],r))return t.push(e),!0})||t.push([e])}),M=[],t.length?t.length>1?{type:\"MultiPolygon\",coordinates:t}:{type:\"Polygon\",coordinates:t[0]}:null}},S={Point:k,MultiPoint:k,LineString:A,MultiLineString:A,Polygon:T,MultiPolygon:T,Sphere:T},E=1e-6,L=E*E,C=Math.PI,I=C/2,z=(Math.sqrt(C),C/180),D=180/C,P=t.geo.projection,O=t.geo.projectionMutator;t.geo.interrupt=function(e){function r(t,r){for(var n=r<0?-1:1,i=l[+(r<0)],a=0,o=i.length-1;a<o&&t>i[a][2][0];++a);var s=e(t-i[a][1][0],r);return s[0]+=e(i[a][1][0],n*r>n*i[a][0][1]?i[a][0][1]:r)[0],s}function n(){s=l.map(function(t){return t.map(function(t){var r,n=e(t[0][0],t[0][1])[0],i=e(t[2][0],t[2][1])[0],a=e(t[1][0],t[0][1])[1],o=e(t[1][0],t[1][1])[1];return a>o&&(r=a,a=o,o=r),[[n,a],[i,o]]})})}function i(){for(var e=1e-6,r=[],n=0,i=l[0].length;n<i;++n){var o=l[0][n],s=180*o[0][0]/C,u=180*o[0][1]/C,c=180*o[1][1]/C,h=180*o[2][0]/C,f=180*o[2][1]/C;r.push(a([[s+e,u+e],[s+e,c-e],[h-e,c-e],[h-e,f+e]],30))}for(var n=l[1].length-1;n>=0;--n){var o=l[1][n],s=180*o[0][0]/C,u=180*o[0][1]/C,c=180*o[1][1]/C,h=180*o[2][0]/C,f=180*o[2][1]/C;r.push(a([[h-e,f-e],[h-e,c+e],[s+e,c+e],[s+e,u-e]],30))}return{type:\"Polygon\",coordinates:[t.merge(r)]}}function a(t,e){for(var r,n,i,a=-1,o=t.length,s=t[0],l=[];++a<o;){r=t[a],n=(r[0]-s[0])/e,i=(r[1]-s[1])/e;for(var u=0;u<e;++u)l.push([s[0]+u*n,s[1]+u*i]);s=r}return l.push(r),l}function o(t,e){return Math.abs(t[0]-e[0])<E&&Math.abs(t[1]-e[1])<E}var s,l=[[[[-C,0],[0,I],[C,0]]],[[[-C,0],[0,-I],[C,0]]]];e.invert&&(r.invert=function(t,n){for(var i=s[+(n<0)],a=l[+(n<0)],u=0,c=i.length;u<c;++u){var h=i[u];if(h[0][0]<=t&&t<h[1][0]&&h[0][1]<=n&&n<h[1][1]){var f=e.invert(t-e(a[u][1][0],0)[0],n);return f[0]+=a[u][1][0],o(r(f[0],f[1]),[t,n])?f:null}}});var u=t.geo.projection(r),c=u.stream;return u.stream=function(e){var r=u.rotate(),n=c(e),a=(u.rotate([0,0]),c(e));return u.rotate(r),n.sphere=function(){t.geo.stream(i(),a)},n},u.lobes=function(t){return arguments.length?(l=t.map(function(t){return t.map(function(t){return[[t[0][0]*C/180,t[0][1]*C/180],[t[1][0]*C/180,t[1][1]*C/180],[t[2][0]*C/180,t[2][1]*C/180]]})}),n(),u):l.map(function(t){return t.map(function(t){return[[180*t[0][0]/C,180*t[0][1]/C],[180*t[1][0]/C,180*t[1][1]/C],[180*t[2][0]/C,180*t[2][1]/C]]})})},u},u.invert=function(t,e){var r=.5*e*Math.sqrt((4+C)/C),n=s(r),i=Math.cos(n);return[t/(2/Math.sqrt(C*(4+C))*(1+i)),s((n+r*(i+2))/(2+I))]},(t.geo.eckert4=function(){return P(u)}).raw=u;var R=t.geo.azimuthalEqualArea.raw;f.invert=function(t,e){var r=2*s(e/2);return[t*Math.cos(r/2)/Math.cos(r),r]},(t.geo.hammer=h).raw=c,d.invert=function(t,e){return[2/3*C*t/Math.sqrt(C*C/3-e*e),e]},(t.geo.kavrayskiy7=function(){return P(d)}).raw=d,p.invert=function(t,e){return[t,2.5*Math.atan(Math.exp(.8*e))-.625*C]},(t.geo.miller=function(){return P(p)}).raw=p;var F=(m(C),function(t,e,r){function n(r,n){return[t*r*Math.cos(n=i(n)),e*Math.sin(n)]}var i=m(r);return n.invert=function(n,i){var a=s(i/e);return[n/(t*Math.cos(a)),s((2*a+Math.sin(2*a))/r)]},n}(Math.SQRT2/I,Math.SQRT2,C));(t.geo.mollweide=function(){return P(F)}).raw=F,v.invert=function(t,e){var r,n=e,i=25;do{var a=n*n,o=a*a;n-=r=(n*(1.007226+a*(.015085+o*(.028874*a-.044475-.005916*o)))-e)/(1.007226+a*(.045255+o*(.259866*a-.311325-.005916*11*o)))}while(Math.abs(r)>E&&--i>0);return[t/(.8707+(a=n*n)*(a*(a*a*a*(.003971-.001529*a)-.013791)-.131979)),n]},(t.geo.naturalEarth=function(){return P(v)}).raw=v;var j=[[.9986,-.062],[1,0],[.9986,.062],[.9954,.124],[.99,.186],[.9822,.248],[.973,.31],[.96,.372],[.9427,.434],[.9216,.4958],[.8962,.5571],[.8679,.6176],[.835,.6769],[.7986,.7346],[.7597,.7903],[.7186,.8435],[.6732,.8936],[.6213,.9394],[.5722,.9761],[.5322,1]];j.forEach(function(t){t[1]*=1.0144}),g.invert=function(t,e){var r=e/I,n=90*r,i=Math.min(18,Math.abs(n/5)),a=Math.max(0,Math.floor(i));do{var o=j[a][1],s=j[a+1][1],l=j[Math.min(19,a+2)][1],u=l-o,c=l-2*s+o,h=2*(Math.abs(r)-s)/u,f=c/u,d=h*(1-f*h*(1-2*f*h));if(d>=0||1===a){n=(e>=0?5:-5)*(d+i);var p,m=50;do{i=Math.min(18,Math.abs(n)/5),a=Math.floor(i),d=i-a,o=j[a][1],s=j[a+1][1],l=j[Math.min(19,a+2)][1],n-=(p=(e>=0?I:-I)*(s+d*(l-o)/2+d*d*(l-2*s+o)/2)-e)*D}while(Math.abs(p)>L&&--m>0);break}}while(--a>=0);var v=j[a][0],g=j[a+1][0],y=j[Math.min(19,a+2)][0];return[t/(g+d*(y-v)/2+d*d*(y-2*g+v)/2),n*z]},(t.geo.robinson=function(){return P(g)}).raw=g,y.invert=function(t,e){return[t/Math.cos(e),e]},(t.geo.sinusoidal=function(){return P(y)}).raw=y,b.invert=function(t,e){if(!(t*t+4*e*e>C*C+E)){var r=t,n=e,i=25;do{var a,o=Math.sin(r),s=Math.sin(r/2),u=Math.cos(r/2),c=Math.sin(n),h=Math.cos(n),f=Math.sin(2*n),d=c*c,p=h*h,m=s*s,v=1-p*u*u,g=v?l(h*u)*Math.sqrt(a=1/v):a=0,y=2*g*h*s-t,b=g*c-e,x=a*(p*m+g*h*u*d),_=a*(.5*o*f-2*g*c*s),w=.25*a*(f*s-g*c*p*o),M=a*(d*u+g*m*h),k=_*w-M*x;if(!k)break;var A=(b*_-y*M)/k,T=(y*w-b*x)/k;r-=A,n-=T}while((Math.abs(A)>E||Math.abs(T)>E)&&--i>0);return[r,n]}},(t.geo.aitoff=function(){return P(b)}).raw=b,x.invert=function(t,e){var r=t,n=e,i=25;do{var a,o=Math.cos(n),s=Math.sin(n),u=Math.sin(2*n),c=s*s,h=o*o,f=Math.sin(r),d=Math.cos(r/2),p=Math.sin(r/2),m=p*p,v=1-h*d*d,g=v?l(o*d)*Math.sqrt(a=1/v):a=0,y=.5*(2*g*o*p+r/I)-t,b=.5*(g*s+n)-e,x=.5*a*(h*m+g*o*d*c)+.5/I,_=a*(f*u/4-g*s*p),w=.125*a*(u*p-g*s*h*f),M=.5*a*(c*d+g*m*o)+.5,k=_*w-M*x,A=(b*_-y*M)/k,T=(y*w-b*x)/k;r-=A,n-=T}while((Math.abs(A)>E||Math.abs(T)>E)&&--i>0);return[r,n]},(t.geo.winkel3=function(){return P(x)}).raw=x}e.exports=n},{}],805:[function(t,e,r){\"use strict\";function n(t,e){var r=t.projection;return(e._isScoped?o:e._isClipped?l:s)(t,r)}function i(t,e){return w.behavior.zoom().translate(e.translate()).scale(e.scale())}function a(t,e,r){function n(t,e){var r=M.nestedProperty(s,t);r.get()!==e&&(r.set(e),M.nestedProperty(o,t).set(e),l[i+\".\"+t]=e)}var i=t.id,a=t.graphDiv,o=a.layout[i],s=a._fullLayout[i],l={};r(n),n(\"projection.scale\",e.scale()/t.fitScale),a.emit(\"plotly_relayout\",l)}function o(t,e){function r(){w.select(this).style(T)}function n(){e.scale(w.event.scale).translate(w.event.translate),t.render()}function o(r){var n=e.invert(t.midPt);r(\"center.lon\",n[0]),r(\"center.lat\",n[1])}function s(){w.select(this).style(S),a(t,e,o)}var l=i(t,e);return l.on(\"zoomstart\",r).on(\"zoom\",n).on(\"zoomend\",s),l}function s(t,e){function r(t){return e.invert(t)}function n(t){var n=e(r(t));return Math.abs(n[0]-t[0])>b||Math.abs(n[1]-t[1])>b}function o(){w.select(this).style(T),c=w.mouse(this),h=e.rotate(),f=e.translate(),d=h,p=r(c)}function s(){if(m=w.mouse(this),n(c))return y.scale(e.scale()),void y.translate(e.translate());e.scale(w.event.scale),e.translate([f[0],w.event.translate[1]]),p?r(m)&&(g=r(m),v=[d[0]+(g[0]-p[0]),h[1],h[2]],e.rotate(v),d=v):(c=m,p=r(c)),t.render()}function l(){w.select(this).style(S),a(t,e,u)}function u(r){var n=e.rotate(),i=e.invert(t.midPt);r(\"projection.rotation.lon\",-n[0]),r(\"center.lon\",i[0]),r(\"center.lat\",i[1])}var c,h,f,d,p,m,v,g,y=i(t,e),b=2;return y.on(\"zoomstart\",o).on(\"zoom\",s).on(\"zoomend\",l),y}function l(t,e){function r(t){y++||t({type:\"zoomstart\"})}function n(t){t({type:\"zoom\"})}function o(t){--y||t({type:\"zoomend\"})}function s(t){var r=e.rotate();t(\"projection.rotation.lon\",-r[0]),t(\"projection.rotation.lat\",-r[1])}var l,p={r:e.rotate(),k:e.scale()},m=i(t,e),v=_(m,\"zoomstart\",\"zoom\",\"zoomend\"),y=0,b=m.on;return m.on(\"zoomstart\",function(){w.select(this).style(T);var t=w.mouse(this),i=e.rotate(),a=i,o=e.translate(),s=c(i);l=u(e,t),b.call(m,\"zoom\",function(){var r=w.mouse(this);if(e.scale(p.k=w.event.scale),l){if(u(e,r)){e.rotate(i).translate(o);var c=u(e,r),m=f(l,c),y=g(h(s,m)),b=p.r=d(y,l,a);isFinite(b[0])&&isFinite(b[1])&&isFinite(b[2])||(b=a),e.rotate(b),a=b}}else t=r,l=u(e,t);n(v.of(this,arguments))}),r(v.of(this,arguments))}).on(\"zoomend\",function(){w.select(this).style(S),b.call(m,\"zoom\",null),o(v.of(this,arguments)),a(t,e,s)}).on(\"zoom.redraw\",function(){t.render()}),w.rebind(m,v,\"on\")}function u(t,e){var r=t.invert(e);return r&&isFinite(r[0])&&isFinite(r[1])&&y(r)}function c(t){var e=.5*t[0]*k,r=.5*t[1]*k,n=.5*t[2]*k,i=Math.sin(e),a=Math.cos(e),o=Math.sin(r),s=Math.cos(r),l=Math.sin(n),u=Math.cos(n);return[a*s*u+i*o*l,i*s*u-a*o*l,a*o*u+i*s*l,a*s*l-i*o*u]}function h(t,e){var r=t[0],n=t[1],i=t[2],a=t[3],o=e[0],s=e[1],l=e[2],u=e[3];return[r*o-n*s-i*l-a*u,r*s+n*o+i*u-a*l,r*l-n*u+i*o+a*s,r*u+n*l-i*s+a*o]}function f(t,e){if(t&&e){var r=x(t,e),n=Math.sqrt(b(r,r)),i=.5*Math.acos(Math.max(-1,Math.min(1,b(t,e)))),a=Math.sin(i)/n;return n&&[Math.cos(i),r[2]*a,-r[1]*a,r[0]*a]}}function d(t,e,r){var n=v(e,2,t[0]);n=v(n,1,t[1]),n=v(n,0,t[2]-r[2]);var i,a,o=e[0],s=e[1],l=e[2],u=n[0],c=n[1],h=n[2],f=Math.atan2(s,o)*A,d=Math.sqrt(o*o+s*s);Math.abs(c)>d?(a=(c>0?90:-90)-f,i=0):(a=Math.asin(c/d)*A-f,i=Math.sqrt(d*d-c*c));var m=180-a-2*f,g=(Math.atan2(h,u)-Math.atan2(l,i))*A,y=(Math.atan2(h,u)-Math.atan2(l,-i))*A;return p(r[0],r[1],a,g)<=p(r[0],r[1],m,y)?[a,g,r[2]]:[m,y,r[2]]}function p(t,e,r,n){var i=m(r-t),a=m(n-e);return Math.sqrt(i*i+a*a)}function m(t){return(t%360+540)%360-180}function v(t,e,r){var n=r*k,i=t.slice(),a=0===e?1:0,o=2===e?1:2,s=Math.cos(n),l=Math.sin(n);return i[a]=t[a]*s-t[o]*l,i[o]=t[o]*s+t[a]*l,i}function g(t){return[Math.atan2(2*(t[0]*t[1]+t[2]*t[3]),1-2*(t[1]*t[1]+t[2]*t[2]))*A,Math.asin(Math.max(-1,Math.min(1,2*(t[0]*t[2]-t[3]*t[1]))))*A,Math.atan2(2*(t[0]*t[3]+t[1]*t[2]),1-2*(t[2]*t[2]+t[3]*t[3]))*A]}function y(t){var e=t[0]*k,r=t[1]*k,n=Math.cos(r);return[n*Math.cos(e),n*Math.sin(e),Math.sin(r)]}function b(t,e){for(var r=0,n=0,i=t.length;n<i;++n)r+=t[n]*e[n];return r}function x(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function _(t){for(var e=0,r=arguments.length,n=[];++e<r;)n.push(arguments[e]);var i=w.dispatch.apply(null,n);return i.of=function(e,r){return function(n){var a;try{a=n.sourceEvent=w.event,n.target=t,w.event=n,i[n.type].apply(e,r)}finally{w.event=a}}},i}var w=t(\"d3\"),M=t(\"../../lib\"),k=Math.PI/180,A=180/Math.PI,T={cursor:\"pointer\"},S={cursor:\"auto\"};e.exports=n},{\"../../lib\":728,d3:122}],806:[function(t,e,r){\"use strict\";function n(t,e){this.element=t,this.plot=e,this.mouseListener=null,this.wheelListener=null,this.lastInputTime=Date.now(),this.lastPos=[0,0],this.boxEnabled=!1,this.boxInited=!1,this.boxStart=[0,0],this.boxEnd=[0,0],this.dragStart=[0,0]}function i(t){function e(){t.xaxis.autorange=!1,t.yaxis.autorange=!1}function r(){for(var e=t.graphDiv._fullLayout._axisConstraintGroups,r=t.xaxis._id,n=t.yaxis._id,i=0;i<e.length;i++)if(-1!==e[i][r]){if(-1!==e[i][n])return!0;break}return!1}function i(n,i,a){function o(e,r,n){var i=Math.min(r,n),a=Math.max(r,n);i!==a?(f[e]=i,f[e+2]=a,h.dataBox=f,t.setRanges(f)):(t.selectBox.selectBox=[0,0,1,1],t.glplot.setDirty())}var s,u,f=t.calcDataBox(),d=c.viewBox,p=h.lastPos[0],m=h.lastPos[1],v=l.MINDRAG*c.pixelRatio,g=l.MINZOOM*c.pixelRatio;switch(i*=c.pixelRatio,a*=c.pixelRatio,a=d[3]-d[1]-a,t.fullLayout.dragmode){case\"zoom\":if(n){var y=i/(d[2]-d[0])*(f[2]-f[0])+f[0],b=a/(d[3]-d[1])*(f[3]-f[1])+f[1];h.boxInited||(h.boxStart[0]=y,h.boxStart[1]=b,h.dragStart[0]=i,h.dragStart[1]=a),h.boxEnd[0]=y,h.boxEnd[1]=b,h.boxInited=!0,h.boxEnabled||h.boxStart[0]===h.boxEnd[0]&&h.boxStart[1]===h.boxEnd[1]||(h.boxEnabled=!0);var x=Math.abs(h.dragStart[0]-i)<g,_=Math.abs(h.dragStart[1]-a)<g;if(!r()||x&&_)x&&(h.boxEnd[0]=h.boxStart[0]),_&&(h.boxEnd[1]=h.boxStart[1]);else{s=h.boxEnd[0]-h.boxStart[0],u=h.boxEnd[1]-h.boxStart[1];var w=(f[3]-f[1])/(f[2]-f[0]);Math.abs(s*w)>Math.abs(u)?(h.boxEnd[1]=h.boxStart[1]+Math.abs(s)*w*(u>=0?1:-1),h.boxEnd[1]<f[1]?(h.boxEnd[1]=f[1],h.boxEnd[0]=h.boxStart[0]+(f[1]-h.boxStart[1])/Math.abs(w)):h.boxEnd[1]>f[3]&&(h.boxEnd[1]=f[3],h.boxEnd[0]=h.boxStart[0]+(f[3]-h.boxStart[1])/Math.abs(w))):(h.boxEnd[0]=h.boxStart[0]+Math.abs(u)/w*(s>=0?1:-1),h.boxEnd[0]<f[0]?(h.boxEnd[0]=f[0],h.boxEnd[1]=h.boxStart[1]+(f[0]-h.boxStart[0])*Math.abs(w)):h.boxEnd[0]>f[2]&&(h.boxEnd[0]=f[2],h.boxEnd[1]=h.boxStart[1]+(f[2]-h.boxStart[0])*Math.abs(w)))}}else h.boxEnabled?(s=h.boxStart[0]!==h.boxEnd[0],u=h.boxStart[1]!==h.boxEnd[1],s||u?(s&&(o(0,h.boxStart[0],h.boxEnd[0]),t.xaxis.autorange=!1),u&&(o(1,h.boxStart[1],h.boxEnd[1]),t.yaxis.autorange=!1),t.relayoutCallback()):t.glplot.setDirty(),h.boxEnabled=!1,h.boxInited=!1):h.boxInited&&(h.boxInited=!1);break;case\"pan\":h.boxEnabled=!1,h.boxInited=!1,n?(h.panning||(h.dragStart[0]=i,h.dragStart[1]=a),Math.abs(h.dragStart[0]-i)<v&&(i=h.dragStart[0]),Math.abs(h.dragStart[1]-a)<v&&(a=h.dragStart[1]),s=(p-i)*(f[2]-f[0])/(c.viewBox[2]-c.viewBox[0]),u=(m-a)*(f[3]-f[1])/(c.viewBox[3]-c.viewBox[1]),f[0]+=s,f[2]+=s,f[1]+=u,f[3]+=u,t.setRanges(f),h.panning=!0,h.lastInputTime=Date.now(),e(),t.cameraChanged(),t.handleAnnotations()):h.panning&&(h.panning=!1,t.relayoutCallback())}h.lastPos[0]=i,h.lastPos[1]=a}var u=t.mouseContainer,c=t.glplot,h=new n(u,c);return h.mouseListener=a(u,i),u.addEventListener(\"touchstart\",function(t){var e=s(t.changedTouches[0],u);i(0,e[0],e[1]),i(1,e[0],e[1])}),u.addEventListener(\"touchmove\",function(t){t.preventDefault();var e=s(t.changedTouches[0],u);i(1,e[0],e[1])}),u.addEventListener(\"touchend\",function(){i(0,h.lastPos[0],h.lastPos[1])}),h.wheelListener=o(u,function(r,n){if(!t.scrollZoom)return!1;var i=t.calcDataBox(),a=c.viewBox,o=h.lastPos[0],s=h.lastPos[1],l=Math.exp(5*n/(a[3]-a[1])),u=o/(a[2]-a[0])*(i[2]-i[0])+i[0],f=s/(a[3]-a[1])*(i[3]-i[1])+i[1];return i[0]=(i[0]-u)*l+u,i[2]=(i[2]-u)*l+u,i[1]=(i[1]-f)*l+f,i[3]=(i[3]-f)*l+f,t.setRanges(i),h.lastInputTime=Date.now(),e(),t.cameraChanged(),t.handleAnnotations(),t.relayoutCallback(),!0}),h}var a=t(\"mouse-change\"),o=t(\"mouse-wheel\"),s=t(\"mouse-event-offset\"),l=t(\"../cartesian/constants\");e.exports=i},{\"../cartesian/constants\":777,\"mouse-change\":452,\"mouse-event-offset\":453,\"mouse-wheel\":455}],807:[function(t,e,r){\"use strict\";function n(t){this.scene=t,this.gl=t.gl,this.pixelRatio=t.pixelRatio,this.screenBox=[0,0,1,1],this.viewBox=[0,0,1,1],this.dataBox=[-1,-1,1,1],this.borderLineEnable=[!1,!1,!1,!1],this.borderLineWidth=[1,1,1,1],this.borderLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.ticks=[[],[]],this.tickEnable=[!0,!0,!1,!1],this.tickPad=[15,15,15,15],this.tickAngle=[0,0,0,0],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickMarkLength=[0,0,0,0],this.tickMarkWidth=[0,0,0,0],this.tickMarkColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labels=[\"x\",\"y\"],this.labelEnable=[!0,!0,!1,!1],this.labelAngle=[0,Math.PI/2,0,3*Math.PI/2],this.labelPad=[15,15,15,15],this.labelSize=[12,12],this.labelFont=[\"sans-serif\",\"sans-serif\"],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.title=\"\",this.titleEnable=!0,this.titleCenter=[0,0,0,0],this.titleAngle=0,this.titleColor=[0,0,0,1],this.titleFont=\"sans-serif\",this.titleSize=18,this.gridLineEnable=[!0,!0],this.gridLineColor=[[0,0,0,.5],[0,0,0,.5]],this.gridLineWidth=[1,1],this.zeroLineEnable=[!0,!0],this.zeroLineWidth=[1,1],this.zeroLineColor=[[0,0,0,1],[0,0,0,1]],this.borderColor=[0,0,0,0],this.backgroundColor=[0,0,0,0],this.static=this.scene.staticPlot}function i(t){return new n(t)}var a=t(\"../plots\"),o=t(\"../cartesian/axes\"),s=t(\"../../lib/html2unicode\"),l=t(\"../../lib/str2rgbarray\"),u=n.prototype,c=[\"xaxis\",\"yaxis\"];u.merge=function(t){this.titleEnable=!1,this.backgroundColor=l(t.plot_bgcolor);var e,r,n,i,a,o,u,h,f,d,p;for(d=0;d<2;++d){for(e=c[d],r=t[this.scene[e]._name],n=/Click to enter .+ title/.test(r.title)?\"\":r.title,p=0;p<=2;p+=2)this.labelEnable[d+p]=!1,this.labels[d+p]=s(n),this.labelColor[d+p]=l(r.titlefont.color),this.labelFont[d+p]=r.titlefont.family,this.labelSize[d+p]=r.titlefont.size,this.labelPad[d+p]=this.getLabelPad(e,r),this.tickEnable[d+p]=!1,this.tickColor[d+p]=l((r.tickfont||{}).color),this.tickAngle[d+p]=\"auto\"===r.tickangle?0:Math.PI*-r.tickangle/180,this.tickPad[d+p]=this.getTickPad(r),this.tickMarkLength[d+p]=0,this.tickMarkWidth[d+p]=r.tickwidth||0,this.tickMarkColor[d+p]=l(r.tickcolor),this.borderLineEnable[d+p]=!1,this.borderLineColor[d+p]=l(r.linecolor),this.borderLineWidth[d+p]=r.linewidth||0;u=this.hasSharedAxis(r),a=this.hasAxisInDfltPos(e,r)&&!u,o=this.hasAxisInAltrPos(e,r)&&!u,i=r.mirror||!1,h=u?-1!==String(i).indexOf(\"all\"):!!i,f=u?\"allticks\"===i:-1!==String(i).indexOf(\"ticks\"),a?this.labelEnable[d]=!0:o&&(this.labelEnable[d+2]=!0),a?this.tickEnable[d]=r.showticklabels:o&&(this.tickEnable[d+2]=r.showticklabels),(a||h)&&(this.borderLineEnable[d]=r.showline),(o||h)&&(this.borderLineEnable[d+2]=r.showline),(a||f)&&(this.tickMarkLength[d]=this.getTickMarkLength(r)),(o||f)&&(this.tickMarkLength[d+2]=this.getTickMarkLength(r)),this.gridLineEnable[d]=r.showgrid,this.gridLineColor[d]=l(r.gridcolor),this.gridLineWidth[d]=r.gridwidth,this.zeroLineEnable[d]=r.zeroline,this.zeroLineColor[d]=l(r.zerolinecolor),this.zeroLineWidth[d]=r.zerolinewidth}},u.hasSharedAxis=function(t){var e=this.scene,r=a.getSubplotIds(e.fullLayout,\"gl2d\");return 0!==o.findSubplotsWithAxis(r,t).indexOf(e.id)},u.hasAxisInDfltPos=function(t,e){var r=e.side;return\"xaxis\"===t?\"bottom\"===r:\"yaxis\"===t?\"left\"===r:void 0},u.hasAxisInAltrPos=function(t,e){var r=e.side;return\"xaxis\"===t?\"top\"===r:\"yaxis\"===t?\"right\"===r:void 0},u.getLabelPad=function(t,e){var r=e.titlefont.size,n=e.showticklabels;return\"xaxis\"===t?\"top\"===e.side?r*(1.5+(n?1:0))-10:r*(1.5+(n?.5:0))-10:\"yaxis\"===t?\"right\"===e.side?10+r*(1.5+(n?1:.5)):10+r*(1.5+(n?.5:0)):void 0},u.getTickPad=function(t){return\"outside\"===t.ticks?10+t.ticklen:15},u.getTickMarkLength=function(t){if(!t.ticks)return 0;var e=t.ticklen;return\"inside\"===t.ticks?-e:e},e.exports=i},{\n", "\"../../lib/html2unicode\":726,\"../../lib/str2rgbarray\":749,\"../cartesian/axes\":772,\"../plots\":831}],808:[function(t,e,r){\"use strict\";var n=t(\"../../plot_api/edit_types\").overrideAll,i=t(\"./scene2d\"),a=t(\"../plots\"),o=t(\"../../constants/xmlns_namespaces\"),s=t(\"../cartesian/constants\"),l=t(\"../cartesian\"),u=t(\"../../components/fx/layout_attributes\");r.name=\"gl2d\",r.attr=[\"xaxis\",\"yaxis\"],r.idRoot=[\"x\",\"y\"],r.idRegex=s.idRegex,r.attrRegex=s.attrRegex,r.attributes=t(\"../cartesian/attributes\"),r.layoutAttrOverrides=n(l.layoutAttributes,\"plot\",\"from-root\"),r.baseLayoutAttrOverrides=n({plot_bgcolor:a.layoutAttributes.plot_bgcolor,hoverlabel:u.hoverlabel},\"plot\",\"nested\"),r.plot=function(t){for(var e=t._fullLayout,r=t._fullData,n=a.getSubplotIds(e,\"gl2d\"),o=0;o<n.length;o++){var s=n[o],l=e._plots[s],u=a.getSubplotData(r,\"gl2d\",s),c=l._scene2d;void 0===c&&(c=new i({id:s,graphDiv:t,container:t.querySelector(\".gl-container\"),staticPlot:t._context.staticPlot,plotGlPixelRatio:t._context.plotGlPixelRatio},e),l._scene2d=c),c.plot(u,t.calcdata,e,t.layout)}},r.clean=function(t,e,r,n){for(var i=a.getSubplotIds(n,\"gl2d\"),o=0;o<i.length;o++){var s=i[o],u=n._plots[s];if(u._scene2d){0===a.getSubplotData(t,\"gl2d\",s).length&&(u._scene2d.destroy(),delete n._plots[s])}}l.clean.apply(this,arguments)},r.drawFramework=function(t){t._context.staticPlot||l.drawFramework(t)},r.toSVG=function(t){for(var e=t._fullLayout,r=a.getSubplotIds(e,\"gl2d\"),n=0;n<r.length;n++){var i=e._plots[r[n]],s=i._scene2d,l=s.toImage(\"png\");e._glimages.append(\"svg:image\").attr({xmlns:o.svg,\"xlink:href\":l,x:0,y:0,width:\"100%\",height:\"100%\",preserveAspectRatio:\"none\"}),s.destroy()}},r.updateFx=function(t){for(var e=a.getSubplotIds(t,\"gl2d\"),r=0;r<e.length;r++){t._plots[e[r]]._scene2d.updateFx(t.dragmode)}}},{\"../../components/fx/layout_attributes\":646,\"../../constants/xmlns_namespaces\":709,\"../../plot_api/edit_types\":756,\"../cartesian\":782,\"../cartesian/attributes\":771,\"../cartesian/constants\":777,\"../plots\":831,\"./scene2d\":809}],809:[function(t,e,r){\"use strict\";function n(t,e){this.container=t.container,this.graphDiv=t.graphDiv,this.pixelRatio=t.plotGlPixelRatio||window.devicePixelRatio,this.id=t.id,this.staticPlot=!!t.staticPlot,this.scrollZoom=this.graphDiv._context.scrollZoom,this.fullData=null,this.updateRefs(e),this.makeFramework(),this.glplotOptions=p(this),this.glplotOptions.merge(e),this.glplot=c(this.glplotOptions),this.camera=m(this),this.traces={},this.spikes=h(this.glplot),this.selectBox=f(this.glplot,{innerFill:!1,outerFill:!0}),this.lastButtonState=0,this.pickResult=null,this.isMouseOver=!0,this.bounds=[1/0,1/0,-1/0,-1/0],this.stopped=!1,this.redraw=this.draw.bind(this),this.redraw()}function i(t,e){for(var r=0;r<2;++r){var n=t[r],i=e[r];if(n.length!==i.length)return!0;for(var a=0;a<n.length;++a)if(n[a].x!==i[a].x)return!0}return!1}var a,o,s=t(\"../../registry\"),l=t(\"../../plots/cartesian/axes\"),u=t(\"../../components/fx\"),c=t(\"gl-plot2d\"),h=t(\"gl-spikes2d\"),f=t(\"gl-select-box\"),d=t(\"webgl-context\"),p=t(\"./convert\"),m=t(\"./camera\"),v=t(\"../../lib/html2unicode\"),g=t(\"../../lib/show_no_webgl_msg\"),y=t(\"../../plots/cartesian/constraints\"),b=y.enforce,x=y.clean,_=[\"xaxis\",\"yaxis\"];e.exports=n;var w=n.prototype;w.makeFramework=function(){if(this.staticPlot){if(!(o||(a=document.createElement(\"canvas\"),o=d({canvas:a,preserveDrawingBuffer:!1,premultipliedAlpha:!0,antialias:!0}))))throw new Error(\"Error creating static canvas/context for image server\");this.canvas=a,this.gl=o}else{var t=document.createElement(\"canvas\"),e=d({canvas:t,premultipliedAlpha:!0});e||g(this),this.canvas=t,this.gl=e}var r=this.canvas;r.style.width=\"100%\",r.style.height=\"100%\",r.style.position=\"absolute\",r.style.top=\"0px\",r.style.left=\"0px\",r.style[\"pointer-events\"]=\"none\",this.updateSize(r),r.className+=\"user-select-none\";var n=this.svgContainer=document.createElementNS(\"http://www.w3.org/2000/svg\",\"svg\");n.style.position=\"absolute\",n.style.top=n.style.left=\"0px\",n.style.width=n.style.height=\"100%\",n.style[\"z-index\"]=20,n.style[\"pointer-events\"]=\"none\";var i=this.mouseContainer=document.createElement(\"div\");i.style.position=\"absolute\",i.style[\"pointer-events\"]=\"auto\";var s=this.container;s.appendChild(r),s.appendChild(n),s.appendChild(i);var l=this;i.addEventListener(\"mouseout\",function(){l.isMouseOver=!1,l.unhover()}),i.addEventListener(\"mouseover\",function(){l.isMouseOver=!0})},w.toImage=function(t){t||(t=\"png\"),this.stopped=!0,this.staticPlot&&this.container.appendChild(a),this.updateSize(this.canvas),this.glplot.setDirty(),this.glplot.draw();var e=this.glplot.gl,r=e.drawingBufferWidth,n=e.drawingBufferHeight;e.bindFramebuffer(e.FRAMEBUFFER,null);var i=new Uint8Array(r*n*4);e.readPixels(0,0,r,n,e.RGBA,e.UNSIGNED_BYTE,i);for(var o=0,s=n-1;o<s;++o,--s)for(var l=0;l<r;++l)for(var u=0;u<4;++u){var c=i[4*(r*o+l)+u];i[4*(r*o+l)+u]=i[4*(r*s+l)+u],i[4*(r*s+l)+u]=c}var h=document.createElement(\"canvas\");h.width=r,h.height=n;var f=h.getContext(\"2d\"),d=f.createImageData(r,n);d.data.set(i),f.putImageData(d,0,0);var p;switch(t){case\"jpeg\":p=h.toDataURL(\"image/jpeg\");break;case\"webp\":p=h.toDataURL(\"image/webp\");break;default:p=h.toDataURL(\"image/png\")}return this.staticPlot&&this.container.removeChild(a),p},w.updateSize=function(t){t||(t=this.canvas);var e=this.pixelRatio,r=this.fullLayout,n=r.width,i=r.height,a=0|Math.ceil(e*n),o=0|Math.ceil(e*i);return t.width===a&&t.height===o||(t.width=a,t.height=o),this.redraw&&this.redraw(),t},w.computeTickMarks=function(){this.xaxis.setScale(),this.yaxis.setScale();for(var t=[l.calcTicks(this.xaxis),l.calcTicks(this.yaxis)],e=0;e<2;++e)for(var r=0;r<t[e].length;++r)t[e][r].text=v(t[e][r].text+\"\");return t},w.updateRefs=function(t){this.fullLayout=t;var e=l.subplotMatch,r=\"xaxis\"+this.id.match(e)[1],n=\"yaxis\"+this.id.match(e)[2];this.xaxis=this.fullLayout[r],this.yaxis=this.fullLayout[n]},w.relayoutCallback=function(){var t=this.graphDiv,e=this.xaxis,r=this.yaxis,n=t.layout;n.xaxis.autorange=e.autorange,n.xaxis.range=e.range.slice(0),n.yaxis.autorange=r.autorange,n.yaxis.range=r.range.slice(0);var i={lastInputTime:this.camera.lastInputTime};i[e._name]=e.range.slice(0),i[r._name]=r.range.slice(0),t.emit(\"plotly_relayout\",i)},w.cameraChanged=function(){var t=this.camera;this.glplot.setDataBox(this.calcDataBox());var e=this.computeTickMarks();i(e,this.glplotOptions.ticks)&&(this.glplotOptions.ticks=e,this.glplotOptions.dataBox=t.dataBox,this.glplot.update(this.glplotOptions),this.handleAnnotations())},w.handleAnnotations=function(){for(var t=this.graphDiv,e=this.fullLayout.annotations,r=0;r<e.length;r++){var n=e[r];n.xref===this.xaxis._id&&n.yref===this.yaxis._id&&s.getComponentMethod(\"annotations\",\"drawOne\")(t,r)}},w.destroy=function(){if(this.glplot){var t=this.traces;t&&Object.keys(t).map(function(e){t[e].dispose(),delete t[e]}),this.glplot.dispose(),this.staticPlot||this.container.removeChild(this.canvas),this.container.removeChild(this.svgContainer),this.container.removeChild(this.mouseContainer),this.fullData=null,this.glplot=null,this.stopped=!0,this.camera.mouseListener.enabled=!1,this.mouseContainer.removeEventListener(\"wheel\",this.camera.wheelListener),this.camera=null}},w.plot=function(t,e,r){var n=this.glplot;this.updateRefs(r),this.updateTraces(t,e),this.updateFx(r.dragmode);var i=r.width,a=r.height;this.updateSize(this.canvas);var o=this.glplotOptions;o.merge(r),o.screenBox=[0,0,i,a];var s={_fullLayout:{_axisConstraintGroups:this.graphDiv._fullLayout._axisConstraintGroups,xaxis:this.xaxis,yaxis:this.yaxis}};x(s,this.xaxis),x(s,this.yaxis);var u=r._size,c=this.xaxis.domain,h=this.yaxis.domain;o.viewBox=[u.l+c[0]*u.w,u.b+h[0]*u.h,i-u.r-(1-c[1])*u.w,a-u.t-(1-h[1])*u.h],this.mouseContainer.style.width=u.w*(c[1]-c[0])+\"px\",this.mouseContainer.style.height=u.h*(h[1]-h[0])+\"px\",this.mouseContainer.height=u.h*(h[1]-h[0]),this.mouseContainer.style.left=u.l+c[0]*u.w+\"px\",this.mouseContainer.style.top=u.t+(1-h[1])*u.h+\"px\";var f=this.bounds;f[0]=f[1]=1/0,f[2]=f[3]=-1/0;var d,p,m=Object.keys(this.traces);for(p=0;p<m.length;++p)for(var v=this.traces[m[p]],g=0;g<2;++g)f[g]=Math.min(f[g],v.bounds[g]),f[g+2]=Math.max(f[g+2],v.bounds[g+2]);for(p=0;p<2;++p)f[p]>f[p+2]&&(f[p]=-1,f[p+2]=1),d=this[_[p]],d._length=o.viewBox[p+2]-o.viewBox[p],l.doAutoRange(d),d.setScale();b(s),o.ticks=this.computeTickMarks(),o.dataBox=this.calcDataBox(),o.merge(r),n.update(o),this.glplot.draw()},w.calcDataBox=function(){var t=this.xaxis,e=this.yaxis,r=t.range,n=e.range,i=t.r2l,a=e.r2l;return[i(r[0]),a(n[0]),i(r[1]),a(n[1])]},w.setRanges=function(t){var e=this.xaxis,r=this.yaxis,n=e.l2r,i=r.l2r;e.range=[n(t[0]),n(t[2])],r.range=[i(t[1]),i(t[3])]},w.updateTraces=function(t,e){var r,n,i,a=Object.keys(this.traces);this.fullData=t;t:for(r=0;r<a.length;r++){var o=a[r],s=this.traces[o];for(n=0;n<t.length;n++)if(i=t[n],i.uid===o&&i.type===s.type)continue t;s.dispose(),delete this.traces[o]}for(r=0;r<t.length;r++){i=t[r];var l=e[r],u=this.traces[i.uid];u?u.update(i,l):(u=i._module.plot(this,i,l),this.traces[i.uid]=u)}this.glplot.objects.sort(function(t,e){return t._trace.index-e._trace.index})},w.updateFx=function(t){this.mouseContainer.style[\"pointer-events\"]=\"lasso\"===t||\"select\"===t?\"none\":\"auto\",this.mouseContainer.style.cursor=\"pan\"===t?\"move\":\"zoom\"===t?\"crosshair\":null},w.emitPointAction=function(t,e){for(var r,n=t.trace.uid,i=t.pointIndex,a=0;a<this.fullData.length;a++)this.fullData[a].uid===n&&(r=this.fullData[a]);var o={x:t.traceCoord[0],y:t.traceCoord[1],curveNumber:r.index,pointNumber:i,data:r._input,fullData:this.fullData,xaxis:this.xaxis,yaxis:this.yaxis};u.appendArrayPointValue(o,r,i),this.graphDiv.emit(e,{points:[o]})},w.draw=function(){if(!this.stopped){requestAnimationFrame(this.redraw);var t=this.glplot,e=this.camera,r=e.mouseListener,n=1===this.lastButtonState&&0===r.buttons,i=this.fullLayout;this.lastButtonState=r.buttons,this.cameraChanged();var a,o=r.x*t.pixelRatio,s=this.canvas.height-t.pixelRatio*r.y;if(e.boxEnabled&&\"zoom\"===i.dragmode){this.selectBox.enabled=!0;for(var l=this.selectBox.selectBox=[Math.min(e.boxStart[0],e.boxEnd[0]),Math.min(e.boxStart[1],e.boxEnd[1]),Math.max(e.boxStart[0],e.boxEnd[0]),Math.max(e.boxStart[1],e.boxEnd[1])],c=0;c<2;c++)e.boxStart[c]===e.boxEnd[c]&&(l[c]=t.dataBox[c],l[c+2]=t.dataBox[c+2]);t.setDirty()}else if(!e.panning&&this.isMouseOver){this.selectBox.enabled=!1;var h=i._size,f=this.xaxis.domain,d=this.yaxis.domain;a=t.pick(o/t.pixelRatio+h.l+f[0]*h.w,s/t.pixelRatio-(h.t+(1-d[1])*h.h));var p=a&&a.object._trace.handlePick(a);if(p&&n&&this.emitPointAction(p,\"plotly_click\"),a&&\"skip\"!==a.object._trace.hoverinfo&&i.hovermode&&p&&(!this.lastPickResult||this.lastPickResult.traceUid!==p.trace.uid||this.lastPickResult.dataCoord[0]!==p.dataCoord[0]||this.lastPickResult.dataCoord[1]!==p.dataCoord[1])){var m=p;this.lastPickResult={traceUid:p.trace?p.trace.uid:null,dataCoord:p.dataCoord.slice()},this.spikes.update({center:a.dataCoord}),m.screenCoord=[((t.viewBox[2]-t.viewBox[0])*(a.dataCoord[0]-t.dataBox[0])/(t.dataBox[2]-t.dataBox[0])+t.viewBox[0])/t.pixelRatio,(this.canvas.height-(t.viewBox[3]-t.viewBox[1])*(a.dataCoord[1]-t.dataBox[1])/(t.dataBox[3]-t.dataBox[1])-t.viewBox[1])/t.pixelRatio],this.emitPointAction(p,\"plotly_hover\");var v=this.fullData[m.trace.index]||{},g=m.pointIndex,y=u.castHoverinfo(v,i,g);if(y&&\"all\"!==y){var b=y.split(\"+\");-1===b.indexOf(\"x\")&&(m.traceCoord[0]=void 0),-1===b.indexOf(\"y\")&&(m.traceCoord[1]=void 0),-1===b.indexOf(\"z\")&&(m.traceCoord[2]=void 0),-1===b.indexOf(\"text\")&&(m.textLabel=void 0),-1===b.indexOf(\"name\")&&(m.name=void 0)}u.loneHover({x:m.screenCoord[0],y:m.screenCoord[1],xLabel:this.hoverFormatter(\"xaxis\",m.traceCoord[0]),yLabel:this.hoverFormatter(\"yaxis\",m.traceCoord[1]),zLabel:m.traceCoord[2],text:m.textLabel,name:m.name,color:u.castHoverOption(v,g,\"bgcolor\")||m.color,borderColor:u.castHoverOption(v,g,\"bordercolor\"),fontFamily:u.castHoverOption(v,g,\"font.family\"),fontSize:u.castHoverOption(v,g,\"font.size\"),fontColor:u.castHoverOption(v,g,\"font.color\")},{container:this.svgContainer,gd:this.graphDiv})}}a||this.unhover(),t.draw()}},w.unhover=function(){this.lastPickResult&&(this.spikes.update({}),this.lastPickResult=null,this.graphDiv.emit(\"plotly_unhover\"),u.loneUnhover(this.svgContainer))},w.hoverFormatter=function(t,e){if(void 0!==e){var r=this[t];return l.tickText(r,r.c2l(e),\"hover\").text}}},{\"../../components/fx\":645,\"../../lib/html2unicode\":726,\"../../lib/show_no_webgl_msg\":747,\"../../plots/cartesian/axes\":772,\"../../plots/cartesian/constraints\":779,\"../../registry\":846,\"./camera\":806,\"./convert\":807,\"gl-plot2d\":219,\"gl-select-box\":253,\"gl-spikes2d\":262,\"webgl-context\":563}],810:[function(t,e,r){\"use strict\";function n(t,e){function r(e,r,n,a){var o=p.keyBindingMode;if(!1!==o){var s=\"rotate\"===o,l=\"pan\"===o,c=\"zoom\"===o,f=!!a.control,d=!!a.alt,y=!!a.shift,b=!!(1&e),x=!!(2&e),_=!!(4&e),w=1/t.clientHeight,M=w*(r-m),k=w*(n-v),A=p.flipX?1:-1,T=p.flipY?1:-1,S=i(),E=Math.PI*p.rotateSpeed;if((s&&b&&!f&&!d&&!y||b&&!f&&!d&&y)&&u.rotate(S,A*E*M,-T*E*k,0),(l&&b&&!f&&!d&&!y||x||b&&f&&!d&&!y)&&u.pan(S,-p.translateSpeed*M*h,p.translateSpeed*k*h,0),c&&b&&!f&&!d&&!y||_||b&&!f&&d&&!y){var L=-p.zoomSpeed*k/window.innerHeight*(S-u.lastT())*100;u.pan(S,0,0,h*(Math.exp(L)-1))}return m=r,v=n,g=a,!0}}t=t||document.body,e=e||{};var n=[.01,1/0];\"distanceLimits\"in e&&(n[0]=e.distanceLimits[0],n[1]=e.distanceLimits[1]),\"zoomMin\"in e&&(n[0]=e.zoomMin),\"zoomMax\"in e&&(n[1]=e.zoomMax);var u=a({center:e.center||[0,0,0],up:e.up||[0,1,0],eye:e.eye||[0,0,10],mode:e.mode||\"orbit\",distanceLimits:n}),c=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],h=0,f=t.clientWidth,d=t.clientHeight,p={keyBindingMode:\"rotate\",view:u,element:t,delay:e.delay||16,rotateSpeed:e.rotateSpeed||1,zoomSpeed:e.zoomSpeed||1,translateSpeed:e.translateSpeed||1,flipX:!!e.flipX,flipY:!!e.flipY,modes:u.modes,tick:function(){var e=i(),r=this.delay,n=e-2*r;u.idle(e-r),u.recalcMatrix(n),u.flush(e-(100+2*r));for(var a=!0,o=u.computedMatrix,s=0;s<16;++s)a=a&&c[s]===o[s],c[s]=o[s];var l=t.clientWidth===f&&t.clientHeight===d;return f=t.clientWidth,d=t.clientHeight,a?!l:(h=Math.exp(u.computedRadius[0]),!0)},lookAt:function(t,e,r){u.lookAt(u.lastT(),t,e,r)},rotate:function(t,e,r){u.rotate(u.lastT(),t,e,r)},pan:function(t,e,r){u.pan(u.lastT(),t,e,r)},translate:function(t,e,r){u.translate(u.lastT(),t,e,r)}};Object.defineProperties(p,{matrix:{get:function(){return u.computedMatrix},set:function(t){return u.setMatrix(u.lastT(),t),u.computedMatrix},enumerable:!0},mode:{get:function(){return u.getMode()},set:function(t){var e=u.computedUp.slice(),r=u.computedEye.slice(),n=u.computedCenter.slice();if(u.setMode(t),\"turntable\"===t){var a=i();u._active.lookAt(a,r,n,e),u._active.lookAt(a+500,r,n,[0,0,1]),u._active.flush(a)}return u.getMode()},enumerable:!0},center:{get:function(){return u.computedCenter},set:function(t){return u.lookAt(u.lastT(),null,t),u.computedCenter},enumerable:!0},eye:{get:function(){return u.computedEye},set:function(t){return u.lookAt(u.lastT(),t),u.computedEye},enumerable:!0},up:{get:function(){return u.computedUp},set:function(t){return u.lookAt(u.lastT(),null,null,t),u.computedUp},enumerable:!0},distance:{get:function(){return h},set:function(t){return u.setDistance(u.lastT(),t),t},enumerable:!0},distanceLimits:{get:function(){return u.getDistanceLimits(n)},set:function(t){return u.setDistanceLimits(t),t},enumerable:!0}}),t.addEventListener(\"contextmenu\",function(t){return t.preventDefault(),!1});var m=0,v=0,g={shift:!1,control:!1,alt:!1,meta:!1};return p.mouseListener=o(t,r),t.addEventListener(\"touchstart\",function(e){var n=l(e.changedTouches[0],t);r(0,n[0],n[1],g),r(1,n[0],n[1],g)}),t.addEventListener(\"touchmove\",function(e){var n=l(e.changedTouches[0],t);r(1,n[0],n[1],g)}),t.addEventListener(\"touchend\",function(){r(0,m,v,g)}),p.wheelListener=s(t,function(t,e){if(!1!==p.keyBindingMode){var r=p.flipX?1:-1,n=p.flipY?1:-1,a=i();if(Math.abs(t)>Math.abs(e))u.rotate(a,0,0,-t*r*Math.PI*p.rotateSpeed/window.innerWidth);else{var o=-p.zoomSpeed*n*e/window.innerHeight*(a-u.lastT())/20;u.pan(a,0,0,h*(Math.exp(o)-1))}}},!0),p}e.exports=n;var i=t(\"right-now\"),a=t(\"3d-view\"),o=t(\"mouse-change\"),s=t(\"mouse-wheel\"),l=t(\"mouse-event-offset\")},{\"3d-view\":37,\"mouse-change\":452,\"mouse-event-offset\":453,\"mouse-wheel\":455,\"right-now\":502}],811:[function(t,e,r){\"use strict\";var n=t(\"../../plot_api/edit_types\").overrideAll,i=t(\"../../components/fx/layout_attributes\"),a=t(\"./scene\"),o=t(\"../plots\"),s=t(\"../../lib\"),l=t(\"../../constants/xmlns_namespaces\");r.name=\"gl3d\",r.attr=\"scene\",r.idRoot=\"scene\",r.idRegex=r.attrRegex=s.counterRegex(\"scene\"),r.attributes=t(\"./layout/attributes\"),r.layoutAttributes=t(\"./layout/layout_attributes\"),r.baseLayoutAttrOverrides=n({hoverlabel:i.hoverlabel},\"plot\",\"nested\"),r.supplyLayoutDefaults=t(\"./layout/defaults\"),r.plot=function(t){for(var e=t._fullLayout,r=t._fullData,n=o.getSubplotIds(e,\"gl3d\"),i=0;i<n.length;i++){var l=n[i],u=o.getSubplotData(r,\"gl3d\",l),c=e[l],h=c._scene;h||(h=new a({id:l,graphDiv:t,container:t.querySelector(\".gl-container\"),staticPlot:t._context.staticPlot,plotGlPixelRatio:t._context.plotGlPixelRatio},e),c._scene=h),h.cameraInitial||(h.cameraInitial=s.extendDeep({},c.camera)),h.plot(u,e,t.layout)}},r.clean=function(t,e,r,n){for(var i=o.getSubplotIds(n,\"gl3d\"),a=0;a<i.length;a++){var s=i[a];!e[s]&&n[s]._scene&&(n[s]._scene.destroy(),n._infolayer&&n._infolayer.selectAll(\".annotation-\"+s).remove())}},r.toSVG=function(t){for(var e=t._fullLayout,r=o.getSubplotIds(e,\"gl3d\"),n=e._size,i=0;i<r.length;i++){var a=e[r[i]],s=a.domain,u=a._scene,c=u.toImage(\"png\");e._glimages.append(\"svg:image\").attr({xmlns:l.svg,\"xlink:href\":c,x:n.l+n.w*s.x[0],y:n.t+n.h*(1-s.y[1]),width:n.w*(s.x[1]-s.x[0]),height:n.h*(s.y[1]-s.y[0]),preserveAspectRatio:\"none\"}),u.destroy()}},r.cleanId=function(t){if(t.match(/^scene[0-9]*$/)){var e=t.substr(5);return\"1\"===e&&(e=\"\"),\"scene\"+e}},r.updateFx=function(t){for(var e=o.getSubplotIds(t,\"gl3d\"),r=0;r<e.length;r++){t[e[r]]._scene.updateFx(t.dragmode,t.hovermode)}}},{\"../../components/fx/layout_attributes\":646,\"../../constants/xmlns_namespaces\":709,\"../../lib\":728,\"../../plot_api/edit_types\":756,\"../plots\":831,\"./layout/attributes\":812,\"./layout/defaults\":816,\"./layout/layout_attributes\":817,\"./scene\":821}],812:[function(t,e,r){\"use strict\";e.exports={scene:{valType:\"subplotid\",dflt:\"scene\",editType:\"calc+clearAxisTypes\"}}},{}],813:[function(t,e,r){\"use strict\";var n=t(\"../../../components/color\"),i=t(\"../../cartesian/layout_attributes\"),a=t(\"../../../lib/extend\").extendFlat,o=t(\"../../../plot_api/edit_types\").overrideAll;e.exports=o({visible:i.visible,showspikes:{valType:\"boolean\",dflt:!0},spikesides:{valType:\"boolean\",dflt:!0},spikethickness:{valType:\"number\",min:0,dflt:2},spikecolor:{valType:\"color\",dflt:n.defaultLine},showbackground:{valType:\"boolean\",dflt:!1},backgroundcolor:{valType:\"color\",dflt:\"rgba(204, 204, 204, 0.5)\"},showaxeslabels:{valType:\"boolean\",dflt:!0},color:i.color,categoryorder:i.categoryorder,categoryarray:i.categoryarray,title:i.title,titlefont:i.titlefont,type:i.type,autorange:i.autorange,rangemode:i.rangemode,range:i.range,tickmode:i.tickmode,nticks:i.nticks,tick0:i.tick0,dtick:i.dtick,tickvals:i.tickvals,ticktext:i.ticktext,ticks:i.ticks,mirror:i.mirror,ticklen:i.ticklen,tickwidth:i.tickwidth,tickcolor:i.tickcolor,showticklabels:i.showticklabels,tickfont:i.tickfont,tickangle:i.tickangle,tickprefix:i.tickprefix,showtickprefix:i.showtickprefix,ticksuffix:i.ticksuffix,showticksuffix:i.showticksuffix,showexponent:i.showexponent,exponentformat:i.exponentformat,separatethousands:i.separatethousands,tickformat:i.tickformat,hoverformat:i.hoverformat,showline:i.showline,linecolor:i.linecolor,linewidth:i.linewidth,showgrid:i.showgrid,gridcolor:a({},i.gridcolor,{dflt:\"rgb(204, 204, 204)\"}),gridwidth:i.gridwidth,zeroline:i.zeroline,zerolinecolor:i.zerolinecolor,zerolinewidth:i.zerolinewidth},\"plot\",\"from-root\")},{\"../../../components/color\":604,\"../../../lib/extend\":717,\"../../../plot_api/edit_types\":756,\"../../cartesian/layout_attributes\":783}],814:[function(t,e,r){\"use strict\";var n=t(\"tinycolor2\").mix,i=t(\"../../../lib\"),a=t(\"./axis_attributes\"),o=t(\"../../cartesian/type_defaults\"),s=t(\"../../cartesian/axis_defaults\"),l=[\"xaxis\",\"yaxis\",\"zaxis\"];e.exports=function(t,e,r){function u(t,e){return i.coerce(c,h,a,t,e)}for(var c,h,f=0;f<l.length;f++){var d=l[f];c=t[d]||{},h=e[d]={_id:d[0]+r.scene,_name:d},o(c,h,u,r.data),s(c,h,u,{font:r.font,letter:d[0],data:r.data,showGrid:!0,bgColor:r.bgColor,calendar:r.calendar}),u(\"gridcolor\",n(h.color,r.bgColor,13600/187).toRgbString()),u(\"title\",d[0]),h.setScale=i.noop,u(\"showspikes\")&&(u(\"spikesides\"),u(\"spikethickness\"),u(\"spikecolor\",h.color)),u(\"showaxeslabels\"),u(\"showbackground\")&&u(\"backgroundcolor\")}}},{\"../../../lib\":728,\"../../cartesian/axis_defaults\":774,\"../../cartesian/type_defaults\":794,\"./axis_attributes\":813,tinycolor2:534}],815:[function(t,e,r){\"use strict\";function n(){this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.tickEnable=[!0,!0,!0],this.tickFont=[\"sans-serif\",\"sans-serif\",\"sans-serif\"],this.tickSize=[12,12,12],this.tickAngle=[0,0,0],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[18,18,18],this.labels=[\"x\",\"y\",\"z\"],this.labelEnable=[!0,!0,!0],this.labelFont=[\"Open Sans\",\"Open Sans\",\"Open Sans\"],this.labelSize=[20,20,20],this.labelAngle=[0,0,0],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[30,30,30],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[10,10,10],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!0,!0,!0],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._defaultTickPad=this.tickPad.slice(),this._defaultLabelPad=this.labelPad.slice(),this._defaultLineTickLength=this.lineTickLength.slice()}function i(t){var e=new n;return e.merge(t),e}var a=t(\"../../../lib/html2unicode\"),o=t(\"../../../lib/str2rgbarray\"),s=[\"xaxis\",\"yaxis\",\"zaxis\"];n.prototype.merge=function(t){for(var e=this,r=0;r<3;++r){var n=t[s[r]];n.visible?(e.labels[r]=a(n.title),\"titlefont\"in n&&(n.titlefont.color&&(e.labelColor[r]=o(n.titlefont.color)),n.titlefont.family&&(e.labelFont[r]=n.titlefont.family),n.titlefont.size&&(e.labelSize[r]=n.titlefont.size)),\"showline\"in n&&(e.lineEnable[r]=n.showline),\"linecolor\"in n&&(e.lineColor[r]=o(n.linecolor)),\"linewidth\"in n&&(e.lineWidth[r]=n.linewidth),\"showgrid\"in n&&(e.gridEnable[r]=n.showgrid),\"gridcolor\"in n&&(e.gridColor[r]=o(n.gridcolor)),\"gridwidth\"in n&&(e.gridWidth[r]=n.gridwidth),\"log\"===n.type?e.zeroEnable[r]=!1:\"zeroline\"in n&&(e.zeroEnable[r]=n.zeroline),\"zerolinecolor\"in n&&(e.zeroLineColor[r]=o(n.zerolinecolor)),\"zerolinewidth\"in n&&(e.zeroLineWidth[r]=n.zerolinewidth),\"ticks\"in n&&n.ticks?e.lineTickEnable[r]=!0:e.lineTickEnable[r]=!1,\"ticklen\"in n&&(e.lineTickLength[r]=e._defaultLineTickLength[r]=n.ticklen),\"tickcolor\"in n&&(e.lineTickColor[r]=o(n.tickcolor)),\"tickwidth\"in n&&(e.lineTickWidth[r]=n.tickwidth),\"tickangle\"in n&&(e.tickAngle[r]=\"auto\"===n.tickangle?0:Math.PI*-n.tickangle/180),\"showticklabels\"in n&&(e.tickEnable[r]=n.showticklabels),\"tickfont\"in n&&(n.tickfont.color&&(e.tickColor[r]=o(n.tickfont.color)),n.tickfont.family&&(e.tickFont[r]=n.tickfont.family),n.tickfont.size&&(e.tickSize[r]=n.tickfont.size)),\"mirror\"in n?-1!==[\"ticks\",\"all\",\"allticks\"].indexOf(n.mirror)?(e.lineTickMirror[r]=!0,e.lineMirror[r]=!0):!0===n.mirror?(e.lineTickMirror[r]=!1,e.lineMirror[r]=!0):(e.lineTickMirror[r]=!1,e.lineMirror[r]=!1):e.lineMirror[r]=!1,\"showbackground\"in n&&!1!==n.showbackground?(e.backgroundEnable[r]=!0,e.backgroundColor[r]=o(n.backgroundcolor)):e.backgroundEnable[r]=!1):(e.tickEnable[r]=!1,e.labelEnable[r]=!1,e.lineEnable[r]=!1,e.lineTickEnable[r]=!1,e.gridEnable[r]=!1,e.zeroEnable[r]=!1,e.backgroundEnable[r]=!1)}},e.exports=i},{\"../../../lib/html2unicode\":726,\"../../../lib/str2rgbarray\":749}],816:[function(t,e,r){\"use strict\";function n(t,e,r,n){for(var i=r(\"bgcolor\"),s=a.combine(i,n.paper_bgcolor),u=[\"up\",\"center\",\"eye\"],c=0;c<u.length;c++)r(\"camera.\"+u[c]+\".x\"),r(\"camera.\"+u[c]+\".y\"),r(\"camera.\"+u[c]+\".z\");var h=!!r(\"aspectratio.x\")&&!!r(\"aspectratio.y\")&&!!r(\"aspectratio.z\"),f=h?\"manual\":\"auto\",d=r(\"aspectmode\",f);h||(t.aspectratio=e.aspectratio={x:1,y:1,z:1},\"manual\"===d&&(e.aspectmode=\"auto\"),t.aspectmode=e.aspectmode),l(t,e,{font:n.font,scene:n.id,data:n.fullData,bgColor:s,calendar:n.calendar}),o.getComponentMethod(\"annotations3d\",\"handleDefaults\")(t,e,n),r(\"dragmode\",n.getDfltFromLayout(\"dragmode\")),r(\"hovermode\",n.getDfltFromLayout(\"hovermode\"))}var i=t(\"../../../lib\"),a=t(\"../../../components/color\"),o=t(\"../../../registry\"),s=t(\"../../subplot_defaults\"),l=t(\"./axis_defaults\"),u=t(\"./layout_attributes\");e.exports=function(t,e,r){function a(e){if(!o){return i.validate(t[e],u[e])?t[e]:void 0}}var o=e._basePlotModules.length>1;s(t,e,r,{type:\"gl3d\",attributes:u,handleDefaults:n,fullLayout:e,font:e.font,fullData:r,getDfltFromLayout:a,paper_bgcolor:e.paper_bgcolor,calendar:e.calendar})}},{\"../../../components/color\":604,\"../../../lib\":728,\"../../../registry\":846,\"../../subplot_defaults\":838,\"./axis_defaults\":814,\"./layout_attributes\":817}],817:[function(t,e,r){\"use strict\";function n(t,e,r){return{x:{valType:\"number\",dflt:t,editType:\"camera\"},y:{valType:\"number\",dflt:e,editType:\"camera\"},z:{valType:\"number\",dflt:r,editType:\"camera\"},editType:\"camera\"}}var i=t(\"./axis_attributes\"),a=t(\"../../../lib/extend\").extendFlat,o=t(\"../../../lib\").counterRegex;e.exports={_arrayAttrRegexps:[o(\"scene\",\".annotations\",!0)],bgcolor:{valType:\"color\",dflt:\"rgba(0,0,0,0)\",editType:\"plot\"},camera:{up:a(n(0,0,1),{}),center:a(n(0,0,0),{}),eye:a(n(1.25,1.25,1.25),{}),editType:\"camera\"},domain:{x:{valType:\"info_array\",items:[{valType:\"number\",min:0,max:1,editType:\"plot\"},{valType:\"number\",min:0,max:1,editType:\"plot\"}],dflt:[0,1],editType:\"plot\"},y:{valType:\"info_array\",items:[{valType:\"number\",min:0,max:1,editType:\"plot\"},{valType:\"number\",min:0,max:1,editType:\"plot\"}],dflt:[0,1],editType:\"plot\"},editType:\"plot\"},aspectmode:{valType:\"enumerated\",values:[\"auto\",\"cube\",\"data\",\"manual\"],dflt:\"auto\",editType:\"plot\",impliedEdits:{\"aspectratio.x\":void 0,\"aspectratio.y\":void 0,\"aspectratio.z\":void 0}},aspectratio:{x:{valType:\"number\",min:0,editType:\"plot\",impliedEdits:{\"^aspectmode\":\"manual\"}},y:{valType:\"number\",min:0,editType:\"plot\",impliedEdits:{\"^aspectmode\":\"manual\"}},z:{valType:\"number\",min:0,editType:\"plot\",impliedEdits:{\"^aspectmode\":\"manual\"}},editType:\"plot\",impliedEdits:{aspectmode:\"manual\"}},xaxis:i,yaxis:i,zaxis:i,dragmode:{valType:\"enumerated\",values:[\"orbit\",\"turntable\",\"zoom\",\"pan\",!1],dflt:\"turntable\",editType:\"plot\"},hovermode:{valType:\"enumerated\",values:[\"closest\",!1],dflt:\"closest\",editType:\"modebar\"},editType:\"plot\",_deprecated:{cameraposition:{valType:\"info_array\",editType:\"camera\"}}}},{\"../../../lib\":728,\"../../../lib/extend\":717,\"./axis_attributes\":813}],818:[function(t,e,r){\"use strict\";function n(){this.enabled=[!0,!0,!0],this.colors=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.drawSides=[!0,!0,!0],this.lineWidth=[1,1,1]}function i(t){var e=new n;return e.merge(t),e}var a=t(\"../../../lib/str2rgbarray\"),o=[\"xaxis\",\"yaxis\",\"zaxis\"];n.prototype.merge=function(t){for(var e=0;e<3;++e){var r=t[o[e]];r.visible?(this.enabled[e]=r.showspikes,this.colors[e]=a(r.spikecolor),this.drawSides[e]=r.spikesides,this.lineWidth[e]=r.spikethickness):(this.enabled[e]=!1,this.drawSides[e]=!1)}},e.exports=i},{\"../../../lib/str2rgbarray\":749}],819:[function(t,e,r){\"use strict\";function n(t){for(var e=new Array(3),r=0;r<3;++r){for(var n=t[r],i=new Array(n.length),a=0;a<n.length;++a)i[a]=n[a].x;e[r]=i}return e}function i(t){for(var e=t.axesOptions,r=t.glplot.axesPixels,i=t.fullSceneLayout,c=[[],[],[]],h=0;h<3;++h){var f=i[l[h]];if(f._length=(r[h].hi-r[h].lo)*r[h].pixelsPerDataUnit/t.dataScale[h],Math.abs(f._length)===1/0)c[h]=[];else{f.range[0]=r[h].lo/t.dataScale[h],f.range[1]=r[h].hi/t.dataScale[h],f._m=1/(t.dataScale[h]*r[h].pixelsPerDataUnit),f.range[0]===f.range[1]&&(f.range[0]-=1,f.range[1]+=1);var d=f.tickmode;if(\"auto\"===f.tickmode){f.tickmode=\"linear\";var p=f.nticks||o.constrain(f._length/40,4,9);a.autoTicks(f,Math.abs(f.range[1]-f.range[0])/p)}for(var m=a.calcTicks(f),v=0;v<m.length;++v)m[v].x=m[v].x*t.dataScale[h],m[v].text=s(m[v].text);c[h]=m,f.tickmode=d}}e.ticks=c;for(var h=0;h<3;++h){u[h]=.5*(t.glplot.bounds[0][h]+t.glplot.bounds[1][h]);for(var v=0;v<2;++v)e.bounds[v][h]=t.glplot.bounds[v][h]}t.contourLevels=n(c)}e.exports=i;var a=t(\"../../cartesian/axes\"),o=t(\"../../../lib\"),s=t(\"../../../lib/html2unicode\"),l=[\"xaxis\",\"yaxis\",\"zaxis\"],u=[0,0,0]},{\"../../../lib\":728,\"../../../lib/html2unicode\":726,\"../../cartesian/axes\":772}],820:[function(t,e,r){\"use strict\";function n(t,e){var r,n,i=[0,0,0,0];for(r=0;r<4;++r)for(n=0;n<4;++n)i[n]+=t[4*r+n]*e[r];return i}function i(t,e){return n(t.projection,n(t.view,n(t.model,[e[0],e[1],e[2],1])))}e.exports=i},{}],821:[function(t,e,r){\"use strict\";function n(t){function e(e,r){var n=t.fullSceneLayout[e];return v.tickText(n,n.d2l(r),\"hover\").text}var r,n=t.svgContainer,i=t.container.getBoundingClientRect(),a=i.width,o=i.height;n.setAttributeNS(null,\"viewBox\",\"0 0 \"+a+\" \"+o),n.setAttributeNS(null,\"width\",a),n.setAttributeNS(null,\"height\",o),k(t),t.glplot.axes.update(t.axesOptions);for(var s=Object.keys(t.traces),l=null,u=t.glplot.selection,c=0;c<s.length;++c)r=t.traces[s[c]],\"skip\"!==r.data.hoverinfo&&r.handlePick(u)&&(l=r),r.setContourLevels&&r.setContourLevels();var h;if(null!==l){var f=_(t.glplot.cameraParams,u.dataCoordinate);r=l.data;var d=u.index,p=g.castHoverinfo(r,t.fullLayout,d),m=e(\"xaxis\",u.traceCoordinate[0]),y=e(\"yaxis\",u.traceCoordinate[1]),b=e(\"zaxis\",u.traceCoordinate[2]);if(\"all\"!==p){var x=p.split(\"+\");-1===x.indexOf(\"x\")&&(m=void 0),-1===x.indexOf(\"y\")&&(y=void 0),-1===x.indexOf(\"z\")&&(b=void 0),-1===x.indexOf(\"text\")&&(u.textLabel=void 0),-1===x.indexOf(\"name\")&&(l.name=void 0)}t.fullSceneLayout.hovermode&&g.loneHover({x:(.5+.5*f[0]/f[3])*a,y:(.5-.5*f[1]/f[3])*o,xLabel:m,yLabel:y,zLabel:b,text:u.textLabel,name:l.name,color:g.castHoverOption(r,d,\"bgcolor\")||l.color,borderColor:g.castHoverOption(r,d,\"bordercolor\"),fontFamily:g.castHoverOption(r,d,\"font.family\"),fontSize:g.castHoverOption(r,d,\"font.size\"),fontColor:g.castHoverOption(r,d,\"font.color\")},{container:n,gd:t.graphDiv});var w={x:u.traceCoordinate[0],y:u.traceCoordinate[1],z:u.traceCoordinate[2],data:r._input,fullData:r,curveNumber:r.index,pointNumber:d};g.appendArrayPointValue(w,r,d);var M={points:[w]};u.buttons&&u.distance<5?t.graphDiv.emit(\"plotly_click\",M):t.graphDiv.emit(\"plotly_hover\",M),h=M}else g.loneUnhover(n),t.graphDiv.emit(\"plotly_unhover\",h);t.drawAnnotations(t)}function i(t,e,r,i){var a={canvas:r,gl:i,container:t.container,axes:t.axesOptions,spikes:t.spikeOptions,pickRadius:10,snapToData:!0,autoScale:!0,autoBounds:!1};if(t.staticMode){if(!(h||(c=document.createElement(\"canvas\"),h=d({canvas:c,preserveDrawingBuffer:!0,premultipliedAlpha:!0,antialias:!0}))))throw new Error(\"error creating static canvas/context for image server\");a.pixelRatio=t.pixelRatio,a.gl=h,a.canvas=c}try{t.glplot=f(a)}catch(e){b(t)}var o=function(t){if(!1!==t.fullSceneLayout.dragmode){var e={};e[t.id+\".camera\"]=u(t.camera),t.saveCamera(t.graphDiv.layout),t.graphDiv.emit(\"plotly_relayout\",e)}};if(t.glplot.canvas.addEventListener(\"mouseup\",o.bind(null,t)),t.glplot.canvas.addEventListener(\"wheel\",o.bind(null,t)),t.staticMode||t.glplot.canvas.addEventListener(\"webglcontextlost\",function(t){m.warn(\"Lost WebGL context.\"),t.preventDefault()}),!t.camera){var s=t.fullSceneLayout.camera;t.camera=x(t.container,{center:[s.center.x,s.center.y,s.center.z],\n", "eye:[s.eye.x,s.eye.y,s.eye.z],up:[s.up.x,s.up.y,s.up.z],zoomMin:.1,zoomMax:100,mode:\"orbit\"})}return t.glplot.camera=t.camera,t.glplot.oncontextloss=function(){t.recoverContext()},t.glplot.onrender=n.bind(null,t),t.traces={},!0}function a(t,e){var r=document.createElement(\"div\"),n=t.container;this.graphDiv=t.graphDiv;var a=document.createElementNS(\"http://www.w3.org/2000/svg\",\"svg\");a.style.position=\"absolute\",a.style.top=a.style.left=\"0px\",a.style.width=a.style.height=\"100%\",a.style[\"z-index\"]=20,a.style[\"pointer-events\"]=\"none\",r.appendChild(a),this.svgContainer=a,r.id=t.id,r.style.position=\"absolute\",r.style.top=r.style.left=\"0px\",r.style.width=r.style.height=\"100%\",n.appendChild(r),this.fullLayout=e,this.id=t.id||\"scene\",this.fullSceneLayout=e[this.id],this.plotArgs=[[],{},{}],this.axesOptions=w(e[this.id]),this.spikeOptions=M(e[this.id]),this.container=r,this.staticMode=!!t.staticPlot,this.pixelRatio=t.plotGlPixelRatio||2,this.dataScale=[1,1,1],this.contourLevels=[[],[],[]],this.convertAnnotations=p.getComponentMethod(\"annotations3d\",\"convert\"),this.drawAnnotations=p.getComponentMethod(\"annotations3d\",\"draw\"),i(this,e)}function o(t,e,r,n,i){for(var a,o=0;o<e.length;++o)if(Array.isArray(e[o]))for(var s=0;s<e[o].length;++s)a=t.d2l(e[o][s],0,i),!isNaN(a)&&isFinite(a)&&(n[0][r]=Math.min(n[0][r],a),n[1][r]=Math.max(n[1][r],a));else a=t.d2l(e[o],0,i),!isNaN(a)&&isFinite(a)&&(n[0][r]=Math.min(n[0][r],a),n[1][r]=Math.max(n[1][r],a))}function s(t,e,r){var n=t.fullSceneLayout;o(n.xaxis,e.x,0,r,e.xcalendar),o(n.yaxis,e.y,1,r,e.ycalendar),o(n.zaxis,e.z,2,r,e.zcalendar)}function l(t){return[[t.eye.x,t.eye.y,t.eye.z],[t.center.x,t.center.y,t.center.z],[t.up.x,t.up.y,t.up.z]]}function u(t){return{up:{x:t.up[0],y:t.up[1],z:t.up[2]},center:{x:t.center[0],y:t.center[1],z:t.center[2]},eye:{x:t.eye[0],y:t.eye[1],z:t.eye[2]}}}var c,h,f=t(\"gl-plot3d\"),d=t(\"webgl-context\"),p=t(\"../../registry\"),m=t(\"../../lib\"),v=t(\"../../plots/cartesian/axes\"),g=t(\"../../components/fx\"),y=t(\"../../lib/str2rgbarray\"),b=t(\"../../lib/show_no_webgl_msg\"),x=t(\"./camera\"),_=t(\"./project\"),w=t(\"./layout/convert\"),M=t(\"./layout/spikes\"),k=t(\"./layout/tick_marks\"),A=a.prototype;A.recoverContext=function(){function t(){return r.isContextLost()?void requestAnimationFrame(t):i(e,e.fullLayout,n,r)?void e.plot.apply(e,e.plotArgs):void m.error(\"Catastrophic and unrecoverable WebGL error. Context lost.\")}var e=this,r=this.glplot.gl,n=this.glplot.canvas;this.glplot.dispose(),requestAnimationFrame(t)};var T=[\"xaxis\",\"yaxis\",\"zaxis\"];A.plot=function(t,e,r){if(this.plotArgs=[t,e,r],!this.glplot.contextLost){var n,i,a,o,l,u,c=e[this.id],h=r[this.id];c.bgcolor?this.glplot.clearColor=y(c.bgcolor):this.glplot.clearColor=[0,0,0,0],this.glplot.snapToData=!0,this.fullLayout=e,this.fullSceneLayout=c,this.glplotLayout=c,this.axesOptions.merge(c),this.spikeOptions.merge(c),this.setCamera(c.camera),this.updateFx(c.dragmode,c.hovermode),this.glplot.update({}),this.setConvert(l),t?Array.isArray(t)||(t=[t]):t=[];var f=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]];for(a=0;a<t.length;++a)n=t[a],!0===n.visible&&s(this,n,f);var d=[1,1,1];for(o=0;o<3;++o)f[0][o]>f[1][o]?d[o]=1:f[1][o]===f[0][o]?d[o]=1:d[o]=1/(f[1][o]-f[0][o]);for(this.dataScale=d,this.convertAnnotations(this),a=0;a<t.length;++a)n=t[a],!0===n.visible&&(i=this.traces[n.uid],i?i.update(n):(i=n._module.plot(this,n),this.traces[n.uid]=i),i.name=n.name);var p=Object.keys(this.traces);t:for(a=0;a<p.length;++a){for(o=0;o<t.length;++o)if(t[o].uid===p[a]&&!0===t[o].visible)continue t;i=this.traces[p[a]],i.dispose(),delete this.traces[p[a]]}this.glplot.objects.sort(function(t,e){return t._trace.data.index-e._trace.data.index});var m=[[0,0,0],[0,0,0]],v=[],g={};for(a=0;a<3;++a){if(l=c[T[a]],u=l.type,u in g?(g[u].acc*=d[a],g[u].count+=1):g[u]={acc:d[a],count:1},l.autorange){m[0][a]=1/0,m[1][a]=-1/0;var b=this.glplot.objects,x=this.fullSceneLayout.annotations||[],_=l._name.charAt(0);for(o=0;o<b.length;o++){var w=b[o].bounds;m[0][a]=Math.min(m[0][a],w[0][a]/d[a]),m[1][a]=Math.max(m[1][a],w[1][a]/d[a])}for(o=0;o<x.length;o++){var M=x[o];if(M.visible){var k=l.r2l(M[_]);m[0][a]=Math.min(m[0][a],k),m[1][a]=Math.max(m[1][a],k)}}if(\"rangemode\"in l&&\"tozero\"===l.rangemode&&(m[0][a]=Math.min(m[0][a],0),m[1][a]=Math.max(m[1][a],0)),m[0][a]>m[1][a])m[0][a]=-1,m[1][a]=1;else{var A=m[1][a]-m[0][a];m[0][a]-=A/32,m[1][a]+=A/32}}else{var S=l.range;m[0][a]=l.r2l(S[0]),m[1][a]=l.r2l(S[1])}m[0][a]===m[1][a]&&(m[0][a]-=1,m[1][a]+=1),v[a]=m[1][a]-m[0][a],this.glplot.bounds[0][a]=m[0][a]*d[a],this.glplot.bounds[1][a]=m[1][a]*d[a]}var E=[1,1,1];for(a=0;a<3;++a){l=c[T[a]],u=l.type;var L=g[u];E[a]=Math.pow(L.acc,1/L.count)/d[a]}var C;if(\"auto\"===c.aspectmode)C=Math.max.apply(null,E)/Math.min.apply(null,E)<=4?E:[1,1,1];else if(\"cube\"===c.aspectmode)C=[1,1,1];else if(\"data\"===c.aspectmode)C=E;else{if(\"manual\"!==c.aspectmode)throw new Error(\"scene.js aspectRatio was not one of the enumerated types\");var I=c.aspectratio;C=[I.x,I.y,I.z]}c.aspectratio.x=h.aspectratio.x=C[0],c.aspectratio.y=h.aspectratio.y=C[1],c.aspectratio.z=h.aspectratio.z=C[2],this.glplot.aspect=C;var z=c.domain||null,D=e._size||null;if(z&&D){var P=this.container.style;P.position=\"absolute\",P.left=D.l+z.x[0]*D.w+\"px\",P.top=D.t+(1-z.y[1])*D.h+\"px\",P.width=D.w*(z.x[1]-z.x[0])+\"px\",P.height=D.h*(z.y[1]-z.y[0])+\"px\"}this.glplot.redraw()}},A.destroy=function(){this.glplot&&(this.camera.mouseListener.enabled=!1,this.container.removeEventListener(\"wheel\",this.camera.wheelListener),this.camera=this.glplot.camera=null,this.glplot.dispose(),this.container.parentNode.removeChild(this.container),this.glplot=null)},A.getCamera=function(){return this.glplot.camera.view.recalcMatrix(this.camera.view.lastT()),u(this.glplot.camera)},A.setCamera=function(t){this.glplot.camera.lookAt.apply(this,l(t))},A.saveCamera=function(t){var e=this.getCamera(),r=m.nestedProperty(t,this.id+\".camera\"),n=r.get(),i=!1;if(void 0===n)i=!0;else for(var a=0;a<3;a++)for(var o=0;o<3;o++)if(!function(t,e,r,n){var i=[\"up\",\"center\",\"eye\"],a=[\"x\",\"y\",\"z\"];return e[i[r]]&&t[i[r]][a[n]]===e[i[r]][a[n]]}(e,n,a,o)){i=!0;break}return i&&r.set(e),i},A.updateFx=function(t,e){var r=this.camera;r&&(\"orbit\"===t?(r.mode=\"orbit\",r.keyBindingMode=\"rotate\"):\"turntable\"===t?(r.up=[0,0,1],r.mode=\"turntable\",r.keyBindingMode=\"rotate\"):r.keyBindingMode=t),this.fullSceneLayout.hovermode=e},A.toImage=function(t){t||(t=\"png\"),this.staticMode&&this.container.appendChild(c),this.glplot.redraw();var e=this.glplot.gl,r=e.drawingBufferWidth,n=e.drawingBufferHeight;e.bindFramebuffer(e.FRAMEBUFFER,null);var i=new Uint8Array(r*n*4);e.readPixels(0,0,r,n,e.RGBA,e.UNSIGNED_BYTE,i);for(var a=0,o=n-1;a<o;++a,--o)for(var s=0;s<r;++s)for(var l=0;l<4;++l){var u=i[4*(r*a+s)+l];i[4*(r*a+s)+l]=i[4*(r*o+s)+l],i[4*(r*o+s)+l]=u}var h=document.createElement(\"canvas\");h.width=r,h.height=n;var f=h.getContext(\"2d\"),d=f.createImageData(r,n);d.data.set(i),f.putImageData(d,0,0);var p;switch(t){case\"jpeg\":p=h.toDataURL(\"image/jpeg\");break;case\"webp\":p=h.toDataURL(\"image/webp\");break;default:p=h.toDataURL(\"image/png\")}return this.staticMode&&this.container.removeChild(c),p},A.setConvert=function(){for(var t=0;t<3;t++){var e=this.fullSceneLayout[T[t]];v.setConvert(e,this.fullLayout),e.setScale=m.noop}},e.exports=a},{\"../../components/fx\":645,\"../../lib\":728,\"../../lib/show_no_webgl_msg\":747,\"../../lib/str2rgbarray\":749,\"../../plots/cartesian/axes\":772,\"../../registry\":846,\"./camera\":810,\"./layout/convert\":815,\"./layout/spikes\":818,\"./layout/tick_marks\":819,\"./project\":820,\"gl-plot3d\":221,\"webgl-context\":563}],822:[function(t,e,r){\"use strict\";var n=t(\"./font_attributes\"),i=t(\"../components/color/attributes\"),a=n({editType:\"calc\"});a.family.dflt='\"Open Sans\", verdana, arial, sans-serif',a.size.dflt=12,a.color.dflt=i.defaultLine,e.exports={font:a,title:{valType:\"string\",dflt:\"Click to enter Plot title\",editType:\"layoutstyle\"},titlefont:n({editType:\"layoutstyle\"}),autosize:{valType:\"boolean\",dflt:!1,editType:\"none\"},width:{valType:\"number\",min:10,dflt:700,editType:\"none\"},height:{valType:\"number\",min:10,dflt:450,editType:\"none\"},margin:{l:{valType:\"number\",min:0,dflt:80,editType:\"calc\"},r:{valType:\"number\",min:0,dflt:80,editType:\"calc\"},t:{valType:\"number\",min:0,dflt:100,editType:\"calc\"},b:{valType:\"number\",min:0,dflt:80,editType:\"calc\"},pad:{valType:\"number\",min:0,dflt:0,editType:\"calc\"},autoexpand:{valType:\"boolean\",dflt:!0,editType:\"calc\"},editType:\"calc\"},paper_bgcolor:{valType:\"color\",dflt:i.background,editType:\"plot\"},plot_bgcolor:{valType:\"color\",dflt:i.background,editType:\"layoutstyle\"},separators:{valType:\"string\",dflt:\".,\",editType:\"plot\"},hidesources:{valType:\"boolean\",dflt:!1,editType:\"plot\"},smith:{valType:\"enumerated\",values:[!1],dflt:!1,editType:\"none\"},showlegend:{valType:\"boolean\",editType:\"legend\"}}},{\"../components/color/attributes\":603,\"./font_attributes\":796}],823:[function(t,e,r){\"use strict\";e.exports={styleUrlPrefix:\"mapbox://styles/mapbox/\",styleUrlSuffix:\"v9\",controlContainerClassName:\"mapboxgl-control-container\",noAccessTokenErrorMsg:[\"Missing Mapbox access token.\",\"Mapbox trace type require a Mapbox access token to be registered.\",\"For example:\",\" Plotly.plot(gd, data, layout, { mapboxAccessToken: 'my-access-token' });\",\"More info here: https://www.mapbox.com/help/define-access-token/\"].join(\"\\n\"),mapOnErrorMsg:\"Mapbox error.\"}},{}],824:[function(t,e,r){\"use strict\";var n=t(\"../../lib\");e.exports=function(t,e){var r=t.split(\" \"),i=r[0],a=r[1],o=Array.isArray(e)?n.mean(e):e,s=.5+o/100,l=1.5+o/100,u=[\"\",\"\"],c=[0,0];switch(i){case\"top\":u[0]=\"top\",c[1]=-l;break;case\"bottom\":u[0]=\"bottom\",c[1]=l}switch(a){case\"left\":u[1]=\"right\",c[0]=-s;break;case\"right\":u[1]=\"left\",c[0]=s}var h;return h=u[0]&&u[1]?u.join(\"-\"):u[0]?u[0]:u[1]?u[1]:\"center\",{anchor:h,offset:c}}},{\"../../lib\":728}],825:[function(t,e,r){\"use strict\";function n(t,e){var r=t._fullLayout,n=t._context;if(\"\"===n.mapboxAccessToken)return\"\";for(var i=n.mapboxAccessToken,a=0;a<e.length;a++){var o=r[e[a]];if(o.accesstoken){i=o.accesstoken;break}}if(!i)throw new Error(u.noAccessTokenErrorMsg);return i}var i=t(\"mapbox-gl\"),a=t(\"../../lib\"),o=t(\"../plots\"),s=t(\"../../constants/xmlns_namespaces\"),l=t(\"./mapbox\"),u=t(\"./constants\");r.name=\"mapbox\",r.attr=\"subplot\",r.idRoot=\"mapbox\",r.idRegex=r.attrRegex=a.counterRegex(\"mapbox\"),r.attributes={subplot:{valType:\"subplotid\",dflt:\"mapbox\",editType:\"calc\"}},r.layoutAttributes=t(\"./layout_attributes\"),r.supplyLayoutDefaults=t(\"./layout_defaults\"),r.plot=function(t){var e=t._fullLayout,r=t.calcdata,s=o.getSubplotIds(e,\"mapbox\"),u=n(t,s);i.accessToken=u;for(var c=0;c<s.length;c++){var h=s[c],f=o.getSubplotCalcData(r,\"mapbox\",h),d=e[h],p=d._subplot;d.accesstoken=u,p||(p=l({gd:t,container:e._glcontainer.node(),id:h,fullLayout:e,staticPlot:t._context.staticPlot}),e[h]._subplot=p),p.viewInitial||(p.viewInitial={center:a.extendFlat({},d.center),zoom:d.zoom,bearing:d.bearing,pitch:d.pitch}),p.plot(f,e,t._promises)}},r.clean=function(t,e,r,n){for(var i=o.getSubplotIds(n,\"mapbox\"),a=0;a<i.length;a++){var s=i[a];!e[s]&&n[s]._subplot&&n[s]._subplot.destroy()}},r.toSVG=function(t){for(var e=t._fullLayout,r=o.getSubplotIds(e,\"mapbox\"),n=e._size,i=0;i<r.length;i++){var a=e[r[i]],l=a.domain,u=a._subplot,c=u.toImage(\"png\");e._glimages.append(\"svg:image\").attr({xmlns:s.svg,\"xlink:href\":c,x:n.l+n.w*l.x[0],y:n.t+n.h*(1-l.y[1]),width:n.w*(l.x[1]-l.x[0]),height:n.h*(l.y[1]-l.y[0]),preserveAspectRatio:\"none\"}),u.destroy()}},r.updateFx=function(t){for(var e=o.getSubplotIds(t,\"mapbox\"),r=0;r<e.length;r++){t[e[r]]._subplot.updateFx(t)}}},{\"../../constants/xmlns_namespaces\":709,\"../../lib\":728,\"../plots\":831,\"./constants\":823,\"./layout_attributes\":827,\"./layout_defaults\":828,\"./mapbox\":829,\"mapbox-gl\":343}],826:[function(t,e,r){\"use strict\";function n(t,e){this.mapbox=t,this.map=t.map,this.uid=t.uid+\"-layer\"+e,this.idSource=this.uid+\"-source\",this.idLayer=this.uid+\"-layer\",this.sourceType=null,this.source=null,this.layerType=null,this.below=null,this.visible=!1}function i(t){var e=t.source;return s.isPlainObject(e)||\"string\"==typeof e&&e.length>0}function a(t){var e={},r={};switch(t.type){case\"circle\":s.extendFlat(r,{\"circle-radius\":t.circle.radius,\"circle-color\":t.color,\"circle-opacity\":t.opacity});break;case\"line\":s.extendFlat(r,{\"line-width\":t.line.width,\"line-color\":t.color,\"line-opacity\":t.opacity});break;case\"fill\":s.extendFlat(r,{\"fill-color\":t.color,\"fill-outline-color\":t.fill.outlinecolor,\"fill-opacity\":t.opacity});break;case\"symbol\":var n=t.symbol,i=l(n.textposition,n.iconsize);s.extendFlat(e,{\"icon-image\":n.icon+\"-15\",\"icon-size\":n.iconsize/10,\"text-field\":n.text,\"text-size\":n.textfont.size,\"text-anchor\":i.anchor,\"text-offset\":i.offset}),s.extendFlat(r,{\"icon-color\":t.color,\"text-color\":n.textfont.color,\"text-opacity\":t.opacity})}return{layout:e,paint:r}}function o(t){var e,r=t.sourcetype,n=t.source,i={type:r},a=\"string\"==typeof n;return\"geojson\"===r?e=\"data\":\"vector\"===r&&(e=a?\"url\":\"tiles\"),i[e]=n,i}var s=t(\"../../lib\"),l=t(\"./convert_text_opts\"),u=n.prototype;u.update=function(t){this.visible?this.needsNewSource(t)?(this.updateLayer(t),this.updateSource(t)):this.needsNewLayer(t)&&this.updateLayer(t):(this.updateSource(t),this.updateLayer(t)),this.updateStyle(t),this.visible=i(t)},u.needsNewSource=function(t){return this.sourceType!==t.sourcetype||this.source!==t.source||this.layerType!==t.type},u.needsNewLayer=function(t){return this.layerType!==t.type||this.below!==t.below},u.updateSource=function(t){var e=this.map;if(e.getSource(this.idSource)&&e.removeSource(this.idSource),this.sourceType=t.sourcetype,this.source=t.source,i(t)){var r=o(t);e.addSource(this.idSource,r)}},u.updateLayer=function(t){var e=this.map;if(e.getLayer(this.idLayer)&&e.removeLayer(this.idLayer),this.layerType=t.type,i(t)){e.addLayer({id:this.idLayer,source:this.idSource,\"source-layer\":t.sourcelayer||\"\",type:t.type},t.below);var r={visibility:\"visible\"};this.mapbox.setOptions(this.idLayer,\"setLayoutProperty\",r)}},u.updateStyle=function(t){var e=a(t);i(t)&&(this.mapbox.setOptions(this.idLayer,\"setLayoutProperty\",e.layout),this.mapbox.setOptions(this.idLayer,\"setPaintProperty\",e.paint))},u.dispose=function(){var t=this.map;t.removeLayer(this.idLayer),t.removeSource(this.idSource)},e.exports=function(t,e,r){var i=new n(t,e);return i.update(r),i}},{\"../../lib\":728,\"./convert_text_opts\":824}],827:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../components/color\").defaultLine,a=t(\"../font_attributes\"),o=t(\"../../traces/scatter/attributes\").textposition,s=t(\"../../plot_api/edit_types\").overrideAll,l=a({});l.family.dflt=\"Open Sans Regular, Arial Unicode MS Regular\",e.exports=s({_arrayAttrRegexps:[n.counterRegex(\"mapbox\",\".layers\",!0)],domain:{x:{valType:\"info_array\",items:[{valType:\"number\",min:0,max:1},{valType:\"number\",min:0,max:1}],dflt:[0,1]},y:{valType:\"info_array\",items:[{valType:\"number\",min:0,max:1},{valType:\"number\",min:0,max:1}],dflt:[0,1]}},accesstoken:{valType:\"string\",noBlank:!0,strict:!0},style:{valType:\"any\",values:[\"basic\",\"streets\",\"outdoors\",\"light\",\"dark\",\"satellite\",\"satellite-streets\"],dflt:\"basic\"},center:{lon:{valType:\"number\",dflt:0},lat:{valType:\"number\",dflt:0}},zoom:{valType:\"number\",dflt:1},bearing:{valType:\"number\",dflt:0},pitch:{valType:\"number\",dflt:0},layers:{_isLinkedToArray:\"layer\",sourcetype:{valType:\"enumerated\",values:[\"geojson\",\"vector\"],dflt:\"geojson\"},source:{valType:\"any\"},sourcelayer:{valType:\"string\",dflt:\"\"},type:{valType:\"enumerated\",values:[\"circle\",\"line\",\"fill\",\"symbol\"],dflt:\"circle\"},below:{valType:\"string\",dflt:\"\"},color:{valType:\"color\",dflt:i},opacity:{valType:\"number\",min:0,max:1,dflt:1},circle:{radius:{valType:\"number\",dflt:15}},line:{width:{valType:\"number\",dflt:2}},fill:{outlinecolor:{valType:\"color\",dflt:i}},symbol:{icon:{valType:\"string\",dflt:\"marker\"},iconsize:{valType:\"number\",dflt:10},text:{valType:\"string\",dflt:\"\"},textfont:l,textposition:n.extendFlat({},o,{arrayOk:!1})}}},\"plot\",\"from-root\")},{\"../../components/color\":604,\"../../lib\":728,\"../../plot_api/edit_types\":756,\"../../traces/scatter/attributes\":1031,\"../font_attributes\":796}],828:[function(t,e,r){\"use strict\";function n(t,e,r){r(\"accesstoken\"),r(\"style\"),r(\"center.lon\"),r(\"center.lat\"),r(\"zoom\"),r(\"bearing\"),r(\"pitch\"),i(t,e),e._input=t}function i(t,e){function r(t,e){return a.coerce(n,i,s.layers,t,e)}for(var n,i,o=t.layers||[],l=e.layers=[],u=0;u<o.length;u++)if(n=o[u],i={},a.isPlainObject(n)){var c=r(\"sourcetype\");r(\"source\"),\"vector\"===c&&r(\"sourcelayer\");var h=r(\"type\");r(\"below\"),r(\"color\"),r(\"opacity\"),\"circle\"===h&&r(\"circle.radius\"),\"line\"===h&&r(\"line.width\"),\"fill\"===h&&r(\"fill.outlinecolor\"),\"symbol\"===h&&(r(\"symbol.icon\"),r(\"symbol.iconsize\"),r(\"symbol.text\"),a.coerceFont(r,\"symbol.textfont\"),r(\"symbol.textposition\")),i._index=u,l.push(i)}}var a=t(\"../../lib\"),o=t(\"../subplot_defaults\"),s=t(\"./layout_attributes\");e.exports=function(t,e,r){o(t,e,r,{type:\"mapbox\",attributes:s,handleDefaults:n,partition:\"y\"})}},{\"../../lib\":728,\"../subplot_defaults\":838,\"./layout_attributes\":827}],829:[function(t,e,r){\"use strict\";function n(t){this.id=t.id,this.gd=t.gd,this.container=t.container,this.isStatic=t.staticPlot;var e=t.fullLayout;this.uid=e._uid+\"-\"+this.id,this.opts=e[this.id],this.div=null,this.xaxis=null,this.yaxis=null,this.createFramework(e),this.map=null,this.accessToken=null,this.styleObj=null,this.traceHash={},this.layerList=[]}function i(t){var e=d.style.values,r=d.style.dflt,n={};return u.isPlainObject(t)?(n.id=t.id,n.style=t):\"string\"==typeof t?(n.id=t,n.style=-1!==e.indexOf(t)?a(t):t):(n.id=r,n.style=a(r)),n}function a(t){return f.styleUrlPrefix+t+\"-\"+f.styleUrlSuffix}function o(t){return[t.lon,t.lat]}var s=t(\"mapbox-gl\"),l=t(\"../../components/fx\"),u=t(\"../../lib\"),c=t(\"../../components/dragelement\"),h=t(\"../cartesian/select\"),f=t(\"./constants\"),d=t(\"./layout_attributes\"),p=t(\"./layers\"),m=n.prototype;e.exports=function(t){return new n(t)},m.plot=function(t,e,r){var n=this,i=n.opts=e[this.id];n.map&&i.accesstoken!==n.accessToken&&(n.map.remove(),n.map=null,n.styleObj=null,n.traceHash=[],n.layerList={});var a;a=n.map?new Promise(function(r,i){n.updateMap(t,e,r,i)}):new Promise(function(r,i){n.createMap(t,e,r,i)}),r.push(a)},m.createMap=function(t,e,r,n){function a(){l.loneUnhover(e._toppaper)}var c=this,h=c.gd,d=c.opts,p=c.styleObj=i(d.style);c.accessToken=d.accesstoken;var m=c.map=new s.Map({container:c.div,style:p.style,center:o(d.center),zoom:d.zoom,bearing:d.bearing,pitch:d.pitch,interactive:!c.isStatic,preserveDrawingBuffer:c.isStatic,doubleClickZoom:!1,boxZoom:!1}),v=f.controlContainerClassName,g=c.div.getElementsByClassName(v)[0];c.div.removeChild(g),m._canvas.canvas.style.left=\"0px\",m._canvas.canvas.style.top=\"0px\",c.rejectOnError(n),m.once(\"load\",function(){c.updateData(t),c.updateLayout(e),c.resolveOnRender(r)}),c.isStatic||(m.on(\"moveend\",function(t){if(c.map){var e=c.getView();if(d._input.center=d.center=e.center,d._input.zoom=d.zoom=e.zoom,d._input.bearing=d.bearing=e.bearing,d._input.pitch=d.pitch=e.pitch,t.originalEvent){var r={};r[c.id]=u.extendFlat({},e),h.emit(\"plotly_relayout\",r)}}}),m.on(\"mousemove\",function(t){var e=c.div.getBoundingClientRect();t.clientX=t.point.x+e.left,t.clientY=t.point.y+e.top,t.target.getBoundingClientRect=function(){return e},c.xaxis.p2c=function(){return t.lngLat.lng},c.yaxis.p2c=function(){return t.lngLat.lat},l.hover(h,t,c.id)}),m.on(\"click\",function(t){l.click(h,t.originalEvent)}),m.on(\"dragstart\",a),m.on(\"zoomstart\",a),m.on(\"dblclick\",function(){var t=c.viewInitial;m.setCenter(o(t.center)),m.setZoom(t.zoom),m.setBearing(t.bearing),m.setPitch(t.pitch);var e=c.getView();d._input.center=d.center=e.center,d._input.zoom=d.zoom=e.zoom,d._input.bearing=d.bearing=e.bearing,d._input.pitch=d.pitch=e.pitch,h.emit(\"plotly_doubleclick\",null)}))},m.updateMap=function(t,e,r,n){var a=this,o=a.map;a.rejectOnError(n);var s=i(a.opts.style);a.styleObj.id!==s.id?(a.styleObj=s,o.setStyle(s.style),o.style.once(\"load\",function(){a.traceHash={},a.updateData(t),a.updateLayout(e),a.resolveOnRender(r)})):(a.updateData(t),a.updateLayout(e),a.resolveOnRender(r))},m.updateData=function(t){var e,r,n,i,a=this.traceHash;for(n=0;n<t.length;n++){var o=t[n];r=o[0].trace,e=a[r.uid],e?e.update(o):r._module&&(a[r.uid]=r._module.plot(this,o))}var s=Object.keys(a);t:for(n=0;n<s.length;n++){var l=s[n];for(i=0;i<t.length;i++)if(r=t[i][0].trace,l===r.uid)continue t;e=a[l],e.dispose(),delete a[l]}},m.updateLayout=function(t){var e=this.map,r=this.opts;e.setCenter(o(r.center)),e.setZoom(r.zoom),e.setBearing(r.bearing),e.setPitch(r.pitch),this.updateLayers(),this.updateFramework(t),this.updateFx(t),this.map.resize()},m.resolveOnRender=function(t){var e=this.map;e.on(\"render\",function r(){e.loaded()&&(e.off(\"render\",r),t())})},m.rejectOnError=function(t){function e(){t(new Error(f.mapOnErrorMsg))}var r=this.map;r.once(\"error\",e),r.once(\"style.error\",e),r.once(\"source.error\",e),r.once(\"tile.error\",e),r.once(\"layer.error\",e)},m.createFramework=function(t){var e=this,r=e.div=document.createElement(\"div\");r.id=e.uid,r.style.position=\"absolute\",e.container.appendChild(r),e.xaxis={_id:\"x\",c2p:function(t){return e.project(t).x}},e.yaxis={_id:\"y\",c2p:function(t){return e.project(t).y}},e.updateFramework(t)},m.updateFx=function(t){function e(t){var e=r.map.unproject(t);return[e.lng,e.lat]}var r=this,n=r.map,i=r.gd;if(!r.isStatic){var a,o=t.dragmode;if(a=\"select\"===o?function(t,n){(t.range={})[r.id]=[e([n.xmin,n.ymin]),e([n.xmax,n.ymax])]}:function(t,n,i){(t.lassoPoints={})[r.id]=i.filtered.map(e)},\"select\"===o||\"lasso\"===o){n.dragPan.disable();var s={element:r.div,gd:i,plotinfo:{xaxis:r.xaxis,yaxis:r.yaxis,fillRangeItems:a},xaxes:[r.xaxis],yaxes:[r.yaxis],subplot:r.id};s.prepFn=function(t,e,r){h(t,e,r,s,o)},s.doneFn=function(e,r){2===r&&t._zoomlayer.selectAll(\".select-outline\").remove()},c.init(s)}else n.dragPan.enable(),r.div.onmousedown=null}},m.updateFramework=function(t){var e=t[this.id].domain,r=t._size,n=this.div.style;n.width=r.w*(e.x[1]-e.x[0])+\"px\",n.height=r.h*(e.y[1]-e.y[0])+\"px\",n.left=r.l+e.x[0]*r.w+\"px\",n.top=r.t+(1-e.y[1])*r.h+\"px\",this.xaxis._offset=r.l+e.x[0]*r.w,this.xaxis._length=r.w*(e.x[1]-e.x[0]),this.yaxis._offset=r.t+(1-e.y[1])*r.h,this.yaxis._length=r.h*(e.y[1]-e.y[0])},m.updateLayers=function(){var t,e=this.opts,r=e.layers,n=this.layerList;if(r.length!==n.length){for(t=0;t<n.length;t++)n[t].dispose();for(n=this.layerList=[],t=0;t<r.length;t++)n.push(p(this,t,r[t]))}else for(t=0;t<r.length;t++)n[t].update(r[t])},m.destroy=function(){this.map&&(this.map.remove(),this.map=null,this.container.removeChild(this.div))},m.toImage=function(){return this.map.getCanvas().toDataURL()},m.initSource=function(t){var e={type:\"geojson\",data:{type:\"Feature\",geometry:{type:\"Point\",coordinates:[]}}};return this.map.addSource(t,e)},m.setSourceData=function(t,e){this.map.getSource(t).setData(e)},m.setOptions=function(t,e,r){for(var n=this.map,i=Object.keys(r),a=0;a<i.length;a++){var o=i[a];n[e](t,o,r[o])}},m.project=function(t){return this.map.project(new s.LngLat(t[0],t[1]))},m.getView=function(){var t=this.map,e=t.getCenter();return{center:{lon:e.lng,lat:e.lat},zoom:t.getZoom(),bearing:t.getBearing(),pitch:t.getPitch()}}},{\"../../components/dragelement\":625,\"../../components/fx\":645,\"../../lib\":728,\"../cartesian/select\":788,\"./constants\":823,\"./layers\":826,\"./layout_attributes\":827,\"mapbox-gl\":343}],830:[function(t,e,r){\"use strict\";e.exports={t:{valType:\"number\",dflt:0,editType:\"arraydraw\"},r:{valType:\"number\",dflt:0,editType:\"arraydraw\"},b:{valType:\"number\",dflt:0,editType:\"arraydraw\"},l:{valType:\"number\",dflt:0,editType:\"arraydraw\"},editType:\"arraydraw\"}},{}],831:[function(t,e,r){\"use strict\";function n(t,e){e.text(\"\");var r=e.append(\"a\").attr({\"xlink:xlink:href\":\"#\",class:\"link--impt link--embedview\",\"font-weight\":\"bold\"}).text(t._context.linkText+\" \"+String.fromCharCode(187));if(t._context.sendData)r.on(\"click\",function(){v.sendDataToCloud(t)});else{var n=window.location.pathname.split(\"/\"),i=window.location.search;r.attr({\"xlink:xlink:show\":\"new\",\"xlink:xlink:href\":\"/\"+n[2].split(\".\")[0]+\"/\"+n[1]+i})}}function i(t,e){var r,n,i=t.trace,a=i._arrayAttrs,o={};for(r=0;r<a.length;r++)n=a[r],o[n]=d.nestedProperty(i,n).get().slice();for(t.trace=e,r=0;r<a.length;r++)n=a[r],d.nestedProperty(t.trace,n).set(o[n])}function a(t,e,r,n){for(var i=t.transforms,a=[t],o=0;o<i.length;o++){var s=i[o],l=_[s.type];l&&l.transform&&(a=l.transform(a,{transform:s,fullTrace:t,fullData:e,layout:r,fullLayout:n,transformIndex:o}))}return a}function o(t){var e,r={left:0,right:0,bottom:0,top:0};if(t)for(e in t)t.hasOwnProperty(e)&&(r.left+=t[e].left||0,r.right+=t[e].right||0,r.bottom+=t[e].bottom||0,r.top+=t[e].top||0);return r}function s(t){for(var e=0;e<t.length;e++){t[e]._categories=t[e]._initialCategories.slice(),t[e]._categoriesMap={};for(var r=0;r<t[e]._categories.length;r++)t[e]._categoriesMap[t[e]._categories[r]]=r}}var l=t(\"d3\"),u=t(\"fast-isnumeric\"),c=t(\"../plotly\"),h=t(\"../plot_api/plot_schema\"),f=t(\"../registry\"),d=t(\"../lib\"),p=t(\"../components/color\"),m=t(\"../constants/numerical\").BADNUM,v=e.exports={},g=t(\"./animation_attributes\"),y=t(\"./frame_attributes\"),b=d.relinkPrivateKeys;d.extendFlat(v,f),v.attributes=t(\"./attributes\"),v.attributes.type.values=v.allTypes,v.fontAttrs=t(\"./font_attributes\"),v.layoutAttributes=t(\"./layout_attributes\"),v.fontWeight=\"normal\";var x=v.subplotsRegistry,_=v.transformsRegistry,w=t(\"../components/errorbars\"),M=t(\"./command\");v.executeAPICommand=M.executeAPICommand,v.computeAPICommandBindings=M.computeAPICommandBindings,v.manageCommandObserver=M.manageCommandObserver,v.hasSimpleAPICommandBindings=M.hasSimpleAPICommandBindings,v.findSubplotIds=function(t,e){var r=[];if(!v.subplotsRegistry[e])return r;for(var n=v.subplotsRegistry[e].attr,i=0;i<t.length;i++){var a=t[i];v.traceIs(a,e)&&-1===r.indexOf(a[n])&&r.push(a[n])}return r},v.getSubplotIds=function(t,e){var r=v.subplotsRegistry[e];if(!r)return[];if(!(\"cartesian\"!==e||t._has&&t._has(\"cartesian\")))return[];if(!(\"gl2d\"!==e||t._has&&t._has(\"gl2d\")))return[];if(\"cartesian\"===e||\"gl2d\"===e)return Object.keys(t._plots||{});for(var n=r.attrRegex,i=Object.keys(t),a=[],o=0;o<i.length;o++){var s=i[o];n.test(s)&&a.push(s)}var l=r.idRoot.length;return a.sort(function(t,e){return+(t.substr(l)||1)-+(e.substr(l)||1)}),a},v.getSubplotData=function(t,e,r){if(!v.subplotsRegistry[e])return[];for(var n,i=v.subplotsRegistry[e].attr,a=[],o=0;o<t.length;o++)if(n=t[o],\"gl2d\"===e&&v.traceIs(n,\"gl2d\")){var s=c.Axes.subplotMatch,l=\"x\"+r.match(s)[1],u=\"y\"+r.match(s)[2];n[i[0]]===l&&n[i[1]]===u&&a.push(n)}else n[i]===r&&a.push(n);return a},v.getSubplotCalcData=function(t,e,r){if(!v.subplotsRegistry[e])return[];for(var n=v.subplotsRegistry[e].attr,i=[],a=0;a<t.length;a++){var o=t[a];o[0].trace[n]===r&&i.push(o)}return i},v.redrawText=function(t){if(!(t.data&&t.data[0]&&t.data[0].r))return new Promise(function(e){setTimeout(function(){f.getComponentMethod(\"annotations\",\"draw\")(t),f.getComponentMethod(\"legend\",\"draw\")(t),(t.calcdata||[]).forEach(function(t){t[0]&&t[0].t&&t[0].t.cb&&t[0].t.cb()}),e(v.previousPromises(t))},300)})},v.resize=function(t){return new Promise(function(e,r){t&&!function(t){var e=window.getComputedStyle(t).display;return!e||\"none\"===e}(t)||r(new Error(\"Resize must be passed a displayed plot div element.\")),t._redrawTimer&&clearTimeout(t._redrawTimer),t._redrawTimer=setTimeout(function(){if(t.layout.width&&t.layout.height)return void e(t);delete t.layout.width,delete t.layout.height;var r=t.changed;t.autoplay=!0,c.relayout(t,{autosize:!0}).then(function(){t.changed=r,e(t)})},100)})},v.previousPromises=function(t){if((t._promises||[]).length)return Promise.all(t._promises).then(function(){t._promises=[]})},v.addLinks=function(t){if(t._context.showLink||t._context.showSources){var e=t._fullLayout,r=e._paper.selectAll(\"text.js-plot-link-container\").data([0]);r.enter().append(\"text\").classed(\"js-plot-link-container\",!0).style({\"font-family\":'\"Open Sans\", Arial, sans-serif',\"font-size\":\"12px\",fill:p.defaultLine,\"pointer-events\":\"all\"}).each(function(){var t=l.select(this);t.append(\"tspan\").classed(\"js-link-to-tool\",!0),t.append(\"tspan\").classed(\"js-link-spacer\",!0),t.append(\"tspan\").classed(\"js-sourcelinks\",!0)});var i=r.node(),a={y:e._paper.attr(\"height\")-9};document.body.contains(i)&&i.getComputedTextLength()>=e.width-20?(a[\"text-anchor\"]=\"start\",a.x=5):(a[\"text-anchor\"]=\"end\",a.x=e._paper.attr(\"width\")-7),r.attr(a);var o=r.select(\".js-link-to-tool\"),s=r.select(\".js-link-spacer\"),u=r.select(\".js-sourcelinks\");t._context.showSources&&t._context.showSources(t),t._context.showLink&&n(t,o),s.text(o.text()&&u.text()?\" - \":\"\")}},v.sendDataToCloud=function(t){t.emit(\"plotly_beforeexport\");var e=window.PLOTLYENV&&window.PLOTLYENV.BASE_URL||\"https://plot.ly\",r=l.select(t).append(\"div\").attr(\"id\",\"hiddenform\").style(\"display\",\"none\"),n=r.append(\"form\").attr({action:e+\"/external\",method:\"post\",target:\"_blank\"});return n.append(\"input\").attr({type:\"text\",name:\"data\"}).node().value=v.graphJson(t,!1,\"keepdata\"),n.node().submit(),r.remove(),t.emit(\"plotly_afterexport\"),!1},v.supplyDefaults=function(t){var e,r=t._fullLayout||{},n=t._fullLayout={},a=t.layout||{},o=t._fullData||[],s=t._fullData=[],l=t.data||[];if(t._transitionData||v.createTransitionData(t),r._initialAutoSizeIsDone){var u=r.width,h=r.height;v.supplyLayoutGlobalDefaults(a,n),a.width||(n.width=u),a.height||(n.height=h)}else{v.supplyLayoutGlobalDefaults(a,n);var f=!a.width||!a.height,d=n.autosize,p=t._context&&t._context.autosizable;f&&(d||p)?v.plotAutoSize(t,a,n):f&&v.sanitizeMargins(t),!d&&f&&(a.width=n.width,a.height=n.height)}n._initialAutoSizeIsDone=!0,n._dataLength=l.length,n._globalTransforms=(t._context||{}).globalTransforms,v.supplyDataDefaults(l,s,a,n),n._has=v._hasPlotType.bind(n);var m=n._modules;for(e=0;e<m.length;e++){var g=m[e];g.cleanData&&g.cleanData(s)}if(o.length===l.length)for(e=0;e<s.length;e++)b(s[e],o[e]);v.supplyLayoutModuleDefaults(a,n,s,t._transitionData),n._hasCartesian=n._has(\"cartesian\"),n._hasGeo=n._has(\"geo\"),n._hasGL3D=n._has(\"gl3d\"),n._hasGL2D=n._has(\"gl2d\"),n._hasTernary=n._has(\"ternary\"),n._hasPie=n._has(\"pie\"),v.cleanPlot(s,n,o,r),v.linkSubplots(s,n,o,r),b(n,r),v.doAutoMargin(t);var y=c.Axes.list(t);for(e=0;e<y.length;e++){y[e].setScale()}if((t.calcdata||[]).length===s.length)for(e=0;e<s.length;e++){var x=s[e],_=t.calcdata[e][0];_&&_.trace&&(_.trace._hasCalcTransform?i(_,x):_.trace=x)}},v.createTransitionData=function(t){t._transitionData||(t._transitionData={}),t._transitionData._frames||(t._transitionData._frames=[]),t._transitionData._frameHash||(t._transitionData._frameHash={}),t._transitionData._counter||(t._transitionData._counter=0),t._transitionData._interruptCallbacks||(t._transitionData._interruptCallbacks=[])},v._hasPlotType=function(t){for(var e=this._basePlotModules||[],r=0;r<e.length;r++){if(e[r].name===t)return!0}return!1},v.cleanPlot=function(t,e,r,n){var i,a,o=n._basePlotModules||[];for(i=0;i<o.length;i++){var s=o[i];s.clean&&s.clean(t,e,r,n)}var l=!!n._paper,u=!!n._infolayer;t:for(i=0;i<r.length;i++){var c=r[i],h=c.uid;for(a=0;a<t.length;a++){var f=t[a];if(h===f.uid)continue t}var d=\".hm\"+h+\",.contour\"+h+\",.carpet\"+h+\",#clip\"+h+\",.trace\"+h;l&&n._paper.selectAll(d).remove(),u&&(n._infolayer.selectAll(\".cb\"+h).remove(),n._infolayer.selectAll(\"g.rangeslider-container\").selectAll(d).remove())}n._zoomlayer&&n._zoomlayer.selectAll(\".select-outline\").remove()},v.linkSubplots=function(t,e,r,n){var i,a=n._plots||{},o=e._plots={},s={_fullData:t,_fullLayout:e},l=c.Axes.getSubplots(s);for(i=0;i<l.length;i++){var u,h=l[i],f=a[h],d=c.Axes.getFromId(s,h,\"x\"),p=c.Axes.getFromId(s,h,\"y\");f?(u=o[h]=f,u._scene2d&&u._scene2d.updateRefs(e),u.xaxis.layer!==d.layer&&(u.xlines.attr(\"d\",null),u.xaxislayer.selectAll(\"*\").remove()),u.yaxis.layer!==p.layer&&(u.ylines.attr(\"d\",null),u.yaxislayer.selectAll(\"*\").remove())):(u=o[h]={},u.id=h),u.xaxis=d,u.yaxis=p,u._hasClipOnAxisFalse=!1;for(var m=0;m<t.length;m++){var v=t[m]\n", ";if(v.xaxis===u.xaxis._id&&v.yaxis===u.yaxis._id&&!1===v.cliponaxis){u._hasClipOnAxisFalse=!0;break}}}var g=c.Axes.list(s,null,!0);for(i=0;i<g.length;i++){var y=g[i],b=null;y.overlaying&&(b=c.Axes.getFromId(s,y.overlaying))&&b.overlaying&&(y.overlaying=!1,b=null),y._mainAxis=b||y,b&&(y.domain=b.domain.slice()),y._anchorAxis=\"free\"===y.anchor?null:c.Axes.getFromId(s,y.anchor)}},v.clearExpandedTraceDefaultColors=function(t){function e(t,e,i,a){n[a]=e,n.length=a+1,\"color\"===t.valType&&void 0===t.dflt&&r.push(n.join(\".\"))}var r,n,i;for(n=[],r=t._module._colorAttrs,r||(t._module._colorAttrs=r=[],h.crawl(t._module.attributes,e)),i=0;i<r.length;i++){d.nestedProperty(t,\"_input.\"+r[i]).get()||d.nestedProperty(t,r[i]).set(null)}},v.supplyDataDefaults=function(t,e,r,n){function i(t){e.push(t);var r=t._module;r&&(d.pushUnique(u,r),d.pushUnique(c,t._module.basePlotModule),h++)}var o,s,l,u=n._modules=[],c=n._basePlotModules=[],h=0;n._transformModules=[];var p={},m=[];for(o=0;o<t.length;o++){if(l=t[o],s=v.supplyTraceDefaults(l,h,n,o),s.index=o,s._input=l,s._expandedIndex=h,s.transforms&&s.transforms.length)for(var g=a(s,e,r,n),y=0;y<g.length;y++){var x=g[y],_=v.supplyTraceDefaults(x,h,n,o);b(_,x),x.uid=_.uid=s.uid+y,_.index=o,_._input=l,_._fullInput=s,_._expandedIndex=h,_._expandedInput=x,i(_)}else s._fullInput=s,s._expandedInput=s,i(s);f.traceIs(s,\"carpetAxis\")&&(p[s.carpet]=s),f.traceIs(s,\"carpetDependent\")&&m.push(o)}for(o=0;o<m.length;o++)if(s=e[m[o]],s.visible){var w=p[s.carpet];s._carpet=w,w&&w.visible?(s.xaxis=w.xaxis,s.yaxis=w.yaxis):s.visible=!1}},v.supplyAnimationDefaults=function(t){function e(e,r){return d.coerce(t||{},n,g,e,r)}t=t||{};var r,n={};if(e(\"mode\"),e(\"direction\"),e(\"fromcurrent\"),Array.isArray(t.frame))for(n.frame=[],r=0;r<t.frame.length;r++)n.frame[r]=v.supplyAnimationFrameDefaults(t.frame[r]||{});else n.frame=v.supplyAnimationFrameDefaults(t.frame||{});if(Array.isArray(t.transition))for(n.transition=[],r=0;r<t.transition.length;r++)n.transition[r]=v.supplyAnimationTransitionDefaults(t.transition[r]||{});else n.transition=v.supplyAnimationTransitionDefaults(t.transition||{});return n},v.supplyAnimationFrameDefaults=function(t){function e(e,n){return d.coerce(t||{},r,g.frame,e,n)}var r={};return e(\"duration\"),e(\"redraw\"),r},v.supplyAnimationTransitionDefaults=function(t){function e(e,n){return d.coerce(t||{},r,g.transition,e,n)}var r={};return e(\"duration\"),e(\"easing\"),r},v.supplyFrameDefaults=function(t){function e(e,n){return d.coerce(t,r,y,e,n)}var r={};return e(\"group\"),e(\"name\"),e(\"traces\"),e(\"baseframe\"),e(\"data\"),e(\"layout\"),r},v.supplyTraceDefaults=function(t,e,r,n){function i(e,r){return d.coerce(t,o,v.attributes,e,r)}function a(e,r){if(v.traceIs(o,e))return d.coerce(t,o,v.subplotsRegistry[e].attributes,r)}var o={},s=p.defaults[e%p.defaults.length],l=i(\"visible\");i(\"type\"),i(\"uid\"),i(\"name\",\"trace \"+n);for(var u=Object.keys(x),c=0;c<u.length;c++){var h=u[c];if(-1===[\"cartesian\",\"gl2d\"].indexOf(h)){var m=x[h].attr;m&&a(h,m)}}if(l){i(\"customdata\"),i(\"ids\");var g=v.getModule(o);o._module=g,v.traceIs(o,\"showLegend\")&&(i(\"showlegend\"),i(\"legendgroup\")),f.getComponentMethod(\"fx\",\"supplyDefaults\")(t,o,s,r),g&&(g.supplyDefaults(t,o,s,r),d.coerceHoverinfo(t,o,r)),v.traceIs(o,\"noOpacity\")||i(\"opacity\"),a(\"cartesian\",\"xaxis\"),a(\"cartesian\",\"yaxis\"),a(\"gl2d\",\"xaxis\"),a(\"gl2d\",\"yaxis\"),v.traceIs(o,\"notLegendIsolatable\")&&(o.visible=!!o.visible),v.supplyTransformDefaults(t,o,r)}return o},v.supplyTransformDefaults=function(t,e,r){var n=r._globalTransforms||[],i=r._transformModules||[];if(Array.isArray(t.transforms)||0!==n.length)for(var a=t.transforms||[],o=n.concat(a),s=e.transforms=[],l=0;l<o.length;l++){var u,c=o[l],h=c.type,f=_[h],p=!(c._module&&c._module===f),m=f&&\"function\"==typeof f.transform;f||d.warn(\"Unrecognized transform type \"+h+\".\"),f&&f.supplyDefaults&&(p||m)?(u=f.supplyDefaults(c,e,r,t),u.type=h,u._module=f,d.pushUnique(i,f)):u=d.extendFlat({},c),s.push(u)}},v.supplyLayoutGlobalDefaults=function(t,e){function r(r,n){return d.coerce(t,e,v.layoutAttributes,r,n)}var n=d.coerceFont(r,\"font\");r(\"title\"),d.coerceFont(r,\"titlefont\",{family:n.family,size:Math.round(1.4*n.size),color:n.color}),r(\"autosize\",!(t.width&&t.height)),r(\"width\"),r(\"height\"),r(\"margin.l\"),r(\"margin.r\"),r(\"margin.t\"),r(\"margin.b\"),r(\"margin.pad\"),r(\"margin.autoexpand\"),t.width&&t.height&&v.sanitizeMargins(e),r(\"paper_bgcolor\"),r(\"separators\"),r(\"hidesources\"),r(\"smith\"),f.getComponentMethod(\"calendars\",\"handleDefaults\")(t,e,\"calendar\"),f.getComponentMethod(\"fx\",\"supplyLayoutGlobalDefaults\")(t,e,r)},v.plotAutoSize=function(t,e,r){var n,i,a=t._context||{},s=a.frameMargins,l=d.isPlotDiv(t);if(l&&t.emit(\"plotly_autosize\"),a.fillFrame)n=window.innerWidth,i=window.innerHeight,document.body.style.overflow=\"hidden\";else if(u(s)&&s>0){var c=o(t._boundingBoxMargins),h=c.left+c.right,f=c.bottom+c.top,p=1-2*s,m=r._container&&r._container.node?r._container.node().getBoundingClientRect():{width:r.width,height:r.height};n=Math.round(p*(m.width-h)),i=Math.round(p*(m.height-f))}else{var g=l?window.getComputedStyle(t):{};n=parseFloat(g.width)||r.width,i=parseFloat(g.height)||r.height}var y=v.layoutAttributes.width.min,b=v.layoutAttributes.height.min;n<y&&(n=y),i<b&&(i=b);var x=!e.width&&Math.abs(r.width-n)>1,_=!e.height&&Math.abs(r.height-i)>1;(_||x)&&(x&&(r.width=n),_&&(r.height=i)),t._initialAutoSize||(t._initialAutoSize={width:n,height:i}),v.sanitizeMargins(r)},v.supplyLayoutModuleDefaults=function(t,e,r,n){var i,a;c.Axes.supplyLayoutDefaults(t,e,r);var o=e._basePlotModules;for(i=0;i<o.length;i++)a=o[i],\"cartesian\"!==a.name&&a.supplyLayoutDefaults&&a.supplyLayoutDefaults(t,e,r);var s=e._modules;for(i=0;i<s.length;i++)a=s[i],a.supplyLayoutDefaults&&a.supplyLayoutDefaults(t,e,r);var l=e._transformModules;for(i=0;i<l.length;i++)a=l[i],a.supplyLayoutDefaults&&a.supplyLayoutDefaults(t,e,r,n);var u=Object.keys(f.componentsRegistry);for(i=0;i<u.length;i++)a=f.componentsRegistry[u[i]],a.supplyLayoutDefaults&&a.supplyLayoutDefaults(t,e,r)},v.purge=function(t){var e=t._fullLayout||{};void 0!==e._glcontainer&&e._glcontainer.remove(),void 0!==e._geocontainer&&e._geocontainer.remove(),e._modeBar&&e._modeBar.destroy(),t._transitionData&&(t._transitionData._interruptCallbacks&&(t._transitionData._interruptCallbacks.length=0),t._transitionData._animationRaf&&window.cancelAnimationFrame(t._transitionData._animationRaf)),delete t.data,delete t.layout,delete t._fullData,delete t._fullLayout,delete t.calcdata,delete t.framework,delete t.empty,delete t.fid,delete t.undoqueue,delete t.undonum,delete t.autoplay,delete t.changed,delete t._promises,delete t._redrawTimer,delete t.firstscatter,delete t._hmlumcount,delete t._hmpixcount,delete t.numboxes,delete t._transitionData,delete t._transitioning,delete t._initialAutoSize,delete t._transitioningWithDuration,delete t._dragging,delete t._dragged,delete t._hoverdata,delete t._snapshotInProgress,delete t._editing,delete t._replotPending,delete t._mouseDownTime,delete t._legendMouseDownTime,t.removeAllListeners&&t.removeAllListeners()},v.style=function(t){for(var e=t._fullLayout._modules,r=0;r<e.length;r++){var n=e[r];n.style&&n.style(t)}},v.sanitizeMargins=function(t){if(t&&t.margin){var e,r=t.width,n=t.height,i=t.margin,a=r-(i.l+i.r),o=n-(i.t+i.b);a<0&&(e=(r-1)/(i.l+i.r),i.l=Math.floor(e*i.l),i.r=Math.floor(e*i.r)),o<0&&(e=(n-1)/(i.t+i.b),i.t=Math.floor(e*i.t),i.b=Math.floor(e*i.b))}},v.autoMargin=function(t,e,r){var n=t._fullLayout;if(n._pushmargin||(n._pushmargin={}),!1!==n.margin.autoexpand){if(r){var i=void 0===r.pad?12:r.pad;r.l+r.r>.5*n.width&&(r.l=r.r=0),r.b+r.t>.5*n.height&&(r.b=r.t=0),n._pushmargin[e]={l:{val:r.x,size:r.l+i},r:{val:r.x,size:r.r+i},b:{val:r.y,size:r.b+i},t:{val:r.y,size:r.t+i}}}else delete n._pushmargin[e];n._replotting||v.doAutoMargin(t)}},v.doAutoMargin=function(t){var e=t._fullLayout;e._size||(e._size={}),e._pushmargin||(e._pushmargin={});var r=e._size,n=JSON.stringify(r),i=Math.max(e.margin.l||0,0),a=Math.max(e.margin.r||0,0),o=Math.max(e.margin.t||0,0),s=Math.max(e.margin.b||0,0),l=e._pushmargin;if(!1!==e.margin.autoexpand){l.base={l:{val:0,size:i},r:{val:1,size:a},t:{val:1,size:o},b:{val:0,size:s}};for(var h=Object.keys(l),f=0;f<h.length;f++)for(var d=h[f],p=l[d].l||{},m=l[d].b||{},v=p.val,g=p.size,y=m.val,b=m.size,x=0;x<h.length;x++){var _=h[x];if(u(g)&&l[_].r){var w=l[_].r.val,M=l[_].r.size;if(w>v){var k=(g*w+(M-e.width)*v)/(w-v),A=(M*(1-v)+(g-e.width)*(1-w))/(w-v);k>=0&&A>=0&&k+A>i+a&&(i=k,a=A)}}if(u(b)&&l[_].t){var T=l[_].t.val,S=l[_].t.size;if(T>y){var E=(b*T+(S-e.height)*y)/(T-y),L=(S*(1-y)+(b-e.height)*(1-T))/(T-y);E>=0&&L>=0&&E+L>s+o&&(s=E,o=L)}}}}if(r.l=Math.round(i),r.r=Math.round(a),r.t=Math.round(o),r.b=Math.round(s),r.p=Math.round(e.margin.pad),r.w=Math.round(e.width)-r.l-r.r,r.h=Math.round(e.height)-r.t-r.b,!e._replotting&&\"{}\"!==n&&n!==JSON.stringify(e._size))return c.plot(t)},v.graphJson=function(t,e,r,n,i){function a(t){if(\"function\"==typeof t)return null;if(d.isPlainObject(t)){var e,n,i={};for(e in t)if(\"function\"!=typeof t[e]&&-1===[\"_\",\"[\"].indexOf(e.charAt(0))){if(\"keepdata\"===r){if(\"src\"===e.substr(e.length-3))continue}else if(\"keepstream\"===r){if(\"string\"==typeof(n=t[e+\"src\"])&&n.indexOf(\":\")>0&&!d.isPlainObject(t.stream))continue}else if(\"keepall\"!==r&&\"string\"==typeof(n=t[e+\"src\"])&&n.indexOf(\":\")>0)continue;i[e]=a(t[e])}return i}return Array.isArray(t)?t.map(a):d.isJSDate(t)?d.ms2DateTimeLocal(+t):t}(i&&e&&!t._fullData||i&&!e&&!t._fullLayout)&&v.supplyDefaults(t);var o=i?t._fullData:t.data,s=i?t._fullLayout:t.layout,l=(t._transitionData||{})._frames,u={data:(o||[]).map(function(t){var r=a(t);return e&&delete r.fit,r})};return e||(u.layout=a(s)),t.framework&&t.framework.isPolar&&(u=t.framework.getConfig()),l&&(u.frames=a(l)),\"object\"===n?u:JSON.stringify(u)},v.modifyFrames=function(t,e){var r,n,i,a=t._transitionData._frames,o=t._transitionData._frameHash;for(r=0;r<e.length;r++)switch(n=e[r],n.type){case\"replace\":i=n.value;var s=(a[n.index]||{}).name,l=i.name;a[n.index]=o[l]=i,l!==s&&(delete o[s],o[l]=i);break;case\"insert\":i=n.value,o[i.name]=i,a.splice(n.index,0,i);break;case\"delete\":i=a[n.index],delete o[i.name],a.splice(n.index,1)}return Promise.resolve()},v.computeFrame=function(t,e){var r,n,i,a,o=t._transitionData._frameHash;if(!e)throw new Error(\"computeFrame must be given a string frame name\");var s=o[e.toString()];if(!s)return!1;for(var l=[s],u=[s.name];s.baseframe&&(s=o[s.baseframe.toString()])&&-1===u.indexOf(s.name);)l.push(s),u.push(s.name);for(var c={};s=l.pop();)if(s.layout&&(c.layout=v.extendLayout(c.layout,s.layout)),s.data){if(c.data||(c.data=[]),!(n=s.traces))for(n=[],r=0;r<s.data.length;r++)n[r]=r;for(c.traces||(c.traces=[]),r=0;r<s.data.length;r++)void 0!==(i=n[r])&&null!==i&&(a=c.traces.indexOf(i),-1===a&&(a=c.data.length,c.traces[a]=i),c.data[a]=v.extendTrace(c.data[a],s.data[r]))}return c},v.recomputeFrameHash=function(t){for(var e=t._transitionData._frameHash={},r=t._transitionData._frames,n=0;n<r.length;n++){var i=r[n];i&&i.name&&(e[i.name]=i)}},v.extendObjectWithContainers=function(t,e,r){var n,i,a,o,s,l,u,c,h=d.extendDeepNoArrays({},e||{}),f=d.expandObjectPaths(h),p={};if(r&&r.length)for(a=0;a<r.length;a++)n=d.nestedProperty(f,r[a]),i=n.get(),void 0===i?d.nestedProperty(p,r[a]).set(null):(n.set(null),d.nestedProperty(p,r[a]).set(i));if(t=d.extendDeepNoArrays(t||{},f),r&&r.length)for(a=0;a<r.length;a++)if(s=d.nestedProperty(p,r[a]),u=s.get()){for(l=d.nestedProperty(t,r[a]),c=l.get(),Array.isArray(c)||(c=[],l.set(c)),o=0;o<u.length;o++){var m=u[o];c[o]=null===m?null:v.extendObjectWithContainers(c[o],m)}l.set(c)}return t},v.dataArrayContainers=[\"transforms\"],v.layoutArrayContainers=f.layoutArrayContainers,v.extendTrace=function(t,e){return v.extendObjectWithContainers(t,e,v.dataArrayContainers)},v.extendLayout=function(t,e){return v.extendObjectWithContainers(t,e,v.layoutArrayContainers)},v.transition=function(t,e,r,n,i,a){function o(){var n;for(n=0;n<y.length;n++){var i=y[n],a=t._fullData[i],o=a._module;o&&(o.animatable&&b.push(i),t.data[y[n]]=v.extendTrace(t.data[y[n]],e[n]))}var s=d.expandObjectPaths(d.extendDeepNoArrays({},r)),l=/^[xy]axis[0-9]*$/;for(var u in s)l.test(u)&&delete s[u].range;return v.extendLayout(t.layout,s),delete t.calcdata,v.supplyDefaults(t),v.doCalcdata(t),w.calc(t),Promise.resolve()}function s(t){var e=Promise.resolve();if(!t)return e;for(;t.length;)e=e.then(t.shift());return e}function l(t){if(t)for(;t.length;)t.shift()}function u(){return t.emit(\"plotly_transitioning\",[]),new Promise(function(e){function n(){return l++,function(){u++,x||u!==l||h(e)}}t._transitioning=!0,a.duration>0&&(t._transitioningWithDuration=!0),t._transitionData._interruptCallbacks.push(function(){x=!0}),i.redraw&&t._transitionData._interruptCallbacks.push(function(){return c.redraw(t)}),t._transitionData._interruptCallbacks.push(function(){t.emit(\"plotly_transitioninterrupted\",[])});var o,s,l=0,u=0,f=t._fullLayout._basePlotModules,p=!1;if(r)for(s=0;s<f.length;s++)if(f[s].transitionAxes){var m=d.expandObjectPaths(r);p=f[s].transitionAxes(t,m,a,n)||p}for(p?(o=d.extendFlat({},a),o.duration=0):o=a,s=0;s<f.length;s++)f[s].plot(t,b,o,n);setTimeout(n())})}function h(e){if(t._transitionData)return l(t._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(i.redraw)return c.redraw(t)}).then(function(){t._transitioning=!1,t._transitioningWithDuration=!1,t.emit(\"plotly_transitioned\",[])}).then(e)}function f(){if(t._transitionData)return t._transitioning=!1,s(t._transitionData._interruptCallbacks)}var p,m,g=Array.isArray(e)?e.length:0,y=n.slice(0,g),b=[],x=!1;for(p=0;p<y.length;p++){m=y[p];var _=t._fullData[m],M=_._module;if(M&&!M.animatable){var k={};for(var A in e[p])k[A]=[e[p][A]]}}var T=[v.previousPromises,f,o,v.rehover,u],S=d.syncOrAsync(T,t);return S&&S.then||(S=Promise.resolve()),S.then(function(){return t})},v.doCalcdata=function(t,e){var r,n,i,a,o=c.Axes.list(t),l=t._fullData,u=t._fullLayout,d=new Array(l.length),p=(t.calcdata||[]).slice(0);for(t.calcdata=d,t.firstscatter=!0,t.numboxes=0,t._hmpixcount=0,t._hmlumcount=0,u._piecolormap={},u._piedefaultcolorcount=0,i=0;i<l.length;i++)Array.isArray(e)&&-1===e.indexOf(i)&&(d[i]=p[i]);for(i=0;i<l.length;i++)r=l[i],r._arrayAttrs=h.findArrayAttributes(r);s(o);var v=!1;for(i=0;i<l.length;i++)if(r=l[i],!0===r.visible&&r.transforms)for(n=r._module,n&&n.calc&&n.calc(t,r),a=0;a<r.transforms.length;a++){var g=r.transforms[a];n=_[g.type],n&&n.calcTransform&&(r._hasCalcTransform=!0,v=!0,n.calcTransform(t,r,g))}if(v){for(i=0;i<o.length;i++)o[i]._min=[],o[i]._max=[],o[i]._categories=[],o[i]._categoriesMap={};s(o)}for(i=0;i<l.length;i++){var y=[];r=l[i],!0===r.visible&&(n=r._module)&&n.calc&&(y=n.calc(t,r)),Array.isArray(y)&&y[0]||(y=[{x:m,y:m}]),y[0].t||(y[0].t={}),y[0].trace=r,d[i]=y}f.getComponentMethod(\"fx\",\"calc\")(t)},v.rehover=function(t){t._fullLayout._rehover&&t._fullLayout._rehover()},v.generalUpdatePerTraceModule=function(t,e,r){var n,i=t.traceHash,a={};for(n=0;n<e.length;n++){var o=e[n],s=o[0].trace;s.visible&&(a[s.type]=a[s.type]||[],a[s.type].push(o))}var l=Object.keys(i),u=Object.keys(a);for(n=0;n<l.length;n++){var c=l[n];if(-1===u.indexOf(c)){var h=i[c][0];h[0].trace.visible=!1,a[c]=[h]}}for(u=Object.keys(a),n=0;n<u.length;n++){var f=a[u[n]];f[0][0].trace._module.plot(t,function(t){for(var e=[],r=0;r<t.length;r++){var n=t[r];!0===n[0].trace.visible&&e.push(n)}return e}(f),r)}t.traceHash=a}},{\"../components/color\":604,\"../components/errorbars\":634,\"../constants/numerical\":707,\"../lib\":728,\"../plot_api/plot_schema\":761,\"../plotly\":767,\"../registry\":846,\"./animation_attributes\":768,\"./attributes\":770,\"./command\":795,\"./font_attributes\":796,\"./frame_attributes\":797,\"./layout_attributes\":822,d3:122,\"fast-isnumeric\":131}],832:[function(t,e,r){\"use strict\";var n=t(\"../../traces/scatter/attributes\"),i=n.marker;e.exports={r:n.r,t:n.t,marker:{color:i.color,size:i.size,symbol:i.symbol,opacity:i.opacity,editType:\"calc\"}}},{\"../../traces/scatter/attributes\":1031}],833:[function(t,e,r){\"use strict\";function n(t,e){return a({},e,{showline:{valType:\"boolean\"},showticklabels:{valType:\"boolean\"},tickorientation:{valType:\"enumerated\",values:[\"horizontal\",\"vertical\"]},ticklen:{valType:\"number\",min:0},tickcolor:{valType:\"color\"},ticksuffix:{valType:\"string\"},endpadding:{valType:\"number\"},visible:{valType:\"boolean\"}})}var i=t(\"../cartesian/layout_attributes\"),a=t(\"../../lib/extend\").extendFlat,o=t(\"../../plot_api/edit_types\").overrideAll,s=a({},i.domain,{});e.exports=o({radialaxis:n(\"radial\",{range:{valType:\"info_array\",items:[{valType:\"number\"},{valType:\"number\"}]},domain:s,orientation:{valType:\"number\"}}),angularaxis:n(\"angular\",{range:{valType:\"info_array\",items:[{valType:\"number\",dflt:0},{valType:\"number\",dflt:360}]},domain:s}),layout:{direction:{valType:\"enumerated\",values:[\"clockwise\",\"counterclockwise\"]},orientation:{valType:\"angle\"}}},\"plot\",\"nested\")},{\"../../lib/extend\":717,\"../../plot_api/edit_types\":756,\"../cartesian/layout_attributes\":783}],834:[function(t,e,r){\"use strict\";(e.exports=t(\"./micropolar\")).manager=t(\"./micropolar_manager\")},{\"./micropolar\":835,\"./micropolar_manager\":836}],835:[function(t,e,r){var n=t(\"d3\"),i=t(\"../../lib\"),a=i.extendDeepAll,o=t(\"../../constants/alignment\").MID_SHIFT,s=e.exports={version:\"0.2.2\"};s.Axis=function(){function t(t){r=t||r;var c=u.data,f=u.layout;return(\"string\"==typeof r||r.nodeName)&&(r=n.select(r)),r.datum(c).each(function(t,r){function u(t,e){return l(t)%360+f.orientation}var c=t.slice();h={data:s.util.cloneJson(c),layout:s.util.cloneJson(f)};var d=0;c.forEach(function(t,e){t.color||(t.color=f.defaultColorRange[d],d=(d+1)%f.defaultColorRange.length),t.strokeColor||(t.strokeColor=\"LinePlot\"===t.geometry?t.color:n.rgb(t.color).darker().toString()),h.data[e].color=t.color,h.data[e].strokeColor=t.strokeColor,h.data[e].strokeDash=t.strokeDash,h.data[e].strokeSize=t.strokeSize});var p=c.filter(function(t,e){var r=t.visible;return void 0===r||!0===r}),m=!1,v=p.map(function(t,e){return m=m||void 0!==t.groupId,t});if(m){var g=n.nest().key(function(t,e){return void 0!==t.groupId?t.groupId:\"unstacked\"}).entries(v),y=[],b=g.map(function(t,e){if(\"unstacked\"===t.key)return t.values;var r=t.values[0].r.map(function(t,e){return 0});return t.values.forEach(function(t,e,n){t.yStack=[r],y.push(r),r=s.util.sumArrays(t.r,r)}),t.values});p=n.merge(b)}p.forEach(function(t,e){t.t=Array.isArray(t.t[0])?t.t:[t.t],t.r=Array.isArray(t.r[0])?t.r:[t.r]});var x=Math.min(f.width-f.margin.left-f.margin.right,f.height-f.margin.top-f.margin.bottom)/2;x=Math.max(10,x);var _,w=[f.margin.left+x,f.margin.top+x];if(m){_=[0,n.max(s.util.sumArrays(s.util.arrayLast(p).r[0],s.util.arrayLast(y)))]}else _=n.extent(s.util.flattenArray(p.map(function(t,e){return t.r})));f.radialAxis.domain!=s.DATAEXTENT&&(_[0]=0),i=n.scale.linear().domain(f.radialAxis.domain!=s.DATAEXTENT&&f.radialAxis.domain?f.radialAxis.domain:_).range([0,x]),h.layout.radialAxis.domain=i.domain();var M,k=s.util.flattenArray(p.map(function(t,e){return t.t})),A=\"string\"==typeof k[0];A&&(k=s.util.deduplicate(k),M=k.slice(),k=n.range(k.length),p=p.map(function(t,e){var r=t;return t.t=[k],m&&(r.yStack=t.yStack),r}));var T=p.filter(function(t,e){return\"LinePlot\"===t.geometry||\"DotPlot\"===t.geometry}).length===p.length,S=null===f.needsEndSpacing?A||!T:f.needsEndSpacing,E=f.angularAxis.domain&&f.angularAxis.domain!=s.DATAEXTENT&&!A&&f.angularAxis.domain[0]>=0,L=E?f.angularAxis.domain:n.extent(k),C=Math.abs(k[1]-k[0]);T&&!A&&(C=0);var I=L.slice();S&&A&&(I[1]+=C);var z=f.angularAxis.ticksCount||4;z>8&&(z=z/(z/8)+z%8),f.angularAxis.ticksStep&&(z=(I[1]-I[0])/z);var D=f.angularAxis.ticksStep||(I[1]-I[0])/(z*(f.minorTicks+1));M&&(D=Math.max(Math.round(D),1)),I[2]||(I[2]=D);var P=n.range.apply(this,I);if(P=P.map(function(t,e){return parseFloat(t.toPrecision(12))}),l=n.scale.linear().domain(I.slice(0,2)).range(\"clockwise\"===f.direction?[0,360]:[360,0]),h.layout.angularAxis.domain=l.domain(),h.layout.angularAxis.endPadding=S?C:0,void 0===(e=n.select(this).select(\"svg.chart-root\"))||e.empty()){var O=(new DOMParser).parseFromString(\"<svg xmlns='http://www.w3.org/2000/svg' class='chart-root'>' + '<g class='outer-group'>' + '<g class='chart-group'>' + '<circle class='background-circle'></circle>' + '<g class='geometry-group'></g>' + '<g class='radial axis-group'>' + '<circle class='outside-circle'></circle>' + '</g>' + '<g class='angular axis-group'></g>' + '<g class='guides-group'><line></line><circle r='0'></circle></g>' + '</g>' + '<g class='legend-group'></g>' + '<g class='tooltips-group'></g>' + '<g class='title-group'><text></text></g>' + '</g>' + '</svg>\",\"application/xml\"),R=this.appendChild(this.ownerDocument.importNode(O.documentElement,!0));e=n.select(R)}e.select(\".guides-group\").style({\"pointer-events\":\"none\"}),e.select(\".angular.axis-group\").style({\"pointer-events\":\"none\"}),e.select(\".radial.axis-group\").style({\"pointer-events\":\"none\"});var F,j=e.select(\".chart-group\"),N={fill:\"none\",stroke:f.tickColor},B={\"font-size\":f.font.size,\"font-family\":f.font.family,fill:f.font.color,\"text-shadow\":[\"-1px 0px\",\"1px -1px\",\"-1px 1px\",\"1px 1px\"].map(function(t,e){return\" \"+t+\" 0 \"+f.font.outlineColor}).join(\",\")};if(f.showLegend){F=e.select(\".legend-group\").attr({transform:\"translate(\"+[x,f.margin.top]+\")\"}).style({display:\"block\"});var U=p.map(function(t,e){var r=s.util.cloneJson(t);return r.symbol=\"DotPlot\"===t.geometry?t.dotType||\"circle\":\"LinePlot\"!=t.geometry?\"square\":\"line\",r.visibleInLegend=void 0===t.visibleInLegend||t.visibleInLegend,r.color=\"LinePlot\"===t.geometry?t.strokeColor:t.color,r});s.Legend().config({data:p.map(function(t,e){return t.name||\"Element\"+e}),legendConfig:a({},s.Legend.defaultConfig().legendConfig,{container:F,elements:U,reverseOrder:f.legend.reverseOrder})})();var V=F.node().getBBox();x=Math.min(f.width-V.width-f.margin.left-f.margin.right,f.height-f.margin.top-f.margin.bottom)/2,x=Math.max(10,x),w=[f.margin.left+x,f.margin.top+x],i.range([0,x]),h.layout.radialAxis.domain=i.domain(),F.attr(\"transform\",\"translate(\"+[w[0]+x,w[1]-x]+\")\")}else F=e.select(\".legend-group\").style({display:\"none\"});e.attr({width:f.width,height:f.height}).style({opacity:f.opacity}),j.attr(\"transform\",\"translate(\"+w+\")\").style({cursor:\"crosshair\"});var H=[(f.width-(f.margin.left+f.margin.right+2*x+(V?V.width:0)))/2,(f.height-(f.margin.top+f.margin.bottom+2*x))/2];if(H[0]=Math.max(0,H[0]),H[1]=Math.max(0,H[1]),e.select(\".outer-group\").attr(\"transform\",\"translate(\"+H+\")\"),f.title){var q=e.select(\"g.title-group text\").style(B).text(f.title),G=q.node().getBBox();q.attr({x:w[0]-G.width/2,y:w[1]-x-20})}var Y=e.select(\".radial.axis-group\");if(f.radialAxis.gridLinesVisible){var W=Y.selectAll(\"circle.grid-circle\").data(i.ticks(5));W.enter().append(\"circle\").attr({class:\"grid-circle\"}).style(N),W.attr(\"r\",i),W.exit().remove()}Y.select(\"circle.outside-circle\").attr({r:x}).style(N);var X=e.select(\"circle.background-circle\").attr({r:x}).style({fill:f.backgroundColor,stroke:f.stroke});if(f.radialAxis.visible){var Z=n.svg.axis().scale(i).ticks(5).tickSize(5);Y.call(Z).attr({transform:\"rotate(\"+f.radialAxis.orientation+\")\"}),Y.selectAll(\".domain\").style(N),Y.selectAll(\"g>text\").text(function(t,e){return this.textContent+f.radialAxis.ticksSuffix}).style(B).style({\"text-anchor\":\"start\"}).attr({x:0,y:0,dx:0,dy:0,transform:function(t,e){return\"horizontal\"===f.radialAxis.tickOrientation?\"rotate(\"+-f.radialAxis.orientation+\") translate(\"+[0,B[\"font-size\"]]+\")\":\"translate(\"+[0,B[\"font-size\"]]+\")\"}}),Y.selectAll(\"g>line\").style({stroke:\"black\"})}var J=e.select(\".angular.axis-group\").selectAll(\"g.angular-tick\").data(P),K=J.enter().append(\"g\").classed(\"angular-tick\",!0);J.attr({transform:function(t,e){return\"rotate(\"+u(t,e)+\")\"}}).style({display:f.angularAxis.visible?\"block\":\"none\"}),J.exit().remove(),K.append(\"line\").classed(\"grid-line\",!0).classed(\"major\",function(t,e){return e%(f.minorTicks+1)==0}).classed(\"minor\",function(t,e){return!(e%(f.minorTicks+1)==0)}).style(N),K.selectAll(\".minor\").style({stroke:f.minorTickColor}),J.select(\"line.grid-line\").attr({x1:f.tickLength?x-f.tickLength:0,x2:x}).style({display:f.angularAxis.gridLinesVisible?\"block\":\"none\"}),K.append(\"text\").classed(\"axis-text\",!0).style(B);var Q=J.select(\"text.axis-text\").attr({x:x+f.labelOffset,dy:o+\"em\",transform:function(t,e){var r=u(t,e),n=x+f.labelOffset,i=f.angularAxis.tickOrientation;return\"horizontal\"==i?\"rotate(\"+-r+\" \"+n+\" 0)\":\"radial\"==i?r<270&&r>90?\"rotate(180 \"+n+\" 0)\":null:\"rotate(\"+(r<=180&&r>0?-90:90)+\" \"+n+\" 0)\"}}).style({\"text-anchor\":\"middle\",display:f.angularAxis.labelsVisible?\"block\":\"none\"}).text(function(t,e){return e%(f.minorTicks+1)!=0?\"\":M?M[t]+f.angularAxis.ticksSuffix:t+f.angularAxis.ticksSuffix}).style(B);f.angularAxis.rewriteTicks&&Q.text(function(t,e){return e%(f.minorTicks+1)!=0?\"\":f.angularAxis.rewriteTicks(this.textContent,e)});var $=n.max(j.selectAll(\".angular-tick text\")[0].map(function(t,e){return t.getCTM().e+t.getBBox().width}));F.attr({transform:\"translate(\"+[x+$,f.margin.top]+\")\"});var tt=e.select(\"g.geometry-group\").selectAll(\"g\").size()>0,et=e.select(\"g.geometry-group\").selectAll(\"g.geometry\").data(p);if(et.enter().append(\"g\").attr({class:function(t,e){return\"geometry geometry\"+e}}),et.exit().remove(),p[0]||tt){var rt=[];p.forEach(function(t,e){var r={};r.radialScale=i,r.angularScale=l,r.container=et.filter(function(t,r){return r==e}),r.geometry=t.geometry,r.orientation=f.orientation,r.direction=f.direction,r.index=e,rt.push({data:t,geometryConfig:r})});var nt=n.nest().key(function(t,e){return void 0!==t.data.groupId||\"unstacked\"}).entries(rt),it=[];nt.forEach(function(t,e){\"unstacked\"===t.key?it=it.concat(t.values.map(function(t,e){return[t]})):it.push(t.values)}),it.forEach(function(t,e){var r;r=Array.isArray(t)?t[0].geometryConfig.geometry:t.geometryConfig.geometry;var n=t.map(function(t,e){return a(s[r].defaultConfig(),t)});s[r]().config(n)()})}var at,ot,st=e.select(\".guides-group\"),lt=e.select(\".tooltips-group\"),ut=s.tooltipPanel().config({container:lt,fontSize:8})(),ct=s.tooltipPanel().config({container:lt,fontSize:8})(),ht=s.tooltipPanel().config({container:lt,hasTick:!0})();if(!A){var ft=st.select(\"line\").attr({x1:0,y1:0,y2:0}).style({stroke:\"grey\",\"pointer-events\":\"none\"});j.on(\"mousemove.angular-guide\",function(t,e){var r=s.util.getMousePos(X).angle;ft.attr({x2:-x,transform:\"rotate(\"+r+\")\"}).style({opacity:.5});var n=(r+180+360-f.orientation)%360;at=l.invert(n);var i=s.util.convertToCartesian(x+12,r+180);ut.text(s.util.round(at)).move([i[0]+w[0],i[1]+w[1]])}).on(\"mouseout.angular-guide\",function(t,e){st.select(\"line\").style({opacity:0})})}var dt=st.select(\"circle\").style({stroke:\"grey\",fill:\"none\"});j.on(\"mousemove.radial-guide\",function(t,e){var r=s.util.getMousePos(X).radius;dt.attr({r:r}).style({opacity:.5}),ot=i.invert(s.util.getMousePos(X).radius);var n=s.util.convertToCartesian(r,f.radialAxis.orientation);ct.text(s.util.round(ot)).move([n[0]+w[0],n[1]+w[1]])}).on(\"mouseout.radial-guide\",function(t,e){dt.style({opacity:0}),ht.hide(),ut.hide(),ct.hide()}),e.selectAll(\".geometry-group .mark\").on(\"mouseover.tooltip\",function(t,r){var i=n.select(this),a=this.style.fill,o=\"black\",l=this.style.opacity||1;if(i.attr({\"data-opacity\":l}),a&&\"none\"!==a){i.attr({\"data-fill\":a}),o=n.hsl(a).darker().toString(),i.style({fill:o,opacity:1});var u={t:s.util.round(t[0]),r:s.util.round(t[1])};A&&(u.t=M[t[0]]);var c=\"t: \"+u.t+\", r: \"+u.r,h=this.getBoundingClientRect(),f=e.node().getBoundingClientRect(),d=[h.left+h.width/2-H[0]-f.left,h.top+h.height/2-H[1]-f.top];ht.config({color:o}).text(c),ht.move(d)}else a=this.style.stroke||\"black\",i.attr({\"data-stroke\":a}),o=n.hsl(a).darker().toString(),i.style({stroke:o,opacity:1})}).on(\"mousemove.tooltip\",function(t,e){if(0!=n.event.which)return!1;n.select(this).attr(\"data-fill\")&&ht.show()}).on(\"mouseout.tooltip\",function(t,e){ht.hide();var r=n.select(this),i=r.attr(\"data-fill\");i?r.style({fill:i,opacity:r.attr(\"data-opacity\")}):r.style({stroke:r.attr(\"data-stroke\"),opacity:r.attr(\"data-opacity\")})})}),d}var e,r,i,l,u={data:[],layout:{}},c={},h={},f=n.dispatch(\"hover\"),d={};return d.render=function(e){return t(e),this},d.config=function(t){if(!arguments.length)return u;var e=s.util.cloneJson(t);return e.data.forEach(function(t,e){u.data[e]||(u.data[e]={}),a(u.data[e],s.Axis.defaultConfig().data[0]),a(u.data[e],t)}),a(u.layout,s.Axis.defaultConfig().layout),a(u.layout,e.layout),this},d.getLiveConfig=function(){return h},d.getinputConfig=function(){return c},d.radialScale=function(t){return i},d.angularScale=function(t){return l},d.svg=function(){return e},n.rebind(d,f,\"on\"),d},s.Axis.defaultConfig=function(t,e){return{data:[{t:[1,2,3,4],r:[10,11,12,13],name:\"Line1\",geometry:\"LinePlot\",color:null,strokeDash:\"solid\",strokeColor:null,strokeSize:\"1\",visibleInLegend:!0,opacity:1}],layout:{defaultColorRange:n.scale.category10().range(),title:null,height:450,width:500,margin:{top:40,right:40,bottom:40,left:40},font:{size:12,color:\"gray\",outlineColor:\"white\",family:\"Tahoma, sans-serif\"},direction:\"clockwise\",orientation:0,labelOffset:10,radialAxis:{domain:null,orientation:-45,ticksSuffix:\"\",visible:!0,gridLinesVisible:!0,tickOrientation:\"horizontal\",rewriteTicks:null},angularAxis:{domain:[0,360],ticksSuffix:\"\",visible:!0,gridLinesVisible:!0,labelsVisible:!0,tickOrientation:\"horizontal\",rewriteTicks:null,ticksCount:null,ticksStep:null},minorTicks:0,tickLength:null,tickColor:\"silver\",minorTickColor:\"#eee\",backgroundColor:\"none\",needsEndSpacing:null,showLegend:!0,legend:{reverseOrder:!1},opacity:1}}},s.util={},s.DATAEXTENT=\"dataExtent\",s.AREA=\"AreaChart\",s.LINE=\"LinePlot\",s.DOT=\"DotPlot\",s.BAR=\"BarChart\",s.util._override=function(t,e){for(var r in t)r in e&&(e[r]=t[r])},s.util._extend=function(t,e){for(var r in t)e[r]=t[r]},s.util._rndSnd=function(){return 2*Math.random()-1+(2*Math.random()-1)+(2*Math.random()-1)},s.util.dataFromEquation2=function(t,e){var r=e||6;return n.range(0,360+r,r).map(function(e,r){var n=e*Math.PI/180;return[e,t(n)]})},s.util.dataFromEquation=function(t,e,r){var i=e||6,a=[],o=[];n.range(0,360+i,i).forEach(function(e,r){var n=e*Math.PI/180,i=t(n);a.push(e),o.push(i)});var s={t:a,r:o};return r&&(s.name=r),s},s.util.ensureArray=function(t,e){if(void 0===t)return null;var r=[].concat(t);return n.range(e).map(function(t,e){return r[e]||r[0]})},s.util.fillArrays=function(t,e,r){return e.forEach(function(e,n){t[e]=s.util.ensureArray(t[e],r)}),t},s.util.cloneJson=function(t){return JSON.parse(JSON.stringify(t))},s.util.validateKeys=function(t,e){\"string\"==typeof e&&(e=e.split(\".\"));var r=e.shift();return t[r]&&(!e.length||objHasKeys(t[r],e))},s.util.sumArrays=function(t,e){return n.zip(t,e).map(function(t,e){return n.sum(t)})},s.util.arrayLast=function(t){return t[t.length-1]},s.util.arrayEqual=function(t,e){for(var r=Math.max(t.length,e.length,1);r-- >=0&&t[r]===e[r];);return-2===r},s.util.flattenArray=function(t){for(var e=[];!s.util.arrayEqual(e,t);)e=t,t=[].concat.apply([],t);return t},s.util.deduplicate=function(t){return t.filter(function(t,e,r){return r.indexOf(t)==e})},s.util.convertToCartesian=function(t,e){var r=e*Math.PI/180;return[t*Math.cos(r),t*Math.sin(r)]},s.util.round=function(t,e){var r=e||2,n=Math.pow(10,r);return Math.round(t*n)/n},s.util.getMousePos=function(t){var e=n.mouse(t.node()),r=e[0],i=e[1],a={};return a.x=r,a.y=i,a.pos=e,a.angle=180*(Math.atan2(i,r)+Math.PI)/Math.PI,a.radius=Math.sqrt(r*r+i*i),a},s.util.duplicatesCount=function(t){for(var e,r={},n={},i=0,a=t.length;i<a;i++)e=t[i],e in r?(r[e]++,n[e]=r[e]):r[e]=1;return n},s.util.duplicates=function(t){return Object.keys(s.util.duplicatesCount(t))},s.util.translator=function(t,e,r,n){if(n){var i=r.slice();r=e,e=i}var a=e.reduce(function(t,e){if(void 0!==t)return t[e]},t);void 0!==a&&(e.reduce(function(t,r,n){if(void 0!==t)return n===e.length-1&&delete t[r],t[r]},t),r.reduce(function(t,e,n){return void 0===t[e]&&(t[e]={}),n===r.length-1&&(t[e]=a),t[e]},t))},s.PolyChart=function(){function t(){\n", "var t=e[0].geometryConfig,r=t.container;\"string\"==typeof r&&(r=n.select(r)),r.datum(e).each(function(e,r){function a(e,r){return{r:t.radialScale(e[1]),t:(t.angularScale(e[0])+t.orientation)*Math.PI/180}}function o(t){return{x:t.r*Math.cos(t.t),y:t.r*Math.sin(t.t)}}var s=!!e[0].data.yStack,l=e.map(function(t,e){return s?n.zip(t.data.t[0],t.data.r[0],t.data.yStack[0]):n.zip(t.data.t[0],t.data.r[0])}),u=t.angularScale,c=t.radialScale.domain()[0],h={};h.bar=function(r,i,a){var o=e[a].data,s=t.radialScale(r[1])-t.radialScale(0),l=t.radialScale(r[2]||0),c=o.barWidth;n.select(this).attr({class:\"mark bar\",d:\"M\"+[[s+l,-c/2],[s+l,c/2],[l,c/2],[l,-c/2]].join(\"L\")+\"Z\",transform:function(e,r){return\"rotate(\"+(t.orientation+u(e[0]))+\")\"}})},h.dot=function(t,r,i){var s=t[2]?[t[0],t[1]+t[2]]:t,l=n.svg.symbol().size(e[i].data.dotSize).type(e[i].data.dotType)(t,r);n.select(this).attr({class:\"mark dot\",d:l,transform:function(t,e){var r=o(a(s));return\"translate(\"+[r.x,r.y]+\")\"}})};var f=n.svg.line.radial().interpolate(e[0].data.lineInterpolation).radius(function(e){return t.radialScale(e[1])}).angle(function(e){return t.angularScale(e[0])*Math.PI/180});h.line=function(r,i,a){var o=r[2]?l[a].map(function(t,e){return[t[0],t[1]+t[2]]}):l[a];if(n.select(this).each(h.dot).style({opacity:function(t,r){return+e[a].data.dotVisible},fill:v.stroke(r,i,a)}).attr({class:\"mark dot\"}),!(i>0)){var s=n.select(this.parentNode).selectAll(\"path.line\").data([0]);s.enter().insert(\"path\"),s.attr({class:\"line\",d:f(o),transform:function(e,r){return\"rotate(\"+(t.orientation+90)+\")\"},\"pointer-events\":\"none\"}).style({fill:function(t,e){return v.fill(r,i,a)},\"fill-opacity\":0,stroke:function(t,e){return v.stroke(r,i,a)},\"stroke-width\":function(t,e){return v[\"stroke-width\"](r,i,a)},\"stroke-dasharray\":function(t,e){return v[\"stroke-dasharray\"](r,i,a)},opacity:function(t,e){return v.opacity(r,i,a)},display:function(t,e){return v.display(r,i,a)}})}};var d=t.angularScale.range(),p=Math.abs(d[1]-d[0])/l[0].length*Math.PI/180,m=n.svg.arc().startAngle(function(t){return-p/2}).endAngle(function(t){return p/2}).innerRadius(function(e){return t.radialScale(c+(e[2]||0))}).outerRadius(function(e){return t.radialScale(c+(e[2]||0))+t.radialScale(e[1])});h.arc=function(e,r,i){n.select(this).attr({class:\"mark arc\",d:m,transform:function(e,r){return\"rotate(\"+(t.orientation+u(e[0])+90)+\")\"}})};var v={fill:function(t,r,n){return e[n].data.color},stroke:function(t,r,n){return e[n].data.strokeColor},\"stroke-width\":function(t,r,n){return e[n].data.strokeSize+\"px\"},\"stroke-dasharray\":function(t,r,n){return i[e[n].data.strokeDash]},opacity:function(t,r,n){return e[n].data.opacity},display:function(t,r,n){return void 0===e[n].data.visible||e[n].data.visible?\"block\":\"none\"}},g=n.select(this).selectAll(\"g.layer\").data(l);g.enter().append(\"g\").attr({class:\"layer\"});var y=g.selectAll(\"path.mark\").data(function(t,e){return t});y.enter().append(\"path\").attr({class:\"mark\"}),y.style(v).each(h[t.geometryType]),y.exit().remove(),g.exit().remove()})}var e=[s.PolyChart.defaultConfig()],r=n.dispatch(\"hover\"),i={solid:\"none\",dash:[5,2],dot:[2,5]};return t.config=function(t){return arguments.length?(t.forEach(function(t,r){e[r]||(e[r]={}),a(e[r],s.PolyChart.defaultConfig()),a(e[r],t)}),this):e},t.getColorScale=function(){},n.rebind(t,r,\"on\"),t},s.PolyChart.defaultConfig=function(){return{data:{name:\"geom1\",t:[[1,2,3,4]],r:[[1,2,3,4]],dotType:\"circle\",dotSize:64,dotVisible:!1,barWidth:20,color:\"#ffa500\",strokeSize:1,strokeColor:\"silver\",strokeDash:\"solid\",opacity:1,index:0,visible:!0,visibleInLegend:!0},geometryConfig:{geometry:\"LinePlot\",geometryType:\"arc\",direction:\"clockwise\",orientation:0,container:\"body\",radialScale:null,angularScale:null,colorScale:n.scale.category20()}}},s.BarChart=function(){return s.PolyChart()},s.BarChart.defaultConfig=function(){return{geometryConfig:{geometryType:\"bar\"}}},s.AreaChart=function(){return s.PolyChart()},s.AreaChart.defaultConfig=function(){return{geometryConfig:{geometryType:\"arc\"}}},s.DotPlot=function(){return s.PolyChart()},s.DotPlot.defaultConfig=function(){return{geometryConfig:{geometryType:\"dot\",dotType:\"circle\"}}},s.LinePlot=function(){return s.PolyChart()},s.LinePlot.defaultConfig=function(){return{geometryConfig:{geometryType:\"line\"}}},s.Legend=function(){function t(){var r=e.legendConfig,i=e.data.map(function(t,e){return[].concat(t).map(function(t,n){var i=a({},r.elements[e]);return i.name=t,i.color=[].concat(r.elements[e].color)[n],i})}),o=n.merge(i);o=o.filter(function(t,e){return r.elements[e]&&(r.elements[e].visibleInLegend||void 0===r.elements[e].visibleInLegend)}),r.reverseOrder&&(o=o.reverse());var s=r.container;(\"string\"==typeof s||s.nodeName)&&(s=n.select(s));var l=o.map(function(t,e){return t.color}),u=r.fontSize,c=null==r.isContinuous?\"number\"==typeof o[0]:r.isContinuous,h=c?r.height:u*o.length,f=s.classed(\"legend-group\",!0),d=f.selectAll(\"svg\").data([0]),p=d.enter().append(\"svg\").attr({width:300,height:h+u,xmlns:\"http://www.w3.org/2000/svg\",\"xmlns:xlink\":\"http://www.w3.org/1999/xlink\",version:\"1.1\"});p.append(\"g\").classed(\"legend-axis\",!0),p.append(\"g\").classed(\"legend-marks\",!0);var m=n.range(o.length),v=n.scale[c?\"linear\":\"ordinal\"]().domain(m).range(l),g=n.scale[c?\"linear\":\"ordinal\"]().domain(m)[c?\"range\":\"rangePoints\"]([0,h]),y=function(t,e){var r=3*e;return\"line\"===t?\"M\"+[[-e/2,-e/12],[e/2,-e/12],[e/2,e/12],[-e/2,e/12]]+\"Z\":-1!=n.svg.symbolTypes.indexOf(t)?n.svg.symbol().type(t).size(r)():n.svg.symbol().type(\"square\").size(r)()};if(c){var b=d.select(\".legend-marks\").append(\"defs\").append(\"linearGradient\").attr({id:\"grad1\",x1:\"0%\",y1:\"0%\",x2:\"0%\",y2:\"100%\"}).selectAll(\"stop\").data(l);b.enter().append(\"stop\"),b.attr({offset:function(t,e){return e/(l.length-1)*100+\"%\"}}).style({\"stop-color\":function(t,e){return t}}),d.append(\"rect\").classed(\"legend-mark\",!0).attr({height:r.height,width:r.colorBandWidth,fill:\"url(#grad1)\"})}else{var x=d.select(\".legend-marks\").selectAll(\"path.legend-mark\").data(o);x.enter().append(\"path\").classed(\"legend-mark\",!0),x.attr({transform:function(t,e){return\"translate(\"+[u/2,g(e)+u/2]+\")\"},d:function(t,e){var r=t.symbol;return y(r,u)},fill:function(t,e){return v(e)}}),x.exit().remove()}var _=n.svg.axis().scale(g).orient(\"right\"),w=d.select(\"g.legend-axis\").attr({transform:\"translate(\"+[c?r.colorBandWidth:u,u/2]+\")\"}).call(_);return w.selectAll(\".domain\").style({fill:\"none\",stroke:\"none\"}),w.selectAll(\"line\").style({fill:\"none\",stroke:c?r.textColor:\"none\"}),w.selectAll(\"text\").style({fill:r.textColor,\"font-size\":r.fontSize}).text(function(t,e){return o[e].name}),t}var e=s.Legend.defaultConfig(),r=n.dispatch(\"hover\");return t.config=function(t){return arguments.length?(a(e,t),this):e},n.rebind(t,r,\"on\"),t},s.Legend.defaultConfig=function(t,e){return{data:[\"a\",\"b\",\"c\"],legendConfig:{elements:[{symbol:\"line\",color:\"red\"},{symbol:\"square\",color:\"yellow\"},{symbol:\"diamond\",color:\"limegreen\"}],height:150,colorBandWidth:30,fontSize:12,container:\"body\",isContinuous:null,textColor:\"grey\",reverseOrder:!1}}},s.tooltipPanel=function(){var t,e,r,i={container:null,hasTick:!1,fontSize:12,color:\"white\",padding:5},o=\"tooltip-\"+s.tooltipPanel.uid++,l=function(){t=i.container.selectAll(\"g.\"+o).data([0]);var n=t.enter().append(\"g\").classed(o,!0).style({\"pointer-events\":\"none\",display:\"none\"});return r=n.append(\"path\").style({fill:\"white\",\"fill-opacity\":.9}).attr({d:\"M0 0\"}),e=n.append(\"text\").attr({dx:i.padding+10,dy:.3*+i.fontSize}),l};return l.text=function(a){var o=n.hsl(i.color).l,s=o>=.5?\"#aaa\":\"white\",u=o>=.5?\"black\":\"white\",c=a||\"\";e.style({fill:u,\"font-size\":i.fontSize+\"px\"}).text(c);var h=i.padding,f=e.node().getBBox(),d={fill:i.color,stroke:s,\"stroke-width\":\"2px\"},p=f.width+2*h+10,m=f.height+2*h;return r.attr({d:\"M\"+[[10,-m/2],[10,-m/4],[i.hasTick?0:10,0],[10,m/4],[10,m/2],[p,m/2],[p,-m/2]].join(\"L\")+\"Z\"}).style(d),t.attr({transform:\"translate(\"+[10,-m/2+2*h]+\")\"}),t.style({display:\"block\"}),l},l.move=function(e){if(t)return t.attr({transform:\"translate(\"+[e[0],e[1]]+\")\"}).style({display:\"block\"}),l},l.hide=function(){if(t)return t.style({display:\"none\"}),l},l.show=function(){if(t)return t.style({display:\"block\"}),l},l.config=function(t){return a(i,t),l},l},s.tooltipPanel.uid=1,s.adapter={},s.adapter.plotly=function(){var t={};return t.convert=function(t,e){var r={};if(t.data&&(r.data=t.data.map(function(t,r){var n=a({},t);return[[n,[\"marker\",\"color\"],[\"color\"]],[n,[\"marker\",\"opacity\"],[\"opacity\"]],[n,[\"marker\",\"line\",\"color\"],[\"strokeColor\"]],[n,[\"marker\",\"line\",\"dash\"],[\"strokeDash\"]],[n,[\"marker\",\"line\",\"width\"],[\"strokeSize\"]],[n,[\"marker\",\"symbol\"],[\"dotType\"]],[n,[\"marker\",\"size\"],[\"dotSize\"]],[n,[\"marker\",\"barWidth\"],[\"barWidth\"]],[n,[\"line\",\"interpolation\"],[\"lineInterpolation\"]],[n,[\"showlegend\"],[\"visibleInLegend\"]]].forEach(function(t,r){s.util.translator.apply(null,t.concat(e))}),e||delete n.marker,e&&delete n.groupId,e?(\"LinePlot\"===n.geometry?(n.type=\"scatter\",!0===n.dotVisible?(delete n.dotVisible,n.mode=\"lines+markers\"):n.mode=\"lines\"):\"DotPlot\"===n.geometry?(n.type=\"scatter\",n.mode=\"markers\"):\"AreaChart\"===n.geometry?n.type=\"area\":\"BarChart\"===n.geometry&&(n.type=\"bar\"),delete n.geometry):(\"scatter\"===n.type?\"lines\"===n.mode?n.geometry=\"LinePlot\":\"markers\"===n.mode?n.geometry=\"DotPlot\":\"lines+markers\"===n.mode&&(n.geometry=\"LinePlot\",n.dotVisible=!0):\"area\"===n.type?n.geometry=\"AreaChart\":\"bar\"===n.type&&(n.geometry=\"BarChart\"),delete n.mode,delete n.type),n}),!e&&t.layout&&\"stack\"===t.layout.barmode)){var i=s.util.duplicates(r.data.map(function(t,e){return t.geometry}));r.data.forEach(function(t,e){var n=i.indexOf(t.geometry);-1!=n&&(r.data[e].groupId=n)})}if(t.layout){var o=a({},t.layout);if([[o,[\"plot_bgcolor\"],[\"backgroundColor\"]],[o,[\"showlegend\"],[\"showLegend\"]],[o,[\"radialaxis\"],[\"radialAxis\"]],[o,[\"angularaxis\"],[\"angularAxis\"]],[o.angularaxis,[\"showline\"],[\"gridLinesVisible\"]],[o.angularaxis,[\"showticklabels\"],[\"labelsVisible\"]],[o.angularaxis,[\"nticks\"],[\"ticksCount\"]],[o.angularaxis,[\"tickorientation\"],[\"tickOrientation\"]],[o.angularaxis,[\"ticksuffix\"],[\"ticksSuffix\"]],[o.angularaxis,[\"range\"],[\"domain\"]],[o.angularaxis,[\"endpadding\"],[\"endPadding\"]],[o.radialaxis,[\"showline\"],[\"gridLinesVisible\"]],[o.radialaxis,[\"tickorientation\"],[\"tickOrientation\"]],[o.radialaxis,[\"ticksuffix\"],[\"ticksSuffix\"]],[o.radialaxis,[\"range\"],[\"domain\"]],[o.angularAxis,[\"showline\"],[\"gridLinesVisible\"]],[o.angularAxis,[\"showticklabels\"],[\"labelsVisible\"]],[o.angularAxis,[\"nticks\"],[\"ticksCount\"]],[o.angularAxis,[\"tickorientation\"],[\"tickOrientation\"]],[o.angularAxis,[\"ticksuffix\"],[\"ticksSuffix\"]],[o.angularAxis,[\"range\"],[\"domain\"]],[o.angularAxis,[\"endpadding\"],[\"endPadding\"]],[o.radialAxis,[\"showline\"],[\"gridLinesVisible\"]],[o.radialAxis,[\"tickorientation\"],[\"tickOrientation\"]],[o.radialAxis,[\"ticksuffix\"],[\"ticksSuffix\"]],[o.radialAxis,[\"range\"],[\"domain\"]],[o.font,[\"outlinecolor\"],[\"outlineColor\"]],[o.legend,[\"traceorder\"],[\"reverseOrder\"]],[o,[\"labeloffset\"],[\"labelOffset\"]],[o,[\"defaultcolorrange\"],[\"defaultColorRange\"]]].forEach(function(t,r){s.util.translator.apply(null,t.concat(e))}),e?(void 0!==o.tickLength&&(o.angularaxis.ticklen=o.tickLength,delete o.tickLength),o.tickColor&&(o.angularaxis.tickcolor=o.tickColor,delete o.tickColor)):(o.angularAxis&&void 0!==o.angularAxis.ticklen&&(o.tickLength=o.angularAxis.ticklen),o.angularAxis&&void 0!==o.angularAxis.tickcolor&&(o.tickColor=o.angularAxis.tickcolor)),o.legend&&\"boolean\"!=typeof o.legend.reverseOrder&&(o.legend.reverseOrder=\"normal\"!=o.legend.reverseOrder),o.legend&&\"boolean\"==typeof o.legend.traceorder&&(o.legend.traceorder=o.legend.traceorder?\"reversed\":\"normal\",delete o.legend.reverseOrder),o.margin&&void 0!==o.margin.t){var l=[\"t\",\"r\",\"b\",\"l\",\"pad\"],u=[\"top\",\"right\",\"bottom\",\"left\",\"pad\"],c={};n.entries(o.margin).forEach(function(t,e){c[u[l.indexOf(t.key)]]=t.value}),o.margin=c}e&&(delete o.needsEndSpacing,delete o.minorTickColor,delete o.minorTicks,delete o.angularaxis.ticksCount,delete o.angularaxis.ticksCount,delete o.angularaxis.ticksStep,delete o.angularaxis.rewriteTicks,delete o.angularaxis.nticks,delete o.radialaxis.ticksCount,delete o.radialaxis.ticksCount,delete o.radialaxis.ticksStep,delete o.radialaxis.rewriteTicks,delete o.radialaxis.nticks),r.layout=o}return r},t}},{\"../../constants/alignment\":701,\"../../lib\":728,d3:122}],836:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../../lib\"),a=t(\"../../components/color\"),o=t(\"./micropolar\"),s=t(\"./undo_manager\"),l=i.extendDeepAll,u=e.exports={};u.framework=function(t){function e(e,i){return i&&(h=i),n.select(n.select(h).node().parentNode).selectAll(\".svg-container>*:not(.chart-root)\").remove(),r=r?l(r,e):e,a||(a=o.Axis()),c=o.adapter.plotly().convert(r),a.config(c).render(h),t.data=r.data,t.layout=r.layout,u.fillLayout(t),r}var r,i,a,c,h,f=new s;return e.isPolar=!0,e.svg=function(){return a.svg()},e.getConfig=function(){return r},e.getLiveConfig=function(){return o.adapter.plotly().convert(a.getLiveConfig(),!0)},e.getLiveScales=function(){return{t:a.angularScale(),r:a.radialScale()}},e.setUndoPoint=function(){var t=this,e=o.util.cloneJson(r);!function(e,r){f.add({undo:function(){r&&t(r)},redo:function(){t(e)}})}(e,i),i=o.util.cloneJson(e)},e.undo=function(){f.undo()},e.redo=function(){f.redo()},e},u.fillLayout=function(t){var e=n.select(t).selectAll(\".plot-container\"),r=e.selectAll(\".svg-container\"),i=t.framework&&t.framework.svg&&t.framework.svg(),o={width:800,height:600,paper_bgcolor:a.background,_container:e,_paperdiv:r,_paper:i};t._fullLayout=l(o,t.layout)}},{\"../../components/color\":604,\"../../lib\":728,\"./micropolar\":835,\"./undo_manager\":837,d3:122}],837:[function(t,e,r){\"use strict\";e.exports=function(){function t(t,e){return t?(i=!0,t[e](),i=!1,this):this}var e,r=[],n=-1,i=!1;return{add:function(t){return i?this:(r.splice(n+1,r.length-n),r.push(t),n=r.length-1,this)},setCallback:function(t){e=t},undo:function(){var i=r[n];return i?(t(i,\"undo\"),n-=1,e&&e(i.undo),this):this},redo:function(){var i=r[n+1];return i?(t(i,\"redo\"),n+=1,e&&e(i.redo),this):this},clear:function(){r=[],n=-1},hasUndo:function(){return-1!==n},hasRedo:function(){return n<r.length-1},getCommands:function(){return r},getPreviousCommand:function(){return r[n-1]},getIndex:function(){return n}}}},{}],838:[function(t,e,r){\"use strict\";var n=t(\"../lib\"),i=t(\"./plots\");e.exports=function(t,e,r,a){function o(t,e){return n.coerce(s,l,c,t,e)}for(var s,l,u=a.type,c=a.attributes,h=a.handleDefaults,f=a.partition||\"x\",d=i.findSubplotIds(r,u),p=d.length,m=0;m<p;m++){var v=d[m];s=t[v]?t[v]:t[v]={},e[v]=l={},o(\"domain.\"+f,[m/p,(m+1)/p]),o(\"domain.\"+{x:\"y\",y:\"x\"}[f]),a.id=v,h(s,l,o,a)}}},{\"../lib\":728,\"./plots\":831}],839:[function(t,e,r){\"use strict\";var n=t(\"./ternary\"),i=t(\"../../plots/plots\"),a=t(\"../../lib\").counterRegex;r.name=\"ternary\",r.attr=\"subplot\",r.idRoot=\"ternary\",r.idRegex=r.attrRegex=a(\"ternary\"),r.attributes=t(\"./layout/attributes\"),r.layoutAttributes=t(\"./layout/layout_attributes\"),r.supplyLayoutDefaults=t(\"./layout/defaults\"),r.plot=function(t){for(var e=t._fullLayout,r=t.calcdata,a=i.getSubplotIds(e,\"ternary\"),o=0;o<a.length;o++){var s=a[o],l=i.getSubplotCalcData(r,\"ternary\",s),u=e[s]._subplot;u||(u=new n({id:s,graphDiv:t,container:e._ternarylayer.node()},e),e[s]._subplot=u),u.plot(l,e,t._promises)}},r.clean=function(t,e,r,n){for(var a=i.getSubplotIds(n,\"ternary\"),o=0;o<a.length;o++){var s=a[o],l=n[s]._subplot;!e[s]&&l&&(l.plotContainer.remove(),l.clipDef.remove(),l.clipDefRelative.remove())}}},{\"../../lib\":728,\"../../plots/plots\":831,\"./layout/attributes\":840,\"./layout/defaults\":843,\"./layout/layout_attributes\":844,\"./ternary\":845}],840:[function(t,e,r){\"use strict\";e.exports={subplot:{valType:\"subplotid\",dflt:\"ternary\",editType:\"calc\"}}},{}],841:[function(t,e,r){\"use strict\";var n=t(\"../../cartesian/layout_attributes\"),i=t(\"../../../lib/extend\").extendFlat;e.exports={title:n.title,titlefont:n.titlefont,color:n.color,tickmode:n.tickmode,nticks:i({},n.nticks,{dflt:6,min:1}),tick0:n.tick0,dtick:n.dtick,tickvals:n.tickvals,ticktext:n.ticktext,ticks:n.ticks,ticklen:n.ticklen,tickwidth:n.tickwidth,tickcolor:n.tickcolor,showticklabels:n.showticklabels,showtickprefix:n.showtickprefix,tickprefix:n.tickprefix,showticksuffix:n.showticksuffix,ticksuffix:n.ticksuffix,showexponent:n.showexponent,exponentformat:n.exponentformat,separatethousands:n.separatethousands,tickfont:n.tickfont,tickangle:n.tickangle,tickformat:n.tickformat,hoverformat:n.hoverformat,showline:i({},n.showline,{dflt:!0}),linecolor:n.linecolor,linewidth:n.linewidth,showgrid:i({},n.showgrid,{dflt:!0}),gridcolor:n.gridcolor,gridwidth:n.gridwidth,layer:n.layer,min:{valType:\"number\",dflt:0,min:0}}},{\"../../../lib/extend\":717,\"../../cartesian/layout_attributes\":783}],842:[function(t,e,r){\"use strict\";var n=t(\"tinycolor2\").mix,i=t(\"../../../lib\"),a=t(\"./axis_attributes\"),o=t(\"../../cartesian/tick_label_defaults\"),s=t(\"../../cartesian/tick_mark_defaults\"),l=t(\"../../cartesian/tick_value_defaults\");e.exports=function(t,e,r){function u(r,n){return i.coerce(t,e,a,r,n)}e.type=\"linear\";var c=u(\"color\"),h=c===t.color?c:r.font.color,f=e._name,d=f.charAt(0).toUpperCase(),p=\"Component \"+d,m=u(\"title\",p);e._hovertitle=m===p?m:d,i.coerceFont(u,\"titlefont\",{family:r.font.family,size:Math.round(1.2*r.font.size),color:h}),u(\"min\"),l(t,e,u,\"linear\"),o(t,e,u,\"linear\",{noHover:!1}),s(t,e,u,{outerTicks:!0}),u(\"showticklabels\")&&(i.coerceFont(u,\"tickfont\",{family:r.font.family,size:r.font.size,color:h}),u(\"tickangle\"),u(\"tickformat\")),u(\"hoverformat\"),u(\"showline\")&&(u(\"linecolor\",c),u(\"linewidth\")),u(\"showgrid\")&&(u(\"gridcolor\",n(c,r.bgColor,60).toRgbString()),u(\"gridwidth\")),u(\"layer\")}},{\"../../../lib\":728,\"../../cartesian/tick_label_defaults\":790,\"../../cartesian/tick_mark_defaults\":791,\"../../cartesian/tick_value_defaults\":792,\"./axis_attributes\":841,tinycolor2:534}],843:[function(t,e,r){\"use strict\";function n(t,e,r,n){var a=r(\"bgcolor\"),o=r(\"sum\");n.bgColor=i.combine(a,n.paper_bgcolor);for(var u,c,h,f=0;f<l.length;f++)u=l[f],c=t[u]||{},h=e[u]={_name:u,type:\"linear\"},s(c,h,n);var d=e.aaxis,p=e.baxis,m=e.caxis;d.min+p.min+m.min>=o&&(d.min=0,p.min=0,m.min=0,t.aaxis&&delete t.aaxis.min,t.baxis&&delete t.baxis.min,t.caxis&&delete t.caxis.min)}var i=t(\"../../../components/color\"),a=t(\"../../subplot_defaults\"),o=t(\"./layout_attributes\"),s=t(\"./axis_defaults\"),l=[\"aaxis\",\"baxis\",\"caxis\"];e.exports=function(t,e,r){a(t,e,r,{type:\"ternary\",attributes:o,handleDefaults:n,font:e.font,paper_bgcolor:e.paper_bgcolor})}},{\"../../../components/color\":604,\"../../subplot_defaults\":838,\"./axis_defaults\":842,\"./layout_attributes\":844}],844:[function(t,e,r){\"use strict\";var n=t(\"../../../components/color/attributes\"),i=t(\"./axis_attributes\"),a=t(\"../../../plot_api/edit_types\").overrideAll;e.exports=a({domain:{x:{valType:\"info_array\",items:[{valType:\"number\",min:0,max:1},{valType:\"number\",min:0,max:1}],dflt:[0,1]},y:{valType:\"info_array\",items:[{valType:\"number\",min:0,max:1},{valType:\"number\",min:0,max:1}],dflt:[0,1]}},bgcolor:{valType:\"color\",dflt:n.background},sum:{valType:\"number\",dflt:1,min:0},aaxis:i,baxis:i,caxis:i},\"plot\",\"from-root\")},{\"../../../components/color/attributes\":603,\"../../../plot_api/edit_types\":756,\"./axis_attributes\":841}],845:[function(t,e,r){\"use strict\";function n(t,e){this.id=t.id,this.graphDiv=t.graphDiv,this.init(e),this.makeFramework(e)}function i(t){a.select(t).selectAll(\".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners\").remove()}var a=t(\"d3\"),o=t(\"tinycolor2\"),s=t(\"../../plotly\"),l=t(\"../../lib\"),u=t(\"../../components/color\"),c=t(\"../../components/drawing\"),h=t(\"../cartesian/set_convert\"),f=t(\"../../lib/extend\").extendFlat,d=t(\"../plots\"),p=t(\"../cartesian/axes\"),m=t(\"../../components/dragelement\"),v=t(\"../../components/fx\"),g=t(\"../../components/titles\"),y=t(\"../cartesian/select\"),b=t(\"../cartesian/constants\");e.exports=n;var x=n.prototype;x.init=function(t){this.container=t._ternarylayer,this.defs=t._defs,this.layoutId=t._uid,this.traceHash={},this.layers={}},x.plot=function(t,e){var r=this,n=e[r.id],i=e._size;r._hasClipOnAxisFalse=!1;for(var a=0;a<t.length;a++){if(!1===t[a][0].trace.cliponaxis){r._hasClipOnAxisFalse=!0;break}}r.updateLayers(n),r.adjustLayout(n,i),d.generalUpdatePerTraceModule(r,t,n),r.layers.plotbg.select(\"path\").call(u.fill,n.bgcolor)},x.makeFramework=function(t){var e=this,r=t[e.id],n=e.clipId=\"clip\"+e.layoutId+e.id;e.clipDef=t._clips.selectAll(\"#\"+n).data([0]),e.clipDef.enter().append(\"clipPath\").attr(\"id\",n).append(\"path\").attr(\"d\",\"M0,0Z\");var i=e.clipIdRelative=\"clip-relative\"+e.layoutId+e.id;e.clipDefRelative=t._clips.selectAll(\"#\"+i).data([0]),e.clipDefRelative.enter().append(\"clipPath\").attr(\"id\",i).append(\"path\").attr(\"d\",\"M0,0Z\"),e.plotContainer=e.container.selectAll(\"g.\"+e.id).data([0]),e.plotContainer.enter().append(\"g\").classed(e.id,!0),e.updateLayers(r),c.setClipUrl(e.layers.backplot,n),c.setClipUrl(e.layers.grids,n)},x.updateLayers=function(t){var e=this,r=e.layers,n=[\"draglayer\",\"plotbg\",\"backplot\",\"grids\"];\"below traces\"===t.aaxis.layer&&n.push(\"aaxis\",\"aline\"),\"below traces\"===t.baxis.layer&&n.push(\"baxis\",\"bline\"),\"below traces\"===t.caxis.layer&&n.push(\"caxis\",\"cline\"),n.push(\"frontplot\"),\"above traces\"===t.aaxis.layer&&n.push(\"aaxis\",\"aline\"),\"above traces\"===t.baxis.layer&&n.push(\"baxis\",\"bline\"),\"above traces\"===t.caxis.layer&&n.push(\"caxis\",\"cline\");var i=e.plotContainer.selectAll(\"g.toplevel\").data(n,String),o=[\"agrid\",\"bgrid\",\"cgrid\"];i.enter().append(\"g\").attr(\"class\",function(t){return\"toplevel \"+t}).each(function(t){var e=a.select(this);r[t]=e,\"frontplot\"===t?e.append(\"g\").classed(\"scatterlayer\",!0):\"backplot\"===t?e.append(\"g\").classed(\"maplayer\",!0):\"plotbg\"===t?e.append(\"path\").attr(\"d\",\"M0,0Z\"):\"aline\"===t||\"bline\"===t||\"cline\"===t?e.append(\"path\"):\"grids\"===t&&o.forEach(function(t){r[t]=e.append(\"g\").classed(\"grid \"+t,!0)})}),i.order()};var _=Math.sqrt(4/3);x.adjustLayout=function(t,e){var r,n,i,a,o,s,l=this,d=t.domain,p=(d.x[0]+d.x[1])/2,m=(d.y[0]+d.y[1])/2,v=d.x[1]-d.x[0],g=d.y[1]-d.y[0],y=v*e.w,b=g*e.h,x=t.sum,w=t.aaxis.min,M=t.baxis.min,k=t.caxis.min;y>_*b?(a=b,i=a*_):(i=y,a=i/_),o=v*i/y,s=g*a/b,r=e.l+e.w*p-i/2,n=e.t+e.h*(1-m)-a/2,l.x0=r,l.y0=n,l.w=i,l.h=a,l.sum=x,l.xaxis={type:\"linear\",range:[w+2*k-x,x-w-2*M],domain:[p-o/2,p+o/2],_id:\"x\"},h(l.xaxis,l.graphDiv._fullLayout),l.xaxis.setScale(),l.xaxis.isPtWithinRange=function(t){return t.a>=l.aaxis.range[0]&&t.a<=l.aaxis.range[1]&&t.b>=l.baxis.range[1]&&t.b<=l.baxis.range[0]&&t.c>=l.caxis.range[1]&&t.c<=l.caxis.range[0]},l.yaxis={type:\"linear\",range:[w,x-M-k],domain:[m-s/2,m+s/2],_id:\"y\"},h(l.yaxis,l.graphDiv._fullLayout),l.yaxis.setScale(),l.yaxis.isPtWithinRange=function(){return!0};var A=l.yaxis.domain[0],T=l.aaxis=f({},t.aaxis,{visible:!0,range:[w,x-M-k],side:\"left\",_counterangle:30,tickangle:(+t.aaxis.tickangle||0)-30,domain:[A,A+s*_],_axislayer:l.layers.aaxis,_gridlayer:l.layers.agrid,_pos:0,_id:\"y\",_length:i,_gridpath:\"M0,0l\"+a+\",-\"+i/2});h(T,l.graphDiv._fullLayout),T.setScale();var S=l.baxis=f({},t.baxis,{visible:!0,range:[x-w-k,M],side:\"bottom\",_counterangle:30,domain:l.xaxis.domain,_axislayer:l.layers.baxis,_gridlayer:l.layers.bgrid,_counteraxis:l.aaxis,_pos:0,_id:\"x\",_length:i,_gridpath:\"M0,0l-\"+i/2+\",-\"+a});h(S,l.graphDiv._fullLayout),S.setScale(),T._counteraxis=S;var E=l.caxis=f({},t.caxis,{visible:!0,range:[x-w-M,k],side:\"right\",_counterangle:30,tickangle:(+t.caxis.tickangle||0)+30,domain:[A,A+s*_],_axislayer:l.layers.caxis,_gridlayer:l.layers.cgrid,_counteraxis:l.baxis,_pos:0,_id:\"y\",_length:i,_gridpath:\"M0,0l-\"+a+\",\"+i/2});h(E,l.graphDiv._fullLayout),E.setScale();var L=\"M\"+r+\",\"+(n+a)+\"h\"+i+\"l-\"+i/2+\",-\"+a+\"Z\";l.clipDef.select(\"path\").attr(\"d\",L),l.layers.plotbg.select(\"path\").attr(\"d\",L);var C=\"M0,\"+a+\"h\"+i+\"l-\"+i/2+\",-\"+a+\"Z\";l.clipDefRelative.select(\"path\").attr(\"d\",C);var I=\"translate(\"+r+\",\"+n+\")\";l.plotContainer.selectAll(\".scatterlayer,.maplayer\").attr(\"transform\",I),l.clipDefRelative.select(\"path\").attr(\"transform\",null);var z=\"translate(\"+r+\",\"+(n+a)+\")\";l.layers.baxis.attr(\"transform\",z),l.layers.bgrid.attr(\"transform\",z);var D=\"translate(\"+(r+i/2)+\",\"+n+\")rotate(30)\";l.layers.aaxis.attr(\"transform\",D),l.layers.agrid.attr(\"transform\",D);var P=\"translate(\"+(r+i/2)+\",\"+n+\")rotate(-30)\";l.layers.caxis.attr(\"transform\",P),l.layers.cgrid.attr(\"transform\",P),l.drawAxes(!0),l.plotContainer.selectAll(\".crisp\").classed(\"crisp\",!1),l.layers.aline.select(\"path\").attr(\"d\",T.showline?\"M\"+r+\",\"+(n+a)+\"l\"+i/2+\",-\"+a:\"M0,0\").call(u.stroke,T.linecolor||\"#000\").style(\"stroke-width\",(T.linewidth||0)+\"px\"),l.layers.bline.select(\"path\").attr(\"d\",S.showline?\"M\"+r+\",\"+(n+a)+\"h\"+i:\"M0,0\").call(u.stroke,S.linecolor||\"#000\").style(\"stroke-width\",(S.linewidth||0)+\"px\"),l.layers.cline.select(\"path\").attr(\"d\",E.showline?\"M\"+(r+i/2)+\",\"+n+\"l\"+i/2+\",\"+a:\"M0,0\").call(u.stroke,E.linecolor||\"#000\").style(\"stroke-width\",(E.linewidth||0)+\"px\"),l.graphDiv._context.staticPlot||l.initInteractions(),c.setClipUrl(l.layers.frontplot,l._hasClipOnAxisFalse?null:l.clipId)},x.drawAxes=function(t){var e=this,r=e.graphDiv,n=e.id.substr(7)+\"title\",i=e.aaxis,a=e.baxis,o=e.caxis;if(p.doTicks(r,i,!0),p.doTicks(r,a,!0),p.doTicks(r,o,!0),t){var s=Math.max(i.showticklabels?i.tickfont.size/2:0,(o.showticklabels?.75*o.tickfont.size:0)+(\"outside\"===o.ticks?.87*o.ticklen:0));g.draw(r,\"a\"+n,{propContainer:i,propName:e.id+\".aaxis.title\",dfltName:\"Component A\",attributes:{x:e.x0+e.w/2,y:e.y0-i.titlefont.size/3-s,\"text-anchor\":\"middle\"}});var l=(a.showticklabels?a.tickfont.size:0)+(\"outside\"===a.ticks?a.ticklen:0)+3;g.draw(r,\"b\"+n,{propContainer:a,propName:e.id+\".baxis.title\",dfltName:\"Component B\",attributes:{x:e.x0-l,y:e.y0+e.h+.83*a.titlefont.size+l,\"text-anchor\":\"middle\"}}),g.draw(r,\"c\"+n,{propContainer:o,propName:e.id+\".caxis.title\",dfltName:\"Component C\",attributes:{x:e.x0+e.w+l,y:e.y0+e.h+.83*o.titlefont.size+l,\"text-anchor\":\"middle\"}})}};var w=b.MINZOOM/2+.87,M=\"m-0.87,.5h\"+w+\"v3h-\"+(w+5.2)+\"l\"+(w/2+2.6)+\",-\"+(.87*w+4.5)+\"l2.6,1.5l-\"+w/2+\",\"+.87*w+\"Z\",k=\"m0.87,.5h-\"+w+\"v3h\"+(w+5.2)+\"l-\"+(w/2+2.6)+\",-\"+(.87*w+4.5)+\"l-2.6,1.5l\"+w/2+\",\"+.87*w+\"Z\",A=\"m0,1l\"+w/2+\",\"+.87*w+\"l2.6,-1.5l-\"+(w/2+2.6)+\",-\"+(.87*w+4.5)+\"l-\"+(w/2+2.6)+\",\"+(.87*w+4.5)+\"l2.6,1.5l\"+w/2+\",-\"+.87*w+\"Z\",T=!0;x.initInteractions=function(){function t(t,e,r){var n=F.getBoundingClientRect();w=e-n.left,S=r-n.top,E={a:R.aaxis.range[0],b:R.baxis.range[1],c:R.caxis.range[1]},C=E,L=R.aaxis.range[1]-E.a,I=o(R.graphDiv._fullLayout[R.id].bgcolor).getLuminance(),z=\"M0,\"+R.h+\"L\"+R.w/2+\", 0L\"+R.w+\",\"+R.h+\"Z\",D=!1,P=N.append(\"path\").attr(\"class\",\"zoombox\").attr(\"transform\",\"translate(\"+R.x0+\", \"+R.y0+\")\").style({fill:I>.2?\"rgba(0,0,0,0)\":\"rgba(255,255,255,0)\",\"stroke-width\":0}).attr(\"d\",z),O=N.append(\"path\").attr(\"class\",\"zoombox-corners\").attr(\"transform\",\"translate(\"+R.x0+\", \"+R.y0+\")\").style({fill:u.background,stroke:u.defaultLine,\"stroke-width\":1,opacity:0}).attr(\"d\",\"M0,0Z\"),g()}function e(t,e){return 1-e/R.h}function r(t,e){return 1-(t+(R.h-e)/Math.sqrt(3))/R.w}function n(t,e){return(t-(R.h-e)/Math.sqrt(3))/R.w}function a(t,i){var a=w+t,o=S+i,s=Math.max(0,Math.min(1,e(w,S),e(a,o))),l=Math.max(0,Math.min(1,r(w,S),r(a,o))),u=Math.max(0,Math.min(1,n(w,S),n(a,o))),c=(s/2+u)*R.w,h=(1-s/2-l)*R.w,f=(c+h)/2,d=h-c,p=(1-s)*R.h,m=p-d/_;d<b.MINZOOM?(C=E,P.attr(\"d\",z),O.attr(\"d\",\"M0,0Z\")):(C={a:E.a+s*L,b:E.b+l*L,c:E.c+u*L},P.attr(\"d\",z+\"M\"+c+\",\"+p+\"H\"+h+\"L\"+f+\",\"+m+\"L\"+c+\",\"+p+\"Z\"),O.attr(\"d\",\"M\"+w+\",\"+S+\"m0.5,0.5h5v-2h-5v-5h-2v5h-5v2h5v5h2ZM\"+c+\",\"+p+M+\"M\"+h+\",\"+p+k+\"M\"+f+\",\"+m+A)),D||(P.transition().style(\"fill\",I>.2?\"rgba(0,0,0,0.4)\":\"rgba(255,255,255,0.3)\").duration(200),O.transition().style(\"opacity\",1).duration(200),D=!0)}function h(t,e){if(C===E)return 2===e&&x(),i(j);i(j);var r={};r[R.id+\".aaxis.min\"]=C.a,r[R.id+\".baxis.min\"]=C.b,r[R.id+\".caxis.min\"]=C.c,s.relayout(j,r),T&&j.data&&j._context.showTips&&(l.notifier(\"Double-click to<br>zoom back out\",\"long\"),T=!1)}function f(){E={a:R.aaxis.range[0],b:R.baxis.range[1],c:R.caxis.range[1]},C=E}function d(t,e){var r=t/R.xaxis._m,n=e/R.yaxis._m;C={a:E.a-n,b:E.b+(r+n)/2,c:E.c-(r-n)/2};var i=[C.a,C.b,C.c].sort(),a={a:i.indexOf(C.a),b:i.indexOf(C.b),c:i.indexOf(C.c)};i[0]<0&&(i[1]+i[0]/2<0?(i[2]+=i[0]+i[1],i[0]=i[1]=0):(i[2]+=i[0]/2,i[1]+=i[0]/2,i[0]=0),C={a:i[a.a],b:i[a.b],c:i[a.c]},e=(E.a-C.a)*R.yaxis._m,t=(E.c-C.c-E.b+C.b)*R.xaxis._m);var o=\"translate(\"+(R.x0+t)+\",\"+(R.y0+e)+\")\";R.plotContainer.selectAll(\".scatterlayer,.maplayer\").attr(\"transform\",o);var s=\"translate(\"+-t+\",\"+-e+\")\";if(R.clipDefRelative.select(\"path\").attr(\"transform\",s),R.aaxis.range=[C.a,R.sum-C.b-C.c],R.baxis.range=[R.sum-C.a-C.c,C.b],R.caxis.range=[R.sum-C.a-C.b,C.c],R.drawAxes(!1),R.plotContainer.selectAll(\".crisp\").classed(\"crisp\",!1),R._hasClipOnAxisFalse){var l=R.plotContainer.select(\".scatterlayer\").selectAll(\".points\");l.selectAll(\".point\").call(c.hideOutsideRangePoints,R),l.selectAll(\".textpoint\").call(c.hideOutsideRangePoints,R)}}function p(t,e){if(t){var r={};r[R.id+\".aaxis.min\"]=C.a,r[R.id+\".baxis.min\"]=C.b,r[R.id+\".caxis.min\"]=C.c,s.relayout(j,r)}else 2===e&&x()}function g(){N.selectAll(\".select-outline\").remove()}function x(){var t={};t[R.id+\".aaxis.min\"]=0,t[R.id+\".baxis.min\"]=0,t[R.id+\".caxis.min\"]=0,j.emit(\"plotly_doubleclick\",null),s.relayout(j,t)}var w,S,E,L,C,I,z,D,P,O,R=this,F=R.layers.plotbg.select(\"path\").node(),j=R.graphDiv,N=j._fullLayout._zoomlayer,B={element:F,gd:j,plotinfo:{xaxis:R.xaxis,yaxis:R.yaxis},doubleclick:x,subplot:R.id,prepFn:function(e,r,n){B.xaxes=[R.xaxis],B.yaxes=[R.yaxis];var i=j._fullLayout.dragmode;e.shiftKey&&(i=\"pan\"===i?\"zoom\":\"pan\"),B.minDrag=\"lasso\"===i?1:void 0,\"zoom\"===i?(B.moveFn=a,B.doneFn=h,t(e,r,n)):\"pan\"===i?(B.moveFn=d,B.doneFn=p,f(),g()):\"select\"!==i&&\"lasso\"!==i||y(e,r,n,B,i)}};F.onmousemove=function(t){v.hover(j,t,R.id),j._fullLayout._lasthover=F,j._fullLayout._hoversubplot=R.id},F.onmouseout=function(t){j._dragging||m.unhover(j,t)},F.onclick=function(t){v.click(j,t,R.id)},m.init(B)}},{\"../../components/color\":604,\"../../components/dragelement\":625,\"../../components/drawing\":628,\"../../components/fx\":645,\"../../components/titles\":694,\"../../lib\":728,\"../../lib/extend\":717,\"../../plotly\":767,\"../cartesian/axes\":772,\"../cartesian/constants\":777,\"../cartesian/select\":788,\"../cartesian/set_convert\":789,\"../plots\":831,d3:122,tinycolor2:534}],846:[function(t,e,r){\"use strict\";function n(t){if(t.layoutAttributes){var e=t.layoutAttributes._arrayAttrRegexps;if(e)for(var n=0;n<e.length;n++)c(r.layoutArrayRegexes,e[n])}}function i(t,e){var n=r.componentsRegistry[t].schema;if(n&&n.traces){var i=n.traces[e];i&&d(r.modules[e]._module.attributes,i)}}function a(t,e){var n=r.componentsRegistry[t].schema;if(n&&n.transforms){var i=n.transforms[e];i&&d(r.transformsRegistry[e].attributes,i)}}function o(t,e){var n=r.componentsRegistry[t].schema;if(n&&n.subplots){var i=r.subplotsRegistry[e],a=i.layoutAttributes,o=\"subplot\"===i.attr?i.name:i.attr;Array.isArray(o)&&(o=o[0]);var s=n.subplots[o];a&&s&&d(a,s)}}function s(t){return\"object\"==typeof t&&(t=t.type),t}var l=t(\"./lib/loggers\"),u=t(\"./lib/noop\"),c=t(\"./lib/push_unique\"),h=t(\"./lib/extend\"),f=h.extendFlat,d=h.extendDeepAll,p=t(\"./plots/attributes\"),m=t(\"./plots/layout_attributes\");r.modules={},r.allCategories={},r.allTypes=[],r.subplotsRegistry={},r.transformsRegistry={},r.componentsRegistry={},r.layoutArrayContainers=[],r.layoutArrayRegexes=[],r.traceLayoutAttributes={},r.register=function(t,e,n,a){if(r.modules[e])return void l.log(\"Type \"+e+\" already registered\");for(var o={},s=0;s<n.length;s++)o[n[s]]=!0,r.allCategories[n[s]]=!0;r.modules[e]={_module:t,categories:o},a&&Object.keys(a).length&&(r.modules[e].meta=a),r.allTypes.push(e);for(var u in r.componentsRegistry)i(u,e);t.layoutAttributes&&f(r.traceLayoutAttributes,t.layoutAttributes)},r.registerSubplot=function(t){var e=t.name;if(r.subplotsRegistry[e])return void l.log(\"Plot type \"+e+\" already registered.\");n(t),r.subplotsRegistry[e]=t;for(var i in r.componentsRegistry)o(i,t.name)},r.registerComponent=function(t){var e=t.name\n", ";r.componentsRegistry[e]=t,t.layoutAttributes&&(t.layoutAttributes._isLinkedToArray&&c(r.layoutArrayContainers,e),n(t));for(var s in r.modules)i(e,s);for(var l in r.subplotsRegistry)o(e,l);for(var u in r.transformsRegistry)a(e,u);t.schema&&t.schema.layout&&d(m,t.schema.layout)},r.registerTransform=function(t){r.transformsRegistry[t.name]=t;for(var e in r.componentsRegistry)a(e,t.name)},r.getModule=function(t){if(void 0!==t.r)return l.warn(\"Tried to put a polar trace on an incompatible graph of cartesian data. Ignoring this dataset.\",t),!1;var e=r.modules[s(t)];return!!e&&e._module},r.traceIs=function(t,e){if(\"various\"===(t=s(t)))return!1;var n=r.modules[t];return n||(t&&\"area\"!==t&&l.log(\"Unrecognized trace type \"+t+\".\"),n=r.modules[p.type.dflt]),!!n.categories[e]},r.getTransformIndices=function(t,e){for(var r=[],n=t.transforms||[],i=0;i<n.length;i++)n[i].type===e&&r.push(i);return r},r.hasTransform=function(t,e){for(var r=t.transforms||[],n=0;n<r.length;n++)if(r[n].type===e)return!0;return!1},r.getComponentMethod=function(t,e){var n=r.componentsRegistry[t];return n?n[e]||u:u}},{\"./lib/extend\":717,\"./lib/loggers\":732,\"./lib/noop\":736,\"./lib/push_unique\":740,\"./plots/attributes\":770,\"./plots/layout_attributes\":822}],847:[function(t,e,r){\"use strict\";function n(t){var e;switch(t){case\"themes__thumb\":e={autosize:!0,width:150,height:150,title:\"\",showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case\"thumbnail\":e={title:\"\",hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:\"\",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:e={}}return e}function i(t){return[\"xaxis\",\"yaxis\",\"zaxis\"].indexOf(t.slice(0,5))>-1}var a=t(\"../lib\"),o=t(\"../plots/plots\"),s=a.extendFlat,l=a.extendDeep;e.exports=function(t,e){t.framework&&t.framework.isPolar&&(t=t.framework.getConfig());var r,a=t.data,u=t.layout,c=l([],a),h=l({},u,n(e.tileClass)),f=t._context||{};if(e.width&&(h.width=e.width),e.height&&(h.height=e.height),\"thumbnail\"===e.tileClass||\"themes__thumb\"===e.tileClass){h.annotations=[];var d=Object.keys(h);for(r=0;r<d.length;r++)i(d[r])&&(h[d[r]].title=\"\");for(r=0;r<c.length;r++){var p=c[r];p.showscale=!1,p.marker&&(p.marker.showscale=!1),\"pie\"===p.type&&(p.textposition=\"none\")}}if(Array.isArray(e.annotations))for(r=0;r<e.annotations.length;r++)h.annotations.push(e.annotations[r]);var m=o.getSubplotIds(h,\"gl3d\");if(m.length){var v={};for(\"thumbnail\"===e.tileClass&&(v={title:\"\",showaxeslabels:!1,showticklabels:!1,linetickenable:!1}),r=0;r<m.length;r++){var g=h[m[r]];g.xaxis||(g.xaxis={}),g.yaxis||(g.yaxis={}),g.zaxis||(g.zaxis={}),s(g.xaxis,v),s(g.yaxis,v),s(g.zaxis,v),g._scene=null}}var y=document.createElement(\"div\");e.tileClass&&(y.className=e.tileClass);var b={gd:y,td:y,layout:h,data:c,config:{staticPlot:void 0===e.staticPlot||e.staticPlot,plotGlPixelRatio:void 0===e.plotGlPixelRatio?2:e.plotGlPixelRatio,displaylogo:e.displaylogo||!1,showLink:e.showLink||!1,showTips:e.showTips||!1,mapboxAccessToken:f.mapboxAccessToken}};return\"transparent\"!==e.setBackground&&(b.config.setBackground=e.setBackground||\"opaque\"),b.gd.defaultLayout=n(e.tileClass),b}},{\"../lib\":728,\"../plots/plots\":831}],848:[function(t,e,r){\"use strict\";function n(t,e){return e=e||{},e.format=e.format||\"png\",new Promise(function(r,n){t._snapshotInProgress&&n(new Error(\"Snapshotting already in progress.\")),a.isIE()&&\"svg\"!==e.format&&n(new Error(\"Sorry IE does not support downloading from canvas. Try {format:'svg'} instead.\")),t._snapshotInProgress=!0;var s=i(t,e),l=e.filename||t.fn||\"newplot\";l+=\".\"+e.format,s.then(function(e){return t._snapshotInProgress=!1,o(e,l)}).then(function(t){r(t)}).catch(function(e){t._snapshotInProgress=!1,n(e)})})}var i=t(\"../plot_api/to_image\"),a=t(\"../lib\"),o=t(\"./filesaver\");e.exports=n},{\"../lib\":728,\"../plot_api/to_image\":765,\"./filesaver\":849}],849:[function(t,e,r){\"use strict\";var n=function(t,e){var r=document.createElement(\"a\"),n=\"download\"in r,i=/Version\\/[\\d\\.]+.*Safari/.test(navigator.userAgent);return new Promise(function(a,o){\"undefined\"!=typeof navigator&&/MSIE [1-9]\\./.test(navigator.userAgent)&&o(new Error(\"IE < 10 unsupported\")),i&&(document.location.href=\"data:application/octet-stream\"+t.slice(t.search(/[,;]/)),a(e)),e||(e=\"download\"),n&&(r.href=t,r.download=e,document.body.appendChild(r),r.click(),document.body.removeChild(r),a(e)),\"undefined\"!=typeof navigator&&navigator.msSaveBlob&&(navigator.msSaveBlob(new Blob([t]),e),a(e)),o(new Error(\"download error\"))})};e.exports=n},{}],850:[function(t,e,r){\"use strict\";r.getDelay=function(t){return t._has&&(t._has(\"gl3d\")||t._has(\"gl2d\"))?500:0},r.getRedrawFunc=function(t){if(!(t.data&&t.data[0]&&t.data[0].r))return function(){(t.calcdata||[]).forEach(function(t){t[0]&&t[0].t&&t[0].t.cb&&t[0].t.cb()})}}},{}],851:[function(t,e,r){\"use strict\";var n=t(\"./helpers\"),i={getDelay:n.getDelay,getRedrawFunc:n.getRedrawFunc,clone:t(\"./cloneplot\"),toSVG:t(\"./tosvg\"),svgToImg:t(\"./svgtoimg\"),toImage:t(\"./toimage\"),downloadImage:t(\"./download\")};e.exports=i},{\"./cloneplot\":847,\"./download\":848,\"./helpers\":850,\"./svgtoimg\":852,\"./toimage\":853,\"./tosvg\":854}],852:[function(t,e,r){\"use strict\";function n(t){var e=t.emitter||new a,r=new Promise(function(n,a){var o=window.Image,s=t.svg,l=t.format||\"png\";if(i.isIE()&&\"svg\"!==l){var u=new Error(\"Sorry IE does not support downloading from canvas. Try {format:'svg'} instead.\");return a(u),t.promise?r:e.emit(\"error\",u)}var c=t.canvas,h=t.scale||1,f=t.width||300,d=t.height||150,p=h*f,m=h*d,v=c.getContext(\"2d\"),g=new o,y=\"data:image/svg+xml,\"+encodeURIComponent(s);c.width=p,c.height=m,g.onload=function(){var r;switch(\"svg\"!==l&&v.drawImage(g,0,0,p,m),l){case\"jpeg\":r=c.toDataURL(\"image/jpeg\");break;case\"png\":r=c.toDataURL(\"image/png\");break;case\"webp\":r=c.toDataURL(\"image/webp\");break;case\"svg\":r=y;break;default:var i=\"Image format is not jpeg, png, svg or webp.\";if(a(new Error(i)),!t.promise)return e.emit(\"error\",i)}n(r),t.promise||e.emit(\"success\",r)},g.onerror=function(r){if(a(r),!t.promise)return e.emit(\"error\",r)},g.src=y});return t.promise?r:e}var i=t(\"../lib\"),a=t(\"events\").EventEmitter;e.exports=n},{\"../lib\":728,events:129}],853:[function(t,e,r){\"use strict\";function n(t,e){function r(){var t=s.getDelay(f._fullLayout);setTimeout(function(){var t=u(f),r=document.createElement(\"canvas\");r.id=o.randstr(),n=c({format:e.format,width:f._fullLayout.width,height:f._fullLayout.height,canvas:r,emitter:n,svg:t}),n.clean=function(){f&&document.body.removeChild(f)}},t)}var n=new i,h=l(t,{format:\"png\"}),f=h.gd;f.style.position=\"absolute\",f.style.left=\"-5000px\",document.body.appendChild(f);var d=s.getRedrawFunc(f);return a.plot(f,h.data,h.layout,h.config).then(d).then(r).catch(function(t){n.emit(\"error\",t)}),n}var i=t(\"events\").EventEmitter,a=t(\"../plotly\"),o=t(\"../lib\"),s=t(\"./helpers\"),l=t(\"./cloneplot\"),u=t(\"./tosvg\"),c=t(\"./svgtoimg\");e.exports=n},{\"../lib\":728,\"../plotly\":767,\"./cloneplot\":847,\"./helpers\":850,\"./svgtoimg\":852,\"./tosvg\":854,events:129}],854:[function(t,e,r){\"use strict\";function n(t){var e=a.select(\"body\").append(\"div\").style({display:\"none\"}).html(\"\"),r=t.replace(/(&[^;]*;)/gi,function(t){return\"&lt;\"===t?\"&#60;\":\"&rt;\"===t?\"&#62;\":-1!==t.indexOf(\"<\")||-1!==t.indexOf(\">\")?\"\":e.html(t).text()});return e.remove(),r}function i(t){return t.replace(/&(?!\\w+;|\\#[0-9]+;| \\#x[0-9A-F]+;)/g,\"&amp;\")}var a=t(\"d3\"),o=t(\"../lib\"),s=t(\"../components/drawing\"),l=t(\"../components/color\"),u=t(\"../constants/xmlns_namespaces\"),c=/\"/g,h=new RegExp('(\"TOBESTRIPPED)|(TOBESTRIPPED\")',\"g\");e.exports=function(t,e,r){var f,d=t._fullLayout,p=d._paper,m=d._toppaper,v=d.width,g=d.height;p.insert(\"rect\",\":first-child\").call(s.setRect,0,0,v,g).call(l.fill,d.paper_bgcolor);var y=d._basePlotModules||[];for(f=0;f<y.length;f++){var b=y[f];b.toSVG&&b.toSVG(t)}if(m){var x=m.node().childNodes,_=Array.prototype.slice.call(x);for(f=0;f<_.length;f++){var w=_[f];w.childNodes.length&&p.node().appendChild(w)}}d._draggers&&d._draggers.remove(),p.node().style.background=\"\",p.selectAll(\"text\").attr({\"data-unformatted\":null,\"data-math\":null}).each(function(){var t=a.select(this);if(\"hidden\"===this.style.visibility||\"none\"===this.style.display)return void t.remove();t.style({visibility:null,display:null});var e=this.style.fontFamily;e&&-1!==e.indexOf('\"')&&t.style(\"font-family\",e.replace(c,\"TOBESTRIPPED\"))}),p.selectAll(\".point,.scatterpts\").each(function(){var t=a.select(this),e=this.style.fill;e&&-1!==e.indexOf(\"url(\")&&t.style(\"fill\",e.replace(c,\"TOBESTRIPPED\"))}),\"pdf\"!==e&&\"eps\"!==e||p.selectAll(\"#MathJax_SVG_glyphs path\").attr(\"stroke-width\",0),p.node().setAttributeNS(u.xmlns,\"xmlns\",u.svg),p.node().setAttributeNS(u.xmlns,\"xmlns:xlink\",u.xlink),\"svg\"===e&&r&&(p.attr(\"width\",r*v),p.attr(\"height\",r*g),p.attr(\"viewBox\",\"0 0 \"+v+\" \"+g));var M=(new window.XMLSerializer).serializeToString(p.node());return M=n(M),M=i(M),M=M.replace(h,\"'\"),o.isIE()&&(M=M.replace(/\"/gi,\"'\"),M=M.replace(/(\\('#)([^']*)('\\))/gi,'(\"$2\")'),M=M.replace(/(\\\\')/gi,'\"')),M}},{\"../components/color\":604,\"../components/drawing\":628,\"../constants/xmlns_namespaces\":709,\"../lib\":728,d3:122}],855:[function(t,e,r){\"use strict\";var n=t(\"../../lib\").mergeArray;e.exports=function(t,e){n(e.text,t,\"tx\"),n(e.hovertext,t,\"htx\");var r=e.marker;if(r){n(r.opacity,t,\"mo\"),n(r.color,t,\"mc\");var i=r.line;i&&(n(i.color,t,\"mlc\"),n(i.width,t,\"mlw\"))}}},{\"../../lib\":728}],856:[function(t,e,r){\"use strict\";var n=t(\"../scatter/attributes\"),i=t(\"../../components/colorscale/color_attributes\"),a=t(\"../../components/errorbars/attributes\"),o=t(\"../../components/colorbar/attributes\"),s=t(\"../../plots/font_attributes\"),l=t(\"../../lib/extend\").extendFlat,u=s({editType:\"calc\",arrayOk:!0}),c=n.marker,h=c.line,f=l({},h.width,{dflt:0}),d=l({width:f,editType:\"calc\"},i(\"marker.line\")),p=l({line:d,editType:\"calc\"},i(\"marker\"),{showscale:c.showscale,colorbar:o});e.exports={x:n.x,x0:n.x0,dx:n.dx,y:n.y,y0:n.y0,dy:n.dy,text:n.text,hovertext:n.hovertext,textposition:{valType:\"enumerated\",values:[\"inside\",\"outside\",\"auto\",\"none\"],dflt:\"none\",arrayOk:!0,editType:\"calc\"},textfont:l({},u,{}),insidetextfont:l({},u,{}),outsidetextfont:l({},u,{}),constraintext:{valType:\"enumerated\",values:[\"inside\",\"outside\",\"both\",\"none\"],dflt:\"both\",editType:\"calc\"},orientation:{valType:\"enumerated\",values:[\"v\",\"h\"],editType:\"calc+clearAxisTypes\"},base:{valType:\"any\",dflt:null,arrayOk:!0,editType:\"calc\"},offset:{valType:\"number\",dflt:null,arrayOk:!0,editType:\"calc\"},width:{valType:\"number\",dflt:null,min:0,arrayOk:!0,editType:\"calc\"},marker:p,r:n.r,t:n.t,error_y:a,error_x:a,_deprecated:{bardir:{valType:\"enumerated\",editType:\"calc\",values:[\"v\",\"h\"]}}}},{\"../../components/colorbar/attributes\":605,\"../../components/colorscale/color_attributes\":611,\"../../components/errorbars/attributes\":630,\"../../lib/extend\":717,\"../../plots/font_attributes\":796,\"../scatter/attributes\":1031}],857:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../../plots/cartesian/axes\"),a=t(\"../../components/colorscale/has_colorscale\"),o=t(\"../../components/colorscale/calc\"),s=t(\"./arrays_to_calcdata\");e.exports=function(t,e){var r,l,u,c,h,f=i.getFromId(t,e.xaxis||\"x\"),d=i.getFromId(t,e.yaxis||\"y\"),p=e.orientation||(e.x&&!e.y?\"h\":\"v\");\"h\"===p?(r=f,u=f.makeCalcdata(e,\"x\"),l=d.makeCalcdata(e,\"y\"),h=e.xcalendar):(r=d,u=d.makeCalcdata(e,\"y\"),l=f.makeCalcdata(e,\"x\"),h=e.ycalendar);var m=Math.min(l.length,u.length),v=new Array(m);for(c=0;c<m;c++)v[c]={p:l[c],s:u[c]};var g,y=e.base;if(Array.isArray(y)){for(c=0;c<Math.min(y.length,v.length);c++)g=r.d2c(y[c],0,h),n(g)?(v[c].b=+g,v[c].hasB=1):v[c].b=0;for(;c<v.length;c++)v[c].b=0}else{g=r.d2c(y,0,h);var b=n(g);for(g=b?g:0,c=0;c<v.length;c++)v[c].b=g,b&&(v[c].hasB=1)}return a(e,\"marker\")&&o(e,e.marker.color,\"marker\",\"c\"),a(e,\"marker.line\")&&o(e,e.marker.line.color,\"marker.line\",\"c\"),s(v,e),v}},{\"../../components/colorscale/calc\":610,\"../../components/colorscale/has_colorscale\":617,\"../../plots/cartesian/axes\":772,\"./arrays_to_calcdata\":855,\"fast-isnumeric\":131}],858:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../components/color\"),a=t(\"../scatter/xy_defaults\"),o=t(\"../bar/style_defaults\"),s=t(\"../../components/errorbars/defaults\"),l=t(\"./attributes\");e.exports=function(t,e,r,u){function c(r,i){return n.coerce(t,e,l,r,i)}var h=n.coerceFont;if(!a(t,e,u,c))return void(e.visible=!1);c(\"orientation\",e.x&&!e.y?\"h\":\"v\"),c(\"base\"),c(\"offset\"),c(\"width\"),c(\"text\"),c(\"hovertext\");var f=c(\"textposition\"),d=Array.isArray(f)||\"auto\"===f,p=d||\"inside\"===f,m=d||\"outside\"===f;if(p||m){var v=h(c,\"textfont\",u.font);p&&h(c,\"insidetextfont\",v),m&&h(c,\"outsidetextfont\",v),c(\"constraintext\")}o(t,e,c,r,u),s(t,e,i.defaultLine,{axis:\"y\"}),s(t,e,i.defaultLine,{axis:\"x\",inherit:\"y\"})}},{\"../../components/color\":604,\"../../components/errorbars/defaults\":633,\"../../lib\":728,\"../bar/style_defaults\":868,\"../scatter/xy_defaults\":1054,\"./attributes\":856}],859:[function(t,e,r){\"use strict\";var n=t(\"../../components/fx\"),i=t(\"../../components/errorbars\"),a=t(\"../../components/color\"),o=t(\"../scatter/fill_hover_text\");e.exports=function(t,e,r,s){var l,u,c,h,f,d,p,m=t.cd,v=m[0].trace,g=m[0].t,y=t.xa,b=t.ya,x=function(t){return n.inbox(h(t)-l,f(t)-l)};\"h\"===v.orientation?(l=r,u=function(t){return t.y-t.w/2},c=function(t){return t.y+t.w/2},d=function(t){return n.inbox(t.b-e,t.x-e)+(t.x-e)/(t.x-t.b)},p=x):(l=e,u=function(t){return t.x-t.w/2},c=function(t){return t.x+t.w/2},p=function(t){return n.inbox(t.b-r,t.y-r)+(t.y-r)/(t.y-t.b)},d=x),h=\"closest\"===s?u:function(t){return Math.min(u(t),t.p-g.bargroupwidth/2)},f=\"closest\"===s?c:function(t){return Math.max(c(t),t.p+g.bargroupwidth/2)};var _=n.getDistanceFunction(s,d,p);if(n.getClosest(m,_,t),!1!==t.index){var w=t.index,M=m[w],k=M.mcc||v.marker.color,A=M.mlcc||v.marker.line.color,T=M.mlw||v.marker.line.width;a.opacity(k)?t.color=k:a.opacity(A)&&T&&(t.color=A);var S=v.base?M.b+M.s:M.s;return\"h\"===v.orientation?(t.x0=t.x1=y.c2p(M.x,!0),t.xLabelVal=S,t.y0=b.c2p(h(M),!0),t.y1=b.c2p(f(M),!0),t.yLabelVal=M.p):(t.y0=t.y1=b.c2p(M.y,!0),t.yLabelVal=S,t.x0=y.c2p(h(M),!0),t.x1=y.c2p(f(M),!0),t.xLabelVal=M.p),o(M,v,t),i.hoverInfo(M,v,t),[t]}}},{\"../../components/color\":604,\"../../components/errorbars\":634,\"../../components/fx\":645,\"../scatter/fill_hover_text\":1038}],860:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.layoutAttributes=t(\"./layout_attributes\"),n.supplyDefaults=t(\"./defaults\"),n.supplyLayoutDefaults=t(\"./layout_defaults\"),n.calc=t(\"./calc\"),n.setPositions=t(\"./set_positions\"),n.colorbar=t(\"../scatter/colorbar\"),n.arraysToCalcdata=t(\"./arrays_to_calcdata\"),n.plot=t(\"./plot\"),n.style=t(\"./style\"),n.hoverPoints=t(\"./hover\"),n.selectPoints=t(\"./select\"),n.moduleType=\"trace\",n.name=\"bar\",n.basePlotModule=t(\"../../plots/cartesian\"),n.categories=[\"cartesian\",\"bar\",\"oriented\",\"markerColorscale\",\"errorBarsOK\",\"showLegend\"],n.meta={},e.exports=n},{\"../../plots/cartesian\":782,\"../scatter/colorbar\":1034,\"./arrays_to_calcdata\":855,\"./attributes\":856,\"./calc\":857,\"./defaults\":858,\"./hover\":859,\"./layout_attributes\":861,\"./layout_defaults\":862,\"./plot\":863,\"./select\":864,\"./set_positions\":865,\"./style\":867}],861:[function(t,e,r){\"use strict\";e.exports={barmode:{valType:\"enumerated\",values:[\"stack\",\"group\",\"overlay\",\"relative\"],dflt:\"group\",editType:\"calc\"},barnorm:{valType:\"enumerated\",values:[\"\",\"fraction\",\"percent\"],dflt:\"\",editType:\"calc\"},bargap:{valType:\"number\",min:0,max:1,editType:\"calc\"},bargroupgap:{valType:\"number\",min:0,max:1,dflt:0,editType:\"calc\"}}},{}],862:[function(t,e,r){\"use strict\";var n=t(\"../../registry\"),i=t(\"../../plots/cartesian/axes\"),a=t(\"../../lib\"),o=t(\"./layout_attributes\");e.exports=function(t,e,r){function s(r,n){return a.coerce(t,e,o,r,n)}for(var l=!1,u=!1,c=!1,h={},f=0;f<r.length;f++){var d=r[f];if(n.traceIs(d,\"bar\")){if(l=!0,\"overlay\"!==t.barmode&&\"stack\"!==t.barmode){var p=d.xaxis+d.yaxis;h[p]&&(c=!0),h[p]=!0}if(d.visible&&\"histogram\"===d.type){\"category\"!==i.getFromId({_fullLayout:e},d[\"v\"===d.orientation?\"xaxis\":\"yaxis\"]).type&&(u=!0)}}}if(l){\"overlay\"!==s(\"barmode\")&&s(\"barnorm\"),s(\"bargap\",u&&!c?0:.2),s(\"bargroupgap\")}}},{\"../../lib\":728,\"../../plots/cartesian/axes\":772,\"../../registry\":846,\"./layout_attributes\":861}],863:[function(t,e,r){\"use strict\";function n(t,e,r,n,o,f,d,p){function m(e,r,n){return e.append(\"text\").text(r).attr({class:\"bartext\",transform:\"\",\"text-anchor\":\"middle\",\"data-notex\":1}).call(k.font,n).call(w.convertToTspans,t)}var v=r[0].trace,g=v.orientation,y=s(v,n);if(y){var b=l(v,n);if(\"none\"!==b){var x,_,M,A,T=u(v,n,t._fullLayout.font),S=c(v,n,T),E=h(v,n,T),L=t._fullLayout.barmode,C=\"stack\"===L,I=\"relative\"===L,D=C||I,P=r[n],O=!D||P._outmost,R=Math.abs(f-o)-2*z,F=Math.abs(p-d)-2*z;if(\"outside\"===b&&(O||(b=\"inside\")),\"auto\"===b)if(O){x=m(e,y,S),_=k.bBox(x.node()),M=_.width,A=_.height;var j=M>0&&A>0,N=M<=R&&A<=F,B=M<=F&&A<=R,U=\"h\"===g?R>=M*(F/A):F>=A*(R/M);j&&(N||B||U)?b=\"inside\":(b=\"outside\",x.remove(),x=null)}else b=\"inside\";if(!x&&(x=m(e,y,\"outside\"===b?E:S),_=k.bBox(x.node()),M=_.width,A=_.height,M<=0||A<=0))return void x.remove();var V,H;\"outside\"===b?(H=\"both\"===v.constraintext||\"outside\"===v.constraintext,V=a(o,f,d,p,_,g,H)):(H=\"both\"===v.constraintext||\"inside\"===v.constraintext,V=i(o,f,d,p,_,g,H)),x.attr(\"transform\",V)}}}function i(t,e,r,n,i,a,s){var l,u,c,h,f,d=i.width,p=i.height,m=(i.left+i.right)/2,v=(i.top+i.bottom)/2,g=Math.abs(e-t),y=Math.abs(n-r);g>2*z&&y>2*z?(f=z,g-=2*f,y-=2*f):f=0;var b,x;return d<=g&&p<=y?(b=!1,x=1):d<=y&&p<=g?(b=!0,x=1):d<p==g<y?(b=!1,x=s?Math.min(g/d,y/p):1):(b=!0,x=s?Math.min(y/d,g/p):1),b&&(b=90),b?(l=x*p,u=x*d):(l=x*d,u=x*p),\"h\"===a?e<t?(c=e+f+l/2,h=(r+n)/2):(c=e-f-l/2,h=(r+n)/2):n>r?(c=(t+e)/2,h=n-f-u/2):(c=(t+e)/2,h=n+f+u/2),o(m,v,c,h,x,b)}function a(t,e,r,n,i,a,s){var l,u=\"h\"===a?Math.abs(n-r):Math.abs(e-t);u>2*z&&(l=z);var c=1;s&&(c=\"h\"===a?Math.min(1,u/i.height):Math.min(1,u/i.width));var h,f,d,p,m=(i.left+i.right)/2,v=(i.top+i.bottom)/2;return h=c*i.width,f=c*i.height,\"h\"===a?e<t?(d=e-l-h/2,p=(r+n)/2):(d=e+l+h/2,p=(r+n)/2):n>r?(d=(t+e)/2,p=n+l+f/2):(d=(t+e)/2,p=n-l-f/2),o(m,v,d,p,c,!1)}function o(t,e,r,n,i,a){var o,s;return i<1?o=\"scale(\"+i+\") \":(i=1,o=\"\"),s=a?\"rotate(\"+a+\" \"+t+\" \"+e+\") \":\"\",\"translate(\"+(r-i*t)+\" \"+(n-i*e)+\")\"+o+s}function s(t,e){var r=d(t.text,e);return p(S,r)}function l(t,e){var r=d(t.textposition,e);return m(E,r)}function u(t,e,r){return f(L,t.textfont,e,r)}function c(t,e,r){return f(C,t.insidetextfont,e,r)}function h(t,e,r){return f(I,t.outsidetextfont,e,r)}function f(t,e,r,n){e=e||{};var i=d(e.family,r),a=d(e.size,r),o=d(e.color,r);return{family:p(t.family,i,n.family),size:v(t.size,a,n.size),color:g(t.color,o,n.color)}}function d(t,e){var r;return Array.isArray(t)?e<t.length&&(r=t[e]):r=t,r}function p(t,e,r){if(\"string\"==typeof e){if(e||!t.noBlank)return e}else if(\"number\"==typeof e&&!t.strict)return String(e);return void 0!==r?r:t.dflt}function m(t,e,r){return t.coerceNumber&&(e=+e),-1!==t.values.indexOf(e)?e:void 0!==r?r:t.dflt}function v(t,e,r){if(b(e)){e=+e;var n=t.min,i=t.max;if(!(void 0!==n&&e<n||void 0!==i&&e>i))return e}return void 0!==r?r:t.dflt}function g(t,e,r){return x(e).isValid()?e:void 0!==r?r:t.dflt}var y=t(\"d3\"),b=t(\"fast-isnumeric\"),x=t(\"tinycolor2\"),_=t(\"../../lib\"),w=t(\"../../lib/svg_text_utils\"),M=t(\"../../components/color\"),k=t(\"../../components/drawing\"),A=t(\"../../components/errorbars\"),T=t(\"./attributes\"),S=T.text,E=T.textposition,L=T.textfont,C=T.insidetextfont,I=T.outsidetextfont,z=3;e.exports=function(t,e,r){var i=e.xaxis,a=e.yaxis,o=t._fullLayout,s=e.plot.select(\".barlayer\").selectAll(\"g.trace.bars\").data(r);s.enter().append(\"g\").attr(\"class\",\"trace bars\"),s.append(\"g\").attr(\"class\",\"points\").each(function(e){var r=e[0].node3=y.select(this),s=e[0].t,l=e[0].trace,u=s.poffset,c=Array.isArray(u);r.selectAll(\"g.point\").data(_.identity).enter().append(\"g\").classed(\"point\",!0).each(function(r,s){function h(t){return 0===o.bargap&&0===o.bargroupgap?y.round(Math.round(t)-A,2):t}function f(t,e){return Math.abs(t-e)>=2?h(t):t>e?Math.ceil(t):Math.floor(t)}var d,p,m,v,g=r.p+(c?u[s]:u),x=g+r.w,_=r.b,w=_+r.s;if(\"h\"===l.orientation?(m=a.c2p(g,!0),v=a.c2p(x,!0),d=i.c2p(_,!0),p=i.c2p(w,!0),r.ct=[p,(m+v)/2]):(d=i.c2p(g,!0),p=i.c2p(x,!0),m=a.c2p(_,!0),v=a.c2p(w,!0),r.ct=[(d+p)/2,v]),!(b(d)&&b(p)&&b(m)&&b(v)&&d!==p&&m!==v))return void y.select(this).remove();var k=(r.mlw+1||l.marker.line.width+1||(r.trace?r.trace.marker.line.width:0)+1)-1,A=y.round(k/2%1,2);if(!t._context.staticPlot){var T=M.opacity(r.mc||l.marker.color),S=T<1||k>.01?h:f;d=S(d,p),p=S(p,d),m=S(m,v),v=S(v,m)}var E=y.select(this);E.append(\"path\").style(\"vector-effect\",\"non-scaling-stroke\").attr(\"d\",\"M\"+d+\",\"+m+\"V\"+v+\"H\"+p+\"V\"+m+\"Z\"),n(t,E,e,s,d,p,m,v)})}),s.call(A.plot,e)}},{\"../../components/color\":604,\"../../components/drawing\":628,\"../../components/errorbars\":634,\"../../lib\":728,\"../../lib/svg_text_utils\":750,\"./attributes\":856,d3:122,\"fast-isnumeric\":131,tinycolor2:534}],864:[function(t,e,r){\"use strict\";var n=t(\"../../constants/interactions\").DESELECTDIM;e.exports=function(t,e){var r,i=t.cd,a=[],o=i[0].trace,s=i[0].node3;if(!0===o.visible){if(!1===e)for(r=0;r<i.length;r++)i[r].dim=0;else for(r=0;r<i.length;r++){var l=i[r];e.contains(l.ct)?(a.push({pointNumber:r,x:l.x,y:l.y}),l.dim=0):l.dim=1}return s.selectAll(\".point\").style(\"opacity\",function(t){return t.dim?n:1}),s.selectAll(\"text\").style(\"opacity\",function(t){return t.dim?n:1}),a}}},{\"../../constants/interactions\":706}],865:[function(t,e,r){\"use strict\";function n(t,e,r,n){if(n.length){var s,l,u,c,h,f=t._fullLayout.barmode,d=\"overlay\"===f,p=\"group\"===f;if(d)i(t,e,r,n);else if(p){for(s=[],l=[],u=0;u<n.length;u++)c=n[u],h=c[0].trace,void 0===h.offset?l.push(c):s.push(c);l.length&&a(t,e,r,l),s.length&&i(t,e,r,s)}else{for(s=[],l=[],u=0;u<n.length;u++)c=n[u],h=c[0].trace,void 0===h.base?l.push(c):s.push(c);l.length&&o(t,e,r,l),s.length&&i(t,e,r,s)}}}function i(t,e,r,n){for(var i=t._fullLayout.barnorm,a=!i,o=0;o<n.length;o++){var l=n[o],u=new w([l],!1,a);s(t,e,u),i?(m(t,r,u),v(t,r,u)):d(t,r,u)}}function a(t,e,r,n){var i=t._fullLayout,a=i.barnorm,o=!a,s=new w(n,!1,o);l(t,e,s),a?(m(t,r,s),v(t,r,s)):d(t,r,s)}function o(t,e,r,n){var i=t._fullLayout,a=i.barmode,o=\"stack\"===a,l=\"relative\"===a,u=t._fullLayout.barnorm,c=l,h=!(u||o||l),f=new w(n,c,h);s(t,e,f),p(t,r,f);for(var d=0;d<n.length;d++)for(var m=n[d],g=0;g<m.length;g++){var y=m[g];if(y.s!==b){var x=y.b+y.s===f.get(y.p,y.s);x&&(y._outmost=!0)}}u&&v(t,r,f)}function s(t,e,r){var n,i,a,o,s=t._fullLayout,l=s.bargap,f=s.bargroupgap,d=r.minDiff,p=r.traces,m=d*(1-l),v=m,g=v*(1-f),y=-g/2;for(n=0;n<p.length;n++)i=p[n],a=i[0],o=a.t,o.barwidth=g,o.poffset=y,o.bargroupwidth=m;r.binWidth=p[0][0].t.barwidth/100,u(r),c(t,e,r),h(t,e,r)}function l(t,e,r){var n,i,a,o,s=t._fullLayout,l=s.bargap,f=s.bargroupgap,d=r.positions,p=r.distinctPositions,m=r.minDiff,v=r.traces,g=d.length!==p.length,y=v.length,b=m*(1-l),x=g?b/y:b,_=x*(1-f);for(n=0;n<y;n++){i=v[n],a=i[0];var w=g?((2*n+1-y)*x-_)/2:-_/2;o=a.t,o.barwidth=_,o.poffset=w,o.bargroupwidth=b}r.binWidth=v[0][0].t.barwidth/100,u(r),c(t,e,r),h(t,e,r,g)}function u(t){var e,r,n,i,a,o,s=t.traces;for(e=0;e<s.length;e++){r=s[e],n=r[0],i=n.trace,o=n.t;var l,u=i.offset,c=o.poffset;if(Array.isArray(u)){for(l=u.slice(0,r.length),a=0;a<l.length;a++)y(l[a])||(l[a]=c);for(a=l.length;a<r.length;a++)l.push(c);o.poffset=l}else void 0!==u&&(o.poffset=u);var h=i.width,f=o.barwidth;if(Array.isArray(h)){var d=h.slice(0,r.length);for(a=0;a<d.length;a++)y(d[a])||(d[a]=f);for(a=d.length;a<r.length;a++)d.push(f);if(o.barwidth=d,void 0===u){for(l=[],a=0;a<r.length;a++)l.push(c+(f-d[a])/2);o.poffset=l}}else void 0!==h&&(o.barwidth=h,void 0===u&&(o.poffset=c+(f-h)/2))}}function c(t,e,r){for(var n=r.traces,i=g(e),a=0;a<n.length;a++)for(var o=n[a],s=o[0].t,l=s.poffset,u=Array.isArray(l),c=s.barwidth,h=Array.isArray(c),f=0;f<o.length;f++){var d=o[f],p=d.w=h?c[f]:c;d[i]=d.p+(u?l[f]:l)+p/2}}function h(t,e,r,n){var i=r.traces,a=r.distinctPositions,o=a[0],s=r.minDiff,l=s/2;_.minDtick(e,s,o,n);for(var u=Math.min.apply(Math,a)-l,c=Math.max.apply(Math,a)+l,h=0;h<i.length;h++){var f=i[h],d=f[0],p=d.trace;if(void 0!==p.width||void 0!==p.offset)for(var m=d.t,v=m.poffset,g=m.barwidth,y=Array.isArray(v),b=Array.isArray(g),x=0;x<f.length;x++){var w=f[x],M=y?v[x]:v,k=b?g[x]:g,A=w.p,T=A+M,S=T+k;u=Math.min(u,T),c=Math.max(c,S)}}_.expand(e,[u,c],{padded:!1})}function f(t,e){y(t[0])?t[0]=Math.min(t[0],e):t[0]=e,y(t[1])?t[1]=Math.max(t[1],e):t[1]=e}function d(t,e,r){for(var n=r.traces,i=g(e),a=[null,null],o=0;o<n.length;o++)for(var s=n[o],l=0;l<s.length;l++){var u=s[l],c=u.b,h=c+u.s;u[i]=h,y(e.c2l(h))&&f(a,h),u.hasB&&y(e.c2l(c))&&f(a,c)}_.expand(e,a,{tozero:!0,padded:!0})}function p(t,e,r){var n,i,a,o,s=t._fullLayout,l=s.barnorm,u=g(e),c=r.traces,h=[null,null];for(n=0;n<c.length;n++)for(i=c[n],a=0;a<i.length;a++)if(o=i[a],o.s!==b){var d=r.put(o.p,o.b+o.s),p=d+o.b+o.s;o.b=d,o[u]=p,l||(y(e.c2l(p))&&f(h,p),o.hasB&&y(e.c2l(d))&&f(h,d))}l||_.expand(e,h,{tozero:!0,padded:!0})}function m(t,e,r){for(var n=r.traces,i=0;i<n.length;i++)for(var a=n[i],o=0;o<a.length;o++){var s=a[o];s.s!==b&&r.put(s.p,s.b+s.s)}}function v(t,e,r){function n(t){y(e.c2l(t))&&(t<l-s||t>u+s||!y(l))&&(h=!0,f(c,t))}for(var i=r.traces,a=g(e),o=\"fraction\"===t._fullLayout.barnorm?1:100,s=o/1e9,l=e.l2c(e.c2l(0)),u=\"stack\"===t._fullLayout.barmode?o:l,c=[l,u],h=!1,d=0;d<i.length;d++)for(var p=i[d],m=0;m<p.length;m++){var v=p[m];if(v.s!==b){var x=Math.abs(o/r.get(v.p,v.s));v.b*=x,v.s*=x;var w=v.b,M=w+v.s;v[a]=M,n(M),v.hasB&&n(w)}}_.expand(e,c,{tozero:!0,padded:h})}function g(t){return t._id.charAt(0)}var y=t(\"fast-isnumeric\"),b=t(\"../../constants/numerical\").BADNUM,x=t(\"../../registry\"),_=t(\"../../plots/cartesian/axes\"),w=t(\"./sieve.js\");e.exports=function(t,e){var r,i=e.xaxis,a=e.yaxis,o=t._fullData,s=t.calcdata,l=[],u=[];for(r=0;r<o.length;r++){var c=o[r];!0===c.visible&&x.traceIs(c,\"bar\")&&c.xaxis===i._id&&c.yaxis===a._id&&(\"h\"===c.orientation?l.push(s[r]):u.push(s[r]))}n(t,i,a,u),n(t,a,i,l)}},{\"../../constants/numerical\":707,\"../../plots/cartesian/axes\":772,\"../../registry\":846,\"./sieve.js\":866,\"fast-isnumeric\":131}],866:[function(t,e,r){\"use strict\";function n(t,e,r){this.traces=t,this.separateNegativeValues=e,this.dontMergeOverlappingData=r;for(var n=1/0,o=[],s=0;s<t.length;s++){for(var l=t[s],u=0;u<l.length;u++){var c=l[u];c.p!==a&&o.push(c.p)}l[0]&&l[0].width1&&(n=Math.min(l[0].width1,n))}this.positions=o;var h=i.distinctVals(o);this.distinctPositions=h.vals,1===h.vals.length&&n!==1/0?this.minDiff=n:this.minDiff=Math.min(h.minDiff,n),this.binWidth=this.minDiff,this.bins={}}e.exports=n;var i=t(\"../../lib\"),a=t(\"../../constants/numerical\").BADNUM;n.prototype.put=function(t,e){var r=this.getLabel(t,e),n=this.bins[r]||0;return this.bins[r]=n+e,n},n.prototype.get=function(t,e){var r=this.getLabel(t,e);return this.bins[r]||0},n.prototype.getLabel=function(t,e){return(e<0&&this.separateNegativeValues?\"v\":\"^\")+(this.dontMergeOverlappingData?t:Math.round(t/this.binWidth))}},{\"../../constants/numerical\":707,\"../../lib\":728}],867:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../../components/color\"),a=t(\"../../components/drawing\"),o=t(\"../../components/errorbars\");e.exports=function(t){var e=n.select(t).selectAll(\"g.trace.bars\"),r=e.size(),s=t._fullLayout;e.style(\"opacity\",function(t){return t[0].trace.opacity}).each(function(t){(\"stack\"===s.barmode&&r>1||0===s.bargap&&0===s.bargroupgap&&!t[0].trace.marker.line.width)&&n.select(this).attr(\"shape-rendering\",\"crispEdges\")}),e.selectAll(\"g.points\").each(function(t){var e=t[0].trace,r=e.marker,o=r.line,s=a.tryColorscale(r,\"\"),l=a.tryColorscale(r,\"line\");n.select(this).selectAll(\"path\").each(function(t){var e,a,u=(t.mlw+1||o.width+1)-1,c=n.select(this);e=\"mc\"in t?t.mcc=s(t.mc):Array.isArray(r.color)?i.defaultLine:r.color,c.style(\"stroke-width\",u+\"px\").call(i.fill,e),u&&(a=\"mlc\"in t?t.mlcc=l(t.mlc):Array.isArray(o.color)?i.defaultLine:o.color,c.call(i.stroke,a))})}),e.call(o.style)}},{\"../../components/color\":604,\"../../components/drawing\":628,\"../../components/errorbars\":634,d3:122}],868:[function(t,e,r){\"use strict\";var n=t(\"../../components/color\"),i=t(\"../../components/colorscale/has_colorscale\"),a=t(\"../../components/colorscale/defaults\");e.exports=function(t,e,r,o,s){r(\"marker.color\",o),i(t,\"marker\")&&a(t,e,s,r,{prefix:\"marker.\",cLetter:\"c\"}),r(\"marker.line.color\",n.defaultLine),i(t,\"marker.line\")&&a(t,e,s,r,{prefix:\"marker.line.\",cLetter:\"c\"}),r(\"marker.line.width\")}},{\"../../components/color\":604,\"../../components/colorscale/defaults\":613,\"../../components/colorscale/has_colorscale\":617}],869:[function(t,e,r){\"use strict\";var n=t(\"../scatter/attributes\"),i=t(\"../../components/color/attributes\"),a=t(\"../../lib/extend\").extendFlat,o=n.marker,s=o.line;e.exports={y:{valType:\"data_array\",editType:\"calc+clearAxisTypes\"},x:{valType:\"data_array\",editType:\"calc+clearAxisTypes\"},x0:{valType:\"any\",editType:\"calc+clearAxisTypes\"},y0:{valType:\"any\",editType:\"calc+clearAxisTypes\"},name:{valType:\"string\",editType:\"calc+clearAxisTypes\"},whiskerwidth:{valType:\"number\",min:0,max:1,dflt:.5,editType:\"calcIfAutorange\"},boxpoints:{valType:\"enumerated\",values:[\"all\",\"outliers\",\"suspectedoutliers\",!1],dflt:\"outliers\",editType:\"calcIfAutorange\"},boxmean:{valType:\"enumerated\",values:[!0,\"sd\",!1],dflt:!1,editType:\"calcIfAutorange\"},jitter:{valType:\"number\",min:0,max:1,editType:\"calcIfAutorange\"},pointpos:{valType:\"number\",min:-2,max:2,editType:\"calcIfAutorange\"},orientation:{valType:\"enumerated\",values:[\"v\",\"h\"],editType:\"calc+clearAxisTypes\"},marker:{outliercolor:{valType:\"color\",dflt:\"rgba(0, 0, 0, 0)\",editType:\"style\"},symbol:a({},o.symbol,{arrayOk:!1,editType:\"plot\"}),opacity:a({},o.opacity,{arrayOk:!1,dflt:1,editType:\"style\"}),size:a({},o.size,{arrayOk:!1,editType:\"calcIfAutorange\"}),color:a({},o.color,{arrayOk:!1,editType:\"style\"}),line:{color:a({},s.color,{arrayOk:!1,dflt:i.defaultLine,editType:\"style\"}),width:a({},s.width,{arrayOk:!1,dflt:0,editType:\"style\"}),outliercolor:{valType:\"color\",editType:\"style\"},outlierwidth:{valType:\"number\",min:0,dflt:1,editType:\"style\"},editType:\"style\"},editType:\"plot\"},line:{color:{valType:\"color\",editType:\"style\"},width:{valType:\"number\",min:0,dflt:2,editType:\"style\"},editType:\"plot\"},fillcolor:n.fillcolor}},{\"../../components/color/attributes\":603,\"../../lib/extend\":717,\"../scatter/attributes\":1031}],870:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../../lib\"),a=t(\"../../plots/cartesian/axes\");e.exports=function(t,e){var r,o,s,l,u,c,h,f,d,p=a.getFromId(t,e.xaxis||\"x\"),m=a.getFromId(t,e.yaxis||\"y\"),v=e.orientation,g=[];\"h\"===v?(r=p,o=\"x\",u=m,c=\"y\"):(r=m,o=\"y\",u=p,c=\"x\"),s=r.makeCalcdata(e,o),a.expand(r,s,{padded:!0}),h=function(t,e,r,a,o){var s;return r in e?h=a.makeCalcdata(e,r):(s=r+\"0\"in e?e[r+\"0\"]:\"name\"in e&&(\"category\"===a.type||n(e.name)&&-1!==[\"linear\",\"log\"].indexOf(a.type)||i.isDateTime(e.name)&&\"date\"===a.type)?e.name:t.numboxes,s=a.d2c(s,0,e[r+\"calendar\"]),h=o.map(function(){return s})),h}(t,e,c,u,s);var y=i.distinctVals(h);return f=y.vals,d=y.minDiff/2,l=function(t,e,r,a,o){var s,l,u,c,h=a.length,f=e.length,d=[],p=[];for(s=0;s<h;++s)l=a[s],t[s]={pos:l},p[s]=l-o,d[s]=[];for(p.push(a[h-1]+o),s=0;s<f;++s)c=e[s],n(c)&&(u=i.findBin(r[s],p))>=0&&u<f&&d[u].push(c);return d}(g,s,h,f,d),function(t,e){var r,n,a,o;for(o=0;o<e.length;++o)r=e[o].sort(i.sorterAsc),n=r.length,a=t[o],a.val=r,a.min=r[0],a.max=r[n-1],a.mean=i.mean(r,n),a.sd=i.stdev(r,n,a.mean),a.q1=i.interp(r,.25),a.med=i.interp(r,.5),a.q3=i.interp(r,.75),a.lf=Math.min(a.q1,r[Math.min(i.findBin(2.5*a.q1-1.5*a.q3,r,!0)+1,n-1)]),a.uf=Math.max(a.q3,r[Math.max(i.findBin(2.5*a.q3-1.5*a.q1,r),0)]),a.lo=4*a.q1-3*a.q3,a.uo=4*a.q3-3*a.q1}(g,l),g=g.filter(function(t){return t.val&&t.val.length}),g.length?(g[0].t={boxnum:t.numboxes,dPos:d},t.numboxes++,g):[{t:{emptybox:!0}}]}},{\"../../lib\":728,\"../../plots/cartesian/axes\":772,\"fast-isnumeric\":131}],871:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../registry\"),a=t(\"../../components/color\"),o=t(\"./attributes\")\n", ";e.exports=function(t,e,r,s){function l(r,i){return n.coerce(t,e,o,r,i)}var u,c=l(\"y\"),h=l(\"x\");if(c&&c.length)u=\"v\",h||l(\"x0\");else{if(!h||!h.length)return void(e.visible=!1);u=\"h\",l(\"y0\")}i.getComponentMethod(\"calendars\",\"handleTraceDefaults\")(t,e,[\"x\",\"y\"],s),l(\"orientation\",u),l(\"line.color\",(t.marker||{}).color||r),l(\"line.width\",2),l(\"fillcolor\",a.addOpacity(e.line.color,.5)),l(\"whiskerwidth\"),l(\"boxmean\");var f=n.coerce2(t,e,o,\"marker.outliercolor\"),d=l(\"marker.line.outliercolor\"),p=f||d?l(\"boxpoints\",\"suspectedoutliers\"):l(\"boxpoints\");p&&(l(\"jitter\",\"all\"===p?.3:0),l(\"pointpos\",\"all\"===p?-1.5:0),l(\"marker.symbol\"),l(\"marker.opacity\"),l(\"marker.size\"),l(\"marker.color\",e.line.color),l(\"marker.line.color\"),l(\"marker.line.width\"),\"suspectedoutliers\"===p&&(l(\"marker.line.outliercolor\",e.marker.color),l(\"marker.line.outlierwidth\")))}},{\"../../components/color\":604,\"../../lib\":728,\"../../registry\":846,\"./attributes\":869}],872:[function(t,e,r){\"use strict\";var n=t(\"../../plots/cartesian/axes\"),i=t(\"../../lib\"),a=t(\"../../components/fx\"),o=t(\"../../components/color\");e.exports=function(t,e,r,s){var l,u,c,h,f,d,p,m,v,g=t.cd,y=g[0].trace,b=g[0].t,x=t.xa,_=t.ya,w=[];if(h=\"closest\"===s?2.5*b.bdPos:b.bdPos,\"h\"===y.orientation?(l=function(t){return a.inbox(t.min-e,t.max-e)},u=function(t){var e=t.pos+b.bPos-r;return a.inbox(e-h,e+h)},f=\"y\",d=_,m=\"x\",v=x):(l=function(t){var r=t.pos+b.bPos-e;return a.inbox(r-h,r+h)},u=function(t){return a.inbox(t.min-r,t.max-r)},f=\"x\",d=x,m=\"y\",v=_),c=a.getDistanceFunction(s,l,u),a.getClosest(g,c,t),!1!==t.index){var M=g[t.index],k=y.line.color,A=(y.marker||{}).color;o.opacity(k)&&y.line.width?t.color=k:o.opacity(A)&&y.boxpoints?t.color=A:t.color=y.fillcolor,t[f+\"0\"]=d.c2p(M.pos+b.bPos-b.bdPos,!0),t[f+\"1\"]=d.c2p(M.pos+b.bPos+b.bdPos,!0),n.tickText(d,d.c2l(M.pos),\"hover\").text,t[f+\"LabelVal\"]=M.pos;var T,S,E={},L=[\"med\",\"min\",\"q1\",\"q3\",\"max\"];y.boxmean&&L.push(\"mean\"),y.boxpoints&&[].push.apply(L,[\"lf\",\"uf\"]);for(var C=0;C<L.length;C++)(T=L[C])in M&&!(M[T]in E)&&(E[M[T]]=!0,p=v.c2p(M[T],!0),S=i.extendFlat({},t),S[m+\"0\"]=S[m+\"1\"]=p,S[m+\"LabelVal\"]=M[T],S.attr=T,\"mean\"===T&&\"sd\"in M&&\"sd\"===y.boxmean&&(S[m+\"err\"]=M.sd),t.name=\"\",w.push(S));return w}}},{\"../../components/color\":604,\"../../components/fx\":645,\"../../lib\":728,\"../../plots/cartesian/axes\":772}],873:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.layoutAttributes=t(\"./layout_attributes\"),n.supplyDefaults=t(\"./defaults\"),n.supplyLayoutDefaults=t(\"./layout_defaults\"),n.calc=t(\"./calc\"),n.setPositions=t(\"./set_positions\"),n.plot=t(\"./plot\"),n.style=t(\"./style\"),n.hoverPoints=t(\"./hover\"),n.moduleType=\"trace\",n.name=\"box\",n.basePlotModule=t(\"../../plots/cartesian\"),n.categories=[\"cartesian\",\"symbols\",\"oriented\",\"box\",\"showLegend\"],n.meta={},e.exports=n},{\"../../plots/cartesian\":782,\"./attributes\":869,\"./calc\":870,\"./defaults\":871,\"./hover\":872,\"./layout_attributes\":874,\"./layout_defaults\":875,\"./plot\":876,\"./set_positions\":877,\"./style\":878}],874:[function(t,e,r){\"use strict\";e.exports={boxmode:{valType:\"enumerated\",values:[\"group\",\"overlay\"],dflt:\"overlay\",editType:\"calc\"},boxgap:{valType:\"number\",min:0,max:1,dflt:.3,editType:\"calc\"},boxgroupgap:{valType:\"number\",min:0,max:1,dflt:.3,editType:\"calc\"}}},{}],875:[function(t,e,r){\"use strict\";var n=t(\"../../registry\"),i=t(\"../../lib\"),a=t(\"./layout_attributes\");e.exports=function(t,e,r){function o(r,n){return i.coerce(t,e,a,r,n)}for(var s,l=0;l<r.length;l++)if(n.traceIs(r[l],\"box\")){s=!0;break}s&&(o(\"boxmode\"),o(\"boxgap\"),o(\"boxgroupgap\"))}},{\"../../lib\":728,\"../../registry\":846,\"./layout_attributes\":874}],876:[function(t,e,r){\"use strict\";function n(){l=2e9}function i(){var t=l;return l=(69069*l+1)%4294967296,Math.abs(l-t)<429496729?i():l/4294967296}var a=t(\"d3\"),o=t(\"../../lib\"),s=t(\"../../components/drawing\"),l=2e9;e.exports=function(t,e,r){var l,u,c=t._fullLayout,h=e.xaxis,f=e.yaxis;e.plot.select(\".boxlayer\").selectAll(\"g.trace.boxes\").data(r).enter().append(\"g\").attr(\"class\",\"trace boxes\").each(function(e){var r=e[0].t,d=e[0].trace,p=\"group\"===c.boxmode&&t.numboxes>1,m=r.dPos*(1-c.boxgap)*(1-c.boxgroupgap)/(p?t.numboxes:1),v=p?2*r.dPos*((r.boxnum+.5)/t.numboxes-.5)*(1-c.boxgap):0,g=m*d.whiskerwidth;if(!0!==d.visible||r.emptybox)return void a.select(this).remove();\"h\"===d.orientation?(l=f,u=h):(l=h,u=f),r.bPos=v,r.bdPos=m,n(),a.select(this).selectAll(\"path.box\").data(o.identity).enter().append(\"path\").style(\"vector-effect\",\"non-scaling-stroke\").attr(\"class\",\"box\").each(function(t){var e=l.c2p(t.pos+v,!0),r=l.c2p(t.pos+v-m,!0),n=l.c2p(t.pos+v+m,!0),i=l.c2p(t.pos+v-g,!0),s=l.c2p(t.pos+v+g,!0),c=u.c2p(t.q1,!0),h=u.c2p(t.q3,!0),f=o.constrain(u.c2p(t.med,!0),Math.min(c,h)+1,Math.max(c,h)-1),p=u.c2p(!1===d.boxpoints?t.min:t.lf,!0),y=u.c2p(!1===d.boxpoints?t.max:t.uf,!0);\"h\"===d.orientation?a.select(this).attr(\"d\",\"M\"+f+\",\"+r+\"V\"+n+\"M\"+c+\",\"+r+\"V\"+n+\"H\"+h+\"V\"+r+\"ZM\"+c+\",\"+e+\"H\"+p+\"M\"+h+\",\"+e+\"H\"+y+(0===d.whiskerwidth?\"\":\"M\"+p+\",\"+i+\"V\"+s+\"M\"+y+\",\"+i+\"V\"+s)):a.select(this).attr(\"d\",\"M\"+r+\",\"+f+\"H\"+n+\"M\"+r+\",\"+c+\"H\"+n+\"V\"+h+\"H\"+r+\"ZM\"+e+\",\"+c+\"V\"+p+\"M\"+e+\",\"+h+\"V\"+y+(0===d.whiskerwidth?\"\":\"M\"+i+\",\"+p+\"H\"+s+\"M\"+i+\",\"+y+\"H\"+s))}),d.boxpoints&&a.select(this).selectAll(\"g.points\").data(function(t){return t.forEach(function(t){t.t=r,t.trace=d}),t}).enter().append(\"g\").attr(\"class\",\"points\").selectAll(\"path\").data(function(t){var e,r,n,a,s,l,u,c=\"all\"===d.boxpoints?t.val:t.val.filter(function(e){return e<t.lf||e>t.uf}),h=Math.max((t.max-t.min)/10,t.q3-t.q1),f=1e-9*h,p=.01*h,g=[],y=0;if(d.jitter){if(0===h)for(y=1,g=new Array(c.length),e=0;e<c.length;e++)g[e]=1;else for(e=0;e<c.length;e++)r=Math.max(0,e-5),a=c[r],n=Math.min(c.length-1,e+5),s=c[n],\"all\"!==d.boxpoints&&(c[e]<t.lf?s=Math.min(s,t.lf):a=Math.max(a,t.uf)),l=Math.sqrt(p*(n-r)/(s-a+f))||0,l=o.constrain(Math.abs(l),0,1),g.push(l),y=Math.max(l,y);u=2*d.jitter/y}return c.map(function(e,r){var n,a=d.pointpos;return d.jitter&&(a+=u*g[r]*(i()-.5)),n=\"h\"===d.orientation?{y:t.pos+a*m+v,x:e}:{x:t.pos+a*m+v,y:e},\"suspectedoutliers\"===d.boxpoints&&e<t.uo&&e>t.lo&&(n.so=!0),n})}).enter().append(\"path\").classed(\"point\",!0).call(s.translatePoints,h,f),d.boxmean&&a.select(this).selectAll(\"path.mean\").data(o.identity).enter().append(\"path\").attr(\"class\",\"mean\").style({fill:\"none\",\"vector-effect\":\"non-scaling-stroke\"}).each(function(t){var e=l.c2p(t.pos+v,!0),r=l.c2p(t.pos+v-m,!0),n=l.c2p(t.pos+v+m,!0),i=u.c2p(t.mean,!0),o=u.c2p(t.mean-t.sd,!0),s=u.c2p(t.mean+t.sd,!0);\"h\"===d.orientation?a.select(this).attr(\"d\",\"M\"+i+\",\"+r+\"V\"+n+(\"sd\"!==d.boxmean?\"\":\"m0,0L\"+o+\",\"+e+\"L\"+i+\",\"+r+\"L\"+s+\",\"+e+\"Z\")):a.select(this).attr(\"d\",\"M\"+r+\",\"+i+\"H\"+n+(\"sd\"!==d.boxmean?\"\":\"m0,0L\"+e+\",\"+o+\"L\"+r+\",\"+i+\"L\"+e+\",\"+s+\"Z\"))})})}},{\"../../components/drawing\":628,\"../../lib\":728,d3:122}],877:[function(t,e,r){\"use strict\";var n=t(\"../../registry\"),i=t(\"../../plots/cartesian/axes\"),a=t(\"../../lib\");e.exports=function(t,e){var r,o,s,l,u=t._fullLayout,c=e.xaxis,h=e.yaxis,f=[\"v\",\"h\"];for(o=0;o<f.length;++o){var d,p,m,v=f[o],g=[],y=[],b=0,x=0;for(r=\"h\"===v?h:c,s=0;s<t.calcdata.length;++s)d=t.calcdata[s],p=d[0].t,m=d[0].trace,!0===m.visible&&n.traceIs(m,\"box\")&&!p.emptybox&&m.orientation===v&&m.xaxis===c._id&&m.yaxis===h._id&&(g.push(s),!1!==m.boxpoints&&(b=Math.max(b,m.jitter-m.pointpos-1),x=Math.max(x,m.jitter+m.pointpos-1)));for(s=0;s<g.length;s++)for(d=t.calcdata[g[s]],l=0;l<d.length;l++)y.push(d[l].pos);if(y.length){var _=a.distinctVals(y),w=_.minDiff/2;for(y.length===_.vals.length&&(t.numboxes=1),i.minDtick(r,_.minDiff,_.vals[0],!0),o=0;o<g.length;o++){var M=g[o];t.calcdata[M][0].t.dPos=w}var k=(1-u.boxgap)*(1-u.boxgroupgap)*w/t.numboxes;i.expand(r,_.vals,{vpadminus:w+b*k,vpadplus:w+x*k})}}}},{\"../../lib\":728,\"../../plots/cartesian/axes\":772,\"../../registry\":846}],878:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../../components/color\"),a=t(\"../../components/drawing\");e.exports=function(t){n.select(t).selectAll(\"g.trace.boxes\").style(\"opacity\",function(t){return t[0].trace.opacity}).each(function(e){var r=e[0].trace,o=r.line.width;n.select(this).selectAll(\"path.box\").style(\"stroke-width\",o+\"px\").call(i.stroke,r.line.color).call(i.fill,r.fillcolor),n.select(this).selectAll(\"path.mean\").style({\"stroke-width\":o,\"stroke-dasharray\":2*o+\"px,\"+o+\"px\"}).call(i.stroke,r.line.color),n.select(this).selectAll(\"g.points path\").call(a.pointStyle,r,t)})}},{\"../../components/color\":604,\"../../components/drawing\":628,d3:122}],879:[function(t,e,r){\"use strict\";function n(t){return{name:a.increasing.name,showlegend:a.increasing.showlegend,line:{color:i({},o.line.color,{dflt:t}),width:o.line.width,editType:\"style\"},fillcolor:o.fillcolor,editType:\"style\"}}var i=t(\"../../lib\").extendFlat,a=t(\"../ohlc/attributes\"),o=t(\"../box/attributes\");e.exports={x:a.x,open:a.open,high:a.high,low:a.low,close:a.close,line:{width:i({},o.line.width,{}),editType:\"style\"},increasing:n(a.increasing.line.color.dflt),decreasing:n(a.decreasing.line.color.dflt),text:a.text,whiskerwidth:i({},o.whiskerwidth,{dflt:0})}},{\"../../lib\":728,\"../box/attributes\":869,\"../ohlc/attributes\":990}],880:[function(t,e,r){\"use strict\";function n(t,e,r,n){o(t,e,r,n),r(n+\".line.color\"),r(n+\".line.width\",e.line.width),r(n+\".fillcolor\")}var i=t(\"../../lib\"),a=t(\"../ohlc/ohlc_defaults\"),o=t(\"../ohlc/direction_defaults\"),s=t(\"../ohlc/helpers\"),l=t(\"./attributes\");e.exports=function(t,e,r,o){function u(r,n){return i.coerce(t,e,l,r,n)}if(s.pushDummyTransformOpts(t,e),0===a(t,e,u,o))return void(e.visible=!1);u(\"line.width\"),n(t,e,u,\"increasing\"),n(t,e,u,\"decreasing\"),u(\"text\"),u(\"whiskerwidth\")}},{\"../../lib\":728,\"../ohlc/direction_defaults\":992,\"../ohlc/helpers\":993,\"../ohlc/ohlc_defaults\":995,\"./attributes\":879}],881:[function(t,e,r){\"use strict\";var n=t(\"../../plot_api/register\");e.exports={moduleType:\"trace\",name:\"candlestick\",basePlotModule:t(\"../../plots/cartesian\"),categories:[\"cartesian\",\"showLegend\",\"candlestick\"],meta:{},attributes:t(\"./attributes\"),supplyDefaults:t(\"./defaults\")},n(t(\"../box\")),n(t(\"./transform\"))},{\"../../plot_api/register\":762,\"../../plots/cartesian\":782,\"../box\":873,\"./attributes\":879,\"./defaults\":880,\"./transform\":882}],882:[function(t,e,r){\"use strict\";function n(t,e,r){var n={type:\"box\",boxpoints:!1,visible:t.visible,hoverinfo:t.hoverinfo,opacity:t.opacity,xaxis:t.xaxis,yaxis:t.yaxis,transforms:o.makeTransform(t,e,r)},i=t[r];return i&&a.extendFlat(n,{x:t.x||[0],xcalendar:t.xcalendar,y:[].concat(t.low).concat(t.high),whiskerwidth:t.whiskerwidth,text:t.text,name:i.name,showlegend:i.showlegend,line:i.line,fillcolor:i.fillcolor}),n}var i=t(\"fast-isnumeric\"),a=t(\"../../lib\"),o=t(\"../ohlc/helpers\");r.moduleType=\"transform\",r.name=\"candlestick\",r.attributes={},r.supplyDefaults=function(t,e,r,n){return o.clearEphemeralTransformOpts(n),o.copyOHLC(t,e),t},r.transform=function(t,e){for(var r=[],i=0;i<t.length;i++){var a=t[i];\"candlestick\"===a.type?r.push(n(a,e,\"increasing\"),n(a,e,\"decreasing\")):r.push(a)}return o.addRangeSlider(r,e.layout),r},r.calcTransform=function(t,e,r){for(var n=r.direction,a=o.getFilterFn(n),s=e.open,l=e.high,u=e.low,c=e.close,h=s.length,f=[],d=[],p=e._fullInput.x?function(t){var r=e.x[t];f.push(r,r,r,r,r,r)}:function(t){f.push(t,t,t,t,t,t)},m=0;m<h;m++)a(s[m],c[m])&&i(l[m])&&i(u[m])&&(p(m),function(t,e,r,n){d.push(r,t,n,n,n,e)}(s[m],l[m],u[m],c[m]));e.x=f,e.y=d}},{\"../../lib\":728,\"../ohlc/helpers\":993,\"fast-isnumeric\":131}],883:[function(t,e,r){\"use strict\";function n(t,e,r,n){[\"aaxis\",\"baxis\"].forEach(function(a){var o=a.charAt(0),s=t[a]||{},l={},u={tickfont:\"x\",id:o+\"axis\",letter:o,font:e.font,name:a,data:t[o],calendar:e.calendar,dfltColor:n,bgColor:r.paper_bgcolor,fullLayout:r};i(s,l,u),l._categories=l._categories||[],e[a]=l,t[a]||\"-\"===s.type||(t[a]={type:s.type})})}var i=t(\"./axis_defaults\");e.exports=function(t,e,r,i,a){i(\"a\")||(i(\"da\"),i(\"a0\")),i(\"b\")||(i(\"db\"),i(\"b0\")),n(t,e,r,a)}},{\"./axis_defaults\":888}],884:[function(t,e,r){\"use strict\";function n(t,e){if(!Array.isArray(t)||e>=10)return null;for(var r=1/0,i=-1/0,a=t.length,o=0;o<a;o++){var s=t[o];if(Array.isArray(s)){var l=n(s,e+1);l&&(r=Math.min(l[0],r),i=Math.max(l[1],i))}else r=Math.min(s,r),i=Math.max(s,i)}return[r,i]}e.exports=function(t){return n(t,0)}},{}],885:[function(t,e,r){\"use strict\";var n=t(\"../../plots/font_attributes\"),i=t(\"./axis_attributes\"),a=t(\"../../components/color/attributes\"),o=n({editType:\"calc\"});o.family.dflt='\"Open Sans\", verdana, arial, sans-serif',o.size.dflt=12,o.color.dflt=a.defaultLine,e.exports={carpet:{valType:\"string\",editType:\"calc\"},x:{valType:\"data_array\",editType:\"calc+clearAxisTypes\"},y:{valType:\"data_array\",editType:\"calc+clearAxisTypes\"},a:{valType:\"data_array\",editType:\"calc\"},a0:{valType:\"number\",dflt:0,editType:\"calc\"},da:{valType:\"number\",dflt:1,editType:\"calc\"},b:{valType:\"data_array\",editType:\"calc\"},b0:{valType:\"number\",dflt:0,editType:\"calc\"},db:{valType:\"number\",dflt:1,editType:\"calc\"},cheaterslope:{valType:\"number\",dflt:1,editType:\"calc\"},aaxis:i,baxis:i,font:o,color:{valType:\"color\",dflt:a.defaultLine,editType:\"plot\"}}},{\"../../components/color/attributes\":603,\"../../plots/font_attributes\":796,\"./axis_attributes\":887}],886:[function(t,e,r){\"use strict\";e.exports=function(t,e,r,n){var i,a,o,s,l,u,c,h,f,d,p,m,v,g=Array.isArray(r)?\"a\":\"b\",y=\"a\"===g?t.aaxis:t.baxis,b=y.smoothing,x=\"a\"===g?t.a2i:t.b2j,_=\"a\"===g?r:n,w=\"a\"===g?n:r,M=\"a\"===g?e.a.length:e.b.length,k=\"a\"===g?e.b.length:e.a.length,A=Math.floor(\"a\"===g?t.b2j(w):t.a2i(w)),T=\"a\"===g?function(e){return t.evalxy([],e,A)}:function(e){return t.evalxy([],A,e)};b&&(o=Math.max(0,Math.min(k-2,A)),s=A-o,a=\"a\"===g?function(e,r){return t.dxydi([],e,o,r,s)}:function(e,r){return t.dxydj([],o,e,s,r)});var S=x(_[0]),E=x(_[1]),L=S<E?1:-1,C=1e-8*(E-S),I=L>0?Math.floor:Math.ceil,z=L>0?Math.ceil:Math.floor,D=L>0?Math.min:Math.max,P=L>0?Math.max:Math.min,O=I(S+C),R=z(E-C);c=T(S);var F=[[c]];for(i=O;i*L<R*L;i+=L)l=[],p=P(S,i),m=D(E,i+L),v=m-p,u=Math.max(0,Math.min(M-2,Math.floor(.5*(p+m)))),h=T(m),b&&(f=a(u,p-u),d=a(u,m-u),l.push([c[0]+f[0]/3*v,c[1]+f[1]/3*v]),l.push([h[0]-d[0]/3*v,h[1]-d[1]/3*v])),l.push(h),F.push(l),c=h;return F}},{}],887:[function(t,e,r){\"use strict\";var n=t(\"../../plots/font_attributes\"),i=t(\"../../components/color/attributes\");e.exports={color:{valType:\"color\",editType:\"calc\"},smoothing:{valType:\"number\",dflt:1,min:0,max:1.3,editType:\"calc\"},title:{valType:\"string\",editType:\"calc\"},titlefont:n({editType:\"calc\"}),titleoffset:{valType:\"number\",dflt:10,editType:\"calc\"},type:{valType:\"enumerated\",values:[\"-\",\"linear\",\"date\",\"category\"],dflt:\"-\",editType:\"calc\"},autorange:{valType:\"enumerated\",values:[!0,!1,\"reversed\"],dflt:!0,editType:\"calc\"},rangemode:{valType:\"enumerated\",values:[\"normal\",\"tozero\",\"nonnegative\"],dflt:\"normal\",editType:\"calc\"},range:{valType:\"info_array\",editType:\"calc\",items:[{valType:\"any\",editType:\"calc\"},{valType:\"any\",editType:\"calc\"}]},fixedrange:{valType:\"boolean\",dflt:!1,editType:\"calc\"},cheatertype:{valType:\"enumerated\",values:[\"index\",\"value\"],dflt:\"value\",editType:\"calc\"},tickmode:{valType:\"enumerated\",values:[\"linear\",\"array\"],dflt:\"array\",editType:\"calc\"},nticks:{valType:\"integer\",min:0,dflt:0,editType:\"calc\"},tickvals:{valType:\"data_array\",editType:\"calc\"},ticktext:{valType:\"data_array\",editType:\"calc\"},showticklabels:{valType:\"enumerated\",values:[\"start\",\"end\",\"both\",\"none\"],dflt:\"start\",editType:\"calc\"},tickfont:n({editType:\"calc\"}),tickangle:{valType:\"angle\",dflt:\"auto\",editType:\"calc\"},tickprefix:{valType:\"string\",dflt:\"\",editType:\"calc\"},showtickprefix:{valType:\"enumerated\",values:[\"all\",\"first\",\"last\",\"none\"],dflt:\"all\",editType:\"calc\"},ticksuffix:{valType:\"string\",dflt:\"\",editType:\"calc\"},showticksuffix:{valType:\"enumerated\",values:[\"all\",\"first\",\"last\",\"none\"],dflt:\"all\",editType:\"calc\"},showexponent:{valType:\"enumerated\",values:[\"all\",\"first\",\"last\",\"none\"],dflt:\"all\",editType:\"calc\"},exponentformat:{valType:\"enumerated\",values:[\"none\",\"e\",\"E\",\"power\",\"SI\",\"B\"],dflt:\"B\",editType:\"calc\"},separatethousands:{valType:\"boolean\",dflt:!1,editType:\"calc\"},tickformat:{valType:\"string\",dflt:\"\",editType:\"calc\"},categoryorder:{valType:\"enumerated\",values:[\"trace\",\"category ascending\",\"category descending\",\"array\"],dflt:\"trace\",editType:\"calc\"},categoryarray:{valType:\"data_array\",editType:\"calc\"},labelpadding:{valType:\"integer\",dflt:10,editType:\"calc\"},labelprefix:{valType:\"string\",editType:\"calc\"},labelsuffix:{valType:\"string\",dflt:\"\",editType:\"calc\"},showline:{valType:\"boolean\",dflt:!1,editType:\"calc\"},linecolor:{valType:\"color\",dflt:i.defaultLine,editType:\"calc\"},linewidth:{valType:\"number\",min:0,dflt:1,editType:\"calc\"},gridcolor:{valType:\"color\",editType:\"calc\"},gridwidth:{valType:\"number\",min:0,dflt:1,editType:\"calc\"},showgrid:{valType:\"boolean\",dflt:!0,editType:\"calc\"},minorgridcount:{valType:\"integer\",min:0,dflt:0,editType:\"calc\"},minorgridwidth:{valType:\"number\",min:0,dflt:1,editType:\"calc\"},minorgridcolor:{valType:\"color\",dflt:i.lightLine,editType:\"calc\"},startline:{valType:\"boolean\",editType:\"calc\"},startlinecolor:{valType:\"color\",editType:\"calc\"},startlinewidth:{valType:\"number\",dflt:1,editType:\"calc\"},endline:{valType:\"boolean\",editType:\"calc\"},endlinewidth:{valType:\"number\",dflt:1,editType:\"calc\"},endlinecolor:{valType:\"color\",editType:\"calc\"},tick0:{valType:\"number\",min:0,dflt:0,editType:\"calc\"},dtick:{valType:\"number\",min:0,dflt:1,editType:\"calc\"},arraytick0:{valType:\"integer\",min:0,dflt:0,editType:\"calc\"},arraydtick:{valType:\"integer\",min:1,dflt:1,editType:\"calc\"},editType:\"calc\"}},{\"../../components/color/attributes\":603,\"../../plots/font_attributes\":796}],888:[function(t,e,r){\"use strict\";function n(t,e){if(\"-\"===t.type){var r=t._id,n=r.charAt(0),i=n+\"calendar\",a=t[i];t.type=d(e,a)}}var i=t(\"./attributes\"),a=t(\"../../components/color\").addOpacity,o=t(\"../../registry\"),s=t(\"../../lib\"),l=t(\"../../plots/cartesian/tick_value_defaults\"),u=t(\"../../plots/cartesian/tick_label_defaults\"),c=t(\"../../plots/cartesian/category_order_defaults\"),h=t(\"../../plots/cartesian/set_convert\"),f=t(\"../../plots/cartesian/ordered_categories\"),d=t(\"../../plots/cartesian/axis_autotype\");e.exports=function(t,e,r){function d(r,n){return s.coerce(t,e,g,r,n)}function p(r,n){return s.coerce2(t,e,g,r,n)}var m=r.letter,v=r.font||{},g=i[m+\"axis\"];r.noHover=!0,r.name&&(e._name=r.name,e._id=r.name);var y=d(\"type\");if(\"-\"===y&&(r.data&&n(e,r.data),\"-\"===e.type?e.type=\"linear\":y=t.type=e.type),d(\"smoothing\"),d(\"cheatertype\"),d(\"showticklabels\"),d(\"labelprefix\",m+\" = \"),d(\"labelsuffix\"),d(\"showtickprefix\"),d(\"showticksuffix\"),d(\"separatethousands\"),d(\"tickformat\"),d(\"exponentformat\"),d(\"showexponent\"),d(\"categoryorder\"),d(\"tickmode\"),d(\"tickvals\"),d(\"ticktext\"),d(\"tick0\"),d(\"dtick\"),\"array\"===e.tickmode&&(d(\"arraytick0\"),d(\"arraydtick\")),d(\"labelpadding\"),e._hovertitle=m,\"date\"===y){o.getComponentMethod(\"calendars\",\"handleDefaults\")(t,e,\"calendar\",r.calendar)}h(e,r.fullLayout);var b=d(\"color\",r.dfltColor),x=b===t.color?b:v.color;d(\"title\"),s.coerceFont(d,\"titlefont\",{family:v.family,size:Math.round(1.2*v.size),color:x}),d(\"titleoffset\"),d(\"tickangle\"),d(\"autorange\",!e.isValidRange(t.range))&&d(\"rangemode\"),d(\"range\"),e.cleanRange(),d(\"fixedrange\"),l(t,e,d,y),u(t,e,d,y,r),c(t,e,d);var _=p(\"gridcolor\",a(b,.3)),w=p(\"gridwidth\"),M=d(\"showgrid\");M||(delete e.gridcolor,delete e.gridwidth);var k=p(\"startlinecolor\",b),A=p(\"startlinewidth\",w);d(\"startline\",e.showgrid||!!k||!!A)||(delete e.startlinecolor,delete e.startlinewidth);var T=p(\"endlinecolor\",b),S=p(\"endlinewidth\",w);return d(\"endline\",e.showgrid||!!T||!!S)||(delete e.endlinecolor,delete e.endlinewidth),M?(d(\"minorgridcount\"),d(\"minorgridwidth\",w),d(\"minorgridcolor\",a(_,.06)),e.minorgridcount||(delete e.minorgridwidth,delete e.minorgridcolor)):(delete e.gridcolor,delete e.gridWidth),e._separators=r.fullLayout.separators,e._initialCategories=\"category\"===y?f(m,e.categoryorder,e.categoryarray,r.data):[],\"none\"===e.showticklabels&&(delete e.tickfont,delete e.tickangle,delete e.showexponent,delete e.exponentformat,delete e.tickformat,delete e.showticksuffix,delete e.showtickprefix),e.showticksuffix||delete e.ticksuffix,e.showtickprefix||delete e.tickprefix,d(\"tickmode\"),(!e.title||e.title&&0===e.title.length)&&(delete e.titlefont,delete e.titleoffset),e}},{\"../../components/color\":604,\"../../lib\":728,\"../../plots/cartesian/axis_autotype\":773,\"../../plots/cartesian/category_order_defaults\":776,\"../../plots/cartesian/ordered_categories\":785,\"../../plots/cartesian/set_convert\":789,\"../../plots/cartesian/tick_label_defaults\":790,\"../../plots/cartesian/tick_value_defaults\":792,\"../../registry\":846,\"./attributes\":885}],889:[function(t,e,r){\"use strict\";var n=t(\"../../plots/cartesian/axes\"),i=t(\"./cheater_basis\"),a=t(\"./array_minmax\"),o=t(\"./map_2d_array\"),s=t(\"./calc_gridlines\"),l=t(\"./calc_labels\"),u=t(\"./calc_clippath\"),c=t(\"../heatmap/clean_2d_array\"),h=t(\"./smooth_fill_2d_array\");e.exports=function(t,e){var r,f=n.getFromId(t,e.xaxis||\"x\"),d=n.getFromId(t,e.yaxis||\"y\"),p=e.aaxis,m=e.baxis,v=e._a=e.a,g=e._b=e.b,y={},b=e.y;if(e._cheater){var x=\"index\"===p.cheatertype?v.length:v,_=\"index\"===m.cheatertype?g.length:g;e.x=r=i(x,_,e.cheaterslope)}else r=e.x;e._x=e.x=r=c(r),e._y=e.y=b=c(b),h(r,v,g),h(b,v,g),e.setScale(),y.xp=e.xp=o(e.xp,r,f.c2p),y.yp=e.yp=o(e.yp,b,d.c2p);var w=a(r),M=a(b),k=.5*(w[1]-w[0]),A=.5*(w[1]+w[0]),T=.5*(M[1]-M[0]),S=.5*(M[1]+M[0]);return w=[A-1.3*k,A+1.3*k],M=[S-1.3*T,S+1.3*T],n.expand(f,w,{padded:!0}),n.expand(d,M,{padded:!0}),s(e,y,\"a\",\"b\"),s(e,y,\"b\",\"a\"),l(e,p),l(e,m),y.clipsegments=u(e.xctrl,e.yctrl,p,m),y.x=r,y.y=b,y.a=v,y.b=g,[y]}},{\"../../plots/cartesian/axes\":772,\"../heatmap/clean_2d_array\":950,\"./array_minmax\":884,\"./calc_clippath\":890,\"./calc_gridlines\":891,\"./calc_labels\":892,\"./cheater_basis\":894,\"./map_2d_array\":906,\"./smooth_fill_2d_array\":910}],890:[function(t,e,r){\"use strict\";e.exports=function(t,e,r,n){var i,a,o,s=[],l=!!r.smoothing,u=!!n.smoothing,c=t[0].length-1,h=t.length-1;for(i=0,a=[],o=[];i<=c;i++)a[i]=t[0][i],o[i]=e[0][i];for(s.push({x:a,y:o,bicubic:l}),i=0,a=[],o=[];i<=h;i++)a[i]=t[i][c],o[i]=e[i][c];for(s.push({x:a,y:o,bicubic:u}),i=c,a=[],o=[];i>=0;i--)a[c-i]=t[h][i],o[c-i]=e[h][i];for(s.push({x:a,y:o,bicubic:l}),i=h,a=[],o=[];i>=0;i--)a[h-i]=t[i][0],o[h-i]=e[i][0];return s.push({x:a,y:o,bicubic:u}),s}},{}],891:[function(t,e,r){\"use strict\";var n=t(\"../../plots/cartesian/axes\"),i=t(\"../../lib/extend\").extendFlat;e.exports=function(t,e,r,a){function o(e){var n,i,o,s,l,u,c,h,f,d,p,v,g=[],y=[],b={};if(\"b\"===r)for(i=t.b2j(e),o=Math.floor(Math.max(0,Math.min(P-2,i))),s=i-o,b.length=P,b.crossLength=D,b.xy=function(e){return t.evalxy([],e,i)},b.dxy=function(e,r){return t.dxydi([],e,o,r,s)},n=0;n<D;n++)u=Math.min(D-2,n),c=n-u,h=t.evalxy([],n,i),E.smoothing&&n>0&&(f=t.dxydi([],n-1,o,0,s),g.push(l[0]+f[0]/3),y.push(l[1]+f[1]/3),d=t.dxydi([],n-1,o,1,s),g.push(h[0]-d[0]/3),y.push(h[1]-d[1]/3)),g.push(h[0]),y.push(h[1]),l=h;else for(n=t.a2i(e),u=Math.floor(Math.max(0,Math.min(D-2,n))),c=n-u,b.length=D,b.crossLength=P,b.xy=function(e){return t.evalxy([],n,e)},b.dxy=function(e,r){return t.dxydj([],u,e,c,r)},i=0;i<P;i++)o=Math.min(P-2,i),s=i-o,h=t.evalxy([],n,i),E.smoothing&&i>0&&(p=t.dxydj([],u,i-1,c,0),g.push(l[0]+p[0]/3),y.push(l[1]+p[1]/3),v=t.dxydj([],u,i-1,c,1),g.push(h[0]-v[0]/3),y.push(h[1]-v[1]/3)),g.push(h[0]),y.push(h[1]),l=h;return b.axisLetter=r,b.axis=M,b.crossAxis=E,b.value=e,b.constvar=a,b.index=m,b.x=g,b.y=y,b.smoothing=E.smoothing,b}function s(e){var n,i,o,s,l,u=[],c=[],h={};if(h.length=w.length,h.crossLength=S.length,\"b\"===r)for(o=Math.max(0,Math.min(P-2,e)),l=Math.min(1,Math.max(0,e-o)),h.xy=function(r){return t.evalxy([],r,e)},h.dxy=function(e,r){return t.dxydi([],e,o,r,l)},n=0;n<I;n++)u[n]=L[e*O][n],c[n]=C[e*O][n];else for(i=Math.max(0,Math.min(D-2,e)),s=Math.min(1,Math.max(0,e-i)),h.xy=function(r){return t.evalxy([],e,r)},h.dxy=function(e,r){return t.dxydj([],i,e,s,r)},n=0;n<z;n++)u[n]=L[n][e*O],c[n]=C[n][e*O];return h.axisLetter=r,h.axis=M,h.crossAxis=E,h.value=w[e],h.constvar=a,h.index=e,h.x=u,h.y=c,h.smoothing=E.smoothing,h}var l,u,c,h,f,d,p,m,v,g,y,b,x,_,w=t[r],M=t[r+\"axis\"],k=M._gridlines=[],A=M._minorgridlines=[],T=M._boundarylines=[],S=t[a],E=t[a+\"axis\"];if(\"array\"===M.tickmode)for(M.tickvals=[],l=0;l<w.length;l++)M.tickvals.push(w[l]);var L=t.xctrl,C=t.yctrl,I=L[0].length,z=L.length,D=t.a.length,P=t.b.length;n.calcTicks(M);var O=M.smoothing?3:1;if(\"array\"===M.tickmode){for(h=5e-15,f=[Math.floor((w.length-1-M.arraytick0)/M.arraydtick*(1+h)),Math.ceil(-M.arraytick0/M.arraydtick/(1+h))].sort(function(t,e){return t-e}),d=f[0]-1,p=f[1]+1,m=d;m<p;m++)(u=M.arraytick0+M.arraydtick*m)<0||u>w.length-1||k.push(i(s(u),{color:M.gridcolor,width:M.gridwidth}));for(m=d;m<p;m++)if(c=M.arraytick0+M.arraydtick*m,y=Math.min(c+M.arraydtick,w.length-1),!(c<0||c>w.length-1||y<0||y>w.length-1))for(b=w[c],x=w[y],l=0;l<M.minorgridcount;l++)(_=y-c)<=0||(g=b+(x-b)*(l+1)/(M.minorgridcount+1)*(M.arraydtick/_))<w[0]||g>w[w.length-1]||A.push(i(o(g),{color:M.minorgridcolor,width:M.minorgridwidth}));M.startline&&T.push(i(s(0),{color:M.startlinecolor,width:M.startlinewidth})),M.endline&&T.push(i(s(w.length-1),{color:M.endlinecolor,width:M.endlinewidth}))}else{for(h=5e-15,f=[Math.floor((w[w.length-1]-M.tick0)/M.dtick*(1+h)),Math.ceil((w[0]-M.tick0)/M.dtick/(1+h))].sort(function(t,e){return t-e}),d=f[0],p=f[1],m=d;m<=p;m++)v=M.tick0+M.dtick*m,k.push(i(o(v),{color:M.gridcolor,width:M.gridwidth}));for(m=d-1;m<p+1;m++)for(v=M.tick0+M.dtick*m,l=0;l<M.minorgridcount;l++)(g=v+M.dtick*(l+1)/(M.minorgridcount+1))<w[0]||g>w[w.length-1]||A.push(i(o(g),{color:M.minorgridcolor,width:M.minorgridwidth}));M.startline&&T.push(i(o(w[0]),{color:M.startlinecolor,width:M.startlinewidth})),M.endline&&T.push(i(o(w[w.length-1]),{color:M.endlinecolor,width:M.endlinewidth}))}}},{\"../../lib/extend\":717,\"../../plots/cartesian/axes\":772}],892:[function(t,e,r){\"use strict\";var n=t(\"../../plots/cartesian/axes\"),i=t(\"../../lib/extend\").extendFlat;e.exports=function(t,e){var r,a,o,s=e._labels=[],l=e._gridlines;for(r=0;r<l.length;r++)o=l[r],-1!==[\"start\",\"both\"].indexOf(e.showticklabels)&&(a=n.tickText(e,o.value),i(a,{prefix:void 0,suffix:void 0,endAnchor:!0,xy:o.xy(0),dxy:o.dxy(0,0),axis:o.axis,length:o.crossAxis.length,font:o.axis.tickfont,isFirst:0===r,isLast:r===l.length-1}),s.push(a)),-1!==[\"end\",\"both\"].indexOf(e.showticklabels)&&(a=n.tickText(e,o.value),i(a,{endAnchor:!1,xy:o.xy(o.crossLength-1),dxy:o.dxy(o.crossLength-2,1),axis:o.axis,length:o.crossAxis.length,font:o.axis.tickfont,isFirst:0===r,isLast:r===l.length-1}),s.push(a))}},{\"../../lib/extend\":717,\"../../plots/cartesian/axes\":772}],893:[function(t,e,r){\"use strict\";e.exports=function(t,e,r,n){var i=t[0]-e[0],a=t[1]-e[1],o=r[0]-e[0],s=r[1]-e[1],l=Math.pow(i*i+a*a,.25),u=Math.pow(o*o+s*s,.25),c=(u*u*i-l*l*o)*n,h=(u*u*a-l*l*s)*n,f=u*(l+u)*3,d=l*(l+u)*3;return[[e[0]+(f&&c/f),e[1]+(f&&h/f)],[e[0]-(d&&c/d),e[1]-(d&&h/d)]]}},{}],894:[function(t,e,r){\"use strict\";var n=t(\"../../lib\").isArray;e.exports=function(t,e,r){var i,a,o,s,l,u,c=[],h=n(t)?t.length:t,f=n(e)?e.length:e,d=n(t)?t:null,p=n(e)?e:null;d&&(o=(d.length-1)/(d[d.length-1]-d[0])/(h-1)),p&&(s=(p.length-1)/(p[p.length-1]-p[0])/(f-1));var m,v=1/0,g=-1/0;for(a=0;a<f;a++)for(c[a]=[],u=p?(p[a]-p[0])*s:a/(f-1),i=0;i<h;i++)l=d?(d[i]-d[0])*o:i/(h-1),m=l-u*r,v=Math.min(m,v),g=Math.max(m,g),c[a][i]=m;var y=1/(g-v),b=-v*y;for(a=0;a<f;a++)for(i=0;i<h;i++)c[a][i]=y*c[a][i]+b;return c}},{\"../../lib\":728}],895:[function(t,e,r){\"use strict\";function n(t,e,r){var n=-.5*r[0]+1.5*e[0],i=-.5*r[1]+1.5*e[1];return[(2*n+t[0])/3,(2*i+t[1])/3]}var i=t(\"./catmull_rom\"),a=t(\"../../lib\").ensureArray;e.exports=function(t,e,r,o,s,l){var u,c,h,f,d,p,m,v,g,y,b=r[0].length,x=r.length,_=s?3*b-2:b,w=l?3*x-2:x;for(t=a(t,w),e=a(e,w),h=0;h<w;h++)t[h]=a(t[h],_),e[h]=a(e[h],_);for(c=0,f=0;c<x;c++,f+=l?3:1)for(d=t[f],p=e[f],m=r[c],v=o[c],u=0,h=0;u<b;u++,h+=s?3:1)d[h]=m[u],p[h]=v[u];if(s)for(c=0,f=0;c<x;c++,f+=l?3:1){for(u=1,h=3;u<b-1;u++,h+=3)g=i([r[c][u-1],o[c][u-1]],[r[c][u],o[c][u]],[r[c][u+1],o[c][u+1]],s),t[f][h-1]=g[0][0],e[f][h-1]=g[0][1],t[f][h+1]=g[1][0],e[f][h+1]=g[1][1];y=n([t[f][0],e[f][0]],[t[f][2],e[f][2]],[t[f][3],e[f][3]]),t[f][1]=y[0],e[f][1]=y[1],y=n([t[f][_-1],e[f][_-1]],[t[f][_-3],e[f][_-3]],[t[f][_-4],e[f][_-4]]),t[f][_-2]=y[0],e[f][_-2]=y[1]}if(l)for(h=0;h<_;h++){for(f=3;f<w-3;f+=3)g=i([t[f-3][h],e[f-3][h]],[t[f][h],e[f][h]],[t[f+3][h],e[f+3][h]],l),t[f-1][h]=g[0][0],e[f-1][h]=g[0][1],t[f+1][h]=g[1][0],e[f+1][h]=g[1][1];y=n([t[0][h],e[0][h]],[t[2][h],e[2][h]],[t[3][h],e[3][h]]),t[1][h]=y[0],e[1][h]=y[1],y=n([t[w-1][h],e[w-1][h]],[t[w-3][h],e[w-3][h]],[t[w-4][h],e[w-4][h]]),t[w-2][h]=y[0],e[w-2][h]=y[1]}if(s&&l)for(f=1;f<w;f+=(f+1)%3==0?2:1){for(h=3;h<_-3;h+=3)g=i([t[f][h-3],e[f][h-3]],[t[f][h],e[f][h]],[t[f][h+3],e[f][h+3]],s),t[f][h-1]=.5*(t[f][h-1]+g[0][0]),e[f][h-1]=.5*(e[f][h-1]+g[0][1]),t[f][h+1]=.5*(t[f][h+1]+g[1][0]),e[f][h+1]=.5*(e[f][h+1]+g[1][1]);y=n([t[f][0],e[f][0]],[t[f][2],e[f][2]],[t[f][3],e[f][3]]),t[f][1]=.5*(t[f][1]+y[0]),e[f][1]=.5*(e[f][1]+y[1]),y=n([t[f][_-1],e[f][_-1]],[t[f][_-3],e[f][_-3]],[t[f][_-4],e[f][_-4]]),t[f][_-2]=.5*(t[f][_-2]+y[0]),e[f][_-2]=.5*(e[f][_-2]+y[1])}return[t,e]}},{\"../../lib\":728,\"./catmull_rom\":893}],896:[function(t,e,r){\"use strict\";e.exports={RELATIVE_CULL_TOLERANCE:1e-6}},{}],897:[function(t,e,r){\"use strict\";e.exports=function(t,e,r){return e&&r?function(e,r,n,i,a){e||(e=[]);var o,s,l,u,c,h;r*=3,n*=3;var f=i*i,d=1-i,p=d*d,m=d*i*2,v=-3*p,g=3*(p-m),y=3*(m-f),b=3*f,x=a*a,_=x*a,w=1-a,M=w*w,k=M*w;for(h=0;h<t.length;h++)c=t[h],o=v*c[n][r]+g*c[n][r+1]+y*c[n][r+2]+b*c[n][r+3],s=v*c[n+1][r]+g*c[n+1][r+1]+y*c[n+1][r+2]+b*c[n+1][r+3],l=v*c[n+2][r]+g*c[n+2][r+1]+y*c[n+2][r+2]+b*c[n+2][r+3],u=v*c[n+3][r]+g*c[n+3][r+1]+y*c[n+3][r+2]+b*c[n+3][r+3],e[h]=k*o+3*(M*a*s+w*x*l)+_*u;return e}:e?function(e,r,n,i,a){e||(e=[]);var o,s,l,u;r*=3;var c=i*i,h=1-i,f=h*h,d=h*i*2,p=-3*f,m=3*(f-d),v=3*(d-c),g=3*c,y=1-a;for(l=0;l<t.length;l++)u=t[l],o=p*u[n][r]+m*u[n][r+1]+v*u[n][r+2]+g*u[n][r+3],s=p*u[n+1][r]+m*u[n+1][r+1]+v*u[n+1][r+2]+g*u[n+1][r+3],e[l]=y*o+a*s;return e}:r?function(e,r,n,i,a){e||(e=[]);var o,s,l,u,c,h;n*=3;var f=a*a,d=f*a,p=1-a,m=p*p,v=m*p;for(c=0;c<t.length;c++)h=t[c],o=h[n][r+1]-h[n][r],s=h[n+1][r+1]-h[n+1][r],l=h[n+2][r+1]-h[n+2][r],u=h[n+3][r+1]-h[n+3][r],e[c]=v*o+3*(m*a*s+p*f*l)+d*u;return e}:function(e,r,n,i,a){e||(e=[]);var o,s,l,u,c=1-a;for(l=0;l<t.length;l++)u=t[l],o=u[n][r+1]-u[n][r],s=u[n+1][r+1]-u[n+1][r],e[l]=c*o+a*s;return e}}},{}],898:[function(t,e,r){\"use strict\";e.exports=function(t,e,r){return e&&r?function(e,r,n,i,a){e||(e=[]);var o,s,l,u,c,h;r*=3,n*=3;var f=i*i,d=f*i,p=1-i,m=p*p,v=m*p,g=a*a,y=1-a,b=y*y,x=y*a*2,_=-3*b,w=3*(b-x),M=3*(x-g),k=3*g;for(h=0;h<t.length;h++)c=t[h],o=_*c[n][r]+w*c[n+1][r]+M*c[n+2][r]+k*c[n+3][r],s=_*c[n][r+1]+w*c[n+1][r+1]+M*c[n+2][r+1]+k*c[n+3][r+1],l=_*c[n][r+2]+w*c[n+1][r+2]+M*c[n+2][r+2]+k*c[n+3][r+2],u=_*c[n][r+3]+w*c[n+1][r+3]+M*c[n+2][r+3]+k*c[n+3][r+3],e[h]=v*o+3*(m*i*s+p*f*l)+d*u;return e}:e?function(e,r,n,i,a){e||(e=[]);var o,s,l,u,c,h;r*=3;var f=a*a,d=f*a,p=1-a,m=p*p,v=m*p;for(c=0;c<t.length;c++)h=t[c],o=h[n+1][r]-h[n][r],s=h[n+1][r+1]-h[n][r+1],l=h[n+1][r+2]-h[n][r+2],u=h[n+1][r+3]-h[n][r+3],e[c]=v*o+3*(m*a*s+p*f*l)+d*u;return e}:r?function(e,r,n,i,a){e||(e=[]);var o,s,l,u;n*=3;var c=1-i,h=a*a,f=1-a,d=f*f,p=f*a*2,m=-3*d,v=3*(d-p),g=3*(p-h),y=3*h;for(l=0;l<t.length;l++)u=t[l],o=m*u[n][r]+v*u[n+1][r]+g*u[n+2][r]+y*u[n+3][r],s=m*u[n][r+1]+v*u[n+1][r+1]+g*u[n+2][r+1]+y*u[n+3][r+1],e[l]=c*o+i*s;return e}:function(e,r,n,i,a){e||(e=[]);var o,s,l,u,c=1-i;for(l=0;l<t.length;l++)u=t[l],o=u[n+1][r]-u[n][r],s=u[n+1][r+1]-u[n][r+1],e[l]=c*o+i*s;return e}}},{}],899:[function(t,e,r){\"use strict\";e.exports=function(t,e,r,n,i){var a=e-2,o=r-2;return n&&i?function(e,r,n){e||(e=[]);var i,s,l,u,c,h,f=Math.max(0,Math.min(Math.floor(r),a)),d=Math.max(0,Math.min(Math.floor(n),o)),p=Math.max(0,Math.min(1,r-f)),m=Math.max(0,Math.min(1,n-d));f*=3,d*=3;var v=p*p,g=v*p,y=1-p,b=y*y,x=b*y,_=m*m,w=_*m,M=1-m,k=M*M,A=k*M;for(h=0;h<t.length;h++)c=t[h],\n", "i=x*c[d][f]+3*(b*p*c[d][f+1]+y*v*c[d][f+2])+g*c[d][f+3],s=x*c[d+1][f]+3*(b*p*c[d+1][f+1]+y*v*c[d+1][f+2])+g*c[d+1][f+3],l=x*c[d+2][f]+3*(b*p*c[d+2][f+1]+y*v*c[d+2][f+2])+g*c[d+2][f+3],u=x*c[d+3][f]+3*(b*p*c[d+3][f+1]+y*v*c[d+3][f+2])+g*c[d+3][f+3],e[h]=A*i+3*(k*m*s+M*_*l)+w*u;return e}:n?function(e,r,n){e||(e=[]);var i,s,l,u,c,h,f=Math.max(0,Math.min(Math.floor(r),a)),d=Math.max(0,Math.min(Math.floor(n),o)),p=Math.max(0,Math.min(1,r-f)),m=Math.max(0,Math.min(1,n-d));f*=3;var v=p*p,g=v*p,y=1-p,b=y*y,x=b*y,_=1-m;for(c=0;c<t.length;c++)h=t[c],i=_*h[d][f]+m*h[d+1][f],s=_*h[d][f+1]+m*h[d+1][f+1],l=_*h[d][f+2]+m*h[d+1][f+1],u=_*h[d][f+3]+m*h[d+1][f+1],e[c]=x*i+3*(b*p*s+y*v*l)+g*u;return e}:i?function(e,r,n){e||(e=[]);var i,s,l,u,c,h,f=Math.max(0,Math.min(Math.floor(r),a)),d=Math.max(0,Math.min(Math.floor(n),o)),p=Math.max(0,Math.min(1,r-f)),m=Math.max(0,Math.min(1,n-d));d*=3;var v=m*m,g=v*m,y=1-m,b=y*y,x=b*y,_=1-p;for(c=0;c<t.length;c++)h=t[c],i=_*h[d][f]+p*h[d][f+1],s=_*h[d+1][f]+p*h[d+1][f+1],l=_*h[d+2][f]+p*h[d+2][f+1],u=_*h[d+3][f]+p*h[d+3][f+1],e[c]=x*i+3*(b*m*s+y*v*l)+g*u;return e}:function(e,r,n){e||(e=[]);var i,s,l,u,c=Math.max(0,Math.min(Math.floor(r),a)),h=Math.max(0,Math.min(Math.floor(n),o)),f=Math.max(0,Math.min(1,r-c)),d=Math.max(0,Math.min(1,n-h)),p=1-d,m=1-f;for(l=0;l<t.length;l++)u=t[l],i=m*u[h][c]+f*u[h][c+1],s=m*u[h+1][c]+f*u[h+1][c+1],e[l]=p*i+d*s;return e}}},{}],900:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"./xy_defaults\"),a=t(\"./ab_defaults\"),o=t(\"./set_convert\"),s=t(\"./attributes\"),l=t(\"../../components/color/attributes\");e.exports=function(t,e,r,u){function c(r,i){return n.coerce(t,e,s,r,i)}e._clipPathId=\"clip\"+e.uid+\"carpet\";var h=c(\"color\",l.defaultLine);if(n.coerceFont(c,\"font\"),c(\"carpet\"),a(t,e,u,c,h),!e.a||!e.b)return void(e.visible=!1);e.a.length<3&&(e.aaxis.smoothing=0),e.b.length<3&&(e.baxis.smoothing=0);var f=i(t,e,c);o(e),e._cheater&&c(\"cheaterslope\"),f||(e.visible=!1)}},{\"../../components/color/attributes\":603,\"../../lib\":728,\"./ab_defaults\":883,\"./attributes\":885,\"./set_convert\":909,\"./xy_defaults\":911}],901:[function(t,e,r){\"use strict\";e.exports=function(t){return Array.isArray(t[0])}},{}],902:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.supplyDefaults=t(\"./defaults\"),n.plot=t(\"./plot\"),n.calc=t(\"./calc\"),n.animatable=!0,n.moduleType=\"trace\",n.name=\"carpet\",n.basePlotModule=t(\"../../plots/cartesian\"),n.categories=[\"cartesian\",\"carpet\",\"carpetAxis\",\"notLegendIsolatable\"],n.meta={},e.exports=n},{\"../../plots/cartesian\":782,\"./attributes\":885,\"./calc\":889,\"./defaults\":900,\"./plot\":908}],903:[function(t,e,r){\"use strict\";e.exports=function(t,e){for(var r,n=t._fullData.length,i=0;i<n;i++){var a=t._fullData[i];if(a.index!==e.index&&(\"carpet\"===a.type&&(r||(r=a),a.carpet===e.carpet)))return a}return r}},{}],904:[function(t,e,r){\"use strict\";e.exports=function(t,e,r){if(0===t.length)return\"\";var n,i=[],a=r?3:1;for(n=0;n<t.length;n+=a)i.push(t[n]+\",\"+e[n]),r&&n<t.length-a&&(i.push(\"C\"),i.push([t[n+1]+\",\"+e[n+1],t[n+2]+\",\"+e[n+2]+\" \"].join(\" \")));return i.join(r?\"\":\"L\")}},{}],905:[function(t,e,r){\"use strict\";e.exports=function(t,e,r){var n;for(Array.isArray(t)?t.length>e.length&&(t=t.slice(0,e.length)):t=[],n=0;n<e.length;n++)t[n]=r(e[n]);return t}},{}],906:[function(t,e,r){\"use strict\";e.exports=function(t,e,r){var n,i;for(Array.isArray(t)?t.length>e.length&&(t=t.slice(0,e.length)):t=[],n=0;n<e.length;n++)for(Array.isArray(t[n])?t[n].length>e.length&&(t[n]=t[n].slice(0,e.length)):t[n]=[],i=0;i<e[0].length;i++)t[n][i]=r(e[n][i]);return t}},{}],907:[function(t,e,r){\"use strict\";e.exports=function(t,e,r,n,i,a){var o=i[0]*t.dpdx(e),s=i[1]*t.dpdy(r),l=1,u=1;if(a){var c=Math.sqrt(i[0]*i[0]+i[1]*i[1]),h=Math.sqrt(a[0]*a[0]+a[1]*a[1]),f=(i[0]*a[0]+i[1]*a[1])/c/h;u=Math.max(0,f)}var d=180*Math.atan2(s,o)/Math.PI;return d<-90?(d+=180,l=-l):d>90&&(d-=180,l=-l),{angle:d,flip:l,p:t.c2p(n,e,r),offsetMultplier:u}}},{}],908:[function(t,e,r){\"use strict\";function n(t,e,r){var n=t.selectAll(e+\".\"+r).data([0]);return n.enter().append(e).classed(r,!0),n}function i(t,e,r){var i=r[0],u=r[0].trace,c=e.xaxis,h=e.yaxis,f=u.aaxis,d=u.baxis,p=t._fullLayout,m=e.plot.selectAll(\".carpetlayer\"),v=p._clips,g=n(m,\"g\",\"carpet\"+u.uid).classed(\"trace\",!0),y=n(g,\"g\",\"minorlayer\"),b=n(g,\"g\",\"majorlayer\"),x=n(g,\"g\",\"boundarylayer\"),_=n(g,\"g\",\"labellayer\");g.style(\"opacity\",u.opacity),o(c,h,b,f,\"a\",f._gridlines),o(c,h,b,d,\"b\",d._gridlines),o(c,h,y,f,\"a\",f._minorgridlines),o(c,h,y,d,\"b\",d._minorgridlines),o(c,h,x,f,\"a-boundary\",f._boundarylines),o(c,h,x,d,\"b-boundary\",d._boundarylines),l(t,_,u,i,c,h,s(t,c,h,u,i,_,f._labels,\"a-label\"),s(t,c,h,u,i,_,d._labels,\"b-label\")),a(u,i,v,c,h)}function a(t,e,r,i,a){var o,s,l,u,c=r.select(\"#\"+t._clipPathId);c.size()||(c=r.append(\"clipPath\").classed(\"carpetclip\",!0));var h=n(c,\"path\",\"carpetboundary\"),p=e.clipsegments,m=[];for(u=0;u<p.length;u++)o=p[u],s=f([],o.x,i.c2p),l=f([],o.y,a.c2p),m.push(d(s,l,o.bicubic));var v=\"M\"+m.join(\"L\")+\"Z\";c.attr(\"id\",t._clipPathId),h.attr(\"d\",v)}function o(t,e,r,n,i,a){var o=\"const-\"+i+\"-lines\",s=r.selectAll(\".\"+o).data(a);s.enter().append(\"path\").classed(o,!0).style(\"vector-effect\",\"non-scaling-stroke\"),s.each(function(r){var n=r,i=n.x,a=n.y,o=f([],i,t.c2p),s=f([],a,e.c2p),l=\"M\"+d(o,s,n.smoothing);c.select(this).attr(\"d\",l).style(\"stroke-width\",n.width).style(\"stroke\",n.color).style(\"fill\",\"none\")}),s.exit().remove()}function s(t,e,r,n,i,a,o,s){var l=a.selectAll(\"text.\"+s).data(o);l.enter().append(\"text\").classed(s,!0);var u=0;return l.each(function(i){var a;if(\"auto\"===i.axis.tickangle)a=p(n,e,r,i.xy,i.dxy);else{var o=(i.axis.tickangle+180)*Math.PI/180;a=p(n,e,r,i.xy,[Math.cos(o),Math.sin(o)])}var s=(i.endAnchor?-1:1)*a.flip,l=c.select(this).attr({\"text-anchor\":s>0?\"start\":\"end\",\"data-notex\":1}).call(h.font,i.font).text(i.text).call(m.convertToTspans,t),f=h.bBox(this);l.attr(\"transform\",\"translate(\"+a.p[0]+\",\"+a.p[1]+\") rotate(\"+a.angle+\")translate(\"+i.axis.labelpadding*s+\",\"+.3*f.height+\")\"),u=Math.max(u,f.width+i.axis.labelpadding)}),l.exit().remove(),u}function l(t,e,r,n,i,a,o,s){var l,c,h,f;l=.5*(r.a[0]+r.a[r.a.length-1]),c=r.b[0],h=r.ab2xy(l,c,!0),f=r.dxyda_rough(l,c),u(t,e,r,n,h,f,r.aaxis,i,a,o,\"a-title\"),l=r.a[0],c=.5*(r.b[0]+r.b[r.b.length-1]),h=r.ab2xy(l,c,!0),f=r.dxydb_rough(l,c),u(t,e,r,n,h,f,r.baxis,i,a,s,\"b-title\")}function u(t,e,r,n,i,a,o,s,l,u,f){var d=[];o.title&&d.push(o.title);var v=e.selectAll(\"text.\"+f).data(d);v.enter().append(\"text\").classed(f,!0),v.each(function(){var e=p(r,s,l,i,a);-1===[\"start\",\"both\"].indexOf(o.showticklabels)&&(u=0),u+=o.titlefont.size+o.titleoffset,c.select(this).text(o.title||\"\").call(m.convertToTspans,t).attr(\"transform\",\"translate(\"+e.p[0]+\",\"+e.p[1]+\") rotate(\"+e.angle+\") translate(0,\"+u+\")\").classed(\"user-select-none\",!0).attr(\"text-anchor\",\"middle\").call(h.font,o.titlefont)}),v.exit().remove()}var c=t(\"d3\"),h=t(\"../../components/drawing\"),f=t(\"./map_1d_array\"),d=t(\"./makepath\"),p=t(\"./orient_text\"),m=t(\"../../lib/svg_text_utils\");e.exports=function(t,e,r){for(var n=0;n<r.length;n++)i(t,e,r[n])}},{\"../../components/drawing\":628,\"../../lib/svg_text_utils\":750,\"./makepath\":904,\"./map_1d_array\":905,\"./orient_text\":907,d3:122}],909:[function(t,e,r){\"use strict\";var n=t(\"./constants\"),i=t(\"../../lib/search\").findBin,a=t(\"./compute_control_points\"),o=t(\"./create_spline_evaluator\"),s=t(\"./create_i_derivative_evaluator\"),l=t(\"./create_j_derivative_evaluator\");e.exports=function(t){var e=t.a,r=t.b,u=t.a.length,c=t.b.length,h=t.aaxis,f=t.baxis,d=e[0],p=e[u-1],m=r[0],v=r[c-1],g=e[e.length-1]-e[0],y=r[r.length-1]-r[0],b=g*n.RELATIVE_CULL_TOLERANCE,x=y*n.RELATIVE_CULL_TOLERANCE;d-=b,p+=b,m-=x,v+=x,t.isVisible=function(t,e){return t>d&&t<p&&e>m&&e<v},t.isOccluded=function(t,e){return t<d||t>p||e<m||e>v},h.c2p=function(t){return t},f.c2p=function(t){return t},t.setScale=function(){var e=t.x,r=t.y,n=a(t.xctrl,t.yctrl,e,r,h.smoothing,f.smoothing);t.xctrl=n[0],t.yctrl=n[1],t.evalxy=o([t.xctrl,t.yctrl],u,c,h.smoothing,f.smoothing),t.dxydi=s([t.xctrl,t.yctrl],h.smoothing,f.smoothing),t.dxydj=l([t.xctrl,t.yctrl],h.smoothing,f.smoothing)},t.i2a=function(t){var r=Math.max(0,Math.floor(t[0]),u-2),n=t[0]-r;return(1-n)*e[r]+n*e[r+1]},t.j2b=function(t){var e=Math.max(0,Math.floor(t[1]),u-2),n=t[1]-e;return(1-n)*r[e]+n*r[e+1]},t.ij2ab=function(e){return[t.i2a(e[0]),t.j2b(e[1])]},t.a2i=function(t){var r=Math.max(0,Math.min(i(t,e),u-2)),n=e[r],a=e[r+1];return Math.max(0,Math.min(u-1,r+(t-n)/(a-n)))},t.b2j=function(t){var e=Math.max(0,Math.min(i(t,r),c-2)),n=r[e],a=r[e+1];return Math.max(0,Math.min(c-1,e+(t-n)/(a-n)))},t.ab2ij=function(e){return[t.a2i(e[0]),t.b2j(e[1])]},t.i2c=function(e,r){return t.evalxy([],e,r)},t.ab2xy=function(n,i,a){if(!a&&(n<e[0]||n>e[u-1]|i<r[0]||i>r[c-1]))return[!1,!1];var o=t.a2i(n),s=t.b2j(i),l=t.evalxy([],o,s);if(a){var h,f,d,p,m=0,v=0,g=[];n<e[0]?(h=0,f=0,m=(n-e[0])/(e[1]-e[0])):n>e[u-1]?(h=u-2,f=1,m=(n-e[u-1])/(e[u-1]-e[u-2])):(h=Math.max(0,Math.min(u-2,Math.floor(o))),f=o-h),i<r[0]?(d=0,p=0,v=(i-r[0])/(r[1]-r[0])):i>r[c-1]?(d=c-2,p=1,v=(i-r[c-1])/(r[c-1]-r[c-2])):(d=Math.max(0,Math.min(c-2,Math.floor(s))),p=s-d),m&&(t.dxydi(g,h,d,f,p),l[0]+=g[0]*m,l[1]+=g[1]*m),v&&(t.dxydj(g,h,d,f,p),l[0]+=g[0]*v,l[1]+=g[1]*v)}return l},t.c2p=function(t,e,r){return[e.c2p(t[0]),r.c2p(t[1])]},t.p2x=function(t,e,r){return[e.p2c(t[0]),r.p2c(t[1])]},t.dadi=function(t){var r=Math.max(0,Math.min(e.length-2,t));return e[r+1]-e[r]},t.dbdj=function(t){var e=Math.max(0,Math.min(r.length-2,t));return r[e+1]-r[e]},t.dxyda=function(e,r,n,i){var a=t.dxydi(null,e,r,n,i),o=t.dadi(e,n);return[a[0]/o,a[1]/o]},t.dxydb=function(e,r,n,i){var a=t.dxydj(null,e,r,n,i),o=t.dbdj(r,i);return[a[0]/o,a[1]/o]},t.dxyda_rough=function(e,r,n){var i=g*(n||.1),a=t.ab2xy(e+i,r,!0),o=t.ab2xy(e-i,r,!0);return[.5*(a[0]-o[0])/i,.5*(a[1]-o[1])/i]},t.dxydb_rough=function(e,r,n){var i=y*(n||.1),a=t.ab2xy(e,r+i,!0),o=t.ab2xy(e,r-i,!0);return[.5*(a[0]-o[0])/i,.5*(a[1]-o[1])/i]},t.dpdx=function(t){return t._m},t.dpdy=function(t){return t._m}}},{\"../../lib/search\":745,\"./compute_control_points\":895,\"./constants\":896,\"./create_i_derivative_evaluator\":897,\"./create_j_derivative_evaluator\":898,\"./create_spline_evaluator\":899}],910:[function(t,e,r){\"use strict\";var n=t(\"../../lib\");e.exports=function(t,e,r){var i,a,o,s=[],l=[],u=t[0].length,c=t.length,h=0;for(i=0;i<u;i++)for(a=0;a<c;a++)void 0===t[a][i]&&(s.push(i),l.push(a),t[a][i]=function(e,r){var n,i=0,a=0;return e>0&&void 0!==(n=t[r][e-1])&&(a++,i+=n),e<u-1&&void 0!==(n=t[r][e+1])&&(a++,i+=n),r>0&&void 0!==(n=t[r-1][e])&&(a++,i+=n),r<c-1&&void 0!==(n=t[r+1][e])&&(a++,i+=n),i/Math.max(1,a)}(i,a)),h=Math.max(h,Math.abs(t[a][i]));if(!s.length)return t;var f,d,p,m,v,g,y,b,x,_,w,M=0,k=0,A=s.length;do{for(M=0,o=0;o<A;o++){i=s[o],a=l[o];var T,S,E,L,C,I,z=0,D=0;0===i?(C=Math.min(u-1,2),E=e[C],L=e[1],T=t[a][C],S=t[a][1],D+=S+(S-T)*(e[0]-L)/(L-E),z++):i===u-1&&(C=Math.max(0,u-3),E=e[C],L=e[u-2],T=t[a][C],S=t[a][u-2],D+=S+(S-T)*(e[u-1]-L)/(L-E),z++),(0===i||i===u-1)&&a>0&&a<c-1&&(f=r[a+1]-r[a],d=r[a]-r[a-1],D+=(d*t[a+1][i]+f*t[a-1][i])/(d+f),z++),0===a?(I=Math.min(c-1,2),E=r[I],L=r[1],T=t[I][i],S=t[1][i],D+=S+(S-T)*(r[0]-L)/(L-E),z++):a===c-1&&(I=Math.max(0,c-3),E=r[I],L=r[c-2],T=t[I][i],S=t[c-2][i],D+=S+(S-T)*(r[c-1]-L)/(L-E),z++),(0===a||a===c-1)&&i>0&&i<u-1&&(f=e[i+1]-e[i],d=e[i]-e[i-1],D+=(d*t[a][i+1]+f*t[a][i-1])/(d+f),z++),z?D/=z:(p=e[i+1]-e[i],m=e[i]-e[i-1],v=r[a+1]-r[a],g=r[a]-r[a-1],y=p*m*(p+m),b=v*g*(v+g),D=(y*(g*t[a+1][i]+v*t[a-1][i])+b*(m*t[a][i+1]+p*t[a][i-1]))/(b*(m+p)+y*(g+v))),x=D-t[a][i],_=x/h,M+=_*_,w=z?0:.85,t[a][i]+=x*(1+w)}M=Math.sqrt(M)}while(k++<100&&M>1e-5);return n.log(\"Smoother converged to\",M,\"after\",k,\"iterations\"),t}},{\"../../lib\":728}],911:[function(t,e,r){\"use strict\";var n=t(\"./has_columns\"),i=t(\"../heatmap/convert_column_xyz\");e.exports=function(t,e,r){var a=[],o=r(\"x\");o&&!n(o)&&a.push(\"x\"),e._cheater=!o;var s=r(\"y\");if(s&&!n(s)&&a.push(\"y\"),o||s)return a.length&&i(e,e.aaxis,e.baxis,\"a\",\"b\",a),!0}},{\"../heatmap/convert_column_xyz\":952,\"./has_columns\":901}],912:[function(t,e,r){\"use strict\";var n=t(\"../scattergeo/attributes\"),i=t(\"../../components/colorscale/attributes\"),a=t(\"../../components/colorbar/attributes\"),o=t(\"../../plots/attributes\"),s=t(\"../../lib/extend\"),l=s.extendFlat,u=s.extendDeepAll,c=n.marker.line;e.exports=l({locations:{valType:\"data_array\",editType:\"calc\"},locationmode:n.locationmode,z:{valType:\"data_array\",editType:\"calc\"},text:l({},n.text,{}),marker:{line:{color:c.color,width:l({},c.width,{dflt:1}),editType:\"calc\"},editType:\"calc\"},hoverinfo:l({},o.hoverinfo,{editType:\"calc\",flags:[\"location\",\"z\",\"text\",\"name\"]})},u({},i,{zmax:{editType:\"calc\"},zmin:{editType:\"calc\"}}),{colorbar:a})},{\"../../components/colorbar/attributes\":605,\"../../components/colorscale/attributes\":609,\"../../lib/extend\":717,\"../../plots/attributes\":770,\"../scattergeo/attributes\":1069}],913:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../../constants/numerical\").BADNUM,a=t(\"../../components/colorscale/calc\"),o=t(\"../scatter/arrays_to_calcdata\");e.exports=function(t,e){for(var r=e.locations.length,s=new Array(r),l=0;l<r;l++){var u=s[l]={},c=e.locations[l],h=e.z[l];u.loc=\"string\"==typeof c?c:null,u.z=n(h)?h:i}return o(s,e),a(e,e.z,\"\",\"z\"),s}},{\"../../components/colorscale/calc\":610,\"../../constants/numerical\":707,\"../scatter/arrays_to_calcdata\":1030,\"fast-isnumeric\":131}],914:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../components/colorscale/defaults\"),a=t(\"./attributes\");e.exports=function(t,e,r,o){function s(r,i){return n.coerce(t,e,a,r,i)}var l,u=s(\"locations\");if(u&&(l=u.length),!u||!l)return void(e.visible=!1);var c=s(\"z\");if(!Array.isArray(c))return void(e.visible=!1);c.length>l&&(e.z=c.slice(0,l)),s(\"locationmode\"),s(\"text\"),s(\"marker.line.color\"),s(\"marker.line.width\"),i(t,e,o,s,{prefix:\"\",cLetter:\"z\"})}},{\"../../components/colorscale/defaults\":613,\"../../lib\":728,\"./attributes\":912}],915:[function(t,e,r){\"use strict\";e.exports=function(t,e){return t.location=e.location,t.z=e.z,t}},{}],916:[function(t,e,r){\"use strict\";function n(t,e,r,n){var s=r.hi||e.hoverinfo,l=\"all\"===s?a.hoverinfo.flags:s.split(\"+\"),u=-1!==l.indexOf(\"name\"),c=-1!==l.indexOf(\"location\"),h=-1!==l.indexOf(\"z\"),f=-1!==l.indexOf(\"text\"),d=!u&&c,p=[];d?t.nameOverride=r.loc:(u&&(t.nameOverride=e.name),c&&p.push(r.loc)),h&&p.push(function(t){return i.tickText(n,n.c2l(t),\"hover\").text}(r.z)),f&&o(r,e,p),t.extraText=p.join(\"<br>\")}var i=t(\"../../plots/cartesian/axes\"),a=t(\"./attributes\"),o=t(\"../scatter/fill_hover_text\");e.exports=function(t,e,r){var i,a,o,s,l=t.cd,u=l[0].trace,c=t.subplot;for(a=0;a<l.length;a++)if(i=l[a],s=!1,i._polygons){for(o=0;o<i._polygons.length;o++)i._polygons[o].contains([e,r])&&(s=!s),i._polygons[o].contains([e+360,r])&&(s=!s);if(s)break}if(s&&i)return t.x0=t.x1=t.xa.c2p(i.ct),t.y0=t.y1=t.ya.c2p(i.ct),t.index=i.index,t.location=i.loc,t.z=i.z,n(t,u,i,c.mockAxis),[t]}},{\"../../plots/cartesian/axes\":772,\"../scatter/fill_hover_text\":1038,\"./attributes\":912}],917:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.supplyDefaults=t(\"./defaults\"),n.colorbar=t(\"../heatmap/colorbar\"),n.calc=t(\"./calc\"),n.plot=t(\"./plot\"),n.hoverPoints=t(\"./hover\"),n.eventData=t(\"./event_data\"),n.selectPoints=t(\"./select\"),n.moduleType=\"trace\",n.name=\"choropleth\",n.basePlotModule=t(\"../../plots/geo\"),n.categories=[\"geo\",\"noOpacity\"],n.meta={},e.exports=n},{\"../../plots/geo\":800,\"../heatmap/colorbar\":951,\"./attributes\":912,\"./calc\":913,\"./defaults\":914,\"./event_data\":915,\"./hover\":916,\"./plot\":918,\"./select\":919}],918:[function(t,e,r){\"use strict\";function n(t,e){for(var r=t[0].trace,n=t.length,a=f(r,e),o=0;o<n;o++){var s=t[o],l=d(r.locationmode,s.loc,a);l?(s.geojson=l,s.ct=l.properties.ct,s.index=o,s._polygons=i(l)):s.geojson=null}}function i(t){function e(t){for(var e=0;e<t.length-1;e++)if(t[e][0]>0&&t[e+1][0]<0)return e;return null}var r,n,i,a,o=t.geometry,s=o.coordinates,l=t.id,u=[];switch(r=\"RUS\"===l||\"FJI\"===l?function(t){var r;if(null===e(t))r=t;else for(r=new Array(t.length),a=0;a<t.length;a++)r[a]=[t[a][0]<0?t[a][0]+360:t[a][0],t[a][1]];u.push(h.tester(r))}:\"ATA\"===l?function(t){var r=e(t);if(null===r)return u.push(h.tester(t));var n=new Array(t.length+1),i=0;for(a=0;a<t.length;a++)a>r?n[i++]=[t[a][0]+360,t[a][1]]:a===r?(n[i++]=t[a],n[i++]=[t[a][0],-90]):n[i++]=t[a];var o=h.tester(n);o.pts.pop(),u.push(o)}:function(t){u.push(h.tester(t))},o.type){case\"MultiPolygon\":for(n=0;n<s.length;n++)for(i=0;i<s[n].length;i++)r(s[n][i]);break;case\"Polygon\":for(n=0;n<s.length;n++)r(s[n])}return u}function a(t){t.layers.backplot.selectAll(\".trace.choropleth\").each(function(t){var e=t[0].trace,r=e.marker||{},n=r.line||{},i=c.makeColorScaleFunc(c.extractScale(e.colorscale,e.zmin,e.zmax));o.select(this).selectAll(\".choroplethlocation\").each(function(t){o.select(this).attr(\"fill\",i(t.z)).call(l.stroke,t.mlc||n.color).call(u.dashLine,\"\",t.mlw||n.width||0)})})}var o=t(\"d3\"),s=t(\"../../lib\"),l=t(\"../../components/color\"),u=t(\"../../components/drawing\"),c=t(\"../../components/colorscale\"),h=t(\"../../lib/polygon\"),f=t(\"../../lib/topojson_utils\").getTopojsonFeatures,d=t(\"../../lib/geo_location_utils\").locationToFeature;e.exports=function(t,e){function r(t){return t[0].trace.uid}for(var i=0;i<e.length;i++)n(e[i],t.topojson);var l=t.layers.backplot.select(\".choroplethlayer\").selectAll(\"g.trace.choropleth\").data(e,r);l.enter().append(\"g\").attr(\"class\",\"trace choropleth\"),l.exit().remove(),l.each(function(t){var e=t[0].node3=o.select(this),r=e.selectAll(\"path.choroplethlocation\").data(s.identity);r.enter().append(\"path\").classed(\"choroplethlocation\",!0),r.exit().remove()}),a(t)}},{\"../../components/color\":604,\"../../components/colorscale\":618,\"../../components/drawing\":628,\"../../lib\":728,\"../../lib/geo_location_utils\":720,\"../../lib/polygon\":739,\"../../lib/topojson_utils\":753,d3:122}],919:[function(t,e,r){\"use strict\";var n=t(\"../../constants/interactions\").DESELECTDIM;e.exports=function(t,e){var r,i,a,o,s,l=t.cd,u=t.xaxis,c=t.yaxis,h=[],f=l[0].node3;if(!1===e)for(r=0;r<l.length;r++)l[r].dim=0;else for(r=0;r<l.length;r++)i=l[r],(a=i.ct)&&(o=u.c2p(a),s=c.c2p(a),e.contains([o,s])?(h.push({pointNumber:r,lon:a[0],lat:a[1]}),i.dim=0):i.dim=1);return f.selectAll(\"path\").style(\"opacity\",function(t){return t.dim?n:1}),h}},{\"../../constants/interactions\":706}],920:[function(t,e,r){\"use strict\";var n=t(\"../heatmap/attributes\"),i=t(\"../scatter/attributes\"),a=t(\"../../components/colorscale/attributes\"),o=t(\"../../components/colorbar/attributes\"),s=t(\"../../components/drawing/attributes\").dash,l=t(\"../../plots/font_attributes\"),u=t(\"../../lib/extend\").extendFlat,c=i.line;e.exports=u({z:n.z,x:n.x,x0:n.x0,dx:n.dx,y:n.y,y0:n.y0,dy:n.dy,text:n.text,transpose:n.transpose,xtype:n.xtype,ytype:n.ytype,connectgaps:n.connectgaps,autocontour:{valType:\"boolean\",dflt:!0,editType:\"calc\",impliedEdits:{\"contours.start\":void 0,\"contours.end\":void 0,\"contours.size\":void 0}},ncontours:{valType:\"integer\",dflt:15,min:1,editType:\"calc\"},contours:{start:{valType:\"number\",dflt:null,editType:\"plot\",impliedEdits:{\"^autocontour\":!1}},end:{valType:\"number\",dflt:null,editType:\"plot\",impliedEdits:{\"^autocontour\":!1}},size:{valType:\"number\",dflt:null,min:0,editType:\"plot\",impliedEdits:{\"^autocontour\":!1}},coloring:{valType:\"enumerated\",values:[\"fill\",\"heatmap\",\"lines\",\"none\"],dflt:\"fill\",editType:\"calc\"},showlines:{valType:\"boolean\",dflt:!0,editType:\"plot\"},showlabels:{valType:\"boolean\",dflt:!1,editType:\"plot\"},labelfont:l({editType:\"plot\",colorEditType:\"style\"}),labelformat:{valType:\"string\",dflt:\"\",editType:\"plot\"},editType:\"calc\",impliedEdits:{autocontour:!1}},line:{color:u({},c.color,{editType:\"style+colorbars\"}),width:u({},c.width,{editType:\"style+colorbars\"}),dash:s,smoothing:u({},c.smoothing,{}),editType:\"plot\"}},a,{autocolorscale:u({},a.autocolorscale,{dflt:!1}),zmin:u({},a.zmin,{editType:\"calc\"}),zmax:u({},a.zmax,{editType:\"calc\"})},{colorbar:o})},{\"../../components/colorbar/attributes\":605,\"../../components/colorscale/attributes\":609,\"../../components/drawing/attributes\":627,\"../../lib/extend\":717,\"../../plots/font_attributes\":796,\"../heatmap/attributes\":948,\"../scatter/attributes\":1031}],921:[function(t,e,r){\"use strict\";function n(t,e,r){var n={type:\"linear\",range:[t,e]};return i.autoTicks(n,(e-t)/(r||15)),n}var i=t(\"../../plots/cartesian/axes\"),a=t(\"../../lib\").extendFlat,o=t(\"../heatmap/calc\");e.exports=function(t,e){var r=o(t,e),s=e.contours;if(!1!==e.autocontour){var l=n(e.zmin,e.zmax,e.ncontours);s.size=l.dtick,s.start=i.tickFirst(l),l.range.reverse(),s.end=i.tickFirst(l),s.start===e.zmin&&(s.start+=s.size),s.end===e.zmax&&(s.end-=s.size),s.start>s.end&&(s.start=s.end=(s.start+s.end)/2),e._input.contours||(e._input.contours={}),a(e._input.contours,{start:s.start,end:s.end,size:s.size}),e._input.autocontour=!0}else{var u=s.start,c=s.end,h=e._input.contours;if(u>c&&(s.start=h.start=c,c=s.end=h.end=u,u=s.start),!(s.size>0)){var f;f=u===c?1:n(u,c,e.ncontours).dtick,h.size=s.size=f}}return r}},{\"../../lib\":728,\"../../plots/cartesian/axes\":772,\"../heatmap/calc\":949}],922:[function(t,e,r){\"use strict\";var n=t(\"../../plots/plots\"),i=t(\"../../components/colorbar/draw\"),a=t(\"./make_color_map\"),o=t(\"./end_plus\");e.exports=function(t,e){var r=e[0].trace,s=\"cb\"+r.uid;if(t._fullLayout._infolayer.selectAll(\".\"+s).remove(),!r.showscale)return void n.autoMargin(t,s);var l=i(t,s);e[0].t.cb=l;var u=r.contours,c=r.line,h=u.size||1,f=u.coloring,d=a(r,{isColorbar:!0});\"heatmap\"===f&&l.filllevels({start:r.zmin,end:r.zmax,size:(r.zmax-r.zmin)/254}),l.fillcolor(\"fill\"===f||\"heatmap\"===f?d:\"\").line({color:\"lines\"===f?d:c.color,width:!1!==u.showlines?c.width:0,dash:c.dash}).levels({start:u.start,end:o(u),size:h}).options(r.colorbar)()}},{\"../../components/colorbar/draw\":607,\"../../plots/plots\":831,\"./end_plus\":926,\"./make_color_map\":930}],923:[function(t,e,r){\"use strict\";e.exports={BOTTOMSTART:[1,9,13,104,713],TOPSTART:[4,6,7,104,713],LEFTSTART:[8,12,14,208,1114],RIGHTSTART:[2,3,11,208,1114],NEWDELTA:[null,[-1,0],[0,-1],[-1,0],[1,0],null,[0,-1],[-1,0],[0,1],[0,1],null,[0,1],[1,0],[1,0],[0,-1]],CHOOSESADDLE:{104:[4,1],208:[2,8],713:[7,13],1114:[11,14]},SADDLEREMAINDER:{1:4,2:8,4:1,7:13,8:2,11:14,13:7,14:11},LABELDISTANCE:2,LABELINCREASE:10,LABELMIN:3,LABELMAX:10,LABELOPTIMIZER:{EDGECOST:1,ANGLECOST:1,NEIGHBORCOST:5,SAMELEVELFACTOR:10,SAMELEVELDISTANCE:5,MAXCOST:100,INITIALSEARCHPOINTS:10,ITERATIONS:5}}},{}],924:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"./attributes\");e.exports=function(t,e,r){var a,o=n.coerce2(t,e,i,\"contours.start\"),s=n.coerce2(t,e,i,\"contours.end\"),l=!1===o||!1===s,u=r(\"contours.size\");!(a=l?e.autocontour=!0:r(\"autocontour\",!1))&&u||r(\"ncontours\")}},{\"../../lib\":728,\"./attributes\":920}],925:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../heatmap/has_columns\"),a=t(\"../heatmap/xyz_defaults\"),o=t(\"./contours_defaults\"),s=t(\"./style_defaults\"),l=t(\"./attributes\");e.exports=function(t,e,r,u){function c(r,i){return n.coerce(t,e,l,r,i)}if(!a(t,e,c,u))return void(e.visible=!1);c(\"text\"),c(\"connectgaps\",i(e)),o(t,e,c),s(t,e,c,u)}},{\"../../lib\":728,\"../heatmap/has_columns\":955,\"../heatmap/xyz_defaults\":963,\"./attributes\":920,\"./contours_defaults\":924,\"./style_defaults\":934}],926:[function(t,e,r){\"use strict\";e.exports=function(t){return t.end+t.size/1e6}},{}],927:[function(t,e,r){\"use strict\";function n(t,e,r,n){return Math.abs(t[0]-e[0])<r&&Math.abs(t[1]-e[1])<n}function i(t,e){var r=t[2]-e[2],n=t[3]-e[3];return Math.sqrt(r*r+n*n)}function a(t,e,r,a,c){function h(t){return g[t%g.length]}var f,d=e.join(\",\"),p=d,m=t.crossings[p],v=o(m,r,e),g=[s(t,e,[-v[0],-v[1]])],y=v.join(\",\"),b=t.z.length,x=t.z[0].length;for(f=0;f<1e4;f++){if(m>20?(m=u.CHOOSESADDLE[m][(v[0]||v[1])<0?0:1],t.crossings[p]=u.SADDLEREMAINDER[m]):delete t.crossings[p],!(v=u.NEWDELTA[m])){l.log(\"Found bad marching index:\",m,e,t.level);break}g.push(s(t,e,v)),e[0]+=v[0],e[1]+=v[1],n(g[g.length-1],g[g.length-2],a,c)&&g.pop(),p=e.join(\",\");var _=v[0]&&(e[0]<0||e[0]>x-2)||v[1]&&(e[1]<0||e[1]>b-2);if(p===d&&v.join(\",\")===y||r&&_)break;m=t.crossings[p]}1e4===f&&l.log(\"Infinite loop in contour?\");var w,M,k,A,T,S,E,L=n(g[0],g[g.length-1],a,c),C=0,I=.2*t.smoothing,z=[],D=0;for(f=1;f<g.length;f++)E=i(g[f],g[f-1]),C+=E,z.push(E);var P=C/z.length*I;for(f=g.length-2;f>=D;f--)if((w=z[f])<P){for(k=0,M=f-1;M>=D&&w+z[M]<P;M--)w+=z[M];if(L&&f===g.length-2)for(k=0;k<M&&w+z[k]<P;k++)w+=z[k];T=f-M+k+1,S=Math.floor((f+M+k+2)/2),A=L||f!==g.length-2?L||-1!==M?T%2?h(S):[(h(S)[0]+h(S+1)[0])/2,(h(S)[1]+h(S+1)[1])/2]:g[0]:g[g.length-1],g.splice(M+1,f-M+1,A),f=M+1,k&&(D=k),L&&(f===g.length-2?g[k]=g[g.length-1]:0===f&&(g[g.length-1]=g[0]))}for(g.splice(0,D),f=0;f<g.length;f++)g[f].length=2;if(!(g.length<2))if(L)g.pop(),t.paths.push(g);else{r||l.log(\"Unclosed interior contour?\",t.level,d,g.join(\"L\"));var O=!1;t.edgepaths.forEach(function(e,r){if(!O&&n(e[0],g[g.length-1],a,c)){g.pop(),O=!0;var i=!1;t.edgepaths.forEach(function(e,o){!i&&n(e[e.length-1],g[0],a,c)&&(i=!0,g.splice(0,1),t.edgepaths.splice(r,1),o===r?t.paths.push(g.concat(e)):t.edgepaths[o]=t.edgepaths[o].concat(g,e))}),i||(t.edgepaths[r]=g.concat(e))}}),t.edgepaths.forEach(function(e,r){!O&&n(e[e.length-1],g[0],a,c)&&(g.splice(0,1),t.edgepaths[r]=e.concat(g),O=!0)}),O||t.edgepaths.push(g)}}function o(t,e,r){var n=0,i=0;return t>20&&e?208===t||1114===t?n=0===r[0]?1:-1:i=0===r[1]?1:-1:-1!==u.BOTTOMSTART.indexOf(t)?i=1:-1!==u.LEFTSTART.indexOf(t)?n=1:-1!==u.TOPSTART.indexOf(t)?i=-1:n=-1,[n,i]}function s(t,e,r){var n=e[0]+Math.max(r[0],0),i=e[1]+Math.max(r[1],0),a=t.z[i][n],o=t.xaxis,s=t.yaxis;if(r[1]){var l=(t.level-a)/(t.z[i][n+1]-a);return[o.c2p((1-l)*t.x[n]+l*t.x[n+1],!0),s.c2p(t.y[i],!0),n+l,i]}var u=(t.level-a)/(t.z[i+1][n]-a);return[o.c2p(t.x[n],!0),s.c2p((1-u)*t.y[i]+u*t.y[i+1],!0),n,i+u]}var l=t(\"../../lib\"),u=t(\"./constants\");e.exports=function(t,e,r){var n,i,o,s,u;for(e=e||.01,r=r||.01,o=0;o<t.length;o++){for(s=t[o],u=0;u<s.starts.length;u++)i=s.starts[u],a(s,i,\"edge\",e,r);for(n=0;Object.keys(s.crossings).length&&n<1e4;)n++,i=Object.keys(s.crossings)[0].split(\",\").map(Number),a(s,i,void 0,e,r);1e4===n&&l.log(\"Infinite loop in contour?\")}}},{\"../../lib\":728,\"./constants\":923}],928:[function(t,e,r){\"use strict\";var n=t(\"../heatmap/hover\");e.exports=function(t,e,r,i){return n(t,e,r,i,!0)}},{\"../heatmap/hover\":956}],929:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.supplyDefaults=t(\"./defaults\"),n.calc=t(\"./calc\"),n.plot=t(\"./plot\").plot,n.style=t(\"./style\"),n.colorbar=t(\"./colorbar\"),n.hoverPoints=t(\"./hover\"),n.moduleType=\"trace\",n.name=\"contour\",n.basePlotModule=t(\"../../plots/cartesian\"),n.categories=[\"cartesian\",\"2dMap\",\"contour\"],n.meta={},e.exports=n},{\"../../plots/cartesian\":782,\"./attributes\":920,\"./calc\":921,\"./colorbar\":922,\"./defaults\":925,\"./hover\":928,\"./plot\":932,\"./style\":933}],930:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../../components/colorscale\"),a=t(\"./end_plus\");e.exports=function(t){var e=t.contours,r=e.start,o=a(e),s=e.size||1,l=Math.floor((o-r)/s)+1,u=\"lines\"===e.coloring?0:1;isFinite(s)||(s=1,l=1);var c,h,f=t.colorscale,d=f.length,p=new Array(d),m=new Array(d);if(\"heatmap\"===e.coloring){for(t.zauto&&!1===t.autocontour&&(t.zmin=r-s/2,t.zmax=t.zmin+l*s),h=0;h<d;h++)c=f[h],p[h]=c[0]*(t.zmax-t.zmin)+t.zmin,m[h]=c[1];var v=n.extent([t.zmin,t.zmax,e.start,e.start+s*(l-1)]),g=v[t.zmin<t.zmax?0:1],y=v[t.zmin<t.zmax?1:0];g!==t.zmin&&(p.splice(0,0,g),m.splice(0,0,Range[0])),y!==t.zmax&&(p.push(y),m.push(m[m.length-1]))}else for(h=0;h<d;h++)c=f[h],p[h]=(c[0]*(l+u-1)-u/2)*s+r,m[h]=c[1];return i.makeColorScaleFunc({domain:p,range:m},{noNumericCheck:!0})}},{\"../../components/colorscale\":618,\"./end_plus\":926,d3:122}],931:[function(t,e,r){\"use strict\";function n(t,e){var r=(e[0][0]>t?0:1)+(e[0][1]>t?0:2)+(e[1][1]>t?0:4)+(e[1][0]>t?0:8);if(5===r||10===r){return t>(e[0][0]+e[0][1]+e[1][0]+e[1][1])/4?5===r?713:1114:5===r?104:208}return 15===r?0:r}var i=t(\"./constants\");e.exports=function(t){var e,r,a,o,s,l,u,c,h,f=t[0].z,d=f.length,p=f[0].length,m=2===d||2===p;for(r=0;r<d-1;r++)for(o=[],0===r&&(o=o.concat(i.BOTTOMSTART)),r===d-2&&(o=o.concat(i.TOPSTART)),e=0;e<p-1;e++)for(a=o.slice(),0===e&&(a=a.concat(i.LEFTSTART)),e===p-2&&(a=a.concat(i.RIGHTSTART)),s=e+\",\"+r,l=[[f[r][e],f[r][e+1]],[f[r+1][e],f[r+1][e+1]]],h=0;h<t.length;h++)c=t[h],(u=n(c.level,l))&&(c.crossings[s]=u,-1!==a.indexOf(u)&&(c.starts.push([e,r]),m&&-1!==a.indexOf(u,a.indexOf(u)+1)&&c.starts.push([e,r])))}},{\"./constants\":923}],932:[function(t,e,r){\"use strict\";function n(t,e,n){var s=n[0].trace,u=n[0].x,h=n[0].y,f=s.contours,d=s.uid,p=e.xaxis,m=e.yaxis,v=t._fullLayout,g=\"contour\"+d,_=i(f,e,n[0]);if(!0!==s.visible)return v._paper.selectAll(\".\"+g+\",.hm\"+d).remove(),void v._infolayer.selectAll(\".cb\"+d).remove();\"heatmap\"===f.coloring?(s.zauto&&!1===s.autocontour&&(s._input.zmin=s.zmin=f.start-f.size/2,s._input.zmax=s.zmax=s.zmin+_.length*f.size),y(t,e,[n])):(v._paper.selectAll(\".hm\"+d).remove(),v._infolayer.selectAll(\"g.rangeslider-container\").selectAll(\".hm\"+d).remove()),b(_),x(_);var w=p.c2p(u[0],!0),M=p.c2p(u[u.length-1],!0),k=m.c2p(h[0],!0),A=m.c2p(h[h.length-1],!0),T=[[w,A],[M,A],[M,k],[w,k]],S=r.makeContourGroup(e,n,g);a(S,T,f),o(S,_,T,f),l(S,_,t,n[0],f,T),c(S,e,v._clips,n[0],T)}function i(t,e,r){for(var n=t.size,i=[],a=_(t),o=t.start;o<a;o+=n)if(i.push({level:o,crossings:{},starts:[],edgepaths:[],paths:[],xaxis:e.xaxis,yaxis:e.yaxis,x:r.x,y:r.y,z:r.z,smoothing:r.trace.line.smoothing}),i.length>1e3){d.warn(\"Too many contours, clipping at 1000\",t);break}return i}function a(t,e,r){var n=t.selectAll(\"g.contourbg\").data([0]);n.enter().append(\"g\").classed(\"contourbg\",!0);var i=n.selectAll(\"path\").data(\"fill\"===r.coloring?[0]:[]);i.enter().append(\"path\"),i.exit().remove(),i.attr(\"d\",\"M\"+e.join(\"L\")+\"Z\").style(\"stroke\",\"none\")}function o(t,e,r,n){var i=t.selectAll(\"g.contourfill\").data([0]);i.enter().append(\"g\").classed(\"contourfill\",!0);var a=i.selectAll(\"path\").data(\"fill\"===n.coloring?e:[]);a.enter().append(\"path\"),a.exit().remove(),a.each(function(t){var e=s(t,r);e?f.select(this).attr(\"d\",e).style(\"stroke\",\"none\"):f.select(this).remove()})}function s(t,e){function r(t){return Math.abs(t[0]-e[2][0])<.01}for(var n,i,a,o,s,l,u=Math.min(t.z[0][0],t.z[0][1]),c=t.edgepaths.length||u<=t.level?\"\":\"M\"+e.join(\"L\")+\"Z\",h=0,f=t.edgepaths.map(function(t,e){return e}),m=!0;f.length;){for(l=p.smoothopen(t.edgepaths[h],t.smoothing),c+=m?l:l.replace(/^M/,\"L\"),f.splice(f.indexOf(h),1),n=t.edgepaths[h][t.edgepaths[h].length-1],o=-1,a=0;a<4;a++){if(!n){d.log(\"Missing end?\",h,t);break}for(!function(t){return Math.abs(t[1]-e[0][1])<.01}(n)||r(n)?!function(t){return Math.abs(t[0]-e[0][0])<.01}(n)?!function(t){return Math.abs(t[1]-e[2][1])<.01}(n)?r(n)&&(i=e[2]):i=e[3]:i=e[0]:i=e[1],s=0;s<t.edgepaths.length;s++){var v=t.edgepaths[s][0];Math.abs(n[0]-i[0])<.01?Math.abs(n[0]-v[0])<.01&&(v[1]-n[1])*(i[1]-v[1])>=0&&(i=v,o=s):Math.abs(n[1]-i[1])<.01?Math.abs(n[1]-v[1])<.01&&(v[0]-n[0])*(i[0]-v[0])>=0&&(i=v,o=s):d.log(\"endpt to newendpt is not vert. or horz.\",n,i,v)}if(n=i,o>=0)break;c+=\"L\"+i}if(o===t.edgepaths.length){d.log(\"unclosed perimeter path\");break}h=o,m=-1===f.indexOf(h),m&&(h=f[0],c+=\"Z\")}for(h=0;h<t.paths.length;h++)c+=p.smoothclosed(t.paths[h],t.smoothing);return c}function l(t,e,n,i,a,o){var s=t.selectAll(\"g.contourlines\").data([0]);s.enter().append(\"g\").classed(\"contourlines\",!0);var l=!1!==a.showlines,u=a.showlabels,c=l&&u,h=r.createLines(s,l||u,e),m=r.createLineClip(s,c,n._fullLayout._clips,i.trace.uid),v=t.selectAll(\"g.contourlabels\").data(u?[0]:[]);if(v.exit().remove(),v.enter().append(\"g\").classed(\"contourlabels\",!0),u){var g=[o],y=[];d.clearLocationCache();var b=r.labelFormatter(a,i.t.cb,n._fullLayout),x=p.tester.append(\"text\").attr(\"data-notex\",1).call(p.font,a.labelfont),_=e[0].xaxis._length,M=e[0].yaxis._length,k={left:Math.max(o[0][0],0),right:Math.min(o[2][0],_),top:Math.max(o[0][1],0),bottom:Math.min(o[2][1],M)};k.middle=(k.top+k.bottom)/2,\n", "k.center=(k.left+k.right)/2;var A=Math.sqrt(_*_+M*M),T=w.LABELDISTANCE*A/Math.max(1,e.length/w.LABELINCREASE);h.each(function(t){var e=r.calcTextOpts(t.level,b,x,n);f.select(this).selectAll(\"path\").each(function(){var t=this,n=d.getVisibleSegment(t,k,e.height/2);if(n&&!(n.len<(e.width+e.height)*w.LABELMIN))for(var i=Math.min(Math.ceil(n.len/T),w.LABELMAX),a=0;a<i;a++){var o=r.findBestTextLocation(t,n,e,y,k);if(!o)break;r.addLabelData(o,e,y,g)}})}),x.remove(),r.drawLabels(v,y,n,m,c?g:null)}u&&!l&&h.remove()}function u(t,e,r,n){var i=e.width/2,a=e.height/2,o=t.x,s=t.y,l=t.theta,u=Math.cos(l)*i,c=Math.sin(l)*i,h=(o>n.center?n.right-o:o-n.left)/(u+Math.abs(Math.sin(l)*a)),f=(s>n.middle?n.bottom-s:s-n.top)/(Math.abs(c)+Math.cos(l)*a);if(h<1||f<1)return 1/0;var p=M.EDGECOST*(1/(h-1)+1/(f-1));p+=M.ANGLECOST*l*l;for(var m=o-u,v=s-c,g=o+u,y=s+c,b=0;b<r.length;b++){var x=r[b],_=Math.cos(x.theta)*x.width/2,w=Math.sin(x.theta)*x.width/2,k=2*d.segmentDistance(m,v,g,y,x.x-_,x.y-w,x.x+_,x.y+w)/(e.height+x.height),A=x.level===e.level,T=A?M.SAMELEVELDISTANCE:1;if(k<=T)return 1/0;p+=M.NEIGHBORCOST*(A?M.SAMELEVELFACTOR:1)/(k-T)}return p}function c(t,e,r,n,i){var a=\"clip\"+n.trace.uid,o=r.selectAll(\"#\"+a).data(n.trace.connectgaps?[]:[0]);if(o.enter().append(\"clipPath\").classed(\"contourclip\",!0).attr(\"id\",a),o.exit().remove(),!1===n.trace.connectgaps){var l={level:.9,crossings:{},starts:[],edgepaths:[],paths:[],xaxis:e.xaxis,yaxis:e.yaxis,x:n.x,y:n.y,z:h(n),smoothing:0};b([l]),x([l]);var u=s(l,i),c=o.selectAll(\"path\").data([0]);c.enter().append(\"path\"),c.attr(\"d\",u)}else a=null;t.call(p.setClipUrl,a),e.plot.selectAll(\".hm\"+n.trace.uid).call(p.setClipUrl,a)}function h(t){var e,r,n=t.trace._emptypoints,i=[],a=t.z.length,o=t.z[0].length,s=[];for(e=0;e<o;e++)s.push(1);for(e=0;e<a;e++)i.push(s.slice());for(e=0;e<n.length;e++)r=n[e],i[r[0]][r[1]]=0;return t.zmask=i,i}var f=t(\"d3\"),d=t(\"../../lib\"),p=t(\"../../components/drawing\"),m=t(\"../../lib/svg_text_utils\"),v=t(\"../../plots/cartesian/axes\"),g=t(\"../../plots/cartesian/set_convert\"),y=t(\"../heatmap/plot\"),b=t(\"./make_crossings\"),x=t(\"./find_all_paths\"),_=t(\"./end_plus\"),w=t(\"./constants\"),M=w.LABELOPTIMIZER;r.plot=function(t,e,r){for(var i=0;i<r.length;i++)n(t,e,r[i])},r.makeContourGroup=function(t,e,r){var n=t.plot.select(\".maplayer\").selectAll(\"g.contour.\"+r).data(e);return n.enter().append(\"g\").classed(\"contour\",!0).classed(r,!0),n.exit().remove(),n},r.createLines=function(t,e,r){var n=r[0].smoothing,i=t.selectAll(\"g.contourlevel\").data(e?r:[]);if(i.exit().remove(),i.enter().append(\"g\").classed(\"contourlevel\",!0),e){var a=i.selectAll(\"path.openline\").data(function(t){return t.pedgepaths||t.edgepaths});a.exit().remove(),a.enter().append(\"path\").classed(\"openline\",!0),a.attr(\"d\",function(t){return p.smoothopen(t,n)}).style(\"stroke-miterlimit\",1).style(\"vector-effect\",\"non-scaling-stroke\");var o=i.selectAll(\"path.closedline\").data(function(t){return t.ppaths||t.paths});o.exit().remove(),o.enter().append(\"path\").classed(\"closedline\",!0),o.attr(\"d\",function(t){return p.smoothclosed(t,n)}).style(\"stroke-miterlimit\",1).style(\"vector-effect\",\"non-scaling-stroke\")}return i},r.createLineClip=function(t,e,r,n){var i=e?\"clipline\"+n:null,a=r.selectAll(\"#\"+i).data(e?[0]:[]);return a.exit().remove(),a.enter().append(\"clipPath\").classed(\"contourlineclip\",!0).attr(\"id\",i),p.setClipUrl(t,i),a},r.labelFormatter=function(t,e,r){if(t.labelformat)return f.format(t.labelformat);var n;return e?n=e.axis:(n={type:\"linear\",_separators:\".,\",_id:\"ycontour\",nticks:(t.end-t.start)/t.size,showexponent:\"all\",range:[t.start,t.end]},g(n,r),v.calcTicks(n),n._tmin=null,n._tmax=null),function(t){return v.tickText(n,t).text}},r.calcTextOpts=function(t,e,r,n){var i=e(t);r.text(i).call(m.convertToTspans,n);var a=p.bBox(r.node(),!0);return{text:i,width:a.width,height:a.height,level:t,dy:(a.top+a.bottom)/2}},r.findBestTextLocation=function(t,e,r,n,i){var a,o,s,l,c,h=r.width;e.isClosed?(o=e.len/M.INITIALSEARCHPOINTS,a=e.min+o/2,s=e.max):(o=(e.len-h)/(M.INITIALSEARCHPOINTS+1),a=e.min+o+h/2,s=e.max-(o+h)/2);for(var f=1/0,p=0;p<M.ITERATIONS;p++){for(var m=a;m<s;m+=o){var v=d.getTextLocation(t,e.total,m,h),g=u(v,r,n,i);g<f&&(f=g,c=v,l=m)}if(f>2*M.MAXCOST)break;p&&(o/=2),a=l-o/2,s=a+1.5*o}if(f<=M.MAXCOST)return c},r.addLabelData=function(t,e,r,n){var i=e.width/2,a=e.height/2,o=t.x,s=t.y,l=t.theta,u=Math.sin(l),c=Math.cos(l),h=i*c,f=a*u,d=i*u,p=-a*c,m=[[o-h-f,s-d-p],[o+h-f,s+d-p],[o+h+f,s+d+p],[o-h+f,s-d+p]];r.push({text:e.text,x:o,y:s,dy:e.dy,theta:l,level:e.level,width:e.width,height:e.height}),n.push(m)},r.drawLabels=function(t,e,r,n,i){var a=t.selectAll(\"text\").data(e,function(t){return t.text+\",\"+t.x+\",\"+t.y+\",\"+t.theta});if(a.exit().remove(),a.enter().append(\"text\").attr({\"data-notex\":1,\"text-anchor\":\"middle\"}).each(function(t){var e=t.x+Math.sin(t.theta)*t.dy,n=t.y-Math.cos(t.theta)*t.dy;f.select(this).text(t.text).attr({x:e,y:n,transform:\"rotate(\"+180*t.theta/Math.PI+\" \"+e+\" \"+n+\")\"}).call(m.convertToTspans,r)}),i){for(var o=\"\",s=0;s<i.length;s++)o+=\"M\"+i[s].join(\"L\")+\"Z\";var l=n.selectAll(\"path\").data([0]);l.enter().append(\"path\"),l.attr(\"d\",o)}}},{\"../../components/drawing\":628,\"../../lib\":728,\"../../lib/svg_text_utils\":750,\"../../plots/cartesian/axes\":772,\"../../plots/cartesian/set_convert\":789,\"../heatmap/plot\":961,\"./constants\":923,\"./end_plus\":926,\"./find_all_paths\":927,\"./make_crossings\":931,d3:122}],933:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../../components/drawing\"),a=t(\"../heatmap/style\"),o=t(\"./make_color_map\");e.exports=function(t){var e=n.select(t).selectAll(\"g.contour\");e.style(\"opacity\",function(t){return t.trace.opacity}),e.each(function(t){var e=n.select(this),r=t.trace,a=r.contours,s=r.line,l=a.size||1,u=a.start,c=\"constraint\"===a.type,h=!c&&\"lines\"===a.coloring,f=!c&&\"fill\"===a.coloring,d=h||f?o(r):null;e.selectAll(\"g.contourlevel\").each(function(t){n.select(this).selectAll(\"path\").call(i.lineGroupStyle,s.width,h?d(t.level):s.color,s.dash)});var p=a.labelfont;if(e.selectAll(\"g.contourlabels text\").each(function(t){i.font(n.select(this),{family:p.family,size:p.size,color:p.color||(h?d(t.level):s.color)})}),c)e.selectAll(\"g.contourfill path\").style(\"fill\",r.fillcolor);else if(f){var m;e.selectAll(\"g.contourfill path\").style(\"fill\",function(t){return void 0===m&&(m=t.level),d(t.level+.5*l)}),void 0===m&&(m=u),e.selectAll(\"g.contourbg path\").style(\"fill\",d(m-.5*l))}}),a(t)}},{\"../../components/drawing\":628,\"../heatmap/style\":962,\"./make_color_map\":930,d3:122}],934:[function(t,e,r){\"use strict\";var n=t(\"../../components/colorscale/defaults\"),i=t(\"../../lib\");e.exports=function(t,e,r,a,o,s){var l,u=r(\"contours.coloring\"),c=\"\";if(\"fill\"===u&&(l=r(\"contours.showlines\")),!1!==l&&(\"lines\"!==u&&(c=r(\"line.color\",o||\"#000\")),r(\"line.width\",void 0===s?.5:s),r(\"line.dash\")),r(\"line.smoothing\"),\"none\"!==u&&n(t,e,a,r,{prefix:\"\",cLetter:\"z\"}),r(\"contours.showlabels\")){var h=a.font;i.coerceFont(r,\"contours.labelfont\",{family:h.family,size:h.size,color:c}),r(\"contours.labelformat\")}}},{\"../../components/colorscale/defaults\":613,\"../../lib\":728}],935:[function(t,e,r){\"use strict\";var n=t(\"../heatmap/attributes\"),i=t(\"../contour/attributes\"),a=i.contours,o=t(\"../scatter/attributes\"),s=t(\"../../components/colorscale/attributes\"),l=t(\"../../components/colorbar/attributes\"),u=t(\"../../lib/extend\").extendFlat,c=o.line,h=t(\"./constants\");e.exports=u({},{carpet:{valType:\"string\",editType:\"calc\"},z:n.z,a:n.x,a0:n.x0,da:n.dx,b:n.y,b0:n.y0,db:n.dy,text:n.text,transpose:n.transpose,atype:n.xtype,btype:n.ytype,mode:{valType:\"flaglist\",flags:[\"lines\",\"fill\"],extras:[\"none\"],editType:\"calc\"},connectgaps:n.connectgaps,fillcolor:{valType:\"color\",editType:\"calc\"},autocontour:i.autocontour,ncontours:i.ncontours,contours:{type:{valType:\"enumerated\",values:[\"levels\",\"constraint\"],dflt:\"levels\",editType:\"calc\"},start:a.start,end:a.end,size:a.size,coloring:{valType:\"enumerated\",values:[\"fill\",\"lines\",\"none\"],dflt:\"fill\",editType:\"calc\"},showlines:a.showlines,showlabels:a.showlabels,labelfont:a.labelfont,labelformat:a.labelformat,operation:{valType:\"enumerated\",values:[].concat(h.INEQUALITY_OPS).concat(h.INTERVAL_OPS).concat(h.SET_OPS),dflt:\"=\",editType:\"calc\"},value:{valType:\"any\",dflt:0,editType:\"calc\"},editType:\"calc\"},line:{color:u({},c.color,{}),width:c.width,dash:c.dash,smoothing:u({},c.smoothing,{}),editType:\"plot\"}},s,{autocolorscale:u({},s.autocolorscale,{dflt:!1})},{colorbar:l})},{\"../../components/colorbar/attributes\":605,\"../../components/colorscale/attributes\":609,\"../../lib/extend\":717,\"../contour/attributes\":920,\"../heatmap/attributes\":948,\"../scatter/attributes\":1031,\"./constants\":938}],936:[function(t,e,r){\"use strict\";function n(t,e,r){var n={type:\"linear\",range:[t,e]};return o.autoTicks(n,(e-t)/(r||15)),n}function i(t,e){function r(t){A=e._input.zsmooth=e.zsmooth=!1,a.notifier(\"cannot fast-zsmooth: \"+t)}var n,i,o,s,g,y,b,x,_=e.carpetTrace,w=_.aaxis,M=_.baxis,k=l.traceIs(e,\"contour\"),A=k?\"best\":e.zsmooth;if(w._minDtick=0,M._minDtick=0,c(e)&&h(e,w,M,\"a\",\"b\",[\"z\"]),n=e.a?w.makeCalcdata(e,\"a\"):[],s=e.b?M.makeCalcdata(e,\"b\"):[],i=e.a0||0,o=e.da||1,g=e.b0||0,y=e.db||1,b=f(e.z,e.transpose),e._emptypoints=m(b),e._interpz=p(b,e._emptypoints,e._interpz),\"fast\"===A)if(\"log\"===w.type||\"log\"===M.type)r(\"log axis found\");else{if(n.length){var T=(n[n.length-1]-n[0])/(n.length-1),S=Math.abs(T/100);for(x=0;x<n.length-1;x++)if(Math.abs(n[x+1]-n[x]-T)>S){r(\"a scale is not linear\");break}}if(s.length&&\"fast\"===A){var E=(s[s.length-1]-s[0])/(s.length-1),L=Math.abs(E/100);for(x=0;x<s.length-1;x++)if(Math.abs(s[x+1]-s[x]-E)>L){r(\"b scale is not linear\");break}}}var C=d(b),I=\"scaled\"===e.xtype?\"\":n,z=v(e,I,i,o,C,w),D=\"scaled\"===e.ytype?\"\":s,P=v(e,D,g,y,b.length,M),O={a:z,b:P,z:b};return\"levels\"===e.contours.type&&u(e,b,\"\",\"z\"),[O]}var a=t(\"../../lib\"),o=t(\"../../plots/cartesian/axes\"),s=t(\"../../lib\").extendFlat,l=t(\"../../registry\"),u=t(\"../../components/colorscale/calc\"),c=t(\"../heatmap/has_columns\"),h=t(\"../heatmap/convert_column_xyz\"),f=t(\"../heatmap/clean_2d_array\"),d=t(\"../heatmap/max_row_length\"),p=t(\"../heatmap/interp2d\"),m=t(\"../heatmap/find_empties\"),v=t(\"../heatmap/make_bound_array\"),g=t(\"./defaults\"),y=t(\"../carpet/lookup_carpetid\");e.exports=function(t,e){var r=e.carpetTrace=y(t,e);if(r&&r.visible&&\"legendonly\"!==r.visible){if(!e.a||!e.b){var a=t.data[r.index],l=t.data[e.index];l.a||(l.a=a.a),l.b||(l.b=a.b),g(l,e,e._defaultColor,t._fullLayout)}var u=i(t,e),c=e.contours;if(!0===e.autocontour){var h=n(e.zmin,e.zmax,e.ncontours);c.size=h.dtick,c.start=o.tickFirst(h),h.range.reverse(),c.end=o.tickFirst(h),c.start===e.zmin&&(c.start+=c.size),c.end===e.zmax&&(c.end-=c.size),c.start>c.end&&(c.start=c.end=(c.start+c.end)/2),e._input.contours=s({},c)}else{var f=c.start,d=c.end,p=e._input.contours;if(f>d&&(c.start=p.start=d,d=c.end=p.end=f,f=c.start),!(c.size>0)){var m;m=f===d?1:n(f,d,e.ncontours).dtick,p.size=c.size=m}}return u}}},{\"../../components/colorscale/calc\":610,\"../../lib\":728,\"../../plots/cartesian/axes\":772,\"../../registry\":846,\"../carpet/lookup_carpetid\":903,\"../heatmap/clean_2d_array\":950,\"../heatmap/convert_column_xyz\":952,\"../heatmap/find_empties\":954,\"../heatmap/has_columns\":955,\"../heatmap/interp2d\":958,\"../heatmap/make_bound_array\":959,\"../heatmap/max_row_length\":960,\"./defaults\":942}],937:[function(t,e,r){\"use strict\";e.exports=function(t,e,r,n){var i,a,o,s=n.a.length,l=n.b.length,u=n.z,c=-1/0,h=1/0;for(i=0;i<l;i++)h=Math.min(h,u[i][0]),h=Math.min(h,u[i][s-1]),c=Math.max(c,u[i][0]),c=Math.max(c,u[i][s-1]);for(i=1;i<s-1;i++)h=Math.min(h,u[0][i]),h=Math.min(h,u[l-1][i]),c=Math.max(c,u[0][i]),c=Math.max(c,u[l-1][i]);switch(e){case\">\":case\">=\":n.contours.value>c&&(t[0].prefixBoundary=!0);break;case\"<\":case\"<=\":n.contours.value<h&&(t[0].prefixBoundary=!0);break;case\"[]\":case\"()\":a=Math.min.apply(null,n.contours.value),o=Math.max.apply(null,n.contours.value),o<h&&(t[0].prefixBoundary=!0),a>c&&(t[0].prefixBoundary=!0);break;case\"][\":case\")(\":a=Math.min.apply(null,n.contours.value),o=Math.max.apply(null,n.contours.value),a<h&&o>c&&(t[0].prefixBoundary=!0)}}},{}],938:[function(t,e,r){\"use strict\";e.exports={INEQUALITY_OPS:[\"=\",\"<\",\">=\",\">\",\"<=\"],INTERVAL_OPS:[\"[]\",\"()\",\"[)\",\"(]\",\"][\",\")(\",\"](\",\")[\"],SET_OPS:[\"{}\",\"}{\"]}},{}],939:[function(t,e,r){\"use strict\";function n(t,e){function r(t){return s(t)?+t:null}var n,i=Array.isArray(e);return-1!==o.INEQUALITY_OPS.indexOf(t)?n=r(i?e[0]:e):-1!==o.INTERVAL_OPS.indexOf(t)?n=i?[r(e[0]),r(e[1])]:[r(e),r(e)]:-1!==o.SET_OPS.indexOf(t)&&(n=i?e.map(r):[r(e)]),n}function i(t){return function(e){e=n(t,e);var r=Math.min(e[0],e[1]),i=Math.max(e[0],e[1]);return{start:r,end:i,size:i-r}}}function a(t){return function(e){return e=n(t,e),{start:e,end:1/0,size:1/0}}}var o=t(\"./constants\"),s=t(\"fast-isnumeric\");e.exports[\"[]\"]=i(\"[]\"),e.exports[\"()\"]=i(\"()\"),e.exports[\"[)\"]=i(\"[)\"),e.exports[\"(]\"]=i(\"(]\"),e.exports[\"][\"]=i(\"][\"),e.exports[\")(\"]=i(\")(\"),e.exports[\")[\"]=i(\")[\"),e.exports[\"](\"]=i(\"](\"),e.exports[\">\"]=a(\">\"),e.exports[\">=\"]=a(\">=\"),e.exports[\"<\"]=a(\"<\"),e.exports[\"<=\"]=a(\"<=\"),e.exports[\"=\"]=a(\"=\")},{\"./constants\":938,\"fast-isnumeric\":131}],940:[function(t,e,r){\"use strict\";var n=t(\"./constraint_mapping\"),i=t(\"fast-isnumeric\");e.exports=function(t,e){var r;-1===[\"=\",\"<\",\"<=\",\">\",\">=\"].indexOf(e.operation)?(t(\"contours.value\",[0,1]),Array.isArray(e.value)?e.value.length>2?e.value=e.value.slice(2):0===e.length?e.value=[0,1]:e.length<2?(r=parseFloat(e.value[0]),e.value=[r,r+1]):e.value=[parseFloat(e.value[0]),parseFloat(e.value[1])]:i(e.value)&&(r=parseFloat(e.value),e.value=[r,r+1])):(t(\"contours.value\",0),i(e.value)||(Array.isArray(e.value)?e.value=parseFloat(e.value[0]):e.value=0));var a=n[e.operation](e.value);e.start=a.start,e.end=a.end,e.size=a.size}},{\"./constraint_mapping\":939,\"fast-isnumeric\":131}],941:[function(t,e,r){\"use strict\";var n=t(\"../../lib\");e.exports=function(t,e){var r,i,a,o=function(t){return t.reverse()},s=function(t){return t};switch(e){case\"][\":case\")[\":case\"](\":case\")(\":var l=o;o=s,s=l;case\"[]\":case\"[)\":case\"(]\":case\"()\":if(2!==t.length)return void n.warn(\"Contour data invalid for the specified inequality range operation.\");for(i=t[0],a=t[1],r=0;r<i.edgepaths.length;r++)i.edgepaths[r]=o(i.edgepaths[r]);for(r=0;r<i.paths.length;r++)i.paths[r]=o(i.paths[r]);for(;a.edgepaths.length;)i.edgepaths.push(s(a.edgepaths.shift()));for(;a.paths.length;)i.paths.push(s(a.paths.shift()));t.pop();break;case\">=\":case\">\":if(1!==t.length)return void n.warn(\"Contour data invalid for the specified inequality operation.\");for(i=t[0],r=0;r<i.edgepaths.length;r++)i.edgepaths[r]=o(i.edgepaths[r]);for(r=0;r<i.paths.length;r++)i.paths[r]=o(i.paths[r])}}},{\"../../lib\":728}],942:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../heatmap/xyz_defaults\"),a=t(\"./attributes\"),o=t(\"../contour/style_defaults\"),s=t(\"../scatter/fillcolor_defaults\"),l=t(\"../../plots/attributes\"),u=t(\"./constraint_value_defaults\"),c=t(\"../../components/color\").addOpacity;e.exports=function(t,e,r,h){function f(r,i){return n.coerce(t,e,a,r,i)}if(f(\"carpet\"),t.a&&t.b){var d,p,m,v,g;if(!i(t,e,f,h,\"a\",\"b\"))return void(e.visible=!1);f(\"text\"),f(\"contours.type\");var y=e.contours;if(\"constraint\"===y.type){f(\"contours.operation\"),u(f,y),n.coerce(t,e,l,\"showlegend\",!0),f(\"contours.coloring\",\"=\"===y.operation?\"lines\":\"fill\"),f(\"contours.showlines\",!0),\"=\"===y.operation&&(y.coloring=\"lines\"),s(t,e,r,f);var b=e.fillcolor?c(e.fillcolor,1):r;o(t,e,f,h,b,2),\"=\"===y.operation&&(f(\"line.color\",r),\"fill\"===y.coloring&&(y.coloring=\"lines\"),\"lines\"===y.coloring&&delete e.fillcolor),delete e.showscale,delete e.autocontour,delete e.autocolorscale,delete e.colorscale,delete e.ncontours,delete e.colorbar,e.line&&(delete e.line.autocolorscale,delete e.line.colorscale,delete e.line.mincolor,delete e.line.maxcolor)}else n.coerce(t,e,l,\"showlegend\",!1),p=n.coerce2(t,e,a,\"contours.start\"),m=n.coerce2(t,e,a,\"contours.end\"),d=f(\"contours.size\"),f(\"contours.coloring\"),v=!1===p||!1===m,g=v?e.autocontour=!0:f(\"autocontour\",!1),!g&&d||f(\"ncontours\"),o(t,e,f,h),delete e.value,delete e.operation}else e._defaultColor=r}},{\"../../components/color\":604,\"../../lib\":728,\"../../plots/attributes\":770,\"../contour/style_defaults\":934,\"../heatmap/xyz_defaults\":963,\"../scatter/fillcolor_defaults\":1039,\"./attributes\":935,\"./constraint_value_defaults\":940}],943:[function(t,e,r){\"use strict\";var n=t(\"../../lib\");e.exports=function(t,e,r){for(var i=t.size,a=[],o=r.trace.carpetTrace,s=t.start;s<t.end+i/10;s+=i)if(a.push({level:s,crossings:{},starts:[],edgepaths:[],paths:[],xaxis:o.aaxis,yaxis:o.baxis,x:r.a,y:r.b,z:r.z,smoothing:r.trace.line.smoothing}),a.length>1e3){n.warn(\"Too many contours, clipping at 1000\",t);break}return a}},{\"../../lib\":728}],944:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.supplyDefaults=t(\"./defaults\"),n.colorbar=t(\"../contour/colorbar\"),n.calc=t(\"./calc\"),n.plot=t(\"./plot\"),n.style=t(\"../contour/style\"),n.moduleType=\"trace\",n.name=\"contourcarpet\",n.basePlotModule=t(\"../../plots/cartesian\"),n.categories=[\"cartesian\",\"carpet\",\"contour\",\"symbols\",\"showLegend\",\"hasLines\",\"carpetDependent\"],n.meta={},e.exports=n},{\"../../plots/cartesian\":782,\"../contour/colorbar\":922,\"../contour/style\":933,\"./attributes\":935,\"./calc\":936,\"./defaults\":942,\"./plot\":947}],945:[function(t,e,r){\"use strict\";var n=t(\"../../components/drawing\"),i=t(\"../carpet/axis_aligned_line\"),a=t(\"../../lib\");e.exports=function(t,e,r,o,s,l,u,c){function h(t){return Math.abs(t[1]-r[0][1])<S}function f(t){return Math.abs(t[1]-r[2][1])<S}function d(t){return Math.abs(t[0]-r[0][0])<T}function p(t){return Math.abs(t[0]-r[2][0])<T}function m(t,e){var r,n,a,o,m=\"\";for(h(t)&&!p(t)||f(t)&&!d(t)?(o=s.aaxis,a=i(s,l,[t[0],e[0]],.5*(t[1]+e[1]))):(o=s.baxis,a=i(s,l,.5*(t[0]+e[0]),[t[1],e[1]])),r=1;r<a.length;r++)for(m+=o.smoothing?\"C\":\"L\",n=0;n<a[r].length;n++){var v=a[r][n];m+=[u.c2p(v[0]),c.c2p(v[1])]+\" \"}return m}var v,g,y,b,x,_,w,M=\"\",k=e.edgepaths.map(function(t,e){return e}),A=!0,T=1e-4*Math.abs(r[0][0]-r[2][0]),S=1e-4*Math.abs(r[0][1]-r[2][1]);for(v=0,g=null;k.length;){var E=e.edgepaths[v][0];for(g&&(M+=m(g,E)),w=n.smoothopen(e.edgepaths[v].map(o),e.smoothing),M+=A?w:w.replace(/^M/,\"L\"),k.splice(k.indexOf(v),1),g=e.edgepaths[v][e.edgepaths[v].length-1],x=-1,b=0;b<4;b++){if(!g){a.log(\"Missing end?\",v,e);break}for(h(g)&&!p(g)?y=r[1]:d(g)?y=r[0]:f(g)?y=r[3]:p(g)&&(y=r[2]),_=0;_<e.edgepaths.length;_++){var L=e.edgepaths[_][0];Math.abs(g[0]-y[0])<T?Math.abs(g[0]-L[0])<T&&(L[1]-g[1])*(y[1]-L[1])>=0&&(y=L,x=_):Math.abs(g[1]-y[1])<S?Math.abs(g[1]-L[1])<S&&(L[0]-g[0])*(y[0]-L[0])>=0&&(y=L,x=_):a.log(\"endpt to newendpt is not vert. or horz.\",g,y,L)}if(x>=0)break;M+=m(g,y),g=y}if(x===e.edgepaths.length){a.log(\"unclosed perimeter path\");break}v=x,A=-1===k.indexOf(v),A&&(v=k[0],M+=m(g,y)+\"Z\",g=null)}for(v=0;v<e.paths.length;v++)M+=n.smoothclosed(e.paths[v].map(o),e.smoothing);return M}},{\"../../components/drawing\":628,\"../../lib\":728,\"../carpet/axis_aligned_line\":886}],946:[function(t,e,r){\"use strict\";e.exports=function(t,e){var r,n,i,a,o,s,l,u,c;for(r=0;r<t.length;r++){for(a=t[r],o=a.pedgepaths=[],s=a.ppaths=[],n=0;n<a.edgepaths.length;n++){for(c=a.edgepaths[n],l=[],i=0;i<c.length;i++)l[i]=e(c[i]);o.push(l)}for(n=0;n<a.paths.length;n++){for(c=a.paths[n],u=[],i=0;i<c.length;i++)u[i]=e(c[i]);s.push(u)}}}},{}],947:[function(t,e,r){\"use strict\";function n(t,e,r){function n(t){var e=o.ab2xy(t[0],t[1],!0);return[_.c2p(e[0]),T.c2p(e[1])]}var a=r[0].trace,o=a.carpetTrace=k(t,a),s=t.calcdata[o.index][0];if(o.visible&&\"legendonly\"!==o.visible){var l=r[0].a,h=r[0].b,m=a.contours,b=a.uid,_=e.xaxis,T=e.yaxis,S=t._fullLayout,E=\"contour\"+b,L=w(m,e,r[0]),C=\"constraint\"===a.contours.type;if(!0!==a.visible)return void S._infolayer.selectAll(\".cb\"+b).remove();var I=[[l[0],h[h.length-1]],[l[l.length-1],h[h.length-1]],[l[l.length-1],h[0]],[l[0],h[0]]];v(L);var z=1e-8*(l[l.length-1]-l[0]),D=1e-8*(h[h.length-1]-h[0]);g(L,z,D),\"constraint\"===a.contours.type&&(x(L,a.contours.operation),A(L,a.contours.operation,I,a)),M(L,n);var P,O,R,F,j=y.makeContourGroup(e,r,E),N=[];for(F=s.clipsegments.length-1;F>=0;F--)P=s.clipsegments[F],O=f([],P.x,_.c2p),R=f([],P.y,T.c2p),O.reverse(),R.reverse(),N.push(d(O,R,P.bicubic));var B=\"M\"+N.join(\"L\")+\"Z\";u(j,s.clipsegments,_,T,C,m.coloring),c(a,j,_,T,L,I,n,o,s,m.coloring,B),i(j,L,t,r[0],m,e,o),p.setClipUrl(j,o._clipPathId)}}function i(t,e,r,n,i,o,s){var l=t.selectAll(\"g.contourlines\").data([0]);l.enter().append(\"g\").classed(\"contourlines\",!0);var u=!1!==i.showlines,c=i.showlabels,f=u&&c,d=y.createLines(l,u||c,e),v=y.createLineClip(l,f,r._fullLayout._defs,n.trace.uid),g=t.selectAll(\"g.contourlabels\").data(c?[0]:[]);if(g.exit().remove(),g.enter().append(\"g\").classed(\"contourlabels\",!0),c){var x=o.xaxis,_=o.yaxis,w=x._length,M=_._length,k=[[[0,0],[w,0],[w,M],[0,M]]],A=[];m.clearLocationCache();var T=y.labelFormatter(i,n.t.cb,r._fullLayout),S=p.tester.append(\"text\").attr(\"data-notex\",1).call(p.font,i.labelfont),E={left:0,right:w,center:w/2,top:0,bottom:M,middle:M/2},L=Math.sqrt(w*w+M*M),C=b.LABELDISTANCE*L/Math.max(1,e.length/b.LABELINCREASE);d.each(function(t){var e=y.calcTextOpts(t.level,T,S,r);h.select(this).selectAll(\"path\").each(function(r){var n=this,i=m.getVisibleSegment(n,E,e.height/2);if(i&&(a(n,r,t,i,s,e.height),!(i.len<(e.width+e.height)*b.LABELMIN)))for(var o=Math.min(Math.ceil(i.len/C),b.LABELMAX),l=0;l<o;l++){var u=y.findBestTextLocation(n,i,e,A,E);if(!u)break;y.addLabelData(u,e,A,k)}})}),S.remove(),y.drawLabels(g,A,r,v,f?k:null)}c&&!u&&d.remove()}function a(t,e,r,n,i,a){function u(t,e){var r,n=0;return(Math.abs(t[0]-f)<.1||Math.abs(t[0]-d)<.1)&&(r=s(i.dxydb_rough(t[0],t[1],.1)),n=Math.max(n,a*l(e,r)/2)),(Math.abs(t[1]-p)<.1||Math.abs(t[1]-m)<.1)&&(r=s(i.dxyda_rough(t[0],t[1],.1)),n=Math.max(n,a*l(e,r)/2)),n}for(var c,h=0;h<r.pedgepaths.length;h++)e===r.pedgepaths[h]&&(c=r.edgepaths[h]);if(c){var f=i.a[0],d=i.a[i.a.length-1],p=i.b[0],m=i.b[i.b.length-1],v=o(t,0,1),g=o(t,n.total,n.total-1),y=u(c[0],v),b=n.total-u(c[c.length-1],g);n.min<y&&(n.min=y),n.max>b&&(n.max=b),n.len=n.max-n.min}}function o(t,e,r){var n=t.getPointAtLength(e),i=t.getPointAtLength(r),a=i.x-n.x,o=i.y-n.y,s=Math.sqrt(a*a+o*o);return[a/s,o/s]}function s(t){var e=Math.sqrt(t[0]*t[0]+t[1]*t[1]);return[t[0]/e,t[1]/e]}function l(t,e){var r=Math.abs(t[0]*e[0]+t[1]*e[1]);return Math.sqrt(1-r*r)/r}function u(t,e,r,n,i,a){var o,s,l,u,c=t.selectAll(\"g.contourbg\").data([0]);c.enter().append(\"g\").classed(\"contourbg\",!0);var h=c.selectAll(\"path\").data(\"fill\"!==a||i?[]:[0]);h.enter().append(\"path\"),h.exit().remove();var p=[];for(u=0;u<e.length;u++)o=e[u],s=f([],o.x,r.c2p),l=f([],o.y,n.c2p),p.push(d(s,l,o.bicubic));h.attr(\"d\",\"M\"+p.join(\"L\")+\"Z\").style(\"stroke\",\"none\")}function c(t,e,r,n,i,a,o,s,l,u,c){var f=e.selectAll(\"g.contourfill\").data([0]);f.enter().append(\"g\").classed(\"contourfill\",!0);var d=f.selectAll(\"path\").data(\"fill\"===u?i:[]);d.enter().append(\"path\"),d.exit().remove(),d.each(function(e){var i=_(t,e,a,o,s,l,r,n);e.prefixBoundary&&(i=c+i),i?h.select(this).attr(\"d\",i).style(\"stroke\",\"none\"):h.select(this).remove()})}var h=t(\"d3\"),f=t(\"../carpet/map_1d_array\"),d=t(\"../carpet/makepath\"),p=t(\"../../components/drawing\"),m=t(\"../../lib\"),v=t(\"../contour/make_crossings\"),g=t(\"../contour/find_all_paths\"),y=t(\"../contour/plot\"),b=t(\"../contour/constants\"),x=t(\"./convert_to_constraints\"),_=t(\"./join_all_paths\"),w=t(\"./empty_pathinfo\"),M=t(\"./map_pathinfo\"),k=t(\"../carpet/lookup_carpetid\"),A=t(\"./close_boundaries\");e.exports=function(t,e,r){for(var i=0;i<r.length;i++)n(t,e,r[i])}},{\"../../components/drawing\":628,\"../../lib\":728,\"../carpet/lookup_carpetid\":903,\"../carpet/makepath\":904,\"../carpet/map_1d_array\":905,\"../contour/constants\":923,\"../contour/find_all_paths\":927,\"../contour/make_crossings\":931,\"../contour/plot\":932,\"./close_boundaries\":937,\"./convert_to_constraints\":941,\"./empty_pathinfo\":943,\"./join_all_paths\":945,\"./map_pathinfo\":946,d3:122}],948:[function(t,e,r){\"use strict\";var n=t(\"../scatter/attributes\"),i=t(\"../../components/colorscale/attributes\"),a=t(\"../../components/colorbar/attributes\"),o=t(\"../../lib/extend\").extendFlat;e.exports=o({},{z:{valType:\"data_array\",editType:\"calc\"},x:o({},n.x,{impliedEdits:{xtype:\"array\"}}),x0:o({},n.x0,{impliedEdits:{xtype:\"scaled\"}}),dx:o({},n.dx,{impliedEdits:{xtype:\"scaled\"}}),y:o({},n.y,{impliedEdits:{ytype:\"array\"}}),y0:o({},n.y0,{impliedEdits:{ytype:\"scaled\"}}),dy:o({},n.dy,{impliedEdits:{ytype:\"scaled\"}}),text:{valType:\"data_array\",editType:\"calc\"},transpose:{valType:\"boolean\",dflt:!1,editType:\"calc\"},xtype:{valType:\"enumerated\",values:[\"array\",\"scaled\"],editType:\"calc+clearAxisTypes\"},ytype:{valType:\"enumerated\",values:[\"array\",\"scaled\"],editType:\"calc+clearAxisTypes\"},zsmooth:{valType:\"enumerated\",values:[\"fast\",\"best\",!1],dflt:!1,editType:\"calc\"},connectgaps:{valType:\"boolean\",dflt:!1,editType:\"calc\"},xgap:{valType:\"number\",dflt:0,min:0,editType:\"plot\"},ygap:{valType:\"number\",dflt:0,min:0,editType:\"plot\"}},i,{autocolorscale:o({},i.autocolorscale,{dflt:!1})},{colorbar:a})},{\"../../components/colorbar/attributes\":605,\"../../components/colorscale/attributes\":609,\"../../lib/extend\":717,\"../scatter/attributes\":1031}],949:[function(t,e,r){\"use strict\";var n=t(\"../../registry\"),i=t(\"../../lib\"),a=t(\"../../plots/cartesian/axes\"),o=t(\"../histogram2d/calc\"),s=t(\"../../components/colorscale/calc\"),l=t(\"./has_columns\"),u=t(\"./convert_column_xyz\"),c=t(\"./max_row_length\"),h=t(\"./clean_2d_array\"),f=t(\"./interp2d\"),d=t(\"./find_empties\"),p=t(\"./make_bound_array\");e.exports=function(t,e){function r(t){E=e._input.zsmooth=e.zsmooth=!1,i.notifier(\"cannot fast-zsmooth: \"+t)}var m,v,g,y,b,x,_,w,M=a.getFromId(t,e.xaxis||\"x\"),k=a.getFromId(t,e.yaxis||\"y\"),A=n.traceIs(e,\"contour\"),T=n.traceIs(e,\"histogram\"),S=n.traceIs(e,\"gl2d\"),E=A?\"best\":e.zsmooth;if(M._minDtick=0,k._minDtick=0,T){var L=o(t,e);m=L.x,v=L.x0,g=L.dx,y=L.y,b=L.y0,x=L.dy,_=L.z}else l(e)?(u(e,M,k,\"x\",\"y\",[\"z\"]),m=e.x,y=e.y):(m=e.x?M.makeCalcdata(e,\"x\"):[],y=e.y?k.makeCalcdata(e,\"y\"):[]),v=e.x0||0,g=e.dx||1,b=e.y0||0,x=e.dy||1,_=h(e.z,e.transpose),(A||e.connectgaps)&&(e._emptypoints=d(_),e._interpz=f(_,e._emptypoints,e._interpz));if(\"fast\"===E)if(\"log\"===M.type||\"log\"===k.type)r(\"log axis found\");else if(!T){if(m.length){var C=(m[m.length-1]-m[0])/(m.length-1),I=Math.abs(C/100);for(w=0;w<m.length-1;w++)if(Math.abs(m[w+1]-m[w]-C)>I){r(\"x scale is not linear\");break}}if(y.length&&\"fast\"===E){var z=(y[y.length-1]-y[0])/(y.length-1),D=Math.abs(z/100);for(w=0;w<y.length-1;w++)if(Math.abs(y[w+1]-y[w]-z)>D){r(\"y scale is not linear\");break}}}var P=c(_),O=\"scaled\"===e.xtype?\"\":m,R=p(e,O,v,g,P,M),F=\"scaled\"===e.ytype?\"\":y,j=p(e,F,b,x,_.length,k);S||(a.expand(M,R),a.expand(k,j));var N={x:R,y:j,z:_,text:e.text};if(s(e,_,\"\",\"z\"),A&&e.contours&&\"heatmap\"===e.contours.coloring){var B={type:\"contour\"===e.type?\"heatmap\":\"histogram2d\",xcalendar:e.xcalendar,ycalendar:e.ycalendar};N.xfill=p(B,O,v,g,P,M),N.yfill=p(B,F,b,x,_.length,k)}return[N]}},{\"../../components/colorscale/calc\":610,\"../../lib\":728,\"../../plots/cartesian/axes\":772,\"../../registry\":846,\"../histogram2d/calc\":977,\"./clean_2d_array\":950,\"./convert_column_xyz\":952,\"./find_empties\":954,\"./has_columns\":955,\"./interp2d\":958,\"./make_bound_array\":959,\"./max_row_length\":960}],950:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\");e.exports=function(t,e){var r,i,a,o,s,l;if(e){for(r=0,s=0;s<t.length;s++)r=Math.max(r,t[s].length);if(0===r)return!1;a=function(t){return t.length},o=function(t,e,r){return t[r][e]}}else r=t.length,a=function(t,e){return t[e].length},o=function(t,e,r){return t[e][r]};var u=new Array(r);for(s=0;s<r;s++)for(i=a(t,s),u[s]=new Array(i),l=0;l<i;l++)u[s][l]=function(t){if(n(t))return+t}(o(t,s,l));return u}},{\"fast-isnumeric\":131}],951:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../../lib\"),a=t(\"../../plots/plots\"),o=t(\"../../components/colorscale\"),s=t(\"../../components/colorbar/draw\");e.exports=function(t,e){var r=e[0].trace,l=\"cb\"+r.uid,u=r.zmin,c=r.zmax;if(n(u)||(u=i.aggNums(Math.min,null,r.z)),n(c)||(c=i.aggNums(Math.max,null,r.z)),t._fullLayout._infolayer.selectAll(\".\"+l).remove(),!r.showscale)return void a.autoMargin(t,l);var h=e[0].t.cb=s(t,l),f=o.makeColorScaleFunc(o.extractScale(r.colorscale,u,c),{noNumericCheck:!0});h.fillcolor(f).filllevels({start:u,end:c,size:(c-u)/254}).options(r.colorbar)()}},{\"../../components/colorbar/draw\":607,\"../../components/colorscale\":618,\"../../lib\":728,\"../../plots/plots\":831,\"fast-isnumeric\":131}],952:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../constants/numerical\").BADNUM;e.exports=function(t,e,r,a,o,s){a=a||\"x\",o=o||\"y\",s=s||[\"z\"];var l,u,c,h,f,d=t[a].slice(),p=t[o].slice(),m=t.text,v=Math.min(d.length,p.length),g=void 0!==m&&!Array.isArray(m[0]),y=t[a+\"calendar\"],b=t[o+\"calendar\"];for(l=0;l<s.length;l++)(c=t[s[l]])&&(v=Math.min(v,c.length));for(v<d.length&&(d=d.slice(0,v)),v<p.length&&(p=p.slice(0,v)),l=0;l<v;l++)d[l]=e.d2c(d[l],0,y),p[l]=r.d2c(p[l],0,b);var x=n.distinctVals(d),_=x.vals,w=n.distinctVals(p),M=w.vals,k=[];for(l=0;l<s.length;l++)k[l]=n.init2dArray(M.length,_.length);var A,T,S;for(g&&(S=n.init2dArray(M.length,_.length)),l=0;l<v;l++)if(d[l]!==i&&p[l]!==i){for(A=n.findBin(d[l]+x.minDiff/2,_),T=n.findBin(p[l]+w.minDiff/2,M),u=0;u<s.length;u++)f=s[u],c=t[f],h=k[u],h[T][A]=c[l];g&&(S[T][A]=m[l])}for(t[a]=_,t[o]=M,u=0;u<s.length;u++)t[s[u]]=k[u];g&&(t.text=S)}},{\"../../constants/numerical\":707,\"../../lib\":728}],953:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"./has_columns\"),a=t(\"./xyz_defaults\"),o=t(\"../../components/colorscale/defaults\"),s=t(\"./attributes\");e.exports=function(t,e,r,l){function u(r,i){return n.coerce(t,e,s,r,i)}if(!a(t,e,u,l))return void(e.visible=!1);u(\"text\"),!1===u(\"zsmooth\")&&(u(\"xgap\"),u(\"ygap\")),u(\"connectgaps\",i(e)&&!1!==e.zsmooth),o(t,e,l,u,{prefix:\"\",cLetter:\"z\"})}},{\"../../components/colorscale/defaults\":613,\"../../lib\":728,\"./attributes\":948,\"./has_columns\":955,\"./xyz_defaults\":963}],954:[function(t,e,r){\"use strict\";var n=t(\"./max_row_length\");e.exports=function(t){var e,r,i,a,o,s,l,u,c=[],h={},f=[],d=t[0],p=[],m=[0,0,0],v=n(t);for(r=0;r<t.length;r++)for(e=p,p=d,d=t[r+1]||[],i=0;i<v;i++)void 0===p[i]&&(s=(void 0!==p[i-1]?1:0)+(void 0!==p[i+1]?1:0)+(void 0!==e[i]?1:0)+(void 0!==d[i]?1:0),s?(0===r&&s++,0===i&&s++,r===t.length-1&&s++,i===p.length-1&&s++,s<4&&(h[[r,i]]=[r,i,s]),c.push([r,i,s])):f.push([r,i]));for(;f.length;){for(l={},u=!1,o=f.length-1;o>=0;o--)a=f[o],r=a[0],i=a[1],(s=((h[[r-1,i]]||m)[2]+(h[[r+1,i]]||m)[2]+(h[[r,i-1]]||m)[2]+(h[[r,i+1]]||m)[2])/20)&&(l[a]=[r,i,s],f.splice(o,1),u=!0);if(!u)throw\"findEmpties iterated with no new neighbors\";for(a in l)h[a]=l[a],c.push(l[a])}return c.sort(function(t,e){return e[2]-t[2]})}},{\"./max_row_length\":960}],955:[function(t,e,r){\"use strict\";e.exports=function(t){return!Array.isArray(t.z[0])}},{}],956:[function(t,e,r){\"use strict\";var n=t(\"../../components/fx\"),i=t(\"../../lib\"),a=n.constants.MAXDIST;e.exports=function(t,e,r,o,s){if(!(t.distance<a)){var l,u,c,h,f=t.cd[0],d=f.trace,p=t.xa,m=t.ya,v=f.x,g=f.y,y=f.z,b=f.zmask,x=v,_=g;if(!1!==t.index){try{c=Math.round(t.index[1]),h=Math.round(t.index[0])}catch(e){return void i.error(\"Error hovering on heatmap, pointNumber must be [row,col], found:\",t.index)}if(c<0||c>=y[0].length||h<0||h>y.length)return}else{if(n.inbox(e-v[0],e-v[v.length-1])>a||n.inbox(r-g[0],r-g[g.length-1])>a)return;if(s){var w;for(x=[2*v[0]-v[1]],w=1;w<v.length;w++)x.push((v[w]+v[w-1])/2);for(x.push([2*v[v.length-1]-v[v.length-2]]),_=[2*g[0]-g[1]],w=1;w<g.length;w++)_.push((g[w]+g[w-1])/2);_.push([2*g[g.length-1]-g[g.length-2]])}c=Math.max(0,Math.min(x.length-2,i.findBin(e,x))),h=Math.max(0,Math.min(_.length-2,i.findBin(r,_)))}var M=p.c2p(v[c]),k=p.c2p(v[c+1]),A=m.c2p(g[h]),T=m.c2p(g[h+1]);s?(k=M,l=v[c],T=A,u=g[h]):(l=(v[c]+v[c+1])/2,u=(g[h]+g[h+1])/2,d.zsmooth&&(M=k=(M+k)/2,A=T=(A+T)/2));var S=y[h][c];b&&!b[h][c]&&(S=void 0);var E;return Array.isArray(f.text)&&Array.isArray(f.text[h])&&(E=f.text[h][c]),[i.extendFlat(t,{\n", "index:[h,c],distance:a+10,x0:M,x1:k,y0:A,y1:T,xLabelVal:l,yLabelVal:u,zLabelVal:S,text:E})]}}},{\"../../components/fx\":645,\"../../lib\":728}],957:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.supplyDefaults=t(\"./defaults\"),n.calc=t(\"./calc\"),n.plot=t(\"./plot\"),n.colorbar=t(\"./colorbar\"),n.style=t(\"./style\"),n.hoverPoints=t(\"./hover\"),n.moduleType=\"trace\",n.name=\"heatmap\",n.basePlotModule=t(\"../../plots/cartesian\"),n.categories=[\"cartesian\",\"2dMap\"],n.meta={},e.exports=n},{\"../../plots/cartesian\":782,\"./attributes\":948,\"./calc\":949,\"./colorbar\":951,\"./defaults\":953,\"./hover\":956,\"./plot\":961,\"./style\":962}],958:[function(t,e,r){\"use strict\";function n(t){return.5-.25*Math.min(1,.5*t)}function i(t,e,r){var n,i,a,s,l,u,c,h,f,d,p,m,v,g=0;for(s=0;s<e.length;s++){for(n=e[s],i=n[0],a=n[1],p=t[i][a],d=0,f=0,l=0;l<4;l++)u=o[l],(c=t[i+u[0]])&&void 0!==(h=c[a+u[1]])&&(0===d?m=v=h:(m=Math.min(m,h),v=Math.max(v,h)),f++,d+=h);if(0===f)throw\"iterateInterp2d order is wrong: no defined neighbors\";t[i][a]=d/f,void 0===p?f<4&&(g=1):(t[i][a]=(1+r)*t[i][a]-r*p,v>m&&(g=Math.max(g,Math.abs(t[i][a]-p)/(v-m))))}return g}var a=t(\"../../lib\"),o=[[-1,0],[1,0],[0,-1],[0,1]];e.exports=function(t,e,r){var o,s,l=1;if(Array.isArray(r))for(o=0;o<e.length;o++)s=e[o],t[s[0]][s[1]]=r[s[0]][s[1]];else i(t,e);for(o=0;o<e.length&&!(e[o][2]<4);o++);for(e=e.slice(o),o=0;o<100&&l>.01;o++)l=i(t,e,n(l));return l>.01&&a.log(\"interp2d didn't converge quickly\",l),t}},{\"../../lib\":728}],959:[function(t,e,r){\"use strict\";var n=t(\"../../registry\");e.exports=function(t,e,r,i,a,o){var s,l,u,c=[],h=n.traceIs(t,\"contour\"),f=n.traceIs(t,\"histogram\"),d=n.traceIs(t,\"gl2d\");if(Array.isArray(e)&&e.length>1&&!f&&\"category\"!==o.type){var p=e.length;if(!(p<=a))return h?e.slice(0,a):e.slice(0,a+1);if(h||d)c=e.slice(0,a);else if(1===a)c=[e[0]-.5,e[0]+.5];else{for(c=[1.5*e[0]-.5*e[1]],u=1;u<p;u++)c.push(.5*(e[u-1]+e[u]));c.push(1.5*e[p-1]-.5*e[p-2])}if(p<a){var m=c[c.length-1],v=m-c[c.length-2];for(u=p;u<a;u++)m+=v,c.push(m)}}else{l=i||1;var g=t[o._id.charAt(0)+\"calendar\"];for(s=f||\"category\"===o.type?o.r2c(r,0,g)||0:Array.isArray(e)&&1===e.length?e[0]:void 0===r?0:o.d2c(r,0,g),u=h||d?0:-.5;u<a;u++)c.push(s+l*u)}return c}},{\"../../registry\":846}],960:[function(t,e,r){\"use strict\";e.exports=function(t){for(var e=0,r=0;r<t.length;r++)e=Math.max(e,t[r].length);return e}},{}],961:[function(t,e,r){\"use strict\";function n(t,e,r){function n(t,e){var r=e.length-2,n=o.constrain(o.findBin(t,e),0,r),i=e[n],a=e[n+1],s=o.constrain(n+(t-i)/(a-i)-.5,0,r),l=Math.round(s),u=Math.abs(s-l);return s&&s!==r&&u?{bin0:l,frac:u,bin1:Math.round(l+u/(s-l))}:{bin0:l,bin1:l,frac:0}}function c(t,e){if(void 0!==t){var r=q(t);return r[0]=Math.round(r[0]),r[1]=Math.round(r[1]),r[2]=Math.round(r[2]),rt+=e,nt+=r[0]*e,it+=r[1]*e,at+=r[2]*e,r}return[0,0,0,0]}function h(t,e,r){t[e]=r[0],t[e+1]=r[1],t[e+2]=r[2],t[e+3]=Math.round(255*r[3])}var f=r[0].trace,d=f.uid,p=e.xaxis,m=e.yaxis,v=t._fullLayout,g=\"hm\"+d;if(v._paper.selectAll(\".contour\"+d).remove(),v._infolayer.selectAll(\"g.rangeslider-container\").selectAll(\".contour\"+d).remove(),!0!==f.visible)return v._paper.selectAll(\".\"+g).remove(),void v._infolayer.selectAll(\".cb\"+d).remove();var y,b,x,_,w,M,k=r[0].z,A=r[0].x,T=r[0].y,S=a.traceIs(f,\"contour\"),E=S?\"best\":f.zsmooth,L=k.length,C=u(k),I=!1,z=!1;for(M=0;void 0===y&&M<A.length-1;)y=p.c2p(A[M]),M++;for(M=A.length-1;void 0===b&&M>0;)b=p.c2p(A[M]),M--;for(b<y&&(x=b,b=y,y=x,I=!0),M=0;void 0===_&&M<T.length-1;)_=m.c2p(T[M]),M++;for(M=T.length-1;void 0===w&&M>0;)w=m.c2p(T[M]),M--;if(w<_&&(x=_,_=w,w=x,z=!0),S&&(A=r[0].xfill,T=r[0].yfill),\"fast\"!==E){var D=\"best\"===E?0:.5;y=Math.max(-D*p._length,y),b=Math.min((1+D)*p._length,b),_=Math.max(-D*m._length,_),w=Math.min((1+D)*m._length,w)}var P=Math.round(b-y),O=Math.round(w-_),R=P<=0||O<=0,F=e.plot.select(\".imagelayer\").selectAll(\"g.hm.\"+g).data(R?[]:[0]);if(F.enter().append(\"g\").classed(\"hm\",!0).classed(g,!0),F.exit().remove(),!R){var j,N;\"fast\"===E?(j=C,N=L):(j=P,N=O);var B=document.createElement(\"canvas\");B.width=j,B.height=N;var U,V,H=B.getContext(\"2d\"),q=s.makeColorScaleFunc(s.extractScale(f.colorscale,f.zmin,f.zmax),{noNumericCheck:!0,returnArray:!0});\"fast\"===E?(U=I?function(t){return C-1-t}:o.identity,V=z?function(t){return L-1-t}:o.identity):(U=function(t){return o.constrain(Math.round(p.c2p(A[t])-y),0,P)},V=function(t){return o.constrain(Math.round(m.c2p(T[t])-_),0,O)});var G,Y,W,X,Z,J,K,Q=V(0),$=[Q,Q],tt=I?0:1,et=z?0:1,rt=0,nt=0,it=0,at=0;if(E){var ot,st=0;try{ot=new Uint8Array(P*O*4)}catch(t){ot=new Array(P*O*4)}if(\"best\"===E){var lt,ut,ct,ht=new Array(A.length),ft=new Array(T.length),dt=new Array(P);for(M=0;M<A.length;M++)ht[M]=Math.round(p.c2p(A[M])-y);for(M=0;M<T.length;M++)ft[M]=Math.round(m.c2p(T[M])-_);for(M=0;M<P;M++)dt[M]=n(M,ht);for(W=0;W<O;W++)for(lt=n(W,ft),ut=k[lt.bin0],ct=k[lt.bin1],M=0;M<P;M++,st+=4)K=function(t,e,r,n){var i=t[r.bin0];if(void 0===i)return c(void 0,1);var a,o=t[r.bin1],s=e[r.bin0],l=e[r.bin1],u=o-i||0,h=s-i||0;return a=void 0===o?void 0===l?0:void 0===s?2*(l-i):2*(2*l-s-i)/3:void 0===l?void 0===s?0:2*(2*i-o-s)/3:void 0===s?2*(2*l-o-i)/3:l+i-o-s,c(i+r.frac*u+n.frac*(h+r.frac*a))}(ut,ct,dt[M],lt),h(ot,st,K)}else for(W=0;W<L;W++)for(J=k[W],$=V(W),M=0;M<P;M++)K=c(J[M],1),st=4*($*P+U(M)),h(ot,st,K);var pt=H.createImageData(P,O);try{pt.data.set(ot)}catch(t){var mt=pt.data,vt=mt.length;for(W=0;W<vt;W++)mt[W]=ot[W]}H.putImageData(pt,0,0)}else for(W=0;W<L;W++)if(J=k[W],$.reverse(),$[et]=V(W+1),$[0]!==$[1]&&void 0!==$[0]&&void 0!==$[1])for(X=U(0),Y=[X,X],M=0;M<C;M++)Y.reverse(),Y[tt]=U(M+1),Y[0]!==Y[1]&&void 0!==Y[0]&&void 0!==Y[1]&&(Z=J[M],K=c(Z,(Y[1]-Y[0])*($[1]-$[0])),H.fillStyle=\"rgba(\"+K.join(\",\")+\")\",G=function(t,e,r,n,i,a,o,s,l){var u={x0:e,x1:r,y0:n,y1:i},c=2*t.xgap/3,h=2*t.ygap/3,f=t.xgap/3,d=t.ygap/3;return s===l-1&&(u.y1=i-h),a===o-1&&(u.x0=e+c),0===s&&(u.y0=n+h),0===a&&(u.x1=r-c),a>0&&a<o-1&&(u.x0=e+f,u.x1=r-f),s>0&&s<l-1&&(u.y0=n+d,u.y1=i-d),u}(f,Y[0],Y[1],$[0],$[1],M,C,W,L),H.fillRect(G.x0,G.y0,G.x1-G.x0,G.y1-G.y0));nt=Math.round(nt/rt),it=Math.round(it/rt),at=Math.round(at/rt);var gt=i(\"rgb(\"+nt+\",\"+it+\",\"+at+\")\");t._hmpixcount=(t._hmpixcount||0)+rt,t._hmlumcount=(t._hmlumcount||0)+rt*gt.getLuminance();var yt=F.selectAll(\"image\").data(r);yt.enter().append(\"svg:image\").attr({xmlns:l.svg,preserveAspectRatio:\"none\"}),yt.attr({height:O,width:P,x:y,y:_,\"xlink:href\":B.toDataURL(\"image/png\")}),yt.exit().remove()}}var i=t(\"tinycolor2\"),a=t(\"../../registry\"),o=t(\"../../lib\"),s=t(\"../../components/colorscale\"),l=t(\"../../constants/xmlns_namespaces\"),u=t(\"./max_row_length\");e.exports=function(t,e,r){for(var i=0;i<r.length;i++)n(t,e,r[i])}},{\"../../components/colorscale\":618,\"../../constants/xmlns_namespaces\":709,\"../../lib\":728,\"../../registry\":846,\"./max_row_length\":960,tinycolor2:534}],962:[function(t,e,r){\"use strict\";var n=t(\"d3\");e.exports=function(t){n.select(t).selectAll(\".hm image\").style(\"opacity\",function(t){return t.trace.opacity})}},{d3:122}],963:[function(t,e,r){\"use strict\";function n(t,e){var r=e(t);return\"scaled\"===(r?e(t+\"type\",\"array\"):\"scaled\")&&(e(t+\"0\"),e(\"d\"+t)),r}function i(t){for(var e,r=!0,n=!1,i=!1,o=0;o<t.length;o++){if(e=t[o],!Array.isArray(e)){r=!1;break}e.length>0&&(n=!0);for(var s=0;s<e.length;s++)if(a(e[s])){i=!0;break}}return r&&n&&i}var a=t(\"fast-isnumeric\"),o=t(\"../../registry\"),s=t(\"./has_columns\");e.exports=function(t,e,r,a,l,u){var c=r(\"z\");l=l||\"x\",u=u||\"y\";var h,f;if(void 0===c||!c.length)return 0;if(s(t)){if(h=r(l),f=r(u),!h||!f)return 0}else{if(h=n(l,r),f=n(u,r),!i(c))return 0;r(\"transpose\")}return o.getComponentMethod(\"calendars\",\"handleTraceDefaults\")(t,e,[l,u],a),e.z.length}},{\"../../registry\":846,\"./has_columns\":955,\"fast-isnumeric\":131}],964:[function(t,e,r){\"use strict\";for(var n=t(\"../heatmap/attributes\"),i=t(\"../../components/colorscale/attributes\"),a=t(\"../../components/colorbar/attributes\"),o=t(\"../../lib/extend\").extendFlat,s=t(\"../../plot_api/edit_types\").overrideAll,l=[\"z\",\"x\",\"x0\",\"dx\",\"y\",\"y0\",\"dy\",\"text\",\"transpose\",\"xtype\",\"ytype\"],u={},c=0;c<l.length;c++){var h=l[c];u[h]=n[h]}o(u,i,{autocolorscale:o({},i.autocolorscale,{dflt:!1})},{colorbar:a}),e.exports=s(u,\"calc\",\"nested\")},{\"../../components/colorbar/attributes\":605,\"../../components/colorscale/attributes\":609,\"../../lib/extend\":717,\"../../plot_api/edit_types\":756,\"../heatmap/attributes\":948}],965:[function(t,e,r){\"use strict\";function n(t,e){this.scene=t,this.uid=e,this.type=\"heatmapgl\",this.name=\"\",this.hoverinfo=\"all\",this.xData=[],this.yData=[],this.zData=[],this.textLabels=[],this.idToIndex=[],this.bounds=[0,0,0,0],this.options={z:[],x:[],y:[],shape:[0,0],colorLevels:[0],colorValues:[0,0,0,1]},this.heatmap=o(t.glplot,this.options),this.heatmap._trace=this}function i(t){for(var e=t.colorscale,r=t.zmin,n=t.zmax,i=e.length,a=new Array(i),o=new Array(4*i),s=0;s<i;s++){var u=e[s],c=l(u[1]);a[s]=r+u[0]*(n-r);for(var h=0;h<4;h++)o[4*s+h]=c[h]}return{colorLevels:a,colorValues:o}}function a(t,e,r){var i=new n(t,e.uid);return i.update(e,r),i}var o=t(\"gl-heatmap2d\"),s=t(\"../../plots/cartesian/axes\"),l=t(\"../../lib/str2rgbarray\"),u=n.prototype;u.handlePick=function(t){var e=this.options,r=e.shape,n=t.pointId,i=n%r[0],a=Math.floor(n/r[0]),o=n;return{trace:this,dataCoord:t.dataCoord,traceCoord:[e.x[i],e.y[a],e.z[o]],textLabel:this.textLabels[n],name:this.name,pointIndex:[a,i],hoverinfo:this.hoverinfo}},u.update=function(t,e){var r=e[0];this.index=t.index,this.name=t.name,this.hoverinfo=t.hoverinfo;var n=r.z;this.options.z=[].concat.apply([],n);var a=n[0].length,o=n.length;this.options.shape=[a,o],this.options.x=r.x,this.options.y=r.y;var l=i(t);this.options.colorLevels=l.colorLevels,this.options.colorValues=l.colorValues,this.textLabels=[].concat.apply([],t.text),this.heatmap.update(this.options),s.expand(this.scene.xaxis,r.x),s.expand(this.scene.yaxis,r.y)},u.dispose=function(){this.heatmap.dispose()},e.exports=a},{\"../../lib/str2rgbarray\":749,\"../../plots/cartesian/axes\":772,\"gl-heatmap2d\":166}],966:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.supplyDefaults=t(\"../heatmap/defaults\"),n.colorbar=t(\"../heatmap/colorbar\"),n.calc=t(\"../heatmap/calc\"),n.plot=t(\"./convert\"),n.moduleType=\"trace\",n.name=\"heatmapgl\",n.basePlotModule=t(\"../../plots/gl2d\"),n.categories=[\"gl2d\",\"2dMap\"],n.meta={},e.exports=n},{\"../../plots/gl2d\":808,\"../heatmap/calc\":949,\"../heatmap/colorbar\":951,\"../heatmap/defaults\":953,\"./attributes\":964,\"./convert\":965}],967:[function(t,e,r){\"use strict\";function n(t){var e={};e[\"autobin\"+t]=!1;var r={};return r[\"^autobin\"+t]=!1,{start:{valType:\"any\",dflt:null,editType:\"calc\",impliedEdits:r},end:{valType:\"any\",dflt:null,editType:\"calc\",impliedEdits:r},size:{valType:\"any\",dflt:null,editType:\"calc\",impliedEdits:r},editType:\"calc\",impliedEdits:e}}var i=t(\"../bar/attributes\");e.exports={x:{valType:\"data_array\",editType:\"calc+clearAxisTypes\"},y:{valType:\"data_array\",editType:\"calc+clearAxisTypes\"},text:i.text,orientation:i.orientation,histfunc:{valType:\"enumerated\",values:[\"count\",\"sum\",\"avg\",\"min\",\"max\"],dflt:\"count\",editType:\"calc\"},histnorm:{valType:\"enumerated\",values:[\"\",\"percent\",\"probability\",\"density\",\"probability density\"],dflt:\"\",editType:\"calc\"},cumulative:{enabled:{valType:\"boolean\",dflt:!1,editType:\"calc\"},direction:{valType:\"enumerated\",values:[\"increasing\",\"decreasing\"],dflt:\"increasing\",editType:\"calc\"},currentbin:{valType:\"enumerated\",values:[\"include\",\"exclude\",\"half\"],dflt:\"include\",editType:\"calc\"},editType:\"calc\"},autobinx:{valType:\"boolean\",dflt:null,editType:\"calc\",impliedEdits:{\"xbins.start\":void 0,\"xbins.end\":void 0,\"xbins.size\":void 0}},nbinsx:{valType:\"integer\",min:0,dflt:0,editType:\"calc\"},xbins:n(\"x\"),autobiny:{valType:\"boolean\",dflt:null,editType:\"calc\",impliedEdits:{\"ybins.start\":void 0,\"ybins.end\":void 0,\"ybins.size\":void 0}},nbinsy:{valType:\"integer\",min:0,dflt:0,editType:\"calc\"},ybins:n(\"y\"),marker:i.marker,error_y:i.error_y,error_x:i.error_x,_deprecated:{bardir:i._deprecated.bardir}}},{\"../bar/attributes\":856}],968:[function(t,e,r){\"use strict\";e.exports=function(t,e){for(var r=t.length,n=0,i=0;i<r;i++)e[i]?(t[i]/=e[i],n+=t[i]):t[i]=null;return n}},{}],969:[function(t,e,r){\"use strict\";e.exports=function(t,e,r,n){return r(\"histnorm\"),n.forEach(function(t){r(t+\"bins.start\"),r(t+\"bins.end\"),r(t+\"bins.size\"),r(\"autobin\"+t),r(\"nbins\"+t)}),e}},{}],970:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\");e.exports={count:function(t,e,r){return r[t]++,1},sum:function(t,e,r,i){var a=i[e];return n(a)?(a=Number(a),r[t]+=a,a):0},avg:function(t,e,r,i,a){var o=i[e];return n(o)&&(o=Number(o),r[t]+=o,a[t]++),0},min:function(t,e,r,i){var a=i[e];if(n(a)){if(a=Number(a),!n(r[t]))return r[t]=a,a;if(r[t]>a){var o=a-r[t];return r[t]=a,o}}return 0},max:function(t,e,r,i){var a=i[e];if(n(a)){if(a=Number(a),!n(r[t]))return r[t]=a,a;if(r[t]<a){var o=a-r[t];return r[t]=a,o}}return 0}}},{\"fast-isnumeric\":131}],971:[function(t,e,r){\"use strict\";function n(t,e,r,n,s){var l,c,f,d,p,m=n+\"bins\",v=\"overlay\"===t._fullLayout.barmode;if(e._autoBinFinished)delete e._autoBinFinished;else{var g=v?[e]:a(t,e),y=[],b=1/0,x=1/0,_=-1/0,w=\"autobin\"+n;for(l=0;l<g.length;l++){c=g[l],p=c._pos0=r.makeCalcdata(c,n);var M=c[m];if(c[w]||!M||null===M.start||null===M.end){f=c[n+\"calendar\"];var k=c.cumulative;if(M=h.autoBin(p,r,c[\"nbins\"+n],!1,f),v&&1===M._count&&\"category\"!==r.type){if(s)return[M,p,!0];M=i(t,e,r,n,m)}k.enabled&&\"include\"!==k.currentbin&&(\"decreasing\"===k.direction?x=Math.min(x,r.r2c(M.start,0,f)-M.size):_=Math.max(_,r.r2c(M.end,0,f)+M.size)),y.push(c)}else d||(d={size:M.size,start:r.r2c(M.start,0,f),end:r.r2c(M.end,0,f)});b=o(b,M.size),x=Math.min(x,r.r2c(M.start,0,f)),_=Math.max(_,r.r2c(M.end,0,f)),l&&(c._autoBinFinished=1)}if(d&&u(d.size)&&u(b)){b=b>d.size/1.9?d.size:d.size/Math.ceil(d.size/b);var A=d.start+(d.size-b)/2;x=A-b*Math.ceil((A-x)/b)}for(l=0;l<y.length;l++)c=y[l],f=c[n+\"calendar\"],c._input[m]=c[m]={start:r.c2r(x,0,f),end:r.c2r(_,0,f),size:b},c._input[w]=c[w]}return p=e._pos0,delete e._pos0,[e[m],p]}function i(t,e,r,i,o){var s,l,u=a(t,e),h=!1,f=1/0,d=[e];for(s=0;s<u.length;s++)if((l=u[s])===e)h=!0;else if(h){var p=n(t,l,r,i,!0),m=p[0],v=p[2];l._autoBinFinished=1,l._pos0=p[1],v?d.push(l):f=Math.min(f,m.size)}else f=Math.min(f,l[o].size);var g=new Array(d.length);for(s=0;s<d.length;s++)for(var y=d[s]._pos0,b=0;b<y.length;b++)if(void 0!==y[b]){g[s]=y[b];break}for(isFinite(f)||(f=c.distinctVals(g).minDiff),s=0;s<d.length;s++){l=d[s];var x=l[i+\"calendar\"];l._input[o]=l[o]={start:r.c2r(g[s]-f/2,0,x),end:r.c2r(g[s]+f/2,0,x),size:f}}return e[o]}function a(t,e){for(var r=e.xaxis,n=e.yaxis,i=e.orientation,a=[],o=t._fullData,s=0;s<o.length;s++){var l=o[s];\"histogram\"===l.type&&l.orientation===i&&l.xaxis===r&&l.yaxis===n&&a.push(l)}return a}function o(t,e){if(t===1/0)return e;var r=s(t);return s(e)<r?e:t}function s(t){return u(t)?t:\"string\"==typeof t&&\"M\"===t.charAt(0)?g*+t.substr(1):1/0}function l(t,e,r){function n(e){s=t[e],t[e]/=2}function i(e){o=t[e],t[e]=s+o/2,s+=o}var a,o,s;if(\"half\"===r)if(\"increasing\"===e)for(n(0),a=1;a<t.length;a++)i(a);else for(n(t.length-1),a=t.length-2;a>=0;a--)i(a);else if(\"increasing\"===e){for(a=1;a<t.length;a++)t[a]+=t[a-1];\"exclude\"===r&&(t.unshift(0),t.pop())}else{for(a=t.length-2;a>=0;a--)t[a]+=t[a+1];\"exclude\"===r&&(t.push(0),t.shift())}}var u=t(\"fast-isnumeric\"),c=t(\"../../lib\"),h=t(\"../../plots/cartesian/axes\"),f=t(\"../bar/arrays_to_calcdata\"),d=t(\"./bin_functions\"),p=t(\"./norm_functions\"),m=t(\"./average\"),v=t(\"./clean_bins\"),g=t(\"../../constants/numerical\").ONEAVGMONTH;e.exports=function(t,e){if(!0===e.visible){var r,i=[],a=[],o=h.getFromId(t,\"h\"===e.orientation?e.yaxis||\"y\":e.xaxis||\"x\"),s=\"h\"===e.orientation?\"y\":\"x\",g={x:\"y\",y:\"x\"}[s],y=e[s+\"calendar\"],b=e.cumulative;v(e,o,s);var x,_,w,M=n(t,e,o,s),k=M[0],A=M[1],T=\"string\"==typeof k.size,S=T?[]:k,E=[],L=[],C=0,I=e.histnorm,z=e.histfunc,D=-1!==I.indexOf(\"density\");b.enabled&&D&&(I=I.replace(/ ?density$/,\"\"),D=!1);var P,O=\"max\"===z||\"min\"===z,R=O?null:0,F=d.count,j=p[I],N=!1,B=function(t){return o.r2c(t,0,y)};for(Array.isArray(e[g])&&\"count\"!==z&&(P=e[g],N=\"avg\"===z,F=d[z]),r=B(k.start),_=B(k.end)+(r-h.tickIncrement(r,k.size,!1,y))/1e6;r<_&&i.length<1e6&&(x=h.tickIncrement(r,k.size,!1,y),i.push((r+x)/2),a.push(R),T&&S.push(r),D&&E.push(1/(x-r)),N&&L.push(0),!(x<=r));)r=x;T||\"date\"!==o.type||(S={start:B(S.start),end:B(S.end),size:S.size});var U=a.length;for(r=0;r<A.length;r++)(w=c.findBin(A[r],S))>=0&&w<U&&(C+=F(w,r,a,P,L));N&&(C=m(a,L)),j&&j(a,C,E),b.enabled&&l(a,b.direction,b.currentbin);var V=Math.min(i.length,a.length),H=[],q=0,G=V-1;for(r=0;r<V;r++)if(a[r]){q=r;break}for(r=V-1;r>=q;r--)if(a[r]){G=r;break}for(r=q;r<=G;r++)u(i[r])&&u(a[r])&&H.push({p:i[r],s:a[r],b:0});return 1===H.length&&(H[0].width1=h.tickIncrement(H[0].p,k.size,!1,y)-H[0].p),f(H,e),H}}},{\"../../constants/numerical\":707,\"../../lib\":728,\"../../plots/cartesian/axes\":772,\"../bar/arrays_to_calcdata\":855,\"./average\":968,\"./bin_functions\":970,\"./clean_bins\":972,\"./norm_functions\":975,\"fast-isnumeric\":131}],972:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../../lib\").cleanDate,a=t(\"../../constants/numerical\"),o=a.ONEDAY,s=a.BADNUM;e.exports=function(t,e,r){var a=e.type,l=r+\"bins\",u=t[l];u||(u=t[l]={});var c=\"date\"===a?function(t){return t||0===t?i(t,s,u.calendar):null}:function(t){return n(t)?Number(t):null};u.start=c(u.start),u.end=c(u.end);var h=\"date\"===a?o:1,f=u.size;if(n(f))u.size=f>0?Number(f):h;else if(\"string\"!=typeof f)u.size=h;else{var d=f.charAt(0),p=f.substr(1);p=n(p)?Number(p):0,(p<=0||\"date\"!==a||\"M\"!==d||p!==Math.round(p))&&(u.size=h)}var m=\"autobin\"+r;\"boolean\"!=typeof t[m]&&(t[m]=!((u.start||0===u.start)&&(u.end||0===u.end))),t[m]||delete t[\"nbins\"+r]}},{\"../../constants/numerical\":707,\"../../lib\":728,\"fast-isnumeric\":131}],973:[function(t,e,r){\"use strict\";var n=t(\"../../registry\"),i=t(\"../../lib\"),a=t(\"../../components/color\"),o=t(\"./bin_defaults\"),s=t(\"../bar/style_defaults\"),l=t(\"../../components/errorbars/defaults\"),u=t(\"./attributes\");e.exports=function(t,e,r,c){function h(r,n){return i.coerce(t,e,u,r,n)}var f=h(\"x\"),d=h(\"y\");h(\"cumulative.enabled\")&&(h(\"cumulative.direction\"),h(\"cumulative.currentbin\")),h(\"text\");var p=h(\"orientation\",d&&!f?\"h\":\"v\"),m=e[\"v\"===p?\"x\":\"y\"];if(!m||!m.length)return void(e.visible=!1);n.getComponentMethod(\"calendars\",\"handleTraceDefaults\")(t,e,[\"x\",\"y\"],c),e[\"h\"===p?\"x\":\"y\"]&&h(\"histfunc\"),o(t,e,h,\"h\"===p?[\"y\"]:[\"x\"]),s(t,e,h,r,c),l(t,e,a.defaultLine,{axis:\"y\"}),l(t,e,a.defaultLine,{axis:\"x\",inherit:\"y\"})}},{\"../../components/color\":604,\"../../components/errorbars/defaults\":633,\"../../lib\":728,\"../../registry\":846,\"../bar/style_defaults\":868,\"./attributes\":967,\"./bin_defaults\":969}],974:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.layoutAttributes=t(\"../bar/layout_attributes\"),n.supplyDefaults=t(\"./defaults\"),n.supplyLayoutDefaults=t(\"../bar/layout_defaults\"),n.calc=t(\"./calc\"),n.setPositions=t(\"../bar/set_positions\"),n.plot=t(\"../bar/plot\"),n.style=t(\"../bar/style\"),n.colorbar=t(\"../scatter/colorbar\"),n.hoverPoints=t(\"../bar/hover\"),n.selectPoints=t(\"../bar/select\"),n.moduleType=\"trace\",n.name=\"histogram\",n.basePlotModule=t(\"../../plots/cartesian\"),n.categories=[\"cartesian\",\"bar\",\"histogram\",\"oriented\",\"errorBarsOK\",\"showLegend\"],n.meta={},e.exports=n},{\"../../plots/cartesian\":782,\"../bar/hover\":859,\"../bar/layout_attributes\":861,\"../bar/layout_defaults\":862,\"../bar/plot\":863,\"../bar/select\":864,\"../bar/set_positions\":865,\"../bar/style\":867,\"../scatter/colorbar\":1034,\"./attributes\":967,\"./calc\":971,\"./defaults\":973}],975:[function(t,e,r){\"use strict\";e.exports={percent:function(t,e){for(var r=t.length,n=100/e,i=0;i<r;i++)t[i]*=n},probability:function(t,e){for(var r=t.length,n=0;n<r;n++)t[n]/=e},density:function(t,e,r,n){var i=t.length;n=n||1;for(var a=0;a<i;a++)t[a]*=r[a]*n},\"probability density\":function(t,e,r,n){var i=t.length;n&&(e/=n);for(var a=0;a<i;a++)t[a]*=r[a]/e}}},{}],976:[function(t,e,r){\"use strict\";var n=t(\"../histogram/attributes\"),i=t(\"../heatmap/attributes\"),a=t(\"../../components/colorscale/attributes\"),o=t(\"../../components/colorbar/attributes\"),s=t(\"../../lib/extend\").extendFlat;e.exports=s({},{x:n.x,y:n.y,z:{valType:\"data_array\",editType:\"calc\"},marker:{color:{valType:\"data_array\",editType:\"calc\"},editType:\"calc\"},histnorm:n.histnorm,histfunc:n.histfunc,autobinx:n.autobinx,nbinsx:n.nbinsx,xbins:n.xbins,autobiny:n.autobiny,nbinsy:n.nbinsy,ybins:n.ybins,xgap:i.xgap,ygap:i.ygap,zsmooth:i.zsmooth},a,{autocolorscale:s({},a.autocolorscale,{dflt:!1})},{colorbar:o})},{\"../../components/colorbar/attributes\":605,\"../../components/colorscale/attributes\":609,\"../../lib/extend\":717,\"../heatmap/attributes\":948,\"../histogram/attributes\":967}],977:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../plots/cartesian/axes\"),a=t(\"../histogram/bin_functions\"),o=t(\"../histogram/norm_functions\"),s=t(\"../histogram/average\"),l=t(\"../histogram/clean_bins\");e.exports=function(t,e){var r,u,c,h,f,d,p=i.getFromId(t,e.xaxis||\"x\"),m=e.x?p.makeCalcdata(e,\"x\"):[],v=i.getFromId(t,e.yaxis||\"y\"),g=e.y?v.makeCalcdata(e,\"y\"):[],y=e.xcalendar,b=e.ycalendar,x=function(t){return p.r2c(t,0,y)},_=function(t){return v.r2c(t,0,b)},w=function(t){return p.c2r(t,0,y)},M=function(t){return v.c2r(t,0,b)};l(e,p,\"x\"),l(e,v,\"y\");var k=Math.min(m.length,g.length);m.length>k&&m.splice(k,m.length-k),g.length>k&&g.splice(k,g.length-k),!e.autobinx&&e.xbins&&null!==e.xbins.start&&null!==e.xbins.end||(e.xbins=i.autoBin(m,p,e.nbinsx,\"2d\",y),\"histogram2dcontour\"===e.type&&(e.xbins.start=w(i.tickIncrement(x(e.xbins.start),e.xbins.size,!0,y)),e.xbins.end=w(i.tickIncrement(x(e.xbins.end),e.xbins.size,!1,y))),e._input.xbins=e.xbins,e._input.autobinx=e.autobinx),!e.autobiny&&e.ybins&&null!==e.ybins.start&&null!==e.ybins.end||(e.ybins=i.autoBin(g,v,e.nbinsy,\"2d\",b),\"histogram2dcontour\"===e.type&&(e.ybins.start=M(i.tickIncrement(_(e.ybins.start),e.ybins.size,!0,b)),e.ybins.end=M(i.tickIncrement(_(e.ybins.end),e.ybins.size,!1,b))),e._input.ybins=e.ybins,e._input.autobiny=e.autobiny),f=[];var A,T,S=[],E=[],L=\"string\"==typeof e.xbins.size,C=\"string\"==typeof e.ybins.size,I=L?[]:e.xbins,z=C?[]:e.ybins,D=0,P=[],O=e.histnorm,R=e.histfunc,F=-1!==O.indexOf(\"density\"),j=\"max\"===R||\"min\"===R,N=j?null:0,B=a.count,U=o[O],V=!1,H=[],q=[],G=\"z\"in e?e.z:\"marker\"in e&&Array.isArray(e.marker.color)?e.marker.color:\"\";G&&\"count\"!==R&&(V=\"avg\"===R,B=a[R]);var Y=e.xbins,W=x(Y.start),X=x(Y.end)+(W-i.tickIncrement(W,Y.size,!1,y))/1e6;for(d=W;d<X;d=i.tickIncrement(d,Y.size,!1,y))S.push(N),L&&I.push(d),V&&E.push(0);L&&I.push(d);var Z=S.length;r=e.xbins.start;var J=x(r);for(u=(d-J)/Z,r=w(J+u/2),Y=e.ybins,W=_(Y.start),X=_(Y.end)+(W-i.tickIncrement(W,Y.size,!1,b))/1e6,d=W;d<X;d=i.tickIncrement(d,Y.size,!1,b))f.push(S.concat()),C&&z.push(d),V&&P.push(E.concat());C&&z.push(d);var K=f.length;c=e.ybins.start;var Q=_(c);for(h=(d-Q)/K,c=M(Q+h/2),F&&(H=S.map(function(t,e){return L?1/(I[e+1]-I[e]):1/u}),q=f.map(function(t,e){return C?1/(z[e+1]-z[e]):1/h})),L||\"date\"!==p.type||(I={start:x(I.start),end:x(I.end),size:I.size}),C||\"date\"!==v.type||(z={start:_(z.start),end:_(z.end),size:z.size}),d=0;d<k;d++)A=n.findBin(m[d],I),T=n.findBin(g[d],z),A>=0&&A<Z&&T>=0&&T<K&&(D+=B(A,d,f[T],G,P[T]));if(V)for(T=0;T<K;T++)D+=s(f[T],P[T]);if(U)for(T=0;T<K;T++)U(f[T],D,H,q[T]);return{x:m,x0:r,dx:u,y:g,y0:c,dy:h,z:f}}},{\"../../lib\":728,\"../../plots/cartesian/axes\":772,\"../histogram/average\":968,\"../histogram/bin_functions\":970,\"../histogram/clean_bins\":972,\"../histogram/norm_functions\":975}],978:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"./sample_defaults\"),a=t(\"../../components/colorscale/defaults\"),o=t(\"./attributes\");e.exports=function(t,e,r,s){function l(r,i){return n.coerce(t,e,o,r,i)}i(t,e,l,s),!1===l(\"zsmooth\")&&(l(\"xgap\"),l(\"ygap\")),a(t,e,s,l,{prefix:\"\",cLetter:\"z\"})}},{\"../../components/colorscale/defaults\":613,\"../../lib\":728,\"./attributes\":976,\"./sample_defaults\":980}],979:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.supplyDefaults=t(\"./defaults\"),n.calc=t(\"../heatmap/calc\"),n.plot=t(\"../heatmap/plot\"),n.colorbar=t(\"../heatmap/colorbar\"),n.style=t(\"../heatmap/style\"),n.hoverPoints=t(\"../heatmap/hover\"),n.moduleType=\"trace\",n.name=\"histogram2d\",n.basePlotModule=t(\"../../plots/cartesian\"),n.categories=[\"cartesian\",\"2dMap\",\"histogram\"],n.meta={},e.exports=n},{\"../../plots/cartesian\":782,\"../heatmap/calc\":949,\"../heatmap/colorbar\":951,\"../heatmap/hover\":956,\"../heatmap/plot\":961,\"../heatmap/style\":962,\"./attributes\":976,\"./defaults\":978}],980:[function(t,e,r){\"use strict\";var n=t(\"../../registry\"),i=t(\"../histogram/bin_defaults\");e.exports=function(t,e,r,a){var o=r(\"x\"),s=r(\"y\");if(!(o&&o.length&&s&&s.length))return void(e.visible=!1);n.getComponentMethod(\"calendars\",\"handleTraceDefaults\")(t,e,[\"x\",\"y\"],a),(r(\"z\")||r(\"marker.color\"))&&r(\"histfunc\"),i(t,e,r,[\"x\",\"y\"])}},{\"../../registry\":846,\"../histogram/bin_defaults\":969}],981:[function(t,e,r){\"use strict\";var n=t(\"../histogram2d/attributes\"),i=t(\"../contour/attributes\"),a=t(\"../../components/colorscale/attributes\"),o=t(\"../../components/colorbar/attributes\"),s=t(\"../../lib/extend\").extendFlat;e.exports=s({x:n.x,y:n.y,z:n.z,marker:n.marker,histnorm:n.histnorm,histfunc:n.histfunc,autobinx:n.autobinx,nbinsx:n.nbinsx,xbins:n.xbins,autobiny:n.autobiny,nbinsy:n.nbinsy,ybins:n.ybins,autocontour:i.autocontour,ncontours:i.ncontours,contours:i.contours,line:i.line},a,{zmin:s({},a.zmin,{editType:\"calc\"}),zmax:s({},a.zmax,{editType:\"calc\"})},{colorbar:o})},{\"../../components/colorbar/attributes\":605,\"../../components/colorscale/attributes\":609,\"../../lib/extend\":717,\"../contour/attributes\":920,\"../histogram2d/attributes\":976}],982:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../histogram2d/sample_defaults\"),a=t(\"../contour/contours_defaults\"),o=t(\"../contour/style_defaults\"),s=t(\"./attributes\");e.exports=function(t,e,r,l){function u(r,i){return n.coerce(t,e,s,r,i)}i(t,e,u,l),a(t,e,u),o(t,e,u,l)}},{\"../../lib\":728,\"../contour/contours_defaults\":924,\"../contour/style_defaults\":934,\"../histogram2d/sample_defaults\":980,\"./attributes\":981}],983:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.supplyDefaults=t(\"./defaults\"),n.calc=t(\"../contour/calc\"),n.plot=t(\"../contour/plot\").plot,n.style=t(\"../contour/style\"),n.colorbar=t(\"../contour/colorbar\"),n.hoverPoints=t(\"../contour/hover\"),n.moduleType=\"trace\",n.name=\"histogram2dcontour\",n.basePlotModule=t(\"../../plots/cartesian\"),n.categories=[\"cartesian\",\"2dMap\",\"contour\",\"histogram\"],n.meta={},e.exports=n},{\"../../plots/cartesian\":782,\"../contour/calc\":921,\"../contour/colorbar\":922,\"../contour/hover\":928,\"../contour/plot\":932,\"../contour/style\":933,\"./attributes\":981,\"./defaults\":982}],984:[function(t,e,r){\"use strict\";var n=t(\"../../components/colorscale/color_attributes\"),i=t(\"../../components/colorscale/attributes\"),a=t(\"../../components/colorbar/attributes\"),o=t(\"../surface/attributes\"),s=t(\"../../lib/extend\").extendFlat;e.exports=s(n(\"\",\"calc\",!1),{x:{valType:\"data_array\",editType:\"calc+clearAxisTypes\"},y:{valType:\"data_array\",editType:\"calc+clearAxisTypes\"},z:{valType:\"data_array\",editType:\"calc+clearAxisTypes\"},i:{valType:\"data_array\",editType:\"calc\"},j:{valType:\"data_array\",editType:\"calc\"},k:{valType:\"data_array\",editType:\"calc\"},delaunayaxis:{valType:\"enumerated\",values:[\"x\",\"y\",\"z\"],dflt:\"z\",editType:\"calc\"},alphahull:{valType:\"number\",dflt:-1,editType:\"calc\"},intensity:{valType:\"data_array\",editType:\"calc\"},color:{valType:\"color\",editType:\"calc\"},vertexcolor:{valType:\"data_array\",editType:\"calc\"},facecolor:{valType:\"data_array\",editType:\"calc\"},opacity:o.opacity,flatshading:{valType:\"boolean\",dflt:!1,editType:\"calc\"},contour:{show:s({},o.contours.x.show,{}),color:o.contours.x.color,width:o.contours.x.width,editType:\"calc\"},showscale:i.showscale,colorbar:a,lightposition:{x:s({},o.lightposition.x,{dflt:1e5}),y:s({},o.lightposition.y,{dflt:1e5}),z:s({},o.lightposition.z,{dflt:0}),editType:\"calc\"},lighting:s({vertexnormalsepsilon:{valType:\"number\",min:0,max:1,dflt:1e-12,editType:\"calc\"},facenormalsepsilon:{valType:\"number\",min:0,max:1,dflt:1e-6,editType:\"calc\"},editType:\"calc\"},o.lighting)})},{\"../../components/colorbar/attributes\":605,\"../../components/colorscale/attributes\":609,\"../../components/colorscale/color_attributes\":611,\"../../lib/extend\":717,\"../surface/attributes\":1099}],985:[function(t,e,r){\"use strict\";var n=t(\"../../components/colorscale/calc\");e.exports=function(t,e){e.intensity&&n(e,e.intensity,\"\",\"c\")}},{\"../../components/colorscale/calc\":610}],986:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../../lib\"),a=t(\"../../plots/plots\"),o=t(\"../../components/colorscale\"),s=t(\"../../components/colorbar/draw\");e.exports=function(t,e){var r=e[0].trace,l=\"cb\"+r.uid,u=r.cmin,c=r.cmax,h=r.intensity||[];if(n(u)||(u=i.aggNums(Math.min,null,h)),n(c)||(c=i.aggNums(Math.max,null,h)),t._fullLayout._infolayer.selectAll(\".\"+l).remove(),!r.showscale)return void a.autoMargin(t,l);var f=e[0].t.cb=s(t,l),d=o.makeColorScaleFunc(o.extractScale(r.colorscale,u,c),{noNumericCheck:!0});f.fillcolor(d).filllevels({start:u,end:c,size:(c-u)/254}).options(r.colorbar)()}},{\"../../components/colorbar/draw\":607,\"../../components/colorscale\":618,\"../../lib\":728,\"../../plots/plots\":831,\"fast-isnumeric\":131}],987:[function(t,e,r){\"use strict\";function n(t,e,r){this.scene=t,this.uid=r,this.mesh=e,this.name=\"\",this.color=\"#fff\",this.data=null,this.showContour=!1}function i(t){return t.map(function(t){var e=t[0],r=u(t[1]),n=r.toRgb();return{index:e,rgb:[n.r,n.g,n.b,1]}})}function a(t){return t.map(d)}function o(t,e,r){for(var n=new Array(t.length),i=0;i<t.length;++i)n[i]=[t[i],e[i],r[i]];return n}function s(t,e){var r=t.glplot.gl,i=l({gl:r}),a=new n(t,i,e.uid);return i._trace=a,a.update(e),t.glplot.add(i),a}var l=t(\"gl-mesh3d\"),u=t(\"tinycolor2\"),c=t(\"delaunay-triangulate\"),h=t(\"alpha-shape\"),f=t(\"convex-hull\"),d=t(\"../../lib/str2rgbarray\"),p=n.prototype;p.handlePick=function(t){if(t.object===this.mesh){var e=t.index=t.data.index;return t.traceCoordinate=[this.data.x[e],this.data.y[e],this.data.z[e]],!0}},p.update=function(t){function e(t,e,r,n){return e.map(function(e){return t.d2l(e,0,n)*r})}var r=this.scene,n=r.fullSceneLayout;this.data=t;var s,l=o(e(n.xaxis,t.x,r.dataScale[0],t.xcalendar),e(n.yaxis,t.y,r.dataScale[1],t.ycalendar),e(n.zaxis,t.z,r.dataScale[2],t.zcalendar));if(t.i&&t.j&&t.k)s=o(t.i,t.j,t.k);else if(0===t.alphahull)s=f(l);else if(t.alphahull>0)s=h(t.alphahull,l);else{var u=[\"x\",\"y\",\"z\"].indexOf(t.delaunayaxis);s=c(l.map(function(t){return[t[(u+1)%3],t[(u+2)%3]]}))}var p={positions:l,cells:s,lightPosition:[t.lightposition.x,t.lightposition.y,t.lightposition.z],ambient:t.lighting.ambient,diffuse:t.lighting.diffuse,specular:t.lighting.specular,roughness:t.lighting.roughness,fresnel:t.lighting.fresnel,vertexNormalsEpsilon:t.lighting.vertexnormalsepsilon,faceNormalsEpsilon:t.lighting.facenormalsepsilon,opacity:t.opacity,contourEnable:t.contour.show,contourColor:d(t.contour.color).slice(0,3),contourWidth:t.contour.width,useFacetNormals:t.flatshading};t.intensity?(this.color=\"#fff\",p.vertexIntensity=t.intensity,p.vertexIntensityBounds=[t.cmin,t.cmax],p.colormap=i(t.colorscale)):t.vertexcolor?(this.color=t.vertexcolor[0],p.vertexColors=a(t.vertexcolor)):t.facecolor?(this.color=t.facecolor[0],p.cellColors=a(t.facecolor)):(this.color=t.color,p.meshColor=d(t.color)),this.mesh.update(p)},p.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()},e.exports=s},{\"../../lib/str2rgbarray\":749,\"alpha-shape\":43,\"convex-hull\":103,\"delaunay-triangulate\":123,\"gl-mesh3d\":205,tinycolor2:534}],988:[function(t,e,r){\"use strict\";var n=t(\"../../registry\"),i=t(\"../../lib\"),a=t(\"../../components/colorscale/defaults\"),o=t(\"./attributes\");e.exports=function(t,e,r,s){function l(r,n){return i.coerce(t,e,o,r,n)}function u(t){var e=t.map(function(t){var e=l(t);return e&&Array.isArray(e)?e:null});return e.every(function(t){\n", "return t&&t.length===e[0].length})&&e}var c=u([\"x\",\"y\",\"z\"]),h=u([\"i\",\"j\",\"k\"]);if(!c)return void(e.visible=!1);h&&h.forEach(function(t){for(var e=0;e<t.length;++e)t[e]|=0}),n.getComponentMethod(\"calendars\",\"handleTraceDefaults\")(t,e,[\"x\",\"y\",\"z\"],s),[\"lighting.ambient\",\"lighting.diffuse\",\"lighting.specular\",\"lighting.roughness\",\"lighting.fresnel\",\"lighting.vertexnormalsepsilon\",\"lighting.facenormalsepsilon\",\"lightposition.x\",\"lightposition.y\",\"lightposition.z\",\"contour.show\",\"contour.color\",\"contour.width\",\"colorscale\",\"reversescale\",\"flatshading\",\"alphahull\",\"delaunayaxis\",\"opacity\"].forEach(function(t){l(t)}),\"intensity\"in t?(l(\"intensity\"),a(t,e,s,l,{prefix:\"\",cLetter:\"c\"})):(e.showscale=!1,\"facecolor\"in t?l(\"facecolor\"):\"vertexcolor\"in t?l(\"vertexcolor\"):l(\"color\",r))}},{\"../../components/colorscale/defaults\":613,\"../../lib\":728,\"../../registry\":846,\"./attributes\":984}],989:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.supplyDefaults=t(\"./defaults\"),n.calc=t(\"./calc\"),n.colorbar=t(\"./colorbar\"),n.plot=t(\"./convert\"),n.moduleType=\"trace\",n.name=\"mesh3d\",n.basePlotModule=t(\"../../plots/gl3d\"),n.categories=[\"gl3d\"],n.meta={},e.exports=n},{\"../../plots/gl3d\":811,\"./attributes\":984,\"./calc\":985,\"./colorbar\":986,\"./convert\":987,\"./defaults\":988}],990:[function(t,e,r){\"use strict\";function n(t){return{name:{valType:\"string\",editType:\"style\"},showlegend:{valType:\"boolean\",dflt:!0,editType:\"style\"},line:{color:i({},s.color,{dflt:t}),width:s.width,dash:o,editType:\"style\"},editType:\"style\"}}var i=t(\"../../lib\").extendFlat,a=t(\"../scatter/attributes\"),o=t(\"../../components/drawing/attributes\").dash,s=a.line;e.exports={x:{valType:\"data_array\",editType:\"calc+clearAxisTypes\"},open:{valType:\"data_array\",dflt:[],editType:\"calc\"},high:{valType:\"data_array\",dflt:[],editType:\"calc\"},low:{valType:\"data_array\",dflt:[],editType:\"calc\"},close:{valType:\"data_array\",dflt:[],editType:\"calc\"},line:{width:i({},s.width,{}),dash:i({},o,{}),editType:\"style\"},increasing:n(\"#3D9970\"),decreasing:n(\"#FF4136\"),text:{valType:\"string\",dflt:\"\",arrayOk:!0,editType:\"calc\"},tickwidth:{valType:\"number\",min:0,max:.5,dflt:.3,editType:\"calcIfAutorange\"}}},{\"../../components/drawing/attributes\":627,\"../../lib\":728,\"../scatter/attributes\":1031}],991:[function(t,e,r){\"use strict\";function n(t,e,r,n){o(t,e,r,n),r(n+\".line.color\"),r(n+\".line.width\",e.line.width),r(n+\".line.dash\",e.line.dash)}var i=t(\"../../lib\"),a=t(\"./ohlc_defaults\"),o=t(\"./direction_defaults\"),s=t(\"./attributes\"),l=t(\"./helpers\");e.exports=function(t,e,r,o){function u(r,n){return i.coerce(t,e,s,r,n)}if(l.pushDummyTransformOpts(t,e),0===a(t,e,u,o))return void(e.visible=!1);u(\"line.width\"),u(\"line.dash\"),n(t,e,u,\"increasing\"),n(t,e,u,\"decreasing\"),u(\"text\"),u(\"tickwidth\")}},{\"../../lib\":728,\"./attributes\":990,\"./direction_defaults\":992,\"./helpers\":993,\"./ohlc_defaults\":995}],992:[function(t,e,r){\"use strict\";e.exports=function(t,e,r,n){r(n+\".showlegend\"),!1===t.showlegend&&(e[n].showlegend=!1),r(n+\".name\",e.name+\" - \"+n)}},{}],993:[function(t,e,r){\"use strict\";function n(t){function e(t,e){return t===e?e>o?a=!0:e<o&&(a=!1):a=t<e,o=e,a}function r(t,r){return i(t)&&i(r)&&e(+t,+r)}function n(t,r){return i(t)&&i(r)&&!e(+t,+r)}var a=!0,o=null;return\"increasing\"===t?r:n}var i=t(\"fast-isnumeric\"),a=t(\"../../lib\");r.pushDummyTransformOpts=function(t,e){var r={type:e.type,_ephemeral:!0};Array.isArray(t.transforms)?t.transforms.push(r):t.transforms=[r]},r.clearEphemeralTransformOpts=function(t){var e=t.transforms;if(Array.isArray(e)){for(var r=0;r<e.length;r++)e[r]._ephemeral&&e.splice(r,1);0===e.length&&delete t.transforms}},r.copyOHLC=function(t,e){t.open&&(e.open=t.open),t.high&&(e.high=t.high),t.low&&(e.low=t.low),t.close&&(e.close=t.close)},r.makeTransform=function(t,e,r){var n=a.extendFlat([],t.transforms);return n[e.transformIndex]={type:t.type,direction:r,open:t.open,high:t.high,low:t.low,close:t.close},n},r.getFilterFn=function(t){return new n(t)},r.addRangeSlider=function(t,e){for(var r=!1,n=0;n<t.length;n++)if(!0===t[n].visible){r=!0;break}r&&(e.xaxis||(e.xaxis={}),e.xaxis.rangeslider||(e.xaxis.rangeslider={}))}},{\"../../lib\":728,\"fast-isnumeric\":131}],994:[function(t,e,r){\"use strict\";var n=t(\"../../plot_api/register\");e.exports={moduleType:\"trace\",name:\"ohlc\",basePlotModule:t(\"../../plots/cartesian\"),categories:[\"cartesian\",\"showLegend\"],meta:{},attributes:t(\"./attributes\"),supplyDefaults:t(\"./defaults\")},n(t(\"../scatter\")),n(t(\"./transform\"))},{\"../../plot_api/register\":762,\"../../plots/cartesian\":782,\"../scatter\":1042,\"./attributes\":990,\"./defaults\":991,\"./transform\":996}],995:[function(t,e,r){\"use strict\";var n=t(\"../../registry\");e.exports=function(t,e,r,i){var a,o=r(\"x\"),s=r(\"open\"),l=r(\"high\"),u=r(\"low\"),c=r(\"close\");return n.getComponentMethod(\"calendars\",\"handleTraceDefaults\")(t,e,[\"x\"],i),a=Math.min(s.length,l.length,u.length,c.length),o&&(a=Math.min(a,o.length))<o.length&&(e.x=o.slice(0,a)),a<s.length&&(e.open=s.slice(0,a)),a<l.length&&(e.high=l.slice(0,a)),a<u.length&&(e.low=u.slice(0,a)),a<c.length&&(e.close=c.slice(0,a)),a}},{\"../../registry\":846}],996:[function(t,e,r){\"use strict\";function n(t,e,r){var n={type:\"scatter\",mode:\"lines\",connectgaps:!1,visible:t.visible,opacity:t.opacity,xaxis:t.xaxis,yaxis:t.yaxis,hoverinfo:i(t),transforms:l.makeTransform(t,e,r)},a=t[r];return a&&s.extendFlat(n,{x:t.x||[0],xcalendar:t.xcalendar,y:[].concat(t.low).concat(t.high),text:t.text,name:a.name,showlegend:a.showlegend,line:a.line}),n}function i(t){var e=t.hoverinfo;if(\"all\"===e)return\"x+text+name\";var r=e.split(\"+\"),n=r.indexOf(\"y\"),i=r.indexOf(\"text\");return-1!==n&&(r.splice(n,1),-1===i&&r.push(\"text\")),r.join(\"+\")}function a(t,e,r){var n=r._fullInput,i=n.tickwidth,a=n._minDiff;if(!a){var o=t._fullData,l=[];a=1/0;var u;for(u=0;u<o.length;u++){var c=o[u]._fullInput;if(\"ohlc\"===c.type&&!0===c.visible&&c.xaxis===e._id&&(l.push(c),c.x&&c.x.length>1)){var h=s.simpleMap(c.x,e.d2c,0,r.xcalendar),f=s.distinctVals(h).minDiff;a=Math.min(a,f)}}for(a===1/0&&(a=1),u=0;u<l.length;u++)l[u]._minDiff=a}return a*i}var o=t(\"fast-isnumeric\"),s=t(\"../../lib\"),l=t(\"./helpers\"),u=t(\"../../plots/cartesian/axes\"),c=t(\"../../plots/cartesian/axis_ids\");r.moduleType=\"transform\",r.name=\"ohlc\",r.attributes={},r.supplyDefaults=function(t,e,r,n){return l.clearEphemeralTransformOpts(n),l.copyOHLC(t,e),t},r.transform=function(t,e){for(var r=[],i=0;i<t.length;i++){var a=t[i];\"ohlc\"===a.type?r.push(n(a,e,\"increasing\"),n(a,e,\"decreasing\")):r.push(a)}return l.addRangeSlider(r,e.layout),r},r.calcTransform=function(t,e,r){var n,i=r.direction,s=l.getFilterFn(i),h=c.getFromTrace(t,e,\"x\"),f=c.getFromTrace(t,e,\"y\"),d=a(t,h,e),p=e.open,m=e.high,v=e.low,g=e.close,y=e.text,b=p.length,x=[],_=[],w=[];n=e._fullInput.x?function(t){var r=e.x[t],n=e.xcalendar,i=h.d2c(r,0,n);x.push(h.c2d(i-d,0,n),r,r,r,r,h.c2d(i+d,0,n),null)}:function(t){x.push(t-d,t,t,t,t,t+d,null)};for(var M=function(t,e){return u.tickText(t,t.c2l(e),\"hover\").text},k=e._fullInput.hoverinfo,A=k.split(\"+\"),T=\"all\"===k,S=T||-1!==A.indexOf(\"y\"),E=T||-1!==A.indexOf(\"text\"),L=Array.isArray(y)?function(t){return y[t]||\"\"}:function(){return y},C=0;C<b;C++)s(p[C],g[C])&&o(m[C])&&o(v[C])&&(n(C),function(t,e,r,n){_.push(t,t,e,r,n,n,null)}(p[C],m[C],v[C],g[C]),function(t,e,r,n,i){var a=[];S&&(a.push(\"Open: \"+M(f,e)),a.push(\"High: \"+M(f,r)),a.push(\"Low: \"+M(f,n)),a.push(\"Close: \"+M(f,i))),E&&a.push(L(t));var o=a.join(\"<br>\");w.push(o,o,o,o,o,o,null)}(C,p[C],m[C],v[C],g[C]));e.x=x,e.y=_,e.text=w}},{\"../../lib\":728,\"../../plots/cartesian/axes\":772,\"../../plots/cartesian/axis_ids\":775,\"./helpers\":993,\"fast-isnumeric\":131}],997:[function(t,e,r){\"use strict\";var n=t(\"../../components/colorscale/color_attributes\"),i=t(\"../../components/colorbar/attributes\"),a=t(\"../../components/colorscale/scales\"),o=t(\"../../plots/cartesian/layout_attributes\"),s=t(\"../../plots/font_attributes\"),l=t(\"../../lib/extend\"),u=l.extendDeepAll,c=l.extendFlat;e.exports={domain:{x:{valType:\"info_array\",items:[{valType:\"number\",min:0,max:1,editType:\"calc\"},{valType:\"number\",min:0,max:1,editType:\"calc\"}],dflt:[0,1],editType:\"calc\"},y:{valType:\"info_array\",items:[{valType:\"number\",min:0,max:1,editType:\"calc\"},{valType:\"number\",min:0,max:1,editType:\"calc\"}],dflt:[0,1],editType:\"calc\"},editType:\"calc\"},labelfont:s({editType:\"calc\"}),tickfont:s({editType:\"calc\"}),rangefont:s({editType:\"calc\"}),dimensions:{_isLinkedToArray:\"dimension\",label:{valType:\"string\",editType:\"calc\"},tickvals:c({},o.tickvals,{editType:\"calc\"}),ticktext:c({},o.ticktext,{editType:\"calc\"}),tickformat:{valType:\"string\",dflt:\"3s\",editType:\"calc\"},visible:{valType:\"boolean\",dflt:!0,editType:\"calc\"},range:{valType:\"info_array\",items:[{valType:\"number\",editType:\"calc\"},{valType:\"number\",editType:\"calc\"}],editType:\"calc\"},constraintrange:{valType:\"info_array\",items:[{valType:\"number\",editType:\"calc\"},{valType:\"number\",editType:\"calc\"}],editType:\"calc\"},values:{valType:\"data_array\",dflt:[],editType:\"calc\"},editType:\"calc\"},line:c(u(n(\"line\",\"calc\"),{colorscale:{dflt:a.Viridis},autocolorscale:{dflt:!1}}),{showscale:{valType:\"boolean\",dflt:!1,editType:\"calc\"},colorbar:i,editType:\"calc\"})}},{\"../../components/colorbar/attributes\":605,\"../../components/colorscale/color_attributes\":611,\"../../components/colorscale/scales\":622,\"../../lib/extend\":717,\"../../plots/cartesian/layout_attributes\":783,\"../../plots/font_attributes\":796}],998:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../../plots/plots\"),a=t(\"./plot\"),o=t(\"../../constants/xmlns_namespaces\"),s=t(\"./constants\");r.name=\"parcoords\",r.attr=\"type\",r.plot=function(t){var e=i.getSubplotCalcData(t.calcdata,\"parcoords\",\"parcoords\");e.length&&a(t,e)},r.clean=function(t,e,r,n){var i=n._has&&n._has(\"parcoords\"),a=e._has&&e._has(\"parcoords\");i&&!a&&(n._paperdiv.selectAll(\".parcoords-line-layers\").remove(),n._paperdiv.selectAll(\".parcoords-line-layers\").remove(),n._paperdiv.selectAll(\".parcoords\").remove(),n._paperdiv.selectAll(\".parcoords\").remove(),n._glimages.selectAll(\"*\").remove())},r.toSVG=function(t){function e(e){var n=this,i=n.toDataURL(\"image/png\"),a=r.append(\"svg:image\"),l=t._fullLayout._size,u=t._fullData[e.model.key].domain;a.attr({xmlns:o.svg,\"xlink:href\":i,x:l.l+l.w*u.x[0]-s.overdrag,y:l.t+l.h*(1-u.y[1]),width:(u.x[1]-u.x[0])*l.w+2*s.overdrag,height:(u.y[1]-u.y[0])*l.h,preserveAspectRatio:\"none\"})}var r=t._fullLayout._glimages,i=n.select(t).selectAll(\".svg-container\");i.filter(function(t,e){return e===i.size()-1}).selectAll(\".parcoords-lines.context, .parcoords-lines.focus\").each(e),window.setTimeout(function(){n.selectAll(\"#filterBarPattern\").attr(\"id\",\"filterBarPattern\")},60)}},{\"../../constants/xmlns_namespaces\":709,\"../../plots/plots\":831,\"./constants\":1001,\"./plot\":1006,d3:122}],999:[function(t,e,r){\"use strict\";var n=t(\"../../components/colorscale/has_colorscale\"),i=t(\"../../components/colorscale/calc\"),a=t(\"../../lib\");e.exports=function(t,e){var r=!!e.line.colorscale&&a.isArray(e.line.color),o=r?e.line.color:Array.apply(0,Array(e.dimensions.reduce(function(t,e){return Math.max(t,e.values.length)},0))).map(function(){return.5}),s=r?e.line.colorscale:[[0,e.line.color],[1,e.line.color]];return n(e,\"line\")&&i(e,e.line.color,\"line\",\"c\"),[{lineColor:o,cscale:s}]}},{\"../../components/colorscale/calc\":610,\"../../components/colorscale/has_colorscale\":617,\"../../lib\":728}],1e3:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../../lib\"),a=t(\"../../plots/plots\"),o=t(\"../../components/colorscale\"),s=t(\"../../components/colorbar/draw\");e.exports=function(t,e){var r=e[0].trace,l=r.line,u=\"cb\"+r.uid;if(t._fullLayout._infolayer.selectAll(\".\"+u).remove(),void 0===l||!l.showscale)return void a.autoMargin(t,u);var c=l.color,h=l.cmin,f=l.cmax;n(h)||(h=i.aggNums(Math.min,null,c)),n(f)||(f=i.aggNums(Math.max,null,c));var d=e[0].t.cb=s(t,u),p=o.makeColorScaleFunc(o.extractScale(l.colorscale,h,f),{noNumericCheck:!0});d.fillcolor(p).filllevels({start:h,end:f,size:(f-h)/254}).options(l.colorbar)()}},{\"../../components/colorbar/draw\":607,\"../../components/colorscale\":618,\"../../lib\":728,\"../../plots/plots\":831,\"fast-isnumeric\":131}],1001:[function(t,e,r){\"use strict\";e.exports={maxDimensionCount:60,overdrag:45,verticalPadding:2,tickDistance:50,canvasPixelRatio:1,blockLineCount:5e3,scatter:!1,layers:[\"contextLineLayer\",\"focusLineLayer\",\"pickLineLayer\"],axisTitleOffset:28,axisExtentOffset:10,bar:{width:4,capturewidth:10,fillcolor:\"magenta\",fillopacity:1,strokecolor:\"white\",strokeopacity:1,strokewidth:1,handleheight:16,handleopacity:1,handleoverlap:0}}},{}],1002:[function(t,e,r){\"use strict\";function n(t,e,r,n,i){i(\"line.color\",r),s(t,\"line\")&&a.isArray(t.line.color)?(i(\"line.colorscale\"),l(t,e,n,i,{prefix:\"line.\",cLetter:\"c\"})):i(\"line.color\",r)}function i(t,e){function r(t,e){return a.coerce(n,i,o.dimensions,t,e)}var n,i,s,l=t.dimensions||[],c=e.dimensions=[],h=1/0;for(l.length>u&&(a.log(\"parcoords traces support up to \"+u+\" dimensions at the moment\"),l.splice(u)),s=0;s<l.length;s++)if(n=l[s],i={},a.isPlainObject(n)){var f=r(\"values\"),d=r(\"visible\",f.length>0);d&&(r(\"label\"),r(\"tickvals\"),r(\"ticktext\"),r(\"tickformat\"),r(\"range\"),r(\"constraintrange\"),h=Math.min(h,i.values.length)),i._index=s,c.push(i)}if(isFinite(h))for(s=0;s<c.length;s++)i=c[s],i.visible&&i.values.length>h&&(i.values=i.values.slice(0,h));return c}var a=t(\"../../lib\"),o=t(\"./attributes\"),s=t(\"../../components/colorscale/has_colorscale\"),l=t(\"../../components/colorscale/defaults\"),u=t(\"./constants\").maxDimensionCount;e.exports=function(t,e,r,s){function l(r,n){return a.coerce(t,e,o,r,n)}var u=i(t,e);n(t,e,r,s,l),l(\"domain.x\"),l(\"domain.y\"),Array.isArray(u)&&u.length||(e.visible=!1);var c={family:s.font.family,size:Math.round(s.font.size*(10/12)),color:s.font.color};a.coerceFont(l,\"labelfont\",c),a.coerceFont(l,\"tickfont\",c),a.coerceFont(l,\"rangefont\",c)}},{\"../../components/colorscale/defaults\":613,\"../../components/colorscale/has_colorscale\":617,\"../../lib\":728,\"./attributes\":997,\"./constants\":1001}],1003:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.supplyDefaults=t(\"./defaults\"),n.calc=t(\"./calc\"),n.plot=t(\"./plot\"),n.colorbar=t(\"./colorbar\"),n.moduleType=\"trace\",n.name=\"parcoords\",n.basePlotModule=t(\"./base_plot\"),n.categories=[\"gl\",\"noOpacity\"],n.meta={},e.exports=n},{\"./attributes\":997,\"./base_plot\":998,\"./calc\":999,\"./colorbar\":1e3,\"./defaults\":1002,\"./plot\":1006}],1004:[function(t,e,r){\"use strict\";function n(t){t.read({x:0,y:0,width:1,height:1,data:x})}function i(t,e,r,n,i){var a=t._gl;a.enable(a.SCISSOR_TEST),a.scissor(e,r,n,i),t.clear({color:[0,0,0,0],depth:1})}function a(t,e,r,a,o,s){function l(n){var c;c=Math.min(a,o-n*a),s.offset=g*n*a,s.count=g*c,0===n&&(window.cancelAnimationFrame(r.currentRafs[u]),delete r.currentRafs[u],i(t,s.scissorX,s.scissorY,s.scissorWidth,s.viewBoxSize[1])),r.clearOnly||(e(s),n*a+c<o&&(r.currentRafs[u]=window.requestAnimationFrame(function(){l(n+1)})),r.drawCompleted=!1)}var u=s.key;r.drawCompleted||(n(t),r.drawCompleted=!0),l(0)}function o(t){return Math.max(m,Math.min(1-m,t))}function s(t,e,r){for(var n=[],i=0;i<256;i++){var a=t(i/255);n.push((e?b:a).concat(r))}return n}function l(t,e){return(t>>>8*e)%256/255}function u(t,e,r,n){for(var i=[],a=0;a<t;a++)for(var s=0;s<v;s++)i.push(s<e?r[s].paddedUnitValues[a]:s===v-1?o(n[a]):s>=v-4?l(a,v-2-s):.5);return i}function c(t,e,r){var n,i,a,o=[];for(i=0;i<t;i++)for(a=0;a<g;a++)for(n=0;n<y;n++)o.push(e[i*v+r*y+n]),r*y+n===v-1&&a%2==0&&(o[o.length-1]*=-1);return o}function h(t,e){var r=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15],n=r.map(function(r){return c(t,e,r)}),i={};return n.forEach(function(t,e){i[\"p\"+e.toString(16)]=t}),i}function f(t,e,r){return t+e<=r}var d=t(\"regl\"),p=t(\"./constants\").verticalPadding,m=1e-6,v=64,g=2,y=4,b=[119,119,119],x=new Uint8Array(4),_=new Uint8Array(4);e.exports=function(t,e,r,n,o,l,c,m,v,g){function y(t){j[0]=t[0],j[1]=t[1]}function b(t,e,i,a,o,s,l,u,c,h,d){var v,g,y,b,x=[t,e],_=p/s,w=[0,1].map(function(){return[0,1,2,3].map(function(){return new Float32Array(16)})}),M=[0,1].map(function(){return[0,1,2,3].map(function(){return new Float32Array(16)})});for(v=0;v<2;v++)for(b=x[v],g=0;g<4;g++)for(y=0;y<16;y++){var k=y+16*g;w[v][g][y]=y+16*g===b?1:0,M[v][g][y]=(!m&&f(y,16*g,z)?A[0===k?0:1+(k-1)%(A.length-1)].filter[v]:v)+(2*v-1)*_}return{key:l,resolution:[r,n],viewBoxPosition:[i+I,a],viewBoxSize:[o,s],i:t,ii:e,dim1A:w[0][0],dim1B:w[0][1],dim1C:w[0][2],dim1D:w[0][3],dim2A:w[1][0],dim2B:w[1][1],dim2C:w[1][2],dim2D:w[1][3],loA:M[0][0],loB:M[0][1],loC:M[0][2],loD:M[0][3],hiA:M[1][0],hiB:M[1][1],hiC:M[1][2],hiD:M[1][3],colorClamp:j,scatter:u||0,scissorX:c===h?0:i+I,scissorWidth:(c===d?r-i+I:o+.5)+(c===h?i+I:0),scissorY:a,scissorHeight:s}}function x(t,o,s){var l,u,c,h=1/0,f=-1/0;for(l=0;l<z;l++)t[l].dim2.canvasX>f&&(f=t[l].dim2.canvasX,c=l),t[l].dim1.canvasX<h&&(h=t[l].dim1.canvasX,u=l);for(0===z&&i(O,0,0,r,n),l=0;l<z;l++){var d=t[l],p=d.dim1,m=p.crossfilterDimensionIndex,v=d.canvasX,y=d.canvasY,x=d.dim2,_=x.crossfilterDimensionIndex,w=d.panelSizeX,M=d.panelSizeY,A=v+w;if(o||!N[m]||N[m][0]!==v||N[m][1]!==A){N[m]=[v,A];var T=b(m,_,v,y,w,M,p.crossfilterDimensionIndex,g||p.scatter?1:0,l,u,c);k.clearOnly=s,a(O,F,k,o?e.blockLineCount:S,S,T)}}}function w(t,e){return O.read({x:t,y:e,width:1,height:1,data:_}),_}function M(t,e,r,n){var i=new Uint8Array(4*r*n);return O.read({x:t,y:e,width:r,height:n,data:i}),i}var k={currentRafs:{},drawCompleted:!0,clearOnly:!1},A=o.slice(),T=A.length,S=A[0]?A[0].values.length:0,E=m,L=v?e.color.map(function(t,r){return r/e.color.length}):e.color,C=Math.max(1/255,Math.pow(1/L.length,1/3)),I=e.canvasOverdrag,z=l.length,D=u(S,T,A,L),P=h(S,D),O=d({canvas:t,attributes:{preserveDrawingBuffer:!0,antialias:!v}}),R=O.texture({shape:[256,1],format:\"rgba\",type:\"uint8\",mag:\"nearest\",min:\"nearest\",data:s(c,m,Math.round(255*(m?C:1)))}),F=O({profile:!1,blend:{enable:E,func:{srcRGB:\"src alpha\",dstRGB:\"one minus src alpha\",srcAlpha:1,dstAlpha:1},equation:{rgb:\"add\",alpha:\"add\"},color:[0,0,0,0]},depth:{enable:!E,mask:!0,func:\"less\",range:[0,1]},cull:{enable:!0,face:\"back\"},scissor:{enable:!0,box:{x:O.prop(\"scissorX\"),y:O.prop(\"scissorY\"),width:O.prop(\"scissorWidth\"),height:O.prop(\"scissorHeight\")}},dither:!1,vert:v?\"precision highp float;\\n#define GLSLIFY 1\\n\\nattribute vec4 p0, p1, p2, p3,\\n p4, p5, p6, p7,\\n p8, p9, pa, pb,\\n pc, pd, pe;\\n\\nattribute vec4 pf;\\n\\nuniform mat4 dim1A, dim2A, dim1B, dim2B, dim1C, dim2C, dim1D, dim2D,\\n loA, hiA, loB, hiB, loC, hiC, loD, hiD;\\n\\nuniform vec2 resolution,\\n viewBoxPosition,\\n viewBoxSize;\\n\\nuniform sampler2D palette;\\n\\nuniform vec2 colorClamp;\\n\\nuniform float scatter;\\n\\nvarying vec4 fragColor;\\n\\nvec4 zero = vec4(0, 0, 0, 0);\\nvec4 unit = vec4(1, 1, 1, 1);\\nvec2 xyProjection = vec2(1, 1);\\n\\nmat4 mclamp(mat4 m, mat4 lo, mat4 hi) {\\n return mat4(clamp(m[0], lo[0], hi[0]),\\n clamp(m[1], lo[1], hi[1]),\\n clamp(m[2], lo[2], hi[2]),\\n clamp(m[3], lo[3], hi[3]));\\n}\\n\\nbool mshow(mat4 p, mat4 lo, mat4 hi) {\\n return mclamp(p, lo, hi) == p;\\n}\\n\\nfloat val(mat4 p, mat4 v) {\\n return dot(matrixCompMult(p, v) * unit, unit);\\n}\\n\\nvoid main() {\\n\\n float x = 0.5 * sign(pf[3]) + 0.5;\\n float prominence = abs(pf[3]);\\n float depth = 1.0 - prominence;\\n\\n mat4 pA = mat4(p0, p1, p2, p3);\\n mat4 pB = mat4(p4, p5, p6, p7);\\n mat4 pC = mat4(p8, p9, pa, pb);\\n mat4 pD = mat4(pc, pd, pe, abs(pf));\\n\\n float show = float(mshow(pA, loA, hiA) &&\\n mshow(pB, loB, hiB) &&\\n mshow(pC, loC, hiC) &&\\n mshow(pD, loD, hiD));\\n\\n vec2 yy = show * vec2(val(pA, dim2A) + val(pB, dim2B) + val(pC, dim2C) + val(pD, dim2D),\\n val(pA, dim1A) + val(pB, dim1B) + val(pC, dim1C) + val(pD, dim1D));\\n\\n vec2 dimensionToggle = vec2(x, 1.0 - x);\\n\\n vec2 scatterToggle = vec2(scatter, 1.0 - scatter);\\n\\n float y = dot(yy, dimensionToggle);\\n mat2 xy = mat2(viewBoxSize * yy + dimensionToggle, viewBoxSize * vec2(x, y));\\n\\n vec2 viewBoxXY = viewBoxPosition + xy * scatterToggle;\\n\\n float depthOrHide = depth + 2.0 * (1.0 - show);\\n\\n gl_Position = vec4(\\n xyProjection * (2.0 * viewBoxXY / resolution - 1.0),\\n depthOrHide,\\n 1.0\\n );\\n\\n // pick coloring\\n fragColor = vec4(pf.rgb, 1.0);\\n}\\n\":\"precision highp float;\\n#define GLSLIFY 1\\n\\nattribute vec4 p0, p1, p2, p3,\\n p4, p5, p6, p7,\\n p8, p9, pa, pb,\\n pc, pd, pe;\\n\\nattribute vec4 pf;\\n\\nuniform mat4 dim1A, dim2A, dim1B, dim2B, dim1C, dim2C, dim1D, dim2D,\\n loA, hiA, loB, hiB, loC, hiC, loD, hiD;\\n\\nuniform vec2 resolution,\\n viewBoxPosition,\\n viewBoxSize;\\n\\nuniform sampler2D palette;\\n\\nuniform vec2 colorClamp;\\n\\nuniform float scatter;\\n\\nvarying vec4 fragColor;\\n\\nvec4 zero = vec4(0, 0, 0, 0);\\nvec4 unit = vec4(1, 1, 1, 1);\\nvec2 xyProjection = vec2(1, 1);\\n\\nmat4 mclamp(mat4 m, mat4 lo, mat4 hi) {\\n return mat4(clamp(m[0], lo[0], hi[0]),\\n clamp(m[1], lo[1], hi[1]),\\n clamp(m[2], lo[2], hi[2]),\\n clamp(m[3], lo[3], hi[3]));\\n}\\n\\nbool mshow(mat4 p, mat4 lo, mat4 hi) {\\n return mclamp(p, lo, hi) == p;\\n}\\n\\nfloat val(mat4 p, mat4 v) {\\n return dot(matrixCompMult(p, v) * unit, unit);\\n}\\n\\nvoid main() {\\n\\n float x = 0.5 * sign(pf[3]) + 0.5;\\n float prominence = abs(pf[3]);\\n float depth = 1.0 - prominence;\\n\\n mat4 pA = mat4(p0, p1, p2, p3);\\n mat4 pB = mat4(p4, p5, p6, p7);\\n mat4 pC = mat4(p8, p9, pa, pb);\\n mat4 pD = mat4(pc, pd, pe, abs(pf));\\n\\n float show = float(mshow(pA, loA, hiA) &&\\n mshow(pB, loB, hiB) &&\\n mshow(pC, loC, hiC) &&\\n mshow(pD, loD, hiD));\\n\\n vec2 yy = show * vec2(val(pA, dim2A) + val(pB, dim2B) + val(pC, dim2C) + val(pD, dim2D),\\n val(pA, dim1A) + val(pB, dim1B) + val(pC, dim1C) + val(pD, dim1D));\\n\\n vec2 dimensionToggle = vec2(x, 1.0 - x);\\n\\n vec2 scatterToggle = vec2(scatter, 1.0 - scatter);\\n\\n float y = dot(yy, dimensionToggle);\\n mat2 xy = mat2(viewBoxSize * yy + dimensionToggle, viewBoxSize * vec2(x, y));\\n\\n vec2 viewBoxXY = viewBoxPosition + xy * scatterToggle;\\n\\n float depthOrHide = depth + 2.0 * (1.0 - show);\\n\\n gl_Position = vec4(\\n xyProjection * (2.0 * viewBoxXY / resolution - 1.0),\\n depthOrHide,\\n 1.0\\n );\\n\\n // visible coloring\\n float clampedColorIndex = clamp((prominence - colorClamp[0]) / (colorClamp[1] - colorClamp[0]), 0.0, 1.0);\\n fragColor = texture2D(palette, vec2((clampedColorIndex * 255.0 + 0.5) / 256.0, 0.5));\\n}\\n\",frag:\"precision lowp float;\\n#define GLSLIFY 1\\n\\nvarying vec4 fragColor;\\n\\nvoid main() {\\n gl_FragColor = fragColor;\\n}\\n\",primitive:\"lines\",lineWidth:1,attributes:P,uniforms:{resolution:O.prop(\"resolution\"),viewBoxPosition:O.prop(\"viewBoxPosition\"),viewBoxSize:O.prop(\"viewBoxSize\"),dim1A:O.prop(\"dim1A\"),dim2A:O.prop(\"dim2A\"),dim1B:O.prop(\"dim1B\"),dim2B:O.prop(\"dim2B\"),dim1C:O.prop(\"dim1C\"),dim2C:O.prop(\"dim2C\"),dim1D:O.prop(\"dim1D\"),dim2D:O.prop(\"dim2D\"),loA:O.prop(\"loA\"),hiA:O.prop(\"hiA\"),loB:O.prop(\"loB\"),hiB:O.prop(\"hiB\"),loC:O.prop(\"loC\"),hiC:O.prop(\"hiC\"),loD:O.prop(\"loD\"),hiD:O.prop(\"hiD\"),palette:R,colorClamp:O.prop(\"colorClamp\"),scatter:O.prop(\"scatter\")},offset:O.prop(\"offset\"),count:O.prop(\"count\")}),j=[0,1],N=[];return{setColorDomain:y,render:x,readPixel:w,readPixels:M,destroy:O.destroy}}},{\"./constants\":1001,regl:499}],1005:[function(t,e,r){\"use strict\";function n(t){return t.key}function i(t){return[t]}function a(t){return!(\"visible\"in t)||t.visible}function o(t){var e=t.range?t.range[0]:w.min(t.values),r=t.range?t.range[1]:w.max(t.values);return!isNaN(e)&&isFinite(e)||(e=0),!isNaN(r)&&isFinite(r)||(r=0),e===r&&(void 0===e?(e=0,r=1):0===e?(e-=1,r+=1):(e*=.9,r*=1.1)),[e,r]}function s(t,e){var r,n,i,a,o;for(r=0,n=t.range(),i=1/0,a=n[0],o;r<n.length;r++){if((o=Math.abs(n[r]-e))>i)return a;i=o,a=n[r]}return n[n.length-1]}function l(t,e){return function(r,n){if(e){var i=e[n];return null===i||void 0===i?t(r):i}return t(r)}}function u(t,e,r){var n=o(r),i=r.ticktext;return r.tickvals?w.scale.ordinal().domain(r.tickvals.map(l(w.format(r.tickformat),i))).range(r.tickvals.map(function(t){return(t-n[0])/(n[1]-n[0])}).map(function(r){return t-e+r*(e-(t-e))})):w.scale.linear().domain(n).range([t-e,e])}function c(t,e){return w.scale.linear().range([t-e,e])}function h(t){return w.scale.linear().domain(o(t))}function f(t){var e=o(t);return t.tickvals&&w.scale.ordinal().domain(t.tickvals).range(t.tickvals.map(function(t){return(t-e[0])/(e[1]-e[0])}))}function d(t){var e=t.map(function(t){return t[0]}),r=t.map(function(t){return t[1]}),n=r.map(function(t){return w.rgb(t)}),i=function(t){return function(e){return e[t]}},a=\"rgb\".split(\"\").map(function(t){return w.scale.linear().clamp(!0).domain(e).range(n.map(i(t)))});return function(t){return a.map(function(e){return e(t)})}}function p(t){return t[0]}function m(t,e,r){var n=p(e),i=n.trace,o=n.lineColor,s=n.cscale,l=i.line,u=i.domain,c=i.dimensions,f=t.width,m=i.labelfont,v=i.tickfont,g=i.rangefont,y=_.extendDeep({},l,{color:o.map(h({values:o,range:[l.cmin,l.cmax]})),blockLineCount:x.blockLineCount,canvasOverdrag:x.overdrag*x.canvasPixelRatio}),b=Math.floor(f*(u.x[1]-u.x[0])),w=Math.floor(t.height*(u.y[1]-u.y[0])),M=t.margin||{l:80,r:80,t:100,b:80},k=b,A=w;return{key:r,colCount:c.filter(a).length,dimensions:c,tickDistance:x.tickDistance,unitToColor:d(s),lines:y,labelFont:m,tickFont:v,rangeFont:g,translateX:u.x[0]*f,translateY:t.height-u.y[1]*t.height,pad:M,canvasWidth:k*x.canvasPixelRatio+2*y.canvasOverdrag,canvasHeight:A*x.canvasPixelRatio,width:k,height:A,canvasPixelRatio:x.canvasPixelRatio}}function v(t){var e=t.width,r=t.height,n=t.dimensions,i=t.canvasPixelRatio,o=function(r){return e*r/Math.max(1,t.colCount-1)},s=x.verticalPadding/(r*i),l=1-2*s,d=function(t){return s+l*t},p={key:t.key,xScale:o,model:t},m={};return p.dimensions=n.filter(a).map(function(e,n){var a=h(e),s=m[e.label];return m[e.label]=(s||0)+1,{key:e.label+(s?\"__\"+s:\"\"),label:e.label,tickFormat:e.tickformat,tickvals:e.tickvals,ticktext:e.ticktext,ordinal:!!e.tickvals,scatter:x.scatter||e.scatter,xIndex:n,crossfilterDimensionIndex:n,visibleIndex:e._index,height:r,values:e.values,paddedUnitValues:e.values.map(a).map(d),xScale:o,x:o(n),canvasX:o(n)*i,unitScale:c(r,x.verticalPadding),domainScale:u(r,x.verticalPadding,e),ordinalScale:f(e),domainToUnitScale:a,filter:e.constraintrange?e.constraintrange.map(a):[0,1],parent:p,model:t}}),p}function g(t){return x.layers.map(function(e){return{key:e,context:\"contextLineLayer\"===e,pick:\"pickLineLayer\"===e,viewModel:t,model:t.model}})}function y(t){t.classed(\"axisExtentText\",!0).attr(\"text-anchor\",\"middle\").style(\"cursor\",\"default\").style(\"user-select\",\"none\")}var b=t(\"./lines\"),x=t(\"./constants\"),_=t(\"../../lib\"),w=t(\"d3\"),M=t(\"../../components/drawing\");e.exports=function(t,e,r,a,o){function l(t){var e=t.selectAll(\"defs\").data(i,n);e.enter().append(\"defs\");var r=e.selectAll(\"#filterBarPattern\").data(i,n);r.enter().append(\"pattern\").attr(\"id\",\"filterBarPattern\").attr(\"patternUnits\",\"userSpaceOnUse\"),r.attr(\"x\",-x.bar.width).attr(\"width\",x.bar.capturewidth).attr(\"height\",function(t){return t.model.height});var a=r.selectAll(\"rect\").data(i,n);a.enter().append(\"rect\").attr(\"shape-rendering\",\"crispEdges\"),a.attr(\"height\",function(t){return t.model.height}).attr(\"width\",x.bar.width).attr(\"x\",x.bar.width/2).attr(\"fill\",x.bar.fillcolor).attr(\"fill-opacity\",x.bar.fillopacity).attr(\"stroke\",x.bar.strokecolor).attr(\"stroke-opacity\",x.bar.strokeopacity).attr(\"stroke-width\",x.bar.strokewidth)}function u(t){return t.dimensions.some(function(t){return 0!==t.filter[0]||1!==t.filter[1]})}function c(t,e){for(var r=e.panels||(e.panels=[]),n=t.each(function(t){return t})[e.key].map(function(t){return t.__data__}),i=n.length-1,a=0;a<1;a++)for(var o=0;o<i;o++){var s=r[o+a*i]||(r[o+a*i]={}),l=n[o],u=n[o+1];s.dim1=l,s.dim2=u,s.canvasX=l.canvasX,s.panelSizeX=u.canvasX-l.canvasX,s.panelSizeY=e.model.canvasHeight/1,s.y=a*s.panelSizeY,s.canvasY=e.model.canvasHeight-s.y-s.panelSizeY}}function h(t,e){for(var r=e.panels||(e.panels=[]),n=t.each(function(t){return t})[e.key].map(function(t){return t.__data__}),i=n.length-1,a=i,o=0;o<i;o++)for(var s=0;s<i;s++){var l=r[s+o*i]||(r[s+o*i]={}),u=n[s],c=n[s+1];l.dim1=n[o+1],l.dim2=c,l.canvasX=u.canvasX,l.panelSizeX=c.canvasX-u.canvasX,l.panelSizeY=e.model.canvasHeight/a,l.y=o*l.panelSizeY,l.canvasY=e.model.canvasHeight-l.y-l.panelSizeY}}function f(t,e){return(x.scatter?h:c)(t,e)}function d(t){return t.ordinal?function(){return\"\"}:w.format(t.tickFormat)}function _(){W=!0,T=!0}function k(t){S=!1;var e=t.parent,r=t.brush.extent(),n=e.dimensions,i=n[t.xIndex].filter,a=W&&r[0]===r[1];a&&(t.brush.clear(),w.select(this).select(\"rect.extent\").attr(\"y\",-100));var o=a?[0,1]:r.slice();if(o[0]!==i[0]||o[1]!==i[1]){n[t.xIndex].filter=o,e.focusLineLayer&&e.focusLineLayer.render(e.panels,!0);var s=u(e);!X&&s?(e.contextLineLayer&&e.contextLineLayer.render(e.panels,!0),X=!0):X&&!s&&(e.contextLineLayer&&e.contextLineLayer.render(e.panels,!0,!0),X=!1)}W=!1}function A(t){var e=t.parent,r=t.brush.extent(),n=r[0]===r[1],i=e.dimensions,a=i[t.xIndex].filter;if(!n&&t.ordinal&&(a[0]=s(t.ordinalScale,a[0]),a[1]=s(t.ordinalScale,a[1]),a[0]===a[1]&&(a[0]=Math.max(0,a[0]-.05),a[1]=Math.min(1,a[1]+.05)),w.select(this).transition().duration(150).call(t.brush.extent(a)),e.focusLineLayer.render(e.panels,!0)),e.pickLineLayer&&e.pickLineLayer.render(e.panels,!0),S=!0,T=\"ending\",o&&o.filterChanged){var l=t.domainToUnitScale.invert,u=a.map(l);o.filterChanged(e.key,t.visibleIndex,u)}}var T=!1,S=!0,E=r.filter(function(t){return p(t).trace.visible}).map(m.bind(0,a)).map(v);t.selectAll(\".parcoords-line-layers\").remove();var L=t.selectAll(\".parcoords-line-layers\").data(E,n);L.enter().insert(\"div\",\".\"+e.attr(\"class\").split(\" \").join(\" .\")).classed(\"parcoords-line-layers\",!0).style(\"box-sizing\",\"content-box\"),L.style(\"transform\",function(t){return\"translate(\"+(t.model.translateX-x.overdrag)+\"px,\"+t.model.translateY+\"px)\"});var C=L.selectAll(\".parcoords-lines\").data(g,n),I={renderers:[],dimensions:[]},z=null;C.enter().append(\"canvas\").attr(\"class\",function(t){return\"parcoords-lines \"+(t.context?\"context\":t.pick?\"pick\":\"focus\")}).style(\"box-sizing\",\"content-box\").style(\"float\",\"left\").style(\"clear\",\"both\").style(\"left\",0).style(\"overflow\",\"visible\").style(\"position\",function(t,e){return\"absolute\"}).filter(function(t){return t.pick}).on(\"mousemove\",function(t){if(S&&t.lineLayer&&o&&o.hover){var e=w.event,r=this.width,n=this.height,i=w.mouse(this),a=i[0],s=i[1];if(a<0||s<0||a>=r||s>=n)return;var l=t.lineLayer.readPixel(a,n-1-s),u=0!==l[3],c=u?l[2]+256*(l[1]+256*l[0]):null,h={x:a,y:s,clientX:e.clientX,clientY:e.clientY,dataIndex:t.model.key,curveNumber:c};c!==z&&(u?o.hover(h):o.unhover&&o.unhover(h),z=c)}}),C.style(\"margin\",function(t){var e=t.model.pad;return e.t+\"px \"+e.r+\"px \"+e.b+\"px \"+e.l+\"px\"}).attr(\"width\",function(t){return t.model.canvasWidth}).attr(\"height\",function(t){return t.model.canvasHeight}).style(\"width\",function(t){return t.model.width+2*x.overdrag+\"px\"}).style(\"height\",function(t){return t.model.height+\"px\"}).style(\"opacity\",function(t){return t.pick?.01:1}),e.style(\"background\",\"rgba(255, 255, 255, 0)\");var D=e.selectAll(\".parcoords\").data(E,n);D.exit().remove(),D.enter().append(\"g\").classed(\"parcoords\",!0).attr(\"overflow\",\"visible\").style(\"box-sizing\",\"content-box\").style(\"position\",\"absolute\").style(\"left\",0).style(\"overflow\",\"visible\").style(\"shape-rendering\",\"crispEdges\").style(\"pointer-events\",\"none\").call(l),D.attr(\"width\",function(t){return t.model.width+t.model.pad.l+t.model.pad.r}).attr(\"height\",function(t){return t.model.height+t.model.pad.t+t.model.pad.b\n", "}).attr(\"transform\",function(t){return\"translate(\"+t.model.translateX+\",\"+t.model.translateY+\")\"});var P=D.selectAll(\".parcoordsControlView\").data(i,n);P.enter().append(\"g\").classed(\"parcoordsControlView\",!0).style(\"box-sizing\",\"content-box\"),P.attr(\"transform\",function(t){return\"translate(\"+t.model.pad.l+\",\"+t.model.pad.t+\")\"});var O=P.selectAll(\".yAxis\").data(function(t){return t.dimensions},n);O.enter().append(\"g\").classed(\"yAxis\",!0).each(function(t){I.dimensions.push(t)}),P.each(function(t){f(O,t)}),C.each(function(t){t.lineLayer=b(this,t.model.lines,t.model.canvasWidth,t.model.canvasHeight,t.viewModel.dimensions,t.viewModel.panels,t.model.unitToColor,t.context,t.pick,x.scatter),t.viewModel[t.key]=t.lineLayer,I.renderers.push(function(){t.lineLayer.render(t.viewModel.panels,!0)}),t.lineLayer.render(t.viewModel.panels,!t.context)}),O.attr(\"transform\",function(t){return\"translate(\"+t.xScale(t.xIndex)+\", 0)\"}),O.call(w.behavior.drag().origin(function(t){return t}).on(\"drag\",function(t){var e=t.parent;S=!1,T||(t.x=Math.max(-x.overdrag,Math.min(t.model.width+x.overdrag,w.event.x)),t.canvasX=t.x*t.model.canvasPixelRatio,O.sort(function(t,e){return t.x-e.x}).each(function(e,r){e.xIndex=r,e.x=t===e?e.x:e.xScale(e.xIndex),e.canvasX=e.x*e.model.canvasPixelRatio}),f(O,e),O.filter(function(e){return 0!==Math.abs(t.xIndex-e.xIndex)}).attr(\"transform\",function(t){return\"translate(\"+t.xScale(t.xIndex)+\", 0)\"}),w.select(this).attr(\"transform\",\"translate(\"+t.x+\", 0)\"),O.each(function(r,n,i){i===t.parent.key&&(e.dimensions[n]=r)}),e.contextLineLayer&&e.contextLineLayer.render(e.panels,!1,!u(e)),e.focusLineLayer.render&&e.focusLineLayer.render(e.panels))}).on(\"dragend\",function(t){var e=t.parent;if(T)return void(\"ending\"===T&&(T=!1));t.x=t.xScale(t.xIndex),t.canvasX=t.x*t.model.canvasPixelRatio,f(O,e),w.select(this).attr(\"transform\",function(t){return\"translate(\"+t.x+\", 0)\"}),e.contextLineLayer&&e.contextLineLayer.render(e.panels,!1,!u(e)),e.focusLineLayer&&e.focusLineLayer.render(e.panels),e.pickLineLayer&&e.pickLineLayer.render(e.panels,!0),S=!0,o&&o.axesMoved&&o.axesMoved(e.key,e.dimensions.map(function(t){return t.crossfilterDimensionIndex}))})),O.exit().remove();var R=O.selectAll(\".axisOverlays\").data(i,n);R.enter().append(\"g\").classed(\"axisOverlays\",!0),R.selectAll(\".axis\").remove();var F=R.selectAll(\".axis\").data(i,n);F.enter().append(\"g\").classed(\"axis\",!0),F.each(function(t){var e=t.model.height/t.model.tickDistance,r=t.domainScale,n=r.domain();w.select(this).call(w.svg.axis().orient(\"left\").tickSize(4).outerTickSize(2).ticks(e,t.tickFormat).tickValues(t.ordinal?n:null).tickFormat(t.ordinal?function(t){return t}:null).scale(r)),M.font(F.selectAll(\"text\"),t.model.tickFont)}),F.selectAll(\".domain, .tick>line\").attr(\"fill\",\"none\").attr(\"stroke\",\"black\").attr(\"stroke-opacity\",.25).attr(\"stroke-width\",\"1px\"),F.selectAll(\"text\").style(\"text-shadow\",\"1px 1px 1px #fff, -1px -1px 1px #fff, 1px -1px 1px #fff, -1px 1px 1px #fff\").style(\"cursor\",\"default\").style(\"user-select\",\"none\");var j=R.selectAll(\".axisHeading\").data(i,n);j.enter().append(\"g\").classed(\"axisHeading\",!0);var N=j.selectAll(\".axisTitle\").data(i,n);N.enter().append(\"text\").classed(\"axisTitle\",!0).attr(\"text-anchor\",\"middle\").style(\"cursor\",\"ew-resize\").style(\"user-select\",\"none\").style(\"pointer-events\",\"auto\"),N.attr(\"transform\",\"translate(0,\"+-x.axisTitleOffset+\")\").text(function(t){return t.label}).each(function(t){M.font(N,t.model.labelFont)});var B=R.selectAll(\".axisExtent\").data(i,n);B.enter().append(\"g\").classed(\"axisExtent\",!0);var U=B.selectAll(\".axisExtentTop\").data(i,n);U.enter().append(\"g\").classed(\"axisExtentTop\",!0),U.attr(\"transform\",\"translate(0,\"+-x.axisExtentOffset+\")\");var V=U.selectAll(\".axisExtentTopText\").data(i,n);V.enter().append(\"text\").classed(\"axisExtentTopText\",!0).attr(\"alignment-baseline\",\"after-edge\").call(y),V.text(function(t){return d(t)(t.domainScale.domain().slice(-1)[0])}).each(function(t){M.font(V,t.model.rangeFont)});var H=B.selectAll(\".axisExtentBottom\").data(i,n);H.enter().append(\"g\").classed(\"axisExtentBottom\",!0),H.attr(\"transform\",function(t){return\"translate(0,\"+(t.model.height+x.axisExtentOffset)+\")\"});var q=H.selectAll(\".axisExtentBottomText\").data(i,n);q.enter().append(\"text\").classed(\"axisExtentBottomText\",!0).attr(\"alignment-baseline\",\"before-edge\").call(y),q.text(function(t){return d(t)(t.domainScale.domain()[0])}).each(function(t){M.font(q,t.model.rangeFont)});var G=R.selectAll(\".axisBrush\").data(i,n),Y=G.enter().append(\"g\").classed(\"axisBrush\",!0);G.each(function(t){t.brush||(t.brush=w.svg.brush().y(t.unitScale).on(\"brushstart\",_).on(\"brush\",k).on(\"brushend\",A),0===t.filter[0]&&1===t.filter[1]||t.brush.extent(t.filter),w.select(this).call(t.brush))}),Y.selectAll(\"rect\").attr(\"x\",-x.bar.capturewidth/2).attr(\"width\",x.bar.capturewidth),Y.selectAll(\"rect.extent\").attr(\"fill\",\"url(#filterBarPattern)\").style(\"cursor\",\"ns-resize\").filter(function(t){return 0===t.filter[0]&&1===t.filter[1]}).attr(\"y\",-100),Y.selectAll(\".resize rect\").attr(\"height\",x.bar.handleheight).attr(\"opacity\",0).style(\"visibility\",\"visible\"),Y.selectAll(\".resize.n rect\").style(\"cursor\",\"n-resize\").attr(\"y\",x.bar.handleoverlap-x.bar.handleheight),Y.selectAll(\".resize.s rect\").style(\"cursor\",\"s-resize\").attr(\"y\",x.bar.handleoverlap);var W=!1,X=!1;return I}},{\"../../components/drawing\":628,\"../../lib\":728,\"./constants\":1001,\"./lines\":1004,d3:122}],1006:[function(t,e,r){\"use strict\";var n=t(\"./parcoords\");e.exports=function(t,e){var r=t._fullLayout,i=r._paper,a=r._paperdiv,o={},s={},l=r._size;e.forEach(function(e,r){o[r]=t.data[r].dimensions,s[r]=t.data[r].dimensions.slice()});var u=function(e,r,n){var i=s[e][r],a=i.constraintrange;a&&2===a.length||(a=i.constraintrange=[]),a[0]=n[0],a[1]=n[1],t.emit(\"plotly_restyle\")},c=function(e){t.emit(\"plotly_hover\",e)},h=function(e){t.emit(\"plotly_unhover\",e)},f=function(e,r){function n(t){return!(\"visible\"in t)||t.visible}function i(t,e,r){var n=e.indexOf(r),i=t.indexOf(n);return-1===i&&(i+=e.length),i}var a=function(t){return function(e,n){return i(r,t,e)-i(r,t,n)}}(s[e].filter(n));o[e].sort(a),s[e].filter(function(t){return!n(t)}).sort(function(t){return s[e].indexOf(t)}).forEach(function(t){o[e].splice(o[e].indexOf(t),1),o[e].splice(s[e].indexOf(t),0,t)}),t.emit(\"plotly_restyle\")};n(a,i,e,{width:l.w,height:l.h,margin:{t:l.t,r:l.r,b:l.b,l:l.l}},{filterChanged:u,hover:c,unhover:h,axesMoved:f})}},{\"./parcoords\":1005}],1007:[function(t,e,r){\"use strict\";var n=t(\"../../components/color/attributes\"),i=t(\"../../plots/font_attributes\"),a=t(\"../../plots/attributes\"),o=t(\"../../lib/extend\").extendFlat,s=i({editType:\"calc\",colorEditType:\"style\"});e.exports={labels:{valType:\"data_array\",editType:\"calc\"},label0:{valType:\"number\",dflt:0,editType:\"calc\"},dlabel:{valType:\"number\",dflt:1,editType:\"calc\"},values:{valType:\"data_array\",editType:\"calc\"},marker:{colors:{valType:\"data_array\",editType:\"calc\"},line:{color:{valType:\"color\",dflt:n.defaultLine,arrayOk:!0,editType:\"style\"},width:{valType:\"number\",min:0,dflt:0,arrayOk:!0,editType:\"style\"},editType:\"calc\"},editType:\"calc\"},text:{valType:\"data_array\",editType:\"calc\"},hovertext:{valType:\"string\",dflt:\"\",arrayOk:!0,editType:\"style\"},scalegroup:{valType:\"string\",dflt:\"\",editType:\"calc\"},textinfo:{valType:\"flaglist\",flags:[\"label\",\"text\",\"value\",\"percent\"],extras:[\"none\"],editType:\"calc\"},hoverinfo:o({},a.hoverinfo,{flags:[\"label\",\"text\",\"value\",\"percent\",\"name\"]}),textposition:{valType:\"enumerated\",values:[\"inside\",\"outside\",\"auto\",\"none\"],dflt:\"auto\",arrayOk:!0,editType:\"calc\"},textfont:o({},s,{}),insidetextfont:o({},s,{}),outsidetextfont:o({},s,{}),domain:{x:{valType:\"info_array\",items:[{valType:\"number\",min:0,max:1,editType:\"calc\"},{valType:\"number\",min:0,max:1,editType:\"calc\"}],dflt:[0,1],editType:\"calc\"},y:{valType:\"info_array\",items:[{valType:\"number\",min:0,max:1,editType:\"calc\"},{valType:\"number\",min:0,max:1,editType:\"calc\"}],dflt:[0,1],editType:\"calc\"},editType:\"calc\"},hole:{valType:\"number\",min:0,max:1,dflt:0,editType:\"calc\"},sort:{valType:\"boolean\",dflt:!0,editType:\"calc\"},direction:{valType:\"enumerated\",values:[\"clockwise\",\"counterclockwise\"],dflt:\"counterclockwise\",editType:\"calc\"},rotation:{valType:\"number\",min:-360,max:360,dflt:0,editType:\"calc\"},pull:{valType:\"number\",min:0,max:1,dflt:0,arrayOk:!0,editType:\"calc\"}}},{\"../../components/color/attributes\":603,\"../../lib/extend\":717,\"../../plots/attributes\":770,\"../../plots/font_attributes\":796}],1008:[function(t,e,r){\"use strict\";function n(t,e){for(var r=[],n=0;n<t.length;n++){var i=t[n],a=i[0].trace;a._module===e&&!0===a.visible&&r.push(i)}return r}var i=t(\"../../registry\");r.name=\"pie\",r.plot=function(t){var e=i.getModule(\"pie\"),r=n(t.calcdata,e);r.length&&e.plot(t,r)},r.clean=function(t,e,r,n){var i=n._has&&n._has(\"pie\"),a=e._has&&e._has(\"pie\");i&&!a&&n._pielayer.selectAll(\"g.trace\").remove()}},{\"../../registry\":846}],1009:[function(t,e,r){\"use strict\";function n(t){if(!l){var e=o.defaults;l=e.slice();var r;for(r=0;r<e.length;r++)l.push(a(e[r]).lighten(20).toHexString());for(r=0;r<o.defaults.length;r++)l.push(a(e[r]).darken(20).toHexString())}return l[t%l.length]}var i=t(\"fast-isnumeric\"),a=t(\"tinycolor2\"),o=t(\"../../components/color\"),s=t(\"./helpers\");e.exports=function(t,e){var r,l,u,c,h,f,d=e.values,p=e.labels,m=[],v=t._fullLayout,g=v._piecolormap,y={},b=!1,x=0,_=v.hiddenlabels||[];if(e.dlabel)for(p=new Array(d.length),r=0;r<d.length;r++)p[r]=String(e.label0+r*e.dlabel);for(r=0;r<d.length;r++)l=d[r],i(l)&&((l=+l)<0||(u=p[r],void 0!==u&&\"\"!==u||(u=r),u=String(u),void 0===y[u]&&(y[u]=!0,c=a(e.marker.colors[r]),c.isValid()?(c=o.addOpacity(c,c.getAlpha()),g[u]||(g[u]=c)):g[u]?c=g[u]:(c=!1,b=!0),h=-1!==_.indexOf(u),h||(x+=l),m.push({v:l,label:u,color:c,i:r,hidden:h}))));if(e.sort&&m.sort(function(t,e){return e.v-t.v}),b)for(r=0;r<m.length;r++)f=m[r],!1===f.color&&(g[f.label]=f.color=n(v._piedefaultcolorcount),v._piedefaultcolorcount++);if(m[0]&&(m[0].vTotal=x),e.textinfo&&\"none\"!==e.textinfo){var w,M=-1!==e.textinfo.indexOf(\"label\"),k=-1!==e.textinfo.indexOf(\"text\"),A=-1!==e.textinfo.indexOf(\"value\"),T=-1!==e.textinfo.indexOf(\"percent\"),S=v.separators;for(r=0;r<m.length;r++)f=m[r],w=M?[f.label]:[],k&&e.text[f.i]&&w.push(e.text[f.i]),A&&w.push(s.formatPieValue(f.v,S)),T&&w.push(s.formatPiePercent(f.v/x,S)),f.text=w.join(\"<br>\")}return m};var l},{\"../../components/color\":604,\"./helpers\":1011,\"fast-isnumeric\":131,tinycolor2:534}],1010:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"./attributes\");e.exports=function(t,e,r,a){function o(r,a){return n.coerce(t,e,i,r,a)}var s=n.coerceFont,l=o(\"values\");if(!Array.isArray(l)||!l.length)return void(e.visible=!1);var u=o(\"labels\");Array.isArray(u)||(o(\"label0\"),o(\"dlabel\")),o(\"marker.line.width\")&&o(\"marker.line.color\");var c=o(\"marker.colors\");Array.isArray(c)||(e.marker.colors=[]),o(\"scalegroup\");var h=o(\"text\"),f=o(\"textinfo\",Array.isArray(h)?\"text+percent\":\"percent\");if(o(\"hovertext\"),f&&\"none\"!==f){var d=o(\"textposition\"),p=Array.isArray(d)||\"auto\"===d,m=p||\"inside\"===d,v=p||\"outside\"===d;if(m||v){var g=s(o,\"textfont\",a.font);m&&s(o,\"insidetextfont\",g),v&&s(o,\"outsidetextfont\",g)}}o(\"domain.x\"),o(\"domain.y\"),o(\"hole\"),o(\"sort\"),o(\"direction\"),o(\"rotation\"),o(\"pull\")}},{\"../../lib\":728,\"./attributes\":1007}],1011:[function(t,e,r){\"use strict\";var n=t(\"../../lib\");r.formatPiePercent=function(t,e){var r=(100*t).toPrecision(3);return-1!==r.lastIndexOf(\".\")&&(r=r.replace(/[.]?0+$/,\"\")),n.numSeparate(r,e)+\"%\"},r.formatPieValue=function(t,e){var r=t.toPrecision(10);return-1!==r.lastIndexOf(\".\")&&(r=r.replace(/[.]?0+$/,\"\")),n.numSeparate(r,e)}},{\"../../lib\":728}],1012:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.supplyDefaults=t(\"./defaults\"),n.supplyLayoutDefaults=t(\"./layout_defaults\"),n.layoutAttributes=t(\"./layout_attributes\"),n.calc=t(\"./calc\"),n.plot=t(\"./plot\"),n.style=t(\"./style\"),n.styleOne=t(\"./style_one\"),n.moduleType=\"trace\",n.name=\"pie\",n.basePlotModule=t(\"./base_plot\"),n.categories=[\"pie\",\"showLegend\"],n.meta={},e.exports=n},{\"./attributes\":1007,\"./base_plot\":1008,\"./calc\":1009,\"./defaults\":1010,\"./layout_attributes\":1013,\"./layout_defaults\":1014,\"./plot\":1015,\"./style\":1016,\"./style_one\":1017}],1013:[function(t,e,r){\"use strict\";e.exports={hiddenlabels:{valType:\"data_array\",editType:\"calc\"}}},{}],1014:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"./layout_attributes\");e.exports=function(t,e){!function(r,a){n.coerce(t,e,i,r,a)}(\"hiddenlabels\")}},{\"../../lib\":728,\"./layout_attributes\":1013}],1015:[function(t,e,r){\"use strict\";function n(t,e,r){var n=Math.sqrt(t.width*t.width+t.height*t.height),a=t.width/t.height,o=Math.PI*Math.min(e.v/r.vTotal,.5),s=1-r.trace.hole,l=i(e,r),u={scale:l*r.r*2/n,rCenter:1-l,rotate:0};if(u.scale>=1)return u;var c=a+1/(2*Math.tan(o)),h=r.r*Math.min(1/(Math.sqrt(c*c+.5)+c),s/(Math.sqrt(a*a+s/2)+a)),f={scale:2*h/t.height,rCenter:Math.cos(h/r.r)-h*a/r.r,rotate:(180/Math.PI*e.midangle+720)%180-90},d=1/a,p=d+1/(2*Math.tan(o)),m=r.r*Math.min(1/(Math.sqrt(p*p+.5)+p),s/(Math.sqrt(d*d+s/2)+d)),v={scale:2*m/t.width,rCenter:Math.cos(m/r.r)-m/a/r.r,rotate:(180/Math.PI*e.midangle+810)%180-90},g=v.scale>f.scale?v:f;return u.scale<1&&g.scale>u.scale?g:u}function i(t,e){if(t.v===e.vTotal&&!e.trace.hole)return 1;var r=Math.PI*Math.min(t.v/e.vTotal,.5);return Math.min(1/(1+1/Math.sin(r)),(1-e.trace.hole)/2)}function a(t,e){var r=e.pxmid[0],n=e.pxmid[1],i=t.width/2,a=t.height/2;return r<0&&(i*=-1),n<0&&(a*=-1),{scale:1,rCenter:1,rotate:0,x:i+Math.abs(a)*(i>0?1:-1)/2,y:a/(1+r*r/(n*n)),outside:!0}}function o(t,e){function r(t,e){return t.pxmid[1]-e.pxmid[1]}function n(t,e){return e.pxmid[1]-t.pxmid[1]}var i,a,o,s,l,u,c,h,f,d,p,m,v;for(a=0;a<2;a++)for(o=a?r:n,l=a?Math.max:Math.min,c=a?1:-1,i=0;i<2;i++){for(s=i?Math.max:Math.min,u=i?1:-1,h=t[a][i],h.sort(o),f=t[1-a][i],d=f.concat(h),m=[],p=0;p<h.length;p++)void 0!==h[p].yLabelMid&&m.push(h[p]);for(v=!1,p=0;a&&p<f.length;p++)if(void 0!==f[p].yLabelMid){v=f[p];break}for(p=0;p<m.length;p++){var g=p&&m[p-1];v&&!p&&(g=v),function(t,r){r||(r={});var n,i,o,h,f,p,m=r.labelExtraY+(a?r.yLabelMax:r.yLabelMin),v=a?t.yLabelMin:t.yLabelMax,g=a?t.yLabelMax:t.yLabelMin,y=t.cyFinal+l(t.px0[1],t.px1[1]),b=m-v;if(b*c>0&&(t.labelExtraY=b),Array.isArray(e.pull))for(i=0;i<d.length;i++)(o=d[i])===t||(e.pull[t.i]||0)>=e.pull[o.i]||((t.pxmid[1]-o.pxmid[1])*c>0?(h=o.cyFinal+l(o.px0[1],o.px1[1]),(b=h-v-t.labelExtraY)*c>0&&(t.labelExtraY+=b)):(g+t.labelExtraY-y)*c>0&&(n=3*u*Math.abs(i-d.indexOf(t)),f=o.cxFinal+s(o.px0[0],o.px1[0]),(p=f+n-(t.cxFinal+t.pxmid[0])-t.labelExtraX)*u>0&&(t.labelExtraX+=p)))}(m[p],g)}}}function s(t,e){var r,n,i,a,o,s,l,c,h,f,d=[];for(i=0;i<t.length;i++){if(o=t[i][0],s=o.trace,r=e.w*(s.domain.x[1]-s.domain.x[0]),n=e.h*(s.domain.y[1]-s.domain.y[0]),l=s.tiltaxis*Math.PI/180,c=s.pull,Array.isArray(c))for(c=0,a=0;a<s.pull.length;a++)s.pull[a]>c&&(c=s.pull[a]);o.r=Math.min(r/u(s.tilt,Math.sin(l),s.depth),n/u(s.tilt,Math.cos(l),s.depth))/(2+2*c),o.cx=e.l+e.w*(s.domain.x[1]+s.domain.x[0])/2,o.cy=e.t+e.h*(2-s.domain.y[1]-s.domain.y[0])/2,s.scalegroup&&-1===d.indexOf(s.scalegroup)&&d.push(s.scalegroup)}for(a=0;a<d.length;a++){for(f=1/0,h=d[a],i=0;i<t.length;i++)o=t[i][0],o.trace.scalegroup===h&&(f=Math.min(f,o.r*o.r/o.vTotal));for(i=0;i<t.length;i++)o=t[i][0],o.trace.scalegroup===h&&(o.r=Math.sqrt(f*o.vTotal))}}function l(t){function e(t){var e=h.r*Math.sin(t),r=-h.r*Math.cos(t);return d?[e*(1-s*n*n)+r*o*s,e*o*s+r*(1-s*i*i),Math.sin(a)*(r*i-e*n)]:[e,r]}var r,n,i,a,o,s,l,u,c,h=t[0],f=h.trace,d=f.tilt,p=f.rotation*Math.PI/180,m=2*Math.PI/h.vTotal,v=\"px0\",g=\"px1\";if(\"counterclockwise\"===f.direction){for(l=0;l<t.length&&t[l].hidden;l++);if(l===t.length)return;p+=m*t[l].v,m*=-1,v=\"px1\",g=\"px0\"}for(d&&(a=d*Math.PI/180,r=f.tiltaxis*Math.PI/180,o=Math.sin(r)*Math.cos(r),s=1-Math.cos(a),n=Math.sin(r),i=Math.cos(r)),c=e(p),l=0;l<t.length;l++)u=t[l],u.hidden||(u[v]=c,p+=m*u.v/2,u.pxmid=e(p),u.midangle=p,p+=m*u.v/2,c=e(p),u[g]=c,u.largeArc=u.v>h.vTotal/2?1:0)}function u(t,e,r){if(!t)return 1;var n=Math.sin(t*Math.PI/180);return Math.max(.01,r*n*Math.abs(e)+2*Math.sqrt(1-n*n*e*e))}var c=t(\"d3\"),h=t(\"../../components/fx\"),f=t(\"../../components/color\"),d=t(\"../../components/drawing\"),p=t(\"../../lib/svg_text_utils\"),m=t(\"./helpers\");e.exports=function(t,e){var r=t._fullLayout;s(e,r._size);var u=r._pielayer.selectAll(\"g.trace\").data(e);u.enter().append(\"g\").attr({\"stroke-linejoin\":\"round\",class:\"trace\"}),u.exit().remove(),u.order(),u.each(function(e){var s=c.select(this),u=e[0],v=u.trace,g=(v.depth||0)*u.r*Math.sin(0)/2,y=v.tiltaxis||0,b=y*Math.PI/180,x=[g*Math.sin(b),g*Math.cos(b)],_=u.r*Math.cos(0),w=s.selectAll(\"g.part\").data(v.tilt?[\"top\",\"sides\"]:[\"top\"]);w.enter().append(\"g\").attr(\"class\",function(t){return t+\" part\"}),w.exit().remove(),w.order(),l(e),s.selectAll(\".top\").each(function(){var s=c.select(this).selectAll(\"g.slice\").data(e);s.enter().append(\"g\").classed(\"slice\",!0),s.exit().remove();var l=[[[],[]],[[],[]]],g=!1;s.each(function(e){function o(n){n.originalEvent=c.event;var a=t._fullLayout,o=t._fullData[v.index],s=h.castHoverinfo(o,a,e.i);if(\"all\"===s&&(s=\"label+text+value+percent+name\"),t._dragging||!1===a.hovermode||\"none\"===s||\"skip\"===s||!s)return void h.hover(t,n,\"pie\");var l=i(e,u),f=w+e.pxmid[0]*(1-l),d=M+e.pxmid[1]*(1-l),p=r.separators,g=[];-1!==s.indexOf(\"label\")&&g.push(e.label),-1!==s.indexOf(\"text\")&&(o.hovertext?g.push(Array.isArray(o.hovertext)?o.hovertext[e.i]:o.hovertext):o.text&&o.text[e.i]&&g.push(o.text[e.i])),-1!==s.indexOf(\"value\")&&g.push(m.formatPieValue(e.v,p)),-1!==s.indexOf(\"percent\")&&g.push(m.formatPiePercent(e.v/u.vTotal,p)),h.loneHover({x0:f-l*u.r,x1:f+l*u.r,y:d,text:g.join(\"<br>\"),name:-1!==s.indexOf(\"name\")?o.name:void 0,idealAlign:e.pxmid[0]<0?\"left\":\"right\",color:h.castHoverOption(v,e.i,\"bgcolor\")||e.color,borderColor:h.castHoverOption(v,e.i,\"bordercolor\"),fontFamily:h.castHoverOption(v,e.i,\"font.family\"),fontSize:h.castHoverOption(v,e.i,\"font.size\"),fontColor:h.castHoverOption(v,e.i,\"font.color\")},{container:a._hoverlayer.node(),outerContainer:a._paper.node(),gd:t}),h.hover(t,n,\"pie\"),T=!0}function s(e){e.originalEvent=c.event,t.emit(\"plotly_unhover\",{event:c.event,points:[e]}),T&&(h.loneUnhover(r._hoverlayer.node()),T=!1)}function f(){t._hoverdata=[e],t._hoverdata.trace=u.trace,h.click(t,c.event)}function b(t,r,n,i){return\"a\"+i*u.r+\",\"+i*_+\" \"+y+\" \"+e.largeArc+(n?\" 1 \":\" 0 \")+i*(r[0]-t[0])+\",\"+i*(r[1]-t[1])}if(e.hidden)return void c.select(this).selectAll(\"path,g\").remove();e.pointNumber=e.i,e.curveNumber=v.index,l[e.pxmid[1]<0?0:1][e.pxmid[0]<0?0:1].push(e);var w=u.cx+x[0],M=u.cy+x[1],k=c.select(this),A=k.selectAll(\"path.surface\").data([e]),T=!1;if(A.enter().append(\"path\").classed(\"surface\",!0).style({\"pointer-events\":\"all\"}),k.select(\"path.textline\").remove(),k.on(\"mouseover\",o).on(\"mouseout\",s).on(\"click\",f),v.pull){var S=+(Array.isArray(v.pull)?v.pull[e.i]:v.pull)||0;S>0&&(w+=S*e.pxmid[0],M+=S*e.pxmid[1])}e.cxFinal=w,e.cyFinal=M;var E=v.hole;if(e.v===u.vTotal){var L=\"M\"+(w+e.px0[0])+\",\"+(M+e.px0[1])+b(e.px0,e.pxmid,!0,1)+b(e.pxmid,e.px0,!0,1)+\"Z\";E?A.attr(\"d\",\"M\"+(w+E*e.px0[0])+\",\"+(M+E*e.px0[1])+b(e.px0,e.pxmid,!1,E)+b(e.pxmid,e.px0,!1,E)+\"Z\"+L):A.attr(\"d\",L)}else{var C=b(e.px0,e.px1,!0,1);if(E){var I=1-E;A.attr(\"d\",\"M\"+(w+E*e.px1[0])+\",\"+(M+E*e.px1[1])+b(e.px1,e.px0,!1,E)+\"l\"+I*e.px0[0]+\",\"+I*e.px0[1]+C+\"Z\")}else A.attr(\"d\",\"M\"+w+\",\"+M+\"l\"+e.px0[0]+\",\"+e.px0[1]+C+\"Z\")}var z=Array.isArray(v.textposition)?v.textposition[e.i]:v.textposition,D=k.selectAll(\"g.slicetext\").data(e.text&&\"none\"!==z?[0]:[]);D.enter().append(\"g\").classed(\"slicetext\",!0),D.exit().remove(),D.each(function(){var r=c.select(this).selectAll(\"text\").data([0]);r.enter().append(\"text\").attr(\"data-notex\",1),r.exit().remove(),r.text(e.text).attr({class:\"slicetext\",transform:\"\",\"text-anchor\":\"middle\"}).call(d.font,\"outside\"===z?v.outsidetextfont:v.insidetextfont).call(p.convertToTspans,t);var i,o=d.bBox(r.node());\"outside\"===z?i=a(o,e):(i=n(o,e,u),\"auto\"===z&&i.scale<1&&(r.call(d.font,v.outsidetextfont),v.outsidetextfont.family===v.insidetextfont.family&&v.outsidetextfont.size===v.insidetextfont.size||(o=d.bBox(r.node())),i=a(o,e)));var s=w+e.pxmid[0]*i.rCenter+(i.x||0),l=M+e.pxmid[1]*i.rCenter+(i.y||0);i.outside&&(e.yLabelMin=l-o.height/2,e.yLabelMid=l,e.yLabelMax=l+o.height/2,e.labelExtraX=0,e.labelExtraY=0,g=!0),r.attr(\"transform\",\"translate(\"+s+\",\"+l+\")\"+(i.scale<1?\"scale(\"+i.scale+\")\":\"\")+(i.rotate?\"rotate(\"+i.rotate+\")\":\"\")+\"translate(\"+-(o.left+o.right)/2+\",\"+-(o.top+o.bottom)/2+\")\")})}),g&&o(l,v),s.each(function(t){if(t.labelExtraX||t.labelExtraY){var e=c.select(this),r=e.select(\"g.slicetext text\");r.attr(\"transform\",\"translate(\"+t.labelExtraX+\",\"+t.labelExtraY+\")\"+r.attr(\"transform\"));var n=t.cxFinal+t.pxmid[0],i=t.cyFinal+t.pxmid[1],a=\"M\"+n+\",\"+i,o=(t.yLabelMax-t.yLabelMin)*(t.pxmid[0]<0?-1:1)/4;if(t.labelExtraX){var s=t.labelExtraX*t.pxmid[1]/t.pxmid[0],l=t.yLabelMid+t.labelExtraY-(t.cyFinal+t.pxmid[1]);Math.abs(s)>Math.abs(l)?a+=\"l\"+l*t.pxmid[0]/t.pxmid[1]+\",\"+l+\"H\"+(n+t.labelExtraX+o):a+=\"l\"+t.labelExtraX+\",\"+s+\"v\"+(l-s)+\"h\"+o}else a+=\"V\"+(t.yLabelMid+t.labelExtraY)+\"h\"+o;e.append(\"path\").classed(\"textline\",!0).call(f.stroke,v.outsidetextfont.color).attr({\"stroke-width\":Math.min(2,v.outsidetextfont.size/8),d:a,fill:\"none\"})}})})}),setTimeout(function(){u.selectAll(\"tspan\").each(function(){var t=c.select(this);t.attr(\"dy\")&&t.attr(\"dy\",t.attr(\"dy\"))})},0)}},{\"../../components/color\":604,\"../../components/drawing\":628,\"../../components/fx\":645,\"../../lib/svg_text_utils\":750,\"./helpers\":1011,d3:122}],1016:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"./style_one\");e.exports=function(t){t._fullLayout._pielayer.selectAll(\".trace\").each(function(t){var e=t[0],r=e.trace,a=n.select(this);a.style({opacity:r.opacity}),a.selectAll(\".top path.surface\").each(function(t){n.select(this).call(i,t,r)})})}},{\"./style_one\":1017,d3:122}],1017:[function(t,e,r){\"use strict\";var n=t(\"../../components/color\");e.exports=function(t,e,r){var i=r.marker.line.color;Array.isArray(i)&&(i=i[e.i]||n.defaultLine);var a=r.marker.line.width||0;Array.isArray(a)&&(a=a[e.i]||0),t.style({\"stroke-width\":a}).call(n.fill,e.color).call(n.stroke,i)}},{\"../../components/color\":604}],1018:[function(t,e,r){\"use strict\";var n=t(\"../scattergl/attributes\");e.exports={x:n.x,y:n.y,xy:{valType:\"data_array\",editType:\"calc\"},indices:{valType:\"data_array\",editType:\"calc\"},xbounds:{valType:\"data_array\",editType:\"calc\"},ybounds:{valType:\"data_array\",editType:\"calc\"},text:n.text,marker:{color:{valType:\"color\",arrayOk:!1,editType:\"calc\"},opacity:{valType:\"number\",min:0,max:1,dflt:1,arrayOk:!1,editType:\"calc\"},blend:{valType:\"boolean\",dflt:null,editType:\"calc\"},sizemin:{valType:\"number\",min:.1,max:2,dflt:.5,editType:\"calc\"},sizemax:{valType:\"number\",min:.1,dflt:20,editType:\"calc\"},border:{color:{valType:\"color\",arrayOk:!1,editType:\"calc\"},arearatio:{valType:\"number\",min:0,max:1,dflt:0,editType:\"calc\"},editType:\"calc\"},editType:\"calc\"}}},{\"../scattergl/attributes\":1077}],1019:[function(t,e,r){\"use strict\";function n(t,e){this.scene=t,this.uid=e,this.type=\"pointcloud\",this.pickXData=[],this.pickYData=[],this.xData=[],this.yData=[],this.textLabels=[],this.color=\"rgb(0, 0, 0)\",this.name=\"\",this.hoverinfo=\"all\",this.idToIndex=new Int32Array(0),this.bounds=[0,0,0,0],this.pointcloudOptions={positions:new Float32Array(0),idToIndex:this.idToIndex,sizemin:.5,sizemax:12,color:[0,0,0,1],areaRatio:1,borderColor:[0,0,0,1]},this.pointcloud=a(t.glplot,this.pointcloudOptions),this.pointcloud._trace=this}function i(t,e){var r=new n(t,e.uid);return r.update(e),r}var a=t(\"gl-pointcloud2d\"),o=t(\"../../lib/str2rgbarray\"),s=t(\"../scatter/get_trace_color\"),l=[\"xaxis\",\"yaxis\"],u=n.prototype;u.handlePick=function(t){var e=this.idToIndex[t.pointId];return{trace:this,dataCoord:t.dataCoord,traceCoord:this.pickXYData?[this.pickXYData[2*e],this.pickXYData[2*e+1]]:[this.pickXData[e],this.pickYData[e]],textLabel:Array.isArray(this.textLabels)?this.textLabels[e]:this.textLabels,color:this.color,name:this.name,pointIndex:e,hoverinfo:this.hoverinfo}},u.update=function(t){this.index=t.index,this.textLabels=t.text,this.name=t.name,this.hoverinfo=t.hoverinfo,this.bounds=[1/0,1/0,-1/0,-1/0],this.updateFast(t),this.color=s(t,{})},u.updateFast=function(t){var e,r,n,i,a,s,l=this.xData=this.pickXData=t.x,u=this.yData=this.pickYData=t.y,c=this.pickXYData=t.xy,h=t.xbounds&&t.ybounds,f=t.indices,d=this.bounds;if(c){if(n=c,e=c.length>>>1,h)d[0]=t.xbounds[0],d[2]=t.xbounds[1],d[1]=t.ybounds[0],d[3]=t.ybounds[1];else for(s=0;s<e;s++)i=n[2*s],a=n[2*s+1],i<d[0]&&(d[0]=i),i>d[2]&&(d[2]=i),a<d[1]&&(d[1]=a),a>d[3]&&(d[3]=a);if(f)r=f;else for(r=new Int32Array(e),s=0;s<e;s++)r[s]=s}else for(e=l.length,n=new Float32Array(2*e),r=new Int32Array(e),s=0;s<e;s++)i=l[s],a=u[s],r[s]=s,n[2*s]=i,n[2*s+1]=a,i<d[0]&&(d[0]=i),i>d[2]&&(d[2]=i),a<d[1]&&(d[1]=a),a>d[3]&&(d[3]=a);this.idToIndex=r,this.pointcloudOptions.idToIndex=r,this.pointcloudOptions.positions=n;var p=o(t.marker.color),m=o(t.marker.border.color),v=t.opacity*t.marker.opacity;p[3]*=v,this.pointcloudOptions.color=p;var g=t.marker.blend;if(null===g){g=l.length<100||u.length<100}this.pointcloudOptions.blend=g,m[3]*=v,this.pointcloudOptions.borderColor=m;var y=t.marker.sizemin,b=Math.max(t.marker.sizemax,t.marker.sizemin);this.pointcloudOptions.sizeMin=y,this.pointcloudOptions.sizeMax=b,this.pointcloudOptions.areaRatio=t.marker.border.arearatio,this.pointcloud.update(this.pointcloudOptions),this.expandAxesFast(d,b/2)},u.expandAxesFast=function(t,e){for(var r,n,i,a=e||.5,o=0;o<2;o++)r=this.scene[l[o]],n=r._min,n||(n=[]),n.push({val:t[o],pad:a}),i=r._max,i||(i=[]),i.push({val:t[o+2],pad:a})},u.dispose=function(){this.pointcloud.dispose()},e.exports=i},{\"../../lib/str2rgbarray\":749,\"../scatter/get_trace_color\":1040,\"gl-pointcloud2d\":230}],1020:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"./attributes\");e.exports=function(t,e,r){function a(r,a){return n.coerce(t,e,i,r,a)}a(\"x\"),a(\"y\"),a(\"xbounds\"),a(\"ybounds\"),t.xy&&t.xy instanceof Float32Array&&(e.xy=t.xy),t.indices&&t.indices instanceof Int32Array&&(e.indices=t.indices),a(\"text\"),a(\"marker.color\",r),a(\"marker.opacity\"),a(\"marker.blend\"),a(\"marker.sizemin\"),a(\"marker.sizemax\"),a(\"marker.border.color\",r),a(\"marker.border.arearatio\")}},{\"../../lib\":728,\"./attributes\":1018}],1021:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.supplyDefaults=t(\"./defaults\"),n.calc=t(\"../scatter3d/calc\"),n.plot=t(\"./convert\"),n.moduleType=\"trace\",n.name=\"pointcloud\",n.basePlotModule=t(\"../../plots/gl2d\"),n.categories=[\"gl2d\",\"showLegend\"],n.meta={},e.exports=n},{\"../../plots/gl2d\":808,\"../scatter3d/calc\":1056,\"./attributes\":1018,\"./convert\":1019,\"./defaults\":1020}],1022:[function(t,e,r){\"use strict\";var n=t(\"../../plots/font_attributes\"),i=t(\"../../plots/attributes\"),a=t(\"../../components/color/attributes\"),o=t(\"../../components/fx/attributes\"),s=t(\"../../lib/extend\").extendFlat,l=t(\"../../plot_api/edit_types\").overrideAll;e.exports=l({hoverinfo:s({},i.hoverinfo,{flags:[\"label\",\"text\",\"value\",\"percent\",\"name\"]}),hoverlabel:o.hoverlabel,domain:{x:{valType:\"info_array\",items:[{valType:\"number\",min:0,max:1},{valType:\"number\",min:0,max:1}],dflt:[0,1]},y:{valType:\"info_array\",items:[{valType:\"number\",min:0,max:1},{valType:\"number\",min:0,max:1}],dflt:[0,1]}},orientation:{valType:\"enumerated\",values:[\"v\",\"h\"],dflt:\"h\"},valueformat:{valType:\"string\",dflt:\".3s\"},valuesuffix:{valType:\"string\",dflt:\"\"},arrangement:{valType:\"enumerated\",values:[\"snap\",\"perpendicular\",\"freeform\",\"fixed\"],dflt:\"snap\"},textfont:n({}),node:{label:{valType:\"data_array\",dflt:[]},color:{valType:\"color\",arrayOk:!0},line:{color:{valType:\"color\",dflt:a.defaultLine,arrayOk:!0},width:{valType:\"number\",min:0,dflt:.5,arrayOk:!0}},pad:{valType:\"number\",arrayOk:!1,min:0,dflt:20},thickness:{valType:\"number\",arrayOk:!1,min:1,dflt:20}},link:{label:{valType:\"data_array\",dflt:[]},color:{valType:\"color\",arrayOk:!0},line:{color:{valType:\"color\",dflt:a.defaultLine,arrayOk:!0},width:{valType:\"number\",min:0,dflt:0,arrayOk:!0}},source:{valType:\"data_array\",dflt:[]},target:{valType:\"data_array\",dflt:[]},value:{valType:\"data_array\",dflt:[]}}},\"calc\",\"nested\")},{\"../../components/color/attributes\":603,\"../../components/fx/attributes\":637,\"../../lib/extend\":717,\"../../plot_api/edit_types\":756,\"../../plots/attributes\":770,\"../../plots/font_attributes\":796}],1023:[function(t,e,r){\"use strict\";var n=t(\"../../plot_api/edit_types\").overrideAll,i=t(\"../../plots/plots\"),a=t(\"./plot\"),o=t(\"../../components/fx/layout_attributes\");r.name=\"sankey\",r.attr=\"type\",r.baseLayoutAttrOverrides=n({hoverlabel:o.hoverlabel},\"plot\",\"nested\"),r.plot=function(t){var e=i.getSubplotCalcData(t.calcdata,\"sankey\",\"sankey\");e.length&&a(t,e)},r.clean=function(t,e,r,n){var i=n._has&&n._has(\"sankey\"),a=e._has&&e._has(\"sankey\");i&&!a&&n._paperdiv.selectAll(\".sankey\").remove()}},{\"../../components/fx/layout_attributes\":646,\"../../plot_api/edit_types\":756,\"../../plots/plots\":831,\"./plot\":1028}],1024:[function(t,e,r){\"use strict\";function n(t,e,r){for(var n=t.map(function(){return[]}),a=0;a<Math.min(e.length,r.length);a++){if(e[a]===r[a])return!0;n[e[a]].push(r[a])}return i(n).components.some(function(t){return t.length>1})}var i=t(\"strongly-connected-components\"),a=t(\"../../lib\");e.exports=function(t,e){return n(e.node.label,e.link.source,e.link.target)&&(a.error(\"Circularity is present in the Sankey data. Removing all nodes and links.\"),e.link.label=[],e.link.source=[],e.link.target=[],e.link.value=[],e.link.color=[],e.node.label=[],e.node.color=[]),[{link:e.link,node:e.node}]}},{\"../../lib\":728,\"strongly-connected-components\":528}],1025:[function(t,e,r){\"use strict\";e.exports={nodeTextOffsetHorizontal:4,nodeTextOffsetVertical:3,nodePadAcross:10,sankeyIterations:50,forceIterations:5,forceTicksPerFrame:10,duration:500,ease:\"cubic-in-out\"}},{}],1026:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"./attributes\"),a=t(\"../../components/color/attributes\").defaults,o=t(\"../../components/color\"),s=t(\"tinycolor2\");e.exports=function(t,e,r,l){function u(r,a){return n.coerce(t,e,i,r,a)}u(\"node.label\"),u(\"node.pad\"),u(\"node.thickness\"),u(\"node.line.color\"),u(\"node.line.width\");var c=function(t){return a[t%a.length]};u(\"node.color\",e.node.label.map(function(t,e){return o.addOpacity(c(e),.8)})),u(\"link.label\"),u(\"link.source\"),u(\"link.target\"),u(\"link.value\"),u(\"link.line.color\"),u(\"link.line.width\"),u(\"link.color\",e.link.value.map(function(){return s(l.paper_bgcolor).getLuminance()<.333?\"rgba(255, 255, 255, 0.6)\":\"rgba(0, 0, 0, 0.2)\"})),u(\"domain.x\"),u(\"domain.y\"),u(\"orientation\"),u(\"valueformat\"),u(\"valuesuffix\"),u(\"arrangement\"),n.coerceFont(u,\"textfont\",n.extendFlat({},l.font));var h=function(t,r){return-1===e.link.source.indexOf(r)&&-1===e.link.target.indexOf(r)};e.node.label.some(h)&&n.warn(\"Some of the nodes are neither sources nor targets, they will not be displayed.\")}},{\"../../components/color\":604,\"../../components/color/attributes\":603,\"../../lib\":728,\"./attributes\":1022,tinycolor2:534}],1027:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.supplyDefaults=t(\"./defaults\"),n.calc=t(\"./calc\"),n.plot=t(\"./plot\"),n.moduleType=\"trace\",n.name=\"sankey\",n.basePlotModule=t(\"./base_plot\"),n.categories=[\"noOpacity\"],n.meta={},e.exports=n},{\"./attributes\":1022,\"./base_plot\":1023,\"./calc\":1024,\"./defaults\":1026,\"./plot\":1028}],1028:[function(t,e,r){\"use strict\";function n(t){return\"\"!==t}function i(t,e){return t.filter(function(t){return t.key===e.traceId})}function a(t,e){p.select(t).select(\"path\").style(\"fill-opacity\",e),p.select(t).select(\"rect\").style(\"fill-opacity\",e)}function o(t){p.select(t).select(\"text.name\").style(\"fill\",\"black\")}function s(t){return function(e){return-1!==t.node.sourceLinks.indexOf(e.link)||-1!==t.node.targetLinks.indexOf(e.link)}}function l(t){return function(e){return-1!==e.node.sourceLinks.indexOf(t.link)||-1!==e.node.targetLinks.indexOf(t.link)}}function u(t,e,r){\n", "e&&r&&i(r,e).selectAll(\".sankeyLink\").filter(s(e)).call(h.bind(0,e,r,!1))}function c(t,e,r){e&&r&&i(r,e).selectAll(\".sankeyLink\").filter(s(e)).call(f.bind(0,e,r,!1))}function h(t,e,r,n){var a=n.datum().link.label;n.style(\"fill-opacity\",.4),a&&i(e,t).selectAll(\".sankeyLink\").filter(function(t){return t.link.label===a}).style(\"fill-opacity\",.4),r&&i(e,t).selectAll(\".sankeyNode\").filter(l(t)).call(u)}function f(t,e,r,n){var a=n.datum().link.label;n.style(\"fill-opacity\",function(t){return t.tinyColorAlpha}),a&&i(e,t).selectAll(\".sankeyLink\").filter(function(t){return t.link.label===a}).style(\"fill-opacity\",function(t){return t.tinyColorAlpha}),r&&i(e,t).selectAll(\".sankeyNode\").filter(l(t)).call(c)}function d(t,e){var r=t.hoverlabel||{},n=y.nestedProperty(r,e).get();return!Array.isArray(n)&&n}var p=t(\"d3\"),m=t(\"./render\"),v=t(\"../../components/fx\"),g=t(\"../../components/color\"),y=t(\"../../lib\");e.exports=function(t,e){var r=t._fullLayout,i=r._paper,s=r._size,l=function(e,r){var n=r.link;n.originalEvent=p.event,t._hoverdata=[n],v.click(t,{target:!0})},y=function(e,r,n){var i=r.link;i.originalEvent=p.event,p.select(e).call(h.bind(0,r,n,!0)),v.hover(t,i,\"sankey\")},b=function(e,i){var s=i.link.trace,l=t._fullLayout._paperdiv.node().getBoundingClientRect(),u=e.getBoundingClientRect(),c=u.left+u.width/2,h=u.top+u.height/2,f=v.loneHover({x:c-l.left,y:h-l.top,name:p.format(i.valueFormat)(i.link.value)+i.valueSuffix,text:[i.link.label||\"\",[\"Source:\",i.link.source.label].join(\" \"),[\"Target:\",i.link.target.label].join(\" \")].filter(n).join(\"<br>\"),color:d(s,\"bgcolor\")||g.addOpacity(i.tinyColorHue,1),borderColor:d(s,\"bordercolor\"),fontFamily:d(s,\"font.family\"),fontSize:d(s,\"font.size\"),fontColor:d(s,\"font.color\"),idealAlign:p.event.x<c?\"right\":\"left\"},{container:r._hoverlayer.node(),outerContainer:r._paper.node(),gd:t});a(f,.65),o(f)},x=function(e,n,i){p.select(e).call(f.bind(0,n,i,!0)),t.emit(\"plotly_unhover\",{event:p.event,points:[n.link]}),v.loneUnhover(r._hoverlayer.node())},_=function(e,r,n){var i=r.node;i.originalEvent=p.event,t._hoverdata=[i],p.select(e).call(c,r,n),v.click(t,{target:!0})},w=function(e,r,n){var i=r.node;i.originalEvent=p.event,p.select(e).call(u,r,n),v.hover(t,i,\"sankey\")},M=function(e,i){var s=i.node.trace,l=p.select(e).select(\".nodeRect\"),u=t._fullLayout._paperdiv.node().getBoundingClientRect(),c=l.node().getBoundingClientRect(),h=c.left-2-u.left,f=c.right+2-u.left,m=c.top+c.height/4-u.top,g=v.loneHover({x0:h,x1:f,y:m,name:p.format(i.valueFormat)(i.node.value)+i.valueSuffix,text:[i.node.label,[\"Incoming flow count:\",i.node.targetLinks.length].join(\" \"),[\"Outgoing flow count:\",i.node.sourceLinks.length].join(\" \")].filter(n).join(\"<br>\"),color:d(s,\"bgcolor\")||i.tinyColorHue,borderColor:d(s,\"bordercolor\"),fontFamily:d(s,\"font.family\"),fontSize:d(s,\"font.size\"),fontColor:d(s,\"font.color\"),idealAlign:\"left\"},{container:r._hoverlayer.node(),outerContainer:r._paper.node(),gd:t});a(g,.85),o(g)},k=function(e,n,i){p.select(e).call(c,n,i),t.emit(\"plotly_unhover\",{event:p.event,points:[n.node]}),v.loneUnhover(r._hoverlayer.node())};m(i,e,{width:s.w,height:s.h,margin:{t:s.t,r:s.r,b:s.b,l:s.l}},{linkEvents:{hover:y,follow:b,unhover:x,select:l},nodeEvents:{hover:w,follow:M,unhover:k,select:_}})}},{\"../../components/color\":604,\"../../components/fx\":645,\"../../lib\":728,\"./render\":1029,d3:122}],1029:[function(t,e,r){\"use strict\";function n(t){return t.key}function i(t){return[t]}function a(t){return t[0]}function o(t){var e,r=[];for(e=0;e<t.length;e++)t[e].originalX=t[e].x,t[e].originalY=t[e].y,-1===r.indexOf(t[e].x)&&r.push(t[e].x);for(r.sort(function(t,e){return t-e}),e=0;e<t.length;e++)t[e].originalLayerIndex=r.indexOf(t[e].originalX),t[e].originalLayer=t[e].originalLayerIndex/(r.length-1)}function s(t){t.lastDraggedX=t.x,t.lastDraggedY=t.y}function l(t){return function(e){return e.node.originalX===t.node.originalX}}function u(t){for(var e=0;e<t.length;e++)t[e].y=t[e].y+t[e].dy/2}function c(t){for(var e=0;e<t.length;e++)t[e].y=t[e].y-t[e].dy/2}function h(t,e,r){for(var n,i=a(e).trace,o=i.domain,s=i.node,l=i.link,c=i.arrangement,h=\"h\"===i.orientation,f=i.node.pad,d=i.node.thickness,p=i.node.line.color,m=i.node.line.width,v=i.link.line.color,g=i.link.line.width,y=i.valueformat,b=i.valuesuffix,x=i.textfont,_=t.width*(o.x[1]-o.x[0]),w=t.height*(o.y[1]-o.y[0]),M=s.label.map(function(t,e){return{pointNumber:e,label:t,color:N.isArray(s.color)?s.color[e]:s.color}}),k=l.value.map(function(t,e){return{pointNumber:e,label:l.label[e],color:N.isArray(l.color)?l.color[e]:l.color,source:l.source[e],target:l.target[e],value:t}}),A=F().size(h?[_,w]:[w,_]).nodeWidth(d).nodePadding(f).nodes(M).links(k).layout(z.sankeyIterations),T=A.nodes(),S=0;S<T.length;S++)n=T[S],n.width=_,n.height=w;return u(M),{key:r,trace:i,guid:Math.floor(1e12*(1+Math.random())),horizontal:h,width:_,height:w,nodePad:f,nodeLineColor:p,nodeLineWidth:m,linkLineColor:v,linkLineWidth:g,valueFormat:y,valueSuffix:b,textFont:x,translateX:o.x[0]*_+t.margin.l,translateY:t.height-o.y[1]*t.height+t.margin.t,dragParallel:h?w:_,dragPerpendicular:h?_:w,nodes:M,links:k,arrangement:c,sankey:A,forceLayouts:{},interactionState:{dragInProgress:!1,hovered:!1}}}function f(t,e,r){var n=P(r.color),i=r.source.label+\"|\"+r.target.label,a=t[i];t[i]=(a||0)+1;var o=i+\"__\"+t[i];return r.trace=e.trace,r.curveNumber=e.trace.index,{key:o,traceId:e.key,link:r,tinyColorHue:O.tinyRGB(n),tinyColorAlpha:n.getAlpha(),linkLineColor:e.linkLineColor,linkLineWidth:e.linkLineWidth,valueFormat:e.valueFormat,valueSuffix:e.valueSuffix,sankey:e.sankey,interactionState:e.interactionState}}function d(t,e,r){var n=P(r.color),i=z.nodePadAcross,a=e.nodePad/2,o=r.dx,s=Math.max(.5,r.dy),l=r.label,u=t[l];t[l]=(u||0)+1;var c=l+\"__\"+t[l];return r.trace=e.trace,r.curveNumber=e.trace.index,{key:c,traceId:e.key,node:r,nodePad:e.nodePad,nodeLineColor:e.nodeLineColor,nodeLineWidth:e.nodeLineWidth,textFont:e.textFont,size:e.horizontal?e.height:e.width,visibleWidth:Math.ceil(o),visibleHeight:s,zoneX:-i,zoneY:-a,zoneWidth:o+2*i,zoneHeight:s+2*a,labelY:e.horizontal?r.dy/2+1:r.dx/2+1,left:1===r.originalLayer,sizeAcross:e.width,forceLayouts:e.forceLayouts,horizontal:e.horizontal,darkBackground:n.getBrightness()<=128,tinyColorHue:O.tinyRGB(n),tinyColorAlpha:n.getAlpha(),valueFormat:e.valueFormat,valueSuffix:e.valueSuffix,sankey:e.sankey,arrangement:e.arrangement,uniqueNodeLabelPathId:[e.guid,e.key,c].join(\" \"),interactionState:e.interactionState}}function p(t){t.attr(\"transform\",function(t){return\"translate(\"+t.node.x.toFixed(3)+\", \"+(t.node.y-t.node.dy/2).toFixed(3)+\")\"})}function m(t){var e=t.sankey.nodes();c(e);var r=t.sankey.link()(t.link);return u(e),r}function v(t){t.call(p)}function g(t,e){t.call(v),e.attr(\"d\",m)}function y(t){t.attr(\"width\",function(t){return t.visibleWidth}).attr(\"height\",function(t){return t.visibleHeight})}function b(t){return t.link.dy>1||t.linkLineWidth>0}function x(t){return\"translate(\"+t.translateX+\",\"+t.translateY+\")\"+(t.horizontal?\"matrix(1 0 0 1 0 0)\":\"matrix(0 1 1 0 0 0)\")}function _(t){return\"translate(\"+(t.horizontal?0:t.labelY)+\" \"+(t.horizontal?t.labelY:0)+\")\"}function w(t){return D.svg.line()([[t.horizontal?t.left?-t.sizeAcross:t.visibleWidth+z.nodeTextOffsetHorizontal:z.nodeTextOffsetHorizontal,0],[t.horizontal?t.left?-z.nodeTextOffsetHorizontal:t.sizeAcross:t.visibleHeight-z.nodeTextOffsetHorizontal,0]])}function M(t){return t.horizontal?\"matrix(1 0 0 1 0 0)\":\"matrix(0 1 1 0 0 0)\"}function k(t){return t.horizontal?\"scale(1 1)\":\"scale(-1 1)\"}function A(t){return t.darkBackground&&!t.horizontal?\"rgb(255,255,255)\":\"rgb(0,0,0)\"}function T(t){return t.horizontal&&t.left?\"100%\":\"0%\"}function S(t,e,r){t.on(\".basic\",null).on(\"mouseover.basic\",function(t){t.interactionState.dragInProgress||(r.hover(this,t,e),t.interactionState.hovered=[this,t])}).on(\"mousemove.basic\",function(t){t.interactionState.dragInProgress||(r.follow(this,t),t.interactionState.hovered=[this,t])}).on(\"mouseout.basic\",function(t){t.interactionState.dragInProgress||(r.unhover(this,t,e),t.interactionState.hovered=!1)}).on(\"click.basic\",function(t){t.interactionState.hovered&&(r.unhover(this,t,e),t.interactionState.hovered=!1),t.interactionState.dragInProgress||r.select(this,t,e)})}function E(t,e,r){var n=D.behavior.drag().origin(function(t){return t.node}).on(\"dragstart\",function(n){if(\"fixed\"!==n.arrangement&&(N.raiseToTop(this),n.interactionState.dragInProgress=n.node,s(n.node),n.interactionState.hovered&&(r.nodeEvents.unhover.apply(0,n.interactionState.hovered),n.interactionState.hovered=!1),\"snap\"===n.arrangement)){var i=n.traceId+\"|\"+Math.floor(n.node.originalX);n.forceLayouts[i]?n.forceLayouts[i].alpha(1):L(t,i,n),C(t,e,n,i)}}).on(\"drag\",function(r){if(\"fixed\"!==r.arrangement){var n=D.event.x,i=D.event.y;\"snap\"===r.arrangement?(r.node.x=n,r.node.y=i):(\"freeform\"===r.arrangement&&(r.node.x=n),r.node.y=Math.max(r.node.dy/2,Math.min(r.size-r.node.dy/2,i))),s(r.node),\"snap\"!==r.arrangement&&(r.sankey.relayout(),g(t.filter(l(r)),e))}}).on(\"dragend\",function(t){t.interactionState.dragInProgress=!1});t.on(\".drag\",null).call(n)}function L(t,e,r){var n=r.sankey.nodes().filter(function(t){return t.originalX===r.node.originalX});r.forceLayouts[e]=j.forceSimulation(n).alphaDecay(0).force(\"collide\",j.forceCollide().radius(function(t){return t.dy/2+r.nodePad/2}).strength(1).iterations(z.forceIterations)).force(\"constrain\",I(t,e,n,r)).stop()}function C(t,e,r,n){window.requestAnimationFrame(function i(){for(var a=0;a<z.forceTicksPerFrame;a++)r.forceLayouts[n].tick();r.sankey.relayout(),g(t.filter(l(r)),e),r.forceLayouts[n].alpha()>0&&window.requestAnimationFrame(i)})}function I(t,e,r,n){return function(){for(var t=0,i=0;i<r.length;i++){var a=r[i];a===n.interactionState.dragInProgress?(a.x=a.lastDraggedX,a.y=a.lastDraggedY):(a.vx=(a.originalX-a.x)/z.forceTicksPerFrame,a.y=Math.min(n.size-a.dy/2,Math.max(a.dy/2,a.y))),t=Math.max(t,Math.abs(a.vx),Math.abs(a.vy))}!n.interactionState.dragInProgress&&t<.1&&n.forceLayouts[e].alpha()>0&&n.forceLayouts[e].alpha(0)}}var z=t(\"./constants\"),D=t(\"d3\"),P=t(\"tinycolor2\"),O=t(\"../../components/color\"),R=t(\"../../components/drawing\"),F=t(\"@plotly/d3-sankey\").sankey,j=t(\"d3-force\"),N=t(\"../../lib\");e.exports=function(t,e,r,s){var l=t.selectAll(\".sankey\").data(e.filter(function(t){return a(t).trace.visible}).map(h.bind(null,r)),n);l.exit().remove(),l.enter().append(\"g\").classed(\"sankey\",!0).style(\"box-sizing\",\"content-box\").style(\"position\",\"absolute\").style(\"left\",0).style(\"shape-rendering\",\"geometricPrecision\").style(\"pointer-events\",\"auto\").style(\"box-sizing\",\"content-box\").attr(\"transform\",x),l.transition().ease(z.ease).duration(z.duration).attr(\"transform\",x);var u=l.selectAll(\".sankeyLinks\").data(i,n);u.enter().append(\"g\").classed(\"sankeyLinks\",!0).style(\"fill\",\"none\");var c=u.selectAll(\".sankeyLink\").data(function(t){var e={};return t.sankey.links().filter(function(t){return t.value}).map(f.bind(null,e,t))},n);c.enter().append(\"path\").classed(\"sankeyLink\",!0).attr(\"d\",m).call(S,l,s.linkEvents),c.style(\"stroke\",function(t){return b(t)?O.tinyRGB(P(t.linkLineColor)):t.tinyColorHue}).style(\"stroke-opacity\",function(t){return b(t)?O.opacity(t.linkLineColor):t.tinyColorAlpha}).style(\"stroke-width\",function(t){return b(t)?t.linkLineWidth:1}).style(\"fill\",function(t){return t.tinyColorHue}).style(\"fill-opacity\",function(t){return t.tinyColorAlpha}),c.transition().ease(z.ease).duration(z.duration).attr(\"d\",m),c.exit().transition().ease(z.ease).duration(z.duration).style(\"opacity\",0).remove();var v=l.selectAll(\".sankeyNodeSet\").data(i,n);v.enter().append(\"g\").classed(\"sankeyNodeSet\",!0),v.style(\"cursor\",function(t){switch(t.arrangement){case\"fixed\":return\"default\";case\"perpendicular\":return\"ns-resize\";default:return\"move\"}});var g=v.selectAll(\".sankeyNode\").data(function(t){var e=t.sankey.nodes(),r={};return o(e),e.filter(function(t){return t.value}).map(d.bind(null,r,t))},n);g.enter().append(\"g\").classed(\"sankeyNode\",!0).call(p).call(S,l,s.nodeEvents),g.call(E,c,s),g.transition().ease(z.ease).duration(z.duration).call(p),g.exit().transition().ease(z.ease).duration(z.duration).style(\"opacity\",0).remove();var L=g.selectAll(\".nodeRect\").data(i);L.enter().append(\"rect\").classed(\"nodeRect\",!0).call(y),L.style(\"stroke-width\",function(t){return t.nodeLineWidth}).style(\"stroke\",function(t){return O.tinyRGB(P(t.nodeLineColor))}).style(\"stroke-opacity\",function(t){return O.opacity(t.nodeLineColor)}).style(\"fill\",function(t){return t.tinyColorHue}).style(\"fill-opacity\",function(t){return t.tinyColorAlpha}),L.transition().ease(z.ease).duration(z.duration).call(y);var C=g.selectAll(\".nodeCapture\").data(i);C.enter().append(\"rect\").classed(\"nodeCapture\",!0).style(\"fill-opacity\",0),C.attr(\"x\",function(t){return t.zoneX}).attr(\"y\",function(t){return t.zoneY}).attr(\"width\",function(t){return t.zoneWidth}).attr(\"height\",function(t){return t.zoneHeight});var I=g.selectAll(\".nodeCentered\").data(i);I.enter().append(\"g\").classed(\"nodeCentered\",!0).attr(\"transform\",_),I.transition().ease(z.ease).duration(z.duration).attr(\"transform\",_);var D=I.selectAll(\".nodeLabelGuide\").data(i);D.enter().append(\"path\").classed(\"nodeLabelGuide\",!0).attr(\"id\",function(t){return t.uniqueNodeLabelPathId}).attr(\"d\",w).attr(\"transform\",M),D.transition().ease(z.ease).duration(z.duration).attr(\"d\",w).attr(\"transform\",M);var F=I.selectAll(\".nodeLabel\").data(i);F.enter().append(\"text\").classed(\"nodeLabel\",!0).attr(\"transform\",k).style(\"user-select\",\"none\").style(\"cursor\",\"default\").style(\"fill\",\"black\"),F.style(\"text-shadow\",function(t){return t.horizontal?\"-1px 1px 1px #fff, 1px 1px 1px #fff, 1px -1px 1px #fff, -1px -1px 1px #fff\":\"none\"}).each(function(t){R.font(F,t.textFont)}),F.transition().ease(z.ease).duration(z.duration).attr(\"transform\",k);var j=F.selectAll(\".nodeLabelTextPath\").data(i);j.enter().append(\"textPath\").classed(\"nodeLabelTextPath\",!0).attr(\"alignment-baseline\",\"middle\").attr(\"xlink:href\",function(t){return\"#\"+t.uniqueNodeLabelPathId}).attr(\"startOffset\",T).style(\"fill\",A),j.text(function(t){return t.horizontal||t.node.dy>5?t.node.label:\"\"}).attr(\"text-anchor\",function(t){return t.horizontal&&t.left?\"end\":\"start\"}),j.transition().ease(z.ease).duration(z.duration).attr(\"startOffset\",T).style(\"fill\",A)}},{\"../../components/color\":604,\"../../components/drawing\":628,\"../../lib\":728,\"./constants\":1025,\"@plotly/d3-sankey\":38,d3:122,\"d3-force\":118,tinycolor2:534}],1030:[function(t,e,r){\"use strict\";var n=t(\"../../lib\");e.exports=function(t,e){for(var r=0;r<t.length;r++)t[r].i=r;n.mergeArray(e.text,t,\"tx\"),n.mergeArray(e.hovertext,t,\"htx\"),n.mergeArray(e.customdata,t,\"data\"),n.mergeArray(e.textposition,t,\"tp\"),e.textfont&&(n.mergeArray(e.textfont.size,t,\"ts\"),n.mergeArray(e.textfont.color,t,\"tc\"),n.mergeArray(e.textfont.family,t,\"tf\"));var i=e.marker;if(i){n.mergeArray(i.size,t,\"ms\"),n.mergeArray(i.opacity,t,\"mo\"),n.mergeArray(i.symbol,t,\"mx\"),n.mergeArray(i.color,t,\"mc\");var a=i.line;i.line&&(n.mergeArray(a.color,t,\"mlc\"),n.mergeArray(a.width,t,\"mlw\"));var o=i.gradient;o&&\"none\"!==o.type&&(n.mergeArray(o.type,t,\"mgt\"),n.mergeArray(o.color,t,\"mgc\"))}}},{\"../../lib\":728}],1031:[function(t,e,r){\"use strict\";var n=t(\"../../components/colorscale/color_attributes\"),i=t(\"../../components/errorbars/attributes\"),a=t(\"../../components/colorbar/attributes\"),o=t(\"../../plots/font_attributes\"),s=t(\"../../components/drawing/attributes\").dash,l=t(\"../../components/drawing\"),u=(t(\"./constants\"),t(\"../../lib/extend\").extendFlat);e.exports={x:{valType:\"data_array\",editType:\"calc+clearAxisTypes\"},x0:{valType:\"any\",dflt:0,editType:\"calc+clearAxisTypes\"},dx:{valType:\"number\",dflt:1,editType:\"calc\"},y:{valType:\"data_array\",editType:\"calc+clearAxisTypes\"},y0:{valType:\"any\",dflt:0,editType:\"calc+clearAxisTypes\"},dy:{valType:\"number\",dflt:1,editType:\"calc\"},text:{valType:\"string\",dflt:\"\",arrayOk:!0,editType:\"calc\"},hovertext:{valType:\"string\",dflt:\"\",arrayOk:!0,editType:\"style\"},mode:{valType:\"flaglist\",flags:[\"lines\",\"markers\",\"text\"],extras:[\"none\"],editType:\"calc\"},hoveron:{valType:\"flaglist\",flags:[\"points\",\"fills\"],editType:\"style\"},line:{color:{valType:\"color\",editType:\"style\"},width:{valType:\"number\",min:0,dflt:2,editType:\"style\"},shape:{valType:\"enumerated\",values:[\"linear\",\"spline\",\"hv\",\"vh\",\"hvh\",\"vhv\"],dflt:\"linear\",editType:\"plot\"},smoothing:{valType:\"number\",min:0,max:1.3,dflt:1,editType:\"plot\"},dash:u({},s,{editType:\"style\"}),simplify:{valType:\"boolean\",dflt:!0,editType:\"plot\"},editType:\"plot\"},connectgaps:{valType:\"boolean\",dflt:!1,editType:\"calc\"},cliponaxis:{valType:\"boolean\",dflt:!0,editType:\"plot\"},fill:{valType:\"enumerated\",values:[\"none\",\"tozeroy\",\"tozerox\",\"tonexty\",\"tonextx\",\"toself\",\"tonext\"],dflt:\"none\",editType:\"calc\"},fillcolor:{valType:\"color\",editType:\"style\"},marker:u({symbol:{valType:\"enumerated\",values:l.symbolList,dflt:\"circle\",arrayOk:!0,editType:\"style\"},opacity:{valType:\"number\",min:0,max:1,arrayOk:!0,editType:\"style\"},size:{valType:\"number\",min:0,dflt:6,arrayOk:!0,editType:\"calcIfAutorange\"},maxdisplayed:{valType:\"number\",min:0,dflt:0,editType:\"plot\"},sizeref:{valType:\"number\",dflt:1,editType:\"calc\"},sizemin:{valType:\"number\",min:0,dflt:0,editType:\"calc\"},sizemode:{valType:\"enumerated\",values:[\"diameter\",\"area\"],dflt:\"diameter\",editType:\"calc\"},showscale:{valType:\"boolean\",dflt:!1,editType:\"calc\"},colorbar:a,line:u({width:{valType:\"number\",min:0,arrayOk:!0,editType:\"style\"},editType:\"calc\"},n(\"marker.line\")),gradient:{type:{valType:\"enumerated\",values:[\"radial\",\"horizontal\",\"vertical\",\"none\"],arrayOk:!0,dflt:\"none\",editType:\"calc\"},color:{valType:\"color\",arrayOk:!0,editType:\"calc\"},editType:\"calc\"},editType:\"calc\"},n(\"marker\")),textposition:{valType:\"enumerated\",values:[\"top left\",\"top center\",\"top right\",\"middle left\",\"middle center\",\"middle right\",\"bottom left\",\"bottom center\",\"bottom right\"],dflt:\"middle center\",arrayOk:!0,editType:\"calc\"},textfont:o({editType:\"calc\",colorEditType:\"style\",arrayOk:!0}),r:{valType:\"data_array\",editType:\"calc\"},t:{valType:\"data_array\",editType:\"calc\"},error_y:i,error_x:i}},{\"../../components/colorbar/attributes\":605,\"../../components/colorscale/color_attributes\":611,\"../../components/drawing\":628,\"../../components/drawing/attributes\":627,\"../../components/errorbars/attributes\":630,\"../../lib/extend\":717,\"../../plots/font_attributes\":796,\"./constants\":1036}],1032:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../../plots/cartesian/axes\"),a=t(\"../../constants/numerical\").BADNUM,o=t(\"./subtypes\"),s=t(\"./colorscale_calc\"),l=t(\"./arrays_to_calcdata\");e.exports=function(t,e){var r,u,c,h=i.getFromId(t,e.xaxis||\"x\"),f=i.getFromId(t,e.yaxis||\"y\"),d=h.makeCalcdata(e,\"x\"),p=f.makeCalcdata(e,\"y\"),m=Math.min(d.length,p.length);h._minDtick=0,f._minDtick=0,d.length>m&&d.splice(m,d.length-m),p.length>m&&p.splice(m,p.length-m);var v={padded:!0},g={padded:!0};if(o.hasMarkers(e)){if(r=e.marker,u=r.size,Array.isArray(u)){var y={type:\"linear\"};i.setConvert(y),u=y.makeCalcdata(e.marker,\"size\"),u.length>m&&u.splice(m,u.length-m)}var b,x=1.6*(e.marker.sizeref||1);b=\"area\"===e.marker.sizemode?function(t){return Math.max(Math.sqrt((t||0)/x),3)}:function(t){return Math.max((t||0)/x,3)},v.ppad=g.ppad=Array.isArray(u)?u.map(b):b(u)}s(e),!(\"tozerox\"===e.fill||\"tonextx\"===e.fill&&t.firstscatter)||d[0]===d[m-1]&&p[0]===p[m-1]?e.error_y.visible||-1===[\"tonexty\",\"tozeroy\"].indexOf(e.fill)&&(o.hasMarkers(e)||o.hasText(e))||(v.padded=!1,v.ppad=0):v.tozero=!0,!(\"tozeroy\"===e.fill||\"tonexty\"===e.fill&&t.firstscatter)||d[0]===d[m-1]&&p[0]===p[m-1]?-1!==[\"tonextx\",\"tozerox\"].indexOf(e.fill)&&(g.padded=!1):g.tozero=!0,i.expand(h,d,v),i.expand(f,p,g);var _=new Array(m);for(c=0;c<m;c++)_[c]=n(d[c])&&n(p[c])?{x:d[c],y:p[c]}:{x:a,y:a},e.ids&&(_[c].id=String(e.ids[c]));return l(_,e),t.firstscatter=!1,_}},{\"../../constants/numerical\":707,\"../../plots/cartesian/axes\":772,\"./arrays_to_calcdata\":1030,\"./colorscale_calc\":1035,\"./subtypes\":1052,\"fast-isnumeric\":131}],1033:[function(t,e,r){\"use strict\";e.exports=function(t){for(var e=0;e<t.length;e++){var r=t[e];if(\"scatter\"===r.type){var n=r.fill;if(\"none\"!==n&&\"toself\"!==n&&(r.opacity=void 0,\"tonexty\"===n||\"tonextx\"===n))for(var i=e-1;i>=0;i--){var a=t[i];if(\"scatter\"===a.type&&a.xaxis===r.xaxis&&a.yaxis===r.yaxis){a.opacity=void 0;break}}}}}},{}],1034:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../../lib\"),a=t(\"../../plots/plots\"),o=t(\"../../components/colorscale\"),s=t(\"../../components/colorbar/draw\");e.exports=function(t,e){var r=e[0].trace,l=r.marker,u=\"cb\"+r.uid;if(t._fullLayout._infolayer.selectAll(\".\"+u).remove(),void 0===l||!l.showscale)return void a.autoMargin(t,u);var c=l.color,h=l.cmin,f=l.cmax;n(h)||(h=i.aggNums(Math.min,null,c)),n(f)||(f=i.aggNums(Math.max,null,c));var d=e[0].t.cb=s(t,u),p=o.makeColorScaleFunc(o.extractScale(l.colorscale,h,f),{noNumericCheck:!0});d.fillcolor(p).filllevels({start:h,end:f,size:(f-h)/254}).options(l.colorbar)()}},{\"../../components/colorbar/draw\":607,\"../../components/colorscale\":618,\"../../lib\":728,\"../../plots/plots\":831,\"fast-isnumeric\":131}],1035:[function(t,e,r){\"use strict\";var n=t(\"../../components/colorscale/has_colorscale\"),i=t(\"../../components/colorscale/calc\"),a=t(\"./subtypes\");e.exports=function(t){a.hasLines(t)&&n(t,\"line\")&&i(t,t.line.color,\"line\",\"c\"),a.hasMarkers(t)&&(n(t,\"marker\")&&i(t,t.marker.color,\"marker\",\"c\"),n(t,\"marker.line\")&&i(t,t.marker.line.color,\"marker.line\",\"c\"))}},{\"../../components/colorscale/calc\":610,\"../../components/colorscale/has_colorscale\":617,\"./subtypes\":1052}],1036:[function(t,e,r){\"use strict\";e.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20}},{}],1037:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"./attributes\"),a=t(\"./constants\"),o=t(\"./subtypes\"),s=t(\"./xy_defaults\"),l=t(\"./marker_defaults\"),u=t(\"./line_defaults\"),c=t(\"./line_shape_defaults\"),h=t(\"./text_defaults\"),f=t(\"./fillcolor_defaults\"),d=t(\"../../components/errorbars/defaults\");e.exports=function(t,e,r,p){function m(r,a){return n.coerce(t,e,i,r,a)}var v=s(t,e,p,m),g=v<a.PTS_LINESONLY?\"lines+markers\":\"lines\";if(!v)return void(e.visible=!1);m(\"text\"),m(\"hovertext\"),m(\"mode\",g),o.hasLines(e)&&(u(t,e,r,p,m),c(t,e,m),m(\"connectgaps\"),m(\"line.simplify\")),o.hasMarkers(e)&&l(t,e,r,p,m,{gradient:!0}),o.hasText(e)&&h(t,e,p,m);var y=[];(o.hasMarkers(e)||o.hasText(e))&&(m(\"marker.maxdisplayed\"),y.push(\"points\")),m(\"fill\"),\"none\"!==e.fill&&(f(t,e,r,m),o.hasLines(e)||c(t,e,m)),\"tonext\"!==e.fill&&\"toself\"!==e.fill||y.push(\"fills\"),m(\"hoveron\",y.join(\"+\")||\"points\"),d(t,e,r,{axis:\"y\"}),d(t,e,r,{axis:\"x\",inherit:\"y\"}),m(\"cliponaxis\")}},{\"../../components/errorbars/defaults\":633,\"../../lib\":728,\"./attributes\":1031,\"./constants\":1036,\"./fillcolor_defaults\":1039,\"./line_defaults\":1043,\"./line_shape_defaults\":1045,\"./marker_defaults\":1048,\"./subtypes\":1052,\"./text_defaults\":1053,\"./xy_defaults\":1054}],1038:[function(t,e,r){\"use strict\";function n(t){return t||0===t}var i=t(\"../../lib\");e.exports=function(t,e,r){var a=Array.isArray(r)?function(t){r.push(t)}:function(t){r.text=t},o=i.extractOption(t,e,\"htx\",\"hovertext\");if(n(o))return a(o);var s=i.extractOption(t,e,\"tx\",\"text\");return n(s)?a(s):void 0}},{\"../../lib\":728}],1039:[function(t,e,r){\"use strict\";var n=t(\"../../components/color\");e.exports=function(t,e,r,i){var a=!1;if(e.marker){var o=e.marker.color,s=(e.marker.line||{}).color;o&&!Array.isArray(o)?a=o:s&&!Array.isArray(s)&&(a=s)}i(\"fillcolor\",n.addOpacity((e.line||{}).color||a||r,.5))}},{\"../../components/color\":604}],1040:[function(t,e,r){\"use strict\";var n=t(\"../../components/color\"),i=t(\"./subtypes\");e.exports=function(t,e){var r,a;if(\"lines\"===t.mode)return r=t.line.color,r&&n.opacity(r)?r:t.fillcolor;if(\"none\"===t.mode)return t.fill?t.fillcolor:\"\";var o=e.mcc||(t.marker||{}).color,s=e.mlcc||((t.marker||{}).line||{}).color;return a=o&&n.opacity(o)?o:s&&n.opacity(s)&&(e.mlw||((t.marker||{}).line||{}).width)?s:\"\",a?n.opacity(a)<.3?n.addOpacity(a,.3):a:(r=(t.line||{}).color,r&&n.opacity(r)&&i.hasLines(t)&&t.line.width?r:t.fillcolor)}},{\"../../components/color\":604,\"./subtypes\":1052}],1041:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../../components/fx\"),a=t(\"../../components/errorbars\"),o=t(\"./get_trace_color\"),s=t(\"../../components/color\"),l=t(\"./fill_hover_text\"),u=i.constants.MAXDIST;e.exports=function(t,e,r,c){var h=t.cd,f=h[0].trace,d=t.xa,p=t.ya,m=d.c2p(e),v=p.c2p(r),g=[m,v],y=f.hoveron||\"\";if(-1!==y.indexOf(\"points\")){var b=function(t){var e=Math.max(3,t.mrc||0);return Math.max(Math.abs(d.c2p(t.x)-m)-e,1-3/e)},x=function(t){var e=Math.max(3,t.mrc||0);return Math.max(Math.abs(p.c2p(t.y)-v)-e,1-3/e)},_=function(t){var e=Math.max(3,t.mrc||0),r=d.c2p(t.x)-m,n=p.c2p(t.y)-v;return Math.max(Math.sqrt(r*r+n*n)-e,1-3/e)},w=i.getDistanceFunction(c,b,x,_);if(i.getClosest(h,w,t),!1!==t.index){var M=h[t.index],k=d.c2p(M.x,!0),A=p.c2p(M.y,!0),T=M.mrc||1;return n.extendFlat(t,{color:o(f,M),x0:k-T,x1:k+T,xLabelVal:M.x,y0:A-T,y1:A+T,yLabelVal:M.y}),l(M,f,t),a.hoverInfo(M,f,t),[t]}}if(-1!==y.indexOf(\"fills\")&&f._polygons){var S,E,L,C,I,z,D,P,O,R=f._polygons,F=[],j=!1,N=1/0,B=-1/0,U=1/0,V=-1/0;for(S=0;S<R.length;S++)L=R[S],L.contains(g)&&(j=!j,F.push(L),U=Math.min(U,L.ymin),V=Math.max(V,L.ymax));if(j){U=Math.max(U,0),V=Math.min(V,p._length);var H=(U+V)/2;for(S=0;S<F.length;S++)for(C=F[S].pts,E=1;E<C.length;E++)P=C[E-1][1],O=C[E][1],P>H!=O>=H&&(z=C[E-1][0],D=C[E][0],I=z+(D-z)*(H-P)/(O-P),N=Math.min(N,I),B=Math.max(B,I));N=Math.max(N,0),B=Math.min(B,d._length);var q=s.defaultLine;return s.opacity(f.fillcolor)?q=f.fillcolor:s.opacity((f.line||{}).color)&&(q=f.line.color),n.extendFlat(t,{distance:u+10,x0:N,x1:B,y0:H,y1:H,color:q}),delete t.index,f.text&&!Array.isArray(f.text)?t.text=String(f.text):t.text=f.name,[t]}}}},{\"../../components/color\":604,\"../../components/errorbars\":634,\"../../components/fx\":645,\"../../lib\":728,\"./fill_hover_text\":1038,\"./get_trace_color\":1040}],1042:[function(t,e,r){\"use strict\";var n={},i=t(\"./subtypes\");n.hasLines=i.hasLines,n.hasMarkers=i.hasMarkers,n.hasText=i.hasText,n.isBubble=i.isBubble,n.attributes=t(\"./attributes\"),n.supplyDefaults=t(\"./defaults\"),n.cleanData=t(\"./clean_data\"),n.calc=t(\"./calc\"),n.arraysToCalcdata=t(\"./arrays_to_calcdata\"),n.plot=t(\"./plot\"),n.colorbar=t(\"./colorbar\"),n.style=t(\"./style\"),n.hoverPoints=t(\"./hover\"),n.selectPoints=t(\"./select\"),n.animatable=!0,n.moduleType=\"trace\",n.name=\"scatter\",n.basePlotModule=t(\"../../plots/cartesian\"),n.categories=[\"cartesian\",\"symbols\",\"markerColorscale\",\"errorBarsOK\",\"showLegend\",\"scatter-like\"],n.meta={},e.exports=n},{\"../../plots/cartesian\":782,\"./arrays_to_calcdata\":1030,\"./attributes\":1031,\"./calc\":1032,\"./clean_data\":1033,\"./colorbar\":1034,\"./defaults\":1037,\"./hover\":1041,\"./plot\":1049,\"./select\":1050,\"./style\":1051,\"./subtypes\":1052}],1043:[function(t,e,r){\"use strict\";var n=t(\"../../components/colorscale/has_colorscale\"),i=t(\"../../components/colorscale/defaults\");e.exports=function(t,e,r,a,o,s){var l=(t.marker||{}).color;if(o(\"line.color\",r),n(t,\"line\"))i(t,e,a,o,{prefix:\"line.\",cLetter:\"c\"});else{o(\"line.color\",!Array.isArray(l)&&l||r)}o(\"line.width\"),(s||{}).noDash||o(\"line.dash\")}},{\"../../components/colorscale/defaults\":613,\"../../components/colorscale/has_colorscale\":617}],1044:[function(t,e,r){\"use strict\";var n=t(\"../../constants/numerical\").BADNUM,i=t(\"../../lib\"),a=i.segmentsIntersect,o=i.constrain,s=t(\"./constants\");e.exports=function(t,e){function r(e){var r=O.c2p(t[e].x),i=R.c2p(t[e].y);return r!==n&&i!==n&&[r,i]}function l(t){var e=t[0]/O._length,r=t[1]/R._length;return(1+s.toleranceGrowth*Math.max(0,-e,e-1,-r,r-1))*N}function u(t,e){var r=t[0]-e[0],n=t[1]-e[1];return Math.sqrt(r*r+n*n)}function c(t,e){for(var r=[],n=0,i=0;i<4;i++){var o=it[i],s=a(t[0],t[1],e[0],e[1],o[0],o[1],o[2],o[3]);s&&(!n||Math.abs(s.x-r[0][0])>1||Math.abs(s.y-r[0][1])>1)&&(s=[s.x,s.y],n&&u(s,t)<u(r[0],t)?r.unshift(s):r.push(s),n++)}return r}function h(t){if(t[0]<tt||t[0]>et||t[1]<rt||t[1]>nt)return[o(t[0],tt,et),o(t[1],rt,nt)]}function f(t,e){return t[0]===e[0]&&(t[0]===tt||t[0]===et)||(t[1]===e[1]&&(t[1]===rt||t[1]===nt)||void 0)}function d(t,e){var r=[],n=h(t),i=h(e);return n&&i&&f(n,i)?r:(n&&r.push(n),i&&r.push(i),r)}function p(t,e,r){return function(n,a){var o=h(n),s=h(a),l=[];if(o&&s&&f(o,s))return l;o&&l.push(o),s&&l.push(s);var u=2*i.constrain((n[t]+a[t])/2,e,r)-((o||n)[t]+(s||a)[t]);if(u){var c;c=o&&s?u>0==o[t]>s[t]?o:s:o||s,c[t]+=u}return l}}function m(t,e){var r=e[0]-t[0],n=(e[1]-t[1])/r;return(t[1]*e[0]-e[1]*t[0])/r>0?[n>0?tt:et,nt]:[n>0?et:tt,rt]}function v(t){var e=t[0],r=t[1],n=e===q[G-1][0],i=r===q[G-1][1];if(!n||!i)if(G>1){var a=e===q[G-2][0],o=r===q[G-2][1];n&&(e===tt||e===et)&&a?o?G--:q[G-1]=t:i&&(r===rt||r===nt)&&o?a?G--:q[G-1]=t:q[G++]=t}else q[G++]=t}function g(t){q[G-1][0]!==t[0]&&q[G-1][1]!==t[1]&&v([X,Z]),v(t),J=null,X=Z=0}function y(t){if(Y=t[0]<tt?tt:t[0]>et?et:0,W=t[1]<rt?rt:t[1]>nt?nt:0,Y||W){if(G)if(J){var e=Q(J,t);e.length>1&&(g(e[0]),q[G++]=e[1])}else K=Q(q[G-1],t)[0],q[G++]=K;else q[G++]=[Y||t[0],W||t[1]];var r=q[G-1];Y&&W&&(r[0]!==Y||r[1]!==W)?(J&&(X!==Y&&Z!==W?v(X&&Z?m(J,t):[X||Y,Z||W]):X&&Z&&v([X,Z])),v([Y,W])):X-Y&&Z-W&&v([Y||X,W||Z]),J=t,X=Y,Z=W}else J&&g(Q(J,t)[0]),q[G++]=t}var b,x,_,w,M,k,A,T,S,E,L,C,I,z,D,P,O=e.xaxis,R=e.yaxis,F=e.simplify,j=e.connectGaps,N=e.baseTolerance,B=e.shape,U=\"linear\"===B,V=[],H=s.minTolerance,q=new Array(t.length),G=0;F||(N=H=-1);var Y,W,X,Z,J,K,Q,$=s.maxScreensAway,tt=-O._length*$,et=O._length*(1+$),rt=-R._length*$,nt=R._length*(1+$),it=[[tt,rt,et,rt],[et,rt,et,nt],[et,nt,tt,nt],[tt,nt,tt,rt]];for(\"linear\"===B||\"spline\"===B?Q=c:\"hv\"===B||\"vh\"===B?Q=d:\"hvh\"===B?Q=p(0,tt,et):\"vhv\"===B&&(Q=p(1,rt,nt)),b=0;b<t.length;b++)if(x=r(b)){for(G=0,J=null,y(x),b++;b<t.length;b++){if(!(w=r(b))){if(j)continue;break}if(U){if(!((E=u(w,x))<l(w)*H)){for(T=[(w[0]-x[0])/E,(w[1]-x[1])/E],M=x,L=E,C=z=D=0,A=!1,_=w,b++;b<t.length;b++){if(!(k=r(b))){if(j)continue;break}if(S=[k[0]-x[0],k[1]-x[1]],P=S[0]*T[1]-S[1]*T[0],z=Math.min(z,P),(D=Math.max(D,P))-z>l(k))break;_=k,I=S[0]*T[0]+S[1]*T[1],I>L?(L=I,w=k,A=!1):I<C&&(C=I,M=k,A=!0)}if(A?(y(w),_!==M&&y(M)):(M!==x&&y(M),_!==w&&y(w)),y(_),b>=t.length||!k)break;y(k),x=k}}else y(w)}J&&v([X||J[0],Z||J[1]]),V.push(q.slice(0,G))}return V}},{\"../../constants/numerical\":707,\"../../lib\":728,\"./constants\":1036}],1045:[function(t,e,r){\"use strict\";e.exports=function(t,e,r){\"spline\"===r(\"line.shape\")&&r(\"line.smoothing\")}},{}],1046:[function(t,e,r){\"use strict\";e.exports=function(t,e,r){for(var n,i,a=null,o=0;o<r.length;++o)n=r[o],i=n[0].trace,!0===i.visible?(i._nexttrace=null,-1!==[\"tonextx\",\"tonexty\",\"tonext\"].indexOf(i.fill)&&(i._prevtrace=a,a&&(a._nexttrace=i)),a=i):i._prevtrace=i._nexttrace=null}},{}],1047:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\");e.exports=function(t){var e=t.marker,r=e.sizeref||1,i=e.sizemin||0,a=\"area\"===e.sizemode?function(t){return Math.sqrt(t/r)}:function(t){return t/r};return function(t){var e=a(t/2);return n(e)&&e>0?Math.max(e,i):0}}},{\"fast-isnumeric\":131}],1048:[function(t,e,r){\"use strict\";var n=t(\"../../components/color\"),i=t(\"../../components/colorscale/has_colorscale\"),a=t(\"../../components/colorscale/defaults\"),o=t(\"./subtypes\");e.exports=function(t,e,r,s,l,u){var c,h=o.isBubble(t),f=(t.line||{}).color;if(u=u||{},f&&(r=f),l(\"marker.symbol\"),l(\"marker.opacity\",h?.7:1),l(\"marker.size\"),l(\"marker.color\",r),i(t,\"marker\")&&a(t,e,s,l,{prefix:\"marker.\",cLetter:\"c\"}),u.noLine||(c=f&&!Array.isArray(f)&&e.marker.color!==f?f:h?n.background:n.defaultLine,l(\"marker.line.color\",c),i(t,\"marker.line\")&&a(t,e,s,l,{prefix:\"marker.line.\",cLetter:\"c\"}),l(\"marker.line.width\",h?1:0)),h&&(l(\"marker.sizeref\"),l(\"marker.sizemin\"),l(\"marker.sizemode\")),u.gradient){\"none\"!==l(\"marker.gradient.type\")&&l(\"marker.gradient.color\")}}},{\"../../components/color\":604,\"../../components/colorscale/defaults\":613,\"../../components/colorscale/has_colorscale\":617,\"./subtypes\":1052}],1049:[function(t,e,r){\"use strict\";function n(t,e,r){var n;e.selectAll(\"g.trace\").each(function(t){\n", "var e=o.select(this);if(n=t[0].trace,n._nexttrace){if(n._nextFill=e.select(\".js-fill.js-tonext\"),!n._nextFill.size()){var i=\":first-child\";e.select(\".js-fill.js-tozero\").size()&&(i+=\" + *\"),n._nextFill=e.insert(\"path\",i).attr(\"class\",\"js-fill js-tonext\")}}else e.selectAll(\".js-fill.js-tonext\").remove(),n._nextFill=null;n.fill&&(\"tozero\"===n.fill.substr(0,6)||\"toself\"===n.fill||\"to\"===n.fill.substr(0,2)&&!n._prevtrace)?(n._ownFill=e.select(\".js-fill.js-tozero\"),n._ownFill.size()||(n._ownFill=e.insert(\"path\",\":first-child\").attr(\"class\",\"js-fill js-tozero\"))):(e.selectAll(\".js-fill.js-tozero\").remove(),n._ownFill=null),e.selectAll(\".js-fill\").call(l.setClipUrl,r.layerClipId)})}function i(t,e,r,n,i,f,p){function m(t){return M?t.transition():t}function v(t){return t.filter(function(t){return t.vis})}function g(t){return t.id}function y(t){if(t.ids)return g}function b(){return!1}function x(e){var n,i,a,u=e[0].trace,h=o.select(this),f=c.hasMarkers(u),d=c.hasText(u),p=y(u),g=b,x=b;f&&(g=u.marker.maxdisplayed||u._needsCull?v:s.identity),d&&(x=u.marker.maxdisplayed||u._needsCull?v:s.identity),i=h.selectAll(\"path.point\"),n=i.data(g,p);var _=n.enter().append(\"path\").classed(\"point\",!0);M&&_.call(l.pointStyle,u,t).call(l.translatePoints,k,A).style(\"opacity\",0).transition().style(\"opacity\",1);var w=f&&l.tryColorscale(u.marker,\"\"),T=f&&l.tryColorscale(u.marker,\"line\");n.order(),n.each(function(e){var n=o.select(this),i=m(n);a=l.translatePoint(e,i,k,A),a?(l.singlePointStyle(e,i,u,w,T,t),r.layerClipId&&l.hideOutsideRangePoint(e,i,k,A),u.customdata&&n.classed(\"plotly-customdata\",null!==e.data&&void 0!==e.data)):i.remove()}),M?n.exit().transition().style(\"opacity\",0).remove():n.exit().remove(),i=h.selectAll(\"g\"),n=i.data(x,p),n.enter().append(\"g\").classed(\"textpoint\",!0).append(\"text\"),n.order(),n.each(function(t){var e=o.select(this),n=m(e.select(\"text\"));a=l.translatePoint(t,n,k,A),a?r.layerClipId&&l.hideOutsideRangePoint(t,e,k,A):e.remove()}),n.selectAll(\"text\").call(l.textPointStyle,u,t).each(function(t){var e=k.c2p(t.x),r=A.c2p(t.y);o.select(this).selectAll(\"tspan.line\").each(function(){m(o.select(this)).attr({x:e,y:r})})}),n.exit().remove()}var _,w;a(t,e,r,n,i);var M=!!p&&p.duration>0,k=r.xaxis,A=r.yaxis,T=n[0].trace,S=T.line,E=o.select(f);if(E.call(u.plot,r,p),!0===T.visible){m(E).style(\"opacity\",T.opacity);var L,C,I=T.fill.charAt(T.fill.length-1);\"x\"!==I&&\"y\"!==I&&(I=\"\"),n[0].node3=E;var z=\"\",D=[],P=T._prevtrace;P&&(z=P._prevRevpath||\"\",C=P._nextFill,D=P._polygons);var O,R,F,j,N,B,U,V,H,q=\"\",G=\"\",Y=[],W=s.noop;if(L=T._ownFill,c.hasLines(T)||\"none\"!==T.fill){for(C&&C.datum(n),-1!==[\"hv\",\"vh\",\"hvh\",\"vhv\"].indexOf(S.shape)?(F=l.steps(S.shape),j=l.steps(S.shape.split(\"\").reverse().join(\"\"))):F=j=\"spline\"===S.shape?function(t){var e=t[t.length-1];return t.length>1&&t[0][0]===e[0]&&t[0][1]===e[1]?l.smoothclosed(t.slice(1),S.smoothing):l.smoothopen(t,S.smoothing)}:function(t){return\"M\"+t.join(\"L\")},N=function(t){return j(t.reverse())},Y=h(n,{xaxis:k,yaxis:A,connectGaps:T.connectgaps,baseTolerance:Math.max(S.width||1,3)/4,shape:S.shape,simplify:S.simplify}),H=T._polygons=new Array(Y.length),w=0;w<Y.length;w++)T._polygons[w]=d(Y[w]);Y.length&&(B=Y[0][0],U=Y[Y.length-1],V=U[U.length-1]),W=function(t){return function(e){if(O=F(e),R=N(e),q?I?(q+=\"L\"+O.substr(1),G=R+\"L\"+G.substr(1)):(q+=\"Z\"+O,G=R+\"Z\"+G):(q=O,G=R),c.hasLines(T)&&e.length>1){var r=o.select(this);if(r.datum(n),t)m(r.style(\"opacity\",0).attr(\"d\",O).call(l.lineGroupStyle)).style(\"opacity\",1);else{var i=m(r);i.attr(\"d\",O),l.singleLineStyle(n,i)}}}}}var X=E.selectAll(\".js-line\").data(Y);m(X.exit()).style(\"opacity\",0).remove(),X.each(W(!1)),X.enter().append(\"path\").classed(\"js-line\",!0).style(\"vector-effect\",\"non-scaling-stroke\").call(l.lineGroupStyle).each(W(!0)),l.setClipUrl(X,r.layerClipId),Y.length&&(L?B&&V&&(I?(\"y\"===I?B[1]=V[1]=A.c2p(0,!0):\"x\"===I&&(B[0]=V[0]=k.c2p(0,!0)),m(L).attr(\"d\",\"M\"+V+\"L\"+B+\"L\"+q.substr(1)).call(l.singleFillStyle)):m(L).attr(\"d\",q+\"Z\").call(l.singleFillStyle)):\"tonext\"===T.fill.substr(0,6)&&q&&z&&(\"tonext\"===T.fill?m(C).attr(\"d\",q+\"Z\"+z+\"Z\").call(l.singleFillStyle):m(C).attr(\"d\",q+\"L\"+z.substr(1)+\"Z\").call(l.singleFillStyle),T._polygons=T._polygons.concat(D)),T._prevRevpath=G,T._prevPolygons=H);var Z=E.selectAll(\".points\");_=Z.data([n]),Z.each(x),_.enter().append(\"g\").classed(\"points\",!0).each(x),_.exit().remove(),_.each(function(t){var e=!1===t[0].trace.cliponaxis;l.setClipUrl(o.select(this),e?null:r.layerClipId)})}}function a(t,e,r,n,i){var a=r.xaxis,l=r.yaxis,u=o.extent(s.simpleMap(a.range,a.r2c)),h=o.extent(s.simpleMap(l.range,l.r2c)),f=n[0].trace;if(c.hasMarkers(f)){var d=f.marker.maxdisplayed;if(0!==d){var p=n.filter(function(t){return t.x>=u[0]&&t.x<=u[1]&&t.y>=h[0]&&t.y<=h[1]}),m=Math.ceil(p.length/d),v=0;i.forEach(function(t,r){var n=t[0].trace;c.hasMarkers(n)&&n.marker.maxdisplayed>0&&r<e&&v++});var g=Math.round(v*m/3+Math.floor(v/3)*m/7.1);n.forEach(function(t){delete t.vis}),p.forEach(function(t,e){0===Math.round((e+g)%m)&&(t.vis=!0)})}}}var o=t(\"d3\"),s=t(\"../../lib\"),l=t(\"../../components/drawing\"),u=t(\"../../components/errorbars\"),c=t(\"./subtypes\"),h=t(\"./line_points\"),f=t(\"./link_traces\"),d=t(\"../../lib/polygon\").tester;e.exports=function(t,e,r,a,s){var l,u,c,h,d,p=e.plot.select(\"g.scatterlayer\"),m=!a,v=!!a&&a.duration>0;for(c=p.selectAll(\"g.trace\"),h=c.data(r,function(t){return t[0].trace.uid}),h.enter().append(\"g\").attr(\"class\",function(t){return\"trace scatter trace\"+t[0].trace.uid}).style(\"stroke-miterlimit\",2),f(t,e,r),n(t,p,e),l=0,u={};l<r.length;l++)u[r[l][0].trace.uid]=l;if(p.selectAll(\"g.trace\").sort(function(t,e){return u[t[0].trace.uid]>u[e[0].trace.uid]?1:-1}),v){s&&(d=s());o.transition().duration(a.duration).ease(a.easing).each(\"end\",function(){d&&d()}).each(\"interrupt\",function(){d&&d()}).each(function(){p.selectAll(\"g.trace\").each(function(n,o){i(t,o,e,n,r,this,a)})})}else p.selectAll(\"g.trace\").each(function(n,o){i(t,o,e,n,r,this,a)});m&&h.exit().remove(),p.selectAll(\"path:not([d])\").remove()}},{\"../../components/drawing\":628,\"../../components/errorbars\":634,\"../../lib\":728,\"../../lib/polygon\":739,\"./line_points\":1044,\"./link_traces\":1046,\"./subtypes\":1052,d3:122}],1050:[function(t,e,r){\"use strict\";var n=t(\"./subtypes\"),i=t(\"../../constants/interactions\").DESELECTDIM;e.exports=function(t,e){var r,a,o,s,l=t.cd,u=t.xaxis,c=t.yaxis,h=[],f=l[0].trace,d=f.marker,p=!n.hasMarkers(f)&&!n.hasText(f);if(!0===f.visible&&!p){var m=Array.isArray(d.opacity)?1:d.opacity;if(!1===e)for(r=0;r<l.length;r++)l[r].dim=0;else for(r=0;r<l.length;r++)a=l[r],o=u.c2p(a.x),s=c.c2p(a.y),e.contains([o,s])?(h.push({pointNumber:r,x:a.x,y:a.y}),a.dim=0):a.dim=1;return l[0].node3.selectAll(\"path.point\").style(\"opacity\",function(t){return((t.mo+1||m+1)-1)*(t.dim?i:1)}),l[0].node3.selectAll(\"text\").style(\"opacity\",function(t){return t.dim?i:1}),h}}},{\"../../constants/interactions\":706,\"./subtypes\":1052}],1051:[function(t,e,r){\"use strict\";var n=t(\"d3\"),i=t(\"../../components/drawing\"),a=t(\"../../components/errorbars\");e.exports=function(t){var e=n.select(t).selectAll(\"g.trace.scatter\");e.style(\"opacity\",function(t){return t[0].trace.opacity}),e.selectAll(\"g.points\").each(function(e){var r=n.select(this),a=r.selectAll(\"path.point\"),o=e.trace||e[0].trace;a.call(i.pointStyle,o,t),r.selectAll(\"text\").call(i.textPointStyle,o,t)}),e.selectAll(\"g.trace path.js-line\").call(i.lineGroupStyle),e.selectAll(\"g.trace path.js-fill\").call(i.fillGroupStyle),e.call(a.style)}},{\"../../components/drawing\":628,\"../../components/errorbars\":634,d3:122}],1052:[function(t,e,r){\"use strict\";var n=t(\"../../lib\");e.exports={hasLines:function(t){return t.visible&&t.mode&&-1!==t.mode.indexOf(\"lines\")},hasMarkers:function(t){return t.visible&&t.mode&&-1!==t.mode.indexOf(\"markers\")},hasText:function(t){return t.visible&&t.mode&&-1!==t.mode.indexOf(\"text\")},isBubble:function(t){return n.isPlainObject(t.marker)&&Array.isArray(t.marker.size)}}},{\"../../lib\":728}],1053:[function(t,e,r){\"use strict\";var n=t(\"../../lib\");e.exports=function(t,e,r,i){i(\"textposition\"),n.coerceFont(i,\"textfont\",r.font)}},{\"../../lib\":728}],1054:[function(t,e,r){\"use strict\";var n=t(\"../../registry\");e.exports=function(t,e,r,i){var a,o=i(\"x\"),s=i(\"y\");if(n.getComponentMethod(\"calendars\",\"handleTraceDefaults\")(t,e,[\"x\",\"y\"],r),o)s?(a=Math.min(o.length,s.length),a<o.length&&(e.x=o.slice(0,a)),a<s.length&&(e.y=s.slice(0,a))):(a=o.length,i(\"y0\"),i(\"dy\"));else{if(!s)return 0;a=e.y.length,i(\"x0\"),i(\"dx\")}return a}},{\"../../registry\":846}],1055:[function(t,e,r){\"use strict\";function n(t){return{show:{valType:\"boolean\",dflt:!1},opacity:{valType:\"number\",min:0,max:1,dflt:1},scale:{valType:\"number\",min:0,max:10,dflt:2/3}}}var i=t(\"../scatter/attributes\"),a=t(\"../../components/colorscale/color_attributes\"),o=t(\"../../components/errorbars/attributes\"),s=t(\"../../constants/gl3d_dashes\"),l=t(\"../../constants/gl3d_markers\"),u=t(\"../../lib/extend\").extendFlat,c=t(\"../../plot_api/edit_types\").overrideAll,h=i.line,f=i.marker,d=f.line,p=e.exports=c({x:i.x,y:i.y,z:{valType:\"data_array\"},text:u({},i.text,{}),hovertext:u({},i.hovertext,{}),mode:u({},i.mode,{dflt:\"lines+markers\"}),surfaceaxis:{valType:\"enumerated\",values:[-1,0,1,2],dflt:-1},surfacecolor:{valType:\"color\"},projection:{x:n(\"x\"),y:n(\"y\"),z:n(\"z\")},connectgaps:i.connectgaps,line:u({width:h.width,dash:{valType:\"enumerated\",values:Object.keys(s),dflt:\"solid\"},showscale:{valType:\"boolean\",dflt:!1}},a(\"line\")),marker:u({symbol:{valType:\"enumerated\",values:Object.keys(l),dflt:\"circle\",arrayOk:!0},size:u({},f.size,{dflt:8}),sizeref:f.sizeref,sizemin:f.sizemin,sizemode:f.sizemode,opacity:u({},f.opacity,{arrayOk:!1}),showscale:f.showscale,colorbar:f.colorbar,line:u({width:u({},d.width,{arrayOk:!1})},a(\"marker.line\"))},a(\"marker\")),textposition:u({},i.textposition,{dflt:\"top center\"}),textfont:i.textfont,error_x:o,error_y:o,error_z:o},\"calc\",\"nested\");p.x.editType=p.y.editType=p.z.editType=\"calc+clearAxisTypes\"},{\"../../components/colorscale/color_attributes\":611,\"../../components/errorbars/attributes\":630,\"../../constants/gl3d_dashes\":704,\"../../constants/gl3d_markers\":705,\"../../lib/extend\":717,\"../../plot_api/edit_types\":756,\"../scatter/attributes\":1031}],1056:[function(t,e,r){\"use strict\";var n=t(\"../scatter/arrays_to_calcdata\"),i=t(\"../scatter/colorscale_calc\");e.exports=function(t,e){var r=[{x:!1,y:!1,trace:e,t:{}}];return n(r,e),i(e),r}},{\"../scatter/arrays_to_calcdata\":1030,\"../scatter/colorscale_calc\":1035}],1057:[function(t,e,r){\"use strict\";function n(t,e,r){if(!e||!e.visible)return null;for(var n=o(e),i=new Array(t.length),a=0;a<t.length;a++){var s=n(+t[a],a);i[a]=[-s[0]*r,s[1]*r]}return i}function i(t){for(var e=0;e<t.length;e++)if(t[e])return t[e].length;return 0}function a(t,e){var r=[n(t.x,t.error_x,e[0]),n(t.y,t.error_y,e[1]),n(t.z,t.error_z,e[2])],a=i(r);if(0===a)return null;for(var o=new Array(a),s=0;s<a;s++){for(var l=[[0,0,0],[0,0,0]],u=0;u<3;u++)if(r[u])for(var c=0;c<2;c++)l[c][u]=r[u][s][c];o[s]=l}return o}var o=t(\"../../components/errorbars/compute_error\");e.exports=a},{\"../../components/errorbars/compute_error\":632}],1058:[function(t,e,r){\"use strict\";function n(t,e){this.scene=t,this.uid=e,this.linePlot=null,this.scatterPlot=null,this.errorBars=null,this.textMarkers=null,this.delaunayMesh=null,this.color=null,this.mode=\"\",this.dataPoints=[],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.textLabels=null,this.data=null}function i(t,e,r){var n,i=(r+1)%3,a=(r+2)%3,o=[],s=[];for(n=0;n<t.length;++n){var l=t[n];!isNaN(l[i])&&isFinite(l[i])&&!isNaN(l[a])&&isFinite(l[a])&&(o.push([l[i],l[a]]),s.push(n))}var u=g(o);for(n=0;n<u.length;++n)for(var c=u[n],h=0;h<c.length;++h)c[h]=s[c[h]];return{positions:t,cells:u,meshColor:e}}function a(t){for(var e=[0,0,0],r=[[0,0,0],[0,0,0],[0,0,0]],n=[0,0,0],i=0;i<3;i++){var a=t[i];a&&!1!==a.copy_zstyle&&(a=t[2]),a&&(e[i]=a.width/2,r[i]=b(a.color),n=a.thickness)}return{capSize:e,color:r,lineWidth:n}}function o(t){var e=[0,0];return Array.isArray(t)?[0,-1]:(t.indexOf(\"bottom\")>=0&&(e[1]+=1),t.indexOf(\"top\")>=0&&(e[1]-=1),t.indexOf(\"left\")>=0&&(e[0]-=1),t.indexOf(\"right\")>=0&&(e[0]+=1),e)}function s(t,e){return e(4*t)}function l(t){return M[t]}function u(t,e,r,n,i){var a=null;if(Array.isArray(t)){a=[];for(var o=0;o<e;o++)void 0===t[o]?a[o]=n:a[o]=r(t[o],i)}else a=r(t,y.identity);return a}function c(t,e){var r,n,i,c,h,f,d=[],p=t.fullSceneLayout,m=t.dataScale,v=p.xaxis,g=p.yaxis,w=p.zaxis,M=e.marker,A=e.line,T=e.x||[],S=e.y||[],E=e.z||[],L=T.length,C=e.xcalendar,I=e.ycalendar,z=e.zcalendar;for(n=0;n<L;n++)i=v.d2l(T[n],0,C)*m[0],c=g.d2l(S[n],0,I)*m[1],h=w.d2l(E[n],0,z)*m[2],d[n]=[i,c,h];if(Array.isArray(e.text))f=e.text;else if(void 0!==e.text)for(f=new Array(L),n=0;n<L;n++)f[n]=e.text;if(r={position:d,mode:e.mode,text:f},\"line\"in e&&(r.lineColor=x(A,1,L),r.lineWidth=A.width,r.lineDashes=A.dash),\"marker\"in e){var D=_(e);r.scatterColor=x(M,1,L),r.scatterSize=u(M.size,L,s,20,D),r.scatterMarker=u(M.symbol,L,l,\"\\u25cf\"),r.scatterLineWidth=M.line.width,r.scatterLineColor=x(M.line,1,L),r.scatterAngle=0}\"textposition\"in e&&(r.textOffset=o(e.textposition),r.textColor=x(e.textfont,1,L),r.textSize=u(e.textfont.size,L,y.identity,12),r.textFont=e.textfont.family,r.textAngle=0);var P=[\"x\",\"y\",\"z\"];for(r.project=[!1,!1,!1],r.projectScale=[1,1,1],r.projectOpacity=[1,1,1],n=0;n<3;++n){var O=e.projection[P[n]];(r.project[n]=O.show)&&(r.projectOpacity[n]=O.opacity,r.projectScale[n]=O.scale)}r.errorBounds=k(e,m);var R=a([e.error_x,e.error_y,e.error_z]);return r.errorColor=R.color,r.errorLineWidth=R.lineWidth,r.errorCapSize=R.capSize,r.delaunayAxis=e.surfaceaxis,r.delaunayColor=b(e.surfacecolor),r}function h(t){if(Array.isArray(t)){var e=t[0];return Array.isArray(e)&&(t=e),\"rgb(\"+t.slice(0,3).map(function(t){return Math.round(255*t)})+\")\"}return null}function f(t,e){var r=new n(t,e.uid);return r.update(e),r}var d=t(\"gl-line3d\"),p=t(\"gl-scatter3d\"),m=t(\"gl-error3d\"),v=t(\"gl-mesh3d\"),g=t(\"delaunay-triangulate\"),y=t(\"../../lib\"),b=t(\"../../lib/str2rgbarray\"),x=t(\"../../lib/gl_format_color\"),_=t(\"../scatter/make_bubble_size_func\"),w=t(\"../../constants/gl3d_dashes\"),M=t(\"../../constants/gl3d_markers\"),k=t(\"./calc_errors\"),A=n.prototype;A.handlePick=function(t){if(t.object&&(t.object===this.linePlot||t.object===this.delaunayMesh||t.object===this.textMarkers||t.object===this.scatterPlot)){t.object.highlight&&t.object.highlight(null),this.scatterPlot&&(t.object=this.scatterPlot,this.scatterPlot.highlight(t.data)),this.textLabels?void 0!==this.textLabels[t.data.index]?t.textLabel=this.textLabels[t.data.index]:t.textLabel=this.textLabels:t.textLabel=\"\";var e=t.index=t.data.index;return t.traceCoordinate=[this.data.x[e],this.data.y[e],this.data.z[e]],!0}},A.update=function(t){var e,r,n,a,o=this.scene.glplot.gl,s=w.solid;this.data=t;var l=c(this.scene,t);\"mode\"in l&&(this.mode=l.mode),\"lineDashes\"in l&&l.lineDashes in w&&(s=w[l.lineDashes]),this.color=h(l.scatterColor)||h(l.lineColor),this.dataPoints=l.position,e={gl:o,position:l.position,color:l.lineColor,lineWidth:l.lineWidth||1,dashes:s[0],dashScale:s[1],opacity:t.opacity,connectGaps:t.connectgaps},-1!==this.mode.indexOf(\"lines\")?this.linePlot?this.linePlot.update(e):(this.linePlot=d(e),this.linePlot._trace=this,this.scene.glplot.add(this.linePlot)):this.linePlot&&(this.scene.glplot.remove(this.linePlot),this.linePlot.dispose(),this.linePlot=null);var u=t.opacity;if(t.marker&&t.marker.opacity&&(u*=t.marker.opacity),r={gl:o,position:l.position,color:l.scatterColor,size:l.scatterSize,glyph:l.scatterMarker,opacity:u,orthographic:!0,lineWidth:l.scatterLineWidth,lineColor:l.scatterLineColor,project:l.project,projectScale:l.projectScale,projectOpacity:l.projectOpacity},-1!==this.mode.indexOf(\"markers\")?this.scatterPlot?this.scatterPlot.update(r):(this.scatterPlot=p(r),this.scatterPlot._trace=this,this.scatterPlot.highlightScale=1,this.scene.glplot.add(this.scatterPlot)):this.scatterPlot&&(this.scene.glplot.remove(this.scatterPlot),this.scatterPlot.dispose(),this.scatterPlot=null),a={gl:o,position:l.position,glyph:l.text,color:l.textColor,size:l.textSize,angle:l.textAngle,alignment:l.textOffset,font:l.textFont,orthographic:!0,lineWidth:0,project:!1,opacity:t.opacity},this.textLabels=t.hovertext||t.text,-1!==this.mode.indexOf(\"text\")?this.textMarkers?this.textMarkers.update(a):(this.textMarkers=p(a),this.textMarkers._trace=this,this.textMarkers.highlightScale=1,this.scene.glplot.add(this.textMarkers)):this.textMarkers&&(this.scene.glplot.remove(this.textMarkers),this.textMarkers.dispose(),this.textMarkers=null),n={gl:o,position:l.position,color:l.errorColor,error:l.errorBounds,lineWidth:l.errorLineWidth,capSize:l.errorCapSize,opacity:t.opacity},this.errorBars?l.errorBounds?this.errorBars.update(n):(this.scene.glplot.remove(this.errorBars),this.errorBars.dispose(),this.errorBars=null):l.errorBounds&&(this.errorBars=m(n),this.errorBars._trace=this,this.scene.glplot.add(this.errorBars)),l.delaunayAxis>=0){var f=i(l.position,l.delaunayColor,l.delaunayAxis);f.opacity=t.opacity,this.delaunayMesh?this.delaunayMesh.update(f):(f.gl=o,this.delaunayMesh=v(f),this.delaunayMesh._trace=this,this.scene.glplot.add(this.delaunayMesh))}else this.delaunayMesh&&(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose(),this.delaunayMesh=null)},A.dispose=function(){this.linePlot&&(this.scene.glplot.remove(this.linePlot),this.linePlot.dispose()),this.scatterPlot&&(this.scene.glplot.remove(this.scatterPlot),this.scatterPlot.dispose()),this.errorBars&&(this.scene.glplot.remove(this.errorBars),this.errorBars.dispose()),this.textMarkers&&(this.scene.glplot.remove(this.textMarkers),this.textMarkers.dispose()),this.delaunayMesh&&(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose())},e.exports=f},{\"../../constants/gl3d_dashes\":704,\"../../constants/gl3d_markers\":705,\"../../lib\":728,\"../../lib/gl_format_color\":724,\"../../lib/str2rgbarray\":749,\"../scatter/make_bubble_size_func\":1047,\"./calc_errors\":1057,\"delaunay-triangulate\":123,\"gl-error3d\":161,\"gl-line3d\":172,\"gl-mesh3d\":205,\"gl-scatter3d\":251}],1059:[function(t,e,r){\"use strict\";function n(t,e,r,n){var a=0,o=r(\"x\"),s=r(\"y\"),l=r(\"z\");return i.getComponentMethod(\"calendars\",\"handleTraceDefaults\")(t,e,[\"x\",\"y\",\"z\"],n),o&&s&&l&&(a=Math.min(o.length,s.length,l.length),a<o.length&&(e.x=o.slice(0,a)),a<s.length&&(e.y=s.slice(0,a)),a<l.length&&(e.z=l.slice(0,a))),a}var i=t(\"../../registry\"),a=t(\"../../lib\"),o=t(\"../scatter/subtypes\"),s=t(\"../scatter/marker_defaults\"),l=t(\"../scatter/line_defaults\"),u=t(\"../scatter/text_defaults\"),c=t(\"../../components/errorbars/defaults\"),h=t(\"./attributes\");e.exports=function(t,e,r,i){function f(r,n){return a.coerce(t,e,h,r,n)}if(!n(t,e,f,i))return void(e.visible=!1);f(\"text\"),f(\"hovertext\"),f(\"mode\"),o.hasLines(e)&&(f(\"connectgaps\"),l(t,e,r,i,f)),o.hasMarkers(e)&&s(t,e,r,i,f),o.hasText(e)&&u(t,e,i,f);var d=(e.line||{}).color,p=(e.marker||{}).color;f(\"surfaceaxis\")>=0&&f(\"surfacecolor\",d||p);for(var m=[\"x\",\"y\",\"z\"],v=0;v<3;++v){var g=\"projection.\"+m[v];f(g+\".show\")&&(f(g+\".opacity\"),f(g+\".scale\"))}c(t,e,r,{axis:\"z\"}),c(t,e,r,{axis:\"y\",inherit:\"z\"}),c(t,e,r,{axis:\"x\",inherit:\"z\"})}},{\"../../components/errorbars/defaults\":633,\"../../lib\":728,\"../../registry\":846,\"../scatter/line_defaults\":1043,\"../scatter/marker_defaults\":1048,\"../scatter/subtypes\":1052,\"../scatter/text_defaults\":1053,\"./attributes\":1055}],1060:[function(t,e,r){\"use strict\";var n={};n.plot=t(\"./convert\"),n.attributes=t(\"./attributes\"),n.markerSymbols=t(\"../../constants/gl3d_markers\"),n.supplyDefaults=t(\"./defaults\"),n.colorbar=t(\"../scatter/colorbar\"),n.calc=t(\"./calc\"),n.moduleType=\"trace\",n.name=\"scatter3d\",n.basePlotModule=t(\"../../plots/gl3d\"),n.categories=[\"gl3d\",\"symbols\",\"markerColorscale\",\"showLegend\"],n.meta={},e.exports=n},{\"../../constants/gl3d_markers\":705,\"../../plots/gl3d\":811,\"../scatter/colorbar\":1034,\"./attributes\":1055,\"./calc\":1056,\"./convert\":1058,\"./defaults\":1059}],1061:[function(t,e,r){\"use strict\";var n=t(\"../scatter/attributes\"),i=t(\"../../plots/attributes\"),a=t(\"../../components/colorscale/color_attributes\"),o=t(\"../../components/colorbar/attributes\"),s=t(\"../../lib/extend\").extendFlat,l=n.marker,u=n.line,c=l.line;e.exports={carpet:{valType:\"string\",editType:\"calc\"},a:{valType:\"data_array\",editType:\"calc\"},b:{valType:\"data_array\",editType:\"calc\"},mode:s({},n.mode,{dflt:\"markers\"}),text:s({},n.text,{}),line:{color:u.color,width:u.width,dash:u.dash,shape:s({},u.shape,{values:[\"linear\",\"spline\"]}),smoothing:u.smoothing,editType:\"calc\"},connectgaps:n.connectgaps,fill:s({},n.fill,{values:[\"none\",\"toself\",\"tonext\"]}),fillcolor:n.fillcolor,marker:s({symbol:l.symbol,opacity:l.opacity,maxdisplayed:l.maxdisplayed,size:l.size,sizeref:l.sizeref,sizemin:l.sizemin,sizemode:l.sizemode,line:s({width:c.width,editType:\"calc\"},a(\"marker\".line)),gradient:l.gradient,editType:\"calc\"},a(\"marker\"),{showscale:l.showscale,colorbar:o}),textfont:n.textfont,textposition:n.textposition,hoverinfo:s({},i.hoverinfo,{flags:[\"a\",\"b\",\"text\",\"name\"]}),hoveron:n.hoveron}},{\"../../components/colorbar/attributes\":605,\"../../components/colorscale/color_attributes\":611,\"../../lib/extend\":717,\"../../plots/attributes\":770,\"../scatter/attributes\":1031}],1062:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../../plots/cartesian/axes\"),a=t(\"../scatter/subtypes\"),o=t(\"../scatter/colorscale_calc\"),s=t(\"../scatter/arrays_to_calcdata\"),l=t(\"../carpet/lookup_carpetid\");e.exports=function(t,e){var r=e.carpetTrace=l(t,e);if(r&&r.visible&&\"legendonly\"!==r.visible){var u;e.xaxis=r.xaxis,e.yaxis=r.yaxis;var c,h,f=e.a.length,d=new Array(f),p=!1;for(u=0;u<f;u++)if(c=e.a[u],h=e.b[u],n(c)&&n(h)){var m=r.ab2xy(+c,+h,!0),v=r.isVisible(+c,+h);v||(p=!0),d[u]={x:m[0],y:m[1],a:c,b:h,vis:v}}else d[u]={x:!1,y:!1};e._needsCull=p,d[0].carpet=r,d[0].trace=e;var g,y;if(a.hasMarkers(e)&&(g=e.marker,y=g.size,Array.isArray(y))){var b={type:\"linear\"};i.setConvert(b),y=b.makeCalcdata(e.marker,\"size\"),y.length>f&&y.splice(f,y.length-f)}return o(e),s(d,e),d}}},{\"../../plots/cartesian/axes\":772,\"../carpet/lookup_carpetid\":903,\"../scatter/arrays_to_calcdata\":1030,\"../scatter/colorscale_calc\":1035,\"../scatter/subtypes\":1052,\"fast-isnumeric\":131}],1063:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../scatter/constants\"),a=t(\"../scatter/subtypes\"),o=t(\"../scatter/marker_defaults\"),s=t(\"../scatter/line_defaults\"),l=t(\"../scatter/line_shape_defaults\"),u=t(\"../scatter/text_defaults\"),c=t(\"../scatter/fillcolor_defaults\"),h=t(\"./attributes\");e.exports=function(t,e,r,f){function d(r,i){return n.coerce(t,e,h,r,i)}d(\"carpet\"),e.xaxis=\"x\",e.yaxis=\"y\";var p,m=d(\"a\"),v=d(\"b\");if(!(p=Math.min(m.length,v.length)))return void(e.visible=!1);m&&p<m.length&&(e.a=m.slice(0,p)),v&&p<v.length&&(e.b=v.slice(0,p)),d(\"text\"),d(\"mode\",p<i.PTS_LINESONLY?\"lines+markers\":\"lines\"),a.hasLines(e)&&(s(t,e,r,f,d),l(t,e,d),d(\"connectgaps\")),a.hasMarkers(e)&&o(t,e,r,f,d,{gradient:!0}),a.hasText(e)&&u(t,e,f,d);var g=[];(a.hasMarkers(e)||a.hasText(e))&&(d(\"marker.maxdisplayed\"),g.push(\"points\")),d(\"fill\"),\"none\"!==e.fill&&(c(t,e,r,d),a.hasLines(e)||l(t,e,d)),\"tonext\"!==e.fill&&\"toself\"!==e.fill||g.push(\"fills\"),d(\"hoveron\",g.join(\"+\")||\"points\")}},{\"../../lib\":728,\"../scatter/constants\":1036,\"../scatter/fillcolor_defaults\":1039,\"../scatter/line_defaults\":1043,\"../scatter/line_shape_defaults\":1045,\"../scatter/marker_defaults\":1048,\"../scatter/subtypes\":1052,\"../scatter/text_defaults\":1053,\"./attributes\":1061}],1064:[function(t,e,r){\"use strict\";var n=t(\"../scatter/hover\");e.exports=function(t,e,r,i){function a(t,e){var r;r=t.labelprefix&&t.labelprefix.length>0?t.labelprefix.replace(/ = $/,\"\"):t._hovertitle,g.push(r+\": \"+e.toFixed(3)+t.labelsuffix)}var o=n(t,e,r,i);if(o&&!1!==o[0].index){var s=o[0];if(void 0===s.index){var l=1-s.y0/t.ya._length,u=t.xa._length,c=u*l/2,h=u-c;return s.x0=Math.max(Math.min(s.x0,h),c),s.x1=Math.max(Math.min(s.x1,h),c),o}var f=s.cd[s.index];s.a=f.a,s.b=f.b,s.xLabelVal=void 0,s.yLabelVal=void 0;var d=s.trace,p=d._carpet,m=f.hi||d.hoverinfo,v=m.split(\"+\"),g=[];-1!==v.indexOf(\"all\")&&(v=[\"a\",\"b\"]),-1!==v.indexOf(\"a\")&&a(p.aaxis,f.a),-1!==v.indexOf(\"b\")&&a(p.baxis,f.b);var y=p.ab2ij([f.a,f.b]),b=Math.floor(y[0]),x=y[0]-b,_=Math.floor(y[1]),w=y[1]-_,M=p.evalxy([],b,_,x,w);return g.push(\"y: \"+M[1].toFixed(3)),s.extraText=g.join(\"<br>\"),o}}},{\"../scatter/hover\":1041}],1065:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.supplyDefaults=t(\"./defaults\"),n.colorbar=t(\"../scatter/colorbar\"),n.calc=t(\"./calc\"),n.plot=t(\"./plot\"),n.style=t(\"./style\"),n.hoverPoints=t(\"./hover\"),n.selectPoints=t(\"./select\"),n.moduleType=\"trace\",n.name=\"scattercarpet\",n.basePlotModule=t(\"../../plots/cartesian\"),n.categories=[\"carpet\",\"symbols\",\"markerColorscale\",\"showLegend\",\"carpetDependent\"],n.meta={},e.exports=n},{\"../../plots/cartesian\":782,\"../scatter/colorbar\":1034,\"./attributes\":1061,\"./calc\":1062,\"./defaults\":1063,\"./hover\":1064,\"./plot\":1066,\"./select\":1067,\"./style\":1068}],1066:[function(t,e,r){\"use strict\";var n=t(\"../scatter/plot\"),i=t(\"../../plots/cartesian/axes\"),a=t(\"../../components/drawing\");e.exports=function(t,e,r){var o,s,l,u=r[0][0].carpet,c={xaxis:i.getFromId(t,u.xaxis||\"x\"),yaxis:i.getFromId(t,u.yaxis||\"y\"),plot:e.plot};for(n(t,c,r),o=0;o<r.length;o++)s=r[o][0].trace,l=c.plot.selectAll(\"g.trace\"+s.uid+\" .js-line\"),a.setClipUrl(l,u._clipPathId)}},{\"../../components/drawing\":628,\"../../plots/cartesian/axes\":772,\"../scatter/plot\":1049}],1067:[function(t,e,r){\"use strict\";var n=t(\"../scatter/select\");e.exports=function(t,e){var r=n(t,e);if(r){var i,a,o,s=t.cd;for(o=0;o<r.length;o++)i=r[o],a=s[i.pointNumber],i.a=a.a,i.b=a.b,i.c=a.c,delete i.x,delete i.y;return r}}},{\"../scatter/select\":1050}],1068:[function(t,e,r){\"use strict\";var n=t(\"../scatter/style\");e.exports=function(t){for(var e=t._fullLayout._modules,r=0;r<e.length;r++)if(\"scatter\"===e[r].name)return;n(t)}},{\"../scatter/style\":1051}],1069:[function(t,e,r){\"use strict\";var n=t(\"../scatter/attributes\"),i=t(\"../../plots/attributes\"),a=t(\"../../components/colorscale/color_attributes\"),o=t(\"../../components/drawing/attributes\").dash,s=t(\"../../lib/extend\").extendFlat,l=t(\"../../plot_api/edit_types\").overrideAll,u=n.marker,c=n.line,h=u.line;e.exports=l({lon:{valType:\"data_array\"},lat:{valType:\"data_array\"},locations:{valType:\"data_array\"},locationmode:{valType:\"enumerated\",values:[\"ISO-3\",\"USA-states\",\"country names\"],dflt:\"ISO-3\"},mode:s({},n.mode,{dflt:\"markers\"}),text:s({},n.text,{}),hovertext:s({},n.hovertext,{}),textfont:n.textfont,textposition:n.textposition,line:{color:c.color,width:c.width,dash:o},connectgaps:n.connectgaps,marker:s({symbol:u.symbol,opacity:u.opacity,size:u.size,sizeref:u.sizeref,sizemin:u.sizemin,sizemode:u.sizemode,showscale:u.showscale,colorbar:u.colorbar,line:s({width:h.width},a(\"marker.line\")),gradient:u.gradient},a(\"marker\")),fill:{valType:\"enumerated\",values:[\"none\",\"toself\"],dflt:\"none\"},fillcolor:n.fillcolor,hoverinfo:s({},i.hoverinfo,{flags:[\"lon\",\"lat\",\"location\",\"text\",\"name\"]})},\"calc\",\"nested\")},{\"../../components/colorscale/color_attributes\":611,\"../../components/drawing/attributes\":627,\"../../lib/extend\":717,\"../../plot_api/edit_types\":756,\"../../plots/attributes\":770,\"../scatter/attributes\":1031}],1070:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../../constants/numerical\").BADNUM,a=t(\"../scatter/colorscale_calc\"),o=t(\"../scatter/arrays_to_calcdata\");e.exports=function(t,e){for(var r=Array.isArray(e.locations),s=r?e.locations.length:e.lon.length,l=new Array(s),u=0;u<s;u++){var c=l[u]={};if(r){var h=e.locations[u];c.loc=\"string\"==typeof h?h:null}else{var f=e.lon[u],d=e.lat[u];n(f)&&n(d)?c.lonlat=[+f,+d]:c.lonlat=[i,i]}}return o(l,e),a(e),l}},{\"../../constants/numerical\":707,\"../scatter/arrays_to_calcdata\":1030,\"../scatter/colorscale_calc\":1035,\"fast-isnumeric\":131}],1071:[function(t,e,r){\"use strict\";function n(t,e,r){var n,i,a=0,o=r(\"locations\");return o?(r(\"locationmode\"),a=o.length):(n=r(\"lon\")||[],i=r(\"lat\")||[],a=Math.min(n.length,i.length),a<n.length&&(e.lon=n.slice(0,a)),a<i.length&&(e.lat=i.slice(0,a)),a)}var i=t(\"../../lib\"),a=t(\"../scatter/subtypes\"),o=t(\"../scatter/marker_defaults\"),s=t(\"../scatter/line_defaults\"),l=t(\"../scatter/text_defaults\"),u=t(\"../scatter/fillcolor_defaults\"),c=t(\"./attributes\");e.exports=function(t,e,r,h){function f(r,n){return i.coerce(t,e,c,r,n)}if(!n(t,e,f))return void(e.visible=!1);f(\"text\"),f(\"hovertext\"),f(\"mode\"),a.hasLines(e)&&(s(t,e,r,h,f),f(\"connectgaps\")),a.hasMarkers(e)&&o(t,e,r,h,f,{gradient:!0}),a.hasText(e)&&l(t,e,h,f),f(\"fill\"),\"none\"!==e.fill&&u(t,e,r,f)}},{\"../../lib\":728,\"../scatter/fillcolor_defaults\":1039,\"../scatter/line_defaults\":1043,\"../scatter/marker_defaults\":1048,\"../scatter/subtypes\":1052,\"../scatter/text_defaults\":1053,\"./attributes\":1069}],1072:[function(t,e,r){\"use strict\";e.exports=function(t,e){return t.lon=e.lon,t.lat=e.lat,t.location=e.loc?e.loc:null,t}},{}],1073:[function(t,e,r){\"use strict\";function n(t,e,r){function n(t){return a.tickText(r,r.c2l(t),\"hover\").text+\"\\xb0\"}var i=e.hi||t.hoverinfo,o=\"all\"===i?u.hoverinfo.flags:i.split(\"+\"),s=-1!==o.indexOf(\"location\")&&Array.isArray(t.locations),c=-1!==o.indexOf(\"lon\"),h=-1!==o.indexOf(\"lat\"),f=-1!==o.indexOf(\"text\"),d=[];return s?d.push(e.loc):c&&h?d.push(\"(\"+n(e.lonlat[0])+\", \"+n(e.lonlat[1])+\")\"):c?d.push(\"lon: \"+n(e.lonlat[0])):h&&d.push(\"lat: \"+n(e.lonlat[1])),f&&l(e,t,d),d.join(\"<br>\")}var i=t(\"../../components/fx\"),a=t(\"../../plots/cartesian/axes\"),o=t(\"../../constants/numerical\").BADNUM,s=t(\"../scatter/get_trace_color\"),l=t(\"../scatter/fill_hover_text\"),u=t(\"./attributes\");e.exports=function(t,e,r){function a(t){var n=t.lonlat;if(n[0]===o)return 1/0;if(d(n))return 1/0;var i=p(n),a=p([e,r]),s=Math.abs(i[0]-a[0]),l=Math.abs(i[1]-a[1]),u=Math.max(3,t.mrc||0);return Math.max(Math.sqrt(s*s+l*l)-u,1-3/u)}var l=t.cd,u=l[0].trace,c=t.xa,h=t.ya,f=t.subplot,d=f.projection.isLonLatOverEdges,p=f.project;if(i.getClosest(l,a,t),!1!==t.index){var m=l[t.index],v=m.lonlat,g=[c.c2p(v),h.c2p(v)],y=m.mrc||1;return t.x0=g[0]-y,t.x1=g[0]+y,t.y0=g[1]-y,t.y1=g[1]+y,t.loc=m.loc,t.lon=v[0],t.lat=v[1],t.color=s(u,m),t.extraText=n(u,m,f.mockAxis),[t]}}},{\"../../components/fx\":645,\"../../constants/numerical\":707,\"../../plots/cartesian/axes\":772,\"../scatter/fill_hover_text\":1038,\"../scatter/get_trace_color\":1040,\"./attributes\":1069}],1074:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.supplyDefaults=t(\"./defaults\"),n.colorbar=t(\"../scatter/colorbar\"),n.calc=t(\"./calc\"),n.plot=t(\"./plot\"),n.hoverPoints=t(\"./hover\"),n.eventData=t(\"./event_data\"),n.selectPoints=t(\"./select\"),n.moduleType=\"trace\",n.name=\"scattergeo\",n.basePlotModule=t(\"../../plots/geo\"),n.categories=[\"geo\",\"symbols\",\"markerColorscale\",\"showLegend\",\"scatter-like\"],n.meta={},e.exports=n},{\"../../plots/geo\":800,\"../scatter/colorbar\":1034,\"./attributes\":1069,\"./calc\":1070,\"./defaults\":1071,\"./event_data\":1072,\"./hover\":1073,\"./plot\":1075,\"./select\":1076}],1075:[function(t,e,r){\"use strict\";function n(t,e){var r=t[0].trace;if(Array.isArray(r.locations))for(var n=c(r,e),i=r.locationmode,a=0;a<t.length;a++){var o=t[a],s=h(i,o.loc,n);o.lonlat=s?s.properties.ct:[u,u]}}function i(t){var e=t.layers.frontplot.selectAll(\".trace.scattergeo\");e.style(\"opacity\",function(t){return t[0].trace.opacity}),e.each(function(e){var r=e[0].trace,n=a.select(this);n.selectAll(\"path.point\").call(o.pointStyle,r,t.graphDiv),n.selectAll(\"text\").call(o.textPointStyle,r,t.graphDiv)}),e.selectAll(\"path.js-line\").style(\"fill\",\"none\").each(function(t){var e=a.select(this),r=t.trace,n=r.line||{};e.call(s.stroke,n.color).call(o.dashLine,n.dash||\"\",n.width||0),\"none\"!==r.fill&&e.call(s.fill,r.fillcolor)})}var a=t(\"d3\"),o=t(\"../../components/drawing\"),s=t(\"../../components/color\"),l=t(\"../../lib\"),u=t(\"../../constants/numerical\").BADNUM,c=t(\"../../lib/topojson_utils\").getTopojsonFeatures,h=t(\"../../lib/geo_location_utils\").locationToFeature,f=t(\"../../lib/geojson_utils\"),d=t(\"../scatter/subtypes\")\n", ";e.exports=function(t,e){function r(t){return t[0].trace.uid}function o(t,e){t.lonlat[0]===u&&a.select(e).remove()}for(var s=0;s<e.length;s++)n(e[s],t.topojson);var c=t.layers.frontplot.select(\".scatterlayer\").selectAll(\"g.trace.scattergeo\").data(e,r);c.enter().append(\"g\").attr(\"class\",\"trace scattergeo\"),c.exit().remove(),c.selectAll(\"*\").remove(),c.each(function(t){var e=t[0].node3=a.select(this),r=t[0].trace;if(d.hasLines(r)||\"none\"!==r.fill){var n=f.calcTraceToLineCoords(t),i=\"none\"!==r.fill?f.makePolygon(n):f.makeLine(n);e.selectAll(\"path.js-line\").data([{geojson:i,trace:r}]).enter().append(\"path\").classed(\"js-line\",!0).style(\"stroke-miterlimit\",2)}d.hasMarkers(r)&&e.selectAll(\"path.point\").data(l.identity).enter().append(\"path\").classed(\"point\",!0).each(function(t){o(t,this)}),d.hasText(r)&&e.selectAll(\"g\").data(l.identity).enter().append(\"g\").append(\"text\").each(function(t){o(t,this)})}),i(t)}},{\"../../components/color\":604,\"../../components/drawing\":628,\"../../constants/numerical\":707,\"../../lib\":728,\"../../lib/geo_location_utils\":720,\"../../lib/geojson_utils\":721,\"../../lib/topojson_utils\":753,\"../scatter/subtypes\":1052,d3:122}],1076:[function(t,e,r){\"use strict\";var n=t(\"../scatter/subtypes\"),i=t(\"../../constants/interactions\").DESELECTDIM;e.exports=function(t,e){var r,a,o,s,l,u=t.cd,c=t.xaxis,h=t.yaxis,f=[],d=u[0].trace,p=u[0].node3,m=!n.hasMarkers(d)&&!n.hasText(d);if(!0===d.visible&&!m){var v=d.marker,g=Array.isArray(v.opacity)?1:v.opacity;if(!1===e)for(l=0;l<u.length;l++)u[l].dim=0;else for(l=0;l<u.length;l++)r=u[l],a=r.lonlat,o=c.c2p(a),s=h.c2p(a),e.contains([o,s])?(f.push({pointNumber:l,lon:a[0],lat:a[1]}),r.dim=0):r.dim=1;return p.selectAll(\"path.point\").style(\"opacity\",function(t){return((t.mo+1||g+1)-1)*(t.dim?i:1)}),p.selectAll(\"text\").style(\"opacity\",function(t){return t.dim?i:1}),f}}},{\"../../constants/interactions\":706,\"../scatter/subtypes\":1052}],1077:[function(t,e,r){\"use strict\";var n=t(\"../scatter/attributes\"),i=t(\"../../components/colorscale/color_attributes\"),a=t(\"../../constants/gl2d_dashes\"),o=t(\"../../constants/gl2d_markers\"),s=t(\"../../lib/extend\").extendFlat,l=t(\"../../plot_api/edit_types\").overrideAll,u=n.line,c=n.marker,h=c.line,f=e.exports=l({x:n.x,x0:n.x0,dx:n.dx,y:n.y,y0:n.y0,dy:n.dy,text:s({},n.text,{}),mode:{valType:\"flaglist\",flags:[\"lines\",\"markers\"],extras:[\"none\"]},line:{color:u.color,width:u.width,dash:{valType:\"enumerated\",values:Object.keys(a),dflt:\"solid\"}},marker:s({},i(\"marker\"),{symbol:{valType:\"enumerated\",values:Object.keys(o),dflt:\"circle\",arrayOk:!0},size:c.size,sizeref:c.sizeref,sizemin:c.sizemin,sizemode:c.sizemode,opacity:c.opacity,showscale:c.showscale,colorbar:c.colorbar,line:s({},i(\"marker.line\"),{width:h.width})}),connectgaps:n.connectgaps,fill:s({},n.fill,{values:[\"none\",\"tozeroy\",\"tozerox\"]}),fillcolor:n.fillcolor,error_y:n.error_y,error_x:n.error_x},\"calc\",\"nested\");f.x.editType=f.y.editType=f.x0.editType=f.y0.editType=\"calc+clearAxisTypes\"},{\"../../components/colorscale/color_attributes\":611,\"../../constants/gl2d_dashes\":702,\"../../constants/gl2d_markers\":703,\"../../lib/extend\":717,\"../../plot_api/edit_types\":756,\"../scatter/attributes\":1031}],1078:[function(t,e,r){\"use strict\";var n=t(\"../../plots/cartesian/axes\"),i=t(\"../scatter/arrays_to_calcdata\"),a=t(\"../scatter/colorscale_calc\");e.exports=function(t,e){var r,o=t._fullLayout.dragmode;if(\"lasso\"===o||\"select\"===o){var s,l=n.getFromId(t,e.xaxis||\"x\"),u=n.getFromId(t,e.yaxis||\"y\"),c=l.makeCalcdata(e,\"x\"),h=u.makeCalcdata(e,\"y\"),f=Math.min(c.length,h.length);for(r=new Array(f),s=0;s<f;s++)r[s]={x:c[s],y:h[s]}}else r=[{x:!1,y:!1,trace:e,t:{}}],i(r,e);return a(e),r}},{\"../../plots/cartesian/axes\":772,\"../scatter/arrays_to_calcdata\":1030,\"../scatter/colorscale_calc\":1035}],1079:[function(t,e,r){\"use strict\";function n(t,e){this.scene=t,this.uid=e,this.type=\"scattergl\",this.pickXData=[],this.pickYData=[],this.xData=[],this.yData=[],this.textLabels=[],this.color=\"rgb(0, 0, 0)\",this.name=\"\",this.hoverinfo=\"all\",this.connectgaps=!0,this.index=null,this.idToIndex=[],this.bounds=[0,0,0,0],this.isVisible=!1,this.hasLines=!1,this.hasErrorX=!1,this.hasErrorY=!1,this.hasMarkers=!1,this.line=this.initObject(m,{positions:new Float64Array(0),color:[0,0,0,1],width:1,fill:[!1,!1,!1,!1],fillColor:[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],dashes:[1]},0),this.errorX=this.initObject(v,{positions:new Float64Array(0),errors:new Float64Array(0),lineWidth:1,capSize:0,color:[0,0,0,1]},1),this.errorY=this.initObject(v,{positions:new Float64Array(0),errors:new Float64Array(0),lineWidth:1,capSize:0,color:[0,0,0,1]},2);var r={positions:new Float64Array(0),sizes:[],colors:[],glyphs:[],borderWidths:[],borderColors:[],size:12,color:[0,0,0,1],borderSize:1,borderColor:[0,0,0,1],snapPoints:!0},n=y.extendFlat({},r,{snapPoints:!1});this.scatter=this.initObject(d,r,3),this.fancyScatter=this.initObject(p,r,4),this.selectScatter=this.initObject(d,n,5)}function i(t,e,r){return Array.isArray(e)||(e=[e]),a(t,e,r)}function a(t,e,r){for(var n=new Array(r),i=e[0],a=0;a<r;++a)n[a]=t(a>=e.length?i:e[a]);return n}function o(t,e,r){return l(O(t,r),P(e,r),r)}function s(t,e,r,n){var i=k(t,e,n);return i=Array.isArray(i[0])?i:a(y.identity,[i],n),l(i,P(r,n),n)}function l(t,e,r){for(var n=new Array(4*r),i=0;i<r;++i){for(var a=0;a<3;++a)n[4*i+a]=t[i][a];n[4*i+3]=t[i][3]*e[i]}return n}function u(t){return\"\"===t.split(\"-open\")[1]}function c(t,e,r,n,i){var a,o=i?C:1;for(a=0;a<3;a++)t[4*r+a]=e[4*n+a];t[4*r+a]=o*e[4*n+a]}function h(t){for(var e,r=t.length,n=Math.max(1,(r-1)/Math.min(Math.max(r,1),1e3)),i=0;i<r;i+=n)if(e=t[Math.floor(i)],!(g(e)||e instanceof Date))return!1;return!0}function f(t,e,r){var i=new n(t,e.uid);return i.update(e,r),i}var d=t(\"gl-scatter2d\"),p=t(\"gl-scatter2d-sdf\"),m=t(\"gl-line2d\"),v=t(\"gl-error2d\"),g=t(\"fast-isnumeric\"),y=t(\"../../lib\"),b=t(\"../../plots/cartesian/axes\"),x=t(\"../../plots/cartesian/axis_autotype\"),_=t(\"../../components/errorbars\"),w=t(\"../../lib/str2rgbarray\"),M=t(\"../../lib/typed_array_truncate\"),k=t(\"../../lib/gl_format_color\"),A=t(\"../scatter/subtypes\"),T=t(\"../scatter/make_bubble_size_func\"),S=t(\"../scatter/get_trace_color\"),E=t(\"../../constants/gl2d_markers\"),L=t(\"../../constants/gl2d_dashes\"),C=t(\"../../constants/interactions\").DESELECTDIM,I=[\"xaxis\",\"yaxis\"],z=[0,0,0,0],D=n.prototype;D.initObject=function(t,e,r){function n(){u||(u=t(s,e),u._trace=o,u._index=r),u.update(e)}function i(){u&&u.update(l)}function a(){u&&u.dispose()}var o=this,s=o.scene.glplot,l=y.extendFlat({},e),u=null;return{options:e,update:n,clear:i,dispose:a}},D.handlePick=function(t){var e=t.pointId;(t.object!==this.line||this.connectgaps)&&(e=this.idToIndex[t.pointId]);var r=this.pickXData[e];return{trace:this,dataCoord:t.dataCoord,traceCoord:[g(r)||!y.isDateTime(r)?r:y.dateTime2ms(r),this.pickYData[e]],textLabel:Array.isArray(this.textLabels)?this.textLabels[e]:this.textLabels,color:Array.isArray(this.color)?this.color[e]:this.color,name:this.name,pointIndex:e,hoverinfo:this.hoverinfo}},D.isFancy=function(t){if(\"linear\"!==this.scene.xaxis.type&&\"date\"!==this.scene.xaxis.type)return!0;if(\"linear\"!==this.scene.yaxis.type)return!0;if(!t.x||!t.y)return!0;if(this.hasMarkers){var e=t.marker||{};if(Array.isArray(e.symbol)||\"circle\"!==e.symbol||Array.isArray(e.size)||Array.isArray(e.color)||Array.isArray(e.line.width)||Array.isArray(e.line.color)||Array.isArray(e.opacity))return!0}return!(!this.hasLines||this.connectgaps)||(!!this.hasErrorX||!!this.hasErrorY)};var P=i.bind(null,function(t){return+t}),O=i.bind(null,w),R=i.bind(null,function(t){return E[t]?t:\"circle\"});D.update=function(t,e){!0!==t.visible?(this.isVisible=!1,this.hasLines=!1,this.hasErrorX=!1,this.hasErrorY=!1,this.hasMarkers=!1):(this.isVisible=!0,this.hasLines=A.hasLines(t),this.hasErrorX=!0===t.error_x.visible,this.hasErrorY=!0===t.error_y.visible,this.hasMarkers=A.hasMarkers(t)),this.textLabels=t.text,this.name=t.name,this.hoverinfo=t.hoverinfo,this.bounds=[1/0,1/0,-1/0,-1/0],this.connectgaps=!!t.connectgaps,this.isVisible?this.isFancy(t)?this.updateFancy(t):this.updateFast(t):(this.line.clear(),this.errorX.clear(),this.errorY.clear(),this.scatter.clear(),this.fancyScatter.clear()),this.scene.glplot.objects.sort(function(t,e){return t._index-e._index}),this.index=t.index,this.color=S(t,{}),e&&e[0]&&!e[0]._glTrace&&(e[0]._glTrace=this)},D.updateFast=function(t){var e,r,n,i,a,o=this.xData=this.pickXData=t.x,s=this.yData=this.pickYData=t.y,l=o.length,u=new Array(l),c=new Float64Array(2*l),f=this.bounds,d=0,p=0,m=t.selection,v=t.xcalendar,b=h(o),_=!b&&\"date\"===x(o,v);if(b||_)for(e=0;e<l;++e)i=o[e],a=s[e],g(a)&&(b||(i=y.dateTime2ms(i,v)),c[p++]=i,c[p++]=a,u[d++]=e,f[0]=Math.min(f[0],i),f[1]=Math.min(f[1],a),f[2]=Math.max(f[2],i),f[3]=Math.max(f[3],a));if(c=M(c,p),this.idToIndex=u,m&&m.length)for(r=new Float64Array(2*m.length),e=0,n=m.length;e<n;e++)r[2*e+0]=m[e].x,r[2*e+1]=m[e].y;this.updateLines(t,c),this.updateError(\"X\",t),this.updateError(\"Y\",t);var k;if(this.hasMarkers){var A,T,S;r?(this.scatter.options.positions=null,A=w(t.marker.color),T=w(t.marker.line.color),S=t.opacity*t.marker.opacity*C,A[3]*=S,this.scatter.options.color=A,T[3]*=S,this.scatter.options.borderColor=T,k=t.marker.size,this.scatter.options.size=k,this.scatter.options.borderSize=t.marker.line.width,this.scatter.update(),this.scatter.options.positions=c,this.selectScatter.options.positions=r,A=w(t.marker.color),T=w(t.marker.line.color),S=t.opacity*t.marker.opacity,A[3]*=S,this.selectScatter.options.color=A,T[3]*=S,this.selectScatter.options.borderColor=T,k=t.marker.size,this.selectScatter.options.size=k,this.selectScatter.options.borderSize=t.marker.line.width,this.selectScatter.update()):(this.scatter.options.positions=c,A=w(t.marker.color),T=w(t.marker.line.color),S=t.opacity*t.marker.opacity,A[3]*=S,this.scatter.options.color=A,T[3]*=S,this.scatter.options.borderColor=T,k=t.marker.size,this.scatter.options.size=k,this.scatter.options.borderSize=t.marker.line.width,this.scatter.update())}else this.scatter.clear();this.fancyScatter.clear(),this.expandAxesFast(f,k)},D.updateFancy=function(t){var e=this.scene,r=e.xaxis,n=e.yaxis,a=this.bounds,o=t.selection,l=this.pickXData=r.makeCalcdata(t,\"x\").slice(),h=this.pickYData=n.makeCalcdata(t,\"y\").slice();this.xData=l.slice(),this.yData=h.slice();var f,d,p,m,v,g,y,b=_.calcFromTrace(t,e.fullLayout),x=l.length,w=new Array(x),k=new Float64Array(2*x),A=new Float64Array(4*x),S=new Float64Array(4*x),L=0,C=0,I=0,D=0,O=\"log\"===r.type?r.d2l:function(t){return t},F=\"log\"===n.type?n.d2l:function(t){return t};for(f=0;f<x;++f)this.xData[f]=d=O(l[f]),this.yData[f]=p=F(h[f]),isNaN(d)||isNaN(p)||(w[L++]=f,k[C++]=d,k[C++]=p,m=A[I++]=d-b[f].xs||0,v=A[I++]=b[f].xh-d||0,A[I++]=0,A[I++]=0,S[D++]=0,S[D++]=0,g=S[D++]=p-b[f].ys||0,y=S[D++]=b[f].yh-p||0,a[0]=Math.min(a[0],d-m),a[1]=Math.min(a[1],p-g),a[2]=Math.max(a[2],d+v),a[3]=Math.max(a[3],p+y));k=M(k,C),this.idToIndex=w,this.updateLines(t,k),this.updateError(\"X\",t,k,A),this.updateError(\"Y\",t,k,S);var j,N;if(o&&o.length)for(N={},f=0;f<o.length;f++)N[o[f].pointNumber]=!0;if(this.hasMarkers){this.scatter.options.positions=k,this.scatter.options.sizes=new Array(L),this.scatter.options.glyphs=new Array(L),this.scatter.options.borderWidths=new Array(L),this.scatter.options.colors=new Array(4*L),this.scatter.options.borderColors=new Array(4*L);var B,U,V,H,q,G,Y,W,X,Z,J=T(t),K=t.marker,Q=K.opacity,$=t.opacity,tt=R(K.symbol,x),et=s(K,Q,$,x),rt=P(K.line.width,x),nt=s(K.line,Q,$,x);for(j=i(J,K.size,x),f=0;f<L;++f)B=w[f],V=tt[B],H=E[V],q=u(V),G=N&&!N[B],Y=H.noBorder&&!q?nt:et,W=q?et:nt,U=j[B],X=rt[B],Z=H.noBorder||H.noFill?.1*U:0,this.scatter.options.sizes[f]=4*U,this.scatter.options.glyphs[f]=H.unicode,this.scatter.options.borderWidths[f]=.5*(X>Z?X-Z:0),!q||H.noBorder||H.noFill?c(this.scatter.options.colors,Y,f,B,G):c(this.scatter.options.colors,z,f,0),c(this.scatter.options.borderColors,W,f,B,G);N?(this.scatter.options.positions=null,this.fancyScatter.update(),this.scatter.options.positions=k):this.fancyScatter.update()}else this.fancyScatter.clear();this.scatter.clear(),this.expandAxesFancy(l,h,j)},D.updateLines=function(t,e){var r;if(this.hasLines){var n=e;if(!t.connectgaps){var i=0,a=this.xData,s=this.yData;for(n=new Float64Array(2*a.length),r=0;r<a.length;++r)n[i++]=a[r],n[i++]=s[r]}this.line.options.positions=n;var l=o(t.line.color,t.opacity,1),u=Math.round(.5*this.line.options.width),c=(L[t.line.dash]||[1]).slice();for(r=0;r<c.length;++r)c[r]*=u;switch(t.fill){case\"tozeroy\":this.line.options.fill=[!1,!0,!1,!1];break;case\"tozerox\":this.line.options.fill=[!0,!1,!1,!1];break;default:this.line.options.fill=[!1,!1,!1,!1]}var h=w(t.fillcolor);this.line.options.color=l,this.line.options.width=2*t.line.width,this.line.options.dashes=c,this.line.options.fillColor=[h,h,h,h],this.line.update()}else this.line.clear()},D.updateError=function(t,e,r,n){var i=this[\"error\"+t],a=e[\"error_\"+t.toLowerCase()];\"x\"===t.toLowerCase()&&a.copy_ystyle&&(a=e.error_y),this[\"hasError\"+t]?(i.options.positions=r,i.options.errors=n,i.options.capSize=a.width,i.options.lineWidth=a.thickness/2,i.options.color=o(a.color,1,1),i.update()):i.clear()},D.expandAxesFast=function(t,e){for(var r,n,i,a=e||10,o=0;o<2;o++)r=this.scene[I[o]],n=r._min,n||(n=[]),n.push({val:t[o],pad:a}),i=r._max,i||(i=[]),i.push({val:t[o+2],pad:a})},D.expandAxesFancy=function(t,e,r){var n=this.scene,i={padded:!0,ppad:r};b.expand(n.xaxis,t,i),b.expand(n.yaxis,e,i)},D.dispose=function(){this.line.dispose(),this.errorX.dispose(),this.errorY.dispose(),this.scatter.dispose(),this.fancyScatter.dispose()},e.exports=f},{\"../../components/errorbars\":634,\"../../constants/gl2d_dashes\":702,\"../../constants/gl2d_markers\":703,\"../../constants/interactions\":706,\"../../lib\":728,\"../../lib/gl_format_color\":724,\"../../lib/str2rgbarray\":749,\"../../lib/typed_array_truncate\":754,\"../../plots/cartesian/axes\":772,\"../../plots/cartesian/axis_autotype\":773,\"../scatter/get_trace_color\":1040,\"../scatter/make_bubble_size_func\":1047,\"../scatter/subtypes\":1052,\"fast-isnumeric\":131,\"gl-error2d\":159,\"gl-line2d\":170,\"gl-scatter2d\":248,\"gl-scatter2d-sdf\":243}],1080:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../scatter/constants\"),a=t(\"../scatter/subtypes\"),o=t(\"../scatter/xy_defaults\"),s=t(\"../scatter/marker_defaults\"),l=t(\"../scatter/line_defaults\"),u=t(\"../scatter/fillcolor_defaults\"),c=t(\"../../components/errorbars/defaults\"),h=t(\"./attributes\");e.exports=function(t,e,r,f){function d(r,i){return n.coerce(t,e,h,r,i)}var p=o(t,e,f,d);if(!p)return void(e.visible=!1);d(\"text\"),d(\"mode\",p<i.PTS_LINESONLY?\"lines+markers\":\"lines\"),a.hasLines(e)&&(d(\"connectgaps\"),l(t,e,r,f,d)),a.hasMarkers(e)&&s(t,e,r,f,d),d(\"fill\"),\"none\"!==e.fill&&u(t,e,r,d),c(t,e,r,{axis:\"y\"}),c(t,e,r,{axis:\"x\",inherit:\"y\"})}},{\"../../components/errorbars/defaults\":633,\"../../lib\":728,\"../scatter/constants\":1036,\"../scatter/fillcolor_defaults\":1039,\"../scatter/line_defaults\":1043,\"../scatter/marker_defaults\":1048,\"../scatter/subtypes\":1052,\"../scatter/xy_defaults\":1054,\"./attributes\":1077}],1081:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.supplyDefaults=t(\"./defaults\"),n.colorbar=t(\"../scatter/colorbar\"),n.hoverPoints=t(\"../scatter/hover\"),n.calc=t(\"./calc\"),n.plot=t(\"./convert\"),n.selectPoints=t(\"./select\"),n.moduleType=\"trace\",n.name=\"scattergl\",n.basePlotModule=t(\"../../plots/gl2d\"),n.categories=[\"gl2d\",\"symbols\",\"errorBarsOK\",\"markerColorscale\",\"showLegend\",\"scatter-like\"],n.meta={},e.exports=n},{\"../../plots/gl2d\":808,\"../scatter/colorbar\":1034,\"../scatter/hover\":1041,\"./attributes\":1077,\"./calc\":1078,\"./convert\":1079,\"./defaults\":1080,\"./select\":1082}],1082:[function(t,e,r){\"use strict\";var n=t(\"../scatter/subtypes\");e.exports=function(t,e){var r,i,a,o,s=t.cd,l=t.xaxis,u=t.yaxis,c=[],h=s[0].trace,f=s[0]._glTrace,d=f.scene,p=!n.hasMarkers(h)&&!n.hasText(h);if(!0===h.visible&&!p){if(!1===e)for(r=0;r<s.length;r++)s[r].dim=0;else for(r=0;r<s.length;r++)i=s[r],a=l.c2p(i.x),o=u.c2p(i.y),e.contains([a,o])?(c.push({pointNumber:r,x:i.x,y:i.y}),i.dim=0):i.dim=1;return h.selection=c,f.update(h,s),d.glplot.setDirty(),c}}},{\"../scatter/subtypes\":1052}],1083:[function(t,e,r){\"use strict\";var n=t(\"../scattergeo/attributes\"),i=t(\"../scatter/attributes\"),a=t(\"../../plots/mapbox/layout_attributes\"),o=t(\"../../plots/attributes\"),s=t(\"../../components/colorbar/attributes\"),l=t(\"../../lib/extend\").extendFlat,u=t(\"../../plot_api/edit_types\").overrideAll,c=n.line,h=n.marker;e.exports=u({lon:n.lon,lat:n.lat,mode:l({},i.mode,{dflt:\"markers\"}),text:l({},i.text,{}),hovertext:l({},i.hovertext,{}),line:{color:c.color,width:c.width},connectgaps:i.connectgaps,marker:{symbol:{valType:\"string\",dflt:\"circle\",arrayOk:!0},opacity:h.opacity,size:h.size,sizeref:h.sizeref,sizemin:h.sizemin,sizemode:h.sizemode,color:h.color,colorscale:h.colorscale,cauto:h.cauto,cmax:h.cmax,cmin:h.cmin,autocolorscale:h.autocolorscale,reversescale:h.reversescale,showscale:h.showscale,colorbar:s},fill:n.fill,fillcolor:i.fillcolor,textfont:a.layers.symbol.textfont,textposition:a.layers.symbol.textposition,hoverinfo:l({},o.hoverinfo,{flags:[\"lon\",\"lat\",\"text\",\"name\"]})},\"calc\",\"nested\")},{\"../../components/colorbar/attributes\":605,\"../../lib/extend\":717,\"../../plot_api/edit_types\":756,\"../../plots/attributes\":770,\"../../plots/mapbox/layout_attributes\":827,\"../scatter/attributes\":1031,\"../scattergeo/attributes\":1069}],1084:[function(t,e,r){\"use strict\";function n(){return{geojson:v.makeBlank(),layout:{visibility:\"none\"},paint:{}}}function i(t,e){function r(t,e){return a.opacity*e*(t.dim?_:1)}function n(t,r,n,i){void 0===e[r][n]&&(e[r][n]=i),t[r]=e[r][n]}var i,a=t[0].trace,o=a.marker;g.hasColorscale(a,\"marker\")?i=g.makeColorScaleFunc(g.extractScale(o.colorscale,o.cmin,o.cmax)):Array.isArray(o.color)&&(i=p.identity);var s;b.isBubble(a)&&(s=y(a));var l;Array.isArray(o.opacity)?l=function(t){return r(t,d(t.mo)?+p.constrain(t.mo,0,1):0)}:a._hasDimmedPts&&(l=function(t){return r(t,o.opacity)});for(var u=[],c=0;c<t.length;c++){var h=t[c],m=h.lonlat;if(!f(m)){var v={};if(i){var x=h.mcc=i(h.mc);n(v,w,x,c)}s&&n(v,M,s(h.ms),c),l&&n(v,k,l(h),c),u.push({type:\"Feature\",geometry:{type:\"Point\",coordinates:m},properties:v})}}return{type:\"FeatureCollection\",features:u}}function a(t){for(var e=t[0].trace,r=e.marker||{},n=r.symbol,i=e.text,a=\"circle\"!==n?u(n):c,o=b.hasText(e)?u(i):c,s=[],l=0;l<t.length;l++){var h=t[l];f(h.lonlat)||s.push({type:\"Feature\",geometry:{type:\"Point\",coordinates:h.lonlat},properties:{symbol:a(h.mx),text:o(h.tx)}})}return{type:\"FeatureCollection\",features:s}}function o(t,e){var r,n=t.marker;if(Array.isArray(n.color)){for(var i=Object.keys(e[w]),a=[],o=0;o<i.length;o++){var s=i[o];a.push([e[w][s],s])}r={property:w,stops:a}}else r=n.color;return r}function s(t,e){var r,n=t.marker;if(Array.isArray(n.size)){for(var i=Object.keys(e[M]),a=[],o=0;o<i.length;o++){var s=i[o];a.push([e[M][s],+s])}r={property:M,stops:a.sort(h)}}else r=n.size/2;return r}function l(t,e){var r,n=t.marker;if(Array.isArray(n.opacity)||t._hasDimmedPts){for(var i=Object.keys(e[k]),a=[],o=0;o<i.length;o++){var s=i[o];a.push([e[k][s],+s])}r={property:k,stops:a.sort(h)}}else r=t.opacity*n.opacity;return r}function u(t){return Array.isArray(t)?function(t){return t}:t?function(){return t}:c}function c(){return\"\"}function h(t,e){return t[0]-e[0]}function f(t){return t[0]===m}var d=t(\"fast-isnumeric\"),p=t(\"../../lib\"),m=t(\"../../constants/numerical\").BADNUM,v=t(\"../../lib/geojson_utils\"),g=t(\"../../components/colorscale\"),y=t(\"../scatter/make_bubble_size_func\"),b=t(\"../scatter/subtypes\"),x=t(\"../../plots/mapbox/convert_text_opts\"),_=t(\"../../constants/interactions\").DESELECTDIM,w=\"circle-color\",M=\"circle-radius\",k=\"circle-opacity\";e.exports=function(t){var e=t[0].trace,r=!0===e.visible,u=\"none\"!==e.fill,c=b.hasLines(e),h=b.hasMarkers(e),f=b.hasText(e),d=h&&\"circle\"===e.marker.symbol,m=h&&\"circle\"!==e.marker.symbol,g=n(),y=n(),_=n(),A=n(),T={fill:g,line:y,circle:_,symbol:A};if(!r)return T;var S;if((u||c)&&(S=v.calcTraceToLineCoords(t)),u&&(g.geojson=v.makePolygon(S),g.layout.visibility=\"visible\",p.extendFlat(g.paint,{\"fill-color\":e.fillcolor})),c&&(y.geojson=v.makeLine(S),y.layout.visibility=\"visible\",p.extendFlat(y.paint,{\"line-width\":e.line.width,\"line-color\":e.line.color,\"line-opacity\":e.opacity})),d){var E={};E[w]={},E[M]={},E[k]={},_.geojson=i(t,E),_.layout.visibility=\"visible\",p.extendFlat(_.paint,{\"circle-opacity\":l(e,E),\"circle-color\":o(e,E),\"circle-radius\":s(e,E)})}if((m||f)&&(A.geojson=a(t),p.extendFlat(A.layout,{visibility:\"visible\",\"icon-image\":\"{symbol}-15\",\"text-field\":\"{text}\"}),m&&(p.extendFlat(A.layout,{\"icon-size\":e.marker.size/10}),p.extendFlat(A.paint,{\"icon-opacity\":e.opacity*e.marker.opacity,\"icon-color\":e.marker.color})),f)){var L=(e.marker||{}).size,C=x(e.textposition,L);p.extendFlat(A.layout,{\"text-size\":e.textfont.size,\"text-anchor\":C.anchor,\"text-offset\":C.offset}),p.extendFlat(A.paint,{\"text-color\":e.textfont.color,\"text-opacity\":e.opacity})}return T}},{\"../../components/colorscale\":618,\"../../constants/interactions\":706,\"../../constants/numerical\":707,\"../../lib\":728,\"../../lib/geojson_utils\":721,\"../../plots/mapbox/convert_text_opts\":824,\"../scatter/make_bubble_size_func\":1047,\"../scatter/subtypes\":1052,\"fast-isnumeric\":131}],1085:[function(t,e,r){\"use strict\";function n(t,e,r){var n=r(\"lon\")||[],i=r(\"lat\")||[],a=Math.min(n.length,i.length);return a<n.length&&(e.lon=n.slice(0,a)),a<i.length&&(e.lat=i.slice(0,a)),a}var i=t(\"../../lib\"),a=t(\"../scatter/subtypes\"),o=t(\"../scatter/marker_defaults\"),s=t(\"../scatter/line_defaults\"),l=t(\"../scatter/text_defaults\"),u=t(\"../scatter/fillcolor_defaults\"),c=t(\"./attributes\");e.exports=function(t,e,r,h){function f(r,n){return i.coerce(t,e,c,r,n)}if(!n(t,e,f))return void(e.visible=!1);if(f(\"text\"),f(\"hovertext\"),f(\"mode\"),a.hasLines(e)&&(s(t,e,r,h,f,{noDash:!0}),f(\"connectgaps\")),a.hasMarkers(e)){o(t,e,r,h,f,{noLine:!0});var d=e.marker;d.line={width:0},\"circle\"!==d.symbol&&(Array.isArray(d.size)&&(d.size=d.size[0]),Array.isArray(d.color)&&(d.color=d.color[0]))}a.hasText(e)&&l(t,e,h,f),f(\"fill\"),\"none\"!==e.fill&&u(t,e,r,f)}},{\"../../lib\":728,\"../scatter/fillcolor_defaults\":1039,\"../scatter/line_defaults\":1043,\"../scatter/marker_defaults\":1048,\"../scatter/subtypes\":1052,\"../scatter/text_defaults\":1053,\"./attributes\":1083}],1086:[function(t,e,r){\"use strict\";e.exports=function(t,e){return t.lon=e.lon,t.lat=e.lat,t}},{}],1087:[function(t,e,r){\"use strict\";function n(t,e){function r(t){return t+\"\\xb0\"}var n=e.hi||t.hoverinfo,i=n.split(\"+\"),a=-1!==i.indexOf(\"all\"),s=-1!==i.indexOf(\"lon\"),l=-1!==i.indexOf(\"lat\"),u=e.lonlat,c=[];return a||s&&l?c.push(\"(\"+r(u[0])+\", \"+r(u[1])+\")\"):s?c.push(\"lon: \"+r(u[0])):l&&c.push(\"lat: \"+r(u[1])),(a||-1!==i.indexOf(\"text\"))&&o(e,t,c),c.join(\"<br>\")}var i=t(\"../../components/fx\"),a=t(\"../scatter/get_trace_color\"),o=t(\"../scatter/fill_hover_text\"),s=t(\"../../constants/numerical\").BADNUM;e.exports=function(t,e,r){function o(t){var e=t.lonlat;if(e[0]===s)return 1/0;var n=Math.abs(c.c2p(e)-c.c2p([p,e[1]])),i=Math.abs(h.c2p(e)-h.c2p([e[0],r])),a=Math.max(3,t.mrc||0);return Math.max(Math.sqrt(n*n+i*i)-a,1-3/a)}var l=t.cd,u=l[0].trace,c=t.xa,h=t.ya,f=e>=0?Math.floor((e+180)/360):Math.ceil((e-180)/360),d=360*f,p=e-d;if(i.getClosest(l,o,t),!1!==t.index){var m=l[t.index],v=m.lonlat,g=[v[0]+d,v[1]],y=c.c2p(g),b=h.c2p(g),x=m.mrc||1;return t.x0=y-x,t.x1=y+x,t.y0=b-x,t.y1=b+x,t.color=a(u,m),t.extraText=n(u,m),[t]}}},{\"../../components/fx\":645,\"../../constants/numerical\":707,\"../scatter/fill_hover_text\":1038,\"../scatter/get_trace_color\":1040}],1088:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.supplyDefaults=t(\"./defaults\"),n.colorbar=t(\"../scatter/colorbar\"),n.calc=t(\"../scattergeo/calc\"),n.plot=t(\"./plot\"),n.hoverPoints=t(\"./hover\"),n.eventData=t(\"./event_data\"),n.selectPoints=t(\"./select\"),n.moduleType=\"trace\",n.name=\"scattermapbox\",n.basePlotModule=t(\"../../plots/mapbox\"),n.categories=[\"mapbox\",\"gl\",\"symbols\",\"markerColorscale\",\"showLegend\",\"scatterlike\"],n.meta={},e.exports=n},{\"../../plots/mapbox\":825,\"../scatter/colorbar\":1034,\"../scattergeo/calc\":1070,\"./attributes\":1083,\"./defaults\":1085,\"./event_data\":1086,\"./hover\":1087,\"./plot\":1089,\"./select\":1090}],1089:[function(t,e,r){\"use strict\";function n(t,e){this.mapbox=t,this.map=t.map,this.uid=e,this.idSourceFill=e+\"-source-fill\",this.idSourceLine=e+\"-source-line\",this.idSourceCircle=e+\"-source-circle\",this.idSourceSymbol=e+\"-source-symbol\",this.idLayerFill=e+\"-layer-fill\",this.idLayerLine=e+\"-layer-line\",this.idLayerCircle=e+\"-layer-circle\",this.idLayerSymbol=e+\"-layer-symbol\",this.mapbox.initSource(this.idSourceFill),this.mapbox.initSource(this.idSourceLine),this.mapbox.initSource(this.idSourceCircle),this.mapbox.initSource(this.idSourceSymbol),this.map.addLayer({id:this.idLayerFill,source:this.idSourceFill,type:\"fill\"}),this.map.addLayer({id:this.idLayerLine,source:this.idSourceLine,type:\"line\"}),this.map.addLayer({id:this.idLayerCircle,source:this.idSourceCircle,type:\"circle\"}),this.map.addLayer({id:this.idLayerSymbol,source:this.idSourceSymbol,type:\"symbol\"})}function i(t){return\"visible\"===t.layout.visibility}var a=t(\"./convert\"),o=n.prototype;o.update=function(t){var e=this.mapbox,r=a(t);e.setOptions(this.idLayerFill,\"setLayoutProperty\",r.fill.layout),e.setOptions(this.idLayerLine,\"setLayoutProperty\",r.line.layout),e.setOptions(this.idLayerCircle,\"setLayoutProperty\",r.circle.layout),e.setOptions(this.idLayerSymbol,\"setLayoutProperty\",r.symbol.layout),i(r.fill)&&(e.setSourceData(this.idSourceFill,r.fill.geojson),e.setOptions(this.idLayerFill,\"setPaintProperty\",r.fill.paint)),i(r.line)&&(e.setSourceData(this.idSourceLine,r.line.geojson),e.setOptions(this.idLayerLine,\"setPaintProperty\",r.line.paint)),i(r.circle)&&(e.setSourceData(this.idSourceCircle,r.circle.geojson),e.setOptions(this.idLayerCircle,\"setPaintProperty\",r.circle.paint)),i(r.symbol)&&(e.setSourceData(this.idSourceSymbol,r.symbol.geojson),e.setOptions(this.idLayerSymbol,\"setPaintProperty\",r.symbol.paint)),t[0].trace._glTrace=this},o.dispose=function(){var t=this.map;t.removeLayer(this.idLayerFill),t.removeLayer(this.idLayerLine),t.removeLayer(this.idLayerCircle),t.removeLayer(this.idLayerSymbol),t.removeSource(this.idSourceFill),t.removeSource(this.idSourceLine),t.removeSource(this.idSourceCircle),t.removeSource(this.idSourceSymbol)},e.exports=function(t,e){var r=e[0].trace,i=new n(t,r.uid);return i.update(e),i}},{\"./convert\":1084}],1090:[function(t,e,r){\"use strict\";var n=t(\"../scatter/subtypes\");e.exports=function(t,e){var r,i,a,o,s,l=t.cd,u=t.xaxis,c=t.yaxis,h=[],f=l[0].trace;if(f._hasDimmedPts=!1,!0===f.visible&&n.hasMarkers(f)){if(!1===e)for(s=0;s<l.length;s++)l[s].dim=0;else for(s=0;s<l.length;s++)r=l[s],i=r.lonlat,a=u.c2p(i),o=c.c2p(i),e.contains([a,o])?(f._hasDimmedPts=!0,h.push({pointNumber:s,lon:i[0],lat:i[1]}),r.dim=0):r.dim=1;return f._glTrace.update(l),h}}},{\"../scatter/subtypes\":1052}],1091:[function(t,e,r){\"use strict\";var n=t(\"../scatter/attributes\"),i=t(\"../../plots/attributes\"),a=t(\"../../components/colorscale/color_attributes\"),o=t(\"../../components/colorbar/attributes\"),s=t(\"../../components/drawing/attributes\").dash,l=t(\"../../lib/extend\").extendFlat,u=n.marker,c=n.line,h=u.line;e.exports={a:{valType:\"data_array\",editType:\"calc\"},b:{valType:\"data_array\",editType:\"calc\"},c:{valType:\"data_array\",editType:\"calc\"},sum:{valType:\"number\",dflt:0,min:0,editType:\"calc\"},mode:l({},n.mode,{dflt:\"markers\"}),text:l({},n.text,{}),hovertext:l({},n.hovertext,{}),line:{color:c.color,width:c.width,dash:s,shape:l({},c.shape,{values:[\"linear\",\"spline\"]}),smoothing:c.smoothing,editType:\"calc\"},connectgaps:n.connectgaps,cliponaxis:n.cliponaxis,fill:l({},n.fill,{values:[\"none\",\"toself\",\"tonext\"]}),fillcolor:n.fillcolor,marker:l({symbol:u.symbol,opacity:u.opacity,maxdisplayed:u.maxdisplayed,size:u.size,sizeref:u.sizeref,sizemin:u.sizemin,sizemode:u.sizemode,line:l({width:h.width,editType:\"calc\"},a(\"marker.line\")),gradient:u.gradient,editType:\"calc\"},a(\"marker\"),{showscale:u.showscale,colorbar:o}),textfont:n.textfont,textposition:n.textposition,hoverinfo:l({},i.hoverinfo,{flags:[\"a\",\"b\",\"c\",\"text\",\"name\"]}),hoveron:n.hoveron}},{\"../../components/colorbar/attributes\":605,\"../../components/colorscale/color_attributes\":611,\"../../components/drawing/attributes\":627,\"../../lib/extend\":717,\"../../plots/attributes\":770,\"../scatter/attributes\":1031}],1092:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../../plots/cartesian/axes\"),a=t(\"../scatter/subtypes\"),o=t(\"../scatter/colorscale_calc\"),s=t(\"../scatter/arrays_to_calcdata\"),l=[\"a\",\"b\",\"c\"],u={a:[\"b\",\"c\"],b:[\"a\",\"c\"],c:[\"a\",\"b\"]};e.exports=function(t,e){var r,c,h,f,d,p,m=t._fullLayout[e.subplot],v=m.sum,g=e.sum||v;for(r=0;r<l.length;r++)if(h=l[r],!e[h]){for(d=e[u[h][0]],p=e[u[h][1]],f=new Array(d.length),c=0;c<d.length;c++)f[c]=g-d[c]-p[c];e[h]=f}var y,b,x,_,w,M,k=e.a.length,A=new Array(k);for(r=0;r<k;r++)y=e.a[r],b=e.b[r],x=e.c[r],n(y)&&n(b)&&n(x)?(y=+y,b=+b,x=+x,_=v/(y+b+x),1!==_&&(y*=_,b*=_,x*=_),M=y,w=x-b,A[r]={x:w,y:M,a:y,b:b,c:x}):A[r]={x:!1,y:!1};var T,S;if(a.hasMarkers(e)&&(T=e.marker,S=T.size,Array.isArray(S))){var E={type:\"linear\"};i.setConvert(E),S=E.makeCalcdata(e.marker,\"size\"),S.length>k&&S.splice(k,S.length-k)}return o(e),s(A,e),A}},{\"../../plots/cartesian/axes\":772,\"../scatter/arrays_to_calcdata\":1030,\"../scatter/colorscale_calc\":1035,\"../scatter/subtypes\":1052,\"fast-isnumeric\":131}],1093:[function(t,e,r){\"use strict\";var n=t(\"../../lib\"),i=t(\"../scatter/constants\"),a=t(\"../scatter/subtypes\"),o=t(\"../scatter/marker_defaults\"),s=t(\"../scatter/line_defaults\"),l=t(\"../scatter/line_shape_defaults\"),u=t(\"../scatter/text_defaults\"),c=t(\"../scatter/fillcolor_defaults\"),h=t(\"./attributes\");e.exports=function(t,e,r,f){function d(r,i){return n.coerce(t,e,h,r,i)}var p,m=d(\"a\"),v=d(\"b\"),g=d(\"c\");if(m?(p=m.length,v?(p=Math.min(p,v.length),g&&(p=Math.min(p,g.length))):p=g?Math.min(p,g.length):0):v&&g&&(p=Math.min(v.length,g.length)),!p)return void(e.visible=!1);m&&p<m.length&&(e.a=m.slice(0,p)),v&&p<v.length&&(e.b=v.slice(0,p)),g&&p<g.length&&(e.c=g.slice(0,p)),d(\"sum\"),d(\"text\"),d(\"hovertext\"),d(\"mode\",p<i.PTS_LINESONLY?\"lines+markers\":\"lines\"),a.hasLines(e)&&(s(t,e,r,f,d),l(t,e,d),d(\"connectgaps\")),a.hasMarkers(e)&&o(t,e,r,f,d,{gradient:!0}),a.hasText(e)&&u(t,e,f,d);var y=[];(a.hasMarkers(e)||a.hasText(e))&&(d(\"marker.maxdisplayed\"),y.push(\"points\")),d(\"fill\"),\"none\"!==e.fill&&(c(t,e,r,d),a.hasLines(e)||l(t,e,d)),\"tonext\"!==e.fill&&\"toself\"!==e.fill||y.push(\"fills\"),d(\"hoveron\",y.join(\"+\")||\"points\"),d(\"cliponaxis\")}},{\"../../lib\":728,\"../scatter/constants\":1036,\"../scatter/fillcolor_defaults\":1039,\"../scatter/line_defaults\":1043,\"../scatter/line_shape_defaults\":1045,\"../scatter/marker_defaults\":1048,\"../scatter/subtypes\":1052,\"../scatter/text_defaults\":1053,\"./attributes\":1091}],1094:[function(t,e,r){\"use strict\";var n=t(\"../scatter/hover\"),i=t(\"../../plots/cartesian/axes\");e.exports=function(t,e,r,a){function o(t,e){y.push(t._hovertitle+\": \"+i.tickText(t,e,\"hover\").text)}var s=n(t,e,r,a);if(s&&!1!==s[0].index){var l=s[0];if(void 0===l.index){var u=1-l.y0/t.ya._length,c=t.xa._length,h=c*u/2,f=c-h;return l.x0=Math.max(Math.min(l.x0,f),h),l.x1=Math.max(Math.min(l.x1,f),h),s}var d=l.cd[l.index];l.a=d.a,l.b=d.b,l.c=d.c,l.xLabelVal=void 0,l.yLabelVal=void 0;var p=l.trace,m=p._ternary,v=d.hi||p.hoverinfo,g=v.split(\"+\"),y=[];return-1!==g.indexOf(\"all\")&&(g=[\"a\",\"b\",\"c\"]),-1!==g.indexOf(\"a\")&&o(m.aaxis,d.a),-1!==g.indexOf(\"b\")&&o(m.baxis,d.b),-1!==g.indexOf(\"c\")&&o(m.caxis,d.c),l.extraText=y.join(\"<br>\"),s}}},{\"../../plots/cartesian/axes\":772,\"../scatter/hover\":1041}],1095:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.supplyDefaults=t(\"./defaults\"),n.colorbar=t(\"../scatter/colorbar\"),n.calc=t(\"./calc\"),n.plot=t(\"./plot\"),n.style=t(\"./style\"),n.hoverPoints=t(\"./hover\"),n.selectPoints=t(\"./select\"),n.moduleType=\"trace\",n.name=\"scatterternary\",n.basePlotModule=t(\"../../plots/ternary\"),\n", "n.categories=[\"ternary\",\"symbols\",\"markerColorscale\",\"showLegend\",\"scatter-like\"],n.meta={},e.exports=n},{\"../../plots/ternary\":839,\"../scatter/colorbar\":1034,\"./attributes\":1091,\"./calc\":1092,\"./defaults\":1093,\"./hover\":1094,\"./plot\":1096,\"./select\":1097,\"./style\":1098}],1096:[function(t,e,r){\"use strict\";var n=t(\"../scatter/plot\");e.exports=function(t,e){var r=t.plotContainer;r.select(\".scatterlayer\").selectAll(\"*\").remove();for(var i={xaxis:t.xaxis,yaxis:t.yaxis,plot:r,layerClipId:t._hasClipOnAxisFalse?t.clipIdRelative:null},a=0;a<e.length;a++)e[a][0].trace._ternary=t;n(t.graphDiv,i,e)}},{\"../scatter/plot\":1049}],1097:[function(t,e,r){arguments[4][1067][0].apply(r,arguments)},{\"../scatter/select\":1050,dup:1067}],1098:[function(t,e,r){arguments[4][1068][0].apply(r,arguments)},{\"../scatter/style\":1051,dup:1068}],1099:[function(t,e,r){\"use strict\";function n(t){return{valType:\"boolean\",dflt:!1}}function i(t){return{show:{valType:\"boolean\",dflt:!1},project:{x:n(\"x\"),y:n(\"y\"),z:n(\"z\")},color:{valType:\"color\",dflt:a.defaultLine},usecolormap:{valType:\"boolean\",dflt:!1},width:{valType:\"number\",min:1,max:16,dflt:2},highlight:{valType:\"boolean\",dflt:!0},highlightcolor:{valType:\"color\",dflt:a.defaultLine},highlightwidth:{valType:\"number\",min:1,max:16,dflt:2}}}var a=t(\"../../components/color\"),o=t(\"../../components/colorscale/attributes\"),s=t(\"../../components/colorbar/attributes\"),l=t(\"../../lib/extend\").extendFlat,u=t(\"../../plot_api/edit_types\").overrideAll,c=e.exports=u({z:{valType:\"data_array\"},x:{valType:\"data_array\"},y:{valType:\"data_array\"},text:{valType:\"data_array\"},surfacecolor:{valType:\"data_array\"},cauto:o.zauto,cmin:o.zmin,cmax:o.zmax,colorscale:o.colorscale,autocolorscale:l({},o.autocolorscale,{dflt:!1}),reversescale:o.reversescale,showscale:o.showscale,colorbar:s,contours:{x:i(\"x\"),y:i(\"y\"),z:i(\"z\")},hidesurface:{valType:\"boolean\",dflt:!1},lightposition:{x:{valType:\"number\",min:-1e5,max:1e5,dflt:10},y:{valType:\"number\",min:-1e5,max:1e5,dflt:1e4},z:{valType:\"number\",min:-1e5,max:1e5,dflt:0}},lighting:{ambient:{valType:\"number\",min:0,max:1,dflt:.8},diffuse:{valType:\"number\",min:0,max:1,dflt:.8},specular:{valType:\"number\",min:0,max:2,dflt:.05},roughness:{valType:\"number\",min:0,max:1,dflt:.5},fresnel:{valType:\"number\",min:0,max:5,dflt:.2}},opacity:{valType:\"number\",min:0,max:1,dflt:1},_deprecated:{zauto:l({},o.zauto,{}),zmin:l({},o.zmin,{}),zmax:l({},o.zmax,{})}},\"calc\",\"nested\");c.x.editType=c.y.editType=c.z.editType=\"calc+clearAxisTypes\"},{\"../../components/color\":604,\"../../components/colorbar/attributes\":605,\"../../components/colorscale/attributes\":609,\"../../lib/extend\":717,\"../../plot_api/edit_types\":756}],1100:[function(t,e,r){\"use strict\";var n=t(\"../../components/colorscale/calc\");e.exports=function(t,e){e.surfacecolor?n(e,e.surfacecolor,\"\",\"c\"):n(e,e.z,\"\",\"c\")}},{\"../../components/colorscale/calc\":610}],1101:[function(t,e,r){\"use strict\";var n=t(\"fast-isnumeric\"),i=t(\"../../lib\"),a=t(\"../../plots/plots\"),o=t(\"../../components/colorscale\"),s=t(\"../../components/colorbar/draw\");e.exports=function(t,e){var r=e[0].trace,l=\"cb\"+r.uid,u=r.cmin,c=r.cmax,h=r.surfacecolor||r.z;if(n(u)||(u=i.aggNums(Math.min,null,h)),n(c)||(c=i.aggNums(Math.max,null,h)),t._fullLayout._infolayer.selectAll(\".\"+l).remove(),!r.showscale)return void a.autoMargin(t,l);var f=e[0].t.cb=s(t,l),d=o.makeColorScaleFunc(o.extractScale(r.colorscale,u,c),{noNumericCheck:!0});f.fillcolor(d).filllevels({start:u,end:c,size:(c-u)/254}).options(r.colorbar)()}},{\"../../components/colorbar/draw\":607,\"../../components/colorscale\":618,\"../../lib\":728,\"../../plots/plots\":831,\"fast-isnumeric\":131}],1102:[function(t,e,r){\"use strict\";function n(t,e,r){this.scene=t,this.uid=r,this.surface=e,this.data=null,this.showContour=[!1,!1,!1],this.dataScale=1}function i(t,e){return void 0===e&&(e=1),t.map(function(t){var r=t[0],n=p(t[1]),i=n.toRgb();return{index:r,rgb:[i.r,i.g,i.b,e]}})}function a(t){var e=t[0].rgb,r=t[t.length-1].rgb;return e[0]===r[0]&&e[1]===r[1]&&e[2]===r[2]&&e[3]===r[3]}function o(t){var e=t.shape,r=[e[0]+2,e[1]+2],n=c(new Float32Array(r[0]*r[1]),r);return d.assign(n.lo(1,1).hi(e[0],e[1]),t),d.assign(n.lo(1).hi(e[0],1),t.hi(e[0],1)),d.assign(n.lo(1,r[1]-1).hi(e[0],1),t.lo(0,e[1]-1).hi(e[0],1)),d.assign(n.lo(0,1).hi(1,e[1]),t.hi(1)),d.assign(n.lo(r[0]-1,1).hi(1,e[1]),t.lo(e[0]-1)),n.set(0,0,t.get(0,0)),n.set(0,r[1]-1,t.get(0,e[1]-1)),n.set(r[0]-1,0,t.get(e[0]-1,0)),n.set(r[0]-1,r[1]-1,t.get(e[0]-1,e[1]-1)),n}function s(t){var e=Math.max(t[0].shape[0],t[0].shape[1]);if(e<v){for(var r=v/e,n=[0|Math.floor(t[0].shape[0]*r+1),0|Math.floor(t[0].shape[1]*r+1)],i=n[0]*n[1],a=0;a<t.length;++a){var s=o(t[a]),l=c(new Float32Array(i),n);h(l,s,[r,0,0,0,r,0,0,0,1]),t[a]=l}return r}return 1}function l(t,e){var r=t.glplot.gl,i=u({gl:r}),a=new n(t,i,e.uid);return i._trace=a,a.update(e),t.glplot.add(i),a}var u=t(\"gl-surface3d\"),c=t(\"ndarray\"),h=t(\"ndarray-homography\"),f=t(\"ndarray-fill\"),d=t(\"ndarray-ops\"),p=t(\"tinycolor2\"),m=t(\"../../lib/str2rgbarray\"),v=128,g=n.prototype;g.handlePick=function(t){if(t.object===this.surface){var e=t.index=[Math.min(0|Math.round(t.data.index[0]/this.dataScale-1),this.data.z[0].length-1),Math.min(0|Math.round(t.data.index[1]/this.dataScale-1),this.data.z.length-1)],r=[0,0,0];Array.isArray(this.data.x[0])?r[0]=this.data.x[e[1]][e[0]]:r[0]=this.data.x[e[0]],Array.isArray(this.data.y[0])?r[1]=this.data.y[e[1]][e[0]]:r[1]=this.data.y[e[1]],r[2]=this.data.z[e[1]][e[0]],t.traceCoordinate=r;var n=this.scene.fullSceneLayout;t.dataCoordinate=[n.xaxis.d2l(r[0],0,this.data.xcalendar)*this.scene.dataScale[0],n.yaxis.d2l(r[1],0,this.data.ycalendar)*this.scene.dataScale[1],n.zaxis.d2l(r[2],0,this.data.zcalendar)*this.scene.dataScale[2]];var i=this.data.text;return i&&i[e[1]]&&void 0!==i[e[1]][e[0]]?t.textLabel=i[e[1]][e[0]]:t.textLabel=\"\",t.data.dataCoordinate=t.dataCoordinate.slice(),this.surface.highlight(t.data),this.scene.glplot.spikes.position=t.dataCoordinate,!0}},g.setContourLevels=function(){for(var t=[[],[],[]],e=!1,r=0;r<3;++r)this.showContour[r]&&(e=!0,t[r]=this.scene.contourLevels[r]);e&&this.surface.update({levels:t})},g.update=function(t){var e,r=this.scene,n=r.fullSceneLayout,o=this.surface,l=t.opacity,u=i(t.colorscale,l),h=t.z,d=t.x,p=t.y,v=n.xaxis,g=n.yaxis,y=n.zaxis,b=r.dataScale,x=h[0].length,_=h.length,w=[c(new Float32Array(x*_),[x,_]),c(new Float32Array(x*_),[x,_]),c(new Float32Array(x*_),[x,_])],M=w[0],k=w[1],A=r.contourLevels;this.data=t;var T=t.xcalendar,S=t.ycalendar,E=t.zcalendar;f(w[2],function(t,e){return y.d2l(h[e][t],0,E)*b[2]}),Array.isArray(d[0])?f(M,function(t,e){return v.d2l(d[e][t],0,T)*b[0]}):f(M,function(t){return v.d2l(d[t],0,T)*b[0]}),Array.isArray(p[0])?f(k,function(t,e){return g.d2l(p[e][t],0,S)*b[1]}):f(k,function(t,e){return g.d2l(p[e],0,S)*b[1]});var L={colormap:u,levels:[[],[],[]],showContour:[!0,!0,!0],showSurface:!t.hidesurface,contourProject:[[!1,!1,!1],[!1,!1,!1],[!1,!1,!1]],contourWidth:[1,1,1],contourColor:[[1,1,1,1],[1,1,1,1],[1,1,1,1]],contourTint:[1,1,1],dynamicColor:[[1,1,1,1],[1,1,1,1],[1,1,1,1]],dynamicWidth:[1,1,1],dynamicTint:[1,1,1],opacity:t.opacity};if(L.intensityBounds=[t.cmin,t.cmax],t.surfacecolor){var C=c(new Float32Array(x*_),[x,_]);f(C,function(e,r){return t.surfacecolor[r][e]}),w.push(C)}else L.intensityBounds[0]*=b[2],L.intensityBounds[1]*=b[2];this.dataScale=s(w),t.surfacecolor&&(L.intensity=w.pop());var I=[!0,!0,!0],z=[\"x\",\"y\",\"z\"];for(e=0;e<3;++e){var D=t.contours[z[e]];I[e]=D.highlight,L.showContour[e]=D.show||D.highlight,L.showContour[e]&&(L.contourProject[e]=[D.project.x,D.project.y,D.project.z],D.show?(this.showContour[e]=!0,L.levels[e]=A[e],o.highlightColor[e]=L.contourColor[e]=m(D.color),D.usecolormap?o.highlightTint[e]=L.contourTint[e]=0:o.highlightTint[e]=L.contourTint[e]=1,L.contourWidth[e]=D.width):this.showContour[e]=!1,D.highlight&&(L.dynamicColor[e]=m(D.highlightcolor),L.dynamicWidth[e]=D.highlightwidth))}a(u)&&(L.vertexColor=!0),L.coords=w,o.update(L),o.visible=t.visible,o.enableDynamic=I,o.snapToData=!0,\"lighting\"in t&&(o.ambientLight=t.lighting.ambient,o.diffuseLight=t.lighting.diffuse,o.specularLight=t.lighting.specular,o.roughness=t.lighting.roughness,o.fresnel=t.lighting.fresnel),\"lightposition\"in t&&(o.lightPosition=[t.lightposition.x,t.lightposition.y,t.lightposition.z]),l&&l<1&&(o.supportsTransparency=!0)},g.dispose=function(){this.scene.glplot.remove(this.surface),this.surface.dispose()},e.exports=l},{\"../../lib/str2rgbarray\":749,\"gl-surface3d\":266,ndarray:467,\"ndarray-fill\":457,\"ndarray-homography\":459,\"ndarray-ops\":461,tinycolor2:534}],1103:[function(t,e,r){\"use strict\";function n(t,e,r){e in t&&!(r in t)&&(t[r]=t[e])}var i=t(\"../../registry\"),a=t(\"../../lib\"),o=t(\"../../components/colorscale/defaults\"),s=t(\"./attributes\");e.exports=function(t,e,r,l){function u(r,n){return a.coerce(t,e,s,r,n)}var c,h,f=u(\"z\");if(!f)return void(e.visible=!1);var d=f[0].length,p=f.length;if(u(\"x\"),u(\"y\"),i.getComponentMethod(\"calendars\",\"handleTraceDefaults\")(t,e,[\"x\",\"y\",\"z\"],l),!Array.isArray(e.x))for(e.x=[],c=0;c<d;++c)e.x[c]=c;if(u(\"text\"),!Array.isArray(e.y))for(e.y=[],c=0;c<p;++c)e.y[c]=c;[\"lighting.ambient\",\"lighting.diffuse\",\"lighting.specular\",\"lighting.roughness\",\"lighting.fresnel\",\"lightposition.x\",\"lightposition.y\",\"lightposition.z\",\"hidesurface\",\"opacity\"].forEach(function(t){u(t)});var m=u(\"surfacecolor\");u(\"colorscale\");var v=[\"x\",\"y\",\"z\"];for(c=0;c<3;++c){var g=\"contours.\"+v[c],y=u(g+\".show\"),b=u(g+\".highlight\");if(y||b)for(h=0;h<3;++h)u(g+\".project.\"+v[h]);y&&(u(g+\".color\"),u(g+\".width\"),u(g+\".usecolormap\")),b&&(u(g+\".highlightcolor\"),u(g+\".highlightwidth\"))}m||(n(t,\"zmin\",\"cmin\"),n(t,\"zmax\",\"cmax\"),n(t,\"zauto\",\"cauto\")),o(t,e,l,u,{prefix:\"\",cLetter:\"c\"})}},{\"../../components/colorscale/defaults\":613,\"../../lib\":728,\"../../registry\":846,\"./attributes\":1099}],1104:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.supplyDefaults=t(\"./defaults\"),n.colorbar=t(\"./colorbar\"),n.calc=t(\"./calc\"),n.plot=t(\"./convert\"),n.moduleType=\"trace\",n.name=\"surface\",n.basePlotModule=t(\"../../plots/gl3d\"),n.categories=[\"gl3d\",\"2dMap\",\"noOpacity\"],n.meta={},e.exports=n},{\"../../plots/gl3d\":811,\"./attributes\":1099,\"./calc\":1100,\"./colorbar\":1101,\"./convert\":1102,\"./defaults\":1103}],1105:[function(t,e,r){\"use strict\";var n=t(\"../../components/annotations/attributes\"),i=t(\"../../lib/extend\").extendFlat,a=t(\"../../plot_api/edit_types\").overrideAll;e.exports=a({domain:{x:{valType:\"info_array\",items:[{valType:\"number\",min:0,max:1},{valType:\"number\",min:0,max:1}],dflt:[0,1]},y:{valType:\"info_array\",items:[{valType:\"number\",min:0,max:1},{valType:\"number\",min:0,max:1}],dflt:[0,1]}},columnwidth:{valType:\"number\",arrayOk:!0,dflt:null},columnorder:{valType:\"data_array\"},header:{values:{valType:\"data_array\",dflt:[]},format:{valType:\"data_array\",dflt:[]},prefix:{valType:\"string\",arrayOk:!0,dflt:null},suffix:{valType:\"string\",arrayOk:!0,dflt:null},height:{valType:\"number\",dflt:28},align:i({},n.align,{arrayOk:!0}),line:{width:{valType:\"number\",arrayOk:!0},color:{valType:\"color\",arrayOk:!0}},fill:{color:{valType:\"color\",arrayOk:!0,dflt:\"white\"}},font:{family:{valType:\"string\",arrayOk:!0,noBlank:!0,strict:!0},size:{valType:\"number\",arrayOk:!0},color:{valType:\"color\",arrayOk:!0}}},cells:{values:{valType:\"data_array\",dflt:[]},format:{valType:\"data_array\",dflt:[]},prefix:{valType:\"string\",arrayOk:!0,dflt:null},suffix:{valType:\"string\",arrayOk:!0,dflt:null},height:{valType:\"number\",dflt:20},align:i({},n.align,{arrayOk:!0}),line:{width:{valType:\"number\",arrayOk:!0},color:{valType:\"color\",arrayOk:!0}},fill:{color:{valType:\"color\",arrayOk:!0,dflt:\"white\"}},font:{family:{valType:\"string\",arrayOk:!0,noBlank:!0,strict:!0},size:{valType:\"number\",arrayOk:!0},color:{valType:\"color\",arrayOk:!0}}}},\"calc\",\"from-root\")},{\"../../components/annotations/attributes\":587,\"../../lib/extend\":717,\"../../plot_api/edit_types\":756}],1106:[function(t,e,r){\"use strict\";var n=t(\"../../plots/plots\"),i=t(\"./plot\");r.name=\"table\",r.attr=\"type\",r.plot=function(t){var e=n.getSubplotCalcData(t.calcdata,\"table\",\"table\");e.length&&i(t,e)},r.clean=function(t,e,r,n){var i=n._has&&n._has(\"table\"),a=e._has&&e._has(\"table\");i&&!a&&n._paperdiv.selectAll(\".table\").remove()}},{\"../../plots/plots\":831,\"./plot\":1113}],1107:[function(t,e,r){\"use strict\";var n=t(\"../../lib/gup\").wrap;e.exports=function(t,e){return n(e)}},{\"../../lib/gup\":725}],1108:[function(t,e,r){\"use strict\";e.exports={maxDimensionCount:60,overdrag:45,cellPad:8,latexCheck:/^\\$.*\\$$/,wrapSplitCharacter:\" \",wrapSpacer:\" \",lineBreaker:\"<br>\",uplift:5,goldenRatio:1.618,columnTitleOffset:28,columnExtentOffset:10,transitionEase:\"cubic-out\",transitionDuration:100,releaseTransitionEase:\"cubic-out\",releaseTransitionDuration:120,scrollbarWidth:8,scrollbarCaptureWidth:18,scrollbarOffset:5,scrollbarHideDelay:1e3,scrollbarHideDuration:1e3}},{}],1109:[function(t,e,r){\"use strict\";function n(t){return t.calcdata.columns.reduce(function(e,r){return r.xIndex<t.xIndex?e+r.columnWidth:e},0)}function i(t,e){return Object.keys(t).map(function(r){return l({},t[r],{auxiliaryBlocks:e})})}function a(t,e){for(var r,n={},i=0,a=0,s=o(),l=0,u=0,c=0;c<t.length;c++)r=t[c],s.rows.push({rowIndex:c,rowHeight:r}),((a+=r)>=e||c===t.length-1)&&(n[i]=s,s.key=u++,s.firstRowIndex=l,s.lastRowIndex=c,s=o(),i+=a,l=c+1,a=0);return n}function o(){return{firstRowIndex:null,lastRowIndex:null,rows:[]}}var s=t(\"./constants\"),l=t(\"../../lib/extend\").extendFlat;e.exports=function(t,e){var r=e.domain,o=Math.floor(t._fullLayout._size.w*(r.x[1]-r.x[0])),l=Math.floor(t._fullLayout._size.h*(r.y[1]-r.y[0])),u=e.header.values[0].map(function(){return e.header.height}),c=e.cells.values[0].map(function(){return e.cells.height}),h=u.reduce(function(t,e){return t+e},0),f=l-h,d=f+s.uplift,p=a(c,d),m=a(u,h),v=i(m,[]),g=i(p,v),y={},b=e._fullInput.columnorder,x=e.header.values.map(function(t,r){return Array.isArray(e.columnwidth)?e.columnwidth[Math.min(r,e.columnwidth.length-1)]:isFinite(e.columnwidth)&&null!==e.columnwidth?e.columnwidth:1}),_=x.reduce(function(t,e){return t+e},0);x=x.map(function(t){return t/_*o});var w={key:e.index,translateX:r.x[0]*t._fullLayout._size.w,translateY:t._fullLayout._size.h*(1-r.y[1]),size:t._fullLayout._size,width:o,height:l,columnOrder:b,groupHeight:l,rowBlocks:g,headerRowBlocks:v,scrollY:0,cells:e.cells,headerCells:e.header,gdColumns:e.header.values.map(function(t){return t[0]}),gdColumnsOriginalOrder:e.header.values.map(function(t){return t[0]}),prevPages:[0,0],scrollbarState:{scrollbarScrollInProgress:!1},columns:e.header.values.map(function(t,e){var r=y[t];return y[t]=(r||0)+1,{key:t+\"__\"+y[t],label:t,specIndex:e,xIndex:b[e],xScale:n,x:void 0,calcdata:void 0,columnWidth:x[e]}})};return w.columns.forEach(function(t){t.calcdata=w,t.x=n(t)}),w}},{\"../../lib/extend\":717,\"./constants\":1108}],1110:[function(t,e,r){\"use strict\";function n(t){var e=t.rowBlocks[t.page],r=e?e.rows[0].rowIndex:0;return[r,e?r+e.rows.length:0]}var i=t(\"../../lib/extend\").extendFlat;r.splitToPanels=function(t){var e=[0,0],r=i({},t,{key:\"header\",type:\"header\",page:0,prevPages:e,currentRepaint:[null,null],dragHandle:!0,values:t.calcdata.headerCells.values[t.specIndex],rowBlocks:t.calcdata.headerRowBlocks,calcdata:i({},t.calcdata,{cells:t.calcdata.headerCells})});return[i({},t,{key:\"cells1\",type:\"cells\",page:0,prevPages:e,currentRepaint:[null,null],dragHandle:!1,values:t.calcdata.cells.values[t.specIndex],rowBlocks:t.calcdata.rowBlocks}),i({},t,{key:\"cells2\",type:\"cells\",page:1,prevPages:e,currentRepaint:[null,null],dragHandle:!1,values:t.calcdata.cells.values[t.specIndex],rowBlocks:t.calcdata.rowBlocks}),r]},r.splitToCells=function(t){var e=n(t);return t.values.slice(e[0],e[1]).map(function(r,n){return{keyWithinBlock:n+(\"string\"==typeof r&&r.match(/[<$&> ]/)?\"_keybuster_\"+Math.random():\"\"),key:e[0]+n,column:t,calcdata:t.calcdata,page:t.page,rowBlocks:t.rowBlocks,value:r}})}},{\"../../lib/extend\":717}],1111:[function(t,e,r){\"use strict\";function n(t,e){for(var r=t.columnorder||[],n=t.header.values.length,i=r.slice(0,n),a=i.slice().sort(function(t,e){return t-e}),o=i.map(function(t){return a.indexOf(t)}),s=o.length;s<n;s++)o.push(s);e(\"columnorder\",o)}var i=t(\"../../lib\"),a=t(\"./attributes\");e.exports=function(t,e,r,o){function s(r,n){return i.coerce(t,e,a,r,n)}var l={family:o.font.family,size:o.font.size,color:o.font.color};s(\"domain.x\"),s(\"domain.y\"),s(\"columnwidth\"),n(t,s),s(\"cells.values\"),s(\"cells.format\"),s(\"cells.align\"),s(\"cells.prefix\"),s(\"cells.suffix\"),s(\"cells.height\"),s(\"cells.line.width\"),s(\"cells.line.color\"),s(\"cells.fill.color\"),i.coerceFont(s,\"cells.font\",l),s(\"header.values\"),s(\"header.format\"),s(\"header.align\"),s(\"header.prefix\"),s(\"header.suffix\"),s(\"header.height\"),s(\"header.line.width\"),s(\"header.line.color\"),s(\"header.fill.color\"),i.coerceFont(s,\"header.font\",l)}},{\"../../lib\":728,\"./attributes\":1105}],1112:[function(t,e,r){\"use strict\";var n={};n.attributes=t(\"./attributes\"),n.supplyDefaults=t(\"./defaults\"),n.calc=t(\"./calc\"),n.plot=t(\"./plot\"),n.moduleType=\"trace\",n.name=\"table\",n.basePlotModule=t(\"./base_plot\"),n.categories=[],n.meta={},e.exports=n},{\"./attributes\":1105,\"./base_plot\":1106,\"./calc\":1107,\"./defaults\":1111,\"./plot\":1113}],1113:[function(t,e,r){\"use strict\";function n(t,e){return\"clip\"+t._fullLayout._uid+\"_scrollAreaBottomClip_\"+e.key}function i(t,e){return\"clip\"+t._fullLayout._uid+\"_columnBoundaryClippath_\"+e.calcdata.key+\"_\"+e.specIndex}function a(t){return[].concat.apply([],t.map(function(t){return t})).map(function(t){return t.__data__})}function o(t,e,r){function n(t){var e=t.rowBlocks;return D(e,e.length-1)+P(e[e.length-1],1/0)}var i=t.selectAll(\".scrollbarKit\").data(B.repeat,B.keyFun);i.enter().append(\"g\").classed(\"scrollbarKit\",!0).style(\"shape-rendering\",\"geometricPrecision\"),i.each(function(t){var e=t.scrollbarState;e.totalHeight=n(t),e.scrollableAreaHeight=t.groupHeight-k(t),e.currentlyVisibleHeight=Math.min(e.totalHeight,e.scrollableAreaHeight),e.ratio=e.currentlyVisibleHeight/e.totalHeight,e.barLength=Math.max(e.ratio*e.currentlyVisibleHeight,j.goldenRatio*j.scrollbarWidth),e.barWiggleRoom=e.currentlyVisibleHeight-e.barLength,e.wiggleRoom=Math.max(0,e.totalHeight-e.scrollableAreaHeight),e.topY=0===e.barWiggleRoom?0:t.scrollY/e.wiggleRoom*e.barWiggleRoom,e.bottomY=e.topY+e.barLength,e.dragMultiplier=e.wiggleRoom/e.barWiggleRoom}).attr(\"transform\",function(t){return\"translate(\"+(t.width+j.scrollbarWidth/2+j.scrollbarOffset)+\" \"+k(t)+\")\"});var a=i.selectAll(\".scrollbar\").data(B.repeat,B.keyFun);a.enter().append(\"g\").classed(\"scrollbar\",!0);var o=a.selectAll(\".scrollbarSlider\").data(B.repeat,B.keyFun);o.enter().append(\"g\").classed(\"scrollbarSlider\",!0),o.attr(\"transform\",function(t){return\"translate(0 \"+t.scrollbarState.topY+\")\"});var s=o.selectAll(\".scrollbarGlyph\").data(B.repeat,B.keyFun);s.enter().append(\"line\").classed(\"scrollbarGlyph\",!0).attr(\"stroke\",\"black\").attr(\"stroke-width\",j.scrollbarWidth).attr(\"stroke-linecap\",\"round\").attr(\"y1\",j.scrollbarWidth/2),s.attr(\"y2\",function(t){return t.scrollbarState.barLength-j.scrollbarWidth/2}).attr(\"stroke-opacity\",function(t){return t.columnDragInProgress||!t.scrollbarState.barWiggleRoom||r?0:.4}),s.transition().delay(0).duration(0),s.transition().delay(j.scrollbarHideDelay).duration(j.scrollbarHideDuration).attr(\"stroke-opacity\",0);var l=a.selectAll(\".scrollbarCaptureZone\").data(B.repeat,B.keyFun);l.enter().append(\"line\").classed(\"scrollbarCaptureZone\",!0).attr(\"stroke\",\"white\").attr(\"stroke-opacity\",.01).attr(\"stroke-width\",j.scrollbarCaptureWidth).attr(\"stroke-linecap\",\"butt\").attr(\"y1\",0).on(\"mousedown\",function(r){var n=N.event.y,i=this.getBoundingClientRect(),a=r.scrollbarState,o=n-i.top,s=N.scale.linear().domain([0,a.scrollableAreaHeight]).range([0,a.totalHeight]).clamp(!0);a.topY<=o&&o<=a.bottomY||S(e,t,null,s(o-a.barLength/2))(r)}).call(N.behavior.drag().origin(function(t){return N.event.stopPropagation(),t.scrollbarState.scrollbarScrollInProgress=!0,t}).on(\"drag\",S(e,t)).on(\"dragend\",function(){})),l.attr(\"y2\",function(t){return t.scrollbarState.scrollableAreaHeight})}function s(t,e,r,n){var i=l(r),a=u(i);d(a),m(c(a));var o=f(a),s=h(o);p(s),v(s,e,n,t),z(a)}function l(t){var e=t.selectAll(\".columnCells\").data(B.repeat,B.keyFun);return e.enter().append(\"g\").classed(\"columnCells\",!0),e.exit().remove(),e}function u(t){var e=t.selectAll(\".columnCell\").data(Y.splitToCells,function(t){return t.keyWithinBlock});return e.enter().append(\"g\").classed(\"columnCell\",!0),e.exit().remove(),e}function c(t){var e=t.selectAll(\".cellRect\").data(B.repeat,function(t){return t.keyWithinBlock});return e.enter().append(\"rect\").classed(\"cellRect\",!0),e}function h(t){var e=t.selectAll(\".cellText\").data(B.repeat,function(t){return t.keyWithinBlock});return e.enter().append(\"text\").classed(\"cellText\",!0).style(\"cursor\",function(){return\"auto\"}).on(\"mousedown\",function(){N.event.stopPropagation()}),e}function f(t){var e=t.selectAll(\".cellTextHolder\").data(B.repeat,function(t){return t.keyWithinBlock});return e.enter().append(\"g\").classed(\"cellTextHolder\",!0).style(\"shape-rendering\",\"geometricPrecision\"),e}function d(t){t.each(function(t,e){var r=t.calcdata.cells.font,n=t.column.specIndex,i={size:x(r.size,n,e),color:x(r.color,n,e),family:x(r.family,n,e)};t.rowNumber=t.key,t.align=x(t.calcdata.cells.align,n,e),t.cellBorderWidth=x(t.calcdata.cells.line.width,n,e),t.font=i})}function p(t){t.each(function(t){U.font(N.select(this),t.font)})}function m(t){t.attr(\"width\",function(t){return t.column.columnWidth}).attr(\"stroke-width\",function(t){return t.cellBorderWidth}).each(function(t){var e=N.select(this);W.stroke(e,x(t.calcdata.cells.line.color,t.column.specIndex,t.rowNumber)),W.fill(e,x(t.calcdata.cells.fill.color,t.column.specIndex,t.rowNumber))})}function v(t,e,r,n){t.text(function(t){var e=t.column.specIndex,r=t.rowNumber,n=t.value,i=\"string\"==typeof n,a=i&&n.match(/<br>/i),o=!i||a;t.mayHaveMarkup=i&&n.match(/[<&>]/);var s=g(n);t.latex=s;var l,u=s?\"\":x(t.calcdata.cells.prefix,e,r)||\"\",c=s?\"\":x(t.calcdata.cells.suffix,e,r)||\"\",h=s?null:x(t.calcdata.cells.format,e,r)||null,f=u+(h?N.format(h)(t.value):t.value)+c;t.wrappingNeeded=!t.wrapped&&!o&&!s&&(l=y(f)),t.cellHeightMayIncrease=a||s||t.mayHaveMarkup||(void 0===l?y(f):l),t.needsConvertToTspans=t.mayHaveMarkup||t.wrappingNeeded||t.latex;var d;if(t.wrappingNeeded){var p=\" \"===j.wrapSplitCharacter?f.replace(/<a href=/gi,\"<a_href=\"):f,m=p.split(j.wrapSplitCharacter),v=\" \"===j.wrapSplitCharacter?m.map(function(t){return t.replace(/<a_href=/gi,\"<a href=\")}):m;t.fragments=v.map(function(t){return{text:t,width:null}}),t.fragments.push({fragment:j.wrapSpacer,width:null}),d=v.join(j.lineBreaker)+j.lineBreaker+j.wrapSpacer}else delete t.fragments,d=f;return d}).attr(\"alignment-baseline\",function(t){return t.needsConvertToTspans?null:\"hanging\"}).each(function(t){var i=this,a=N.select(i),o=t.wrappingNeeded?L:C;t.needsConvertToTspans?V.convertToTspans(a,n,o(r,i,e,n,t)):N.select(i.parentNode).attr(\"transform\",function(t){return\"translate(\"+I(t)+\" \"+j.cellPad+\")\"}).attr(\"text-anchor\",function(t){return{left:\"start\",center:\"middle\",right:\"end\"}[t.align]})})}function g(t){return\"string\"==typeof t&&t.match(j.latexCheck)}function y(t){return-1!==t.indexOf(j.wrapSplitCharacter)}function b(t,e,r){var n=e.gdColumnsOriginalOrder;e.gdColumns.sort(function(t,e){return r[n.indexOf(t)]-r[n.indexOf(e)]}),e.columnorder=r,t.emit(\"plotly_restyle\")}function x(t,e,r){if(Array.isArray(t)){var n=t[Math.min(e,t.length-1)];return Array.isArray(n)?n[Math.min(r,n.length-1)]:n}return t}function _(t,e,r){t.transition().ease(j.releaseTransitionEase).duration(j.releaseTransitionDuration).attr(\"transform\",\"translate(\"+e.x+\" \"+r+\")\")}function w(t){return\"cells\"===t.type}function M(t){return\"header\"===t.type}function k(t){return t.rowBlocks[0].auxiliaryBlocks.reduce(function(t,e){return t+P(e,1/0)},0)}function A(t,e,r){for(var n=[],i=0,a=0;a<t.length;a++){for(var o=t[a],s=o.rows,l=0,u=0;u<s.length;u++)l+=s[u].rowHeight;o.allRowsHeight=l;var c=i+l,h=e,f=h+r;h<c&&f>i&&n.push(a),i+=l}return n}function T(t,e,r){var n=a(e)[0],i=n.rowBlocks,s=n.calcdata,l=D(i,i.length),u=n.calcdata.groupHeight-k(n),c=s.scrollY=Math.max(0,Math.min(l-u,s.scrollY)),h=A(i,c,u);1===h.length&&(h[0]===i.length-1?h.unshift(h[0]-1):h.push(h[0]+1)),h[0]%2&&h.reverse(),e.each(function(t,e){t.page=h[e],t.scrollY=c}),e.attr(\"transform\",function(t){return\"translate(0 \"+(D(t.rowBlocks,t.page)-t.scrollY)+\")\"}),t&&(E(t,r,e,h,n.prevPages,n,0),E(t,r,e,h,n.prevPages,n,1),o(r,t))}function S(t,e,r,n){return function(i){var a=i.calcdata?i.calcdata:i,o=e.filter(function(t){return a.key===t.key}),s=r||a.scrollbarState.dragMultiplier;a.scrollY=void 0===n?a.scrollY+s*N.event.dy:n;var l=o.selectAll(\".yColumn\").selectAll(\".columnBlock\").filter(w);T(t,l,o)}}function E(t,e,r,n,i,a,o){n[o]!==i[o]&&(clearTimeout(a.currentRepaint[o]),a.currentRepaint[o]=setTimeout(function(){var a=r.filter(function(t,e){return e===o&&n[e]!==i[e]});s(t,e,a,a),i[o]=n[o]}))}function L(t,e,r){return function(){var n=N.select(e.parentNode);n.each(function(t){var e=t.fragments;n.selectAll(\"tspan.line\").each(function(t,r){e[r].width=this.getComputedTextLength()});var r,i,a=e[e.length-1].width,o=e.slice(0,-1),s=[],l=0,u=t.column.columnWidth-2*j.cellPad;for(t.value=\"\";o.length;)r=o.shift(),i=r.width+a,l+i>u&&(t.value+=s.join(j.wrapSpacer)+j.lineBreaker,s=[],l=0),s.push(r.text),l+=i;l&&(t.value+=s.join(j.wrapSpacer)),t.wrapped=!0}),n.selectAll(\"tspan.line\").remove(),v(n.select(\".cellText\"),r,t),N.select(e.parentNode.parentNode).call(z)}}function C(t,e,r,n,i){return function(){if(!i.settledY){var a=N.select(e.parentNode),s=R(i),l=i.key-s.firstRowIndex,u=s.rows[l].rowHeight,c=i.cellHeightMayIncrease?e.parentNode.getBoundingClientRect().height+2*j.cellPad:u,h=Math.max(c,u);h-s.rows[l].rowHeight&&(s.rows[l].rowHeight=h,t.selectAll(\".columnCell\").call(z),T(null,t.filter(w),0),o(r,n,!0)),a.attr(\"transform\",function(){var t=this,e=t.parentNode,r=e.getBoundingClientRect(),n=N.select(t.parentNode).select(\".cellRect\").node().getBoundingClientRect(),a=t.transform.baseVal.consolidate(),o=n.top-r.top+(a?a.matrix.f:j.cellPad);return\"translate(\"+I(i,N.select(t.parentNode).select(\".cellTextHolder\").node().getBoundingClientRect().width)+\" \"+o+\")\"}),i.settledY=!0}}}function I(t,e){switch(t.align){case\"left\":return j.cellPad;case\"right\":return t.column.columnWidth-(e||0)-j.cellPad;case\"center\":return(t.column.columnWidth-(e||0))/2;default:return j.cellPad}}function z(t){t.attr(\"transform\",function(t){var e=t.rowBlocks[0].auxiliaryBlocks.reduce(function(t,e){return t+P(e,1/0)},0);return\"translate(0 \"+(P(R(t),t.key)+e)+\")\"}).selectAll(\".cellRect\").attr(\"height\",function(t){return F(R(t),t.key).rowHeight})}function D(t,e){for(var r=0,n=e-1;n>=0;n--)r+=O(t[n]);return r}function P(t,e){for(var r=0,n=0;n<t.rows.length&&t.rows[n].rowIndex<e;n++)r+=t.rows[n].rowHeight;return r}function O(t){var e=t.allRowsHeight;if(void 0!==e)return e;for(var r=0,n=0;n<t.rows.length;n++)r+=t.rows[n].rowHeight;return t.allRowsHeight=r,r}function R(t){return t.rowBlocks[t.page]}function F(t,e){return t.rows[e-t.firstRowIndex]}var j=t(\"./constants\"),N=t(\"d3\"),B=t(\"../../lib/gup\"),U=t(\"../../components/drawing\"),V=t(\"../../lib/svg_text_utils\"),H=t(\"../../lib\").raiseToTop,q=t(\"../../lib\").cancelTransition,G=t(\"./data_preparation_helper\"),Y=t(\"./data_split_helpers\"),W=t(\"../../components/color\");e.exports=function(t,e){var r=t._fullLayout._paper.selectAll(\".table\").data(e.map(function(e){var r=B.unwrap(e),n=r.trace;return G(t,n)}),B.keyFun);r.exit().remove(),r.enter().append(\"g\").classed(\"table\",!0).attr(\"overflow\",\"visible\").style(\"box-sizing\",\"content-box\").style(\"position\",\"absolute\").style(\"left\",0).style(\"overflow\",\"visible\").style(\"shape-rendering\",\"crispEdges\").style(\"pointer-events\",\"all\"),r.attr(\"width\",function(t){return t.width+t.size.l+t.size.r}).attr(\"height\",function(t){return t.height+t.size.t+t.size.b}).attr(\"transform\",function(t){return\"translate(\"+t.translateX+\",\"+t.translateY+\")\"});var l=r.selectAll(\".tableControlView\").data(B.repeat,B.keyFun);l.enter().append(\"g\").classed(\"tableControlView\",!0).style(\"box-sizing\",\"content-box\").on(\"mousemove\",function(e){l.filter(function(t){return e===t}).call(o,t)}).on(\"mousewheel\",function(e){e.scrollbarState.wheeling||(e.scrollbarState.wheeling=!0,N.event.stopPropagation(),N.event.preventDefault(),S(t,l,null,e.scrollY+N.event.deltaY)(e),e.scrollbarState.wheeling=!1)}).call(o,t,!0),l.attr(\"transform\",function(t){return\"translate(\"+t.size.l+\" \"+t.size.t+\")\"});var u=l.selectAll(\".scrollBackground\").data(B.repeat,B.keyFun);u.enter().append(\"rect\").classed(\"scrollBackground\",!0).attr(\"fill\",\"none\"),u.attr(\"width\",function(t){return t.width}).attr(\"height\",function(t){return t.height}),l.each(function(e){U.setClipUrl(N.select(this),n(t,e))});var c=l.selectAll(\".yColumn\").data(function(t){return t.columns},B.keyFun);c.enter().append(\"g\").classed(\"yColumn\",!0),c.attr(\"transform\",function(t){return\"translate(\"+t.x+\" 0)\"}).call(N.behavior.drag().origin(function(e){return _(N.select(this),e,-j.uplift),H(this),e.calcdata.columnDragInProgress=!0,o(l.filter(function(t){return e.calcdata.key===t.key}),t),e}).on(\"drag\",function(t){var e=N.select(this),r=function(e){return(t===e?N.event.x:e.x)+e.columnWidth/2};t.x=Math.max(-j.overdrag,Math.min(t.calcdata.width+j.overdrag-t.columnWidth,N.event.x)),a(c).filter(function(e){return e.calcdata.key===t.calcdata.key}).sort(function(t,e){return r(t)-r(e)}).forEach(function(e,r){e.xIndex=r,e.x=t===e?e.x:e.xScale(e)}),c.filter(function(e){return t!==e}).transition().ease(j.transitionEase).duration(j.transitionDuration).attr(\"transform\",function(t){return\"translate(\"+t.x+\" 0)\"}),e.call(q).attr(\"transform\",\"translate(\"+t.x+\" -\"+j.uplift+\" )\")}).on(\"dragend\",function(e){var r=N.select(this),n=e.calcdata;e.x=e.xScale(e),e.calcdata.columnDragInProgress=!1,_(r,e,0),b(t,n,n.columns.map(function(t){return t.xIndex}))})),c.each(function(e){U.setClipUrl(N.select(this),i(t,e))});var h=c.selectAll(\".columnBlock\").data(Y.splitToPanels,B.keyFun);h.enter().append(\"g\").classed(\"columnBlock\",!0).attr(\"id\",function(t){return t.key}),h.style(\"cursor\",function(t){return t.dragHandle?\"ew-resize\":t.calcdata.scrollbarState.barWiggleRoom?\"ns-resize\":\"default\"});var f=h.filter(M),d=h.filter(w);d.call(N.behavior.drag().origin(function(t){return N.event.stopPropagation(),t}).on(\"drag\",S(t,l,-1)).on(\"dragend\",function(){})),s(t,l,f,h),s(t,l,d,h);var p=l.selectAll(\".scrollAreaClip\").data(B.repeat,B.keyFun);p.enter().append(\"clipPath\").classed(\"scrollAreaClip\",!0).attr(\"id\",function(e){return n(t,e)});var m=p.selectAll(\".scrollAreaClipRect\").data(B.repeat,B.keyFun);m.enter().append(\"rect\").classed(\"scrollAreaClipRect\",!0).attr(\"x\",-j.overdrag).attr(\"y\",-j.uplift).attr(\"fill\",\"none\"),m.attr(\"width\",function(t){return t.width+2*j.overdrag}).attr(\"height\",function(t){return t.height+j.uplift}),c.selectAll(\".columnBoundary\").data(B.repeat,B.keyFun).enter().append(\"g\").classed(\"columnBoundary\",!0);var v=c.selectAll(\".columnBoundaryClippath\").data(B.repeat,B.keyFun);v.enter().append(\"clipPath\").classed(\"columnBoundaryClippath\",!0),v.attr(\"id\",function(e){return i(t,e)});var g=v.selectAll(\".columnBoundaryRect\").data(B.repeat,B.keyFun);g.enter().append(\"rect\").classed(\"columnBoundaryRect\",!0).attr(\"fill\",\"none\"),g.attr(\"width\",function(t){return t.columnWidth}).attr(\"height\",function(t){return t.calcdata.height+j.uplift}),T(null,d,l)}},{\"../../components/color\":604,\"../../components/drawing\":628,\"../../lib\":728,\"../../lib/gup\":725,\"../../lib/svg_text_utils\":750,\"./constants\":1108,\"./data_preparation_helper\":1109,\"./data_split_helpers\":1110,d3:122}],1114:[function(t,e,r){\"use strict\";function n(t,e,r,n){if(n.enabled){for(var a=n.target,o=u.nestedProperty(e,a),s=o.get(),c=l.getDataConversions(t,e,a,s),h=i(n,c),f=new Array(r.length),d=0;d<r.length;d++)f[d]=h(s,r[d]);o.set(f)}}function i(t,e){var r=t.func,n=e.d2c,i=e.c2d;switch(r){case\"count\":return a;case\"first\":return o;case\"last\":\n", "return s;case\"sum\":return function(t,e){for(var r=0,a=0;a<e.length;a++){var o=n(t[e[a]]);o!==h&&(r+=o)}return i(r)};case\"avg\":return function(t,e){for(var r=0,a=0,o=0;o<e.length;o++){var s=n(t[e[o]]);s!==h&&(r+=s,a++)}return a?i(r/a):h};case\"min\":return function(t,e){for(var r=1/0,a=0;a<e.length;a++){var o=n(t[e[a]]);o!==h&&(r=Math.min(r,o))}return r===1/0?h:i(r)};case\"max\":return function(t,e){for(var r=-1/0,a=0;a<e.length;a++){var o=n(t[e[a]]);o!==h&&(r=Math.max(r,o))}return r===-1/0?h:i(r)};case\"median\":return function(t,e){for(var r=[],a=0;a<e.length;a++){var o=n(t[e[a]]);o!==h&&r.push(o)}if(!r.length)return h;r.sort();var s=(r.length-1)/2;return i((r[Math.floor(s)]+r[Math.ceil(s)])/2)};case\"mode\":return function(t,e){for(var r={},a=0,o=h,s=0;s<e.length;s++){var l=n(t[e[s]]);if(l!==h){var u=r[l]=(r[l]||0)+1;u>a&&(a=u,o=l)}}return a?i(o):h};case\"rms\":return function(t,e){for(var r=0,a=0,o=0;o<e.length;o++){var s=n(t[e[o]]);s!==h&&(r+=s*s,a++)}return a?i(Math.sqrt(r/a)):h};case\"stddev\":return function(e,r){var i,a=0,o=0,s=1,l=h;for(i=0;i<r.length&&l===h;i++)l=n(e[r[i]]);if(l===h)return h;for(;i<r.length;i++){var u=n(e[r[i]]);if(u!==h){var c=u-l;a+=c,o+=c*c,s++}}var f=\"sample\"===t.funcmode?s-1:s;return f?Math.sqrt((o-a*a/s)/f):0}}}function a(t,e){return e.length}function o(t,e){return t[e[0]]}function s(t,e){return t[e[e.length-1]]}var l=t(\"../plots/cartesian/axes\"),u=t(\"../lib\"),c=t(\"../plot_api/plot_schema\"),h=t(\"../constants/numerical\").BADNUM;r.moduleType=\"transform\",r.name=\"aggregate\";var f=r.attributes={enabled:{valType:\"boolean\",dflt:!0,editType:\"calc\"},groups:{valType:\"string\",strict:!0,noBlank:!0,arrayOk:!0,dflt:\"x\",editType:\"calc\"},aggregations:{_isLinkedToArray:\"aggregation\",target:{valType:\"string\",editType:\"calc\"},func:{valType:\"enumerated\",values:[\"count\",\"sum\",\"avg\",\"median\",\"mode\",\"rms\",\"stddev\",\"min\",\"max\",\"first\",\"last\"],dflt:\"first\",editType:\"calc\"},funcmode:{valType:\"enumerated\",values:[\"sample\",\"population\"],dflt:\"sample\",editType:\"calc\"},enabled:{valType:\"boolean\",dflt:!0,editType:\"calc\"},editType:\"calc\"},editType:\"calc\"},d=f.aggregations;r.supplyDefaults=function(t,e){function r(e,r){return u.coerce(t,a,f,e,r)}function n(t,e){return u.coerce(p[i],h,d,t,e)}var i,a={};if(!r(\"enabled\"))return a;var o=c.findArrayAttributes(e),s={};for(i=0;i<o.length;i++)s[o[i]]=1;var l=r(\"groups\");if(!Array.isArray(l)){if(!s[l])return void(a.enabled=!1);s[l]=0}var h,p=t.aggregations||[],m=a.aggregations=new Array(p.length);for(i=0;i<p.length;i++){h={_index:i};var v=n(\"target\"),g=n(\"func\");n(\"enabled\")&&v&&(s[v]||\"count\"===g&&void 0===s[v])?(\"stddev\"===g&&n(\"funcmode\"),s[v]=0,m[i]=h):m[i]={enabled:!1,_index:i}}for(i=0;i<o.length;i++)s[o[i]]&&m.push({target:o[i],func:d.func.dflt,enabled:!0,_index:-1});return a},r.calcTransform=function(t,e,r){if(r.enabled){var i=r.groups,a=u.getTargetArray(e,{target:i});if(a){var o,s,l,c={},h=[];for(o=0;o<a.length;o++)s=a[o],l=c[s],void 0===l?(c[s]=h.length,h.push([o])):h[l].push(o);var f=r.aggregations;for(o=0;o<f.length;o++)n(t,e,h,f[o]);\"string\"==typeof i&&n(t,e,h,{target:i,func:\"first\",enabled:!0})}}}},{\"../constants/numerical\":707,\"../lib\":728,\"../plot_api/plot_schema\":761,\"../plots/cartesian/axes\":772}],1115:[function(t,e,r){\"use strict\";function n(t,e,r){function n(t){return-1!==t.indexOf(a)}var i,a=t.operation,o=t.value,c=Array.isArray(o),h=function(r){return e(r,0,t.valuecalendar)},f=function(t){return e(t,0,r)};switch(n(s)?i=h(c?o[0]:o):n(l)?i=c?[h(o[0]),h(o[1])]:[h(o),h(o)]:n(u)&&(i=c?o.map(h):[h(o)]),a){case\"=\":return function(t){return f(t)===i};case\"!=\":return function(t){return f(t)!==i};case\"<\":return function(t){return f(t)<i};case\"<=\":return function(t){return f(t)<=i};case\">\":return function(t){return f(t)>i};case\">=\":return function(t){return f(t)>=i};case\"[]\":return function(t){var e=f(t);return e>=i[0]&&e<=i[1]};case\"()\":return function(t){var e=f(t);return e>i[0]&&e<i[1]};case\"[)\":return function(t){var e=f(t);return e>=i[0]&&e<i[1]};case\"(]\":return function(t){var e=f(t);return e>i[0]&&e<=i[1]};case\"][\":return function(t){var e=f(t);return e<=i[0]||e>=i[1]};case\")(\":return function(t){var e=f(t);return e<i[0]||e>i[1]};case\"](\":return function(t){var e=f(t);return e<=i[0]||e>i[1]};case\")[\":return function(t){var e=f(t);return e<i[0]||e>=i[1]};case\"{}\":return function(t){return-1!==i.indexOf(f(t))};case\"}{\":return function(t){return-1===i.indexOf(f(t))}}}var i=t(\"../lib\"),a=t(\"../registry\"),o=t(\"../plots/cartesian/axes\"),s=[\"=\",\"!=\",\"<\",\">=\",\">\",\"<=\"],l=[\"[]\",\"()\",\"[)\",\"(]\",\"][\",\")(\",\"](\",\")[\"],u=[\"{}\",\"}{\"];r.moduleType=\"transform\",r.name=\"filter\",r.attributes={enabled:{valType:\"boolean\",dflt:!0,editType:\"calc\"},target:{valType:\"string\",strict:!0,noBlank:!0,arrayOk:!0,dflt:\"x\",editType:\"calc\"},operation:{valType:\"enumerated\",values:[].concat(s).concat(l).concat(u),dflt:\"=\",editType:\"calc\"},value:{valType:\"any\",dflt:0,editType:\"calc\"},preservegaps:{valType:\"boolean\",dflt:!1,editType:\"calc\"},editType:\"calc\"},r.supplyDefaults=function(t){function e(e,a){return i.coerce(t,n,r.attributes,e,a)}var n={};if(e(\"enabled\")){e(\"preservegaps\"),e(\"operation\"),e(\"value\"),e(\"target\");var o=a.getComponentMethod(\"calendars\",\"handleDefaults\");o(t,n,\"valuecalendar\",null),o(t,n,\"targetcalendar\",null)}return n},r.calcTransform=function(t,e,r){function a(t,r){for(var n=0;n<h.length;n++){t(i.nestedProperty(e,h[n]),r)}}if(r.enabled){var s=i.getTargetArray(e,r);if(s){var l=r.target,u=s.length,c=r.targetcalendar,h=e._arrayAttrs;if(\"string\"==typeof l){var f=i.nestedProperty(e,l+\"calendar\").get();f&&(c=f)}var d,p,m=o.getDataToCoordFunc(t,e,l,s),v=n(r,m,c),g={};r.preservegaps?(d=function(t){g[t.astr]=i.extendDeep([],t.get()),t.set(new Array(u))},p=function(t,e){var r=g[t.astr][e];t.get()[e]=r}):(d=function(t){g[t.astr]=i.extendDeep([],t.get()),t.set([])},p=function(t,e){var r=g[t.astr][e];t.get().push(r)}),a(d);for(var y=0;y<u;y++){v(s[y])&&a(p,y)}}}}},{\"../lib\":728,\"../plots/cartesian/axes\":772,\"../registry\":846}],1116:[function(t,e,r){\"use strict\";function n(t,e){var r,n,s,l,u,c,h,f,d,p,m=e.transform,v=t.transforms[e.transformIndex].groups;if(!Array.isArray(v)||0===v.length)return[t];var g=i.filterUnique(v),y=new Array(g.length),b=v.length,x=a.findArrayAttributes(t),_=m.styles||[],w={};for(r=0;r<_.length;r++)w[_[r].target]=_[r].value;m.styles&&(p=i.keyedContainer(m,\"styles\",\"target\",\"value.name\"));var M={};for(r=0;r<g.length;r++){c=g[r],M[c]=r,h=y[r]=i.extendDeepNoArrays({},t),h._group=c;var k=null;for(p&&(k=p.get(c)),h.name=k||i.templateString(m.nameformat,{trace:t.name,group:c}),f=h.transforms,h.transforms=[],n=0;n<f.length;n++)h.transforms[n]=i.extendDeepNoArrays({},f[n]);for(n=0;n<x.length;n++)i.nestedProperty(h,x[n]).set([])}for(s=0;s<x.length;s++){for(l=x[s],n=0,d=[];n<g.length;n++)d[n]=i.nestedProperty(y[n],l).get();for(u=i.nestedProperty(t,l).get(),n=0;n<b;n++)d[M[v[n]]].push(u[n])}for(r=0;r<g.length;r++)c=g[r],h=y[r],o.clearExpandedTraceDefaultColors(h),h=i.extendDeepNoArrays(h,w[c]||{});return y}var i=t(\"../lib\"),a=t(\"../plot_api/plot_schema\"),o=t(\"../plots/plots\");r.moduleType=\"transform\",r.name=\"groupby\",r.attributes={enabled:{valType:\"boolean\",dflt:!0,editType:\"calc\"},groups:{valType:\"data_array\",dflt:[],editType:\"calc\"},nameformat:{valType:\"string\",editType:\"calc\"},styles:{_isLinkedToArray:\"style\",target:{valType:\"string\",editType:\"calc\"},value:{valType:\"any\",dflt:{},editType:\"calc\"},editType:\"calc\"},editType:\"calc\"},r.supplyDefaults=function(t,e,n){function a(e,n){return i.coerce(t,s,r.attributes,e,n)}var o,s={};if(!a(\"enabled\"))return s;a(\"groups\"),a(\"nameformat\",n._dataLength>1?\"%{group} (%{trace})\":\"%{group}\");var l=t.styles,u=s.styles=[];if(l)for(o=0;o<l.length;o++)u[o]={},i.coerce(l[o],u[o],r.attributes.styles,\"target\"),i.coerce(l[o],u[o],r.attributes.styles,\"value\");return s},r.transform=function(t,e){var r,i,a,o=[];for(i=0;i<t.length;i++)for(r=n(t[i],e),a=0;a<r.length;a++)o.push(r[a]);return o}},{\"../lib\":728,\"../plot_api/plot_schema\":761,\"../plots/plots\":831}],1117:[function(t,e,r){\"use strict\";function n(t,e,r){for(var n=e.length,a=new Array(n),o=e.slice().sort(i(t,r)),s=0;s<n;s++)for(var l=e[s],u=0;u<n;u++){var c=o[u];if(l===c){a[u]=s,o[u]=null;break}}return a}function i(t,e){switch(t.order){case\"ascending\":return function(t,r){return e(t)-e(r)};case\"descending\":return function(t,r){return e(r)-e(t)}}}var a=t(\"../lib\"),o=t(\"../plots/cartesian/axes\");r.moduleType=\"transform\",r.name=\"sort\",r.attributes={enabled:{valType:\"boolean\",dflt:!0,editType:\"calc\"},target:{valType:\"string\",strict:!0,noBlank:!0,arrayOk:!0,dflt:\"x\",editType:\"calc\"},order:{valType:\"enumerated\",values:[\"ascending\",\"descending\"],dflt:\"ascending\",editType:\"calc\"},editType:\"calc\"},r.supplyDefaults=function(t){function e(e,i){return a.coerce(t,n,r.attributes,e,i)}var n={};return e(\"enabled\")&&(e(\"target\"),e(\"order\")),n},r.calcTransform=function(t,e,r){if(r.enabled){var i=a.getTargetArray(e,r);if(i)for(var s=r.target,l=i.length,u=e._arrayAttrs,c=o.getDataToCoordFunc(t,e,s,i),h=n(r,i,c),f=0;f<u.length;f++){for(var d=a.nestedProperty(e,u[f]),p=d.get(),m=new Array(l),v=0;v<l;v++)m[v]=p[h[v]];d.set(m)}}}},{\"../lib\":728,\"../plots/cartesian/axes\":772}]},{},[20])(20)});\n", "});require(['plotly'], function(Plotly) {window.Plotly = Plotly;});}</script>" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "from gensim.models.ldamodel import LdaModel\n", "from gensim.corpora import Dictionary\n", "from gensim.parsing.preprocessing import remove_stopwords, strip_punctuation\n", "\n", "import numpy as np\n", "import pandas as pd\n", "import re\n", "\n", "import plotly.offline as py\n", "import plotly.graph_objs as go\n", "import plotly.figure_factory as ff\n", "\n", "py.init_notebook_mode()" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Train Model\n", "\n", "We'll use the [fake news dataset](https://www.kaggle.com/mrisdal/fake-news) from kaggle for this notebook. First step is to preprocess the data and train our topic model using LDA. You can refer to this [notebook](https://github.com/RaRe-Technologies/gensim/blob/develop/docs/notebooks/lda_training_tips.ipynb) also for tips and suggestions of pre-processing the text data, and how to train LDA model for getting good results." ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [], "source": [ "df_fake = pd.read_csv('fake.csv')\n", "df_fake[['title', 'text', 'language']].head()\n", "df_fake = df_fake.loc[(pd.notnull(df_fake.text)) & (df_fake.language == 'english')]\n", "\n", "# remove stopwords and punctuations\n", "def preprocess(row):\n", " return strip_punctuation(remove_stopwords(row.lower()))\n", " \n", "df_fake['text'] = df_fake['text'].apply(preprocess)\n", "\n", "# Convert data to required input format by LDA\n", "texts = []\n", "for line in df_fake.text:\n", " lowered = line.lower()\n", " words = re.findall(r'\\w+', lowered, flags=re.UNICODE|re.LOCALE)\n", " texts.append(words)\n", "# Create a dictionary representation of the documents.\n", "dictionary = Dictionary(texts)\n", "\n", "# Filter out words that occur less than 2 documents, or more than 30% of the documents.\n", "dictionary.filter_extremes(no_below=2, no_above=0.4)\n", "# Bag-of-words representation of the documents.\n", "corpus_fake = [dictionary.doc2bow(text) for text in texts]" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "scrolled": false }, "outputs": [], "source": [ "lda_fake = LdaModel(corpus=corpus_fake, id2word=dictionary, num_topics=35, passes=30, chunksize=1500, iterations=200, alpha='auto')\n", "lda_fake.save('lda_35')" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [], "source": [ "lda_fake = LdaModel.load('lda_35')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Basic Dendrogram\n", "\n", "Firstly, a distance matrix is calculated to store distance between every topic pair. These distances are then used ascendingly to cluster the topics together whose process is depicted by the dendrogram." ] }, { "cell_type": "code", "execution_count": 4, "metadata": { "scrolled": false }, "outputs": [], "source": [ "from gensim.matutils import jensen_shannon\n", "from scipy import spatial as scs\n", "from scipy.cluster import hierarchy as sch\n", "from scipy.spatial.distance import pdist, squareform\n", "\n", "\n", "# get topic distributions\n", "topic_dist = lda_fake.state.get_lambda()\n", "\n", "# get topic terms\n", "num_words = 300\n", "topic_terms = [{w for (w, _) in lda_fake.show_topic(topic, topn=num_words)} for topic in range(topic_dist.shape[0])]\n", "\n", "# no. of terms to display in annotation\n", "n_ann_terms = 10\n", "\n", "# use Jensen-Shannon distance metric in dendrogram\n", "def js_dist(X):\n", " return pdist(X, lambda u, v: jensen_shannon(u, v))\n", "\n", "# define method for distance calculation in clusters\n", "linkagefun=lambda x: sch.linkage(x, 'single')\n", "\n", "# calculate text annotations\n", "def text_annotation(topic_dist, topic_terms, n_ann_terms, linkagefun):\n", " # get dendrogram hierarchy data\n", " linkagefun = lambda x: sch.linkage(x, 'single')\n", " d = js_dist(topic_dist)\n", " Z = linkagefun(d)\n", " P = sch.dendrogram(Z, orientation=\"bottom\", no_plot=True)\n", "\n", " # store topic no.(leaves) corresponding to the x-ticks in dendrogram\n", " x_ticks = np.arange(5, len(P['leaves']) * 10 + 5, 10)\n", " x_topic = dict(zip(P['leaves'], x_ticks))\n", "\n", " # store {topic no.:topic terms}\n", " topic_vals = dict()\n", " for key, val in x_topic.items():\n", " topic_vals[val] = (topic_terms[key], topic_terms[key])\n", "\n", " text_annotations = []\n", " # loop through every trace (scatter plot) in dendrogram\n", " for trace in P['icoord']:\n", " fst_topic = topic_vals[trace[0]]\n", " scnd_topic = topic_vals[trace[2]]\n", " \n", " # annotation for two ends of current trace\n", " pos_tokens_t1 = list(fst_topic[0])[:min(len(fst_topic[0]), n_ann_terms)]\n", " neg_tokens_t1 = list(fst_topic[1])[:min(len(fst_topic[1]), n_ann_terms)]\n", "\n", " pos_tokens_t4 = list(scnd_topic[0])[:min(len(scnd_topic[0]), n_ann_terms)]\n", " neg_tokens_t4 = list(scnd_topic[1])[:min(len(scnd_topic[1]), n_ann_terms)]\n", "\n", " t1 = \"<br>\".join((\": \".join((\"+++\", str(pos_tokens_t1))), \": \".join((\"---\", str(neg_tokens_t1)))))\n", " t2 = t3 = ()\n", " t4 = \"<br>\".join((\": \".join((\"+++\", str(pos_tokens_t4))), \": \".join((\"---\", str(neg_tokens_t4)))))\n", "\n", " # show topic terms in leaves\n", " if trace[0] in x_ticks:\n", " t1 = str(list(topic_vals[trace[0]][0])[:n_ann_terms])\n", " if trace[2] in x_ticks:\n", " t4 = str(list(topic_vals[trace[2]][0])[:n_ann_terms])\n", "\n", " text_annotations.append([t1, t2, t3, t4])\n", "\n", " # calculate intersecting/diff for upper level\n", " intersecting = fst_topic[0] & scnd_topic[0]\n", " different = fst_topic[0].symmetric_difference(scnd_topic[0])\n", "\n", " center = (trace[0] + trace[2]) / 2\n", " topic_vals[center] = (intersecting, different)\n", "\n", " # remove trace value after it is annotated\n", " topic_vals.pop(trace[0], None)\n", " topic_vals.pop(trace[2], None) \n", " \n", " return text_annotations" ] }, { "cell_type": "code", "execution_count": 5, "metadata": { "scrolled": false }, "outputs": [ { "data": { "application/vnd.plotly.v1+json": { "data": [ { "hoverinfo": "text", "marker": { "color": "rgb(0,116,217)" }, "mode": "lines", "text": [ "[u'coup', u'peace', u'shot', u'citizenry', u'maduro', u'teams', u'actions', u'cross', u'seen', u'unrest']", [], [], "[u'monte', u'sprayed', u'shot', u'they', u'corps', u'september', u'sound', u'jurisdiction', u'resistance', u'sites']" ], "type": "scatter", "x": [ 85, 85, 95, 95 ], "xaxis": "x", "y": [ 0, 0.5239915229525761, 0.5239915229525761, 0 ], "yaxis": "y" }, { "hoverinfo": "text", "marker": { "color": "rgb(0,116,217)" }, "mode": "lines", "text": [ "[u'atmosphere', u'stores', u'help', u'caused', u'magnetic', u'major', u'produce', u'years', u'product', u'baby']", [], [], "[u'all', u'influenza', u'help', u'cdc', u'biological', u'caused', u'child', u'results', u'dose', u'brain']" ], "type": "scatter", "x": [ 145, 145, 155, 155 ], "xaxis": "x", "y": [ 0, 0.4952833500135926, 0.4952833500135926, 0 ], "yaxis": "y" }, { "hoverinfo": "text", "marker": { "color": "rgb(0,116,217)" }, "mode": "lines", "text": [ "[u'passed', u'rifles', u'tactics', u'office', u'violation', u'issued', u'obtain', u'actions', u'years', u'sources']", [], [], "[u'affair', u'thomas', u'responsible', u'shot', u'office', u'sentence', u'september', u'issued', u'agreed', u'child']" ], "type": "scatter", "x": [ 205, 205, 215, 215 ], "xaxis": "x", "y": [ 0, 0.4842267300317968, 0.4842267300317968, 0 ], "yaxis": "y" }, { "hoverinfo": "text", "marker": { "color": "rgb(61,153,112)" }, "mode": "lines", "text": [ "[u'rating', u'office', u'photo', u'over', u'despite', u'results', u'years', u'course', u'protest', u'radio']", [], [], "[u'saying', u'decide', u'predicted', u'fox', u'results', u'night', u'including', u'democrats', u'committee', u'mcmullin']" ], "type": "scatter", "x": [ 245, 245, 255, 255 ], "xaxis": "x", "y": [ 0, 0.4091655719588642, 0.4091655719588642, 0 ], "yaxis": "y" }, { "hoverinfo": "text", "marker": { "color": "rgb(61,153,112)" }, "mode": "lines", "text": [ "[u'saying', u'breaking', u'office', u'watergate', u'mishandling', u'laptop', u'probe', u'actions', u'discovered', u'sources']", [], [], "+++: [u'results', u'paul', u'supporter', u'candidate', u'actually', u'barack', u'going', u'8', u'far', u'possible']<br>---: [u'saying', u'rating', u'month', u'unrest', u'protest', u'radio', u'democrats', u'mcmullin', u'follow', u'battleground']" ], "type": "scatter", "x": [ 235, 235, 250, 250 ], "xaxis": "x", "y": [ 0, 0.41213545918752137, 0.41213545918752137, 0.4091655719588642 ], "yaxis": "y" }, { "hoverinfo": "text", "marker": { "color": "rgb(255,65,54)" }, "mode": "lines", "text": [ "[u'operations', u'called', u'bomb', u'0', u'chinese', u'september', u'photo', u'agreed', u'global', u'spain']", [], [], "[u'coup', u'all', u'sergey', u'bomb', u'saying', u'photo', u'supported', u'repeatedly', u'soon', u'actions']" ], "type": "scatter", "x": [ 285, 285, 295, 295 ], "xaxis": "x", "y": [ 0, 0.41280889631027384, 0.41280889631027384, 0 ], "yaxis": "y" }, { "hoverinfo": "text", "marker": { "color": "rgb(255,65,54)" }, "mode": "lines", "text": [ "[u'operations', u'saying', u'peace', u'rebels', u'ambassador', u'september', u'settlements', u'years', u'held', u'fighters']", [], [], "+++: [u'bomb', u'photo', u'global', u'soon', u'years', u'including', u'cold', u'issues', u'ground', u'based']<br>---: [u'saying', u'all', u'chinese', u'enemy', u'agreed', u'supported', u'month', u'sergey', u'planning', u'asia']" ], "type": "scatter", "x": [ 275, 275, 290, 290 ], "xaxis": "x", "y": [ 0, 0.4337091828241252, 0.4337091828241252, 0.41280889631027384 ], "yaxis": "y" }, { "hoverinfo": "text", "marker": { "color": "rgb(35,205,205)" }, "mode": "lines", "text": [ "[u'greater', u'limited', u'help', u'lack', u'focus', u'actions', u'naturally', u'bring', u'books', u'higher']", [], [], "[u'called', u'all', u'enemy', u'hands', u'global', u'domestic', u'resistance', u'rest', u'years', u'course']" ], "type": "scatter", "x": [ 305, 305, 315, 315 ], "xaxis": "x", "y": [ 0, 0.44592943928705275, 0.44592943928705275, 0 ], "yaxis": "y" }, { "hoverinfo": "text", "marker": { "color": "rgb(0,116,217)" }, "mode": "lines", "text": [ "+++: [u'major', u'force', u'years', u'likely', u'officials', u'anti', u'iran', u'armed', u'ground', u'united']<br>---: [u'saying', u'bomb', u'rebels', u'ali', u'global', u'tehran', u'qaeda', u'mosul', u'battle', u'soldiers']", [], [], "+++: [u'and', u'control', u'major', u'want', u'point', u'powerful', u'community', u'past', u'society', u'simply']<br>---: [u'limited', u'all', u'consider', u'global', u'resistance', u'bring', u'emotions', u'follow', u'meditation', u'research']" ], "type": "scatter", "x": [ 282.5, 282.5, 310, 310 ], "xaxis": "x", "y": [ 0.4337091828241252, 0.46861372445664873, 0.46861372445664873, 0.44592943928705275 ], "yaxis": "y" }, { "hoverinfo": "text", "marker": { "color": "rgb(0,116,217)" }, "mode": "lines", "text": [ "[u'operations', u'all', u'soros', u'office', u'money', u'meetings', u'executive', u'insider', u'years', u'founded']", [], [], "+++: [u'major', u'us']<br>---: [u'control', u'point', u'powerful', u'community', u'years', u'course', u'simply', u'human', u'fear', u'armed']" ], "type": "scatter", "x": [ 265, 265, 296.25, 296.25 ], "xaxis": "x", "y": [ 0, 0.4806143422338316, 0.4806143422338316, 0.46861372445664873 ], "yaxis": "y" }, { "hoverinfo": "text", "marker": { "color": "rgb(0,116,217)" }, "mode": "lines", "text": [ "+++: [u'says', u'campaign', u'point', u'house', u'in', u'washington', u'likely', u'street', u'election', u'year']<br>---: [u'saying', u'watergate', u'mishandling', u'probe', u'results', u'discovered', u'obstruction', u'manager', u'democrats', u'aides']", [], [], "+++: []<br>---: [u'operations', u'all', u'responsible', u'office', u'money', u'meetings', u'executive', u'raised', u'years', u'founded']" ], "type": "scatter", "x": [ 242.5, 242.5, 280.625, 280.625 ], "xaxis": "x", "y": [ 0.41213545918752137, 0.4847681088638261, 0.4847681088638261, 0.4806143422338316 ], "yaxis": "y" }, { "hoverinfo": "text", "marker": { "color": "rgb(0,116,217)" }, "mode": "lines", "text": [ "[u'ambassador', u'agency', u'mexican', u'help', u'office', u'diplomacy', u'money', u'executive', u'years', u'2008']", [], [], "+++: []<br>---: [u'says', u'nominee', u'point', u'house', u'in', u'washington', u'likely', u'street', u'election', u'year']" ], "type": "scatter", "x": [ 225, 225, 261.5625, 261.5625 ], "xaxis": "x", "y": [ 0, 0.4848588855404342, 0.4848588855404342, 0.4847681088638261 ], "yaxis": "y" }, { "hoverinfo": "text", "marker": { "color": "rgb(0,116,217)" }, "mode": "lines", "text": [ "+++: [u'and', u'attorney', u'ordered', u'office', u'judge', u'issued', u'national', u'crimes', u'authorities', u'actions']<br>---: [u'affair', u'thomas', u'shot', u'violation', u'agreed', u'allegations', u'month', u'discovered', u'rifles', u'gang']", [], [], "+++: []<br>---: [u'ambassador', u'code', u'mexican', u'help', u'office', u'diplomacy', u'money', u'executive', u'years', u'supreme']" ], "type": "scatter", "x": [ 210, 210, 243.28125, 243.28125 ], "xaxis": "x", "y": [ 0.4842267300317968, 0.49484305255926003, 0.49484305255926003, 0.4848588855404342 ], "yaxis": "y" }, { "hoverinfo": "text", "marker": { "color": "rgb(0,116,217)" }, "mode": "lines", "text": [ "[u'saying', u'all', u'help', u'money', u'hands', u'soon', u'rest', u'years', u'course', u'looks']", [], [], "+++: []<br>---: [u'and', u'asked', u'attorney', u'ordered', u'family', u'judge', u'issued', u'national', u'crimes', u'actions']" ], "type": "scatter", "x": [ 195, 195, 226.640625, 226.640625 ], "xaxis": "x", "y": [ 0, 0.500953938948598, 0.500953938948598, 0.49484305255926003 ], "yaxis": "y" }, { "hoverinfo": "text", "marker": { "color": "rgb(0,116,217)" }, "mode": "lines", "text": [ "[u'sector', u'bull', u'gold', u'unemployment', u'money', u'global', u'dollar', u'trade', u'paper', u'businesses']", [], [], "+++: []<br>---: [u'saying', u'all', u'help', u'money', u'able', u'soon', u'rest', u'years', u'course', u'looks']" ], "type": "scatter", "x": [ 185, 185, 210.8203125, 210.8203125 ], "xaxis": "x", "y": [ 0, 0.5090095510485566, 0.5090095510485566, 0.500953938948598 ], "yaxis": "y" }, { "hoverinfo": "text", "marker": { "color": "rgb(0,116,217)" }, "mode": "lines", "text": [ "[u'gdp', u'proceeds', u'september', u'42', u'global', u'wednesday', u'results', u'years', u'leads', u'batteries']", [], [], "+++: []<br>---: [u'sector', u'manufacturing', u'chinese', u'unemployment', u'money', u'global', u'dollar', u'trade', u'paper', u'businesses']" ], "type": "scatter", "x": [ 175, 175, 197.91015625, 197.91015625 ], "xaxis": "x", "y": [ 0, 0.5114472916005423, 0.5114472916005423, 0.5090095510485566 ], "yaxis": "y" }, { "hoverinfo": "text", "marker": { "color": "rgb(0,116,217)" }, "mode": "lines", "text": [ "[u'saying', u'neighborhood', u'answering', u'shot', u'help', u'photo', u'celebrities', u'years', u'seen', u'performance']", [], [], "+++: []<br>---: [u'gdp', u'september', u'percent', u'global', u'43', u'results', u'years', u'leads', u'batteries', u'including']" ], "type": "scatter", "x": [ 165, 165, 186.455078125, 186.455078125 ], "xaxis": "x", "y": [ 0, 0.5123688748079201, 0.5123688748079201, 0.5114472916005423 ], "yaxis": "y" }, { "hoverinfo": "text", "marker": { "color": "rgb(0,116,217)" }, "mode": "lines", "text": [ "+++: [u'heavy', u'available', u'associated', u'help', u'cancer', u'caused', u'reduce', u'plant', u'evidence', u'high']<br>---: [u'wild', u'all', u'influenza', u'sci', u'phenomenon', u'cdc', u'magnetic', u'results', u'produce', u'sleep']", [], [], "+++: []<br>---: [u'saying', u'breaking', u'shot', u'help', u'photo', u'child', u'celebrities', u'years', u'costume', u'victim']" ], "type": "scatter", "x": [ 150, 150, 175.7275390625, 175.7275390625 ], "xaxis": "x", "y": [ 0.4952833500135926, 0.527410482799219, 0.527410482799219, 0.5123688748079201 ], "yaxis": "y" }, { "hoverinfo": "text", "marker": { "color": "rgb(0,116,217)" }, "mode": "lines", "text": [ "[u'stones', u'atmosphere', u'concept', u'evidence', u'consciousness', u'being', u'global', u'souls', u'years', u'held']", [], [], "+++: []<br>---: [u'heavy', u'body', u'associated', u'help', u'cancer', u'caused', u'reduce', u'product', u'evidence', u'high']" ], "type": "scatter", "x": [ 135, 135, 162.86376953125, 162.86376953125 ], "xaxis": "x", "y": [ 0, 0.5298682068894442, 0.5298682068894442, 0.527410482799219 ], "yaxis": "y" }, { "hoverinfo": "text", "marker": { "color": "rgb(0,116,217)" }, "mode": "lines", "text": [ "[u'forced', u'played', u'chinese', u'german', u'2005', u'supported', u'rest', u'years', u'course', u'cambridge']", [], [], "+++: []<br>---: [u'stones', u'called', u'atmosphere', u'concept', u'pope', u'being', u'global', u'souls', u'years', u'held']" ], "type": "scatter", "x": [ 125, 125, 148.931884765625, 148.931884765625 ], "xaxis": "x", "y": [ 0, 0.5358130859045249, 0.5358130859045249, 0.5298682068894442 ], "yaxis": "y" }, { "hoverinfo": "text", "marker": { "color": "rgb(0,116,217)" }, "mode": "lines", "text": [ "[u'jihadist', u'acts', u'particularly', u'cheese', u'money', u'half', u'month', u'sources', u'embassy', u'including']", [], [], "+++: []<br>---: [u'called', u'chinese', u'german', u'supported', u'rest', u'years', u'course', u'aoun', u'london', u'hungary']" ], "type": "scatter", "x": [ 115, 115, 136.9659423828125, 136.9659423828125 ], "xaxis": "x", "y": [ 0, 0.5368743566366792, 0.5368743566366792, 0.5358130859045249 ], "yaxis": "y" }, { "hoverinfo": "text", "marker": { "color": "rgb(0,116,217)" }, "mode": "lines", "text": [ "[u'watergate', u'thomas', u'impression', u'kkk', u'stephens', u'show', u'rapture', u'photo', u'for', u'sexist']", [], [], "+++: []<br>---: [u'called', u'responsible', u'particularly', u'libyan', u'sales', u'money', u'supported', u'terrorist', u'month', u'sources']" ], "type": "scatter", "x": [ 105, 105, 125.98297119140625, 125.98297119140625 ], "xaxis": "x", "y": [ 0, 0.5405631185995701, 0.5405631185995701, 0.5368743566366792 ], "yaxis": "y" }, { "hoverinfo": "text", "marker": { "color": "rgb(0,116,217)" }, "mode": "lines", "text": [ "+++: [u'the', u'set', u'shot', u'national', u'activists', u'site', u'officers', u'authorities', u'fires', u'seen']<br>---: [u'monte', u'homes', u'corps', u'hurricane', u'jurisdiction', u'resistance', u'eminent', u'unrest', u'farms', u'mile']", [], [], "+++: []<br>---: [u'watergate', u'thomas', u'kkk', u'stephens', u'impression', u'rapture', u'photo', u'morons', u'sexist', u'years']" ], "type": "scatter", "x": [ 90, 90, 115.49148559570312, 115.49148559570312 ], "xaxis": "x", "y": [ 0.5239915229525761, 0.5407990711594035, 0.5407990711594035, 0.5405631185995701 ], "yaxis": "y" }, { "hoverinfo": "text", "marker": { "color": "rgb(0,116,217)" }, "mode": "lines", "text": [ "[u'credible', u'arnaldo', u'code', u'help', u'founder', u'exclusive', u'series', u'global', u'design', u'gavin']", [], [], "[u'saying', u'answers', u'liar', u'opinions', u'photo', u'reporters', u'networks', u'sources', u'paper', u'scott']" ], "type": "scatter", "x": [ 335, 335, 345, 345 ], "xaxis": "x", "y": [ 0, 0.5241246859656508, 0.5241246859656508, 0 ], "yaxis": "y" }, { "hoverinfo": "text", "marker": { "color": "rgb(0,116,217)" }, "mode": "lines", "text": [ "[u'longer', u'nc', u'office', u'switched', u'september', u'pros', u'copy', u'neilson', u'results', u'technicians']", [], [], "+++: [u'comment', u'google', u'videos', u'appeared', u'series', u'twitter', u'share', u'subscribe', u'video', u'article']<br>---: [u'saying', u'code', u'liar', u'forget', u'founder', u'exclusive', u'dear', u'global', u'danney', u'solutions']" ], "type": "scatter", "x": [ 325, 325, 340, 340 ], "xaxis": "x", "y": [ 0, 0.5477582438343798, 0.5477582438343798, 0.5241246859656508 ], "yaxis": "y" }, { "hoverinfo": "text", "marker": { "color": "rgb(0,116,217)" }, "mode": "lines", "text": [ "+++: []<br>---: [u'set', u'shot', u'national', u'activists', u'site', u'officers', u'communities', u'fires', u'seen', u'protests']", [], [], "+++: [u'comment', u'use', u'mainstream', u'media', u'comments', u'1', u'2', u'radio', u'editor', u'news']<br>---: [u'45', u'office', u'switched', u'september', u'electoral', u'neilson', u'results', u'technicians', u'years', u'held']" ], "type": "scatter", "x": [ 102.74574279785156, 102.74574279785156, 332.5, 332.5 ], "xaxis": "x", "y": [ 0.5407990711594035, 0.555896060550066, 0.555896060550066, 0.5477582438343798 ], "yaxis": "y" }, { "hoverinfo": "text", "marker": { "color": "rgb(0,116,217)" }, "mode": "lines", "text": [ "[u'planetary', u'code', u'closely', u'producer', u'photo', u'astronomical', u'queen', u'confirm', u'years', u'discovered']", [], [], "+++: []<br>---: [u'comment', u'use', u'mainstream', u'media', u'comments', u'1', u'2', u'radio', u'editor', u'article']" ], "type": "scatter", "x": [ 75, 75, 217.62287139892578, 217.62287139892578 ], "xaxis": "x", "y": [ 0, 0.5561728330392073, 0.5561728330392073, 0.555896060550066 ], "yaxis": "y" }, { "hoverinfo": "text", "marker": { "color": "rgb(0,116,217)" }, "mode": "lines", "text": [ "[u'coup', u'checkpoints', u'wakingtimes', u'paragraph', u'jonsdottir', u'knowingly', u'ended', u'lands', u'including', u'parks']", [], [], "+++: []<br>---: [u'science', u'planetary', u'code', u'closely', u'producer', u'photo', u'astronomical', u'queen', u'soon', u'years']" ], "type": "scatter", "x": [ 65, 65, 146.3114356994629, 146.3114356994629 ], "xaxis": "x", "y": [ 0, 0.5564856128519003, 0.5564856128519003, 0.5561728330392073 ], "yaxis": "y" }, { "hoverinfo": "text", "marker": { "color": "rgb(0,116,217)" }, "mode": "lines", "text": [ "[u'morsi', u'phenomenon', u'founder', u'caused', u'labeled', u'mission', u'actress', u'years', u'alien', u'report']", [], [], "+++: []<br>---: [u'coup', u'checkpoints', u'wakingtimes', u'weapons', u'jonsdottir', u'ended', u'keystone', u'including', u'1962', u'nevada']" ], "type": "scatter", "x": [ 55, 55, 105.65571784973145, 105.65571784973145 ], "xaxis": "x", "y": [ 0, 0.5704763562651556, 0.5704763562651556, 0.5564856128519003 ], "yaxis": "y" }, { "hoverinfo": "text", "marker": { "color": "rgb(0,116,217)" }, "mode": "lines", "text": [ "[u'1st', u'now', u'jason', u'help', u'ron', u'demand', u'caused', u'executive', u'dollar', u'damage']", [], [], "+++: []<br>---: [u'phenomenon', u'founder', u'caused', u'mission', u'actress', u'years', u'alien', u'report', u'bright', u'swedish']" ], "type": "scatter", "x": [ 45, 45, 80.32785892486572, 80.32785892486572 ], "xaxis": "x", "y": [ 0, 0.5726519085057408, 0.5726519085057408, 0.5704763562651556 ], "yaxis": "y" }, { "hoverinfo": "text", "marker": { "color": "rgb(0,116,217)" }, "mode": "lines", "text": [ "[u'represent', u'thomas', u'words', u'founder', u'produces', u'rev', u'authors', u'unseen', u'infant', u'rest']", [], [], "+++: []<br>---: [u'now', u'breaking', u'jason', u'help', u'ron', u'caused', u'executive', u'dollar', u'proposes', u'executes']" ], "type": "scatter", "x": [ 35, 35, 62.66392946243286, 62.66392946243286 ], "xaxis": "x", "y": [ 0, 0.5985741306483363, 0.5985741306483363, 0.5726519085057408 ], "yaxis": "y" }, { "hoverinfo": "text", "marker": { "color": "rgb(0,116,217)" }, "mode": "lines", "text": [ "[u'perspective', u'imploding', u'colleges', u'help', u'founder', u'text', u'rob', u'results', u'bookmark', u'professors']", [], [], "+++: []<br>---: [u'represent', u'thomas', u'birth', u'founder', u'produces', u'child', u'unseen', u'infant', u'rest', u'years']" ], "type": "scatter", "x": [ 25, 25, 48.83196473121643, 48.83196473121643 ], "xaxis": "x", "y": [ 0, 0.6044867266886239, 0.6044867266886239, 0.5985741306483363 ], "yaxis": "y" }, { "hoverinfo": "text", "marker": { "color": "rgb(0,116,217)" }, "mode": "lines", "text": [ "[u'rtd', u'thomas', u'shot', u'pti', u'sergei', u'ndtv', u'caused', u'kejriwal', u'gun', u'laura']", [], [], "+++: []<br>---: [u'imploding', u'colleges', u'help', u'founder', u'text', u'rob', u'results', u'professors', u'facilities', u'spaces']" ], "type": "scatter", "x": [ 15, 15, 36.915982365608215, 36.915982365608215 ], "xaxis": "x", "y": [ 0, 0.6092748581752581, 0.6092748581752581, 0.6044867266886239 ], "yaxis": "y" }, { "hoverinfo": "text", "marker": { "color": "rgb(0,116,217)" }, "mode": "lines", "text": [ "[u'urinary', u'fungal', u'molecule', u'facial', u'tincture', u'ginseng', u'sciencedaily', u'zen', u'powders', u'narcotic']", [], [], "+++: []<br>---: [u'rtd', u'thomas', u'shot', u'pti', u'sergei', u'ndtv', u'caused', u'kejriwal', u'officers', u'laura']" ], "type": "scatter", "x": [ 5, 5, 25.957991182804108, 25.957991182804108 ], "xaxis": "x", "y": [ 0, 0.6439303839488679, 0.6439303839488679, 0.6092748581752581 ], "yaxis": "y" } ], "layout": { "autosize": false, "height": 600, "hovermode": "closest", "showlegend": false, "width": 1000, "xaxis": { "mirror": "allticks", "rangemode": "tozero", "showgrid": false, "showline": true, "showticklabels": true, "tickmode": "array", "ticks": "outside", "ticktext": [ 5, 12, 18, 35, 28, 25, 16, 30, 6, 8, 17, 27, 9, 2, 14, 20, 34, 10, 29, 3, 19, 32, 24, 13, 15, 26, 11, 33, 1, 23, 22, 31, 21, 4, 7 ], "tickvals": [ 5, 15, 25, 35, 45, 55, 65, 75, 85, 95, 105, 115, 125, 135, 145, 155, 165, 175, 185, 195, 205, 215, 225, 235, 245, 255, 265, 275, 285, 295, 305, 315, 325, 335, 345 ], "type": "linear", "zeroline": false }, "yaxis": { "mirror": "allticks", "rangemode": "tozero", "showgrid": false, "showline": true, "showticklabels": true, "ticks": "outside", "type": "linear", "zeroline": false } } }, "text/html": [ "<div id=\"0c997e44-d3bb-43b0-9182-c18c902a25d9\" style=\"height: 600px; width: 1000px;\" class=\"plotly-graph-div\"></div><script type=\"text/javascript\">require([\"plotly\"], function(Plotly) { window.PLOTLYENV=window.PLOTLYENV || {};window.PLOTLYENV.BASE_URL=\"https://plot.ly\";Plotly.newPlot(\"0c997e44-d3bb-43b0-9182-c18c902a25d9\", [{\"yaxis\": \"y\", \"text\": [\"[u'coup', u'peace', u'shot', u'citizenry', u'maduro', u'teams', u'actions', u'cross', u'seen', u'unrest']\", [], [], \"[u'monte', u'sprayed', u'shot', u'they', u'corps', u'september', u'sound', u'jurisdiction', u'resistance', u'sites']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.5239915229525761, 0.5239915229525761, 0.0], \"x\": [85.0, 85.0, 95.0, 95.0], \"type\": \"scatter\"}, {\"yaxis\": \"y\", \"text\": [\"[u'atmosphere', u'stores', u'help', u'caused', u'magnetic', u'major', u'produce', u'years', u'product', u'baby']\", [], [], \"[u'all', u'influenza', u'help', u'cdc', u'biological', u'caused', u'child', u'results', u'dose', u'brain']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.4952833500135926, 0.4952833500135926, 0.0], \"x\": [145.0, 145.0, 155.0, 155.0], \"type\": \"scatter\"}, {\"yaxis\": \"y\", \"text\": [\"[u'passed', u'rifles', u'tactics', u'office', u'violation', u'issued', u'obtain', u'actions', u'years', u'sources']\", [], [], \"[u'affair', u'thomas', u'responsible', u'shot', u'office', u'sentence', u'september', u'issued', u'agreed', u'child']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.4842267300317968, 0.4842267300317968, 0.0], \"x\": [205.0, 205.0, 215.0, 215.0], \"type\": \"scatter\"}, {\"yaxis\": \"y\", \"text\": [\"[u'rating', u'office', u'photo', u'over', u'despite', u'results', u'years', u'course', u'protest', u'radio']\", [], [], \"[u'saying', u'decide', u'predicted', u'fox', u'results', u'night', u'including', u'democrats', u'committee', u'mcmullin']\"], \"marker\": {\"color\": \"rgb(61,153,112)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.4091655719588642, 0.4091655719588642, 0.0], \"x\": [245.0, 245.0, 255.0, 255.0], \"type\": \"scatter\"}, {\"yaxis\": \"y\", \"text\": [\"[u'saying', u'breaking', u'office', u'watergate', u'mishandling', u'laptop', u'probe', u'actions', u'discovered', u'sources']\", [], [], \"+++: [u'results', u'paul', u'supporter', u'candidate', u'actually', u'barack', u'going', u'8', u'far', u'possible']<br>---: [u'saying', u'rating', u'month', u'unrest', u'protest', u'radio', u'democrats', u'mcmullin', u'follow', u'battleground']\"], \"marker\": {\"color\": \"rgb(61,153,112)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.41213545918752137, 0.41213545918752137, 0.4091655719588642], \"x\": [235.0, 235.0, 250.0, 250.0], \"type\": \"scatter\"}, {\"yaxis\": \"y\", \"text\": [\"[u'operations', u'called', u'bomb', u'0', u'chinese', u'september', u'photo', u'agreed', u'global', u'spain']\", [], [], \"[u'coup', u'all', u'sergey', u'bomb', u'saying', u'photo', u'supported', u'repeatedly', u'soon', u'actions']\"], \"marker\": {\"color\": \"rgb(255,65,54)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.41280889631027384, 0.41280889631027384, 0.0], \"x\": [285.0, 285.0, 295.0, 295.0], \"type\": \"scatter\"}, {\"yaxis\": \"y\", \"text\": [\"[u'operations', u'saying', u'peace', u'rebels', u'ambassador', u'september', u'settlements', u'years', u'held', u'fighters']\", [], [], \"+++: [u'bomb', u'photo', u'global', u'soon', u'years', u'including', u'cold', u'issues', u'ground', u'based']<br>---: [u'saying', u'all', u'chinese', u'enemy', u'agreed', u'supported', u'month', u'sergey', u'planning', u'asia']\"], \"marker\": {\"color\": \"rgb(255,65,54)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.4337091828241252, 0.4337091828241252, 0.41280889631027384], \"x\": [275.0, 275.0, 290.0, 290.0], \"type\": \"scatter\"}, {\"yaxis\": \"y\", \"text\": [\"[u'greater', u'limited', u'help', u'lack', u'focus', u'actions', u'naturally', u'bring', u'books', u'higher']\", [], [], \"[u'called', u'all', u'enemy', u'hands', u'global', u'domestic', u'resistance', u'rest', u'years', u'course']\"], \"marker\": {\"color\": \"rgb(35,205,205)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.44592943928705275, 0.44592943928705275, 0.0], \"x\": [305.0, 305.0, 315.0, 315.0], \"type\": \"scatter\"}, {\"yaxis\": \"y\", \"text\": [\"+++: [u'major', u'force', u'years', u'likely', u'officials', u'anti', u'iran', u'armed', u'ground', u'united']<br>---: [u'saying', u'bomb', u'rebels', u'ali', u'global', u'tehran', u'qaeda', u'mosul', u'battle', u'soldiers']\", [], [], \"+++: [u'and', u'control', u'major', u'want', u'point', u'powerful', u'community', u'past', u'society', u'simply']<br>---: [u'limited', u'all', u'consider', u'global', u'resistance', u'bring', u'emotions', u'follow', u'meditation', u'research']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.4337091828241252, 0.46861372445664873, 0.46861372445664873, 0.44592943928705275], \"x\": [282.5, 282.5, 310.0, 310.0], \"type\": \"scatter\"}, {\"yaxis\": \"y\", \"text\": [\"[u'operations', u'all', u'soros', u'office', u'money', u'meetings', u'executive', u'insider', u'years', u'founded']\", [], [], \"+++: [u'major', u'us']<br>---: [u'control', u'point', u'powerful', u'community', u'years', u'course', u'simply', u'human', u'fear', u'armed']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.4806143422338316, 0.4806143422338316, 0.46861372445664873], \"x\": [265.0, 265.0, 296.25, 296.25], \"type\": \"scatter\"}, {\"yaxis\": \"y\", \"text\": [\"+++: [u'says', u'campaign', u'point', u'house', u'in', u'washington', u'likely', u'street', u'election', u'year']<br>---: [u'saying', u'watergate', u'mishandling', u'probe', u'results', u'discovered', u'obstruction', u'manager', u'democrats', u'aides']\", [], [], \"+++: []<br>---: [u'operations', u'all', u'responsible', u'office', u'money', u'meetings', u'executive', u'raised', u'years', u'founded']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.41213545918752137, 0.4847681088638261, 0.4847681088638261, 0.4806143422338316], \"x\": [242.5, 242.5, 280.625, 280.625], \"type\": \"scatter\"}, {\"yaxis\": \"y\", \"text\": [\"[u'ambassador', u'agency', u'mexican', u'help', u'office', u'diplomacy', u'money', u'executive', u'years', u'2008']\", [], [], \"+++: []<br>---: [u'says', u'nominee', u'point', u'house', u'in', u'washington', u'likely', u'street', u'election', u'year']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.4848588855404342, 0.4848588855404342, 0.4847681088638261], \"x\": [225.0, 225.0, 261.5625, 261.5625], \"type\": \"scatter\"}, {\"yaxis\": \"y\", \"text\": [\"+++: [u'and', u'attorney', u'ordered', u'office', u'judge', u'issued', u'national', u'crimes', u'authorities', u'actions']<br>---: [u'affair', u'thomas', u'shot', u'violation', u'agreed', u'allegations', u'month', u'discovered', u'rifles', u'gang']\", [], [], \"+++: []<br>---: [u'ambassador', u'code', u'mexican', u'help', u'office', u'diplomacy', u'money', u'executive', u'years', u'supreme']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.4842267300317968, 0.49484305255926003, 0.49484305255926003, 0.4848588855404342], \"x\": [210.0, 210.0, 243.28125, 243.28125], \"type\": \"scatter\"}, {\"yaxis\": \"y\", \"text\": [\"[u'saying', u'all', u'help', u'money', u'hands', u'soon', u'rest', u'years', u'course', u'looks']\", [], [], \"+++: []<br>---: [u'and', u'asked', u'attorney', u'ordered', u'family', u'judge', u'issued', u'national', u'crimes', u'actions']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.500953938948598, 0.500953938948598, 0.49484305255926003], \"x\": [195.0, 195.0, 226.640625, 226.640625], \"type\": \"scatter\"}, {\"yaxis\": \"y\", \"text\": [\"[u'sector', u'bull', u'gold', u'unemployment', u'money', u'global', u'dollar', u'trade', u'paper', u'businesses']\", [], [], \"+++: []<br>---: [u'saying', u'all', u'help', u'money', u'able', u'soon', u'rest', u'years', u'course', u'looks']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.5090095510485566, 0.5090095510485566, 0.500953938948598], \"x\": [185.0, 185.0, 210.8203125, 210.8203125], \"type\": \"scatter\"}, {\"yaxis\": \"y\", \"text\": [\"[u'gdp', u'proceeds', u'september', u'42', u'global', u'wednesday', u'results', u'years', u'leads', u'batteries']\", [], [], \"+++: []<br>---: [u'sector', u'manufacturing', u'chinese', u'unemployment', u'money', u'global', u'dollar', u'trade', u'paper', u'businesses']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.5114472916005423, 0.5114472916005423, 0.5090095510485566], \"x\": [175.0, 175.0, 197.91015625, 197.91015625], \"type\": \"scatter\"}, {\"yaxis\": \"y\", \"text\": [\"[u'saying', u'neighborhood', u'answering', u'shot', u'help', u'photo', u'celebrities', u'years', u'seen', u'performance']\", [], [], \"+++: []<br>---: [u'gdp', u'september', u'percent', u'global', u'43', u'results', u'years', u'leads', u'batteries', u'including']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.5123688748079201, 0.5123688748079201, 0.5114472916005423], \"x\": [165.0, 165.0, 186.455078125, 186.455078125], \"type\": \"scatter\"}, {\"yaxis\": \"y\", \"text\": [\"+++: [u'heavy', u'available', u'associated', u'help', u'cancer', u'caused', u'reduce', u'plant', u'evidence', u'high']<br>---: [u'wild', u'all', u'influenza', u'sci', u'phenomenon', u'cdc', u'magnetic', u'results', u'produce', u'sleep']\", [], [], \"+++: []<br>---: [u'saying', u'breaking', u'shot', u'help', u'photo', u'child', u'celebrities', u'years', u'costume', u'victim']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.4952833500135926, 0.527410482799219, 0.527410482799219, 0.5123688748079201], \"x\": [150.0, 150.0, 175.7275390625, 175.7275390625], \"type\": \"scatter\"}, {\"yaxis\": \"y\", \"text\": [\"[u'stones', u'atmosphere', u'concept', u'evidence', u'consciousness', u'being', u'global', u'souls', u'years', u'held']\", [], [], \"+++: []<br>---: [u'heavy', u'body', u'associated', u'help', u'cancer', u'caused', u'reduce', u'product', u'evidence', u'high']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.5298682068894442, 0.5298682068894442, 0.527410482799219], \"x\": [135.0, 135.0, 162.86376953125, 162.86376953125], \"type\": \"scatter\"}, {\"yaxis\": \"y\", \"text\": [\"[u'forced', u'played', u'chinese', u'german', u'2005', u'supported', u'rest', u'years', u'course', u'cambridge']\", [], [], \"+++: []<br>---: [u'stones', u'called', u'atmosphere', u'concept', u'pope', u'being', u'global', u'souls', u'years', u'held']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.5358130859045249, 0.5358130859045249, 0.5298682068894442], \"x\": [125.0, 125.0, 148.931884765625, 148.931884765625], \"type\": \"scatter\"}, {\"yaxis\": \"y\", \"text\": [\"[u'jihadist', u'acts', u'particularly', u'cheese', u'money', u'half', u'month', u'sources', u'embassy', u'including']\", [], [], \"+++: []<br>---: [u'called', u'chinese', u'german', u'supported', u'rest', u'years', u'course', u'aoun', u'london', u'hungary']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.5368743566366792, 0.5368743566366792, 0.5358130859045249], \"x\": [115.0, 115.0, 136.9659423828125, 136.9659423828125], \"type\": \"scatter\"}, {\"yaxis\": \"y\", \"text\": [\"[u'watergate', u'thomas', u'impression', u'kkk', u'stephens', u'show', u'rapture', u'photo', u'for', u'sexist']\", [], [], \"+++: []<br>---: [u'called', u'responsible', u'particularly', u'libyan', u'sales', u'money', u'supported', u'terrorist', u'month', u'sources']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.5405631185995701, 0.5405631185995701, 0.5368743566366792], \"x\": [105.0, 105.0, 125.98297119140625, 125.98297119140625], \"type\": \"scatter\"}, {\"yaxis\": \"y\", \"text\": [\"+++: [u'the', u'set', u'shot', u'national', u'activists', u'site', u'officers', u'authorities', u'fires', u'seen']<br>---: [u'monte', u'homes', u'corps', u'hurricane', u'jurisdiction', u'resistance', u'eminent', u'unrest', u'farms', u'mile']\", [], [], \"+++: []<br>---: [u'watergate', u'thomas', u'kkk', u'stephens', u'impression', u'rapture', u'photo', u'morons', u'sexist', u'years']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.5239915229525761, 0.5407990711594035, 0.5407990711594035, 0.5405631185995701], \"x\": [90.0, 90.0, 115.49148559570312, 115.49148559570312], \"type\": \"scatter\"}, {\"yaxis\": \"y\", \"text\": [\"[u'credible', u'arnaldo', u'code', u'help', u'founder', u'exclusive', u'series', u'global', u'design', u'gavin']\", [], [], \"[u'saying', u'answers', u'liar', u'opinions', u'photo', u'reporters', u'networks', u'sources', u'paper', u'scott']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.5241246859656508, 0.5241246859656508, 0.0], \"x\": [335.0, 335.0, 345.0, 345.0], \"type\": \"scatter\"}, {\"yaxis\": \"y\", \"text\": [\"[u'longer', u'nc', u'office', u'switched', u'september', u'pros', u'copy', u'neilson', u'results', u'technicians']\", [], [], \"+++: [u'comment', u'google', u'videos', u'appeared', u'series', u'twitter', u'share', u'subscribe', u'video', u'article']<br>---: [u'saying', u'code', u'liar', u'forget', u'founder', u'exclusive', u'dear', u'global', u'danney', u'solutions']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.5477582438343798, 0.5477582438343798, 0.5241246859656508], \"x\": [325.0, 325.0, 340.0, 340.0], \"type\": \"scatter\"}, {\"yaxis\": \"y\", \"text\": [\"+++: []<br>---: [u'set', u'shot', u'national', u'activists', u'site', u'officers', u'communities', u'fires', u'seen', u'protests']\", [], [], \"+++: [u'comment', u'use', u'mainstream', u'media', u'comments', u'1', u'2', u'radio', u'editor', u'news']<br>---: [u'45', u'office', u'switched', u'september', u'electoral', u'neilson', u'results', u'technicians', u'years', u'held']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.5407990711594035, 0.555896060550066, 0.555896060550066, 0.5477582438343798], \"x\": [102.74574279785156, 102.74574279785156, 332.5, 332.5], \"type\": \"scatter\"}, {\"yaxis\": \"y\", \"text\": [\"[u'planetary', u'code', u'closely', u'producer', u'photo', u'astronomical', u'queen', u'confirm', u'years', u'discovered']\", [], [], \"+++: []<br>---: [u'comment', u'use', u'mainstream', u'media', u'comments', u'1', u'2', u'radio', u'editor', u'article']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.5561728330392073, 0.5561728330392073, 0.555896060550066], \"x\": [75.0, 75.0, 217.62287139892578, 217.62287139892578], \"type\": \"scatter\"}, {\"yaxis\": \"y\", \"text\": [\"[u'coup', u'checkpoints', u'wakingtimes', u'paragraph', u'jonsdottir', u'knowingly', u'ended', u'lands', u'including', u'parks']\", [], [], \"+++: []<br>---: [u'science', u'planetary', u'code', u'closely', u'producer', u'photo', u'astronomical', u'queen', u'soon', u'years']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.5564856128519003, 0.5564856128519003, 0.5561728330392073], \"x\": [65.0, 65.0, 146.3114356994629, 146.3114356994629], \"type\": \"scatter\"}, {\"yaxis\": \"y\", \"text\": [\"[u'morsi', u'phenomenon', u'founder', u'caused', u'labeled', u'mission', u'actress', u'years', u'alien', u'report']\", [], [], \"+++: []<br>---: [u'coup', u'checkpoints', u'wakingtimes', u'weapons', u'jonsdottir', u'ended', u'keystone', u'including', u'1962', u'nevada']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.5704763562651556, 0.5704763562651556, 0.5564856128519003], \"x\": [55.0, 55.0, 105.65571784973145, 105.65571784973145], \"type\": \"scatter\"}, {\"yaxis\": \"y\", \"text\": [\"[u'1st', u'now', u'jason', u'help', u'ron', u'demand', u'caused', u'executive', u'dollar', u'damage']\", [], [], \"+++: []<br>---: [u'phenomenon', u'founder', u'caused', u'mission', u'actress', u'years', u'alien', u'report', u'bright', u'swedish']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.5726519085057408, 0.5726519085057408, 0.5704763562651556], \"x\": [45.0, 45.0, 80.32785892486572, 80.32785892486572], \"type\": \"scatter\"}, {\"yaxis\": \"y\", \"text\": [\"[u'represent', u'thomas', u'words', u'founder', u'produces', u'rev', u'authors', u'unseen', u'infant', u'rest']\", [], [], \"+++: []<br>---: [u'now', u'breaking', u'jason', u'help', u'ron', u'caused', u'executive', u'dollar', u'proposes', u'executes']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.5985741306483363, 0.5985741306483363, 0.5726519085057408], \"x\": [35.0, 35.0, 62.66392946243286, 62.66392946243286], \"type\": \"scatter\"}, {\"yaxis\": \"y\", \"text\": [\"[u'perspective', u'imploding', u'colleges', u'help', u'founder', u'text', u'rob', u'results', u'bookmark', u'professors']\", [], [], \"+++: []<br>---: [u'represent', u'thomas', u'birth', u'founder', u'produces', u'child', u'unseen', u'infant', u'rest', u'years']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.6044867266886239, 0.6044867266886239, 0.5985741306483363], \"x\": [25.0, 25.0, 48.83196473121643, 48.83196473121643], \"type\": \"scatter\"}, {\"yaxis\": \"y\", \"text\": [\"[u'rtd', u'thomas', u'shot', u'pti', u'sergei', u'ndtv', u'caused', u'kejriwal', u'gun', u'laura']\", [], [], \"+++: []<br>---: [u'imploding', u'colleges', u'help', u'founder', u'text', u'rob', u'results', u'professors', u'facilities', u'spaces']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.6092748581752581, 0.6092748581752581, 0.6044867266886239], \"x\": [15.0, 15.0, 36.915982365608215, 36.915982365608215], \"type\": \"scatter\"}, {\"yaxis\": \"y\", \"text\": [\"[u'urinary', u'fungal', u'molecule', u'facial', u'tincture', u'ginseng', u'sciencedaily', u'zen', u'powders', u'narcotic']\", [], [], \"+++: []<br>---: [u'rtd', u'thomas', u'shot', u'pti', u'sergei', u'ndtv', u'caused', u'kejriwal', u'officers', u'laura']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.6439303839488679, 0.6439303839488679, 0.6092748581752581], \"x\": [5.0, 5.0, 25.957991182804108, 25.957991182804108], \"type\": \"scatter\"}], {\"autosize\": false, \"yaxis\": {\"showticklabels\": true, \"ticks\": \"outside\", \"showgrid\": false, \"mirror\": \"allticks\", \"zeroline\": false, \"showline\": true, \"rangemode\": \"tozero\", \"type\": \"linear\"}, \"showlegend\": false, \"height\": 600, \"width\": 1000, \"xaxis\": {\"showticklabels\": true, \"tickmode\": \"array\", \"ticks\": \"outside\", \"showgrid\": false, \"mirror\": \"allticks\", \"zeroline\": false, \"showline\": true, \"ticktext\": [5, 12, 18, 35, 28, 25, 16, 30, 6, 8, 17, 27, 9, 2, 14, 20, 34, 10, 29, 3, 19, 32, 24, 13, 15, 26, 11, 33, 1, 23, 22, 31, 21, 4, 7], \"rangemode\": \"tozero\", \"type\": \"linear\", \"tickvals\": [5.0, 15.0, 25.0, 35.0, 45.0, 55.0, 65.0, 75.0, 85.0, 95.0, 105.0, 115.0, 125.0, 135.0, 145.0, 155.0, 165.0, 175.0, 185.0, 195.0, 205.0, 215.0, 225.0, 235.0, 245.0, 255.0, 265.0, 275.0, 285.0, 295.0, 305.0, 315.0, 325.0, 335.0, 345.0]}, \"hovermode\": \"closest\"}, {\"linkText\": \"Export to plot.ly\", \"showLink\": true})});</script>" ], "text/vnd.plotly.v1+html": [ "<div id=\"0c997e44-d3bb-43b0-9182-c18c902a25d9\" style=\"height: 600px; width: 1000px;\" class=\"plotly-graph-div\"></div><script type=\"text/javascript\">require([\"plotly\"], function(Plotly) { window.PLOTLYENV=window.PLOTLYENV || {};window.PLOTLYENV.BASE_URL=\"https://plot.ly\";Plotly.newPlot(\"0c997e44-d3bb-43b0-9182-c18c902a25d9\", [{\"yaxis\": \"y\", \"text\": [\"[u'coup', u'peace', u'shot', u'citizenry', u'maduro', u'teams', u'actions', u'cross', u'seen', u'unrest']\", [], [], \"[u'monte', u'sprayed', u'shot', u'they', u'corps', u'september', u'sound', u'jurisdiction', u'resistance', u'sites']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.5239915229525761, 0.5239915229525761, 0.0], \"x\": [85.0, 85.0, 95.0, 95.0], \"type\": \"scatter\"}, {\"yaxis\": \"y\", \"text\": [\"[u'atmosphere', u'stores', u'help', u'caused', u'magnetic', u'major', u'produce', u'years', u'product', u'baby']\", [], [], \"[u'all', u'influenza', u'help', u'cdc', u'biological', u'caused', u'child', u'results', u'dose', u'brain']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.4952833500135926, 0.4952833500135926, 0.0], \"x\": [145.0, 145.0, 155.0, 155.0], \"type\": \"scatter\"}, {\"yaxis\": \"y\", \"text\": [\"[u'passed', u'rifles', u'tactics', u'office', u'violation', u'issued', u'obtain', u'actions', u'years', u'sources']\", [], [], \"[u'affair', u'thomas', u'responsible', u'shot', u'office', u'sentence', u'september', u'issued', u'agreed', u'child']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.4842267300317968, 0.4842267300317968, 0.0], \"x\": [205.0, 205.0, 215.0, 215.0], \"type\": \"scatter\"}, {\"yaxis\": \"y\", \"text\": [\"[u'rating', u'office', u'photo', u'over', u'despite', u'results', u'years', u'course', u'protest', u'radio']\", [], [], \"[u'saying', u'decide', u'predicted', u'fox', u'results', u'night', u'including', u'democrats', u'committee', u'mcmullin']\"], \"marker\": {\"color\": \"rgb(61,153,112)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.4091655719588642, 0.4091655719588642, 0.0], \"x\": [245.0, 245.0, 255.0, 255.0], \"type\": \"scatter\"}, {\"yaxis\": \"y\", \"text\": [\"[u'saying', u'breaking', u'office', u'watergate', u'mishandling', u'laptop', u'probe', u'actions', u'discovered', u'sources']\", [], [], \"+++: [u'results', u'paul', u'supporter', u'candidate', u'actually', u'barack', u'going', u'8', u'far', u'possible']<br>---: [u'saying', u'rating', u'month', u'unrest', u'protest', u'radio', u'democrats', u'mcmullin', u'follow', u'battleground']\"], \"marker\": {\"color\": \"rgb(61,153,112)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.41213545918752137, 0.41213545918752137, 0.4091655719588642], \"x\": [235.0, 235.0, 250.0, 250.0], \"type\": \"scatter\"}, {\"yaxis\": \"y\", \"text\": [\"[u'operations', u'called', u'bomb', u'0', u'chinese', u'september', u'photo', u'agreed', u'global', u'spain']\", [], [], \"[u'coup', u'all', u'sergey', u'bomb', u'saying', u'photo', u'supported', u'repeatedly', u'soon', u'actions']\"], \"marker\": {\"color\": \"rgb(255,65,54)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.41280889631027384, 0.41280889631027384, 0.0], \"x\": [285.0, 285.0, 295.0, 295.0], \"type\": \"scatter\"}, {\"yaxis\": \"y\", \"text\": [\"[u'operations', u'saying', u'peace', u'rebels', u'ambassador', u'september', u'settlements', u'years', u'held', u'fighters']\", [], [], \"+++: [u'bomb', u'photo', u'global', u'soon', u'years', u'including', u'cold', u'issues', u'ground', u'based']<br>---: [u'saying', u'all', u'chinese', u'enemy', u'agreed', u'supported', u'month', u'sergey', u'planning', u'asia']\"], \"marker\": {\"color\": \"rgb(255,65,54)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.4337091828241252, 0.4337091828241252, 0.41280889631027384], \"x\": [275.0, 275.0, 290.0, 290.0], \"type\": \"scatter\"}, {\"yaxis\": \"y\", \"text\": [\"[u'greater', u'limited', u'help', u'lack', u'focus', u'actions', u'naturally', u'bring', u'books', u'higher']\", [], [], \"[u'called', u'all', u'enemy', u'hands', u'global', u'domestic', u'resistance', u'rest', u'years', u'course']\"], \"marker\": {\"color\": \"rgb(35,205,205)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.44592943928705275, 0.44592943928705275, 0.0], \"x\": [305.0, 305.0, 315.0, 315.0], \"type\": \"scatter\"}, {\"yaxis\": \"y\", \"text\": [\"+++: [u'major', u'force', u'years', u'likely', u'officials', u'anti', u'iran', u'armed', u'ground', u'united']<br>---: [u'saying', u'bomb', u'rebels', u'ali', u'global', u'tehran', u'qaeda', u'mosul', u'battle', u'soldiers']\", [], [], \"+++: [u'and', u'control', u'major', u'want', u'point', u'powerful', u'community', u'past', u'society', u'simply']<br>---: [u'limited', u'all', u'consider', u'global', u'resistance', u'bring', u'emotions', u'follow', u'meditation', u'research']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.4337091828241252, 0.46861372445664873, 0.46861372445664873, 0.44592943928705275], \"x\": [282.5, 282.5, 310.0, 310.0], \"type\": \"scatter\"}, {\"yaxis\": \"y\", \"text\": [\"[u'operations', u'all', u'soros', u'office', u'money', u'meetings', u'executive', u'insider', u'years', u'founded']\", [], [], \"+++: [u'major', u'us']<br>---: [u'control', u'point', u'powerful', u'community', u'years', u'course', u'simply', u'human', u'fear', u'armed']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.4806143422338316, 0.4806143422338316, 0.46861372445664873], \"x\": [265.0, 265.0, 296.25, 296.25], \"type\": \"scatter\"}, {\"yaxis\": \"y\", \"text\": [\"+++: [u'says', u'campaign', u'point', u'house', u'in', u'washington', u'likely', u'street', u'election', u'year']<br>---: [u'saying', u'watergate', u'mishandling', u'probe', u'results', u'discovered', u'obstruction', u'manager', u'democrats', u'aides']\", [], [], \"+++: []<br>---: [u'operations', u'all', u'responsible', u'office', u'money', u'meetings', u'executive', u'raised', u'years', u'founded']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.41213545918752137, 0.4847681088638261, 0.4847681088638261, 0.4806143422338316], \"x\": [242.5, 242.5, 280.625, 280.625], \"type\": \"scatter\"}, {\"yaxis\": \"y\", \"text\": [\"[u'ambassador', u'agency', u'mexican', u'help', u'office', u'diplomacy', u'money', u'executive', u'years', u'2008']\", [], [], \"+++: []<br>---: [u'says', u'nominee', u'point', u'house', u'in', u'washington', u'likely', u'street', u'election', u'year']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.4848588855404342, 0.4848588855404342, 0.4847681088638261], \"x\": [225.0, 225.0, 261.5625, 261.5625], \"type\": \"scatter\"}, {\"yaxis\": \"y\", \"text\": [\"+++: [u'and', u'attorney', u'ordered', u'office', u'judge', u'issued', u'national', u'crimes', u'authorities', u'actions']<br>---: [u'affair', u'thomas', u'shot', u'violation', u'agreed', u'allegations', u'month', u'discovered', u'rifles', u'gang']\", [], [], \"+++: []<br>---: [u'ambassador', u'code', u'mexican', u'help', u'office', u'diplomacy', u'money', u'executive', u'years', u'supreme']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.4842267300317968, 0.49484305255926003, 0.49484305255926003, 0.4848588855404342], \"x\": [210.0, 210.0, 243.28125, 243.28125], \"type\": \"scatter\"}, {\"yaxis\": \"y\", \"text\": [\"[u'saying', u'all', u'help', u'money', u'hands', u'soon', u'rest', u'years', u'course', u'looks']\", [], [], \"+++: []<br>---: [u'and', u'asked', u'attorney', u'ordered', u'family', u'judge', u'issued', u'national', u'crimes', u'actions']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.500953938948598, 0.500953938948598, 0.49484305255926003], \"x\": [195.0, 195.0, 226.640625, 226.640625], \"type\": \"scatter\"}, {\"yaxis\": \"y\", \"text\": [\"[u'sector', u'bull', u'gold', u'unemployment', u'money', u'global', u'dollar', u'trade', u'paper', u'businesses']\", [], [], \"+++: []<br>---: [u'saying', u'all', u'help', u'money', u'able', u'soon', u'rest', u'years', u'course', u'looks']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.5090095510485566, 0.5090095510485566, 0.500953938948598], \"x\": [185.0, 185.0, 210.8203125, 210.8203125], \"type\": \"scatter\"}, {\"yaxis\": \"y\", \"text\": [\"[u'gdp', u'proceeds', u'september', u'42', u'global', u'wednesday', u'results', u'years', u'leads', u'batteries']\", [], [], \"+++: []<br>---: [u'sector', u'manufacturing', u'chinese', u'unemployment', u'money', u'global', u'dollar', u'trade', u'paper', u'businesses']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.5114472916005423, 0.5114472916005423, 0.5090095510485566], \"x\": [175.0, 175.0, 197.91015625, 197.91015625], \"type\": \"scatter\"}, {\"yaxis\": \"y\", \"text\": [\"[u'saying', u'neighborhood', u'answering', u'shot', u'help', u'photo', u'celebrities', u'years', u'seen', u'performance']\", [], [], \"+++: []<br>---: [u'gdp', u'september', u'percent', u'global', u'43', u'results', u'years', u'leads', u'batteries', u'including']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.5123688748079201, 0.5123688748079201, 0.5114472916005423], \"x\": [165.0, 165.0, 186.455078125, 186.455078125], \"type\": \"scatter\"}, {\"yaxis\": \"y\", \"text\": [\"+++: [u'heavy', u'available', u'associated', u'help', u'cancer', u'caused', u'reduce', u'plant', u'evidence', u'high']<br>---: [u'wild', u'all', u'influenza', u'sci', u'phenomenon', u'cdc', u'magnetic', u'results', u'produce', u'sleep']\", [], [], \"+++: []<br>---: [u'saying', u'breaking', u'shot', u'help', u'photo', u'child', u'celebrities', u'years', u'costume', u'victim']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.4952833500135926, 0.527410482799219, 0.527410482799219, 0.5123688748079201], \"x\": [150.0, 150.0, 175.7275390625, 175.7275390625], \"type\": \"scatter\"}, {\"yaxis\": \"y\", \"text\": [\"[u'stones', u'atmosphere', u'concept', u'evidence', u'consciousness', u'being', u'global', u'souls', u'years', u'held']\", [], [], \"+++: []<br>---: [u'heavy', u'body', u'associated', u'help', u'cancer', u'caused', u'reduce', u'product', u'evidence', u'high']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.5298682068894442, 0.5298682068894442, 0.527410482799219], \"x\": [135.0, 135.0, 162.86376953125, 162.86376953125], \"type\": \"scatter\"}, {\"yaxis\": \"y\", \"text\": [\"[u'forced', u'played', u'chinese', u'german', u'2005', u'supported', u'rest', u'years', u'course', u'cambridge']\", [], [], \"+++: []<br>---: [u'stones', u'called', u'atmosphere', u'concept', u'pope', u'being', u'global', u'souls', u'years', u'held']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.5358130859045249, 0.5358130859045249, 0.5298682068894442], \"x\": [125.0, 125.0, 148.931884765625, 148.931884765625], \"type\": \"scatter\"}, {\"yaxis\": \"y\", \"text\": [\"[u'jihadist', u'acts', u'particularly', u'cheese', u'money', u'half', u'month', u'sources', u'embassy', u'including']\", [], [], \"+++: []<br>---: [u'called', u'chinese', u'german', u'supported', u'rest', u'years', u'course', u'aoun', u'london', u'hungary']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.5368743566366792, 0.5368743566366792, 0.5358130859045249], \"x\": [115.0, 115.0, 136.9659423828125, 136.9659423828125], \"type\": \"scatter\"}, {\"yaxis\": \"y\", \"text\": [\"[u'watergate', u'thomas', u'impression', u'kkk', u'stephens', u'show', u'rapture', u'photo', u'for', u'sexist']\", [], [], \"+++: []<br>---: [u'called', u'responsible', u'particularly', u'libyan', u'sales', u'money', u'supported', u'terrorist', u'month', u'sources']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.5405631185995701, 0.5405631185995701, 0.5368743566366792], \"x\": [105.0, 105.0, 125.98297119140625, 125.98297119140625], \"type\": \"scatter\"}, {\"yaxis\": \"y\", \"text\": [\"+++: [u'the', u'set', u'shot', u'national', u'activists', u'site', u'officers', u'authorities', u'fires', u'seen']<br>---: [u'monte', u'homes', u'corps', u'hurricane', u'jurisdiction', u'resistance', u'eminent', u'unrest', u'farms', u'mile']\", [], [], \"+++: []<br>---: [u'watergate', u'thomas', u'kkk', u'stephens', u'impression', u'rapture', u'photo', u'morons', u'sexist', u'years']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.5239915229525761, 0.5407990711594035, 0.5407990711594035, 0.5405631185995701], \"x\": [90.0, 90.0, 115.49148559570312, 115.49148559570312], \"type\": \"scatter\"}, {\"yaxis\": \"y\", \"text\": [\"[u'credible', u'arnaldo', u'code', u'help', u'founder', u'exclusive', u'series', u'global', u'design', u'gavin']\", [], [], \"[u'saying', u'answers', u'liar', u'opinions', u'photo', u'reporters', u'networks', u'sources', u'paper', u'scott']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.5241246859656508, 0.5241246859656508, 0.0], \"x\": [335.0, 335.0, 345.0, 345.0], \"type\": \"scatter\"}, {\"yaxis\": \"y\", \"text\": [\"[u'longer', u'nc', u'office', u'switched', u'september', u'pros', u'copy', u'neilson', u'results', u'technicians']\", [], [], \"+++: [u'comment', u'google', u'videos', u'appeared', u'series', u'twitter', u'share', u'subscribe', u'video', u'article']<br>---: [u'saying', u'code', u'liar', u'forget', u'founder', u'exclusive', u'dear', u'global', u'danney', u'solutions']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.5477582438343798, 0.5477582438343798, 0.5241246859656508], \"x\": [325.0, 325.0, 340.0, 340.0], \"type\": \"scatter\"}, {\"yaxis\": \"y\", \"text\": [\"+++: []<br>---: [u'set', u'shot', u'national', u'activists', u'site', u'officers', u'communities', u'fires', u'seen', u'protests']\", [], [], \"+++: [u'comment', u'use', u'mainstream', u'media', u'comments', u'1', u'2', u'radio', u'editor', u'news']<br>---: [u'45', u'office', u'switched', u'september', u'electoral', u'neilson', u'results', u'technicians', u'years', u'held']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.5407990711594035, 0.555896060550066, 0.555896060550066, 0.5477582438343798], \"x\": [102.74574279785156, 102.74574279785156, 332.5, 332.5], \"type\": \"scatter\"}, {\"yaxis\": \"y\", \"text\": [\"[u'planetary', u'code', u'closely', u'producer', u'photo', u'astronomical', u'queen', u'confirm', u'years', u'discovered']\", [], [], \"+++: []<br>---: [u'comment', u'use', u'mainstream', u'media', u'comments', u'1', u'2', u'radio', u'editor', u'article']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.5561728330392073, 0.5561728330392073, 0.555896060550066], \"x\": [75.0, 75.0, 217.62287139892578, 217.62287139892578], \"type\": \"scatter\"}, {\"yaxis\": \"y\", \"text\": [\"[u'coup', u'checkpoints', u'wakingtimes', u'paragraph', u'jonsdottir', u'knowingly', u'ended', u'lands', u'including', u'parks']\", [], [], \"+++: []<br>---: [u'science', u'planetary', u'code', u'closely', u'producer', u'photo', u'astronomical', u'queen', u'soon', u'years']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.5564856128519003, 0.5564856128519003, 0.5561728330392073], \"x\": [65.0, 65.0, 146.3114356994629, 146.3114356994629], \"type\": \"scatter\"}, {\"yaxis\": \"y\", \"text\": [\"[u'morsi', u'phenomenon', u'founder', u'caused', u'labeled', u'mission', u'actress', u'years', u'alien', u'report']\", [], [], \"+++: []<br>---: [u'coup', u'checkpoints', u'wakingtimes', u'weapons', u'jonsdottir', u'ended', u'keystone', u'including', u'1962', u'nevada']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.5704763562651556, 0.5704763562651556, 0.5564856128519003], \"x\": [55.0, 55.0, 105.65571784973145, 105.65571784973145], \"type\": \"scatter\"}, {\"yaxis\": \"y\", \"text\": [\"[u'1st', u'now', u'jason', u'help', u'ron', u'demand', u'caused', u'executive', u'dollar', u'damage']\", [], [], \"+++: []<br>---: [u'phenomenon', u'founder', u'caused', u'mission', u'actress', u'years', u'alien', u'report', u'bright', u'swedish']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.5726519085057408, 0.5726519085057408, 0.5704763562651556], \"x\": [45.0, 45.0, 80.32785892486572, 80.32785892486572], \"type\": \"scatter\"}, {\"yaxis\": \"y\", \"text\": [\"[u'represent', u'thomas', u'words', u'founder', u'produces', u'rev', u'authors', u'unseen', u'infant', u'rest']\", [], [], \"+++: []<br>---: [u'now', u'breaking', u'jason', u'help', u'ron', u'caused', u'executive', u'dollar', u'proposes', u'executes']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.5985741306483363, 0.5985741306483363, 0.5726519085057408], \"x\": [35.0, 35.0, 62.66392946243286, 62.66392946243286], \"type\": \"scatter\"}, {\"yaxis\": \"y\", \"text\": [\"[u'perspective', u'imploding', u'colleges', u'help', u'founder', u'text', u'rob', u'results', u'bookmark', u'professors']\", [], [], \"+++: []<br>---: [u'represent', u'thomas', u'birth', u'founder', u'produces', u'child', u'unseen', u'infant', u'rest', u'years']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.6044867266886239, 0.6044867266886239, 0.5985741306483363], \"x\": [25.0, 25.0, 48.83196473121643, 48.83196473121643], \"type\": \"scatter\"}, {\"yaxis\": \"y\", \"text\": [\"[u'rtd', u'thomas', u'shot', u'pti', u'sergei', u'ndtv', u'caused', u'kejriwal', u'gun', u'laura']\", [], [], \"+++: []<br>---: [u'imploding', u'colleges', u'help', u'founder', u'text', u'rob', u'results', u'professors', u'facilities', u'spaces']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.6092748581752581, 0.6092748581752581, 0.6044867266886239], \"x\": [15.0, 15.0, 36.915982365608215, 36.915982365608215], \"type\": \"scatter\"}, {\"yaxis\": \"y\", \"text\": [\"[u'urinary', u'fungal', u'molecule', u'facial', u'tincture', u'ginseng', u'sciencedaily', u'zen', u'powders', u'narcotic']\", [], [], \"+++: []<br>---: [u'rtd', u'thomas', u'shot', u'pti', u'sergei', u'ndtv', u'caused', u'kejriwal', u'officers', u'laura']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.6439303839488679, 0.6439303839488679, 0.6092748581752581], \"x\": [5.0, 5.0, 25.957991182804108, 25.957991182804108], \"type\": \"scatter\"}], {\"autosize\": false, \"yaxis\": {\"showticklabels\": true, \"ticks\": \"outside\", \"showgrid\": false, \"mirror\": \"allticks\", \"zeroline\": false, \"showline\": true, \"rangemode\": \"tozero\", \"type\": \"linear\"}, \"showlegend\": false, \"height\": 600, \"width\": 1000, \"xaxis\": {\"showticklabels\": true, \"tickmode\": \"array\", \"ticks\": \"outside\", \"showgrid\": false, \"mirror\": \"allticks\", \"zeroline\": false, \"showline\": true, \"ticktext\": [5, 12, 18, 35, 28, 25, 16, 30, 6, 8, 17, 27, 9, 2, 14, 20, 34, 10, 29, 3, 19, 32, 24, 13, 15, 26, 11, 33, 1, 23, 22, 31, 21, 4, 7], \"rangemode\": \"tozero\", \"type\": \"linear\", \"tickvals\": [5.0, 15.0, 25.0, 35.0, 45.0, 55.0, 65.0, 75.0, 85.0, 95.0, 105.0, 115.0, 125.0, 135.0, 145.0, 155.0, 165.0, 175.0, 185.0, 195.0, 205.0, 215.0, 225.0, 235.0, 245.0, 255.0, 265.0, 275.0, 285.0, 295.0, 305.0, 315.0, 325.0, 335.0, 345.0]}, \"hovermode\": \"closest\"}, {\"linkText\": \"Export to plot.ly\", \"showLink\": true})});</script>" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "# get text annotations\n", "annotation = text_annotation(topic_dist, topic_terms, n_ann_terms, linkagefun)\n", "\n", "# Plot dendrogram\n", "dendro = ff.create_dendrogram(topic_dist, distfun=js_dist, labels=range(1, 36), linkagefun=linkagefun, hovertext=annotation)\n", "dendro['layout'].update({'width': 1000, 'height': 600})\n", "py.iplot(dendro)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The x-axis or the leaves of hierarchy represent the topics of our LDA model, y-axis is a measure of closeness of either individual topics or their cluster. Essentially, the y-axis level at which the branches merge (relative to the \"root\" of the tree) is related to their similarity. For ex., topic 4 and 30 are more similar to each other than to topic 32. In addition, topic 18 and 24 are more similar to 35 than topic 4 and 30 are to topic 32 as the height on which they merge is lower than the merge height of 4/30 to 32.\n", "\n", "Text annotations visible on hovering over the cluster nodes show the intersecting/different terms of it's two child nodes. Cluster node on first hierarchy level uses the topics on leaves directly to calculate intersecting/different terms, and the upper nodes assume the intersection(+++) as the topic terms of it's child node.\n", "\n", "This type of tree graph could help us see the high level cluster theme that might exist in our data as we can see the common/different terms of combined topics in a cluster head annotation." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Dendrogram with a Heatmap\n", "\n", "Now lets append the distance matrix of the topics below the dendrogram in form of heatmap so that we can see the exact distances between all pair of topics." ] }, { "cell_type": "code", "execution_count": 6, "metadata": {}, "outputs": [], "source": [ "# get text annotations\n", "annotation = text_annotation(topic_dist, topic_terms, n_ann_terms, linkagefun)\n", "\n", "# Initialize figure by creating upper dendrogram\n", "figure = ff.create_dendrogram(topic_dist, distfun=js_dist, labels=range(1, 36), linkagefun=linkagefun, hovertext=annotation)\n", "for i in range(len(figure['data'])):\n", " figure['data'][i]['yaxis'] = 'y2'" ] }, { "cell_type": "code", "execution_count": 7, "metadata": {}, "outputs": [], "source": [ "# get distance matrix and it's topic annotations\n", "mdiff, annotation = lda_fake.diff(lda_fake, distance=\"jensen_shannon\", normed=False)\n", "\n", "# get reordered topic list\n", "dendro_leaves = figure['layout']['xaxis']['ticktext']\n", "dendro_leaves = [x - 1 for x in dendro_leaves]\n", "\n", "# reorder distance matrix\n", "heat_data = mdiff[dendro_leaves, :]\n", "heat_data = heat_data[:, dendro_leaves]" ] }, { "cell_type": "code", "execution_count": 8, "metadata": {}, "outputs": [ { "data": { "application/vnd.plotly.v1+json": { "data": [ { "hoverinfo": "text", "marker": { "color": "rgb(0,116,217)" }, "mode": "lines", "text": [ "[u'coup', u'peace', u'shot', u'citizenry', u'maduro', u'teams', u'actions', u'cross', u'seen', u'unrest']", [], [], "[u'monte', u'sprayed', u'shot', u'they', u'corps', u'september', u'sound', u'jurisdiction', u'resistance', u'sites']" ], "type": "scatter", "x": [ 85, 85, 95, 95 ], "xaxis": "x", "y": [ 0, 0.5239915229525761, 0.5239915229525761, 0 ], "yaxis": "y2" }, { "hoverinfo": "text", "marker": { "color": "rgb(0,116,217)" }, "mode": "lines", "text": [ "[u'atmosphere', u'stores', u'help', u'caused', u'magnetic', u'major', u'produce', u'years', u'product', u'baby']", [], [], "[u'all', u'influenza', u'help', u'cdc', u'biological', u'caused', u'child', u'results', u'dose', u'brain']" ], "type": "scatter", "x": [ 145, 145, 155, 155 ], "xaxis": "x", "y": [ 0, 0.4952833500135926, 0.4952833500135926, 0 ], "yaxis": "y2" }, { "hoverinfo": "text", "marker": { "color": "rgb(0,116,217)" }, "mode": "lines", "text": [ "[u'passed', u'rifles', u'tactics', u'office', u'violation', u'issued', u'obtain', u'actions', u'years', u'sources']", [], [], "[u'affair', u'thomas', u'responsible', u'shot', u'office', u'sentence', u'september', u'issued', u'agreed', u'child']" ], "type": "scatter", "x": [ 205, 205, 215, 215 ], "xaxis": "x", "y": [ 0, 0.4842267300317968, 0.4842267300317968, 0 ], "yaxis": "y2" }, { "hoverinfo": "text", "marker": { "color": "rgb(61,153,112)" }, "mode": "lines", "text": [ "[u'rating', u'office', u'photo', u'over', u'despite', u'results', u'years', u'course', u'protest', u'radio']", [], [], "[u'saying', u'decide', u'predicted', u'fox', u'results', u'night', u'including', u'democrats', u'committee', u'mcmullin']" ], "type": "scatter", "x": [ 245, 245, 255, 255 ], "xaxis": "x", "y": [ 0, 0.4091655719588642, 0.4091655719588642, 0 ], "yaxis": "y2" }, { "hoverinfo": "text", "marker": { "color": "rgb(61,153,112)" }, "mode": "lines", "text": [ "[u'saying', u'breaking', u'office', u'watergate', u'mishandling', u'laptop', u'probe', u'actions', u'discovered', u'sources']", [], [], "+++: [u'results', u'paul', u'supporter', u'candidate', u'actually', u'barack', u'going', u'8', u'far', u'possible']<br>---: [u'saying', u'rating', u'month', u'unrest', u'protest', u'radio', u'democrats', u'mcmullin', u'follow', u'battleground']" ], "type": "scatter", "x": [ 235, 235, 250, 250 ], "xaxis": "x", "y": [ 0, 0.41213545918752137, 0.41213545918752137, 0.4091655719588642 ], "yaxis": "y2" }, { "hoverinfo": "text", "marker": { "color": "rgb(255,65,54)" }, "mode": "lines", "text": [ "[u'operations', u'called', u'bomb', u'0', u'chinese', u'september', u'photo', u'agreed', u'global', u'spain']", [], [], "[u'coup', u'all', u'sergey', u'bomb', u'saying', u'photo', u'supported', u'repeatedly', u'soon', u'actions']" ], "type": "scatter", "x": [ 285, 285, 295, 295 ], "xaxis": "x", "y": [ 0, 0.41280889631027384, 0.41280889631027384, 0 ], "yaxis": "y2" }, { "hoverinfo": "text", "marker": { "color": "rgb(255,65,54)" }, "mode": "lines", "text": [ "[u'operations', u'saying', u'peace', u'rebels', u'ambassador', u'september', u'settlements', u'years', u'held', u'fighters']", [], [], "+++: [u'bomb', u'photo', u'global', u'soon', u'years', u'including', u'cold', u'issues', u'ground', u'based']<br>---: [u'saying', u'all', u'chinese', u'enemy', u'agreed', u'supported', u'month', u'sergey', u'planning', u'asia']" ], "type": "scatter", "x": [ 275, 275, 290, 290 ], "xaxis": "x", "y": [ 0, 0.4337091828241252, 0.4337091828241252, 0.41280889631027384 ], "yaxis": "y2" }, { "hoverinfo": "text", "marker": { "color": "rgb(35,205,205)" }, "mode": "lines", "text": [ "[u'greater', u'limited', u'help', u'lack', u'focus', u'actions', u'naturally', u'bring', u'books', u'higher']", [], [], "[u'called', u'all', u'enemy', u'hands', u'global', u'domestic', u'resistance', u'rest', u'years', u'course']" ], "type": "scatter", "x": [ 305, 305, 315, 315 ], "xaxis": "x", "y": [ 0, 0.44592943928705275, 0.44592943928705275, 0 ], "yaxis": "y2" }, { "hoverinfo": "text", "marker": { "color": "rgb(0,116,217)" }, "mode": "lines", "text": [ "+++: [u'major', u'force', u'years', u'likely', u'officials', u'anti', u'iran', u'armed', u'ground', u'united']<br>---: [u'saying', u'bomb', u'rebels', u'ali', u'global', u'tehran', u'qaeda', u'mosul', u'battle', u'soldiers']", [], [], "+++: [u'and', u'control', u'major', u'want', u'point', u'powerful', u'community', u'past', u'society', u'simply']<br>---: [u'limited', u'all', u'consider', u'global', u'resistance', u'bring', u'emotions', u'follow', u'meditation', u'research']" ], "type": "scatter", "x": [ 282.5, 282.5, 310, 310 ], "xaxis": "x", "y": [ 0.4337091828241252, 0.46861372445664873, 0.46861372445664873, 0.44592943928705275 ], "yaxis": "y2" }, { "hoverinfo": "text", "marker": { "color": "rgb(0,116,217)" }, "mode": "lines", "text": [ "[u'operations', u'all', u'soros', u'office', u'money', u'meetings', u'executive', u'insider', u'years', u'founded']", [], [], "+++: [u'major', u'us']<br>---: [u'control', u'point', u'powerful', u'community', u'years', u'course', u'simply', u'human', u'fear', u'armed']" ], "type": "scatter", "x": [ 265, 265, 296.25, 296.25 ], "xaxis": "x", "y": [ 0, 0.4806143422338316, 0.4806143422338316, 0.46861372445664873 ], "yaxis": "y2" }, { "hoverinfo": "text", "marker": { "color": "rgb(0,116,217)" }, "mode": "lines", "text": [ "+++: [u'says', u'campaign', u'point', u'house', u'in', u'washington', u'likely', u'street', u'election', u'year']<br>---: [u'saying', u'watergate', u'mishandling', u'probe', u'results', u'discovered', u'obstruction', u'manager', u'democrats', u'aides']", [], [], "+++: []<br>---: [u'operations', u'all', u'responsible', u'office', u'money', u'meetings', u'executive', u'raised', u'years', u'founded']" ], "type": "scatter", "x": [ 242.5, 242.5, 280.625, 280.625 ], "xaxis": "x", "y": [ 0.41213545918752137, 0.4847681088638261, 0.4847681088638261, 0.4806143422338316 ], "yaxis": "y2" }, { "hoverinfo": "text", "marker": { "color": "rgb(0,116,217)" }, "mode": "lines", "text": [ "[u'ambassador', u'agency', u'mexican', u'help', u'office', u'diplomacy', u'money', u'executive', u'years', u'2008']", [], [], "+++: []<br>---: [u'says', u'nominee', u'point', u'house', u'in', u'washington', u'likely', u'street', u'election', u'year']" ], "type": "scatter", "x": [ 225, 225, 261.5625, 261.5625 ], "xaxis": "x", "y": [ 0, 0.4848588855404342, 0.4848588855404342, 0.4847681088638261 ], "yaxis": "y2" }, { "hoverinfo": "text", "marker": { "color": "rgb(0,116,217)" }, "mode": "lines", "text": [ "+++: [u'and', u'attorney', u'ordered', u'office', u'judge', u'issued', u'national', u'crimes', u'authorities', u'actions']<br>---: [u'affair', u'thomas', u'shot', u'violation', u'agreed', u'allegations', u'month', u'discovered', u'rifles', u'gang']", [], [], "+++: []<br>---: [u'ambassador', u'code', u'mexican', u'help', u'office', u'diplomacy', u'money', u'executive', u'years', u'supreme']" ], "type": "scatter", "x": [ 210, 210, 243.28125, 243.28125 ], "xaxis": "x", "y": [ 0.4842267300317968, 0.49484305255926003, 0.49484305255926003, 0.4848588855404342 ], "yaxis": "y2" }, { "hoverinfo": "text", "marker": { "color": "rgb(0,116,217)" }, "mode": "lines", "text": [ "[u'saying', u'all', u'help', u'money', u'hands', u'soon', u'rest', u'years', u'course', u'looks']", [], [], "+++: []<br>---: [u'and', u'asked', u'attorney', u'ordered', u'family', u'judge', u'issued', u'national', u'crimes', u'actions']" ], "type": "scatter", "x": [ 195, 195, 226.640625, 226.640625 ], "xaxis": "x", "y": [ 0, 0.500953938948598, 0.500953938948598, 0.49484305255926003 ], "yaxis": "y2" }, { "hoverinfo": "text", "marker": { "color": "rgb(0,116,217)" }, "mode": "lines", "text": [ "[u'sector', u'bull', u'gold', u'unemployment', u'money', u'global', u'dollar', u'trade', u'paper', u'businesses']", [], [], "+++: []<br>---: [u'saying', u'all', u'help', u'money', u'able', u'soon', u'rest', u'years', u'course', u'looks']" ], "type": "scatter", "x": [ 185, 185, 210.8203125, 210.8203125 ], "xaxis": "x", "y": [ 0, 0.5090095510485566, 0.5090095510485566, 0.500953938948598 ], "yaxis": "y2" }, { "hoverinfo": "text", "marker": { "color": "rgb(0,116,217)" }, "mode": "lines", "text": [ "[u'gdp', u'proceeds', u'september', u'42', u'global', u'wednesday', u'results', u'years', u'leads', u'batteries']", [], [], "+++: []<br>---: [u'sector', u'manufacturing', u'chinese', u'unemployment', u'money', u'global', u'dollar', u'trade', u'paper', u'businesses']" ], "type": "scatter", "x": [ 175, 175, 197.91015625, 197.91015625 ], "xaxis": "x", "y": [ 0, 0.5114472916005423, 0.5114472916005423, 0.5090095510485566 ], "yaxis": "y2" }, { "hoverinfo": "text", "marker": { "color": "rgb(0,116,217)" }, "mode": "lines", "text": [ "[u'saying', u'neighborhood', u'answering', u'shot', u'help', u'photo', u'celebrities', u'years', u'seen', u'performance']", [], [], "+++: []<br>---: [u'gdp', u'september', u'percent', u'global', u'43', u'results', u'years', u'leads', u'batteries', u'including']" ], "type": "scatter", "x": [ 165, 165, 186.455078125, 186.455078125 ], "xaxis": "x", "y": [ 0, 0.5123688748079201, 0.5123688748079201, 0.5114472916005423 ], "yaxis": "y2" }, { "hoverinfo": "text", "marker": { "color": "rgb(0,116,217)" }, "mode": "lines", "text": [ "+++: [u'heavy', u'available', u'associated', u'help', u'cancer', u'caused', u'reduce', u'plant', u'evidence', u'high']<br>---: [u'wild', u'all', u'influenza', u'sci', u'phenomenon', u'cdc', u'magnetic', u'results', u'produce', u'sleep']", [], [], "+++: []<br>---: [u'saying', u'breaking', u'shot', u'help', u'photo', u'child', u'celebrities', u'years', u'costume', u'victim']" ], "type": "scatter", "x": [ 150, 150, 175.7275390625, 175.7275390625 ], "xaxis": "x", "y": [ 0.4952833500135926, 0.527410482799219, 0.527410482799219, 0.5123688748079201 ], "yaxis": "y2" }, { "hoverinfo": "text", "marker": { "color": "rgb(0,116,217)" }, "mode": "lines", "text": [ "[u'stones', u'atmosphere', u'concept', u'evidence', u'consciousness', u'being', u'global', u'souls', u'years', u'held']", [], [], "+++: []<br>---: [u'heavy', u'body', u'associated', u'help', u'cancer', u'caused', u'reduce', u'product', u'evidence', u'high']" ], "type": "scatter", "x": [ 135, 135, 162.86376953125, 162.86376953125 ], "xaxis": "x", "y": [ 0, 0.5298682068894442, 0.5298682068894442, 0.527410482799219 ], "yaxis": "y2" }, { "hoverinfo": "text", "marker": { "color": "rgb(0,116,217)" }, "mode": "lines", "text": [ "[u'forced', u'played', u'chinese', u'german', u'2005', u'supported', u'rest', u'years', u'course', u'cambridge']", [], [], "+++: []<br>---: [u'stones', u'called', u'atmosphere', u'concept', u'pope', u'being', u'global', u'souls', u'years', u'held']" ], "type": "scatter", "x": [ 125, 125, 148.931884765625, 148.931884765625 ], "xaxis": "x", "y": [ 0, 0.5358130859045249, 0.5358130859045249, 0.5298682068894442 ], "yaxis": "y2" }, { "hoverinfo": "text", "marker": { "color": "rgb(0,116,217)" }, "mode": "lines", "text": [ "[u'jihadist', u'acts', u'particularly', u'cheese', u'money', u'half', u'month', u'sources', u'embassy', u'including']", [], [], "+++: []<br>---: [u'called', u'chinese', u'german', u'supported', u'rest', u'years', u'course', u'aoun', u'london', u'hungary']" ], "type": "scatter", "x": [ 115, 115, 136.9659423828125, 136.9659423828125 ], "xaxis": "x", "y": [ 0, 0.5368743566366792, 0.5368743566366792, 0.5358130859045249 ], "yaxis": "y2" }, { "hoverinfo": "text", "marker": { "color": "rgb(0,116,217)" }, "mode": "lines", "text": [ "[u'watergate', u'thomas', u'impression', u'kkk', u'stephens', u'show', u'rapture', u'photo', u'for', u'sexist']", [], [], "+++: []<br>---: [u'called', u'responsible', u'particularly', u'libyan', u'sales', u'money', u'supported', u'terrorist', u'month', u'sources']" ], "type": "scatter", "x": [ 105, 105, 125.98297119140625, 125.98297119140625 ], "xaxis": "x", "y": [ 0, 0.5405631185995701, 0.5405631185995701, 0.5368743566366792 ], "yaxis": "y2" }, { "hoverinfo": "text", "marker": { "color": "rgb(0,116,217)" }, "mode": "lines", "text": [ "+++: [u'the', u'set', u'shot', u'national', u'activists', u'site', u'officers', u'authorities', u'fires', u'seen']<br>---: [u'monte', u'homes', u'corps', u'hurricane', u'jurisdiction', u'resistance', u'eminent', u'unrest', u'farms', u'mile']", [], [], "+++: []<br>---: [u'watergate', u'thomas', u'kkk', u'stephens', u'impression', u'rapture', u'photo', u'morons', u'sexist', u'years']" ], "type": "scatter", "x": [ 90, 90, 115.49148559570312, 115.49148559570312 ], "xaxis": "x", "y": [ 0.5239915229525761, 0.5407990711594035, 0.5407990711594035, 0.5405631185995701 ], "yaxis": "y2" }, { "hoverinfo": "text", "marker": { "color": "rgb(0,116,217)" }, "mode": "lines", "text": [ "[u'credible', u'arnaldo', u'code', u'help', u'founder', u'exclusive', u'series', u'global', u'design', u'gavin']", [], [], "[u'saying', u'answers', u'liar', u'opinions', u'photo', u'reporters', u'networks', u'sources', u'paper', u'scott']" ], "type": "scatter", "x": [ 335, 335, 345, 345 ], "xaxis": "x", "y": [ 0, 0.5241246859656508, 0.5241246859656508, 0 ], "yaxis": "y2" }, { "hoverinfo": "text", "marker": { "color": "rgb(0,116,217)" }, "mode": "lines", "text": [ "[u'longer', u'nc', u'office', u'switched', u'september', u'pros', u'copy', u'neilson', u'results', u'technicians']", [], [], "+++: [u'comment', u'google', u'videos', u'appeared', u'series', u'twitter', u'share', u'subscribe', u'video', u'article']<br>---: [u'saying', u'code', u'liar', u'forget', u'founder', u'exclusive', u'dear', u'global', u'danney', u'solutions']" ], "type": "scatter", "x": [ 325, 325, 340, 340 ], "xaxis": "x", "y": [ 0, 0.5477582438343798, 0.5477582438343798, 0.5241246859656508 ], "yaxis": "y2" }, { "hoverinfo": "text", "marker": { "color": "rgb(0,116,217)" }, "mode": "lines", "text": [ "+++: []<br>---: [u'set', u'shot', u'national', u'activists', u'site', u'officers', u'communities', u'fires', u'seen', u'protests']", [], [], "+++: [u'comment', u'use', u'mainstream', u'media', u'comments', u'1', u'2', u'radio', u'editor', u'news']<br>---: [u'45', u'office', u'switched', u'september', u'electoral', u'neilson', u'results', u'technicians', u'years', u'held']" ], "type": "scatter", "x": [ 102.74574279785156, 102.74574279785156, 332.5, 332.5 ], "xaxis": "x", "y": [ 0.5407990711594035, 0.555896060550066, 0.555896060550066, 0.5477582438343798 ], "yaxis": "y2" }, { "hoverinfo": "text", "marker": { "color": "rgb(0,116,217)" }, "mode": "lines", "text": [ "[u'planetary', u'code', u'closely', u'producer', u'photo', u'astronomical', u'queen', u'confirm', u'years', u'discovered']", [], [], "+++: []<br>---: [u'comment', u'use', u'mainstream', u'media', u'comments', u'1', u'2', u'radio', u'editor', u'article']" ], "type": "scatter", "x": [ 75, 75, 217.62287139892578, 217.62287139892578 ], "xaxis": "x", "y": [ 0, 0.5561728330392073, 0.5561728330392073, 0.555896060550066 ], "yaxis": "y2" }, { "hoverinfo": "text", "marker": { "color": "rgb(0,116,217)" }, "mode": "lines", "text": [ "[u'coup', u'checkpoints', u'wakingtimes', u'paragraph', u'jonsdottir', u'knowingly', u'ended', u'lands', u'including', u'parks']", [], [], "+++: []<br>---: [u'science', u'planetary', u'code', u'closely', u'producer', u'photo', u'astronomical', u'queen', u'soon', u'years']" ], "type": "scatter", "x": [ 65, 65, 146.3114356994629, 146.3114356994629 ], "xaxis": "x", "y": [ 0, 0.5564856128519003, 0.5564856128519003, 0.5561728330392073 ], "yaxis": "y2" }, { "hoverinfo": "text", "marker": { "color": "rgb(0,116,217)" }, "mode": "lines", "text": [ "[u'morsi', u'phenomenon', u'founder', u'caused', u'labeled', u'mission', u'actress', u'years', u'alien', u'report']", [], [], "+++: []<br>---: [u'coup', u'checkpoints', u'wakingtimes', u'weapons', u'jonsdottir', u'ended', u'keystone', u'including', u'1962', u'nevada']" ], "type": "scatter", "x": [ 55, 55, 105.65571784973145, 105.65571784973145 ], "xaxis": "x", "y": [ 0, 0.5704763562651556, 0.5704763562651556, 0.5564856128519003 ], "yaxis": "y2" }, { "hoverinfo": "text", "marker": { "color": "rgb(0,116,217)" }, "mode": "lines", "text": [ "[u'1st', u'now', u'jason', u'help', u'ron', u'demand', u'caused', u'executive', u'dollar', u'damage']", [], [], "+++: []<br>---: [u'phenomenon', u'founder', u'caused', u'mission', u'actress', u'years', u'alien', u'report', u'bright', u'swedish']" ], "type": "scatter", "x": [ 45, 45, 80.32785892486572, 80.32785892486572 ], "xaxis": "x", "y": [ 0, 0.5726519085057408, 0.5726519085057408, 0.5704763562651556 ], "yaxis": "y2" }, { "hoverinfo": "text", "marker": { "color": "rgb(0,116,217)" }, "mode": "lines", "text": [ "[u'represent', u'thomas', u'words', u'founder', u'produces', u'rev', u'authors', u'unseen', u'infant', u'rest']", [], [], "+++: []<br>---: [u'now', u'breaking', u'jason', u'help', u'ron', u'caused', u'executive', u'dollar', u'proposes', u'executes']" ], "type": "scatter", "x": [ 35, 35, 62.66392946243286, 62.66392946243286 ], "xaxis": "x", "y": [ 0, 0.5985741306483363, 0.5985741306483363, 0.5726519085057408 ], "yaxis": "y2" }, { "hoverinfo": "text", "marker": { "color": "rgb(0,116,217)" }, "mode": "lines", "text": [ "[u'perspective', u'imploding', u'colleges', u'help', u'founder', u'text', u'rob', u'results', u'bookmark', u'professors']", [], [], "+++: []<br>---: [u'represent', u'thomas', u'birth', u'founder', u'produces', u'child', u'unseen', u'infant', u'rest', u'years']" ], "type": "scatter", "x": [ 25, 25, 48.83196473121643, 48.83196473121643 ], "xaxis": "x", "y": [ 0, 0.6044867266886239, 0.6044867266886239, 0.5985741306483363 ], "yaxis": "y2" }, { "hoverinfo": "text", "marker": { "color": "rgb(0,116,217)" }, "mode": "lines", "text": [ "[u'rtd', u'thomas', u'shot', u'pti', u'sergei', u'ndtv', u'caused', u'kejriwal', u'gun', u'laura']", [], [], "+++: []<br>---: [u'imploding', u'colleges', u'help', u'founder', u'text', u'rob', u'results', u'professors', u'facilities', u'spaces']" ], "type": "scatter", "x": [ 15, 15, 36.915982365608215, 36.915982365608215 ], "xaxis": "x", "y": [ 0, 0.6092748581752581, 0.6092748581752581, 0.6044867266886239 ], "yaxis": "y2" }, { "hoverinfo": "text", "marker": { "color": "rgb(0,116,217)" }, "mode": "lines", "text": [ "[u'urinary', u'fungal', u'molecule', u'facial', u'tincture', u'ginseng', u'sciencedaily', u'zen', u'powders', u'narcotic']", [], [], "+++: []<br>---: [u'rtd', u'thomas', u'shot', u'pti', u'sergei', u'ndtv', u'caused', u'kejriwal', u'officers', u'laura']" ], "type": "scatter", "x": [ 5, 5, 25.957991182804108, 25.957991182804108 ], "xaxis": "x", "y": [ 0, 0.6439303839488679, 0.6439303839488679, 0.6092748581752581 ], "yaxis": "y2" }, { "colorscale": "YIGnBu", "hoverinfo": "x+y+z+text", "text": [ [ "+++ operations, chinese, including, japan, group, ships, nato, systems, east, norway<br>--- ", "+++ world, the, peace, us, long<br>--- pope, global, souls, earth, fear, religious, chinese, lord, thousands, regional", "+++ world, us, long, country<br>--- saying, all, chinese, trying, going, do, regional, stop, coast, joint", "+++ news, use, october<br>--- code, chinese, follow, trunews, access, tv, 0, regional, coast, joint", "+++ force<br>--- fungal, chinese, ginseng, mild, ingredient, activation, regional, coast, joint, countries", "+++ group, government, country, peace, according, attack, anti, security, the<br>--- chinese, protest, riots, black, thousands, protestors, cannon, regional, stop, coast", "+++ news, the, anti, meeting, told<br>--- saying, chinese, debate, tv, tweet, mainstream, regional, watch, coast, joint", "+++ october, north, region, according, pacific, coast, states, near, u, news<br>--- corps, mile, ground, partners, chinese, sheriff, state, thursday, wood, local", "+++ europe, eastern, united, chinese, countries, country, government, asia, states, china<br>--- german, hungary, paris, communist, far, merkel, regional, coast, joint, prime", "+++ october, according, u, news, world, the, south<br>--- chinese, global, month, state, 0, 8, posted, oct, far, regional", "+++ operations, group, government, general, including, president, the<br>--- all, chinese, staff, access, writes, wmw, to, include, activities, far", "+++ october, force, air, near, minister, military, general<br>--- rtd, chinese, battle, soldiers, tweet, thursday, posted, veterans, hit, regional", "+++ use, october, washington, according, long, general, officials, president, news, the<br>--- chinese, probe, discovered, staff, justice, huma, sent, regional, coast, joint", "+++ use, air, however, long, according<br>--- atmosphere, chinese, caused, magnetic, produce, earth, cell, electricity, environment, risk", "+++ united, country, washington, possible, long, states, anti, president, world<br>--- chinese, tweeted, supporter, certainly, going, 8, obama, hope, regional, coast", "+++ group, government, long, defense, u, security<br>--- chinese, wakingtimes, jury, nevada, occupation, edward, fossil, torture, regional, bear", "+++ october, iran, peace, however, u, president, news, war, south<br>--- stephens, sexist, talks, alt, hate, chinese, bush, black, case, regional", "+++ use<br>--- chinese, text, results, children, formating, appears, send, meant, regional, coast", "+++ use, force, government, however, according, states, officials, including, close, security<br>--- evidence, chinese, violation, issued, sheriff, justice, crime, going, local, activities", "+++ anti, use, including<br>--- chinese, cdc, results, skin, children, vaccines, sugar, helps, risk, regional", "+++ country, according, states, officials, u, news, the, told<br>--- chinese, switched, global, results, votes, voter, going, tape, voted, 8", "+++ world, use, possible, long, however<br>--- consider, chinese, focus, issues, current, based, knowledge, means, regional, coast", "+++ force, washington, general, states, world, united, nuclear, eastern, relations, attack<br>--- operations, coup, invasion, alliance, clinton, chinese, presence, neocon, ships, strategic", "+++ united, group, government, country, washington, foreign, states, defense, u, president<br>--- chinese, issues, judges, justice, program, creamer, congressional, cuba, regional, coast", "+++ world, group, according, threat, told<br>--- phenomenon, founder, alien, chinese, extraterrestrial, tv, 0, extraterrestrials, egyptian, regional", "+++ north, washington, according, states, president, news, secretary, told<br>--- chinese, results, democrats, debate, votes, candidates, carolina, michigan, regional, coast", "+++ states, united, group, u, countries, country, region, government, foreign, weapons<br>--- particularly, chinese, gulf, regional, coast, joint, despite, report, governments, saudi", "+++ news, the, us, long, air<br>--- ron, lack, chinese, jay, obamacare, brown, regional, coast, joint, worst", "+++ chinese, countries, government, long, china, news, world, u<br>--- sector, gold, global, dollar, weapons, treasury, street, regional, coast, joint", "+++ australia, however, long, according, near, sea, ship, the, south<br>--- planetary, chinese, queen, discovered, earth, explain, black, regional, coast, famous", "+++ president, nations, anti, countries, country, government, peace, long, foreign, states<br>--- chinese, global, justice, black, mainstream, far, regional, coast, joint, trade", "+++ according, attack, officials, news, the, told<br>--- shot, chinese, allegations, gang, children, suicide, crime, black, woman, regional", "+++ operations, including, group, troops, government, weapons, attack, forces, international, east<br>--- alliance, rebels, campaign, terrorists, washington, strategic, held, fighters, qaeda, situation", "+++ october, told<br>--- shot, chinese, children, father, young, foster, local, wearing, woman, regional", "+++ states, use, the<br>--- founder, children, chinese, father, garden, regional, coast, joint, evolution, heaven" ], [ "+++ world, the, peace, us, long<br>--- chinese, global, souls, earth, fear, religious, pope, lord, thousands, regional", "+++ pope, global, souls, human, existence, fear, religious, death, consciousness, source<br>--- ", "+++ great, right, end, point, away, life, long, live, us, world<br>--- saying, all, pope, global, souls, earth, fear, religious, knowledge, re", "+++ source, today<br>--- code, pope, global, souls, follow, fear, religious, trunews, knowledge, tv", "+++ source, state, mind, life, free<br>--- fungal, pope, ginseng, global, souls, mild, hai, earth, fear, religious", "+++ thousands, peace, state, the, come, day<br>--- pope, global, souls, protest, earth, fear, religious, trying, knowledge, riots", "+++ the, day, truth, times<br>--- saying, pope, global, souls, earth, fear, religious, debate, knowledge, tv", "+++ energy, land, state, sacred<br>--- corps, global, souls, mile, earth, fear, religious, ground, partners, knowledge", "+++ great, death, fact, world, the, called, today, history<br>--- chinese, german, global, souls, hungary, fear, religious, pope, paris, lord", "+++ end, point, global, times, state, world, the, day, today<br>--- pope, souls, month, earth, fear, religious, knowledge, 0, 8, posted", "+++ control, times, source, state, the, order, called, fact<br>--- all, pope, global, souls, earth, fear, religious, staff, consciousness, writes", "+++ day<br>--- rtd, pope, global, souls, battle, earth, fear, religious, knowledge, tweet", "+++ source, state, the, long<br>--- pope, probe, souls, discovered, earth, fear, religious, staff, knowledge, justice", "+++ body, natural, power, nature, light, energy, long, source, human, earth<br>--- atmosphere, pope, caused, magnetic, global, souls, fear, research, religious, knowledge", "+++ great, right, long, called, world, man, day, today, history<br>--- pope, global, souls, earth, fear, tweeted, religious, supporter, certainly, knowledge", "+++ control, death, natural, power, secret, long, state, land, free, instead<br>--- pope, wakingtimes, global, souls, earth, fear, nevada, religious, occupation, knowledge", "+++ peace, times, secret, race, truth, man, book, history<br>--- stephens, global, souls, sexist, talks, earth, alt, hate, pope, bush", "+++ culture, live<br>--- pope, text, global, results, earth, fear, religious, children, formating, knowledge", "+++ control, state, secret, order<br>--- pope, violation, issued, global, souls, earth, fear, religious, consciousness, sheriff", "+++ body, heart, great, natural, day<br>--- pope, cdc, global, results, skin, earth, fear, research, religious, children", "+++ right, global, state, the, believe, day<br>--- pope, switched, results, earth, fear, religious, votes, voter, consciousness, re", "+++ control, life, knowledge, power, point, self, mind, free, reality, society<br>--- consider, pope, global, focus, earth, fear, creative, religious, issues, based", "+++ end, power, us, order, state, world, the, called<br>--- pope, global, souls, earth, fear, religious, knowledge, zone, turkish, bush", "+++ state, right, the<br>--- pope, global, souls, earth, fear, religious, issues, judges, knowledge, justice", "+++ world, secret, history, source<br>--- phenomenon, founder, global, souls, alien, earth, fear, research, religious, pope", "+++ state, race, day, fact, point<br>--- pope, global, results, democrats, earth, fear, religious, debate, votes, knowledge", "+++ world, state, called, human<br>--- particularly, pope, global, souls, earth, fear, religious, knowledge, gulf, hayden", "+++ right, us, away, long, live, free, the, come, order<br>--- ron, lack, souls, earth, fear, religious, pope, jay, obamacare, lord", "+++ global, long, state, free, world, higher<br>--- sector, gold, dollar, souls, earth, fear, religious, chinese, treasury, lord", "+++ ancient, light, long, source, earth, the, called<br>--- planetary, pope, queen, souls, discovered, fear, religious, knowledge, explain, black", "+++ control, right, end, us, power, freedom, self, global, peace, free<br>--- pope, souls, earth, fear, religious, knowledge, justice, true, black, lord", "+++ life, death, men, times, state, the, called, man<br>--- shot, pope, global, allegations, souls, gang, earth, fear, religious, children", "+++ state, the, us<br>--- rebels, pope, global, souls, qaeda, mosul, battle, soldiers, fear, religious", "+++ life, love, away, men, born, day, man<br>--- shot, pope, global, souls, earth, fear, religious, children, knowledge, father", "+++ faith, death, humans, jesus, book, human, the<br>--- founder, global, souls, earth, fear, religious, children, pope, cannabis, father" ], [ "+++ world, us, long, country<br>--- saying, all, chinese, one, believe, going, do, regional, stop, coast", "+++ great, right, end, point, away, life, long, live, us, world<br>--- saying, all, pope, global, souls, earth, fear, religious, knowledge, religion", "+++ saying, all, years, course, yes, believe, ll, actually, better, going<br>--- ", "+++ you<br>--- saying, all, code, follow, trunews, trying, tv, 0, going, posted", "+++ and, life<br>--- saying, all, fungal, ginseng, mild, trying, cannabis, going, rahul, ingredient", "+++ country, stop, in, trying, come, day<br>--- saying, all, protest, riots, going, black, thousands, protestors, town, cannon", "+++ real, saying, day, talk<br>--- all, debate, trying, tv, tweet, going, posted, do, mainstream, watch", "+++ says, we, stop<br>--- saying, all, corps, mile, ground, partners, trying, sheriff, state, thursday", "+++ and, them, says, country, great, world<br>--- saying, all, chinese, german, hungary, trying, paris, going, communist, he", "+++ says, end, point, years, world, day<br>--- saying, all, global, month, trying, state, 0, going, 8, he", "+++ real, and, all, big, work, years, in<br>--- saying, staff, trying, writes, wmw, to, going, include, activities, far", "+++ m, day<br>--- rtd, all, saying, battle, soldiers, trying, tweet, thursday, going, rss", "+++ i, know, long<br>--- saying, all, probe, discovered, staff, believe, justice, going, huma, sent", "+++ long, years<br>--- saying, atmosphere, caused, magnetic, all, earth, trying, electricity, environment, going", "+++ again, great, right, says, i, things, this, country, m, long<br>--- saying, all, tweeted, supporter, certainly, believe, 8, hope, do, stop", "+++ and, long<br>--- saying, all, wakingtimes, nevada, occupation, trying, edward, bundy, do, torture", "+++ didn, good, years<br>--- saying, all, stephens, sexist, talks, alt, hate, trying, bush, going", "+++ what, sure, want, i, better, start, live, way, in, need<br>--- saying, all, text, results, children, formating, trying, send, going, meant", "+++ going<br>--- saying, all, violation, issued, believe, sheriff, justice, crime, local, activities", "+++ great, day, best, d<br>--- saying, all, cdc, results, skin, children, trying, sugar, going, helps", "+++ real, think, right, says, d, i, country, years, re, going<br>--- saying, all, switched, global, results, votes, voter, tape, voted, 8", "+++ real, life, good, point, feel, things, work, long, one, better<br>--- saying, all, consider, focus, issues, believe, based, knowledge, going, do", "+++ we, end, no, country, that, us, course, so, world, think<br>--- saying, all, trying, zone, turkish, bush, going, obama, do, stop", "+++ we, right, d, i, country, work, one<br>--- saying, all, issues, judges, believe, justice, program, creamer, obama, congressional", "+++ world, years<br>--- saying, all, phenomenon, founder, alien, trying, extraterrestrial, tv, 0, going", "+++ person, day, point<br>--- saying, all, results, democrats, debate, votes, trying, going, candidates, obama", "+++ world, there, country<br>--- saying, all, particularly, trying, gulf, hayden, going, do, stop, despite", "+++ we, right, d, big, away, live, long, re, bad, sure<br>--- saying, all, ron, lack, trying, jay, obamacare, going, obama, brown", "+++ real, big, years, long, world<br>--- sector, saying, all, gold, global, dollar, trying, chinese, going, treasury", "+++ place, look, long, years<br>--- planetary, all, saying, queen, discovered, earth, trying, explain, going, black", "+++ real, and, them, right, end, country, long, years, course, so<br>--- saying, all, global, justice, going, black, do, mainstream, far, stop", "+++ place, life, stop, years<br>--- saying, all, shot, allegations, gang, children, suicide, crime, going, black", "+++ us<br>--- saying, all, rebels, qaeda, mosul, battle, soldiers, trying, turkish, daesh", "+++ away, says, day, life, years<br>--- saying, all, shot, children, believe, father, young, foster, he, local", "+++ d, years<br>--- saying, all, founder, children, one, believe, cannabis, father, going, do" ], [ "+++ news, use, october<br>--- code, chinese, follow, trunews, weapons, tv, 0, regional, coast, joint", "+++ source, today<br>--- code, pope, global, souls, earth, fear, religious, trunews, knowledge, tv", "+++ you<br>--- saying, all, code, follow, trunews, trying, tv, 0, going, he", "+++ code, help, follow, alternative, trunews, web, 26, 27, tv, 28<br>--- ", "+++ 10, www, http, breaking, content, source, com<br>--- fungal, ginseng, mild, code, hai, follow, trunews, cannabis, tv, 0", "+++ org<br>--- code, protest, follow, trunews, tv, riots, 0, black, thousands, protestors", "+++ comment, information, account, google, network, videos, views, tv, share, twitter<br>--- saying, code, follow, debate, tweet, 0, mainstream, watch, reporters, report", "+++ october, support, site, access, news, company<br>--- code, corps, mile, follow, trunews, ground, partners, sheriff, tv, state", "+++ news, today<br>--- code, chinese, german, hungary, trunews, paris, 0, communist, population, far", "+++ 10, 27, support, 1, 0, 2, news, november, october, data<br>--- code, global, month, follow, trunews, content, tv, state, list, 8", "+++ a, 1, e, support, internet, access, source, published, policy, post<br>--- all, code, follow, trunews, staff, tv, writes, wmw, to, device", "+++ a, 26, october, 2, november, posted<br>--- rtd, code, battle, soldiers, trunews, tv, tweet, thursday, 0, veterans", "+++ information, account, october, e, use, related, source, news, email<br>--- code, probe, discovered, follow, trunews, staff, justice, 0, huma, sent", "+++ device, source, use, published<br>--- atmosphere, code, caused, magnetic, earth, trunews, cell, electricity, environment, 0", "+++ 10, november, share, today<br>--- code, follow, tweeted, supporter, certainly, tv, 0, going, 8, posted", "+++ co, published<br>--- code, wakingtimes, follow, nevada, trunews, occupation, tv, 0, vnn, edward", "+++ news, november, october, com<br>--- code, stephens, sexist, talks, follow, alt, hate, trunews, tv, 0", "+++ comment, 10, use, help, 1, 2, link, a, address, post<br>--- code, text, results, follow, children, formating, tv, send, 0, vnn", "+++ information, phone, search, use, at<br>--- code, violation, issued, legal, follow, trunews, sheriff, justice, crime, 0", "+++ 1, use, 2, help<br>--- code, cdc, results, skin, follow, children, access, tv, sugar, 0", "+++ news, comments, posted<br>--- code, switched, global, results, follow, trunews, votes, voter, tv, 0", "+++ information, use, help, today, social<br>--- code, consider, focus, follow, trunews, issues, access, based, knowledge, tv", "+++ policy, post<br>--- code, follow, trunews, access, zone, turkish, tv, 0, bush, posted", "+++ policy, list<br>--- code, legal, follow, trunews, issues, judges, justice, 0, program, creamer", "+++ articles, source, tv, related, 0, information, data, posted<br>--- code, phenomenon, founder, alien, follow, trunews, extraterrestrial, extraterrestrials, egyptian, facebook", "+++ news, november, support<br>--- code, results, democrats, follow, debate, votes, tv, 0, candidates, obama", "+++ rt, policy, support, published<br>--- code, particularly, publish, follow, trunews, access, gulf, tv, 0, facebook", "+++ news, help, phone<br>--- code, ron, lack, follow, trunews, companies, jay, tv, obamacare, 0", "+++ policy, news, company, companies<br>--- sector, code, gold, global, dollar, follow, trunews, current, chinese, tv", "+++ a, source, 2<br>--- planetary, code, queen, discovered, earth, trunews, tv, explain, 0, black", "+++ policy, support, class, today, social<br>--- code, global, follow, trunews, justice, 0, black, mainstream, far, facebook", "+++ news<br>--- code, shot, allegations, gang, follow, children, suicide, tv, crime, 0", "+++ support, october<br>--- code, rebels, qaeda, mosul, battle, soldiers, trunews, weapons, turkish, tv", "+++ october, help, share, daily, social, november, posted<br>--- code, shot, follow, children, tv, father, young, 0, foster, local", "+++ a, use, related, author<br>--- code, founder, follow, children, tv, father, 0, garden, facebook, evolution" ], [ "+++ force<br>--- fungal, chinese, ginseng, mild, ingredient, activation, regional, coast, joint, korea", "+++ source, state, mind, life, free<br>--- fungal, pope, ginseng, global, souls, mild, earth, fear, religious, knowledge", "+++ and, life<br>--- saying, all, fungal, ginseng, mild, trying, cannabis, going, rahul, ingredient", "+++ 10, www, http, breaking, content, source, com<br>--- code, ginseng, mild, fungal, follow, trunews, tv, 0, rahul, ingredient", "+++ fungal, ginseng, brain, mild, folic, 25, 22, source, ims, 2015<br>--- ", "+++ state<br>--- fungal, ginseng, protest, riots, black, thousands, ingredient, cannon, activation, stop", "+++ channel, campaign<br>--- saying, fungal, ginseng, mild, debate, tv, tweet, rahul, ingredient, mainstream", "+++ state<br>--- fungal, corps, ginseng, mild, mile, ground, partners, sheriff, thursday, wood", "+++ and<br>--- fungal, chinese, german, mild, hungary, paris, ginseng, communist, rahul, ingredient", "+++ 2015, 25, state, 22, 10<br>--- fungal, ginseng, global, month, mild, increase, 0, 8, population, oct", "+++ and, source, state<br>--- all, fungal, ginseng, mild, staff, writes, wmw, to, include, ingredient", "+++ force<br>--- rtd, fungal, ginseng, mild, battle, soldiers, tweet, thursday, rahul, veterans", "+++ 2015, source, state, campaign<br>--- fungal, ginseng, probe, discovered, mild, staff, justice, huma, sent, ingredient", "+++ source, cells, health<br>--- atmosphere, fungal, ginseng, caused, magnetic, mild, earth, electricity, environment, ingredient", "+++ 10, campaign<br>--- fungal, ginseng, mild, tweeted, supporter, certainly, going, 8, obama, hope", "+++ and, state, free<br>--- fungal, ginseng, wakingtimes, mild, nevada, occupation, edward, keystone, rahul, ingredient", "+++ com<br>--- fungal, stephens, ginseng, sexist, mild, talks, alt, hate, bush, black", "+++ 10<br>--- fungal, ginseng, text, results, mild, children, formating, 3, send, ingredient", "+++ state, force<br>--- fungal, violation, issued, mild, sheriff, justice, crime, ginseng, going, local", "+++ brain, health<br>--- fungal, cdc, ginseng, results, mild, skin, children, content, 3, sugar", "+++ jones, state<br>--- fungal, switched, ginseng, global, results, mild, votes, voter, re, going", "+++ life, mind, free<br>--- fungal, consider, ginseng, focus, mild, issues, based, knowledge, ingredient, means", "+++ state, force<br>--- fungal, ginseng, mild, zone, turkish, bush, obama, ingredient, activation, tanks", "+++ 2015, state, health, campaign<br>--- fungal, ginseng, mild, issues, judges, justice, program, creamer, rahul, congressional", "+++ 2015, source, health, meat, lab<br>--- fungal, phenomenon, founder, ginseng, alien, mild, extraterrestrial, tv, 0, posted", "+++ state, campaign<br>--- fungal, ginseng, results, mild, democrats, debate, votes, candidates, rahul, ingredient", "+++ 2015, state, campaign<br>--- fungal, particularly, ginseng, mild, gulf, cannabis, ingredient, activation, despite, report", "+++ health, free<br>--- fungal, ron, ginseng, lack, mild, jay, obamacare, obama, ingredient, brown", "+++ state, free<br>--- sector, fungal, gold, ginseng, global, dollar, mild, content, chinese, treasury", "+++ source<br>--- planetary, fungal, ginseng, queen, discovered, mild, earth, explain, black, ingredient", "+++ and, state, free<br>--- fungal, ginseng, global, mild, justice, black, ingredient, mainstream, far, activation", "+++ state, life<br>--- fungal, shot, ginseng, allegations, mild, gang, children, suicide, crime, black", "+++ state, campaign<br>--- fungal, rebels, ginseng, mild, qaeda, mosul, battle, soldiers, turkish, iraqi", "+++ life<br>--- fungal, shot, ginseng, mild, children, father, young, foster, rahul, local", "+++ cannabis<br>--- fungal, founder, ginseng, mild, children, father, ingredient, garden, activation, evolution" ], [ "+++ group, government, country, peace, according, attack, anti, security, the<br>--- chinese, protest, riots, black, thousands, protestors, cannon, regional, stop, coast", "+++ thousands, peace, state, the, come, day<br>--- pope, global, souls, protest, earth, fear, religious, believe, knowledge, riots", "+++ country, stop, in, trying, come, day<br>--- saying, all, protest, riots, going, black, thousands, protestors, do, cannon", "+++ org<br>--- code, protest, follow, trunews, tv, riots, 0, black, thousands, protestors", "+++ state<br>--- fungal, ginseng, mild, riots, black, thousands, ingredient, cannon, activation, stop", "+++ soros, wednesday, protest, group, riots, black, thousands, protestors, non, government<br>--- ", "+++ week, the, anti, day<br>--- saying, protest, debate, tv, tweet, riots, black, thousands, protestors, mainstream", "+++ camp, police, riot, rights, national, activists, stop, protesters, according, state<br>--- corps, protest, mile, ground, partners, sheriff, thursday, riots, wood, black", "+++ city, migrants, government, country, national, the, cities<br>--- chinese, german, protest, hungary, paris, riots, black, communist, thousands, protestors", "+++ week, according, state, 000, home, the, day, change<br>--- global, month, protest, riots, 0, black, 8, posted, thousands, oct", "+++ non, set, group, government, in, state, 000, members, team, the<br>--- all, protest, staff, writes, wmw, riots, to, black, include, local", "+++ town, residents, national, day, wednesday<br>--- rtd, protest, battle, soldiers, tweet, thursday, riots, black, posted, veterans", "+++ the, state, 000, according<br>--- probe, discovered, protest, staff, justice, riots, black, huma, thousands, sent", "+++ food, non, california, according<br>--- atmosphere, caused, magnetic, protest, earth, electricity, environment, black, thousands, protestors", "+++ in, country, violence, wednesday, nation, anti, team, following, america, day<br>--- protest, tweeted, supporter, certainly, riots, going, black, 8, obama, thousands", "+++ group, government, national, surveillance, state, security, armed<br>--- wakingtimes, protest, nevada, occupation, riots, edward, black, thousands, protestors, torture", "+++ national, peace, black, george, team<br>--- stephens, sexist, protest, talks, alt, hate, riots, bush, thousands, protestors", "+++ community, in<br>--- text, results, protest, children, formating, appears, state, send, riots, black", "+++ police, government, national, rights, according, state, members, authorities, security, local<br>--- violation, issued, protest, sheriff, justice, crime, riots, going, black, thousands", "+++ food, anti, day<br>--- cdc, results, protest, skin, children, 3, sugar, riots, black, helps", "+++ country, soros, according, day, state, the, george<br>--- switched, global, results, protest, votes, voter, riots, going, tape, voted", "+++ home, continue, lives, community, change<br>--- consider, focus, protest, issues, based, knowledge, riots, black, thousands, protestors", "+++ government, country, state, attack, security, america, the, change<br>--- protest, zone, turkish, riots, bush, black, thousands, protestors, town, cannon", "+++ group, rights, country, national, government, nation, state, 000, california, members<br>--- protest, issues, judges, justice, riots, program, black, thousands, congressional, protestors", "+++ national, group, according<br>--- phenomenon, founder, alien, protest, extraterrestrial, tv, riots, 0, black, thousands", "+++ week, national, according, state, day, change<br>--- results, protest, democrats, debate, votes, riots, candidates, thousands, carolina, cannon", "+++ group, government, country, rights, state, 000, groups<br>--- particularly, protest, gulf, riots, black, thousands, protestors, organizations, cannon, stop", "+++ city, the, come, crisis<br>--- ron, lack, protest, jay, obamacare, riots, black, thousands, protestors, brown", "+++ state, crisis, government<br>--- sector, gold, global, dollar, protest, chinese, riots, black, treasury, thousands", "+++ the, left, black, according, team<br>--- planetary, queen, discovered, protest, earth, explain, riots, thousands, protestors, cannon", "+++ revolution, government, country, national, rights, peace, nation, state, black, groups<br>--- global, protest, trying, justice, riots, local, protestors, mainstream, far, cannon", "+++ city, police, lives, stop, according, officers, state, black, home, the<br>--- shot, allegations, protest, gang, children, suicide, crime, riots, thousands, protestors", "+++ city, group, groups, government, according, state, 000, opposition, security, attack<br>--- rebels, protest, qaeda, mosul, battle, soldiers, turkish, riots, iraqi, black", "+++ home, local, day, left<br>--- shot, protest, children, father, young, riots, foster, black, protestors, wearing", "+++ the, non, california, national, san<br>--- founder, protest, children, father, riots, black, thousands, protestors, plants, garden" ], [ "+++ news, the, anti, meeting, told<br>--- saying, chinese, debate, tv, tweet, mainstream, regional, watch, coast, joint", "+++ the, day, truth, times<br>--- saying, pope, global, souls, earth, fear, religious, debate, knowledge, tv", "+++ real, saying, day, talk<br>--- all, debate, trying, tv, tweet, going, he, do, mainstream, stop", "+++ comment, information, account, google, network, videos, views, tv, list, twitter<br>--- saying, code, follow, trunews, tweet, 0, email, mainstream, watch, reporters", "+++ channel, campaign<br>--- saying, fungal, ginseng, mild, hai, debate, tv, tweet, posted, ingredient", "+++ week, the, anti, day<br>--- saying, protest, debate, tv, tweet, riots, black, thousands, protestors, mainstream", "+++ saying, keefe, sources, scott, debate, tv, tweet, real, mainstream, views<br>--- ", "+++ project, news, sites<br>--- saying, corps, mile, debate, ground, partners, sheriff, tv, tweet, state", "+++ news, the, public, propaganda<br>--- saying, chinese, german, hungary, debate, paris, tweet, communist, population, mainstream", "+++ week, reported, times, p, report, news, the, posted, day, shows<br>--- saying, global, month, debate, tv, tweet, state, 0, 8, oct", "+++ real, the, media, published, times, project, york, internet, article, post<br>--- saying, all, debate, staff, tv, writes, wmw, to, include, activities", "+++ reported, tweet, p, sources, day, posted<br>--- rtd, saying, battle, soldiers, debate, tv, thursday, veterans, hit, mainstream", "+++ information, account, released, campaign, reported, sources, york, news, the, public<br>--- saying, probe, discovered, debate, staff, justice, tweet, huma, sent, mainstream", "+++ published<br>--- saying, atmosphere, caused, magnetic, earth, debate, electricity, tweet, environment, risk", "+++ article, share, anti, day, campaign<br>--- saying, tweeted, supporter, certainly, tv, tweet, going, 8, he, hope", "+++ conspiracy, published<br>--- saying, wakingtimes, nevada, debate, occupation, tv, tweet, edward, bundy, mainstream", "+++ story, media, times, stories, york, truth, news<br>--- saying, stephens, sexist, talks, alt, hate, debate, tv, tweet, bush", "+++ comment, post<br>--- saying, text, results, children, formating, tv, tweet, send, meant, mainstream", "+++ information, sources, reported, public, told<br>--- saying, violation, issued, debate, sheriff, justice, daily, tweet, crime, going", "+++ anti, day<br>--- saying, cdc, results, skin, children, tv, tweet, sugar, helps, posted", "+++ real, wnd, reporting, reported, press, news, the, posted, day, told<br>--- saying, switched, global, results, debate, votes, voter, tv, tweet, going", "+++ real, article, information, social<br>--- saying, consider, focus, debate, issues, based, knowledge, tv, tweet, mainstream", "+++ media, post, propaganda, the<br>--- saying, debate, zone, turkish, tv, tweet, bush, posted, mainstream, watch", "+++ speech, the, list, york, campaign<br>--- saying, debate, issues, judges, justice, tweet, program, creamer, posted, congressional", "+++ information, released, tv, reported, video, report, posted, told<br>--- saying, phenomenon, founder, alien, debate, extraterrestrial, tweet, 0, extraterrestrials, mainstream", "+++ week, campaign, media, day, speech, cnn, news, debate, told<br>--- saying, results, democrats, votes, tv, tweet, candidates, obama, carolina, mainstream", "+++ journalists, campaign, media, narrative, report, published, interview<br>--- saying, particularly, debate, gulf, tv, tweet, mainstream, watch, facebook, reporters", "+++ report, cnn, the, online, news<br>--- saying, ron, lack, debate, jay, tv, tweet, obamacare, posted, brown", "+++ real, news<br>--- sector, saying, gold, global, dollar, debate, chinese, tv, tweet, videos", "+++ image, the<br>--- planetary, saying, queen, discovered, earth, debate, tv, explain, black, mainstream", "+++ real, liberal, mainstream, media, public, anti, social, the, propaganda<br>--- saying, global, debate, justice, tweet, black, far, watch, facebook, reporters", "+++ story, times, reported, report, news, the, public, told<br>--- saying, shot, allegations, gang, children, suicide, tv, tweet, crime, black", "+++ the, campaign<br>--- saying, rebels, qaeda, mosul, battle, soldiers, debate, turkish, tv, tweet", "+++ story, share, daily, morning, video, social, posted, day, told<br>--- saying, shot, children, tv, tweet, father, young, foster, local, wearing", "+++ movie, the, youtube<br>--- saying, founder, children, tv, tweet, father, garden, watch, facebook, reporters" ], [ "+++ october, north, region, according, pacific, coast, states, near, u, news<br>--- chinese, mile, ground, weapons, corps, sheriff, 3, thursday, wood, local", "+++ energy, land, state, sacred<br>--- pope, global, souls, mile, earth, fear, religious, ground, partners, knowledge", "+++ says, we, stop<br>--- saying, all, corps, mile, ground, partners, trying, sheriff, state, thursday", "+++ october, support, site, access, news, company<br>--- code, corps, mile, follow, trunews, ground, partners, sheriff, tv, 3", "+++ state<br>--- fungal, corps, ginseng, mild, mile, ground, partners, sheriff, thursday, wood", "+++ camp, police, riot, rights, national, activists, stop, according, protesters, state<br>--- corps, protest, mile, ground, partners, sheriff, thursday, riots, wood, black", "+++ project, news, sites<br>--- saying, corps, mile, debate, ground, partners, sheriff, tv, tweet, 3", "+++ corps, september, dapl, mile, dakota, ground, partners, police, sheriff, lake<br>--- ", "+++ states, news, national, says<br>--- chinese, german, mile, hungary, ground, partners, corps, sheriff, paris, 3", "+++ october, says, september, support, 3, according, state, u, news, south<br>--- corps, global, month, mile, ground, partners, sheriff, thursday, 0, wood", "+++ project, support, private, access, state, line, company<br>--- all, corps, mile, staff, partners, sheriff, writes, wmw, thursday, to", "+++ october, army, national, reports, near, indian, thursday, line<br>--- rtd, corps, mile, battle, soldiers, ground, partners, sheriff, tweet, state", "+++ october, according, private, state, reports, department, news<br>--- corps, probe, discovered, mile, july, staff, partners, sheriff, justice, thursday", "+++ area, energy, gas, according, water, environmental, clean<br>--- atmosphere, corps, caused, magnetic, produce, mile, earth, ground, partners, sheriff", "+++ states, americans, american, months, says<br>--- corps, mile, tweeted, supporter, ground, partners, certainly, sheriff, state, thursday", "+++ pipeline, oil, state, national, gas, protect, american, land, u<br>--- corps, wakingtimes, mile, nevada, occupation, partners, sheriff, thursday, edward, local", "+++ october, national, american, u, news, south<br>--- stephens, sexist, mile, talks, alt, hate, ground, partners, corps, sheriff", "+++ 3, american, native<br>--- corps, text, results, mile, children, formating, ground, partners, sheriff, send", "+++ enforcement, police, sheriff, rights, national, arrested, according, reports, county, state<br>--- corps, violation, issued, mile, ground, partners, charges, justice, thursday, crime", "+++ water, 3, oil<br>--- corps, cdc, results, mile, skin, children, ground, access, sheriff, thursday", "+++ states, says, according, reports, county, state, u, news, line<br>--- corps, switched, global, results, mile, ground, partners, votes, voter, sheriff", "+++ <br>--- consider, corps, focus, mile, issues, ground, partners, based, knowledge, sheriff", "+++ states, american, state, u, we<br>--- corps, mile, ground, partners, zone, turkish, thursday, bush, wood, local", "+++ we, rights, national, state, states, american, americans, department, u, law<br>--- corps, mile, issues, ground, partners, judges, sheriff, justice, thursday, program", "+++ national, according, reports<br>--- phenomenon, founder, alien, mile, ground, partners, corps, sheriff, extraterrestrial, tv", "+++ north, national, state, according, states, american, americans, news, support<br>--- corps, results, mile, democrats, debate, ground, partners, votes, sheriff, thursday", "+++ oil, rights, support, state, states, american, u, region<br>--- particularly, corps, mile, ground, weapons, gulf, thursday, wood, local, stop", "+++ news, we, americans<br>--- ron, lack, mile, ground, partners, corps, sheriff, jay, obamacare, 3", "+++ oil, company, private, state, u, news<br>--- sector, gold, global, dollar, mile, ground, current, chinese, sheriff, thursday", "+++ near, area, lake, south, according<br>--- planetary, corps, queen, discovered, mile, earth, ground, partners, sheriff, explain", "+++ rights, support, state, states, american, americans, u, national<br>--- corps, global, mile, ground, partners, sheriff, justice, thursday, wood, black", "+++ police, arrested, began, stop, according, reports, state, department, news<br>--- shot, corps, allegations, mile, gang, children, ground, partners, suicide, sheriff", "+++ october, area, region, army, according, reports, state, support<br>--- rebels, corps, qaeda, mosul, battle, soldiers, ground, weapons, sheriff, turkish", "+++ says, october, local<br>--- shot, corps, mile, children, ground, partners, sheriff, father, young, thursday", "+++ states, national<br>--- founder, mile, children, ground, partners, corps, sheriff, father, 3, thursday" ], [ "+++ europe, eastern, united, chinese, countries, country, government, asia, states, china<br>--- german, hungary, paris, communist, far, merkel, regional, coast, joint, prime", "+++ great, death, fact, world, the, called, today, history<br>--- pope, german, global, souls, earth, fear, religious, chinese, paris, lord", "+++ and, them, says, country, great, world<br>--- saying, all, chinese, german, hungary, trying, paris, going, communist, population", "+++ news, today<br>--- code, chinese, german, follow, trunews, tv, 0, communist, population, far", "+++ and<br>--- fungal, chinese, ginseng, mild, hungary, paris, german, communist, population, ingredient", "+++ city, migrants, government, country, national, the, cities<br>--- chinese, german, protest, hungary, paris, riots, black, communist, thousands, protestors", "+++ news, the, public, propaganda<br>--- saying, chinese, german, hungary, debate, tv, tweet, communist, population, mainstream", "+++ states, news, national, says<br>--- corps, german, mile, hungary, ground, partners, chinese, sheriff, paris, state", "+++ chinese, german, london, hungary, death, paris, communist, east, happened, them<br>--- ", "+++ says, far, second, news, world, the, today, population<br>--- chinese, german, global, month, hungary, paris, state, 0, 8, communist", "+++ and, government, far, public, the, called, fact<br>--- all, chinese, german, hungary, staff, paris, writes, wmw, to, communist", "+++ national, italy, minister<br>--- rtd, chinese, german, battle, soldiers, paris, tweet, thursday, communist, population", "+++ news, the, public<br>--- chinese, german, probe, discovered, hungary, staff, justice, communist, huma, sent", "+++ known, similar<br>--- atmosphere, chinese, german, caused, magnetic, earth, electricity, environment, communist, risk", "+++ great, united, says, country, states, world, called, today, history<br>--- chinese, german, hungary, tweeted, supporter, certainly, paris, going, 8, communist", "+++ and, death, government, national, later, history<br>--- chinese, german, wakingtimes, hungary, nevada, occupation, paris, edward, communist, population", "+++ news, national, later, war, history<br>--- stephens, german, sexist, talks, hungary, alt, hate, chinese, paris, bush", "+++ jewish, jews, english<br>--- chinese, german, text, results, hungary, children, formating, paris, send, communist", "+++ states, national, citizens, public, government<br>--- chinese, violation, issued, hungary, sheriff, justice, crime, german, going, communist", "+++ known, great, women<br>--- chinese, cdc, german, results, skin, hungary, children, paris, sugar, helps", "+++ says, jewish, country, states, news, the, similar<br>--- chinese, switched, german, global, results, hungary, votes, voter, paris, going", "+++ world, result, today<br>--- consider, chinese, german, focus, hungary, issues, based, knowledge, paris, communist", "+++ europe, eastern, united, countries, country, government, war, states, western, invasion<br>--- chinese, german, hungary, zone, turkish, paris, bush, communist, obama, far", "+++ citizens, government, country, national, muslim, states, second, united, the<br>--- chinese, german, hungary, issues, judges, justice, program, creamer, communist, population", "+++ world, national, later, history<br>--- phenomenon, founder, german, alien, hungary, chinese, extraterrestrial, tv, 0, communist", "+++ states, news, national, fact<br>--- chinese, german, results, democrats, hungary, debate, votes, paris, candidates, communist", "+++ united, countries, country, government, africa, british, called, states, western, world<br>--- particularly, chinese, german, hungary, gulf, paris, communist, far, merkel, despite", "+++ news, the, leader, city<br>--- ron, german, lack, hungary, chinese, jay, paris, obamacare, communist, population", "+++ chinese, countries, government, china, news, world<br>--- sector, gold, german, global, dollar, prices, hungary, paris, treasury, communist", "+++ known, the, called, came, century<br>--- planetary, chinese, german, queen, discovered, earth, paris, explain, black, communist", "+++ and, them, citizens, countries, far, country, national, government, war, states<br>--- chinese, german, global, hungary, justice, black, communist, mainstream, merkel, trade", "+++ city, death, later, public, news, the, called, happened<br>--- shot, chinese, german, allegations, gang, hungary, children, suicide, paris, crime", "+++ city, eastern, jewish, west, government, muslim, western, the, east, war<br>--- rebels, chinese, german, qaeda, mosul, battle, soldiers, turkish, paris, daesh", "+++ muslim, says, came, later, women<br>--- shot, chinese, german, hungary, children, paris, father, young, foster, communist", "+++ states, national, death, the<br>--- founder, german, baby, hungary, children, chinese, paris, father, communist, garden" ], [ "+++ october, according, u, news, world, the, south<br>--- chinese, global, month, state, 0, 8, population, oct, far, regional", "+++ end, point, global, times, state, world, the, day, today<br>--- pope, souls, month, earth, fear, religious, knowledge, 0, lord, population", "+++ says, end, point, years, world, day<br>--- saying, all, global, month, trying, state, 0, going, 8, he", "+++ 10, 27, support, 1, 0, 2, news, november, october, data<br>--- code, global, month, follow, trunews, increase, tv, state, list, 8", "+++ 2015, 25, state, 22, 10<br>--- fungal, ginseng, global, month, mild, content, 0, 8, population, oct", "+++ week, according, state, 000, home, the, day, change<br>--- global, month, protest, riots, 0, black, 8, posted, thousands, oct", "+++ week, reported, times, p, report, news, the, posted, day, shows<br>--- saying, global, month, debate, tv, tweet, state, 0, 8, oct", "+++ october, says, september, support, state, according, 3, u, news, south<br>--- corps, global, month, mile, ground, partners, sheriff, thursday, 0, wood", "+++ says, far, second, news, world, the, today, population<br>--- chinese, german, global, month, hungary, paris, state, 0, 8, communist", "+++ september, global, years, previous, 25, 27, 20, 21, 22, 23<br>--- ", "+++ far, support, million, times, 1, state, 000, the, years<br>--- all, global, month, staff, writes, wmw, 0, 8, include, oct", "+++ october, reported, 30, p, 2, 5, 4, 6, november, posted<br>--- rtd, global, month, battle, soldiers, tweet, 3, thursday, 0, 8", "+++ october, according, reported, state, 000, 2015, news, the<br>--- probe, month, discovered, staff, justice, 0, 8, huma, oct, sent", "+++ low, high, study, according, years<br>--- atmosphere, caused, magnetic, global, month, earth, electricity, state, environment, 0", "+++ 11, 10, says, world, years, likely, year, 9, 8, november<br>--- global, month, tweeted, supporter, certainly, state, 0, going, he, oct", "+++ 11, state, u, year<br>--- wakingtimes, global, month, nevada, occupation, 0, edward, 8, bundy, oct", "+++ 11, october, times, u, half, 9, news, november, years, south<br>--- stephens, global, sexist, month, talks, alt, hate, state, 0, bush", "+++ 10, 1, 3, 2, 5, 4<br>--- text, global, results, month, children, formating, send, 0, 8, posted", "+++ high, reported, state, according, year<br>--- violation, issued, global, month, sheriff, justice, crime, 0, going, 8", "+++ high, study, increase, 3, 2, 5, 4, 1, day, low<br>--- cdc, global, results, month, skin, children, sugar, 0, helps, 8", "+++ says, global, according, years, reported, state, u, news, 8, the<br>--- switched, results, month, votes, voter, 0, going, tape, voted, oct", "+++ point, number, change, home, world, today<br>--- consider, global, focus, month, issues, based, knowledge, state, 0, 8", "+++ end, state, u, 2014, world, the, change<br>--- global, month, zone, turkish, 0, bush, 8, population, oct, far", "+++ 20, state, second, 000, u, year, 2015, the, change<br>--- global, month, issues, judges, justice, 0, program, creamer, 8, population", "+++ 2015, reported, according, years, 0, report, world, data, posted<br>--- phenomenon, founder, global, month, alien, extraterrestrial, tv, state, 8, oct", "+++ week, likely, point, support, percent, according, early, record, state, points<br>--- global, results, month, democrats, debate, votes, 0, candidates, 8, obama", "+++ 9, support, million, number, report, state, 000, u, year, 2015<br>--- particularly, global, month, gulf, 0, 8, posted, oct, far, 12", "+++ report, 2014, news, the, previous<br>--- ron, lack, month, jay, obamacare, state, 0, 8, obama, oct", "+++ high, global, state, years, increase, rate, u, low, year, world<br>--- sector, gold, dollar, month, chinese, 0, treasury, 8, posted, oct", "+++ ago, study, according, years, 2, 5, the, south<br>--- planetary, queen, month, discovered, earth, explain, 3, 0, black, 8", "+++ end, far, support, global, years, state, u, today, world, the<br>--- month, justice, 0, black, 8, posted, oct, mainstream, 12, nearly", "+++ ago, according, years, reported, state, year, report, home, news, times<br>--- shot, global, allegations, month, gang, children, suicide, crime, 0, black", "+++ october, support, according, state, 000, the<br>--- rebels, global, month, qaeda, mosul, battle, soldiers, turkish, daesh, iraqi", "+++ october, says, 6, years, year, home, november, day, posted<br>--- shot, global, month, children, father, young, 0, foster, 8, local", "+++ ago, the, study, period, years<br>--- founder, global, month, children, father, state, 0, 8, population, oct" ], [ "+++ operations, group, government, general, including, president, the<br>--- all, chinese, staff, weapons, writes, wmw, to, include, activities, far", "+++ control, times, source, state, the, order, called, fact<br>--- all, pope, global, souls, earth, fear, religious, staff, office, writes", "+++ real, and, all, big, work, years, in<br>--- saying, staff, trying, writes, wmw, to, going, include, activities, far", "+++ a, 1, e, support, internet, access, source, published, policy, post<br>--- all, code, follow, trunews, staff, tv, writes, wmw, to, include", "+++ and, source, state<br>--- all, fungal, ginseng, mild, staff, writes, wmw, to, include, ingredient", "+++ non, set, group, government, in, state, 000, members, team, the<br>--- all, protest, staff, writes, wmw, riots, to, black, include, thousands", "+++ real, the, media, published, times, project, york, internet, article, post<br>--- saying, all, debate, staff, tv, tweet, wmw, to, include, activities", "+++ project, company, private, access, state, line, support<br>--- all, corps, mile, ground, partners, sheriff, writes, wmw, thursday, to", "+++ and, government, far, public, the, called, fact<br>--- all, chinese, german, hungary, staff, paris, writes, wmw, to, communist", "+++ far, support, million, times, 1, state, 000, the, years<br>--- all, global, month, staff, writes, wmw, to, 8, posted, oct", "+++ operations, all, office, money, years, including, worked, staff, 1, group<br>--- ", "+++ a, line, john, chief, general<br>--- rtd, all, battle, soldiers, staff, tweet, wmw, thursday, to, include", "+++ foundation, e, personal, private, general, source, state, 000, york, president<br>--- all, probe, discovered, july, justice, writes, wmw, to, huma, sent", "+++ non, journal, years, source, published, industry<br>--- atmosphere, caused, magnetic, all, earth, staff, cell, electricity, writes, wmw", "+++ president, office, in, years, team, article, called<br>--- all, tweeted, supporter, staff, certainly, writes, wmw, to, going, 8", "+++ and, control, group, government, state, published<br>--- all, wakingtimes, nevada, staff, writes, wmw, to, edward, include, activities", "+++ media, times, york, team, years, president, john, george<br>--- all, stephens, sexist, talks, alt, hate, staff, writes, wmw, to", "+++ a, 1, in, post, example, special<br>--- all, text, results, children, formating, staff, writes, wmw, state, send", "+++ control, activities, office, government, private, order, state, including, members, public<br>--- all, evidence, violation, issued, worked, staff, sheriff, justice, writes, wmw", "+++ 1, including<br>--- all, cdc, results, skin, children, staff, access, writes, wmw, 3", "+++ real, the, office, years, state, board, line, george<br>--- all, switched, global, results, staff, votes, voter, writes, wmw, to", "+++ real, control, personal, work, order, article, making, example<br>--- all, consider, focus, issues, staff, current, based, knowledge, writes, wmw", "+++ the, government, media, general, state, policy, president, post, order, called<br>--- all, staff, current, zone, turkish, writes, wmw, to, bush, include", "+++ group, office, government, money, work, chief, general, state, 000, york<br>--- all, issues, staff, judges, justice, writes, wmw, to, program, creamer", "+++ source, group, years<br>--- all, phenomenon, founder, alien, staff, extraterrestrial, tv, writes, wmw, 0", "+++ media, state, support, fact, president<br>--- all, results, democrats, debate, staff, votes, writes, wmw, to, candidates", "+++ media, claims, group, government, money, support, million, state, 000, including<br>--- all, particularly, staff, weapons, gulf, writes, wmw, to, include, activities", "+++ big, the, order<br>--- all, ron, lack, staff, jay, writes, obamacare, to, include, brown", "+++ real, business, government, money, dollars, industry, private, years, fund, state<br>--- sector, all, gold, global, dollar, staff, current, chinese, writes, wmw", "+++ a, years, source, team, the, called<br>--- planetary, all, queen, discovered, earth, staff, explain, wmw, to, black", "+++ real, and, working, government, far, control, support, years, state, media<br>--- all, global, staff, justice, writes, wmw, to, black, include, activities", "+++ chief, times, public, state, claims, the, years, called<br>--- all, shot, allegations, gang, children, staff, suicide, writes, wmw, crime", "+++ operations, group, government, support, state, 000, including, the<br>--- all, rebels, qaeda, mosul, battle, soldiers, staff, weapons, turkish, writes", "+++ years<br>--- all, shot, children, staff, writes, father, young, to, foster, money", "+++ a, the, non, industry, years<br>--- all, founder, children, staff, writes, father, to, include, activities, garden" ], [ "+++ october, force, air, near, minister, military, general<br>--- rtd, chinese, battle, soldiers, tweet, thursday, posted, veterans, hit, regional", "+++ day<br>--- rtd, pope, global, souls, battle, earth, fear, religious, knowledge, tweet", "+++ m, day<br>--- saying, all, rtd, battle, soldiers, trying, tweet, thursday, going, rss", "+++ a, 26, october, 2, november, posted<br>--- rtd, code, battle, follow, trunews, tv, tweet, thursday, 0, rss", "+++ force<br>--- rtd, fungal, ginseng, mild, battle, soldiers, tweet, thursday, rss, veterans", "+++ town, residents, national, day, wednesday<br>--- rtd, protest, battle, soldiers, tweet, thursday, riots, black, posted, thousands", "+++ reported, tweet, p, sources, day, posted<br>--- saying, rtd, battle, soldiers, debate, tv, thursday, rss, veterans, hit", "+++ october, army, national, reports, near, indian, thursday, line<br>--- rtd, corps, mile, battle, soldiers, ground, partners, sheriff, tweet, state", "+++ national, italy, minister<br>--- rtd, chinese, german, battle, hungary, paris, tweet, thursday, communist, rss", "+++ october, reported, 30, p, 2, 5, 4, 6, november, pm<br>--- rtd, global, month, battle, soldiers, tweet, state, thursday, 0, 8", "+++ a, line, john, chief, general<br>--- rtd, all, battle, soldiers, staff, writes, wmw, thursday, to, include", "+++ rtd, sources, quake, battle, doss, injuries, 26, tweet, thursday, day<br>--- ", "+++ october, reported, reports, general, sources, john<br>--- rtd, probe, discovered, battle, soldiers, july, staff, justice, tweet, thursday", "+++ parts, center, air<br>--- rtd, atmosphere, caused, magnetic, battle, earth, electricity, tweet, thursday, environment", "+++ november, j, m, day, wednesday<br>--- rtd, battle, soldiers, tweeted, supporter, certainly, tweet, thursday, going, 8", "+++ national, j, present<br>--- rtd, wakingtimes, battle, soldiers, nevada, occupation, tweet, thursday, edward, rss", "+++ john, national, october, november<br>--- rtd, stephens, sexist, talks, soldiers, alt, hate, tweet, thursday, bush", "+++ a, 2, 5, 4<br>--- rtd, text, results, battle, soldiers, children, formating, tweet, send, earthquake", "+++ force, service, district, reported, national, reports, sources<br>--- rtd, evidence, violation, issued, battle, soldiers, sheriff, justice, tweet, thursday", "+++ 2, 5, day, 4<br>--- rtd, cdc, results, skin, battle, soldiers, children, tweet, thursday, sugar", "+++ reported, line, day, reports, posted<br>--- rtd, switched, global, results, battle, soldiers, votes, voter, tweet, thursday", "+++ <br>--- rtd, consider, focus, battle, soldiers, issues, based, knowledge, tweet, thursday", "+++ military, force, general<br>--- rtd, battle, soldiers, zone, turkish, tweet, thursday, bush, obama, veterans", "+++ national, john, chief, general<br>--- rtd, modi, battle, soldiers, issues, judges, justice, tweet, thursday, program", "+++ reported, national, reports, posted<br>--- rtd, phenomenon, founder, alien, battle, soldiers, extraterrestrial, tv, tweet, thursday", "+++ november, national, day, moore<br>--- rtd, results, democrats, battle, soldiers, debate, votes, tweet, thursday, won", "+++ john, center<br>--- rtd, particularly, battle, soldiers, gulf, tweet, thursday, posted, veterans, hit", "+++ air, service, vice<br>--- rtd, ron, lack, battle, soldiers, jay, tweet, obamacare, thursday, rss", "+++ major, central<br>--- sector, rtd, gold, global, dollar, battle, soldiers, chinese, tweet, thursday", "+++ a, near, 2, 5<br>--- planetary, rtd, queen, discovered, battle, soldiers, explain, thursday, black, posted", "+++ military, national<br>--- rtd, modi, global, battle, soldiers, justice, tweet, thursday, black, posted", "+++ reported, chief, killed, reports, officer<br>--- rtd, shot, allegations, gang, battle, soldiers, children, suicide, tweet, thursday", "+++ october, army, reports, air, minister, military, battle, soldiers, killed<br>--- rtd, rebels, qaeda, mosul, turkish, tweet, daesh, thursday, iraqi, terror", "+++ october, service, car, hospital, 6, hours, night, november, day, posted<br>--- rtd, shot, battle, soldiers, children, tweet, father, young, thursday, foster", "+++ a, national<br>--- rtd, founder, battle, soldiers, children, tweet, father, thursday, posted, veterans" ], [ "+++ use, october, washington, according, long, general, officials, president, news, the<br>--- chinese, probe, discovered, staff, justice, huma, sent, regional, coast, joint", "+++ source, state, the, long<br>--- pope, global, souls, discovered, earth, fear, religious, staff, knowledge, justice", "+++ i, know, long<br>--- saying, all, probe, discovered, staff, trying, justice, going, huma, sent", "+++ information, account, october, e, use, related, source, news, email<br>--- code, probe, discovered, follow, trunews, staff, tv, 0, huma, sent", "+++ 2015, source, state, campaign<br>--- fungal, ginseng, probe, discovered, mild, staff, justice, huma, sent, ingredient", "+++ the, state, 000, according<br>--- evidence, probe, discovered, protest, staff, justice, riots, black, huma, thousands", "+++ information, account, released, campaign, reported, sources, york, news, the, public<br>--- saying, probe, discovered, debate, staff, tv, tweet, huma, sent, mainstream", "+++ october, according, private, state, reports, department, news<br>--- corps, probe, discovered, mile, line, ground, partners, sheriff, justice, thursday", "+++ news, the, public<br>--- chinese, german, probe, discovered, hungary, staff, paris, communist, huma, hrc", "+++ october, according, reported, state, 000, 2015, news, the<br>--- global, month, discovered, staff, justice, 0, 8, huma, oct, sent", "+++ foundation, e, personal, private, general, source, state, 000, york, president<br>--- all, probe, discovered, july, justice, writes, wmw, to, huma, sent", "+++ october, reported, reports, general, sources, john<br>--- rtd, probe, discovered, battle, soldiers, july, staff, justice, tweet, thursday", "+++ laptop, probe, discovered, sources, questions, staff, announcement, justice, source, according<br>--- ", "+++ source, use, according, long<br>--- atmosphere, caused, magnetic, probe, discovered, earth, staff, electricity, environment, huma", "+++ clinton, campaign, i, house, washington, days, long, mrs, hillary, election<br>--- probe, discovered, tweeted, supporter, staff, certainly, justice, going, 8, huma", "+++ state, long, announced<br>--- wakingtimes, probe, discovered, nevada, staff, justice, edward, huma, sent, torture", "+++ case, october, house, evidence, investigation, york, president, news, john<br>--- stephens, probe, sexist, discovered, talks, alt, hate, staff, justice, bush", "+++ i, use<br>--- text, probe, results, discovered, children, formating, staff, justice, 3, send", "+++ case, information, attorney, reported, justice, decision, use, according, reports, evidence<br>--- agency, allowed, letter, office, violation, issued, laptop, probe, washington, actions", "+++ use<br>--- cdc, probe, results, discovered, skin, children, staff, justice, 3, sugar", "+++ i, official, political, according, reports, evidence, reported, state, officials, election<br>--- switched, global, results, discovered, july, staff, votes, voter, justice, going", "+++ personal, information, use, long<br>--- consider, probe, focus, discovered, issues, staff, based, knowledge, justice, committee", "+++ clinton, political, influence, washington, hillary, general, state, president, the, presidential<br>--- probe, discovered, staff, zone, turkish, justice, bush, huma, sent, fly", "+++ attorney, congress, campaign, justice, house, decision, washington, i, general, director<br>--- probe, discovered, issues, staff, judges, program, creamer, huma, congressional, cuba", "+++ case, information, official, source, classified, according, reports, evidence, reported, documents<br>--- phenomenon, founder, probe, alien, staff, extraterrestrial, tv, 0, huma, sent", "+++ president, democratic, clinton, campaign, house, washington, according, political, state, election<br>--- probe, results, discovered, democrats, debate, staff, votes, justice, candidates, huma", "+++ campaign, political, evidence, state, 000, 2015, wikileaks, john<br>--- particularly, probe, discovered, staff, gulf, justice, huma, sent, lynch, despite", "+++ house, the, long, news<br>--- ron, lack, discovered, staff, jay, justice, obamacare, huma, sent, brown", "+++ news, state, long, private<br>--- sector, gold, global, dollar, discovered, staff, chinese, justice, treasury, huma", "+++ according, long, evidence, discovered, source, the<br>--- planetary, queen, earth, staff, justice, explain, black, huma, sent, probe", "+++ justice, political, long, corruption, state, president, the, democratic, public<br>--- global, discovered, staff, black, huma, sent, probe, agents, mainstream, far", "+++ case, attorney, officials, according, reports, evidence, reported, state, investigation, department<br>--- shot, probe, allegations, discovered, gang, children, staff, suicide, justice, committee", "+++ october, campaign, according, reports, state, 000, the<br>--- rebels, probe, discovered, qaeda, mosul, battle, soldiers, staff, turkish, justice", "+++ house, october, husband, told<br>--- shot, probe, discovered, children, staff, justice, father, young, foster, huma", "+++ use, the, related<br>--- founder, probe, discovered, children, staff, justice, father, olympics, huma, sent" ], [ "+++ use, according, however, long, air<br>--- atmosphere, chinese, caused, magnetic, earth, weapons, electricity, environment, risk, regional", "+++ body, natural, power, nature, light, energy, long, source, human, earth<br>--- atmosphere, pope, caused, magnetic, global, souls, fear, moon, religious, knowledge", "+++ long, years<br>--- saying, all, caused, magnetic, atmosphere, earth, trying, electricity, environment, going", "+++ device, source, use, published<br>--- atmosphere, code, caused, magnetic, follow, trunews, cell, tv, environment, 0", "+++ source, cells, health<br>--- atmosphere, fungal, ginseng, caused, magnetic, mild, hai, earth, electricity, environment", "+++ food, non, california, according<br>--- atmosphere, set, caused, magnetic, protest, earth, electricity, riots, black, thousands", "+++ published<br>--- saying, atmosphere, caused, magnetic, earth, debate, tv, tweet, environment, risk", "+++ area, energy, gas, according, water, environmental, clean<br>--- atmosphere, corps, caused, magnetic, mile, earth, ground, partners, sheriff, electricity", "+++ known, similar<br>--- atmosphere, chinese, german, caused, magnetic, hungary, paris, environment, communist, risk", "+++ low, high, study, according, years<br>--- atmosphere, caused, magnetic, global, month, earth, electricity, state, environment, 0", "+++ non, industry, years, source, published, journal<br>--- all, caused, magnetic, atmosphere, earth, staff, cell, electricity, writes, wmw", "+++ parts, center, air<br>--- rtd, atmosphere, caused, magnetic, battle, earth, electricity, tweet, thursday, environment", "+++ source, use, according, long<br>--- atmosphere, caused, magnetic, probe, discovered, earth, staff, justice, environment, huma", "+++ atmosphere, stores, caused, magnetic, years, human, earth, speed, electricity, environment<br>--- ", "+++ long, years<br>--- atmosphere, caused, magnetic, earth, tweeted, supporter, certainly, electricity, environment, going", "+++ natural, gas, long, power, published<br>--- atmosphere, caused, wakingtimes, earth, nevada, occupation, electricity, environment, edward, keystone", "+++ however, johnson, years<br>--- atmosphere, stephens, caused, magnetic, sexist, talks, earth, alt, hate, electricity", "+++ university, dr, use<br>--- atmosphere, text, magnetic, results, earth, children, formating, electricity, send, environment", "+++ high, field, use, however, according<br>--- atmosphere, violation, issued, magnetic, earth, sheriff, justice, crime, environment, going", "+++ body, high, use, natural, risk, food, dr, study, studies, plant<br>--- atmosphere, cdc, caused, magnetic, results, skin, earth, children, cell, animal", "+++ similar, according, years<br>--- atmosphere, switched, caused, magnetic, global, results, earth, votes, voter, electricity", "+++ use, power, however, long, human, technology<br>--- atmosphere, consider, caused, magnetic, focus, earth, creative, issues, current, based", "+++ power<br>--- atmosphere, caused, magnetic, earth, current, zone, turkish, electricity, environment, bush", "+++ california, health<br>--- atmosphere, caused, magnetic, produce, stores, issues, judges, justice, environment, program", "+++ scientific, source, according, research, lights, health, scientists, years, dr<br>--- atmosphere, phenomenon, founder, caused, magnetic, alien, earth, tv, environment, 0", "+++ according, lead<br>--- atmosphere, caused, magnetic, results, democrats, earth, debate, votes, favor, electricity", "+++ center, human, published<br>--- atmosphere, particularly, caused, magnetic, produce, earth, weapons, gulf, electricity, environment", "+++ health, long, lead, air<br>--- atmosphere, ron, caused, magnetic, lack, produce, earth, jay, electricity, obamacare", "+++ high, lower, industry, long, years, large, products, low<br>--- sector, atmosphere, gold, caused, magnetic, global, dollar, prices, earth, current", "+++ blue, field, light, area, science, university, however, long, years, source<br>--- planetary, atmosphere, caused, magnetic, queen, produce, discovered, electricity, explain, environment", "+++ mass, long, power, years<br>--- atmosphere, caused, magnetic, global, earth, justice, environment, black, mainstream, far", "+++ according, years<br>--- atmosphere, shot, caused, magnetic, allegations, gang, earth, children, suicide, electricity", "+++ air, according, area<br>--- atmosphere, rebels, caused, magnetic, qaeda, mosul, battle, soldiers, weapons, turkish", "+++ years<br>--- atmosphere, shot, caused, magnetic, earth, children, electricity, father, young, environment", "+++ non, scientific, science, industry, use, years, california, human, growing, study<br>--- atmosphere, founder, caused, magnetic, baby, earth, children, electricity, father, environment" ], [ "+++ united, country, washington, possible, long, states, anti, president, world<br>--- chinese, tweeted, supporter, certainly, going, 8, obama, hope, regional, coast", "+++ great, right, long, called, world, man, day, today, history<br>--- pope, global, souls, earth, fear, tweeted, religious, supporter, certainly, office", "+++ again, great, right, says, i, things, this, country, m, long<br>--- saying, all, tweeted, supporter, certainly, trying, 8, hope, do, stop", "+++ 10, november, share, today<br>--- code, follow, tweeted, trunews, certainly, tv, 0, going, 8, he", "+++ 10, campaign<br>--- fungal, ginseng, mild, tweeted, supporter, certainly, going, 8, rahul, hope", "+++ in, country, violence, wednesday, nation, anti, team, following, america, day<br>--- protest, tweeted, supporter, certainly, riots, going, black, 8, obama, thousands", "+++ article, share, anti, day, campaign<br>--- saying, tweeted, debate, certainly, tv, tweet, going, 8, he, hope", "+++ states, americans, american, months, says<br>--- corps, mile, tweeted, supporter, ground, partners, certainly, sheriff, state, thursday", "+++ great, united, says, country, states, world, called, today, history<br>--- chinese, german, hungary, tweeted, supporter, certainly, paris, going, 8, communist", "+++ 11, 10, says, year, years, likely, world, 9, 8, november<br>--- global, month, tweeted, supporter, certainly, state, 0, going, he, oct", "+++ president, office, in, years, team, article, called<br>--- all, tweeted, supporter, staff, certainly, writes, wmw, to, going, 8", "+++ november, j, m, day, wednesday<br>--- rtd, battle, soldiers, tweeted, supporter, certainly, tweet, thursday, going, 8", "+++ clinton, campaign, i, house, washington, days, long, mrs, hillary, election<br>--- probe, discovered, tweeted, supporter, staff, certainly, justice, going, 8, huma", "+++ long, years<br>--- atmosphere, caused, magnetic, earth, tweeted, supporter, certainly, electricity, environment, going", "+++ office, years, course, clinton, tweeted, supporter, certainly, candidate, him, civil<br>--- ", "+++ 11, j, long, american, year, history<br>--- wakingtimes, nevada, supporter, occupation, certainly, edward, 8, he, hope, torture", "+++ 11, house, team, years, american, mr, 9, president, november, man<br>--- stephens, sexist, talks, alt, tweeted, hate, supporter, certainly, bush, going", "+++ i, 10, american, in<br>--- text, results, tweeted, children, formating, certainly, send, going, 8, obama", "+++ office, civil, mr, states, matter, going, year<br>--- violation, issued, tweeted, supporter, certainly, sheriff, justice, crime, 8, he", "+++ great, anti, day<br>--- cdc, results, skin, tweeted, children, certainly, sugar, going, helps, 8", "+++ right, says, office, i, win, political, years, states, going, election<br>--- switched, global, results, tweeted, supporter, votes, voter, tape, voted, obama", "+++ things, possible, long, matter, article, world, today<br>--- consider, focus, tweeted, supporter, issues, certainly, based, knowledge, going, 8", "+++ united, clinton, country, washington, hillary, states, course, american, president, world<br>--- tweeted, supporter, certainly, zone, turkish, bush, going, 8, hope, tanks", "+++ right, campaign, office, i, house, year, washington, nation, states, elected<br>--- tweeted, supporter, issues, judges, justice, program, creamer, 8, hope, cuba", "+++ world, history, event, years<br>--- phenomenon, founder, alien, tweeted, supporter, certainly, extraterrestrial, tv, 0, going", "+++ clinton, trump, campaign, house, washington, states, likely, americans, election, vote<br>--- things, megyn, point, numbers, tuesday, matter, results, america, years, seen", "+++ united, campaign, country, political, states, american, year, 9, world, called<br>--- particularly, tweeted, supporter, certainly, gulf, going, 8, obama, hope, despite", "+++ right, house, long, sign, americans, joe, white, obama<br>--- ron, lack, tweeted, supporter, certainly, jay, obamacare, going, 8, hope", "+++ wall, world, year, long, years<br>--- sector, gold, global, dollar, tweeted, supporter, certainly, chinese, going, treasury", "+++ star, long, event, team, seen, hollywood, years, called, left<br>--- planetary, queen, discovered, earth, tweeted, supporter, certainly, explain, going, black", "+++ right, left, anti, civil, country, political, long, nation, states, course<br>--- global, tweeted, supporter, certainly, justice, going, black, 8, obama, hope", "+++ year, called, man, years<br>--- shot, allegations, gang, tweeted, children, certainly, suicide, crime, going, black", "+++ campaign<br>--- rebels, qaeda, mosul, battle, soldiers, tweeted, supporter, certainly, turkish, daesh", "+++ says, left, house, share, day, year, november, years, him, man<br>--- shot, tweeted, children, certainly, father, young, foster, 8, he, local", "+++ states, years<br>--- founder, tweeted, children, certainly, father, going, 8, obama, hope, 11" ], [ "+++ group, government, long, defense, u, security<br>--- chinese, wakingtimes, nevada, occupation, edward, cooperation, torture, regional, bear, coast", "+++ control, death, natural, power, secret, long, state, land, free, instead<br>--- pope, wakingtimes, global, souls, earth, fear, nevada, religious, occupation, knowledge", "+++ and, long<br>--- saying, all, wakingtimes, nevada, occupation, trying, going, bundy, do, torture", "+++ co, published<br>--- code, wakingtimes, follow, nevada, trunews, occupation, tv, 0, edward, bundy", "+++ and, state, free<br>--- fungal, ginseng, wakingtimes, mild, nevada, occupation, tass, edward, health, bundy", "+++ group, government, national, surveillance, state, security, armed<br>--- wakingtimes, protest, nevada, occupation, riots, tass, edward, black, thousands, protestors", "+++ conspiracy, published<br>--- saying, wakingtimes, nevada, debate, occupation, tv, tweet, edward, bundy, mainstream", "+++ pipeline, oil, protect, national, gas, state, american, land, u<br>--- corps, wakingtimes, mile, nevada, ground, partners, sheriff, thursday, wood, local", "+++ and, death, government, national, later, history<br>--- chinese, german, wakingtimes, defendant, hungary, nevada, occupation, paris, edward, communist", "+++ 11, state, u, year<br>--- wakingtimes, global, month, nevada, occupation, 0, edward, 8, posted, oct", "+++ control, and, group, government, state, published<br>--- all, wakingtimes, nevada, staff, writes, wmw, to, edward, include, activities", "+++ national, j, present<br>--- rtd, wakingtimes, battle, soldiers, nevada, occupation, tweet, thursday, edward, posted", "+++ state, long, announced<br>--- wakingtimes, probe, discovered, nevada, staff, justice, tass, edward, huma, sent", "+++ natural, gas, long, power, published<br>--- atmosphere, caused, magnetic, earth, nevada, occupation, electricity, environment, edward, health", "+++ 11, j, long, american, year, history<br>--- wakingtimes, tweeted, supporter, occupation, certainly, going, 8, obama, hope, torture", "+++ coup, wakingtimes, nevada, warren, death, group, assassination, edward, texas, torture<br>--- ", "+++ 11, national, later, american, secret, u, history<br>--- stephens, wakingtimes, sexist, talks, alt, nevada, hate, occupation, bush, edward", "+++ american<br>--- text, wakingtimes, results, nevada, children, formating, occupation, state, send, edward", "+++ control, agency, jury, government, federal, national, secret, agencies, trial, state<br>--- violation, issued, wakingtimes, nevada, occupation, sheriff, justice, crime, edward, local", "+++ oil, natural<br>--- cdc, wakingtimes, results, skin, nevada, children, occupation, 3, sugar, edward", "+++ state, u, texas<br>--- switched, wakingtimes, global, results, nevada, occupation, votes, voter, tass, edward", "+++ control, long, free, power, face<br>--- consider, wakingtimes, focus, nevada, issues, occupation, based, knowledge, edward, torture", "+++ interests, coup, cia, power, government, intelligence, american, state, u, security<br>--- wakingtimes, nevada, occupation, zone, turkish, bush, edward, bundy, torture, bear", "+++ group, government, federal, national, american, state, defense, u, year, security<br>--- wakingtimes, nevada, issues, occupation, judges, justice, program, creamer, health, bundy", "+++ agency, group, intelligence, national, later, secret, nsa, history<br>--- phenomenon, founder, wakingtimes, alien, nevada, occupation, extraterrestrial, tv, 0, edward", "+++ american, national, state<br>--- wakingtimes, results, democrats, nevada, debate, occupation, votes, tass, edward, candidates", "+++ oil, group, government, intelligence, published, american, state, u, year<br>--- particularly, wakingtimes, nevada, occupation, gulf, edward, torture, bear, cheaper, despite", "+++ long, free, ryan<br>--- ron, wakingtimes, lack, nevada, occupation, jay, obamacare, edward, health, bundy", "+++ oil, government, federal, long, state, u, free, year<br>--- sector, gold, wakingtimes, global, dollar, nevada, occupation, chinese, edward, treasury", "+++ long<br>--- planetary, wakingtimes, queen, discovered, earth, nevada, occupation, explain, edward, black", "+++ and, interests, power, government, control, national, american, free, state, u<br>--- wakingtimes, global, nevada, occupation, justice, tass, edward, black, mainstream, torture", "+++ state, death, later, year<br>--- shot, wakingtimes, allegations, gang, nevada, children, occupation, suicide, crime, edward", "+++ armed, security, group, state, government<br>--- rebels, wakingtimes, qaeda, mosul, battle, soldiers, nevada, occupation, turkish, iraqi", "+++ face, later, year<br>--- shot, wakingtimes, nevada, children, occupation, father, young, foster, bundy, local", "+++ national, death<br>--- founder, wakingtimes, nevada, children, occupation, father, tass, edward, 11, garden" ], [ "+++ october, iran, peace, however, u, president, news, war, south<br>--- chinese, sexist, talks, alt, hate, stephens, finally, black, case, regional", "+++ peace, times, secret, race, truth, man, book, history<br>--- pope, global, souls, sexist, talks, earth, fear, religious, stephens, bush", "+++ didn, good, years<br>--- saying, all, stephens, sexist, talks, alt, hate, finally, bush, going", "+++ news, november, october, com<br>--- code, stephens, sexist, talks, follow, alt, hate, trunews, tv, 0", "+++ com<br>--- fungal, stephens, ginseng, sexist, mild, talks, alt, hate, finally, black", "+++ national, peace, black, george, team<br>--- stephens, sexist, protest, talks, alt, hate, riots, finally, thousands, protestors", "+++ story, media, times, stories, york, truth, news<br>--- saying, stephens, sexist, talks, alt, hate, debate, tv, tweet, bush", "+++ october, national, american, u, news, south<br>--- corps, sexist, mile, talks, alt, hate, ground, partners, stephens, sheriff", "+++ news, national, later, war, history<br>--- chinese, german, sexist, talks, hungary, alt, hate, finally, stephens, paris", "+++ 11, october, times, u, half, 9, news, november, years, south<br>--- stephens, global, sexist, month, talks, alt, hate, finally, state, 0", "+++ media, times, york, team, years, president, john, george<br>--- all, stephens, sexist, talks, alt, hate, staff, finally, writes, wmw", "+++ national, john, november, october<br>--- rtd, stephens, sexist, battle, soldiers, alt, hate, tweet, thursday, bush", "+++ case, october, house, evidence, investigation, york, president, news, john<br>--- stephens, probe, sexist, discovered, talks, alt, hate, staff, justice, bush", "+++ however, johnson, years<br>--- atmosphere, stephens, caused, magnetic, sexist, talks, earth, alt, hate, electricity", "+++ 11, house, mr, years, american, team, 9, president, november, man<br>--- stephens, sexist, talks, alt, tweeted, hate, supporter, certainly, finally, bush", "+++ 11, national, later, american, secret, u, history<br>--- stephens, wakingtimes, sexist, talks, alt, nevada, hate, occupation, bush, edward", "+++ bush, stephens, sexist, years, talks, scalia, alt, hate, finally, black<br>--- ", "+++ american, clear<br>--- stephens, text, results, sexist, talks, alt, hate, children, formating, send", "+++ case, national, however, evidence, secret, mr, clear<br>--- stephens, violation, issued, sexist, talks, alt, hate, sheriff, justice, crime", "+++ <br>--- stephens, cdc, results, sexist, skin, talks, alt, hate, children, sugar", "+++ florida, evidence, u, news, years, george<br>--- stephens, switched, global, results, sexist, talks, alt, hate, votes, voter", "+++ clear, good, however<br>--- consider, stephens, focus, sexist, talks, alt, hate, issues, based, knowledge", "+++ iran, media, clear, american, bush, u, president, war<br>--- stephens, sexist, talks, alt, hate, zone, turkish, finally, black, fly", "+++ house, national, american, u, york, president, white, john<br>--- stephens, sexist, talks, alt, hate, issues, judges, justice, bush, program", "+++ case, national, later, years, secret, evidence, history<br>--- phenomenon, founder, sexist, alien, talks, alt, hate, finally, stephens, extraterrestrial", "+++ president, house, national, florida, american, race, media, news, november, white<br>--- stephens, results, sexist, democrats, talks, alt, hate, debate, votes, bush", "+++ media, arms, evidence, american, u, 9, john, war<br>--- particularly, stephens, sexist, talks, alt, hate, gulf, bush, black, case", "+++ brown, news, cover, white, house<br>--- ron, lack, sexist, talks, alt, hate, stephens, jay, obamacare, bush", "+++ news, u, years<br>--- sector, gold, global, dollar, sexist, talks, alt, hate, chinese, bush", "+++ however, evidence, black, team, years, south<br>--- planetary, stephens, queen, sexist, discovered, talks, earth, alt, hate, finally", "+++ media, national, peace, years, american, u, president, black, white, war<br>--- stephens, global, sexist, talks, alt, hate, finally, justice, bush, case", "+++ case, story, evidence, later, cover, times, investigation, black, news, years<br>--- shot, stephens, allegations, sexist, gang, talks, alt, hate, children, suicide", "+++ october, iran, war<br>--- rebels, stephens, sexist, qaeda, mosul, battle, soldiers, alt, hate, turkish", "+++ story, october, house, later, years, november, man<br>--- shot, stephens, sexist, talks, alt, hate, children, finally, father, young", "+++ national, book, years<br>--- founder, sexist, talks, alt, hate, children, finally, stephens, father, bush" ], [ "+++ use<br>--- chinese, text, results, children, formating, appears, send, meant, regional, coast", "+++ culture, live<br>--- pope, text, global, souls, earth, fear, religious, children, formating, knowledge", "+++ what, sure, want, i, better, start, live, way, in, need<br>--- saying, all, text, results, children, formating, trying, send, going, meant", "+++ comment, 10, use, help, 1, 2, link, a, address, post<br>--- code, text, results, follow, trunews, formating, tv, send, 0, meant", "+++ 10<br>--- fungal, ginseng, text, results, mild, children, formating, state, send, ingredient", "+++ community, in<br>--- text, results, protest, children, formating, state, send, riots, black, thousands", "+++ comment, post<br>--- saying, text, results, debate, formating, tv, tweet, send, hall, meant", "+++ 3, american, native<br>--- corps, text, results, mile, children, formating, ground, partners, sheriff, send", "+++ jewish, jews, english<br>--- chinese, german, text, results, hungary, children, formating, paris, send, communist", "+++ 10, 1, 3, 2, 5, 4<br>--- text, global, results, month, children, formating, send, 0, 8, posted", "+++ a, 1, in, post, example, special<br>--- all, text, results, children, formating, staff, writes, wmw, state, send", "+++ a, 2, 5, 4<br>--- rtd, text, results, battle, soldiers, children, formating, tweet, send, earthquake", "+++ i, use<br>--- text, probe, results, discovered, children, formating, staff, justice, state, send", "+++ university, dr, use<br>--- atmosphere, caused, magnetic, results, earth, children, formating, electricity, send, environment", "+++ i, 10, american, in<br>--- text, results, tweeted, children, formating, certainly, send, going, 8, obama", "+++ american<br>--- text, wakingtimes, results, nevada, children, formating, occupation, 3, send, edward", "+++ american, clear<br>--- stephens, text, results, sexist, talks, alt, hate, children, formating, send", "+++ help, text, results, thanks, children, formating, write, character, send, writing<br>--- ", "+++ use, clear<br>--- violation, issued, results, children, formating, sheriff, justice, state, send, crime", "+++ use, help, results, 1, 3, 2, 5, 4, dr, children<br>--- cdc, text, skin, milk, formating, send, sugar, helps, meant, risk", "+++ sure, jewish, results, i, college, think<br>--- switched, text, global, children, formating, votes, voter, state, send, going", "+++ use, help, clear, needs, community, better, way, need, example<br>--- consider, text, focus, children, issues, based, knowledge, send, meant, means", "+++ clear, post, american, think<br>--- text, results, children, formating, zone, turkish, state, send, bush, meant", "+++ i, american, effort, policies<br>--- text, results, children, issues, judges, justice, state, send, program, creamer", "+++ dr<br>--- phenomenon, founder, text, results, alien, children, formating, extraterrestrial, tv, send", "+++ american, college, results<br>--- text, democrats, debate, formating, votes, state, send, won, candidates, carolina", "+++ american<br>--- particularly, text, results, children, formating, gulf, 3, send, meant, despite", "+++ needs, live, sure, help, takes<br>--- ron, text, lack, results, children, formating, jay, obamacare, send, meant", "+++ <br>--- sector, gold, text, global, dollar, results, children, formating, chinese, 3", "+++ a, university, 2, 5, appears<br>--- planetary, text, queen, results, discovered, earth, children, formating, explain, send", "+++ american, policies, way<br>--- text, global, results, children, formating, justice, 3, send, black, meant", "+++ children<br>--- shot, text, allegations, results, gang, formating, suicide, state, send, crime", "+++ jewish<br>--- rebels, text, results, qaeda, mosul, battle, soldiers, children, formating, turkish", "+++ school, help, children<br>--- shot, text, results, formating, father, young, send, foster, local, meant", "+++ a, use, parents, children<br>--- founder, text, results, formating, 95, father, send, meant, garden, emphasized" ], [ "+++ use, force, government, however, according, states, officials, including, close, security<br>--- chinese, violation, issued, sheriff, justice, crime, going, local, activities, means", "+++ control, state, secret, order<br>--- pope, violation, issued, global, souls, earth, fear, religious, office, sheriff", "+++ going<br>--- saying, all, violation, issued, trying, sheriff, justice, crime, local, do", "+++ information, phone, search, use, at<br>--- code, violation, issued, comments, follow, trunews, sheriff, tv, crime, 0", "+++ state, force<br>--- vitamins, fungal, ginseng, issued, mild, sheriff, justice, crime, violation, going", "+++ police, government, national, rights, according, state, members, authorities, security, local<br>--- evidence, violation, issued, protest, sheriff, justice, crime, riots, going, black", "+++ information, sources, reported, public, told<br>--- saying, violation, issued, debate, sheriff, tv, tweet, crime, going, local", "+++ enforcement, police, sheriff, rights, national, arrested, according, reports, county, state<br>--- corps, violation, issued, mile, ground, partners, justice, thursday, crime, wood", "+++ states, national, citizens, public, government<br>--- chinese, german, issued, hungary, sheriff, paris, crime, violation, going, communist", "+++ high, reported, state, according, year<br>--- violation, issued, global, month, sheriff, justice, crime, 0, going, 8", "+++ control, activities, office, government, private, order, state, including, members, public<br>--- all, violation, issued, cases, staff, sheriff, justice, writes, wmw, crime", "+++ force, service, district, reported, national, reports, sources<br>--- rtd, evidence, violation, issued, battle, soldiers, sheriff, justice, tweet, thursday", "+++ case, information, attorney, reported, justice, decision, use, according, reports, evidence<br>--- violation, issued, probe, discovered, staff, sheriff, crime, going, huma, local", "+++ high, field, use, however, according<br>--- atmosphere, violation, caused, magnetic, earth, sheriff, electricity, crime, environment, going", "+++ office, civil, year, states, matter, going, mr<br>--- violation, issued, tweeted, supporter, certainly, sheriff, justice, crime, 8, obama", "+++ control, agency, jury, government, federal, national, secret, agencies, trial, state<br>--- violation, issued, wakingtimes, nevada, occupation, sheriff, justice, crime, edward, local", "+++ case, national, however, evidence, secret, mr, clear<br>--- stephens, violation, issued, sexist, talks, alt, hate, sheriff, justice, crime", "+++ clear, use<br>--- evidence, violation, text, results, children, formating, sheriff, justice, state, send", "+++ agency, office, violation, issued, actions, sources, including, police, sheriff, justice<br>--- ", "+++ high, use, including, cases<br>--- cdc, violation, issued, doctors, results, skin, children, sheriff, justice, 3", "+++ states, officials, office, according, reports, evidence, county, reported, state, going<br>--- switched, violation, issued, global, results, comments, votes, voter, sheriff, justice", "+++ control, information, use, means, clear, however, matter, order<br>--- consider, violation, issued, focus, issues, based, knowledge, sheriff, justice, crime", "+++ force, government, clear, states, state, security, order<br>--- evidence, violation, issued, zone, turkish, justice, crime, bush, going, local", "+++ attorney, office, national, states, year, court, constitution, justice, illegal, decision<br>--- evidence, violation, issued, issues, judges, sheriff, crime, program, creamer, local", "+++ case, information, national, agency, according, reports, evidence, reported, secret, told<br>--- phenomenon, founder, violation, issued, alien, sheriff, extraterrestrial, tv, crime, 0", "+++ states, national, according, state, told<br>--- violation, issued, results, democrats, debate, votes, sheriff, justice, crime, going", "+++ rights, government, crimes, evidence, states, state, including, year<br>--- particularly, violation, issued, publish, gulf, justice, crime, going, pay, local", "+++ phone, order, service<br>--- ron, violation, issued, lack, sheriff, jay, justice, obamacare, crime, going", "+++ government, federal, pay, private, high, state, year<br>--- sector, gold, violation, issued, global, dollar, chinese, sheriff, justice, crime", "+++ field, evidence, however, according<br>--- planetary, violation, issued, queen, discovered, earth, sheriff, justice, explain, crime", "+++ control, rights, government, justice, national, citizens, order, states, civil, state<br>--- violation, issued, global, sheriff, crime, going, black, local, activities, mainstream", "+++ attorney, crimes, evidence, officials, year, police, crime, state, prison, department<br>--- shot, violation, issued, allegations, gang, children, suicide, sheriff, justice, going", "+++ government, according, reports, state, including, security<br>--- rebels, violation, issued, qaeda, mosul, battle, soldiers, sheriff, turkish, justice", "+++ told, local, gun, service, year<br>--- shot, violation, issued, children, sheriff, justice, father, young, crime, foster", "+++ states, national, use, drug<br>--- founder, violation, issued, children, sheriff, justice, father, crime, going, local" ], [ "+++ anti, use, including<br>--- chinese, cdc, results, skin, children, weapons, sugar, helps, risk, regional", "+++ body, heart, great, natural, day<br>--- pope, cdc, global, souls, skin, earth, fear, moon, religious, milk", "+++ great, day, best, d<br>--- saying, all, cdc, results, skin, children, trying, sugar, going, helps", "+++ 1, use, 2, help<br>--- code, cdc, results, skin, follow, trunews, access, tv, sugar, 0", "+++ brain, health<br>--- fungal, cdc, ginseng, results, mild, skin, children, content, state, sugar", "+++ food, anti, day<br>--- cdc, results, protest, skin, milk, state, sugar, riots, black, helps", "+++ anti, day<br>--- saying, cdc, results, skin, debate, tv, tweet, sugar, helps, posted", "+++ water, 3, oil<br>--- corps, cdc, results, mile, skin, children, ground, partners, sheriff, thursday", "+++ known, great, women<br>--- chinese, cdc, german, results, skin, hungary, children, paris, sugar, helps", "+++ high, study, increase, 3, 2, 5, 4, 1, day, low<br>--- cdc, global, results, month, skin, milk, sugar, 0, helps, 8", "+++ 1, including<br>--- all, cdc, results, skin, milk, staff, access, writes, wmw, 3", "+++ 2, 5, day, 4<br>--- rtd, cdc, results, skin, battle, soldiers, children, tweet, thursday, sugar", "+++ use<br>--- cdc, probe, results, discovered, skin, children, staff, justice, 3, sugar", "+++ body, high, use, natural, risk, food, cause, study, studies, plant<br>--- atmosphere, cdc, caused, magnetic, results, skin, earth, children, cell, animal", "+++ great, anti, day<br>--- cdc, results, skin, tweeted, children, certainly, sugar, going, helps, 8", "+++ oil, natural<br>--- refuge, cdc, wakingtimes, results, skin, nevada, children, occupation, 3, sugar", "+++ <br>--- stephens, cdc, results, sexist, skin, talks, alt, hate, children, sugar", "+++ use, help, results, 1, 3, 2, 5, 4, dr, children<br>--- cdc, text, skin, milk, formating, send, sugar, helps, meant, risk", "+++ high, use, including, cases<br>--- cdc, violation, issued, filed, results, skin, children, sheriff, justice, state", "+++ help, cdc, results, brain, including, skin, research, children, increase, cup<br>--- ", "+++ d, results, day<br>--- switched, global, skin, children, votes, voter, cdc, state, sugar, going", "+++ use, important, help, best, common<br>--- consider, cdc, focus, skin, creative, milk, issues, current, based, knowledge", "+++ <br>--- cdc, results, skin, children, current, zone, turkish, 3, sugar, bush", "+++ health, d<br>--- cdc, results, skin, children, issues, judges, justice, state, sugar, program", "+++ health, dr, research<br>--- phenomenon, founder, cdc, results, alien, skin, milk, extraterrestrial, tv, sugar", "+++ results, day<br>--- cdc, democrats, skin, children, votes, state, sugar, candidates, helps, obama", "+++ oil, including<br>--- particularly, cdc, results, skin, children, weapons, gulf, 3, sugar, helps", "+++ tea, health, help, best, d<br>--- ron, cdc, lack, results, skin, children, jay, obamacare, sugar, helps", "+++ increase, high, oil, products, low<br>--- sector, gold, cdc, global, dollar, results, prices, skin, milk, current", "+++ known, science, study, 2, 5<br>--- planetary, cdc, queen, results, discovered, skin, earth, milk, explain, sugar", "+++ anti<br>--- cdc, global, results, skin, milk, justice, 3, sugar, black, helps", "+++ medical, cases, children<br>--- shot, cdc, filed, allegations, results, gang, skin, milk, suicide, state", "+++ including<br>--- rebels, cdc, results, qaeda, mosul, skin, battle, soldiers, children, weapons", "+++ blood, women, help, day, children<br>--- shot, cdc, results, skin, milk, father, young, sugar, foster, helps", "+++ use, d, drugs, science, study, medical, birth, children<br>--- founder, cdc, results, known, skin, milk, father, sugar, helps, garden" ], [ "+++ country, according, states, officials, u, news, the, told<br>--- chinese, switched, global, results, votes, voter, going, tape, voted, 8", "+++ right, global, state, the, believe, day<br>--- pope, switched, souls, earth, fear, religious, votes, voter, office, religion", "+++ real, think, right, says, d, i, country, years, re, going<br>--- saying, all, switched, global, results, votes, voter, tape, voted, 8", "+++ news, comments, posted<br>--- code, switched, global, results, follow, trunews, votes, voter, tv, 0", "+++ jones, state<br>--- fungal, switched, ginseng, global, results, mild, votes, voter, cannabis, going", "+++ country, soros, according, day, state, the, george<br>--- switched, global, results, protest, votes, voter, riots, going, black, voted", "+++ real, wnd, reporting, reported, press, news, the, posted, day, told<br>--- saying, switched, global, results, debate, votes, voter, tv, tweet, going", "+++ states, says, according, reports, county, state, u, news, line<br>--- corps, switched, global, results, mile, ground, partners, votes, voter, sheriff", "+++ says, jewish, country, states, news, the, similar<br>--- chinese, switched, german, global, results, hungary, votes, voter, paris, going", "+++ says, global, according, years, reported, state, u, news, 8, the<br>--- switched, results, month, votes, voter, 0, going, tape, voted, oct", "+++ real, the, office, years, state, board, line, george<br>--- all, switched, global, results, staff, votes, voter, writes, wmw, to", "+++ reported, line, day, reports, posted<br>--- rtd, switched, global, results, battle, soldiers, votes, voter, tweet, thursday", "+++ i, official, political, according, reports, evidence, reported, state, officials, election<br>--- switched, probe, results, discovered, line, staff, votes, voter, justice, going", "+++ similar, according, years<br>--- atmosphere, switched, caused, magnetic, global, results, earth, votes, voter, electricity", "+++ right, says, office, i, country, political, years, states, going, election<br>--- switched, global, results, tweeted, supporter, certainly, voter, tape, voted, he", "+++ state, u, texas<br>--- switched, wakingtimes, global, results, nevada, occupation, votes, voter, edward, tape", "+++ florida, evidence, u, news, years, george<br>--- stephens, switched, global, results, sexist, talks, alt, hate, votes, voter", "+++ sure, jewish, results, i, college, think<br>--- switched, text, global, children, formating, votes, voter, appears, state, send", "+++ states, officials, office, according, reports, evidence, county, reported, state, going<br>--- switched, violation, issued, global, results, legal, votes, voter, sheriff, justice", "+++ d, results, day<br>--- cdc, global, skin, children, votes, voter, switched, 3, sugar, going", "+++ soros, office, switched, neilson, results, years, held, paper, votes, voter<br>--- ", "+++ real, process<br>--- consider, switched, global, focus, issues, votes, voter, based, knowledge, going", "+++ country, political, states, state, u, the, think<br>--- switched, global, results, votes, voter, zone, turkish, bush, going, tape", "+++ right, d, office, i, country, states, state, u, the<br>--- switched, global, results, legal, issues, judges, voter, justice, program, creamer", "+++ evidence, official, according, reports, years, reported, told, posted<br>--- phenomenon, founder, switched, global, results, alien, votes, voter, extraterrestrial, tv", "+++ rigged, votes, cast, florida, voters, electoral, results, according, states, political<br>--- switched, global, democrats, debate, voter, going, candidates, voted, 8, obama", "+++ country, political, evidence, states, state, u<br>--- particularly, switched, global, results, publish, votes, voter, gulf, hayden, going", "+++ right, d, re, sure, news, the<br>--- ron, switched, lack, results, votes, voter, jay, obamacare, going, tape", "+++ real, global, years, state, u, news<br>--- sector, gold, switched, dollar, results, votes, voter, chinese, going, tape", "+++ the, paper, evidence, according, years<br>--- planetary, switched, queen, results, discovered, earth, votes, voter, explain, going", "+++ real, right, country, global, political, elections, years, states, state, u<br>--- switched, results, votes, voter, justice, going, black, voted, 8, sent", "+++ according, reports, years, reported, state, officials, news, the, evidence, told<br>--- shot, switched, global, allegations, results, gang, children, votes, voter, crime", "+++ jewish, according, reports, held, state, the<br>--- rebels, switched, global, results, qaeda, mosul, battle, soldiers, votes, voter", "+++ posted, told, says, day, years<br>--- shot, switched, global, results, children, votes, voter, father, young, foster", "+++ states, the, d, years<br>--- founder, switched, global, results, children, votes, voter, cannabis, father, going" ], [ "+++ world, use, possible, long, however<br>--- consider, chinese, focus, issues, current, based, knowledge, means, regional, coast", "+++ control, life, knowledge, power, point, self, mind, free, reality, society<br>--- consider, pope, global, souls, earth, fear, creative, religious, issues, based", "+++ real, life, good, point, feel, things, work, long, one, better<br>--- saying, all, consider, focus, issues, trying, based, knowledge, going, do", "+++ information, use, help, today, social<br>--- code, consider, focus, follow, trunews, issues, current, based, knowledge, tv", "+++ life, mind, free<br>--- fungal, consider, ginseng, focus, mild, issues, based, knowledge, ingredient, means", "+++ home, continue, lives, community, change<br>--- consider, focus, protest, issues, based, knowledge, riots, black, thousands, protestors", "+++ real, article, information, social<br>--- saying, consider, focus, debate, issues, based, knowledge, tv, tweet, mainstream", "+++ <br>--- consider, corps, focus, mile, issues, ground, partners, based, knowledge, sheriff", "+++ world, result, today<br>--- consider, chinese, german, focus, hungary, issues, based, knowledge, paris, communist", "+++ point, number, change, home, world, today<br>--- consider, global, focus, month, issues, based, knowledge, state, 0, 8", "+++ real, control, personal, work, order, article, making, example<br>--- all, consider, focus, issues, staff, current, based, knowledge, writes, wmw", "+++ <br>--- rtd, consider, focus, battle, soldiers, issues, based, knowledge, tweet, thursday", "+++ personal, information, use, long<br>--- consider, probe, focus, discovered, issues, staff, based, knowledge, justice, investigation", "+++ use, power, however, long, human, technology<br>--- atmosphere, consider, caused, magnetic, focus, earth, research, issues, current, based", "+++ things, possible, long, matter, article, world, today<br>--- consider, focus, tweeted, supporter, issues, certainly, based, knowledge, going, 8", "+++ control, long, free, power, face<br>--- consider, wakingtimes, focus, nevada, issues, occupation, based, knowledge, edward, torture", "+++ clear, good, however<br>--- consider, stephens, focus, sexist, talks, alt, hate, issues, based, knowledge", "+++ use, help, clear, needs, community, better, way, need, example<br>--- consider, text, results, children, formating, based, knowledge, send, meant, means", "+++ control, information, use, means, clear, however, matter, order<br>--- consider, violation, issued, focus, issues, based, knowledge, sheriff, justice, crime", "+++ use, important, help, best, common<br>--- consider, cdc, results, skin, research, children, issues, current, based, knowledge", "+++ real, process<br>--- consider, switched, global, results, issues, votes, voter, based, knowledge, going", "+++ consider, focus, human, issues, help, based, knowledge, personal, better, feel<br>--- ", "+++ power, clear, current, world, order, change<br>--- consider, focus, issues, based, knowledge, zone, turkish, bush, means, tanks", "+++ action, work, change, issues, one<br>--- consider, focus, judges, based, knowledge, justice, program, creamer, congressional, cuba", "+++ world, information, subject<br>--- phenomenon, founder, focus, alien, research, issues, consider, based, knowledge, extraterrestrial", "+++ person, change, point<br>--- consider, results, democrats, debate, issues, votes, based, knowledge, candidates, carolina", "+++ world, number, human<br>--- particularly, consider, focus, issues, current, based, knowledge, gulf, means, negative", "+++ needs, help, free, long, order, best<br>--- consider, ron, lack, focus, issues, based, knowledge, jay, obamacare, brown", "+++ real, system, long, current, free, world<br>--- sector, consider, gold, global, dollar, focus, issues, based, chinese, treasury", "+++ technology, place, however, long<br>--- planetary, consider, queen, focus, discovered, earth, issues, based, knowledge, explain", "+++ real, control, power, self, free, society, future, long, way, social<br>--- consider, global, focus, issues, based, knowledge, justice, black, mainstream, means", "+++ lives, home, life, place<br>--- shot, consider, allegations, focus, gang, children, issues, suicide, based, knowledge", "+++ <br>--- rebels, focus, qaeda, mosul, battle, soldiers, issues, consider, weapons, based", "+++ home, life, face, help, social<br>--- shot, consider, child, focus, children, issues, based, knowledge, father, young", "+++ use, human<br>--- consider, founder, focus, children, issues, based, knowledge, father, garden, means" ], [ "+++ force, washington, general, states, president, united, nuclear, government, relations, attack<br>--- operations, coup, alliance, clinton, chinese, presence, neocon, political, america, strategic", "+++ end, power, us, order, state, world, the, called<br>--- pope, global, souls, earth, fear, religious, knowledge, zone, turkish, bush", "+++ we, end, that, country, no, us, course, so, world, think<br>--- saying, all, trying, zone, turkish, bush, going, obama, do, stop", "+++ policy, post<br>--- code, follow, trunews, current, zone, turkish, tv, 0, bush, obama", "+++ state, force<br>--- fungal, ginseng, mild, zone, turkish, bush, obama, ingredient, activation, tanks", "+++ government, country, state, attack, security, america, the, change<br>--- protest, zone, turkish, riots, bush, black, thousands, protestors, fly, cannon", "+++ media, post, propaganda, the<br>--- saying, debate, zone, turkish, tv, tweet, bush, obama, mainstream, watch", "+++ states, american, we, u, state<br>--- called, corps, mile, ground, partners, sheriff, turkish, thursday, bush, wood", "+++ europe, called, eastern, united, countries, country, government, war, states, west<br>--- chinese, german, hungary, zone, turkish, paris, bush, communist, population, far", "+++ end, state, u, 2014, world, the, change<br>--- global, month, zone, turkish, 0, bush, 8, posted, oct, far", "+++ the, government, media, general, state, policy, president, post, order, called<br>--- all, staff, current, zone, turkish, writes, wmw, to, bush, include", "+++ military, force, general<br>--- rtd, battle, soldiers, zone, turkish, tweet, thursday, bush, posted, veterans", "+++ clinton, washington, influence, political, hillary, general, state, president, the, presidential<br>--- called, probe, discovered, staff, zone, turkish, justice, bush, huma, sent", "+++ power<br>--- atmosphere, caused, magnetic, produce, earth, cell, zone, turkish, electricity, environment", "+++ president, united, clinton, country, washington, hillary, states, course, american, political<br>--- tweeted, supporter, certainly, zone, turkish, bush, going, 8, hope, tanks", "+++ interests, coup, cia, power, government, intelligence, american, state, u, security<br>--- wakingtimes, nevada, occupation, zone, turkish, bush, edward, obama, torture, bear", "+++ iran, media, clear, american, bush, u, president, war<br>--- called, stephens, sexist, talks, alt, hate, zone, turkish, finally, black", "+++ clear, post, american, think<br>--- called, text, results, children, formating, appears, zone, turkish, state, send", "+++ force, government, clear, states, state, security, order<br>--- evidence, violation, issued, sheriff, turkish, justice, crime, bush, going, local", "+++ <br>--- cdc, results, skin, children, current, zone, turkish, 3, sugar, bush", "+++ country, political, states, state, u, the, think<br>--- called, switched, global, results, votes, voter, zone, turkish, bush, going", "+++ power, clear, current, world, order, change<br>--- consider, focus, issues, based, knowledge, zone, turkish, bush, means, tanks", "+++ coup, course, world, cold, zone, turkish, bush, nato, overthrow, policy<br>--- ", "+++ we, united, general, government, country, washington, american, america, foreign, states<br>--- called, issues, judges, zone, turkish, justice, bush, program, creamer, congressional", "+++ world, threat, intelligence<br>--- phenomenon, founder, alien, zone, turkish, tv, 0, bush, posted, extraterrestrials", "+++ clinton, political, washington, state, states, american, presidential, media, president, obama<br>--- called, results, democrats, debate, votes, zone, turkish, bush, candidates, carolina", "+++ media, called, united, libya, countries, intelligence, government, political, american, foreign<br>--- particularly, current, gulf, turkish, bush, tanks, despite, report, assad, governments", "+++ we, us, 2014, the, order, obama<br>--- ron, lack, zone, jay, obamacare, bush, brown, worst, tanks, report", "+++ countries, government, current, state, u, policy, world<br>--- sector, gold, global, dollar, chinese, zone, turkish, bush, treasury, street", "+++ the, called<br>--- planetary, queen, discovered, earth, zone, turkish, explain, bush, black, famous", "+++ leaders, states, course, president, united, end, media, political, state, policy<br>--- control, anti, clinton, coup, civil, global, confrontation, years, revolution, moral", "+++ the, state, attack, called<br>--- shot, allegations, gang, children, suicide, zone, turkish, crime, bush, black", "+++ middle, syrian, regime, turkey, turkish, west, eastern, state, attack, international<br>--- operations, coup, bush, clinton, rebels, campaign, terrorists, neocon, administration, confrontation", "+++ middle<br>--- shot, children, zone, turkish, father, young, bush, foster, obama, local", "+++ states, the<br>--- founder, children, zone, turkish, father, bush, plants, garden, tanks, assad" ], [ "+++ united, group, government, country, washington, foreign, states, defense, u, president<br>--- chinese, issues, judges, justice, program, creamer, congressional, cuba, regional, coast", "+++ state, right, the<br>--- pope, global, souls, earth, fear, religious, issues, judges, office, justice", "+++ we, right, d, i, country, work, one<br>--- saying, all, issues, judges, trying, justice, going, creamer, obama, congressional", "+++ policy, list<br>--- code, comments, follow, trunews, issues, judges, tv, 0, program, creamer", "+++ 2015, state, health, campaign<br>--- vitamins, fungal, ginseng, mild, issues, judges, justice, program, creamer, obama", "+++ group, government, country, national, rights, nation, state, 000, california, members<br>--- protest, issues, judges, justice, riots, program, black, thousands, congressional, protestors", "+++ speech, the, list, york, campaign<br>--- saying, debate, issues, judges, tv, tweet, program, creamer, obama, congressional", "+++ we, rights, national, state, states, american, americans, department, u, law<br>--- corps, mile, issues, ground, partners, judges, sheriff, justice, thursday, wood", "+++ citizens, government, country, national, muslim, states, second, united, the<br>--- called, chinese, german, hungary, issues, judges, paris, program, creamer, communist", "+++ 20, second, state, 000, u, year, 2015, the, change<br>--- global, month, issues, judges, justice, 0, program, creamer, 8, posted", "+++ group, office, government, money, work, chief, general, state, 000, york<br>--- all, issues, staff, judges, justice, writes, wmw, to, program, creamer", "+++ national, john, chief, general<br>--- rtd, battle, soldiers, issues, judges, justice, tweet, thursday, program, creamer", "+++ attorney, congress, campaign, justice, house, decision, washington, i, general, director<br>--- probe, discovered, issues, staff, judges, program, creamer, huma, sent, cuba", "+++ california, health<br>--- atmosphere, caused, magnetic, mexican, issues, judges, electricity, environment, program, creamer", "+++ right, campaign, office, i, house, washington, america, nation, states, elected<br>--- tweeted, supporter, issues, certainly, justice, going, creamer, 8, hope, cuba", "+++ group, government, federal, national, american, state, defense, u, year, security<br>--- wakingtimes, nevada, issues, occupation, judges, justice, edward, creamer, keystone, obama", "+++ house, national, american, u, york, president, white, john<br>--- stephens, sexist, talks, alt, hate, issues, judges, justice, bush, program", "+++ i, american, effort, policies<br>--- text, results, children, formating, judges, justice, state, send, program, creamer", "+++ attorney, office, national, states, year, court, constitution, justice, illegal, decision<br>--- evidence, violation, issued, issues, judges, sheriff, crime, going, creamer, local", "+++ health, d<br>--- cdc, results, skin, children, issues, judges, justice, 3, sugar, program", "+++ right, d, office, i, country, states, state, u, the<br>--- switched, global, results, comments, issues, votes, voter, justice, going, tape", "+++ action, work, change, issues, one<br>--- consider, focus, judges, based, knowledge, justice, program, creamer, congressional, cuba", "+++ we, united, general, government, country, washington, american, america, foreign, states<br>--- issues, judges, zone, turkish, justice, bush, program, creamer, congressional, cuba", "+++ mexican, office, money, executive, committee, issues, judges, group, justice, barack<br>--- ", "+++ 2015, health, national, group, committee<br>--- phenomenon, founder, alien, issues, judges, extraterrestrial, tv, 0, program, creamer", "+++ states, campaign, senate, house, national, washington, american, barack, state, americans<br>--- results, democrats, debate, issues, votes, justice, program, candidates, congressional, carolina", "+++ united, john, group, campaign, government, money, rights, american, foreign, states<br>--- particularly, publish, issues, judges, gulf, justice, program, creamer, congressional, cuba", "+++ we, right, d, house, executive, health, americans, white, the, obama<br>--- ron, lack, issues, judges, jay, justice, obamacare, program, creamer, congressional", "+++ government, federal, money, tax, state, u, year, policy<br>--- sector, gold, global, dollar, issues, judges, chinese, justice, program, creamer", "+++ the<br>--- planetary, mexico, queen, discovered, earth, issues, judges, justice, explain, program", "+++ right, national, states, americans, united, justice, state, policy, white, government<br>--- global, issues, judges, program, black, congressional, mainstream, cuba, far, trade", "+++ attorney, court, chief, state, year, department, the<br>--- shot, allegations, gang, children, issues, judges, suicide, justice, crime, program", "+++ group, campaign, government, muslim, state, 000, security, the<br>--- rebels, qaeda, mosul, battle, soldiers, issues, judges, turkish, justice, iraqi", "+++ house, muslim, gun, year<br>--- shot, children, issues, judges, justice, father, young, program, creamer, money", "+++ states, the, national, california, d<br>--- founder, children, issues, judges, justice, 95, father, program, creamer, congressional" ], [ "+++ world, group, according, threat, told<br>--- phenomenon, chinese, alien, founder, lights, tv, 0, extraterrestrials, egyptian, regional", "+++ source, secret, history, world<br>--- phenomenon, pope, global, souls, alien, earth, fear, moon, religious, founder", "+++ world, years<br>--- saying, all, phenomenon, founder, alien, trying, lights, tv, 0, going", "+++ articles, source, tv, related, 0, information, data, posted<br>--- code, phenomenon, founder, alien, follow, trunews, lights, list, extraterrestrials, egyptian", "+++ 2015, source, health, meat, lab<br>--- fungal, phenomenon, founder, ginseng, alien, mild, hai, lights, tv, 0", "+++ national, group, according<br>--- phenomenon, founder, alien, protest, extraterrestrial, tv, riots, 0, black, thousands", "+++ information, released, tv, reported, video, report, posted, told<br>--- saying, phenomenon, founder, alien, debate, extraterrestrial, tweet, 0, extraterrestrials, mainstream", "+++ national, according, reports<br>--- phenomenon, corps, alien, mile, ground, partners, founder, sheriff, lights, tv", "+++ world, national, later, history<br>--- phenomenon, chinese, german, alien, hungary, founder, lights, paris, 0, topic", "+++ reported, according, years, 0, report, 2015, world, data, posted<br>--- phenomenon, founder, global, month, alien, lights, tv, state, 8, oct", "+++ source, group, years<br>--- all, phenomenon, founder, alien, staff, lights, tv, writes, wmw, to", "+++ reported, national, reports, posted<br>--- rtd, phenomenon, founder, alien, battle, soldiers, extraterrestrial, tv, tweet, thursday", "+++ case, information, official, reported, classified, according, related, evidence, source, documents<br>--- phenomenon, founder, probe, discovered, staff, lights, justice, 0, huma, sent", "+++ scientific, lights, according, research, source, health, scientists, years, dr<br>--- atmosphere, phenomenon, founder, caused, magnetic, alien, earth, electricity, environment, 0", "+++ world, history, event, years<br>--- phenomenon, founder, alien, tweeted, supporter, certainly, lights, tv, 0, going", "+++ later, group, intelligence, national, agency, secret, nsa, history<br>--- phenomenon, founder, wakingtimes, alien, nevada, occupation, extraterrestrial, tv, 0, edward", "+++ case, national, later, evidence, secret, years, history<br>--- phenomenon, stephens, sexist, alien, talks, alt, hate, founder, lights, tv", "+++ dr<br>--- phenomenon, founder, text, results, alien, children, formating, lights, tv, send", "+++ case, information, national, agency, according, reports, evidence, reported, secret, told<br>--- phenomenon, founder, violation, issued, alien, sheriff, lights, justice, crime, 0", "+++ health, dr, research<br>--- phenomenon, founder, cdc, results, alien, skin, children, lights, tv, sugar", "+++ evidence, official, according, reports, years, reported, told, posted<br>--- phenomenon, founder, switched, global, results, alien, votes, voter, lights, tv", "+++ world, information, subject<br>--- consider, founder, focus, alien, creative, issues, phenomenon, based, knowledge, lights", "+++ world, threat, intelligence<br>--- phenomenon, founder, alien, zone, turkish, tv, 0, bush, posted, extraterrestrials", "+++ 2015, health, national, group, committee<br>--- phenomenon, founder, alien, issues, judges, extraterrestrial, justice, 0, program, creamer", "+++ phenomenon, founder, years, alien, symbolism, committee, chaffetz, group, lights, tv<br>--- ", "+++ national, according, committee, told<br>--- phenomenon, founder, results, alien, democrats, debate, votes, favor, tv, 0", "+++ group, intelligence, evidence, report, 2015, world<br>--- particularly, phenomenon, founder, alien, gulf, lights, tv, 0, topic, extraterrestrials", "+++ report, health<br>--- phenomenon, ron, lack, alien, founder, jay, tv, obamacare, 0, posted", "+++ world, years<br>--- sector, phenomenon, gold, global, dollar, alien, chinese, extraterrestrial, tv, 0", "+++ space, according, years, source, nasa, anonymous, scientists, evidence, event<br>--- planetary, phenomenon, founder, queen, discovered, earth, lights, tv, explain, 0", "+++ world, national, history, years<br>--- phenomenon, founder, global, alien, dimension, lights, justice, 0, black, extraterrestrials", "+++ case, later, according, reports, years, reported, report, evidence, told<br>--- shot, phenomenon, founder, allegations, alien, gang, children, suicide, extraterrestrial, tv", "+++ group, according, reports<br>--- rebels, founder, alien, qaeda, mosul, battle, soldiers, phenomenon, turkish, tv", "+++ later, years, eddie, video, told, posted<br>--- shot, phenomenon, founder, alien, children, lights, tv, father, young, 0", "+++ national, scientific, related, founder, years<br>--- phenomenon, alien, children, lights, tv, father, 0, extraterrestrials, garden, egyptian" ], [ "+++ north, washington, according, states, president, news, secretary, told<br>--- chinese, results, democrats, debate, votes, candidates, carolina, michigan, regional, coast", "+++ state, race, day, fact, point<br>--- pope, global, souls, democrats, earth, fear, religious, debate, votes, knowledge", "+++ person, day, point<br>--- saying, all, results, democrats, debate, votes, trying, going, candidates, he", "+++ news, november, support<br>--- code, results, democrats, follow, trunews, votes, tv, 0, candidates, posted", "+++ state, campaign<br>--- fungal, ginseng, results, mild, democrats, debate, votes, candidates, obama, ingredient", "+++ week, national, according, state, day, change<br>--- results, protest, democrats, debate, votes, riots, black, thousands, protestors, cannon", "+++ week, campaign, media, day, speech, cnn, news, debate, told<br>--- saying, results, democrats, votes, tv, tweet, candidates, posted, carolina, mainstream", "+++ north, support, american, according, states, state, americans, news, national<br>--- corps, results, mile, democrats, debate, ground, partners, votes, sheriff, thursday", "+++ states, news, national, fact<br>--- chinese, german, results, democrats, hungary, debate, votes, paris, candidates, communist", "+++ week, point, support, percent, likely, according, early, record, state, points<br>--- global, results, month, democrats, debate, votes, 0, candidates, 8, posted", "+++ media, state, support, fact, president<br>--- all, results, democrats, debate, staff, votes, writes, wmw, to, candidates", "+++ november, national, day, moore<br>--- rtd, results, democrats, battle, soldiers, debate, votes, tweet, thursday, indian", "+++ president, democratic, clinton, campaign, house, washington, according, political, state, election<br>--- probe, results, discovered, democrats, debate, staff, votes, justice, candidates, huma", "+++ according, lead<br>--- atmosphere, caused, magnetic, results, democrats, earth, debate, votes, lights, electricity", "+++ clinton, trump, campaign, house, washington, states, donald, americans, election, vote<br>--- rigged, elect, megyn, office, violence, wall, percent, tuesday, secretary, results", "+++ american, national, state<br>--- wakingtimes, results, democrats, nevada, debate, occupation, votes, edward, candidates, bundy", "+++ president, house, national, florida, american, race, media, news, november, white<br>--- stephens, results, sexist, democrats, talks, alt, hate, debate, votes, bush", "+++ american, college, results<br>--- text, democrats, children, formating, votes, state, send, version, candidates, carolina", "+++ states, national, according, state, told<br>--- violation, issued, results, democrats, debate, votes, sheriff, justice, crime, going", "+++ results, day<br>--- cdc, democrats, skin, children, votes, 3, sugar, candidates, helps, obama", "+++ rigged, votes, cast, florida, voters, electoral, elections, results, states, political<br>--- switched, global, democrats, debate, voter, going, tape, voted, 8, posted", "+++ person, change, point<br>--- consider, secretary, focus, democrats, debate, issues, votes, based, knowledge, candidates", "+++ clinton, political, washington, state, states, american, presidential, media, president, obama<br>--- results, democrats, debate, votes, zone, turkish, bush, candidates, carolina, michigan", "+++ states, campaign, senate, house, national, washington, american, barack, state, americans<br>--- results, democrats, debate, issues, judges, justice, program, creamer, congressional, carolina", "+++ national, according, committee, told<br>--- phenomenon, founder, results, alien, democrats, debate, votes, favor, tv, 0", "+++ results, democrats, committee, debate, votes, candidate, winning, barack, candidates, 2012<br>--- ", "+++ campaign, media, support, political, american, states, state, wikileaks<br>--- particularly, results, democrats, debate, votes, gulf, candidates, carolina, michigan, despite", "+++ lead, house, green, democrat, running, americans, cnn, news, white, gop<br>--- ron, lack, results, democrats, debate, votes, jay, obamacare, candidates, carolina", "+++ news, state<br>--- sector, gold, global, dollar, results, democrats, debate, votes, chinese, candidates", "+++ according<br>--- planetary, queen, results, discovered, democrats, earth, debate, votes, explain, black", "+++ president, media, national, political, state, elections, states, american, americans, fact<br>--- global, results, democrats, debate, votes, justice, black, carolina, mainstream, far", "+++ news, state, according, told<br>--- shot, secretary, allegations, results, gang, children, votes, suicide, crime, black", "+++ state, support, according, campaign<br>--- rebels, results, qaeda, mosul, battle, soldiers, debate, votes, turkish, iraqi", "+++ house, she, party, november, day, told<br>--- shot, results, democrats, children, votes, father, young, foster, candidates, obama", "+++ states, national<br>--- founder, results, democrats, children, votes, father, candidates, carolina, garden, michigan" ], [ "+++ states, united, group, u, countries, country, region, government, foreign, weapons<br>--- particularly, chinese, gulf, regional, coast, joint, despite, report, governments, saudi", "+++ world, state, called, human<br>--- particularly, pope, global, souls, earth, fear, religious, knowledge, gulf, religion", "+++ world, there, country<br>--- saying, all, particularly, sales, trying, gulf, re, going, do, stop", "+++ policy, rt, support, published<br>--- code, particularly, sales, comments, follow, trunews, access, gulf, tv, 0", "+++ 2015, state, campaign<br>--- fungal, particularly, ginseng, mild, gulf, cannabis, ingredient, activation, sales, despite", "+++ group, rights, country, government, state, 000, groups<br>--- particularly, sales, protest, gulf, riots, black, thousands, protestors, homes, cannon", "+++ journalists, campaign, media, narrative, interview, published, report<br>--- saying, particularly, sales, debate, gulf, tv, tweet, mainstream, watch, facebook", "+++ oil, rights, support, state, states, american, u, region<br>--- particularly, corps, sales, mile, ground, partners, sheriff, thursday, wood, local", "+++ united, countries, country, government, africa, british, called, states, western, world<br>--- particularly, chinese, german, hungary, gulf, paris, communist, far, merkel, despite", "+++ 9, support, million, number, report, state, 000, u, year, 2015<br>--- particularly, global, month, gulf, 0, 8, posted, oct, organizations, far", "+++ media, claims, group, government, money, support, million, state, 000, including<br>--- all, particularly, staff, access, gulf, writes, wmw, to, include, activities", "+++ john, center<br>--- rtd, particularly, sales, battle, soldiers, gulf, tweet, thursday, posted, veterans", "+++ campaign, political, evidence, state, 000, 2015, wikileaks, john<br>--- particularly, probe, discovered, staff, gulf, justice, huma, sent, lynch, despite", "+++ center, human, published<br>--- atmosphere, particularly, sales, caused, magnetic, produce, earth, cell, gulf, electricity", "+++ united, campaign, country, political, states, american, year, 9, world, called<br>--- particularly, tweeted, supporter, certainly, gulf, going, 8, obama, hope, despite", "+++ oil, group, government, intelligence, published, american, state, u, year<br>--- particularly, wakingtimes, nevada, occupation, gulf, edward, torture, bear, cheaper, despite", "+++ media, arms, evidence, american, u, 9, john, war<br>--- particularly, stephens, sales, sexist, talks, alt, hate, gulf, bush, black", "+++ american<br>--- called, particularly, sales, text, results, children, formating, gulf, state, send", "+++ rights, government, crimes, evidence, states, state, including, year<br>--- particularly, violation, issued, legal, sheriff, justice, crime, going, local, activities", "+++ oil, including<br>--- particularly, cdc, sales, results, skin, children, weapons, gulf, 3, sugar", "+++ country, political, evidence, states, state, u<br>--- particularly, switched, sales, global, results, comments, votes, voter, gulf, re", "+++ world, number, human<br>--- particularly, consider, focus, issues, current, based, knowledge, gulf, means, despite", "+++ media, united, war, libya, countries, intelligence, government, political, american, foreign<br>--- particularly, current, zone, turkish, bush, tanks, despite, report, assad, governments", "+++ united, group, campaign, rights, money, government, year, american, foreign, states<br>--- particularly, publish, issues, judges, gulf, justice, program, creamer, congressional, cuba", "+++ group, intelligence, evidence, 2015, report, world<br>--- particularly, phenomenon, founder, sales, alien, gulf, extraterrestrial, tv, 0, topic", "+++ campaign, media, support, political, american, states, state, wikileaks<br>--- particularly, results, democrats, debate, votes, gulf, candidates, carolina, michigan, despite", "+++ particularly, money, terrorist, embassy, including, human, group, gulf, policy, 2011<br>--- ", "+++ report, al<br>--- particularly, ron, lack, gulf, jay, obamacare, brown, worst, despite, governments", "+++ billion, oil, financial, countries, money, government, state, u, year, policy<br>--- sector, particularly, gold, global, dollar, weapons, chinese, gulf, treasury, street", "+++ called, evidence<br>--- planetary, particularly, sales, queen, discovered, earth, gulf, explain, black, famous", "+++ media, rights, countries, country, support, government, political, american, foreign, states<br>--- particularly, global, gulf, justice, black, mainstream, far, despite, report, trade", "+++ crimes, evidence, state, year, report, claims, called<br>--- shot, sales, allegations, gang, particularly, children, suicide, gulf, crime, black", "+++ terrorist, group, campaign, isis, attacks, region, government, al, war, weapons<br>--- particularly, rebels, qaeda, mosul, battle, soldiers, gulf, turkish, iraqi, terror", "+++ middle, year<br>--- shot, sales, particularly, children, gulf, father, young, foster, money, local", "+++ states, human<br>--- particularly, founder, sales, children, gulf, cannabis, father, garden, despite, report" ], [ "+++ news, the, us, long, air<br>--- chinese, lack, ron, jay, obamacare, brown, regional, coast, joint, worst", "+++ right, us, away, long, live, free, the, come, order<br>--- pope, global, souls, earth, fear, religious, ron, jay, obamacare, lord", "+++ we, right, d, big, away, live, long, re, bad, sure<br>--- saying, all, ron, lack, trying, jay, obamacare, going, he, do", "+++ news, help, phone<br>--- code, ron, lack, follow, trunews, jay, tv, obamacare, 0, posted", "+++ health, free<br>--- fungal, ron, ginseng, lack, mild, jay, obamacare, obama, ingredient, brown", "+++ city, the, come, crisis<br>--- ron, lack, protest, jay, obamacare, riots, black, thousands, protestors, brown", "+++ report, news, the, cnn, online<br>--- saying, ron, lack, debate, jay, tv, tweet, obamacare, posted, brown", "+++ news, we, americans<br>--- corps, lack, mile, ground, partners, ron, sheriff, jay, obamacare, state", "+++ news, the, leader, city<br>--- chinese, german, lack, hungary, ron, jay, paris, obamacare, communist, obama", "+++ report, news, the, 2014, previous<br>--- ron, global, month, jay, obamacare, state, 0, 8, posted, oct", "+++ big, the, order<br>--- all, ron, lack, staff, jay, writes, wmw, fund, to, include", "+++ vice, service, air<br>--- rtd, ron, lack, battle, soldiers, jay, tweet, obamacare, thursday, rss", "+++ house, the, long, news<br>--- ron, probe, discovered, staff, jay, justice, obamacare, huma, sent, brown", "+++ health, long, lead, air<br>--- atmosphere, ron, caused, magnetic, lack, earth, jay, electricity, obamacare, environment", "+++ right, house, long, sign, americans, joe, white, obama<br>--- ron, lack, tweeted, supporter, certainly, jay, obamacare, going, 8, hope", "+++ long, free, ryan<br>--- ron, wakingtimes, lack, nevada, occupation, jay, obamacare, edward, keystone, bundy", "+++ house, white, cover, brown, news<br>--- stephens, lack, sexist, talks, alt, hate, ron, jay, obamacare, bush", "+++ needs, live, sure, help, takes<br>--- ron, text, lack, results, children, formating, jay, obamacare, send, meant", "+++ phone, order, service<br>--- ron, violation, issued, lack, sheriff, jay, justice, obamacare, crime, going", "+++ tea, health, help, best, d<br>--- ron, cdc, lack, results, skin, children, jay, obamacare, sugar, helps", "+++ right, d, re, sure, news, the<br>--- ron, switched, global, results, votes, voter, jay, obamacare, going, tape", "+++ needs, help, free, long, order, best<br>--- consider, ron, lack, focus, issues, based, knowledge, jay, obamacare, brown", "+++ we, us, 2014, the, order, obama<br>--- ron, lack, zone, turkish, obamacare, bush, brown, worst, tanks, report", "+++ we, right, d, house, executive, health, americans, white, the, obama<br>--- ron, lack, issues, judges, jay, justice, obamacare, program, creamer, congressional", "+++ report, health<br>--- phenomenon, founder, lack, alien, ron, extraterrestrial, tv, obamacare, 0, posted", "+++ lead, house, green, democrat, running, americans, cnn, news, white, gop<br>--- ron, lack, results, democrats, debate, votes, jay, obamacare, candidates, carolina", "+++ report, al<br>--- particularly, ron, lack, gulf, jay, obamacare, brown, worst, despite, governments", "+++ help, ron, executive, proposes, signs, paul, previous, retirement, jay, obamacare<br>--- ", "+++ free, big, long, plan, news, crisis<br>--- sector, gold, global, dollar, chinese, jay, obamacare, treasury, brown, lack", "+++ the, look, long<br>--- planetary, ron, queen, discovered, earth, jay, explain, obamacare, black, brown", "+++ the, right, us, long, order, americans, free, white, crisis<br>--- ron, global, jay, justice, obamacare, black, brown, lack, mainstream, far", "+++ report, news, the, cover, city<br>--- shot, ron, lack, allegations, gang, children, suicide, jay, obamacare, crime", "+++ city, the, al, us, air<br>--- rebels, ron, lack, qaeda, mosul, battle, soldiers, turkish, obamacare, daesh", "+++ house, away, help, service<br>--- shot, ron, lack, children, jay, father, young, foster, obama, local", "+++ the, d<br>--- founder, lack, children, ron, jay, father, brown, garden, worst, report" ], [ "+++ chinese, countries, government, long, china, news, world, u<br>--- sector, gold, global, dollar, current, treasury, regional, coast, joint, trade", "+++ global, long, state, free, world, higher<br>--- sector, pope, dollar, souls, earth, fear, religious, chinese, treasury, lord", "+++ real, big, long, world, years<br>--- sector, saying, all, gold, global, dollar, trying, chinese, going, treasury", "+++ policy, news, company, companies<br>--- sector, code, gold, global, dollar, follow, trunews, current, chinese, tv", "+++ state, free<br>--- sector, fungal, chinese, ginseng, global, dollar, mild, content, gold, treasury", "+++ state, crisis, government<br>--- sector, gold, global, dollar, protest, chinese, riots, stand, black, treasury", "+++ real, news<br>--- sector, saying, gold, global, dollar, debate, chinese, tv, tweet, treasury", "+++ oil, company, private, state, u, news<br>--- sector, corps, global, dollar, mile, ground, partners, gold, sheriff, thursday", "+++ chinese, countries, government, china, news, world<br>--- sector, gold, german, global, dollar, known, hungary, paris, treasury, communist", "+++ high, global, rate, years, increase, state, u, low, year, world<br>--- sector, gold, dollar, month, chinese, 0, treasury, 8, posted, oct", "+++ real, business, government, money, industry, private, years, fund, state, big<br>--- sector, all, gold, global, dollar, staff, current, chinese, writes, wmw", "+++ major, central<br>--- sector, rtd, gold, global, dollar, battle, soldiers, chinese, tweet, thursday", "+++ news, state, long, private<br>--- sector, gold, probe, dollar, discovered, staff, chinese, justice, treasury, huma", "+++ high, lower, industry, long, years, large, products, low<br>--- sector, atmosphere, gold, caused, magnetic, global, dollar, known, earth, current", "+++ wall, world, year, long, years<br>--- sector, gold, global, dollar, tweeted, supporter, certainly, chinese, going, treasury", "+++ oil, government, federal, long, state, u, free, year<br>--- sector, gold, wakingtimes, global, dollar, nevada, occupation, chinese, edward, treasury", "+++ news, u, years<br>--- sector, stephens, global, dollar, sexist, talks, alt, hate, gold, bush", "+++ <br>--- sector, gold, text, global, dollar, results, children, formating, chinese, 3", "+++ government, federal, pay, private, high, state, year<br>--- sector, gold, violation, issued, global, dollar, chinese, sheriff, justice, crime", "+++ increase, high, oil, products, low<br>--- sector, gold, cdc, global, dollar, results, prices, skin, children, current", "+++ real, global, years, state, u, news<br>--- sector, gold, switched, dollar, results, votes, voter, chinese, going, tape", "+++ real, system, long, current, free, world<br>--- sector, consider, gold, global, dollar, focus, issues, based, knowledge, treasury", "+++ countries, government, current, state, u, policy, world<br>--- sector, gold, global, dollar, chinese, zone, turkish, bush, treasury, street", "+++ government, federal, money, tax, state, u, year, policy<br>--- sector, chinese, global, dollar, issues, judges, gold, justice, program, creamer", "+++ world, years<br>--- sector, phenomenon, founder, global, dollar, alien, gold, extraterrestrial, tv, 0", "+++ news, state<br>--- sector, gold, global, dollar, results, democrats, debate, votes, chinese, candidates", "+++ billion, oil, financial, countries, money, government, state, u, year, policy<br>--- sector, particularly, chinese, global, dollar, current, gold, gulf, treasury, despite", "+++ free, big, long, plan, news, crisis<br>--- sector, ron, lack, dollar, gold, jay, obamacare, treasury, chinese, brown", "+++ sector, chinese, money, global, dollar, trade, current, gold, production, treasury<br>--- ", "+++ long, years<br>--- sector, planetary, gold, queen, dollar, discovered, prices, earth, chinese, explain", "+++ real, countries, street, government, global, free, years, state, economic, u<br>--- sector, gold, dollar, chinese, justice, black, treasury, mainstream, far, progressive", "+++ news, state, year, years<br>--- sector, shot, gold, global, allegations, gang, children, suicide, chinese, crime", "+++ state, government<br>--- sector, rebels, chinese, global, dollar, qaeda, mosul, battle, soldiers, weapons", "+++ year, years<br>--- sector, shot, gold, global, dollar, children, chinese, father, young, foster", "+++ industry, years<br>--- sector, founder, global, dollar, prices, children, chinese, father, treasury, garden" ], [ "+++ australia, however, long, according, near, sea, ship, the, south<br>--- planetary, chinese, queen, discovered, earth, explain, black, regional, coast, famous", "+++ ancient, light, long, source, earth, the, called<br>--- planetary, pope, global, souls, discovered, fear, religious, knowledge, explain, black", "+++ place, look, long, years<br>--- saying, all, planetary, queen, discovered, earth, trying, explain, going, black", "+++ a, source, 2<br>--- planetary, code, queen, discovered, follow, trunews, tv, explain, 0, black", "+++ source<br>--- planetary, fungal, ginseng, queen, discovered, mild, earth, explain, black, ingredient", "+++ the, left, black, according, team<br>--- planetary, queen, discovered, protest, earth, explain, riots, thousands, protestors, cannon", "+++ image, the<br>--- saying, planetary, queen, discovered, earth, debate, tv, tweet, black, mainstream", "+++ near, according, lake, south, area<br>--- planetary, corps, queen, discovered, mile, earth, ground, partners, sheriff, explain", "+++ known, the, called, came, century<br>--- planetary, chinese, german, queen, discovered, hungary, paris, explain, black, communist", "+++ ago, study, according, years, 2, 5, the, south<br>--- planetary, global, month, discovered, earth, explain, state, 0, black, 8", "+++ a, years, source, team, the, called<br>--- planetary, all, queen, discovered, earth, staff, writes, wmw, to, black", "+++ a, near, 2, 5<br>--- rtd, planetary, queen, discovered, battle, earth, tweet, thursday, black, posted", "+++ according, long, evidence, discovered, source, the<br>--- planetary, probe, earth, staff, justice, explain, black, huma, sent, queen", "+++ blue, field, light, area, science, university, however, long, years, source<br>--- planetary, atmosphere, caused, magnetic, queen, discovered, electricity, explain, environment, black", "+++ star, long, event, team, seen, hollywood, years, called, left<br>--- planetary, queen, discovered, earth, tweeted, supporter, certainly, explain, going, black", "+++ long<br>--- planetary, wakingtimes, queen, discovered, earth, nevada, occupation, explain, edward, black", "+++ however, evidence, black, team, years, south<br>--- planetary, stephens, queen, sexist, discovered, talks, earth, alt, hate, explain", "+++ a, university, 2, 5, appears<br>--- planetary, text, queen, results, discovered, earth, children, formating, explain, send", "+++ field, evidence, however, according<br>--- planetary, violation, issued, queen, discovered, earth, sheriff, justice, explain, crime", "+++ known, science, study, 2, 5<br>--- planetary, cdc, queen, results, discovered, skin, earth, children, explain, sugar", "+++ the, paper, evidence, according, years<br>--- planetary, switched, global, results, discovered, earth, votes, voter, explain, going", "+++ technology, place, however, long<br>--- planetary, consider, queen, focus, discovered, earth, issues, based, knowledge, explain", "+++ the, called<br>--- planetary, queen, discovered, earth, zone, turkish, explain, bush, black, famous", "+++ the<br>--- planetary, queen, discovered, earth, issues, judges, justice, explain, program, black", "+++ space, according, years, source, nasa, anonymous, scientists, evidence, event<br>--- planetary, phenomenon, founder, queen, alien, earth, extraterrestrial, tv, explain, 0", "+++ according<br>--- planetary, queen, results, discovered, democrats, earth, debate, votes, explain, candidates", "+++ called, evidence<br>--- planetary, particularly, queen, discovered, earth, gulf, explain, black, famous, anonymous", "+++ the, look, long<br>--- planetary, ron, lack, discovered, earth, jay, explain, obamacare, black, brown", "+++ long, years<br>--- sector, planetary, gold, global, dollar, discovered, prices, earth, chinese, explain", "+++ planetary, queen, years, discovered, paper, earth, captured, explain, sky, lake<br>--- ", "+++ the, left, black, long, years<br>--- planetary, global, discovered, earth, justice, explain, queen, mainstream, far, famous", "+++ ago, according, evidence, place, black, the, years, called<br>--- planetary, shot, queen, allegations, discovered, gang, earth, children, suicide, explain", "+++ the, according, area<br>--- planetary, rebels, queen, discovered, qaeda, mosul, battle, soldiers, turkish, explain", "+++ left, came, years<br>--- planetary, shot, queen, discovered, earth, children, explain, father, young, foster", "+++ ago, a, science, study, years, the<br>--- planetary, founder, queen, discovered, baby, earth, children, explain, father, black" ], [ "+++ president, nations, u, countries, country, government, peace, long, foreign, states<br>--- chinese, global, justice, black, mainstream, far, regional, coast, joint, trade", "+++ control, right, end, us, power, freedom, self, global, peace, free<br>--- pope, souls, earth, fear, religious, knowledge, justice, elite, black, lord", "+++ real, and, them, right, end, country, long, years, course, so<br>--- saying, all, global, justice, going, black, do, mainstream, far, stop", "+++ policy, support, class, today, social<br>--- code, global, follow, trunews, tv, 0, black, mainstream, far, facebook", "+++ and, state, free<br>--- fungal, ginseng, global, mild, justice, black, ingredient, mainstream, far, activation", "+++ rights, revolution, government, country, national, peace, nation, state, black, groups<br>--- global, protest, trying, justice, riots, thousands, protestors, mainstream, far, cannon", "+++ real, liberal, mainstream, media, propaganda, anti, social, the, public<br>--- saying, global, debate, tv, tweet, black, far, watch, facebook, reporters", "+++ rights, support, american, states, state, americans, u, national<br>--- corps, global, mile, ground, partners, sheriff, justice, thursday, wood, black", "+++ and, them, citizens, war, countries, far, country, national, government, propaganda<br>--- chinese, german, global, hungary, paris, black, communist, mainstream, merkel, end", "+++ end, far, support, global, years, state, u, today, world, the<br>--- month, justice, 0, black, 8, posted, oct, mainstream, 12, nearly", "+++ real, control, and, working, government, far, media, support, years, state<br>--- all, global, staff, justice, writes, wmw, to, black, include, activities", "+++ military, national<br>--- rtd, global, battle, soldiers, justice, tweet, thursday, black, posted, veterans", "+++ justice, political, long, corruption, state, president, the, democratic, public<br>--- probe, discovered, staff, black, huma, sent, global, mainstream, far, lynch", "+++ mass, long, power, years<br>--- atmosphere, caused, magnetic, global, earth, electricity, environment, black, risk, far", "+++ right, left, civil, country, political, long, nation, states, course, american<br>--- global, tweeted, supporter, certainly, justice, going, black, 8, obama, hope", "+++ and, interests, power, government, control, national, state, free, american, u<br>--- wakingtimes, global, nevada, occupation, justice, edward, black, mainstream, torture, far", "+++ u, media, national, peace, years, american, black, president, white, war<br>--- stephens, global, sexist, talks, alt, hate, justice, bush, case, mainstream", "+++ american, policies, way<br>--- text, global, results, children, formating, justice, state, send, black, sure", "+++ control, rights, government, justice, national, citizens, order, states, civil, state<br>--- violation, issued, global, sheriff, crime, going, black, local, activities, mainstream", "+++ anti<br>--- cdc, global, results, skin, children, justice, 3, sugar, black, helps", "+++ real, right, country, global, political, elections, years, states, state, u<br>--- switched, results, votes, voter, justice, going, tape, voted, 8, sent", "+++ real, control, power, self, free, society, today, long, way, social<br>--- consider, global, focus, issues, based, knowledge, justice, black, mainstream, means", "+++ leaders, states, middle, world, united, end, media, political, state, policy<br>--- millions, coup, invasion, peace, clinton, neocon, global, washington, years, revolution", "+++ right, national, states, americans, united, justice, state, policy, white, government<br>--- and, mexican, groups, office, civil, money, executive, washington, supreme, one", "+++ world, national, history, years<br>--- phenomenon, founder, global, alien, extraterrestrial, tv, 0, black, extraterrestrials, mainstream", "+++ president, media, national, political, state, elections, states, american, americans, fact<br>--- global, results, democrats, debate, votes, justice, candidates, carolina, mainstream, far", "+++ media, rights, countries, country, support, government, political, american, foreign, states<br>--- particularly, global, gulf, justice, black, mainstream, far, despite, report, trade", "+++ the, right, us, long, order, americans, free, white, crisis<br>--- ron, lack, jay, justice, obamacare, black, brown, global, mainstream, far", "+++ real, countries, u, government, global, free, trade, state, street, economic<br>--- sector, gold, dollar, chinese, justice, black, treasury, mainstream, far, progressive", "+++ the, left, black, long, years<br>--- planetary, queen, discovered, earth, justice, explain, global, mainstream, far, famous", "+++ global, years, course, justice, black, policy, decades, elites, real, them<br>--- ", "+++ the, state, black, public, years<br>--- shot, global, allegations, gang, children, suicide, justice, crime, woman, mainstream", "+++ government, support, us, middle, state, groups, military, international, the, war<br>--- rebels, global, qaeda, mosul, battle, soldiers, turkish, justice, iraqi, black", "+++ fight, middle, social, party, years, left<br>--- shot, global, children, justice, father, young, foster, black, local, wearing", "+++ states, national, the, years<br>--- founder, global, children, justice, father, black, garden, far, evolution, heaven" ], [ "+++ according, attack, officials, news, the, told<br>--- shot, chinese, allegations, gang, children, suicide, crime, black, woman, regional", "+++ life, death, men, times, state, the, called, man<br>--- shot, pope, global, allegations, souls, gang, earth, fear, religious, children", "+++ place, life, stop, years<br>--- saying, all, shot, allegations, gang, children, trying, crime, going, black", "+++ news<br>--- code, shot, allegations, gang, follow, trunews, suicide, tv, crime, 0", "+++ state, life<br>--- fungal, shot, ginseng, allegations, mild, gang, children, suicide, crime, black", "+++ city, police, lives, stop, according, officers, state, black, home, the<br>--- shot, allegations, protest, gang, children, suicide, crime, riots, thousands, protestors", "+++ story, times, reported, report, news, the, public, told<br>--- saying, shot, allegations, gang, debate, suicide, tv, tweet, crime, black", "+++ police, arrested, began, stop, according, reports, state, department, news<br>--- shot, corps, allegations, mile, gang, children, ground, partners, suicide, sheriff", "+++ city, death, later, public, news, the, called, happened<br>--- shot, chinese, german, allegations, gang, hungary, children, suicide, paris, crime", "+++ ago, according, years, reported, state, year, report, home, news, times<br>--- shot, global, allegations, month, gang, children, suicide, crime, 0, black", "+++ chief, times, public, state, claims, the, years, called<br>--- all, shot, allegations, gang, children, staff, suicide, writes, wmw, crime", "+++ reported, chief, killed, reports, officer<br>--- rtd, shot, allegations, gang, battle, soldiers, children, suicide, tweet, thursday", "+++ case, attorney, according, reports, evidence, reported, state, officials, investigation, department<br>--- shot, probe, allegations, discovered, gang, children, staff, suicide, justice, crime", "+++ according, years<br>--- atmosphere, shot, caused, magnetic, allegations, gang, earth, children, suicide, electricity", "+++ year, called, man, years<br>--- shot, allegations, gang, tweeted, children, certainly, suicide, crime, going, black", "+++ state, death, later, year<br>--- shot, wakingtimes, allegations, gang, nevada, children, occupation, suicide, crime, edward", "+++ case, story, evidence, later, cover, times, investigation, black, news, years<br>--- shot, stephens, allegations, sexist, gang, talks, alt, hate, children, suicide", "+++ children<br>--- shot, text, allegations, results, gang, formating, suicide, appears, state, send", "+++ attorney, crimes, evidence, officials, year, police, crime, state, prison, department<br>--- shot, violation, issued, allegations, gang, children, suicide, sheriff, justice, going", "+++ medical, cases, children<br>--- shot, cdc, doctors, allegations, results, gang, skin, milk, suicide, 3", "+++ according, reports, years, reported, state, officials, news, the, evidence, told<br>--- shot, switched, global, allegations, results, gang, children, votes, voter, crime", "+++ lives, home, life, place<br>--- shot, consider, allegations, focus, gang, children, issues, suicide, based, knowledge", "+++ the, state, attack, called<br>--- shot, allegations, gang, children, suicide, zone, turkish, crime, bush, black", "+++ attorney, court, state, chief, year, department, the<br>--- shot, allegations, gang, children, issues, judges, suicide, justice, crime, program", "+++ case, later, according, reports, years, reported, report, evidence, told<br>--- shot, phenomenon, founder, allegations, alien, gang, children, suicide, extraterrestrial, tv", "+++ news, state, according, told<br>--- shot, allegations, results, democrats, debate, votes, suicide, crime, candidates, carolina", "+++ crimes, evidence, state, year, report, claims, called<br>--- particularly, allegations, gang, shot, children, suicide, gulf, crime, black, woman", "+++ report, news, the, cover, city<br>--- shot, ron, lack, allegations, gang, children, suicide, jay, obamacare, crime", "+++ news, state, year, years<br>--- sector, shot, gold, global, dollar, gang, children, suicide, chinese, crime", "+++ ago, according, years, place, black, the, evidence, called<br>--- planetary, shot, queen, allegations, discovered, gang, earth, children, suicide, explain", "+++ the, state, black, public, years<br>--- shot, global, allegations, gang, children, flowers, justice, crime, woman, mainstream", "+++ shot, allegations, years, kill, gang, victim, committed, children, suicide, police<br>--- ", "+++ city, according, reports, killing, state, the, attack, killed<br>--- zionist, shot, rebels, allegations, qaeda, mosul, battle, soldiers, children, suicide", "+++ man, story, woman, old, took, family, home, men, life, later<br>--- allegations, gang, suicide, father, young, crime, foster, black, local, wearing", "+++ ago, death, medical, years, the, children<br>--- shot, founder, allegations, gang, suicide, father, crime, black, plants, woman" ], [ "+++ operations, including, group, troops, eastern, weapons, attack, forces, international, east<br>--- alliance, rebels, chinese, presence, al, civilians, washington, terrorist, strategic, held", "+++ state, the, us<br>--- rebels, pope, global, souls, qaeda, mosul, battle, earth, fear, religious", "+++ us<br>--- saying, all, rebels, qaeda, mosul, battle, soldiers, trying, turkish, daesh", "+++ support, october<br>--- code, 0, qaeda, mosul, battle, follow, trunews, rebels, access, turkish", "+++ state, campaign<br>--- fungal, rebels, ginseng, mild, qaeda, mosul, battle, soldiers, turkish, iraqi", "+++ city, group, groups, government, according, state, 000, opposition, security, attack<br>--- rebels, protest, qaeda, mosul, battle, soldiers, turkish, riots, iraqi, black", "+++ the, campaign<br>--- saying, rebels, qaeda, mosul, battle, soldiers, debate, turkish, tv, tweet", "+++ october, army, region, area, according, reports, state, support<br>--- rebels, corps, mile, mosul, battle, soldiers, ground, partners, sheriff, turkish", "+++ city, eastern, government, jewish, west, muslim, minister, the, east, war<br>--- rebels, chinese, german, qaeda, mosul, battle, hungary, turkish, paris, daesh", "+++ october, support, according, state, 000, the<br>--- rebels, global, month, qaeda, mosul, battle, soldiers, turkish, daesh, iraqi", "+++ operations, group, government, support, state, 000, including, the<br>--- all, rebels, qaeda, mosul, battle, soldiers, staff, access, turkish, writes", "+++ october, army, reports, air, minister, military, battle, soldiers, killed<br>--- rtd, rebels, qaeda, mosul, turkish, tweet, state, thursday, iraqi, terror", "+++ october, campaign, according, reports, state, 000, the<br>--- rebels, probe, discovered, qaeda, mosul, battle, soldiers, staff, turkish, justice", "+++ air, according, area<br>--- atmosphere, rebels, caused, magnetic, produce, qaeda, mosul, battle, earth, cell", "+++ campaign<br>--- rebels, qaeda, mosul, battle, soldiers, tweeted, supporter, certainly, turkish, daesh", "+++ armed, security, group, state, government<br>--- rebels, wakingtimes, qaeda, mosul, jury, battle, soldiers, nevada, occupation, turkish", "+++ october, iran, war<br>--- rebels, stephens, sexist, qaeda, mosul, talks, soldiers, alt, hate, turkish", "+++ jewish<br>--- rebels, text, results, qaeda, mosul, battle, soldiers, children, formating, appears", "+++ government, according, reports, state, including, security<br>--- rebels, violation, issued, qaeda, mosul, battle, soldiers, sheriff, turkish, justice", "+++ including<br>--- rebels, cdc, results, qaeda, mosul, skin, battle, soldiers, children, vaccines", "+++ jewish, according, reports, held, state, the<br>--- rebels, switched, global, results, qaeda, mosul, battle, soldiers, votes, voter", "+++ <br>--- consider, focus, qaeda, mosul, battle, soldiers, issues, rebels, current, based", "+++ middle, syrian, regime, turkey, turkish, west, government, state, attack, international<br>--- rebels, qaeda, mosul, battle, soldiers, current, zone, iraqi, bush, terror", "+++ group, campaign, government, muslim, state, 000, security, the<br>--- rebels, qaeda, mosul, battle, soldiers, issues, judges, turkish, justice, iraqi", "+++ group, according, reports<br>--- phenomenon, founder, alien, qaeda, mosul, battle, soldiers, rebels, extraterrestrial, tv", "+++ state, support, according, campaign<br>--- rebels, secretary, results, qaeda, democrats, battle, soldiers, debate, votes, turkish", "+++ terrorist, group, campaign, government, attacks, region, al, war, weapons, middle<br>--- particularly, rebels, qaeda, mosul, battle, soldiers, gulf, turkish, iraqi, terror", "+++ city, the, al, us, air<br>--- rebels, ron, lack, qaeda, mosul, battle, soldiers, jay, obamacare, daesh", "+++ state, government<br>--- sector, rebels, gold, global, dollar, qaeda, mosul, battle, soldiers, weapons", "+++ the, according, area<br>--- planetary, rebels, queen, discovered, qaeda, mosul, battle, earth, turkish, explain", "+++ government, support, us, middle, state, groups, military, international, the, war<br>--- rebels, global, qaeda, mosul, battle, soldiers, turkish, justice, iraqi, black", "+++ city, according, reports, killing, state, the, attack, killed<br>--- pedophile, shot, rebels, allegations, qaeda, gang, battle, soldiers, children, suicide", "+++ operations, rebels, held, fighters, qaeda, including, mosul, assad, battle, soldiers<br>--- ", "+++ middle, muslim, october<br>--- shot, rebels, qaeda, mosul, battle, soldiers, children, turkish, father, young", "+++ the, jerusalem<br>--- rebels, founder, qaeda, mosul, battle, soldiers, children, turkish, father, daesh" ], [ "+++ october, told<br>--- shot, chinese, children, father, young, foster, local, wearing, woman, regional", "+++ life, love, away, men, born, day, man<br>--- shot, pope, global, souls, earth, fear, religious, children, knowledge, father", "+++ away, says, day, life, years<br>--- saying, all, shot, children, trying, father, young, going, posted, local", "+++ october, help, share, daily, social, november, posted<br>--- code, shot, follow, trunews, tv, father, young, 0, foster, local", "+++ life<br>--- fungal, shot, ginseng, mild, children, father, young, foster, posted, local", "+++ home, local, day, left<br>--- shot, brother, protest, children, father, young, riots, foster, black, thousands", "+++ story, share, daily, morning, video, social, posted, day, told<br>--- saying, shot, debate, tv, tweet, father, young, foster, local, wearing", "+++ says, october, local<br>--- shot, corps, mile, children, ground, partners, sheriff, father, young, thursday", "+++ muslim, says, came, later, women<br>--- shot, chinese, german, hungary, children, paris, father, young, foster, communist", "+++ october, says, 6, years, year, home, november, day, posted<br>--- shot, global, month, children, father, young, 0, foster, 8, local", "+++ years<br>--- all, shot, children, staff, writes, wmw, young, to, foster, photo", "+++ october, service, car, hospital, 6, hours, night, november, day, posted<br>--- rtd, shot, battle, soldiers, children, tweet, father, young, thursday, foster", "+++ house, october, husband, told<br>--- shot, probe, discovered, children, staff, justice, father, young, foster, huma", "+++ years<br>--- atmosphere, shot, caused, magnetic, earth, children, electricity, father, young, environment", "+++ says, left, house, share, him, year, november, years, day, man<br>--- shot, tweeted, children, certainly, father, young, going, 8, he, local", "+++ face, later, year<br>--- shot, wakingtimes, nevada, children, occupation, father, young, edward, posted, local", "+++ story, october, house, later, years, november, man<br>--- shot, stephens, sexist, talks, alt, hate, children, father, young, bush", "+++ school, help, children<br>--- shot, text, results, formating, father, young, send, foster, local, meant", "+++ told, local, gun, service, year<br>--- shot, violation, issued, children, sheriff, justice, daily, father, young, crime", "+++ blood, women, help, day, children<br>--- shot, cdc, results, skin, milk, father, young, sugar, foster, helps", "+++ posted, told, says, day, years<br>--- shot, switched, global, results, children, votes, voter, father, young, going", "+++ home, life, face, help, social<br>--- shot, consider, particular, focus, children, issues, based, knowledge, father, young", "+++ middle<br>--- shot, children, zone, turkish, father, young, bush, foster, saw, posted", "+++ house, muslim, gun, year<br>--- shot, children, issues, judges, justice, father, young, program, creamer, photo", "+++ later, years, eddie, video, told, posted<br>--- shot, phenomenon, founder, alien, children, extraterrestrial, tv, father, young, 0", "+++ house, she, party, november, day, told<br>--- shot, results, democrats, debate, democrat, votes, father, young, foster, candidates", "+++ middle, year<br>--- particularly, shot, children, gulf, father, young, foster, photo, local, wearing", "+++ house, away, help, service<br>--- shot, ron, lack, brother, children, jay, obamacare, young, foster, posted", "+++ year, years<br>--- sector, shot, gold, global, dollar, children, chinese, father, young, foster", "+++ left, came, years<br>--- planetary, shot, queen, discovered, earth, children, explain, father, young, foster", "+++ fight, middle, social, party, years, left<br>--- shot, global, children, justice, father, young, foster, black, local, wearing", "+++ man, story, woman, old, took, family, home, men, life, later<br>--- allegations, gang, suicide, father, young, crime, foster, black, local, wearing", "+++ middle, muslim, october<br>--- shot, rebels, qaeda, mosul, battle, soldiers, children, turkish, father, young", "+++ shot, help, photo, years, victim, children, father, young, him, foster<br>--- ", "+++ son, father, children, years<br>--- shot, founder, mosque, young, foster, local, wearing, woman, garden, him" ], [ "+++ states, use, the<br>--- chinese, children, founder, mosque, garden, regional, coast, joint, evolution, heaven", "+++ faith, death, humans, jesus, book, human, the<br>--- pope, global, souls, earth, fear, religious, children, founder, religion, father", "+++ d, years<br>--- saying, all, founder, children, one, trying, re, father, going, do", "+++ a, use, related, author<br>--- code, founder, follow, trunews, tv, mosque, 0, garden, facebook, evolution", "+++ cannabis<br>--- vitamins, fungal, founder, ginseng, mild, children, medicinal, father, ingredient, garden", "+++ the, non, california, national, san<br>--- founder, protest, children, father, riots, black, thousands, protestors, plants, garden", "+++ movie, the, youtube<br>--- saying, founder, debate, tv, tweet, father, mainstream, watch, facebook, reporters", "+++ states, national<br>--- corps, mile, children, ground, partners, founder, sheriff, father, state, thursday", "+++ states, national, death, the<br>--- called, chinese, german, known, hungary, children, founder, paris, mosque, communist", "+++ ago, the, study, period, years<br>--- founder, global, month, children, father, state, 0, 8, posted, oct", "+++ a, the, non, industry, years<br>--- all, founder, children, staff, writes, mosque, to, include, activities, garden", "+++ a, national<br>--- rtd, founder, battle, soldiers, children, tweet, father, thursday, posted, veterans", "+++ use, the, related<br>--- founder, probe, discovered, children, staff, justice, mosque, bureau, huma, sent", "+++ use, scientific, science, industry, non, years, california, human, growing, study<br>--- atmosphere, founder, caused, magnetic, known, earth, children, electricity, mosque, environment", "+++ states, years<br>--- founder, tweeted, children, certainly, mosque, going, 8, obama, hope, 11", "+++ national, death<br>--- founder, wakingtimes, nevada, children, occupation, father, edward, fda, garden, torture", "+++ national, book, years<br>--- stephens, sexist, talks, alt, hate, children, founder, father, bush, investigation", "+++ a, use, parents, children<br>--- founder, text, results, formating, 95, father, send, meant, garden, emphasized", "+++ states, national, use, drug<br>--- founder, violation, issued, children, sheriff, justice, mosque, crime, going, local", "+++ use, d, drugs, science, study, medical, birth, children<br>--- founder, cdc, results, known, skin, milk, father, sugar, helps, garden", "+++ states, the, d, years<br>--- founder, switched, global, results, children, votes, voter, re, father, going", "+++ use, human<br>--- consider, founder, focus, children, issues, based, knowledge, original, father, garden", "+++ states, the<br>--- founder, children, zone, turkish, mosque, bush, plants, garden, tanks, assad", "+++ states, the, national, california, d<br>--- founder, children, issues, judges, justice, 95, mosque, program, creamer, congressional", "+++ related, national, scientific, founder, years<br>--- phenomenon, alien, children, extraterrestrial, tv, mosque, 0, extraterrestrials, garden, egyptian", "+++ states, national<br>--- founder, results, democrats, debate, votes, father, candidates, carolina, garden, michigan", "+++ states, human<br>--- particularly, founder, children, gulf, hayden, father, garden, despite, report, governments", "+++ the, d<br>--- ron, lack, children, founder, jay, mosque, brown, garden, worst, report", "+++ industry, years<br>--- sector, gold, global, dollar, prices, children, chinese, mosque, treasury, street", "+++ ago, a, science, study, years, the<br>--- planetary, founder, queen, discovered, known, earth, children, explain, mosque, black", "+++ states, national, the, years<br>--- founder, global, children, justice, mosque, black, mainstream, far, evolution, heaven", "+++ ago, death, medical, years, the, children<br>--- shot, founder, allegations, gang, suicide, father, crime, black, plants, woman", "+++ the, jerusalem<br>--- rebels, founder, qaeda, mosul, battle, soldiers, children, turkish, father, daesh", "+++ son, father, children, years<br>--- shot, founder, mosque, young, foster, local, wearing, woman, garden, him", "+++ founder, produces, rest, years, human, children, death, gmo, pharma, recreational<br>--- " ] ], "type": "heatmap", "x": [ 5, 15, 25, 35, 45, 55, 65, 75, 85, 95, 105, 115, 125, 135, 145, 155, 165, 175, 185, 195, 205, 215, 225, 235, 245, 255, 265, 275, 285, 295, 305, 315, 325, 335, 345 ], "y": [ 5, 15, 25, 35, 45, 55, 65, 75, 85, 95, 105, 115, 125, 135, 145, 155, 165, 175, 185, 195, 205, 215, 225, 235, 245, 255, 265, 275, 285, 295, 305, 315, 325, 335, 345 ], "z": [ [ 0, 0.6343477918460758, 0.6435998668262606, 0.6446003010474792, 0.6485527685401011, 0.6272047011775295, 0.6377494183310974, 0.6446122853901808, 0.6462302697064812, 0.6424188214057551, 0.6431885897411144, 0.6383162844078716, 0.6519711902059808, 0.6326935836042389, 0.635842387462401, 0.6373978020068664, 0.6509217733346516, 0.6427384305018415, 0.6446490439142821, 0.6555496273803868, 0.649722281421471, 0.6450339665225586, 0.6452663452075574, 0.6426880518727507, 0.6543351245266337, 0.646970248626161, 0.6407668641924651, 0.6492284609430042, 0.6457647142833636, 0.6528094131471915, 0.6389925940775634, 0.6495258432224651, 0.6371457475937663, 0.5780112123394057, 0.6416115313599833 ], [ 0.6343477918460758, 0, 0.6121274748736927, 0.6338644737269848, 0.614834550727635, 0.6108850560317638, 0.6044265901631949, 0.6182278681588201, 0.5790355354893063, 0.572056440252791, 0.6127301997293105, 0.6148265896330367, 0.6079482050973943, 0.6305300305555379, 0.6128500033331308, 0.6096963480466306, 0.5764024940339914, 0.5587693679862034, 0.6163360552646882, 0.6110397739238136, 0.5875455239930147, 0.5802123388068601, 0.5982407469681987, 0.6039227359918914, 0.6037816573737682, 0.609917664997688, 0.6019393545945855, 0.5543759403745823, 0.540891760834232, 0.6004246088169611, 0.6298967191335623, 0.6186239937483338, 0.6089082684463722, 0.6077830201957765, 0.5968274685449119 ], [ 0.6435998668262606, 0.6121274748736927, 0, 0.6129945899493718, 0.6193831373477126, 0.625926897387258, 0.6109599735035676, 0.6077407032923106, 0.6094129624780951, 0.6121060448489761, 0.6154954485501769, 0.625661998988811, 0.615872223811504, 0.6137094562481342, 0.6164073501181003, 0.5968509624411916, 0.6101542520154625, 0.6121446187843509, 0.634156155600013, 0.5904362398895375, 0.6285810058058585, 0.6237880175215047, 0.6030973112221445, 0.6164104419697078, 0.6148787628424276, 0.6157995856203462, 0.5997526508299013, 0.6169882474306885, 0.6185391589425295, 0.6238742072003819, 0.5891535093958855, 0.5974912574639135, 0.6022206826882269, 0.5941015658456732, 0.6218788835373223 ], [ 0.6446003010474792, 0.6338644737269848, 0.6129945899493718, 0, 0.6353208275703369, 0.597640531326515, 0.6038579449037506, 0.602263236318795, 0.6243133665641964, 0.6251120910691634, 0.6154651048876574, 0.6153083393038125, 0.6080908920875427, 0.5982558375649262, 0.6000584720123727, 0.5858451954093298, 0.6152350403957735, 0.6057953049164858, 0.6209643331069182, 0.6166788870324156, 0.6134487733253483, 0.6039856900128228, 0.616574135280726, 0.6262775469806947, 0.6297048363041, 0.6255337032047152, 0.5988658669987039, 0.6227848301103192, 0.6217714173112974, 0.6267877524025983, 0.6069428261665237, 0.5988234047371995, 0.6225552953363357, 0.6242668884109961, 0.6161852903563267 ], [ 0.6485527685401011, 0.614834550727635, 0.6193831373477126, 0.6353208275703369, 0, 0.6126332096477383, 0.5993853921161925, 0.6185016857968891, 0.5725490768669301, 0.6102048871604775, 0.5858532117669191, 0.6113629590050981, 0.6141662783826298, 0.608011887131336, 0.6012365816017964, 0.5948657222467189, 0.6014332176788457, 0.6069846012015783, 0.5793384067906197, 0.5536578293442904, 0.604133244076441, 0.597767909828899, 0.550715830720343, 0.5897593975717713, 0.5887897296235955, 0.5749650757762319, 0.5832736927668631, 0.5981121641687539, 0.5926712759870403, 0.5846384926184345, 0.5883715900808248, 0.5761272360485552, 0.6035831882504623, 0.6235521833168944, 0.6011191937433236 ], [ 0.6272047011775295, 0.6108850560317638, 0.625926897387258, 0.597640531326515, 0.6126332096477383, 0, 0.5867131462856516, 0.5638635461314825, 0.5974792291071274, 0.5848779887531876, 0.5847385962695069, 0.5583322877280728, 0.5972521798872321, 0.5911383819779656, 0.5743209070905664, 0.5774840952534026, 0.5994235991425734, 0.5765059657839993, 0.5935930624902532, 0.5973045794567884, 0.5531315219400923, 0.5533074961313168, 0.5781613966277044, 0.5343489775664896, 0.6051646452954924, 0.593856550644376, 0.5546500455879606, 0.5818311102262002, 0.5533298350064723, 0.5786148268508677, 0.5745161719507574, 0.5777045587664382, 0.5739262119126349, 0.5936470977885799, 0.5749384426875435 ], [ 0.6377494183310974, 0.6044265901631949, 0.6109599735035676, 0.6038579449037506, 0.5993853921161925, 0.5867131462856516, 0, 0.6017216493175096, 0.5820843819232379, 0.573454942837188, 0.5617731117817422, 0.556037410362956, 0.5698841221680253, 0.5769132835728834, 0.600032747943392, 0.586656540754906, 0.6039437882091867, 0.5897980770815547, 0.5612525702604504, 0.5727640187972294, 0.5545586694752642, 0.5682199616218612, 0.5477492429264117, 0.5671377701437841, 0.5944907396877058, 0.5827019109370701, 0.5315863961124565, 0.5762652916006556, 0.5567615688659173, 0.5478221378217581, 0.5524521789269253, 0.5230832309482065, 0.5871193691541385, 0.6078912593508399, 0.5944513903788413 ], [ 0.6446122853901808, 0.6182278681588201, 0.6077407032923106, 0.602263236318795, 0.6185016857968891, 0.5638635461314825, 0.6017216493175096, 0, 0.6064325919234714, 0.5906658475136385, 0.5911367950168949, 0.6032666640305544, 0.5967173615516373, 0.5813618775313008, 0.5522793690568477, 0.589422463113516, 0.595393859091333, 0.569540787722024, 0.6053404926199486, 0.5746474147692485, 0.6026696645930234, 0.5749409505977375, 0.6172673902907948, 0.5815510413771847, 0.5937267558430033, 0.6032750193755492, 0.5647743124510578, 0.6031707705273603, 0.5690861837182244, 0.6083951075407514, 0.5777698150310802, 0.588560241292071, 0.5983440815370368, 0.618264102581534, 0.592623781294704 ], [ 0.6462302697064812, 0.5790355354893063, 0.6094129624780951, 0.6243133665641964, 0.5725490768669301, 0.5974792291071274, 0.5820843819232379, 0.6064325919234714, 0, 0.518937944021988, 0.5803420500805524, 0.5668746653611421, 0.5796454829713387, 0.5855017743636075, 0.5994109085618953, 0.5914038154487316, 0.5631244639917137, 0.5727916883985181, 0.5841889891165206, 0.555833980100676, 0.5518400702169708, 0.5407740770117151, 0.5550707606188358, 0.5843249446188592, 0.5687955216400282, 0.5633890897829159, 0.5643936896081635, 0.5332423155222907, 0.5414379345123359, 0.5544487239859874, 0.5713497869111972, 0.51959967352208, 0.5780297364240997, 0.6168105873876938, 0.5808742088503307 ], [ 0.6424188214057551, 0.572056440252791, 0.6121060448489761, 0.6251120910691634, 0.6102048871604775, 0.5848779887531876, 0.573454942837188, 0.5906658475136385, 0.518937944021988, 0, 0.6020558026490337, 0.5665058722959213, 0.5904009158509228, 0.5931270639857379, 0.5770942325183734, 0.5766077583650578, 0.5910539700924045, 0.5544389284258566, 0.5724113814441976, 0.5866578244827318, 0.5433514034322147, 0.5639078456668749, 0.5697414075113811, 0.5671686882463245, 0.5949146157000808, 0.5781018810307991, 0.5654721575938212, 0.5339212844082966, 0.5077413100654786, 0.5696081975761522, 0.5918861769713895, 0.560702844749007, 0.5780100151790145, 0.6067061083513092, 0.5817460691707508 ], [ 0.6431885897411144, 0.6127301997293105, 0.6154954485501769, 0.6154651048876574, 0.5858532117669191, 0.5847385962695069, 0.5617731117817422, 0.5911367950168949, 0.5803420500805524, 0.6020558026490337, 0, 0.5728634833212463, 0.5700064253903508, 0.580697355686499, 0.6163668500159512, 0.5950809822478652, 0.5867882962253821, 0.57745655208903, 0.5983896300238276, 0.5485876313507372, 0.5645887380507923, 0.5378846938773634, 0.531182031400421, 0.5314516157335448, 0.554542009771222, 0.5346691765000229, 0.5340564642200387, 0.5834746905560834, 0.5659366003346467, 0.548790984445183, 0.558066055224137, 0.5042004575112055, 0.5677785230063093, 0.6145603379886896, 0.558689895182277 ], [ 0.6383162844078716, 0.6148265896330367, 0.625661998988811, 0.6153083393038125, 0.6113629590050981, 0.5583322877280728, 0.556037410362956, 0.6032666640305544, 0.5668746653611421, 0.5665058722959213, 0.5728634833212463, 0, 0.5558205390039179, 0.5822915142453782, 0.597420524780971, 0.5697025250907772, 0.6101482768099606, 0.5520517971890426, 0.5345108107545546, 0.5837512167087746, 0.5520557198575557, 0.5553020495558703, 0.5138259131000952, 0.5421822818397075, 0.5861980181276637, 0.5497428030208775, 0.504301894183621, 0.492581804564709, 0.5094412007771558, 0.48832819852723464, 0.5596195433468915, 0.4873003435720632, 0.5690095372832025, 0.6025567600380475, 0.5562304608733372 ], [ 0.6519711902059808, 0.6079482050973943, 0.615872223811504, 0.6080908920875427, 0.6141662783826298, 0.5972521798872321, 0.5698841221680253, 0.5967173615516373, 0.5796454829713387, 0.5904009158509228, 0.5700064253903508, 0.5558205390039179, 0, 0.5642484448563618, 0.6104553346014427, 0.5929601154294721, 0.585058192775026, 0.582892801141204, 0.568943909095732, 0.5500362166855065, 0.5813928526797865, 0.5624979669217576, 0.5732090252425486, 0.5875430353642586, 0.576465993153489, 0.5827770410467827, 0.5506077176667121, 0.5320052337361201, 0.5203272914791119, 0.5251512024359143, 0.5685128084227067, 0.4960557705875634, 0.587017162522565, 0.6322894478205126, 0.5862176582456311 ], [ 0.6326935836042389, 0.6305300305555379, 0.6137094562481342, 0.5982558375649262, 0.608011887131336, 0.5911383819779656, 0.5769132835728834, 0.5813618775313008, 0.5855017743636075, 0.5931270639857379, 0.580697355686499, 0.5822915142453782, 0.5642484448563618, 0, 0.563505922229097, 0.5727223384391723, 0.5870197501860341, 0.5816171617478862, 0.5730276858178616, 0.514537773390154, 0.5783498428499507, 0.5818726860998927, 0.5976956284663353, 0.5952283303094598, 0.5831728933624131, 0.5958538795642092, 0.5576403507591265, 0.5790739572508656, 0.5723353505934616, 0.570006851466208, 0.47984528101585433, 0.47236575167597566, 0.5991159556768785, 0.6349435905106451, 0.6044441297491218 ], [ 0.635842387462401, 0.6128500033331308, 0.6164073501181003, 0.6000584720123727, 0.6012365816017964, 0.5743209070905664, 0.600032747943392, 0.5522793690568477, 0.5994109085618953, 0.5770942325183734, 0.6163668500159512, 0.597420524780971, 0.6104553346014427, 0.563505922229097, 0, 0.48317168809799327, 0.6230360052833434, 0.5628858157181404, 0.5711736795942145, 0.5878800242996836, 0.5864909928412481, 0.5933074129368294, 0.6175878437517464, 0.5987945750970018, 0.6168422601355279, 0.6064132104638995, 0.5658846761533219, 0.5954799108559252, 0.5621136226221193, 0.6066317915960084, 0.5287186874148316, 0.5720403903835598, 0.6013564938036919, 0.6212047249634554, 0.6133969347058739 ], [ 0.6373978020068664, 0.6096963480466306, 0.5968509624411916, 0.5858451954093298, 0.5948657222467189, 0.5774840952534026, 0.586656540754906, 0.589422463113516, 0.5914038154487316, 0.5766077583650578, 0.5950809822478652, 0.5697025250907772, 0.5929601154294721, 0.5727223384391723, 0.48317168809799327, 0, 0.5814708690939238, 0.5197736945950107, 0.5397933609304195, 0.5314895495064673, 0.5623032450724003, 0.5762438540018565, 0.5881363513731064, 0.5732253808988452, 0.5984971416567056, 0.5741377394495251, 0.5317441650927259, 0.5813621094643785, 0.5565485540444208, 0.5793172005371702, 0.5013536397286693, 0.5370205156373834, 0.582059893596977, 0.6009245150713194, 0.586345343852107 ], [ 0.6509217733346516, 0.5764024940339914, 0.6101542520154625, 0.6152350403957735, 0.6014332176788457, 0.5994235991425734, 0.6039437882091867, 0.595393859091333, 0.5631244639917137, 0.5910539700924045, 0.5867882962253821, 0.6101482768099606, 0.585058192775026, 0.5870197501860341, 0.6230360052833434, 0.5814708690939238, 0, 0.5554241364252843, 0.6142519802390423, 0.5397406566790335, 0.5815241848392518, 0.5117708938168017, 0.5822683963792145, 0.5673746006038107, 0.5725695386199634, 0.5768851006692906, 0.5768556353782428, 0.5747970565086631, 0.5891744042494493, 0.6071943478480634, 0.5983525440783222, 0.5976725893281137, 0.5915450229080612, 0.6039891980579086, 0.5594039754519595 ], [ 0.6427384305018415, 0.5587693679862034, 0.6121446187843509, 0.6057953049164858, 0.6069846012015783, 0.5765059657839993, 0.5897980770815547, 0.569540787722024, 0.5727916883985181, 0.5544389284258566, 0.57745655208903, 0.5520517971890426, 0.582892801141204, 0.5816171617478862, 0.5628858157181404, 0.5197736945950107, 0.5554241364252843, 0, 0.5217531658096084, 0.5519394123570995, 0.5623592568315112, 0.5468475339096033, 0.5611633268315502, 0.5468939378458515, 0.551943618124542, 0.5296384237369225, 0.5324762708355046, 0.5443456109310607, 0.5108590179306534, 0.5679124270960569, 0.54758442690403, 0.5438833770882693, 0.5642705949836373, 0.5679033838077432, 0.5653892059345309 ], [ 0.6446490439142821, 0.6163360552646882, 0.634156155600013, 0.6209643331069182, 0.5793384067906197, 0.5935930624902532, 0.5612525702604504, 0.6053404926199486, 0.5841889891165206, 0.5724113814441976, 0.5983896300238276, 0.5345108107545546, 0.568943909095732, 0.5730276858178616, 0.5711736795942145, 0.5397933609304195, 0.6142519802390423, 0.5217531658096084, 0, 0.542761728047879, 0.5560649763120009, 0.5946678694280896, 0.5330991125297542, 0.5726101819726026, 0.5842025551911201, 0.5704504265922044, 0.49609310950836605, 0.5806085222806919, 0.5090067524107327, 0.5503104785524194, 0.5229892412032835, 0.47615813358876247, 0.5874375527771454, 0.6088341352668657, 0.6071040524632135 ], [ 0.6555496273803868, 0.6110397739238136, 0.5904362398895375, 0.6166788870324156, 0.5536578293442904, 0.5973045794567884, 0.5727640187972294, 0.5746474147692485, 0.555833980100676, 0.5866578244827318, 0.5485876313507372, 0.5837512167087746, 0.5500362166855065, 0.514537773390154, 0.5878800242996836, 0.5314895495064673, 0.5397406566790335, 0.5519394123570995, 0.542761728047879, 0, 0.5667775321895533, 0.5458409871672326, 0.5502233029720112, 0.5215073064593527, 0.503289423145035, 0.5236348341899275, 0.5160454480022671, 0.5781383055448426, 0.5665699217614912, 0.5273807904236462, 0.4580327081116753, 0.4755681605172405, 0.5347426681161087, 0.6106007149600006, 0.550757272447808 ], [ 0.649722281421471, 0.5875455239930147, 0.6285810058058585, 0.6134487733253483, 0.604133244076441, 0.5531315219400923, 0.5545586694752642, 0.6026696645930234, 0.5518400702169708, 0.5433514034322147, 0.5645887380507923, 0.5520557198575557, 0.5813928526797865, 0.5783498428499507, 0.5864909928412481, 0.5623032450724003, 0.5815241848392518, 0.5623592568315112, 0.5560649763120009, 0.5667775321895533, 0, 0.47899623110102035, 0.48938878402866776, 0.4692932134437505, 0.5801691404578276, 0.5663909275669508, 0.5188187604603343, 0.5374193841087717, 0.5067670123089854, 0.5467495517828906, 0.5374665549024689, 0.5157920957135902, 0.5480252936088637, 0.6067153657615343, 0.5728594745376 ], [ 0.6450339665225586, 0.5802123388068601, 0.6237880175215047, 0.6039856900128228, 0.597767909828899, 0.5533074961313168, 0.5682199616218612, 0.5749409505977375, 0.5407740770117151, 0.5639078456668749, 0.5378846938773634, 0.5553020495558703, 0.5624979669217576, 0.5818726860998927, 0.5933074129368294, 0.5762438540018565, 0.5117708938168017, 0.5468475339096033, 0.5946678694280896, 0.5458409871672326, 0.47899623110102035, 0, 0.5467247179223695, 0.5013131431278923, 0.578315579090691, 0.5631172536292912, 0.5259937330379167, 0.5304472327079826, 0.5507429685461223, 0.5656784869411895, 0.5789624951759419, 0.5402094582486863, 0.5617406065649322, 0.6344874341978559, 0.5554399385855842 ], [ 0.6452663452075574, 0.5982407469681987, 0.6030973112221445, 0.616574135280726, 0.550715830720343, 0.5781613966277044, 0.5477492429264117, 0.6172673902907948, 0.5550707606188358, 0.5697414075113811, 0.531182031400421, 0.5138259131000952, 0.5732090252425486, 0.5976956284663353, 0.6175878437517464, 0.5881363513731064, 0.5822683963792145, 0.5611633268315502, 0.5330991125297542, 0.5502233029720112, 0.48938878402866776, 0.5467247179223695, 0, 0.49163627840768886, 0.5314816158414989, 0.4994220490708092, 0.47939420933332527, 0.5495148318934004, 0.5047777584775771, 0.48483565702766995, 0.5672337528088347, 0.471551710940839, 0.5459156341072814, 0.6125698045544322, 0.5679891481525867 ], [ 0.6426880518727507, 0.6039227359918914, 0.6164104419697078, 0.6262775469806947, 0.5897593975717713, 0.5343489775664896, 0.5671377701437841, 0.5815510413771847, 0.5843249446188592, 0.5671686882463245, 0.5314516157335448, 0.5421822818397075, 0.5875430353642586, 0.5952283303094598, 0.5987945750970018, 0.5732253808988452, 0.5673746006038107, 0.5468939378458515, 0.5726101819726026, 0.5215073064593527, 0.4692932134437505, 0.5013131431278923, 0.49163627840768886, 0, 0.5139141598767921, 0.41213193291450523, 0.48326887022085874, 0.5512422219011544, 0.5217498519150072, 0.5195646892172884, 0.5474742824545833, 0.5355880118452042, 0.5345529647785081, 0.5687504781672474, 0.5133567057162977 ], [ 0.6543351245266337, 0.6037816573737682, 0.6148787628424276, 0.6297048363041, 0.5887897296235955, 0.6051646452954924, 0.5944907396877058, 0.5937267558430033, 0.5687955216400282, 0.5949146157000808, 0.554542009771222, 0.5861980181276637, 0.576465993153489, 0.5831728933624131, 0.6168422601355279, 0.5984971416567056, 0.5725695386199634, 0.551943618124542, 0.5842025551911201, 0.503289423145035, 0.5801691404578276, 0.578315579090691, 0.5314816158414989, 0.5139141598767921, 0, 0.38911071321147145, 0.5643286508497083, 0.5854430029149056, 0.5534017946931484, 0.5307418350558131, 0.5690024371174209, 0.5001662530322207, 0.5525091931103167, 0.6085181374672038, 0.565335421607568 ], [ 0.646970248626161, 0.609917664997688, 0.6157995856203462, 0.6255337032047152, 0.5749650757762319, 0.593856550644376, 0.5827019109370701, 0.6032750193755492, 0.5633890897829159, 0.5781018810307991, 0.5346691765000229, 0.5497428030208775, 0.5827770410467827, 0.5958538795642092, 0.6064132104638995, 0.5741377394495251, 0.5768851006692906, 0.5296384237369225, 0.5704504265922044, 0.5236348341899275, 0.5663909275669508, 0.5631172536292912, 0.4994220490708092, 0.41213193291450523, 0.38911071321147145, 0, 0.5192668137907049, 0.5622587491546478, 0.541776055964735, 0.5160158876815908, 0.5486016942760963, 0.4790892066011598, 0.4833149992369454, 0.6111713061626579, 0.5236068728622354 ], [ 0.6407668641924651, 0.6019393545945855, 0.5997526508299013, 0.5988658669987039, 0.5832736927668631, 0.5546500455879606, 0.5315863961124565, 0.5647743124510578, 0.5643936896081635, 0.5654721575938212, 0.5340564642200387, 0.504301894183621, 0.5506077176667121, 0.5576403507591265, 0.5658846761533219, 0.5317441650927259, 0.5768556353782428, 0.5324762708355046, 0.49609310950836605, 0.5160454480022671, 0.5188187604603343, 0.5259937330379167, 0.47939420933332527, 0.48326887022085874, 0.5643286508497083, 0.5192668137907049, 0, 0.552197691779307, 0.5101915457124961, 0.5254678282973502, 0.4805200541808038, 0.47494022582245526, 0.5453332714599454, 0.5694571471957096, 0.5276814582288774 ], [ 0.6492284609430042, 0.5543759403745823, 0.6169882474306885, 0.6227848301103192, 0.5981121641687539, 0.5818311102262002, 0.5762652916006556, 0.6031707705273603, 0.5332423155222907, 0.5339212844082966, 0.5834746905560834, 0.492581804564709, 0.5320052337361201, 0.5790739572508656, 0.5954799108559252, 0.5813621094643785, 0.5747970565086631, 0.5443456109310607, 0.5806085222806919, 0.5781383055448426, 0.5374193841087717, 0.5304472327079826, 0.5495148318934004, 0.5512422219011544, 0.5854430029149056, 0.5622587491546478, 0.552197691779307, 0, 0.4299259515991702, 0.4556294859295383, 0.5805580831176442, 0.5014465994290065, 0.5787454172531852, 0.6160622502647397, 0.5817393051734978 ], [ 0.6457647142833636, 0.540891760834232, 0.6185391589425295, 0.6217714173112974, 0.5926712759870403, 0.5533298350064723, 0.5567615688659173, 0.5690861837182244, 0.5414379345123359, 0.5077413100654786, 0.5659366003346467, 0.5094412007771558, 0.5203272914791119, 0.5723353505934616, 0.5621136226221193, 0.5565485540444208, 0.5891744042494493, 0.5108590179306534, 0.5090067524107327, 0.5665699217614912, 0.5067670123089854, 0.5507429685461223, 0.5047777584775771, 0.5217498519150072, 0.5534017946931484, 0.541776055964735, 0.5101915457124961, 0.4299259515991702, 0, 0.41279539616524397, 0.5257519052014734, 0.4762765150019238, 0.5594667520305179, 0.595941753706561, 0.5759623956074625 ], [ 0.6528094131471915, 0.6004246088169611, 0.6238742072003819, 0.6267877524025983, 0.5846384926184345, 0.5786148268508677, 0.5478221378217581, 0.6083951075407514, 0.5544487239859874, 0.5696081975761522, 0.548790984445183, 0.48832819852723464, 0.5251512024359143, 0.570006851466208, 0.6066317915960084, 0.5793172005371702, 0.6071943478480634, 0.5679124270960569, 0.5503104785524194, 0.5273807904236462, 0.5467495517828906, 0.5656784869411895, 0.48483565702766995, 0.5195646892172884, 0.5307418350558131, 0.5160158876815908, 0.5254678282973502, 0.4556294859295383, 0.41279539616524397, 0, 0.5292854176823545, 0.42859491366125924, 0.564737492446272, 0.6192260087779233, 0.5743680052676738 ], [ 0.6389925940775634, 0.6298967191335623, 0.5891535093958855, 0.6069428261665237, 0.5883715900808248, 0.5745161719507574, 0.5524521789269253, 0.5777698150310802, 0.5713497869111972, 0.5918861769713895, 0.558066055224137, 0.5596195433468915, 0.5685128084227067, 0.47984528101585433, 0.5287186874148316, 0.5013536397286693, 0.5983525440783222, 0.54758442690403, 0.5229892412032835, 0.4580327081116753, 0.5374665549024689, 0.5789624951759419, 0.5672337528088347, 0.5474742824545833, 0.5690024371174209, 0.5486016942760963, 0.4805200541808038, 0.5805580831176442, 0.5257519052014734, 0.5292854176823545, 0, 0.43904097868615893, 0.565767995828992, 0.5858468546844693, 0.5809043412314943 ], [ 0.6495258432224651, 0.6186239937483338, 0.5974912574639135, 0.5988234047371995, 0.5761272360485552, 0.5777045587664382, 0.5230832309482065, 0.588560241292071, 0.51959967352208, 0.560702844749007, 0.5042004575112055, 0.4873003435720632, 0.4960557705875634, 0.47236575167597566, 0.5720403903835598, 0.5370205156373834, 0.5976725893281137, 0.5438833770882693, 0.47615813358876247, 0.4755681605172405, 0.5157920957135902, 0.5402094582486863, 0.471551710940839, 0.5355880118452042, 0.5001662530322207, 0.4790892066011598, 0.47494022582245526, 0.5014465994290065, 0.4762765150019238, 0.42859491366125924, 0.43904097868615893, 0, 0.5519773947316597, 0.6146223329295997, 0.5580927972583049 ], [ 0.6371457475937663, 0.6089082684463722, 0.6022206826882269, 0.6225552953363357, 0.6035831882504623, 0.5739262119126349, 0.5871193691541385, 0.5983440815370368, 0.5780297364240997, 0.5780100151790145, 0.5677785230063093, 0.5690095372832025, 0.587017162522565, 0.5991159556768785, 0.6013564938036919, 0.582059893596977, 0.5915450229080612, 0.5642705949836373, 0.5874375527771454, 0.5347426681161087, 0.5480252936088637, 0.5617406065649322, 0.5459156341072814, 0.5345529647785081, 0.5525091931103167, 0.4833149992369454, 0.5453332714599454, 0.5787454172531852, 0.5594667520305179, 0.564737492446272, 0.565767995828992, 0.5519773947316597, 0, 0.5931820678839248, 0.5399389353213216 ], [ 0.5780112123394057, 0.6077830201957765, 0.5941015658456732, 0.6242668884109961, 0.6235521833168944, 0.5936470977885799, 0.6078912593508399, 0.618264102581534, 0.6168105873876938, 0.6067061083513092, 0.6145603379886896, 0.6025567600380475, 0.6322894478205126, 0.6349435905106451, 0.6212047249634554, 0.6009245150713194, 0.6039891980579086, 0.5679033838077432, 0.6088341352668657, 0.6106007149600006, 0.6067153657615343, 0.6344874341978559, 0.6125698045544322, 0.5687504781672474, 0.6085181374672038, 0.6111713061626579, 0.5694571471957096, 0.6160622502647397, 0.595941753706561, 0.6192260087779233, 0.5858468546844693, 0.6146223329295997, 0.5931820678839248, 0, 0.513614182506119 ], [ 0.6416115313599833, 0.5968274685449119, 0.6218788835373223, 0.6161852903563267, 0.6011191937433236, 0.5749384426875435, 0.5944513903788413, 0.592623781294704, 0.5808742088503307, 0.5817460691707508, 0.558689895182277, 0.5562304608733372, 0.5862176582456311, 0.6044441297491218, 0.6133969347058739, 0.586345343852107, 0.5594039754519595, 0.5653892059345309, 0.6071040524632135, 0.550757272447808, 0.5728594745376, 0.5554399385855842, 0.5679891481525867, 0.5133567057162977, 0.565335421607568, 0.5236068728622354, 0.5276814582288774, 0.5817393051734978, 0.5759623956074625, 0.5743680052676738, 0.5809043412314943, 0.5580927972583049, 0.5399389353213216, 0.513614182506119, 0 ] ] } ], "layout": { "autosize": false, "height": 800, "hovermode": "closest", "showlegend": false, "width": 800, "xaxis": { "domain": [ 0.25, 1 ], "mirror": false, "rangemode": "tozero", "showgrid": false, "showline": false, "showticklabels": true, "tickmode": "array", "ticks": "", "ticktext": [ 5, 12, 18, 35, 28, 25, 16, 30, 6, 8, 17, 27, 9, 2, 14, 20, 34, 10, 29, 3, 19, 32, 24, 13, 15, 26, 11, 33, 1, 23, 22, 31, 21, 4, 7 ], "tickvals": [ 5, 15, 25, 35, 45, 55, 65, 75, 85, 95, 105, 115, 125, 135, 145, 155, 165, 175, 185, 195, 205, 215, 225, 235, 245, 255, 265, 275, 285, 295, 305, 315, 325, 335, 345 ], "type": "linear", "zeroline": false }, "yaxis": { "domain": [ 0, 0.75 ], "mirror": false, "rangemode": "tozero", "showgrid": false, "showline": false, "showticklabels": true, "tickmode": "array", "ticks": "", "ticktext": [ 5, 12, 18, 35, 28, 25, 16, 30, 6, 8, 17, 27, 9, 2, 14, 20, 34, 10, 29, 3, 19, 32, 24, 13, 15, 26, 11, 33, 1, 23, 22, 31, 21, 4, 7 ], "tickvals": [ 5, 15, 25, 35, 45, 55, 65, 75, 85, 95, 105, 115, 125, 135, 145, 155, 165, 175, 185, 195, 205, 215, 225, 235, 245, 255, 265, 275, 285, 295, 305, 315, 325, 335, 345 ], "type": "linear", "zeroline": false }, "yaxis2": { "domain": [ 0.75, 1 ], "mirror": false, "showgrid": false, "showline": false, "showticklabels": false, "ticks": "", "zeroline": false } } }, "text/html": [ "<div id=\"60093b97-6268-4e3e-ace2-dd1a061c2de1\" style=\"height: 800px; width: 800px;\" class=\"plotly-graph-div\"></div><script type=\"text/javascript\">require([\"plotly\"], function(Plotly) { window.PLOTLYENV=window.PLOTLYENV || {};window.PLOTLYENV.BASE_URL=\"https://plot.ly\";Plotly.newPlot(\"60093b97-6268-4e3e-ace2-dd1a061c2de1\", [{\"yaxis\": \"y2\", \"text\": [\"[u'coup', u'peace', u'shot', u'citizenry', u'maduro', u'teams', u'actions', u'cross', u'seen', u'unrest']\", [], [], \"[u'monte', u'sprayed', u'shot', u'they', u'corps', u'september', u'sound', u'jurisdiction', u'resistance', u'sites']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.5239915229525761, 0.5239915229525761, 0.0], \"x\": [85.0, 85.0, 95.0, 95.0], \"type\": \"scatter\"}, {\"yaxis\": \"y2\", \"text\": [\"[u'atmosphere', u'stores', u'help', u'caused', u'magnetic', u'major', u'produce', u'years', u'product', u'baby']\", [], [], \"[u'all', u'influenza', u'help', u'cdc', u'biological', u'caused', u'child', u'results', u'dose', u'brain']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.4952833500135926, 0.4952833500135926, 0.0], \"x\": [145.0, 145.0, 155.0, 155.0], \"type\": \"scatter\"}, {\"yaxis\": \"y2\", \"text\": [\"[u'passed', u'rifles', u'tactics', u'office', u'violation', u'issued', u'obtain', u'actions', u'years', u'sources']\", [], [], \"[u'affair', u'thomas', u'responsible', u'shot', u'office', u'sentence', u'september', u'issued', u'agreed', u'child']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.4842267300317968, 0.4842267300317968, 0.0], \"x\": [205.0, 205.0, 215.0, 215.0], \"type\": \"scatter\"}, {\"yaxis\": \"y2\", \"text\": [\"[u'rating', u'office', u'photo', u'over', u'despite', u'results', u'years', u'course', u'protest', u'radio']\", [], [], \"[u'saying', u'decide', u'predicted', u'fox', u'results', u'night', u'including', u'democrats', u'committee', u'mcmullin']\"], \"marker\": {\"color\": \"rgb(61,153,112)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.4091655719588642, 0.4091655719588642, 0.0], \"x\": [245.0, 245.0, 255.0, 255.0], \"type\": \"scatter\"}, {\"yaxis\": \"y2\", \"text\": [\"[u'saying', u'breaking', u'office', u'watergate', u'mishandling', u'laptop', u'probe', u'actions', u'discovered', u'sources']\", [], [], \"+++: [u'results', u'paul', u'supporter', u'candidate', u'actually', u'barack', u'going', u'8', u'far', u'possible']<br>---: [u'saying', u'rating', u'month', u'unrest', u'protest', u'radio', u'democrats', u'mcmullin', u'follow', u'battleground']\"], \"marker\": {\"color\": \"rgb(61,153,112)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.41213545918752137, 0.41213545918752137, 0.4091655719588642], \"x\": [235.0, 235.0, 250.0, 250.0], \"type\": \"scatter\"}, {\"yaxis\": \"y2\", \"text\": [\"[u'operations', u'called', u'bomb', u'0', u'chinese', u'september', u'photo', u'agreed', u'global', u'spain']\", [], [], \"[u'coup', u'all', u'sergey', u'bomb', u'saying', u'photo', u'supported', u'repeatedly', u'soon', u'actions']\"], \"marker\": {\"color\": \"rgb(255,65,54)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.41280889631027384, 0.41280889631027384, 0.0], \"x\": [285.0, 285.0, 295.0, 295.0], \"type\": \"scatter\"}, {\"yaxis\": \"y2\", \"text\": [\"[u'operations', u'saying', u'peace', u'rebels', u'ambassador', u'september', u'settlements', u'years', u'held', u'fighters']\", [], [], \"+++: [u'bomb', u'photo', u'global', u'soon', u'years', u'including', u'cold', u'issues', u'ground', u'based']<br>---: [u'saying', u'all', u'chinese', u'enemy', u'agreed', u'supported', u'month', u'sergey', u'planning', u'asia']\"], \"marker\": {\"color\": \"rgb(255,65,54)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.4337091828241252, 0.4337091828241252, 0.41280889631027384], \"x\": [275.0, 275.0, 290.0, 290.0], \"type\": \"scatter\"}, {\"yaxis\": \"y2\", \"text\": [\"[u'greater', u'limited', u'help', u'lack', u'focus', u'actions', u'naturally', u'bring', u'books', u'higher']\", [], [], \"[u'called', u'all', u'enemy', u'hands', u'global', u'domestic', u'resistance', u'rest', u'years', u'course']\"], \"marker\": {\"color\": \"rgb(35,205,205)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.44592943928705275, 0.44592943928705275, 0.0], \"x\": [305.0, 305.0, 315.0, 315.0], \"type\": \"scatter\"}, {\"yaxis\": \"y2\", \"text\": [\"+++: [u'major', u'force', u'years', u'likely', u'officials', u'anti', u'iran', u'armed', u'ground', u'united']<br>---: [u'saying', u'bomb', u'rebels', u'ali', u'global', u'tehran', u'qaeda', u'mosul', u'battle', u'soldiers']\", [], [], \"+++: [u'and', u'control', u'major', u'want', u'point', u'powerful', u'community', u'past', u'society', u'simply']<br>---: [u'limited', u'all', u'consider', u'global', u'resistance', u'bring', u'emotions', u'follow', u'meditation', u'research']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.4337091828241252, 0.46861372445664873, 0.46861372445664873, 0.44592943928705275], \"x\": [282.5, 282.5, 310.0, 310.0], \"type\": \"scatter\"}, {\"yaxis\": \"y2\", \"text\": [\"[u'operations', u'all', u'soros', u'office', u'money', u'meetings', u'executive', u'insider', u'years', u'founded']\", [], [], \"+++: [u'major', u'us']<br>---: [u'control', u'point', u'powerful', u'community', u'years', u'course', u'simply', u'human', u'fear', u'armed']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.4806143422338316, 0.4806143422338316, 0.46861372445664873], \"x\": [265.0, 265.0, 296.25, 296.25], \"type\": \"scatter\"}, {\"yaxis\": \"y2\", \"text\": [\"+++: [u'says', u'campaign', u'point', u'house', u'in', u'washington', u'likely', u'street', u'election', u'year']<br>---: [u'saying', u'watergate', u'mishandling', u'probe', u'results', u'discovered', u'obstruction', u'manager', u'democrats', u'aides']\", [], [], \"+++: []<br>---: [u'operations', u'all', u'responsible', u'office', u'money', u'meetings', u'executive', u'raised', u'years', u'founded']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.41213545918752137, 0.4847681088638261, 0.4847681088638261, 0.4806143422338316], \"x\": [242.5, 242.5, 280.625, 280.625], \"type\": \"scatter\"}, {\"yaxis\": \"y2\", \"text\": [\"[u'ambassador', u'agency', u'mexican', u'help', u'office', u'diplomacy', u'money', u'executive', u'years', u'2008']\", [], [], \"+++: []<br>---: [u'says', u'nominee', u'point', u'house', u'in', u'washington', u'likely', u'street', u'election', u'year']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.4848588855404342, 0.4848588855404342, 0.4847681088638261], \"x\": [225.0, 225.0, 261.5625, 261.5625], \"type\": \"scatter\"}, {\"yaxis\": \"y2\", \"text\": [\"+++: [u'and', u'attorney', u'ordered', u'office', u'judge', u'issued', u'national', u'crimes', u'authorities', u'actions']<br>---: [u'affair', u'thomas', u'shot', u'violation', u'agreed', u'allegations', u'month', u'discovered', u'rifles', u'gang']\", [], [], \"+++: []<br>---: [u'ambassador', u'code', u'mexican', u'help', u'office', u'diplomacy', u'money', u'executive', u'years', u'supreme']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.4842267300317968, 0.49484305255926003, 0.49484305255926003, 0.4848588855404342], \"x\": [210.0, 210.0, 243.28125, 243.28125], \"type\": \"scatter\"}, {\"yaxis\": \"y2\", \"text\": [\"[u'saying', u'all', u'help', u'money', u'hands', u'soon', u'rest', u'years', u'course', u'looks']\", [], [], \"+++: []<br>---: [u'and', u'asked', u'attorney', u'ordered', u'family', u'judge', u'issued', u'national', u'crimes', u'actions']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.500953938948598, 0.500953938948598, 0.49484305255926003], \"x\": [195.0, 195.0, 226.640625, 226.640625], \"type\": \"scatter\"}, {\"yaxis\": \"y2\", \"text\": [\"[u'sector', u'bull', u'gold', u'unemployment', u'money', u'global', u'dollar', u'trade', u'paper', u'businesses']\", [], [], \"+++: []<br>---: [u'saying', u'all', u'help', u'money', u'able', u'soon', u'rest', u'years', u'course', u'looks']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.5090095510485566, 0.5090095510485566, 0.500953938948598], \"x\": [185.0, 185.0, 210.8203125, 210.8203125], \"type\": \"scatter\"}, {\"yaxis\": \"y2\", \"text\": [\"[u'gdp', u'proceeds', u'september', u'42', u'global', u'wednesday', u'results', u'years', u'leads', u'batteries']\", [], [], \"+++: []<br>---: [u'sector', u'manufacturing', u'chinese', u'unemployment', u'money', u'global', u'dollar', u'trade', u'paper', u'businesses']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.5114472916005423, 0.5114472916005423, 0.5090095510485566], \"x\": [175.0, 175.0, 197.91015625, 197.91015625], \"type\": \"scatter\"}, {\"yaxis\": \"y2\", \"text\": [\"[u'saying', u'neighborhood', u'answering', u'shot', u'help', u'photo', u'celebrities', u'years', u'seen', u'performance']\", [], [], \"+++: []<br>---: [u'gdp', u'september', u'percent', u'global', u'43', u'results', u'years', u'leads', u'batteries', u'including']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.5123688748079201, 0.5123688748079201, 0.5114472916005423], \"x\": [165.0, 165.0, 186.455078125, 186.455078125], \"type\": \"scatter\"}, {\"yaxis\": \"y2\", \"text\": [\"+++: [u'heavy', u'available', u'associated', u'help', u'cancer', u'caused', u'reduce', u'plant', u'evidence', u'high']<br>---: [u'wild', u'all', u'influenza', u'sci', u'phenomenon', u'cdc', u'magnetic', u'results', u'produce', u'sleep']\", [], [], \"+++: []<br>---: [u'saying', u'breaking', u'shot', u'help', u'photo', u'child', u'celebrities', u'years', u'costume', u'victim']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.4952833500135926, 0.527410482799219, 0.527410482799219, 0.5123688748079201], \"x\": [150.0, 150.0, 175.7275390625, 175.7275390625], \"type\": \"scatter\"}, {\"yaxis\": \"y2\", \"text\": [\"[u'stones', u'atmosphere', u'concept', u'evidence', u'consciousness', u'being', u'global', u'souls', u'years', u'held']\", [], [], \"+++: []<br>---: [u'heavy', u'body', u'associated', u'help', u'cancer', u'caused', u'reduce', u'product', u'evidence', u'high']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.5298682068894442, 0.5298682068894442, 0.527410482799219], \"x\": [135.0, 135.0, 162.86376953125, 162.86376953125], \"type\": \"scatter\"}, {\"yaxis\": \"y2\", \"text\": [\"[u'forced', u'played', u'chinese', u'german', u'2005', u'supported', u'rest', u'years', u'course', u'cambridge']\", [], [], \"+++: []<br>---: [u'stones', u'called', u'atmosphere', u'concept', u'pope', u'being', u'global', u'souls', u'years', u'held']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.5358130859045249, 0.5358130859045249, 0.5298682068894442], \"x\": [125.0, 125.0, 148.931884765625, 148.931884765625], \"type\": \"scatter\"}, {\"yaxis\": \"y2\", \"text\": [\"[u'jihadist', u'acts', u'particularly', u'cheese', u'money', u'half', u'month', u'sources', u'embassy', u'including']\", [], [], \"+++: []<br>---: [u'called', u'chinese', u'german', u'supported', u'rest', u'years', u'course', u'aoun', u'london', u'hungary']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.5368743566366792, 0.5368743566366792, 0.5358130859045249], \"x\": [115.0, 115.0, 136.9659423828125, 136.9659423828125], \"type\": \"scatter\"}, {\"yaxis\": \"y2\", \"text\": [\"[u'watergate', u'thomas', u'impression', u'kkk', u'stephens', u'show', u'rapture', u'photo', u'for', u'sexist']\", [], [], \"+++: []<br>---: [u'called', u'responsible', u'particularly', u'libyan', u'sales', u'money', u'supported', u'terrorist', u'month', u'sources']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.5405631185995701, 0.5405631185995701, 0.5368743566366792], \"x\": [105.0, 105.0, 125.98297119140625, 125.98297119140625], \"type\": \"scatter\"}, {\"yaxis\": \"y2\", \"text\": [\"+++: [u'the', u'set', u'shot', u'national', u'activists', u'site', u'officers', u'authorities', u'fires', u'seen']<br>---: [u'monte', u'homes', u'corps', u'hurricane', u'jurisdiction', u'resistance', u'eminent', u'unrest', u'farms', u'mile']\", [], [], \"+++: []<br>---: [u'watergate', u'thomas', u'kkk', u'stephens', u'impression', u'rapture', u'photo', u'morons', u'sexist', u'years']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.5239915229525761, 0.5407990711594035, 0.5407990711594035, 0.5405631185995701], \"x\": [90.0, 90.0, 115.49148559570312, 115.49148559570312], \"type\": \"scatter\"}, {\"yaxis\": \"y2\", \"text\": [\"[u'credible', u'arnaldo', u'code', u'help', u'founder', u'exclusive', u'series', u'global', u'design', u'gavin']\", [], [], \"[u'saying', u'answers', u'liar', u'opinions', u'photo', u'reporters', u'networks', u'sources', u'paper', u'scott']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.5241246859656508, 0.5241246859656508, 0.0], \"x\": [335.0, 335.0, 345.0, 345.0], \"type\": \"scatter\"}, {\"yaxis\": \"y2\", \"text\": [\"[u'longer', u'nc', u'office', u'switched', u'september', u'pros', u'copy', u'neilson', u'results', u'technicians']\", [], [], \"+++: [u'comment', u'google', u'videos', u'appeared', u'series', u'twitter', u'share', u'subscribe', u'video', u'article']<br>---: [u'saying', u'code', u'liar', u'forget', u'founder', u'exclusive', u'dear', u'global', u'danney', u'solutions']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.5477582438343798, 0.5477582438343798, 0.5241246859656508], \"x\": [325.0, 325.0, 340.0, 340.0], \"type\": \"scatter\"}, {\"yaxis\": \"y2\", \"text\": [\"+++: []<br>---: [u'set', u'shot', u'national', u'activists', u'site', u'officers', u'communities', u'fires', u'seen', u'protests']\", [], [], \"+++: [u'comment', u'use', u'mainstream', u'media', u'comments', u'1', u'2', u'radio', u'editor', u'news']<br>---: [u'45', u'office', u'switched', u'september', u'electoral', u'neilson', u'results', u'technicians', u'years', u'held']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.5407990711594035, 0.555896060550066, 0.555896060550066, 0.5477582438343798], \"x\": [102.74574279785156, 102.74574279785156, 332.5, 332.5], \"type\": \"scatter\"}, {\"yaxis\": \"y2\", \"text\": [\"[u'planetary', u'code', u'closely', u'producer', u'photo', u'astronomical', u'queen', u'confirm', u'years', u'discovered']\", [], [], \"+++: []<br>---: [u'comment', u'use', u'mainstream', u'media', u'comments', u'1', u'2', u'radio', u'editor', u'article']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.5561728330392073, 0.5561728330392073, 0.555896060550066], \"x\": [75.0, 75.0, 217.62287139892578, 217.62287139892578], \"type\": \"scatter\"}, {\"yaxis\": \"y2\", \"text\": [\"[u'coup', u'checkpoints', u'wakingtimes', u'paragraph', u'jonsdottir', u'knowingly', u'ended', u'lands', u'including', u'parks']\", [], [], \"+++: []<br>---: [u'science', u'planetary', u'code', u'closely', u'producer', u'photo', u'astronomical', u'queen', u'soon', u'years']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.5564856128519003, 0.5564856128519003, 0.5561728330392073], \"x\": [65.0, 65.0, 146.3114356994629, 146.3114356994629], \"type\": \"scatter\"}, {\"yaxis\": \"y2\", \"text\": [\"[u'morsi', u'phenomenon', u'founder', u'caused', u'labeled', u'mission', u'actress', u'years', u'alien', u'report']\", [], [], \"+++: []<br>---: [u'coup', u'checkpoints', u'wakingtimes', u'weapons', u'jonsdottir', u'ended', u'keystone', u'including', u'1962', u'nevada']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.5704763562651556, 0.5704763562651556, 0.5564856128519003], \"x\": [55.0, 55.0, 105.65571784973145, 105.65571784973145], \"type\": \"scatter\"}, {\"yaxis\": \"y2\", \"text\": [\"[u'1st', u'now', u'jason', u'help', u'ron', u'demand', u'caused', u'executive', u'dollar', u'damage']\", [], [], \"+++: []<br>---: [u'phenomenon', u'founder', u'caused', u'mission', u'actress', u'years', u'alien', u'report', u'bright', u'swedish']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.5726519085057408, 0.5726519085057408, 0.5704763562651556], \"x\": [45.0, 45.0, 80.32785892486572, 80.32785892486572], \"type\": \"scatter\"}, {\"yaxis\": \"y2\", \"text\": [\"[u'represent', u'thomas', u'words', u'founder', u'produces', u'rev', u'authors', u'unseen', u'infant', u'rest']\", [], [], \"+++: []<br>---: [u'now', u'breaking', u'jason', u'help', u'ron', u'caused', u'executive', u'dollar', u'proposes', u'executes']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.5985741306483363, 0.5985741306483363, 0.5726519085057408], \"x\": [35.0, 35.0, 62.66392946243286, 62.66392946243286], \"type\": \"scatter\"}, {\"yaxis\": \"y2\", \"text\": [\"[u'perspective', u'imploding', u'colleges', u'help', u'founder', u'text', u'rob', u'results', u'bookmark', u'professors']\", [], [], \"+++: []<br>---: [u'represent', u'thomas', u'birth', u'founder', u'produces', u'child', u'unseen', u'infant', u'rest', u'years']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.6044867266886239, 0.6044867266886239, 0.5985741306483363], \"x\": [25.0, 25.0, 48.83196473121643, 48.83196473121643], \"type\": \"scatter\"}, {\"yaxis\": \"y2\", \"text\": [\"[u'rtd', u'thomas', u'shot', u'pti', u'sergei', u'ndtv', u'caused', u'kejriwal', u'gun', u'laura']\", [], [], \"+++: []<br>---: [u'imploding', u'colleges', u'help', u'founder', u'text', u'rob', u'results', u'professors', u'facilities', u'spaces']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.6092748581752581, 0.6092748581752581, 0.6044867266886239], \"x\": [15.0, 15.0, 36.915982365608215, 36.915982365608215], \"type\": \"scatter\"}, {\"yaxis\": \"y2\", \"text\": [\"[u'urinary', u'fungal', u'molecule', u'facial', u'tincture', u'ginseng', u'sciencedaily', u'zen', u'powders', u'narcotic']\", [], [], \"+++: []<br>---: [u'rtd', u'thomas', u'shot', u'pti', u'sergei', u'ndtv', u'caused', u'kejriwal', u'officers', u'laura']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.6439303839488679, 0.6439303839488679, 0.6092748581752581], \"x\": [5.0, 5.0, 25.957991182804108, 25.957991182804108], \"type\": \"scatter\"}, {\"colorscale\": \"YIGnBu\", \"text\": [[\"+++ operations, chinese, including, japan, group, ships, nato, systems, east, norway<br>--- \", \"+++ world, the, peace, us, long<br>--- pope, global, souls, earth, fear, religious, chinese, lord, thousands, regional\", \"+++ world, us, long, country<br>--- saying, all, chinese, trying, going, do, regional, stop, coast, joint\", \"+++ news, use, october<br>--- code, chinese, follow, trunews, access, tv, 0, regional, coast, joint\", \"+++ force<br>--- fungal, chinese, ginseng, mild, ingredient, activation, regional, coast, joint, countries\", \"+++ group, government, country, peace, according, attack, anti, security, the<br>--- chinese, protest, riots, black, thousands, protestors, cannon, regional, stop, coast\", \"+++ news, the, anti, meeting, told<br>--- saying, chinese, debate, tv, tweet, mainstream, regional, watch, coast, joint\", \"+++ october, north, region, according, pacific, coast, states, near, u, news<br>--- corps, mile, ground, partners, chinese, sheriff, state, thursday, wood, local\", \"+++ europe, eastern, united, chinese, countries, country, government, asia, states, china<br>--- german, hungary, paris, communist, far, merkel, regional, coast, joint, prime\", \"+++ october, according, u, news, world, the, south<br>--- chinese, global, month, state, 0, 8, posted, oct, far, regional\", \"+++ operations, group, government, general, including, president, the<br>--- all, chinese, staff, access, writes, wmw, to, include, activities, far\", \"+++ october, force, air, near, minister, military, general<br>--- rtd, chinese, battle, soldiers, tweet, thursday, posted, veterans, hit, regional\", \"+++ use, october, washington, according, long, general, officials, president, news, the<br>--- chinese, probe, discovered, staff, justice, huma, sent, regional, coast, joint\", \"+++ use, air, however, long, according<br>--- atmosphere, chinese, caused, magnetic, produce, earth, cell, electricity, environment, risk\", \"+++ united, country, washington, possible, long, states, anti, president, world<br>--- chinese, tweeted, supporter, certainly, going, 8, obama, hope, regional, coast\", \"+++ group, government, long, defense, u, security<br>--- chinese, wakingtimes, jury, nevada, occupation, edward, fossil, torture, regional, bear\", \"+++ october, iran, peace, however, u, president, news, war, south<br>--- stephens, sexist, talks, alt, hate, chinese, bush, black, case, regional\", \"+++ use<br>--- chinese, text, results, children, formating, appears, send, meant, regional, coast\", \"+++ use, force, government, however, according, states, officials, including, close, security<br>--- evidence, chinese, violation, issued, sheriff, justice, crime, going, local, activities\", \"+++ anti, use, including<br>--- chinese, cdc, results, skin, children, vaccines, sugar, helps, risk, regional\", \"+++ country, according, states, officials, u, news, the, told<br>--- chinese, switched, global, results, votes, voter, going, tape, voted, 8\", \"+++ world, use, possible, long, however<br>--- consider, chinese, focus, issues, current, based, knowledge, means, regional, coast\", \"+++ force, washington, general, states, world, united, nuclear, eastern, relations, attack<br>--- operations, coup, invasion, alliance, clinton, chinese, presence, neocon, ships, strategic\", \"+++ united, group, government, country, washington, foreign, states, defense, u, president<br>--- chinese, issues, judges, justice, program, creamer, congressional, cuba, regional, coast\", \"+++ world, group, according, threat, told<br>--- phenomenon, founder, alien, chinese, extraterrestrial, tv, 0, extraterrestrials, egyptian, regional\", \"+++ north, washington, according, states, president, news, secretary, told<br>--- chinese, results, democrats, debate, votes, candidates, carolina, michigan, regional, coast\", \"+++ states, united, group, u, countries, country, region, government, foreign, weapons<br>--- particularly, chinese, gulf, regional, coast, joint, despite, report, governments, saudi\", \"+++ news, the, us, long, air<br>--- ron, lack, chinese, jay, obamacare, brown, regional, coast, joint, worst\", \"+++ chinese, countries, government, long, china, news, world, u<br>--- sector, gold, global, dollar, weapons, treasury, street, regional, coast, joint\", \"+++ australia, however, long, according, near, sea, ship, the, south<br>--- planetary, chinese, queen, discovered, earth, explain, black, regional, coast, famous\", \"+++ president, nations, anti, countries, country, government, peace, long, foreign, states<br>--- chinese, global, justice, black, mainstream, far, regional, coast, joint, trade\", \"+++ according, attack, officials, news, the, told<br>--- shot, chinese, allegations, gang, children, suicide, crime, black, woman, regional\", \"+++ operations, including, group, troops, government, weapons, attack, forces, international, east<br>--- alliance, rebels, campaign, terrorists, washington, strategic, held, fighters, qaeda, situation\", \"+++ october, told<br>--- shot, chinese, children, father, young, foster, local, wearing, woman, regional\", \"+++ states, use, the<br>--- founder, children, chinese, father, garden, regional, coast, joint, evolution, heaven\"], [\"+++ world, the, peace, us, long<br>--- chinese, global, souls, earth, fear, religious, pope, lord, thousands, regional\", \"+++ pope, global, souls, human, existence, fear, religious, death, consciousness, source<br>--- \", \"+++ great, right, end, point, away, life, long, live, us, world<br>--- saying, all, pope, global, souls, earth, fear, religious, knowledge, re\", \"+++ source, today<br>--- code, pope, global, souls, follow, fear, religious, trunews, knowledge, tv\", \"+++ source, state, mind, life, free<br>--- fungal, pope, ginseng, global, souls, mild, hai, earth, fear, religious\", \"+++ thousands, peace, state, the, come, day<br>--- pope, global, souls, protest, earth, fear, religious, trying, knowledge, riots\", \"+++ the, day, truth, times<br>--- saying, pope, global, souls, earth, fear, religious, debate, knowledge, tv\", \"+++ energy, land, state, sacred<br>--- corps, global, souls, mile, earth, fear, religious, ground, partners, knowledge\", \"+++ great, death, fact, world, the, called, today, history<br>--- chinese, german, global, souls, hungary, fear, religious, pope, paris, lord\", \"+++ end, point, global, times, state, world, the, day, today<br>--- pope, souls, month, earth, fear, religious, knowledge, 0, 8, posted\", \"+++ control, times, source, state, the, order, called, fact<br>--- all, pope, global, souls, earth, fear, religious, staff, consciousness, writes\", \"+++ day<br>--- rtd, pope, global, souls, battle, earth, fear, religious, knowledge, tweet\", \"+++ source, state, the, long<br>--- pope, probe, souls, discovered, earth, fear, religious, staff, knowledge, justice\", \"+++ body, natural, power, nature, light, energy, long, source, human, earth<br>--- atmosphere, pope, caused, magnetic, global, souls, fear, research, religious, knowledge\", \"+++ great, right, long, called, world, man, day, today, history<br>--- pope, global, souls, earth, fear, tweeted, religious, supporter, certainly, knowledge\", \"+++ control, death, natural, power, secret, long, state, land, free, instead<br>--- pope, wakingtimes, global, souls, earth, fear, nevada, religious, occupation, knowledge\", \"+++ peace, times, secret, race, truth, man, book, history<br>--- stephens, global, souls, sexist, talks, earth, alt, hate, pope, bush\", \"+++ culture, live<br>--- pope, text, global, results, earth, fear, religious, children, formating, knowledge\", \"+++ control, state, secret, order<br>--- pope, violation, issued, global, souls, earth, fear, religious, consciousness, sheriff\", \"+++ body, heart, great, natural, day<br>--- pope, cdc, global, results, skin, earth, fear, research, religious, children\", \"+++ right, global, state, the, believe, day<br>--- pope, switched, results, earth, fear, religious, votes, voter, consciousness, re\", \"+++ control, life, knowledge, power, point, self, mind, free, reality, society<br>--- consider, pope, global, focus, earth, fear, creative, religious, issues, based\", \"+++ end, power, us, order, state, world, the, called<br>--- pope, global, souls, earth, fear, religious, knowledge, zone, turkish, bush\", \"+++ state, right, the<br>--- pope, global, souls, earth, fear, religious, issues, judges, knowledge, justice\", \"+++ world, secret, history, source<br>--- phenomenon, founder, global, souls, alien, earth, fear, research, religious, pope\", \"+++ state, race, day, fact, point<br>--- pope, global, results, democrats, earth, fear, religious, debate, votes, knowledge\", \"+++ world, state, called, human<br>--- particularly, pope, global, souls, earth, fear, religious, knowledge, gulf, hayden\", \"+++ right, us, away, long, live, free, the, come, order<br>--- ron, lack, souls, earth, fear, religious, pope, jay, obamacare, lord\", \"+++ global, long, state, free, world, higher<br>--- sector, gold, dollar, souls, earth, fear, religious, chinese, treasury, lord\", \"+++ ancient, light, long, source, earth, the, called<br>--- planetary, pope, queen, souls, discovered, fear, religious, knowledge, explain, black\", \"+++ control, right, end, us, power, freedom, self, global, peace, free<br>--- pope, souls, earth, fear, religious, knowledge, justice, true, black, lord\", \"+++ life, death, men, times, state, the, called, man<br>--- shot, pope, global, allegations, souls, gang, earth, fear, religious, children\", \"+++ state, the, us<br>--- rebels, pope, global, souls, qaeda, mosul, battle, soldiers, fear, religious\", \"+++ life, love, away, men, born, day, man<br>--- shot, pope, global, souls, earth, fear, religious, children, knowledge, father\", \"+++ faith, death, humans, jesus, book, human, the<br>--- founder, global, souls, earth, fear, religious, children, pope, cannabis, father\"], [\"+++ world, us, long, country<br>--- saying, all, chinese, one, believe, going, do, regional, stop, coast\", \"+++ great, right, end, point, away, life, long, live, us, world<br>--- saying, all, pope, global, souls, earth, fear, religious, knowledge, religion\", \"+++ saying, all, years, course, yes, believe, ll, actually, better, going<br>--- \", \"+++ you<br>--- saying, all, code, follow, trunews, trying, tv, 0, going, posted\", \"+++ and, life<br>--- saying, all, fungal, ginseng, mild, trying, cannabis, going, rahul, ingredient\", \"+++ country, stop, in, trying, come, day<br>--- saying, all, protest, riots, going, black, thousands, protestors, town, cannon\", \"+++ real, saying, day, talk<br>--- all, debate, trying, tv, tweet, going, posted, do, mainstream, watch\", \"+++ says, we, stop<br>--- saying, all, corps, mile, ground, partners, trying, sheriff, state, thursday\", \"+++ and, them, says, country, great, world<br>--- saying, all, chinese, german, hungary, trying, paris, going, communist, he\", \"+++ says, end, point, years, world, day<br>--- saying, all, global, month, trying, state, 0, going, 8, he\", \"+++ real, and, all, big, work, years, in<br>--- saying, staff, trying, writes, wmw, to, going, include, activities, far\", \"+++ m, day<br>--- rtd, all, saying, battle, soldiers, trying, tweet, thursday, going, rss\", \"+++ i, know, long<br>--- saying, all, probe, discovered, staff, believe, justice, going, huma, sent\", \"+++ long, years<br>--- saying, atmosphere, caused, magnetic, all, earth, trying, electricity, environment, going\", \"+++ again, great, right, says, i, things, this, country, m, long<br>--- saying, all, tweeted, supporter, certainly, believe, 8, hope, do, stop\", \"+++ and, long<br>--- saying, all, wakingtimes, nevada, occupation, trying, edward, bundy, do, torture\", \"+++ didn, good, years<br>--- saying, all, stephens, sexist, talks, alt, hate, trying, bush, going\", \"+++ what, sure, want, i, better, start, live, way, in, need<br>--- saying, all, text, results, children, formating, trying, send, going, meant\", \"+++ going<br>--- saying, all, violation, issued, believe, sheriff, justice, crime, local, activities\", \"+++ great, day, best, d<br>--- saying, all, cdc, results, skin, children, trying, sugar, going, helps\", \"+++ real, think, right, says, d, i, country, years, re, going<br>--- saying, all, switched, global, results, votes, voter, tape, voted, 8\", \"+++ real, life, good, point, feel, things, work, long, one, better<br>--- saying, all, consider, focus, issues, believe, based, knowledge, going, do\", \"+++ we, end, no, country, that, us, course, so, world, think<br>--- saying, all, trying, zone, turkish, bush, going, obama, do, stop\", \"+++ we, right, d, i, country, work, one<br>--- saying, all, issues, judges, believe, justice, program, creamer, obama, congressional\", \"+++ world, years<br>--- saying, all, phenomenon, founder, alien, trying, extraterrestrial, tv, 0, going\", \"+++ person, day, point<br>--- saying, all, results, democrats, debate, votes, trying, going, candidates, obama\", \"+++ world, there, country<br>--- saying, all, particularly, trying, gulf, hayden, going, do, stop, despite\", \"+++ we, right, d, big, away, live, long, re, bad, sure<br>--- saying, all, ron, lack, trying, jay, obamacare, going, obama, brown\", \"+++ real, big, years, long, world<br>--- sector, saying, all, gold, global, dollar, trying, chinese, going, treasury\", \"+++ place, look, long, years<br>--- planetary, all, saying, queen, discovered, earth, trying, explain, going, black\", \"+++ real, and, them, right, end, country, long, years, course, so<br>--- saying, all, global, justice, going, black, do, mainstream, far, stop\", \"+++ place, life, stop, years<br>--- saying, all, shot, allegations, gang, children, suicide, crime, going, black\", \"+++ us<br>--- saying, all, rebels, qaeda, mosul, battle, soldiers, trying, turkish, daesh\", \"+++ away, says, day, life, years<br>--- saying, all, shot, children, believe, father, young, foster, he, local\", \"+++ d, years<br>--- saying, all, founder, children, one, believe, cannabis, father, going, do\"], [\"+++ news, use, october<br>--- code, chinese, follow, trunews, weapons, tv, 0, regional, coast, joint\", \"+++ source, today<br>--- code, pope, global, souls, earth, fear, religious, trunews, knowledge, tv\", \"+++ you<br>--- saying, all, code, follow, trunews, trying, tv, 0, going, he\", \"+++ code, help, follow, alternative, trunews, web, 26, 27, tv, 28<br>--- \", \"+++ 10, www, http, breaking, content, source, com<br>--- fungal, ginseng, mild, code, hai, follow, trunews, cannabis, tv, 0\", \"+++ org<br>--- code, protest, follow, trunews, tv, riots, 0, black, thousands, protestors\", \"+++ comment, information, account, google, network, videos, views, tv, share, twitter<br>--- saying, code, follow, debate, tweet, 0, mainstream, watch, reporters, report\", \"+++ october, support, site, access, news, company<br>--- code, corps, mile, follow, trunews, ground, partners, sheriff, tv, state\", \"+++ news, today<br>--- code, chinese, german, hungary, trunews, paris, 0, communist, population, far\", \"+++ 10, 27, support, 1, 0, 2, news, november, october, data<br>--- code, global, month, follow, trunews, content, tv, state, list, 8\", \"+++ a, 1, e, support, internet, access, source, published, policy, post<br>--- all, code, follow, trunews, staff, tv, writes, wmw, to, device\", \"+++ a, 26, october, 2, november, posted<br>--- rtd, code, battle, soldiers, trunews, tv, tweet, thursday, 0, veterans\", \"+++ information, account, october, e, use, related, source, news, email<br>--- code, probe, discovered, follow, trunews, staff, justice, 0, huma, sent\", \"+++ device, source, use, published<br>--- atmosphere, code, caused, magnetic, earth, trunews, cell, electricity, environment, 0\", \"+++ 10, november, share, today<br>--- code, follow, tweeted, supporter, certainly, tv, 0, going, 8, posted\", \"+++ co, published<br>--- code, wakingtimes, follow, nevada, trunews, occupation, tv, 0, vnn, edward\", \"+++ news, november, october, com<br>--- code, stephens, sexist, talks, follow, alt, hate, trunews, tv, 0\", \"+++ comment, 10, use, help, 1, 2, link, a, address, post<br>--- code, text, results, follow, children, formating, tv, send, 0, vnn\", \"+++ information, phone, search, use, at<br>--- code, violation, issued, legal, follow, trunews, sheriff, justice, crime, 0\", \"+++ 1, use, 2, help<br>--- code, cdc, results, skin, follow, children, access, tv, sugar, 0\", \"+++ news, comments, posted<br>--- code, switched, global, results, follow, trunews, votes, voter, tv, 0\", \"+++ information, use, help, today, social<br>--- code, consider, focus, follow, trunews, issues, access, based, knowledge, tv\", \"+++ policy, post<br>--- code, follow, trunews, access, zone, turkish, tv, 0, bush, posted\", \"+++ policy, list<br>--- code, legal, follow, trunews, issues, judges, justice, 0, program, creamer\", \"+++ articles, source, tv, related, 0, information, data, posted<br>--- code, phenomenon, founder, alien, follow, trunews, extraterrestrial, extraterrestrials, egyptian, facebook\", \"+++ news, november, support<br>--- code, results, democrats, follow, debate, votes, tv, 0, candidates, obama\", \"+++ rt, policy, support, published<br>--- code, particularly, publish, follow, trunews, access, gulf, tv, 0, facebook\", \"+++ news, help, phone<br>--- code, ron, lack, follow, trunews, companies, jay, tv, obamacare, 0\", \"+++ policy, news, company, companies<br>--- sector, code, gold, global, dollar, follow, trunews, current, chinese, tv\", \"+++ a, source, 2<br>--- planetary, code, queen, discovered, earth, trunews, tv, explain, 0, black\", \"+++ policy, support, class, today, social<br>--- code, global, follow, trunews, justice, 0, black, mainstream, far, facebook\", \"+++ news<br>--- code, shot, allegations, gang, follow, children, suicide, tv, crime, 0\", \"+++ support, october<br>--- code, rebels, qaeda, mosul, battle, soldiers, trunews, weapons, turkish, tv\", \"+++ october, help, share, daily, social, november, posted<br>--- code, shot, follow, children, tv, father, young, 0, foster, local\", \"+++ a, use, related, author<br>--- code, founder, follow, children, tv, father, 0, garden, facebook, evolution\"], [\"+++ force<br>--- fungal, chinese, ginseng, mild, ingredient, activation, regional, coast, joint, korea\", \"+++ source, state, mind, life, free<br>--- fungal, pope, ginseng, global, souls, mild, earth, fear, religious, knowledge\", \"+++ and, life<br>--- saying, all, fungal, ginseng, mild, trying, cannabis, going, rahul, ingredient\", \"+++ 10, www, http, breaking, content, source, com<br>--- code, ginseng, mild, fungal, follow, trunews, tv, 0, rahul, ingredient\", \"+++ fungal, ginseng, brain, mild, folic, 25, 22, source, ims, 2015<br>--- \", \"+++ state<br>--- fungal, ginseng, protest, riots, black, thousands, ingredient, cannon, activation, stop\", \"+++ channel, campaign<br>--- saying, fungal, ginseng, mild, debate, tv, tweet, rahul, ingredient, mainstream\", \"+++ state<br>--- fungal, corps, ginseng, mild, mile, ground, partners, sheriff, thursday, wood\", \"+++ and<br>--- fungal, chinese, german, mild, hungary, paris, ginseng, communist, rahul, ingredient\", \"+++ 2015, 25, state, 22, 10<br>--- fungal, ginseng, global, month, mild, increase, 0, 8, population, oct\", \"+++ and, source, state<br>--- all, fungal, ginseng, mild, staff, writes, wmw, to, include, ingredient\", \"+++ force<br>--- rtd, fungal, ginseng, mild, battle, soldiers, tweet, thursday, rahul, veterans\", \"+++ 2015, source, state, campaign<br>--- fungal, ginseng, probe, discovered, mild, staff, justice, huma, sent, ingredient\", \"+++ source, cells, health<br>--- atmosphere, fungal, ginseng, caused, magnetic, mild, earth, electricity, environment, ingredient\", \"+++ 10, campaign<br>--- fungal, ginseng, mild, tweeted, supporter, certainly, going, 8, obama, hope\", \"+++ and, state, free<br>--- fungal, ginseng, wakingtimes, mild, nevada, occupation, edward, keystone, rahul, ingredient\", \"+++ com<br>--- fungal, stephens, ginseng, sexist, mild, talks, alt, hate, bush, black\", \"+++ 10<br>--- fungal, ginseng, text, results, mild, children, formating, 3, send, ingredient\", \"+++ state, force<br>--- fungal, violation, issued, mild, sheriff, justice, crime, ginseng, going, local\", \"+++ brain, health<br>--- fungal, cdc, ginseng, results, mild, skin, children, content, 3, sugar\", \"+++ jones, state<br>--- fungal, switched, ginseng, global, results, mild, votes, voter, re, going\", \"+++ life, mind, free<br>--- fungal, consider, ginseng, focus, mild, issues, based, knowledge, ingredient, means\", \"+++ state, force<br>--- fungal, ginseng, mild, zone, turkish, bush, obama, ingredient, activation, tanks\", \"+++ 2015, state, health, campaign<br>--- fungal, ginseng, mild, issues, judges, justice, program, creamer, rahul, congressional\", \"+++ 2015, source, health, meat, lab<br>--- fungal, phenomenon, founder, ginseng, alien, mild, extraterrestrial, tv, 0, posted\", \"+++ state, campaign<br>--- fungal, ginseng, results, mild, democrats, debate, votes, candidates, rahul, ingredient\", \"+++ 2015, state, campaign<br>--- fungal, particularly, ginseng, mild, gulf, cannabis, ingredient, activation, despite, report\", \"+++ health, free<br>--- fungal, ron, ginseng, lack, mild, jay, obamacare, obama, ingredient, brown\", \"+++ state, free<br>--- sector, fungal, gold, ginseng, global, dollar, mild, content, chinese, treasury\", \"+++ source<br>--- planetary, fungal, ginseng, queen, discovered, mild, earth, explain, black, ingredient\", \"+++ and, state, free<br>--- fungal, ginseng, global, mild, justice, black, ingredient, mainstream, far, activation\", \"+++ state, life<br>--- fungal, shot, ginseng, allegations, mild, gang, children, suicide, crime, black\", \"+++ state, campaign<br>--- fungal, rebels, ginseng, mild, qaeda, mosul, battle, soldiers, turkish, iraqi\", \"+++ life<br>--- fungal, shot, ginseng, mild, children, father, young, foster, rahul, local\", \"+++ cannabis<br>--- fungal, founder, ginseng, mild, children, father, ingredient, garden, activation, evolution\"], [\"+++ group, government, country, peace, according, attack, anti, security, the<br>--- chinese, protest, riots, black, thousands, protestors, cannon, regional, stop, coast\", \"+++ thousands, peace, state, the, come, day<br>--- pope, global, souls, protest, earth, fear, religious, believe, knowledge, riots\", \"+++ country, stop, in, trying, come, day<br>--- saying, all, protest, riots, going, black, thousands, protestors, do, cannon\", \"+++ org<br>--- code, protest, follow, trunews, tv, riots, 0, black, thousands, protestors\", \"+++ state<br>--- fungal, ginseng, mild, riots, black, thousands, ingredient, cannon, activation, stop\", \"+++ soros, wednesday, protest, group, riots, black, thousands, protestors, non, government<br>--- \", \"+++ week, the, anti, day<br>--- saying, protest, debate, tv, tweet, riots, black, thousands, protestors, mainstream\", \"+++ camp, police, riot, rights, national, activists, stop, protesters, according, state<br>--- corps, protest, mile, ground, partners, sheriff, thursday, riots, wood, black\", \"+++ city, migrants, government, country, national, the, cities<br>--- chinese, german, protest, hungary, paris, riots, black, communist, thousands, protestors\", \"+++ week, according, state, 000, home, the, day, change<br>--- global, month, protest, riots, 0, black, 8, posted, thousands, oct\", \"+++ non, set, group, government, in, state, 000, members, team, the<br>--- all, protest, staff, writes, wmw, riots, to, black, include, local\", \"+++ town, residents, national, day, wednesday<br>--- rtd, protest, battle, soldiers, tweet, thursday, riots, black, posted, veterans\", \"+++ the, state, 000, according<br>--- probe, discovered, protest, staff, justice, riots, black, huma, thousands, sent\", \"+++ food, non, california, according<br>--- atmosphere, caused, magnetic, protest, earth, electricity, environment, black, thousands, protestors\", \"+++ in, country, violence, wednesday, nation, anti, team, following, america, day<br>--- protest, tweeted, supporter, certainly, riots, going, black, 8, obama, thousands\", \"+++ group, government, national, surveillance, state, security, armed<br>--- wakingtimes, protest, nevada, occupation, riots, edward, black, thousands, protestors, torture\", \"+++ national, peace, black, george, team<br>--- stephens, sexist, protest, talks, alt, hate, riots, bush, thousands, protestors\", \"+++ community, in<br>--- text, results, protest, children, formating, appears, state, send, riots, black\", \"+++ police, government, national, rights, according, state, members, authorities, security, local<br>--- violation, issued, protest, sheriff, justice, crime, riots, going, black, thousands\", \"+++ food, anti, day<br>--- cdc, results, protest, skin, children, 3, sugar, riots, black, helps\", \"+++ country, soros, according, day, state, the, george<br>--- switched, global, results, protest, votes, voter, riots, going, tape, voted\", \"+++ home, continue, lives, community, change<br>--- consider, focus, protest, issues, based, knowledge, riots, black, thousands, protestors\", \"+++ government, country, state, attack, security, america, the, change<br>--- protest, zone, turkish, riots, bush, black, thousands, protestors, town, cannon\", \"+++ group, rights, country, national, government, nation, state, 000, california, members<br>--- protest, issues, judges, justice, riots, program, black, thousands, congressional, protestors\", \"+++ national, group, according<br>--- phenomenon, founder, alien, protest, extraterrestrial, tv, riots, 0, black, thousands\", \"+++ week, national, according, state, day, change<br>--- results, protest, democrats, debate, votes, riots, candidates, thousands, carolina, cannon\", \"+++ group, government, country, rights, state, 000, groups<br>--- particularly, protest, gulf, riots, black, thousands, protestors, organizations, cannon, stop\", \"+++ city, the, come, crisis<br>--- ron, lack, protest, jay, obamacare, riots, black, thousands, protestors, brown\", \"+++ state, crisis, government<br>--- sector, gold, global, dollar, protest, chinese, riots, black, treasury, thousands\", \"+++ the, left, black, according, team<br>--- planetary, queen, discovered, protest, earth, explain, riots, thousands, protestors, cannon\", \"+++ revolution, government, country, national, rights, peace, nation, state, black, groups<br>--- global, protest, trying, justice, riots, local, protestors, mainstream, far, cannon\", \"+++ city, police, lives, stop, according, officers, state, black, home, the<br>--- shot, allegations, protest, gang, children, suicide, crime, riots, thousands, protestors\", \"+++ city, group, groups, government, according, state, 000, opposition, security, attack<br>--- rebels, protest, qaeda, mosul, battle, soldiers, turkish, riots, iraqi, black\", \"+++ home, local, day, left<br>--- shot, protest, children, father, young, riots, foster, black, protestors, wearing\", \"+++ the, non, california, national, san<br>--- founder, protest, children, father, riots, black, thousands, protestors, plants, garden\"], [\"+++ news, the, anti, meeting, told<br>--- saying, chinese, debate, tv, tweet, mainstream, regional, watch, coast, joint\", \"+++ the, day, truth, times<br>--- saying, pope, global, souls, earth, fear, religious, debate, knowledge, tv\", \"+++ real, saying, day, talk<br>--- all, debate, trying, tv, tweet, going, he, do, mainstream, stop\", \"+++ comment, information, account, google, network, videos, views, tv, list, twitter<br>--- saying, code, follow, trunews, tweet, 0, email, mainstream, watch, reporters\", \"+++ channel, campaign<br>--- saying, fungal, ginseng, mild, hai, debate, tv, tweet, posted, ingredient\", \"+++ week, the, anti, day<br>--- saying, protest, debate, tv, tweet, riots, black, thousands, protestors, mainstream\", \"+++ saying, keefe, sources, scott, debate, tv, tweet, real, mainstream, views<br>--- \", \"+++ project, news, sites<br>--- saying, corps, mile, debate, ground, partners, sheriff, tv, tweet, state\", \"+++ news, the, public, propaganda<br>--- saying, chinese, german, hungary, debate, paris, tweet, communist, population, mainstream\", \"+++ week, reported, times, p, report, news, the, posted, day, shows<br>--- saying, global, month, debate, tv, tweet, state, 0, 8, oct\", \"+++ real, the, media, published, times, project, york, internet, article, post<br>--- saying, all, debate, staff, tv, writes, wmw, to, include, activities\", \"+++ reported, tweet, p, sources, day, posted<br>--- rtd, saying, battle, soldiers, debate, tv, thursday, veterans, hit, mainstream\", \"+++ information, account, released, campaign, reported, sources, york, news, the, public<br>--- saying, probe, discovered, debate, staff, justice, tweet, huma, sent, mainstream\", \"+++ published<br>--- saying, atmosphere, caused, magnetic, earth, debate, electricity, tweet, environment, risk\", \"+++ article, share, anti, day, campaign<br>--- saying, tweeted, supporter, certainly, tv, tweet, going, 8, he, hope\", \"+++ conspiracy, published<br>--- saying, wakingtimes, nevada, debate, occupation, tv, tweet, edward, bundy, mainstream\", \"+++ story, media, times, stories, york, truth, news<br>--- saying, stephens, sexist, talks, alt, hate, debate, tv, tweet, bush\", \"+++ comment, post<br>--- saying, text, results, children, formating, tv, tweet, send, meant, mainstream\", \"+++ information, sources, reported, public, told<br>--- saying, violation, issued, debate, sheriff, justice, daily, tweet, crime, going\", \"+++ anti, day<br>--- saying, cdc, results, skin, children, tv, tweet, sugar, helps, posted\", \"+++ real, wnd, reporting, reported, press, news, the, posted, day, told<br>--- saying, switched, global, results, debate, votes, voter, tv, tweet, going\", \"+++ real, article, information, social<br>--- saying, consider, focus, debate, issues, based, knowledge, tv, tweet, mainstream\", \"+++ media, post, propaganda, the<br>--- saying, debate, zone, turkish, tv, tweet, bush, posted, mainstream, watch\", \"+++ speech, the, list, york, campaign<br>--- saying, debate, issues, judges, justice, tweet, program, creamer, posted, congressional\", \"+++ information, released, tv, reported, video, report, posted, told<br>--- saying, phenomenon, founder, alien, debate, extraterrestrial, tweet, 0, extraterrestrials, mainstream\", \"+++ week, campaign, media, day, speech, cnn, news, debate, told<br>--- saying, results, democrats, votes, tv, tweet, candidates, obama, carolina, mainstream\", \"+++ journalists, campaign, media, narrative, report, published, interview<br>--- saying, particularly, debate, gulf, tv, tweet, mainstream, watch, facebook, reporters\", \"+++ report, cnn, the, online, news<br>--- saying, ron, lack, debate, jay, tv, tweet, obamacare, posted, brown\", \"+++ real, news<br>--- sector, saying, gold, global, dollar, debate, chinese, tv, tweet, videos\", \"+++ image, the<br>--- planetary, saying, queen, discovered, earth, debate, tv, explain, black, mainstream\", \"+++ real, liberal, mainstream, media, public, anti, social, the, propaganda<br>--- saying, global, debate, justice, tweet, black, far, watch, facebook, reporters\", \"+++ story, times, reported, report, news, the, public, told<br>--- saying, shot, allegations, gang, children, suicide, tv, tweet, crime, black\", \"+++ the, campaign<br>--- saying, rebels, qaeda, mosul, battle, soldiers, debate, turkish, tv, tweet\", \"+++ story, share, daily, morning, video, social, posted, day, told<br>--- saying, shot, children, tv, tweet, father, young, foster, local, wearing\", \"+++ movie, the, youtube<br>--- saying, founder, children, tv, tweet, father, garden, watch, facebook, reporters\"], [\"+++ october, north, region, according, pacific, coast, states, near, u, news<br>--- chinese, mile, ground, weapons, corps, sheriff, 3, thursday, wood, local\", \"+++ energy, land, state, sacred<br>--- pope, global, souls, mile, earth, fear, religious, ground, partners, knowledge\", \"+++ says, we, stop<br>--- saying, all, corps, mile, ground, partners, trying, sheriff, state, thursday\", \"+++ october, support, site, access, news, company<br>--- code, corps, mile, follow, trunews, ground, partners, sheriff, tv, 3\", \"+++ state<br>--- fungal, corps, ginseng, mild, mile, ground, partners, sheriff, thursday, wood\", \"+++ camp, police, riot, rights, national, activists, stop, according, protesters, state<br>--- corps, protest, mile, ground, partners, sheriff, thursday, riots, wood, black\", \"+++ project, news, sites<br>--- saying, corps, mile, debate, ground, partners, sheriff, tv, tweet, 3\", \"+++ corps, september, dapl, mile, dakota, ground, partners, police, sheriff, lake<br>--- \", \"+++ states, news, national, says<br>--- chinese, german, mile, hungary, ground, partners, corps, sheriff, paris, 3\", \"+++ october, says, september, support, 3, according, state, u, news, south<br>--- corps, global, month, mile, ground, partners, sheriff, thursday, 0, wood\", \"+++ project, support, private, access, state, line, company<br>--- all, corps, mile, staff, partners, sheriff, writes, wmw, thursday, to\", \"+++ october, army, national, reports, near, indian, thursday, line<br>--- rtd, corps, mile, battle, soldiers, ground, partners, sheriff, tweet, state\", \"+++ october, according, private, state, reports, department, news<br>--- corps, probe, discovered, mile, july, staff, partners, sheriff, justice, thursday\", \"+++ area, energy, gas, according, water, environmental, clean<br>--- atmosphere, corps, caused, magnetic, produce, mile, earth, ground, partners, sheriff\", \"+++ states, americans, american, months, says<br>--- corps, mile, tweeted, supporter, ground, partners, certainly, sheriff, state, thursday\", \"+++ pipeline, oil, state, national, gas, protect, american, land, u<br>--- corps, wakingtimes, mile, nevada, occupation, partners, sheriff, thursday, edward, local\", \"+++ october, national, american, u, news, south<br>--- stephens, sexist, mile, talks, alt, hate, ground, partners, corps, sheriff\", \"+++ 3, american, native<br>--- corps, text, results, mile, children, formating, ground, partners, sheriff, send\", \"+++ enforcement, police, sheriff, rights, national, arrested, according, reports, county, state<br>--- corps, violation, issued, mile, ground, partners, charges, justice, thursday, crime\", \"+++ water, 3, oil<br>--- corps, cdc, results, mile, skin, children, ground, access, sheriff, thursday\", \"+++ states, says, according, reports, county, state, u, news, line<br>--- corps, switched, global, results, mile, ground, partners, votes, voter, sheriff\", \"+++ <br>--- consider, corps, focus, mile, issues, ground, partners, based, knowledge, sheriff\", \"+++ states, american, state, u, we<br>--- corps, mile, ground, partners, zone, turkish, thursday, bush, wood, local\", \"+++ we, rights, national, state, states, american, americans, department, u, law<br>--- corps, mile, issues, ground, partners, judges, sheriff, justice, thursday, program\", \"+++ national, according, reports<br>--- phenomenon, founder, alien, mile, ground, partners, corps, sheriff, extraterrestrial, tv\", \"+++ north, national, state, according, states, american, americans, news, support<br>--- corps, results, mile, democrats, debate, ground, partners, votes, sheriff, thursday\", \"+++ oil, rights, support, state, states, american, u, region<br>--- particularly, corps, mile, ground, weapons, gulf, thursday, wood, local, stop\", \"+++ news, we, americans<br>--- ron, lack, mile, ground, partners, corps, sheriff, jay, obamacare, 3\", \"+++ oil, company, private, state, u, news<br>--- sector, gold, global, dollar, mile, ground, current, chinese, sheriff, thursday\", \"+++ near, area, lake, south, according<br>--- planetary, corps, queen, discovered, mile, earth, ground, partners, sheriff, explain\", \"+++ rights, support, state, states, american, americans, u, national<br>--- corps, global, mile, ground, partners, sheriff, justice, thursday, wood, black\", \"+++ police, arrested, began, stop, according, reports, state, department, news<br>--- shot, corps, allegations, mile, gang, children, ground, partners, suicide, sheriff\", \"+++ october, area, region, army, according, reports, state, support<br>--- rebels, corps, qaeda, mosul, battle, soldiers, ground, weapons, sheriff, turkish\", \"+++ says, october, local<br>--- shot, corps, mile, children, ground, partners, sheriff, father, young, thursday\", \"+++ states, national<br>--- founder, mile, children, ground, partners, corps, sheriff, father, 3, thursday\"], [\"+++ europe, eastern, united, chinese, countries, country, government, asia, states, china<br>--- german, hungary, paris, communist, far, merkel, regional, coast, joint, prime\", \"+++ great, death, fact, world, the, called, today, history<br>--- pope, german, global, souls, earth, fear, religious, chinese, paris, lord\", \"+++ and, them, says, country, great, world<br>--- saying, all, chinese, german, hungary, trying, paris, going, communist, population\", \"+++ news, today<br>--- code, chinese, german, follow, trunews, tv, 0, communist, population, far\", \"+++ and<br>--- fungal, chinese, ginseng, mild, hungary, paris, german, communist, population, ingredient\", \"+++ city, migrants, government, country, national, the, cities<br>--- chinese, german, protest, hungary, paris, riots, black, communist, thousands, protestors\", \"+++ news, the, public, propaganda<br>--- saying, chinese, german, hungary, debate, tv, tweet, communist, population, mainstream\", \"+++ states, news, national, says<br>--- corps, german, mile, hungary, ground, partners, chinese, sheriff, paris, state\", \"+++ chinese, german, london, hungary, death, paris, communist, east, happened, them<br>--- \", \"+++ says, far, second, news, world, the, today, population<br>--- chinese, german, global, month, hungary, paris, state, 0, 8, communist\", \"+++ and, government, far, public, the, called, fact<br>--- all, chinese, german, hungary, staff, paris, writes, wmw, to, communist\", \"+++ national, italy, minister<br>--- rtd, chinese, german, battle, soldiers, paris, tweet, thursday, communist, population\", \"+++ news, the, public<br>--- chinese, german, probe, discovered, hungary, staff, justice, communist, huma, sent\", \"+++ known, similar<br>--- atmosphere, chinese, german, caused, magnetic, earth, electricity, environment, communist, risk\", \"+++ great, united, says, country, states, world, called, today, history<br>--- chinese, german, hungary, tweeted, supporter, certainly, paris, going, 8, communist\", \"+++ and, death, government, national, later, history<br>--- chinese, german, wakingtimes, hungary, nevada, occupation, paris, edward, communist, population\", \"+++ news, national, later, war, history<br>--- stephens, german, sexist, talks, hungary, alt, hate, chinese, paris, bush\", \"+++ jewish, jews, english<br>--- chinese, german, text, results, hungary, children, formating, paris, send, communist\", \"+++ states, national, citizens, public, government<br>--- chinese, violation, issued, hungary, sheriff, justice, crime, german, going, communist\", \"+++ known, great, women<br>--- chinese, cdc, german, results, skin, hungary, children, paris, sugar, helps\", \"+++ says, jewish, country, states, news, the, similar<br>--- chinese, switched, german, global, results, hungary, votes, voter, paris, going\", \"+++ world, result, today<br>--- consider, chinese, german, focus, hungary, issues, based, knowledge, paris, communist\", \"+++ europe, eastern, united, countries, country, government, war, states, western, invasion<br>--- chinese, german, hungary, zone, turkish, paris, bush, communist, obama, far\", \"+++ citizens, government, country, national, muslim, states, second, united, the<br>--- chinese, german, hungary, issues, judges, justice, program, creamer, communist, population\", \"+++ world, national, later, history<br>--- phenomenon, founder, german, alien, hungary, chinese, extraterrestrial, tv, 0, communist\", \"+++ states, news, national, fact<br>--- chinese, german, results, democrats, hungary, debate, votes, paris, candidates, communist\", \"+++ united, countries, country, government, africa, british, called, states, western, world<br>--- particularly, chinese, german, hungary, gulf, paris, communist, far, merkel, despite\", \"+++ news, the, leader, city<br>--- ron, german, lack, hungary, chinese, jay, paris, obamacare, communist, population\", \"+++ chinese, countries, government, china, news, world<br>--- sector, gold, german, global, dollar, prices, hungary, paris, treasury, communist\", \"+++ known, the, called, came, century<br>--- planetary, chinese, german, queen, discovered, earth, paris, explain, black, communist\", \"+++ and, them, citizens, countries, far, country, national, government, war, states<br>--- chinese, german, global, hungary, justice, black, communist, mainstream, merkel, trade\", \"+++ city, death, later, public, news, the, called, happened<br>--- shot, chinese, german, allegations, gang, hungary, children, suicide, paris, crime\", \"+++ city, eastern, jewish, west, government, muslim, western, the, east, war<br>--- rebels, chinese, german, qaeda, mosul, battle, soldiers, turkish, paris, daesh\", \"+++ muslim, says, came, later, women<br>--- shot, chinese, german, hungary, children, paris, father, young, foster, communist\", \"+++ states, national, death, the<br>--- founder, german, baby, hungary, children, chinese, paris, father, communist, garden\"], [\"+++ october, according, u, news, world, the, south<br>--- chinese, global, month, state, 0, 8, population, oct, far, regional\", \"+++ end, point, global, times, state, world, the, day, today<br>--- pope, souls, month, earth, fear, religious, knowledge, 0, lord, population\", \"+++ says, end, point, years, world, day<br>--- saying, all, global, month, trying, state, 0, going, 8, he\", \"+++ 10, 27, support, 1, 0, 2, news, november, october, data<br>--- code, global, month, follow, trunews, increase, tv, state, list, 8\", \"+++ 2015, 25, state, 22, 10<br>--- fungal, ginseng, global, month, mild, content, 0, 8, population, oct\", \"+++ week, according, state, 000, home, the, day, change<br>--- global, month, protest, riots, 0, black, 8, posted, thousands, oct\", \"+++ week, reported, times, p, report, news, the, posted, day, shows<br>--- saying, global, month, debate, tv, tweet, state, 0, 8, oct\", \"+++ october, says, september, support, state, according, 3, u, news, south<br>--- corps, global, month, mile, ground, partners, sheriff, thursday, 0, wood\", \"+++ says, far, second, news, world, the, today, population<br>--- chinese, german, global, month, hungary, paris, state, 0, 8, communist\", \"+++ september, global, years, previous, 25, 27, 20, 21, 22, 23<br>--- \", \"+++ far, support, million, times, 1, state, 000, the, years<br>--- all, global, month, staff, writes, wmw, 0, 8, include, oct\", \"+++ october, reported, 30, p, 2, 5, 4, 6, november, posted<br>--- rtd, global, month, battle, soldiers, tweet, 3, thursday, 0, 8\", \"+++ october, according, reported, state, 000, 2015, news, the<br>--- probe, month, discovered, staff, justice, 0, 8, huma, oct, sent\", \"+++ low, high, study, according, years<br>--- atmosphere, caused, magnetic, global, month, earth, electricity, state, environment, 0\", \"+++ 11, 10, says, world, years, likely, year, 9, 8, november<br>--- global, month, tweeted, supporter, certainly, state, 0, going, he, oct\", \"+++ 11, state, u, year<br>--- wakingtimes, global, month, nevada, occupation, 0, edward, 8, bundy, oct\", \"+++ 11, october, times, u, half, 9, news, november, years, south<br>--- stephens, global, sexist, month, talks, alt, hate, state, 0, bush\", \"+++ 10, 1, 3, 2, 5, 4<br>--- text, global, results, month, children, formating, send, 0, 8, posted\", \"+++ high, reported, state, according, year<br>--- violation, issued, global, month, sheriff, justice, crime, 0, going, 8\", \"+++ high, study, increase, 3, 2, 5, 4, 1, day, low<br>--- cdc, global, results, month, skin, children, sugar, 0, helps, 8\", \"+++ says, global, according, years, reported, state, u, news, 8, the<br>--- switched, results, month, votes, voter, 0, going, tape, voted, oct\", \"+++ point, number, change, home, world, today<br>--- consider, global, focus, month, issues, based, knowledge, state, 0, 8\", \"+++ end, state, u, 2014, world, the, change<br>--- global, month, zone, turkish, 0, bush, 8, population, oct, far\", \"+++ 20, state, second, 000, u, year, 2015, the, change<br>--- global, month, issues, judges, justice, 0, program, creamer, 8, population\", \"+++ 2015, reported, according, years, 0, report, world, data, posted<br>--- phenomenon, founder, global, month, alien, extraterrestrial, tv, state, 8, oct\", \"+++ week, likely, point, support, percent, according, early, record, state, points<br>--- global, results, month, democrats, debate, votes, 0, candidates, 8, obama\", \"+++ 9, support, million, number, report, state, 000, u, year, 2015<br>--- particularly, global, month, gulf, 0, 8, posted, oct, far, 12\", \"+++ report, 2014, news, the, previous<br>--- ron, lack, month, jay, obamacare, state, 0, 8, obama, oct\", \"+++ high, global, state, years, increase, rate, u, low, year, world<br>--- sector, gold, dollar, month, chinese, 0, treasury, 8, posted, oct\", \"+++ ago, study, according, years, 2, 5, the, south<br>--- planetary, queen, month, discovered, earth, explain, 3, 0, black, 8\", \"+++ end, far, support, global, years, state, u, today, world, the<br>--- month, justice, 0, black, 8, posted, oct, mainstream, 12, nearly\", \"+++ ago, according, years, reported, state, year, report, home, news, times<br>--- shot, global, allegations, month, gang, children, suicide, crime, 0, black\", \"+++ october, support, according, state, 000, the<br>--- rebels, global, month, qaeda, mosul, battle, soldiers, turkish, daesh, iraqi\", \"+++ october, says, 6, years, year, home, november, day, posted<br>--- shot, global, month, children, father, young, 0, foster, 8, local\", \"+++ ago, the, study, period, years<br>--- founder, global, month, children, father, state, 0, 8, population, oct\"], [\"+++ operations, group, government, general, including, president, the<br>--- all, chinese, staff, weapons, writes, wmw, to, include, activities, far\", \"+++ control, times, source, state, the, order, called, fact<br>--- all, pope, global, souls, earth, fear, religious, staff, office, writes\", \"+++ real, and, all, big, work, years, in<br>--- saying, staff, trying, writes, wmw, to, going, include, activities, far\", \"+++ a, 1, e, support, internet, access, source, published, policy, post<br>--- all, code, follow, trunews, staff, tv, writes, wmw, to, include\", \"+++ and, source, state<br>--- all, fungal, ginseng, mild, staff, writes, wmw, to, include, ingredient\", \"+++ non, set, group, government, in, state, 000, members, team, the<br>--- all, protest, staff, writes, wmw, riots, to, black, include, thousands\", \"+++ real, the, media, published, times, project, york, internet, article, post<br>--- saying, all, debate, staff, tv, tweet, wmw, to, include, activities\", \"+++ project, company, private, access, state, line, support<br>--- all, corps, mile, ground, partners, sheriff, writes, wmw, thursday, to\", \"+++ and, government, far, public, the, called, fact<br>--- all, chinese, german, hungary, staff, paris, writes, wmw, to, communist\", \"+++ far, support, million, times, 1, state, 000, the, years<br>--- all, global, month, staff, writes, wmw, to, 8, posted, oct\", \"+++ operations, all, office, money, years, including, worked, staff, 1, group<br>--- \", \"+++ a, line, john, chief, general<br>--- rtd, all, battle, soldiers, staff, tweet, wmw, thursday, to, include\", \"+++ foundation, e, personal, private, general, source, state, 000, york, president<br>--- all, probe, discovered, july, justice, writes, wmw, to, huma, sent\", \"+++ non, journal, years, source, published, industry<br>--- atmosphere, caused, magnetic, all, earth, staff, cell, electricity, writes, wmw\", \"+++ president, office, in, years, team, article, called<br>--- all, tweeted, supporter, staff, certainly, writes, wmw, to, going, 8\", \"+++ and, control, group, government, state, published<br>--- all, wakingtimes, nevada, staff, writes, wmw, to, edward, include, activities\", \"+++ media, times, york, team, years, president, john, george<br>--- all, stephens, sexist, talks, alt, hate, staff, writes, wmw, to\", \"+++ a, 1, in, post, example, special<br>--- all, text, results, children, formating, staff, writes, wmw, state, send\", \"+++ control, activities, office, government, private, order, state, including, members, public<br>--- all, evidence, violation, issued, worked, staff, sheriff, justice, writes, wmw\", \"+++ 1, including<br>--- all, cdc, results, skin, children, staff, access, writes, wmw, 3\", \"+++ real, the, office, years, state, board, line, george<br>--- all, switched, global, results, staff, votes, voter, writes, wmw, to\", \"+++ real, control, personal, work, order, article, making, example<br>--- all, consider, focus, issues, staff, current, based, knowledge, writes, wmw\", \"+++ the, government, media, general, state, policy, president, post, order, called<br>--- all, staff, current, zone, turkish, writes, wmw, to, bush, include\", \"+++ group, office, government, money, work, chief, general, state, 000, york<br>--- all, issues, staff, judges, justice, writes, wmw, to, program, creamer\", \"+++ source, group, years<br>--- all, phenomenon, founder, alien, staff, extraterrestrial, tv, writes, wmw, 0\", \"+++ media, state, support, fact, president<br>--- all, results, democrats, debate, staff, votes, writes, wmw, to, candidates\", \"+++ media, claims, group, government, money, support, million, state, 000, including<br>--- all, particularly, staff, weapons, gulf, writes, wmw, to, include, activities\", \"+++ big, the, order<br>--- all, ron, lack, staff, jay, writes, obamacare, to, include, brown\", \"+++ real, business, government, money, dollars, industry, private, years, fund, state<br>--- sector, all, gold, global, dollar, staff, current, chinese, writes, wmw\", \"+++ a, years, source, team, the, called<br>--- planetary, all, queen, discovered, earth, staff, explain, wmw, to, black\", \"+++ real, and, working, government, far, control, support, years, state, media<br>--- all, global, staff, justice, writes, wmw, to, black, include, activities\", \"+++ chief, times, public, state, claims, the, years, called<br>--- all, shot, allegations, gang, children, staff, suicide, writes, wmw, crime\", \"+++ operations, group, government, support, state, 000, including, the<br>--- all, rebels, qaeda, mosul, battle, soldiers, staff, weapons, turkish, writes\", \"+++ years<br>--- all, shot, children, staff, writes, father, young, to, foster, money\", \"+++ a, the, non, industry, years<br>--- all, founder, children, staff, writes, father, to, include, activities, garden\"], [\"+++ october, force, air, near, minister, military, general<br>--- rtd, chinese, battle, soldiers, tweet, thursday, posted, veterans, hit, regional\", \"+++ day<br>--- rtd, pope, global, souls, battle, earth, fear, religious, knowledge, tweet\", \"+++ m, day<br>--- saying, all, rtd, battle, soldiers, trying, tweet, thursday, going, rss\", \"+++ a, 26, october, 2, november, posted<br>--- rtd, code, battle, follow, trunews, tv, tweet, thursday, 0, rss\", \"+++ force<br>--- rtd, fungal, ginseng, mild, battle, soldiers, tweet, thursday, rss, veterans\", \"+++ town, residents, national, day, wednesday<br>--- rtd, protest, battle, soldiers, tweet, thursday, riots, black, posted, thousands\", \"+++ reported, tweet, p, sources, day, posted<br>--- saying, rtd, battle, soldiers, debate, tv, thursday, rss, veterans, hit\", \"+++ october, army, national, reports, near, indian, thursday, line<br>--- rtd, corps, mile, battle, soldiers, ground, partners, sheriff, tweet, state\", \"+++ national, italy, minister<br>--- rtd, chinese, german, battle, hungary, paris, tweet, thursday, communist, rss\", \"+++ october, reported, 30, p, 2, 5, 4, 6, november, pm<br>--- rtd, global, month, battle, soldiers, tweet, state, thursday, 0, 8\", \"+++ a, line, john, chief, general<br>--- rtd, all, battle, soldiers, staff, writes, wmw, thursday, to, include\", \"+++ rtd, sources, quake, battle, doss, injuries, 26, tweet, thursday, day<br>--- \", \"+++ october, reported, reports, general, sources, john<br>--- rtd, probe, discovered, battle, soldiers, july, staff, justice, tweet, thursday\", \"+++ parts, center, air<br>--- rtd, atmosphere, caused, magnetic, battle, earth, electricity, tweet, thursday, environment\", \"+++ november, j, m, day, wednesday<br>--- rtd, battle, soldiers, tweeted, supporter, certainly, tweet, thursday, going, 8\", \"+++ national, j, present<br>--- rtd, wakingtimes, battle, soldiers, nevada, occupation, tweet, thursday, edward, rss\", \"+++ john, national, october, november<br>--- rtd, stephens, sexist, talks, soldiers, alt, hate, tweet, thursday, bush\", \"+++ a, 2, 5, 4<br>--- rtd, text, results, battle, soldiers, children, formating, tweet, send, earthquake\", \"+++ force, service, district, reported, national, reports, sources<br>--- rtd, evidence, violation, issued, battle, soldiers, sheriff, justice, tweet, thursday\", \"+++ 2, 5, day, 4<br>--- rtd, cdc, results, skin, battle, soldiers, children, tweet, thursday, sugar\", \"+++ reported, line, day, reports, posted<br>--- rtd, switched, global, results, battle, soldiers, votes, voter, tweet, thursday\", \"+++ <br>--- rtd, consider, focus, battle, soldiers, issues, based, knowledge, tweet, thursday\", \"+++ military, force, general<br>--- rtd, battle, soldiers, zone, turkish, tweet, thursday, bush, obama, veterans\", \"+++ national, john, chief, general<br>--- rtd, modi, battle, soldiers, issues, judges, justice, tweet, thursday, program\", \"+++ reported, national, reports, posted<br>--- rtd, phenomenon, founder, alien, battle, soldiers, extraterrestrial, tv, tweet, thursday\", \"+++ november, national, day, moore<br>--- rtd, results, democrats, battle, soldiers, debate, votes, tweet, thursday, won\", \"+++ john, center<br>--- rtd, particularly, battle, soldiers, gulf, tweet, thursday, posted, veterans, hit\", \"+++ air, service, vice<br>--- rtd, ron, lack, battle, soldiers, jay, tweet, obamacare, thursday, rss\", \"+++ major, central<br>--- sector, rtd, gold, global, dollar, battle, soldiers, chinese, tweet, thursday\", \"+++ a, near, 2, 5<br>--- planetary, rtd, queen, discovered, battle, soldiers, explain, thursday, black, posted\", \"+++ military, national<br>--- rtd, modi, global, battle, soldiers, justice, tweet, thursday, black, posted\", \"+++ reported, chief, killed, reports, officer<br>--- rtd, shot, allegations, gang, battle, soldiers, children, suicide, tweet, thursday\", \"+++ october, army, reports, air, minister, military, battle, soldiers, killed<br>--- rtd, rebels, qaeda, mosul, turkish, tweet, daesh, thursday, iraqi, terror\", \"+++ october, service, car, hospital, 6, hours, night, november, day, posted<br>--- rtd, shot, battle, soldiers, children, tweet, father, young, thursday, foster\", \"+++ a, national<br>--- rtd, founder, battle, soldiers, children, tweet, father, thursday, posted, veterans\"], [\"+++ use, october, washington, according, long, general, officials, president, news, the<br>--- chinese, probe, discovered, staff, justice, huma, sent, regional, coast, joint\", \"+++ source, state, the, long<br>--- pope, global, souls, discovered, earth, fear, religious, staff, knowledge, justice\", \"+++ i, know, long<br>--- saying, all, probe, discovered, staff, trying, justice, going, huma, sent\", \"+++ information, account, october, e, use, related, source, news, email<br>--- code, probe, discovered, follow, trunews, staff, tv, 0, huma, sent\", \"+++ 2015, source, state, campaign<br>--- fungal, ginseng, probe, discovered, mild, staff, justice, huma, sent, ingredient\", \"+++ the, state, 000, according<br>--- evidence, probe, discovered, protest, staff, justice, riots, black, huma, thousands\", \"+++ information, account, released, campaign, reported, sources, york, news, the, public<br>--- saying, probe, discovered, debate, staff, tv, tweet, huma, sent, mainstream\", \"+++ october, according, private, state, reports, department, news<br>--- corps, probe, discovered, mile, line, ground, partners, sheriff, justice, thursday\", \"+++ news, the, public<br>--- chinese, german, probe, discovered, hungary, staff, paris, communist, huma, hrc\", \"+++ october, according, reported, state, 000, 2015, news, the<br>--- global, month, discovered, staff, justice, 0, 8, huma, oct, sent\", \"+++ foundation, e, personal, private, general, source, state, 000, york, president<br>--- all, probe, discovered, july, justice, writes, wmw, to, huma, sent\", \"+++ october, reported, reports, general, sources, john<br>--- rtd, probe, discovered, battle, soldiers, july, staff, justice, tweet, thursday\", \"+++ laptop, probe, discovered, sources, questions, staff, announcement, justice, source, according<br>--- \", \"+++ source, use, according, long<br>--- atmosphere, caused, magnetic, probe, discovered, earth, staff, electricity, environment, huma\", \"+++ clinton, campaign, i, house, washington, days, long, mrs, hillary, election<br>--- probe, discovered, tweeted, supporter, staff, certainly, justice, going, 8, huma\", \"+++ state, long, announced<br>--- wakingtimes, probe, discovered, nevada, staff, justice, edward, huma, sent, torture\", \"+++ case, october, house, evidence, investigation, york, president, news, john<br>--- stephens, probe, sexist, discovered, talks, alt, hate, staff, justice, bush\", \"+++ i, use<br>--- text, probe, results, discovered, children, formating, staff, justice, 3, send\", \"+++ case, information, attorney, reported, justice, decision, use, according, reports, evidence<br>--- agency, allowed, letter, office, violation, issued, laptop, probe, washington, actions\", \"+++ use<br>--- cdc, probe, results, discovered, skin, children, staff, justice, 3, sugar\", \"+++ i, official, political, according, reports, evidence, reported, state, officials, election<br>--- switched, global, results, discovered, july, staff, votes, voter, justice, going\", \"+++ personal, information, use, long<br>--- consider, probe, focus, discovered, issues, staff, based, knowledge, justice, committee\", \"+++ clinton, political, influence, washington, hillary, general, state, president, the, presidential<br>--- probe, discovered, staff, zone, turkish, justice, bush, huma, sent, fly\", \"+++ attorney, congress, campaign, justice, house, decision, washington, i, general, director<br>--- probe, discovered, issues, staff, judges, program, creamer, huma, congressional, cuba\", \"+++ case, information, official, source, classified, according, reports, evidence, reported, documents<br>--- phenomenon, founder, probe, alien, staff, extraterrestrial, tv, 0, huma, sent\", \"+++ president, democratic, clinton, campaign, house, washington, according, political, state, election<br>--- probe, results, discovered, democrats, debate, staff, votes, justice, candidates, huma\", \"+++ campaign, political, evidence, state, 000, 2015, wikileaks, john<br>--- particularly, probe, discovered, staff, gulf, justice, huma, sent, lynch, despite\", \"+++ house, the, long, news<br>--- ron, lack, discovered, staff, jay, justice, obamacare, huma, sent, brown\", \"+++ news, state, long, private<br>--- sector, gold, global, dollar, discovered, staff, chinese, justice, treasury, huma\", \"+++ according, long, evidence, discovered, source, the<br>--- planetary, queen, earth, staff, justice, explain, black, huma, sent, probe\", \"+++ justice, political, long, corruption, state, president, the, democratic, public<br>--- global, discovered, staff, black, huma, sent, probe, agents, mainstream, far\", \"+++ case, attorney, officials, according, reports, evidence, reported, state, investigation, department<br>--- shot, probe, allegations, discovered, gang, children, staff, suicide, justice, committee\", \"+++ october, campaign, according, reports, state, 000, the<br>--- rebels, probe, discovered, qaeda, mosul, battle, soldiers, staff, turkish, justice\", \"+++ house, october, husband, told<br>--- shot, probe, discovered, children, staff, justice, father, young, foster, huma\", \"+++ use, the, related<br>--- founder, probe, discovered, children, staff, justice, father, olympics, huma, sent\"], [\"+++ use, according, however, long, air<br>--- atmosphere, chinese, caused, magnetic, earth, weapons, electricity, environment, risk, regional\", \"+++ body, natural, power, nature, light, energy, long, source, human, earth<br>--- atmosphere, pope, caused, magnetic, global, souls, fear, moon, religious, knowledge\", \"+++ long, years<br>--- saying, all, caused, magnetic, atmosphere, earth, trying, electricity, environment, going\", \"+++ device, source, use, published<br>--- atmosphere, code, caused, magnetic, follow, trunews, cell, tv, environment, 0\", \"+++ source, cells, health<br>--- atmosphere, fungal, ginseng, caused, magnetic, mild, hai, earth, electricity, environment\", \"+++ food, non, california, according<br>--- atmosphere, set, caused, magnetic, protest, earth, electricity, riots, black, thousands\", \"+++ published<br>--- saying, atmosphere, caused, magnetic, earth, debate, tv, tweet, environment, risk\", \"+++ area, energy, gas, according, water, environmental, clean<br>--- atmosphere, corps, caused, magnetic, mile, earth, ground, partners, sheriff, electricity\", \"+++ known, similar<br>--- atmosphere, chinese, german, caused, magnetic, hungary, paris, environment, communist, risk\", \"+++ low, high, study, according, years<br>--- atmosphere, caused, magnetic, global, month, earth, electricity, state, environment, 0\", \"+++ non, industry, years, source, published, journal<br>--- all, caused, magnetic, atmosphere, earth, staff, cell, electricity, writes, wmw\", \"+++ parts, center, air<br>--- rtd, atmosphere, caused, magnetic, battle, earth, electricity, tweet, thursday, environment\", \"+++ source, use, according, long<br>--- atmosphere, caused, magnetic, probe, discovered, earth, staff, justice, environment, huma\", \"+++ atmosphere, stores, caused, magnetic, years, human, earth, speed, electricity, environment<br>--- \", \"+++ long, years<br>--- atmosphere, caused, magnetic, earth, tweeted, supporter, certainly, electricity, environment, going\", \"+++ natural, gas, long, power, published<br>--- atmosphere, caused, wakingtimes, earth, nevada, occupation, electricity, environment, edward, keystone\", \"+++ however, johnson, years<br>--- atmosphere, stephens, caused, magnetic, sexist, talks, earth, alt, hate, electricity\", \"+++ university, dr, use<br>--- atmosphere, text, magnetic, results, earth, children, formating, electricity, send, environment\", \"+++ high, field, use, however, according<br>--- atmosphere, violation, issued, magnetic, earth, sheriff, justice, crime, environment, going\", \"+++ body, high, use, natural, risk, food, dr, study, studies, plant<br>--- atmosphere, cdc, caused, magnetic, results, skin, earth, children, cell, animal\", \"+++ similar, according, years<br>--- atmosphere, switched, caused, magnetic, global, results, earth, votes, voter, electricity\", \"+++ use, power, however, long, human, technology<br>--- atmosphere, consider, caused, magnetic, focus, earth, creative, issues, current, based\", \"+++ power<br>--- atmosphere, caused, magnetic, earth, current, zone, turkish, electricity, environment, bush\", \"+++ california, health<br>--- atmosphere, caused, magnetic, produce, stores, issues, judges, justice, environment, program\", \"+++ scientific, source, according, research, lights, health, scientists, years, dr<br>--- atmosphere, phenomenon, founder, caused, magnetic, alien, earth, tv, environment, 0\", \"+++ according, lead<br>--- atmosphere, caused, magnetic, results, democrats, earth, debate, votes, favor, electricity\", \"+++ center, human, published<br>--- atmosphere, particularly, caused, magnetic, produce, earth, weapons, gulf, electricity, environment\", \"+++ health, long, lead, air<br>--- atmosphere, ron, caused, magnetic, lack, produce, earth, jay, electricity, obamacare\", \"+++ high, lower, industry, long, years, large, products, low<br>--- sector, atmosphere, gold, caused, magnetic, global, dollar, prices, earth, current\", \"+++ blue, field, light, area, science, university, however, long, years, source<br>--- planetary, atmosphere, caused, magnetic, queen, produce, discovered, electricity, explain, environment\", \"+++ mass, long, power, years<br>--- atmosphere, caused, magnetic, global, earth, justice, environment, black, mainstream, far\", \"+++ according, years<br>--- atmosphere, shot, caused, magnetic, allegations, gang, earth, children, suicide, electricity\", \"+++ air, according, area<br>--- atmosphere, rebels, caused, magnetic, qaeda, mosul, battle, soldiers, weapons, turkish\", \"+++ years<br>--- atmosphere, shot, caused, magnetic, earth, children, electricity, father, young, environment\", \"+++ non, scientific, science, industry, use, years, california, human, growing, study<br>--- atmosphere, founder, caused, magnetic, baby, earth, children, electricity, father, environment\"], [\"+++ united, country, washington, possible, long, states, anti, president, world<br>--- chinese, tweeted, supporter, certainly, going, 8, obama, hope, regional, coast\", \"+++ great, right, long, called, world, man, day, today, history<br>--- pope, global, souls, earth, fear, tweeted, religious, supporter, certainly, office\", \"+++ again, great, right, says, i, things, this, country, m, long<br>--- saying, all, tweeted, supporter, certainly, trying, 8, hope, do, stop\", \"+++ 10, november, share, today<br>--- code, follow, tweeted, trunews, certainly, tv, 0, going, 8, he\", \"+++ 10, campaign<br>--- fungal, ginseng, mild, tweeted, supporter, certainly, going, 8, rahul, hope\", \"+++ in, country, violence, wednesday, nation, anti, team, following, america, day<br>--- protest, tweeted, supporter, certainly, riots, going, black, 8, obama, thousands\", \"+++ article, share, anti, day, campaign<br>--- saying, tweeted, debate, certainly, tv, tweet, going, 8, he, hope\", \"+++ states, americans, american, months, says<br>--- corps, mile, tweeted, supporter, ground, partners, certainly, sheriff, state, thursday\", \"+++ great, united, says, country, states, world, called, today, history<br>--- chinese, german, hungary, tweeted, supporter, certainly, paris, going, 8, communist\", \"+++ 11, 10, says, year, years, likely, world, 9, 8, november<br>--- global, month, tweeted, supporter, certainly, state, 0, going, he, oct\", \"+++ president, office, in, years, team, article, called<br>--- all, tweeted, supporter, staff, certainly, writes, wmw, to, going, 8\", \"+++ november, j, m, day, wednesday<br>--- rtd, battle, soldiers, tweeted, supporter, certainly, tweet, thursday, going, 8\", \"+++ clinton, campaign, i, house, washington, days, long, mrs, hillary, election<br>--- probe, discovered, tweeted, supporter, staff, certainly, justice, going, 8, huma\", \"+++ long, years<br>--- atmosphere, caused, magnetic, earth, tweeted, supporter, certainly, electricity, environment, going\", \"+++ office, years, course, clinton, tweeted, supporter, certainly, candidate, him, civil<br>--- \", \"+++ 11, j, long, american, year, history<br>--- wakingtimes, nevada, supporter, occupation, certainly, edward, 8, he, hope, torture\", \"+++ 11, house, team, years, american, mr, 9, president, november, man<br>--- stephens, sexist, talks, alt, tweeted, hate, supporter, certainly, bush, going\", \"+++ i, 10, american, in<br>--- text, results, tweeted, children, formating, certainly, send, going, 8, obama\", \"+++ office, civil, mr, states, matter, going, year<br>--- violation, issued, tweeted, supporter, certainly, sheriff, justice, crime, 8, he\", \"+++ great, anti, day<br>--- cdc, results, skin, tweeted, children, certainly, sugar, going, helps, 8\", \"+++ right, says, office, i, win, political, years, states, going, election<br>--- switched, global, results, tweeted, supporter, votes, voter, tape, voted, obama\", \"+++ things, possible, long, matter, article, world, today<br>--- consider, focus, tweeted, supporter, issues, certainly, based, knowledge, going, 8\", \"+++ united, clinton, country, washington, hillary, states, course, american, president, world<br>--- tweeted, supporter, certainly, zone, turkish, bush, going, 8, hope, tanks\", \"+++ right, campaign, office, i, house, year, washington, nation, states, elected<br>--- tweeted, supporter, issues, judges, justice, program, creamer, 8, hope, cuba\", \"+++ world, history, event, years<br>--- phenomenon, founder, alien, tweeted, supporter, certainly, extraterrestrial, tv, 0, going\", \"+++ clinton, trump, campaign, house, washington, states, likely, americans, election, vote<br>--- things, megyn, point, numbers, tuesday, matter, results, america, years, seen\", \"+++ united, campaign, country, political, states, american, year, 9, world, called<br>--- particularly, tweeted, supporter, certainly, gulf, going, 8, obama, hope, despite\", \"+++ right, house, long, sign, americans, joe, white, obama<br>--- ron, lack, tweeted, supporter, certainly, jay, obamacare, going, 8, hope\", \"+++ wall, world, year, long, years<br>--- sector, gold, global, dollar, tweeted, supporter, certainly, chinese, going, treasury\", \"+++ star, long, event, team, seen, hollywood, years, called, left<br>--- planetary, queen, discovered, earth, tweeted, supporter, certainly, explain, going, black\", \"+++ right, left, anti, civil, country, political, long, nation, states, course<br>--- global, tweeted, supporter, certainly, justice, going, black, 8, obama, hope\", \"+++ year, called, man, years<br>--- shot, allegations, gang, tweeted, children, certainly, suicide, crime, going, black\", \"+++ campaign<br>--- rebels, qaeda, mosul, battle, soldiers, tweeted, supporter, certainly, turkish, daesh\", \"+++ says, left, house, share, day, year, november, years, him, man<br>--- shot, tweeted, children, certainly, father, young, foster, 8, he, local\", \"+++ states, years<br>--- founder, tweeted, children, certainly, father, going, 8, obama, hope, 11\"], [\"+++ group, government, long, defense, u, security<br>--- chinese, wakingtimes, nevada, occupation, edward, cooperation, torture, regional, bear, coast\", \"+++ control, death, natural, power, secret, long, state, land, free, instead<br>--- pope, wakingtimes, global, souls, earth, fear, nevada, religious, occupation, knowledge\", \"+++ and, long<br>--- saying, all, wakingtimes, nevada, occupation, trying, going, bundy, do, torture\", \"+++ co, published<br>--- code, wakingtimes, follow, nevada, trunews, occupation, tv, 0, edward, bundy\", \"+++ and, state, free<br>--- fungal, ginseng, wakingtimes, mild, nevada, occupation, tass, edward, health, bundy\", \"+++ group, government, national, surveillance, state, security, armed<br>--- wakingtimes, protest, nevada, occupation, riots, tass, edward, black, thousands, protestors\", \"+++ conspiracy, published<br>--- saying, wakingtimes, nevada, debate, occupation, tv, tweet, edward, bundy, mainstream\", \"+++ pipeline, oil, protect, national, gas, state, american, land, u<br>--- corps, wakingtimes, mile, nevada, ground, partners, sheriff, thursday, wood, local\", \"+++ and, death, government, national, later, history<br>--- chinese, german, wakingtimes, defendant, hungary, nevada, occupation, paris, edward, communist\", \"+++ 11, state, u, year<br>--- wakingtimes, global, month, nevada, occupation, 0, edward, 8, posted, oct\", \"+++ control, and, group, government, state, published<br>--- all, wakingtimes, nevada, staff, writes, wmw, to, edward, include, activities\", \"+++ national, j, present<br>--- rtd, wakingtimes, battle, soldiers, nevada, occupation, tweet, thursday, edward, posted\", \"+++ state, long, announced<br>--- wakingtimes, probe, discovered, nevada, staff, justice, tass, edward, huma, sent\", \"+++ natural, gas, long, power, published<br>--- atmosphere, caused, magnetic, earth, nevada, occupation, electricity, environment, edward, health\", \"+++ 11, j, long, american, year, history<br>--- wakingtimes, tweeted, supporter, occupation, certainly, going, 8, obama, hope, torture\", \"+++ coup, wakingtimes, nevada, warren, death, group, assassination, edward, texas, torture<br>--- \", \"+++ 11, national, later, american, secret, u, history<br>--- stephens, wakingtimes, sexist, talks, alt, nevada, hate, occupation, bush, edward\", \"+++ american<br>--- text, wakingtimes, results, nevada, children, formating, occupation, state, send, edward\", \"+++ control, agency, jury, government, federal, national, secret, agencies, trial, state<br>--- violation, issued, wakingtimes, nevada, occupation, sheriff, justice, crime, edward, local\", \"+++ oil, natural<br>--- cdc, wakingtimes, results, skin, nevada, children, occupation, 3, sugar, edward\", \"+++ state, u, texas<br>--- switched, wakingtimes, global, results, nevada, occupation, votes, voter, tass, edward\", \"+++ control, long, free, power, face<br>--- consider, wakingtimes, focus, nevada, issues, occupation, based, knowledge, edward, torture\", \"+++ interests, coup, cia, power, government, intelligence, american, state, u, security<br>--- wakingtimes, nevada, occupation, zone, turkish, bush, edward, bundy, torture, bear\", \"+++ group, government, federal, national, american, state, defense, u, year, security<br>--- wakingtimes, nevada, issues, occupation, judges, justice, program, creamer, health, bundy\", \"+++ agency, group, intelligence, national, later, secret, nsa, history<br>--- phenomenon, founder, wakingtimes, alien, nevada, occupation, extraterrestrial, tv, 0, edward\", \"+++ american, national, state<br>--- wakingtimes, results, democrats, nevada, debate, occupation, votes, tass, edward, candidates\", \"+++ oil, group, government, intelligence, published, american, state, u, year<br>--- particularly, wakingtimes, nevada, occupation, gulf, edward, torture, bear, cheaper, despite\", \"+++ long, free, ryan<br>--- ron, wakingtimes, lack, nevada, occupation, jay, obamacare, edward, health, bundy\", \"+++ oil, government, federal, long, state, u, free, year<br>--- sector, gold, wakingtimes, global, dollar, nevada, occupation, chinese, edward, treasury\", \"+++ long<br>--- planetary, wakingtimes, queen, discovered, earth, nevada, occupation, explain, edward, black\", \"+++ and, interests, power, government, control, national, american, free, state, u<br>--- wakingtimes, global, nevada, occupation, justice, tass, edward, black, mainstream, torture\", \"+++ state, death, later, year<br>--- shot, wakingtimes, allegations, gang, nevada, children, occupation, suicide, crime, edward\", \"+++ armed, security, group, state, government<br>--- rebels, wakingtimes, qaeda, mosul, battle, soldiers, nevada, occupation, turkish, iraqi\", \"+++ face, later, year<br>--- shot, wakingtimes, nevada, children, occupation, father, young, foster, bundy, local\", \"+++ national, death<br>--- founder, wakingtimes, nevada, children, occupation, father, tass, edward, 11, garden\"], [\"+++ october, iran, peace, however, u, president, news, war, south<br>--- chinese, sexist, talks, alt, hate, stephens, finally, black, case, regional\", \"+++ peace, times, secret, race, truth, man, book, history<br>--- pope, global, souls, sexist, talks, earth, fear, religious, stephens, bush\", \"+++ didn, good, years<br>--- saying, all, stephens, sexist, talks, alt, hate, finally, bush, going\", \"+++ news, november, october, com<br>--- code, stephens, sexist, talks, follow, alt, hate, trunews, tv, 0\", \"+++ com<br>--- fungal, stephens, ginseng, sexist, mild, talks, alt, hate, finally, black\", \"+++ national, peace, black, george, team<br>--- stephens, sexist, protest, talks, alt, hate, riots, finally, thousands, protestors\", \"+++ story, media, times, stories, york, truth, news<br>--- saying, stephens, sexist, talks, alt, hate, debate, tv, tweet, bush\", \"+++ october, national, american, u, news, south<br>--- corps, sexist, mile, talks, alt, hate, ground, partners, stephens, sheriff\", \"+++ news, national, later, war, history<br>--- chinese, german, sexist, talks, hungary, alt, hate, finally, stephens, paris\", \"+++ 11, october, times, u, half, 9, news, november, years, south<br>--- stephens, global, sexist, month, talks, alt, hate, finally, state, 0\", \"+++ media, times, york, team, years, president, john, george<br>--- all, stephens, sexist, talks, alt, hate, staff, finally, writes, wmw\", \"+++ national, john, november, october<br>--- rtd, stephens, sexist, battle, soldiers, alt, hate, tweet, thursday, bush\", \"+++ case, october, house, evidence, investigation, york, president, news, john<br>--- stephens, probe, sexist, discovered, talks, alt, hate, staff, justice, bush\", \"+++ however, johnson, years<br>--- atmosphere, stephens, caused, magnetic, sexist, talks, earth, alt, hate, electricity\", \"+++ 11, house, mr, years, american, team, 9, president, november, man<br>--- stephens, sexist, talks, alt, tweeted, hate, supporter, certainly, finally, bush\", \"+++ 11, national, later, american, secret, u, history<br>--- stephens, wakingtimes, sexist, talks, alt, nevada, hate, occupation, bush, edward\", \"+++ bush, stephens, sexist, years, talks, scalia, alt, hate, finally, black<br>--- \", \"+++ american, clear<br>--- stephens, text, results, sexist, talks, alt, hate, children, formating, send\", \"+++ case, national, however, evidence, secret, mr, clear<br>--- stephens, violation, issued, sexist, talks, alt, hate, sheriff, justice, crime\", \"+++ <br>--- stephens, cdc, results, sexist, skin, talks, alt, hate, children, sugar\", \"+++ florida, evidence, u, news, years, george<br>--- stephens, switched, global, results, sexist, talks, alt, hate, votes, voter\", \"+++ clear, good, however<br>--- consider, stephens, focus, sexist, talks, alt, hate, issues, based, knowledge\", \"+++ iran, media, clear, american, bush, u, president, war<br>--- stephens, sexist, talks, alt, hate, zone, turkish, finally, black, fly\", \"+++ house, national, american, u, york, president, white, john<br>--- stephens, sexist, talks, alt, hate, issues, judges, justice, bush, program\", \"+++ case, national, later, years, secret, evidence, history<br>--- phenomenon, founder, sexist, alien, talks, alt, hate, finally, stephens, extraterrestrial\", \"+++ president, house, national, florida, american, race, media, news, november, white<br>--- stephens, results, sexist, democrats, talks, alt, hate, debate, votes, bush\", \"+++ media, arms, evidence, american, u, 9, john, war<br>--- particularly, stephens, sexist, talks, alt, hate, gulf, bush, black, case\", \"+++ brown, news, cover, white, house<br>--- ron, lack, sexist, talks, alt, hate, stephens, jay, obamacare, bush\", \"+++ news, u, years<br>--- sector, gold, global, dollar, sexist, talks, alt, hate, chinese, bush\", \"+++ however, evidence, black, team, years, south<br>--- planetary, stephens, queen, sexist, discovered, talks, earth, alt, hate, finally\", \"+++ media, national, peace, years, american, u, president, black, white, war<br>--- stephens, global, sexist, talks, alt, hate, finally, justice, bush, case\", \"+++ case, story, evidence, later, cover, times, investigation, black, news, years<br>--- shot, stephens, allegations, sexist, gang, talks, alt, hate, children, suicide\", \"+++ october, iran, war<br>--- rebels, stephens, sexist, qaeda, mosul, battle, soldiers, alt, hate, turkish\", \"+++ story, october, house, later, years, november, man<br>--- shot, stephens, sexist, talks, alt, hate, children, finally, father, young\", \"+++ national, book, years<br>--- founder, sexist, talks, alt, hate, children, finally, stephens, father, bush\"], [\"+++ use<br>--- chinese, text, results, children, formating, appears, send, meant, regional, coast\", \"+++ culture, live<br>--- pope, text, global, souls, earth, fear, religious, children, formating, knowledge\", \"+++ what, sure, want, i, better, start, live, way, in, need<br>--- saying, all, text, results, children, formating, trying, send, going, meant\", \"+++ comment, 10, use, help, 1, 2, link, a, address, post<br>--- code, text, results, follow, trunews, formating, tv, send, 0, meant\", \"+++ 10<br>--- fungal, ginseng, text, results, mild, children, formating, state, send, ingredient\", \"+++ community, in<br>--- text, results, protest, children, formating, state, send, riots, black, thousands\", \"+++ comment, post<br>--- saying, text, results, debate, formating, tv, tweet, send, hall, meant\", \"+++ 3, american, native<br>--- corps, text, results, mile, children, formating, ground, partners, sheriff, send\", \"+++ jewish, jews, english<br>--- chinese, german, text, results, hungary, children, formating, paris, send, communist\", \"+++ 10, 1, 3, 2, 5, 4<br>--- text, global, results, month, children, formating, send, 0, 8, posted\", \"+++ a, 1, in, post, example, special<br>--- all, text, results, children, formating, staff, writes, wmw, state, send\", \"+++ a, 2, 5, 4<br>--- rtd, text, results, battle, soldiers, children, formating, tweet, send, earthquake\", \"+++ i, use<br>--- text, probe, results, discovered, children, formating, staff, justice, state, send\", \"+++ university, dr, use<br>--- atmosphere, caused, magnetic, results, earth, children, formating, electricity, send, environment\", \"+++ i, 10, american, in<br>--- text, results, tweeted, children, formating, certainly, send, going, 8, obama\", \"+++ american<br>--- text, wakingtimes, results, nevada, children, formating, occupation, 3, send, edward\", \"+++ american, clear<br>--- stephens, text, results, sexist, talks, alt, hate, children, formating, send\", \"+++ help, text, results, thanks, children, formating, write, character, send, writing<br>--- \", \"+++ use, clear<br>--- violation, issued, results, children, formating, sheriff, justice, state, send, crime\", \"+++ use, help, results, 1, 3, 2, 5, 4, dr, children<br>--- cdc, text, skin, milk, formating, send, sugar, helps, meant, risk\", \"+++ sure, jewish, results, i, college, think<br>--- switched, text, global, children, formating, votes, voter, state, send, going\", \"+++ use, help, clear, needs, community, better, way, need, example<br>--- consider, text, focus, children, issues, based, knowledge, send, meant, means\", \"+++ clear, post, american, think<br>--- text, results, children, formating, zone, turkish, state, send, bush, meant\", \"+++ i, american, effort, policies<br>--- text, results, children, issues, judges, justice, state, send, program, creamer\", \"+++ dr<br>--- phenomenon, founder, text, results, alien, children, formating, extraterrestrial, tv, send\", \"+++ american, college, results<br>--- text, democrats, debate, formating, votes, state, send, won, candidates, carolina\", \"+++ american<br>--- particularly, text, results, children, formating, gulf, 3, send, meant, despite\", \"+++ needs, live, sure, help, takes<br>--- ron, text, lack, results, children, formating, jay, obamacare, send, meant\", \"+++ <br>--- sector, gold, text, global, dollar, results, children, formating, chinese, 3\", \"+++ a, university, 2, 5, appears<br>--- planetary, text, queen, results, discovered, earth, children, formating, explain, send\", \"+++ american, policies, way<br>--- text, global, results, children, formating, justice, 3, send, black, meant\", \"+++ children<br>--- shot, text, allegations, results, gang, formating, suicide, state, send, crime\", \"+++ jewish<br>--- rebels, text, results, qaeda, mosul, battle, soldiers, children, formating, turkish\", \"+++ school, help, children<br>--- shot, text, results, formating, father, young, send, foster, local, meant\", \"+++ a, use, parents, children<br>--- founder, text, results, formating, 95, father, send, meant, garden, emphasized\"], [\"+++ use, force, government, however, according, states, officials, including, close, security<br>--- chinese, violation, issued, sheriff, justice, crime, going, local, activities, means\", \"+++ control, state, secret, order<br>--- pope, violation, issued, global, souls, earth, fear, religious, office, sheriff\", \"+++ going<br>--- saying, all, violation, issued, trying, sheriff, justice, crime, local, do\", \"+++ information, phone, search, use, at<br>--- code, violation, issued, comments, follow, trunews, sheriff, tv, crime, 0\", \"+++ state, force<br>--- vitamins, fungal, ginseng, issued, mild, sheriff, justice, crime, violation, going\", \"+++ police, government, national, rights, according, state, members, authorities, security, local<br>--- evidence, violation, issued, protest, sheriff, justice, crime, riots, going, black\", \"+++ information, sources, reported, public, told<br>--- saying, violation, issued, debate, sheriff, tv, tweet, crime, going, local\", \"+++ enforcement, police, sheriff, rights, national, arrested, according, reports, county, state<br>--- corps, violation, issued, mile, ground, partners, justice, thursday, crime, wood\", \"+++ states, national, citizens, public, government<br>--- chinese, german, issued, hungary, sheriff, paris, crime, violation, going, communist\", \"+++ high, reported, state, according, year<br>--- violation, issued, global, month, sheriff, justice, crime, 0, going, 8\", \"+++ control, activities, office, government, private, order, state, including, members, public<br>--- all, violation, issued, cases, staff, sheriff, justice, writes, wmw, crime\", \"+++ force, service, district, reported, national, reports, sources<br>--- rtd, evidence, violation, issued, battle, soldiers, sheriff, justice, tweet, thursday\", \"+++ case, information, attorney, reported, justice, decision, use, according, reports, evidence<br>--- violation, issued, probe, discovered, staff, sheriff, crime, going, huma, local\", \"+++ high, field, use, however, according<br>--- atmosphere, violation, caused, magnetic, earth, sheriff, electricity, crime, environment, going\", \"+++ office, civil, year, states, matter, going, mr<br>--- violation, issued, tweeted, supporter, certainly, sheriff, justice, crime, 8, obama\", \"+++ control, agency, jury, government, federal, national, secret, agencies, trial, state<br>--- violation, issued, wakingtimes, nevada, occupation, sheriff, justice, crime, edward, local\", \"+++ case, national, however, evidence, secret, mr, clear<br>--- stephens, violation, issued, sexist, talks, alt, hate, sheriff, justice, crime\", \"+++ clear, use<br>--- evidence, violation, text, results, children, formating, sheriff, justice, state, send\", \"+++ agency, office, violation, issued, actions, sources, including, police, sheriff, justice<br>--- \", \"+++ high, use, including, cases<br>--- cdc, violation, issued, doctors, results, skin, children, sheriff, justice, 3\", \"+++ states, officials, office, according, reports, evidence, county, reported, state, going<br>--- switched, violation, issued, global, results, comments, votes, voter, sheriff, justice\", \"+++ control, information, use, means, clear, however, matter, order<br>--- consider, violation, issued, focus, issues, based, knowledge, sheriff, justice, crime\", \"+++ force, government, clear, states, state, security, order<br>--- evidence, violation, issued, zone, turkish, justice, crime, bush, going, local\", \"+++ attorney, office, national, states, year, court, constitution, justice, illegal, decision<br>--- evidence, violation, issued, issues, judges, sheriff, crime, program, creamer, local\", \"+++ case, information, national, agency, according, reports, evidence, reported, secret, told<br>--- phenomenon, founder, violation, issued, alien, sheriff, extraterrestrial, tv, crime, 0\", \"+++ states, national, according, state, told<br>--- violation, issued, results, democrats, debate, votes, sheriff, justice, crime, going\", \"+++ rights, government, crimes, evidence, states, state, including, year<br>--- particularly, violation, issued, publish, gulf, justice, crime, going, pay, local\", \"+++ phone, order, service<br>--- ron, violation, issued, lack, sheriff, jay, justice, obamacare, crime, going\", \"+++ government, federal, pay, private, high, state, year<br>--- sector, gold, violation, issued, global, dollar, chinese, sheriff, justice, crime\", \"+++ field, evidence, however, according<br>--- planetary, violation, issued, queen, discovered, earth, sheriff, justice, explain, crime\", \"+++ control, rights, government, justice, national, citizens, order, states, civil, state<br>--- violation, issued, global, sheriff, crime, going, black, local, activities, mainstream\", \"+++ attorney, crimes, evidence, officials, year, police, crime, state, prison, department<br>--- shot, violation, issued, allegations, gang, children, suicide, sheriff, justice, going\", \"+++ government, according, reports, state, including, security<br>--- rebels, violation, issued, qaeda, mosul, battle, soldiers, sheriff, turkish, justice\", \"+++ told, local, gun, service, year<br>--- shot, violation, issued, children, sheriff, justice, father, young, crime, foster\", \"+++ states, national, use, drug<br>--- founder, violation, issued, children, sheriff, justice, father, crime, going, local\"], [\"+++ anti, use, including<br>--- chinese, cdc, results, skin, children, weapons, sugar, helps, risk, regional\", \"+++ body, heart, great, natural, day<br>--- pope, cdc, global, souls, skin, earth, fear, moon, religious, milk\", \"+++ great, day, best, d<br>--- saying, all, cdc, results, skin, children, trying, sugar, going, helps\", \"+++ 1, use, 2, help<br>--- code, cdc, results, skin, follow, trunews, access, tv, sugar, 0\", \"+++ brain, health<br>--- fungal, cdc, ginseng, results, mild, skin, children, content, state, sugar\", \"+++ food, anti, day<br>--- cdc, results, protest, skin, milk, state, sugar, riots, black, helps\", \"+++ anti, day<br>--- saying, cdc, results, skin, debate, tv, tweet, sugar, helps, posted\", \"+++ water, 3, oil<br>--- corps, cdc, results, mile, skin, children, ground, partners, sheriff, thursday\", \"+++ known, great, women<br>--- chinese, cdc, german, results, skin, hungary, children, paris, sugar, helps\", \"+++ high, study, increase, 3, 2, 5, 4, 1, day, low<br>--- cdc, global, results, month, skin, milk, sugar, 0, helps, 8\", \"+++ 1, including<br>--- all, cdc, results, skin, milk, staff, access, writes, wmw, 3\", \"+++ 2, 5, day, 4<br>--- rtd, cdc, results, skin, battle, soldiers, children, tweet, thursday, sugar\", \"+++ use<br>--- cdc, probe, results, discovered, skin, children, staff, justice, 3, sugar\", \"+++ body, high, use, natural, risk, food, cause, study, studies, plant<br>--- atmosphere, cdc, caused, magnetic, results, skin, earth, children, cell, animal\", \"+++ great, anti, day<br>--- cdc, results, skin, tweeted, children, certainly, sugar, going, helps, 8\", \"+++ oil, natural<br>--- refuge, cdc, wakingtimes, results, skin, nevada, children, occupation, 3, sugar\", \"+++ <br>--- stephens, cdc, results, sexist, skin, talks, alt, hate, children, sugar\", \"+++ use, help, results, 1, 3, 2, 5, 4, dr, children<br>--- cdc, text, skin, milk, formating, send, sugar, helps, meant, risk\", \"+++ high, use, including, cases<br>--- cdc, violation, issued, filed, results, skin, children, sheriff, justice, state\", \"+++ help, cdc, results, brain, including, skin, research, children, increase, cup<br>--- \", \"+++ d, results, day<br>--- switched, global, skin, children, votes, voter, cdc, state, sugar, going\", \"+++ use, important, help, best, common<br>--- consider, cdc, focus, skin, creative, milk, issues, current, based, knowledge\", \"+++ <br>--- cdc, results, skin, children, current, zone, turkish, 3, sugar, bush\", \"+++ health, d<br>--- cdc, results, skin, children, issues, judges, justice, state, sugar, program\", \"+++ health, dr, research<br>--- phenomenon, founder, cdc, results, alien, skin, milk, extraterrestrial, tv, sugar\", \"+++ results, day<br>--- cdc, democrats, skin, children, votes, state, sugar, candidates, helps, obama\", \"+++ oil, including<br>--- particularly, cdc, results, skin, children, weapons, gulf, 3, sugar, helps\", \"+++ tea, health, help, best, d<br>--- ron, cdc, lack, results, skin, children, jay, obamacare, sugar, helps\", \"+++ increase, high, oil, products, low<br>--- sector, gold, cdc, global, dollar, results, prices, skin, milk, current\", \"+++ known, science, study, 2, 5<br>--- planetary, cdc, queen, results, discovered, skin, earth, milk, explain, sugar\", \"+++ anti<br>--- cdc, global, results, skin, milk, justice, 3, sugar, black, helps\", \"+++ medical, cases, children<br>--- shot, cdc, filed, allegations, results, gang, skin, milk, suicide, state\", \"+++ including<br>--- rebels, cdc, results, qaeda, mosul, skin, battle, soldiers, children, weapons\", \"+++ blood, women, help, day, children<br>--- shot, cdc, results, skin, milk, father, young, sugar, foster, helps\", \"+++ use, d, drugs, science, study, medical, birth, children<br>--- founder, cdc, results, known, skin, milk, father, sugar, helps, garden\"], [\"+++ country, according, states, officials, u, news, the, told<br>--- chinese, switched, global, results, votes, voter, going, tape, voted, 8\", \"+++ right, global, state, the, believe, day<br>--- pope, switched, souls, earth, fear, religious, votes, voter, office, religion\", \"+++ real, think, right, says, d, i, country, years, re, going<br>--- saying, all, switched, global, results, votes, voter, tape, voted, 8\", \"+++ news, comments, posted<br>--- code, switched, global, results, follow, trunews, votes, voter, tv, 0\", \"+++ jones, state<br>--- fungal, switched, ginseng, global, results, mild, votes, voter, cannabis, going\", \"+++ country, soros, according, day, state, the, george<br>--- switched, global, results, protest, votes, voter, riots, going, black, voted\", \"+++ real, wnd, reporting, reported, press, news, the, posted, day, told<br>--- saying, switched, global, results, debate, votes, voter, tv, tweet, going\", \"+++ states, says, according, reports, county, state, u, news, line<br>--- corps, switched, global, results, mile, ground, partners, votes, voter, sheriff\", \"+++ says, jewish, country, states, news, the, similar<br>--- chinese, switched, german, global, results, hungary, votes, voter, paris, going\", \"+++ says, global, according, years, reported, state, u, news, 8, the<br>--- switched, results, month, votes, voter, 0, going, tape, voted, oct\", \"+++ real, the, office, years, state, board, line, george<br>--- all, switched, global, results, staff, votes, voter, writes, wmw, to\", \"+++ reported, line, day, reports, posted<br>--- rtd, switched, global, results, battle, soldiers, votes, voter, tweet, thursday\", \"+++ i, official, political, according, reports, evidence, reported, state, officials, election<br>--- switched, probe, results, discovered, line, staff, votes, voter, justice, going\", \"+++ similar, according, years<br>--- atmosphere, switched, caused, magnetic, global, results, earth, votes, voter, electricity\", \"+++ right, says, office, i, country, political, years, states, going, election<br>--- switched, global, results, tweeted, supporter, certainly, voter, tape, voted, he\", \"+++ state, u, texas<br>--- switched, wakingtimes, global, results, nevada, occupation, votes, voter, edward, tape\", \"+++ florida, evidence, u, news, years, george<br>--- stephens, switched, global, results, sexist, talks, alt, hate, votes, voter\", \"+++ sure, jewish, results, i, college, think<br>--- switched, text, global, children, formating, votes, voter, appears, state, send\", \"+++ states, officials, office, according, reports, evidence, county, reported, state, going<br>--- switched, violation, issued, global, results, legal, votes, voter, sheriff, justice\", \"+++ d, results, day<br>--- cdc, global, skin, children, votes, voter, switched, 3, sugar, going\", \"+++ soros, office, switched, neilson, results, years, held, paper, votes, voter<br>--- \", \"+++ real, process<br>--- consider, switched, global, focus, issues, votes, voter, based, knowledge, going\", \"+++ country, political, states, state, u, the, think<br>--- switched, global, results, votes, voter, zone, turkish, bush, going, tape\", \"+++ right, d, office, i, country, states, state, u, the<br>--- switched, global, results, legal, issues, judges, voter, justice, program, creamer\", \"+++ evidence, official, according, reports, years, reported, told, posted<br>--- phenomenon, founder, switched, global, results, alien, votes, voter, extraterrestrial, tv\", \"+++ rigged, votes, cast, florida, voters, electoral, results, according, states, political<br>--- switched, global, democrats, debate, voter, going, candidates, voted, 8, obama\", \"+++ country, political, evidence, states, state, u<br>--- particularly, switched, global, results, publish, votes, voter, gulf, hayden, going\", \"+++ right, d, re, sure, news, the<br>--- ron, switched, lack, results, votes, voter, jay, obamacare, going, tape\", \"+++ real, global, years, state, u, news<br>--- sector, gold, switched, dollar, results, votes, voter, chinese, going, tape\", \"+++ the, paper, evidence, according, years<br>--- planetary, switched, queen, results, discovered, earth, votes, voter, explain, going\", \"+++ real, right, country, global, political, elections, years, states, state, u<br>--- switched, results, votes, voter, justice, going, black, voted, 8, sent\", \"+++ according, reports, years, reported, state, officials, news, the, evidence, told<br>--- shot, switched, global, allegations, results, gang, children, votes, voter, crime\", \"+++ jewish, according, reports, held, state, the<br>--- rebels, switched, global, results, qaeda, mosul, battle, soldiers, votes, voter\", \"+++ posted, told, says, day, years<br>--- shot, switched, global, results, children, votes, voter, father, young, foster\", \"+++ states, the, d, years<br>--- founder, switched, global, results, children, votes, voter, cannabis, father, going\"], [\"+++ world, use, possible, long, however<br>--- consider, chinese, focus, issues, current, based, knowledge, means, regional, coast\", \"+++ control, life, knowledge, power, point, self, mind, free, reality, society<br>--- consider, pope, global, souls, earth, fear, creative, religious, issues, based\", \"+++ real, life, good, point, feel, things, work, long, one, better<br>--- saying, all, consider, focus, issues, trying, based, knowledge, going, do\", \"+++ information, use, help, today, social<br>--- code, consider, focus, follow, trunews, issues, current, based, knowledge, tv\", \"+++ life, mind, free<br>--- fungal, consider, ginseng, focus, mild, issues, based, knowledge, ingredient, means\", \"+++ home, continue, lives, community, change<br>--- consider, focus, protest, issues, based, knowledge, riots, black, thousands, protestors\", \"+++ real, article, information, social<br>--- saying, consider, focus, debate, issues, based, knowledge, tv, tweet, mainstream\", \"+++ <br>--- consider, corps, focus, mile, issues, ground, partners, based, knowledge, sheriff\", \"+++ world, result, today<br>--- consider, chinese, german, focus, hungary, issues, based, knowledge, paris, communist\", \"+++ point, number, change, home, world, today<br>--- consider, global, focus, month, issues, based, knowledge, state, 0, 8\", \"+++ real, control, personal, work, order, article, making, example<br>--- all, consider, focus, issues, staff, current, based, knowledge, writes, wmw\", \"+++ <br>--- rtd, consider, focus, battle, soldiers, issues, based, knowledge, tweet, thursday\", \"+++ personal, information, use, long<br>--- consider, probe, focus, discovered, issues, staff, based, knowledge, justice, investigation\", \"+++ use, power, however, long, human, technology<br>--- atmosphere, consider, caused, magnetic, focus, earth, research, issues, current, based\", \"+++ things, possible, long, matter, article, world, today<br>--- consider, focus, tweeted, supporter, issues, certainly, based, knowledge, going, 8\", \"+++ control, long, free, power, face<br>--- consider, wakingtimes, focus, nevada, issues, occupation, based, knowledge, edward, torture\", \"+++ clear, good, however<br>--- consider, stephens, focus, sexist, talks, alt, hate, issues, based, knowledge\", \"+++ use, help, clear, needs, community, better, way, need, example<br>--- consider, text, results, children, formating, based, knowledge, send, meant, means\", \"+++ control, information, use, means, clear, however, matter, order<br>--- consider, violation, issued, focus, issues, based, knowledge, sheriff, justice, crime\", \"+++ use, important, help, best, common<br>--- consider, cdc, results, skin, research, children, issues, current, based, knowledge\", \"+++ real, process<br>--- consider, switched, global, results, issues, votes, voter, based, knowledge, going\", \"+++ consider, focus, human, issues, help, based, knowledge, personal, better, feel<br>--- \", \"+++ power, clear, current, world, order, change<br>--- consider, focus, issues, based, knowledge, zone, turkish, bush, means, tanks\", \"+++ action, work, change, issues, one<br>--- consider, focus, judges, based, knowledge, justice, program, creamer, congressional, cuba\", \"+++ world, information, subject<br>--- phenomenon, founder, focus, alien, research, issues, consider, based, knowledge, extraterrestrial\", \"+++ person, change, point<br>--- consider, results, democrats, debate, issues, votes, based, knowledge, candidates, carolina\", \"+++ world, number, human<br>--- particularly, consider, focus, issues, current, based, knowledge, gulf, means, negative\", \"+++ needs, help, free, long, order, best<br>--- consider, ron, lack, focus, issues, based, knowledge, jay, obamacare, brown\", \"+++ real, system, long, current, free, world<br>--- sector, consider, gold, global, dollar, focus, issues, based, chinese, treasury\", \"+++ technology, place, however, long<br>--- planetary, consider, queen, focus, discovered, earth, issues, based, knowledge, explain\", \"+++ real, control, power, self, free, society, future, long, way, social<br>--- consider, global, focus, issues, based, knowledge, justice, black, mainstream, means\", \"+++ lives, home, life, place<br>--- shot, consider, allegations, focus, gang, children, issues, suicide, based, knowledge\", \"+++ <br>--- rebels, focus, qaeda, mosul, battle, soldiers, issues, consider, weapons, based\", \"+++ home, life, face, help, social<br>--- shot, consider, child, focus, children, issues, based, knowledge, father, young\", \"+++ use, human<br>--- consider, founder, focus, children, issues, based, knowledge, father, garden, means\"], [\"+++ force, washington, general, states, president, united, nuclear, government, relations, attack<br>--- operations, coup, alliance, clinton, chinese, presence, neocon, political, america, strategic\", \"+++ end, power, us, order, state, world, the, called<br>--- pope, global, souls, earth, fear, religious, knowledge, zone, turkish, bush\", \"+++ we, end, that, country, no, us, course, so, world, think<br>--- saying, all, trying, zone, turkish, bush, going, obama, do, stop\", \"+++ policy, post<br>--- code, follow, trunews, current, zone, turkish, tv, 0, bush, obama\", \"+++ state, force<br>--- fungal, ginseng, mild, zone, turkish, bush, obama, ingredient, activation, tanks\", \"+++ government, country, state, attack, security, america, the, change<br>--- protest, zone, turkish, riots, bush, black, thousands, protestors, fly, cannon\", \"+++ media, post, propaganda, the<br>--- saying, debate, zone, turkish, tv, tweet, bush, obama, mainstream, watch\", \"+++ states, american, we, u, state<br>--- called, corps, mile, ground, partners, sheriff, turkish, thursday, bush, wood\", \"+++ europe, called, eastern, united, countries, country, government, war, states, west<br>--- chinese, german, hungary, zone, turkish, paris, bush, communist, population, far\", \"+++ end, state, u, 2014, world, the, change<br>--- global, month, zone, turkish, 0, bush, 8, posted, oct, far\", \"+++ the, government, media, general, state, policy, president, post, order, called<br>--- all, staff, current, zone, turkish, writes, wmw, to, bush, include\", \"+++ military, force, general<br>--- rtd, battle, soldiers, zone, turkish, tweet, thursday, bush, posted, veterans\", \"+++ clinton, washington, influence, political, hillary, general, state, president, the, presidential<br>--- called, probe, discovered, staff, zone, turkish, justice, bush, huma, sent\", \"+++ power<br>--- atmosphere, caused, magnetic, produce, earth, cell, zone, turkish, electricity, environment\", \"+++ president, united, clinton, country, washington, hillary, states, course, american, political<br>--- tweeted, supporter, certainly, zone, turkish, bush, going, 8, hope, tanks\", \"+++ interests, coup, cia, power, government, intelligence, american, state, u, security<br>--- wakingtimes, nevada, occupation, zone, turkish, bush, edward, obama, torture, bear\", \"+++ iran, media, clear, american, bush, u, president, war<br>--- called, stephens, sexist, talks, alt, hate, zone, turkish, finally, black\", \"+++ clear, post, american, think<br>--- called, text, results, children, formating, appears, zone, turkish, state, send\", \"+++ force, government, clear, states, state, security, order<br>--- evidence, violation, issued, sheriff, turkish, justice, crime, bush, going, local\", \"+++ <br>--- cdc, results, skin, children, current, zone, turkish, 3, sugar, bush\", \"+++ country, political, states, state, u, the, think<br>--- called, switched, global, results, votes, voter, zone, turkish, bush, going\", \"+++ power, clear, current, world, order, change<br>--- consider, focus, issues, based, knowledge, zone, turkish, bush, means, tanks\", \"+++ coup, course, world, cold, zone, turkish, bush, nato, overthrow, policy<br>--- \", \"+++ we, united, general, government, country, washington, american, america, foreign, states<br>--- called, issues, judges, zone, turkish, justice, bush, program, creamer, congressional\", \"+++ world, threat, intelligence<br>--- phenomenon, founder, alien, zone, turkish, tv, 0, bush, posted, extraterrestrials\", \"+++ clinton, political, washington, state, states, american, presidential, media, president, obama<br>--- called, results, democrats, debate, votes, zone, turkish, bush, candidates, carolina\", \"+++ media, called, united, libya, countries, intelligence, government, political, american, foreign<br>--- particularly, current, gulf, turkish, bush, tanks, despite, report, assad, governments\", \"+++ we, us, 2014, the, order, obama<br>--- ron, lack, zone, jay, obamacare, bush, brown, worst, tanks, report\", \"+++ countries, government, current, state, u, policy, world<br>--- sector, gold, global, dollar, chinese, zone, turkish, bush, treasury, street\", \"+++ the, called<br>--- planetary, queen, discovered, earth, zone, turkish, explain, bush, black, famous\", \"+++ leaders, states, course, president, united, end, media, political, state, policy<br>--- control, anti, clinton, coup, civil, global, confrontation, years, revolution, moral\", \"+++ the, state, attack, called<br>--- shot, allegations, gang, children, suicide, zone, turkish, crime, bush, black\", \"+++ middle, syrian, regime, turkey, turkish, west, eastern, state, attack, international<br>--- operations, coup, bush, clinton, rebels, campaign, terrorists, neocon, administration, confrontation\", \"+++ middle<br>--- shot, children, zone, turkish, father, young, bush, foster, obama, local\", \"+++ states, the<br>--- founder, children, zone, turkish, father, bush, plants, garden, tanks, assad\"], [\"+++ united, group, government, country, washington, foreign, states, defense, u, president<br>--- chinese, issues, judges, justice, program, creamer, congressional, cuba, regional, coast\", \"+++ state, right, the<br>--- pope, global, souls, earth, fear, religious, issues, judges, office, justice\", \"+++ we, right, d, i, country, work, one<br>--- saying, all, issues, judges, trying, justice, going, creamer, obama, congressional\", \"+++ policy, list<br>--- code, comments, follow, trunews, issues, judges, tv, 0, program, creamer\", \"+++ 2015, state, health, campaign<br>--- vitamins, fungal, ginseng, mild, issues, judges, justice, program, creamer, obama\", \"+++ group, government, country, national, rights, nation, state, 000, california, members<br>--- protest, issues, judges, justice, riots, program, black, thousands, congressional, protestors\", \"+++ speech, the, list, york, campaign<br>--- saying, debate, issues, judges, tv, tweet, program, creamer, obama, congressional\", \"+++ we, rights, national, state, states, american, americans, department, u, law<br>--- corps, mile, issues, ground, partners, judges, sheriff, justice, thursday, wood\", \"+++ citizens, government, country, national, muslim, states, second, united, the<br>--- called, chinese, german, hungary, issues, judges, paris, program, creamer, communist\", \"+++ 20, second, state, 000, u, year, 2015, the, change<br>--- global, month, issues, judges, justice, 0, program, creamer, 8, posted\", \"+++ group, office, government, money, work, chief, general, state, 000, york<br>--- all, issues, staff, judges, justice, writes, wmw, to, program, creamer\", \"+++ national, john, chief, general<br>--- rtd, battle, soldiers, issues, judges, justice, tweet, thursday, program, creamer\", \"+++ attorney, congress, campaign, justice, house, decision, washington, i, general, director<br>--- probe, discovered, issues, staff, judges, program, creamer, huma, sent, cuba\", \"+++ california, health<br>--- atmosphere, caused, magnetic, mexican, issues, judges, electricity, environment, program, creamer\", \"+++ right, campaign, office, i, house, washington, america, nation, states, elected<br>--- tweeted, supporter, issues, certainly, justice, going, creamer, 8, hope, cuba\", \"+++ group, government, federal, national, american, state, defense, u, year, security<br>--- wakingtimes, nevada, issues, occupation, judges, justice, edward, creamer, keystone, obama\", \"+++ house, national, american, u, york, president, white, john<br>--- stephens, sexist, talks, alt, hate, issues, judges, justice, bush, program\", \"+++ i, american, effort, policies<br>--- text, results, children, formating, judges, justice, state, send, program, creamer\", \"+++ attorney, office, national, states, year, court, constitution, justice, illegal, decision<br>--- evidence, violation, issued, issues, judges, sheriff, crime, going, creamer, local\", \"+++ health, d<br>--- cdc, results, skin, children, issues, judges, justice, 3, sugar, program\", \"+++ right, d, office, i, country, states, state, u, the<br>--- switched, global, results, comments, issues, votes, voter, justice, going, tape\", \"+++ action, work, change, issues, one<br>--- consider, focus, judges, based, knowledge, justice, program, creamer, congressional, cuba\", \"+++ we, united, general, government, country, washington, american, america, foreign, states<br>--- issues, judges, zone, turkish, justice, bush, program, creamer, congressional, cuba\", \"+++ mexican, office, money, executive, committee, issues, judges, group, justice, barack<br>--- \", \"+++ 2015, health, national, group, committee<br>--- phenomenon, founder, alien, issues, judges, extraterrestrial, tv, 0, program, creamer\", \"+++ states, campaign, senate, house, national, washington, american, barack, state, americans<br>--- results, democrats, debate, issues, votes, justice, program, candidates, congressional, carolina\", \"+++ united, john, group, campaign, government, money, rights, american, foreign, states<br>--- particularly, publish, issues, judges, gulf, justice, program, creamer, congressional, cuba\", \"+++ we, right, d, house, executive, health, americans, white, the, obama<br>--- ron, lack, issues, judges, jay, justice, obamacare, program, creamer, congressional\", \"+++ government, federal, money, tax, state, u, year, policy<br>--- sector, gold, global, dollar, issues, judges, chinese, justice, program, creamer\", \"+++ the<br>--- planetary, mexico, queen, discovered, earth, issues, judges, justice, explain, program\", \"+++ right, national, states, americans, united, justice, state, policy, white, government<br>--- global, issues, judges, program, black, congressional, mainstream, cuba, far, trade\", \"+++ attorney, court, chief, state, year, department, the<br>--- shot, allegations, gang, children, issues, judges, suicide, justice, crime, program\", \"+++ group, campaign, government, muslim, state, 000, security, the<br>--- rebels, qaeda, mosul, battle, soldiers, issues, judges, turkish, justice, iraqi\", \"+++ house, muslim, gun, year<br>--- shot, children, issues, judges, justice, father, young, program, creamer, money\", \"+++ states, the, national, california, d<br>--- founder, children, issues, judges, justice, 95, father, program, creamer, congressional\"], [\"+++ world, group, according, threat, told<br>--- phenomenon, chinese, alien, founder, lights, tv, 0, extraterrestrials, egyptian, regional\", \"+++ source, secret, history, world<br>--- phenomenon, pope, global, souls, alien, earth, fear, moon, religious, founder\", \"+++ world, years<br>--- saying, all, phenomenon, founder, alien, trying, lights, tv, 0, going\", \"+++ articles, source, tv, related, 0, information, data, posted<br>--- code, phenomenon, founder, alien, follow, trunews, lights, list, extraterrestrials, egyptian\", \"+++ 2015, source, health, meat, lab<br>--- fungal, phenomenon, founder, ginseng, alien, mild, hai, lights, tv, 0\", \"+++ national, group, according<br>--- phenomenon, founder, alien, protest, extraterrestrial, tv, riots, 0, black, thousands\", \"+++ information, released, tv, reported, video, report, posted, told<br>--- saying, phenomenon, founder, alien, debate, extraterrestrial, tweet, 0, extraterrestrials, mainstream\", \"+++ national, according, reports<br>--- phenomenon, corps, alien, mile, ground, partners, founder, sheriff, lights, tv\", \"+++ world, national, later, history<br>--- phenomenon, chinese, german, alien, hungary, founder, lights, paris, 0, topic\", \"+++ reported, according, years, 0, report, 2015, world, data, posted<br>--- phenomenon, founder, global, month, alien, lights, tv, state, 8, oct\", \"+++ source, group, years<br>--- all, phenomenon, founder, alien, staff, lights, tv, writes, wmw, to\", \"+++ reported, national, reports, posted<br>--- rtd, phenomenon, founder, alien, battle, soldiers, extraterrestrial, tv, tweet, thursday\", \"+++ case, information, official, reported, classified, according, related, evidence, source, documents<br>--- phenomenon, founder, probe, discovered, staff, lights, justice, 0, huma, sent\", \"+++ scientific, lights, according, research, source, health, scientists, years, dr<br>--- atmosphere, phenomenon, founder, caused, magnetic, alien, earth, electricity, environment, 0\", \"+++ world, history, event, years<br>--- phenomenon, founder, alien, tweeted, supporter, certainly, lights, tv, 0, going\", \"+++ later, group, intelligence, national, agency, secret, nsa, history<br>--- phenomenon, founder, wakingtimes, alien, nevada, occupation, extraterrestrial, tv, 0, edward\", \"+++ case, national, later, evidence, secret, years, history<br>--- phenomenon, stephens, sexist, alien, talks, alt, hate, founder, lights, tv\", \"+++ dr<br>--- phenomenon, founder, text, results, alien, children, formating, lights, tv, send\", \"+++ case, information, national, agency, according, reports, evidence, reported, secret, told<br>--- phenomenon, founder, violation, issued, alien, sheriff, lights, justice, crime, 0\", \"+++ health, dr, research<br>--- phenomenon, founder, cdc, results, alien, skin, children, lights, tv, sugar\", \"+++ evidence, official, according, reports, years, reported, told, posted<br>--- phenomenon, founder, switched, global, results, alien, votes, voter, lights, tv\", \"+++ world, information, subject<br>--- consider, founder, focus, alien, creative, issues, phenomenon, based, knowledge, lights\", \"+++ world, threat, intelligence<br>--- phenomenon, founder, alien, zone, turkish, tv, 0, bush, posted, extraterrestrials\", \"+++ 2015, health, national, group, committee<br>--- phenomenon, founder, alien, issues, judges, extraterrestrial, justice, 0, program, creamer\", \"+++ phenomenon, founder, years, alien, symbolism, committee, chaffetz, group, lights, tv<br>--- \", \"+++ national, according, committee, told<br>--- phenomenon, founder, results, alien, democrats, debate, votes, favor, tv, 0\", \"+++ group, intelligence, evidence, report, 2015, world<br>--- particularly, phenomenon, founder, alien, gulf, lights, tv, 0, topic, extraterrestrials\", \"+++ report, health<br>--- phenomenon, ron, lack, alien, founder, jay, tv, obamacare, 0, posted\", \"+++ world, years<br>--- sector, phenomenon, gold, global, dollar, alien, chinese, extraterrestrial, tv, 0\", \"+++ space, according, years, source, nasa, anonymous, scientists, evidence, event<br>--- planetary, phenomenon, founder, queen, discovered, earth, lights, tv, explain, 0\", \"+++ world, national, history, years<br>--- phenomenon, founder, global, alien, dimension, lights, justice, 0, black, extraterrestrials\", \"+++ case, later, according, reports, years, reported, report, evidence, told<br>--- shot, phenomenon, founder, allegations, alien, gang, children, suicide, extraterrestrial, tv\", \"+++ group, according, reports<br>--- rebels, founder, alien, qaeda, mosul, battle, soldiers, phenomenon, turkish, tv\", \"+++ later, years, eddie, video, told, posted<br>--- shot, phenomenon, founder, alien, children, lights, tv, father, young, 0\", \"+++ national, scientific, related, founder, years<br>--- phenomenon, alien, children, lights, tv, father, 0, extraterrestrials, garden, egyptian\"], [\"+++ north, washington, according, states, president, news, secretary, told<br>--- chinese, results, democrats, debate, votes, candidates, carolina, michigan, regional, coast\", \"+++ state, race, day, fact, point<br>--- pope, global, souls, democrats, earth, fear, religious, debate, votes, knowledge\", \"+++ person, day, point<br>--- saying, all, results, democrats, debate, votes, trying, going, candidates, he\", \"+++ news, november, support<br>--- code, results, democrats, follow, trunews, votes, tv, 0, candidates, posted\", \"+++ state, campaign<br>--- fungal, ginseng, results, mild, democrats, debate, votes, candidates, obama, ingredient\", \"+++ week, national, according, state, day, change<br>--- results, protest, democrats, debate, votes, riots, black, thousands, protestors, cannon\", \"+++ week, campaign, media, day, speech, cnn, news, debate, told<br>--- saying, results, democrats, votes, tv, tweet, candidates, posted, carolina, mainstream\", \"+++ north, support, american, according, states, state, americans, news, national<br>--- corps, results, mile, democrats, debate, ground, partners, votes, sheriff, thursday\", \"+++ states, news, national, fact<br>--- chinese, german, results, democrats, hungary, debate, votes, paris, candidates, communist\", \"+++ week, point, support, percent, likely, according, early, record, state, points<br>--- global, results, month, democrats, debate, votes, 0, candidates, 8, posted\", \"+++ media, state, support, fact, president<br>--- all, results, democrats, debate, staff, votes, writes, wmw, to, candidates\", \"+++ november, national, day, moore<br>--- rtd, results, democrats, battle, soldiers, debate, votes, tweet, thursday, indian\", \"+++ president, democratic, clinton, campaign, house, washington, according, political, state, election<br>--- probe, results, discovered, democrats, debate, staff, votes, justice, candidates, huma\", \"+++ according, lead<br>--- atmosphere, caused, magnetic, results, democrats, earth, debate, votes, lights, electricity\", \"+++ clinton, trump, campaign, house, washington, states, donald, americans, election, vote<br>--- rigged, elect, megyn, office, violence, wall, percent, tuesday, secretary, results\", \"+++ american, national, state<br>--- wakingtimes, results, democrats, nevada, debate, occupation, votes, edward, candidates, bundy\", \"+++ president, house, national, florida, american, race, media, news, november, white<br>--- stephens, results, sexist, democrats, talks, alt, hate, debate, votes, bush\", \"+++ american, college, results<br>--- text, democrats, children, formating, votes, state, send, version, candidates, carolina\", \"+++ states, national, according, state, told<br>--- violation, issued, results, democrats, debate, votes, sheriff, justice, crime, going\", \"+++ results, day<br>--- cdc, democrats, skin, children, votes, 3, sugar, candidates, helps, obama\", \"+++ rigged, votes, cast, florida, voters, electoral, elections, results, states, political<br>--- switched, global, democrats, debate, voter, going, tape, voted, 8, posted\", \"+++ person, change, point<br>--- consider, secretary, focus, democrats, debate, issues, votes, based, knowledge, candidates\", \"+++ clinton, political, washington, state, states, american, presidential, media, president, obama<br>--- results, democrats, debate, votes, zone, turkish, bush, candidates, carolina, michigan\", \"+++ states, campaign, senate, house, national, washington, american, barack, state, americans<br>--- results, democrats, debate, issues, judges, justice, program, creamer, congressional, carolina\", \"+++ national, according, committee, told<br>--- phenomenon, founder, results, alien, democrats, debate, votes, favor, tv, 0\", \"+++ results, democrats, committee, debate, votes, candidate, winning, barack, candidates, 2012<br>--- \", \"+++ campaign, media, support, political, american, states, state, wikileaks<br>--- particularly, results, democrats, debate, votes, gulf, candidates, carolina, michigan, despite\", \"+++ lead, house, green, democrat, running, americans, cnn, news, white, gop<br>--- ron, lack, results, democrats, debate, votes, jay, obamacare, candidates, carolina\", \"+++ news, state<br>--- sector, gold, global, dollar, results, democrats, debate, votes, chinese, candidates\", \"+++ according<br>--- planetary, queen, results, discovered, democrats, earth, debate, votes, explain, black\", \"+++ president, media, national, political, state, elections, states, american, americans, fact<br>--- global, results, democrats, debate, votes, justice, black, carolina, mainstream, far\", \"+++ news, state, according, told<br>--- shot, secretary, allegations, results, gang, children, votes, suicide, crime, black\", \"+++ state, support, according, campaign<br>--- rebels, results, qaeda, mosul, battle, soldiers, debate, votes, turkish, iraqi\", \"+++ house, she, party, november, day, told<br>--- shot, results, democrats, children, votes, father, young, foster, candidates, obama\", \"+++ states, national<br>--- founder, results, democrats, children, votes, father, candidates, carolina, garden, michigan\"], [\"+++ states, united, group, u, countries, country, region, government, foreign, weapons<br>--- particularly, chinese, gulf, regional, coast, joint, despite, report, governments, saudi\", \"+++ world, state, called, human<br>--- particularly, pope, global, souls, earth, fear, religious, knowledge, gulf, religion\", \"+++ world, there, country<br>--- saying, all, particularly, sales, trying, gulf, re, going, do, stop\", \"+++ policy, rt, support, published<br>--- code, particularly, sales, comments, follow, trunews, access, gulf, tv, 0\", \"+++ 2015, state, campaign<br>--- fungal, particularly, ginseng, mild, gulf, cannabis, ingredient, activation, sales, despite\", \"+++ group, rights, country, government, state, 000, groups<br>--- particularly, sales, protest, gulf, riots, black, thousands, protestors, homes, cannon\", \"+++ journalists, campaign, media, narrative, interview, published, report<br>--- saying, particularly, sales, debate, gulf, tv, tweet, mainstream, watch, facebook\", \"+++ oil, rights, support, state, states, american, u, region<br>--- particularly, corps, sales, mile, ground, partners, sheriff, thursday, wood, local\", \"+++ united, countries, country, government, africa, british, called, states, western, world<br>--- particularly, chinese, german, hungary, gulf, paris, communist, far, merkel, despite\", \"+++ 9, support, million, number, report, state, 000, u, year, 2015<br>--- particularly, global, month, gulf, 0, 8, posted, oct, organizations, far\", \"+++ media, claims, group, government, money, support, million, state, 000, including<br>--- all, particularly, staff, access, gulf, writes, wmw, to, include, activities\", \"+++ john, center<br>--- rtd, particularly, sales, battle, soldiers, gulf, tweet, thursday, posted, veterans\", \"+++ campaign, political, evidence, state, 000, 2015, wikileaks, john<br>--- particularly, probe, discovered, staff, gulf, justice, huma, sent, lynch, despite\", \"+++ center, human, published<br>--- atmosphere, particularly, sales, caused, magnetic, produce, earth, cell, gulf, electricity\", \"+++ united, campaign, country, political, states, american, year, 9, world, called<br>--- particularly, tweeted, supporter, certainly, gulf, going, 8, obama, hope, despite\", \"+++ oil, group, government, intelligence, published, american, state, u, year<br>--- particularly, wakingtimes, nevada, occupation, gulf, edward, torture, bear, cheaper, despite\", \"+++ media, arms, evidence, american, u, 9, john, war<br>--- particularly, stephens, sales, sexist, talks, alt, hate, gulf, bush, black\", \"+++ american<br>--- called, particularly, sales, text, results, children, formating, gulf, state, send\", \"+++ rights, government, crimes, evidence, states, state, including, year<br>--- particularly, violation, issued, legal, sheriff, justice, crime, going, local, activities\", \"+++ oil, including<br>--- particularly, cdc, sales, results, skin, children, weapons, gulf, 3, sugar\", \"+++ country, political, evidence, states, state, u<br>--- particularly, switched, sales, global, results, comments, votes, voter, gulf, re\", \"+++ world, number, human<br>--- particularly, consider, focus, issues, current, based, knowledge, gulf, means, despite\", \"+++ media, united, war, libya, countries, intelligence, government, political, american, foreign<br>--- particularly, current, zone, turkish, bush, tanks, despite, report, assad, governments\", \"+++ united, group, campaign, rights, money, government, year, american, foreign, states<br>--- particularly, publish, issues, judges, gulf, justice, program, creamer, congressional, cuba\", \"+++ group, intelligence, evidence, 2015, report, world<br>--- particularly, phenomenon, founder, sales, alien, gulf, extraterrestrial, tv, 0, topic\", \"+++ campaign, media, support, political, american, states, state, wikileaks<br>--- particularly, results, democrats, debate, votes, gulf, candidates, carolina, michigan, despite\", \"+++ particularly, money, terrorist, embassy, including, human, group, gulf, policy, 2011<br>--- \", \"+++ report, al<br>--- particularly, ron, lack, gulf, jay, obamacare, brown, worst, despite, governments\", \"+++ billion, oil, financial, countries, money, government, state, u, year, policy<br>--- sector, particularly, gold, global, dollar, weapons, chinese, gulf, treasury, street\", \"+++ called, evidence<br>--- planetary, particularly, sales, queen, discovered, earth, gulf, explain, black, famous\", \"+++ media, rights, countries, country, support, government, political, american, foreign, states<br>--- particularly, global, gulf, justice, black, mainstream, far, despite, report, trade\", \"+++ crimes, evidence, state, year, report, claims, called<br>--- shot, sales, allegations, gang, particularly, children, suicide, gulf, crime, black\", \"+++ terrorist, group, campaign, isis, attacks, region, government, al, war, weapons<br>--- particularly, rebels, qaeda, mosul, battle, soldiers, gulf, turkish, iraqi, terror\", \"+++ middle, year<br>--- shot, sales, particularly, children, gulf, father, young, foster, money, local\", \"+++ states, human<br>--- particularly, founder, sales, children, gulf, cannabis, father, garden, despite, report\"], [\"+++ news, the, us, long, air<br>--- chinese, lack, ron, jay, obamacare, brown, regional, coast, joint, worst\", \"+++ right, us, away, long, live, free, the, come, order<br>--- pope, global, souls, earth, fear, religious, ron, jay, obamacare, lord\", \"+++ we, right, d, big, away, live, long, re, bad, sure<br>--- saying, all, ron, lack, trying, jay, obamacare, going, he, do\", \"+++ news, help, phone<br>--- code, ron, lack, follow, trunews, jay, tv, obamacare, 0, posted\", \"+++ health, free<br>--- fungal, ron, ginseng, lack, mild, jay, obamacare, obama, ingredient, brown\", \"+++ city, the, come, crisis<br>--- ron, lack, protest, jay, obamacare, riots, black, thousands, protestors, brown\", \"+++ report, news, the, cnn, online<br>--- saying, ron, lack, debate, jay, tv, tweet, obamacare, posted, brown\", \"+++ news, we, americans<br>--- corps, lack, mile, ground, partners, ron, sheriff, jay, obamacare, state\", \"+++ news, the, leader, city<br>--- chinese, german, lack, hungary, ron, jay, paris, obamacare, communist, obama\", \"+++ report, news, the, 2014, previous<br>--- ron, global, month, jay, obamacare, state, 0, 8, posted, oct\", \"+++ big, the, order<br>--- all, ron, lack, staff, jay, writes, wmw, fund, to, include\", \"+++ vice, service, air<br>--- rtd, ron, lack, battle, soldiers, jay, tweet, obamacare, thursday, rss\", \"+++ house, the, long, news<br>--- ron, probe, discovered, staff, jay, justice, obamacare, huma, sent, brown\", \"+++ health, long, lead, air<br>--- atmosphere, ron, caused, magnetic, lack, earth, jay, electricity, obamacare, environment\", \"+++ right, house, long, sign, americans, joe, white, obama<br>--- ron, lack, tweeted, supporter, certainly, jay, obamacare, going, 8, hope\", \"+++ long, free, ryan<br>--- ron, wakingtimes, lack, nevada, occupation, jay, obamacare, edward, keystone, bundy\", \"+++ house, white, cover, brown, news<br>--- stephens, lack, sexist, talks, alt, hate, ron, jay, obamacare, bush\", \"+++ needs, live, sure, help, takes<br>--- ron, text, lack, results, children, formating, jay, obamacare, send, meant\", \"+++ phone, order, service<br>--- ron, violation, issued, lack, sheriff, jay, justice, obamacare, crime, going\", \"+++ tea, health, help, best, d<br>--- ron, cdc, lack, results, skin, children, jay, obamacare, sugar, helps\", \"+++ right, d, re, sure, news, the<br>--- ron, switched, global, results, votes, voter, jay, obamacare, going, tape\", \"+++ needs, help, free, long, order, best<br>--- consider, ron, lack, focus, issues, based, knowledge, jay, obamacare, brown\", \"+++ we, us, 2014, the, order, obama<br>--- ron, lack, zone, turkish, obamacare, bush, brown, worst, tanks, report\", \"+++ we, right, d, house, executive, health, americans, white, the, obama<br>--- ron, lack, issues, judges, jay, justice, obamacare, program, creamer, congressional\", \"+++ report, health<br>--- phenomenon, founder, lack, alien, ron, extraterrestrial, tv, obamacare, 0, posted\", \"+++ lead, house, green, democrat, running, americans, cnn, news, white, gop<br>--- ron, lack, results, democrats, debate, votes, jay, obamacare, candidates, carolina\", \"+++ report, al<br>--- particularly, ron, lack, gulf, jay, obamacare, brown, worst, despite, governments\", \"+++ help, ron, executive, proposes, signs, paul, previous, retirement, jay, obamacare<br>--- \", \"+++ free, big, long, plan, news, crisis<br>--- sector, gold, global, dollar, chinese, jay, obamacare, treasury, brown, lack\", \"+++ the, look, long<br>--- planetary, ron, queen, discovered, earth, jay, explain, obamacare, black, brown\", \"+++ the, right, us, long, order, americans, free, white, crisis<br>--- ron, global, jay, justice, obamacare, black, brown, lack, mainstream, far\", \"+++ report, news, the, cover, city<br>--- shot, ron, lack, allegations, gang, children, suicide, jay, obamacare, crime\", \"+++ city, the, al, us, air<br>--- rebels, ron, lack, qaeda, mosul, battle, soldiers, turkish, obamacare, daesh\", \"+++ house, away, help, service<br>--- shot, ron, lack, children, jay, father, young, foster, obama, local\", \"+++ the, d<br>--- founder, lack, children, ron, jay, father, brown, garden, worst, report\"], [\"+++ chinese, countries, government, long, china, news, world, u<br>--- sector, gold, global, dollar, current, treasury, regional, coast, joint, trade\", \"+++ global, long, state, free, world, higher<br>--- sector, pope, dollar, souls, earth, fear, religious, chinese, treasury, lord\", \"+++ real, big, long, world, years<br>--- sector, saying, all, gold, global, dollar, trying, chinese, going, treasury\", \"+++ policy, news, company, companies<br>--- sector, code, gold, global, dollar, follow, trunews, current, chinese, tv\", \"+++ state, free<br>--- sector, fungal, chinese, ginseng, global, dollar, mild, content, gold, treasury\", \"+++ state, crisis, government<br>--- sector, gold, global, dollar, protest, chinese, riots, stand, black, treasury\", \"+++ real, news<br>--- sector, saying, gold, global, dollar, debate, chinese, tv, tweet, treasury\", \"+++ oil, company, private, state, u, news<br>--- sector, corps, global, dollar, mile, ground, partners, gold, sheriff, thursday\", \"+++ chinese, countries, government, china, news, world<br>--- sector, gold, german, global, dollar, known, hungary, paris, treasury, communist\", \"+++ high, global, rate, years, increase, state, u, low, year, world<br>--- sector, gold, dollar, month, chinese, 0, treasury, 8, posted, oct\", \"+++ real, business, government, money, industry, private, years, fund, state, big<br>--- sector, all, gold, global, dollar, staff, current, chinese, writes, wmw\", \"+++ major, central<br>--- sector, rtd, gold, global, dollar, battle, soldiers, chinese, tweet, thursday\", \"+++ news, state, long, private<br>--- sector, gold, probe, dollar, discovered, staff, chinese, justice, treasury, huma\", \"+++ high, lower, industry, long, years, large, products, low<br>--- sector, atmosphere, gold, caused, magnetic, global, dollar, known, earth, current\", \"+++ wall, world, year, long, years<br>--- sector, gold, global, dollar, tweeted, supporter, certainly, chinese, going, treasury\", \"+++ oil, government, federal, long, state, u, free, year<br>--- sector, gold, wakingtimes, global, dollar, nevada, occupation, chinese, edward, treasury\", \"+++ news, u, years<br>--- sector, stephens, global, dollar, sexist, talks, alt, hate, gold, bush\", \"+++ <br>--- sector, gold, text, global, dollar, results, children, formating, chinese, 3\", \"+++ government, federal, pay, private, high, state, year<br>--- sector, gold, violation, issued, global, dollar, chinese, sheriff, justice, crime\", \"+++ increase, high, oil, products, low<br>--- sector, gold, cdc, global, dollar, results, prices, skin, children, current\", \"+++ real, global, years, state, u, news<br>--- sector, gold, switched, dollar, results, votes, voter, chinese, going, tape\", \"+++ real, system, long, current, free, world<br>--- sector, consider, gold, global, dollar, focus, issues, based, knowledge, treasury\", \"+++ countries, government, current, state, u, policy, world<br>--- sector, gold, global, dollar, chinese, zone, turkish, bush, treasury, street\", \"+++ government, federal, money, tax, state, u, year, policy<br>--- sector, chinese, global, dollar, issues, judges, gold, justice, program, creamer\", \"+++ world, years<br>--- sector, phenomenon, founder, global, dollar, alien, gold, extraterrestrial, tv, 0\", \"+++ news, state<br>--- sector, gold, global, dollar, results, democrats, debate, votes, chinese, candidates\", \"+++ billion, oil, financial, countries, money, government, state, u, year, policy<br>--- sector, particularly, chinese, global, dollar, current, gold, gulf, treasury, despite\", \"+++ free, big, long, plan, news, crisis<br>--- sector, ron, lack, dollar, gold, jay, obamacare, treasury, chinese, brown\", \"+++ sector, chinese, money, global, dollar, trade, current, gold, production, treasury<br>--- \", \"+++ long, years<br>--- sector, planetary, gold, queen, dollar, discovered, prices, earth, chinese, explain\", \"+++ real, countries, street, government, global, free, years, state, economic, u<br>--- sector, gold, dollar, chinese, justice, black, treasury, mainstream, far, progressive\", \"+++ news, state, year, years<br>--- sector, shot, gold, global, allegations, gang, children, suicide, chinese, crime\", \"+++ state, government<br>--- sector, rebels, chinese, global, dollar, qaeda, mosul, battle, soldiers, weapons\", \"+++ year, years<br>--- sector, shot, gold, global, dollar, children, chinese, father, young, foster\", \"+++ industry, years<br>--- sector, founder, global, dollar, prices, children, chinese, father, treasury, garden\"], [\"+++ australia, however, long, according, near, sea, ship, the, south<br>--- planetary, chinese, queen, discovered, earth, explain, black, regional, coast, famous\", \"+++ ancient, light, long, source, earth, the, called<br>--- planetary, pope, global, souls, discovered, fear, religious, knowledge, explain, black\", \"+++ place, look, long, years<br>--- saying, all, planetary, queen, discovered, earth, trying, explain, going, black\", \"+++ a, source, 2<br>--- planetary, code, queen, discovered, follow, trunews, tv, explain, 0, black\", \"+++ source<br>--- planetary, fungal, ginseng, queen, discovered, mild, earth, explain, black, ingredient\", \"+++ the, left, black, according, team<br>--- planetary, queen, discovered, protest, earth, explain, riots, thousands, protestors, cannon\", \"+++ image, the<br>--- saying, planetary, queen, discovered, earth, debate, tv, tweet, black, mainstream\", \"+++ near, according, lake, south, area<br>--- planetary, corps, queen, discovered, mile, earth, ground, partners, sheriff, explain\", \"+++ known, the, called, came, century<br>--- planetary, chinese, german, queen, discovered, hungary, paris, explain, black, communist\", \"+++ ago, study, according, years, 2, 5, the, south<br>--- planetary, global, month, discovered, earth, explain, state, 0, black, 8\", \"+++ a, years, source, team, the, called<br>--- planetary, all, queen, discovered, earth, staff, writes, wmw, to, black\", \"+++ a, near, 2, 5<br>--- rtd, planetary, queen, discovered, battle, earth, tweet, thursday, black, posted\", \"+++ according, long, evidence, discovered, source, the<br>--- planetary, probe, earth, staff, justice, explain, black, huma, sent, queen\", \"+++ blue, field, light, area, science, university, however, long, years, source<br>--- planetary, atmosphere, caused, magnetic, queen, discovered, electricity, explain, environment, black\", \"+++ star, long, event, team, seen, hollywood, years, called, left<br>--- planetary, queen, discovered, earth, tweeted, supporter, certainly, explain, going, black\", \"+++ long<br>--- planetary, wakingtimes, queen, discovered, earth, nevada, occupation, explain, edward, black\", \"+++ however, evidence, black, team, years, south<br>--- planetary, stephens, queen, sexist, discovered, talks, earth, alt, hate, explain\", \"+++ a, university, 2, 5, appears<br>--- planetary, text, queen, results, discovered, earth, children, formating, explain, send\", \"+++ field, evidence, however, according<br>--- planetary, violation, issued, queen, discovered, earth, sheriff, justice, explain, crime\", \"+++ known, science, study, 2, 5<br>--- planetary, cdc, queen, results, discovered, skin, earth, children, explain, sugar\", \"+++ the, paper, evidence, according, years<br>--- planetary, switched, global, results, discovered, earth, votes, voter, explain, going\", \"+++ technology, place, however, long<br>--- planetary, consider, queen, focus, discovered, earth, issues, based, knowledge, explain\", \"+++ the, called<br>--- planetary, queen, discovered, earth, zone, turkish, explain, bush, black, famous\", \"+++ the<br>--- planetary, queen, discovered, earth, issues, judges, justice, explain, program, black\", \"+++ space, according, years, source, nasa, anonymous, scientists, evidence, event<br>--- planetary, phenomenon, founder, queen, alien, earth, extraterrestrial, tv, explain, 0\", \"+++ according<br>--- planetary, queen, results, discovered, democrats, earth, debate, votes, explain, candidates\", \"+++ called, evidence<br>--- planetary, particularly, queen, discovered, earth, gulf, explain, black, famous, anonymous\", \"+++ the, look, long<br>--- planetary, ron, lack, discovered, earth, jay, explain, obamacare, black, brown\", \"+++ long, years<br>--- sector, planetary, gold, global, dollar, discovered, prices, earth, chinese, explain\", \"+++ planetary, queen, years, discovered, paper, earth, captured, explain, sky, lake<br>--- \", \"+++ the, left, black, long, years<br>--- planetary, global, discovered, earth, justice, explain, queen, mainstream, far, famous\", \"+++ ago, according, evidence, place, black, the, years, called<br>--- planetary, shot, queen, allegations, discovered, gang, earth, children, suicide, explain\", \"+++ the, according, area<br>--- planetary, rebels, queen, discovered, qaeda, mosul, battle, soldiers, turkish, explain\", \"+++ left, came, years<br>--- planetary, shot, queen, discovered, earth, children, explain, father, young, foster\", \"+++ ago, a, science, study, years, the<br>--- planetary, founder, queen, discovered, baby, earth, children, explain, father, black\"], [\"+++ president, nations, u, countries, country, government, peace, long, foreign, states<br>--- chinese, global, justice, black, mainstream, far, regional, coast, joint, trade\", \"+++ control, right, end, us, power, freedom, self, global, peace, free<br>--- pope, souls, earth, fear, religious, knowledge, justice, elite, black, lord\", \"+++ real, and, them, right, end, country, long, years, course, so<br>--- saying, all, global, justice, going, black, do, mainstream, far, stop\", \"+++ policy, support, class, today, social<br>--- code, global, follow, trunews, tv, 0, black, mainstream, far, facebook\", \"+++ and, state, free<br>--- fungal, ginseng, global, mild, justice, black, ingredient, mainstream, far, activation\", \"+++ rights, revolution, government, country, national, peace, nation, state, black, groups<br>--- global, protest, trying, justice, riots, thousands, protestors, mainstream, far, cannon\", \"+++ real, liberal, mainstream, media, propaganda, anti, social, the, public<br>--- saying, global, debate, tv, tweet, black, far, watch, facebook, reporters\", \"+++ rights, support, american, states, state, americans, u, national<br>--- corps, global, mile, ground, partners, sheriff, justice, thursday, wood, black\", \"+++ and, them, citizens, war, countries, far, country, national, government, propaganda<br>--- chinese, german, global, hungary, paris, black, communist, mainstream, merkel, end\", \"+++ end, far, support, global, years, state, u, today, world, the<br>--- month, justice, 0, black, 8, posted, oct, mainstream, 12, nearly\", \"+++ real, control, and, working, government, far, media, support, years, state<br>--- all, global, staff, justice, writes, wmw, to, black, include, activities\", \"+++ military, national<br>--- rtd, global, battle, soldiers, justice, tweet, thursday, black, posted, veterans\", \"+++ justice, political, long, corruption, state, president, the, democratic, public<br>--- probe, discovered, staff, black, huma, sent, global, mainstream, far, lynch\", \"+++ mass, long, power, years<br>--- atmosphere, caused, magnetic, global, earth, electricity, environment, black, risk, far\", \"+++ right, left, civil, country, political, long, nation, states, course, american<br>--- global, tweeted, supporter, certainly, justice, going, black, 8, obama, hope\", \"+++ and, interests, power, government, control, national, state, free, american, u<br>--- wakingtimes, global, nevada, occupation, justice, edward, black, mainstream, torture, far\", \"+++ u, media, national, peace, years, american, black, president, white, war<br>--- stephens, global, sexist, talks, alt, hate, justice, bush, case, mainstream\", \"+++ american, policies, way<br>--- text, global, results, children, formating, justice, state, send, black, sure\", \"+++ control, rights, government, justice, national, citizens, order, states, civil, state<br>--- violation, issued, global, sheriff, crime, going, black, local, activities, mainstream\", \"+++ anti<br>--- cdc, global, results, skin, children, justice, 3, sugar, black, helps\", \"+++ real, right, country, global, political, elections, years, states, state, u<br>--- switched, results, votes, voter, justice, going, tape, voted, 8, sent\", \"+++ real, control, power, self, free, society, today, long, way, social<br>--- consider, global, focus, issues, based, knowledge, justice, black, mainstream, means\", \"+++ leaders, states, middle, world, united, end, media, political, state, policy<br>--- millions, coup, invasion, peace, clinton, neocon, global, washington, years, revolution\", \"+++ right, national, states, americans, united, justice, state, policy, white, government<br>--- and, mexican, groups, office, civil, money, executive, washington, supreme, one\", \"+++ world, national, history, years<br>--- phenomenon, founder, global, alien, extraterrestrial, tv, 0, black, extraterrestrials, mainstream\", \"+++ president, media, national, political, state, elections, states, american, americans, fact<br>--- global, results, democrats, debate, votes, justice, candidates, carolina, mainstream, far\", \"+++ media, rights, countries, country, support, government, political, american, foreign, states<br>--- particularly, global, gulf, justice, black, mainstream, far, despite, report, trade\", \"+++ the, right, us, long, order, americans, free, white, crisis<br>--- ron, lack, jay, justice, obamacare, black, brown, global, mainstream, far\", \"+++ real, countries, u, government, global, free, trade, state, street, economic<br>--- sector, gold, dollar, chinese, justice, black, treasury, mainstream, far, progressive\", \"+++ the, left, black, long, years<br>--- planetary, queen, discovered, earth, justice, explain, global, mainstream, far, famous\", \"+++ global, years, course, justice, black, policy, decades, elites, real, them<br>--- \", \"+++ the, state, black, public, years<br>--- shot, global, allegations, gang, children, suicide, justice, crime, woman, mainstream\", \"+++ government, support, us, middle, state, groups, military, international, the, war<br>--- rebels, global, qaeda, mosul, battle, soldiers, turkish, justice, iraqi, black\", \"+++ fight, middle, social, party, years, left<br>--- shot, global, children, justice, father, young, foster, black, local, wearing\", \"+++ states, national, the, years<br>--- founder, global, children, justice, father, black, garden, far, evolution, heaven\"], [\"+++ according, attack, officials, news, the, told<br>--- shot, chinese, allegations, gang, children, suicide, crime, black, woman, regional\", \"+++ life, death, men, times, state, the, called, man<br>--- shot, pope, global, allegations, souls, gang, earth, fear, religious, children\", \"+++ place, life, stop, years<br>--- saying, all, shot, allegations, gang, children, trying, crime, going, black\", \"+++ news<br>--- code, shot, allegations, gang, follow, trunews, suicide, tv, crime, 0\", \"+++ state, life<br>--- fungal, shot, ginseng, allegations, mild, gang, children, suicide, crime, black\", \"+++ city, police, lives, stop, according, officers, state, black, home, the<br>--- shot, allegations, protest, gang, children, suicide, crime, riots, thousands, protestors\", \"+++ story, times, reported, report, news, the, public, told<br>--- saying, shot, allegations, gang, debate, suicide, tv, tweet, crime, black\", \"+++ police, arrested, began, stop, according, reports, state, department, news<br>--- shot, corps, allegations, mile, gang, children, ground, partners, suicide, sheriff\", \"+++ city, death, later, public, news, the, called, happened<br>--- shot, chinese, german, allegations, gang, hungary, children, suicide, paris, crime\", \"+++ ago, according, years, reported, state, year, report, home, news, times<br>--- shot, global, allegations, month, gang, children, suicide, crime, 0, black\", \"+++ chief, times, public, state, claims, the, years, called<br>--- all, shot, allegations, gang, children, staff, suicide, writes, wmw, crime\", \"+++ reported, chief, killed, reports, officer<br>--- rtd, shot, allegations, gang, battle, soldiers, children, suicide, tweet, thursday\", \"+++ case, attorney, according, reports, evidence, reported, state, officials, investigation, department<br>--- shot, probe, allegations, discovered, gang, children, staff, suicide, justice, crime\", \"+++ according, years<br>--- atmosphere, shot, caused, magnetic, allegations, gang, earth, children, suicide, electricity\", \"+++ year, called, man, years<br>--- shot, allegations, gang, tweeted, children, certainly, suicide, crime, going, black\", \"+++ state, death, later, year<br>--- shot, wakingtimes, allegations, gang, nevada, children, occupation, suicide, crime, edward\", \"+++ case, story, evidence, later, cover, times, investigation, black, news, years<br>--- shot, stephens, allegations, sexist, gang, talks, alt, hate, children, suicide\", \"+++ children<br>--- shot, text, allegations, results, gang, formating, suicide, appears, state, send\", \"+++ attorney, crimes, evidence, officials, year, police, crime, state, prison, department<br>--- shot, violation, issued, allegations, gang, children, suicide, sheriff, justice, going\", \"+++ medical, cases, children<br>--- shot, cdc, doctors, allegations, results, gang, skin, milk, suicide, 3\", \"+++ according, reports, years, reported, state, officials, news, the, evidence, told<br>--- shot, switched, global, allegations, results, gang, children, votes, voter, crime\", \"+++ lives, home, life, place<br>--- shot, consider, allegations, focus, gang, children, issues, suicide, based, knowledge\", \"+++ the, state, attack, called<br>--- shot, allegations, gang, children, suicide, zone, turkish, crime, bush, black\", \"+++ attorney, court, state, chief, year, department, the<br>--- shot, allegations, gang, children, issues, judges, suicide, justice, crime, program\", \"+++ case, later, according, reports, years, reported, report, evidence, told<br>--- shot, phenomenon, founder, allegations, alien, gang, children, suicide, extraterrestrial, tv\", \"+++ news, state, according, told<br>--- shot, allegations, results, democrats, debate, votes, suicide, crime, candidates, carolina\", \"+++ crimes, evidence, state, year, report, claims, called<br>--- particularly, allegations, gang, shot, children, suicide, gulf, crime, black, woman\", \"+++ report, news, the, cover, city<br>--- shot, ron, lack, allegations, gang, children, suicide, jay, obamacare, crime\", \"+++ news, state, year, years<br>--- sector, shot, gold, global, dollar, gang, children, suicide, chinese, crime\", \"+++ ago, according, years, place, black, the, evidence, called<br>--- planetary, shot, queen, allegations, discovered, gang, earth, children, suicide, explain\", \"+++ the, state, black, public, years<br>--- shot, global, allegations, gang, children, flowers, justice, crime, woman, mainstream\", \"+++ shot, allegations, years, kill, gang, victim, committed, children, suicide, police<br>--- \", \"+++ city, according, reports, killing, state, the, attack, killed<br>--- zionist, shot, rebels, allegations, qaeda, mosul, battle, soldiers, children, suicide\", \"+++ man, story, woman, old, took, family, home, men, life, later<br>--- allegations, gang, suicide, father, young, crime, foster, black, local, wearing\", \"+++ ago, death, medical, years, the, children<br>--- shot, founder, allegations, gang, suicide, father, crime, black, plants, woman\"], [\"+++ operations, including, group, troops, eastern, weapons, attack, forces, international, east<br>--- alliance, rebels, chinese, presence, al, civilians, washington, terrorist, strategic, held\", \"+++ state, the, us<br>--- rebels, pope, global, souls, qaeda, mosul, battle, earth, fear, religious\", \"+++ us<br>--- saying, all, rebels, qaeda, mosul, battle, soldiers, trying, turkish, daesh\", \"+++ support, october<br>--- code, 0, qaeda, mosul, battle, follow, trunews, rebels, access, turkish\", \"+++ state, campaign<br>--- fungal, rebels, ginseng, mild, qaeda, mosul, battle, soldiers, turkish, iraqi\", \"+++ city, group, groups, government, according, state, 000, opposition, security, attack<br>--- rebels, protest, qaeda, mosul, battle, soldiers, turkish, riots, iraqi, black\", \"+++ the, campaign<br>--- saying, rebels, qaeda, mosul, battle, soldiers, debate, turkish, tv, tweet\", \"+++ october, army, region, area, according, reports, state, support<br>--- rebels, corps, mile, mosul, battle, soldiers, ground, partners, sheriff, turkish\", \"+++ city, eastern, government, jewish, west, muslim, minister, the, east, war<br>--- rebels, chinese, german, qaeda, mosul, battle, hungary, turkish, paris, daesh\", \"+++ october, support, according, state, 000, the<br>--- rebels, global, month, qaeda, mosul, battle, soldiers, turkish, daesh, iraqi\", \"+++ operations, group, government, support, state, 000, including, the<br>--- all, rebels, qaeda, mosul, battle, soldiers, staff, access, turkish, writes\", \"+++ october, army, reports, air, minister, military, battle, soldiers, killed<br>--- rtd, rebels, qaeda, mosul, turkish, tweet, state, thursday, iraqi, terror\", \"+++ october, campaign, according, reports, state, 000, the<br>--- rebels, probe, discovered, qaeda, mosul, battle, soldiers, staff, turkish, justice\", \"+++ air, according, area<br>--- atmosphere, rebels, caused, magnetic, produce, qaeda, mosul, battle, earth, cell\", \"+++ campaign<br>--- rebels, qaeda, mosul, battle, soldiers, tweeted, supporter, certainly, turkish, daesh\", \"+++ armed, security, group, state, government<br>--- rebels, wakingtimes, qaeda, mosul, jury, battle, soldiers, nevada, occupation, turkish\", \"+++ october, iran, war<br>--- rebels, stephens, sexist, qaeda, mosul, talks, soldiers, alt, hate, turkish\", \"+++ jewish<br>--- rebels, text, results, qaeda, mosul, battle, soldiers, children, formating, appears\", \"+++ government, according, reports, state, including, security<br>--- rebels, violation, issued, qaeda, mosul, battle, soldiers, sheriff, turkish, justice\", \"+++ including<br>--- rebels, cdc, results, qaeda, mosul, skin, battle, soldiers, children, vaccines\", \"+++ jewish, according, reports, held, state, the<br>--- rebels, switched, global, results, qaeda, mosul, battle, soldiers, votes, voter\", \"+++ <br>--- consider, focus, qaeda, mosul, battle, soldiers, issues, rebels, current, based\", \"+++ middle, syrian, regime, turkey, turkish, west, government, state, attack, international<br>--- rebels, qaeda, mosul, battle, soldiers, current, zone, iraqi, bush, terror\", \"+++ group, campaign, government, muslim, state, 000, security, the<br>--- rebels, qaeda, mosul, battle, soldiers, issues, judges, turkish, justice, iraqi\", \"+++ group, according, reports<br>--- phenomenon, founder, alien, qaeda, mosul, battle, soldiers, rebels, extraterrestrial, tv\", \"+++ state, support, according, campaign<br>--- rebels, secretary, results, qaeda, democrats, battle, soldiers, debate, votes, turkish\", \"+++ terrorist, group, campaign, government, attacks, region, al, war, weapons, middle<br>--- particularly, rebels, qaeda, mosul, battle, soldiers, gulf, turkish, iraqi, terror\", \"+++ city, the, al, us, air<br>--- rebels, ron, lack, qaeda, mosul, battle, soldiers, jay, obamacare, daesh\", \"+++ state, government<br>--- sector, rebels, gold, global, dollar, qaeda, mosul, battle, soldiers, weapons\", \"+++ the, according, area<br>--- planetary, rebels, queen, discovered, qaeda, mosul, battle, earth, turkish, explain\", \"+++ government, support, us, middle, state, groups, military, international, the, war<br>--- rebels, global, qaeda, mosul, battle, soldiers, turkish, justice, iraqi, black\", \"+++ city, according, reports, killing, state, the, attack, killed<br>--- pedophile, shot, rebels, allegations, qaeda, gang, battle, soldiers, children, suicide\", \"+++ operations, rebels, held, fighters, qaeda, including, mosul, assad, battle, soldiers<br>--- \", \"+++ middle, muslim, october<br>--- shot, rebels, qaeda, mosul, battle, soldiers, children, turkish, father, young\", \"+++ the, jerusalem<br>--- rebels, founder, qaeda, mosul, battle, soldiers, children, turkish, father, daesh\"], [\"+++ october, told<br>--- shot, chinese, children, father, young, foster, local, wearing, woman, regional\", \"+++ life, love, away, men, born, day, man<br>--- shot, pope, global, souls, earth, fear, religious, children, knowledge, father\", \"+++ away, says, day, life, years<br>--- saying, all, shot, children, trying, father, young, going, posted, local\", \"+++ october, help, share, daily, social, november, posted<br>--- code, shot, follow, trunews, tv, father, young, 0, foster, local\", \"+++ life<br>--- fungal, shot, ginseng, mild, children, father, young, foster, posted, local\", \"+++ home, local, day, left<br>--- shot, brother, protest, children, father, young, riots, foster, black, thousands\", \"+++ story, share, daily, morning, video, social, posted, day, told<br>--- saying, shot, debate, tv, tweet, father, young, foster, local, wearing\", \"+++ says, october, local<br>--- shot, corps, mile, children, ground, partners, sheriff, father, young, thursday\", \"+++ muslim, says, came, later, women<br>--- shot, chinese, german, hungary, children, paris, father, young, foster, communist\", \"+++ october, says, 6, years, year, home, november, day, posted<br>--- shot, global, month, children, father, young, 0, foster, 8, local\", \"+++ years<br>--- all, shot, children, staff, writes, wmw, young, to, foster, photo\", \"+++ october, service, car, hospital, 6, hours, night, november, day, posted<br>--- rtd, shot, battle, soldiers, children, tweet, father, young, thursday, foster\", \"+++ house, october, husband, told<br>--- shot, probe, discovered, children, staff, justice, father, young, foster, huma\", \"+++ years<br>--- atmosphere, shot, caused, magnetic, earth, children, electricity, father, young, environment\", \"+++ says, left, house, share, him, year, november, years, day, man<br>--- shot, tweeted, children, certainly, father, young, going, 8, he, local\", \"+++ face, later, year<br>--- shot, wakingtimes, nevada, children, occupation, father, young, edward, posted, local\", \"+++ story, october, house, later, years, november, man<br>--- shot, stephens, sexist, talks, alt, hate, children, father, young, bush\", \"+++ school, help, children<br>--- shot, text, results, formating, father, young, send, foster, local, meant\", \"+++ told, local, gun, service, year<br>--- shot, violation, issued, children, sheriff, justice, daily, father, young, crime\", \"+++ blood, women, help, day, children<br>--- shot, cdc, results, skin, milk, father, young, sugar, foster, helps\", \"+++ posted, told, says, day, years<br>--- shot, switched, global, results, children, votes, voter, father, young, going\", \"+++ home, life, face, help, social<br>--- shot, consider, particular, focus, children, issues, based, knowledge, father, young\", \"+++ middle<br>--- shot, children, zone, turkish, father, young, bush, foster, saw, posted\", \"+++ house, muslim, gun, year<br>--- shot, children, issues, judges, justice, father, young, program, creamer, photo\", \"+++ later, years, eddie, video, told, posted<br>--- shot, phenomenon, founder, alien, children, extraterrestrial, tv, father, young, 0\", \"+++ house, she, party, november, day, told<br>--- shot, results, democrats, debate, democrat, votes, father, young, foster, candidates\", \"+++ middle, year<br>--- particularly, shot, children, gulf, father, young, foster, photo, local, wearing\", \"+++ house, away, help, service<br>--- shot, ron, lack, brother, children, jay, obamacare, young, foster, posted\", \"+++ year, years<br>--- sector, shot, gold, global, dollar, children, chinese, father, young, foster\", \"+++ left, came, years<br>--- planetary, shot, queen, discovered, earth, children, explain, father, young, foster\", \"+++ fight, middle, social, party, years, left<br>--- shot, global, children, justice, father, young, foster, black, local, wearing\", \"+++ man, story, woman, old, took, family, home, men, life, later<br>--- allegations, gang, suicide, father, young, crime, foster, black, local, wearing\", \"+++ middle, muslim, october<br>--- shot, rebels, qaeda, mosul, battle, soldiers, children, turkish, father, young\", \"+++ shot, help, photo, years, victim, children, father, young, him, foster<br>--- \", \"+++ son, father, children, years<br>--- shot, founder, mosque, young, foster, local, wearing, woman, garden, him\"], [\"+++ states, use, the<br>--- chinese, children, founder, mosque, garden, regional, coast, joint, evolution, heaven\", \"+++ faith, death, humans, jesus, book, human, the<br>--- pope, global, souls, earth, fear, religious, children, founder, religion, father\", \"+++ d, years<br>--- saying, all, founder, children, one, trying, re, father, going, do\", \"+++ a, use, related, author<br>--- code, founder, follow, trunews, tv, mosque, 0, garden, facebook, evolution\", \"+++ cannabis<br>--- vitamins, fungal, founder, ginseng, mild, children, medicinal, father, ingredient, garden\", \"+++ the, non, california, national, san<br>--- founder, protest, children, father, riots, black, thousands, protestors, plants, garden\", \"+++ movie, the, youtube<br>--- saying, founder, debate, tv, tweet, father, mainstream, watch, facebook, reporters\", \"+++ states, national<br>--- corps, mile, children, ground, partners, founder, sheriff, father, state, thursday\", \"+++ states, national, death, the<br>--- called, chinese, german, known, hungary, children, founder, paris, mosque, communist\", \"+++ ago, the, study, period, years<br>--- founder, global, month, children, father, state, 0, 8, posted, oct\", \"+++ a, the, non, industry, years<br>--- all, founder, children, staff, writes, mosque, to, include, activities, garden\", \"+++ a, national<br>--- rtd, founder, battle, soldiers, children, tweet, father, thursday, posted, veterans\", \"+++ use, the, related<br>--- founder, probe, discovered, children, staff, justice, mosque, bureau, huma, sent\", \"+++ use, scientific, science, industry, non, years, california, human, growing, study<br>--- atmosphere, founder, caused, magnetic, known, earth, children, electricity, mosque, environment\", \"+++ states, years<br>--- founder, tweeted, children, certainly, mosque, going, 8, obama, hope, 11\", \"+++ national, death<br>--- founder, wakingtimes, nevada, children, occupation, father, edward, fda, garden, torture\", \"+++ national, book, years<br>--- stephens, sexist, talks, alt, hate, children, founder, father, bush, investigation\", \"+++ a, use, parents, children<br>--- founder, text, results, formating, 95, father, send, meant, garden, emphasized\", \"+++ states, national, use, drug<br>--- founder, violation, issued, children, sheriff, justice, mosque, crime, going, local\", \"+++ use, d, drugs, science, study, medical, birth, children<br>--- founder, cdc, results, known, skin, milk, father, sugar, helps, garden\", \"+++ states, the, d, years<br>--- founder, switched, global, results, children, votes, voter, re, father, going\", \"+++ use, human<br>--- consider, founder, focus, children, issues, based, knowledge, original, father, garden\", \"+++ states, the<br>--- founder, children, zone, turkish, mosque, bush, plants, garden, tanks, assad\", \"+++ states, the, national, california, d<br>--- founder, children, issues, judges, justice, 95, mosque, program, creamer, congressional\", \"+++ related, national, scientific, founder, years<br>--- phenomenon, alien, children, extraterrestrial, tv, mosque, 0, extraterrestrials, garden, egyptian\", \"+++ states, national<br>--- founder, results, democrats, debate, votes, father, candidates, carolina, garden, michigan\", \"+++ states, human<br>--- particularly, founder, children, gulf, hayden, father, garden, despite, report, governments\", \"+++ the, d<br>--- ron, lack, children, founder, jay, mosque, brown, garden, worst, report\", \"+++ industry, years<br>--- sector, gold, global, dollar, prices, children, chinese, mosque, treasury, street\", \"+++ ago, a, science, study, years, the<br>--- planetary, founder, queen, discovered, known, earth, children, explain, mosque, black\", \"+++ states, national, the, years<br>--- founder, global, children, justice, mosque, black, mainstream, far, evolution, heaven\", \"+++ ago, death, medical, years, the, children<br>--- shot, founder, allegations, gang, suicide, father, crime, black, plants, woman\", \"+++ the, jerusalem<br>--- rebels, founder, qaeda, mosul, battle, soldiers, children, turkish, father, daesh\", \"+++ son, father, children, years<br>--- shot, founder, mosque, young, foster, local, wearing, woman, garden, him\", \"+++ founder, produces, rest, years, human, children, death, gmo, pharma, recreational<br>--- \"]], \"hoverinfo\": \"x+y+z+text\", \"y\": [5.0, 15.0, 25.0, 35.0, 45.0, 55.0, 65.0, 75.0, 85.0, 95.0, 105.0, 115.0, 125.0, 135.0, 145.0, 155.0, 165.0, 175.0, 185.0, 195.0, 205.0, 215.0, 225.0, 235.0, 245.0, 255.0, 265.0, 275.0, 285.0, 295.0, 305.0, 315.0, 325.0, 335.0, 345.0], \"x\": [5.0, 15.0, 25.0, 35.0, 45.0, 55.0, 65.0, 75.0, 85.0, 95.0, 105.0, 115.0, 125.0, 135.0, 145.0, 155.0, 165.0, 175.0, 185.0, 195.0, 205.0, 215.0, 225.0, 235.0, 245.0, 255.0, 265.0, 275.0, 285.0, 295.0, 305.0, 315.0, 325.0, 335.0, 345.0], \"z\": [[0.0, 0.6343477918460758, 0.6435998668262606, 0.6446003010474792, 0.6485527685401011, 0.6272047011775295, 0.6377494183310974, 0.6446122853901808, 0.6462302697064812, 0.6424188214057551, 0.6431885897411144, 0.6383162844078716, 0.6519711902059808, 0.6326935836042389, 0.635842387462401, 0.6373978020068664, 0.6509217733346516, 0.6427384305018415, 0.6446490439142821, 0.6555496273803868, 0.649722281421471, 0.6450339665225586, 0.6452663452075574, 0.6426880518727507, 0.6543351245266337, 0.646970248626161, 0.6407668641924651, 0.6492284609430042, 0.6457647142833636, 0.6528094131471915, 0.6389925940775634, 0.6495258432224651, 0.6371457475937663, 0.5780112123394057, 0.6416115313599833], [0.6343477918460758, 0.0, 0.6121274748736927, 0.6338644737269848, 0.614834550727635, 0.6108850560317638, 0.6044265901631949, 0.6182278681588201, 0.5790355354893063, 0.572056440252791, 0.6127301997293105, 0.6148265896330367, 0.6079482050973943, 0.6305300305555379, 0.6128500033331308, 0.6096963480466306, 0.5764024940339914, 0.5587693679862034, 0.6163360552646882, 0.6110397739238136, 0.5875455239930147, 0.5802123388068601, 0.5982407469681987, 0.6039227359918914, 0.6037816573737682, 0.609917664997688, 0.6019393545945855, 0.5543759403745823, 0.540891760834232, 0.6004246088169611, 0.6298967191335623, 0.6186239937483338, 0.6089082684463722, 0.6077830201957765, 0.5968274685449119], [0.6435998668262606, 0.6121274748736927, 0.0, 0.6129945899493718, 0.6193831373477126, 0.625926897387258, 0.6109599735035676, 0.6077407032923106, 0.6094129624780951, 0.6121060448489761, 0.6154954485501769, 0.625661998988811, 0.615872223811504, 0.6137094562481342, 0.6164073501181003, 0.5968509624411916, 0.6101542520154625, 0.6121446187843509, 0.634156155600013, 0.5904362398895375, 0.6285810058058585, 0.6237880175215047, 0.6030973112221445, 0.6164104419697078, 0.6148787628424276, 0.6157995856203462, 0.5997526508299013, 0.6169882474306885, 0.6185391589425295, 0.6238742072003819, 0.5891535093958855, 0.5974912574639135, 0.6022206826882269, 0.5941015658456732, 0.6218788835373223], [0.6446003010474792, 0.6338644737269848, 0.6129945899493718, 0.0, 0.6353208275703369, 0.597640531326515, 0.6038579449037506, 0.602263236318795, 0.6243133665641964, 0.6251120910691634, 0.6154651048876574, 0.6153083393038125, 0.6080908920875427, 0.5982558375649262, 0.6000584720123727, 0.5858451954093298, 0.6152350403957735, 0.6057953049164858, 0.6209643331069182, 0.6166788870324156, 0.6134487733253483, 0.6039856900128228, 0.616574135280726, 0.6262775469806947, 0.6297048363041, 0.6255337032047152, 0.5988658669987039, 0.6227848301103192, 0.6217714173112974, 0.6267877524025983, 0.6069428261665237, 0.5988234047371995, 0.6225552953363357, 0.6242668884109961, 0.6161852903563267], [0.6485527685401011, 0.614834550727635, 0.6193831373477126, 0.6353208275703369, 0.0, 0.6126332096477383, 0.5993853921161925, 0.6185016857968891, 0.5725490768669301, 0.6102048871604775, 0.5858532117669191, 0.6113629590050981, 0.6141662783826298, 0.608011887131336, 0.6012365816017964, 0.5948657222467189, 0.6014332176788457, 0.6069846012015783, 0.5793384067906197, 0.5536578293442904, 0.604133244076441, 0.597767909828899, 0.550715830720343, 0.5897593975717713, 0.5887897296235955, 0.5749650757762319, 0.5832736927668631, 0.5981121641687539, 0.5926712759870403, 0.5846384926184345, 0.5883715900808248, 0.5761272360485552, 0.6035831882504623, 0.6235521833168944, 0.6011191937433236], [0.6272047011775295, 0.6108850560317638, 0.625926897387258, 0.597640531326515, 0.6126332096477383, 0.0, 0.5867131462856516, 0.5638635461314825, 0.5974792291071274, 0.5848779887531876, 0.5847385962695069, 0.5583322877280728, 0.5972521798872321, 0.5911383819779656, 0.5743209070905664, 0.5774840952534026, 0.5994235991425734, 0.5765059657839993, 0.5935930624902532, 0.5973045794567884, 0.5531315219400923, 0.5533074961313168, 0.5781613966277044, 0.5343489775664896, 0.6051646452954924, 0.593856550644376, 0.5546500455879606, 0.5818311102262002, 0.5533298350064723, 0.5786148268508677, 0.5745161719507574, 0.5777045587664382, 0.5739262119126349, 0.5936470977885799, 0.5749384426875435], [0.6377494183310974, 0.6044265901631949, 0.6109599735035676, 0.6038579449037506, 0.5993853921161925, 0.5867131462856516, 0.0, 0.6017216493175096, 0.5820843819232379, 0.573454942837188, 0.5617731117817422, 0.556037410362956, 0.5698841221680253, 0.5769132835728834, 0.600032747943392, 0.586656540754906, 0.6039437882091867, 0.5897980770815547, 0.5612525702604504, 0.5727640187972294, 0.5545586694752642, 0.5682199616218612, 0.5477492429264117, 0.5671377701437841, 0.5944907396877058, 0.5827019109370701, 0.5315863961124565, 0.5762652916006556, 0.5567615688659173, 0.5478221378217581, 0.5524521789269253, 0.5230832309482065, 0.5871193691541385, 0.6078912593508399, 0.5944513903788413], [0.6446122853901808, 0.6182278681588201, 0.6077407032923106, 0.602263236318795, 0.6185016857968891, 0.5638635461314825, 0.6017216493175096, 0.0, 0.6064325919234714, 0.5906658475136385, 0.5911367950168949, 0.6032666640305544, 0.5967173615516373, 0.5813618775313008, 0.5522793690568477, 0.589422463113516, 0.595393859091333, 0.569540787722024, 0.6053404926199486, 0.5746474147692485, 0.6026696645930234, 0.5749409505977375, 0.6172673902907948, 0.5815510413771847, 0.5937267558430033, 0.6032750193755492, 0.5647743124510578, 0.6031707705273603, 0.5690861837182244, 0.6083951075407514, 0.5777698150310802, 0.588560241292071, 0.5983440815370368, 0.618264102581534, 0.592623781294704], [0.6462302697064812, 0.5790355354893063, 0.6094129624780951, 0.6243133665641964, 0.5725490768669301, 0.5974792291071274, 0.5820843819232379, 0.6064325919234714, 0.0, 0.518937944021988, 0.5803420500805524, 0.5668746653611421, 0.5796454829713387, 0.5855017743636075, 0.5994109085618953, 0.5914038154487316, 0.5631244639917137, 0.5727916883985181, 0.5841889891165206, 0.555833980100676, 0.5518400702169708, 0.5407740770117151, 0.5550707606188358, 0.5843249446188592, 0.5687955216400282, 0.5633890897829159, 0.5643936896081635, 0.5332423155222907, 0.5414379345123359, 0.5544487239859874, 0.5713497869111972, 0.51959967352208, 0.5780297364240997, 0.6168105873876938, 0.5808742088503307], [0.6424188214057551, 0.572056440252791, 0.6121060448489761, 0.6251120910691634, 0.6102048871604775, 0.5848779887531876, 0.573454942837188, 0.5906658475136385, 0.518937944021988, 0.0, 0.6020558026490337, 0.5665058722959213, 0.5904009158509228, 0.5931270639857379, 0.5770942325183734, 0.5766077583650578, 0.5910539700924045, 0.5544389284258566, 0.5724113814441976, 0.5866578244827318, 0.5433514034322147, 0.5639078456668749, 0.5697414075113811, 0.5671686882463245, 0.5949146157000808, 0.5781018810307991, 0.5654721575938212, 0.5339212844082966, 0.5077413100654786, 0.5696081975761522, 0.5918861769713895, 0.560702844749007, 0.5780100151790145, 0.6067061083513092, 0.5817460691707508], [0.6431885897411144, 0.6127301997293105, 0.6154954485501769, 0.6154651048876574, 0.5858532117669191, 0.5847385962695069, 0.5617731117817422, 0.5911367950168949, 0.5803420500805524, 0.6020558026490337, 0.0, 0.5728634833212463, 0.5700064253903508, 0.580697355686499, 0.6163668500159512, 0.5950809822478652, 0.5867882962253821, 0.57745655208903, 0.5983896300238276, 0.5485876313507372, 0.5645887380507923, 0.5378846938773634, 0.531182031400421, 0.5314516157335448, 0.554542009771222, 0.5346691765000229, 0.5340564642200387, 0.5834746905560834, 0.5659366003346467, 0.548790984445183, 0.558066055224137, 0.5042004575112055, 0.5677785230063093, 0.6145603379886896, 0.558689895182277], [0.6383162844078716, 0.6148265896330367, 0.625661998988811, 0.6153083393038125, 0.6113629590050981, 0.5583322877280728, 0.556037410362956, 0.6032666640305544, 0.5668746653611421, 0.5665058722959213, 0.5728634833212463, 0.0, 0.5558205390039179, 0.5822915142453782, 0.597420524780971, 0.5697025250907772, 0.6101482768099606, 0.5520517971890426, 0.5345108107545546, 0.5837512167087746, 0.5520557198575557, 0.5553020495558703, 0.5138259131000952, 0.5421822818397075, 0.5861980181276637, 0.5497428030208775, 0.504301894183621, 0.492581804564709, 0.5094412007771558, 0.48832819852723464, 0.5596195433468915, 0.4873003435720632, 0.5690095372832025, 0.6025567600380475, 0.5562304608733372], [0.6519711902059808, 0.6079482050973943, 0.615872223811504, 0.6080908920875427, 0.6141662783826298, 0.5972521798872321, 0.5698841221680253, 0.5967173615516373, 0.5796454829713387, 0.5904009158509228, 0.5700064253903508, 0.5558205390039179, 0.0, 0.5642484448563618, 0.6104553346014427, 0.5929601154294721, 0.585058192775026, 0.582892801141204, 0.568943909095732, 0.5500362166855065, 0.5813928526797865, 0.5624979669217576, 0.5732090252425486, 0.5875430353642586, 0.576465993153489, 0.5827770410467827, 0.5506077176667121, 0.5320052337361201, 0.5203272914791119, 0.5251512024359143, 0.5685128084227067, 0.4960557705875634, 0.587017162522565, 0.6322894478205126, 0.5862176582456311], [0.6326935836042389, 0.6305300305555379, 0.6137094562481342, 0.5982558375649262, 0.608011887131336, 0.5911383819779656, 0.5769132835728834, 0.5813618775313008, 0.5855017743636075, 0.5931270639857379, 0.580697355686499, 0.5822915142453782, 0.5642484448563618, 0.0, 0.563505922229097, 0.5727223384391723, 0.5870197501860341, 0.5816171617478862, 0.5730276858178616, 0.514537773390154, 0.5783498428499507, 0.5818726860998927, 0.5976956284663353, 0.5952283303094598, 0.5831728933624131, 0.5958538795642092, 0.5576403507591265, 0.5790739572508656, 0.5723353505934616, 0.570006851466208, 0.47984528101585433, 0.47236575167597566, 0.5991159556768785, 0.6349435905106451, 0.6044441297491218], [0.635842387462401, 0.6128500033331308, 0.6164073501181003, 0.6000584720123727, 0.6012365816017964, 0.5743209070905664, 0.600032747943392, 0.5522793690568477, 0.5994109085618953, 0.5770942325183734, 0.6163668500159512, 0.597420524780971, 0.6104553346014427, 0.563505922229097, 0.0, 0.48317168809799327, 0.6230360052833434, 0.5628858157181404, 0.5711736795942145, 0.5878800242996836, 0.5864909928412481, 0.5933074129368294, 0.6175878437517464, 0.5987945750970018, 0.6168422601355279, 0.6064132104638995, 0.5658846761533219, 0.5954799108559252, 0.5621136226221193, 0.6066317915960084, 0.5287186874148316, 0.5720403903835598, 0.6013564938036919, 0.6212047249634554, 0.6133969347058739], [0.6373978020068664, 0.6096963480466306, 0.5968509624411916, 0.5858451954093298, 0.5948657222467189, 0.5774840952534026, 0.586656540754906, 0.589422463113516, 0.5914038154487316, 0.5766077583650578, 0.5950809822478652, 0.5697025250907772, 0.5929601154294721, 0.5727223384391723, 0.48317168809799327, 0.0, 0.5814708690939238, 0.5197736945950107, 0.5397933609304195, 0.5314895495064673, 0.5623032450724003, 0.5762438540018565, 0.5881363513731064, 0.5732253808988452, 0.5984971416567056, 0.5741377394495251, 0.5317441650927259, 0.5813621094643785, 0.5565485540444208, 0.5793172005371702, 0.5013536397286693, 0.5370205156373834, 0.582059893596977, 0.6009245150713194, 0.586345343852107], [0.6509217733346516, 0.5764024940339914, 0.6101542520154625, 0.6152350403957735, 0.6014332176788457, 0.5994235991425734, 0.6039437882091867, 0.595393859091333, 0.5631244639917137, 0.5910539700924045, 0.5867882962253821, 0.6101482768099606, 0.585058192775026, 0.5870197501860341, 0.6230360052833434, 0.5814708690939238, 0.0, 0.5554241364252843, 0.6142519802390423, 0.5397406566790335, 0.5815241848392518, 0.5117708938168017, 0.5822683963792145, 0.5673746006038107, 0.5725695386199634, 0.5768851006692906, 0.5768556353782428, 0.5747970565086631, 0.5891744042494493, 0.6071943478480634, 0.5983525440783222, 0.5976725893281137, 0.5915450229080612, 0.6039891980579086, 0.5594039754519595], [0.6427384305018415, 0.5587693679862034, 0.6121446187843509, 0.6057953049164858, 0.6069846012015783, 0.5765059657839993, 0.5897980770815547, 0.569540787722024, 0.5727916883985181, 0.5544389284258566, 0.57745655208903, 0.5520517971890426, 0.582892801141204, 0.5816171617478862, 0.5628858157181404, 0.5197736945950107, 0.5554241364252843, 0.0, 0.5217531658096084, 0.5519394123570995, 0.5623592568315112, 0.5468475339096033, 0.5611633268315502, 0.5468939378458515, 0.551943618124542, 0.5296384237369225, 0.5324762708355046, 0.5443456109310607, 0.5108590179306534, 0.5679124270960569, 0.54758442690403, 0.5438833770882693, 0.5642705949836373, 0.5679033838077432, 0.5653892059345309], [0.6446490439142821, 0.6163360552646882, 0.634156155600013, 0.6209643331069182, 0.5793384067906197, 0.5935930624902532, 0.5612525702604504, 0.6053404926199486, 0.5841889891165206, 0.5724113814441976, 0.5983896300238276, 0.5345108107545546, 0.568943909095732, 0.5730276858178616, 0.5711736795942145, 0.5397933609304195, 0.6142519802390423, 0.5217531658096084, 0.0, 0.542761728047879, 0.5560649763120009, 0.5946678694280896, 0.5330991125297542, 0.5726101819726026, 0.5842025551911201, 0.5704504265922044, 0.49609310950836605, 0.5806085222806919, 0.5090067524107327, 0.5503104785524194, 0.5229892412032835, 0.47615813358876247, 0.5874375527771454, 0.6088341352668657, 0.6071040524632135], [0.6555496273803868, 0.6110397739238136, 0.5904362398895375, 0.6166788870324156, 0.5536578293442904, 0.5973045794567884, 0.5727640187972294, 0.5746474147692485, 0.555833980100676, 0.5866578244827318, 0.5485876313507372, 0.5837512167087746, 0.5500362166855065, 0.514537773390154, 0.5878800242996836, 0.5314895495064673, 0.5397406566790335, 0.5519394123570995, 0.542761728047879, 0.0, 0.5667775321895533, 0.5458409871672326, 0.5502233029720112, 0.5215073064593527, 0.503289423145035, 0.5236348341899275, 0.5160454480022671, 0.5781383055448426, 0.5665699217614912, 0.5273807904236462, 0.4580327081116753, 0.4755681605172405, 0.5347426681161087, 0.6106007149600006, 0.550757272447808], [0.649722281421471, 0.5875455239930147, 0.6285810058058585, 0.6134487733253483, 0.604133244076441, 0.5531315219400923, 0.5545586694752642, 0.6026696645930234, 0.5518400702169708, 0.5433514034322147, 0.5645887380507923, 0.5520557198575557, 0.5813928526797865, 0.5783498428499507, 0.5864909928412481, 0.5623032450724003, 0.5815241848392518, 0.5623592568315112, 0.5560649763120009, 0.5667775321895533, 0.0, 0.47899623110102035, 0.48938878402866776, 0.4692932134437505, 0.5801691404578276, 0.5663909275669508, 0.5188187604603343, 0.5374193841087717, 0.5067670123089854, 0.5467495517828906, 0.5374665549024689, 0.5157920957135902, 0.5480252936088637, 0.6067153657615343, 0.5728594745376], [0.6450339665225586, 0.5802123388068601, 0.6237880175215047, 0.6039856900128228, 0.597767909828899, 0.5533074961313168, 0.5682199616218612, 0.5749409505977375, 0.5407740770117151, 0.5639078456668749, 0.5378846938773634, 0.5553020495558703, 0.5624979669217576, 0.5818726860998927, 0.5933074129368294, 0.5762438540018565, 0.5117708938168017, 0.5468475339096033, 0.5946678694280896, 0.5458409871672326, 0.47899623110102035, 0.0, 0.5467247179223695, 0.5013131431278923, 0.578315579090691, 0.5631172536292912, 0.5259937330379167, 0.5304472327079826, 0.5507429685461223, 0.5656784869411895, 0.5789624951759419, 0.5402094582486863, 0.5617406065649322, 0.6344874341978559, 0.5554399385855842], [0.6452663452075574, 0.5982407469681987, 0.6030973112221445, 0.616574135280726, 0.550715830720343, 0.5781613966277044, 0.5477492429264117, 0.6172673902907948, 0.5550707606188358, 0.5697414075113811, 0.531182031400421, 0.5138259131000952, 0.5732090252425486, 0.5976956284663353, 0.6175878437517464, 0.5881363513731064, 0.5822683963792145, 0.5611633268315502, 0.5330991125297542, 0.5502233029720112, 0.48938878402866776, 0.5467247179223695, 0.0, 0.49163627840768886, 0.5314816158414989, 0.4994220490708092, 0.47939420933332527, 0.5495148318934004, 0.5047777584775771, 0.48483565702766995, 0.5672337528088347, 0.471551710940839, 0.5459156341072814, 0.6125698045544322, 0.5679891481525867], [0.6426880518727507, 0.6039227359918914, 0.6164104419697078, 0.6262775469806947, 0.5897593975717713, 0.5343489775664896, 0.5671377701437841, 0.5815510413771847, 0.5843249446188592, 0.5671686882463245, 0.5314516157335448, 0.5421822818397075, 0.5875430353642586, 0.5952283303094598, 0.5987945750970018, 0.5732253808988452, 0.5673746006038107, 0.5468939378458515, 0.5726101819726026, 0.5215073064593527, 0.4692932134437505, 0.5013131431278923, 0.49163627840768886, 0.0, 0.5139141598767921, 0.41213193291450523, 0.48326887022085874, 0.5512422219011544, 0.5217498519150072, 0.5195646892172884, 0.5474742824545833, 0.5355880118452042, 0.5345529647785081, 0.5687504781672474, 0.5133567057162977], [0.6543351245266337, 0.6037816573737682, 0.6148787628424276, 0.6297048363041, 0.5887897296235955, 0.6051646452954924, 0.5944907396877058, 0.5937267558430033, 0.5687955216400282, 0.5949146157000808, 0.554542009771222, 0.5861980181276637, 0.576465993153489, 0.5831728933624131, 0.6168422601355279, 0.5984971416567056, 0.5725695386199634, 0.551943618124542, 0.5842025551911201, 0.503289423145035, 0.5801691404578276, 0.578315579090691, 0.5314816158414989, 0.5139141598767921, 0.0, 0.38911071321147145, 0.5643286508497083, 0.5854430029149056, 0.5534017946931484, 0.5307418350558131, 0.5690024371174209, 0.5001662530322207, 0.5525091931103167, 0.6085181374672038, 0.565335421607568], [0.646970248626161, 0.609917664997688, 0.6157995856203462, 0.6255337032047152, 0.5749650757762319, 0.593856550644376, 0.5827019109370701, 0.6032750193755492, 0.5633890897829159, 0.5781018810307991, 0.5346691765000229, 0.5497428030208775, 0.5827770410467827, 0.5958538795642092, 0.6064132104638995, 0.5741377394495251, 0.5768851006692906, 0.5296384237369225, 0.5704504265922044, 0.5236348341899275, 0.5663909275669508, 0.5631172536292912, 0.4994220490708092, 0.41213193291450523, 0.38911071321147145, 0.0, 0.5192668137907049, 0.5622587491546478, 0.541776055964735, 0.5160158876815908, 0.5486016942760963, 0.4790892066011598, 0.4833149992369454, 0.6111713061626579, 0.5236068728622354], [0.6407668641924651, 0.6019393545945855, 0.5997526508299013, 0.5988658669987039, 0.5832736927668631, 0.5546500455879606, 0.5315863961124565, 0.5647743124510578, 0.5643936896081635, 0.5654721575938212, 0.5340564642200387, 0.504301894183621, 0.5506077176667121, 0.5576403507591265, 0.5658846761533219, 0.5317441650927259, 0.5768556353782428, 0.5324762708355046, 0.49609310950836605, 0.5160454480022671, 0.5188187604603343, 0.5259937330379167, 0.47939420933332527, 0.48326887022085874, 0.5643286508497083, 0.5192668137907049, 0.0, 0.552197691779307, 0.5101915457124961, 0.5254678282973502, 0.4805200541808038, 0.47494022582245526, 0.5453332714599454, 0.5694571471957096, 0.5276814582288774], [0.6492284609430042, 0.5543759403745823, 0.6169882474306885, 0.6227848301103192, 0.5981121641687539, 0.5818311102262002, 0.5762652916006556, 0.6031707705273603, 0.5332423155222907, 0.5339212844082966, 0.5834746905560834, 0.492581804564709, 0.5320052337361201, 0.5790739572508656, 0.5954799108559252, 0.5813621094643785, 0.5747970565086631, 0.5443456109310607, 0.5806085222806919, 0.5781383055448426, 0.5374193841087717, 0.5304472327079826, 0.5495148318934004, 0.5512422219011544, 0.5854430029149056, 0.5622587491546478, 0.552197691779307, 0.0, 0.4299259515991702, 0.4556294859295383, 0.5805580831176442, 0.5014465994290065, 0.5787454172531852, 0.6160622502647397, 0.5817393051734978], [0.6457647142833636, 0.540891760834232, 0.6185391589425295, 0.6217714173112974, 0.5926712759870403, 0.5533298350064723, 0.5567615688659173, 0.5690861837182244, 0.5414379345123359, 0.5077413100654786, 0.5659366003346467, 0.5094412007771558, 0.5203272914791119, 0.5723353505934616, 0.5621136226221193, 0.5565485540444208, 0.5891744042494493, 0.5108590179306534, 0.5090067524107327, 0.5665699217614912, 0.5067670123089854, 0.5507429685461223, 0.5047777584775771, 0.5217498519150072, 0.5534017946931484, 0.541776055964735, 0.5101915457124961, 0.4299259515991702, 0.0, 0.41279539616524397, 0.5257519052014734, 0.4762765150019238, 0.5594667520305179, 0.595941753706561, 0.5759623956074625], [0.6528094131471915, 0.6004246088169611, 0.6238742072003819, 0.6267877524025983, 0.5846384926184345, 0.5786148268508677, 0.5478221378217581, 0.6083951075407514, 0.5544487239859874, 0.5696081975761522, 0.548790984445183, 0.48832819852723464, 0.5251512024359143, 0.570006851466208, 0.6066317915960084, 0.5793172005371702, 0.6071943478480634, 0.5679124270960569, 0.5503104785524194, 0.5273807904236462, 0.5467495517828906, 0.5656784869411895, 0.48483565702766995, 0.5195646892172884, 0.5307418350558131, 0.5160158876815908, 0.5254678282973502, 0.4556294859295383, 0.41279539616524397, 0.0, 0.5292854176823545, 0.42859491366125924, 0.564737492446272, 0.6192260087779233, 0.5743680052676738], [0.6389925940775634, 0.6298967191335623, 0.5891535093958855, 0.6069428261665237, 0.5883715900808248, 0.5745161719507574, 0.5524521789269253, 0.5777698150310802, 0.5713497869111972, 0.5918861769713895, 0.558066055224137, 0.5596195433468915, 0.5685128084227067, 0.47984528101585433, 0.5287186874148316, 0.5013536397286693, 0.5983525440783222, 0.54758442690403, 0.5229892412032835, 0.4580327081116753, 0.5374665549024689, 0.5789624951759419, 0.5672337528088347, 0.5474742824545833, 0.5690024371174209, 0.5486016942760963, 0.4805200541808038, 0.5805580831176442, 0.5257519052014734, 0.5292854176823545, 0.0, 0.43904097868615893, 0.565767995828992, 0.5858468546844693, 0.5809043412314943], [0.6495258432224651, 0.6186239937483338, 0.5974912574639135, 0.5988234047371995, 0.5761272360485552, 0.5777045587664382, 0.5230832309482065, 0.588560241292071, 0.51959967352208, 0.560702844749007, 0.5042004575112055, 0.4873003435720632, 0.4960557705875634, 0.47236575167597566, 0.5720403903835598, 0.5370205156373834, 0.5976725893281137, 0.5438833770882693, 0.47615813358876247, 0.4755681605172405, 0.5157920957135902, 0.5402094582486863, 0.471551710940839, 0.5355880118452042, 0.5001662530322207, 0.4790892066011598, 0.47494022582245526, 0.5014465994290065, 0.4762765150019238, 0.42859491366125924, 0.43904097868615893, 0.0, 0.5519773947316597, 0.6146223329295997, 0.5580927972583049], [0.6371457475937663, 0.6089082684463722, 0.6022206826882269, 0.6225552953363357, 0.6035831882504623, 0.5739262119126349, 0.5871193691541385, 0.5983440815370368, 0.5780297364240997, 0.5780100151790145, 0.5677785230063093, 0.5690095372832025, 0.587017162522565, 0.5991159556768785, 0.6013564938036919, 0.582059893596977, 0.5915450229080612, 0.5642705949836373, 0.5874375527771454, 0.5347426681161087, 0.5480252936088637, 0.5617406065649322, 0.5459156341072814, 0.5345529647785081, 0.5525091931103167, 0.4833149992369454, 0.5453332714599454, 0.5787454172531852, 0.5594667520305179, 0.564737492446272, 0.565767995828992, 0.5519773947316597, 0.0, 0.5931820678839248, 0.5399389353213216], [0.5780112123394057, 0.6077830201957765, 0.5941015658456732, 0.6242668884109961, 0.6235521833168944, 0.5936470977885799, 0.6078912593508399, 0.618264102581534, 0.6168105873876938, 0.6067061083513092, 0.6145603379886896, 0.6025567600380475, 0.6322894478205126, 0.6349435905106451, 0.6212047249634554, 0.6009245150713194, 0.6039891980579086, 0.5679033838077432, 0.6088341352668657, 0.6106007149600006, 0.6067153657615343, 0.6344874341978559, 0.6125698045544322, 0.5687504781672474, 0.6085181374672038, 0.6111713061626579, 0.5694571471957096, 0.6160622502647397, 0.595941753706561, 0.6192260087779233, 0.5858468546844693, 0.6146223329295997, 0.5931820678839248, 0.0, 0.513614182506119], [0.6416115313599833, 0.5968274685449119, 0.6218788835373223, 0.6161852903563267, 0.6011191937433236, 0.5749384426875435, 0.5944513903788413, 0.592623781294704, 0.5808742088503307, 0.5817460691707508, 0.558689895182277, 0.5562304608733372, 0.5862176582456311, 0.6044441297491218, 0.6133969347058739, 0.586345343852107, 0.5594039754519595, 0.5653892059345309, 0.6071040524632135, 0.550757272447808, 0.5728594745376, 0.5554399385855842, 0.5679891481525867, 0.5133567057162977, 0.565335421607568, 0.5236068728622354, 0.5276814582288774, 0.5817393051734978, 0.5759623956074625, 0.5743680052676738, 0.5809043412314943, 0.5580927972583049, 0.5399389353213216, 0.513614182506119, 0.0]], \"type\": \"heatmap\"}], {\"autosize\": false, \"yaxis\": {\"domain\": [0, 0.75], \"showticklabels\": true, \"tickmode\": \"array\", \"ticks\": \"\", \"showgrid\": false, \"mirror\": false, \"zeroline\": false, \"showline\": false, \"ticktext\": [5, 12, 18, 35, 28, 25, 16, 30, 6, 8, 17, 27, 9, 2, 14, 20, 34, 10, 29, 3, 19, 32, 24, 13, 15, 26, 11, 33, 1, 23, 22, 31, 21, 4, 7], \"rangemode\": \"tozero\", \"type\": \"linear\", \"tickvals\": [5.0, 15.0, 25.0, 35.0, 45.0, 55.0, 65.0, 75.0, 85.0, 95.0, 105.0, 115.0, 125.0, 135.0, 145.0, 155.0, 165.0, 175.0, 185.0, 195.0, 205.0, 215.0, 225.0, 235.0, 245.0, 255.0, 265.0, 275.0, 285.0, 295.0, 305.0, 315.0, 325.0, 335.0, 345.0]}, \"showlegend\": false, \"height\": 800, \"width\": 800, \"yaxis2\": {\"domain\": [0.75, 1], \"showticklabels\": false, \"ticks\": \"\", \"showgrid\": false, \"mirror\": false, \"zeroline\": false, \"showline\": false}, \"xaxis\": {\"domain\": [0.25, 1], \"showticklabels\": true, \"tickmode\": \"array\", \"ticks\": \"\", \"showgrid\": false, \"mirror\": false, \"zeroline\": false, \"showline\": false, \"ticktext\": [5, 12, 18, 35, 28, 25, 16, 30, 6, 8, 17, 27, 9, 2, 14, 20, 34, 10, 29, 3, 19, 32, 24, 13, 15, 26, 11, 33, 1, 23, 22, 31, 21, 4, 7], \"rangemode\": \"tozero\", \"type\": \"linear\", \"tickvals\": [5.0, 15.0, 25.0, 35.0, 45.0, 55.0, 65.0, 75.0, 85.0, 95.0, 105.0, 115.0, 125.0, 135.0, 145.0, 155.0, 165.0, 175.0, 185.0, 195.0, 205.0, 215.0, 225.0, 235.0, 245.0, 255.0, 265.0, 275.0, 285.0, 295.0, 305.0, 315.0, 325.0, 335.0, 345.0]}, \"hovermode\": \"closest\"}, {\"linkText\": \"Export to plot.ly\", \"showLink\": true})});</script>" ], "text/vnd.plotly.v1+html": [ "<div id=\"60093b97-6268-4e3e-ace2-dd1a061c2de1\" style=\"height: 800px; width: 800px;\" class=\"plotly-graph-div\"></div><script type=\"text/javascript\">require([\"plotly\"], function(Plotly) { window.PLOTLYENV=window.PLOTLYENV || {};window.PLOTLYENV.BASE_URL=\"https://plot.ly\";Plotly.newPlot(\"60093b97-6268-4e3e-ace2-dd1a061c2de1\", [{\"yaxis\": \"y2\", \"text\": [\"[u'coup', u'peace', u'shot', u'citizenry', u'maduro', u'teams', u'actions', u'cross', u'seen', u'unrest']\", [], [], \"[u'monte', u'sprayed', u'shot', u'they', u'corps', u'september', u'sound', u'jurisdiction', u'resistance', u'sites']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.5239915229525761, 0.5239915229525761, 0.0], \"x\": [85.0, 85.0, 95.0, 95.0], \"type\": \"scatter\"}, {\"yaxis\": \"y2\", \"text\": [\"[u'atmosphere', u'stores', u'help', u'caused', u'magnetic', u'major', u'produce', u'years', u'product', u'baby']\", [], [], \"[u'all', u'influenza', u'help', u'cdc', u'biological', u'caused', u'child', u'results', u'dose', u'brain']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.4952833500135926, 0.4952833500135926, 0.0], \"x\": [145.0, 145.0, 155.0, 155.0], \"type\": \"scatter\"}, {\"yaxis\": \"y2\", \"text\": [\"[u'passed', u'rifles', u'tactics', u'office', u'violation', u'issued', u'obtain', u'actions', u'years', u'sources']\", [], [], \"[u'affair', u'thomas', u'responsible', u'shot', u'office', u'sentence', u'september', u'issued', u'agreed', u'child']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.4842267300317968, 0.4842267300317968, 0.0], \"x\": [205.0, 205.0, 215.0, 215.0], \"type\": \"scatter\"}, {\"yaxis\": \"y2\", \"text\": [\"[u'rating', u'office', u'photo', u'over', u'despite', u'results', u'years', u'course', u'protest', u'radio']\", [], [], \"[u'saying', u'decide', u'predicted', u'fox', u'results', u'night', u'including', u'democrats', u'committee', u'mcmullin']\"], \"marker\": {\"color\": \"rgb(61,153,112)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.4091655719588642, 0.4091655719588642, 0.0], \"x\": [245.0, 245.0, 255.0, 255.0], \"type\": \"scatter\"}, {\"yaxis\": \"y2\", \"text\": [\"[u'saying', u'breaking', u'office', u'watergate', u'mishandling', u'laptop', u'probe', u'actions', u'discovered', u'sources']\", [], [], \"+++: [u'results', u'paul', u'supporter', u'candidate', u'actually', u'barack', u'going', u'8', u'far', u'possible']<br>---: [u'saying', u'rating', u'month', u'unrest', u'protest', u'radio', u'democrats', u'mcmullin', u'follow', u'battleground']\"], \"marker\": {\"color\": \"rgb(61,153,112)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.41213545918752137, 0.41213545918752137, 0.4091655719588642], \"x\": [235.0, 235.0, 250.0, 250.0], \"type\": \"scatter\"}, {\"yaxis\": \"y2\", \"text\": [\"[u'operations', u'called', u'bomb', u'0', u'chinese', u'september', u'photo', u'agreed', u'global', u'spain']\", [], [], \"[u'coup', u'all', u'sergey', u'bomb', u'saying', u'photo', u'supported', u'repeatedly', u'soon', u'actions']\"], \"marker\": {\"color\": \"rgb(255,65,54)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.41280889631027384, 0.41280889631027384, 0.0], \"x\": [285.0, 285.0, 295.0, 295.0], \"type\": \"scatter\"}, {\"yaxis\": \"y2\", \"text\": [\"[u'operations', u'saying', u'peace', u'rebels', u'ambassador', u'september', u'settlements', u'years', u'held', u'fighters']\", [], [], \"+++: [u'bomb', u'photo', u'global', u'soon', u'years', u'including', u'cold', u'issues', u'ground', u'based']<br>---: [u'saying', u'all', u'chinese', u'enemy', u'agreed', u'supported', u'month', u'sergey', u'planning', u'asia']\"], \"marker\": {\"color\": \"rgb(255,65,54)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.4337091828241252, 0.4337091828241252, 0.41280889631027384], \"x\": [275.0, 275.0, 290.0, 290.0], \"type\": \"scatter\"}, {\"yaxis\": \"y2\", \"text\": [\"[u'greater', u'limited', u'help', u'lack', u'focus', u'actions', u'naturally', u'bring', u'books', u'higher']\", [], [], \"[u'called', u'all', u'enemy', u'hands', u'global', u'domestic', u'resistance', u'rest', u'years', u'course']\"], \"marker\": {\"color\": \"rgb(35,205,205)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.44592943928705275, 0.44592943928705275, 0.0], \"x\": [305.0, 305.0, 315.0, 315.0], \"type\": \"scatter\"}, {\"yaxis\": \"y2\", \"text\": [\"+++: [u'major', u'force', u'years', u'likely', u'officials', u'anti', u'iran', u'armed', u'ground', u'united']<br>---: [u'saying', u'bomb', u'rebels', u'ali', u'global', u'tehran', u'qaeda', u'mosul', u'battle', u'soldiers']\", [], [], \"+++: [u'and', u'control', u'major', u'want', u'point', u'powerful', u'community', u'past', u'society', u'simply']<br>---: [u'limited', u'all', u'consider', u'global', u'resistance', u'bring', u'emotions', u'follow', u'meditation', u'research']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.4337091828241252, 0.46861372445664873, 0.46861372445664873, 0.44592943928705275], \"x\": [282.5, 282.5, 310.0, 310.0], \"type\": \"scatter\"}, {\"yaxis\": \"y2\", \"text\": [\"[u'operations', u'all', u'soros', u'office', u'money', u'meetings', u'executive', u'insider', u'years', u'founded']\", [], [], \"+++: [u'major', u'us']<br>---: [u'control', u'point', u'powerful', u'community', u'years', u'course', u'simply', u'human', u'fear', u'armed']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.4806143422338316, 0.4806143422338316, 0.46861372445664873], \"x\": [265.0, 265.0, 296.25, 296.25], \"type\": \"scatter\"}, {\"yaxis\": \"y2\", \"text\": [\"+++: [u'says', u'campaign', u'point', u'house', u'in', u'washington', u'likely', u'street', u'election', u'year']<br>---: [u'saying', u'watergate', u'mishandling', u'probe', u'results', u'discovered', u'obstruction', u'manager', u'democrats', u'aides']\", [], [], \"+++: []<br>---: [u'operations', u'all', u'responsible', u'office', u'money', u'meetings', u'executive', u'raised', u'years', u'founded']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.41213545918752137, 0.4847681088638261, 0.4847681088638261, 0.4806143422338316], \"x\": [242.5, 242.5, 280.625, 280.625], \"type\": \"scatter\"}, {\"yaxis\": \"y2\", \"text\": [\"[u'ambassador', u'agency', u'mexican', u'help', u'office', u'diplomacy', u'money', u'executive', u'years', u'2008']\", [], [], \"+++: []<br>---: [u'says', u'nominee', u'point', u'house', u'in', u'washington', u'likely', u'street', u'election', u'year']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.4848588855404342, 0.4848588855404342, 0.4847681088638261], \"x\": [225.0, 225.0, 261.5625, 261.5625], \"type\": \"scatter\"}, {\"yaxis\": \"y2\", \"text\": [\"+++: [u'and', u'attorney', u'ordered', u'office', u'judge', u'issued', u'national', u'crimes', u'authorities', u'actions']<br>---: [u'affair', u'thomas', u'shot', u'violation', u'agreed', u'allegations', u'month', u'discovered', u'rifles', u'gang']\", [], [], \"+++: []<br>---: [u'ambassador', u'code', u'mexican', u'help', u'office', u'diplomacy', u'money', u'executive', u'years', u'supreme']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.4842267300317968, 0.49484305255926003, 0.49484305255926003, 0.4848588855404342], \"x\": [210.0, 210.0, 243.28125, 243.28125], \"type\": \"scatter\"}, {\"yaxis\": \"y2\", \"text\": [\"[u'saying', u'all', u'help', u'money', u'hands', u'soon', u'rest', u'years', u'course', u'looks']\", [], [], \"+++: []<br>---: [u'and', u'asked', u'attorney', u'ordered', u'family', u'judge', u'issued', u'national', u'crimes', u'actions']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.500953938948598, 0.500953938948598, 0.49484305255926003], \"x\": [195.0, 195.0, 226.640625, 226.640625], \"type\": \"scatter\"}, {\"yaxis\": \"y2\", \"text\": [\"[u'sector', u'bull', u'gold', u'unemployment', u'money', u'global', u'dollar', u'trade', u'paper', u'businesses']\", [], [], \"+++: []<br>---: [u'saying', u'all', u'help', u'money', u'able', u'soon', u'rest', u'years', u'course', u'looks']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.5090095510485566, 0.5090095510485566, 0.500953938948598], \"x\": [185.0, 185.0, 210.8203125, 210.8203125], \"type\": \"scatter\"}, {\"yaxis\": \"y2\", \"text\": [\"[u'gdp', u'proceeds', u'september', u'42', u'global', u'wednesday', u'results', u'years', u'leads', u'batteries']\", [], [], \"+++: []<br>---: [u'sector', u'manufacturing', u'chinese', u'unemployment', u'money', u'global', u'dollar', u'trade', u'paper', u'businesses']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.5114472916005423, 0.5114472916005423, 0.5090095510485566], \"x\": [175.0, 175.0, 197.91015625, 197.91015625], \"type\": \"scatter\"}, {\"yaxis\": \"y2\", \"text\": [\"[u'saying', u'neighborhood', u'answering', u'shot', u'help', u'photo', u'celebrities', u'years', u'seen', u'performance']\", [], [], \"+++: []<br>---: [u'gdp', u'september', u'percent', u'global', u'43', u'results', u'years', u'leads', u'batteries', u'including']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.5123688748079201, 0.5123688748079201, 0.5114472916005423], \"x\": [165.0, 165.0, 186.455078125, 186.455078125], \"type\": \"scatter\"}, {\"yaxis\": \"y2\", \"text\": [\"+++: [u'heavy', u'available', u'associated', u'help', u'cancer', u'caused', u'reduce', u'plant', u'evidence', u'high']<br>---: [u'wild', u'all', u'influenza', u'sci', u'phenomenon', u'cdc', u'magnetic', u'results', u'produce', u'sleep']\", [], [], \"+++: []<br>---: [u'saying', u'breaking', u'shot', u'help', u'photo', u'child', u'celebrities', u'years', u'costume', u'victim']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.4952833500135926, 0.527410482799219, 0.527410482799219, 0.5123688748079201], \"x\": [150.0, 150.0, 175.7275390625, 175.7275390625], \"type\": \"scatter\"}, {\"yaxis\": \"y2\", \"text\": [\"[u'stones', u'atmosphere', u'concept', u'evidence', u'consciousness', u'being', u'global', u'souls', u'years', u'held']\", [], [], \"+++: []<br>---: [u'heavy', u'body', u'associated', u'help', u'cancer', u'caused', u'reduce', u'product', u'evidence', u'high']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.5298682068894442, 0.5298682068894442, 0.527410482799219], \"x\": [135.0, 135.0, 162.86376953125, 162.86376953125], \"type\": \"scatter\"}, {\"yaxis\": \"y2\", \"text\": [\"[u'forced', u'played', u'chinese', u'german', u'2005', u'supported', u'rest', u'years', u'course', u'cambridge']\", [], [], \"+++: []<br>---: [u'stones', u'called', u'atmosphere', u'concept', u'pope', u'being', u'global', u'souls', u'years', u'held']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.5358130859045249, 0.5358130859045249, 0.5298682068894442], \"x\": [125.0, 125.0, 148.931884765625, 148.931884765625], \"type\": \"scatter\"}, {\"yaxis\": \"y2\", \"text\": [\"[u'jihadist', u'acts', u'particularly', u'cheese', u'money', u'half', u'month', u'sources', u'embassy', u'including']\", [], [], \"+++: []<br>---: [u'called', u'chinese', u'german', u'supported', u'rest', u'years', u'course', u'aoun', u'london', u'hungary']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.5368743566366792, 0.5368743566366792, 0.5358130859045249], \"x\": [115.0, 115.0, 136.9659423828125, 136.9659423828125], \"type\": \"scatter\"}, {\"yaxis\": \"y2\", \"text\": [\"[u'watergate', u'thomas', u'impression', u'kkk', u'stephens', u'show', u'rapture', u'photo', u'for', u'sexist']\", [], [], \"+++: []<br>---: [u'called', u'responsible', u'particularly', u'libyan', u'sales', u'money', u'supported', u'terrorist', u'month', u'sources']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.5405631185995701, 0.5405631185995701, 0.5368743566366792], \"x\": [105.0, 105.0, 125.98297119140625, 125.98297119140625], \"type\": \"scatter\"}, {\"yaxis\": \"y2\", \"text\": [\"+++: [u'the', u'set', u'shot', u'national', u'activists', u'site', u'officers', u'authorities', u'fires', u'seen']<br>---: [u'monte', u'homes', u'corps', u'hurricane', u'jurisdiction', u'resistance', u'eminent', u'unrest', u'farms', u'mile']\", [], [], \"+++: []<br>---: [u'watergate', u'thomas', u'kkk', u'stephens', u'impression', u'rapture', u'photo', u'morons', u'sexist', u'years']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.5239915229525761, 0.5407990711594035, 0.5407990711594035, 0.5405631185995701], \"x\": [90.0, 90.0, 115.49148559570312, 115.49148559570312], \"type\": \"scatter\"}, {\"yaxis\": \"y2\", \"text\": [\"[u'credible', u'arnaldo', u'code', u'help', u'founder', u'exclusive', u'series', u'global', u'design', u'gavin']\", [], [], \"[u'saying', u'answers', u'liar', u'opinions', u'photo', u'reporters', u'networks', u'sources', u'paper', u'scott']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.5241246859656508, 0.5241246859656508, 0.0], \"x\": [335.0, 335.0, 345.0, 345.0], \"type\": \"scatter\"}, {\"yaxis\": \"y2\", \"text\": [\"[u'longer', u'nc', u'office', u'switched', u'september', u'pros', u'copy', u'neilson', u'results', u'technicians']\", [], [], \"+++: [u'comment', u'google', u'videos', u'appeared', u'series', u'twitter', u'share', u'subscribe', u'video', u'article']<br>---: [u'saying', u'code', u'liar', u'forget', u'founder', u'exclusive', u'dear', u'global', u'danney', u'solutions']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.5477582438343798, 0.5477582438343798, 0.5241246859656508], \"x\": [325.0, 325.0, 340.0, 340.0], \"type\": \"scatter\"}, {\"yaxis\": \"y2\", \"text\": [\"+++: []<br>---: [u'set', u'shot', u'national', u'activists', u'site', u'officers', u'communities', u'fires', u'seen', u'protests']\", [], [], \"+++: [u'comment', u'use', u'mainstream', u'media', u'comments', u'1', u'2', u'radio', u'editor', u'news']<br>---: [u'45', u'office', u'switched', u'september', u'electoral', u'neilson', u'results', u'technicians', u'years', u'held']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.5407990711594035, 0.555896060550066, 0.555896060550066, 0.5477582438343798], \"x\": [102.74574279785156, 102.74574279785156, 332.5, 332.5], \"type\": \"scatter\"}, {\"yaxis\": \"y2\", \"text\": [\"[u'planetary', u'code', u'closely', u'producer', u'photo', u'astronomical', u'queen', u'confirm', u'years', u'discovered']\", [], [], \"+++: []<br>---: [u'comment', u'use', u'mainstream', u'media', u'comments', u'1', u'2', u'radio', u'editor', u'article']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.5561728330392073, 0.5561728330392073, 0.555896060550066], \"x\": [75.0, 75.0, 217.62287139892578, 217.62287139892578], \"type\": \"scatter\"}, {\"yaxis\": \"y2\", \"text\": [\"[u'coup', u'checkpoints', u'wakingtimes', u'paragraph', u'jonsdottir', u'knowingly', u'ended', u'lands', u'including', u'parks']\", [], [], \"+++: []<br>---: [u'science', u'planetary', u'code', u'closely', u'producer', u'photo', u'astronomical', u'queen', u'soon', u'years']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.5564856128519003, 0.5564856128519003, 0.5561728330392073], \"x\": [65.0, 65.0, 146.3114356994629, 146.3114356994629], \"type\": \"scatter\"}, {\"yaxis\": \"y2\", \"text\": [\"[u'morsi', u'phenomenon', u'founder', u'caused', u'labeled', u'mission', u'actress', u'years', u'alien', u'report']\", [], [], \"+++: []<br>---: [u'coup', u'checkpoints', u'wakingtimes', u'weapons', u'jonsdottir', u'ended', u'keystone', u'including', u'1962', u'nevada']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.5704763562651556, 0.5704763562651556, 0.5564856128519003], \"x\": [55.0, 55.0, 105.65571784973145, 105.65571784973145], \"type\": \"scatter\"}, {\"yaxis\": \"y2\", \"text\": [\"[u'1st', u'now', u'jason', u'help', u'ron', u'demand', u'caused', u'executive', u'dollar', u'damage']\", [], [], \"+++: []<br>---: [u'phenomenon', u'founder', u'caused', u'mission', u'actress', u'years', u'alien', u'report', u'bright', u'swedish']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.5726519085057408, 0.5726519085057408, 0.5704763562651556], \"x\": [45.0, 45.0, 80.32785892486572, 80.32785892486572], \"type\": \"scatter\"}, {\"yaxis\": \"y2\", \"text\": [\"[u'represent', u'thomas', u'words', u'founder', u'produces', u'rev', u'authors', u'unseen', u'infant', u'rest']\", [], [], \"+++: []<br>---: [u'now', u'breaking', u'jason', u'help', u'ron', u'caused', u'executive', u'dollar', u'proposes', u'executes']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.5985741306483363, 0.5985741306483363, 0.5726519085057408], \"x\": [35.0, 35.0, 62.66392946243286, 62.66392946243286], \"type\": \"scatter\"}, {\"yaxis\": \"y2\", \"text\": [\"[u'perspective', u'imploding', u'colleges', u'help', u'founder', u'text', u'rob', u'results', u'bookmark', u'professors']\", [], [], \"+++: []<br>---: [u'represent', u'thomas', u'birth', u'founder', u'produces', u'child', u'unseen', u'infant', u'rest', u'years']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.6044867266886239, 0.6044867266886239, 0.5985741306483363], \"x\": [25.0, 25.0, 48.83196473121643, 48.83196473121643], \"type\": \"scatter\"}, {\"yaxis\": \"y2\", \"text\": [\"[u'rtd', u'thomas', u'shot', u'pti', u'sergei', u'ndtv', u'caused', u'kejriwal', u'gun', u'laura']\", [], [], \"+++: []<br>---: [u'imploding', u'colleges', u'help', u'founder', u'text', u'rob', u'results', u'professors', u'facilities', u'spaces']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.6092748581752581, 0.6092748581752581, 0.6044867266886239], \"x\": [15.0, 15.0, 36.915982365608215, 36.915982365608215], \"type\": \"scatter\"}, {\"yaxis\": \"y2\", \"text\": [\"[u'urinary', u'fungal', u'molecule', u'facial', u'tincture', u'ginseng', u'sciencedaily', u'zen', u'powders', u'narcotic']\", [], [], \"+++: []<br>---: [u'rtd', u'thomas', u'shot', u'pti', u'sergei', u'ndtv', u'caused', u'kejriwal', u'officers', u'laura']\"], \"marker\": {\"color\": \"rgb(0,116,217)\"}, \"mode\": \"lines\", \"xaxis\": \"x\", \"hoverinfo\": \"text\", \"y\": [0.0, 0.6439303839488679, 0.6439303839488679, 0.6092748581752581], \"x\": [5.0, 5.0, 25.957991182804108, 25.957991182804108], \"type\": \"scatter\"}, {\"colorscale\": \"YIGnBu\", \"text\": [[\"+++ operations, chinese, including, japan, group, ships, nato, systems, east, norway<br>--- \", \"+++ world, the, peace, us, long<br>--- pope, global, souls, earth, fear, religious, chinese, lord, thousands, regional\", \"+++ world, us, long, country<br>--- saying, all, chinese, trying, going, do, regional, stop, coast, joint\", \"+++ news, use, october<br>--- code, chinese, follow, trunews, access, tv, 0, regional, coast, joint\", \"+++ force<br>--- fungal, chinese, ginseng, mild, ingredient, activation, regional, coast, joint, countries\", \"+++ group, government, country, peace, according, attack, anti, security, the<br>--- chinese, protest, riots, black, thousands, protestors, cannon, regional, stop, coast\", \"+++ news, the, anti, meeting, told<br>--- saying, chinese, debate, tv, tweet, mainstream, regional, watch, coast, joint\", \"+++ october, north, region, according, pacific, coast, states, near, u, news<br>--- corps, mile, ground, partners, chinese, sheriff, state, thursday, wood, local\", \"+++ europe, eastern, united, chinese, countries, country, government, asia, states, china<br>--- german, hungary, paris, communist, far, merkel, regional, coast, joint, prime\", \"+++ october, according, u, news, world, the, south<br>--- chinese, global, month, state, 0, 8, posted, oct, far, regional\", \"+++ operations, group, government, general, including, president, the<br>--- all, chinese, staff, access, writes, wmw, to, include, activities, far\", \"+++ october, force, air, near, minister, military, general<br>--- rtd, chinese, battle, soldiers, tweet, thursday, posted, veterans, hit, regional\", \"+++ use, october, washington, according, long, general, officials, president, news, the<br>--- chinese, probe, discovered, staff, justice, huma, sent, regional, coast, joint\", \"+++ use, air, however, long, according<br>--- atmosphere, chinese, caused, magnetic, produce, earth, cell, electricity, environment, risk\", \"+++ united, country, washington, possible, long, states, anti, president, world<br>--- chinese, tweeted, supporter, certainly, going, 8, obama, hope, regional, coast\", \"+++ group, government, long, defense, u, security<br>--- chinese, wakingtimes, jury, nevada, occupation, edward, fossil, torture, regional, bear\", \"+++ october, iran, peace, however, u, president, news, war, south<br>--- stephens, sexist, talks, alt, hate, chinese, bush, black, case, regional\", \"+++ use<br>--- chinese, text, results, children, formating, appears, send, meant, regional, coast\", \"+++ use, force, government, however, according, states, officials, including, close, security<br>--- evidence, chinese, violation, issued, sheriff, justice, crime, going, local, activities\", \"+++ anti, use, including<br>--- chinese, cdc, results, skin, children, vaccines, sugar, helps, risk, regional\", \"+++ country, according, states, officials, u, news, the, told<br>--- chinese, switched, global, results, votes, voter, going, tape, voted, 8\", \"+++ world, use, possible, long, however<br>--- consider, chinese, focus, issues, current, based, knowledge, means, regional, coast\", \"+++ force, washington, general, states, world, united, nuclear, eastern, relations, attack<br>--- operations, coup, invasion, alliance, clinton, chinese, presence, neocon, ships, strategic\", \"+++ united, group, government, country, washington, foreign, states, defense, u, president<br>--- chinese, issues, judges, justice, program, creamer, congressional, cuba, regional, coast\", \"+++ world, group, according, threat, told<br>--- phenomenon, founder, alien, chinese, extraterrestrial, tv, 0, extraterrestrials, egyptian, regional\", \"+++ north, washington, according, states, president, news, secretary, told<br>--- chinese, results, democrats, debate, votes, candidates, carolina, michigan, regional, coast\", \"+++ states, united, group, u, countries, country, region, government, foreign, weapons<br>--- particularly, chinese, gulf, regional, coast, joint, despite, report, governments, saudi\", \"+++ news, the, us, long, air<br>--- ron, lack, chinese, jay, obamacare, brown, regional, coast, joint, worst\", \"+++ chinese, countries, government, long, china, news, world, u<br>--- sector, gold, global, dollar, weapons, treasury, street, regional, coast, joint\", \"+++ australia, however, long, according, near, sea, ship, the, south<br>--- planetary, chinese, queen, discovered, earth, explain, black, regional, coast, famous\", \"+++ president, nations, anti, countries, country, government, peace, long, foreign, states<br>--- chinese, global, justice, black, mainstream, far, regional, coast, joint, trade\", \"+++ according, attack, officials, news, the, told<br>--- shot, chinese, allegations, gang, children, suicide, crime, black, woman, regional\", \"+++ operations, including, group, troops, government, weapons, attack, forces, international, east<br>--- alliance, rebels, campaign, terrorists, washington, strategic, held, fighters, qaeda, situation\", \"+++ october, told<br>--- shot, chinese, children, father, young, foster, local, wearing, woman, regional\", \"+++ states, use, the<br>--- founder, children, chinese, father, garden, regional, coast, joint, evolution, heaven\"], [\"+++ world, the, peace, us, long<br>--- chinese, global, souls, earth, fear, religious, pope, lord, thousands, regional\", \"+++ pope, global, souls, human, existence, fear, religious, death, consciousness, source<br>--- \", \"+++ great, right, end, point, away, life, long, live, us, world<br>--- saying, all, pope, global, souls, earth, fear, religious, knowledge, re\", \"+++ source, today<br>--- code, pope, global, souls, follow, fear, religious, trunews, knowledge, tv\", \"+++ source, state, mind, life, free<br>--- fungal, pope, ginseng, global, souls, mild, hai, earth, fear, religious\", \"+++ thousands, peace, state, the, come, day<br>--- pope, global, souls, protest, earth, fear, religious, trying, knowledge, riots\", \"+++ the, day, truth, times<br>--- saying, pope, global, souls, earth, fear, religious, debate, knowledge, tv\", \"+++ energy, land, state, sacred<br>--- corps, global, souls, mile, earth, fear, religious, ground, partners, knowledge\", \"+++ great, death, fact, world, the, called, today, history<br>--- chinese, german, global, souls, hungary, fear, religious, pope, paris, lord\", \"+++ end, point, global, times, state, world, the, day, today<br>--- pope, souls, month, earth, fear, religious, knowledge, 0, 8, posted\", \"+++ control, times, source, state, the, order, called, fact<br>--- all, pope, global, souls, earth, fear, religious, staff, consciousness, writes\", \"+++ day<br>--- rtd, pope, global, souls, battle, earth, fear, religious, knowledge, tweet\", \"+++ source, state, the, long<br>--- pope, probe, souls, discovered, earth, fear, religious, staff, knowledge, justice\", \"+++ body, natural, power, nature, light, energy, long, source, human, earth<br>--- atmosphere, pope, caused, magnetic, global, souls, fear, research, religious, knowledge\", \"+++ great, right, long, called, world, man, day, today, history<br>--- pope, global, souls, earth, fear, tweeted, religious, supporter, certainly, knowledge\", \"+++ control, death, natural, power, secret, long, state, land, free, instead<br>--- pope, wakingtimes, global, souls, earth, fear, nevada, religious, occupation, knowledge\", \"+++ peace, times, secret, race, truth, man, book, history<br>--- stephens, global, souls, sexist, talks, earth, alt, hate, pope, bush\", \"+++ culture, live<br>--- pope, text, global, results, earth, fear, religious, children, formating, knowledge\", \"+++ control, state, secret, order<br>--- pope, violation, issued, global, souls, earth, fear, religious, consciousness, sheriff\", \"+++ body, heart, great, natural, day<br>--- pope, cdc, global, results, skin, earth, fear, research, religious, children\", \"+++ right, global, state, the, believe, day<br>--- pope, switched, results, earth, fear, religious, votes, voter, consciousness, re\", \"+++ control, life, knowledge, power, point, self, mind, free, reality, society<br>--- consider, pope, global, focus, earth, fear, creative, religious, issues, based\", \"+++ end, power, us, order, state, world, the, called<br>--- pope, global, souls, earth, fear, religious, knowledge, zone, turkish, bush\", \"+++ state, right, the<br>--- pope, global, souls, earth, fear, religious, issues, judges, knowledge, justice\", \"+++ world, secret, history, source<br>--- phenomenon, founder, global, souls, alien, earth, fear, research, religious, pope\", \"+++ state, race, day, fact, point<br>--- pope, global, results, democrats, earth, fear, religious, debate, votes, knowledge\", \"+++ world, state, called, human<br>--- particularly, pope, global, souls, earth, fear, religious, knowledge, gulf, hayden\", \"+++ right, us, away, long, live, free, the, come, order<br>--- ron, lack, souls, earth, fear, religious, pope, jay, obamacare, lord\", \"+++ global, long, state, free, world, higher<br>--- sector, gold, dollar, souls, earth, fear, religious, chinese, treasury, lord\", \"+++ ancient, light, long, source, earth, the, called<br>--- planetary, pope, queen, souls, discovered, fear, religious, knowledge, explain, black\", \"+++ control, right, end, us, power, freedom, self, global, peace, free<br>--- pope, souls, earth, fear, religious, knowledge, justice, true, black, lord\", \"+++ life, death, men, times, state, the, called, man<br>--- shot, pope, global, allegations, souls, gang, earth, fear, religious, children\", \"+++ state, the, us<br>--- rebels, pope, global, souls, qaeda, mosul, battle, soldiers, fear, religious\", \"+++ life, love, away, men, born, day, man<br>--- shot, pope, global, souls, earth, fear, religious, children, knowledge, father\", \"+++ faith, death, humans, jesus, book, human, the<br>--- founder, global, souls, earth, fear, religious, children, pope, cannabis, father\"], [\"+++ world, us, long, country<br>--- saying, all, chinese, one, believe, going, do, regional, stop, coast\", \"+++ great, right, end, point, away, life, long, live, us, world<br>--- saying, all, pope, global, souls, earth, fear, religious, knowledge, religion\", \"+++ saying, all, years, course, yes, believe, ll, actually, better, going<br>--- \", \"+++ you<br>--- saying, all, code, follow, trunews, trying, tv, 0, going, posted\", \"+++ and, life<br>--- saying, all, fungal, ginseng, mild, trying, cannabis, going, rahul, ingredient\", \"+++ country, stop, in, trying, come, day<br>--- saying, all, protest, riots, going, black, thousands, protestors, town, cannon\", \"+++ real, saying, day, talk<br>--- all, debate, trying, tv, tweet, going, posted, do, mainstream, watch\", \"+++ says, we, stop<br>--- saying, all, corps, mile, ground, partners, trying, sheriff, state, thursday\", \"+++ and, them, says, country, great, world<br>--- saying, all, chinese, german, hungary, trying, paris, going, communist, he\", \"+++ says, end, point, years, world, day<br>--- saying, all, global, month, trying, state, 0, going, 8, he\", \"+++ real, and, all, big, work, years, in<br>--- saying, staff, trying, writes, wmw, to, going, include, activities, far\", \"+++ m, day<br>--- rtd, all, saying, battle, soldiers, trying, tweet, thursday, going, rss\", \"+++ i, know, long<br>--- saying, all, probe, discovered, staff, believe, justice, going, huma, sent\", \"+++ long, years<br>--- saying, atmosphere, caused, magnetic, all, earth, trying, electricity, environment, going\", \"+++ again, great, right, says, i, things, this, country, m, long<br>--- saying, all, tweeted, supporter, certainly, believe, 8, hope, do, stop\", \"+++ and, long<br>--- saying, all, wakingtimes, nevada, occupation, trying, edward, bundy, do, torture\", \"+++ didn, good, years<br>--- saying, all, stephens, sexist, talks, alt, hate, trying, bush, going\", \"+++ what, sure, want, i, better, start, live, way, in, need<br>--- saying, all, text, results, children, formating, trying, send, going, meant\", \"+++ going<br>--- saying, all, violation, issued, believe, sheriff, justice, crime, local, activities\", \"+++ great, day, best, d<br>--- saying, all, cdc, results, skin, children, trying, sugar, going, helps\", \"+++ real, think, right, says, d, i, country, years, re, going<br>--- saying, all, switched, global, results, votes, voter, tape, voted, 8\", \"+++ real, life, good, point, feel, things, work, long, one, better<br>--- saying, all, consider, focus, issues, believe, based, knowledge, going, do\", \"+++ we, end, no, country, that, us, course, so, world, think<br>--- saying, all, trying, zone, turkish, bush, going, obama, do, stop\", \"+++ we, right, d, i, country, work, one<br>--- saying, all, issues, judges, believe, justice, program, creamer, obama, congressional\", \"+++ world, years<br>--- saying, all, phenomenon, founder, alien, trying, extraterrestrial, tv, 0, going\", \"+++ person, day, point<br>--- saying, all, results, democrats, debate, votes, trying, going, candidates, obama\", \"+++ world, there, country<br>--- saying, all, particularly, trying, gulf, hayden, going, do, stop, despite\", \"+++ we, right, d, big, away, live, long, re, bad, sure<br>--- saying, all, ron, lack, trying, jay, obamacare, going, obama, brown\", \"+++ real, big, years, long, world<br>--- sector, saying, all, gold, global, dollar, trying, chinese, going, treasury\", \"+++ place, look, long, years<br>--- planetary, all, saying, queen, discovered, earth, trying, explain, going, black\", \"+++ real, and, them, right, end, country, long, years, course, so<br>--- saying, all, global, justice, going, black, do, mainstream, far, stop\", \"+++ place, life, stop, years<br>--- saying, all, shot, allegations, gang, children, suicide, crime, going, black\", \"+++ us<br>--- saying, all, rebels, qaeda, mosul, battle, soldiers, trying, turkish, daesh\", \"+++ away, says, day, life, years<br>--- saying, all, shot, children, believe, father, young, foster, he, local\", \"+++ d, years<br>--- saying, all, founder, children, one, believe, cannabis, father, going, do\"], [\"+++ news, use, october<br>--- code, chinese, follow, trunews, weapons, tv, 0, regional, coast, joint\", \"+++ source, today<br>--- code, pope, global, souls, earth, fear, religious, trunews, knowledge, tv\", \"+++ you<br>--- saying, all, code, follow, trunews, trying, tv, 0, going, he\", \"+++ code, help, follow, alternative, trunews, web, 26, 27, tv, 28<br>--- \", \"+++ 10, www, http, breaking, content, source, com<br>--- fungal, ginseng, mild, code, hai, follow, trunews, cannabis, tv, 0\", \"+++ org<br>--- code, protest, follow, trunews, tv, riots, 0, black, thousands, protestors\", \"+++ comment, information, account, google, network, videos, views, tv, share, twitter<br>--- saying, code, follow, debate, tweet, 0, mainstream, watch, reporters, report\", \"+++ october, support, site, access, news, company<br>--- code, corps, mile, follow, trunews, ground, partners, sheriff, tv, state\", \"+++ news, today<br>--- code, chinese, german, hungary, trunews, paris, 0, communist, population, far\", \"+++ 10, 27, support, 1, 0, 2, news, november, october, data<br>--- code, global, month, follow, trunews, content, tv, state, list, 8\", \"+++ a, 1, e, support, internet, access, source, published, policy, post<br>--- all, code, follow, trunews, staff, tv, writes, wmw, to, device\", \"+++ a, 26, october, 2, november, posted<br>--- rtd, code, battle, soldiers, trunews, tv, tweet, thursday, 0, veterans\", \"+++ information, account, october, e, use, related, source, news, email<br>--- code, probe, discovered, follow, trunews, staff, justice, 0, huma, sent\", \"+++ device, source, use, published<br>--- atmosphere, code, caused, magnetic, earth, trunews, cell, electricity, environment, 0\", \"+++ 10, november, share, today<br>--- code, follow, tweeted, supporter, certainly, tv, 0, going, 8, posted\", \"+++ co, published<br>--- code, wakingtimes, follow, nevada, trunews, occupation, tv, 0, vnn, edward\", \"+++ news, november, october, com<br>--- code, stephens, sexist, talks, follow, alt, hate, trunews, tv, 0\", \"+++ comment, 10, use, help, 1, 2, link, a, address, post<br>--- code, text, results, follow, children, formating, tv, send, 0, vnn\", \"+++ information, phone, search, use, at<br>--- code, violation, issued, legal, follow, trunews, sheriff, justice, crime, 0\", \"+++ 1, use, 2, help<br>--- code, cdc, results, skin, follow, children, access, tv, sugar, 0\", \"+++ news, comments, posted<br>--- code, switched, global, results, follow, trunews, votes, voter, tv, 0\", \"+++ information, use, help, today, social<br>--- code, consider, focus, follow, trunews, issues, access, based, knowledge, tv\", \"+++ policy, post<br>--- code, follow, trunews, access, zone, turkish, tv, 0, bush, posted\", \"+++ policy, list<br>--- code, legal, follow, trunews, issues, judges, justice, 0, program, creamer\", \"+++ articles, source, tv, related, 0, information, data, posted<br>--- code, phenomenon, founder, alien, follow, trunews, extraterrestrial, extraterrestrials, egyptian, facebook\", \"+++ news, november, support<br>--- code, results, democrats, follow, debate, votes, tv, 0, candidates, obama\", \"+++ rt, policy, support, published<br>--- code, particularly, publish, follow, trunews, access, gulf, tv, 0, facebook\", \"+++ news, help, phone<br>--- code, ron, lack, follow, trunews, companies, jay, tv, obamacare, 0\", \"+++ policy, news, company, companies<br>--- sector, code, gold, global, dollar, follow, trunews, current, chinese, tv\", \"+++ a, source, 2<br>--- planetary, code, queen, discovered, earth, trunews, tv, explain, 0, black\", \"+++ policy, support, class, today, social<br>--- code, global, follow, trunews, justice, 0, black, mainstream, far, facebook\", \"+++ news<br>--- code, shot, allegations, gang, follow, children, suicide, tv, crime, 0\", \"+++ support, october<br>--- code, rebels, qaeda, mosul, battle, soldiers, trunews, weapons, turkish, tv\", \"+++ october, help, share, daily, social, november, posted<br>--- code, shot, follow, children, tv, father, young, 0, foster, local\", \"+++ a, use, related, author<br>--- code, founder, follow, children, tv, father, 0, garden, facebook, evolution\"], [\"+++ force<br>--- fungal, chinese, ginseng, mild, ingredient, activation, regional, coast, joint, korea\", \"+++ source, state, mind, life, free<br>--- fungal, pope, ginseng, global, souls, mild, earth, fear, religious, knowledge\", \"+++ and, life<br>--- saying, all, fungal, ginseng, mild, trying, cannabis, going, rahul, ingredient\", \"+++ 10, www, http, breaking, content, source, com<br>--- code, ginseng, mild, fungal, follow, trunews, tv, 0, rahul, ingredient\", \"+++ fungal, ginseng, brain, mild, folic, 25, 22, source, ims, 2015<br>--- \", \"+++ state<br>--- fungal, ginseng, protest, riots, black, thousands, ingredient, cannon, activation, stop\", \"+++ channel, campaign<br>--- saying, fungal, ginseng, mild, debate, tv, tweet, rahul, ingredient, mainstream\", \"+++ state<br>--- fungal, corps, ginseng, mild, mile, ground, partners, sheriff, thursday, wood\", \"+++ and<br>--- fungal, chinese, german, mild, hungary, paris, ginseng, communist, rahul, ingredient\", \"+++ 2015, 25, state, 22, 10<br>--- fungal, ginseng, global, month, mild, increase, 0, 8, population, oct\", \"+++ and, source, state<br>--- all, fungal, ginseng, mild, staff, writes, wmw, to, include, ingredient\", \"+++ force<br>--- rtd, fungal, ginseng, mild, battle, soldiers, tweet, thursday, rahul, veterans\", \"+++ 2015, source, state, campaign<br>--- fungal, ginseng, probe, discovered, mild, staff, justice, huma, sent, ingredient\", \"+++ source, cells, health<br>--- atmosphere, fungal, ginseng, caused, magnetic, mild, earth, electricity, environment, ingredient\", \"+++ 10, campaign<br>--- fungal, ginseng, mild, tweeted, supporter, certainly, going, 8, obama, hope\", \"+++ and, state, free<br>--- fungal, ginseng, wakingtimes, mild, nevada, occupation, edward, keystone, rahul, ingredient\", \"+++ com<br>--- fungal, stephens, ginseng, sexist, mild, talks, alt, hate, bush, black\", \"+++ 10<br>--- fungal, ginseng, text, results, mild, children, formating, 3, send, ingredient\", \"+++ state, force<br>--- fungal, violation, issued, mild, sheriff, justice, crime, ginseng, going, local\", \"+++ brain, health<br>--- fungal, cdc, ginseng, results, mild, skin, children, content, 3, sugar\", \"+++ jones, state<br>--- fungal, switched, ginseng, global, results, mild, votes, voter, re, going\", \"+++ life, mind, free<br>--- fungal, consider, ginseng, focus, mild, issues, based, knowledge, ingredient, means\", \"+++ state, force<br>--- fungal, ginseng, mild, zone, turkish, bush, obama, ingredient, activation, tanks\", \"+++ 2015, state, health, campaign<br>--- fungal, ginseng, mild, issues, judges, justice, program, creamer, rahul, congressional\", \"+++ 2015, source, health, meat, lab<br>--- fungal, phenomenon, founder, ginseng, alien, mild, extraterrestrial, tv, 0, posted\", \"+++ state, campaign<br>--- fungal, ginseng, results, mild, democrats, debate, votes, candidates, rahul, ingredient\", \"+++ 2015, state, campaign<br>--- fungal, particularly, ginseng, mild, gulf, cannabis, ingredient, activation, despite, report\", \"+++ health, free<br>--- fungal, ron, ginseng, lack, mild, jay, obamacare, obama, ingredient, brown\", \"+++ state, free<br>--- sector, fungal, gold, ginseng, global, dollar, mild, content, chinese, treasury\", \"+++ source<br>--- planetary, fungal, ginseng, queen, discovered, mild, earth, explain, black, ingredient\", \"+++ and, state, free<br>--- fungal, ginseng, global, mild, justice, black, ingredient, mainstream, far, activation\", \"+++ state, life<br>--- fungal, shot, ginseng, allegations, mild, gang, children, suicide, crime, black\", \"+++ state, campaign<br>--- fungal, rebels, ginseng, mild, qaeda, mosul, battle, soldiers, turkish, iraqi\", \"+++ life<br>--- fungal, shot, ginseng, mild, children, father, young, foster, rahul, local\", \"+++ cannabis<br>--- fungal, founder, ginseng, mild, children, father, ingredient, garden, activation, evolution\"], [\"+++ group, government, country, peace, according, attack, anti, security, the<br>--- chinese, protest, riots, black, thousands, protestors, cannon, regional, stop, coast\", \"+++ thousands, peace, state, the, come, day<br>--- pope, global, souls, protest, earth, fear, religious, believe, knowledge, riots\", \"+++ country, stop, in, trying, come, day<br>--- saying, all, protest, riots, going, black, thousands, protestors, do, cannon\", \"+++ org<br>--- code, protest, follow, trunews, tv, riots, 0, black, thousands, protestors\", \"+++ state<br>--- fungal, ginseng, mild, riots, black, thousands, ingredient, cannon, activation, stop\", \"+++ soros, wednesday, protest, group, riots, black, thousands, protestors, non, government<br>--- \", \"+++ week, the, anti, day<br>--- saying, protest, debate, tv, tweet, riots, black, thousands, protestors, mainstream\", \"+++ camp, police, riot, rights, national, activists, stop, protesters, according, state<br>--- corps, protest, mile, ground, partners, sheriff, thursday, riots, wood, black\", \"+++ city, migrants, government, country, national, the, cities<br>--- chinese, german, protest, hungary, paris, riots, black, communist, thousands, protestors\", \"+++ week, according, state, 000, home, the, day, change<br>--- global, month, protest, riots, 0, black, 8, posted, thousands, oct\", \"+++ non, set, group, government, in, state, 000, members, team, the<br>--- all, protest, staff, writes, wmw, riots, to, black, include, local\", \"+++ town, residents, national, day, wednesday<br>--- rtd, protest, battle, soldiers, tweet, thursday, riots, black, posted, veterans\", \"+++ the, state, 000, according<br>--- probe, discovered, protest, staff, justice, riots, black, huma, thousands, sent\", \"+++ food, non, california, according<br>--- atmosphere, caused, magnetic, protest, earth, electricity, environment, black, thousands, protestors\", \"+++ in, country, violence, wednesday, nation, anti, team, following, america, day<br>--- protest, tweeted, supporter, certainly, riots, going, black, 8, obama, thousands\", \"+++ group, government, national, surveillance, state, security, armed<br>--- wakingtimes, protest, nevada, occupation, riots, edward, black, thousands, protestors, torture\", \"+++ national, peace, black, george, team<br>--- stephens, sexist, protest, talks, alt, hate, riots, bush, thousands, protestors\", \"+++ community, in<br>--- text, results, protest, children, formating, appears, state, send, riots, black\", \"+++ police, government, national, rights, according, state, members, authorities, security, local<br>--- violation, issued, protest, sheriff, justice, crime, riots, going, black, thousands\", \"+++ food, anti, day<br>--- cdc, results, protest, skin, children, 3, sugar, riots, black, helps\", \"+++ country, soros, according, day, state, the, george<br>--- switched, global, results, protest, votes, voter, riots, going, tape, voted\", \"+++ home, continue, lives, community, change<br>--- consider, focus, protest, issues, based, knowledge, riots, black, thousands, protestors\", \"+++ government, country, state, attack, security, america, the, change<br>--- protest, zone, turkish, riots, bush, black, thousands, protestors, town, cannon\", \"+++ group, rights, country, national, government, nation, state, 000, california, members<br>--- protest, issues, judges, justice, riots, program, black, thousands, congressional, protestors\", \"+++ national, group, according<br>--- phenomenon, founder, alien, protest, extraterrestrial, tv, riots, 0, black, thousands\", \"+++ week, national, according, state, day, change<br>--- results, protest, democrats, debate, votes, riots, candidates, thousands, carolina, cannon\", \"+++ group, government, country, rights, state, 000, groups<br>--- particularly, protest, gulf, riots, black, thousands, protestors, organizations, cannon, stop\", \"+++ city, the, come, crisis<br>--- ron, lack, protest, jay, obamacare, riots, black, thousands, protestors, brown\", \"+++ state, crisis, government<br>--- sector, gold, global, dollar, protest, chinese, riots, black, treasury, thousands\", \"+++ the, left, black, according, team<br>--- planetary, queen, discovered, protest, earth, explain, riots, thousands, protestors, cannon\", \"+++ revolution, government, country, national, rights, peace, nation, state, black, groups<br>--- global, protest, trying, justice, riots, local, protestors, mainstream, far, cannon\", \"+++ city, police, lives, stop, according, officers, state, black, home, the<br>--- shot, allegations, protest, gang, children, suicide, crime, riots, thousands, protestors\", \"+++ city, group, groups, government, according, state, 000, opposition, security, attack<br>--- rebels, protest, qaeda, mosul, battle, soldiers, turkish, riots, iraqi, black\", \"+++ home, local, day, left<br>--- shot, protest, children, father, young, riots, foster, black, protestors, wearing\", \"+++ the, non, california, national, san<br>--- founder, protest, children, father, riots, black, thousands, protestors, plants, garden\"], [\"+++ news, the, anti, meeting, told<br>--- saying, chinese, debate, tv, tweet, mainstream, regional, watch, coast, joint\", \"+++ the, day, truth, times<br>--- saying, pope, global, souls, earth, fear, religious, debate, knowledge, tv\", \"+++ real, saying, day, talk<br>--- all, debate, trying, tv, tweet, going, he, do, mainstream, stop\", \"+++ comment, information, account, google, network, videos, views, tv, list, twitter<br>--- saying, code, follow, trunews, tweet, 0, email, mainstream, watch, reporters\", \"+++ channel, campaign<br>--- saying, fungal, ginseng, mild, hai, debate, tv, tweet, posted, ingredient\", \"+++ week, the, anti, day<br>--- saying, protest, debate, tv, tweet, riots, black, thousands, protestors, mainstream\", \"+++ saying, keefe, sources, scott, debate, tv, tweet, real, mainstream, views<br>--- \", \"+++ project, news, sites<br>--- saying, corps, mile, debate, ground, partners, sheriff, tv, tweet, state\", \"+++ news, the, public, propaganda<br>--- saying, chinese, german, hungary, debate, paris, tweet, communist, population, mainstream\", \"+++ week, reported, times, p, report, news, the, posted, day, shows<br>--- saying, global, month, debate, tv, tweet, state, 0, 8, oct\", \"+++ real, the, media, published, times, project, york, internet, article, post<br>--- saying, all, debate, staff, tv, writes, wmw, to, include, activities\", \"+++ reported, tweet, p, sources, day, posted<br>--- rtd, saying, battle, soldiers, debate, tv, thursday, veterans, hit, mainstream\", \"+++ information, account, released, campaign, reported, sources, york, news, the, public<br>--- saying, probe, discovered, debate, staff, justice, tweet, huma, sent, mainstream\", \"+++ published<br>--- saying, atmosphere, caused, magnetic, earth, debate, electricity, tweet, environment, risk\", \"+++ article, share, anti, day, campaign<br>--- saying, tweeted, supporter, certainly, tv, tweet, going, 8, he, hope\", \"+++ conspiracy, published<br>--- saying, wakingtimes, nevada, debate, occupation, tv, tweet, edward, bundy, mainstream\", \"+++ story, media, times, stories, york, truth, news<br>--- saying, stephens, sexist, talks, alt, hate, debate, tv, tweet, bush\", \"+++ comment, post<br>--- saying, text, results, children, formating, tv, tweet, send, meant, mainstream\", \"+++ information, sources, reported, public, told<br>--- saying, violation, issued, debate, sheriff, justice, daily, tweet, crime, going\", \"+++ anti, day<br>--- saying, cdc, results, skin, children, tv, tweet, sugar, helps, posted\", \"+++ real, wnd, reporting, reported, press, news, the, posted, day, told<br>--- saying, switched, global, results, debate, votes, voter, tv, tweet, going\", \"+++ real, article, information, social<br>--- saying, consider, focus, debate, issues, based, knowledge, tv, tweet, mainstream\", \"+++ media, post, propaganda, the<br>--- saying, debate, zone, turkish, tv, tweet, bush, posted, mainstream, watch\", \"+++ speech, the, list, york, campaign<br>--- saying, debate, issues, judges, justice, tweet, program, creamer, posted, congressional\", \"+++ information, released, tv, reported, video, report, posted, told<br>--- saying, phenomenon, founder, alien, debate, extraterrestrial, tweet, 0, extraterrestrials, mainstream\", \"+++ week, campaign, media, day, speech, cnn, news, debate, told<br>--- saying, results, democrats, votes, tv, tweet, candidates, obama, carolina, mainstream\", \"+++ journalists, campaign, media, narrative, report, published, interview<br>--- saying, particularly, debate, gulf, tv, tweet, mainstream, watch, facebook, reporters\", \"+++ report, cnn, the, online, news<br>--- saying, ron, lack, debate, jay, tv, tweet, obamacare, posted, brown\", \"+++ real, news<br>--- sector, saying, gold, global, dollar, debate, chinese, tv, tweet, videos\", \"+++ image, the<br>--- planetary, saying, queen, discovered, earth, debate, tv, explain, black, mainstream\", \"+++ real, liberal, mainstream, media, public, anti, social, the, propaganda<br>--- saying, global, debate, justice, tweet, black, far, watch, facebook, reporters\", \"+++ story, times, reported, report, news, the, public, told<br>--- saying, shot, allegations, gang, children, suicide, tv, tweet, crime, black\", \"+++ the, campaign<br>--- saying, rebels, qaeda, mosul, battle, soldiers, debate, turkish, tv, tweet\", \"+++ story, share, daily, morning, video, social, posted, day, told<br>--- saying, shot, children, tv, tweet, father, young, foster, local, wearing\", \"+++ movie, the, youtube<br>--- saying, founder, children, tv, tweet, father, garden, watch, facebook, reporters\"], [\"+++ october, north, region, according, pacific, coast, states, near, u, news<br>--- chinese, mile, ground, weapons, corps, sheriff, 3, thursday, wood, local\", \"+++ energy, land, state, sacred<br>--- pope, global, souls, mile, earth, fear, religious, ground, partners, knowledge\", \"+++ says, we, stop<br>--- saying, all, corps, mile, ground, partners, trying, sheriff, state, thursday\", \"+++ october, support, site, access, news, company<br>--- code, corps, mile, follow, trunews, ground, partners, sheriff, tv, 3\", \"+++ state<br>--- fungal, corps, ginseng, mild, mile, ground, partners, sheriff, thursday, wood\", \"+++ camp, police, riot, rights, national, activists, stop, according, protesters, state<br>--- corps, protest, mile, ground, partners, sheriff, thursday, riots, wood, black\", \"+++ project, news, sites<br>--- saying, corps, mile, debate, ground, partners, sheriff, tv, tweet, 3\", \"+++ corps, september, dapl, mile, dakota, ground, partners, police, sheriff, lake<br>--- \", \"+++ states, news, national, says<br>--- chinese, german, mile, hungary, ground, partners, corps, sheriff, paris, 3\", \"+++ october, says, september, support, 3, according, state, u, news, south<br>--- corps, global, month, mile, ground, partners, sheriff, thursday, 0, wood\", \"+++ project, support, private, access, state, line, company<br>--- all, corps, mile, staff, partners, sheriff, writes, wmw, thursday, to\", \"+++ october, army, national, reports, near, indian, thursday, line<br>--- rtd, corps, mile, battle, soldiers, ground, partners, sheriff, tweet, state\", \"+++ october, according, private, state, reports, department, news<br>--- corps, probe, discovered, mile, july, staff, partners, sheriff, justice, thursday\", \"+++ area, energy, gas, according, water, environmental, clean<br>--- atmosphere, corps, caused, magnetic, produce, mile, earth, ground, partners, sheriff\", \"+++ states, americans, american, months, says<br>--- corps, mile, tweeted, supporter, ground, partners, certainly, sheriff, state, thursday\", \"+++ pipeline, oil, state, national, gas, protect, american, land, u<br>--- corps, wakingtimes, mile, nevada, occupation, partners, sheriff, thursday, edward, local\", \"+++ october, national, american, u, news, south<br>--- stephens, sexist, mile, talks, alt, hate, ground, partners, corps, sheriff\", \"+++ 3, american, native<br>--- corps, text, results, mile, children, formating, ground, partners, sheriff, send\", \"+++ enforcement, police, sheriff, rights, national, arrested, according, reports, county, state<br>--- corps, violation, issued, mile, ground, partners, charges, justice, thursday, crime\", \"+++ water, 3, oil<br>--- corps, cdc, results, mile, skin, children, ground, access, sheriff, thursday\", \"+++ states, says, according, reports, county, state, u, news, line<br>--- corps, switched, global, results, mile, ground, partners, votes, voter, sheriff\", \"+++ <br>--- consider, corps, focus, mile, issues, ground, partners, based, knowledge, sheriff\", \"+++ states, american, state, u, we<br>--- corps, mile, ground, partners, zone, turkish, thursday, bush, wood, local\", \"+++ we, rights, national, state, states, american, americans, department, u, law<br>--- corps, mile, issues, ground, partners, judges, sheriff, justice, thursday, program\", \"+++ national, according, reports<br>--- phenomenon, founder, alien, mile, ground, partners, corps, sheriff, extraterrestrial, tv\", \"+++ north, national, state, according, states, american, americans, news, support<br>--- corps, results, mile, democrats, debate, ground, partners, votes, sheriff, thursday\", \"+++ oil, rights, support, state, states, american, u, region<br>--- particularly, corps, mile, ground, weapons, gulf, thursday, wood, local, stop\", \"+++ news, we, americans<br>--- ron, lack, mile, ground, partners, corps, sheriff, jay, obamacare, 3\", \"+++ oil, company, private, state, u, news<br>--- sector, gold, global, dollar, mile, ground, current, chinese, sheriff, thursday\", \"+++ near, area, lake, south, according<br>--- planetary, corps, queen, discovered, mile, earth, ground, partners, sheriff, explain\", \"+++ rights, support, state, states, american, americans, u, national<br>--- corps, global, mile, ground, partners, sheriff, justice, thursday, wood, black\", \"+++ police, arrested, began, stop, according, reports, state, department, news<br>--- shot, corps, allegations, mile, gang, children, ground, partners, suicide, sheriff\", \"+++ october, area, region, army, according, reports, state, support<br>--- rebels, corps, qaeda, mosul, battle, soldiers, ground, weapons, sheriff, turkish\", \"+++ says, october, local<br>--- shot, corps, mile, children, ground, partners, sheriff, father, young, thursday\", \"+++ states, national<br>--- founder, mile, children, ground, partners, corps, sheriff, father, 3, thursday\"], [\"+++ europe, eastern, united, chinese, countries, country, government, asia, states, china<br>--- german, hungary, paris, communist, far, merkel, regional, coast, joint, prime\", \"+++ great, death, fact, world, the, called, today, history<br>--- pope, german, global, souls, earth, fear, religious, chinese, paris, lord\", \"+++ and, them, says, country, great, world<br>--- saying, all, chinese, german, hungary, trying, paris, going, communist, population\", \"+++ news, today<br>--- code, chinese, german, follow, trunews, tv, 0, communist, population, far\", \"+++ and<br>--- fungal, chinese, ginseng, mild, hungary, paris, german, communist, population, ingredient\", \"+++ city, migrants, government, country, national, the, cities<br>--- chinese, german, protest, hungary, paris, riots, black, communist, thousands, protestors\", \"+++ news, the, public, propaganda<br>--- saying, chinese, german, hungary, debate, tv, tweet, communist, population, mainstream\", \"+++ states, news, national, says<br>--- corps, german, mile, hungary, ground, partners, chinese, sheriff, paris, state\", \"+++ chinese, german, london, hungary, death, paris, communist, east, happened, them<br>--- \", \"+++ says, far, second, news, world, the, today, population<br>--- chinese, german, global, month, hungary, paris, state, 0, 8, communist\", \"+++ and, government, far, public, the, called, fact<br>--- all, chinese, german, hungary, staff, paris, writes, wmw, to, communist\", \"+++ national, italy, minister<br>--- rtd, chinese, german, battle, soldiers, paris, tweet, thursday, communist, population\", \"+++ news, the, public<br>--- chinese, german, probe, discovered, hungary, staff, justice, communist, huma, sent\", \"+++ known, similar<br>--- atmosphere, chinese, german, caused, magnetic, earth, electricity, environment, communist, risk\", \"+++ great, united, says, country, states, world, called, today, history<br>--- chinese, german, hungary, tweeted, supporter, certainly, paris, going, 8, communist\", \"+++ and, death, government, national, later, history<br>--- chinese, german, wakingtimes, hungary, nevada, occupation, paris, edward, communist, population\", \"+++ news, national, later, war, history<br>--- stephens, german, sexist, talks, hungary, alt, hate, chinese, paris, bush\", \"+++ jewish, jews, english<br>--- chinese, german, text, results, hungary, children, formating, paris, send, communist\", \"+++ states, national, citizens, public, government<br>--- chinese, violation, issued, hungary, sheriff, justice, crime, german, going, communist\", \"+++ known, great, women<br>--- chinese, cdc, german, results, skin, hungary, children, paris, sugar, helps\", \"+++ says, jewish, country, states, news, the, similar<br>--- chinese, switched, german, global, results, hungary, votes, voter, paris, going\", \"+++ world, result, today<br>--- consider, chinese, german, focus, hungary, issues, based, knowledge, paris, communist\", \"+++ europe, eastern, united, countries, country, government, war, states, western, invasion<br>--- chinese, german, hungary, zone, turkish, paris, bush, communist, obama, far\", \"+++ citizens, government, country, national, muslim, states, second, united, the<br>--- chinese, german, hungary, issues, judges, justice, program, creamer, communist, population\", \"+++ world, national, later, history<br>--- phenomenon, founder, german, alien, hungary, chinese, extraterrestrial, tv, 0, communist\", \"+++ states, news, national, fact<br>--- chinese, german, results, democrats, hungary, debate, votes, paris, candidates, communist\", \"+++ united, countries, country, government, africa, british, called, states, western, world<br>--- particularly, chinese, german, hungary, gulf, paris, communist, far, merkel, despite\", \"+++ news, the, leader, city<br>--- ron, german, lack, hungary, chinese, jay, paris, obamacare, communist, population\", \"+++ chinese, countries, government, china, news, world<br>--- sector, gold, german, global, dollar, prices, hungary, paris, treasury, communist\", \"+++ known, the, called, came, century<br>--- planetary, chinese, german, queen, discovered, earth, paris, explain, black, communist\", \"+++ and, them, citizens, countries, far, country, national, government, war, states<br>--- chinese, german, global, hungary, justice, black, communist, mainstream, merkel, trade\", \"+++ city, death, later, public, news, the, called, happened<br>--- shot, chinese, german, allegations, gang, hungary, children, suicide, paris, crime\", \"+++ city, eastern, jewish, west, government, muslim, western, the, east, war<br>--- rebels, chinese, german, qaeda, mosul, battle, soldiers, turkish, paris, daesh\", \"+++ muslim, says, came, later, women<br>--- shot, chinese, german, hungary, children, paris, father, young, foster, communist\", \"+++ states, national, death, the<br>--- founder, german, baby, hungary, children, chinese, paris, father, communist, garden\"], [\"+++ october, according, u, news, world, the, south<br>--- chinese, global, month, state, 0, 8, population, oct, far, regional\", \"+++ end, point, global, times, state, world, the, day, today<br>--- pope, souls, month, earth, fear, religious, knowledge, 0, lord, population\", \"+++ says, end, point, years, world, day<br>--- saying, all, global, month, trying, state, 0, going, 8, he\", \"+++ 10, 27, support, 1, 0, 2, news, november, october, data<br>--- code, global, month, follow, trunews, increase, tv, state, list, 8\", \"+++ 2015, 25, state, 22, 10<br>--- fungal, ginseng, global, month, mild, content, 0, 8, population, oct\", \"+++ week, according, state, 000, home, the, day, change<br>--- global, month, protest, riots, 0, black, 8, posted, thousands, oct\", \"+++ week, reported, times, p, report, news, the, posted, day, shows<br>--- saying, global, month, debate, tv, tweet, state, 0, 8, oct\", \"+++ october, says, september, support, state, according, 3, u, news, south<br>--- corps, global, month, mile, ground, partners, sheriff, thursday, 0, wood\", \"+++ says, far, second, news, world, the, today, population<br>--- chinese, german, global, month, hungary, paris, state, 0, 8, communist\", \"+++ september, global, years, previous, 25, 27, 20, 21, 22, 23<br>--- \", \"+++ far, support, million, times, 1, state, 000, the, years<br>--- all, global, month, staff, writes, wmw, 0, 8, include, oct\", \"+++ october, reported, 30, p, 2, 5, 4, 6, november, posted<br>--- rtd, global, month, battle, soldiers, tweet, 3, thursday, 0, 8\", \"+++ october, according, reported, state, 000, 2015, news, the<br>--- probe, month, discovered, staff, justice, 0, 8, huma, oct, sent\", \"+++ low, high, study, according, years<br>--- atmosphere, caused, magnetic, global, month, earth, electricity, state, environment, 0\", \"+++ 11, 10, says, world, years, likely, year, 9, 8, november<br>--- global, month, tweeted, supporter, certainly, state, 0, going, he, oct\", \"+++ 11, state, u, year<br>--- wakingtimes, global, month, nevada, occupation, 0, edward, 8, bundy, oct\", \"+++ 11, october, times, u, half, 9, news, november, years, south<br>--- stephens, global, sexist, month, talks, alt, hate, state, 0, bush\", \"+++ 10, 1, 3, 2, 5, 4<br>--- text, global, results, month, children, formating, send, 0, 8, posted\", \"+++ high, reported, state, according, year<br>--- violation, issued, global, month, sheriff, justice, crime, 0, going, 8\", \"+++ high, study, increase, 3, 2, 5, 4, 1, day, low<br>--- cdc, global, results, month, skin, children, sugar, 0, helps, 8\", \"+++ says, global, according, years, reported, state, u, news, 8, the<br>--- switched, results, month, votes, voter, 0, going, tape, voted, oct\", \"+++ point, number, change, home, world, today<br>--- consider, global, focus, month, issues, based, knowledge, state, 0, 8\", \"+++ end, state, u, 2014, world, the, change<br>--- global, month, zone, turkish, 0, bush, 8, population, oct, far\", \"+++ 20, state, second, 000, u, year, 2015, the, change<br>--- global, month, issues, judges, justice, 0, program, creamer, 8, population\", \"+++ 2015, reported, according, years, 0, report, world, data, posted<br>--- phenomenon, founder, global, month, alien, extraterrestrial, tv, state, 8, oct\", \"+++ week, likely, point, support, percent, according, early, record, state, points<br>--- global, results, month, democrats, debate, votes, 0, candidates, 8, obama\", \"+++ 9, support, million, number, report, state, 000, u, year, 2015<br>--- particularly, global, month, gulf, 0, 8, posted, oct, far, 12\", \"+++ report, 2014, news, the, previous<br>--- ron, lack, month, jay, obamacare, state, 0, 8, obama, oct\", \"+++ high, global, state, years, increase, rate, u, low, year, world<br>--- sector, gold, dollar, month, chinese, 0, treasury, 8, posted, oct\", \"+++ ago, study, according, years, 2, 5, the, south<br>--- planetary, queen, month, discovered, earth, explain, 3, 0, black, 8\", \"+++ end, far, support, global, years, state, u, today, world, the<br>--- month, justice, 0, black, 8, posted, oct, mainstream, 12, nearly\", \"+++ ago, according, years, reported, state, year, report, home, news, times<br>--- shot, global, allegations, month, gang, children, suicide, crime, 0, black\", \"+++ october, support, according, state, 000, the<br>--- rebels, global, month, qaeda, mosul, battle, soldiers, turkish, daesh, iraqi\", \"+++ october, says, 6, years, year, home, november, day, posted<br>--- shot, global, month, children, father, young, 0, foster, 8, local\", \"+++ ago, the, study, period, years<br>--- founder, global, month, children, father, state, 0, 8, population, oct\"], [\"+++ operations, group, government, general, including, president, the<br>--- all, chinese, staff, weapons, writes, wmw, to, include, activities, far\", \"+++ control, times, source, state, the, order, called, fact<br>--- all, pope, global, souls, earth, fear, religious, staff, office, writes\", \"+++ real, and, all, big, work, years, in<br>--- saying, staff, trying, writes, wmw, to, going, include, activities, far\", \"+++ a, 1, e, support, internet, access, source, published, policy, post<br>--- all, code, follow, trunews, staff, tv, writes, wmw, to, include\", \"+++ and, source, state<br>--- all, fungal, ginseng, mild, staff, writes, wmw, to, include, ingredient\", \"+++ non, set, group, government, in, state, 000, members, team, the<br>--- all, protest, staff, writes, wmw, riots, to, black, include, thousands\", \"+++ real, the, media, published, times, project, york, internet, article, post<br>--- saying, all, debate, staff, tv, tweet, wmw, to, include, activities\", \"+++ project, company, private, access, state, line, support<br>--- all, corps, mile, ground, partners, sheriff, writes, wmw, thursday, to\", \"+++ and, government, far, public, the, called, fact<br>--- all, chinese, german, hungary, staff, paris, writes, wmw, to, communist\", \"+++ far, support, million, times, 1, state, 000, the, years<br>--- all, global, month, staff, writes, wmw, to, 8, posted, oct\", \"+++ operations, all, office, money, years, including, worked, staff, 1, group<br>--- \", \"+++ a, line, john, chief, general<br>--- rtd, all, battle, soldiers, staff, tweet, wmw, thursday, to, include\", \"+++ foundation, e, personal, private, general, source, state, 000, york, president<br>--- all, probe, discovered, july, justice, writes, wmw, to, huma, sent\", \"+++ non, journal, years, source, published, industry<br>--- atmosphere, caused, magnetic, all, earth, staff, cell, electricity, writes, wmw\", \"+++ president, office, in, years, team, article, called<br>--- all, tweeted, supporter, staff, certainly, writes, wmw, to, going, 8\", \"+++ and, control, group, government, state, published<br>--- all, wakingtimes, nevada, staff, writes, wmw, to, edward, include, activities\", \"+++ media, times, york, team, years, president, john, george<br>--- all, stephens, sexist, talks, alt, hate, staff, writes, wmw, to\", \"+++ a, 1, in, post, example, special<br>--- all, text, results, children, formating, staff, writes, wmw, state, send\", \"+++ control, activities, office, government, private, order, state, including, members, public<br>--- all, evidence, violation, issued, worked, staff, sheriff, justice, writes, wmw\", \"+++ 1, including<br>--- all, cdc, results, skin, children, staff, access, writes, wmw, 3\", \"+++ real, the, office, years, state, board, line, george<br>--- all, switched, global, results, staff, votes, voter, writes, wmw, to\", \"+++ real, control, personal, work, order, article, making, example<br>--- all, consider, focus, issues, staff, current, based, knowledge, writes, wmw\", \"+++ the, government, media, general, state, policy, president, post, order, called<br>--- all, staff, current, zone, turkish, writes, wmw, to, bush, include\", \"+++ group, office, government, money, work, chief, general, state, 000, york<br>--- all, issues, staff, judges, justice, writes, wmw, to, program, creamer\", \"+++ source, group, years<br>--- all, phenomenon, founder, alien, staff, extraterrestrial, tv, writes, wmw, 0\", \"+++ media, state, support, fact, president<br>--- all, results, democrats, debate, staff, votes, writes, wmw, to, candidates\", \"+++ media, claims, group, government, money, support, million, state, 000, including<br>--- all, particularly, staff, weapons, gulf, writes, wmw, to, include, activities\", \"+++ big, the, order<br>--- all, ron, lack, staff, jay, writes, obamacare, to, include, brown\", \"+++ real, business, government, money, dollars, industry, private, years, fund, state<br>--- sector, all, gold, global, dollar, staff, current, chinese, writes, wmw\", \"+++ a, years, source, team, the, called<br>--- planetary, all, queen, discovered, earth, staff, explain, wmw, to, black\", \"+++ real, and, working, government, far, control, support, years, state, media<br>--- all, global, staff, justice, writes, wmw, to, black, include, activities\", \"+++ chief, times, public, state, claims, the, years, called<br>--- all, shot, allegations, gang, children, staff, suicide, writes, wmw, crime\", \"+++ operations, group, government, support, state, 000, including, the<br>--- all, rebels, qaeda, mosul, battle, soldiers, staff, weapons, turkish, writes\", \"+++ years<br>--- all, shot, children, staff, writes, father, young, to, foster, money\", \"+++ a, the, non, industry, years<br>--- all, founder, children, staff, writes, father, to, include, activities, garden\"], [\"+++ october, force, air, near, minister, military, general<br>--- rtd, chinese, battle, soldiers, tweet, thursday, posted, veterans, hit, regional\", \"+++ day<br>--- rtd, pope, global, souls, battle, earth, fear, religious, knowledge, tweet\", \"+++ m, day<br>--- saying, all, rtd, battle, soldiers, trying, tweet, thursday, going, rss\", \"+++ a, 26, october, 2, november, posted<br>--- rtd, code, battle, follow, trunews, tv, tweet, thursday, 0, rss\", \"+++ force<br>--- rtd, fungal, ginseng, mild, battle, soldiers, tweet, thursday, rss, veterans\", \"+++ town, residents, national, day, wednesday<br>--- rtd, protest, battle, soldiers, tweet, thursday, riots, black, posted, thousands\", \"+++ reported, tweet, p, sources, day, posted<br>--- saying, rtd, battle, soldiers, debate, tv, thursday, rss, veterans, hit\", \"+++ october, army, national, reports, near, indian, thursday, line<br>--- rtd, corps, mile, battle, soldiers, ground, partners, sheriff, tweet, state\", \"+++ national, italy, minister<br>--- rtd, chinese, german, battle, hungary, paris, tweet, thursday, communist, rss\", \"+++ october, reported, 30, p, 2, 5, 4, 6, november, pm<br>--- rtd, global, month, battle, soldiers, tweet, state, thursday, 0, 8\", \"+++ a, line, john, chief, general<br>--- rtd, all, battle, soldiers, staff, writes, wmw, thursday, to, include\", \"+++ rtd, sources, quake, battle, doss, injuries, 26, tweet, thursday, day<br>--- \", \"+++ october, reported, reports, general, sources, john<br>--- rtd, probe, discovered, battle, soldiers, july, staff, justice, tweet, thursday\", \"+++ parts, center, air<br>--- rtd, atmosphere, caused, magnetic, battle, earth, electricity, tweet, thursday, environment\", \"+++ november, j, m, day, wednesday<br>--- rtd, battle, soldiers, tweeted, supporter, certainly, tweet, thursday, going, 8\", \"+++ national, j, present<br>--- rtd, wakingtimes, battle, soldiers, nevada, occupation, tweet, thursday, edward, rss\", \"+++ john, national, october, november<br>--- rtd, stephens, sexist, talks, soldiers, alt, hate, tweet, thursday, bush\", \"+++ a, 2, 5, 4<br>--- rtd, text, results, battle, soldiers, children, formating, tweet, send, earthquake\", \"+++ force, service, district, reported, national, reports, sources<br>--- rtd, evidence, violation, issued, battle, soldiers, sheriff, justice, tweet, thursday\", \"+++ 2, 5, day, 4<br>--- rtd, cdc, results, skin, battle, soldiers, children, tweet, thursday, sugar\", \"+++ reported, line, day, reports, posted<br>--- rtd, switched, global, results, battle, soldiers, votes, voter, tweet, thursday\", \"+++ <br>--- rtd, consider, focus, battle, soldiers, issues, based, knowledge, tweet, thursday\", \"+++ military, force, general<br>--- rtd, battle, soldiers, zone, turkish, tweet, thursday, bush, obama, veterans\", \"+++ national, john, chief, general<br>--- rtd, modi, battle, soldiers, issues, judges, justice, tweet, thursday, program\", \"+++ reported, national, reports, posted<br>--- rtd, phenomenon, founder, alien, battle, soldiers, extraterrestrial, tv, tweet, thursday\", \"+++ november, national, day, moore<br>--- rtd, results, democrats, battle, soldiers, debate, votes, tweet, thursday, won\", \"+++ john, center<br>--- rtd, particularly, battle, soldiers, gulf, tweet, thursday, posted, veterans, hit\", \"+++ air, service, vice<br>--- rtd, ron, lack, battle, soldiers, jay, tweet, obamacare, thursday, rss\", \"+++ major, central<br>--- sector, rtd, gold, global, dollar, battle, soldiers, chinese, tweet, thursday\", \"+++ a, near, 2, 5<br>--- planetary, rtd, queen, discovered, battle, soldiers, explain, thursday, black, posted\", \"+++ military, national<br>--- rtd, modi, global, battle, soldiers, justice, tweet, thursday, black, posted\", \"+++ reported, chief, killed, reports, officer<br>--- rtd, shot, allegations, gang, battle, soldiers, children, suicide, tweet, thursday\", \"+++ october, army, reports, air, minister, military, battle, soldiers, killed<br>--- rtd, rebels, qaeda, mosul, turkish, tweet, daesh, thursday, iraqi, terror\", \"+++ october, service, car, hospital, 6, hours, night, november, day, posted<br>--- rtd, shot, battle, soldiers, children, tweet, father, young, thursday, foster\", \"+++ a, national<br>--- rtd, founder, battle, soldiers, children, tweet, father, thursday, posted, veterans\"], [\"+++ use, october, washington, according, long, general, officials, president, news, the<br>--- chinese, probe, discovered, staff, justice, huma, sent, regional, coast, joint\", \"+++ source, state, the, long<br>--- pope, global, souls, discovered, earth, fear, religious, staff, knowledge, justice\", \"+++ i, know, long<br>--- saying, all, probe, discovered, staff, trying, justice, going, huma, sent\", \"+++ information, account, october, e, use, related, source, news, email<br>--- code, probe, discovered, follow, trunews, staff, tv, 0, huma, sent\", \"+++ 2015, source, state, campaign<br>--- fungal, ginseng, probe, discovered, mild, staff, justice, huma, sent, ingredient\", \"+++ the, state, 000, according<br>--- evidence, probe, discovered, protest, staff, justice, riots, black, huma, thousands\", \"+++ information, account, released, campaign, reported, sources, york, news, the, public<br>--- saying, probe, discovered, debate, staff, tv, tweet, huma, sent, mainstream\", \"+++ october, according, private, state, reports, department, news<br>--- corps, probe, discovered, mile, line, ground, partners, sheriff, justice, thursday\", \"+++ news, the, public<br>--- chinese, german, probe, discovered, hungary, staff, paris, communist, huma, hrc\", \"+++ october, according, reported, state, 000, 2015, news, the<br>--- global, month, discovered, staff, justice, 0, 8, huma, oct, sent\", \"+++ foundation, e, personal, private, general, source, state, 000, york, president<br>--- all, probe, discovered, july, justice, writes, wmw, to, huma, sent\", \"+++ october, reported, reports, general, sources, john<br>--- rtd, probe, discovered, battle, soldiers, july, staff, justice, tweet, thursday\", \"+++ laptop, probe, discovered, sources, questions, staff, announcement, justice, source, according<br>--- \", \"+++ source, use, according, long<br>--- atmosphere, caused, magnetic, probe, discovered, earth, staff, electricity, environment, huma\", \"+++ clinton, campaign, i, house, washington, days, long, mrs, hillary, election<br>--- probe, discovered, tweeted, supporter, staff, certainly, justice, going, 8, huma\", \"+++ state, long, announced<br>--- wakingtimes, probe, discovered, nevada, staff, justice, edward, huma, sent, torture\", \"+++ case, october, house, evidence, investigation, york, president, news, john<br>--- stephens, probe, sexist, discovered, talks, alt, hate, staff, justice, bush\", \"+++ i, use<br>--- text, probe, results, discovered, children, formating, staff, justice, 3, send\", \"+++ case, information, attorney, reported, justice, decision, use, according, reports, evidence<br>--- agency, allowed, letter, office, violation, issued, laptop, probe, washington, actions\", \"+++ use<br>--- cdc, probe, results, discovered, skin, children, staff, justice, 3, sugar\", \"+++ i, official, political, according, reports, evidence, reported, state, officials, election<br>--- switched, global, results, discovered, july, staff, votes, voter, justice, going\", \"+++ personal, information, use, long<br>--- consider, probe, focus, discovered, issues, staff, based, knowledge, justice, committee\", \"+++ clinton, political, influence, washington, hillary, general, state, president, the, presidential<br>--- probe, discovered, staff, zone, turkish, justice, bush, huma, sent, fly\", \"+++ attorney, congress, campaign, justice, house, decision, washington, i, general, director<br>--- probe, discovered, issues, staff, judges, program, creamer, huma, congressional, cuba\", \"+++ case, information, official, source, classified, according, reports, evidence, reported, documents<br>--- phenomenon, founder, probe, alien, staff, extraterrestrial, tv, 0, huma, sent\", \"+++ president, democratic, clinton, campaign, house, washington, according, political, state, election<br>--- probe, results, discovered, democrats, debate, staff, votes, justice, candidates, huma\", \"+++ campaign, political, evidence, state, 000, 2015, wikileaks, john<br>--- particularly, probe, discovered, staff, gulf, justice, huma, sent, lynch, despite\", \"+++ house, the, long, news<br>--- ron, lack, discovered, staff, jay, justice, obamacare, huma, sent, brown\", \"+++ news, state, long, private<br>--- sector, gold, global, dollar, discovered, staff, chinese, justice, treasury, huma\", \"+++ according, long, evidence, discovered, source, the<br>--- planetary, queen, earth, staff, justice, explain, black, huma, sent, probe\", \"+++ justice, political, long, corruption, state, president, the, democratic, public<br>--- global, discovered, staff, black, huma, sent, probe, agents, mainstream, far\", \"+++ case, attorney, officials, according, reports, evidence, reported, state, investigation, department<br>--- shot, probe, allegations, discovered, gang, children, staff, suicide, justice, committee\", \"+++ october, campaign, according, reports, state, 000, the<br>--- rebels, probe, discovered, qaeda, mosul, battle, soldiers, staff, turkish, justice\", \"+++ house, october, husband, told<br>--- shot, probe, discovered, children, staff, justice, father, young, foster, huma\", \"+++ use, the, related<br>--- founder, probe, discovered, children, staff, justice, father, olympics, huma, sent\"], [\"+++ use, according, however, long, air<br>--- atmosphere, chinese, caused, magnetic, earth, weapons, electricity, environment, risk, regional\", \"+++ body, natural, power, nature, light, energy, long, source, human, earth<br>--- atmosphere, pope, caused, magnetic, global, souls, fear, moon, religious, knowledge\", \"+++ long, years<br>--- saying, all, caused, magnetic, atmosphere, earth, trying, electricity, environment, going\", \"+++ device, source, use, published<br>--- atmosphere, code, caused, magnetic, follow, trunews, cell, tv, environment, 0\", \"+++ source, cells, health<br>--- atmosphere, fungal, ginseng, caused, magnetic, mild, hai, earth, electricity, environment\", \"+++ food, non, california, according<br>--- atmosphere, set, caused, magnetic, protest, earth, electricity, riots, black, thousands\", \"+++ published<br>--- saying, atmosphere, caused, magnetic, earth, debate, tv, tweet, environment, risk\", \"+++ area, energy, gas, according, water, environmental, clean<br>--- atmosphere, corps, caused, magnetic, mile, earth, ground, partners, sheriff, electricity\", \"+++ known, similar<br>--- atmosphere, chinese, german, caused, magnetic, hungary, paris, environment, communist, risk\", \"+++ low, high, study, according, years<br>--- atmosphere, caused, magnetic, global, month, earth, electricity, state, environment, 0\", \"+++ non, industry, years, source, published, journal<br>--- all, caused, magnetic, atmosphere, earth, staff, cell, electricity, writes, wmw\", \"+++ parts, center, air<br>--- rtd, atmosphere, caused, magnetic, battle, earth, electricity, tweet, thursday, environment\", \"+++ source, use, according, long<br>--- atmosphere, caused, magnetic, probe, discovered, earth, staff, justice, environment, huma\", \"+++ atmosphere, stores, caused, magnetic, years, human, earth, speed, electricity, environment<br>--- \", \"+++ long, years<br>--- atmosphere, caused, magnetic, earth, tweeted, supporter, certainly, electricity, environment, going\", \"+++ natural, gas, long, power, published<br>--- atmosphere, caused, wakingtimes, earth, nevada, occupation, electricity, environment, edward, keystone\", \"+++ however, johnson, years<br>--- atmosphere, stephens, caused, magnetic, sexist, talks, earth, alt, hate, electricity\", \"+++ university, dr, use<br>--- atmosphere, text, magnetic, results, earth, children, formating, electricity, send, environment\", \"+++ high, field, use, however, according<br>--- atmosphere, violation, issued, magnetic, earth, sheriff, justice, crime, environment, going\", \"+++ body, high, use, natural, risk, food, dr, study, studies, plant<br>--- atmosphere, cdc, caused, magnetic, results, skin, earth, children, cell, animal\", \"+++ similar, according, years<br>--- atmosphere, switched, caused, magnetic, global, results, earth, votes, voter, electricity\", \"+++ use, power, however, long, human, technology<br>--- atmosphere, consider, caused, magnetic, focus, earth, creative, issues, current, based\", \"+++ power<br>--- atmosphere, caused, magnetic, earth, current, zone, turkish, electricity, environment, bush\", \"+++ california, health<br>--- atmosphere, caused, magnetic, produce, stores, issues, judges, justice, environment, program\", \"+++ scientific, source, according, research, lights, health, scientists, years, dr<br>--- atmosphere, phenomenon, founder, caused, magnetic, alien, earth, tv, environment, 0\", \"+++ according, lead<br>--- atmosphere, caused, magnetic, results, democrats, earth, debate, votes, favor, electricity\", \"+++ center, human, published<br>--- atmosphere, particularly, caused, magnetic, produce, earth, weapons, gulf, electricity, environment\", \"+++ health, long, lead, air<br>--- atmosphere, ron, caused, magnetic, lack, produce, earth, jay, electricity, obamacare\", \"+++ high, lower, industry, long, years, large, products, low<br>--- sector, atmosphere, gold, caused, magnetic, global, dollar, prices, earth, current\", \"+++ blue, field, light, area, science, university, however, long, years, source<br>--- planetary, atmosphere, caused, magnetic, queen, produce, discovered, electricity, explain, environment\", \"+++ mass, long, power, years<br>--- atmosphere, caused, magnetic, global, earth, justice, environment, black, mainstream, far\", \"+++ according, years<br>--- atmosphere, shot, caused, magnetic, allegations, gang, earth, children, suicide, electricity\", \"+++ air, according, area<br>--- atmosphere, rebels, caused, magnetic, qaeda, mosul, battle, soldiers, weapons, turkish\", \"+++ years<br>--- atmosphere, shot, caused, magnetic, earth, children, electricity, father, young, environment\", \"+++ non, scientific, science, industry, use, years, california, human, growing, study<br>--- atmosphere, founder, caused, magnetic, baby, earth, children, electricity, father, environment\"], [\"+++ united, country, washington, possible, long, states, anti, president, world<br>--- chinese, tweeted, supporter, certainly, going, 8, obama, hope, regional, coast\", \"+++ great, right, long, called, world, man, day, today, history<br>--- pope, global, souls, earth, fear, tweeted, religious, supporter, certainly, office\", \"+++ again, great, right, says, i, things, this, country, m, long<br>--- saying, all, tweeted, supporter, certainly, trying, 8, hope, do, stop\", \"+++ 10, november, share, today<br>--- code, follow, tweeted, trunews, certainly, tv, 0, going, 8, he\", \"+++ 10, campaign<br>--- fungal, ginseng, mild, tweeted, supporter, certainly, going, 8, rahul, hope\", \"+++ in, country, violence, wednesday, nation, anti, team, following, america, day<br>--- protest, tweeted, supporter, certainly, riots, going, black, 8, obama, thousands\", \"+++ article, share, anti, day, campaign<br>--- saying, tweeted, debate, certainly, tv, tweet, going, 8, he, hope\", \"+++ states, americans, american, months, says<br>--- corps, mile, tweeted, supporter, ground, partners, certainly, sheriff, state, thursday\", \"+++ great, united, says, country, states, world, called, today, history<br>--- chinese, german, hungary, tweeted, supporter, certainly, paris, going, 8, communist\", \"+++ 11, 10, says, year, years, likely, world, 9, 8, november<br>--- global, month, tweeted, supporter, certainly, state, 0, going, he, oct\", \"+++ president, office, in, years, team, article, called<br>--- all, tweeted, supporter, staff, certainly, writes, wmw, to, going, 8\", \"+++ november, j, m, day, wednesday<br>--- rtd, battle, soldiers, tweeted, supporter, certainly, tweet, thursday, going, 8\", \"+++ clinton, campaign, i, house, washington, days, long, mrs, hillary, election<br>--- probe, discovered, tweeted, supporter, staff, certainly, justice, going, 8, huma\", \"+++ long, years<br>--- atmosphere, caused, magnetic, earth, tweeted, supporter, certainly, electricity, environment, going\", \"+++ office, years, course, clinton, tweeted, supporter, certainly, candidate, him, civil<br>--- \", \"+++ 11, j, long, american, year, history<br>--- wakingtimes, nevada, supporter, occupation, certainly, edward, 8, he, hope, torture\", \"+++ 11, house, team, years, american, mr, 9, president, november, man<br>--- stephens, sexist, talks, alt, tweeted, hate, supporter, certainly, bush, going\", \"+++ i, 10, american, in<br>--- text, results, tweeted, children, formating, certainly, send, going, 8, obama\", \"+++ office, civil, mr, states, matter, going, year<br>--- violation, issued, tweeted, supporter, certainly, sheriff, justice, crime, 8, he\", \"+++ great, anti, day<br>--- cdc, results, skin, tweeted, children, certainly, sugar, going, helps, 8\", \"+++ right, says, office, i, win, political, years, states, going, election<br>--- switched, global, results, tweeted, supporter, votes, voter, tape, voted, obama\", \"+++ things, possible, long, matter, article, world, today<br>--- consider, focus, tweeted, supporter, issues, certainly, based, knowledge, going, 8\", \"+++ united, clinton, country, washington, hillary, states, course, american, president, world<br>--- tweeted, supporter, certainly, zone, turkish, bush, going, 8, hope, tanks\", \"+++ right, campaign, office, i, house, year, washington, nation, states, elected<br>--- tweeted, supporter, issues, judges, justice, program, creamer, 8, hope, cuba\", \"+++ world, history, event, years<br>--- phenomenon, founder, alien, tweeted, supporter, certainly, extraterrestrial, tv, 0, going\", \"+++ clinton, trump, campaign, house, washington, states, likely, americans, election, vote<br>--- things, megyn, point, numbers, tuesday, matter, results, america, years, seen\", \"+++ united, campaign, country, political, states, american, year, 9, world, called<br>--- particularly, tweeted, supporter, certainly, gulf, going, 8, obama, hope, despite\", \"+++ right, house, long, sign, americans, joe, white, obama<br>--- ron, lack, tweeted, supporter, certainly, jay, obamacare, going, 8, hope\", \"+++ wall, world, year, long, years<br>--- sector, gold, global, dollar, tweeted, supporter, certainly, chinese, going, treasury\", \"+++ star, long, event, team, seen, hollywood, years, called, left<br>--- planetary, queen, discovered, earth, tweeted, supporter, certainly, explain, going, black\", \"+++ right, left, anti, civil, country, political, long, nation, states, course<br>--- global, tweeted, supporter, certainly, justice, going, black, 8, obama, hope\", \"+++ year, called, man, years<br>--- shot, allegations, gang, tweeted, children, certainly, suicide, crime, going, black\", \"+++ campaign<br>--- rebels, qaeda, mosul, battle, soldiers, tweeted, supporter, certainly, turkish, daesh\", \"+++ says, left, house, share, day, year, november, years, him, man<br>--- shot, tweeted, children, certainly, father, young, foster, 8, he, local\", \"+++ states, years<br>--- founder, tweeted, children, certainly, father, going, 8, obama, hope, 11\"], [\"+++ group, government, long, defense, u, security<br>--- chinese, wakingtimes, nevada, occupation, edward, cooperation, torture, regional, bear, coast\", \"+++ control, death, natural, power, secret, long, state, land, free, instead<br>--- pope, wakingtimes, global, souls, earth, fear, nevada, religious, occupation, knowledge\", \"+++ and, long<br>--- saying, all, wakingtimes, nevada, occupation, trying, going, bundy, do, torture\", \"+++ co, published<br>--- code, wakingtimes, follow, nevada, trunews, occupation, tv, 0, edward, bundy\", \"+++ and, state, free<br>--- fungal, ginseng, wakingtimes, mild, nevada, occupation, tass, edward, health, bundy\", \"+++ group, government, national, surveillance, state, security, armed<br>--- wakingtimes, protest, nevada, occupation, riots, tass, edward, black, thousands, protestors\", \"+++ conspiracy, published<br>--- saying, wakingtimes, nevada, debate, occupation, tv, tweet, edward, bundy, mainstream\", \"+++ pipeline, oil, protect, national, gas, state, american, land, u<br>--- corps, wakingtimes, mile, nevada, ground, partners, sheriff, thursday, wood, local\", \"+++ and, death, government, national, later, history<br>--- chinese, german, wakingtimes, defendant, hungary, nevada, occupation, paris, edward, communist\", \"+++ 11, state, u, year<br>--- wakingtimes, global, month, nevada, occupation, 0, edward, 8, posted, oct\", \"+++ control, and, group, government, state, published<br>--- all, wakingtimes, nevada, staff, writes, wmw, to, edward, include, activities\", \"+++ national, j, present<br>--- rtd, wakingtimes, battle, soldiers, nevada, occupation, tweet, thursday, edward, posted\", \"+++ state, long, announced<br>--- wakingtimes, probe, discovered, nevada, staff, justice, tass, edward, huma, sent\", \"+++ natural, gas, long, power, published<br>--- atmosphere, caused, magnetic, earth, nevada, occupation, electricity, environment, edward, health\", \"+++ 11, j, long, american, year, history<br>--- wakingtimes, tweeted, supporter, occupation, certainly, going, 8, obama, hope, torture\", \"+++ coup, wakingtimes, nevada, warren, death, group, assassination, edward, texas, torture<br>--- \", \"+++ 11, national, later, american, secret, u, history<br>--- stephens, wakingtimes, sexist, talks, alt, nevada, hate, occupation, bush, edward\", \"+++ american<br>--- text, wakingtimes, results, nevada, children, formating, occupation, state, send, edward\", \"+++ control, agency, jury, government, federal, national, secret, agencies, trial, state<br>--- violation, issued, wakingtimes, nevada, occupation, sheriff, justice, crime, edward, local\", \"+++ oil, natural<br>--- cdc, wakingtimes, results, skin, nevada, children, occupation, 3, sugar, edward\", \"+++ state, u, texas<br>--- switched, wakingtimes, global, results, nevada, occupation, votes, voter, tass, edward\", \"+++ control, long, free, power, face<br>--- consider, wakingtimes, focus, nevada, issues, occupation, based, knowledge, edward, torture\", \"+++ interests, coup, cia, power, government, intelligence, american, state, u, security<br>--- wakingtimes, nevada, occupation, zone, turkish, bush, edward, bundy, torture, bear\", \"+++ group, government, federal, national, american, state, defense, u, year, security<br>--- wakingtimes, nevada, issues, occupation, judges, justice, program, creamer, health, bundy\", \"+++ agency, group, intelligence, national, later, secret, nsa, history<br>--- phenomenon, founder, wakingtimes, alien, nevada, occupation, extraterrestrial, tv, 0, edward\", \"+++ american, national, state<br>--- wakingtimes, results, democrats, nevada, debate, occupation, votes, tass, edward, candidates\", \"+++ oil, group, government, intelligence, published, american, state, u, year<br>--- particularly, wakingtimes, nevada, occupation, gulf, edward, torture, bear, cheaper, despite\", \"+++ long, free, ryan<br>--- ron, wakingtimes, lack, nevada, occupation, jay, obamacare, edward, health, bundy\", \"+++ oil, government, federal, long, state, u, free, year<br>--- sector, gold, wakingtimes, global, dollar, nevada, occupation, chinese, edward, treasury\", \"+++ long<br>--- planetary, wakingtimes, queen, discovered, earth, nevada, occupation, explain, edward, black\", \"+++ and, interests, power, government, control, national, american, free, state, u<br>--- wakingtimes, global, nevada, occupation, justice, tass, edward, black, mainstream, torture\", \"+++ state, death, later, year<br>--- shot, wakingtimes, allegations, gang, nevada, children, occupation, suicide, crime, edward\", \"+++ armed, security, group, state, government<br>--- rebels, wakingtimes, qaeda, mosul, battle, soldiers, nevada, occupation, turkish, iraqi\", \"+++ face, later, year<br>--- shot, wakingtimes, nevada, children, occupation, father, young, foster, bundy, local\", \"+++ national, death<br>--- founder, wakingtimes, nevada, children, occupation, father, tass, edward, 11, garden\"], [\"+++ october, iran, peace, however, u, president, news, war, south<br>--- chinese, sexist, talks, alt, hate, stephens, finally, black, case, regional\", \"+++ peace, times, secret, race, truth, man, book, history<br>--- pope, global, souls, sexist, talks, earth, fear, religious, stephens, bush\", \"+++ didn, good, years<br>--- saying, all, stephens, sexist, talks, alt, hate, finally, bush, going\", \"+++ news, november, october, com<br>--- code, stephens, sexist, talks, follow, alt, hate, trunews, tv, 0\", \"+++ com<br>--- fungal, stephens, ginseng, sexist, mild, talks, alt, hate, finally, black\", \"+++ national, peace, black, george, team<br>--- stephens, sexist, protest, talks, alt, hate, riots, finally, thousands, protestors\", \"+++ story, media, times, stories, york, truth, news<br>--- saying, stephens, sexist, talks, alt, hate, debate, tv, tweet, bush\", \"+++ october, national, american, u, news, south<br>--- corps, sexist, mile, talks, alt, hate, ground, partners, stephens, sheriff\", \"+++ news, national, later, war, history<br>--- chinese, german, sexist, talks, hungary, alt, hate, finally, stephens, paris\", \"+++ 11, october, times, u, half, 9, news, november, years, south<br>--- stephens, global, sexist, month, talks, alt, hate, finally, state, 0\", \"+++ media, times, york, team, years, president, john, george<br>--- all, stephens, sexist, talks, alt, hate, staff, finally, writes, wmw\", \"+++ national, john, november, october<br>--- rtd, stephens, sexist, battle, soldiers, alt, hate, tweet, thursday, bush\", \"+++ case, october, house, evidence, investigation, york, president, news, john<br>--- stephens, probe, sexist, discovered, talks, alt, hate, staff, justice, bush\", \"+++ however, johnson, years<br>--- atmosphere, stephens, caused, magnetic, sexist, talks, earth, alt, hate, electricity\", \"+++ 11, house, mr, years, american, team, 9, president, november, man<br>--- stephens, sexist, talks, alt, tweeted, hate, supporter, certainly, finally, bush\", \"+++ 11, national, later, american, secret, u, history<br>--- stephens, wakingtimes, sexist, talks, alt, nevada, hate, occupation, bush, edward\", \"+++ bush, stephens, sexist, years, talks, scalia, alt, hate, finally, black<br>--- \", \"+++ american, clear<br>--- stephens, text, results, sexist, talks, alt, hate, children, formating, send\", \"+++ case, national, however, evidence, secret, mr, clear<br>--- stephens, violation, issued, sexist, talks, alt, hate, sheriff, justice, crime\", \"+++ <br>--- stephens, cdc, results, sexist, skin, talks, alt, hate, children, sugar\", \"+++ florida, evidence, u, news, years, george<br>--- stephens, switched, global, results, sexist, talks, alt, hate, votes, voter\", \"+++ clear, good, however<br>--- consider, stephens, focus, sexist, talks, alt, hate, issues, based, knowledge\", \"+++ iran, media, clear, american, bush, u, president, war<br>--- stephens, sexist, talks, alt, hate, zone, turkish, finally, black, fly\", \"+++ house, national, american, u, york, president, white, john<br>--- stephens, sexist, talks, alt, hate, issues, judges, justice, bush, program\", \"+++ case, national, later, years, secret, evidence, history<br>--- phenomenon, founder, sexist, alien, talks, alt, hate, finally, stephens, extraterrestrial\", \"+++ president, house, national, florida, american, race, media, news, november, white<br>--- stephens, results, sexist, democrats, talks, alt, hate, debate, votes, bush\", \"+++ media, arms, evidence, american, u, 9, john, war<br>--- particularly, stephens, sexist, talks, alt, hate, gulf, bush, black, case\", \"+++ brown, news, cover, white, house<br>--- ron, lack, sexist, talks, alt, hate, stephens, jay, obamacare, bush\", \"+++ news, u, years<br>--- sector, gold, global, dollar, sexist, talks, alt, hate, chinese, bush\", \"+++ however, evidence, black, team, years, south<br>--- planetary, stephens, queen, sexist, discovered, talks, earth, alt, hate, finally\", \"+++ media, national, peace, years, american, u, president, black, white, war<br>--- stephens, global, sexist, talks, alt, hate, finally, justice, bush, case\", \"+++ case, story, evidence, later, cover, times, investigation, black, news, years<br>--- shot, stephens, allegations, sexist, gang, talks, alt, hate, children, suicide\", \"+++ october, iran, war<br>--- rebels, stephens, sexist, qaeda, mosul, battle, soldiers, alt, hate, turkish\", \"+++ story, october, house, later, years, november, man<br>--- shot, stephens, sexist, talks, alt, hate, children, finally, father, young\", \"+++ national, book, years<br>--- founder, sexist, talks, alt, hate, children, finally, stephens, father, bush\"], [\"+++ use<br>--- chinese, text, results, children, formating, appears, send, meant, regional, coast\", \"+++ culture, live<br>--- pope, text, global, souls, earth, fear, religious, children, formating, knowledge\", \"+++ what, sure, want, i, better, start, live, way, in, need<br>--- saying, all, text, results, children, formating, trying, send, going, meant\", \"+++ comment, 10, use, help, 1, 2, link, a, address, post<br>--- code, text, results, follow, trunews, formating, tv, send, 0, meant\", \"+++ 10<br>--- fungal, ginseng, text, results, mild, children, formating, state, send, ingredient\", \"+++ community, in<br>--- text, results, protest, children, formating, state, send, riots, black, thousands\", \"+++ comment, post<br>--- saying, text, results, debate, formating, tv, tweet, send, hall, meant\", \"+++ 3, american, native<br>--- corps, text, results, mile, children, formating, ground, partners, sheriff, send\", \"+++ jewish, jews, english<br>--- chinese, german, text, results, hungary, children, formating, paris, send, communist\", \"+++ 10, 1, 3, 2, 5, 4<br>--- text, global, results, month, children, formating, send, 0, 8, posted\", \"+++ a, 1, in, post, example, special<br>--- all, text, results, children, formating, staff, writes, wmw, state, send\", \"+++ a, 2, 5, 4<br>--- rtd, text, results, battle, soldiers, children, formating, tweet, send, earthquake\", \"+++ i, use<br>--- text, probe, results, discovered, children, formating, staff, justice, state, send\", \"+++ university, dr, use<br>--- atmosphere, caused, magnetic, results, earth, children, formating, electricity, send, environment\", \"+++ i, 10, american, in<br>--- text, results, tweeted, children, formating, certainly, send, going, 8, obama\", \"+++ american<br>--- text, wakingtimes, results, nevada, children, formating, occupation, 3, send, edward\", \"+++ american, clear<br>--- stephens, text, results, sexist, talks, alt, hate, children, formating, send\", \"+++ help, text, results, thanks, children, formating, write, character, send, writing<br>--- \", \"+++ use, clear<br>--- violation, issued, results, children, formating, sheriff, justice, state, send, crime\", \"+++ use, help, results, 1, 3, 2, 5, 4, dr, children<br>--- cdc, text, skin, milk, formating, send, sugar, helps, meant, risk\", \"+++ sure, jewish, results, i, college, think<br>--- switched, text, global, children, formating, votes, voter, state, send, going\", \"+++ use, help, clear, needs, community, better, way, need, example<br>--- consider, text, focus, children, issues, based, knowledge, send, meant, means\", \"+++ clear, post, american, think<br>--- text, results, children, formating, zone, turkish, state, send, bush, meant\", \"+++ i, american, effort, policies<br>--- text, results, children, issues, judges, justice, state, send, program, creamer\", \"+++ dr<br>--- phenomenon, founder, text, results, alien, children, formating, extraterrestrial, tv, send\", \"+++ american, college, results<br>--- text, democrats, debate, formating, votes, state, send, won, candidates, carolina\", \"+++ american<br>--- particularly, text, results, children, formating, gulf, 3, send, meant, despite\", \"+++ needs, live, sure, help, takes<br>--- ron, text, lack, results, children, formating, jay, obamacare, send, meant\", \"+++ <br>--- sector, gold, text, global, dollar, results, children, formating, chinese, 3\", \"+++ a, university, 2, 5, appears<br>--- planetary, text, queen, results, discovered, earth, children, formating, explain, send\", \"+++ american, policies, way<br>--- text, global, results, children, formating, justice, 3, send, black, meant\", \"+++ children<br>--- shot, text, allegations, results, gang, formating, suicide, state, send, crime\", \"+++ jewish<br>--- rebels, text, results, qaeda, mosul, battle, soldiers, children, formating, turkish\", \"+++ school, help, children<br>--- shot, text, results, formating, father, young, send, foster, local, meant\", \"+++ a, use, parents, children<br>--- founder, text, results, formating, 95, father, send, meant, garden, emphasized\"], [\"+++ use, force, government, however, according, states, officials, including, close, security<br>--- chinese, violation, issued, sheriff, justice, crime, going, local, activities, means\", \"+++ control, state, secret, order<br>--- pope, violation, issued, global, souls, earth, fear, religious, office, sheriff\", \"+++ going<br>--- saying, all, violation, issued, trying, sheriff, justice, crime, local, do\", \"+++ information, phone, search, use, at<br>--- code, violation, issued, comments, follow, trunews, sheriff, tv, crime, 0\", \"+++ state, force<br>--- vitamins, fungal, ginseng, issued, mild, sheriff, justice, crime, violation, going\", \"+++ police, government, national, rights, according, state, members, authorities, security, local<br>--- evidence, violation, issued, protest, sheriff, justice, crime, riots, going, black\", \"+++ information, sources, reported, public, told<br>--- saying, violation, issued, debate, sheriff, tv, tweet, crime, going, local\", \"+++ enforcement, police, sheriff, rights, national, arrested, according, reports, county, state<br>--- corps, violation, issued, mile, ground, partners, justice, thursday, crime, wood\", \"+++ states, national, citizens, public, government<br>--- chinese, german, issued, hungary, sheriff, paris, crime, violation, going, communist\", \"+++ high, reported, state, according, year<br>--- violation, issued, global, month, sheriff, justice, crime, 0, going, 8\", \"+++ control, activities, office, government, private, order, state, including, members, public<br>--- all, violation, issued, cases, staff, sheriff, justice, writes, wmw, crime\", \"+++ force, service, district, reported, national, reports, sources<br>--- rtd, evidence, violation, issued, battle, soldiers, sheriff, justice, tweet, thursday\", \"+++ case, information, attorney, reported, justice, decision, use, according, reports, evidence<br>--- violation, issued, probe, discovered, staff, sheriff, crime, going, huma, local\", \"+++ high, field, use, however, according<br>--- atmosphere, violation, caused, magnetic, earth, sheriff, electricity, crime, environment, going\", \"+++ office, civil, year, states, matter, going, mr<br>--- violation, issued, tweeted, supporter, certainly, sheriff, justice, crime, 8, obama\", \"+++ control, agency, jury, government, federal, national, secret, agencies, trial, state<br>--- violation, issued, wakingtimes, nevada, occupation, sheriff, justice, crime, edward, local\", \"+++ case, national, however, evidence, secret, mr, clear<br>--- stephens, violation, issued, sexist, talks, alt, hate, sheriff, justice, crime\", \"+++ clear, use<br>--- evidence, violation, text, results, children, formating, sheriff, justice, state, send\", \"+++ agency, office, violation, issued, actions, sources, including, police, sheriff, justice<br>--- \", \"+++ high, use, including, cases<br>--- cdc, violation, issued, doctors, results, skin, children, sheriff, justice, 3\", \"+++ states, officials, office, according, reports, evidence, county, reported, state, going<br>--- switched, violation, issued, global, results, comments, votes, voter, sheriff, justice\", \"+++ control, information, use, means, clear, however, matter, order<br>--- consider, violation, issued, focus, issues, based, knowledge, sheriff, justice, crime\", \"+++ force, government, clear, states, state, security, order<br>--- evidence, violation, issued, zone, turkish, justice, crime, bush, going, local\", \"+++ attorney, office, national, states, year, court, constitution, justice, illegal, decision<br>--- evidence, violation, issued, issues, judges, sheriff, crime, program, creamer, local\", \"+++ case, information, national, agency, according, reports, evidence, reported, secret, told<br>--- phenomenon, founder, violation, issued, alien, sheriff, extraterrestrial, tv, crime, 0\", \"+++ states, national, according, state, told<br>--- violation, issued, results, democrats, debate, votes, sheriff, justice, crime, going\", \"+++ rights, government, crimes, evidence, states, state, including, year<br>--- particularly, violation, issued, publish, gulf, justice, crime, going, pay, local\", \"+++ phone, order, service<br>--- ron, violation, issued, lack, sheriff, jay, justice, obamacare, crime, going\", \"+++ government, federal, pay, private, high, state, year<br>--- sector, gold, violation, issued, global, dollar, chinese, sheriff, justice, crime\", \"+++ field, evidence, however, according<br>--- planetary, violation, issued, queen, discovered, earth, sheriff, justice, explain, crime\", \"+++ control, rights, government, justice, national, citizens, order, states, civil, state<br>--- violation, issued, global, sheriff, crime, going, black, local, activities, mainstream\", \"+++ attorney, crimes, evidence, officials, year, police, crime, state, prison, department<br>--- shot, violation, issued, allegations, gang, children, suicide, sheriff, justice, going\", \"+++ government, according, reports, state, including, security<br>--- rebels, violation, issued, qaeda, mosul, battle, soldiers, sheriff, turkish, justice\", \"+++ told, local, gun, service, year<br>--- shot, violation, issued, children, sheriff, justice, father, young, crime, foster\", \"+++ states, national, use, drug<br>--- founder, violation, issued, children, sheriff, justice, father, crime, going, local\"], [\"+++ anti, use, including<br>--- chinese, cdc, results, skin, children, weapons, sugar, helps, risk, regional\", \"+++ body, heart, great, natural, day<br>--- pope, cdc, global, souls, skin, earth, fear, moon, religious, milk\", \"+++ great, day, best, d<br>--- saying, all, cdc, results, skin, children, trying, sugar, going, helps\", \"+++ 1, use, 2, help<br>--- code, cdc, results, skin, follow, trunews, access, tv, sugar, 0\", \"+++ brain, health<br>--- fungal, cdc, ginseng, results, mild, skin, children, content, state, sugar\", \"+++ food, anti, day<br>--- cdc, results, protest, skin, milk, state, sugar, riots, black, helps\", \"+++ anti, day<br>--- saying, cdc, results, skin, debate, tv, tweet, sugar, helps, posted\", \"+++ water, 3, oil<br>--- corps, cdc, results, mile, skin, children, ground, partners, sheriff, thursday\", \"+++ known, great, women<br>--- chinese, cdc, german, results, skin, hungary, children, paris, sugar, helps\", \"+++ high, study, increase, 3, 2, 5, 4, 1, day, low<br>--- cdc, global, results, month, skin, milk, sugar, 0, helps, 8\", \"+++ 1, including<br>--- all, cdc, results, skin, milk, staff, access, writes, wmw, 3\", \"+++ 2, 5, day, 4<br>--- rtd, cdc, results, skin, battle, soldiers, children, tweet, thursday, sugar\", \"+++ use<br>--- cdc, probe, results, discovered, skin, children, staff, justice, 3, sugar\", \"+++ body, high, use, natural, risk, food, cause, study, studies, plant<br>--- atmosphere, cdc, caused, magnetic, results, skin, earth, children, cell, animal\", \"+++ great, anti, day<br>--- cdc, results, skin, tweeted, children, certainly, sugar, going, helps, 8\", \"+++ oil, natural<br>--- refuge, cdc, wakingtimes, results, skin, nevada, children, occupation, 3, sugar\", \"+++ <br>--- stephens, cdc, results, sexist, skin, talks, alt, hate, children, sugar\", \"+++ use, help, results, 1, 3, 2, 5, 4, dr, children<br>--- cdc, text, skin, milk, formating, send, sugar, helps, meant, risk\", \"+++ high, use, including, cases<br>--- cdc, violation, issued, filed, results, skin, children, sheriff, justice, state\", \"+++ help, cdc, results, brain, including, skin, research, children, increase, cup<br>--- \", \"+++ d, results, day<br>--- switched, global, skin, children, votes, voter, cdc, state, sugar, going\", \"+++ use, important, help, best, common<br>--- consider, cdc, focus, skin, creative, milk, issues, current, based, knowledge\", \"+++ <br>--- cdc, results, skin, children, current, zone, turkish, 3, sugar, bush\", \"+++ health, d<br>--- cdc, results, skin, children, issues, judges, justice, state, sugar, program\", \"+++ health, dr, research<br>--- phenomenon, founder, cdc, results, alien, skin, milk, extraterrestrial, tv, sugar\", \"+++ results, day<br>--- cdc, democrats, skin, children, votes, state, sugar, candidates, helps, obama\", \"+++ oil, including<br>--- particularly, cdc, results, skin, children, weapons, gulf, 3, sugar, helps\", \"+++ tea, health, help, best, d<br>--- ron, cdc, lack, results, skin, children, jay, obamacare, sugar, helps\", \"+++ increase, high, oil, products, low<br>--- sector, gold, cdc, global, dollar, results, prices, skin, milk, current\", \"+++ known, science, study, 2, 5<br>--- planetary, cdc, queen, results, discovered, skin, earth, milk, explain, sugar\", \"+++ anti<br>--- cdc, global, results, skin, milk, justice, 3, sugar, black, helps\", \"+++ medical, cases, children<br>--- shot, cdc, filed, allegations, results, gang, skin, milk, suicide, state\", \"+++ including<br>--- rebels, cdc, results, qaeda, mosul, skin, battle, soldiers, children, weapons\", \"+++ blood, women, help, day, children<br>--- shot, cdc, results, skin, milk, father, young, sugar, foster, helps\", \"+++ use, d, drugs, science, study, medical, birth, children<br>--- founder, cdc, results, known, skin, milk, father, sugar, helps, garden\"], [\"+++ country, according, states, officials, u, news, the, told<br>--- chinese, switched, global, results, votes, voter, going, tape, voted, 8\", \"+++ right, global, state, the, believe, day<br>--- pope, switched, souls, earth, fear, religious, votes, voter, office, religion\", \"+++ real, think, right, says, d, i, country, years, re, going<br>--- saying, all, switched, global, results, votes, voter, tape, voted, 8\", \"+++ news, comments, posted<br>--- code, switched, global, results, follow, trunews, votes, voter, tv, 0\", \"+++ jones, state<br>--- fungal, switched, ginseng, global, results, mild, votes, voter, cannabis, going\", \"+++ country, soros, according, day, state, the, george<br>--- switched, global, results, protest, votes, voter, riots, going, black, voted\", \"+++ real, wnd, reporting, reported, press, news, the, posted, day, told<br>--- saying, switched, global, results, debate, votes, voter, tv, tweet, going\", \"+++ states, says, according, reports, county, state, u, news, line<br>--- corps, switched, global, results, mile, ground, partners, votes, voter, sheriff\", \"+++ says, jewish, country, states, news, the, similar<br>--- chinese, switched, german, global, results, hungary, votes, voter, paris, going\", \"+++ says, global, according, years, reported, state, u, news, 8, the<br>--- switched, results, month, votes, voter, 0, going, tape, voted, oct\", \"+++ real, the, office, years, state, board, line, george<br>--- all, switched, global, results, staff, votes, voter, writes, wmw, to\", \"+++ reported, line, day, reports, posted<br>--- rtd, switched, global, results, battle, soldiers, votes, voter, tweet, thursday\", \"+++ i, official, political, according, reports, evidence, reported, state, officials, election<br>--- switched, probe, results, discovered, line, staff, votes, voter, justice, going\", \"+++ similar, according, years<br>--- atmosphere, switched, caused, magnetic, global, results, earth, votes, voter, electricity\", \"+++ right, says, office, i, country, political, years, states, going, election<br>--- switched, global, results, tweeted, supporter, certainly, voter, tape, voted, he\", \"+++ state, u, texas<br>--- switched, wakingtimes, global, results, nevada, occupation, votes, voter, edward, tape\", \"+++ florida, evidence, u, news, years, george<br>--- stephens, switched, global, results, sexist, talks, alt, hate, votes, voter\", \"+++ sure, jewish, results, i, college, think<br>--- switched, text, global, children, formating, votes, voter, appears, state, send\", \"+++ states, officials, office, according, reports, evidence, county, reported, state, going<br>--- switched, violation, issued, global, results, legal, votes, voter, sheriff, justice\", \"+++ d, results, day<br>--- cdc, global, skin, children, votes, voter, switched, 3, sugar, going\", \"+++ soros, office, switched, neilson, results, years, held, paper, votes, voter<br>--- \", \"+++ real, process<br>--- consider, switched, global, focus, issues, votes, voter, based, knowledge, going\", \"+++ country, political, states, state, u, the, think<br>--- switched, global, results, votes, voter, zone, turkish, bush, going, tape\", \"+++ right, d, office, i, country, states, state, u, the<br>--- switched, global, results, legal, issues, judges, voter, justice, program, creamer\", \"+++ evidence, official, according, reports, years, reported, told, posted<br>--- phenomenon, founder, switched, global, results, alien, votes, voter, extraterrestrial, tv\", \"+++ rigged, votes, cast, florida, voters, electoral, results, according, states, political<br>--- switched, global, democrats, debate, voter, going, candidates, voted, 8, obama\", \"+++ country, political, evidence, states, state, u<br>--- particularly, switched, global, results, publish, votes, voter, gulf, hayden, going\", \"+++ right, d, re, sure, news, the<br>--- ron, switched, lack, results, votes, voter, jay, obamacare, going, tape\", \"+++ real, global, years, state, u, news<br>--- sector, gold, switched, dollar, results, votes, voter, chinese, going, tape\", \"+++ the, paper, evidence, according, years<br>--- planetary, switched, queen, results, discovered, earth, votes, voter, explain, going\", \"+++ real, right, country, global, political, elections, years, states, state, u<br>--- switched, results, votes, voter, justice, going, black, voted, 8, sent\", \"+++ according, reports, years, reported, state, officials, news, the, evidence, told<br>--- shot, switched, global, allegations, results, gang, children, votes, voter, crime\", \"+++ jewish, according, reports, held, state, the<br>--- rebels, switched, global, results, qaeda, mosul, battle, soldiers, votes, voter\", \"+++ posted, told, says, day, years<br>--- shot, switched, global, results, children, votes, voter, father, young, foster\", \"+++ states, the, d, years<br>--- founder, switched, global, results, children, votes, voter, cannabis, father, going\"], [\"+++ world, use, possible, long, however<br>--- consider, chinese, focus, issues, current, based, knowledge, means, regional, coast\", \"+++ control, life, knowledge, power, point, self, mind, free, reality, society<br>--- consider, pope, global, souls, earth, fear, creative, religious, issues, based\", \"+++ real, life, good, point, feel, things, work, long, one, better<br>--- saying, all, consider, focus, issues, trying, based, knowledge, going, do\", \"+++ information, use, help, today, social<br>--- code, consider, focus, follow, trunews, issues, current, based, knowledge, tv\", \"+++ life, mind, free<br>--- fungal, consider, ginseng, focus, mild, issues, based, knowledge, ingredient, means\", \"+++ home, continue, lives, community, change<br>--- consider, focus, protest, issues, based, knowledge, riots, black, thousands, protestors\", \"+++ real, article, information, social<br>--- saying, consider, focus, debate, issues, based, knowledge, tv, tweet, mainstream\", \"+++ <br>--- consider, corps, focus, mile, issues, ground, partners, based, knowledge, sheriff\", \"+++ world, result, today<br>--- consider, chinese, german, focus, hungary, issues, based, knowledge, paris, communist\", \"+++ point, number, change, home, world, today<br>--- consider, global, focus, month, issues, based, knowledge, state, 0, 8\", \"+++ real, control, personal, work, order, article, making, example<br>--- all, consider, focus, issues, staff, current, based, knowledge, writes, wmw\", \"+++ <br>--- rtd, consider, focus, battle, soldiers, issues, based, knowledge, tweet, thursday\", \"+++ personal, information, use, long<br>--- consider, probe, focus, discovered, issues, staff, based, knowledge, justice, investigation\", \"+++ use, power, however, long, human, technology<br>--- atmosphere, consider, caused, magnetic, focus, earth, research, issues, current, based\", \"+++ things, possible, long, matter, article, world, today<br>--- consider, focus, tweeted, supporter, issues, certainly, based, knowledge, going, 8\", \"+++ control, long, free, power, face<br>--- consider, wakingtimes, focus, nevada, issues, occupation, based, knowledge, edward, torture\", \"+++ clear, good, however<br>--- consider, stephens, focus, sexist, talks, alt, hate, issues, based, knowledge\", \"+++ use, help, clear, needs, community, better, way, need, example<br>--- consider, text, results, children, formating, based, knowledge, send, meant, means\", \"+++ control, information, use, means, clear, however, matter, order<br>--- consider, violation, issued, focus, issues, based, knowledge, sheriff, justice, crime\", \"+++ use, important, help, best, common<br>--- consider, cdc, results, skin, research, children, issues, current, based, knowledge\", \"+++ real, process<br>--- consider, switched, global, results, issues, votes, voter, based, knowledge, going\", \"+++ consider, focus, human, issues, help, based, knowledge, personal, better, feel<br>--- \", \"+++ power, clear, current, world, order, change<br>--- consider, focus, issues, based, knowledge, zone, turkish, bush, means, tanks\", \"+++ action, work, change, issues, one<br>--- consider, focus, judges, based, knowledge, justice, program, creamer, congressional, cuba\", \"+++ world, information, subject<br>--- phenomenon, founder, focus, alien, research, issues, consider, based, knowledge, extraterrestrial\", \"+++ person, change, point<br>--- consider, results, democrats, debate, issues, votes, based, knowledge, candidates, carolina\", \"+++ world, number, human<br>--- particularly, consider, focus, issues, current, based, knowledge, gulf, means, negative\", \"+++ needs, help, free, long, order, best<br>--- consider, ron, lack, focus, issues, based, knowledge, jay, obamacare, brown\", \"+++ real, system, long, current, free, world<br>--- sector, consider, gold, global, dollar, focus, issues, based, chinese, treasury\", \"+++ technology, place, however, long<br>--- planetary, consider, queen, focus, discovered, earth, issues, based, knowledge, explain\", \"+++ real, control, power, self, free, society, future, long, way, social<br>--- consider, global, focus, issues, based, knowledge, justice, black, mainstream, means\", \"+++ lives, home, life, place<br>--- shot, consider, allegations, focus, gang, children, issues, suicide, based, knowledge\", \"+++ <br>--- rebels, focus, qaeda, mosul, battle, soldiers, issues, consider, weapons, based\", \"+++ home, life, face, help, social<br>--- shot, consider, child, focus, children, issues, based, knowledge, father, young\", \"+++ use, human<br>--- consider, founder, focus, children, issues, based, knowledge, father, garden, means\"], [\"+++ force, washington, general, states, president, united, nuclear, government, relations, attack<br>--- operations, coup, alliance, clinton, chinese, presence, neocon, political, america, strategic\", \"+++ end, power, us, order, state, world, the, called<br>--- pope, global, souls, earth, fear, religious, knowledge, zone, turkish, bush\", \"+++ we, end, that, country, no, us, course, so, world, think<br>--- saying, all, trying, zone, turkish, bush, going, obama, do, stop\", \"+++ policy, post<br>--- code, follow, trunews, current, zone, turkish, tv, 0, bush, obama\", \"+++ state, force<br>--- fungal, ginseng, mild, zone, turkish, bush, obama, ingredient, activation, tanks\", \"+++ government, country, state, attack, security, america, the, change<br>--- protest, zone, turkish, riots, bush, black, thousands, protestors, fly, cannon\", \"+++ media, post, propaganda, the<br>--- saying, debate, zone, turkish, tv, tweet, bush, obama, mainstream, watch\", \"+++ states, american, we, u, state<br>--- called, corps, mile, ground, partners, sheriff, turkish, thursday, bush, wood\", \"+++ europe, called, eastern, united, countries, country, government, war, states, west<br>--- chinese, german, hungary, zone, turkish, paris, bush, communist, population, far\", \"+++ end, state, u, 2014, world, the, change<br>--- global, month, zone, turkish, 0, bush, 8, posted, oct, far\", \"+++ the, government, media, general, state, policy, president, post, order, called<br>--- all, staff, current, zone, turkish, writes, wmw, to, bush, include\", \"+++ military, force, general<br>--- rtd, battle, soldiers, zone, turkish, tweet, thursday, bush, posted, veterans\", \"+++ clinton, washington, influence, political, hillary, general, state, president, the, presidential<br>--- called, probe, discovered, staff, zone, turkish, justice, bush, huma, sent\", \"+++ power<br>--- atmosphere, caused, magnetic, produce, earth, cell, zone, turkish, electricity, environment\", \"+++ president, united, clinton, country, washington, hillary, states, course, american, political<br>--- tweeted, supporter, certainly, zone, turkish, bush, going, 8, hope, tanks\", \"+++ interests, coup, cia, power, government, intelligence, american, state, u, security<br>--- wakingtimes, nevada, occupation, zone, turkish, bush, edward, obama, torture, bear\", \"+++ iran, media, clear, american, bush, u, president, war<br>--- called, stephens, sexist, talks, alt, hate, zone, turkish, finally, black\", \"+++ clear, post, american, think<br>--- called, text, results, children, formating, appears, zone, turkish, state, send\", \"+++ force, government, clear, states, state, security, order<br>--- evidence, violation, issued, sheriff, turkish, justice, crime, bush, going, local\", \"+++ <br>--- cdc, results, skin, children, current, zone, turkish, 3, sugar, bush\", \"+++ country, political, states, state, u, the, think<br>--- called, switched, global, results, votes, voter, zone, turkish, bush, going\", \"+++ power, clear, current, world, order, change<br>--- consider, focus, issues, based, knowledge, zone, turkish, bush, means, tanks\", \"+++ coup, course, world, cold, zone, turkish, bush, nato, overthrow, policy<br>--- \", \"+++ we, united, general, government, country, washington, american, america, foreign, states<br>--- called, issues, judges, zone, turkish, justice, bush, program, creamer, congressional\", \"+++ world, threat, intelligence<br>--- phenomenon, founder, alien, zone, turkish, tv, 0, bush, posted, extraterrestrials\", \"+++ clinton, political, washington, state, states, american, presidential, media, president, obama<br>--- called, results, democrats, debate, votes, zone, turkish, bush, candidates, carolina\", \"+++ media, called, united, libya, countries, intelligence, government, political, american, foreign<br>--- particularly, current, gulf, turkish, bush, tanks, despite, report, assad, governments\", \"+++ we, us, 2014, the, order, obama<br>--- ron, lack, zone, jay, obamacare, bush, brown, worst, tanks, report\", \"+++ countries, government, current, state, u, policy, world<br>--- sector, gold, global, dollar, chinese, zone, turkish, bush, treasury, street\", \"+++ the, called<br>--- planetary, queen, discovered, earth, zone, turkish, explain, bush, black, famous\", \"+++ leaders, states, course, president, united, end, media, political, state, policy<br>--- control, anti, clinton, coup, civil, global, confrontation, years, revolution, moral\", \"+++ the, state, attack, called<br>--- shot, allegations, gang, children, suicide, zone, turkish, crime, bush, black\", \"+++ middle, syrian, regime, turkey, turkish, west, eastern, state, attack, international<br>--- operations, coup, bush, clinton, rebels, campaign, terrorists, neocon, administration, confrontation\", \"+++ middle<br>--- shot, children, zone, turkish, father, young, bush, foster, obama, local\", \"+++ states, the<br>--- founder, children, zone, turkish, father, bush, plants, garden, tanks, assad\"], [\"+++ united, group, government, country, washington, foreign, states, defense, u, president<br>--- chinese, issues, judges, justice, program, creamer, congressional, cuba, regional, coast\", \"+++ state, right, the<br>--- pope, global, souls, earth, fear, religious, issues, judges, office, justice\", \"+++ we, right, d, i, country, work, one<br>--- saying, all, issues, judges, trying, justice, going, creamer, obama, congressional\", \"+++ policy, list<br>--- code, comments, follow, trunews, issues, judges, tv, 0, program, creamer\", \"+++ 2015, state, health, campaign<br>--- vitamins, fungal, ginseng, mild, issues, judges, justice, program, creamer, obama\", \"+++ group, government, country, national, rights, nation, state, 000, california, members<br>--- protest, issues, judges, justice, riots, program, black, thousands, congressional, protestors\", \"+++ speech, the, list, york, campaign<br>--- saying, debate, issues, judges, tv, tweet, program, creamer, obama, congressional\", \"+++ we, rights, national, state, states, american, americans, department, u, law<br>--- corps, mile, issues, ground, partners, judges, sheriff, justice, thursday, wood\", \"+++ citizens, government, country, national, muslim, states, second, united, the<br>--- called, chinese, german, hungary, issues, judges, paris, program, creamer, communist\", \"+++ 20, second, state, 000, u, year, 2015, the, change<br>--- global, month, issues, judges, justice, 0, program, creamer, 8, posted\", \"+++ group, office, government, money, work, chief, general, state, 000, york<br>--- all, issues, staff, judges, justice, writes, wmw, to, program, creamer\", \"+++ national, john, chief, general<br>--- rtd, battle, soldiers, issues, judges, justice, tweet, thursday, program, creamer\", \"+++ attorney, congress, campaign, justice, house, decision, washington, i, general, director<br>--- probe, discovered, issues, staff, judges, program, creamer, huma, sent, cuba\", \"+++ california, health<br>--- atmosphere, caused, magnetic, mexican, issues, judges, electricity, environment, program, creamer\", \"+++ right, campaign, office, i, house, washington, america, nation, states, elected<br>--- tweeted, supporter, issues, certainly, justice, going, creamer, 8, hope, cuba\", \"+++ group, government, federal, national, american, state, defense, u, year, security<br>--- wakingtimes, nevada, issues, occupation, judges, justice, edward, creamer, keystone, obama\", \"+++ house, national, american, u, york, president, white, john<br>--- stephens, sexist, talks, alt, hate, issues, judges, justice, bush, program\", \"+++ i, american, effort, policies<br>--- text, results, children, formating, judges, justice, state, send, program, creamer\", \"+++ attorney, office, national, states, year, court, constitution, justice, illegal, decision<br>--- evidence, violation, issued, issues, judges, sheriff, crime, going, creamer, local\", \"+++ health, d<br>--- cdc, results, skin, children, issues, judges, justice, 3, sugar, program\", \"+++ right, d, office, i, country, states, state, u, the<br>--- switched, global, results, comments, issues, votes, voter, justice, going, tape\", \"+++ action, work, change, issues, one<br>--- consider, focus, judges, based, knowledge, justice, program, creamer, congressional, cuba\", \"+++ we, united, general, government, country, washington, american, america, foreign, states<br>--- issues, judges, zone, turkish, justice, bush, program, creamer, congressional, cuba\", \"+++ mexican, office, money, executive, committee, issues, judges, group, justice, barack<br>--- \", \"+++ 2015, health, national, group, committee<br>--- phenomenon, founder, alien, issues, judges, extraterrestrial, tv, 0, program, creamer\", \"+++ states, campaign, senate, house, national, washington, american, barack, state, americans<br>--- results, democrats, debate, issues, votes, justice, program, candidates, congressional, carolina\", \"+++ united, john, group, campaign, government, money, rights, american, foreign, states<br>--- particularly, publish, issues, judges, gulf, justice, program, creamer, congressional, cuba\", \"+++ we, right, d, house, executive, health, americans, white, the, obama<br>--- ron, lack, issues, judges, jay, justice, obamacare, program, creamer, congressional\", \"+++ government, federal, money, tax, state, u, year, policy<br>--- sector, gold, global, dollar, issues, judges, chinese, justice, program, creamer\", \"+++ the<br>--- planetary, mexico, queen, discovered, earth, issues, judges, justice, explain, program\", \"+++ right, national, states, americans, united, justice, state, policy, white, government<br>--- global, issues, judges, program, black, congressional, mainstream, cuba, far, trade\", \"+++ attorney, court, chief, state, year, department, the<br>--- shot, allegations, gang, children, issues, judges, suicide, justice, crime, program\", \"+++ group, campaign, government, muslim, state, 000, security, the<br>--- rebels, qaeda, mosul, battle, soldiers, issues, judges, turkish, justice, iraqi\", \"+++ house, muslim, gun, year<br>--- shot, children, issues, judges, justice, father, young, program, creamer, money\", \"+++ states, the, national, california, d<br>--- founder, children, issues, judges, justice, 95, father, program, creamer, congressional\"], [\"+++ world, group, according, threat, told<br>--- phenomenon, chinese, alien, founder, lights, tv, 0, extraterrestrials, egyptian, regional\", \"+++ source, secret, history, world<br>--- phenomenon, pope, global, souls, alien, earth, fear, moon, religious, founder\", \"+++ world, years<br>--- saying, all, phenomenon, founder, alien, trying, lights, tv, 0, going\", \"+++ articles, source, tv, related, 0, information, data, posted<br>--- code, phenomenon, founder, alien, follow, trunews, lights, list, extraterrestrials, egyptian\", \"+++ 2015, source, health, meat, lab<br>--- fungal, phenomenon, founder, ginseng, alien, mild, hai, lights, tv, 0\", \"+++ national, group, according<br>--- phenomenon, founder, alien, protest, extraterrestrial, tv, riots, 0, black, thousands\", \"+++ information, released, tv, reported, video, report, posted, told<br>--- saying, phenomenon, founder, alien, debate, extraterrestrial, tweet, 0, extraterrestrials, mainstream\", \"+++ national, according, reports<br>--- phenomenon, corps, alien, mile, ground, partners, founder, sheriff, lights, tv\", \"+++ world, national, later, history<br>--- phenomenon, chinese, german, alien, hungary, founder, lights, paris, 0, topic\", \"+++ reported, according, years, 0, report, 2015, world, data, posted<br>--- phenomenon, founder, global, month, alien, lights, tv, state, 8, oct\", \"+++ source, group, years<br>--- all, phenomenon, founder, alien, staff, lights, tv, writes, wmw, to\", \"+++ reported, national, reports, posted<br>--- rtd, phenomenon, founder, alien, battle, soldiers, extraterrestrial, tv, tweet, thursday\", \"+++ case, information, official, reported, classified, according, related, evidence, source, documents<br>--- phenomenon, founder, probe, discovered, staff, lights, justice, 0, huma, sent\", \"+++ scientific, lights, according, research, source, health, scientists, years, dr<br>--- atmosphere, phenomenon, founder, caused, magnetic, alien, earth, electricity, environment, 0\", \"+++ world, history, event, years<br>--- phenomenon, founder, alien, tweeted, supporter, certainly, lights, tv, 0, going\", \"+++ later, group, intelligence, national, agency, secret, nsa, history<br>--- phenomenon, founder, wakingtimes, alien, nevada, occupation, extraterrestrial, tv, 0, edward\", \"+++ case, national, later, evidence, secret, years, history<br>--- phenomenon, stephens, sexist, alien, talks, alt, hate, founder, lights, tv\", \"+++ dr<br>--- phenomenon, founder, text, results, alien, children, formating, lights, tv, send\", \"+++ case, information, national, agency, according, reports, evidence, reported, secret, told<br>--- phenomenon, founder, violation, issued, alien, sheriff, lights, justice, crime, 0\", \"+++ health, dr, research<br>--- phenomenon, founder, cdc, results, alien, skin, children, lights, tv, sugar\", \"+++ evidence, official, according, reports, years, reported, told, posted<br>--- phenomenon, founder, switched, global, results, alien, votes, voter, lights, tv\", \"+++ world, information, subject<br>--- consider, founder, focus, alien, creative, issues, phenomenon, based, knowledge, lights\", \"+++ world, threat, intelligence<br>--- phenomenon, founder, alien, zone, turkish, tv, 0, bush, posted, extraterrestrials\", \"+++ 2015, health, national, group, committee<br>--- phenomenon, founder, alien, issues, judges, extraterrestrial, justice, 0, program, creamer\", \"+++ phenomenon, founder, years, alien, symbolism, committee, chaffetz, group, lights, tv<br>--- \", \"+++ national, according, committee, told<br>--- phenomenon, founder, results, alien, democrats, debate, votes, favor, tv, 0\", \"+++ group, intelligence, evidence, report, 2015, world<br>--- particularly, phenomenon, founder, alien, gulf, lights, tv, 0, topic, extraterrestrials\", \"+++ report, health<br>--- phenomenon, ron, lack, alien, founder, jay, tv, obamacare, 0, posted\", \"+++ world, years<br>--- sector, phenomenon, gold, global, dollar, alien, chinese, extraterrestrial, tv, 0\", \"+++ space, according, years, source, nasa, anonymous, scientists, evidence, event<br>--- planetary, phenomenon, founder, queen, discovered, earth, lights, tv, explain, 0\", \"+++ world, national, history, years<br>--- phenomenon, founder, global, alien, dimension, lights, justice, 0, black, extraterrestrials\", \"+++ case, later, according, reports, years, reported, report, evidence, told<br>--- shot, phenomenon, founder, allegations, alien, gang, children, suicide, extraterrestrial, tv\", \"+++ group, according, reports<br>--- rebels, founder, alien, qaeda, mosul, battle, soldiers, phenomenon, turkish, tv\", \"+++ later, years, eddie, video, told, posted<br>--- shot, phenomenon, founder, alien, children, lights, tv, father, young, 0\", \"+++ national, scientific, related, founder, years<br>--- phenomenon, alien, children, lights, tv, father, 0, extraterrestrials, garden, egyptian\"], [\"+++ north, washington, according, states, president, news, secretary, told<br>--- chinese, results, democrats, debate, votes, candidates, carolina, michigan, regional, coast\", \"+++ state, race, day, fact, point<br>--- pope, global, souls, democrats, earth, fear, religious, debate, votes, knowledge\", \"+++ person, day, point<br>--- saying, all, results, democrats, debate, votes, trying, going, candidates, he\", \"+++ news, november, support<br>--- code, results, democrats, follow, trunews, votes, tv, 0, candidates, posted\", \"+++ state, campaign<br>--- fungal, ginseng, results, mild, democrats, debate, votes, candidates, obama, ingredient\", \"+++ week, national, according, state, day, change<br>--- results, protest, democrats, debate, votes, riots, black, thousands, protestors, cannon\", \"+++ week, campaign, media, day, speech, cnn, news, debate, told<br>--- saying, results, democrats, votes, tv, tweet, candidates, posted, carolina, mainstream\", \"+++ north, support, american, according, states, state, americans, news, national<br>--- corps, results, mile, democrats, debate, ground, partners, votes, sheriff, thursday\", \"+++ states, news, national, fact<br>--- chinese, german, results, democrats, hungary, debate, votes, paris, candidates, communist\", \"+++ week, point, support, percent, likely, according, early, record, state, points<br>--- global, results, month, democrats, debate, votes, 0, candidates, 8, posted\", \"+++ media, state, support, fact, president<br>--- all, results, democrats, debate, staff, votes, writes, wmw, to, candidates\", \"+++ november, national, day, moore<br>--- rtd, results, democrats, battle, soldiers, debate, votes, tweet, thursday, indian\", \"+++ president, democratic, clinton, campaign, house, washington, according, political, state, election<br>--- probe, results, discovered, democrats, debate, staff, votes, justice, candidates, huma\", \"+++ according, lead<br>--- atmosphere, caused, magnetic, results, democrats, earth, debate, votes, lights, electricity\", \"+++ clinton, trump, campaign, house, washington, states, donald, americans, election, vote<br>--- rigged, elect, megyn, office, violence, wall, percent, tuesday, secretary, results\", \"+++ american, national, state<br>--- wakingtimes, results, democrats, nevada, debate, occupation, votes, edward, candidates, bundy\", \"+++ president, house, national, florida, american, race, media, news, november, white<br>--- stephens, results, sexist, democrats, talks, alt, hate, debate, votes, bush\", \"+++ american, college, results<br>--- text, democrats, children, formating, votes, state, send, version, candidates, carolina\", \"+++ states, national, according, state, told<br>--- violation, issued, results, democrats, debate, votes, sheriff, justice, crime, going\", \"+++ results, day<br>--- cdc, democrats, skin, children, votes, 3, sugar, candidates, helps, obama\", \"+++ rigged, votes, cast, florida, voters, electoral, elections, results, states, political<br>--- switched, global, democrats, debate, voter, going, tape, voted, 8, posted\", \"+++ person, change, point<br>--- consider, secretary, focus, democrats, debate, issues, votes, based, knowledge, candidates\", \"+++ clinton, political, washington, state, states, american, presidential, media, president, obama<br>--- results, democrats, debate, votes, zone, turkish, bush, candidates, carolina, michigan\", \"+++ states, campaign, senate, house, national, washington, american, barack, state, americans<br>--- results, democrats, debate, issues, judges, justice, program, creamer, congressional, carolina\", \"+++ national, according, committee, told<br>--- phenomenon, founder, results, alien, democrats, debate, votes, favor, tv, 0\", \"+++ results, democrats, committee, debate, votes, candidate, winning, barack, candidates, 2012<br>--- \", \"+++ campaign, media, support, political, american, states, state, wikileaks<br>--- particularly, results, democrats, debate, votes, gulf, candidates, carolina, michigan, despite\", \"+++ lead, house, green, democrat, running, americans, cnn, news, white, gop<br>--- ron, lack, results, democrats, debate, votes, jay, obamacare, candidates, carolina\", \"+++ news, state<br>--- sector, gold, global, dollar, results, democrats, debate, votes, chinese, candidates\", \"+++ according<br>--- planetary, queen, results, discovered, democrats, earth, debate, votes, explain, black\", \"+++ president, media, national, political, state, elections, states, american, americans, fact<br>--- global, results, democrats, debate, votes, justice, black, carolina, mainstream, far\", \"+++ news, state, according, told<br>--- shot, secretary, allegations, results, gang, children, votes, suicide, crime, black\", \"+++ state, support, according, campaign<br>--- rebels, results, qaeda, mosul, battle, soldiers, debate, votes, turkish, iraqi\", \"+++ house, she, party, november, day, told<br>--- shot, results, democrats, children, votes, father, young, foster, candidates, obama\", \"+++ states, national<br>--- founder, results, democrats, children, votes, father, candidates, carolina, garden, michigan\"], [\"+++ states, united, group, u, countries, country, region, government, foreign, weapons<br>--- particularly, chinese, gulf, regional, coast, joint, despite, report, governments, saudi\", \"+++ world, state, called, human<br>--- particularly, pope, global, souls, earth, fear, religious, knowledge, gulf, religion\", \"+++ world, there, country<br>--- saying, all, particularly, sales, trying, gulf, re, going, do, stop\", \"+++ policy, rt, support, published<br>--- code, particularly, sales, comments, follow, trunews, access, gulf, tv, 0\", \"+++ 2015, state, campaign<br>--- fungal, particularly, ginseng, mild, gulf, cannabis, ingredient, activation, sales, despite\", \"+++ group, rights, country, government, state, 000, groups<br>--- particularly, sales, protest, gulf, riots, black, thousands, protestors, homes, cannon\", \"+++ journalists, campaign, media, narrative, interview, published, report<br>--- saying, particularly, sales, debate, gulf, tv, tweet, mainstream, watch, facebook\", \"+++ oil, rights, support, state, states, american, u, region<br>--- particularly, corps, sales, mile, ground, partners, sheriff, thursday, wood, local\", \"+++ united, countries, country, government, africa, british, called, states, western, world<br>--- particularly, chinese, german, hungary, gulf, paris, communist, far, merkel, despite\", \"+++ 9, support, million, number, report, state, 000, u, year, 2015<br>--- particularly, global, month, gulf, 0, 8, posted, oct, organizations, far\", \"+++ media, claims, group, government, money, support, million, state, 000, including<br>--- all, particularly, staff, access, gulf, writes, wmw, to, include, activities\", \"+++ john, center<br>--- rtd, particularly, sales, battle, soldiers, gulf, tweet, thursday, posted, veterans\", \"+++ campaign, political, evidence, state, 000, 2015, wikileaks, john<br>--- particularly, probe, discovered, staff, gulf, justice, huma, sent, lynch, despite\", \"+++ center, human, published<br>--- atmosphere, particularly, sales, caused, magnetic, produce, earth, cell, gulf, electricity\", \"+++ united, campaign, country, political, states, american, year, 9, world, called<br>--- particularly, tweeted, supporter, certainly, gulf, going, 8, obama, hope, despite\", \"+++ oil, group, government, intelligence, published, american, state, u, year<br>--- particularly, wakingtimes, nevada, occupation, gulf, edward, torture, bear, cheaper, despite\", \"+++ media, arms, evidence, american, u, 9, john, war<br>--- particularly, stephens, sales, sexist, talks, alt, hate, gulf, bush, black\", \"+++ american<br>--- called, particularly, sales, text, results, children, formating, gulf, state, send\", \"+++ rights, government, crimes, evidence, states, state, including, year<br>--- particularly, violation, issued, legal, sheriff, justice, crime, going, local, activities\", \"+++ oil, including<br>--- particularly, cdc, sales, results, skin, children, weapons, gulf, 3, sugar\", \"+++ country, political, evidence, states, state, u<br>--- particularly, switched, sales, global, results, comments, votes, voter, gulf, re\", \"+++ world, number, human<br>--- particularly, consider, focus, issues, current, based, knowledge, gulf, means, despite\", \"+++ media, united, war, libya, countries, intelligence, government, political, american, foreign<br>--- particularly, current, zone, turkish, bush, tanks, despite, report, assad, governments\", \"+++ united, group, campaign, rights, money, government, year, american, foreign, states<br>--- particularly, publish, issues, judges, gulf, justice, program, creamer, congressional, cuba\", \"+++ group, intelligence, evidence, 2015, report, world<br>--- particularly, phenomenon, founder, sales, alien, gulf, extraterrestrial, tv, 0, topic\", \"+++ campaign, media, support, political, american, states, state, wikileaks<br>--- particularly, results, democrats, debate, votes, gulf, candidates, carolina, michigan, despite\", \"+++ particularly, money, terrorist, embassy, including, human, group, gulf, policy, 2011<br>--- \", \"+++ report, al<br>--- particularly, ron, lack, gulf, jay, obamacare, brown, worst, despite, governments\", \"+++ billion, oil, financial, countries, money, government, state, u, year, policy<br>--- sector, particularly, gold, global, dollar, weapons, chinese, gulf, treasury, street\", \"+++ called, evidence<br>--- planetary, particularly, sales, queen, discovered, earth, gulf, explain, black, famous\", \"+++ media, rights, countries, country, support, government, political, american, foreign, states<br>--- particularly, global, gulf, justice, black, mainstream, far, despite, report, trade\", \"+++ crimes, evidence, state, year, report, claims, called<br>--- shot, sales, allegations, gang, particularly, children, suicide, gulf, crime, black\", \"+++ terrorist, group, campaign, isis, attacks, region, government, al, war, weapons<br>--- particularly, rebels, qaeda, mosul, battle, soldiers, gulf, turkish, iraqi, terror\", \"+++ middle, year<br>--- shot, sales, particularly, children, gulf, father, young, foster, money, local\", \"+++ states, human<br>--- particularly, founder, sales, children, gulf, cannabis, father, garden, despite, report\"], [\"+++ news, the, us, long, air<br>--- chinese, lack, ron, jay, obamacare, brown, regional, coast, joint, worst\", \"+++ right, us, away, long, live, free, the, come, order<br>--- pope, global, souls, earth, fear, religious, ron, jay, obamacare, lord\", \"+++ we, right, d, big, away, live, long, re, bad, sure<br>--- saying, all, ron, lack, trying, jay, obamacare, going, he, do\", \"+++ news, help, phone<br>--- code, ron, lack, follow, trunews, jay, tv, obamacare, 0, posted\", \"+++ health, free<br>--- fungal, ron, ginseng, lack, mild, jay, obamacare, obama, ingredient, brown\", \"+++ city, the, come, crisis<br>--- ron, lack, protest, jay, obamacare, riots, black, thousands, protestors, brown\", \"+++ report, news, the, cnn, online<br>--- saying, ron, lack, debate, jay, tv, tweet, obamacare, posted, brown\", \"+++ news, we, americans<br>--- corps, lack, mile, ground, partners, ron, sheriff, jay, obamacare, state\", \"+++ news, the, leader, city<br>--- chinese, german, lack, hungary, ron, jay, paris, obamacare, communist, obama\", \"+++ report, news, the, 2014, previous<br>--- ron, global, month, jay, obamacare, state, 0, 8, posted, oct\", \"+++ big, the, order<br>--- all, ron, lack, staff, jay, writes, wmw, fund, to, include\", \"+++ vice, service, air<br>--- rtd, ron, lack, battle, soldiers, jay, tweet, obamacare, thursday, rss\", \"+++ house, the, long, news<br>--- ron, probe, discovered, staff, jay, justice, obamacare, huma, sent, brown\", \"+++ health, long, lead, air<br>--- atmosphere, ron, caused, magnetic, lack, earth, jay, electricity, obamacare, environment\", \"+++ right, house, long, sign, americans, joe, white, obama<br>--- ron, lack, tweeted, supporter, certainly, jay, obamacare, going, 8, hope\", \"+++ long, free, ryan<br>--- ron, wakingtimes, lack, nevada, occupation, jay, obamacare, edward, keystone, bundy\", \"+++ house, white, cover, brown, news<br>--- stephens, lack, sexist, talks, alt, hate, ron, jay, obamacare, bush\", \"+++ needs, live, sure, help, takes<br>--- ron, text, lack, results, children, formating, jay, obamacare, send, meant\", \"+++ phone, order, service<br>--- ron, violation, issued, lack, sheriff, jay, justice, obamacare, crime, going\", \"+++ tea, health, help, best, d<br>--- ron, cdc, lack, results, skin, children, jay, obamacare, sugar, helps\", \"+++ right, d, re, sure, news, the<br>--- ron, switched, global, results, votes, voter, jay, obamacare, going, tape\", \"+++ needs, help, free, long, order, best<br>--- consider, ron, lack, focus, issues, based, knowledge, jay, obamacare, brown\", \"+++ we, us, 2014, the, order, obama<br>--- ron, lack, zone, turkish, obamacare, bush, brown, worst, tanks, report\", \"+++ we, right, d, house, executive, health, americans, white, the, obama<br>--- ron, lack, issues, judges, jay, justice, obamacare, program, creamer, congressional\", \"+++ report, health<br>--- phenomenon, founder, lack, alien, ron, extraterrestrial, tv, obamacare, 0, posted\", \"+++ lead, house, green, democrat, running, americans, cnn, news, white, gop<br>--- ron, lack, results, democrats, debate, votes, jay, obamacare, candidates, carolina\", \"+++ report, al<br>--- particularly, ron, lack, gulf, jay, obamacare, brown, worst, despite, governments\", \"+++ help, ron, executive, proposes, signs, paul, previous, retirement, jay, obamacare<br>--- \", \"+++ free, big, long, plan, news, crisis<br>--- sector, gold, global, dollar, chinese, jay, obamacare, treasury, brown, lack\", \"+++ the, look, long<br>--- planetary, ron, queen, discovered, earth, jay, explain, obamacare, black, brown\", \"+++ the, right, us, long, order, americans, free, white, crisis<br>--- ron, global, jay, justice, obamacare, black, brown, lack, mainstream, far\", \"+++ report, news, the, cover, city<br>--- shot, ron, lack, allegations, gang, children, suicide, jay, obamacare, crime\", \"+++ city, the, al, us, air<br>--- rebels, ron, lack, qaeda, mosul, battle, soldiers, turkish, obamacare, daesh\", \"+++ house, away, help, service<br>--- shot, ron, lack, children, jay, father, young, foster, obama, local\", \"+++ the, d<br>--- founder, lack, children, ron, jay, father, brown, garden, worst, report\"], [\"+++ chinese, countries, government, long, china, news, world, u<br>--- sector, gold, global, dollar, current, treasury, regional, coast, joint, trade\", \"+++ global, long, state, free, world, higher<br>--- sector, pope, dollar, souls, earth, fear, religious, chinese, treasury, lord\", \"+++ real, big, long, world, years<br>--- sector, saying, all, gold, global, dollar, trying, chinese, going, treasury\", \"+++ policy, news, company, companies<br>--- sector, code, gold, global, dollar, follow, trunews, current, chinese, tv\", \"+++ state, free<br>--- sector, fungal, chinese, ginseng, global, dollar, mild, content, gold, treasury\", \"+++ state, crisis, government<br>--- sector, gold, global, dollar, protest, chinese, riots, stand, black, treasury\", \"+++ real, news<br>--- sector, saying, gold, global, dollar, debate, chinese, tv, tweet, treasury\", \"+++ oil, company, private, state, u, news<br>--- sector, corps, global, dollar, mile, ground, partners, gold, sheriff, thursday\", \"+++ chinese, countries, government, china, news, world<br>--- sector, gold, german, global, dollar, known, hungary, paris, treasury, communist\", \"+++ high, global, rate, years, increase, state, u, low, year, world<br>--- sector, gold, dollar, month, chinese, 0, treasury, 8, posted, oct\", \"+++ real, business, government, money, industry, private, years, fund, state, big<br>--- sector, all, gold, global, dollar, staff, current, chinese, writes, wmw\", \"+++ major, central<br>--- sector, rtd, gold, global, dollar, battle, soldiers, chinese, tweet, thursday\", \"+++ news, state, long, private<br>--- sector, gold, probe, dollar, discovered, staff, chinese, justice, treasury, huma\", \"+++ high, lower, industry, long, years, large, products, low<br>--- sector, atmosphere, gold, caused, magnetic, global, dollar, known, earth, current\", \"+++ wall, world, year, long, years<br>--- sector, gold, global, dollar, tweeted, supporter, certainly, chinese, going, treasury\", \"+++ oil, government, federal, long, state, u, free, year<br>--- sector, gold, wakingtimes, global, dollar, nevada, occupation, chinese, edward, treasury\", \"+++ news, u, years<br>--- sector, stephens, global, dollar, sexist, talks, alt, hate, gold, bush\", \"+++ <br>--- sector, gold, text, global, dollar, results, children, formating, chinese, 3\", \"+++ government, federal, pay, private, high, state, year<br>--- sector, gold, violation, issued, global, dollar, chinese, sheriff, justice, crime\", \"+++ increase, high, oil, products, low<br>--- sector, gold, cdc, global, dollar, results, prices, skin, children, current\", \"+++ real, global, years, state, u, news<br>--- sector, gold, switched, dollar, results, votes, voter, chinese, going, tape\", \"+++ real, system, long, current, free, world<br>--- sector, consider, gold, global, dollar, focus, issues, based, knowledge, treasury\", \"+++ countries, government, current, state, u, policy, world<br>--- sector, gold, global, dollar, chinese, zone, turkish, bush, treasury, street\", \"+++ government, federal, money, tax, state, u, year, policy<br>--- sector, chinese, global, dollar, issues, judges, gold, justice, program, creamer\", \"+++ world, years<br>--- sector, phenomenon, founder, global, dollar, alien, gold, extraterrestrial, tv, 0\", \"+++ news, state<br>--- sector, gold, global, dollar, results, democrats, debate, votes, chinese, candidates\", \"+++ billion, oil, financial, countries, money, government, state, u, year, policy<br>--- sector, particularly, chinese, global, dollar, current, gold, gulf, treasury, despite\", \"+++ free, big, long, plan, news, crisis<br>--- sector, ron, lack, dollar, gold, jay, obamacare, treasury, chinese, brown\", \"+++ sector, chinese, money, global, dollar, trade, current, gold, production, treasury<br>--- \", \"+++ long, years<br>--- sector, planetary, gold, queen, dollar, discovered, prices, earth, chinese, explain\", \"+++ real, countries, street, government, global, free, years, state, economic, u<br>--- sector, gold, dollar, chinese, justice, black, treasury, mainstream, far, progressive\", \"+++ news, state, year, years<br>--- sector, shot, gold, global, allegations, gang, children, suicide, chinese, crime\", \"+++ state, government<br>--- sector, rebels, chinese, global, dollar, qaeda, mosul, battle, soldiers, weapons\", \"+++ year, years<br>--- sector, shot, gold, global, dollar, children, chinese, father, young, foster\", \"+++ industry, years<br>--- sector, founder, global, dollar, prices, children, chinese, father, treasury, garden\"], [\"+++ australia, however, long, according, near, sea, ship, the, south<br>--- planetary, chinese, queen, discovered, earth, explain, black, regional, coast, famous\", \"+++ ancient, light, long, source, earth, the, called<br>--- planetary, pope, global, souls, discovered, fear, religious, knowledge, explain, black\", \"+++ place, look, long, years<br>--- saying, all, planetary, queen, discovered, earth, trying, explain, going, black\", \"+++ a, source, 2<br>--- planetary, code, queen, discovered, follow, trunews, tv, explain, 0, black\", \"+++ source<br>--- planetary, fungal, ginseng, queen, discovered, mild, earth, explain, black, ingredient\", \"+++ the, left, black, according, team<br>--- planetary, queen, discovered, protest, earth, explain, riots, thousands, protestors, cannon\", \"+++ image, the<br>--- saying, planetary, queen, discovered, earth, debate, tv, tweet, black, mainstream\", \"+++ near, according, lake, south, area<br>--- planetary, corps, queen, discovered, mile, earth, ground, partners, sheriff, explain\", \"+++ known, the, called, came, century<br>--- planetary, chinese, german, queen, discovered, hungary, paris, explain, black, communist\", \"+++ ago, study, according, years, 2, 5, the, south<br>--- planetary, global, month, discovered, earth, explain, state, 0, black, 8\", \"+++ a, years, source, team, the, called<br>--- planetary, all, queen, discovered, earth, staff, writes, wmw, to, black\", \"+++ a, near, 2, 5<br>--- rtd, planetary, queen, discovered, battle, earth, tweet, thursday, black, posted\", \"+++ according, long, evidence, discovered, source, the<br>--- planetary, probe, earth, staff, justice, explain, black, huma, sent, queen\", \"+++ blue, field, light, area, science, university, however, long, years, source<br>--- planetary, atmosphere, caused, magnetic, queen, discovered, electricity, explain, environment, black\", \"+++ star, long, event, team, seen, hollywood, years, called, left<br>--- planetary, queen, discovered, earth, tweeted, supporter, certainly, explain, going, black\", \"+++ long<br>--- planetary, wakingtimes, queen, discovered, earth, nevada, occupation, explain, edward, black\", \"+++ however, evidence, black, team, years, south<br>--- planetary, stephens, queen, sexist, discovered, talks, earth, alt, hate, explain\", \"+++ a, university, 2, 5, appears<br>--- planetary, text, queen, results, discovered, earth, children, formating, explain, send\", \"+++ field, evidence, however, according<br>--- planetary, violation, issued, queen, discovered, earth, sheriff, justice, explain, crime\", \"+++ known, science, study, 2, 5<br>--- planetary, cdc, queen, results, discovered, skin, earth, children, explain, sugar\", \"+++ the, paper, evidence, according, years<br>--- planetary, switched, global, results, discovered, earth, votes, voter, explain, going\", \"+++ technology, place, however, long<br>--- planetary, consider, queen, focus, discovered, earth, issues, based, knowledge, explain\", \"+++ the, called<br>--- planetary, queen, discovered, earth, zone, turkish, explain, bush, black, famous\", \"+++ the<br>--- planetary, queen, discovered, earth, issues, judges, justice, explain, program, black\", \"+++ space, according, years, source, nasa, anonymous, scientists, evidence, event<br>--- planetary, phenomenon, founder, queen, alien, earth, extraterrestrial, tv, explain, 0\", \"+++ according<br>--- planetary, queen, results, discovered, democrats, earth, debate, votes, explain, candidates\", \"+++ called, evidence<br>--- planetary, particularly, queen, discovered, earth, gulf, explain, black, famous, anonymous\", \"+++ the, look, long<br>--- planetary, ron, lack, discovered, earth, jay, explain, obamacare, black, brown\", \"+++ long, years<br>--- sector, planetary, gold, global, dollar, discovered, prices, earth, chinese, explain\", \"+++ planetary, queen, years, discovered, paper, earth, captured, explain, sky, lake<br>--- \", \"+++ the, left, black, long, years<br>--- planetary, global, discovered, earth, justice, explain, queen, mainstream, far, famous\", \"+++ ago, according, evidence, place, black, the, years, called<br>--- planetary, shot, queen, allegations, discovered, gang, earth, children, suicide, explain\", \"+++ the, according, area<br>--- planetary, rebels, queen, discovered, qaeda, mosul, battle, soldiers, turkish, explain\", \"+++ left, came, years<br>--- planetary, shot, queen, discovered, earth, children, explain, father, young, foster\", \"+++ ago, a, science, study, years, the<br>--- planetary, founder, queen, discovered, baby, earth, children, explain, father, black\"], [\"+++ president, nations, u, countries, country, government, peace, long, foreign, states<br>--- chinese, global, justice, black, mainstream, far, regional, coast, joint, trade\", \"+++ control, right, end, us, power, freedom, self, global, peace, free<br>--- pope, souls, earth, fear, religious, knowledge, justice, elite, black, lord\", \"+++ real, and, them, right, end, country, long, years, course, so<br>--- saying, all, global, justice, going, black, do, mainstream, far, stop\", \"+++ policy, support, class, today, social<br>--- code, global, follow, trunews, tv, 0, black, mainstream, far, facebook\", \"+++ and, state, free<br>--- fungal, ginseng, global, mild, justice, black, ingredient, mainstream, far, activation\", \"+++ rights, revolution, government, country, national, peace, nation, state, black, groups<br>--- global, protest, trying, justice, riots, thousands, protestors, mainstream, far, cannon\", \"+++ real, liberal, mainstream, media, propaganda, anti, social, the, public<br>--- saying, global, debate, tv, tweet, black, far, watch, facebook, reporters\", \"+++ rights, support, american, states, state, americans, u, national<br>--- corps, global, mile, ground, partners, sheriff, justice, thursday, wood, black\", \"+++ and, them, citizens, war, countries, far, country, national, government, propaganda<br>--- chinese, german, global, hungary, paris, black, communist, mainstream, merkel, end\", \"+++ end, far, support, global, years, state, u, today, world, the<br>--- month, justice, 0, black, 8, posted, oct, mainstream, 12, nearly\", \"+++ real, control, and, working, government, far, media, support, years, state<br>--- all, global, staff, justice, writes, wmw, to, black, include, activities\", \"+++ military, national<br>--- rtd, global, battle, soldiers, justice, tweet, thursday, black, posted, veterans\", \"+++ justice, political, long, corruption, state, president, the, democratic, public<br>--- probe, discovered, staff, black, huma, sent, global, mainstream, far, lynch\", \"+++ mass, long, power, years<br>--- atmosphere, caused, magnetic, global, earth, electricity, environment, black, risk, far\", \"+++ right, left, civil, country, political, long, nation, states, course, american<br>--- global, tweeted, supporter, certainly, justice, going, black, 8, obama, hope\", \"+++ and, interests, power, government, control, national, state, free, american, u<br>--- wakingtimes, global, nevada, occupation, justice, edward, black, mainstream, torture, far\", \"+++ u, media, national, peace, years, american, black, president, white, war<br>--- stephens, global, sexist, talks, alt, hate, justice, bush, case, mainstream\", \"+++ american, policies, way<br>--- text, global, results, children, formating, justice, state, send, black, sure\", \"+++ control, rights, government, justice, national, citizens, order, states, civil, state<br>--- violation, issued, global, sheriff, crime, going, black, local, activities, mainstream\", \"+++ anti<br>--- cdc, global, results, skin, children, justice, 3, sugar, black, helps\", \"+++ real, right, country, global, political, elections, years, states, state, u<br>--- switched, results, votes, voter, justice, going, tape, voted, 8, sent\", \"+++ real, control, power, self, free, society, today, long, way, social<br>--- consider, global, focus, issues, based, knowledge, justice, black, mainstream, means\", \"+++ leaders, states, middle, world, united, end, media, political, state, policy<br>--- millions, coup, invasion, peace, clinton, neocon, global, washington, years, revolution\", \"+++ right, national, states, americans, united, justice, state, policy, white, government<br>--- and, mexican, groups, office, civil, money, executive, washington, supreme, one\", \"+++ world, national, history, years<br>--- phenomenon, founder, global, alien, extraterrestrial, tv, 0, black, extraterrestrials, mainstream\", \"+++ president, media, national, political, state, elections, states, american, americans, fact<br>--- global, results, democrats, debate, votes, justice, candidates, carolina, mainstream, far\", \"+++ media, rights, countries, country, support, government, political, american, foreign, states<br>--- particularly, global, gulf, justice, black, mainstream, far, despite, report, trade\", \"+++ the, right, us, long, order, americans, free, white, crisis<br>--- ron, lack, jay, justice, obamacare, black, brown, global, mainstream, far\", \"+++ real, countries, u, government, global, free, trade, state, street, economic<br>--- sector, gold, dollar, chinese, justice, black, treasury, mainstream, far, progressive\", \"+++ the, left, black, long, years<br>--- planetary, queen, discovered, earth, justice, explain, global, mainstream, far, famous\", \"+++ global, years, course, justice, black, policy, decades, elites, real, them<br>--- \", \"+++ the, state, black, public, years<br>--- shot, global, allegations, gang, children, suicide, justice, crime, woman, mainstream\", \"+++ government, support, us, middle, state, groups, military, international, the, war<br>--- rebels, global, qaeda, mosul, battle, soldiers, turkish, justice, iraqi, black\", \"+++ fight, middle, social, party, years, left<br>--- shot, global, children, justice, father, young, foster, black, local, wearing\", \"+++ states, national, the, years<br>--- founder, global, children, justice, father, black, garden, far, evolution, heaven\"], [\"+++ according, attack, officials, news, the, told<br>--- shot, chinese, allegations, gang, children, suicide, crime, black, woman, regional\", \"+++ life, death, men, times, state, the, called, man<br>--- shot, pope, global, allegations, souls, gang, earth, fear, religious, children\", \"+++ place, life, stop, years<br>--- saying, all, shot, allegations, gang, children, trying, crime, going, black\", \"+++ news<br>--- code, shot, allegations, gang, follow, trunews, suicide, tv, crime, 0\", \"+++ state, life<br>--- fungal, shot, ginseng, allegations, mild, gang, children, suicide, crime, black\", \"+++ city, police, lives, stop, according, officers, state, black, home, the<br>--- shot, allegations, protest, gang, children, suicide, crime, riots, thousands, protestors\", \"+++ story, times, reported, report, news, the, public, told<br>--- saying, shot, allegations, gang, debate, suicide, tv, tweet, crime, black\", \"+++ police, arrested, began, stop, according, reports, state, department, news<br>--- shot, corps, allegations, mile, gang, children, ground, partners, suicide, sheriff\", \"+++ city, death, later, public, news, the, called, happened<br>--- shot, chinese, german, allegations, gang, hungary, children, suicide, paris, crime\", \"+++ ago, according, years, reported, state, year, report, home, news, times<br>--- shot, global, allegations, month, gang, children, suicide, crime, 0, black\", \"+++ chief, times, public, state, claims, the, years, called<br>--- all, shot, allegations, gang, children, staff, suicide, writes, wmw, crime\", \"+++ reported, chief, killed, reports, officer<br>--- rtd, shot, allegations, gang, battle, soldiers, children, suicide, tweet, thursday\", \"+++ case, attorney, according, reports, evidence, reported, state, officials, investigation, department<br>--- shot, probe, allegations, discovered, gang, children, staff, suicide, justice, crime\", \"+++ according, years<br>--- atmosphere, shot, caused, magnetic, allegations, gang, earth, children, suicide, electricity\", \"+++ year, called, man, years<br>--- shot, allegations, gang, tweeted, children, certainly, suicide, crime, going, black\", \"+++ state, death, later, year<br>--- shot, wakingtimes, allegations, gang, nevada, children, occupation, suicide, crime, edward\", \"+++ case, story, evidence, later, cover, times, investigation, black, news, years<br>--- shot, stephens, allegations, sexist, gang, talks, alt, hate, children, suicide\", \"+++ children<br>--- shot, text, allegations, results, gang, formating, suicide, appears, state, send\", \"+++ attorney, crimes, evidence, officials, year, police, crime, state, prison, department<br>--- shot, violation, issued, allegations, gang, children, suicide, sheriff, justice, going\", \"+++ medical, cases, children<br>--- shot, cdc, doctors, allegations, results, gang, skin, milk, suicide, 3\", \"+++ according, reports, years, reported, state, officials, news, the, evidence, told<br>--- shot, switched, global, allegations, results, gang, children, votes, voter, crime\", \"+++ lives, home, life, place<br>--- shot, consider, allegations, focus, gang, children, issues, suicide, based, knowledge\", \"+++ the, state, attack, called<br>--- shot, allegations, gang, children, suicide, zone, turkish, crime, bush, black\", \"+++ attorney, court, state, chief, year, department, the<br>--- shot, allegations, gang, children, issues, judges, suicide, justice, crime, program\", \"+++ case, later, according, reports, years, reported, report, evidence, told<br>--- shot, phenomenon, founder, allegations, alien, gang, children, suicide, extraterrestrial, tv\", \"+++ news, state, according, told<br>--- shot, allegations, results, democrats, debate, votes, suicide, crime, candidates, carolina\", \"+++ crimes, evidence, state, year, report, claims, called<br>--- particularly, allegations, gang, shot, children, suicide, gulf, crime, black, woman\", \"+++ report, news, the, cover, city<br>--- shot, ron, lack, allegations, gang, children, suicide, jay, obamacare, crime\", \"+++ news, state, year, years<br>--- sector, shot, gold, global, dollar, gang, children, suicide, chinese, crime\", \"+++ ago, according, years, place, black, the, evidence, called<br>--- planetary, shot, queen, allegations, discovered, gang, earth, children, suicide, explain\", \"+++ the, state, black, public, years<br>--- shot, global, allegations, gang, children, flowers, justice, crime, woman, mainstream\", \"+++ shot, allegations, years, kill, gang, victim, committed, children, suicide, police<br>--- \", \"+++ city, according, reports, killing, state, the, attack, killed<br>--- zionist, shot, rebels, allegations, qaeda, mosul, battle, soldiers, children, suicide\", \"+++ man, story, woman, old, took, family, home, men, life, later<br>--- allegations, gang, suicide, father, young, crime, foster, black, local, wearing\", \"+++ ago, death, medical, years, the, children<br>--- shot, founder, allegations, gang, suicide, father, crime, black, plants, woman\"], [\"+++ operations, including, group, troops, eastern, weapons, attack, forces, international, east<br>--- alliance, rebels, chinese, presence, al, civilians, washington, terrorist, strategic, held\", \"+++ state, the, us<br>--- rebels, pope, global, souls, qaeda, mosul, battle, earth, fear, religious\", \"+++ us<br>--- saying, all, rebels, qaeda, mosul, battle, soldiers, trying, turkish, daesh\", \"+++ support, october<br>--- code, 0, qaeda, mosul, battle, follow, trunews, rebels, access, turkish\", \"+++ state, campaign<br>--- fungal, rebels, ginseng, mild, qaeda, mosul, battle, soldiers, turkish, iraqi\", \"+++ city, group, groups, government, according, state, 000, opposition, security, attack<br>--- rebels, protest, qaeda, mosul, battle, soldiers, turkish, riots, iraqi, black\", \"+++ the, campaign<br>--- saying, rebels, qaeda, mosul, battle, soldiers, debate, turkish, tv, tweet\", \"+++ october, army, region, area, according, reports, state, support<br>--- rebels, corps, mile, mosul, battle, soldiers, ground, partners, sheriff, turkish\", \"+++ city, eastern, government, jewish, west, muslim, minister, the, east, war<br>--- rebels, chinese, german, qaeda, mosul, battle, hungary, turkish, paris, daesh\", \"+++ october, support, according, state, 000, the<br>--- rebels, global, month, qaeda, mosul, battle, soldiers, turkish, daesh, iraqi\", \"+++ operations, group, government, support, state, 000, including, the<br>--- all, rebels, qaeda, mosul, battle, soldiers, staff, access, turkish, writes\", \"+++ october, army, reports, air, minister, military, battle, soldiers, killed<br>--- rtd, rebels, qaeda, mosul, turkish, tweet, state, thursday, iraqi, terror\", \"+++ october, campaign, according, reports, state, 000, the<br>--- rebels, probe, discovered, qaeda, mosul, battle, soldiers, staff, turkish, justice\", \"+++ air, according, area<br>--- atmosphere, rebels, caused, magnetic, produce, qaeda, mosul, battle, earth, cell\", \"+++ campaign<br>--- rebels, qaeda, mosul, battle, soldiers, tweeted, supporter, certainly, turkish, daesh\", \"+++ armed, security, group, state, government<br>--- rebels, wakingtimes, qaeda, mosul, jury, battle, soldiers, nevada, occupation, turkish\", \"+++ october, iran, war<br>--- rebels, stephens, sexist, qaeda, mosul, talks, soldiers, alt, hate, turkish\", \"+++ jewish<br>--- rebels, text, results, qaeda, mosul, battle, soldiers, children, formating, appears\", \"+++ government, according, reports, state, including, security<br>--- rebels, violation, issued, qaeda, mosul, battle, soldiers, sheriff, turkish, justice\", \"+++ including<br>--- rebels, cdc, results, qaeda, mosul, skin, battle, soldiers, children, vaccines\", \"+++ jewish, according, reports, held, state, the<br>--- rebels, switched, global, results, qaeda, mosul, battle, soldiers, votes, voter\", \"+++ <br>--- consider, focus, qaeda, mosul, battle, soldiers, issues, rebels, current, based\", \"+++ middle, syrian, regime, turkey, turkish, west, government, state, attack, international<br>--- rebels, qaeda, mosul, battle, soldiers, current, zone, iraqi, bush, terror\", \"+++ group, campaign, government, muslim, state, 000, security, the<br>--- rebels, qaeda, mosul, battle, soldiers, issues, judges, turkish, justice, iraqi\", \"+++ group, according, reports<br>--- phenomenon, founder, alien, qaeda, mosul, battle, soldiers, rebels, extraterrestrial, tv\", \"+++ state, support, according, campaign<br>--- rebels, secretary, results, qaeda, democrats, battle, soldiers, debate, votes, turkish\", \"+++ terrorist, group, campaign, government, attacks, region, al, war, weapons, middle<br>--- particularly, rebels, qaeda, mosul, battle, soldiers, gulf, turkish, iraqi, terror\", \"+++ city, the, al, us, air<br>--- rebels, ron, lack, qaeda, mosul, battle, soldiers, jay, obamacare, daesh\", \"+++ state, government<br>--- sector, rebels, gold, global, dollar, qaeda, mosul, battle, soldiers, weapons\", \"+++ the, according, area<br>--- planetary, rebels, queen, discovered, qaeda, mosul, battle, earth, turkish, explain\", \"+++ government, support, us, middle, state, groups, military, international, the, war<br>--- rebels, global, qaeda, mosul, battle, soldiers, turkish, justice, iraqi, black\", \"+++ city, according, reports, killing, state, the, attack, killed<br>--- pedophile, shot, rebels, allegations, qaeda, gang, battle, soldiers, children, suicide\", \"+++ operations, rebels, held, fighters, qaeda, including, mosul, assad, battle, soldiers<br>--- \", \"+++ middle, muslim, october<br>--- shot, rebels, qaeda, mosul, battle, soldiers, children, turkish, father, young\", \"+++ the, jerusalem<br>--- rebels, founder, qaeda, mosul, battle, soldiers, children, turkish, father, daesh\"], [\"+++ october, told<br>--- shot, chinese, children, father, young, foster, local, wearing, woman, regional\", \"+++ life, love, away, men, born, day, man<br>--- shot, pope, global, souls, earth, fear, religious, children, knowledge, father\", \"+++ away, says, day, life, years<br>--- saying, all, shot, children, trying, father, young, going, posted, local\", \"+++ october, help, share, daily, social, november, posted<br>--- code, shot, follow, trunews, tv, father, young, 0, foster, local\", \"+++ life<br>--- fungal, shot, ginseng, mild, children, father, young, foster, posted, local\", \"+++ home, local, day, left<br>--- shot, brother, protest, children, father, young, riots, foster, black, thousands\", \"+++ story, share, daily, morning, video, social, posted, day, told<br>--- saying, shot, debate, tv, tweet, father, young, foster, local, wearing\", \"+++ says, october, local<br>--- shot, corps, mile, children, ground, partners, sheriff, father, young, thursday\", \"+++ muslim, says, came, later, women<br>--- shot, chinese, german, hungary, children, paris, father, young, foster, communist\", \"+++ october, says, 6, years, year, home, november, day, posted<br>--- shot, global, month, children, father, young, 0, foster, 8, local\", \"+++ years<br>--- all, shot, children, staff, writes, wmw, young, to, foster, photo\", \"+++ october, service, car, hospital, 6, hours, night, november, day, posted<br>--- rtd, shot, battle, soldiers, children, tweet, father, young, thursday, foster\", \"+++ house, october, husband, told<br>--- shot, probe, discovered, children, staff, justice, father, young, foster, huma\", \"+++ years<br>--- atmosphere, shot, caused, magnetic, earth, children, electricity, father, young, environment\", \"+++ says, left, house, share, him, year, november, years, day, man<br>--- shot, tweeted, children, certainly, father, young, going, 8, he, local\", \"+++ face, later, year<br>--- shot, wakingtimes, nevada, children, occupation, father, young, edward, posted, local\", \"+++ story, october, house, later, years, november, man<br>--- shot, stephens, sexist, talks, alt, hate, children, father, young, bush\", \"+++ school, help, children<br>--- shot, text, results, formating, father, young, send, foster, local, meant\", \"+++ told, local, gun, service, year<br>--- shot, violation, issued, children, sheriff, justice, daily, father, young, crime\", \"+++ blood, women, help, day, children<br>--- shot, cdc, results, skin, milk, father, young, sugar, foster, helps\", \"+++ posted, told, says, day, years<br>--- shot, switched, global, results, children, votes, voter, father, young, going\", \"+++ home, life, face, help, social<br>--- shot, consider, particular, focus, children, issues, based, knowledge, father, young\", \"+++ middle<br>--- shot, children, zone, turkish, father, young, bush, foster, saw, posted\", \"+++ house, muslim, gun, year<br>--- shot, children, issues, judges, justice, father, young, program, creamer, photo\", \"+++ later, years, eddie, video, told, posted<br>--- shot, phenomenon, founder, alien, children, extraterrestrial, tv, father, young, 0\", \"+++ house, she, party, november, day, told<br>--- shot, results, democrats, debate, democrat, votes, father, young, foster, candidates\", \"+++ middle, year<br>--- particularly, shot, children, gulf, father, young, foster, photo, local, wearing\", \"+++ house, away, help, service<br>--- shot, ron, lack, brother, children, jay, obamacare, young, foster, posted\", \"+++ year, years<br>--- sector, shot, gold, global, dollar, children, chinese, father, young, foster\", \"+++ left, came, years<br>--- planetary, shot, queen, discovered, earth, children, explain, father, young, foster\", \"+++ fight, middle, social, party, years, left<br>--- shot, global, children, justice, father, young, foster, black, local, wearing\", \"+++ man, story, woman, old, took, family, home, men, life, later<br>--- allegations, gang, suicide, father, young, crime, foster, black, local, wearing\", \"+++ middle, muslim, october<br>--- shot, rebels, qaeda, mosul, battle, soldiers, children, turkish, father, young\", \"+++ shot, help, photo, years, victim, children, father, young, him, foster<br>--- \", \"+++ son, father, children, years<br>--- shot, founder, mosque, young, foster, local, wearing, woman, garden, him\"], [\"+++ states, use, the<br>--- chinese, children, founder, mosque, garden, regional, coast, joint, evolution, heaven\", \"+++ faith, death, humans, jesus, book, human, the<br>--- pope, global, souls, earth, fear, religious, children, founder, religion, father\", \"+++ d, years<br>--- saying, all, founder, children, one, trying, re, father, going, do\", \"+++ a, use, related, author<br>--- code, founder, follow, trunews, tv, mosque, 0, garden, facebook, evolution\", \"+++ cannabis<br>--- vitamins, fungal, founder, ginseng, mild, children, medicinal, father, ingredient, garden\", \"+++ the, non, california, national, san<br>--- founder, protest, children, father, riots, black, thousands, protestors, plants, garden\", \"+++ movie, the, youtube<br>--- saying, founder, debate, tv, tweet, father, mainstream, watch, facebook, reporters\", \"+++ states, national<br>--- corps, mile, children, ground, partners, founder, sheriff, father, state, thursday\", \"+++ states, national, death, the<br>--- called, chinese, german, known, hungary, children, founder, paris, mosque, communist\", \"+++ ago, the, study, period, years<br>--- founder, global, month, children, father, state, 0, 8, posted, oct\", \"+++ a, the, non, industry, years<br>--- all, founder, children, staff, writes, mosque, to, include, activities, garden\", \"+++ a, national<br>--- rtd, founder, battle, soldiers, children, tweet, father, thursday, posted, veterans\", \"+++ use, the, related<br>--- founder, probe, discovered, children, staff, justice, mosque, bureau, huma, sent\", \"+++ use, scientific, science, industry, non, years, california, human, growing, study<br>--- atmosphere, founder, caused, magnetic, known, earth, children, electricity, mosque, environment\", \"+++ states, years<br>--- founder, tweeted, children, certainly, mosque, going, 8, obama, hope, 11\", \"+++ national, death<br>--- founder, wakingtimes, nevada, children, occupation, father, edward, fda, garden, torture\", \"+++ national, book, years<br>--- stephens, sexist, talks, alt, hate, children, founder, father, bush, investigation\", \"+++ a, use, parents, children<br>--- founder, text, results, formating, 95, father, send, meant, garden, emphasized\", \"+++ states, national, use, drug<br>--- founder, violation, issued, children, sheriff, justice, mosque, crime, going, local\", \"+++ use, d, drugs, science, study, medical, birth, children<br>--- founder, cdc, results, known, skin, milk, father, sugar, helps, garden\", \"+++ states, the, d, years<br>--- founder, switched, global, results, children, votes, voter, re, father, going\", \"+++ use, human<br>--- consider, founder, focus, children, issues, based, knowledge, original, father, garden\", \"+++ states, the<br>--- founder, children, zone, turkish, mosque, bush, plants, garden, tanks, assad\", \"+++ states, the, national, california, d<br>--- founder, children, issues, judges, justice, 95, mosque, program, creamer, congressional\", \"+++ related, national, scientific, founder, years<br>--- phenomenon, alien, children, extraterrestrial, tv, mosque, 0, extraterrestrials, garden, egyptian\", \"+++ states, national<br>--- founder, results, democrats, debate, votes, father, candidates, carolina, garden, michigan\", \"+++ states, human<br>--- particularly, founder, children, gulf, hayden, father, garden, despite, report, governments\", \"+++ the, d<br>--- ron, lack, children, founder, jay, mosque, brown, garden, worst, report\", \"+++ industry, years<br>--- sector, gold, global, dollar, prices, children, chinese, mosque, treasury, street\", \"+++ ago, a, science, study, years, the<br>--- planetary, founder, queen, discovered, known, earth, children, explain, mosque, black\", \"+++ states, national, the, years<br>--- founder, global, children, justice, mosque, black, mainstream, far, evolution, heaven\", \"+++ ago, death, medical, years, the, children<br>--- shot, founder, allegations, gang, suicide, father, crime, black, plants, woman\", \"+++ the, jerusalem<br>--- rebels, founder, qaeda, mosul, battle, soldiers, children, turkish, father, daesh\", \"+++ son, father, children, years<br>--- shot, founder, mosque, young, foster, local, wearing, woman, garden, him\", \"+++ founder, produces, rest, years, human, children, death, gmo, pharma, recreational<br>--- \"]], \"hoverinfo\": \"x+y+z+text\", \"y\": [5.0, 15.0, 25.0, 35.0, 45.0, 55.0, 65.0, 75.0, 85.0, 95.0, 105.0, 115.0, 125.0, 135.0, 145.0, 155.0, 165.0, 175.0, 185.0, 195.0, 205.0, 215.0, 225.0, 235.0, 245.0, 255.0, 265.0, 275.0, 285.0, 295.0, 305.0, 315.0, 325.0, 335.0, 345.0], \"x\": [5.0, 15.0, 25.0, 35.0, 45.0, 55.0, 65.0, 75.0, 85.0, 95.0, 105.0, 115.0, 125.0, 135.0, 145.0, 155.0, 165.0, 175.0, 185.0, 195.0, 205.0, 215.0, 225.0, 235.0, 245.0, 255.0, 265.0, 275.0, 285.0, 295.0, 305.0, 315.0, 325.0, 335.0, 345.0], \"z\": [[0.0, 0.6343477918460758, 0.6435998668262606, 0.6446003010474792, 0.6485527685401011, 0.6272047011775295, 0.6377494183310974, 0.6446122853901808, 0.6462302697064812, 0.6424188214057551, 0.6431885897411144, 0.6383162844078716, 0.6519711902059808, 0.6326935836042389, 0.635842387462401, 0.6373978020068664, 0.6509217733346516, 0.6427384305018415, 0.6446490439142821, 0.6555496273803868, 0.649722281421471, 0.6450339665225586, 0.6452663452075574, 0.6426880518727507, 0.6543351245266337, 0.646970248626161, 0.6407668641924651, 0.6492284609430042, 0.6457647142833636, 0.6528094131471915, 0.6389925940775634, 0.6495258432224651, 0.6371457475937663, 0.5780112123394057, 0.6416115313599833], [0.6343477918460758, 0.0, 0.6121274748736927, 0.6338644737269848, 0.614834550727635, 0.6108850560317638, 0.6044265901631949, 0.6182278681588201, 0.5790355354893063, 0.572056440252791, 0.6127301997293105, 0.6148265896330367, 0.6079482050973943, 0.6305300305555379, 0.6128500033331308, 0.6096963480466306, 0.5764024940339914, 0.5587693679862034, 0.6163360552646882, 0.6110397739238136, 0.5875455239930147, 0.5802123388068601, 0.5982407469681987, 0.6039227359918914, 0.6037816573737682, 0.609917664997688, 0.6019393545945855, 0.5543759403745823, 0.540891760834232, 0.6004246088169611, 0.6298967191335623, 0.6186239937483338, 0.6089082684463722, 0.6077830201957765, 0.5968274685449119], [0.6435998668262606, 0.6121274748736927, 0.0, 0.6129945899493718, 0.6193831373477126, 0.625926897387258, 0.6109599735035676, 0.6077407032923106, 0.6094129624780951, 0.6121060448489761, 0.6154954485501769, 0.625661998988811, 0.615872223811504, 0.6137094562481342, 0.6164073501181003, 0.5968509624411916, 0.6101542520154625, 0.6121446187843509, 0.634156155600013, 0.5904362398895375, 0.6285810058058585, 0.6237880175215047, 0.6030973112221445, 0.6164104419697078, 0.6148787628424276, 0.6157995856203462, 0.5997526508299013, 0.6169882474306885, 0.6185391589425295, 0.6238742072003819, 0.5891535093958855, 0.5974912574639135, 0.6022206826882269, 0.5941015658456732, 0.6218788835373223], [0.6446003010474792, 0.6338644737269848, 0.6129945899493718, 0.0, 0.6353208275703369, 0.597640531326515, 0.6038579449037506, 0.602263236318795, 0.6243133665641964, 0.6251120910691634, 0.6154651048876574, 0.6153083393038125, 0.6080908920875427, 0.5982558375649262, 0.6000584720123727, 0.5858451954093298, 0.6152350403957735, 0.6057953049164858, 0.6209643331069182, 0.6166788870324156, 0.6134487733253483, 0.6039856900128228, 0.616574135280726, 0.6262775469806947, 0.6297048363041, 0.6255337032047152, 0.5988658669987039, 0.6227848301103192, 0.6217714173112974, 0.6267877524025983, 0.6069428261665237, 0.5988234047371995, 0.6225552953363357, 0.6242668884109961, 0.6161852903563267], [0.6485527685401011, 0.614834550727635, 0.6193831373477126, 0.6353208275703369, 0.0, 0.6126332096477383, 0.5993853921161925, 0.6185016857968891, 0.5725490768669301, 0.6102048871604775, 0.5858532117669191, 0.6113629590050981, 0.6141662783826298, 0.608011887131336, 0.6012365816017964, 0.5948657222467189, 0.6014332176788457, 0.6069846012015783, 0.5793384067906197, 0.5536578293442904, 0.604133244076441, 0.597767909828899, 0.550715830720343, 0.5897593975717713, 0.5887897296235955, 0.5749650757762319, 0.5832736927668631, 0.5981121641687539, 0.5926712759870403, 0.5846384926184345, 0.5883715900808248, 0.5761272360485552, 0.6035831882504623, 0.6235521833168944, 0.6011191937433236], [0.6272047011775295, 0.6108850560317638, 0.625926897387258, 0.597640531326515, 0.6126332096477383, 0.0, 0.5867131462856516, 0.5638635461314825, 0.5974792291071274, 0.5848779887531876, 0.5847385962695069, 0.5583322877280728, 0.5972521798872321, 0.5911383819779656, 0.5743209070905664, 0.5774840952534026, 0.5994235991425734, 0.5765059657839993, 0.5935930624902532, 0.5973045794567884, 0.5531315219400923, 0.5533074961313168, 0.5781613966277044, 0.5343489775664896, 0.6051646452954924, 0.593856550644376, 0.5546500455879606, 0.5818311102262002, 0.5533298350064723, 0.5786148268508677, 0.5745161719507574, 0.5777045587664382, 0.5739262119126349, 0.5936470977885799, 0.5749384426875435], [0.6377494183310974, 0.6044265901631949, 0.6109599735035676, 0.6038579449037506, 0.5993853921161925, 0.5867131462856516, 0.0, 0.6017216493175096, 0.5820843819232379, 0.573454942837188, 0.5617731117817422, 0.556037410362956, 0.5698841221680253, 0.5769132835728834, 0.600032747943392, 0.586656540754906, 0.6039437882091867, 0.5897980770815547, 0.5612525702604504, 0.5727640187972294, 0.5545586694752642, 0.5682199616218612, 0.5477492429264117, 0.5671377701437841, 0.5944907396877058, 0.5827019109370701, 0.5315863961124565, 0.5762652916006556, 0.5567615688659173, 0.5478221378217581, 0.5524521789269253, 0.5230832309482065, 0.5871193691541385, 0.6078912593508399, 0.5944513903788413], [0.6446122853901808, 0.6182278681588201, 0.6077407032923106, 0.602263236318795, 0.6185016857968891, 0.5638635461314825, 0.6017216493175096, 0.0, 0.6064325919234714, 0.5906658475136385, 0.5911367950168949, 0.6032666640305544, 0.5967173615516373, 0.5813618775313008, 0.5522793690568477, 0.589422463113516, 0.595393859091333, 0.569540787722024, 0.6053404926199486, 0.5746474147692485, 0.6026696645930234, 0.5749409505977375, 0.6172673902907948, 0.5815510413771847, 0.5937267558430033, 0.6032750193755492, 0.5647743124510578, 0.6031707705273603, 0.5690861837182244, 0.6083951075407514, 0.5777698150310802, 0.588560241292071, 0.5983440815370368, 0.618264102581534, 0.592623781294704], [0.6462302697064812, 0.5790355354893063, 0.6094129624780951, 0.6243133665641964, 0.5725490768669301, 0.5974792291071274, 0.5820843819232379, 0.6064325919234714, 0.0, 0.518937944021988, 0.5803420500805524, 0.5668746653611421, 0.5796454829713387, 0.5855017743636075, 0.5994109085618953, 0.5914038154487316, 0.5631244639917137, 0.5727916883985181, 0.5841889891165206, 0.555833980100676, 0.5518400702169708, 0.5407740770117151, 0.5550707606188358, 0.5843249446188592, 0.5687955216400282, 0.5633890897829159, 0.5643936896081635, 0.5332423155222907, 0.5414379345123359, 0.5544487239859874, 0.5713497869111972, 0.51959967352208, 0.5780297364240997, 0.6168105873876938, 0.5808742088503307], [0.6424188214057551, 0.572056440252791, 0.6121060448489761, 0.6251120910691634, 0.6102048871604775, 0.5848779887531876, 0.573454942837188, 0.5906658475136385, 0.518937944021988, 0.0, 0.6020558026490337, 0.5665058722959213, 0.5904009158509228, 0.5931270639857379, 0.5770942325183734, 0.5766077583650578, 0.5910539700924045, 0.5544389284258566, 0.5724113814441976, 0.5866578244827318, 0.5433514034322147, 0.5639078456668749, 0.5697414075113811, 0.5671686882463245, 0.5949146157000808, 0.5781018810307991, 0.5654721575938212, 0.5339212844082966, 0.5077413100654786, 0.5696081975761522, 0.5918861769713895, 0.560702844749007, 0.5780100151790145, 0.6067061083513092, 0.5817460691707508], [0.6431885897411144, 0.6127301997293105, 0.6154954485501769, 0.6154651048876574, 0.5858532117669191, 0.5847385962695069, 0.5617731117817422, 0.5911367950168949, 0.5803420500805524, 0.6020558026490337, 0.0, 0.5728634833212463, 0.5700064253903508, 0.580697355686499, 0.6163668500159512, 0.5950809822478652, 0.5867882962253821, 0.57745655208903, 0.5983896300238276, 0.5485876313507372, 0.5645887380507923, 0.5378846938773634, 0.531182031400421, 0.5314516157335448, 0.554542009771222, 0.5346691765000229, 0.5340564642200387, 0.5834746905560834, 0.5659366003346467, 0.548790984445183, 0.558066055224137, 0.5042004575112055, 0.5677785230063093, 0.6145603379886896, 0.558689895182277], [0.6383162844078716, 0.6148265896330367, 0.625661998988811, 0.6153083393038125, 0.6113629590050981, 0.5583322877280728, 0.556037410362956, 0.6032666640305544, 0.5668746653611421, 0.5665058722959213, 0.5728634833212463, 0.0, 0.5558205390039179, 0.5822915142453782, 0.597420524780971, 0.5697025250907772, 0.6101482768099606, 0.5520517971890426, 0.5345108107545546, 0.5837512167087746, 0.5520557198575557, 0.5553020495558703, 0.5138259131000952, 0.5421822818397075, 0.5861980181276637, 0.5497428030208775, 0.504301894183621, 0.492581804564709, 0.5094412007771558, 0.48832819852723464, 0.5596195433468915, 0.4873003435720632, 0.5690095372832025, 0.6025567600380475, 0.5562304608733372], [0.6519711902059808, 0.6079482050973943, 0.615872223811504, 0.6080908920875427, 0.6141662783826298, 0.5972521798872321, 0.5698841221680253, 0.5967173615516373, 0.5796454829713387, 0.5904009158509228, 0.5700064253903508, 0.5558205390039179, 0.0, 0.5642484448563618, 0.6104553346014427, 0.5929601154294721, 0.585058192775026, 0.582892801141204, 0.568943909095732, 0.5500362166855065, 0.5813928526797865, 0.5624979669217576, 0.5732090252425486, 0.5875430353642586, 0.576465993153489, 0.5827770410467827, 0.5506077176667121, 0.5320052337361201, 0.5203272914791119, 0.5251512024359143, 0.5685128084227067, 0.4960557705875634, 0.587017162522565, 0.6322894478205126, 0.5862176582456311], [0.6326935836042389, 0.6305300305555379, 0.6137094562481342, 0.5982558375649262, 0.608011887131336, 0.5911383819779656, 0.5769132835728834, 0.5813618775313008, 0.5855017743636075, 0.5931270639857379, 0.580697355686499, 0.5822915142453782, 0.5642484448563618, 0.0, 0.563505922229097, 0.5727223384391723, 0.5870197501860341, 0.5816171617478862, 0.5730276858178616, 0.514537773390154, 0.5783498428499507, 0.5818726860998927, 0.5976956284663353, 0.5952283303094598, 0.5831728933624131, 0.5958538795642092, 0.5576403507591265, 0.5790739572508656, 0.5723353505934616, 0.570006851466208, 0.47984528101585433, 0.47236575167597566, 0.5991159556768785, 0.6349435905106451, 0.6044441297491218], [0.635842387462401, 0.6128500033331308, 0.6164073501181003, 0.6000584720123727, 0.6012365816017964, 0.5743209070905664, 0.600032747943392, 0.5522793690568477, 0.5994109085618953, 0.5770942325183734, 0.6163668500159512, 0.597420524780971, 0.6104553346014427, 0.563505922229097, 0.0, 0.48317168809799327, 0.6230360052833434, 0.5628858157181404, 0.5711736795942145, 0.5878800242996836, 0.5864909928412481, 0.5933074129368294, 0.6175878437517464, 0.5987945750970018, 0.6168422601355279, 0.6064132104638995, 0.5658846761533219, 0.5954799108559252, 0.5621136226221193, 0.6066317915960084, 0.5287186874148316, 0.5720403903835598, 0.6013564938036919, 0.6212047249634554, 0.6133969347058739], [0.6373978020068664, 0.6096963480466306, 0.5968509624411916, 0.5858451954093298, 0.5948657222467189, 0.5774840952534026, 0.586656540754906, 0.589422463113516, 0.5914038154487316, 0.5766077583650578, 0.5950809822478652, 0.5697025250907772, 0.5929601154294721, 0.5727223384391723, 0.48317168809799327, 0.0, 0.5814708690939238, 0.5197736945950107, 0.5397933609304195, 0.5314895495064673, 0.5623032450724003, 0.5762438540018565, 0.5881363513731064, 0.5732253808988452, 0.5984971416567056, 0.5741377394495251, 0.5317441650927259, 0.5813621094643785, 0.5565485540444208, 0.5793172005371702, 0.5013536397286693, 0.5370205156373834, 0.582059893596977, 0.6009245150713194, 0.586345343852107], [0.6509217733346516, 0.5764024940339914, 0.6101542520154625, 0.6152350403957735, 0.6014332176788457, 0.5994235991425734, 0.6039437882091867, 0.595393859091333, 0.5631244639917137, 0.5910539700924045, 0.5867882962253821, 0.6101482768099606, 0.585058192775026, 0.5870197501860341, 0.6230360052833434, 0.5814708690939238, 0.0, 0.5554241364252843, 0.6142519802390423, 0.5397406566790335, 0.5815241848392518, 0.5117708938168017, 0.5822683963792145, 0.5673746006038107, 0.5725695386199634, 0.5768851006692906, 0.5768556353782428, 0.5747970565086631, 0.5891744042494493, 0.6071943478480634, 0.5983525440783222, 0.5976725893281137, 0.5915450229080612, 0.6039891980579086, 0.5594039754519595], [0.6427384305018415, 0.5587693679862034, 0.6121446187843509, 0.6057953049164858, 0.6069846012015783, 0.5765059657839993, 0.5897980770815547, 0.569540787722024, 0.5727916883985181, 0.5544389284258566, 0.57745655208903, 0.5520517971890426, 0.582892801141204, 0.5816171617478862, 0.5628858157181404, 0.5197736945950107, 0.5554241364252843, 0.0, 0.5217531658096084, 0.5519394123570995, 0.5623592568315112, 0.5468475339096033, 0.5611633268315502, 0.5468939378458515, 0.551943618124542, 0.5296384237369225, 0.5324762708355046, 0.5443456109310607, 0.5108590179306534, 0.5679124270960569, 0.54758442690403, 0.5438833770882693, 0.5642705949836373, 0.5679033838077432, 0.5653892059345309], [0.6446490439142821, 0.6163360552646882, 0.634156155600013, 0.6209643331069182, 0.5793384067906197, 0.5935930624902532, 0.5612525702604504, 0.6053404926199486, 0.5841889891165206, 0.5724113814441976, 0.5983896300238276, 0.5345108107545546, 0.568943909095732, 0.5730276858178616, 0.5711736795942145, 0.5397933609304195, 0.6142519802390423, 0.5217531658096084, 0.0, 0.542761728047879, 0.5560649763120009, 0.5946678694280896, 0.5330991125297542, 0.5726101819726026, 0.5842025551911201, 0.5704504265922044, 0.49609310950836605, 0.5806085222806919, 0.5090067524107327, 0.5503104785524194, 0.5229892412032835, 0.47615813358876247, 0.5874375527771454, 0.6088341352668657, 0.6071040524632135], [0.6555496273803868, 0.6110397739238136, 0.5904362398895375, 0.6166788870324156, 0.5536578293442904, 0.5973045794567884, 0.5727640187972294, 0.5746474147692485, 0.555833980100676, 0.5866578244827318, 0.5485876313507372, 0.5837512167087746, 0.5500362166855065, 0.514537773390154, 0.5878800242996836, 0.5314895495064673, 0.5397406566790335, 0.5519394123570995, 0.542761728047879, 0.0, 0.5667775321895533, 0.5458409871672326, 0.5502233029720112, 0.5215073064593527, 0.503289423145035, 0.5236348341899275, 0.5160454480022671, 0.5781383055448426, 0.5665699217614912, 0.5273807904236462, 0.4580327081116753, 0.4755681605172405, 0.5347426681161087, 0.6106007149600006, 0.550757272447808], [0.649722281421471, 0.5875455239930147, 0.6285810058058585, 0.6134487733253483, 0.604133244076441, 0.5531315219400923, 0.5545586694752642, 0.6026696645930234, 0.5518400702169708, 0.5433514034322147, 0.5645887380507923, 0.5520557198575557, 0.5813928526797865, 0.5783498428499507, 0.5864909928412481, 0.5623032450724003, 0.5815241848392518, 0.5623592568315112, 0.5560649763120009, 0.5667775321895533, 0.0, 0.47899623110102035, 0.48938878402866776, 0.4692932134437505, 0.5801691404578276, 0.5663909275669508, 0.5188187604603343, 0.5374193841087717, 0.5067670123089854, 0.5467495517828906, 0.5374665549024689, 0.5157920957135902, 0.5480252936088637, 0.6067153657615343, 0.5728594745376], [0.6450339665225586, 0.5802123388068601, 0.6237880175215047, 0.6039856900128228, 0.597767909828899, 0.5533074961313168, 0.5682199616218612, 0.5749409505977375, 0.5407740770117151, 0.5639078456668749, 0.5378846938773634, 0.5553020495558703, 0.5624979669217576, 0.5818726860998927, 0.5933074129368294, 0.5762438540018565, 0.5117708938168017, 0.5468475339096033, 0.5946678694280896, 0.5458409871672326, 0.47899623110102035, 0.0, 0.5467247179223695, 0.5013131431278923, 0.578315579090691, 0.5631172536292912, 0.5259937330379167, 0.5304472327079826, 0.5507429685461223, 0.5656784869411895, 0.5789624951759419, 0.5402094582486863, 0.5617406065649322, 0.6344874341978559, 0.5554399385855842], [0.6452663452075574, 0.5982407469681987, 0.6030973112221445, 0.616574135280726, 0.550715830720343, 0.5781613966277044, 0.5477492429264117, 0.6172673902907948, 0.5550707606188358, 0.5697414075113811, 0.531182031400421, 0.5138259131000952, 0.5732090252425486, 0.5976956284663353, 0.6175878437517464, 0.5881363513731064, 0.5822683963792145, 0.5611633268315502, 0.5330991125297542, 0.5502233029720112, 0.48938878402866776, 0.5467247179223695, 0.0, 0.49163627840768886, 0.5314816158414989, 0.4994220490708092, 0.47939420933332527, 0.5495148318934004, 0.5047777584775771, 0.48483565702766995, 0.5672337528088347, 0.471551710940839, 0.5459156341072814, 0.6125698045544322, 0.5679891481525867], [0.6426880518727507, 0.6039227359918914, 0.6164104419697078, 0.6262775469806947, 0.5897593975717713, 0.5343489775664896, 0.5671377701437841, 0.5815510413771847, 0.5843249446188592, 0.5671686882463245, 0.5314516157335448, 0.5421822818397075, 0.5875430353642586, 0.5952283303094598, 0.5987945750970018, 0.5732253808988452, 0.5673746006038107, 0.5468939378458515, 0.5726101819726026, 0.5215073064593527, 0.4692932134437505, 0.5013131431278923, 0.49163627840768886, 0.0, 0.5139141598767921, 0.41213193291450523, 0.48326887022085874, 0.5512422219011544, 0.5217498519150072, 0.5195646892172884, 0.5474742824545833, 0.5355880118452042, 0.5345529647785081, 0.5687504781672474, 0.5133567057162977], [0.6543351245266337, 0.6037816573737682, 0.6148787628424276, 0.6297048363041, 0.5887897296235955, 0.6051646452954924, 0.5944907396877058, 0.5937267558430033, 0.5687955216400282, 0.5949146157000808, 0.554542009771222, 0.5861980181276637, 0.576465993153489, 0.5831728933624131, 0.6168422601355279, 0.5984971416567056, 0.5725695386199634, 0.551943618124542, 0.5842025551911201, 0.503289423145035, 0.5801691404578276, 0.578315579090691, 0.5314816158414989, 0.5139141598767921, 0.0, 0.38911071321147145, 0.5643286508497083, 0.5854430029149056, 0.5534017946931484, 0.5307418350558131, 0.5690024371174209, 0.5001662530322207, 0.5525091931103167, 0.6085181374672038, 0.565335421607568], [0.646970248626161, 0.609917664997688, 0.6157995856203462, 0.6255337032047152, 0.5749650757762319, 0.593856550644376, 0.5827019109370701, 0.6032750193755492, 0.5633890897829159, 0.5781018810307991, 0.5346691765000229, 0.5497428030208775, 0.5827770410467827, 0.5958538795642092, 0.6064132104638995, 0.5741377394495251, 0.5768851006692906, 0.5296384237369225, 0.5704504265922044, 0.5236348341899275, 0.5663909275669508, 0.5631172536292912, 0.4994220490708092, 0.41213193291450523, 0.38911071321147145, 0.0, 0.5192668137907049, 0.5622587491546478, 0.541776055964735, 0.5160158876815908, 0.5486016942760963, 0.4790892066011598, 0.4833149992369454, 0.6111713061626579, 0.5236068728622354], [0.6407668641924651, 0.6019393545945855, 0.5997526508299013, 0.5988658669987039, 0.5832736927668631, 0.5546500455879606, 0.5315863961124565, 0.5647743124510578, 0.5643936896081635, 0.5654721575938212, 0.5340564642200387, 0.504301894183621, 0.5506077176667121, 0.5576403507591265, 0.5658846761533219, 0.5317441650927259, 0.5768556353782428, 0.5324762708355046, 0.49609310950836605, 0.5160454480022671, 0.5188187604603343, 0.5259937330379167, 0.47939420933332527, 0.48326887022085874, 0.5643286508497083, 0.5192668137907049, 0.0, 0.552197691779307, 0.5101915457124961, 0.5254678282973502, 0.4805200541808038, 0.47494022582245526, 0.5453332714599454, 0.5694571471957096, 0.5276814582288774], [0.6492284609430042, 0.5543759403745823, 0.6169882474306885, 0.6227848301103192, 0.5981121641687539, 0.5818311102262002, 0.5762652916006556, 0.6031707705273603, 0.5332423155222907, 0.5339212844082966, 0.5834746905560834, 0.492581804564709, 0.5320052337361201, 0.5790739572508656, 0.5954799108559252, 0.5813621094643785, 0.5747970565086631, 0.5443456109310607, 0.5806085222806919, 0.5781383055448426, 0.5374193841087717, 0.5304472327079826, 0.5495148318934004, 0.5512422219011544, 0.5854430029149056, 0.5622587491546478, 0.552197691779307, 0.0, 0.4299259515991702, 0.4556294859295383, 0.5805580831176442, 0.5014465994290065, 0.5787454172531852, 0.6160622502647397, 0.5817393051734978], [0.6457647142833636, 0.540891760834232, 0.6185391589425295, 0.6217714173112974, 0.5926712759870403, 0.5533298350064723, 0.5567615688659173, 0.5690861837182244, 0.5414379345123359, 0.5077413100654786, 0.5659366003346467, 0.5094412007771558, 0.5203272914791119, 0.5723353505934616, 0.5621136226221193, 0.5565485540444208, 0.5891744042494493, 0.5108590179306534, 0.5090067524107327, 0.5665699217614912, 0.5067670123089854, 0.5507429685461223, 0.5047777584775771, 0.5217498519150072, 0.5534017946931484, 0.541776055964735, 0.5101915457124961, 0.4299259515991702, 0.0, 0.41279539616524397, 0.5257519052014734, 0.4762765150019238, 0.5594667520305179, 0.595941753706561, 0.5759623956074625], [0.6528094131471915, 0.6004246088169611, 0.6238742072003819, 0.6267877524025983, 0.5846384926184345, 0.5786148268508677, 0.5478221378217581, 0.6083951075407514, 0.5544487239859874, 0.5696081975761522, 0.548790984445183, 0.48832819852723464, 0.5251512024359143, 0.570006851466208, 0.6066317915960084, 0.5793172005371702, 0.6071943478480634, 0.5679124270960569, 0.5503104785524194, 0.5273807904236462, 0.5467495517828906, 0.5656784869411895, 0.48483565702766995, 0.5195646892172884, 0.5307418350558131, 0.5160158876815908, 0.5254678282973502, 0.4556294859295383, 0.41279539616524397, 0.0, 0.5292854176823545, 0.42859491366125924, 0.564737492446272, 0.6192260087779233, 0.5743680052676738], [0.6389925940775634, 0.6298967191335623, 0.5891535093958855, 0.6069428261665237, 0.5883715900808248, 0.5745161719507574, 0.5524521789269253, 0.5777698150310802, 0.5713497869111972, 0.5918861769713895, 0.558066055224137, 0.5596195433468915, 0.5685128084227067, 0.47984528101585433, 0.5287186874148316, 0.5013536397286693, 0.5983525440783222, 0.54758442690403, 0.5229892412032835, 0.4580327081116753, 0.5374665549024689, 0.5789624951759419, 0.5672337528088347, 0.5474742824545833, 0.5690024371174209, 0.5486016942760963, 0.4805200541808038, 0.5805580831176442, 0.5257519052014734, 0.5292854176823545, 0.0, 0.43904097868615893, 0.565767995828992, 0.5858468546844693, 0.5809043412314943], [0.6495258432224651, 0.6186239937483338, 0.5974912574639135, 0.5988234047371995, 0.5761272360485552, 0.5777045587664382, 0.5230832309482065, 0.588560241292071, 0.51959967352208, 0.560702844749007, 0.5042004575112055, 0.4873003435720632, 0.4960557705875634, 0.47236575167597566, 0.5720403903835598, 0.5370205156373834, 0.5976725893281137, 0.5438833770882693, 0.47615813358876247, 0.4755681605172405, 0.5157920957135902, 0.5402094582486863, 0.471551710940839, 0.5355880118452042, 0.5001662530322207, 0.4790892066011598, 0.47494022582245526, 0.5014465994290065, 0.4762765150019238, 0.42859491366125924, 0.43904097868615893, 0.0, 0.5519773947316597, 0.6146223329295997, 0.5580927972583049], [0.6371457475937663, 0.6089082684463722, 0.6022206826882269, 0.6225552953363357, 0.6035831882504623, 0.5739262119126349, 0.5871193691541385, 0.5983440815370368, 0.5780297364240997, 0.5780100151790145, 0.5677785230063093, 0.5690095372832025, 0.587017162522565, 0.5991159556768785, 0.6013564938036919, 0.582059893596977, 0.5915450229080612, 0.5642705949836373, 0.5874375527771454, 0.5347426681161087, 0.5480252936088637, 0.5617406065649322, 0.5459156341072814, 0.5345529647785081, 0.5525091931103167, 0.4833149992369454, 0.5453332714599454, 0.5787454172531852, 0.5594667520305179, 0.564737492446272, 0.565767995828992, 0.5519773947316597, 0.0, 0.5931820678839248, 0.5399389353213216], [0.5780112123394057, 0.6077830201957765, 0.5941015658456732, 0.6242668884109961, 0.6235521833168944, 0.5936470977885799, 0.6078912593508399, 0.618264102581534, 0.6168105873876938, 0.6067061083513092, 0.6145603379886896, 0.6025567600380475, 0.6322894478205126, 0.6349435905106451, 0.6212047249634554, 0.6009245150713194, 0.6039891980579086, 0.5679033838077432, 0.6088341352668657, 0.6106007149600006, 0.6067153657615343, 0.6344874341978559, 0.6125698045544322, 0.5687504781672474, 0.6085181374672038, 0.6111713061626579, 0.5694571471957096, 0.6160622502647397, 0.595941753706561, 0.6192260087779233, 0.5858468546844693, 0.6146223329295997, 0.5931820678839248, 0.0, 0.513614182506119], [0.6416115313599833, 0.5968274685449119, 0.6218788835373223, 0.6161852903563267, 0.6011191937433236, 0.5749384426875435, 0.5944513903788413, 0.592623781294704, 0.5808742088503307, 0.5817460691707508, 0.558689895182277, 0.5562304608733372, 0.5862176582456311, 0.6044441297491218, 0.6133969347058739, 0.586345343852107, 0.5594039754519595, 0.5653892059345309, 0.6071040524632135, 0.550757272447808, 0.5728594745376, 0.5554399385855842, 0.5679891481525867, 0.5133567057162977, 0.565335421607568, 0.5236068728622354, 0.5276814582288774, 0.5817393051734978, 0.5759623956074625, 0.5743680052676738, 0.5809043412314943, 0.5580927972583049, 0.5399389353213216, 0.513614182506119, 0.0]], \"type\": \"heatmap\"}], {\"autosize\": false, \"yaxis\": {\"domain\": [0, 0.75], \"showticklabels\": true, \"tickmode\": \"array\", \"ticks\": \"\", \"showgrid\": false, \"mirror\": false, \"zeroline\": false, \"showline\": false, \"ticktext\": [5, 12, 18, 35, 28, 25, 16, 30, 6, 8, 17, 27, 9, 2, 14, 20, 34, 10, 29, 3, 19, 32, 24, 13, 15, 26, 11, 33, 1, 23, 22, 31, 21, 4, 7], \"rangemode\": \"tozero\", \"type\": \"linear\", \"tickvals\": [5.0, 15.0, 25.0, 35.0, 45.0, 55.0, 65.0, 75.0, 85.0, 95.0, 105.0, 115.0, 125.0, 135.0, 145.0, 155.0, 165.0, 175.0, 185.0, 195.0, 205.0, 215.0, 225.0, 235.0, 245.0, 255.0, 265.0, 275.0, 285.0, 295.0, 305.0, 315.0, 325.0, 335.0, 345.0]}, \"showlegend\": false, \"height\": 800, \"width\": 800, \"yaxis2\": {\"domain\": [0.75, 1], \"showticklabels\": false, \"ticks\": \"\", \"showgrid\": false, \"mirror\": false, \"zeroline\": false, \"showline\": false}, \"xaxis\": {\"domain\": [0.25, 1], \"showticklabels\": true, \"tickmode\": \"array\", \"ticks\": \"\", \"showgrid\": false, \"mirror\": false, \"zeroline\": false, \"showline\": false, \"ticktext\": [5, 12, 18, 35, 28, 25, 16, 30, 6, 8, 17, 27, 9, 2, 14, 20, 34, 10, 29, 3, 19, 32, 24, 13, 15, 26, 11, 33, 1, 23, 22, 31, 21, 4, 7], \"rangemode\": \"tozero\", \"type\": \"linear\", \"tickvals\": [5.0, 15.0, 25.0, 35.0, 45.0, 55.0, 65.0, 75.0, 85.0, 95.0, 105.0, 115.0, 125.0, 135.0, 145.0, 155.0, 165.0, 175.0, 185.0, 195.0, 205.0, 215.0, 225.0, 235.0, 245.0, 255.0, 265.0, 275.0, 285.0, 295.0, 305.0, 315.0, 325.0, 335.0, 345.0]}, \"hovermode\": \"closest\"}, {\"linkText\": \"Export to plot.ly\", \"showLink\": true})});</script>" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "# heatmap annotation\n", "annotation_html = [[\"+++ {}<br>--- {}\".format(\", \".join(int_tokens), \", \".join(diff_tokens))\n", " for (int_tokens, diff_tokens) in row] for row in annotation]\n", "\n", "# plot heatmap of distance matrix\n", "heatmap = go.Data([\n", " go.Heatmap(\n", " z=heat_data,\n", " colorscale='YIGnBu',\n", " text=annotation_html,\n", " hoverinfo='x+y+z+text'\n", " )\n", "])\n", "\n", "heatmap[0]['x'] = figure['layout']['xaxis']['tickvals']\n", "heatmap[0]['y'] = figure['layout']['xaxis']['tickvals']\n", "\n", "# Add Heatmap Data to Figure\n", "figure['data'].extend(heatmap)\n", "\n", "dendro_leaves = [x + 1 for x in dendro_leaves]\n", "\n", "# Edit Layout\n", "figure['layout'].update({'width': 800, 'height': 800,\n", " 'showlegend':False, 'hovermode': 'closest',\n", " })\n", "\n", "# Edit xaxis\n", "figure['layout']['xaxis'].update({'domain': [.25, 1],\n", " 'mirror': False,\n", " 'showgrid': False,\n", " 'showline': False,\n", " \"showticklabels\": True, \n", " \"tickmode\": \"array\",\n", " \"ticktext\": dendro_leaves,\n", " \"tickvals\": figure['layout']['xaxis']['tickvals'],\n", " 'zeroline': False,\n", " 'ticks': \"\"})\n", "# Edit yaxis\n", "figure['layout']['yaxis'].update({'domain': [0, 0.75],\n", " 'mirror': False,\n", " 'showgrid': False,\n", " 'showline': False,\n", " \"showticklabels\": True, \n", " \"tickmode\": \"array\",\n", " \"ticktext\": dendro_leaves,\n", " \"tickvals\": figure['layout']['xaxis']['tickvals'],\n", " 'zeroline': False,\n", " 'ticks': \"\"})\n", "# Edit yaxis2\n", "figure['layout'].update({'yaxis2':{'domain': [0.75, 1],\n", " 'mirror': False,\n", " 'showgrid': False,\n", " 'showline': False,\n", " 'zeroline': False,\n", " 'showticklabels': False,\n", " 'ticks': \"\"}})\n", "\n", "py.iplot(figure)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The heatmap lets us see the exact distance measure between any two topics in the z-value of their corresponding cell and also their intersecting or different terms in the +++/--- annotation. This could help see the distance between those topics also which are not directly connected in the dendrogram." ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.7.1" } }, "nbformat": 4, "nbformat_minor": 2 }
5,581,352
Python
.py
5,448
1,013.827643
212,401
0.638205
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,932
annoytutorial.ipynb
piskvorky_gensim/docs/notebooks/annoytutorial.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "This tutorial has moved.\n", "\n", "Please see https://radimrehurek.com/gensim/auto_examples/." ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.6.8" } }, "nbformat": 4, "nbformat_minor": 2 }
626
Python
.py
34
14.970588
64
0.559122
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,933
pivoted_document_length_normalisation.ipynb
piskvorky_gensim/docs/notebooks/pivoted_document_length_normalisation.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Pivoted Document Length Normalization\n", "\n", "## Background\n", "\n", "In many cases, normalizing the tfidf weights for each term favors weight of terms of the documents with shorter length. The _pivoted document length normalization_ scheme counters the effect of this bias for short documents by making tfidf independent of the document length.\n", "\n", "This is achieved by *tilting* the normalization curve along the pivot point defined by user with some slope.\n", "Roughly following the equation:\n", "\n", "`pivoted_norm = (1 - slope) * pivot + slope * old_norm`\n", "\n", "This scheme is proposed in the paper [Pivoted Document Length Normalization](http://singhal.info/pivoted-dln.pdf) by Singhal, Buckley and Mitra.\n", "\n", "Overall this approach can in many cases help increase the accuracy of the model where the document lengths are hugely varying in the entire corpus.\n", "\n", "## Introduction\n", "\n", "This guide demonstrates how to perform pivoted document length normalization.\n", "We will train a logistic regression to distinguish between text from two different newsgroups.\n", "Our results will show that using pivoted document length normalization yields a better model (higher classification accuracy)." ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "#\n", "# Download our dataset\n", "#\n", "import gensim.downloader as api\n", "nws = api.load(\"20-newsgroups\")\n", "\n", "#\n", "# Pick texts from relevant newsgroups, split into training and test set.\n", "#\n", "cat1, cat2 = ('sci.electronics', 'sci.space')\n", "\n", "#\n", "# X_* contain the actual texts as strings.\n", "# Y_* contain labels, 0 for cat1 (sci.electronics) and 1 for cat2 (sci.space)\n", "#\n", "X_train = []\n", "X_test = []\n", "y_train = []\n", "y_test = []\n", "\n", "for i in nws:\n", " if i[\"set\"] == \"train\" and i[\"topic\"] == cat1:\n", " X_train.append(i[\"data\"])\n", " y_train.append(0)\n", " elif i[\"set\"] == \"train\" and i[\"topic\"] == cat2:\n", " X_train.append(i[\"data\"])\n", " y_train.append(1)\n", " elif i[\"set\"] == \"test\" and i[\"topic\"] == cat1:\n", " X_test.append(i[\"data\"])\n", " y_test.append(0)\n", " elif i[\"set\"] == \"test\" and i[\"topic\"] == cat2:\n", " X_test.append(i[\"data\"])\n", " y_test.append(1)" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [], "source": [ "from gensim.parsing.preprocessing import preprocess_string\n", "from gensim.corpora import Dictionary\n", "\n", "id2word = Dictionary([preprocess_string(doc) for doc in X_train])\n", "train_corpus = [id2word.doc2bow(preprocess_string(doc)) for doc in X_train]\n", "test_corpus = [id2word.doc2bow(preprocess_string(doc)) for doc in X_test]" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "1184 787\n" ] } ], "source": [ "print(len(X_train), len(X_test))" ] }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [], "source": [ "# We perform our analysis on top k documents which is almost top 10% most scored documents\n", "k = len(X_test) // 10" ] }, { "cell_type": "code", "execution_count": 5, "metadata": {}, "outputs": [], "source": [ "from gensim.sklearn_api.tfidf import TfIdfTransformer\n", "from sklearn.linear_model import LogisticRegression\n", "from gensim.matutils import corpus2csc\n", "\n", "# This function returns the model accuracy and indivitual document prob values using\n", "# gensim's TfIdfTransformer and sklearn's LogisticRegression\n", "def get_tfidf_scores(kwargs):\n", " tfidf_transformer = TfIdfTransformer(**kwargs).fit(train_corpus)\n", "\n", " X_train_tfidf = corpus2csc(tfidf_transformer.transform(train_corpus), num_terms=len(id2word)).T\n", " X_test_tfidf = corpus2csc(tfidf_transformer.transform(test_corpus), num_terms=len(id2word)).T\n", "\n", " clf = LogisticRegression().fit(X_train_tfidf, y_train)\n", "\n", " model_accuracy = clf.score(X_test_tfidf, y_test)\n", " doc_scores = clf.decision_function(X_test_tfidf)\n", "\n", " return model_accuracy, doc_scores" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Get TFIDF scores for corpus without pivoted document length normalisation" ] }, { "cell_type": "code", "execution_count": 6, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "0.9682337992376112\n" ] }, { "name": "stderr", "output_type": "stream", "text": [ "/home/misha/envs/gensim/lib/python3.7/site-packages/sklearn/linear_model/logistic.py:433: FutureWarning: Default solver will be changed to 'lbfgs' in 0.22. Specify a solver to silence this warning.\n", " FutureWarning)\n" ] } ], "source": [ "params = {}\n", "model_accuracy, doc_scores = get_tfidf_scores(params)\n", "print(model_accuracy)" ] }, { "cell_type": "code", "execution_count": 7, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Normal cosine normalisation favors short documents as our top 78 docs have a smaller mean doc length of 1668.179 compared to the corpus mean doc length of 1577.799\n" ] } ], "source": [ "import numpy as np\n", "\n", "# Sort the document scores by their scores and return a sorted list\n", "# of document score and corresponding document lengths.\n", "def sort_length_by_score(doc_scores, X_test):\n", " doc_scores = sorted(enumerate(doc_scores), key=lambda x: x[1])\n", " doc_leng = np.empty(len(doc_scores))\n", "\n", " ds = np.empty(len(doc_scores))\n", "\n", " for i, _ in enumerate(doc_scores):\n", " doc_leng[i] = len(X_test[_[0]])\n", " ds[i] = _[1]\n", "\n", " return ds, doc_leng\n", "\n", "\n", "print(\n", " \"Normal cosine normalisation favors short documents as our top {} \"\n", " \"docs have a smaller mean doc length of {:.3f} compared to the corpus mean doc length of {:.3f}\"\n", " .format(\n", " k, sort_length_by_score(doc_scores, X_test)[1][:k].mean(), \n", " sort_length_by_score(doc_scores, X_test)[1].mean()\n", " )\n", ")" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Get TFIDF scores for corpus with pivoted document length normalisation testing on various values of alpha." ] }, { "cell_type": "code", "execution_count": 8, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Score for slope 0.0 is 0.9720457433290979\n", "Score for slope 0.1 is 0.9758576874205845\n", "Score for slope 0.2 is 0.97712833545108\n", "Score for slope 0.30000000000000004 is 0.9783989834815756\n", "Score for slope 0.4 is 0.97712833545108\n", "Score for slope 0.5 is 0.9758576874205845\n", "Score for slope 0.6000000000000001 is 0.9733163913595934\n", "Score for slope 0.7000000000000001 is 0.9733163913595934\n", "Score for slope 0.8 is 0.9733163913595934\n", "Score for slope 0.9 is 0.9733163913595934\n", "Score for slope 1.0 is 0.9682337992376112\n", "We get best score of 0.9783989834815756 at slope 0.30000000000000004\n" ] } ], "source": [ "best_model_accuracy = 0\n", "optimum_slope = 0\n", "for slope in np.arange(0, 1.1, 0.1):\n", " params = {\"pivot\": 10, \"slope\": slope}\n", "\n", " model_accuracy, doc_scores = get_tfidf_scores(params)\n", "\n", " if model_accuracy > best_model_accuracy:\n", " best_model_accuracy = model_accuracy\n", " optimum_slope = slope\n", "\n", " print(\"Score for slope {} is {}\".format(slope, model_accuracy))\n", "\n", "print(\"We get best score of {} at slope {}\".format(best_model_accuracy, optimum_slope))" ] }, { "cell_type": "code", "execution_count": 9, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "0.9783989834815756\n" ] } ], "source": [ "params = {\"pivot\": 10, \"slope\": optimum_slope}\n", "model_accuracy, doc_scores = get_tfidf_scores(params)\n", "print(model_accuracy)" ] }, { "cell_type": "code", "execution_count": 10, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "With pivoted normalisation top 78 docs have mean length of 2077.346 which is much closer to the corpus mean doc length of 1577.799\n" ] } ], "source": [ "print(\n", " \"With pivoted normalisation top {} docs have mean length of {:.3f} \"\n", " \"which is much closer to the corpus mean doc length of {:.3f}\"\n", " .format(\n", " k, sort_length_by_score(doc_scores, X_test)[1][:k].mean(), \n", " sort_length_by_score(doc_scores, X_test)[1].mean()\n", " )\n", ")" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Visualizing the pivoted normalization" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Since cosine normalization favors retrieval of short documents from the plot we can see that when slope was 1 (when pivoted normalisation was not applied) short documents with length of around 500 had very good score hence the bias for short documents can be seen. As we varied the value of slope from 1 to 0 we introdcued a new bias for long documents to counter the bias caused by cosine normalisation. Therefore at a certain point we got an optimum value of slope which is 0.5 where the overall accuracy of the model is increased.\n" ] }, { "cell_type": "code", "execution_count": 11, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "/home/misha/envs/gensim/lib/python3.7/site-packages/sklearn/linear_model/logistic.py:433: FutureWarning: Default solver will be changed to 'lbfgs' in 0.22. Specify a solver to silence this warning.\n", " FutureWarning)\n" ] }, { "data": { "image/png": "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\n", "text/plain": [ "<Figure size 1080x504 with 2 Axes>" ] }, "metadata": { "needs_background": "light" }, "output_type": "display_data" } ], "source": [ "%matplotlib inline\n", "import matplotlib.pyplot as py\n", "\n", "best_model_accuracy = 0\n", "optimum_slope = 0\n", "\n", "w = 2\n", "h = 2\n", "f, axarr = py.subplots(h, w, figsize=(15, 7))\n", "\n", "it = 0\n", "for slope in [1, 0.2]:\n", " params = {\"pivot\": 10, \"slope\": slope}\n", "\n", " model_accuracy, doc_scores = get_tfidf_scores(params)\n", "\n", " if model_accuracy > best_model_accuracy:\n", " best_model_accuracy = model_accuracy\n", " optimum_slope = slope\n", "\n", " doc_scores, doc_leng = sort_length_by_score(doc_scores, X_test)\n", "\n", " y = abs(doc_scores[:k, np.newaxis])\n", " x = doc_leng[:k, np.newaxis]\n", "\n", " py.subplot(1, 2, it+1).bar(x, y, width=20, linewidth=0)\n", " py.title(\"slope = \" + str(slope) + \" Model accuracy = \" + str(model_accuracy))\n", " py.ylim([0, 4.5])\n", " py.xlim([0, 3200])\n", " py.xlabel(\"document length\")\n", " py.ylabel(\"confidence score\")\n", " \n", " it += 1\n", "\n", "py.tight_layout()\n", "py.show()" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The above histogram plot helps us visualize the effect of `slope`. For top k documents we have document length on the x axis and their respective scores of belonging to a specific class on y axis. \n", "As we decrease the slope the density of bins is shifted from low document length (around ~250-500) to over ~500 document length. This suggests that the positive biasness which was seen at `slope=1` (or when regular tfidf was used) for short documents is now reduced. We get the optimum slope or the max model accuracy when slope is 0.2.\n", "\n", "# Conclusion\n", "\n", "Using pivoted document normalization improved the classification accuracy significantly:\n", "\n", "- Before (slope=1, identical to default cosine normalization): 0.9682\n", "- After (slope=0.2): 0.9771" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.7.1" } }, "nbformat": 4, "nbformat_minor": 1 }
35,923
Python
.py
419
81.02148
22,256
0.825259
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,934
ensemble_lda_with_opinosis.ipynb
piskvorky_gensim/docs/notebooks/ensemble_lda_with_opinosis.ipynb
{ "cells": [ { "cell_type": "code", "execution_count": null, "metadata": { "scrolled": false }, "outputs": [], "source": [ "import logging\n", "from gensim.models import EnsembleLda, LdaMulticore\n", "from gensim.models.ensemblelda import rank_masking\n", "from gensim.corpora import OpinosisCorpus\n", "import os" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "enable the ensemble logger to show what it is doing currently" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "elda_logger = logging.getLogger(EnsembleLda.__module__)\n", "elda_logger.setLevel(logging.INFO)\n", "elda_logger.addHandler(logging.StreamHandler())" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "def pretty_print_topics():\n", " # note that the words are stemmed so they appear chopped off\n", " for t in elda.print_topics(num_words=7):\n", " print('-', t[1].replace('*',' ').replace('\"','').replace(' +',','), '\\n')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Experiments on the Opinosis Dataset\n", "\n", "Opinosis [1] is a small (but redundant) corpus that contains 289 product reviews for 51 products. Since it's so small, the results are rather unstable.\n", "\n", "[1] Kavita Ganesan, ChengXiang Zhai, and Jiawei Han, _Opinosis: a graph-based approach to abstractive summarization of highly redundant opinions [online],_ Proceedings of the 23rd International Conference on Computational Linguistics, Association for Computational Linguistics, 2010, pp. 340–348. Available from: https://kavita-ganesan.com/opinosis/" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Preparing the corpus\n", "\n", "First, download the opinosis dataset. On linux it can be done like this for example:" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "!mkdir ~/opinosis\n", "!wget -P ~/opinosis https://github.com/kavgan/opinosis/raw/master/OpinosisDataset1.0_0.zip\n", "!unzip ~/opinosis/OpinosisDataset1.0_0.zip -d ~/opinosis" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "path = os.path.expanduser('~/opinosis/')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Corpus and id2word mapping can be created using the load_opinosis_data function provided in the package.\n", "It preprocesses the data using the PorterStemmer and stopwords from the nltk package.\n", "\n", "The parameter of the function is the relative path to the folder, into which the zip file was extracted before. That folder contains a 'summaries-gold' subfolder." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "opinosis = OpinosisCorpus(path)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Training" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "**parameters**\n", "\n", "**topic_model_kind** ldamulticore is highly recommended for EnsembleLda. ensemble_workers and **distance_workers** are used to improve the time needed to train the models, as well as the **masking_method** 'rank'. ldamulticore is not able to fully utilize all cores on this small corpus, so **ensemble_workers** can be set to 3 to get 95 - 100% cpu usage on my i5 3470.\n", "\n", "Since the corpus is so small, a high number of **num_models** is needed to extract stable topics. The Opinosis corpus contains 51 categories, however, some of them are quite similar. For example there are 3 categories about the batteries of portable products. There are also multiple categories about cars. So I chose 20 for num_topics, which is smaller than the number of categories." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "elda = EnsembleLda(\n", " corpus=opinosis.corpus, id2word=opinosis.id2word, num_models=128, num_topics=20,\n", " passes=20, iterations=100, ensemble_workers=3, distance_workers=4,\n", " topic_model_class='ldamulticore', masking_method=rank_masking,\n", ")\n", "pretty_print_topics()" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The default for **min_samples** would be 64, half of the number of models and **eps** would be 0.1. You basically play around with them until you find a sweetspot that fits for your needs." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "elda.recluster(min_samples=55, eps=0.14)\n", "pretty_print_topics()" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.9.5" } }, "nbformat": 4, "nbformat_minor": 2 }
5,446
Python
.py
178
26.617978
390
0.63003
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,935
doc2vec-IMDB.ipynb
piskvorky_gensim/docs/notebooks/doc2vec-IMDB.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "This tutorial has moved.\n", "\n", "Please see https://radimrehurek.com/gensim/auto_examples/." ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.6.8" } }, "nbformat": 4, "nbformat_minor": 2 }
626
Python
.py
34
14.970588
64
0.559122
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,936
topic_network.ipynb
piskvorky_gensim/docs/notebooks/topic_network.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Topic Networks\n", "\n", "In this notebook, we will learn how to visualize topic model using network graphs. Networks can be a great way to explore topic models. We can use it to navigate that how topics belonging to one context may relate to some topics in other context and discover common factors between them. We can use them to find communities of similar topics and pinpoint the most influential topic that has large no. of connections or perform any number of other workflows designed for network analysis." ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "\u001b[33mYou are using pip version 19.0.1, however version 19.1 is available.\r\n", "You should consider upgrading via the 'pip install --upgrade pip' command.\u001b[0m\r\n" ] } ], "source": [ "!pip install plotly>=2.0.16 # 2.0.16 need for support 'hovertext' argument from create_dendrogram function" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [], "source": [ "from gensim.models.ldamodel import LdaModel\n", "from gensim.corpora import Dictionary\n", "import pandas as pd\n", "import re\n", "from gensim.parsing.preprocessing import remove_stopwords, strip_punctuation\n", "\n", "import numpy as np" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Train Model\n", "\n", "We'll use the [fake news dataset](https://www.kaggle.com/mrisdal/fake-news) from kaggle for this notebook. First step is to preprocess the data and train our topic model using LDA. You can refer to this [notebook](https://github.com/RaRe-Technologies/gensim/blob/develop/docs/notebooks/lda_training_tips.ipynb) also for tips and suggestions of pre-processing the text data, and how to train LDA model for getting good results." ] }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "--2019-05-12 18:54:33-- https://www.kaggle.com/mrisdal/fake-news/downloads/fake-news.zip/1\n", "Resolving www.kaggle.com (www.kaggle.com)... 35.244.233.98\n", "Connecting to www.kaggle.com (www.kaggle.com)|35.244.233.98|:443... connected.\n", "HTTP request sent, awaiting response... 302 Found\n", "Location: /account/login?returnUrl=%2Fmrisdal%2Ffake-news%2Fversion%2F1 [following]\n", "--2019-05-12 18:54:35-- https://www.kaggle.com/account/login?returnUrl=%2Fmrisdal%2Ffake-news%2Fversion%2F1\n", "Reusing existing connection to www.kaggle.com:443.\n", "HTTP request sent, awaiting response... 200 OK\n", "Length: unspecified [text/html]\n", "Saving to: ‘fake.news.zip’\n", "\n", "fake.news.zip [ <=> ] 8.46K --.-KB/s in 0.01s \n", "\n", "2019-05-12 18:54:36 (640 KB/s) - ‘fake.news.zip’ saved [8668]\n", "\n" ] } ], "source": [ "!wget https://www.kaggle.com/mrisdal/fake-news/downloads/fake-news.zip/1 -O fake.news.zip" ] }, { "cell_type": "code", "execution_count": 5, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Archive: fake.news.zip\r\n", " End-of-central-directory signature not found. Either this file is not\r\n", " a zipfile, or it constitutes one disk of a multi-part archive. In the\r\n", " latter case the central directory and zipfile comment will be found on\r\n", " the last disk(s) of this archive.\r\n", "unzip: cannot find zipfile directory in one of fake.news.zip or\r\n", " fake.news.zip.zip, and cannot find fake.news.zip.ZIP, period.\r\n" ] } ], "source": [ "!unzip fake.news.zip" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [ { "ename": "FileNotFoundError", "evalue": "[Errno 2] File b'fake.csv' does not exist: b'fake.csv'", "output_type": "error", "traceback": [ "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", "\u001b[0;31mFileNotFoundError\u001b[0m Traceback (most recent call last)", "\u001b[0;32m<ipython-input-3-e7a6ec7d0ac2>\u001b[0m in \u001b[0;36m<module>\u001b[0;34m\u001b[0m\n\u001b[0;32m----> 1\u001b[0;31m \u001b[0mdf_fake\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mpd\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mread_csv\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m'fake.csv'\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 2\u001b[0m \u001b[0mdf_fake\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;34m'title'\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m'text'\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m'language'\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mhead\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 3\u001b[0m \u001b[0mdf_fake\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mdf_fake\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mloc\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mpd\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mnotnull\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mdf_fake\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mtext\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m)\u001b[0m \u001b[0;34m&\u001b[0m \u001b[0;34m(\u001b[0m\u001b[0mdf_fake\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mlanguage\u001b[0m\u001b[0;34m==\u001b[0m\u001b[0;34m'english'\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 4\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 5\u001b[0m \u001b[0;31m# remove stopwords and punctuations\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", "\u001b[0;32m~/envs/gensim/lib/python3.7/site-packages/pandas/io/parsers.py\u001b[0m in \u001b[0;36mparser_f\u001b[0;34m(filepath_or_buffer, sep, delimiter, header, names, index_col, usecols, squeeze, prefix, mangle_dupe_cols, dtype, engine, converters, true_values, false_values, skipinitialspace, skiprows, skipfooter, nrows, na_values, keep_default_na, na_filter, verbose, skip_blank_lines, parse_dates, infer_datetime_format, keep_date_col, date_parser, dayfirst, iterator, chunksize, compression, thousands, decimal, lineterminator, quotechar, quoting, doublequote, escapechar, comment, encoding, dialect, tupleize_cols, error_bad_lines, warn_bad_lines, delim_whitespace, low_memory, memory_map, float_precision)\u001b[0m\n\u001b[1;32m 700\u001b[0m skip_blank_lines=skip_blank_lines)\n\u001b[1;32m 701\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 702\u001b[0;31m \u001b[0;32mreturn\u001b[0m \u001b[0m_read\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mfilepath_or_buffer\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mkwds\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 703\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 704\u001b[0m \u001b[0mparser_f\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m__name__\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mname\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", "\u001b[0;32m~/envs/gensim/lib/python3.7/site-packages/pandas/io/parsers.py\u001b[0m in \u001b[0;36m_read\u001b[0;34m(filepath_or_buffer, kwds)\u001b[0m\n\u001b[1;32m 427\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 428\u001b[0m \u001b[0;31m# Create the parser.\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 429\u001b[0;31m \u001b[0mparser\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mTextFileReader\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mfilepath_or_buffer\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m**\u001b[0m\u001b[0mkwds\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 430\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 431\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0mchunksize\u001b[0m \u001b[0;32mor\u001b[0m \u001b[0miterator\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", "\u001b[0;32m~/envs/gensim/lib/python3.7/site-packages/pandas/io/parsers.py\u001b[0m in \u001b[0;36m__init__\u001b[0;34m(self, f, engine, **kwds)\u001b[0m\n\u001b[1;32m 893\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0moptions\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;34m'has_index_names'\u001b[0m\u001b[0;34m]\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mkwds\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;34m'has_index_names'\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 894\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 895\u001b[0;31m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_make_engine\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mengine\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 896\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 897\u001b[0m \u001b[0;32mdef\u001b[0m \u001b[0mclose\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", "\u001b[0;32m~/envs/gensim/lib/python3.7/site-packages/pandas/io/parsers.py\u001b[0m in \u001b[0;36m_make_engine\u001b[0;34m(self, engine)\u001b[0m\n\u001b[1;32m 1120\u001b[0m \u001b[0;32mdef\u001b[0m \u001b[0m_make_engine\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mengine\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;34m'c'\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1121\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0mengine\u001b[0m \u001b[0;34m==\u001b[0m \u001b[0;34m'c'\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m-> 1122\u001b[0;31m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_engine\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mCParserWrapper\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mf\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m**\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0moptions\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 1123\u001b[0m \u001b[0;32melse\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1124\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0mengine\u001b[0m \u001b[0;34m==\u001b[0m \u001b[0;34m'python'\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", "\u001b[0;32m~/envs/gensim/lib/python3.7/site-packages/pandas/io/parsers.py\u001b[0m in \u001b[0;36m__init__\u001b[0;34m(self, src, **kwds)\u001b[0m\n\u001b[1;32m 1851\u001b[0m \u001b[0mkwds\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;34m'usecols'\u001b[0m\u001b[0;34m]\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0musecols\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1852\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m-> 1853\u001b[0;31m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_reader\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mparsers\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mTextReader\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0msrc\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m**\u001b[0m\u001b[0mkwds\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 1854\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0munnamed_cols\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_reader\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0munnamed_cols\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1855\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n", "\u001b[0;32mpandas/_libs/parsers.pyx\u001b[0m in \u001b[0;36mpandas._libs.parsers.TextReader.__cinit__\u001b[0;34m()\u001b[0m\n", "\u001b[0;32mpandas/_libs/parsers.pyx\u001b[0m in \u001b[0;36mpandas._libs.parsers.TextReader._setup_parser_source\u001b[0;34m()\u001b[0m\n", "\u001b[0;31mFileNotFoundError\u001b[0m: [Errno 2] File b'fake.csv' does not exist: b'fake.csv'" ] } ], "source": [ "df_fake = pd.read_csv('fake.csv')\n", "df_fake[['title', 'text', 'language']].head()\n", "df_fake = df_fake.loc[(pd.notnull(df_fake.text)) & (df_fake.language=='english')]\n", "\n", "# remove stopwords and punctuations\n", "def preprocess(row):\n", " return strip_punctuation(remove_stopwords(row.lower()))\n", " \n", "df_fake['text'] = df_fake['text'].apply(preprocess)\n", "\n", "# Convert data to required input format by LDA\n", "texts = []\n", "for line in df_fake.text:\n", " lowered = line.lower()\n", " words = re.findall(r'\\w+', lowered, flags=re.UNICODE|re.LOCALE)\n", " texts.append(words)\n", "# Create a dictionary representation of the documents.\n", "dictionary = Dictionary(texts)\n", "\n", "# Filter out words that occur less than 2 documents, or more than 30% of the documents.\n", "dictionary.filter_extremes(no_below=2, no_above=0.4)\n", "# Bag-of-words representation of the documents.\n", "corpus_fake = [dictionary.doc2bow(text) for text in texts]" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "lda_fake = LdaModel(corpus=corpus_fake, id2word=dictionary, num_topics=35, chunksize=1500, iterations=200, alpha='auto')\n", "lda_fake.save('lda_35')" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "lda_fake = LdaModel.load('lda_35')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Visualize topic network\n", "\n", "Firstly, a distance matrix is calculated to store distance between every topic pair. The nodes of the network graph will represent topics and the edges between them will be created based on the distance between two connecting nodes/topics." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# get topic distributions\n", "topic_dist = lda_fake.state.get_lambda()\n", "\n", "# get topic terms\n", "num_words = 50\n", "topic_terms = [{w for (w, _) in lda_fake.show_topic(topic, topn=num_words)} for topic in range(topic_dist.shape[0])]" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "To draw the edges, we can use different types of distance metrics available in gensim for calculating the distance between every topic pair. Next, we'd have to define a threshold of distance value such that the topic-pairs with distance above that does not get connected. " ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "from scipy.spatial.distance import pdist, squareform\n", "from gensim.matutils import jensen_shannon\n", "import networkx as nx\n", "import itertools as itt\n", "\n", "# calculate distance matrix using the input distance metric\n", "def distance(X, dist_metric):\n", " return squareform(pdist(X, lambda u, v: dist_metric(u, v)))\n", "\n", "topic_distance = distance(topic_dist, jensen_shannon)\n", "\n", "# store edges b/w every topic pair along with their distance\n", "edges = [(i, j, {'weight': topic_distance[i, j]})\n", " for i, j in itt.combinations(range(topic_dist.shape[0]), 2)]\n", "\n", "# keep edges with distance below the threshold value\n", "k = np.percentile(np.array([e[2]['weight'] for e in edges]), 20)\n", "edges = [e for e in edges if e[2]['weight'] < k]" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Now that we have our edges, let's plot the annotated network graph. On hovering over the nodes, we'll see the topic_id along with it's top words and on hovering over the edges, we'll see the intersecting/different words of the two topics that it connects. " ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "import plotly.offline as py\n", "from plotly.graph_objs import *\n", "import plotly.figure_factory as ff\n", "\n", "py.init_notebook_mode()\n", "\n", "# add nodes and edges to graph layout\n", "G = nx.Graph()\n", "G.add_nodes_from(range(topic_dist.shape[0]))\n", "G.add_edges_from(edges)\n", "\n", "graph_pos = nx.spring_layout(G)" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "scrolled": false }, "outputs": [], "source": [ "# initialize traces for drawing nodes and edges \n", "node_trace = Scatter(\n", " x=[],\n", " y=[],\n", " text=[],\n", " mode='markers',\n", " hoverinfo='text',\n", " marker=Marker(\n", " showscale=True,\n", " colorscale='YIGnBu',\n", " reversescale=True,\n", " color=[],\n", " size=10,\n", " colorbar=dict(\n", " thickness=15,\n", " xanchor='left'\n", " ),\n", " line=dict(width=2)))\n", "\n", "edge_trace = Scatter(\n", " x=[],\n", " y=[],\n", " text=[],\n", " line=Line(width=0.5, color='#888'),\n", " hoverinfo='text',\n", " mode='lines')\n", "\n", "\n", "# no. of terms to display in annotation\n", "n_ann_terms = 10\n", "\n", "# add edge trace with annotations\n", "for edge in G.edges():\n", " x0, y0 = graph_pos[edge[0]]\n", " x1, y1 = graph_pos[edge[1]]\n", " \n", " pos_tokens = topic_terms[edge[0]] & topic_terms[edge[1]]\n", " neg_tokens = topic_terms[edge[0]].symmetric_difference(topic_terms[edge[1]])\n", " pos_tokens = list(pos_tokens)[:min(len(pos_tokens), n_ann_terms)]\n", " neg_tokens = list(neg_tokens)[:min(len(neg_tokens), n_ann_terms)]\n", " annotation = \"<br>\".join((\": \".join((\"+++\", str(pos_tokens))), \": \".join((\"---\", str(neg_tokens)))))\n", " \n", " x_trace = list(np.linspace(x0, x1, 10))\n", " y_trace = list(np.linspace(y0, y1, 10))\n", " text_annotation = [annotation] * 10\n", " x_trace.append(None)\n", " y_trace.append(None)\n", " text_annotation.append(None)\n", " \n", " edge_trace['x'] += x_trace\n", " edge_trace['y'] += y_trace\n", " edge_trace['text'] += text_annotation\n", "\n", "# add node trace with annotations\n", "for node in G.nodes():\n", " x, y = graph_pos[node]\n", " node_trace['x'].append(x)\n", " node_trace['y'].append(y)\n", " node_info = ''.join((str(node+1), ': ', str(list(topic_terms[node])[:n_ann_terms])))\n", " node_trace['text'].append(node_info)\n", " \n", "# color node according to no. of connections\n", "for node, adjacencies in enumerate(G.adjacency()):\n", " node_trace['marker']['color'].append(len(adjacencies))" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "fig = Figure(data=Data([edge_trace, node_trace]),\n", " layout=Layout(showlegend=False,\n", " hovermode='closest',\n", " xaxis=XAxis(showgrid=True, zeroline=False, showticklabels=True),\n", " yaxis=YAxis(showgrid=True, zeroline=False, showticklabels=True)))\n", "\n", "py.iplot(fig)" ] }, { "cell_type": "markdown", "metadata": { "scrolled": false }, "source": [ "For the above graph, we just used the 20th percentile of all the distance values. But we can experiment with few different values also such that the graph doesn’t become too crowded or too sparse and we could get an optimum amount of information about similar topics or any interesting relations b/w different topics.\n", "\n", "Or we can also get an idea of threshold from the dendrogram (with ‘single’ linkage function). You can refer to [this notebook](http://nbviewer.jupyter.org/github/parulsethi/gensim/blob/b9e7ab54dde98438b0e4f766ee764b81af704367/docs/notebooks/Topic_dendrogram.ipynb) for more details on topic dendrogram visualization. The y-values in the dendrogram represent the metric distances and if we choose a certain y-value then only those topics which are clustered below it would be connected. So let's plot the dendrogram now to see the sequential clustering process with increasing distance values." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "from gensim.matutils import jensen_shannon\n", "import scipy as scp\n", "from scipy.cluster import hierarchy as sch\n", "from scipy import spatial as scs\n", "\n", "# get topic distributions\n", "topic_dist = lda_fake.state.get_lambda()\n", "\n", "# get topic terms\n", "num_words = 300\n", "topic_terms = [{w for (w, _) in lda_fake.show_topic(topic, topn=num_words)} for topic in range(topic_dist.shape[0])]\n", "\n", "# no. of terms to display in annotation\n", "n_ann_terms = 10\n", "\n", "# use Jenson-Shannon distance metric in dendrogram\n", "def js_dist(X):\n", " return pdist(X, lambda u, v: jensen_shannon(u, v))\n", "\n", "# define method for distance calculation in clusters\n", "linkagefun=lambda x: sch.linkage(x, 'single')\n", "\n", "# calculate text annotations\n", "def text_annotation(topic_dist, topic_terms, n_ann_terms, linkagefun):\n", " # get dendrogram hierarchy data\n", " d = js_dist(topic_dist)\n", " Z = linkagefun(d)\n", " P = sch.dendrogram(Z, orientation=\"bottom\", no_plot=True)\n", "\n", " # store topic no.(leaves) corresponding to the x-ticks in dendrogram\n", " x_ticks = np.arange(5, len(P['leaves']) * 10 + 5, 10)\n", " x_topic = dict(zip(P['leaves'], x_ticks))\n", "\n", " # store {topic no.:topic terms}\n", " topic_vals = dict()\n", " for key, val in x_topic.items():\n", " topic_vals[val] = (topic_terms[key], topic_terms[key])\n", "\n", " text_annotations = []\n", " # loop through every trace (scatter plot) in dendrogram\n", " for trace in P['icoord']:\n", " fst_topic = topic_vals[trace[0]]\n", " scnd_topic = topic_vals[trace[2]]\n", " \n", " # annotation for two ends of current trace\n", " pos_tokens_t1 = list(fst_topic[0])[:min(len(fst_topic[0]), n_ann_terms)]\n", " neg_tokens_t1 = list(fst_topic[1])[:min(len(fst_topic[1]), n_ann_terms)]\n", "\n", " pos_tokens_t4 = list(scnd_topic[0])[:min(len(scnd_topic[0]), n_ann_terms)]\n", " neg_tokens_t4 = list(scnd_topic[1])[:min(len(scnd_topic[1]), n_ann_terms)]\n", "\n", " t1 = \"<br>\".join((\": \".join((\"+++\", str(pos_tokens_t1))), \": \".join((\"---\", str(neg_tokens_t1)))))\n", " t2 = t3 = ()\n", " t4 = \"<br>\".join((\": \".join((\"+++\", str(pos_tokens_t4))), \": \".join((\"---\", str(neg_tokens_t4)))))\n", "\n", " # show topic terms in leaves\n", " if trace[0] in x_ticks:\n", " t1 = str(list(topic_vals[trace[0]][0])[:n_ann_terms])\n", " if trace[2] in x_ticks:\n", " t4 = str(list(topic_vals[trace[2]][0])[:n_ann_terms])\n", "\n", " text_annotations.append([t1, t2, t3, t4])\n", "\n", " # calculate intersecting/diff for upper level\n", " intersecting = fst_topic[0] & scnd_topic[0]\n", " different = fst_topic[0].symmetric_difference(scnd_topic[0])\n", "\n", " center = (trace[0] + trace[2]) / 2\n", " topic_vals[center] = (intersecting, different)\n", "\n", " # remove trace value after it is annotated\n", " topic_vals.pop(trace[0], None)\n", " topic_vals.pop(trace[2], None) \n", " \n", " return text_annotations\n", "\n", "# get text annotations\n", "annotation = text_annotation(topic_dist, topic_terms, n_ann_terms, linkagefun)\n", "\n", "# Plot dendrogram\n", "dendro = ff.create_dendrogram(topic_dist, distfun=js_dist, labels=range(1, 36), linkagefun=linkagefun, hovertext=annotation)\n", "dendro['layout'].update({'width': 1000, 'height': 600})\n", "py.iplot(dendro)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "From observing this dendrogram, we can try the threshold values between 0.3 to 0.35 for network graph, as the topics are clustered in distinct groups below them and this could plot separate clusters of related topics in the network graph.\n", "\n", "But then why do we need to use network graph if the dendrogram already shows the topic clusters with a clear sequence of how topics joined one after the other. The problem is that we can't see the direct relation of any topic with another topic except if they are directly paired at the first hierarchy level. The network graph let's us explore the inter-topic distances and at the same time observe clusters of closely related topics." ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.7.1" } }, "nbformat": 4, "nbformat_minor": 2 }
26,720
Python
.py
482
50.717842
1,689
0.636097
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,937
sklearn_api.ipynb
piskvorky_gensim/docs/notebooks/sklearn_api.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "## Using wrappers for Scikit learn API" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "This tutorial is about using gensim models as a part of your scikit learn workflow with the help of wrappers found at ```gensim.sklearn_integration```" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The wrappers available (as of now) are :\n", "* LdaModel (```gensim.sklearn_api.ldamodel.LdaTransformer```), which implements gensim's ```LDA Model``` in a scikit-learn interface\n", "\n", "* LsiModel (```gensim.sklearn_api.lsimodel.LsiTransformer```), which implements gensim's ```LSI Model``` in a scikit-learn interface\n", "\n", "* RpModel (```gensim.sklearn_api.rpmodel.RpTransformer```), which implements gensim's ```Random Projections Model``` in a scikit-learn interface\n", "\n", "* LDASeq Model (```gensim.sklearn_api.ldaseqmodel.LdaSeqTransformer```), which implements gensim's ```LdaSeqModel``` in a scikit-learn interface\n", "\n", "* Word2Vec Model (```gensim.sklearn_api.w2vmodel.W2VTransformer```), which implements gensim's ```Word2Vec``` in a scikit-learn interface\n", "\n", "* AuthorTopicModel Model (```gensim.sklearn_api.atmodel.AuthorTopicTransformer```), which implements gensim's ```AuthorTopicModel``` in a scikit-learn interface\n", "\n", "* Doc2Vec Model (```gensim.sklearn_api.d2vmodel.D2VTransformer```), which implements gensim's ```Doc2Vec``` in a scikit-learn interface\n", "\n", "* Text2Bow Model (```gensim.sklearn_api.text2bow.Text2BowTransformer```), which implements gensim's ```Dictionary``` in a scikit-learn interface\n", "\n", "* TfidfModel Model (```gensim.sklearn_api.tfidf.TfIdfTransformer```), which implements gensim's ```TfidfModel``` in a scikit-learn interface\n", "\n", "* HdpModel Model (```gensim.sklearn_api.hdp.HdpTransformer```), which implements gensim's ```HdpModel``` in a scikit-learn interface" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### LDA Model" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "To use LdaModel begin with importing LdaModel wrapper" ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "from gensim.sklearn_api import LdaTransformer" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Next we will create a dummy set of texts and convert it into a corpus" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [], "source": [ "from gensim.corpora import Dictionary\n", "texts = [\n", " ['complier', 'system', 'computer'],\n", " ['eulerian', 'node', 'cycle', 'graph', 'tree', 'path'],\n", " ['graph', 'flow', 'network', 'graph'],\n", " ['loading', 'computer', 'system'],\n", " ['user', 'server', 'system'],\n", " ['tree', 'hamiltonian'],\n", " ['graph', 'trees'],\n", " ['computer', 'kernel', 'malfunction', 'computer'],\n", " ['server', 'system', 'computer']\n", "]\n", "dictionary = Dictionary(texts)\n", "corpus = [dictionary.doc2bow(text) for text in texts]" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Then to run the LdaModel on it" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "array([[0.84165996, 0.15834005],\n", " [0.716593 , 0.28340697],\n", " [0.11434125, 0.88565874],\n", " [0.80545014, 0.19454984],\n", " [0.39609504, 0.603905 ],\n", " [0.80124027, 0.19875973],\n", " [0.19269218, 0.80730784],\n", " [0.8466452 , 0.15335481],\n", " [0.67057097, 0.32942903]], dtype=float32)" ] }, "execution_count": 3, "metadata": {}, "output_type": "execute_result" } ], "source": [ "model = LdaTransformer(num_topics=2, id2word=dictionary, iterations=20, random_state=1)\n", "model.fit(corpus)\n", "model.transform(corpus)" ] }, { "cell_type": "markdown", "metadata": { "collapsed": true }, "source": [ "#### Integration with Sklearn" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "To provide a better example of how it can be used with Sklearn, Let's use CountVectorizer method of sklearn. For this example we will use [20 Newsgroups data set](http://qwone.com/~jason/20Newsgroups/). We will only use the categories rec.sport.baseball and sci.crypt and use it to generate topics." ] }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [], "source": [ "import numpy as np\n", "from gensim import matutils\n", "from gensim.models.ldamodel import LdaModel\n", "from sklearn.datasets import fetch_20newsgroups\n", "from gensim.sklearn_api.ldamodel import LdaTransformer" ] }, { "cell_type": "code", "execution_count": 5, "metadata": {}, "outputs": [], "source": [ "rand = np.random.mtrand.RandomState(1) # set seed for getting same result\n", "cats = ['rec.sport.baseball', 'sci.crypt']\n", "data = fetch_20newsgroups(subset='train', categories=cats, shuffle=True)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Next, we use use the loaded data to create our dictionary and corpus." ] }, { "cell_type": "code", "execution_count": 6, "metadata": {}, "outputs": [], "source": [ "data_texts = [_.split() for _ in data.data]\n", "id2word = Dictionary(data_texts)\n", "corpus = [id2word.doc2bow(i.split()) for i in data.data]" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Next, we just need to fit corpus and id2word to our Lda wrapper." ] }, { "cell_type": "code", "execution_count": 7, "metadata": {}, "outputs": [], "source": [ "obj = LdaTransformer(id2word=id2word, num_topics=5, iterations=20)\n", "lda = obj.fit(corpus)" ] }, { "cell_type": "markdown", "metadata": { "collapsed": true }, "source": [ "#### Example for Using Grid Search" ] }, { "cell_type": "code", "execution_count": 8, "metadata": {}, "outputs": [], "source": [ "from sklearn.model_selection import GridSearchCV" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The inbuilt `score` function of Lda wrapper class provides two modes : `perplexity` and `u_mass` for computing the scores of the candidate models. The preferred mode for the scoring function is specified using `scorer` parameter of the wrapper as follows : " ] }, { "cell_type": "code", "execution_count": 9, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "{'iterations': 20, 'num_topics': 3}" ] }, "execution_count": 9, "metadata": {}, "output_type": "execute_result" } ], "source": [ "obj = LdaTransformer(id2word=id2word, num_topics=2, iterations=5, scorer='u_mass') # here 'scorer' can be 'perplexity' or 'u_mass'\n", "parameters = {'num_topics': (2, 3, 5, 10), 'iterations': (1, 20, 50)}\n", "\n", "# set `scoring` as `None` to use the inbuilt score function of `SklLdaModel` class\n", "model = GridSearchCV(obj, parameters, cv=3, scoring=None)\n", "model.fit(corpus)\n", "\n", "model.best_params_" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "You can also supply a custom scoring function of your choice using the `scoring` parameter of `GridSearchCV` function. The example shown below uses `c_v` mode of `CoherenceModel` class for computing the scores of the candidate models." ] }, { "cell_type": "code", "execution_count": 10, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "{'iterations': 50, 'num_topics': 2}" ] }, "execution_count": 10, "metadata": {}, "output_type": "execute_result" } ], "source": [ "from gensim.models.coherencemodel import CoherenceModel\n", "\n", "# supplying a custom scoring function\n", "def scoring_function(estimator, X, y=None):\n", " goodcm = CoherenceModel(model=estimator.gensim_model, texts=data_texts, dictionary=estimator.gensim_model.id2word, coherence='c_v')\n", " return goodcm.get_coherence()\n", "\n", "obj = LdaTransformer(id2word=id2word, num_topics=5, iterations=5)\n", "parameters = {'num_topics': (2, 3, 5, 10), 'iterations': (1, 20, 50)}\n", "\n", "# set `scoring` as your custom scoring function\n", "model = GridSearchCV(obj, parameters, cv=2, scoring=scoring_function)\n", "model.fit(corpus)\n", "\n", "model.best_params_" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "#### Example of Using Pipeline" ] }, { "cell_type": "code", "execution_count": 11, "metadata": {}, "outputs": [], "source": [ "from sklearn.pipeline import Pipeline\n", "from sklearn import linear_model\n", "\n", "def print_features_pipe(clf, vocab, n=10):\n", " ''' Better printing for sorted list '''\n", " # FIXME: this function is broken\n", " coef = clf.named_steps['classifier'].coef_[0]\n", " print(coef)\n", " print('Positive features: %s' % (' '.join(['%s:%.2f' % (vocab[j], coef[j]) for j in np.argsort(coef)[::-1][:n] if coef[j] > 0])))\n", " print('Negative features: %s' % (' '.join(['%s:%.2f' % (vocab[j], coef[j]) for j in np.argsort(coef)[:n] if coef[j] < 0])))" ] }, { "cell_type": "code", "execution_count": 12, "metadata": {}, "outputs": [], "source": [ "id2word = Dictionary([_.split() for _ in data.data])\n", "corpus = [id2word.doc2bow(i.split()) for i in data.data]" ] }, { "cell_type": "code", "execution_count": 14, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "/home/misha/envs/gensim/lib/python3.7/site-packages/sklearn/linear_model/logistic.py:433: FutureWarning: Default solver will be changed to 'lbfgs' in 0.22. Specify a solver to silence this warning.\n", " FutureWarning)\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ "0.6459731543624161\n" ] } ], "source": [ "model = LdaTransformer(num_topics=15, id2word=id2word, iterations=10, random_state=37)\n", "clf = linear_model.LogisticRegression(penalty='l2', C=0.1) # l2 penalty used\n", "pipe = Pipeline([('features', model,), ('classifier', clf)])\n", "pipe.fit(corpus, data.target)\n", "# print_features_pipe(pipe, id2word.values())\n", "\n", "print(pipe.score(corpus, data.target))" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### LSI Model" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "To use LsiModel begin with importing LsiModel wrapper" ] }, { "cell_type": "code", "execution_count": 15, "metadata": {}, "outputs": [], "source": [ "from gensim.sklearn_api import LsiTransformer" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "#### Example of Using Pipeline" ] }, { "cell_type": "code", "execution_count": 18, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "/home/misha/envs/gensim/lib/python3.7/site-packages/sklearn/linear_model/logistic.py:433: FutureWarning: Default solver will be changed to 'lbfgs' in 0.22. Specify a solver to silence this warning.\n", " FutureWarning)\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ "0.8657718120805369\n" ] } ], "source": [ "model = LsiTransformer(num_topics=15, id2word=id2word)\n", "clf = linear_model.LogisticRegression(penalty='l2', C=0.1) # l2 penalty used\n", "pipe = Pipeline([('features', model,), ('classifier', clf)])\n", "pipe.fit(corpus, data.target)\n", "# print_features_pipe(pipe, id2word.values())\n", "\n", "print(pipe.score(corpus, data.target))" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Random Projections Model" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "To use RpModel begin with importing RpModel wrapper" ] }, { "cell_type": "code", "execution_count": 19, "metadata": {}, "outputs": [], "source": [ "from gensim.sklearn_api import RpTransformer" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "#### Example of Using Pipeline" ] }, { "cell_type": "code", "execution_count": 20, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "/home/misha/envs/gensim/lib/python3.7/site-packages/sklearn/linear_model/logistic.py:433: FutureWarning: Default solver will be changed to 'lbfgs' in 0.22. Specify a solver to silence this warning.\n", " FutureWarning)\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ "0.5461409395973155\n" ] } ], "source": [ "model = RpTransformer(num_topics=2)\n", "np.random.mtrand.RandomState(1) # set seed for getting same result\n", "clf = linear_model.LogisticRegression(penalty='l2', C=0.1) # l2 penalty used\n", "pipe = Pipeline([('features', model,), ('classifier', clf)])\n", "pipe.fit(corpus, data.target)\n", "# print_features_pipe(pipe, id2word.values())\n", "\n", "print(pipe.score(corpus, data.target))" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### LDASeq Model" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "To use LdaSeqModel begin with importing LdaSeqModel wrapper" ] }, { "cell_type": "code", "execution_count": 21, "metadata": {}, "outputs": [], "source": [ "from gensim.sklearn_api import LdaSeqTransformer" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "#### Example of Using Pipeline" ] }, { "cell_type": "code", "execution_count": 22, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "/home/misha/git/gensim/gensim/models/ldaseqmodel.py:293: RuntimeWarning: divide by zero encountered in double_scalars\n", " convergence = np.fabs((bound - old_bound) / old_bound)\n", "/home/misha/envs/gensim/lib/python3.7/site-packages/sklearn/linear_model/logistic.py:433: FutureWarning: Default solver will be changed to 'lbfgs' in 0.22. Specify a solver to silence this warning.\n", " FutureWarning)\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ "1.0\n" ] } ], "source": [ "test_data = data.data[0:2]\n", "test_target = data.target[0:2]\n", "id2word_ldaseq = Dictionary(map(lambda x: x.split(), test_data))\n", "corpus_ldaseq = [id2word_ldaseq.doc2bow(i.split()) for i in test_data]\n", "\n", "model = LdaSeqTransformer(id2word=id2word_ldaseq, num_topics=2, time_slice=[1, 1, 1], initialize='gensim')\n", "clf = linear_model.LogisticRegression(penalty='l2', C=0.1) # l2 penalty used\n", "pipe = Pipeline([('features', model,), ('classifier', clf)])\n", "pipe.fit(corpus_ldaseq, test_target)\n", "# print_features_pipe(pipe, id2word_ldaseq.values())\n", "\n", "print(pipe.score(corpus_ldaseq, test_target))" ] }, { "cell_type": "markdown", "metadata": { "collapsed": true }, "source": [ "### Word2Vec Model" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "To use Word2Vec model begin with importing Word2Vec wrapper" ] }, { "cell_type": "code", "execution_count": 23, "metadata": {}, "outputs": [], "source": [ "from gensim.sklearn_api import W2VTransformer" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "#### Example of Using Pipeline" ] }, { "cell_type": "code", "execution_count": 24, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "0.9\n" ] }, { "name": "stderr", "output_type": "stream", "text": [ "/home/misha/envs/gensim/lib/python3.7/site-packages/sklearn/linear_model/logistic.py:433: FutureWarning: Default solver will be changed to 'lbfgs' in 0.22. Specify a solver to silence this warning.\n", " FutureWarning)\n" ] } ], "source": [ "w2v_texts = [\n", " ['calculus', 'is', 'the', 'mathematical', 'study', 'of', 'continuous', 'change'],\n", " ['geometry', 'is', 'the', 'study', 'of', 'shape'],\n", " ['algebra', 'is', 'the', 'study', 'of', 'generalizations', 'of', 'arithmetic', 'operations'],\n", " ['differential', 'calculus', 'is', 'related', 'to', 'rates', 'of', 'change', 'and', 'slopes', 'of', 'curves'],\n", " ['integral', 'calculus', 'is', 'realted', 'to', 'accumulation', 'of', 'quantities', 'and', 'the', 'areas', 'under', 'and', 'between', 'curves'],\n", " ['physics', 'is', 'the', 'natural', 'science', 'that', 'involves', 'the', 'study', 'of', 'matter', 'and', 'its', 'motion', 'and', 'behavior', 'through', 'space', 'and', 'time'],\n", " ['the', 'main', 'goal', 'of', 'physics', 'is', 'to', 'understand', 'how', 'the', 'universe', 'behaves'],\n", " ['physics', 'also', 'makes', 'significant', 'contributions', 'through', 'advances', 'in', 'new', 'technologies', 'that', 'arise', 'from', 'theoretical', 'breakthroughs'],\n", " ['advances', 'in', 'the', 'understanding', 'of', 'electromagnetism', 'or', 'nuclear', 'physics', 'led', 'directly', 'to', 'the', 'development', 'of', 'new', 'products', 'that', 'have', 'dramatically', 'transformed', 'modern', 'day', 'society']\n", "]\n", "\n", "model = W2VTransformer(size=10, min_count=1)\n", "model.fit(w2v_texts)\n", "\n", "class_dict = {'mathematics': 1, 'physics': 0}\n", "train_data = [\n", " ('calculus', 'mathematics'), ('mathematical', 'mathematics'), ('geometry', 'mathematics'), ('operations', 'mathematics'), ('curves', 'mathematics'),\n", " ('natural', 'physics'), ('nuclear', 'physics'), ('science', 'physics'), ('electromagnetism', 'physics'), ('natural', 'physics')\n", "]\n", "\n", "train_input = list(map(lambda x: x[0], train_data))\n", "train_target = list(map(lambda x: class_dict[x[1]], train_data))\n", "\n", "clf = linear_model.LogisticRegression(penalty='l2', C=0.1)\n", "clf.fit(model.transform(train_input), train_target)\n", "text_w2v = Pipeline([('features', model,), ('classifier', clf)])\n", "score = text_w2v.score(train_input, train_target)\n", "\n", "print(score)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### AuthorTopic Model" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "To use AuthorTopic model begin with importing AuthorTopic wrapper" ] }, { "cell_type": "code", "execution_count": 25, "metadata": {}, "outputs": [], "source": [ "from gensim.sklearn_api import AuthorTopicTransformer" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "#### Example of Using Pipeline" ] }, { "cell_type": "code", "execution_count": 26, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "[1 1 0]\n" ] } ], "source": [ "from sklearn import cluster\n", "\n", "atm_texts = [\n", " ['complier', 'system', 'computer'],\n", " ['eulerian', 'node', 'cycle', 'graph', 'tree', 'path'],\n", " ['graph', 'flow', 'network', 'graph'],\n", " ['loading', 'computer', 'system'],\n", " ['user', 'server', 'system'],\n", " ['tree', 'hamiltonian'],\n", " ['graph', 'trees'],\n", " ['computer', 'kernel', 'malfunction', 'computer'],\n", " ['server', 'system', 'computer'],\n", "]\n", "atm_dictionary = Dictionary(atm_texts)\n", "atm_corpus = [atm_dictionary.doc2bow(text) for text in atm_texts]\n", "author2doc = {'john': [0, 1, 2, 3, 4, 5, 6], 'jane': [2, 3, 4, 5, 6, 7, 8], 'jack': [0, 2, 4, 6, 8], 'jill': [1, 3, 5, 7]}\n", "\n", "model = AuthorTopicTransformer(id2word=atm_dictionary, author2doc=author2doc, num_topics=10, passes=100)\n", "model.fit(atm_corpus)\n", "\n", "# create and train clustering model\n", "clstr = cluster.MiniBatchKMeans(n_clusters=2)\n", "authors_full = ['john', 'jane', 'jack', 'jill']\n", "clstr.fit(model.transform(authors_full))\n", "\n", "# stack together the two models in a pipeline\n", "text_atm = Pipeline([('features', model,), ('cluster', clstr)])\n", "author_list = ['jane', 'jack', 'jill']\n", "ret_val = text_atm.predict(author_list)\n", "\n", "print(ret_val)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Doc2Vec Model" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "To use Doc2Vec model begin with importing Doc2Vec wrapper" ] }, { "cell_type": "code", "execution_count": 27, "metadata": {}, "outputs": [], "source": [ "from gensim.sklearn_api import D2VTransformer" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "#### Example of Using Pipeline" ] }, { "cell_type": "code", "execution_count": 28, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "1.0\n" ] }, { "name": "stderr", "output_type": "stream", "text": [ "/home/misha/envs/gensim/lib/python3.7/site-packages/sklearn/linear_model/logistic.py:433: FutureWarning: Default solver will be changed to 'lbfgs' in 0.22. Specify a solver to silence this warning.\n", " FutureWarning)\n" ] } ], "source": [ "from gensim.models import doc2vec\n", "d2v_sentences = [doc2vec.TaggedDocument(words, [i]) for i, words in enumerate(w2v_texts)]\n", "\n", "model = D2VTransformer(min_count=1)\n", "model.fit(d2v_sentences)\n", "\n", "class_dict = {'mathematics': 1, 'physics': 0}\n", "train_data = [\n", " (['calculus', 'mathematical'], 'mathematics'), (['geometry', 'operations', 'curves'], 'mathematics'),\n", " (['natural', 'nuclear'], 'physics'), (['science', 'electromagnetism', 'natural'], 'physics')\n", "]\n", "train_input = list(map(lambda x: x[0], train_data))\n", "train_target = list(map(lambda x: class_dict[x[1]], train_data))\n", "\n", "clf = linear_model.LogisticRegression(penalty='l2', C=0.1)\n", "clf.fit(model.transform(train_input), train_target)\n", "text_d2v = Pipeline([('features', model,), ('classifier', clf)])\n", "score = text_d2v.score(train_input, train_target)\n", "\n", "print(score)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Text2Bow Model" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "To use Text2Bow model begin with importing Text2Bow wrapper" ] }, { "cell_type": "code", "execution_count": 29, "metadata": {}, "outputs": [], "source": [ "from gensim.sklearn_api import Text2BowTransformer" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "#### Example of Using Pipeline" ] }, { "cell_type": "code", "execution_count": 30, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "/home/misha/envs/gensim/lib/python3.7/site-packages/sklearn/linear_model/logistic.py:433: FutureWarning: Default solver will be changed to 'lbfgs' in 0.22. Specify a solver to silence this warning.\n", " FutureWarning)\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ "0.9723154362416108\n" ] } ], "source": [ "text2bow_model = Text2BowTransformer()\n", "lda_model = LdaTransformer(num_topics=2, passes=10, minimum_probability=0, random_state=np.random.seed(0))\n", "clf = linear_model.LogisticRegression(penalty='l2', C=0.1)\n", "text_t2b = Pipeline([('bow_model', text2bow_model), ('ldamodel', lda_model), ('classifier', clf)])\n", "text_t2b.fit(data.data, data.target)\n", "score = text_t2b.score(data.data, data.target)\n", "\n", "print(score)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### TfIdf Model" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "To use TfIdf model begin with importing TfIdf wrapper" ] }, { "cell_type": "code", "execution_count": 31, "metadata": {}, "outputs": [], "source": [ "from gensim.sklearn_api import TfIdfTransformer" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "#### Example of Using Pipeline" ] }, { "cell_type": "code", "execution_count": 32, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "/home/misha/envs/gensim/lib/python3.7/site-packages/sklearn/linear_model/logistic.py:433: FutureWarning: Default solver will be changed to 'lbfgs' in 0.22. Specify a solver to silence this warning.\n", " FutureWarning)\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ "0.735738255033557\n" ] } ], "source": [ "tfidf_model = TfIdfTransformer()\n", "tfidf_model.fit(corpus)\n", "lda_model = LdaTransformer(num_topics=2, passes=10, minimum_probability=0, random_state=np.random.seed(0))\n", "clf = linear_model.LogisticRegression(penalty='l2', C=0.1)\n", "text_tfidf = Pipeline((('tfidf_model', tfidf_model), ('ldamodel', lda_model), ('classifier', clf)))\n", "text_tfidf.fit(corpus, data.target)\n", "score = text_tfidf.score(corpus, data.target)\n", "\n", "print(score)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### HDP Model" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "To use HDP model begin with importing HDP wrapper" ] }, { "cell_type": "code", "execution_count": 33, "metadata": {}, "outputs": [], "source": [ "from gensim.sklearn_api import HdpTransformer" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "#### Example of Using Pipeline" ] }, { "cell_type": "code", "execution_count": 34, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "/home/misha/envs/gensim/lib/python3.7/site-packages/sklearn/linear_model/logistic.py:433: FutureWarning: Default solver will be changed to 'lbfgs' in 0.22. Specify a solver to silence this warning.\n", " FutureWarning)\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ "0.8271812080536913\n" ] } ], "source": [ "model = HdpTransformer(id2word=id2word)\n", "clf = linear_model.LogisticRegression(penalty='l2', C=0.1)\n", "text_hdp = Pipeline([('features', model,), ('classifier', clf)])\n", "text_hdp.fit(corpus, data.target)\n", "score = text_hdp.score(corpus, data.target)\n", "\n", "print(score)" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.7.1" } }, "nbformat": 4, "nbformat_minor": 1 }
28,710
Python
.py
1,009
23.969277
304
0.574131
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,938
Poincare Tutorial.ipynb
piskvorky_gensim/docs/notebooks/Poincare Tutorial.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Tutorial on Poincaré Embeddings" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "This notebook discusses the basic ideas and use-cases for Poincaré embeddings and demonstrates what kind of operations can be done with them. For more comprehensive technical details and results, this [blog post](https://rare-technologies.com/implementing-poincare-embeddings) may be a more appropriate resource." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## 1. Introduction" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### 1.1 Concept and use-case\n", "\n", "Poincaré embeddings are a method to learn vector representations of nodes in a graph. The input data is of the form of a list of relations (edges) between nodes, and the model tries to learn representations such that the vectors for the nodes accurately represent the distances between them.\n", "\n", "The learnt embeddings capture notions of both _hierarchy_ and _similarity_ - similarity by placing connected nodes close to each other and unconnected nodes far from each other; hierarchy by placing nodes lower in the hierarchy farther from the origin, i.e. with higher norms.\n", "\n", "The paper uses this model to learn embeddings of nodes in the WordNet noun hierarchy, and evaluates these on 3 tasks - reconstruction, link prediction and lexical entailment, which are described in the section on evaluation. We have compared the results of our Poincaré model implementation on these tasks to other open-source implementations and the results mentioned in the paper.\n", "\n", "The paper also describes a variant of the Poincaré model to learn embeddings of nodes in a symmetric graph, unlike the WordNet noun hierarchy, which is directed and asymmetric. The datasets used in the paper for this model are scientific collaboration networks, in which the nodes are researchers and an edge represents that the two researchers have co-authored a paper.\n", "\n", "This variant has not been implemented yet, and is therefore not a part of our tutorial and experiments.\n", "\n", "\n", "### 1.2 Motivation\n", "\n", "The main innovation here is that these embeddings are learnt in hyperbolic space, as opposed to the commonly used Euclidean space. The reason behind this is that hyperbolic space is more suitable for capturing any hierarchical information inherently present in the graph. Embedding nodes into a Euclidean space while preserving the distance between the nodes usually requires a very high number of dimensions. A simple illustration of this can be seen below - \n", " \n", " ![Example tree](https://raw.githubusercontent.com/RaRe-Technologies/gensim/poincare_model_keyedvectors/docs/notebooks/poincare/example_tree.png)\n", "\n", "Here, the positions of nodes represent the positions of their vectors in 2-D euclidean space. Ideally, the distances between the vectors for nodes `(A, D)` should be the same as that between `(D, H)` and as that between `H` and its child nodes. Similarly, all the child nodes of `H` must be equally far away from node `A`. It becomes progressively hard to accurately preserve these distances in Euclidean space as the degree and depth of the tree grows larger. Hierarchical structures may also have cross-connections (effectively a directed graph), making this harder.\n", "\n", "There is no representation of this simple tree in 2-dimensional Euclidean space which can reflect these distances correctly. This can be solved by adding more dimensions, but this becomes computationally infeasible as the number of required dimensions grows exponentially. \n", "Hyperbolic space is a metric space in which distances aren't straight lines - they are curves, and this allows such tree-like hierarchical structures to have a representation that captures the distances more accurately even in low dimensions." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## 2. Training the embedding" ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "/home/misha/git/gensim\n" ] } ], "source": [ "%cd ../.." ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [], "source": [ "# %load_ext autoreload \n", "# %autoreload 2\n", "\n", "import os\n", "import logging\n", "import numpy as np\n", "\n", "from gensim.models.poincare import PoincareModel, PoincareKeyedVectors, PoincareRelations\n", "\n", "logging.basicConfig(level=logging.INFO)\n", "\n", "poincare_directory = os.path.join(os.getcwd(), 'docs', 'notebooks', 'poincare')\n", "data_directory = os.path.join(poincare_directory, 'data')\n", "wordnet_mammal_file = os.path.join(data_directory, 'wordnet_mammal_hypernyms.tsv')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The model can be initialized using an iterable of relations, where a relation is simply a pair of nodes - " ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "INFO:gensim.models.poincare:loading relations from train data..\n", "INFO:gensim.models.poincare:loaded 2 relations from train data, 3 nodes\n" ] } ], "source": [ "model = PoincareModel(train_data=[('node.1', 'node.2'), ('node.2', 'node.3')])" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The model can also be initialized from a csv-like file containing one relation per line. The module provides a convenience class `PoincareRelations` to do so." ] }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "INFO:gensim.models.poincare:loading relations from train data..\n", "WARNING:smart_open.smart_open_lib:this function is deprecated, use smart_open.open instead\n", "INFO:gensim.models.poincare:loaded 7724 relations from train data, 1182 nodes\n" ] } ], "source": [ "relations = PoincareRelations(file_path=wordnet_mammal_file, delimiter='\\t')\n", "model = PoincareModel(train_data=relations)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Note that the above only initializes the model and does not begin training. To train the model - " ] }, { "cell_type": "code", "execution_count": 5, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "INFO:gensim.models.poincare:loading relations from train data..\n", "WARNING:smart_open.smart_open_lib:this function is deprecated, use smart_open.open instead\n", "INFO:gensim.models.poincare:loaded 7724 relations from train data, 1182 nodes\n", "INFO:gensim.models.poincare:training model of size 2 with 1 workers on 7724 relations for 1 epochs and 0 burn-in epochs, using lr=0.10000 burn-in lr=0.01000 negative=10\n", "INFO:gensim.models.poincare:starting training (1 epochs)----------------------------------------\n", "INFO:gensim.models.poincare:training on epoch 1, examples #4990-#5000, loss: 23.57\n", "INFO:gensim.models.poincare:time taken for 5000 examples: 0.69 s, 7268.98 examples / s\n", "INFO:gensim.models.poincare:training finished\n" ] } ], "source": [ "model = PoincareModel(train_data=relations, size=2, burn_in=0)\n", "model.train(epochs=1, print_every=500)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The same model can be trained further on more epochs in case the user decides that the model hasn't converged yet." ] }, { "cell_type": "code", "execution_count": 6, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "INFO:gensim.models.poincare:training model of size 2 with 1 workers on 7724 relations for 1 epochs and 0 burn-in epochs, using lr=0.10000 burn-in lr=0.01000 negative=10\n", "INFO:gensim.models.poincare:starting training (1 epochs)----------------------------------------\n", "INFO:gensim.models.poincare:training on epoch 1, examples #4990-#5000, loss: 22.37\n", "INFO:gensim.models.poincare:time taken for 5000 examples: 0.67 s, 7412.15 examples / s\n", "INFO:gensim.models.poincare:training finished\n" ] } ], "source": [ "model.train(epochs=1, print_every=500)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The model can be saved and loaded using two different methods - " ] }, { "cell_type": "code", "execution_count": 7, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "INFO:gensim.utils:saving PoincareModel object under /tmp/test_model, separately None\n", "INFO:gensim.utils:not storing attribute _node_probabilities\n", "INFO:gensim.utils:not storing attribute _node_counts_cumsum\n", "WARNING:smart_open.smart_open_lib:this function is deprecated, use smart_open.open instead\n", "INFO:gensim.utils:saved /tmp/test_model\n", "INFO:gensim.utils:loading PoincareModel object from /tmp/test_model\n", "WARNING:smart_open.smart_open_lib:this function is deprecated, use smart_open.open instead\n", "INFO:gensim.utils:loading kv recursively from /tmp/test_model.kv.* with mmap=None\n", "INFO:gensim.utils:setting ignored attribute _node_probabilities to None\n", "INFO:gensim.utils:setting ignored attribute _node_counts_cumsum to None\n", "INFO:gensim.utils:loaded /tmp/test_model\n" ] }, { "data": { "text/plain": [ "<gensim.models.poincare.PoincareModel at 0x7f354560b860>" ] }, "execution_count": 7, "metadata": {}, "output_type": "execute_result" } ], "source": [ "# Saves the entire PoincareModel instance, the loaded model can be trained further\n", "model.save('/tmp/test_model')\n", "PoincareModel.load('/tmp/test_model')" ] }, { "cell_type": "code", "execution_count": 8, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "INFO:gensim.models.utils_any2vec:storing 1182x2 projection weights into /tmp/test_vectors\n", "WARNING:smart_open.smart_open_lib:this function is deprecated, use smart_open.open instead\n", "INFO:gensim.models.utils_any2vec:loading projection weights from /tmp/test_vectors\n", "WARNING:smart_open.smart_open_lib:this function is deprecated, use smart_open.open instead\n", "INFO:gensim.models.utils_any2vec:loaded (1182, 2) matrix from /tmp/test_vectors\n" ] }, { "data": { "text/plain": [ "<gensim.models.poincare.PoincareKeyedVectors at 0x7f3545623b38>" ] }, "execution_count": 8, "metadata": {}, "output_type": "execute_result" } ], "source": [ "# Saves only the vectors from the PoincareModel instance, in the commonly used word2vec format\n", "model.kv.save_word2vec_format('/tmp/test_vectors')\n", "PoincareKeyedVectors.load_word2vec_format('/tmp/test_vectors')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## 3. What the embedding can be used for" ] }, { "cell_type": "code", "execution_count": 9, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "INFO:gensim.utils:loading PoincareModel object from /home/misha/git/gensim/docs/notebooks/poincare/models/gensim_model_batch_size_10_burn_in_0_epochs_50_neg_20_dim_50\n", "WARNING:smart_open.smart_open_lib:this function is deprecated, use smart_open.open instead\n" ] }, { "ename": "FileNotFoundError", "evalue": "[Errno 2] No such file or directory: '/home/misha/git/gensim/docs/notebooks/poincare/models/gensim_model_batch_size_10_burn_in_0_epochs_50_neg_20_dim_50'", "output_type": "error", "traceback": [ "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", "\u001b[0;31mFileNotFoundError\u001b[0m Traceback (most recent call last)", "\u001b[0;32m<ipython-input-9-6ead1966aa14>\u001b[0m in \u001b[0;36m<module>\u001b[0;34m\u001b[0m\n\u001b[1;32m 2\u001b[0m \u001b[0mmodels_directory\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mos\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mpath\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mjoin\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mpoincare_directory\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m'models'\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 3\u001b[0m \u001b[0mtest_model_path\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mos\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mpath\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mjoin\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mmodels_directory\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m'gensim_model_batch_size_10_burn_in_0_epochs_50_neg_20_dim_50'\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m----> 4\u001b[0;31m \u001b[0mmodel\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mPoincareModel\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mload\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mtest_model_path\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m", "\u001b[0;32m~/git/gensim/gensim/models/poincare.py\u001b[0m in \u001b[0;36mload\u001b[0;34m(cls, *args, **kwargs)\u001b[0m\n\u001b[1;32m 394\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 395\u001b[0m \"\"\"\n\u001b[0;32m--> 396\u001b[0;31m \u001b[0mmodel\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0msuper\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mPoincareModel\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mcls\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mload\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m*\u001b[0m\u001b[0margs\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m**\u001b[0m\u001b[0mkwargs\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 397\u001b[0m \u001b[0mmodel\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_init_node_probabilities\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 398\u001b[0m \u001b[0;32mreturn\u001b[0m \u001b[0mmodel\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", "\u001b[0;32m~/git/gensim/gensim/utils.py\u001b[0m in \u001b[0;36mload\u001b[0;34m(cls, fname, mmap)\u001b[0m\n\u001b[1;32m 424\u001b[0m \u001b[0mcompress\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0msubname\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mSaveLoad\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_adapt_by_suffix\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mfname\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 425\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 426\u001b[0;31m \u001b[0mobj\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0munpickle\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mfname\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 427\u001b[0m \u001b[0mobj\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_load_specials\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mfname\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mmmap\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mcompress\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0msubname\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 428\u001b[0m \u001b[0mlogger\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0minfo\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m\"loaded %s\"\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mfname\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", "\u001b[0;32m~/git/gensim/gensim/utils.py\u001b[0m in \u001b[0;36munpickle\u001b[0;34m(fname)\u001b[0m\n\u001b[1;32m 1379\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1380\u001b[0m \"\"\"\n\u001b[0;32m-> 1381\u001b[0;31m \u001b[0;32mwith\u001b[0m \u001b[0msmart_open\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mfname\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m'rb'\u001b[0m\u001b[0;34m)\u001b[0m \u001b[0;32mas\u001b[0m \u001b[0mf\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 1382\u001b[0m \u001b[0;31m# Because of loading from S3 load can't be used (missing readline in smart_open)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1383\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0msys\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mversion_info\u001b[0m \u001b[0;34m>\u001b[0m \u001b[0;34m(\u001b[0m\u001b[0;36m3\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;36m0\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", "\u001b[0;32m~/envs/gensim/lib/python3.7/site-packages/smart_open/smart_open_lib.py\u001b[0m in \u001b[0;36msmart_open\u001b[0;34m(uri, mode, **kw)\u001b[0m\n\u001b[1;32m 437\u001b[0m \u001b[0mtransport_params\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0mkey\u001b[0m\u001b[0;34m]\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mvalue\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 438\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 439\u001b[0;31m \u001b[0;32mreturn\u001b[0m \u001b[0mopen\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0muri\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mmode\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mignore_ext\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mignore_extension\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mtransport_params\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mtransport_params\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m**\u001b[0m\u001b[0mscrubbed_kwargs\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 440\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 441\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n", "\u001b[0;32m~/envs/gensim/lib/python3.7/site-packages/smart_open/smart_open_lib.py\u001b[0m in \u001b[0;36mopen\u001b[0;34m(uri, mode, buffering, encoding, errors, newline, closefd, opener, ignore_ext, transport_params)\u001b[0m\n\u001b[1;32m 305\u001b[0m \u001b[0mbuffering\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mbuffering\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 306\u001b[0m \u001b[0mencoding\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mencoding\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 307\u001b[0;31m \u001b[0merrors\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0merrors\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 308\u001b[0m )\n\u001b[1;32m 309\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0mfobj\u001b[0m \u001b[0;32mis\u001b[0m \u001b[0;32mnot\u001b[0m \u001b[0;32mNone\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", "\u001b[0;32m~/envs/gensim/lib/python3.7/site-packages/smart_open/smart_open_lib.py\u001b[0m in \u001b[0;36m_shortcut_open\u001b[0;34m(uri, mode, ignore_ext, buffering, encoding, errors)\u001b[0m\n\u001b[1;32m 496\u001b[0m \u001b[0;31m#\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 497\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0msix\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mPY3\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 498\u001b[0;31m \u001b[0;32mreturn\u001b[0m \u001b[0m_builtin_open\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mparsed_uri\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0muri_path\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mmode\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mbuffering\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mbuffering\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m**\u001b[0m\u001b[0mopen_kwargs\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 499\u001b[0m \u001b[0;32melif\u001b[0m \u001b[0;32mnot\u001b[0m \u001b[0mopen_kwargs\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 500\u001b[0m \u001b[0;32mreturn\u001b[0m \u001b[0m_builtin_open\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mparsed_uri\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0muri_path\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mmode\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mbuffering\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mbuffering\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", "\u001b[0;31mFileNotFoundError\u001b[0m: [Errno 2] No such file or directory: '/home/misha/git/gensim/docs/notebooks/poincare/models/gensim_model_batch_size_10_burn_in_0_epochs_50_neg_20_dim_50'" ] } ], "source": [ "# Load an example model\n", "models_directory = os.path.join(poincare_directory, 'models')\n", "test_model_path = os.path.join(models_directory, 'gensim_model_batch_size_10_burn_in_0_epochs_50_neg_20_dim_50')\n", "model = PoincareModel.load(test_model_path)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The learnt representations can be used to perform various kinds of useful operations. This section is split into two - some simple operations that are directly mentioned in the paper, as well as some experimental operations that are hinted at, and might require more work to refine.\n", "\n", "The models that are used in this section have been trained on the transitive closure of the WordNet hypernym graph. The transitive closure is the list of all the direct and indirect hypernyms in the WordNet graph. An example of a direct hypernym is `(seat.n.03, furniture.n.01)` while an example of an indirect hypernym is `(seat.n.03, physical_entity.n.01)`.\n", "\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### 3.1 Simple operations" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "All the following operations are based simply on the notion of distance between two nodes in hyperbolic space." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# Distance between any two nodes\n", "model.kv.distance('plant.n.02', 'tree.n.01')" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "model.kv.distance('plant.n.02', 'animal.n.01')" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# Nodes most similar to a given input node\n", "model.kv.most_similar('electricity.n.01')" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "model.kv.most_similar('man.n.01')" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# Nodes closer to node 1 than node 2 is from node 1\n", "model.kv.nodes_closer_than('dog.n.01', 'carnivore.n.01')" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# Rank of distance of node 2 from node 1 in relation to distances of all nodes from node 1\n", "model.kv.rank('dog.n.01', 'carnivore.n.01')" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# Finding Poincare distance between input vectors\n", "vector_1 = np.random.uniform(size=(100,))\n", "vector_2 = np.random.uniform(size=(100,))\n", "vectors_multiple = np.random.uniform(size=(5, 100))\n", "\n", "# Distance between vector_1 and vector_2\n", "print(PoincareKeyedVectors.vector_distance(vector_1, vector_2))\n", "# Distance between vector_1 and each vector in vectors_multiple\n", "print(PoincareKeyedVectors.vector_distance_batch(vector_1, vectors_multiple))" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### 3.2 Experimental operations" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "These operations are based on the notion that the norm of a vector represents its hierarchical position. Leaf nodes typically tend to have the highest norms, and as we move up the hierarchy, the norm decreases, with the root node being close to the center (or origin)." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# Closest child node\n", "model.kv.closest_child('person.n.01')" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# Closest parent node\n", "model.kv.closest_parent('person.n.01')" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# Position in hierarchy - lower values represent that the node is higher in the hierarchy\n", "print(model.kv.norm('person.n.01'))\n", "print(model.kv.norm('teacher.n.01'))" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# Difference in hierarchy between the first node and the second node\n", "# Positive values indicate the first node is higher in the hierarchy\n", "print(model.kv.difference_in_hierarchy('person.n.01', 'teacher.n.01'))" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# One possible descendant chain\n", "model.kv.descendants('mammal.n.01')" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# One possible ancestor chain\n", "model.kv.ancestors('dog.n.01')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Note that the chains are not symmetric - while descending to the closest child recursively, starting with `mammal`, the closest child of `carnivore` is `dog`, however, while ascending from `dog` to the closest parent, the closest parent to `dog` is `canine`. " ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "This is despite the fact that Poincaré distance is symmetric (like any distance in a metric space). The asymmetry stems from the fact that even if node `Y` is the closest node to node `X` amongst all nodes with a higher norm (lower in the hierarchy) than `X`, node `X` may not be the closest node to node `Y` amongst all the nodes with a lower norm (higher in the hierarchy) than `Y`." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## 4. Useful Links" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "1. [Original paper by Facebook AI Research](https://arxiv.org/pdf/1705.08039)\n", "2. [Blog post describing technical challenges in implementation](https://rare-technologies.com/implementing-poincare-embeddings)\n", "3. [Detailed evaluation notebook to reproduce results](https://github.com/RaRe-Technologies/gensim/blob/develop/docs/notebooks/Poincare%20Evaluation.ipynb)" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.7.1" } }, "nbformat": 4, "nbformat_minor": 2 }
28,599
Python
.py
562
46.371886
1,631
0.67511
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,939
wikinews-bigram-en.ipynb
piskvorky_gensim/docs/notebooks/wikinews-bigram-en.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Illustrating common terms usage using Wikinews in english" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## getting data\n", "\n", "We get the cirrussearch dump of wikinews (a dump meant for elastic-search indexation)." ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "LANG=\"english\"" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "--2019-05-12 19:33:27-- https://dumps.wikimedia.org/other/cirrussearch/20170327/enwikinews-20170327-cirrussearch-content.json.gz\n", "Resolving dumps.wikimedia.org (dumps.wikimedia.org)... 2620:0:861:4:208:80:155:106, 208.80.155.106\n", "Connecting to dumps.wikimedia.org (dumps.wikimedia.org)|2620:0:861:4:208:80:155:106|:443... connected.\n", "HTTP request sent, awaiting response... 404 Not Found\n", "2019-05-12 19:33:28 ERROR 404: Not Found.\n", "\n" ] }, { "ename": "CalledProcessError", "evalue": "Command 'b'\\nfdate=20170327\\nfname=enwikinews-$fdate-cirrussearch-content.json.gz\\nif [ ! -e $fname ]\\nthen\\n wget \"https://dumps.wikimedia.org/other/cirrussearch/$fdate/$fname\"\\nfi\\n'' returned non-zero exit status 8.", "output_type": "error", "traceback": [ "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", "\u001b[0;31mCalledProcessError\u001b[0m Traceback (most recent call last)", "\u001b[0;32m<ipython-input-2-fd54bac10b20>\u001b[0m in \u001b[0;36m<module>\u001b[0;34m\u001b[0m\n\u001b[0;32m----> 1\u001b[0;31m \u001b[0mget_ipython\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mrun_cell_magic\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m'bash'\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m''\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m'\\nfdate=20170327\\nfname=enwikinews-$fdate-cirrussearch-content.json.gz\\nif [ ! -e $fname ]\\nthen\\n wget \"https://dumps.wikimedia.org/other/cirrussearch/$fdate/$fname\"\\nfi\\n'\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m", "\u001b[0;32m~/envs/gensim/lib/python3.7/site-packages/IPython/core/interactiveshell.py\u001b[0m in \u001b[0;36mrun_cell_magic\u001b[0;34m(self, magic_name, line, cell)\u001b[0m\n\u001b[1;32m 2321\u001b[0m \u001b[0mmagic_arg_s\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mvar_expand\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mline\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mstack_depth\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 2322\u001b[0m \u001b[0;32mwith\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mbuiltin_trap\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m-> 2323\u001b[0;31m \u001b[0mresult\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mfn\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mmagic_arg_s\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mcell\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 2324\u001b[0m \u001b[0;32mreturn\u001b[0m \u001b[0mresult\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 2325\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n", "\u001b[0;32m~/envs/gensim/lib/python3.7/site-packages/IPython/core/magics/script.py\u001b[0m in \u001b[0;36mnamed_script_magic\u001b[0;34m(line, cell)\u001b[0m\n\u001b[1;32m 140\u001b[0m \u001b[0;32melse\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 141\u001b[0m \u001b[0mline\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mscript\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 142\u001b[0;31m \u001b[0;32mreturn\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mshebang\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mline\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mcell\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 143\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 144\u001b[0m \u001b[0;31m# write a basic docstring:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", "\u001b[0;32m<decorator-gen-109>\u001b[0m in \u001b[0;36mshebang\u001b[0;34m(self, line, cell)\u001b[0m\n", "\u001b[0;32m~/envs/gensim/lib/python3.7/site-packages/IPython/core/magic.py\u001b[0m in \u001b[0;36m<lambda>\u001b[0;34m(f, *a, **k)\u001b[0m\n\u001b[1;32m 185\u001b[0m \u001b[0;31m# but it's overkill for just that one bit of state.\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 186\u001b[0m \u001b[0;32mdef\u001b[0m \u001b[0mmagic_deco\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0marg\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 187\u001b[0;31m \u001b[0mcall\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;32mlambda\u001b[0m \u001b[0mf\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m*\u001b[0m\u001b[0ma\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m**\u001b[0m\u001b[0mk\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0mf\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m*\u001b[0m\u001b[0ma\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m**\u001b[0m\u001b[0mk\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 188\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 189\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0mcallable\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0marg\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", "\u001b[0;32m~/envs/gensim/lib/python3.7/site-packages/IPython/core/magics/script.py\u001b[0m in \u001b[0;36mshebang\u001b[0;34m(self, line, cell)\u001b[0m\n\u001b[1;32m 243\u001b[0m \u001b[0msys\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mstderr\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mflush\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 244\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0margs\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mraise_error\u001b[0m \u001b[0;32mand\u001b[0m \u001b[0mp\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mreturncode\u001b[0m\u001b[0;34m!=\u001b[0m\u001b[0;36m0\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 245\u001b[0;31m \u001b[0;32mraise\u001b[0m \u001b[0mCalledProcessError\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mp\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mreturncode\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mcell\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0moutput\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mout\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mstderr\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0merr\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 246\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 247\u001b[0m \u001b[0;32mdef\u001b[0m \u001b[0m_run_script\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mp\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mcell\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mto_close\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", "\u001b[0;31mCalledProcessError\u001b[0m: Command 'b'\\nfdate=20170327\\nfname=enwikinews-$fdate-cirrussearch-content.json.gz\\nif [ ! -e $fname ]\\nthen\\n wget \"https://dumps.wikimedia.org/other/cirrussearch/$fdate/$fname\"\\nfi\\n'' returned non-zero exit status 8." ] } ], "source": [ "%%bash\n", "\n", "fdate=20170327\n", "fname=enwikinews-$fdate-cirrussearch-content.json.gz\n", "if [ ! -e $fname ]\n", "then\n", " wget \"https://dumps.wikimedia.org/other/cirrussearch/$fdate/$fname\"\n", "fi\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# iterator\n", "import gzip\n", "import json\n", "\n", "FDATE = 20170327\n", "FNAME = \"enwikinews-%s-cirrussearch-content.json.gz\" % FDATE\n", "\n", "def iter_texts(fpath=FNAME):\n", " with gzip.open(fpath, \"rt\") as f:\n", " for l in f:\n", " data = json.loads(l)\n", " if \"title\" in data:\n", " yield data[\"title\"]\n", " yield data[\"text\"]" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# also prepare nltk\n", "import nltk\n", "nltk.download(\"punkt\")\n", "nltk.download(\"stopwords\")" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Preparing data\n", "\n", "we arrange the corpus as required by gensim" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# make a custom tokenizer\n", "import re\n", "from nltk.tokenize import sent_tokenize\n", "from nltk.tokenize import RegexpTokenizer\n", "tokenizer = RegexpTokenizer('\\w[\\w-]*|\\d[\\d,]*')" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# prepare a text\n", "def prepare(txt):\n", " # lower case\n", " txt = txt.lower()\n", " return [tokenizer.tokenize(sent) \n", " for sent in sent_tokenize(txt, language=LANG)]" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# we put all data in ram, it's not so much\n", "corpus = []\n", "for txt in iter_texts():\n", " corpus.extend(prepare(txt))" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# how many sentences and words ?\n", "words_count = sum(len(s) for s in corpus)\n", "print(\"Corpus has %d words in %d sentences\" % (words_count, len(corpus)))" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Testing bigram with and without common terms\n", "\n", "The `Phrases` model gives us the possiblity of handling common terms, that is words that appears much time in a text and are there only to link objects between them.\n", "While you could remove them, you may information, for *\"the president is in america\"* is not the same as *\"the president of america\"*\n", "\n", "The common_terms parameter Phrases can help you deal with them in a smarter way, keeping them around but avoiding them to crush frequency statistics." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "from gensim.models.phrases import Phrases" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "scrolled": true }, "outputs": [], "source": [ "# which are the stop words we will use\n", "from nltk.corpus import stopwords\n", "\" \".join(stopwords.words(LANG))" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# a version of corups without stop words\n", "stop_words = frozenset(stopwords.words(LANG))\n", "def stopwords_filter(txt):\n", " return [w for w in txt if w not in stop_words]\n", "st_corpus = [stopwords_filter(txt) for txt in corpus]" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# bigram std\n", "%time bigram = Phrases(st_corpus)\n", "# bigram with common terms\n", "%time bigram_ct = Phrases(corpus, common_terms=stopwords.words(LANG))" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### bigram with common terms inside\n", "\n", "What are (some of) the bigram founds thanks to common terms" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# grams that have more than 2 terms, are those with common terms\n", "ct_ngrams = set((g[1], g[0].decode(\"utf-8\"))\n", " for g in bigram_ct.export_phrases(corpus) \n", " if len(g[0].split()) > 2)\n", "ct_ngrams = sorted(list(ct_ngrams))\n", "print(len(ct_ngrams), \"grams with common terms found\")\n", "# highest scores\n", "ct_ngrams[-20:]" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# did we found any bigram with same words but different stopwords\n", "import collections\n", "by_terms = collections.defaultdict(set)\n", "for ngram, score in bigram_ct.export_phrases(corpus):\n", " grams = ngram.split()\n", " by_terms[(grams[0], grams[-1])].add(ngram)\n", "for k, v in by_terms.items():\n", " if len(v) > 1:\n", " print(b\"-\".join(k).decode(\"utf-8\"),\" : \", [w.decode(\"utf-8\") for w in v])\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.7.1" } }, "nbformat": 4, "nbformat_minor": 2 }
14,227
Python
.py
296
43.72973
1,696
0.631685
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,940
Word2Vec_FastText_Comparison.ipynb
piskvorky_gensim/docs/notebooks/Word2Vec_FastText_Comparison.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Comparison of FastText and Word2Vec " ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Facebook Research open sourced a great project recently - [fastText](https://github.com/facebookresearch/fastText), a fast (no surprise) and effective method to learn word representations and perform text classification. I was curious about comparing these embeddings to other commonly used embeddings, so word2vec seemed like the obvious choice, especially considering fastText embeddings are an extension of word2vec. \n", "\n", "I've used gensim to train the word2vec models, and the analogical reasoning task (described in Section 4.1 of [[2]](https://arxiv.org/pdf/1301.3781v3.pdf)) for comparing the word2vec and fastText models. I've compared embeddings trained using the skipgram architecture." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Download data" ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "[nltk_data] Downloading package brown to /home/misha/nltk_data...\n", "[nltk_data] Package brown is already up-to-date!\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ "--2019-05-12 19:40:14-- https://mattmahoney.net/dc/enwik9.zip\n", "Resolving mattmahoney.net (mattmahoney.net)... 67.195.197.75\n", "Connecting to mattmahoney.net (mattmahoney.net)|67.195.197.75|:80... connected.\n", "HTTP request sent, awaiting response... 200 OK\n", "Length: 322592222 (308M) [application/zip]\n", "Saving to: ‘enwik9.zip’\n", "\n", "enwik9.zip 47%[========> ] 145.49M 218KB/s in 10m 2s \n", "\n", "2019-05-12 19:50:17 (247 KB/s) - Connection closed at byte 152553031. Retrying.\n", "\n", "--2019-05-12 19:50:18-- (try: 2) https://mattmahoney.net/dc/enwik9.zip\n", "Connecting to mattmahoney.net (mattmahoney.net)|67.195.197.75|:80... connected.\n", "HTTP request sent, awaiting response... 206 Partial Content\n", "Length: 322592222 (308M), 170039191 (162M) remaining [application/zip]\n", "Saving to: ‘enwik9.zip’\n", "\n", "enwik9.zip 100%[+++++++++==========>] 307.65M 344KB/s in 8m 38s \n", "\n", "2019-05-12 19:58:57 (320 KB/s) - ‘enwik9.zip’ saved [322592222/322592222]\n", "\n", "Archive: enwik9.zip\n", " inflating: enwik9 \n", "Can't open perl script \"fastText/wikifil.pl\": No such file or directory\n" ] } ], "source": [ "import nltk\n", "from smart_open import smart_open\n", "nltk.download('brown') \n", "# Only the brown corpus is needed in case you don't have it.\n", "\n", "# Generate brown corpus text file\n", "with smart_open('brown_corp.txt', 'w+') as f:\n", " for word in nltk.corpus.brown.words():\n", " f.write('{word} '.format(word=word))\n", "\n", "# Make sure you set FT_HOME to your fastText directory root\n", "FT_HOME = 'fastText/'\n", "# download the text8 corpus (a 100 MB sample of cleaned wikipedia text)\n", "import os.path\n", "if not os.path.isfile('text8'):\n", " !wget -c https://mattmahoney.net/dc/text8.zip\n", " !unzip text8.zip\n", "# download and preprocess the text9 corpus\n", "if not os.path.isfile('text9'):\n", " !wget -c https://mattmahoney.net/dc/enwik9.zip\n", " !unzip enwik9.zip\n", " !perl {FT_HOME}wikifil.pl enwik9 > text9" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Train models" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "For training the models yourself, you'll need to have both [Gensim](https://github.com/RaRe-Technologies/gensim) and [FastText](https://github.com/facebookresearch/fastText) set up on your machine." ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Training fasttext on brown_corp.txt corpus..\n", "/bin/sh: 1: fastText/fasttext: not found\n", "CPU times: user 6.02 ms, sys: 314 µs, total: 6.33 ms\n", "Wall time: 109 ms\n", "\n", "Training fasttext on brown_corp.txt corpus (without char n-grams)..\n", "/bin/sh: 1: fastText/fasttext: not found\n", "CPU times: user 2.12 ms, sys: 12.9 ms, total: 15 ms\n", "Wall time: 124 ms\n", "\n", "Training word2vec on brown_corp.txt corpus..\n", "CPU times: user 19.2 s, sys: 0 ns, total: 19.2 s\n", "Wall time: 6.71 s\n", "\n", "Saved gensim model as brown_gs.vec\n" ] } ], "source": [ "MODELS_DIR = 'models/'\n", "!mkdir -p {MODELS_DIR}\n", "\n", "lr = 0.05\n", "dim = 100\n", "ws = 5\n", "epoch = 5\n", "minCount = 5\n", "neg = 5\n", "loss = 'ns'\n", "t = 1e-4\n", "\n", "from gensim.models import Word2Vec, KeyedVectors\n", "from gensim.models.word2vec import Text8Corpus\n", "\n", "# Same values as used for fastText training above\n", "params = {\n", " 'alpha': lr,\n", " 'size': dim,\n", " 'window': ws,\n", " 'iter': epoch,\n", " 'min_count': minCount,\n", " 'sample': t,\n", " 'sg': 1,\n", " 'hs': 0,\n", " 'negative': neg\n", "}\n", "\n", "def train_models(corpus_file, output_name):\n", " output_file = '{:s}_ft'.format(output_name)\n", " if not os.path.isfile(os.path.join(MODELS_DIR, '{:s}.vec'.format(output_file))):\n", " print('Training fasttext on {:s} corpus..'.format(corpus_file))\n", " %time !{FT_HOME}fasttext skipgram -input {corpus_file} -output {MODELS_DIR+output_file} -lr {lr} -dim {dim} -ws {ws} -epoch {epoch} -minCount {minCount} -neg {neg} -loss {loss} -t {t}\n", " else:\n", " print('\\nUsing existing model file {:s}.vec'.format(output_file))\n", " \n", " output_file = '{:s}_ft_no_ng'.format(output_name)\n", " if not os.path.isfile(os.path.join(MODELS_DIR, '{:s}.vec'.format(output_file))):\n", " print('\\nTraining fasttext on {:s} corpus (without char n-grams)..'.format(corpus_file))\n", " %time !{FT_HOME}fasttext skipgram -input {corpus_file} -output {MODELS_DIR+output_file} -lr {lr} -dim {dim} -ws {ws} -epoch {epoch} -minCount {minCount} -neg {neg} -loss {loss} -t {t} -maxn 0\n", " else:\n", " print('\\nUsing existing model file {:s}.vec'.format(output_file))\n", " \n", " output_file = '{:s}_gs'.format(output_name)\n", " if not os.path.isfile(os.path.join(MODELS_DIR, '{:s}.vec'.format(output_file))):\n", " print('\\nTraining word2vec on {:s} corpus..'.format(corpus_file))\n", " \n", " # Text8Corpus class for reading space-separated words file\n", " %time gs_model = Word2Vec(Text8Corpus(corpus_file), **params); gs_model\n", " # Direct local variable lookup doesn't work properly with magic statements (%time)\n", " locals()['gs_model'].wv.save_word2vec_format(os.path.join(MODELS_DIR, '{:s}.vec'.format(output_file)))\n", " print('\\nSaved gensim model as {:s}.vec'.format(output_file))\n", " else:\n", " print('\\nUsing existing model file {:s}.vec'.format(output_file))\n", "\n", "evaluation_data = {}\n", "train_models('brown_corp.txt', 'brown')" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Training fasttext on text8 corpus..\n", "/bin/sh: 1: fastText/fasttext: not found\n", "CPU times: user 7.37 ms, sys: 0 ns, total: 7.37 ms\n", "Wall time: 109 ms\n", "\n", "Training fasttext on text8 corpus (without char n-grams)..\n", "/bin/sh: 1: fastText/fasttext: not found\n", "CPU times: user 12.3 ms, sys: 0 ns, total: 12.3 ms\n", "Wall time: 115 ms\n", "\n", "Training word2vec on text8 corpus..\n", "CPU times: user 7min 12s, sys: 0 ns, total: 7min 12s\n", "Wall time: 2min 26s\n", "\n", "Saved gensim model as text8_gs.vec\n" ] } ], "source": [ "train_models(corpus_file='text8', output_name='text8')" ] }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Training fasttext on text9 corpus..\n", "/bin/sh: 1: fastText/fasttext: not found\n", "CPU times: user 8.81 ms, sys: 0 ns, total: 8.81 ms\n", "Wall time: 111 ms\n", "\n", "Training fasttext on text9 corpus (without char n-grams)..\n", "/bin/sh: 1: fastText/fasttext: not found\n", "CPU times: user 10.7 ms, sys: 0 ns, total: 10.7 ms\n", "Wall time: 115 ms\n", "\n", "Training word2vec on text9 corpus..\n" ] }, { "ename": "RuntimeError", "evalue": "you must first build vocabulary before training the model", "output_type": "error", "traceback": [ "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", "\u001b[0;31mRuntimeError\u001b[0m Traceback (most recent call last)", "\u001b[0;32m<timed exec>\u001b[0m in \u001b[0;36m<module>\u001b[0;34m\u001b[0m\n", "\u001b[0;32m~/git/gensim/gensim/models/word2vec.py\u001b[0m in \u001b[0;36m__init__\u001b[0;34m(self, sentences, corpus_file, size, alpha, window, min_count, max_vocab_size, sample, seed, workers, min_alpha, sg, hs, negative, ns_exponent, cbow_mean, hashfxn, iter, null_word, trim_rule, sorted_vocab, batch_words, compute_loss, callbacks, max_final_vocab)\u001b[0m\n\u001b[1;32m 781\u001b[0m \u001b[0mcallbacks\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mcallbacks\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mbatch_words\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mbatch_words\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mtrim_rule\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mtrim_rule\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0msg\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0msg\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0malpha\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0malpha\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mwindow\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mwindow\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 782\u001b[0m \u001b[0mseed\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mseed\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mhs\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mhs\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mnegative\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mnegative\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mcbow_mean\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mcbow_mean\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mmin_alpha\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mmin_alpha\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mcompute_loss\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mcompute_loss\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 783\u001b[0;31m fast_version=FAST_VERSION)\n\u001b[0m\u001b[1;32m 784\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 785\u001b[0m def _do_train_epoch(self, corpus_file, thread_id, offset, cython_vocab, thread_private_mem, cur_epoch,\n", "\u001b[0;32m~/git/gensim/gensim/models/base_any2vec.py\u001b[0m in \u001b[0;36m__init__\u001b[0;34m(self, sentences, corpus_file, workers, vector_size, epochs, callbacks, batch_words, trim_rule, sg, alpha, window, seed, hs, negative, ns_exponent, cbow_mean, min_alpha, compute_loss, fast_version, **kwargs)\u001b[0m\n\u001b[1;32m 761\u001b[0m \u001b[0msentences\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0msentences\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mcorpus_file\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mcorpus_file\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mtotal_examples\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mcorpus_count\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 762\u001b[0m \u001b[0mtotal_words\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mcorpus_total_words\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mepochs\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mepochs\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mstart_alpha\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0malpha\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 763\u001b[0;31m end_alpha=self.min_alpha, compute_loss=compute_loss)\n\u001b[0m\u001b[1;32m 764\u001b[0m \u001b[0;32melse\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 765\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0mtrim_rule\u001b[0m \u001b[0;32mis\u001b[0m \u001b[0;32mnot\u001b[0m \u001b[0;32mNone\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", "\u001b[0;32m~/git/gensim/gensim/models/word2vec.py\u001b[0m in \u001b[0;36mtrain\u001b[0;34m(self, sentences, corpus_file, total_examples, total_words, epochs, start_alpha, end_alpha, word_count, queue_factor, report_delay, compute_loss, callbacks)\u001b[0m\n\u001b[1;32m 908\u001b[0m \u001b[0msentences\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0msentences\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mcorpus_file\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mcorpus_file\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mtotal_examples\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mtotal_examples\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mtotal_words\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mtotal_words\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 909\u001b[0m \u001b[0mepochs\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mepochs\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mstart_alpha\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mstart_alpha\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mend_alpha\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mend_alpha\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mword_count\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mword_count\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 910\u001b[0;31m queue_factor=queue_factor, report_delay=report_delay, compute_loss=compute_loss, callbacks=callbacks)\n\u001b[0m\u001b[1;32m 911\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 912\u001b[0m \u001b[0;32mdef\u001b[0m \u001b[0mscore\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0msentences\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mtotal_sentences\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mint\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;36m1e6\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mchunksize\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;36m100\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mqueue_factor\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;36m2\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mreport_delay\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;36m1\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", "\u001b[0;32m~/git/gensim/gensim/models/base_any2vec.py\u001b[0m in \u001b[0;36mtrain\u001b[0;34m(self, sentences, corpus_file, total_examples, total_words, epochs, start_alpha, end_alpha, word_count, queue_factor, report_delay, compute_loss, callbacks, **kwargs)\u001b[0m\n\u001b[1;32m 1079\u001b[0m \u001b[0mtotal_words\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mtotal_words\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mepochs\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mepochs\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mstart_alpha\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mstart_alpha\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mend_alpha\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mend_alpha\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mword_count\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mword_count\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1080\u001b[0m \u001b[0mqueue_factor\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mqueue_factor\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mreport_delay\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mreport_delay\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mcompute_loss\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mcompute_loss\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mcallbacks\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mcallbacks\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m-> 1081\u001b[0;31m **kwargs)\n\u001b[0m\u001b[1;32m 1082\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1083\u001b[0m \u001b[0;32mdef\u001b[0m \u001b[0m_get_job_params\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mcur_epoch\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", "\u001b[0;32m~/git/gensim/gensim/models/base_any2vec.py\u001b[0m in \u001b[0;36mtrain\u001b[0;34m(self, data_iterable, corpus_file, epochs, total_examples, total_words, queue_factor, report_delay, callbacks, **kwargs)\u001b[0m\n\u001b[1;32m 534\u001b[0m \u001b[0mepochs\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mepochs\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 535\u001b[0m \u001b[0mtotal_examples\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mtotal_examples\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 536\u001b[0;31m total_words=total_words, **kwargs)\n\u001b[0m\u001b[1;32m 537\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 538\u001b[0m \u001b[0;32mfor\u001b[0m \u001b[0mcallback\u001b[0m \u001b[0;32min\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mcallbacks\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", "\u001b[0;32m~/git/gensim/gensim/models/base_any2vec.py\u001b[0m in \u001b[0;36m_check_training_sanity\u001b[0;34m(self, epochs, total_examples, total_words, **kwargs)\u001b[0m\n\u001b[1;32m 1185\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1186\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0;32mnot\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mwv\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mvocab\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0;31m# should be set by `build_vocab`\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m-> 1187\u001b[0;31m \u001b[0;32mraise\u001b[0m \u001b[0mRuntimeError\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m\"you must first build vocabulary before training the model\"\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 1188\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0;32mnot\u001b[0m \u001b[0mlen\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mwv\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mvectors\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1189\u001b[0m \u001b[0;32mraise\u001b[0m \u001b[0mRuntimeError\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m\"you must initialize vectors before training the model\"\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", "\u001b[0;31mRuntimeError\u001b[0m: you must first build vocabulary before training the model" ] }, { "ename": "KeyError", "evalue": "'gs_model'", "output_type": "error", "traceback": [ "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", "\u001b[0;31mKeyError\u001b[0m Traceback (most recent call last)", "\u001b[0;32m<ipython-input-4-ff23d154d505>\u001b[0m in \u001b[0;36m<module>\u001b[0;34m\u001b[0m\n\u001b[0;32m----> 1\u001b[0;31m \u001b[0mtrain_models\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mcorpus_file\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;34m'text9'\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0moutput_name\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;34m'text9'\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m", "\u001b[0;32m<ipython-input-2-5d45cca4dc08>\u001b[0m in \u001b[0;36mtrain_models\u001b[0;34m(corpus_file, output_name)\u001b[0m\n\u001b[1;32m 49\u001b[0m \u001b[0mget_ipython\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mrun_line_magic\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m'time'\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m'gs_model = Word2Vec(Text8Corpus(corpus_file), **params); gs_model'\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 50\u001b[0m \u001b[0;31m# Direct local variable lookup doesn't work properly with magic statements (%time)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 51\u001b[0;31m \u001b[0mlocals\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;34m'gs_model'\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mwv\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0msave_word2vec_format\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mos\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mpath\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mjoin\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mMODELS_DIR\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m'{:s}.vec'\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mformat\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0moutput_file\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 52\u001b[0m \u001b[0mprint\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m'\\nSaved gensim model as {:s}.vec'\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mformat\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0moutput_file\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 53\u001b[0m \u001b[0;32melse\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", "\u001b[0;31mKeyError\u001b[0m: 'gs_model'" ] } ], "source": [ "train_models(corpus_file='text9', output_name='text9')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Comparisons" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# download the file questions-words.txt to be used for comparing word embeddings\n", "!wget https://raw.githubusercontent.com/tmikolov/word2vec/master/questions-words.txt" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Once you have downloaded or trained the models and downloaded `questions-words.txt`, you're ready to run the comparison." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "import logging\n", "logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO)\n", "\n", "# Training times in seconds\n", "evaluation_data['brown'] = [(18, 54.3, 32.5)]\n", "evaluation_data['text8'] = [(402, 942, 496)]\n", "evaluation_data['text9'] = [(3218, 6589, 3550)]\n", "\n", "def print_accuracy(model, questions_file):\n", " print('Evaluating...\\n')\n", " acc = model.accuracy(questions_file)\n", "\n", " sem_correct = sum((len(acc[i]['correct']) for i in range(5)))\n", " sem_total = sum((len(acc[i]['correct']) + len(acc[i]['incorrect'])) for i in range(5))\n", " sem_acc = 100*float(sem_correct)/sem_total\n", " print('\\nSemantic: {:d}/{:d}, Accuracy: {:.2f}%'.format(sem_correct, sem_total, sem_acc))\n", " \n", " syn_correct = sum((len(acc[i]['correct']) for i in range(5, len(acc)-1)))\n", " syn_total = sum((len(acc[i]['correct']) + len(acc[i]['incorrect'])) for i in range(5,len(acc)-1))\n", " syn_acc = 100*float(syn_correct)/syn_total\n", " print('Syntactic: {:d}/{:d}, Accuracy: {:.2f}%\\n'.format(syn_correct, syn_total, syn_acc))\n", " return (sem_acc, syn_acc)\n", "\n", "word_analogies_file = 'questions-words.txt'\n", "accuracies = []\n", "print('\\nLoading Gensim embeddings')\n", "brown_gs = KeyedVectors.load_word2vec_format(MODELS_DIR + 'brown_gs.vec')\n", "print('Accuracy for Word2Vec:')\n", "accuracies.append(print_accuracy(brown_gs, word_analogies_file))\n", "\n", "print('\\nLoading FastText embeddings')\n", "brown_ft = KeyedVectors.load_word2vec_format(MODELS_DIR + 'brown_ft.vec')\n", "print('Accuracy for FastText (with n-grams):')\n", "accuracies.append(print_accuracy(brown_ft, word_analogies_file))" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The `accuracy` takes an optional parameter `restrict_vocab`, which limits the vocabulary of model considered for fast approximate evaluation (default is 30000).\n", "\n", "Word2Vec embeddings seem to be slightly better than fastText embeddings at the semantic tasks, while the fastText embeddings do significantly better on the syntactic analogies. Makes sense, since fastText embeddings are trained for understanding morphological nuances, and most of the syntactic analogies are morphology based. \n", "\n", "Let me explain that better.\n", "\n", "According to the paper [[1]](https://arxiv.org/abs/1607.04606), embeddings for words are represented by the sum of their n-gram embeddings. This is meant to be useful for morphologically rich languages - so theoretically, the embedding for `apparently` would include information from both character n-grams `apparent` and `ly` (as well as other n-grams), and the n-grams would combine in a simple, linear manner. This is very similar to what most of our syntactic tasks look like.\n", "\n", "Example analogy:\n", "\n", "`amazing amazingly calm calmly`\n", "\n", "This analogy is marked correct if: \n", "\n", "`embedding(amazing)` - `embedding(amazingly)` = `embedding(calm)` - `embedding(calmly)`\n", "\n", "Both these subtractions would result in a very similar set of remaining ngrams.\n", "No surprise the fastText embeddings do extremely well on this.\n", "\n", "Let's do a small test to validate this hypothesis - fastText differs from word2vec only in that it uses char n-gram embeddings as well as the actual word embedding in the scoring function to calculate scores and then likelihoods for each word, given a context word. In case char n-gram embeddings are not present, this reduces (at least theoretically) to the original word2vec model. This can be implemented by setting 0 for the max length of char n-grams for fastText.\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "print('Loading FastText embeddings')\n", "brown_ft_no_ng = KeyedVectors.load_word2vec_format(MODELS_DIR + 'brown_ft_no_ng.vec')\n", "print('Accuracy for FastText (without n-grams):')\n", "accuracies.append(print_accuracy(brown_ft_no_ng, word_analogies_file))\n", "evaluation_data['brown'] += [[acc[0] for acc in accuracies], [acc[1] for acc in accuracies]]" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "A-ha! The results for FastText with no n-grams and Word2Vec look a lot more similar (as they should) - the differences could easily result from differences in implementation between fastText and Gensim, and randomization. Especially telling is that the semantic accuracy for FastText has improved slightly after removing n-grams, while the syntactic accuracy has taken a giant dive. Our hypothesis that the char n-grams result in better performance on syntactic analogies seems fair. It also seems possible that char n-grams hurt semantic accuracy a little. However, the brown corpus is too small to be able to draw any definite conclusions - the accuracies seem to vary significantly over different runs." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Let's try with a larger corpus now - text8 (collection of wiki articles). I'm also curious about the impact on semantic accuracy - for models trained on the brown corpus, the difference in the semantic accuracy and the accuracy values themselves are too small to be conclusive. Hopefully a larger corpus helps, and the text8 corpus likely has a lot more information about capitals, currencies, cities etc, which should be relevant to the semantic tasks." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "accuracies = []\n", "print('Loading Gensim embeddings')\n", "text8_gs = KeyedVectors.load_word2vec_format(MODELS_DIR + 'text8_gs.vec')\n", "print('Accuracy for word2vec:')\n", "accuracies.append(print_accuracy(text8_gs, word_analogies_file))\n", "\n", "print('Loading FastText embeddings (with n-grams)')\n", "text8_ft = KeyedVectors.load_word2vec_format(MODELS_DIR + 'text8_ft.vec')\n", "print('Accuracy for FastText (with n-grams):')\n", "accuracies.append(print_accuracy(text8_ft, word_analogies_file))\n", "\n", "print('Loading FastText embeddings')\n", "text8_ft_no_ng = KeyedVectors.load_word2vec_format(MODELS_DIR + 'text8_ft_no_ng.vec')\n", "print('Accuracy for FastText (without n-grams):')\n", "accuracies.append(print_accuracy(text8_ft_no_ng, word_analogies_file))\n", "\n", "evaluation_data['text8'] += [[acc[0] for acc in accuracies], [acc[1] for acc in accuracies]]" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "With the text8 corpus, we observe a similar pattern. Semantic accuracy falls by a small but significant amount when n-grams are included in FastText, while FastText with n-grams performs far better on the syntactic analogies. FastText without n-grams are largely similar to Word2Vec.\n", "\n", "My hypothesis for semantic accuracy being lower for the FastText-with-ngrams model is that most of the words in the semantic analogies are standalone words and are unrelated to their morphemes (eg: father, mother, France, Paris), hence inclusion of the char n-grams into the scoring function actually makes the embeddings worse.\n", "\n", "This trend is observed in the original paper too where the performance of embeddings with n-grams is worse on semantic tasks than both word2vec cbow and skipgram models.\n", "\n", "Let's do a quick comparison on an even larger corpus - text9 " ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "accuracies = []\n", "print('Loading Gensim embeddings')\n", "text9_gs = KeyedVectors.load_word2vec_format(MODELS_DIR + 'text9_gs.vec')\n", "print('Accuracy for word2vec:')\n", "accuracies.append(print_accuracy(text9_gs, word_analogies_file))\n", "\n", "print('Loading FastText embeddings (with n-grams)')\n", "text9_ft = KeyedVectors.load_word2vec_format(MODELS_DIR + 'text9_ft.vec')\n", "print('Accuracy for FastText (with n-grams):')\n", "accuracies.append(print_accuracy(text9_ft, word_analogies_file))\n", "\n", "print('Loading FastText embeddings')\n", "text9_ft_no_ng = KeyedVectors.load_word2vec_format(MODELS_DIR + 'text9_ft_no_ng.vec')\n", "print('Accuracy for FastText (without n-grams):')\n", "accuracies.append(print_accuracy(text9_ft_no_ng, word_analogies_file))\n", "\n", "evaluation_data['text9'] += [[acc[0] for acc in accuracies], [acc[1] for acc in accuracies]]" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "%matplotlib inline\n", "import matplotlib.pyplot as plt\n", "\n", "def plot(ax, data, corpus_name='brown'):\n", " width = 0.25\n", " pos = [(i, i + width, i + 2*width) for i in range(len(data))]\n", " colors = ['#EE3224', '#F78F1E', '#FFC222']\n", " acc_ax = ax.twinx()\n", " # Training time\n", " ax.bar(pos[0],\n", " data[0],\n", " width,\n", " alpha=0.5,\n", " color=colors\n", " )\n", " # Semantic accuracy\n", " acc_ax.bar(pos[1],\n", " data[1],\n", " width,\n", " alpha=0.5,\n", " color=colors\n", " )\n", "\n", " # Syntactic accuracy\n", " acc_ax.bar(pos[2],\n", " data[2],\n", " width,\n", " alpha=0.5,\n", " color=colors\n", " )\n", "\n", " ax.set_ylabel('Training time (s)')\n", " acc_ax.set_ylabel('Accuracy (%)')\n", " ax.set_title(corpus_name)\n", "\n", " acc_ax.set_xticks([p[0] + 1.5 * width for p in pos])\n", " acc_ax.set_xticklabels(['Training Time', 'Semantic Accuracy', 'Syntactic Accuracy'])\n", "\n", " # Proxy plots for adding legend correctly\n", " proxies = [ax.bar([0], [0], width=0, color=c, alpha=0.5)[0] for c in colors]\n", " models = ('Gensim', 'FastText', 'FastText (no-ngrams)')\n", " ax.legend((proxies), models, loc='upper left')\n", " \n", " ax.set_xlim(pos[0][0]-width, pos[-1][0]+width*4)\n", " ax.set_ylim([0, max(data[0])*1.1] )\n", " acc_ax.set_ylim([0, max(data[1] + data[2])*1.1] )\n", "\n", " plt.grid()\n", "\n", "# Plotting the bars\n", "fig = plt.figure(figsize=(10,15))\n", "for corpus, subplot in zip(sorted(evaluation_data.keys()), [311, 312, 313]):\n", " ax = fig.add_subplot(subplot)\n", " plot(ax, evaluation_data[corpus], corpus)\n", "\n", "plt.show()" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The results from text9 seem to confirm our hypotheses so far. Briefly summarising the main points -\n", "\n", "1. FastText models with n-grams do significantly better on syntactic tasks, because of the syntactic questions being related to morphology of the words\n", "2. Both Gensim word2vec and the fastText model with no n-grams do slightly better on the semantic tasks, presumably because words from the semantic questions are standalone words and unrelated to their char n-grams\n", "3. In general, the performance of the models seems to get closer with the increasing corpus size. However, this might possibly be due to the size of the model staying constant at 100, and a larger model size for large corpora might result in higher performance gains.\n", "4. The semantic accuracy for all models increases significantly with the increase in corpus size.\n", "5. However, the increase in syntactic accuracy from the increase in corpus size for the n-gram FastText model is lower (in both relative and absolute terms). This could possibly indicate that advantages gained by incorporating morphological information could be less significant in case of larger corpus sizes (the corpuses used in the original paper seem to indicate this too)\n", "6. Training times for gensim are slightly lower than the fastText no-ngram model, and significantly lower than the n-gram variant. This is quite impressive considering fastText is implemented in C++ and Gensim in Python (with calls to low-level BLAS routines for much of the heavy lifting). You could read [this post](https://rare-technologies.com/word2vec-in-python-part-two-optimizing/) for more details regarding word2vec optimisation in Gensim. Note that these times include importing any dependencies and serializing the models to disk, and not just the training times." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Conclusions" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "These preliminary results seem to indicate fastText embeddings are significantly better than word2vec at encoding syntactic information. This is expected, since most syntactic analogies are morphology based, and the char n-gram approach of fastText takes such information into account. The original word2vec model seems to perform better on semantic tasks, since words in semantic analogies are unrelated to their char n-grams, and the added information from irrelevant char n-grams worsens the embeddings. It'd be interesting to see how transferable these embeddings are for different kinds of tasks by comparing their performance in a downstream supervised task." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# References" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "[1] [Enriching Word Vectors with Subword Information](https://arxiv.org/pdf/1607.04606v1.pdf)\n", "\n", "[2] [Efficient Estimation of Word Representations in Vector Space](https://arxiv.org/pdf/1301.3781v3.pdf)" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.7.1" } }, "nbformat": 4, "nbformat_minor": 1 }
38,456
Python
.py
595
59.74958
2,210
0.658608
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,941
ldaseqmodel.ipynb
piskvorky_gensim/docs/notebooks/ldaseqmodel.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "\n", "# Dynamic Topic Models Tutorial" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "\n", "### What is this tutorial about?\n", "This tutorial will exaplin what Dynamic Topic Models are, and how to use them using the LdaSeqModel class of gensim. I will start with some theory and already documented examples, before moving on to an example run of Dynamic Topic Model on a sample dataset. I will also do an comparison between the python code and the already present gensim wrapper, and illustrate how to easily visualise them and do topic coherence with DTM. Any suggestions to improve documentation or code through PRs/Issues is always appreciated!\n", "\n", "\n", "### Why Dynamic Topic Models?\n", "Imagine you have a gigantic corpus which spans over a couple of years. You want to find semantically similar documents; one from the very beginning of your time-line, and one in the very end. How would you?\n", "This is where Dynamic Topic Models comes in. By having a time-based element to topics, context is preserved while key-words may change.\n", "\n", "David Blei does a good job explaining the theory behind this in this [Google talk](https://www.youtube.com/watch?v=7BMsuyBPx90). If you prefer to directly read the [paper on DTM by Blei and Lafferty](http://repository.cmu.edu/cgi/viewcontent.cgi?article=2036&context=compsci), that should get you upto speed too.\n", "\n", "In his talk, Blei gives a very interesting example of the motivation to use DTM. After running DTM on a dataset of the Science Journal from 1880 onwards, he picks up [this](http://science.sciencemag.org/content/os-1/28/326) paper - The Brain of the Orang (1880). It's topics are concentrated on a topic which must be to do with Monkeys, and with Neuroscience or brains. \n", "<img src=\"Monkey Brains.png\" width=\"500\">\n", "\n", "\n", "He goes ahead to pick up another paper with likely very less common words, but in the same context - analysing monkey brains. In fact, this one is called - \"[Representation of the visual field on the medial wall of occipital-parietal cortex in the owl monkey](http://allmanlab.caltech.edu/PDFs/AllmanKaas1976.pdf)\". Quite the title, eh? Like mentioned before, you wouldn't imagine too many common words in these two papers, about a 100 years apart.\n", "<img src=\"Monkey Brains New.png\" witdth=\"400\">\n", "\n", "\n", "\n", "But a Hellinger Distance based Document-Topic distribution gives a very high similarity value! The same topics evolved smoothly over time and the context remains. A document similarity match using other traditional techniques might not work very well on this!\n", "Blei defines this technique as - \"Time corrected Document Similarity\".\n", "\n", "Another obviously useful analysis is to see how words in a topic change over time. The same broad classified topic starts looking more 'mature' as time goes on. This image illustrates an example from the same paper linked to above.\n", "\n", "<img src=\"Dynamic Topic Model.png\" width=\"800\">\n", "\n", "#### So, briefly put : \n", "\n", "Dynamic Topic Models are used to model the evolution of topics in a corpus, over time. The Dynamic Topic Model is part of a class of probabilistic topic models, like the LDA. \n", "\n", "While most traditional topic mining algorithms do not expect time-tagged data or take into account any prior ordering, Dynamic Topic Models (DTM) leverages the knowledge of different documents belonging to a different time-slice in an attempt to map how the words in a topic change over time.\n", "\n", "[This](https://rare-technologies.com/understanding-and-coding-dynamic-topic-models/) blog post is also useful in breaking down the ideas and theory behind DTM.\n", "\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Motivation to code this!" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "But - why even undertake this, especially when Gensim itself have a wrapper?\n", "The main motivation was the lack of documentation in the original code - and the fact that doing an only python version makes it easier to use gensim building blocks. For example, for setting up the Sufficient Statistics to initialize the DTM, you can just pass a pre-trained gensim LDA model!\n", "\n", "There is some clarity on how they built their code now - Variational Inference using Kalman Filters, as described in section 3 of the paper. The mathematical basis for the code is well described in the appendix of the paper. If the documentation is lacking or not clear, comments via Issues or PRs via the gensim repo would be useful in improving the quality.\n", "\n", "This project was part of the Google Summer of Code 2016 program: I have been regularly blogging about my progress with implementing this, which you can find [here](https://rare-technologies.com/author/bhargav/)." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Using LdaSeqModel for DTM" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Gensim already has a wrapper for original C++ DTM code, but the `LdaSeqModel` class is an effort to have a pure python implementation of the same.\n", "Using it is very similar to using any other gensim topic-modelling algorithm, with all you need to start is an iterable gensim corpus, id2word and a list with the number of documents in each of your time-slices." ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "# setting up our imports\n", "\n", "from gensim.models import ldaseqmodel\n", "from gensim.corpora import Dictionary, bleicorpus\n", "import numpy\n", "from gensim.matutils import hellinger" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "We will be loading the corpus and dictionary from disk. Here our corpus in the Blei corpus format, but it can be any iterable corpus.\n", "The data set here consists of news reports over 3 months (March, April, May) downloaded from [here](https://github.com/derekgreene/dynamic-nmf/tree/master/data) and cleaned.\n", "\n", "The files can also be found after processing in the `datasets` folder, but it would be a good exercise to download the files in the link and have a shot at cleaning and processing yourself. :)\n", "\n", "Note: the dataset is not cleaned and requires pre-processing. This means that some care must be taken to group the relevant docs together (the months are mentioned as per the folder name), after which it needs to be broken into tokens, and stop words must be removed. This is a link to some basic pre-processing for gensim - [link](https://radimrehurek.com/gensim/tut1.html#from-strings-to-vectors).\n", "\n", "### What is a time-slice?\n", "A very important input for DTM to work is the `time_slice` input. It should be a list which contains the number of documents in each time-slice. In our case, the first month had 438 articles, the second 430 and the last month had 456 articles. This means we'd need an input which looks like this: `time_slice = [438, 430, 456]`. \n", "Technically, a time-slice can be a month, year, or any way you wish to split up the number of documents in your corpus, time-based.\n", "\n", "Once you have your corpus, id2word and time_slice ready, we're good to go!" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [], "source": [ "# loading our corpus and dictionary\n", "try:\n", " dictionary = Dictionary.load('datasets/news_dictionary')\n", "except FileNotFoundError as e:\n", " raise ValueError(\"SKIP: Please download the Corpus/news_dictionary dataset.\")\n", "corpus = bleicorpus.BleiCorpus('datasets/news_corpus')\n", "# it's very important that your corpus is saved in order of your time-slices!\n", "\n", "time_slice = [438, 430, 456]" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "For DTM to work it first needs the Sufficient Statistics from a trained LDA model on the _*same*_ dataset. \n", "By default LdaSeqModel trains it's own model and passes those values on, but can also accept a pre-trained gensim LDA model, or a numpy matrix which contains the Suff Stats.\n", "\n", "We will be training our model in default mode, so gensim LDA will be first trained on the dataset.\n", "\n", "NOTE: You have to set logging as true to see your progress!" ] }, { "cell_type": "code", "execution_count": 3, "metadata": { "scrolled": true }, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "/home/misha/git/gensim/gensim/models/ldaseqmodel.py:293: RuntimeWarning: divide by zero encountered in double_scalars\n", " convergence = np.fabs((bound - old_bound) / old_bound)\n" ] } ], "source": [ "ldaseq = ldaseqmodel.LdaSeqModel(corpus=corpus, id2word=dictionary, time_slice=time_slice, num_topics=5)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Now that our model is trained, let's see what our results look like.\n", "\n", "### Results\n", "Much like LDA, the points of interest would be in what the topics are and how the documents are made up of these topics.\n", "In DTM we have the added interest of seeing how these topics evolve over time.\n", "\n", "Let's go through some of the functions to print Topics and analyse documents.\n", "\n", "### Printing Topics\n", "\n", "To print all topics from a particular time-period, simply use `print_topics`. \n", "The input parameter to `print_topics` is a time-slice option. By passing `0` we are seeing the topics in the 1st time-slice. \n", "\n", "The result would be a list of lists, where each individual list contains a tuple of the most probable words in the topic. i.e `(word, word_probability)`" ] }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "[[('film', 0.005917469495987717),\n", " ('best', 0.00486801522781858),\n", " ('last', 0.003433887442830304),\n", " ('tv', 0.0034066181560892983),\n", " ('first', 0.003231913726883219),\n", " ('show', 0.003224849338213615),\n", " ('three', 0.0023048170201803537),\n", " ('bbc', 0.0022750794162480974),\n", " ('home', 0.0020196147021130373),\n", " ('second', 0.001957191475970597),\n", " ('director', 0.001955785339407403),\n", " ('star', 0.0018697442019571776),\n", " ('united', 0.0018486275961695346),\n", " ('actor', 0.0017773645590414533),\n", " ('world', 0.0017728348478406259),\n", " ('time', 0.0017660315811460685),\n", " ('took', 0.0017534951800840248),\n", " ('award', 0.0016593687293076347),\n", " ('four', 0.001646883029873571),\n", " ('rights', 0.001494912649347212)],\n", " [('blair', 0.003656853413619428),\n", " ('labour', 0.003571831088597708),\n", " ('think', 0.0033329732624369085),\n", " ('chelsea', 0.0029922287405279684),\n", " ('game', 0.0028011339801883163),\n", " ('league', 0.002610476262682161),\n", " ('players', 0.002584137822138894),\n", " ('time', 0.002562398970649943),\n", " ('minister', 0.0025281531553959192),\n", " ('club', 0.002527139415819049),\n", " ('good', 0.0024787460166518565),\n", " ('last', 0.0024499225552730096),\n", " (\"don't\", 0.002415439141733538),\n", " ('arsenal', 0.0023802238324075278),\n", " ('party', 0.002379839625412044),\n", " ('bbc', 0.0023698950465503867),\n", " ('like', 0.0023651537261334767),\n", " ('election', 0.0023497931652231656),\n", " ('want', 0.00231801726260594),\n", " ('going', 0.002301691972872612)],\n", " [('music', 0.004535324394354765),\n", " ('number', 0.0036113710103155496),\n", " ('best', 0.003320026020611955),\n", " ('like', 0.003311533622142927),\n", " ('make', 0.002863027781655863),\n", " ('games', 0.0028196051742470636),\n", " ('government', 0.002788805852512145),\n", " ('first', 0.002547823171177183),\n", " ('band', 0.0024952788511720227),\n", " ('top', 0.0024859910933818347),\n", " ('uk', 0.0024576067300663123),\n", " ('last', 0.002142118981734694),\n", " ('world', 0.0020189228825508864),\n", " ('album', 0.001992838242293178),\n", " ('technology', 0.001969315542996064),\n", " ('video', 0.00191108778009925),\n", " ('next', 0.0018981806100445784),\n", " ('song', 0.0018852686282286684),\n", " ('british', 0.001820807928747836),\n", " ('years', 0.0018139501663332197)],\n", " [('mobile', 0.007197643998061543),\n", " ('users', 0.006658644027884087),\n", " ('net', 0.0064791532730191104),\n", " ('use', 0.00576421127183059),\n", " ('phone', 0.004636221654879627),\n", " ('used', 0.004191649534638687),\n", " ('using', 0.004121003944338685),\n", " ('internet', 0.00406147222068167),\n", " ('information', 0.003952892153876258),\n", " ('data', 0.003913138986834236),\n", " ('broadband', 0.003831513514609501),\n", " ('security', 0.00374214444231794),\n", " ('software', 0.0036371490042105517),\n", " ('service', 0.003607383455833399),\n", " ('online', 0.0034560031044337833),\n", " ('computer', 0.00339076896283381),\n", " ('phones', 0.0032184885220204905),\n", " ('million', 0.0031314352626954645),\n", " ('technology', 0.003096129557983641),\n", " ('site', 0.0030781219059679782)],\n", " [('last', 0.004329814208995159),\n", " ('year', 0.0037804149324644964),\n", " ('market', 0.003676885359238659),\n", " ('sales', 0.0034766894610293083),\n", " ('economic', 0.003139945186068337),\n", " ('government', 0.002927826150837857),\n", " ('growth', 0.0028388426302171014),\n", " ('oil', 0.0026113628080416252),\n", " ('economy', 0.002605167250854227),\n", " ('bank', 0.0026044767470200696),\n", " ('company', 0.002513269599201577),\n", " ('since', 0.002392370123819913),\n", " ('firm', 0.002259595203029759),\n", " ('uk', 0.002203922126442529),\n", " ('however,', 0.002175535174978607),\n", " ('prices', 0.0021384803520053666),\n", " ('rise', 0.002095321371791152),\n", " ('year.', 0.0020281054332198746),\n", " ('companies', 0.001991460828586195),\n", " ('tax', 0.001986423523484035)]]" ] }, "execution_count": 4, "metadata": {}, "output_type": "execute_result" } ], "source": [ "ldaseq.print_topics(time=0)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "We can see 5 different fairly well defined topics:\n", "1. Economy\n", "2. Entertainment\n", "3. Football\n", "4. Technology and Entertainment\n", "5. Government" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Looking for Topic Evolution\n", "\n", "To fix a topic and see it evolve, use `print_topic_times`.\n", "The input parameter is the `topic_id`\n", "In this case, we are looking at the evolution of the technology topic." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "If you look at the lower frequencies; the word \"may\" is creeping itself into prominence. This makes sense, as the 3rd time-slice are news reports about the economy in the month of may. This isn't present at all in the first time-slice because it's still March!\n" ] }, { "cell_type": "code", "execution_count": 5, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "[[('film', 0.005917469495987717),\n", " ('best', 0.00486801522781858),\n", " ('last', 0.003433887442830304),\n", " ('tv', 0.0034066181560892983),\n", " ('first', 0.003231913726883219),\n", " ('show', 0.003224849338213615),\n", " ('three', 0.0023048170201803537),\n", " ('bbc', 0.0022750794162480974),\n", " ('home', 0.0020196147021130373),\n", " ('second', 0.001957191475970597),\n", " ('director', 0.001955785339407403),\n", " ('star', 0.0018697442019571776),\n", " ('united', 0.0018486275961695346),\n", " ('actor', 0.0017773645590414533),\n", " ('world', 0.0017728348478406259),\n", " ('time', 0.0017660315811460685),\n", " ('took', 0.0017534951800840248),\n", " ('award', 0.0016593687293076347),\n", " ('four', 0.001646883029873571),\n", " ('rights', 0.001494912649347212)],\n", " [('film', 0.00571305545611347),\n", " ('best', 0.004837727655153439),\n", " ('show', 0.003481314386186913),\n", " ('tv', 0.0034722615227741997),\n", " ('last', 0.003386168752366683),\n", " ('first', 0.0032365624129367236),\n", " ('three', 0.0023234319442561988),\n", " ('bbc', 0.0023081792345694347),\n", " ('home', 0.001998773395520472),\n", " ('second', 0.0019645262577901016),\n", " ('united', 0.0018667489008505022),\n", " ('star', 0.0018651888307475372),\n", " ('director', 0.001864169176393472),\n", " ('time', 0.0017736738670308424),\n", " ('world', 0.0017731872594117693),\n", " ('took', 0.0017633644840274812),\n", " ('actor', 0.0016991013070837629),\n", " ('four', 0.0016705538768877733),\n", " ('award', 0.0016528333936788875),\n", " ('police', 0.0016136170157803962)],\n", " [('film', 0.005540858483231528),\n", " ('best', 0.0048262559888687185),\n", " ('show', 0.003716906775365683),\n", " ('tv', 0.0035395904398093526),\n", " ('last', 0.0034777589481244098),\n", " ('first', 0.003243689110874043),\n", " ('bbc', 0.0023370004552749914),\n", " ('three', 0.002329091349260664),\n", " ('home', 0.0020582079444666068),\n", " ('second', 0.001973888122637219),\n", " ('united', 0.001916879327887862),\n", " ('star', 0.0018340698498021293),\n", " ('world', 0.0017979775587484525),\n", " ('director', 0.0017916941003114167),\n", " ('time', 0.0017818044310012845),\n", " ('took', 0.0017774896897978856),\n", " ('four', 0.0016868970107681114),\n", " ('award', 0.001650192716396564),\n", " ('actor', 0.0016306709680404894),\n", " ('rights', 0.0015213265124893606)]]" ] }, "execution_count": 5, "metadata": {}, "output_type": "execute_result" } ], "source": [ "ldaseq.print_topic_times(topic=0) # evolution of 1st topic" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Document - Topic Proportions\n", "the function `doc_topics` checks the topic proportions on documents already trained on. It accepts the document number in the corpus as an input.\n", "\n", "Let's pick up document number 558 arbitrarily and have a look." ] }, { "cell_type": "code", "execution_count": 6, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "['set', 'time,\"', 'chairman', 'decision', 'news', 'director', 'former', 'vowed', '\"it', 'results', 'club', 'third', 'home', 'paul', 'saturday.', 'south', 'conference', 'leading', '\"some', 'survival', 'needed', 'coach', \"don't\", 'every', 'trouble', 'desperate', 'eight', 'first', 'win', 'going', 'park', 'near', 'chance', 'manager', 'league', 'milan', 'games', 'go', 'game', 'foot', 'say', 'upset', \"i'm\", 'poor', 'season.', 'executive', 'road', '24', 'debut', 'portsmouth.', 'give', 'claiming', 'steve', 'break', 'rivals', 'boss', 'kevin', 'premiership', 'little', 'left', 'table.', 'life', 'join', 'years.', 'bring', 'season,', 'director.', 'became', 'st', 'according', 'official', 'hope', 'shocked', 'though', 'phone', 'charge', '14', 'website.', 'time,', 'claimed', 'kept', 'bond', 'appointment', 'unveil', 'november', 'picked', 'confirmed,', 'believed', 'deep', 'position', 'surprised', 'negotiations', 'talks', 'gmt', 'middlesbrough', 'replaced', 'appear', 'football,', '\"i\\'m', 'charge.', 'saints', 'southampton', 'sturrock', 'wednesday.', 'harry', 'poised', 'ninth', 'quit', 'relieved', 'chance.\"', 'decision.\"', 'hero', 'redknapp,', 'redknapp', \"saints'\", 'first-team', \"wouldn't\", \"mary's.\", 'portsmouth', \"redknapp's\", 'pompey', 'academy', \"harry's\", 'cult', 'rupert', 'time\".', 'coast', '57,', 'succeed', 'duties', \"'i\", 'bitter,', \"mandaric's\", \"portsmouth's\", 'wigley,', 'wigley', \"southampton',\", '1500', 'mandaric', \"'absolutely\", 'lowe', '\"disappointed\"', 'velimir', 'not\\',\"', 'disgusted', 'disappointed,', 'mandaric,', 'fratton', 'replaces', 'masterminding', 'angry,', 'vowed:', 'informed.\"', 'zajec']\n" ] } ], "source": [ "# to check Document - Topic proportions, use `doc-topics`\n", "words = [dictionary[word_id] for word_id, count in corpus[558]]\n", "print (words)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "It's pretty clear that it's a news article about football. What topics will it likely be comprised of?" ] }, { "cell_type": "code", "execution_count": 7, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "[2.82842860e-01 4.26855326e-01 5.46298825e-05 5.46298825e-05\n", " 2.90192554e-01]\n" ] } ], "source": [ "doc = ldaseq.doc_topics(558) # check the 558th document in the corpuses topic distribution\n", "print (doc)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Let's look at our topics as desribed by us, again:\n", "\n", "1. Economy\n", "2. Entertainment\n", "3. Football\n", "4. Technology and Entertainment\n", "5. Government\n", "\n", "Our topic distribution for the above document is largely in topics 3 and 4. Considering it is a document about a news article on a football match, the distribution makes perfect sense!" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "If we wish to analyse a document not in our training set, we can use simply pass the doc to the model similar to the `__getitem__` funciton for `LdaModel`.\n", "\n", "Let's let our document be a hypothetical news article about the effects of Ryan Giggs buying mobiles affecting the British economy." ] }, { "cell_type": "code", "execution_count": 8, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "[0.00110497 0.33842633 0.00110497 0.25458869 0.40477504]\n" ] } ], "source": [ "doc_football_1 = ['economy', 'bank', 'mobile', 'phone', 'markets', 'buy', 'football', 'united', 'giggs']\n", "doc_football_1 = dictionary.doc2bow(doc_football_1)\n", "doc_football_1 = ldaseq[doc_football_1]\n", "print (doc_football_1)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Pretty neat! Topic 1 is about the Economy, and this document also has traces of football and technology, so topics 1, 3, and 4 got correctly activated." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Distances between documents\n", "\n", "One of the more handy uses of DTMs topic modelling is that we can compare documents across different time-frames and see how similar they are topic-wise. When words may not necessarily overlap over these time-periods, this is very useful.\n", "\n", "The current dataset doesn't provide us the diversity for this to be an effective example; but we will nevertheless illustrate how to do the same.\n", "\n" ] }, { "cell_type": "code", "execution_count": 9, "metadata": {}, "outputs": [], "source": [ "doc_football_2 = ['arsenal', 'fourth', 'wenger', 'oil', 'middle', 'east', 'sanction', 'fluctuation']\n", "doc_football_2 = dictionary.doc2bow(doc_football_2)\n", "doc_football_2 = ldaseq[doc_football_2]" ] }, { "cell_type": "code", "execution_count": 10, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "0.38644713413294984" ] }, "execution_count": 10, "metadata": {}, "output_type": "execute_result" } ], "source": [ "hellinger(doc_football_1, doc_football_2)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The topic distributions are quite related - matches well in football and economy." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Now let's try with documents that shouldn't be similar." ] }, { "cell_type": "code", "execution_count": 11, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "0.6105070034631694" ] }, "execution_count": 11, "metadata": {}, "output_type": "execute_result" } ], "source": [ "doc_governemt_1 = ['tony', 'government', 'house', 'party', 'vote', 'european', 'official', 'house']\n", "doc_governemt_1 = dictionary.doc2bow(doc_governemt_1)\n", "doc_governemt_1 = ldaseq[doc_governemt_1]\n", "\n", "hellinger(doc_football_1, doc_governemt_1)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "As expected, the value is very high, meaning the topic distributions are far apart.\n", "\n", "For more information on how to use the gensim distance metrics, check out [this notebook](distance_metrics.ipynb)." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Performance\n", "\n", "The code currently runs between 5 to 7 times slower than the original C++ DTM code. The bottleneck is in the scipy `optimize.fmin_cg` method for updating obs. Speeding this up would fix things up!\n", "\n", "Since it uses iterable gensim corpuses, the memory stamp is also cleaner. \n", "\n", "TODO: check memory, check BLAS, see how performance can be improved memory and speed wise. " ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The advantages of the python port are that unlike the C++ code we needn't treat it like a black-box; PRs to help make the code better are welcomed, as well as help to make the documentation clearer and improve performance. It is also in pure python and doesn't need any dependancy outside of what gensim already needs. The added functionality of being able to analyse new documents is also a plus!\n", "\n", "## Choosing your best Dynamic Topic Model.\n", "\n", "Like we've been going on and on before, the advantage in having a python port is the transparency with which you can train your DTM.\n", "We'll go over two key ideas: changing variance, and changing suff stats.\n", "\n", "\n", "### Chain Variance\n", "One of the key aspects of topic evolution is how fast/slow these topics evolve. And this is where the factor of `variance` comes in.\n", "By setting the `chain_variance` input to the DTM model higher, we can tweak our topic evolution.\n", "The default value is 0.005. (this is the value suggested by Blei in his tech talk and is the default value in the C++ code)\n", "\n", "Let us see a small example illustrating the same.\n", "Let's first see the evolution of values for the first time-slice." ] }, { "cell_type": "code", "execution_count": 12, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "[[('blair', 0.003656853413619428),\n", " ('labour', 0.003571831088597708),\n", " ('think', 0.0033329732624369085),\n", " ('chelsea', 0.0029922287405279684),\n", " ('game', 0.0028011339801883163),\n", " ('league', 0.002610476262682161),\n", " ('players', 0.002584137822138894),\n", " ('time', 0.002562398970649943),\n", " ('minister', 0.0025281531553959192),\n", " ('club', 0.002527139415819049),\n", " ('good', 0.0024787460166518565),\n", " ('last', 0.0024499225552730096),\n", " (\"don't\", 0.002415439141733538),\n", " ('arsenal', 0.0023802238324075278),\n", " ('party', 0.002379839625412044),\n", " ('bbc', 0.0023698950465503867),\n", " ('like', 0.0023651537261334767),\n", " ('election', 0.0023497931652231656),\n", " ('want', 0.00231801726260594),\n", " ('going', 0.002301691972872612)],\n", " [('blair', 0.003713648430818856),\n", " ('labour', 0.0036449572943794075),\n", " ('think', 0.003353002849447595),\n", " ('chelsea', 0.002991152664241214),\n", " ('game', 0.002840371715052553),\n", " ('good', 0.002614374642365314),\n", " ('league', 0.0026123473809775686),\n", " ('players', 0.0026066919212031805),\n", " ('minister', 0.0025735327622053933),\n", " ('time', 0.002566662482461167),\n", " ('club', 0.002522072121908676),\n", " ('arsenal', 0.0025037396662147774),\n", " ('last', 0.0024429429322480882),\n", " ('party', 0.002438765770456181),\n", " (\"don't\", 0.0024340625164823004),\n", " ('like', 0.002409449283893575),\n", " ('election', 0.002387601302866562),\n", " ('bbc', 0.0023755665907874224),\n", " ('want', 0.0023708316249832647),\n", " ('going', 0.0023174286362697234)],\n", " [('blair', 0.003789052020451831),\n", " ('labour', 0.003756904854182253),\n", " ('think', 0.0033769676071775255),\n", " ('chelsea', 0.002988386430522845),\n", " ('minister', 0.0026322228590789872),\n", " ('players', 0.002630819930110458),\n", " ('league', 0.0026201218499371185),\n", " ('time', 0.0025720811242427775),\n", " ('game', 0.002548580400470664),\n", " ('party', 0.0025405169968800087),\n", " ('club', 0.0025145293254008045),\n", " ('good', 0.0024869026158916875),\n", " (\"don't\", 0.0024553708499001846),\n", " ('last', 0.0024434629262835893),\n", " ('election', 0.002439979749044198),\n", " ('arsenal', 0.002383892972725239),\n", " ('bbc', 0.0023820557285104097),\n", " ('prime', 0.0023747029188644644),\n", " ('next', 0.002362162655076952),\n", " ('like', 0.002349811209855933)]]" ] }, "execution_count": 12, "metadata": {}, "output_type": "execute_result" } ], "source": [ "ldaseq.print_topic_times(1)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Now let us do the same, but after increasing the `chain_variance` value." ] }, { "cell_type": "code", "execution_count": 13, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "/home/misha/git/gensim/gensim/models/ldaseqmodel.py:293: RuntimeWarning: divide by zero encountered in double_scalars\n", " convergence = np.fabs((bound - old_bound) / old_bound)\n" ] } ], "source": [ "ldaseq_chain = ldaseqmodel.LdaSeqModel(corpus=corpus, id2word=dictionary, time_slice=time_slice, num_topics=5, chain_variance=0.05)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "It's noticable that the values are moving more freely after increasing the chain_variance. Film went from highest probability to 5th to 8th!" ] }, { "cell_type": "code", "execution_count": 14, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "[[('film', 0.01375823795635665),\n", " ('best', 0.011276818151806972),\n", " ('director', 0.0037205351022692626),\n", " ('award', 0.003633238905079213),\n", " ('actor', 0.0033617813327913725),\n", " ('million', 0.003171307691973619),\n", " ('last', 0.003001466360153857),\n", " ('star', 0.0028582559564371015),\n", " ('top', 0.002712140388471245),\n", " ('number', 0.0027089038839408905),\n", " ('awards', 0.0026868686691167926),\n", " ('including', 0.002439768747498039),\n", " ('first', 0.002344462049607271),\n", " ('former', 0.0022905809196871805),\n", " ('three', 0.002194680615038633),\n", " (\"year's\", 0.0021776664285641303),\n", " ('films', 0.002083143276187699),\n", " ('actress', 0.0020164206323942174),\n", " ('show', 0.00197821093747264),\n", " ('year', 0.0019242389412551)],\n", " [('best', 0.006251718153454164),\n", " ('music', 0.006238051188736231),\n", " ('number', 0.004698151339240129),\n", " ('show', 0.004373075014477944),\n", " ('last', 0.004059693074135519),\n", " ('top', 0.00405154039904161),\n", " ('band', 0.0038494003568372613),\n", " ('film', 0.0033736878692985192),\n", " ('album', 0.0031989412560276334),\n", " ('first', 0.0031124929302574207),\n", " ('year', 0.002834362048826918),\n", " ('star', 0.002550351654850285),\n", " ('uk', 0.002519053818321902),\n", " ('former', 0.002500363208100788),\n", " ('three', 0.0024999255264368087),\n", " ('song', 0.002474514670099769),\n", " ('award', 0.002462145721864402),\n", " ('awards', 0.002365331088911364),\n", " ('including', 0.0022353211770823654),\n", " ('singer', 0.002218424423530627)],\n", " [('music', 0.010806445443709194),\n", " ('best', 0.00981469175905119),\n", " ('show', 0.005951862553416929),\n", " ('last', 0.004887788345653499),\n", " ('number', 0.004868033645733588),\n", " ('band', 0.004531100533940954),\n", " ('song', 0.004107695027634018),\n", " ('top', 0.0033553984393853925),\n", " ('album', 0.00331033540878989),\n", " ('first', 0.0031215613317256067),\n", " ('rock', 0.002974436692834055),\n", " ('three', 0.0029380521471727944),\n", " ('singer', 0.0029097633299058753),\n", " ('award', 0.00280974819746582),\n", " ('uk', 0.0027834816968850167),\n", " ('film', 0.0025622295396685907),\n", " ('hit', 0.0025414452086195195),\n", " ('record', 0.0025200223644026203),\n", " ('spam', 0.0024324731646563516),\n", " ('bbc', 0.0024080622812893727)]]" ] }, "execution_count": 14, "metadata": {}, "output_type": "execute_result" } ], "source": [ "ldaseq_chain.print_topic_times(2)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### LDA Model and DTM\n", "\n", "For the first slice of DTM to get setup, we need to provide it sufficient stats from an LDA model. As discussed before, this is done by fitting gensim LDA on the dataset first. \n", "\n", "We also, however, have the option of passing our own model or suff stats values. Our final DTM results are heavily influenced by what we pass over here. We already know what a \"Good\" or \"Bad\" LDA model is (if not, read about it [here](http://nbviewer.jupyter.org/github/dsquareindia/gensim/blob/280375fe14adea67ce6384ba7eabf362b05e6029/docs/notebooks/topic_coherence_tutorial.ipynb)). \n", "\n", "It's quite obvious, then, that by passing a \"bad\" LDA model we will get not so satisfactory results; and by passing a better fitted or better trained LDA we will get better results. The same logic goes if we wish to directly pass the `suff_stats` numpy matrix." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Visualising Dynamic Topic Models.\n", "\n", "Let us use pyLDAvis to visualise both the DTM wrapper and DTM python port.\n", "With the new `DTMvis` methods it is now very straightforward to visualise DTM for a particular time-slice." ] }, { "cell_type": "code", "execution_count": 15, "metadata": {}, "outputs": [ { "ename": "FileNotFoundError", "evalue": "[Errno 2] No such file or directory: 'dtm_news'", "output_type": "error", "traceback": [ "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", "\u001b[0;31mFileNotFoundError\u001b[0m Traceback (most recent call last)", "\u001b[0;32m<ipython-input-15-353cbcbeba51>\u001b[0m in \u001b[0;36m<module>\u001b[0;34m\u001b[0m\n\u001b[1;32m 8\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 9\u001b[0m \u001b[0;31m# if we've saved before simply load the model\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 10\u001b[0;31m \u001b[0mdtm_model\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mDtmModel\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mload\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m'dtm_news'\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m", "\u001b[0;32m~/git/gensim/gensim/utils.py\u001b[0m in \u001b[0;36mload\u001b[0;34m(cls, fname, mmap)\u001b[0m\n\u001b[1;32m 424\u001b[0m \u001b[0mcompress\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0msubname\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mSaveLoad\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_adapt_by_suffix\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mfname\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 425\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 426\u001b[0;31m \u001b[0mobj\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0munpickle\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mfname\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 427\u001b[0m \u001b[0mobj\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_load_specials\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mfname\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mmmap\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mcompress\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0msubname\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 428\u001b[0m \u001b[0mlogger\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0minfo\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m\"loaded %s\"\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mfname\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", "\u001b[0;32m~/git/gensim/gensim/utils.py\u001b[0m in \u001b[0;36munpickle\u001b[0;34m(fname)\u001b[0m\n\u001b[1;32m 1379\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1380\u001b[0m \"\"\"\n\u001b[0;32m-> 1381\u001b[0;31m \u001b[0;32mwith\u001b[0m \u001b[0msmart_open\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mfname\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m'rb'\u001b[0m\u001b[0;34m)\u001b[0m \u001b[0;32mas\u001b[0m \u001b[0mf\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 1382\u001b[0m \u001b[0;31m# Because of loading from S3 load can't be used (missing readline in smart_open)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1383\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0msys\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mversion_info\u001b[0m \u001b[0;34m>\u001b[0m \u001b[0;34m(\u001b[0m\u001b[0;36m3\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;36m0\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", "\u001b[0;32m~/envs/gensim/lib/python3.7/site-packages/smart_open/smart_open_lib.py\u001b[0m in \u001b[0;36msmart_open\u001b[0;34m(uri, mode, **kw)\u001b[0m\n\u001b[1;32m 437\u001b[0m \u001b[0mtransport_params\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0mkey\u001b[0m\u001b[0;34m]\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mvalue\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 438\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 439\u001b[0;31m \u001b[0;32mreturn\u001b[0m \u001b[0mopen\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0muri\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mmode\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mignore_ext\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mignore_extension\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mtransport_params\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mtransport_params\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m**\u001b[0m\u001b[0mscrubbed_kwargs\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 440\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 441\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n", "\u001b[0;32m~/envs/gensim/lib/python3.7/site-packages/smart_open/smart_open_lib.py\u001b[0m in \u001b[0;36mopen\u001b[0;34m(uri, mode, buffering, encoding, errors, newline, closefd, opener, ignore_ext, transport_params)\u001b[0m\n\u001b[1;32m 305\u001b[0m \u001b[0mbuffering\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mbuffering\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 306\u001b[0m \u001b[0mencoding\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mencoding\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 307\u001b[0;31m \u001b[0merrors\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0merrors\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 308\u001b[0m )\n\u001b[1;32m 309\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0mfobj\u001b[0m \u001b[0;32mis\u001b[0m \u001b[0;32mnot\u001b[0m \u001b[0;32mNone\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", "\u001b[0;32m~/envs/gensim/lib/python3.7/site-packages/smart_open/smart_open_lib.py\u001b[0m in \u001b[0;36m_shortcut_open\u001b[0;34m(uri, mode, ignore_ext, buffering, encoding, errors)\u001b[0m\n\u001b[1;32m 496\u001b[0m \u001b[0;31m#\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 497\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0msix\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mPY3\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 498\u001b[0;31m \u001b[0;32mreturn\u001b[0m \u001b[0m_builtin_open\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mparsed_uri\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0muri_path\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mmode\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mbuffering\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mbuffering\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m**\u001b[0m\u001b[0mopen_kwargs\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 499\u001b[0m \u001b[0;32melif\u001b[0m \u001b[0;32mnot\u001b[0m \u001b[0mopen_kwargs\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 500\u001b[0m \u001b[0;32mreturn\u001b[0m \u001b[0m_builtin_open\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mparsed_uri\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0muri_path\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mmode\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mbuffering\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mbuffering\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", "\u001b[0;31mFileNotFoundError\u001b[0m: [Errno 2] No such file or directory: 'dtm_news'" ] } ], "source": [ "from gensim.models.wrappers.dtmmodel import DtmModel\n", "from gensim.corpora import Dictionary, bleicorpus\n", "import pyLDAvis\n", "\n", "# dtm_path = \"/Users/bhargavvader/Downloads/dtm_release/dtm/main\"\n", "# dtm_model = DtmModel(dtm_path, corpus, time_slice, num_topics=5, id2word=dictionary, initialize_lda=True)\n", "# dtm_model.save('dtm_news')\n", "\n", "# if we've saved before simply load the model\n", "dtm_model = DtmModel.load('dtm_news')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "If you take some time to look at the topics, you will notice large semantic similarities with the wrapper and the python DTM. \n", "Functionally, the python DTM replicates the wrapper quite well." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "doc_topic, topic_term, doc_lengths, term_frequency, vocab = dtm_model.dtm_vis(time=0, corpus=corpus)\n", "vis_wrapper = pyLDAvis.prepare(topic_term_dists=topic_term, doc_topic_dists=doc_topic, doc_lengths=doc_lengths, vocab=vocab, term_frequency=term_frequency)\n", "pyLDAvis.display(vis_wrapper)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Now let us do the same for the python DTM." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "In particular, look at topic 2 of the wrapper and topic 3 of the python port. Notice how they are both about football." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "doc_topic, topic_term, doc_lengths, term_frequency, vocab = ldaseq.dtm_vis(time=0, corpus=corpus)\n", "vis_dtm = pyLDAvis.prepare(topic_term_dists=topic_term, doc_topic_dists=doc_topic, doc_lengths=doc_lengths, vocab=vocab, term_frequency=term_frequency)\n", "pyLDAvis.display(vis_dtm)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Visualising topics is a handy way to compare topic models." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Topic Coherence for DTM\n", "\n", "Similar to visualising DTM time-slices, finding coherence values for both python DTM and the wrapper is very easy.\n", "We just have to specify the time-slice we want to find coherence for.\n", "The following examples will illustrate this." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "from gensim.models.coherencemodel import CoherenceModel\n", "import pickle\n", "\n", "# we just have to specify the time-slice we want to find coherence for.\n", "topics_wrapper = dtm_model.dtm_coherence(time=0)\n", "topics_dtm = ldaseq.dtm_coherence(time=2)\n", "\n", "# running u_mass coherence on our models\n", "cm_wrapper = CoherenceModel(topics=topics_wrapper, corpus=corpus, dictionary=dictionary, coherence='u_mass')\n", "cm_DTM = CoherenceModel(topics=topics_dtm, corpus=corpus, dictionary=dictionary, coherence='u_mass')\n", "\n", "print (\"U_mass topic coherence\")\n", "print (\"Wrapper coherence is \", cm_wrapper.get_coherence())\n", "print (\"DTM Python coherence is\", cm_DTM.get_coherence())\n", "\n", "# to use 'c_v' we need texts, which we have saved to disk.\n", "texts = pickle.load(open('Corpus/texts', 'rb'))\n", "cm_wrapper = CoherenceModel(topics=topics_wrapper, texts=texts, dictionary=dictionary, coherence='c_v')\n", "cm_DTM = CoherenceModel(topics=topics_dtm, texts=texts, dictionary=dictionary, coherence='c_v')\n", "\n", "print (\"C_v topic coherence\")\n", "print (\"Wrapper coherence is \", cm_wrapper.get_coherence())\n", "print (\"DTM Python coherence is\", cm_DTM.get_coherence())" ] }, { "cell_type": "markdown", "metadata": { "collapsed": true }, "source": [ "Our values are a little behind the wrapper - but not by much. " ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Conclusion\n", "\n", "So while there is already a python wrapper of DTM, a pure python implementation will be useful to better understand what goes on undcer the hood and tune our model. When it comes to performance, the C++ is undoubtedly faster, but we can continue to work on ours to make it as fast.\n", "As for evaluating the results, our topics are on par if not better than the wrapper!\n", "\n", "On a more personal note, implementing Dynamic Topic Models with the Google Summer of Code 2016 program was a great learning experience. Gensim and RaRe Technologies have been a joy to work with, and Lev and Radim have been great mentors throughout, especially when things became slow or difficult. \n", "I look forward to continuing my contribution to gensim for a long time!" ] } ], "metadata": { "anaconda-cloud": {}, "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.7.1" } }, "nbformat": 4, "nbformat_minor": 1 }
49,953
Python
.py
1,031
43.018429
1,666
0.631413
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,942
soft_cosine_tutorial.ipynb
piskvorky_gensim/docs/notebooks/soft_cosine_tutorial.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Finding similar documents with Word2Vec and Soft Cosine Measure \n", "\n", "Soft Cosine Measure (SCM) [1, 3] is a promising new tool in machine learning that allows us to submit a query and return the most relevant documents. In **part 1**, we will show how you can compute SCM between two documents using the `inner_product` method. In **part 2**, we will use `SoftCosineSimilarity` to retrieve documents most similar to a query and compare the performance against other similarity measures.\n", "\n", "First, however, we go through the basics of what Soft Cosine Measure is.\n", "\n", "## Soft Cosine Measure basics\n", "\n", "Soft Cosine Measure (SCM) is a method that allows us to assess the similarity between two documents in a meaningful way, even when they have no words in common. It uses a measure of similarity between words, which can be derived [2] using [word2vec][] [4] vector embeddings of words. It has been shown to outperform many of the state-of-the-art methods in the semantic text similarity task in the context of community question answering [2].\n", "\n", "[word2vec]: https://radimrehurek.com/gensim/models/word2vec.html\n", "\n", "SCM is illustrated below for two very similar sentences. The sentences have no words in common, but by modeling synonymy, SCM is able to accurately measure the similarity between the two sentences. The method also uses the bag-of-words vector representation of the documents (simply put, the word's frequencies in the documents). The intution behind the method is that we compute standard cosine similarity assuming that the document vectors are expressed in a non-orthogonal basis, where the angle between two basis vectors is derived from the angle between the word2vec embeddings of the corresponding words.\n", "\n", "![Soft Cosine Measure](soft_cosine_tutorial.png)\n", "\n", "This method was perhaps first introduced in the article “Soft Measure and Soft Cosine Measure: Measure of Features in Vector Space Model” by Grigori Sidorov, Alexander Gelbukh, Helena Gomez-Adorno, and David Pinto ([link to PDF](http://www.scielo.org.mx/pdf/cys/v18n3/v18n3a7.pdf)).\n", "\n", "In this tutorial, we will learn how to use Gensim's SCM functionality, which consists of the `inner_product` method for one-off computation, and the `SoftCosineSimilarity` class for corpus-based similarity queries.\n", "\n", "> **Note**:\n", ">\n", "> If you use this software, please consider citing [1], [2], and [3].\n", ">\n", "\n", "## Running this notebook\n", "You can download this [Jupyter notebook](http://jupyter.org/), and run it on your own computer, provided you have installed the `gensim`, `jupyter`, `sklearn`, `POT`, and `wmd` Python packages.\n", "\n", "The notebook was run on an Ubuntu machine with an Intel core i7-6700HQ CPU 3.10GHz (4 cores) and 16 GB memory. Assuming all resources required by the notebook have already been downloaded, running the entire notebook on this machine takes about 30 minutes." ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "# Initialize logging.\n", "import logging\n", "\n", "logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Part 1: Computing the Soft Cosine Measure\n", "\n", "To use SCM, we need some word embeddings first of all. You could train a [word2vec][] (see tutorial [here](https://rare-technologies.com/word2vec-tutorial/)) model on some corpus, but we will use pre-trained word2vec embeddings.\n", "\n", "[word2vec]: https://radimrehurek.com/gensim/models/word2vec.html\n", "\n", "Let's create some sentences to compare." ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [], "source": [ "sentence_obama = 'Obama speaks to the media in Illinois'.lower().split()\n", "sentence_president = 'The president greets the press in Chicago'.lower().split()\n", "sentence_orange = 'Having a tough time finding an orange juice press machine?'.lower().split()" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The first two sentences have very similar content, and as such the SCM should be large. Before we compute the SCM, we want to remove stopwords (\"the\", \"to\", etc.), as these do not contribute a lot to the information in the sentences." ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [], "source": [ "!pip install nltk" ] }, { "cell_type": "code", "execution_count": 4, "metadata": { "scrolled": true }, "outputs": [], "source": [ "# Import and download stopwords from NLTK.\n", "from nltk.corpus import stopwords\n", "from nltk import download\n", "\n", "download('stopwords') # Download stopwords list.\n", "\n", "# Remove stopwords.\n", "stop_words = stopwords.words('english')\n", "sentence_obama = [w for w in sentence_obama if w not in stop_words]\n", "sentence_president = [w for w in sentence_president if w not in stop_words]\n", "sentence_orange = [w for w in sentence_orange if w not in stop_words]\n", "\n", "# Prepare a dictionary and a corpus.\n", "from gensim import corpora\n", "documents = [sentence_obama, sentence_president, sentence_orange]\n", "dictionary = corpora.Dictionary(documents)\n", "\n", "# Convert the sentences into bag-of-words vectors.\n", "sentence_obama = dictionary.doc2bow(sentence_obama)\n", "sentence_president = dictionary.doc2bow(sentence_president)\n", "sentence_orange = dictionary.doc2bow(sentence_orange)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Now, as we mentioned earlier, we will be using some downloaded pre-trained embeddings. Note that the embeddings we have chosen here require a lot of memory. We will use the embeddings to construct a term similarity matrix that will be used by the `inner_product` method." ] }, { "cell_type": "code", "execution_count": 5, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "CPU times: user 21.8 s, sys: 461 ms, total: 22.2 s\n", "Wall time: 33.6 s\n" ] } ], "source": [ "%%time\n", "import gensim.downloader as api\n", "\n", "from gensim.similarities import SparseTermSimilarityMatrix\n", "from gensim.similarities import WordEmbeddingSimilarityIndex\n", "\n", "w2v_model = api.load(\"glove-wiki-gigaword-50\")\n", "similarity_index = WordEmbeddingSimilarityIndex(w2v_model)\n", "similarity_matrix = SparseTermSimilarityMatrix(similarity_index, dictionary)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Let's compute SCM using the `inner_product` method." ] }, { "cell_type": "code", "execution_count": 6, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "similarity = 0.3790\n" ] } ], "source": [ "similarity = similarity_matrix.inner_product(sentence_obama, sentence_president, normalized=True)\n", "print('similarity = %.4f' % similarity)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Let's try the same thing with two completely unrelated sentences. Notice that the similarity is smaller." ] }, { "cell_type": "code", "execution_count": 7, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "similarity = 0.1108\n" ] } ], "source": [ "similarity = similarity_matrix.inner_product(sentence_obama, sentence_orange, normalized=True)\n", "print('similarity = %.4f' % similarity)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Part 2: Similarity queries using `SoftCosineSimilarity`\n", "You can use SCM to get the most similar documents to a query, using the `SoftCosineSimilarity` class. Its interface is similar to what is described in the [Similarity Queries](https://radimrehurek.com/gensim/tut3.html) Gensim tutorial.\n", "\n", "### Qatar Living unannotated dataset\n", "Contestants solving the community question answering task in the [SemEval 2016][semeval16] and [2017][semeval17] competitions had an unannotated dataset of 189,941 questions and 1,894,456 comments from the [Qatar Living][ql] discussion forums. As our first step, we will use the same dataset to build a corpus.\n", "\n", "[semeval16]: http://alt.qcri.org/semeval2016/task3/\n", "[semeval17]: http://alt.qcri.org/semeval2017/task3/\n", "[ql]: http://www.qatarliving.com/forum" ] }, { "cell_type": "code", "execution_count": 8, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Number of documents: 2274338\n", "CPU times: user 2min 1s, sys: 1.9 s, total: 2min 3s\n", "Wall time: 2min 56s\n" ] } ], "source": [ "%%time\n", "from itertools import chain\n", "import json\n", "from re import sub\n", "from os.path import isfile\n", "\n", "import gensim.downloader as api\n", "from gensim.utils import simple_preprocess\n", "from nltk.corpus import stopwords\n", "from nltk import download\n", "\n", "download(\"stopwords\") # Download stopwords list.\n", "stopwords = set(stopwords.words(\"english\"))\n", "\n", "def preprocess(doc):\n", " doc = sub(r'<img[^<>]+(>|$)', \" image_token \", doc)\n", " doc = sub(r'<[^<>]+(>|$)', \" \", doc)\n", " doc = sub(r'\\[img_assist[^]]*?\\]', \" \", doc)\n", " doc = sub(r'http[s]?://(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*\\(\\),]|(?:%[0-9a-fA-F][0-9a-fA-F]))+', \" url_token \", doc)\n", " return [token for token in simple_preprocess(doc, min_len=0, max_len=float(\"inf\")) if token not in stopwords]\n", "\n", "corpus = list(chain(*[\n", " chain(\n", " [preprocess(thread[\"RelQuestion\"][\"RelQSubject\"]), preprocess(thread[\"RelQuestion\"][\"RelQBody\"])],\n", " [preprocess(relcomment[\"RelCText\"]) for relcomment in thread[\"RelComments\"]])\n", " for thread in api.load(\"semeval-2016-2017-task3-subtaskA-unannotated\")]))\n", "\n", "print(\"Number of documents: %d\" % len(corpus))" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Using the corpus we have just build, we will now construct a [dictionary][], a [TF-IDF model][tfidf], a [word2vec model][word2vec], and a term similarity matrix.\n", "\n", "[dictionary]: https://radimrehurek.com/gensim/corpora/dictionary.html\n", "[tfidf]: https://radimrehurek.com/gensim/models/tfidfmodel.html\n", "[word2vec]: https://radimrehurek.com/gensim/models/word2vec.html" ] }, { "cell_type": "code", "execution_count": 9, "metadata": { "scrolled": true }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "CPU times: user 46min 38s, sys: 13min 31s, total: 1h 9s\n", "Wall time: 35min 28s\n" ] } ], "source": [ "%%time\n", "from multiprocessing import cpu_count\n", "\n", "from gensim.corpora import Dictionary\n", "from gensim.models import TfidfModel\n", "from gensim.models import Word2Vec\n", "from gensim.similarities import WordEmbeddingSimilarityIndex\n", "from gensim.similarities import SparseTermSimilarityMatrix\n", "\n", "dictionary = Dictionary(corpus)\n", "tfidf = TfidfModel(dictionary=dictionary)\n", "w2v_model = Word2Vec(corpus, workers=cpu_count(), min_count=5, size=300, seed=12345)\n", "similarity_index = WordEmbeddingSimilarityIndex(w2v_model.wv)\n", "similarity_matrix = SparseTermSimilarityMatrix(similarity_index, dictionary, tfidf, nonzero_limit=100)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Evaluation\n", "Next, we will load the validation and test datasets that were used by the SemEval 2016 and 2017 contestants. The datasets contain 208 original questions posted by the forum members. For each question, there is a list of 10 threads with a human annotation denoting whether or not the thread is relevant to the original question. Our task will be to order the threads so that relevant threads rank above irrelevant threads." ] }, { "cell_type": "code", "execution_count": 10, "metadata": {}, "outputs": [], "source": [ "datasets = api.load(\"semeval-2016-2017-task3-subtaskBC\")" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Finally, we will perform an evaluation to compare three unsupervised similarity measures – the Soft Cosine Measure, two different implementations of the [Word Mover's Distance][wmd], and standard cosine similarity. We will use the [Mean Average Precision (MAP)][map] as an evaluation measure and 10-fold cross-validation to get an estimate of the variance of MAP for each similarity measure.\n", "\n", "[wmd]: http://vene.ro/blog/word-movers-distance-in-python.html\n", "[map]: https://medium.com/@pds.bangalore/mean-average-precision-abd77d0b9a7e" ] }, { "cell_type": "code", "execution_count": 11, "metadata": {}, "outputs": [], "source": [ "!pip install wmd" ] }, { "cell_type": "code", "execution_count": 12, "metadata": {}, "outputs": [], "source": [ "!pip install sklearn" ] }, { "cell_type": "code", "execution_count": 13, "metadata": {}, "outputs": [], "source": [ "!pip install POT" ] }, { "cell_type": "code", "execution_count": 14, "metadata": {}, "outputs": [], "source": [ "from math import isnan\n", "from time import time\n", "\n", "from gensim.similarities import MatrixSimilarity, WmdSimilarity, SoftCosineSimilarity\n", "import numpy as np\n", "from sklearn.model_selection import KFold\n", "from wmd import WMD\n", "\n", "def produce_test_data(dataset):\n", " for orgquestion in datasets[dataset]:\n", " query = preprocess(orgquestion[\"OrgQSubject\"]) + preprocess(orgquestion[\"OrgQBody\"])\n", " documents = [\n", " preprocess(thread[\"RelQuestion\"][\"RelQSubject\"]) + preprocess(thread[\"RelQuestion\"][\"RelQBody\"])\n", " for thread in orgquestion[\"Threads\"]]\n", " relevance = [\n", " thread[\"RelQuestion\"][\"RELQ_RELEVANCE2ORGQ\"] in (\"PerfectMatch\", \"Relevant\")\n", " for thread in orgquestion[\"Threads\"]]\n", " yield query, documents, relevance\n", "\n", "def cossim(query, documents):\n", " # Compute cosine similarity between the query and the documents.\n", " query = tfidf[dictionary.doc2bow(query)]\n", " index = MatrixSimilarity(\n", " tfidf[[dictionary.doc2bow(document) for document in documents]],\n", " num_features=len(dictionary))\n", " similarities = index[query]\n", " return similarities\n", "\n", "def softcossim(query, documents):\n", " # Compute Soft Cosine Measure between the query and the documents.\n", " query = tfidf[dictionary.doc2bow(query)]\n", " index = SoftCosineSimilarity(\n", " tfidf[[dictionary.doc2bow(document) for document in documents]],\n", " similarity_matrix)\n", " similarities = index[query]\n", " return similarities\n", "\n", "def wmd_gensim(query, documents):\n", " # Compute Word Mover's Distance as implemented in POT\n", " # between the query and the documents.\n", " index = WmdSimilarity(documents, w2v_model)\n", " similarities = index[query]\n", " return similarities\n", "\n", "def wmd_relax(query, documents):\n", " # Compute Word Mover's Distance as implemented in WMD by Source{d}\n", " # between the query and the documents.\n", " words = [word for word in set(chain(query, *documents)) if word in w2v_model.wv]\n", " indices, words = zip(*sorted((\n", " (index, word) for (index, _), word in zip(dictionary.doc2bow(words), words))))\n", " query = dict(tfidf[dictionary.doc2bow(query)])\n", " query = [\n", " (new_index, query[dict_index])\n", " for new_index, dict_index in enumerate(indices)\n", " if dict_index in query]\n", " documents = [dict(tfidf[dictionary.doc2bow(document)]) for document in documents]\n", " documents = [[\n", " (new_index, document[dict_index])\n", " for new_index, dict_index in enumerate(indices)\n", " if dict_index in document] for document in documents]\n", " embeddings = np.array([w2v_model.wv[word] for word in words], dtype=np.float32)\n", " nbow = dict(((index, list(chain([None], zip(*document)))) for index, document in enumerate(documents)))\n", " nbow[\"query\"] = tuple([None] + list(zip(*query)))\n", " distances = WMD(embeddings, nbow, vocabulary_min=1).nearest_neighbors(\"query\")\n", " similarities = [-distance for _, distance in sorted(distances)]\n", " return similarities\n", "\n", "strategies = {\n", " \"cossim\" : cossim,\n", " \"softcossim\": softcossim,\n", " \"wmd-gensim\": wmd_gensim,\n", " \"wmd-relax\": wmd_relax}\n", "\n", "def evaluate(split, strategy):\n", " # Perform a single round of evaluation.\n", " results = []\n", " start_time = time()\n", " for query, documents, relevance in split:\n", " similarities = strategies[strategy](query, documents)\n", " assert len(similarities) == len(documents)\n", " precision = [\n", " (num_correct + 1) / (num_total + 1) for num_correct, num_total in enumerate(\n", " num_total for num_total, (_, relevant) in enumerate(\n", " sorted(zip(similarities, relevance), reverse=True)) if relevant)]\n", " average_precision = np.mean(precision) if precision else 0.0\n", " results.append(average_precision)\n", " return (np.mean(results) * 100, time() - start_time)\n", "\n", "def crossvalidate(args):\n", " # Perform a cross-validation.\n", " dataset, strategy = args\n", " test_data = np.array(list(produce_test_data(dataset)))\n", " kf = KFold(n_splits=10)\n", " samples = []\n", " for _, test_index in kf.split(test_data):\n", " samples.append(evaluate(test_data[test_index], strategy))\n", " return (np.mean(samples, axis=0), np.std(samples, axis=0))" ] }, { "cell_type": "code", "execution_count": 15, "metadata": { "scrolled": false }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "CPU times: user 2.54 s, sys: 1.19 s, total: 3.73 s\n", "Wall time: 1min 18s\n" ] } ], "source": [ "%%time\n", "from multiprocessing import Pool\n", "\n", "args_list = [\n", " (dataset, technique)\n", " for dataset in (\"2016-test\", \"2017-test\")\n", " for technique in (\"softcossim\", \"wmd-gensim\", \"wmd-relax\", \"cossim\")]\n", "with Pool() as pool:\n", " results = pool.map(crossvalidate, args_list)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The table below shows the pointwise estimates of means and standard variances for MAP scores and elapsed times. Baselines and winners for each year are displayed in bold. We can see that the Soft Cosine Measure gives a strong performance on both the 2016 and the 2017 dataset." ] }, { "cell_type": "code", "execution_count": 16, "metadata": {}, "outputs": [], "source": [ "from IPython.display import display, Markdown\n", "\n", "output = []\n", "baselines = [\n", " ((\"2016-test\", \"**Winner (UH-PRHLT-primary)**\"), ((76.70, 0), (0, 0))),\n", " ((\"2016-test\", \"**Baseline 1 (IR)**\"), ((74.75, 0), (0, 0))),\n", " ((\"2016-test\", \"**Baseline 2 (random)**\"), ((46.98, 0), (0, 0))),\n", " ((\"2017-test\", \"**Winner (SimBow-primary)**\"), ((47.22, 0), (0, 0))),\n", " ((\"2017-test\", \"**Baseline 1 (IR)**\"), ((41.85, 0), (0, 0))),\n", " ((\"2017-test\", \"**Baseline 2 (random)**\"), ((29.81, 0), (0, 0)))]\n", "table_header = [\"Dataset | Strategy | MAP score | Elapsed time (sec)\", \":---|:---|:---|---:\"]\n", "for row, ((dataset, technique), ((mean_map_score, mean_duration), (std_map_score, std_duration))) \\\n", " in enumerate(sorted(chain(zip(args_list, results), baselines), key=lambda x: (x[0][0], -x[1][0][0]))):\n", " if row % (len(strategies) + 3) == 0:\n", " output.extend(chain([\"\\n\"], table_header))\n", " map_score = \"%.02f ±%.02f\" % (mean_map_score, std_map_score)\n", " duration = \"%.02f ±%.02f\" % (mean_duration, std_duration) if mean_duration else \"\"\n", " output.append(\"%s|%s|%s|%s\" % (dataset, technique, map_score, duration))\n", "\n", "display(Markdown('\\n'.join(output)))" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Dataset | Strategy | MAP score | Elapsed time (sec)\n", ":---|:---|:---|---:\n", "2016-test|softcossim|78.52 ±11.18|6.00 ±0.79\n", "2016-test|**Winner (UH-PRHLT-primary)**|76.70 ±0.00|\n", "2016-test|cossim|76.45 ±10.40|0.64 ±0.08\n", "2016-test|wmd-gensim|76.23 ±11.42|5.37 ±0.64\n", "2016-test|**Baseline 1 (IR)**|74.75 ±0.00|\n", "2016-test|wmd-relax|71.05 ±11.06|1.11 ±0.09\n", "2016-test|**Baseline 2 (random)**|46.98 ±0.00|\n", "\n", "\n", "Dataset | Strategy | MAP score | Elapsed time (sec)\n", ":---|:---|:---|---:\n", "2017-test|**Winner (SimBow-primary)**|47.22 ±0.00|\n", "2017-test|softcossim|45.88 ±16.22|7.08 ±1.49\n", "2017-test|cossim|44.38 ±14.71|0.74 ±0.10\n", "2017-test|wmd-gensim|44.06 ±15.92|6.20 ±0.87\n", "2017-test|wmd-relax|43.52 ±16.30|1.30 ±0.18\n", "2017-test|**Baseline 1 (IR)**|41.85 ±0.00|\n", "2017-test|**Baseline 2 (random)**|29.81 ±0.00|" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## References\n", "\n", "1. Grigori Sidorov et al. *Soft Similarity and Soft Cosine Measure: Similarity of Features in Vector Space Model*, 2014. ([link to PDF](http://www.scielo.org.mx/pdf/cys/v18n3/v18n3a7.pdf))\n", "2. Delphine Charlet and Geraldine Damnati, SimBow at SemEval-2017 Task 3: Soft-Cosine Semantic Similarity between Questions for Community Question Answering, 2017. ([link to PDF](http://www.aclweb.org/anthology/S17-2051))\n", "3. Vít Novotný. *Implementation Notes for the Soft Cosine Measure*, 2018. ([link to PDF](https://arxiv.org/pdf/1808.09407))\n", "4. Thomas Mikolov et al. Efficient Estimation of Word Representations in Vector Space, 2013. ([link to PDF](https://arxiv.org/pdf/1301.3781.pdf))" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.7.3" } }, "nbformat": 4, "nbformat_minor": 1 }
24,079
Python
.py
591
36.1489
619
0.616473
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,943
topic_coherence_model_selection.ipynb
piskvorky_gensim/docs/notebooks/topic_coherence_model_selection.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Performing Model Selection Using Topic Coherence\n", "\n", "This notebook will perform topic modeling on the 20 Newsgroups corpus using LDA. We will perform model selection (over the number of topics) using topic coherence as our evaluation metric. This will showcase some of the features of the topic coherence pipeline implemented in `gensim`. In particular, we will see several features of the `CoherenceModel`." ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "from __future__ import print_function\n", "\n", "import os\n", "import re\n", "import logging\n", "from collections import OrderedDict\n", "\n", "from gensim.corpora import TextCorpus, MmCorpus\n", "from gensim import utils, models\n", "\n", "logging.basicConfig(level=logging.ERROR) # disable warning logging" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Loading the Dataset\n", "\n", "The 20 Newsgroups dataset consists of 20 different newsgroup (forum discussion) groups, with many posts per group. The original data is available here: http://qwone.com/~jason/20Newsgroups/. However, `sklearn` also provides a wrapper around this data, so we'll use that for simplicity. It takes care of downloading the text and loading them into memory.\n", "\n", "The documents are in the newsgroup format, which includes some headers, quoting of previous messages in the thread, and possibly PGP signature blocks. The code below builds on the `TextCorpus` preprocessing to handle the newsgroup-specific text parsing. By default, `TextCorpus` preprocessing performs asciifolding and lowercases all text, then tokenizes by pulling out contiguous sequences of alphabetic characters, then discards stopwords and tokens less than length 3." ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [], "source": [ "from sklearn import datasets\n", "\n", "\n", "class NewsgroupCorpus(TextCorpus):\n", " \"\"\"Parse 20 Newsgroups dataset.\"\"\"\n", " \n", " def __init__(self, *args, **kwargs):\n", " super(NewsgroupCorpus, self).__init__(\n", " datasets.fetch_20newsgroups(subset='all'), *args, **kwargs)\n", "\n", " def getstream(self):\n", " for doc in self.input.data:\n", " yield doc # already unicode\n", "\n", " def preprocess_text(self, text):\n", " body = extract_body(text)\n", " return super(NewsgroupCorpus, self).preprocess_text(body)\n", "\n", " \n", "def extract_body(text):\n", " return strip_newsgroup_header(\n", " strip_newsgroup_footer(\n", " strip_newsgroup_quoting(text)))\n", "\n", "\n", "def strip_newsgroup_header(text):\n", " \"\"\"Given text in \"news\" format, strip the headers, by removing everything\n", " before the first blank line.\n", " \"\"\"\n", " _before, _blankline, after = text.partition('\\n\\n')\n", " return after\n", "\n", "\n", "_QUOTE_RE = re.compile(r'(writes in|writes:|wrote:|says:|said:'\n", " r'|^In article|^Quoted from|^\\||^>)')\n", "def strip_newsgroup_quoting(text):\n", " \"\"\"Given text in \"news\" format, strip lines beginning with the quote\n", " characters > or |, plus lines that often introduce a quoted section\n", " (for example, because they contain the string 'writes:'.)\n", " \"\"\"\n", " good_lines = [line for line in text.split('\\n')\n", " if not _QUOTE_RE.search(line)]\n", " return '\\n'.join(good_lines)\n", "\n", "\n", "_PGP_SIG_BEGIN = \"-----BEGIN PGP SIGNATURE-----\"\n", "def strip_newsgroup_footer(text):\n", " \"\"\"Given text in \"news\" format, attempt to remove a signature block.\"\"\"\n", " try:\n", " return text[:text.index(_PGP_SIG_BEGIN)]\n", " except ValueError:\n", " return text" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Loading the Dataset\n", "\n", "Now that we have defined the necessary code for preprocessing the dataset, let's load it up and serialize it into Matrix Market format. We'll do this because we want to train LDA on it with several different parameter settings, and this will allow us to avoid repeating the preprocessing." ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "18846\n", "Dictionary(23775 unique tokens: ['actually', 'bashers', 'beat', 'better', 'bit']...)\n", "CPU times: user 36.8 s, sys: 191 ms, total: 37 s\n", "Wall time: 38.1 s\n" ] } ], "source": [ "%%time\n", "\n", "corpus = NewsgroupCorpus()\n", "corpus.dictionary.filter_extremes(no_below=5, no_above=0.8)\n", "dictionary = corpus.dictionary\n", "print(len(corpus))\n", "print(dictionary)" ] }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "CPU times: user 39 s, sys: 243 ms, total: 39.2 s\n", "Wall time: 40.2 s\n" ] } ], "source": [ "%%time\n", "\n", "mm_path = '20_newsgroups.mm'\n", "MmCorpus.serialize(mm_path, corpus, id2word=dictionary)\n", "mm_corpus = MmCorpus(mm_path) # load back in to use for LDA training" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Training the Models\n", "\n", "Our goal is to determine which number of topics produces the most coherent topics for the 20 Newsgroups corpus. The corpus contains 18,846 documents. If we used 100 topics and the documents were evenly distributed among topics, we'd have clusters of ~188 documents. This seems like a reasonable upper bound. In this case, the corpus actually has categories, which we show below. There are 20 of these (hence the name of the dataset), so we'll use 20 as our lower bound for the number of topics.\n", "\n", "One could argue that we already know the model should have 20 topics. I'll argue there may be additional categorizations within each newsgroup and we might hope to capture those by using more topics. We'll step by increments of 10 from 20 to 100." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "alt.atheism\n", "comp.graphics\n", "comp.os.ms-windows.misc\n", "comp.sys.ibm.pc.hardware\n", "comp.sys.mac.hardware\n", "comp.windows.x\n", "misc.forsale\n", "rec.autos\n", "rec.motorcycles\n", "rec.sport.baseball\n", "rec.sport.hockey\n", "sci.crypt\n", "sci.electronics\n", "sci.med\n", "sci.space\n", "soc.religion.christian\n", "talk.politics.guns\n", "talk.politics.mideast\n", "talk.politics.misc\n", "talk.religion.misc\n" ] } ], "source": [ "print('\\n'.join(corpus.input.target_names))" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Training LDA(k=20)\n", "Training LDA(k=30)\n" ] } ], "source": [ "%%time\n", "\n", "trained_models = OrderedDict()\n", "for num_topics in range(20, 101, 10):\n", " print(\"Training LDA(k=%d)\" % num_topics)\n", " lda = models.LdaMulticore(\n", " mm_corpus, id2word=dictionary, num_topics=num_topics, workers=4,\n", " passes=10, iterations=100, random_state=42, eval_every=None,\n", " alpha='asymmetric', # shown to be better than symmetric in most cases\n", " decay=0.5, offset=64 # best params from Hoffman paper\n", " )\n", " trained_models[num_topics] = lda" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# Some useful utility functions in case you want to save your models.\n", "\n", "home = os.path.expanduser('~/')\n", "models_dir = os.path.join(home, 'workshop', 'nlp', 'models') # use whatever directory you prefer\n", "\n", "def save_models(named_models):\n", " for num_topics, model in named_models.items():\n", " model_path = os.path.join(models_dir, 'lda-newsgroups-k%d.lda' % num_topics)\n", " model.save(model_path, separately=False)\n", "\n", " \n", "def load_models():\n", " trained_models = OrderedDict()\n", " for num_topics in range(20, 101, 10):\n", " model_path = os.path.join(models_dir, 'lda-newsgroups-k%d.lda' % num_topics)\n", " print(\"Loading LDA(k=%d) from %s\" % (num_topics, model_path))\n", " trained_models[num_topics] = models.LdaMulticore.load(model_path)\n", "\n", " return trained_models" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# save_models(trained_models)\n", "# trained_models = load_models()" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Evaluation Using Coherence\n", "\n", "Now we get to the heart of this notebook. In this section, we'll evaluate each of our LDA models using topic coherence. Coherence is a measure of how interpretable the topics are to humans. It is based on the representation of topics as the top-N most probable words for a particular topic. More specifically, given the topic-term matrix for LDA, we sort each topic from highest to lowest term weights and then select the first N terms.\n", "\n", "Coherence essentially measures how similar these words are to each other. There are various methods for doing this, most of which have been explored in the paper [\"Exploring the Space of Topic Coherence Measures\"](https://svn.aksw.org/papers/2015/WSDM_Topic_Evaluation/public.pdf). The authors performed a comparative analysis of various methods, correlating them to human judgements. The method named \"c_v\" coherence was found to be the most highly correlated. This and several of the other methods have been implemented in `gensim.models.CoherenceModel`. We will use this to perform our evaluations.\n", "\n", "The \"c_v\" coherence method makes an expensive pass over the corpus, accumulating term occurrence and co-occurrence counts. It only accumulates counts for the terms in the lists of top-N terms for each topic. In order to ensure we only need to make one pass, we'll construct a \"super topic\" from the top-N lists of each of the models. This will consist of a single topic with all the relevant terms from all the models. We choose 20 as N." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "%%time\n", "\n", "# Now estimate the probabilities for the CoherenceModel.\n", "# This performs a single pass over the reference corpus, accumulating\n", "# the necessary statistics for all of the models at once.\n", "cm = models.CoherenceModel.for_models(\n", " trained_models.values(), dictionary, texts=corpus.get_texts(), coherence='c_v')" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "%%time\n", "\n", "coherence_estimates = cm.compare_models(trained_models.values())\n", "coherences = dict(zip(trained_models.keys(), coherence_estimates))" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "def print_coherence_rankings(coherences):\n", " avg_coherence = \\\n", " [(num_topics, avg_coherence)\n", " for num_topics, (_, avg_coherence) in coherences.items()]\n", " ranked = sorted(avg_coherence, key=lambda tup: tup[1], reverse=True)\n", " print(\"Ranked by average '%s' coherence:\\n\" % cm.coherence)\n", " for item in ranked:\n", " print(\"num_topics=%d:\\t%.4f\" % item)\n", " print(\"\\nBest: %d\" % ranked[0][0])" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "print_coherence_rankings(coherences)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Results so Far\n", "\n", "So far in this notebook, we have used `gensim`'s `CoherenceModel` to perform model selection over the number of topics for LDA. We found that for the 20 Newsgroups corpus, 30 topics is best, followed by 20. We showcased the ability of the coherence pipeline to evaluate individual aggregated model coherence (Note that the individual topic coherence is also computed by `cm.compare_models`). We also demonstrated how to avoid repeated passes over the corpus, estimating the term similarity probabilities for all relevant terms just once. Topic coherence is a powerful alternative to evaluation using perplexity on a held-out document set. It is appropriate to use whenever the objective of the topic modeling is to present the topics as top-N lists for human consumption.\n", "\n", "Note that coherence calculations are generally much more accurate when a larger reference corpus is used to estimate the probabilities. In this case, we used the same corpus as for our modeling, which is relatively small at only 20,000 documents. A better reference corpus is the full Wikipedia corpus. The motivated explorer of this notebook is encouraged to download that corpus (see [Experiments on the English Wikipedia](https://radimrehurek.com/gensim/wiki.html)) and use it for probability estimation.\n", "\n", "Next we'll look at another method of coherence evaluation using distributed word embeddings." ] }, { "cell_type": "markdown", "metadata": { "collapsed": true }, "source": [ "### Evaluating Coherence with Word2Vec\n", "\n", "The fact that \"c_v\" coherence uses distributional semantics to evalaute word similarity motivates the use of Word2Vec for coherence evaluation. This idea is explored further in an appendix at the end of the notebook. The `CoherenceModel` implemented in `gensim` also supports this, so let's look at a few examples." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "%%time\n", "\n", "class TextsIterable(object):\n", " \"\"\"Wrap a TextCorpus in something that yields texts from its __iter__.\n", " \n", " It's necessary to use this because the Word2Vec model is built by scanning\n", " over the texts several times. Passing in corpus.get_texts() would result in\n", " an empty iterable on passes after the first.\n", " \"\"\"\n", " \n", " def __init__(self, corpus):\n", " self.corpus = corpus\n", " \n", " def __iter__(self):\n", " return self.corpus.get_texts()\n", "\n", "\n", "cm = models.CoherenceModel.for_models(\n", " trained_models.values(), dictionary, texts=TextsIterable(corpus), coherence='c_w2v')" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "%%time\n", "\n", "coherence_estimates = cm.compare_models(trained_models.values())\n", "coherences = dict(zip(trained_models.keys(), coherence_estimates))\n", "print_coherence_rankings(coherences)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "#### Using pre-trained word vectors for coherence evaluation.\n", "\n", "Whoa! These results are completely different from those of the \"c_v\" method, and \"c_w2v\" is saying the models we thought were best are actually some of the worst! So what happened here?\n", "\n", "The same note must be made for Word2Vec (\"c_w2v\") that we made for \"c_v\": results are more accurate when a larger reference corpus is used. Except for \"c_w2v\", this is actually _way, way_ more important. Distributional word embedding techniques such as Word2Vec are fitting a probability distribution with a large number of parameters, and doing that takes a lot of data.\n", "\n", "Luckily, there are a variety of pre-trained word vectors [freely available for download](http://ahogrammer.com/2017/01/20/the-list-of-pretrained-word-embeddings/). Below we demonstrate using word vectors trained on ~100 billion words from Google News, [available at this link](https://drive.google.com/file/d/0B7XkCwpI5KDYNlNUTTlSS21pQmM/edit?usp=sharing). Note that this file is 1.5G, so downloading it can take quite some time. It is also quite slow to load and ends up occupying about 3.35G in memory (this load time is included in the timing below). There is no need to use such a large set of word vectors for this evaluation; this one is just readily available." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "%%time\n", "\n", "models_dir = os.path.join(home, 'workshop', 'nlp', 'models')\n", "vectors_path = os.path.join(models_dir, 'GoogleNews-vectors-negative300.bin.gz')\n", "keyed_vectors = models.KeyedVectors.load_word2vec_format(vectors_path, binary=True)\n", "\n", "# still need to estimate_probabilities, but corpus is not scanned\n", "cm = models.CoherenceModel.for_models(\n", " trained_models.values(), dictionary, texts=corpus.get_texts(),\n", " coherence='c_w2v', keyed_vectors=keyed_vectors)" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "%%time\n", "\n", "coherence_estimates = cm.compare_models(trained_models.values())\n", "coherences = dict(zip(trained_models.keys(), coherence_estimates))\n", "print_coherence_rankings(coherences)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "#### Watch out for Out-of-Vocabulary (OOV) terms!\n", "\n", "At first glance, it might seem like the \"c_w2v\" coherence with the GoogleNews vectors is a great improvement on the \"c_v\" method; it certainly improves on training on the newsgroups corpus. However, if you run the above code with logging enabled, you'll notice a TON of warning messages stating something like \"3 terms for topic 10 not in word2vec model.\" This is a real gotcha to watch out for! In this case, we might suspect there is significant mismatch because all the coherence measures are so similar (within about 0.02 of each other).\n", "\n", "When using pre-trained word vectors, there is likely to be some vocabulary mismatch. So unless the corpus you're modeling on was included in the training data for the vectors, you need to watch out for this. In the results above, it is easy to diagnose because all of the models have very similar coherence rankings. You can use the function below to dig in and see exactly how bad the issue is." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "from gensim import utils\n", "\n", "\n", "def report_on_oov_terms(cm, topic_models):\n", " \"\"\"OOV = out-of-vocabulary\"\"\"\n", " topics_as_topn_terms = [\n", " models.CoherenceModel.top_topics_as_word_lists(model, dictionary)\n", " for model in topic_models\n", " ]\n", "\n", " oov_words = cm._accumulator.not_in_vocab(topics_as_topn_terms)\n", " print('number of oov words: %d' % len(oov_words))\n", " \n", " for num_topics, words in zip(trained_models.keys(), topics_as_topn_terms):\n", " oov_words = cm._accumulator.not_in_vocab(words)\n", " print('number of oov words for num_topics=%d: %d' % (num_topics, len(oov_words)))\n", "\n", "report_on_oov_terms(cm, trained_models.values())" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "*Yikes!* That's a lot of terms that are being ignored when calculating the coherence metrics. So these results are not really reliable. Let's use a different set of pre-trained word vectors. I trained these on a recent Wikipedia dump using skip-gram negative sampling (SGNS) with a context window of 5 and 300 dimensions." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "%%time\n", "\n", "vectors_path = os.path.join(models_dir, 'wiki-en_sgns5-w5-s300.bin.gz')\n", "keyed_vectors = models.KeyedVectors.load_word2vec_format(vectors_path, binary=True)\n", "\n", "# still need to estimate_probabilities, but corpus is not scanned\n", "cm = models.CoherenceModel.for_models(\n", " trained_models.values(), dictionary, texts=corpus.get_texts(),\n", " coherence='c_w2v', keyed_vectors=keyed_vectors)" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "scrolled": true }, "outputs": [], "source": [ "%%time\n", "\n", "coherence_estimates = cm.compare_models(trained_models.values())\n", "coherences = dict(zip(trained_models.keys(), coherence_estimates))\n", "print_coherence_rankings(coherences)" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "report_on_oov_terms(cm, trained_models.values())" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "#### Looks like we've now restored order\n", "\n", "The results with the Wikipedia-trained word vectors are much better because we have less terms OOV. The \"c_w2v\" evalution is now agreeing with \"c_v\" on the best two models, and the rest of the ordering is generally similar. Note that the \"c_w2v\" values should not be compared directly to those produced by the \"c_v\" method. Only the ranking of models is comparable." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Appendix: Why Word2Vec for Coherence?\n", "\n", "The \"c_v\" coherence method drags a sliding window across all documents in the corpus to accumulate co-occurrence statistics. Similarity is calculated using normalized pointwise mutual information (PMI) values estimated from these statistics. More specifically, each word is represented by a vector of its NPMI with every other word in its top-N topic list. These vectors are then used to compute (cosine) similarity between words. The restriction to the other words in the top-N list was found to produce better results than using the entire vocabulary and other methods of reducing the vocabulary (see section 3.2.2 of http://www.aclweb.org/anthology/W13-0102).\n", "\n", "The fact that a reduced space is superior for these metrics indicates there is noise getting in the way. The \"c_v\" method can be seen as constructing an NPMI matrix between words. The vector of NPMI values for a particular word can then be looked up by indexing the row or column corresponding to that word's `Dictionary` ID. The reduction to the \"topic word space\" can then be achieved by using a mask to select out the top-N topic words. If we are constructing an NPMI matrix between words, then discarding some elements to reduce noise, why not factorize the matrix instead? Dimensionality reduction techniques such as SVD do a great job of reducing noise along with dimensionality, while also providing a compressed representation to work with.\n", "\n", "[Recent work](https://papers.nips.cc/paper/5477-neural-word-embedding-as-implicit-matrix-factorization) has shown that Word2Vec (trained with Skip-Gram Negative Sampling (SGNS)) is actually implicitly factorizing a PMI matrix shifted by a positive constant. [A subsequent paper](http://dl.acm.org/citation.cfm?id=2914720) compared Word2Vec to a few different PMI-based metrics and showed that it found coherence values that correlated more strongly with human judgements." ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.7.1" } }, "nbformat": 4, "nbformat_minor": 2 }
25,071
Python
.py
575
39.08
780
0.647657
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,944
Any2Vec_Filebased.ipynb
piskvorky_gensim/docs/notebooks/Any2Vec_Filebased.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# *2Vec File-based Training: API Tutorial\n", "\n", "This tutorial introduces a new file-based training mode for **`gensim.models.{Word2Vec, FastText, Doc2Vec}`** which leads to (much) faster training on machines with many cores. Below we demonstrate how to use this new mode, with Python examples." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## In this tutorial\n", "\n", "1. We will show how to use the new training mode on Word2Vec, FastText and Doc2Vec.\n", "2. Evaluate the performance of file-based training on the English Wikipedia and compare it to the existing queue-based training.\n", "3. Show that model quality (analogy accuracies on `question-words.txt`) are almost the same for both modes." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Motivation\n", "\n", "The original implementation of Word2Vec training in Gensim is already super fast (covered in [this blog series](https://rare-technologies.com/word2vec-in-python-part-two-optimizing/), see also [benchmarks against other implementations in Tensorflow, DL4J, and C](https://rare-technologies.com/machine-learning-hardware-benchmarks/)) and flexible, allowing you to train on arbitrary Python streams. We had to jump through [some serious hoops](https://www.youtube.com/watch?v=vU4TlwZzTfU) to make it so, avoiding the Global Interpreter Lock (the dreaded GIL, the main bottleneck for any serious high performance computation in Python).\n", "\n", "The end result worked great for modest machines (< 8 cores), but for higher-end servers, the GIL reared its ugly head again. Simply managing the input stream iterators and worker queues, which has to be done in Python holding the GIL, was becoming the bottleneck. Simply put, the Python implementation didn't scale linearly with cores, as the original C implementation by Tomáš Mikolov did." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "![scaling of word2vec file-based training](word2vec_file_scaling.png)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "We decided to change that. After [much](https://github.com/RaRe-Technologies/gensim/pull/2127) [experimentation](https://github.com/RaRe-Technologies/gensim/pull/2048#issuecomment-401494412) and [benchmarking](https://persiyanov.github.io/jekyll/update/2018/05/28/gsoc-first-weeks.html), including some pretty [hardcore outlandish ideas](https://github.com/RaRe-Technologies/gensim/pull/2127#issuecomment-405937741), we figured there's no way around the GIL limitations—not at the level of fine-tuned performance needed here. Remember, we're talking >500k words (training instances) per second, using highly optimized C code. Way past the naive \"vectorize with NumPy arrays\" territory.\n", "\n", "So we decided to introduce a new code path, which has *less flexibility* in favour of *more performance*. We call this code path **`file-based training`**, and it's realized by passing a new `corpus_file` parameter to training. The existing `sentences` parameter (queue-based training) is still available, and you can continue using without any change: there's **full backward compatibility**." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## How it works\n", "\n", "<style>\n", ".rendered_html tr, .rendered_html th, .rendered_html td {\n", " text-align: \"left\";\n", "}\n", "</style>\n", "\n", "| *code path* | *input parameter* | *advantages* | *disadvantages*\n", "| :-------- | :-------- | :--------- | :----------- |\n", "| queue-based training (existing) | `sentences` (Python iterable) | Input can be generated dynamically from any storage, or even on-the-fly. | Scaling plateaus after 8 cores. |\n", "| file-based training (new) | `corpus_file` (file on disk) | Scales linearly with CPU cores. | Training corpus must be serialized to disk in a specific format. |" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "When you specify `corpus_file`, the model will read and process different portions of the file with different workers. The entire bulk of work is done outside of GIL, using no Python structures at all. The workers update the same weight matrix, but otherwise there's no communication, each worker munches on its data portion completely independently. This is the same approach the original C tool uses. \n", "\n", "Training with `corpus_file` yields a **significant performance boost**: for example, in the experiment belows training is 3.7x faster with 32 workers in comparison to training with `sentences` argument. It even outperforms the original Word2Vec C tool in terms of words/sec processing speed on high-core machines.\n", "\n", "The limitation of this approach is that `corpus_file` argument accepts a path to your corpus file, which must be stored on disk in a specific format. The format is simply the well-known [gensim.models.word2vec.LineSentence](https://radimrehurek.com/gensim/models/word2vec.html#gensim.models.word2vec.LineSentence): one sentence per line, with words separated by spaces." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## How to use it\n", "\n", "You only need to:\n", "\n", "1. Save your corpus in the LineSentence format to disk (you may use [gensim.utils.save_as_line_sentence(your_corpus, your_corpus_file)](https://radimrehurek.com/gensim/utils.html#gensim.utils.save_as_line_sentence) for convenience).\n", "2. Change `sentences=your_corpus` argument to `corpus_file=your_corpus_file` in `Word2Vec.__init__`, `Word2Vec.build_vocab`, `Word2Vec.train` calls.\n", "\n", "\n", "A short Word2Vec example:" ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "1\n" ] } ], "source": [ "import gensim\n", "import gensim.downloader as api\n", "from gensim.utils import save_as_line_sentence\n", "from gensim.models.word2vec import Word2Vec\n", "\n", "print(gensim.models.word2vec.CORPUSFILE_VERSION) # must be >= 0, i.e. optimized compiled version\n", "\n", "corpus = api.load(\"text8\")\n", "save_as_line_sentence(corpus, \"my_corpus.txt\")\n", "\n", "model = Word2Vec(corpus_file=\"my_corpus.txt\", iter=5, size=300, workers=14)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Let's prepare the full Wikipedia dataset as training corpus\n", "\n", "We load wikipedia dump from `gensim-data`, perform text preprocessing with Gensim functions, and finally save processed corpus in LineSentence format." ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [], "source": [ "CORPUS_FILE = 'wiki-en-20171001.txt'" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "import itertools\n", "from gensim.parsing.preprocessing import preprocess_string\n", "\n", "def processed_corpus():\n", " raw_corpus = api.load('wiki-english-20171001')\n", " for article in raw_corpus:\n", " # concatenate all section titles and texts of each Wikipedia article into a single \"sentence\"\n", " doc = '\\n'.join(itertools.chain.from_iterable(zip(article['section_titles'], article['section_texts'])))\n", " yield preprocess_string(doc)\n", "\n", "# serialize the preprocessed corpus into a single file on disk, using memory-efficient streaming\n", "save_as_line_sentence(processed_corpus(), CORPUS_FILE)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Word2Vec\n", "\n", "We train two models:\n", "* With `sentences` argument\n", "* With `corpus_file` argument\n", "\n", "\n", "Then, we compare the timings and accuracy on `question-words.txt`." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "from gensim.models.word2vec import LineSentence\n", "import time\n", "\n", "start_time = time.time()\n", "model_sent = Word2Vec(sentences=LineSentence(CORPUS_FILE), iter=5, size=300, workers=32)\n", "sent_time = time.time() - start_time\n", "\n", "start_time = time.time()\n", "model_corp_file = Word2Vec(corpus_file=CORPUS_FILE, iter=5, size=300, workers=32)\n", "file_time = time.time() - start_time" ] }, { "cell_type": "code", "execution_count": 5, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Training model with `sentences` took 9494.237 seconds\n", "Training model with `corpus_file` took 2566.170 seconds\n" ] } ], "source": [ "print(\"Training model with `sentences` took {:.3f} seconds\".format(sent_time))\n", "print(\"Training model with `corpus_file` took {:.3f} seconds\".format(file_time))" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "**Training with `corpus_file` took 3.7x less time!**" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Now, let's compare the accuracies:" ] }, { "cell_type": "code", "execution_count": 6, "metadata": {}, "outputs": [], "source": [ "from gensim.test.utils import datapath" ] }, { "cell_type": "code", "execution_count": 7, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "/home/persiyanov/gensim/gensim/matutils.py:737: FutureWarning: Conversion of the second argument of issubdtype from `int` to `np.signedinteger` is deprecated. In future, it will be treated as `np.int64 == np.dtype(int).type`.\n", " if np.issubdtype(vec.dtype, np.int):\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ "Word analogy accuracy with `sentences`: 75.4%\n", "Word analogy accuracy with `corpus_file`: 74.8%\n" ] } ], "source": [ "model_sent_accuracy = model_sent.wv.evaluate_word_analogies(datapath('questions-words.txt'))[0]\n", "print(\"Word analogy accuracy with `sentences`: {:.1f}%\".format(100.0 * model_sent_accuracy))\n", "\n", "model_corp_file_accuracy = model_corp_file.wv.evaluate_word_analogies(datapath('questions-words.txt'))[0]\n", "print(\"Word analogy accuracy with `corpus_file`: {:.1f}%\".format(100.0 * model_corp_file_accuracy))" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The accuracies are approximately the same." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## FastText" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Short example:" ] }, { "cell_type": "code", "execution_count": 8, "metadata": {}, "outputs": [], "source": [ "import gensim.downloader as api\n", "from gensim.utils import save_as_line_sentence\n", "from gensim.models.fasttext import FastText\n", "\n", "corpus = api.load(\"text8\")\n", "save_as_line_sentence(corpus, \"my_corpus.txt\")\n", "\n", "model = FastText(corpus_file=\"my_corpus.txt\", iter=5, size=300, workers=14)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "#### Let's compare the timings" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "from gensim.models.word2vec import LineSentence\n", "from gensim.models.fasttext import FastText\n", "import time\n", "\n", "start_time = time.time()\n", "model_corp_file = FastText(corpus_file=CORPUS_FILE, iter=5, size=300, workers=32)\n", "file_time = time.time() - start_time\n", "\n", "start_time = time.time()\n", "model_sent = FastText(sentences=LineSentence(CORPUS_FILE), iter=5, size=300, workers=32)\n", "sent_time = time.time() - start_time" ] }, { "cell_type": "code", "execution_count": 10, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Training model with `sentences` took 17963.283 seconds\n", "Training model with `corpus_file` took 10725.931 seconds\n" ] } ], "source": [ "print(\"Training model with `sentences` took {:.3f} seconds\".format(sent_time))\n", "print(\"Training model with `corpus_file` took {:.3f} seconds\".format(file_time))" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "**We see a 1.67x performance boost!**" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "#### Now, accuracies:" ] }, { "cell_type": "code", "execution_count": 11, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "/home/persiyanov/gensim/gensim/matutils.py:737: FutureWarning: Conversion of the second argument of issubdtype from `int` to `np.signedinteger` is deprecated. In future, it will be treated as `np.int64 == np.dtype(int).type`.\n", " if np.issubdtype(vec.dtype, np.int):\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ "Word analogy accuracy with `sentences`: 64.2%\n", "Word analogy accuracy with `corpus_file`: 66.2%\n" ] } ], "source": [ "from gensim.test.utils import datapath\n", "\n", "model_sent_accuracy = model_sent.wv.evaluate_word_analogies(datapath('questions-words.txt'))[0]\n", "print(\"Word analogy accuracy with `sentences`: {:.1f}%\".format(100.0 * model_sent_accuracy))\n", "\n", "model_corp_file_accuracy = model_corp_file.wv.evaluate_word_analogies(datapath('questions-words.txt'))[0]\n", "print(\"Word analogy accuracy with `corpus_file`: {:.1f}%\".format(100.0 * model_corp_file_accuracy))" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Doc2Vec" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Short example:" ] }, { "cell_type": "code", "execution_count": 12, "metadata": {}, "outputs": [], "source": [ "import gensim.downloader as api\n", "from gensim.utils import save_as_line_sentence\n", "from gensim.models.doc2vec import Doc2Vec\n", "\n", "corpus = api.load(\"text8\")\n", "save_as_line_sentence(corpus, \"my_corpus.txt\")\n", "\n", "model = Doc2Vec(corpus_file=\"my_corpus.txt\", epochs=5, vector_size=300, workers=14)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "#### Let's compare the timings" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "from gensim.models.doc2vec import Doc2Vec, TaggedLineDocument\n", "import time\n", "\n", "start_time = time.time()\n", "model_corp_file = Doc2Vec(corpus_file=CORPUS_FILE, epochs=5, vector_size=300, workers=32)\n", "file_time = time.time() - start_time\n", "\n", "start_time = time.time()\n", "model_sent = Doc2Vec(documents=TaggedLineDocument(CORPUS_FILE), epochs=5, vector_size=300, workers=32)\n", "sent_time = time.time() - start_time" ] }, { "cell_type": "code", "execution_count": 15, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Training model with `sentences` took 20427.949 seconds\n", "Training model with `corpus_file` took 3085.256 seconds\n" ] } ], "source": [ "print(\"Training model with `sentences` took {:.3f} seconds\".format(sent_time))\n", "print(\"Training model with `corpus_file` took {:.3f} seconds\".format(file_time))" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "**A 6.6x speedup!**" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "#### Accuracies:" ] }, { "cell_type": "code", "execution_count": 16, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "/home/persiyanov/gensim/gensim/matutils.py:737: FutureWarning: Conversion of the second argument of issubdtype from `int` to `np.signedinteger` is deprecated. In future, it will be treated as `np.int64 == np.dtype(int).type`.\n", " if np.issubdtype(vec.dtype, np.int):\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ "Word analogy accuracy with `sentences`: 71.7%\n", "Word analogy accuracy with `corpus_file`: 67.8%\n" ] } ], "source": [ "from gensim.test.utils import datapath\n", "\n", "model_sent_accuracy = model_sent.wv.evaluate_word_analogies(datapath('questions-words.txt'))[0]\n", "print(\"Word analogy accuracy with `sentences`: {:.1f}%\".format(100.0 * model_sent_accuracy))\n", "\n", "model_corp_file_accuracy = model_corp_file.wv.evaluate_word_analogies(datapath('questions-words.txt'))[0]\n", "print(\"Word analogy accuracy with `corpus_file`: {:.1f}%\".format(100.0 * model_corp_file_accuracy))" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## TL;DR: Conclusion\n", "\n", "In case your training corpus already lives on disk, you lose nothing by switching to the new `corpus_file` training mode. Training will be much faster.\n", "\n", "In case your corpus is generated dynamically, you can either serialize it to disk first with `gensim.utils.save_as_line_sentence` (and then use the fast `corpus_file`), or if that's not possible continue using the existing `sentences` training mode.\n", "\n", "------\n", "\n", "This new code branch was created by [@persiyanov](https://github.com/persiyanov) as a Google Summer of Code 2018 project in the [RARE Student Incubator](https://rare-technologies.com/incubator/).\n", "\n", "Questions, comments? Use our Gensim [mailing list](https://groups.google.com/g/gensim) and [twitter](https://twitter.com/gensim_py). Happy training!" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.6.5" } }, "nbformat": 4, "nbformat_minor": 2 }
18,975
Python
.py
550
30.067273
696
0.629608
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,945
nmslibtutorial.ipynb
piskvorky_gensim/docs/notebooks/nmslibtutorial.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Similarity Queries using Nmslib Tutorial" ] }, { "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ "This tutorial is about using the ([Non-Metric Space Library (NMSLIB)](https://github.com/nmslib/nmslib \"Link to nmslib repo\")) library for similarity queries with a Word2Vec model built with gensim.\n", "\n", "## Why use Nmslib?\n", "The current implementation for finding k nearest neighbors in a vector space in gensim has linear complexity via brute force in the number of indexed documents, although with extremely low constant factors. The retrieved results are exact, which is an overkill in many applications: approximate results retrieved in sub-linear time may be enough. Nmslib can find approximate nearest neighbors much faster.\n", "Compared to annoy, nmslib has more parameteres to control the build and query time and accuracy. Nmslib can achieve faster and more accurate nearest neighbors search than annoy. This figure shows a comparison between annoy and nmslib indexer with differents parameters. This shows nmslib is better than annoy.\n", "![nmslib.png](nmslib.png)\n", "\n", "## Prerequisites\n", "Additional libraries needed for this tutorial:\n", "- nmslib\n", "- annoy\n", "- psutil\n", "- matplotlib\n", "\n", "## Outline\n", "1. Download Text8 Corpus\n", "2. Build Word2Vec Model\n", "3. Construct NmslibIndex with model & make a similarity query\n", "4. Verify & Evaluate performance\n", "5. Evaluate relationship of parameters to initialization/query time and accuracy, compared with annoy\n", "6. Work with Google's word2vec C formats" ] }, { "cell_type": "code", "execution_count": 5, "metadata": { "scrolled": true }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "CPython 3.6.0\n", "IPython 7.5.0\n", "\n", "gensim 3.7.3\n", "numpy 1.16.2\n", "scipy 1.2.1\n", "psutil 5.6.3\n", "matplotlib 3.1.0\n", "\n", "compiler : GCC 4.2.1 Compatible Apple LLVM 10.0.0 (clang-1000.11.45.5)\n", "system : Darwin\n", "release : 18.2.0\n", "machine : x86_64\n", "processor : i386\n", "CPU cores : 4\n", "interpreter: 64bit\n" ] } ], "source": [ "# pip install watermark\n", "%reload_ext watermark\n", "%watermark -v -m -p gensim,numpy,scipy,psutil,matplotlib" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### 1. Download Text8 Corpus" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "--2019-06-27 13:48:42-- https://mattmahoney.net/dc/text8.zip\n", "Resolving mattmahoney.net... 67.195.197.75\n", "Connecting to mattmahoney.net|67.195.197.75|:80... connected.\n", "HTTP request sent, awaiting response... 200 OK\n", "Length: 31344016 (30M) [application/zip]\n", "Saving to: 'text8.zip'\n", "\n", "text8.zip 100%[=====================>] 29.89M 327KB/s in 98s \n", "\n", "2019-06-27 13:50:21 (313 KB/s) - 'text8.zip' saved [31344016/31344016]\n", "\n", "Archive: text8.zip\n", " inflating: text8 \n" ] } ], "source": [ "import os.path\n", "if not os.path.isfile('text8'):\n", " !wget -c https://mattmahoney.net/dc/text8.zip\n", " !unzip text8.zip" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "#### Import & Set up Logging\n", "I'm not going to set up logging due to the verbose input displaying in notebooks, but if you want that, uncomment the lines in the cell below." ] }, { "cell_type": "code", "execution_count": 6, "metadata": {}, "outputs": [], "source": [ "LOGS = False\n", "\n", "if LOGS:\n", " import logging\n", " logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### 2. Build Word2Vec Model" ] }, { "cell_type": "code", "execution_count": 57, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Word2Vec(vocab=71290, size=100, alpha=0.05)\n" ] } ], "source": [ "from gensim.models import Word2Vec, KeyedVectors\n", "from gensim.models.word2vec import Text8Corpus\n", "\n", "# Using params from Word2Vec_FastText_Comparison\n", "\n", "params = {\n", " 'alpha': 0.05,\n", " 'size': 100,\n", " 'window': 5,\n", " 'iter': 5,\n", " 'min_count': 5,\n", " 'sample': 1e-4,\n", " 'sg': 1,\n", " 'hs': 0,\n", " 'negative': 5\n", "}\n", "\n", "model = Word2Vec(Text8Corpus('text8'), **params)\n", "print(model)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "See the [Word2Vec tutorial](word2vec.ipynb) for how to initialize and save this model." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "#### Comparing the traditional implementation, Annoy and Nmslib approximation" ] }, { "cell_type": "code", "execution_count": 14, "metadata": {}, "outputs": [], "source": [ "# Set up the model and vector that we are using in the comparison\n", "from gensim.similarities.index import AnnoyIndexer\n", "from gensim.similarities.nmslib import NmslibIndexer\n", "\n", "model.init_sims()\n", "annoy_index = AnnoyIndexer(model, 300)\n", "nmslib_index = NmslibIndexer(model, {'M': 100, 'indexThreadQty': 1, 'efConstruction': 100}, {'efSearch': 10})" ] }, { "cell_type": "code", "execution_count": 15, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "[('the', 1.0), ('of', 0.700629323720932), ('in', 0.6932138800621033), ('which', 0.6132444441318512), ('for', 0.6099657416343689)]\n", "[('the', 0.9999999701976776), ('of', 0.91037717461586), ('in', 0.9058823883533478), ('a', 0.8834112882614136), ('and', 0.8790014386177063)]\n", "[('the', 1.0000001192092896), ('of', 0.82075434923172), ('in', 0.811764657497406), ('a', 0.7668224573135376), ('and', 0.7580028772354126)]\n" ] } ], "source": [ "# Dry run to make sure both indices are fully in RAM\n", "vector = model.wv.syn0norm[0]\n", "print(model.most_similar([vector], topn=5, indexer=annoy_index))\n", "print(model.most_similar([vector], topn=5, indexer=nmslib_index))\n", "print(model.most_similar([vector], topn=5))" ] }, { "cell_type": "code", "execution_count": 7, "metadata": {}, "outputs": [], "source": [ "import time\n", "import numpy as np" ] }, { "cell_type": "code", "execution_count": 8, "metadata": {}, "outputs": [], "source": [ "def avg_query_time(annoy_index=None, queries=1000):\n", " \"\"\"\n", " Average query time of a most_similar method over 1000 random queries,\n", " uses annoy if given an indexer\n", " \"\"\"\n", " total_time = 0\n", " for _ in range(queries):\n", " rand_vec = model.wv.syn0norm[np.random.randint(0, len(model.wv.vocab))]\n", " start_time = time.clock()\n", " model.most_similar([rand_vec], topn=5, indexer=annoy_index)\n", " total_time += time.clock() - start_time\n", " return total_time / queries" ] }, { "cell_type": "code", "execution_count": 18, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Gensim (s/query):\t0.00560\n", "Annoy (s/query):\t0.00099\n", "Nmslib (s/query):\t0.00046\n", "\n", "Nmslib is 12.16 times faster on average on this particular run\n", "\n", "Nmslib is 2.15 times faster on average than annoy on this particular run\n" ] } ], "source": [ "queries = 10000\n", "\n", "gensim_time = avg_query_time(queries=queries)\n", "annoy_time = avg_query_time(annoy_index, queries=queries)\n", "nmslib_time = avg_query_time(nmslib_index, queries=queries)\n", "print(\"Gensim (s/query):\\t{0:.5f}\".format(gensim_time))\n", "print(\"Annoy (s/query):\\t{0:.5f}\".format(annoy_time))\n", "print(\"Nmslib (s/query):\\t{0:.5f}\".format(nmslib_time))\n", "speed_improvement_gensim = gensim_time / nmslib_time\n", "speed_improvement_annoy = annoy_time / nmslib_time\n", "print (\"\\nNmslib is {0:.2f} times faster on average on this particular run\".format(speed_improvement_gensim))\n", "print (\"\\nNmslib is {0:.2f} times faster on average than annoy on this particular run\".format(speed_improvement_annoy))\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## 3. Construct Nmslib Index with model & make a similarity query\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Creating an indexer\n", "An instance of `NmslibIndexer` needs to be created in order to use Nmslib in gensim. The `NmslibIndexer` class is located in `gensim.similarities.nmslib`\n", "\n", "`NmslibIndexer()` takes three parameters:\n", "\n", "**`model`**: A `Word2Vec` or `Doc2Vec` model\n", "\n", "**`index_params`**: Parameters for building nmslib indexer. `index_params` effects the build time and the index size. The example is `{'M': 100, 'indexThreadQty': 1, 'efConstruction': 100}`. Increasing the value of `M` and `efConstruction` improves the accuracy of search. However this also leads to longer indexing times. `indexThreadQty` is the number of thread. \n", "\n", "**`query_time_params`**: Parameters for querying on nmslib indexer. `query_time_params` effects the query time and the search accuracy. The example is `{'efSearch': 100}`. A larger `efSearch` will give more accurate results, but larger query time. \n", "\n", "More information can be found [here](https://github.com/nmslib/nmslib/blob/master/manual/methods.md). The relationship between parameters, build/query time, and accuracy will be investigated later in the tutorial. \n", "\n", "Now that we are ready to make a query, lets find the top 5 most similar words to \"science\" in the Text8 corpus. To make a similarity query we call `Word2Vec.most_similar` like we would traditionally, but with an added parameter, `indexer`. The only supported indexerers in gensim as of now are Annoy and Nmslib. " ] }, { "cell_type": "code", "execution_count": 19, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Approximate Neighbors\n", "('science', 1.0000000596046448)\n", "('fiction', 0.8769421577453613)\n", "('protoscience', 0.8432635962963104)\n", "('multidisciplinary', 0.835610032081604)\n", "('sciences', 0.8348604440689087)\n", "('astrobiology', 0.8340338170528412)\n", "('actuarial', 0.8339103162288666)\n", "('interdisciplinary', 0.8327268362045288)\n", "('xenobiology', 0.8318319618701935)\n", "('criminology', 0.8261869251728058)\n", "('futurists', 0.82555091381073)\n", "\n", "Normal (not nmslib-indexed) Neighbors\n", "('science', 0.9999998807907104)\n", "('fiction', 0.7538841962814331)\n", "('protoscience', 0.6865270733833313)\n", "('multidisciplinary', 0.6712199449539185)\n", "('sciences', 0.6697208881378174)\n", "('astrobiology', 0.6680675148963928)\n", "('actuarial', 0.6678205132484436)\n", "('interdisciplinary', 0.6654534339904785)\n", "('xenobiology', 0.663663923740387)\n", "('vernor', 0.6569585800170898)\n", "('criminology', 0.652373731136322)\n" ] } ], "source": [ "# Building nmslib indexer\n", "nmslib_index = NmslibIndexer(model, {'M': 100, 'indexThreadQty': 1, 'efConstruction': 100}, {'efSearch': 10})\n", "# Derive the vector for the word \"science\" in our model\n", "vector = model[\"science\"]\n", "# The instance of AnnoyIndexer we just created is passed \n", "approximate_neighbors = model.most_similar([vector], topn=11, indexer=nmslib_index)\n", "\n", "# Neatly print the approximate_neighbors and their corresponding cosine similarity values\n", "print(\"Approximate Neighbors\")\n", "for neighbor in approximate_neighbors:\n", " print(neighbor)\n", "\n", "normal_neighbors = model.most_similar([vector], topn=11)\n", "print(\"\\nNormal (not nmslib-indexed) Neighbors\")\n", "for neighbor in normal_neighbors:\n", " print(neighbor)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "#### Analyzing the results" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The closer the cosine similarity of a vector is to 1, the more similar that word is to our query, which was the vector for \"science\". In this case the results are almostly same." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### 4. Verify & Evaluate performance" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "#### Persisting Indexes\n", "You can save and load your indexes from/to disk to prevent having to construct them each time. This will create two files on disk, _fname_ and _fname.d_. Both files are needed to correctly restore all attributes. " ] }, { "cell_type": "code", "execution_count": 23, "metadata": {}, "outputs": [], "source": [ "import os\n", "\n", "fname = '/tmp/mymodel.index'\n", "\n", "# Persist index to disk\n", "nmslib_index.save(fname)\n", "\n", "# Load index back\n", "if os.path.exists(fname):\n", " nmslib_index2 = NmslibIndexer.load(fname)\n", " nmslib_index2.model = model" ] }, { "cell_type": "code", "execution_count": 24, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "('science', 1.0000000596046448)\n", "('fiction', 0.8769421577453613)\n", "('protoscience', 0.8432635962963104)\n", "('multidisciplinary', 0.835610032081604)\n", "('sciences', 0.8348604440689087)\n", "('astrobiology', 0.8340338170528412)\n", "('actuarial', 0.8339103162288666)\n", "('interdisciplinary', 0.8327268362045288)\n", "('xenobiology', 0.8318319618701935)\n", "('criminology', 0.8261869251728058)\n", "('futurists', 0.82555091381073)\n" ] } ], "source": [ "# Results should be identical to above\n", "vector = model[\"science\"]\n", "approximate_neighbors2 = model.most_similar([vector], topn=11, indexer=nmslib_index2)\n", "for neighbor in approximate_neighbors2:\n", " print(neighbor)\n", " \n", "assert approximate_neighbors == approximate_neighbors2" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Be sure to use the same model at load that was used originally, otherwise you will get unexpected behaviors." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "#### Save memory by memory-mapping indices saved to disk\n", "\n", "Nmslib library has a useful feature that indices can be memory-mapped from disk. It saves memory when the same index is used by several processes.\n", "\n", "Below are two snippets of code. First one has a separate index for each process. The second snipped shares the index between two processes via memory-mapping. The second example uses less total RAM as it is shared." ] }, { "cell_type": "code", "execution_count": 26, "metadata": {}, "outputs": [], "source": [ "# Remove verbosity from code below (if logging active)\n", "\n", "if LOGS:\n", " logging.disable(logging.CRITICAL)" ] }, { "cell_type": "code", "execution_count": 27, "metadata": {}, "outputs": [], "source": [ "from multiprocessing import Process\n", "import psutil" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "#### Bad Example: Two processes load the Word2vec model from disk and create there own Nmslib indices from that model. " ] }, { "cell_type": "code", "execution_count": 28, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Process Id: 36262\n", "\n", "Memory used by process 36262: pmem(rss=600539136, vms=6052294656, pfaults=170185, pageins=2)\n", "---\n", "Process Id: 36263\n", "\n", "Memory used by process 36263: pmem(rss=600539136, vms=6052294656, pfaults=170155, pageins=0)\n", "---\n", "CPU times: user 547 ms, sys: 308 ms, total: 856 ms\n", "Wall time: 59.2 s\n" ] } ], "source": [ "%%time\n", "\n", "model.save('/tmp/mymodel.pkl')\n", "\n", "def f(process_id):\n", " print('Process Id: {}'.format(os.getpid()))\n", " process = psutil.Process(os.getpid())\n", " new_model = Word2Vec.load('/tmp/mymodel.pkl')\n", " vector = new_model[\"science\"]\n", " nmslib_index = NmslibIndexer(new_model, {'M': 100, 'indexThreadQty': 1, 'efConstruction': 100}, {'efSearch': 10})\n", " approximate_neighbors = new_model.most_similar([vector], topn=5, indexer=nmslib_index)\n", " print('\\nMemory used by process {}: {}\\n---'.format(os.getpid(), process.memory_info()))\n", "\n", "# Creating and running two parallel process to share the same index file.\n", "p1 = Process(target=f, args=('1',))\n", "p1.start()\n", "p1.join()\n", "p2 = Process(target=f, args=('2',))\n", "p2.start()\n", "p2.join()" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "#### Good example. Two processes load both the Word2vec model and index from disk and memory-map the index\n" ] }, { "cell_type": "code", "execution_count": 29, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Process Id: 36265\n", "\n", "Memory used by process 36265: pmem(rss=417345536, vms=5981540352, pfaults=129428, pageins=0)\n", "---\n", "Process Id: 36266\n", "\n", "Memory used by process 36266: pmem(rss=417579008, vms=5981540352, pfaults=129528, pageins=0)\n", "---\n", "CPU times: user 581 ms, sys: 266 ms, total: 847 ms\n", "Wall time: 3.74 s\n" ] } ], "source": [ "%%time\n", "\n", "model.save('/tmp/mymodel.pkl')\n", "\n", "def f(process_id):\n", " print('Process Id: {}'.format(os.getpid()))\n", " process = psutil.Process(os.getpid())\n", " new_model = Word2Vec.load('/tmp/mymodel.pkl')\n", " vector = new_model[\"science\"]\n", " nmslib_index = NmslibIndexer.load('/tmp/mymodel.index')\n", " nmslib_index.model = new_model\n", " approximate_neighbors = new_model.most_similar([vector], topn=5, indexer=nmslib_index)\n", " print('\\nMemory used by process {}: {}\\n---'.format(os.getpid(), process.memory_info()))\n", "\n", "# Creating and running two parallel process to share the same index file.\n", "p1 = Process(target=f, args=('1',))\n", "p1.start()\n", "p1.join()\n", "p2 = Process(target=f, args=('2',))\n", "p2.start()\n", "p2.join()" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### 5. Evaluate relationship of parameters to initialization/query time and accuracy, compared with annoy\n" ] }, { "cell_type": "code", "execution_count": 9, "metadata": {}, "outputs": [], "source": [ "import matplotlib.pyplot as plt\n", "%matplotlib inline" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "#### Build dataset of Initialization times and accuracy measures" ] }, { "cell_type": "code", "execution_count": 14, "metadata": {}, "outputs": [], "source": [ "exact_results = [element[0] for element in model.most_similar([model.wv.syn0norm[0]], topn=100)]" ] }, { "cell_type": "code", "execution_count": 48, "metadata": {}, "outputs": [], "source": [ "# For calculating query time\n", "queries = 1000" ] }, { "cell_type": "code", "execution_count": 49, "metadata": {}, "outputs": [], "source": [ "def create_evaluation_graph(x_values, y_values_init, y_values_accuracy, y_values_query, param_name):\n", " plt.figure(1, figsize=(12, 6))\n", " plt.subplot(231)\n", " plt.plot(x_values, y_values_init)\n", " plt.title(\"{} vs initalization time\".format(param_name))\n", " plt.ylabel(\"Initialization time (s)\")\n", " plt.xlabel(param_name)\n", " plt.subplot(232)\n", " plt.plot(x_values, y_values_accuracy)\n", " plt.title(\"{} vs accuracy\".format(param_name))\n", " plt.ylabel(\"% accuracy\")\n", " plt.xlabel(param_name)\n", " plt.tight_layout()\n", " plt.subplot(233)\n", " plt.plot(y_values_init, y_values_accuracy)\n", " plt.title(\"Initialization time vs accuracy\")\n", " plt.ylabel(\"% accuracy\")\n", " plt.xlabel(\"Initialization time (s)\")\n", " plt.tight_layout()\n", " plt.subplot(234)\n", " plt.plot(x_values, y_values_query)\n", " plt.title(\"{} vs query time\".format(param_name))\n", " plt.ylabel(\"query time\")\n", " plt.xlabel(param_name)\n", " plt.tight_layout()\n", " plt.subplot(235)\n", " plt.plot(y_values_query, y_values_accuracy)\n", " plt.title(\"query time vs accuracy\")\n", " plt.ylabel(\"% accuracy\")\n", " plt.xlabel(\"query time (s)\")\n", " plt.tight_layout()\n", " plt.show()" ] }, { "cell_type": "code", "execution_count": 50, "metadata": {}, "outputs": [], "source": [ "def evaluate_nmslib_performance(parameter, is_parameter_query, parameter_start, parameter_end, parameter_step):\n", " nmslib_x_values = []\n", " nmslib_y_values_init = []\n", " nmslib_y_values_accuracy = []\n", " nmslib_y_values_query = []\n", " index_params = {'M': 100, 'indexThreadQty': 10, 'efConstruction': 100, 'post': 0}\n", " query_params = {'efSearch': 100}\n", " \n", " for x in range(parameter_start, parameter_end, parameter_step):\n", " nmslib_x_values.append(x)\n", " start_time = time.time()\n", " if is_parameter_query:\n", " query_params[parameter] = x\n", " else:\n", " index_params[parameter] = x\n", " nmslib_index = NmslibIndexer(model\n", " , index_params\n", " , query_params)\n", " nmslib_y_values_init.append(time.time() - start_time)\n", " approximate_results = model.most_similar([model.wv.syn0norm[0]], topn=100, indexer=nmslib_index)\n", " top_words = [result[0] for result in approximate_results]\n", " nmslib_y_values_accuracy.append(len(set(top_words).intersection(exact_results)))\n", " nmslib_y_values_query.append(avg_query_time(nmslib_index, queries=queries))\n", " create_evaluation_graph(nmslib_x_values,\n", " nmslib_y_values_init, \n", " nmslib_y_values_accuracy, \n", " nmslib_y_values_query, \n", " parameter)" ] }, { "cell_type": "code", "execution_count": 51, "metadata": {}, "outputs": [ { "data": { "image/png": "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\n", "text/plain": [ "<Figure size 864x432 with 5 Axes>" ] }, "metadata": { "needs_background": "light" }, "output_type": "display_data" } ], "source": [ "# Evaluate nmslib indexer, changing the parameter M\n", "evaluate_nmslib_performance(\"M\", False, 50, 401, 50)" ] }, { "cell_type": "code", "execution_count": 52, "metadata": {}, "outputs": [ { "data": { "image/png": "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\n", "text/plain": [ "<Figure size 864x432 with 5 Axes>" ] }, "metadata": { "needs_background": "light" }, "output_type": "display_data" } ], "source": [ "# Evaluate nmslib indexer, changing the parameter efConstruction\n", "evaluate_nmslib_performance(\"efConstruction\", False, 50, 1001, 100)" ] }, { "cell_type": "code", "execution_count": 53, "metadata": {}, "outputs": [ { "data": { "image/png": "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\n", "text/plain": [ "<Figure size 864x432 with 5 Axes>" ] }, "metadata": { "needs_background": "light" }, "output_type": "display_data" } ], "source": [ "# Evaluate nmslib indexer, changing the parameter efSearch\n", "evaluate_nmslib_performance(\"efSearch\", True, 50, 401, 100)" ] }, { "cell_type": "code", "execution_count": 54, "metadata": {}, "outputs": [ { "data": { "image/png": "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\n", "text/plain": [ "<Figure size 864x432 with 5 Axes>" ] }, "metadata": { "needs_background": "light" }, "output_type": "display_data" } ], "source": [ "# Evaluate annoy indexer, changing the parameter num_tree\n", "annoy_x_values = []\n", "annoy_y_values_init = []\n", "annoy_y_values_accuracy = []\n", "annoy_y_values_query = []\n", "\n", "for x in range(100, 401, 50):\n", " annoy_x_values.append(x)\n", " start_time = time.time()\n", " annoy_index = AnnoyIndexer(model, x)\n", " annoy_y_values_init.append(time.time() - start_time)\n", " approximate_results = model.most_similar([model.wv.syn0norm[0]], topn=100, indexer=annoy_index)\n", " top_words = [result[0] for result in approximate_results]\n", " annoy_y_values_accuracy.append(len(set(top_words).intersection(exact_results)))\n", " annoy_y_values_query.append(avg_query_time(annoy_index, queries=queries))\n", "create_evaluation_graph(annoy_x_values,\n", " annoy_y_values_init, \n", " annoy_y_values_accuracy, \n", " annoy_y_values_query, \n", " \"num_tree\")" ] }, { "cell_type": "code", "execution_count": 55, "metadata": { "scrolled": true }, "outputs": [], "source": [ "# nmslib indexer changing the parameter M, efConstruction, efSearch\n", "nmslib_y_values_init = []\n", "nmslib_y_values_accuracy = []\n", "nmslib_y_values_query = []\n", "\n", "for M in [100, 200]:\n", " for efConstruction in [100, 200]:\n", " for efSearch in [100, 200]:\n", " start_time = time.time()\n", " nmslib_index = NmslibIndexer(model, \n", " {'M': M, 'indexThreadQty': 10, 'efConstruction': efConstruction, 'post': 0},\n", " {'efSearch': efSearch})\n", " nmslib_y_values_init.append(time.time() - start_time)\n", " approximate_results = model.most_similar([model.wv.syn0norm[0]], topn=100, indexer=nmslib_index)\n", " top_words = [result[0] for result in approximate_results]\n", " nmslib_y_values_accuracy.append(len(set(top_words).intersection(exact_results)))\n", " nmslib_y_values_query.append(avg_query_time(nmslib_index, queries=queries))\n" ] }, { "cell_type": "code", "execution_count": 56, "metadata": {}, "outputs": [ { "data": { "image/png": "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exzwoepRkqaNe+65h3Xr1nH33Xd3OpSuMWvWLPbaay923HHHToVwDuYqSbqPuWp7Y81Vk1ZgZeZ3ImLBkNHHA0dVz88FLqEkreOBj2f5Ua7vR8SciNgzM9dPVnyS1G7r1q1jl112YcGCBUREp8PpuMxk48aNrFu3jn333bdTMZirJKmBuWqw8eSqdl+DtUdDIroZ2KN6/jDgpob51lXjthMRp0REf0T0b9iwYfIilaSa3X333cydO9eEVYkI5s6d241HSc1VknqWuWqw8eSqjt3kojoCmON43crM7MvMvnnzpsVPpEjqISaswbp9e5irJPWibm+b222s26PdBdYtEbEnQPV4azX+18DeDfPtVY2TJKndzFWSpHFrd4H1JeCl1fOXAl9sGP+S6g5NRwJ32KddkqaGo4466r4f0j322GPZtGkTa9as4aCDDupwZONmrpKkaaaduWrSbnIREedTLhLePSLWAe8A/g34dES8HFgL/E01+5eBY4FfAJuBkycrLknS5Pnyl78MwKZNmzocSWvMVZLUeyY7V03aGazMfGFm7pmZO2bmXpn50czcmJlHZ+b+mfnUzPxtNW9m5usy8+GZeXBm9k9WXJI0ZaxaBQsWwIwZ5XHVqgkvcs2aNSxcuJBXvvKVHHjggTztaU/jrrvu4qijjmLJkiX09fWxcOFCfvSjH/Gc5zyH/fffn7e//e0A3HnnnRx33HEccsghHHTQQVxwwQXbLX/BggXcdtttAGzZsoVFixaxcOFCnve857F58+YJx183c5UkTZC5ajsdu8mFJGkEq1bBKafA2rWQWR5POaWWxHX99dfzute9jmuuuYY5c+bw2c9+FoCddtqJ/v5+Xv3qV3P88cfzgQ98gKuvvppzzjmHjRs3cvHFF/PQhz6UK6+8kquvvppjjjlmxPe57rrreO1rX8u1117LAx/4QD74wQ9OOHZJUhcxVw3LAkuTaxKOakg94fTTYehRtM2by/gJ2nfffTn00EMBOPzww1mzZg0Az372swE4+OCDOfDAA9lzzz3Zeeed2W+//bjppps4+OCD+frXv85b3/pWvvvd77LrrruO+D577703T3jCEwB48YtfzKWXXjrh2CVJXaRXc1W1f3s4HD7cZAssTZ5JPKohTXs33ji28WOw88473/d8hx12YMuWLYPGz5gxY9A8M2bMYMuWLfzZn/0Zl19+OQcffDBvf/vbeec73zni+wy9ra23/ZWkaaYXc1Xj/m0TFliaPJN4VEOa9ubPH9v4NvjNb37D7NmzefGLX8ypp57K5ZdfPuL8N954I5dddhkA5513Hn/xF3/RjjAlSe3Si7lquP3bISywNHkm8aiGNO0tWwazZw8eN3t2Gd8hP/nJTzjiiCM49NBDOeOMM+67oLiZRz7ykXzgAx9g4cKF3H777bzmNa9pU6SSpLboxVzVwn5slB+pn5r6+vpy4H726kILFgx/+nSffaDqRyv1kmuvvZaFCxe2/oJVq8qRshtvLEcDly2DRYsmL8AOGW67RMTqzOzrUEi1MldJmkrMVcO7b7s07N/2Af2Z2/Up9AyWJk8XHtWQppRFi8rBiK1by+M0TFiSpCmu13LVcPu3Q1hgafIsWgQrV5YzVhHlceXK6f+PJ0mSpOmpcf+2iZltDEe9aNEiCypJkiRNH9X+7eqI1cNN9gyWJEmSJNXEAkuSJEmSamKBpc6ofgGbGTPKoz8+LEmSupn7LmqR12Cp/QZ+AXvgR9rWri3D4PVakiSp+7jvojHwDJbab7hfwN68uYyXdJ+hP1M4hX+2UJKmNvddmjJXbc8CS+3X7BewW/hlbKlXLF0KS5ZsS1SZZXjp0okv+4QTTuDwww/nwAMPZOXKlQA84AEP4PTTT+eQQw7hyCOP5JZbbgHgpJNO4g1veAOPf/zj2W+//bjwwgureJJTTz2Vgw46iIMPPpgLLrgAgJe85CV84QtfuO+9Fi1axBe/+MWJBy1JneS+y7DMVcOzwFL7zZ8/tvFSj8mETZtgxYptiWvJkjK8adPEjw6effbZrF69mv7+fs4880w2btzInXfeyZFHHsmVV17Jk570JD7ykY/cN//69eu59NJLueiiizjttNMA+NznPscVV1zBlVdeyTe+8Q1OPfVU1q9fz8tf/nLOOeccAO644w6+973vcdxxx00sYEnqNPddtmOuas4CS+033C9gz55dxksiApYvh8WLS6KaMaM8Ll5cxkdMbPlnnnnmfUf/brrpJq6//np22mknnvnMZwJw+OGHs2bNmvvmP+GEE5gxYwYHHHDAfUcLL730Ul74wheyww47sMcee/DkJz+ZH/3oRzz5yU/m+uuvZ8OGDZx//vk897nPZeZML/eVNMW577Idc1VzFlhqv8ZfwI4ojytXepGo1GAgcTWqI2FdcsklfOMb3+Cyyy7jyiuv5DGPeQx33303O+64I1EtfIcddmDLli33vWbnnXe+73m2cEjyJS95CZ/85Cf52Mc+xste9rKJBSxJ3cB9l2GZq4ZngaXOWLQI1qyBrVvLY483UNJQA10tGjX2cx+vO+64g912243Zs2fzs5/9jO9///vjWs4Tn/hELrjgAu699142bNjAd77zHY444gig9IV/3/veB8ABBxwwsYAlqVu477Idc9XwLLAkqcs09mNfvLjk8oEuGBNNXMcccwxbtmxh4cKFnHbaaRx55JHjWs6JJ57Iox/9aA455BCe8pSn8J73vIeHPOQhAOyxxx4sXLiQk08+efyBSpK6mrmquWjlFFq36uvry/7+/k6HIUktufbaa1m4cGFL8y5dWi4SHuhqMZDI5syp5+5Mk2nz5s0cfPDBXH755ey6666jzj/cdomI1ZnZN1kxtpO5StJUYq4a3lhylVceS1IXWrq0JKqBfuwD/dwn2q99sn3jG9/g5S9/OUuWLGkpYUmSpi5z1fAssCSpSw1NUN2esACe+tSnsnbt2k6HIUlqE3PV9rwGS5LaaCp3y54Mbg9J6j62zYONdXtYYElSm8yaNYuNGzeauCqZycaNG5k1a1anQ5EkVcxVg40nV9lFUJLaZK+99mLdunVs2LCh06F0jVmzZrHXXnt1OgxJUsVctb2x5ioLLElqkx133JF9992302FIktSUuWri7CIoSZIkSTWxwJIkSZKkmlhgSZIkSVJNLLAkSZIkqSYWWJIkSZJUEwssSZIkSaqJBZYkSZIk1cQCS5IkSZJqYoElSZIkSTWxwJIkSZKkmlhgSZIkSVJNLLAkSZIkqSYdKbAiYnFEXB0R10TEG6txSyPi1xFxRfV3bCdikyQJzFWSpPFpe4EVEQcBrwSOAA4BnhkRj6gmL8/MQ6u/L7c7tmlt1SpYsABmzCiPr33t4OFVqzobnyR1EXOVNAarVsHuu0NE+dt9d/cr1NNmduA9FwI/yMzNABHxbeA5HYijd6xaBaecAps3l+G1a+FDH9o2fe3aMh1g0aL2xydJ3cdcJbVi1So4+WS4555t4zZuhJe9rDx3v0I9qBNdBK8GnhgRcyNiNnAssHc17fURcVVEnB0Ru3Ugtunp9NO3FVfNbN5c5pMkgblKas3ppw8urgb86U/uV6hntb3AysxrgXcDXwMuBq4A7gU+BDwcOBRYD7x3uNdHxCkR0R8R/Rs2bGhP0FPdjTfWO58kTXPmKqlFI+07uF+hHtWRm1xk5kcz8/DMfBJwO/DzzLwlM+/NzK3ARyj93od77crM7MvMvnnz5rUz7Klr/vx655OkHmCuklow0r6D+xXqUZ26i+CDq8f5lD7t50XEng2znEjpnqE6LFsGs2ePPM/s2WU+SRJgrpJasmwZ7Ljj9uN32sn9CvWsTtzkAuCzETEXuAd4XWZuioj3R8ShQAJrgFd1KLbpZ+AC09NPL6fr58+HY4+FL3952/CyZV6IKjTW5jMAACAASURBVEmDmauk0QzsOyxeXG5uATB3LqxY4X6FelZkZqdjGLe+vr7s7+/vdBiSpJpFxOrM7Ot0HHUwV0nS9NQsV3Wki6AkSZIkTUcWWJIkSZJUEwssSZIkSaqJBZYkSZIk1cQCS5IkSZJqYoElSZIkSTWxwJIkSZKkmlhgSZIkSVJNLLAkSZIkqSYWWJIkSZJUEwssSZIkSaqJBZYkSZIk1cQCS5IkSZJqYoElSZIkSTWxwJIkSZKkmlhgSZIkSVJNLLAkSZIkqSYWWJIkSZJUEwssSZIkSaqJBZYkSZIk1cQCS5IkSZJqYoElSZIkSTWxwJIkSZKkmlhgSZIkSVJNLLAkSZIkqSYWWJIkSZJUEwssSZIkSaqJBZYkSZIk1cQCS5IkSZJqYoElSZIkSTXp3QJr1SpYsABmzCiPq1Z1OiJJkqTxcb9G6hozOx1AR6xaBaecAps3l+G1a8swwKJFnYtLkiRprNyvkbpKb57BOv30bY3QgM2by3hJkqSpxP0aqav0ZoF1441jGy9JktSt3K+RukpvFljz549tvCRJUrdyv0bqKr1ZYC1bBrNnDx43e3YZL0mSNJW4XyN1ld4ssBYtgpUrYZ99IKI8rlzphaCSJGnqcb9G6iq9eRdBKI2ODY8kSZoO3K+RukZvnsGSJEmSpElggSVJkiRJNelIgRURiyPi6oi4JiLeWI17UER8PSKurx5360RskiSBuUqSND5tL7Ai4iDglcARwCHAMyPiEcBpwDczc3/gm9WwJEltZ66SJI1XJ85gLQR+kJmbM3ML8G3gOcDxwLnVPOcCJ3QgNkmSwFwlSRqnThRYVwNPjIi5ETEbOBbYG9gjM9dX89wM7DHciyPilIjoj4j+DRs2tCdiSVKvMVdJksal7QVWZl4LvBv4GnAxcAVw75B5Esgmr1+ZmX2Z2Tdv3rzJDleS1IPMVZKk8erITS4y86OZeXhmPgm4Hfg5cEtE7AlQPd7aidgkSQJzlSRpfDp1F8EHV4/zKX3azwO+BLy0muWlwBc7EZskSWCukiSNz8wOve9nI2IucA/wuszcFBH/Bnw6Il4OrAX+pkOxSZIE5ipJ0jh0pMDKzCcOM24jcHQHwpEkaTvmKknSeHSki6AkSZIkTUcWWJIkSZJUEwssSZIkSaqJBZYkSZIk1cQCS5IkSZJqYoElSZIkSTWxwJIkSZKkmlhgSZIkSVJNLLAkSZIkqSYWWJIkSZJUEwssSZIkSaqJBZYkSZIk1cQCS5IkSZJqYoElSZIkSTWxwJIkSZKkmlhgSZIkSVJNLLAkSZIkqSYWWJIkSZJUEwssSZIkSaqJBZYkSZIk1cQCS5IkSZJqYoElSZIkSTWxwJIkSZKkmlhgSZIkSVJNLLAkSZIkqSYWWJIkSZJUEwssSZIkSaqJBZYkSZIk1cQCS5I0YZkjD0tSr7Fd7F0WWJKkCVm6FJYs2bbzkFmGly7tZFSS1Dm2i73NAkuSNG6ZsGkTrFixbWdiyZIyvGmTR2wl9R7bRc3sdACSpKkrApYvL89XrCh/AIsXl/ERnYtNkjrBdlGRU7iM7uvry/7+/k6HIUk9LxNmNPSJ2Lp1YjsREbE6M/smHlnnmauk3lR3u6ju0yxX2UVQkjQhA91fGjVeeyBJvcZ2sbdZYEmSxq3x2oLFi8sR2sWLB197IEm9xHZRXoMlSRq3CJgzZ/C1BQPXHsyZY3cYSb3HdlFegyVJmrDMwTsNQ4fHymuwJE11dbeL6j5egyVJmjRDdxrciZDU62wXe5cFliRJkiTVpCMFVkQsiYhrIuLqiDg/ImZFxDkRcUNEXFH9HdqJ2CRJAnOVJGl82n6Ti4h4GPAG4IDMvCsiPg28oJp8amZe2O6YJElqZK6SJI1Xp7oIzgTuFxEzgdnAbzoUhyRJzZirJElj1vYCKzN/DfwHcCOwHrgjM79WTV4WEVdFxPKI2Hm410fEKRHRHxH9GzZsaFPUkqReYq6SJI1X2wusiNgNOB7YF3gocP+IeDHwD8CjgMcCDwLeOtzrM3NlZvZlZt+8efPaFLUkqZeYqyRJ49WJLoJPBW7IzA2ZeQ/wOeDxmbk+iz8CHwOO6EBskiSBuUqSNE6jFlgRcXDN73kjcGREzI6IAI4Gro2IPav3C+AE4Oqa31eSNE2ZqyRJ3aKVuwh+sOpjfg6wKjPvmMgbZuYPIuJC4HJgC/BjYCXwlYiYBwRwBfDqibyPJKmnmKskSV1h1AIrM58YEfsDLwNWR8QPgY9l5tfH+6aZ+Q7gHUNGP2W8y5Mk9TZzlSSpW7R0DVZmXg+8nXIx75OBMyPiZxHxnMkMTpKkVpmrJEndoJVrsB4dEcuBaylH7p6VmQur58snOT5JkkZlrpIkdYtWrsF6P3AW8LbMvGtgZGb+JiLePmmRSZLUOnOVJKkrtFJgHQfclZn3AkTEDGBWZm7OzE9ManSSJLXGXCVJ6gqtXIP1DeB+DcOzq3GSJHULc5UkqSu0UmDNysw/DAxUz2dPXkiSJI2ZuUqS1BVaKbDujIjDBgYi4nDgrhHmlySp3cxVkqSu0Mo1WG8EPhMRv6H8sOJDgOdPalSSJI2NuUqS1BVa+aHhH0XEo4BHVqOuy8x7JjcsSZJaZ66SJHWLVs5gQUlYBwCzgMMigsz8+OSFJUnSmJmrJEkdN2qBFRHvAI6iJK0vA88ALgVMWpKkrmCukiR1i1ZucvE84Gjg5sw8GTgE2HVSo5IkaWzMVZKkrtBKgXVXZm4FtkTEA4Fbgb0nNyxJksbEXCVJ6gqtXIPVHxFzgI8Aq4E/AJdNalSSJI2NuUqS1BVGLLAiIoB/zcxNwIcj4mLggZl5VVuikyRpFOYqSVI3GbHAysyMiC8DB1fDa9oRlCRJrTJXSZK6SSvXYF0eEY+d9EgkSRo/c5UkqSu0cg3W44BFEbEWuBMIygHDR09qZJIktc5cJUnqCq0UWE+f9CgkSZoYc5UkqSu0UmDlpEchSQIgEyKaD6spc5XUBWzDpNauwfof4KLq8ZvAr4CvTGZQarNVq2D33UsLGFGer1rV6aiknrN0KSxZUnZIoDwuWVLGa1TmKk2+VatgwQKYMaM8Ds2Vo02f5mzDpGLUAiszD87MR1eP+wNH4G+LTB+rVsHJJ8PGjdvGbdwIL3tZzyUGqZMyYdMmWLFi2w7KkiVleNOmbTssGp65SpNu1So45RRYu7b8Q65dW4YHcuVo06c52zBpm8hxfOMj4ieZefAkxDMmfX192d/f3+kwprYFC0oSGM4++8CaNe2MRuppjTskAxYvhuXLe6+LTUSszsy+CS7DXKX6NMuXA7lytOk9wDZMvaZZrhq1wIqINzUMzgAOA+ZmZscvKDZp1WDGjOaHlSJg69b2xiP1uMzybzlg69be3DEZa4FlrtKka5YvB3LlaNN7hG2YekmzXNXKNVi7NPztTOnffny94alj5s8f3zRJtRs4+tuo8XoGjchcpcnVLCcOjB9teg+wDZOKVq7BOqPhb1lmrsrMu9sRnNpg2TLYccftx++0U5kmqS0au9YsXlyO+i5ePPh6BjVnrtKkW7YMZs8ePG727G25crTp05xtmLTNqAVWRHw9IuY0DO8WEV+d3LDUNosWwcc+BnPnbhs3dy6cfXaZJqktImDOnMHXKyxfXobnzLGLzWjMVZp0ixbBypXlmqqI8rhy5bZcOdr0ac42TNqmlWuwrsjMQ4eM+3FmPmZSI2uB/dolTTf+hkwxjmuwzFVSF7ANUy+ZyDVY90bEfR2II2If/EFHSZoUQ3dE3DFpmblK6gK2YRLMbGGe04FLI+LbQABPBE6Z1KgkSRobc5UkqSuMWmBl5sURcRhwZDXqjZl52+SGJUlS68xVkqRu0cpNLk4E7snMizLzImBLRJww+aFJktQac5UkqVu0cg3WOzLzjoGBzNwEvGPyQpIkaczMVZKkrtBKgTXcPK1cuyVJUruYqyRJXaGVAqs/Iv4zIh5e/f0nsHqyA5MkaQzMVZKkrtBKgfV3wJ+AC6q/PwKvm8ygJEkaI3OVJKkrtHIXwTuB09oQiyRJ42KukiR1i1ELrIiYB7wFOBCYNTA+M58yiXFJktQyc5UkqVu00kVwFfAzYF/gDGAN8KNJjEmSpLEyV0mSukIrBdbczPwo5fdFvp2ZLwMmdEQwIpZExDURcXVEnB8RsyJi34j4QUT8IiIuiIidJvIekqSeYq6SJHWFVgqse6rH9RFxXEQ8BnjQeN8wIh4GvAHoy8yDgB2AFwDvBpZn5iOA24GXj/c9JEk9x1wlSeoKrRRY74qIXYE3A38PnAUsmeD7zgTuFxEzgdnAesqRxgur6ecCJ0zwPSRJvcNcJUnqCq3cRfCi6ukdwF9O9A0z89cR8R/AjcBdwNcov1WyKTO3VLOtAx423Osj4hTgFID58+dPNBxJ0jRgrpIkdYtWzmDVKiJ2A46nXIj8UOD+wDGtvj4zV2ZmX2b2zZs3b5KilCT1MnOVJGm82l5gAU8FbsjMDZl5D/A54AnAnKobBsBewK87EJskSWCukiSNUycKrBuBIyNidkQEcDTwU+BbwPOqeV4KfLEDsUmSBOYqSdI4tVxgRcSREXFxRFwSEeO+qDczf0C5QPhy4CdVDCuBtwJviohfAHOBj473PSRJvclcJUnqtKY3uYiIh2TmzQ2j3gScCATwA+AL433TzHwH8I4ho38FHDHeZUqSeo+5SpLUbUa6i+CHI+Jy4D2ZeTewidItYivwu3YEJ0mTJRMimg9ryjBXqefYfkndrWkXwcw8AfgxcFFEvAR4I7AzpUuEv/shacpauhSWLCk7JVAelywp4zW1mKvUa2y/pO434jVYmfnfwNOBXYHPAz/PzDMzc0M7gpOkumXCpk2wYsW2nZQlS8rwpk3bdlo0dZir1Ctsv6SpoWmBFRHPjohvARcDVwPPB46PiE9FxMPbFaAk1SkCli+HxYvLTsmMGeVx8eIy3m42U4u5Sr3E9kuaGiKbHO6IiKsoF/LeD/hqZh5Rjd8f+OfMfEHbomyir68v+/v7Ox2GpCkos+ycDNi61Z2TbhIRqzOzr4X5zFXqObZfUndolqtG6iJ4B/Ac4LnArQMjM/P6bkhYkjReA91qGjVe06ApxVylnmL7JXW/kQqsEykXCc8EXtSecCRpcjVes7B4cTnyO9Ddxp2UKclcpZ5h+yVNDU1v056ZtwHvb2MskjTpImDOnMHXLCxfXqbNmWM3m6nGXKVeYvslTQ1Nr8GaCuzXLmm8/B2Z7tbqNVhTgblKdbP9krrDeK7BkqRpa+jOiDsnkqYK2y+pu1lgSZIkSVJNLLAkSZIkqSYWWJIkSZJUEwssSZIkSaqJBZYkSZIk1cQCS5IkSZJqYoElSZIkSTWxwJIkSZKkmlhgSZIkSVJNLLAkSZIkqSYWWJIkSZJUEwssSZIkSaqJBZYkSZIk1cQCS5IkSZJqYoElSZIkSTWxwJIkSZKkmlhgSZIkSVJNLLAkSZIkqSYWWJIkSZJUEwssSZIkSaqJBZYkSZIk1cQCS5IkSZJqYoElSZIkSTWxwJIkSZKkmlhgSZIkSVJNLLAkSZIkqSYWWJIkSZJUEwssSZIkSaqJBZbU4zJHHpYktc42VVLbC6yIeGREXNHw97uIeGNELI2IXzeMP7bdsUm9ZulSWLJk2w5AZhleurSTUUmdZ67SeNimSoIOFFiZeV1mHpqZhwKHA5uBz1eTlw9My8wvtzs2qZdkwqZNsGLFth2CJUvK8KZNHnVVbzNXaaxsUyUNmNnh9z8a+GVmro2IDoci9ZYIWL68PF+xovwBLF5cxvsvKd3HXKVR2aZKGtDpa7BeAJzfMPz6iLgqIs6OiN2Ge0FEnBIR/RHRv2HDhvZEKU1TjTsEA9wRkLZjrlJLbFMlQQcLrIjYCXg28Jlq1IeAhwOHAuuB9w73usxcmZl9mdk3b968tsQqTVcDXVgaNV4/IPU6c5XGwjZVEnT2DNYzgMsz8xaAzLwlM+/NzK3AR4AjOhibNO01Xh+weDFs3VoeG68fkGSuUmtsUyUN6OQ1WC+koctFROyZmeurwROBqzsSldQjImDOnMHXBwx0bZkzxy4tUsVcpZbYpkoaENmBQyoRcX/gRmC/zLyjGvcJSpeLBNYAr2pIYsPq6+vL/v7+SY5Wmt4yByf+ocNSJ0TE6szs63AM5iqNmW2q1Dua5aqOnMHKzDuBuUPG/W0nYpF63dDE746AVJirNB62qZI6fRdBSZIkSZo2LLAkSZIkqSYWWJIkSZJUEwssSZIkSaqJBZYkSZIk1cQCS5IkSZJqYoElSZIkSTWxwJIkSZKkmlhgSZIkSVJNLLAkSZIkqSYWWNIkyBx5WJI0PNtPSVNdbxdYq1bBggUwY0Z5XLWq0xFpGli6FJYs2bZTkFmGly7tZFSS1P0m1H6a0yV1id4tsFatglNOgbVrSwu+dm0ZtkHWBGTCpk2wYsW2nYQlS8rwpk0eiZWkZibUfprTJXWRyCm8x9fX15f9/f3je/GCBaUBHmqffWDNmomEpR7XuFMwYPFiWL4cIjoXlzSVRMTqzOzrdBx1mFCu6jHjbj/N6ZI6oFmu6t0Ca8aM4Q+HRcDWrRMLTD0vs3zFBmzdanEljYUFVu8aV/tpTpfUAc1yVe92EZw/f2zjpRYNHIFt1HhNgSRpeONuP83pkrpI7xZYy5bB7NmDx82eXcZL49TYvWXx4nLgdPHiwdcUSJK2N6H205wuqYvM7HQAHbNoUXk8/XS48cZylGvZsm3jpXGIgDlzBl8zsHx5mTZnjt0EJamZCbWf5nRJXaR3r8GSJlHm4J2BocOSRuY1WL3L9lPSVOE1WOoq0/2HJIfuDLhzIKlbdVt7bPspaaqzwFLb+UO8ktQdbI8lqX4WWGorf4hXkrqD7bEkTY7evcmFOqLxouUVK7b9mKQ/xCtJ7WV7LEmTw5tcqCP8IV5JI/EmF+1jeyxJ4+NNLtQ1/CFeSeoOtseSVD8LLLWVP8QrSd3B9liSJofXYKmt/CFeSeoOtseSNDm8Bksd4Q9JShqJ12C1j+2xJI2P12Cpq/hDkpLUHWyPJaleFliSJEmSVBMLLEmSJEmqiQWWJEmSJNXEAkuSJEmSamKBJUmSJEk1scCSJEmSpJpYYEmSJElSTSywJEmSJKkmFliSJEmSVBMLLEmSJEmqSdsLrIh4ZERc0fD3u4h4Y0Q8KCK+HhHXV4+7tTs2SZLAXCVJGr+2F1iZeV1mHpqZhwKHA5uBzwOnAd/MzP2Bb1bDkiS1nblKkjRene4ieDTwy8xcCxwPnFuNPxc4oWNRSZK0jblKktSyThdYLwDOr57vkZnrq+c3A3t0JiRJkgYxV0mSWtaxAisidgKeDXxm6LTMTCCbvO6UiOiPiP4NGzZMcpSSpF5mrpIkjVUnz2A9A7g8M2+phm+JiD0Bqsdbh3tRZq7MzL7M7Js3b16bQpUk9ShzlSRpTDpZYL2QbV0uAL4EvLR6/lLgi22PSJKkwcxVkqQx6UiBFRH3B/4K+FzD6H8D/ioirgeeWg1LktQR5ipJ0njM7MSbZuadwNwh4zZS7tQkSVLHmaskSePR6bsISpIkSdK0YYElSZIkSTWxwJIkSZKkmlhgSZIkSVJNLLAkSZIkqSYWWJIkSZJUEwssSZIkSaqJBZYkSZIk1cQCS5IkSZJqYoElSZIkSTWxwJIkSZKkmlhgSZIkSVJNLLAkSZIkqSYWWJIkSZJUEwssSZIkSaqJBZYkSZIk1cQCS5IkSZJqYoElSZIkSTWxwJIkSZKkmlhgSZIkSVJNLLAkSZIkqSYWWJIkSZJUEwssSZIkSaqJBZYkSZIk1cQCS5IkSZJqYoElSZIkSTWxwJIkSZKkmlhgSZIkSVJNLLAkSZIkqSYWWJIkSZJUEwssSZIkSaqJBZYkSZIk1cQCS5IkSZJqYoElSZIkSTWxwJIkSZKkmlhgSZIkSVJNLLAkSZIkqSYWWJIkSZJUEwssSZIkSaqJBdY0kDnysCSp82ybJak3dKTAiog5EXFhRPwsIq6NiD+PiKUR8euIuKL6O7YTsU01S5fCkiXbEndmGV66tJNRSdLUV2eusm2WpN7RqTNYK4CLM/NRwCHAtdX45Zl5aPX35Q7FNmVkwqZNsGLFtiJryZIyvGmTR0slaYJqy1W2zZLUO2a2+w0jYlfgScBJAJn5J+BPEdHuUKa8CFi+vDxfsaL8ASxeXMa7SSVpfOrMVatXlz/bZknqDZ04g7UvsAH4WET8OCLOioj7V9NeHxFXRcTZEbHbcC+OiFMioj8i+jds2NC2oLtVY5E1wAQuSRNWW64qi7FtlqRe0YkCayZwGPChzHwMcCdwGvAh4OHAocB64L3DvTgzV2ZmX2b2zZs3r00hd6+BboGNGq/JkiSNS225Ckqusm2WpN7QiQJrHbAuM39QDV8IHJaZt2TmvZm5FfgIcEQHYptSGq+5WrwYtm4tj43XZEmSxqW2XHX44bbNktRL2n4NVmbeHBE3RcQjM/M64GjgpxGxZ2aur2Y7Ebi63bFNNREwZ87gfv0D3QXnzLEriiSNV925yrZZknpH2wusyt8BqyJiJ+BXwMnAmRFxKJDAGuBVHYptSlm6tBwNHUjYA0WWCVySJqy2XGXbLEm9oyMFVmZeAfQNGf23nYhlOhiasE3gkjRxdecq22ZJ6g2d+h0sSZIkSZp2LLAkSZIkqSYWWJIkSZJUEwssSZIkSaqJBZYkSZIk1cQCS5IkSZJqYoElSZIkSTWxwJIkSZKkmlhgSZIkSVJNLLAkSZIkqSYWWJIkSZJUEwssSZIkSaqJBZYkSZIk1SQys9MxjFtEbADWjjDL7sBtbQqnTlM1bjD2TpmqsU/VuMHYJ9s+mTmv00HUoYVcVZep8LlOFte9N/XyukNvr3+3rPuwuWpKF1ijiYj+zOzrdBxjNVXjBmPvlKka+1SNG4xd3aeXP1fX3XXvRb28/t2+7nYRlCRJkqSaWGBJkiRJUk2me4G1stMBjNNUjRuMvVOmauxTNW4wdnWfXv5cXffe1MvrDr29/l297tP6GixJkiRJaqfpfgZLkiRJktrGAkuSJEmSajJtCqyIODsibo2IqxvGPSgivh4R11ePu3UyxuFExN4R8a2I+GlEXBMRi6vxUyH2WRHxw4i4sor9jGr8vhHxg4j4RURcEBE7dTrW4UTEDhHx44i4qBqeKnGviYifRMQVEdFfjev67wtARMyJiAsj4mcRcW1E/PlUiD0iHllt74G/30XEG6dI7Euq/8+rI+L86v92SnzXe01EHBMR11Wfy2nDTN+5+rx+UX1+Cxqm/UM1/rqIePoYlnlmRPxhstapVe1c9yiWRcTPq3boDZO9fqNp8/ofHRGXV23ZpRHxiMlev5FM0rpvt09Yje+qNrvN6/7vUXLvVRHx+YiYM5nrNpp2rnvD9DdHREbE7pOxToNk5rT4A54EHAZc3TDuPcBp1fPTgHd3Os5h4t4TOKx6vgvwc+CAKRJ7AA+onu8I/AA4Evg08IJq/IeB13Q61ibxvwk4D7ioGp4qca8Bdh8yruu/L1Vs5wKvqJ7vBMyZKrE3rMMOwM3APt0eO/Aw4AbgftXwp4GTpsp3vZf+qu/VL4H9qv+NK4EDhszzWuDD1fMXABdUzw+o5t8Z2Ldazg6jLRPoAz4B/KGX1h04Gfg4MKMafnCPrf/PgYUNyz1nOq17NW27fcJqfNe02R1Y96cBM6vn7+6lda+m7Q18lfKj77tP1roN/E2bM1iZ+R3gt0NGH0/ZoaN6PKGtQbUgM9dn5uXV898D11J2iqZC7JmZA0c+d6z+EngKcGE1vitjj4i9gOOAs6rhYArEPYKu/75ExK6Uxu+jAJn5p8zcxBSIfYijgV9m5lqmRuwzgftFxExgNrCeqf1dn66OAH6Rmb/KzD8Bn6J8vxo1ft8uBI6u2q7jgU9l5h8z8wbgF9Xymi4zInYA/h14yySvVyvauu7Aa4B3ZuZWgMy89f+3d+dBUpRnHMe/P1G5RaNGRRIRhViegEgZJUaMWl4FRUniQakYTTQxJmqRKiNGK+YoEqOJR0WjRExSxLJErvJEAWPEG1xOEVFXBUXRUjxRhCd/vM9AM+wMu7OzM7O7z6dqa6e73377eWd633ff7rffacGyNUaly2/ADv66B/BWC5WrMVqi7IX+J8zPq9p1X0XLbmYzzOwrX3wa6FXuAjVBpT93gL+Q6ruKzO7XZjpYBexmZm/761XAbtUMZmv89ucA0p2gVhG70jC7OuBd4BHSlYQPM3/EK0gdxlrzV9If2gZf3pnWETekymGGpLmSfuzrWsP5sjewGpigNDRzvKSutI7Ys04H7vLXNR27ma0E/gy8QepYrQHm0nrO9fZkT+DNzHJDn8vGNP75rSHVXYX2LZbnz4DpmfO3mipd9n2A0yQ9L+lBSX3LVI5SVbr85wMPSFoBnAWMK0spStMSZS+mlursSpc964fAg02Mt5wqWnZJw4GVZja/eWE3XlvvYG1k6f5gzc5JL6kbcC9wiZl9lN1Wy7Gb2Xoz60+6EjIY2K/KIW2VpFOAd81sbrVjKdEQMxsInAhcJOmo7MYaPl+2Jd26v8XMBgCfkoZobFTDsQOg9KzSMOCe/G21GLs/XzCc1LntCXQFTqhqUKHqJPUEvg/cVO1YqqQjsNbMBgG3A3dUOZ5KuxQ4ycx6AROA66scT1XUYp1dCZLGAl8BE6sdSyVI6gJcAVxVyeO29Q7WO5L2APDf1R4G0CBJ25E6VxPNbLKvbhWx5/hQr9nAt4EdfTgSpI7XyqoF1rAjgWGS6km3pY8BbqD24wY23pXIDWuZQurYtobzZQWwwsye8eVJpA5Xa4g950Rgnpm948u1HvuxwGtmttrM1gGTSed/qzjX25mVpGcEchr6XDam8c+vB/B+kX0LrR8A7Ass93qwi6Tl5SpICSpZF3i0dgAACTdJREFUdkh1Ua6tnQIc3OwSNE/Fyi9pV+CQTD18N3BEeYpRkpYoezG1VGdXuuxIGg2cAozyDma1VLLs+5AuMs73+q4XME/S7s2If6vaegdrOnCOvz4HmFbFWBrk40n/AbxoZtmrSK0h9l1zs9BI6gwcR3qGbDYw0pPVXOxm9isz62VmvUnDvWaZ2ShqPG4ASV0ldc+9Jj20uohWcL6Y2SrgTUnf8lXfA5bQCmLPOINNwwOh9mN/AzhcUheva3Lvec2f6+3Qc0BfpRketyfVTdPz0mTPt5Gkust8/ek+69beQF/g2UJ5mtn9Zra7mfX2evAzM6vmTHIVK7vvPxUY6q+/S5r0oZoqWf4PgB6S+nleuXa7Wlqi7MXUUp1d0bJLOoH0aMQwM/usjOUoRcXKbmYLzezrmfpuBWlyuVXlLdKWB24TP6R/et4G1vmbdx5prOZM4GXgUeBr1Y6zgbiHkG5RLwDq/OekVhL7wcALHvsi4Cpf34d0si8nDaXqWO1Yi5ThaDbNIljzcXuM8/1nMTDW19f8+eJx9gee93NmKrBTK4q9K+nqWY/MupqPHfgNsNT/Rv9NGh5V8+d6e/zxun8Z6VnW3N/2NaR/iAA6+ee13D+/Ppl9x/p+LwEnFsuzgeNWdRbBSpedNHvp/cBC4CnSHZ32VP4RXvb5wGPZvNpQ2bf4n9DX11SdXeGyLyc9u5T7X/PW9lL2vOPWU4FZBOUHCyGEEEIIIYTQTG19iGAIIYQQQgghVEx0sEIIIYQQQgihTKKDFUIIIYQQQghlEh2sEEIIIYQQQiiT6GCFEEIIIYQQQplEByu0aZI+aUSa8ZL299dX5G17srHHkNRT0qQSYtxR0k8zyyXlUyDvS/xbzHPLD+S+u6ycJO0h6b4i27eX9Hjmy21DCCGUiaRekqZJelnSq5JultSxwjGMltQzs7yxbS3zcTpL+q+kDkXSPCppp3IfO4TGimnaQ5sm6RMz69ZS6UvdJ2//3qTv4jqw1DyK5F0PDDKz98qdd95xrgWeMLOCX9oo6WpguZlNbMlYQgihPfEvEX8GuMXMJnjH4zbS95v9ogz5dzCz9Y1I9xgwxsyeb+4xt3Kci4BtzeyGImnOAXqZ2e9bMpYQCok7WKFdkHS0pMckTZK0VNJEb5Tw9YMkjQM6S6qTNNG35e5OdZM0U9I8SQslDW/gGL0lLfLX4z2fOkmrJV1dJI9xwD6e9tq8fDpJmuDpX5A01NePljRZ0kN+xfJPDcTzc6AnMFvSbF9XL2kXP8ZSSXdKWubvx7GS5nh+gz19V0l3SHrWj79Fud2pwEO+zwGevk7SAkl9Pc1UYFQTP7oQQgjFHQOsNbMJAN4ZuhQ429ud0ZJuziWWdJ+ko/318ZKe8nbpHkndfH29pD9Kmgdc7r9z+/fNLvu6kcAgYKLX/Z1zbatv/8Tbt8V+d2mwb39V0jBP08HTPOdtxwUFyjsKmOb77KE0OqJO0iJJ3/E004EzmvWuhtAM0cEK7ckA4BJgf6APcGR2o5ldDnxuZv3NLL8jsBYYYWYDgaHAdbkOWkPM7Hwz6w8MB94D7iySx+XAK37cX+ZldVHKzg4iNRb/lNTJt/UHTgMOAk6T9I28GG4E3gKGmtnQBsLcF7gO2M9/zgSGAGOA3FDJscAsMxvsMV8rqWs2E0l7Ax+Y2Re+6kLgBi//INK3qQMsAg4r9J6FEEIoyQHA3OwKM/sIqCfV8w2StAtwJXCst0vPA5dlkrxvZgP9LtAaSf19/bnAhLzjTfL9R3lb9nne4bqS2pIDgI+B3wHHASOAazzNecAaMzuM1Fb8yNuXbMzbA33MrN5XnQk87O3NIUCdx/MB0FHSzoXKH0JLiuchQnvyrJmtAJBUB/QGnmjkvgL+IOkoYAOwJ7AbsKrgDqkjdA9wsZm9Lmm7AnkUMwS4CcDMlkp6Hejn22aa2Ro/1hJgL+DNRpYH4DUzW+j7L/b8TNJC0nsDcDwwTNIYX+4EfBN4MZPPHsDqzPJTwFhJvYDJZvayx79e0peSupvZx02IM4QQQvkdTrrgOMevF25Pqr9z7s68Hg+cK+ky0oW9wU081pf4KAdgIfCFma1roL052O+GAfQA+gKvZfLZBfgws/wccIe3r1PNrC6z7V3SKI73mxhrCM0WHazQnnyReb2epp3/o4BdgUO9UagndTaKuZXUwXi0GXkU05zy5O+/IbO8IZOXgFPN7KUi+XxOphxm9h9JzwAnAw9IusDMZvnmjqQ7eSGEEMpjCTAyu0LSDsDuwEvAgWw+YilXXwt4xMwKDaX7NPP6XuBqYBYw18ya2mlZZ5se+t/Y3pjZBm2a/EikC5IPF8knv7153C9angzcKel6M/uXb+7k6UOouBgiGMLm1vmVsHw9gHe9YzSUdLeoIKWHcLub2bhG5PEx0L1AVv/Dn1uS1I9096hYZydfsbwb42Hg4txwSEkDGkizjE1XIJHUB3jVhyhOAw729TsD75nZumbEE0IIYXMzgS6Szob0LBNp+PfNPlSvHugvaRsfSp67+/Q0cKSkfX2/rt7ObMHM1pLag1vIGx6YUY725ie5NlhSv/wh6T70r0NuqLykvYB3zOx20l22gb5epA5mfTPiCaFk0cEKYXO3AQvkk1xkTAQG+XCGs4GlW8lnDHCQNk10cWGhPPxK4Bx/QPfavHz+Bmzj+9wNjM4869TY8jwkn+SiBL8FtiO9J4t9eTNm9inwSq6RBn4ALPJhmAcCuauJQ4H7S4wjhBBCA/zO0AhgpKSXSUPiNmRm0JtDGma3BLgRmOf7rQZGA3dJWkAaHrhfkUNNJN19mlFg+53ArblJLkooyniPcZ7SRE9/p+GRGTNIw+cBjgbmS3qBNHQxN7PgocDTZvZVCXGE0GwxTXsIodkkjSANfbyySJrJwOVmtqxykYUQQvsi6QjgLtKkSvO2lr4J+Y4BepjZr8uVZ4lxDAQuNbOziqS5AZhuZjMrF1kIm8QzWCGEZjOzKcVma/KZn6ZG5yqEEFqWmT3JVoaxN5WkKcA+pCnhq8rM5kmareLfz7UoOlehmuIOVgghhBBCCCGUSTyDFUIIIYQQQghlEh2sEEIIIYQQQiiT6GCFEEIIIYQQQplEByuEEEIIIYQQyiQ6WCGEEEIIIYRQJv8H/XFH1OqLCOgAAAAASUVORK5CYII=\n", "text/plain": [ "<Figure size 864x432 with 2 Axes>" ] }, "metadata": { "needs_background": "light" }, "output_type": "display_data" } ], "source": [ "# Make a comparison between annoy and nmslib indexer\n", "plt.figure(1, figsize=(12, 6))\n", "plt.subplot(121)\n", "plt.scatter(nmslib_y_values_init, nmslib_y_values_accuracy, label=\"nmslib\", color='r', marker='o')\n", "plt.scatter(annoy_y_values_init, annoy_y_values_accuracy, label=\"annoy\", color='b', marker='x')\n", "plt.legend()\n", "plt.title(\"Initialization time vs accuracy. Upper left is better.\")\n", "plt.ylabel(\"% accuracy\")\n", "plt.xlabel(\"Initialization time (s)\")\n", "plt.subplot(122)\n", "plt.scatter(nmslib_y_values_query, nmslib_y_values_accuracy, label=\"nmslib\", color='r', marker='o')\n", "plt.scatter(annoy_y_values_query, annoy_y_values_accuracy, label=\"annoy\", color='b', marker='x')\n", "plt.legend()\n", "plt.title(\"Query time vs accuracy. Upper left is better.\")\n", "plt.ylabel(\"% accuracy\")\n", "plt.xlabel(\"Query time (s)\")\n", "plt.xlim(min(nmslib_y_values_query+annoy_y_values_query), max(nmslib_y_values_query+annoy_y_values_query))\n", "plt.tight_layout()\n", "plt.show()" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### 6. Work with Google word2vec files\n", "\n", "Our model can be exported to a word2vec C format. There is a binary and a plain text word2vec format. Both can be read with a variety of other software, or imported back into gensim as a `KeyedVectors` object." ] }, { "cell_type": "code", "execution_count": 74, "metadata": {}, "outputs": [], "source": [ "# To export our model as text\n", "model.wv.save_word2vec_format('/tmp/vectors.txt', binary=False)" ] }, { "cell_type": "code", "execution_count": 37, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "71290 100\n", "the -0.20548718 0.19478682 -0.15149663 -0.31142342 0.014471135 -0.17996445 -0.07373469 0.09573618 -0.06328416 0.15571225 0.021413572 -0.12776679 -0.16940169 0.15807933 -0.21688043 0.074471496 0.08091913 0.07911484 0.31909388 -0.12297766 0.16993207 -0.02962172 0.08481803 0.12566781 0.02949822 -0.009697897 0.10780254 -0.102594994 -0.03935867 0.2679534 -0.061677158 -0.26071545 0.16285498 0.051780242 -0.1697231 0.24037386 0.0726078 -0.090416454 0.0776138 -0.06611322 0.057015926 0.07859522 -0.1910579 0.2974446 -0.033308737 -0.07360004 0.10797568 0.3595622 0.26797494 -0.062491674 0.21733648 -0.08524646 -0.06860078 -0.01714756 0.1305319 -0.09754544 -0.11249808 0.27328265 0.0041686473 -0.09874534 -0.30283058 0.111191 -0.026302295 -0.095534325 -0.0907799 -0.09120328 0.00068672217 0.31802058 -0.03345536 0.103762306 0.068564445 0.07402255 0.013657822 0.020439595 0.14985266 -0.13516407 0.36674532 0.0077319355 0.24709526 0.07666927 -0.11271039 0.02220251 -0.0235162 0.06409378 -0.10098407 0.23384795 0.094924204 0.061178204 0.19992544 0.29211295 0.004201066 0.12897494 -0.07837112 0.06269808 0.18545003 0.10452479 0.093281575 -0.24360427 0.01996208 0.35048977\n", "of -0.19580448 0.209091 -0.099757686 -0.21272708 0.022300478 -0.21946296 -0.19841547 0.09413904 0.08382151 0.20281556 0.12914163 -0.062828615 -0.24957581 0.29098126 -0.12465087 0.09803499 0.08116001 0.06726196 0.2615518 -0.035177294 0.06914535 -0.09427601 0.0011476864 0.23290296 0.0034714406 0.009549841 0.03912403 0.11168332 -0.10166585 0.34404838 -0.08050078 -0.3933344 0.17402974 -0.15764657 -0.21314052 0.20686424 0.034598276 0.16018851 0.14357902 0.046236232 0.075825214 0.029642927 -0.059190348 0.4163471 -0.1367429 -0.017528763 0.19181107 0.2601198 -0.020112848 -0.23402186 0.2841525 -0.10974068 -0.002565893 0.00070757867 0.13032512 -0.002393167 -0.14120881 0.22138755 0.027622899 0.06942904 -0.39498508 0.1133777 0.19053803 -0.062439334 -0.025348661 -0.11142109 0.015062763 0.3285828 -0.09184951 0.2661699 -0.11710489 -0.15770112 -0.12773664 0.15360866 0.08832063 -0.20914252 0.32392043 -0.023845093 0.3131217 0.08974748 -0.11354328 -0.2037927 -0.06780317 0.20184614 -0.13539118 0.2029387 0.07701099 -0.048417546 0.09797926 0.284204 0.036153372 0.17912139 -0.118080124 -0.025121484 0.10947146 0.09291596 0.1244357 0.006804844 0.025120731 0.28958535\n" ] } ], "source": [ "from smart_open import open\n", "# View the first 3 lines of the exported file\n", "\n", "# The first line has the total number of entries and the vector dimension count. \n", "# The next lines have a key (a string) followed by its vector.\n", "with open('/tmp/vectors.txt') as myfile:\n", " for i in range(3):\n", " print(myfile.readline().strip())" ] }, { "cell_type": "code", "execution_count": 38, "metadata": {}, "outputs": [], "source": [ "# To import a word2vec text model\n", "wv = KeyedVectors.load_word2vec_format('/tmp/vectors.txt', binary=False)" ] }, { "cell_type": "code", "execution_count": 39, "metadata": {}, "outputs": [], "source": [ "# To export our model as binary\n", "model.wv.save_word2vec_format('/tmp/vectors.bin', binary=True)" ] }, { "cell_type": "code", "execution_count": 40, "metadata": {}, "outputs": [], "source": [ "# To import a word2vec binary model\n", "wv = KeyedVectors.load_word2vec_format('/tmp/vectors.bin', binary=True)" ] }, { "cell_type": "code", "execution_count": 41, "metadata": {}, "outputs": [], "source": [ "# To create and save Nmslib Index from a loaded `KeyedVectors` object \n", "nmslib_index = NmslibIndexer(wv, \n", " {'M': 100, 'indexThreadQty': 1, 'efConstruction': 100}, {'efSearch': 100})\n", "nmslib_index.save('/tmp/mymodel.index')" ] }, { "cell_type": "code", "execution_count": 44, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Approximate Neighbors\n", "('cat', 1.0)\n", "('cats', 0.8335747122764587)\n", "('meow', 0.8298084139823914)\n", "('leopardus', 0.8215900659561157)\n", "('albino', 0.8207193315029144)\n", "('poodle', 0.8168523907661438)\n", "('saimiri', 0.8167656660079956)\n", "('squirrel', 0.8138661682605743)\n", "('sighthound', 0.8134040832519531)\n", "('proboscis', 0.8130573630332947)\n", "('eared', 0.812840610742569)\n", "\n", "Normal (not Nmslib-indexed) Neighbors\n", "('cat', 1.0)\n", "('cats', 0.6671494245529175)\n", "('meow', 0.6596168279647827)\n", "('leopardus', 0.6431801319122314)\n", "('albino', 0.6414386034011841)\n", "('poodle', 0.633704662322998)\n", "('saimiri', 0.633531391620636)\n", "('squirrel', 0.6277321577072144)\n", "('sighthound', 0.6268081665039062)\n", "('proboscis', 0.6261147260665894)\n", "('eared', 0.6256811618804932)\n" ] } ], "source": [ "# Load and test the saved word vectors and saved nmslib index\n", "wv = KeyedVectors.load_word2vec_format('/tmp/vectors.bin', binary=True)\n", "nmslib_index = NmslibIndexer.load('/tmp/mymodel.index')\n", "nmslib_index.model = wv\n", "\n", "vector = wv[\"cat\"]\n", "approximate_neighbors = wv.most_similar([vector], topn=11, indexer=nmslib_index)\n", "# Neatly print the approximate_neighbors and their corresponding cosine similarity values\n", "print(\"Approximate Neighbors\")\n", "for neighbor in approximate_neighbors:\n", " print(neighbor)\n", "\n", "normal_neighbors = wv.most_similar([vector], topn=11)\n", "print(\"\\nNormal (not Nmslib-indexed) Neighbors\")\n", "for neighbor in normal_neighbors:\n", " print(neighbor)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Recap\n", "In this notebook we used the Nmslib module to build an indexed approximation of our word embeddings. To do so, we did the following steps:\n", "1. Download Text8 Corpus\n", "2. Build Word2Vec Model\n", "3. Construct NmslibIndex with model & make a similarity query\n", "4. Verify & Evaluate performance\n", "5. Evaluate relationship of parameters to initialization/query time and accuracy, compared with annoy\n", "6. Work with Google's word2vec C formats" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.6.0" } }, "nbformat": 4, "nbformat_minor": 2 }
301,877
Python
.py
1,076
275.740706
71,948
0.923039
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,946
Training_visualizations.ipynb
piskvorky_gensim/docs/notebooks/Training_visualizations.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Setup Visdom\n", "\n", "Install it with:\n", "\n", "`pip install visdom`\n", "\n", "Start the server:\n", "\n", "`python -m visdom.server`\n", "\n", "Visdom now can be accessed at http://localhost:8097 in the browser.\n", "\n", "\n", "# LDA Training Visualization\n", "\n", "Knowing about the progress and performance of a model, as we train them, could be very helpful in understanding it’s learning process and makes it easier to debug and optimize them. In this notebook, we will learn how to visualize training statistics for LDA topic model in gensim. To monitor the training, a list of Metrics is passed to the LDA function call for plotting their values live as the training progresses. \n", "\n", "\n", "<img src=\"visdom_graph.png\">\n", "\n", "\n", "Let's plot the training stats for an LDA model being trained on kaggle's [fake news dataset](https://www.kaggle.com/mrisdal/fake-news). We will use the four evaluation metrics available for topic models in gensim: Coherence, Perplexity, Topic diff and Convergence. (using separate hold_out and test corpus for evaluating the perplexity)" ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [ { "ename": "FileNotFoundError", "evalue": "[Errno 2] File b'fake.csv' does not exist: b'fake.csv'", "output_type": "error", "traceback": [ "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", "\u001b[0;31mFileNotFoundError\u001b[0m Traceback (most recent call last)", "\u001b[0;32m<ipython-input-1-de0530cf9fd8>\u001b[0m in \u001b[0;36m<module>\u001b[0;34m\u001b[0m\n\u001b[1;32m 7\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mnumpy\u001b[0m \u001b[0;32mas\u001b[0m \u001b[0mnp\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 8\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m----> 9\u001b[0;31m \u001b[0mdf_fake\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mpd\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mread_csv\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m'fake.csv'\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 10\u001b[0m \u001b[0mdf_fake\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;34m'title'\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m'text'\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m'language'\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mhead\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 11\u001b[0m \u001b[0mdf_fake\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mdf_fake\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mloc\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mpd\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mnotnull\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mdf_fake\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mtext\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m)\u001b[0m \u001b[0;34m&\u001b[0m \u001b[0;34m(\u001b[0m\u001b[0mdf_fake\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mlanguage\u001b[0m \u001b[0;34m==\u001b[0m \u001b[0;34m'english'\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", "\u001b[0;32m~/envs/gensim/lib/python3.7/site-packages/pandas/io/parsers.py\u001b[0m in \u001b[0;36mparser_f\u001b[0;34m(filepath_or_buffer, sep, delimiter, header, names, index_col, usecols, squeeze, prefix, mangle_dupe_cols, dtype, engine, converters, true_values, false_values, skipinitialspace, skiprows, skipfooter, nrows, na_values, keep_default_na, na_filter, verbose, skip_blank_lines, parse_dates, infer_datetime_format, keep_date_col, date_parser, dayfirst, iterator, chunksize, compression, thousands, decimal, lineterminator, quotechar, quoting, doublequote, escapechar, comment, encoding, dialect, tupleize_cols, error_bad_lines, warn_bad_lines, delim_whitespace, low_memory, memory_map, float_precision)\u001b[0m\n\u001b[1;32m 700\u001b[0m skip_blank_lines=skip_blank_lines)\n\u001b[1;32m 701\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 702\u001b[0;31m \u001b[0;32mreturn\u001b[0m \u001b[0m_read\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mfilepath_or_buffer\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mkwds\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 703\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 704\u001b[0m \u001b[0mparser_f\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m__name__\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mname\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", "\u001b[0;32m~/envs/gensim/lib/python3.7/site-packages/pandas/io/parsers.py\u001b[0m in \u001b[0;36m_read\u001b[0;34m(filepath_or_buffer, kwds)\u001b[0m\n\u001b[1;32m 427\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 428\u001b[0m \u001b[0;31m# Create the parser.\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 429\u001b[0;31m \u001b[0mparser\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mTextFileReader\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mfilepath_or_buffer\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m**\u001b[0m\u001b[0mkwds\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 430\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 431\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0mchunksize\u001b[0m \u001b[0;32mor\u001b[0m \u001b[0miterator\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", "\u001b[0;32m~/envs/gensim/lib/python3.7/site-packages/pandas/io/parsers.py\u001b[0m in \u001b[0;36m__init__\u001b[0;34m(self, f, engine, **kwds)\u001b[0m\n\u001b[1;32m 893\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0moptions\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;34m'has_index_names'\u001b[0m\u001b[0;34m]\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mkwds\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;34m'has_index_names'\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 894\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 895\u001b[0;31m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_make_engine\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mengine\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 896\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 897\u001b[0m \u001b[0;32mdef\u001b[0m \u001b[0mclose\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", "\u001b[0;32m~/envs/gensim/lib/python3.7/site-packages/pandas/io/parsers.py\u001b[0m in \u001b[0;36m_make_engine\u001b[0;34m(self, engine)\u001b[0m\n\u001b[1;32m 1120\u001b[0m \u001b[0;32mdef\u001b[0m \u001b[0m_make_engine\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mengine\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;34m'c'\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1121\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0mengine\u001b[0m \u001b[0;34m==\u001b[0m \u001b[0;34m'c'\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m-> 1122\u001b[0;31m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_engine\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mCParserWrapper\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mf\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m**\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0moptions\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 1123\u001b[0m \u001b[0;32melse\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1124\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0mengine\u001b[0m \u001b[0;34m==\u001b[0m \u001b[0;34m'python'\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", "\u001b[0;32m~/envs/gensim/lib/python3.7/site-packages/pandas/io/parsers.py\u001b[0m in \u001b[0;36m__init__\u001b[0;34m(self, src, **kwds)\u001b[0m\n\u001b[1;32m 1851\u001b[0m \u001b[0mkwds\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;34m'usecols'\u001b[0m\u001b[0;34m]\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0musecols\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1852\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m-> 1853\u001b[0;31m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_reader\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mparsers\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mTextReader\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0msrc\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m**\u001b[0m\u001b[0mkwds\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 1854\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0munnamed_cols\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_reader\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0munnamed_cols\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1855\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n", "\u001b[0;32mpandas/_libs/parsers.pyx\u001b[0m in \u001b[0;36mpandas._libs.parsers.TextReader.__cinit__\u001b[0;34m()\u001b[0m\n", "\u001b[0;32mpandas/_libs/parsers.pyx\u001b[0m in \u001b[0;36mpandas._libs.parsers.TextReader._setup_parser_source\u001b[0;34m()\u001b[0m\n", "\u001b[0;31mFileNotFoundError\u001b[0m: [Errno 2] File b'fake.csv' does not exist: b'fake.csv'" ] } ], "source": [ "from gensim.models import ldamodel\n", "from gensim.corpora import Dictionary\n", "import pandas as pd\n", "import re\n", "from gensim.parsing.preprocessing import remove_stopwords, strip_punctuation\n", "\n", "import numpy as np\n", "\n", "df_fake = pd.read_csv('fake.csv')\n", "df_fake[['title', 'text', 'language']].head()\n", "df_fake = df_fake.loc[(pd.notnull(df_fake.text)) & (df_fake.language == 'english')]\n", "\n", "# remove stopwords and punctuations\n", "def preprocess(row):\n", " return strip_punctuation(remove_stopwords(row.lower()))\n", " \n", "df_fake['text'] = df_fake['text'].apply(preprocess)\n", "\n", "# Convert data to required input format by LDA\n", "texts = []\n", "for line in df_fake.text:\n", " lowered = line.lower()\n", " words = re.findall(r'\\w+', lowered, flags = re.UNICODE | re.LOCALE)\n", " texts.append(words)\n", "\n", "dictionary = Dictionary(texts)\n", "\n", "training_texts = texts[:5000]\n", "holdout_texts = texts[5000:7500]\n", "test_texts = texts[7500:10000]\n", "\n", "training_corpus = [dictionary.doc2bow(text) for text in training_texts]\n", "holdout_corpus = [dictionary.doc2bow(text) for text in holdout_texts]\n", "test_corpus = [dictionary.doc2bow(text) for text in test_texts]" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "scrolled": false }, "outputs": [], "source": [ "from gensim.models.callbacks import CoherenceMetric, DiffMetric, PerplexityMetric, ConvergenceMetric\n", "\n", "# define perplexity callback for hold_out and test corpus\n", "pl_holdout = PerplexityMetric(corpus=holdout_corpus, logger=\"visdom\", title=\"Perplexity (hold_out)\")\n", "pl_test = PerplexityMetric(corpus=test_corpus, logger=\"visdom\", title=\"Perplexity (test)\")\n", "\n", "# define other remaining metrics available\n", "ch_umass = CoherenceMetric(corpus=training_corpus, coherence=\"u_mass\", logger=\"visdom\", title=\"Coherence (u_mass)\")\n", "ch_cv = CoherenceMetric(corpus=training_corpus, texts=training_texts, coherence=\"c_v\", logger=\"visdom\", title=\"Coherence (c_v)\")\n", "diff_kl = DiffMetric(distance=\"kullback_leibler\", logger=\"visdom\", title=\"Diff (kullback_leibler)\")\n", "convergence_kl = ConvergenceMetric(distance=\"jaccard\", logger=\"visdom\", title=\"Convergence (jaccard)\")\n", "\n", "callbacks = [pl_holdout, pl_test, ch_umass, ch_cv, diff_kl, convergence_kl]\n", "\n", "# training LDA model\n", "model = ldamodel.LdaModel(corpus=training_corpus, id2word=dictionary, num_topics=35, passes=50, chunksize=1500, iterations=200, alpha='auto', callbacks=callbacks)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "When the model is set for training, you can open http://localhost:8097 to see the training progress." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# to get a metric value on a trained model\n", "print(CoherenceMetric(corpus=training_corpus, coherence=\"u_mass\").get_value(model=model))" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The four types of graphs which are plotted for LDA:\n", "\n", "**Coherence**\n", "\n", "Coherence measures are generally based on the idea of computing the sum of pairwise scores of top *n* words w<sub>1</sub>, ...,w<sub>n</sub> used to describe the topic. There are four coherence measures available in gensim: `u_mass, c_v, c_uci, c_npmi`. A good model will generate coherent topics, i.e., topics with high topic coherence scores. Good topics can be described by a short label based on the topic terms they spit out. \n", "\n", "<img src=\"Coherence.gif\">\n", "\n", "Now, this graph along with the others explained below, can be used to decide if it's time to stop the training. We can see if the value stops changing after some epochs and that we are able to get the highest possible coherence of our model. \n", "\n", "\n", "**Perplexity**\n", "\n", "Perplexity is a measurement of how well a probability distribution or probability model predicts a sample. In LDA, topics are described by a probability distribution over vocabulary words. So, perplexity can be used to evaluate the topic-term distribution output by LDA.\n", "\n", "<img src=\"Perplexity.gif\">\n", "\n", "For a good model, perplexity should be low.\n", "\n", "\n", "**Topic Difference**\n", "\n", "Topic Diff calculates the distance between two LDA models. This distance is calculated based on the topics, by either using their probability distribution over vocabulary words (kullback_leibler, hellinger) or by simply using the common vocabulary words between the topics from both model.\n", "\n", "<img src=\"Diff.gif\">\n", "\n", "In the heatmap, X-axis define the Epoch no. and Y-axis define the distance between identical topics from consecutive epochs. For ex. a particular cell in the heatmap with values (x=3, y=5, z=0.4) represent the distance(=0.4) between the topic 5 from 3rd epoch and topic 5 from 2nd epoch. With increasing epochs, the distance between the identical topics should decrease.\n", " \n", " \n", "**Convergence**\n", "\n", "Convergence is the sum of the difference between all the identical topics from two consecutive epochs. It is basically the sum of column values in the heatmap above.\n", "\n", "<img src=\"Convergence.gif\">\n", "\n", "The model is said to be converged when the convergence value stops descending with increasing epochs." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Training Logs\n", "\n", "We can also log the metric values after every epoch to the shell apart from visualizing them in Visdom. The only change is to define `logger=\"shell\"` instead of `\"visdom\"` in the input callbacks." ] }, { "cell_type": "code", "execution_count": null, "metadata": { "scrolled": false }, "outputs": [], "source": [ "import logging\n", "from gensim.models.callbacks import CoherenceMetric, DiffMetric, PerplexityMetric, ConvergenceMetric\n", "\n", "logging.basicConfig(level=logging.INFO)\n", "logger = logging.getLogger(__name__)\n", "logger.setLevel(logging.DEBUG)\n", "\n", "# define perplexity callback for hold_out and test corpus\n", "pl_holdout = PerplexityMetric(corpus=holdout_corpus, logger=\"shell\", title=\"Perplexity (hold_out)\")\n", "pl_test = PerplexityMetric(corpus=test_corpus, logger=\"shell\", title=\"Perplexity (test)\")\n", "\n", "# define other remaining metrics available\n", "ch_umass = CoherenceMetric(corpus=training_corpus, coherence=\"u_mass\", logger=\"shell\", title=\"Coherence (u_mass)\")\n", "diff_kl = DiffMetric(distance=\"kullback_leibler\", logger=\"shell\", title=\"Diff (kullback_leibler)\")\n", "convergence_jc = ConvergenceMetric(distance=\"jaccard\", logger=\"shell\", title=\"Convergence (jaccard)\")\n", "\n", "callbacks = [pl_holdout, pl_test, ch_umass, diff_kl, convergence_jc]\n", "\n", "# training LDA model\n", "model = ldamodel.LdaModel(corpus=training_corpus, id2word=dictionary, num_topics=35, passes=2, eval_every=None, callbacks=callbacks)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The metric values can also be accessed from the model instance for custom uses." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "model.metrics" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.7.1" } }, "nbformat": 4, "nbformat_minor": 2 }
18,511
Python
.py
254
68.314961
1,710
0.683354
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,947
Corpora_and_Vector_Spaces.ipynb
piskvorky_gensim/docs/notebooks/Corpora_and_Vector_Spaces.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "This tutorial has moved.\n", "\n", "Please see https://radimrehurek.com/gensim/auto_examples/." ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.6.8" } }, "nbformat": 4, "nbformat_minor": 2 }
626
Python
.py
34
14.970588
64
0.559122
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,948
deepir.ipynb
piskvorky_gensim/docs/notebooks/deepir.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "## Deep Inverse Regression with Yelp reviews\n", "\n", "In this note we'll use [gensim](https://radimrehurek.com/gensim/) to turn the Word2Vec machinery into a document classifier, as in [Document Classification by Inversion of Distributed Language Representations](http://arxiv.org/pdf/1504.07295v3) from ACL 2015." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Data and prep" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "First, download to the same directory as this note the data from the [Yelp recruiting contest](https://www.kaggle.com/c/yelp-recruiting) on [kaggle](https://www.kaggle.com/):\n", "* https://www.kaggle.com/c/yelp-recruiting/download/yelp_training_set.zip\n", "* https://www.kaggle.com/c/yelp-recruiting/download/yelp_test_set.zip\n", "\n", "You'll need to sign-up for kaggle.\n", "\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "You can then unpack the data and grab the information we need. " ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Tutorial Requirements:\n", "1. gensim (and all of its own requirements)\n", "1. pandas\n", "1. matplotlib" ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "# ### uncomment below if you want...\n", "# ## ... copious amounts of logging info\n", "# import logging\n", "# logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO)\n", "# rootLogger = logging.getLogger()\n", "# rootLogger.setLevel(logging.INFO)\n", "# ## ... or auto-reload of gensim during development\n", "# %load_ext autoreload\n", "# %autoreload 2" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "First, we define a super simple parser" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [], "source": [ "import re\n", "\n", "contractions = re.compile(r\"'|-|\\\"\")\n", "# all non alphanumeric\n", "symbols = re.compile(r'(\\W+)', re.U)\n", "# single character removal\n", "singles = re.compile(r'(\\s\\S\\s)', re.I|re.U)\n", "# separators (any whitespace)\n", "seps = re.compile(r'\\s+')\n", "\n", "# cleaner (order matters)\n", "def clean(text): \n", " text = text.lower()\n", " text = contractions.sub('', text)\n", " text = symbols.sub(r' \\1 ', text)\n", " text = singles.sub(' ', text)\n", " text = seps.sub(' ', text)\n", " return text\n", "\n", "# sentence splitter\n", "alteos = re.compile(r'([!\\?])')\n", "def sentences(l):\n", " l = alteos.sub(r' \\1 .', l).rstrip(\"(\\.)*\\n\")\n", " return l.split(\".\")" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "And put everything together in a review generator that provides tokenized sentences and the number of stars for every review." ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [], "source": [ "from zipfile import ZipFile\n", "import json\n", "\n", "def YelpReviews(label):\n", " with ZipFile(\"yelp_%s_set.zip\"%label, 'r') as zf:\n", " with zf.open(\"yelp_%s_set/yelp_%s_set_review.json\"%(label,label)) as f:\n", " for line in f:\n", " if type(line) is bytes:\n", " line = line.decode('utf-8')\n", " rev = json.loads(line)\n", " yield {'y':rev['stars'],\\\n", " 'x':[clean(s).split() for s in sentences(rev['text'])]}" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "For example:" ] }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "{'x': [['nice', 'place', 'big', 'patio'],\n", " ['now', 'offering', 'live', 'sketch', 'comedy'],\n", " ['wednesday',\n", " 'november',\n", " '17th',\n", " 'see',\n", " 'local',\n", " 'troupe',\n", " 'th',\n", " 'sic',\n", " 'sense',\n", " 'in',\n", " 'their',\n", " '2nd',\n", " 'annual',\n", " 'holiday',\n", " 'show'],\n", " ['lighter', 'snappier', 'take', 'on', 'the', 'holiday', 'times'],\n", " ['not', 'for', 'the', 'easily', 'offended'],\n", " ['sketches',\n", " 'include',\n", " 'the',\n", " 'scariest',\n", " 'holloween',\n", " 'costume',\n", " 'the',\n", " 'first',\n", " 'thanksgiving',\n", " 'and',\n", " 'who',\n", " 'shot',\n", " 'santa',\n", " 'claus'],\n", " ['as', 'well', 'as', 'the', 'infectious', 'song', 'mama', 'christmas']],\n", " 'y': 5}" ] }, "execution_count": 4, "metadata": {}, "output_type": "execute_result" } ], "source": [ "try:\n", " next(YelpReviews(\"test\"))\n", "except FileNotFoundError:\n", " raise ValueError(\"SKIP: Please download the yelp_test_set.zip\")" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Now, since the files are small we'll just read everything into in-memory lists. It takes a minute ..." ] }, { "cell_type": "code", "execution_count": 5, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "229907 training reviews\n" ] } ], "source": [ "revtrain = list(YelpReviews(\"training\"))\n", "print(len(revtrain), \"training reviews\")\n", "\n", "## and shuffle just in case they are ordered\n", "import numpy as np\n", "np.random.shuffle(revtrain)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Finally, write a function to generate sentences -- ordered lists of words -- from reviews that have certain star ratings" ] }, { "cell_type": "code", "execution_count": 6, "metadata": {}, "outputs": [], "source": [ "def StarSentences(reviews, stars=[1,2,3,4,5]):\n", " for r in reviews:\n", " if r['y'] in stars:\n", " for s in r['x']:\n", " yield s" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Word2Vec modeling" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "We fit out-of-the-box Word2Vec" ] }, { "cell_type": "code", "execution_count": 7, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Word2Vec(vocab=0, size=100, alpha=0.025)\n" ] } ], "source": [ "from gensim.models import Word2Vec\n", "import multiprocessing\n", "\n", "## create a w2v learner \n", "basemodel = Word2Vec(\n", " workers=multiprocessing.cpu_count(), # use your cores\n", " iter=3, # iter = sweeps of SGD through the data; more is better\n", " hs=1, negative=0 # we only have scoring for the hierarchical softmax setup\n", " )\n", "print(basemodel)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Build vocab from all sentences (you could also pre-train the base model from a neutral or un-labeled vocabulary)" ] }, { "cell_type": "code", "execution_count": 8, "metadata": {}, "outputs": [], "source": [ "basemodel.build_vocab(StarSentences(revtrain))" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Now, we will _deep_ copy each base model and do star-specific training. This is where the big computations happen..." ] }, { "cell_type": "code", "execution_count": 9, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "1 stars ( 246207 )\n", "2 stars ( 295371 )\n", "3 stars ( 437718 )\n", "4 stars ( 883235 )\n", "5 stars ( 799704 )\n" ] } ], "source": [ "from copy import deepcopy\n", "starmodels = [deepcopy(basemodel) for i in range(5)]\n", "for i in range(5):\n", " slist = list(StarSentences(revtrain, [i+1]))\n", " print(i+1, \"stars (\", len(slist), \")\")\n", " starmodels[i].train( slist, total_examples=len(slist) )" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Inversion of the distributed representations\n", "\n", "At this point, we have 5 different word2vec language representations. Each 'model' has been trained conditional (i.e., limited to) text from a specific star rating. We will apply Bayes rule to go from _p(text|stars)_ to _p(stars|text)_." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "For any new sentence we can obtain its _likelihood_ (lhd; actually, the composite likelihood approximation; see the paper) using the [score](https://radimrehurek.com/gensim/models/word2vec.html#gensim.models.word2vec.Word2Vec.score) function in the `word2vec` class. We get the likelihood for each sentence in the first test review, then convert to a probability over star ratings. Every sentence in the review is evaluated separately and the final star rating of the review is an average vote of all the sentences. This is all in the following handy wrapper." ] }, { "cell_type": "code", "execution_count": 10, "metadata": {}, "outputs": [], "source": [ "\"\"\"\n", "docprob takes two lists\n", "* docs: a list of documents, each of which is a list of sentences\n", "* models: the candidate word2vec models (each potential class)\n", "\n", "it returns the array of class probabilities. Everything is done in-memory.\n", "\"\"\"\n", "\n", "import pandas as pd # for quick summing within doc\n", "\n", "def docprob(docs, mods):\n", " # score() takes a list [s] of sentences here; could also be a sentence generator\n", " sentlist = [s for d in docs for s in d]\n", " # the log likelihood of each sentence in this review under each w2v representation\n", " llhd = np.array( [ m.score(sentlist, len(sentlist)) for m in mods ] )\n", " # now exponentiate to get likelihoods, \n", " lhd = np.exp(llhd - llhd.max(axis=0)) # subtract row max to avoid numeric overload\n", " # normalize across models (stars) to get sentence-star probabilities\n", " prob = pd.DataFrame( (lhd/lhd.sum(axis=0)).transpose() )\n", " # and finally average the sentence probabilities to get the review probability\n", " prob[\"doc\"] = [i for i,d in enumerate(docs) for s in d]\n", " prob = prob.groupby(\"doc\").mean()\n", " return prob" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "#### Test set example\n", "\n", "As an example, we apply the inversion on the full test set. " ] }, { "cell_type": "code", "execution_count": 11, "metadata": {}, "outputs": [], "source": [ "# read in the test set\n", "revtest = list(YelpReviews(\"test\"))" ] }, { "cell_type": "code", "execution_count": 12, "metadata": {}, "outputs": [], "source": [ "# get the probs (note we give docprob a list of lists of words, plus the models)\n", "probs = docprob( [r['x'] for r in revtest], starmodels )" ] }, { "cell_type": "code", "execution_count": 13, "metadata": {}, "outputs": [], "source": [ "import matplotlib" ] }, { "cell_type": "code", "execution_count": 14, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "<matplotlib.axes._subplots.AxesSubplot at 0x1bde1f3c8>" ] }, "execution_count": 14, "metadata": {}, "output_type": "execute_result" }, { "data": { "image/png": "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\n28yWuPvP3P2nHT6j5THg7t+U5Ga2Nnvq9ZK+ne3DNZKOdfe/y9p8WtK/SPrDDp8DAE1IqgHE4CmS\nGkeT2C5p1Ww2ZmZfMbNfZKUAZ/S6/awUofb+F2VJ+AWSPiZpl5l93MyWZeuuyUoW7s1KJ86SdGzD\nJvPTlf9K0q6G5WW55R0t4nxKizBPlPQPWcnEbqU9597uZ8peu6vDdhvb5ymSftZh/T1Z8t0tzlbb\n3650Kvdjs/dsrweZ1rXfKWmVu98haVhpj/0uM/u0ma3s8BmdfEaPfYk4U9K/ZY9PkLSq1o5mtkfS\nX0h64iw/B8AiRVINIAZ3S2rsYT1BjyWY+yQ9Pvdax8TK3U9z9ydkpQCXFNh+4/ufnXv/t7LnLnD3\nkyWdJOm3JP1ZtvqnJU0qTQIHJP2z5nbDXGNSfEIWf6M7JZ3l7iuyf8vdfZm7X9dmu6aZbdC43cab\nNHcoTdxrTmxYf7mZLS0QZ03+s09U2vt/f/aeE1usu0OS3P1Sd//93Drntth2kRtML5H0+qzu/IWS\nPp89f6eknzS04zHu/uq2WwKAFkiqAcTgekm/NLP/N6ulrUp6lR6rEZ6S9FozW2pmqyW9veH9OyU9\ndQ7b7yi7sXBNVpv9K0n7lZYmSGkv8x53f8TM1ijtBZ3x9iKfkfNEM/ufWZxvkPRMpaUVjT4u6S/t\nsRsmjzGz13fZ9vuzNnyWpLcpLVVp51JJ7zOzY83sWKUlG5/KvW6SRs3siKwm/JWSmurZc95s6c2i\nj1daSvK5rFf6s5JeaWYvyX7m/620fb9tZs/Inj9S0sNK2/7RFtu+L3v+ae0+3N2nlPbm/4ukK939\n59lLN0j6RXZsHGVmh5vZs8zs5A4/CwA0IakGEJy7PyLp1ZJOU9p7eYHSm/9+nK1yntKezZ1Ka4Ev\nbtjEiKRPZpfvmxLLAtvv5mhJn5C0W+l4yPcrrf2VpD+R9Ddm9qDSG/kaJ49p7EXttny9pKdnn/E3\nkl7n7nsb13X3SaV11JdmZSc3SVrf5efYLOl2SVdL+nt3/88O6/6tpO9m292aPf673Ov3SNqjtKf5\nU0p7zX/UYXufkjSRrX+kpHdnP8ePJL1Z6T65T2ly/mp3PyDpcdnPeF/2vuOUlmbMkNVp/52kb2XH\nwJo2MXxa6Y2I/5Z776NKv2BVlO7be5Xu66M7/CwA0MS6DctqZhcpPeHscvfntlnno5JeofQS7VDW\n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\n" }, "metadata": {}, "output_type": "display_data" } ], "source": [ "%matplotlib inline\n", "\n", "probpos = pd.DataFrame({\"out-of-sample prob positive\":probs[[3,4]].sum(axis=1), \n", " \"true stars\":[r['y'] for r in revtest]})\n", "probpos.boxplot(\"out-of-sample prob positive\",by=\"true stars\", figsize=(12,5))" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.7.1" } }, "nbformat": 4, "nbformat_minor": 1 }
32,646
Python
.py
471
64.66879
19,521
0.791049
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,949
dtm_example.ipynb
piskvorky_gensim/docs/notebooks/dtm_example.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# DTM Example\n", "\n", "In this example we will present a sample usage of the DTM wrapper. Prior to using this you need to compile the [DTM code](https://github.com/magsilva/dtm) yourself or use one of the [binaries](https://github.com/magsilva/dtm/tree/master/bin).\n", "\n", "This tutorial is on Windows. Running it on Linux and OSX is the same.\n", "\n", "In this example we will use a small already processed corpus. To see how to get a dataset to this stage please take a look at [Gensim Tutorials](https://radimrehurek.com/gensim/tutorial.html)" ] }, { "cell_type": "code", "execution_count": 1, "metadata": { "collapsed": true }, "outputs": [], "source": [ "import logging\n", "import os\n", "from gensim import corpora, utils\n", "from gensim.models.wrappers.dtmmodel import DtmModel\n", "import numpy as np\n", "\n", "if not os.environ.get('DTM_PATH', None):\n", " raise ValueError(\"SKIP: You need to set the DTM path\")" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "First we wil setup logging" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [], "source": [ "logger = logging.getLogger()\n", "logger.setLevel(logging.DEBUG)\n", "logging.debug(\"test\")" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Now lets load a set of documents" ] }, { "cell_type": "code", "execution_count": 3, "metadata": { "collapsed": true }, "outputs": [], "source": [ "documents = [[u'senior', u'studios', u'studios', u'studios', u'creators', u'award', u'mobile', u'currently', u'challenges', u'senior', u'summary', u'senior', u'motivated', u'creative', u'senior', u'performs', u'engineering', u'tasks', u'infrastructure', u'focusing', u'primarily', u'programming', u'interaction', u'designers', u'engineers', u'leadership', u'teams', u'teams', u'crews', u'responsibilities', u'engineering', u'quality', u'functional', u'functional', u'teams', u'organizing', u'prioritizing', u'technical', u'decisions', u'engineering', u'participates', u'participates', u'reviews', u'participates', u'hiring', u'conducting', u'interviews', u'feedback', u'departments', u'define', u'focusing', u'engineering', u'teams', u'crews', u'facilitate', u'engineering', u'departments', u'deadlines', u'milestones', u'typically', u'spends', u'designing', u'developing', u'updating', u'bugs', u'mentoring', u'engineers', u'define', u'schedules', u'milestones', u'participating', u'reviews', u'interviews', u'sized', u'teams', u'interacts', u'disciplines', u'knowledge', u'skills', u'knowledge', u'knowledge', u'xcode', u'scripting', u'debugging', u'skills', u'skills', u'knowledge', u'disciplines', u'animation', u'networking', u'expertise', u'competencies', u'oral', u'skills', u'management', u'skills', u'proven', u'effectively', u'teams', u'deadline', u'environment', u'bachelor', u'minimum', u'shipped', u'leadership', u'teams', u'location', u'resumes', u'jobs', u'candidates', u'openings', u'jobs'], [u'maryland', u'client', u'producers', u'electricity', u'operates', u'storage', u'utility', u'retail', u'customers', u'engineering', u'consultant', u'maryland', u'summary', u'technical', u'technology', u'departments', u'expertise', u'maximizing', u'output', u'reduces', u'operating', u'participates', u'areas', u'engineering', u'conducts', u'testing', u'solve', u'supports', u'environmental', u'understands', u'objectives', u'operates', u'responsibilities', u'handles', u'complex', u'engineering', u'aspects', u'monitors', u'quality', u'proficiency', u'optimization', u'recommendations', u'supports', u'personnel', u'troubleshooting', u'commissioning', u'startup', u'shutdown', u'supports', u'procedure', u'operating', u'units', u'develops', u'simulations', u'troubleshooting', u'tests', u'enhancing', u'solving', u'develops', u'estimates', u'schedules', u'scopes', u'understands', u'technical', u'management', u'utilize', u'routine', u'conducts', u'hazards', u'utilizing', u'hazard', u'operability', u'methodologies', u'participates', u'startup', u'reviews', u'pssr', u'participate', u'teams', u'participate', u'regulatory', u'audits', u'define', u'scopes', u'budgets', u'schedules', u'technical', u'management', u'environmental', u'awareness', u'interfacing', u'personnel', u'interacts', u'regulatory', u'departments', u'input', u'objectives', u'identifying', u'introducing', u'concepts', u'solutions', u'peers', u'customers', u'coworkers', u'knowledge', u'skills', u'engineering', u'quality', u'engineering', u'commissioning', u'startup', u'knowledge', u'simulators', u'technologies', u'knowledge', u'engineering', u'techniques', u'disciplines', u'leadership', u'skills', u'proven', u'engineers', u'oral', u'skills', u'technical', u'skills', u'analytically', u'solve', u'complex', u'interpret', u'proficiency', u'simulation', u'knowledge', u'applications', u'manipulate', u'applications', u'engineering', u'calculations', u'programs', u'matlab', u'excel', u'independently', u'environment', u'proven', u'skills', u'effectively', u'multiple', u'tasks', u'planning', u'organizational', u'management', u'skills', u'rigzone', u'jobs', u'developer', u'exceptional', u'strategies', u'junction', u'exceptional', u'strategies', u'solutions', u'solutions', u'biggest', u'insurers', u'operates', u'investment'], [u'vegas', u'tasks', u'electrical', u'contracting', u'expertise', u'virtually', u'electrical', u'developments', u'institutional', u'utilities', u'technical', u'experts', u'relationships', u'credibility', u'contractors', u'utility', u'customers', u'customer', u'relationships', u'consistently', u'innovations', u'profile', u'construct', u'envision', u'dynamic', u'complex', u'electrical', u'management', u'grad', u'internship', u'electrical', u'engineering', u'infrastructures', u'engineers', u'documented', u'management', u'engineering', u'quality', u'engineering', u'electrical', u'engineers', u'complex', u'distribution', u'grounding', u'estimation', u'testing', u'procedures', u'voltage', u'engineering', u'troubleshooting', u'installation', u'documentation', u'bsee', u'certification', u'electrical', u'voltage', u'cabling', u'electrical', u'engineering', u'candidates', u'electrical', u'internships', u'oral', u'skills', u'organizational', u'prioritization', u'skills', u'skills', u'excel', u'cadd', u'calculation', u'autocad', u'mathcad', u'skills', u'skills', u'customer', u'relationships', u'solving', u'ethic', u'motivation', u'tasks', u'budget', u'affirmative', u'diversity', u'workforce', u'gender', u'orientation', u'disability', u'disabled', u'veteran', u'vietnam', u'veteran', u'qualifying', u'veteran', u'diverse', u'candidates', u'respond', u'developing', u'workplace', u'reflects', u'diversity', u'communities', u'reviews', u'electrical', u'contracting', u'southwest', u'electrical', u'contractors'], [u'intern', u'electrical', u'engineering', u'idexx', u'laboratories', u'validating', u'idexx', u'integrated', u'hardware', u'entails', u'planning', u'debug', u'validation', u'engineers', u'validation', u'methodologies', u'healthcare', u'platforms', u'brightest', u'solve', u'challenges', u'innovation', u'technology', u'idexx', u'intern', u'idexx', u'interns', u'supplement', u'interns', u'teams', u'roles', u'competitive', u'interns', u'idexx', u'interns', u'participate', u'internships', u'mentors', u'seminars', u'topics', u'leadership', u'workshops', u'relevant', u'planning', u'topics', u'intern', u'presentations', u'mixers', u'applicants', u'ineligible', u'laboratory', u'compliant', u'idexx', u'laboratories', u'healthcare', u'innovation', u'practicing', u'veterinarians', u'diagnostic', u'technology', u'idexx', u'enhance', u'veterinarians', u'efficiency', u'economically', u'idexx', u'worldwide', u'diagnostic', u'tests', u'tests', u'quality', u'headquartered', u'idexx', u'laboratories', u'employs', u'customers', u'qualifications', u'applicants', u'idexx', u'interns', u'potential', u'demonstrated', u'portfolio', u'recommendation', u'resumes', u'marketing', u'location', u'americas', u'verification', u'validation', u'schedule', u'overtime', u'idexx', u'laboratories', u'reviews', u'idexx', u'laboratories', u'nasdaq', u'healthcare', u'innovation', u'practicing', u'veterinarians'], [u'location', u'duration', u'temp', u'verification', u'validation', u'tester', u'verification', u'validation', u'middleware', u'specifically', u'testing', u'applications', u'clinical', u'laboratory', u'regulated', u'environment', u'responsibilities', u'complex', u'hardware', u'testing', u'clinical', u'analyzers', u'laboratory', u'graphical', u'interfaces', u'complex', u'sample', u'sequencing', u'protocols', u'developers', u'correction', u'tracking', u'tool', u'timely', u'troubleshoot', u'testing', u'functional', u'manual', u'automated', u'participate', u'ongoing', u'testing', u'coverage', u'planning', u'documentation', u'testing', u'validation', u'corrections', u'monitor', u'implementation', u'recurrence', u'operating', u'statistical', u'quality', u'testing', u'global', u'multi', u'teams', u'travel', u'skills', u'concepts', u'waterfall', u'agile', u'methodologies', u'debugging', u'skills', u'complex', u'automated', u'instrumentation', u'environment', u'hardware', u'mechanical', u'components', u'tracking', u'lifecycle', u'management', u'quality', u'organize', u'define', u'priorities', u'organize', u'supervision', u'aggressive', u'deadlines', u'ambiguity', u'analyze', u'complex', u'situations', u'concepts', u'technologies', u'verbal', u'skills', u'effectively', u'technical', u'clinical', u'diverse', u'strategy', u'clinical', u'chemistry', u'analyzer', u'laboratory', u'middleware', u'basic', u'automated', u'testing', u'biomedical', u'engineering', u'technologists', u'laboratory', u'technology', u'availability', u'click', u'attach'], [u'scientist', u'linux', u'asrc', u'scientist', u'linux', u'asrc', u'technology', u'solutions', u'subsidiary', u'asrc', u'engineering', u'technology', u'contracts', u'multiple', u'agencies', u'scientists', u'engineers', u'management', u'personnel', u'allows', u'solutions', u'complex', u'aeronautics', u'aviation', u'management', u'aviation', u'engineering', u'hughes', u'technical', u'technical', u'aviation', u'evaluation', u'engineering', u'management', u'technical', u'terminal', u'surveillance', u'programs', u'currently', u'scientist', u'travel', u'responsibilities', u'develops', u'technology', u'modifies', u'technical', u'complex', u'reviews', u'draft', u'conformity', u'completeness', u'testing', u'interface', u'hardware', u'regression', u'impact', u'reliability', u'maintainability', u'factors', u'standardization', u'skills', u'travel', u'programming', u'linux', u'environment', u'cisco', u'knowledge', u'terminal', u'environment', u'clearance', u'clearance', u'input', u'output', u'digital', u'automatic', u'terminal', u'management', u'controller', u'termination', u'testing', u'evaluating', u'policies', u'procedure', u'interface', u'installation', u'verification', u'certification', u'core', u'avionic', u'programs', u'knowledge', u'procedural', u'testing', u'interfacing', u'hardware', u'regression', u'impact', u'reliability', u'maintainability', u'factors', u'standardization', u'missions', u'asrc', u'subsidiaries', u'affirmative', u'employers', u'applicants', u'disability', u'veteran', u'technology', u'location', u'airport', u'bachelor', u'schedule', u'travel', u'contributor', u'management', u'asrc', u'reviews'], [u'technical', u'solarcity', u'niche', u'vegas', u'overview', u'resolving', u'customer', u'clients', u'expanding', u'engineers', u'developers', u'responsibilities', u'knowledge', u'planning', u'adapt', u'dynamic', u'environment', u'inventive', u'creative', u'solarcity', u'lifecycle', u'responsibilities', u'technical', u'analyzing', u'diagnosing', u'troubleshooting', u'customers', u'ticketing', u'console', u'escalate', u'knowledge', u'engineering', u'timely', u'basic', u'phone', u'functionality', u'customer', u'tracking', u'knowledgebase', u'rotation', u'configure', u'deployment', u'sccm', u'technical', u'deployment', u'deploy', u'hardware', u'solarcity', u'bachelor', u'knowledge', u'dell', u'laptops', u'analytical', u'troubleshooting', u'solving', u'skills', u'knowledge', u'databases', u'preferably', u'server', u'preferably', u'monitoring', u'suites', u'documentation', u'procedures', u'knowledge', u'entries', u'verbal', u'skills', u'customer', u'skills', u'competitive', u'solar', u'package', u'insurance', u'vacation', u'savings', u'referral', u'eligibility', u'equity', u'performers', u'solarcity', u'affirmative', u'diversity', u'workplace', u'applicants', u'orientation', u'disability', u'veteran', u'careerrookie'], [u'embedded', u'exelis', u'junction', u'exelis', u'embedded', u'acquisition', u'networking', u'capabilities', u'classified', u'customer', u'motivated', u'develops', u'tests', u'innovative', u'solutions', u'minimal', u'supervision', u'paced', u'environment', u'enjoys', u'assignments', u'interact', u'multi', u'disciplined', u'challenging', u'focused', u'embedded', u'developments', u'spanning', u'engineering', u'lifecycle', u'specification', u'enhancement', u'applications', u'embedded', u'freescale', u'applications', u'android', u'platforms', u'interface', u'customers', u'developers', u'refine', u'specifications', u'architectures', u'java', u'programming', u'scripts', u'python', u'debug', u'debugging', u'emulators', u'regression', u'revisions', u'specialized', u'setups', u'capabilities', u'subversion', u'technical', u'documentation', u'multiple', u'engineering', u'techexpousa', u'reviews'], [u'modeler', u'semantic', u'modeling', u'models', u'skills', u'ontology', u'resource', u'framework', u'schema', u'technologies', u'hadoop', u'warehouse', u'oracle', u'relational', u'artifacts', u'models', u'dictionaries', u'models', u'interface', u'specifications', u'documentation', u'harmonization', u'mappings', u'aligned', u'coordinate', u'technical', u'peer', u'reviews', u'stakeholder', u'communities', u'impact', u'domains', u'relationships', u'interdependencies', u'models', u'define', u'analyze', u'legacy', u'models', u'corporate', u'databases', u'architectural', u'alignment', u'customer', u'expertise', u'harmonization', u'modeling', u'modeling', u'consulting', u'stakeholders', u'quality', u'models', u'storage', u'agile', u'specifically', u'focus', u'modeling', u'qualifications', u'bachelors', u'accredited', u'modeler', u'encompass', u'evaluation', u'skills', u'knowledge', u'modeling', u'techniques', u'resource', u'framework', u'schema', u'technologies', u'unified', u'modeling', u'technologies', u'schemas', u'ontologies', u'sybase', u'knowledge', u'skills', u'interpersonal', u'skills', u'customers', u'clearance', u'applicants', u'eligibility', u'classified', u'clearance', u'polygraph', u'techexpousa', u'solutions', u'partnership', u'solutions', u'integration'], [u'technologies', u'junction', u'develops', u'maintains', u'enhances', u'complex', u'diverse', u'intensive', u'analytics', u'algorithm', u'manipulation', u'management', u'documented', u'individually', u'reviews', u'tests', u'components', u'adherence', u'resolves', u'utilizes', u'methodologies', u'environment', u'input', u'components', u'hardware', u'offs', u'reuse', u'cots', u'gots', u'synthesis', u'components', u'tasks', u'individually', u'analyzes', u'modifies', u'debugs', u'corrects', u'integrates', u'operating', u'environments', u'develops', u'queries', u'databases', u'repositories', u'recommendations', u'improving', u'documentation', u'develops', u'implements', u'algorithms', u'functional', u'assists', u'developing', u'executing', u'procedures', u'components', u'reviews', u'documentation', u'solutions', u'analyzing', u'conferring', u'users', u'engineers', u'analyzing', u'investigating', u'areas', u'adapt', u'hardware', u'mathematical', u'models', u'predict', u'outcome', u'implement', u'complex', u'database', u'repository', u'interfaces', u'queries', u'bachelors', u'accredited', u'substituted', u'bachelors', u'firewalls', u'ipsec', u'vpns', u'technology', u'administering', u'servers', u'apache', u'jboss', u'tomcat', u'developing', u'interfaces', u'firefox', u'internet', u'explorer', u'operating', u'mainframe', u'linux', u'solaris', u'virtual', u'scripting', u'programming', u'oriented', u'programming', u'ajax', u'script', u'procedures', u'cobol', u'cognos', u'fusion', u'focus', u'html', u'java', u'java', u'script', u'jquery', u'perl', u'visual', u'basic', u'powershell', u'cots', u'cots', u'oracle', u'apex', u'integration', u'competitive', u'package', u'bonus', u'corporate', u'equity', u'tuition', u'reimbursement', u'referral', u'bonus', u'holidays', u'insurance', u'flexible', u'disability', u'insurance', u'technologies', u'disability', u'accommodation', u'recruiter', u'techexpousa']]" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "This corpus contains 10 documents. Now lets say we would like to model this with DTM.\n", "To do this we have to define the time steps\n", "each document belongs to. In this case the first 3 documents were collected at the same time, while the last 7 were collected \n", "a month later, and we wish to see how the topics change from month to month.\n", "For this we will define the `time_seq`, which contains the time slice definition." ] }, { "cell_type": "code", "execution_count": 4, "metadata": { "collapsed": true }, "outputs": [], "source": [ "time_seq = [3, 7] # first 3 documents are from time slice one \n", "# and the other 7 are from the second time slice." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "A simple corpus wrapper to load a premade corpus. You can use this with your own data." ] }, { "cell_type": "code", "execution_count": 5, "metadata": {}, "outputs": [], "source": [ "class DTMcorpus(corpora.textcorpus.TextCorpus):\n", "\n", " def get_texts(self):\n", " return self.input\n", "\n", " def __len__(self):\n", " return len(self.input)\n", "\n", "corpus = DTMcorpus(documents)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "So now we have to generate the path to DTM executable, here I have already set an ENV variable for the DTM_HOME" ] }, { "cell_type": "code", "execution_count": 6, "metadata": { "collapsed": true }, "outputs": [], "source": [ "# path to dtm home folder\n", "dtm_home = os.environ.get('DTM_HOME', \"dtm-master\")\n", "# path to the binary. on my PC the executable file is dtm-master/bin/dtm\n", "dtm_path = os.path.join(dtm_home, 'bin', 'dtm') if dtm_home else None\n", "# you can also copy the path down directly. Change this variable to your DTM executable before running.\n", "dtm_path = \"/home/bhargav/dtm/main\"" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "That is basically all we need to be able to invoke the Training. \n", "\n", "If ```initialize_lda=True``` then DTM will create a LDA model first and store it in initial-lda-ss.dat.\n", "If you already have itial-lda-ss.dat in the DTM folder then you can save time and re-use it with ```initialize_lda=False```. If the file is missing then DTM wil exit with an error." ] }, { "cell_type": "code", "execution_count": 7, "metadata": {}, "outputs": [], "source": [ "model = DtmModel(dtm_path, corpus, time_seq, num_topics=2,\n", " id2word=corpus.dictionary, initialize_lda=True)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "If everything worked we should be able to print out the topics" ] }, { "cell_type": "code", "execution_count": 8, "metadata": { "collapsed": true }, "outputs": [], "source": [ "topics = model.show_topic(topicid=1, time=1, num_words=10)" ] }, { "cell_type": "code", "execution_count": 9, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "[(0.023565028919164586, 'skills'),\n", " (0.02308969736545094, 'engineering'),\n", " (0.019616329462533579, 'idexx'),\n", " (0.0194313503731963, 'testing'),\n", " (0.01858957362093603, 'technical'),\n", " (0.017685337300946517, 'electrical'),\n", " (0.017483543705882995, 'management'),\n", " (0.015310984365058886, 'complex'),\n", " (0.014032951915032212, 'knowledge'),\n", " (0.012958700085355939, 'technology')]" ] }, "execution_count": 9, "metadata": {}, "output_type": "execute_result" } ], "source": [ "topics" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Document-Topic proportions " ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Next, we'll attempt to find the Document-Topic proportions. We will use the gamma class variable of the model to do the same. Gamma is a matrix such that gamma[5,10] is the proportion of the 10th topic in document 5.\n", "\n", "To find, say, the topic proportions in Document 1, we do the following:" ] }, { "cell_type": "code", "execution_count": 10, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Distribution of Topic 0 0.562498\n", "Distribution of Topic 1 0.437502\n" ] } ], "source": [ "doc_number = 1\n", "num_topics = 2\n", "\n", "for i in range(0, num_topics):\n", " print (\"Distribution of Topic %d %f\" % (i, model.gamma_[doc_number, i]))" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## DIM Example" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The DTM wrapper in Gensim also has the capacity to run in Document Influence Model mode. The Model is described in [this](http://www.umiacs.umd.edu/~jbg/nips_tm_workshop/30.pdf) paper. What it allows you to do is find the 'influence' of a certain document on a particular topic. It is primarily used in identifying the scientific impact of research papers through the capability of that document's keywords influencing a topic. \n", "\n", "'Influence' can be naively thought of like this - if more of a particular document's words appear in subsequent evolution of a topic, that document is understood to have influenced that topic more.\n", "\n", "To run it in this mode, we now call `DtmModel` again, but with the `model` parameter set as `fixed`. \n", "\n", "Note that running it in this mode will also generate the DTM topics similar to running plain DTM, but with added information on document influence." ] }, { "cell_type": "code", "execution_count": 11, "metadata": {}, "outputs": [], "source": [ "model = DtmModel(dtm_path, corpus, time_seq, num_topics=2,\n", " id2word=corpus.dictionary, initialize_lda=True, model='fixed')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The main difference between the DTM and DIM models are the addition of Influence files for each time-slice, which is interpreted with the `influences_time` variable. \n", "\n", "To find, say, the influence of Document 2 on Topic 2 in Time-Slice 1, we do the following:" ] }, { "cell_type": "code", "execution_count": 12, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "0.0061833357763878861" ] }, "execution_count": 12, "metadata": {}, "output_type": "execute_result" } ], "source": [ "document_no = 1 #document 2\n", "topic_no = 1 #topic number 2\n", "time_slice = 0 #time slice 1\n", "\n", "model.influences_time[time_slice][document_no][topic_no]" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Differences between DTM and DIM mode." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "There are not too many differences in DTM and DIM apart from the Document Influence information which is generated by running it in DIM mode. The topics generated by both the models are also more or less similar.\n", "\n", "As for running times, with smaller corpuses of less than 2000 documents, time taken for the two models is roughly the same, but for larger corpuses DIM mode takes significantly more time - usually 1.5 or 2 times as how long DTM would take.\n", "\n", "For examples of use-cases of both, the following resources might be helpful:\n", "\n", "[Modeling Musical Influence with Topic Models](http://jmlr.org/proceedings/papers/v28/shalit13.pdf)\n", "\n", "[A Language-based Approach to Measuring Scholarly Impact](https://www.cs.princeton.edu/~blei/papers/GerrishBlei2010.pdf)\n", "\n", "[Studying the history of ideas using topic models](http://web.stanford.edu/~jurafsky/hallemnlp08.pdf)\n" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.7.1" } }, "nbformat": 4, "nbformat_minor": 1 }
25,703
Python
.py
354
68.268362
15,267
0.668034
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,950
doc2vec-lee.ipynb
piskvorky_gensim/docs/notebooks/doc2vec-lee.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "This tutorial has moved.\n", "\n", "Please see https://radimrehurek.com/gensim/auto_examples/." ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.6.8" } }, "nbformat": 4, "nbformat_minor": 2 }
626
Python
.py
34
14.970588
64
0.559122
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,951
gensim Quick Start.ipynb
piskvorky_gensim/docs/notebooks/gensim Quick Start.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "This tutorial has moved.\n", "\n", "Please see https://radimrehurek.com/gensim/auto_examples/." ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.6.8" } }, "nbformat": 4, "nbformat_minor": 2 }
626
Python
.py
34
14.970588
64
0.559122
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,952
topic_coherence-movies.ipynb
piskvorky_gensim/docs/notebooks/topic_coherence-movies.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Benchmark testing of coherence pipeline on Movies dataset\n", "## How to find how well coherence measure matches your manual annotators" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "__Introduction__: For the validation of any model adapted from a paper, it is of utmost importance that the results of benchmark testing on the datasets listed in the paper match between the actual implementation (palmetto) and gensim. This coherence pipeline has been implemented from the work done by Roeder et al. The paper can be found [here](http://svn.aksw.org/papers/2015/WSDM_Topic_Evaluation/public.pdf).\n", "\n", "__Approach__ :\n", "1. In this notebook, we'll use the Movies dataset mentioned in the paper. This dataset along with the topics on which the coherence is calculated and the gold (human) ratings on these topics can be found [here](http://139.18.2.164/mroeder/palmetto/datasets/).\n", "2. We will then calculate the coherence on these topics using the pipeline implemented in gensim.\n", "3. Once we have all our coherence values on these topics we will calculate the correlation with the human ratings using pearson's r.\n", "4. We will compare this final correlation value with the values listed in the paper and see if the pipeline is working as expected." ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "from __future__ import print_function\n", "\n", "import re\n", "import os\n", "\n", "from scipy.stats import pearsonr\n", "from datetime import datetime\n", "\n", "from gensim.models import CoherenceModel\n", "from gensim.corpora.dictionary import Dictionary\n", "from smart_open import smart_open" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Download the dataset (`movie.zip`) and gold standard data (`topicsMovie.txt` and `goldMovie.txt`) from the link and plug in the locations below." ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [], "source": [ "base_dir = os.path.join(os.path.expanduser('~'), \"workshop/nlp/data/\")\n", "data_dir = os.path.join(base_dir, 'wiki-movie-subset')\n", "if not os.path.exists(data_dir):\n", " raise ValueError(\"SKIP: Please download the movie corpus.\")\n", "\n", "ref_dir = os.path.join(base_dir, 'reference')\n", "topics_path = os.path.join(ref_dir, 'topicsMovie.txt')\n", "human_scores_path = os.path.join(ref_dir, 'goldMovie.txt')" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "PROGRESS: 10000/125384, preprocessed 9916, discarded 84\n", "PROGRESS: 20000/125384, preprocessed 19734, discarded 266\n", "PROGRESS: 30000/125384, preprocessed 29648, discarded 352\n", "PROGRESS: 50000/125384, preprocessed 37074, discarded 12926\n", "PROGRESS: 60000/125384, preprocessed 47003, discarded 12997\n", "PROGRESS: 70000/125384, preprocessed 56961, discarded 13039\n", "PROGRESS: 80000/125384, preprocessed 66891, discarded 13109\n", "PROGRESS: 90000/125384, preprocessed 76784, discarded 13216\n", "PROGRESS: 100000/125384, preprocessed 86692, discarded 13308\n", "PROGRESS: 110000/125384, preprocessed 96593, discarded 13407\n", "PROGRESS: 120000/125384, preprocessed 106522, discarded 13478\n", "CPU times: user 19.8 s, sys: 9.55 s, total: 29.4 s\n", "Wall time: 44.9 s\n" ] } ], "source": [ "%%time\n", "\n", "texts = []\n", "file_num = 0\n", "preprocessed = 0\n", "listing = os.listdir(data_dir)\n", "\n", "for fname in listing:\n", " file_num += 1\n", " if 'disambiguation' in fname:\n", " continue # discard disambiguation and redirect pages\n", " elif fname.startswith('File_'):\n", " continue # discard images, gifs, etc.\n", " elif fname.startswith('Category_'):\n", " continue # discard category articles\n", " \n", " # Not sure how to identify portal and redirect pages,\n", " # as well as pages about a single year.\n", " # As a result, this preprocessing differs from the paper.\n", " \n", " with smart_open(os.path.join(data_dir, fname), 'rb') as f:\n", " for line in f:\n", " # lower case all words\n", " lowered = line.lower()\n", " #remove punctuation and split into seperate words\n", " words = re.findall(r'\\w+', lowered, flags = re.UNICODE | re.LOCALE)\n", " texts.append(words)\n", " \n", " preprocessed += 1\n", " if file_num % 10000 == 0:\n", " print('PROGRESS: %d/%d, preprocessed %d, discarded %d' % (\n", " file_num, len(listing), preprocessed, (file_num - preprocessed)))" ] }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "CPU times: user 1min 26s, sys: 1.1 s, total: 1min 27s\n", "Wall time: 1min 27s\n" ] } ], "source": [ "%%time\n", "\n", "dictionary = Dictionary(texts)\n", "corpus = [dictionary.doc2bow(text) for text in texts]" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Cross validate the numbers" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "According to the paper the number of documents should be 108,952 with a vocabulary of 1,625,124. The difference is because of a difference in preprocessing. However the results obtained are still very similar." ] }, { "cell_type": "code", "execution_count": 5, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "111637\n", "Dictionary(756837 unique tokens: [u'verplank', u'mdbg', u'shatzky', u'duelcity', u'dulcitone']...)\n" ] } ], "source": [ "print(len(corpus))\n", "print(dictionary)" ] }, { "cell_type": "code", "execution_count": 6, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "100" ] }, "execution_count": 6, "metadata": {}, "output_type": "execute_result" } ], "source": [ "topics = [] # list of 100 topics\n", "with smart_open(topics_path, 'rb') as f:\n", " topics = [line.split() for line in f if line]\n", "len(topics)" ] }, { "cell_type": "code", "execution_count": 7, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "100" ] }, "execution_count": 7, "metadata": {}, "output_type": "execute_result" } ], "source": [ "human_scores = []\n", "with smart_open(human_scores_path, 'rb') as f:\n", " for line in f:\n", " human_scores.append(float(line.strip()))\n", "len(human_scores)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Deal with any vocabulary mismatch." ] }, { "cell_type": "code", "execution_count": 8, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Topics with out-of-vocab terms: 72\n" ] } ], "source": [ "# We first need to filter out any topics that contain terms not in our dictionary\n", "# These may occur as a result of preprocessing steps differing from those used to\n", "# produce the reference topics. In this case, this only occurs in one topic.\n", "invalid_topic_indices = set(\n", " i for i, topic in enumerate(topics)\n", " if any(t not in dictionary.token2id for t in topic)\n", ")\n", "print(\"Topics with out-of-vocab terms: %s\" % ', '.join(map(str, invalid_topic_indices)))\n", "usable_topics = [topic for i, topic in enumerate(topics) if i not in invalid_topic_indices]" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Start off with u_mass coherence measure." ] }, { "cell_type": "code", "execution_count": 9, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Calculated u_mass coherence for 99 topics\n", "CPU times: user 7.22 s, sys: 141 ms, total: 7.36 s\n", "Wall time: 7.38 s\n" ] } ], "source": [ "%%time\n", "\n", "cm = CoherenceModel(topics=usable_topics, corpus=corpus, dictionary=dictionary, coherence='u_mass')\n", "u_mass = cm.get_coherence_per_topic()\n", "print(\"Calculated u_mass coherence for %d topics\" % len(u_mass))" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Start c_v coherence measure\n", "This is expected to take much more time since `c_v` uses a sliding window to perform probability estimation and uses the cosine similarity indirect confirmation measure." ] }, { "cell_type": "code", "execution_count": 10, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Calculated c_v coherence for 99 topics\n", "CPU times: user 38.5 s, sys: 5.52 s, total: 44 s\n", "Wall time: 13min 8s\n" ] } ], "source": [ "%%time\n", "\n", "cm = CoherenceModel(topics=usable_topics, texts=texts, dictionary=dictionary, coherence='c_v')\n", "c_v = cm.get_coherence_per_topic()\n", "print(\"Calculated c_v coherence for %d topics\" % len(c_v))" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Start c_uci and c_npmi coherence measures\n", "c_v and c_uci and c_npmi all use the boolean sliding window approach of estimating probabilities. Since the `CoherenceModel` caches the accumulated statistics, calculation of c_uci and c_npmi are practically free after calculating c_v coherence. These two methods are simpler and were shown to correlate less with human judgements than c_v but more so than u_mass." ] }, { "cell_type": "code", "execution_count": 11, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Calculated c_uci coherence for 99 topics\n", "CPU times: user 95 ms, sys: 8.87 ms, total: 104 ms\n", "Wall time: 97.2 ms\n" ] } ], "source": [ "%%time\n", "\n", "cm.coherence = 'c_uci'\n", "c_uci = cm.get_coherence_per_topic()\n", "print(\"Calculated c_uci coherence for %d topics\" % len(c_uci))" ] }, { "cell_type": "code", "execution_count": 12, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Calculated c_npmi coherence for 99 topics\n", "CPU times: user 192 ms, sys: 6.38 ms, total: 198 ms\n", "Wall time: 194 ms\n" ] } ], "source": [ "%%time\n", "\n", "cm.coherence = 'c_npmi'\n", "c_npmi = cm.get_coherence_per_topic()\n", "print(\"Calculated c_npmi coherence for %d topics\" % len(c_npmi))" ] }, { "cell_type": "code", "execution_count": 13, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "99" ] }, "execution_count": 13, "metadata": {}, "output_type": "execute_result" } ], "source": [ "final_scores = [\n", " score for i, score in enumerate(human_scores)\n", " if i not in invalid_topic_indices\n", "]\n", "len(final_scores)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The [values in the paper](http://svn.aksw.org/papers/2015/WSDM_Topic_Evaluation/public.pdf) were:\n", "\n", "__`u_mass` correlation__ : 0.093\n", "\n", "__`c_v` correlation__ : 0.548\n", "\n", "__`c_uci` correlation__ : 0.473\n", "\n", "__`c_npmi` correlation__ : 0.438\n", "\n", "Our values are also very similar to these values which is good. This validates the correctness of our pipeline, as we can reasonably attribute the differences to differences in preprocessing." ] }, { "cell_type": "code", "execution_count": 14, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "0.158529392277\n", "0.530450687702\n", "0.406162050908\n", "0.46002144316\n" ] } ], "source": [ "for our_scores in (u_mass, c_v, c_uci, c_npmi):\n", " print(pearsonr(our_scores, final_scores)[0])" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Where do we go now?\n", "\n", "- The time required for completing all of these operations can be improved a lot by cythonising them.\n", "- Preprocessing can be improved for this notebook by following the exact process mentioned in the reference paper. Specifically: _All corpora as well as the complete Wikipedia used as reference corpus are preprocessed using lemmatization and stop word removal. Additionally, we removed portal and category articles, redirection and disambiguation pages as well as articles about single years._ *Note*: we tried lemmatizing and found that significantly more of the reference topics had out-of-vocabulary terms." ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": true }, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.7.1" } }, "nbformat": 4, "nbformat_minor": 1 }
14,245
Python
.py
477
25.188679
515
0.59079
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,953
nmf_tutorial.ipynb
piskvorky_gensim/docs/notebooks/nmf_tutorial.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Gensim Tutorial on Online Non-Negative Matrix Factorization" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "This notebooks explains basic ideas behind the open source NMF implementation in [Gensim](https://github.com/RaRe-Technologies/gensim), including code examples for applying NMF to text processing." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## What's in this tutorial?\n", "\n", "1. [Introduction: Why NMF?](#1.-Introduction-to-NMF)\n", "2. [Code example on 20 Newsgroups](#2.-Code-example:-NMF-on-20-Newsgroups)\n", "3. [Benchmarks against Sklearn's NMF and Gensim's LDA](#3.-Benchmarks)\n", "4. [Large-scale NMF training on the English Wikipedia (sparse text vectors)](#4.-NMF-on-English-Wikipedia)\n", "5. [NMF on face decomposition (dense image vectors)](#5.-And-now-for-something-completely-different:-Face-decomposition-from-images)" ] }, { "cell_type": "markdown", "metadata": { "lines_to_next_cell": 2 }, "source": [ "# 1. Introduction to NMF" ] }, { "cell_type": "markdown", "metadata": { "lines_to_next_cell": 2 }, "source": [ "## What's in a name?\n", "\n", "Gensim's Online Non-Negative Matrix Factorization (NMF, NNMF, ONMF) implementation is based on [Renbo Zhao, Vincent Y. F. Tan: Online Nonnegative Matrix Factorization with Outliers, 2016](https://arxiv.org/abs/1604.02634) and is optimized for extremely large, sparse, streamed inputs. Such inputs happen in NLP with **unsupervised training** on massive text corpora.\n", "\n", "* Why **Online**? Because corpora and datasets in modern ML can be very large, and RAM is limited. Unlike batch algorithms, online algorithms learn iteratively, streaming through the available training examples, without loading the entire dataset into RAM or requiring random-access to the data examples.\n", "\n", "* Why **Non-Negative**? Because non-negativity leads to more interpretable, sparse \"human-friendly\" topics. This is in contrast to e.g. SVD (another popular matrix factorization method with [super-efficient implementation in Gensim](https://radimrehurek.com/gensim/models/lsimodel.html)), which produces dense negative factors and thus harder-to-interpret topics.\n", "\n", "* **Matrix factorizations** are the corner stone of modern machine learning. They can be used either directly (recommendation systems, bi-clustering, image compression, topic modeling…) or as internal routines in more complex deep learning algorithms." ] }, { "cell_type": "markdown", "metadata": { "lines_to_next_cell": 2 }, "source": [ "## How ONNMF works\n", "\n", "Terminology:\n", "- `corpus` is a stream of input documents = training examples\n", "- `batch` is a chunk of input corpus, a word-document matrix mini-batch that fits in RAM\n", "- `W` is a word-topic matrix (to be learned; stored in the resulting model)\n", "- `h` is a topic-document matrix (to be learned; not stored, but rather inferred for documents on-the-fly)\n", "- `A`, `B` - matrices that accumulate information from consecutive chunks. `A = h.dot(ht)`, `B = v.dot(ht)`.\n", "\n", "The idea behind the algorithm is as follows:\n", "\n", "```\n", " Initialize W, A and B matrices\n", "\n", " for batch in input corpus batches:\n", " infer h:\n", " do coordinate gradient descent step to find h that minimizes ||batch - Wh|| in L2 norm\n", "\n", " bound h so that it is non-negative\n", "\n", " update A and B:\n", " A = h.dot(ht)\n", " B = batch.dot(ht)\n", "\n", " update W:\n", " do gradient descent step to find W that minimizes ||0.5*trace(WtWA) - trace(WtB)|| in L2 norm\n", "```" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# 2. Code example: NMF on 20 Newsgroups" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Preprocessing" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Let's import the models we'll be using throughout this tutorial (`numpy==1.14.2`, `matplotlib==3.0.2`, `pandas==0.24.1`, `sklearn==0.19.1`, `gensim==3.7.1`) and set up logging at INFO level.\n", "\n", "Gensim uses logging generously to inform users what's going on. Eyeballing the logs is a good sanity check, to make sure everything is working as expected.\n", "\n", "Only `numpy` and `gensim` are actually needed to train and use NMF. The other imports are used only to make our life a little easier in this tutorial." ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "import logging\n", "import time\n", "from contextlib import contextmanager\n", "import os\n", "from multiprocessing import Process\n", "import psutil\n", "\n", "import numpy as np\n", "import pandas as pd\n", "from numpy.random import RandomState\n", "from sklearn import decomposition\n", "from sklearn.cluster import MiniBatchKMeans\n", "from sklearn.datasets import fetch_olivetti_faces\n", "from sklearn.decomposition.nmf import NMF as SklearnNmf\n", "from sklearn.linear_model import LogisticRegressionCV\n", "from sklearn.metrics import f1_score\n", "\n", "import gensim.downloader\n", "from gensim import matutils, utils\n", "from gensim.corpora import Dictionary\n", "from gensim.models import CoherenceModel, LdaModel, TfidfModel, LsiModel\n", "from gensim.models.basemodel import BaseTopicModel\n", "from gensim.models.nmf import Nmf as GensimNmf\n", "from gensim.parsing.preprocessing import preprocess_string\n", "\n", "logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Dataset preparation" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Let's load the notorious [20 Newsgroups dataset](http://qwone.com/~jason/20Newsgroups/) from Gensim's [repository of pre-trained models and corpora](https://github.com/RaRe-Technologies/gensim-data):" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [], "source": [ "newsgroups = gensim.downloader.load('20-newsgroups')\n", "\n", "categories = [\n", " 'alt.atheism',\n", " 'comp.graphics',\n", " 'rec.motorcycles',\n", " 'talk.politics.mideast',\n", " 'sci.space'\n", "]\n", "\n", "categories = {name: idx for idx, name in enumerate(categories)}" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Create a train/test split:" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [], "source": [ "random_state = RandomState(42)\n", "\n", "trainset = np.array([\n", " {\n", " 'data': doc['data'],\n", " 'target': categories[doc['topic']],\n", " }\n", " for doc in newsgroups\n", " if doc['topic'] in categories and doc['set'] == 'train'\n", "])\n", "random_state.shuffle(trainset)\n", "\n", "testset = np.array([\n", " {\n", " 'data': doc['data'],\n", " 'target': categories[doc['topic']],\n", " }\n", " for doc in newsgroups\n", " if doc['topic'] in categories and doc['set'] == 'test'\n", "])\n", "random_state.shuffle(testset)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "We'll use very [simple preprocessing with stemming](https://radimrehurek.com/gensim/parsing/preprocessing.html#gensim.parsing.preprocessing.preprocess_string) to tokenize each document. YMMV; in your application, use whatever preprocessing makes sense in your domain. Correctly preparing the input has [major impact](https://en.wikipedia.org/wiki/Garbage_in,_garbage_out) on any subsequent ML training." ] }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [], "source": [ "train_documents = [preprocess_string(doc['data']) for doc in trainset]\n", "test_documents = [preprocess_string(doc['data']) for doc in testset]" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Dictionary compilation" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Let's create a mapping between tokens and their ids. Another option would be a [HashDictionary](https://radimrehurek.com/gensim/corpora/hashdictionary.html), saving ourselves one pass over the training documents." ] }, { "cell_type": "code", "execution_count": 5, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "2019-05-06 15:57:16,471 : INFO : adding document #0 to Dictionary(0 unique tokens: [])\n", "2019-05-06 15:57:16,781 : INFO : built Dictionary(25279 unique tokens: ['sketch', 'addario', 'foyer', 'labratsat', 'reclaim']...) from 2819 documents (total 435328 corpus positions)\n", "2019-05-06 15:57:16,809 : INFO : discarding 18198 tokens: [('batka', 1), ('batkaj', 1), ('beatl', 1), ('ccmail', 3), ('dayton', 4), ('edu', 1785), ('inhibit', 1), ('jbatka', 1), ('line', 2748), ('organ', 2602)]...\n", "2019-05-06 15:57:16,810 : INFO : keeping 7081 tokens which were in no less than 5 and no more than 1409 (=50.0%) documents\n", "2019-05-06 15:57:16,821 : INFO : resulting dictionary: Dictionary(7081 unique tokens: ['colost', 'choke', 'editor', 'china', 'piss']...)\n" ] } ], "source": [ "dictionary = Dictionary(train_documents)\n", "dictionary.filter_extremes(no_below=5, no_above=0.5, keep_n=20000) # filter out too in/frequent tokens" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Create training corpus" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Let's vectorize the training corpus into the bag-of-words format. We'll train LDA on a BOW and NMFs on an TF-IDF corpus:" ] }, { "cell_type": "code", "execution_count": 6, "metadata": {}, "outputs": [], "source": [ "tfidf = TfidfModel(dictionary=dictionary)\n", "\n", "train_corpus = [\n", " dictionary.doc2bow(document)\n", " for document\n", " in train_documents\n", "]\n", "\n", "test_corpus = [\n", " dictionary.doc2bow(document)\n", " for document\n", " in test_documents\n", "]\n", "\n", "train_corpus_tfidf = list(tfidf[train_corpus])\n", "\n", "test_corpus_tfidf = list(tfidf[test_corpus])" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Here we simply stored the bag-of-words vectors into a `list`, but Gensim accepts [any iterable](https://radimrehurek.com/gensim/tut1.html#corpus-streaming-one-document-at-a-time) as input, including streamed ones. To learn more about memory-efficient input iterables, see our [Data Streaming in Python: Generators, Iterators, Iterables](https://rare-technologies.com/data-streaming-in-python-generators-iterators-iterables/) tutorial." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## NMF Model Training\n", "\n", "The API works in the same way as other Gensim models, such as [LdaModel](https://radimrehurek.com/gensim/models/ldamodel.html) or [LsiModel](https://radimrehurek.com/gensim/models/lsimodel.html)." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Notable model parameters:\n", "\n", "- `kappa` float, optional\n", "\n", " Gradient descent step size.\n", " Larger value makes the model train faster, but could lead to non-convergence if set too large.\n", " \n", "- `w_max_iter` int, optional\n", "\n", " Maximum number of iterations to train W per each batch.\n", " \n", "- `w_stop_condition` float, optional\n", "\n", " If the error difference gets smaller than this, training of ``W`` stops for the current batch.\n", " \n", "- `h_r_max_iter` int, optional\n", "\n", " Maximum number of iterations to train h per each batch.\n", " \n", "- `h_r_stop_condition` float, optional\n", "\n", " If the error difference gets smaller than this, training of ``h`` stops for the current batch." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Learn an NMF model with 5 topics:" ] }, { "cell_type": "code", "execution_count": 7, "metadata": { "scrolled": true }, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "2019-05-06 15:57:18,565 : INFO : running NMF training, 5 topics, 5 passes over the supplied corpus of 2819 documents, evaluating l2 norm every 2819 documents\n", "2019-05-06 15:57:18,581 : INFO : PROGRESS: pass 0, at document #1000/2819\n", "2019-05-06 15:57:18,604 : INFO : W error: -11.552583824232896\n", "2019-05-06 15:57:18,619 : INFO : PROGRESS: pass 0, at document #2000/2819\n", "2019-05-06 15:57:18,627 : INFO : W error: -13.74803744073488\n", "2019-05-06 15:57:18,639 : INFO : PROGRESS: pass 0, at document #2819/2819\n", "2019-05-06 15:57:18,735 : INFO : L2 norm: 28.141396382337142\n", "2019-05-06 15:57:18,770 : INFO : topic #0 (0.395): 0.011*\"isra\" + 0.010*\"israel\" + 0.006*\"arab\" + 0.006*\"jew\" + 0.004*\"palestinian\" + 0.004*\"henri\" + 0.003*\"toronto\" + 0.003*\"question\" + 0.003*\"kill\" + 0.003*\"hernlem\"\n", "2019-05-06 15:57:18,771 : INFO : topic #1 (0.352): 0.008*\"space\" + 0.005*\"access\" + 0.005*\"nasa\" + 0.004*\"pat\" + 0.003*\"digex\" + 0.003*\"orbit\" + 0.003*\"shuttl\" + 0.003*\"data\" + 0.003*\"graphic\" + 0.003*\"com\"\n", "2019-05-06 15:57:18,772 : INFO : topic #2 (0.378): 0.012*\"armenian\" + 0.006*\"turkish\" + 0.004*\"greek\" + 0.004*\"peopl\" + 0.004*\"armenia\" + 0.004*\"turk\" + 0.004*\"argic\" + 0.004*\"bike\" + 0.003*\"serdar\" + 0.003*\"turkei\"\n", "2019-05-06 15:57:18,772 : INFO : topic #3 (0.412): 0.010*\"moral\" + 0.006*\"keith\" + 0.004*\"anim\" + 0.003*\"jake\" + 0.003*\"boni\" + 0.003*\"instinct\" + 0.003*\"act\" + 0.003*\"think\" + 0.003*\"object\" + 0.003*\"caltech\"\n", "2019-05-06 15:57:18,773 : INFO : topic #4 (0.428): 0.009*\"islam\" + 0.008*\"god\" + 0.006*\"livesei\" + 0.006*\"muslim\" + 0.005*\"imag\" + 0.005*\"sgi\" + 0.005*\"jaeger\" + 0.004*\"jon\" + 0.004*\"solntz\" + 0.004*\"wpd\"\n", "2019-05-06 15:57:18,776 : INFO : W error: -14.346700852834074\n", "2019-05-06 15:57:18,791 : INFO : PROGRESS: pass 1, at document #1000/2819\n", "2019-05-06 15:57:18,797 : INFO : W error: -15.92349117004869\n", "2019-05-06 15:57:18,811 : INFO : PROGRESS: pass 1, at document #2000/2819\n", "2019-05-06 15:57:18,816 : INFO : W error: -17.04437515427273\n", "2019-05-06 15:57:18,829 : INFO : PROGRESS: pass 1, at document #2819/2819\n", "2019-05-06 15:57:18,922 : INFO : L2 norm: 28.021861174968205\n", "2019-05-06 15:57:18,956 : INFO : topic #0 (0.341): 0.014*\"israel\" + 0.013*\"isra\" + 0.008*\"arab\" + 0.007*\"jew\" + 0.005*\"palestinian\" + 0.004*\"lebanes\" + 0.003*\"peac\" + 0.003*\"henri\" + 0.003*\"attack\" + 0.003*\"polici\"\n", "2019-05-06 15:57:18,956 : INFO : topic #1 (0.252): 0.008*\"space\" + 0.005*\"nasa\" + 0.004*\"access\" + 0.003*\"pat\" + 0.003*\"orbit\" + 0.003*\"digex\" + 0.003*\"launch\" + 0.003*\"shuttl\" + 0.003*\"graphic\" + 0.003*\"com\"\n", "2019-05-06 15:57:18,957 : INFO : topic #2 (0.295): 0.020*\"armenian\" + 0.010*\"turkish\" + 0.006*\"armenia\" + 0.006*\"turk\" + 0.006*\"argic\" + 0.006*\"serdar\" + 0.005*\"greek\" + 0.005*\"turkei\" + 0.004*\"peopl\" + 0.004*\"genocid\"\n", "2019-05-06 15:57:18,958 : INFO : topic #3 (0.345): 0.013*\"moral\" + 0.011*\"keith\" + 0.006*\"object\" + 0.005*\"caltech\" + 0.004*\"schneider\" + 0.004*\"anim\" + 0.004*\"jake\" + 0.004*\"allan\" + 0.004*\"boni\" + 0.004*\"cco\"\n", "2019-05-06 15:57:18,959 : INFO : topic #4 (0.375): 0.011*\"islam\" + 0.011*\"god\" + 0.006*\"livesei\" + 0.006*\"sgi\" + 0.006*\"jaeger\" + 0.005*\"muslim\" + 0.005*\"jon\" + 0.005*\"imag\" + 0.005*\"religion\" + 0.005*\"solntz\"\n", "2019-05-06 15:57:18,961 : INFO : W error: -17.08829704968913\n", "2019-05-06 15:57:18,975 : INFO : PROGRESS: pass 2, at document #1000/2819\n", "2019-05-06 15:57:18,981 : INFO : W error: -17.73961065930116\n", "2019-05-06 15:57:18,996 : INFO : PROGRESS: pass 2, at document #2000/2819\n", "2019-05-06 15:57:19,001 : INFO : W error: -18.289085863153712\n", "2019-05-06 15:57:19,013 : INFO : PROGRESS: pass 2, at document #2819/2819\n", "2019-05-06 15:57:19,107 : INFO : L2 norm: 28.001900396967052\n", "2019-05-06 15:57:19,141 : INFO : topic #0 (0.341): 0.014*\"israel\" + 0.014*\"isra\" + 0.009*\"arab\" + 0.008*\"jew\" + 0.005*\"palestinian\" + 0.004*\"lebanes\" + 0.004*\"peac\" + 0.003*\"attack\" + 0.003*\"polici\" + 0.003*\"lebanon\"\n", "2019-05-06 15:57:19,142 : INFO : topic #1 (0.230): 0.007*\"space\" + 0.005*\"nasa\" + 0.004*\"access\" + 0.003*\"orbit\" + 0.003*\"pat\" + 0.003*\"launch\" + 0.003*\"digex\" + 0.003*\"gov\" + 0.003*\"com\" + 0.003*\"graphic\"\n", "2019-05-06 15:57:19,142 : INFO : topic #2 (0.284): 0.021*\"armenian\" + 0.011*\"turkish\" + 0.007*\"armenia\" + 0.007*\"turk\" + 0.007*\"argic\" + 0.006*\"serdar\" + 0.006*\"turkei\" + 0.005*\"greek\" + 0.005*\"genocid\" + 0.004*\"soviet\"\n", "2019-05-06 15:57:19,143 : INFO : topic #3 (0.346): 0.015*\"moral\" + 0.013*\"keith\" + 0.006*\"object\" + 0.006*\"caltech\" + 0.005*\"schneider\" + 0.005*\"allan\" + 0.005*\"cco\" + 0.004*\"anim\" + 0.004*\"jake\" + 0.003*\"boni\"\n", "2019-05-06 15:57:19,144 : INFO : topic #4 (0.365): 0.012*\"islam\" + 0.011*\"god\" + 0.006*\"livesei\" + 0.006*\"sgi\" + 0.006*\"jaeger\" + 0.005*\"muslim\" + 0.005*\"jon\" + 0.005*\"religion\" + 0.004*\"solntz\" + 0.004*\"wpd\"\n", "2019-05-06 15:57:19,146 : INFO : W error: -18.220202313431095\n", "2019-05-06 15:57:19,160 : INFO : PROGRESS: pass 3, at document #1000/2819\n", "2019-05-06 15:57:19,165 : INFO : W error: -18.590446221955172\n", "2019-05-06 15:57:19,180 : INFO : PROGRESS: pass 3, at document #2000/2819\n", "2019-05-06 15:57:19,185 : INFO : W error: -18.936998738726114\n", "2019-05-06 15:57:19,197 : INFO : PROGRESS: pass 3, at document #2819/2819\n", "2019-05-06 15:57:19,291 : INFO : L2 norm: 27.993018072469805\n", "2019-05-06 15:57:19,324 : INFO : topic #0 (0.348): 0.015*\"israel\" + 0.014*\"isra\" + 0.009*\"arab\" + 0.008*\"jew\" + 0.005*\"palestinian\" + 0.004*\"lebanes\" + 0.004*\"peac\" + 0.003*\"attack\" + 0.003*\"lebanon\" + 0.003*\"polici\"\n", "2019-05-06 15:57:19,325 : INFO : topic #1 (0.221): 0.007*\"space\" + 0.005*\"nasa\" + 0.003*\"access\" + 0.003*\"orbit\" + 0.003*\"pat\" + 0.003*\"launch\" + 0.003*\"gov\" + 0.003*\"digex\" + 0.003*\"com\" + 0.002*\"graphic\"\n", "2019-05-06 15:57:19,325 : INFO : topic #2 (0.281): 0.022*\"armenian\" + 0.011*\"turkish\" + 0.007*\"armenia\" + 0.007*\"turk\" + 0.007*\"argic\" + 0.007*\"serdar\" + 0.006*\"turkei\" + 0.005*\"greek\" + 0.005*\"genocid\" + 0.005*\"soviet\"\n", "2019-05-06 15:57:19,326 : INFO : topic #3 (0.349): 0.016*\"moral\" + 0.014*\"keith\" + 0.007*\"object\" + 0.006*\"caltech\" + 0.006*\"schneider\" + 0.005*\"allan\" + 0.005*\"cco\" + 0.004*\"anim\" + 0.004*\"natur\" + 0.003*\"think\"\n", "2019-05-06 15:57:19,327 : INFO : topic #4 (0.365): 0.012*\"islam\" + 0.012*\"god\" + 0.006*\"sgi\" + 0.006*\"livesei\" + 0.006*\"jaeger\" + 0.005*\"muslim\" + 0.005*\"religion\" + 0.005*\"atheist\" + 0.005*\"jon\" + 0.005*\"atheism\"\n", "2019-05-06 15:57:19,328 : INFO : W error: -18.84541532652092\n", "2019-05-06 15:57:19,342 : INFO : PROGRESS: pass 4, at document #1000/2819\n", "2019-05-06 15:57:19,347 : INFO : W error: -19.091058241700402\n", "2019-05-06 15:57:19,362 : INFO : PROGRESS: pass 4, at document #2000/2819\n", "2019-05-06 15:57:19,367 : INFO : W error: -19.338453391122066\n", "2019-05-06 15:57:19,378 : INFO : PROGRESS: pass 4, at document #2819/2819\n", "2019-05-06 15:57:19,473 : INFO : L2 norm: 27.988158841345246\n", "2019-05-06 15:57:19,506 : INFO : topic #0 (0.352): 0.015*\"israel\" + 0.014*\"isra\" + 0.009*\"arab\" + 0.008*\"jew\" + 0.005*\"palestinian\" + 0.004*\"lebanes\" + 0.004*\"peac\" + 0.003*\"attack\" + 0.003*\"lebanon\" + 0.003*\"polici\"\n", "2019-05-06 15:57:19,507 : INFO : topic #1 (0.210): 0.007*\"space\" + 0.005*\"nasa\" + 0.003*\"access\" + 0.003*\"orbit\" + 0.003*\"launch\" + 0.003*\"pat\" + 0.003*\"gov\" + 0.003*\"com\" + 0.002*\"alaska\" + 0.002*\"graphic\"\n", "2019-05-06 15:57:19,508 : INFO : topic #2 (0.282): 0.023*\"armenian\" + 0.011*\"turkish\" + 0.008*\"armenia\" + 0.007*\"argic\" + 0.007*\"turk\" + 0.007*\"serdar\" + 0.006*\"turkei\" + 0.005*\"greek\" + 0.005*\"genocid\" + 0.005*\"soviet\"\n", "2019-05-06 15:57:19,509 : INFO : topic #3 (0.353): 0.016*\"moral\" + 0.015*\"keith\" + 0.007*\"object\" + 0.007*\"caltech\" + 0.006*\"schneider\" + 0.005*\"allan\" + 0.005*\"cco\" + 0.004*\"anim\" + 0.004*\"natur\" + 0.004*\"goal\"\n", "2019-05-06 15:57:19,509 : INFO : topic #4 (0.367): 0.012*\"god\" + 0.012*\"islam\" + 0.006*\"jaeger\" + 0.006*\"sgi\" + 0.006*\"livesei\" + 0.005*\"muslim\" + 0.005*\"atheist\" + 0.005*\"religion\" + 0.005*\"atheism\" + 0.004*\"jon\"\n", "2019-05-06 15:57:19,511 : INFO : W error: -19.245120389312117\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ "CPU times: user 1.52 s, sys: 1.84 s, total: 3.36 s\n", "Wall time: 947 ms\n" ] } ], "source": [ "%%time\n", "\n", "nmf = GensimNmf(\n", " corpus=train_corpus_tfidf,\n", " num_topics=5,\n", " id2word=dictionary,\n", " chunksize=1000,\n", " passes=5,\n", " eval_every=10,\n", " minimum_probability=0,\n", " random_state=0,\n", " kappa=1,\n", ")" ] }, { "cell_type": "code", "execution_count": 8, "metadata": {}, "outputs": [], "source": [ "W = nmf.get_topics().T\n", "\n", "dense_test_corpus = matutils.corpus2dense(\n", " test_corpus_tfidf,\n", " num_terms=W.shape[0],\n", ")\n", "\n", "if isinstance(nmf, SklearnNmf):\n", " H = nmf.transform(dense_test_corpus.T).T\n", "else:\n", " H = np.zeros((nmf.num_topics, len(test_corpus_tfidf)))\n", " for bow_id, bow in enumerate(test_corpus_tfidf):\n", " for topic_id, word_count in nmf[bow]:\n", " H[topic_id, bow_id] = word_count" ] }, { "cell_type": "code", "execution_count": 9, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "1.105176733465657" ] }, "execution_count": 9, "metadata": {}, "output_type": "execute_result" } ], "source": [ "np.linalg.norm(W.dot(H))" ] }, { "cell_type": "code", "execution_count": 10, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "43.312817" ] }, "execution_count": 10, "metadata": {}, "output_type": "execute_result" } ], "source": [ "np.linalg.norm(dense_test_corpus)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### View the learned topics" ] }, { "cell_type": "code", "execution_count": 11, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "[(0,\n", " '0.015*\"israel\" + 0.014*\"isra\" + 0.009*\"arab\" + 0.008*\"jew\" + 0.005*\"palestinian\" + 0.004*\"lebanes\" + 0.004*\"peac\" + 0.004*\"attack\" + 0.004*\"lebanon\" + 0.003*\"polici\"'),\n", " (1,\n", " '0.007*\"space\" + 0.005*\"nasa\" + 0.003*\"access\" + 0.003*\"orbit\" + 0.003*\"launch\" + 0.003*\"pat\" + 0.003*\"gov\" + 0.003*\"com\" + 0.002*\"alaska\" + 0.002*\"moon\"'),\n", " (2,\n", " '0.023*\"armenian\" + 0.011*\"turkish\" + 0.008*\"armenia\" + 0.007*\"argic\" + 0.007*\"turk\" + 0.007*\"serdar\" + 0.006*\"turkei\" + 0.005*\"greek\" + 0.005*\"genocid\" + 0.005*\"soviet\"'),\n", " (3,\n", " '0.016*\"moral\" + 0.015*\"keith\" + 0.007*\"object\" + 0.007*\"caltech\" + 0.006*\"schneider\" + 0.005*\"allan\" + 0.005*\"cco\" + 0.004*\"anim\" + 0.004*\"natur\" + 0.004*\"goal\"'),\n", " (4,\n", " '0.012*\"god\" + 0.012*\"islam\" + 0.006*\"jaeger\" + 0.006*\"sgi\" + 0.005*\"livesei\" + 0.005*\"muslim\" + 0.005*\"atheist\" + 0.005*\"religion\" + 0.005*\"atheism\" + 0.004*\"rushdi\"')]" ] }, "execution_count": 11, "metadata": {}, "output_type": "execute_result" } ], "source": [ "nmf.show_topics()" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Evaluation measure: Coherence\n", "\n", "[Topic coherence](http://qpleple.com/topic-coherence-to-evaluate-topic-models/) measures how often do most frequent tokens from each topic co-occur in one document. Larger is better." ] }, { "cell_type": "code", "execution_count": 12, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "2019-05-06 15:57:20,590 : INFO : CorpusAccumulator accumulated stats from 1000 documents\n" ] }, { "data": { "text/plain": [ "-4.1310114675795875" ] }, "execution_count": 12, "metadata": {}, "output_type": "execute_result" } ], "source": [ "CoherenceModel(\n", " model=nmf,\n", " corpus=test_corpus_tfidf,\n", " coherence='u_mass'\n", ").get_coherence()" ] }, { "cell_type": "markdown", "metadata": { "lines_to_next_cell": 2 }, "source": [ "## Topic inference on new documents\n", "\n", "With the NMF model trained, let's fetch one news document not seen during training, and infer its topic vector." ] }, { "cell_type": "code", "execution_count": 13, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "From: spl@ivem.ucsd.edu (Steve Lamont)\n", "Subject: Re: RGB to HVS, and back\n", "Organization: University of Calif., San Diego/Microscopy and Imaging Resource\n", "Lines: 18\n", "Distribution: world\n", "NNTP-Posting-Host: ivem.ucsd.edu\n", "\n", "In article <ltu4buINNe7j@caspian.usc.edu> zyeh@caspian.usc.edu (zhenghao yeh) writes:\n", ">|> See Foley, van Dam, Feiner, and Hughes, _Computer Graphics: Principles\n", ">|> and Practice, Second Edition_.\n", ">|> \n", ">|> [If people would *read* this book, 75 percent of the questions in this\n", ">|> froup would disappear overnight...]\n", ">|> \n", ">\tNot really. I think it is less than 10%.\n", "\n", "Nah... I figure most people would be so busy reading that they wouldn't\n", "have *time* to post. :-) :-) :-)\n", "\n", "\t\t\t\t\t\t\tspl\n", "-- \n", "Steve Lamont, SciViGuy -- (619) 534-7968 -- spl@szechuan.ucsd.edu\n", "San Diego Microscopy and Imaging Resource/UC San Diego/La Jolla, CA 92093-0608\n", "\"Until I meet you, then, in Upper Hell\n", "Convulsed, foaming immortal blood: farewell\" - J. Berryman, \"A Professor's Song\"\n", "\n", "====================================================================================================\n", "Topics: [(0, 0.10199317206513686), (1, 0.39976628221371285), (2, 0.1428263926167706), (3, 0.0333080734922002), (4, 0.3221060796121796)]\n" ] } ], "source": [ "print(testset[0]['data'])\n", "print('=' * 100)\n", "print(\"Topics: {}\".format(nmf[test_corpus[0]]))" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Word topic inference\n", "\n", "Similarly, we can inspect the topic distribution assigned to a vocabulary term:" ] }, { "cell_type": "code", "execution_count": 14, "metadata": { "lines_to_next_cell": 2 }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Word: actual\n", "Topics: [(0, 0.15401782844659068), (1, 0.2829834256007429), (2, 0.04354905106817273), (3, 0.25783766798021135), (4, 0.26161202690428226)]\n" ] } ], "source": [ "word = dictionary[0]\n", "print(\"Word: {}\".format(word))\n", "print(\"Topics: {}\".format(nmf.get_term_topics(word)))" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Internal NMF state" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Density is a fraction of non-zero elements in a matrix." ] }, { "cell_type": "code", "execution_count": 15, "metadata": { "lines_to_next_cell": 2 }, "outputs": [], "source": [ "def density(matrix):\n", " return (matrix > 0).mean()" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Term-topic matrix of shape `(words, topics)`." ] }, { "cell_type": "code", "execution_count": 16, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Density: 0.6872475639034035\n" ] } ], "source": [ "print(\"Density: {}\".format(density(nmf._W)))" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Topic-document matrix for the last batch of shape `(topics, batch)`" ] }, { "cell_type": "code", "execution_count": 17, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Density: 0.6615384615384615\n" ] } ], "source": [ "print(\"Density: {}\".format(density(nmf._h)))" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# 3. Benchmarks" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Gensim NMF vs Sklearn NMF vs Gensim LDA\n", "\n", "We'll run these three unsupervised models on the [20newsgroups](https://scikit-learn.org/0.19/datasets/twenty_newsgroups.html) dataset.\n", "\n", "20 Newsgroups also contains labels for each document, which will allow us to evaluate the trained models on an \"upstream\" classification task, using the unsupervised document topics as input features." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Metrics\n", "\n", "We'll track these metrics as we train and test NMF on the 20-newsgroups corpus we created above:\n", "- `train time` - time to train a model\n", "- `mean_ram` - mean RAM consumption during training\n", "- `max_ram` - maximum RAM consumption during training\n", "- `train time` - time to train a model.\n", "- `coherence` - coherence score (larger is better).\n", "- `l2_norm` - L2 norm of `v - Wh` (less is better, not defined for LDA).\n", "- `f1` - [F1 score](https://en.wikipedia.org/wiki/F1_score) on the task of news topic classification (larger is better)." ] }, { "cell_type": "code", "execution_count": 18, "metadata": { "lines_to_next_cell": 2 }, "outputs": [], "source": [ "fixed_params = dict(\n", " chunksize=1000,\n", " num_topics=5,\n", " id2word=dictionary,\n", " passes=5,\n", " eval_every=10,\n", " minimum_probability=0,\n", " random_state=0,\n", ")" ] }, { "cell_type": "code", "execution_count": 19, "metadata": {}, "outputs": [], "source": [ "@contextmanager\n", "def measure_ram(output, tick=5):\n", " def _measure_ram(pid, output, tick=tick):\n", " py = psutil.Process(pid)\n", " with open(output, 'w') as outfile:\n", " while True:\n", " memory = py.memory_info().rss\n", " outfile.write(\"{}\\n\".format(memory))\n", " outfile.flush()\n", " time.sleep(tick)\n", "\n", " pid = os.getpid()\n", " p = Process(target=_measure_ram, args=(pid, output, tick))\n", " p.start()\n", " yield\n", " p.terminate()\n", "\n", "\n", "def get_train_time_and_ram(func, name, tick=5):\n", " memprof_filename = \"{}.memprof\".format(name)\n", "\n", " start = time.time()\n", "\n", " with measure_ram(memprof_filename, tick=tick):\n", " result = func()\n", "\n", " elapsed_time = pd.to_timedelta(time.time() - start, unit='s').round('ms')\n", "\n", " memprof_df = pd.read_csv(memprof_filename, squeeze=True)\n", "\n", " mean_ram = \"{} MB\".format(\n", " int(memprof_df.mean() // 2 ** 20),\n", " )\n", "\n", " max_ram = \"{} MB\".format(int(memprof_df.max() // 2 ** 20))\n", "\n", " return elapsed_time, mean_ram, max_ram, result\n", "\n", "\n", "def get_f1(model, train_corpus, X_test, y_train, y_test):\n", " if isinstance(model, SklearnNmf):\n", " dense_train_corpus = matutils.corpus2dense(\n", " train_corpus,\n", " num_terms=model.components_.shape[1],\n", " )\n", " X_train = model.transform(dense_train_corpus.T)\n", " else:\n", " X_train = np.zeros((len(train_corpus), model.num_topics))\n", " for bow_id, bow in enumerate(train_corpus):\n", " for topic_id, word_count in model[bow]:\n", " X_train[bow_id, topic_id] = word_count\n", "\n", " log_reg = LogisticRegressionCV(multi_class='multinomial', cv=5)\n", " log_reg.fit(X_train, y_train)\n", "\n", " pred_labels = log_reg.predict(X_test)\n", "\n", " return f1_score(y_test, pred_labels, average='micro')\n", "\n", "def get_sklearn_topics(model, top_n=5):\n", " topic_probas = model.components_.T\n", " topic_probas = topic_probas / topic_probas.sum(axis=0)\n", "\n", " sparsity = np.zeros(topic_probas.shape[1])\n", "\n", " for row in topic_probas:\n", " sparsity += (row == 0)\n", "\n", " sparsity /= topic_probas.shape[1]\n", "\n", " topic_probas = topic_probas[:, sparsity.argsort()[::-1]][:, :top_n]\n", "\n", " token_indices = topic_probas.argsort(axis=0)[:-11:-1, :]\n", " topic_probas.sort(axis=0)\n", " topic_probas = topic_probas[:-11:-1, :]\n", "\n", " topics = []\n", "\n", " for topic_idx in range(topic_probas.shape[1]):\n", " tokens = [\n", " model.id2word[token_idx]\n", " for token_idx\n", " in token_indices[:, topic_idx]\n", " ]\n", " topic = (\n", " '{}*\"{}\"'.format(round(proba, 3), token)\n", " for proba, token\n", " in zip(topic_probas[:, topic_idx], tokens)\n", " )\n", " topic = \" + \".join(topic)\n", " topics.append((topic_idx, topic))\n", "\n", " return topics\n", "\n", "def get_metrics(model, test_corpus, train_corpus=None, y_train=None, y_test=None, dictionary=None):\n", " if isinstance(model, SklearnNmf):\n", " model.get_topics = lambda: model.components_\n", " model.show_topics = lambda top_n: get_sklearn_topics(model, top_n)\n", " model.id2word = dictionary\n", "\n", " W = model.get_topics().T\n", "\n", " dense_test_corpus = matutils.corpus2dense(\n", " test_corpus,\n", " num_terms=W.shape[0],\n", " )\n", "\n", " if isinstance(model, SklearnNmf):\n", " H = model.transform(dense_test_corpus.T).T\n", " else:\n", " H = np.zeros((model.num_topics, len(test_corpus)))\n", " for bow_id, bow in enumerate(test_corpus):\n", " for topic_id, word_count in model[bow]:\n", " H[topic_id, bow_id] = word_count\n", "\n", " l2_norm = None\n", "\n", " if not isinstance(model, LdaModel):\n", " pred_factors = W.dot(H)\n", "\n", " l2_norm = np.linalg.norm(pred_factors - dense_test_corpus)\n", " l2_norm = round(l2_norm, 4)\n", "\n", " f1 = None\n", "\n", " if train_corpus and y_train and y_test:\n", " f1 = get_f1(model, train_corpus, H.T, y_train, y_test)\n", " f1 = round(f1, 4)\n", "\n", " model.normalize = True\n", "\n", " coherence = CoherenceModel(\n", " model=model,\n", " corpus=test_corpus,\n", " coherence='u_mass'\n", " ).get_coherence()\n", " coherence = round(coherence, 4)\n", "\n", " topics = model.show_topics(5)\n", "\n", " model.normalize = False\n", "\n", " return dict(\n", " coherence=coherence,\n", " l2_norm=l2_norm,\n", " f1=f1,\n", " topics=topics,\n", " )" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Run the models" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "scrolled": true }, "outputs": [], "source": [ "tm_metrics = pd.DataFrame(columns=['model', 'train_time', 'coherence', 'l2_norm', 'f1', 'topics'])\n", "\n", "y_train = [doc['target'] for doc in trainset]\n", "y_test = [doc['target'] for doc in testset]\n", "\n", "# LDA metrics\n", "row = {}\n", "row['model'] = 'lda'\n", "row['train_time'], row['mean_ram'], row['max_ram'], lda = get_train_time_and_ram(\n", " lambda: LdaModel(\n", " corpus=train_corpus,\n", " **fixed_params,\n", " ),\n", " 'lda',\n", " 0.1,\n", ")\n", "row.update(get_metrics(\n", " lda, test_corpus, train_corpus, y_train, y_test,\n", "))\n", "tm_metrics = tm_metrics.append(pd.Series(row), ignore_index=True)\n", "\n", "# LSI metrics\n", "row = {}\n", "row['model'] = 'lsi'\n", "row['train_time'], row['mean_ram'], row['max_ram'], lsi = get_train_time_and_ram(\n", " lambda: LsiModel(\n", " corpus=train_corpus_tfidf,\n", " num_topics=5,\n", " id2word=dictionary,\n", " chunksize=2000,\n", " ),\n", " 'lsi',\n", " 0.1,\n", ")\n", "row.update(get_metrics(\n", " lsi, test_corpus_tfidf, train_corpus_tfidf, y_train, y_test,\n", "))\n", "tm_metrics = tm_metrics.append(pd.Series(row), ignore_index=True)\n", "\n", "# Sklearn NMF metrics\n", "row = {}\n", "row['model'] = 'sklearn_nmf'\n", "train_csc_corpus_tfidf = matutils.corpus2csc(train_corpus_tfidf, len(dictionary)).T\n", "row['train_time'], row['mean_ram'], row['max_ram'], sklearn_nmf = get_train_time_and_ram(\n", " lambda: SklearnNmf(n_components=5, random_state=42).fit(train_csc_corpus_tfidf),\n", " 'sklearn_nmf',\n", " 0.1,\n", ")\n", "row.update(get_metrics(\n", " sklearn_nmf, test_corpus_tfidf, train_corpus_tfidf, y_train, y_test, dictionary,\n", "))\n", "tm_metrics = tm_metrics.append(pd.Series(row), ignore_index=True)\n", "\n", "# Gensim NMF metrics\n", "row = {}\n", "row['model'] = 'gensim_nmf'\n", "row['train_time'], row['mean_ram'], row['max_ram'], gensim_nmf = get_train_time_and_ram(\n", " lambda: GensimNmf(\n", " normalize=False,\n", " corpus=train_corpus_tfidf,\n", " **fixed_params\n", " ),\n", " 'gensim_nmf',\n", " 0.1,\n", ")\n", "row.update(get_metrics(\n", " gensim_nmf, test_corpus_tfidf, train_corpus_tfidf, y_train, y_test,\n", "))\n", "tm_metrics = tm_metrics.append(pd.Series(row), ignore_index=True)\n", "tm_metrics.replace(np.nan, '-', inplace=True)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Benchmark results" ] }, { "cell_type": "code", "execution_count": 21, "metadata": {}, "outputs": [ { "data": { "text/html": [ "<div>\n", "<style scoped>\n", " .dataframe tbody tr th:only-of-type {\n", " vertical-align: middle;\n", " }\n", "\n", " .dataframe tbody tr th {\n", " vertical-align: top;\n", " }\n", "\n", " .dataframe thead th {\n", " text-align: right;\n", " }\n", "</style>\n", "<table border=\"1\" class=\"dataframe\">\n", " <thead>\n", " <tr style=\"text-align: right;\">\n", " <th></th>\n", " <th>model</th>\n", " <th>train_time</th>\n", " <th>coherence</th>\n", " <th>l2_norm</th>\n", " <th>f1</th>\n", " <th>max_ram</th>\n", " <th>mean_ram</th>\n", " </tr>\n", " </thead>\n", " <tbody>\n", " <tr>\n", " <th>0</th>\n", " <td>lda</td>\n", " <td>00:00:08.862000</td>\n", " <td>-2.1054</td>\n", " <td>-</td>\n", " <td>0.7511</td>\n", " <td>366 MB</td>\n", " <td>366 MB</td>\n", " </tr>\n", " <tr>\n", " <th>1</th>\n", " <td>lsi</td>\n", " <td>00:00:00.332000</td>\n", " <td>-5.7010</td>\n", " <td>42.4642</td>\n", " <td>0.8587</td>\n", " <td>381 MB</td>\n", " <td>379 MB</td>\n", " </tr>\n", " <tr>\n", " <th>2</th>\n", " <td>sklearn_nmf</td>\n", " <td>00:00:00.166000</td>\n", " <td>-3.1835</td>\n", " <td>42.4759</td>\n", " <td>0.7889</td>\n", " <td>378 MB</td>\n", " <td>378 MB</td>\n", " </tr>\n", " <tr>\n", " <th>3</th>\n", " <td>gensim_nmf</td>\n", " <td>00:00:00.954000</td>\n", " <td>-4.1310</td>\n", " <td>42.5487</td>\n", " <td>0.8065</td>\n", " <td>379 MB</td>\n", " <td>379 MB</td>\n", " </tr>\n", " </tbody>\n", "</table>\n", "</div>" ], "text/plain": [ " model train_time coherence l2_norm f1 max_ram mean_ram\n", "0 lda 00:00:08.862000 -2.1054 - 0.7511 366 MB 366 MB\n", "1 lsi 00:00:00.332000 -5.7010 42.4642 0.8587 381 MB 379 MB\n", "2 sklearn_nmf 00:00:00.166000 -3.1835 42.4759 0.7889 378 MB 378 MB\n", "3 gensim_nmf 00:00:00.954000 -4.1310 42.5487 0.8065 379 MB 379 MB" ] }, "execution_count": 21, "metadata": {}, "output_type": "execute_result" } ], "source": [ "tm_metrics.drop('topics', axis=1)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Main insights\n", "\n", "- LDA has the best coherence of all models.\n", "- LSI has the best l2 norm and f1 performance on downstream task (it's factors aren't non-negative though).\n", "- Gensim NMF, Sklearn NMF and LSI has a bit larger memory footprint than that of LDA.\n", "- Gensim NMF, Sklearn NMF and LSI are much faster than LDA." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Learned topics" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Let's inspect the 5 topics learned by each of the three models:" ] }, { "cell_type": "code", "execution_count": 22, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "\n", "lda:\n", "(0, '0.013*\"space\" + 0.008*\"imag\" + 0.007*\"nasa\" + 0.006*\"graphic\" + 0.006*\"program\" + 0.005*\"launch\" + 0.005*\"file\" + 0.005*\"com\" + 0.005*\"new\" + 0.004*\"orbit\"')\n", "(1, '0.015*\"com\" + 0.007*\"like\" + 0.007*\"nntp\" + 0.007*\"host\" + 0.006*\"know\" + 0.006*\"univers\" + 0.005*\"henri\" + 0.005*\"work\" + 0.005*\"bit\" + 0.005*\"think\"')\n", "(2, '0.014*\"armenian\" + 0.011*\"peopl\" + 0.009*\"turkish\" + 0.007*\"jew\" + 0.007*\"said\" + 0.006*\"right\" + 0.005*\"know\" + 0.005*\"kill\" + 0.005*\"isra\" + 0.005*\"turkei\"')\n", "(3, '0.012*\"com\" + 0.010*\"israel\" + 0.009*\"bike\" + 0.006*\"isra\" + 0.006*\"dod\" + 0.005*\"like\" + 0.005*\"ride\" + 0.005*\"host\" + 0.005*\"nntp\" + 0.005*\"motorcycl\"')\n", "(4, '0.011*\"god\" + 0.008*\"peopl\" + 0.007*\"think\" + 0.006*\"exist\" + 0.006*\"univers\" + 0.005*\"com\" + 0.005*\"believ\" + 0.005*\"islam\" + 0.005*\"moral\" + 0.005*\"christian\"')\n", "\n", "lsi:\n", "(0, '0.157*\"armenian\" + 0.118*\"israel\" + 0.110*\"peopl\" + 0.110*\"isra\" + 0.105*\"space\" + 0.098*\"com\" + 0.097*\"god\" + 0.084*\"jew\" + 0.082*\"think\" + 0.081*\"turkish\"')\n", "(1, '-0.476*\"armenian\" + -0.231*\"turkish\" + -0.157*\"armenia\" + -0.151*\"argic\" + -0.149*\"serdar\" + -0.145*\"turk\" + 0.128*\"space\" + -0.117*\"turkei\" + -0.111*\"genocid\" + 0.107*\"nasa\"')\n", "(2, '0.295*\"israel\" + -0.291*\"armenian\" + 0.273*\"isra\" + 0.182*\"arab\" + 0.157*\"jew\" + -0.143*\"space\" + -0.134*\"turkish\" + -0.112*\"nasa\" + 0.106*\"jake\" + 0.103*\"boni\"')\n", "(3, '0.274*\"keith\" + 0.252*\"moral\" + -0.235*\"israel\" + 0.213*\"god\" + -0.213*\"isra\" + 0.165*\"livesei\" + -0.143*\"arab\" + 0.123*\"sgi\" + 0.118*\"caltech\" + 0.114*\"islam\"')\n", "(4, '0.240*\"henri\" + -0.215*\"bike\" + 0.210*\"space\" + 0.167*\"toronto\" + 0.158*\"nasa\" + 0.148*\"moral\" + 0.143*\"keith\" + -0.142*\"graphic\" + 0.128*\"alaska\" + 0.125*\"orbit\"')\n", "\n", "sklearn_nmf:\n", "(0, '0.027*\"armenian\" + 0.013*\"turkish\" + 0.009*\"armenia\" + 0.009*\"argic\" + 0.009*\"serdar\" + 0.008*\"turk\" + 0.007*\"turkei\" + 0.006*\"genocid\" + 0.006*\"soviet\" + 0.006*\"zuma\"')\n", "(1, '0.015*\"israel\" + 0.014*\"isra\" + 0.01*\"arab\" + 0.008*\"jew\" + 0.005*\"palestinian\" + 0.005*\"jake\" + 0.005*\"boni\" + 0.004*\"lebanes\" + 0.004*\"peac\" + 0.004*\"adam\"')\n", "(2, '0.011*\"god\" + 0.01*\"keith\" + 0.01*\"moral\" + 0.006*\"islam\" + 0.006*\"livesei\" + 0.006*\"atheist\" + 0.005*\"atheism\" + 0.005*\"caltech\" + 0.004*\"religion\" + 0.004*\"object\"')\n", "(3, '0.011*\"space\" + 0.008*\"nasa\" + 0.008*\"henri\" + 0.006*\"orbit\" + 0.005*\"toronto\" + 0.005*\"alaska\" + 0.005*\"launch\" + 0.005*\"moon\" + 0.004*\"gov\" + 0.004*\"access\"')\n", "(4, '0.005*\"bike\" + 0.005*\"graphic\" + 0.004*\"file\" + 0.004*\"imag\" + 0.003*\"com\" + 0.003*\"ride\" + 0.003*\"thank\" + 0.003*\"program\" + 0.003*\"motorcycl\" + 0.002*\"look\"')\n", "\n", "gensim_nmf:\n", "(0, '0.015*\"israel\" + 0.014*\"isra\" + 0.009*\"arab\" + 0.008*\"jew\" + 0.005*\"palestinian\" + 0.004*\"lebanes\" + 0.004*\"peac\" + 0.004*\"attack\" + 0.004*\"lebanon\" + 0.003*\"polici\"')\n", "(1, '0.007*\"space\" + 0.005*\"nasa\" + 0.003*\"access\" + 0.003*\"orbit\" + 0.003*\"launch\" + 0.003*\"pat\" + 0.003*\"gov\" + 0.003*\"com\" + 0.002*\"alaska\" + 0.002*\"moon\"')\n", "(2, '0.023*\"armenian\" + 0.011*\"turkish\" + 0.008*\"armenia\" + 0.007*\"argic\" + 0.007*\"turk\" + 0.007*\"serdar\" + 0.006*\"turkei\" + 0.005*\"greek\" + 0.005*\"genocid\" + 0.005*\"soviet\"')\n", "(3, '0.016*\"moral\" + 0.015*\"keith\" + 0.007*\"object\" + 0.007*\"caltech\" + 0.006*\"schneider\" + 0.005*\"allan\" + 0.005*\"cco\" + 0.004*\"anim\" + 0.004*\"natur\" + 0.004*\"goal\"')\n", "(4, '0.012*\"god\" + 0.012*\"islam\" + 0.006*\"jaeger\" + 0.006*\"sgi\" + 0.005*\"livesei\" + 0.005*\"muslim\" + 0.005*\"atheist\" + 0.005*\"religion\" + 0.005*\"atheism\" + 0.004*\"rushdi\"')\n" ] } ], "source": [ "def compare_topics(tm_metrics):\n", " for _, row in tm_metrics.iterrows():\n", " print('\\n{}:'.format(row.model))\n", " print(\"\\n\".join(str(topic) for topic in row.topics))\n", " \n", "compare_topics(tm_metrics)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Subjectively, Gensim and Sklearn NMFs are on par with each other, LDA and LSI look a bit worse." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# 4. NMF on English Wikipedia" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "This section shows how to train an NMF model on a large text corpus, the entire English Wikipedia: **2.6 billion words, in 23.1 million article sections across 5 million Wikipedia articles**.\n", "\n", "The data preprocessing takes a while, and we'll be comparing multiple models, so **reserve about 3 hours** and some **20 GB of disk space** to go through the following notebook cells in full. You'll need `gensim>=3.7.1`, `numpy`, `tqdm`, `pandas`, `psutils`, `joblib` and `sklearn`." ] }, { "cell_type": "code", "execution_count": 23, "metadata": {}, "outputs": [], "source": [ "# Re-import modules from scratch, so that this Section doesn't rely on any previous cells.\n", "import itertools\n", "import json\n", "import logging\n", "import time\n", "import os\n", "\n", "from smart_open import smart_open\n", "import psutil\n", "import numpy as np\n", "import scipy.sparse\n", "from contextlib import contextmanager, contextmanager, contextmanager\n", "from multiprocessing import Process\n", "from tqdm import tqdm, tqdm_notebook\n", "import joblib\n", "import pandas as pd\n", "from sklearn.decomposition.nmf import NMF as SklearnNmf\n", "\n", "import gensim.downloader\n", "from gensim import matutils\n", "from gensim.corpora import MmCorpus, Dictionary\n", "from gensim.models import LdaModel, LdaMulticore, CoherenceModel\n", "from gensim.models.nmf import Nmf as GensimNmf\n", "from gensim.utils import simple_preprocess\n", "\n", "tqdm.pandas()\n", "\n", "logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Load the Wikipedia dump" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "We'll use the [gensim.downloader](https://github.com/RaRe-Technologies/gensim-data) to download a parsed Wikipedia dump (6.1 GB disk space):" ] }, { "cell_type": "code", "execution_count": 24, "metadata": {}, "outputs": [], "source": [ "data = gensim.downloader.load(\"wiki-english-20171001\")" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Print the titles and sections of the first Wikipedia article, as a little sanity check:" ] }, { "cell_type": "code", "execution_count": 25, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Article: 'Anarchism'\n", "\n", "Section title: 'Introduction'\n", "Section text: '''Anarchism''' is a political philosophy that advocates self-governed societies based on volun…\n", "\n", "Section title: 'Etymology and terminology'\n", "Section text: The word ''anarchism'' is composed from the word ''anarchy'' and the suffix ''-ism'', themselves d…\n", "\n", "Section title: 'History'\n", "Section text: ===Origins=== Woodcut from a Diggers document by William Everard The earliest anarchist themes ca…\n", "\n", "Section title: 'Anarchist schools of thought'\n", "Section text: Portrait of philosopher Pierre-Joseph Proudhon (1809–1865) by Gustave Courbet. Proudhon was the pri…\n", "\n", "Section title: 'Internal issues and debates'\n", "Section text: consistent with anarchist values is a controversial subject among anarchists. Anarchism is a philo…\n", "\n", "Section title: 'Topics of interest'\n", "Section text: Intersecting and overlapping between various schools of thought, certain topics of interest and inte…\n", "\n", "Section title: 'Criticisms'\n", "Section text: Criticisms of anarchism include moral criticisms and pragmatic criticisms. Anarchism is often evalu…\n", "\n", "Section title: 'See also'\n", "Section text: * Anarchism by country…\n", "\n", "Section title: 'References'\n", "Section text: …\n", "\n", "Section title: 'Further reading'\n", "Section text: * Barclay, Harold, ''People Without Government: An Anthropology of Anarchy'' (2nd ed.), Left Bank Bo…\n", "\n", "Section title: 'External links'\n", "Section text: * *…\n", "\n" ] } ], "source": [ "data = gensim.downloader.load(\"wiki-english-20171001\")\n", "article = next(iter(data))\n", "\n", "print(\"Article: %r\\n\" % article['title'])\n", "for section_title, section_text in zip(article['section_titles'], article['section_texts']):\n", " print(\"Section title: %r\" % section_title)\n", " print(\"Section text: %s…\\n\" % section_text[:100].replace('\\n', ' ').strip())" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Let's create a Python generator function that streams through the downloaded Wikipedia dump and preprocesses (tokenizes, lower-cases) each article:" ] }, { "cell_type": "code", "execution_count": 26, "metadata": {}, "outputs": [], "source": [ "def wikidump2tokens(articles):\n", " \"\"\"Stream through the Wikipedia dump, yielding a list of tokens for each article.\"\"\"\n", " for article in articles:\n", " article_section_texts = [\n", " \" \".join([title, text])\n", " for title, text\n", " in zip(article['section_titles'], article['section_texts'])\n", " ]\n", " article_tokens = simple_preprocess(\" \".join(article_section_texts))\n", " yield article_tokens" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Create a word-to-id mapping, in order to vectorize texts. Makes a full pass over the Wikipedia corpus, takes **~3.5 hours**:" ] }, { "cell_type": "code", "execution_count": 27, "metadata": { "scrolled": true }, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "2019-05-06 15:57:45,000 : INFO : loading Dictionary object from wiki.dict\n", "2019-05-06 15:57:45,031 : INFO : loaded wiki.dict\n" ] } ], "source": [ "if os.path.exists('wiki.dict'):\n", " # If we already stored the Dictionary in a previous run, simply load it, to save time.\n", " dictionary = Dictionary.load('wiki.dict')\n", "else:\n", " dictionary = Dictionary(wikidump2tokens(data))\n", " # Keep only the 30,000 most frequent vocabulary terms, after filtering away terms\n", " # that are too frequent/too infrequent.\n", " dictionary.filter_extremes(no_below=5, no_above=0.5, keep_n=30000)\n", " dictionary.save('wiki.dict')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Store preprocessed Wikipedia as bag-of-words sparse matrix in MatrixMarket format" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "When training NMF with a single pass over the input corpus (\"online\"), we simply vectorize each raw text straight from the input storage:" ] }, { "cell_type": "code", "execution_count": 28, "metadata": {}, "outputs": [], "source": [ "vector_stream = (dictionary.doc2bow(article) for article in wikidump2tokens(data))" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "For the purposes of this tutorial though, we'll serialize (\"cache\") the vectorized bag-of-words vectors to disk, to `wiki.mm` file in MatrixMarket format. The reason is, we'll be re-using the vectorized articles multiple times, for different models for our benchmarks, and also shuffling them, so it makes sense to amortize the vectorization time by persisting the resulting vectors to disk." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "So, let's stream through the preprocessed sparse Wikipedia bag-of-words matrix while storing it to disk. **This step takes about 3 hours** and needs **38 GB of disk space**:" ] }, { "cell_type": "code", "execution_count": 29, "metadata": {}, "outputs": [], "source": [ "class RandomSplitCorpus(MmCorpus):\n", " \"\"\"\n", " Use the fact that MmCorpus supports random indexing, and create a streamed\n", " corpus in shuffled order, including a train/test split for evaluation.\n", " \"\"\"\n", " def __init__(self, random_seed=42, testset=False, testsize=1000, *args, **kwargs):\n", " super().__init__(*args, **kwargs)\n", "\n", " random_state = np.random.RandomState(random_seed)\n", " \n", " self.indices = random_state.permutation(range(self.num_docs))\n", " test_nnz = sum(len(self[doc_idx]) for doc_idx in self.indices[:testsize])\n", " \n", " if testset:\n", " self.indices = self.indices[:testsize]\n", " self.num_docs = testsize\n", " self.num_nnz = test_nnz\n", " else:\n", " self.indices = self.indices[testsize:]\n", " self.num_docs -= testsize\n", " self.num_nnz -= test_nnz\n", "\n", " def __iter__(self):\n", " for doc_id in self.indices:\n", " yield self[doc_id]" ] }, { "cell_type": "code", "execution_count": 30, "metadata": { "scrolled": true }, "outputs": [], "source": [ "if not os.path.exists('wiki.mm'):\n", " MmCorpus.serialize('wiki.mm', vector_stream, progress_cnt=100000)\n", "\n", "if not os.path.exists('wiki_tfidf.mm'):\n", " MmCorpus.serialize('wiki_tfidf.mm', tfidf[MmCorpus('wiki.mm')], progress_cnt=100000)" ] }, { "cell_type": "code", "execution_count": 31, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "2019-05-06 15:57:45,584 : INFO : loaded corpus index from wiki.mm.index\n", "2019-05-06 15:57:45,585 : INFO : initializing cython corpus reader from wiki.mm\n", "2019-05-06 15:57:45,586 : INFO : accepted corpus with 4924894 documents, 30000 features, 820242695 non-zero entries\n", "2019-05-06 15:57:49,102 : INFO : loaded corpus index from wiki.mm.index\n", "2019-05-06 15:57:49,103 : INFO : initializing cython corpus reader from wiki.mm\n", "2019-05-06 15:57:49,103 : INFO : accepted corpus with 4924894 documents, 30000 features, 820242695 non-zero entries\n", "2019-05-06 15:57:51,552 : INFO : loaded corpus index from wiki_tfidf.mm.index\n", "2019-05-06 15:57:51,553 : INFO : initializing cython corpus reader from wiki_tfidf.mm\n", "2019-05-06 15:57:51,554 : INFO : accepted corpus with 4924661 documents, 30000 features, 820007548 non-zero entries\n", "2019-05-06 15:57:55,680 : INFO : loaded corpus index from wiki_tfidf.mm.index\n", "2019-05-06 15:57:55,681 : INFO : initializing cython corpus reader from wiki_tfidf.mm\n", "2019-05-06 15:57:55,682 : INFO : accepted corpus with 4924661 documents, 30000 features, 820007548 non-zero entries\n" ] } ], "source": [ "# Load back the vectors as two lazily-streamed train/test iterables.\n", "train_corpus = RandomSplitCorpus(\n", " random_seed=42, testset=False, testsize=10000, fname='wiki.mm',\n", ")\n", "test_corpus = RandomSplitCorpus(\n", " random_seed=42, testset=True, testsize=10000, fname='wiki.mm',\n", ")\n", "\n", "train_corpus_tfidf = RandomSplitCorpus(\n", " random_seed=42, testset=False, testsize=10000, fname='wiki_tfidf.mm',\n", ")\n", "test_corpus_tfidf = RandomSplitCorpus(\n", " random_seed=42, testset=True, testsize=10000, fname='wiki_tfidf.mm',\n", ")" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Save preprocessed Wikipedia in scipy.sparse format" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "This is only needed to run the Sklearn NMF on Wikipedia, for comparison in the benchmarks below. Sklearn expects in-memory scipy sparse input, not on-the-fly vector streams. Needs additional ~2 GB of disk space.\n", "\n", "\n", "**Skip this step if you don't need the Sklearn's NMF benchmark, and only want to run Gensim's NMF.**" ] }, { "cell_type": "code", "execution_count": 32, "metadata": {}, "outputs": [], "source": [ "if not os.path.exists('wiki_train_csr.npz'):\n", " scipy.sparse.save_npz(\n", " 'wiki_train_csr.npz',\n", " matutils.corpus2csc(train_corpus_tfidf, len(dictionary)).T,\n", " )" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Metrics\n", "\n", "We'll track these metrics as we train and test NMF on the Wikipedia corpus we created above:\n", "- `train time` - time to train a model\n", "- `mean_ram` - mean RAM consumption during training\n", "- `max_ram` - maximum RAM consumption during training\n", "- `train time` - time to train a model.\n", "- `coherence` - coherence score (larger is better).\n", "- `l2_norm` - L2 norm of `v - Wh` (less is better, not defined for LDA)." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Define a dataframe in which we'll store the recorded metrics:" ] }, { "cell_type": "code", "execution_count": 33, "metadata": {}, "outputs": [], "source": [ "tm_metrics = pd.DataFrame(columns=[\n", " 'model', 'train_time', 'mean_ram', 'max_ram', 'coherence', 'l2_norm', 'topics',\n", "])" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Define common parameters, to be shared by all evaluated models:" ] }, { "cell_type": "code", "execution_count": 34, "metadata": {}, "outputs": [], "source": [ "params = dict(\n", " chunksize=2000,\n", " num_topics=50,\n", " id2word=dictionary,\n", " passes=1,\n", " eval_every=10,\n", " minimum_probability=0,\n", " random_state=42,\n", ")" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Train Gensim NMF model and record its metrics" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Wikipedia training" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Train Gensim NMF model and record its metrics" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "scrolled": true }, "outputs": [], "source": [ "row = {}\n", "row['model'] = 'gensim_nmf'\n", "row['train_time'], row['mean_ram'], row['max_ram'], nmf = get_train_time_and_ram(\n", " lambda: GensimNmf(normalize=False, corpus=train_corpus_tfidf, **params),\n", " 'gensim_nmf',\n", " 1,\n", ")" ] }, { "cell_type": "code", "execution_count": 36, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "2019-05-06 16:23:44,657 : INFO : saving Nmf object under gensim_nmf.model, separately None\n", "2019-05-06 16:23:44,767 : INFO : saved gensim_nmf.model\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ "{'max_ram': '774 MB', 'train_time': Timedelta('0 days 00:25:46.617000'), 'model': 'gensim_nmf', 'mean_ram': '771 MB'}\n" ] } ], "source": [ "print(row)\n", "nmf.save('gensim_nmf.model')" ] }, { "cell_type": "code", "execution_count": 37, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "2019-05-06 16:23:44,772 : INFO : loading Nmf object from gensim_nmf.model\n", "2019-05-06 16:23:44,871 : INFO : loading id2word recursively from gensim_nmf.model.id2word.* with mmap=None\n", "2019-05-06 16:23:44,872 : INFO : loaded gensim_nmf.model\n", "2019-05-06 16:24:47,126 : INFO : CorpusAccumulator accumulated stats from 1000 documents\n", "2019-05-06 16:24:47,272 : INFO : CorpusAccumulator accumulated stats from 2000 documents\n", "2019-05-06 16:24:47,424 : INFO : CorpusAccumulator accumulated stats from 3000 documents\n", "2019-05-06 16:24:47,573 : INFO : CorpusAccumulator accumulated stats from 4000 documents\n", "2019-05-06 16:24:47,726 : INFO : CorpusAccumulator accumulated stats from 5000 documents\n", "2019-05-06 16:24:47,880 : INFO : CorpusAccumulator accumulated stats from 6000 documents\n", "2019-05-06 16:24:48,027 : INFO : CorpusAccumulator accumulated stats from 7000 documents\n", "2019-05-06 16:24:48,168 : INFO : CorpusAccumulator accumulated stats from 8000 documents\n", "2019-05-06 16:24:48,319 : INFO : CorpusAccumulator accumulated stats from 9000 documents\n", "2019-05-06 16:24:48,472 : INFO : CorpusAccumulator accumulated stats from 10000 documents\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ "{'mean_ram': '771 MB', 'topics': [(21, '0.009*\"his\" + 0.005*\"that\" + 0.005*\"him\" + 0.004*\"had\" + 0.003*\"they\" + 0.003*\"who\" + 0.003*\"her\" + 0.003*\"but\" + 0.003*\"king\" + 0.003*\"were\"'), (39, '0.005*\"are\" + 0.005*\"or\" + 0.004*\"be\" + 0.004*\"that\" + 0.003*\"can\" + 0.003*\"used\" + 0.003*\"this\" + 0.002*\"have\" + 0.002*\"such\" + 0.002*\"which\"'), (45, '0.092*\"apelor\" + 0.087*\"bucurești\" + 0.050*\"river\" + 0.046*\"cadastrul\" + 0.046*\"hidrologie\" + 0.046*\"meteorologie\" + 0.046*\"institutul\" + 0.046*\"române\" + 0.045*\"româniei\" + 0.045*\"rîurile\"'), (28, '0.066*\"gmina\" + 0.065*\"poland\" + 0.065*\"voivodeship\" + 0.046*\"village\" + 0.045*\"administrative\" + 0.042*\"lies\" + 0.037*\"approximately\" + 0.036*\"east\" + 0.031*\"west\" + 0.030*\"county\"'), (34, '0.087*\"romanized\" + 0.084*\"iran\" + 0.067*\"rural\" + 0.067*\"province\" + 0.066*\"census\" + 0.060*\"families\" + 0.055*\"village\" + 0.049*\"county\" + 0.047*\"population\" + 0.043*\"district\"')], 'model': 'gensim_nmf', 'coherence': -2.1071, 'l2_norm': 94.9686, 'train_time': Timedelta('0 days 00:25:46.617000'), 'max_ram': '774 MB', 'f1': None}\n" ] } ], "source": [ "nmf = GensimNmf.load('gensim_nmf.model')\n", "row.update(get_metrics(nmf, test_corpus_tfidf))\n", "print(row)\n", "tm_metrics = tm_metrics.append(pd.Series(row), ignore_index=True)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Train Gensim LSI model and record its metrics" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "scrolled": true }, "outputs": [], "source": [ "row = {}\n", "row['model'] = 'lsi'\n", "row['train_time'], row['mean_ram'], row['max_ram'], lsi = get_train_time_and_ram(\n", " lambda: LsiModel(\n", " corpus=train_corpus_tfidf,\n", " chunksize=2000,\n", " num_topics=50,\n", " id2word=dictionary,\n", " ),\n", " 'lsi',\n", " 1,\n", ")" ] }, { "cell_type": "code", "execution_count": 39, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "2019-05-06 17:34:51,929 : INFO : saving Projection object under lsi.model.projection, separately None\n", "2019-05-06 17:34:52,010 : INFO : saved lsi.model.projection\n", "2019-05-06 17:34:52,011 : INFO : saving LsiModel object under lsi.model, separately None\n", "2019-05-06 17:34:52,012 : INFO : not storing attribute projection\n", "2019-05-06 17:34:52,012 : INFO : not storing attribute dispatcher\n", "2019-05-06 17:34:52,022 : INFO : saved lsi.model\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ "{'max_ram': '896 MB', 'train_time': Timedelta('0 days 01:10:03.206000'), 'model': 'lsi', 'mean_ram': '882 MB'}\n" ] } ], "source": [ "print(row)\n", "lsi.save('lsi.model')" ] }, { "cell_type": "code", "execution_count": 40, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "2019-05-06 17:34:52,027 : INFO : loading LsiModel object from lsi.model\n", "2019-05-06 17:34:52,039 : INFO : loading id2word recursively from lsi.model.id2word.* with mmap=None\n", "2019-05-06 17:34:52,039 : INFO : setting ignored attribute projection to None\n", "2019-05-06 17:34:52,040 : INFO : setting ignored attribute dispatcher to None\n", "2019-05-06 17:34:52,040 : INFO : loaded lsi.model\n", "2019-05-06 17:34:52,041 : INFO : loading LsiModel object from lsi.model.projection\n", "2019-05-06 17:34:52,115 : INFO : loaded lsi.model.projection\n", "2019-05-06 17:35:03,515 : INFO : CorpusAccumulator accumulated stats from 1000 documents\n", "2019-05-06 17:35:03,650 : INFO : CorpusAccumulator accumulated stats from 2000 documents\n", "2019-05-06 17:35:03,791 : INFO : CorpusAccumulator accumulated stats from 3000 documents\n", "2019-05-06 17:35:03,929 : INFO : CorpusAccumulator accumulated stats from 4000 documents\n", "2019-05-06 17:35:04,071 : INFO : CorpusAccumulator accumulated stats from 5000 documents\n", "2019-05-06 17:35:04,211 : INFO : CorpusAccumulator accumulated stats from 6000 documents\n", "2019-05-06 17:35:04,347 : INFO : CorpusAccumulator accumulated stats from 7000 documents\n", "2019-05-06 17:35:04,478 : INFO : CorpusAccumulator accumulated stats from 8000 documents\n", "2019-05-06 17:35:04,622 : INFO : CorpusAccumulator accumulated stats from 9000 documents\n", "2019-05-06 17:35:04,758 : INFO : CorpusAccumulator accumulated stats from 10000 documents\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ "{'mean_ram': '882 MB', 'topics': [(0, '0.260*\"he\" + 0.172*\"his\" + 0.131*\"she\" + 0.111*\"her\" + 0.105*\"that\" + 0.094*\"district\" + 0.092*\"were\" + 0.087*\"school\" + 0.077*\"had\" + 0.077*\"film\"'), (1, '-0.430*\"district\" + -0.308*\"village\" + -0.270*\"population\" + -0.264*\"census\" + -0.263*\"romanized\" + -0.255*\"iran\" + -0.247*\"rural\" + -0.232*\"county\" + -0.221*\"province\" + -0.204*\"families\"'), (2, '-0.287*\"league\" + -0.275*\"he\" + -0.215*\"football\" + 0.212*\"album\" + -0.183*\"season\" + -0.180*\"team\" + -0.169*\"club\" + -0.161*\"cup\" + -0.136*\"played\" + 0.128*\"song\"'), (3, '-0.216*\"poland\" + -0.214*\"gmina\" + 0.213*\"romanized\" + -0.213*\"voivodeship\" + 0.209*\"iran\" + 0.208*\"album\" + 0.180*\"rural\" + -0.156*\"administrative\" + -0.155*\"east\" + -0.154*\"lies\"'), (4, '-0.260*\"album\" + -0.252*\"gmina\" + -0.252*\"poland\" + -0.250*\"voivodeship\" + -0.171*\"administrative\" + -0.161*\"lies\" + -0.152*\"song\" + -0.136*\"chart\" + -0.135*\"approximately\" + -0.129*\"village\"')], 'model': 'lsi', 'coherence': -3.9198, 'l2_norm': 94.5983, 'train_time': Timedelta('0 days 01:10:03.206000'), 'max_ram': '896 MB', 'f1': None}\n" ] } ], "source": [ "lsi = LsiModel.load('lsi.model')\n", "row.update(get_metrics(lsi, test_corpus_tfidf))\n", "print(row)\n", "tm_metrics = tm_metrics.append(pd.Series(row), ignore_index=True)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Train Gensim LDA and record its metrics" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "scrolled": true }, "outputs": [], "source": [ "row = {}\n", "row['model'] = 'lda'\n", "row['train_time'], row['mean_ram'], row['max_ram'], lda = get_train_time_and_ram(\n", " lambda: LdaModel(corpus=train_corpus, **params),\n", " 'lda',\n", " 1,\n", ")" ] }, { "cell_type": "code", "execution_count": 42, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "2019-05-06 18:56:04,893 : INFO : saving LdaState object under lda.model.state, separately None\n", "2019-05-06 18:56:04,956 : INFO : saved lda.model.state\n", "2019-05-06 18:56:04,977 : INFO : saving LdaModel object under lda.model, separately ['expElogbeta', 'sstats']\n", "2019-05-06 18:56:04,979 : INFO : not storing attribute state\n", "2019-05-06 18:56:04,980 : INFO : not storing attribute id2word\n", "2019-05-06 18:56:04,981 : INFO : storing np array 'expElogbeta' to lda.model.expElogbeta.npy\n", "2019-05-06 18:56:04,992 : INFO : not storing attribute dispatcher\n", "2019-05-06 18:56:04,995 : INFO : saved lda.model\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ "{'max_ram': '864 MB', 'train_time': Timedelta('0 days 01:20:59.941000'), 'model': 'lda', 'mean_ram': '862 MB'}\n" ] } ], "source": [ "print(row)\n", "lda.save('lda.model')" ] }, { "cell_type": "code", "execution_count": 43, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "2019-05-06 18:56:05,002 : INFO : loading LdaModel object from lda.model\n", "2019-05-06 18:56:05,005 : INFO : loading expElogbeta from lda.model.expElogbeta.npy with mmap=None\n", "2019-05-06 18:56:05,007 : INFO : setting ignored attribute state to None\n", "2019-05-06 18:56:05,008 : INFO : setting ignored attribute id2word to None\n", "2019-05-06 18:56:05,008 : INFO : setting ignored attribute dispatcher to None\n", "2019-05-06 18:56:05,009 : INFO : loaded lda.model\n", "2019-05-06 18:56:05,009 : INFO : loading LdaState object from lda.model.state\n", "2019-05-06 18:56:05,039 : INFO : loaded lda.model.state\n", "2019-05-06 18:56:20,341 : INFO : CorpusAccumulator accumulated stats from 1000 documents\n", "2019-05-06 18:56:20,466 : INFO : CorpusAccumulator accumulated stats from 2000 documents\n", "2019-05-06 18:56:20,595 : INFO : CorpusAccumulator accumulated stats from 3000 documents\n", "2019-05-06 18:56:20,715 : INFO : CorpusAccumulator accumulated stats from 4000 documents\n", "2019-05-06 18:56:20,848 : INFO : CorpusAccumulator accumulated stats from 5000 documents\n", "2019-05-06 18:56:20,973 : INFO : CorpusAccumulator accumulated stats from 6000 documents\n", "2019-05-06 18:56:21,100 : INFO : CorpusAccumulator accumulated stats from 7000 documents\n", "2019-05-06 18:56:21,226 : INFO : CorpusAccumulator accumulated stats from 8000 documents\n", "2019-05-06 18:56:21,351 : INFO : CorpusAccumulator accumulated stats from 9000 documents\n", "2019-05-06 18:56:21,483 : INFO : CorpusAccumulator accumulated stats from 10000 documents\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ "{'mean_ram': '862 MB', 'topics': [(11, '0.066*\"de\" + 0.034*\"art\" + 0.030*\"french\" + 0.028*\"la\" + 0.022*\"france\" + 0.019*\"paris\" + 0.017*\"le\" + 0.016*\"museum\" + 0.013*\"van\" + 0.013*\"saint\"'), (45, '0.033*\"new\" + 0.027*\"states\" + 0.025*\"united\" + 0.023*\"york\" + 0.023*\"american\" + 0.023*\"county\" + 0.021*\"state\" + 0.017*\"city\" + 0.014*\"california\" + 0.012*\"washington\"'), (40, '0.028*\"radio\" + 0.025*\"show\" + 0.021*\"tv\" + 0.020*\"television\" + 0.016*\"news\" + 0.015*\"station\" + 0.014*\"channel\" + 0.012*\"fm\" + 0.012*\"network\" + 0.011*\"media\"'), (28, '0.064*\"university\" + 0.018*\"research\" + 0.015*\"college\" + 0.014*\"institute\" + 0.013*\"science\" + 0.011*\"professor\" + 0.010*\"has\" + 0.010*\"international\" + 0.009*\"national\" + 0.009*\"society\"'), (20, '0.179*\"he\" + 0.123*\"his\" + 0.015*\"born\" + 0.014*\"after\" + 0.013*\"him\" + 0.011*\"who\" + 0.011*\"career\" + 0.010*\"had\" + 0.010*\"later\" + 0.009*\"where\"')], 'model': 'lda', 'coherence': -1.7641, 'l2_norm': None, 'train_time': Timedelta('0 days 01:20:59.941000'), 'max_ram': '864 MB', 'f1': None}\n" ] } ], "source": [ "lda = LdaModel.load('lda.model')\n", "row.update(get_metrics(lda, test_corpus))\n", "print(row)\n", "tm_metrics = tm_metrics.append(pd.Series(row), ignore_index=True)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Train Sklearn NMF and record its metrics" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "**Careful!** Sklearn loads the entire input Wikipedia matrix into RAM. Even though the matrix is sparse, **you'll need FIXME GB of free RAM to run the cell below**." ] }, { "cell_type": "code", "execution_count": 44, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "{'max_ram': '18177 MB', 'train_time': Timedelta('0 days 00:47:41.026000'), 'model': 'sklearn_nmf', 'mean_ram': '12872 MB'}\n" ] }, { "data": { "text/plain": [ "['sklearn_nmf.joblib']" ] }, "execution_count": 44, "metadata": {}, "output_type": "execute_result" } ], "source": [ "row = {}\n", "row['model'] = 'sklearn_nmf'\n", "sklearn_nmf = SklearnNmf(n_components=50, tol=1e-2, random_state=42)\n", "row['train_time'], row['mean_ram'], row['max_ram'], sklearn_nmf = get_train_time_and_ram(\n", " lambda: sklearn_nmf.fit(scipy.sparse.load_npz('wiki_train_csr.npz')),\n", " 'sklearn_nmf',\n", " 10,\n", ")\n", "print(row)\n", "joblib.dump(sklearn_nmf, 'sklearn_nmf.joblib')" ] }, { "cell_type": "code", "execution_count": 45, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "2019-05-06 19:44:22,696 : INFO : CorpusAccumulator accumulated stats from 1000 documents\n", "2019-05-06 19:44:22,841 : INFO : CorpusAccumulator accumulated stats from 2000 documents\n", "2019-05-06 19:44:22,994 : INFO : CorpusAccumulator accumulated stats from 3000 documents\n", "2019-05-06 19:44:23,142 : INFO : CorpusAccumulator accumulated stats from 4000 documents\n", "2019-05-06 19:44:23,297 : INFO : CorpusAccumulator accumulated stats from 5000 documents\n", "2019-05-06 19:44:23,448 : INFO : CorpusAccumulator accumulated stats from 6000 documents\n", "2019-05-06 19:44:23,595 : INFO : CorpusAccumulator accumulated stats from 7000 documents\n", "2019-05-06 19:44:23,737 : INFO : CorpusAccumulator accumulated stats from 8000 documents\n", "2019-05-06 19:44:23,889 : INFO : CorpusAccumulator accumulated stats from 9000 documents\n", "2019-05-06 19:44:24,038 : INFO : CorpusAccumulator accumulated stats from 10000 documents\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ "{'mean_ram': '12872 MB', 'topics': [(0, '0.067*\"gmina\" + 0.067*\"poland\" + 0.066*\"voivodeship\" + 0.047*\"administrative\" + 0.043*\"lies\" + 0.038*\"approximately\" + 0.037*\"east\" + 0.032*\"west\" + 0.031*\"county\" + 0.03*\"regional\"'), (1, '0.098*\"district\" + 0.077*\"romanized\" + 0.075*\"iran\" + 0.071*\"rural\" + 0.062*\"census\" + 0.061*\"province\" + 0.054*\"families\" + 0.048*\"population\" + 0.043*\"county\" + 0.031*\"village\"'), (2, '0.095*\"apelor\" + 0.09*\"bucurești\" + 0.047*\"cadastrul\" + 0.047*\"hidrologie\" + 0.047*\"meteorologie\" + 0.047*\"institutul\" + 0.047*\"române\" + 0.047*\"româniei\" + 0.047*\"rîurile\" + 0.046*\"river\"'), (3, '0.097*\"commune\" + 0.05*\"department\" + 0.045*\"communes\" + 0.03*\"insee\" + 0.029*\"france\" + 0.018*\"population\" + 0.015*\"saint\" + 0.014*\"region\" + 0.01*\"town\" + 0.01*\"french\"'), (4, '0.148*\"township\" + 0.05*\"county\" + 0.018*\"townships\" + 0.018*\"unincorporated\" + 0.015*\"community\" + 0.011*\"indiana\" + 0.01*\"census\" + 0.01*\"creek\" + 0.009*\"pennsylvania\" + 0.009*\"illinois\"')], 'model': 'sklearn_nmf', 'coherence': -2.0476, 'l2_norm': 94.8459, 'train_time': Timedelta('0 days 00:47:41.026000'), 'max_ram': '18177 MB', 'f1': None}\n" ] } ], "source": [ "sklearn_nmf = joblib.load('sklearn_nmf.joblib')\n", "row.update(get_metrics(\n", " sklearn_nmf, test_corpus_tfidf, dictionary=dictionary,\n", "))\n", "print(row)\n", "tm_metrics = tm_metrics.append(pd.Series(row), ignore_index=True)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Wikipedia results" ] }, { "cell_type": "code", "execution_count": 46, "metadata": {}, "outputs": [ { "data": { "text/html": [ "<div>\n", "<style scoped>\n", " .dataframe tbody tr th:only-of-type {\n", " vertical-align: middle;\n", " }\n", "\n", " .dataframe tbody tr th {\n", " vertical-align: top;\n", " }\n", "\n", " .dataframe thead th {\n", " text-align: right;\n", " }\n", "</style>\n", "<table border=\"1\" class=\"dataframe\">\n", " <thead>\n", " <tr style=\"text-align: right;\">\n", " <th></th>\n", " <th>model</th>\n", " <th>train_time</th>\n", " <th>mean_ram</th>\n", " <th>max_ram</th>\n", " <th>coherence</th>\n", " <th>l2_norm</th>\n", " </tr>\n", " </thead>\n", " <tbody>\n", " <tr>\n", " <th>0</th>\n", " <td>gensim_nmf</td>\n", " <td>00:25:46.617000</td>\n", " <td>771 MB</td>\n", " <td>774 MB</td>\n", " <td>-2.1071</td>\n", " <td>94.9686</td>\n", " </tr>\n", " <tr>\n", " <th>1</th>\n", " <td>lsi</td>\n", " <td>01:10:03.206000</td>\n", " <td>882 MB</td>\n", " <td>896 MB</td>\n", " <td>-3.9198</td>\n", " <td>94.5983</td>\n", " </tr>\n", " <tr>\n", " <th>2</th>\n", " <td>lda</td>\n", " <td>01:20:59.941000</td>\n", " <td>862 MB</td>\n", " <td>864 MB</td>\n", " <td>-1.7641</td>\n", " <td>-</td>\n", " </tr>\n", " <tr>\n", " <th>3</th>\n", " <td>sklearn_nmf</td>\n", " <td>00:47:41.026000</td>\n", " <td>12872 MB</td>\n", " <td>18177 MB</td>\n", " <td>-2.0476</td>\n", " <td>94.8459</td>\n", " </tr>\n", " </tbody>\n", "</table>\n", "</div>" ], "text/plain": [ " model train_time mean_ram max_ram coherence l2_norm\n", "0 gensim_nmf 00:25:46.617000 771 MB 774 MB -2.1071 94.9686\n", "1 lsi 01:10:03.206000 882 MB 896 MB -3.9198 94.5983\n", "2 lda 01:20:59.941000 862 MB 864 MB -1.7641 -\n", "3 sklearn_nmf 00:47:41.026000 12872 MB 18177 MB -2.0476 94.8459" ] }, "execution_count": 46, "metadata": {}, "output_type": "execute_result" } ], "source": [ "tm_metrics.replace(np.nan, '-', inplace=True)\n", "tm_metrics.drop(['topics', 'f1'], axis=1)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Insights\n", "\n", "Gensim's online NMF outperforms all other models in terms of speed and memory foorprint size.\n", "\n", "Compared to Sklearn's NMF:\n", "\n", "- **2x** faster.\n", "\n", "- Uses **~20x** less memory.\n", "\n", " About **8GB** of Sklearn's RAM comes from the in-memory input matrices, which, in contrast to Gensim NMF, cannot be streamed iteratively. But even if we forget about the huge input size, Sklearn NMF uses about **2-8 GB** of RAM – significantly more than Gensim NMF or LDA.\n", "\n", "- L2 norm and coherence are a bit worse.\n", "\n", "Compared to Gensim's LSI:\n", "\n", "- **3x** faster\n", "- Better coherence but slightly worse l2 norm.\n", "\n", "Compared to Gensim's LDA, Gensim NMF also gives superior results:\n", "\n", "- **3x** faster\n", "- Coherence is worse than LDA's." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Learned Wikipedia topics" ] }, { "cell_type": "code", "execution_count": 47, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "\n", "gensim_nmf:\n", "(21, '0.009*\"his\" + 0.005*\"that\" + 0.005*\"him\" + 0.004*\"had\" + 0.003*\"they\" + 0.003*\"who\" + 0.003*\"her\" + 0.003*\"but\" + 0.003*\"king\" + 0.003*\"were\"')\n", "(39, '0.005*\"are\" + 0.005*\"or\" + 0.004*\"be\" + 0.004*\"that\" + 0.003*\"can\" + 0.003*\"used\" + 0.003*\"this\" + 0.002*\"have\" + 0.002*\"such\" + 0.002*\"which\"')\n", "(45, '0.092*\"apelor\" + 0.087*\"bucurești\" + 0.050*\"river\" + 0.046*\"cadastrul\" + 0.046*\"hidrologie\" + 0.046*\"meteorologie\" + 0.046*\"institutul\" + 0.046*\"române\" + 0.045*\"româniei\" + 0.045*\"rîurile\"')\n", "(28, '0.066*\"gmina\" + 0.065*\"poland\" + 0.065*\"voivodeship\" + 0.046*\"village\" + 0.045*\"administrative\" + 0.042*\"lies\" + 0.037*\"approximately\" + 0.036*\"east\" + 0.031*\"west\" + 0.030*\"county\"')\n", "(34, '0.087*\"romanized\" + 0.084*\"iran\" + 0.067*\"rural\" + 0.067*\"province\" + 0.066*\"census\" + 0.060*\"families\" + 0.055*\"village\" + 0.049*\"county\" + 0.047*\"population\" + 0.043*\"district\"')\n", "\n", "lsi:\n", "(0, '0.260*\"he\" + 0.172*\"his\" + 0.131*\"she\" + 0.111*\"her\" + 0.105*\"that\" + 0.094*\"district\" + 0.092*\"were\" + 0.087*\"school\" + 0.077*\"had\" + 0.077*\"film\"')\n", "(1, '-0.430*\"district\" + -0.308*\"village\" + -0.270*\"population\" + -0.264*\"census\" + -0.263*\"romanized\" + -0.255*\"iran\" + -0.247*\"rural\" + -0.232*\"county\" + -0.221*\"province\" + -0.204*\"families\"')\n", "(2, '-0.287*\"league\" + -0.275*\"he\" + -0.215*\"football\" + 0.212*\"album\" + -0.183*\"season\" + -0.180*\"team\" + -0.169*\"club\" + -0.161*\"cup\" + -0.136*\"played\" + 0.128*\"song\"')\n", "(3, '-0.216*\"poland\" + -0.214*\"gmina\" + 0.213*\"romanized\" + -0.213*\"voivodeship\" + 0.209*\"iran\" + 0.208*\"album\" + 0.180*\"rural\" + -0.156*\"administrative\" + -0.155*\"east\" + -0.154*\"lies\"')\n", "(4, '-0.260*\"album\" + -0.252*\"gmina\" + -0.252*\"poland\" + -0.250*\"voivodeship\" + -0.171*\"administrative\" + -0.161*\"lies\" + -0.152*\"song\" + -0.136*\"chart\" + -0.135*\"approximately\" + -0.129*\"village\"')\n", "\n", "lda:\n", "(11, '0.066*\"de\" + 0.034*\"art\" + 0.030*\"french\" + 0.028*\"la\" + 0.022*\"france\" + 0.019*\"paris\" + 0.017*\"le\" + 0.016*\"museum\" + 0.013*\"van\" + 0.013*\"saint\"')\n", "(45, '0.033*\"new\" + 0.027*\"states\" + 0.025*\"united\" + 0.023*\"york\" + 0.023*\"american\" + 0.023*\"county\" + 0.021*\"state\" + 0.017*\"city\" + 0.014*\"california\" + 0.012*\"washington\"')\n", "(40, '0.028*\"radio\" + 0.025*\"show\" + 0.021*\"tv\" + 0.020*\"television\" + 0.016*\"news\" + 0.015*\"station\" + 0.014*\"channel\" + 0.012*\"fm\" + 0.012*\"network\" + 0.011*\"media\"')\n", "(28, '0.064*\"university\" + 0.018*\"research\" + 0.015*\"college\" + 0.014*\"institute\" + 0.013*\"science\" + 0.011*\"professor\" + 0.010*\"has\" + 0.010*\"international\" + 0.009*\"national\" + 0.009*\"society\"')\n", "(20, '0.179*\"he\" + 0.123*\"his\" + 0.015*\"born\" + 0.014*\"after\" + 0.013*\"him\" + 0.011*\"who\" + 0.011*\"career\" + 0.010*\"had\" + 0.010*\"later\" + 0.009*\"where\"')\n", "\n", "sklearn_nmf:\n", "(0, '0.067*\"gmina\" + 0.067*\"poland\" + 0.066*\"voivodeship\" + 0.047*\"administrative\" + 0.043*\"lies\" + 0.038*\"approximately\" + 0.037*\"east\" + 0.032*\"west\" + 0.031*\"county\" + 0.03*\"regional\"')\n", "(1, '0.098*\"district\" + 0.077*\"romanized\" + 0.075*\"iran\" + 0.071*\"rural\" + 0.062*\"census\" + 0.061*\"province\" + 0.054*\"families\" + 0.048*\"population\" + 0.043*\"county\" + 0.031*\"village\"')\n", "(2, '0.095*\"apelor\" + 0.09*\"bucurești\" + 0.047*\"cadastrul\" + 0.047*\"hidrologie\" + 0.047*\"meteorologie\" + 0.047*\"institutul\" + 0.047*\"române\" + 0.047*\"româniei\" + 0.047*\"rîurile\" + 0.046*\"river\"')\n", "(3, '0.097*\"commune\" + 0.05*\"department\" + 0.045*\"communes\" + 0.03*\"insee\" + 0.029*\"france\" + 0.018*\"population\" + 0.015*\"saint\" + 0.014*\"region\" + 0.01*\"town\" + 0.01*\"french\"')\n", "(4, '0.148*\"township\" + 0.05*\"county\" + 0.018*\"townships\" + 0.018*\"unincorporated\" + 0.015*\"community\" + 0.011*\"indiana\" + 0.01*\"census\" + 0.01*\"creek\" + 0.009*\"pennsylvania\" + 0.009*\"illinois\"')\n" ] } ], "source": [ "def compare_topics(tm_metrics):\n", " for _, row in tm_metrics.iterrows():\n", " print('\\n{}:'.format(row.model))\n", " print(\"\\n\".join(str(topic) for topic in row.topics))\n", " \n", "compare_topics(tm_metrics)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "It seems all four models successfully learned useful topics from the Wikipedia corpus." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# 5. And now for something completely different: Face decomposition from images" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The NMF algorithm in Gensim is optimized for extremely large (sparse) text corpora, but it will also work on vectors from other domains!\n", "\n", "Let's compare our model to other factorization algorithms on dense image vectors and check out the results.\n", "\n", "To do that we'll patch sklearn's [Faces Dataset Decomposition](https://scikit-learn.org/stable/auto_examples/decomposition/plot_faces_decomposition.html)." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Sklearn wrapper\n", "Let's create an Scikit-learn wrapper in order to run Gensim NMF on images." ] }, { "cell_type": "code", "execution_count": 48, "metadata": { "lines_to_next_cell": 2 }, "outputs": [], "source": [ "import logging\n", "import time\n", "\n", "import numpy as np\n", "import matplotlib.pyplot as plt\n", "import pandas as pd\n", "from numpy.random import RandomState\n", "from sklearn import decomposition\n", "from sklearn.cluster import MiniBatchKMeans\n", "from sklearn.datasets import fetch_olivetti_faces\n", "from sklearn.decomposition.nmf import NMF as SklearnNmf\n", "from sklearn.linear_model import LogisticRegressionCV\n", "from sklearn.metrics import f1_score\n", "from sklearn.model_selection import ParameterGrid\n", "\n", "import gensim.downloader\n", "from gensim import matutils\n", "from gensim.corpora import Dictionary\n", "from gensim.models import CoherenceModel, LdaModel, LdaMulticore\n", "from gensim.models.nmf import Nmf as GensimNmf\n", "from gensim.parsing.preprocessing import preprocess_string\n", "\n", "logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO)" ] }, { "cell_type": "code", "execution_count": 49, "metadata": { "lines_to_next_cell": 2 }, "outputs": [], "source": [ "from sklearn.base import BaseEstimator, TransformerMixin\n", "import scipy.sparse as sparse\n", "\n", "\n", "class NmfWrapper(BaseEstimator, TransformerMixin):\n", " def __init__(self, bow_matrix, **kwargs):\n", " self.corpus = sparse.csc.csc_matrix(bow_matrix)\n", " self.nmf = GensimNmf(**kwargs)\n", "\n", " def fit(self, X):\n", " self.nmf.update(self.corpus)\n", "\n", " @property\n", " def components_(self):\n", " return self.nmf.get_topics()" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Modified face decomposition notebook" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Adapted from the excellent [Scikit-learn tutorial](https://github.com/scikit-learn/scikit-learn/blob/master/examples/decomposition/plot_faces_decomposition.py) (BSD license):" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Turn off the logger due to large number of info messages during training" ] }, { "cell_type": "code", "execution_count": 50, "metadata": {}, "outputs": [], "source": [ "gensim.models.nmf.logger.propagate = False" ] }, { "cell_type": "code", "execution_count": 51, "metadata": { "scrolled": false }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "\n", "============================\n", "Faces dataset decompositions\n", "============================\n", "\n", "This example applies to :ref:`olivetti_faces` different unsupervised\n", "matrix decomposition (dimension reduction) methods from the module\n", ":py:mod:`sklearn.decomposition` (see the documentation chapter\n", ":ref:`decompositions`) .\n", "\n", "\n", "Dataset consists of 400 faces\n", "Extracting the top 6 Eigenfaces - PCA using randomized SVD...\n", "done in 0.025s\n", "Extracting the top 6 Non-negative components - NMF (Sklearn)...\n", "done in 0.171s\n", "Extracting the top 6 Non-negative components - NMF (Gensim)...\n", "done in 0.582s\n", "Extracting the top 6 Independent components - FastICA...\n", "done in 0.097s\n", "Extracting the top 6 Sparse comp. - MiniBatchSparsePCA...\n" ] }, { "name": "stderr", "output_type": "stream", "text": [ "/home/anotherbugmaster/.local/lib/python3.5/site-packages/sklearn/decomposition/sparse_pca.py:405: DeprecationWarning: normalize_components=False is a backward-compatible setting that implements a non-standard definition of sparse PCA. This compatibility mode will be removed in 0.22.\n", " DeprecationWarning)\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ "done in 0.694s\n", "Extracting the top 6 MiniBatchDictionaryLearning...\n", "done in 0.479s\n", "Extracting the top 6 Cluster centers - MiniBatchKMeans...\n", "done in 0.087s\n", "Extracting the top 6 Factor Analysis components - FA...\n", "done in 0.048s\n" ] }, { "name": "stderr", "output_type": "stream", "text": [ "/home/anotherbugmaster/.local/lib/python3.5/site-packages/sklearn/decomposition/factor_analysis.py:238: ConvergenceWarning: FactorAnalysis did not converge. You might want to increase the number of iterations.\n", " ConvergenceWarning)\n" ] }, { "data": { "image/png": "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\n", "text/plain": [ "<Figure size 432x325.44 with 6 Axes>" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "image/png": "iVBORw0KGgoAAAANSUhEUgAAAdoAAAE9CAYAAACspaOVAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uIDMuMC4yLCBodHRwOi8vbWF0cGxvdGxpYi5vcmcvOIA7rQAAIABJREFUeJzsvXm0bXlVHvr9zjn33LZudVAdFFSBIAo2LyMOQAOaaNRhkqf4ohJsAOOzf+ojsX9ixZaIomCLRi0VFI2x4UkMKlKJ2EM0PpSyiVUq1VB9d+ty72nW+2Ot75x5vjXnXOvUPXvf3HJ+Y5yxz957rd/6dWvt+c22dV2HQqFQKBQKi8HK+e5AoVAoFAqPZ9QPbaFQKBQKC0T90BYKhUKhsEDUD22hUCgUCgtE/dAWCoVCobBA1A9toVAoFAoLxOQPbWvtZa21Lvh7wDnuukV2eC5aa5/bWvvL1tpZ28/HG2Q9Nltrt7TWfry19mTn2Oe31n6utXb7MC/3ttZ+vbX20tbaqnP81w/t/uJyRjO6/k2ttZvOx7XPN4Z5v2HJ17xuuO7LlnjNG1trt8447srW2utaa3/RWjvdWruntfau1tprW2uHW2tPHPb0DyRt/OthfB8zvL/J3DtbrbX7W2t/3Fr73tbasw9ulKP7NPq79YCudWRo72sOqL0PaK3d0Fp7ivPdna21HzqI6xwEWmv/uLX2e8Meub219h2ttcMzz72utfaLrbWHWmsPDs/KJx1Ev9b2ceynAXivfLZp/n8LgOcDuONcO3WuaK1dA+CHAbwRwMsBvP/89mjhuBHA69Gv54cD+HcAPrK19uFd150GgNbaVwB4DYDfBPDVAP4GwKUAPh7ADwJ4AMAvS7ufM7x+Umvt8q7r7l3wOBRfvOTr/X3HHejv4f95vjti0Vo7CeD3AWwDeDWAmwFchn6vfyaAb+y67u7W2q8C+IzW2ld0XXfWaepz0O/7/2o++xMAXzD8fxLAcwB8LoAvbK19edd14Q/3PvF8ef+LAP4HgBvMZ2cO6Fpnhuv97QG19wEAvhHAbzhtfhKA+w/oOueE1to/BPBf0D/Hvh59v18N4EoAL5049ySAtwN4EMBnoX+WfiuAtw3P0XP7Dem6Lv0D8DIAHYAPmDr2f5U/AB899PmfnO++LGGsHYBvkc9eOnz+qcP7F6J/SL0uaOPpAD5UPnv+0MZbhtcvPd9jPc/zfPg8rOsN53vcSxjnjQBunTjmc4f5+DDnuwagDf9/6nDci5zjrhvugW82n90E4B3OsYcA/DyALQAfsaBx3wrgDfs4fqn7T679icO8/qPzvV8m+vmrAP4UwKr57POHvj974tyvBnAWwFPMZ88a9swXn3PfZnR+1g+tOe4689kx9GzpXgCPoJfiPnI47mVy/kcDeBuAhwGcAvBWAM+RY24C8A4AHwfgvwN4FMC77Y013Lid/N04fPdi9Izu7qE/fwTgpc5Y1oaJ/zP0bPhu9JLSs8wxTwTwQwBuQy9B3gzg86WdqwD8BIDbh2PuAPArAK44wM3l/dB+8PD5Vw3v3wLgHgBH9tHuD6HXWFyDXor9w5nnjfbB8PkNADr57MsBvAfAafRS8TtlLW8CcJN5/zFD2/87gO8bxnQPgDcAuETafiKAnwHw0ND2jw/ndQA+ZmIMN6LX3jwfwO8M/XvtPvdQB+BbAHwZgFuGff1fITc8gNXhuDuG/XwTgGfD+aFF/8D73aE/DwL4JQAfGNwjnwjgj4dj/wjAc4d9/W3Dte4bxnncnHsdzL1p1tL7u0HmOr0XhuM+Fv19+370rPkLMO+H9t8O17xy4rh19M+aX3C++4ahjWfoXAVtXTGM5acO6l6V9m9F8EML4E0A/gq9gPx7wxr+++G7zxn20d3DnnoXgJfI+UeGsX6N+exV6O/nZ6B/tp4a9uXXYhBUgr7wR1b/njd8fyeAHzLHf+Hw/UcA+E/o75E7Afyb4ft/gZ7Jn0KvpfCEp88A8Afo74f7h/l40sR8HgOwAeAb5POLhnF/7cT5vw3gbc7nvw/greb9k9BrSu8Y9sftAN4M4NKs/f2ojldba3r8dtd128k5P4xe5XwD+ofoxw6d3IPW2j9DT/ffgp62A/0P3W+11j6067q/M4c/HcBrAXw7+ofsvwHwH1trz+q67q8AfDP6zfc6AF+C/sa+ezj3aegl1Vehl1ReCOA/tNaOdl1n7QxvAvApAL4HvbrkyHDs1QBuHtQM7wBwdBjbLQA+AcAPttYOd133vUM7PwXgqQC+EsDfoVdhfCz6TbFIXD+8PjDYXv8xgF/qZqo/BpvGZwD49a7rbm+tvQHA17bWPqjruvccRAdba58J4LsAfBOA30I/lx+KXiU4hdeiF1heAuADAXwHevZh1UO/AOBD0D9I/grA/wHgezEfF6PfB98J4OvQP+yA+XsI6Pfyn6MXKNbRq7F+edirNLvcMLT/GgC/BuAfor9x96C19ono74/fRL82J9DP3TsG1dZt5nCqzL4V/YPuO4Y234z+x/ZlAD5oOOYuAF8VzAHNQRafCeBL0QtImHsvtNY+CMB/Rv8ceDGAw8PxJ9CvXYY/GF7f1Fp7Ffofx1N6UNd1Z1trPwPg/2ytXdZ13X3m688C8Dtd1/3lxLXY1l2ttXcC+Kg5xy8AT0D//Pj36AV+jvd67P4QA/29/VOttfWu626caLOhvy9+FP3afyp6wetW9EKph98F8H8D+G70gtGfDJ+/e+Jab0AvRP0g+j3zna21J6BXNX8remHrOwH8YmvtGV3XbQF7TFw/gl5dfQn6ff72YZ8/Glzvmej39p5+dV33cGvtb9GTjwzPRk+KFH8K4J+a928CcDmAV6AXLK8avj+Stj5D8noZYqn2V5zjrhvefyD6B9FXSXuvgzBa9JvmbXLcSfQ/pN8jEugG9kqlV6C/Ub/OfPZxmGAu6B3B1tAv6P8wn/+T4dwvS879BvQb5Rny+Y8MfV4b3j+StXMQf0Nfv3UYyxEAz0P/EDyFno1eORzz7fto89OHc/6VWcsOwKv2sV+uk89vgGG06Bnpf59o6yb4jPYn5LjvG9aDKsSPH477dDnuzVP7YjjuxuG4T544zt1DZl3+EsAh89m/HD7/yOH9pcMe+SE596sxZo3vHNpbM59dP9wPr3HukaeZz8jkf0Ou8wsAbjHvr4OjbTLff9Qwz/Z6c++FNw7vLYO+Fr267tYZ++qVw7EdeobyzmFPqSbjI4Zjvsh89rzhsy9w9pfLaIfvfwbA6XO5P5O2b0XOaDsAnzBz//0UgN83n0eMdueeHj5rAP4CwJsnrhOqjhEz2q8yn62jZ6bvB/Bk8zmfM88d3l+C/rn1A3KNZw5r/oVJH/ncHt3bw155y8Q87rnfzHffCeCUma+zcLQ1U3/7Ce950bCJ7d9XJMc/d+jYf5TPf96+aa09Az1LfWNrbY1/6NUGv4ueMVj8ZWek0q7r7kIvlY884hSttWe01n6mtXYb+ofRBoDPQ/9DQvAh/SNJU5+IXqVwi/T5reilHUpPfwjgK1trX95a+5DWWpvRx1XbZmttzhp93TCW0+jnbAPAJ3Vdd/uMcz28FL3K9ZcAoOu6P0c/3s+a2Z85+EMAHz54eH5ca20/LP8t8v7/Q8+QrhzePw+98KXe0j+P+dhAz5r3YOYeIn6967oN6Sewu1c/BMBxAD8n571JrnkcwD8A8LPdLhNG13W3oFd5fbSc/xdd1/21eX/z8PpWOe5mAE+euS+vQz+fb0WvyiXm3gvPB/CfO8NEu15T9dtT1x6O/Sb08/Z56H9YLkfPeN7dWrvSHPeH6AXNzzanfw56Nd/PzrmWQUP/LIgP2Huv7kdDOIVHu67T9UJr7VmDN+zt6H98NtCzdW//edi5d7r+1+NPMePZ+Rjwq+Y6Z9FrOv606zrrUMt9ee3w+gL02j79Lfjr4U9/C5aKYb7eBeDrWmtfuh/P9P08NN/ddd075e+vkuOvHl7vks/fJ++vGF5/FLsPLv79c/Q3lMV9GOMMJqh7a+0EgF8H8GEAvgb9on4EgB9D/5AmLgdwXzd46wa4Av2ia38pVLDPn4GeRX0VepXLba21V078WL1N2nxlNq4BPzaM5X8D8ISu6z606zp6Vt6L/gf4qTPaQWvtKvSqv7cAONxau6S1dgl6e8uT0Ku+DwI/CeCL0AtkbwVwX2vtF9q88DDdA/TW5B64GsD98iMHjPdehru7QZ1F7GMP7aefXr/0/aXoH/qeR/+dGKvb1Qv0bPL5Gno7cYhBPfwr6O3WL+n2movm3gtXw5//2WvSdd2dXdf9aNd1L++67nr0KuwnoTfNWPwEgOcPYSnr6O/DX+66br9hftciiaIY9uqecc/cv3Nwp3O9S9Cbsp6Ffsz/CP3+eyOmVJc9trque0g+m3x2PkZ4ey3al7w+fwvegfF+egbGvwXe9S51vrsM/u8GAGDYzw/NPPdF6P11vh69kPfe1trXTgmrBymBKbhBr0AvzRBXynEMGfla9JtI4bnpPxY8H/2PzQu6rnsHP3Sk0HsAXDbY3KIf23vRCxBfHnz/58AO2/4SAF/SWvtA9Ezx36G3Gf9gcO4XoDfgE3NY6R1d173T+6Lrus3Wx6L+08FmNhVC8JnoH7z/avhTvBT9j00E2oHX5fM9N8kgHb4ewOtbawwz+i70rOO5E32cwh0ALm2tHZIfW917GTwmM3cPzQXvkSvRMwuY9xb3D/25ymnjKiQPkXPFYOP/WfRqved2Y9vorHsB/Vi9+d/PmuxB13Xf31r7Zoztb29Ab3v8bPQOYZehF+xmo7V2BXp7+ZuSw25H/0Onnx0EvP33AvSCxafY+721duiArnm+wd+Cl6A3kyhUSLD4c/QM/9kwmqxBOH4Kcg0l0N9/HkP9YPQ2cgC9sIdePf6FrbUPRh8++m3oBaMfjxpf5A/tH6DfLJ+G3hmD+DQ57s/R2yue3XXdqxbYH6omdx68wwP+k+W4X0PPVj4PsfPMfwHwfwH42+HHdBKD+vXrWmtfiD5WLzvuoPEq9Pao74DzQGytXQ/goq7r/gT9D+nfoLe1Kr4awItaaxd1XfdwcK2/GV6fg97+wx+ij48613Xd/QB+trX2XOzGNJ4Lfg+9sPAi7FXL6t7bL+buobn4E/Q2qU9H7+REvNge1HXdqdbauwB8Wmvthm7XceSp6L349+PktV+8Bv0D/gXdXocrYu698Lvo47GP88e6tXYtertv+uM0qIbvFiaN1trV6J3W9rDOrutua639BnqV6oeiZ80jNWxyvUMAfgD98/F10XGDStQVcBcEb/9dgd7BaJGgcH50wdf5b+i1b0/rui5yznLRdd2jrbW3AXhxa+3bjTbqxeifBf/vRBNvBvBNrbVrB5MGWmvPRC9IfVlwzT9Dbxr8YiTPdGB/P7QfPniNKd5p7UamEze31n4awDcPqtJ3oTdY/4vhkO3huK619iXovTHX0T8Y70Ev6X4k+hv4NfvoZ4TfQS8RfX9r7RvR28b+n+FaF5t+v7219p8AvGZ4EPwm+ri6F6I3qN+E3gPvM9B7RX83emHhOHqVzgu6rvvk1trF6Bn6G9HbIjbQP5AvRf9jvjR0XfffWmuvGMb0weidff526MvHohcqXjKwlw9B7xRwk7bTWjuC3ib3LxFLb3+IPnTj1cO6n0GfeGKParW19sPowxN+Fz0jeiZ6BnLOc9N13a+11n4bwA8Pe/avhj5/2HBI5imfYdYe2kc/Hxj2z9e31h5GP/aPAPCvncO/Ab06/1dan/3oBHrtyIPoNQEHjtbai9E/ZL4dvRnheebr9w72tsl7YTj+W9ALOr/WWns1eo3HDZinOv5sAJ/fWnsjdsM+nok+4uAsgO93zvkJ9Pfe9QC+23tGDbjIjOsi9Pv/5ehtnl/cdd27ZvRvWfgt9ILZ61tr34TeYfSV6OdwlAnuAHEz+nvm81prp9DP+Xsc7cY5oeu6+1qfzeq7Wp906K3onxFPQu9d/atd12V+Fq9Er3b+6dba67Hrff+Grut2vJFba5+PXpD6qK7rfn/4+AfRm7Le3Fp7Jfof529D/yz7seG8K9FHx/w0+n2+hf65chS5lu+cvY479DZBe9x15lzG0d6H3rvyzQD+GRyPTvRquV/BrnfarejVNs83x9wEP8D8VgyxssN71+sY/Q/9H6GXmv4n+ofIDRjHd66h18H/BfpNdTf60IQPNMdciv4hc8twzF3ob4SvGL4/jF41+qfD2B9C/yP0kqk5388fnDja5NiPRG87uwP9D/996B/un4XeXv89w+Z5anD+Cvof6JsmrvPsYa0eGY5/hc4zeuZ80zBvZ4Z5/G4AJ2W9bzLvP2YY78cFe9TuvScO++dh9FmvfhK7iTxGsXvS3o3of0i87+buodG6wPHqxW4c7Z1DmzdhNw76Bjlf42h/GUEcbXDdz5PPbxg+X/P6Z773/m4w7aT3gtyXfzSs919jfhztBw3t/xF69eIG+j388wD+QXDO0WGOwvUe5orj2R6O/2P0GoI0wcEB3Le3YiKONvjuE9DHoZ5Gr179IvQaq/ebY8I42uBaN8/o75cOfd7EvDjaJ8v5v4ex1/uzhmM/Sz7/ZPSxwg+jF6r+EsB/0L0e9PNj0TvnvX/YI98JyR9g+vg8+fx69PfUw+if1z+PvV7Sx9GroP8M/bPtwWFcnzbVL4ZDLA2ttX+LXoV5Xdd1B5UirFCYRGvt+9Czlcu6aVt1oVAoHAgWaaNFa+2fo9dd/zF6ifEF6EMDfq5+ZAuLROsT41+MXqOwjp4NfhGAV9ePbKFQWCYW+kOLnoJ/CnrnouPoM2m8Dn38W6GwSJxCH+f9dPRq/FvQxxu/+nx2qlAo/P3D0lXHhUKhUCj8fUIVfi8UCoVCYYGoH9pCoVAoFBaI+qEtFAqFQmGBWLQz1O6F1ta6Q4cOYXu7zxXAV89GvLLS//4zfeTq6uqez/lqj9FzNPVklopy6tg5555L+1PH77eP+x3PnOtl4LG6ltnc6LFd1+Guu+7CQw89NDr4+PHj3SWXXLJzjteufqavds9MnRPhoNZ4P3MbYY5vxUH4X3jrFLUdfaef2+/5P58HW1tbe95vbm6G1yNaa3jkkUdw5syZ0cSeOHGiu+yyy3baZXtsf6p/2TX38/m5HnuQ554v7Gc/RnvI+yxaN+++5nPA/qY8+OCDePTRRxc6ocv8ocVTn/pUPPLIIwCAU6f6pCLc+DwGANbX+zS5x471GcdOnjy55/3x48d3zjl6tM8Kdvhwn3jo0KFDe9riq/fA1c+iH3i+2u/0XBUG7OLqd7a9rE3vnOjVnhMJJtHnnLPsmDk/HPrQ5LlcTztufZBubGzgK79Sc8P3OHnyJF7+8pfj7Nmze9rjmtsxcL35nvuD5/B7278jR47s+c77UdbPo70TzbnFfn6U2Y4KptGDiD8o9hx+FvXZ68vUDyDf2+vpj5kew/U7c2Y3uor/v//9fYrshx7q09nyOfHAAw/seQ/0ewXYu1ff/va3j8YCAJdeeile8YpX7LRz//197nk+f2y/2K7OrTdP0XNF1zK7f86FFGRCp0L7wPWI9nnWXnbOlICVkSsr+NhjVDDiWgHj/aX7j/vDPt/4zOBvyokTJ/CTP7mvNNiPCaU6LhQKhUJhgVgao+26DhsbGztSo6fCUbUyETEy+3/E/JSdeurGOawtwpxzIskukk6z68xVc3rXjaRtO99R+9pGpsqJrj+l/ouwvb2NU6dOhfvCa5vrnTHBKSbONvi9x2ijecrGrOPwxqPHKmOdo9KNGMScdYg0GmyTc2M1UnqsvvdYN8/Xc3SO7HuyGn5mTVIetra2Rs8b77kTqR49DUCkUYruaW/f6Xpn99Zc1ptpXabOncO69/OMjO4F1YoA43uNr2Sj/N2w7FTbU7B9q8XiZ9SgHDly5EBMLFMoRlsoFAqFwgJx3hntHEeZyHZqv5uyQ2b2z+g6HtOdy4Ln2DKicXqsRL9TVuxJdVkfon5EUmIkcWbtKTuxkqXOYyZVdl23x67nzb1e09pvLTzbOV/Vrh/ZXbUd+z7SGtg+Ru+9NdQ5VVupXjdjQ9G94jmL6N6JNAOejVbt72SgaiMEdpmKQpmnnRuew9ezZ8+mjNaer33U/20/dd7s/iWzijRo2VqrVuBcoPveex5FbJuYw1IzHxRtZ8o2640/Wm9ltl6fontBfQUs2N7UvjkoFKMtFAqFQmGBqB/aQqFQKBQWiKWpjoG9TglU+1h1zFyVsVVbqJpP1YBZuEWkIsqcIKbidTN1s2KOE1R0vTkhQZGKcD8ODpGq2iJSv2QqKlUZZ2q0rutw9uzZnTX1zA5Tajgea/ebhglF6kBv72j/IxWup95WNWbm1BHtkUhl6JkL9JhIRe6NVed1yukIGKt26Xii5gd7TOR0lal6uQ82NzfTfnVdl6qiCV1D7gd9BcYhaxruE62X/X/KwXA/YTA6Bg+RCtl7rmp7UcjjHLWzqm69NdB46cgMkT1/NGwpcqwDxg51i0Yx2kKhUCgUFoilOkNtbW3tSLBe0LSypsjByUuwQAmT36nE6bGSyHFqTkB/FBqSOaVMteWx4bkJEbxxUcqOHBm8c+eGOs1htlmoi7KGra2tlPnbMBKvD5FDi+4PJqcAdpNZ8DPdM1lGsohB8/Nsf2tgvYaeWAYwldRAWamnSeEc870m7/D2jiYA0TF4TngcBxksWYPOo8doo/vVY7Q6b5ubm5P3Wxbqpvd59Eyxe4f/6zzpOnnML2PV9nM7JtV+eAlDFHOTWnjOXpFWT8ebhbx5DnN2fHMYrWpJbMIK3U+Rs5WnTdjP3jkIFKMtFAqFQmGBWCqj3dzcdJmJQlP3aVq9LLwnsqt46bhUoo/CPbLwF7UhEF4uVZVUIybrMfaIpXpzMpWmMUuvONee7DG6KJkCkYUgra2tpSy6tTZKw+axxah9j5VEjFZTgc5h/sowPRbvhaUAGPkt2L2k6RPVNqv7wGPd0T2hjM32X+dAQ3O8fc8QrCn7rheqwxSLek4WRhSlTJwDT1ul88V9oa/2f53TSNM0J9xP59QLg9I9wvdTLNleh4hs9ra/+uzlfvBSmk6lMNW94+0DT1thXy2j1XtNnz88dip0cBkoRlsoFAqFwgKxdK9jwvOSjDyGM0arEmUkkXvSu36WeWMSU3a2OcnWCWWJGTtVG1DEWm2/I3trZkeOvFwzT2W9jkquWZKLuandWmuhR6KFXjNKRgHE60+2wiIWnr1SGYz236s6QwmbNkwiSkbijVH3pO5/2w9+Rq9qfc1YSWSjVWZlwXVRZshxe/cVP2OfonvP3k8ey51iJplPg45Z15/vqQEBYq/jSEvmaanUzs1Xzx6pxRd4DNtQ722LiO1G2jJvTrg+WsSF82CPjVh8xtg5Vn3luHmsncfIQ13hfT7HW/ogUYy2UCgUCoUFYqmMtuu6kQ3GSj3qGUqpaSq9mfedSk+e1BZ5ImYp6lSKslJn1EdlVxFLyWIhM0+6CBHz07ay+DllW54dNorPi2zT9n97nUjKbK1hdXV1R7r1bHOR93fG/KO4VrIGfq770H6mjJznsK92LdXjXm20+mqPjdJb7kcyj/aX591KaLwh50aZlf2f36ldja8ew1AW6XmJa381PWkEL97a87DlmvKaLMdJFpfZIyPNWmY71/FE9ng7VrXJZnH9U74g2b2hTFa1P15ssX4WxYd7DDQqeUd4viHsG/dMVLvY7tE5uQsWgWK0hUKhUCgsEEtltK21kaebTf6uEqTalNTzjW0Cu5KKsh21T3h2AbbPc/W6nv1Tr58lx4/Y55w+Ttk9s4xNUSxcZm9VyTGyDVtMJUnX2DXb7pSnooVKrF5crrarTMz2IWIhcxKoK9SfQDUp9n/VbCiTtTbcaH3Vdpr1kceSZatU7zHoyBOabah2wZ6r44pK/XntcC0uueQSAMCjjz4KYO89T8wpSEFEMfr2/8herGzS/h+t5Ry2qFC2aq+nds2o7F+2D7S4h47bi4mNPMijGFmvT6rBoYf56dOnR+dE2p2M5atvhc6VnRMtcLEsZluMtlAoFAqFBaJ+aAuFQqFQWCCWqjoGxskoaMgGctdxYKzOslAjuqrWNMwHiA377AdV2fYcVamqKscz5k8lzOaceMk8ouII6oSVORpFTmRznCCiQHw7J6rG9hxA9Po6b1NFAbzvbXtRCBjVU1RB2nWJwl8iVau9nqru5tS/1eupalKdo+w4osQYkYrfXo+qaN0HnBOrwlNVLvvCY/Te8xyNNJm7qvDsWqqDGPvKPnrPiYcffhjA3nsgS7Syvb09K8RM96s6tFmnHjUr2Dn0xmrbVtWx3v+eOlZVqep45qmO5yafIbywMn2e6fPHS4moqm81N+g9acc1ldQng/62eL8Ty3aCIorRFgqFQqGwQCyN0bbWcOjQoVFyBs8xIAopURbJdoGxE5RKemowB+KUe2rMt9K0MieVkDxGGyXXj6Rsz+Cv482SHEw5oWTB9FHQt0qrmXSvISh6nHdsloKxtYaVlZVRAoQsxOjUqVMAxkzAnhMlG+AxlLx5rt07KvFrSJqnRYgcynQ9PEarGoVoH9p14XdkDmyD98YDDzyw5739n690XGEbHI+ycmCcxEHnwEsxqnuS77l+HitRp5eu61LG46V+9fYOP/NCs7Qv0b2r94/HhqM0hlkRgMjBSJmtPYftT6VE9O47DUmMErJ4zx1NrsH7iGvKzy2jJSJNjacZ0MITUXpS28es6MciUYy2UCgUCoUFYqk22tXV1VAHD8TSRWZLUHftqXCRLNk/pRxKZJ5kSUlebaZZwLVKvVHguDcnUXEEDc3w0hFGqR+JLAG5zqsXXjF1js6VhbY7JVmurq6Oxm7ZFMdKKVlZbxb+oFIzj9E2vHM1QUWWWESTL6ikr2wRGNu72Qb7rEXVPW2PaoI4R2SrXngPx0N7qLLuLNwrYmbKvux1NMSKc++xHvaRvhTqr6B92draShOuaPjZFHv0jolSs3ranalUmF660KhoiYa/2LmNShBqyOCckKDo+Wbnnn3hftZX3e92PpWxRoUvvMIOUZ+9e0LvhSxRzkGiGG2hUCgUCgvE0lMwRjYM+79KyWr30TQSAAAgAElEQVSn8ZhYVC5MJSUvMXyUSF09ITkGC0qlkURrEbEAtdF40q+OQz0UrWRJyVG9WFWiVUk367/a0rx51LnIEgnMOYagjZZ90hRvwC7ziZKu27YIlXjVo1qLCtik8uoxrEnPlTUAuxK4+g3w/UMPPQRgL6PlNU+cOLFnHOq3wL57SQ6UbWsCejsuvbc0iYsya8sqtDxZdK9nNmFeJyoDZ69jbb1TGhHOk2fz1XPZfy2g4NlosxKHgO+lH3lnR/Z3bxwKL32n7rOpZP9e+kb1fdE9ZedEtRA8Rlk3x2X3R1RYgW1oUiF7rN5zUbpSe6wdzzJK5RWjLRQKhUJhgVh6mTxKVZ79TlmpshFPulUbKb/TYt6aMNw7xitTZ9sGYokuSqdo+6h2O71exvJUolQmayU9lSQfSypB7WsWw6xrqRqBLEbWSrCZZLmysjKyXXGcwO5c6tgJrw/8TL1MyfD4PZmtp32JvMK9+D+NlyWL08T9Xgk3xnSrty/fe2ku55ZHs/tC/RMiD+ksbZ+yEWXQdp2n4mg9b3HVxKyvr08WVld248WB81pkZNo3zyNftQWq/eCrvZ4yzKkiI953ykI9X42o8IFq0HhOlto2KoDhaRf1uhdddNGe77X0HTD2ULb3toV3TlS0JfPHIKbi9w8KxWgLhUKhUFgglp4ZKkrgDsRxd4Snc1eJhOzj0ksvBbArTXnS+8UXXwxgHFOVZZFRD0fN7uRJ7VFcl17Hi4VUiVEZrdphAL+sF7ArsWqidmv/Y/saW+zZqwnOiWbHUfbgSb9zbLWtNayvr+9oINgHuw8ihq9z7p2jCe3VluqVG9Ti3HPYuzJZel8SXmk49UhVdsK19vaseqbq3vWyqCkTV60P4dkKdY9oJiC+etdTTRHh2Z71fo3slsCuX0jGIpWB8/5Q1uaxZvVP4PPn5MmTAHbXx4vl1CxL6gXs7dWo6IOOwZ4fFQqJNB52XOproPbWzMeG7/l80XWyvghsl17ufH3wwQf3jC/TEEWa0Oz34vDhw0uJpS1GWygUCoXCArFURmslh6hIr/eZShxe2TpKjiyvpd66lMy9zCmUnii1KYuzdi+VuNWuZj04tb/6GrEuK70rU45K3WU2II07ZPuaW9qCY+YxnqevIiqL5c29svj19fU0M1RrbeccZbbAOBuNSt4Z02R71H4oe/O0BurFyva5/9gfxqravijTj7xBgbHnqbIs/d7uT2X+EYPx4nbVg5zsm2PgXNm9qtmjlBWzb8xIZa+j90CkUbHH2mOyGPy1tbWd67APnqd9FBurfbXnq8aBiDQQXvvq06Aev/Y71cLM2edsX+93Lz5Yoc+kKCbftsf7nn1RTQpZv50zvbc5r/RNuOeeewD4cdX6W5LdVzpPNg/2IlGMtlAoFAqFBaJ+aAuFQqFQWCCW7gyl1N2qVKLQAa+YAEFVw2WXXQZgrB5VWIcddVlXNZU6k9jP1PlAA/g9A3yUAo3wEtGreilLiKCInLw0YNxzoOA4PGcOhTpxzQkj0vSAWVEB9ktL99l10fVWtTnXmqoo+z/HqmUR+cp+0cRgwf5TZcxXqozVQcxeR9MNeo5mqlrV8J4oVAPYnR9eT/eMV9iD609nHh5722237RkXnVSs+k/3Ktvi/uJesuvGsatpRFXYdm6ihPMe6EhHqOMbjwF21ZLqsOk5qamqWNWjXvo/Yq7q2Nvfes/aohzaxyiNYVTQxV6P66DhNrpeFp7K2xsPzRB2r6pTnI6L95W3v/W9/sbYNdAiIMtCMdpCoVAoFBaIpTFautlnTgReEn+eaz+3Eqwa3NVJRIPmvQTTUTFtrxxb5GYfFVW38KRp21Y2J+rAECUZt/+r803k9GERpVFUp6+syIBKox5TzRIfRLDlCoG9UmlUdFrZKUO6gN2wA53byLHNjoPHsk+XX375nj6xHzZYP0r1qBK+3UtRMhAtLsC2rcMO+xYlgvHCIbR9XpcaoyzkSRmUpv4kK/XSNrIdTbSvzNb+74XDKchoeS+rlsL+rxotjt0rCch+qZNQlKzFS8CgDobRfeqNUUOBvNSoqknT8epzz/Yx0urpdb00iuqEpAUdvAQgqs2Lku3YUER95uszPkrDaj+rogKFQqFQKDwOsFRGu7GxMZKEbNC+unZHoS1WQlPGSumTdqmMOXnp2GzfiCzRgkqHWbm6KIm4MmcrvUdMWW1zcyTLyJblpfwj1G7osW6VxPV6XnC7V8ghkyy7rtuZFw0bsm0rMyarixIveOcoW/QSgChj4TrQhunZW3UPKhvRAH97zlRJRS+MRMcapYe042e7tEernZIM3SucHaUH1cQYXnKVKFnDnHCyjNFqG15xAfVL0Ln2kt3oNZUpKyObYxNUTZdnO1d/EtUiZCltdZ/p888yWn2GRHvVC5Oa2neEdz9FxQW8tJSqidIUoF4Smaln4aJQjLZQKBQKhQViqV7HtiRRZptTRpF5+KntKiqI7KVri4qoE57EHKVNVFZnJWaVVFVa1GB9rzxWVBbN6+OU9BlJtvbakZ3c8yxUaT6SGj0Pc2LKVsJSed65wO68KIPle8+Tk6xTJV9dQ+96alPSdIpqy7TnqMZE2aGWxPOOjWx0nv9CZC9UG6ptL0oTqgzTjkXTUtJjVW1lHrvzkrUAvtZJ+zhVUODs2bNhchj7vz6TtF2vuIiuZaS1yBLz6F5R26n9TO8xagSUzXl9ye57YO+6qD+JV6bOXlf/j46x8FJM6r6LUj/a870kFPacTMtor7VIFKMtFAqFQmGBWHocrUoqnrQTsUWvNFkk0Uds2MKLk7XX99KOqZSkXrpem9oHL+bR+x4YF7InVOq186j2ochmmhV2UEk88kIGxowsYtSefTwqIGFBj/XMs1s9RNUm65XmysqfAePE7R4j15jLzFavdn091yumTqYcsdMoFtv+r3sn299EtN8ir3v7mTLmSINj+xL5MXilA7mmZM5Te+fs2bOhFsFD9LyZky52ytZo243a8u4J7ZPuFS+qIipIQUQlHr0+zEnBqnMaPTu862tfdC689ZrrVe3lJci0VYtAMdpCoVAoFBaIpTJaJoefc5x9VfuqJ1VpuypRehJRZEfRc6w0qhlg1MNOvQK9a6s9V+Elr/e87rz33nhUKlR7tp3PiIVGDMe2o9eNCiBE/Y5AVhJ5M9oxRTF8Xgy2ahpU2s0YRlQIICuI4cU6AuME6p62QDUbc2yAWoZNGbTXZ2Xxyiiz8emx2udMe6EaIjJ5j/1F/gMRuq6bZL1Rv6LrRkwo2/Nz4WmalIFNeTnr/0BsC872t97bqknxEvZHz4PIDqv/23Y9j289Rn8n5qy11cSUjbZQKBQKhQsc9UNbKBQKhcICsVTV8erqaqqu4GeRWiZzbJpSA+9HlaMqRKs6ZkhIFAbjqaoj9aL2eU6ojo7DSwGpcxupcDL1j/Y5U8tMqWy877WPU+qbra2tHScbhuzYPmrAvo7dc+aYcoTQ0JKs5m/kuOcl6SA0LSCPtTVso32s3xNe4hINjYhSMdrzeY6muYvMA/Z/dQxT1XHmVBTd454DFbGxsTG5f7IEGGpSya6tn6k5a04q0cgMkzk4Enrf6Hp5oYGR82W2LpHzm86ffR89B/Sc7BmiauVs3fS5GfXRjpvtWQfHx6Le3y+K0RYKhUKhsEAsjdG21nDo0KHUwSRjuxZearIpRjFH0iRUirMOUBrcrs4BXnhH5PY+FUpjz/WSodt+zAknUcxxUpoThD5XW5Bdp+u6kJVsb2/j7NmzO1I7Ezp40ruuszotWVaqCQ8i7UGWvjNKBhCNE4gd6sjYbfpGZUyRg1vkrGTHyfajxCXAOAGCOkepk5Tdd+pEpsd42h69n/S9x7a0/bNnz06mYdRrewkLopBDr6Rn9BzbDzuKnl0cexZ2xetyTSNN1Bzsx7k0S/wxFU4WaTi8Ywi9jheqM/U89a7jafMWiWK0hUKhUCgsEEtltCsrKyNdvBeikQWI6zmRdB65fGd2jyisxysFFqVVVNuG/UztDhH7ydhwZAexTE1ZiLYfhYh4x0aSZmYTy5I26Diy8Ct7LcsCOT6v3Bqh1/Zs6lOp6TKtyJTGxBtPlhIOGK+XPTbaB1HohAXvKxY216QHXlrSqAyi2gS9FIxROTQvyYUW1GAfs0QjXEOee+rUqclSedE9bsecaaWA/fky6HHeZ9Ee8jRbeq+qPdILg4m0U9HzyGOLUTiPl74zGqe+z2z0kXZvKiTSIvv90Od0MdpCoVAoFB4HWKrX8crKbuJ4Ld2kx1lkEora1aaYRiZNRem+smLKKnF5bUyls8vYIqV2vmrxc89GG3km78feGnlr74d1z8GU9sJeg9dmsno7F5GGYU6idi0kHjH+LNlFxKi9NHPKlNRzPEsmHyUO8PYS50TnIku6oqlLI8nfSzXK/6NXLwEMx8Fj1I6cpUGdk4KxtYa1tbWdPeOtQfSMiLxYbf+mEvVnTDOKOvDWUhledE9n14mYs/cMjhJV6F61aznHazrCFHPNbLQ6J5mPj455GckqgGK0hUKhUCgsFEtltF7MlccWH0saszlp2KbampNIO7JrZjaiKPl1lIzfY8OU9DWm0ysVFkm5nhcj4EuJU3NvP4+Sk2dJyz1bTLSGXddhe3t7Z17ITmjPA4CTJ08C2F0ztVmS/XixkmqPihiHl24w02RE11FmofauzKM7ikn00pOq1K77m3NiC34zDWSU+i7yes+OmXNvaMpFLbnnMVr2eyoWsrU2YsiZF7Mi81CNGH/0LLP/65pmKQqVXUfr7qVv5aumxPQKNhDKrvVZ6PkbaBrISGuZ2Wr1mCm/BosoT0Bm657T7kGgGG2hUCgUCgvE0hgtPUdpD/M8ENWmM9d+B8S2rP3EuUWF4L2MKUTESj3P6Mh2uR/JkhK5xnbaeYwYmn7vSXORF2HmrRfFeM7RHkTvMzDOlMzW9pt2W5XAyYyybFIKZaD7iRn0PDmV/amXrmc3ivZ15DGdFSTgHtFYWctoOadaYk3vxSkWaNvPYiHVfhvFQFpNAfurc+Ch6zpsbm6O4t69584cb+NojFP2UM/emjEve5ztY1QO1OurMlqNxc8yNkXPDLWhejkGdD9PxZrbz3RfKYO25+r86f3keUZ70QHLsNMWoy0UCoVCYYGoH9pCoVAoFBaIpaqONzc3R+nMrLokUhep+7anCohSts1R6arKTtVYWSIBraOp6hrb/hzHoug4nQO+eukB1elJkxBEakB77f2kNdNzo0TgngPKHHDvqKrTqo4jxwtNVDHHCSYKAcjUwFOJC+z57Lcma8iuo6/cb1HIhr2O7gfOBRNWWNWxOiVddNFFAHzHQOCxOZN4KkpdN93nVkXpqSaje6vrOmxtbY2c1DJnvijZ/pw9GzkTZqkDI2RhRVx/fbbYc7hm+myKkkJ4z0Z9BqoTllfXVZ9VUbiPd72pubbrOBVOlp2fJetZBIrRFgqFQqGwQCw1BeP6+vpIyvEC+qNA8Uz6iJx1VALz2LDnSGLfW0arxvkosN8mUIhKqik8546oj1FCbXttnceIfWROENF7y9imgvd1zoAxI5ySLLe3t8P1AfyShrbdLKxH2c5UOk/vsyhxvu0j2SJfCZ0fMhD7P/tEFqrpEz2nODLVSIOhqRjtsXQ4ixiU9t0iWksvET2haUPVwcUWWtBrT4X2rKys7JzvXXuupilL6ReFAOlc289036kTqMfM9F7TkB1PG8JjojKAHsPWe9gLi9IxaMpa1YJELNweo/eNOjZ5Tp/RPvDm2Qs1WgarLUZbKBQKhcICcd7K5HmhMxqGoJgT4KySWOYOH6WVy9ip2ipo96S0xtAJL11fFophj7MMIwofiMZroZLjVDiBRRRW4iEaxxx7rg0bmJIslbXZfaJjUlaQpUSMwhCiRCMWU0zW2pHJZDWEJkuJp6xE2YmGbHj+BAodp5X4da9OJZHJGOKUxgiI7WuaTMN7JsxJdsLnDqGM2SKy2+0nrarXtwi6N5W92Ta5LlGhd+9eU61AZDf2+qifsS2uh5fsJFpDZcNemE+UvENTcNp9oElN2Bcdr6d90+suGsVoC4VCoVBYIJaagpH2Ev4P+Dr+jPVGUD39VHEBe05kC/YYrdpclNGSjWaelSrRafo0a6OLbJlqm7GSmrKN/RQl13FGx2b2Sh3nHFY81Zetra2RVG/Zm36m7NdLQB8lIY+k62wfKmujTdDaYylx6/V0LW2Sf/WmZrtR8n+LiPVq8L9Xgk73kCZK8Vi+3rfRq103tcEqY5pTqD3zMuU41T6cnZNpMAhN4DDXD8OeG3kfe2w7Yr1RYRLbN73enP2tx2jaU756iT9Uq6LjnLIZ2z5FpRftd48lwVFW1GYRKEZbKBQKhcICsXQbbWRLA+YXjvbSzEVxWJkn81z9vGfDiBhz5jkc2Yu1H1kMrrLszA6h0q6Xfk6vn9nevL7az5RlZYnVta9TafQ2NjZGWhBrH9K0fFGaOc8rM/Ikz1iKzqmyB/bH85ZlAQS1v3r3BJmD2uLIMDI7KNvXlIuqGbDQ+dKSehELt+2pbU7ZiWU8ymA5Lv3cY072ulP+G3qvZbblyHPd279RXHEWR5vZkwE/RlXngVoK7g9P0xCVUtT95pUiJPgZ9zH74XlxR/eaahH0mW3HTuhzO9NsKKK2LOxzp7yOC4VCoVC4wLE0RruysoL19fVRNhyLKKG0stFMep3S0+/HlkFJzzInZdVacDyKkbPHRtl+PHtyxMyi69tzlCVGSfK9uYqyO3mYk0h9zrlTdi3dB5Z5eEUDLDgX3lpqxjGyBY2N9BK26zEqtXtMRs8hi8vOod0+imf1mJruHWXuZCUek1Fbt7Zp55GI7OJqo/UyUXEOlDl5dljdx2fPng33KZ87qgGY8wxReNmkVCuie3+ODTDS/GRFRtQu6THaqCAE9zffqwbCnhNdL4uJjvxkon1o29PfgKgf3rgi2HXbj5/KQaIYbaFQKBQKC8TSbbTKpjyJIrLJZhLMlLex53kbxdGqDdDa2dSzLhqHxzTVNquxkZ4Eq3MQeVFnTF3Hp2147DuyS3mfT3kVZ3bdOVCv48xj3Ss1Z2Ht35FNVtfUi8GOsmApO7RrwP1077337ul/lBUH2N0bzDl84sSJPX3TcXqxxcoK1c6W+S1EDNqzJ+u5GgPraYhoY1RmqzZaL/55bg5ia4fz7O3RcyXSQNj/1YM72kuez0bkra8sGdhdB1077Zs9J8rmpPDWkohs2t79Gz1fvPEooix2HvuNrqve/F5Wruh5tmgUoy0UCoVCYYGoH9pCoVAoFBaIpSasWFtbG7mce+qYSH0wx/gdJVbwVK5RMmpVIVvVMVU3U+oQm0ZRnXeiROBzUqHpsfsJuI4cDrz2iUgt7K1blBjDQ5RaMoOGK9k+ado1VTVpsDwwVu9p6ruspGOWCMVez0vy/8gjjwDYVZNmaRN57cixSJ18rDpdy+SxDXU0ytKFakiI7gN7PVUdaliPZ4rh/3zVOfFUx4RNAJI5P66vr6f7TU0n0f2ROZoRuh+8fRLdL5kzFNfl+PHjAHZV7pw3rz9RStnIyS9zrOSrXs/2MUrEEpkdvOQxClX/ZuFEU3237dj3Fd5TKBQKhcIFjqU6Q62srIxYROZMMeWk4J2jyEJOppJre9dXNkBXeUpklDS9fmn6vMg1P0vsMMeYH4V16PceU1OnhMjJzF7XKz6fXTfrqwfuHQ3Dse1pekM9xttv6iwUOT9puJc35ii1qE34oAkcNKTFm9uo/NqcVIzaPvem7gub8lHL8EVsP3NijMI4vET0ymg1eYImzLB9spqijNHaFIyEfa+pOLNCAER0vTlhhVNMNjuf59IpTsdl94lqvSJtT+awpftO2b/HFpWFRsXpvdSfnmOmPSe6tr2O7g8vmY89dk4I47miGG2hUCgUCgvEUm20QG6HiBhRZKu1n+n7KPzFc+vXJAORPUzPt9+p7dayHzJHtVXpeDxmqPbcSOrNkrxH7u9Zm5Hk6tm4tB1tb440mrGIrutcJuqd79li7TleCkbtv9qWGFrhJUGPAve9vao20awggI6Le0ftrno920dlzlEyDTsnUclADZ/K7qeooLnHUpXBRozWY2r2ft1vCsbMN4SI2JWHqXBCz5YfhQZmYSkaMqN+F951Im1Llox/SnOWFdqInjPa1zn7PuuHtq8+Aqrdst/N0aQdJIrRFgqFQqGwQJw3Rut5kSmihBVZ8HqU3MKTTiNJW0t2WalHpTNCbYFeesAoJZraCD2pVNlHJg2qbSwqB5d5CU+tj2ebmUpukdlzprC9vZ16Jkep2rJkEMpyorJdmX1XEQXNA2PvTnqQ6t71bEpqT+fe1L55Y1BbbFRS0LbDPat7ZM5e1bnWYgKW0eoejRLdezZVy8yyfdR13Wge7f2ZedTzfEVkX51K3gLEzCvrh2pBNCWnHue1Fz0XMn+ZiOXzezuP0VxE2kX7ue5b7avHcKciIrL7ya5feR0XCoVCoXCBY6mM1node+nBptioZ1OKSi/NYbbqBUqWoH3z7DmaRlElzsz2rJ6kUSk8+38kdXn2FbVhqVQYjcVDZJPLpMTIBjzldZx5cm5ubqYMXNvmWnJ9svSGqp2I0uhZu2jk0a3M0vPOVnA8tKXa/mghCl3bzDZHqKdlZE+0n+n9o+17/gTK0CJ7q/U6Vn8IZdse29pvoW/G0gK7DNDTOM2JctCxztEORedq6cPIpum1r3vJOyeK8Ii0FB6jjVJMZh69U5EKWcpXHcecNY7uAa8Ep5cGtxhtoVAoFAoXOJYaR7u6ujqS9K00oSxBWahKvd5nUSk19Z6050Z2Pc92F5W2U4abxSbqucpaPCmRiLyeLaZs2xFLsdeLpLzMW3yujcY7Zj/ef945qtGI1t9rh4gKsKu90rY/FXvpMVp+xj2SxULyWDIxXk/75Nlos3WO+hzFYEeaIY9BEVEcbVbQXO24XsHvLAl+BL3HMhYfxWBbTGmjophs+/9UFilvHxBqu57D/CKN1hwvfp0Lz8s9unbkkW8ReRDPKcenezbTDOjzOdPmHSSK0RYKhUKhsEDUD22hUCgUCgvEUp2hmA4NyNUWqq5Sla6nMtR2ogTnXmiQnqtGdC8sRdWAc9S/WtszUs96Diba1pyAcR1z5FTm9SNSY3nq4Ci0YU6SCyJTA9KZJTItZGPOkr5rPVrdS+os56nJ9Lqq+rLn6DzoflDzg22f52ifCe8+iFLhEZ6Tl14nSozhqW+j0KYozMf2N0pYoWth24/eK2i2AnwHGXXwiVKHes+ByFyia+rt/cjRMLsvdb40MYuXdEKdrqaer/Z/3VdRrXCv/5o+U+dsTiKbzPyk7Wp7GtJl/7eOkOUMVSgUCoXCBY6lJ6yYk8QgKluVSV5znDX0eoSXVNu+94KkozR9XshIFAIUGe29PkYhGp7LvDouRKEgnrOHBoZH4SpZqE6Uhs5zs5+DlZUVHDlyZMQwvXAbZVq6D7LEJRoKpJJylkiEYB+VJQNxGj3uHXWW8/qoSSY0AYNlETrWKETIgufrmDWdnTJf217EbLzrTqU99Zi17sUjR46kznuHDh3aubZqnuz/ytb2k/ggCr/xrqd7UZ0yvUIS2o4+Ez1Wp88GHU/0nPXmIkrf6Wk0VDsVPV89R1hF5myoY46Kg1jHVC8MsxhtoVAoFAoXOJaesIKYk6ossqFl9rzIlVwZgL12lG7Qc7NXBsvv1F08C+RXqASWpTf0wmu8vttzp8rwef1SKTRLLajjiOy7WXq4bB+01vakmvOurdKsSutZcfWpRAVecnKvxKB3ru0H90gUwqBt2/FEx5AFayF4YJclRrZyL1yOyNLzWdh14xzrWqot0LLTKA2qMnSPbVlNQGTDa60vKMDzPY0T7w+dD2WyWfq/KRst18mD2qU9GyfTwuoe0vA1O09RwYGIOWeJgDL2G52TJfFRRGlI5xR2iJ47ao+1fbDP62K0hUKhUChc4Fhqwoq1tbURS/VK0EXef2qnAsbMIvKo1UQTwK5Uo+xD2Y+XdEBtJiopZ16NkSedx14iaVDbsn2MUgpG9mzP5p0xhOgcYspuZT/LgvIVPJ/SvT0+8o7VxBWWmZERqR0qWq8sXWikbfG8jrX0YcYWdP2VpajUnqWJ1NSiWRo99bSew3AjjUBUKAAY22ajwh6ZhmiK0do0e8eOHQMAnDp1ajTm/aRRnPKG1XvZsirVemnyB9XOAON5Vx+KTMsX2VWj4gbZeBSeP4GWlYyeVV6RjqnENd49SKh2kVoE+zzkdzZZTDHaQqFQKBQucCyd0SqztBJR5EEXebHZYyK2RkTJuO2x+4nZirwLvbSNUyX1Mq/qKK2d2lc8Zhix4CwWbi6j9T7z+mLHkHltTsXRrq6ujiR/a8NSu5a267WvaTk1zWGGyI6XeVrr/CvT5DzacR09enRPe1qUw9OgELpWU16nth2dC56rsZFZCtCIpVqNEf8nc+UxfOW51sap+y1LDM8YbOuhrO3x2pGnbRbXqiwtSs3qaXN0rtWW7WlDCNV0eIwwYuoRE/S0VGp3VQ2ivacjn4Yo/t2L+Z4TE63jU5uwslarTeC6VxxtoVAoFAqPIyyV0a6vr49sPzbGiVAJX5lflt0pYjCZ56tKU8qsdRz2VT/Xftl2omxI6h3qnRvZaj3P1YjJRGPw4hojluqx/ilG6829xkJmjJZxtJ5tVvutTE8lb8vA2F5UTizyFbDQJOWRlG2hdrZsPdjfyL6VZcKa8ltQm7E3VvZfvX9tqTu9nvpSqL3VnqsMVs/h+I4fP75zDteL9tbMm3VlZQXHjh0beSrzXO9ayvQ9m+nU/Z9lhoo0Tjo+LyaW0H3nrX90H0YMznuu6lp6MeyKKANUlOvAYopdehoi1SaoZ7bd35rvoLyOC4VCoVB4HGBpjHZlZQWHDx8Oy9kBY2ZHqATkFWoIk7AAACAASURBVIGO2s0kT7V/RgWRs75oW1lZpyi+NGKN3nXUFjwnX+iUx3KGyPboeYGqBD3nHGJraytkjmQlc2LsNJ9uZC+20FhOPddjJertS9tPlI0HGO8JtXt5xeJ1DufEMxORPV/n0Ur80b5Wm51me7Lf8VWZLN/bWF9ltHqOemjbPlkbXLSX9blD2D6Q5XBMmj/YQ1Qej1CtQbZOkbbKyyrm2aft514foj5HPhtAzD6V3XvPuehYbTvr6xw2rnOqLJ+vNgZf77VitIVCoVAoPA5QP7SFQqFQKCwQS3eGUlWvNaqrY1TkpOSlcItUx3MM8FMB6p5ziqphVNXltR85B2Rqk8g1PutzVDwgcobJHKk0PCELX5pSo1moE1eWao17Jwtl0XazZOQKTfunSQa8UAYNilenFE9FraYPvY6m8bT/TxUE8JxhdD2i8o+ek5q2oapjT3Wozn185b2hjk62PVU3872GN3lzYsN3FExYoQ4yJ06c2DmGySvU4UcTbXhrOvXsmJN833MW1LYj5zpNruPNU6S+nhPmFzkEeve67k2vvGSEyMTnpZYkojApVR17RQXsuaU6LhQKhULhAsdSGe3hw4dHCQWstBGVYsokjqhwdBR87gWBK9uNChZ753jFs4G9kqey4Cipgid5qnOVsi4v3Cjqo36flQEkogB8L/nE3NAn2yc7f5nDiJ1PjzVqMouo9JgXOqUOPlEiC2+evFAM27btt15PHacyB6ooFCgLQZrSLGQpByNnFw0J8sKJ9D5SRyd7r6jzWnTveSUWuS6HDx9OE6ysra2NtAWWVZM1a/IM9lPZsB1r5MgYOaJZRM857z6Kjs3Sd2qIkTLL7N7QZ0d0Hc+BKtIuZmVAI0yFbtljVMukDBeIS5YuGsVoC4VCoVBYIM5bCkavzJiW/FKWmKXrU4akCcyzkmCa7EATZnj2yKmwlyyUJWIhWZJ/IkoL50nMEWNW6duz0erYlcl6TE37rBJsxiY3NjYmQ1U0aUJW8pDIbPQqeWt4WRSyY9vVfTWH+autXved1389Z2oPWUTr473X/aUaIu2rd64mplCbrQ2t0fSHuq89FrSfIgDUpJG1sg825IP2Wk33mCVlICKtQZT8wh4TFaaYE8pCZM81DYPTOdb33jWihChekY4o4Ys+rz2WGo0v06BoWBSP4Vpn4T12D5WNtlAoFAqFCxxLLfxOD0DALx9FyUfL16kXbeYdFxWS9sqIqZek2vWyZNvqIR15eNrPomOmUqN549Q+eiWnooLvkU3I69vUq9cu+5IF0xPWHhZJtV3X7Unb59lVlIWondVLwRh5GWu5soy9aepA9T62TCPymlaGY5mtsoNzkb4j7Yidk4jlsx+afMKbT/Uy1ut450Q+DqohsJ/Z+yZLWHH06NHRmnopGB999FEAvrcqkKc3jNYnS3oTecR7zwO9L7Px6nU0cUT0LMlstFG0SPYs1nFE9v7sXPXQ9/xlyFgj26xda0/zWIy2UCgUCoULHEtltMA4fZqVcjStXZSS0UJtCPo+k6aJ6DsvhiuyQ2RJxCObUmRb8qS2yKN3TpyoIvMKVslZx+P1eSrWzotDVS/TzD67vb2NM2fO7PSJkqv1UFWvUl2XzK6vWg/1XFY7pf0usmEps7bjn+OVTSiDidL1ZXavKH7bi2XnXPA7slOeqykS7RpoPLIyXC9to+fxCoyLNNi9oyX8tre3Jz3WeT7PpR3P/h/Z9rwY5cimHDHdzJYZFUDx7NJ6zH7uyyh9opcON9ojqvHIGPtUfzz2rdDnkHc/8b5VJsv1tDba/ZTnPEgUoy0UCoVCYYFYqtfxysrKyOvY2qM0FjIqeu5JXlO2WrXH2f8j70IvXlMloaiMmT1HJcksM5MiYj8q9Xr2jsi7OJPCI0l5juSsbWTs29M0TLFa3Q9WmrYxlbZdtc1lzJbMS7N9kUHbvRqtmRYKsHtLtQXqZTrXi9b2OdsHkfdnxmjVt0H9FyKPYvu/2rZ1rTN2pzZZz5eDjMWuU+a1ahPHs11b+F33jq63F1+v9s45ez4as0YFeBogb1z21duPUaxt1Ibtq56rzwrvWazP0ei552kIor6pNtDuA2W7ymi1JJ53Ttd1k9m9DgLFaAuFQqFQWCDqh7ZQKBQKhQVi6QkrCHV8stAQIIKqiSwloh6raiwvlV/kxJOlN4xc5T0nmCn1735qvUa1Mj2HmqiYwZwkF/tJchC1kammohCDCK210X7wku9TbaTqSi9UK3IS0r1DNSnDPyyiRP1ewYhoDtVE4Zk3VJU25VBnz4kKbahZxX4WFQbQ770CAapy1et64XLsq60x673a/+09l6mODx06NDL52L2jDlJ81bHOScGoyOq1EtHzJ3OKjFTsnrOQth+prq3qV9clWlPbdhQ+qG16zlCRmUvfewUC1GFTUzF6c2KLdFR4T6FQKBQKFziWnrBiTvo/SlbqUOKdEyV9mErCD4zLSEXl3jzJUiUjlSy9c6K+RkkivOtE0pcnWUbHZo4UkTNHFiZDTAXT2889yThjJSsrKzv7wUs+EYWNkYllDibaX7brMViC7ZH9RA583j4gonSeXmrJaO9om/Z6WlpN0ytqOj1gHKKjzFY/t4w2CieJEibYvnE+yUKUyXppUOeAmjTdM15pQGW03DtZcp0p9hYla/DayJJS6LMoCnvxwgqjPkSOaMC0NsJjy9Ge1DYyx60onNALm+R6KHPVZ4FlwVnyo0WiGG2hUCgUCgvEUhmtTeCsUgcwLkvFY5SVZgntFWpn8UKDNOwlSq9orzfFRjO7LpGlQFNEtujMvhCFgCjmuLdrX705meqTZ5vLbL22PVsKzetvxGgp7TKRvZe+MbKz656xtjXttw2Kt9exLChiJeqTYNuKJHvdf966qM2Ux2pCeC/sKmKyWvLOzomG8+i8euwvuveikA2LuWXXrCaN7dh+KzNSVu2VQvTSZXrwxhz5JcyxFU75SnjXiZ4/URIMIA4903vEOz8KuZyy4QLTjNbTRNhQLXuMJrixsNqWstEWCoVCoXCBY+kJK3YuLGnu7GfqNWbtQPY4IPb6UynOK+ukCTI0bd8c1hVJXpbJTJWay9jwYwmmjiTIOeNRe44mV8gKJUfe2l6CfS/tXGbbtUkHdN3s/9wzWtjAYx5RSkJCEyx4UnykabBejXaMFhGz9cal9ie13Xpp9PQ7nV/vnCjZhDJcL52inuO1r/3Q1Ig6R5ooXq8JxJ74vJZNlOP1gedrogO18XnpYgndOxGr0//tsVFiCfud558QYa4XcOYNvp9oA0XGXPXziLnqPveeq9G5XqQGv6P9PXvuHCSK0RYKhUKhsEAsldEePnw49eRTCViTRautCRgzrMhL04sZjKCSUBbXOoctRjFwUTyrZwvS60fSqf0ukpwjZuMdO5VizkJtPplEG9l+srZ5LDUcnvc5X7VQAJnRqVOnJvsfxZt6tkXdB5E3uoWyocz2HO23aN979tZoPN49ETHZqPSdB7Xj6b7LogZ0D3kx9coAMy0Lz2X73jn0MuZ3ymT5/LH3SaRBU+aZpRuMvLT1e/vdfu5t3RPRM8tLjanpOaMiGl46zehejqI6gPGzdsqfAYhjiHXPeL8XWlBk0ShGWygUCoXCAnHeCr97MVWR1KkMYE7mnCie0ZPaNPOLehR6TIaIyuZ59g6VOqMsQp4dWa+nDDMrMK5Sto7TnqsScyQFe5KzSvkax5nFI0/ZaO25Xh+0eIBKtx5roCey9imKJbbrwj0T2fcJj6VG+8A7RxlEpP3wvEG1IIAWa9dydvYcZbJaLk9j3i2mPFbtGkSFQ9Re7XnTzvU58Paq5w2umhJltJ42TJmYMn69B21/VVulzNKLiVVfk2jf2fPn7mvbx6gcXlQWcg50P3jji7R9nmYj8nGJ2rKf2edF2WgLhUKhULjAUT+0hUKhUCgsEOetqIDneq2qWnUo8ZwpCFUtRGrTLHBcVShznK8Uc9z5p+Adr2qmLIFE1M6cfkQpynTOPXVMFMbhqZYz9Y7Xp62trVRVGCUsV1WRDV7XNI06pzouLxkE1Y16jrcu/IwqSXXU81SK6jxIRCpXq8pV0wj7yjY1+YT3mRYTyBz5dK9EYWxeYhZVQXOOvLWO9luEtbW1UTihZ4pQ5xotcGDnPFL/67x4qvVorxBeH6P0iaqOt8dFqSrVROXtuynnpzkFIiL1L+GF3ejaRs917xxPJa3voz25aBSjLRQKhUJhgVg6o82Su6tkmSWUtu0CcZLtDJE0qCzYS7QQSZjatv1uSgL3JMupMAFvPnVc0VxkjhRRGIF+b68dpaXMwlbmoOs6bG5uhlI8MJ5/dajzxqFpE8n85qS71PCAKKmF59gUOQSyLcu6o7AXnXPPoUUdZ5TZ8nsb8sRCCjxGwx+icDP93/YlcjLU/tpx6r1nz1FthdV2KPjc0fnzHACj5AjeM0XXMOobX+086neq0YiKAHjHZudkSTq89r1QnSlnT3uOtq8ayTmMNrr3vBC4SMsWhXh67XRd95iSAu0XxWgLhUKhUFgglhreA8Su5t4xKs170s6UW/hUeTl7TCQVeyFBnk3EvvdCdDJGZr/3bDM6dv3cC++JrqMSZibRzbGDRYk4olfv2DnIUsZFaQZ1D3mhJcoGI42AJ/FHbI3M0ErdyrI1TaSWs/P6r9C+eXY2fdXkE9ZGq4UUptLoWdak66zs3mNoOseqmdLEGcDYxn3o0KHJ54na/jImFiVA8PwzIk2WJjnJfCh0rJkPQpamUc/VtYu0IN6cRJo7bTMLK9Jnb/TenqNaHn32eyF92ofM/qo+HGWjLRQKhULhcYC2X4/Yx3yh1u4G8DdLuVjhQsVTu657on5Ye6cwA7V3Co8V7t45SCzth7ZQKBQKhb+PKNVxoVAoFAoLRP3QFgqFQqGwQNQPbaFQKBQKC0T90BYKhUKhsEAsLY52fX29O3bsWFh2DYizH2WxaHNiNqNzo7bmYKr9RTmZRXNz0NeLSpFl66brp/F7WTxyaw2bm5vY2toaLcIll1zSXXPNNaOxemOOcrNqjGw2pqxc39Rnc+LDp5Ct5bms80HukcdSWsy7N6O8uPre9l3z8G5tbeH+++/HqVOnRp1aXV3tDh06NIqFnZN3O8v2lmVIOlc8ltjyg8bUvj7Xe+Gx9idrU/MBeHHJXiH7M2fOYHNzc6G18pb2Q3vs2DG88IUv3El7p/Uu7WeaCo/neCm1eANFCcCzJOhT8NJ+aXt6nSzYnNAb2UsLpudGAevej1iUpjFC9qOpCQP0FdhNfPDII48AGCeiv/jiiwHsTYzw4IMPAgAeeuihnc/uuecet39XX301brzxxp19oDeLvSbb43umF2QCCXuOthPV+p2T/m0qHZz3WZSExBNIsmQd9r23v3XPZKn45tTIja43dW9pIgNg936NXk+ePDlq+/777wcA3H333QD6fffa177Wveb6+jquu+46POlJT9rT3okTJ3aOueyyywAAR48e3TM2TUPpJQPR5B+R8ObVYtb1nvOs0nXR/eH9EEXrnxXNmCoM4SXviFLm6qsm1AHiZ9ScpCFs59ixY3uuw33Ce99+xmfNfffdh3e/+93utQ8SpTouFAqFQmGBWGoKxtZamGgcGKsTiUyaUUypA60UFal756hjIhW4x36iPuoxHpvQvmSlxgj9TtuNEoR7iFidJzlHqhsrURI2STzfT6lMM3ZPZqF7KJP0tXzXVJkvr0RXxE4zlX6kdsyKJUTp8qI+Z8cQj0WVq3t3Tsq/rJSjps7U+SKrtAxUU4hOqROPHTuWMjJqw6J7K9NWTY3Vm/tIaxBpKez/UZpTbdtCGWQ0X3PWUtMe2nOivkWpdO39pPMXpeb0ztF543qS4dr7SffMysrKgaq4IxSjLRQKhUJhgVg6o9UE2p7dg2wnkjA93X4kGWd2j0giiqQ5+3/kQMFXSlVeu5GDTuZgMCUxz7ENK8PxCkzrsZFzUca6tU+nT58GsLcsna7p2bNnQ5bedX3hd+2nZcVqF44Kc2c2xYgleMnLo6TkmZOMrnfEfjOb+ZSjjsdop5isx9R1nPthtHpuxsKiMpBaOtAraD6H0bbWsL6+PvLhINsBdteXx3BfKYvzyleqlm0qGb/t71RC+8xXI1rT/ZafnOqj2sznlL6MbLLZuVrYZc69GdmreS5t7vY5wRKUXOv19fVitIVCoVAoXOioH9pCoVAoFBaIpamOW+trQlJ96NVeJdQQTniqRVUVqrpM27dtRg4L2oZXczOq5Zq5vU85Wc1xStK6qpkDjbanamCvpi7PobqFrxrOkLnmRyFCnopG++Khtbazf+y1bagOVYzRtbLalFOqLc+BJlIdR85L9jPOaWT28OYiUhnrfeSp/3RPqiqXe9l+p3MQqfK862XOTzqGKNRI945V/2kfs3q0VB1zjMePHwewV3Ws9W1VNe09q7hG7JfeS1nIlmLK9GL/j8KsMtXq1HPH21uqTtfnnXc/TYUAZeptrVU75bjltUuwff7WWJMVVccXXXQRgD40rFTHhUKhUChc4Fgqoz106NCsivYqDWooiCehKdOLvs8QOW/YNtUxhhJ31r46gEUJKjwmEPUlSmBh24nYgWbW8SRnzjmZIj/3GK22q44ibMMmrNC+Tjm0WKnUG7s3FgsNLbBgP6NA+yybUMTIPIlcNTWa5MBjPbp3iCj5he1jFAaj4/IYbTQ+ZRxenyOmTnj7bSrkLHNEWl1dTRnt4cOHd5gMk6cwcQWwy9p4TV1vT+uiDJZ7PApfzJzGImc4z5Eumn9v/NEzYmptgXFIZeQM5TkIevvK9sfTvmif9B70nnP8zCbPAXbnhOtKLQawm8CGz5O1tbVitIVCoVAoXOhYGqNdWVnBkSNHUuk2CnvJ7F7anrrmR+E49ly11fE6Wbov9pGSssJjpV6SDm8MVhJkH1Sim5OHVZmm2l29BCGRhK6s2JPu1U6a2Q8jO7IHGxYW9TsKg9LvPc1DtEdUirfrErGCjFlHIUe67+1YI1+GKG2f7SOldmW0Oh5vv0VhItpXuwaRvwQxZ60JtuvZaMlUVBPhgX4hTHhxySWXANi10QFxiBbvbU+zps8manqiMWc2Wt1Lqj0Cxnl7o1Aqex3ej5HPQeZfopo7ZbhZyFsUEpT55aidXO8rL+2q+mNEPhcM8wF2bfP8bD/hUOeCYrSFQqFQKCwQS7fRRlI8ECd5p7TjsQWVsFSCVOnXSkpRcP4cTCUd8KBeoBynpgC0yS7UFqzXyTxUI/sXkdnXItblQdeNKRdVgvWk3yylo45Jx+wxWh1HxO61bWCcio/tq/epPSZiI95+mEog4bGfqdSLkaes/T8qsKGMwx4zNX+aTB8YazbUXpnZx5UN8b0WtbCw91O0f5iCkUyWr1YTpbZZ/TyzsyrbjeyvmYZLP+e8WZ8GzrcWOtBzMxYcXZ/rb587am+ldkS9kD0NEc/RJP+6/zP7bpScxo5b/WM4du2zHT+ZLF+PHDmyFFZbjLZQKBQKhQViqSkYV1dXQ+kRGHunRizOSu2UTCN7VMactA967hy2SKjUZiXLqC8qvXmSZRRfpuzLQr1bNeaP88rUiJZBsd3IczmzzWl7LJvnMQK145w5c2YWq7Xt2D4oo+B79oks2zIwtedHhQK8uECV6NXTUm1Otr3I3q12Sfv/lFeutw90vtQr3LPhRR7qvCf5yrX15lPvW9UYePHIvH/pIWqLCOh19F7L4mhXV1dx8cUX49JLLwWw63Vs+6D3nc7BnFj1SNOQsTdCz1E/CdsXLf+oe8i2rfdCVNpR18D7TuNq9b2FPj81btxjmrp39Pnmra9qbDRHA9u3Xsecv/vuuw9AMdpCoVAoFB4XWBqj7bpuj4RGCcVKqpSSeVzEOK19hXYASjPKHlWqnpOwPfKWs5/ZpNT2Vdv2EEmLXjlA7Yuyeo9tkXVoYna1g3mSeuRFy/F4sbBT9hWyykwqzVhJ13XY2NgYSfyW+bFfHBMLwFNy1QLwwNgLW22LCrvGlJLpvUqbD4/hHvVsppEHMcfglf+LbOeq8bBt83oRs+CxHitV5vTwww8D2L1HOa+ejVbbZx85J5at6vypRzzn2Y5LtRfMHOZhZWUFJ06c2GGy7IN9hug9pAUqvDjwqCCIrovnaRvZzNkPzo+dW/aBzzn2P+orsLv+qrmJPPDtnOjzhevD67Mte09E/jdqz/dYqvd7YK+TRZzoM1k1RHbuaaO/++67d86pONpCoVAoFC5w1A9toVAoFAoLxFJVx9ZBiOpEvgK7agNSeU0ATTWSF1hNaP3KqECB/U7b4vW9pNSqBlOnF69GJtUuGorEcyNnKXsMwetq3+1xqs7SlH+RW7xtV4O/s0QM6jTC9HZcAw1Rsp/Z2pEPPvjgqG22u7m5udMHqn/t3qFqk6rOu+66C8BYdWzP4WdUCbJdvuq47D7gmtLJRvco31s1Kc0cumdUFe6F96gaTOdP1eBe/9WhRp3Y7Jw88MADAHbn7/777wewqzrmnNm9o2pSdXjjnNk50QQSV1111Z62PDWnOoRlzix0hmL7VCF7BQJ0HHyWeDVxOc/qlMT54KvnAKbqWDU3cG5t4QNVrevc8vrsjx1XlMxFny3e/lZzh4YmWnW67lWdI9u3CKrGj8xs9n9V27Pvam6z33EPZiarg0Qx2kKhUCgUFoilMlovHMOC0qZKfPxcmSEQl16iFKrOFfY4dSBQIz0lTJvCK2KhGhrghS8pu1bm6TFaZaHqIk94zlfKctSRSR03gHEicNUEqLQK7LIcMiP2lcyW47ESrTpOrK+vh8yk67o9fed6kcUCwG233QZgzMDYJw34B8YMVpmyjssyAErEvA7HytfLLrsMwO7eBcaOPRqS5kn8ut+U4WliB7su7LeG83CcfG81CfyfziL33HPPns/VOcvuO2VZup+9pCE65qg8nt2jmva067owUcza2houv/zynXWwLJHQMLRIs2GfX5wPMn8eq/uP60XmDuw+T8iy1cGJa05tie135ISlyVU4diAueBI9h4BxAgx1FOSrXT/VUnJeeZ/SQZGw68i+2kQSdtyaaML2n8doulq9vyx4/x49erTCewqFQqFQuNCx1IQVNo0epQ8r6WmYBb+jZOdJaJGtMiorZ6U2SqqUTnkupV8v6YAyR2XFlJSs1B6lZyPULmGPU0mVUprOlWVqHCP7QElS07Z59i+dY10vr4gC+0Spntfjew0kt/2PysBZMLyHc8H2aYcFgNtvv33PNTkfUSIBe21No6c27CwcQZNMqJ3KzrlqTlR6V0Zl+6il3KJyZXYtdf9yfGQavI7HSvidhmZEpR7t9dS3QZma3UO8X/gZ21M2blnJE5/4RAB7Q/aicLrV1VWcPHlyZHP0Qpo4L2SjOnbLyN73vvftOVZZG5ku19xqQ9RWr3ZDfk+tiJ0HZXF8RiqLs5+plsBLtg/4CSQ4DmXwHK/VKnEf6RzwXuR779nPz8jyuU7UEPE3wJY31HAxfsf33B9eyBOvffLkyWK0hUKhUChc6Fh6mTxKF5RcrDRB+wa/o4SiLNVKr5GtIkp353kvqmRJSSkrqaZQL0MvsQOh9ifa7jR9nx2PSqdZkgWV0DmvmhDBs3nrXGvgOufG8/5TaVRTwNlz2G9K5l3XpQkrNjc3d1gOpWtrW1S2rmzVS9iviQNU46C2Ri+Nnmo01J7rebdGLF4Tt3v91+srk/P6yHPV81oTxADjpBZRGUploPY6fNXEM166PtWUqF3N86bl/WI9cSNtEcvkqabBzr16F0fesvfee+/OObRh8zNtg/DSKbKvms5SNWt2f6unMMf+5Cc/GcAu+7VzzLnUvqkPiudVT6inP8dNdsq+A7vsnt+pVoJMl3207FTtq1x/zhG1V9bLnXPAtWQb1EhqEiPbPo99whOekJZZPCgUoy0UCoVCYYFYKqM9evToyHvSxvCpXl5tPOoFCIyT+CsTU+ZnJXD1/uR1ycy8FIxq81X7K6VfK3lF3m9RnKGVStlv9c5URmMZrSbTvvLKKwHsSpS0q2Qp+NhnLT3F99bOpnZb9Ri0Uq/2356bFRs/ffr0jsTMcdgx69yynzxGvY+BcckxjTtVJmZtWhozqmyNe9UyTGUMel2vkHlUvNtjzMDeedA4WbWhe0UluFY8l2uoPgIa1wmMPbujMnm2z2yHe9Ur96fXYfs2xWRWnnJ1dXW0J71ymVGhDrJW7j/bB/ab7XKO1bvZPrP0vtO4Zq6Hl2NAoR7Mdu/QVqkpPnWuPTauz02OKyuAoTG+mrZR3z/hCU/YOVfvPU1ty3Ps2kRFaPS5bu879XE4ceJE6JV9kChGWygUCoXCArHUwu+HDx/ekVDIqiyjoUREyYeeYWo3svZPlaIoJVFK4bG8nvV00zYuv/zyPa8qcQJjdqZ9Iluwkt4111yzZ6yUdulJpzYnK8kSnDdlZpow3I6dtoqrr74aAHDHHXcA2LWzeLYz2kLUG5RSPefRrgHndKqElrdutqRaZqM9c+bMyMZkx6wZs7R4tpfJSJkRmb/aZnWdbP8jJq12OGB37VRzofZ9ex31RNXMY2qj9Rgmr0vbmbU12rZs+9dff/2ePikL8+xfmo2L+0DjudkP264WFFd2abUXqlVaWVkJ905rDWtrazvHcp/Y+5ProaUU1ZPY3vvst8aKKzvivWE9lnms2si5Tt5eVTsij+W9rN65wNgeqTZZZYBeoXnVukSFI+x1NJeA3l9XXHEFgL2s/84779wzJ+pb4/kERHOuMbnWe5uw3uCVGapQKBQKhQscSy+TR2mDEp6VUDRfrNoJVZoCdqWipz/96QB22SOla756JfZ4HcbE8XpPe9rTAOxmxaG0BYztGpopiZ97WU/Uk1Pzd3pF1VVy9LLr2PHZ9rWYtkqFZLo2HpVrQNbxnOc8B8Bu7OLNN9+8Z5x27NoXZSuWWETFTwAAIABJREFU4apnZ2stjIVsreHQoUMjCdmzvVDSV29JzWtsQS3IM5/5zD3n/t3f/R2A3fy71karEj+hRa3tmNS2rHY89VEA4uxBKoV72h7N4sTrc+55HWvf1DhNnss9xL6rZ6ftP+eJ9xH3F+8zMl77v9rBuXd079r/rdf4FKNVb3ovrpWx2GSy6llrNU3qY6B2T/Xwth7EnCfuHdVwaPy7PYfzrc8BLx9z5GWsMddeWVLuI832Rnj3k2oadO9wP3px6ZyDpzzlKXvO4bNXNSleOzoe77nDOeAxx48frzjaQqFQKBQudNQPbaFQKBQKC8RSVccbGxuj9GPWkE31AY/RMm5URVgVHo3/VO/R8E1VB1UPVGdYdYymJtQUeV5yBg3jUXWvLftGqMqE6kx1pPECxtlHXlcdKDREyB5LqGMBVWK8nk2jxnY0XIoqeYY4MIm/bdeGW9jrUg1kVYbqxr+9vZ06JaytrY3UmnaOuUZUU2qyAc/BjOpPqquuvfZaAMB73/vePcdpykJgrMriutN5iU4qWVgH50DV3FYdrYlWNAxC1YIWmoJOnQ01dabto5Y6VEch9tmq5TTlHk0TvDff8573ANh7P3F/a2IOLcBh11odwzLV8crKCo4fP77jlOSV2tS9wj2k5i07VnUk0qT/fPVC2wg18XCOvbSTmsZUnzdcf2t24P9qytHCJOokBew+E/TZode1+1vDkzT0Sc0Cdg20jKE6rXJt7O8Fj9VXNTHZcbFvHF/mhHmQKEZbKBQKhcICsdSEFcePH9+RsjzpXQOq+Z0G2NvwB0omdFxRyYvSGo+z0juPVWlXE2d7DgYq0UYOSMCuNKZOAhrOQ7ZgnWS0xB2vS0mZ47OMTcNqKNlpwQAyNyuV0vWejixktnQMY2iIldRVQtYE/sp0gXGJvimHltbaKLG+nSfuEQ0P0RAAy/yo/eA6WGZvz9VwGGBcCpDOYuqs5CVX0YT86qRi9xvn30uGD4wZhldgnHNBtq0M2l6PzELfU5NBtsc1sKyL7XEuuCc13EKT2ds+6p5hn+2eVieYtbW1SVbCdvjqOfPx2hoOwjmw2jDe0zyXY9VENuokCYwTlGj4oqed0HP4fIkSO9j2NNRNk8/wvWXDynY1bSs1ifaejgrLq7MV18o+i/mZagC0cICXkIN90XKq3pzwfPYpK7F4kChGWygUCoXCArH0hBWUHiiN2NCSKCGBJmG3tj5+pyWaVCpVCdm2T0mO16V9TQPIbR+UsfA9pamMlajdQ213XjFtDX3Rz72C9vodzyHj8JJPaCKEW2+9FcDunJPd2XM0pEH7yO+t3YXrxPXY2NgIWcn29vae0DCvYD1BSZ/X0iQRWlbR9kXtxrQtetoXHst22Se1OVpwPjRBidpMvcIAqjnRMnlq07TtkflT4mcfVbq37VCro+k8yR68lIBkH5x77hlNyGAZhia+0BAh9t3et1pub2trK012srGxMbq3LJviXma/oxSitt9aPET9SLSgg92rujeidJ52XfSZQZatbM7Ogyb1Z1+VMXsl9vhM5BwwiQ/nzbv3GMLE62hIlRab8MpO8lybItH22T5D2DfOBZ/5mnrR7h0Ng8o0aQeJYrSFQqFQKCwQS/c6Vn24VzpLbZmUniiZ2NRkhBZxJ1S6sXY9SknKdlRKtexNbaXqyUnJ30r8yjo0BZraiOy56m2qHnUeu1NWyvb4uUrudnxR4XK1H3lB4FqqUBmtTSJOWCl6ipWozdGeqwkVNMCen1vWrZJ+VOyebEH7ZF+VtakNDxh7fyqT5f622olIC6L2dt1Tth1N1K8aCNtHTYSgbIdzod97c8N7Ue9567+gnvfK8lULYMdu93lmZ2utjWylds9rekbOj70mr6PncC/qs0NLX3opJDVRgtrorXZCn1W8h+lTwfeedkKfO/p85dp69lbVKHDuuc+9pBPUlKmWRe9fL52i7lH1rrfXUy0PoQmA7Lp5qSTLRlsoFAqFwgWOpTHa7e1tPProozuSntongb1FwIGxVxylKo9hqD1XU6IRVoJW6UmlXi9+UkuAado8jUMFxkwvihnUNILA2M6hLFgTh9s+aKyyzpGW0bLta1J8Zb+WOanEqpKzJ3ny2lbin8toVTIGxntHY1U1Rtp+pqUW1e7upYzTEnTcK5wfr9i9lktU7YBK4vZ/TR2o5b48qVwZtNpDtYSgBdvld1GfvWIWanNUNmLP0Thg3rfqJZzFiWdl8rTwu8fE1Z6q9lyPYWqifr0fM6gGS+dFU7UC44IT1A6R0VpfB0LzEFgPf9tXz5+Ax9D+Se2HalLsurAPPId7R9PVqj3eXo/z6WnO7FhsHyLvfS/9JRGlsl0UitEWCoVCobBALI3REloazCvArPZBtZlZ25zq9inVqAensisLtdtEWXBsO+w3JUyybNonPLuXMj1CJUprZ1EJUsuz8VivpJbap71MV3r9yJtZY+M8SZDH6rp5rEu1Caurq5NxtMrIrLSrtmW1lSuLs/8rO1XtgbZtv1PmrMnwrccjP6N3JCV/ZUUW6nXszZvXZ9sn2s6U3XsskPeAFinQe0P3pf1fs5VpHLd3D2p7une97GxW45BpQ1jQxI7Ljl01aByrrqntg7JRZV5RqUjbB33e6Vp7BRuoueEeIrP19reumWpUNJ7VY5j67FC7v1cohPtcNXZaGtM+d3Tdo73i5TTQ0qtajMZCPaDLRlsoFAqFwuMA9UNbKBQKhcICsVTV8fb29ihkx6p8SPUjBwPPqSYK6FeHAq8+qNZyVLWZl7BfVXUMGFcDfJZ6T51DIpWy7ZOqijlHbNs6tPCzqGauOlhZ6Px5zlb6XudaVeGqirOwDieRCodq46wPqlrVpAae851tH9jdf+oM4yUd0JSOcxIt8LOoPjCdNqw6TtdI1abRnrLHqqMY1Y6aFAAYF2FQs0cUmmKP0f2ga2LHp2pMgvPoqajVmWcq4cDm5ubOHtRiHLYdHYeGvdjrqNlBnxk6F56qOkqfqa/2GDpd8rnDeeK62ecOVcKaalOfvepUZPuoqWUzRPd/9gzWY7Rvur+9OYnSXnohSJHaftEoRlsoFAqFwgKxdGcoL+wh+k7DBTyJKWJgkXTlOcMoa1NDvHc9TQmmQdpe+IAnnds2CXs9Da/QdJRe+IM6milTtM5WiihcxAvNIHSeNAmBx/IVZ8+eTZ0SvOva60QOYFqayzocaSiBFozw0ltqf6KwMi3lZv/X0m82fMz23fYhSjYwR0JX9q1sxe43LWKh4UrK9j02GSUW4Xtv3XROvPAhPcdjRgo6Q2m4muekROiYtBSi7YOGC2nYiLfndS09bYRCNSV87ujzxl5Pw2uIqICD10fVSui+8xJ/EF5YnL2ut3767NXnju1rtEf4/POcyrxj5+yjc0Ux2kKhUCgUFoilM1p1NbcSBiUL2hu8gsT2OGDM2jTtl55r30cpwTSUxrIESpZaiEBZm+2jsp7IZqFM115bS01psXUrtVGiixJkqFTqpZaL0sPp9e136m7PJA5ekgDVVmRJB/i9sjUrKWuCfC2Uraks7bFaCixKWecxGk2Jqa8ew1Q2rGkOvZA3Dd/R8B4v+YAmVdEyeR6z0DJ5GuqmST08TNkc7TzqvadpDwlvTux3GRvc2toapdvMUjrux4ciSuCg6+Htg8jOS9h54h6lfV2LqXBdvOQ6umZqR/ZSMPJY1UbouK2GSFNuanif3hteCsZIC5clO4mK0Xs+PZrE45FHHilGWygUCoXChY6lMtqu63akLC0KDYylc7UPZGnOVNJXJuNJRCqNqhebxzQ16bl69nrSqZcE3Tsn87DURBWUMDUxuP1fvY0jpmalxynpzvPAjaDjyxjtoUOHJr1H1WbqtadMXIuMezaeyPMwYxhRyT5dY09jo9eNUuPZ9rRogNop55T6YvsseUYG4iVI4R4iw9XUmx6Djjyi9XvPi181Jqpt8TRRc8bcdR22trZGiUW8Mo+qaSC8OVY2pX3RPnrzFN1r3j1GDRrXhcyVviEsfcjyhsAua+P66vi4lloQHth9ZtAmrAk4PG0j22Of+IyP7OH2c9UmZs8oQplslCDFu79tidBitIVCoVAoXOBYapm8ra2tkW3Bk1Q1ZZzGcNlzojhDhUrOwFjCUylUPSCBXWlJvTK9tHBRH6P0eV46N2XIGgvnSfdq/85Sn9m+2++m7Lt2fJwDLZOldj17nSweU9F13Z44Wy3/Zz+L4u/YN5uWTQtt2+t5bXpr6n1n27CfKytV26wWD7ftT8XPZvZ97Sv3MGMxuV7AWEOj9l0dg3e/Rfekt+b8TIslZG0qQ5nSrtjj9V4A4rhP7ZOX0F49drVAhaeF07mLiglYe7neW/fff/+e13vvvRfA3gT6kZ8Ar087tT7/7DFsj17O3KvUiniFPQg+4/XZ5UVm6HMs0lB5GiLOTRTNYdeazyrO15RvyEGhGG2hUCgUCgvE0hgty1WptGvtQ5olRiUyjZG0x6qEGbFUK/VExdM1JtJKzJTwPPZh++YxDI1npASYlX8j1HNQYxK9bEI6XypdZ2WyssLeCl5PYy3VA9yD1SpkNrft7e2Q3dv+apyn2m88iTizA9nxeRnJ9JgscT4lfErVqqnxktfr3OkeUu2Fp+3hOqg3Os+1HrhRQQXNJqY2dvsdofPqZYPTsWeFJbRdO0/ReVtbWzh16tQOe/e8gJXBWvut/Xw/vgy677yCGrqP+TzwYkbJXNUme+eddwIA7rvvPgB7tTyaEYyIMu7Z+VT/Cu4dFk9RO6j9n69k5NF1PH8JfSbPfXYAY42APguA3XnTLICLRjHaQqFQKBQWiPqhLRQKhUJhgVhqeE9rLUzaAOyqkekWrqoPr46m1lilCkLDBebUz1TXdRrZrSqJ6gh1GlFVh2fo15qS6oxAeKpjTZytacZsYviotqc6+WgyDHuMhgJpeIRXOzUq/uCpgbR27RS2t7dHKi/rnKJOQpETlwfO11QCES85uaZ50354KfG8BOnA7r6we0cTBkT721Od8liGglB1rY6I3O+2D7q+kUOVhTqAzUkmz88y5yqFqnoz88b29jZOnz69s894rqa9tN/p2FTV7o0lSm7irYuabHQPcS7osAOMzTJ33303AOCOO+4AsJscxkv+r3tSk7t4TkNarERTSvIc6wClzoX6XIuelfbY6JnhOdLp7wLBtVXHPXss5+nhhx8uZ6hCoVAoFC50LD1hRRSgDvgMCxhLYp6rvEqJ6h7upSpke8pg+Z6SmS1BR6hEqyn+vHJOlP54HWW0XvC7BoarZOuFNiiLn2K0VkpUiTV67yWi15CGLE0foQUQMmQJ1Imp5CNzpFddW8+RSpllxGCsNmRuAQLLJnWPanlEDfvxyhdSwidDuuuuu0Z90+upE8+ccCI9do42QaFOjN51vDSgEba3t3Hq1KkdZyI66Ng+TTk2EvZ6USnFKKGL1VKp046GD3G93ve+943Gw71P5ycyWcLu0SiMMEoGYp+rWgBDS4lyL9n7KQrFUYbraWG0D9Hzxs5rtDejkqn2f5vMpxhtoVAoFAoXOJZuo1WJL0tYoHZCwgvRUBuCSmRqrwR22QGZhdrDPGamdihNSM9xWbbA78hcGGpgbWPAuCSeNw6V4j17riYbUAagc2YZlNqgdQ48NhmFAqmt2EswMVeaXFtbG9nxbB+m0v5l7EpZIZHtzYhRqsbB2pG53gyRuOaaawAAV1111c4Ygb0sRVmBJrfgdXh9puqz57I92vH5OVmeXZeoxKLetxnj1OvP+TzSEBCexsML81J0XYezZ8/u7GcNcbLX1rXja5acfu4+9lIVaklC3v/66l1PNWdeqJY+G/T+VPao6UqB3b0aJfu32kfVzKnWjX1X7QwQP68j+7L9LgqB85i6lsJcForRFgqFQqGwQCyV0a6uroZpD4Gxx1mk0/d0+0RUkNsr98TPItbo2WYphWkCa03cbVmCehvzVb0MPTsEQUmVfWTiDGU69hhC5y8LHFdGo69egvWpZAOeJ7bafjNW0lrDysrKaH28faCe6VlSiqm9kyW2V/C66vFoGQbZ5vXXXw8AuPbaawHslj7jda1HLNvRgH5laJwLpsqz7dGep8kH2LZNRK+l1VSDo6wkY3mRB7jdB1N2Nh2LbW+OXX97exvvf//7R0lCsiT/6guiHvf2u8hrXn0qrIaLzxVNQqO2bfus8nxagL0aDNuGPZbX0fXhKzUddu+wv1xnXod9z4qLcDycG302KisHxmkUo9KKWZm8iMnaNdJCCpubm2WjLRQKhULhQsd58zrOGG1UVNuTdvmdevLSu1A9iW3cFz/TmEeV/LNybCq5aqJrrw9RbC/HZyUwLfge9d1jahofqqzBi4WkxK+2ZpXcPTahNmFNNefZRew+iBgK7WxeOjt7jPdeP89stDpPGkvqFVVXCZn2UG0L2F0z7k2+1xKP1nalEr0eo9oQLzF8pMHwxqkxt0SUIs8rHRexUU8zoHa2qIiChXqfZ6XOuHdsoW/A986OPOw9X43oGaFsUYuP2LHpHuEc83nhpeLUZ6T1AdA+8ljdK3ofktHafad2VGpdtA1vTgjNi6BraueEx6qtXveqnRPVKkbPNU/rYNe0GG2hUCgUChc4lspogbEnmidZqqSiidOtxKyF2GlLUNslmayV2lTS1uLWamsAxhKsZivybFdqm1WoV55ny9S+qcRnGYjaKnSuo4L33mdRBqIsybue662bfjZVUODMmTMjRuvFx2n7cxiSMjGvjJe+p5ROBugxF2CvdE1bKRPB81wt/mDtusosVFpXD2xb8o57gjGPjMvke/bDZiBin1STomzU8xxWz/sossCule5VHZfHgtX2dvr06UlGq3ZC+xxQ5qqMU22p9tp6rj4PvLhzjYDQZxTX2NpMta9cJ77O8YOIMp9p3gBgdw/yeRplsbP+BOqfoGunZfMsG+f/WixDvas923pU6CIrPjKnWMpBohhtoVAoFAoLxFIZ7fb2dliMGhjb+PTV87Dl/2S0arPlq7Ji+3+Uv1i95oCxTUQ93Lz4QvZf+0Lw+l4xaUp4lBaVCSqztn1Sj9GoQLIXC6mlwXScXmaoSML04BWDjmwlXddhY2NjFDOaeY7qa+bdrN6LOmb18AV2bX1kkFHMty3EfcsttwDYZcMa56j2MGCX1ZBZ8FXtXJ5tld7EZLLMj8vrcwz2nIj5RZ64WcF51XR4LCJiohkLJqzGKds71karMbO2X8pCdc/bc1TbpbnHCS1Zafugr/oss6xbmT/3FWOheX3PhqlaqciT3Xuuqpe22o89Hxv1V9H502eoPYb7OYp68DSg6i2e5TlXjUOVySsUCoVC4XGA+qEtFAqFQmGBOG8JKwjPEUedoajioLOAVblpQgpN3B+F1ABxIgJVJXnhRFGJJqpFrBpGVWmqrtAwDAtV/0QqYy8VGvuiqsrMMUidbVQVnqXeixKDe85Qc1SQtt3Nzc10XaIk71lyg0zdaK+jjifA7pxqggxVz1nnKP7//7d3LrtxHF0SziYlG1oYhiEb8G7e/7FmPTAgSzZggbdZDIId/Doiu224G9A/JzYku+uSWZVVPHEuceTCJbSvJ8F8/PjxzU+5jnV8uX+ZnLXW0b2oZCe5uVsSoH/HME5rSJHKSeim17pL96KJXDQhfO5/DnQd833gcxNaMhyP6+NKpXINnGsq0Vvr7TPBd5/+1jxS278WzqIrmS7sNFZty5I3HyNd0Cz34XvQXchNzIJjSmWMrWVhSi6lgMjXr19v4j4eRjsYDAaDwRVxU0b7+Ph4IlydkoZaEJ9W9lq9MTaD+YnRMqGhyUMmoW5ZRLTOyLD9PGy4zeLsJNzNlmqyyHQsWq383bch60vsVOfWtSbb/jtC+7tEpF2rvgam5qeSD/4ke09iCbRoaVUn0Y42biZt+PnEOpSkJIbJpDUJua91Ko8nsQsKpXBd+O86L5PJUkJLkuVMaB6dtU6TDMmCUsJOawbBkiH/zplhY7lPT0/ry5cvJ7KnPj+y6n8Cjpfrzsffyp7oBfH7QibLcpuUYEQZTa6zJlOb5sNnZSdLyfdAEmLxY/I4jlYq6ONuXpAk+Zme6RGsGAwGg8HgG8fNGK1KNGhRug+erKmxnGQdUn6LzdyT5Ux/PRm0LDOW46x1jI1RQEJwFkyGzvly7G7pNfH9nRQex8u4citc9+/IZHfi/IwbXyLGf0kMldvz3H7c1i6xxW/8nIzF8VgpVtfaxTG/wKHzce0ovqrzeJs8PR9itr6uOJ+13rLHVJbkY09MRscn+xB2ngedj+uNjNbP147H9ZDum/D8/LxlJc/Pz6/XNJXYac4aN9dxKldr7yh6OlLuAeUbtW1rTenH4fuT5Td+bbR2Wms4vu9S4wbOi0zWPRosG+MzyPi/34PE4tNYdzk9LIFKuSjMW/H3yjUxjHYwGAwGgyvipoz28fHxpDF7ygI+B7dQtD+luxizTRYR2WgStfDPHbS8FFeThZfiK62pNTP7koVFi1WWebKsW2YwYxhCanlHq57HSmyyySCea8x9bht+v5OBZAxJSHHdxmh5ziQk0mTs0roWyPR0fmUFK0vY46yKryqeq7XYPDipMTa9PmxuILa81injY7zrklg6Y8GXMAZmqO+y0NnwYgcxFsbmvAVma9EmUAZwrdM1n2QaHT5WeqVaYwBni2RpFHZI61vzoUjDJSI0+o4So8xn8bGzsUZrIZjeF3wnkfUmTxGfNb676J1b6/hsuTdhGO1gMBgMBt84bspon5+fT5iZW4nnLNQUK+FnTTg/iVIznnKujZ2fTyy1Wfx+HsbrGmtURqFbgowTt0bIKRuvZeHtRN+b9JmQ4qNNerExhIS/k/23y5YWWoOAxJy5Jlu7xrQOKPlJgXZny4oF6qeYJGskvTEA42tsakFPTspfoOXPlpHuseHxmlD7LvO7xd2bR8e/ay0xE8N1T9Auxv/4+Pi6rRiNN/hojTpa9n6aQ2u1JzbpUpysHafHIdXmfv78+c1PxpXZNtOPx/fcuQxpn4eYv36SsadWd2xM0dZBys8RyGi5Hn2fc9nGnvOgeegepNrha2AY7WAwGAwGV8TNGO3hcIiNjJOCUlOY2bU4E2idsQ4v1ajKuiUr2tUINtH6JFp+aa1giqHqs9bMILHG1uCbY01s+ByT2NXECrScUz0bx/Lw8LBltIfD4SQumuLSZBStBZ6DWZHcNzWzYMZuUyJLalhs2ai/FTOVUPxaRwbmSjY+Zo1N+zpTYwYx8xd2mf9k8WSybOadthG4rnfN4jWWndeF9/jDhw81dvzy8rKenp5O2nP686TvGJduIvVpLnzGKJKvFolrHT0WVD9qHqG1jvdQXhBWU0gxbNeKkvNhE5XUaIHN21uNuf/OrGnOR2vUFdD43PCZ0/fJq6Rt6FHZ1ZbfGsNoB4PBYDC4IuYf7WAwGAwGV8RNXcd3d3dV0Hqt0+A8XYQpEceP7z+FJiW21tGF0fZJafZ0M8mlQvcIy0t8rnTHKnlA53UXZXLv+bZ0uaXzaH4t3X533Pb9Lhmqldqka/J3ykZas4K1Tl32rRzJkznauZswhien6Hxy2dF1nITiW3IIXccuSkEZRYrH0w3spTp0HbMUKZUEtVABxV1SWRbXG+9XSmhiiKIJgOzCG7uQA13HSfCejUCYvJfeLXzu6Cali9Xvm8q53J3sx2Sikx+XrmON9aeffjrZh+ta95uysenZ03uNyXe6jkySWuu4VrnOd+5fgQl7TUI3CcEwLMhr7tee5Um+3zUxjHYwGAwGgyvi5uU9TcB/raOVxmQHYlce4OdzMBki7UtGliTkWlIAE3U8SYDi3pz7uTZ6vm0ThN8xWgpi6PPU6ky4tIWgb9t+JqSSmQbJd9LT4dZtE7nndfO5knGRmZOZ+bE1fiaysTzF1w5ZkBgs16avb5WFyCrn+mNBv0snkkGwREJM2u8BxQ2Y1MMGBb4OmsRoS3DybZqkZXrWk+BKe1dIflHPIGUJfW68PrvnkSyKTKy1wlvreM00Jt1jzYHJcmsd1wrXMZlgKldhQiWToZJQT2OyQpInpfwpS+BaAw6fc1sH6X3Rki1ZmuQJUPR4PTw8TJu8wWAwGAy+ddyM0d7d3a3vv/9+K9RNtsYygcRGW+E4mUaKtzbGwhiQFzzTkmO5iyzBJL7R5AxbOVPalwIJKb7QxqbPdQxatmudNnhure9SmQzH0sqJ/DtvXrATHXh5eXm9tqk0jOUAHB/b/jlaeRWZv68DMj6NTcxD4/FrwliVYnFiiUlUhSIWPB+lRp0FMW7N+Fa6/5Qo5N+8p36dz5VFJVGFJqqxa/yeWqe1tfP09LR+//331300Fi+D0twoNpLuB+dKJst1p2urWP5ax/uhMYhxURTC33d63imRqb/T/W9eMK1JejxS3oXWGUuBUgvRJsChMWpbPSPeDrIJr7SmJv47y4lYCpfexc7UJ0Y7GAwGg8E3jps2fr+/v3+1emQhpazFJpaQxBl2luxap/56ZzT8ToyFFk46h/ahILkk0lKGL5lFk1FM+5Jtk504uyOzIDNjgfwOjMUlRtjiuMwK9fORGb1//347Ho/DJTnFJpeYzsNxCu1+UFJureN9boX2uxZ0Yje8h+kaM1NYY2C8WvBrQq+E/maszuNvmitZFoVfNHbfV2OhmMKudaCuF595skk/T3sGEp6ent54IsQinWHq2or5kOklLw7XtMare0xG7mOVUAPb8un8uvZJ8pHxVGa7O8hgW1WH7oEzP33GjGxm9qZnVoyV15GZ0vo7jYUNOFKsmO8X5jGwXZ9vewsW6xhGOxgMBoPBFXFTRrvW0TqU1eF+elpH9PWnzLMm7yZrh4zMrTbFvT59+rTWOlpAsiiTuDfHwLjOJbWiZDuMPTtzIutuTRk825DHJ4NtcZA0vxajTXVozcrdxZGFc+z67u7uxKpQUNKbAAARzklEQVRN8p1kROl+tHPSA0A25cyI8eJWD5pqIVnfSmaWpPCaqL/ALFQfE7fVPBJbZP0k73eLRTrIehl/9etOhtayxNMa0vFaazrt99dff73OQ3P3xg1iYPRS8flIniZ6UriP5vfx48fXffQ86t3H9ZZa+fH+UhSf71X/jJ4NeifE8l2WktnUOkZriOJjYdMMssh0v1odMq99agPIulndW67ztXLjgYnRDgaDwWDwjeOmjNYti1SHxaxEstUUu2VLq6YQlbLWGBORBSTFlpStRiv9XPu6NG6yHVqYidHIWmv1rc5kWnYrMxMZD/F9mTVLBuPn3zEKH/M/xeFweHPPWbvsv7f4flNlcjSFq2SJN5F/xlmTmhRjV6y93alXtdjlzipnNmarjfTvWuYwGWfKcua6YmVAqo1tteWpoUiqc27zV/0+WU9qnab7ob/ZZCDlGHjW/Fq9vt2znH/++ee11lq//vrrm214/51hMqeF7Fp/O1OnihOvEbP3U76M2L3GQu9L8i5y7jqvxsFm8v5ZawyQPDmsVacS1O695JUmw2gHg8FgMPjGcfMY7U5/V7GSFifc1bXtlGTSMdc6ZadkLrLAfIzNUm1xHd+WDKnpyCZtZX13jj36+TQmXS+veXO4pd6uMZnTrk0et9m1yfPzNctSLRZZX+3XorUpawphCeeyMz1LkoyG7cRSO66m59rqxv3cKTbu80mKXWRb5xTX/Dsx1eYhYhN5/51Mdqf+dW6Mqb0l8y92HhNprGsbsR1ni2KBepYZq00Zva02vbVP9JZwv/zyy1rryGwVy+Qa9rWq5795JTQfaR77PFqLzV39PrOatY3eIazf9X0EPiNSwNJPaT5zrr4vtb1TLT7XQctn8bn7O2QY7WAwGAwG3zjmH+1gMBgMBlfEzV3HdJ96UoKnwDuS+4jYyReuld0/Klqnq5jNDdxdkcTU/bxMIlnr1F1OaH5sPrDWadJNc/skse3mRt+Je7OMhElrTbzfj0vXMZOLHEmCkzgcDuv9+/cnbvNUvN6SxXbgteT109rxe872hVrHTB7atSZsoYvkQm6NGnYiHgIFRIR0PiZotUQ6tvbzbZjcs1uPdP9xPad9KEO5E4Y/HA7ru+++O0kw8jIYPWM8hj5PY+G2Oj7DAUxMXKu3yxSYkOjb8n5z3fsx6d5mohvXme/LhDaNSSVJbALgv1OUiGJBbOKw1qkozDk517X2iVKO9F7ZladdA8NoB4PBYDC4Im7eJm/XiF3WJst5doy2ySUymULH8vR0WWWyomilU4aMv/vxaM2lVmAsXWglM6mgn8XZTCby8zEZioLdTFpJpRNNTLwxeh8T2W9KXiLrvaRdHltcJblBYpf4Q5bYxsB2b+k7CockgRSyM66d3RgFskPNW/cplSDx/Gz47efQmCijJ2arZ4TJPmudXp+WbJNKteit4HO7Y2o7YXh5QzRueR6SKExLyEnCNbx2bVu2MfS5aQx8ppK0JJ9DzUP3UowwCcloX5a4cS35s5JaQ/p5Nc9dMpSOwaRSPsdrnSZh0rORnk3Oi8mLKbGT/3cmGWowGAwGg/8A3DRGKzm0tU4lytY6WuCUcEuWtx/Tf8paUso8pb3cAqOUH1topYJ7t+DTPFILN5ZvJBkwP9+umTIl6XYN1BlXI8Nls4G1TtkC41eppIJxUc6P8V4/fhJqJ15eXt6IEqR45TkJtyQk0uKeLODXTxcdoMgIGa3G47E5rtXmBUlNM1oTcrIEZ2VsH0YRDXp9/HeNm4yWn/u+ZGItzpaaoFOsoZX5ODi/hLu7u/Xhw4eTNonpXXLOI+NIuRFr9UYHfi3YgpClYGxUstaRueqn9qFIg8+L4yej3cXQWb7DZgwau96zfrwmOiE2THEK37flq6QmFu1+8R3s8+L/n1thGO1gMBgMBlfETWO0X79+fbVUUhYwxRmYvci4pH/WGpMz/uBxCGbyUeAhxRJaazVm6aWMQQrfk+klC5oWfmsqkCw0ZsAyJsgs4TR3NoDeNU1gTKhlMKdtzsVKXl5eTrIZE0NuDDBZ7a3A/pJr3OQz9bnG6GuVc2a2MXMT1jptys2YGeNQqTE2W7Xt4l9NYpTNuxNb4PXkuqbXyUFWwnwG9yRp/C7w0rKOxWj53vE5t3XAv9N90VxanJ2x9LWOAhls56ZjKD7uHhRKSFIYRW0bE+NLz5/PQXA2zixqemFS3kVrBMFYbWo7ycxkZqGnnB6BcXw+m/5MJK/hLTCMdjAYDAaDK+JmjPbp6Wl9/vz51aKkdN1ap9ahrBztk+JQtPgbmLW71imDYFxC27plyQxBsobE1GlxMea8ayvHdlhNCi8xC+2jOErKmiXIFps17BYh47ZN9tCPQbm0d+/enZXSY5u1S+qq+XeSmWNsh4xzJwPYGpYz1uTbkNHR25Ik43ieS6QK+Wy0dZjqJ1usVs+InonEDNr86B3x8zCut4sjsx7zkqxjfc+m9H5OxgN3WbkpZshx+rF97Wv+zBxmfW1ab/ROMA/DoWeL7zl6NJK3p3nKmqfLj3suj4DaAP5d89zRK5LOwzZ9yUOY3p/nWnT+GxhGOxgMBoPBFXHTGO3Dw8Or5SVrxq0NWSJkGmQWbkXqO9boNcvPGTRjvhpbywb2c2v8ZBYp65DzIYPaxYjIssh6Ui0m44XMlN6J/dOibHWzbqG3WkiB18qhMXz69Ols3KTVyfln7RiXxDDb/UjxIY6FPxML4jogG2qNEHyu3KZlI/u5uR4Etphc61SViLXXZLwpi5v3mWP0efP5YRxefyf244x2F6P94YcfTtZgikdqnGyPl9hUqkFPf6csfcYqdU91bVNuCNluywr29xszbPkM8N2Szkf9gdbwxX/nO8Pvk88/1cG3/I6Ug0ImzvtGXYa1jvfavWO3yEAeRjsYDAaDwRUx/2gHg8FgMLgibuo6fnp6OhFAcHFvuY7pstXPlJpPSUSm01N0IrkJuA1dXe6iZDIAkx9SIgPT6FvyRUqWaYLsdB27K4xp7jwuXUl+DZm2TzdQEvDWZ0x6oAv0XPnOLqHl/v7+RDqQLvG1Tvv28n6kcdPN2wRSkigI7//Olagx0F3Ka5sStpqbmUiu6pawxZI0/44iLuy3nNAESzjvVN5DVzRDGL42WqOLhLu7uygTyPeGH0+g+zQlzTABiC7vFNLQO88TAR1JipXbJHETH8fuszbG9M6iW3kXBqB7XvNrwikphMD7zmc0CaQ0idQUCuJxJhlqMBgMBoP/ANyU0T4+Pp4Eux0qupb1l4TL18qslIHvxiIdLF5uSVdu8Wv8O8t4rbfWIS2m1toqJVjQKmsJPC75SGbG4n99Twa61mkiC9lHkrDjtdX5eK9TSZALizTLUt4QJoT5nHflR/53Soailc7rl5JhiFZ+5deP3zVmlkrQmlwk15LPuxXys6nEjtFSuIIMO5Vb8F6Q7SWvgsCErSSMwO/O4e7uror/r9UZJRMpk2A/3xUUFOHc1zomQendIYEKvlvS/FrZVfI08Dnk2HdlhWS0TOBLAjYsv2zb7t47bX0naIy6BvRAct378S4tC/23MIx2MBgMBoMr4qaMNjXB3gmCsyXUriifqexM408WOGNWjGlSOsy3aSLyl5RbNBnHVDKxaxPl2yZJuXOxWY7Zt2HrKTLQZMk2xpasX90v/dzFSeQN2TFLWqhNkjOxhCZ+T5a6Y1C0opOcIu+vrjG9MYmdMI7L2H0SP6HXg+0Sd/F9btPKzHbNJchGU0kfjye2x8YOSeQitV0ktHbYsCS1sRR0Lgm9yKPm22mcPD/jkTqvb881TyGWJFyibTQWPofpPdFEdPiO5PY+H8ZOdV5dI2/FqDny2dbnZLrJG8JyIq6ztL51TciYU8kly0FfXl6mvGcwGAwGg28dN22T9/T0dCLx51YVi9XJLGS5+D76TFaTLD9ZU+eEDNbqsatkRXFMLdPWLf0mdE9LKhWBMxZEy30n18ZYzyUiBwJZ8CVZx22bFLujdbuTh1RROQX0UwPxlF3s+7hXheyGMVk2DEhehSaJ2cQv1jqyNXlKkpUtNGZONI+Hj6nFW3cxWqJ5LXxsZD27+CjFBVqVgDMnehq+fv1a17I8aWQ5zvK4xsm8U5a7zqf3DpkXm0DIK7fW8b7zvPQiJXEdxj11LdRcIN1LXkvmaKR3C70RjaF7iz8KcbABAte7r53mZeE72OfHdyOvffJyMC/n/v5+GO1gMBgMBt86bspo1zpaQKkBL+OfsiBleX369Gmt9bbZsI7HDDNKlqX4Jy1jxl13Frg+0zxoRaWG5i3bb9eAmVaZrMDGvnzOlFoTWEfn4+F8yBSStd3YfGPF6bjn4HPYMeRzdcd+3ta2kExGcNbdRM+FJG/IWC+t9iT12JgF1xKteh9/k4lM0owtXshnIVUPkJnt4uIC71uSH/Tv/Xi7ml7f7/HxsbI7/505JLxfzmiZ/9Di0d7KT9A7i/Fniu37ffnxxx/XWqeVGC2mvtapx4b3kvclXWM+a5oH2aqPm23w+JOZ0/5ZW6tCyicQ6KFJnsPEpm+BYbSDwWAwGFwRN2O0z8/P66+//nqNVcgS9FgQszDJLGU9pRrVFofQ3xLdTv74JghPsep0XFrKrd7Rca5Nno+RLEEgA0gZfGS0ZHCJ5VG1iMdMWaBkso0ZJHh2404Z6u7u7kSg3bOYec5WO5zY4qVN4x3nFKES22ptEvkzjbExSa73lJWpbZnJmTLWm9eF508Z68xXYM0tPSl+HN4v/kzM+RJlKO3LZgjJAySwgUI6vhilamAFsVVm9ibvS2venhTw9B3j7K09o3/XMsd3oHqTroGe+1QLy8/4vOqYYuepAUvzPOyyqjW25qH0dwOPu6vf/zcxjHYwGAwGgyti/tEOBoPBYHBF3NR1/Mcff7y6jlMwmu6P1p/RU8oFuiGaWza5yehiYJKIu3JbH1i6Z1OxORN1mIyQEmtY/kJXWurR21yidJs0N2E6Bksf0ribuy+l21PoY4eXl//rZcymAknCTfehSboliUKOgcdISWMsBWPCSSrvSQIRu3Fo7j5uuuGYWJVK0ej65HpIIv88b2s2kVy6fPbaWvLjMJGFx0/u2936dbx79+5EeD4JYLDsiW5Zn6vuvxIzKSDBtZOS1PS+8dIlP5/jt99+e3NeHYPyg6lMjpKlTfTE12pz+3KNJtGQlkyo8F2SRpQrnuuYfZGTG5huZV6LXf/jW5T2rDWMdjAYDAaDq+JmjPbp6Wn9+eefr9abrAxP8W7F0bKU+LdvS5Yg60ZJBIKsKt9GY2HRd0oWYRp9a7/nVnZjMMJOjIDlNLwGTCbxbZn81BJPUnJEkyVMZVnnWuux5GGtvUBFGsvDw8PJuX3cZJCUNUzlSkwoas0FkoXOxhdkspqzz5NlDWQUWieXND7gs5ISS8j46BG4pNFCa3mY2CnP14RSnAXpnuqa8FqnMe5YLnE4HGLrQG6z1umabAL+fm5to/cKGV+SKqQEI70vKo9J7wMmiPr7zI/J332sXEvJ+8J3Uisr3Em/6qcSxugp9OuteTQPUfLYMAGQz2JKZqX34P7+fpKhBoPBYDD41nHTpgIPDw8nFuqugTjlFJMMlyzuL1++vNmnlbCktH6m97MUwJHk/9J5Uxuuxn5p0Sbm1BpjJ8F7Wp/tGuykGFvj7VS+dE6CkfEqH9slsVqJDqS4oEBxE7K4XekMrxfboqV10ua6a0DA+9FaIF7S/o1jSu0hm5RkK91I8+IzuZPi5PkYr6Snw/chU29eBp8r49MJh8NhvX///uT67BopkBklRsvnj8yWEq0+Z63JJtOZWu6150MiPklqtok9JI8QwftPBqvPXTxI101zp2gQ460uAKLf2cCBOSF+rbQtPSacXxIpasIo18Iw2sFgMBgMrojDrRrfHg6H/1lr/fdNTjb4VvFfLy8vv/DDWTuDCzBrZ/BPEdfOv4mb/aMdDAaDweD/I8Z1PBgMBoPBFTH/aAeDwWAwuCLmH+1gMBgMBlfE/KMdDAaDweCKmH+0g8FgMBhcEfOPdjAYDAaDK2L+0Q4Gg8FgcEXMP9rBYDAYDK6I+Uc7GAwGg8EV8b95TWS4zXcKkAAAAABJRU5ErkJggg==\n", "text/plain": [ "<Figure size 432x325.44 with 6 Axes>" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "image/png": "iVBORw0KGgoAAAANSUhEUgAAAe0AAAE9CAYAAAAmijrUAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uIDMuMC4yLCBodHRwOi8vbWF0cGxvdGxpYi5vcmcvOIA7rQAAIABJREFUeJzsvWm4ZVlVJTrWjYhsIjKyFemsJ2VTZdlSTyjxaQFaiohN6dMSsEHKVyU8qhR7UepJgr1+toWUiA1iqmjZYQ+CZgH22JUdYJOJKJmSZJKZ0WQXcff7sfeMO+84c8y9zo0bcffBOb7vfuee3ax+rbPG7FYbhgGFQqFQKBSWj62DLkChUCgUCoU+1I92oVAoFAobgvrRLhQKhUJhQ1A/2oVCoVAobAjqR7tQKBQKhQ1B/WgXCoVCobAhmP3Rbq09vbU2tNbubK1dQ/cOT/euv2Al3FC01h7fWru+tbZF1x8xtdnTD6hohX3ANC8+74DyHqa/lfxbaze01m6mazdPz/+YSO83pvuvF/nw3w0dZdxqrf1xa+3L6PqntNZe21p7e2vtntbaW1prP9dae6J7xtac9+loh+vnynKQmOr2on1OU/WL/7t5n/K6bErvOfuU3vtM6+L/Edy7tbX2vfuRz36gtfZRrbXfmcbp21pr39Jau7Tjvae01n62tfZ307tvbK29oLV2bD/KdXiNZ68C8JUA9qXz/gng8QCeB+DrAGy767cA+HAAf3MAZSrsH56Ocf784AGW4XmttRuGYbi/49kTAD6ltXZ8GIYTdrG19p4AHjfdj/BSAC+ma7d15PfZAB4K4NwPVmvtCwF8F8Y2+1YApwC8N4BPAPDRAH61I91Nw/MB/F5r7TuHYXjzPqX54fT9ZwH8CYDr3bX79imv+6b8/m6f0nsfjOviq4M0nwTgnfuUz3mhtfYojOPxFQCei7Hc3wrgwQA+d+b1rwTwxunzFgAfirHOj2utPX44z+Ao6/xovwrAF7TWvmMYhn88n0z/KWMYhvsA/M5Bl6Ow8XgVgCcAeAaA/97x/K8B+FgAn4bxh9jwOQBuBvBWAIeC9/5hGIa9jNcvA/CyYRhO07WfG4bh/3HXfh3AS1gitVS01i6d5nAXhmH4o9baHwH4IgDP2o8ycH+01u4D8I7eflqnDtMPzEVZr4Zh+MOLkU8nvhbAXwN46jAMZwG8prU2AHhxa+1bhmH48+TdJwzD4De2N7bWTmDc/H44gN86n4KtM1G+bvr8b3MPttb+TWvt1a21k621U62117TW/g0989LW2t+31v51a+11rbXTrbW/aq09s6cw67zfWvvnrbUfba3d1lq7bxLbfWrw3FMnUca9rbU/ba19cmvtxtbaje6Zy1pr39Fa+7Opfre21n6htfZ+7pnrMe6sAOABE1lN93aJx1trX95au7+1dl1Qnr9orb3CfT/aWvvm1tpN0zs3tdae27PgtdaOtda+qbX2N1Mb3Npa++nW2oPdM+v026Naa781iX/e1Fr7hOn+l7RRHHt3a+0VrbUH0ftDa+3rp3L//fT+a1trj6TnWmvti6e072+t3dJae2Fr7cogva9rrX3h1B4nWmv/q7X2AUEb/N9tFHedbqO65382EtNNZb+hjSKuv5za4Q2ttY90z9yIkZ1+RNsRR9443XtIa+2H2yhOu28q9y+21t59ro/WxO8D+DkAz22tHe14/h4AP4XxR9rjcwD8CIB9C43YWvswAB8EgMXx1wK4NXpnGIbt6LpL81GttX9srf1Ma+2y5LkPaa39fGvtndPY+s3W2r+lZx7dWvspN/7e1Fr7htba5fTcja2117fWPqm19kdt/HF81nSve9wBeDmAz+L0LwZaay9vrf11a+2x09i/B8ALpntPm8p821T+P2itfSa9vyIen9aRM621922tvXKaIze11r6qtdaSsjwRwK9MX1/n5s5jpvu7xOOttWdO9x/dxrXK1tsvne5/UmvtT6b8f7e19iFBnk9urf3eNOffObXHw2fa7CiAjwHw8ukH2/DjAM4C+OTsffrBNvz+9Hku79baw9v4u3TLtFa8bRq71wTv78og/cMoBhwwige+GaO45D2ne4ene9e75z8Y4wLxBwA+HePO/venax/innspgLsB/CVGtvCxGCf5AOCjOsrV9T6Afwbg7QD+DKPI7uMwiue2AXyye+5jp2s/h1FM87kA/hbA2wDc6J67CsD3A3gKxoX7UzGymHcCeMj0zHtMzwwAPgLAYwA8Zrr3iOn606fvD8c4EJ5F9fvQ6blPc239OgC3Y9y1/zuMYpt7AXzbTFtdgnF3dwrA/zfV9dMBvATA++2x3/4CwOcBeOJUrnsBfBuAX8Ao7vy86bmfpLIMGFndbwL4FABP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\n", "text/plain": [ "<Figure size 432x325.44 with 6 Axes>" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "image/png": "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\n", "text/plain": [ "<Figure size 432x325.44 with 6 Axes>" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "image/png": "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\n", "text/plain": [ "<Figure size 432x325.44 with 6 Axes>" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "image/png": "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\n", "text/plain": [ "<Figure size 432x325.44 with 6 Axes>" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "image/png": "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\n", "text/plain": [ "<Figure size 432x325.44 with 6 Axes>" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "image/png": "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\n", "text/plain": [ "<Figure size 432x325.44 with 6 Axes>" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "image/png": "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\n", "text/plain": [ "<Figure size 144x162.72 with 1 Axes>" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "image/png": "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\n", "text/plain": [ "<Figure size 432x325.44 with 6 Axes>" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "\"\"\"\n", "============================\n", "Faces dataset decompositions\n", "============================\n", "\n", "This example applies to :ref:`olivetti_faces` different unsupervised\n", "matrix decomposition (dimension reduction) methods from the module\n", ":py:mod:`sklearn.decomposition` (see the documentation chapter\n", ":ref:`decompositions`) .\n", "\n", "\"\"\"\n", "print(__doc__)\n", "\n", "# Authors: Vlad Niculae, Alexandre Gramfort\n", "# License: BSD 3 claus\n", "\n", "n_row, n_col = 2, 3\n", "n_components = n_row * n_col\n", "image_shape = (64, 64)\n", "rng = RandomState(0)\n", "\n", "# #############################################################################\n", "# Load faces data\n", "dataset = fetch_olivetti_faces(shuffle=True, random_state=rng)\n", "faces = dataset.data\n", "\n", "n_samples, n_features = faces.shape\n", "\n", "# global centering\n", "faces_centered = faces - faces.mean(axis=0)\n", "\n", "# local centering\n", "faces_centered -= faces_centered.mean(axis=1).reshape(n_samples, -1)\n", "\n", "print(\"Dataset consists of %d faces\" % n_samples)\n", "\n", "\n", "def plot_gallery(title, images, n_col=n_col, n_row=n_row):\n", " plt.figure(figsize=(2. * n_col, 2.26 * n_row))\n", " plt.suptitle(title, size=16)\n", " for i, comp in enumerate(images):\n", " plt.subplot(n_row, n_col, i + 1)\n", " vmax = max(comp.max(), -comp.min())\n", " plt.imshow(comp.reshape(image_shape), cmap=plt.cm.gray,\n", " interpolation='nearest',\n", " vmin=-vmax, vmax=vmax)\n", " plt.xticks(())\n", " plt.yticks(())\n", " plt.subplots_adjust(0.01, 0.05, 0.99, 0.93, 0.04, 0.)\n", "\n", "\n", "# #############################################################################\n", "# List of the different estimators, whether to center and transpose the\n", "# problem, and whether the transformer uses the clustering API.\n", "estimators = [\n", " ('Eigenfaces - PCA using randomized SVD',\n", " decomposition.PCA(n_components=n_components, svd_solver='randomized',\n", " whiten=True),\n", " True),\n", "\n", " ('Non-negative components - NMF (Sklearn)',\n", " decomposition.NMF(n_components=n_components, init='nndsvda', tol=5e-3),\n", " False),\n", "\n", " ('Non-negative components - NMF (Gensim)',\n", " NmfWrapper(\n", " bow_matrix=faces.T,\n", " chunksize=3,\n", " eval_every=400,\n", " passes=2,\n", " id2word={idx: idx for idx in range(faces.shape[1])},\n", " num_topics=n_components,\n", " minimum_probability=0,\n", " random_state=42,\n", " ),\n", " False),\n", "\n", " ('Independent components - FastICA',\n", " decomposition.FastICA(n_components=n_components, whiten=True),\n", " True),\n", "\n", " ('Sparse comp. - MiniBatchSparsePCA',\n", " decomposition.MiniBatchSparsePCA(n_components=n_components, alpha=0.8,\n", " n_iter=100, batch_size=3,\n", " random_state=rng),\n", " True),\n", "\n", " ('MiniBatchDictionaryLearning',\n", " decomposition.MiniBatchDictionaryLearning(n_components=15, alpha=0.1,\n", " n_iter=50, batch_size=3,\n", " random_state=rng),\n", " True),\n", "\n", " ('Cluster centers - MiniBatchKMeans',\n", " MiniBatchKMeans(n_clusters=n_components, tol=1e-3, batch_size=20,\n", " max_iter=50, random_state=rng),\n", " True),\n", "\n", " ('Factor Analysis components - FA',\n", " decomposition.FactorAnalysis(n_components=n_components, max_iter=2),\n", " True),\n", "]\n", "\n", "# #############################################################################\n", "# Plot a sample of the input data\n", "\n", "plot_gallery(\"First centered Olivetti faces\", faces_centered[:n_components])\n", "\n", "# #############################################################################\n", "# Do the estimation and plot it\n", "\n", "for name, estimator, center in estimators:\n", " print(\"Extracting the top %d %s...\" % (n_components, name))\n", " t0 = time.time()\n", " data = faces\n", " if center:\n", " data = faces_centered\n", " estimator.fit(data)\n", " train_time = (time.time() - t0)\n", " print(\"done in %0.3fs\" % train_time)\n", " if hasattr(estimator, 'cluster_centers_'):\n", " components_ = estimator.cluster_centers_\n", " else:\n", " components_ = estimator.components_\n", "\n", " # Plot an image representing the pixelwise variance provided by the\n", " # estimator e.g its noise_variance_ attribute. The Eigenfaces estimator,\n", " # via the PCA decomposition, also provides a scalar noise_variance_\n", " # (the mean of pixelwise variance) that cannot be displayed as an image\n", " # so we skip it.\n", " if (hasattr(estimator, 'noise_variance_') and\n", " estimator.noise_variance_.ndim > 0): # Skip the Eigenfaces case\n", " plot_gallery(\"Pixelwise variance\",\n", " estimator.noise_variance_.reshape(1, -1), n_col=1,\n", " n_row=1)\n", " plot_gallery('%s - Train time %.1fs' % (name, train_time),\n", " components_[:n_components])\n", "\n", "plt.show()" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "As you can see, Gensim's NMF implementation is slower than Sklearn's on **dense** vectors, while achieving comparable quality." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Conclusion\n", "\n", "Gensim NMF is an extremely fast and memory-optimized model. Use it to obtain interpretable topics, as an alternative to SVD / LDA.\n", "\n", "---\n", "\n", "The NMF implementation in Gensim was created by [Timofey Yefimov](https://github.com/anotherbugmaster/) as a part of his [RARE Technologies Student Incubator](https://rare-technologies.com/incubator/) graduation project." ] } ], "metadata": { "jupytext": { "text_representation": { "extension": ".py", "format_name": "percent", "format_version": "1.1", "jupytext_version": "0.8.3" } }, "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.6.8" } }, "nbformat": 4, "nbformat_minor": 2 }
537,415
Python
.py
2,710
193.193727
57,956
0.88425
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,954
distance_metrics.ipynb
piskvorky_gensim/docs/notebooks/distance_metrics.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "This tutorial has moved.\n", "\n", "Please see https://radimrehurek.com/gensim/auto_examples/." ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.6.8" } }, "nbformat": 4, "nbformat_minor": 2 }
626
Python
.py
34
14.970588
64
0.559122
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,955
topic_methods.ipynb
piskvorky_gensim/docs/notebooks/topic_methods.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# New Term Topics Methods and Document Coloring" ] }, { "cell_type": "code", "execution_count": 20, "metadata": {}, "outputs": [], "source": [ "from gensim.corpora import Dictionary\n", "from gensim.models import ldamodel\n", "import numpy\n", "%matplotlib inline\n", "\n", "import logging\n", "logging.basicConfig(level=logging.INFO)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "We're setting up our corpus now. We want to show off the new `get_term_topics` and `get_document_topics` functionalities, and a good way to do so is to play around with words which might have different meanings in different context.\n", "\n", "The word `bank` is a good candidate here, where it can mean either the financial institution or a river bank.\n", "In the toy corpus presented, there are 11 documents, 5 `river` related and 6 `finance` related. " ] }, { "cell_type": "code", "execution_count": 21, "metadata": {}, "outputs": [], "source": [ "import gensim.downloader\n", "corpus = gensim.downloader.load(\"20-newsgroups\")" ] }, { "cell_type": "code", "execution_count": 22, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "WARNING:smart_open.smart_open_lib:this function is deprecated, use smart_open.open instead\n" ] } ], "source": [ "import collections\n", "from gensim.parsing.preprocessing import preprocess_string\n", "\n", "texts = [\n", " preprocess_string(text['data'])\n", " for text in corpus\n", " if text['topic'] in ('soc.religion.christian', 'talk.politics.guns')\n", "]" ] }, { "cell_type": "code", "execution_count": 23, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "INFO:gensim.corpora.dictionary:adding document #0 to Dictionary(0 unique tokens: [])\n", "INFO:gensim.corpora.dictionary:built Dictionary(17455 unique tokens: ['accept', 'action', 'adulter', 'adulteri', 'adventur']...) from 1907 documents (total 318505 corpus positions)\n", "INFO:gensim.corpora.dictionary:discarding 14137 tokens: [('accept', 259), ('adventur', 6), ('annia', 3), ('believ', 649), ('bibl', 280), ('calvinist', 5), ('cannanit', 4), ('case', 317), ('chastis', 4), ('christian', 527)]...\n", "INFO:gensim.corpora.dictionary:keeping 3318 tokens which were in no less than 10 and no more than 190 (=10.0%) documents\n", "INFO:gensim.corpora.dictionary:resulting dictionary: Dictionary(3318 unique tokens: ['action', 'adulter', 'adulteri', 'affect', 'andi']...)\n" ] } ], "source": [ "dictionary = Dictionary(texts)\n", "dictionary.filter_extremes(no_above=0.1, no_below=10)\n", "corpus = [dictionary.doc2bow(text) for text in texts]" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "We set up the LDA model in the corpus. We set the number of topics to be 2, and expect to see one which is to do with river banks, and one to do with financial banks. " ] }, { "cell_type": "code", "execution_count": 27, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "INFO:gensim.models.ldamodel:using asymmetric alpha [0.63060194, 0.36939806]\n", "INFO:gensim.models.ldamodel:using symmetric eta at 0.5\n", "INFO:gensim.models.ldamodel:using serial LDA version on this node\n", "INFO:gensim.models.ldamodel:running online (single-pass) LDA training, 2 topics, 1 passes over the supplied corpus of 1907 documents, updating model once every 1907 documents, evaluating perplexity every 1907 documents, iterating 50x with a convergence threshold of 0.001000\n", "WARNING:gensim.models.ldamodel:too few updates, training might not converge; consider increasing the number of passes or iterations to improve accuracy\n", "INFO:gensim.models.ldamodel:-8.511 per-word bound, 364.7 perplexity estimate based on a held-out corpus of 1907 documents with 180557 words\n", "INFO:gensim.models.ldamodel:PROGRESS: pass 0, at document #1907/1907\n", "INFO:gensim.models.ldamodel:topic #0 (0.631): 0.004*\"homosexu\" + 0.004*\"hell\" + 0.003*\"paul\" + 0.002*\"firearm\" + 0.002*\"batf\" + 0.002*\"cathol\" + 0.002*\"natur\" + 0.002*\"crime\" + 0.002*\"lord\" + 0.002*\"shall\"\n", "INFO:gensim.models.ldamodel:topic #1 (0.369): 0.004*\"firearm\" + 0.004*\"homosexu\" + 0.003*\"file\" + 0.003*\"author\" + 0.003*\"paul\" + 0.003*\"scriptur\" + 0.002*\"stratu\" + 0.002*\"amend\" + 0.002*\"koresh\" + 0.002*\"crimin\"\n", "INFO:gensim.models.ldamodel:topic diff=0.737151, rho=1.000000\n" ] } ], "source": [ "numpy.random.seed(1) # setting random seed to get the same results each time.\n", "model = ldamodel.LdaModel(corpus, id2word=dictionary, num_topics=2, alpha='asymmetric', minimum_probability=1e-8)" ] }, { "cell_type": "code", "execution_count": 25, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "[(0,\n", " '0.004*\"homosexu\" + 0.004*\"hell\" + 0.003*\"paul\" + 0.002*\"firearm\" + 0.002*\"batf\" + 0.002*\"cathol\" + 0.002*\"natur\" + 0.002*\"crime\" + 0.002*\"lord\" + 0.002*\"shall\"'),\n", " (1,\n", " '0.004*\"firearm\" + 0.004*\"homosexu\" + 0.003*\"file\" + 0.003*\"author\" + 0.003*\"paul\" + 0.003*\"scriptur\" + 0.002*\"stratu\" + 0.002*\"amend\" + 0.002*\"koresh\" + 0.002*\"crimin\"')]" ] }, "execution_count": 25, "metadata": {}, "output_type": "execute_result" } ], "source": [ "model.show_topics()" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "And like we expected, the LDA model has given us near perfect results. Bank is the most influential word in both the topics, as we can see. The other words help define what kind of bank we are talking about. Let's now see where our new methods fit in." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### get_term_topics" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The function `get_term_topics` returns the odds of that particular word belonging to a particular topic. \n", "A few examples:" ] }, { "cell_type": "code", "execution_count": 28, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "[(0, 0.0035053839), (1, 0.0011557308)]" ] }, "execution_count": 28, "metadata": {}, "output_type": "execute_result" } ], "source": [ "model.get_term_topics('hell')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Makes sense, the value for it belonging to `topic_0` is a lot more." ] }, { "cell_type": "code", "execution_count": 30, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "[(0, 0.002482554), (1, 0.0036967357)]" ] }, "execution_count": 30, "metadata": {}, "output_type": "execute_result" } ], "source": [ "model.get_term_topics('firearm')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "This also works out well, the word finance is more likely to be in topic_1 to do with financial banks." ] }, { "cell_type": "code", "execution_count": 35, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "[(0, 0.000701838), (1, 0.0006635987)]" ] }, "execution_count": 35, "metadata": {}, "output_type": "execute_result" } ], "source": [ "model.get_term_topics('car')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "And this is particularly interesting. Since the word bank is likely to be in both the topics, the values returned are also very similar." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### get_document_topics and Document Word-Topic Coloring" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "`get_document_topics` is an already existing gensim functionality which uses the `inference` function to get the sufficient statistics and figure out the topic distribution of the document.\n", "\n", "The addition to this is the ability for us to now know the topic distribution for each word in the document. \n", "Let us test this with two different documents which have the word bank in it, one in the finance context and one in the river context.\n", "\n", "The `get_document_topics` method returns (along with the standard document topic proprtion) the word_type followed by a list sorted with the most likely topic ids, when `per_word_topics` is set as true." ] }, { "cell_type": "code", "execution_count": 8, "metadata": {}, "outputs": [], "source": [ "bow_water = ['bank','water','bank']\n", "bow_finance = ['bank','finance','bank']" ] }, { "cell_type": "code", "execution_count": 9, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "[(0, [0, 1]), (3, [0, 1])]" ] }, "execution_count": 9, "metadata": {}, "output_type": "execute_result" } ], "source": [ "bow = model.id2word.doc2bow(bow_water) # convert to bag of words format first\n", "doc_topics, word_topics, phi_values = model.get_document_topics(bow, per_word_topics=True)\n", "\n", "word_topics" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Now what does that output mean? It means that like `word_type 1`, our `word_type` `3`, which is the word `bank`, is more likely to be in `topic_0` than `topic_1`." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "You must have noticed that while we unpacked into `doc_topics` and `word_topics`, there is another variable - `phi_values`. Like the name suggests, phi_values contains the phi values for each topic for that particular word, scaled by feature length. Phi is essentially the probability of that word in that document belonging to a particular topic. The next few lines should illustrate this. " ] }, { "cell_type": "code", "execution_count": 10, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "[(0, [(0, 1.8300905), (1, 0.16990812)]),\n", " (3, [(0, 0.8581231), (1, 0.14187533)])]" ] }, "execution_count": 10, "metadata": {}, "output_type": "execute_result" } ], "source": [ "phi_values" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "This means that `word_type` 0 has the following phi_values for each of the topics. \n", "What is intresting to note is `word_type` 3 - because it has 2 occurences (i.e, the word `bank` appears twice in the bow), we can see that the scaling by feature length is very evident. The sum of the phi_values is 2, and not 1." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Now that we know exactly what `get_document_topics` does, let us now do the same with our second document, `bow_finance`." ] }, { "cell_type": "code", "execution_count": 11, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "[(0, [0, 1]), (10, [0, 1])]" ] }, "execution_count": 11, "metadata": {}, "output_type": "execute_result" } ], "source": [ "bow = model.id2word.doc2bow(bow_finance) # convert to bag of words format first\n", "doc_topics, word_topics, phi_values = model.get_document_topics(bow, per_word_topics=True)\n", "\n", "word_topics" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "And lo and behold, because the word bank is now used in the financial context, it immedietly swaps to being more likely associated with `topic_1`.\n", "\n", "We've seen quite clearly that based on the context, the most likely topic associated with a word can change. \n", "This differs from our previous method, `get_term_topics`, where it is a 'static' topic distribution. \n", "\n", "It must also be noted that because the gensim implementation of LDA uses Variational Bayes sampling, a `word_type` in a document is only given one topic distribution. For example, the sentence 'the bank by the river bank' is likely to be assigned to `topic_0`, and each of the bank word instances have the same distribution." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "#### get_document_topics for entire corpus\n", "\n", "You can get `doc_topics`, `word_topics` and `phi_values` for all the documents in the corpus in the following manner :" ] }, { "cell_type": "code", "execution_count": 12, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "New Document \n", "\n", "Document topics: [(0, 0.73633265), (1, 0.26366737)]\n", "Word topics: [(0, [0, 1]), (1, [0, 1]), (2, [0, 1]), (3, [0, 1])]\n", "Phi values: [(0, [(0, 0.8527051), (1, 0.14729421)]), (1, [(0, 0.795473), (1, 0.20452519)]), (2, [(0, 0.7709577), (1, 0.2290356)]), (3, [(0, 0.76475203), (1, 0.23524645)])]\n", " \n", "-------------- \n", "\n", "New Document \n", "\n", "Document topics: [(0, 0.7539386), (1, 0.2460614)]\n", "Word topics: [(1, [0, 1]), (3, [0, 1]), (4, [0, 1]), (5, [0, 1]), (6, [0, 1])]\n", "Phi values: [(1, [(0, 0.80670816), (1, 0.19329017)]), (3, [(0, 0.77720207), (1, 0.22279654)]), (4, [(0, 0.90712374), (1, 0.092870995)]), (5, [(0, 0.7294175), (1, 0.27057865)]), (6, [(0, 0.805549), (1, 0.19444753)])]\n", " \n", "-------------- \n", "\n", "New Document \n", "\n", "Document topics: [(0, 0.17039819), (1, 0.82960176)]\n", "Word topics: [(0, [1, 0]), (3, [1, 0]), (5, [1, 0]), (7, [1, 0])]\n", "Phi values: [(0, [(0, 0.15414648), (1, 0.8458525)]), (3, [(0, 0.09283445), (1, 0.90716416)]), (5, [(0, 0.073286586), (1, 0.92671037)]), (7, [(0, 0.031027067), (1, 0.96896887)])]\n", " \n", "-------------- \n", "\n", "New Document \n", "\n", "Document topics: [(0, 0.8758601), (1, 0.124139935)]\n", "Word topics: [(0, [0, 1]), (1, [0, 1]), (3, [0, 1]), (8, [0, 1])]\n", "Phi values: [(0, [(0, 1.9142816), (1, 0.085716955)]), (1, [(0, 0.9375137), (1, 0.06248462)]), (3, [(0, 0.92614746), (1, 0.073851064)]), (8, [(0, 0.97765744), (1, 0.022337979)])]\n", " \n", "-------------- \n", "\n", "New Document \n", "\n", "Document topics: [(0, 0.1712567), (1, 0.8287433)]\n", "Word topics: [(1, [1, 0]), (3, [1, 0]), (6, [1, 0]), (9, [1, 0])]\n", "Phi values: [(1, [(0, 0.11006477), (1, 0.8899334)]), (3, [(0, 0.09368856), (1, 0.9063102)]), (6, [(0, 0.109341085), (1, 0.8906553)]), (9, [(0, 0.04248068), (1, 0.9575148)])]\n", " \n", "-------------- \n", "\n", "New Document \n", "\n", "Document topics: [(0, 0.16402602), (1, 0.8359739)]\n", "Word topics: [(0, [1, 0]), (10, [1, 0]), (11, [1, 0]), (12, [1, 0])]\n", "Phi values: [(0, [(0, 0.14435525), (1, 0.85564375)]), (10, [(0, 0.07960652), (1, 0.92039144)]), (11, [(0, 0.07176139), (1, 0.92823654)]), (12, [(0, 0.023786588), (1, 0.97620964)])]\n", " \n", "-------------- \n", "\n", "New Document \n", "\n", "Document topics: [(0, 0.80524194), (1, 0.19475807)]\n", "Word topics: [(0, [0, 1]), (11, [0, 1]), (13, [0, 1])]\n", "Phi values: [(0, [(0, 0.9217699), (1, 0.07822937)]), (11, [(0, 0.84373295), (1, 0.1562643)]), (13, [(0, 0.95610404), (1, 0.043893255)])]\n", " \n", "-------------- \n", "\n", "New Document \n", "\n", "Document topics: [(0, 0.65283513), (1, 0.3471648)]\n", "Word topics: [(0, [0, 1]), (10, [0, 1])]\n", "Phi values: [(0, [(0, 0.79454756), (1, 0.20545153)]), (10, [(0, 0.6647264), (1, 0.33527094)])]\n", " \n", "-------------- \n", "\n", "New Document \n", "\n", "Document topics: [(0, 0.7917557), (1, 0.20824426)]\n", "Word topics: [(0, [0, 1]), (10, [0, 1]), (11, [0, 1]), (14, [0, 1])]\n", "Phi values: [(0, [(0, 0.9003985), (1, 0.099600814)]), (10, [(0, 0.8225217), (1, 0.17747577)]), (11, [(0, 0.80554056), (1, 0.19445676)]), (14, [(0, 0.9310509), (1, 0.0689471)])]\n", " \n", "-------------- \n", "\n", "New Document \n", "\n", "Document topics: [(0, 0.80841804), (1, 0.19158193)]\n", "Word topics: [(13, [0, 1]), (14, [0, 1])]\n", "Phi values: [(13, [(0, 0.9664923), (1, 0.033504896)]), (14, [(0, 0.95886075), (1, 0.041137177)])]\n", " \n", "-------------- \n", "\n", "New Document \n", "\n", "Document topics: [(0, 0.84000635), (1, 0.15999362)]\n", "Word topics: [(0, [0, 1]), (14, [0, 1]), (15, [0, 1])]\n", "Phi values: [(0, [(0, 0.94806826), (1, 0.051930968)]), (14, [(0, 0.9646261), (1, 0.035372045)]), (15, [(0, 0.9475713), (1, 0.052422963)])]\n", " \n", "-------------- \n", "\n" ] } ], "source": [ "all_topics = model.get_document_topics(corpus, per_word_topics=True)\n", "\n", "for doc_topics, word_topics, phi_values in all_topics:\n", " print('New Document \\n')\n", " print('Document topics:', doc_topics)\n", " print('Word topics:', word_topics)\n", " print('Phi values:', phi_values)\n", " print(\" \")\n", " print('-------------- \\n')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "In case you want to store `doc_topics`, `word_topics` and `phi_values` for all the documents in the corpus in a variable and later access details of a particular document using its index, it can be done in the following manner:" ] }, { "cell_type": "code", "execution_count": 13, "metadata": {}, "outputs": [], "source": [ "topics = model.get_document_topics(corpus, per_word_topics=True)\n", "all_topics = [(doc_topics, word_topics, word_phis) for doc_topics, word_topics, word_phis in topics]" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Now, I can access details of a particular document, say Document #3, as follows: " ] }, { "cell_type": "code", "execution_count": 14, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Document topic: [(0, 0.84000635), (1, 0.15999362)] \n", "\n", "Word topic: [(0, [1, 0]), (3, [1, 0]), (5, [1, 0]), (7, [1, 0])] \n", "\n", "Phi value: [(0, [(0, 0.1540126), (1, 0.8459863)]), (3, [(0, 0.09274801), (1, 0.90725076)]), (5, [(0, 0.07321687), (1, 0.9267802)]), (7, [(0, 0.030996205), (1, 0.96899974)])]\n" ] } ], "source": [ "doc_topic, word_topics, phi_values = all_topics[2]\n", "print('Document topic:', doc_topics, \"\\n\")\n", "print('Word topic:', word_topics, \"\\n\")\n", "print('Phi value:', phi_values)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "We can print details for all the documents (as shown above), in the following manner:" ] }, { "cell_type": "code", "execution_count": 15, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "New Document \n", "\n", "Document topic: [(0, 0.7339641), (1, 0.26603588)]\n", "Word topic: [(0, [0, 1]), (1, [0, 1]), (2, [0, 1]), (3, [0, 1])]\n", "Phi value: [(0, [(0, 0.850583), (1, 0.14941624)]), (1, [(0, 0.7927268), (1, 0.20727131)]), (2, [(0, 0.7679785), (1, 0.23201483)]), (3, [(0, 0.76171696), (1, 0.23828152)])]\n", " \n", "-------------- \n", "\n", "New Document \n", "\n", "Document topic: [(0, 0.7540561), (1, 0.24594393)]\n", "Word topic: [(1, [0, 1]), (3, [0, 1]), (4, [0, 1]), (5, [0, 1]), (6, [0, 1])]\n", "Phi value: [(1, [(0, 0.8068402), (1, 0.19315805)]), (3, [(0, 0.77734876), (1, 0.2226498)]), (4, [(0, 0.9071951), (1, 0.09279961)]), (5, [(0, 0.7295848), (1, 0.27041143)]), (6, [(0, 0.80568177), (1, 0.1943148)])]\n", " \n", "-------------- \n", "\n", "New Document \n", "\n", "Document topic: [(0, 0.17031126), (1, 0.8296888)]\n", "Word topic: [(0, [1, 0]), (3, [1, 0]), (5, [1, 0]), (7, [1, 0])]\n", "Phi value: [(0, [(0, 0.1540126), (1, 0.8459863)]), (3, [(0, 0.09274801), (1, 0.90725076)]), (5, [(0, 0.07321687), (1, 0.9267802)]), (7, [(0, 0.030996205), (1, 0.96899974)])]\n", " \n", "-------------- \n", "\n", "New Document \n", "\n", "Document topic: [(0, 0.87583715), (1, 0.12416287)]\n", "Word topic: [(0, [0, 1]), (1, [0, 1]), (3, [0, 1]), (8, [0, 1])]\n", "Phi value: [(0, [(0, 1.9142504), (1, 0.08574835)]), (1, [(0, 0.9374913), (1, 0.062507026)]), (3, [(0, 0.9261214), (1, 0.07387724)]), (8, [(0, 0.97764915), (1, 0.022346335)])]\n", " \n", "-------------- \n", "\n", "New Document \n", "\n", "Document topic: [(0, 0.17121859), (1, 0.8287814)]\n", "Word topic: [(1, [1, 0]), (3, [1, 0]), (6, [1, 0]), (9, [1, 0])]\n", "Phi value: [(1, [(0, 0.11002095), (1, 0.8899771)]), (3, [(0, 0.093650565), (1, 0.906348)]), (6, [(0, 0.109297544), (1, 0.8906989)]), (9, [(0, 0.04246249), (1, 0.95753306)])]\n", " \n", "-------------- \n", "\n", "New Document \n", "\n", "Document topic: [(0, 0.16401243), (1, 0.83598757)]\n", "Word topic: [(0, [1, 0]), (10, [1, 0]), (11, [1, 0]), (12, [1, 0])]\n", "Phi value: [(0, [(0, 0.14433442), (1, 0.85566455)]), (10, [(0, 0.07959415), (1, 0.92040366)]), (11, [(0, 0.07175015), (1, 0.9282477)]), (12, [(0, 0.023782672), (1, 0.9762135)])]\n", " \n", "-------------- \n", "\n", "New Document \n", "\n", "Document topic: [(0, 0.8052399), (1, 0.19476008)]\n", "Word topic: [(0, [0, 1]), (11, [0, 1]), (13, [0, 1])]\n", "Phi value: [(0, [(0, 0.9217683), (1, 0.07823093)]), (11, [(0, 0.84373015), (1, 0.15626718)]), (13, [(0, 0.95610315), (1, 0.043894168)])]\n", " \n", "-------------- \n", "\n", "New Document \n", "\n", "Document topic: [(0, 0.6528616), (1, 0.34713835)]\n", "Word topic: [(0, [0, 1]), (10, [0, 1])]\n", "Phi value: [(0, [(0, 0.7945762), (1, 0.20542288)]), (10, [(0, 0.6647654), (1, 0.3352318)])]\n", " \n", "-------------- \n", "\n", "New Document \n", "\n", "Document topic: [(0, 0.79167444), (1, 0.20832555)]\n", "Word topic: [(0, [0, 1]), (10, [0, 1]), (11, [0, 1]), (14, [0, 1])]\n", "Phi value: [(0, [(0, 0.9003313), (1, 0.09966788)]), (10, [(0, 0.82241255), (1, 0.17758493)]), (11, [(0, 0.80542344), (1, 0.19457388)]), (14, [(0, 0.931003), (1, 0.06899511)])]\n", " \n", "-------------- \n", "\n", "New Document \n", "\n", "Document topic: [(0, 0.8083355), (1, 0.19166456)]\n", "Word topic: [(13, [0, 1]), (14, [0, 1])]\n", "Phi value: [(13, [(0, 0.9664568), (1, 0.033540305)]), (14, [(0, 0.9588177), (1, 0.04118031)])]\n", " \n", "-------------- \n", "\n", "New Document \n", "\n", "Document topic: [(0, 0.8399969), (1, 0.1600031)]\n", "Word topic: [(0, [0, 1]), (14, [0, 1]), (15, [0, 1])]\n", "Phi value: [(0, [(0, 0.9480616), (1, 0.051937718)]), (14, [(0, 0.9646214), (1, 0.03537672)]), (15, [(0, 0.9475646), (1, 0.052429777)])]\n", " \n", "-------------- \n", "\n" ] } ], "source": [ "for doc in all_topics:\n", " print('New Document \\n')\n", " print('Document topic:', doc[0])\n", " print('Word topic:', doc[1])\n", " print('Phi value:', doc[2])\n", " print(\" \")\n", " print('-------------- \\n')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Coloring topic-terms" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "These methods can come in handy when we want to color the words in a corpus or a document. If we wish to color the words in a corpus (i.e, color all the words in the dictionary of the corpus), then `get_term_topics` would be a better choice. If not, `get_document_topics` would do the trick." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "We'll now attempt to color these words and plot it using `matplotlib`. \n", "This is just one way to go about plotting words - there are more and better ways.\n", "\n", "[WordCloud](https://github.com/amueller/word_cloud) is such a python package which also does this.\n", "\n", "For our simple illustration, let's keep `topic_1` as red, and `topic_0` as blue." ] }, { "cell_type": "code", "execution_count": 16, "metadata": {}, "outputs": [], "source": [ "# this is a sample method to color words. Like mentioned before, there are many ways to do this.\n", "\n", "def color_words(model, doc):\n", " import matplotlib.pyplot as plt\n", " import matplotlib.patches as patches\n", " \n", " # make into bag of words\n", " doc = model.id2word.doc2bow(doc)\n", " # get word_topics\n", " doc_topics, word_topics, phi_values = model.get_document_topics(doc, per_word_topics=True)\n", "\n", " # color-topic matching\n", " topic_colors = { 1:'red', 0:'blue'}\n", " \n", " # set up fig to plot\n", " fig = plt.figure()\n", " ax = fig.add_axes([0,0,1,1])\n", "\n", " # a sort of hack to make sure the words are well spaced out.\n", " word_pos = 1/len(doc)\n", " \n", " # use matplotlib to plot words\n", " for word, topics in word_topics:\n", " ax.text(word_pos, 0.8, model.id2word[word],\n", " horizontalalignment='center',\n", " verticalalignment='center',\n", " fontsize=20, color=topic_colors[topics[0]], # choose just the most likely topic\n", " transform=ax.transAxes)\n", " word_pos += 0.2 # to move the word for the next iter\n", "\n", " ax.set_axis_off()\n", " plt.show()\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Let us revisit our old examples to show some examples of document coloring" ] }, { "cell_type": "code", "execution_count": 17, "metadata": {}, "outputs": [ { "data": { "image/png": "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0ER0AaCJ6AJAE9EFgCaiCwBNRBcAmoguADQRXQBoIroA0ER0AaCJ6AJAE9EFgCaiCwBNRBcAmoguADQRXQBoIroA0ER0AaCJ6AJAE9EFgCaiCwBNRBcAmoguADQRXQBoIroA0ER0AaCJ6AJAE9EFgCaiCwBNRBcAmoguADQRXQBoIroA0ER0AaCJ6AJAE9EFgCaiCwBNRBcAmoguADQRXQBoIroA0ER0AaCJ6AJAE9EFgCaiCwBNRBcAmoguADQRXQBoIroA0ER0AaCJ6AJAE9EFgCaiCwBNRBcAmoguADQRXQBoIroA0ER0AaCJ6AJAE9EFgCaiCwBNRBcAmoguADQRXQBoIroA0ER0AaCJ6AJAE9EFgCaiCwBNRBcAmoguADQRXQBoIroA0ER0AaCJ6AJAE9EFgCaiCwBNRBcAmoguADQRXQBoIroA0ER0AaCJ6AJAE9EFgCaiCwBNRBcAmoguADQRXQBoIroA0ER0AaCJ6AJAE9EFgCaiCwBNRBcAmoguADQRXQBoIroA0ER0AaCJ6AJAE9EFgCaiCwBNRBcAmoguADQRXQBoIroA0ER0AaCJ6AJAE9EFgCaiCwBNRBcAmoguADQRXQBoIroA0ER0AaCJ6AJAE9EFgCaiCwBNRBcAmoguADQRXQBoIroA0ER0AaCJ6AJAE9EFgCaiCwBNRBcAmvwf+urAJSil7roAAAAASUVORK5CYII=\n", "text/plain": [ "<Figure size 432x288 with 1 Axes>" ] }, "metadata": { "needs_background": "light" }, "output_type": "display_data" } ], "source": [ "# our river bank document\n", "\n", "bow_water = ['bank','water','bank']\n", "color_words(model, bow_water)" ] }, { "cell_type": "code", "execution_count": 18, "metadata": {}, "outputs": [ { "data": { "image/png": "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\n", "text/plain": [ "<Figure size 432x288 with 1 Axes>" ] }, "metadata": { "needs_background": "light" }, "output_type": "display_data" } ], "source": [ "bow_finance = ['bank','finance','bank']\n", "color_words(model, bow_finance)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "What is fun to note here is that while bank was colored blue in our first example, it is now red because of the financial context - something which the numbers proved to us before." ] }, { "cell_type": "code", "execution_count": 19, "metadata": {}, "outputs": [ { "data": { "image/png": "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\n", "text/plain": [ "<Figure size 432x288 with 1 Axes>" ] }, "metadata": { "needs_background": "light" }, "output_type": "display_data" } ], "source": [ "# sample doc with a somewhat even distribution of words among the likely topics\n", "\n", "doc = ['bank', 'water', 'bank', 'finance', 'money','sell','river','fast','tree']\n", "color_words(model, doc)\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "We see that the document word coloring is done just the way we expected. :)\n", "\n", "## Word-coloring a dictionary\n", "\n", "We can do the same for the entire vocabulary, statically. The only difference would be in using `get_term_topics`, and iterating over the dictionary.\n", "\n", "We will use a modified version of the coloring code when passing an entire dictionary." ] }, { "cell_type": "code", "execution_count": 20, "metadata": {}, "outputs": [], "source": [ "def color_words_dict(model, dictionary):\n", " import matplotlib.pyplot as plt\n", " import matplotlib.patches as patches\n", "\n", " word_topics = []\n", " for word_id in dictionary:\n", " word = str(dictionary[word_id])\n", " # get_term_topics returns static topics, as mentioned before\n", " probs = model.get_term_topics(word)\n", " # we are creating word_topics which is similar to the one created by get_document_topics\n", " try:\n", " if probs[0][1] >= probs[1][1]:\n", " word_topics.append((word_id, [0, 1]))\n", " else:\n", " word_topics.append((word_id, [1, 0]))\n", " # this in the case only one topic is returned\n", " except IndexError:\n", " word_topics.append((word_id, [probs[0][0]]))\n", " \n", " # color-topic matching\n", " topic_colors = { 1:'red', 0:'blue'}\n", " \n", " # set up fig to plot\n", " fig = plt.figure()\n", " ax = fig.add_axes([0,0,1,1])\n", "\n", " # a sort of hack to make sure the words are well spaced out.\n", " word_pos = 1/len(doc)\n", " \n", " # use matplotlib to plot words\n", " for word, topics in word_topics:\n", " ax.text(word_pos, 0.8, model.id2word[word],\n", " horizontalalignment='center',\n", " verticalalignment='center',\n", " fontsize=20, color=topic_colors[topics[0]], # choose just the most likely topic\n", " transform=ax.transAxes)\n", " word_pos += 0.2 # to move the word for the next iter\n", "\n", " ax.set_axis_off()\n", " plt.show()\n" ] }, { "cell_type": "code", "execution_count": 21, "metadata": {}, "outputs": [ { "data": { "image/png": "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AAAAYHCCXgAAAACAwQl6AQAAAAAGJ+gFAAAAABicoBcAAAAAYHCCXgAAAACAwQl6AQAAAAAGJ+gFAAAAABicoBcAAAAAYHCCXgAAAACAwQl6AQAAAAAGJ+gFAAAAABicoBcAAAAAYHCCXgAAAACAwQl6AQAAAAAGJ+gFAAAAABicoBcAAAAAYHCCXgAAAACAwQl6AQAAAAAGJ+gFAAAAABicoBcAAAAAYHCCXgAAAACAwQl6AQAAAAAGJ+gFAAAAABicoBcAAAAAYHCCXgAAAACAwQl6AQAAAAAGJ+gFAAAAABicoBcAAAAAYHCCXgAAAACAwQl6AQAAAAAGJ+gFAAAAABicoBcAAAAAYHCCXgAAAACAwQl6AQAAAAAGJ+gFAAAAABicoBcAAAAAYHCCXgAAAACAwQl6AQAAAAAGJ+gFAAAAABicoBcAAAAAYHCCXgAAAACAwQl6AQAAAAAGJ+gFAAAAABicoBcAAAAAYHCCXgAAAACAwQl6AQAAAAAGJ+gFAAAAABicoBcAAAAAYHCCXgAAAACAwQl6AQAAAAAGJ+gFAAAAABicoBcAAAAAYHCCXgAAAACAwQl6AQAAAAAGJ+gFAAAAABicoBcAAAAAYHCCXgAAAACAwQl6AQAAAAAGJ+gFAAAAABicoBcAAAAAYHCCXgAAAACAwQl6AQAAAAAGJ+gFAAAAABicoBcAAAAAYHCCXgAAAACAwQl6AQAAAAAGJ+gFAAAAABicoBcAAAAAYHCCXgAAAACAwQl6AQAAAAAGJ+gFAAAAABicoBcAAAAAYHCCXgAAAACAwQl6AQAAAAAGJ+gFAAAAABicoBcAAAAAYHCCXgAAAACAwQl6AQAAAAAGJ+gFAAAAABicoBcAAAAAYHCCXgAAAACAwQl6AQAAAAAGJ+gFAAAAABicoBcAAAAAYHCCXgAAAACAwQl6AQAAAAAGJ+gFAAAAABicoBcAAAAAYHCCXgAAAACAwQl6AQAAAAAGJ+gFAAAAABicoBcAAAAAYHCCXgAAAACAwQl6AQAAAAAGJ+gFAAAAABicoBcAAAAAYHCCXgAAAACAwQl6AQAAAAAGJ+gFAAAAABicoBcAAAAAYHCCXgAAAACAwQl6AQAAAAAGJ+gFAAAAABicoBcAAAAAYHCCXgAAAACAwQl6AQAAAAAGJ+gFAAAAABicoBcAAAAAYHCCXgAAAACAwQl6AQAAAAAGJ+gFAAAAABicoBcAAAAAYHCCXgAAAACAwQl6AQAAAAAGJ+gFAAAAABicoBcAAAAAYHCCXgAAAACAwQl6AQAAAAAGJ+gFAAAAABicoBcAAAAAYHCCXgAAAACAwQl6AQAAAAAGJ+gFAAAAABicoBcAAAAAYHCCXgAAAACAwQl6AQAAAAAGJ+gFAAAAABicoBcAAAAAYHCCXgAAAACAwQl6AQAAAAAGJ+gFAAAAABicoBcAAAAAYHCCXgAAAACAwQl6AQAAAAAGJ+gFAAAAABicoBcAAAAAYHCCXgAAAACAwQl6AQAAAAAGJ+gFAAAAABicoBcAAAAAYHCCXgAAAACAwQl6AQAAAAAGJ+gFAAAAABicoBcAAAAAYHCCXgAAAACAwQl6AQAAAAAGJ+gFAAAAABicoBcAAAAAYHCCXgAAAACAwQl6AQAAAAAGJ+gFAAAAABicoBcAAAAAYHCCXgAAAACAwQl6AQAAAAAGJ+gFAAAAABicoBcAAAAAYHCCXgAAAACAwQl6AQAAAAAGJ+gFAAAAABicoBcAAAAAYHCCXgAAAACAwQl6AQAAAAAGJ+gFAAAAABicoBcAAAAAYHCCXgAAAACAwQl6AQAAAAAGJ+gFAAAAABicoBcAAAAAYHCCXgAAAACAwQl6AQAAAAAGJ+gFAAAAABicoBcAAAAAYHCCXgAAAACAwQl6AQAAAAAGJ+gFAAAAABicoBcAAAAAYHCCXgAAAACAwQl6AQAAAAAGJ+gFAAAAABicoBcAAAAAYHCCXgAAAACAwQl6AQAAAAAGJ+gFAAAAABicoBcAAAAAYHCCXgAAAACAwQl6AQAAAAAGJ+gFAAAAABicoBcAAAAAYHCCXgAAAACAwQl6AQAAAAAGJ+gFAAAAABicoBcAAAAAYHCCXgAAAACAwQl6AQAAAAAGJ+gFAAAAABicoBcAAAAAYHCCXgAAAACAwQl6AQAAAAAGJ+gFAAAAABicoBcAAAAAYHCCXgAAAACAwQl6AQAAAAAGJ+gFAAAAABjc/wMrZST1b0d05wAAAABJRU5ErkJggg==\n", "text/plain": [ "<Figure size 432x288 with 1 Axes>" ] }, "metadata": { "needs_background": "light" }, "output_type": "display_data" } ], "source": [ "color_words_dict(model, dictionary)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "As we can see, the red words are to do with finance, and the blue ones are to do with water. \n", "\n", "You can also notice that some words, like mud, shore and borrow seem to be incorrectly colored - however, they are correctly colored according to the LDA model used for coloring. A small corpus means that the LDA algorithm might not assign 'ideal' topic proportions to each word. Fine tuning the model and having a larger corpus would improve the model, and improve the results of the word coloring." ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.7.1" } }, "nbformat": 4, "nbformat_minor": 1 }
65,706
Python
.py
942
64.677282
15,496
0.750602
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,956
Varembed.ipynb
piskvorky_gensim/docs/notebooks/Varembed.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# VarEmbed Tutorial\n", "\n", "Varembed is a word embedding model incorporating morphological information, capturing shared sub-word features. Unlike previous work that constructs word embeddings directly from morphemes, varembed combines morphological and distributional information in a unified probabilistic framework. Varembed thus yields improvements on intrinsic word similarity evaluations. Check out the original paper, [arXiv:1608.01056](https://arxiv.org/abs/1608.01056) accepted in [EMNLP 2016](http://www.emnlp2016.net/accepted-papers.html).\n", "\n", "Varembed is now integrated into [Gensim](https://radimrehurek.com/gensim/) providing ability to load already trained varembed models into gensim with additional functionalities over word vectors already present in gensim.\n", "\n", "# This Tutorial\n", "\n", "In this tutorial you will learn how to train, load and evaluate varembed model on your data.\n", "\n", "# Train Model\n", "\n", "The authors provide their code to train a varembed model. Checkout the repository [MorphologicalPriorsForWordEmbeddings](https://github.com/rguthrie3/MorphologicalPriorsForWordEmbeddings) for to train a varembed model. You'll need to use that code if you want to train a model. \n", "\n", "# Load Varembed Model\n", "\n", "Now that you have an already trained varembed model, you can easily load the varembed word vectors directly into Gensim. <br>\n", "For that, you need to provide the path to the word vectors pickle file generated after you train the model and run the script to [package varembed embeddings](https://github.com/rguthrie3/MorphologicalPriorsForWordEmbeddings/blob/master/package_embeddings.py) provided in the [varembed source code repository](https://github.com/rguthrie3/MorphologicalPriorsForWordEmbeddings).\n", "\n", "We'll use a varembed model trained on [Lee Corpus](https://github.com/RaRe-Technologies/gensim/blob/develop/gensim/test/test_data/lee.cor) as the vocabulary, which is already available in gensim.\n", "\n", "\n", "\n", "\n" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "/home/misha/git/gensim/docs/notebooks\n" ] }, { "ename": "FileNotFoundError", "evalue": "[Errno 2] No such file or directory: '../../gensim/test/test_data/varembed_leecorpus_vectors.pkl'", "output_type": "error", "traceback": [ "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", "\u001b[0;31mFileNotFoundError\u001b[0m Traceback (most recent call last)", "\u001b[0;32m<ipython-input-2-3653006df438>\u001b[0m in \u001b[0;36m<module>\u001b[0;34m\u001b[0m\n\u001b[1;32m 4\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 5\u001b[0m \u001b[0mvector_file\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;34m'../../gensim/test/test_data/varembed_leecorpus_vectors.pkl'\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m----> 6\u001b[0;31m \u001b[0mmodel\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mvarembed\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mVarEmbed\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mload_varembed_format\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mvectors\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mvector_file\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m", "\u001b[0;32m~/git/gensim/gensim/models/wrappers/varembed.py\u001b[0m in \u001b[0;36mload_varembed_format\u001b[0;34m(cls, vectors, morfessor_model)\u001b[0m\n\u001b[1;32m 58\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0mvectors\u001b[0m \u001b[0;32mis\u001b[0m \u001b[0;32mNone\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 59\u001b[0m \u001b[0;32mraise\u001b[0m \u001b[0mException\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m\"Please provide vectors binary to load varembed model\"\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 60\u001b[0;31m \u001b[0md\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mutils\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0munpickle\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mvectors\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 61\u001b[0m \u001b[0mword_to_ix\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0md\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;34m'word_to_ix'\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 62\u001b[0m \u001b[0mmorpho_to_ix\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0md\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;34m'morpho_to_ix'\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", "\u001b[0;32m~/git/gensim/gensim/utils.py\u001b[0m in \u001b[0;36munpickle\u001b[0;34m(fname)\u001b[0m\n\u001b[1;32m 1379\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1380\u001b[0m \"\"\"\n\u001b[0;32m-> 1381\u001b[0;31m \u001b[0;32mwith\u001b[0m \u001b[0msmart_open\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mfname\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m'rb'\u001b[0m\u001b[0;34m)\u001b[0m \u001b[0;32mas\u001b[0m \u001b[0mf\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 1382\u001b[0m \u001b[0;31m# Because of loading from S3 load can't be used (missing readline in smart_open)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1383\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0msys\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mversion_info\u001b[0m \u001b[0;34m>\u001b[0m \u001b[0;34m(\u001b[0m\u001b[0;36m3\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;36m0\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", "\u001b[0;32m~/envs/gensim/lib/python3.7/site-packages/smart_open/smart_open_lib.py\u001b[0m in \u001b[0;36msmart_open\u001b[0;34m(uri, mode, **kw)\u001b[0m\n\u001b[1;32m 437\u001b[0m \u001b[0mtransport_params\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0mkey\u001b[0m\u001b[0;34m]\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mvalue\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 438\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 439\u001b[0;31m \u001b[0;32mreturn\u001b[0m \u001b[0mopen\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0muri\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mmode\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mignore_ext\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mignore_extension\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mtransport_params\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mtransport_params\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m**\u001b[0m\u001b[0mscrubbed_kwargs\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 440\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 441\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n", "\u001b[0;32m~/envs/gensim/lib/python3.7/site-packages/smart_open/smart_open_lib.py\u001b[0m in \u001b[0;36mopen\u001b[0;34m(uri, mode, buffering, encoding, errors, newline, closefd, opener, ignore_ext, transport_params)\u001b[0m\n\u001b[1;32m 305\u001b[0m \u001b[0mbuffering\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mbuffering\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 306\u001b[0m \u001b[0mencoding\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mencoding\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 307\u001b[0;31m \u001b[0merrors\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0merrors\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 308\u001b[0m )\n\u001b[1;32m 309\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0mfobj\u001b[0m \u001b[0;32mis\u001b[0m \u001b[0;32mnot\u001b[0m \u001b[0;32mNone\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", "\u001b[0;32m~/envs/gensim/lib/python3.7/site-packages/smart_open/smart_open_lib.py\u001b[0m in \u001b[0;36m_shortcut_open\u001b[0;34m(uri, mode, ignore_ext, buffering, encoding, errors)\u001b[0m\n\u001b[1;32m 496\u001b[0m \u001b[0;31m#\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 497\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0msix\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mPY3\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 498\u001b[0;31m \u001b[0;32mreturn\u001b[0m \u001b[0m_builtin_open\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mparsed_uri\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0muri_path\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mmode\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mbuffering\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mbuffering\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m**\u001b[0m\u001b[0mopen_kwargs\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 499\u001b[0m \u001b[0;32melif\u001b[0m \u001b[0;32mnot\u001b[0m \u001b[0mopen_kwargs\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 500\u001b[0m \u001b[0;32mreturn\u001b[0m \u001b[0m_builtin_open\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mparsed_uri\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0muri_path\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mmode\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mbuffering\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mbuffering\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", "\u001b[0;31mFileNotFoundError\u001b[0m: [Errno 2] No such file or directory: '../../gensim/test/test_data/varembed_leecorpus_vectors.pkl'" ] } ], "source": [ "from gensim.models.wrappers import varembed\n", "\n", "vector_file = '../../gensim/test/test_data/varembed_leecorpus_vectors.pkl'\n", "model = varembed.VarEmbed.load_varembed_format(vectors=vector_file)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "This loads a varembed model into Gensim. Also if you want to load with morphemes added into the varembed vectors, you just need to also provide the path to the trained morfessor model binary as an argument. This works as an optional parameter, if not provided, it would just load the varembed vectors without morphemes." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "morfessor_file = '../../gensim/test/test_data/varembed_leecorpus_morfessor.bin'\n", "model_with_morphemes = varembed.VarEmbed.load_varembed_format(vectors=vector_file, morfessor_model=morfessor_file)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "This helps load trained varembed models into Gensim. Now you can use this for any of the Keyed Vector functionalities, like 'most_similar', 'similarity' and so on, already provided in gensim. \n" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "model.most_similar('government')" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "model.similarity('peace', 'grim')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Conclusion\n", "In this tutorial, we learnt how to load already trained varembed models vectors into gensim and easily use and evaluate it. That's it!\n", "\n", "# Resources\n", "\n", "* [Varembed Source Code](https://github.com/rguthrie3/MorphologicalPriorsForWordEmbeddings)\n", "* [Gensim](https://radimrehurek.com/gensim/)\n", "* [Lee Corpus](https://github.com/RaRe-Technologies/gensim/blob/develop/gensim/test/test_data/lee.cor)\n" ] } ], "metadata": { "anaconda-cloud": {}, "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.7.1" } }, "nbformat": 4, "nbformat_minor": 1 }
12,731
Python
.py
148
81.635135
1,631
0.701264
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,957
test_notebooks.py
piskvorky_gensim/docs/notebooks/test_notebooks.py
import os import sys import tempfile from glob import glob import nbformat from nbconvert.preprocessors import ExecutePreprocessor from nbconvert.preprocessors.execute import CellExecutionError "from smart_open import smart_open\n", def _notebook_run(path): """Execute a notebook via nbconvert and collect output. :returns (parsed nb object, execution errors) """ kernel_name = 'python%d' % sys.version_info[0] this_file_directory = os.path.dirname(__file__) errors = [] with tempfile.NamedTemporaryFile(suffix=".ipynb", mode='wt') as fout: with smart_open(path, 'rb') as f: nb = nbformat.read(f, as_version=4) nb.metadata.get('kernelspec', {})['name'] = kernel_name ep = ExecutePreprocessor(kernel_name=kernel_name, timeout=10) try: ep.preprocess(nb, {'metadata': {'path': this_file_directory}}) except CellExecutionError as e: if "SKIP" in e.traceback: print(str(e.traceback).split("\n")[-2]) else: raise e except RuntimeError as e: print(e) finally: nbformat.write(nb, fout) return nb, errors def test_notebooks(): for notebook in glob("*.ipynb"): if " " in notebook: continue print("Testing {}".format(notebook)) nb, errors = _notebook_run(notebook) assert errors == []
1,477
Python
.py
39
29.102564
78
0.61049
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,958
Topics_and_Transformations.ipynb
piskvorky_gensim/docs/notebooks/Topics_and_Transformations.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "This tutorial has moved.\n", "\n", "Please see https://radimrehurek.com/gensim/auto_examples/." ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.6.8" } }, "nbformat": 4, "nbformat_minor": 2 }
626
Python
.py
34
14.970588
64
0.559122
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,959
Similarity_Queries.ipynb
piskvorky_gensim/docs/notebooks/Similarity_Queries.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "This tutorial has moved.\n", "\n", "Please see https://radimrehurek.com/gensim/auto_examples/." ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.6.8" } }, "nbformat": 4, "nbformat_minor": 2 }
626
Python
.py
34
14.970588
64
0.559122
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,960
word2vec.ipynb
piskvorky_gensim/docs/notebooks/word2vec.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "This tutorial has moved.\n", "\n", "Please see https://radimrehurek.com/gensim/auto_examples/." ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.6.8" } }, "nbformat": 4, "nbformat_minor": 2 }
626
Python
.py
34
14.970588
64
0.559122
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,961
translation_matrix.ipynb
piskvorky_gensim/docs/notebooks/translation_matrix.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Translation Matrix Tutorial" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## What is it ?" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Suppose we are given a set of word pairs and their associated vector representaion $\\{x_{i},z_{i}\\}_{i=1}^{n}$, where $x_{i} \\in R^{d_{1}}$ is the distibuted representation of word $i$ in the source language, and ${z_{i} \\in R^{d_{2}}}$ is the vector representation of its translation. Our goal is to find a transformation matrix $W$ such that $Wx_{i}$ approximates $z_{i}$. In practice, $W$ can be learned by the following optimization prolem:\n", "\n", "<center>$\\min \\limits_{W} \\sum \\limits_{i=1}^{n} ||Wx_{i}-z_{i}||^{2}$</center>" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Resources" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Tomas Mikolov, Quoc V Le, Ilya Sutskever. 2013. [Exploiting Similarities among Languages for Machine Translation](https://arxiv.org/pdf/1309.4168.pdf)\n", "\n", "Georgiana Dinu, Angelikie Lazaridou and Marco Baroni. 2014. [Improving zero-shot learning by mitigating the hubness problem](https://arxiv.org/pdf/1309.4168.pdf)" ] }, { "cell_type": "code", "execution_count": 5, "metadata": {}, "outputs": [], "source": [ "import os\n", "\n", "from gensim import utils\n", "from gensim.models import translation_matrix\n", "from gensim.models import KeyedVectors\n", "import smart_open" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "For this tutorial, we'll train our model using the English -> Italian word pairs from the OPUS collection. This corpus contains 5000 word pairs. Each word pair is English word with corresponding Italian word.\n", "\n", "Dataset download: \n", "\n", "[OPUS_en_it_europarl_train_5K.txt](https://pan.baidu.com/s/1nuIuQoT)" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "!rm 1nuIuQoT" ] }, { "cell_type": "code", "execution_count": 7, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "[('for', 'per'), ('that', 'che'), ('with', 'con'), ('are', 'are'), ('are', 'sono'), ('this', 'questa'), ('this', 'questo'), ('you', 'lei'), ('not', 'non'), ('which', 'che')]\n" ] } ], "source": [ "train_file = \"OPUS_en_it_europarl_train_5K.txt\"\n", "\n", "with smart_open.open(train_file, \"r\") as f:\n", " word_pair = [tuple(utils.to_unicode(line).strip().split()) for line in f]\n", "print(word_pair[:10])" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "This tutorial uses 300-dimensional vectors of English words as source and vectors of Italian words as target. (Those vector trained by the word2vec toolkit with cbow. The context window was set 5 words to either side of the target,\n", "the sub-sampling option was set to 1e-05 and estimate the probability of a target word with the negative sampling method, drawing 10 samples from the noise distribution)\n", "\n", "Download dataset:\n", "\n", "[EN.200K.cbow1_wind5_hs0_neg10_size300_smpl1e-05.txt](https://pan.baidu.com/s/1nv3bYel)\n", "\n", "[IT.200K.cbow1_wind5_hs0_neg10_size300_smpl1e-05.txt](https://pan.baidu.com/s/1boP0P7D)" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# Load the source language word vector\n", "source_word_vec_file = \"EN.200K.cbow1_wind5_hs0_neg10_size300_smpl1e-05.txt\"\n", "source_word_vec = KeyedVectors.load_word2vec_format(source_word_vec_file, binary=False)" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# Load the target language word vector\n", "target_word_vec_file = \"IT.200K.cbow1_wind5_hs0_neg10_size300_smpl1e-05.txt\"\n", "target_word_vec = KeyedVectors.load_word2vec_format(target_word_vec_file, binary=False)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Train the translation matrix" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "transmat = translation_matrix.TranslationMatrix(source_word_vec, target_word_vec, word_pair)\n", "transmat.train(word_pair)\n", "print(\"the shape of translation matrix is: \", transmat.translation_matrix.shape)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Prediction Time: For any given new word, we can map it to the other language space by computing $z = Wx$, then we find the word whose representation is closet to z in the target language space, using cosine similarity as the distance metric." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "#### Part one:\n", "Let's look at some vocabulary of numbers translation. We use English words (one, two, three, four and five) as test." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# The pair is in the form of (English, Italian), we can see whether the translated word is correct\n", "words = [(\"one\", \"uno\"), (\"two\", \"due\"), (\"three\", \"tre\"), (\"four\", \"quattro\"), (\"five\", \"cinque\")]\n", "source_word, target_word = zip(*words)\n", "translated_word = transmat.translate(source_word, 5, )" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "scrolled": true }, "outputs": [], "source": [ "for k, v in translated_word.iteritems():\n", " print(\"word \", k, \" and translated word\", v)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "#### Part two:\n", "Let's look at some vocabulary of fruits translation. We use English words (apple, orange, grape, banana and mango) as test." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "words = [(\"apple\", \"mela\"), (\"orange\", \"arancione\"), (\"grape\", \"acino\"), (\"banana\", \"banana\"), (\"mango\", \"mango\")]\n", "source_word, target_word = zip(*words)\n", "translated_word = transmat.translate(source_word, 5)\n", "for k, v in translated_word.iteritems():\n", " print(\"word \", k, \" and translated word\", v)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "#### Part three:\n", "Let's look at some vocabulary of animals translation. We use English words (dog, pig, cat, horse and bird) as test." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "words = [(\"dog\", \"cane\"), (\"pig\", \"maiale\"), (\"cat\", \"gatto\"), (\"fish\", \"cavallo\"), (\"birds\", \"uccelli\")]\n", "source_word, target_word = zip(*words)\n", "translated_word = transmat.translate(source_word, 5)\n", "for k, v in translated_word.iteritems():\n", " print(\"word \", k, \" and translated word\", v)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### The Creation Time for the Translation Matrix" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Testing the creation time, we extracted more word pairs from a dictionary built from Europarl([Europara, en-it](http://opus.lingfil.uu.se/)). We obtain about 20K word pairs and their corresponding word vectors or you can download from this: [word_dict.pkl](https://pan.baidu.com/s/1dF8HUX7)" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "import pickle\n", "word_dict = \"word_dict.pkl\"\n", "with smart_open.open(word_dict, \"r\") as f:\n", " word_pair = pickle.load(f)\n", "print(\"the length of word pair \", len(word_pair))" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "import time\n", "\n", "test_case = 10\n", "word_pair_length = len(word_pair)\n", "step = word_pair_length / test_case\n", "\n", "duration = []\n", "sizeofword = []\n", "\n", "for idx in range(0, test_case):\n", " sub_pair = word_pair[: (idx + 1) * step]\n", "\n", " startTime = time.time()\n", " transmat = translation_matrix.TranslationMatrix(source_word_vec, target_word_vec, sub_pair)\n", " transmat.train(sub_pair)\n", " endTime = time.time()\n", " \n", " sizeofword.append(len(sub_pair))\n", " duration.append(endTime - startTime)" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "import plotly\n", "from plotly.graph_objs import Scatter, Layout\n", "\n", "plotly.offline.init_notebook_mode(connected=True)\n", "\n", "plotly.offline.iplot({\n", " \"data\": [Scatter(x=sizeofword, y=duration)],\n", " \"layout\": Layout(title=\"time for creation\"),\n", "}, filename=\"tm_creation_time.html\")" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "You will see a two dimensional coordination whose horizontal axis is the size of corpus and vertical axis is the time to train a translation matrix (the unit is second). As the size of corpus increases, the time increases linearly." ] }, { "cell_type": "markdown", "metadata": { "collapsed": true }, "source": [ "### Linear Relationship Between Languages" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "To have a better understanding of the principles behind, we visualized the word vectors using PCA, we noticed that the vector representations of similar words in different languages were related by a linear transformation." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "from sklearn.decomposition import PCA\n", "\n", "import plotly\n", "from plotly.graph_objs import Scatter, Layout, Figure\n", "plotly.offline.init_notebook_mode(connected=True)" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "words = [(\"one\", \"uno\"), (\"two\", \"due\"), (\"three\", \"tre\"), (\"four\", \"quattro\"), (\"five\", \"cinque\")]\n", "en_words_vec = [source_word_vec[item[0]] for item in words]\n", "it_words_vec = [target_word_vec[item[1]] for item in words]\n", "\n", "en_words, it_words = zip(*words)\n", "\n", "pca = PCA(n_components=2)\n", "new_en_words_vec = pca.fit_transform(en_words_vec)\n", "new_it_words_vec = pca.fit_transform(it_words_vec)\n", "\n", "# remove the code, use the plotly for ploting instead\n", "# fig = plt.figure()\n", "# fig.add_subplot(121)\n", "# plt.scatter(new_en_words_vec[:, 0], new_en_words_vec[:, 1])\n", "# for idx, item in enumerate(en_words):\n", "# plt.annotate(item, xy=(new_en_words_vec[idx][0], new_en_words_vec[idx][1]))\n", "\n", "# fig.add_subplot(122)\n", "# plt.scatter(new_it_words_vec[:, 0], new_it_words_vec[:, 1])\n", "# for idx, item in enumerate(it_words):\n", "# plt.annotate(item, xy=(new_it_words_vec[idx][0], new_it_words_vec[idx][1]))\n", "# plt.show()" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# you can also using plotly lib to plot in one figure\n", "trace1 = Scatter(\n", " x = new_en_words_vec[:, 0],\n", " y = new_en_words_vec[:, 1],\n", " mode = 'markers+text',\n", " text = en_words,\n", " textposition = 'top'\n", ")\n", "trace2 = Scatter(\n", " x = new_it_words_vec[:, 0],\n", " y = new_it_words_vec[:, 1],\n", " mode = 'markers+text',\n", " text = it_words,\n", " textposition = 'top'\n", ")\n", "layout = Layout(\n", " showlegend = False\n", ")\n", "data = [trace1, trace2]\n", "\n", "fig = Figure(data=data, layout=layout)\n", "plot_url = plotly.offline.iplot(fig, filename='relatie_position_for_number.html')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The figure shows that the word vectors for English number one to five and the corresponding Italian words uno to cinque have similar geometric arrangements. So the relationship between vector spaces that represent these two languages can be captured by linear mapping. \n", "If we know the translation of one to four from English to Italian, we can learn the transformation matrix that can help us to translate five or other numbers to the Italian word." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "words = [(\"one\", \"uno\"), (\"two\", \"due\"), (\"three\", \"tre\"), (\"four\", \"quattro\"), (\"five\", \"cinque\")]\n", "en_words, it_words = zip(*words)\n", "en_words_vec = [source_word_vec[item[0]] for item in words]\n", "it_words_vec = [target_word_vec[item[1]] for item in words]\n", "\n", "# Translate the English word five to Italian word\n", "translated_word = transmat.translate([en_words[4]], 3)\n", "print(\"translation of five: \", translated_word)\n", "\n", "# the translated words of five\n", "for item in translated_word[en_words[4]]:\n", " it_words_vec.append(target_word_vec[item])\n", "\n", "pca = PCA(n_components=2)\n", "new_en_words_vec = pca.fit_transform(en_words_vec)\n", "new_it_words_vec = pca.fit_transform(it_words_vec)\n", "\n", "# remove the code, use the plotly for ploting instead\n", "# fig = plt.figure()\n", "# fig.add_subplot(121)\n", "# plt.scatter(new_en_words_vec[:, 0], new_en_words_vec[:, 1])\n", "# for idx, item in enumerate(en_words):\n", "# plt.annotate(item, xy=(new_en_words_vec[idx][0], new_en_words_vec[idx][1]))\n", "\n", "# fig.add_subplot(122)\n", "# plt.scatter(new_it_words_vec[:, 0], new_it_words_vec[:, 1])\n", "# for idx, item in enumerate(it_words):\n", "# plt.annotate(item, xy=(new_it_words_vec[idx][0], new_it_words_vec[idx][1]))\n", "# # annote for the translation of five, the red text annotation is the translation of five\n", "# for idx, item in enumerate(translated_word[en_words[4]]):\n", "# plt.annotate(item, xy=(new_it_words_vec[idx + 5][0], new_it_words_vec[idx + 5][1]),\n", "# xytext=(new_it_words_vec[idx + 5][0] + 0.1, new_it_words_vec[idx + 5][1] + 0.1),\n", "# color=\"red\",\n", "# arrowprops=dict(facecolor='red', shrink=0.1, width=1, headwidth=2),)\n", "# plt.show()" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "trace1 = Scatter(\n", " x = new_en_words_vec[:, 0],\n", " y = new_en_words_vec[:, 1],\n", " mode = 'markers+text',\n", " text = en_words,\n", " textposition = 'top'\n", ")\n", "trace2 = Scatter(\n", " x = new_it_words_vec[:, 0],\n", " y = new_it_words_vec[:, 1],\n", " mode = 'markers+text',\n", " text = it_words,\n", " textposition = 'top'\n", ")\n", "layout = Layout(\n", " showlegend = False,\n", " annotations = [dict(\n", " x = new_it_words_vec[5][0],\n", " y = new_it_words_vec[5][1],\n", " text = translated_word[en_words[4]][0],\n", " arrowcolor = \"black\",\n", " arrowsize = 1.5,\n", " arrowwidth = 1,\n", " arrowhead = 0.5\n", " ), dict(\n", " x = new_it_words_vec[6][0],\n", " y = new_it_words_vec[6][1],\n", " text = translated_word[en_words[4]][1],\n", " arrowcolor = \"black\",\n", " arrowsize = 1.5,\n", " arrowwidth = 1,\n", " arrowhead = 0.5\n", " ), dict(\n", " x = new_it_words_vec[7][0],\n", " y = new_it_words_vec[7][1],\n", " text = translated_word[en_words[4]][2],\n", " arrowcolor = \"black\",\n", " arrowsize = 1.5,\n", " arrowwidth = 1,\n", " arrowhead = 0.5\n", " )]\n", ")\n", "data = [trace1, trace2]\n", "\n", "fig = Figure(data=data, layout=layout)\n", "plot_url = plotly.offline.iplot(fig, filename='relatie_position_for_numbers.html')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "You probably will see that two kind of different color nodes, one for the English and the other for the Italian. For the translation of word `five`, we return `top 3` similar words `[u'cinque', u'quattro', u'tre']`. We can easily see that the translation is convincing." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Let's see some animal words, the figure shows that most of the words also have similar geometric arrangements." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "words = [(\"dog\", \"cane\"), (\"pig\", \"maiale\"), (\"cat\", \"gatto\"), (\"horse\", \"cavallo\"), (\"birds\", \"uccelli\")]\n", "en_words_vec = [source_word_vec[item[0]] for item in words]\n", "it_words_vec = [target_word_vec[item[1]] for item in words]\n", "\n", "en_words, it_words = zip(*words)\n", "\n", "# remove the code, use the plotly for ploting instead\n", "# pca = PCA(n_components=2)\n", "# new_en_words_vec = pca.fit_transform(en_words_vec)\n", "# new_it_words_vec = pca.fit_transform(it_words_vec)\n", "\n", "# fig = plt.figure()\n", "# fig.add_subplot(121)\n", "# plt.scatter(new_en_words_vec[:, 0], new_en_words_vec[:, 1])\n", "# for idx, item in enumerate(en_words):\n", "# plt.annotate(item, xy=(new_en_words_vec[idx][0], new_en_words_vec[idx][1]))\n", "\n", "# fig.add_subplot(122)\n", "# plt.scatter(new_it_words_vec[:, 0], new_it_words_vec[:, 1])\n", "# for idx, item in enumerate(it_words):\n", "# plt.annotate(item, xy=(new_it_words_vec[idx][0], new_it_words_vec[idx][1]))\n", "# plt.show()" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "trace1 = Scatter(\n", " x = new_en_words_vec[:, 0],\n", " y = new_en_words_vec[:, 1],\n", " mode = 'markers+text',\n", " text = en_words,\n", " textposition = 'top'\n", ")\n", "trace2 = Scatter(\n", " x = new_it_words_vec[:, 0],\n", " y = new_it_words_vec[:, 1],\n", " mode = 'markers+text',\n", " text = it_words,\n", " textposition ='top'\n", ")\n", "layout = Layout(\n", " showlegend = False\n", ")\n", "data = [trace1, trace2]\n", "\n", "fig = Figure(data=data, layout=layout)\n", "plot_url = plotly.offline.iplot(fig, filename='relatie_position_for_animal.html')" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "words = [(\"dog\", \"cane\"), (\"pig\", \"maiale\"), (\"cat\", \"gatto\"), (\"horse\", \"cavallo\"), (\"birds\", \"uccelli\")]\n", "en_words, it_words = zip(*words)\n", "en_words_vec = [source_word_vec[item[0]] for item in words]\n", "it_words_vec = [target_word_vec[item[1]] for item in words]\n", "\n", "# Translate the English word birds to Italian word\n", "translated_word = transmat.translate([en_words[4]], 3)\n", "print(\"translation of birds: \", translated_word)\n", "\n", "# the translated words of birds\n", "for item in translated_word[en_words[4]]:\n", " it_words_vec.append(target_word_vec[item])\n", "\n", "pca = PCA(n_components=2)\n", "new_en_words_vec = pca.fit_transform(en_words_vec)\n", "new_it_words_vec = pca.fit_transform(it_words_vec)\n", "\n", "# # remove the code, use the plotly for ploting instead\n", "# fig = plt.figure()\n", "# fig.add_subplot(121)\n", "# plt.scatter(new_en_words_vec[:, 0], new_en_words_vec[:, 1])\n", "# for idx, item in enumerate(en_words):\n", "# plt.annotate(item, xy=(new_en_words_vec[idx][0], new_en_words_vec[idx][1]))\n", "\n", "# fig.add_subplot(122)\n", "# plt.scatter(new_it_words_vec[:, 0], new_it_words_vec[:, 1])\n", "# for idx, item in enumerate(it_words):\n", "# plt.annotate(item, xy=(new_it_words_vec[idx][0], new_it_words_vec[idx][1]))\n", "# # annote for the translation of five, the red text annotation is the translation of five\n", "# for idx, item in enumerate(translated_word[en_words[4]]):\n", "# plt.annotate(item, xy=(new_it_words_vec[idx + 5][0], new_it_words_vec[idx + 5][1]),\n", "# xytext=(new_it_words_vec[idx + 5][0] + 0.1, new_it_words_vec[idx + 5][1] + 0.1),\n", "# color=\"red\",\n", "# arrowprops=dict(facecolor='red', shrink=0.1, width=1, headwidth=2),)\n", "# plt.show()" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "trace1 = Scatter(\n", " x = new_en_words_vec[:, 0],\n", " y = new_en_words_vec[:, 1],\n", " mode = 'markers+text',\n", " text = en_words,\n", " textposition = 'top'\n", ")\n", "trace2 = Scatter(\n", " x = new_it_words_vec[:5, 0],\n", " y = new_it_words_vec[:5, 1],\n", " mode = 'markers+text',\n", " text = it_words[:5],\n", " textposition = 'top'\n", ")\n", "layout = Layout(\n", " showlegend = False,\n", " annotations = [dict(\n", " x = new_it_words_vec[5][0],\n", " y = new_it_words_vec[5][1],\n", " text = translated_word[en_words[4]][0],\n", " arrowcolor = \"black\",\n", " arrowsize = 1.5,\n", " arrowwidth = 1,\n", " arrowhead = 0.5\n", " ), dict(\n", " x = new_it_words_vec[6][0],\n", " y = new_it_words_vec[6][1],\n", " text = translated_word[en_words[4]][1],\n", " arrowcolor = \"black\",\n", " arrowsize = 1.5,\n", " arrowwidth = 1,\n", " arrowhead = 0.5\n", " ), dict(\n", " x = new_it_words_vec[7][0],\n", " y = new_it_words_vec[7][1],\n", " text = translated_word[en_words[4]][2],\n", " arrowcolor = \"black\",\n", " arrowsize = 1.5,\n", " arrowwidth = 1,\n", " arrowhead = 0.5\n", " )]\n", ")\n", "data = [trace1, trace2]\n", "\n", "fig = Figure(data=data, layout=layout)\n", "plot_url = plotly.offline.iplot(fig, filename='relatie_position_for_animal.html')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "You probably will see that two kind of different color nodes, one for the English and the other for the Italian. For the translation of word `birds`, we return `top 3` similar words `[u'uccelli', u'garzette', u'iguane']`. We can easily see that the animals' words translation is also convincing as the numbers." ] }, { "cell_type": "markdown", "metadata": { "collapsed": true }, "source": [ "# Tranlation Matrix Revisit \n", "## Warning: this part is unstable/experimental, it requires more experimentation and will change soon!" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "As dicussion in this [PR](https://github.com/RaRe-Technologies/gensim/pull/1434), Translation Matrix not only can used to translate the words from one source language to another target lanuage, but also to translate new document vectors back to old model space.\n", "\n", "For example, if we have trained 15k documents using doc2vec (we called this as model1), and we are going to train new 35k documents using doc2vec (we called this as model2). So we can include those 15k documents as reference documents into the new 35k documents. Then we can get 15k document vectors from model1 and 50k document vectors from model2, but both of the two models have vectors for those 15k documents. We can use those vectors to build a mapping from model1 to model2. Finally, with this relation, we can back-map the model2's vector to model1. Therefore, 35k document vectors are learned using this method." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "In this notebook, we use the IMDB dataset as example. For more information about this dataset, please refer to [this](http://ai.stanford.edu/~amaas/data/sentiment/). And some of code are borrowed from this [notebook](http://localhost:8888/notebooks/docs/notebooks/doc2vec-IMDB.ipynb)" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "import gensim\n", "from gensim.models.doc2vec import TaggedDocument\n", "from gensim.models import Doc2Vec\n", "from collections import namedtuple\n", "import smart_open\n", "\n", "def read_sentimentDocs():\n", " SentimentDocument = namedtuple('SentimentDocument', 'words tags split sentiment')\n", "\n", " alldocs = [] # will hold all docs in original order\n", " with smart_open.open('aclImdb/alldata-id.txt', encoding='utf-8') as alldata:\n", " for line_no, line in enumerate(alldata):\n", " tokens = gensim.utils.to_unicode(line).split()\n", " words = tokens[1:]\n", " tags = [line_no] # `tags = [tokens[0]]` would also work at extra memory cost\n", " split = ['train','test','extra','extra'][line_no // 25000] # 25k train, 25k test, 25k extra\n", " sentiment = [1.0, 0.0, 1.0, 0.0, None, None, None, None][line_no // 12500] # [12.5K pos, 12.5K neg]*2 then unknown\n", " alldocs.append(SentimentDocument(words, tags, split, sentiment))\n", "\n", " train_docs = [doc for doc in alldocs if doc.split == 'train']\n", " test_docs = [doc for doc in alldocs if doc.split == 'test']\n", " doc_list = alldocs[:] # for reshuffling per pass\n", "\n", " print('%d docs: %d train-sentiment, %d test-sentiment' % (len(doc_list), len(train_docs), len(test_docs)))\n", "\n", " return train_docs, test_docs, doc_list\n", "\n", "train_docs, test_docs, doc_list = read_sentimentDocs()\n", "\n", "small_corpus = train_docs[:15000]\n", "large_corpus = train_docs + test_docs\n", "\n", "print(len(train_docs), len(test_docs), len(doc_list), len(small_corpus), len(large_corpus))" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Here, we train two Doc2vec model, the parameters can be determined by yourself. We trained on 15k documents for the `model1` and 50k documents for the `model2`. But you should mix some documents which from the 15k document in `model` to the `model2`, as discussed before. " ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# for the computer performance limited, didn't run on the notebook. \n", "# You do can trained on the server and save the model to the disk.\n", "import multiprocessing\n", "from random import shuffle\n", "\n", "cores = multiprocessing.cpu_count()\n", "model1 = Doc2Vec(dm=1, dm_concat=1, size=100, window=5, negative=5, hs=0, min_count=2, workers=cores)\n", "model2 = Doc2Vec(dm=1, dm_concat=1, size=100, window=5, negative=5, hs=0, min_count=2, workers=cores)\n", "\n", "small_train_docs = train_docs[:15000]\n", "# train for small corpus\n", "model1.build_vocab(small_train_docs)\n", "for epoch in range(50):\n", " shuffle(small_train_docs)\n", " model1.train(small_train_docs, total_examples=len(small_train_docs), epochs=1)\n", "model.save(\"small_doc_15000_iter50.bin\")\n", "\n", "large_train_docs = train_docs + test_docs\n", "# train for large corpus\n", "model2.build_vocab(large_train_docs)\n", "for epoch in range(50):\n", " shuffle(large_train_docs)\n", " model2.train(large_train_docs, total_examples=len(train_docs), epochs=1)\n", "# save the model\n", "model2.save(\"large_doc_50000_iter50.bin\")" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "For the IMDB training dataset, we train an classifier on the train data which has 25k documents with positive and negative label. Then using this classifier to predict the test data, we see what accuracy can be achieved by the document vectors learned by different methods." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "import os\n", "import numpy as np\n", "from sklearn.linear_model import LogisticRegression\n", "\n", "def test_classifier_error(train, train_label, test, test_label):\n", " classifier = LogisticRegression()\n", " classifier.fit(train, train_label)\n", " score = classifier.score(test, test_label)\n", " print(\"the classifier score :\", score)\n", " return score" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "For the experiment one, we use the vector which learned by the Doc2vec method.To evalute those document vector, we use split those 50k document into two part, one for training and the other for testing." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "#you can change the data folder\n", "basedir = \"/home/robotcator/doc2vec\"\n", "\n", "model2 = Doc2Vec.load(os.path.join(basedir, \"large_doc_50000_iter50.bin\"))\n", "m2 = []\n", "for i in range(len(large_corpus)):\n", " m2.append(model2.docvecs[large_corpus[i].tags])\n", "\n", "train_array = np.zeros((25000, 100))\n", "train_label = np.zeros((25000, 1))\n", "test_array = np.zeros((25000, 100))\n", "test_label = np.zeros((25000, 1))\n", "\n", "for i in range(12500):\n", " train_array[i] = m2[i]\n", " train_label[i] = 1\n", "\n", " train_array[i + 12500] = m2[i + 12500]\n", " train_label[i + 12500] = 0\n", "\n", " test_array[i] = m2[i + 25000]\n", " test_label[i] = 1\n", "\n", " test_array[i + 12500] = m2[i + 37500]\n", " test_label[i + 12500] = 0\n", "\n", "print(\"The vectors are learned by doc2vec method\")\n", "test_classifier_error(train_array, train_label, test_array, test_label)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "For the experiment two, the document vectors are learned by the back-mapping method, which has a linear mapping for the `model1` and `model2`. Using this method like translation matrix for the word translation, If we provide the vector for the addtional 35k document vector in `model2`, we can infer this vector for the `model1`." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "from gensim.models import translation_matrix\n", "# you can change the data folder\n", "basedir = \"/home/robotcator/doc2vec\"\n", "\n", "model1 = Doc2Vec.load(os.path.join(basedir, \"small_doc_15000_iter50.bin\"))\n", "model2 = Doc2Vec.load(os.path.join(basedir, \"large_doc_50000_iter50.bin\"))\n", "\n", "l = model1.docvecs.count\n", "l2 = model2.docvecs.count\n", "m1 = np.array([model1.docvecs[large_corpus[i].tags].flatten() for i in range(l)])\n", "\n", "# learn the mapping bettween two model\n", "model = translation_matrix.BackMappingTranslationMatrix(large_corpus[:15000], model1, model2)\n", "model.train(large_corpus[:15000])\n", "\n", "for i in range(l, l2):\n", " infered_vec = model.infer_vector(model2.docvecs[large_corpus[i].tags])\n", " m1 = np.vstack((m1, infered_vec.flatten()))\n", "\n", "train_array = np.zeros((25000, 100))\n", "train_label = np.zeros((25000, 1))\n", "test_array = np.zeros((25000, 100))\n", "test_label = np.zeros((25000, 1))\n", "\n", "# because those document, 25k documents are postive label, 25k documents are negative label\n", "for i in range(12500):\n", " train_array[i] = m1[i]\n", " train_label[i] = 1\n", "\n", " train_array[i + 12500] = m1[i + 12500]\n", " train_label[i + 12500] = 0\n", "\n", " test_array[i] = m1[i + 25000]\n", " test_label[i] = 1\n", "\n", " test_array[i + 12500] = m1[i + 37500]\n", " test_label[i + 12500] = 0\n", "\n", "print(\"The vectors are learned by back-mapping method\")\n", "test_classifier_error(train_array, train_label, test_array, test_label)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "As we can see that, the vectors learned by back-mapping method performed not bad but still need to be improved." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Visulization\n", " we pick some documents and extract the vector both from `model1` and `model2`, we can see that they also share the similar geometric arrangment." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "from sklearn.decomposition import PCA\n", "\n", "import plotly\n", "from plotly.graph_objs import Scatter, Layout, Figure\n", "plotly.offline.init_notebook_mode(connected=True)\n", "\n", "m1_part = m1[14995: 15000]\n", "m2_part = m2[14995: 15000]\n", "\n", "m1_part = np.array(m1_part).reshape(len(m1_part), 100)\n", "m2_part = np.array(m2_part).reshape(len(m2_part), 100)\n", "\n", "pca = PCA(n_components=2)\n", "reduced_vec1 = pca.fit_transform(m1_part)\n", "reduced_vec2 = pca.fit_transform(m2_part)" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "trace1 = Scatter(\n", " x = reduced_vec1[:, 0],\n", " y = reduced_vec1[:, 1],\n", " mode = 'markers+text',\n", " text = ['doc' + str(i) for i in range(len(reduced_vec1))],\n", " textposition = 'top'\n", ")\n", "trace2 = Scatter(\n", " x = reduced_vec2[:, 0],\n", " y = reduced_vec2[:, 1],\n", " mode = 'markers+text',\n", " text = ['doc' + str(i) for i in range(len(reduced_vec1))],\n", " textposition ='top'\n", ")\n", "layout = Layout(\n", " showlegend = False\n", ")\n", "data = [trace1, trace2]\n", "\n", "fig = Figure(data=data, layout=layout)\n", "plot_url = plotly.offline.iplot(fig, filename='doc_vec_vis')" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "m1_part = m1[14995: 15002]\n", "m2_part = m2[14995: 15002]\n", "\n", "m1_part = np.array(m1_part).reshape(len(m1_part), 100)\n", "m2_part = np.array(m2_part).reshape(len(m2_part), 100)\n", "\n", "pca = PCA(n_components=2)\n", "reduced_vec1 = pca.fit_transform(m1_part)\n", "reduced_vec2 = pca.fit_transform(m2_part)\n", "\n", "trace1 = Scatter(\n", " x = reduced_vec1[:, 0],\n", " y = reduced_vec1[:, 1],\n", " mode = 'markers+text',\n", " text = ['sdoc' + str(i) for i in range(len(reduced_vec1))],\n", " textposition = 'top'\n", ")\n", "trace2 = Scatter(\n", " x = reduced_vec2[:, 0],\n", " y = reduced_vec2[:, 1],\n", " mode = 'markers+text',\n", " text = ['tdoc' + str(i) for i in range(len(reduced_vec1))],\n", " textposition ='top'\n", ")\n", "layout = Layout(\n", " showlegend = False\n", ")\n", "data = [trace1, trace2]\n", "\n", "fig = Figure(data=data, layout=layout)\n", "plot_url = plotly.offline.iplot(fig, filename='doc_vec_vis')\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "You probably will see kinds of colors point. One for the `model1`, the `sdoc0` to `sdoc4` document vector are learned by Doc2vec and `sdoc5` and `sdoc6` are learned by back-mapping. One for the `model2`, the `tdoc0` to `tdoc6` are learned by Doc2vec. We can see that some of points learned from the back-mapping method still have the relative position with the point learned by Doc2vec." ] } ], "metadata": { "kernelspec": { "display_name": "Python 3.10.2 64-bit", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.10.2" }, "vscode": { "interpreter": { "hash": "901b79e026e03396fd1ffa7133844e9ea80e258ce34c66e1aabb5896bcb18463" } } }, "nbformat": 4, "nbformat_minor": 1 }
37,933
Python
.py
1,051
31.660324
626
0.57627
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,962
gensim_news_classification.ipynb
piskvorky_gensim/docs/notebooks/gensim_news_classification.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "This tutorial has moved.\n", "\n", "Please see https://radimrehurek.com/gensim/auto_examples/." ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.6.8" } }, "nbformat": 4, "nbformat_minor": 2 }
626
Python
.py
34
14.970588
64
0.559122
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,963
Tensorboard_visualizations.ipynb
piskvorky_gensim/docs/notebooks/Tensorboard_visualizations.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# TensorBoard Visualizations\n", "\n", "\n", "In this tutorial, we will learn how to visualize different types of NLP based Embeddings via TensorBoard. TensorBoard is a data visualization framework for visualizing and inspecting the TensorFlow runs and graphs. We will use a built-in Tensorboard visualizer called *Embedding Projector* in this tutorial. It lets you interactively visualize and analyze high-dimensional data like embeddings.\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Read Data \n", "\n", "For this tutorial, a transformed MovieLens dataset<sup>[1]</sup> is used. You can download the final prepared csv from [here](https://github.com/parulsethi/DocViz/blob/master/movie_plots.csv)." ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [ { "data": { "text/html": [ "<div>\n", "<style>\n", " .dataframe thead tr:only-child th {\n", " text-align: right;\n", " }\n", "\n", " .dataframe thead th {\n", " text-align: left;\n", " }\n", "\n", " .dataframe tbody tr th {\n", " vertical-align: top;\n", " }\n", "</style>\n", "<table border=\"1\" class=\"dataframe\">\n", " <thead>\n", " <tr style=\"text-align: right;\">\n", " <th></th>\n", " <th>MovieID</th>\n", " <th>Titles</th>\n", " <th>Plots</th>\n", " <th>Genres</th>\n", " </tr>\n", " </thead>\n", " <tbody>\n", " <tr>\n", " <th>0</th>\n", " <td>1</td>\n", " <td>Toy Story (1995)</td>\n", " <td>A little boy named Andy loves to be in his roo...</td>\n", " <td>animation</td>\n", " </tr>\n", " <tr>\n", " <th>1</th>\n", " <td>2</td>\n", " <td>Jumanji (1995)</td>\n", " <td>When two kids find and play a magical board ga...</td>\n", " <td>fantasy</td>\n", " </tr>\n", " <tr>\n", " <th>2</th>\n", " <td>3</td>\n", " <td>Grumpier Old Men (1995)</td>\n", " <td>Things don't seem to change much in Wabasha Co...</td>\n", " <td>comedy</td>\n", " </tr>\n", " <tr>\n", " <th>3</th>\n", " <td>6</td>\n", " <td>Heat (1995)</td>\n", " <td>Hunters and their prey--Neil and his professio...</td>\n", " <td>action</td>\n", " </tr>\n", " <tr>\n", " <th>4</th>\n", " <td>7</td>\n", " <td>Sabrina (1995)</td>\n", " <td>An ugly duckling having undergone a remarkable...</td>\n", " <td>romance</td>\n", " </tr>\n", " <tr>\n", " <th>5</th>\n", " <td>9</td>\n", " <td>Sudden Death (1995)</td>\n", " <td>Some terrorists kidnap the Vice President of t...</td>\n", " <td>action</td>\n", " </tr>\n", " <tr>\n", " <th>6</th>\n", " <td>10</td>\n", " <td>GoldenEye (1995)</td>\n", " <td>James Bond teams up with the lone survivor of ...</td>\n", " <td>action</td>\n", " </tr>\n", " <tr>\n", " <th>7</th>\n", " <td>15</td>\n", " <td>Cutthroat Island (1995)</td>\n", " <td>Morgan Adams and her slave, William Shaw, are ...</td>\n", " <td>action</td>\n", " </tr>\n", " <tr>\n", " <th>8</th>\n", " <td>17</td>\n", " <td>Sense and Sensibility (1995)</td>\n", " <td>When Mr. Dashwood dies, he must leave the bulk...</td>\n", " <td>romance</td>\n", " </tr>\n", " <tr>\n", " <th>9</th>\n", " <td>18</td>\n", " <td>Four Rooms (1995)</td>\n", " <td>This movie features the collaborative director...</td>\n", " <td>comedy</td>\n", " </tr>\n", " <tr>\n", " <th>10</th>\n", " <td>19</td>\n", " <td>Ace Ventura: When Nature Calls (1995)</td>\n", " <td>Ace Ventura, emerging from self-imposed exile ...</td>\n", " <td>comedy</td>\n", " </tr>\n", " <tr>\n", " <th>11</th>\n", " <td>29</td>\n", " <td>City of Lost Children, The (Cité des enfants p...</td>\n", " <td>Krank (Daniel Emilfork), who cannot dream, kid...</td>\n", " <td>sci-fi</td>\n", " </tr>\n", " <tr>\n", " <th>12</th>\n", " <td>32</td>\n", " <td>Twelve Monkeys (a.k.a. 12 Monkeys) (1995)</td>\n", " <td>In a future world devastated by disease, a con...</td>\n", " <td>sci-fi</td>\n", " </tr>\n", " <tr>\n", " <th>13</th>\n", " <td>34</td>\n", " <td>Babe (1995)</td>\n", " <td>Farmer Hoggett wins a runt piglet at a local f...</td>\n", " <td>fantasy</td>\n", " </tr>\n", " <tr>\n", " <th>14</th>\n", " <td>39</td>\n", " <td>Clueless (1995)</td>\n", " <td>A rich high school student tries to boost a ne...</td>\n", " <td>romance</td>\n", " </tr>\n", " <tr>\n", " <th>15</th>\n", " <td>44</td>\n", " <td>Mortal Kombat (1995)</td>\n", " <td>Based on the popular video game of the same na...</td>\n", " <td>action</td>\n", " </tr>\n", " <tr>\n", " <th>16</th>\n", " <td>48</td>\n", " <td>Pocahontas (1995)</td>\n", " <td>Capt. John Smith leads a rag-tag band of Engli...</td>\n", " <td>animation</td>\n", " </tr>\n", " <tr>\n", " <th>17</th>\n", " <td>50</td>\n", " <td>Usual Suspects, The (1995)</td>\n", " <td>Following a truck hijack in New York, five con...</td>\n", " <td>comedy</td>\n", " </tr>\n", " <tr>\n", " <th>18</th>\n", " <td>57</td>\n", " <td>Home for the Holidays (1995)</td>\n", " <td>After losing her job, making out with her soon...</td>\n", " <td>comedy</td>\n", " </tr>\n", " <tr>\n", " <th>19</th>\n", " <td>69</td>\n", " <td>Friday (1995)</td>\n", " <td>Two homies, Smokey and Craig, smoke a dope dea...</td>\n", " <td>comedy</td>\n", " </tr>\n", " <tr>\n", " <th>20</th>\n", " <td>70</td>\n", " <td>From Dusk Till Dawn (1996)</td>\n", " <td>Two criminals and their hostages unknowingly s...</td>\n", " <td>action</td>\n", " </tr>\n", " <tr>\n", " <th>21</th>\n", " <td>76</td>\n", " <td>Screamers (1995)</td>\n", " <td>(SIRIUS 6B, Year 2078) On a distant mining pla...</td>\n", " <td>sci-fi</td>\n", " </tr>\n", " <tr>\n", " <th>22</th>\n", " <td>82</td>\n", " <td>Antonia's Line (Antonia) (1995)</td>\n", " <td>In an anonymous Dutch village, a sturdy, stron...</td>\n", " <td>fantasy</td>\n", " </tr>\n", " <tr>\n", " <th>23</th>\n", " <td>88</td>\n", " <td>Black Sheep (1996)</td>\n", " <td>Comedy about the prospective Washington State ...</td>\n", " <td>comedy</td>\n", " </tr>\n", " <tr>\n", " <th>24</th>\n", " <td>95</td>\n", " <td>Broken Arrow (1996)</td>\n", " <td>\"Broken Arrow\" is the term used to describe a ...</td>\n", " <td>action</td>\n", " </tr>\n", " <tr>\n", " <th>25</th>\n", " <td>104</td>\n", " <td>Happy Gilmore (1996)</td>\n", " <td>A rejected hockey player puts his skills to th...</td>\n", " <td>comedy</td>\n", " </tr>\n", " <tr>\n", " <th>26</th>\n", " <td>105</td>\n", " <td>Bridges of Madison County, The (1995)</td>\n", " <td>Photographer Robert Kincaid wanders into the l...</td>\n", " <td>romance</td>\n", " </tr>\n", " <tr>\n", " <th>27</th>\n", " <td>110</td>\n", " <td>Braveheart (1995)</td>\n", " <td>When his secret bride is executed for assaulti...</td>\n", " <td>action</td>\n", " </tr>\n", " <tr>\n", " <th>28</th>\n", " <td>141</td>\n", " <td>Birdcage, The (1996)</td>\n", " <td>Armand Goldman owns a popular drag nightclub i...</td>\n", " <td>comedy</td>\n", " </tr>\n", " <tr>\n", " <th>29</th>\n", " <td>145</td>\n", " <td>Bad Boys (1995)</td>\n", " <td>Marcus Burnett is a hen-pecked family man. Mik...</td>\n", " <td>action</td>\n", " </tr>\n", " <tr>\n", " <th>...</th>\n", " <td>...</td>\n", " <td>...</td>\n", " <td>...</td>\n", " <td>...</td>\n", " </tr>\n", " <tr>\n", " <th>1813</th>\n", " <td>122902</td>\n", " <td>Fantastic Four (2015)</td>\n", " <td>FANTASTIC FOUR, a contemporary re-imagining of...</td>\n", " <td>sci-fi</td>\n", " </tr>\n", " <tr>\n", " <th>1814</th>\n", " <td>127098</td>\n", " <td>Louis C.K.: Live at The Comedy Store (2015)</td>\n", " <td>Comedian Louis C.K. performs live at the Comed...</td>\n", " <td>comedy</td>\n", " </tr>\n", " <tr>\n", " <th>1815</th>\n", " <td>127158</td>\n", " <td>Tig (2015)</td>\n", " <td>An intimate, mixed media documentary that foll...</td>\n", " <td>comedy</td>\n", " </tr>\n", " <tr>\n", " <th>1816</th>\n", " <td>127202</td>\n", " <td>Me and Earl and the Dying Girl (2015)</td>\n", " <td>Seventeen-year-old Greg has managed to become ...</td>\n", " <td>comedy</td>\n", " </tr>\n", " <tr>\n", " <th>1817</th>\n", " <td>129354</td>\n", " <td>Focus (2015)</td>\n", " <td>In the midst of veteran con man Nicky's latest...</td>\n", " <td>action</td>\n", " </tr>\n", " <tr>\n", " <th>1818</th>\n", " <td>129428</td>\n", " <td>The Second Best Exotic Marigold Hotel (2015)</td>\n", " <td>The Second Best Exotic Marigold Hotel is the e...</td>\n", " <td>comedy</td>\n", " </tr>\n", " <tr>\n", " <th>1819</th>\n", " <td>129937</td>\n", " <td>Run All Night (2015)</td>\n", " <td>Professional Brooklyn hitman Jimmy Conlon is m...</td>\n", " <td>action</td>\n", " </tr>\n", " <tr>\n", " <th>1820</th>\n", " <td>130490</td>\n", " <td>Insurgent (2015)</td>\n", " <td>One choice can transform you-or it can destroy...</td>\n", " <td>sci-fi</td>\n", " </tr>\n", " <tr>\n", " <th>1821</th>\n", " <td>130520</td>\n", " <td>Home (2015)</td>\n", " <td>An alien on the run from his own people makes ...</td>\n", " <td>animation</td>\n", " </tr>\n", " <tr>\n", " <th>1822</th>\n", " <td>130634</td>\n", " <td>Furious 7 (2015)</td>\n", " <td>Dominic and his crew thought they'd left the c...</td>\n", " <td>action</td>\n", " </tr>\n", " <tr>\n", " <th>1823</th>\n", " <td>131013</td>\n", " <td>Get Hard (2015)</td>\n", " <td>Kevin Hart plays the role of Darnell--a family...</td>\n", " <td>comedy</td>\n", " </tr>\n", " <tr>\n", " <th>1824</th>\n", " <td>132046</td>\n", " <td>Tomorrowland (2015)</td>\n", " <td>Bound by a shared destiny, a bright, optimisti...</td>\n", " <td>sci-fi</td>\n", " </tr>\n", " <tr>\n", " <th>1825</th>\n", " <td>132480</td>\n", " <td>The Age of Adaline (2015)</td>\n", " <td>A young woman, born at the turn of the 20th ce...</td>\n", " <td>romance</td>\n", " </tr>\n", " <tr>\n", " <th>1826</th>\n", " <td>132488</td>\n", " <td>Lovesick (2014)</td>\n", " <td>Lovesick is the comic tale of Charlie Darby (M...</td>\n", " <td>fantasy</td>\n", " </tr>\n", " <tr>\n", " <th>1827</th>\n", " <td>132796</td>\n", " <td>San Andreas (2015)</td>\n", " <td>In San Andreas, California is experiencing a s...</td>\n", " <td>action</td>\n", " </tr>\n", " <tr>\n", " <th>1828</th>\n", " <td>132961</td>\n", " <td>Far from the Madding Crowd (2015)</td>\n", " <td>In Victorian England, the independent and head...</td>\n", " <td>romance</td>\n", " </tr>\n", " <tr>\n", " <th>1829</th>\n", " <td>133195</td>\n", " <td>Hitman: Agent 47 (2015)</td>\n", " <td>An assassin teams up with a woman to help her ...</td>\n", " <td>action</td>\n", " </tr>\n", " <tr>\n", " <th>1830</th>\n", " <td>133645</td>\n", " <td>Carol (2015)</td>\n", " <td>In an adaptation of Patricia Highsmith's semin...</td>\n", " <td>romance</td>\n", " </tr>\n", " <tr>\n", " <th>1831</th>\n", " <td>134130</td>\n", " <td>The Martian (2015)</td>\n", " <td>During a manned mission to Mars, Astronaut Mar...</td>\n", " <td>sci-fi</td>\n", " </tr>\n", " <tr>\n", " <th>1832</th>\n", " <td>134368</td>\n", " <td>Spy (2015)</td>\n", " <td>A desk-bound CIA analyst volunteers to go unde...</td>\n", " <td>comedy</td>\n", " </tr>\n", " <tr>\n", " <th>1833</th>\n", " <td>134783</td>\n", " <td>Entourage (2015)</td>\n", " <td>Movie star Vincent Chase, together with his bo...</td>\n", " <td>comedy</td>\n", " </tr>\n", " <tr>\n", " <th>1834</th>\n", " <td>134853</td>\n", " <td>Inside Out (2015)</td>\n", " <td>After young Riley is uprooted from her Midwest...</td>\n", " <td>comedy</td>\n", " </tr>\n", " <tr>\n", " <th>1835</th>\n", " <td>135518</td>\n", " <td>Self/less (2015)</td>\n", " <td>A dying real estate mogul transfers his consci...</td>\n", " <td>sci-fi</td>\n", " </tr>\n", " <tr>\n", " <th>1836</th>\n", " <td>135861</td>\n", " <td>Ted 2 (2015)</td>\n", " <td>Months after John's divorce, Ted and Tami-Lynn...</td>\n", " <td>comedy</td>\n", " </tr>\n", " <tr>\n", " <th>1837</th>\n", " <td>135887</td>\n", " <td>Minions (2015)</td>\n", " <td>Ever since the dawn of time, the Minions have ...</td>\n", " <td>comedy</td>\n", " </tr>\n", " <tr>\n", " <th>1838</th>\n", " <td>136016</td>\n", " <td>The Good Dinosaur (2015)</td>\n", " <td>In a world where dinosaurs and humans live sid...</td>\n", " <td>animation</td>\n", " </tr>\n", " <tr>\n", " <th>1839</th>\n", " <td>139855</td>\n", " <td>Anomalisa (2015)</td>\n", " <td>Michael Stone, an author that specializes in c...</td>\n", " <td>animation</td>\n", " </tr>\n", " <tr>\n", " <th>1840</th>\n", " <td>142997</td>\n", " <td>Hotel Transylvania 2 (2015)</td>\n", " <td>The Drac pack is back for an all-new monster c...</td>\n", " <td>animation</td>\n", " </tr>\n", " <tr>\n", " <th>1841</th>\n", " <td>145935</td>\n", " <td>Peanuts Movie, The (2015)</td>\n", " <td>Charlie Brown, Lucy, Snoopy, and the whole gan...</td>\n", " <td>animation</td>\n", " </tr>\n", " <tr>\n", " <th>1842</th>\n", " <td>149406</td>\n", " <td>Kung Fu Panda 3 (2016)</td>\n", " <td>Continuing his \"legendary adventures of awesom...</td>\n", " <td>comedy</td>\n", " </tr>\n", " </tbody>\n", "</table>\n", "<p>1843 rows × 4 columns</p>\n", "</div>" ], "text/plain": [ " MovieID Titles \\\n", "0 1 Toy Story (1995) \n", "1 2 Jumanji (1995) \n", "2 3 Grumpier Old Men (1995) \n", "3 6 Heat (1995) \n", "4 7 Sabrina (1995) \n", "5 9 Sudden Death (1995) \n", "6 10 GoldenEye (1995) \n", "7 15 Cutthroat Island (1995) \n", "8 17 Sense and Sensibility (1995) \n", "9 18 Four Rooms (1995) \n", "10 19 Ace Ventura: When Nature Calls (1995) \n", "11 29 City of Lost Children, The (Cité des enfants p... \n", "12 32 Twelve Monkeys (a.k.a. 12 Monkeys) (1995) \n", "13 34 Babe (1995) \n", "14 39 Clueless (1995) \n", "15 44 Mortal Kombat (1995) \n", "16 48 Pocahontas (1995) \n", "17 50 Usual Suspects, The (1995) \n", "18 57 Home for the Holidays (1995) \n", "19 69 Friday (1995) \n", "20 70 From Dusk Till Dawn (1996) \n", "21 76 Screamers (1995) \n", "22 82 Antonia's Line (Antonia) (1995) \n", "23 88 Black Sheep (1996) \n", "24 95 Broken Arrow (1996) \n", "25 104 Happy Gilmore (1996) \n", "26 105 Bridges of Madison County, The (1995) \n", "27 110 Braveheart (1995) \n", "28 141 Birdcage, The (1996) \n", "29 145 Bad Boys (1995) \n", "... ... ... \n", "1813 122902 Fantastic Four (2015) \n", "1814 127098 Louis C.K.: Live at The Comedy Store (2015) \n", "1815 127158 Tig (2015) \n", "1816 127202 Me and Earl and the Dying Girl (2015) \n", "1817 129354 Focus (2015) \n", "1818 129428 The Second Best Exotic Marigold Hotel (2015) \n", "1819 129937 Run All Night (2015) \n", "1820 130490 Insurgent (2015) \n", "1821 130520 Home (2015) \n", "1822 130634 Furious 7 (2015) \n", "1823 131013 Get Hard (2015) \n", "1824 132046 Tomorrowland (2015) \n", "1825 132480 The Age of Adaline (2015) \n", "1826 132488 Lovesick (2014) \n", "1827 132796 San Andreas (2015) \n", "1828 132961 Far from the Madding Crowd (2015) \n", "1829 133195 Hitman: Agent 47 (2015) \n", "1830 133645 Carol (2015) \n", "1831 134130 The Martian (2015) \n", "1832 134368 Spy (2015) \n", "1833 134783 Entourage (2015) \n", "1834 134853 Inside Out (2015) \n", "1835 135518 Self/less (2015) \n", "1836 135861 Ted 2 (2015) \n", "1837 135887 Minions (2015) \n", "1838 136016 The Good Dinosaur (2015) \n", "1839 139855 Anomalisa (2015) \n", "1840 142997 Hotel Transylvania 2 (2015) \n", "1841 145935 Peanuts Movie, The (2015) \n", "1842 149406 Kung Fu Panda 3 (2016) \n", "\n", " Plots Genres \n", "0 A little boy named Andy loves to be in his roo... animation \n", "1 When two kids find and play a magical board ga... fantasy \n", "2 Things don't seem to change much in Wabasha Co... comedy \n", "3 Hunters and their prey--Neil and his professio... action \n", "4 An ugly duckling having undergone a remarkable... romance \n", "5 Some terrorists kidnap the Vice President of t... action \n", "6 James Bond teams up with the lone survivor of ... action \n", "7 Morgan Adams and her slave, William Shaw, are ... action \n", "8 When Mr. Dashwood dies, he must leave the bulk... romance \n", "9 This movie features the collaborative director... comedy \n", "10 Ace Ventura, emerging from self-imposed exile ... comedy \n", "11 Krank (Daniel Emilfork), who cannot dream, kid... sci-fi \n", "12 In a future world devastated by disease, a con... sci-fi \n", "13 Farmer Hoggett wins a runt piglet at a local f... fantasy \n", "14 A rich high school student tries to boost a ne... romance \n", "15 Based on the popular video game of the same na... action \n", "16 Capt. John Smith leads a rag-tag band of Engli... animation \n", "17 Following a truck hijack in New York, five con... comedy \n", "18 After losing her job, making out with her soon... comedy \n", "19 Two homies, Smokey and Craig, smoke a dope dea... comedy \n", "20 Two criminals and their hostages unknowingly s... action \n", "21 (SIRIUS 6B, Year 2078) On a distant mining pla... sci-fi \n", "22 In an anonymous Dutch village, a sturdy, stron... fantasy \n", "23 Comedy about the prospective Washington State ... comedy \n", "24 \"Broken Arrow\" is the term used to describe a ... action \n", "25 A rejected hockey player puts his skills to th... comedy \n", "26 Photographer Robert Kincaid wanders into the l... romance \n", "27 When his secret bride is executed for assaulti... action \n", "28 Armand Goldman owns a popular drag nightclub i... comedy \n", "29 Marcus Burnett is a hen-pecked family man. Mik... action \n", "... ... ... \n", "1813 FANTASTIC FOUR, a contemporary re-imagining of... sci-fi \n", "1814 Comedian Louis C.K. performs live at the Comed... comedy \n", "1815 An intimate, mixed media documentary that foll... comedy \n", "1816 Seventeen-year-old Greg has managed to become ... comedy \n", "1817 In the midst of veteran con man Nicky's latest... action \n", "1818 The Second Best Exotic Marigold Hotel is the e... comedy \n", "1819 Professional Brooklyn hitman Jimmy Conlon is m... action \n", "1820 One choice can transform you-or it can destroy... sci-fi \n", "1821 An alien on the run from his own people makes ... animation \n", "1822 Dominic and his crew thought they'd left the c... action \n", "1823 Kevin Hart plays the role of Darnell--a family... comedy \n", "1824 Bound by a shared destiny, a bright, optimisti... sci-fi \n", "1825 A young woman, born at the turn of the 20th ce... romance \n", "1826 Lovesick is the comic tale of Charlie Darby (M... fantasy \n", "1827 In San Andreas, California is experiencing a s... action \n", "1828 In Victorian England, the independent and head... romance \n", "1829 An assassin teams up with a woman to help her ... action \n", "1830 In an adaptation of Patricia Highsmith's semin... romance \n", "1831 During a manned mission to Mars, Astronaut Mar... sci-fi \n", "1832 A desk-bound CIA analyst volunteers to go unde... comedy \n", "1833 Movie star Vincent Chase, together with his bo... comedy \n", "1834 After young Riley is uprooted from her Midwest... comedy \n", "1835 A dying real estate mogul transfers his consci... sci-fi \n", "1836 Months after John's divorce, Ted and Tami-Lynn... comedy \n", "1837 Ever since the dawn of time, the Minions have ... comedy \n", "1838 In a world where dinosaurs and humans live sid... animation \n", "1839 Michael Stone, an author that specializes in c... animation \n", "1840 The Drac pack is back for an all-new monster c... animation \n", "1841 Charlie Brown, Lucy, Snoopy, and the whole gan... animation \n", "1842 Continuing his \"legendary adventures of awesom... comedy \n", "\n", "[1843 rows x 4 columns]" ] }, "execution_count": 1, "metadata": {}, "output_type": "execute_result" } ], "source": [ "import gensim\n", "import pandas as pd\n", "import smart_open\n", "import random\n", "from smart_open import smart_open\n", "\n", "# read data\n", "dataframe = pd.read_csv('movie_plots.csv')\n", "dataframe" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# 1. Visualizing Doc2Vec\n", "In this part, we will learn about visualizing Doc2Vec Embeddings aka [Paragraph Vectors](https://arxiv.org/abs/1405.4053) via TensorBoard. The input documents for training will be the synopsis of movies, on which Doc2Vec model is trained. \n", "\n", "<img src=\"Tensorboard.png\">\n", "\n", "The visualizations will be a scatterplot as seen in the above image, where each datapoint is labelled by the movie title and colored by it's corresponding genre. You can also visit this [Projector link](http://projector.tensorflow.org/?config=https://raw.githubusercontent.com/parulsethi/DocViz/master/movie_plot_config.json) which is configured with my embeddings for the above mentioned dataset. \n", "\n", "\n", "## Preprocess Text" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Below, we define a function to read the training documents, pre-process each document using a simple gensim pre-processing tool (i.e., tokenize text into individual words, remove punctuation, set to lowercase, etc), and return a list of words. Also, to train the model, we'll need to associate a tag/number with each document of the training corpus. In our case, the tag is simply the zero-based line number." ] }, { "cell_type": "code", "execution_count": 2, "metadata": { "collapsed": true }, "outputs": [], "source": [ "def read_corpus(documents):\n", " for i, plot in enumerate(documents):\n", " yield gensim.models.doc2vec.TaggedDocument(gensim.utils.simple_preprocess(plot, max_len=30), [i])" ] }, { "cell_type": "code", "execution_count": 3, "metadata": { "collapsed": true }, "outputs": [], "source": [ "train_corpus = list(read_corpus(dataframe.Plots))" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Let's take a look at the training corpus." ] }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "[TaggedDocument(words=['little', 'boy', 'named', 'andy', 'loves', 'to', 'be', 'in', 'his', 'room', 'playing', 'with', 'his', 'toys', 'especially', 'his', 'doll', 'named', 'woody', 'but', 'what', 'do', 'the', 'toys', 'do', 'when', 'andy', 'is', 'not', 'with', 'them', 'they', 'come', 'to', 'life', 'woody', 'believes', 'that', 'he', 'has', 'life', 'as', 'toy', 'good', 'however', 'he', 'must', 'worry', 'about', 'andy', 'family', 'moving', 'and', 'what', 'woody', 'does', 'not', 'know', 'is', 'about', 'andy', 'birthday', 'party', 'woody', 'does', 'not', 'realize', 'that', 'andy', 'mother', 'gave', 'him', 'an', 'action', 'figure', 'known', 'as', 'buzz', 'lightyear', 'who', 'does', 'not', 'believe', 'that', 'he', 'is', 'toy', 'and', 'quickly', 'becomes', 'andy', 'new', 'favorite', 'toy', 'woody', 'who', 'is', 'now', 'consumed', 'with', 'jealousy', 'tries', 'to', 'get', 'rid', 'of', 'buzz', 'then', 'both', 'woody', 'and', 'buzz', 'are', 'now', 'lost', 'they', 'must', 'find', 'way', 'to', 'get', 'back', 'to', 'andy', 'before', 'he', 'moves', 'without', 'them', 'but', 'they', 'will', 'have', 'to', 'pass', 'through', 'ruthless', 'toy', 'killer', 'sid', 'phillips'], tags=[0]),\n", " TaggedDocument(words=['when', 'two', 'kids', 'find', 'and', 'play', 'magical', 'board', 'game', 'they', 'release', 'man', 'trapped', 'for', 'decades', 'in', 'it', 'and', 'host', 'of', 'dangers', 'that', 'can', 'only', 'be', 'stopped', 'by', 'finishing', 'the', 'game'], tags=[1])]" ] }, "execution_count": 4, "metadata": {}, "output_type": "execute_result" } ], "source": [ "train_corpus[:2]" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Training the Doc2Vec Model\n", "We'll instantiate a Doc2Vec model with a vector size with 50 words and iterating over the training corpus 55 times. We set the minimum word count to 2 in order to give higher frequency words more weighting. Model accuracy can be improved by increasing the number of iterations but this generally increases the training time. Small datasets with short documents, like this one, can benefit from more training passes." ] }, { "cell_type": "code", "execution_count": 5, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "5168238" ] }, "execution_count": 5, "metadata": {}, "output_type": "execute_result" } ], "source": [ "model = gensim.models.doc2vec.Doc2Vec(size=50, min_count=2, iter=55)\n", "model.build_vocab(train_corpus)\n", "model.train(train_corpus, total_examples=model.corpus_count, epochs=model.iter)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Now, we'll save the document embedding vectors per doctag." ] }, { "cell_type": "code", "execution_count": 9, "metadata": { "collapsed": true }, "outputs": [], "source": [ "model.save_word2vec_format('doc_tensor.w2v', doctag_vec=True, word_vec=False) " ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Prepare the Input files for Tensorboard" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Tensorboard takes two Input files. One containing the embedding vectors and the other containing relevant metadata. We'll use a gensim script to directly convert the embedding file saved in word2vec format above to the tsv format required in Tensorboard." ] }, { "cell_type": "code", "execution_count": 11, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "2017-04-20 02:23:05,284 : MainThread : INFO : running ../../gensim/scripts/word2vec2tensor.py -i doc_tensor.w2v -o movie_plot\n", "2017-04-20 02:23:05,286 : MainThread : INFO : loading projection weights from doc_tensor.w2v\n", "2017-04-20 02:23:05,464 : MainThread : INFO : loaded (1843, 50) matrix from doc_tensor.w2v\n", "2017-04-20 02:23:05,578 : MainThread : INFO : 2D tensor file saved to movie_plot_tensor.tsv\n", "2017-04-20 02:23:05,579 : MainThread : INFO : Tensor metadata file saved to movie_plot_metadata.tsv\n", "2017-04-20 02:23:05,581 : MainThread : INFO : finished running word2vec2tensor.py\n" ] } ], "source": [ "%run ../../gensim/scripts/word2vec2tensor.py -i doc_tensor.w2v -o movie_plot" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The script above generates two files, `movie_plot_tensor.tsv` which contain the embedding vectors and `movie_plot_metadata.tsv` containing doctags. But, these doctags are simply the unique index values and hence are not really useful to interpret what the document was while visualizing. So, we will overwrite `movie_plot_metadata.tsv` to have a custom metadata file with two columns. The first column will be for the movie titles and the second for their corresponding genres." ] }, { "cell_type": "code", "execution_count": 12, "metadata": { "collapsed": true }, "outputs": [], "source": [ "with smart_open('movie_plot_metadata.tsv','w') as w:\n", " w.write('Titles\\tGenres\\n')\n", " for i,j in zip(dataframe.Titles, dataframe.Genres):\n", " w.write(\"%s\\t%s\\n\" % (i,j))" ] }, { "cell_type": "markdown", "metadata": { "collapsed": true }, "source": [ "Now you can go to http://projector.tensorflow.org/ and upload the two files by clicking on *Load data* in the left panel.\n", "\n", "For demo purposes I have uploaded the Doc2Vec embeddings generated from the model trained above [here](https://github.com/parulsethi/DocViz). You can access the Embedding projector configured with these uploaded embeddings at this [link](http://projector.tensorflow.org/?config=https://raw.githubusercontent.com/parulsethi/DocViz/master/movie_plot_config.json)." ] }, { "cell_type": "markdown", "metadata": { "collapsed": true }, "source": [ "# Using Tensorboard" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "For the visualization purpose, the multi-dimensional embeddings that we get from the Doc2Vec model above, needs to be downsized to 2 or 3 dimensions. So that we basically end up with a new 2d or 3d embedding which tries to preserve information from the original multi-dimensional embedding. As these vectors are reduced to a much smaller dimension, the exact cosine/euclidean distances between them are not preserved, but rather relative, and hence as you’ll see below the nearest similarity results may change.\n", "\n", "TensorBoard has two popular dimensionality reduction methods for visualizing the embeddings and also provides a custom method based on text searches:\n", "\n", "- **Principal Component Analysis**: PCA aims at exploring the global structure in data, and could end up losing the local similarities between neighbours. It maximizes the total variance in the lower dimensional subspace and hence, often preserves the larger pairwise distances better than the smaller ones. See an intuition behind it in this nicely explained [answer](https://stats.stackexchange.com/questions/176672/what-is-meant-by-pca-preserving-only-large-pairwise-distances) on stackexchange.\n", "\n", "\n", "- **T-SNE**: The idea of T-SNE is to place the local neighbours close to each other, and almost completely ignoring the global structure. It is useful for exploring local neighborhoods and finding local clusters. But the global trends are not represented accurately and the separation between different groups is often not preserved (see the t-sne plots of our data below which testify the same).\n", "\n", "\n", "- **Custom Projections**: This is a custom method based on the text searches you define for different directions. It could be useful for finding meaningful directions in the vector space, for example, female to male, currency to country etc.\n", "\n", "You can refer to this [doc](https://www.tensorflow.org/get_started/embedding_viz) for instructions on how to use and navigate through different panels available in TensorBoard." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Visualize using PCA\n", "\n", "The Embedding Projector computes the top 10 principal components. The menu at the left panel lets you project those components onto any combination of two or three. \n", "<img src=\"pca.png\">\n", "The above plot was made using the first two principal components with total variance covered being 36.5%." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "\n", "## Visualize using T-SNE\n", "\n", "Data is visualized by animating through every iteration of the t-sne algorithm. The t-sne menu at the left lets you adjust the value of it's two hyperparameters. The first one is **Perplexity**, which is basically a measure of information. It may be viewed as a knob that sets the number of effective nearest neighbors<sup>[2]</sup>. The second one is **learning rate** that defines how quickly an algorithm learns on encountering new examples/data points.\n", "\n", "<img src=\"tsne.png\">\n", "\n", "The above plot was generated with perplexity 8, learning rate 10 and iteration 500. Though the results could vary on successive runs, and you may not get the exact plot as above with same hyperparameter settings. But some small clusters will start forming as above, with different orientations." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# 2. Visualizing LDA\n", "\n", "In this part, we will see how to visualize LDA in Tensorboard. We will be using the Document-topic distribution as the embedding vector of a document. Basically, we treat topics as the dimensions and the value in each dimension represents the topic proportion of that topic in the document.\n", "\n", "## Preprocess Text\n", "\n", "We use the movie Plots as our documents in corpus and remove rare words and common words based on their document frequency. Below we remove words that appear in less than 2 documents or in more than 30% of the documents." ] }, { "cell_type": "code", "execution_count": 3, "metadata": { "collapsed": true }, "outputs": [], "source": [ "import pandas as pd\n", "import re\n", "from gensim.parsing.preprocessing import remove_stopwords, strip_punctuation\n", "from gensim.models import ldamodel\n", "from gensim.corpora.dictionary import Dictionary\n", "\n", "# read data\n", "dataframe = pd.read_csv('movie_plots.csv')\n", "\n", "# remove stopwords and punctuations\n", "def preprocess(row):\n", " return strip_punctuation(remove_stopwords(row.lower()))\n", " \n", "dataframe['Plots'] = dataframe['Plots'].apply(preprocess)\n", "\n", "# Convert data to required input format by LDA\n", "texts = []\n", "for line in dataframe.Plots:\n", " lowered = line.lower()\n", " words = re.findall(r'\\w+', lowered, flags = re.UNICODE | re.LOCALE)\n", " texts.append(words)\n", "# Create a dictionary representation of the documents.\n", "dictionary = Dictionary(texts)\n", "\n", "# Filter out words that occur less than 2 documents, or more than 30% of the documents.\n", "dictionary.filter_extremes(no_below=2, no_above=0.3)\n", "# Bag-of-words representation of the documents.\n", "corpus = [dictionary.doc2bow(text) for text in texts]" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Train LDA Model\n" ] }, { "cell_type": "code", "execution_count": 4, "metadata": { "collapsed": true }, "outputs": [], "source": [ "# Set training parameters.\n", "num_topics = 10\n", "chunksize = 2000\n", "passes = 50\n", "iterations = 200\n", "eval_every = None\n", "\n", "# Train model\n", "model = ldamodel.LdaModel(corpus=corpus, id2word=dictionary, chunksize=chunksize, alpha='auto', eta='auto', iterations=iterations, num_topics=num_topics, passes=passes, eval_every=eval_every)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "You can refer to [this notebook](lda_training_tips.ipynb) also before training the LDA model. It contains tips and suggestions for pre-processing the text data, and how to train the LDA model to get good results." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Doc-Topic distribution\n", "\n", "Now we will use `get_document_topics` which infers the topic distribution of a document. It basically returns a list of (topic_id, topic_probability) for each document in the input corpus." ] }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "[(0, 0.00029626785677659928),\n", " (1, 0.99734244187457377),\n", " (2, 0.00031813940693891458),\n", " (3, 0.00031573036467256674),\n", " (4, 0.00033277056023999966),\n", " (5, 0.00023981837072288835),\n", " (6, 0.00033113374640540293),\n", " (7, 0.00027953838669809549),\n", " (8, 0.0002706215262517565),\n", " (9, 0.00027353790672011199)]" ] }, "execution_count": 4, "metadata": {}, "output_type": "execute_result" } ], "source": [ "# Get document topics\n", "all_topics = model.get_document_topics(corpus, minimum_probability=0)\n", "all_topics[0]" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The above output shows the topic distribution of first document in the corpus as a list of (topic_id, topic_probability).\n", "\n", "Now, using the topic distribution of a document as it's vector embedding, we will plot all the documents in our corpus using Tensorboard." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Prepare the Input files for Tensorboard\n", "\n", "Tensorboard takes two input files, one containing the embedding vectors and the other containing relevant metadata. As described above we will use the topic distribution of documents as their embedding vector. Metadata file will consist of Movie titles with their genres." ] }, { "cell_type": "code", "execution_count": 5, "metadata": { "collapsed": true }, "outputs": [], "source": [ "# create file for tensors\n", "with smart_open('doc_lda_tensor.tsv','w') as w:\n", " for doc_topics in all_topics:\n", " for topics in doc_topics:\n", " w.write(str(topics[1])+ \"\\t\")\n", " w.write(\"\\n\")\n", " \n", "# create file for metadata\n", "with smart_open('doc_lda_metadata.tsv','w') as w:\n", " w.write('Titles\\tGenres\\n')\n", " for j, k in zip(dataframe.Titles, dataframe.Genres):\n", " w.write(\"%s\\t%s\\n\" % (j, k))" ] }, { "cell_type": "markdown", "metadata": { "collapsed": true }, "source": [ "Now you can go to http://projector.tensorflow.org/ and upload these two files by clicking on Load data in the left panel.\n", "\n", "For demo purposes I have uploaded the LDA doc-topic embeddings generated from the model trained above [here](https://github.com/parulsethi/LdaProjector/). You can also access the Embedding projector configured with these uploaded embeddings at this [link](http://projector.tensorflow.org/?config=https://raw.githubusercontent.com/parulsethi/LdaProjector/master/doc_lda_config.json)." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Visualize using PCA\n", "\n", "The Embedding Projector computes the top 10 principal components. The menu at the left panel lets you project those components onto any combination of two or three.\n", "<img src=\"doc_lda_pca.png\">\n", "From PCA, we get a simplex (tetrahedron in this case) where each data point represent a document. These data points are colored according to their Genres which were given in the Movie dataset. \n", "\n", "As we can see there are a lot of points which cluster at the corners of the simplex. This is primarily due to the sparsity of vectors we are using. The documents at the corners primarily belongs to a single topic (hence, large weight in a single dimension and other dimensions have approximately zero weight.) You can modify the metadata file as explained below to see the dimension weights along with the Movie title.\n", "\n", "Now, we will append the topics with highest probability (topic_id, topic_probability) to the document's title, in order to explore what topics do the cluster corners or edges dominantly belong to. For this, we just need to overwrite the metadata file as below:" ] }, { "cell_type": "code", "execution_count": 6, "metadata": { "collapsed": true }, "outputs": [], "source": [ "tensors = []\n", "for doc_topics in all_topics:\n", " doc_tensor = []\n", " for topic in doc_topics:\n", " if round(topic[1], 3) > 0:\n", " doc_tensor.append((topic[0], float(round(topic[1], 3))))\n", " # sort topics according to highest probabilities\n", " doc_tensor = sorted(doc_tensor, key=lambda x: x[1], reverse=True)\n", " # store vectors to add in metadata file\n", " tensors.append(doc_tensor[:5])\n", "\n", "# overwrite metadata file\n", "i=0\n", "with smart_open('doc_lda_metadata.tsv','w') as w:\n", " w.write('Titles\\tGenres\\n')\n", " for j,k in zip(dataframe.Titles, dataframe.Genres):\n", " w.write(\"%s\\t%s\\n\" % (''.join((str(j), str(tensors[i]))),k))\n", " i+=1" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Next, we upload the previous tensor file \"doc_lda_tensor.tsv\" and this new metadata file to http://projector.tensorflow.org/ .\n", "<img src=\"topic_with_coordinate.png\">\n", "Voila! Now we can click on any point to see it's top topics with their probabilty in that document, along with the title. As we can see in the above example, \"Beverly hill cops\" primarily belongs to the 0th and 1st topic as they have the highest probability amongst all.\n", "\n", "\n", "\n", "## Visualize using T-SNE\n", "\n", "In T-SNE, the data is visualized by animating through every iteration of the t-sne algorithm. The t-sne menu at the left lets you adjust the value of it's two hyperparameters. The first one is Perplexity, which is basically a measure of information. It may be viewed as a knob that sets the number of effective nearest neighbors[2]. The second one is learning rate that defines how quickly an algorithm learns on encountering new examples/data points.\n", "\n", "Now, as the topic distribution of a document is used as it’s embedding vector, t-sne ends up forming clusters of documents belonging to same topics. In order to understand and interpret about the theme of those topics, we can use `show_topic()` to explore the terms that the topics consisted of.\n", "\n", "<img src=\"doc_lda_tsne.png\">\n", "\n", "The above plot was generated with perplexity 11, learning rate 10 and iteration 1100. Though the results could vary on successive runs, and you may not get the exact plot as above even with same hyperparameter settings. But some small clusters will start forming as above, with different orientations.\n", "\n", "I named some clusters above based on the genre of it's movies and also using the `show_topic()` to see relevant terms of the topic which was most prevalent in a cluster. Most of the clusters had documents belonging dominantly to a single topic. For ex. The cluster with movies belonging primarily to topic 0 could be named Fantasy/Romance based on terms displayed below for topic 0. You can play with the visualization yourself on this [link](http://projector.tensorflow.org/?config=https://raw.githubusercontent.com/parulsethi/LdaProjector/master/doc_lda_config.json) and try to conclude a label for clusters based on movies it has and dominant topic. You can see the top 5 topics of every point by hovering over it.\n", "\n", "Now, we can notice that there are more than 10 clusters in the above image, whereas we trained our model for `num_topics=10`. It's because there are few clusters, which has documents belonging to more than one topic with an approximately close topic probability values." ] }, { "cell_type": "code", "execution_count": 14, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "[('life', 0.0069577926389817156),\n", " ('world', 0.006240163206609986),\n", " ('man', 0.0058828040298109794),\n", " ('young', 0.0053747678629860532),\n", " ('family', 0.005083746467542196),\n", " ('love', 0.0048691281379952146),\n", " ('new', 0.004097644507005606),\n", " ('t', 0.0037446821043766597),\n", " ('time', 0.0037022423231064822),\n", " ('finds', 0.0036129806190553109),\n", " ('woman', 0.0031742920620375422),\n", " ('earth', 0.0031692677510459484),\n", " ('help', 0.0031061538189201504),\n", " ('it', 0.0028658594310878023),\n", " ('years', 0.00272218005397741)]" ] }, "execution_count": 14, "metadata": {}, "output_type": "execute_result" } ], "source": [ "model.show_topic(topicid=0, topn=15)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "You can even use pyLDAvis to deduce topics more efficiently. It provides a deeper inspection of the terms highly associated with each individual topic. For this, it uses a measure called **relevance** of a term to a topic that allows users to flexibly rank terms best suited for a meaningful topic interpretation. It's weight parameter called λ can be adjusted to display useful terms which could help in differentiating topics efficiently." ] }, { "cell_type": "code", "execution_count": 5, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "/Users/parul/.virtualenvs/gensim3/lib/python3.4/site-packages/pyLDAvis/_prepare.py:387: DeprecationWarning: \n", ".ix is deprecated. Please use\n", ".loc for label based indexing or\n", ".iloc for positional indexing\n", "\n", "See the documentation here:\n", "http://pandas.pydata.org/pandas-docs/stable/indexing.html#deprecate_ix\n", " topic_term_dists = topic_term_dists.ix[topic_order]\n" ] }, { "data": { "text/html": [ "\n", "<link rel=\"stylesheet\" type=\"text/css\" href=\"https://cdn.rawgit.com/bmabey/pyLDAvis/files/ldavis.v1.0.0.css\">\n", "\n", "\n", "<div id=\"ldavis_el2617146404026722199990525\"></div>\n", "<script type=\"text/javascript\">\n", "\n", "var ldavis_el2617146404026722199990525_data = {\"topic.order\": [2, 6, 5, 10, 3, 7, 9, 1, 8, 4], \"plot.opts\": {\"xlab\": \"PC1\", \"ylab\": \"PC2\"}, \"tinfo\": {\"loglift\": [30.0, 29.0, 28.0, 27.0, 26.0, 25.0, 24.0, 23.0, 22.0, 21.0, 20.0, 19.0, 18.0, 17.0, 16.0, 15.0, 14.0, 13.0, 12.0, 11.0, 10.0, 9.0, 8.0, 7.0, 6.0, 5.0, 4.0, 3.0, 2.0, 1.0, 1.8363, 1.772, 1.761, 1.7218, 1.7098, 1.7052, 1.7003, 1.6791, 1.6733, 1.6733, 1.6733, 1.6733, 1.6733, 1.6733, 1.6733, 1.6677, 1.6592, 1.642, 1.633, 1.6322, 1.6305, 1.6146, 1.5958, 1.5886, 1.5877, 1.5877, 1.5877, 1.5877, 1.5877, 1.5877, 1.537, 1.5194, 1.4974, 1.4972, 1.4963, 1.3681, 1.2826, 0.5785, 1.2949, 1.1357, 1.0971, 0.674, 1.032, 0.2521, 0.9405, 1.0208, 0.0735, 1.3419, 0.2652, 0.251, 0.3077, 0.3087, -0.0351, -0.1106, 0.3434, 0.0713, 0.136, 0.2652, 0.1393, -0.1111, 0.2853, -0.123, 0.0231, 0.3057, -0.1644, -0.3184, -0.1771, 0.0396, 0.0005, 0.1415, 0.2397, 0.0483, -0.2588, 0.1198, -0.1801, -0.1224, -0.1472, 2.1418, 2.137, 2.1204, 2.0513, 2.0362, 2.0159, 2.0084, 2.0076, 1.9748, 1.9704, 1.9647, 1.9598, 1.9531, 1.9338, 1.9326, 1.9324, 1.9227, 1.9225, 1.8768, 1.8741, 1.8741, 1.8741, 1.8741, 1.8741, 1.8741, 1.8741, 1.8741, 1.8741, 1.8741, 1.8623, 1.8254, 1.7346, 1.5997, 1.7324, 1.7248, 1.7167, 1.7016, 1.6858, 1.4264, 1.3451, 1.5221, 0.4878, 0.1855, 1.1771, 0.1254, 1.3027, 0.2, 0.0111, 1.0285, -0.0846, -0.0559, 0.3918, 0.2464, 0.5915, 0.1683, 0.3225, -0.0581, 0.0961, 0.2152, 0.2516, 0.1721, 0.0534, 0.0997, -0.0897, 0.2209, -0.1813, 0.1399, -0.1176, 0.257, 0.2191, 0.0213, -0.0743, 0.1735, -0.1716, 0.0136, -0.1479, -0.1831, 2.1388, 2.1346, 2.1205, 2.0314, 2.0076, 1.9761, 1.9759, 1.9759, 1.9402, 1.9402, 1.939, 1.9175, 1.8802, 1.8795, 1.8795, 1.8795, 1.8795, 1.8795, 1.8795, 1.8795, 1.8795, 1.8519, 1.847, 1.843, 1.8413, 1.8373, 1.828, 1.828, 1.8186, 1.7982, 1.7797, 1.7762, 1.772, 1.7378, 1.7071, 1.6831, 1.5699, 1.7061, 1.7061, 1.5703, 1.7033, 1.7018, 1.556, 1.6936, 1.6874, 1.6834, 1.4285, 1.4145, 0.6601, 0.2085, 0.0003, 0.3892, 0.7163, 0.0637, 0.5693, 0.1314, 0.4287, 0.1517, 0.222, 0.0695, 0.5853, -0.1613, 0.2762, 0.2485, -0.0884, -0.157, 0.4489, 0.2252, 0.744, -0.0033, 0.147, 0.0709, 0.331, -0.1436, 0.3666, 0.0452, -0.1154, 0.2864, -0.0555, -0.1368, -0.2865, -0.1944, 0.1207, 0.0659, -0.2604, 2.1091, 2.0924, 2.0725, 2.0598, 2.0275, 2.0238, 2.0109, 1.9812, 1.969, 1.8915, 1.8879, 1.8844, 1.8844, 1.8844, 1.8844, 1.8844, 1.8844, 1.8844, 1.8844, 1.8844, 1.8844, 1.8844, 1.8764, 1.8743, 1.8716, 1.8681, 1.8657, 1.8639, 1.8627, 1.8625, 1.8614, 1.7847, 1.7667, 1.7396, 1.7729, 1.7064, 1.6867, 1.686, 1.684, 1.6204, 1.5461, 1.4205, 0.6006, 1.4567, 0.1893, 1.3432, 1.5457, 0.8146, 0.7013, 0.0908, 0.191, 0.4122, 0.1481, -0.1433, 0.4162, 0.2714, 0.7771, 0.1435, 0.6719, 0.1287, 0.1521, 0.3151, 0.6696, 0.7165, -0.0489, -0.2186, 0.2714, 0.0915, 0.0311, -0.2392, -0.0075, -0.0508, 0.115, 0.1505, 0.2163, 0.0464, 0.1296, 0.1426, -0.2447, 0.0108, -0.35, -0.4054, 2.0982, 2.0833, 2.0736, 2.0736, 2.0425, 2.0374, 2.0374, 2.0374, 1.9984, 1.982, 1.982, 1.982, 1.982, 1.9606, 1.9577, 1.9564, 1.9487, 1.9397, 1.9385, 1.9255, 1.9193, 1.9139, 1.9132, 1.9009, 1.8853, 1.8853, 1.8853, 1.8853, 1.8853, 1.8853, 1.7935, 1.4502, 1.6843, 1.7084, 1.685, 1.2944, 0.5773, 0.8272, 0.9616, 1.3573, 0.3872, 0.4279, 0.1959, 0.135, -0.082, 0.2453, 0.182, 0.1125, -0.1157, 0.3951, 0.6329, -0.0084, 0.0529, 0.4354, 0.4124, -0.1728, 0.413, 0.276, 0.081, 0.2888, 0.2068, 0.1139, -0.2188, -0.108, 0.0975, -0.0684, -0.0977, 0.1746, -0.0661, -0.0213, 2.1276, 2.0884, 2.0828, 2.0545, 1.9909, 1.9909, 1.9909, 1.9909, 1.9908, 1.9863, 1.9772, 1.9731, 1.9623, 1.951, 1.9343, 1.932, 1.8937, 1.8937, 1.8937, 1.8937, 1.8937, 1.8937, 1.8937, 1.8937, 1.8937, 1.8937, 1.8937, 1.8937, 1.8835, 1.8751, 1.862, 1.8728, 1.8296, 1.8248, 1.7768, 1.6973, 1.6309, 1.6241, 1.716, 1.2367, 1.6757, 0.9397, 1.3776, 0.2432, 0.297, 0.2841, 1.1353, 0.4153, -0.0548, 0.2834, 0.0888, 0.5039, 0.0617, 0.2485, 0.5017, 0.7829, -0.1359, 0.4548, 0.2264, 0.0525, 0.7256, -0.0342, -0.0901, 0.0073, -0.006, 0.351, 0.2279, 0.2203, -0.0934, 0.0242, -0.109, -0.0259, -0.2077, -0.389, 0.1471, -0.1375, -0.0639, 0.136, -0.0181, -0.1545, 2.0252, 2.0252, 2.0252, 1.9264, 1.9264, 1.9264, 1.9264, 1.9264, 1.9264, 1.9264, 1.9264, 1.9264, 1.9264, 1.9264, 1.9264, 1.9096, 1.9093, 1.9085, 1.9059, 1.9043, 1.8933, 1.892, 1.8916, 1.8915, 1.8872, 1.8867, 1.8854, 1.8647, 1.8369, 1.8294, 1.8294, 1.8063, 1.7004, 1.655, 1.4321, 1.7488, 1.6554, 1.7467, 1.7467, 1.6471, 1.6902, 1.7311, 1.5391, 1.543, 1.7152, 1.549, 0.9666, 1.5828, 0.5787, 1.2197, 0.718, 1.4679, 0.1612, 0.9947, 1.3392, 0.0278, 0.1909, 0.3836, 0.1104, -0.0651, -0.031, 0.2742, 0.266, 0.2338, 0.1488, 0.4915, 0.2212, 0.2826, -0.0556, 0.0781, 0.1508, 0.3802, 0.3444, 0.2994, -0.09, -0.0957, -0.1461, 0.3117, 0.2307, 0.0245, -0.019, 0.1207, -0.1495, 0.1142, -0.0651, -0.2042, -0.0627, 2.1631, 2.1002, 2.0761, 2.0681, 2.0308, 2.0308, 2.0308, 2.0055, 1.9782, 1.9592, 1.9484, 1.9318, 1.9318, 1.9318, 1.9318, 1.9318, 1.9318, 1.9318, 1.9318, 1.9318, 1.9318, 1.9318, 1.9318, 1.9318, 1.9317, 1.9316, 1.9264, 1.9122, 1.9121, 1.9109, 1.8924, 1.8343, 1.7599, 1.8122, 1.8035, 1.624, 1.6603, 1.7553, 1.4441, 1.4826, 1.5777, 1.4334, 1.2339, 0.9263, 0.1611, 0.2685, 1.0234, 0.3307, 0.5727, -0.0385, 0.0939, 0.4917, 0.1235, 0.1006, 0.6373, 0.1867, 0.2687, 0.3613, 0.2005, 0.106, 0.1645, 0.2233, 0.1039, -0.0765, 0.1191, 0.0084, -0.3323, -0.0282, 0.3056, 0.2441, 0.1097, 0.0479, -0.3551, 0.3953, -0.0348, 0.0275, -0.1793, 2.4244, 2.2674, 2.2521, 2.2252, 2.2252, 2.2252, 2.2252, 2.2252, 2.2052, 2.1843, 2.1702, 2.1698, 2.1678, 2.1625, 2.1397, 2.0502, 2.0106, 2.0032, 1.9102, 1.8953, 1.88, 1.8783, 1.8343, 1.8166, 1.8127, 1.7399, 1.7154, 1.7068, 1.7061, 1.6996, 1.6686, 1.6826, 1.6116, 1.5439, 1.5248, 0.6819, 0.8034, 1.1562, 0.1616, 0.3027, 1.4635, 0.0764, 0.7635, 0.3488, 0.3039, -0.1306, 0.0539, 0.5231, -0.0207, 0.0474, 0.4942, 0.1268, -0.2225, -0.0576, 0.4693, 0.0156, -0.1274, -0.0626, 0.0955, -0.0777, 0.0704, -0.0522, -0.0706, 0.0067, 0.0999, 0.0645, 0.0444, -0.1379, -0.0359, -0.0399, -0.0461, 2.5787, 2.529, 2.4792, 2.4639, 2.4252, 2.3897, 2.3048, 2.3048, 2.3048, 2.3048, 2.3048, 2.3048, 2.3048, 2.3048, 2.3048, 2.2844, 2.2833, 2.2725, 2.2674, 2.2481, 2.2269, 2.2262, 2.1635, 2.1334, 2.1127, 2.0958, 2.0955, 1.9637, 1.9628, 1.9626, 1.8941, 1.8956, 1.9246, 1.8776, 1.7799, 1.5977, 1.5215, 0.6657, 0.0648, 1.2646, 1.2574, 1.5417, 1.5317, 1.6484, 0.0054, 0.1709, 1.7917, 1.7888, 0.0474, 0.2073, 0.2293, 0.7916, -0.0079, 0.1188, 0.0528, 0.4289, -0.0077, 0.2084, 0.0023, 0.2555, -0.2349, -0.1143, 0.0521, -0.0133, 0.2608, 0.5311, 0.392, 0.177, -0.1053, 0.0548, 0.0503, -0.0488, 0.0128, -0.03, -0.123, -0.0854, -0.219], \"Total\": [286.0, 11.0, 367.0, 18.0, 136.0, 11.0, 220.0, 240.0, 237.0, 9.0, 27.0, 104.0, 12.0, 71.0, 34.0, 10.0, 14.0, 8.0, 192.0, 165.0, 413.0, 6.0, 79.0, 79.0, 142.0, 8.0, 140.0, 25.0, 5.0, 251.0, 9.20741833188705, 7.080941191207317, 4.305089743301135, 3.0040137280038297, 3.046592730816116, 3.063102178936273, 3.080736008720939, 8.592920932513687, 2.385210726502207, 2.385211727139331, 2.3852128574016294, 2.3852142900101465, 2.3852146178244276, 2.385216116147507, 2.3852208088896987, 8.68109766766657, 2.425258926321013, 2.4750871945849124, 2.501755891902984, 2.5025222259655866, 9.889131107711803, 2.5563247087444254, 12.769044548946423, 7.749207158799615, 1.7604399929476238, 1.7604406220934101, 1.7604406536419173, 1.7604407306950145, 1.7604410800307613, 1.7604411801424922, 5.504604038191591, 4.68998985508629, 4.794345236164641, 4.7953158040837796, 4.806359492303937, 10.993034682591514, 14.102606049742036, 188.3838514442058, 9.675410804160727, 17.56380408268066, 19.698472663733217, 83.96262920297133, 22.93267659575654, 240.0939254491927, 25.737967624475786, 19.813136931767254, 413.45596915401336, 6.8735631298431565, 177.0960740972134, 164.82725814835615, 138.20977693575614, 124.60386568537982, 307.0401711541881, 367.9403640244572, 104.07712927807444, 203.7003808798816, 165.90577197387603, 113.93116111392182, 150.05224274042425, 251.91034860151348, 103.2169074907798, 237.10515668744088, 169.61275055684354, 90.07704158580415, 220.28084727779594, 286.20435158982235, 214.1687754526487, 140.4740098720093, 142.45521355711222, 111.88977005447975, 94.89096315108864, 126.62024605820262, 192.03171213583818, 109.32431483333309, 165.97315962779723, 149.2491109972445, 147.5209680605826, 5.879827104557306, 11.820028009998259, 4.81910313326247, 11.65644174963009, 3.315644319217625, 2.715199830140988, 2.738635609735906, 2.741295457625405, 2.8456172927322423, 2.146194401035084, 7.1186936666723195, 2.172827926976873, 2.1896874966207514, 2.2395557855877914, 7.37478498417435, 2.243052992009372, 2.268641301097508, 2.2691523385264234, 5.493717223327225, 1.6010963110125103, 1.6010980428383679, 1.6010983553072986, 1.6010984316325967, 1.6010993424415771, 1.6010996446509325, 1.6010998137533532, 1.601101007579108, 1.6011023100919686, 1.6011049043964916, 1.6236583669239384, 5.010065085786075, 4.616653387956005, 9.773918912209064, 3.7103113808501393, 3.7444401503500635, 3.776391189291251, 3.826261883339574, 3.8975183826873883, 10.146912858895412, 12.703519177553744, 5.904230420228057, 220.28084727779594, 413.45596915401336, 18.37959100935074, 367.9403640244572, 11.633924108448399, 192.03171213583818, 251.91034860151348, 20.715619605773085, 307.0401711541881, 286.20435158982235, 92.43381966269361, 130.23402957217888, 56.535386661647976, 150.05224274042425, 105.03982405181907, 237.10515668744088, 165.90577197387603, 126.62024605820262, 116.80472489849073, 129.91520524534604, 164.82725814835615, 149.2491109972445, 214.1687754526487, 113.93116111392182, 240.0939254491927, 130.3922957564839, 203.7003808798816, 103.2169074907798, 110.23613974715263, 153.91403308884938, 177.0960740972134, 118.52550781475259, 188.3838514442058, 140.4740098720093, 169.61275055684354, 165.97315962779723, 6.509245017517645, 5.945404983148873, 5.4375438068495345, 2.6750814487022536, 2.7495781799448666, 2.138507732646491, 2.1390034417318864, 2.1390923750988273, 2.229551051996681, 2.2295515999246467, 2.232786988761711, 2.2893471302677444, 7.037522773556156, 1.5959711718535026, 1.5959714806813485, 1.5959717351477214, 1.5959721219603122, 1.595972656288464, 1.5959738632039517, 1.5959749262243514, 1.5959767754600096, 1.648792089178208, 1.6582882416921125, 1.6662915297177374, 1.6694703429085238, 1.6771651585118315, 1.6961464653028133, 1.6961466894906037, 1.7151827542209157, 1.757442986150444, 7.904243246452841, 4.409385756899646, 4.41442484005944, 7.240376108547063, 5.663537574759712, 5.825629395949554, 10.97437794066554, 3.8173910863786915, 3.817407493037804, 7.7351796761406675, 3.828064767978227, 3.8338031458082598, 7.645402706267699, 3.872151467759723, 3.901929210774491, 3.9163286513679103, 11.799719532741687, 10.580837068361763, 71.0667221853692, 237.10515668744088, 413.45596915401336, 142.45521355711222, 56.63399019890999, 307.0401711541881, 79.70314944399591, 240.0939254491927, 108.85364444557894, 214.1687754526487, 153.91403308884938, 220.28084727779594, 63.07042195700288, 367.9403640244572, 130.3210922477003, 130.23402957217888, 251.91034860151348, 286.20435158982235, 78.35429426826063, 124.60386568537982, 41.819449185592504, 188.3838514442058, 129.91520524534604, 149.2491109972445, 89.79914957693501, 203.7003808798816, 82.72854064086525, 138.20977693575614, 177.0960740972134, 92.43381966269361, 147.5209680605826, 164.82725814835615, 192.03171213583818, 169.61275055684354, 111.88977005447975, 118.52550781475259, 165.90577197387603, 6.141519012159703, 5.011894745161853, 4.486137952983902, 3.2516086783795544, 2.6993483982007054, 3.388689504937029, 2.7513431600041676, 2.1356103732206058, 2.1662009545957455, 2.3709321096998766, 5.465434431202462, 1.5940375373707951, 1.594038734042631, 1.5940391032854868, 1.594041121101168, 1.5940431640815225, 1.5940432824440254, 1.5940437405156382, 1.5940450970679672, 1.594045421274782, 1.5940504697384752, 1.5940505460888634, 1.609149373471013, 1.613250098307878, 1.6182345940330234, 1.6249380570375747, 1.629554542933414, 1.6330532336082484, 1.63543273960162, 1.6358345519069482, 5.637792693295086, 4.382465617914136, 4.461538865409268, 4.034745007599822, 2.704641831259727, 3.83185655068532, 3.9059699626515307, 3.909371100335583, 3.9375803903510396, 5.188823747885161, 5.767982511202354, 7.8912286953154664, 110.90617273181648, 6.348435202960999, 367.9403640244572, 8.69604906162444, 4.537080649226447, 37.21909485624612, 50.738575763775415, 251.91034860151348, 192.03171213583818, 105.03982405181907, 203.7003808798816, 413.45596915401336, 99.62854977174658, 130.3922957564839, 36.51646929433264, 169.61275055684354, 46.34925870951475, 165.90577197387603, 153.91403308884938, 105.32368132313414, 45.59051382203555, 39.59129575938088, 214.1687754526487, 307.0401711541881, 104.13854813938632, 150.05224274042425, 165.97315962779723, 286.20435158982235, 177.0960740972134, 188.3838514442058, 136.3130982738326, 126.62024605820262, 111.02568231486322, 147.5209680605826, 124.60386568537982, 116.05069975800765, 220.28084727779594, 142.45521355711222, 237.10515668744088, 240.0939254491927, 4.9860939378286915, 4.418370638504934, 3.204960906449161, 3.204961435769124, 3.3208895606155915, 2.6722925548338763, 2.6722927741954012, 2.6722977344698537, 2.7952840801455983, 2.136422197617795, 2.1364302571513174, 2.1364307985260647, 2.1364331196367243, 2.1903631017028165, 2.1976640865816455, 2.933961174174978, 2.2208625186740014, 6.646363815687984, 2.247218395990999, 3.791190315162749, 2.298215272989729, 2.3128894723273534, 2.3148264690010607, 2.348273275974992, 1.5945822489116699, 1.5945829537289389, 1.594583131230064, 1.5945832458884122, 1.594583356459968, 1.5945834363876323, 4.363608973311317, 19.219157053829793, 4.897932305468507, 3.8274995154510525, 3.9617950169594107, 19.429446925992835, 286.20435158982235, 79.92441018351099, 44.7547288898882, 12.444753870753317, 147.5209680605826, 130.37408403458775, 203.7003808798816, 237.10515668744088, 413.45596915401336, 165.97315962779723, 192.03171213583818, 220.28084727779594, 367.9403640244572, 104.13854813938632, 58.215083381878586, 251.91034860151348, 214.1687754526487, 88.93413388613568, 89.79914957693501, 307.0401711541881, 83.37279123435933, 110.23613974715263, 153.91403308884938, 97.56569919602299, 111.88977005447975, 130.3210922477003, 240.0939254491927, 188.3838514442058, 129.91520524534604, 169.61275055684354, 177.0960740972134, 111.02568231486322, 150.05224274042425, 138.20977693575614, 4.247462663572447, 3.80665917601725, 3.1925449135680086, 3.297526443536358, 2.1289778898958542, 2.1289791322281197, 2.128981148043162, 2.1289826481676517, 2.128990358498044, 8.474001535798717, 2.1628561686020262, 2.1732303950919114, 2.2007451744127846, 3.6866558650179644, 8.197645245484045, 5.991870712394224, 1.5896175896146656, 1.5896180598290124, 1.589619204815074, 1.5896204871470863, 1.5896232426227548, 1.5896236711228395, 1.5896240160879647, 1.589624229779442, 1.589625828875943, 1.589626055634516, 1.5896276812250987, 1.58963219623517, 2.41251024612086, 1.62489487226464, 8.05202381652919, 2.4412773386604143, 5.045715323235863, 4.23706864417371, 4.461122984288316, 4.854701935152264, 6.304198857632155, 6.3539132397059355, 3.818532385953314, 27.95116857257051, 3.949378744634473, 45.00133298312161, 9.896091177452503, 367.9403640244572, 307.0401711541881, 251.91034860151348, 20.441111333521857, 142.45521355711222, 413.45596915401336, 149.2491109972445, 237.10515668744088, 83.37279123435933, 214.1687754526487, 130.37408403458775, 72.12208797566909, 37.31776242441155, 286.20435158982235, 73.45045362711643, 116.80472489849073, 165.97315962779723, 40.76925231764464, 192.03171213583818, 203.7003808798816, 164.82725814835615, 165.90577197387603, 84.42141569980241, 105.32368132313414, 106.15413964503264, 177.0960740972134, 138.20977693575614, 169.61275055684354, 147.5209680605826, 188.3838514442058, 240.0939254491927, 108.85364444557894, 153.91403308884938, 140.4740098720093, 109.32431483333309, 130.23402957217888, 150.05224274042425, 2.096966539117973, 2.096968571773594, 2.0969918941716372, 1.5682764648293273, 1.5682777906131111, 1.568277827087935, 1.5682783769877309, 1.5682789174860554, 1.5682790792896513, 1.5682794195033498, 1.5682809864420069, 1.5682816494405152, 1.5682833148219324, 1.5682855430483074, 1.5682928999823211, 1.5996460016033507, 1.600165415192468, 1.60168092867821, 1.606682449384849, 1.6096098932765486, 1.6301879690395429, 1.633204588731981, 1.6335021155434817, 1.6341418721141074, 1.6425165472646652, 1.6433798385077094, 1.6460413118556105, 1.6833268739901799, 8.519511438996972, 4.2996652747114075, 4.29966852976523, 4.416069769679053, 6.960894859607672, 8.287646713724614, 27.594572798407896, 3.7878396559720016, 6.270864117903531, 3.7749014576953437, 3.775157624882165, 6.3366691454157245, 4.965069687795993, 3.8481851197539676, 9.559284020179543, 8.200052246819288, 3.9259934386809374, 7.008046419754069, 60.04581165124319, 5.690255775295681, 165.97315962779723, 16.664498796252545, 79.1535960472758, 6.427567520371815, 307.0401711541881, 26.092405601108798, 9.12382026641523, 413.45596915401336, 240.0939254491927, 126.62024605820262, 251.91034860151348, 367.9403640244572, 286.20435158982235, 130.23402957217888, 130.37408403458775, 140.4740098720093, 169.61275055684354, 75.56691652781566, 136.3130982738326, 113.93116111392182, 237.10515668744088, 177.0960740972134, 150.05224274042425, 91.00644266642132, 96.94804300560413, 99.62854977174658, 214.1687754526487, 203.7003808798816, 220.28084727779594, 94.0387904922639, 108.85364444557894, 153.91403308884938, 164.82725814835615, 129.91520524534604, 192.03171213583818, 130.3210922477003, 165.90577197387603, 188.3838514442058, 149.2491109972445, 4.197782708820302, 3.8644964911401085, 3.310856722035343, 2.6733075191834095, 2.092815656693464, 2.0928157501482794, 2.0928242330208904, 2.154983345016893, 2.224432114906451, 3.7412817454113823, 2.3016345050860827, 1.5655106646854755, 1.565510947872712, 1.5655113896360624, 1.565511515312304, 1.5655117417212998, 1.565511934940774, 1.565512122595995, 1.5655160163564965, 1.5655162534558826, 1.5655182770035032, 1.5655203736830352, 1.5655249090845937, 1.565543653811031, 1.565833578631508, 1.5657945916879707, 10.832968414049065, 1.601950637176238, 1.6022477929086556, 1.6045670231065794, 5.646970579955241, 4.294134771566185, 9.302283977366432, 4.3902084490675195, 4.447972400490136, 11.902278586862208, 6.262822931520821, 3.7564757786819594, 13.17055950297699, 10.023799563362147, 6.611801241655579, 8.119345932188958, 14.102606049742036, 34.54588836457699, 307.0401711541881, 220.28084727779594, 23.013146249708807, 164.82725814835615, 79.92441018351099, 413.45596915401336, 286.20435158982235, 97.56569919602299, 240.0939254491927, 214.1687754526487, 58.475080168979616, 169.61275055684354, 130.3210922477003, 105.03982405181907, 147.5209680605826, 177.0960740972134, 149.2491109972445, 130.37408403458775, 165.90577197387603, 237.10515668744088, 153.91403308884938, 192.03171213583818, 367.9403640244572, 203.7003808798816, 105.32368132313414, 116.05069975800765, 130.3922957564839, 142.45521355711222, 251.91034860151348, 78.95385959321226, 150.05224274042425, 129.91520524534604, 165.97315962779723, 2.7596268056816506, 1.9774217761184498, 5.290860178802779, 1.383601748070882, 1.3836027308213965, 1.383603702650099, 1.3836159435278024, 1.3836201824815624, 1.4158333531343708, 1.4504462776149014, 1.4734503815629192, 1.475069987640709, 1.478448978869293, 1.4876925197471271, 8.085094031571423, 1.6918957965540804, 3.457135494738797, 3.487877707550263, 4.786358910228879, 2.9510267845218547, 3.006906462440233, 3.0132734338839366, 3.081942169842056, 4.21048195147495, 5.386578655153753, 4.716183551377617, 3.5571080430338133, 7.305820271315643, 3.5903135058975164, 2.4680794269603332, 18.37959100935074, 8.119345932188958, 6.8030651853556225, 8.52717693845072, 8.744582708260321, 104.55971134884736, 71.06503902781239, 25.006596405206405, 367.9403640244572, 237.10515668744088, 9.511099746481015, 286.20435158982235, 50.662863698695276, 140.4740098720093, 149.2491109972445, 413.45596915401336, 240.0939254491927, 78.41152804562286, 251.91034860151348, 214.1687754526487, 71.96547342765763, 150.05224274042425, 307.0401711541881, 203.7003808798816, 70.60705625747869, 169.61275055684354, 220.28084727779594, 192.03171213583818, 138.20977693575614, 188.3838514442058, 142.45521355711222, 165.90577197387603, 165.97315962779723, 136.3130982738326, 116.80472489849073, 116.05069975800765, 118.52550781475259, 147.5209680605826, 129.91520524534604, 130.23402957217888, 130.3210922477003, 4.411032517777749, 3.10743582668478, 2.1900885648984745, 2.7842382971030797, 1.74496150999106, 1.8163535131060848, 1.3336077220434244, 1.3336087635026814, 1.3336098639140377, 1.3336110731438193, 1.3336126614614554, 1.3336138223672704, 1.333614546806408, 1.3336179862937851, 1.3336180344650628, 1.3652110396786576, 1.3669211339244143, 1.3839711318892673, 1.392037793691729, 1.4233592890433089, 1.458590079990212, 1.4592673014977602, 3.854459744203176, 3.964962242264239, 5.578523618793135, 4.909381181232915, 3.3065094772195978, 2.8763073906144285, 2.8789596235058292, 2.879569063069409, 5.179364592852991, 5.058158513612044, 3.944641781121398, 5.2919732939282635, 8.056527583292144, 11.454514417907696, 12.707875847204292, 136.3130982738326, 413.45596915401336, 18.909234341286382, 19.241589904698433, 9.243603370616057, 9.383503829920688, 6.7505297544624, 367.9403640244572, 240.0939254491927, 4.658296636597626, 4.672151687818183, 286.20435158982235, 192.03171213583818, 165.90577197387603, 44.39925809424003, 251.91034860151348, 188.3838514442058, 214.1687754526487, 96.94804300560413, 220.28084727779594, 140.4740098720093, 203.7003808798816, 124.60386568537982, 307.0401711541881, 237.10515668744088, 164.82725814835615, 177.0960740972134, 104.90831305579717, 65.40456378208177, 79.70314944399591, 109.32431483333309, 169.61275055684354, 130.3210922477003, 130.23402957217888, 147.5209680605826, 129.91520524534604, 138.20977693575614, 153.91403308884938, 142.45521355711222, 165.97315962779723], \"Freq\": [286.0, 11.0, 367.0, 18.0, 136.0, 11.0, 220.0, 240.0, 237.0, 9.0, 27.0, 104.0, 12.0, 71.0, 34.0, 10.0, 14.0, 8.0, 192.0, 165.0, 413.0, 6.0, 79.0, 79.0, 142.0, 8.0, 140.0, 25.0, 5.0, 251.0, 8.540213112793571, 6.158364709749388, 3.703202932820447, 2.4848865878594673, 2.4899987782308344, 2.4919807195763077, 2.4940972655382234, 6.810811295384091, 1.8795383898171474, 1.8795385099619162, 1.879538645670583, 1.8795388176814105, 1.8795388570414875, 1.8795390369425642, 1.8795396003919478, 6.8027272057903, 1.884346720620691, 1.8903281494689272, 1.893529707713892, 1.8925159116751773, 7.466277875812998, 1.8995702864671584, 9.311539237340995, 5.610205269645813, 1.2734736397186852, 1.2734737152590265, 1.2734737190469885, 1.2734737282986053, 1.273473770242683, 1.273473782262912, 3.7850209798250054, 3.168530873941016, 3.1684272080472557, 3.168427634884792, 3.1729205566308623, 6.383886809906574, 7.519032640435866, 49.67297575712989, 5.222157087106618, 8.085176264297672, 8.724377765606242, 24.35628278702173, 9.5158935406651, 45.673897359522314, 9.746201960556691, 8.129873309476933, 65.79258359786678, 3.8883670520204223, 34.135565878636754, 31.321462145687974, 27.79727737613163, 25.084849668237815, 43.828236557072906, 48.702306158191824, 21.692080385654894, 32.3441833081989, 28.103196296217764, 21.959811655627117, 25.502157627673377, 33.32951315814853, 20.29848826448312, 30.997711711578745, 25.66408961594006, 18.08084478761884, 27.63158889531277, 30.77658559068454, 26.52635886065158, 21.60907995126296, 21.072969484011292, 19.056538957132506, 17.82958589897246, 19.647449985131374, 21.91792562028, 18.221641853426668, 20.495172150975836, 19.525255012459997, 18.824756131748956, 5.305255885321922, 10.613379756894593, 4.256215186871183, 9.607017997947954, 2.691779393223663, 2.1599621573329086, 2.162326822422583, 2.162681443645493, 2.1725890901361193, 1.6314145206721562, 5.38037417450204, 1.6341901485156307, 1.6359470535019751, 1.6411414988901059, 5.398160967830611, 1.641498557180923, 1.6441516323921979, 1.644204384468213, 3.8030223489991553, 1.1053583727646368, 1.1053585532511734, 1.1053585858158859, 1.1053585937703183, 1.105358688692536, 1.1053587201880348, 1.1053587378114682, 1.1053588622289436, 1.105358997973567, 1.1053592683454496, 1.1077096903106567, 3.2943595618384536, 2.7720140297294833, 5.128419580727556, 2.223017128719006, 2.2265741196119113, 2.227298850327043, 2.223017038725305, 2.228928435905459, 4.476934468009444, 5.167343728790357, 2.8665868715808647, 38.01654875083914, 52.74330833355533, 6.320072502521429, 44.198830387509155, 4.535444634718835, 24.852553160615166, 26.992142180176394, 6.139545207159518, 29.894960847434366, 28.67967342455181, 14.49289278493137, 17.65615577513265, 10.823285180345346, 18.814509844310404, 15.365961402996938, 23.707625435514863, 19.35259132728554, 16.63961924755844, 15.918678325658407, 16.35180986697736, 18.424584140871342, 17.473660385332156, 20.747293877742997, 15.056872340092966, 21.222982122019413, 15.890940197882628, 19.189919531162456, 14.142498878642243, 14.542895132403938, 16.660449445173747, 17.421836206817144, 14.938652957686612, 16.81491908345063, 15.0891226926904, 15.501929487726072, 14.645278076805694, 5.814445824281552, 5.288511964372736, 4.768870505922142, 2.146296995992769, 2.1540219293988883, 1.6234328903540522, 1.6234842992105372, 1.6234935222840678, 1.6328717447899568, 1.6328718016176205, 1.6332097371911058, 1.6389862634966077, 4.853890795162356, 1.09995037675739, 1.0999504087851721, 1.0999504351752645, 1.099950475290671, 1.0999505307045616, 1.0999506558708438, 1.0999507661141168, 1.099950957893875, 1.1054275890799328, 1.1064122329427748, 1.1072427591415646, 1.107571287520058, 1.1081452545135946, 1.1103330175144723, 1.1103330407645413, 1.112284706332273, 1.1166846778903805, 4.930275707415133, 2.740752228591287, 2.7323698311520146, 4.330751107576503, 3.285409464022272, 3.299316228935693, 5.549925743739912, 2.2121404094022354, 2.212142110911467, 3.9134982798469014, 2.2121407916027707, 2.2121406443543656, 3.813056351171116, 2.216117762231495, 2.219206000282887, 2.2185961103646186, 5.18026156692751, 4.580549755421871, 14.470132873661955, 30.73144206625329, 43.519864160015544, 22.120627762687153, 12.198007949149915, 34.43319323636611, 14.81948645675407, 28.811987878648115, 17.58539230510434, 26.227487258091564, 20.22170909782567, 24.845424477619904, 11.91612206066835, 32.9471798647542, 18.07535666744182, 17.56902282933097, 24.263380504934208, 25.739847984671314, 12.915329862481887, 16.42308211983145, 9.259830116456365, 19.756906077838895, 15.834724243430392, 16.857959673500407, 13.156079122494363, 18.56667409169674, 12.559067762853036, 15.214737694165184, 16.603086302676605, 12.951503069761248, 14.684118222493044, 15.125432293566863, 15.172854748686397, 14.693284940575666, 13.283609127787441, 13.321344016801392, 13.454429288937407, 5.29544893474315, 4.250170892795513, 3.729266728484516, 2.6688456719310505, 2.145227786816, 2.6829678922152747, 2.1504703265985907, 1.6204216696140767, 1.6235881822534335, 1.6446340133296649, 3.7772825123771265, 1.0979099188016996, 1.097910042675415, 1.0979100808976787, 1.0979102897722486, 1.097910501251779, 1.0979105135041052, 1.0979105609214694, 1.097910701345255, 1.0979107349055657, 1.0979112574982897, 1.0979112654017318, 1.0994742070005963, 1.0998986799478445, 1.1004146281315423, 1.1011084405279912, 1.1015863218695285, 1.1019484456970505, 1.1021947256703855, 1.1022363128071404, 3.7945282808936116, 2.732019289873946, 2.731621076735276, 2.4043111817327, 1.6662740538122252, 2.2088299994371265, 2.207661410612995, 2.2080126034491414, 2.2194235902031227, 2.744433754456885, 2.832473051425053, 3.417528213468145, 21.158559533728962, 2.8509557809086132, 46.52320436003015, 3.486261213074385, 2.2270118594382535, 8.79466156421382, 10.704612750093125, 28.862763579435594, 24.32093248219641, 16.597992275778637, 24.716141158921943, 37.48503221322445, 15.8059641643351, 17.89783724780643, 8.310722089084368, 20.485530110162443, 9.495938111285486, 19.74447183618635, 18.749661873045074, 15.102897558033975, 9.3183028865689, 8.481214125535413, 21.340819034193352, 25.817229862602304, 14.29359321913043, 17.205023274386686, 17.915465572907795, 23.574948560899834, 18.39138054499543, 18.73550088444115, 16.00146745702989, 15.400354696587028, 14.42238088160315, 16.168324201727845, 14.842366617353035, 14.004042044295433, 18.046496123264863, 15.067593990386495, 17.48265626954073, 16.749799279036374, 4.249737442711233, 3.710255448608066, 2.665271084992968, 2.665271139814507, 2.677239453818402, 2.1434361878706967, 2.1434362105898828, 2.1434367243238612, 2.1561668100718383, 1.6212696524863102, 1.6212704872086876, 1.6212705432787016, 1.6212707836750608, 1.6268558765031302, 1.6276118130885682, 2.170192749329665, 1.6300128941963847, 4.834474944335725, 1.632739070941889, 2.718884571195363, 1.637938835803338, 1.6395311932485104, 1.6397093882283829, 1.6431611092548886, 1.0984848343431561, 1.098484907340661, 1.0984849257243523, 1.0984849375994374, 1.0984849490512862, 1.0984849573293418, 2.742281525967667, 8.568907804274625, 2.759806633155562, 2.2091936831743353, 2.2339303945772913, 7.4131480318809935, 53.30280441037925, 19.11212767044188, 12.241763398987313, 5.056456673539936, 22.719532505754973, 20.91160288523359, 25.908625109838518, 28.376993630403575, 39.82679534435165, 22.179379714688007, 24.08773283806211, 25.77511300923938, 34.2691914373022, 16.16439500589146, 11.462387127323142, 26.120997152421804, 23.61122905405332, 14.372268517824676, 14.183122023566218, 27.010982369266937, 13.175601857122764, 15.190165592652896, 17.451807760593653, 13.61690326477322, 14.387909630649798, 15.271088720383025, 20.172199613907885, 17.68154909818675, 14.975792611687849, 16.563215833012517, 16.79345689077567, 13.823397803858837, 14.686055025034909, 14.146911255508302, 3.690692746319531, 3.180556681312383, 2.65256173623524, 2.663379772873715, 1.6135391748183034, 1.6135393028726006, 1.613539510654151, 1.613539665280575, 1.6135404600284013, 6.3932578812496335, 1.6170310954092073, 1.618100318186502, 1.6209355593668586, 2.684926734481355, 5.871073676189071, 4.281566467762359, 1.0932468926093328, 1.09324694107694, 1.0932470590970247, 1.0932471912740729, 1.0932474752962216, 1.0932474317410963, 1.0932475550216019, 1.093247577047965, 1.0932477418757478, 1.0932477652490002, 1.0932479328075955, 1.0932483981947603, 1.642300142197101, 1.096882979244666, 5.364999956980177, 1.6441677720476509, 3.2546421865356163, 2.720018986818482, 2.7295938128003163, 2.74347261777497, 3.333533894685915, 3.337188080102843, 2.198659014305772, 9.964790828511825, 2.184115523037807, 11.92161946115618, 4.061981375170332, 48.57004828165476, 42.77139480343725, 34.643264654329045, 6.584702319411423, 22.338331550411517, 40.51575077649629, 20.51017856113206, 26.821743467456407, 14.284775533924712, 23.580550031094806, 17.302923518770953, 12.32944103075259, 8.450754992918352, 25.860375449960515, 11.981789353082824, 15.163323165162863, 18.10605583636685, 8.718254667083018, 19.209319080993428, 19.268670889108996, 17.186830108747756, 17.07010372160111, 12.413308116776438, 13.692257659171291, 13.696673159561918, 16.696644814457827, 14.656788320574629, 15.743253158944055, 14.880479671963123, 15.842553209267281, 16.843912677636908, 13.052866957987023, 13.88551698540122, 13.640847420298591, 12.965029208785275, 13.239224164253235, 13.309231494584507, 1.5803091068132369, 1.580309312015727, 1.5803116664798724, 1.0707319743030432, 1.0707321081445749, 1.070732111826803, 1.0707321673407222, 1.0707322219055238, 1.0707322382400215, 1.0707322725855442, 1.0707324307723483, 1.0707324977038388, 1.0707326658287126, 1.0707328907743234, 1.0707336334771513, 1.0738987128768933, 1.0739511445743644, 1.074104125616916, 1.074608986937582, 1.0748917074307174, 1.0767477397304102, 1.0772862537441625, 1.0770702863203465, 1.0773809779647803, 1.0782262977771953, 1.0783122321857008, 1.0785805946487272, 1.0804678072925449, 5.318503259941962, 2.664001247825527, 2.6640015764258584, 2.673837841854759, 3.790993772445013, 4.313360702765816, 11.491297813420141, 2.1653055163619523, 3.264882824582502, 2.1533804925814564, 2.1533788468013393, 3.2720071061621336, 2.6764964929760136, 2.16100196422578, 4.430410360381628, 3.8154402749751912, 2.1700633741100286, 3.280579412838987, 15.698883273950443, 2.7551667762353533, 29.443606461415808, 5.612117316686169, 16.139662359943717, 2.7742142326342543, 35.876067950625504, 7.016495658391165, 3.462405458832016, 42.276201079996426, 28.900808470474132, 18.47984873618788, 27.977377094167064, 34.28643861918655, 27.5932846828482, 17.037642041720094, 16.917057797534774, 17.649630922169834, 19.574804455662974, 12.28581161373236, 16.91340609352449, 15.031165868571147, 22.305136186865543, 19.04276842760301, 17.351451170657974, 13.23741731025641, 13.60640245799722, 13.36635959215076, 19.465943921382692, 18.410172779545828, 18.928616410455838, 12.773252084422674, 13.634655363823676, 15.686654833276027, 16.08347377306261, 14.577700589516455, 16.446291086213165, 14.527853881619968, 15.459544870791182, 15.275017956821298, 13.940570470782207, 3.6083200490732223, 3.1191535162634327, 2.608778469729741, 2.0895408297769986, 1.5759992986270421, 1.5759993080358317, 1.5760001620710309, 1.5822575804715926, 1.5892439802924438, 2.6227361931675452, 1.596204801196714, 1.0678120269992426, 1.0678120555098158, 1.0678120999854233, 1.0678121126381879, 1.06781213543244, 1.0678121548852935, 1.0678121737779476, 1.0678125657917454, 1.0678125896623254, 1.0678127933878996, 1.0678130044762322, 1.0678134610888743, 1.0678029301307044, 1.0678445371255547, 1.067740040738366, 7.34878821543902, 1.0714805563408536, 1.0715104697631566, 1.0717439345706525, 3.702669089913456, 2.6567363775738726, 5.342758323927616, 2.656735609057006, 2.668387816611354, 5.967286926035185, 3.2559776561153084, 2.1475066650725414, 5.51625742340239, 4.3628397910555465, 3.16489257260511, 3.364389681682667, 4.786594530498, 8.620986750712051, 35.64569519191446, 28.472559244675622, 6.328625322363671, 22.67180763566138, 14.003653039908704, 39.314256166923975, 31.066559894942614, 15.764328580799669, 26.845924789951297, 23.40523593149822, 10.929820721244035, 20.201364707991157, 16.84845821583217, 14.897812325709497, 17.814849503593347, 19.457627390037768, 17.386868096061466, 16.106965563010647, 18.191099821653395, 21.705879908028496, 17.133513244329517, 19.136543744547236, 26.080372018605456, 19.570750078358355, 14.1284766326668, 14.639204190711016, 14.379961330697414, 14.76871652087336, 17.453268701102704, 11.58519203431604, 14.321721110813446, 13.19711368107574, 13.709756368641486, 2.1319405981664254, 1.3057356599790206, 3.4404654881329124, 0.8758874912596949, 0.8758875724171947, 0.875887652672756, 0.8758886635488999, 0.8758890136101918, 0.878549149837976, 0.8814032729066943, 0.882774205977067, 0.8834381624752152, 0.8837193017022242, 0.8844829342711329, 4.6986544335598515, 0.8990713281977121, 1.7657028961167178, 1.768298483691363, 2.2110884872723244, 1.3431744933536705, 1.3477664028173508, 1.3482921082088533, 1.3197049219433437, 1.7712858200229034, 2.2572723246612236, 1.837521048720053, 1.3523851194176242, 2.753797456287409, 1.3524164566161059, 0.9236566955602467, 6.668383439020376, 2.987466662850041, 2.3314662213200066, 2.7312419403838475, 2.747799783933436, 14.142350940966002, 10.854427502421277, 5.43520064842393, 29.58013372736076, 21.950770324488843, 2.8109319062373403, 21.128332920141645, 7.4350569534186794, 13.617452897479136, 13.833094176610176, 24.815521670884458, 17.33068593124545, 9.048685233130536, 16.87607342893818, 15.35908894935948, 8.068350164264956, 11.64976128445344, 16.811040825374707, 13.15187959490585, 7.721172662425928, 11.78315143396946, 13.26399679029746, 12.33675026011204, 10.39969863822932, 11.921571914421062, 10.453963982978895, 10.770579557918406, 10.578029941201292, 9.386189146340193, 8.827818468165972, 8.466105844673882, 8.474455382358185, 8.789645427506814, 8.57214600692111, 8.559308690997005, 8.511515543905908, 3.580504280637029, 2.4000782195014256, 1.6092545566105334, 2.014961088870519, 1.2148880448015098, 1.2204279278439247, 0.8231425262046898, 0.8231426070313124, 0.8231426924331419, 0.8231427862802578, 0.8231429095480123, 0.8231429996447442, 0.8231430558677397, 0.823143322802958, 0.8231433265414292, 0.825595148932504, 0.825727852164102, 0.8270508530055338, 0.8276770596401761, 0.8300954534201475, 0.8328228905230615, 0.832611947704102, 2.06555125271438, 2.0617330422917792, 2.8414532374177393, 2.4586509521198616, 1.6554444176043548, 1.2622899672941996, 1.2622430812584466, 1.26229029227577, 2.120016644342003, 2.07351844573008, 1.664621428291197, 2.1307097111041404, 2.942021057309862, 3.485992718231779, 3.5838129512247145, 16.33578567697234, 27.16665581069838, 4.124292200521427, 4.166860235471398, 2.6598453448297468, 2.6733849179801825, 2.1612824861212534, 22.78265916986222, 17.54172732675081, 1.7211370893202758, 1.7212765371395915, 18.481938670742625, 14.550809114132232, 12.851182899230523, 6.0345539764828535, 15.391568147859969, 13.064797581514659, 13.904768534580683, 9.168728316335221, 13.462030184375672, 10.65547662218634, 12.573364338144023, 9.907500003475972, 14.951369510093501, 13.025197687310385, 10.69392673545827, 10.762668228997427, 8.38603543432337, 6.850641661725345, 7.264333931712348, 8.036220324952708, 9.402126812859112, 8.478043634146578, 8.43397344468915, 8.652399488758508, 8.103769648125814, 8.260234141848413, 8.381685784794886, 8.055165847819213, 8.211262342044702], \"Category\": [\"Default\", \"Default\", \"Default\", \"Default\", \"Default\", \"Default\", \"Default\", \"Default\", \"Default\", \"Default\", \"Default\", \"Default\", \"Default\", \"Default\", \"Default\", \"Default\", \"Default\", \"Default\", \"Default\", \"Default\", \"Default\", \"Default\", \"Default\", \"Default\", \"Default\", \"Default\", \"Default\", \"Default\", \"Default\", \"Default\", \"Topic1\", \"Topic1\", \"Topic1\", \"Topic1\", \"Topic1\", \"Topic1\", \"Topic1\", \"Topic1\", \"Topic1\", \"Topic1\", \"Topic1\", \"Topic1\", \"Topic1\", \"Topic1\", \"Topic1\", \"Topic1\", \"Topic1\", \"Topic1\", \"Topic1\", \"Topic1\", \"Topic1\", \"Topic1\", \"Topic1\", \"Topic1\", \"Topic1\", \"Topic1\", \"Topic1\", \"Topic1\", \"Topic1\", \"Topic1\", \"Topic1\", \"Topic1\", \"Topic1\", \"Topic1\", \"Topic1\", \"Topic1\", \"Topic1\", \"Topic1\", \"Topic1\", \"Topic1\", \"Topic1\", \"Topic1\", \"Topic1\", \"Topic1\", \"Topic1\", \"Topic1\", \"Topic1\", \"Topic1\", \"Topic1\", \"Topic1\", \"Topic1\", \"Topic1\", \"Topic1\", \"Topic1\", \"Topic1\", \"Topic1\", \"Topic1\", \"Topic1\", \"Topic1\", \"Topic1\", \"Topic1\", \"Topic1\", \"Topic1\", \"Topic1\", \"Topic1\", \"Topic1\", \"Topic1\", \"Topic1\", \"Topic1\", \"Topic1\", \"Topic1\", \"Topic1\", \"Topic1\", \"Topic1\", \"Topic1\", \"Topic1\", \"Topic1\", \"Topic2\", \"Topic2\", \"Topic2\", \"Topic2\", \"Topic2\", \"Topic2\", \"Topic2\", \"Topic2\", \"Topic2\", \"Topic2\", \"Topic2\", \"Topic2\", \"Topic2\", \"Topic2\", \"Topic2\", \"Topic2\", \"Topic2\", \"Topic2\", \"Topic2\", \"Topic2\", \"Topic2\", \"Topic2\", \"Topic2\", \"Topic2\", \"Topic2\", \"Topic2\", \"Topic2\", \"Topic2\", \"Topic2\", \"Topic2\", \"Topic2\", \"Topic2\", \"Topic2\", \"Topic2\", \"Topic2\", \"Topic2\", \"Topic2\", \"Topic2\", \"Topic2\", \"Topic2\", \"Topic2\", \"Topic2\", \"Topic2\", \"Topic2\", \"Topic2\", \"Topic2\", \"Topic2\", \"Topic2\", \"Topic2\", \"Topic2\", \"Topic2\", \"Topic2\", \"Topic2\", \"Topic2\", \"Topic2\", \"Topic2\", \"Topic2\", \"Topic2\", \"Topic2\", \"Topic2\", \"Topic2\", \"Topic2\", \"Topic2\", \"Topic2\", \"Topic2\", \"Topic2\", \"Topic2\", \"Topic2\", \"Topic2\", \"Topic2\", \"Topic2\", \"Topic2\", \"Topic2\", \"Topic2\", \"Topic2\", \"Topic2\", \"Topic2\", \"Topic3\", \"Topic3\", \"Topic3\", \"Topic3\", \"Topic3\", \"Topic3\", \"Topic3\", \"Topic3\", \"Topic3\", \"Topic3\", \"Topic3\", \"Topic3\", \"Topic3\", \"Topic3\", \"Topic3\", \"Topic3\", \"Topic3\", \"Topic3\", \"Topic3\", \"Topic3\", \"Topic3\", \"Topic3\", \"Topic3\", \"Topic3\", \"Topic3\", \"Topic3\", \"Topic3\", \"Topic3\", \"Topic3\", \"Topic3\", \"Topic3\", \"Topic3\", \"Topic3\", \"Topic3\", \"Topic3\", \"Topic3\", \"Topic3\", \"Topic3\", \"Topic3\", \"Topic3\", \"Topic3\", \"Topic3\", \"Topic3\", \"Topic3\", \"Topic3\", \"Topic3\", \"Topic3\", \"Topic3\", \"Topic3\", \"Topic3\", \"Topic3\", \"Topic3\", \"Topic3\", \"Topic3\", \"Topic3\", \"Topic3\", \"Topic3\", \"Topic3\", \"Topic3\", \"Topic3\", \"Topic3\", \"Topic3\", \"Topic3\", \"Topic3\", \"Topic3\", \"Topic3\", \"Topic3\", \"Topic3\", \"Topic3\", \"Topic3\", \"Topic3\", \"Topic3\", \"Topic3\", \"Topic3\", \"Topic3\", \"Topic3\", \"Topic3\", \"Topic3\", \"Topic3\", \"Topic3\", \"Topic3\", \"Topic3\", \"Topic3\", \"Topic3\", \"Topic3\", \"Topic4\", \"Topic4\", \"Topic4\", \"Topic4\", \"Topic4\", \"Topic4\", \"Topic4\", \"Topic4\", \"Topic4\", \"Topic4\", \"Topic4\", \"Topic4\", \"Topic4\", \"Topic4\", \"Topic4\", \"Topic4\", \"Topic4\", \"Topic4\", \"Topic4\", \"Topic4\", \"Topic4\", \"Topic4\", \"Topic4\", \"Topic4\", \"Topic4\", \"Topic4\", \"Topic4\", \"Topic4\", \"Topic4\", \"Topic4\", \"Topic4\", \"Topic4\", \"Topic4\", \"Topic4\", \"Topic4\", \"Topic4\", \"Topic4\", \"Topic4\", \"Topic4\", \"Topic4\", \"Topic4\", \"Topic4\", \"Topic4\", \"Topic4\", \"Topic4\", \"Topic4\", \"Topic4\", \"Topic4\", \"Topic4\", \"Topic4\", \"Topic4\", \"Topic4\", \"Topic4\", \"Topic4\", \"Topic4\", \"Topic4\", \"Topic4\", \"Topic4\", \"Topic4\", \"Topic4\", \"Topic4\", \"Topic4\", \"Topic4\", \"Topic4\", \"Topic4\", \"Topic4\", \"Topic4\", \"Topic4\", \"Topic4\", \"Topic4\", \"Topic4\", \"Topic4\", \"Topic4\", \"Topic4\", \"Topic4\", \"Topic4\", \"Topic4\", \"Topic4\", \"Topic4\", \"Topic4\", \"Topic4\", \"Topic4\", \"Topic5\", \"Topic5\", \"Topic5\", \"Topic5\", \"Topic5\", \"Topic5\", \"Topic5\", \"Topic5\", \"Topic5\", \"Topic5\", \"Topic5\", \"Topic5\", \"Topic5\", \"Topic5\", \"Topic5\", \"Topic5\", \"Topic5\", \"Topic5\", \"Topic5\", \"Topic5\", \"Topic5\", \"Topic5\", \"Topic5\", \"Topic5\", \"Topic5\", \"Topic5\", \"Topic5\", \"Topic5\", \"Topic5\", \"Topic5\", \"Topic5\", \"Topic5\", \"Topic5\", \"Topic5\", \"Topic5\", \"Topic5\", \"Topic5\", \"Topic5\", \"Topic5\", \"Topic5\", \"Topic5\", \"Topic5\", \"Topic5\", \"Topic5\", \"Topic5\", \"Topic5\", \"Topic5\", \"Topic5\", \"Topic5\", \"Topic5\", \"Topic5\", \"Topic5\", \"Topic5\", \"Topic5\", \"Topic5\", \"Topic5\", \"Topic5\", \"Topic5\", \"Topic5\", \"Topic5\", \"Topic5\", \"Topic5\", \"Topic5\", \"Topic5\", \"Topic5\", \"Topic5\", \"Topic5\", \"Topic5\", \"Topic5\", \"Topic5\", \"Topic6\", \"Topic6\", \"Topic6\", \"Topic6\", \"Topic6\", \"Topic6\", \"Topic6\", \"Topic6\", \"Topic6\", \"Topic6\", \"Topic6\", \"Topic6\", \"Topic6\", \"Topic6\", \"Topic6\", \"Topic6\", \"Topic6\", \"Topic6\", \"Topic6\", \"Topic6\", \"Topic6\", \"Topic6\", \"Topic6\", \"Topic6\", \"Topic6\", \"Topic6\", \"Topic6\", \"Topic6\", \"Topic6\", \"Topic6\", \"Topic6\", \"Topic6\", \"Topic6\", \"Topic6\", \"Topic6\", \"Topic6\", \"Topic6\", \"Topic6\", \"Topic6\", \"Topic6\", \"Topic6\", \"Topic6\", \"Topic6\", \"Topic6\", \"Topic6\", \"Topic6\", \"Topic6\", \"Topic6\", \"Topic6\", \"Topic6\", \"Topic6\", \"Topic6\", \"Topic6\", \"Topic6\", \"Topic6\", \"Topic6\", \"Topic6\", \"Topic6\", \"Topic6\", \"Topic6\", \"Topic6\", \"Topic6\", \"Topic6\", \"Topic6\", \"Topic6\", \"Topic6\", \"Topic6\", \"Topic6\", \"Topic6\", \"Topic6\", \"Topic6\", \"Topic6\", \"Topic6\", \"Topic6\", \"Topic6\", \"Topic6\", \"Topic6\", \"Topic6\", \"Topic6\", \"Topic6\", \"Topic7\", \"Topic7\", \"Topic7\", \"Topic7\", \"Topic7\", \"Topic7\", \"Topic7\", \"Topic7\", \"Topic7\", \"Topic7\", \"Topic7\", \"Topic7\", \"Topic7\", \"Topic7\", \"Topic7\", \"Topic7\", \"Topic7\", \"Topic7\", \"Topic7\", \"Topic7\", \"Topic7\", \"Topic7\", \"Topic7\", \"Topic7\", \"Topic7\", \"Topic7\", \"Topic7\", \"Topic7\", \"Topic7\", \"Topic7\", \"Topic7\", \"Topic7\", \"Topic7\", \"Topic7\", \"Topic7\", \"Topic7\", \"Topic7\", \"Topic7\", \"Topic7\", \"Topic7\", \"Topic7\", \"Topic7\", \"Topic7\", \"Topic7\", \"Topic7\", \"Topic7\", \"Topic7\", \"Topic7\", \"Topic7\", \"Topic7\", \"Topic7\", \"Topic7\", \"Topic7\", \"Topic7\", \"Topic7\", \"Topic7\", \"Topic7\", \"Topic7\", \"Topic7\", \"Topic7\", \"Topic7\", \"Topic7\", \"Topic7\", \"Topic7\", \"Topic7\", \"Topic7\", \"Topic7\", \"Topic7\", \"Topic7\", \"Topic7\", \"Topic7\", \"Topic7\", \"Topic7\", \"Topic7\", \"Topic7\", \"Topic7\", \"Topic7\", \"Topic7\", \"Topic7\", \"Topic7\", \"Topic7\", \"Topic7\", \"Topic7\", \"Topic7\", \"Topic7\", \"Topic7\", \"Topic7\", \"Topic8\", \"Topic8\", \"Topic8\", \"Topic8\", \"Topic8\", \"Topic8\", \"Topic8\", \"Topic8\", \"Topic8\", \"Topic8\", \"Topic8\", \"Topic8\", \"Topic8\", \"Topic8\", \"Topic8\", \"Topic8\", \"Topic8\", \"Topic8\", \"Topic8\", \"Topic8\", \"Topic8\", \"Topic8\", \"Topic8\", \"Topic8\", \"Topic8\", \"Topic8\", \"Topic8\", \"Topic8\", \"Topic8\", \"Topic8\", \"Topic8\", \"Topic8\", \"Topic8\", \"Topic8\", \"Topic8\", \"Topic8\", \"Topic8\", \"Topic8\", \"Topic8\", \"Topic8\", \"Topic8\", \"Topic8\", \"Topic8\", \"Topic8\", \"Topic8\", \"Topic8\", \"Topic8\", \"Topic8\", \"Topic8\", \"Topic8\", \"Topic8\", \"Topic8\", \"Topic8\", \"Topic8\", \"Topic8\", \"Topic8\", \"Topic8\", \"Topic8\", \"Topic8\", \"Topic8\", \"Topic8\", \"Topic8\", \"Topic8\", \"Topic8\", \"Topic8\", \"Topic8\", \"Topic8\", \"Topic8\", \"Topic8\", \"Topic8\", \"Topic8\", \"Topic8\", \"Topic8\", \"Topic8\", \"Topic8\", \"Topic8\", \"Topic8\", \"Topic9\", \"Topic9\", \"Topic9\", \"Topic9\", \"Topic9\", \"Topic9\", \"Topic9\", \"Topic9\", \"Topic9\", \"Topic9\", \"Topic9\", \"Topic9\", \"Topic9\", \"Topic9\", \"Topic9\", \"Topic9\", \"Topic9\", \"Topic9\", \"Topic9\", \"Topic9\", \"Topic9\", \"Topic9\", \"Topic9\", \"Topic9\", \"Topic9\", \"Topic9\", \"Topic9\", \"Topic9\", \"Topic9\", \"Topic9\", \"Topic9\", \"Topic9\", \"Topic9\", \"Topic9\", \"Topic9\", \"Topic9\", \"Topic9\", \"Topic9\", \"Topic9\", \"Topic9\", \"Topic9\", \"Topic9\", \"Topic9\", \"Topic9\", \"Topic9\", \"Topic9\", \"Topic9\", \"Topic9\", \"Topic9\", \"Topic9\", \"Topic9\", \"Topic9\", \"Topic9\", \"Topic9\", \"Topic9\", \"Topic9\", \"Topic9\", \"Topic9\", \"Topic9\", \"Topic9\", \"Topic9\", \"Topic9\", \"Topic9\", \"Topic9\", \"Topic9\", \"Topic9\", \"Topic9\", \"Topic9\", \"Topic9\", \"Topic9\", \"Topic9\", \"Topic10\", \"Topic10\", \"Topic10\", \"Topic10\", \"Topic10\", \"Topic10\", \"Topic10\", \"Topic10\", \"Topic10\", \"Topic10\", \"Topic10\", \"Topic10\", \"Topic10\", \"Topic10\", \"Topic10\", \"Topic10\", \"Topic10\", \"Topic10\", \"Topic10\", \"Topic10\", \"Topic10\", \"Topic10\", \"Topic10\", \"Topic10\", \"Topic10\", \"Topic10\", \"Topic10\", \"Topic10\", \"Topic10\", \"Topic10\", \"Topic10\", \"Topic10\", \"Topic10\", \"Topic10\", \"Topic10\", \"Topic10\", \"Topic10\", \"Topic10\", \"Topic10\", \"Topic10\", \"Topic10\", \"Topic10\", \"Topic10\", \"Topic10\", \"Topic10\", \"Topic10\", \"Topic10\", \"Topic10\", \"Topic10\", \"Topic10\", \"Topic10\", \"Topic10\", \"Topic10\", \"Topic10\", \"Topic10\", \"Topic10\", \"Topic10\", \"Topic10\", \"Topic10\", \"Topic10\", \"Topic10\", \"Topic10\", \"Topic10\", \"Topic10\", \"Topic10\", \"Topic10\", \"Topic10\", \"Topic10\", \"Topic10\", \"Topic10\", \"Topic10\", \"Topic10\", \"Topic10\", \"Topic10\", \"Topic10\", \"Topic10\", \"Topic10\"], \"logprob\": [30.0, 29.0, 28.0, 27.0, 26.0, 25.0, 24.0, 23.0, 22.0, 21.0, 20.0, 19.0, 18.0, 17.0, 16.0, 15.0, 14.0, 13.0, 12.0, 11.0, 10.0, 9.0, 8.0, 7.0, 6.0, 5.0, 4.0, 3.0, 2.0, 1.0, -6.9797, -7.3067, -7.8153, -8.2143, -8.2122, -8.2114, -8.2106, -7.206, -8.4935, -8.4935, -8.4935, -8.4935, -8.4935, -8.4935, -8.4935, -7.2072, -8.4909, -8.4877, -8.486, -8.4866, -7.1141, -8.4828, -6.8932, -7.3999, -8.8827, -8.8827, -8.8827, -8.8827, -8.8827, -8.8827, -7.7934, -7.9712, -7.9712, -7.9712, -7.9698, -7.2707, -7.107, -5.219, -7.4716, -7.0344, -6.9584, -5.9317, -6.8715, -5.303, -6.8476, -7.0289, -4.938, -7.7665, -5.5941, -5.6802, -5.7995, -5.9022, -5.3442, -5.2388, -6.0475, -5.648, -5.7886, -6.0353, -5.8857, -5.618, -6.1139, -5.6906, -5.8794, -6.2296, -5.8055, -5.6977, -5.8463, -6.0514, -6.0765, -6.1771, -6.2436, -6.1465, -6.0372, -6.2219, -6.1043, -6.1528, -6.1893, -7.1227, -6.4293, -7.343, -6.5289, -7.8012, -8.0213, -8.0202, -8.02, -8.0155, -8.3019, -7.1086, -8.3002, -8.2992, -8.296, -7.1053, -8.2958, -8.2942, -8.2941, -7.4556, -8.6912, -8.6912, -8.6912, -8.6912, -8.6912, -8.6912, -8.6912, -8.6912, -8.6912, -8.6912, -8.6891, -7.5992, -7.7718, -7.1566, -7.9925, -7.9909, -7.9906, -7.9925, -7.9899, -7.2924, -7.149, -7.7383, -5.1534, -4.8259, -6.9476, -5.0027, -7.2795, -5.5784, -5.4958, -6.9766, -5.3937, -5.4352, -6.1177, -5.9203, -6.4097, -5.8568, -6.0592, -5.6256, -5.8286, -5.9796, -6.0239, -5.997, -5.8777, -5.9307, -5.759, -6.0795, -5.7363, -6.0256, -5.837, -6.1422, -6.1143, -5.9783, -5.9337, -6.0874, -5.9691, -6.0774, -6.0504, -6.1073, -7.024, -7.1188, -7.2222, -8.0206, -8.017, -8.2998, -8.2998, -8.2998, -8.294, -8.294, -8.2938, -8.2903, -7.2046, -8.6891, -8.6891, -8.6891, -8.6891, -8.6891, -8.6891, -8.6891, -8.6891, -8.6841, -8.6832, -8.6825, -8.6822, -8.6817, -8.6797, -8.6797, -8.6779, -8.674, -7.189, -7.7761, -7.7792, -7.3186, -7.5949, -7.5906, -7.0706, -7.9904, -7.9904, -7.4199, -7.9904, -7.9904, -7.4459, -7.9886, -7.9872, -7.9875, -7.1395, -7.2625, -6.1123, -5.3591, -5.0111, -5.6878, -6.2831, -5.2453, -6.0884, -5.4236, -5.9173, -5.5175, -5.7776, -5.5717, -6.3065, -5.2894, -5.8898, -5.9182, -5.5954, -5.5363, -6.2259, -5.9857, -6.5587, -5.8008, -6.0221, -5.9595, -6.2075, -5.863, -6.2539, -6.0621, -5.9748, -6.2231, -6.0976, -6.068, -6.0648, -6.097, -6.1978, -6.195, -6.185, -7.1119, -7.3318, -7.4625, -7.7971, -8.0155, -7.7918, -8.0131, -8.2961, -8.2941, -8.2812, -7.4497, -8.6853, -8.6853, -8.6853, -8.6853, -8.6853, -8.6853, -8.6853, -8.6853, -8.6853, -8.6853, -8.6853, -8.6839, -8.6835, -8.6831, -8.6824, -8.682, -8.6817, -8.6814, -8.6814, -7.4452, -7.7737, -7.7739, -7.9015, -8.2682, -7.9863, -7.9868, -7.9867, -7.9815, -7.7692, -7.7376, -7.5498, -5.7267, -7.7311, -4.9388, -7.5299, -7.9781, -6.6046, -6.4081, -5.4162, -5.5874, -5.9695, -5.5713, -5.1548, -6.0184, -5.8941, -6.6612, -5.759, -6.5279, -5.7959, -5.8476, -6.0639, -6.5468, -6.6409, -5.7181, -5.5277, -6.1189, -5.9335, -5.8931, -5.6186, -5.8669, -5.8483, -6.0061, -6.0444, -6.11, -5.9957, -6.0813, -6.1394, -5.8858, -6.0662, -5.9175, -5.9604, -7.3312, -7.467, -7.7978, -7.7978, -7.7933, -8.0157, -8.0157, -8.0157, -8.0097, -8.2949, -8.2949, -8.2949, -8.2949, -8.2914, -8.291, -8.0032, -8.2895, -7.2023, -8.2878, -7.7778, -8.2846, -8.2837, -8.2835, -8.2814, -8.6841, -8.6841, -8.6841, -8.6841, -8.6841, -8.6841, -7.7693, -6.6299, -7.7629, -7.9854, -7.9743, -6.7748, -4.8021, -5.8277, -6.2732, -7.1574, -5.6548, -5.7378, -5.5235, -5.4325, -5.0935, -5.6789, -5.5964, -5.5287, -5.2438, -5.9953, -6.339, -5.5153, -5.6163, -6.1128, -6.126, -5.4818, -6.1997, -6.0574, -5.9186, -6.1668, -6.1117, -6.0521, -5.7738, -5.9055, -6.0716, -5.9709, -5.9571, -6.1517, -6.0912, -6.1286, -7.4622, -7.6109, -7.7924, -7.7884, -8.2895, -8.2895, -8.2895, -8.2895, -8.2895, -6.9127, -8.2874, -8.2867, -8.285, -7.7803, -6.9979, -7.3136, -8.6788, -8.6788, -8.6788, -8.6788, -8.6788, -8.6788, -8.6788, -8.6788, -8.6788, -8.6788, -8.6788, -8.6788, -8.2719, -8.6755, -7.0881, -8.2707, -7.5879, -7.7673, -7.7638, -7.7587, -7.5639, -7.5628, -7.9801, -6.4689, -7.9868, -6.2896, -7.3663, -4.885, -5.0121, -5.2229, -6.8832, -5.6617, -5.0663, -5.747, -5.4788, -6.1088, -5.6075, -5.9171, -6.256, -6.6337, -5.5153, -6.2846, -6.0491, -5.8717, -6.6025, -5.8126, -5.8095, -5.9238, -5.9306, -6.2492, -6.1511, -6.1508, -5.9528, -6.0831, -6.0116, -6.0679, -6.0053, -5.944, -6.199, -6.1371, -6.1549, -6.2057, -6.1848, -6.1795, -8.2703, -8.2703, -8.2703, -8.6596, -8.6596, -8.6596, -8.6596, -8.6596, -8.6596, -8.6596, -8.6596, -8.6596, -8.6596, -8.6596, -8.6596, -8.6567, -8.6566, -8.6565, -8.656, -8.6557, -8.654, -8.6535, -8.6537, -8.6534, -8.6526, -8.6526, -8.6523, -8.6506, -7.0568, -7.7481, -7.7481, -7.7444, -7.3953, -7.2662, -6.2864, -7.9554, -7.5447, -7.9609, -7.9609, -7.5425, -7.7434, -7.9574, -7.2395, -7.3889, -7.9532, -7.5399, -5.9744, -7.7145, -5.3455, -7.003, -5.9467, -7.7076, -5.1479, -6.7797, -7.486, -4.9837, -5.3641, -5.8113, -5.3966, -5.1932, -5.4104, -5.8925, -5.8996, -5.8572, -5.7537, -6.2195, -5.8998, -6.0178, -5.6231, -5.7813, -5.8743, -6.1449, -6.1174, -6.1352, -5.7593, -5.815, -5.7873, -6.1806, -6.1153, -5.9751, -5.9502, -6.0485, -5.9279, -6.0519, -5.9897, -6.0017, -6.0931, -7.4384, -7.584, -7.7627, -7.9847, -8.2667, -8.2667, -8.2667, -8.2628, -8.2583, -7.7574, -8.254, -8.656, -8.656, -8.656, -8.656, -8.656, -8.656, -8.656, -8.656, -8.656, -8.656, -8.656, -8.656, -8.656, -8.656, -8.6561, -6.7271, -8.6526, -8.6525, -8.6523, -7.4126, -7.7445, -7.0459, -7.7445, -7.7401, -6.9353, -7.5411, -7.9573, -7.0139, -7.2485, -7.5695, -7.5084, -7.1558, -6.5674, -5.148, -5.3727, -6.8765, -5.6005, -6.0823, -5.05, -5.2855, -5.9639, -5.4315, -5.5686, -6.3301, -5.7159, -5.8973, -6.0204, -5.8416, -5.7534, -5.8659, -5.9424, -5.8207, -5.644, -5.8806, -5.77, -5.4604, -5.7476, -6.0734, -6.0379, -6.0558, -6.0291, -5.8621, -6.2719, -6.0598, -6.1416, -6.1035, -7.5966, -8.0868, -7.118, -8.4861, -8.4861, -8.4861, -8.4861, -8.4861, -8.4831, -8.4798, -8.4783, -8.4775, -8.4772, -8.4763, -6.8063, -8.46, -7.785, -7.7836, -7.5601, -8.0585, -8.0551, -8.0547, -8.0762, -7.7819, -7.5394, -7.7452, -8.0517, -7.3406, -8.0517, -8.433, -6.4562, -7.2592, -7.5071, -7.3488, -7.3428, -5.7044, -5.969, -6.6607, -4.9665, -5.2648, -7.3201, -5.303, -6.3474, -5.7422, -5.7265, -5.1421, -5.5011, -6.151, -5.5277, -5.6219, -6.2656, -5.8983, -5.5315, -5.777, -6.3096, -5.8869, -5.7685, -5.841, -6.0118, -5.8752, -6.0066, -5.9768, -5.9948, -6.1143, -6.1757, -6.2175, -6.2165, -6.18, -6.2051, -6.2066, -6.2122, -6.9732, -7.3732, -7.7729, -7.5481, -8.0541, -8.0495, -8.4433, -8.4433, -8.4433, -8.4433, -8.4433, -8.4433, -8.4433, -8.4433, -8.4433, -8.4404, -8.4402, -8.4386, -8.4378, -8.4349, -8.4316, -8.4319, -7.5233, -7.5252, -7.2044, -7.3491, -7.7446, -8.0158, -8.0158, -8.0158, -7.4973, -7.5195, -7.7391, -7.4923, -7.1696, -7.0, -6.9723, -5.4554, -4.9467, -6.8318, -6.8215, -7.2704, -7.2654, -7.478, -5.1227, -5.3841, -7.7057, -7.7056, -5.3319, -5.5711, -5.6953, -6.4512, -5.5149, -5.6788, -5.6165, -6.0329, -5.6488, -5.8826, -5.7171, -5.9554, -5.5439, -5.6818, -5.879, -5.8726, -6.1221, -6.3244, -6.2657, -6.1648, -6.0078, -6.1112, -6.1164, -6.0909, -6.1564, -6.1373, -6.1227, -6.1624, -6.1432], \"Term\": [\"world\", \"axel\", \"new\", \"larry\", \"he\", \"jenny\", \"time\", \"t\", \"love\", \"blu\", \"max\", \"mother\", \"batman\", \"king\", \"harry\", \"reggie\", \"johnny\", \"fiona\", \"finds\", \"woman\", \"life\", \"pooh\", \"john\", \"jack\", \"earth\", \"rod\", \"wife\", \"tom\", \"zack\", \"young\", \"blu\", \"fern\", \"pierre\", \"trevor\", \"ruins\", \"donor\", \"dredd\", \"speedy\", \"pete\", \"outpost\", \"abusive\", \"lowry\", \"marion\", \"edmund\", \"feign\", \"ray\", \"collecting\", \"batty\", \"encountering\", \"dallas\", \"gotham\", \"gentle\", \"batman\", \"thor\", \"developer\", \"courtroom\", \"reign\", \"hardships\", \"swat\", \"timer\", \"julio\", \"asgard\", \"cady\", \"angel\", \"sperm\", \"melanie\", \"johnny\", \"father\", \"wayne\", \"eve\", \"survivors\", \"police\", \"station\", \"t\", \"jane\", \"edward\", \"life\", \"rio\", \"help\", \"years\", \"city\", \"school\", \"man\", \"new\", \"daughter\", \"family\", \"way\", \"lives\", \"friends\", \"young\", \"job\", \"love\", \"him\", \"human\", \"time\", \"world\", \"it\", \"wife\", \"earth\", \"her\", \"best\", \"people\", \"finds\", \"goes\", \"woman\", \"day\", \"old\", \"zack\", \"axel\", \"daisy\", \"jenny\", \"vitti\", \"loveless\", \"jenna\", \"connell\", \"pleasant\", \"darius\", \"benjamin\", \"rooney\", \"fathers\", \"annabeth\", \"percy\", \"sobol\", \"rosewood\", \"taggart\", \"gromit\", \"diagnosed\", \"delusional\", \"childbirth\", \"neighbour\", \"unearth\", \"ferrari\", \"understandably\", \"prof\", \"em\", \"should\", \"investigator\", \"tim\", \"hills\", \"ron\", \"phillips\", \"frog\", \"ruby\", \"gallery\", \"allen\", \"museum\", \"louis\", \"valerie\", \"time\", \"life\", \"larry\", \"new\", \"wallace\", \"finds\", \"young\", \"trapped\", \"man\", \"world\", \"night\", \"wants\", \"and\", \"friends\", \"town\", \"love\", \"way\", \"people\", \"save\", \"friend\", \"years\", \"day\", \"it\", \"lives\", \"t\", \"named\", \"family\", \"job\", \"son\", \"home\", \"help\", \"meets\", \"father\", \"wife\", \"him\", \"woman\", \"pooh\", \"piglet\", \"owl\", \"amanda\", \"shakespeare\", \"properties\", \"specialists\", \"predict\", \"eeyore\", \"honey\", \"alec\", \"transmission\", \"rats\", \"replacement\", \"equipped\", \"switched\", \"leavitt\", \"reid\", \"extraterrestrial\", \"2054\", \"peeta\", \"instructs\", \"dublin\", \"auditions\", \"pretending\", \"equality\", \"acre\", \"tigger\", \"encouraged\", \"backed\", \"ellie\", \"cobb\", \"phil\", \"jessica\", \"nathan\", \"tape\", \"chris\", \"marcos\", \"panem\", \"davis\", \"pows\", \"elvis\", \"cindy\", \"agnes\", \"becky\", \"fair\", \"barbara\", \"ethan\", \"brother\", \"love\", \"life\", \"earth\", \"married\", \"man\", \"mission\", \"t\", \"girl\", \"it\", \"home\", \"time\", \"know\", \"new\", \"story\", \"wants\", \"young\", \"world\", \"parents\", \"school\", \"sam\", \"father\", \"friend\", \"day\", \"agent\", \"family\", \"work\", \"city\", \"help\", \"night\", \"old\", \"years\", \"finds\", \"him\", \"her\", \"meets\", \"way\", \"snow\", \"vegas\", \"las\", \"perseus\", \"kraken\", \"hoggett\", \"replaced\", \"darren\", \"andromeda\", \"coffee\", \"kimble\", \"fascination\", \"collectors\", \"bargained\", \"cronies\", \"ridiculed\", \"grimm\", \"revisit\", \"disney\", \"beanstalk\", \"sinbad\", \"deputies\", \"unwillingly\", \"waves\", \"cavernous\", \"backseat\", \"armstrong\", \"1979\", \"missions\", \"anthill\", \"zeus\", \"ant\", \"nora\", \"sick\", \"disillusioned\", \"skeptical\", \"sharon\", \"bomber\", \"rogers\", \"terry\", \"nelson\", \"babe\", \"gets\", \"margaret\", \"new\", \"gods\", \"hades\", \"princess\", \"quest\", \"young\", \"finds\", \"town\", \"family\", \"life\", \"takes\", \"named\", \"fbi\", \"him\", \"college\", \"way\", \"home\", \"evil\", \"a\", \"killer\", \"it\", \"man\", \"group\", \"friends\", \"woman\", \"world\", \"help\", \"father\", \"he\", \"people\", \"set\", \"old\", \"school\", \"year\", \"time\", \"earth\", \"love\", \"t\", \"genesis\", \"slater\", \"ghostbusters\", \"letters\", \"ann\", \"davy\", \"beckett\", \"their\", \"barbossa\", \"sorority\", \"implanted\", \"religion\", \"renegade\", \"awesome\", \"cheese\", \"teleportation\", \"savvy\", \"sylvia\", \"turtles\", \"australia\", \"ape\", \"shogun\", \"transporter\", \"notices\", \"thaddeus\", \"dutchman\", \"recurring\", \"boring\", \"madman\", \"oncoming\", \"caesar\", \"jones\", \"jan\", \"elle\", \"davies\", \"kirk\", \"world\", \"jack\", \"frank\", \"spock\", \"old\", \"war\", \"family\", \"love\", \"life\", \"woman\", \"finds\", \"time\", \"new\", \"group\", \"crew\", \"young\", \"it\", \"called\", \"agent\", \"man\", \"york\", \"son\", \"home\", \"stop\", \"her\", \"story\", \"t\", \"father\", \"friend\", \"him\", \"help\", \"set\", \"friends\", \"city\", \"aurora\", \"sulley\", \"ralph\", \"possessions\", \"hee\", \"ingenuity\", \"pat\", \"terminal\", \"golf\", \"rod\", \"admit\", \"virgil\", \"blomkvist\", \"empress\", \"baxter\", \"zoo\", \"burn\", \"discoveries\", \"mister\", \"mayan\", \"shrewd\", \"disclosed\", \"jump\", \"nails\", \"brash\", \"digger\", \"goofy\", \"cable\", \"quinn\", \"malibu\", \"asteroid\", \"socialite\", \"regina\", \"portal\", \"malkovich\", \"surgery\", \"craig\", \"dante\", \"kowalski\", \"series\", \"wheeler\", \"queen\", \"sophie\", \"new\", \"man\", \"young\", \"charles\", \"earth\", \"life\", \"day\", \"love\", \"york\", \"it\", \"war\", \"race\", \"baby\", \"world\", \"discover\", \"save\", \"woman\", \"country\", \"finds\", \"family\", \"years\", \"way\", \"house\", \"evil\", \"decides\", \"help\", \"city\", \"him\", \"old\", \"father\", \"t\", \"girl\", \"home\", \"wife\", \"goes\", \"wants\", \"friends\", \"balboa\", \"gap\", \"jamaican\", \"gas\", \"concludes\", \"exhausted\", \"heavyweight\", \"invaded\", \"preferences\", \"furniture\", \"caps\", \"melted\", \"retain\", \"erik\", \"outlaw\", \"heated\", \"nypd\", \"full\", \"cent\", \"capital\", \"unseen\", \"jerry\", \"across\", \"greeting\", \"storage\", \"panther\", \"industrial\", \"pretentious\", \"x\", \"carrie\", \"magneto\", \"robbie\", \"spencer\", \"harvey\", \"max\", \"isaac\", \"stuart\", \"shall\", \"miranda\", \"mcclane\", \"patrick\", \"leopold\", \"ted\", \"logan\", \"jen\", \"mutants\", \"charlie\", \"genetic\", \"woman\", \"stanley\", \"john\", \"era\", \"man\", \"alex\", \"thugs\", \"life\", \"t\", \"people\", \"young\", \"new\", \"world\", \"wants\", \"war\", \"wife\", \"him\", \"them\", \"he\", \"lives\", \"love\", \"help\", \"friends\", \"future\", \"however\", \"takes\", \"it\", \"family\", \"time\", \"secret\", \"girl\", \"home\", \"years\", \"friend\", \"finds\", \"story\", \"way\", \"father\", \"day\", \"donnie\", \"homer\", \"ip\", \"goblin\", \"monkey\", \"pub\", \"ongoing\", \"soprano\", \"disk\", \"puss\", \"entangled\", \"ambitions\", \"recluse\", \"bedroom\", \"awaiting\", \"dumbledore\", \"ministry\", \"aslan\", \"software\", \"archaeologists\", \"bennett\", \"darling\", \"sands\", \"teddy\", \"drifting\", \"scuttle\", \"reggie\", \"salvation\", \"overlord\", \"symbols\", \"troy\", \"donna\", \"archer\", \"sentinels\", \"voldemort\", \"martial\", \"cameron\", \"scarlett\", \"arts\", \"discovery\", \"pig\", \"shrek\", \"johnny\", \"harry\", \"man\", \"time\", \"henry\", \"years\", \"jack\", \"life\", \"world\", \"stop\", \"t\", \"it\", \"true\", \"him\", \"story\", \"town\", \"old\", \"help\", \"day\", \"war\", \"way\", \"love\", \"home\", \"finds\", \"new\", \"family\", \"evil\", \"year\", \"named\", \"earth\", \"young\", \"film\", \"friends\", \"friend\", \"woman\", \"xerxes\", \"investor\", \"rapunzel\", \"reacts\", \"gadgetry\", \"reward\", \"spiders\", \"humanoid\", \"refreshing\", \"coronation\", \"premiere\", \"reversed\", \"purple\", \"professed\", \"fiona\", \"misogynistic\", \"aka\", \"owen\", \"soap\", \"countryside\", \"richie\", \"flower\", \"occupied\", \"amish\", \"jamie\", \"hawkins\", \"crocodile\", \"norman\", \"chicken\", \"clarke\", \"larry\", \"shrek\", \"alabama\", \"mia\", \"beverly\", \"mother\", \"king\", \"tom\", \"new\", \"love\", \"scott\", \"world\", \"company\", \"wife\", \"day\", \"life\", \"t\", \"falls\", \"young\", \"it\", \"sent\", \"friends\", \"man\", \"family\", \"real\", \"him\", \"time\", \"finds\", \"city\", \"father\", \"earth\", \"way\", \"woman\", \"he\", \"save\", \"year\", \"meets\", \"old\", \"friend\", \"wants\", \"story\", \"woody\", \"bella\", \"le\", \"buzz\", \"dobbs\", \"rita\", \"carries\", \"paint\", \"powell\", \"lockwood\", \"legacy\", \"improvise\", \"jabba\", \"hutt\", \"jerusalem\", \"echo\", \"offices\", \"adversaries\", \"decidedly\", \"unborn\", \"forks\", \"giants\", \"ming\", \"flint\", \"da\", \"toy\", \"clinic\", \"dolittle\", \"salt\", \"hiccup\", \"taylor\", \"terminator\", \"miyagi\", \"cage\", \"shaw\", \"andy\", \"terrorists\", \"he\", \"life\", \"daniel\", \"walter\", \"connor\", \"susan\", \"employees\", \"new\", \"t\", \"karate\", \"mayor\", \"world\", \"finds\", \"way\", \"david\", \"young\", \"father\", \"it\", \"however\", \"time\", \"wife\", \"family\", \"school\", \"man\", \"love\", \"years\", \"help\", \"high\", \"doesn\", \"mission\", \"goes\", \"him\", \"story\", \"wants\", \"old\", \"friend\", \"city\", \"home\", \"earth\", \"woman\"]}, \"token.table\": {\"Term\": [\"1979\", \"2054\", \"a\", \"a\", \"a\", \"a\", \"a\", \"a\", \"a\", \"a\", \"a\", \"a\", \"abusive\", \"acre\", \"across\", \"admit\", \"adversaries\", \"agent\", \"agent\", \"agent\", \"agent\", \"agent\", \"agent\", \"agent\", \"agent\", \"agent\", \"agent\", \"agnes\", \"agnes\", \"aka\", \"aka\", \"alabama\", \"alabama\", \"alabama\", \"alabama\", \"alec\", \"alex\", \"alex\", \"alex\", \"alex\", \"alex\", \"alex\", \"alex\", \"alex\", \"alex\", \"alex\", \"allen\", \"allen\", \"amanda\", \"ambitions\", \"amish\", \"amish\", \"and\", \"and\", \"and\", \"and\", \"and\", \"and\", \"and\", \"and\", \"and\", \"and\", \"andromeda\", \"andy\", \"andy\", \"andy\", \"andy\", \"andy\", \"andy\", \"andy\", \"andy\", \"andy\", \"angel\", \"angel\", \"ann\", \"annabeth\", \"ant\", \"ant\", \"anthill\", \"ape\", \"archaeologists\", \"archer\", \"archer\", \"archer\", \"armstrong\", \"arts\", \"arts\", \"arts\", \"arts\", \"arts\", \"arts\", \"asgard\", \"asgard\", \"aslan\", \"asteroid\", \"asteroid\", \"auditions\", \"aurora\", \"australia\", \"awaiting\", \"awesome\", \"axel\", \"babe\", \"babe\", \"babe\", \"baby\", \"baby\", \"baby\", \"baby\", \"baby\", \"baby\", \"baby\", \"baby\", \"baby\", \"baby\", \"backed\", \"backseat\", \"balboa\", \"barbara\", \"barbara\", \"barbara\", \"barbara\", \"barbara\", \"barbara\", \"barbossa\", \"bargained\", \"batman\", \"batman\", \"batty\", \"baxter\", \"baxter\", \"beanstalk\", \"beckett\", \"becky\", \"becky\", \"bedroom\", \"bella\", \"benjamin\", \"benjamin\", \"bennett\", \"best\", \"best\", \"best\", \"best\", \"best\", \"best\", \"best\", \"best\", \"best\", \"best\", \"beverly\", \"beverly\", \"beverly\", \"blomkvist\", \"blu\", \"bomber\", \"bomber\", \"boring\", \"brash\", \"brother\", \"brother\", \"brother\", \"brother\", \"brother\", \"brother\", \"brother\", \"brother\", \"brother\", \"brother\", \"burn\", \"buzz\", \"cable\", \"cady\", \"cady\", \"caesar\", \"caesar\", \"cage\", \"cage\", \"cage\", \"called\", \"called\", \"called\", \"called\", \"called\", \"called\", \"called\", \"called\", \"called\", \"called\", \"cameron\", \"cameron\", \"cameron\", \"capital\", \"caps\", \"carrie\", \"carrie\", \"carries\", \"cavernous\", \"cent\", \"charles\", \"charles\", \"charles\", \"charles\", \"charles\", \"charles\", \"charles\", \"charles\", \"charles\", \"charles\", \"charlie\", \"charlie\", \"charlie\", \"charlie\", \"charlie\", \"charlie\", \"charlie\", \"charlie\", \"charlie\", \"charlie\", \"cheese\", \"chicken\", \"chicken\", \"childbirth\", \"chris\", \"chris\", \"chris\", \"cindy\", \"cindy\", \"city\", \"city\", \"city\", \"city\", \"city\", \"city\", \"city\", \"city\", \"city\", \"city\", \"clarke\", \"clarke\", \"clinic\", \"clinic\", \"cobb\", \"cobb\", \"coffee\", \"collecting\", \"collectors\", \"college\", \"college\", \"college\", \"college\", \"college\", \"college\", \"college\", \"college\", \"college\", \"college\", \"company\", \"company\", \"company\", \"company\", \"company\", \"company\", \"company\", \"company\", \"company\", \"company\", \"concludes\", \"connell\", \"connor\", \"connor\", \"connor\", \"connor\", \"coronation\", \"country\", \"country\", \"country\", \"country\", \"country\", \"country\", \"country\", \"country\", \"country\", \"country\", \"countryside\", \"countryside\", \"courtroom\", \"craig\", \"craig\", \"craig\", \"crew\", \"crew\", \"crew\", \"crew\", \"crew\", \"crew\", \"crew\", \"crew\", \"crew\", \"crew\", \"crocodile\", \"crocodile\", \"cronies\", \"da\", \"da\", \"daisy\", \"dallas\", \"daniel\", \"daniel\", \"daniel\", \"daniel\", \"daniel\", \"daniel\", \"daniel\", \"daniel\", \"daniel\", \"daniel\", \"dante\", \"dante\", \"dante\", \"darius\", \"darling\", \"darren\", \"daughter\", \"daughter\", \"daughter\", \"daughter\", \"daughter\", \"daughter\", \"daughter\", \"daughter\", \"daughter\", \"daughter\", \"david\", \"david\", \"david\", \"david\", \"david\", \"david\", \"david\", \"david\", \"david\", \"david\", \"davies\", \"davies\", \"davis\", \"davis\", \"davis\", \"davy\", \"day\", \"day\", \"day\", \"day\", \"day\", \"day\", \"day\", \"day\", \"day\", \"day\", \"decidedly\", \"decides\", \"decides\", \"decides\", \"decides\", \"decides\", \"decides\", \"decides\", \"decides\", \"decides\", \"decides\", \"delusional\", \"deputies\", \"developer\", \"diagnosed\", \"digger\", \"disclosed\", \"discover\", \"discover\", \"discover\", \"discover\", \"discover\", \"discover\", \"discover\", \"discover\", \"discover\", \"discover\", \"discoveries\", \"discovery\", \"discovery\", \"discovery\", \"disillusioned\", \"disk\", \"disney\", \"dobbs\", \"doesn\", \"doesn\", \"doesn\", \"doesn\", \"doesn\", \"doesn\", \"doesn\", \"doesn\", \"doesn\", \"doesn\", \"dolittle\", \"dolittle\", \"donna\", \"donna\", \"donnie\", \"donor\", \"dredd\", \"drifting\", \"dublin\", \"dumbledore\", \"dutchman\", \"earth\", \"earth\", \"earth\", \"earth\", \"earth\", \"earth\", \"earth\", \"earth\", \"earth\", \"earth\", \"echo\", \"edmund\", \"edward\", \"edward\", \"edward\", \"edward\", \"edward\", \"edward\", \"edward\", \"edward\", \"edward\", \"edward\", \"eeyore\", \"elle\", \"elle\", \"ellie\", \"ellie\", \"ellie\", \"elvis\", \"elvis\", \"em\", \"employees\", \"employees\", \"employees\", \"empress\", \"encountering\", \"encouraged\", \"entangled\", \"equality\", \"equipped\", \"era\", \"era\", \"era\", \"erik\", \"ethan\", \"ethan\", \"ethan\", \"ethan\", \"eve\", \"eve\", \"eve\", \"eve\", \"eve\", \"eve\", \"eve\", \"eve\", \"eve\", \"eve\", \"evil\", \"evil\", \"evil\", \"evil\", \"evil\", \"evil\", \"evil\", \"evil\", \"evil\", \"evil\", \"exhausted\", \"extraterrestrial\", \"fair\", \"fair\", \"falls\", \"falls\", \"falls\", \"falls\", \"falls\", \"falls\", \"falls\", \"falls\", \"falls\", \"falls\", \"family\", \"family\", \"family\", \"family\", \"family\", \"family\", \"family\", \"family\", \"family\", \"family\", \"fascination\", \"father\", \"father\", \"father\", \"father\", \"father\", \"father\", \"father\", \"father\", \"father\", \"father\", \"fathers\", \"fbi\", \"fbi\", \"fbi\", \"fbi\", \"fbi\", \"fbi\", \"fbi\", \"fbi\", \"fbi\", \"fbi\", \"feign\", \"fern\", \"ferrari\", \"film\", \"film\", \"film\", \"film\", \"film\", \"film\", \"film\", \"film\", \"film\", \"film\", \"finds\", \"finds\", \"finds\", \"finds\", \"finds\", \"finds\", \"finds\", \"finds\", \"finds\", \"finds\", \"fiona\", \"fiona\", \"flint\", \"flint\", \"flower\", \"flower\", \"forks\", \"frank\", \"frank\", \"frank\", \"frank\", \"frank\", \"frank\", \"frank\", \"frank\", \"frank\", \"frank\", \"friend\", \"friend\", \"friend\", \"friend\", \"friend\", \"friend\", \"friend\", \"friend\", \"friend\", \"friend\", \"friends\", \"friends\", \"friends\", \"friends\", \"friends\", \"friends\", \"friends\", \"friends\", \"friends\", \"friends\", \"frog\", \"full\", \"furniture\", \"future\", \"future\", \"future\", \"future\", \"future\", \"future\", \"future\", \"future\", \"future\", \"future\", \"gadgetry\", \"gallery\", \"gallery\", \"gap\", \"gas\", \"genesis\", \"genetic\", \"genetic\", \"genetic\", \"gentle\", \"gets\", \"gets\", \"gets\", \"gets\", \"gets\", \"gets\", \"gets\", \"gets\", \"gets\", \"gets\", \"ghostbusters\", \"giants\", \"girl\", \"girl\", \"girl\", \"girl\", \"girl\", \"girl\", \"girl\", \"girl\", \"girl\", \"girl\", \"goblin\", \"gods\", \"gods\", \"gods\", \"gods\", \"goes\", \"goes\", \"goes\", \"goes\", \"goes\", \"goes\", \"goes\", \"goes\", \"goes\", \"goes\", \"golf\", \"goofy\", \"gotham\", \"gotham\", \"greeting\", \"grimm\", \"gromit\", \"gromit\", \"group\", \"group\", \"group\", \"group\", \"group\", \"group\", \"group\", \"group\", \"group\", \"group\", \"hades\", \"hades\", \"hardships\", \"harry\", \"harry\", \"harry\", \"harry\", \"harry\", \"harry\", \"harry\", \"harry\", \"harry\", \"harry\", \"harvey\", \"harvey\", \"harvey\", \"hawkins\", \"hawkins\", \"hawkins\", \"he\", \"he\", \"he\", \"he\", \"he\", \"he\", \"he\", \"he\", \"he\", \"he\", \"heated\", \"heavyweight\", \"hee\", \"help\", \"help\", \"help\", \"help\", \"help\", \"help\", \"help\", \"help\", \"help\", \"help\", \"henry\", \"henry\", \"henry\", \"henry\", \"henry\", \"henry\", \"henry\", \"henry\", \"henry\", \"henry\", \"her\", \"her\", \"her\", \"her\", \"her\", \"her\", \"her\", \"her\", \"her\", \"her\", \"hiccup\", \"hiccup\", \"high\", \"high\", \"high\", \"high\", \"high\", \"high\", \"high\", \"high\", \"high\", \"high\", \"hills\", \"hills\", \"him\", \"him\", \"him\", \"him\", \"him\", \"him\", \"him\", \"him\", \"him\", \"him\", \"hoggett\", \"home\", \"home\", \"home\", \"home\", \"home\", \"home\", \"home\", \"home\", \"home\", \"home\", \"homer\", \"honey\", \"house\", \"house\", \"house\", \"house\", \"house\", \"house\", \"house\", \"house\", \"house\", \"house\", \"however\", \"however\", \"however\", \"however\", \"however\", \"however\", \"however\", \"however\", \"however\", \"however\", \"human\", \"human\", \"human\", \"human\", \"human\", \"human\", \"human\", \"human\", \"human\", \"human\", \"humanoid\", \"hutt\", \"implanted\", \"improvise\", \"industrial\", \"ingenuity\", \"instructs\", \"invaded\", \"investigator\", \"investor\", \"ip\", \"isaac\", \"isaac\", \"it\", \"it\", \"it\", \"it\", \"it\", \"it\", \"it\", \"it\", \"it\", \"it\", \"jabba\", \"jack\", \"jack\", \"jack\", \"jack\", \"jack\", \"jack\", \"jack\", \"jack\", \"jack\", \"jack\", \"jamaican\", \"jamie\", \"jamie\", \"jamie\", \"jan\", \"jan\", \"jane\", \"jane\", \"jane\", \"jane\", \"jane\", \"jane\", \"jane\", \"jane\", \"jane\", \"jane\", \"jen\", \"jen\", \"jenna\", \"jenny\", \"jenny\", \"jerry\", \"jerusalem\", \"jessica\", \"jessica\", \"job\", \"job\", \"job\", \"job\", \"job\", \"job\", \"job\", \"job\", \"job\", \"job\", \"john\", \"john\", \"john\", \"john\", \"john\", \"john\", \"john\", \"john\", \"john\", \"john\", \"johnny\", \"johnny\", \"jones\", \"jones\", \"jones\", \"jones\", \"jones\", \"jones\", \"jones\", \"jones\", \"jones\", \"jones\", \"julio\", \"julio\", \"jump\", \"karate\", \"karate\", \"karate\", \"killer\", \"killer\", \"killer\", \"killer\", \"killer\", \"killer\", \"killer\", \"killer\", \"killer\", \"killer\", \"kimble\", \"kimble\", \"king\", \"king\", \"king\", \"king\", \"king\", \"king\", \"king\", \"king\", \"king\", \"king\", \"kirk\", \"kirk\", \"kirk\", \"kirk\", \"kirk\", \"kirk\", \"kirk\", \"kirk\", \"kirk\", \"know\", \"know\", \"know\", \"know\", \"know\", \"know\", \"know\", \"know\", \"know\", \"know\", \"kowalski\", \"kowalski\", \"kraken\", \"larry\", \"larry\", \"larry\", \"larry\", \"larry\", \"larry\", \"larry\", \"larry\", \"larry\", \"las\", \"le\", \"leavitt\", \"legacy\", \"leopold\", \"leopold\", \"letters\", \"life\", \"life\", \"life\", \"life\", \"life\", \"life\", \"life\", \"life\", \"life\", \"life\", \"lives\", \"lives\", \"lives\", \"lives\", \"lives\", \"lives\", \"lives\", \"lives\", \"lives\", \"lives\", \"lockwood\", \"logan\", \"logan\", \"logan\", \"louis\", \"louis\", \"louis\", \"louis\", \"louis\", \"love\", \"love\", \"love\", \"love\", \"love\", \"love\", \"love\", \"love\", \"love\", \"love\", \"loveless\", \"lowry\", \"madman\", \"magneto\", \"magneto\", \"malibu\", \"malkovich\", \"malkovich\", \"man\", \"man\", \"man\", \"man\", \"man\", \"man\", \"man\", \"man\", \"man\", \"man\", \"marcos\", \"marcos\", \"margaret\", \"margaret\", \"margaret\", \"marion\", \"married\", \"married\", \"married\", \"married\", \"married\", \"married\", \"married\", \"married\", \"married\", \"married\", \"martial\", \"martial\", \"martial\", \"martial\", \"max\", \"max\", \"max\", \"max\", \"max\", \"max\", \"max\", \"max\", \"max\", \"max\", \"mayan\", \"mayor\", \"mayor\", \"mayor\", \"mcclane\", \"mcclane\", \"mcclane\", \"meets\", \"meets\", \"meets\", \"meets\", \"meets\", \"meets\", \"meets\", \"meets\", \"meets\", \"meets\", \"melanie\", \"melanie\", \"melanie\", \"melted\", \"mia\", \"mia\", \"mia\", \"ming\", \"ming\", \"ministry\", \"miranda\", \"miranda\", \"misogynistic\", \"mission\", \"mission\", \"mission\", \"mission\", \"mission\", \"mission\", \"mission\", \"mission\", \"mission\", \"mission\", \"missions\", \"mister\", \"miyagi\", \"miyagi\", \"monkey\", \"mother\", \"mother\", \"mother\", \"mother\", \"mother\", \"mother\", \"mother\", \"mother\", \"mother\", \"mother\", \"museum\", \"museum\", \"museum\", \"mutants\", \"mutants\", \"mutants\", \"nails\", \"named\", \"named\", \"named\", \"named\", \"named\", \"named\", \"named\", \"named\", \"named\", \"named\", \"nathan\", \"nathan\", \"neighbour\", \"nelson\", \"nelson\", \"nelson\", \"new\", \"new\", \"new\", \"new\", \"new\", \"new\", \"new\", \"new\", \"new\", \"new\", \"night\", \"night\", \"night\", \"night\", \"night\", \"night\", \"night\", \"night\", \"night\", \"night\", \"nora\", \"nora\", \"norman\", \"norman\", \"norman\", \"norman\", \"notices\", \"nypd\", \"occupied\", \"occupied\", \"offices\", \"old\", \"old\", \"old\", \"old\", \"old\", \"old\", \"old\", \"old\", \"old\", \"old\", \"oncoming\", \"ongoing\", \"outlaw\", \"outpost\", \"overlord\", \"owen\", \"owen\", \"owl\", \"paint\", \"panem\", \"panem\", \"panther\", \"parents\", \"parents\", \"parents\", \"parents\", \"parents\", \"parents\", \"parents\", \"parents\", \"parents\", \"parents\", \"pat\", \"patrick\", \"patrick\", \"peeta\", \"people\", \"people\", \"people\", \"people\", \"people\", \"people\", \"people\", \"people\", \"people\", \"people\", \"percy\", \"percy\", \"perseus\", \"pete\", \"phil\", \"phil\", \"phillips\", \"pierre\", \"pig\", \"pig\", \"pig\", \"piglet\", \"pleasant\", \"police\", \"police\", \"police\", \"police\", \"police\", \"police\", \"police\", \"police\", \"police\", \"police\", \"pooh\", \"portal\", \"possessions\", \"powell\", \"pows\", \"pows\", \"predict\", \"preferences\", \"premiere\", \"pretending\", \"pretentious\", \"princess\", \"princess\", \"princess\", \"princess\", \"princess\", \"princess\", \"princess\", \"princess\", \"princess\", \"princess\", \"prof\", \"professed\", \"properties\", \"pub\", \"purple\", \"puss\", \"queen\", \"queen\", \"queen\", \"queen\", \"queen\", \"queen\", \"queen\", \"queen\", \"queen\", \"queen\", \"quest\", \"quest\", \"quest\", \"quest\", \"quest\", \"quest\", \"quest\", \"quest\", \"quest\", \"quest\", \"quinn\", \"race\", \"race\", \"race\", \"race\", \"race\", \"race\", \"race\", \"race\", \"race\", \"race\", \"ralph\", \"rapunzel\", \"rapunzel\", \"rats\", \"rats\", \"ray\", \"ray\", \"reacts\", \"real\", \"real\", \"real\", \"real\", \"real\", \"real\", \"real\", \"real\", \"real\", \"real\", \"recluse\", \"recurring\", \"refreshing\", \"reggie\", \"reggie\", \"reggie\", \"regina\", \"regina\", \"reid\", \"reign\", \"religion\", \"renegade\", \"replaced\", \"replacement\", \"retain\", \"reversed\", \"revisit\", \"reward\", \"richie\", \"richie\", \"ridiculed\", \"rio\", \"rio\", \"rio\", \"rita\", \"robbie\", \"robbie\", \"rod\", \"rod\", \"rogers\", \"rogers\", \"ron\", \"ron\", \"ron\", \"ron\", \"rooney\", \"rosewood\", \"ruby\", \"ruby\", \"ruins\", \"salt\", \"salt\", \"salvation\", \"sam\", \"sam\", \"sam\", \"sam\", \"sam\", \"sam\", \"sam\", \"sam\", \"sam\", \"sam\", \"sands\", \"save\", \"save\", \"save\", \"save\", \"save\", \"save\", \"save\", \"save\", \"save\", \"save\", \"savvy\", \"scarlett\", \"scarlett\", \"school\", \"school\", \"school\", \"school\", \"school\", \"school\", \"school\", \"school\", \"school\", \"school\", \"scott\", \"scott\", \"scott\", \"scott\", \"scuttle\", \"secret\", \"secret\", \"secret\", \"secret\", \"secret\", \"secret\", \"secret\", \"secret\", \"secret\", \"secret\", \"sent\", \"sent\", \"sent\", \"sent\", \"sent\", \"sent\", \"sent\", \"sent\", \"sent\", \"sent\", \"sentinels\", \"sentinels\", \"series\", \"series\", \"series\", \"series\", \"series\", \"series\", \"series\", \"series\", \"series\", \"series\", \"set\", \"set\", \"set\", \"set\", \"set\", \"set\", \"set\", \"set\", \"set\", \"set\", \"shakespeare\", \"shall\", \"shall\", \"sharon\", \"sharon\", \"shaw\", \"shaw\", \"shaw\", \"shogun\", \"should\", \"shrek\", \"shrek\", \"shrewd\", \"sick\", \"sinbad\", \"skeptical\", \"skeptical\", \"slater\", \"snow\", \"soap\", \"soap\", \"sobol\", \"socialite\", \"software\", \"son\", \"son\", \"son\", \"son\", \"son\", \"son\", \"son\", \"son\", \"son\", \"son\", \"sophie\", \"sophie\", \"sophie\", \"sophie\", \"sophie\", \"soprano\", \"sorority\", \"specialists\", \"speedy\", \"speedy\", \"spencer\", \"spencer\", \"spencer\", \"sperm\", \"spiders\", \"spock\", \"spock\", \"spock\", \"stanley\", \"stanley\", \"stanley\", \"stanley\", \"stanley\", \"stanley\", \"stanley\", \"stanley\", \"stanley\", \"stanley\", \"station\", \"station\", \"station\", \"station\", \"station\", \"station\", \"station\", \"station\", \"station\", \"station\", \"stop\", \"stop\", \"stop\", \"stop\", \"stop\", \"stop\", \"stop\", \"stop\", \"stop\", \"stop\", \"storage\", \"story\", \"story\", \"story\", \"story\", \"story\", \"story\", \"story\", \"story\", \"story\", \"story\", \"stuart\", \"stuart\", \"stuart\", \"sulley\", \"surgery\", \"surgery\", \"survivors\", \"survivors\", \"survivors\", \"survivors\", \"survivors\", \"survivors\", \"survivors\", \"survivors\", \"survivors\", \"survivors\", \"susan\", \"susan\", \"susan\", \"susan\", \"susan\", \"swat\", \"switched\", \"sylvia\", \"sylvia\", \"symbols\", \"t\", \"t\", \"t\", \"t\", \"t\", \"t\", \"t\", \"t\", \"t\", \"t\", \"taggart\", \"takes\", \"takes\", \"takes\", \"takes\", \"takes\", \"takes\", \"takes\", \"takes\", \"takes\", \"takes\", \"tape\", \"tape\", \"taylor\", \"taylor\", \"taylor\", \"ted\", \"ted\", \"ted\", \"ted\", \"teddy\", \"teleportation\", \"terminal\", \"terminator\", \"terminator\", \"terrorists\", \"terrorists\", \"terrorists\", \"terrorists\", \"terrorists\", \"terrorists\", \"terrorists\", \"terrorists\", \"terrorists\", \"terrorists\", \"terry\", \"terry\", \"thaddeus\", \"their\", \"them\", \"them\", \"them\", \"them\", \"them\", \"them\", \"them\", \"them\", \"them\", \"them\", \"thor\", \"thor\", \"thugs\", \"thugs\", \"thugs\", \"thugs\", \"thugs\", \"tigger\", \"tim\", \"tim\", \"time\", \"time\", \"time\", \"time\", \"time\", \"time\", \"time\", \"time\", \"time\", \"time\", \"timer\", \"tom\", \"tom\", \"tom\", \"tom\", \"tom\", \"tom\", \"tom\", \"tom\", \"tom\", \"tom\", \"town\", \"town\", \"town\", \"town\", \"town\", \"town\", \"town\", \"town\", \"town\", \"town\", \"toy\", \"toy\", \"transmission\", \"transporter\", \"trapped\", \"trapped\", \"trapped\", \"trapped\", \"trapped\", \"trapped\", \"trapped\", \"trapped\", \"trapped\", \"trapped\", \"trevor\", \"troy\", \"troy\", \"true\", \"true\", \"true\", \"true\", \"true\", \"true\", \"true\", \"true\", \"true\", \"true\", \"turtles\", \"unborn\", \"understandably\", \"unearth\", \"unseen\", \"unwillingly\", \"valerie\", \"valerie\", \"valerie\", \"vegas\", \"virgil\", \"vitti\", \"voldemort\", \"voldemort\", \"wallace\", \"wallace\", \"wallace\", \"walter\", \"walter\", \"walter\", \"walter\", \"walter\", \"walter\", \"walter\", \"walter\", \"walter\", \"walter\", \"wants\", \"wants\", \"wants\", \"wants\", \"wants\", \"wants\", \"wants\", \"wants\", \"wants\", \"wants\", \"war\", \"war\", \"war\", \"war\", \"war\", \"war\", \"war\", \"war\", \"war\", \"war\", \"waves\", \"way\", \"way\", \"way\", \"way\", \"way\", \"way\", \"way\", \"way\", \"way\", \"way\", \"wayne\", \"wayne\", \"wayne\", \"wayne\", \"wheeler\", \"wheeler\", \"wife\", \"wife\", \"wife\", \"wife\", \"wife\", \"wife\", \"wife\", \"wife\", \"wife\", \"wife\", \"woman\", \"woman\", \"woman\", \"woman\", \"woman\", \"woman\", \"woman\", \"woman\", \"woman\", \"woman\", \"woody\", \"work\", \"work\", \"work\", \"work\", \"work\", \"work\", \"work\", \"work\", \"work\", \"work\", \"world\", \"world\", \"world\", \"world\", \"world\", \"world\", \"world\", \"world\", \"world\", \"world\", \"x\", \"x\", \"x\", \"xerxes\", \"year\", \"year\", \"year\", \"year\", \"year\", \"year\", \"year\", \"year\", \"year\", \"year\", \"years\", \"years\", \"years\", \"years\", \"years\", \"years\", \"years\", \"years\", \"years\", \"years\", \"york\", \"york\", \"york\", \"york\", \"york\", \"york\", \"york\", \"york\", \"york\", \"york\", \"young\", \"young\", \"young\", \"young\", \"young\", \"young\", \"young\", \"young\", \"young\", \"young\", \"zack\", \"zeus\", \"zeus\", \"zoo\", \"zoo\"], \"Topic\": [4, 3, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 3, 7, 6, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 2, 3, 3, 9, 1, 6, 8, 9, 3, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 2, 5, 3, 8, 1, 9, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 4, 1, 2, 3, 4, 5, 6, 7, 8, 10, 1, 3, 5, 2, 4, 5, 4, 5, 8, 2, 8, 10, 4, 1, 2, 3, 4, 6, 8, 1, 9, 8, 3, 6, 3, 6, 5, 8, 5, 2, 4, 7, 9, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 3, 4, 7, 1, 2, 3, 5, 7, 10, 5, 4, 1, 10, 1, 6, 9, 4, 5, 2, 3, 8, 10, 2, 6, 8, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 2, 6, 9, 6, 1, 1, 4, 5, 6, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 6, 10, 6, 1, 4, 5, 9, 1, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 2, 5, 8, 7, 7, 7, 8, 10, 4, 7, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 5, 2, 9, 2, 2, 3, 9, 1, 3, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 8, 9, 3, 10, 3, 7, 4, 1, 4, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 7, 2, 6, 7, 9, 10, 9, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 4, 9, 1, 6, 7, 8, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 7, 9, 4, 4, 10, 2, 1, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 4, 6, 7, 2, 8, 4, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 5, 9, 3, 5, 7, 5, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 2, 4, 1, 2, 6, 6, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 6, 1, 5, 8, 4, 8, 4, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 5, 10, 7, 8, 8, 1, 1, 8, 3, 8, 5, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 1, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 3, 4, 5, 3, 4, 10, 2, 3, 2, 2, 6, 10, 6, 1, 3, 8, 3, 3, 6, 7, 8, 7, 3, 5, 8, 9, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 7, 3, 3, 9, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 4, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 2, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 1, 2, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 8, 9, 1, 10, 5, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 2, 7, 7, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 9, 2, 8, 7, 7, 5, 1, 7, 10, 1, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 5, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 8, 2, 4, 6, 8, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 6, 6, 1, 10, 7, 4, 2, 5, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 2, 4, 1, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 7, 8, 5, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 7, 7, 6, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 2, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 2, 6, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 4, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 8, 3, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 9, 10, 5, 10, 7, 6, 3, 7, 2, 9, 8, 7, 9, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 7, 1, 8, 9, 5, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 7, 8, 2, 2, 4, 7, 10, 3, 7, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 8, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 6, 6, 5, 8, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 4, 6, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 3, 6, 4, 1, 2, 3, 4, 5, 6, 7, 8, 9, 4, 10, 3, 10, 6, 7, 5, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 5, 7, 8, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 2, 1, 5, 7, 8, 6, 3, 6, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 3, 7, 4, 7, 9, 1, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 3, 4, 8, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 6, 5, 6, 10, 3, 6, 7, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 5, 8, 7, 4, 5, 9, 9, 10, 8, 5, 7, 9, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 4, 6, 5, 10, 8, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 5, 2, 7, 8, 6, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 3, 7, 2, 4, 5, 9, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 4, 1, 6, 8, 9, 5, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 5, 8, 7, 1, 8, 5, 9, 3, 10, 3, 7, 7, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 6, 2, 7, 3, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 4, 1, 3, 4, 2, 1, 1, 4, 8, 3, 2, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 3, 6, 6, 10, 3, 6, 3, 7, 9, 3, 7, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 2, 9, 3, 8, 9, 8, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 6, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 6, 4, 9, 3, 10, 1, 2, 9, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 8, 5, 9, 1, 3, 8, 4, 6, 3, 1, 5, 5, 4, 3, 7, 9, 4, 9, 5, 9, 4, 1, 4, 8, 10, 2, 7, 4, 6, 3, 4, 2, 4, 7, 8, 2, 2, 2, 9, 1, 2, 10, 8, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 8, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 5, 7, 8, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 2, 3, 5, 9, 8, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 8, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 3, 4, 7, 1, 4, 4, 5, 10, 5, 2, 8, 9, 6, 4, 4, 4, 6, 5, 4, 4, 9, 2, 6, 8, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 5, 6, 7, 9, 8, 5, 3, 1, 4, 3, 4, 7, 1, 9, 2, 3, 5, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 7, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 2, 4, 7, 6, 6, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 3, 5, 7, 10, 1, 3, 4, 5, 8, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 2, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 3, 4, 2, 5, 10, 2, 3, 7, 10, 8, 5, 6, 7, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 4, 5, 5, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 9, 2, 5, 7, 8, 10, 3, 2, 9, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 5, 10, 3, 5, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 7, 8, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 5, 10, 2, 2, 7, 4, 2, 3, 10, 4, 6, 2, 2, 8, 2, 5, 8, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 4, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 6, 7, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 4, 7, 8, 9, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 2, 2, 4, 4, 6], \"Freq\": [0.6123499096171466, 0.6265762597948401, 0.13160632546106515, 0.08773755030737677, 0.13160632546106515, 0.19740948819159773, 0.06580316273053258, 0.06580316273053258, 0.10967193788422097, 0.06580316273053258, 0.10967193788422097, 0.04386877515368839, 0.8384995887447684, 0.58957172653216, 0.6121816375286974, 0.9247031906392142, 0.7225584240582344, 0.1447675179692243, 0.12249559212780518, 0.1447675179692243, 0.12249559212780518, 0.15590348088993386, 0.05567981460354781, 0.06681577752425737, 0.06681577752425737, 0.04454385168283825, 0.06681577752425737, 0.2582543602248497, 0.5165087204496994, 0.2892568143544963, 0.5785136287089926, 0.1469925647857402, 0.1469925647857402, 0.1469925647857402, 0.2939851295714804, 0.8957415150064032, 0.19162663943057534, 0.07665065577223014, 0.03832532788611507, 0.26827729520280547, 0.03832532788611507, 0.03832532788611507, 0.26827729520280547, 0.03832532788611507, 0.03832532788611507, 0.03832532788611507, 0.5131470345037795, 0.25657351725188976, 0.7476407871507046, 0.6387692032752191, 0.23750250245098323, 0.47500500490196645, 0.1415042944320566, 0.1945684048440778, 0.0707521472160283, 0.0707521472160283, 0.0707521472160283, 0.12381625762804951, 0.12381625762804951, 0.05306411041202122, 0.08844018402003537, 0.0707521472160283, 0.9232753756094795, 0.08730182385004688, 0.17460364770009376, 0.08730182385004688, 0.08730182385004688, 0.08730182385004688, 0.08730182385004688, 0.08730182385004688, 0.08730182385004688, 0.26190547155014066, 0.6256105171311438, 0.2085368390437146, 0.9033724082784288, 0.8930342404822401, 0.6845461577010319, 0.22818205256701063, 0.6113087652013866, 0.8702404963997201, 0.6387669229191946, 0.10750048078870947, 0.5375024039435473, 0.10750048078870947, 0.6136646388036007, 0.151853837306451, 0.0759269186532255, 0.0759269186532255, 0.151853837306451, 0.0759269186532255, 0.45556151191935296, 0.6396602322596716, 0.21322007741989052, 0.638768608410237, 0.12419237980235487, 0.6209618990117743, 0.6001350797056477, 0.9417387077478601, 0.7913082041810436, 0.6387688561974646, 0.9130906188317244, 0.9306238522189103, 0.38016893386715733, 0.12672297795571913, 0.12672297795571913, 0.24117201609367173, 0.05359378135414927, 0.08039067203122391, 0.05359378135414927, 0.08039067203122391, 0.2143751254165971, 0.08039067203122391, 0.08039067203122391, 0.05359378135414927, 0.05359378135414927, 0.5690085014879659, 0.6154080739687398, 0.9537586617100914, 0.08474777703192138, 0.08474777703192138, 0.4237388851596069, 0.08474777703192138, 0.08474777703192138, 0.08474777703192138, 0.7154907847133111, 0.6273371825941358, 0.7048295560017129, 0.15662879022260287, 0.8080523402875156, 0.7319174982968806, 0.12198624971614677, 0.6273346961470426, 0.7484209886404302, 0.25628348080705204, 0.5125669616141041, 0.6387689074765991, 0.6436174748405773, 0.7023760586030784, 0.14047521172061567, 0.638766097265923, 0.18969140371501744, 0.1369993471275126, 0.08430729054000775, 0.07376887922250679, 0.08430729054000775, 0.08430729054000775, 0.12646093581001164, 0.09484570185750872, 0.07376887922250679, 0.052692056587504844, 0.3430695437491986, 0.11435651458306621, 0.3430695437491986, 0.9087830900429675, 0.9774726938202948, 0.25579561886927527, 0.5115912377385505, 0.6271231072936905, 0.6290788573227453, 0.12664155209697947, 0.09849898496431736, 0.19699796992863472, 0.09849898496431736, 0.11257026853064842, 0.0844277013979863, 0.11257026853064842, 0.07035641783165526, 0.04221385069899315, 0.05628513426532421, 0.6290821179466233, 0.7183293190388707, 0.6290763375127689, 0.6257371658115983, 0.20857905527053275, 0.687504315429862, 0.22916810514328734, 0.18896542829257063, 0.18896542829257063, 0.37793085658514125, 0.1574198723059979, 0.10119848933957008, 0.08995421274628451, 0.08995421274628451, 0.1574198723059979, 0.10119848933957008, 0.08995421274628451, 0.11244276593285564, 0.044977106373142256, 0.05622138296642782, 0.15967240506944474, 0.15967240506944474, 0.47901721520833423, 0.6212685472281632, 0.6376408364605132, 0.6977287319653875, 0.23257624398846252, 0.7498456881066549, 0.6179573738488456, 0.6224005249966291, 0.04892101919918985, 0.04892101919918985, 0.04892101919918985, 0.04892101919918985, 0.0978420383983797, 0.34244713439432894, 0.04892101919918985, 0.1956840767967594, 0.04892101919918985, 0.04892101919918985, 0.11657765641769073, 0.049961852750438886, 0.14988555825131666, 0.06661580366725185, 0.06661580366725185, 0.09992370550087777, 0.2664632146690074, 0.11657765641769073, 0.049961852750438886, 0.033307901833625926, 0.9100571885446325, 0.27852720893520333, 0.27852720893520333, 0.6245712492834771, 0.18224267569544905, 0.5467280270863472, 0.09112133784772453, 0.39239267246715476, 0.5231902299562063, 0.20259058816812361, 0.07958915963747713, 0.10853067223292336, 0.10129529408406181, 0.10129529408406181, 0.10853067223292336, 0.08682453778633868, 0.08682453778633868, 0.07235378148861557, 0.05788302519089246, 0.40517334615587797, 0.40517334615587797, 0.3024337316706823, 0.6048674633413647, 0.6803668731649775, 0.22678895772165916, 0.8435500923108123, 0.8246542166258066, 0.627337327910412, 0.172602544738385, 0.10787659046149062, 0.06472595427689437, 0.1941778628306831, 0.10787659046149062, 0.10787659046149062, 0.0863012723691925, 0.04315063618459625, 0.04315063618459625, 0.04315063618459625, 0.07895329454309967, 0.13816826545042443, 0.07895329454309967, 0.05921497090732475, 0.09869161817887459, 0.13816826545042443, 0.09869161817887459, 0.1184299418146495, 0.13816826545042443, 0.05921497090732475, 0.6376421358419254, 0.7295820647266026, 0.10818291957212711, 0.10818291957212711, 0.21636583914425422, 0.32454875871638134, 0.6894429772637904, 0.1226414446123172, 0.1226414446123172, 0.049056577844926876, 0.09811315568985375, 0.07358486676739032, 0.22075460030217095, 0.1226414446123172, 0.09811315568985375, 0.049056577844926876, 0.07358486676739032, 0.33886510459512037, 0.33886510459512037, 0.5680396074994339, 0.47587331360400553, 0.15862443786800184, 0.15862443786800184, 0.08588839368658226, 0.12024375116121515, 0.12024375116121515, 0.08588839368658226, 0.18895446611048095, 0.15459910863584805, 0.0687107149492658, 0.1030660724238987, 0.0343553574746329, 0.0343553574746329, 0.2811272494121692, 0.2811272494121692, 0.6273363884798638, 0.17925889865038186, 0.5377766959511456, 0.8300299639555654, 0.7991937011581622, 0.21153685695599048, 0.05288421423899762, 0.05288421423899762, 0.05288421423899762, 0.21153685695599048, 0.05288421423899762, 0.05288421423899762, 0.05288421423899762, 0.05288421423899762, 0.21153685695599048, 0.15738332619195172, 0.47214997857585517, 0.15738332619195172, 0.9318820322312944, 0.6387652417754265, 0.9365004146256798, 0.21138169502369877, 0.0960825886471358, 0.07686607091770864, 0.11529910637656296, 0.11529910637656296, 0.10569084751184939, 0.06725781205299507, 0.08647432978242223, 0.06725781205299507, 0.05764955318828148, 0.11261449435454994, 0.11261449435454994, 0.09009159548363996, 0.06756869661272996, 0.13513739322545992, 0.09009159548363996, 0.09009159548363996, 0.11261449435454994, 0.06756869661272996, 0.13513739322545992, 0.5048216758914891, 0.25241083794574454, 0.5171179167742009, 0.12927947919355023, 0.12927947919355023, 0.7484210500763568, 0.13400414827508922, 0.11390352603382584, 0.11390352603382584, 0.07370228155129907, 0.08040248896505353, 0.14070435568884368, 0.09380290379256245, 0.11390352603382584, 0.09380290379256245, 0.04690145189628123, 0.7183713003567007, 0.12246342953247533, 0.12246342953247533, 0.1036229019120945, 0.12246342953247533, 0.1036229019120945, 0.13188369334266573, 0.08478237429171369, 0.08478237429171369, 0.07536211048152328, 0.05652158286114246, 0.6245713711742703, 0.6273326792889873, 0.5680398105053455, 0.6245720467419067, 0.629078767585273, 0.6290797112335679, 0.12253157816682811, 0.10891695837051388, 0.09530233857419963, 0.09530233857419963, 0.09530233857419963, 0.1633754375557708, 0.10891695837051388, 0.0816877187778854, 0.06807309898157117, 0.0408438593889427, 0.6290819318620255, 0.1995251388814849, 0.09976256944074245, 0.3990502777629698, 0.7394694472607748, 0.8991058826194435, 0.6273348237382783, 0.5730785431508592, 0.1987628882185356, 0.061157811759549416, 0.13760507645898618, 0.061157811759549416, 0.09173671763932412, 0.04586835881966206, 0.10702617057921147, 0.10702617057921147, 0.07644726469943677, 0.10702617057921147, 0.347667986830289, 0.347667986830289, 0.23287578364366834, 0.698627350931005, 0.9528840050713618, 0.6529328383993191, 0.6491955150776975, 0.638637473130427, 0.6030314723691238, 0.6387687638167999, 0.6271232221951801, 0.1474147521570407, 0.06317775092444601, 0.1544345022597569, 0.10529625154074335, 0.049138250719013565, 0.1544345022597569, 0.08423700123259469, 0.10529625154074335, 0.07019750102716223, 0.05615800082172979, 0.7324874843052684, 0.8384984431642654, 0.40377250849022583, 0.05047156356127823, 0.05047156356127823, 0.05047156356127823, 0.05047156356127823, 0.05047156356127823, 0.05047156356127823, 0.05047156356127823, 0.05047156356127823, 0.20188625424511292, 0.8970415807294002, 0.26126717873200167, 0.5225343574640033, 0.6325716256573748, 0.12651432513147498, 0.12651432513147498, 0.2608375970199105, 0.521675194039821, 0.6245697065683199, 0.14813652207650155, 0.14813652207650155, 0.2962730441530031, 0.8137456030183011, 0.7994385089580748, 0.5830282502194515, 0.8689476959006568, 0.5962442010704013, 0.6265776125103955, 0.15557985144933228, 0.46673955434799685, 0.15557985144933228, 0.6376389838143125, 0.4725524046628338, 0.09451048093256675, 0.1890209618651335, 0.09451048093256675, 0.4554821929429656, 0.0569352741178707, 0.0569352741178707, 0.0569352741178707, 0.0569352741178707, 0.0569352741178707, 0.0569352741178707, 0.0569352741178707, 0.0569352741178707, 0.0569352741178707, 0.0854508680947821, 0.10443994989362257, 0.1139344907930428, 0.14241811349130348, 0.1139344907930428, 0.13292357259188325, 0.06646178629594163, 0.13292357259188325, 0.06646178629594163, 0.037978163597680935, 0.6376421210117186, 0.6265766771345983, 0.5106823706691297, 0.25534118533456485, 0.12753226788517133, 0.11477904109665421, 0.08927258751961994, 0.08927258751961994, 0.11477904109665421, 0.10202581430813708, 0.10202581430813708, 0.0765193607311028, 0.11477904109665421, 0.06376613394258566, 0.15709347160656423, 0.0932742487663975, 0.0932742487663975, 0.1227292746926283, 0.12763844568033345, 0.0932742487663975, 0.08836507777869237, 0.09818341975410265, 0.06381922284016672, 0.06381922284016672, 0.627337798863507, 0.26541553119699673, 0.09024128060697889, 0.10616621247879869, 0.10085790185485875, 0.09554959123091883, 0.08493296998303895, 0.07962465935909901, 0.053083106239399346, 0.06369972748727921, 0.06900803811121915, 0.913372343353338, 0.054769807668957754, 0.08215471150343663, 0.08215471150343663, 0.21907923067583102, 0.08215471150343663, 0.08215471150343663, 0.13692451917239437, 0.08215471150343663, 0.054769807668957754, 0.08215471150343663, 0.8384967934817674, 0.8473449839479582, 0.6245707463247969, 0.1266562527978013, 0.0886593769584609, 0.06332812639890065, 0.11399062751802116, 0.10132500223824104, 0.13932187807758142, 0.07599375167868078, 0.15198750335736155, 0.07599375167868078, 0.06332812639890065, 0.11456441103039158, 0.13018683071635406, 0.07811209842981244, 0.12497935748769991, 0.12497935748769991, 0.09894199134442909, 0.08331957165846661, 0.09894199134442909, 0.062489678743849954, 0.07811209842981244, 0.24736879895152922, 0.618421997378823, 0.252209211311162, 0.504418422622324, 0.331865003937282, 0.331865003937282, 0.6855935836384617, 0.11172003772610699, 0.0446880150904428, 0.20109606790699258, 0.0670320226356642, 0.2681280905426568, 0.0446880150904428, 0.0893760301808856, 0.0670320226356642, 0.0446880150904428, 0.0223440075452214, 0.10776259771564747, 0.12315725453216854, 0.12315725453216854, 0.10006526930738693, 0.115459926123908, 0.08467061249086587, 0.115459926123908, 0.10006526930738693, 0.0692759556743448, 0.06157862726608427, 0.173272984962827, 0.1266225659343736, 0.07330780133042682, 0.1132938747833869, 0.0999651836324002, 0.0866364924814135, 0.1132938747833869, 0.09330083805690685, 0.07997214690592017, 0.046650419028453426, 0.5341252416100234, 0.6243440763356355, 0.637641473556214, 0.1758117286118637, 0.13185879645889778, 0.1208705634206563, 0.08790586430593185, 0.07691763126769037, 0.06592939822944889, 0.14284702949713926, 0.07691763126769037, 0.05494116519120741, 0.06592939822944889, 0.7227508140334004, 0.5227033749855077, 0.26135168749275384, 0.9537577372027187, 0.6376426748894866, 0.8022311753199522, 0.17573902465711874, 0.5272170739713563, 0.17573902465711874, 0.7823732224465052, 0.1352494602466508, 0.1172161988804307, 0.09918293751421059, 0.1893492443453111, 0.09918293751421059, 0.08114967614799048, 0.09918293751421059, 0.06311641478177037, 0.05409978409866032, 0.04508315341555027, 0.9360488591181472, 0.6852754111420312, 0.11942641026134235, 0.06430652860226127, 0.16535964497724326, 0.11023976331816217, 0.11942641026134235, 0.11942641026134235, 0.12861305720452254, 0.09186646943180181, 0.055119881659081084, 0.045933234715900904, 0.748136899944426, 0.11499475139957387, 0.3449842541987216, 0.11499475139957387, 0.11499475139957387, 0.16464772752009768, 0.0914709597333876, 0.10976515168006512, 0.10061805570672636, 0.10061805570672636, 0.11891224765340389, 0.0914709597333876, 0.07317676778671008, 0.07317676778671008, 0.07317676778671008, 0.9394124271238861, 0.6290781242745579, 0.707847830487475, 0.10112111864106786, 0.6119419721534268, 0.6273355378824946, 0.7281044577641061, 0.18202611444102654, 0.13443628944453326, 0.07682073682544759, 0.07682073682544759, 0.13443628944453326, 0.15364147365089517, 0.08642332892862853, 0.11523110523817137, 0.10562851313499043, 0.057615552619085686, 0.048012960515904736, 0.22040604461604527, 0.44081208923209053, 0.5680395724570655, 0.14473502453411938, 0.17368202944094327, 0.05789400981364776, 0.02894700490682388, 0.05789400981364776, 0.05789400981364776, 0.02894700490682388, 0.2605230441614149, 0.05789400981364776, 0.14473502453411938, 0.24132302800600014, 0.4826460560120003, 0.12066151400300007, 0.21203585252908483, 0.42407170505816966, 0.21203585252908483, 0.13204893900834605, 0.1027047303398247, 0.08069657383843369, 0.11737683467408537, 0.09536867817269436, 0.08069657383843369, 0.1247128868412157, 0.07336052167130336, 0.06602446950417303, 0.11737683467408537, 0.625138311224911, 0.6376418974294277, 0.9394179289000678, 0.1919861870079422, 0.0959930935039711, 0.0959930935039711, 0.10163974606302822, 0.0959930935039711, 0.0959930935039711, 0.10728639862208535, 0.10728639862208535, 0.04517322047245699, 0.062113178149628356, 0.04345342393209939, 0.21726711966049694, 0.04345342393209939, 0.13036027179629817, 0.13036027179629817, 0.04345342393209939, 0.04345342393209939, 0.26072054359259633, 0.04345342393209939, 0.04345342393209939, 0.16980998343949402, 0.08043630794502347, 0.1161857781428117, 0.09831104304391758, 0.12512314569225874, 0.1161857781428117, 0.1161857781428117, 0.07149894039557643, 0.05362420529668232, 0.05362420529668232, 0.3472741851636903, 0.3472741851636903, 0.17157839522618587, 0.1048534637493358, 0.11438559681745723, 0.12391772988557867, 0.09532133068121437, 0.09532133068121437, 0.09532133068121437, 0.06672493147685006, 0.06672493147685006, 0.0762570645449715, 0.6498213636367948, 0.2166071212122649, 0.15329036239693805, 0.09433253070580802, 0.08843674753669502, 0.11791566338226003, 0.10022831387492102, 0.09433253070580802, 0.11791566338226003, 0.11791566338226003, 0.07074939802935602, 0.053062048522017013, 0.8852979878000797, 0.11694840060236228, 0.11045126723556437, 0.12994266733595808, 0.12344553396916018, 0.11045126723556437, 0.09095986713517065, 0.10395413386876647, 0.11045126723556437, 0.05197706693438323, 0.05197706693438323, 0.7762977678665032, 0.8970413602751311, 0.14214402708752594, 0.10660802031564444, 0.13029869149689877, 0.09476268472501728, 0.13029869149689877, 0.14214402708752594, 0.059226677953135805, 0.07107201354376297, 0.04738134236250864, 0.04738134236250864, 0.09283323026417098, 0.09283323026417098, 0.11346283698954232, 0.12377764035222798, 0.09283323026417098, 0.10314803362685665, 0.1444072470775993, 0.09283323026417098, 0.051574016813428325, 0.09283323026417098, 0.1998289429038791, 0.08881286351283516, 0.07771125557373075, 0.08881286351283516, 0.12211768733014833, 0.08881286351283516, 0.07771125557373075, 0.12211768733014833, 0.06660964763462636, 0.06660964763462636, 0.7227416979466659, 0.7498399168858452, 0.9361410199585773, 0.7498422581020648, 0.6075181666447259, 0.9394173807175205, 0.6065046081694998, 0.6376416776698088, 0.6158931092718262, 0.505709005573376, 0.9061098838960798, 0.5280054547311026, 0.2640027273655513, 0.126068797577682, 0.098053509227086, 0.12139958285258268, 0.098053509227086, 0.112061153402384, 0.112061153402384, 0.08871507977688733, 0.10739193867728467, 0.07003822087649, 0.06536900615139067, 0.7498418507766648, 0.11260639871267725, 0.07507093247511816, 0.0625591103959318, 0.11260639871267725, 0.23772461950454085, 0.0625591103959318, 0.07507093247511816, 0.17516550910860906, 0.050047288316745445, 0.03753546623755908, 0.9537471296664447, 0.18564659759367355, 0.18564659759367355, 0.3712931951873471, 0.6125033611939718, 0.20416778706465727, 0.38853106608504695, 0.07770621321700939, 0.038853106608504696, 0.038853106608504696, 0.07770621321700939, 0.11655931982551408, 0.07770621321700939, 0.07770621321700939, 0.038853106608504696, 0.038853106608504696, 0.509425201859727, 0.2547126009298635, 0.7302906574682513, 0.8578947344988314, 0.08578947344988314, 0.6122931608809643, 0.7498398898010683, 0.5524574884000999, 0.27622874420004995, 0.1937667043724069, 0.13563669306068482, 0.09688335218620345, 0.06781834653034241, 0.12594835784206448, 0.0871950169675831, 0.0871950169675831, 0.06781834653034241, 0.06781834653034241, 0.06781834653034241, 0.07580198878666738, 0.08843565358444529, 0.10106931838222319, 0.10106931838222319, 0.06316832398888948, 0.13897031277555688, 0.20213863676444638, 0.08843565358444529, 0.06316832398888948, 0.07580198878666738, 0.5672710399611804, 0.3545443999757378, 0.0520314182978556, 0.1040628365957112, 0.0520314182978556, 0.1040628365957112, 0.4682827646807004, 0.0520314182978556, 0.0520314182978556, 0.1040628365957112, 0.0520314182978556, 0.0520314182978556, 0.7266644380317874, 0.18166610950794684, 0.6290795747166563, 0.21467074298007569, 0.21467074298007569, 0.42934148596015137, 0.2020646166425219, 0.07577423124094572, 0.10103230832126095, 0.2020646166425219, 0.050516154160630475, 0.050516154160630475, 0.07577423124094572, 0.07577423124094572, 0.07577423124094572, 0.07577423124094572, 0.7318722876197695, 0.18296807190494238, 0.11257293472911592, 0.07035808420569746, 0.08442970104683695, 0.14071616841139492, 0.05628646736455796, 0.08442970104683695, 0.09850131788797643, 0.14071616841139492, 0.1547877852525344, 0.04221485052341847, 0.10293653790651074, 0.10293653790651074, 0.20587307581302147, 0.05146826895325537, 0.3602778826727876, 0.05146826895325537, 0.05146826895325537, 0.05146826895325537, 0.05146826895325537, 0.12684234149335255, 0.09513175612001441, 0.19026351224002883, 0.06342117074667628, 0.1585529268666907, 0.06342117074667628, 0.07927646343334535, 0.09513175612001441, 0.07927646343334535, 0.06342117074667628, 0.26188071723014744, 0.5237614344602949, 0.7409195498191833, 0.054408174778820886, 0.3264490486729253, 0.054408174778820886, 0.054408174778820886, 0.054408174778820886, 0.054408174778820886, 0.054408174778820886, 0.054408174778820886, 0.38085722345174616, 0.8916355319255056, 0.9132050785775934, 0.6265773607446932, 0.7498429108374977, 0.2598627583862012, 0.5197255167724024, 0.936048704523667, 0.15963005718612527, 0.12818777319491878, 0.10642003812408352, 0.08948957751343387, 0.09674548920371229, 0.0991641264338051, 0.1015827636638979, 0.09432685197361948, 0.06046593075232018, 0.0653032052125058, 0.1930990589835366, 0.13165844930695678, 0.08777229953797118, 0.07021783963037695, 0.10532675944556541, 0.07021783963037695, 0.13165844930695678, 0.08777229953797118, 0.06144060967657983, 0.06144060967657983, 0.7498438038930095, 0.12195044249722789, 0.48780176998891156, 0.24390088499445578, 0.07871834458021144, 0.39359172290105726, 0.07871834458021144, 0.07871834458021144, 0.23615503374063435, 0.13074367691152802, 0.10122091115731202, 0.13074367691152802, 0.07169814540309602, 0.11809106301686402, 0.11387352505197602, 0.09278583522753601, 0.09278583522753601, 0.09278583522753601, 0.054827993543544014, 0.7365940354733114, 0.838499085124755, 0.627123063807737, 0.6977282037515123, 0.23257606791717075, 0.6154244296471225, 0.22415880564645096, 0.6724764169393529, 0.14330372418241089, 0.0977070846698256, 0.11073469595913568, 0.08467947338051551, 0.08793637620284304, 0.14004682136008337, 0.11724850160379072, 0.11724850160379072, 0.05536734797956784, 0.0488535423349128, 0.5239180253593742, 0.2619590126796871, 0.4725573947105513, 0.15751913157018377, 0.15751913157018377, 0.8384989698848212, 0.08828620378749567, 0.08828620378749567, 0.21188688908998962, 0.10594344454499481, 0.07062896302999654, 0.052971722272497405, 0.1589151668174922, 0.08828620378749567, 0.07062896302999654, 0.052971722272497405, 0.08401752594699008, 0.08401752594699008, 0.08401752594699008, 0.5041051556819405, 0.07247802002991663, 0.036239010014958314, 0.07247802002991663, 0.036239010014958314, 0.07247802002991663, 0.036239010014958314, 0.39862911016454144, 0.10871703004487494, 0.036239010014958314, 0.07247802002991663, 0.6290809712667417, 0.21403414675241061, 0.21403414675241061, 0.42806829350482123, 0.1578116163321312, 0.1578116163321312, 0.4734348489963936, 0.14342904167573667, 0.12655503677270882, 0.10968103186968098, 0.10968103186968098, 0.09280702696665313, 0.10124402941816706, 0.08437002451513921, 0.09280702696665313, 0.06749601961211137, 0.05062201470908353, 0.5458001519363488, 0.09096669198939146, 0.09096669198939146, 0.6376405668948242, 0.3518163187716217, 0.11727210625720724, 0.3518163187716217, 0.25943973121108, 0.51887946242216, 0.6387686849783306, 0.2648896018033719, 0.5297792036067438, 0.5910529490271924, 0.12546555650258945, 0.06273277825129472, 0.18819833475388417, 0.07527933390155367, 0.1129190008523305, 0.10037244520207156, 0.10037244520207156, 0.10037244520207156, 0.05018622260103578, 0.08782588955181261, 0.6114589587118043, 0.6290814787408998, 0.2535084439823877, 0.5070168879647754, 0.9556503429259949, 0.14345869748965556, 0.11476695799172446, 0.09563913165977038, 0.09563913165977038, 0.10520304482574742, 0.08607521849379335, 0.10520304482574742, 0.04781956582988519, 0.13389478432367855, 0.06694739216183927, 0.19710428460481713, 0.39420856920963426, 0.19710428460481713, 0.1426931187529281, 0.4280793562587843, 0.1426931187529281, 0.629079490150165, 0.13804496573644331, 0.12270663621017182, 0.09202997715762887, 0.13804496573644331, 0.09969914192076461, 0.09202997715762887, 0.09969914192076461, 0.10736830668390035, 0.046014988578814434, 0.053684153341950175, 0.5297042635277796, 0.1765680878425932, 0.6245712195098005, 0.5201125340053503, 0.1733708446684501, 0.1733708446684501, 0.13317375529025388, 0.11958459658716676, 0.08968844744037507, 0.12773809180901904, 0.09240627918099249, 0.13317375529025388, 0.09240627918099249, 0.07066362525605309, 0.08153495221852279, 0.0625101300342008, 0.14064116410464442, 0.15145971518961707, 0.14064116410464442, 0.09736695976475383, 0.07572985759480853, 0.09736695976475383, 0.10818551084972648, 0.06491130650983588, 0.05409275542486324, 0.06491130650983588, 0.22413791074489892, 0.6724137322346967, 0.13687716955291573, 0.13687716955291573, 0.13687716955291573, 0.4106315086587472, 0.8516896310416041, 0.6249353913699728, 0.324470721671993, 0.324470721671993, 0.7315711017862544, 0.12879525026026978, 0.09490176334967247, 0.10168046073179193, 0.1084591581139114, 0.15591003978874762, 0.10168046073179193, 0.07456567120331409, 0.12201655287815032, 0.06100827643907516, 0.06100827643907516, 0.6271230323735201, 0.9556464267011554, 0.6376359926205575, 0.8384999860782468, 0.6241231877028462, 0.28670729992490407, 0.5734145998498081, 0.919532821731317, 0.7498451025273195, 0.5239157736363237, 0.26195788681816184, 0.6085020495980173, 0.10210033891200014, 0.10210033891200014, 0.16591305073200022, 0.12762542364000018, 0.10210033891200014, 0.11486288127600015, 0.06381271182000009, 0.10210033891200014, 0.0765752541840001, 0.05105016945600007, 0.9394164912349204, 0.20140704217263514, 0.6042211265179054, 0.626575533789813, 0.15795262308056757, 0.13425972961848243, 0.09477157384834053, 0.11846446731042568, 0.07107868038625541, 0.07107868038625541, 0.14215736077251082, 0.09477157384834053, 0.05528341807819865, 0.05528341807819865, 0.1355971736323043, 0.6779858681615216, 0.9226202463867995, 0.8385003378434829, 0.6795902317275845, 0.22653007724252816, 0.5390383163856567, 0.9291327796880738, 0.1512447158423054, 0.1512447158423054, 0.45373414752691615, 0.8409856038691317, 0.7028352003300078, 0.2858414538446906, 0.08337042403803475, 0.08337042403803475, 0.09528048461489687, 0.08337042403803475, 0.09528048461489687, 0.08337042403803475, 0.05955030288431054, 0.08337042403803475, 0.05955030288431054, 0.9217658858827456, 0.7080366762821336, 0.9097728407547561, 0.7498444838020922, 0.5224571999747772, 0.2612285999873886, 0.9349759848064527, 0.6376416118825916, 0.6786791143514989, 0.5989923715912296, 0.5940616854940283, 0.053735858105220934, 0.0806037871578314, 0.13433964526305234, 0.2418113614734942, 0.053735858105220934, 0.0806037871578314, 0.053735858105220934, 0.1612075743156628, 0.13433964526305234, 0.026867929052610467, 0.6245702146624822, 0.672181910392328, 0.9352315960648493, 0.9556503002513703, 0.6763845180269885, 0.8018642283969788, 0.08888625591380275, 0.044443127956901377, 0.06666469193535207, 0.15555094784915482, 0.06666469193535207, 0.2666587677414083, 0.06666469193535207, 0.11110781989225345, 0.08888625591380275, 0.044443127956901377, 0.09854435061950888, 0.09854435061950888, 0.05912661037170533, 0.21679757136291952, 0.05912661037170533, 0.1576709609912142, 0.11825322074341066, 0.05912661037170533, 0.0788354804956071, 0.03941774024780355, 0.8290120231471986, 0.13865377834559606, 0.08319226700735763, 0.05546151133823842, 0.15251915618015566, 0.08319226700735763, 0.16638453401471526, 0.09705764484191723, 0.11092302267647684, 0.06932688917279803, 0.05546151133823842, 0.9396892075817912, 0.189005183695155, 0.5670155510854651, 0.7104772745869825, 0.1420954549173965, 0.8063496424043297, 0.11519280605776139, 0.7227513273919122, 0.11330312328596252, 0.09914023287521721, 0.07081445205372658, 0.07081445205372658, 0.11330312328596252, 0.11330312328596252, 0.14162890410745316, 0.09914023287521721, 0.11330312328596252, 0.05665156164298126, 0.6387690877274578, 0.6271231523869178, 0.706297812370503, 0.09231080178385083, 0.09231080178385083, 0.6461756124869558, 0.1981879547177249, 0.5945638641531747, 0.6265771509679644, 0.568039597319709, 0.9361407827390482, 0.936139765676389, 0.7269176848143402, 0.6265777337560782, 0.6376398897756194, 0.6779339342395837, 0.6273353576085196, 0.7227503063808229, 0.3325677111979258, 0.3325677111979258, 0.6273355844640466, 0.5819398068278561, 0.14548495170696402, 0.14548495170696402, 0.5505536189868313, 0.22644569768033285, 0.6793370930409985, 0.11800800315830307, 0.7080480189498184, 0.25396306890660053, 0.5079261378132011, 0.5115655291302104, 0.10231310582604207, 0.10231310582604207, 0.10231310582604207, 0.920459450639824, 0.8815849376595822, 0.529606150356303, 0.2648030751781515, 0.6564710733305805, 0.3473476987434295, 0.3473476987434295, 0.6242389601733935, 0.11956159388446903, 0.11956159388446903, 0.21521086899204425, 0.11956159388446903, 0.07173695633068142, 0.04782463755378761, 0.11956159388446903, 0.04782463755378761, 0.07173695633068142, 0.023912318776893805, 0.6387633912415536, 0.14554205760746294, 0.1369807601011416, 0.0684903800505708, 0.11129686758217755, 0.11129686758217755, 0.12841946259482026, 0.07705167755689214, 0.0856129750632135, 0.07705167755689214, 0.05992908254424945, 0.9005510170859785, 0.26620696070370287, 0.5324139214074057, 0.2006358298957119, 0.09630519834994172, 0.12840693113325563, 0.12038149793742715, 0.11235606474159868, 0.06420346556662782, 0.07222889876245629, 0.06420346556662782, 0.05617803237079934, 0.08025433195828477, 0.21028062509174864, 0.10514031254587432, 0.10514031254587432, 0.31542093763762297, 0.6386533746562324, 0.12760691558434262, 0.12760691558434262, 0.09570518668825696, 0.08507127705622841, 0.11697300595231407, 0.09570518668825696, 0.13824082521637115, 0.10633909632028551, 0.05316954816014276, 0.06380345779217131, 0.15285107532930509, 0.0694777615133205, 0.11116441842131279, 0.1250599707239769, 0.0972688661186487, 0.11116441842131279, 0.0972688661186487, 0.0694777615133205, 0.11116441842131279, 0.0694777615133205, 0.22777961720983889, 0.6833388516295166, 0.07155335902351762, 0.10733003853527642, 0.10733003853527642, 0.03577667951175881, 0.07155335902351762, 0.3577667951175881, 0.07155335902351762, 0.10733003853527642, 0.03577667951175881, 0.03577667951175881, 0.14411080091023273, 0.10808310068267454, 0.10808310068267454, 0.12609695079645364, 0.12609695079645364, 0.09006925056889546, 0.099076175625785, 0.09006925056889546, 0.06304847539822682, 0.04503462528444773, 0.7273843001038447, 0.26490757737833, 0.52981515475666, 0.2560183538434483, 0.5120367076868966, 0.12412295367471073, 0.24824590734942145, 0.3723688610241322, 0.8647192284495517, 0.6245686945646653, 0.36948789041079894, 0.36948789041079894, 0.629079880808787, 0.49569427466489496, 0.6273327093364008, 0.5219402066714381, 0.2609701033357191, 0.9053111038582993, 0.8141308347495808, 0.20892708189160453, 0.41785416378320905, 0.8916418859138766, 0.819243257751881, 0.6387670196612552, 0.10885722257259971, 0.13607152821574964, 0.08164291692944978, 0.10885722257259971, 0.13607152821574964, 0.0997857873582164, 0.12700009300136633, 0.08164291692944978, 0.06350004650068317, 0.06350004650068317, 0.10104999863768682, 0.10104999863768682, 0.4041999945507473, 0.10104999863768682, 0.10104999863768682, 0.9280814186451738, 0.936144551498336, 0.9350148583120841, 0.8146240440213489, 0.11637486343162126, 0.1436596903370498, 0.1436596903370498, 0.5746387613481992, 0.624173036745103, 0.7227439121945229, 0.08035514485747455, 0.2410654345724237, 0.4017757242873728, 0.060007805348749915, 0.060007805348749915, 0.060007805348749915, 0.060007805348749915, 0.12001561069749983, 0.12001561069749983, 0.3600468320924995, 0.060007805348749915, 0.060007805348749915, 0.060007805348749915, 0.4360589989678919, 0.04360589989678919, 0.08721179979357838, 0.04360589989678919, 0.04360589989678919, 0.13081769969036758, 0.04360589989678919, 0.04360589989678919, 0.04360589989678919, 0.04360589989678919, 0.1434930525314236, 0.0717465262657118, 0.10249503752244543, 0.11274454127468997, 0.1434930525314236, 0.06149702251346725, 0.08199603001795634, 0.16399206003591268, 0.08199603001795634, 0.051247518761222716, 0.6088218725499792, 0.09208025955761398, 0.08440690459447948, 0.13812038933642098, 0.10742696948388299, 0.11510032444701748, 0.09208025955761398, 0.11510032444701748, 0.13044703437328647, 0.06906019466821049, 0.06138683970507599, 0.15946765568479884, 0.15946765568479884, 0.4784029670543965, 0.7880926190872638, 0.6179576089476042, 0.2059858696492014, 0.456888214311654, 0.050765357145739334, 0.050765357145739334, 0.10153071429147867, 0.050765357145739334, 0.10153071429147867, 0.050765357145739334, 0.050765357145739334, 0.050765357145739334, 0.050765357145739334, 0.2131399993276184, 0.1065699996638092, 0.1065699996638092, 0.1065699996638092, 0.3197099989914276, 0.5680394597372872, 0.6265775126070394, 0.15045820959117737, 0.7522910479558869, 0.6232210843171351, 0.19159168610342145, 0.08746576974286631, 0.12078606297824396, 0.07080562312517749, 0.0833007330884441, 0.07080562312517749, 0.12078606297824396, 0.11245598966939954, 0.07080562312517749, 0.0749706597795997, 0.8813863952822094, 0.12044740215021228, 0.08029826810014153, 0.1104101186376946, 0.16059653620028305, 0.1104101186376946, 0.1003728351251769, 0.13048468566272997, 0.08029826810014153, 0.06022370107510614, 0.05018641756258845, 0.5149658167554979, 0.17165527225183264, 0.1930738765484671, 0.1930738765484671, 0.3861477530969342, 0.10461034507281204, 0.10461034507281204, 0.41844138029124817, 0.10461034507281204, 0.6387557431347776, 0.6816722789668117, 0.9394158293029475, 0.39540081526068954, 0.39540081526068954, 0.07869135739313964, 0.07869135739313964, 0.15738271478627927, 0.07869135739313964, 0.07869135739313964, 0.07869135739313964, 0.07869135739313964, 0.07869135739313964, 0.07869135739313964, 0.31476542957255854, 0.1927219055007555, 0.5781657165022664, 0.6271234993883303, 0.7484195994338826, 0.1587996513736654, 0.09263312996797148, 0.11909973853024904, 0.0793998256868327, 0.0793998256868327, 0.10586643424911026, 0.1587996513736654, 0.06616652140569391, 0.05293321712455513, 0.0793998256868327, 0.7742727581087695, 0.12904545968479492, 0.10960321124266319, 0.10960321124266319, 0.3288096337279896, 0.10960321124266319, 0.10960321124266319, 0.5895716486056555, 0.5987946161640139, 0.19959820538800463, 0.12711046078685737, 0.17250705392502072, 0.11349148284540837, 0.08171386764869402, 0.11803114215922471, 0.05447591176579602, 0.08625352696251036, 0.12711046078685737, 0.059015571079612354, 0.059015571079612354, 0.5680394274343542, 0.0399894485357391, 0.0799788970714782, 0.11996834560721731, 0.0399894485357391, 0.0799788970714782, 0.0799788970714782, 0.23993669121443462, 0.0399894485357391, 0.1999472426786955, 0.0399894485357391, 0.09520198734402603, 0.14280298101603905, 0.08568178860962343, 0.16184337848484426, 0.09520198734402603, 0.05712119240641562, 0.10472218607842863, 0.14280298101603905, 0.05712119240641562, 0.05712119240641562, 0.20369165951560225, 0.4073833190312045, 0.873611508520377, 0.8639956501201921, 0.14481826066954578, 0.28963652133909157, 0.04827275355651526, 0.04827275355651526, 0.09654550711303052, 0.04827275355651526, 0.04827275355651526, 0.14481826066954578, 0.04827275355651526, 0.04827275355651526, 0.6657759188500787, 0.1770861005633088, 0.7083444022532353, 0.10260781144141011, 0.08550650953450842, 0.11970911334831179, 0.13681041525521348, 0.08550650953450842, 0.08550650953450842, 0.10260781144141011, 0.18811432097591854, 0.06840520762760674, 0.051303905720705055, 0.8899891543999318, 0.7025633005649164, 0.6245706803598744, 0.6245708642132487, 0.6134261931703309, 0.6214463470491566, 0.5081102508672285, 0.16937008362240952, 0.16937008362240952, 0.7981013575477282, 0.9202889875444683, 0.9048015140260564, 0.22482153888585432, 0.674464616657563, 0.42977760155484146, 0.2578665609329049, 0.08595552031096829, 0.05197075735180381, 0.25985378675901905, 0.05197075735180381, 0.05197075735180381, 0.10394151470360762, 0.10394151470360762, 0.05197075735180381, 0.05197075735180381, 0.05197075735180381, 0.20788302940721523, 0.1151772700981093, 0.13821272411773114, 0.13821272411773114, 0.09982030075169472, 0.07678484673207286, 0.09982030075169472, 0.13053423944452386, 0.07678484673207286, 0.06910636205886557, 0.06142787738565829, 0.12272377688003745, 0.08437259660502575, 0.0767023605500234, 0.0767023605500234, 0.16107495715504916, 0.1303940129350398, 0.1303940129350398, 0.12272377688003745, 0.061361888440018726, 0.046021416330014046, 0.6198666908800379, 0.16877049946405093, 0.11452283892203456, 0.07835773189402365, 0.12055035676003638, 0.06630269621802001, 0.10246780324603093, 0.09041276757002728, 0.10849532108403274, 0.06630269621802001, 0.07835773189402365, 0.5167739232167635, 0.10335478464335271, 0.10335478464335271, 0.10335478464335271, 0.5064087618127661, 0.25320438090638303, 0.15661260058031343, 0.10678131857748643, 0.07830630029015671, 0.09254380943382158, 0.08542505486198915, 0.099662564005654, 0.12813758229298372, 0.07830630029015671, 0.099662564005654, 0.07830630029015671, 0.12050141146225667, 0.0903760585966925, 0.06627577630424117, 0.108451270316031, 0.13255155260848234, 0.108451270316031, 0.17472704662027216, 0.08435098802357967, 0.06627577630424117, 0.04820056458490266, 0.9068171644345926, 0.14505272191484042, 0.12087726826236701, 0.1571404487410771, 0.07252636095742021, 0.1087895414361303, 0.08461408778365691, 0.1087895414361303, 0.060438634131183507, 0.08461408778365691, 0.07252636095742021, 0.10831421614590986, 0.10132620220101246, 0.09084418128366634, 0.08385616733876892, 0.18518236953978137, 0.09084418128366634, 0.09783219522856375, 0.10831421614590986, 0.07337414642142281, 0.06289212550407669, 0.11737762278510809, 0.5868881139255405, 0.11737762278510809, 0.7247356765350681, 0.12925385224973604, 0.09478615831647311, 0.11202000528310457, 0.1206369287664203, 0.11202000528310457, 0.09478615831647311, 0.07755231134984163, 0.12925385224973604, 0.0689353878665259, 0.06031846438321015, 0.18807568813707873, 0.10920523827314249, 0.09100436522761873, 0.07280349218209499, 0.07887044986393624, 0.10313828059130124, 0.09707132290946, 0.13954002668234874, 0.04853566145473, 0.06673653450025374, 0.13193752826481736, 0.09595456601077626, 0.05997160375673516, 0.13193752826481736, 0.15592616976751142, 0.16792049051885846, 0.08396024525942923, 0.04797728300538813, 0.05997160375673516, 0.05997160375673516, 0.1309989850881487, 0.10718098779939438, 0.09527198915501722, 0.11512032022897914, 0.10321132158460199, 0.13893831751773345, 0.11115065401418676, 0.06748432565147053, 0.06748432565147053, 0.059544993221885764, 0.8503651401798237, 0.17737438291927263, 0.7094975316770905, 0.16689278657690218, 0.6675711463076087]}, \"mdsDat\": {\"y\": [0.011125894575601931, -0.0035114776037454072, -0.03680971389836211, 0.00934490889749367, 0.016511358878256447, 0.028161438079822885, -0.010895677116577018, -0.010367571215838069, 0.0006086003054567231, -0.004167760902109017], \"x\": [-0.05034221283890668, 0.020489565324999705, -0.003375676839805856, 0.0048863221133020615, 0.0031166219078171335, 0.016972321016802763, 0.002911116748704508, 0.004774791405761274, 0.003410874185421603, -0.0028437230240966247], \"topics\": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], \"cluster\": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1], \"Freq\": [14.785007274114479, 10.596420593691231, 10.522205961625293, 10.463378007783705, 10.45625150947458, 10.351211454142542, 9.945160926631893, 9.88225362171537, 6.83953035229849, 6.158580298522415]}, \"R\": 30, \"lambda.step\": 0.01};\n", "\n", "function LDAvis_load_lib(url, callback){\n", " var s = document.createElement('script');\n", " s.src = url;\n", " s.async = true;\n", " s.onreadystatechange = s.onload = callback;\n", " s.onerror = function(){console.warn(\"failed to load library \" + url);};\n", " document.getElementsByTagName(\"head\")[0].appendChild(s);\n", "}\n", "\n", "if(typeof(LDAvis) !== \"undefined\"){\n", " // already loaded: just create the visualization\n", " !function(LDAvis){\n", " new LDAvis(\"#\" + \"ldavis_el2617146404026722199990525\", ldavis_el2617146404026722199990525_data);\n", " }(LDAvis);\n", "}else if(typeof define === \"function\" && define.amd){\n", " // require.js is available: use it to load d3/LDAvis\n", " require.config({paths: {d3: \"https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min\"}});\n", " require([\"d3\"], function(d3){\n", " window.d3 = d3;\n", " LDAvis_load_lib(\"https://cdn.rawgit.com/bmabey/pyLDAvis/files/ldavis.v1.0.0.js\", function(){\n", " new LDAvis(\"#\" + \"ldavis_el2617146404026722199990525\", ldavis_el2617146404026722199990525_data);\n", " });\n", " });\n", "}else{\n", " // require.js not available: dynamically load d3 & LDAvis\n", " LDAvis_load_lib(\"https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js\", function(){\n", " LDAvis_load_lib(\"https://cdn.rawgit.com/bmabey/pyLDAvis/files/ldavis.v1.0.0.js\", function(){\n", " new LDAvis(\"#\" + \"ldavis_el2617146404026722199990525\", ldavis_el2617146404026722199990525_data);\n", " })\n", " });\n", "}\n", "</script>" ], "text/plain": [ "<IPython.core.display.HTML object>" ] }, "execution_count": 5, "metadata": {}, "output_type": "execute_result" } ], "source": [ "import pyLDAvis.gensim\n", "\n", "viz = pyLDAvis.gensim.prepare(model, corpus, dictionary)\n", "pyLDAvis.display(viz)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The weight parameter λ can be viewed as a knob to adjust the ranks of the terms based on whether they are simply ranked according to their probability in the topic (λ=1) or are normalized by their marginal probability across the corpus (λ=0). Setting λ=1 could result in similar ranking of terms for large no. of topics hence making it difficult to differentiate between them, and setting λ=0 ranks terms solely based on their exclusiveness to current topic which could result in such rare terms that occur in only a single topic and hence the topics may remain difficult to interpret. [(Sievert and Shirley 2014)](https://nlp.stanford.edu/events/illvi2014/papers/sievert-illvi2014.pdf) suggested the optimal value of λ=0.6 based on a user study." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Conclusion\n", "\n", "We learned about visualizing the Document Embeddings and LDA Doc-topic distributions through Tensorboard's Embedding Projector. It is a useful tool for visualizing different types of data for example, word embeddings, document embeddings or the gene expressions and biological sequences. It just needs an input of 2D tensors and then you can explore your data using provided algorithms. You can also perform nearest neighbours search to find most similar data points to your query point.\n", "\n", "# References\n", " 1. https://grouplens.org/datasets/movielens/\n", " 2. https://lvdmaaten.github.io/tsne/\n" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.6.2" } }, "nbformat": 4, "nbformat_minor": 2 }
186,617
Python
.py
1,284
139.060748
128,449
0.63606
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,964
online_w2v_tutorial.ipynb
piskvorky_gensim/docs/notebooks/online_w2v_tutorial.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Online word2vec tutorial\n", "\n", "So far, word2vec cannot increase the size of vocabulary after initial training. To handle unknown words, not in word2vec vocaburary, you must retrain updated documents over again.\n", "\n", "In this tutorial, we introduce gensim new feature, online vocaburary update. This additional feature overcomes the unknown word problems. Despite after initial training, we can continuously add new vocaburary to the pre-trained word2vec model using this online feature.\n" ] }, { "cell_type": "code", "execution_count": 1, "metadata": { "collapsed": true }, "outputs": [], "source": [ "from gensim.corpora.wikicorpus import WikiCorpus\n", "from gensim.models.word2vec import Word2Vec, LineSentence\n", "from pprint import pprint\n", "from copy import deepcopy\n", "from multiprocessing import cpu_count\n", "from smart_open import smart_open" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Download wikipedia dump files\n", "\n", "We use the past and the current version of wiki dump files as online training." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "%%bash\n", "wget https://dumps.wikimedia.org/archive/2010/2010-11/enwiki/20101011/enwiki-20101011-pages-articles.xml.bz2\n", "wget https://dumps.wikimedia.org/enwiki/20160820/enwiki-20160820-pages-articles.xml.bz2" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Convert two wikipedia dump files\n", "To avoid alert when convert old verision of wikipedia dump, you should download alternative wikicorpus.py in my repo." ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [], "source": [ "old, new = [WikiCorpus('enwiki-{}-pages-articles.xml.bz2'.format(ymd)) for ymd in ['20101011', '20160820']]" ] }, { "cell_type": "code", "execution_count": 3, "metadata": { "collapsed": true }, "outputs": [], "source": [ "def write_wiki(wiki, name, titles = []):\n", " with smart_open('{}.wiki'.format(name), 'wb') as f:\n", " wiki.metadata = True\n", " for text, (page_id, title) in wiki.get_texts():\n", " if title not in titles:\n", " f.write(b' '.join(text)+b'\\n')\n", " titles.append(title)\n", " return titles" ] }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [], "source": [ "old_titles = write_wiki(old, 'old')\n", "all_titles = write_wiki(new, 'new', old_titles)" ] }, { "cell_type": "code", "execution_count": 5, "metadata": { "collapsed": true }, "outputs": [], "source": [ "oldwiki, newwiki = [LineSentence(f+'.wiki') for f in ['old', 'new']]" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Initial training\n", "At first we train word2vec using \"enwiki-20101011-pages-articles.xml.bz2\". After that, we update model using \"enwiki-20160820-pages-articles.xml.bz2\"." ] }, { "cell_type": "code", "execution_count": 6, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "CPU times: user 4h 39min 57s, sys: 1min 28s, total: 4h 41min 25s\n", "Wall time: 1h 32min 43s\n" ] } ], "source": [ "%%time\n", "model = Word2Vec(oldwiki, min_count = 0, workers=cpu_count())\n", "# model = Word2Vec.load('oldmodel')\n", "oldmodel = deepcopy(model)\n", "oldmodel.save('oldmodel')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "#### Japanese new idol group, [\"Babymetal\"](https://en.wikipedia.org/wiki/Babymetal), weren't known worldwide in 2010, so that the word, \"babymetal\", is not in oldmodel vocaburary.\n", "Note: In recent years, they became the famous idol group not only in Japan. They won many music awards and run world tour." ] }, { "cell_type": "code", "execution_count": 7, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "\"word 'babymetal' not in vocabulary\"\n" ] } ], "source": [ "try:\n", " print(oldmodel.most_similar('babymetal'))\n", "except KeyError as e:\n", " print(e)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Online update\n", "To use online word2vec feature, set update=True when you use build_vocab using new documents." ] }, { "cell_type": "code", "execution_count": 8, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "CPU times: user 2h 53min 51s, sys: 1min 1s, total: 2h 54min 52s\n", "Wall time: 57min 24s\n" ] } ], "source": [ "%%time\n", "model.build_vocab(newwiki, update=True)\n", "model.train(newwiki, total_examples=model.corpus_count, epochs=model.iter)\n", "model.save('newmodel')\n", "# model = Word2Vec.load('newmodel')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "#### Model Comparison\n", "By the online training, the size of vocaburaries are increased about 3 millions." ] }, { "cell_type": "code", "execution_count": 9, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "The vocabulary size of the oldmodel is 6161170\n", "The vocabulary size of the model is 8469444\n" ] } ], "source": [ "for m in ['oldmodel', 'model']:\n", " print('The vocabulary size of the', m, 'is', len(eval(m).wv.vocab))" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "#### After online training, the word, \"babymetal\", is added in model. This word is simillar with rock and metal bands." ] }, { "cell_type": "code", "execution_count": 10, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "[('espairsray', 0.7539531588554382),\n", " ('crossfaith', 0.7476214170455933),\n", " ('mucc', 0.7363666296005249),\n", " ('girugamesh', 0.7309226989746094),\n", " ('flumpool', 0.7182492017745972),\n", " ('gackt', 0.715751051902771),\n", " ('jpop', 0.7055245637893677),\n", " ('kuroyume', 0.7049269676208496),\n", " ('ellegarden', 0.7018687725067139),\n", " ('tigertailz', 0.701062023639679)]\n" ] } ], "source": [ "try:\n", " pprint(model.most_similar('babymetal'))\n", "except KeyError as e:\n", " print(e)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## The word, \"Zootopia\", become disney movie through the years.\n", "In the past, the word, \"Zootopia\", was used just for an annual summer concert put on by New York top-40 radio station Z100, so that the word, \"zootopia\", is simillar with music festival.\n", "\n", "In 2016, Zootopia is a American 3D computer-animated comedy film released by Walt Disney Pictures. As a result, the word, \"zootopia\", was often used as Animation films." ] }, { "cell_type": "code", "execution_count": 11, "metadata": { "scrolled": false }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "The count of the word,zootopia, is 24 in oldmodel\n", "[('itsekseni', 0.655870258808136),\n", " ('baverstam', 0.6502687931060791),\n", " ('hachnosas', 0.6450551748275757),\n", " ('carrantouhill', 0.631106436252594),\n", " ('bugasan', 0.6258121728897095),\n", " ('lollapolooza', 0.6192305088043213),\n", " ('hutuz', 0.6134281754493713),\n", " ('soulico', 0.6122198104858398),\n", " ('kabungwe', 0.6060466766357422),\n", " ('prischoßhalle', 0.6056506633758545)]\n", "\n", "The count of the word,zootopia, is 257 in model\n", "[('incredibles', 0.7643648386001587),\n", " ('antz', 0.7575620412826538),\n", " ('spaceballs', 0.7434272766113281),\n", " ('pagemaster', 0.730089545249939),\n", " ('beetlejuice', 0.7257461547851562),\n", " ('coneheads', 0.7239412069320679),\n", " ('tarzan', 0.7139339447021484),\n", " ('catscratch', 0.7124171257019043),\n", " ('boxtrolls', 0.7024375796318054),\n", " ('aristocats', 0.7005465030670166)]\n", "\n" ] } ], "source": [ "w = 'zootopia'\n", "for m in ['oldmodel', 'model']:\n", " print('The count of the word,'+w+', is', eval(m).wv.vocab[w].count, 'in', m)\n", " pprint(eval(m).most_similar(w))\n", " print('')" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.7.1" } }, "nbformat": 4, "nbformat_minor": 1 }
9,441
Python
.py
335
23.602985
277
0.579179
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,965
topic_coherence_tutorial.ipynb
piskvorky_gensim/docs/notebooks/topic_coherence_tutorial.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Demonstration of the topic coherence pipeline in Gensim" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Introduction" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "We will be using the `u_mass` and `c_v` coherence for two different LDA models: a \"good\" and a \"bad\" LDA model. The good LDA model will be trained over 50 iterations and the bad one for 1 iteration. Hence in theory, the good LDA model will be able come up with better or more human-understandable topics. Therefore the coherence measure output for the good LDA model should be more (better) than that for the bad LDA model. This is because, simply, the good LDA model usually comes up with better topics that are more human interpretable." ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "from __future__ import print_function\n", "\n", "import os\n", "import logging\n", "import json\n", "import warnings\n", "\n", "try:\n", " raise ImportError\n", " import pyLDAvis.gensim\n", " CAN_VISUALIZE = True\n", " pyLDAvis.enable_notebook()\n", " from IPython.display import display\n", "except ImportError:\n", " ValueError(\"SKIP: please install pyLDAvis\")\n", " CAN_VISUALIZE = False\n", "\n", "import numpy as np\n", "\n", "from gensim.models import CoherenceModel, LdaModel, HdpModel\n", "from gensim.models.wrappers import LdaVowpalWabbit, LdaMallet\n", "from gensim.corpora import Dictionary\n", "\n", "warnings.filterwarnings('ignore') # To ignore all warnings that arise here to enhance clarity" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Set up corpus" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "As stated in table 2 from [this](http://www.cs.bham.ac.uk/~pxt/IDA/lsa_ind.pdf) paper, this corpus essentially has two classes of documents. First five are about human-computer interaction and the other four are about graphs. We will be setting up two LDA models. One with 50 iterations of training and the other with just 1. Hence the one with 50 iterations (\"better\" model) should be able to capture this underlying pattern of the corpus better than the \"bad\" LDA model. Therefore, in theory, our topic coherence for the good LDA model should be greater than the one for the bad LDA model." ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [], "source": [ "texts = [['human', 'interface', 'computer'],\n", " ['survey', 'user', 'computer', 'system', 'response', 'time'],\n", " ['eps', 'user', 'interface', 'system'],\n", " ['system', 'human', 'system', 'eps'],\n", " ['user', 'response', 'time'],\n", " ['trees'],\n", " ['graph', 'trees'],\n", " ['graph', 'minors', 'trees'],\n", " ['graph', 'minors', 'survey']]" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [], "source": [ "dictionary = Dictionary(texts)\n", "corpus = [dictionary.doc2bow(text) for text in texts]" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Set up two topic models" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "We'll be setting up two different LDA Topic models. A good one and bad one. To build a \"good\" topic model, we'll simply train it using more iterations than the bad one. Therefore the `u_mass` coherence should in theory be better for the good model than the bad one since it would be producing more \"human-interpretable\" topics." ] }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [], "source": [ "goodLdaModel = LdaModel(corpus=corpus, id2word=dictionary, iterations=50, num_topics=2)\n", "badLdaModel = LdaModel(corpus=corpus, id2word=dictionary, iterations=1, num_topics=2)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Using U_Mass Coherence" ] }, { "cell_type": "code", "execution_count": 5, "metadata": {}, "outputs": [], "source": [ "goodcm = CoherenceModel(model=goodLdaModel, corpus=corpus, dictionary=dictionary, coherence='u_mass')\n", "badcm = CoherenceModel(model=badLdaModel, corpus=corpus, dictionary=dictionary, coherence='u_mass')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### View the pipeline parameters for one coherence model" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Following are the pipeline parameters for `u_mass` coherence. By pipeline parameters, we mean the functions being used to calculate segmentation, probability estimation, confirmation measure and aggregation as shown in figure 1 in [this](http://svn.aksw.org/papers/2015/WSDM_Topic_Evaluation/public.pdf) paper." ] }, { "cell_type": "code", "execution_count": 6, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Coherence_Measure(seg=<function s_one_pre at 0x7f6b0a12ed90>, prob=<function p_boolean_document at 0x7f6b0a12eea0>, conf=<function log_conditional_probability at 0x7f6b09c326a8>, aggr=<function arithmetic_mean at 0x7f6b09c32f28>)\n" ] } ], "source": [ "print(goodcm)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Interpreting the topics" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "As we will see below using LDA visualization, the better model comes up with two topics composed of the following words:\n", "1. goodLdaModel:\n", " - __Topic 1__: More weightage assigned to words such as \"system\", \"user\", \"eps\", \"interface\" etc which captures the first set of documents.\n", " - __Topic 2__: More weightage assigned to words such as \"graph\", \"trees\", \"survey\" which captures the topic in the second set of documents.\n", "2. badLdaModel:\n", " - __Topic 1__: More weightage assigned to words such as \"system\", \"user\", \"trees\", \"graph\" which doesn't make the topic clear enough.\n", " - __Topic 2__: More weightage assigned to words such as \"system\", \"trees\", \"graph\", \"user\" which is similar to the first topic. Hence both topics are not human-interpretable.\n", "\n", "Therefore, the topic coherence for the goodLdaModel should be greater for this than the badLdaModel since the topics it comes up with are more human-interpretable. We will see this using `u_mass` and `c_v` topic coherence measures." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Visualize topic models" ] }, { "cell_type": "code", "execution_count": 7, "metadata": {}, "outputs": [], "source": [ "if CAN_VISUALIZE:\n", " prepared = pyLDAvis.gensim.prepare(goodLdaModel, corpus, dictionary)\n", " display(pyLDAvis.display(prepared))" ] }, { "cell_type": "code", "execution_count": 8, "metadata": {}, "outputs": [], "source": [ "if CAN_VISUALIZE:\n", " prepared = pyLDAvis.gensim.prepare(badLdaModel, corpus, dictionary)\n", " display(pyLDAvis.display(prepared))" ] }, { "cell_type": "code", "execution_count": 9, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "-14.695344054692296\n", "-14.722989402972397\n" ] } ], "source": [ "print(goodcm.get_coherence())\n", "print(badcm.get_coherence())" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Using C_V coherence" ] }, { "cell_type": "code", "execution_count": 10, "metadata": {}, "outputs": [], "source": [ "goodcm = CoherenceModel(model=goodLdaModel, texts=texts, dictionary=dictionary, coherence='c_v')\n", "badcm = CoherenceModel(model=badLdaModel, texts=texts, dictionary=dictionary, coherence='c_v')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Pipeline parameters for C_V coherence" ] }, { "cell_type": "code", "execution_count": 11, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Coherence_Measure(seg=<function s_one_set at 0x7f6b0a12ee18>, prob=<function p_boolean_sliding_window at 0x7f6b0a1421e0>, conf=<function cosine_similarity at 0x7f6b09c328c8>, aggr=<function arithmetic_mean at 0x7f6b09c32f28>)\n" ] } ], "source": [ "print(goodcm)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Print coherence values" ] }, { "cell_type": "code", "execution_count": 12, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "0.3838413553737203\n", "0.3838413553737203\n" ] } ], "source": [ "print(goodcm.get_coherence())\n", "print(badcm.get_coherence())" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Support for wrappers" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "This API supports gensim's _ldavowpalwabbit_ and _ldamallet_ wrappers as input parameter to `model`." ] }, { "cell_type": "code", "execution_count": 13, "metadata": {}, "outputs": [], "source": [ "# Replace with path to your Vowpal Wabbit installation\n", "vw_path = '/usr/local/bin/vw'\n", "\n", "# Replace with path to your Mallet installation\n", "home = os.path.expanduser('~')\n", "mallet_path = os.path.join(home, 'mallet-2.0.8', 'bin', 'mallet')" ] }, { "cell_type": "code", "execution_count": 14, "metadata": {}, "outputs": [ { "ename": "FileNotFoundError", "evalue": "[Errno 2] No such file or directory: '/usr/local/bin/vw': '/usr/local/bin/vw'", "output_type": "error", "traceback": [ "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", "\u001b[0;31mFileNotFoundError\u001b[0m Traceback (most recent call last)", "\u001b[0;32m<ipython-input-14-9421c07a3fe9>\u001b[0m in \u001b[0;36m<module>\u001b[0;34m\u001b[0m\n\u001b[0;32m----> 1\u001b[0;31m \u001b[0mmodel1\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mLdaVowpalWabbit\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mvw_path\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mcorpus\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mcorpus\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mnum_topics\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;36m2\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mid2word\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mdictionary\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mpasses\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;36m50\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 2\u001b[0m \u001b[0mmodel2\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mLdaVowpalWabbit\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mvw_path\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mcorpus\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mcorpus\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mnum_topics\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;36m2\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mid2word\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mdictionary\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mpasses\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;36m1\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", "\u001b[0;32m~/git/gensim/gensim/models/wrappers/ldavowpalwabbit.py\u001b[0m in \u001b[0;36m__init__\u001b[0;34m(self, vw_path, corpus, num_topics, id2word, chunksize, passes, alpha, eta, decay, offset, gamma_threshold, random_seed, cleanup_files, tmp_prefix)\u001b[0m\n\u001b[1;32m 214\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 215\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0mcorpus\u001b[0m \u001b[0;32mis\u001b[0m \u001b[0;32mnot\u001b[0m \u001b[0;32mNone\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 216\u001b[0;31m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mtrain\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mcorpus\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 217\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 218\u001b[0m \u001b[0;32mdef\u001b[0m \u001b[0mtrain\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mcorpus\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", "\u001b[0;32m~/git/gensim/gensim/models/wrappers/ldavowpalwabbit.py\u001b[0m in \u001b[0;36mtrain\u001b[0;34m(self, corpus)\u001b[0m\n\u001b[1;32m 235\u001b[0m \u001b[0mcmd\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_get_vw_train_command\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mcorpus_size\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 236\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 237\u001b[0;31m \u001b[0m_run_vw_command\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mcmd\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 238\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 239\u001b[0m \u001b[0;31m# ensure that future updates of this model use correct offset\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", "\u001b[0;32m~/git/gensim/gensim/models/wrappers/ldavowpalwabbit.py\u001b[0m in \u001b[0;36m_run_vw_command\u001b[0;34m(cmd)\u001b[0m\n\u001b[1;32m 849\u001b[0m \u001b[0mlogger\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0minfo\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m\"Running Vowpal Wabbit command: %s\"\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m' '\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mjoin\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mcmd\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 850\u001b[0m proc = subprocess.Popen(cmd, stdout=subprocess.PIPE,\n\u001b[0;32m--> 851\u001b[0;31m stderr=subprocess.STDOUT)\n\u001b[0m\u001b[1;32m 852\u001b[0m \u001b[0moutput\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mproc\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mcommunicate\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;36m0\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mdecode\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m'utf-8'\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 853\u001b[0m \u001b[0mlogger\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mdebug\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m\"Vowpal Wabbit output: %s\"\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0moutput\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", "\u001b[0;32m/usr/lib/python3.7/subprocess.py\u001b[0m in \u001b[0;36m__init__\u001b[0;34m(self, args, bufsize, executable, stdin, stdout, stderr, preexec_fn, close_fds, shell, cwd, env, universal_newlines, startupinfo, creationflags, restore_signals, start_new_session, pass_fds, encoding, errors, text)\u001b[0m\n\u001b[1;32m 773\u001b[0m \u001b[0mc2pread\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mc2pwrite\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 774\u001b[0m \u001b[0merrread\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0merrwrite\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 775\u001b[0;31m restore_signals, start_new_session)\n\u001b[0m\u001b[1;32m 776\u001b[0m \u001b[0;32mexcept\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 777\u001b[0m \u001b[0;31m# Cleanup if the child failed starting.\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", "\u001b[0;32m/usr/lib/python3.7/subprocess.py\u001b[0m in \u001b[0;36m_execute_child\u001b[0;34m(self, args, executable, preexec_fn, close_fds, pass_fds, cwd, env, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, restore_signals, start_new_session)\u001b[0m\n\u001b[1;32m 1520\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0merrno_num\u001b[0m \u001b[0;34m==\u001b[0m \u001b[0merrno\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mENOENT\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1521\u001b[0m \u001b[0merr_msg\u001b[0m \u001b[0;34m+=\u001b[0m \u001b[0;34m': '\u001b[0m \u001b[0;34m+\u001b[0m \u001b[0mrepr\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0merr_filename\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m-> 1522\u001b[0;31m \u001b[0;32mraise\u001b[0m \u001b[0mchild_exception_type\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0merrno_num\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0merr_msg\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0merr_filename\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 1523\u001b[0m \u001b[0;32mraise\u001b[0m \u001b[0mchild_exception_type\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0merr_msg\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1524\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n", "\u001b[0;31mFileNotFoundError\u001b[0m: [Errno 2] No such file or directory: '/usr/local/bin/vw': '/usr/local/bin/vw'" ] } ], "source": [ "model1 = LdaVowpalWabbit(vw_path, corpus=corpus, num_topics=2, id2word=dictionary, passes=50)\n", "model2 = LdaVowpalWabbit(vw_path, corpus=corpus, num_topics=2, id2word=dictionary, passes=1)" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "cm1 = CoherenceModel(model=model1, corpus=corpus, coherence='u_mass')\n", "cm2 = CoherenceModel(model=model2, corpus=corpus, coherence='u_mass')\n", "print(cm1.get_coherence())\n", "print(cm2.get_coherence())" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "model1 = LdaMallet(mallet_path, corpus=corpus, num_topics=2, id2word=dictionary, iterations=50)\n", "model2 = LdaMallet(mallet_path, corpus=corpus, num_topics=2, id2word=dictionary, iterations=1)" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "cm1 = CoherenceModel(model=model1, texts=texts, coherence='c_v')\n", "cm2 = CoherenceModel(model=model2, texts=texts, coherence='c_v')\n", "print(cm1.get_coherence())\n", "print(cm2.get_coherence())" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Support for other topic models\n", "The gensim topics coherence pipeline can be used with other topics models too. Only the tokenized `topics` should be made available for the pipeline. Eg. with the gensim HDP model" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "hm = HdpModel(corpus=corpus, id2word=dictionary)" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# To get the topic words from the model\n", "topics = []\n", "for topic_id, topic in hm.show_topics(num_topics=10, formatted=False):\n", " topic = [word for word, _ in topic]\n", " topics.append(topic)\n", "topics[:2]" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# Initialize CoherenceModel using `topics` parameter\n", "cm = CoherenceModel(topics=topics, corpus=corpus, dictionary=dictionary, coherence='u_mass')\n", "cm.get_coherence()" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Conclusion" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Hence as we can see, the `u_mass` and `c_v` coherence for the good LDA model is much more (better) than that for the bad LDA model. This is because, simply, the good LDA model usually comes up with better topics that are more human interpretable. The badLdaModel however fails to decipher between these two topics and comes up with topics which are not clear to a human. The `u_mass` and `c_v` topic coherences capture this wonderfully by giving the interpretability of these topics a number as we can see above. Hence this coherence measure can be used to compare difference topic models based on their human-interpretability." ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.7.1" } }, "nbformat": 4, "nbformat_minor": 1 }
21,938
Python
.py
473
42.156448
1,532
0.648777
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,966
WMD_tutorial.ipynb
piskvorky_gensim/docs/notebooks/WMD_tutorial.ipynb
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Finding similar documents with Word2Vec and WMD \n", "\n", "Word Mover's Distance is a promising new tool in machine learning that allows us to submit a query and return the most relevant documents. For example, in a blog post [OpenTable](http://tech.opentable.com/2015/08/11/navigating-themes-in-restaurant-reviews-with-word-movers-distance/) use WMD on restaurant reviews. Using this approach, they are able to mine different aspects of the reviews. In **part 2** of this tutorial, we show how you can use Gensim's `WmdSimilarity` to do something similar to what OpenTable did. In **part 1** shows how you can compute the WMD distance between two documents using `wmdistance`. Part 1 is optional if you want use `WmdSimilarity`, but is also useful in it's own merit.\n", "\n", "First, however, we go through the basics of what WMD is.\n", "\n", "## Word Mover's Distance basics\n", "\n", "WMD is a method that allows us to assess the \"distance\" between two documents in a meaningful way, even when they have no words in common. It uses [word2vec](https://rare-technologies.com/word2vec-tutorial/) [4] vector embeddings of words. It been shown to outperform many of the state-of-the-art methods in *k*-nearest neighbors classification [3].\n", "\n", "WMD is illustrated below for two very similar sentences (illustration taken from [Vlad Niculae's blog](http://vene.ro/blog/word-movers-distance-in-python.html)). The sentences have no words in common, but by matching the relevant words, WMD is able to accurately measure the (dis)similarity between the two sentences. The method also uses the bag-of-words representation of the documents (simply put, the word's frequencies in the documents), noted as $d$ in the figure below. The intuition behind the method is that we find the minimum \"traveling distance\" between documents, in other words the most efficient way to \"move\" the distribution of document 1 to the distribution of document 2.\n", "\n", "<img src='https://vene.ro/images/wmd-obama.png' height='600' width='600'>\n", "\n", "\n", "This method was introduced in the article \"From Word Embeddings To Document Distances\" by Matt Kusner et al. ([link to PDF](http://jmlr.org/proceedings/papers/v37/kusnerb15.pdf)). It is inspired by the \"Earth Mover's Distance\", and employs a solver of the \"transportation problem\".\n", "\n", "In this tutorial, we will learn how to use Gensim's WMD functionality, which consists of the `wmdistance` method for distance computation, and the `WmdSimilarity` class for corpus based similarity queries.\n", "\n", "> **Note**:\n", ">\n", "> If you use this software, please consider citing [1], [2] and [3].\n", ">\n", "\n", "## Running this notebook\n", "\n", "You can download this [iPython Notebook](http://ipython.org/notebook.html), and run it on your own computer, provided you have installed Gensim, POT, NLTK, and downloaded the necessary data.\n", "\n", "The notebook was run on an Ubuntu machine with an Intel core i7-4770 CPU 3.40GHz (8 cores) and 32 GB memory. Running the entire notebook on this machine takes about 3 minutes.\n", "\n", "## Part 1: Computing the Word Mover's Distance\n", "\n", "To use WMD, we need some word embeddings first of all. You could train a word2vec (see tutorial [here](https://rare-technologies.com/word2vec-tutorial/)) model on some corpus, but we will start by downloading some pre-trained word2vec embeddings. Download the GoogleNews-vectors-negative300.bin.gz embeddings [here](https://code.google.com/archive/p/word2vec/) (warning: 1.5 GB, file is not needed for part 2). Training your own embeddings can be beneficial, but to simplify this tutorial, we will be using pre-trained embeddings at first.\n", "\n", "Let's take some sentences to compute the distance between." ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "from time import time\n", "start_nb = time()" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [], "source": [ "# Initialize logging.\n", "import logging\n", "logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s')\n", "\n", "sentence_obama = 'Obama speaks to the media in Illinois'\n", "sentence_president = 'The president greets the press in Chicago'\n", "sentence_obama = sentence_obama.lower().split()\n", "sentence_president = sentence_president.lower().split()" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "These sentences have very similar content, and as such the WMD should be low. Before we compute the WMD, we want to remove stopwords (\"the\", \"to\", etc.), as these do not contribute a lot to the information in the sentences." ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "[nltk_data] Downloading package stopwords to /home/misha/nltk_data...\n", "[nltk_data] Package stopwords is already up-to-date!\n" ] } ], "source": [ "# Import and download stopwords from NLTK.\n", "from nltk.corpus import stopwords\n", "from nltk import download\n", "download('stopwords') # Download stopwords list.\n", "\n", "# Remove stopwords.\n", "stop_words = stopwords.words('english')\n", "sentence_obama = [w for w in sentence_obama if w not in stop_words]\n", "sentence_president = [w for w in sentence_president if w not in stop_words]" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Now, as mentioned earlier, we will be using some downloaded pre-trained embeddings. We load these into a Gensim Word2Vec model class. Note that the embeddings we have chosen here require a lot of memory." ] }, { "cell_type": "code", "execution_count": 8, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "[==================================================] 100.0% 1662.8/1662.8MB downloaded\n" ] }, { "name": "stderr", "output_type": "stream", "text": [ "2019-06-17 00:50:23,614 : WARNING : this function is deprecated, use smart_open.open instead\n" ] }, { "data": { "text/plain": [ "<gensim.models.keyedvectors.Word2VecKeyedVectors at 0x7f8aac8cc208>" ] }, "execution_count": 8, "metadata": {}, "output_type": "execute_result" } ], "source": [ "import gensim.downloader as api\n", "api.load('word2vec-google-news-300')" ] }, { "cell_type": "code", "execution_count": 10, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "2019-06-17 09:33:25,029 : WARNING : this function is deprecated, use smart_open.open instead\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ "Cell took 154.82 seconds to run.\n" ] } ], "source": [ "start = time()\n", "import os\n", "\n", "# from gensim.models import KeyedVectors\n", "# if not os.path.exists('/data/w2v_googlenews/GoogleNews-vectors-negative300.bin.gz'):\n", "# raise ValueError(\"SKIP: You need to download the google news model\")\n", "# \n", "# model = KeyedVectors.load_word2vec_format('/data/w2v_googlenews/GoogleNews-vectors-negative300.bin.gz', binary=True)\n", "model = api.load('word2vec-google-news-300')\n", "\n", "print('Cell took %.2f seconds to run.' % (time() - start))" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "So let's compute WMD using the `wmdistance` method." ] }, { "cell_type": "code", "execution_count": 12, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "distance = 3.3741\n" ] } ], "source": [ "distance = model.wmdistance(sentence_obama, sentence_president)\n", "print('distance = %.4f' % distance)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Let's try the same thing with two completely unrelated sentences. Notice that the distance is larger." ] }, { "cell_type": "code", "execution_count": 13, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "distance = 4.3802\n" ] } ], "source": [ "sentence_orange = 'Oranges are my favorite fruit'\n", "sentence_orange = sentence_orange.lower().split()\n", "sentence_orange = [w for w in sentence_orange if w not in stop_words]\n", "\n", "distance = model.wmdistance(sentence_obama, sentence_orange)\n", "print('distance = %.4f' % distance)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Normalizing word2vec vectors\n", "\n", "When using the `wmdistance` method, it is beneficial to normalize the word2vec vectors first, so they all have equal length. To do this, simply call `model.init_sims(replace=True)` and Gensim will take care of that for you.\n", "\n", "Usually, one measures the distance between two word2vec vectors using the cosine distance (see [cosine similarity](https://en.wikipedia.org/wiki/Cosine_similarity)), which measures the angle between vectors. WMD, on the other hand, uses the Euclidean distance. The Euclidean distance between two vectors might be large because their lengths differ, but the cosine distance is small because the angle between them is small; we can mitigate some of this by normalizing the vectors.\n", "\n", "Note that normalizing the vectors can take some time, especially if you have a large vocabulary and/or large vectors.\n", "\n", "Usage is illustrated in the example below. It just so happens that the vectors we have downloaded are already normalized, so it won't do any difference in this case." ] }, { "cell_type": "code", "execution_count": 15, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "distance: %r 1.0174646259300113\n", "Cell took 3.15 seconds to run.\n" ] } ], "source": [ "# Normalizing word2vec vectors.\n", "start = time()\n", "\n", "model.init_sims(replace=True) # Normalizes the vectors in the word2vec class.\n", "\n", "distance = model.wmdistance(sentence_obama, sentence_president) # Compute WMD as normal.\n", "print('distance: %r', distance)\n", "print('Cell took %.2f seconds to run.' %(time() - start))" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Part 2: Similarity queries using `WmdSimilarity`\n", "\n", "You can use WMD to get the most similar documents to a query, using the `WmdSimilarity` class. Its interface is similar to what is described in the [Similarity Queries](https://radimrehurek.com/gensim/tut3.html) Gensim tutorial.\n", "\n", "> **Important note:**\n", ">\n", "> WMD is a measure of *distance*. The similarities in `WmdSimilarity` are simply the *negative distance*. Be careful not to confuse distances and similarities. Two similar documents will have a *high* similarity score and a small distance; two very different documents will have *low* similarity score, and a large distance.\n", "\n", "### Yelp data\n", "\n", "Let's try similarity queries using some real world data. For that we'll be using Yelp reviews, available at http://www.yelp.com/dataset_challenge. Specifically, we will be using reviews of a single restaurant, namely the [Mon Ami Gabi](http://en.yelp.be/biz/mon-ami-gabi-las-vegas-2).\n", "\n", "To get the Yelp data, you need to register by name and email address. The data is 775 MB.\n", "\n", "This time around, we are going to train the Word2Vec embeddings on the data ourselves. One restaurant is not enough to train Word2Vec properly, so we use 6 restaurants for that, but only run queries against one of them. In addition to the Mon Ami Gabi, mentioned above, we will be using:\n", "\n", "* [Earl of Sandwich](http://en.yelp.be/biz/earl-of-sandwich-las-vegas).\n", "* [Wicked Spoon](http://en.yelp.be/biz/wicked-spoon-las-vegas).\n", "* [Serendipity 3](http://en.yelp.be/biz/serendipity-3-las-vegas).\n", "* [Bacchanal Buffet](http://en.yelp.be/biz/bacchanal-buffet-las-vegas-7).\n", "* [The Buffet](http://en.yelp.be/biz/the-buffet-las-vegas-6).\n", "\n", "The restaurants we chose were those with the highest number of reviews in the Yelp dataset. Incidentally, they all are on the Las Vegas Boulevard. The corpus we trained Word2Vec on has 18957 documents (reviews), and the corpus we used for `WmdSimilarity` has 4137 documents.\n", "\n", "Below a JSON file with Yelp reviews is read line by line, the text is extracted, tokenized, and stopwords and punctuation are removed.\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# Pre-processing a document.\n", "\n", "from nltk import word_tokenize\n", "download('punkt') # Download data for tokenizer.\n", "\n", "def preprocess(doc):\n", " doc = doc.lower() # Lower the text.\n", " doc = word_tokenize(doc) # Split into words.\n", " doc = [w for w in doc if not w in stop_words] # Remove stopwords.\n", " doc = [w for w in doc if w.isalpha()] # Remove numbers and punctuation.\n", " return doc" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "start = time()\n", "\n", "import json\n", "from smart_open import smart_open\n", "\n", "# Business IDs of the restaurants.\n", "ids = ['4bEjOyTaDG24SY5TxsaUNQ', '2e2e7WgqU1BnpxmQL5jbfw', 'zt1TpTuJ6y9n551sw9TaEg',\n", " 'Xhg93cMdemu5pAMkDoEdtQ', 'sIyHTizqAiGu12XMLX3N3g', 'YNQgak-ZLtYJQxlDwN-qIg']\n", "\n", "w2v_corpus = [] # Documents to train word2vec on (all 6 restaurants).\n", "wmd_corpus = [] # Documents to run queries against (only one restaurant).\n", "documents = [] # wmd_corpus, with no pre-processing (so we can see the original documents).\n", "with smart_open('/data/yelp_academic_dataset_review.json', 'rb') as data_file:\n", " for line in data_file:\n", " json_line = json.loads(line)\n", " \n", " if json_line['business_id'] not in ids:\n", " # Not one of the 6 restaurants.\n", " continue\n", " \n", " # Pre-process document.\n", " text = json_line['text'] # Extract text from JSON object.\n", " text = preprocess(text)\n", " \n", " # Add to corpus for training Word2Vec.\n", " w2v_corpus.append(text)\n", " \n", " if json_line['business_id'] == ids[0]:\n", " # Add to corpus for similarity queries.\n", " wmd_corpus.append(text)\n", " documents.append(json_line['text'])\n", "\n", "print 'Cell took %.2f seconds to run.' %(time() - start)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Below is a plot with a histogram of document lengths and includes the average document length as well. Note that these are the pre-processed documents, meaning stopwords are removed, punctuation is removed, etc. Document lengths have a high impact on the running time of WMD, so when comparing running times with this experiment, the number of documents in query corpus (about 4000) and the length of the documents (about 62 words on average) should be taken into account." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "from matplotlib import pyplot as plt\n", "%matplotlib inline\n", "\n", "# Document lengths.\n", "lens = [len(doc) for doc in wmd_corpus]\n", "\n", "# Plot.\n", "plt.rc('figure', figsize=(8,6))\n", "plt.rc('font', size=14)\n", "plt.rc('lines', linewidth=2)\n", "plt.rc('axes', color_cycle=('#377eb8','#e41a1c','#4daf4a',\n", " '#984ea3','#ff7f00','#ffff33'))\n", "# Histogram.\n", "plt.hist(lens, bins=20)\n", "plt.hold(True)\n", "# Average length.\n", "avg_len = sum(lens) / float(len(lens))\n", "plt.axvline(avg_len, color='#e41a1c')\n", "plt.hold(False)\n", "plt.title('Histogram of document lengths.')\n", "plt.xlabel('Length')\n", "plt.text(100, 800, 'mean = %.2f' % avg_len)\n", "plt.show()" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Now we want to initialize the similarity class with a corpus and a word2vec model (which provides the embeddings and the `wmdistance` method itself)." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# Train Word2Vec on all the restaurants.\n", "model = Word2Vec(w2v_corpus, workers=3, size=100)\n", "\n", "# Initialize WmdSimilarity.\n", "from gensim.similarities import WmdSimilarity\n", "num_best = 10\n", "instance = WmdSimilarity(wmd_corpus, model, num_best=10)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The `num_best` parameter decides how many results the queries return. Now let's try making a query. The output is a list of indeces and similarities of documents in the corpus, sorted by similarity.\n", "\n", "Note that the output format is slightly different when `num_best` is `None` (i.e. not assigned). In this case, you get an array of similarities, corresponding to each of the documents in the corpus.\n", "\n", "The query below is taken directly from one of the reviews in the corpus. Let's see if there are other reviews that are similar to this one." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "start = time()\n", "\n", "sent = 'Very good, you should seat outdoor.'\n", "query = preprocess(sent)\n", "\n", "sims = instance[query] # A query is simply a \"look-up\" in the similarity class.\n", "\n", "print 'Cell took %.2f seconds to run.' %(time() - start)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The query and the most similar documents, together with the similarities, are printed below. We see that the retrieved documents are discussing the same thing as the query, although using different words. The query talks about getting a seat \"outdoor\", while the results talk about sitting \"outside\", and one of them says the restaurant has a \"nice view\"." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# Print the query and the retrieved documents, together with their similarities.\n", "print 'Query:'\n", "print sent\n", "for i in range(num_best):\n", " print\n", " print 'sim = %.4f' % sims[i][1]\n", " print documents[sims[i][0]]" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Let's try a different query, also taken directly from one of the reviews in the corpus." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "start = time()\n", "\n", "sent = 'I felt that the prices were extremely reasonable for the Strip'\n", "query = preprocess(sent)\n", "\n", "sims = instance[query] # A query is simply a \"look-up\" in the similarity class.\n", "\n", "print 'Query:'\n", "print sent\n", "for i in range(num_best):\n", " print\n", " print 'sim = %.4f' % sims[i][1]\n", " print documents[sims[i][0]]\n", "\n", "print '\\nCell took %.2f seconds to run.' %(time() - start)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "This time around, the results are more straight forward; the retrieved documents basically contain the same words as the query.\n", "\n", "`WmdSimilarity` normalizes the word embeddings by default (using `init_sims()`, as explained before), but you can overwrite this behaviour by calling `WmdSimilarity` with `normalize_w2v_and_replace=False`." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "print 'Notebook took %.2f seconds to run.' %(time() - start_nb)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## References\n", "\n", "1. * Rémi Flamary et al. *POT: Python Optimal Transport*, 2021.\n", "* Matt Kusner et al. *From Embeddings To Document Distances*, 2015.\n", "* Thomas Mikolov et al. *Efficient Estimation of Word Representations in Vector Space*, 2013." ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.7.1" } }, "nbformat": 4, "nbformat_minor": 1 }
21,841
Python
.py
554
34.891697
717
0.632546
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,967
poincare_numpy.patch
piskvorky_gensim/docs/notebooks/poincare/poincare_numpy.patch
diff --git a/poincare.py b/poincare.py index ecae36e..f85bf22 100644 --- a/poincare.py +++ b/poincare.py @@ -1,160 +1,169 @@ +import argparse +import csv import nltk from nltk.corpus import wordnet as wn from math import * +import pickle import random +import re import numpy as np -import matplotlib.pyplot as plt -import matplotlib.lines as mlines +import time +from collections import defaultdict +from smart_open import smart_open + STABILITY = 0.00001 # to avoid overflow while dividing -network = {} # representation of network (here it is hierarchical) -last_level = 4 +# network: the actual network of which node is connected to whom +network = defaultdict(list) # representation of network (here it is hierarchical) -# plots the embedding of all the nodes of network -def plotall(ii): - fig = plt.figure() - # plot all the nodes - for a in emb: - plt.plot(emb[a][0], emb[a][1], marker = 'o', color = [levelOfNode[a]/(last_level+1),levelOfNode[a]/(last_level+1),levelOfNode[a]/(last_level+1)]) - # plot the relationship, black line means root level relationship - # consecutive relationship lines fade out in color + +def load_wordnet(wordnet_path): + with smart_open(wordnet_path, 'r') as f: + reader = csv.reader(f, delimiter='\t') + for row in reader: + assert len(row) == 2, 'Hypernym pair has more than two items' + network[row[0]].append(row[1]) + +def main(input_file, output_file, embedding_size, num_epochs, num_negs, lr): + print('Creating wordnet dataset') + load_wordnet(input_file) + print('Created wordnet dataset') + + # embedding of nodes of network + emb = {} + + # Randomly uniform distribution for a in network: for b in network[a]: - plt.plot([emb[a][0], emb[b][0]], [emb[a][1], emb[b][1]], color = [levelOfNode[a]/(last_level+1),levelOfNode[a]/(last_level+1),levelOfNode[a]/(last_level+1)]) - # plt.show() - fig.savefig(str(last_level) + '_' + str(ii) + '.png', dpi=fig.dpi) + emb[b] = np.random.uniform(low=-0.001, high=0.001, size=(embedding_size,)) + emb[a] = np.random.uniform(low=-0.001, high=0.001, size=(embedding_size,)) -# network: the actual network of which node is connected to whom -# levelOfNode: level of the node in hierarchical data -levelOfNode = {} - -# recursive function to popoulate the hyponyms of a root node in `network` -# synset: the root node -# last_level: the level till which we consider the hyponyms -def get_hyponyms(synset, level): - if (level == last_level): - levelOfNode[str(synset)] = level - return - # BFS - if not str(synset) in network: - network[str(synset)] = [str(s) for s in synset.hyponyms()] - levelOfNode[str(synset)] = level - for hyponym in synset.hyponyms(): - get_hyponyms(hyponym, level + 1) - -mammal = wn.synset('mammal.n.01') -get_hyponyms(mammal, 0) -levelOfNode[str(mammal)] = 0 - -# embedding of nodes of network -emb = {} - -# Randomly uniform distribution -for a in network: - for b in network[a]: - emb[b] = np.random.uniform(low=-0.001, high=0.001, size=(2,)) - emb[a] = np.random.uniform(low=-0.001, high=0.001, size=(2,)) - -vocab = list(emb.keys()) -random.shuffle(vocab) - -# the leave nodes are not connected to anything -for a in emb: - if not a in network: - network[a] = [] - - -# Partial derivative as given in the paper wrt theta -def partial_der(theta, x, gamma): #eqn4 - alpha = (1.0-np.dot(theta, theta)) - norm_x = np.dot(x, x) - beta = (1-norm_x) - gamma = gamma - return 4.0/(beta * sqrt(gamma*gamma - 1) + STABILITY)*((norm_x- 2*np.dot(theta, x)+1)/(pow(alpha,2)+STABILITY)*theta - x/(alpha + STABILITY)) - -lr = 0.01 - -# the update equation as given in the paper -def update(emb, error_): #eqn5 - try: - update = lr*pow((1 - np.dot(emb,emb)), 2)*error_/4 - emb = emb - update - if (np.dot(emb, emb) >= 1): - emb = emb/sqrt(np.dot(emb, emb)) - STABILITY - return emb - except Exception as e: - print (e) - -# Distance in poincare disk model -def dist(vec1, vec2): # eqn1 - return 1 + 2*np.dot(vec1 - vec2, vec1 - vec2)/ \ - ((1-np.dot(vec1, vec1))*(1-np.dot(vec2, vec2)) + STABILITY) - -num_negs = 5 - -# The plot of initialized embeddings -plotall("init") - -for epoch in range(200): - # pos2 is related to pos1 - # negs are not related to pos1 - for pos1 in vocab: - if not network[pos1]: # a leaf node - continue - pos2 = random.choice(network[pos1]) # pos2 and pos1 are related - dist_p_init = dist(emb[pos1], emb[pos2]) # distance between the related nodes - if (dist_p_init > 700): # this causes overflow, so I clipped it here - print ("got one very high") # if you have reached this zone, the training is unstable now - dist_p_init = 700 - elif (dist_p_init < -700): - print ("got one very high") - dist_p_init = -700 - dist_p = cosh(dist_p_init) # this is the actual distance, it is always positive - # print ("distance between related nodes", dist_p) - negs = [] # pairs of not related nodes, the first node in the pair is `pos1` - dist_negs_init = [] # distances without taking cosh on it (for not related nodes) - dist_negs = [] # distances with taking cosh on it (for not related nodes) - while (len(negs) < num_negs): - neg1 = pos1 - neg2 = random.choice(vocab) - if not (neg2 in network[neg1] or neg1 in network[neg2] or neg2 == neg1): # neg2 should not be related to neg1 and vice versa - dist_neg_init = dist(emb[neg1], emb[neg2]) - if (dist_neg_init > 700 or dist_neg_init < -700): # already dist is good, leave it - continue - negs.append([neg1, neg2]) - dist_neg = cosh(dist_neg_init) - dist_negs_init.append(dist_neg_init) # saving it for faster computation - dist_negs.append(dist_neg) - # print ("distance between non related nodes", dist_neg) - loss_den = 0.0 - # eqn6 - for dist_neg in dist_negs: - loss_den += exp(-1*dist_neg) - loss = -1*dist_p - log(loss_den + STABILITY) - # derivative of loss wrt positive relation [d(u, v)] - der_p = -1 - der_negs = [] - # derivative of loss wrt negative relation [d(u, v')] - for dist_neg in dist_negs: - der_negs.append(exp(-1*dist_neg)/(loss_den + STABILITY)) - # derivative of loss wrt pos1 - der_p_pos1 = der_p * partial_der(emb[pos1], emb[pos2], dist_p_init) - # derivative of loss wrt pos2 - der_p_pos2 = der_p * partial_der(emb[pos2], emb[pos1], dist_p_init) - der_negs_final = [] - for (der_neg, neg, dist_neg_init) in zip(der_negs, negs, dist_negs_init): - # derivative of loss wrt second element of the pair in neg - der_neg1 = der_neg * partial_der(emb[neg[1]], emb[neg[0]], dist_neg_init) - # derivative of loss wrt first element of the pair in neg - der_neg0 = der_neg * partial_der(emb[neg[0]], emb[neg[1]], dist_neg_init) - der_negs_final.append([der_neg0, der_neg1]) - # update embeddings now - emb[pos1] = update(emb[pos1], -1*der_p_pos1) - emb[pos2] = update(emb[pos2], -1*der_p_pos2) - for (neg, der_neg) in zip(negs, der_negs_final): - emb[neg[0]] = update(emb[neg[0]], -1*der_neg[0]) - emb[neg[1]] = update(emb[neg[1]], -1*der_neg[1]) - # plot the embeddings - if ((epoch)%20 == 0): - plotall(epoch+1) \ No newline at end of file + vocab = list(emb.keys()) + random.shuffle(vocab) + + # the leave nodes are not connected to anything + for a in emb: + if not a in network: + network[a] = [] + + # Partial derivative as given in the paper wrt theta + def partial_der(theta, x, gamma): #eqn4 + alpha = (1.0-np.dot(theta, theta)) + norm_x = np.dot(x, x) + beta = (1-norm_x) + gamma = gamma + return 4.0/(beta * sqrt(gamma*gamma - 1) + STABILITY)*((norm_x- 2*np.dot(theta, x)+1)/(pow(alpha,2)+STABILITY)*theta - x/(alpha + STABILITY)) + + # the update equation as given in the paper + def update(emb, error_): #eqn5 + try: + update = lr*pow((1 - np.dot(emb,emb)), 2)*error_/4 + emb = emb - update + if (np.dot(emb, emb) >= 1): + emb = emb/sqrt(np.dot(emb, emb)) - STABILITY + return emb + except Exception as e: + print (e) + + # Distance in poincare disk model + def dist(vec1, vec2): # eqn1 + return 1 + 2*np.dot(vec1 - vec2, vec1 - vec2)/ \ + ((1-np.dot(vec1, vec1))*(1-np.dot(vec2, vec2)) + STABILITY) + + + # The plot of initialized embeddings + # plotall("init") + + last_time = time.time() + for epoch in range(num_epochs): + # pos2 is related to pos1 + # negs are not related to pos1 + for pos1 in vocab: + if not network[pos1]: # a leaf node + continue + pos2 = random.choice(network[pos1]) # pos2 and pos1 are related + dist_p_init = dist(emb[pos1], emb[pos2]) # distance between the related nodes + if (dist_p_init > 700): # this causes overflow, so I clipped it here + print ("got one very high") # if you have reached this zone, the training is unstable now + dist_p_init = 700 + elif (dist_p_init < -700): + print ("got one very high") + dist_p_init = -700 + dist_p = cosh(dist_p_init) # this is the actual distance, it is always positive + # print ("distance between related nodes", dist_p) + negs = [] # pairs of not related nodes, the first node in the pair is `pos1` + dist_negs_init = [] # distances without taking cosh on it (for not related nodes) + dist_negs = [] # distances with taking cosh on it (for not related nodes) + while (len(negs) < num_negs): + neg1 = pos1 + neg2 = random.choice(vocab) + if not (neg2 in network[neg1] or neg1 in network[neg2] or neg2 == neg1): # neg2 should not be related to neg1 and vice versa + dist_neg_init = dist(emb[neg1], emb[neg2]) + if (dist_neg_init > 700 or dist_neg_init < -700): # already dist is good, leave it + continue + negs.append([neg1, neg2]) + dist_neg = cosh(dist_neg_init) + dist_negs_init.append(dist_neg_init) # saving it for faster computation + dist_negs.append(dist_neg) + # print ("distance between non related nodes", dist_neg) + loss_den = 0.0 + # eqn6 + for dist_neg in dist_negs: + loss_den += exp(-1*dist_neg) + loss = -1*dist_p - log(loss_den + STABILITY) + # derivative of loss wrt positive relation [d(u, v)] + der_p = -1 + der_negs = [] + # derivative of loss wrt negative relation [d(u, v')] + for dist_neg in dist_negs: + der_negs.append(exp(-1*dist_neg)/(loss_den + STABILITY)) + # derivative of loss wrt pos1 + der_p_pos1 = der_p * partial_der(emb[pos1], emb[pos2], dist_p_init) + # derivative of loss wrt pos2 + der_p_pos2 = der_p * partial_der(emb[pos2], emb[pos1], dist_p_init) + der_negs_final = [] + for (der_neg, neg, dist_neg_init) in zip(der_negs, negs, dist_negs_init): + # derivative of loss wrt second element of the pair in neg + der_neg1 = der_neg * partial_der(emb[neg[1]], emb[neg[0]], dist_neg_init) + # derivative of loss wrt first element of the pair in neg + der_neg0 = der_neg * partial_der(emb[neg[0]], emb[neg[1]], dist_neg_init) + der_negs_final.append([der_neg0, der_neg1]) + # update embeddings now + emb[pos1] = update(emb[pos1], -1*der_p_pos1) + emb[pos2] = update(emb[pos2], -1*der_p_pos2) + for (neg, der_neg) in zip(negs, der_negs_final): + emb[neg[0]] = update(emb[neg[0]], -1*der_neg[0]) + emb[neg[1]] = update(emb[neg[1]], -1*der_neg[1]) + print('Epoch #%d, time taken: %.2f seconds' % (epoch + 1, time.time() - last_time)) + last_time = time.time() + pickle.dump(emb, smart_open(output_file, 'wb')) + + +if __name__ == "__main__": + # check and process cmdline input + parser = argparse.ArgumentParser() + parser.add_argument( + '-i', '--input-file', required=True, + help="Input tsv file containing relation pairs") + parser.add_argument( + '-o', '--output-file', required=True, + help="Where to save the trained model") + parser.add_argument( + '-d', '--dimensions', required=True, type=int, + help="Dimensionality of the trained vectors") + parser.add_argument( + '-e', '--epochs', required=True, type=int, + help="Number of epochs to train the model for") + parser.add_argument( + '-l', '--learning-rate', required=True, type=float, + help="Learning rate to use for training the model") + parser.add_argument( + '-n', '--num-negative', required=True, type=int, + help="Number of negative samples to use for each node") + args = parser.parse_args() + + main( + args.input_file, args.output_file, args.dimensions, + args.epochs, args.num_negative, args.learning_rate, + ) \ No newline at end of file
13,875
Python
.py
320
42.271875
170
0.590094
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,968
conf.py
piskvorky_gensim/docs/src/conf.py
# -*- coding: utf-8 -*- # # gensim documentation build configuration file, created by # sphinx-quickstart on Wed Mar 17 13:42:21 2010. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All configuration values have a default; values that are commented out # serve to show the default. import os import sys # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. sys.path.insert(0, os.path.abspath('../..')) # -- General configuration ----------------------------------------------------- html_theme = 'sphinx_rtd_theme' # Add any Sphinx extension module names here, as strings. They can be extensions # coming with Sphinx (named 'sphinx.ext.*') or your custom ones. extensions = [ 'sphinx.ext.autodoc', 'sphinx.ext.napoleon', 'sphinx.ext.imgmath', 'sphinxcontrib.programoutput', 'sphinx_gallery.gen_gallery', ] autoclass_content = "both" napoleon_google_docstring = False # Disable support for google-style docstring # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates'] # The suffix of source filenames. source_suffix = '.rst' # The encoding of source files. # source_encoding = 'utf-8' # The master toctree document. master_doc = 'indextoc' # Additional templates that should be rendered to pages, maps page names to # template names. html_additional_pages = {'index': './_templates/indexcontent.html'} # General information about the project. project = u'gensim' copyright = u'2009-now' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the # built documents. # # The short X.Y version. version = '4.3.3' # The full version, including alpha/beta/rc tags. release = '4.3.3' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. # language = None # There are two options for replacing |today|: either, you set today to some # non-false value, then it is used: # today = '' # Else, today_fmt is used as the format for a strftime call. # today_fmt = '%B %d, %Y' # List of documents that shouldn't be included in the build. # unused_docs = [] # List of directories, relative to source directory, that shouldn't be searched # for source files. exclude_trees = ['_build'] exclude_patterns = ['gallery/README.rst'] # The reST default role (used for this markup: `text`) to use for all documents. # default_role = None # If true, '()' will be appended to :func: etc. cross-reference text. # add_function_parentheses = True # If true, the current module name will be prepended to all description # unit titles (such as .. function::). # add_module_names = True # If true, sectionauthor and moduleauthor directives will be shown in the # output. They are ignored by default. # show_authors = False # The name of the Pygments (syntax highlighting) style to use. pygments_style = 'sphinx' # A list of ignored prefixes for module index sorting. # modindex_common_prefix = [] # -- Options for HTML output --------------------------------------------------- # The theme to use for HTML and HTML Help pages. Major themes that come with # Sphinx are currently 'default' and 'sphinxdoc'. # html_theme = 'default' # Theme options are theme-specific and customize the look and feel of a theme # further. For a list of options available for each theme, see the # documentation. # main_colour = "#ffbbbb" html_theme_options = { # "rightsidebar": "false", # "stickysidebar": "true", # "bodyfont": "'Lucida Grande', 'Lucida Sans Unicode', 'Geneva', 'Verdana', 'sans-serif'", # "headfont": "'Lucida Grande', 'Lucida Sans Unicode', 'Geneva', 'Verdana', 'sans-serif'", # "sidebarbgcolor": "#ababab", # "footerbgcolor": "#771111", # "relbarbgcolor": "#993333", # "sidebartextcolor": "#000000", # "sidebarlinkcolor": "#330000", # "codebgcolor": "#fffff0", # "headtextcolor": "#000080", # "headbgcolor": "#f0f0ff", # "bgcolor": "#ffffff", } # Add any paths that contain custom themes here, relative to this directory. html_theme_path = ['.'] # The name for this set of Sphinx documents. If None, it defaults to # "<project> v<release> documentation". html_title = "gensim" # A shorter title for the navigation bar. Default is the same as html_title. # html_short_title = '' # The name of an image file (relative to this directory) to place at the top # of the sidebar. # html_logo = None # The name of an image file (within the static path) to use as favicon of the # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 # pixels large. html_favicon = '_static/favicon.ico' # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, # so a file named "default.css" will overwrite the builtin "default.css". html_static_path = ['_static'] # These paths are either relative to html_static_path # or fully qualified paths (eg. https://...) # html_css_files = [ # 'erp/css/global.css', # 'erp/css/structure.css', # 'erp/css/erp2.css', # 'erp/css/custom.css', # ] # If not '', a 'Last updated on:' timestamp is inserted at every page bottom, # using the given strftime format. html_last_updated_fmt = '%b %d, %Y' # If true, SmartyPants will be used to convert quotes and dashes to # typographically correct entities. # html_use_smartypants = True # Custom sidebar templates, maps document names to template names. html_sidebars = {} # {'index': ['download.html', 'globaltoc.html', 'searchbox.html', 'indexsidebar.html']} # html_sidebars = {'index': ['globaltoc.html', 'searchbox.html']} # If false, no module index is generated. # html_use_modindex = True # If false, no index is generated. # html_use_index = True # If true, the index is split into individual pages for each letter. html_split_index = False # If true, links to the reST sources are added to the pages. html_show_sourcelink = False html_domain_indices = False # If true, an OpenSearch description file will be output, and all pages will # contain a <link> tag referring to it. The value of this option must be the # base URL from which the finished HTML is served. # html_use_opensearch = '' # If nonempty, this is the file name suffix for HTML files (e.g. ".xhtml"). # html_file_suffix = '' # Output file base name for HTML help builder. htmlhelp_basename = 'gensimdoc' html_show_sphinx = False # -- Options for LaTeX output -------------------------------------------------- # The paper size ('letter' or 'a4'). # latex_paper_size = 'letter' # The font size ('10pt', '11pt' or '12pt'). # latex_font_size = '10pt' # Grouping the document tree into LaTeX files. List of tuples # (source start file, target name, title, author, documentclass [howto/manual]). latex_documents = [('index', 'gensim.tex', u'gensim Documentation', u'Radim Řehůřek', 'manual')] # The name of an image file (relative to this directory) to place at the top of # the title page. # latex_logo = None # For "manual" documents, if this is true, then toplevel headings are parts, # not chapters. latex_use_parts = False # Additional stuff for the LaTeX preamble. # latex_preamble = '' # Documents to append as an appendix to all manuals. # latex_appendices = [] # If false, no module index is generated. # latex_use_modindex = True suppress_warnings = ['image.nonlocal_uri', 'ref.citation', 'ref.footnote'] def sort_key(source_dir): """Sorts tutorials and guides in a predefined order. If the predefined order doesn't include the filename we're looking for, fallback to alphabetical order. """ core_order = [ 'run_core_concepts.py', 'run_corpora_and_vector_spaces.py', 'run_topics_and_transformations.py', 'run_similarity_queries.py', ] tutorials_order = [ 'run_word2vec.py', 'run_doc2vec_lee.py', 'run_fasttext.py', 'run_ensemblelda.py', 'run_annoy.py', 'run_lda.py', 'run_wmd.py', 'run_scm.py', ] howto_order = [ 'run_downloader_api.py', 'run_binder.py', 'run_doc.py', 'run_doc2vec_imdb.py', 'run_news_classification.py', 'run_compare_lda.py', ] order = core_order + tutorials_order + howto_order files = sorted(os.listdir(source_dir)) def key(arg): try: return order.index(arg) except ValueError: return files.index(arg) return key import sphinx_gallery.sorting sphinx_gallery_conf = { 'examples_dirs': 'gallery', # path to your example scripts 'gallery_dirs': 'auto_examples', # path where to save gallery generated examples 'show_memory': True, 'filename_pattern': 'run', 'subsection_order': sphinx_gallery.sorting.ExplicitOrder( [ 'gallery/core', 'gallery/tutorials', 'gallery/howtos', 'gallery/other', ], ), 'within_subsection_order': sort_key, }
9,350
Python
.py
231
37.640693
107
0.700895
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,969
check_gallery.py
piskvorky_gensim/docs/src/check_gallery.py
"""Check that the cached gallery files are up to date. If they are stale, then Sphinx will attempt to rebuild them from source. When running the documentation build on CI, we want to avoid rebuilding the gallery, because that takes too long. Instead, we use this script to warn the author of the PR that they need to rebuild the docs themselves. """ import hashlib import os import sys def different(path1, path2): with open(path1) as fin: f1 = fin.read() with open(path2) as fin: f2 = fin.read() return f1 != f2 curr_dir = os.path.dirname(__file__) docs_dir = os.path.dirname(curr_dir) src_dir = os.path.dirname(docs_dir) stale = [] for root, dirs, files in os.walk(os.path.join(curr_dir, 'gallery')): for f in files: if f.endswith('.py'): source_path = os.path.join(root, f) cache_path = source_path.replace('docs/src/gallery/', 'docs/src/auto_examples/') rel_source_path = os.path.relpath(source_path, src_dir) rel_cache_path = os.path.relpath(cache_path, src_dir) # # We check two things: # # 1) Actual file content # 2) MD5 checksums # # We check 1) because that's the part that matters to the user - # it's what will appear in the documentation. We check 2) because # that's what Sphinx Gallery relies on to decide what it needs to # rebuild. In practice, only one of these checks is necessary, # but we run them both because it's trivial. # if different(source_path, cache_path): stale.append(f"{rel_source_path} != {rel_cache_path}") continue actual_md5 = hashlib.md5() with open(source_path, 'rb') as fin: actual_md5.update(fin.read()) md5_path = cache_path + '.md5' with open(md5_path) as fin: expected_md5 = fin.read() if actual_md5.hexdigest() != expected_md5: stale.append(f"{rel_source_path} md5 != {rel_cache_path}.md5") if stale: stale = '\n'.join(stale) print(f"""The gallery cache appears stale. Use Github Actions to rebuild the documentation. See the following links for more info: https://github.com/RaRe-Technologies/gensim/actions/workflows/build-docs.yml https://github.com/RaRe-Technologies/gensim/wiki/Rebuilding-documentation Alternatively, rebuild the documentation locally using the following commands from the gensim root subdirectory: pip install -e .[docs] make -C docs/src html and then run `git add docs/src/auto_examples` to update the cache. Stale files: {stale} """, file=sys.stderr) sys.exit(1)
2,772
Python
.py
63
36.174603
112
0.641397
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,970
run_doc.py
piskvorky_gensim/docs/src/gallery/howtos/run_doc.py
r""" How to Author Gensim Documentation ================================== How to author documentation for Gensim. """ ############################################################################### # Background # ---------- # # Gensim is a large project with a wide range of functionality. # Unfortunately, not all of this functionality is documented **well**, and some of it is not documented at all. # Without good documentation, users are unable to unlock Gensim's full potential. # Therefore, authoring new documentation and improving existing documentation is of great value to the Gensim project. # # If you implement new functionality in Gensim, please include **helpful** documentation. # By "helpful", we mean that your documentation answers questions that Gensim users may have. # For example: # # - What is this new functionality? # - **Why** is it important? # - **How** is it relevant to Gensim? # - **What** can I do with it? What are some real-world applications? # - **How** do I use it to achieve those things? # - ... and others (if you can think of them, please add them here) # # Before you author documentation, I suggest reading # `"What nobody tells you about documentation" <https://www.divio.com/blog/documentation/>`__ # or watching its `accompanying video <https://www.youtube.com/watch?v=t4vKPhjcMZg>`__ # (or even both, if you're really keen). # # The summary of the above presentation is: there are four distinct kinds of documentation, and you really need them all: # # 1. Tutorials # 2. Howto guides # 3. Explanations # 4. References # # Each kind has its own intended audience, purpose, and writing style. # When you make a PR with new functionality, please consider authoring each kind of documentation. # At the very least, you will (indirectly) author reference documentation through module, class and function docstrings. # # Mechanisms # ---------- # # We keep our documentation as individual Python scripts. # These scripts live under :file:`docs/src/gallery` in one of several subdirectories: # # - core: core tutorials. We try to keep this part small, avoid putting stuff here. # - tutorials: tutorials. # - howtos: howto guides. # # Pick a subdirectory and save your script under it. # Prefix the name of the script with ``run_``: this way, the the documentation builder will run your script each time it builds our docs. # # The contents of the script are straightforward. # At the very top, you need a docstring describing what your script does. r""" Title ===== Brief description. """ ############################################################################### # The title is what will show up in the gallery. # Keep this short and descriptive. # # The description will appear as a tooltip in the gallery. # When people mouse-over the title, they will see the description. # Keep this short too. # ############################################################################### # The rest of the script is Python, formatted in a special way so that Sphinx Gallery can parse it. # The most important properties of this format are: # # - Sphinx Gallery will split your script into blocks # - A block can be Python source or RST-formatted comments # - To indicate that a block is in RST, prefix it with a line of 80 hash (#) characters. # - All other blocks will be interpreted as Python source # # Read `this link <https://sphinx-gallery.github.io/syntax.html>`__ for more details. # If you need further examples, check out other ``gensim`` tutorials and guides. # All of them (including this one!) have a download link at the bottom of the page, which exposes the Python source they were generated from. # # You should be able to run your script directly from the command line:: # # python myscript.py # # and it should run to completion without error, occasionally printing stuff to standard output. # ############################################################################### # Authoring Workflow # ------------------ # # There are several ways to author documentation. # The simplest and most straightforward is to author your ``script.py`` from scratch. # You'll have the following cycle: # # 1. Make changes # 2. Run ``python script.py`` # 3. Check standard output, standard error and return code # 4. If everything works well, stop. # 5. Otherwise, go back to step 1). # # If the above is not your cup of tea, you can also author your documentation as a Jupyter notebook. # This is a more flexible approach that enables you to tweak parts of the documentation and re-run them as necessary. # # Once you're happy with the notebook, convert it to a script.py. # There's a helpful `script <https://github.com/RaRe-Technologies/gensim/blob/develop/docs/src/tools/to_python.py>`__ that will do it for you. # To use it:: # # python to_python.py < notebook.ipynb > script.py # # You may have to touch up the resulting ``script.py``. # More specifically: # # - Update the title # - Update the description # - Fix any issues that the markdown-to-RST converter could not deal with # # Once your script.py works, put it in a suitable subdirectory. # Please don't include your original Jupyter notebook in the repository - we won't be using it. ############################################################################### # Correctness # ----------- # # Incorrect documentation can be worse than no documentation at all. # Take the following steps to ensure correctness: # # - Run Python's doctest module on your docstrings # - Run your documentation scripts from scratch, removing any temporary files/results # # Using data in your documentation # -------------------------------- # # Some parts of the documentation require real-world data to be useful. # For example, you may need more than just a toy example to demonstrate the benefits of one model over another. # This subsection provides some tips for including data in your documentation. # # If possible, use data available via Gensim's # `downloader API <https://radimrehurek.com/gensim/gensim_numfocus/auto_examples/010_tutorials/run_downloader_api.html>`__. # This will reduce the risk of your documentation becoming obsolete because required data is no longer available. # # Use the smallest possible dataset: avoid making people unnecessarily load large datasets and models. # This will make your documentation faster to run and easier for people to use (they can modify your examples and re-run them quickly). # # Finalizing your contribution # ---------------------------- # # First, get Sphinx Gallery to build your documentation:: # # make --directory docs/src html # # This can take a while if your documentation uses a large dataset, or if you've changed many other tutorials or guides. # Once this completes successfully, open ``docs/auto_examples/index.html`` in your browser. # You should see your new tutorial or guide in the gallery. # # Once your documentation script is working correctly, it's time to add it to the git repository:: # # git add docs/src/gallery/tutorials/run_example.py # git add docs/src/auto_examples/tutorials/run_example.{py,py.md5,rst,ipynb} # git add docs/src/auto_examples/howtos/sg_execution_times.rst # git commit -m "enter a helpful commit message here" # git push origin branchname # # .. Note:: # You may be wondering what all those other files are. # Sphinx Gallery puts a copy of your Python script in ``auto_examples/tutorials``. # The .md5 contains MD5 hash of the script to enable easy detection of modifications. # Gallery also generates .rst (RST for Sphinx) and .ipynb (Jupyter notebook) files from the script. # Finally, ``sg_execution_times.rst`` contains the time taken to run each example. # # Finally, open a PR at `github <https://github.com/RaRe-Technologies/gensim>`__. # One of our friendly maintainers will review it, make suggestions, and eventually merge it. # Your documentation will then appear in the `gallery <https://radimrehurek.com/gensim/auto_examples/index.html>`__, # alongside the rest of the examples. Thanks a lot!
8,054
Python
.py
174
45.241379
142
0.713542
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,971
run_doc2vec_imdb.py
piskvorky_gensim/docs/src/gallery/howtos/run_doc2vec_imdb.py
r""" How to reproduce the doc2vec 'Paragraph Vector' paper ===================================================== Shows how to reproduce results of the "Distributed Representation of Sentences and Documents" paper by Le and Mikolov using Gensim. """ import logging logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO) ############################################################################### # Introduction # ------------ # # This guide shows you how to reproduce the results of the paper by `Le and # Mikolov 2014 <https://arxiv.org/pdf/1405.4053.pdf>`_ using Gensim. While the # entire paper is worth reading (it's only 9 pages), we will be focusing on # Section 3.2: "Beyond One Sentence - Sentiment Analysis with the IMDB # dataset". # # This guide follows the following steps: # # #. Load the IMDB dataset # #. Train a variety of Doc2Vec models on the dataset # #. Evaluate the performance of each model using a logistic regression # #. Examine some of the results directly: # # When examining results, we will look for answers for the following questions: # # #. Are inferred vectors close to the precalculated ones? # #. Do close documents seem more related than distant ones? # #. Do the word vectors show useful similarities? # #. Are the word vectors from this dataset any good at analogies? # # Load corpus # ----------- # # Our data for the tutorial will be the `IMDB archive # <http://ai.stanford.edu/~amaas/data/sentiment/>`_. # If you're not familiar with this dataset, then here's a brief intro: it # contains several thousand movie reviews. # # Each review is a single line of text containing multiple sentences, for example: # # ``` # One of the best movie-dramas I have ever seen. We do a lot of acting in the # church and this is one that can be used as a resource that highlights all the # good things that actors can do in their work. I highly recommend this one, # especially for those who have an interest in acting, as a "must see." # ``` # # These reviews will be the **documents** that we will work with in this tutorial. # There are 100 thousand reviews in total. # # #. 25k reviews for training (12.5k positive, 12.5k negative) # #. 25k reviews for testing (12.5k positive, 12.5k negative) # #. 50k unlabeled reviews # # Out of 100k reviews, 50k have a label: either positive (the reviewer liked # the movie) or negative. # The remaining 50k are unlabeled. # # Our first task will be to prepare the dataset. # # More specifically, we will: # # #. Download the tar.gz file (it's only 84MB, so this shouldn't take too long) # #. Unpack it and extract each movie review # #. Split the reviews into training and test datasets # # First, let's define a convenient datatype for holding data for a single document: # # * words: The text of the document, as a ``list`` of words. # * tags: Used to keep the index of the document in the entire dataset. # * split: one of ``train``\ , ``test`` or ``extra``. Determines how the document will be used (for training, testing, etc). # * sentiment: either 1 (positive), 0 (negative) or None (unlabeled document). # # This data type is helpful for later evaluation and reporting. # In particular, the ``index`` member will help us quickly and easily retrieve the vectors for a document from a model. # import collections SentimentDocument = collections.namedtuple('SentimentDocument', 'words tags split sentiment') ############################################################################### # We can now proceed with loading the corpus. import io import re import tarfile import os.path import smart_open import gensim.utils def download_dataset(url='http://ai.stanford.edu/~amaas/data/sentiment/aclImdb_v1.tar.gz'): fname = url.split('/')[-1] if os.path.isfile(fname): return fname # Download the file to local storage first. try: kwargs = { 'compression': smart_open.compression.NO_COMPRESSION } fin = smart_open.open(url, "rb", **kwargs) except (AttributeError, TypeError): kwargs = { 'ignore_ext': True } fin = smart_open.open(url, "rb", **kwargs) if fin: with smart_open.open(fname, 'wb', **kwargs) as fout: while True: buf = fin.read(io.DEFAULT_BUFFER_SIZE) if not buf: break fout.write(buf) fin.close() return fname def create_sentiment_document(name, text, index): _, split, sentiment_str, _ = name.split('/') sentiment = {'pos': 1.0, 'neg': 0.0, 'unsup': None}[sentiment_str] if sentiment is None: split = 'extra' tokens = gensim.utils.to_unicode(text).split() return SentimentDocument(tokens, [index], split, sentiment) def extract_documents(): fname = download_dataset() index = 0 with tarfile.open(fname, mode='r:gz') as tar: for member in tar.getmembers(): if re.match(r'aclImdb/(train|test)/(pos|neg|unsup)/\d+_\d+.txt$', member.name): member_bytes = tar.extractfile(member).read() member_text = member_bytes.decode('utf-8', errors='replace') assert member_text.count('\n') == 0 yield create_sentiment_document(member.name, member_text, index) index += 1 alldocs = list(extract_documents()) ############################################################################### # Here's what a single document looks like. print(alldocs[27]) ############################################################################### # Extract our documents and split into training/test sets. train_docs = [doc for doc in alldocs if doc.split == 'train'] test_docs = [doc for doc in alldocs if doc.split == 'test'] print(f'{len(alldocs)} docs: {len(train_docs)} train-sentiment, {len(test_docs)} test-sentiment') ############################################################################### # Set-up Doc2Vec Training & Evaluation Models # ------------------------------------------- # # We approximate the experiment of Le & Mikolov `"Distributed Representations # of Sentences and Documents" # <http://cs.stanford.edu/~quocle/paragraph_vector.pdf>`_ with guidance from # Mikolov's `example go.sh # <https://groups.google.com/g/word2vec-toolkit/c/Q49FIrNOQRo/m/J6KG8mUj45sJ>`_:: # # ./word2vec -train ../alldata-id.txt -output vectors.txt -cbow 0 -size 100 -window 10 -negative 5 -hs 0 -sample 1e-4 -threads 40 -binary 0 -iter 20 -min-count 1 -sentence-vectors 1 # # We vary the following parameter choices: # # * 100-dimensional vectors, as the 400-d vectors of the paper take a lot of # memory and, in our tests of this task, don't seem to offer much benefit # * Similarly, frequent word subsampling seems to decrease sentiment-prediction # accuracy, so it's left out # * ``cbow=0`` means skip-gram which is equivalent to the paper's 'PV-DBOW' # mode, matched in gensim with ``dm=0`` # * Added to that DBOW model are two DM models, one which averages context # vectors (\ ``dm_mean``\ ) and one which concatenates them (\ ``dm_concat``\ , # resulting in a much larger, slower, more data-hungry model) # * A ``min_count=2`` saves quite a bit of model memory, discarding only words # that appear in a single doc (and are thus no more expressive than the # unique-to-each doc vectors themselves) # import multiprocessing from collections import OrderedDict import gensim.models.doc2vec assert gensim.models.doc2vec.FAST_VERSION > -1, "This will be painfully slow otherwise" from gensim.models.doc2vec import Doc2Vec common_kwargs = dict( vector_size=100, epochs=20, min_count=2, sample=0, workers=multiprocessing.cpu_count(), negative=5, hs=0, ) simple_models = [ # PV-DBOW plain Doc2Vec(dm=0, **common_kwargs), # PV-DM w/ default averaging; a higher starting alpha may improve CBOW/PV-DM modes Doc2Vec(dm=1, window=10, alpha=0.05, comment='alpha=0.05', **common_kwargs), # PV-DM w/ concatenation - big, slow, experimental mode # window=5 (both sides) approximates paper's apparent 10-word total window size Doc2Vec(dm=1, dm_concat=1, window=5, **common_kwargs), ] for model in simple_models: model.build_vocab(alldocs) print(f"{model} vocabulary scanned & state initialized") models_by_name = OrderedDict((str(model), model) for model in simple_models) ############################################################################### # Le and Mikolov note that combining a paragraph vector from Distributed Bag of # Words (DBOW) and Distributed Memory (DM) improves performance. We will # follow, pairing the models together for evaluation. Here, we concatenate the # paragraph vectors obtained from each model with the help of a thin wrapper # class included in a gensim test module. (Note that this a separate, later # concatenation of output-vectors than the kind of input-window-concatenation # enabled by the ``dm_concat=1`` mode above.) # from gensim.test.test_doc2vec import ConcatenatedDoc2Vec models_by_name['dbow+dmm'] = ConcatenatedDoc2Vec([simple_models[0], simple_models[1]]) models_by_name['dbow+dmc'] = ConcatenatedDoc2Vec([simple_models[0], simple_models[2]]) ############################################################################### # Predictive Evaluation Methods # ----------------------------- # # Given a document, our ``Doc2Vec`` models output a vector representation of the document. # How useful is a particular model? # In case of sentiment analysis, we want the output vector to reflect the sentiment in the input document. # So, in vector space, positive documents should be distant from negative documents. # # We train a logistic regression from the training set: # # - regressors (inputs): document vectors from the Doc2Vec model # - target (outpus): sentiment labels # # So, this logistic regression will be able to predict sentiment given a document vector. # # Next, we test our logistic regression on the test set, and measure the rate of errors (incorrect predictions). # If the document vectors from the Doc2Vec model reflect the actual sentiment well, the error rate will be low. # # Therefore, the error rate of the logistic regression is indication of *how well* the given Doc2Vec model represents documents as vectors. # We can then compare different ``Doc2Vec`` models by looking at their error rates. # import numpy as np import statsmodels.api as sm from random import sample def logistic_predictor_from_data(train_targets, train_regressors): """Fit a statsmodel logistic predictor on supplied data""" logit = sm.Logit(train_targets, train_regressors) predictor = logit.fit(disp=0) # print(predictor.summary()) return predictor def error_rate_for_model(test_model, train_set, test_set): """Report error rate on test_doc sentiments, using supplied model and train_docs""" train_targets = [doc.sentiment for doc in train_set] train_regressors = [test_model.dv[doc.tags[0]] for doc in train_set] train_regressors = sm.add_constant(train_regressors) predictor = logistic_predictor_from_data(train_targets, train_regressors) test_regressors = [test_model.dv[doc.tags[0]] for doc in test_set] test_regressors = sm.add_constant(test_regressors) # Predict & evaluate test_predictions = predictor.predict(test_regressors) corrects = sum(np.rint(test_predictions) == [doc.sentiment for doc in test_set]) errors = len(test_predictions) - corrects error_rate = float(errors) / len(test_predictions) return (error_rate, errors, len(test_predictions), predictor) ############################################################################### # Bulk Training & Per-Model Evaluation # ------------------------------------ # # Note that doc-vector training is occurring on *all* documents of the dataset, # which includes all TRAIN/TEST/DEV docs. Because the native document-order # has similar-sentiment documents in large clumps – which is suboptimal for # training – we work with once-shuffled copy of the training set. # # We evaluate each model's sentiment predictive power based on error rate, and # the evaluation is done for each model. # # (On a 4-core 2.6Ghz Intel Core i7, these 20 passes training and evaluating 3 # main models takes about an hour.) # from collections import defaultdict error_rates = defaultdict(lambda: 1.0) # To selectively print only best errors achieved ############################################################################### # from random import shuffle shuffled_alldocs = alldocs[:] shuffle(shuffled_alldocs) for model in simple_models: print(f"Training {model}") model.train(shuffled_alldocs, total_examples=len(shuffled_alldocs), epochs=model.epochs) print(f"\nEvaluating {model}") err_rate, err_count, test_count, predictor = error_rate_for_model(model, train_docs, test_docs) error_rates[str(model)] = err_rate print("\n%f %s\n" % (err_rate, model)) for model in [models_by_name['dbow+dmm'], models_by_name['dbow+dmc']]: print(f"\nEvaluating {model}") err_rate, err_count, test_count, predictor = error_rate_for_model(model, train_docs, test_docs) error_rates[str(model)] = err_rate print(f"\n{err_rate} {model}\n") ############################################################################### # Achieved Sentiment-Prediction Accuracy # -------------------------------------- # Compare error rates achieved, best-to-worst print("Err_rate Model") for rate, name in sorted((rate, name) for name, rate in error_rates.items()): print(f"{rate} {name}") ############################################################################### # In our testing, contrary to the results of the paper, on this problem, # PV-DBOW alone performs as good as anything else. Concatenating vectors from # different models only sometimes offers a tiny predictive improvement – and # stays generally close to the best-performing solo model included. # # The best results achieved here are just around 10% error rate, still a long # way from the paper's reported 7.42% error rate. # # (Other trials not shown, with larger vectors and other changes, also don't # come close to the paper's reported value. Others around the net have reported # a similar inability to reproduce the paper's best numbers. The PV-DM/C mode # improves a bit with many more training epochs – but doesn't reach parity with # PV-DBOW.) # ############################################################################### # Examining Results # ----------------- # # Let's look for answers to the following questions: # # #. Are inferred vectors close to the precalculated ones? # #. Do close documents seem more related than distant ones? # #. Do the word vectors show useful similarities? # #. Are the word vectors from this dataset any good at analogies? # ############################################################################### # Are inferred vectors close to the precalculated ones? # ----------------------------------------------------- doc_id = np.random.randint(len(simple_models[0].dv)) # Pick random doc; re-run cell for more examples print(f'for doc {doc_id}...') for model in simple_models: inferred_docvec = model.infer_vector(alldocs[doc_id].words) print(f'{model}:\n {model.dv.most_similar([inferred_docvec], topn=3)}') ############################################################################### # (Yes, here the stored vector from 20 epochs of training is usually one of the # closest to a freshly-inferred vector for the same words. Defaults for # inference may benefit from tuning for each dataset or model parameters.) # ############################################################################### # Do close documents seem more related than distant ones? # ------------------------------------------------------- import random doc_id = np.random.randint(len(simple_models[0].dv)) # pick random doc, re-run cell for more examples model = random.choice(simple_models) # and a random model sims = model.dv.most_similar(doc_id, topn=len(model.dv)) # get *all* similar documents print(f'TARGET ({doc_id}): «{" ".join(alldocs[doc_id].words)}»\n') print(f'SIMILAR/DISSIMILAR DOCS PER MODEL {model}%s:\n') for label, index in [('MOST', 0), ('MEDIAN', len(sims)//2), ('LEAST', len(sims) - 1)]: s = sims[index] i = sims[index][0] words = ' '.join(alldocs[i].words) print(f'{label} {s}: «{words}»\n') ############################################################################### # Somewhat, in terms of reviewer tone, movie genre, etc... the MOST # cosine-similar docs usually seem more like the TARGET than the MEDIAN or # LEAST... especially if the MOST has a cosine-similarity > 0.5. Re-run the # cell to try another random target document. # ############################################################################### # Do the word vectors show useful similarities? # --------------------------------------------- # import random word_models = simple_models[:] def pick_random_word(model, threshold=10): # pick a random word with a suitable number of occurences while True: word = random.choice(model.wv.index_to_key) if model.wv.get_vecattr(word, "count") > threshold: return word target_word = pick_random_word(word_models[0]) # or uncomment below line, to just pick a word from the relevant domain: # target_word = 'comedy/drama' for model in word_models: print(f'target_word: {repr(target_word)} model: {model} similar words:') for i, (word, sim) in enumerate(model.wv.most_similar(target_word, topn=10), 1): print(f' {i}. {sim:.2f} {repr(word)}') print() ############################################################################### # Do the DBOW words look meaningless? That's because the gensim DBOW model # doesn't train word vectors – they remain at their random initialized values – # unless you ask with the ``dbow_words=1`` initialization parameter. Concurrent # word-training slows DBOW mode significantly, and offers little improvement # (and sometimes a little worsening) of the error rate on this IMDB # sentiment-prediction task, but may be appropriate on other tasks, or if you # also need word-vectors. # # Words from DM models tend to show meaningfully similar words when there are # many examples in the training data (as with 'plot' or 'actor'). (All DM modes # inherently involve word-vector training concurrent with doc-vector training.) # ############################################################################### # Are the word vectors from this dataset any good at analogies? # ------------------------------------------------------------- from gensim.test.utils import datapath questions_filename = datapath('questions-words.txt') # Note: this analysis takes many minutes for model in word_models: score, sections = model.wv.evaluate_word_analogies(questions_filename) correct, incorrect = len(sections[-1]['correct']), len(sections[-1]['incorrect']) print(f'{model}: {float(correct*100)/(correct+incorrect):0.2f}%% correct ({correct} of {correct+incorrect}') ############################################################################### # Even though this is a tiny, domain-specific dataset, it shows some meager # capability on the general word analogies – at least for the DM/mean and # DM/concat models which actually train word vectors. (The untrained # random-initialized words of the DBOW model of course fail miserably.) #
19,497
Python
.py
389
47.493573
185
0.656858
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,972
run_compare_lda.py
piskvorky_gensim/docs/src/gallery/howtos/run_compare_lda.py
r""" How to Compare LDA Models ========================= Demonstrates how you can visualize and compare trained topic models. """ # sphinx_gallery_thumbnail_number = 2 import logging logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO) ############################################################################### # # First, clean up the 20 Newsgroups dataset. We will use it to fit LDA. # --------------------------------------------------------------------- # from string import punctuation from nltk import RegexpTokenizer from nltk.stem.porter import PorterStemmer from nltk.corpus import stopwords from sklearn.datasets import fetch_20newsgroups newsgroups = fetch_20newsgroups() eng_stopwords = set(stopwords.words('english')) tokenizer = RegexpTokenizer(r'\s+', gaps=True) stemmer = PorterStemmer() translate_tab = {ord(p): u" " for p in punctuation} def text2tokens(raw_text): """Split the raw_text string into a list of stemmed tokens.""" clean_text = raw_text.lower().translate(translate_tab) tokens = [token.strip() for token in tokenizer.tokenize(clean_text)] tokens = [token for token in tokens if token not in eng_stopwords] stemmed_tokens = [stemmer.stem(token) for token in tokens] return [token for token in stemmed_tokens if len(token) > 2] # skip short tokens dataset = [text2tokens(txt) for txt in newsgroups['data']] # convert a documents to list of tokens from gensim.corpora import Dictionary dictionary = Dictionary(documents=dataset, prune_at=None) dictionary.filter_extremes(no_below=5, no_above=0.3, keep_n=None) # use Dictionary to remove un-relevant tokens dictionary.compactify() d2b_dataset = [dictionary.doc2bow(doc) for doc in dataset] # convert list of tokens to bag of word representation ############################################################################### # # Second, fit two LDA models. # --------------------------- # from gensim.models import LdaMulticore num_topics = 15 lda_fst = LdaMulticore( corpus=d2b_dataset, num_topics=num_topics, id2word=dictionary, workers=4, eval_every=None, passes=10, batch=True, ) lda_snd = LdaMulticore( corpus=d2b_dataset, num_topics=num_topics, id2word=dictionary, workers=4, eval_every=None, passes=20, batch=True, ) ############################################################################### # # Time to visualize, yay! # ----------------------- # # We use two slightly different visualization methods depending on how you're running this tutorial. # If you're running via a Jupyter notebook, then you'll get a nice interactive Plotly heatmap. # If you're viewing the static version of the page, you'll get a similar matplotlib heatmap, but it won't be interactive. # def plot_difference_plotly(mdiff, title="", annotation=None): """Plot the difference between models. Uses plotly as the backend.""" import plotly.graph_objs as go import plotly.offline as py annotation_html = None if annotation is not None: annotation_html = [ [ "+++ {}<br>--- {}".format(", ".join(int_tokens), ", ".join(diff_tokens)) for (int_tokens, diff_tokens) in row ] for row in annotation ] data = go.Heatmap(z=mdiff, colorscale='RdBu', text=annotation_html) layout = go.Layout(width=950, height=950, title=title, xaxis=dict(title="topic"), yaxis=dict(title="topic")) py.iplot(dict(data=[data], layout=layout)) def plot_difference_matplotlib(mdiff, title="", annotation=None): """Helper function to plot difference between models. Uses matplotlib as the backend.""" import matplotlib.pyplot as plt fig, ax = plt.subplots(figsize=(18, 14)) data = ax.imshow(mdiff, cmap='RdBu_r', origin='lower') plt.title(title) plt.colorbar(data) try: get_ipython() import plotly.offline as py except Exception: # # Fall back to matplotlib if we're not in a notebook, or if plotly is # unavailable for whatever reason. # plot_difference = plot_difference_matplotlib else: py.init_notebook_mode() plot_difference = plot_difference_plotly ############################################################################### # # Gensim can help you visualise the differences between topics. For this purpose, you can use the ``diff()`` method of LdaModel. # # ``diff()`` returns a matrix with distances **mdiff** and a matrix with annotations **annotation**. Read the docstring for more detailed info. # # In each **mdiff[i][j]** cell you'll find a distance between **topic_i** from the first model and **topic_j** from the second model. # # In each **annotation[i][j]** cell you'll find **[tokens from intersection, tokens from difference** between **topic_i** from first model and **topic_j** from the second model. # print(LdaMulticore.diff.__doc__) ############################################################################### # # Case 1: How topics within ONE model correlate with each other. # -------------------------------------------------------------- # ############################################################################### # # Short description: # # * x-axis - topic; # # * y-axis - topic; # # .. role:: raw-html-m2r(raw) # :format: html # # * :raw-html-m2r:`<span style="color:red">almost red cell</span>` - strongly decorrelated topics; # # .. role:: raw-html-m2r(raw) # :format: html # # * :raw-html-m2r:`<span style="color:blue">almost blue cell</span>` - strongly correlated topics. # # In an ideal world, we would like to see different topics decorrelated between themselves. # In this case, our matrix would look like this: # import numpy as np mdiff = np.ones((num_topics, num_topics)) np.fill_diagonal(mdiff, 0.) plot_difference(mdiff, title="Topic difference (one model) in ideal world") ############################################################################### # # Unfortunately, in real life, not everything is so good, and the matrix looks different. # ############################################################################### # # Short description (interactive annotations only): # # * ``+++ make, world, well`` - words from the intersection of topics = present in both topics; # # * ``--- money, day, still`` - words from the symmetric difference of topics = present in one topic but not the other. # mdiff, annotation = lda_fst.diff(lda_fst, distance='jaccard', num_words=50) plot_difference(mdiff, title="Topic difference (one model) [jaccard distance]", annotation=annotation) ############################################################################### # # If you compare a model with itself, you want to see as many red elements as # possible (except on the diagonal). With this picture, you can look at the # "not very red elements" and understand which topics in the model are very # similar and why (you can read annotation if you move your pointer to cell). # # Jaccard is a stable and robust distance function, but sometimes not sensitive # enough. Let's try to use the Hellinger distance instead. # mdiff, annotation = lda_fst.diff(lda_fst, distance='hellinger', num_words=50) plot_difference(mdiff, title="Topic difference (one model)[hellinger distance]", annotation=annotation) ############################################################################### # # You see that everything has become worse, but remember that everything depends on the task. # # Choose a distance function that matches your upstream task better: what kind of "similarity" is # relevant to you. From my (Ivan's) experience, Jaccard is fine. # ############################################################################### # # Case 2: How topics from DIFFERENT models correlate with each other. # ------------------------------------------------------------------- # ############################################################################### # # Sometimes, we want to look at the patterns between two different models and compare them. # # You can do this by constructing a matrix with the difference. # mdiff, annotation = lda_fst.diff(lda_snd, distance='jaccard', num_words=50) plot_difference(mdiff, title="Topic difference (two models)[jaccard distance]", annotation=annotation) ############################################################################### # # Looking at this matrix, you can find similar and different topics between the two models. # The plot also includes relevant tokens describing the topics' intersection and difference. #
8,569
Python
.py
189
42.89418
177
0.622494
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,973
run_downloader_api.py
piskvorky_gensim/docs/src/gallery/howtos/run_downloader_api.py
r""" How to download pre-trained models and corpora ============================================== Demonstrates simple and quick access to common corpora and pretrained models. """ import logging logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO) ############################################################################### # One of Gensim's features is simple and easy access to common data. # The `gensim-data <https://github.com/RaRe-Technologies/gensim-data>`_ project stores a # variety of corpora and pretrained models. # Gensim has a :py:mod:`gensim.downloader` module for programmatically accessing this data. # This module leverages a local cache (in user's home folder, by default) that # ensures data is downloaded at most once. # # This tutorial: # # * Downloads the text8 corpus, unless it is already on your local machine # * Trains a Word2Vec model from the corpus (see :ref:`sphx_glr_auto_examples_tutorials_run_doc2vec_lee.py` for a detailed tutorial) # * Leverages the model to calculate word similarity # * Demonstrates using the API to load other models and corpora # # Let's start by importing the api module. # import gensim.downloader as api ############################################################################### # # Now, let's download the text8 corpus and load it as a Python object # that supports streamed access. # corpus = api.load('text8') ############################################################################### # In this case, our corpus is an iterable. # If you look under the covers, it has the following definition: import inspect print(inspect.getsource(corpus.__class__)) ############################################################################### # For more details, look inside the file that defines the Dataset class for your particular resource. # print(inspect.getfile(corpus.__class__)) ############################################################################### # # With the corpus has been downloaded and loaded, let's use it to train a word2vec model. # from gensim.models.word2vec import Word2Vec model = Word2Vec(corpus) ############################################################################### # # Now that we have our word2vec model, let's find words that are similar to 'tree'. # print(model.wv.most_similar('tree')) ############################################################################### # # You can use the API to download several different corpora and pretrained models. # Here's how to list all resources available in gensim-data: # import json info = api.info() print(json.dumps(info, indent=4)) ############################################################################### # There are two types of data resources: corpora and models. print(info.keys()) ############################################################################### # Let's have a look at the available corpora: for corpus_name, corpus_data in sorted(info['corpora'].items()): print( '%s (%d records): %s' % ( corpus_name, corpus_data.get('num_records', -1), corpus_data['description'][:40] + '...', ) ) ############################################################################### # ... and the same for models: for model_name, model_data in sorted(info['models'].items()): print( '%s (%d records): %s' % ( model_name, model_data.get('num_records', -1), model_data['description'][:40] + '...', ) ) ############################################################################### # # If you want to get detailed information about a model/corpus, use: # fake_news_info = api.info('fake-news') print(json.dumps(fake_news_info, indent=4)) ############################################################################### # # Sometimes, you do not want to load a model into memory. Instead, you can request # just the filesystem path to the model. For that, use: # print(api.load('glove-wiki-gigaword-50', return_path=True)) ############################################################################### # # If you want to load the model to memory, then: # model = api.load("glove-wiki-gigaword-50") model.most_similar("glass") ############################################################################### # # For corpora, the corpus is never loaded to memory, all corpora are iterables wrapped in # a special class ``Dataset``, with an ``__iter__`` method. #
4,515
Python
.py
105
40.580952
132
0.534125
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,974
run_corpora_and_vector_spaces.py
piskvorky_gensim/docs/src/gallery/core/run_corpora_and_vector_spaces.py
r""" Corpora and Vector Spaces ========================= Demonstrates transforming text into a vector space representation. Also introduces corpus streaming and persistence to disk in various formats. """ import logging logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO) ############################################################################### # First, let’s create a small corpus of nine short documents [1]_: # # .. _second example: # # From Strings to Vectors # ------------------------ # # This time, let's start from documents represented as strings: # documents = [ "Human machine interface for lab abc computer applications", "A survey of user opinion of computer system response time", "The EPS user interface management system", "System and human system engineering testing of EPS", "Relation of user perceived response time to error measurement", "The generation of random binary unordered trees", "The intersection graph of paths in trees", "Graph minors IV Widths of trees and well quasi ordering", "Graph minors A survey", ] ############################################################################### # This is a tiny corpus of nine documents, each consisting of only a single sentence. # # First, let's tokenize the documents, remove common words (using a toy stoplist) # as well as words that only appear once in the corpus: from pprint import pprint # pretty-printer from collections import defaultdict # remove common words and tokenize stoplist = set('for a of the and to in'.split()) texts = [ [word for word in document.lower().split() if word not in stoplist] for document in documents ] # remove words that appear only once frequency = defaultdict(int) for text in texts: for token in text: frequency[token] += 1 texts = [ [token for token in text if frequency[token] > 1] for text in texts ] pprint(texts) ############################################################################### # Your way of processing the documents will likely vary; here, I only split on whitespace # to tokenize, followed by lowercasing each word. In fact, I use this particular # (simplistic and inefficient) setup to mimic the experiment done in Deerwester et al.'s # original LSA article [1]_. # # The ways to process documents are so varied and application- and language-dependent that I # decided to *not* constrain them by any interface. Instead, a document is represented # by the features extracted from it, not by its "surface" string form: how you get to # the features is up to you. Below I describe one common, general-purpose approach (called # :dfn:`bag-of-words`), but keep in mind that different application domains call for # different features, and, as always, it's `garbage in, garbage out <https://en.wikipedia.org/wiki/Garbage_In,_Garbage_Out>`_... # # To convert documents to vectors, we'll use a document representation called # `bag-of-words <https://en.wikipedia.org/wiki/Bag_of_words>`_. In this representation, # each document is represented by one vector where each vector element represents # a question-answer pair, in the style of: # # - Question: How many times does the word `system` appear in the document? # - Answer: Once. # # It is advantageous to represent the questions only by their (integer) ids. The mapping # between the questions and ids is called a dictionary: from gensim import corpora dictionary = corpora.Dictionary(texts) dictionary.save('/tmp/deerwester.dict') # store the dictionary, for future reference print(dictionary) ############################################################################### # Here we assigned a unique integer id to all words appearing in the corpus with the # :class:`gensim.corpora.dictionary.Dictionary` class. This sweeps across the texts, collecting word counts # and relevant statistics. In the end, we see there are twelve distinct words in the # processed corpus, which means each document will be represented by twelve numbers (ie., by a 12-D vector). # To see the mapping between words and their ids: print(dictionary.token2id) ############################################################################### # To actually convert tokenized documents to vectors: new_doc = "Human computer interaction" new_vec = dictionary.doc2bow(new_doc.lower().split()) print(new_vec) # the word "interaction" does not appear in the dictionary and is ignored ############################################################################### # The function :func:`doc2bow` simply counts the number of occurrences of # each distinct word, converts the word to its integer word id # and returns the result as a sparse vector. The sparse vector ``[(0, 1), (1, 1)]`` # therefore reads: in the document `"Human computer interaction"`, the words `computer` # (id 0) and `human` (id 1) appear once; the other ten dictionary words appear (implicitly) zero times. corpus = [dictionary.doc2bow(text) for text in texts] corpora.MmCorpus.serialize('/tmp/deerwester.mm', corpus) # store to disk, for later use print(corpus) ############################################################################### # By now it should be clear that the vector feature with ``id=10`` stands for the question "How many # times does the word `graph` appear in the document?" and that the answer is "zero" for # the first six documents and "one" for the remaining three. # # .. _corpus_streaming_tutorial: # # Corpus Streaming -- One Document at a Time # ------------------------------------------- # # Note that `corpus` above resides fully in memory, as a plain Python list. # In this simple example, it doesn't matter much, but just to make things clear, # let's assume there are millions of documents in the corpus. Storing all of them in RAM won't do. # Instead, let's assume the documents are stored in a file on disk, one document per line. Gensim # only requires that a corpus must be able to return one document vector at a time: # from smart_open import open # for transparently opening remote files class MyCorpus: def __iter__(self): for line in open('https://radimrehurek.com/mycorpus.txt'): # assume there's one document per line, tokens separated by whitespace yield dictionary.doc2bow(line.lower().split()) ############################################################################### # The full power of Gensim comes from the fact that a corpus doesn't have to be # a ``list``, or a ``NumPy`` array, or a ``Pandas`` dataframe, or whatever. # Gensim *accepts any object that, when iterated over, successively yields # documents*. # This flexibility allows you to create your own corpus classes that stream the # documents directly from disk, network, database, dataframes... The models # in Gensim are implemented such that they don't require all vectors to reside # in RAM at once. You can even create the documents on the fly! ############################################################################### # Download the sample `mycorpus.txt file here <https://radimrehurek.com/mycorpus.txt>`_. The assumption that # each document occupies one line in a single file is not important; you can mold # the `__iter__` function to fit your input format, whatever it is. # Walking directories, parsing XML, accessing the network... # Just parse your input to retrieve a clean list of tokens in each document, # then convert the tokens via a dictionary to their ids and yield the resulting sparse vector inside `__iter__`. corpus_memory_friendly = MyCorpus() # doesn't load the corpus into memory! print(corpus_memory_friendly) ############################################################################### # Corpus is now an object. We didn't define any way to print it, so `print` just outputs address # of the object in memory. Not very useful. To see the constituent vectors, let's # iterate over the corpus and print each document vector (one at a time): for vector in corpus_memory_friendly: # load one vector into memory at a time print(vector) ############################################################################### # Although the output is the same as for the plain Python list, the corpus is now much # more memory friendly, because at most one vector resides in RAM at a time. Your # corpus can now be as large as you want. # # Similarly, to construct the dictionary without loading all texts into memory: # collect statistics about all tokens dictionary = corpora.Dictionary(line.lower().split() for line in open('https://radimrehurek.com/mycorpus.txt')) # remove stop words and words that appear only once stop_ids = [ dictionary.token2id[stopword] for stopword in stoplist if stopword in dictionary.token2id ] once_ids = [tokenid for tokenid, docfreq in dictionary.dfs.items() if docfreq == 1] dictionary.filter_tokens(stop_ids + once_ids) # remove stop words and words that appear only once dictionary.compactify() # remove gaps in id sequence after words that were removed print(dictionary) ############################################################################### # And that is all there is to it! At least as far as bag-of-words representation is concerned. # Of course, what we do with such a corpus is another question; it is not at all clear # how counting the frequency of distinct words could be useful. As it turns out, it isn't, and # we will need to apply a transformation on this simple representation first, before # we can use it to compute any meaningful document vs. document similarities. # Transformations are covered in the next tutorial # (:ref:`sphx_glr_auto_examples_core_run_topics_and_transformations.py`), # but before that, let's briefly turn our attention to *corpus persistency*. # # .. _corpus-formats: # # Corpus Formats # --------------- # # There exist several file formats for serializing a Vector Space corpus (~sequence of vectors) to disk. # `Gensim` implements them via the *streaming corpus interface* mentioned earlier: # documents are read from (resp. stored to) disk in a lazy fashion, one document at # a time, without the whole corpus being read into main memory at once. # # One of the more notable file formats is the `Market Matrix format <http://math.nist.gov/MatrixMarket/formats.html>`_. # To save a corpus in the Matrix Market format: # # create a toy corpus of 2 documents, as a plain Python list corpus = [[(1, 0.5)], []] # make one document empty, for the heck of it corpora.MmCorpus.serialize('/tmp/corpus.mm', corpus) ############################################################################### # Other formats include `Joachim's SVMlight format <http://svmlight.joachims.org/>`_, # `Blei's LDA-C format <https://github.com/blei-lab/lda-c>`_ and # `GibbsLDA++ format <https://gibbslda.sourceforge.net/>`_. corpora.SvmLightCorpus.serialize('/tmp/corpus.svmlight', corpus) corpora.BleiCorpus.serialize('/tmp/corpus.lda-c', corpus) corpora.LowCorpus.serialize('/tmp/corpus.low', corpus) ############################################################################### # Conversely, to load a corpus iterator from a Matrix Market file: corpus = corpora.MmCorpus('/tmp/corpus.mm') ############################################################################### # Corpus objects are streams, so typically you won't be able to print them directly: print(corpus) ############################################################################### # Instead, to view the contents of a corpus: # one way of printing a corpus: load it entirely into memory print(list(corpus)) # calling list() will convert any sequence to a plain Python list ############################################################################### # or # another way of doing it: print one document at a time, making use of the streaming interface for doc in corpus: print(doc) ############################################################################### # The second way is obviously more memory-friendly, but for testing and development # purposes, nothing beats the simplicity of calling ``list(corpus)``. # # To save the same Matrix Market document stream in Blei's LDA-C format, corpora.BleiCorpus.serialize('/tmp/corpus.lda-c', corpus) ############################################################################### # In this way, `gensim` can also be used as a memory-efficient **I/O format conversion tool**: # just load a document stream using one format and immediately save it in another format. # Adding new formats is dead easy, check out the `code for the SVMlight corpus # <https://github.com/piskvorky/gensim/blob/develop/gensim/corpora/svmlightcorpus.py>`_ for an example. # # Compatibility with NumPy and SciPy # ---------------------------------- # # Gensim also contains `efficient utility functions <https://radimrehurek.com/gensim/matutils.html>`_ # to help converting from/to numpy matrices import gensim import numpy as np numpy_matrix = np.random.randint(10, size=[5, 2]) # random matrix as an example corpus = gensim.matutils.Dense2Corpus(numpy_matrix) # numpy_matrix = gensim.matutils.corpus2dense(corpus, num_terms=number_of_corpus_features) ############################################################################### # and from/to `scipy.sparse` matrices import scipy.sparse scipy_sparse_matrix = scipy.sparse.random(5, 2) # random sparse matrix as example corpus = gensim.matutils.Sparse2Corpus(scipy_sparse_matrix) scipy_csc_matrix = gensim.matutils.corpus2csc(corpus) ############################################################################### # What Next # --------- # # Read about :ref:`sphx_glr_auto_examples_core_run_topics_and_transformations.py`. # # References # ---------- # # For a complete reference (Want to prune the dictionary to a smaller size? # Optimize converting between corpora and NumPy/SciPy arrays?), see the :ref:`apiref`. # # .. [1] This is the same corpus as used in # `Deerwester et al. (1990): Indexing by Latent Semantic Analysis <http://www.cs.bham.ac.uk/~pxt/IDA/lsa_ind.pdf>`_, Table 2. import matplotlib.pyplot as plt import matplotlib.image as mpimg img = mpimg.imread('run_corpora_and_vector_spaces.png') imgplot = plt.imshow(img) _ = plt.axis('off')
14,277
Python
.py
259
53.467181
132
0.665664
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,975
run_core_concepts.py
piskvorky_gensim/docs/src/gallery/core/run_core_concepts.py
r""" Core Concepts ============= This tutorial introduces Documents, Corpora, Vectors and Models: the basic concepts and terms needed to understand and use gensim. """ import pprint ############################################################################### # The core concepts of ``gensim`` are: # # 1. :ref:`core_concepts_document`: some text. # 2. :ref:`core_concepts_corpus`: a collection of documents. # 3. :ref:`core_concepts_vector`: a mathematically convenient representation of a document. # 4. :ref:`core_concepts_model`: an algorithm for transforming vectors from one representation to another. # # Let's examine each of these in slightly more detail. # # .. _core_concepts_document: # # Document # -------- # # In Gensim, a *document* is an object of the `text sequence type <https://docs.python.org/3.7/library/stdtypes.html#text-sequence-type-str>`_ (commonly known as ``str`` in Python 3). # A document could be anything from a short 140 character tweet, a single # paragraph (i.e., journal article abstract), a news article, or a book. # document = "Human machine interface for lab abc computer applications" ############################################################################### # .. _core_concepts_corpus: # # Corpus # ------ # # A *corpus* is a collection of :ref:`core_concepts_document` objects. # Corpora serve two roles in Gensim: # # 1. Input for training a :ref:`core_concepts_model`. # During training, the models use this *training corpus* to look for common # themes and topics, initializing their internal model parameters. # # Gensim focuses on *unsupervised* models so that no human intervention, # such as costly annotations or tagging documents by hand, is required. # # 2. Documents to organize. # After training, a topic model can be used to extract topics from new # documents (documents not seen in the training corpus). # # Such corpora can be indexed for # :ref:`sphx_glr_auto_examples_core_run_similarity_queries.py`, # queried by semantic similarity, clustered etc. # # Here is an example corpus. # It consists of 9 documents, where each document is a string consisting of a single sentence. # text_corpus = [ "Human machine interface for lab abc computer applications", "A survey of user opinion of computer system response time", "The EPS user interface management system", "System and human system engineering testing of EPS", "Relation of user perceived response time to error measurement", "The generation of random binary unordered trees", "The intersection graph of paths in trees", "Graph minors IV Widths of trees and well quasi ordering", "Graph minors A survey", ] ############################################################################### # # .. Important:: # The above example loads the entire corpus into memory. # In practice, corpora may be very large, so loading them into memory may be impossible. # Gensim intelligently handles such corpora by *streaming* them one document at a time. # See :ref:`corpus_streaming_tutorial` for details. # # This is a particularly small example of a corpus for illustration purposes. # Another example could be a list of all the plays written by Shakespeare, list # of all wikipedia articles, or all tweets by a particular person of interest. # # After collecting our corpus, there are typically a number of preprocessing # steps we want to undertake. We'll keep it simple and just remove some # commonly used English words (such as 'the') and words that occur only once in # the corpus. In the process of doing so, we'll tokenize our data. # Tokenization breaks up the documents into words (in this case using space as # a delimiter). # # .. Important:: # There are better ways to perform preprocessing than just lower-casing and # splitting by space. Effective preprocessing is beyond the scope of this # tutorial: if you're interested, check out the # :py:func:`gensim.utils.simple_preprocess` function. # # Create a set of frequent words stoplist = set('for a of the and to in'.split(' ')) # Lowercase each document, split it by white space and filter out stopwords texts = [[word for word in document.lower().split() if word not in stoplist] for document in text_corpus] # Count word frequencies from collections import defaultdict frequency = defaultdict(int) for text in texts: for token in text: frequency[token] += 1 # Only keep words that appear more than once processed_corpus = [[token for token in text if frequency[token] > 1] for text in texts] pprint.pprint(processed_corpus) ############################################################################### # Before proceeding, we want to associate each word in the corpus with a unique # integer ID. We can do this using the :py:class:`gensim.corpora.Dictionary` # class. This dictionary defines the vocabulary of all words that our # processing knows about. # from gensim import corpora dictionary = corpora.Dictionary(processed_corpus) print(dictionary) ############################################################################### # Because our corpus is small, there are only 12 different tokens in this # :py:class:`gensim.corpora.Dictionary`. For larger corpuses, dictionaries that # contains hundreds of thousands of tokens are quite common. # ############################################################################### # .. _core_concepts_vector: # # Vector # ------ # # To infer the latent structure in our corpus we need a way to represent # documents that we can manipulate mathematically. One approach is to represent # each document as a vector of *features*. # For example, a single feature may be thought of as a question-answer pair: # # 1. How many times does the word *splonge* appear in the document? Zero. # 2. How many paragraphs does the document consist of? Two. # 3. How many fonts does the document use? Five. # # The question is usually represented only by its integer id (such as `1`, `2` and `3`). # The representation of this document then becomes a series of pairs like ``(1, 0.0), (2, 2.0), (3, 5.0)``. # This is known as a *dense vector*, because it contains an explicit answer to each of the above questions. # # If we know all the questions in advance, we may leave them implicit # and simply represent the document as ``(0, 2, 5)``. # This sequence of answers is the **vector** for our document (in this case a 3-dimensional dense vector). # For practical purposes, only questions to which the answer is (or # can be converted to) a *single floating point number* are allowed in Gensim. # # In practice, vectors often consist of many zero values. # To save memory, Gensim omits all vector elements with value 0.0. # The above example thus becomes ``(2, 2.0), (3, 5.0)``. # This is known as a *sparse vector* or *bag-of-words vector*. # The values of all missing features in this sparse representation can be unambiguously resolved to zero, ``0.0``. # # Assuming the questions are the same, we can compare the vectors of two different documents to each other. # For example, assume we are given two vectors ``(0.0, 2.0, 5.0)`` and ``(0.1, 1.9, 4.9)``. # Because the vectors are very similar to each other, we can conclude that the documents corresponding to those vectors are similar, too. # Of course, the correctness of that conclusion depends on how well we picked the questions in the first place. # # Another approach to represent a document as a vector is the *bag-of-words # model*. # Under the bag-of-words model each document is represented by a vector # containing the frequency counts of each word in the dictionary. # For example, assume we have a dictionary containing the words # ``['coffee', 'milk', 'sugar', 'spoon']``. # A document consisting of the string ``"coffee milk coffee"`` would then # be represented by the vector ``[2, 1, 0, 0]`` where the entries of the vector # are (in order) the occurrences of "coffee", "milk", "sugar" and "spoon" in # the document. The length of the vector is the number of entries in the # dictionary. One of the main properties of the bag-of-words model is that it # completely ignores the order of the tokens in the document that is encoded, # which is where the name bag-of-words comes from. # # Our processed corpus has 12 unique words in it, which means that each # document will be represented by a 12-dimensional vector under the # bag-of-words model. We can use the dictionary to turn tokenized documents # into these 12-dimensional vectors. We can see what these IDs correspond to: # pprint.pprint(dictionary.token2id) ############################################################################### # For example, suppose we wanted to vectorize the phrase "Human computer # interaction" (note that this phrase was not in our original corpus). We can # create the bag-of-word representation for a document using the ``doc2bow`` # method of the dictionary, which returns a sparse representation of the word # counts: # new_doc = "Human computer interaction" new_vec = dictionary.doc2bow(new_doc.lower().split()) print(new_vec) ############################################################################### # The first entry in each tuple corresponds to the ID of the token in the # dictionary, the second corresponds to the count of this token. # # Note that "interaction" did not occur in the original corpus and so it was # not included in the vectorization. Also note that this vector only contains # entries for words that actually appeared in the document. Because any given # document will only contain a few words out of the many words in the # dictionary, words that do not appear in the vectorization are represented as # implicitly zero as a space saving measure. # # We can convert our entire original corpus to a list of vectors: # bow_corpus = [dictionary.doc2bow(text) for text in processed_corpus] pprint.pprint(bow_corpus) ############################################################################### # Note that while this list lives entirely in memory, in most applications you # will want a more scalable solution. Luckily, ``gensim`` allows you to use any # iterator that returns a single document vector at a time. See the # documentation for more details. # # .. Important:: # The distinction between a document and a vector is that the former is text, # and the latter is a mathematically convenient representation of the text. # Sometimes, people will use the terms interchangeably: for example, given # some arbitrary document ``D``, instead of saying "the vector that # corresponds to document ``D``", they will just say "the vector ``D``" or # the "document ``D``". This achieves brevity at the cost of ambiguity. # # As long as you remember that documents exist in document space, and that # vectors exist in vector space, the above ambiguity is acceptable. # # .. Important:: # Depending on how the representation was obtained, two different documents # may have the same vector representations. # # .. _core_concepts_model: # # Model # ----- # # Now that we have vectorized our corpus we can begin to transform it using # *models*. We use model as an abstract term referring to a *transformation* from # one document representation to another. In ``gensim`` documents are # represented as vectors so a model can be thought of as a transformation # between two vector spaces. The model learns the details of this # transformation during training, when it reads the training # :ref:`core_concepts_corpus`. # # One simple example of a model is `tf-idf # <https://en.wikipedia.org/wiki/Tf%E2%80%93idf>`_. The tf-idf model # transforms vectors from the bag-of-words representation to a vector space # where the frequency counts are weighted according to the relative rarity of # each word in the corpus. # # Here's a simple example. Let's initialize the tf-idf model, training it on # our corpus and transforming the string "system minors": # from gensim import models # train the model tfidf = models.TfidfModel(bow_corpus) # transform the "system minors" string words = "system minors".lower().split() print(tfidf[dictionary.doc2bow(words)]) ############################################################################### # The ``tfidf`` model again returns a list of tuples, where the first entry is # the token ID and the second entry is the tf-idf weighting. Note that the ID # corresponding to "system" (which occurred 4 times in the original corpus) has # been weighted lower than the ID corresponding to "minors" (which only # occurred twice). # # You can save trained models to disk and later load them back, either to # continue training on new training documents or to transform new documents. # # ``gensim`` offers a number of different models/transformations. # For more, see :ref:`sphx_glr_auto_examples_core_run_topics_and_transformations.py`. # # Once you've created the model, you can do all sorts of cool stuff with it. # For example, to transform the whole corpus via TfIdf and index it, in # preparation for similarity queries: # from gensim import similarities index = similarities.SparseMatrixSimilarity(tfidf[bow_corpus], num_features=12) ############################################################################### # and to query the similarity of our query document ``query_document`` against every document in the corpus: query_document = 'system engineering'.split() query_bow = dictionary.doc2bow(query_document) sims = index[tfidf[query_bow]] print(list(enumerate(sims))) ############################################################################### # How to read this output? # Document 3 has a similarity score of 0.718=72%, document 2 has a similarity score of 42% etc. # We can make this slightly more readable by sorting: for document_number, score in sorted(enumerate(sims), key=lambda x: x[1], reverse=True): print(document_number, score) ############################################################################### # Summary # ------- # # The core concepts of ``gensim`` are: # # 1. :ref:`core_concepts_document`: some text. # 2. :ref:`core_concepts_corpus`: a collection of documents. # 3. :ref:`core_concepts_vector`: a mathematically convenient representation of a document. # 4. :ref:`core_concepts_model`: an algorithm for transforming vectors from one representation to another. # # We saw these concepts in action. # First, we started with a corpus of documents. # Next, we transformed these documents to a vector space representation. # After that, we created a model that transformed our original vector representation to TfIdf. # Finally, we used our model to calculate the similarity between some query document and all documents in the corpus. # # What Next? # ---------- # # There's still much more to learn about :ref:`sphx_glr_auto_examples_core_run_corpora_and_vector_spaces.py`. import matplotlib.pyplot as plt import matplotlib.image as mpimg img = mpimg.imread('run_core_concepts.png') imgplot = plt.imshow(img) _ = plt.axis('off')
15,054
Python
.py
304
48.233553
183
0.708571
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,976
run_topics_and_transformations.py
piskvorky_gensim/docs/src/gallery/core/run_topics_and_transformations.py
r""" Topics and Transformations =========================== Introduces transformations and demonstrates their use on a toy corpus. """ import logging logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO) ############################################################################### # In this tutorial, I will show how to transform documents from one vector representation # into another. This process serves two goals: # # 1. To bring out hidden structure in the corpus, discover relationships between # words and use them to describe the documents in a new and # (hopefully) more semantic way. # 2. To make the document representation more compact. This both improves efficiency # (new representation consumes less resources) and efficacy (marginal data # trends are ignored, noise-reduction). # # Creating the Corpus # ------------------- # # First, we need to create a corpus to work with. # This step is the same as in the previous tutorial; # if you completed it, feel free to skip to the next section. from collections import defaultdict from gensim import corpora documents = [ "Human machine interface for lab abc computer applications", "A survey of user opinion of computer system response time", "The EPS user interface management system", "System and human system engineering testing of EPS", "Relation of user perceived response time to error measurement", "The generation of random binary unordered trees", "The intersection graph of paths in trees", "Graph minors IV Widths of trees and well quasi ordering", "Graph minors A survey", ] # remove common words and tokenize stoplist = set('for a of the and to in'.split()) texts = [ [word for word in document.lower().split() if word not in stoplist] for document in documents ] # remove words that appear only once frequency = defaultdict(int) for text in texts: for token in text: frequency[token] += 1 texts = [ [token for token in text if frequency[token] > 1] for text in texts ] dictionary = corpora.Dictionary(texts) corpus = [dictionary.doc2bow(text) for text in texts] ############################################################################### # # Creating a transformation # ++++++++++++++++++++++++++ # # The transformations are standard Python objects, typically initialized by means of # a :dfn:`training corpus`: # from gensim import models tfidf = models.TfidfModel(corpus) # step 1 -- initialize a model ############################################################################### # We used our old corpus from tutorial 1 to initialize (train) the transformation model. Different # transformations may require different initialization parameters; in case of TfIdf, the # "training" consists simply of going through the supplied corpus once and computing document frequencies # of all its features. Training other models, such as Latent Semantic Analysis or Latent Dirichlet # Allocation, is much more involved and, consequently, takes much more time. # # .. note:: # Transformations always convert between two specific vector # spaces. The same vector space (= the same set of feature ids) must be used for training # as well as for subsequent vector transformations. Failure to use the same input # feature space, such as applying a different string preprocessing, using different # feature ids, or using bag-of-words input vectors where TfIdf vectors are expected, will # result in feature mismatch during transformation calls and consequently in either # garbage output and/or runtime exceptions. # # # Transforming vectors # +++++++++++++++++++++ # # From now on, ``tfidf`` is treated as a read-only object that can be used to convert # any vector from the old representation (bag-of-words integer counts) to the new representation # (TfIdf real-valued weights): doc_bow = [(0, 1), (1, 1)] print(tfidf[doc_bow]) # step 2 -- use the model to transform vectors ############################################################################### # Or to apply a transformation to a whole corpus: corpus_tfidf = tfidf[corpus] for doc in corpus_tfidf: print(doc) ############################################################################### # In this particular case, we are transforming the same corpus that we used # for training, but this is only incidental. Once the transformation model has been initialized, # it can be used on any vectors (provided they come from the same vector space, of course), # even if they were not used in the training corpus at all. This is achieved by a process called # folding-in for LSA, by topic inference for LDA etc. # # .. note:: # Calling ``model[corpus]`` only creates a wrapper around the old ``corpus`` # document stream -- actual conversions are done on-the-fly, during document iteration. # We cannot convert the entire corpus at the time of calling ``corpus_transformed = model[corpus]``, # because that would mean storing the result in main memory, and that contradicts gensim's objective of memory-indepedence. # If you will be iterating over the transformed ``corpus_transformed`` multiple times, and the # transformation is costly, :ref:`serialize the resulting corpus to disk first <corpus-formats>` and continue # using that. # # Transformations can also be serialized, one on top of another, in a sort of chain: lsi_model = models.LsiModel(corpus_tfidf, id2word=dictionary, num_topics=2) # initialize an LSI transformation corpus_lsi = lsi_model[corpus_tfidf] # create a double wrapper over the original corpus: bow->tfidf->fold-in-lsi ############################################################################### # Here we transformed our Tf-Idf corpus via `Latent Semantic Indexing <https://en.wikipedia.org/wiki/Latent_semantic_indexing>`_ # into a latent 2-D space (2-D because we set ``num_topics=2``). Now you're probably wondering: what do these two latent # dimensions stand for? Let's inspect with :func:`models.LsiModel.print_topics`: lsi_model.print_topics(2) ############################################################################### # (the topics are printed to log -- see the note at the top of this page about activating # logging) # # It appears that according to LSI, "trees", "graph" and "minors" are all related # words (and contribute the most to the direction of the first topic), while the # second topic practically concerns itself with all the other words. As expected, # the first five documents are more strongly related to the second topic while the # remaining four documents to the first topic: # both bow->tfidf and tfidf->lsi transformations are actually executed here, on the fly for doc, as_text in zip(corpus_lsi, documents): print(doc, as_text) ############################################################################### # Model persistency is achieved with the :func:`save` and :func:`load` functions: import os import tempfile with tempfile.NamedTemporaryFile(prefix='model-', suffix='.lsi', delete=False) as tmp: lsi_model.save(tmp.name) # same for tfidf, lda, ... loaded_lsi_model = models.LsiModel.load(tmp.name) os.unlink(tmp.name) ############################################################################### # The next question might be: just how exactly similar are those documents to each other? # Is there a way to formalize the similarity, so that for a given input document, we can # order some other set of documents according to their similarity? Similarity queries # are covered in the next tutorial (:ref:`sphx_glr_auto_examples_core_run_similarity_queries.py`). # # .. _transformations: # # Available transformations # -------------------------- # # Gensim implements several popular Vector Space Model algorithms: # # * `Term Frequency * Inverse Document Frequency, Tf-Idf <https://en.wikipedia.org/wiki/Tf%E2%80%93idf>`_ # expects a bag-of-words (integer values) training corpus during initialization. # During transformation, it will take a vector and return another vector of the # same dimensionality, except that features which were rare in the training corpus # will have their value increased. # It therefore converts integer-valued vectors into real-valued ones, while leaving # the number of dimensions intact. It can also optionally normalize the resulting # vectors to (Euclidean) unit length. # # .. sourcecode:: pycon # # model = models.TfidfModel(corpus, normalize=True) # # * `Okapi Best Matching, Okapi BM25 <https://en.wikipedia.org/wiki/Okapi_BM25>`_ # expects a bag-of-words (integer values) training corpus during initialization. # During transformation, it will take a vector and return another vector of the # same dimensionality, except that features which were rare in the training corpus # will have their value increased. It therefore converts integer-valued # vectors into real-valued ones, while leaving the number of dimensions intact. # # Okapi BM25 is the standard ranking function used by search engines to estimate # the relevance of documents to a given search query. # # .. sourcecode:: pycon # # model = models.OkapiBM25Model(corpus) # # * `Latent Semantic Indexing, LSI (or sometimes LSA) <https://en.wikipedia.org/wiki/Latent_semantic_indexing>`_ # transforms documents from either bag-of-words or (preferrably) TfIdf-weighted space into # a latent space of a lower dimensionality. For the toy corpus above we used only # 2 latent dimensions, but on real corpora, target dimensionality of 200--500 is recommended # as a "golden standard" [1]_. # # .. sourcecode:: pycon # # model = models.LsiModel(tfidf_corpus, id2word=dictionary, num_topics=300) # # LSI training is unique in that we can continue "training" at any point, simply # by providing more training documents. This is done by incremental updates to # the underlying model, in a process called `online training`. Because of this feature, the # input document stream may even be infinite -- just keep feeding LSI new documents # as they arrive, while using the computed transformation model as read-only in the meanwhile! # # .. sourcecode:: pycon # # model.add_documents(another_tfidf_corpus) # now LSI has been trained on tfidf_corpus + another_tfidf_corpus # lsi_vec = model[tfidf_vec] # convert some new document into the LSI space, without affecting the model # # model.add_documents(more_documents) # tfidf_corpus + another_tfidf_corpus + more_documents # lsi_vec = model[tfidf_vec] # # See the :mod:`gensim.models.lsimodel` documentation for details on how to make # LSI gradually "forget" old observations in infinite streams. If you want to get dirty, # there are also parameters you can tweak that affect speed vs. memory footprint vs. numerical # precision of the LSI algorithm. # # `gensim` uses a novel online incremental streamed distributed training algorithm (quite a mouthful!), # which I published in [5]_. `gensim` also executes a stochastic multi-pass algorithm # from Halko et al. [4]_ internally, to accelerate in-core part # of the computations. # See also :ref:`wiki` for further speed-ups by distributing the computation across # a cluster of computers. # # * `Random Projections, RP <http://www.cis.hut.fi/ella/publications/randproj_kdd.pdf>`_ aim to # reduce vector space dimensionality. This is a very efficient (both memory- and # CPU-friendly) approach to approximating TfIdf distances between documents, by throwing in a little randomness. # Recommended target dimensionality is again in the hundreds/thousands, depending on your dataset. # # .. sourcecode:: pycon # # model = models.RpModel(tfidf_corpus, num_topics=500) # # * `Latent Dirichlet Allocation, LDA <https://en.wikipedia.org/wiki/Latent_Dirichlet_allocation>`_ # is yet another transformation from bag-of-words counts into a topic space of lower # dimensionality. LDA is a probabilistic extension of LSA (also called multinomial PCA), # so LDA's topics can be interpreted as probability distributions over words. These distributions are, # just like with LSA, inferred automatically from a training corpus. Documents # are in turn interpreted as a (soft) mixture of these topics (again, just like with LSA). # # .. sourcecode:: pycon # # model = models.LdaModel(corpus, id2word=dictionary, num_topics=100) # # `gensim` uses a fast implementation of online LDA parameter estimation based on [2]_, # modified to run in :ref:`distributed mode <distributed>` on a cluster of computers. # # * `Hierarchical Dirichlet Process, HDP <http://jmlr.csail.mit.edu/proceedings/papers/v15/wang11a/wang11a.pdf>`_ # is a non-parametric bayesian method (note the missing number of requested topics): # # .. sourcecode:: pycon # # model = models.HdpModel(corpus, id2word=dictionary) # # `gensim` uses a fast, online implementation based on [3]_. # The HDP model is a new addition to `gensim`, and still rough around its academic edges -- use with care. # # Adding new :abbr:`VSM (Vector Space Model)` transformations (such as different weighting schemes) is rather trivial; # see the :ref:`apiref` or directly the `Python code <https://github.com/piskvorky/gensim/blob/develop/gensim/models/tfidfmodel.py>`_ # for more info and examples. # # It is worth repeating that these are all unique, **incremental** implementations, # which do not require the whole training corpus to be present in main memory all at once. # With memory taken care of, I am now improving :ref:`distributed`, # to improve CPU efficiency, too. # If you feel you could contribute by testing, providing use-cases or code, see the `Gensim Developer guide <https://github.com/RaRe-Technologies/gensim/wiki/Developer-page>`__. # # What Next? # ---------- # # Continue on to the next tutorial on :ref:`sphx_glr_auto_examples_core_run_similarity_queries.py`. # # References # ---------- # # .. [1] Bradford. 2008. An empirical study of required dimensionality for large-scale latent semantic indexing applications. # # .. [2] Hoffman, Blei, Bach. 2010. Online learning for Latent Dirichlet Allocation. # # .. [3] Wang, Paisley, Blei. 2011. Online variational inference for the hierarchical Dirichlet process. # # .. [4] Halko, Martinsson, Tropp. 2009. Finding structure with randomness. # # .. [5] Řehůřek. 2011. Subspace tracking for Latent Semantic Analysis. import matplotlib.pyplot as plt import matplotlib.image as mpimg img = mpimg.imread('run_topics_and_transformations.png') imgplot = plt.imshow(img) _ = plt.axis('off')
14,611
Python
.py
279
50.989247
177
0.718711
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,977
run_similarity_queries.py
piskvorky_gensim/docs/src/gallery/core/run_similarity_queries.py
r""" Similarity Queries ================== Demonstrates querying a corpus for similar documents. """ import logging logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO) ############################################################################### # # Creating the Corpus # ------------------- # # First, we need to create a corpus to work with. # This step is the same as in the previous tutorial; # if you completed it, feel free to skip to the next section. from collections import defaultdict from gensim import corpora documents = [ "Human machine interface for lab abc computer applications", "A survey of user opinion of computer system response time", "The EPS user interface management system", "System and human system engineering testing of EPS", "Relation of user perceived response time to error measurement", "The generation of random binary unordered trees", "The intersection graph of paths in trees", "Graph minors IV Widths of trees and well quasi ordering", "Graph minors A survey", ] # remove common words and tokenize stoplist = set('for a of the and to in'.split()) texts = [ [word for word in document.lower().split() if word not in stoplist] for document in documents ] # remove words that appear only once frequency = defaultdict(int) for text in texts: for token in text: frequency[token] += 1 texts = [ [token for token in text if frequency[token] > 1] for text in texts ] dictionary = corpora.Dictionary(texts) corpus = [dictionary.doc2bow(text) for text in texts] ############################################################################### # Similarity interface # -------------------- # # In the previous tutorials on # :ref:`sphx_glr_auto_examples_core_run_corpora_and_vector_spaces.py` # and # :ref:`sphx_glr_auto_examples_core_run_topics_and_transformations.py`, # we covered what it means to create a corpus in the Vector Space Model and how # to transform it between different vector spaces. A common reason for such a # charade is that we want to determine **similarity between pairs of # documents**, or the **similarity between a specific document and a set of # other documents** (such as a user query vs. indexed documents). # # To show how this can be done in gensim, let us consider the same corpus as in the # previous examples (which really originally comes from Deerwester et al.'s # `"Indexing by Latent Semantic Analysis" <http://www.cs.bham.ac.uk/~pxt/IDA/lsa_ind.pdf>`_ # seminal 1990 article). # To follow Deerwester's example, we first use this tiny corpus to define a 2-dimensional # LSI space: from gensim import models lsi = models.LsiModel(corpus, id2word=dictionary, num_topics=2) ############################################################################### # For the purposes of this tutorial, there are only two things you need to know about LSI. # First, it's just another transformation: it transforms vectors from one space to another. # Second, the benefit of LSI is that enables identifying patterns and relationships between terms (in our case, words in a document) and topics. # Our LSI space is two-dimensional (`num_topics = 2`) so there are two topics, but this is arbitrary. # If you're interested, you can read more about LSI here: `Latent Semantic Indexing <https://en.wikipedia.org/wiki/Latent_semantic_indexing>`_: # # Now suppose a user typed in the query `"Human computer interaction"`. We would # like to sort our nine corpus documents in decreasing order of relevance to this query. # Unlike modern search engines, here we only concentrate on a single aspect of possible # similarities---on apparent semantic relatedness of their texts (words). No hyperlinks, # no random-walk static ranks, just a semantic extension over the boolean keyword match: doc = "Human computer interaction" vec_bow = dictionary.doc2bow(doc.lower().split()) vec_lsi = lsi[vec_bow] # convert the query to LSI space print(vec_lsi) ############################################################################### # In addition, we will be considering `cosine similarity <https://en.wikipedia.org/wiki/Cosine_similarity>`_ # to determine the similarity of two vectors. Cosine similarity is a standard measure # in Vector Space Modeling, but wherever the vectors represent probability distributions, # `different similarity measures <https://en.wikipedia.org/wiki/Kullback%E2%80%93Leibler_divergence#Symmetrised_divergence>`_ # may be more appropriate. # # Initializing query structures # ++++++++++++++++++++++++++++++++ # # To prepare for similarity queries, we need to enter all documents which we want # to compare against subsequent queries. In our case, they are the same nine documents # used for training LSI, converted to 2-D LSA space. But that's only incidental, we # might also be indexing a different corpus altogether. from gensim import similarities index = similarities.MatrixSimilarity(lsi[corpus]) # transform corpus to LSI space and index it ############################################################################### # .. warning:: # The class :class:`similarities.MatrixSimilarity` is only appropriate when the whole # set of vectors fits into memory. For example, a corpus of one million documents # would require 2GB of RAM in a 256-dimensional LSI space, when used with this class. # # Without 2GB of free RAM, you would need to use the :class:`similarities.Similarity` class. # This class operates in fixed memory, by splitting the index across multiple files on disk, called shards. # It uses :class:`similarities.MatrixSimilarity` and :class:`similarities.SparseMatrixSimilarity` internally, # so it is still fast, although slightly more complex. # # Index persistency is handled via the standard :func:`save` and :func:`load` functions: index.save('/tmp/deerwester.index') index = similarities.MatrixSimilarity.load('/tmp/deerwester.index') ############################################################################### # This is true for all similarity indexing classes (:class:`similarities.Similarity`, # :class:`similarities.MatrixSimilarity` and :class:`similarities.SparseMatrixSimilarity`). # Also in the following, `index` can be an object of any of these. When in doubt, # use :class:`similarities.Similarity`, as it is the most scalable version, and it also # supports adding more documents to the index later. # # Performing queries # ++++++++++++++++++ # # To obtain similarities of our query document against the nine indexed documents: sims = index[vec_lsi] # perform a similarity query against the corpus print(list(enumerate(sims))) # print (document_number, document_similarity) 2-tuples ############################################################################### # Cosine measure returns similarities in the range `<-1, 1>` (the greater, the more similar), # so that the first document has a score of 0.99809301 etc. # # With some standard Python magic we sort these similarities into descending # order, and obtain the final answer to the query `"Human computer interaction"`: sims = sorted(enumerate(sims), key=lambda item: -item[1]) for doc_position, doc_score in sims: print(doc_score, documents[doc_position]) ############################################################################### # The thing to note here is that documents no. 2 (``"The EPS user interface management system"``) # and 4 (``"Relation of user perceived response time to error measurement"``) would never be returned by # a standard boolean fulltext search, because they do not share any common words with ``"Human # computer interaction"``. However, after applying LSI, we can observe that both of # them received quite high similarity scores (no. 2 is actually the most similar!), # which corresponds better to our intuition of # them sharing a "computer-human" related topic with the query. In fact, this semantic # generalization is the reason why we apply transformations and do topic modelling # in the first place. # # Where next? # ------------ # # Congratulations, you have finished the tutorials -- now you know how gensim works :-) # To delve into more details, you can browse through the :ref:`apiref`, # see the :ref:`wiki` or perhaps check out :ref:`distributed` in `gensim`. # # Gensim is a fairly mature package that has been used successfully by many individuals and companies, both for rapid prototyping and in production. # That doesn't mean it's perfect though: # # * there are parts that could be implemented more efficiently (in C, for example), or make better use of parallelism (multiple machines cores) # * new algorithms are published all the time; help gensim keep up by `discussing them <https://groups.google.com/g/gensim>`_ and `contributing code <https://github.com/piskvorky/gensim/wiki/Developer-page>`_ # * your **feedback is most welcome** and appreciated (and it's not just the code!): # `bug reports <https://github.com/piskvorky/gensim/issues>`_ or # `user stories and general questions <https://groups.google.com/g/gensim>`_. # # Gensim has no ambition to become an all-encompassing framework, across all NLP (or even Machine Learning) subfields. # Its mission is to help NLP practitioners try out popular topic modelling algorithms # on large datasets easily, and to facilitate prototyping of new algorithms for researchers. import matplotlib.pyplot as plt import matplotlib.image as mpimg img = mpimg.imread('run_similarity_queries.png') imgplot = plt.imshow(img) _ = plt.axis('off')
9,565
Python
.py
170
54.729412
208
0.711268
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,978
run_word2vec.py
piskvorky_gensim/docs/src/gallery/tutorials/run_word2vec.py
r""" Word2Vec Model ============== Introduces Gensim's Word2Vec model and demonstrates its use on the `Lee Evaluation Corpus <https://hekyll.services.adelaide.edu.au/dspace/bitstream/2440/28910/1/hdl_28910.pdf>`_. """ import logging logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO) ############################################################################### # In case you missed the buzz, Word2Vec is a widely used algorithm based on neural # networks, commonly referred to as "deep learning" (though word2vec itself is rather shallow). # Using large amounts of unannotated plain text, word2vec learns relationships # between words automatically. The output are vectors, one vector per word, # with remarkable linear relationships that allow us to do things like: # # * vec("king") - vec("man") + vec("woman") =~ vec("queen") # * vec("Montreal Canadiens") – vec("Montreal") + vec("Toronto") =~ vec("Toronto Maple Leafs"). # # Word2vec is very useful in `automatic text tagging # <https://github.com/RaRe-Technologies/movie-plots-by-genre>`_\ , recommender # systems and machine translation. # # This tutorial: # # #. Introduces ``Word2Vec`` as an improvement over traditional bag-of-words # #. Shows off a demo of ``Word2Vec`` using a pre-trained model # #. Demonstrates training a new model from your own data # #. Demonstrates loading and saving models # #. Introduces several training parameters and demonstrates their effect # #. Discusses memory requirements # #. Visualizes Word2Vec embeddings by applying dimensionality reduction # # Review: Bag-of-words # -------------------- # # .. Note:: Feel free to skip these review sections if you're already familiar with the models. # # You may be familiar with the `bag-of-words model # <https://en.wikipedia.org/wiki/Bag-of-words_model>`_ from the # :ref:`core_concepts_vector` section. # This model transforms each document to a fixed-length vector of integers. # For example, given the sentences: # # - ``John likes to watch movies. Mary likes movies too.`` # - ``John also likes to watch football games. Mary hates football.`` # # The model outputs the vectors: # # - ``[1, 2, 1, 1, 2, 1, 1, 0, 0, 0, 0]`` # - ``[1, 1, 1, 1, 0, 1, 0, 1, 2, 1, 1]`` # # Each vector has 10 elements, where each element counts the number of times a # particular word occurred in the document. # The order of elements is arbitrary. # In the example above, the order of the elements corresponds to the words: # ``["John", "likes", "to", "watch", "movies", "Mary", "too", "also", "football", "games", "hates"]``. # # Bag-of-words models are surprisingly effective, but have several weaknesses. # # First, they lose all information about word order: "John likes Mary" and # "Mary likes John" correspond to identical vectors. There is a solution: bag # of `n-grams <https://en.wikipedia.org/wiki/N-gram>`__ # models consider word phrases of length n to represent documents as # fixed-length vectors to capture local word order but suffer from data # sparsity and high dimensionality. # # Second, the model does not attempt to learn the meaning of the underlying # words, and as a consequence, the distance between vectors doesn't always # reflect the difference in meaning. The ``Word2Vec`` model addresses this # second problem. # # Introducing: the ``Word2Vec`` Model # ----------------------------------- # # ``Word2Vec`` is a more recent model that embeds words in a lower-dimensional # vector space using a shallow neural network. The result is a set of # word-vectors where vectors close together in vector space have similar # meanings based on context, and word-vectors distant to each other have # differing meanings. For example, ``strong`` and ``powerful`` would be close # together and ``strong`` and ``Paris`` would be relatively far. # # The are two versions of this model and :py:class:`~gensim.models.word2vec.Word2Vec` # class implements them both: # # 1. Skip-grams (SG) # 2. Continuous-bag-of-words (CBOW) # # .. Important:: # Don't let the implementation details below scare you. # They're advanced material: if it's too much, then move on to the next section. # # The `Word2Vec Skip-gram <http://mccormickml.com/2016/04/19/word2vec-tutorial-the-skip-gram-model>`__ # model, for example, takes in pairs (word1, word2) generated by moving a # window across text data, and trains a 1-hidden-layer neural network based on # the synthetic task of given an input word, giving us a predicted probability # distribution of nearby words to the input. A virtual `one-hot # <https://en.wikipedia.org/wiki/One-hot>`__ encoding of words # goes through a 'projection layer' to the hidden layer; these projection # weights are later interpreted as the word embeddings. So if the hidden layer # has 300 neurons, this network will give us 300-dimensional word embeddings. # # Continuous-bag-of-words Word2vec is very similar to the skip-gram model. It # is also a 1-hidden-layer neural network. The synthetic training task now uses # the average of multiple input context words, rather than a single word as in # skip-gram, to predict the center word. Again, the projection weights that # turn one-hot words into averageable vectors, of the same width as the hidden # layer, are interpreted as the word embeddings. # ############################################################################### # Word2Vec Demo # ------------- # # To see what ``Word2Vec`` can do, let's download a pre-trained model and play # around with it. We will fetch the Word2Vec model trained on part of the # Google News dataset, covering approximately 3 million words and phrases. Such # a model can take hours to train, but since it's already available, # downloading and loading it with Gensim takes minutes. # # .. Important:: # The model is approximately 2GB, so you'll need a decent network connection # to proceed. Otherwise, skip ahead to the "Training Your Own Model" section # below. # # You may also check out an `online word2vec demo # <https://radimrehurek.com/2014/02/word2vec-tutorial/#app>`_ where you can try # this vector algebra for yourself. That demo runs ``word2vec`` on the # **entire** Google News dataset, of **about 100 billion words**. # import gensim.downloader as api wv = api.load('word2vec-google-news-300') ############################################################################### # A common operation is to retrieve the vocabulary of a model. That is trivial: for index, word in enumerate(wv.index_to_key): if index == 10: break print(f"word #{index}/{len(wv.index_to_key)} is {word}") ############################################################################### # We can easily obtain vectors for terms the model is familiar with: # vec_king = wv['king'] ############################################################################### # Unfortunately, the model is unable to infer vectors for unfamiliar words. # This is one limitation of Word2Vec: if this limitation matters to you, check # out the FastText model. # try: vec_cameroon = wv['cameroon'] except KeyError: print("The word 'cameroon' does not appear in this model") ############################################################################### # Moving on, ``Word2Vec`` supports several word similarity tasks out of the # box. You can see how the similarity intuitively decreases as the words get # less and less similar. # pairs = [ ('car', 'minivan'), # a minivan is a kind of car ('car', 'bicycle'), # still a wheeled vehicle ('car', 'airplane'), # ok, no wheels, but still a vehicle ('car', 'cereal'), # ... and so on ('car', 'communism'), ] for w1, w2 in pairs: print('%r\t%r\t%.2f' % (w1, w2, wv.similarity(w1, w2))) ############################################################################### # Print the 5 most similar words to "car" or "minivan" print(wv.most_similar(positive=['car', 'minivan'], topn=5)) ############################################################################### # Which of the below does not belong in the sequence? print(wv.doesnt_match(['fire', 'water', 'land', 'sea', 'air', 'car'])) ############################################################################### # Training Your Own Model # ----------------------- # # To start, you'll need some data for training the model. For the following # examples, we'll use the `Lee Evaluation Corpus # <https://hekyll.services.adelaide.edu.au/dspace/bitstream/2440/28910/1/hdl_28910.pdf>`_ # (which you `already have # <https://github.com/RaRe-Technologies/gensim/blob/develop/gensim/test/test_data/lee_background.cor>`_ # if you've installed Gensim). # # This corpus is small enough to fit entirely in memory, but we'll implement a # memory-friendly iterator that reads it line-by-line to demonstrate how you # would handle a larger corpus. # from gensim.test.utils import datapath from gensim import utils class MyCorpus: """An iterator that yields sentences (lists of str).""" def __iter__(self): corpus_path = datapath('lee_background.cor') for line in open(corpus_path): # assume there's one document per line, tokens separated by whitespace yield utils.simple_preprocess(line) ############################################################################### # If we wanted to do any custom preprocessing, e.g. decode a non-standard # encoding, lowercase, remove numbers, extract named entities... All of this can # be done inside the ``MyCorpus`` iterator and ``word2vec`` doesn’t need to # know. All that is required is that the input yields one sentence (list of # utf8 words) after another. # # Let's go ahead and train a model on our corpus. Don't worry about the # training parameters much for now, we'll revisit them later. # import gensim.models sentences = MyCorpus() model = gensim.models.Word2Vec(sentences=sentences) ############################################################################### # Once we have our model, we can use it in the same way as in the demo above. # # The main part of the model is ``model.wv``\ , where "wv" stands for "word vectors". # vec_king = model.wv['king'] ############################################################################### # Retrieving the vocabulary works the same way: for index, word in enumerate(wv.index_to_key): if index == 10: break print(f"word #{index}/{len(wv.index_to_key)} is {word}") ############################################################################### # Storing and loading models # -------------------------- # # You'll notice that training non-trivial models can take time. Once you've # trained your model and it works as expected, you can save it to disk. That # way, you don't have to spend time training it all over again later. # # You can store/load models using the standard gensim methods: # import tempfile with tempfile.NamedTemporaryFile(prefix='gensim-model-', delete=False) as tmp: temporary_filepath = tmp.name model.save(temporary_filepath) # # The model is now safely stored in the filepath. # You can copy it to other machines, share it with others, etc. # # To load a saved model: # new_model = gensim.models.Word2Vec.load(temporary_filepath) ############################################################################### # which uses pickle internally, optionally ``mmap``\ ‘ing the model’s internal # large NumPy matrices into virtual memory directly from disk files, for # inter-process memory sharing. # # In addition, you can load models created by the original C tool, both using # its text and binary formats:: # # model = gensim.models.KeyedVectors.load_word2vec_format('/tmp/vectors.txt', binary=False) # # using gzipped/bz2 input works too, no need to unzip # model = gensim.models.KeyedVectors.load_word2vec_format('/tmp/vectors.bin.gz', binary=True) # ############################################################################### # Training Parameters # ------------------- # # ``Word2Vec`` accepts several parameters that affect both training speed and quality. # # min_count # --------- # # ``min_count`` is for pruning the internal dictionary. Words that appear only # once or twice in a billion-word corpus are probably uninteresting typos and # garbage. In addition, there’s not enough data to make any meaningful training # on those words, so it’s best to ignore them: # # default value of min_count=5 model = gensim.models.Word2Vec(sentences, min_count=10) ############################################################################### # # vector_size # ----------- # # ``vector_size`` is the number of dimensions (N) of the N-dimensional space that # gensim Word2Vec maps the words onto. # # Bigger size values require more training data, but can lead to better (more # accurate) models. Reasonable values are in the tens to hundreds. # # The default value of vector_size is 100. model = gensim.models.Word2Vec(sentences, vector_size=200) ############################################################################### # workers # ------- # # ``workers`` , the last of the major parameters (full list `here # <https://radimrehurek.com/gensim/models/word2vec.html#gensim.models.word2vec.Word2Vec>`_) # is for training parallelization, to speed up training: # # default value of workers=3 (tutorial says 1...) model = gensim.models.Word2Vec(sentences, workers=4) ############################################################################### # The ``workers`` parameter only has an effect if you have `Cython # <http://cython.org/>`_ installed. Without Cython, you’ll only be able to use # one core because of the `GIL # <https://wiki.python.org/moin/GlobalInterpreterLock>`_ (and ``word2vec`` # training will be `miserably slow # <https://rare-technologies.com/word2vec-in-python-part-two-optimizing/>`_\ ). # ############################################################################### # Memory # ------ # # At its core, ``word2vec`` model parameters are stored as matrices (NumPy # arrays). Each array is **#vocabulary** (controlled by the ``min_count`` parameter) # times **vector size** (the ``vector_size`` parameter) of floats (single precision aka 4 bytes). # # Three such matrices are held in RAM (work is underway to reduce that number # to two, or even one). So if your input contains 100,000 unique words, and you # asked for layer ``vector_size=200``\ , the model will require approx. # ``100,000*200*4*3 bytes = ~229MB``. # # There’s a little extra memory needed for storing the vocabulary tree (100,000 words would # take a few megabytes), but unless your words are extremely loooong strings, memory # footprint will be dominated by the three matrices above. # ############################################################################### # Evaluating # ---------- # # ``Word2Vec`` training is an unsupervised task, there’s no good way to # objectively evaluate the result. Evaluation depends on your end application. # # Google has released their testing set of about 20,000 syntactic and semantic # test examples, following the “A is to B as C is to D” task. It is provided in # the 'datasets' folder. # # For example a syntactic analogy of comparative type is ``bad:worse;good:?``. # There are total of 9 types of syntactic comparisons in the dataset like # plural nouns and nouns of opposite meaning. # # The semantic questions contain five types of semantic analogies, such as # capital cities (``Paris:France;Tokyo:?``) or family members # (``brother:sister;dad:?``). # ############################################################################### # Gensim supports the same evaluation set, in exactly the same format: # model.wv.evaluate_word_analogies(datapath('questions-words.txt')) ############################################################################### # # This ``evaluate_word_analogies`` method takes an `optional parameter # <https://radimrehurek.com/gensim/models/keyedvectors.html#gensim.models.keyedvectors.KeyedVectors.evaluate_word_analogies>`_ # ``restrict_vocab`` which limits which test examples are to be considered. # ############################################################################### # In the December 2016 release of Gensim we added a better way to evaluate semantic similarity. # # By default it uses an academic dataset WS-353 but one can create a dataset # specific to your business based on it. It contains word pairs together with # human-assigned similarity judgments. It measures the relatedness or # co-occurrence of two words. For example, 'coast' and 'shore' are very similar # as they appear in the same context. At the same time 'clothes' and 'closet' # are less similar because they are related but not interchangeable. # model.wv.evaluate_word_pairs(datapath('wordsim353.tsv')) ############################################################################### # .. Important:: # Good performance on Google's or WS-353 test set doesn’t mean word2vec will # work well in your application, or vice versa. It’s always best to evaluate # directly on your intended task. For an example of how to use word2vec in a # classifier pipeline, see this `tutorial # <https://github.com/RaRe-Technologies/movie-plots-by-genre>`_. # ############################################################################### # Online training / Resuming training # ----------------------------------- # # Advanced users can load a model and continue training it with more sentences # and `new vocabulary words <online_w2v_tutorial.ipynb>`_: # model = gensim.models.Word2Vec.load(temporary_filepath) more_sentences = [ ['Advanced', 'users', 'can', 'load', 'a', 'model', 'and', 'continue', 'training', 'it', 'with', 'more', 'sentences'], ] model.build_vocab(more_sentences, update=True) model.train(more_sentences, total_examples=model.corpus_count, epochs=model.epochs) # cleaning up temporary file import os os.remove(temporary_filepath) ############################################################################### # You may need to tweak the ``total_words`` parameter to ``train()``, # depending on what learning rate decay you want to simulate. # # Note that it’s not possible to resume training with models generated by the C # tool, ``KeyedVectors.load_word2vec_format()``. You can still use them for # querying/similarity, but information vital for training (the vocab tree) is # missing there. # ############################################################################### # Training Loss Computation # ------------------------- # # The parameter ``compute_loss`` can be used to toggle computation of loss # while training the Word2Vec model. The computed loss is stored in the model # attribute ``running_training_loss`` and can be retrieved using the function # ``get_latest_training_loss`` as follows : # # instantiating and training the Word2Vec model model_with_loss = gensim.models.Word2Vec( sentences, min_count=1, compute_loss=True, hs=0, sg=1, seed=42, ) # getting the training loss value training_loss = model_with_loss.get_latest_training_loss() print(training_loss) ############################################################################### # Benchmarks # ---------- # # Let's run some benchmarks to see effect of the training loss computation code # on training time. # # We'll use the following data for the benchmarks: # # #. Lee Background corpus: included in gensim's test data # #. Text8 corpus. To demonstrate the effect of corpus size, we'll look at the # first 1MB, 10MB, 50MB of the corpus, as well as the entire thing. # import io import os import gensim.models.word2vec import gensim.downloader as api import smart_open def head(path, size): with smart_open.open(path) as fin: return io.StringIO(fin.read(size)) def generate_input_data(): lee_path = datapath('lee_background.cor') ls = gensim.models.word2vec.LineSentence(lee_path) ls.name = '25kB' yield ls text8_path = api.load('text8').fn labels = ('1MB', '10MB', '50MB', '100MB') sizes = (1024 ** 2, 10 * 1024 ** 2, 50 * 1024 ** 2, 100 * 1024 ** 2) for l, s in zip(labels, sizes): ls = gensim.models.word2vec.LineSentence(head(text8_path, s)) ls.name = l yield ls input_data = list(generate_input_data()) ############################################################################### # We now compare the training time taken for different combinations of input # data and model training parameters like ``hs`` and ``sg``. # # For each combination, we repeat the test several times to obtain the mean and # standard deviation of the test duration. # # Temporarily reduce logging verbosity logging.root.level = logging.ERROR import time import numpy as np import pandas as pd train_time_values = [] seed_val = 42 sg_values = [0, 1] hs_values = [0, 1] fast = True if fast: input_data_subset = input_data[:3] else: input_data_subset = input_data for data in input_data_subset: for sg_val in sg_values: for hs_val in hs_values: for loss_flag in [True, False]: time_taken_list = [] for i in range(3): start_time = time.time() w2v_model = gensim.models.Word2Vec( data, compute_loss=loss_flag, sg=sg_val, hs=hs_val, seed=seed_val, ) time_taken_list.append(time.time() - start_time) time_taken_list = np.array(time_taken_list) time_mean = np.mean(time_taken_list) time_std = np.std(time_taken_list) model_result = { 'train_data': data.name, 'compute_loss': loss_flag, 'sg': sg_val, 'hs': hs_val, 'train_time_mean': time_mean, 'train_time_std': time_std, } print("Word2vec model #%i: %s" % (len(train_time_values), model_result)) train_time_values.append(model_result) train_times_table = pd.DataFrame(train_time_values) train_times_table = train_times_table.sort_values( by=['train_data', 'sg', 'hs', 'compute_loss'], ascending=[False, False, True, False], ) print(train_times_table) ############################################################################### # # Visualising Word Embeddings # --------------------------- # # The word embeddings made by the model can be visualised by reducing # dimensionality of the words to 2 dimensions using tSNE. # # Visualisations can be used to notice semantic and syntactic trends in the data. # # Example: # # * Semantic: words like cat, dog, cow, etc. have a tendency to lie close by # * Syntactic: words like run, running or cut, cutting lie close together. # # Vector relations like vKing - vMan = vQueen - vWoman can also be noticed. # # .. Important:: # The model used for the visualisation is trained on a small corpus. Thus # some of the relations might not be so clear. # from sklearn.decomposition import IncrementalPCA # inital reduction from sklearn.manifold import TSNE # final reduction import numpy as np # array handling def reduce_dimensions(model): num_dimensions = 2 # final num dimensions (2D, 3D, etc) # extract the words & their vectors, as numpy arrays vectors = np.asarray(model.wv.vectors) labels = np.asarray(model.wv.index_to_key) # fixed-width numpy strings # reduce using t-SNE tsne = TSNE(n_components=num_dimensions, random_state=0) vectors = tsne.fit_transform(vectors) x_vals = [v[0] for v in vectors] y_vals = [v[1] for v in vectors] return x_vals, y_vals, labels x_vals, y_vals, labels = reduce_dimensions(model) def plot_with_plotly(x_vals, y_vals, labels, plot_in_notebook=True): from plotly.offline import init_notebook_mode, iplot, plot import plotly.graph_objs as go trace = go.Scatter(x=x_vals, y=y_vals, mode='text', text=labels) data = [trace] if plot_in_notebook: init_notebook_mode(connected=True) iplot(data, filename='word-embedding-plot') else: plot(data, filename='word-embedding-plot.html') def plot_with_matplotlib(x_vals, y_vals, labels): import matplotlib.pyplot as plt import random random.seed(0) plt.figure(figsize=(12, 12)) plt.scatter(x_vals, y_vals) # # Label randomly subsampled 25 data points # indices = list(range(len(labels))) selected_indices = random.sample(indices, 25) for i in selected_indices: plt.annotate(labels[i], (x_vals[i], y_vals[i])) try: get_ipython() except Exception: plot_function = plot_with_matplotlib else: plot_function = plot_with_plotly plot_function(x_vals, y_vals, labels) ############################################################################### # Conclusion # ---------- # # In this tutorial we learned how to train word2vec models on your custom data # and also how to evaluate it. Hope that you too will find this popular tool # useful in your Machine Learning tasks! # # Links # ----- # # - API docs: :py:mod:`gensim.models.word2vec` # - `Original C toolkit and word2vec papers by Google <https://code.google.com/archive/p/word2vec/>`_. #
25,529
Python
.py
579
41.336788
126
0.642739
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,979
run_lda.py
piskvorky_gensim/docs/src/gallery/tutorials/run_lda.py
r""" LDA Model ========= Introduces Gensim's LDA model and demonstrates its use on the NIPS corpus. """ import logging logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO) ############################################################################### # The purpose of this tutorial is to demonstrate how to train and tune an LDA model. # # In this tutorial we will: # # * Load input data. # * Pre-process that data. # * Transform documents into bag-of-words vectors. # * Train an LDA model. # # This tutorial will **not**: # # * Explain how Latent Dirichlet Allocation works # * Explain how the LDA model performs inference # * Teach you all the parameters and options for Gensim's LDA implementation # # If you are not familiar with the LDA model or how to use it in Gensim, I (Olavur Mortensen) # suggest you read up on that before continuing with this tutorial. Basic # understanding of the LDA model should suffice. Examples: # # * `Introduction to Latent Dirichlet Allocation <http://blog.echen.me/2011/08/22/introduction-to-latent-dirichlet-allocation>`_ # * Gensim tutorial: :ref:`sphx_glr_auto_examples_core_run_topics_and_transformations.py` # * Gensim's LDA model API docs: :py:class:`gensim.models.LdaModel` # # I would also encourage you to consider each step when applying the model to # your data, instead of just blindly applying my solution. The different steps # will depend on your data and possibly your goal with the model. # # Data # ---- # # I have used a corpus of NIPS papers in this tutorial, but if you're following # this tutorial just to learn about LDA I encourage you to consider picking a # corpus on a subject that you are familiar with. Qualitatively evaluating the # output of an LDA model is challenging and can require you to understand the # subject matter of your corpus (depending on your goal with the model). # # NIPS (Neural Information Processing Systems) is a machine learning conference # so the subject matter should be well suited for most of the target audience # of this tutorial. You can download the original data from Sam Roweis' # `website <http://www.cs.nyu.edu/~roweis/data.html>`_. The code below will # also do that for you. # # .. Important:: # The corpus contains 1740 documents, and not particularly long ones. # So keep in mind that this tutorial is not geared towards efficiency, and be # careful before applying the code to a large dataset. # import io import os.path import re import tarfile import smart_open def extract_documents(url='https://cs.nyu.edu/~roweis/data/nips12raw_str602.tgz'): with smart_open.open(url, "rb") as file: with tarfile.open(fileobj=file) as tar: for member in tar.getmembers(): if member.isfile() and re.search(r'nipstxt/nips\d+/\d+\.txt', member.name): member_bytes = tar.extractfile(member).read() yield member_bytes.decode('utf-8', errors='replace') docs = list(extract_documents()) ############################################################################### # So we have a list of 1740 documents, where each document is a Unicode string. # If you're thinking about using your own corpus, then you need to make sure # that it's in the same format (list of Unicode strings) before proceeding # with the rest of this tutorial. # print(len(docs)) print(docs[0][:500]) ############################################################################### # Pre-process and vectorize the documents # --------------------------------------- # # As part of preprocessing, we will: # # * Tokenize (split the documents into tokens). # * Lemmatize the tokens. # * Compute bigrams. # * Compute a bag-of-words representation of the data. # # First we tokenize the text using a regular expression tokenizer from NLTK. We # remove numeric tokens and tokens that are only a single character, as they # don't tend to be useful, and the dataset contains a lot of them. # # .. Important:: # # This tutorial uses the nltk library for preprocessing, although you can # replace it with something else if you want. # # Tokenize the documents. from nltk.tokenize import RegexpTokenizer # Split the documents into tokens. tokenizer = RegexpTokenizer(r'\w+') for idx in range(len(docs)): docs[idx] = docs[idx].lower() # Convert to lowercase. docs[idx] = tokenizer.tokenize(docs[idx]) # Split into words. # Remove numbers, but not words that contain numbers. docs = [[token for token in doc if not token.isnumeric()] for doc in docs] # Remove words that are only one character. docs = [[token for token in doc if len(token) > 1] for doc in docs] ############################################################################### # We use the WordNet lemmatizer from NLTK. A lemmatizer is preferred over a # stemmer in this case because it produces more readable words. Output that is # easy to read is very desirable in topic modelling. # # Download the WordNet data from nltk import download download('wordnet') # Lemmatize the documents. from nltk.stem.wordnet import WordNetLemmatizer lemmatizer = WordNetLemmatizer() docs = [[lemmatizer.lemmatize(token) for token in doc] for doc in docs] ############################################################################### # We find bigrams in the documents. Bigrams are sets of two adjacent words. # Using bigrams we can get phrases like "machine_learning" in our output # (spaces are replaced with underscores); without bigrams we would only get # "machine" and "learning". # # Note that in the code below, we find bigrams and then add them to the # original data, because we would like to keep the words "machine" and # "learning" as well as the bigram "machine_learning". # # .. Important:: # Computing n-grams of large dataset can be very computationally # and memory intensive. # # Compute bigrams. from gensim.models import Phrases # Add bigrams and trigrams to docs (only ones that appear 20 times or more). bigram = Phrases(docs, min_count=20) for idx in range(len(docs)): for token in bigram[docs[idx]]: if '_' in token: # Token is a bigram, add to document. docs[idx].append(token) ############################################################################### # We remove rare words and common words based on their *document frequency*. # Below we remove words that appear in less than 20 documents or in more than # 50% of the documents. Consider trying to remove words only based on their # frequency, or maybe combining that with this approach. # # Remove rare and common tokens. from gensim.corpora import Dictionary # Create a dictionary representation of the documents. dictionary = Dictionary(docs) # Filter out words that occur less than 20 documents, or more than 50% of the documents. dictionary.filter_extremes(no_below=20, no_above=0.5) ############################################################################### # Finally, we transform the documents to a vectorized form. We simply compute # the frequency of each word, including the bigrams. # # Bag-of-words representation of the documents. corpus = [dictionary.doc2bow(doc) for doc in docs] ############################################################################### # Let's see how many tokens and documents we have to train on. # print('Number of unique tokens: %d' % len(dictionary)) print('Number of documents: %d' % len(corpus)) ############################################################################### # Training # -------- # # We are ready to train the LDA model. We will first discuss how to set some of # the training parameters. # # First of all, the elephant in the room: how many topics do I need? There is # really no easy answer for this, it will depend on both your data and your # application. I have used 10 topics here because I wanted to have a few topics # that I could interpret and "label", and because that turned out to give me # reasonably good results. You might not need to interpret all your topics, so # you could use a large number of topics, for example 100. # # ``chunksize`` controls how many documents are processed at a time in the # training algorithm. Increasing chunksize will speed up training, at least as # long as the chunk of documents easily fit into memory. I've set ``chunksize = # 2000``, which is more than the amount of documents, so I process all the # data in one go. Chunksize can however influence the quality of the model, as # discussed in Hoffman and co-authors [2], but the difference was not # substantial in this case. # # ``passes`` controls how often we train the model on the entire corpus. # Another word for passes might be "epochs". ``iterations`` is somewhat # technical, but essentially it controls how often we repeat a particular loop # over each document. It is important to set the number of "passes" and # "iterations" high enough. # # I suggest the following way to choose iterations and passes. First, enable # logging (as described in many Gensim tutorials), and set ``eval_every = 1`` # in ``LdaModel``. When training the model look for a line in the log that # looks something like this:: # # 2016-06-21 15:40:06,753 - gensim.models.ldamodel - DEBUG - 68/1566 documents converged within 400 iterations # # If you set ``passes = 20`` you will see this line 20 times. Make sure that by # the final passes, most of the documents have converged. So you want to choose # both passes and iterations to be high enough for this to happen. # # We set ``alpha = 'auto'`` and ``eta = 'auto'``. Again this is somewhat # technical, but essentially we are automatically learning two parameters in # the model that we usually would have to specify explicitly. # # Train LDA model. from gensim.models import LdaModel # Set training parameters. num_topics = 10 chunksize = 2000 passes = 20 iterations = 400 eval_every = None # Don't evaluate model perplexity, takes too much time. # Make an index to word dictionary. temp = dictionary[0] # This is only to "load" the dictionary. id2word = dictionary.id2token model = LdaModel( corpus=corpus, id2word=id2word, chunksize=chunksize, alpha='auto', eta='auto', iterations=iterations, num_topics=num_topics, passes=passes, eval_every=eval_every ) ############################################################################### # We can compute the topic coherence of each topic. Below we display the # average topic coherence and print the topics in order of topic coherence. # # Note that we use the "Umass" topic coherence measure here (see # :py:func:`gensim.models.ldamodel.LdaModel.top_topics`), Gensim has recently # obtained an implementation of the "AKSW" topic coherence measure (see # accompanying blog post, https://rare-technologies.com/what-is-topic-coherence/). # # If you are familiar with the subject of the articles in this dataset, you can # see that the topics below make a lot of sense. However, they are not without # flaws. We can see that there is substantial overlap between some topics, # others are hard to interpret, and most of them have at least some terms that # seem out of place. If you were able to do better, feel free to share your # methods on the blog at https://rare-technologies.com/lda-training-tips/ ! # top_topics = model.top_topics(corpus) # Average topic coherence is the sum of topic coherences of all topics, divided by the number of topics. avg_topic_coherence = sum([t[1] for t in top_topics]) / num_topics print('Average topic coherence: %.4f.' % avg_topic_coherence) from pprint import pprint pprint(top_topics) ############################################################################### # Things to experiment with # ------------------------- # # * ``no_above`` and ``no_below`` parameters in ``filter_extremes`` method. # * Adding trigrams or even higher order n-grams. # * Consider whether using a hold-out set or cross-validation is the way to go for you. # * Try other datasets. # # Where to go from here # --------------------- # # * Check out a RaRe blog post on the AKSW topic coherence measure (https://rare-technologies.com/what-is-topic-coherence/). # * pyLDAvis (https://pyldavis.readthedocs.io/en/latest/index.html). # * Read some more Gensim tutorials (https://github.com/RaRe-Technologies/gensim/blob/develop/tutorials.md#tutorials). # * If you haven't already, read [1] and [2] (see references). # # References # ---------- # # 1. "Latent Dirichlet Allocation", Blei et al. 2003. # 2. "Online Learning for Latent Dirichlet Allocation", Hoffman et al. 2010. #
12,616
Python
.py
275
44.145455
128
0.695041
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,980
run_scm.py
piskvorky_gensim/docs/src/gallery/tutorials/run_scm.py
r""" Soft Cosine Measure =================== Demonstrates using Gensim's implemenation of the SCM. """ ############################################################################### # Soft Cosine Measure (SCM) is a promising new tool in machine learning that # allows us to submit a query and return the most relevant documents. This # tutorial introduces SCM and shows how you can compute the SCM similarities # between two documents using the ``inner_product`` method. # # Soft Cosine Measure basics # -------------------------- # # Soft Cosine Measure (SCM) is a method that allows us to assess the similarity # between two documents in a meaningful way, even when they have no words in # common. It uses a measure of similarity between words, which can be derived # [2] using [word2vec][] [4] vector embeddings of words. It has been shown to # outperform many of the state-of-the-art methods in the semantic text # similarity task in the context of community question answering [2]. # # # SCM is illustrated below for two very similar sentences. The sentences have # no words in common, but by modeling synonymy, SCM is able to accurately # measure the similarity between the two sentences. The method also uses the # bag-of-words vector representation of the documents (simply put, the word's # frequencies in the documents). The intution behind the method is that we # compute standard cosine similarity assuming that the document vectors are # expressed in a non-orthogonal basis, where the angle between two basis # vectors is derived from the angle between the word2vec embeddings of the # corresponding words. # import matplotlib.pyplot as plt import matplotlib.image as mpimg img = mpimg.imread('scm-hello.png') imgplot = plt.imshow(img) plt.axis('off') plt.show() ############################################################################### # This method was perhaps first introduced in the article “Soft Measure and # Soft Cosine Measure: Measure of Features in Vector Space Model” by Grigori # Sidorov, Alexander Gelbukh, Helena Gomez-Adorno, and David Pinto. # # In this tutorial, we will learn how to use Gensim's SCM functionality, which # consists of the ``inner_product`` method for one-off computation, and the # ``SoftCosineSimilarity`` class for corpus-based similarity queries. # # .. Important:: # If you use Gensim's SCM functionality, please consider citing [1], [2] and [3]. # # Computing the Soft Cosine Measure # --------------------------------- # To use SCM, you need some existing word embeddings. # You could train your own Word2Vec model, but that is beyond the scope of this tutorial # (check out :ref:`sphx_glr_auto_examples_tutorials_run_word2vec.py` if you're interested). # For this tutorial, we'll be using an existing Word2Vec model. # # Let's take some sentences to compute the distance between. # # Initialize logging. import logging logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO) sentence_obama = 'Obama speaks to the media in Illinois' sentence_president = 'The president greets the press in Chicago' sentence_orange = 'Oranges are my favorite fruit' ############################################################################### # The first two sentences sentences have very similar content, and as such the # SCM should be high. By contrast, the third sentence is unrelated to the first # two and the SCM should be low. # # Before we compute the SCM, we want to remove stopwords ("the", "to", etc.), # as these do not contribute a lot to the information in the sentences. # # Import and download stopwords from NLTK. from nltk.corpus import stopwords from nltk import download download('stopwords') # Download stopwords list. stop_words = stopwords.words('english') def preprocess(sentence): return [w for w in sentence.lower().split() if w not in stop_words] sentence_obama = preprocess(sentence_obama) sentence_president = preprocess(sentence_president) sentence_orange = preprocess(sentence_orange) ############################################################################### # Next, we will build a dictionary and a TF-IDF model, and we will convert the # sentences to the bag-of-words format. # from gensim.corpora import Dictionary documents = [sentence_obama, sentence_president, sentence_orange] dictionary = Dictionary(documents) sentence_obama = dictionary.doc2bow(sentence_obama) sentence_president = dictionary.doc2bow(sentence_president) sentence_orange = dictionary.doc2bow(sentence_orange) from gensim.models import TfidfModel documents = [sentence_obama, sentence_president, sentence_orange] tfidf = TfidfModel(documents) sentence_obama = tfidf[sentence_obama] sentence_president = tfidf[sentence_president] sentence_orange = tfidf[sentence_orange] ############################################################################### # Now, as mentioned earlier, we will be using some downloaded pre-trained # embeddings. We load these into a Gensim Word2Vec model class and we build # a term similarity mextrix using the embeddings. # # .. Important:: # The embeddings we have chosen here require a lot of memory. # import gensim.downloader as api model = api.load('word2vec-google-news-300') from gensim.similarities import SparseTermSimilarityMatrix, WordEmbeddingSimilarityIndex termsim_index = WordEmbeddingSimilarityIndex(model) termsim_matrix = SparseTermSimilarityMatrix(termsim_index, dictionary, tfidf) ############################################################################### # So let's compute SCM using the ``inner_product`` method. # similarity = termsim_matrix.inner_product(sentence_obama, sentence_president, normalized=(True, True)) print('similarity = %.4f' % similarity) ############################################################################### # Let's try the same thing with two completely unrelated sentences. # Notice that the similarity is smaller. # similarity = termsim_matrix.inner_product(sentence_obama, sentence_orange, normalized=(True, True)) print('similarity = %.4f' % similarity) ############################################################################### # # References # ---------- # # 1. Grigori Sidorov et al. *Soft Similarity and Soft Cosine Measure: Similarity of Features in Vector Space Model*, 2014. # 2. Delphine Charlet and Geraldine Damnati, SimBow at SemEval-2017 Task 3: Soft-Cosine Semantic Similarity between Questions for Community Question Answering, 2017. # 3. Vít Novotný. *Implementation Notes for the Soft Cosine Measure*, 2018. # 4. Tomáš Mikolov et al. Efficient Estimation of Word Representations in Vector Space, 2013. #
6,658
Python
.py
133
48.744361
165
0.703094
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,981
run_doc2vec_lee.py
piskvorky_gensim/docs/src/gallery/tutorials/run_doc2vec_lee.py
r""" Doc2Vec Model ============= Introduces Gensim's Doc2Vec model and demonstrates its use on the `Lee Corpus <https://hekyll.services.adelaide.edu.au/dspace/bitstream/2440/28910/1/hdl_28910.pdf>`__. """ import logging logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO) ############################################################################### # Doc2Vec is a :ref:`core_concepts_model` that represents each # :ref:`core_concepts_document` as a :ref:`core_concepts_vector`. This # tutorial introduces the model and demonstrates how to train and assess it. # # Here's a list of what we'll be doing: # # 0. Review the relevant models: bag-of-words, Word2Vec, Doc2Vec # 1. Load and preprocess the training and test corpora (see :ref:`core_concepts_corpus`) # 2. Train a Doc2Vec :ref:`core_concepts_model` model using the training corpus # 3. Demonstrate how the trained model can be used to infer a :ref:`core_concepts_vector` # 4. Assess the model # 5. Test the model on the test corpus # # Review: Bag-of-words # -------------------- # # .. Note:: Feel free to skip these review sections if you're already familiar with the models. # # You may be familiar with the `bag-of-words model # <https://en.wikipedia.org/wiki/Bag-of-words_model>`_ from the # :ref:`core_concepts_vector` section. # This model transforms each document to a fixed-length vector of integers. # For example, given the sentences: # # - ``John likes to watch movies. Mary likes movies too.`` # - ``John also likes to watch football games. Mary hates football.`` # # The model outputs the vectors: # # - ``[1, 2, 1, 1, 2, 1, 1, 0, 0, 0, 0]`` # - ``[1, 1, 1, 1, 0, 1, 0, 1, 2, 1, 1]`` # # Each vector has 10 elements, where each element counts the number of times a # particular word occurred in the document. # The order of elements is arbitrary. # In the example above, the order of the elements corresponds to the words: # ``["John", "likes", "to", "watch", "movies", "Mary", "too", "also", "football", "games", "hates"]``. # # Bag-of-words models are surprisingly effective, but have several weaknesses. # # First, they lose all information about word order: "John likes Mary" and # "Mary likes John" correspond to identical vectors. There is a solution: bag # of `n-grams <https://en.wikipedia.org/wiki/N-gram>`__ # models consider word phrases of length n to represent documents as # fixed-length vectors to capture local word order but suffer from data # sparsity and high dimensionality. # # Second, the model does not attempt to learn the meaning of the underlying # words, and as a consequence, the distance between vectors doesn't always # reflect the difference in meaning. The ``Word2Vec`` model addresses this # second problem. # # Review: ``Word2Vec`` Model # -------------------------- # # ``Word2Vec`` is a more recent model that embeds words in a lower-dimensional # vector space using a shallow neural network. The result is a set of # word-vectors where vectors close together in vector space have similar # meanings based on context, and word-vectors distant to each other have # differing meanings. For example, ``strong`` and ``powerful`` would be close # together and ``strong`` and ``Paris`` would be relatively far. # # Gensim's :py:class:`~gensim.models.word2vec.Word2Vec` class implements this model. # # With the ``Word2Vec`` model, we can calculate the vectors for each **word** in a document. # But what if we want to calculate a vector for the **entire document**\ ? # We could average the vectors for each word in the document - while this is quick and crude, it can often be useful. # However, there is a better way... # # Introducing: Paragraph Vector # ----------------------------- # # .. Important:: In Gensim, we refer to the Paragraph Vector model as ``Doc2Vec``. # # Le and Mikolov in 2014 introduced the `Doc2Vec algorithm <https://cs.stanford.edu/~quocle/paragraph_vector.pdf>`__, # which usually outperforms such simple-averaging of ``Word2Vec`` vectors. # # The basic idea is: act as if a document has another floating word-like # vector, which contributes to all training predictions, and is updated like # other word-vectors, but we will call it a doc-vector. Gensim's # :py:class:`~gensim.models.doc2vec.Doc2Vec` class implements this algorithm. # # There are two implementations: # # 1. Paragraph Vector - Distributed Memory (PV-DM) # 2. Paragraph Vector - Distributed Bag of Words (PV-DBOW) # # .. Important:: # Don't let the implementation details below scare you. # They're advanced material: if it's too much, then move on to the next section. # # PV-DM is analogous to Word2Vec CBOW. The doc-vectors are obtained by training # a neural network on the synthetic task of predicting a center word based an # average of both context word-vectors and the full document's doc-vector. # # PV-DBOW is analogous to Word2Vec SG. The doc-vectors are obtained by training # a neural network on the synthetic task of predicting a target word just from # the full document's doc-vector. (It is also common to combine this with # skip-gram testing, using both the doc-vector and nearby word-vectors to # predict a single target word, but only one at a time.) # # Prepare the Training and Test Data # ---------------------------------- # # For this tutorial, we'll be training our model using the `Lee Background # Corpus # <https://hekyll.services.adelaide.edu.au/dspace/bitstream/2440/28910/1/hdl_28910.pdf>`_ # included in gensim. This corpus contains 314 documents selected from the # Australian Broadcasting Corporation’s news mail service, which provides text # e-mails of headline stories and covers a number of broad topics. # # And we'll test our model by eye using the much shorter `Lee Corpus # <https://hekyll.services.adelaide.edu.au/dspace/bitstream/2440/28910/1/hdl_28910.pdf>`_ # which contains 50 documents. # import os import gensim # Set file names for train and test data test_data_dir = os.path.join(gensim.__path__[0], 'test', 'test_data') lee_train_file = os.path.join(test_data_dir, 'lee_background.cor') lee_test_file = os.path.join(test_data_dir, 'lee.cor') ############################################################################### # Define a Function to Read and Preprocess Text # --------------------------------------------- # # Below, we define a function to: # # - open the train/test file (with latin encoding) # - read the file line-by-line # - pre-process each line (tokenize text into individual words, remove punctuation, set to lowercase, etc) # # The file we're reading is a **corpus**. # Each line of the file is a **document**. # # .. Important:: # To train the model, we'll need to associate a tag/number with each document # of the training corpus. In our case, the tag is simply the zero-based line # number. # import smart_open def read_corpus(fname, tokens_only=False): with smart_open.open(fname, encoding="iso-8859-1") as f: for i, line in enumerate(f): tokens = gensim.utils.simple_preprocess(line) if tokens_only: yield tokens else: # For training data, add tags yield gensim.models.doc2vec.TaggedDocument(tokens, [i]) train_corpus = list(read_corpus(lee_train_file)) test_corpus = list(read_corpus(lee_test_file, tokens_only=True)) ############################################################################### # Let's take a look at the training corpus # print(train_corpus[:2]) ############################################################################### # And the testing corpus looks like this: # print(test_corpus[:2]) ############################################################################### # Notice that the testing corpus is just a list of lists and does not contain # any tags. # ############################################################################### # Training the Model # ------------------ # # Now, we'll instantiate a Doc2Vec model with a vector size with 50 dimensions and # iterating over the training corpus 40 times. We set the minimum word count to # 2 in order to discard words with very few occurrences. (Without a variety of # representative examples, retaining such infrequent words can often make a # model worse!) Typical iteration counts in the published `Paragraph Vector paper <https://cs.stanford.edu/~quocle/paragraph_vector.pdf>`__ # results, using 10s-of-thousands to millions of docs, are 10-20. More # iterations take more time and eventually reach a point of diminishing # returns. # # However, this is a very very small dataset (300 documents) with shortish # documents (a few hundred words). Adding training passes can sometimes help # with such small datasets. # model = gensim.models.doc2vec.Doc2Vec(vector_size=50, min_count=2, epochs=40) ############################################################################### # Build a vocabulary model.build_vocab(train_corpus) ############################################################################### # Essentially, the vocabulary is a list (accessible via # ``model.wv.index_to_key``) of all of the unique words extracted from the training corpus. # Additional attributes for each word are available using the ``model.wv.get_vecattr()`` method, # For example, to see how many times ``penalty`` appeared in the training corpus: # print(f"Word 'penalty' appeared {model.wv.get_vecattr('penalty', 'count')} times in the training corpus.") ############################################################################### # Next, train the model on the corpus. # In the usual case, where Gensim installation found a BLAS library for optimized # bulk vector operations, this training on this tiny 300 document, ~60k word corpus # should take just a few seconds. (More realistic datasets of tens-of-millions # of words or more take proportionately longer.) If for some reason a BLAS library # isn't available, training uses a fallback approach that takes 60x-120x longer, # so even this tiny training will take minutes rather than seconds. (And, in that # case, you should also notice a warning in the logging letting you know there's # something worth fixing.) So, be sure your installation uses the BLAS-optimized # Gensim if you value your time. # model.train(train_corpus, total_examples=model.corpus_count, epochs=model.epochs) ############################################################################### # Now, we can use the trained model to infer a vector for any piece of text # by passing a list of words to the ``model.infer_vector`` function. This # vector can then be compared with other vectors via cosine similarity. # vector = model.infer_vector(['only', 'you', 'can', 'prevent', 'forest', 'fires']) print(vector) ############################################################################### # Note that ``infer_vector()`` does *not* take a string, but rather a list of # string tokens, which should have already been tokenized the same way as the # ``words`` property of original training document objects. # # Also note that because the underlying training/inference algorithms are an # iterative approximation problem that makes use of internal randomization, # repeated inferences of the same text will return slightly different vectors. # ############################################################################### # Assessing the Model # ------------------- # # To assess our new model, we'll first infer new vectors for each document of # the training corpus, compare the inferred vectors with the training corpus, # and then returning the rank of the document based on self-similarity. # Basically, we're pretending as if the training corpus is some new unseen data # and then seeing how they compare with the trained model. The expectation is # that we've likely overfit our model (i.e., all of the ranks will be less than # 2) and so we should be able to find similar documents very easily. # Additionally, we'll keep track of the second ranks for a comparison of less # similar documents. # ranks = [] second_ranks = [] for doc_id in range(len(train_corpus)): inferred_vector = model.infer_vector(train_corpus[doc_id].words) sims = model.dv.most_similar([inferred_vector], topn=len(model.dv)) rank = [docid for docid, sim in sims].index(doc_id) ranks.append(rank) second_ranks.append(sims[1]) ############################################################################### # Let's count how each document ranks with respect to the training corpus # # NB. Results vary between runs due to random seeding and very small corpus import collections counter = collections.Counter(ranks) print(counter) ############################################################################### # Basically, greater than 95% of the inferred documents are found to be most # similar to itself and about 5% of the time it is mistakenly most similar to # another document. Checking the inferred-vector against a # training-vector is a sort of 'sanity check' as to whether the model is # behaving in a usefully consistent manner, though not a real 'accuracy' value. # # This is great and not entirely surprising. We can take a look at an example: # print('Document ({}): «{}»\n'.format(doc_id, ' '.join(train_corpus[doc_id].words))) print(u'SIMILAR/DISSIMILAR DOCS PER MODEL %s:\n' % model) for label, index in [('MOST', 0), ('SECOND-MOST', 1), ('MEDIAN', len(sims)//2), ('LEAST', len(sims) - 1)]: print(u'%s %s: «%s»\n' % (label, sims[index], ' '.join(train_corpus[sims[index][0]].words))) ############################################################################### # Notice above that the most similar document (usually the same text) is has a # similarity score approaching 1.0. However, the similarity score for the # second-ranked documents should be significantly lower (assuming the documents # are in fact different) and the reasoning becomes obvious when we examine the # text itself. # # We can run the next cell repeatedly to see a sampling other target-document # comparisons. # # Pick a random document from the corpus and infer a vector from the model import random doc_id = random.randint(0, len(train_corpus) - 1) # Compare and print the second-most-similar document print('Train Document ({}): «{}»\n'.format(doc_id, ' '.join(train_corpus[doc_id].words))) sim_id = second_ranks[doc_id] print('Similar Document {}: «{}»\n'.format(sim_id, ' '.join(train_corpus[sim_id[0]].words))) ############################################################################### # Testing the Model # ----------------- # # Using the same approach above, we'll infer the vector for a randomly chosen # test document, and compare the document to our model by eye. # # Pick a random document from the test corpus and infer a vector from the model doc_id = random.randint(0, len(test_corpus) - 1) inferred_vector = model.infer_vector(test_corpus[doc_id]) sims = model.dv.most_similar([inferred_vector], topn=len(model.dv)) # Compare and print the most/median/least similar documents from the train corpus print('Test Document ({}): «{}»\n'.format(doc_id, ' '.join(test_corpus[doc_id]))) print(u'SIMILAR/DISSIMILAR DOCS PER MODEL %s:\n' % model) for label, index in [('MOST', 0), ('MEDIAN', len(sims)//2), ('LEAST', len(sims) - 1)]: print(u'%s %s: «%s»\n' % (label, sims[index], ' '.join(train_corpus[sims[index][0]].words))) ############################################################################### # Conclusion # ---------- # # Let's review what we've seen in this tutorial: # # 0. Review the relevant models: bag-of-words, Word2Vec, Doc2Vec # 1. Load and preprocess the training and test corpora (see :ref:`core_concepts_corpus`) # 2. Train a Doc2Vec :ref:`core_concepts_model` model using the training corpus # 3. Demonstrate how the trained model can be used to infer a :ref:`core_concepts_vector` # 4. Assess the model # 5. Test the model on the test corpus # # That's it! Doc2Vec is a great way to explore relationships between documents. # # Additional Resources # -------------------- # # If you'd like to know more about the subject matter of this tutorial, check out the links below. # # * `Word2Vec Paper <https://papers.nips.cc/paper/5021-distributed-representations-of-words-and-phrases-and-their-compositionality.pdf>`_ # * `Doc2Vec Paper <https://cs.stanford.edu/~quocle/paragraph_vector.pdf>`_ # * `Dr. Michael D. Lee's Website <http://faculty.sites.uci.edu/mdlee>`_ # * `Lee Corpus <http://faculty.sites.uci.edu/mdlee/similarity-data/>`__ # * `IMDB Doc2Vec Tutorial <doc2vec-IMDB.ipynb>`_ #
16,619
Python
.py
330
48.836364
139
0.674689
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,982
run_fasttext.py
piskvorky_gensim/docs/src/gallery/tutorials/run_fasttext.py
r""" FastText Model ============== Introduces Gensim's fastText model and demonstrates its use on the Lee Corpus. """ import logging logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO) ############################################################################### # Here, we'll learn to work with fastText library for training word-embedding # models, saving & loading them and performing similarity operations & vector # lookups analogous to Word2Vec. ############################################################################### # # When to use fastText? # --------------------- # # The main principle behind `fastText <https://github.com/facebookresearch/fastText>`_ is that the # morphological structure of a word carries important information about the meaning of the word. # Such structure is not taken into account by traditional word embeddings like Word2Vec, which # train a unique word embedding for every individual word. # This is especially significant for morphologically rich languages (German, Turkish) in which a # single word can have a large number of morphological forms, each of which might occur rarely, # thus making it hard to train good word embeddings. # # # fastText attempts to solve this by treating each word as the aggregation of its subwords. # For the sake of simplicity and language-independence, subwords are taken to be the character ngrams # of the word. The vector for a word is simply taken to be the sum of all vectors of its component char-ngrams. # # # According to a detailed comparison of Word2Vec and fastText in # `this notebook <https://github.com/RaRe-Technologies/gensim/blob/develop/docs/notebooks/Word2Vec_FastText_Comparison.ipynb>`__, # fastText does significantly better on syntactic tasks as compared to the original Word2Vec, # especially when the size of the training corpus is small. Word2Vec slightly outperforms fastText # on semantic tasks though. The differences grow smaller as the size of the training corpus increases. # # # fastText can obtain vectors even for out-of-vocabulary (OOV) words, by summing up vectors for its # component char-ngrams, provided at least one of the char-ngrams was present in the training data. # ############################################################################### # # Training models # --------------- # ############################################################################### # # For the following examples, we'll use the Lee Corpus (which you already have if you've installed Gensim) for training our model. # # # from pprint import pprint as print from gensim.models.fasttext import FastText from gensim.test.utils import datapath # Set file names for train and test data corpus_file = datapath('lee_background.cor') model = FastText(vector_size=100) # build the vocabulary model.build_vocab(corpus_file=corpus_file) # train the model model.train( corpus_file=corpus_file, epochs=model.epochs, total_examples=model.corpus_count, total_words=model.corpus_total_words, ) print(model) ############################################################################### # # Training hyperparameters # ^^^^^^^^^^^^^^^^^^^^^^^^ # ############################################################################### # # Hyperparameters for training the model follow the same pattern as Word2Vec. FastText supports the following parameters from the original word2vec: # # - model: Training architecture. Allowed values: `cbow`, `skipgram` (Default `cbow`) # - vector_size: Dimensionality of vector embeddings to be learnt (Default 100) # - alpha: Initial learning rate (Default 0.025) # - window: Context window size (Default 5) # - min_count: Ignore words with number of occurrences below this (Default 5) # - loss: Training objective. Allowed values: `ns`, `hs`, `softmax` (Default `ns`) # - sample: Threshold for downsampling higher-frequency words (Default 0.001) # - negative: Number of negative words to sample, for `ns` (Default 5) # - epochs: Number of epochs (Default 5) # - sorted_vocab: Sort vocab by descending frequency (Default 1) # - threads: Number of threads to use (Default 12) # # # In addition, fastText has three additional parameters: # # - min_n: min length of char ngrams (Default 3) # - max_n: max length of char ngrams (Default 6) # - bucket: number of buckets used for hashing ngrams (Default 2000000) # # # Parameters ``min_n`` and ``max_n`` control the lengths of character ngrams that each word is broken down into while training and looking up embeddings. If ``max_n`` is set to 0, or to be lesser than ``min_n``\ , no character ngrams are used, and the model effectively reduces to Word2Vec. # # # # To bound the memory requirements of the model being trained, a hashing function is used that maps ngrams to integers in 1 to K. For hashing these character sequences, the `Fowler-Noll-Vo hashing function <http://www.isthe.com/chongo/tech/comp/fnv>`_ (FNV-1a variant) is employed. # ############################################################################### # # **Note:** You can continue to train your model while using Gensim's native implementation of fastText. # ############################################################################### # # Saving/loading models # --------------------- # ############################################################################### # # Models can be saved and loaded via the ``load`` and ``save`` methods, just like # any other model in Gensim. # # Save a model trained via Gensim's fastText implementation to temp. import tempfile import os with tempfile.NamedTemporaryFile(prefix='saved_model_gensim-', delete=False) as tmp: model.save(tmp.name, separately=[]) # Load back the same model. loaded_model = FastText.load(tmp.name) print(loaded_model) os.unlink(tmp.name) # demonstration complete, don't need the temp file anymore ############################################################################### # # The ``save_word2vec_format`` is also available for fastText models, but will # cause all vectors for ngrams to be lost. # As a result, a model loaded in this way will behave as a regular word2vec model. # ############################################################################### # # Word vector lookup # ------------------ # # # All information necessary for looking up fastText words (incl. OOV words) is # contained in its ``model.wv`` attribute. # # If you don't need to continue training your model, you can export & save this `.wv` # attribute and discard `model`, to save space and RAM. # wv = model.wv print(wv) # # FastText models support vector lookups for out-of-vocabulary words by summing up character ngrams belonging to the word. # print('night' in wv.key_to_index) ############################################################################### # print('nights' in wv.key_to_index) ############################################################################### # print(wv['night']) ############################################################################### # print(wv['nights']) ############################################################################### # # Similarity operations # --------------------- # ############################################################################### # # Similarity operations work the same way as word2vec. **Out-of-vocabulary words can also be used, provided they have at least one character ngram present in the training data.** # print("nights" in wv.key_to_index) ############################################################################### # print("night" in wv.key_to_index) ############################################################################### # print(wv.similarity("night", "nights")) ############################################################################### # # Syntactically similar words generally have high similarity in fastText models, since a large number of the component char-ngrams will be the same. As a result, fastText generally does better at syntactic tasks than Word2Vec. A detailed comparison is provided `here <Word2Vec_FastText_Comparison.ipynb>`_. # ############################################################################### # # Other similarity operations # ^^^^^^^^^^^^^^^^^^^^^^^^^^^ # # The example training corpus is a toy corpus, results are not expected to be good, for proof-of-concept only print(wv.most_similar("nights")) ############################################################################### # print(wv.n_similarity(['sushi', 'shop'], ['japanese', 'restaurant'])) ############################################################################### # print(wv.doesnt_match("breakfast cereal dinner lunch".split())) ############################################################################### # print(wv.most_similar(positive=['baghdad', 'england'], negative=['london'])) ############################################################################### # print(wv.evaluate_word_analogies(datapath('questions-words.txt'))) ############################################################################### # Word Movers distance # ^^^^^^^^^^^^^^^^^^^^ # # You'll need the optional ``POT`` library for this section, ``pip install POT``. # # Let's start with two sentences: sentence_obama = 'Obama speaks to the media in Illinois'.lower().split() sentence_president = 'The president greets the press in Chicago'.lower().split() ############################################################################### # Remove their stopwords. # from gensim.parsing.preprocessing import STOPWORDS sentence_obama = [w for w in sentence_obama if w not in STOPWORDS] sentence_president = [w for w in sentence_president if w not in STOPWORDS] ############################################################################### # Compute the Word Movers Distance between the two sentences. distance = wv.wmdistance(sentence_obama, sentence_president) print(f"Word Movers Distance is {distance} (lower means closer)") ############################################################################### # That's all! You've made it to the end of this tutorial. # import matplotlib.pyplot as plt import matplotlib.image as mpimg img = mpimg.imread('fasttext-logo-color-web.png') imgplot = plt.imshow(img) _ = plt.axis('off')
10,335
Python
.py
222
45.252252
306
0.589083
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,983
run_annoy.py
piskvorky_gensim/docs/src/gallery/tutorials/run_annoy.py
r""" Fast Similarity Queries with Annoy and Word2Vec =============================================== Introduces the Annoy library for similarity queries on top of vectors learned by Word2Vec. """ LOGS = False # Set to True if you want to see progress in logs. if LOGS: import logging logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO) ############################################################################### # The `Annoy "Approximate Nearest Neighbors Oh Yeah" # <https://github.com/spotify/annoy>`_ library enables similarity queries with # a Word2Vec model. The current implementation for finding k nearest neighbors # in a vector space in Gensim has linear complexity via brute force in the # number of indexed documents, although with extremely low constant factors. # The retrieved results are exact, which is an overkill in many applications: # approximate results retrieved in sub-linear time may be enough. Annoy can # find approximate nearest neighbors much faster. # # Outline # ------- # # 1. Download Text8 Corpus # 2. Train the Word2Vec model # 3. Construct AnnoyIndex with model & make a similarity query # 4. Compare to the traditional indexer # 5. Persist indices to disk # 6. Save memory by via memory-mapping indices saved to disk # 7. Evaluate relationship of ``num_trees`` to initialization time and accuracy # 8. Work with Google's word2vec C formats # ############################################################################### # 1. Download Text8 corpus # ------------------------ import gensim.downloader as api text8_path = api.load('text8', return_path=True) print("Using corpus from", text8_path) ############################################################################### # 2. Train the Word2Vec model # --------------------------- # # For more details, see :ref:`sphx_glr_auto_examples_tutorials_run_word2vec.py`. from gensim.models import Word2Vec, KeyedVectors from gensim.models.word2vec import Text8Corpus # Using params from Word2Vec_FastText_Comparison params = { 'alpha': 0.05, 'vector_size': 100, 'window': 5, 'epochs': 5, 'min_count': 5, 'sample': 1e-4, 'sg': 1, 'hs': 0, 'negative': 5, } model = Word2Vec(Text8Corpus(text8_path), **params) wv = model.wv print("Using trained model", wv) ############################################################################### # 3. Construct AnnoyIndex with model & make a similarity query # ------------------------------------------------------------ # # An instance of ``AnnoyIndexer`` needs to be created in order to use Annoy in Gensim. # The ``AnnoyIndexer`` class is located in ``gensim.similarities.annoy``. # # ``AnnoyIndexer()`` takes two parameters: # # * **model**: A ``Word2Vec`` or ``Doc2Vec`` model. # * **num_trees**: A positive integer. ``num_trees`` effects the build # time and the index size. **A larger value will give more accurate results, # but larger indexes**. More information on what trees in Annoy do can be found # `here <https://github.com/spotify/annoy#how-does-it-work>`__. The relationship # between ``num_trees``\ , build time, and accuracy will be investigated later # in the tutorial. # # Now that we are ready to make a query, lets find the top 5 most similar words # to "science" in the Text8 corpus. To make a similarity query we call # ``Word2Vec.most_similar`` like we would traditionally, but with an added # parameter, ``indexer``. # # Apart from Annoy, Gensim also supports the NMSLIB indexer. NMSLIB is a similar library to # Annoy – both support fast, approximate searches for similar vectors. # from gensim.similarities.annoy import AnnoyIndexer # 100 trees are being used in this example annoy_index = AnnoyIndexer(model, 100) # Derive the vector for the word "science" in our model vector = wv["science"] # The instance of AnnoyIndexer we just created is passed approximate_neighbors = wv.most_similar([vector], topn=11, indexer=annoy_index) # Neatly print the approximate_neighbors and their corresponding cosine similarity values print("Approximate Neighbors") for neighbor in approximate_neighbors: print(neighbor) normal_neighbors = wv.most_similar([vector], topn=11) print("\nExact Neighbors") for neighbor in normal_neighbors: print(neighbor) ############################################################################### # The closer the cosine similarity of a vector is to 1, the more similar that # word is to our query, which was the vector for "science". There are some # differences in the ranking of similar words and the set of words included # within the 10 most similar words. ############################################################################### # 4. Compare to the traditional indexer # ------------------------------------- # Set up the model and vector that we are using in the comparison annoy_index = AnnoyIndexer(model, 100) # Dry run to make sure both indexes are fully in RAM normed_vectors = wv.get_normed_vectors() vector = normed_vectors[0] wv.most_similar([vector], topn=5, indexer=annoy_index) wv.most_similar([vector], topn=5) import time import numpy as np def avg_query_time(annoy_index=None, queries=1000): """Average query time of a most_similar method over 1000 random queries.""" total_time = 0 for _ in range(queries): rand_vec = normed_vectors[np.random.randint(0, len(wv))] start_time = time.process_time() wv.most_similar([rand_vec], topn=5, indexer=annoy_index) total_time += time.process_time() - start_time return total_time / queries queries = 1000 gensim_time = avg_query_time(queries=queries) annoy_time = avg_query_time(annoy_index, queries=queries) print("Gensim (s/query):\t{0:.5f}".format(gensim_time)) print("Annoy (s/query):\t{0:.5f}".format(annoy_time)) speed_improvement = gensim_time / annoy_time print ("\nAnnoy is {0:.2f} times faster on average on this particular run".format(speed_improvement)) ############################################################################### # **This speedup factor is by no means constant** and will vary greatly from # run to run and is particular to this data set, BLAS setup, Annoy # parameters(as tree size increases speedup factor decreases), machine # specifications, among other factors. # # .. Important:: # Initialization time for the annoy indexer was not included in the times. # The optimal knn algorithm for you to use will depend on how many queries # you need to make and the size of the corpus. If you are making very few # similarity queries, the time taken to initialize the annoy indexer will be # longer than the time it would take the brute force method to retrieve # results. If you are making many queries however, the time it takes to # initialize the annoy indexer will be made up for by the incredibly fast # retrieval times for queries once the indexer has been initialized # # .. Important:: # Gensim's 'most_similar' method is using numpy operations in the form of # dot product whereas Annoy's method isnt. If 'numpy' on your machine is # using one of the BLAS libraries like ATLAS or LAPACK, it'll run on # multiple cores (only if your machine has multicore support ). Check `SciPy # Cookbook # <http://scipy-cookbook.readthedocs.io/items/ParallelProgramming.html>`_ # for more details. # ############################################################################### # 5. Persisting indices to disk # ----------------------------- # # You can save and load your indexes from/to disk to prevent having to # construct them each time. This will create two files on disk, *fname* and # *fname.d*. Both files are needed to correctly restore all attributes. Before # loading an index, you will have to create an empty AnnoyIndexer object. # fname = '/tmp/mymodel.index' # Persist index to disk annoy_index.save(fname) # Load index back import os.path if os.path.exists(fname): annoy_index2 = AnnoyIndexer() annoy_index2.load(fname) annoy_index2.model = model # Results should be identical to above vector = wv["science"] approximate_neighbors2 = wv.most_similar([vector], topn=11, indexer=annoy_index2) for neighbor in approximate_neighbors2: print(neighbor) assert approximate_neighbors == approximate_neighbors2 ############################################################################### # Be sure to use the same model at load that was used originally, otherwise you # will get unexpected behaviors. # ############################################################################### # 6. Save memory via memory-mapping indexes saved to disk # ------------------------------------------------------- # # Annoy library has a useful feature that indices can be memory-mapped from # disk. It saves memory when the same index is used by several processes. # # Below are two snippets of code. First one has a separate index for each # process. The second snipped shares the index between two processes via # memory-mapping. The second example uses less total RAM as it is shared. # # Remove verbosity from code below (if logging active) if LOGS: logging.disable(logging.CRITICAL) from multiprocessing import Process import os import psutil ############################################################################### # Bad example: two processes load the Word2vec model from disk and create their # own Annoy index from that model. # model.save('/tmp/mymodel.pkl') def f(process_id): print('Process Id: {}'.format(os.getpid())) process = psutil.Process(os.getpid()) new_model = Word2Vec.load('/tmp/mymodel.pkl') vector = new_model.wv["science"] annoy_index = AnnoyIndexer(new_model, 100) approximate_neighbors = new_model.wv.most_similar([vector], topn=5, indexer=annoy_index) print('\nMemory used by process {}: {}\n---'.format(os.getpid(), process.memory_info())) # Create and run two parallel processes to share the same index file. p1 = Process(target=f, args=('1',)) p1.start() p1.join() p2 = Process(target=f, args=('2',)) p2.start() p2.join() ############################################################################### # Good example: two processes load both the Word2vec model and index from disk # and memory-map the index. # model.save('/tmp/mymodel.pkl') def f(process_id): print('Process Id: {}'.format(os.getpid())) process = psutil.Process(os.getpid()) new_model = Word2Vec.load('/tmp/mymodel.pkl') vector = new_model.wv["science"] annoy_index = AnnoyIndexer() annoy_index.load('/tmp/mymodel.index') annoy_index.model = new_model approximate_neighbors = new_model.wv.most_similar([vector], topn=5, indexer=annoy_index) print('\nMemory used by process {}: {}\n---'.format(os.getpid(), process.memory_info())) # Creating and running two parallel process to share the same index file. p1 = Process(target=f, args=('1',)) p1.start() p1.join() p2 = Process(target=f, args=('2',)) p2.start() p2.join() ############################################################################### # 7. Evaluate relationship of ``num_trees`` to initialization time and accuracy # ----------------------------------------------------------------------------- # import matplotlib.pyplot as plt ############################################################################### # Build dataset of initialization times and accuracy measures: # exact_results = [element[0] for element in wv.most_similar([normed_vectors[0]], topn=100)] x_values = [] y_values_init = [] y_values_accuracy = [] for x in range(1, 300, 10): x_values.append(x) start_time = time.time() annoy_index = AnnoyIndexer(model, x) y_values_init.append(time.time() - start_time) approximate_results = wv.most_similar([normed_vectors[0]], topn=100, indexer=annoy_index) top_words = [result[0] for result in approximate_results] y_values_accuracy.append(len(set(top_words).intersection(exact_results))) ############################################################################### # Plot results: plt.figure(1, figsize=(12, 6)) plt.subplot(121) plt.plot(x_values, y_values_init) plt.title("num_trees vs initalization time") plt.ylabel("Initialization time (s)") plt.xlabel("num_trees") plt.subplot(122) plt.plot(x_values, y_values_accuracy) plt.title("num_trees vs accuracy") plt.ylabel("%% accuracy") plt.xlabel("num_trees") plt.tight_layout() plt.show() ############################################################################### # From the above, we can see that the initialization time of the annoy indexer # increases in a linear fashion with num_trees. Initialization time will vary # from corpus to corpus. In the graph above we used the (tiny) Lee corpus. # # Furthermore, in this dataset, the accuracy seems logarithmically related to # the number of trees. We see an improvement in accuracy with more trees, but # the relationship is nonlinear. # ############################################################################### # 7. Work with Google's word2vec files # ------------------------------------ # # Our model can be exported to a word2vec C format. There is a binary and a # plain text word2vec format. Both can be read with a variety of other # software, or imported back into Gensim as a ``KeyedVectors`` object. # # To export our model as text wv.save_word2vec_format('/tmp/vectors.txt', binary=False) from smart_open import open # View the first 3 lines of the exported file # The first line has the total number of entries and the vector dimension count. # The next lines have a key (a string) followed by its vector. with open('/tmp/vectors.txt', encoding='utf8') as myfile: for i in range(3): print(myfile.readline().strip()) # To import a word2vec text model wv = KeyedVectors.load_word2vec_format('/tmp/vectors.txt', binary=False) # To export a model as binary wv.save_word2vec_format('/tmp/vectors.bin', binary=True) # To import a word2vec binary model wv = KeyedVectors.load_word2vec_format('/tmp/vectors.bin', binary=True) # To create and save Annoy Index from a loaded `KeyedVectors` object (with 100 trees) annoy_index = AnnoyIndexer(wv, 100) annoy_index.save('/tmp/mymodel.index') # Load and test the saved word vectors and saved Annoy index wv = KeyedVectors.load_word2vec_format('/tmp/vectors.bin', binary=True) annoy_index = AnnoyIndexer() annoy_index.load('/tmp/mymodel.index') annoy_index.model = wv vector = wv["cat"] approximate_neighbors = wv.most_similar([vector], topn=11, indexer=annoy_index) # Neatly print the approximate_neighbors and their corresponding cosine similarity values print("Approximate Neighbors") for neighbor in approximate_neighbors: print(neighbor) normal_neighbors = wv.most_similar([vector], topn=11) print("\nExact Neighbors") for neighbor in normal_neighbors: print(neighbor) ############################################################################### # Recap # ----- # # In this notebook we used the Annoy module to build an indexed approximation # of our word embeddings. To do so, we did the following steps: # # 1. Download Text8 Corpus # 2. Train Word2Vec Model # 3. Construct AnnoyIndex with model & make a similarity query # 4. Persist indices to disk # 5. Save memory by via memory-mapping indices saved to disk # 6. Evaluate relationship of ``num_trees`` to initialization time and accuracy # 7. Work with Google's word2vec C formats #
15,445
Python
.py
344
43.06686
101
0.661128
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,984
run_wmd.py
piskvorky_gensim/docs/src/gallery/tutorials/run_wmd.py
r""" Word Mover's Distance ===================== Demonstrates using Gensim's implemenation of the WMD. """ ############################################################################### # Word Mover's Distance (WMD) is a promising new tool in machine learning that # allows us to submit a query and return the most relevant documents. This # tutorial introduces WMD and shows how you can compute the WMD distance # between two documents using ``wmdistance``. # # WMD Basics # ---------- # # WMD enables us to assess the "distance" between two documents in a meaningful # way even when they have no words in common. It uses `word2vec # <https://rare-technologies.com/word2vec-tutorial/>`_ [4] vector embeddings of # words. It been shown to outperform many of the state-of-the-art methods in # k-nearest neighbors classification [3]. # # WMD is illustrated below for two very similar sentences (illustration taken # from `Vlad Niculae's blog # <http://vene.ro/blog/word-movers-distance-in-python.html>`_). The sentences # have no words in common, but by matching the relevant words, WMD is able to # accurately measure the (dis)similarity between the two sentences. The method # also uses the bag-of-words representation of the documents (simply put, the # word's frequencies in the documents), noted as $d$ in the figure below. The # intuition behind the method is that we find the minimum "traveling distance" # between documents, in other words the most efficient way to "move" the # distribution of document 1 to the distribution of document 2. # # Image from https://vene.ro/images/wmd-obama.png import matplotlib.pyplot as plt import matplotlib.image as mpimg img = mpimg.imread('wmd-obama.png') imgplot = plt.imshow(img) plt.axis('off') plt.show() ############################################################################### # This method was introduced in the article "From Word Embeddings To Document # Distances" by Matt Kusner et al. (\ `link to PDF # <http://jmlr.org/proceedings/papers/v37/kusnerb15.pdf>`_\ ). It is inspired # by the "Earth Mover's Distance", and employs a solver of the "transportation # problem". # # In this tutorial, we will learn how to use Gensim's WMD functionality, which # consists of the ``wmdistance`` method for distance computation, and the # ``WmdSimilarity`` class for corpus based similarity queries. # # .. Important:: # If you use Gensim's WMD functionality, please consider citing [1] and [2]. # # Computing the Word Mover's Distance # ----------------------------------- # # To use WMD, you need some existing word embeddings. # You could train your own Word2Vec model, but that is beyond the scope of this tutorial # (check out :ref:`sphx_glr_auto_examples_tutorials_run_word2vec.py` if you're interested). # For this tutorial, we'll be using an existing Word2Vec model. # # Let's take some sentences to compute the distance between. # # Initialize logging. import logging logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO) sentence_obama = 'Obama speaks to the media in Illinois' sentence_president = 'The president greets the press in Chicago' ############################################################################### # These sentences have very similar content, and as such the WMD should be low. # Before we compute the WMD, we want to remove stopwords ("the", "to", etc.), # as these do not contribute a lot to the information in the sentences. # # Import and download stopwords from NLTK. from nltk.corpus import stopwords from nltk import download download('stopwords') # Download stopwords list. stop_words = stopwords.words('english') def preprocess(sentence): return [w for w in sentence.lower().split() if w not in stop_words] sentence_obama = preprocess(sentence_obama) sentence_president = preprocess(sentence_president) ############################################################################### # Now, as mentioned earlier, we will be using some downloaded pre-trained # embeddings. We load these into a Gensim Word2Vec model class. # # .. Important:: # The embeddings we have chosen here require a lot of memory. # import gensim.downloader as api model = api.load('word2vec-google-news-300') ############################################################################### # So let's compute WMD using the ``wmdistance`` method. # distance = model.wmdistance(sentence_obama, sentence_president) print('distance = %.4f' % distance) ############################################################################### # Let's try the same thing with two completely unrelated sentences. Notice that the distance is larger. # sentence_orange = preprocess('Oranges are my favorite fruit') distance = model.wmdistance(sentence_obama, sentence_orange) print('distance = %.4f' % distance) ############################################################################### # References # ---------- # # 1. Rémi Flamary et al. *POT: Python Optimal Transport*, 2021. # 2. Matt Kusner et al. *From Embeddings To Document Distances*, 2015. # 3. Tomáš Mikolov et al. *Efficient Estimation of Word Representations in Vector Space*, 2013. #
5,165
Python
.py
109
46.183486
103
0.674871
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,985
run_ensemblelda.py
piskvorky_gensim/docs/src/gallery/tutorials/run_ensemblelda.py
r""" Ensemble LDA ============ Introduces Gensim's EnsembleLda model """ import logging logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO) ############################################################################### # This tutorial will explain how to use the EnsembleLDA model class. # # EnsembleLda is a method of finding and generating stable topics from the results of multiple topic models, # it can be used to remove topics from your results that are noise and are not reproducible. # ############################################################################### # Corpus # ------ # We will use the gensim downloader api to get a small corpus for training our ensemble. # # The preprocessing is similar to :ref:`sphx_glr_auto_examples_tutorials_run_word2vec.py`, # so it won't be explained again in detail. # import gensim.downloader as api from gensim.corpora import Dictionary from nltk.stem.wordnet import WordNetLemmatizer from nltk import download download('wordnet') lemmatizer = WordNetLemmatizer() docs = api.load('text8') dictionary = Dictionary() for doc in docs: dictionary.add_documents([[lemmatizer.lemmatize(token) for token in doc]]) dictionary.filter_extremes(no_below=20, no_above=0.5) corpus = [dictionary.doc2bow(doc) for doc in docs] ############################################################################### # Training # -------- # # Training the ensemble works very similar to training a single model, # # You can use any model that is based on LdaModel, such as LdaMulticore, to train the Ensemble. # In experiments, LdaMulticore showed better results. # from gensim.models import LdaModel topic_model_class = LdaModel ############################################################################### # Any arbitrary number of models can be used, but it should be a multiple of your workers so that the # load can be distributed properly. In this example, 4 processes will train 8 models each. # ensemble_workers = 4 num_models = 8 ############################################################################### # After training all the models, some distance computations are required which can take quite some # time as well. You can speed this up by using workers for that as well. # distance_workers = 4 ############################################################################### # All other parameters that are unknown to EnsembleLda are forwarded to each LDA Model, such as # num_topics = 20 passes = 2 ############################################################################### # Now start the training # # Since 20 topics were trained on each of the 8 models, we expect there to be 160 different topics. # The number of stable topics which are clustered from all those topics is smaller. # from gensim.models import EnsembleLda ensemble = EnsembleLda( corpus=corpus, id2word=dictionary, num_topics=num_topics, passes=passes, num_models=num_models, topic_model_class=LdaModel, ensemble_workers=ensemble_workers, distance_workers=distance_workers ) print(len(ensemble.ttda)) print(len(ensemble.get_topics())) ############################################################################### # Tuning # ------ # # Different from LdaModel, the number of resulting topics varies greatly depending on the clustering parameters. # # You can provide those in the ``recluster()`` function or the ``EnsembleLda`` constructor. # # Play around until you get as many topics as you desire, which however may reduce their quality. # If your ensemble doesn't have enough topics to begin with, you should make sure to make it large enough. # # Having an epsilon that is smaller than the smallest distance doesn't make sense. # Make sure to chose one that is within the range of values in ``asymmetric_distance_matrix``. # import numpy as np shape = ensemble.asymmetric_distance_matrix.shape without_diagonal = ensemble.asymmetric_distance_matrix[~np.eye(shape[0], dtype=bool)].reshape(shape[0], -1) print(without_diagonal.min(), without_diagonal.mean(), without_diagonal.max()) ensemble.recluster(eps=0.09, min_samples=2, min_cores=2) print(len(ensemble.get_topics())) ############################################################################### # Increasing the Size # ------------------- # # If you have some models lying around that were trained on a corpus based on the same dictionary, # they are compatible and you can add them to the ensemble. # # By setting num_models of the EnsembleLda constructor to 0 you can also create an ensemble that is # entirely made out of your existing topic models with the following method. # # Afterwards the number and quality of stable topics might be different depending on your added topics and parameters. # from gensim.models import LdaMulticore model1 = LdaMulticore( corpus=corpus, id2word=dictionary, num_topics=9, passes=4, ) model2 = LdaModel( corpus=corpus, id2word=dictionary, num_topics=11, passes=2, ) # add_model supports various types of input, check out its docstring ensemble.add_model(model1) ensemble.add_model(model2) ensemble.recluster() print(len(ensemble.ttda)) print(len(ensemble.get_topics()))
5,237
Python
.py
130
38.523077
118
0.66647
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,986
__init__.py
piskvorky_gensim/docs/src/sphinx_rtd_theme/__init__.py
""" Sphinx Read the Docs theme. From https://github.com/ryan-roemer/sphinx-bootstrap-theme. """ from os import path import sphinx __version__ = '0.5.0' __version_full__ = __version__ def get_html_theme_path(): """Return list of HTML theme paths.""" cur_dir = path.abspath(path.dirname(path.dirname(__file__))) return cur_dir # See http://www.sphinx-doc.org/en/stable/theming.html#distribute-your-theme-as-a-python-package def setup(app): if sphinx.version_info >= (1, 6, 0): # Register the theme that can be referenced without adding a theme path app.add_html_theme('sphinx_rtd_theme', path.abspath(path.dirname(__file__))) if sphinx.version_info >= (1, 8, 0): # Add Sphinx message catalog for newer versions of Sphinx # See http://www.sphinx-doc.org/en/master/extdev/appapi.html#sphinx.application.Sphinx.add_message_catalog rtd_locale_path = path.join(path.abspath(path.dirname(__file__)), 'locale') app.add_message_catalog('sphinx', rtd_locale_path) return {'parallel_read_safe': True, 'parallel_write_safe': True}
1,101
Python
.py
23
43.26087
114
0.695408
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,987
run_doc.py
piskvorky_gensim/docs/src/auto_examples/howtos/run_doc.py
r""" How to Author Gensim Documentation ================================== How to author documentation for Gensim. """ ############################################################################### # Background # ---------- # # Gensim is a large project with a wide range of functionality. # Unfortunately, not all of this functionality is documented **well**, and some of it is not documented at all. # Without good documentation, users are unable to unlock Gensim's full potential. # Therefore, authoring new documentation and improving existing documentation is of great value to the Gensim project. # # If you implement new functionality in Gensim, please include **helpful** documentation. # By "helpful", we mean that your documentation answers questions that Gensim users may have. # For example: # # - What is this new functionality? # - **Why** is it important? # - **How** is it relevant to Gensim? # - **What** can I do with it? What are some real-world applications? # - **How** do I use it to achieve those things? # - ... and others (if you can think of them, please add them here) # # Before you author documentation, I suggest reading # `"What nobody tells you about documentation" <https://www.divio.com/blog/documentation/>`__ # or watching its `accompanying video <https://www.youtube.com/watch?v=t4vKPhjcMZg>`__ # (or even both, if you're really keen). # # The summary of the above presentation is: there are four distinct kinds of documentation, and you really need them all: # # 1. Tutorials # 2. Howto guides # 3. Explanations # 4. References # # Each kind has its own intended audience, purpose, and writing style. # When you make a PR with new functionality, please consider authoring each kind of documentation. # At the very least, you will (indirectly) author reference documentation through module, class and function docstrings. # # Mechanisms # ---------- # # We keep our documentation as individual Python scripts. # These scripts live under :file:`docs/src/gallery` in one of several subdirectories: # # - core: core tutorials. We try to keep this part small, avoid putting stuff here. # - tutorials: tutorials. # - howtos: howto guides. # # Pick a subdirectory and save your script under it. # Prefix the name of the script with ``run_``: this way, the the documentation builder will run your script each time it builds our docs. # # The contents of the script are straightforward. # At the very top, you need a docstring describing what your script does. r""" Title ===== Brief description. """ ############################################################################### # The title is what will show up in the gallery. # Keep this short and descriptive. # # The description will appear as a tooltip in the gallery. # When people mouse-over the title, they will see the description. # Keep this short too. # ############################################################################### # The rest of the script is Python, formatted in a special way so that Sphinx Gallery can parse it. # The most important properties of this format are: # # - Sphinx Gallery will split your script into blocks # - A block can be Python source or RST-formatted comments # - To indicate that a block is in RST, prefix it with a line of 80 hash (#) characters. # - All other blocks will be interpreted as Python source # # Read `this link <https://sphinx-gallery.github.io/syntax.html>`__ for more details. # If you need further examples, check out other ``gensim`` tutorials and guides. # All of them (including this one!) have a download link at the bottom of the page, which exposes the Python source they were generated from. # # You should be able to run your script directly from the command line:: # # python myscript.py # # and it should run to completion without error, occasionally printing stuff to standard output. # ############################################################################### # Authoring Workflow # ------------------ # # There are several ways to author documentation. # The simplest and most straightforward is to author your ``script.py`` from scratch. # You'll have the following cycle: # # 1. Make changes # 2. Run ``python script.py`` # 3. Check standard output, standard error and return code # 4. If everything works well, stop. # 5. Otherwise, go back to step 1). # # If the above is not your cup of tea, you can also author your documentation as a Jupyter notebook. # This is a more flexible approach that enables you to tweak parts of the documentation and re-run them as necessary. # # Once you're happy with the notebook, convert it to a script.py. # There's a helpful `script <https://github.com/RaRe-Technologies/gensim/blob/develop/docs/src/tools/to_python.py>`__ that will do it for you. # To use it:: # # python to_python.py < notebook.ipynb > script.py # # You may have to touch up the resulting ``script.py``. # More specifically: # # - Update the title # - Update the description # - Fix any issues that the markdown-to-RST converter could not deal with # # Once your script.py works, put it in a suitable subdirectory. # Please don't include your original Jupyter notebook in the repository - we won't be using it. ############################################################################### # Correctness # ----------- # # Incorrect documentation can be worse than no documentation at all. # Take the following steps to ensure correctness: # # - Run Python's doctest module on your docstrings # - Run your documentation scripts from scratch, removing any temporary files/results # # Using data in your documentation # -------------------------------- # # Some parts of the documentation require real-world data to be useful. # For example, you may need more than just a toy example to demonstrate the benefits of one model over another. # This subsection provides some tips for including data in your documentation. # # If possible, use data available via Gensim's # `downloader API <https://radimrehurek.com/gensim/gensim_numfocus/auto_examples/010_tutorials/run_downloader_api.html>`__. # This will reduce the risk of your documentation becoming obsolete because required data is no longer available. # # Use the smallest possible dataset: avoid making people unnecessarily load large datasets and models. # This will make your documentation faster to run and easier for people to use (they can modify your examples and re-run them quickly). # # Finalizing your contribution # ---------------------------- # # First, get Sphinx Gallery to build your documentation:: # # make --directory docs/src html # # This can take a while if your documentation uses a large dataset, or if you've changed many other tutorials or guides. # Once this completes successfully, open ``docs/auto_examples/index.html`` in your browser. # You should see your new tutorial or guide in the gallery. # # Once your documentation script is working correctly, it's time to add it to the git repository:: # # git add docs/src/gallery/tutorials/run_example.py # git add docs/src/auto_examples/tutorials/run_example.{py,py.md5,rst,ipynb} # git add docs/src/auto_examples/howtos/sg_execution_times.rst # git commit -m "enter a helpful commit message here" # git push origin branchname # # .. Note:: # You may be wondering what all those other files are. # Sphinx Gallery puts a copy of your Python script in ``auto_examples/tutorials``. # The .md5 contains MD5 hash of the script to enable easy detection of modifications. # Gallery also generates .rst (RST for Sphinx) and .ipynb (Jupyter notebook) files from the script. # Finally, ``sg_execution_times.rst`` contains the time taken to run each example. # # Finally, open a PR at `github <https://github.com/RaRe-Technologies/gensim>`__. # One of our friendly maintainers will review it, make suggestions, and eventually merge it. # Your documentation will then appear in the `gallery <https://radimrehurek.com/gensim/auto_examples/index.html>`__, # alongside the rest of the examples. Thanks a lot!
8,054
Python
.py
174
45.241379
142
0.713542
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,988
run_doc2vec_imdb.py
piskvorky_gensim/docs/src/auto_examples/howtos/run_doc2vec_imdb.py
r""" How to reproduce the doc2vec 'Paragraph Vector' paper ===================================================== Shows how to reproduce results of the "Distributed Representation of Sentences and Documents" paper by Le and Mikolov using Gensim. """ import logging logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO) ############################################################################### # Introduction # ------------ # # This guide shows you how to reproduce the results of the paper by `Le and # Mikolov 2014 <https://arxiv.org/pdf/1405.4053.pdf>`_ using Gensim. While the # entire paper is worth reading (it's only 9 pages), we will be focusing on # Section 3.2: "Beyond One Sentence - Sentiment Analysis with the IMDB # dataset". # # This guide follows the following steps: # # #. Load the IMDB dataset # #. Train a variety of Doc2Vec models on the dataset # #. Evaluate the performance of each model using a logistic regression # #. Examine some of the results directly: # # When examining results, we will look for answers for the following questions: # # #. Are inferred vectors close to the precalculated ones? # #. Do close documents seem more related than distant ones? # #. Do the word vectors show useful similarities? # #. Are the word vectors from this dataset any good at analogies? # # Load corpus # ----------- # # Our data for the tutorial will be the `IMDB archive # <http://ai.stanford.edu/~amaas/data/sentiment/>`_. # If you're not familiar with this dataset, then here's a brief intro: it # contains several thousand movie reviews. # # Each review is a single line of text containing multiple sentences, for example: # # ``` # One of the best movie-dramas I have ever seen. We do a lot of acting in the # church and this is one that can be used as a resource that highlights all the # good things that actors can do in their work. I highly recommend this one, # especially for those who have an interest in acting, as a "must see." # ``` # # These reviews will be the **documents** that we will work with in this tutorial. # There are 100 thousand reviews in total. # # #. 25k reviews for training (12.5k positive, 12.5k negative) # #. 25k reviews for testing (12.5k positive, 12.5k negative) # #. 50k unlabeled reviews # # Out of 100k reviews, 50k have a label: either positive (the reviewer liked # the movie) or negative. # The remaining 50k are unlabeled. # # Our first task will be to prepare the dataset. # # More specifically, we will: # # #. Download the tar.gz file (it's only 84MB, so this shouldn't take too long) # #. Unpack it and extract each movie review # #. Split the reviews into training and test datasets # # First, let's define a convenient datatype for holding data for a single document: # # * words: The text of the document, as a ``list`` of words. # * tags: Used to keep the index of the document in the entire dataset. # * split: one of ``train``\ , ``test`` or ``extra``. Determines how the document will be used (for training, testing, etc). # * sentiment: either 1 (positive), 0 (negative) or None (unlabeled document). # # This data type is helpful for later evaluation and reporting. # In particular, the ``index`` member will help us quickly and easily retrieve the vectors for a document from a model. # import collections SentimentDocument = collections.namedtuple('SentimentDocument', 'words tags split sentiment') ############################################################################### # We can now proceed with loading the corpus. import io import re import tarfile import os.path import smart_open import gensim.utils def download_dataset(url='http://ai.stanford.edu/~amaas/data/sentiment/aclImdb_v1.tar.gz'): fname = url.split('/')[-1] if os.path.isfile(fname): return fname # Download the file to local storage first. try: kwargs = { 'compression': smart_open.compression.NO_COMPRESSION } fin = smart_open.open(url, "rb", **kwargs) except (AttributeError, TypeError): kwargs = { 'ignore_ext': True } fin = smart_open.open(url, "rb", **kwargs) if fin: with smart_open.open(fname, 'wb', **kwargs) as fout: while True: buf = fin.read(io.DEFAULT_BUFFER_SIZE) if not buf: break fout.write(buf) fin.close() return fname def create_sentiment_document(name, text, index): _, split, sentiment_str, _ = name.split('/') sentiment = {'pos': 1.0, 'neg': 0.0, 'unsup': None}[sentiment_str] if sentiment is None: split = 'extra' tokens = gensim.utils.to_unicode(text).split() return SentimentDocument(tokens, [index], split, sentiment) def extract_documents(): fname = download_dataset() index = 0 with tarfile.open(fname, mode='r:gz') as tar: for member in tar.getmembers(): if re.match(r'aclImdb/(train|test)/(pos|neg|unsup)/\d+_\d+.txt$', member.name): member_bytes = tar.extractfile(member).read() member_text = member_bytes.decode('utf-8', errors='replace') assert member_text.count('\n') == 0 yield create_sentiment_document(member.name, member_text, index) index += 1 alldocs = list(extract_documents()) ############################################################################### # Here's what a single document looks like. print(alldocs[27]) ############################################################################### # Extract our documents and split into training/test sets. train_docs = [doc for doc in alldocs if doc.split == 'train'] test_docs = [doc for doc in alldocs if doc.split == 'test'] print(f'{len(alldocs)} docs: {len(train_docs)} train-sentiment, {len(test_docs)} test-sentiment') ############################################################################### # Set-up Doc2Vec Training & Evaluation Models # ------------------------------------------- # # We approximate the experiment of Le & Mikolov `"Distributed Representations # of Sentences and Documents" # <http://cs.stanford.edu/~quocle/paragraph_vector.pdf>`_ with guidance from # Mikolov's `example go.sh # <https://groups.google.com/g/word2vec-toolkit/c/Q49FIrNOQRo/m/J6KG8mUj45sJ>`_:: # # ./word2vec -train ../alldata-id.txt -output vectors.txt -cbow 0 -size 100 -window 10 -negative 5 -hs 0 -sample 1e-4 -threads 40 -binary 0 -iter 20 -min-count 1 -sentence-vectors 1 # # We vary the following parameter choices: # # * 100-dimensional vectors, as the 400-d vectors of the paper take a lot of # memory and, in our tests of this task, don't seem to offer much benefit # * Similarly, frequent word subsampling seems to decrease sentiment-prediction # accuracy, so it's left out # * ``cbow=0`` means skip-gram which is equivalent to the paper's 'PV-DBOW' # mode, matched in gensim with ``dm=0`` # * Added to that DBOW model are two DM models, one which averages context # vectors (\ ``dm_mean``\ ) and one which concatenates them (\ ``dm_concat``\ , # resulting in a much larger, slower, more data-hungry model) # * A ``min_count=2`` saves quite a bit of model memory, discarding only words # that appear in a single doc (and are thus no more expressive than the # unique-to-each doc vectors themselves) # import multiprocessing from collections import OrderedDict import gensim.models.doc2vec assert gensim.models.doc2vec.FAST_VERSION > -1, "This will be painfully slow otherwise" from gensim.models.doc2vec import Doc2Vec common_kwargs = dict( vector_size=100, epochs=20, min_count=2, sample=0, workers=multiprocessing.cpu_count(), negative=5, hs=0, ) simple_models = [ # PV-DBOW plain Doc2Vec(dm=0, **common_kwargs), # PV-DM w/ default averaging; a higher starting alpha may improve CBOW/PV-DM modes Doc2Vec(dm=1, window=10, alpha=0.05, comment='alpha=0.05', **common_kwargs), # PV-DM w/ concatenation - big, slow, experimental mode # window=5 (both sides) approximates paper's apparent 10-word total window size Doc2Vec(dm=1, dm_concat=1, window=5, **common_kwargs), ] for model in simple_models: model.build_vocab(alldocs) print(f"{model} vocabulary scanned & state initialized") models_by_name = OrderedDict((str(model), model) for model in simple_models) ############################################################################### # Le and Mikolov note that combining a paragraph vector from Distributed Bag of # Words (DBOW) and Distributed Memory (DM) improves performance. We will # follow, pairing the models together for evaluation. Here, we concatenate the # paragraph vectors obtained from each model with the help of a thin wrapper # class included in a gensim test module. (Note that this a separate, later # concatenation of output-vectors than the kind of input-window-concatenation # enabled by the ``dm_concat=1`` mode above.) # from gensim.test.test_doc2vec import ConcatenatedDoc2Vec models_by_name['dbow+dmm'] = ConcatenatedDoc2Vec([simple_models[0], simple_models[1]]) models_by_name['dbow+dmc'] = ConcatenatedDoc2Vec([simple_models[0], simple_models[2]]) ############################################################################### # Predictive Evaluation Methods # ----------------------------- # # Given a document, our ``Doc2Vec`` models output a vector representation of the document. # How useful is a particular model? # In case of sentiment analysis, we want the output vector to reflect the sentiment in the input document. # So, in vector space, positive documents should be distant from negative documents. # # We train a logistic regression from the training set: # # - regressors (inputs): document vectors from the Doc2Vec model # - target (outpus): sentiment labels # # So, this logistic regression will be able to predict sentiment given a document vector. # # Next, we test our logistic regression on the test set, and measure the rate of errors (incorrect predictions). # If the document vectors from the Doc2Vec model reflect the actual sentiment well, the error rate will be low. # # Therefore, the error rate of the logistic regression is indication of *how well* the given Doc2Vec model represents documents as vectors. # We can then compare different ``Doc2Vec`` models by looking at their error rates. # import numpy as np import statsmodels.api as sm from random import sample def logistic_predictor_from_data(train_targets, train_regressors): """Fit a statsmodel logistic predictor on supplied data""" logit = sm.Logit(train_targets, train_regressors) predictor = logit.fit(disp=0) # print(predictor.summary()) return predictor def error_rate_for_model(test_model, train_set, test_set): """Report error rate on test_doc sentiments, using supplied model and train_docs""" train_targets = [doc.sentiment for doc in train_set] train_regressors = [test_model.dv[doc.tags[0]] for doc in train_set] train_regressors = sm.add_constant(train_regressors) predictor = logistic_predictor_from_data(train_targets, train_regressors) test_regressors = [test_model.dv[doc.tags[0]] for doc in test_set] test_regressors = sm.add_constant(test_regressors) # Predict & evaluate test_predictions = predictor.predict(test_regressors) corrects = sum(np.rint(test_predictions) == [doc.sentiment for doc in test_set]) errors = len(test_predictions) - corrects error_rate = float(errors) / len(test_predictions) return (error_rate, errors, len(test_predictions), predictor) ############################################################################### # Bulk Training & Per-Model Evaluation # ------------------------------------ # # Note that doc-vector training is occurring on *all* documents of the dataset, # which includes all TRAIN/TEST/DEV docs. Because the native document-order # has similar-sentiment documents in large clumps – which is suboptimal for # training – we work with once-shuffled copy of the training set. # # We evaluate each model's sentiment predictive power based on error rate, and # the evaluation is done for each model. # # (On a 4-core 2.6Ghz Intel Core i7, these 20 passes training and evaluating 3 # main models takes about an hour.) # from collections import defaultdict error_rates = defaultdict(lambda: 1.0) # To selectively print only best errors achieved ############################################################################### # from random import shuffle shuffled_alldocs = alldocs[:] shuffle(shuffled_alldocs) for model in simple_models: print(f"Training {model}") model.train(shuffled_alldocs, total_examples=len(shuffled_alldocs), epochs=model.epochs) print(f"\nEvaluating {model}") err_rate, err_count, test_count, predictor = error_rate_for_model(model, train_docs, test_docs) error_rates[str(model)] = err_rate print("\n%f %s\n" % (err_rate, model)) for model in [models_by_name['dbow+dmm'], models_by_name['dbow+dmc']]: print(f"\nEvaluating {model}") err_rate, err_count, test_count, predictor = error_rate_for_model(model, train_docs, test_docs) error_rates[str(model)] = err_rate print(f"\n{err_rate} {model}\n") ############################################################################### # Achieved Sentiment-Prediction Accuracy # -------------------------------------- # Compare error rates achieved, best-to-worst print("Err_rate Model") for rate, name in sorted((rate, name) for name, rate in error_rates.items()): print(f"{rate} {name}") ############################################################################### # In our testing, contrary to the results of the paper, on this problem, # PV-DBOW alone performs as good as anything else. Concatenating vectors from # different models only sometimes offers a tiny predictive improvement – and # stays generally close to the best-performing solo model included. # # The best results achieved here are just around 10% error rate, still a long # way from the paper's reported 7.42% error rate. # # (Other trials not shown, with larger vectors and other changes, also don't # come close to the paper's reported value. Others around the net have reported # a similar inability to reproduce the paper's best numbers. The PV-DM/C mode # improves a bit with many more training epochs – but doesn't reach parity with # PV-DBOW.) # ############################################################################### # Examining Results # ----------------- # # Let's look for answers to the following questions: # # #. Are inferred vectors close to the precalculated ones? # #. Do close documents seem more related than distant ones? # #. Do the word vectors show useful similarities? # #. Are the word vectors from this dataset any good at analogies? # ############################################################################### # Are inferred vectors close to the precalculated ones? # ----------------------------------------------------- doc_id = np.random.randint(len(simple_models[0].dv)) # Pick random doc; re-run cell for more examples print(f'for doc {doc_id}...') for model in simple_models: inferred_docvec = model.infer_vector(alldocs[doc_id].words) print(f'{model}:\n {model.dv.most_similar([inferred_docvec], topn=3)}') ############################################################################### # (Yes, here the stored vector from 20 epochs of training is usually one of the # closest to a freshly-inferred vector for the same words. Defaults for # inference may benefit from tuning for each dataset or model parameters.) # ############################################################################### # Do close documents seem more related than distant ones? # ------------------------------------------------------- import random doc_id = np.random.randint(len(simple_models[0].dv)) # pick random doc, re-run cell for more examples model = random.choice(simple_models) # and a random model sims = model.dv.most_similar(doc_id, topn=len(model.dv)) # get *all* similar documents print(f'TARGET ({doc_id}): «{" ".join(alldocs[doc_id].words)}»\n') print(f'SIMILAR/DISSIMILAR DOCS PER MODEL {model}%s:\n') for label, index in [('MOST', 0), ('MEDIAN', len(sims)//2), ('LEAST', len(sims) - 1)]: s = sims[index] i = sims[index][0] words = ' '.join(alldocs[i].words) print(f'{label} {s}: «{words}»\n') ############################################################################### # Somewhat, in terms of reviewer tone, movie genre, etc... the MOST # cosine-similar docs usually seem more like the TARGET than the MEDIAN or # LEAST... especially if the MOST has a cosine-similarity > 0.5. Re-run the # cell to try another random target document. # ############################################################################### # Do the word vectors show useful similarities? # --------------------------------------------- # import random word_models = simple_models[:] def pick_random_word(model, threshold=10): # pick a random word with a suitable number of occurences while True: word = random.choice(model.wv.index_to_key) if model.wv.get_vecattr(word, "count") > threshold: return word target_word = pick_random_word(word_models[0]) # or uncomment below line, to just pick a word from the relevant domain: # target_word = 'comedy/drama' for model in word_models: print(f'target_word: {repr(target_word)} model: {model} similar words:') for i, (word, sim) in enumerate(model.wv.most_similar(target_word, topn=10), 1): print(f' {i}. {sim:.2f} {repr(word)}') print() ############################################################################### # Do the DBOW words look meaningless? That's because the gensim DBOW model # doesn't train word vectors – they remain at their random initialized values – # unless you ask with the ``dbow_words=1`` initialization parameter. Concurrent # word-training slows DBOW mode significantly, and offers little improvement # (and sometimes a little worsening) of the error rate on this IMDB # sentiment-prediction task, but may be appropriate on other tasks, or if you # also need word-vectors. # # Words from DM models tend to show meaningfully similar words when there are # many examples in the training data (as with 'plot' or 'actor'). (All DM modes # inherently involve word-vector training concurrent with doc-vector training.) # ############################################################################### # Are the word vectors from this dataset any good at analogies? # ------------------------------------------------------------- from gensim.test.utils import datapath questions_filename = datapath('questions-words.txt') # Note: this analysis takes many minutes for model in word_models: score, sections = model.wv.evaluate_word_analogies(questions_filename) correct, incorrect = len(sections[-1]['correct']), len(sections[-1]['incorrect']) print(f'{model}: {float(correct*100)/(correct+incorrect):0.2f}%% correct ({correct} of {correct+incorrect}') ############################################################################### # Even though this is a tiny, domain-specific dataset, it shows some meager # capability on the general word analogies – at least for the DM/mean and # DM/concat models which actually train word vectors. (The untrained # random-initialized words of the DBOW model of course fail miserably.) #
19,497
Python
.py
389
47.493573
185
0.656858
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,989
run_compare_lda.py
piskvorky_gensim/docs/src/auto_examples/howtos/run_compare_lda.py
r""" How to Compare LDA Models ========================= Demonstrates how you can visualize and compare trained topic models. """ # sphinx_gallery_thumbnail_number = 2 import logging logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO) ############################################################################### # # First, clean up the 20 Newsgroups dataset. We will use it to fit LDA. # --------------------------------------------------------------------- # from string import punctuation from nltk import RegexpTokenizer from nltk.stem.porter import PorterStemmer from nltk.corpus import stopwords from sklearn.datasets import fetch_20newsgroups newsgroups = fetch_20newsgroups() eng_stopwords = set(stopwords.words('english')) tokenizer = RegexpTokenizer(r'\s+', gaps=True) stemmer = PorterStemmer() translate_tab = {ord(p): u" " for p in punctuation} def text2tokens(raw_text): """Split the raw_text string into a list of stemmed tokens.""" clean_text = raw_text.lower().translate(translate_tab) tokens = [token.strip() for token in tokenizer.tokenize(clean_text)] tokens = [token for token in tokens if token not in eng_stopwords] stemmed_tokens = [stemmer.stem(token) for token in tokens] return [token for token in stemmed_tokens if len(token) > 2] # skip short tokens dataset = [text2tokens(txt) for txt in newsgroups['data']] # convert a documents to list of tokens from gensim.corpora import Dictionary dictionary = Dictionary(documents=dataset, prune_at=None) dictionary.filter_extremes(no_below=5, no_above=0.3, keep_n=None) # use Dictionary to remove un-relevant tokens dictionary.compactify() d2b_dataset = [dictionary.doc2bow(doc) for doc in dataset] # convert list of tokens to bag of word representation ############################################################################### # # Second, fit two LDA models. # --------------------------- # from gensim.models import LdaMulticore num_topics = 15 lda_fst = LdaMulticore( corpus=d2b_dataset, num_topics=num_topics, id2word=dictionary, workers=4, eval_every=None, passes=10, batch=True, ) lda_snd = LdaMulticore( corpus=d2b_dataset, num_topics=num_topics, id2word=dictionary, workers=4, eval_every=None, passes=20, batch=True, ) ############################################################################### # # Time to visualize, yay! # ----------------------- # # We use two slightly different visualization methods depending on how you're running this tutorial. # If you're running via a Jupyter notebook, then you'll get a nice interactive Plotly heatmap. # If you're viewing the static version of the page, you'll get a similar matplotlib heatmap, but it won't be interactive. # def plot_difference_plotly(mdiff, title="", annotation=None): """Plot the difference between models. Uses plotly as the backend.""" import plotly.graph_objs as go import plotly.offline as py annotation_html = None if annotation is not None: annotation_html = [ [ "+++ {}<br>--- {}".format(", ".join(int_tokens), ", ".join(diff_tokens)) for (int_tokens, diff_tokens) in row ] for row in annotation ] data = go.Heatmap(z=mdiff, colorscale='RdBu', text=annotation_html) layout = go.Layout(width=950, height=950, title=title, xaxis=dict(title="topic"), yaxis=dict(title="topic")) py.iplot(dict(data=[data], layout=layout)) def plot_difference_matplotlib(mdiff, title="", annotation=None): """Helper function to plot difference between models. Uses matplotlib as the backend.""" import matplotlib.pyplot as plt fig, ax = plt.subplots(figsize=(18, 14)) data = ax.imshow(mdiff, cmap='RdBu_r', origin='lower') plt.title(title) plt.colorbar(data) try: get_ipython() import plotly.offline as py except Exception: # # Fall back to matplotlib if we're not in a notebook, or if plotly is # unavailable for whatever reason. # plot_difference = plot_difference_matplotlib else: py.init_notebook_mode() plot_difference = plot_difference_plotly ############################################################################### # # Gensim can help you visualise the differences between topics. For this purpose, you can use the ``diff()`` method of LdaModel. # # ``diff()`` returns a matrix with distances **mdiff** and a matrix with annotations **annotation**. Read the docstring for more detailed info. # # In each **mdiff[i][j]** cell you'll find a distance between **topic_i** from the first model and **topic_j** from the second model. # # In each **annotation[i][j]** cell you'll find **[tokens from intersection, tokens from difference** between **topic_i** from first model and **topic_j** from the second model. # print(LdaMulticore.diff.__doc__) ############################################################################### # # Case 1: How topics within ONE model correlate with each other. # -------------------------------------------------------------- # ############################################################################### # # Short description: # # * x-axis - topic; # # * y-axis - topic; # # .. role:: raw-html-m2r(raw) # :format: html # # * :raw-html-m2r:`<span style="color:red">almost red cell</span>` - strongly decorrelated topics; # # .. role:: raw-html-m2r(raw) # :format: html # # * :raw-html-m2r:`<span style="color:blue">almost blue cell</span>` - strongly correlated topics. # # In an ideal world, we would like to see different topics decorrelated between themselves. # In this case, our matrix would look like this: # import numpy as np mdiff = np.ones((num_topics, num_topics)) np.fill_diagonal(mdiff, 0.) plot_difference(mdiff, title="Topic difference (one model) in ideal world") ############################################################################### # # Unfortunately, in real life, not everything is so good, and the matrix looks different. # ############################################################################### # # Short description (interactive annotations only): # # * ``+++ make, world, well`` - words from the intersection of topics = present in both topics; # # * ``--- money, day, still`` - words from the symmetric difference of topics = present in one topic but not the other. # mdiff, annotation = lda_fst.diff(lda_fst, distance='jaccard', num_words=50) plot_difference(mdiff, title="Topic difference (one model) [jaccard distance]", annotation=annotation) ############################################################################### # # If you compare a model with itself, you want to see as many red elements as # possible (except on the diagonal). With this picture, you can look at the # "not very red elements" and understand which topics in the model are very # similar and why (you can read annotation if you move your pointer to cell). # # Jaccard is a stable and robust distance function, but sometimes not sensitive # enough. Let's try to use the Hellinger distance instead. # mdiff, annotation = lda_fst.diff(lda_fst, distance='hellinger', num_words=50) plot_difference(mdiff, title="Topic difference (one model)[hellinger distance]", annotation=annotation) ############################################################################### # # You see that everything has become worse, but remember that everything depends on the task. # # Choose a distance function that matches your upstream task better: what kind of "similarity" is # relevant to you. From my (Ivan's) experience, Jaccard is fine. # ############################################################################### # # Case 2: How topics from DIFFERENT models correlate with each other. # ------------------------------------------------------------------- # ############################################################################### # # Sometimes, we want to look at the patterns between two different models and compare them. # # You can do this by constructing a matrix with the difference. # mdiff, annotation = lda_fst.diff(lda_snd, distance='jaccard', num_words=50) plot_difference(mdiff, title="Topic difference (two models)[jaccard distance]", annotation=annotation) ############################################################################### # # Looking at this matrix, you can find similar and different topics between the two models. # The plot also includes relevant tokens describing the topics' intersection and difference. #
8,569
Python
.py
189
42.89418
177
0.622494
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,990
run_downloader_api.py
piskvorky_gensim/docs/src/auto_examples/howtos/run_downloader_api.py
r""" How to download pre-trained models and corpora ============================================== Demonstrates simple and quick access to common corpora and pretrained models. """ import logging logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO) ############################################################################### # One of Gensim's features is simple and easy access to common data. # The `gensim-data <https://github.com/RaRe-Technologies/gensim-data>`_ project stores a # variety of corpora and pretrained models. # Gensim has a :py:mod:`gensim.downloader` module for programmatically accessing this data. # This module leverages a local cache (in user's home folder, by default) that # ensures data is downloaded at most once. # # This tutorial: # # * Downloads the text8 corpus, unless it is already on your local machine # * Trains a Word2Vec model from the corpus (see :ref:`sphx_glr_auto_examples_tutorials_run_doc2vec_lee.py` for a detailed tutorial) # * Leverages the model to calculate word similarity # * Demonstrates using the API to load other models and corpora # # Let's start by importing the api module. # import gensim.downloader as api ############################################################################### # # Now, let's download the text8 corpus and load it as a Python object # that supports streamed access. # corpus = api.load('text8') ############################################################################### # In this case, our corpus is an iterable. # If you look under the covers, it has the following definition: import inspect print(inspect.getsource(corpus.__class__)) ############################################################################### # For more details, look inside the file that defines the Dataset class for your particular resource. # print(inspect.getfile(corpus.__class__)) ############################################################################### # # With the corpus has been downloaded and loaded, let's use it to train a word2vec model. # from gensim.models.word2vec import Word2Vec model = Word2Vec(corpus) ############################################################################### # # Now that we have our word2vec model, let's find words that are similar to 'tree'. # print(model.wv.most_similar('tree')) ############################################################################### # # You can use the API to download several different corpora and pretrained models. # Here's how to list all resources available in gensim-data: # import json info = api.info() print(json.dumps(info, indent=4)) ############################################################################### # There are two types of data resources: corpora and models. print(info.keys()) ############################################################################### # Let's have a look at the available corpora: for corpus_name, corpus_data in sorted(info['corpora'].items()): print( '%s (%d records): %s' % ( corpus_name, corpus_data.get('num_records', -1), corpus_data['description'][:40] + '...', ) ) ############################################################################### # ... and the same for models: for model_name, model_data in sorted(info['models'].items()): print( '%s (%d records): %s' % ( model_name, model_data.get('num_records', -1), model_data['description'][:40] + '...', ) ) ############################################################################### # # If you want to get detailed information about a model/corpus, use: # fake_news_info = api.info('fake-news') print(json.dumps(fake_news_info, indent=4)) ############################################################################### # # Sometimes, you do not want to load a model into memory. Instead, you can request # just the filesystem path to the model. For that, use: # print(api.load('glove-wiki-gigaword-50', return_path=True)) ############################################################################### # # If you want to load the model to memory, then: # model = api.load("glove-wiki-gigaword-50") model.most_similar("glass") ############################################################################### # # For corpora, the corpus is never loaded to memory, all corpora are iterables wrapped in # a special class ``Dataset``, with an ``__iter__`` method. #
4,515
Python
.py
105
40.580952
132
0.534125
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,991
run_compare_lda.ipynb
piskvorky_gensim/docs/src/auto_examples/howtos/run_compare_lda.ipynb
{ "cells": [ { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "%matplotlib inline" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "\nHow to Compare LDA Models\n=========================\n\nDemonstrates how you can visualize and compare trained topic models.\n\n\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "# sphinx_gallery_thumbnail_number = 2\nimport logging\nlogging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "First, clean up the 20 Newsgroups dataset. We will use it to fit LDA.\n---------------------------------------------------------------------\n\n\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "from string import punctuation\nfrom nltk import RegexpTokenizer\nfrom nltk.stem.porter import PorterStemmer\nfrom nltk.corpus import stopwords\nfrom sklearn.datasets import fetch_20newsgroups\n\n\nnewsgroups = fetch_20newsgroups()\neng_stopwords = set(stopwords.words('english'))\n\ntokenizer = RegexpTokenizer(r'\\s+', gaps=True)\nstemmer = PorterStemmer()\ntranslate_tab = {ord(p): u\" \" for p in punctuation}\n\ndef text2tokens(raw_text):\n \"\"\"Split the raw_text string into a list of stemmed tokens.\"\"\"\n clean_text = raw_text.lower().translate(translate_tab)\n tokens = [token.strip() for token in tokenizer.tokenize(clean_text)]\n tokens = [token for token in tokens if token not in eng_stopwords]\n stemmed_tokens = [stemmer.stem(token) for token in tokens]\n return [token for token in stemmed_tokens if len(token) > 2] # skip short tokens\n\ndataset = [text2tokens(txt) for txt in newsgroups['data']] # convert a documents to list of tokens\n\nfrom gensim.corpora import Dictionary\ndictionary = Dictionary(documents=dataset, prune_at=None)\ndictionary.filter_extremes(no_below=5, no_above=0.3, keep_n=None) # use Dictionary to remove un-relevant tokens\ndictionary.compactify()\n\nd2b_dataset = [dictionary.doc2bow(doc) for doc in dataset] # convert list of tokens to bag of word representation" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Second, fit two LDA models.\n---------------------------\n\n\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "from gensim.models import LdaMulticore\nnum_topics = 15\n\nlda_fst = LdaMulticore(\n corpus=d2b_dataset, num_topics=num_topics, id2word=dictionary,\n workers=4, eval_every=None, passes=10, batch=True,\n)\n\nlda_snd = LdaMulticore(\n corpus=d2b_dataset, num_topics=num_topics, id2word=dictionary,\n workers=4, eval_every=None, passes=20, batch=True,\n)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Time to visualize, yay!\n-----------------------\n\nWe use two slightly different visualization methods depending on how you're running this tutorial.\nIf you're running via a Jupyter notebook, then you'll get a nice interactive Plotly heatmap.\nIf you're viewing the static version of the page, you'll get a similar matplotlib heatmap, but it won't be interactive.\n\n\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "def plot_difference_plotly(mdiff, title=\"\", annotation=None):\n \"\"\"Plot the difference between models.\n\n Uses plotly as the backend.\"\"\"\n import plotly.graph_objs as go\n import plotly.offline as py\n\n annotation_html = None\n if annotation is not None:\n annotation_html = [\n [\n \"+++ {}<br>--- {}\".format(\", \".join(int_tokens), \", \".join(diff_tokens))\n for (int_tokens, diff_tokens) in row\n ]\n for row in annotation\n ]\n\n data = go.Heatmap(z=mdiff, colorscale='RdBu', text=annotation_html)\n layout = go.Layout(width=950, height=950, title=title, xaxis=dict(title=\"topic\"), yaxis=dict(title=\"topic\"))\n py.iplot(dict(data=[data], layout=layout))\n\n\ndef plot_difference_matplotlib(mdiff, title=\"\", annotation=None):\n \"\"\"Helper function to plot difference between models.\n\n Uses matplotlib as the backend.\"\"\"\n import matplotlib.pyplot as plt\n fig, ax = plt.subplots(figsize=(18, 14))\n data = ax.imshow(mdiff, cmap='RdBu_r', origin='lower')\n plt.title(title)\n plt.colorbar(data)\n\n\ntry:\n get_ipython()\n import plotly.offline as py\nexcept Exception:\n #\n # Fall back to matplotlib if we're not in a notebook, or if plotly is\n # unavailable for whatever reason.\n #\n plot_difference = plot_difference_matplotlib\nelse:\n py.init_notebook_mode()\n plot_difference = plot_difference_plotly" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Gensim can help you visualise the differences between topics. For this purpose, you can use the ``diff()`` method of LdaModel.\n\n``diff()`` returns a matrix with distances **mdiff** and a matrix with annotations **annotation**. Read the docstring for more detailed info.\n\nIn each **mdiff[i][j]** cell you'll find a distance between **topic_i** from the first model and **topic_j** from the second model.\n\nIn each **annotation[i][j]** cell you'll find **[tokens from intersection, tokens from difference** between **topic_i** from first model and **topic_j** from the second model.\n\n\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "print(LdaMulticore.diff.__doc__)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Case 1: How topics within ONE model correlate with each other.\n--------------------------------------------------------------\n\n\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Short description:\n\n* x-axis - topic;\n\n* y-axis - topic;\n\n.. role:: raw-html-m2r(raw)\n :format: html\n\n* :raw-html-m2r:`<span style=\"color:red\">almost red cell</span>` - strongly decorrelated topics;\n\n.. role:: raw-html-m2r(raw)\n :format: html\n\n* :raw-html-m2r:`<span style=\"color:blue\">almost blue cell</span>` - strongly correlated topics.\n\nIn an ideal world, we would like to see different topics decorrelated between themselves.\nIn this case, our matrix would look like this:\n\n\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "import numpy as np\n\nmdiff = np.ones((num_topics, num_topics))\nnp.fill_diagonal(mdiff, 0.)\nplot_difference(mdiff, title=\"Topic difference (one model) in ideal world\")" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Unfortunately, in real life, not everything is so good, and the matrix looks different.\n\n\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Short description (interactive annotations only):\n\n* ``+++ make, world, well`` - words from the intersection of topics = present in both topics;\n\n* ``--- money, day, still`` - words from the symmetric difference of topics = present in one topic but not the other.\n\n\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "mdiff, annotation = lda_fst.diff(lda_fst, distance='jaccard', num_words=50)\nplot_difference(mdiff, title=\"Topic difference (one model) [jaccard distance]\", annotation=annotation)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "If you compare a model with itself, you want to see as many red elements as\npossible (except on the diagonal). With this picture, you can look at the\n\"not very red elements\" and understand which topics in the model are very\nsimilar and why (you can read annotation if you move your pointer to cell).\n\nJaccard is a stable and robust distance function, but sometimes not sensitive\nenough. Let's try to use the Hellinger distance instead.\n\n\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "mdiff, annotation = lda_fst.diff(lda_fst, distance='hellinger', num_words=50)\nplot_difference(mdiff, title=\"Topic difference (one model)[hellinger distance]\", annotation=annotation)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "You see that everything has become worse, but remember that everything depends on the task.\n\nChoose a distance function that matches your upstream task better: what kind of \"similarity\" is\nrelevant to you. From my (Ivan's) experience, Jaccard is fine.\n\n\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Case 2: How topics from DIFFERENT models correlate with each other.\n-------------------------------------------------------------------\n\n\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Sometimes, we want to look at the patterns between two different models and compare them.\n\nYou can do this by constructing a matrix with the difference.\n\n\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "mdiff, annotation = lda_fst.diff(lda_snd, distance='jaccard', num_words=50)\nplot_difference(mdiff, title=\"Topic difference (two models)[jaccard distance]\", annotation=annotation)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Looking at this matrix, you can find similar and different topics between the two models.\nThe plot also includes relevant tokens describing the topics' intersection and difference.\n\n\n" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.6.5" } }, "nbformat": 4, "nbformat_minor": 0 }
11,395
Python
.py
233
42.201717
1,499
0.599301
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,992
run_doc.ipynb
piskvorky_gensim/docs/src/auto_examples/howtos/run_doc.ipynb
{ "cells": [ { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "%matplotlib inline" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "\nHow to Author Gensim Documentation\n==================================\n\nHow to author documentation for Gensim.\n\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Background\n----------\n\nGensim is a large project with a wide range of functionality.\nUnfortunately, not all of this functionality is documented **well**, and some of it is not documented at all.\nWithout good documentation, users are unable to unlock Gensim's full potential.\nTherefore, authoring new documentation and improving existing documentation is of great value to the Gensim project.\n\nIf you implement new functionality in Gensim, please include **helpful** documentation.\nBy \"helpful\", we mean that your documentation answers questions that Gensim users may have.\nFor example:\n\n- What is this new functionality?\n- **Why** is it important?\n- **How** is it relevant to Gensim?\n- **What** can I do with it? What are some real-world applications?\n- **How** do I use it to achieve those things?\n- ... and others (if you can think of them, please add them here)\n\nBefore you author documentation, I suggest reading\n`\"What nobody tells you about documentation\" <https://www.divio.com/blog/documentation/>`__\nor watching its `accompanying video <https://www.youtube.com/watch?v=t4vKPhjcMZg>`__\n(or even both, if you're really keen).\n\nThe summary of the above presentation is: there are four distinct kinds of documentation, and you really need them all:\n\n1. Tutorials\n2. Howto guides\n3. Explanations\n4. References\n\nEach kind has its own intended audience, purpose, and writing style.\nWhen you make a PR with new functionality, please consider authoring each kind of documentation.\nAt the very least, you will (indirectly) author reference documentation through module, class and function docstrings.\n\nMechanisms\n----------\n\nWe keep our documentation as individual Python scripts.\nThese scripts live under :file:`docs/src/gallery` in one of several subdirectories:\n\n- core: core tutorials. We try to keep this part small, avoid putting stuff here.\n- tutorials: tutorials.\n- howtos: howto guides.\n\nPick a subdirectory and save your script under it.\nPrefix the name of the script with ``run_``: this way, the the documentation builder will run your script each time it builds our docs.\n\nThe contents of the script are straightforward.\nAt the very top, you need a docstring describing what your script does.\n\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "r\"\"\"\nTitle\n=====\n\nBrief description.\n\"\"\"" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The title is what will show up in the gallery.\nKeep this short and descriptive.\n\nThe description will appear as a tooltip in the gallery.\nWhen people mouse-over the title, they will see the description.\nKeep this short too.\n\n\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The rest of the script is Python, formatted in a special way so that Sphinx Gallery can parse it.\nThe most important properties of this format are:\n\n- Sphinx Gallery will split your script into blocks\n- A block can be Python source or RST-formatted comments\n- To indicate that a block is in RST, prefix it with a line of 80 hash (#) characters.\n- All other blocks will be interpreted as Python source\n\nRead `this link <https://sphinx-gallery.github.io/syntax.html>`__ for more details.\nIf you need further examples, check out other ``gensim`` tutorials and guides.\nAll of them (including this one!) have a download link at the bottom of the page, which exposes the Python source they were generated from.\n\nYou should be able to run your script directly from the command line::\n\n python myscript.py\n\nand it should run to completion without error, occasionally printing stuff to standard output.\n\n\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Authoring Workflow\n------------------\n\nThere are several ways to author documentation.\nThe simplest and most straightforward is to author your ``script.py`` from scratch.\nYou'll have the following cycle:\n\n1. Make changes\n2. Run ``python script.py``\n3. Check standard output, standard error and return code\n4. If everything works well, stop.\n5. Otherwise, go back to step 1).\n\nIf the above is not your cup of tea, you can also author your documentation as a Jupyter notebook.\nThis is a more flexible approach that enables you to tweak parts of the documentation and re-run them as necessary.\n\nOnce you're happy with the notebook, convert it to a script.py.\nThere's a helpful `script <https://github.com/RaRe-Technologies/gensim/blob/develop/docs/src/tools/to_python.py>`__ that will do it for you.\nTo use it::\n\n python to_python.py < notebook.ipynb > script.py\n\nYou may have to touch up the resulting ``script.py``.\nMore specifically:\n\n- Update the title\n- Update the description\n- Fix any issues that the markdown-to-RST converter could not deal with\n\nOnce your script.py works, put it in a suitable subdirectory.\nPlease don't include your original Jupyter notebook in the repository - we won't be using it.\n\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Correctness\n-----------\n\nIncorrect documentation can be worse than no documentation at all.\nTake the following steps to ensure correctness:\n\n- Run Python's doctest module on your docstrings\n- Run your documentation scripts from scratch, removing any temporary files/results\n\nUsing data in your documentation\n--------------------------------\n\nSome parts of the documentation require real-world data to be useful.\nFor example, you may need more than just a toy example to demonstrate the benefits of one model over another.\nThis subsection provides some tips for including data in your documentation.\n\nIf possible, use data available via Gensim's\n`downloader API <https://radimrehurek.com/gensim/gensim_numfocus/auto_examples/010_tutorials/run_downloader_api.html>`__.\nThis will reduce the risk of your documentation becoming obsolete because required data is no longer available.\n\nUse the smallest possible dataset: avoid making people unnecessarily load large datasets and models.\nThis will make your documentation faster to run and easier for people to use (they can modify your examples and re-run them quickly).\n\nFinalizing your contribution\n----------------------------\n\nFirst, get Sphinx Gallery to build your documentation::\n\n make --directory docs/src html\n\nThis can take a while if your documentation uses a large dataset, or if you've changed many other tutorials or guides.\nOnce this completes successfully, open ``docs/auto_examples/index.html`` in your browser.\nYou should see your new tutorial or guide in the gallery.\n\nOnce your documentation script is working correctly, it's time to add it to the git repository::\n\n git add docs/src/gallery/tutorials/run_example.py\n git add docs/src/auto_examples/tutorials/run_example.{py,py.md5,rst,ipynb}\n git add docs/src/auto_examples/howtos/sg_execution_times.rst\n git commit -m \"enter a helpful commit message here\"\n git push origin branchname\n\n.. Note::\n You may be wondering what all those other files are.\n Sphinx Gallery puts a copy of your Python script in ``auto_examples/tutorials``.\n The .md5 contains MD5 hash of the script to enable easy detection of modifications.\n Gallery also generates .rst (RST for Sphinx) and .ipynb (Jupyter notebook) files from the script.\n Finally, ``sg_execution_times.rst`` contains the time taken to run each example.\n\nFinally, open a PR at `github <https://github.com/RaRe-Technologies/gensim>`__.\nOne of our friendly maintainers will review it, make suggestions, and eventually merge it.\nYour documentation will then appear in the `gallery <https://radimrehurek.com/gensim/auto_examples/index.html>`__,\nalongside the rest of the examples. Thanks a lot!\n\n" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.6.5" } }, "nbformat": 4, "nbformat_minor": 0 }
9,057
Python
.py
89
95.359551
2,741
0.707883
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,993
run_downloader_api.ipynb
piskvorky_gensim/docs/src/auto_examples/howtos/run_downloader_api.ipynb
{ "cells": [ { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "%matplotlib inline" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "\nHow to download pre-trained models and corpora\n==============================================\n\nDemonstrates simple and quick access to common corpora and pretrained models.\n\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "import logging\nlogging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "One of Gensim's features is simple and easy access to common data.\nThe `gensim-data <https://github.com/RaRe-Technologies/gensim-data>`_ project stores a\nvariety of corpora and pretrained models.\nGensim has a :py:mod:`gensim.downloader` module for programmatically accessing this data.\nThis module leverages a local cache (in user's home folder, by default) that\nensures data is downloaded at most once.\n\nThis tutorial:\n\n* Downloads the text8 corpus, unless it is already on your local machine\n* Trains a Word2Vec model from the corpus (see `sphx_glr_auto_examples_tutorials_run_doc2vec_lee.py` for a detailed tutorial)\n* Leverages the model to calculate word similarity\n* Demonstrates using the API to load other models and corpora\n\nLet's start by importing the api module.\n\n\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "import gensim.downloader as api" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Now, let's download the text8 corpus and load it as a Python object\nthat supports streamed access.\n\n\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "corpus = api.load('text8')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "In this case, our corpus is an iterable.\nIf you look under the covers, it has the following definition:\n\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "import inspect\nprint(inspect.getsource(corpus.__class__))" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "For more details, look inside the file that defines the Dataset class for your particular resource.\n\n\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "print(inspect.getfile(corpus.__class__))" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "With the corpus has been downloaded and loaded, let's use it to train a word2vec model.\n\n\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "from gensim.models.word2vec import Word2Vec\nmodel = Word2Vec(corpus)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Now that we have our word2vec model, let's find words that are similar to 'tree'.\n\n\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "print(model.wv.most_similar('tree'))" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "You can use the API to download several different corpora and pretrained models.\nHere's how to list all resources available in gensim-data:\n\n\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "import json\ninfo = api.info()\nprint(json.dumps(info, indent=4))" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "There are two types of data resources: corpora and models.\n\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "print(info.keys())" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Let's have a look at the available corpora:\n\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "for corpus_name, corpus_data in sorted(info['corpora'].items()):\n print(\n '%s (%d records): %s' % (\n corpus_name,\n corpus_data.get('num_records', -1),\n corpus_data['description'][:40] + '...',\n )\n )" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "... and the same for models:\n\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "for model_name, model_data in sorted(info['models'].items()):\n print(\n '%s (%d records): %s' % (\n model_name,\n model_data.get('num_records', -1),\n model_data['description'][:40] + '...',\n )\n )" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "If you want to get detailed information about a model/corpus, use:\n\n\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "fake_news_info = api.info('fake-news')\nprint(json.dumps(fake_news_info, indent=4))" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Sometimes, you do not want to load a model into memory. Instead, you can request\njust the filesystem path to the model. For that, use:\n\n\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "print(api.load('glove-wiki-gigaword-50', return_path=True))" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "If you want to load the model to memory, then:\n\n\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "model = api.load(\"glove-wiki-gigaword-50\")\nmodel.most_similar(\"glass\")" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "For corpora, the corpus is never loaded to memory, all corpora are iterables wrapped in\na special class ``Dataset``, with an ``__iter__`` method.\n\n\n" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.6.5" } }, "nbformat": 4, "nbformat_minor": 0 }
8,187
Python
.py
295
20.99322
804
0.518561
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,994
run_doc2vec_imdb.ipynb
piskvorky_gensim/docs/src/auto_examples/howtos/run_doc2vec_imdb.ipynb
{ "cells": [ { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "%matplotlib inline" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "\n# How to reproduce the doc2vec 'Paragraph Vector' paper\n\nShows how to reproduce results of the \"Distributed Representation of Sentences and Documents\" paper by Le and Mikolov using Gensim.\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "import logging\nlogging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Introduction\n\nThis guide shows you how to reproduce the results of the paper by [Le and\nMikolov 2014](https://arxiv.org/pdf/1405.4053.pdf) using Gensim. While the\nentire paper is worth reading (it's only 9 pages), we will be focusing on\nSection 3.2: \"Beyond One Sentence - Sentiment Analysis with the IMDB\ndataset\".\n\nThis guide follows the following steps:\n\n#. Load the IMDB dataset\n#. Train a variety of Doc2Vec models on the dataset\n#. Evaluate the performance of each model using a logistic regression\n#. Examine some of the results directly:\n\nWhen examining results, we will look for answers for the following questions:\n\n#. Are inferred vectors close to the precalculated ones?\n#. Do close documents seem more related than distant ones?\n#. Do the word vectors show useful similarities?\n#. Are the word vectors from this dataset any good at analogies?\n\n## Load corpus\n\nOur data for the tutorial will be the [IMDB archive](http://ai.stanford.edu/~amaas/data/sentiment/).\nIf you're not familiar with this dataset, then here's a brief intro: it\ncontains several thousand movie reviews.\n\nEach review is a single line of text containing multiple sentences, for example:\n\n```\nOne of the best movie-dramas I have ever seen. We do a lot of acting in the\nchurch and this is one that can be used as a resource that highlights all the\ngood things that actors can do in their work. I highly recommend this one,\nespecially for those who have an interest in acting, as a \"must see.\"\n```\n\nThese reviews will be the **documents** that we will work with in this tutorial.\nThere are 100 thousand reviews in total.\n\n#. 25k reviews for training (12.5k positive, 12.5k negative)\n#. 25k reviews for testing (12.5k positive, 12.5k negative)\n#. 50k unlabeled reviews\n\nOut of 100k reviews, 50k have a label: either positive (the reviewer liked\nthe movie) or negative.\nThe remaining 50k are unlabeled.\n\nOur first task will be to prepare the dataset.\n\nMore specifically, we will:\n\n#. Download the tar.gz file (it's only 84MB, so this shouldn't take too long)\n#. Unpack it and extract each movie review\n#. Split the reviews into training and test datasets\n\nFirst, let's define a convenient datatype for holding data for a single document:\n\n* words: The text of the document, as a ``list`` of words.\n* tags: Used to keep the index of the document in the entire dataset.\n* split: one of ``train``\\ , ``test`` or ``extra``. Determines how the document will be used (for training, testing, etc).\n* sentiment: either 1 (positive), 0 (negative) or None (unlabeled document).\n\nThis data type is helpful for later evaluation and reporting.\nIn particular, the ``index`` member will help us quickly and easily retrieve the vectors for a document from a model.\n\n\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "import collections\n\nSentimentDocument = collections.namedtuple('SentimentDocument', 'words tags split sentiment')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "We can now proceed with loading the corpus.\n\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "import io\nimport re\nimport tarfile\nimport os.path\n\nimport smart_open\nimport gensim.utils\n\ndef download_dataset(url='http://ai.stanford.edu/~amaas/data/sentiment/aclImdb_v1.tar.gz'):\n fname = url.split('/')[-1]\n\n if os.path.isfile(fname):\n return fname\n\n # Download the file to local storage first.\n try:\n kwargs = { 'compression': smart_open.compression.NO_COMPRESSION }\n fin = smart_open.open(url, \"rb\", **kwargs)\n except (AttributeError, TypeError):\n kwargs = { 'ignore_ext': True }\n fin = smart_open.open(url, \"rb\", **kwargs)\n if fin:\n with smart_open.open(fname, 'wb', **kwargs) as fout:\n while True:\n buf = fin.read(io.DEFAULT_BUFFER_SIZE)\n if not buf:\n break\n fout.write(buf)\n fin.close()\n\n return fname\n\ndef create_sentiment_document(name, text, index):\n _, split, sentiment_str, _ = name.split('/')\n sentiment = {'pos': 1.0, 'neg': 0.0, 'unsup': None}[sentiment_str]\n\n if sentiment is None:\n split = 'extra'\n\n tokens = gensim.utils.to_unicode(text).split()\n return SentimentDocument(tokens, [index], split, sentiment)\n\ndef extract_documents():\n fname = download_dataset()\n\n index = 0\n\n with tarfile.open(fname, mode='r:gz') as tar:\n for member in tar.getmembers():\n if re.match(r'aclImdb/(train|test)/(pos|neg|unsup)/\\d+_\\d+.txt$', member.name):\n member_bytes = tar.extractfile(member).read()\n member_text = member_bytes.decode('utf-8', errors='replace')\n assert member_text.count('\\n') == 0\n yield create_sentiment_document(member.name, member_text, index)\n index += 1\n\nalldocs = list(extract_documents())" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Here's what a single document looks like.\n\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "print(alldocs[27])" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Extract our documents and split into training/test sets.\n\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "train_docs = [doc for doc in alldocs if doc.split == 'train']\ntest_docs = [doc for doc in alldocs if doc.split == 'test']\nprint(f'{len(alldocs)} docs: {len(train_docs)} train-sentiment, {len(test_docs)} test-sentiment')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Set-up Doc2Vec Training & Evaluation Models\n\nWe approximate the experiment of Le & Mikolov [\"Distributed Representations\nof Sentences and Documents\"](http://cs.stanford.edu/~quocle/paragraph_vector.pdf) with guidance from\nMikolov's [example go.sh](https://groups.google.com/g/word2vec-toolkit/c/Q49FIrNOQRo/m/J6KG8mUj45sJ)::\n\n ./word2vec -train ../alldata-id.txt -output vectors.txt -cbow 0 -size 100 -window 10 -negative 5 -hs 0 -sample 1e-4 -threads 40 -binary 0 -iter 20 -min-count 1 -sentence-vectors 1\n\nWe vary the following parameter choices:\n\n* 100-dimensional vectors, as the 400-d vectors of the paper take a lot of\n memory and, in our tests of this task, don't seem to offer much benefit\n* Similarly, frequent word subsampling seems to decrease sentiment-prediction\n accuracy, so it's left out\n* ``cbow=0`` means skip-gram which is equivalent to the paper's 'PV-DBOW'\n mode, matched in gensim with ``dm=0``\n* Added to that DBOW model are two DM models, one which averages context\n vectors (\\ ``dm_mean``\\ ) and one which concatenates them (\\ ``dm_concat``\\ ,\n resulting in a much larger, slower, more data-hungry model)\n* A ``min_count=2`` saves quite a bit of model memory, discarding only words\n that appear in a single doc (and are thus no more expressive than the\n unique-to-each doc vectors themselves)\n\n\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "import multiprocessing\nfrom collections import OrderedDict\n\nimport gensim.models.doc2vec\nassert gensim.models.doc2vec.FAST_VERSION > -1, \"This will be painfully slow otherwise\"\n\nfrom gensim.models.doc2vec import Doc2Vec\n\ncommon_kwargs = dict(\n vector_size=100, epochs=20, min_count=2,\n sample=0, workers=multiprocessing.cpu_count(), negative=5, hs=0,\n)\n\nsimple_models = [\n # PV-DBOW plain\n Doc2Vec(dm=0, **common_kwargs),\n # PV-DM w/ default averaging; a higher starting alpha may improve CBOW/PV-DM modes\n Doc2Vec(dm=1, window=10, alpha=0.05, comment='alpha=0.05', **common_kwargs),\n # PV-DM w/ concatenation - big, slow, experimental mode\n # window=5 (both sides) approximates paper's apparent 10-word total window size\n Doc2Vec(dm=1, dm_concat=1, window=5, **common_kwargs),\n]\n\nfor model in simple_models:\n model.build_vocab(alldocs)\n print(f\"{model} vocabulary scanned & state initialized\")\n\nmodels_by_name = OrderedDict((str(model), model) for model in simple_models)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Le and Mikolov note that combining a paragraph vector from Distributed Bag of\nWords (DBOW) and Distributed Memory (DM) improves performance. We will\nfollow, pairing the models together for evaluation. Here, we concatenate the\nparagraph vectors obtained from each model with the help of a thin wrapper\nclass included in a gensim test module. (Note that this a separate, later\nconcatenation of output-vectors than the kind of input-window-concatenation\nenabled by the ``dm_concat=1`` mode above.)\n\n\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "from gensim.test.test_doc2vec import ConcatenatedDoc2Vec\nmodels_by_name['dbow+dmm'] = ConcatenatedDoc2Vec([simple_models[0], simple_models[1]])\nmodels_by_name['dbow+dmc'] = ConcatenatedDoc2Vec([simple_models[0], simple_models[2]])" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Predictive Evaluation Methods\n\nGiven a document, our ``Doc2Vec`` models output a vector representation of the document.\nHow useful is a particular model?\nIn case of sentiment analysis, we want the output vector to reflect the sentiment in the input document.\nSo, in vector space, positive documents should be distant from negative documents.\n\nWe train a logistic regression from the training set:\n\n - regressors (inputs): document vectors from the Doc2Vec model\n - target (outpus): sentiment labels\n\nSo, this logistic regression will be able to predict sentiment given a document vector.\n\nNext, we test our logistic regression on the test set, and measure the rate of errors (incorrect predictions).\nIf the document vectors from the Doc2Vec model reflect the actual sentiment well, the error rate will be low.\n\nTherefore, the error rate of the logistic regression is indication of *how well* the given Doc2Vec model represents documents as vectors.\nWe can then compare different ``Doc2Vec`` models by looking at their error rates.\n\n\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "import numpy as np\nimport statsmodels.api as sm\nfrom random import sample\n\ndef logistic_predictor_from_data(train_targets, train_regressors):\n \"\"\"Fit a statsmodel logistic predictor on supplied data\"\"\"\n logit = sm.Logit(train_targets, train_regressors)\n predictor = logit.fit(disp=0)\n # print(predictor.summary())\n return predictor\n\ndef error_rate_for_model(test_model, train_set, test_set):\n \"\"\"Report error rate on test_doc sentiments, using supplied model and train_docs\"\"\"\n\n train_targets = [doc.sentiment for doc in train_set]\n train_regressors = [test_model.dv[doc.tags[0]] for doc in train_set]\n train_regressors = sm.add_constant(train_regressors)\n predictor = logistic_predictor_from_data(train_targets, train_regressors)\n\n test_regressors = [test_model.dv[doc.tags[0]] for doc in test_set]\n test_regressors = sm.add_constant(test_regressors)\n\n # Predict & evaluate\n test_predictions = predictor.predict(test_regressors)\n corrects = sum(np.rint(test_predictions) == [doc.sentiment for doc in test_set])\n errors = len(test_predictions) - corrects\n error_rate = float(errors) / len(test_predictions)\n return (error_rate, errors, len(test_predictions), predictor)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Bulk Training & Per-Model Evaluation\n\nNote that doc-vector training is occurring on *all* documents of the dataset,\nwhich includes all TRAIN/TEST/DEV docs. Because the native document-order\nhas similar-sentiment documents in large clumps \u2013 which is suboptimal for\ntraining \u2013 we work with once-shuffled copy of the training set.\n\nWe evaluate each model's sentiment predictive power based on error rate, and\nthe evaluation is done for each model.\n\n(On a 4-core 2.6Ghz Intel Core i7, these 20 passes training and evaluating 3\nmain models takes about an hour.)\n\n\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "from collections import defaultdict\nerror_rates = defaultdict(lambda: 1.0) # To selectively print only best errors achieved" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "from random import shuffle\nshuffled_alldocs = alldocs[:]\nshuffle(shuffled_alldocs)\n\nfor model in simple_models:\n print(f\"Training {model}\")\n model.train(shuffled_alldocs, total_examples=len(shuffled_alldocs), epochs=model.epochs)\n\n print(f\"\\nEvaluating {model}\")\n err_rate, err_count, test_count, predictor = error_rate_for_model(model, train_docs, test_docs)\n error_rates[str(model)] = err_rate\n print(\"\\n%f %s\\n\" % (err_rate, model))\n\nfor model in [models_by_name['dbow+dmm'], models_by_name['dbow+dmc']]:\n print(f\"\\nEvaluating {model}\")\n err_rate, err_count, test_count, predictor = error_rate_for_model(model, train_docs, test_docs)\n error_rates[str(model)] = err_rate\n print(f\"\\n{err_rate} {model}\\n\")" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Achieved Sentiment-Prediction Accuracy\nCompare error rates achieved, best-to-worst\n\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "print(\"Err_rate Model\")\nfor rate, name in sorted((rate, name) for name, rate in error_rates.items()):\n print(f\"{rate} {name}\")" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "In our testing, contrary to the results of the paper, on this problem,\nPV-DBOW alone performs as good as anything else. Concatenating vectors from\ndifferent models only sometimes offers a tiny predictive improvement \u2013 and\nstays generally close to the best-performing solo model included.\n\nThe best results achieved here are just around 10% error rate, still a long\nway from the paper's reported 7.42% error rate.\n\n(Other trials not shown, with larger vectors and other changes, also don't\ncome close to the paper's reported value. Others around the net have reported\na similar inability to reproduce the paper's best numbers. The PV-DM/C mode\nimproves a bit with many more training epochs \u2013 but doesn't reach parity with\nPV-DBOW.)\n\n\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Examining Results\n\nLet's look for answers to the following questions:\n\n#. Are inferred vectors close to the precalculated ones?\n#. Do close documents seem more related than distant ones?\n#. Do the word vectors show useful similarities?\n#. Are the word vectors from this dataset any good at analogies?\n\n\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Are inferred vectors close to the precalculated ones?\n\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "doc_id = np.random.randint(len(simple_models[0].dv)) # Pick random doc; re-run cell for more examples\nprint(f'for doc {doc_id}...')\nfor model in simple_models:\n inferred_docvec = model.infer_vector(alldocs[doc_id].words)\n print(f'{model}:\\n {model.dv.most_similar([inferred_docvec], topn=3)}')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "(Yes, here the stored vector from 20 epochs of training is usually one of the\nclosest to a freshly-inferred vector for the same words. Defaults for\ninference may benefit from tuning for each dataset or model parameters.)\n\n\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Do close documents seem more related than distant ones?\n\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "import random\n\ndoc_id = np.random.randint(len(simple_models[0].dv)) # pick random doc, re-run cell for more examples\nmodel = random.choice(simple_models) # and a random model\nsims = model.dv.most_similar(doc_id, topn=len(model.dv)) # get *all* similar documents\nprint(f'TARGET ({doc_id}): \u00ab{\" \".join(alldocs[doc_id].words)}\u00bb\\n')\nprint(f'SIMILAR/DISSIMILAR DOCS PER MODEL {model}%s:\\n')\nfor label, index in [('MOST', 0), ('MEDIAN', len(sims)//2), ('LEAST', len(sims) - 1)]:\n s = sims[index]\n i = sims[index][0]\n words = ' '.join(alldocs[i].words)\n print(f'{label} {s}: \u00ab{words}\u00bb\\n')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Somewhat, in terms of reviewer tone, movie genre, etc... the MOST\ncosine-similar docs usually seem more like the TARGET than the MEDIAN or\nLEAST... especially if the MOST has a cosine-similarity > 0.5. Re-run the\ncell to try another random target document.\n\n\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Do the word vectors show useful similarities?\n\n\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "import random\n\nword_models = simple_models[:]\n\ndef pick_random_word(model, threshold=10):\n # pick a random word with a suitable number of occurences\n while True:\n word = random.choice(model.wv.index_to_key)\n if model.wv.get_vecattr(word, \"count\") > threshold:\n return word\n\ntarget_word = pick_random_word(word_models[0])\n# or uncomment below line, to just pick a word from the relevant domain:\n# target_word = 'comedy/drama'\n\nfor model in word_models:\n print(f'target_word: {repr(target_word)} model: {model} similar words:')\n for i, (word, sim) in enumerate(model.wv.most_similar(target_word, topn=10), 1):\n print(f' {i}. {sim:.2f} {repr(word)}')\n print()" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Do the DBOW words look meaningless? That's because the gensim DBOW model\ndoesn't train word vectors \u2013 they remain at their random initialized values \u2013\nunless you ask with the ``dbow_words=1`` initialization parameter. Concurrent\nword-training slows DBOW mode significantly, and offers little improvement\n(and sometimes a little worsening) of the error rate on this IMDB\nsentiment-prediction task, but may be appropriate on other tasks, or if you\nalso need word-vectors.\n\nWords from DM models tend to show meaningfully similar words when there are\nmany examples in the training data (as with 'plot' or 'actor'). (All DM modes\ninherently involve word-vector training concurrent with doc-vector training.)\n\n\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Are the word vectors from this dataset any good at analogies?\n\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "from gensim.test.utils import datapath\nquestions_filename = datapath('questions-words.txt')\n\n# Note: this analysis takes many minutes\nfor model in word_models:\n score, sections = model.wv.evaluate_word_analogies(questions_filename)\n correct, incorrect = len(sections[-1]['correct']), len(sections[-1]['incorrect'])\n print(f'{model}: {float(correct*100)/(correct+incorrect):0.2f}%% correct ({correct} of {correct+incorrect}')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Even though this is a tiny, domain-specific dataset, it shows some meager\ncapability on the general word analogies \u2013 at least for the DM/mean and\nDM/concat models which actually train word vectors. (The untrained\nrandom-initialized words of the DBOW model of course fail miserably.)\n\n\n" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.8.17" } }, "nbformat": 4, "nbformat_minor": 0 }
23,094
Python
.py
341
60.961877
2,813
0.651885
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,995
run_corpora_and_vector_spaces.py
piskvorky_gensim/docs/src/auto_examples/core/run_corpora_and_vector_spaces.py
r""" Corpora and Vector Spaces ========================= Demonstrates transforming text into a vector space representation. Also introduces corpus streaming and persistence to disk in various formats. """ import logging logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO) ############################################################################### # First, let’s create a small corpus of nine short documents [1]_: # # .. _second example: # # From Strings to Vectors # ------------------------ # # This time, let's start from documents represented as strings: # documents = [ "Human machine interface for lab abc computer applications", "A survey of user opinion of computer system response time", "The EPS user interface management system", "System and human system engineering testing of EPS", "Relation of user perceived response time to error measurement", "The generation of random binary unordered trees", "The intersection graph of paths in trees", "Graph minors IV Widths of trees and well quasi ordering", "Graph minors A survey", ] ############################################################################### # This is a tiny corpus of nine documents, each consisting of only a single sentence. # # First, let's tokenize the documents, remove common words (using a toy stoplist) # as well as words that only appear once in the corpus: from pprint import pprint # pretty-printer from collections import defaultdict # remove common words and tokenize stoplist = set('for a of the and to in'.split()) texts = [ [word for word in document.lower().split() if word not in stoplist] for document in documents ] # remove words that appear only once frequency = defaultdict(int) for text in texts: for token in text: frequency[token] += 1 texts = [ [token for token in text if frequency[token] > 1] for text in texts ] pprint(texts) ############################################################################### # Your way of processing the documents will likely vary; here, I only split on whitespace # to tokenize, followed by lowercasing each word. In fact, I use this particular # (simplistic and inefficient) setup to mimic the experiment done in Deerwester et al.'s # original LSA article [1]_. # # The ways to process documents are so varied and application- and language-dependent that I # decided to *not* constrain them by any interface. Instead, a document is represented # by the features extracted from it, not by its "surface" string form: how you get to # the features is up to you. Below I describe one common, general-purpose approach (called # :dfn:`bag-of-words`), but keep in mind that different application domains call for # different features, and, as always, it's `garbage in, garbage out <https://en.wikipedia.org/wiki/Garbage_In,_Garbage_Out>`_... # # To convert documents to vectors, we'll use a document representation called # `bag-of-words <https://en.wikipedia.org/wiki/Bag_of_words>`_. In this representation, # each document is represented by one vector where each vector element represents # a question-answer pair, in the style of: # # - Question: How many times does the word `system` appear in the document? # - Answer: Once. # # It is advantageous to represent the questions only by their (integer) ids. The mapping # between the questions and ids is called a dictionary: from gensim import corpora dictionary = corpora.Dictionary(texts) dictionary.save('/tmp/deerwester.dict') # store the dictionary, for future reference print(dictionary) ############################################################################### # Here we assigned a unique integer id to all words appearing in the corpus with the # :class:`gensim.corpora.dictionary.Dictionary` class. This sweeps across the texts, collecting word counts # and relevant statistics. In the end, we see there are twelve distinct words in the # processed corpus, which means each document will be represented by twelve numbers (ie., by a 12-D vector). # To see the mapping between words and their ids: print(dictionary.token2id) ############################################################################### # To actually convert tokenized documents to vectors: new_doc = "Human computer interaction" new_vec = dictionary.doc2bow(new_doc.lower().split()) print(new_vec) # the word "interaction" does not appear in the dictionary and is ignored ############################################################################### # The function :func:`doc2bow` simply counts the number of occurrences of # each distinct word, converts the word to its integer word id # and returns the result as a sparse vector. The sparse vector ``[(0, 1), (1, 1)]`` # therefore reads: in the document `"Human computer interaction"`, the words `computer` # (id 0) and `human` (id 1) appear once; the other ten dictionary words appear (implicitly) zero times. corpus = [dictionary.doc2bow(text) for text in texts] corpora.MmCorpus.serialize('/tmp/deerwester.mm', corpus) # store to disk, for later use print(corpus) ############################################################################### # By now it should be clear that the vector feature with ``id=10`` stands for the question "How many # times does the word `graph` appear in the document?" and that the answer is "zero" for # the first six documents and "one" for the remaining three. # # .. _corpus_streaming_tutorial: # # Corpus Streaming -- One Document at a Time # ------------------------------------------- # # Note that `corpus` above resides fully in memory, as a plain Python list. # In this simple example, it doesn't matter much, but just to make things clear, # let's assume there are millions of documents in the corpus. Storing all of them in RAM won't do. # Instead, let's assume the documents are stored in a file on disk, one document per line. Gensim # only requires that a corpus must be able to return one document vector at a time: # from smart_open import open # for transparently opening remote files class MyCorpus: def __iter__(self): for line in open('https://radimrehurek.com/mycorpus.txt'): # assume there's one document per line, tokens separated by whitespace yield dictionary.doc2bow(line.lower().split()) ############################################################################### # The full power of Gensim comes from the fact that a corpus doesn't have to be # a ``list``, or a ``NumPy`` array, or a ``Pandas`` dataframe, or whatever. # Gensim *accepts any object that, when iterated over, successively yields # documents*. # This flexibility allows you to create your own corpus classes that stream the # documents directly from disk, network, database, dataframes... The models # in Gensim are implemented such that they don't require all vectors to reside # in RAM at once. You can even create the documents on the fly! ############################################################################### # Download the sample `mycorpus.txt file here <https://radimrehurek.com/mycorpus.txt>`_. The assumption that # each document occupies one line in a single file is not important; you can mold # the `__iter__` function to fit your input format, whatever it is. # Walking directories, parsing XML, accessing the network... # Just parse your input to retrieve a clean list of tokens in each document, # then convert the tokens via a dictionary to their ids and yield the resulting sparse vector inside `__iter__`. corpus_memory_friendly = MyCorpus() # doesn't load the corpus into memory! print(corpus_memory_friendly) ############################################################################### # Corpus is now an object. We didn't define any way to print it, so `print` just outputs address # of the object in memory. Not very useful. To see the constituent vectors, let's # iterate over the corpus and print each document vector (one at a time): for vector in corpus_memory_friendly: # load one vector into memory at a time print(vector) ############################################################################### # Although the output is the same as for the plain Python list, the corpus is now much # more memory friendly, because at most one vector resides in RAM at a time. Your # corpus can now be as large as you want. # # Similarly, to construct the dictionary without loading all texts into memory: # collect statistics about all tokens dictionary = corpora.Dictionary(line.lower().split() for line in open('https://radimrehurek.com/mycorpus.txt')) # remove stop words and words that appear only once stop_ids = [ dictionary.token2id[stopword] for stopword in stoplist if stopword in dictionary.token2id ] once_ids = [tokenid for tokenid, docfreq in dictionary.dfs.items() if docfreq == 1] dictionary.filter_tokens(stop_ids + once_ids) # remove stop words and words that appear only once dictionary.compactify() # remove gaps in id sequence after words that were removed print(dictionary) ############################################################################### # And that is all there is to it! At least as far as bag-of-words representation is concerned. # Of course, what we do with such a corpus is another question; it is not at all clear # how counting the frequency of distinct words could be useful. As it turns out, it isn't, and # we will need to apply a transformation on this simple representation first, before # we can use it to compute any meaningful document vs. document similarities. # Transformations are covered in the next tutorial # (:ref:`sphx_glr_auto_examples_core_run_topics_and_transformations.py`), # but before that, let's briefly turn our attention to *corpus persistency*. # # .. _corpus-formats: # # Corpus Formats # --------------- # # There exist several file formats for serializing a Vector Space corpus (~sequence of vectors) to disk. # `Gensim` implements them via the *streaming corpus interface* mentioned earlier: # documents are read from (resp. stored to) disk in a lazy fashion, one document at # a time, without the whole corpus being read into main memory at once. # # One of the more notable file formats is the `Market Matrix format <http://math.nist.gov/MatrixMarket/formats.html>`_. # To save a corpus in the Matrix Market format: # # create a toy corpus of 2 documents, as a plain Python list corpus = [[(1, 0.5)], []] # make one document empty, for the heck of it corpora.MmCorpus.serialize('/tmp/corpus.mm', corpus) ############################################################################### # Other formats include `Joachim's SVMlight format <http://svmlight.joachims.org/>`_, # `Blei's LDA-C format <https://github.com/blei-lab/lda-c>`_ and # `GibbsLDA++ format <https://gibbslda.sourceforge.net/>`_. corpora.SvmLightCorpus.serialize('/tmp/corpus.svmlight', corpus) corpora.BleiCorpus.serialize('/tmp/corpus.lda-c', corpus) corpora.LowCorpus.serialize('/tmp/corpus.low', corpus) ############################################################################### # Conversely, to load a corpus iterator from a Matrix Market file: corpus = corpora.MmCorpus('/tmp/corpus.mm') ############################################################################### # Corpus objects are streams, so typically you won't be able to print them directly: print(corpus) ############################################################################### # Instead, to view the contents of a corpus: # one way of printing a corpus: load it entirely into memory print(list(corpus)) # calling list() will convert any sequence to a plain Python list ############################################################################### # or # another way of doing it: print one document at a time, making use of the streaming interface for doc in corpus: print(doc) ############################################################################### # The second way is obviously more memory-friendly, but for testing and development # purposes, nothing beats the simplicity of calling ``list(corpus)``. # # To save the same Matrix Market document stream in Blei's LDA-C format, corpora.BleiCorpus.serialize('/tmp/corpus.lda-c', corpus) ############################################################################### # In this way, `gensim` can also be used as a memory-efficient **I/O format conversion tool**: # just load a document stream using one format and immediately save it in another format. # Adding new formats is dead easy, check out the `code for the SVMlight corpus # <https://github.com/piskvorky/gensim/blob/develop/gensim/corpora/svmlightcorpus.py>`_ for an example. # # Compatibility with NumPy and SciPy # ---------------------------------- # # Gensim also contains `efficient utility functions <https://radimrehurek.com/gensim/matutils.html>`_ # to help converting from/to numpy matrices import gensim import numpy as np numpy_matrix = np.random.randint(10, size=[5, 2]) # random matrix as an example corpus = gensim.matutils.Dense2Corpus(numpy_matrix) # numpy_matrix = gensim.matutils.corpus2dense(corpus, num_terms=number_of_corpus_features) ############################################################################### # and from/to `scipy.sparse` matrices import scipy.sparse scipy_sparse_matrix = scipy.sparse.random(5, 2) # random sparse matrix as example corpus = gensim.matutils.Sparse2Corpus(scipy_sparse_matrix) scipy_csc_matrix = gensim.matutils.corpus2csc(corpus) ############################################################################### # What Next # --------- # # Read about :ref:`sphx_glr_auto_examples_core_run_topics_and_transformations.py`. # # References # ---------- # # For a complete reference (Want to prune the dictionary to a smaller size? # Optimize converting between corpora and NumPy/SciPy arrays?), see the :ref:`apiref`. # # .. [1] This is the same corpus as used in # `Deerwester et al. (1990): Indexing by Latent Semantic Analysis <http://www.cs.bham.ac.uk/~pxt/IDA/lsa_ind.pdf>`_, Table 2. import matplotlib.pyplot as plt import matplotlib.image as mpimg img = mpimg.imread('run_corpora_and_vector_spaces.png') imgplot = plt.imshow(img) _ = plt.axis('off')
14,277
Python
.py
259
53.467181
132
0.665664
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,996
run_core_concepts.ipynb
piskvorky_gensim/docs/src/auto_examples/core/run_core_concepts.ipynb
{ "cells": [ { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "%matplotlib inline" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "\nCore Concepts\n=============\n\nThis tutorial introduces Documents, Corpora, Vectors and Models: the basic concepts and terms needed to understand and use gensim.\n\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "import pprint" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The core concepts of ``gensim`` are:\n\n1. `core_concepts_document`: some text.\n2. `core_concepts_corpus`: a collection of documents.\n3. `core_concepts_vector`: a mathematically convenient representation of a document.\n4. `core_concepts_model`: an algorithm for transforming vectors from one representation to another.\n\nLet's examine each of these in slightly more detail.\n\n\nDocument\n--------\n\nIn Gensim, a *document* is an object of the `text sequence type <https://docs.python.org/3.7/library/stdtypes.html#text-sequence-type-str>`_ (commonly known as ``str`` in Python 3).\nA document could be anything from a short 140 character tweet, a single\nparagraph (i.e., journal article abstract), a news article, or a book.\n\n\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "document = \"Human machine interface for lab abc computer applications\"" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "\nCorpus\n------\n\nA *corpus* is a collection of `core_concepts_document` objects.\nCorpora serve two roles in Gensim:\n\n1. Input for training a `core_concepts_model`.\n During training, the models use this *training corpus* to look for common\n themes and topics, initializing their internal model parameters.\n\n Gensim focuses on *unsupervised* models so that no human intervention,\n such as costly annotations or tagging documents by hand, is required.\n\n2. Documents to organize.\n After training, a topic model can be used to extract topics from new\n documents (documents not seen in the training corpus).\n\n Such corpora can be indexed for\n `sphx_glr_auto_examples_core_run_similarity_queries.py`,\n queried by semantic similarity, clustered etc.\n\nHere is an example corpus.\nIt consists of 9 documents, where each document is a string consisting of a single sentence.\n\n\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "text_corpus = [\n \"Human machine interface for lab abc computer applications\",\n \"A survey of user opinion of computer system response time\",\n \"The EPS user interface management system\",\n \"System and human system engineering testing of EPS\",\n \"Relation of user perceived response time to error measurement\",\n \"The generation of random binary unordered trees\",\n \"The intersection graph of paths in trees\",\n \"Graph minors IV Widths of trees and well quasi ordering\",\n \"Graph minors A survey\",\n]" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ ".. Important::\n The above example loads the entire corpus into memory.\n In practice, corpora may be very large, so loading them into memory may be impossible.\n Gensim intelligently handles such corpora by *streaming* them one document at a time.\n See `corpus_streaming_tutorial` for details.\n\nThis is a particularly small example of a corpus for illustration purposes.\nAnother example could be a list of all the plays written by Shakespeare, list\nof all wikipedia articles, or all tweets by a particular person of interest.\n\nAfter collecting our corpus, there are typically a number of preprocessing\nsteps we want to undertake. We'll keep it simple and just remove some\ncommonly used English words (such as 'the') and words that occur only once in\nthe corpus. In the process of doing so, we'll tokenize our data.\nTokenization breaks up the documents into words (in this case using space as\na delimiter).\n\n.. Important::\n There are better ways to perform preprocessing than just lower-casing and\n splitting by space. Effective preprocessing is beyond the scope of this\n tutorial: if you're interested, check out the\n :py:func:`gensim.utils.simple_preprocess` function.\n\n\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "# Create a set of frequent words\nstoplist = set('for a of the and to in'.split(' '))\n# Lowercase each document, split it by white space and filter out stopwords\ntexts = [[word for word in document.lower().split() if word not in stoplist]\n for document in text_corpus]\n\n# Count word frequencies\nfrom collections import defaultdict\nfrequency = defaultdict(int)\nfor text in texts:\n for token in text:\n frequency[token] += 1\n\n# Only keep words that appear more than once\nprocessed_corpus = [[token for token in text if frequency[token] > 1] for text in texts]\npprint.pprint(processed_corpus)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Before proceeding, we want to associate each word in the corpus with a unique\ninteger ID. We can do this using the :py:class:`gensim.corpora.Dictionary`\nclass. This dictionary defines the vocabulary of all words that our\nprocessing knows about.\n\n\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "from gensim import corpora\n\ndictionary = corpora.Dictionary(processed_corpus)\nprint(dictionary)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Because our corpus is small, there are only 12 different tokens in this\n:py:class:`gensim.corpora.Dictionary`. For larger corpuses, dictionaries that\ncontains hundreds of thousands of tokens are quite common.\n\n\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "\nVector\n------\n\nTo infer the latent structure in our corpus we need a way to represent\ndocuments that we can manipulate mathematically. One approach is to represent\neach document as a vector of *features*.\nFor example, a single feature may be thought of as a question-answer pair:\n\n1. How many times does the word *splonge* appear in the document? Zero.\n2. How many paragraphs does the document consist of? Two.\n3. How many fonts does the document use? Five.\n\nThe question is usually represented only by its integer id (such as `1`, `2` and `3`).\nThe representation of this document then becomes a series of pairs like ``(1, 0.0), (2, 2.0), (3, 5.0)``.\nThis is known as a *dense vector*, because it contains an explicit answer to each of the above questions.\n\nIf we know all the questions in advance, we may leave them implicit\nand simply represent the document as ``(0, 2, 5)``.\nThis sequence of answers is the **vector** for our document (in this case a 3-dimensional dense vector).\nFor practical purposes, only questions to which the answer is (or\ncan be converted to) a *single floating point number* are allowed in Gensim.\n\nIn practice, vectors often consist of many zero values.\nTo save memory, Gensim omits all vector elements with value 0.0.\nThe above example thus becomes ``(2, 2.0), (3, 5.0)``.\nThis is known as a *sparse vector* or *bag-of-words vector*.\nThe values of all missing features in this sparse representation can be unambiguously resolved to zero, ``0.0``.\n\nAssuming the questions are the same, we can compare the vectors of two different documents to each other.\nFor example, assume we are given two vectors ``(0.0, 2.0, 5.0)`` and ``(0.1, 1.9, 4.9)``.\nBecause the vectors are very similar to each other, we can conclude that the documents corresponding to those vectors are similar, too.\nOf course, the correctness of that conclusion depends on how well we picked the questions in the first place.\n\nAnother approach to represent a document as a vector is the *bag-of-words\nmodel*.\nUnder the bag-of-words model each document is represented by a vector\ncontaining the frequency counts of each word in the dictionary.\nFor example, assume we have a dictionary containing the words\n``['coffee', 'milk', 'sugar', 'spoon']``.\nA document consisting of the string ``\"coffee milk coffee\"`` would then\nbe represented by the vector ``[2, 1, 0, 0]`` where the entries of the vector\nare (in order) the occurrences of \"coffee\", \"milk\", \"sugar\" and \"spoon\" in\nthe document. The length of the vector is the number of entries in the\ndictionary. One of the main properties of the bag-of-words model is that it\ncompletely ignores the order of the tokens in the document that is encoded,\nwhich is where the name bag-of-words comes from.\n\nOur processed corpus has 12 unique words in it, which means that each\ndocument will be represented by a 12-dimensional vector under the\nbag-of-words model. We can use the dictionary to turn tokenized documents\ninto these 12-dimensional vectors. We can see what these IDs correspond to:\n\n\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "pprint.pprint(dictionary.token2id)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "For example, suppose we wanted to vectorize the phrase \"Human computer\ninteraction\" (note that this phrase was not in our original corpus). We can\ncreate the bag-of-word representation for a document using the ``doc2bow``\nmethod of the dictionary, which returns a sparse representation of the word\ncounts:\n\n\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "new_doc = \"Human computer interaction\"\nnew_vec = dictionary.doc2bow(new_doc.lower().split())\nprint(new_vec)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The first entry in each tuple corresponds to the ID of the token in the\ndictionary, the second corresponds to the count of this token.\n\nNote that \"interaction\" did not occur in the original corpus and so it was\nnot included in the vectorization. Also note that this vector only contains\nentries for words that actually appeared in the document. Because any given\ndocument will only contain a few words out of the many words in the\ndictionary, words that do not appear in the vectorization are represented as\nimplicitly zero as a space saving measure.\n\nWe can convert our entire original corpus to a list of vectors:\n\n\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "bow_corpus = [dictionary.doc2bow(text) for text in processed_corpus]\npprint.pprint(bow_corpus)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Note that while this list lives entirely in memory, in most applications you\nwill want a more scalable solution. Luckily, ``gensim`` allows you to use any\niterator that returns a single document vector at a time. See the\ndocumentation for more details.\n\n.. Important::\n The distinction between a document and a vector is that the former is text,\n and the latter is a mathematically convenient representation of the text.\n Sometimes, people will use the terms interchangeably: for example, given\n some arbitrary document ``D``, instead of saying \"the vector that\n corresponds to document ``D``\", they will just say \"the vector ``D``\" or\n the \"document ``D``\". This achieves brevity at the cost of ambiguity.\n\n As long as you remember that documents exist in document space, and that\n vectors exist in vector space, the above ambiguity is acceptable.\n\n.. Important::\n Depending on how the representation was obtained, two different documents\n may have the same vector representations.\n\n\nModel\n-----\n\nNow that we have vectorized our corpus we can begin to transform it using\n*models*. We use model as an abstract term referring to a *transformation* from\none document representation to another. In ``gensim`` documents are\nrepresented as vectors so a model can be thought of as a transformation\nbetween two vector spaces. The model learns the details of this\ntransformation during training, when it reads the training\n`core_concepts_corpus`.\n\nOne simple example of a model is `tf-idf\n<https://en.wikipedia.org/wiki/Tf%E2%80%93idf>`_. The tf-idf model\ntransforms vectors from the bag-of-words representation to a vector space\nwhere the frequency counts are weighted according to the relative rarity of\neach word in the corpus.\n\nHere's a simple example. Let's initialize the tf-idf model, training it on\nour corpus and transforming the string \"system minors\":\n\n\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "from gensim import models\n\n# train the model\ntfidf = models.TfidfModel(bow_corpus)\n\n# transform the \"system minors\" string\nwords = \"system minors\".lower().split()\nprint(tfidf[dictionary.doc2bow(words)])" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The ``tfidf`` model again returns a list of tuples, where the first entry is\nthe token ID and the second entry is the tf-idf weighting. Note that the ID\ncorresponding to \"system\" (which occurred 4 times in the original corpus) has\nbeen weighted lower than the ID corresponding to \"minors\" (which only\noccurred twice).\n\nYou can save trained models to disk and later load them back, either to\ncontinue training on new training documents or to transform new documents.\n\n``gensim`` offers a number of different models/transformations.\nFor more, see `sphx_glr_auto_examples_core_run_topics_and_transformations.py`.\n\nOnce you've created the model, you can do all sorts of cool stuff with it.\nFor example, to transform the whole corpus via TfIdf and index it, in\npreparation for similarity queries:\n\n\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "from gensim import similarities\n\nindex = similarities.SparseMatrixSimilarity(tfidf[bow_corpus], num_features=max(tfidf.dfs) + 1)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "and to query the similarity of our query document ``query_document`` against every document in the corpus:\n\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "query_document = 'system engineering'.split()\nquery_bow = dictionary.doc2bow(query_document)\nsims = index[tfidf[query_bow]]\nprint(list(enumerate(sims)))" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "How to read this output?\nDocument 3 has a similarity score of 0.718=72%, document 2 has a similarity score of 42% etc.\nWe can make this slightly more readable by sorting:\n\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "for document_number, score in sorted(enumerate(sims), key=lambda x: x[1], reverse=True):\n print(document_number, score)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Summary\n-------\n\nThe core concepts of ``gensim`` are:\n\n1. `core_concepts_document`: some text.\n2. `core_concepts_corpus`: a collection of documents.\n3. `core_concepts_vector`: a mathematically convenient representation of a document.\n4. `core_concepts_model`: an algorithm for transforming vectors from one representation to another.\n\nWe saw these concepts in action.\nFirst, we started with a corpus of documents.\nNext, we transformed these documents to a vector space representation.\nAfter that, we created a model that transformed our original vector representation to TfIdf.\nFinally, we used our model to calculate the similarity between some query document and all documents in the corpus.\n\nWhat Next?\n----------\n\nThere's still much more to learn about `sphx_glr_auto_examples_core_run_corpora_and_vector_spaces.py`.\n\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "import matplotlib.pyplot as plt\nimport matplotlib.image as mpimg\nimg = mpimg.imread('run_core_concepts.png')\nimgplot = plt.imshow(img)\n_ = plt.axis('off')" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.6.5" } }, "nbformat": 4, "nbformat_minor": 0 }
18,305
Python
.py
277
59.32852
3,103
0.676448
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,997
run_topics_and_transformations.ipynb
piskvorky_gensim/docs/src/auto_examples/core/run_topics_and_transformations.ipynb
{ "cells": [ { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "%matplotlib inline" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "\n# Topics and Transformations\n\nIntroduces transformations and demonstrates their use on a toy corpus.\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "import logging\nlogging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "In this tutorial, I will show how to transform documents from one vector representation\ninto another. This process serves two goals:\n\n1. To bring out hidden structure in the corpus, discover relationships between\n words and use them to describe the documents in a new and\n (hopefully) more semantic way.\n2. To make the document representation more compact. This both improves efficiency\n (new representation consumes less resources) and efficacy (marginal data\n trends are ignored, noise-reduction).\n\n## Creating the Corpus\n\nFirst, we need to create a corpus to work with.\nThis step is the same as in the previous tutorial;\nif you completed it, feel free to skip to the next section.\n\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "from collections import defaultdict\nfrom gensim import corpora\n\ndocuments = [\n \"Human machine interface for lab abc computer applications\",\n \"A survey of user opinion of computer system response time\",\n \"The EPS user interface management system\",\n \"System and human system engineering testing of EPS\",\n \"Relation of user perceived response time to error measurement\",\n \"The generation of random binary unordered trees\",\n \"The intersection graph of paths in trees\",\n \"Graph minors IV Widths of trees and well quasi ordering\",\n \"Graph minors A survey\",\n]\n\n# remove common words and tokenize\nstoplist = set('for a of the and to in'.split())\ntexts = [\n [word for word in document.lower().split() if word not in stoplist]\n for document in documents\n]\n\n# remove words that appear only once\nfrequency = defaultdict(int)\nfor text in texts:\n for token in text:\n frequency[token] += 1\n\ntexts = [\n [token for token in text if frequency[token] > 1]\n for text in texts\n]\n\ndictionary = corpora.Dictionary(texts)\ncorpus = [dictionary.doc2bow(text) for text in texts]" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Creating a transformation\n\nThe transformations are standard Python objects, typically initialized by means of\na :dfn:`training corpus`:\n\n\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "from gensim import models\n\ntfidf = models.TfidfModel(corpus) # step 1 -- initialize a model" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "We used our old corpus from tutorial 1 to initialize (train) the transformation model. Different\ntransformations may require different initialization parameters; in case of TfIdf, the\n\"training\" consists simply of going through the supplied corpus once and computing document frequencies\nof all its features. Training other models, such as Latent Semantic Analysis or Latent Dirichlet\nAllocation, is much more involved and, consequently, takes much more time.\n\n<div class=\"alert alert-info\"><h4>Note</h4><p>Transformations always convert between two specific vector\n spaces. The same vector space (= the same set of feature ids) must be used for training\n as well as for subsequent vector transformations. Failure to use the same input\n feature space, such as applying a different string preprocessing, using different\n feature ids, or using bag-of-words input vectors where TfIdf vectors are expected, will\n result in feature mismatch during transformation calls and consequently in either\n garbage output and/or runtime exceptions.</p></div>\n\n\n### Transforming vectors\n\nFrom now on, ``tfidf`` is treated as a read-only object that can be used to convert\nany vector from the old representation (bag-of-words integer counts) to the new representation\n(TfIdf real-valued weights):\n\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "doc_bow = [(0, 1), (1, 1)]\nprint(tfidf[doc_bow]) # step 2 -- use the model to transform vectors" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Or to apply a transformation to a whole corpus:\n\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "corpus_tfidf = tfidf[corpus]\nfor doc in corpus_tfidf:\n print(doc)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "In this particular case, we are transforming the same corpus that we used\nfor training, but this is only incidental. Once the transformation model has been initialized,\nit can be used on any vectors (provided they come from the same vector space, of course),\neven if they were not used in the training corpus at all. This is achieved by a process called\nfolding-in for LSA, by topic inference for LDA etc.\n\n<div class=\"alert alert-info\"><h4>Note</h4><p>Calling ``model[corpus]`` only creates a wrapper around the old ``corpus``\n document stream -- actual conversions are done on-the-fly, during document iteration.\n We cannot convert the entire corpus at the time of calling ``corpus_transformed = model[corpus]``,\n because that would mean storing the result in main memory, and that contradicts gensim's objective of memory-indepedence.\n If you will be iterating over the transformed ``corpus_transformed`` multiple times, and the\n transformation is costly, `serialize the resulting corpus to disk first <corpus-formats>` and continue\n using that.</p></div>\n\nTransformations can also be serialized, one on top of another, in a sort of chain:\n\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "lsi_model = models.LsiModel(corpus_tfidf, id2word=dictionary, num_topics=2) # initialize an LSI transformation\ncorpus_lsi = lsi_model[corpus_tfidf] # create a double wrapper over the original corpus: bow->tfidf->fold-in-lsi" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Here we transformed our Tf-Idf corpus via `Latent Semantic Indexing <http://en.wikipedia.org/wiki/Latent_semantic_indexing>`_\ninto a latent 2-D space (2-D because we set ``num_topics=2``). Now you're probably wondering: what do these two latent\ndimensions stand for? Let's inspect with :func:`models.LsiModel.print_topics`:\n\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "lsi_model.print_topics(2)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "(the topics are printed to log -- see the note at the top of this page about activating\nlogging)\n\nIt appears that according to LSI, \"trees\", \"graph\" and \"minors\" are all related\nwords (and contribute the most to the direction of the first topic), while the\nsecond topic practically concerns itself with all the other words. As expected,\nthe first five documents are more strongly related to the second topic while the\nremaining four documents to the first topic:\n\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "# both bow->tfidf and tfidf->lsi transformations are actually executed here, on the fly\nfor doc, as_text in zip(corpus_lsi, documents):\n print(doc, as_text)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Model persistency is achieved with the :func:`save` and :func:`load` functions:\n\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "import os\nimport tempfile\n\nwith tempfile.NamedTemporaryFile(prefix='model-', suffix='.lsi', delete=False) as tmp:\n lsi_model.save(tmp.name) # same for tfidf, lda, ...\n\nloaded_lsi_model = models.LsiModel.load(tmp.name)\n\nos.unlink(tmp.name)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The next question might be: just how exactly similar are those documents to each other?\nIs there a way to formalize the similarity, so that for a given input document, we can\norder some other set of documents according to their similarity? Similarity queries\nare covered in the next tutorial (`sphx_glr_auto_examples_core_run_similarity_queries.py`).\n\n\n## Available transformations\n\nGensim implements several popular Vector Space Model algorithms:\n\n* `Term Frequency * Inverse Document Frequency, Tf-Idf <http://en.wikipedia.org/wiki/Tf%E2%80%93idf>`_\n expects a bag-of-words (integer values) training corpus during initialization.\n During transformation, it will take a vector and return another vector of the\n same dimensionality, except that features which were rare in the training corpus\n will have their value increased.\n It therefore converts integer-valued vectors into real-valued ones, while leaving\n the number of dimensions intact. It can also optionally normalize the resulting\n vectors to (Euclidean) unit length.\n\n .. sourcecode:: pycon\n\n model = models.TfidfModel(corpus, normalize=True)\n\n* `Okapi Best Matching, Okapi BM25 <https://en.wikipedia.org/wiki/Okapi_BM25>`_\n expects a bag-of-words (integer values) training corpus during initialization.\n During transformation, it will take a vector and return another vector of the\n same dimensionality, except that features which were rare in the training corpus\n will have their value increased. It therefore converts integer-valued\n vectors into real-valued ones, while leaving the number of dimensions intact.\n\n Okapi BM25 is the standard ranking function used by search engines to estimate\n the relevance of documents to a given search query.\n\n .. sourcecode:: pycon\n\n model = models.OkapiBM25Model(corpus)\n\n* `Latent Semantic Indexing, LSI (or sometimes LSA) <http://en.wikipedia.org/wiki/Latent_semantic_indexing>`_\n transforms documents from either bag-of-words or (preferrably) TfIdf-weighted space into\n a latent space of a lower dimensionality. For the toy corpus above we used only\n 2 latent dimensions, but on real corpora, target dimensionality of 200--500 is recommended\n as a \"golden standard\" [1]_.\n\n .. sourcecode:: pycon\n\n model = models.LsiModel(tfidf_corpus, id2word=dictionary, num_topics=300)\n\n LSI training is unique in that we can continue \"training\" at any point, simply\n by providing more training documents. This is done by incremental updates to\n the underlying model, in a process called `online training`. Because of this feature, the\n input document stream may even be infinite -- just keep feeding LSI new documents\n as they arrive, while using the computed transformation model as read-only in the meanwhile!\n\n .. sourcecode:: pycon\n\n model.add_documents(another_tfidf_corpus) # now LSI has been trained on tfidf_corpus + another_tfidf_corpus\n lsi_vec = model[tfidf_vec] # convert some new document into the LSI space, without affecting the model\n\n model.add_documents(more_documents) # tfidf_corpus + another_tfidf_corpus + more_documents\n lsi_vec = model[tfidf_vec]\n\n See the :mod:`gensim.models.lsimodel` documentation for details on how to make\n LSI gradually \"forget\" old observations in infinite streams. If you want to get dirty,\n there are also parameters you can tweak that affect speed vs. memory footprint vs. numerical\n precision of the LSI algorithm.\n\n `gensim` uses a novel online incremental streamed distributed training algorithm (quite a mouthful!),\n which I published in [5]_. `gensim` also executes a stochastic multi-pass algorithm\n from Halko et al. [4]_ internally, to accelerate in-core part\n of the computations.\n See also `wiki` for further speed-ups by distributing the computation across\n a cluster of computers.\n\n* `Random Projections, RP <http://www.cis.hut.fi/ella/publications/randproj_kdd.pdf>`_ aim to\n reduce vector space dimensionality. This is a very efficient (both memory- and\n CPU-friendly) approach to approximating TfIdf distances between documents, by throwing in a little randomness.\n Recommended target dimensionality is again in the hundreds/thousands, depending on your dataset.\n\n .. sourcecode:: pycon\n\n model = models.RpModel(tfidf_corpus, num_topics=500)\n\n* `Latent Dirichlet Allocation, LDA <http://en.wikipedia.org/wiki/Latent_Dirichlet_allocation>`_\n is yet another transformation from bag-of-words counts into a topic space of lower\n dimensionality. LDA is a probabilistic extension of LSA (also called multinomial PCA),\n so LDA's topics can be interpreted as probability distributions over words. These distributions are,\n just like with LSA, inferred automatically from a training corpus. Documents\n are in turn interpreted as a (soft) mixture of these topics (again, just like with LSA).\n\n .. sourcecode:: pycon\n\n model = models.LdaModel(corpus, id2word=dictionary, num_topics=100)\n\n `gensim` uses a fast implementation of online LDA parameter estimation based on [2]_,\n modified to run in `distributed mode <distributed>` on a cluster of computers.\n\n* `Hierarchical Dirichlet Process, HDP <http://jmlr.csail.mit.edu/proceedings/papers/v15/wang11a/wang11a.pdf>`_\n is a non-parametric bayesian method (note the missing number of requested topics):\n\n .. sourcecode:: pycon\n\n model = models.HdpModel(corpus, id2word=dictionary)\n\n `gensim` uses a fast, online implementation based on [3]_.\n The HDP model is a new addition to `gensim`, and still rough around its academic edges -- use with care.\n\nAdding new :abbr:`VSM (Vector Space Model)` transformations (such as different weighting schemes) is rather trivial;\nsee the `apiref` or directly the `Python code <https://github.com/piskvorky/gensim/blob/develop/gensim/models/tfidfmodel.py>`_\nfor more info and examples.\n\nIt is worth repeating that these are all unique, **incremental** implementations,\nwhich do not require the whole training corpus to be present in main memory all at once.\nWith memory taken care of, I am now improving `distributed`,\nto improve CPU efficiency, too.\nIf you feel you could contribute by testing, providing use-cases or code, see the `Gensim Developer guide <https://github.com/RaRe-Technologies/gensim/wiki/Developer-page>`__.\n\n## What Next?\n\nContinue on to the next tutorial on `sphx_glr_auto_examples_core_run_similarity_queries.py`.\n\n## References\n\n.. [1] Bradford. 2008. An empirical study of required dimensionality for large-scale latent semantic indexing applications.\n\n.. [2] Hoffman, Blei, Bach. 2010. Online learning for Latent Dirichlet Allocation.\n\n.. [3] Wang, Paisley, Blei. 2011. Online variational inference for the hierarchical Dirichlet process.\n\n.. [4] Halko, Martinsson, Tropp. 2009. Finding structure with randomness.\n\n.. [5] \u0158eh\u016f\u0159ek. 2011. Subspace tracking for Latent Semantic Analysis.\n\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "import matplotlib.pyplot as plt\nimport matplotlib.image as mpimg\nimg = mpimg.imread('run_topics_and_transformations.png')\nimgplot = plt.imshow(img)\n_ = plt.axis('off')" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.8.13" } }, "nbformat": 4, "nbformat_minor": 0 }
17,297
Python
.py
216
73.361111
6,990
0.693303
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,998
run_core_concepts.py
piskvorky_gensim/docs/src/auto_examples/core/run_core_concepts.py
r""" Core Concepts ============= This tutorial introduces Documents, Corpora, Vectors and Models: the basic concepts and terms needed to understand and use gensim. """ import pprint ############################################################################### # The core concepts of ``gensim`` are: # # 1. :ref:`core_concepts_document`: some text. # 2. :ref:`core_concepts_corpus`: a collection of documents. # 3. :ref:`core_concepts_vector`: a mathematically convenient representation of a document. # 4. :ref:`core_concepts_model`: an algorithm for transforming vectors from one representation to another. # # Let's examine each of these in slightly more detail. # # .. _core_concepts_document: # # Document # -------- # # In Gensim, a *document* is an object of the `text sequence type <https://docs.python.org/3.7/library/stdtypes.html#text-sequence-type-str>`_ (commonly known as ``str`` in Python 3). # A document could be anything from a short 140 character tweet, a single # paragraph (i.e., journal article abstract), a news article, or a book. # document = "Human machine interface for lab abc computer applications" ############################################################################### # .. _core_concepts_corpus: # # Corpus # ------ # # A *corpus* is a collection of :ref:`core_concepts_document` objects. # Corpora serve two roles in Gensim: # # 1. Input for training a :ref:`core_concepts_model`. # During training, the models use this *training corpus* to look for common # themes and topics, initializing their internal model parameters. # # Gensim focuses on *unsupervised* models so that no human intervention, # such as costly annotations or tagging documents by hand, is required. # # 2. Documents to organize. # After training, a topic model can be used to extract topics from new # documents (documents not seen in the training corpus). # # Such corpora can be indexed for # :ref:`sphx_glr_auto_examples_core_run_similarity_queries.py`, # queried by semantic similarity, clustered etc. # # Here is an example corpus. # It consists of 9 documents, where each document is a string consisting of a single sentence. # text_corpus = [ "Human machine interface for lab abc computer applications", "A survey of user opinion of computer system response time", "The EPS user interface management system", "System and human system engineering testing of EPS", "Relation of user perceived response time to error measurement", "The generation of random binary unordered trees", "The intersection graph of paths in trees", "Graph minors IV Widths of trees and well quasi ordering", "Graph minors A survey", ] ############################################################################### # # .. Important:: # The above example loads the entire corpus into memory. # In practice, corpora may be very large, so loading them into memory may be impossible. # Gensim intelligently handles such corpora by *streaming* them one document at a time. # See :ref:`corpus_streaming_tutorial` for details. # # This is a particularly small example of a corpus for illustration purposes. # Another example could be a list of all the plays written by Shakespeare, list # of all wikipedia articles, or all tweets by a particular person of interest. # # After collecting our corpus, there are typically a number of preprocessing # steps we want to undertake. We'll keep it simple and just remove some # commonly used English words (such as 'the') and words that occur only once in # the corpus. In the process of doing so, we'll tokenize our data. # Tokenization breaks up the documents into words (in this case using space as # a delimiter). # # .. Important:: # There are better ways to perform preprocessing than just lower-casing and # splitting by space. Effective preprocessing is beyond the scope of this # tutorial: if you're interested, check out the # :py:func:`gensim.utils.simple_preprocess` function. # # Create a set of frequent words stoplist = set('for a of the and to in'.split(' ')) # Lowercase each document, split it by white space and filter out stopwords texts = [[word for word in document.lower().split() if word not in stoplist] for document in text_corpus] # Count word frequencies from collections import defaultdict frequency = defaultdict(int) for text in texts: for token in text: frequency[token] += 1 # Only keep words that appear more than once processed_corpus = [[token for token in text if frequency[token] > 1] for text in texts] pprint.pprint(processed_corpus) ############################################################################### # Before proceeding, we want to associate each word in the corpus with a unique # integer ID. We can do this using the :py:class:`gensim.corpora.Dictionary` # class. This dictionary defines the vocabulary of all words that our # processing knows about. # from gensim import corpora dictionary = corpora.Dictionary(processed_corpus) print(dictionary) ############################################################################### # Because our corpus is small, there are only 12 different tokens in this # :py:class:`gensim.corpora.Dictionary`. For larger corpuses, dictionaries that # contains hundreds of thousands of tokens are quite common. # ############################################################################### # .. _core_concepts_vector: # # Vector # ------ # # To infer the latent structure in our corpus we need a way to represent # documents that we can manipulate mathematically. One approach is to represent # each document as a vector of *features*. # For example, a single feature may be thought of as a question-answer pair: # # 1. How many times does the word *splonge* appear in the document? Zero. # 2. How many paragraphs does the document consist of? Two. # 3. How many fonts does the document use? Five. # # The question is usually represented only by its integer id (such as `1`, `2` and `3`). # The representation of this document then becomes a series of pairs like ``(1, 0.0), (2, 2.0), (3, 5.0)``. # This is known as a *dense vector*, because it contains an explicit answer to each of the above questions. # # If we know all the questions in advance, we may leave them implicit # and simply represent the document as ``(0, 2, 5)``. # This sequence of answers is the **vector** for our document (in this case a 3-dimensional dense vector). # For practical purposes, only questions to which the answer is (or # can be converted to) a *single floating point number* are allowed in Gensim. # # In practice, vectors often consist of many zero values. # To save memory, Gensim omits all vector elements with value 0.0. # The above example thus becomes ``(2, 2.0), (3, 5.0)``. # This is known as a *sparse vector* or *bag-of-words vector*. # The values of all missing features in this sparse representation can be unambiguously resolved to zero, ``0.0``. # # Assuming the questions are the same, we can compare the vectors of two different documents to each other. # For example, assume we are given two vectors ``(0.0, 2.0, 5.0)`` and ``(0.1, 1.9, 4.9)``. # Because the vectors are very similar to each other, we can conclude that the documents corresponding to those vectors are similar, too. # Of course, the correctness of that conclusion depends on how well we picked the questions in the first place. # # Another approach to represent a document as a vector is the *bag-of-words # model*. # Under the bag-of-words model each document is represented by a vector # containing the frequency counts of each word in the dictionary. # For example, assume we have a dictionary containing the words # ``['coffee', 'milk', 'sugar', 'spoon']``. # A document consisting of the string ``"coffee milk coffee"`` would then # be represented by the vector ``[2, 1, 0, 0]`` where the entries of the vector # are (in order) the occurrences of "coffee", "milk", "sugar" and "spoon" in # the document. The length of the vector is the number of entries in the # dictionary. One of the main properties of the bag-of-words model is that it # completely ignores the order of the tokens in the document that is encoded, # which is where the name bag-of-words comes from. # # Our processed corpus has 12 unique words in it, which means that each # document will be represented by a 12-dimensional vector under the # bag-of-words model. We can use the dictionary to turn tokenized documents # into these 12-dimensional vectors. We can see what these IDs correspond to: # pprint.pprint(dictionary.token2id) ############################################################################### # For example, suppose we wanted to vectorize the phrase "Human computer # interaction" (note that this phrase was not in our original corpus). We can # create the bag-of-word representation for a document using the ``doc2bow`` # method of the dictionary, which returns a sparse representation of the word # counts: # new_doc = "Human computer interaction" new_vec = dictionary.doc2bow(new_doc.lower().split()) print(new_vec) ############################################################################### # The first entry in each tuple corresponds to the ID of the token in the # dictionary, the second corresponds to the count of this token. # # Note that "interaction" did not occur in the original corpus and so it was # not included in the vectorization. Also note that this vector only contains # entries for words that actually appeared in the document. Because any given # document will only contain a few words out of the many words in the # dictionary, words that do not appear in the vectorization are represented as # implicitly zero as a space saving measure. # # We can convert our entire original corpus to a list of vectors: # bow_corpus = [dictionary.doc2bow(text) for text in processed_corpus] pprint.pprint(bow_corpus) ############################################################################### # Note that while this list lives entirely in memory, in most applications you # will want a more scalable solution. Luckily, ``gensim`` allows you to use any # iterator that returns a single document vector at a time. See the # documentation for more details. # # .. Important:: # The distinction between a document and a vector is that the former is text, # and the latter is a mathematically convenient representation of the text. # Sometimes, people will use the terms interchangeably: for example, given # some arbitrary document ``D``, instead of saying "the vector that # corresponds to document ``D``", they will just say "the vector ``D``" or # the "document ``D``". This achieves brevity at the cost of ambiguity. # # As long as you remember that documents exist in document space, and that # vectors exist in vector space, the above ambiguity is acceptable. # # .. Important:: # Depending on how the representation was obtained, two different documents # may have the same vector representations. # # .. _core_concepts_model: # # Model # ----- # # Now that we have vectorized our corpus we can begin to transform it using # *models*. We use model as an abstract term referring to a *transformation* from # one document representation to another. In ``gensim`` documents are # represented as vectors so a model can be thought of as a transformation # between two vector spaces. The model learns the details of this # transformation during training, when it reads the training # :ref:`core_concepts_corpus`. # # One simple example of a model is `tf-idf # <https://en.wikipedia.org/wiki/Tf%E2%80%93idf>`_. The tf-idf model # transforms vectors from the bag-of-words representation to a vector space # where the frequency counts are weighted according to the relative rarity of # each word in the corpus. # # Here's a simple example. Let's initialize the tf-idf model, training it on # our corpus and transforming the string "system minors": # from gensim import models # train the model tfidf = models.TfidfModel(bow_corpus) # transform the "system minors" string words = "system minors".lower().split() print(tfidf[dictionary.doc2bow(words)]) ############################################################################### # The ``tfidf`` model again returns a list of tuples, where the first entry is # the token ID and the second entry is the tf-idf weighting. Note that the ID # corresponding to "system" (which occurred 4 times in the original corpus) has # been weighted lower than the ID corresponding to "minors" (which only # occurred twice). # # You can save trained models to disk and later load them back, either to # continue training on new training documents or to transform new documents. # # ``gensim`` offers a number of different models/transformations. # For more, see :ref:`sphx_glr_auto_examples_core_run_topics_and_transformations.py`. # # Once you've created the model, you can do all sorts of cool stuff with it. # For example, to transform the whole corpus via TfIdf and index it, in # preparation for similarity queries: # from gensim import similarities index = similarities.SparseMatrixSimilarity(tfidf[bow_corpus], num_features=12) ############################################################################### # and to query the similarity of our query document ``query_document`` against every document in the corpus: query_document = 'system engineering'.split() query_bow = dictionary.doc2bow(query_document) sims = index[tfidf[query_bow]] print(list(enumerate(sims))) ############################################################################### # How to read this output? # Document 3 has a similarity score of 0.718=72%, document 2 has a similarity score of 42% etc. # We can make this slightly more readable by sorting: for document_number, score in sorted(enumerate(sims), key=lambda x: x[1], reverse=True): print(document_number, score) ############################################################################### # Summary # ------- # # The core concepts of ``gensim`` are: # # 1. :ref:`core_concepts_document`: some text. # 2. :ref:`core_concepts_corpus`: a collection of documents. # 3. :ref:`core_concepts_vector`: a mathematically convenient representation of a document. # 4. :ref:`core_concepts_model`: an algorithm for transforming vectors from one representation to another. # # We saw these concepts in action. # First, we started with a corpus of documents. # Next, we transformed these documents to a vector space representation. # After that, we created a model that transformed our original vector representation to TfIdf. # Finally, we used our model to calculate the similarity between some query document and all documents in the corpus. # # What Next? # ---------- # # There's still much more to learn about :ref:`sphx_glr_auto_examples_core_run_corpora_and_vector_spaces.py`. import matplotlib.pyplot as plt import matplotlib.image as mpimg img = mpimg.imread('run_core_concepts.png') imgplot = plt.imshow(img) _ = plt.axis('off')
15,054
Python
.py
304
48.233553
183
0.708571
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)
6,999
run_topics_and_transformations.py
piskvorky_gensim/docs/src/auto_examples/core/run_topics_and_transformations.py
r""" Topics and Transformations =========================== Introduces transformations and demonstrates their use on a toy corpus. """ import logging logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO) ############################################################################### # In this tutorial, I will show how to transform documents from one vector representation # into another. This process serves two goals: # # 1. To bring out hidden structure in the corpus, discover relationships between # words and use them to describe the documents in a new and # (hopefully) more semantic way. # 2. To make the document representation more compact. This both improves efficiency # (new representation consumes less resources) and efficacy (marginal data # trends are ignored, noise-reduction). # # Creating the Corpus # ------------------- # # First, we need to create a corpus to work with. # This step is the same as in the previous tutorial; # if you completed it, feel free to skip to the next section. from collections import defaultdict from gensim import corpora documents = [ "Human machine interface for lab abc computer applications", "A survey of user opinion of computer system response time", "The EPS user interface management system", "System and human system engineering testing of EPS", "Relation of user perceived response time to error measurement", "The generation of random binary unordered trees", "The intersection graph of paths in trees", "Graph minors IV Widths of trees and well quasi ordering", "Graph minors A survey", ] # remove common words and tokenize stoplist = set('for a of the and to in'.split()) texts = [ [word for word in document.lower().split() if word not in stoplist] for document in documents ] # remove words that appear only once frequency = defaultdict(int) for text in texts: for token in text: frequency[token] += 1 texts = [ [token for token in text if frequency[token] > 1] for text in texts ] dictionary = corpora.Dictionary(texts) corpus = [dictionary.doc2bow(text) for text in texts] ############################################################################### # # Creating a transformation # ++++++++++++++++++++++++++ # # The transformations are standard Python objects, typically initialized by means of # a :dfn:`training corpus`: # from gensim import models tfidf = models.TfidfModel(corpus) # step 1 -- initialize a model ############################################################################### # We used our old corpus from tutorial 1 to initialize (train) the transformation model. Different # transformations may require different initialization parameters; in case of TfIdf, the # "training" consists simply of going through the supplied corpus once and computing document frequencies # of all its features. Training other models, such as Latent Semantic Analysis or Latent Dirichlet # Allocation, is much more involved and, consequently, takes much more time. # # .. note:: # Transformations always convert between two specific vector # spaces. The same vector space (= the same set of feature ids) must be used for training # as well as for subsequent vector transformations. Failure to use the same input # feature space, such as applying a different string preprocessing, using different # feature ids, or using bag-of-words input vectors where TfIdf vectors are expected, will # result in feature mismatch during transformation calls and consequently in either # garbage output and/or runtime exceptions. # # # Transforming vectors # +++++++++++++++++++++ # # From now on, ``tfidf`` is treated as a read-only object that can be used to convert # any vector from the old representation (bag-of-words integer counts) to the new representation # (TfIdf real-valued weights): doc_bow = [(0, 1), (1, 1)] print(tfidf[doc_bow]) # step 2 -- use the model to transform vectors ############################################################################### # Or to apply a transformation to a whole corpus: corpus_tfidf = tfidf[corpus] for doc in corpus_tfidf: print(doc) ############################################################################### # In this particular case, we are transforming the same corpus that we used # for training, but this is only incidental. Once the transformation model has been initialized, # it can be used on any vectors (provided they come from the same vector space, of course), # even if they were not used in the training corpus at all. This is achieved by a process called # folding-in for LSA, by topic inference for LDA etc. # # .. note:: # Calling ``model[corpus]`` only creates a wrapper around the old ``corpus`` # document stream -- actual conversions are done on-the-fly, during document iteration. # We cannot convert the entire corpus at the time of calling ``corpus_transformed = model[corpus]``, # because that would mean storing the result in main memory, and that contradicts gensim's objective of memory-indepedence. # If you will be iterating over the transformed ``corpus_transformed`` multiple times, and the # transformation is costly, :ref:`serialize the resulting corpus to disk first <corpus-formats>` and continue # using that. # # Transformations can also be serialized, one on top of another, in a sort of chain: lsi_model = models.LsiModel(corpus_tfidf, id2word=dictionary, num_topics=2) # initialize an LSI transformation corpus_lsi = lsi_model[corpus_tfidf] # create a double wrapper over the original corpus: bow->tfidf->fold-in-lsi ############################################################################### # Here we transformed our Tf-Idf corpus via `Latent Semantic Indexing <https://en.wikipedia.org/wiki/Latent_semantic_indexing>`_ # into a latent 2-D space (2-D because we set ``num_topics=2``). Now you're probably wondering: what do these two latent # dimensions stand for? Let's inspect with :func:`models.LsiModel.print_topics`: lsi_model.print_topics(2) ############################################################################### # (the topics are printed to log -- see the note at the top of this page about activating # logging) # # It appears that according to LSI, "trees", "graph" and "minors" are all related # words (and contribute the most to the direction of the first topic), while the # second topic practically concerns itself with all the other words. As expected, # the first five documents are more strongly related to the second topic while the # remaining four documents to the first topic: # both bow->tfidf and tfidf->lsi transformations are actually executed here, on the fly for doc, as_text in zip(corpus_lsi, documents): print(doc, as_text) ############################################################################### # Model persistency is achieved with the :func:`save` and :func:`load` functions: import os import tempfile with tempfile.NamedTemporaryFile(prefix='model-', suffix='.lsi', delete=False) as tmp: lsi_model.save(tmp.name) # same for tfidf, lda, ... loaded_lsi_model = models.LsiModel.load(tmp.name) os.unlink(tmp.name) ############################################################################### # The next question might be: just how exactly similar are those documents to each other? # Is there a way to formalize the similarity, so that for a given input document, we can # order some other set of documents according to their similarity? Similarity queries # are covered in the next tutorial (:ref:`sphx_glr_auto_examples_core_run_similarity_queries.py`). # # .. _transformations: # # Available transformations # -------------------------- # # Gensim implements several popular Vector Space Model algorithms: # # * `Term Frequency * Inverse Document Frequency, Tf-Idf <https://en.wikipedia.org/wiki/Tf%E2%80%93idf>`_ # expects a bag-of-words (integer values) training corpus during initialization. # During transformation, it will take a vector and return another vector of the # same dimensionality, except that features which were rare in the training corpus # will have their value increased. # It therefore converts integer-valued vectors into real-valued ones, while leaving # the number of dimensions intact. It can also optionally normalize the resulting # vectors to (Euclidean) unit length. # # .. sourcecode:: pycon # # model = models.TfidfModel(corpus, normalize=True) # # * `Okapi Best Matching, Okapi BM25 <https://en.wikipedia.org/wiki/Okapi_BM25>`_ # expects a bag-of-words (integer values) training corpus during initialization. # During transformation, it will take a vector and return another vector of the # same dimensionality, except that features which were rare in the training corpus # will have their value increased. It therefore converts integer-valued # vectors into real-valued ones, while leaving the number of dimensions intact. # # Okapi BM25 is the standard ranking function used by search engines to estimate # the relevance of documents to a given search query. # # .. sourcecode:: pycon # # model = models.OkapiBM25Model(corpus) # # * `Latent Semantic Indexing, LSI (or sometimes LSA) <https://en.wikipedia.org/wiki/Latent_semantic_indexing>`_ # transforms documents from either bag-of-words or (preferrably) TfIdf-weighted space into # a latent space of a lower dimensionality. For the toy corpus above we used only # 2 latent dimensions, but on real corpora, target dimensionality of 200--500 is recommended # as a "golden standard" [1]_. # # .. sourcecode:: pycon # # model = models.LsiModel(tfidf_corpus, id2word=dictionary, num_topics=300) # # LSI training is unique in that we can continue "training" at any point, simply # by providing more training documents. This is done by incremental updates to # the underlying model, in a process called `online training`. Because of this feature, the # input document stream may even be infinite -- just keep feeding LSI new documents # as they arrive, while using the computed transformation model as read-only in the meanwhile! # # .. sourcecode:: pycon # # model.add_documents(another_tfidf_corpus) # now LSI has been trained on tfidf_corpus + another_tfidf_corpus # lsi_vec = model[tfidf_vec] # convert some new document into the LSI space, without affecting the model # # model.add_documents(more_documents) # tfidf_corpus + another_tfidf_corpus + more_documents # lsi_vec = model[tfidf_vec] # # See the :mod:`gensim.models.lsimodel` documentation for details on how to make # LSI gradually "forget" old observations in infinite streams. If you want to get dirty, # there are also parameters you can tweak that affect speed vs. memory footprint vs. numerical # precision of the LSI algorithm. # # `gensim` uses a novel online incremental streamed distributed training algorithm (quite a mouthful!), # which I published in [5]_. `gensim` also executes a stochastic multi-pass algorithm # from Halko et al. [4]_ internally, to accelerate in-core part # of the computations. # See also :ref:`wiki` for further speed-ups by distributing the computation across # a cluster of computers. # # * `Random Projections, RP <http://www.cis.hut.fi/ella/publications/randproj_kdd.pdf>`_ aim to # reduce vector space dimensionality. This is a very efficient (both memory- and # CPU-friendly) approach to approximating TfIdf distances between documents, by throwing in a little randomness. # Recommended target dimensionality is again in the hundreds/thousands, depending on your dataset. # # .. sourcecode:: pycon # # model = models.RpModel(tfidf_corpus, num_topics=500) # # * `Latent Dirichlet Allocation, LDA <https://en.wikipedia.org/wiki/Latent_Dirichlet_allocation>`_ # is yet another transformation from bag-of-words counts into a topic space of lower # dimensionality. LDA is a probabilistic extension of LSA (also called multinomial PCA), # so LDA's topics can be interpreted as probability distributions over words. These distributions are, # just like with LSA, inferred automatically from a training corpus. Documents # are in turn interpreted as a (soft) mixture of these topics (again, just like with LSA). # # .. sourcecode:: pycon # # model = models.LdaModel(corpus, id2word=dictionary, num_topics=100) # # `gensim` uses a fast implementation of online LDA parameter estimation based on [2]_, # modified to run in :ref:`distributed mode <distributed>` on a cluster of computers. # # * `Hierarchical Dirichlet Process, HDP <http://jmlr.csail.mit.edu/proceedings/papers/v15/wang11a/wang11a.pdf>`_ # is a non-parametric bayesian method (note the missing number of requested topics): # # .. sourcecode:: pycon # # model = models.HdpModel(corpus, id2word=dictionary) # # `gensim` uses a fast, online implementation based on [3]_. # The HDP model is a new addition to `gensim`, and still rough around its academic edges -- use with care. # # Adding new :abbr:`VSM (Vector Space Model)` transformations (such as different weighting schemes) is rather trivial; # see the :ref:`apiref` or directly the `Python code <https://github.com/piskvorky/gensim/blob/develop/gensim/models/tfidfmodel.py>`_ # for more info and examples. # # It is worth repeating that these are all unique, **incremental** implementations, # which do not require the whole training corpus to be present in main memory all at once. # With memory taken care of, I am now improving :ref:`distributed`, # to improve CPU efficiency, too. # If you feel you could contribute by testing, providing use-cases or code, see the `Gensim Developer guide <https://github.com/RaRe-Technologies/gensim/wiki/Developer-page>`__. # # What Next? # ---------- # # Continue on to the next tutorial on :ref:`sphx_glr_auto_examples_core_run_similarity_queries.py`. # # References # ---------- # # .. [1] Bradford. 2008. An empirical study of required dimensionality for large-scale latent semantic indexing applications. # # .. [2] Hoffman, Blei, Bach. 2010. Online learning for Latent Dirichlet Allocation. # # .. [3] Wang, Paisley, Blei. 2011. Online variational inference for the hierarchical Dirichlet process. # # .. [4] Halko, Martinsson, Tropp. 2009. Finding structure with randomness. # # .. [5] Řehůřek. 2011. Subspace tracking for Latent Semantic Analysis. import matplotlib.pyplot as plt import matplotlib.image as mpimg img = mpimg.imread('run_topics_and_transformations.png') imgplot = plt.imshow(img) _ = plt.axis('off')
14,611
Python
.py
279
50.989247
177
0.718711
piskvorky/gensim
15,546
4,374
408
LGPL-2.1
9/5/2024, 5:10:17 PM (Europe/Amsterdam)